aboutsummaryrefslogtreecommitdiffstats
path: root/tests/MATLAB-Dateien/index-matlabonlineserver_data/bundle_005.js
diff options
context:
space:
mode:
authorSARA <sara.halter@ost.ch>2021-12-23 10:18:37 +0100
committerSARA <sara.halter@ost.ch>2021-12-23 10:18:37 +0100
commitd0b88ef9ba9a4365a6505dc82807b42fd68e378c (patch)
tree96dade68d3086ab131aeb962d803fc21a2b05741 /tests/MATLAB-Dateien/index-matlabonlineserver_data/bundle_005.js
parentnew slids (diff)
downloadFading-d0b88ef9ba9a4365a6505dc82807b42fd68e378c.tar.gz
Fading-d0b88ef9ba9a4365a6505dc82807b42fd68e378c.zip
Matlab link file
Diffstat (limited to '')
-rw-r--r--tests/MATLAB-Dateien/index-matlabonlineserver_data/bundle_005.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/MATLAB-Dateien/index-matlabonlineserver_data/bundle_005.js b/tests/MATLAB-Dateien/index-matlabonlineserver_data/bundle_005.js
new file mode 100644
index 0000000..39461d2
--- /dev/null
+++ b/tests/MATLAB-Dateien/index-matlabonlineserver_data/bundle_005.js
@@ -0,0 +1,40 @@
+/*! For license information please see bundle.0.js.LICENSE.txt */
+(function(){(this||window).webpackJsonp.registerAbsMids({"mw-browser-utils/BrowserCheck":1,"MOTW/motw/main":2,"mw-browser-utils/DeprecatedBrowserCheck":3,"MOTW/motw/jsdModuleRegistry":4,"MOTW/motw/noLoginModuleRegistry":5,"MOTW/motw/standaloneWebAppsModuleRegistry":6,"mw-browser-utils/MobileBrowserCheck":7,"MOTW/motw/liveEditorModuleRegistry":8,"MOTW/motw/matlabOnlineServerModuleRegistry":9,"MOTW/motw/matlabOnlineServerWorkarounds":10,"MOTW/modules/debugFileOpeningService/index":11,"dijit/TooltipDialog":30,"dijit/main":31,"MOTW/motw/featuresFetcher":32,"dgrid/util/touch":33,"dojo/dnd/Target":34,"variableeditor/ClientPeerManagerFactory":35,"dijit/form/DropDownButton":36,"rtc_javascript_language_support/JavaScriptLanguageSupportRegistry":37,"rtc/core/registry/PluginRegistryBuildManifest":38,"rtc_clike_language_support/CLanguageSupportRegistry":39,"rtc_xml_language_support/XmlLanguageSupportRegistry":40,"MOTW/mgg/utils/_TouchEvents":41,"dijit/PopupMenuItem":42,"dijit/MenuSeparator":43,"dojo/selector/_loader!default":44,"dojo/selector/lite":44,"MOTW/motw/Bootstrap":45,"dojo/cldr/nls/en/number":46,"rtc_clike_language_support/CppLanguageSupportRegistry":47,"rtc_java_language_support/JavaLanguageSupportRegistry":48,"rtc_xml_language_support/HtmlLanguageSupportRegistry":49,"rtc_javascript_language_support/JsonLanguageSupportRegistry":50,"rtc_javascript_language_support/TypeScriptLanguageSupportRegistry":51,"dgrid/TouchScroll":52,"dgrid/extensions/_DnD-touch-autoscroll":53,"dojo/cldr/nls/en/gregorian":54,"MOTW/layout/LayoutConfigTouch":55,"dijit/CheckedMenuItem":56,"variableeditor/VariableEditorMain":57,"dojo/require":58,"xstyle/core/load-css":59,"dojox/main":60,"livecode_features/LiveCodePluginRegistryModule":61,"rtc/plugins/breakpoint/matlab/MatlabBreakpointDirtyServiceProvider":62,"rtc/settings/SettingsPluginRegistryBuildManifest":63,"plaincode_features/PlainCodePluginRegistryModule":64,"matlab_preferences/index":65,"editorpanels-ui/index":66,"commandwindowpanel-ui/index":67,"cfbprefs-ui/index":68,"cpanel-ui/index":69,"javapanel-ui/index":70,"xmlpanel-ui/index":71,"javascriptpanel-ui/index":72,"editor_actions/index":73,"physmod_simscape_language_editor/SimscapeLanguageSupportRegistry":74,"cd_up_one_dir_button/index":75,"browse_for_folder_button/index":76,"project-action-ui/index":77,"sharing_actions/index":78,"richcontent_preview_plugin/index":79,"mlapp_preview/index":80,"matlabdrive_js/index":81,"tripwire_button/index":82,"dojo/cldr/nls/en/currency":83,"dojo/cldr/nls/en/buddhist":84,"dojo/cldr/nls/en/islamic":85,"dijit/_base":86,"dojo/fx/Toggler":87,"dojo/dnd/AutoSource":88,"dgrid/tree":89,"dgrid/selector":90,"dijit/form/ComboButton":91,"workspacebrowser/WorkspaceBrowserMain":92,"MOTW/modules/accessTierService/index":94,"MOTW/modules/actionReducer/index":95,"MOTW/modules/addOns/index":96,"MOTW/modules/addressBar/index":97,"MOTW/modules/appsGallery/index":98,"MOTW/modules/audioplayer/index":99,"MOTW/modules/authorizationDetailsService/index":100,"MOTW/modules/bootstrapService/index":101,"MOTW/modules/bufferedEditorService/index":102,"MOTW/modules/cfb/index":103,"MOTW/modules/cmd/index":104,"MOTW/modules/cmdhistory/index":105,"MOTW/modules/codeanalyzer/index":106,"MOTW/modules/configureWorker/index":107,"MOTW/modules/core/index":108,"MOTW/modules/datatoolsservices/index":109,"MOTW/modules/desktopLifecycle/index":110,"MOTW/modules/discoveryService/index":111,"MOTW/modules/discoveryServiceLoaded/index":112,"MOTW/modules/divfigure/index":113,"MOTW/modules/docService/index":114,"MOTW/modules/documentOnlyUiConfig/index":115,"MOTW/modules/editor/index":116,"MOTW/modules/embeddedfigures/index":117,"MOTW/modules/errorlogger/index":118,"MOTW/modules/faults/index":119,"MOTW/modules/favcommands/index":120,"MOTW/modules/feedback/index":121,"MOTW/modules/figure/index":122,"MOTW/modules/figureAnnotationsGallery/index":123,"MOTW/modules/figureAnnotationsGalleryMOL/index":124,"MOTW/modules/figureapps/index":125,"MOTW/modules/findFiles/index":126,"MOTW/modules/gdsNotifications/index":127,"MOTW/modules/goToFile/index":128,"MOTW/modules/guestUserWraService/index":129,"MOTW/modules/heartbeatService/index":130,"MOTW/modules/helpDataJSDService/index":131,"MOTW/modules/helpDataService/index":132,"MOTW/modules/helpSearch/index":133,"MOTW/modules/iframeLayoutManager/index":134,"MOTW/modules/importtool/index":135,"MOTW/modules/layout/index":136,"MOTW/modules/liveAppsGallery/index":137,"MOTW/modules/liveEditorLifecycle/index":138,"MOTW/modules/logicAnalyzer/index":139,"MOTW/modules/logout/index":140,"MOTW/modules/manifestHandler/index":141,"MOTW/modules/matlabExitService/index":142,"MOTW/modules/matlabProject/index":143,"MOTW/modules/matlabProjectLabels/index":144,"MOTW/modules/matlabProjectReferences/index":145,"MOTW/modules/matlabbreakpoint/index":146,"MOTW/modules/messageService/index":147,"MOTW/modules/mgg/index":148,"MOTW/modules/mldosharing/index":149,"MOTW/modules/moduleLoader/index":150,"MOTW/modules/motwDOMNodes/index":151,"MOTW/modules/navigationShortcutsDialog/index":152,"MOTW/modules/noLoginBootstrapService/index":153,"MOTW/modules/openNewTab/index":154,"MOTW/modules/openWithEventLogger/index":155,"MOTW/modules/pct/index":156,"MOTW/modules/plotsGallery/index":157,"MOTW/modules/postMessageProtocol/index":158,"MOTW/modules/propertyinspector/index":159,"MOTW/modules/qab/index":160,"MOTW/modules/reports/index":161,"MOTW/modules/serverOnWorker/index":162,"MOTW/modules/session/index":163,"MOTW/modules/sessionLifecycle/index":164,"MOTW/modules/settings/index":165,"MOTW/modules/sharing/index":166,"MOTW/modules/slonlineContainer/index":167,"MOTW/modules/standaloneWebAppLifecycle/index":168,"MOTW/modules/standaloneWebAppUiConfig/index":169,"MOTW/modules/standaloneWebFigureApps/index":170,"MOTW/modules/taskbar/index":171,"MOTW/modules/udcDataService/index":172,"MOTW/modules/uiConfig/index":173,"MOTW/modules/uiLifecycle/index":174,"MOTW/modules/userDataService/index":175,"MOTW/modules/userReady/index":176,"MOTW/modules/ve/index":177,"MOTW/modules/versioning/index":178,"MOTW/modules/webcam/index":179,"MOTW/modules/webddg/index":180,"MOTW/modules/workerActionDisabler/index":181,"MOTW/modules/workerReady/index":182,"MOTW/modules/workspace/index":183,"MOTW/modules/wraLogin/index":184,"MOTW/modules/wraService/index":185,"MOTW/modules/testbrowser/index":186,"MOTW/modules/splashscreenmanager/index":187,"MOTW/modules/sidePanel/index":188,"MOTW/modules/coder/index":189,"MOTW/modules/matlabProjectSharing/index":190,"MOTW/modules/sourceControl/index":191,"MOTW/modules/academySimulinkCourses/index":192,"MOTW/matlabOnlineServer/discoveryService/index":193,"MOTW/matlabOnlineServer/sharingService/index":194,"MOTW/matlabOnlineServer/wraLogin/index":195,"MOTW/matlabOnlineServer/wraService/index":196,"MOTW/jsd/applicationLifecycle/index":197,"MOTW/jsd/bootstrapService/index":198,"MOTW/jsd/jsdConfig/index":199,"MOTW/jsd/wraService/index":200,"mw-webwindow/index":201,"mw-webwindow-encapsulated/EncapsulatedWebWindow":202,"dojo/_base/declare":203,"dojo/_base/lang":204,"rtc/core/provider/PluginProvider":205,"dojo/on":206,"rtc/abstract/AbstractPlugin":207,"rtc/dojo/aspect":208,"mw-log/Log":209,"dojo/dom-class":210,"dojo/dom-construct":211,"dojo/Deferred":212,"dojo/dom-style":213,"dojo/aspect":214,"dijit/_WidgetBase":215,"dijit/_TemplatedMixin":216,"dojo/dom-geometry":217,"dojo/i18n":218,"mw-messageservice/MessageService":219,"dojo/has":221,"dojo/Evented":222,"dojo/keys":223,"dojo/_base/array":224,"dojo/query":225,"MW/toolstrip/constants/TypeConstants":226,"dojo/dom":227,"dojo/dom-attr":228,"mw-utils/Utils":229,"dijit/Destroyable":230,"dijit/registry":231,"mw-remote/Remote":232,"mw-filename-utils/FileNameUtil":233,"rtc/model/CodeUtilities":234,"datatoolsservices/DataToolsUtils":235,"dojo/string":236,"rtc/model/DocumentUtilities":237,"dijit/focus":238,"mw-data-model/rangeUtil":239,"dojo/_base/kernel":240,"mw-notifications/Notifications":241,"dojo/_base/window":242,"mw-form/PushButton":243,"dojo/promise/all":244,"dojo/sniff":245,"dojo/_base/event":246,"mw-html-utils/HtmlUtils":247,"dojo/touch":248,"rtc/model/DocumentConstants":249,"rtc/RichTextComponentFeatureEnum":251,"rtc/plugins/export/NodeExporterInterface":252,"dojo/i18n!rtc/resources/rich_text_component/nls/actions":253,"MW/toolstrip/hashes/componentproperties/properties/VerifyComponentProperty":254,"dijit/_WidgetsInTemplateMixin":255,"dojo/topic":256,"dojo/mouse":257,"mw-form/TextField":258,"mw-form/mixins/mixinDependencyValidator":259,"rtc/model/DocumentEventUtilities":260,"equations/editor/utils/EquationPlugin":261,"mw-dialogs/Dialogs":262,"settings/settingsService":263,"MW/toolstrip/hashes/componentproperties/properties/TypeProperty":264,"MW/toolstrip/hashes/componentproperties/properties/TagProperty":265,"rtc/model/Range":266,"mw-table/enums/StateEnum":267,"equations/editor/utils/NodeUtils":268,"mw-form/Label":269,"rtc/model/Position":270,"mw-table/enums/EventEnum":271,"dijit/_Container":272,"mw-dialogs/ButtonEnum":273,"rtc/model/NodeUtilities":274,"rtc/plugins/debug/DebugServicesFactory":275,"dijit/layout/ContentPane":276,"dijit/popup":277,"variableeditor_client/VariableEditorUtils":278,"dojo/window":279,"MOTW/motw/MotwApp":280,"rtc/datamodel/FileBackingStoreUtilities":281,"rtc/browsersupport/BrowserSupportUtilities":282,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppUtilities":283,"componentframework/model/PropertySupport":284,"dojo/when":285,"mw-form/ComboBox":286,"visualcomponents/widgetview/VisualComponentsUtils":287,"mw-form/MenuItem":288,"gbtshared/mixins/view/TooltipMixin":289,"dojo/i18n!MOTW/l10n/nls/motw":290,"mw-mvm/UserMvm":291,"MW/uiframework/UIBuilderFactory":292,"mf0/util/underscoreExtended":293,"rtc/plugins/contextmenu/ContextMenuGroups":294,"gbtshared/mixins/controller/FitSizeController":295,"mw-filebrowser/actions/Action":296,"mw-mvm/RunOptions":297,"gbtshared/mixins/controller/MinimumSizeController":298,"MOTW/motw/ActionIdConstants":299,"rtc/model/io/XmlUtils":300,"mw-table/utils/Emitter":301,"dojo/_base/connect":302,"MW/toolstrip/hashes/componentproperties/properties/MnemonicProperty":303,"MW/uiframework/uicontainer/ChildProperties":304,"rtc/plugins/smartformatting/SmartFormatterUtilities":305,"dojo/_base/Deferred":306,"dijit/_FocusMixin":307,"mw-form/CheckBox":308,"mf0/util/Mf0Err":309,"MW/toolstrip/hashes/componentproperties/properties/EnabledProperty":310,"MW/toolstrip/hashes/componentproperties/properties/ActionIdProperty":311,"dijit/Tooltip":312,"rtc/model/PositionUtilities":313,"rtc/plugins/cutcopypaste/MIMETypes":314,"mw-data-model/enums/dataStoreTypes":315,"dijit/_CssStateMixin":316,"mw-form/ContextMenu":317,"dojo/loaderProxy?loader=dojo/domReady!":318,"dojo/domReady!":318,"rtc/model/io/DocumentTag":319,"rtc/plugins/language/matlab/tokenizer/MatlabTokenUtilities":320,"MW/toolstrip/hashes/componentproperties/properties/DescriptionProperty":321,"MW/toolstrip/hashes/componentproperties/properties/ShortcutProperty":322,"rtc/nodes/inner/LineNode":323,"rtc/plugins/language/matlab/tokenizer/MatlabTokenConstants":324,"graphics/MWSG/Enum":325,"mw-table/Table":326,"mw-table/functional/FunctionalUtils":327,"dijit/_Widget":328,"graphics/MWSG/Utilities":329,"mw-form/mixins/property/DisabledMixin":330,"mw-form/Menu":331,"MW/toolstrip/mixins/property/TypeMixin":332,"rtc/model/RangeUtilities":333,"rtc/view/ViewUtilities":334,"mw-form/mixins/property/VisualFamilyMixin":335,"mw-tree/utils/EventEmitter":336,"mw-table/treetable/enums/EventEnum":337,"MW/toolstrip/hashes/componentproperties/properties/TextProperty":338,"mw-overlay-utils/BusyOverlay":339,"MOTW/editor/actions/ActionIdConstants":340,"MW/uiframework/FeatureDetectionService":341,"mw-keybindings/KeyBindings":342,"mw-form/mixins/property/SizeMixin":343,"MW/layout/LayoutChildProperty":344,"mf0/Listener":345,"MW/toolstrip/hashes/componentproperties/properties/DescriptionOverrideProperty":346,"rtc/plugins/richtext/nodes/inner/RichTextParagraphNode":347,"rtc/plugins/export/OutputNodeExporterInterface":348,"visualcomponents/widgetview/standardcomponents/customdijit/_PixelConstants":349,"mw-data-model/DataStore":350,"mw-form/mixins/property/TagMixin":351,"mw-form/mixins/property/DescriptionMixin":352,"mw-form/mixins/property/TextMixin":353,"mw-form/MenuSeparator":354,"MW/layout/LayoutContainerEvent":355,"dojo/_base/fx":356,"rtc/plugins/export/xslfo/XSLFOConstants":357,"gbtshared/mixins/view/FontPropertiesMixin":358,"datatoolsservices/Observable":359,"dijit/_Contained":360,"MW/toolstrip/widgets/_WidgetMixin":361,"rtc/view/decoration/DecorationUtilities":362,"rtc/misc/UserMvmSingleton":363,"rtc/model/events/DocumentEvent":364,"graphics/MWSG/matrix4x4":365,"variableeditor_client/enums/ViewEventEnums":366,"rendererseditors/editors/_EditorBase":367,"mw-actiondataservice/ActionDataService":368,"mw-peermodel/PeerModelManager":369,"mw-form/mixins/property/ShortcutMixin":370,"rtc/plugins/execution/ExecutionActionsEnum":371,"rtc/plugins/language/matlab/syntax/mtree/nodes/MTreeNode":372,"rtc/view/ViewEventUtilities":373,"gbtshared/mixins/view/BackgroundColorMixin":374,"graphics/MWSG/Point4":375,"rendererseditors/editors/TextBoxEditor":376,"MW/uiframework/FocusManager":377,"rtc/plugins/language/matlab/utilities/MatlabPluginUtilities":378,"rtc/model/SelectionUtilities":379,"rtc/plugins/richtext/nodes/leaf/RichTextNode":380,"visualcomponents/widgetview/standardcomponents/AbstractStandardComponent":381,"datatoolsservices/Data/DataToolsRangeUtils":382,"computils-ui/CommandExecutor":383,"dojo/Stateful":384,"dojo/ready":385,"dijit/layout/_LayoutWidget":386,"MW/layout/LayoutUtils":387,"MW/statusbar/TypeConstants":388,"rtc/nodes/leaf/PlainTextNode":389,"rtc/plugins/insertionrules/InsertionRuleConstants":390,"rtc/plugins/view/layoutmanager/abstract/AbstractLayouter":391,"mw-table/treetable/utils/TreeTableUtils":392,"variableeditor_client/Plugins/PluginBase":393,"mw-table/treetable/utils/Emitter":394,"dojo/i18n!MOTW/pct/resources/parallel/web/nls/profiles":395,"mf0/TypeNames":396,"MW/toolstrip/hashes/componentproperties/properties/IsInQABProperty":397,"MOTW/motw/MotwUDCLogging":398,"rtc/view/hidden/AbstractHideAllCodeEnableDisable":399,"equationrenderercore/renderer/model/Symbols":400,"rtc/model/Selection":401,"rtc/plugins/export/docbookxml/DocBookXMLConstants":402,"rtc/model/events/NumberOfLinesChangedEvent":403,"gbtshared/mixins/controller/BackgroundColorController":404,"visualcomponents/widgetview/hmicomponents/Angle":405,"graphics/MWSG/TypedArrayUtils":406,"mw-browser-utils/BrowserUtils":407,"MW/uiframework/featuredetection/Feature":408,"mw-form/mixins/event/ChangeEventMixin":409,"dojo/debounce":410,"dijit/form/Button":411,"MW/toolstrip/mixins/property/DescriptionOverrideMixin":412,"mw-form/TextArea":413,"rtc/plugins/language/matlab/codingui/livecontrols/utilities/LiveControlWidgetUtilities":414,"rtc/plugins/language/common/AbstractEnableSyntaxHighlightingPreference":415,"rtc/plugins/codeexample/model/CodeExampleBlockNode":416,"uitest/controller/mixin/ContextMenuable":417,"filesystem_services/filesystemServicesFactory":418,"project-util-ui/ProgressDialog":419,"dojo/_base/config":420,"mw-form/mixins/PreventSelectionMixin":421,"mw-form/RadioButton":422,"MW/toolstrip/hashes/componentproperties/properties/QuickAccessIconProperty":423,"rtc/plugins/insertionrules/BaseInsertionRules":424,"rtc/plugins/language/matlab/codingui/livecontrols/nodes/LiveControlNode":425,"rtc/plugins/export/xslfo/XSLFOUtilities":426,"rtc/plugins/hyperlink/model/HyperlinkNode":427,"dojo/store/Memory":428,"mw-table/enums/DefaultsEnum":429,"put-selector/put":430,"dojo/i18n!rendererseditors/l10n/nls/app":431,"mw-form/mixins/property/IconMixin":432,"mw-form/mixins/property/ValidationMixin":433,"MW/uiframework/constants/TypeConstants":434,"MW/toolstrip/mixins/property/MnemonicKeyNavDirectionMixin":435,"MW/toolstrip/mixins/property/TextOverrideMixin":436,"rtc/plugins/view/tooltip/TooltipUtilities":437,"rtc/plugins/export/docbookxml/DocBookXMLUtilities":438,"rtc/plugins/equations/equationcontroller/nodes/EquationNode":439,"MW/componentframework/controllers/ComponentController":440,"gbtshared/mixins/controller/TooltipController":441,"gbtshared/mixins/view/VisibilityMixin":442,"dojo/i18n!project-action-ui/l10n/resources/MATLAB/project/nls/view_action":443,"MOTW/mgg/components/AbstractComponent":444,"dojo/_base/sniff":445,"mw-form/ToggleButton":446,"dojo/_base/Color":447,"MW/toolstrip/hashes/componentproperties/properties/TextOverrideProperty":448,"MW/toolstrip/mixins/property/MnemonicMixin":449,"mw-form/DropDownButton":450,"rtc/plugins/contextmenu/ContextMenuItemTypes":451,"rtc/misc/ImageURIUtilities":452,"equationrenderercore/renderer/model/utils/MathMLExtensions":453,"rtc/language/LanguageConstants":454,"rtc/plugins/execution/MessageServiceFactory":455,"visualcomponents/widgetview/hmicomponents/DomUtils":456,"graphics/MWSG/Point3":457,"graphics/MWSG/SceneTreeUtils":458,"mw-table/view/utils/EventUtils":459,"mw-table/enums/KeyCodeEnum":460,"mw-table/treetable/enums/StateEnum":461,"MOTW/pct/app/utils/html":462,"rendererseditors/renderers/_TemplateMixin":463,"MW/layout/BorderContainer":464,"MW/toolstrip/hashes/componentproperties/properties/IconProperty":465,"MW/toolstrip/mixins/property/IconMixin":466,"MW/uiframework/uicontainer/DocumentTypeProperties":467,"mw-perf/Timing":468,"rtc/model/events/nodechange/NodeChangeEventTypes":469,"rtc/nodes/InnerNode":470,"registration_framework_js/ResourceType":471,"equationrenderercore/renderer/model/utils/MathMLExportUtils":472,"rtc/plugins/sectionbreak/model/SectionBreakNode":473,"rtc/plugins/language/matlab/codingui/livecontrols/utilities/LiveControlUtilities":474,"rtc/plugins/smartformatting/SmartFormattingTriggerTypeEnum":475,"rtc/plugins/smartformatting/abstract/BlockSmartFormatter":476,"mw-gesture/GestureDetector":477,"rtc/plugins/tableofcontents/model/TableOfContentsContainer":478,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/PreferredSizeMixin":479,"MW/componentframework/controllers/ContainerControllerMixin":480,"gbtshared/mixins/controller/InteractionController":481,"gbtshared/mixins/controller/HasContextMenuController":482,"variableeditor/VariableEditorUtils":483,"MW/uiframework/uicontainer/UIComponentFactory":484,"mw-deprecation-utils/deprecation":486,"dijit/a11yclick":487,"MW/layout/TabContainer":488,"MW/toolstrip/hashes/componentproperties/properties/ErrorTextProperty":489,"MW/toolstrip/hashes/componentproperties/properties/WarningTextProperty":490,"MW/toolstrip/hashes/componentproperties/properties/ValidationStateProperty":491,"rtc/core/states/SerializablePlugin":492,"mw-tooltip/Tooltips":493,"equationrenderercore/renderer/model/exporters/LaTeXExporter":494,"rtc/plugins/export/latex/LaTeXUtilities":495,"rtc/plugins/undoredo/EditBlockConstants":496,"rtc/model/events/DeletionEvent":497,"rtc/nodes/contentconverter/base/InnerNodeContentConverter":498,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppLineNode":499,"rtc/view/coordinateconverter/CoordinateConverterUtilities":500,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/utilities/WidgetUtilities":501,"rtc/plugins/images/model/ImageNode":502,"rtc/plugins/lists/model/ListParagraph":503,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/InPlaceEditorNodeMixin":504,"graphics/InteractionObjects/BaseInteraction":505,"variableeditor_client/TableClassConstants":506,"dojo/i18n!plaincode_features/l10n/nls/publishDialog":507,"dojo/i18n!mw-filebrowser/l10n/nls/FileBrowserResources":508,"MW/motw/feature/Feature":509,"computils-ui/IconProvider":510,"MOTW/pct/app/utils/remote/MatlabWorker":511,"dojo/json":512,"dojo/io-query":513,"mw-dom-utils/domUtils":514,"mw-form/CheckBoxMenuItem":515,"mf0_sync/ConnectorChannel":516,"mf0_sync/ModelSynchronizer":517,"MW/toolstrip/mixins/property/TextMixin":518,"MW/toolstrip/mixins/property/QuickAccessIconMixin":519,"mw-form/Spinner":520,"rtc/model/io/serializers/containers/ContainerSerializer":521,"rtc/plugins/breakpoint/matlab/MatlabBreakpointInfo":522,"equationrenderercore/renderer/model/SpacingClasses":523,"rtc/plugins/export/docx/DOCXDocumentTag":524,"rtc/plugins/richtext/RichTextUtilities":525,"mw-gesture/events/Observable":526,"mw-gesture/GestureRegistry":527,"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsViewStateEnum":528,"rtc/plugins/embeddedoutputs/outputhandlers/OutputHandlerResultInstruction":529,"mw-data-model/On":530,"mw-tree/Tree":531,"mw-tree/utils/KeyCodeEnum":532,"visualcomponents/widgetview/hmicomponents/RadialTickComponent":533,"datatoolsservices/WidgetRegistry":534,"dojo/i18n!MOTW/l10n/nls/toolstrip":535,"dojo/i18n!MOTW/l10n/nls/figuretoolstrip":536,"dojo/i18n!MOTW/l10n/nls/editor":537,"dojo/i18n!importtool_client/l10n/nls/app":538,"MOTW/pct/app/utils/remote/PeerModel":539,"mw-remote/RemoteEndPointsManager":540,"dijit/Viewport":541,"mw-form/PopupMenuItem":542,"MW/toolstrip/hashes/componentproperties/properties/IconOverrideProperty":543,"dojo/i18n!l10n/nls/toolstrip":544,"mw-form/mixins/ResizeMixin":545,"mw-module-loader/ModuleLoader":546,"rtc/nodes/inner/RootNode":547,"equationrenderercore/renderer/Renderer":548,"rtc/model/io/OpcPackage":549,"rtc/plugins/language/matlab/codingui/widgets/WidgetsUtility":550,"rtc/plugins/richtext/nodes/inner/HeadingNode":551,"rtc/plugins/lists/model/ListItem":552,"rtc/plugins/embeddedoutputs/outputhandlers/BaseOutputHandler":553,"graphics/mixins/EventEmitter":554,"MOTW/motw/CoreActions":555,"common_features/plugin/navigationhistory/NavigationEventTypes":556,"MOTW/mgg/containers/AbstractContainer":557,"variableeditor/views/ClientArrayView":558,"variableeditor/views/table/ArrayTable":559,"MW/uiframework/UIContainer":560,"MW/layout/SelectionBlocker":561,"dojo/i18n!l10n/nls/layout":562,"lodash/lodash.min":563,"mf0/ModelElementPrivate":564,"mf0/meta/Registry":565,"mf0/meta/RegistryTypes":566,"MW/toolstrip/constants/MiscConstants":567,"dojo/i18n!mw-dialogs/l10n/nls/dialog":568,"MW/uiframework/utils":569,"MW/toolstrip/mixins/property/IconOverrideMixin":570,"mw-colorpicker/MColor":571,"dojo/dnd/Moveable":572,"rtc/nodes/Node":573,"rtc/model/io/serializers/Serializable":574,"rtc/margin/AbstractLineMarginDecorator":575,"registration_framework_js/RegistrationFrameworkProvider":576,"rtc/model/Mutation":577,"equationrenderercore/utils/StringUtils":578,"rtc/plugins/equations/equationcontroller/view/EquationViewUtilities":579,"equationrenderercore/renderer/model/MathInnerNode":580,"rtc/plugins/language/matlab/functions/FunctionAttributeConstants":581,"rtc/plugins/richtext/ParagraphFormatsEnum":582,"rtc/plugins/language/common/AbstractAutoIndentingPreference":583,"rtc/plugins/language/matlab/codingui/autocompletions/utilities/AutoCompletionWidgetUtilities":584,"rtc/plugins/language/common/syntaxhighlighter/Color":585,"mw-gesture/functional/FunctionalUtils":586,"rtc/plugins/embeddedoutputs/outputhandlers/OutputHandlerResult":587,"equations/editor/utils/CursorUtils":588,"rtc/clipboardservice/ClipboardService":589,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/WordWrapMixin":590,"mw-tree/utils/TreeUtils":591,"gbtshared/mixins/controller/VisibleController":592,"mw-table/enums/TableSectionEnum":593,"mw-table/editors/DefaultEditor":594,"mw-tabular-data-model/rangeUtil":595,"variableeditor_client/ViewUpdatedListenersMixin":596,"panel-utilities-js/CheckboxAttribute":597,"project-action-ui/_impl/FileSetProjectCommand":598,"dojo/i18n!currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/actions":599,"dojo/i18n!MOTW/l10n/nls/dialog":600,"dojo/i18n!project-labels-ui/l10n/gen/resources/MATLAB/project/nls/view_labels":601,"MOTW/pct/app/utils/UI":602,"dojo/i18n!inspector_client/l10n/nls/app":603,"rendererseditors/editors/_BaseRichEditor":604,"dojo/domReady":605,"mw-keybindings/BindingUtils":606,"mw-form/mixins/AccessibilityClickMixin":607,"mw-form/mixins/property/CheckedMixin":608,"dijit/MenuItem":609,"mf0/util/LogVerbosity":610,"mf0/Model":611,"mf0/io/PropertyCategory":612,"MW/toolstrip/hashes/componentproperties/properties/SelectedProperty":613,"dojo/fx":614,"rtc/events/KeyHandlerUtilities":615,"rtc/plugins/contextmenu/ContextMenuContributor":616,"mw-mvm/WhenToDequeue":617,"equationrenderercore/renderer/model/utils/NodeFactory":618,"rtc/plugins/embeddedoutputs/outputhandlers/error/ErrorOutputProperties":619,"rtc/plugins/smartformatting/abstract/AbstractSmartFormatter":620,"rtc/plugins/export/xslfo/BaseInnerNode2XSLFO":621,"mw-gesture/util/RecognizerDataUtil":622,"rtc/plugins/embeddedoutputs/model/RegionUtilities":623,"rtc/plugins/embeddedoutputs/outputhandlers/OutputHandlerUtility":624,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppActions":625,"dojo/i18n!l10n/nls/liveControls":626,"rtc/misc/HyperlinkURLUtilities":627,"rtc/plugins/tableofcontents/model/TableOfContentsList":628,"rtc/plugins/tableofcontents/model/TableOfContentsHeadingNode":629,"viewmodel/factory/ManagerFactoryProducer":630,"graphics/MWSG/shader/WebGLShaderVariables":631,"mw-table/adaptors/AdaptorUtils":632,"mw-table/enums/DnDEnum":633,"mw-table/renderers/DefaultRenderer":634,"variableeditor_peer/HeaderMenus/NumericViewColumnConstants":635,"mw-table/treetable/enums/KeyCodeEnum":636,"rtc/RichTextComponentFactory":637,"rtc/plugins/language/external/ExternalLanguageSupportRegistry":638,"rtc/plugins/language/external/syntaxhighlighter/ExternalSyntaxHighlighter":639,"rtc/plugins/language/external/syntaxhighlighter/preferences/ExternalSyntaxHighlighterPreferences":640,"mw-remote/remoteFaultCodes":641,"MOTW/editor/EditorFileUtils":642,"dojo/i18n!MOTW/l10n/nls/liveeditor":643,"common_features/plugin/navigationhistory/AbstractCursorNavigationContributor":644,"MOTW/editor/actions/LiveEditorActionIdConstants":645,"MOTW/mgg/Root":646,"MOTW/layout/_LayoutPlugin":647,"MOTW/pct/app/utils/helper":648,"dojo/request/default!":649,"dojo/request/xhr":649,"dijit/a11y":650,"dojo/parser":651,"mw-peermodel/Observable":652,"mw-form/mixins/property/IconAlignmentMixin":653,"mw-form/mixins/property/MenuMixin":654,"MW/layout/Geometry":655,"MW/layout/Restorable":656,"MW/toolstrip/constants/DisplayStateConstants":657,"MW/toolstrip/hashes/componentproperties/properties/HasDynamicPopupProperty":658,"MW/toolstrip/constants/gallery/GalleryViewConstants":659,"dojo/dnd/common":660,"mw-progress-indicator/ProgressIndicator":661,"rtc/plugins/view/layoutmanager/rules/LayoutGroupingTypes":662,"rtc/model/events/UndoableEvent":663,"rtc/plugins/cutcopypaste/mime/MimeConverter":664,"equationrenderercore/EquationRenderer":665,"rtc/plugins/export/AbstractExporter":666,"mw-string-utils/StringUtils":667,"rtc/plugins/goto/GotoUtilities":668,"rtc/plugins/richtext/HeadingUtilities":669,"rtc/nodes/utilities/TextNodeUtilities":670,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionActivities":671,"rtc/nodes/OpaqueNode":672,"rtc/plugins/language/matlab/codingui/livecontrols/WidgetTypes":673,"rtc/plugins/smartformatting/abstract/MarkdownStyleSmartFormatter":674,"mw-gesture/util/InputDataUtil":675,"mw-gesture/util/ActionDataUtil":676,"mw-gesture/gestures/_state/PositionTracker":677,"rtc/pluggability/PluginRegistryModule":678,"rtc/plugins/embeddedoutputs/EmbeddedOutputsUtilities":679,"rtc/plugins/undoredo/commands/CommandInterface":680,"rtc/plugins/embeddedoutputs/outputhandlers/figure/EventUtils":681,"dojo/i18n!l10n/nls/figureToolStrip":682,"equationrenderercore/renderer/model/exporters/MathMLExporter":683,"equations/editor/utils/IteratorConstants":684,"rtc/plugins/export/docbookxml/BaseInnerNode2DocBookXML":685,"rtc/view/coordinateconverter/base/BaseCoordinateConverter":686,"gbtshared/services/UnitsService":687,"mw-data-model/tree/utils/Cache":688,"gbtshared/layout/LayoutableUIComponentController":689,"mw-table/view/TableUtils":690,"mw-table/renderers/CheckboxRenderer":691,"aerocomponents/AbstractGaugeAeroblks":692,"variableeditor_client/VECssClassConstants":693,"dojo/i18n!variableeditor_peer/l10n/nls/peerarrayviewmodel":694,"dijit/TitlePane":695,"editorpanels-ui/BaseLanguagePanel":696,"dgrid/Selection":697,"MOTW/dialog/dialogStateManager":698,"dojo/i18n!MOTW/l10n/nls/wraLogin":699,"MOTW/pct/app/cluster/profiles/ProfileUtils":700,"MOTW/pct/app/cluster/profiles/model/ProfileManager":701,"MOTW/pct/app/status/session/State":702,"mw-keybindings/KeyBindingsFactory":703,"viewmodel/impl/utilities/MetadataUtil":704,"viewmodel/impl/utilities/ViewModelEventsUtility":705,"MW/toolstrip/hashes/componentproperties/properties/ButtonGroupNameProperty":706,"MW/toolstrip/hashes/componentproperties/properties/PopupIdProperty":707,"MW/toolstrip/hashes/componentproperties/properties/PreventRestoreFocusProperty":708,"MW/toolstrip/hashes/componentproperties/properties/ShowTextProperty":709,"MW/toolstrip/mixins/property/TooltipMixin":710,"MW/toolstrip/mixins/property/SizeMixin":711,"dijit/_base/manager":712,"dojo/dnd/Mover":713,"MW/uiframework/contextmanager/ContextManagerFactory":714,"MW/uiframework/PreferenceDirectoryService":715,"rtc/events/MouseEventUtil":716,"rtc/plugins/breakpoint/matlab/MatlabBreakpointUtilities":717,"equationrenderercore/renderer/Utilities":718,"rtc/plugins/descriptivetooltip/DescriptiveTooltip":719,"rtc/plugins/language/common/autoindent/ExchangeService":720,"rtc/plugins/export/html/HTMLExportUtilities":721,"rtc/plugins/export/html/BaseInnerNode2HTML":722,"dijit/form/TextBox":725,"MW/editorremoteutilities/FileOperations":726,"rtc/plugins/language/matlab/codingui/autocompletions/utilities/AutoCompletionUtilities":727,"rtc/plugins/smartformatting/abstract/ParagraphFormatSmartFormatter":728,"equations/editor/utils/Templates":729,"rtc/plugins/language/matlab/codingui/liveapps/utilities/LiveAppWidgetUtilities":730,"rtc/nodes/contentconverter/base/LeafNodeContentConverter":731,"rtc/plugins/codeexample/CodeExampleEnum":732,"rtc/plugins/hyperlink/model/HyperlinkUtilities":733,"gbtshared/mixins/controller/LayoutableController":734,"graphics/graphicscontrol/GenericControl":735,"gbtshared/util/EventSupport":736,"gbtshared/mixins/controller/ContainerResizeController":737,"mw-table/enums/MouseCodeEnum":738,"mw-table/parsing/table/TableConfigUtils":739,"datatoolsservices/constants/ClassTypeMaps":740,"gbtshared/layout/autolayout/Constants":741,"datatoolsservices/ColumnWidthSizingPlugin":742,"rendererseditors/mwTableRenderers/TextRenderer":743,"variableeditor_client/Plugins/Selection/SelectionUtils":744,"rtc/model/events/nodechange/NodeChangeEventBase":745,"rtc/plugins/undoredo/commands/CommandConstants":746,"dojo/i18n!editorpanels-ui/l10n/nls/FontsPanelLabels":747,"rtc_javascript_language_support/plugins/syntaxhighlighter/JavaScriptSyntaxTokenTypes":748,"dgrid/util/misc":749,"dgrid/Keyboard":750,"mldriveecjsservices/MatlabDriveAccessService":751,"MOTW/toolstrip/managers/GalleryManagerBase":752,"dojo/store/Observable":753,"dojo/i18n!mw-dialog-utils/l10n/nls/dialog":754,"dojo/i18n!liveeditor/l10n/nls/sysobj":755,"MOTW/dialog/MotwDialogUtils":756,"MOTW/editor/language/matlab/ActionProvider":757,"computils-ui/ViewModel":758,"dojo/i18n!project-core-ui/l10n/gen/resources/MATLAB/project/nls/view_core":759,"MOTW/mgg/containers/Panel":760,"MOTW/mgg/utils/TextUtils":761,"MOTW/mgg/components/_DelegatingComponent":762,"MOTW/pct/app/utils/log/LogManager":763,"inspector_client/InspectorObject":764,"dojo/_base/xhr":765,"mw-remote/messages/ClientType":766,"mw-keybindings/DefaultKeys":767,"mw-event-utils/platformize":768,"mw-form/mixins/property/HorizontalAlignmentMixin":769,"mw-form/mixins/AriaLabelledByMixin":770,"dojo/fx/easing":771,"mw-dialogs/controller/Resizable":772,"MW/layout/SelectionManager":773,"MW/layout/Traversable":774,"MW/layout/StatefulExtension":775,"viewmodel/impl/utilities/JSONConversionUtility":776,"mf0/collections/AbstractCollection":777,"mf0/ModelElement":778,"performance/utils/function":779,"mf0/meta/PropertySerializerRegistry":780,"MW/toolstrip/hashes/listOfNewWidgets":781,"MW/toolstrip/hashes/componentproperties/properties/DisplayStateProperty":782,"MW/toolstrip/hashes/componentproperties/properties/ClosePopupOnClickProperty":783,"MW/statusbar/properties/RegionProperty":784,"MW/toolstrip/ToolstripUtils":785,"MW/statusbar/widgets/RegionMixin":786,"mw-notifications/ProgressBar":787,"dijit/_HasDropDown":788,"MW/toolstrip/mixins/property/RemovableMixin":789,"MW/toolstrip/form/DropDownButton":790,"mw-form/mixins/property/DropDownButtonSizeMixin":791,"MW/toolstrip/mixins/property/OrientationMixin":792,"MW/toolstrip/mixins/property/ShowTextMixin":793,"dojo/dnd/Source":794,"dojo/dnd/Manager":795,"mw-colorpicker/ColorPicker":796,"MW/toolstrip/mixins/AcceptFocusMixin":797,"MW/uiframework/uicontainer/ChildWindowManager":798,"rtc/events/MultistrokeShortcutUtilities":799,"dojo/i18n!rtc/resources/rich_text_component/nls/breakpoints":800,"mw-mvm/CapabilitiesList":801,"equationrenderercore/renderer/model/utils/MathNodeUtils":802,"rtc/model/SelectionTreeWalker":803,"mw-draganddrop/DragAndDrop":804,"rtc/plugins/ddux/DDUXContributor":805,"rtc/plugins/export/ExportUtilities":806,"rtc/margin/AbstractRangeMarginDecorator":807,"rtc/margin/MarginRangeDescription":808,"rtc/plugins/fontprefs/FontCssUtilities":809,"rtc/EditorUtilities":810,"rtc/plugins/execution/range/AbstractExecutionRange":811,"rtc/plugins/language/matlab/alert/AlertTypeEnum":812,"rtc/plugins/language/common/autoindent/AutoIndentProvider":813,"rtc/plugins/language/matlab/codingui/autocompletions/WidgetTypes":814,"rtc/plugins/language/matlab/codingui/autocompletions/utilities/AutoCompletionContextUtilities":815,"rtc/plugins/language/matlab/codingui/livecontrols/ExecutionModelTypes":816,"rtc/plugins/language/matlab/variablehighlighting/VariableHighlightClassEnum":817,"rtc/nodes/nodeconversionrules/base/AbstractNodeConversionRules":818,"rtc/plugins/language/common/smartindenting/preferences/SmartIndentPreferenceProvider":819,"rtc/plugins/language/common/tokenizer/preferences/MaxTokenizationLineLengthPreferenceProvider":820,"rtc/plugins/language/common/syntaxhighlighter/SyntaxHighlightingColorContributor":821,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppInlineNode":822,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppIntegratedInlineNode":823,"mw-gesture/util/GeomUtil":824,"mw-gesture/recognizers/RecognizerStates":825,"rtc/plugins/view/layoutmanager/abstract/BaseRule":826,"rtc/plugins/view/banner/Banner":827,"dojo/NodeList-traverse":828,"rtc/plugins/images/ImageRemoteService":829,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/MatrixOutputUtility":830,"equations/editor/utils/Serializer":831,"dojo/_base/query":832,"rtc/plugins/language/matlab/codingui/liveapps/utilities/LiveAppSelectionUtilities":833,"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlLayouter":834,"rtc/plugins/codeexample/model/CodeExampleLineNode":835,"visualcomponents/widgetview/standardcomponents/mixins/WordWrapController":836,"visualcomponents/widgetview/standardcomponents/customdijit/PositionUtils":837,"mw-tree/view/CSSClassesEnum":838,"graphics/InteractionObjects/LimitInteractionBase":839,"gbtshared/mixins/controller/ContainerFitSizeController":840,"mw-table/utils/RendererAndEditorUtils":841,"mw-table/adaptors/selection/SelectionAdaptor":842,"datatoolsservices/ContextMenuService/ContextManagerFactoryProvider":843,"datatoolsservices/constants/CssClassConstants":844,"rtc/abstract/AbstractCodeSynchronizableMixin":845,"variableeditor_client/ViewContextConstants":846,"mw-form/SearchTextField":847,"mw-table/treetable/enums/DefaultsEnum":848,"filesystem-js-utils/promise/Deferred":849,"filechooser-ui/FileChooser2":850,"dgrid/OnDemandGrid":851,"mw-filebrowser/columns/helpers/NameComparator":852,"MOTW/addons/CommunicationChannels":853,"dojo/i18n!currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/cfb":854,"filesystem-events/bus":855,"mw-store-utils/InMemoryStore":856,"dojo/i18n!commandhistory/l10n/nls/commandhistory":857,"MOTW/editor/actions/SaveAsLiveScript":858,"MOTW/editor/actions/LiveEditorExportActions":859,"dojo/i18n!project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_file":860,"MOTW/mgg/buttons/AbstractButton":861,"dojo/i18n!MOTW/pct/resources/parallel/web/nls/connectivityCheck":862,"dojo/i18n!MOTW/pct/resources/parallel/web/nls/jobMonitor":863,"dojo/promise/Promise":864,"dijit/hccss":865,"dijit/layout/utils":866,"dijit/BackgroundIframe":867,"dojo/request":868,"mw-dialogs/controller/stopEvent":869,"mw-form/mixins/ContainerFocusMixin":870,"mw-form/mixins/property/ShowDescriptionMixin":871,"mw-form/mixins/property/CloseMenuOnClickMixin":872,"mw-form/mixins/property/ShowTextMixin":873,"mw-form/mixins/property/ShowShortcutMixin":874,"mw-form/mixins/FocusableMenuChildMixin":875,"mw-form/mixins/MenuChildResizeMixin":876,"mw-form/mixins/MenuItemAriaLabelledByMixin":877,"mw-form/mixins/property/ButtonGroupMixin":878,"mw-form/RadioButtonMenuItem":879,"mw-ddux/UsageLogger":880,"MW/layout/HidingContainer":881,"MW/layout/MaximizingContainer":882,"viewmodel/impl/ViewModelConstants":883,"mf0/Log":884,"mf0/ModelPrivate":885,"MW/toolstrip/hashes/componentproperties/properties/RemovableProperty":886,"mw-form/mixins/property/EditableMixin":887,"mw-form/mixins/property/PlaceholderMixin":888,"mw-utils/ValidationFunctions":889,"dojo/cookie":890,"dojo/regexp":891,"dijit/_mw/utils/deprecation":892,"mw-form/mixins/property/ArrowModeMixin":893,"mw-form/mixins/property/DropDownButtonArrowModeMixin":894,"MW/toolstrip/mixins/property/MenuIdMixin":895,"dijit/typematic":896,"MW/toolstrip/mixins/QabWidgetMixin":897,"MW/toolstrip/mixins/ColumnWidthMixin":898,"dojo/number":899,"dojo/i18n!l10n/nls/dialog":900,"mw-module-loader/utils/Utils":901,"MOTW/motw/UnsupportedBrowserCheck":902,"rtc/datamodel/EditorFileExtensionUtils":903,"rtc/messageservice/MessageServiceFactory":904,"rtc/plugins/tokens/matching/TokenMatchingEventHandlerProvider":905,"rtc/plugins/tokens/highlighting/TokenHighlightingNotifierProvider":906,"rtc/datamodel/FileBackingStore":907,"rtc/margin/DecoratableLineMargin":908,"rtc/registrationframework/RegistrationFrameworkHelper":909,"rtc/plugins/hyperlink/TooltipPreviewInterface":910,"equationrenderercore/renderer/model/utils/TeXUtils":911,"mw-navigationbar/toolbaractions/Action":912,"rtc/plugins/language/matlab/syntax/mtree/codeblocks/BlockType":913,"rtc/datamodel/BackingstoreErrorTypes":914,"rtc/abstract/AbstractCachedModelQueryService":915,"rtc/plugins/export/docx/OXmlUtils":916,"rtc/plugins/language/matlab/syntax/mtree/MTreeUtils":917,"rtc/plugins/richtext/nodes/inner/RichTextContainerNode":918,"rtc/plugins/insertionrules/BaseInsertionInstruction":919,"rtc/plugins/insertionrules/receivinginstructions/ContinueUpInstruction":920,"dojox/html/styles":921,"MW/codeanalyzer/MLintUtils":922,"rtc/cursor/CursorUtilities":923,"rtc/plugins/language/matlab/commentCode/CommentUtilities":924,"rtc/plugins/functionnotifier/FunctionStateConstants":925,"rtc/plugins/offscreennotification/OffscreenNotificationProvider":926,"rtc/plugins/language/matlab/tokenizer/MatlabTokenizer":927,"rtc/plugins/smartformatting/abstract/OpenCloseInlineSmartFormatter":928,"rtc/plugins/language/common/blockmatching/BlockMatchingProvider":929,"rtc/plugins/language/common/blockmatching/BlockMatchingViewProvider":930,"rtc/plugins/language/common/tokenizer/matching/TokenMatcherProvider":931,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppViewStates":932,"mw-gesture/util/PointerTypes":933,"rtc/plugins/embeddedoutputs/outputhandlers/BaseAutoResizingOutput":934,"rtc/plugins/embeddedoutputs/outputhandlers/BaseOutput":935,"rtc/plugins/export/html/HTMLOutputUtilities":936,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureOutputProperties":937,"rtc/plugins/embeddedoutputs/outputhandlers/floatingpalette/controllers/SimpleFloatingElement":938,"rtc/plugins/embeddedoutputs/outputhandlers/VariableUtilities":939,"equations/editor/utils/MathVariant":940,"rtc/plugins/language/matlab/codingui/liveapps/utilities/LiveAppNavigationUtilities":941,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppCustomDDUXActions":942,"rtc/plugins/language/matlab/codingui/liveapps/utilities/LiveAppVariableEditingUtilities":943,"rtc/view/coordinateconverter/base/OpaqueBoxCoordinateConverter":944,"rtc/model/events/InsertTextEvent":945,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/BaseLiveControl":946,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/utilities/ConfigurationUtility":947,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/utilities/DoubleClickUtility":948,"rtc/plugins/hyperlink/model/HyperReferenceTarget":949,"dojo/i18n!rtc/resources/rich_text_component/nls/richtext_actions":950,"mw-utils/HtmlUtils":951,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/ButtonBackgroundColorMixin":952,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/IconScalingDownMixin":953,"mw-data-model/utils/_arrayUtils":954,"mw-data-model/enums/sortEnum":955,"mw-data-model/utils/rangeListFrom":956,"mw-tree/plugins/dnd/DnDEnum":957,"dojo/date":958,"visualcomponents/widgetview/hmicomponents/ScaleColorsComponent":959,"visualcomponents/widgetview/hmicomponents/FontPropertiesControllerForHMI":960,"gbtshared/util/LayoutSupport":961,"gbtshared/mixins/controller/CanvasController":962,"graphics/mixins/GraphicsMixin":963,"graphics/system/GLUtils":964,"graphics/services/MessageServiceProxy":965,"graphics/MWSG/GLTextureUtils":966,"graphics/MWSG/ShaderConfigFcns/DrawPassShaderConfigFcns":967,"graphics/MWSG/shader/WebGLShaderOpts":968,"graphics/axes/SceneTreeAxesControlUtils":969,"gbtshared/mixins/view/ScrollableMixin":970,"gbtshared/mixins/controller/ContainerPositionController":971,"mw-table/enums/LogicalSizeEnum":972,"mw-table/controllers/navigation/CellNavigation":973,"mw-table/treetable/enums/PlatformEnum":974,"mw-clipboard/DataTransfer":975,"mw-table/enums/Flags":976,"mw-table/utils/TableUtils":977,"mw-table/enums/DataTestEnum":978,"mw-table/view/context/DnDContext":979,"datatoolsservices/ActionService/ActionDataServiceFactory":980,"variableeditor_client/ViewModel":981,"variableeditor_client/ArrayViewModel":982,"rendererseditors/mwTableRenderers/LeftAlignmentMixin":983,"rendererseditors/utils/RendererUtils":984,"rendererseditors/mwTableEditors/TextEditorBase":985,"variableeditor_peer/RemoteArrayViewModel":986,"dojo/i18n!variableeditor_peer/l10n/nls/FilteringHeaderMenu":987,"plaincode_features/plugin/publish/PublishRemoteService":988,"matlab_preferences/preferencesUI/widgets/PanelContainer":989,"matlab_preferences/preferencesUI/widgets/_AbstractPreferencePanel":990,"dojo/i18n!editorpanels-ui/l10n/nls/CodeAnalyzerPanelLabels":991,"panel-utilities-js/HyperlinkRenderer":992,"rtc/core/registry/PluginRegistryManager":993,"mw-tree-data-model/utils/Cache":994,"rtc/plugins/language/external/autoindenting/ExternalAutoIndentService":995,"rtc/plugins/language/external/smartindenting/ExternalSmartIndentingPlugin":996,"rtc_clike_language_support/plugins/syntaxhighlighter/CLikeSyntaxTokenTypes":997,"rtc/plugins/language/external/tokenizer/ExternalTokenizer":998,"rtc/plugins/language/external/tokenizer/ExternalTokenManager":999,"rtc_xml_language_support/plugins/syntaxhighlighter/XmlSyntaxTokenTypes":1e3,"registration_framework_js/utils/PluginManager":1001,"dojo/i18n!editor_actions/l10n/gen/resources/editor_integration/nls/actions":1002,"dgrid/Grid":1003,"dgrid/editor":1004,"dijit/_base/focus":1005,"MOTW/editor/actions/LiveEditorExportActionIdConstants":1006,"dojo/i18n!MOTW/l10n/nls/addons":1007,"commandwindow/CommandWindowActionEnum":1008,"commandwindow/core/output/model/OutputNode":1009,"commandwindow/core/prompt/model/PromptNode":1010,"mw-dnd/BoundedMover":1011,"MOTW/toolstrip/qab/QABContextualControls":1012,"MOTW/embeddedfigures/EmbeddedFigureActions":1013,"MOTW/editor/statusbar/displayitem/AbstractDisplayItem":1014,"dojo/i18n!MOTW/l10n/nls/mgg":1015,"project-util-ui/ToolstripWidgetFactory":1016,"project-util-ui/ProjectErrorDialog":1017,"MOTW/pct/app/ApplicationServiceProvider":1018,"MOTW/pct/app/cluster/profiles/model/Property":1019,"MOTW/pct/app/utils/query":1020,"dojo/i18n!MOTW/pct/resources/parallel/web/nls/indicator":1021,"MOTW/pct/app/cluster/profiles/_HasProfileMixin":1022,"viewmodel/impl/matlabViewModel/utilities/JSONConversionUtility":1023,"slonlineui/MessageServiceFactory":1024,"dojo/i18n!variableeditor_client/l10n/nls/VEToolstrip":1025,"glee/js/glee2/mixins/properties/_WGTooltipMixin":1026,"glee/js/glee2/mixins/properties/_WGVisibleMixin":1027,"dojo/i18n!desktop_workspacebrowser/l10n/nls/desktop_workspacebrowser":1028,"mw-popout/enum/StateEnum":1029,"coderapp-webui/ui/Constants":1030,"dojo/i18n!variableeditor/app/l10n/nls/app":1031,"dojo/errors/CancelError":1032,"dojo/request/util":1033,"dojo/html":1034,"dojo/_base/url":1035,"mw-statemachine/statemachineimpl/Trigger":1036,"mw-keybindings/Platforms":1037,"MW/layout/BorderBar":1038,"mw-form/mixins/OnOpenMixin":1039,"mw-utils/widgetUtils":1040,"mw-form/mixins/MenuItemTextColorMixin":1041,"mw-form/mixins/SingleLineTextMixin":1042,"mw-form/mixins/property/HasDynamicMenuMixin":1043,"MW/layout/ButtonBar":1044,"MW/layout/TitleBar":1045,"MW/layout/DocumentContainer":1046,"MW/layout/DocumentGroupProperties":1047,"dijit/Menu":1048,"dijit/DropDownMenu":1049,"MW/layout/PanelContainer":1050,"MW/uiframework/CssLoader":1051,"viewmodel/impl/ViewModelManagerFactory":1052,"mf0/collections/StringToStringMap":1055,"mf0/Changes":1056,"mf0/TransactionPrivate":1057,"mf0/ShallowTransaction":1058,"mf0/util/UmlSemantics":1059,"MW/toolstrip/hashes/componentproperties/properties/RemoveMessageProperty":1060,"MW/toolstrip/hashes/componentproperties/properties/DndEnabledProperty":1061,"MW/toolstrip/hashes/componentproperties/properties/ShowDescriptionProperty":1062,"mw-form/mixins/property/TextInputValueMixin":1063,"mw-form/mixins/event/TypingEventMixin":1064,"dijit/layout/TabContainer":1065,"dojo/NodeList-dom":1066,"mw-form/MenuHeader":1067,"MW/uiframework/MnemonicsStates":1068,"MW/toolstrip/mixins/ScrollbarMixin":1069,"mw-form/mixins/property/DropDownButtonIconAlignmentMixin":1070,"mw-form/mixins/property/DropDownButtonTextMixin":1071,"dojo/text!mw-form/templates/DropDownButton.html":1072,"MW/toolstrip/form/mixins/property/DropDownButtonTextMixin":1073,"MW/toolstrip/mixins/property/PreventRestoreFocusMixin":1074,"dojo/_base/NodeList":1075,"MW/toolstrip/mixins/property/ButtonGroupMixin":1076,"dojo/i18n!mw-colorpicker/l10n/nls/ColorPickerResources":1077,"mw-form/ListBox":1078,"dijit/form/_FormValueWidget":1079,"MW/uiframework/contextmanager/FeatureManager":1080,"MW/uiframework/uicontainer/WindowUtils":1081,"rtc/abstract/AbstractDestroyable":1083,"rtc/plugins/tokens/highlighting/view/TokenHighlightingViewProvider":1084,"dojo/i18n!rtc/resources/rich_text_component/nls/execution":1085,"dojo/i18n!rtc/resources/rich_text_component/nls/rtcDebug":1086,"dojo/i18n!cajsservice/resources/codeanalysis/jsapi/nls/jsapi_catalog":1087,"mw-mvm/Capability":1088,"rtc/misc/VerticalAlignmentUtilities":1089,"rtc/model/events/DocumentEventBase":1090,"equationrenderercore/renderer/model/MathBaseNode":1091,"equationrenderercore/renderer/model/MathRow":1092,"equationrenderercore/renderer/view/viewmodel/ContainerBox":1093,"equationrenderercore/renderer/view/viewmodel/AbstractBox":1094,"rtc/model/TreeWalker":1095,"rtc/nodes/LeafNode":1096,"rtc/plugins/tooltip/HoverableTooltipPlugin":1097,"mw-draganddrop/utils/BrowserFeatureSupport":1098,"dojo/i18n!mw-navigationbar/l10n/nls/navigationBar":1099,"rtc/plugins/descriptivetooltip/DescriptiveTooltipUtilities":1100,"rtc/plugins/language/matlab/syntax/mtree/nodes/IdentifierMTreeNode":1101,"rtc/core/NodeMap":1102,"rtc/model/io/part/OpcPart":1103,"rtc/nodes/leaf/TextProportionalFontNode":1104,"rtc/plugins/execution/AbstractRequestExecutor":1105,"rtc/plugins/find/FindPreference":1106,"rtc/model/DocumentEventCoalescingUtilities":1107,"rtc/plugins/language/matlab/section/SectionsList":1108,"rtc/plugins/service/ContextSensitiveHelpService":1109,"rtc/plugins/tooltip/TooltipContent":1110,"MW/editorremoteutilities/ReadWriteFileUtility":1111,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionContextEvents":1112,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionAbstractView":1113,"rtc/plugins/touch/utils/TouchUtils":1114,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlActions":1115,"rtc/model/events/FormatChangeEvent":1116,"rtc/plugins/language/matlab/variableservice/VariableUtilities":1117,"rtc/plugins/offscreennotification/OffscreenNotificationUtils":1118,"rtc/plugins/smartformatting/abstract/PairInsertSmartFormatter":1119,"rtc/plugins/smartformatting/abstract/QuoteInsertSmartFormatter":1120,"rtc/plugins/smartformatting/abstract/InlineSmartFormatter":1121,"dojo/i18n!l10n/nls/template":1122,"rtc/plugins/language/common/tokenizer/RetokenizedLineSet":1123,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppMappings":1124,"mw-gesture/util/DomUtils":1125,"mw-gesture/util/TimeUtils":1126,"mw-gesture/timer/Timer":1127,"rtc/misc/LineEndingStyles":1128,"rtc/plugins/view/layoutmanager/LayoutConstants":1129,"rtc/plugins/view/layoutmanager/LayoutUtilities":1130,"dojo/i18n!rtc/resources/rich_text_component/nls/embeddedOutputs":1131,"dijit/form/HorizontalSlider":1132,"dojo/throttle":1133,"rtc/plugins/embeddedoutputs/view/EllipsisUtilities":1134,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/CharacterWidthUtility":1135,"rtc/plugins/embeddedoutputs/outputhandlers/VariableNameElementContainer2DocBookXML":1136,"rtc/plugins/export/OutputExporter":1137,"rtc/plugins/language/matlab/codingui/liveapps/export/BaseLiveAppLineNodeExportConverter":1138,"rtc/plugins/language/matlab/codingui/livecontrols/ExecutionOnTypes":1139,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/utilities/StringUtility":1140,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/BaseConfigurationMixin":1141,"mw-slider/ruler/HorizontalRule":1142,"rtc/view/coordinateconverter/base/VerticalAlignCoordinateConverter":1143,"rtc/model/events/InsertBreakEvent":1144,"dijit/form/ComboBox":1145,"rtc/view/coordinateconverter/base/TextCoordinateConverter":1146,"gbtclient/EmbeddedFigureFactory":1147,"gbtshared/mixins/controller/FontPropertiesController":1148,"gbtshared/util/DomElementSupport":1149,"visualcomponents/widgetview/standardcomponents/customdijit/_ReadOnlySetterMixin":1150,"gbtshared/mixins/controller/PlaceholderController":1151,"dojo/i18n!visualcomponents/resources/uicomponents/core_js/nls/WidgetView":1152,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/HorizontalClippingMixin":1153,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/HorizontalAlignmentMixin":1154,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/VerticalAlignmentMixin":1155,"visualcomponents/widgetview/AbstractTickController":1156,"visualcomponents/widgetview/StateComponentController":1157,"mw-data-model/impl/_metaData/_MetaDataRule":1158,"mw-tree/utils/Truncation":1159,"mw-datepicker/utils/locale":1160,"visualcomponents/widgetview/hmicomponents/AbstractSvgView":1161,"gbtshared/layout/autolayout/ComponentAutoLayoutInfo":1162,"uitest/controller/utils/PollingTool":1163,"graphics/services/PubSubLogger":1164,"graphics/SceneWidgets/GraphicsView":1165,"graphics/MWSG/TextUtils":1166,"graphics/MWSG/View":1167,"graphics/axes/AxisDecorationMixin":1168,"graphics/InteractionObjects/DragResponse":1169,"gbtshared/mixins/controller/CanvasHostContainerPositionController":1170,"gbtcomponents/controller/interface/DivFigureMsgFromServerInterface":1171,"gbtcomponents/strategy/UIFigureResizableStrategy":1172,"mw-table/enums/FieldEnum":1173,"mw-table/view/utils/Highlight":1174,"mw-table/utils/rangeInterface":1175,"mw-table/enums/GridStyleEnum":1176,"mw-table/functional/Lens":1177,"mw-table/utils/ColumnUtils":1178,"mw-table/parsing/table/HeaderConfigUtils":1179,"mw-table/view/hoc/withEditor":1180,"mw-table/view/EditableColumnHeader":1181,"datatoolsservices/ContextMenuService/ContextPublishingUtils":1182,"mw-table/editors/ComboBoxEditor":1183,"gbtshared/layout/autolayout/AutoLayoutEdge":1184,"variableeditor_client/Manager":1185,"variableeditor_client/Document":1186,"variableeditor_client/TableViewModel":1187,"variableeditor_client/Data/VEMetaDataStore":1188,"rendererseditors/mwTableRenderers/RendererBase":1189,"rendererseditors/mwTableRenderers/RightAlignmentMixin":1190,"rendererseditors/mwTableRenderers/CenterAlignmentMixin":1191,"rendererseditors/mwTableRenderers/SpanRenderer":1192,"rendererseditors/mwTableRenderers/TableRenderer":1193,"variableeditor_client/Data/VETableConstructor":1194,"datatoolsservices/draganddrop/DragAndDropTypes":1195,"variableeditor_client/export/TabularBaseWriter":1196,"variableeditor_client/export/TabularExportUtils":1197,"variableeditor_peer/HeaderMenus/NumericHeaderMenuWidget":1198,"dojo/i18n!variableeditor_client/l10n/nls/CategoricalCleaner":1199,"variableeditor_peer/RemoteManager":1200,"livecode_features/plugin/variableeditor/InteractiveOutputConstants":1201,"plaincode_saveload/plugin/PlainCodeSaveLoadContributor":1202,"dojo/i18n!plaincode_features/l10n/nls/pageSetupDialog":1203,"plaincode_features/plugin/publish/view/PublishDialogSettingsHelper":1204,"mw-table/treetable/utils/RangeInterface":1205,"mw-table/treetable/view/TableCell":1206,"panel-utilities-js/ColorPickerUtility":1207,"rtc/core/AbstractPluginResolver":1208,"rtc/model/io/PlainTextGeneratorVisitor":1209,"rtc/core/_dependencyinjector/RegistryBasedDependencyInjector":1210,"mw-tree-data-model/rangeUtil":1211,"mw-tree-data-model/utils/_arrayUtils":1212,"dojo/i18n!javascriptpanel-ui/l10n/nls/LanguageJavaScriptPanelLabels":1213,"rtc_javascript_language_support/plugins/syntaxhighlighter/JavaScriptColorMapDefaults":1214,"dgrid/List":1215,"fsui-config/config":1216,"dojo/i18n!project-util-ui/l10n/gen/resources/MATLAB/project/nls/view_util":1217,"mldosharing-js/ui/SharingManagerProvider":1218,"pathdataservice-js/js/PathDataServiceProvider":1219,"filesystem-js-utils/promise/promiseUtils":1220,"MOTW/editor/actions/LiveEditorConstants":1221,"MOTW/addons/AddOnsActionIdConstants":1222,"MOTW/iframecontainer/IframeContainer":1223,"dojo/i18n!currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/upload":1224,"currentfolderbrowser-ui/service/FileDataServiceProvider":1225,"dojo/i18n!commandwindow/resources/commandwindow/nls/commandwindow":1226,"commandwindow/core/prompt/PromptUtils":1227,"mw-dialog-utils/DialogDisplayUtilities":1228,"MOTW/dialog/SupportedFileNameUtil":1229,"MOTW/dialog/SaveAsDialog":1230,"MOTW/motw/About":1231,"dojo/i18n!project-creation/resources/MATLAB/project/nls/view_creation":1232,"MOTW/editor/actions/EquationEditorActionIdConstants":1233,"MOTW/editor/EditorFactoryUtils":1234,"MOTW/editor/statusbar/displaygroup/AbstractDisplayGroup":1235,"dojo/date/locale":1236,"MOTW/wra/HealthCheckUtil":1237,"dojo/i18n!matlab_favorite_commands/l10n/nls/favcommands":1238,"importtool_client/renderers/ImportToolRenderer":1239,"MOTW/layout/_ContainerManagerMixin":1240,"MOTW/layout/ActiveWindowManager":1241,"dojo/i18n!mw-login/l10n/nls/app":1242,"dojo/i18n!cmlink-git-lib/l10n/gen/resources/shared_cmlink/nls/view_commit":1243,"dojo/i18n!project-labels-ui/l10n/gen/resources/MATLAB/project/nls/view_action":1244,"dojo/i18n!project-references-ui/l10n/gen/resources/MATLAB/project/nls/view_references":1245,"dijit/form/HorizontalRule":1246,"mw-style-utils/StyleUtils":1247,"MOTW/pct/app/cluster/profiles/model/ValidationManager":1248,"MOTW/pct/app/status/session/SessionProxy":1249,"dojo/i18n!MOTW/pct/resources/parallel/web/nls/common":1250,"MOTW/pct/app/cluster/profiles/ProfileDisplay":1251,"MOTW/pct/app/cloud/model/controllers/AbstractController":1252,"dojo/i18n!MOTW/pct/resources/parallel/web/nls/discover":1253,"dgrid/extensions/DijitRegistry":1254,"MOTW/pct/app/cluster/profiles/property/editors/TextPropertyEditor":1255,"MOTW/pct/app/cluster/profiles/toolstrip/ActionIdConstants":1256,"inspector_client/factory/InspectorConstants":1257,"rendererseditors/utils/_ColorUtils":1258,"rendererseditors/editors/ComboBoxEditor":1259,"inspector_client/factory/InspectorFactory":1260,"slonlineui/utils/SoFeature":1261,"variableeditor_client/toolstrip/VEToolstripTags":1262,"mlc/util/readEnv":1263,"mlc/ui/widgetUtils":1264,"dojo/errors/create":1265,"dojo/request/watch":1266,"dojo/errors/RequestError":1267,"mw-log/util/LogUtils":1268,"mw-remote/iframeproxy/IframeProxyClient":1269,"mw-remote/defaultMessageMapping":1270,"mw-remote/impl/Transaction":1271,"mw-utils/deprecation":1272,"mw-remote/utils/SendMessageUtil":1273,"dojo/hccss":1274,"dojo/date/stamp":1275,"dijit/place":1276,"mw-statemachine/StateMachine":1277,"mw-deferred-utils/Deferred":1278,"mw-peermodel/_PeerModelListenerMixin":1279,"mw-form/mixins/property/VerticalAlignmentMixin":1280,"mw-form/mixins/IconAndTextSizingMixin":1281,"mw-form/mixins/MenuKeyNavMixin":1282,"mw-form/mixins/OnCloseMixin":1283,"mw-form/mixins/MenuFocusMixin":1284,"mw-form/mixins/property/MaxHeightMixin":1285,"mw-form/mixins/PreventFocusMixin":1286,"MW/layout/ActionsMenu":1287,"MW/layout/AnimationTiming":1288,"viewmodel/impl/commitstrategy/AbstractCommitStrategy":1289,"mf0/collections/Set":1290,"mf0/collections/Sequence":1291,"mf0/meta/RegistryCore":1293,"performance/cache/simple-caches":1294,"mf0/util/UmlSyntax":1295,"mf0/io/JSONModelTraverser":1296,"mf0/io/ElementId":1297,"mf0/io/JSONConstants":1298,"viewmodel/interface/listener/AbstractEventObservable":1299,"MW/toolstrip/constants/QABAuthoringModeConstants":1300,"MW/toolstrip/constants/DisplayModeConstants":1301,"MW/toolstrip/hashes/componentproperties/properties/TitleProperty":1302,"MW/toolstrip/hashes/componentproperties/properties/AllowDeselectionInButtonGroupProperty":1303,"MW/toolstrip/hashes/componentproperties/properties/PlaceholderTextProperty":1304,"MW/toolstrip/hashes/componentproperties/properties/EditableProperty":1305,"MW/toolstrip/hashes/componentproperties/properties/GalleryItemRowCountProperty":1306,"MW/toolstrip/hashes/componentproperties/properties/GalleryItemTextLineCountProperty":1307,"MW/toolstrip/hashes/componentproperties/properties/GalleryItemWidthProperty":1308,"MW/toolstrip/hashes/componentproperties/properties/ScrollToSelectionProperty":1309,"MW/toolstrip/constants/gallery/ListViewDisplayDensityConstants":1310,"MW/toolstrip/hashes/componentproperties/properties/AnimationProperty":1311,"MW/statusbar/properties/WidthProperty":1312,"MW/statusbar/widgets/WidthMixin":1313,"dijit/layout/StackContainer":1314,"dijit/form/ToggleButton":1315,"mw-notifications/IconAndMessageWidget":1316,"MW/toolstrip/menu/PopupList":1317,"mw-form/mixins/SplitTypeButtonsAriaLabelledByMixin":1318,"MW/toolstrip/form/mixins/property/DropDownButtonSizeMixin":1319,"MW/toolstrip/utils/DragSorter":1320,"MW/toolstrip/form/SearchTextField":1321,"MW/toolstrip/mixins/property/MenuMixin":1322,"MW/toolstrip/form/mixins/property/DropDownLikeButtonA11yMixin":1323,"MW/toolstrip/widgets/_ChildrenWrapperMixin":1324,"mw-form/MenuPanel":1325,"dojo/_base/html":1326,"dojo/dnd/autoscroll":1327,"MW/toolstrip/form/SplitButton":1328,"mw-form/SplitButton":1329,"MW/toolstrip/qab/QABDropDownButton":1330,"mw-form/TextFieldMenuItem":1331,"MW/toolstrip/widgets/_TooltipMixin":1332,"MW/window/AbstractStatefulWindow":1333,"MW/uiframework/uicontainer/DockingManager":1334,"mw-widget-api/defineWidget":1335,"mw-widget-api/WidgetBase":1336,"lit-element/lit-element.bundled":1337,"mw-progress-indicator/enums/SizeEnum":1338,"mw-progress-indicator/enums/TypeEnum":1339,"rtc/events/ActionGroup":1340,"rtc/keyBindingUtils":1341,"rtc/browsersupport/PseudoMap":1342,"rtc/plugins/tokens/highlighting/BaseTokenHighlighting":1343,"rtc/view/decoration/viewmodel/DecorationRangeDescriptor":1344,"cajsservice/source/setupChannelsForRequest":1345,"rtc/plugins/debug/AbstractDebuggerService":1346,"rtc/plugins/debug/events/AbstractEventMgrSubscriber":1347,"rtc/plugins/debug/StackFrame":1348,"rtc/plugins/breakpoint/MessageServiceFactory":1349,"rtc/plugins/contextmenu/JSContextMenuGenerator":1350,"rtc/plugins/currentlinehighlight/CurrentLineHighlightUtilities":1351,"rtc/plugins/cutcopypaste/CutCopyPasteService":1352,"rtc/plugins/cutcopypaste/HTMLGenerator":1353,"equationrenderercore/renderer/model/MathConstants":1354,"equationrenderercore/renderer/view/RendererConstants":1355,"equationrenderercore/renderer/view/FontsLoaded":1356,"equationrenderercore/renderer/model/exporters/AriaLabelExporter":1357,"equationrenderercore/renderer/model/MathAction":1358,"equationrenderercore/renderer/model/MathText":1359,"equationrenderercore/renderer/model/importers/Base":1360,"equationrenderercore/renderer/view/viewmodel/HorizontalStretchyBox":1361,"equationrenderercore/renderer/view/viewmodel/MathTextBox":1362,"rtc/model/io/NodeVisitorInterface":1365,"rtc/plugins/cutcopypaste/RTFGenerator":1366,"rtc/plugins/datatip/DataTipUtilities":1367,"mw-draganddrop/impl/HTML5DnDNativeTypes":1368,"mw-draganddrop/impl/Avatar":1369,"dojo/i18n!rtc/resources/rich_text_component/nls/breadcrumbStack":1370,"mw-navigationbar/NavigationBar":1371,"rtc/plugins/debug/StackUIUtils":1372,"rtc/plugins/execution/RunToLineEventData":1373,"rtc/plugins/language/matlab/syntax/mtree/nodes/BlockCommentMTreeNode":1374,"rtc/plugins/language/matlab/syntax/mtree/nodes/ClassdefMTreeNode":1375,"rtc/plugins/language/matlab/syntax/mtree/nodes/EnumerationMTreeNode":1376,"rtc/plugins/language/matlab/syntax/mtree/nodes/EventsMTreeNode":1377,"rtc/plugins/language/matlab/syntax/mtree/nodes/ForMTreeNode":1378,"rtc/plugins/language/matlab/syntax/mtree/nodes/FunctionDeclarationMTreeNode":1379,"rtc/plugins/language/matlab/syntax/mtree/nodes/FunctionIdentifierMTreeNode":1380,"rtc/plugins/language/matlab/syntax/mtree/nodes/IfMTreeNode":1381,"rtc/plugins/language/matlab/syntax/mtree/nodes/MethodsMTreeNode":1382,"rtc/plugins/language/matlab/syntax/mtree/nodes/PropertiesMTreeNode":1383,"rtc/plugins/language/matlab/syntax/mtree/nodes/SpmdMTreeNode":1384,"rtc/plugins/language/matlab/syntax/mtree/nodes/SwitchMTreeNode":1385,"rtc/plugins/language/matlab/syntax/mtree/nodes/TryMTreeNode":1386,"rtc/plugins/language/matlab/syntax/mtree/nodes/WhileMTreeNode":1387,"rtc/datamodel/BackingStoreRegistry":1388,"rtc/plugins/folding/AbstractFoldCandidate":1389,"rtc/plugins/print/Print":1390,"dijit/_DialogMixin":1391,"rtc/model/io/Serializers":1392,"rtc/margin/DecoratableRangeMargin":1393,"rtc/plugins/folding/FoldCandidate":1394,"rtc/plugins/settings/RtcSettingServiceBatchSubscriber":1395,"rtc/plugins/language/matlab/markup/MarkupActionsEnum":1396,"rtc/plugins/execution/LightweightExecutionRequest":1397,"rtc/plugins/execution/triggers/BaseManualTrigger":1398,"rtc/plugins/goto/GotoPreferences":1400,"dijit/form/ValidationTextBox":1401,"dijit/form/_TextBoxMixin":1402,"dojo/i18n!dijit/form/nls/validate":1403,"rtc/model/io/Writer":1404,"dojo/i18n!rtc/resources/rich_text_component/nls/functionRefactoring":1405,"rtc/plugins/tooltip/ExtendedMessageTooltipContent":1406,"dojo/i18n!rtc/resources/rich_text_component/nls/messagebar":1407,"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerAbstractActionContributor":1408,"rtc/plugins/language/matlab/codeanalyzer/CodeAnalyzerUtils":1409,"rtc/plugins/messagebar/MessageBarLayer":1410,"dojo/i18n!rtc/resources/rich_text_component/nls/tabcompletion":1411,"rtc/plugins/language/matlab/contextualselection/AbstractContextualSelectionContributor":1412,"rtc/plugins/language/matlab/commentCode/BaseWrapCommentEventInfo":1413,"cajsservice/source/setupChannelsForEvents":1414,"rtc/plugins/language/common/tokenizer/matching/AbstractTokenMatcherRules":1415,"rtc/plugins/smartformatting/abstract/ParenDeleteSmartFormatter":1416,"rtc/plugins/smartformatting/abstract/PairDeleteSmartFormatter":1417,"rtc/plugins/smartformatting/abstract/ParenCloseCharOverwritingSmartFormatter":1418,"rtc/plugins/smartformatting/abstract/CloseCharOverwritingSmartFormatter":1419,"rtc/abstract/AbstractRecursiveConverter":1420,"rtc/abstract/AbstractConverter":1421,"rtc/plugins/language/matlab/syntaxhighlighter/MatlabTokenColorUtilities":1422,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppMappingUtilities":1423,"mw-gesture/util/Directions":1424,"mw-gesture/input/PointerInputUtil":1425,"mw-gesture/events/RemovableGroup":1426,"mw-gesture/recognizers/RecognizerStateUtil":1427,"mw-gesture/util/ButtonValues":1428,"rtc/plugins/view/layoutmanager/rules/BaseGroupingRule":1429,"rtc/plugins/matlabmobile/bridge/MatlabMobileBridgeFactory":1430,"rtc/plugins/toolstrip/CompactToolstripDefaultActionIdConstants":1431,"rtcintegration/plugins/service/PrefixActionIdConverter":1432,"rtc/plugins/nodeconversionrules/NodeConversionRulesUtilities":1433,"rtc/abstract/AbstractSynchronizableMixin":1434,"rtc/plugins/accessibility/FocusUtilities":1435,"rtc/plugins/embeddedoutputs/outputhandlers/variablestring/VariableStringOutputProperties":1436,"rtc/plugins/embeddedoutputs/outputhandlers/warning/WarningOutput":1437,"rtc/misc/StringUtilities":1438,"rtc/plugins/embeddedoutputs/outputhandlers/warning/WarningOutputProperties":1439,"rtc/plugins/execution/tracking/ExecutionTrackingStoreClientInterface":1440,"rtc/model/importers/Base":1441,"rtc/plugins/export/latex/OutputExporterInterface":1442,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/PaletteRegistry":1443,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/elements/ElementFactory":1444,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/elements/ModeButtonElement":1445,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/TextInputElement":1446,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/Annotation":1447,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/SpringLoadedModePreview":1448,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/ArrowAnnotation":1449,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/AxesDecorationModePreview":1450,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/GhostGrid":1451,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/GhostLabel":1452,"rtc/plugins/embeddedoutputs/outputhandlers/floatingpalette/controllers/matrix/MatrixPromptController":1453,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/MatrixStyler":1454,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/MatrixOutputProperties":1455,"equationrenderercore/renderer/model/exporters/MATLABCodeExporter":1456,"equations/editor/utils/PriorityHandlerChain":1457,"rtc/clipboardservice/Clipboard":1458,"rtc/plugins/embeddedoutputs/model/io/CompatibilityBlock":1459,"rtc/plugins/equations/tools/EquationUtilities":1460,"dijit/form/SimpleTextarea":1461,"dojo/i18n!rtc/resources/rich_text_component/nls/liveApps":1462,"mw-dom-snapshot-utils/DomSnapshotUtils":1463,"rtc/plugins/export/docbookxml/Image2DocBookXMLUtility":1464,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlInsertActions":1465,"rtc/plugins/language/matlab/codingui/livecontrols/nodes/ButtonControlNode":1466,"rtc/plugins/language/matlab/codingui/livecontrols/nodes/CheckboxControlNode":1467,"rtc/plugins/language/matlab/codingui/livecontrols/nodes/DropdownControlNode":1468,"rtc/plugins/language/matlab/codingui/livecontrols/nodes/EditfieldControlNode":1469,"rtc/plugins/language/matlab/codingui/livecontrols/nodes/SliderControlNode":1470,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/base/AbstractExecutableCodeConverter":1471,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/PropertyDisplayValuesManifest":1472,"mw-slider/ruler/HorizontalRuleLabels":1473,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/LinkedDefaultValueMixin":1474,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/TooltipMixin":1475,"rtc/plugins/hyperlink/model/URLSanitizer":1476,"rtc/plugins/hyperlink/export/HyperlinkExportUtilities":1477,"rtc/plugins/insertionrules/receivinginstructions/InsertAlternateNodeInstruction":1478,"dijit/form/RadioButton":1479,"dijit/form/CheckBox":1480,"dojo/store/util/QueryResults":1481,"rtc/model/io/serializers/containers/ListItemContainerSerializer":1482,"rtc/model/io/serializers/containers/RichTextContainerSerializer":1483,"rtc/model/io/Reader":1484,"MW/componentframework/UIBuilderBase":1485,"gbtclient/ApplicationManifest":1486,"MW/componentframework/manifest/ComponentSetManifest":1487,"gbtshared/services/FontFallBackService":1488,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/IconAlignmentCenterMixin":1489,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/ButtonWordWrapMixin":1490,"visualcomponents/widgetview/standardcomponents/AbstractDijitView":1491,"visualcomponents/widgetview/WidgetView":1492,"gbtshared/mixins/controller/ComponentPositionController":1493,"gbtshared/mixins/controller/ContextMenuMap":1494,"gbtshared/mixins/controller/FocusableController":1495,"visualcomponents/widgetview/standardcomponents/AbstractButton":1496,"gbtshared/mixins/view/DisablePointerEventsMixin":1497,"gbtshared/mixins/view/EnableMixin":1498,"gbtshared/util/LinkUtils":1499,"visualcomponents/widgetview/ZoomUtils":1500,"mw-data-model/tree/impl/_proxyNode":1501,"mw-data-model/enums/saveEnum":1502,"mw-data-model/impl/_sort":1503,"mw-data-model/enums/compareEnum":1504,"mw-tree/utils/Highlight":1505,"mw-tree/utils/TREE_NODE_STATES_ENUM":1506,"mw-data-model/DataModel":1507,"mw-datepicker/DatePicker":1508,"visualcomponents/widgetview/hmicomponents/AbstractGauge":1509,"visualcomponents/widgetview/hmicomponents/OrientationComponent":1510,"componentframework/model/BaseModelMethods":1511,"gbtshared/mixins/controller/LayoutableControllerForFreeFormComponents":1512,"gbtshared/mixins/controller/MWTooltipController":1513,"graphics/mixins/PlainObjectSerializable":1514,"graphics/MWSG/transparency/DepthPeelerResourceManager":1515,"graphics/MWSG/shader/WebGLShaderConfiguration":1516,"graphics/MWSG/Rectangle":1517,"graphics/MWSG/LineUtils":1518,"graphics/MWSG/MarkerUtils_WebGL2":1519,"graphics/MWSG/LightingUtils":1520,"graphics/MWSG/shader/AlignVertexCentersSourceProvider":1521,"graphics/MWSG/PipelineCmds":1522,"graphics/MWSG/Plane3":1523,"graphics/axes/SceneNodeProxy":1524,"graphics/axes/NullValueSceneNodeProxy":1525,"graphics/axes/AxesExternalInterface":1526,"graphics/utilities/SingleShotZoomHelper":1527,"graphics/utilities/BoundsHelper":1528,"graphics/InteractionObjects/EnterExitInteraction":1529,"gbtshared/mixins/view/PositionMixin":1530,"mw-table/renderers/IconLabelRenderer":1531,"mw-table/enums/ResizeSelectionEnum":1532,"mw-table/treetable/enums/EnumUtils":1533,"mw-table/view/TableCell":1534,"mw-table/utils/CellUtils":1535,"mw-table/view/hooks/useTooltip":1536,"mw-table/view/EditorComponent":1537,"mw-table/view/hoc/withTooltip":1538,"mw-table/utils/Throttle":1539,"mw-table/view/ColumnHeader":1540,"mw-table/view/hoc/withContextMenu":1541,"datatoolsservices/ContextMenuService/ContextMenuManager":1542,"datatoolsservices/CmdLineCodePublishService":1543,"gbtcomponents/controller/utils/UITableWidgetRegistryUtil":1544,"datatoolsservices/Data/RemoteDataStore":1545,"datatoolsservices/Data/MetaDataStore":1546,"datatoolsservices/Data/TableConstructor":1547,"datatoolsservices/Data/PubSubDataProvider":1548,"gbtcomponents/controller/plugins/TableSelectionPlugin":1549,"gbtshared/mixins/controller/ScrollableController":1550,"uitest/UILock":1551,"variableeditor_peer/RemoteTableViewModel":1552,"rendererseditors/mwTableRenderers/TableRendererBase":1553,"rendererseditors/renderers/_VEEditorConverterMixin":1554,"variableeditor_client/Plugins/RowBasedSelection":1555,"variableeditor_peer/DialogCreationUtils":1556,"variableeditor_peer/HeaderMenus/SelectionRangeMixin":1557,"variableeditor_peer/TextBoxEditor":1558,"variableeditor_client/SingleCharacterWidthCalcUtils":1559,"variableeditor_peer/MixedDataStoreWrapper":1560,"datatoolsservices/ContextMenuService/ContextUpdateManager":1561,"variableeditor_peer/MF0ViewModelVEProvider":1562,"livecode_features/plugin/variableeditor/InteractiveVariableOutput":1563,"livecode_features/plugin/variableeditor/InteractiveVariablePromptController":1564,"dojo/i18n!livecode_features/l10n/nls/interactiveVariableOutput":1565,"datatoolsservices/WorkspaceDisplayService":1566,"dijit/Fieldset":1567,"dojo/text!matlab_preferences/preferencesUI/preferencePanels/templates/GeneralPreferencePanel.html":1568,"dojo/i18n!editorpanels-ui/l10n/nls/ProgrammingToolsPanelLabels":1569,"editorpanels-ui/utility/codeanalyzer/CodeAnalyzerPanelSettings":1570,"editorpanels-ui/utility/codeanalyzer/CodeAnalyzerTree":1571,"rtc/core/states/StatesTransferManager":1572,"rtc/core/states/StatesTransferUtils":1573,"rtc/core/_dependencyinjector/CachedDependencyInjector":1574,"rtc/core/_dependencyinjector/DependencyInjector":1575,"rtc/core/provider/SubsystemPluginsProviderUtilities":1576,"rtc/abstract/AbstractRecursiveConverterPlugin":1577,"rtc/abstract/AbstractConverterPlugin":1578,"rtc/plugins/cutcopypaste/mime/PlainTextMimeConverter":1579,"rtc/plugins/functionnotifier/AbstractFunctionNotifier":1580,"rtc/plugins/language/common/tokenizer/LineTokensInfo":1581,"rtc/plugins/language/common/tokenizer/PositionalToken":1582,"rtc/plugins/execution/AbstractBusyIdleService":1583,"rtc/plugins/service/hover/AbstractActionHoverNotifier":1584,"rtc/plugins/settings/InMemorySettingService":1585,"editorpanels-ui/FontUtilities":1586,"dojo/i18n!editorpanels-ui/l10n/nls/LanguageMATLABPanelLabels":1587,"dojo/i18n!cpanel-ui/l10n/nls/LanguageCLikePanelLabels":1588,"rtc_clike_language_support/plugins/syntaxhighlighter/CLikeColorMapDefaults":1589,"rtc/plugins/language/external/tokenizer/matching/ExternalBasicTokenMatcherRulesProvider":1590,"rtc_java_language_support/plugins/syntaxhighlighter/JavaSyntaxTokenTypes":1591,"dojo/i18n!xmlpanel-ui/l10n/nls/LanguageXmlPanelLabels":1592,"rtc_xml_language_support/plugins/syntaxhighlighter/XmlColorMapDefaults":1593,"CodeMirror/MW/javascript":1594,"dojo/text!javascriptpanel-ui/templates/LanguageJavaScriptPanel.html":1595,"dojo/text!javascriptpanel-ui/templates/LanguageJavascriptPanelSyntaxEditorSampleText.html":1596,"javascriptpanel-ui/ColorPickerConstants":1597,"javascriptpanel-ui/CommonLanguageRegistry":1598,"rtc_javascript_language_support/plugins/syntaxhighlighter/JavaScriptSyntaxHighlightingColorContributorProvider":1599,"physmod_simscape_language_editor/plugins/tokenizer/SimscapeTokenConstants":1600,"mw-filebrowser/FileBrowser":1601,"dgrid/util/has-css3":1602,"mw-filebrowser/grid/FileBrowserSortProperty":1603,"mw-filebrowser/columns/FileBrowserColumnRegistry":1604,"mw-filebrowser/columns/NameColumn":1605,"mw-filebrowser/columns/SizeColumn":1606,"mw-filebrowser/columns/DateModifiedColumn":1607,"mw-filebrowser/columns/TypeColumn":1608,"file_chooser_service_js/FileChooserService":1609,"dojo/i18n!sharing_actions/resources/MATLABDrive/nls/desktop":1610,"dojo/i18n!matlabdrive_js/resources/MATLABDrive/nls/desktop":1611,"mw-remote/ServerModuleInitializer":1612,"filechooser-ui/mixins/FileTypeFilterMixin":1613,"matlab_sourcecontrol_javascript-ui/CommunicationMessages":1614,"filebrowser_utils-ui/js/helpers/DefaultFileNameValidator":1615,"currentfolderbrowser-ui/service/WatchReasons":1616,"cmlink-core-ui/SourceControlStatusCache":1617,"currentfolderbrowser-ui/service/DefaultFileComparator":1618,"filebrowser_utils-ui/js/helpers/NameComparator":1619,"commandhistory/js/CommandHistoryManager":1620,"dojo/i18n!liveeditor/l10n/nls/matlabunit":1621,"dojo/i18n!matlab_preferences/l10n/nls/preferencePanel":1622,"dojo/i18n!clone/resources/shared_cmlink/nls/view_clone":1623,"dojo/i18n!mw-feedback-dialog/l10n/nls/feedbackDialog":1624,"MOTW/postMessageRequestHandlers/RemoteUtil":1625,"MOTW/motw/loadDefaultConfig":1626,"gbtcomponents/controller/interface/AppMsgFromServerInterface":1627,"MOTW/toolstrip/configs/figure/FigureTabGroupConfig2":1628,"MOTW/toolstrip/configs/figure/CameraToolbarTabGroupConfig":1629,"MOTW/modules/divfigure/ui/FigureToolstripFactory":1630,"MOTW/embeddedfigures/EmbeddedFigurePopupsConfig":1631,"MOTW/editor/actions/FigureToolstripActionIdConstants":1632,"MOTW/modules/divfigure/ui/PlotEditTabGroupFactory":1633,"MOTW/modules/divfigure/ui/CameraTabGroupFactory":1634,"dojo/i18n!MOTW/l10n/nls/equationeditor":1635,"rtcintegration/plugins/runconfiguration/editor/RunButtonDataContributor":1636,"dojo/i18n!rtc/resources/rich_text_component/nls/runConfigurations":1637,"rtcintegration/plugins/runconfiguration/utilities/ToolstripViewUtilities":1638,"rtc/datamodel/contentcontributor/BackingstoreContentContributor":1639,"MOTW/layout/Layout":1640,"MOTW/editor/plugins/statusbar/OnlineEditorStatusBarUpdaterProvider":1641,"liveeditor/plugin/external/matlabunit/ActiveFileService":1642,"liveeditor/plugin/external/matlabunit/Utils":1643,"MOTW/editor/actions/EditorActionIdConverter":1644,"liveeditor/plugin/external/sysobj/Utils":1645,"liveeditor/plugin/external/sysobj/ActiveFileService":1646,"datatoolsservices/draganddrop/DragAndDropHandler":1647,"MOTW/wra/mwaUtils":1648,"importtool_peer/toolstrip/PeerImportToolstripActions":1649,"MOTW/toolstrip/qab/QABPlaceHolderActionIdConstants":1650,"MOTW/mgg/dataservices/WidgetDataService":1651,"MOTW/mgg/components/_IconComponent":1652,"MOTW/mgg/table/tableCellRenderers":1653,"dijit/form/HorizontalRuleLabels":1654,"MOTW/mgg/buttons/_CheckedButton":1655,"MOTW/pct/app/cluster/profiles/model/ValidationStatus":1656,"MOTW/pct/app/ParallelServices":1657,"MOTW/pct/app/status/session/Session":1658,"MOTW/pct/app/cloud/model/Controller":1659,"MOTW/pct/app/cluster/discovery/model/DiscoveryManager":1660,"MOTW/pct/app/cluster/discovery/panes/DiscoveryPane":1661,"dgrid/extensions/ColumnResizer":1662,"MOTW/pct/app/cluster/profiles/property/editors/DropDownPropertyEditor":1663,"MOTW/pct/app/cluster/profiles/property/editors/_PropertyValueEditor":1664,"MOTW/pct/app/utils/_VisibilityMixin":1665,"MOTW/pct/app/utils/remote/FileDialogs":1666,"MOTW/pct/app/cluster/profiles/property/viewers/SimplePropertyViewer":1667,"MOTW/pct/app/cluster/profiles/toolstrip/ProfileActions":1668,"MOTW/pct/app/cloud/connectivity/_StatusMixin":1669,"rendererseditors/renderers/ColorOrderRenderer":1670,"rendererseditors/renderers/_RendererBase":1671,"rendererseditors/renderers/_VERendererMixin":1672,"rendererseditors/editors/RGBColorEditor":1673,"dijit/form/FilteringSelect":1674,"rendererseditors/editors/_BasePSTable/_PSTable":1675,"rendererseditors/editors/_BasePSTable/_PSTableController":1676,"rendererseditors/editors/TextArea":1677,"inspector_client/widget/InspectorWidget":1678,"inspector_client/objectbrowser/ObjectBrowser":1679,"inspector_client/breadcrumbs/Breadcrumbs":1680,"viewmodel/impl/matlabViewModel/MF0ViewModelConstants":1681,"dojo/i18n!MOTW/l10n/nls/sharing":1682,"slonlineui/utils/MatlabFEval":1683,"glee/js/glee2/mixins/properties/_WGDirtyMixin":1684,"testbrowser-ui/services/ActionService":1685,"testbrowser-ui/enums":1686,"mw-popout/enum/KeyCodeEnum":1687,"mw-popout/enum/TriggerEnum":1688,"mlc/util/utils":1689,"mw-webwindow/windows/IWebWindow":1690,"importtool_client/ClassConstants":1691,"variableeditor/views/table/_VETableHeaders":1692,"variableeditor/views/table/_HeadersBase":1693,"variableeditor/views/table/BlockSelection":1694,"variableeditor/views/table/_VEColumnHeaders":1695,"dojo/dom-prop":1696,"mw-log/impl/Modes":1697,"dojo/request/script":1698,"mw-event-utils/BackspaceHandler":1699,"dojo/uacss":1700,"dojox/cometd/cometd":1701,"mw-messageservice/messageserviceimpl/transportEnums":1702,"mw-messageservice/messageserviceimpl/MessageServiceBase":1703,"mw-peermodel/PeerSynchronizer":1704,"mw-deferred-utils/DeferredList":1705,"mw-peermodel/PagedData":1706,"mw-peermodel/Serializers":1707,"mw-keybindings/StandardKeySequences":1708,"mw-keybindings/shortcutStringGenerator":1709,"mw-keybindings/KeyHandler":1710,"dojo/text!mw-form/templates/Menu.html":1711,"mw-form/mixins/property/ShowIconMixin":1712,"mw-form/mixins/CheckBoxRadioButtonTextSizingMixin":1713,"dojo/text!mw-form/templates/CheckBoxRadioButtonMenuItem.html":1714,"MW/layout/TitledPane":1715,"MW/layout/Tab":1716,"MW/layout/PerWindowStateful":1717,"dijit/_MenuBase":1718,"dijit/_KeyNavContainer":1719,"dijit/_KeyNavMixin":1720,"MW/layout/TabBar":1721,"MW/layout/DocumentGroupRegistry":1722,"MW/layout/LendingTabContainer":1723,"MW/layout/TabContainerLender":1724,"MW/layout/ChildLender":1725,"MW/layout/TileContainer":1726,"mw-utils/allApprove":1727,"MW/GridPicker":1728,"MW/layout/DocumentContainerActions":1729,"MW/layout/ArrangeableBorderContainer":1730,"MW/statusbar/widgets/StatusBar":1731,"viewmodel/impl/commitstrategy/CommitStrategyTypes":1732,"mf0/util/Err":1733,"mf0/collections/Map":1734,"mf0/collections/Multimap":1735,"mf0/collections/SubsettedElementSet":1736,"mf0/util/LogSpec":1737,"mf0/Element":1738,"mf0/Instantiable":1739,"mf0/Mixable":1740,"mf0/Transaction":1741,"mf0/DeepTransaction":1742,"mf0/NestedTransaction":1743,"mf0/meta":1744,"mf0/meta/DefaultPropertySerializer":1745,"mf0/KnownOriginTransactionFactory":1746,"mf0/io/IntermediateFormatOutput":1747,"mf0/io/ModelTraverser":1748,"mf0/io/JSONSerializer":1749,"mf0/io/Visitor":1750,"mf0/io/SerializeCustomizer":1751,"mf0/io/JSONCustomizer":1752,"mf0/io/JSONParser":1753,"mf0/io/ModelBuilder":1754,"mf0/Value":1755,"viewmodel/interface/AbstractViewModelManager":1756,"viewmodel/impl/listener/EventObservable":1757,"viewmodel/interface/AbstractViewModel":1758,"viewmodel/interface/listener/AbstractEventDispatchable":1759,"viewmodel/plugins/PluginTypes":1760,"viewmodel/interface/AbstractViewModelManagerFactory":1761,"MW/uiframework/hashes/ComponentPropertiesHash":1763,"MW/toolstrip/hashes/componentproperties/controls/PushButtonProperties":1764,"MW/toolstrip/hashes/componentproperties/controls/ToggleButtonProperties":1765,"MW/toolstrip/hashes/componentproperties/properties/DropDownAlwaysEnabledProperty":1766,"MW/toolstrip/constants/RecentColorsMode":1767,"MW/toolstrip/constants/SwatchColorMode":1768,"MW/toolstrip/hashes/componentproperties/properties/ItemsProperty":1769,"MW/toolstrip/hashes/componentproperties/properties/CompactProperty":1770,"MW/toolstrip/hashes/componentproperties/controls/TextFieldProperties":1771,"MW/toolstrip/hashes/componentproperties/properties/ValueProperty":1772,"MW/toolstrip/hashes/componentproperties/properties/MinimumProperty":1773,"MW/toolstrip/hashes/componentproperties/properties/MaximumProperty":1774,"MW/toolstrip/hashes/componentproperties/controls/LabelProperties":1775,"MW/toolstrip/hashes/componentproperties/properties/QabEligibleProperty":1776,"MW/toolstrip/hashes/componentproperties/properties/ListViewDisplayDensityProperty":1777,"MW/toolstrip/hashes/componentproperties/properties/OptionsEnabledProperty":1778,"MW/toolstrip/hashes/componentproperties/properties/OwnsFooterProperty":1779,"MW/toolstrip/hashes/componentproperties/properties/UseQuickAccessIconProperty":1780,"MW/toolstrip/hashes/ComponentsEligibleForQAB":1781,"mw-form/mixins/SharedTextInputMixin":1782,"dijit/layout/TabController":1783,"dijit/form/_FormWidget":1784,"dijit/form/_FormWidgetMixin":1785,"dijit/form/_ButtonMixin":1786,"dojo/i18n!dijit/nls/common":1787,"dijit/layout/ScrollingTabController":1788,"mw-dialogs/enums/RoleEnum":1789,"MW/toolstrip/widgets/gallery/GalleryPopup":1790,"MW/toolstrip/widgets/gallery/GalleryPanel":1791,"MW/toolstrip/widgets/gallery/GalleryItemRowCountMixin":1792,"MW/toolstrip/widgets/gallery/GalleryItemTextLineCountMixin":1793,"MW/toolstrip/constants/OrientationConstants":1794,"dojo/dnd/Avatar":1795,"mw-dnd/DnDUtils":1796,"MW/toolstrip/form/PushButton":1797,"mw-form/mixins/property/TabIndexNodesMixin":1798,"mw-form/mixins/property/DropDownNeverDisabledMixin":1799,"mw-form/mixins/SplitButtonToggleSplitButtonMenuMixin":1800,"mw-form/mixins/SplitButtonToggleSplitButtonFocusMixin":1801,"mw-form/mixins/SplitButtonToggleSplitButtonDescriptionMixin":1802,"MW/toolstrip/form/mixins/property/SplitLikeButtonTooltipMixin":1803,"MW/toolstrip/form/ToggleButton":1804,"mw-colorpicker/ColorStyleEnum":1805,"MW/toolstrip/form/ToggleSplitButton":1806,"MW/toolstrip/hashes/PeerNodeWidgetPropertiesHash":1807,"MW/toolstrip/menu/ListItem":1808,"MW/toolstrip/mixins/property/UseQuickAccessIconMixin":1809,"MW/toolstrip/mixins/property/CompactMixin":1810,"MW/toolstrip/widgets/_ValidationMixin":1811,"MW/toolstrip/widgets/external/HorizontalRule":1812,"MW/toolstrip/widgets/gallery/GalleryItem":1813,"MW/uiframework/widgets/ContextMenuButton":1814,"MW/window/WindowDriver":1815,"MW/window/AbstractController":1816,"MW/uiframework/system/WindowFrameSystem":1817,"MW/uiframework/uicontainer/DynamicLoader":1818,"mw-module-loader/utils/Validator":1819,"MW/uiframework/uicontainer/SessionDataService":1820,"MW/uiframework/uicontainer/peer/PropertyTranslator":1821,"mw-progress-indicator/view/ViewStore":1822,"mw-progress-indicator/view/ViewInterface":1823,"mw-widget-api/facade/svg":1824,"MOTW/motw/responseHandlerUtil":1825,"MOTW/motw/lifecycle/ModuleLoaderFactory":1826,"rtc/events/customkeyboardshortcuts/JavaKeyEventEnum":1833,"rtc/plugins/language/matlab/syntax/functions/FunctionUtilities":1834,"rtc/datamodel/InMemoryBackingStore":1835,"rtc/datamodel/BackingStore":1836,"rtc/plugins/bookmarks/BookmarksProvider":1837,"rtc/plugins/bookmarks/DecoratableBookmarksMarginProvider":1838,"rtc/margin/DecoratableMargin":1839,"rtc/plugins/bookmarks/BookmarksDecoratorProvider":1840,"rtc/margin/AbstractMarginDecorator":1841,"rtc/plugins/bookmarks/BookmarksContextMenuContributorProvider":1842,"rtc/plugins/contextmenu/MarginContextMenuContributor":1843,"dojo/i18n!rtc/resources/rich_text_component/nls/conditionalBreakpointDialog":1844,"mw-mvm/impl/RuntimeException":1845,"mw-mvm/impl/MVMCache":1846,"rtc/plugins/debug/jsdebugger/private/breakpoints/AbstractBreakpointNotifier":1847,"rtc/plugins/debug/jsdebugger/private/breakpoints/AbstractBreakpointService":1848,"rtc/plugins/debug/events/AbstractDebugStackNotifier":1849,"rtc/plugins/breakpoint/matlab/MatlabBreakpointDataServiceChannels":1850,"rtc/plugins/breakpoint/AbstractBreakpointStyler":1851,"rtc/plugins/breakpoint/matlab/MatlabBreakpointStylerProvider":1852,"mw-tooltip/impl/enum/TypeEnum":1853,"mw-tooltip/impl/TooltipDepot":1854,"mw-tooltip/impl/enum/StateEnum":1855,"mw-tooltip/utils/TooltipUtils":1856,"rtc/plugins/breakpoint/AbstractBreakpointDirtyService":1857,"rtc/plugins/buttonfactory/ButtonFactory":1858,"rtc/plugins/contextmenu/ContextMenuContributorModel":1859,"equationrenderercore/renderer/utils/EquationExportUtilities":1860,"equationrenderercore/renderer/view/exporters/CanvasRenderer":1861,"equationrenderercore/renderer/model/MathDelimiter":1862,"equationrenderercore/renderer/model/exporters/MATLABCode":1863,"equationrenderercore/renderer/model/exporters/Precedence":1864,"equationrenderercore/renderer/model/utils/MathMLEntities":1865,"equationrenderercore/utils/HasExtensions":1866,"equationrenderercore/renderer/model/importers/TeXSymbols":1867,"equationrenderercore/renderer/model/MathFenced":1868,"equationrenderercore/renderer/model/MathFraction":1869,"equationrenderercore/renderer/model/MathMatrix":1870,"equationrenderercore/renderer/model/MathMultiScript":1871,"equationrenderercore/renderer/model/MathRadical":1872,"equationrenderercore/renderer/model/MathRoot":1873,"equationrenderercore/renderer/model/MathScript":1874,"equationrenderercore/renderer/model/MathSpace":1875,"equationrenderercore/renderer/model/MathStyle":1876,"equationrenderercore/utils/XMLParser":1877,"equationrenderercore/renderer/model/importers/PEG":1878,"equationrenderercore/renderer/view/viewmodel/HBox":1879,"equationrenderercore/renderer/view/viewmodel/BoxUtils":1880,"equationrenderercore/renderer/view/viewmodel/StretchyBox":1881,"equationrenderercore/renderer/view/viewmodel/WhiteSpaceBox":1882,"rtc/plugins/view/exporters/ViewBaseWriter":1883,"rtc/model/io/ContentSerializerVisitor":1890,"rtc/plugins/view/exporters/RTFFormatUtils":1891,"rtc/plugins/datatip/BaseDataTip":1892,"mw-draganddrop/utils/On":1893,"mw-draganddrop/impl/HTML5DnDListener":1894,"mw-draganddrop/utils/HTML5DnDListenerUtils":1895,"mw-draganddrop/enum/EnumsConfig":1896,"mw-draganddrop/utils/PositionDetectorUtils":1897,"mw-draganddrop/utils/AvatarUtils":1898,"rtc/plugins/debug/breadcrumbstack/BreadcrumbStackViewUtilities":1899,"rtc/plugins/debug/breadcrumbstack/BreadcrumbNavigation":1900,"rtc/plugins/debug/StackFrameUtilities":1901,"rtc/plugins/debug/DebugStackFrame":1902,"rtc/plugins/debug/DebugStackUtilities":1903,"rtc/plugins/debug/AbstractEnableDisableDebugActions":1904,"rtc/plugins/language/matlab/syntax/mtree/nodes/VariableMTreeNode":1905,"rtc/plugins/debug/ExitDebugToSaveUtils":1906,"rtc/misc/DialogUtilities":1907,"rtc/datamodel/PluggableRTCBackingstore":1908,"rtc/model/io/Serializer":1909,"rtc/plugins/execution/margin/ReadyBusyIndicatorProvider":1910,"rtc/plugins/execution/AnimationUtilities":1911,"rtc/plugins/execution/DefaultEditorExecutionNotifier":1912,"rtc/model/LineRangeTree":1913,"dijit/Dialog":1914,"dijit/form/_FormMixin":1915,"rtc/plugins/export/settings/AbstractSettings":1916,"rtc/model/io/relationship/OpcRelationshipCollection":1917,"rtc/plugins/export/html/HTMLExporter":1918,"rtc/nodes/leaf/TextNode":1919,"rtc/plugins/language/matlab/syntax/mtree/nodes/ArgumentsMTreeNode":1920,"rtc/plugins/language/matlab/syntax/mtree/nodes/CommentMTreeNode":1921,"rtc/plugins/language/matlab/syntax/mtree/nodes/FunctionBlockMTreeNode":1922,"rtc/plugins/language/matlab/syntax/mtree/nodes/SectionBlockMTreeNode":1923,"rtc/plugins/folding/AbstractFoldCandidateContributor":1924,"rtc/language/LanguageInformation":1925,"rtc/plugins/execution/range/StepOutRange":1926,"rtc/plugins/execution/range/RunToHereRange":1927,"rtc/plugins/execution/range/RunSectionRange":1928,"rtc/plugins/execution/triggers/EvalOnLineChangeTrigger":1929,"rtc/plugins/execution/triggers/LiveEvalTrigger":1930,"rtc/plugins/execution/triggers/ManualRunSectionTrigger":1931,"rtc/plugins/language/common/smartindenting/AbstractSmartIndentingPlugin":1932,"dojo/i18n!rtc/resources/rich_text_component/nls/gotoDialog":1933,"dijit/form/NumberTextBox":1934,"dijit/form/RangeBoundTextBox":1935,"dijit/form/MappedTextBox":1936,"rtc/plugins/documentfragments/AbstractDocumentFragmentContributor":1937,"rtc/plugins/refactor/function/externalfunction/ExternalFunctionFileCreator":1938,"rtc/plugins/refactor/function/AbstractFunctionRefactor":1939,"rtc/model/events/LinesChangedEvent":1940,"rtc/plugins/refactor/function/FunctionRefactoringErrorUtils":1941,"rtc/plugins/refactor/function/FunctionRefactoringUtils":1942,"rtc/plugins/refactor/function/GeneratedFunctionInfo":1943,"rtc/plugins/language/matlab/syntax/functions/FunctionDeclarationUtils":1944,"rtc/misc/Synchronizer":1945,"rtc/plugins/insertionrules/receivinginstructions/InsertIfCompatibleInstruction":1946,"rtc/plugins/language/matlab/alert/AlertWidgetBase":1947,"rtc/plugins/language/common/autoindent/AbstractAutoIndentService":1948,"rtc/plugins/language/matlab/codeanalyzer/model/CodeAnalyzerMessage":1949,"rtc/plugins/tooltip/ExtendedMessage":1950,"rtc/plugins/language/matlab/codeanalyzer/preferences/CodeAnalyzerPreferences":1951,"rtc/plugins/language/matlab/codeanalyzer/preferences/UnderlineModesEnum":1953,"rtc/plugins/language/matlab/codeanalyzer/tooltip/CodeAnalyzerMessageTooltipContent":1954,"rtc/plugins/tooltip/ButtonTooltipContent":1955,"rtc/plugins/tooltip/TooltipGridService":1956,"rtc/plugins/view/tooltip/Tooltip":1957,"editor_application_interface/PublicApplicationApi":1958,"rtc/plugins/messagebar/MessageBarPriorityEnum":1959,"rtc/plugins/language/matlab/codingui/autocompletions/atomicManifest":1960,"rtc/plugins/language/matlab/codingui/widgets/Completion":1961,"rtc/plugins/smarttab/SmartTabUtilities":1962,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionAbstractCompletionCustomizer":1963,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionFunctionAssistantView":1964,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionPopupWidgetView":1965,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionShadowTextView":1966,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionSuggestionView":1967,"rtc/plugins/language/matlab/contextualselection/EvaluateSelection":1968,"rtc/plugins/language/matlab/contextualselection/OpenSelection":1969,"rtc/plugins/language/matlab/commentCode/CommentSection":1970,"rtc/plugins/language/matlab/commentCode/DeleteEventInfo":1971,"rtc/plugins/language/matlab/commentCode/ReplaceEventInfo":1972,"rtc/plugins/language/matlab/commentCode/InsertEventInfo":1973,"rtc/core/AbstractDependencyNotifierPlugin":1974,"rtc/misc/Capabilities":1975,"rtc/publicapi/RTCSupportedLanguages":1976,"rtc/plugins/language/matlab/functions/LocalFunctionsUtilities":1977,"rtc/plugins/language/matlab/functions/AbstractFunctionSectionAttributeContributor":1978,"rtc/plugins/navigation/AbstractNavigationService":1979,"rtc/plugins/language/common/tokenizer/matching/matchableTokenType":1980,"rtc/plugins/language/matlab/variablehighlighting/BaseVariableHighlightingPreference":1981,"rtc/plugins/language/matlab/variableservice/DocumentVariableUtilities":1982,"rtc/plugins/language/matlab/variableservice/Variable":1983,"rtc/plugins/messagebar/AbstractMessageBarTooltip":1984,"rtc/plugins/offscreennotification/OffscreenNotificationAlignment":1985,"rtc/plugins/smartformatting/SmartFormattingPairMatcher":1986,"rtc/plugins/language/matlab/tokenizer/MatlabTokenGenerator":1987,"rtc/plugins/smartformatting/abstract/SplitStringSmartFormatter":1988,"rtc/plugins/smartformatting/settings/AbstractSmartFormattingSettingManager":1989,"rtc/plugins/statusactionbar/decorators/AbstractStaleSectionsDecorator":1990,"rtc/plugins/statusactionbar/evaluation/StatusActionBarEvaluation":1991,"rtc/plugins/sections/AbstractSectionsRequestHandler":1992,"rtc/nodes/contentconverter/base/NodeContentConverter":1993,"rtc/view/coordinateconverter/base/AbstractCoordinateConverter":1994,"rtc/plugins/language/common/syntaxhighlighter/SyntaxHighlightingColorUtils":1995,"rtc/plugins/language/matlab/syntaxhighlighter/MatlabSyntaxHighlighter":1996,"rtc/plugins/syntaxhighlighter/AbstractSyntaxHighlighter":1997,"rtc/plugins/language/matlab/syntaxhighlighter/MatlabSyntaxTokenTypes":1998,"rtc/plugins/language/matlab/syntaxhighlighter/preferences/MatlabSyntaxHighlighterPreferences":1999,"rtc/plugins/language/matlab/syntaxhighlighter/preferences/MatlabSyntaxHighlighterSettingKeys":2e3,"mw-gesture/util/PointerUtil":2001,"mw-gesture/util/PointerProperties":2002,"mw-gesture/gestures/_state/TapCount":2003,"rtc/plugins/imeinput/IMEInput":2004,"rtc/view/hidden/AbstractHideService":2005,"rtc/view/hidden/AbstractHideFilter":2006,"rtc/view/hidden/BaseHiddenStateHolder":2007,"rtc/view/hidden/AbstractHideShow":2008,"rtc/plugins/matlabmobile/bridge/BridgeMessageContract":2009,"rtc/plugins/toolstrip/CompactToolstripLiveEditorActionIdConstants":2010,"rtcintegration/plugins/service/DefaultActionIdConverter":2011,"rtc/plugins/colors/BackgroundForegroundColor":2012,"rtc/plugins/embeddedoutputs/AbstractCurrentOutputHandler":2013,"rtc/plugins/embeddedoutputs/EmbeddedOutputsRequestExecutor":2014,"rtc/plugins/embeddedoutputs/outputhandlers/TextualOutputStyler":2015,"rtc/plugins/embeddedoutputs/outputhandlers/BaseOutputStyler":2016,"rtc/plugins/execution/ExecutionDataService":2017,"rtc/plugins/embeddedoutputs/codegen/CodeGenFactoryProvider":2018,"rtc/plugins/undoredo/commands/CodeGenInteractionCommand":2019,"rtc/plugins/embeddedoutputs/model/Region":2020,"rtc/plugins/embeddedoutputs/outputhandlers/BaseText2LaTeX":2021,"rtc/plugins/embeddedoutputs/outputhandlers/error/ErrorOutput":2022,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureModel":2023,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/controllers/RunScriptPromptController":2024,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/Palette":2025,"dojo/text!rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/templates/Palette.html":2026,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/elements/AbstractPaletteElement":2027,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/elements/ElementToolTipMixin":2028,"rtc/plugins/embeddedoutputs/outputhandlers/floatingpalette/controllers/BasePaletteController":2029,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/LineAnnotation":2030,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/DoubleArrowAnnotation":2031,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/TextArrowAnnotation":2032,"rtc/plugins/embeddedoutputs/outputhandlers/figure/ROI":2033,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/controllers/BaseFigurePaletteController":2034,"rtc/plugins/embeddedoutputs/outputhandlers/figure/AxesPositionMixin":2035,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/controllers/PromptController":2036,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/PlaybackControls":2037,"dojo/dnd/move":2038,"rtc/plugins/embeddedoutputs/outputhandlers/figure/ActionManager":2039,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureUndoRedoManager":2040,"rtc/plugins/embeddedoutputs/outputhandlers/figure/EventHandler":2041,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/MatrixOutput":2042,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/export/MatrixElement2XSLFO":2043,"equations/editor/utils/ActionDataServiceProxy":2044,"equations/EquationEditor":2045,"equations/editor/actions/CaretAction":2046,"equations/editor/utils/CursorPositionVisitor":2047,"equations/editor/actions/CursorAction":2048,"dojo/i18n!rtc/resources/rich_text_component/nls/equationEditorActions":2049,"equations/editor/utils/CaretUtilities":2050,"equations/editor/controller/SelectionController":2051,"rtc/plugins/view/divcaret/DivCaretPlugin":2052,"rtc/events/keybindings/AlternateActionServiceSupport":2053,"rtc/events/KeyboardShortcutsModel":2054,"rtc/events/KeyHandler":2055,"rtc/events/MultistrokeShortcuts":2056,"rtc/plugins/contextmenu/EquationContextMenuContributor":2057,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicOutputProperties":2058,"rtc/plugins/embeddedoutputs/outputhandlers/text/TextOutputProperties":2059,"rtc/plugins/embeddedoutputs/view/BaseViewWithOutputsInline":2060,"rtc/plugins/embeddedoutputs/view/AbstractView":2061,"rtc/plugins/embeddedoutputs/view/inline/LineWithOutputLayouterUtilities":2062,"rtc/plugins/embeddedoutputs/view/InlineOutputsUtilities":2063,"rtc/plugins/embeddedoutputs/view/inline/LineWithOutputLayouter":2064,"rtc/plugins/view/layoutmanager/layouters/LineLayouter":2065,"rtc/plugins/embeddedoutputs/codegen/AbstractEditorCodeGenContributor":2066,"rtc/plugins/embeddedoutputs/view/BaseViewWithOutputsOnRight":2067,"rtc/plugins/ddux/AbstractComponentCounterDDUX":2068,"dojo/text!rtc/plugins/language/matlab/codingui/liveapps/widgets/LiveAppInlineWidgetTemplate.html":2069,"rtc/plugins/language/matlab/codingui/liveapps/widgets/AbstractLiveAppUIFigureWidget":2070,"rtc/plugins/language/matlab/codingui/liveapps/widgets/AbstractLiveAppWidget":2071,"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeSwitchViewAbstractRule":2072,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppInlineNodeContentConverter":2073,"rtc/plugins/insertionrules/receivinginstructions/UseTopLevelRuleAtPositionInstruction":2074,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppInlineNodeCoordinateConverter":2075,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppInlineNodeLayouter":2076,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDataModelFactory":2077,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlWorkspaceDataContributor":2078,"rtc/plugins/language/matlab/codingui/livecontrols/utilities/LiveControlNodeUtilities":2079,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/utilities/ComboBoxUtility":2080,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/LinkedVariablesMixin":2081,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/DefaultValueMixin":2082,"mw-slider/HorizontalSlider":2083,"mw-slider/_AbstractSlider":2084,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/utilities/SliderWidgetUtility":2085,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/utilities/TextFieldKeyHandlerUtility":2086,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/utilities/EditFieldUtility":2087,"rtc/core/registry/RichTextPluginRegistryModule":2088,"rtc/plugins/view/layoutmanager/rules/DefaultRule":2089,"rtc/model/io/serializers/containers/CodeExampleLineContainerSerializer":2090,"rtc/plugins/hyperlink/model/HyperReference":2091,"dojo/i18n!rtc/resources/rich_text_component/nls/hyperlinkDialog":2092,"dojo/i18n!rtc/resources/rich_text_component/nls/toolTipPreview":2093,"dojo/i18n!rtc/resources/rich_text_component/nls/editImage":2094,"dojo/query!css2":2095,"dojo/loaderProxy?loader=dojo%2Fquery&name=css2!":2095,"dijit/form/ComboBoxMixin":2096,"rtc/model/io/serializers/nodes/ImageSerializer":2097,"rtc/plugins/richtext/nodes/inner/RichTextParagraphNodeContentConverter":2098,"rtc/plugins/richtext/export/RichTextParagraphNode2HTMLProvider":2099,"rtc/plugins/export/latex/LaTeXCharFilter":2100,"rtc/model/io/serializers/nodes/RichTextSerializer":2101,"rtc/view/rangeconverter/base/TextRangeConverter":2102,"rtc/plugins/richtext/view/RichTextLayouter":2103,"rtc/plugins/view/layoutmanager/layouters/PlainTextLayouter":2104,"rtc/model/io/serializers/containers/TableOfContentsHeadingSerializer":2105,"rtc/model/io/serializers/containers/TableOfContentsListSerializer":2106,"livecode_saveload/plugin/LiveCodeSaveLoad":2107,"rtc/model/io/ForwardCompatibility":2108,"rtc/model/io/documentation/DocumentationWriter":2109,"rtc/plugins/embeddedoutputs/model/io/OutputWriter":2110,"rtc/plugins/embeddedoutputs/model/io/OutputTag":2111,"rtc/plugins/embeddedoutputs/model/io/OutputReader":2112,"rtc/plugins/execution/ValidScriptFileTypeNotifier":2113,"livecode_features/plugin/ForwardCompatibilityHandler":2114,"dojo/i18n!livecode_features/l10n/nls/liveeditor":2115,"MW/componentframework/PeerModelTypeConstants":2116,"MW/componentframework/manifest/ApplicationManifest":2117,"MW/componentframework/manifest/manifestUtils":2118,"MW/componentframework/ControllerService":2119,"MW/componentframework/attribute/Attribute":2120,"gbtshared/strategies/PositionStrategy":2121,"gbtshared/strategies/UIControlPositionStrategy":2122,"gbtshared/services/UnitsConversions":2123,"gbtshared/mixins/controller/IsPositionPropertyChangingUtility":2124,"gbtshared/services/UnitsServicePixels":2125,"gbtshared/mixins/controller/FontUnitsController":2126,"gbtshared/mixins/controller/ContextMenuPreCreationMap":2127,"visualcomponents/widgetview/standardcomponents/customdijit/mixins/MutualExclusiveMixin":2128,"visualcomponents/widgetview/standardcomponents/customdijit/_PositionableMixin":2129,"gbtshared/util/HTMLUtils":2130,"visualcomponents/widgetview/standardcomponents/customdijit/LatexLabel":2131,"mw-slider/ruler/VerticalRule":2132,"mw-slider/ruler/VerticalRuleLabels":2133,"visualcomponents/widgetview/AbstractTickStrategyModules":2134,"visualcomponents/widgetview/ValidationUtils":2135,"visualcomponents/widgetview/standardcomponents/TreeController":2136,"mw-data-model/tree/_TreeDataStore":2137,"mw-data-model/tree/impl/_parentNodeStore":2138,"mw-data-model/tree/impl/_filter":2139,"mw-data-model/impl/_metaData/_MetaDataRules":2140,"mw-data-model/enums/positionEnum":2141,"mw-data-model/table/_TableDataStore":2142,"mw-data-model/table/impl/_criteriaUtils":2143,"mw-data-model/table/impl/_Search":2144,"mw-data-model/treeTable/impl/_treeTableParentNodeStore":2145,"mw-tree/view/TreeView":2146,"mw-tree/view/EventsConfig":2148,"mw-tree/view/TreePluginViewComponents":2149,"mw-tristate-checkbox/TristateCheckbox":2150,"mw-tree/plugins/PluginEnum":2151,"mw-tree/adaptors/utils/ContextMenuUtility":2152,"mw-tree/plugins/dnd/DnD":2153,"mw-tree/plugins/dnd/impl/DnDArchService":2154,"mw-tree/view/BrowserFeatureSupport":2155,"mw-tree/adaptors/DnDAdaptor":2156,"mw-tree/plugins/dnd/ReorderEnum":2157,"mw-tree/plugins/focus/Focus":2158,"mw-tree/adaptors/SelectionAdaptor":2159,"mw-tree/plugins/dnd/_HTMLDnD":2160,"mw-tree/view/TreeBuilder":2161,"mw-tree/view/TreeNodeRolesEnum":2162,"mw-tree/view/DefaultsEnum":2163,"mw-tree/enums/EventEnum":2164,"mw-tree/renderers/CheckboxRenderer":2165,"mw-tree/enums/RendererActionsEnum":2166,"mw-tree/utils/ResponseEnums":2167,"mw-tree/utils/ViewStateEnums":2168,"mw-tree/controller/actions/ActionEnum":2169,"mw-tree/editors/IconLabelEditor":2170,"mw-datepicker/utils/_DateUtils":2171,"visualcomponents/widgetview/standardcomponents/customdijit/Image":2172,"visualcomponents/widgetview/standardcomponents/AbstractProgressIndicator":2173,"visualcomponents/widgetview/standardcomponents/mixins/EnableController":2174,"mw-colorpicker/BackgroundColorUtil":2175,"gbtshared/mixins/controller/DijitControllerAdapter":2176,"visualcomponents/widgetview/hmicomponents/mixins/RadialArtComponent":2177,"visualcomponents/widgetview/hmicomponents/BackgroundColorControllerForHMI":2178,"visualcomponents/widgetview/hmicomponents/AbstractLinearGauge":2179,"visualcomponents/widgetview/hmicomponents/AbstractKnob":2180,"visualcomponents/widgetview/hmicomponents/AbstractToggleRockerSwitch":2181,"visualcomponents/widgetview/hmicomponents/AbstractSwitch":2182,"visualcomponents/widgetview/hmicomponents/AbstractSliderSwitch":2183,"componentframework/controller/EventCoalescingController":2184,"gbtshared/layout/LayoutableComponentController":2185,"gbtshared/mixins/controller/LayoutableControllerForWidgetsSupporting100Percent":2186,"gbtshared/mixins/controller/LayoutableControllerForWidgetsSupportingAspectRatio":2187,"uitest/controller/UITestInteractionController":2188,"graphics/services/ConnectionStatus":2189,"graphics/MWSG/Base64Decode":2190,"graphics/services/PixelScaleMonitoring":2191,"graphics/MWSG/webgl_renderer":2192,"graphics/MWSG/WideLineUtils":2193,"graphics/MWSG/transparency/DepthPeelerData":2194,"graphics/MWSG/Webgl10Strategy":2195,"graphics/MWSG/shader/WebGL10ShaderOpts":2196,"graphics/MWSG/shader/MarkerVertexColorShaderSourceProvider":2197,"graphics/MWSG/EncodeFloat":2198,"graphics/MWSG/PickColorMapper":2199,"graphics/MWSG/Webgl10ShaderHeaderStrategy":2200,"graphics/axes/SceneNodeProxyBase":2201,"graphics/GraphicsInteractions/BaseMouseController":2202,"graphics/GraphicsInteractions/AbstractController":2203,"mw-binarystream/BinaryStreamFactory":2204,"graphics/graphicscontrol/ControlManager":2205,"graphics/graphicscontrol/GridLayoutableControl":2206,"graphics/graphicscontrol/LayoutableControl":2207,"graphics/graphicscontrol/LayoutableControlUtils":2208,"graphics/graphicscontrol/ControlUtils":2209,"graphics/interaction/EventCoalescer":2210,"gbtshared/mixins/controller/GBTComponentPositionController":2211,"gbtcomponents/strategy/WindowSizeStrategy":2212,"gbtcomponents/controller/interface/FigureControllerMsgFromClientInterface":2213,"gbtshared/dialogs/services/FileFilterUtil":2214,"gbtshared/dialogs/services/MessageHelper":2215,"gbtcomponents/controller/PanelController":2216,"gbtcomponents/controller/UIContainerController":2217,"gbtcomponents/view/Panel":2218,"gbtcomponents/view/MenuBarItem":2219,"gbtshared/mixins/view/MenuChildVisibilityMixin":2220,"gbtshared/mixins/view/MnemonicMixin":2221,"gbtcomponents/view/CheckBoxMenuItem":2222,"gbtcomponents/view/PopupMenuItem":2223,"gbtshared/mixins/controller/KeyBindingController":2224,"gbtcomponents/controller/ToolMixinController":2225,"gbtcomponents/view/ToolMixin":2226,"mw-table/controllers/geometry/GeometryController":2227,"mw-table/controllers/scrolling/Scroll":2228,"mw-table/calc/BufferMath":2229,"mw-table/controllers/resize/tableResize":2230,"mw-table/renderers/enums/RendererAlignmentEnum":2231,"mw-table/controllers/columns/ColConfigController":2232,"mw-table/controllers/edit/EditControllerInterface":2233,"mw-table/enums/PluginEnum":2234,"mw-table/functional/Monad":2235,"mw-table/adaptors/RowSelectionAdaptor":2236,"mw-table/plugins/selection/CellSelection":2237,"mw-table/plugins/colresize/ColResize":2238,"mw-table/plugins/sort/SingleColumnSort":2239,"mw-table/adaptors/SortAdaptor":2240,"mw-table/plugins/headers/RowHeaders":2241,"mw-table/plugins/dragAndDrop/DragAndDrop":2242,"mw-table/adaptors/TreetableRowDnDService":2243,"mw-table/plugins/search/Search":2244,"mw-table/plugins/clipboard/Clipboard":2245,"mw-clipboard/utils/Trigger":2246,"mw-clipboard/enum/ActionStatusEnum":2247,"mw-clipboard/utils/ValidationUtils":2248,"mw-table/controllers/navigation/KeyController":2249,"mw-table/controllers/navigation/SimplifiedKeyController":2250,"mw-table/enums/RenderTypeEnum":2251,"mw-table/enums/ReorderEnum":2252,"mw-table/viewmodel/ViewModel":2253,"mw-table/utils/FacadeUtils":2254,"mw-table/view/RendererComponentWithMemo":2255,"mw-table/view/RendererComponent":2256,"mw-table/treetable/utils/CellUtils":2257,"mw-table/view/hoc/withInteractiveCell":2258,"mw-table/view/TableRow":2259,"mw-table/view/TbodyComponent":2260,"mw-table/view/Tooltip":2261,"mw-table/view/HeaderRow":2262,"mw-table/view/utils/DragTracking":2263,"mw-table/view/utils/DnDColumnUtils":2264,"mw-table/view/utils/DndUtils":2265,"mw-table/view/hooks/useDrag":2266,"mw-table/view/GroupedColumnHeader":2267,"mw-table/view/utils/AriaUtils":2268,"mw-table/view/ScrollComponent":2269,"mw-table/view/context/HeaderContext":2270,"mw-table/view/RowHeaderCellWithInteraction":2271,"mw-table/view/hoc/withRowSelection":2272,"mw-table/view/hoc/withDnDEnabled":2273,"mw-table/functional/IOMonad":2274,"variableeditor/ClientPeerManager":2275,"dojo/i18n!datatoolsservices/l10n/nls/datatoolsservices":2276,"datatoolsservices/ActionService/Remote/PeerActionProvider":2277,"datatoolsservices/ContextMenuService/ContextMenuBuilder":2278,"datatoolsservices/ContextMenuService/ActionMenuItem":2279,"datatoolsservices/ContextMenuService/ActionMenuItemBase":2280,"datatoolsservices/Data/PubSubDataStore":2281,"datatoolsservices/Data/RemoteDataProvider":2282,"gbtshared/layout/LayoutControllerMixin":2283,"gbtshared/layout/LayoutFactory":2284,"gbtshared/layout/LayoutManager":2285,"gbtshared/layout/autolayout/VertexRelocatorStrategy":2286,"gbtshared/layout/autolayout/AutoLayoutPathIterator":2287,"gbtshared/layout/autolayout/AutoLayoutDirection":2288,"gbtshared/layout/CanvasHostLayoutControllerMixin":2289,"uitest/controller/UITestAbstractAxesController":2290,"uitest/controller/UITestAbstractToolbarButtonController":2291,"rtc/plugins/language/matlab/filetype/FileType":2292,"livecode_features/plugin/variableeditor/InteractiveVariableOutputHandler":2293,"variableeditor_peer/MF0ViewModelManagerFactory":2294,"variableeditor_peer/PeerManager":2295,"variableeditor_peer/CodePublishingMixin":2296,"variableeditor_peer/ViewManifest":2297,"rendererseditors/EditorRendererManifest":2298,"rendererseditors/mwTableRenderers/DataBarsSpanRenderer":2299,"rendererseditors/mwTableRenderers/LoadingRendererFactory":2300,"rendererseditors/mwTableRenderers/LoadingRenderer":2301,"rendererseditors/mwTableRenderers/RightAlignedTextRenderer":2302,"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer":2303,"rendererseditors/mwTableRenderers/PlainTextSpanParserMixin":2304,"rendererseditors/mwTableRenderers/TableHeaderRenderer":2305,"rendererseditors/mwTableRenderers/IconDisplayMixin":2306,"rendererseditors/mwTableRenderers/TableRendererUtils":2307,"rendererseditors/mwTableRenderers/RightAlignedTableRenderer":2308,"rendererseditors/mwTableRenderers/PlainTextRenderer":2309,"rendererseditors/mwTableRenderers/PlainTextParserMixin":2310,"rendererseditors/mwTableEditors/TableEditor":2311,"rendererseditors/mwTableEditors/EditorBase":2312,"rendererseditors/mwTableEditors/NumericEditor":2313,"rendererseditors/mwTableEditors/TableTextEditorBase":2314,"rendererseditors/mwTableEditors/StringEditor":2315,"rendererseditors/mwTableEditors/CharEditor":2316,"variableeditor_client/ViewPluginMixin":2317,"variableeditor_client/PluginToFeatureMap":2318,"variableeditor_client/Plugins/ColumnResize":2319,"variableeditor_client/Plugins/HeaderMenu":2320,"variableeditor_client/Plugins/MultiRowSelection":2321,"variableeditor_client/Plugins/SelectionBase":2322,"variableeditor_client/Plugins/SingleRowSelection":2323,"variableeditor_client/Plugins/TablePlaidSelection":2324,"variableeditor_client/Plugins/CustomRowHeight":2325,"variableeditor_client/Plugins/CornerSpacerText":2326,"variableeditor_client/Plugins/ViewContextHandler":2327,"variableeditor_client/Plugins/ContextBasedSelection":2328,"variableeditor_client/Plugins/ContextBasedPlaidSelection":2329,"variableeditor_client/Plugins/print/Print":2330,"variableeditor_client/export/TableHTMLWriter":2331,"variableeditor_client/export/WidthCalcUtils":2332,"dojo/i18n!variableeditor_client/l10n/nls/VariableEditorStrings":2333,"variableeditor_peer/RemoteViewModel":2334,"variableeditor_peer/PluginToFeatureMap":2335,"variableeditor_peer/Plugins/DataTypeConversion":2336,"datatoolsservices/DataTypeMenuManager":2337,"variableeditor_peer/Plugins/DataTypeConversionValidationMixin":2338,"variableeditor_client/enums/ViewStateEnums":2339,"variableeditor_peer/Plugins/Sort":2340,"variableeditor_peer/Plugins/ColumnFilter":2341,"variableeditor_peer/HeaderMenus/FilteredRangeMixin":2342,"variableeditor_peer/HeaderMenus/DateTimeHeaderMenuWidget":2343,"variableeditor_peer/HeaderMenus/DateTimeFilteredRangeMixin":2344,"variableeditor_peer/HeaderMenus/ValidationMixin":2345,"variableeditor_peer/HeaderMenus/DurationHeaderMenuWidget":2346,"variableeditor_peer/Plugins/CleanCategories":2347,"variableeditor_peer/CategoricalCleaner/RemoteCategoricalCleanerWidget":2348,"variableeditor_peer/Plugins/RemoteSelectionBase":2349,"variableeditor_peer/Plugins/ColumnHeaderEditingHandler":2350,"variableeditor_peer/Plugins/HeaderEditingBase":2351,"variableeditor_peer/Plugins/RemoteRowBasedSelection":2352,"variableeditor_peer/HeaderMenuMixin":2353,"variableeditor_peer/RemoteStructViewModel":2354,"variableeditor_peer/PeerArrayViewModel":2355,"variableeditor_client/UnsupportedView":2356,"variableeditor_peer/VariableEditorPopoutHandlerWidget":2357,"variableeditor_peer/VEFactory":2358,"variableeditor_peer/RemoteDocument":2359,"variableeditor_peer/RemoteProvider":2360,"variableeditor_peer/ServiceProviderMixin":2361,"livecode_features/plugin/variableeditor/InteractiveVariableOutputUtils":2362,"variableeditor_peer/PeerManagerFactory":2363,"livecode_features/plugin/variableeditor/InteractiveTableOutput":2364,"livecode_features/plugin/variableeditor/SerializableDataHandlerMixin":2365,"livecode_features/plugin/variableeditor/InteractiveMatrixOutput":2366,"livecode_features/plugin/variableeditor/InteractiveVariableExports/InteractiveVariableMatrixWriter":2367,"livecode_features/plugin/variableeditor/StaticMatrixOutput":2368,"livecode_features/plugin/variableeditor/InteractiveVariableStaticOutputUtils":2369,"livecode_features/plugin/variableeditor/MatrixOutput":2370,"livecode_features/plugin/variableeditor/InteractiveMatrixPromptController":2371,"common_features/plugin/contentmodifiedlistener/ContentModifiedListener":2372,"rtc/plugins/datatip/BaseDataTipPreference":2373,"common_features/plugin/execution/EditorExecutionNotifier":2374,"rtc/plugins/announcementbanner/AnnouncementBanner":2375,"rtc/datamodel/saveloadcontributor/SaveLoadContributor":2376,"plaincode_features/plugin/openaslivescriptbanner/OpenAsLiveScriptBannerProvider":2377,"plaincode_features/plugin/publish/PublishProvider":2378,"plaincode_features/plugin/publish/PublishPreferences":2379,"plaincode_features/plugin/publish/view/PublishDialogDefaultSettingsPanel":2380,"plaincode_features/plugin/publish/view/PublishDialogFileTreeConfigurationPanel":2381,"plaincode_features/plugin/publish/view/PublishDialogSettingsTreeTablePanel":2382,"mw-table/treetable/enums/RadiobuttonRendererEnum":2383,"mw-table/treetable/controllers/TreeColumnController":2384,"mw-table/treetable/utils/KeyboardUtils":2385,"mw-table/treetable/enums/PluginEnum":2386,"mw-table/treetable/adaptors/SelectionAdaptor":2387,"mw-table/treetable/view/TreeCell":2388,"plaincode_features/plugin/backup/BackupPluginProvider":2389,"dojo/i18n!matlab_preferences/l10n/nls/matlabPreferencePanel":2390,"dojo/i18n!matlab_preferences/l10n/nls/commandHistoryPreferencePanel":2391,"dojo/i18n!matlab_preferences/l10n/nls/generalPreferencePanel":2392,"dojo/i18n!matlab_preferences/l10n/nls/confirmationDialogPreferencePanel":2393,"dojo/i18n!matlab_preferences/l10n/nls/simulinkPreferencePanel":2394,"dojo/i18n!editorpanels-ui/l10n/nls/AutocodingPanelLabels":2395,"dojo/i18n!editorpanels-ui/l10n/nls/AutoformattingPanelLabels":2396,"dojo/i18n!editorpanels-ui/l10n/nls/BackupPanelLabels":2397,"editorpanels-ui/utility/codeanalyzer/CodeAnalyzerActiveSettings":2398,"dojo/i18n!editorpanels-ui/l10n/nls/CodeFoldingPanelLabels":2399,"dojo/i18n!editorpanels-ui/l10n/nls/ColorsPanelLabels":2400,"rtc/core/_dependencyinjector/SubsystemDependencyError":2401,"rtc/core/provider/SubsystemPluginsProviderFactory":2402,"rtc/core/registry/CorePluginRegistry":2403,"rtc/cursor/Cursor":2404,"rtc/margin/LineNumberDecorator":2405,"rtc/model/Document":2406,"rtc/model/events/ReadOnlyChangeEvent":2407,"rtc/model/BaseEditBlock":2408,"rtc/model/events/nodechange/DeleteNodeEvent":2409,"rtc/model/events/nodechange/DeleteTextNodeEvent":2410,"rtc/model/events/nodechange/InsertNodeEvent":2411,"rtc/model/events/nodechange/InsertTextNodeEvent":2412,"rtc/model/events/nodechange/MergeNodeEvent":2413,"rtc/model/events/nodechange/SplitNodeEvent":2414,"rtc/model/events/nodechange/UpdateAttributesNodeEvent":2415,"rtc/plugins/undoredo/commands/InsertChildrenCommand":2416,"rtc/plugins/undoredo/commands/NodeChangeEventCommand":2417,"rtc/plugins/undoredo/commands/RemoveChildrenCommand":2418,"rtc/plugins/undoredo/commands/ReplaceTextCommand":2419,"rtc/plugins/undoredo/commands/UpdateAttributesCommand":2420,"rtc/model/LivePosition":2421,"rtc/plugins/undoredo/EditBlock":2422,"rtc/plugins/undoredo/commands/SetCursorCommand":2423,"rtc/core/registry/ServicePluginRegistry":2424,"rtc/plugins/functionnotifier/FunctionNotifierUtils":2425,"rtc/plugins/language/matlab/diagnosticmessage/MessageContentBase":2426,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/base/InnerNodeExecutableCodeConverter":2427,"rtc/plugins/language/matlab/syntax/functions/AbstractFunctionDeclaration":2428,"rtc/plugins/language/common/tokenizer/interfaces/AbstractTokenManager":2429,"rtc/editordataservice/EditorDataServiceManagerFactory":2430,"rtc/language/Language":2431,"rtc/pluggability/PluginRegistryModuleLoader":2432,"dojo/i18n!editorpanels-ui/l10n/nls/DisplayLabels":2433,"dojo/i18n!editorpanels-ui/l10n/nls/EditorPanelLabels":2434,"editorpanels-ui/FontNameComboBox":2435,"editorpanels-ui/FontPreviewTextArea":2436,"editorpanels-ui/FontSizeComboBox":2437,"editorpanels-ui/FontStyleComboBox":2438,"editorpanels-ui/ToolsToFontsConfig":2439,"dojo/i18n!editorpanels-ui/l10n/nls/KeyboardPanelLabels":2440,"editorpanels-ui/FileExtensions":2441,"mw-tree-data-model/DataStore":2442,"mw-tree-data-model/On":2443,"mw-tree-data-model/impl/_proxyNode":2444,"mw-tree-data-model/enums/saveEnum":2445,"mw-tree-data-model/impl/_metaData/_MetaDataRule":2446,"mw-tree-data-model/enums/compareEnum":2447,"mw-tree-data-model/enums/positionEnum":2448,"dojo/i18n!editorpanels-ui/l10n/nls/OtherLanguagesPanelLabels":2449,"editorpanels-ui/NonlocalVariableHighlightPreview":2450,"editorpanels-ui/VariableHighlightMarkerPreview":2451,"editorpanels-ui/VariableHighlightPreview":2452,"dojo/i18n!editorpanels-ui/l10n/nls/TabPanelLabels":2453,"dojo/i18n!commandwindowpanel-ui/l10n/nls/CommandWindowPanelLabels":2454,"dojo/i18n!commandwindowpanel-ui/l10n/nls/CommandWindowCompletionPanelLabels":2455,"dojo/i18n!cfbprefs-ui/l10n/nls/CurrentFolderPanelLabels":2456,"cpanel-ui/CommonLanguageRegistry":2457,"cpanel-ui/ColorPickerConstants":2458,"dojo/text!cpanel-ui/templates/LanguageCLikePanel.html":2459,"dojo/text!cpanel-ui/templates/LanguageCLikePanelSyntaxEditorSampleText.html":2460,"rtc_clike_language_support/plugins/syntaxhighlighter/CLikeSyntaxHighlightingColorContributorProvider":2461,"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CLikeSyntaxHighlighterPreferences":2462,"CodeMirror/MW/clike":2463,"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CppSyntaxHighlighterPreferences":2464,"dojo/i18n!javapanel-ui/l10n/nls/LanguageJavaPanelLabels":2465,"rtc_java_language_support/plugins/syntaxhighlighter/preferences/JavaSyntaxHighlighterPreferences":2466,"rtc_java_language_support/plugins/syntaxhighlighter/JavaColorMapDefaults":2467,"dojo/text!xmlpanel-ui/templates/LanguageXmlPanel.html":2468,"dojo/text!xmlpanel-ui/templates/LanguageXmlSyntaxEditorSampleText.html":2469,"rtc_xml_language_support/plugins/syntaxhighlighter/XmlSyntaxHighlightingColorContributorProvider":2470,"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/HtmlSyntaxHighlighterPreferences":2471,"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/XmlSyntaxHighlighterPreferences":2472,"CodeMirror/MW/css":2473,"CodeMirror/MW/xml":2474,"xmlpanel-ui/ColorPickerConstants":2475,"xmlpanel-ui/CommonLanguageRegistry":2476,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JavaScriptSyntaxHighlighterPreferences":2477,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JsonSyntaxHighlighterPreferences":2478,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/TypeScriptSyntaxHighlighterPreferences":2479,"filesystem_services/ChangeListener":2480,"filesystem_services/datamodel":2481,"filesystem_services/utils/DefaultOpenActions":2482,"filesystem_services/utils/ActionInputArgsMissingError":2483,"filesystem_services/FileIconPluginServiceProvider":2484,"physmod_simscape_language_editor/plugins/syntaxhighlighter/SimscapeSyntaxTokenTypes":2485,"physmod_simscape_language_editor/plugins/tokenizer/SimscapeTokenUtilities":2486,"dgrid/util/has-pointer":2487,"mw-filebrowser/actions/contextmenu/ActionsContextMenuBuilder":2488,"mw-filebrowser/columns/ColumnHiderContextMenuBuilder":2489,"dojo/i18n!filechooser-ui/l10n/gen/resources/filechooser/nls/filechooser":2491,"fsui-config/filters":2492,"mw-filebrowser/columns/helpers/FileIconUtils":2493,"mw-filebrowser/columns/helpers/FileSizeGenerator":2494,"mw-filebrowser/columns/helpers/dataValidation":2495,"mw-filebrowser/columns/helpers/DateUtils":2496,"computils-ui/NullProgressHandler":2497,"project-action-ui/_impl/SelectionUtils":2498,"mldosharing-js/service/SharingDataServiceProvider":2499,"dojo/i18n!tripwire_button/resources/MATLABDrive/nls/desktop":2500,"MOTW/layout/LayoutConfig":2501,"workspacebrowser/WorkspaceBrowserFactory":2502,"MOTW/addons/utils/UrlUtil":2503,"MOTW/addons/ToolstripTags":2504,"dojo/i18n!addressbar-ui/l10n/gen/resources/addressbar/nls/addressbar":2505,"MOTW/toolstrip/managers/DesktopToolsetMetadataProvider":2506,"MOTW/toolstrip/appsGallery/ActionIdConstants":2507,"mw-filebrowser/mixins/GroupByActionMixin":2508,"mw-filebrowser/columns/groupingactions/StopGroupingAction":2509,"mw-filebrowser/mixins/SelectionBoxMixin":2510,"mw-filebrowser/mixins/ClickInRenameMixin":2511,"mw-filebrowser/mixins/CutAffordanceMixin":2512,"mw-filebrowser/mixins/JumpToActionMixin":2513,"filebrowser_utils-ui/js/actions/ActionKeybindingMap":2514,"filebrowser_utils-ui/js/ActionManager":2515,"filebrowser_utils-ui/js/actions/NewCustomAction":2516,"filebrowser_utils-ui/js/ActionPluginManager":2517,"currentfolderbrowser-ui/columns/CurrentFolderBrowserColumnRegistry":2518,"currentfolderbrowser-ui/columns/FilePreviewPopupColumn":2519,"filebrowser_utils-ui/js/selection/InputSource":2520,"currentfolderbrowser-ui/service/ValidationService":2521,"currentfolderbrowser-ui/service/SourceControlStatusCacheProvider":2522,"currentfolderbrowser-ui/upload/UploadWidgetLauncher":2523,"dojo/i18n!currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/fileDataServiceFaultMessages":2524,"filesystem-js-utils/TaskQueue":2525,"filesystem-js-utils/DataProcessingQueue":2526,"currentfolderbrowser-ui/helpers/remoteUtils":2527,"currentfolderbrowser-ui/helpers/NameValidator":2528,"filebrowser_utils-ui/js/CwdAndProjectRootManager":2529,"cmlink-core-ui/SourceControlStatusColumn":2530,"dojo/text!currentfolderbrowser-ui/actions/preview/previewPopupTemplate.html":2531,"commandhistory/js/CommandHistoryBaseWidget":2532,"mw-dialog-utils/DialogUtils":2533,"dojo/data/util/filter":2534,"dojo/data/util/simpleFetch":2535,"dojo/data/util/sorter":2536,"mw-dialog-utils/Dialog":2537,"dojox/layout/FloatingPane":2538,"dojox/layout/ResizeHandle":2539,"commandhistory/js/commandHistoryActions":2540,"commandhistory/js/CommandHistoryStore":2541,"commandwindow/ActionIdConstants":2542,"commandwindow/plugins/autocompletions/AutoCompletionPreference":2543,"commandwindow/plugins/CmdPlainTextMimeConverter":2544,"commandwindow/plugins/PromptlessTextGeneratorProvider":2545,"MOTW/dialog/NewFileFolderForm":2546,"MOTW/dialog/SpecifyNewFilenameDialog":2547,"dojo/NodeList-manipulate":2548,"MOTW/motw/MotwDefaultLayout":2549,"dojo/i18n!MOTW/l10n/nls/about":2550,"matlab_preferences/preferencesUI/PreferencesDialog":2551,"project-creation/NewProjectForm/Model":2552,"project-creation/PathUtils":2553,"project-creation/NewProjectForm/Layout":2554,"dojo/i18n!MOTW/l10n/nls/feedbackDialog":2555,"MOTW/editor/plugins/save/MatlabOnlineSaveHandlerFactory":2556,"liveeditor/plugin/external/sysobj/SysObjActionIdConstants":2557,"executiondataservice/ExecutionDataService":2558,"gbtdivfigure/DivFigureFactory":2559,"gbtcomponents/controller/interface/MsgFromFigureContentPaneInterface":2560,"MOTW/toolstrip/configs/figure/FigureAnnotationsGalleryPopupConfig2":2561,"MOTW/openwith/module/layout/OpenWithLayout":2562,"dojox/uuid/generateRandomUuid":2563,"MOTW/editor/EditorView":2564,"MOTW/editor/LiveEditorWidget":2565,"liveeditor/LiveEditorFactory":2566,"navigation_services/NavigationModelService":2567,"navigation_services/NavigationModelEvents":2568,"navigation_services/elements/NavigationElementType":2569,"rtc/core/registry/TestHelperPluginRegistry":2570,"MOTW/editor/EditorWidgetBase":2571,"MOTW/editor/plugins/filemodificationnotifier/MatlabOnlineFileModificationNotifier":2572,"rtcintegration/IntegrationPluginRegistry":2573,"rtcintegration/plugins/service/DefaultEditorService":2574,"rtcintegration/plugins/toolstrip/UIBuilderUtilities":2575,"rtcintegration/plugins/runconfiguration/editor/RunConfigsFileValidatorProvider":2576,"rtcintegration/plugins/runconfiguration/editor/RunConfigsFileValidator":2577,"rtcintegration/plugins/runconfiguration/editor/RunConfigsViewController":2578,"MOTW/editor/plugins/service/EditorServicePlugin":2579,"MOTW/editor/actions/LiveEditorActions":2580,"MOTW/editor/plugins/backingstore/OnlineEditorBackingstoreProvider":2581,"common_features/plugin/backingstore/AbstractEditorBackingstore":2582,"rtc/ioservice/SerializationService":2583,"common_features/plugin/backingstore/EditorBackingstoreContentContributor":2584,"MOTW/editor/plugins/close/EditorCloseHandlerProvider":2585,"MOTW/editor/plugins/contextmenu/DocumentTabContextMenuProvider":2586,"MOTW/editor/plugins/contextmenu/ReconfigureContextMenuModelProvider":2587,"MOTW/editor/plugins/delete/FileDeleteHandler":2588,"MOTW/editor/plugins/gotocodelinecolumn/MatlabOnlineGotoCodeLineColumnProvider":2589,"MOTW/toolstrip/liveAppsGallery/LiveAppsGalleryManagerFactory":2590,"MOTW/editor/plugins/refactor/function/externalfunction/MatlabOnlineExternalFunctionFileCreatorProvider":2591,"MOTW/editor/plugins/save/SaveErrorHandlerProvider":2592,"MOTW/editor/plugins/save/SaveErrorMessageStore":2593,"dojo/i18n!rtc/resources/rich_text_component/nls/statusbar":2594,"MOTW/editor/statusbar/displayitem/FileEncodingDisplay":2595,"MOTW/editor/statusbar/displayitem/LineEndingStyleDisplay":2596,"MOTW/editor/statusbar/displayitem/EnclosingScopeDisplay":2597,"MOTW/editor/statusbar/displayitem/LineNumberDisplay":2598,"MOTW/editor/statusbar/displayitem/ColumnNumberDisplay":2599,"MOTW/editor/plugins/variablehighlighting/VariableHighlightingStatusBarProvider":2600,"liveeditor/plugin/external/matlabunit/MATLABUnitPluginProvider":2601,"liveeditor/plugin/external/matlabunit/MATLABUnitPlugin":2602,"MOTW/editor/actions/ActionProviderFactory":2603,"liveeditor/plugin/external/sysobj/SysObjTemplateConfig":2604,"MOTW/editor/utils/Capabilities":2605,"MOTW/versioning/VersioningUtils":2606,"MOTW/embeddedfigures/EmbeddedFigureConextualToolstripManager":2607,"MOTW/toolstrip/figureGalleries/FigureAnnotationsGalleryManager2":2608,"matlab_favorite_commands/js/IconComboBox":2609,"dojo/i18n!MOTW/l10n/nls/feedback":2610,"MOTW/figureapps/MOFigureMsgService":2611,"MOTW/findFiles/MessageType":2612,"MOTW/findFiles/FindFilesChannels":2613,"dojo/i18n!findfiles-ui/l10n/gen/resources/findfiles/nls/findfiles":2614,"dojo/i18n!gotofile/l10n/gen/resources/gotofile/nls/goToFile":2615,"MOTW/help/HelpDataServiceFactory":2616,"MOTW/help/impl/HelpDataNullService":2617,"importtool_client/ImportToolDocument":2618,"importtool_client/SpreadsheetImportWidget":2619,"importtool_client/TabularDataImportWidget":2620,"importtool_client/ImportWidget":2621,"importtool_client/SpreadsheetDataImportSource":2622,"importtool_peer/RemoteTabularDataImportSource":2623,"importtool_client/toolstrip/ImportToolstripActions":2624,"MOTW/layout/FloatingPane":2625,"mw-login/placements/Placement":2626,"MOTW/motw/matlabexitservice/MatlabExitServiceFactory":2627,"project-file-ui/shortcut/ShortcutToolstripSection":2628,"project-file-ui/shortcut/ShortcutDialog":2629,"project-file-ui/sourcecontrol/SourceControlToolstripSection":2630,"dojo/i18n!project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_action":2631,"project-file-ui/FileUtil":2632,"project-file-ui/project_path/ProjectPathCache":2633,"project-core-ui/util/ProjectFileSelector":2634,"project-util-ui/GenericFileSelector":2635,"project-core-ui/util/ProjectCloseAction":2636,"project-core-ui/toolstrip/GenericToolstripItemManager":2637,"project-core-ui/toolstrip/ToolsManager":2638,"project-file-ui/ProjectFileView":2639,"project-file-ui/ProjectPathService":2640,"computils-ui/CollectionUtil":2641,"project-labels-ui/js/CategoryAdder":2642,"project-labels-ui/js/CategoryRemover":2643,"project-labels-ui/js/LabelAdder":2644,"project-labels-ui/js/LabelRemover":2645,"MOTW/mgg/containers/GUIContainer":2646,"MOTW/mgg/containers/ScrollPane":2647,"MOTW/mgg/menus/MenuItem":2648,"MOTW/mgg/buttons/Button":2649,"MOTW/mgg/utils/_MouseEvents":2650,"MOTW/mgg/utils/_KeyEvents":2651,"dijit/form/Select":2652,"MOTW/mgg/utils/HtmlUtils":2653,"MOTW/mgg/components/VerticalScrollBar":2654,"MOTW/mgg/table/_Keyboard":2655,"MOTW/mgg/table/_ListBase":2656,"MOTW/mgg/table/_TableSelection":2657,"MOTW/mgg/buttons/CheckBox":2658,"MOTW/mgg/buttons/_LabeledButton":2659,"mw-tabular-data-model/DataStore":2660,"mw-tabular-data-model/On":2661,"mw-tabular-data-model/impl/_criteriaUtils":2662,"mw-tabular-data-model/impl/_metaData/_MetaDataRule":2663,"MOTW/pct/app/utils/log/_Logger":2664,"MOTW/pct/app/utils/remote/MatlabChannel":2665,"MOTW/pct/app/status/session/DetailLevel":2666,"MOTW/pct/app/status/session/ShutdownAction":2667,"MOTW/pct/app/toolstrip/ActionIdConstants":2668,"MOTW/pct/app/cluster/profiles/PropertiesView":2669,"MOTW/pct/app/cluster/profiles/property/_PropertyValueWidget":2670,"MOTW/pct/app/cluster/profiles/property/editors/MultilineStringPropertyEditor":2671,"MOTW/pct/app/cluster/profiles/property/editors/NumericPropertyEditor":2672,"MOTW/pct/app/cluster/profiles/property/viewers/_PropertyValueViewer":2673,"MOTW/pct/app/utils/actions/ActionManager":2674,"MOTW/pct/app/cluster/profiles/validation/ValidationView":2675,"MOTW/pct/app/utils/ToolstripUtils":2676,"MOTW/pct/app/cloud/connectivity/model/ConnectivityCheckStatus":2677,"MOTW/pct/app/jobmonitor/model/JobType":2678,"MOTW/pct/app/utils/Enum":2679,"rendererseditors/ViewManifest":2680,"rendererseditors/editors/ArrayOfValuesTextBoxEditor":2681,"rendererseditors/editors/CheckboxListEditor/CheckboxListEditor":2682,"rendererseditors/editors/ColorDropDownEditor":2683,"rendererseditors/editors/ColorEditor":2684,"rendererseditors/editors/ColorTextBoxEditor":2685,"rendererseditors/editors/DatePickerEditor":2686,"rendererseditors/utils/DateUtils":2687,"rendererseditors/editors/StringEditor":2688,"mw-facade/MatlabFacade":2689,"rendererseditors/editors/UITableEditor":2690,"rendererseditors/editors/UITableMWComboBox":2691,"inspector_client/widget/InspectorClientManager":2692,"inspector_client/renderer/PropertyEditorGroupRenderer":2693,"inspector_client/editors/EditorManifest":2694,"inspector_client/treeobjectbrowser/TreeObjectBrowser":2695,"inspector_client/treeobjectbrowser/GraphicsContextMenu":2696,"inspector_client/treeobjectbrowser/GraphicsTreeRenderer":2697,"dojo/text!inspector_client/templates/inspectorPropertyGroup.html":2698,"dojo/text!inspector_client/templates/inspectorPropertyEditorGroup.html":2699,"dojo/text!inspector_client/templates/inspectorPropertySet.html":2700,"dojo/text!inspector_client/templates/inspectorPropertySubGroup.html":2701,"dojo/text!inspector_client/templates/inspectorPropertySheetWithoutHeader.html":2702,"inspector_client/editors/PropertyFieldsEditor":2703,"inspector_client/editors/datatiprowseditor/DataTipsRichEditor":2704,"viewmodel/impl/matlabViewModel/listener/MF0EventObservable":2705,"MOTW/sharing/SharingDataService":2706,"MOTW/sharing/SharingManager":2707,"slonlineui/containers/DialogContainer":2708,"slonlineui/TestUtils/TestModeUtil":2709,"slonlineui/utils/ConfigUtils":2710,"MOTW/motw/taskbar/WindowList":2711,"dojo/i18n!MOTW/l10n/nls/taskbar":2712,"MOTW/udc/impl/UdcNullService":2713,"variableeditor_client/enums/VEActionConstants":2714,"glee/js/glee2/mixins/properties/_WGCheckableMixin":2715,"glee/js/glee2/mixins/events/_WGToggleEventMixin":2716,"glee/js/glee2/mixins/properties/_WGElideModeMixin":2717,"glee/js/glee2/mixins/events/_WGEditEventMixin":2718,"glee/js/glee2/mixins/events/_WGEditFinishEventMixin":2719,"desktop_workspacebrowser/WSBFactory":2720,"MOTW/wra/gdsStartupHealthCheckWorkaround":2721,"MOTW/motw/StatusNode":2722,"testbrowser-ui/services/DataStoreService":2723,"mw-popout/impl/manager/PopoutsManager":2724,"mw-popout/impl/manager/EntityManager":2725,"mw-popout/impl/manager/StateManager":2726,"mlc/core/MessagingConstants":2727,"mlc/util/GeneralConstants":2728,"dojo/i18n!project-sharing-widgets/resources/MATLAB/project/nls/sharing":2729,"dojo/i18n!cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/view_core":2730,"MOTW/workerClient/WorkerClientFactory":2731,"MOTW/workerClient/WorkerClient":2732,"mw-webwindow/windows/WebWindowEvents":2733,"mw-webwindow/bringToFront/BringToFrontUtils":2734,"importtool_client/SpreadsheetArrayViewModel":2735,"importtool_client/ImportToolArrayViewModel":2736,"importtool_peer/ImportToolMixedDataStoreWrapper":2737,"importtool_peer/ImportToolDataTypeMenuMixin":2738,"importtool_client/TextArrayViewModel":2739,"variableeditor/views/ClientPeerView":2740,"variableeditor/views/table/tableBase/tableCellRenderers":2741,"dojo/text!variableeditor/views/table/VariableEditorColumnHeader.html":2742,"dojo/text!variableeditor/views/table/VariableEditorRowHeader.html":2743,"datatoolsservices/TestingPropConstants":2744,"variableeditor/views/accessibility/VEKeyBindingsMap":2745,"importtool_client/renderers/HeaderRenderer":2746,"dojo/_base/loader":2747,"dojo/i18n!mw-browser-utils/l10n/nls/unsupportedErrorPage":2748,"dojo/dom-form":2749,"dojo/_base/json":2750,"dojo/errors/RequestTimeoutError":2751,"dojo/request/handlers":2752,"mw-browser-utils/l10n/nls/unsupportedErrorPage":2753,"mw-browser-utils/detect/css":2754,"mw-browser-utils/detect/object":2755,"mw-html-utils/_parseHtml/sanitize":2756,"mw-log/impl/Levels":2757,"mw-log/impl/Backlog":2758,"MOTW/motw/MotwApplication":2759,"mw-remote/iframeproxy/CheckUrlService":2760,"mw-remote/iframeproxy/IframeProxyReplace":2761,"mw-remote/impl/FaultManager":2762,"mw-remote/impl/RequestManager":2763,"mw-remote/EndPointsManager":2764,"mw-remote/impl/ResponseManager":2765,"mw-remote/impl/AutoDetectedTransaction":2766,"mw-remote/impl/JsonTransaction":2767,"mw-remote/UploadToWorker":2768,"mw-remote/ReplaceUploadIframe":2769,"mw-remote/utils/RemoteUrlUtils":2770,"mw-remote/serviceRegistryLookup!":2771,"mw-remote/serviceRegistryLookup":2772,"MW/uiframework/featuredetection/DefaultFeatures":2773,"MW/uiframework/featuredetection/CEFFeature":2774,"MW/uiframework/uicontainer/UndockedContainer":2776,"dojo/selector/_loader":2777,"dijit/_BidiMixin":2778,"dijit/_OnDijitClickMixin":2779,"dijit/layout/_ContentPaneResizeMixin":2780,"dojo/i18n!dijit/nls/loading":2781,"dijit/nls/bs/loading":2782,"dijit/nls/mk/loading":2783,"dijit/nls/sr/loading":2784,"dijit/nls/zh/loading":2785,"dijit/nls/zh-tw/loading":2786,"dijit/nls/uk/loading":2787,"dijit/nls/tr/loading":2788,"dijit/nls/th/loading":2789,"dijit/nls/sv/loading":2790,"dijit/nls/sl/loading":2791,"dijit/nls/sk/loading":2792,"dijit/nls/ru/loading":2793,"dijit/nls/ro/loading":2794,"dijit/nls/pt/loading":2795,"dijit/nls/pt-pt/loading":2796,"dijit/nls/pl/loading":2797,"dijit/nls/nl/loading":2798,"dijit/nls/nb/loading":2799,"dijit/nls/ko/loading":2800,"dijit/nls/kk/loading":2801,"dijit/nls/ja/loading":2802,"dijit/nls/it/loading":2803,"dijit/nls/id/loading":2804,"dijit/nls/hu/loading":2805,"dijit/nls/hr/loading":2806,"dijit/nls/he/loading":2807,"dijit/nls/fr/loading":2808,"dijit/nls/fi/loading":2809,"dijit/nls/eu/loading":2810,"dijit/nls/es/loading":2811,"dijit/nls/el/loading":2812,"dijit/nls/de/loading":2813,"dijit/nls/da/loading":2814,"dijit/nls/cs/loading":2815,"dijit/nls/ca/loading":2816,"dijit/nls/bg/loading":2817,"dijit/nls/az/loading":2818,"dijit/nls/ar/loading":2819,"dijit/nls/loading":2820,"mw-peermodel/PropSetPeerSynchronizer":2821,"mw-messageservice/messageserviceimpl/MessageServiceAsync":2822,"dojox/cometd/AckExtension":2823,"mw-messageservice/messageserviceimpl/MessageServiceState":2824,"mw-statemachine/statemachineimpl/State":2825,"mw-statemachine/statemachineimpl/EventTrigger":2826,"mw-statemachine/statemachineimpl/MessageTrigger":2827,"mw-statemachine/statemachineimpl/RemoteTrigger":2828,"mw-statemachine/statemachineimpl/TimeoutTrigger":2829,"mw-statemachine/statemachineimpl/Transition":2830,"mw-messageservice/messageserviceimpl/MessageServiceReqResp":2831,"mw-peermodel/ImageDifferencer":2832,"mw-peermodel/PeerNode":2833,"mw-peermodel/PeerEventObservable":2834,"mw-peermodel/_PropertyIndexerMixin":2835,"mw-keybindings/KeyboardKeys":2836,"mw-keybindings/ModifierKeys":2837,"dojo/i18n!mw-keybindings/l10n/nls/keyBindings":2838,"mw-keybindings/l10n/nls/keyBindings":2839,"mw-keybindings/Binding":2841,"dojo/cache":2842,"dojo/text":2843,"dijit/_AttachMixin":2844,"dojo/text!mw-form/templates/PushButton.html":2845,"mw-utils/domUtils":2846,"dojo/text!mw-form/templates/MenuItem.html":2847,"dojo/text!mw-form/templates/MenuSeparator.html":2848,"dojo/text!mw-form/templates/ToggleButton.html":2849,"mw-form/mixins/property/DestroyedMixin":2850,"dojo/text!mw-form/templates/CheckBox.html":2851,"dojo/text!mw-form/templates/RadioButton.html":2852,"mw-ddux/DirectSender":2853,"mw-ddux/MatlabSender":2854,"mw-ddux/WidgetLogger":2855,"dojo/text!mw-form/templates/PopupMenuItem.html":2856,"dojo/text!MW/layout/templates/Tab.html":2857,"l10n/nls/ja-jp/layout":2858,"l10n/nls/ko-kr/layout":2859,"l10n/nls/zh-cn/layout":2860,"l10n/nls/layout":2861,"dojo/text!MW/layout/templates/TitleBar.html":2862,"dojo/text!MW/layout/templates/CollapsedBorderChildH.html":2863,"dojo/text!MW/layout/templates/CollapsedBorderChildV.html":2864,"MW/layout/DocumentBar":2865,"dojo/text!dijit/templates/Menu.html":2866,"dojo/text!dijit/templates/MenuItem.html":2867,"dojo/text!MW/layout/templates/TabPlusButton.html":2868,"MW/layout/GroupedTabContainer":2869,"MW/layout/GroupedTabBar":2870,"MW/layout/TabGroupHeader":2871,"dojo/text!MW/layout/templates/TabGroupHeader.html":2872,"MW/layout/TileTabContainer":2873,"MW/layout/BottomContainer":2874,"MW/layout/PanelDragger":2875,"MW/layout/SideContainer":2876,"MW/layout/AccordionContainer":2877,"MW/layout/ContainerPlaceholder":2878,"dojo/text!MW/layout/templates/ContainerPlaceholderTemplate.html":2879,"dojo/text!MW/statusbar/widgets/templates/StatusBar.html":2880,"MW/uiframework/UIBuilder":2881,"MW/uiframework/managers/ModelManager":2882,"viewmodel/impl/commitstrategy/CommitStrategyFactory":2883,"viewmodel/impl/commitstrategy/AlwaysCommitStrategy":2884,"viewmodel/impl/commitstrategy/BatchCommitStrategy":2885,"viewmodel/impl/commitstrategy/ManualCommitStrategy":2886,"viewmodel/impl/transactionhandlerstrategy/TransactionHandler":2887,"viewmodel/impl/transactionhandlerstrategy/AbstractTransactionHandler":2888,"mf0/io/SynchronizationChannel":2889,"mf0/resources/messages":2890,"mf0/util/DisplaySummaryMap":2891,"mf0_sync/HostSyncLoggerBackend":2893,"mf0/Storage":2895,"performance/cache/cache-mixins":2896,"mf0/ReportData":2897,"mf0/meta/DataModelUsageProvider":2898,"mf0/util/ConsoleLoggerBackend":2899,"mf0/meta/Loader":2900,"mf0/meta/ExtendProperty":2902,"mf0/meta/ExtendStructuredType":2903,"mf0/meta/ExtendClass":2904,"mf0/meta/ExtendPackage":2905,"mf0/meta/ExtendEnumLiteral":2906,"mf0/meta/ExtendType":2907,"mf0/meta/ExtendExtension":2908,"mf0/meta/ExtendAttributeMap":2909,"mf0/meta/PropertySerializer":2910,"mf0/meta/Event":2911,"mf0/io/SerializationOutput":2912,"mf0/io/JSONChangeReportSynchronizer":2913,"mf0/io/JSONModelTraverserNoTransient":2914,"mf0/io/Serializer":2915,"mf0/io/EventProcessor":2916,"mf0/io/ParseCustomizer":2917,"mf0/io/Parser":2918,"mf0/io/ParseProcessor":2919,"mf0/io/ParseItem":2920,"mf0/io/PacketTransport":2921,"viewmodel/impl/ViewModelManager":2922,"viewmodel/impl/listener/ViewModelManagerListener":2923,"viewmodel/impl/ViewModelFactory":2924,"viewmodel/impl/ViewModel":2925,"viewmodel/impl/listener/EventDispatchable":2926,"viewmodel/impl/listener/ViewModelListener":2927,"viewmodel/impl/propertiesgetsetstrategy/JSONEncodePropertyGetSetStrategy":2928,"viewmodel/impl/propertiesgetsetstrategy/AbstractPropertyGetSetStrategy":2929,"viewmodel/plugins/PluginManager":2930,"viewmodel/plugins/MoveEventPlugin":2931,"viewmodel/plugins/AbstractPlugin":2932,"MW/toolstrip/hashes/componentproperties/containers/ToolstripProperties":2933,"MW/toolstrip/hashes/componentproperties/properties/HideRestoreDefaultsQABOptionProperty":2934,"MW/toolstrip/hashes/componentproperties/containers/QABProperties":2935,"MW/toolstrip/hashes/componentproperties/containers/QAGroupProperties":2936,"MW/toolstrip/hashes/componentproperties/containers/TabGroupProperties":2937,"MW/toolstrip/hashes/componentproperties/containers/TabProperties":2938,"MW/toolstrip/hashes/componentproperties/containers/ColumnProperties":2939,"MW/toolstrip/constants/AlignmentConstants":2940,"MW/toolstrip/hashes/componentproperties/containers/SectionProperties":2941,"MW/toolstrip/hashes/componentproperties/containers/PanelProperties":2942,"MW/toolstrip/hashes/componentproperties/containers/FooterProperties":2943,"MW/toolstrip/hashes/componentproperties/containers/FooterCellProperties":2944,"MW/toolstrip/hashes/componentproperties/controls/DropDownButtonProperties":2945,"MW/toolstrip/hashes/componentproperties/controls/SplitButtonProperties":2946,"MW/toolstrip/hashes/componentproperties/controls/ToggleSplitButtonProperties":2947,"MW/toolstrip/hashes/componentproperties/controls/ColorPickerButtonProperties":2948,"l10n/nls/ja-jp/toolstrip":2949,"l10n/nls/ko-kr/toolstrip":2950,"l10n/nls/zh-cn/toolstrip":2951,"l10n/nls/toolstrip":2952,"MW/toolstrip/hashes/componentproperties/controls/GridPickerButtonProperties":2953,"MW/toolstrip/hashes/componentproperties/controls/QABPushButtonProperties":2954,"MW/toolstrip/hashes/componentproperties/controls/QABDropDownButtonProperties":2955,"MW/toolstrip/hashes/componentproperties/controls/QABFloatingPaneDockProperties":2956,"MW/toolstrip/hashes/componentproperties/controls/QABSplitButtonProperties":2957,"MW/toolstrip/hashes/componentproperties/controls/QABToggleButtonProperties":2958,"MW/toolstrip/hashes/componentproperties/controls/QABToggleSplitButtonProperties":2959,"MW/toolstrip/hashes/componentproperties/controls/QABGalleryCategoryButtonProperties":2960,"MW/toolstrip/hashes/componentproperties/properties/CategoryIdProperty":2961,"MW/toolstrip/hashes/componentproperties/controls/ComboBoxProperties":2962,"MW/toolstrip/hashes/componentproperties/controls/ListProperties":2963,"MW/toolstrip/hashes/componentproperties/controls/PopupListProperties":2964,"MW/toolstrip/hashes/componentproperties/controls/PopupListPanelProperties":2965,"MW/toolstrip/hashes/componentproperties/controls/PopupListHeaderProperties":2966,"MW/toolstrip/hashes/componentproperties/controls/PopupListSeparatorProperties":2967,"MW/toolstrip/hashes/componentproperties/controls/TextAreaProperties":2968,"MW/toolstrip/hashes/componentproperties/controls/HorizontalSliderProperties":2969,"MW/toolstrip/hashes/componentproperties/controls/SpinnerProperties":2970,"MW/toolstrip/hashes/componentproperties/controls/RadioButtonProperties":2971,"MW/toolstrip/hashes/componentproperties/controls/CheckBoxProperties":2972,"MW/toolstrip/hashes/componentproperties/controls/EmptyControlProperties":2973,"MW/toolstrip/hashes/componentproperties/controls/MenuBarWrapperProperties":2974,"MW/toolstrip/hashes/componentproperties/controls/ToolBarWrapperProperties":2975,"MW/toolstrip/hashes/componentproperties/controls/GalleryProperties":2976,"MW/toolstrip/hashes/componentproperties/properties/HideDisabledItemsProperty":2977,"MW/toolstrip/hashes/componentproperties/properties/OpenIfEmptyProperty":2978,"MW/toolstrip/hashes/componentproperties/properties/OwnsPopupProperty":2979,"MW/toolstrip/hashes/componentproperties/controls/GalleryPopupProperties":2980,"MW/toolstrip/hashes/componentproperties/properties/ColumnMajorLayoutProperty":2981,"MW/toolstrip/hashes/componentproperties/controls/GalleryPanelProperties":2982,"MW/toolstrip/hashes/componentproperties/controls/GalleryCategoryProperties":2983,"MW/toolstrip/hashes/componentproperties/properties/HideWhenEmptyProperty":2984,"MW/toolstrip/hashes/componentproperties/controls/GalleryFavoriteCategoryProperties":2985,"MW/toolstrip/hashes/componentproperties/controls/GalleryItemProperties":2986,"MW/toolstrip/hashes/componentproperties/controls/ToggleGalleryItemProperties":2987,"MW/toolstrip/hashes/componentproperties/controls/ListItemProperties":2988,"MW/toolstrip/hashes/componentproperties/controls/ListItemWithCheckBoxProperties":2989,"MW/toolstrip/hashes/componentproperties/controls/ListItemWithRadioButtonProperties":2990,"MW/toolstrip/hashes/componentproperties/controls/ListItemWithTextFieldProperties":2991,"MW/toolstrip/hashes/componentproperties/properties/EditOptionProperty":2992,"MW/toolstrip/hashes/componentproperties/properties/EditOptionMessageProperty":2993,"MW/toolstrip/hashes/componentproperties/properties/HasDynamicEditProperty":2994,"MW/toolstrip/hashes/componentproperties/controls/ListItemWithPopupProperties":2995,"MW/statusbar/properties/StatusBarProperties":2996,"MW/statusbar/properties/StatusGroupProperties":2997,"MW/statusbar/properties/StatusLabelProperties":2998,"MW/statusbar/properties/StatusProgressBarProperties":2999,"MW/statusbar/properties/NumericValueProperty":3e3,"MW/statusbar/properties/StatusPushButtonProperties":3001,"MW/statusbar/properties/StatusTextFieldProperties":3002,"MW/statusbar/properties/TextValueProperty":3003,"MW/statusbar/properties/StatusToggleButtonProperties":3004,"MW/uiframework/hashes/IconPropertiesSupportingBase64":3005,"MW/uiframework/hashes/ComponentsWithNoParent":3006,"MW/statusbar/ComponentsThatSupportAction":3007,"MW/toolstrip/hashes/ComponentsSupportedByFooterCell":3008,"MW/toolstrip/hashes/ComponentsThatDontSupportAction":3009,"MW/toolstrip/hashes/PeerNodeTypesWithNoCorrespondingWidget":3010,"MW/toolstrip/hashes/DefaultGalleryItemWidths":3011,"MW/uiframework/managers/WidgetManager":3012,"MW/uiframework/WidgetFactory":3013,"MW/statusbar/WidgetClassHash":3014,"MW/statusbar/widgets/StatusGroup":3015,"dojo/text!MW/statusbar/widgets/templates/StatusGroup.html":3016,"MW/statusbar/widgets/StatusLabel":3017,"dojo/text!mw-form/templates/Label.html":3018,"MW/statusbar/widgets/StatusProgressBar":3019,"mw-notifications/_ProgressMixin":3020,"dojo/text!mw-notifications/templates/ProgressBar.html":3021,"MW/statusbar/widgets/StatusPushButton":3022,"MW/statusbar/widgets/StatusTextField":3023,"dojo/text!mw-form/templates/TextField.html":3024,"MW/statusbar/widgets/StatusToggleButton":3025,"MW/toolstrip/hashes/WidgetClassHash":3026,"MW/toolstrip/widgets/Toolstrip":3027,"dojo/text!MW/toolstrip/widgets/templates/Toolstrip.html":3028,"MW/toolstrip/widgets/TabContainer":3029,"dijit/layout/_TabContainerBase":3030,"dojo/text!dijit/layout/templates/TabContainer.html":3031,"dijit/layout/StackController":3032,"dojo/text!dijit/form/templates/Button.html":3033,"dijit/form/_ToggleButtonMixin":3034,"dojo/text!dijit/layout/templates/_TabButton.html":3035,"dijit/nls/bs/common":3036,"dijit/nls/mk/common":3037,"dijit/nls/sr/common":3038,"dijit/nls/zh/common":3039,"dijit/nls/zh-tw/common":3040,"dijit/nls/uk/common":3041,"dijit/nls/tr/common":3042,"dijit/nls/th/common":3043,"dijit/nls/sv/common":3044,"dijit/nls/sl/common":3045,"dijit/nls/sk/common":3046,"dijit/nls/ru/common":3047,"dijit/nls/ro/common":3048,"dijit/nls/pt/common":3049,"dijit/nls/pt-pt/common":3050,"dijit/nls/pl/common":3051,"dijit/nls/nl/common":3052,"dijit/nls/nb/common":3053,"dijit/nls/ko/common":3054,"dijit/nls/kk/common":3055,"dijit/nls/ja/common":3056,"dijit/nls/it/common":3057,"dijit/nls/id/common":3058,"dijit/nls/hu/common":3059,"dijit/nls/hr/common":3060,"dijit/nls/he/common":3061,"dijit/nls/fr/common":3062,"dijit/nls/fi/common":3063,"dijit/nls/eu/common":3064,"dijit/nls/es/common":3065,"dijit/nls/el/common":3066,"dijit/nls/de/common":3067,"dijit/nls/da/common":3068,"dijit/nls/cs/common":3069,"dijit/nls/ca/common":3070,"dijit/nls/bg/common":3071,"dijit/nls/az/common":3072,"dijit/nls/ar/common":3073,"dijit/nls/common":3074,"dojo/text!dijit/layout/templates/ScrollingTabController.html":3075,"dojo/text!dijit/layout/templates/_ScrollingTabControllerButton.html":3076,"dojo/text!MW/toolstrip/widgets/templates/TabButton.html":3077,"dojo/text!mw-form/templates/MenuHeader.html":3078,"MW/toolstrip/utils/doubleClickHandler":3079,"dojo/i18n!mw-notifications/l10n/nls/NotificationsResources":3080,"mw-notifications/l10n/nls/NotificationsResources":3081,"mw-notifications/BannerWidget":3082,"mw-dialogs/view/Dialog":3083,"mw-dialogs/l10n/nls/ja-jp/dialog":3084,"mw-dialogs/l10n/nls/ko-kr/dialog":3085,"mw-dialogs/l10n/nls/zh-cn/dialog":3086,"mw-dialogs/l10n/nls/dialog":3087,"mw-dialogs/controller/DialogController":3088,"mw-dialogs/controller/Draggable":3089,"mw-dialogs/controller/Focus":3090,"mw-dialogs/view/ButtonBar":3091,"mw-dialogs/view/ContentWidget":3092,"mw-dialogs/utils/mixinDijitLifecycleMethods":3093,"mw-dialogs/utils/preventShortCutKeys":3094,"MW/toolstrip/mixins/TouchMenuMixin":3095,"MW/toolstrip/form/SizeableButton":3096,"MW/toolstrip/contextmenumanager/ContextMenuManager":3097,"MW/toolstrip/widgets/QAB":3098,"dojo/text!MW/toolstrip/widgets/templates/QAB.html":3099,"dojo/text!MW/toolstrip/widgets/gallery/templates/GalleryPanel.html":3100,"MW/toolstrip/mixins/property/OptionsEnabledMixin":3101,"MW/toolstrip/widgets/QAGroup":3102,"dojo/text!MW/toolstrip/widgets/templates/QAGroup.html":3103,"MW/toolstrip/widgets/TabGroup":3104,"dojo/text!MW/toolstrip/widgets/templates/TabGroup.html":3105,"MW/toolstrip/widgets/Tab":3106,"MW/toolstrip/widgets/Section":3107,"dojo/text!MW/toolstrip/widgets/templates/Section.html":3108,"MW/toolstrip/form/SectionDropDownButton":3109,"MW/toolstrip/widgets/SectionPopup":3110,"MW/toolstrip/widgets/Panel":3111,"dojo/text!MW/toolstrip/widgets/templates/Panel.html":3112,"MW/toolstrip/widgets/Column":3113,"dojo/text!MW/toolstrip/widgets/templates/Column.html":3114,"MW/toolstrip/menu/PopupListPanel":3115,"dojo/text!mw-form/templates/MenuPanel.html":3116,"MW/toolstrip/widgets/Footer":3117,"dojo/text!MW/toolstrip/widgets/templates/Footer.html":3118,"MW/toolstrip/widgets/FooterCell":3119,"dojo/text!MW/toolstrip/widgets/templates/FooterCell.html":3120,"MW/toolstrip/widgets/gallery/Gallery":3121,"dojo/text!MW/toolstrip/widgets/gallery/templates/Gallery.html":3122,"MW/toolstrip/widgets/gallery/ScrollToSelectionMixin":3123,"MW/toolstrip/widgets/gallery/HideDisabledItemsMixin":3124,"MW/toolstrip/widgets/gallery/GalleryCategory":3125,"dojo/dnd/Selector":3126,"dojo/dnd/Container":3127,"dojo/text!MW/toolstrip/widgets/gallery/templates/GalleryCategory.html":3128,"MW/toolstrip/widgets/gallery/GalleryItemAvatar":3129,"MW/toolstrip/form/ColorPickerButton":3130,"mw-colorpicker/ColorPalette":3131,"dijit/_PaletteMixin":3132,"dojo/text!mw-colorpicker/templates/ColorPalette.html":3133,"dojo/text!mw-colorpicker/templates/ColorPaletteSwatch.html":3134,"mw-colorpicker/l10n/nls/ja-jp/ColorPickerResources":3135,"mw-colorpicker/l10n/nls/zh-cn/ColorPickerResources":3136,"mw-colorpicker/l10n/nls/ko-kr/ColorPickerResources":3137,"mw-colorpicker/l10n/nls/ColorPickerResources":3138,"mw-colorpicker/ColorSpinner":3139,"mw-form/mixins/KeyNavMixin":3140,"dojo/text!mw-form/templates/ComboBox.html":3141,"mw-form/mixins/property/FormatMixin":3142,"dojo/text!mw-form/templates/Spinner.html":3143,"dojo/text!mw-colorpicker/templates/ColorSpinner.html":3144,"mw-colorpicker/ColorGradient":3145,"dojo/text!mw-colorpicker/templates/ColorGradient.html":3146,"mw-colorpicker/ColorStyle":3147,"dojo/text!mw-colorpicker/templates/ColorStyle.html":3148,"dojo/text!mw-colorpicker/templates/ColorPicker.html":3149,"MW/toolstrip/form/GridPickerButton":3150,"MW/toolstrip/qab/QABPushButton":3151,"MW/toolstrip/qab/QABSplitButton":3152,"MW/toolstrip/qab/QABToggleButton":3153,"MW/toolstrip/qab/QABToggleSplitButton":3154,"mw-form/ToggleSplitButton":3155,"MW/toolstrip/qab/QABGalleryCategoryButton":3156,"MW/toolstrip/widgets/qabcontrols/QABFloatingPaneDock":3157,"MW/toolstrip/menu/ListItemWithPopup":3158,"MW/toolstrip/menu/ListItemWithCheckBox":3159,"MW/toolstrip/menu/ListItemWithTextField":3160,"dojo/text!mw-form/templates/TextFieldMenuItem.html":3161,"MW/toolstrip/mixins/property/EditableMixin":3162,"MW/toolstrip/mixins/property/EditOptionMixin":3163,"MW/toolstrip/menu/ListItemWithRadioButton":3164,"MW/toolstrip/menu/PopupListSeparator":3165,"MW/toolstrip/menu/PopupListHeader":3166,"MW/toolstrip/form/ComboBox":3167,"MW/toolstrip/form/ListBox":3168,"dojo/text!dijit/templates/Tooltip.html":3169,"dojo/text!mw-form/templates/ListBox.html":3170,"MW/toolstrip/widgets/Tooltip":3171,"MW/toolstrip/widgets/_DescriptionMixin":3172,"dojo/text!MW/toolstrip/widgets/templates/Tooltip.html":3173,"MW/toolstrip/form/Label":3174,"MW/toolstrip/widgets/EmptyControl":3175,"dojo/text!MW/toolstrip/widgets/templates/EmptyControl.html":3176,"MW/toolstrip/form/TextField":3177,"MW/toolstrip/form/TextArea":3178,"dojo/text!mw-form/templates/TextArea.html":3179,"MW/toolstrip/form/Spinner":3180,"MW/toolstrip/widgets/HorizontalSlider":3181,"MW/toolstrip/widgets/_SliderPropertyMixin":3182,"MW/toolstrip/widgets/_SliderKeyBoardEventMixin":3183,"MW/toolstrip/widgets/external/HorizontalSlider":3184,"MW/toolstrip/widgets/external/_AbstractSlider":3185,"dijit/form/_FormValueMixin":3186,"dojo/text!MW/toolstrip/widgets/external/templates/Slider.html":3187,"MW/toolstrip/widgets/external/_SliderThumbMover":3188,"MW/toolstrip/widgets/external/HorizontalRuleLabels":3189,"dojo/i18n!dojo/cldr/nls/number":3190,"dojo/cldr/nls/ar/number":3191,"dojo/cldr/nls/bs/number":3192,"dojo/cldr/nls/ca/number":3193,"dojo/cldr/nls/cs/number":3194,"dojo/cldr/nls/da/number":3195,"dojo/cldr/nls/de/number":3196,"dojo/cldr/nls/el/number":3197,"dojo/cldr/nls/en-au/number":3198,"dojo/cldr/nls/es/number":3199,"dojo/cldr/nls/fi/number":3200,"dojo/cldr/nls/fr/number":3201,"dojo/cldr/nls/fr-ch/number":3202,"dojo/cldr/nls/he/number":3203,"dojo/cldr/nls/hr/number":3204,"dojo/cldr/nls/hu/number":3205,"dojo/cldr/nls/it/number":3206,"dojo/cldr/nls/ja/number":3207,"dojo/cldr/nls/ko/number":3208,"dojo/cldr/nls/mk/number":3209,"dojo/cldr/nls/nb/number":3210,"dojo/cldr/nls/nl/number":3211,"dojo/cldr/nls/pl/number":3212,"dojo/cldr/nls/pt/number":3213,"dojo/cldr/nls/pt-pt/number":3214,"dojo/cldr/nls/ro/number":3215,"dojo/cldr/nls/ru/number":3216,"dojo/cldr/nls/sk/number":3217,"dojo/cldr/nls/sl/number":3218,"dojo/cldr/nls/sr/number":3219,"dojo/cldr/nls/sv/number":3220,"dojo/cldr/nls/th/number":3221,"dojo/cldr/nls/tr/number":3222,"dojo/cldr/nls/zh/number":3223,"dojo/cldr/nls/zh-hant/number":3224,"dojo/cldr/nls/zh-hk/number":3225,"dojo/cldr/nls/zh-tw/number":3226,"dojo/cldr/nls/number":3227,"MW/toolstrip/form/RadioButton":3228,"MW/toolstrip/form/CheckBox":3229,"MW/toolstrip/widgets/ToolbarWrapper":3230,"dojo/text!MW/toolstrip/widgets/templates/ToolbarWrapper.html":3231,"MW/toolstrip/widgets/MenubarWrapper":3232,"dojo/text!MW/toolstrip/widgets/templates/MenubarWrapper.html":3233,"dojo/text!MW/toolstrip/widgets/gallery/templates/GalleryItem.html":3234,"MW/toolstrip/constants/gallery/ItemLocationConstants":3235,"MW/toolstrip/mixins/property/GalleryItemDisabledMixin":3236,"MW/toolstrip/widgets/gallery/ToggleGalleryItem":3237,"MW/uiframework/hashes/ControlEventsHash":3238,"MW/toolstrip/hashes/ControlEventsHash":3239,"MW/statusbar/hashes/ControlEventsHash":3240,"MW/uiframework/hashes/PeerNodeWidgetEventsHash":3241,"MW/toolstrip/hashes/PeerNodeWidgetEventsHash":3242,"MW/statusbar/hashes/PeerNodeWidgetEventsHash":3243,"MW/uiframework/hashes/PeerNodeWidgetPropertiesHash":3244,"MW/statusbar/hashes/PeerNodeWidgetPropertiesHash":3245,"MW/uiframework/hashes/listOfNewWidgets":3246,"MW/statusbar/hashes/listOfNewWidgets":3247,"MW/toolstrip/hashes/ToolstripCollapseTriggers":3248,"MW/uiframework/managers/LazyLoadingWhitelist":3249,"MW/uiframework/supportedUIBuilderFunctions":3250,"MW/uiframework/contextmanager/ContextManager":3251,"MW/uiframework/contextmanager/PanelManager":3252,"MW/uiframework/contextmanager/QuickAccessActionManager":3253,"MW/uiframework/contextmanager/StatusComponentManager":3254,"MW/uiframework/contextmanager/TabGroupManager":3255,"MW/uiframework/MnemonicsManager":3256,"MW/uiframework/system/InlineFrameSystem":3257,"MW/window/CEFController":3258,"MW/window/SystemBrowserController":3259,"l10n/nls/ja-jp/dialog":3260,"l10n/nls/ko-kr/dialog":3261,"l10n/nls/zh-cn/dialog":3262,"l10n/nls/dialog":3263,"dojo/i18n!l10n/nls/uiframework":3264,"l10n/nls/ja-jp/uiframework":3265,"l10n/nls/ko-kr/uiframework":3266,"l10n/nls/zh-cn/uiframework":3267,"l10n/nls/uiframework":3268,"MW/uiframework/uicontainer/CleanupManager":3269,"MW/uiframework/uicontainer/ContextDriver":3270,"mw-module-loader/impl/dependencyGraph/ModuleDepGraph":3271,"mw-module-loader/impl/dependencyGraph/ModuleLoadSequence":3273,"mw-module-loader/impl/loader/LoadManager":3274,"mw-module-loader/impl/loader/webPackOverrides/bundleLoading":3275,"mw-module-loader/impl/ExportsStateManager":3276,"mw-module-loader/impl/ModuleObject":3277,"MW/uiframework/uicontainer/LocalSessionDataService":3278,"prefdir/prefdirService":3279,"MW/uiframework/uicontainer/peer/UIContainerPeer":3280,"MW/uiframework/uicontainer/peer/PeerNodeStatefulBridge":3281,"mw-widget-api/facade/LitElement":3282,"lit-html/lit-html-min":3283,"mw-progress-indicator/view/ViewFactory":3284,"mw-progress-indicator/view/SpinnerView":3285,"mw-progress-indicator/util/ProgressIndicatorUtils":3286,"dojo/text!mw-overlay-utils/templates/busyOverlayTemplate.html":3287,"mw-ddux/UsageOverlay":3288,"MOTW/features/GDSFeature":3289,"MOTW/features/SimulinkFeature":3290,"MOTW/features/LoginFeature":3291,"MOTW/features/MATLABLocalFeature":3292,"MOTW/features/NativePublishFeature":3293,"MOTW/features/UDCFeedbackFeature":3294,"MOTW/features/SetPathFeature":3295,"MOTW/features/NativeImportDataFeature":3296,"MOTW/features/GDSNotificationsFeature":3297,"MOTW/features/PreferencesFeature":3298,"MOTW/features/FeedbackFeature":3299,"MOTW/features/PublishFeature":3300,"MOTW/features/AddOnsFeature":3301,"MOTW/features/LogoutFeature":3302,"MOTW/features/FilterFileFolderFeature":3303,"MOTW/features/SessionTimerFeature":3304,"MOTW/motw/browserSupport":3305,"MOTW/l10n/nls/ja-jp/motw":3306,"MOTW/l10n/nls/ko-kr/motw":3307,"MOTW/l10n/nls/zh-cn/motw":3308,"MOTW/l10n/nls/motw":3309,"MOTW/motw/moduleRegistry":3310,"mw-perf/TimingObserver":3398,"rtc/core/registry/FeaturePluginRegistryBuildManifest":3413,"rtc/events/customkeyboardshortcuts/CustomKeyboardShortcutsProvider":3414,"rtc/events/customkeyboardshortcuts/CustomKeyboardShortcuts":3415,"rtc/events/customkeyboardshortcuts/CustomKeyboardShortcutsUtilities":3416,"rtc/events/customkeyboardshortcuts/JavaKeyEventToRtcKeyNameMap":3417,"rtc/events/customkeyboardshortcuts/DefaultShortcuts":3418,"rtc/events/customkeyboardshortcuts/TraditionalEditorActionMap":3419,"rtc/events/DojoKeyToRtcKeyNameMap":3420,"rtc/events/customkeyboardshortcuts/MessageServiceFactory":3421,"rtc/model/io/documentation/DocumentationServiceProvider":3422,"rtc/model/io/documentation/DocumentationService":3423,"dojo/i18n!rtc/resources/rich_text_component/nls/documentation":3424,"rtc/resources/rich_text_component/nls/ja-jp/documentation":3425,"rtc/resources/rich_text_component/nls/ko-kr/documentation":3426,"rtc/resources/rich_text_component/nls/zh-cn/documentation":3427,"rtc/resources/rich_text_component/nls/documentation":3428,"rtc/browsersupport/PseudoSet":3429,"rtc/browsersupport/PseudoWeakSet":3430,"rtc/margin/ExecutableLineNumberStylerProvider":3431,"rtc/margin/ExecutableLineNumberStyler":3432,"rtc/margin/AbstractLineNumberStyler":3433,"rtc/model/io/serializers/providers/containers/ContainerSerializerProvider":3434,"rtc/model/io/serializers/providers/containers/SectionBreakContainerSerializerProvider":3435,"rtc/model/io/serializers/containers/SectionBreakContainerSerializer":3436,"rtc/plugins/bannermanager/EditorBannerManagerProvider":3437,"rtc/plugins/bannermanager/BannerManager":3438,"rtc/plugins/tokens/matching/TokenMatchingEventHandler":3439,"rtc/plugins/tokens/matching/preference/TokenMatchingPreferenceProvider":3440,"rtc/plugins/tokens/matching/preference/TokenMatchPreference":3441,"rtc/plugins/tokens/highlighting/TokenHighlightingNotifier":3442,"rtc/plugins/tokens/highlighting/view/TokenHighlightingView":3443,"rtc/model/UnicodeCategories":3444,"rtc/view/decoration/viewmodel/DecorationAtomicDescriptor":3445,"rtc/plugins/bookmarks/Bookmarks":3446,"rtc/resources/rich_text_component/nls/ja-jp/actions":3447,"rtc/resources/rich_text_component/nls/ko-kr/actions":3448,"rtc/resources/rich_text_component/nls/zh-cn/actions":3449,"rtc/resources/rich_text_component/nls/actions":3450,"rtc/resources/rich_text_component/nls/ja-jp/execution":3451,"rtc/resources/rich_text_component/nls/ko-kr/execution":3452,"rtc/resources/rich_text_component/nls/zh-cn/execution":3453,"rtc/resources/rich_text_component/nls/execution":3454,"rtc/resources/rich_text_component/nls/ja-jp/rtcDebug":3455,"rtc/resources/rich_text_component/nls/ko-kr/rtcDebug":3456,"rtc/resources/rich_text_component/nls/zh-cn/rtcDebug":3457,"rtc/resources/rich_text_component/nls/rtcDebug":3458,"rtc/plugins/bookmarks/BookmarksPreferences":3459,"rtc/plugins/bookmarks/BookmarksTag":3460,"rtc/margin/MarginPlugin":3461,"rtc/plugins/bookmarks/BookmarksDecorator":3462,"rtc/plugins/bookmarks/BookmarksContextMenuContributor":3463,"rtc/plugins/breakpoint/matlab/ConditionalBreakpointDialogManagerProvider":3464,"rtc/plugins/breakpoint/matlab/ConditionalBreakpointDialogManager":3465,"rtc/resources/rich_text_component/nls/ja-jp/breakpoints":3466,"rtc/resources/rich_text_component/nls/ko-kr/breakpoints":3467,"rtc/resources/rich_text_component/nls/zh-cn/breakpoints":3468,"rtc/resources/rich_text_component/nls/breakpoints":3469,"rtc/plugins/dialog/ConditionalBreakpointDialog":3470,"rtc/resources/rich_text_component/nls/ja-jp/conditionalBreakpointDialog":3471,"rtc/resources/rich_text_component/nls/ko-kr/conditionalBreakpointDialog":3472,"rtc/resources/rich_text_component/nls/zh-cn/conditionalBreakpointDialog":3473,"rtc/resources/rich_text_component/nls/conditionalBreakpointDialog":3474,"dojo/text!rtc/plugins/dialog/ConditionalBreakpointTemplate.html":3475,"rtc/plugins/language/matlab/languageanalysis/ConditionalExpressionUtility":3476,"cajsservice/apis/createIsConditionalExpressionRequest":3477,"cajsservice/resources/codeanalysis/jsapi/nls/ja-jp/jsapi_catalog":3478,"cajsservice/resources/codeanalysis/jsapi/nls/ko-kr/jsapi_catalog":3479,"cajsservice/resources/codeanalysis/jsapi/nls/zh-cn/jsapi_catalog":3480,"cajsservice/resources/codeanalysis/jsapi/nls/jsapi_catalog":3481,"rtc/plugins/breakpoint/matlab/executablelines/ExecutableLineDecoratorProvider":3482,"rtc/plugins/breakpoint/matlab/executablelines/ExecutableLineDecorator":3483,"rtc/plugins/breakpoint/matlab/translation/BreakpointTranslatorProvider":3484,"rtc/plugins/breakpoint/matlab/translation/BreakpointTranslator":3485,"rtc/plugins/debug/jsdebugger/DebugServicesNoJava":3486,"mw-mvm/impl/MVM":3487,"mw-mvm/impl/StackFrame":3488,"mw-mvm/impl/EventManager":3489,"mw-mvm/impl/Connection":3490,"mw-mvm/impl/MVMConnection":3491,"mw-mvm/impl/Payload":3492,"mw-mvm/impl/State":3493,"mw-mvm/impl/Listener":3494,"mw-mvm/impl/SharedPathEntryVectorPtrSerializer":3495,"mw-mvm/impl/Fileinfo":3496,"mw-mvm/impl/RequestTracker":3497,"mw-mvm/impl/PromptService":3498,"mw-mvm/InputRequester":3499,"mw-mvm/impl/IdleBusyService":3500,"mw-mvm/ExecutionStatus":3501,"mw-mvm/impl/Debugger":3502,"rtc/plugins/debug/jsdebugger/private/breakpoints/BreakpointActionsDelegator":3503,"rtc/plugins/debug/jsdebugger/private/breakpoints/BreakpointEventListener":3504,"rtc/plugins/debug/jsdebugger/private/DataTipDelegator":3505,"rtc/plugins/debug/jsdebugger/private/execution/ActionsDelegatorEvaluator":3506,"rtc/plugins/debug/DebugServicesChannels":3507,"rtc/plugins/debug/DebugActionsDelegator":3508,"registration_framework_js/RegistrationFramework":3509,"registration_framework_js/regFwkServiceProvider":3510,"registration_framework_js/RegFwkService":3511,"rtc/plugins/debug/events/DebugFileTranslator":3512,"rtc/plugins/debug/events/DebugFlowEventListener":3513,"rtc/plugins/debug/events/AbstractDebugFlowNotifier":3514,"rtc/plugins/debug/events/DebugStackHandler":3515,"rtc/plugins/debug/events/ActiveDebuggerModel":3516,"rtc/plugins/debug/events/DebugLoopEventType":3517,"rtc/plugins/debug/registrationframework/DebugRegistrationFramework":3518,"rtc/plugins/debug/jsdebugger/private/breakpoints/RegisteredJSActions":3519,"rtc/plugins/breakpoint/matlab/TraditionalBreakpointStylerProvider":3520,"rtc/plugins/breakpoint/matlab/TraditionalBreakpointStyler":3521,"rtc/plugins/breakpoint/matlab/MatlabBreakpointStyler":3522,"rtc/plugins/breakpoint/matlab/MatlabBreakpointContextMenuContributorProvider":3523,"rtc/plugins/breakpoint/matlab/MatlabBreakpointContextMenuContributor":3524,"rtc/plugins/breakpoint/matlab/MatlabBreakpointContextMenuActions":3525,"rtc/plugins/breakpoint/matlab/MatlabBreakpointDataModelProvider":3526,"rtc/plugins/breakpoint/matlab/MatlabBreakpointDataModel":3527,"rtc/plugins/breakpoint/BreakpointDataModel":3528,"rtc/plugins/breakpoint/matlab/MatlabBreakpointLiveModelProvider":3529,"rtc/plugins/breakpoint/matlab/MatlabBreakpointLiveModel":3530,"rtc/plugins/breakpoint/BreakpointLiveModel":3531,"rtc/plugins/breakpoint/matlab/MatlabBreakpointFactoryProvider":3532,"rtc/plugins/breakpoint/matlab/MatlabBreakpointFactory":3533,"rtc/plugins/breakpoint/matlab/MatlabBreakpoint":3534,"rtc/plugins/breakpoint/matlab/MatlabBreakpointPositionTracker":3535,"rtc/plugins/breakpoint/matlab/MatlabBreakpointDecoratorProvider":3536,"rtc/plugins/breakpoint/matlab/MatlabBreakpointDecorator":3537,"mw-tooltip/impl/Tooltip":3538,"mw-tooltip/impl/Content":3539,"mw-tooltip/utils/ContentUtils":3542,"mw-tooltip/impl/TooltipState":3543,"mw-tooltip/impl/enum/DefaultsEnum":3544,"rtc/plugins/breakpoint/matlab/MatlabBreakpointHoverDecoratorProvider":3545,"rtc/plugins/breakpoint/matlab/MatlabBreakpointHoverDecorator":3546,"rtc/plugins/breakpoint/matlab/MatlabBreakpointActionsProvider":3547,"rtc/plugins/breakpoint/matlab/MatlabBreakpointActions":3548,"rtc/plugins/breakpoint/matlab/MatlabBreakpointDataServiceProvider":3549,"rtc/plugins/breakpoint/matlab/MatlabBreakpointDataService":3550,"rtc/plugins/breakpoint/ViewModelManagerFactoryFactory":3551,"rtc/plugins/breakpoint/BreakpointUserMvmFactory":3552,"rtc/plugins/breakpoint/matlab/MatlabBreakpointErrorDisplayManagerProvider":3553,"rtc/plugins/breakpoint/matlab/MatlabBreakpointErrorDisplayManager":3554,"rtc/plugins/breakpoint/matlab/MatlabBreakpointSaveSynchronizerProvider":3555,"rtc/plugins/breakpoint/matlab/MatlabBreakpointSaveSynchronizer":3556,"rtc/plugins/breakpoint/matlab/TraditionalBreakpointDirtyServiceProvider":3557,"rtc/plugins/breakpoint/matlab/TraditionalBreakpointDirtyService":3558,"rtc/plugins/breakpoint/matlab/MatlabBreakpointMarginProvider":3559,"rtc/plugins/breakpoint/matlab/MatlabBreakpointPromiseManagerProvider":3560,"rtc/plugins/breakpoint/matlab/MatlabBreakpointPromiseManager":3561,"rtc/plugins/breakpoint/matlab/inline/InlineBreakpointsViewModelProvider":3562,"rtc/plugins/breakpoint/matlab/inline/InlineBreakpointsViewModel":3563,"rtc/plugins/breakpoint/matlab/inline/InlineBreakpointViewInfo":3564,"rtc/plugins/breakpoint/matlab/inline/AnonymousBreakpointsViewModelProvider":3565,"rtc/plugins/breakpoint/matlab/inline/AnonymousBreakpointsViewModel":3566,"rtc/plugins/breakpoint/matlab/temporary/TemporaryBreakpointManagerProvider":3567,"rtc/plugins/breakpoint/matlab/temporary/TemporaryBreakpointManager":3568,"rtc/plugins/breakpoint/DummyBreakpointMarginProvider":3569,"rtc/margin/DummyBreakpointDecorator":3570,"rtc/plugins/buttonfactory/ButtonFactoryProvider":3571,"rtc/plugins/caseconverter/CaseConverterProvider":3572,"rtc/plugins/caseconverter/CaseConverter":3573,"rtc/plugins/code/CodeTooltipPreviewProvider":3574,"rtc/plugins/code/CodeTooltipPreview":3575,"rtc/plugins/contextmenu/ContextMenuContributorModelProvider":3576,"rtc/plugins/contextmenu/ContextMenuProvider":3577,"rtc/plugins/contextmenu/JSContextMenuGeneratorProvider":3578,"rtc/plugins/contextmenu/ContextMenuGenerator":3579,"rtc/plugins/currentlinehighlight/CurrentLineHighlightPreferenceProvider":3580,"rtc/plugins/currentlinehighlight/CurrentLineHighlightPreference":3581,"rtc/plugins/currentlinehighlight/CurrentLineHighlightProvider":3582,"rtc/plugins/currentlinehighlight/CurrentLineHighlight":3583,"rtc/plugins/cutcopypaste/xselection/XCopyPasteProvider":3584,"rtc/plugins/cutcopypaste/xselection/XCopyPaste":3585,"rtc/plugins/cutcopypaste/xselection/ConnectorSelection":3586,"rtc/plugins/cutcopypaste/CutCopyPasteProvider":3587,"rtc/plugins/cutcopypaste/CutCopyPaste":3588,"rtc/plugins/cutcopypaste/DefaultMIMEConverterProvider":3589,"rtc/plugins/cutcopypaste/DefaultMIMEConverter":3590,"rtc/plugins/cutcopypaste/mime/PromptlessTextMimeConverterProvider":3591,"rtc/plugins/cutcopypaste/mime/PromptlessTextMimeConverter":3592,"rtc/plugins/cutcopypaste/HTMLGeneratorProvider":3593,"rtc/plugins/view/exporters/HTMLWriter":3594,"equationrenderercore/renderer/view/exporters/CanvasRendererUtilities":3595,"webfontloaderjs/webfontloader":3596,"equationrenderercore/renderer/model/importers/MathML":3597,"equationrenderercore/renderer/model/importers/SimpleTeX":3598,"equationrenderercore/renderer/model/importers/SimpleTeXRules":3599,"equationrenderercore/renderer/model/importers/TeX":3600,"equationrenderercore/renderer/model/importers/TeXRules":3601,"equationrenderercore/renderer/view/EquationView":3602,"equationrenderercore/renderer/view/viewmodel/CSSViewModelRenderer":3603,"equationrenderercore/renderer/view/viewmodel/RuleBox":3604,"equationrenderercore/renderer/view/viewmodel/VBox":3605,"rtc/plugins/view/exporters/HTMLOutputUtils":3607,"rtc/plugins/cutcopypaste/InternalSerializationGeneratorProvider":3613,"rtc/plugins/cutcopypaste/InternalSerializationGenerator":3614,"rtc/plugins/cutcopypaste/RTFGeneratorProvider":3615,"rtc/plugins/view/exporters/RTFWriter":3616,"rtc/plugins/datatip/MatlabDataTipProvider":3617,"rtc/plugins/datatip/MatlabDataTip":3618,"rtc/plugins/datatip/DataTipRequesterProvider":3619,"rtc/plugins/datatip/DataTipRequester":3620,"rtc/plugins/draganddrop/DragAndDropProvider":3621,"rtc/plugins/draganddrop/DragAndDrop":3622,"rtc/plugins/draganddrop/DragAndDropNotifierProvider":3623,"rtc/plugins/draganddrop/DragAndDropEventNotifier":3624,"mw-draganddrop/Context":3625,"mw-draganddrop/DragSource":3626,"mw-draganddrop/DropTarget":3627,"mw-draganddrop/impl/RegionsAdaptor":3628,"mw-draganddrop/functional/FunctionalUtils":3629,"mw-draganddrop/impl/ProcessHandleDragOver":3630,"mw-draganddrop/enum/DragEvents":3631,"mw-draganddrop/DragItem":3632,"mw-draganddrop/utils/CanDropTracker":3633,"rtc/plugins/draganddrop/DragAndDropCefDragFileSupport":3634,"rtc/plugins/debug/breadcrumbstack/BreadcrumbStackProvider":3635,"rtc/plugins/debug/breadcrumbstack/BreadcrumbStack":3636,"rtc/plugins/debug/breadcrumbstack/BreadcrumbStackView":3637,"rtc/resources/rich_text_component/nls/ja-jp/breadcrumbStack":3638,"rtc/resources/rich_text_component/nls/ko-kr/breadcrumbStack":3639,"rtc/resources/rich_text_component/nls/zh-cn/breadcrumbStack":3640,"rtc/resources/rich_text_component/nls/breadcrumbStack":3641,"rtc/plugins/debug/breadcrumbstack/StackComboBox":3642,"dojo/text!mw-navigationbar/templates/navigationBar.html":3643,"mw-navigationbar/BreadCrumbsModule":3644,"mw-navigationbar/l10n/nls/navigationBar":3645,"mw-navigationbar/ActionToolbar":3646,"mw-navigationbar/toolbaractions/BackNavigationAction":3647,"mw-navigationbar/toolbaractions/DataSource":3648,"mw-navigationbar/toolbaractions/LocationNode":3649,"mw-navigationbar/toolbaractions/ForwardNavigationAction":3650,"rtc/plugins/debug/breadcrumbstack/StepOutButton":3651,"rtc/plugins/debug/breadcrumbstack/BreadcrumbNavigationProvider":3652,"rtc/plugins/debug/ddux/DebugDDUXLoggerProvider":3653,"rtc/plugins/debug/ddux/DebugDDUXLogger":3654,"rtc/plugins/debug/executionarrow/ExecutionArrowDecoratorProvider":3655,"rtc/plugins/debug/executionarrow/ExecutionArrowDecorator":3656,"rtc/plugins/debug/executionlines/ExecutionLinesPluginProvider":3657,"rtc/plugins/debug/executionlines/ExecutionLinesPlugin":3658,"rtc/plugins/debug/DebugLineAutoScrollPluginProvider":3659,"rtc/plugins/debug/DebugLineAutoScrollPlugin":3660,"rtc/plugins/debug/DebugLineFocusPluginProvider":3661,"rtc/plugins/debug/DebugLineFocusPlugin":3662,"rtc/plugins/debug/DebugLineFocusPluginDelegatorProvider":3663,"rtc/plugins/debug/DebugLineFocusPluginDelegator":3664,"rtc/plugins/debug/DebugStackModelProvider":3665,"rtc/plugins/debug/DebugStackModel":3666,"rtc/plugins/debug/DocumentDebugServicesProvider":3667,"rtc/plugins/debug/DocumentDebugServices":3668,"rtc/plugins/debug/EnableDisableDebugActionsProvider":3669,"rtc/plugins/debug/EnableDisableDebugActions":3670,"rtc/plugins/debug/EnableDisableTraditionalDebugActionsProvider":3671,"rtc/plugins/debug/EnableDisableTraditionalDebugActions":3672,"rtc/plugins/debug/PersistentStackModelProvider":3673,"rtc/plugins/debug/PersistentStackModel":3674,"rtc/plugins/debug/PersistentStackModelUpdateEvent":3675,"rtc/plugins/debug/RunToLineServiceProvider":3676,"rtc/plugins/debug/RunToLineService":3677,"rtc/plugins/language/matlab/syntax/mtree/nodes/ClassdefSectionMTreeNode":3678,"rtc/plugins/debug/ErrorHittingBreakpointDialogManagerProvider":3679,"rtc/plugins/debug/ErrorHittingBreakpointDialogManager":3680,"rtc/plugins/debug/DebugSaveInterceptorProvider":3681,"rtc/plugins/debug/DebugSaveInterceptor":3682,"rtc/plugins/debug/DocumentDirtyDebugServiceProvider":3683,"rtc/plugins/debug/DocumentDirtyDebugService":3684,"rtc/plugins/debug/contextualbuttons/ContextualButtonFactoryProvider":3685,"rtc/plugins/debug/contextualbuttons/ContextualButtonFactory":3686,"rtc/plugins/debug/contextualbuttons/runtohere/RunToHereViewModelProvider":3687,"rtc/plugins/debug/contextualbuttons/runtohere/RunToHereViewModel":3688,"rtc/plugins/debug/contextualbuttons/runtohere/RunToHereViewInfo":3689,"rtc/plugins/debug/contextualbuttons/runtohere/hoverservice/RunToHereCodeHoverServiceProvider":3690,"rtc/plugins/debug/contextualbuttons/runtohere/hoverservice/RunToHereCodeHoverService":3691,"rtc/plugins/debug/contextualbuttons/runtohere/hoverservice/LeftMarginCodeHoverUtilities":3692,"rtc/plugins/debug/contextualbuttons/stepin/FunctionCallsiteFactoryProvider":3693,"rtc/plugins/debug/contextualbuttons/stepin/FunctionCallsiteFactory":3694,"rtc/plugins/debug/contextualbuttons/stepin/FunctionCallsite":3695,"rtc/plugins/debug/contextualbuttons/stepin/FunctionCallsiteLocatorServiceProvider":3696,"rtc/plugins/debug/contextualbuttons/stepin/FunctionCallsiteLocatorService":3697,"rtc/plugins/debug/contextualbuttons/stepin/StepInManagerProvider":3698,"rtc/plugins/debug/contextualbuttons/stepin/StepInManager":3699,"rtc/plugins/debug/contextualbuttons/stepin/StepInViewProvider":3700,"rtc/plugins/debug/contextualbuttons/stepin/StepInView":3701,"rtc/plugins/debug/margin/RunToHereMarginDecoratorProvider":3703,"rtc/plugins/debug/margin/RunToHereMarginDecorator":3704,"rtc/plugins/debug/margin/RunToHereMarginVisibilityControllerProvider":3707,"rtc/plugins/debug/margin/RunToHereMarginVisibilityController":3708,"rtc/plugins/debug/margin/RunToHereMarginProvider":3709,"rtc/plugins/documentsynchronizer/DocumentSynchronizerProvider":3710,"rtc/plugins/documentsynchronizer/DocumentSynchronizer":3711,"rtc/datamodel/RichTextBackingStore":3712,"rtc/plugins/duplicate/DuplicateLinePluginProvider":3713,"rtc/plugins/duplicate/DuplicateLinePlugin":3714,"rtc/plugins/editortabservice/EditorTabPreferenceProvider":3715,"rtc/plugins/editortabservice/EditorTabPreference":3716,"rtc/plugins/execution/margin/ReadyBusyIndicator":3717,"rtc/plugins/execution/Spinner":3718,"rtc/plugins/execution/DefaultEditorExecutionNotifierProvider":3719,"rtc/plugins/export/ExportNotifierProvider":3720,"rtc/plugins/export/ExportNotifier":3721,"rtc/plugins/folding/FoldingActionsProvider":3722,"rtc/plugins/folding/FoldingActions":3723,"rtc/plugins/folding/FoldingControllerProvider":3724,"rtc/plugins/folding/FoldingController":3725,"rtc/plugins/folding/FoldingModelProvider":3726,"rtc/plugins/folding/FoldingModel":3727,"rtc/plugins/messagebar/BaseMessageBarModifier":3728,"rtc/plugins/print/PrintProvider":3729,"dojo/dnd/TimedMoveable":3730,"dijit/DialogUnderlay":3731,"dojo/text!dijit/templates/Dialog.html":3732,"rtc/plugins/print/PrintActionProvider":3733,"rtc/plugins/print/PrintAction":3734,"rtc/plugins/export/ExportFolderProvider":3735,"rtc/plugins/export/ExportFolder":3736,"dojo/i18n!l10n/nls/exportFolderDialog":3737,"l10n/nls/ja-jp/exportFolderDialog":3738,"l10n/nls/ko-kr/exportFolderDialog":3739,"l10n/nls/zh-cn/exportFolderDialog":3740,"l10n/nls/exportFolderDialog":3741,"rtc/plugins/export/settings/ExportSettingsProvider":3742,"rtc/plugins/export/settings/ExportSettings":3743,"rtc/plugins/export/settings/PageSettingsProvider":3744,"rtc/plugins/export/settings/PageSettings":3745,"rtc/plugins/export/settings/OutputSettingsProvider":3746,"rtc/plugins/export/settings/OutputSettings":3747,"rtc/plugins/export/docbookxml/DocBookXMLExporterProvider":3748,"rtc/plugins/export/docbookxml/DocBookXMLExporter":3749,"rtc/plugins/export/xslfo/XSLFOExporterProvider":3750,"rtc/plugins/export/xslfo/XSLFOExporter":3751,"rtc/plugins/export/docx/DOCXExporterProvider":3752,"rtc/plugins/export/docx/DOCXExporter":3753,"rtc/model/io/relationship/OpcRelationship":3754,"rtc/model/io/OpcUtils":3755,"rtc/plugins/export/docx/DOCXNumbering":3756,"rtc/plugins/export/docx/DOCXStyles":3757,"rtc/plugins/export/docx/DOCXSerializersProvider":3758,"rtc/plugins/export/helptext/HelpTextExporterProvider":3759,"rtc/plugins/export/helptext/HelpTextExporter":3760,"rtc/plugins/export/html/HTMLExporterProvider":3761,"rtc/plugins/export/html/LineNode2HTMLProvider":3762,"rtc/plugins/export/html/LineNode2HTML":3763,"rtc/plugins/export/html/PlainTextNode2HTMLProvider":3764,"rtc/plugins/export/html/PlainTextNode2HTML":3765,"rtc/plugins/export/m/MExporterProvider":3766,"rtc/plugins/export/m/MExporter":3767,"rtc/plugins/export/m/MUtilities":3768,"rtc/plugins/export/m/LineNode2MProvider":3769,"rtc/plugins/export/m/LineNode2M":3770,"rtc/plugins/export/latex/LaTeXExporterProvider":3771,"rtc/plugins/export/latex/LaTeXExporter":3772,"rtc/plugins/export/rtf/RTFExporterProvider":3773,"rtc/plugins/export/rtf/RTFExporter":3774,"rtc/plugins/export/rtf/LineNode2RTFProvider":3775,"rtc/plugins/export/rtf/LineNode2RTF":3776,"rtc/plugins/export/rtf/PlainTextNode2RTFProvider":3777,"rtc/plugins/export/rtf/PlainTextNode2RTF":3778,"rtc/plugins/export/rtf/RTFFormatUtils":3779,"rtc/plugins/folding/view/FoldingMarginProvider":3780,"rtc/plugins/folding/view/FoldingDecoratorProvider":3781,"rtc/plugins/folding/view/FoldingDecorator":3782,"rtc/plugins/folding/view/FoldingMarginVisibilityControllerProvider":3783,"rtc/plugins/folding/view/FoldingMarginVisibilityController":3784,"rtc/plugins/folding/view/FoldingEllipsesManagerProvider":3785,"rtc/plugins/folding/view/FoldingEllipsesManager":3786,"rtc/plugins/fontprefs/FontCssSettingsManagerProvider":3787,"rtc/plugins/fontprefs/FontCssSettingsManager":3788,"rtc/plugins/fontprefs/FontSettingsToCssFontPropertiesProvider":3789,"rtc/plugins/fontprefs/FontSettingsToCssFontProperties":3790,"rtc/plugins/fontprefs/AbstractFontSettingsToCssProperties":3791,"rtc/plugins/language/matlab/folding/FoldableMtreeNodeTypesProvider":3792,"rtc/plugins/language/matlab/folding/FoldableMTreeNodeTypes":3793,"rtc/plugins/language/matlab/syntax/mtree/nodes/CellTitleMTreeNode":3794,"rtc/plugins/language/matlab/syntax/mtree/nodes/ClassdefIdentifierMTreeNode":3795,"rtc/plugins/language/matlab/syntax/mtree/nodes/EqualsMTreeNode":3796,"rtc/plugins/language/matlab/syntax/mtree/nodes/FunctionCallMTreeNode":3797,"rtc/plugins/language/matlab/syntax/mtree/nodes/ProtoMTreeNode":3798,"rtc/plugins/language/matlab/folding/MatlabCodeFoldingProvider":3799,"rtc/plugins/language/matlab/folding/MatlabMTreeFoldCandidateContributor":3800,"rtc/plugins/language/matlab/folding/FoldPreferencesProvider":3801,"rtc/plugins/language/matlab/folding/FoldPreferences":3802,"rtc/plugins/language/matlab/folding/CodeFoldingSettingKeys":3803,"rtc/plugins/language/matlab/folding/PersistFoldProvider":3804,"rtc/plugins/language/matlab/folding/PersistFold":3805,"rtc/plugins/language/matlab/folding/SerializeFoldInformationUtility":3806,"rtc/plugins/language/matlab/folding/FoldConstants":3807,"rtc/plugins/language/matlab/folding/FoldInitiallyProvider":3808,"rtc/plugins/language/matlab/folding/FoldInitially":3809,"rtc/plugins/language/matlab/markup/PublishingMarkupProvider":3810,"rtc/plugins/language/matlab/markup/PublishingMarkup":3811,"rtc/plugins/language/matlab/markup/PublishingMarkupEnum":3812,"rtc/plugins/execution/ExecutionActionsProvider":3813,"rtc/plugins/execution/ExecutionActions":3814,"dojo/i18n!rtc/resources/rich_text_component/nls/editorLanguageSupport":3815,"rtc/resources/rich_text_component/nls/ja-jp/editorLanguageSupport":3816,"rtc/resources/rich_text_component/nls/ko-kr/editorLanguageSupport":3817,"rtc/resources/rich_text_component/nls/zh-cn/editorLanguageSupport":3818,"rtc/resources/rich_text_component/nls/editorLanguageSupport":3819,"rtc/plugins/execution/ExecutionAndOutputsDataServiceControllerProvider":3820,"rtc/plugins/execution/ExecutionAndOutputsDataServiceController":3821,"rtc/plugins/execution/ExecutionDataManagerProvider":3822,"rtc/plugins/execution/ExecutionDataManager":3823,"rtc/plugins/execution/ExecutionManagerProvider":3824,"rtc/plugins/execution/ExecutionManager":3825,"rtc/plugins/execution/ExecutionManagerViewServiceProvider":3826,"rtc/plugins/execution/ExecutionManagerViewService":3827,"rtc/plugins/execution/ExecutionRequestFactoryProvider":3828,"rtc/plugins/execution/ExecutionRequestFactory":3829,"rtc/plugins/execution/ExecutionRequest":3830,"rtc/plugins/execution/ExecutionStalenessAugmentorProvider":3831,"rtc/plugins/execution/ExecutionStalenessAugmentor":3832,"rtc/plugins/execution/ControlCServiceProvider":3833,"rtc/plugins/execution/ControlCService":3834,"rtc/plugins/execution/CurrentExecutionLineModelProvider":3835,"rtc/plugins/execution/CurrentExecutionLineModel":3836,"rtc/plugins/execution/DefaultExecutionEnablerProvider":3837,"rtc/plugins/execution/DefaultExecutionEnabler":3838,"rtc/plugins/execution/RequestExecutorFactoryProvider":3839,"rtc/plugins/execution/RequestExecutorFactory":3840,"rtc/plugins/execution/RunToCursorProvider":3841,"rtc/plugins/execution/RunToCursor":3842,"rtc/plugins/execution/RunToHereActionsProvider":3843,"rtc/plugins/execution/RunToHereActions":3844,"rtc/plugins/execution/ServerSideRequestExecutorProvider":3845,"rtc/plugins/execution/ServerSideRequestExecutor":3846,"rtc/plugins/execution/TraditionalRequestExecutorProvider":3847,"rtc/plugins/execution/TraditionalRequestExecutor":3848,"rtc/plugins/execution/events/LifecycleHandlerProvider":3849,"rtc/plugins/execution/events/LifecycleHandler":3850,"rtc/plugins/execution/margin/DecoratableExecutionMarginProvider":3851,"rtc/plugins/execution/margin/DecoratableExecutionMarginVisibilityControllerProvider":3852,"rtc/plugins/execution/margin/DecoratableExecutionMarginVisibilityController":3853,"rtc/plugins/execution/margin/CurrentExecutionLineDecoratorProvider":3854,"rtc/plugins/execution/margin/CurrentExecutionLineDecorator":3855,"rtc/plugins/execution/range/StepRangeProvider":3856,"rtc/plugins/execution/range/StepRange":3857,"rtc/plugins/execution/range/StepOutRangeProvider":3858,"rtc/plugins/execution/range/RunToHereRangeProvider":3859,"rtc/plugins/execution/range/ContinueToHereRangeProvider":3860,"rtc/plugins/execution/range/ContinueToHereRange":3861,"rtc/plugins/execution/range/RunSectionRangeProvider":3862,"rtc/plugins/execution/range/RunSectionEndRangeProvider":3863,"rtc/plugins/execution/range/RunSectionEndRange":3864,"rtc/plugins/execution/range/RunSectionAdvanceRangeProvider":3865,"rtc/plugins/execution/range/RunSectionAdvanceRange":3866,"rtc/plugins/execution/range/RunAllRangeProvider":3867,"rtc/plugins/execution/range/RunAllRange":3868,"rtc/plugins/execution/range/ContinueRangeProvider":3869,"rtc/plugins/execution/range/ContinueRange":3870,"rtc/plugins/execution/range/ExecutionRangeManagerProvider":3871,"rtc/plugins/execution/range/ExecutionRangeManager":3872,"rtc/plugins/execution/range/ExecutionRangeUtilitiesProvider":3873,"rtc/plugins/execution/range/ExecutionRangeUtilities":3874,"rtc/plugins/execution/range/ConfidenceRange":3875,"rtc/plugins/execution/triggers/EvalOnLineChangeTriggerProvider":3876,"rtc/plugins/execution/triggers/LiveEvalTriggerProvider":3877,"rtc/plugins/execution/triggers/ManualRunSectionTriggerProvider":3878,"rtc/plugins/execution/triggers/ManualRunAllTriggerProvider":3879,"rtc/plugins/execution/triggers/ManualRunAllTrigger":3880,"rtc/plugins/execution/triggers/TriggersProvider":3881,"rtc/plugins/execution/triggers/Triggers":3882,"rtc/plugins/execution/triggers/InterruptActionProvider":3883,"rtc/plugins/execution/triggers/InterruptAction":3884,"rtc/plugins/find/FindProvider":3885,"rtc/plugins/find/FindHandler":3886,"rtc/plugins/find/ReplaceProvider":3887,"rtc/plugins/find/ReplaceHandler":3888,"rtc/plugins/find/FindSyncOpenProvider":3889,"rtc/plugins/find/FindSyncOpenHandler":3890,"rtc/plugins/find/FindSynchronizeProvider":3891,"rtc/plugins/find/FindSynchronizeHandler":3892,"rtc/plugins/find/FindReplaceActionsProvider":3893,"rtc/plugins/find/FindReplaceActions":3894,"rtc/plugins/find/FindUtilities":3895,"rtc/plugins/find/FindConfiguration":3896,"rtc/plugins/find/BinarySearchUtility":3897,"rtc/plugins/find/FindResult":3898,"rtc/plugins/find/FindDialogHandlerProvider":3899,"rtc/plugins/find/FindDialogHandler":3900,"findandreplace-ui/FindStrip":3901,"findandreplace-ui/FindPreference":3913,"findandreplace-ui/FindReplaceHistory":3914,"findandreplace-ui/FindReplaceRenderer":3915,"findandreplace-ui/FindReplaceUtility":3916,"dojo/i18n!findandreplace-ui/l10n/nls/findDialog":3917,"findandreplace-ui/l10n/nls/fi-fi/findDialog":3918,"findandreplace-ui/l10n/nls/ja-jp/findDialog":3919,"findandreplace-ui/l10n/nls/ko-kr/findDialog":3920,"findandreplace-ui/l10n/nls/zh-cn/findDialog":3921,"findandreplace-ui/l10n/nls/findDialog":3922,"findandreplace-ui/FindReplaceTextBox":3923,"rtc/plugins/find/FindResultDisplayHandlerProvider":3924,"rtc/plugins/find/FindResultDisplayHandler":3925,"rtc/plugins/find/FindResultDialogDisplayProvider":3926,"rtc/plugins/find/FindResultDialogDisplay":3927,"rtc/plugins/find/ReplaceNotifierProvider":3928,"rtc/plugins/find/ReplaceNotifier":3929,"rtc/plugins/language/matlab/smartindenting/MatlabSmartIndentingProvider":3930,"rtc/plugins/language/matlab/smartindenting/MatlabSmartIndenting":3931,"rtc/plugins/goto/GotoProvider":3932,"rtc/plugins/goto/GotoHandler":3933,"rtc/resources/rich_text_component/nls/ja-jp/gotoDialog":3934,"rtc/resources/rich_text_component/nls/ko-kr/gotoDialog":3935,"rtc/resources/rich_text_component/nls/zh-cn/gotoDialog":3936,"rtc/resources/rich_text_component/nls/gotoDialog":3937,"rtc/plugins/goto/view/GotoDialog":3938,"dojo/text!dijit/form/templates/TextBox.html":3939,"dojo/text!dijit/form/templates/ValidationTextBox.html":3940,"dijit/form/nls/bs/validate":3941,"dijit/form/nls/mk/validate":3942,"dijit/form/nls/sr/validate":3943,"dijit/form/nls/zh/validate":3944,"dijit/form/nls/zh-tw/validate":3945,"dijit/form/nls/uk/validate":3946,"dijit/form/nls/tr/validate":3947,"dijit/form/nls/th/validate":3948,"dijit/form/nls/sv/validate":3949,"dijit/form/nls/sl/validate":3950,"dijit/form/nls/sk/validate":3951,"dijit/form/nls/ru/validate":3952,"dijit/form/nls/ro/validate":3953,"dijit/form/nls/pt/validate":3954,"dijit/form/nls/pt-pt/validate":3955,"dijit/form/nls/pl/validate":3956,"dijit/form/nls/nl/validate":3957,"dijit/form/nls/nb/validate":3958,"dijit/form/nls/ko/validate":3959,"dijit/form/nls/kk/validate":3960,"dijit/form/nls/ja/validate":3961,"dijit/form/nls/it/validate":3962,"dijit/form/nls/id/validate":3963,"dijit/form/nls/hu/validate":3964,"dijit/form/nls/hr/validate":3965,"dijit/form/nls/he/validate":3966,"dijit/form/nls/fr/validate":3967,"dijit/form/nls/fi/validate":3968,"dijit/form/nls/eu/validate":3969,"dijit/form/nls/es/validate":3970,"dijit/form/nls/el/validate":3971,"dijit/form/nls/de/validate":3972,"dijit/form/nls/da/validate":3973,"dijit/form/nls/cs/validate":3974,"dijit/form/nls/ca/validate":3975,"dijit/form/nls/bg/validate":3976,"dijit/form/nls/az/validate":3977,"dijit/form/nls/ar/validate":3978,"dijit/form/nls/validate":3979,"dojo/text!rtc/plugins/goto/view/GotoDialogTemplate.html":3980,"rtc/plugins/goto/GotoSectionServiceProvider":3981,"rtc/plugins/goto/GotoSectionService":3982,"rtc/plugins/headings/HeadingModelProvider":3983,"rtc/plugins/headings/HeadingModel":3984,"rtc/plugins/documentfragments/DocumentFragmentModelProvider":3985,"rtc/plugins/documentfragments/DocumentFragmentModel":3986,"rtc/plugins/documentfragments/SectionFragmentContributorProvider":3987,"rtc/plugins/documentfragments/SectionFragmentContributor":3988,"rtc/plugins/documentfragments/HeadingFragmentContributorProvider":3989,"rtc/plugins/documentfragments/HeadingFragmentContributor":3990,"rtc/plugins/htmlmime/HTMLMimeConverterProvider":3991,"rtc/plugins/htmlmime/HTMLMimeConverter":3992,"rtc/plugins/htmlmime/DocumentBuilder":3993,"rtc/plugins/killline/KillLineProvider":3994,"rtc/plugins/killline/KillLine":3995,"rtc/plugins/emacstabindent/EmacsTabIndentProvider":3996,"rtc/plugins/emacstabindent/EmacsTabIndent":3997,"rtc/plugins/indentation/IndentationProvider":3998,"rtc/plugins/indentation/Indentation":3999,"rtc/plugins/refactor/RefactorToolstripMenuActionProvider":4e3,"rtc/plugins/refactor/RefactorToolstripMenuAction":4001,"rtc/plugins/refactor/function/externalfunction/ExternalFunctionFileCreatorProvider":4002,"rtc/plugins/refactor/function/externalfunction/ExternalFunctionRefactorProvider":4003,"rtc/plugins/refactor/function/externalfunction/ExternalFunctionRefactor":4004,"rtc/resources/rich_text_component/nls/ja-jp/functionRefactoring":4005,"rtc/resources/rich_text_component/nls/ko-kr/functionRefactoring":4006,"rtc/resources/rich_text_component/nls/zh-cn/functionRefactoring":4007,"rtc/resources/rich_text_component/nls/functionRefactoring":4008,"rtc/plugins/refactor/function/FunctionRefactoringConfigProvider":4009,"rtc/plugins/refactor/function/FunctionRefactoringConfig":4010,"rtc/plugins/refactor/function/FunctionRefactoringErrorNotifierProvider":4011,"rtc/plugins/refactor/function/FunctionRefactoringErrorNotifier":4012,"dojo/text!dijit/templates/TooltipDialog.html":4013,"rtc/plugins/refactor/function/FunctionRefactoringValidatorProvider":4014,"rtc/plugins/refactor/function/FunctionRefactoringValidator":4015,"rtc/plugins/refactor/function/localfunction/LocalFunctionRefactorProvider":4016,"rtc/plugins/refactor/function/localfunction/LocalFunctionRefactor":4017,"rtc/plugins/presentationmode/PresentationModeProvider":4018,"rtc/plugins/presentationmode/PresentationMode":4019,"rtc/plugins/presentationmode/fullscreen/AutomaticFullScreenServiceProvider":4020,"rtc/plugins/presentationmode/fullscreen/AutomaticFullScreenService":4021,"rtc/plugins/save/SaveReadyManagerProvider":4022,"rtc/plugins/save/SaveReadyManager":4023,"rtc/plugins/sectionbreak/SectionBreakInsertionRulesProvider":4024,"rtc/plugins/sectionbreak/SectionBreakInsertionRules":4025,"rtc/plugins/slides/SlideControllerProvider":4026,"rtc/plugins/slides/SlideController":4027,"rtc/plugins/language/matlab/alert/AlertControllerProvider":4028,"rtc/plugins/language/matlab/alert/AlertController":4029,"rtc/plugins/language/matlab/alert/AlertModelProvider":4030,"rtc/plugins/language/matlab/alert/AlertModel":4031,"rtc/plugins/language/matlab/alert/AlertModelBase":4032,"rtc/plugins/language/matlab/alert/AlertViewProvider":4033,"rtc/plugins/language/matlab/alert/AlertView":4034,"rtc/plugins/language/matlab/alert/AlertWidgetFactoryProvider":4035,"rtc/plugins/language/matlab/alert/AlertWidgetFactory":4036,"rtc/plugins/language/matlab/alert/ErrorAlert":4037,"dojo/text!rtc/plugins/language/matlab/alert/templateErrorAlert.html":4038,"rtc/plugins/language/matlab/alert/WarningAlert":4039,"dojo/text!rtc/plugins/language/matlab/alert/templateWarningAlert.html":4040,"rtc/plugins/language/common/autoindent/AutoIndent":4041,"rtc/plugins/language/matlab/autoindent/MatlabAutoIndentServiceProvider":4042,"rtc/plugins/language/matlab/autoindent/MatlabAutoIndentService":4043,"rtc/plugins/language/matlab/autoindent/preferences/MatlabAutoIndentingPreferenceProvider":4044,"rtc/plugins/language/matlab/autoindent/preferences/FunctionIndentingFormatPreferenceProvider":4045,"rtc/plugins/language/matlab/autoindent/preferences/FunctionIndentingFormatPreference":4046,"rtc/plugins/language/matlab/codecontent/CodeContentProvider":4047,"rtc/plugins/language/matlab/codecontent/CodeContent":4048,"rtc/plugins/language/matlab/codeanalyzer/model/CodeAnalyzerModelProvider":4049,"rtc/plugins/language/matlab/codeanalyzer/model/CodeAnalyzerModel":4050,"rtc/plugins/language/matlab/codeanalyzer/model/CodeAnalyzerFileMessage":4051,"mw-help-csh/HelpTopicMap":4052,"mw-help-staticcontent/HelpStaticContentInit":4053,"mw-help-staticcontent/WorkerUtils":4054,"mw-help-csh-base/HelpTopicMapBase":4055,"rtc/plugins/language/matlab/codeanalyzer/preferences/CodeAnalyzerEnableStateProvider":4056,"rtc/plugins/language/matlab/codeanalyzer/preferences/CodeAnalyzerEnableState":4057,"rtc/plugins/language/matlab/codeanalyzer/preferences/CodeAnalyzerPreferencesProvider":4058,"rtc/plugins/language/matlab/codeanalyzer/tooltip/CodeAnalyzerTooltipServiceProvider":4059,"rtc/plugins/language/matlab/codeanalyzer/tooltip/CodeAnalyzerTooltipService":4060,"dojo/text!rtc/plugins/tooltip/templates/TooltipContent.html":4061,"rtc/resources/rich_text_component/nls/ja-jp/messagebar":4062,"rtc/resources/rich_text_component/nls/ko-kr/messagebar":4063,"rtc/resources/rich_text_component/nls/zh-cn/messagebar":4064,"rtc/resources/rich_text_component/nls/messagebar":4065,"rtc/plugins/language/matlab/codeanalyzer/tooltip/CodeAnalyzerHoverableTooltipProvider":4066,"rtc/plugins/language/matlab/codeanalyzer/tooltip/CodeAnalyzerHoverableTooltip":4067,"rtc/plugins/language/matlab/codeanalyzer/tooltip/CodeAnalyzerProgrammaticTooltipProvider":4068,"rtc/plugins/language/matlab/codeanalyzer/tooltip/CodeAnalyzerProgrammaticTooltip":4069,"rtc/plugins/view/tooltip/TooltipEventHandler":4070,"rtc/plugins/view/tooltip/view/TooltipView":4071,"rtc/plugins/language/matlab/codeanalyzer/view/CodeAnalyzerViewProvider":4072,"rtc/plugins/language/matlab/codeanalyzer/view/CodeAnalyzerView":4073,"rtc/plugins/language/matlab/codeanalyzer/CodeAnalyzerPluginProvider":4074,"rtc/plugins/language/matlab/codeanalyzer/CodeAnalyzerPlugin":4075,"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerAutoFixProvider":4076,"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerAutoFix":4077,"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerSuppressionProvider":4078,"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerSuppression":4079,"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerMessageDisablerProvider":4080,"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerMessageDisabler":4081,"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerActionHandlerProvider":4082,"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerActionHandler":4083,"rtc/plugins/language/matlab/codeanalyzer/messagebar/AlertMessageLayerProvider":4084,"rtc/plugins/language/matlab/codeanalyzer/messagebar/AlertMessageLayer":4085,"rtc/plugins/language/matlab/codeanalyzer/messagebar/CodeAnalyzerMessageLayerProvider":4086,"rtc/plugins/language/matlab/codeanalyzer/messagebar/CodeAnalyzerMessageLayer":4087,"rtc/plugins/language/matlab/codeanalyzer/model/CodeAnalyzerOutputMetadataContributorProvider":4088,"rtc/plugins/language/matlab/codeanalyzer/model/CodeAnalyzerOutputMetadataContributor":4089,"rtc/plugins/documentsynchronizer/AbstractDocumentCacheMetadataContributor":4090,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionActionHandlerProvider":4091,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionActionHandler":4092,"rtc/plugins/language/matlab/codingui/autocompletions/manifest":4093,"rtc/resources/rich_text_component/nls/ja-jp/tabcompletion":4094,"rtc/resources/rich_text_component/nls/ko-kr/tabcompletion":4095,"rtc/resources/rich_text_component/nls/zh-cn/tabcompletion":4096,"rtc/resources/rich_text_component/nls/tabcompletion":4097,"rtc/plugins/language/matlab/codingui/autocompletions/widgets/FunctionAssistant":4098,"rtc/plugins/language/matlab/codingui/autocompletions/widgets/utilities/FunctionAssistantUtilities":4099,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionDDUXContributorProvider":4100,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionDDUXContributor":4101,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionDDUXControllerProvider":4102,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionDDUXController":4103,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionTextHandlerProvider":4104,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionTextHandler":4105,"rtc/plugins/language/matlab/codingui/autocompletions/utilities/AutoCompletionTextHandlerUtilities":4106,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionTabKeyHandlerProvider":4107,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionTabKeyHandler":4108,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionContextManagerProvider":4109,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionContextManager":4110,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionContext":4111,"rtc/plugins/language/matlab/codingui/autocompletions/utilities/AutoCompletionContextManagerUtilities":4112,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionFocusManagerProvider":4113,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionFocusManager":4114,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionHelpProvider":4115,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionHelp":4116,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionProvider":4117,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletion":4118,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionRequestHandlerProvider":4119,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionRequestHandler":4120,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionMetaData":4121,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionRequestModifierProvider":4122,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionRequestModifier":4123,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionDefaultTabActionProvider":4124,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionDefaultTabAction":4125,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionViewEventBusProvider":4126,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionViewEventBus":4127,"rtc/plugins/language/matlab/codingui/autocompletions/customizers/AutoCompletionEmbeddableCompletionCustomizerProvider":4128,"rtc/plugins/language/matlab/codingui/autocompletions/customizers/AutoCompletionEmbeddableCompletionCustomizer":4129,"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionAbstractCustomizer":4130,"rtc/plugins/language/matlab/codingui/autocompletions/preferences/AutoCompletionPreferenceProvider":4131,"rtc/plugins/language/matlab/codingui/autocompletions/preferences/AutoCompletionPreference":4132,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionCloseViewProvider":4133,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionCloseView":4134,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionFunctionAssistantViewProvider":4135,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionHighlightView":4136,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionShadowTextViewProvider":4137,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionSuggestionViewProvider":4138,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionViewProvider":4139,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionView":4140,"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionViewProxy":4141,"rtc/plugins/language/matlab/contextualselection/ContextualSelectionControllerProvider":4142,"rtc/plugins/language/matlab/contextualselection/ContextualSelectionController":4143,"rtc/plugins/language/matlab/contextualselection/EvaluateSelectionProvider":4144,"rtc/plugins/language/matlab/contextualselection/HelpOnSelectionProvider":4145,"rtc/plugins/language/matlab/contextualselection/HelpOnSelection":4146,"rtc/plugins/language/matlab/contextualselection/OpenSelectionProvider":4147,"rtc/plugins/language/matlab/commentCode/WrapCommentsProvider":4148,"rtc/plugins/language/matlab/commentCode/WrapComments":4149,"rtc/plugins/language/matlab/commentCode/BlockCommentSection":4150,"rtc/plugins/language/matlab/commentCode/WrapCommentLineCache":4151,"rtc/plugins/language/matlab/commentCode/LineCommentSection":4152,"rtc/plugins/language/pluggability/ExternalLanguageManagerProvider":4153,"rtc/plugins/language/pluggability/ExternalLanguageManager":4154,"rtc/registrationframework/AbstractRegistrationPoint":4155,"rtc/plugins/language/pluggability/FileExtensionPreferencesProvider":4156,"rtc/plugins/language/pluggability/FileExtensionPreferences":4157,"rtc/plugins/language/pluggability/LanguageNotifierProvider":4158,"rtc/plugins/language/pluggability/LanguageNotifier":4159,"rtc/plugins/fontprefs/code/CodeFontPropertyChangerProvider":4160,"rtc/plugins/fontprefs/code/CodeFontPropertyChanger":4161,"rtc/nodes/inner/CodeFormatEnum":4162,"rtc/plugins/fontprefs/AbstractCssPropertyChanger":4163,"rtc/plugins/fontprefs/code/CodeFontSettingsProvider":4164,"rtc/plugins/fontprefs/code/CodeFontSettings":4165,"rtc/plugins/fontprefs/AbstractCssPropertySettingManager":4166,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlMobileHandlerProvider":4167,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlMobileHandler":4168,"rtc/plugins/language/matlab/functions/LocalFunctionsProvider":4169,"rtc/plugins/language/matlab/functions/LocalFunctions":4170,"rtc/plugins/language/matlab/functions/LocalFunctionsSectionAttributeContributorProvider":4171,"rtc/plugins/language/matlab/functions/LocalFunctionsSectionAttributeContributor":4172,"rtc/plugins/language/matlab/functions/TopLevelFunctionProvider":4173,"rtc/plugins/language/matlab/functions/TopLevelFunction":4174,"rtc/plugins/language/matlab/functions/TopLevelFunctionSectionAttributeContributorProvider":4175,"rtc/plugins/language/matlab/functions/TopLevelFunctionSectionAttributeContributor":4176,"rtc/plugins/language/matlab/languageanalysis/MessageNotifierWrapperProvider":4177,"cajsservice/apis/createCAMessageNotifier":4178,"rtc/plugins/language/matlab/languageanalysis/MessageNotifierWrapper":4179,"rtc/plugins/language/matlab/section/SectionPluginProvider":4180,"rtc/plugins/language/matlab/section/SectionPlugin":4181,"rtc/plugins/language/matlab/section/SectionListProvider":4182,"rtc/plugins/language/matlab/section/view/SectionViewProvider":4183,"rtc/plugins/language/matlab/section/view/SectionView":4184,"rtc/plugins/language/matlab/sections/CodeRegionSectionContributorProvider":4185,"rtc/plugins/language/matlab/sections/CodeRegionSectionContributor":4186,"rtc/plugins/language/matlab/sections/view/SectionViewProvider":4187,"rtc/plugins/language/matlab/sections/view/SectionView":4188,"dojo/query!lite":4189,"rtc/plugins/language/matlab/sections/view/BaseSectionView":4190,"rtc/plugins/language/matlab/section/InsertSectionProvider":4191,"rtc/plugins/language/matlab/section/InsertSection":4192,"rtc/plugins/navigation/NavigateSectionProvider":4193,"rtc/plugins/navigation/NavigateSection":4194,"rtc/plugins/navigation/NavigateSlideProvider":4195,"rtc/plugins/navigation/NavigateSlide":4196,"rtc/plugins/language/matlab/sections/SectionBreakSectionContributorProvider":4197,"rtc/plugins/language/matlab/sections/SectionBreakSectionContributor":4198,"rtc/plugins/language/matlab/sections/StaleSectionModelProvider":4199,"rtc/plugins/language/matlab/sections/StaleSectionModel":4200,"rtc/plugins/language/matlab/tokenizer/MatlabTokenMatcherRulesProvider":4201,"rtc/plugins/language/matlab/tokenizer/MatlabTokenMatcherRules":4202,"rtc/plugins/language/matlab/variablehighlighting/NonlocalVariableHighlightingProvider":4203,"rtc/plugins/language/matlab/variablehighlighting/NonlocalVariableHighlighting":4204,"rtc/plugins/language/matlab/variablehighlighting/NonlocalVariableHighlightingPreferenceProvider":4205,"rtc/plugins/language/matlab/variablehighlighting/NonlocalVariableHighlightingPreference":4206,"rtc/plugins/language/matlab/variablehighlighting/NonlocalVariableHighlightingTooltipProvider":4207,"rtc/plugins/language/matlab/variablehighlighting/NonlocalVariableHighlightingTooltip":4208,"dojo/i18n!rtc/resources/rich_text_component/nls/nonlocalVariableMessages":4209,"rtc/resources/rich_text_component/nls/ja-jp/nonlocalVariableMessages":4210,"rtc/resources/rich_text_component/nls/ko-kr/nonlocalVariableMessages":4211,"rtc/resources/rich_text_component/nls/zh-cn/nonlocalVariableMessages":4212,"rtc/resources/rich_text_component/nls/nonlocalVariableMessages":4213,"rtc/plugins/language/matlab/variablehighlighting/messagebar/VariableHighlightMessageLayerProvider":4214,"rtc/plugins/language/matlab/variablehighlighting/messagebar/VariableHighlightMessageLayer":4215,"rtc/plugins/language/matlab/variablehighlighting/messagebar/TooltipTextUtils":4216,"rtc/plugins/language/matlab/variablehighlighting/VariableHighlightingProvider":4217,"rtc/plugins/language/matlab/variablehighlighting/VariableHighlighting":4218,"rtc/plugins/language/matlab/variablehighlighting/VariableHighlightingPreferenceProvider":4219,"rtc/plugins/language/matlab/variablehighlighting/VariableHighlightingPreference":4220,"rtc/plugins/language/matlab/variablenavigation/VariableNavigatorProvider":4221,"rtc/plugins/language/matlab/variablenavigation/VariableNavigator":4222,"rtc/plugins/language/matlab/variablerenaming/VariableRenamingControllerProvider":4223,"rtc/plugins/language/matlab/variablerenaming/VariableRenamingController":4224,"rtc/plugins/language/matlab/variablerenaming/VariableRenamingModelProvider":4225,"rtc/plugins/language/matlab/variablerenaming/VariableRenamingModel":4226,"rtc/plugins/language/matlab/variablerenaming/VariableRenamingModelUtilityProvider":4227,"rtc/plugins/language/matlab/variablerenaming/VariableRenamingModelUtility":4228,"rtc/plugins/language/matlab/variablerenaming/view/VariableRenamingViewProvider":4229,"rtc/plugins/language/matlab/variablerenaming/view/VariableRenamingView":4230,"rtc/plugins/language/matlab/variablerenaming/VariableRenamingListenerServiceProvider":4231,"rtc/plugins/language/matlab/variablerenaming/VariableRenamingListenerService":4232,"rtc/plugins/smoothscrolling/SmoothScrollingPluginProvider":4233,"rtc/plugins/smoothscrolling/SmoothScrollingPlugin":4234,"rtc/plugins/margin/RightMarginButtonProvider":4235,"rtc/plugins/margin/RightMarginButton":4236,"rtc/plugins/margin/RightMarginContainerProvider":4237,"rtc/plugins/margin/RightMarginContainer":4238,"rtc/plugins/margin/SeverityStatusButtonProvider":4239,"rtc/plugins/margin/SeverityStatusButton":4240,"rtc/plugins/matlabmobile/services/PageVisibilityConnectivityContributorProvider":4241,"rtc/plugins/matlabmobile/services/PageVisibilityConnectivityContributor":4242,"rtc/plugins/messagebar/MessageBarModelProvider":4243,"rtc/plugins/messagebar/MessageBarModel":4244,"rtc/plugins/messagebar/MessageBarServiceProvider":4245,"rtc/plugins/messagebar/MessageBarService":4246,"rtc/plugins/messagebar/MessageBarTooltipProvider":4247,"rtc/plugins/messagebar/MessageBarTooltip":4248,"rtc/plugins/messagebar/MessageBarViewProvider":4249,"rtc/plugins/messagebar/MessageBarView":4250,"rtc/plugins/offscreennotification/OffscreenNotification":4251,"rtc/plugins/offscreennotification/view/OffscreenNotificationView":4252,"rtc/plugins/offscreennotification/view/OffscreenNotificationPopup":4253,"rtc/plugins/service/CodingUIBackendCodeProviderProvider":4254,"rtc/plugins/service/CodingUIBackendCodeProvider":4255,"rtc/plugins/service/CodingUIBackendPrewarmServiceProvider":4256,"rtc/plugins/service/CodingUIBackendPrewarmService":4257,"rtc/plugins/service/CodingUIPubSubBackendServiceProvider":4258,"rtc/plugins/service/CodingUIPubSubBackendService":4259,"rtc/plugins/language/matlab/codingui/MessageServiceFactory":4260,"rtc/plugins/view/renderednotifier/DocumentRenderedServiceProvider":4261,"rtc/plugins/view/renderednotifier/DocumentRenderedService":4262,"rtc/plugins/smartformatting/formatter/automaticcoding/AutoWrapCommentSmartFormatterProvider":4263,"rtc/plugins/smartformatting/formatter/automaticcoding/AutoWrapCommentSmartFormatter":4264,"rtc/plugins/smartformatting/formatter/automaticcoding/SplitCommentSmartFormatterProvider":4265,"rtc/plugins/smartformatting/formatter/automaticcoding/SplitCommentSmartFormatter":4266,"rtc/plugins/smartformatting/formatter/automaticcoding/RoundParenInsertSmartFormatterProvider":4267,"rtc/plugins/smartformatting/formatter/automaticcoding/RoundParenInsertSmartFormatter":4268,"rtc/plugins/smartformatting/formatter/automaticcoding/RoundParenDeleteSmartFormatterProvider":4269,"rtc/plugins/smartformatting/formatter/automaticcoding/RoundParenDeleteSmartFormatter":4270,"rtc/plugins/smartformatting/formatter/automaticcoding/SquareParenInsertSmartFormatterProvider":4271,"rtc/plugins/smartformatting/formatter/automaticcoding/SquareParenInsertSmartFormatter":4272,"rtc/plugins/smartformatting/formatter/automaticcoding/SquareParenDeleteSmartFormatterProvider":4273,"rtc/plugins/smartformatting/formatter/automaticcoding/SquareParenDeleteSmartFormatter":4274,"rtc/plugins/smartformatting/formatter/automaticcoding/CurlyParenInsertSmartFormatterProvider":4275,"rtc/plugins/smartformatting/formatter/automaticcoding/CurlyParenInsertSmartFormatter":4276,"rtc/plugins/smartformatting/formatter/automaticcoding/CurlyParenDeleteSmartFormatterProvider":4277,"rtc/plugins/smartformatting/formatter/automaticcoding/CurlyParenDeleteSmartFormatter":4278,"rtc/plugins/smartformatting/formatter/automaticcoding/SingleQuoteInsertSmartFormatterProvider":4279,"rtc/plugins/smartformatting/formatter/automaticcoding/SingleQuoteInsertSmartFormatter":4280,"rtc/plugins/smartformatting/formatter/automaticcoding/SingleQuoteDeleteSmartFormatterProvider":4281,"rtc/plugins/smartformatting/formatter/automaticcoding/SingleQuoteDeleteSmartFormatter":4282,"rtc/plugins/smartformatting/formatter/automaticcoding/SingleCurlyQuoteInsertSmartFormatterProvider":4283,"rtc/plugins/smartformatting/formatter/automaticcoding/SingleCurlyQuoteInsertSmartFormatter":4284,"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleCurlyQuoteInsertSmartFormatterProvider":4285,"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleCurlyQuoteInsertSmartFormatter":4286,"rtc/plugins/smartformatting/formatter/automaticcoding/SingleCurlyQuoteReplacementSmartFormatterProvider":4287,"rtc/plugins/smartformatting/formatter/automaticcoding/SingleCurlyQuoteReplacementSmartFormatter":4288,"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleCurlyQuoteReplacementSmartFormatterProvider":4289,"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleCurlyQuoteReplacementSmartFormatter":4290,"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleQuoteInsertSmartFormatterProvider":4291,"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleQuoteInsertSmartFormatter":4292,"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleQuoteDeleteSmartFormatterProvider":4293,"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleQuoteDeleteSmartFormatter":4294,"rtc/plugins/smartformatting/formatter/automaticcoding/RoundParenOverwritingSmartFormatterProvider":4295,"rtc/plugins/smartformatting/formatter/automaticcoding/RoundParenOverwritingSmartFormatter":4296,"rtc/plugins/smartformatting/formatter/automaticcoding/CurlyParenOverwritingSmartFormatterProvider":4297,"rtc/plugins/smartformatting/formatter/automaticcoding/CurlyParenOverwritingSmartFormatter":4298,"rtc/plugins/smartformatting/formatter/automaticcoding/SquareParenOverwritingSmartFormatterProvider":4299,"rtc/plugins/smartformatting/formatter/automaticcoding/SquareParenOverwritingSmartFormatter":4300,"rtc/plugins/smartformatting/formatter/automaticcoding/SingleQuoteOverwritingSmartFormatterProvider":4301,"rtc/plugins/smartformatting/formatter/automaticcoding/SingleQuoteOverwritingSmartFormatter":4302,"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleQuoteOverwritingSmartFormatterProvider":4303,"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleQuoteOverwritingSmartFormatter":4304,"rtc/plugins/language/matlab/tokenizer/MatlabToken":4305,"rtc/plugins/smartformatting/formatter/automaticcoding/SplitDoubleQuoteStringSmartFormatterProvider":4306,"rtc/plugins/smartformatting/formatter/automaticcoding/SplitDoubleQuoteStringSmartFormatter":4307,"rtc/plugins/smartformatting/formatter/automaticcoding/SplitSingleQuoteStringSmartFormatterProvider":4308,"rtc/plugins/smartformatting/formatter/automaticcoding/SplitSingleQuoteStringSmartFormatter":4309,"rtc/plugins/smartformatting/formatter/automaticcoding/EndArgumentsBlockSmartFormatterProvider":4310,"rtc/plugins/smartformatting/formatter/automaticcoding/EndArgumentsBlockSmartFormatter":4311,"rtc/plugins/smartformatting/formatter/automaticcoding/EndClassDefBlockSmartFormatterProvider":4312,"rtc/plugins/smartformatting/formatter/automaticcoding/EndClassDefBlockSmartFormatter":4313,"rtc/plugins/smartformatting/formatter/automaticcoding/EndEnumerationBlockSmartFormatterProvider":4314,"rtc/plugins/smartformatting/formatter/automaticcoding/EndEnumerationBlockSmartFormatter":4315,"rtc/plugins/smartformatting/formatter/automaticcoding/EndEventsBlockSmartFormatterProvider":4316,"rtc/plugins/smartformatting/formatter/automaticcoding/EndEventsBlockSmartFormatter":4317,"rtc/plugins/smartformatting/formatter/automaticcoding/EndForBlockSmartFormatterProvider":4318,"rtc/plugins/smartformatting/formatter/automaticcoding/EndForBlockSmartFormatter":4319,"rtc/plugins/smartformatting/formatter/automaticcoding/EndFunctionBlockSmartFormatterProvider":4320,"rtc/plugins/smartformatting/formatter/automaticcoding/EndFunctionBlockSmartFormatter":4321,"rtc/plugins/smartformatting/formatter/automaticcoding/EndIfBlockSmartFormatterProvider":4322,"rtc/plugins/smartformatting/formatter/automaticcoding/EndIfBlockSmartFormatter":4323,"rtc/plugins/smartformatting/formatter/automaticcoding/EndMethodsBlockSmartFormatterProvider":4324,"rtc/plugins/smartformatting/formatter/automaticcoding/EndMethodsBlockSmartFormatter":4325,"rtc/plugins/smartformatting/formatter/automaticcoding/EndParforBlockSmartFormatterProvider":4326,"rtc/plugins/smartformatting/formatter/automaticcoding/EndParforBlockSmartFormatter":4327,"rtc/plugins/smartformatting/formatter/automaticcoding/EndPropertiesBlockSmartFormatterProvider":4328,"rtc/plugins/smartformatting/formatter/automaticcoding/EndPropertiesBlockSmartFormatter":4329,"rtc/plugins/smartformatting/formatter/automaticcoding/EndSpmdBlockSmartFormatterProvider":4330,"rtc/plugins/smartformatting/formatter/automaticcoding/EndSpmdBlockSmartFormatter":4331,"rtc/plugins/smartformatting/formatter/automaticcoding/EndSwitchBlockSmartFormatterProvider":4332,"rtc/plugins/smartformatting/formatter/automaticcoding/EndSwitchBlockSmartFormatter":4333,"rtc/plugins/smartformatting/formatter/automaticcoding/EndTryBlockSmartFormatterProvider":4334,"rtc/plugins/smartformatting/formatter/automaticcoding/EndTryBlockSmartFormatter":4335,"rtc/plugins/smartformatting/formatter/automaticcoding/EndWhileBlockSmartFormatterProvider":4336,"rtc/plugins/smartformatting/formatter/automaticcoding/EndWhileBlockSmartFormatter":4337,"rtc/plugins/smartformatting/formatter/automaticcoding/ParenthesesLineBreakSmartFormatterProvider":4338,"rtc/plugins/smartformatting/formatter/automaticcoding/ParenthesesLineBreakSmartFormatter":4339,"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownBulletedListSmartFormatterProvider":4340,"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownBulletedListSmartFormatter":4341,"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownHeadingSmartFormatterProvider":4342,"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownHeadingSmartFormatter":4343,"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownNumberedListSmartFormatterProvider":4344,"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownNumberedListSmartFormatter":4345,"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownTitleSmartFormatterProvider":4346,"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownTitleSmartFormatter":4347,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownBold2SmartFormatterProvider":4348,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownBold2SmartFormatter":4349,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownBoldSmartFormatterProvider":4350,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownBoldSmartFormatter":4351,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownHyperlinkLabelUrlSmartFormatterProvider":4352,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownHyperlinkLabelUrlSmartFormatter":4353,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownHyperlinkUrlTagSmartFormatterProvider":4354,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownHyperlinkUrlTagSmartFormatter":4355,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalic2SmartFormatterProvider":4356,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalic2SmartFormatter":4357,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalicBold2SmartFormatterProvider":4358,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalicBold2SmartFormatter":4359,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalicBoldSmartFormatterProvider":4360,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalicBoldSmartFormatter":4361,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalicSmartFormatterProvider":4362,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalicSmartFormatter":4363,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownMonospaceSmartFormatterProvider":4364,"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownMonospaceSmartFormatter":4365,"rtc/plugins/smartformatting/formatter/matlab/MatlabMonospaceSmartFormatterProvider":4366,"rtc/plugins/smartformatting/formatter/matlab/MatlabMonospaceSmartFormatter":4367,"rtc/plugins/smartformatting/formatter/matlab/MatlabSectionBreakHeadingSmartFormatterProvider":4368,"rtc/plugins/smartformatting/formatter/matlab/MatlabSectionBreakHeadingSmartFormatter":4369,"rtc/plugins/smartformatting/formatter/matlab/MatlabSectionBreakSeparatorSmartFormatterProvider":4370,"rtc/plugins/smartformatting/formatter/matlab/MatlabSectionBreakSeparatorSmartFormatter":4371,"rtc/plugins/smartformatting/formatter/symbol/SymbolTrademarkCopyrightSmartFormatterProvider":4372,"rtc/plugins/smartformatting/formatter/symbol/SymbolTrademarkCopyrightSmartFormatter":4373,"rtc/plugins/smartformatting/formatter/HyperlinkSmartFormatterProvider":4374,"rtc/plugins/smartformatting/formatter/HyperlinkSmartFormatter":4375,"rtc/plugins/smartformatting/formatter/MarkupEquationSmartFormatterProvider":4376,"rtc/plugins/smartformatting/formatter/MarkupEquationSmartFormatter":4377,"rtc/plugins/smartformatting/BackspaceUndoHandlerProvider":4378,"rtc/plugins/smartformatting/BackspaceUndoHandler":4379,"rtc/plugins/smartformatting/SmartFormattingProvider":4380,"rtc/plugins/smartformatting/SmartFormatting":4381,"rtc/plugins/smartformatting/SmartFormattingTriggerData":4382,"rtc/plugins/smartformatting/settings/AutoCodingSettingManagerProvider":4383,"rtc/plugins/smartformatting/settings/AutoCodingSettingManager":4384,"rtc/plugins/smartformatting/settings/AutoFormattingSettingManagerProvider":4385,"rtc/plugins/smartformatting/settings/AutoFormattingSettingManager":4386,"rtc/plugins/smarttab/SmartTabProvider":4387,"rtc/plugins/smarttab/SmartTab":4388,"rtc/plugins/statusactionbar/SectionBarActionHoverManagerProvider":4389,"rtc/plugins/statusactionbar/SectionBarActionHoverManager":4390,"rtc/plugins/statusactionbar/decorators/SectionsDecoratorProvider":4391,"rtc/plugins/statusactionbar/decorators/SectionsDecorator":4392,"rtc/plugins/statusactionbar/decorators/StaleSectionsDecoratorProvider":4393,"rtc/plugins/statusactionbar/decorators/StaleSectionsDecorator":4394,"rtc/plugins/statusactionbar/decorators/StaleSectionsBackgroundDecoratorProvider":4395,"rtc/plugins/statusactionbar/decorators/StaleSectionsBackgroundDecorator":4396,"rtc/plugins/statusactionbar/evaluation/StatusActionBarEvaluationProvider":4397,"rtc/plugins/statusactionbar/decorators/SectionBreakMarginDecoratorProvider":4398,"rtc/plugins/statusactionbar/decorators/SectionBreakMarginDecorator":4399,"rtc/plugins/statusactionbar/SectionDecoratorUtilitiesProvider":4400,"rtc/plugins/statusactionbar/SectionDecoratorUtilities":4401,"rtc/plugins/statusactionbar/SectionRangeMarginExpansionHandlerProvider":4402,"rtc/plugins/statusactionbar/SectionRangeMarginExpansionHandler":4403,"rtc/margin/AbstractRangeMarginExpansionHandler":4404,"rtc/plugins/sections/RichSectionsRequestHandlerProvider":4405,"rtc/plugins/sections/RichSectionsRequestHandler":4406,"rtc/plugins/sections/PlainSectionsRequestHandlerProvider":4407,"rtc/plugins/sections/PlainSectionsRequestHandler":4408,"rtc/plugins/functions/FunctionsRequestHandlerProvider":4409,"rtc/plugins/functions/FunctionsRequestHandler":4410,"rtc/plugins/sectionbreak/SectionBreakProvider":4411,"rtc/plugins/sectionbreak/SectionBreak":4412,"rtc/plugins/sectionbreak/SectionBreakNodeConversionRulesProvider":4413,"rtc/plugins/sectionbreak/SectionBreakNodeConversionRules":4414,"rtc/plugins/sectionbreak/export/SectionBreak2LaTeXProvider":4415,"rtc/plugins/sectionbreak/export/SectionBreak2LaTeX":4416,"rtc/plugins/sectionbreak/export/SectionBreak2XSLFOProvider":4417,"rtc/plugins/sectionbreak/export/SectionBreak2XSLFO":4418,"rtc/plugins/sectionbreak/model/SectionBreakNodeContentConverterProvider":4419,"rtc/plugins/sectionbreak/model/SectionBreakNodeContentConverter":4420,"rtc/nodes/contentconverter/base/AbstractContentConverter":4421,"rtc/plugins/sectionbreak/view/SectionBreakCoordinateConverterProvider":4422,"rtc/plugins/sectionbreak/view/SectionBreakCoordinateConverter":4423,"rtc/plugins/sectionbreak/view/SectionBreakLayouterProvider":4424,"rtc/plugins/sectionbreak/view/SectionBreakLayouter":4425,"rtc/plugins/selectline/SelectLineViewProvider":4426,"rtc/plugins/selectline/SelectLineView":4427,"rtc/plugins/templates/TemplateServiceProvider":4428,"rtc/plugins/templates/TemplateService":4429,"l10n/nls/ja-jp/template":4430,"l10n/nls/ko-kr/template":4431,"l10n/nls/zh-cn/template":4432,"l10n/nls/template":4433,"rtc/plugins/trimautowhitespace/AutoWhitespaceLineNotifierProvider":4434,"rtc/plugins/trimautowhitespace/AutoWhitespaceLineNotifier":4435,"rtc/plugins/trimautowhitespace/TrimAutoWhitespaceProvider":4436,"rtc/plugins/trimautowhitespace/TrimAutoWhitespace":4437,"rtc/plugins/trimautowhitespace/preferences/TrimAutoWhitespacePreferenceProvider":4438,"rtc/plugins/trimautowhitespace/preferences/TrimAutoWhitespacePreference":4439,"rtc/plugins/language/common/blockmatching/BlockMatching":4440,"rtc/plugins/language/common/blockmatching/BlockMatchingView":4441,"rtc/plugins/language/common/blockmatching/blockMatchingUtils":4442,"rtc/plugins/language/common/blockmatching/blockMatchingViewConstants":4443,"rtc/plugins/language/common/smartindenting/preferences/SmartIndentPreference":4444,"rtc/plugins/language/common/syntaxhighlighter/SyntaxHighlightingColorsProvider":4445,"rtc/plugins/language/common/syntaxhighlighter/SyntaxHighlightingColors":4446,"rtc/plugins/language/common/tokenizer/preferences/MaxTokenizationLineLengthPreference":4447,"rtc/plugins/language/common/tokenizer/matching/TokenMatcher":4448,"rtc/plugins/language/common/CommentCodeProvider":4449,"rtc/plugins/language/common/CommentCode":4450,"rtc/plugins/language/matlab/parenmatch/ParenMatchingPluginProvider":4451,"rtc/plugins/language/matlab/parenmatch/ParenMatchingPlugin":4452,"rtc/plugins/language/matlab/parenmatch/model/Matcher":4453,"rtc/plugins/language/matlab/syntaxhighlighter/MatlabSyntaxHighlighterProvider":4454,"rtc/plugins/language/matlab/syntaxhighlighter/colormap/MatlabSyntaxHighlightingColorContributorProvider":4455,"rtc/plugins/language/matlab/syntaxhighlighter/colormap/MatlabColorMapDefaults":4456,"rtc/plugins/language/matlab/syntaxhighlighter/preferences/MatlabSyntaxHighlighterPreferencesProvider":4457,"rtc/plugins/language/matlab/syntaxhighlighter/preferences/MatlabEnableSyntaxHighlightingPreferenceProvider":4458,"rtc/plugins/touch/TouchServiceProvider":4459,"rtc/plugins/touch/TouchService":4460,"rtc/plugins/touch/events/TouchEventHandlerProvider":4461,"rtc/plugins/touch/events/TouchEventHandler":4462,"rtc/plugins/touch/events/TouchInputCutCopyPasteServiceProvider":4463,"rtc/plugins/touch/events/TouchInputCutCopyPasteService":4464,"mw-gesture/input/PointerInput":4465,"mw-gesture/util/InputTypes":4466,"mw-gesture/input/impl/pointer":4467,"mw-gesture/input/impl/touch":4468,"mw-gesture/input/impl/mouse":4469,"mw-gesture/input/WheelInput":4470,"mw-gesture/recognizers/GestureRecognizer":4471,"mw-gesture/coordination/RecognizerCoordinator":4472,"mw-gesture/gestures/tapmove":4473,"mw-gesture/gestures/tap":4474,"mw-gesture/gestures/click":4475,"mw-gesture/gestures/flick":4476,"mw-gesture/gestures/pan":4477,"mw-gesture/gestures/rotate":4478,"mw-gesture/gestures/pinch":4479,"mw-gesture/gestures/wheel":4480,"mw-gesture/gestures/hover":4481,"rtc/plugins/imeinput/TouchIMEInputEventHandlerProvider":4482,"rtc/plugins/imeinput/TouchIMEInputEventHandler":4483,"rtc/plugins/typocorrection/TypoSuggestionActionHandlerProvider":4484,"rtc/plugins/typocorrection/TypoSuggestionActionHandler":4485,"rtc/plugins/typocorrection/TypoSuggestionFeatureProvider":4486,"rtc/plugins/typocorrection/TypoSuggestionFeature":4487,"rtc/plugins/typocorrection/TypoSuggestionModelProvider":4488,"rtc/plugins/typocorrection/TypoSuggestionModel":4489,"rtc/plugins/typocorrection/handler/TypoSuggestionHandlerFactoryProvider":4490,"rtc/plugins/typocorrection/handler/TypoSuggestionHandlerFactory":4491,"rtc/plugins/typocorrection/handler/TypoSuggestionHandler":4492,"rtc/plugins/typocorrection/TypoSuggestionContentFactory":4493,"rtc/plugins/language/matlab/syntaxhighlighter/MatlabSyntaxHighlighterUtils":4494,"rtc/plugins/typocorrection/TypoSuggestionFix":4495,"rtc/plugins/verticalborder/VerticalBorderPreferenceProvider":4496,"rtc/plugins/verticalborder/VerticalBorderPreference":4497,"rtc/plugins/verticalborder/VerticalBorderProvider":4498,"rtc/plugins/verticalborder/VerticalBorder":4499,"rtc/plugins/view/layoutmanager/LayoutParagraphHostingModelProvider":4500,"rtc/plugins/view/layoutmanager/LayoutParagraphHostingModel":4501,"rtc/plugins/view/layoutmanager/rules/BaseGroupingRuleProvider":4502,"rtc/plugins/view/layoutmanager/rules/ContainmentGroupingRuleProvider":4503,"rtc/plugins/view/layoutmanager/rules/ContainmentGroupingRule":4504,"rtc/plugins/view/layoutmanager/rules/ContiguousGroupingRuleProvider":4505,"rtc/plugins/view/layoutmanager/rules/ContiguousGroupingRule":4506,"rtc/plugins/view/layoutmanager/rules/ExpandableRuleProvider":4507,"rtc/plugins/view/layoutmanager/rules/ExpandableRule":4508,"rtc/plugins/view/layoutmanager/rules/OutputRuleProvider":4509,"rtc/plugins/view/layoutmanager/rules/OutputRule":4510,"rtc/plugins/view/layoutmanager/rules/ParagraphHostingRuleProvider":4511,"rtc/plugins/view/layoutmanager/rules/ParagraphHostingRule":4512,"rtc/plugins/view/layoutmanager/rules/WrappableRuleProvider":4513,"rtc/plugins/view/layoutmanager/rules/WrappableRule":4514,"rtc/plugins/view/linehighlight/LineHighlightManagerProvider":4515,"rtc/plugins/view/linehighlight/LineHighlightManager":4516,"rtc/plugins/view/linehighlight/LineHighlighter":4517,"rtc/plugins/view/texthighlight/TextHighlightManagerProvider":4518,"rtc/plugins/view/texthighlight/TextHighlightManager":4519,"rtc/plugins/view/texthighlight/TextHighlighter":4520,"rtc/view/hidden/HideAllCodePluginDisablerProvider":4521,"rtc/view/hidden/HideAllCodePluginDisabler":4522,"rtc/view/hidden/BasePluginDisabler":4523,"rtc/view/hidden/HideAllCodeServiceProvider":4524,"rtc/view/hidden/HideAllCodeService":4525,"rtc/view/hidden/BaseHideFilter":4526,"rtc/view/hidden/HideAllTextServiceProvider":4527,"rtc/view/hidden/HideAllTextService":4528,"rtc/view/hidden/AllCodeHiddenStateHolderProvider":4529,"rtc/view/hidden/AllCodeHiddenStateHolder":4530,"rtc/view/hidden/AllTextHiddenStateHolderProvider":4531,"rtc/view/hidden/AllTextHiddenStateHolder":4532,"rtc/view/hidden/HideShowAllCodeProvider":4533,"rtc/view/hidden/HideShowAllCode":4534,"rtc/view/hidden/HideShowAllTextProvider":4535,"rtc/view/hidden/HideShowAllText":4536,"rtc/view/pagination/PaginationControllerProvider":4537,"rtc/view/pagination/PaginationController":4538,"rtc/view/pagination/PaginatorView":4539,"rtc/plugins/matlabmobile/MatlabMobileServiceProvider":4540,"rtc/plugins/matlabmobile/MatlabMobileService":4541,"rtc/dirtystate/States":4542,"rtc/plugins/matlabmobile/bridge/JSWindowBridge":4543,"rtc/plugins/matlabmobile/bridge/BridgeMessageTypes":4544,"rtc/plugins/matlabmobile/bridge/JSWindowWebKitBridge":4545,"rtc/plugins/matlabmobile/native/NativeIosHandlerProvider":4546,"rtc/plugins/matlabmobile/native/NativeIosHandler":4547,"rtc/plugins/matlabmobile/view/MatlabMobileViewServiceProvider":4548,"rtc/plugins/matlabmobile/view/MatlabMobileViewService":4549,"rtc/plugins/toolstrip/CompactToolstripProvider":4550,"rtc/plugins/toolstrip/CompactToolstrip":4551,"rtc/plugins/toolstrip/CompactToolstripConfig":4552,"dojo/i18n!rtc/resources/rich_text_component/nls/editorCompactToolstrip":4553,"rtc/resources/rich_text_component/nls/ja-jp/editorCompactToolstrip":4554,"rtc/resources/rich_text_component/nls/ko-kr/editorCompactToolstrip":4555,"rtc/resources/rich_text_component/nls/zh-cn/editorCompactToolstrip":4556,"rtc/resources/rich_text_component/nls/editorCompactToolstrip":4557,"rtc/plugins/toolstrip/CompactToolstripButtonsState":4558,"rtc/plugins/toolstrip/CompactToolstripActionsProvider":4559,"rtc/plugins/toolstrip/CompactToolstripActions":4560,"rtc/plugins/toolstrip/CompactToolstripLiveEditorTabActions":4561,"rtc/plugins/toolstrip/CompactToolstripDefaultActions":4562,"rtc/plugins/toolstrip/CompactToolstripFocusManagerProvider":4563,"rtc/plugins/toolstrip/CompactToolstripFocusManager":4564,"rtc/plugins/toolstrip/CompactToolstripToggleStateProvider":4565,"rtc/plugins/toolstrip/CompactToolstripToggleState":4566,"rtc/plugins/splitscreen/SplitScreenProvider":4567,"rtc/plugins/splitscreen/SplitScreen":4568,"rtc/plugins/ddux/DDUXUsageLoggerProvider":4569,"rtc/plugins/ddux/DDUXUsageLogger":4570,"rtc/plugins/actionlistenerservice/ActionListenerServiceProvider":4571,"rtc/plugins/actionlistenerservice/ActionListenerService":4572,"rtc/plugins/actionlistenerservice/ActionListenerServiceBlacklistProvider":4573,"rtc/plugins/actionlistenerservice/ActionListenerServiceBlacklist":4574,"rtc/plugins/ddux/ActionLoggerServiceProvider":4575,"rtc/plugins/ddux/ActionLoggerService":4576,"rtc/plugins/ddux/DDUXCompositionArtifactServiceProvider":4577,"rtc/plugins/ddux/DDUXCompositionArtifactService":4578,"rtc/plugins/ddux/DDUXCompositionLoggingServiceProvider":4579,"rtc/plugins/ddux/DDUXCompositionLoggingService":4580,"rtc/plugins/ddux/DDUXCompositionLoggingTriggerProvider":4581,"rtc/plugins/ddux/DDUXCompositionLoggingTrigger":4582,"rtc/plugins/ddux/DDUXContributorLoggingServiceProvider":4583,"rtc/plugins/ddux/DDUXContributorLoggingService":4584,"rtc/plugins/accessibility/screenreader/ScreenReaderServiceProvider":4585,"rtc/plugins/accessibility/screenreader/ScreenReaderService":4586,"rtc/plugins/accessibility/screenreader/LineScreenReaderContributorProvider":4587,"rtc/plugins/accessibility/screenreader/LineScreenReaderContributor":4588,"rtc/plugins/accessibility/screenreader/ScreenReaderContributor":4589,"rtc/plugins/colors/BackgroundForegroundColorProvider":4590,"rtc/plugins/addlinetermination/AddLineTerminationProvider":4591,"rtc/plugins/addlinetermination/AddLineTermination":4592,"rtc/plugins/zoom/ZoomControllerProvider":4593,"rtc/plugins/zoom/ZoomController":4594,"rtc/plugins/zoom/ZoomConfigurationProvider":4595,"rtc/plugins/zoom/ZoomConfiguration":4596,"rtc/plugins/zoom/ZoomLevelIndicatorProvider":4597,"rtc/plugins/zoom/ZoomLevelIndicator":4598,"rtc/plugins/zoom/CEFZoomHandlerProvider":4599,"rtc/plugins/zoom/CEFZoomHandler":4600,"rtc/plugins/zoom/AbstractZoomHandler":4601,"rtc/view/ZoomModelProvider":4602,"rtc/view/ZoomModel":4603,"rtc/plugins/editoreventnotifier/EditorEventNotifierProvider":4604,"rtc/plugins/editoreventnotifier/EditorEventNotifier":4605,"rtc/plugins/richtext/ToggleTextAndCodeProvider":4606,"rtc/plugins/richtext/ToggleTextAndCode":4607,"rtc/plugins/richtext/CodeTextToggleShortcutsProvider":4608,"rtc/plugins/richtext/CodeTextToggleShortcuts":4609,"rtc/core/registry/EmbeddedOutputsPluginRegistryModule":4610,"rtc/nodes/noderangeretriever/NodeRangeRetrieverProvider":4611,"rtc/nodes/noderangeretriever/NodeRangeRetriever":4612,"rtc/plugins/embeddedoutputs/AccessibilityFeatureFlagProvider":4613,"rtc/plugins/embeddedoutputs/AccessibilityFeatureFlag":4614,"rtc/plugins/embeddedoutputs/CopyOutputsProvider":4615,"rtc/plugins/embeddedoutputs/CopyOutputs":4616,"rtc/plugins/embeddedoutputs/ClearOutputsCacheProvider":4617,"rtc/plugins/embeddedoutputs/ClearOutputsCache":4618,"rtc/plugins/embeddedoutputs/CurrentOutputServiceProvider":4619,"rtc/plugins/embeddedoutputs/CurrentOutputService":4620,"rtc/plugins/embeddedoutputs/DefaultCurrentOutputHandler":4621,"rtc/plugins/embeddedoutputs/EmbeddedOutputsContextMenuContributorProvider":4622,"rtc/plugins/embeddedoutputs/EmbeddedOutputsContextMenuContributor":4623,"rtc/plugins/embeddedoutputs/EmbeddedOutputDataServiceProvider":4624,"rtc/plugins/embeddedoutputs/EmbeddedOutputDataService":4625,"rtc/plugins/embeddedoutputs/OutputQueue":4626,"rtc/plugins/embeddedoutputs/EmbeddedOutputsDBQuitSaveReadyProvider":4627,"rtc/plugins/embeddedoutputs/EmbeddedOutputsDBQuitSaveReady":4628,"rtc/plugins/embeddedoutputs/EmbeddedOutputsReadySaveInterceptorProvider":4629,"rtc/plugins/embeddedoutputs/EmbeddedOutputsReadySaveInterceptor":4630,"rtc/plugins/embeddedoutputs/EmbeddedOutputsProvider":4631,"rtc/plugins/embeddedoutputs/EmbeddedOutputs":4632,"rtc/plugins/embeddedoutputs/EmbeddedOutputsRequestExecutorProvider":4633,"rtc/plugins/embeddedoutputs/ExternalEmbeddedOutputsEvaluationLifecycleHandlerProvider":4634,"rtc/plugins/embeddedoutputs/ExternalEmbeddedOutputsEvaluationLifecycleHandler":4635,"rtc/plugins/embeddedoutputs/ExternalStateHandlerProvider":4636,"rtc/plugins/embeddedoutputs/ExternalStateHandler":4637,"rtc/plugins/embeddedoutputs/FocusableOutputsActionsProvider":4638,"rtc/plugins/embeddedoutputs/FocusableOutputsActions":4639,"rtc/plugins/embeddedoutputs/OutputHandlerProvider":4640,"rtc/plugins/embeddedoutputs/OutputHandler":4641,"rtc/plugins/embeddedoutputs/OutputModelControllerProvider":4642,"rtc/plugins/embeddedoutputs/OutputModelController":4643,"rtc/resources/rich_text_component/nls/ja-jp/embeddedOutputs":4644,"rtc/resources/rich_text_component/nls/ko-kr/embeddedOutputs":4645,"rtc/resources/rich_text_component/nls/zh-cn/embeddedOutputs":4646,"rtc/resources/rich_text_component/nls/embeddedOutputs":4647,"rtc/plugins/embeddedoutputs/outputhandlers/ScrollingBehaviorMixin":4648,"rtc/plugins/embeddedoutputs/OutputRemoverProvider":4649,"rtc/plugins/embeddedoutputs/OutputRemover":4650,"rtc/plugins/embeddedoutputs/RegionDataServiceProvider":4651,"rtc/plugins/embeddedoutputs/RegionDataService":4652,"rtc/plugins/embeddedoutputs/SyntaxErrorHandlerProvider":4653,"rtc/plugins/embeddedoutputs/SyntaxErrorHandler":4654,"rtc/plugins/embeddedoutputs/UnrequestedRequestExecutorProvider":4655,"rtc/plugins/embeddedoutputs/UnrequestedRequestExecutor":4656,"rtc/plugins/embeddedoutputs/WarningBannerProvider":4657,"rtc/plugins/embeddedoutputs/WarningBanner":4658,"dojo/text!rtc/plugins/view/banner/view/BannerTemplate.html":4659,"rtc/plugins/embeddedoutputs/codegen/CodeGenFactory":4660,"rtc/plugins/embeddedoutputs/codegen/EditorCodeGenerator":4661,"rtc/plugins/embeddedoutputs/codegen/CodeGenWidget":4662,"dojo/text!rtc/plugins/embeddedoutputs/codegen/templates/CodeGenWidget.html":4663,"rtc/plugins/embeddedoutputs/codegen/EditorDocumentProxy":4664,"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsExecutionStateTrackerProvider":4665,"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsExecutionStateTracker":4666,"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsDisconnectionRecoveryManagerProvider":4667,"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsDisconnectionRecoveryManager":4668,"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsMissingOutputSupportProvider":4669,"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsMissingOutputSupport":4670,"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsMalformedExecutionSupportProvider":4671,"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsMalformedExecutionSupport":4672,"rtc/plugins/embeddedoutputs/executiontracking/GroupingTrackerProvider":4673,"rtc/plugins/embeddedoutputs/executiontracking/GroupingTracker":4674,"rtc/plugins/embeddedoutputs/executiontracking/LineContinuationTrackerProvider":4675,"rtc/plugins/embeddedoutputs/executiontracking/LineContinuationTracker":4676,"rtc/plugins/embeddedoutputs/KeyboardShortcutForwardingProvider":4677,"rtc/plugins/embeddedoutputs/KeyboardShortcutForwarding":4678,"rtc/plugins/embeddedoutputs/KeyboardShortcutsProvider":4679,"rtc/plugins/embeddedoutputs/KeyboardShortcuts":4680,"rtc/plugins/embeddedoutputs/loadinterceptors/EmbeddedOutputsLoadInterceptorManagerProvider":4681,"rtc/plugins/embeddedoutputs/loadinterceptors/EmbeddedOutputsLoadInterceptorManager":4682,"rtc/plugins/embeddedoutputs/loadinterceptors/DeferredLoadInterceptorProvider":4683,"rtc/plugins/embeddedoutputs/loadinterceptors/DeferredLoadInterceptor":4684,"rtc/plugins/embeddedoutputs/loadinterceptors/AbstractOutputLoadInterceptor":4685,"rtc/plugins/embeddedoutputs/model/EmbeddedOutputsLoadProvider":4686,"rtc/plugins/embeddedoutputs/model/EmbeddedOutputsLoad":4687,"rtc/plugins/embeddedoutputs/model/EmbeddedOutputsModelProvider":4688,"rtc/plugins/embeddedoutputs/model/EmbeddedOutputsModel":4689,"rtc/plugins/embeddedoutputs/model/OutputContainer":4690,"rtc/plugins/embeddedoutputs/model/RegionParser":4691,"rtc/model/importers/MATLAB_PEG":4692,"rtc/model/importers/MatlabRules":4693,"rtc/model/importers/PEG":4694,"rtc/plugins/embeddedoutputs/model/EmbeddedOutputsSaveProvider":4695,"rtc/plugins/embeddedoutputs/model/EmbeddedOutputsSave":4696,"rtc/plugins/embeddedoutputs/model/io/OutputWriterUtilities":4697,"rtc/plugins/embeddedoutputs/model/io/OutputChangeNotifierProvider":4698,"rtc/plugins/embeddedoutputs/model/io/OutputChangeNotifier":4699,"rtc/plugins/embeddedoutputs/model/SplitterPositionModelProvider":4700,"rtc/plugins/embeddedoutputs/model/SplitterPositionModel":4701,"rtc/plugins/embeddedoutputs/OutputFocusManagerProvider":4702,"rtc/plugins/embeddedoutputs/OutputFocusManager":4703,"rtc/plugins/embeddedoutputs/outputhandlers/BaseText2HTMLProvider":4704,"rtc/plugins/embeddedoutputs/outputhandlers/BaseText2HTML":4705,"rtc/plugins/embeddedoutputs/outputhandlers/BaseText2LaTeXProvider":4706,"rtc/plugins/embeddedoutputs/outputhandlers/BaseText2XSLFOProvider":4707,"rtc/plugins/embeddedoutputs/outputhandlers/BaseText2XSLFO":4708,"rtc/plugins/embeddedoutputs/outputhandlers/OutputElement2XSLFOProvider":4709,"rtc/plugins/embeddedoutputs/outputhandlers/OutputElement2XSLFO":4710,"rtc/plugins/embeddedoutputs/outputhandlers/error/ErrorOutputHandlerProvider":4711,"rtc/plugins/embeddedoutputs/outputhandlers/error/ErrorOutputHandler":4712,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureOutputHandlerProvider":4713,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureOutputHandler":4714,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureOutput":4715,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureProxy":4716,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureView":4717,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/ModuleManifest":4718,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/elements/ZoomModeButtonElement":4719,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/elements/3DModeButtonElement":4720,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/elements/ActionButtonElement":4721,"rtc/plugins/embeddedoutputs/outputhandlers/figure/ModelessManager":4722,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/EditedAnnotationController":4723,"rtc/plugins/embeddedoutputs/outputhandlers/figure/ChartHandler":4724,"rtc/plugins/embeddedoutputs/outputhandlers/figure/ModeManager":4725,"rtc/plugins/embeddedoutputs/outputhandlers/figure/InteractionsContextMenu":4726,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/GhostLegend":4727,"l10n/nls/ja-jp/figureToolStrip":4728,"l10n/nls/ko-kr/figureToolStrip":4729,"l10n/nls/zh-cn/figureToolStrip":4730,"l10n/nls/figureToolStrip":4731,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/GhostColorbar":4732,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/GhostXGrid":4733,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/GhostYGrid":4734,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/GhostTitle":4735,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/GhostXLabel":4736,"rtc/plugins/embeddedoutputs/outputhandlers/figure/modes/GhostYLabel":4737,"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/controllers/PaletteController":4738,"dojo/text!dijit/form/templates/HorizontalSlider.html":4739,"rtc/plugins/undoredo/commands/FigureInteractionCommand":4740,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigurePoolManager":4741,"rtc/plugins/embeddedoutputs/outputhandlers/figure/EmbeddedFigureProxy":4742,"rtc/plugins/embeddedoutputs/outputhandlers/figure/EmbeddedFigureView":4743,"rtc/plugins/embeddedoutputs/outputhandlers/figure/GraphicsCompleteHandler":4744,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FocusedFigure":4745,"rtc/plugins/embeddedoutputs/outputhandlers/figure/JavaFigureManager":4746,"rtc/plugins/embeddedoutputs/outputhandlers/figure/ToolstripActionController":4747,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureSnapshotManager":4748,"rtc/plugins/embeddedoutputs/outputhandlers/figure/AltTextParser":4749,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureConnectionManagerProvider":4750,"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureConnectionManager":4751,"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2DocBookXMLProvider":4752,"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2DocBookXML":4753,"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2HTMLProvider":4754,"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2HTML":4755,"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2LaTeXProvider":4756,"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2LaTeX":4757,"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2XSLFOProvider":4758,"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2XSLFO":4759,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/MatrixOutputHandlerProvider":4760,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/MatrixOutputHandler":4761,"rtc/plugins/embeddedoutputs/outputhandlers/floatingpalette/controllers/matrix/RunScriptPromptController":4762,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/SnapshotManager":4763,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/export/MatrixElement2DocBookXMLProvider":4764,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/export/MatrixElement2DocBookXML":4765,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/export/MatrixElement2HTMLProvider":4766,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/export/MatrixElement2HTML":4767,"rtc/plugins/embeddedoutputs/outputhandlers/matrix/export/MatrixElement2XSLFOProvider":4768,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SuggestionsCodePreviewProvider":4769,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SuggestionsCodePreview":4770,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicAutoEvaluationSettingProvider":4771,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicAutoEvaluationSetting":4772,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicContextMenuContributorProvider":4773,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicContextMenuContributor":4774,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicEquationManagerProvider":4775,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicEquationManager":4776,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicEquation":4777,"equations/editor/PluginRegistry":4778,"equations/editor/utils/DirectedSearch":4779,"equations/editor/actions/CutCopyPasteAction":4780,"rtc/resources/rich_text_component/nls/ja-jp/equationEditorActions":4781,"rtc/resources/rich_text_component/nls/ko-kr/equationEditorActions":4782,"rtc/resources/rich_text_component/nls/zh-cn/equationEditorActions":4783,"rtc/resources/rich_text_component/nls/equationEditorActions":4784,"equations/editor/actions/DeleteAction":4785,"equations/editor/actions/DragAndDropAction":4786,"equations/editor/actions/InsertTemplateAction":4787,"dojo/text!equations/editor/utils/Templates.xml":4788,"equations/editor/actions/InsertTextAction":4789,"equations/editor/actions/LaTeXCommandsAction":4790,"equations/editor/actions/LaTeXCompletionAction":4791,"equations/editor/actions/LineBreakAction":4792,"equations/editor/actions/MathMLFormattingAction":4793,"equations/editor/actions/MatrixAction":4794,"equations/editor/actions/MouseAction":4795,"equations/editor/actions/SmartEditingAction":4796,"equations/editor/actions/SmartParensAction":4797,"equations/editor/actions/SmartSymbolsAction":4798,"equations/editor/actions/TabAction":4799,"equations/editor/actions/TabLeavesStructureAction":4800,"equations/editor/actions/TextFormattingAction":4801,"equations/editor/actions/UndoRedoAction":4802,"equations/editor/actions/VisualCursorAction":4803,"equations/editor/api/AttributesAPI":4804,"equations/editor/api/CursorAPI":4805,"equations/editor/api/EquationAPI":4806,"equations/editor/controller/CaretController":4807,"equations/editor/controller/ContextMenuController":4808,"equations/editor/controller/CursorController":4809,"equations/editor/controller/EditManager":4810,"equations/editor/controller/EditBlock":4811,"equations/editor/commands/DeleteNodeCommand":4812,"equations/editor/commands/InsertNodeCommand":4813,"equations/editor/commands/MoveChildrenCommand":4814,"equations/editor/commands/ReplaceTextCommand":4815,"equations/editor/commands/UpdateAttributesCommand":4816,"equations/editor/model/UndoRedoStep":4817,"equations/editor/controller/FocusController":4818,"equations/editor/controller/KeyHandlerController":4819,"equations/editor/controller/LiveCursorController":4820,"equations/editor/controller/MouseController":4821,"equations/editor/controller/PlaceholderAtomController":4822,"equations/editor/controller/UndoRedoController":4823,"equations/editor/helper/BackspaceToUndoHelper":4824,"equations/editor/helper/DeleteHelper":4825,"equations/editor/helper/ExportHTMLImage":4826,"equations/editor/helper/ExportImage":4827,"equations/editor/helper/ExportMathML":4828,"equations/editor/helper/ExportPlainText":4829,"equations/editor/helper/ImportHelper":4830,"equations/editor/helper/InsertHelper":4831,"equations/editor/helper/InsertTemplateHelper":4832,"equations/editor/helper/MimeTypeExportHelper":4833,"equations/editor/helper/MimeTypeHelper":4834,"equations/editor/utils/PlainTextParser":4835,"equations/editor/helper/PlainTextGenerator":4836,"equations/editor/model/Categorizer":4837,"equations/editor/model/categorizers/CategorizeAccent":4838,"equations/editor/model/categorizers/CategorizeDelimiterPair":4839,"equations/editor/model/categorizers/CategorizeEditableChildren":4840,"equations/editor/model/categorizers/CategorizeInlineFraction":4841,"equations/editor/model/categorizers/CategorizeIntegral":4842,"equations/editor/model/categorizers/CategorizeMatrix":4843,"equations/editor/model/categorizers/CategorizeOperatorTemplate":4844,"equations/editor/model/categorizers/CategorizeRadical":4845,"equations/editor/model/categorizers/CategorizeTooltip":4846,"equations/editor/model/categorizers/CategorizeUnderbrace":4847,"equations/editor/model/Cursor":4848,"equations/editor/model/Equation":4849,"equations/editor/utils/Iterator":4850,"equations/editor/utils/IteratorResolver":4851,"equations/editor/model/Flattener":4852,"equations/editor/view/Caret":4853,"equations/editor/view/Helper":4854,"equations/editor/view/HighlightActiveRow":4855,"equations/editor/view/KeyHandler":4856,"equations/editor/view/MoveKeyCaptureOnFocus":4857,"equations/editor/view/Renderer":4858,"equations/editor/view/RootNode":4859,"equations/editor/view/Selection":4860,"equations/utils/PluginService":4861,"rtc/clipboardservice/InternalClipboard":4862,"rtc/clipboardservice/ConnectorClipboard":4863,"rtc/clipboardservice/ClipboardMessageServiceChannels":4864,"rtc/clipboardservice/BrowserSyncedClipboard":4865,"rtc/plugins/embeddedoutputs/view/EquationTooltip":4866,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/SymOutputEquationEditorPlugins":4867,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/CategorizeAbbreviation":4868,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/CategorizeIn":4869,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/CategorizeIndexedIdentifier":4870,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/CategorizePiecewise3":4871,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/CategorizeSymbolicMatrixAbbreviationVariable":4872,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/CategorizeSymTooltip":4873,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/SemanticalSelectionController":4874,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/SymbolicOutputBridge":4875,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/SymbolicOutputCaretAction":4876,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/equationeditorplugins/SymbolicOutputCursorAction":4877,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicRunScriptPromptController":4878,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicSuggestions":4879,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicOutputHandlerProvider":4880,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicOutputHandler":4881,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicOutput":4882,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicOutputStyler":4883,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2DocBookXMLProvider":4884,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2DocBookXML":4885,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2HTMLProvider":4886,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2HTML":4887,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2LaTeXProvider":4888,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2LaTeX":4889,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2XSLFOProvider":4890,"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2XSLFO":4891,"rtc/plugins/embeddedoutputs/outputhandlers/text/TextOutputHandlerProvider":4892,"rtc/plugins/embeddedoutputs/outputhandlers/text/TextOutputHandler":4893,"rtc/plugins/embeddedoutputs/outputhandlers/text/TextOutput":4894,"rtc/plugins/embeddedoutputs/outputhandlers/text/export/TextElement2DocBookXMLProvider":4895,"rtc/plugins/embeddedoutputs/outputhandlers/text/export/TextElement2DocBookXML":4896,"rtc/plugins/embeddedoutputs/outputhandlers/variable/VariableOutputHandlerProvider":4897,"rtc/plugins/embeddedoutputs/outputhandlers/variable/VariableOutputHandler":4898,"rtc/plugins/embeddedoutputs/outputhandlers/variable/VariableOutput":4899,"rtc/plugins/embeddedoutputs/outputhandlers/variable/export/VariableElement2DocBookXMLProvider":4900,"rtc/plugins/embeddedoutputs/outputhandlers/variable/export/VariableElement2DocBookXML":4901,"rtc/plugins/embeddedoutputs/outputhandlers/variable/export/VariableElement2HTMLProvider":4902,"rtc/plugins/embeddedoutputs/outputhandlers/variable/export/VariableElement2HTML":4903,"rtc/plugins/embeddedoutputs/outputhandlers/variablestring/VariableStringOutputHandlerProvider":4904,"rtc/plugins/embeddedoutputs/outputhandlers/variablestring/VariableStringOutputHandler":4905,"rtc/plugins/embeddedoutputs/outputhandlers/variablestring/VariableStringOutput":4906,"rtc/plugins/embeddedoutputs/outputhandlers/variablestring/export/VariableStringElement2DocBookXMLProvider":4907,"rtc/plugins/embeddedoutputs/outputhandlers/variablestring/export/VariableStringElement2DocBookXML":4908,"rtc/plugins/embeddedoutputs/outputhandlers/warning/WarningOutputHandlerProvider":4909,"rtc/plugins/embeddedoutputs/outputhandlers/warning/WarningOutputHandler":4910,"rtc/plugins/embeddedoutputs/outputhandlers/warning/export/Warning2DocBookXMLProvider":4911,"rtc/plugins/embeddedoutputs/outputhandlers/warning/export/Warning2DocBookXML":4912,"rtc/plugins/embeddedoutputs/ToggleOutputCodeProvider":4913,"rtc/plugins/embeddedoutputs/ToggleOutputCode":4914,"rtc/plugins/embeddedoutputs/triggers/SynchronousRunAllTriggerProvider":4915,"rtc/plugins/embeddedoutputs/triggers/SynchronousRunAllTrigger":4916,"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsAlertProvider":4917,"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsAlert":4918,"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsViewProvider":4919,"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsView":4920,"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsStaleOutput":4921,"rtc/plugins/embeddedoutputs/view/ScrollableOutputStyler":4922,"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsViewModelProvider":4923,"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsViewModel":4924,"rtc/plugins/embeddedoutputs/view/HitLineIndicatorProvider":4925,"rtc/plugins/embeddedoutputs/view/HitLineIndicator":4926,"rtc/plugins/embeddedoutputs/view/ReadyBusyErrorContributorProvider":4927,"rtc/plugins/embeddedoutputs/view/ReadyBusyErrorContributor":4928,"dojo/text!rtc/plugins/embeddedoutputs/view/templateError.html":4929,"rtc/plugins/execution/margin/AbstractReadyBusyIndicatorContributor":4930,"rtc/plugins/embeddedoutputs/view/RightPanelProvider":4931,"rtc/plugins/embeddedoutputs/view/RightPanel":4932,"rtc/plugins/embeddedoutputs/view/SplitterMixin":4933,"rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsIconProvider":4934,"rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsIcon":4935,"rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsNotifierProvider":4936,"rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsNotifier":4937,"rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsNotifierPopup":4938,"dojo/text!rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsNotifierTemplate.html":4939,"rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsNotifierSettingProvider":4940,"rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsNotifierSetting":4941,"rtc/plugins/embeddedoutputs/view/ViewButtonPanelProvider":4942,"rtc/plugins/embeddedoutputs/view/ViewButtonPanel":4943,"rtc/plugins/embeddedoutputs/view/ViewNameToViewMapProvider":4944,"rtc/plugins/embeddedoutputs/view/ViewNameToViewMap":4945,"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeViewProvider":4946,"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeView":4947,"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeViewCodeGenContributorProvider":4948,"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeViewCodeGenContributor":4949,"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeViewSwitchProvider":4950,"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeViewSwitch":4951,"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeViewSwitchUtilities":4952,"rtc/plugins/embeddedoutputs/view/inline/InlineViewProvider":4953,"rtc/plugins/embeddedoutputs/view/inline/InlineView":4954,"rtc/plugins/embeddedoutputs/view/onright/AlignmentCacheProvider":4955,"rtc/plugins/embeddedoutputs/view/onright/AlignmentCache":4956,"rtc/plugins/embeddedoutputs/view/onright/AlignmentManagerProvider":4957,"rtc/plugins/embeddedoutputs/view/onright/AlignmentManager":4958,"rtc/plugins/embeddedoutputs/view/onright/AlignmentUtils":4959,"rtc/plugins/embeddedoutputs/view/ViewModelUtilities":4960,"rtc/plugins/embeddedoutputs/view/onright/CurrentElementManagerProvider":4961,"rtc/plugins/embeddedoutputs/view/onright/CurrentElementManager":4962,"rtc/plugins/embeddedoutputs/view/onright/OnrightViewProvider":4963,"rtc/plugins/embeddedoutputs/view/onright/OnrightView":4964,"rtc/plugins/embeddedoutputs/view/onright/AlignmentDisabler":4965,"rtc/plugins/embeddedoutputs/view/onright/SplitterPositionControllerProvider":4966,"rtc/plugins/embeddedoutputs/view/onright/SplitterPositionController":4967,"rtc/plugins/embeddedoutputs/view/slide/SlideViewProvider":4968,"rtc/plugins/embeddedoutputs/view/slide/SlideView":4969,"rtc/plugins/execution/ExecutionDataServiceProvider":4970,"rtc/plugins/execution/RegionEvaluatorProvider":4971,"rtc/plugins/execution/RegionEvaluator":4972,"rtc/plugins/execution/MVMFactory":4973,"rtc/plugins/execution/SynchronousRequestExecutorProvider":4974,"rtc/plugins/execution/SynchronousRequestExecutor":4975,"rtc/plugins/execution/AbstractSynchronousRequestExecutor":4976,"rtc/plugins/export/docbookxml/LineNode2DocBookXMLProvider":4977,"rtc/plugins/export/docbookxml/LineNode2DocBookXML":4978,"rtc/plugins/export/docx/LineNode2DOCXProvider":4979,"rtc/plugins/export/docx/LineNode2DOCX":4980,"rtc/plugins/export/docx/HTML2MHT":4981,"rtc/plugins/export/html/LineNodeWithOutput2HTMLProvider":4982,"rtc/plugins/export/html/LineNodeWithOutput2HTML":4983,"rtc/plugins/export/html/OutputParagraph2HTMLProvider":4984,"rtc/plugins/export/html/OutputParagraph2HTML":4985,"rtc/plugins/export/latex/LineNode2LaTeXProvider":4986,"rtc/plugins/export/latex/LineNode2LaTeX":4987,"rtc/plugins/export/latex/OutputExporter":4988,"rtc/plugins/export/xslfo/LineNode2XSLFOProvider":4989,"rtc/plugins/export/xslfo/LineNode2XSLFO":4990,"rtc/plugins/service/OutputHandlerServiceProvider":4991,"rtc/plugins/service/OutputHandlerService":4992,"rtc/core/registry/EquationEditorPluginRegistryModule":4993,"rtc/plugins/contextmenu/EquationContextMenuContributorProvider":4994,"rtc/plugins/equations/equationeditor/EquationEditorProvider":4995,"rtc/plugins/equations/equationeditor/EquationEditor":4996,"dojo/i18n!rtc/resources/rich_text_component/nls/equationEditor":4997,"rtc/resources/rich_text_component/nls/ja-jp/equationEditor":4998,"rtc/resources/rich_text_component/nls/ko-kr/equationEditor":4999,"rtc/resources/rich_text_component/nls/zh-cn/equationEditor":5e3,"rtc/resources/rich_text_component/nls/equationEditor":5001,"rtc/plugins/equations/equationeditor/EquationEditorBridge":5002,"rtc/plugins/equations/equationeditor/ExportPlainTextFromEditor":5003,"rtc/plugins/equations/equationeditor/EquationFocusEventsProvider":5004,"rtc/plugins/equations/equationeditor/EquationFocusEvents":5005,"rtc/plugins/equations/equationeditor/MathMLMimeConverterProvider":5006,"rtc/plugins/equations/equationeditor/MathMLMimeConverter":5007,"rtc/plugins/equations/export/Equation2DocBookXMLProvider":5008,"rtc/plugins/equations/export/Equation2DocBookXML":5009,"rtc/plugins/equations/export/Equation2HelpTextProvider":5010,"rtc/plugins/equations/export/Equation2HelpText":5011,"rtc/plugins/equations/export/Equation2HTMLProvider":5012,"rtc/plugins/equations/export/Equation2HTML":5013,"rtc/plugins/equations/export/Equation2MProvider":5014,"rtc/plugins/equations/export/Equation2M":5015,"rtc/plugins/equations/export/Equation2LaTeXProvider":5016,"rtc/plugins/equations/export/Equation2LaTeX":5017,"rtc/plugins/equations/export/Equation2XSLFOProvider":5018,"rtc/plugins/equations/export/Equation2XSLFO":5019,"rtc/plugins/equations/export/EquationDocxSerializerProvider":5020,"rtc/plugins/equations/export/EquationDocxSerializer":5021,"rtc/plugins/equations/latexeditor/LaTeXEditorProvider":5022,"rtc/plugins/equations/latexeditor/LaTeXEditor":5023,"rtc/plugins/equations/latexeditor/view/EquationDialog":5024,"dojo/i18n!rtc/resources/rich_text_component/nls/equationDialog":5025,"rtc/resources/rich_text_component/nls/ja-jp/equationDialog":5026,"rtc/resources/rich_text_component/nls/ko-kr/equationDialog":5027,"rtc/resources/rich_text_component/nls/zh-cn/equationDialog":5028,"rtc/resources/rich_text_component/nls/equationDialog":5029,"dojo/text!rtc/plugins/equations/latexeditor/view/EquationDialogTemplate.html":5030,"rtc/core/registry/LiveAppsPluginRegistryModule":5031,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppActionHandlerProvider":5032,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppActionHandler":5033,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppActionDDUXContributorProvider":5034,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppActionDDUXContributor":5035,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppAutorunProvider":5036,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppAutorun":5037,"rtc/resources/rich_text_component/nls/ja-jp/liveApps":5038,"rtc/resources/rich_text_component/nls/ko-kr/liveApps":5039,"rtc/resources/rich_text_component/nls/zh-cn/liveApps":5040,"rtc/resources/rich_text_component/nls/liveApps":5041,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppBackendServiceProvider":5042,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppBackendService":5043,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppMessageService":5044,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppCodeManagerProvider":5045,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppCodeManager":5046,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppComponentCounterDDUXProvider":5047,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppComponentCounterDDUX":5048,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppContextMenuManagerProvider":5049,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppContextMenuManager":5050,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppControllerProvider":5051,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppController":5052,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppCursorHandlerProvider":5053,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppCursorHandler":5054,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDDUXCleanerProvider":5055,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDDUXCleaner":5056,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentDeletionHandlerProvider":5057,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentDeletionHandler":5058,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentHandlerProvider":5059,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentHandler":5060,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentInsertBreakHandlerProvider":5061,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentInsertBreakHandler":5062,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentInsertTextHandlerProvider":5063,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentInsertTextHandler":5064,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppEditorKeyHandlerProvider":5065,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppEditorKeyHandler":5066,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppEnableStateProvider":5067,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppEnableState":5068,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppExecutionManagerProvider":5069,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppExecutionManager":5070,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppFocusManagerProvider":5071,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppFocusManager":5072,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppHelpHandlerProvider":5073,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppHelpHandler":5074,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppHierarchyManagerProvider":5075,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppHierarchyManager":5076,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppFoldCandidate":5077,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppInsertEmptyCodeLineHandlerProvider":5078,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppInsertEmptyCodeLineHandler":5079,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppTouchHandlerProvider":5080,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppTouchHandler":5081,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppUIFigureHandlerProvider":5082,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppUIFigureHandler":5083,"rtc/plugins/view/renderednotifier/DocumentRenderedContributor":5084,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppViewModelProvider":5085,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppViewModel":5086,"rtc/plugins/language/matlab/codingui/liveapps/widgets/LiveAppInlineWidget":5087,"rtc/plugins/language/matlab/codingui/liveapps/widgets/LiveAppLineWidget":5088,"dojo/text!rtc/plugins/language/matlab/codingui/liveapps/widgets/LiveAppLineWidgetTemplate.html":5089,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppViewStateManagerProvider":5090,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppViewStateManager":5091,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppWidgetKeyHandlerProvider":5092,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppWidgetKeyHandler":5093,"rtc/plugins/language/matlab/codingui/liveapps/tasks/visualize/LiveAppVisualizeMetadataProvider":5094,"rtc/plugins/language/matlab/codingui/liveapps/tasks/visualize/LiveAppVisualizeMetadata":5095,"rtc/plugins/language/matlab/codingui/liveapps/tasks/visualize/LiveAppVisualizeCodeMetadataProvider":5096,"rtc/plugins/language/matlab/codingui/liveapps/tasks/visualize/LiveAppVisualizeCodeMetadata":5097,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppAlignmentRulesContributorProvider":5098,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppAlignmentRulesContributor":5099,"rtc/plugins/embeddedoutputs/view/onright/AbstractAlignmentRulesContributor":5100,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCurrentOutputHandlerProvider":5101,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCurrentOutputHandler":5102,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCustomExecutionDataContributorProvider":5103,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCustomExecutionDataContributor":5104,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCutCopyPasteHandlerProvider":5105,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCutCopyPasteHandler":5106,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppEditorCodeGenContributorProvider":5107,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppEditorCodeGenContributor":5108,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCurrentExecutionLineContributorProvider":5109,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCurrentExecutionLineContributor":5110,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppHideFilterProvider":5111,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppHideFilter":5112,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppSwitchViewRuleProvider":5113,"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppSwitchViewRule":5114,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppMvmServiceProvider":5115,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppMvmService":5116,"rtc/plugins/language/matlab/codingui/liveapps/export/LiveAppLineNode2DocBookXMLProvider":5117,"rtc/plugins/language/matlab/codingui/liveapps/export/LiveAppLineNode2DocBookXML":5118,"rtc/plugins/language/matlab/codingui/liveapps/export/LiveAppLineNode2DOCXProvider":5119,"rtc/plugins/language/matlab/codingui/liveapps/export/LiveAppLineNode2HTMLProvider":5120,"rtc/plugins/language/matlab/codingui/liveapps/export/LiveAppLineNode2XSLFOProvider":5121,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppInlineNodeContentConverterProvider":5122,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppIntegratedInlineNodeContentConverterProvider":5123,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppIntegratedInlineNodeContentConverter":5124,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppIntegratedInlineNodeInsertionRulesProvider":5125,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppIntegratedInlineNodeInsertionRules":5126,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppLineNodeContentConverterProvider":5127,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppLineNodeContentConverter":5128,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppLineNodeConversionRulesProvider":5129,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppLineNodeConversionRules":5130,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppLineNodeInsertionRulesProvider":5131,"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppLineNodeInsertionRules":5132,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppInlineNodeCoordinateConverterProvider":5133,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppInlineNodeLayouterProvider":5134,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppIntegratedInlineNodeCoordinateConverterProvider":5135,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppIntegratedInlineNodeCoordinateConverter":5136,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppIntegratedInlineNodeLayouterProvider":5137,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppIntegratedInlineNodeLayouter":5138,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppLineNodeCoordinateConverterProvider":5139,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppLineNodeCoordinateConverter":5140,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppLineNodeLayouterProvider":5141,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppLineNodeLayouter":5142,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppToolstripActionManagerProvider":5143,"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppToolstripActionManager":5144,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDataModel":5145,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppMobileHandlerProvider":5146,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppMobileHandler":5147,"rtc/model/io/serializers/providers/containers/LiveAppLineContainerSerializerProvider":5148,"rtc/model/io/serializers/containers/LiveAppLineContainerSerializer":5149,"rtc/model/io/serializers/providers/nodes/LiveAppIntegratedInlineSerializerProvider":5150,"rtc/model/io/serializers/nodes/LiveAppIntegratedInlineSerializer":5151,"rtc/core/registry/LiveControlsPluginRegistryModule":5152,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlActionHandlerProvider":5153,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlActionHandler":5154,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlContextManagerProvider":5155,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlContextManager":5156,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlContext":5157,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlContextMenuProvider":5158,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlContextMenu":5159,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlEnableDisableProvider":5160,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlEnableDisable":5161,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlExecutionProvider":5162,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlExecution":5163,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlExecutionModelProvider":5164,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlExecutionModel":5165,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlFocusManagerProvider":5166,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlFocusManager":5167,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlInsertionProvider":5168,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlInsertion":5169,"rtc/plugins/language/matlab/codingui/livecontrols/ValidWidgetsManifest":5170,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlKeyHandlerProvider":5171,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlKeyHandler":5172,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlWorkspaceDataContributorProvider":5173,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlNodeUpdaterProvider":5174,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlNodeUpdater":5175,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlWidgetChangeHandlerProvider":5176,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlWidgetChangeHandler":5177,"rtc/plugins/language/matlab/codingui/livecontrols/utilities/LiveControlExecutionUtilities":5178,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlWidgetHandlerProvider":5179,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlWidgetHandler":5180,"rtc/plugins/language/matlab/codingui/livecontrols/utilities/LiveControlWidgetHandlerUtilities":5181,"rtc/plugins/language/matlab/codingui/livecontrols/export/LiveControl2DocBookXMLProvider":5182,"rtc/plugins/language/matlab/codingui/livecontrols/export/LiveControl2DocBookXML":5183,"rtc/plugins/language/matlab/codingui/livecontrols/export/LiveControl2HTMLProvider":5184,"rtc/plugins/language/matlab/codingui/livecontrols/export/LiveControl2HTML":5185,"rtc/plugins/language/matlab/codingui/livecontrols/export/LiveControl2XSLFOProvider":5186,"rtc/plugins/language/matlab/codingui/livecontrols/export/LiveControl2XSLFO":5187,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlNodeFactoryProvider":5188,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlNodeFactory":5189,"rtc/plugins/language/matlab/codingui/livecontrols/nodes/LiveControlNodeContentConverterProvider":5190,"rtc/plugins/language/matlab/codingui/livecontrols/nodes/LiveControlNodeContentConverter":5191,"rtc/plugins/language/matlab/codingui/livecontrols/nodes/LiveControlNodeExecutableCodeConverterProvider":5192,"rtc/plugins/language/matlab/codingui/livecontrols/nodes/LiveControlNodeExecutableCodeConverter":5193,"rtc/plugins/language/matlab/codingui/livecontrols/rules/LiveControlSwitchViewRuleProvider":5194,"rtc/plugins/language/matlab/codingui/livecontrols/rules/LiveControlSwitchViewRule":5195,"rtc/plugins/language/matlab/codingui/livecontrols/view/converters/LiveControlCoordinateConverterProvider":5196,"rtc/plugins/language/matlab/codingui/livecontrols/view/converters/LiveControlCoordinateConverter":5197,"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlViewModelProvider":5198,"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlViewModel":5199,"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlDecoratorProvider":5200,"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlDecorator":5201,"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlLayouterProvider":5202,"rtc/plugins/language/matlab/codingui/livecontrols/view/DropdownControlLayouterProvider":5203,"rtc/plugins/language/matlab/codingui/livecontrols/view/DropdownControlLayouter":5204,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/LiveControlComboBox":5205,"l10n/nls/ja-jp/liveControls":5206,"l10n/nls/ko-kr/liveControls":5207,"l10n/nls/zh-cn/liveControls":5208,"l10n/nls/liveControls":5209,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/EditableMixin":5212,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/ConfigPanelWidget":5213,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/ExecutionModelMixin":5214,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/DataMixin":5215,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/DisabledMixin":5216,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/LabelMixin":5217,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/PositionMixin":5218,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/utilities/PropertySheetMergerUtility":5219,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/WidgetClickManager":5220,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/ComboBox":5221,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/ComboBoxConfigurationMixin":5222,"rtc/plugins/language/matlab/codingui/livecontrols/view/SliderControlLayouterProvider":5223,"rtc/plugins/language/matlab/codingui/livecontrols/view/SliderControlLayouter":5224,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/LiveControlSlider":5225,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/HorizontalSlider":5227,"dojo/text!mw-slider/templates/Slider.html":5228,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/SliderConfigurationMixin":5229,"rtc/plugins/language/matlab/codingui/livecontrols/view/CheckboxControlLayouterProvider":5230,"rtc/plugins/language/matlab/codingui/livecontrols/view/CheckboxControlLayouter":5231,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/LiveControlCheckBox":5232,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/CheckBox":5234,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/CheckboxConfigurationMixin":5235,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/utilities/CheckBoxUtility":5236,"rtc/plugins/language/matlab/codingui/livecontrols/view/EditfieldControlLayouterProvider":5237,"rtc/plugins/language/matlab/codingui/livecontrols/view/EditfieldControlLayouter":5238,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/LiveControlEditField":5239,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/TextField":5241,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/mixins/EditFieldConfigurationMixin":5242,"rtc/plugins/language/matlab/codingui/livecontrols/view/ButtonControlLayouterProvider":5243,"rtc/plugins/language/matlab/codingui/livecontrols/view/ButtonControlLayouter":5244,"rtc/plugins/language/matlab/codingui/livecontrols/widgets/LiveControlButton":5245,"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlWidgetStateProvider":5247,"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlWidgetState":5248,"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlSizerProvider":5249,"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlSizer":5250,"rtc/plugins/language/matlab/codingui/livecontrols/ddux/LiveControlComponentCounterDDUXProvider":5251,"rtc/plugins/language/matlab/codingui/livecontrols/ddux/LiveControlComponentCounterDDUX":5252,"rtc/plugins/language/matlab/codingui/livecontrols/ddux/LiveControlDDUXContributorProvider":5253,"rtc/plugins/language/matlab/codingui/livecontrols/ddux/LiveControlDDUXContributor":5254,"rtc/nodes/insertionrules/LiveControlNodeInsertionRulesProvider":5255,"rtc/nodes/insertionrules/LiveControlNodeInsertionRules":5256,"rtc/plugins/export/docx/LiveControlDocxSerializerProvider":5257,"rtc/plugins/export/docx/LiveControlDocxSerializer":5258,"rtc/model/io/serializers/providers/nodes/LiveControlSerializerProvider":5259,"rtc/model/io/serializers/nodes/LiveControlSerializer":5260,"rtc/view/hidden/HideCodeLiveControlPreventDisableRuleProvider":5261,"rtc/view/hidden/HideCodeLiveControlPreventDisableRule":5262,"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlPreventDisableAbstractRule":5263,"rtc/plugins/language/matlab/codingui/livecontrols/ddux/LiveControlExecutionDDUXContributorProvider":5264,"rtc/plugins/language/matlab/codingui/livecontrols/ddux/LiveControlExecutionDDUXContributor":5265,"rtc/plugins/codeexample/CodeExampleProvider":5266,"rtc/plugins/codeexample/CodeExample":5267,"rtc/plugins/codeexample/CodeExampleTooltipPreviewProvider":5268,"rtc/plugins/codeexample/CodeExampleTooltipPreview":5269,"rtc/plugins/codeexample/model/CodeExampleBlockNodeContentConverterProvider":5270,"rtc/plugins/codeexample/model/CodeExampleBlockNodeContentConverter":5271,"rtc/plugins/codeexample/view/CodeExampleBlockLayouterProvider":5272,"rtc/plugins/codeexample/view/CodeExampleBlockLayouter":5273,"rtc/plugins/codeexample/view/CodeExampleBlockCoordinateConverterProvider":5274,"rtc/plugins/codeexample/view/CodeExampleBlockCoordinateConverter":5275,"rtc/plugins/codeexample/CodeExampleBlockInsertionRulesProvider":5276,"rtc/plugins/codeexample/CodeExampleBlockInsertionRules":5277,"rtc/plugins/codeexample/model/CodeExampleLineNodeContentConverterProvider":5278,"rtc/plugins/codeexample/model/CodeExampleLineNodeContentConverter":5279,"rtc/plugins/codeexample/view/CodeExampleLineLayouterProvider":5280,"rtc/plugins/codeexample/view/CodeExampleLineLayouter":5281,"rtc/plugins/codeexample/CodeExampleLineInsertionRulesProvider":5282,"rtc/plugins/codeexample/CodeExampleLineInsertionRules":5283,"rtc/plugins/codeexample/syntaxhighlighter/matlab/SyntaxHighlighterProvider":5284,"rtc/plugins/codeexample/syntaxhighlighter/matlab/SyntaxHighlighter":5285,"rtc/model/io/serializers/providers/containers/CodeExampleBlockContainerSerializerProvider":5286,"rtc/model/io/serializers/containers/CodeExampleBlockContainerSerializer":5287,"rtc/model/io/serializers/providers/containers/CodeExampleLineContainerSerializerProvider":5288,"rtc/plugins/codeexample/CodeExampleBlockKeyHandlerProvider":5289,"rtc/plugins/codeexample/CodeExampleBlockKeyHandler":5290,"rtc/plugins/cutcopypaste/mime/CodeExampleMimeInCodeConverterProvider":5291,"rtc/plugins/cutcopypaste/mime/CodeExampleMimeInCodeConverter":5292,"rtc/plugins/cutcopypaste/mime/CodeMimeInCodeExampleConverterProvider":5293,"rtc/plugins/cutcopypaste/mime/CodeMimeInCodeExampleConverter":5294,"rtc/plugins/codeexample/export/CodeExampleBlock2DocBookXMLProvider":5295,"rtc/plugins/codeexample/export/CodeExampleBlock2DocBookXML":5296,"rtc/plugins/codeexample/export/CodeExampleBlock2DOCXProvider":5297,"rtc/plugins/codeexample/export/CodeExampleBlock2DOCX":5298,"rtc/plugins/codeexample/export/CodeExampleLineDocxSerializerProvider":5299,"rtc/plugins/codeexample/export/CodeExampleBlock2HelpTextProvider":5300,"rtc/plugins/codeexample/export/CodeExampleBlock2HelpText":5301,"rtc/plugins/codeexample/export/CodeExampleBlock2HTMLProvider":5302,"rtc/plugins/codeexample/export/CodeExampleBlock2HTML":5303,"rtc/plugins/codeexample/export/CodeExampleBlock2MProvider":5304,"rtc/plugins/codeexample/export/CodeExampleBlock2M":5305,"rtc/plugins/codeexample/export/CodeExampleBlock2LaTeXProvider":5306,"rtc/plugins/codeexample/export/CodeExampleBlock2LaTeX":5307,"rtc/plugins/codeexample/export/CodeExampleBlock2XSLFOProvider":5308,"rtc/plugins/codeexample/export/CodeExampleBlock2XSLFO":5309,"rtc/plugins/codeexample/export/CodeExampleLine2XSLFOProvider":5310,"rtc/plugins/codeexample/export/CodeExampleLine2XSLFO":5311,"rtc/plugins/equations/equationcontroller/EquationControllerProvider":5312,"rtc/plugins/equations/equationcontroller/EquationController":5313,"rtc/plugins/equations/tools/AutoDisplayStyle":5314,"rtc/plugins/equations/equationcontroller/EquationTooltipPreviewProvider":5315,"rtc/plugins/equations/equationcontroller/EquationTooltipPreview":5316,"rtc/plugins/equations/equationcontroller/HTMLEquationHandlerProvider":5317,"rtc/plugins/equations/equationcontroller/HTMLEquationHandler":5318,"rtc/plugins/equations/equationcontroller/nodes/EquationNodeContentConverterProvider":5319,"rtc/plugins/equations/equationcontroller/nodes/EquationNodeContentConverter":5320,"rtc/plugins/equations/equationcontroller/view/EquationCoordinateConverterProvider":5321,"rtc/plugins/equations/equationcontroller/view/EquationCoordinateConverter":5322,"rtc/plugins/equations/equationcontroller/view/EquationLayouterProvider":5323,"rtc/plugins/equations/equationcontroller/view/EquationLayouter":5324,"rtc/plugins/equations/equationeditor/EquationEditorManagerProvider":5325,"rtc/plugins/equations/equationeditor/EquationEditorManager":5326,"rtc/model/io/serializers/providers/nodes/EquationSerializerProvider":5327,"rtc/model/io/serializers/nodes/EquationSerializer":5328,"rtc/plugins/hyperlink/HyperlinkProvider":5329,"rtc/plugins/hyperlink/Hyperlink":5330,"rtc/resources/rich_text_component/nls/ja-jp/hyperlinkDialog":5331,"rtc/resources/rich_text_component/nls/ko-kr/hyperlinkDialog":5332,"rtc/resources/rich_text_component/nls/zh-cn/hyperlinkDialog":5333,"rtc/resources/rich_text_component/nls/hyperlinkDialog":5334,"rtc/plugins/hyperlink/HyperlinkEditorProvider":5335,"rtc/plugins/hyperlink/HyperlinkEditor":5336,"rtc/plugins/hyperlink/model/DocumentTargetSelector":5337,"rtc/plugins/hyperlink/view/HyperlinkDialog":5338,"dojo/text!rtc/plugins/hyperlink/view/HyperlinkDialogTemplate.html":5339,"rtc/resources/rich_text_component/nls/ja-jp/richtext_actions":5340,"rtc/resources/rich_text_component/nls/ko-kr/richtext_actions":5341,"rtc/resources/rich_text_component/nls/zh-cn/richtext_actions":5342,"rtc/resources/rich_text_component/nls/richtext_actions":5343,"rtc/plugins/hyperlink/HTMLHyperlinkElementHandlerProvider":5344,"rtc/plugins/hyperlink/HTMLHyperlinkElementHandler":5345,"rtc/plugins/hyperlink/HyperlinkMIMEConverterProvider":5346,"rtc/plugins/hyperlink/HyperlinkMIMEConverter":5347,"rtc/plugins/hyperlink/HyperlinkTooltipProvider":5348,"rtc/plugins/hyperlink/HyperlinkTooltip":5349,"rtc/plugins/hyperlink/HyperlinkTooltipPreviewer":5350,"rtc/resources/rich_text_component/nls/ja-jp/toolTipPreview":5351,"rtc/resources/rich_text_component/nls/ko-kr/toolTipPreview":5352,"rtc/resources/rich_text_component/nls/zh-cn/toolTipPreview":5353,"rtc/resources/rich_text_component/nls/toolTipPreview":5354,"rtc/plugins/hyperlink/export/Hyperlink2DocBookXMLProvider":5355,"rtc/plugins/hyperlink/export/Hyperlink2DocBookXML":5356,"rtc/plugins/hyperlink/export/Hyperlink2HelpTextProvider":5357,"rtc/plugins/hyperlink/export/Hyperlink2HelpText":5358,"rtc/plugins/hyperlink/export/Hyperlink2HTMLProvider":5359,"rtc/plugins/hyperlink/export/Hyperlink2HTML":5360,"rtc/plugins/hyperlink/export/Hyperlink2MProvider":5361,"rtc/plugins/hyperlink/export/Hyperlink2M":5362,"rtc/plugins/hyperlink/export/Hyperlink2LaTeXProvider":5363,"rtc/plugins/hyperlink/export/Hyperlink2LaTeX":5364,"rtc/plugins/hyperlink/export/Hyperlink2XSLFOProvider":5365,"rtc/plugins/hyperlink/export/Hyperlink2XSLFO":5366,"rtc/plugins/hyperlink/export/HyperlinkDocxSerializerProvider":5367,"rtc/plugins/hyperlink/export/HyperlinkDocxSerializer":5368,"rtc/plugins/hyperlink/model/HyperlinkNodeContentConverterProvider":5369,"rtc/plugins/hyperlink/model/HyperlinkNodeContentConverter":5370,"rtc/plugins/hyperlink/view/HyperlinkCoordinateConverterProvider":5371,"rtc/plugins/hyperlink/view/HyperlinkCoordinateConverter":5372,"rtc/plugins/hyperlink/view/HyperlinkLayouterProvider":5373,"rtc/plugins/hyperlink/view/HyperlinkLayouter":5374,"rtc/plugins/hyperlink/HyperlinkInsertionRulesProvider":5375,"rtc/plugins/hyperlink/HyperlinkInsertionRules":5376,"rtc/model/io/serializers/providers/containers/HyperlinkContainerSerializerProvider":5377,"rtc/model/io/serializers/containers/HyperlinkContainerSerializer":5378,"rtc/plugins/internalhyperlinkservice/InternalHyperlinkServiceProvider":5379,"rtc/plugins/internalhyperlinkservice/InternalHyperlinkService":5380,"rtc/plugins/internalhyperlinkservice/AnchorProvider":5381,"rtc/plugins/internalhyperlinkservice/Anchor":5382,"rtc/plugins/internalhyperlinkservice/model/AnchorGenerator":5383,"rtc/plugins/images/HTMLImageElementHandlerProvider":5384,"rtc/plugins/images/HTMLImageElementHandler":5385,"rtc/plugins/images/EditImageProvider":5386,"rtc/plugins/images/EditImage":5387,"rtc/plugins/images/view/EditImageDialog":5388,"rtc/resources/rich_text_component/nls/ja-jp/editImage":5389,"rtc/resources/rich_text_component/nls/ko-kr/editImage":5390,"rtc/resources/rich_text_component/nls/zh-cn/editImage":5391,"rtc/resources/rich_text_component/nls/editImage":5392,"dojo/text!rtc/plugins/images/view/EditImageDialogTemplate.html":5393,"rtc/plugins/images/ImagesProvider":5394,"rtc/plugins/images/Images":5395,"rtc/plugins/images/ImagesTooltipPreviewProvider":5396,"rtc/plugins/images/ImagesTooltipPreview":5397,"rtc/plugins/images/ImageMimeConverterProvider":5398,"rtc/plugins/images/ImageMimeConverter":5399,"rtc/plugins/images/ImageNodeConverterProvider":5400,"rtc/plugins/images/ImageNodeConverter":5401,"rtc/plugins/images/InsertImageProvider":5402,"rtc/plugins/images/InsertImage":5403,"rtc/plugins/images/view/ImageDialog":5404,"dojo/text!rtc/plugins/images/view/ImageDialogTemplate.html":5405,"dojo/i18n!rtc/resources/rich_text_component/nls/insertImageDialog":5406,"rtc/resources/rich_text_component/nls/ja-jp/insertImageDialog":5407,"rtc/resources/rich_text_component/nls/ko-kr/insertImageDialog":5408,"rtc/resources/rich_text_component/nls/zh-cn/insertImageDialog":5409,"rtc/resources/rich_text_component/nls/insertImageDialog":5410,"dijit/form/_CheckBoxMixin":5411,"dojo/text!dijit/form/templates/CheckBox.html":5412,"dijit/form/_RadioButtonMixin":5413,"dijit/form/_AutoCompleterMixin":5414,"dijit/form/DataList":5415,"dojo/store/util/SimpleQueryEngine":5416,"dijit/form/_SearchMixin":5417,"dijit/form/_ComboBoxMenu":5418,"dijit/form/_ComboBoxMenuMixin":5419,"dojo/i18n!dijit/form/nls/ComboBox":5420,"dijit/form/nls/bs/ComboBox":5421,"dijit/form/nls/mk/ComboBox":5422,"dijit/form/nls/sr/ComboBox":5423,"dijit/form/nls/zh/ComboBox":5424,"dijit/form/nls/zh-tw/ComboBox":5425,"dijit/form/nls/uk/ComboBox":5426,"dijit/form/nls/tr/ComboBox":5427,"dijit/form/nls/th/ComboBox":5428,"dijit/form/nls/sv/ComboBox":5429,"dijit/form/nls/sl/ComboBox":5430,"dijit/form/nls/sk/ComboBox":5431,"dijit/form/nls/ru/ComboBox":5432,"dijit/form/nls/ro/ComboBox":5433,"dijit/form/nls/pt/ComboBox":5434,"dijit/form/nls/pt-pt/ComboBox":5435,"dijit/form/nls/pl/ComboBox":5436,"dijit/form/nls/nl/ComboBox":5437,"dijit/form/nls/nb/ComboBox":5438,"dijit/form/nls/ko/ComboBox":5439,"dijit/form/nls/kk/ComboBox":5440,"dijit/form/nls/ja/ComboBox":5441,"dijit/form/nls/it/ComboBox":5442,"dijit/form/nls/id/ComboBox":5443,"dijit/form/nls/hu/ComboBox":5444,"dijit/form/nls/hr/ComboBox":5445,"dijit/form/nls/he/ComboBox":5446,"dijit/form/nls/fr/ComboBox":5447,"dijit/form/nls/fi/ComboBox":5448,"dijit/form/nls/eu/ComboBox":5449,"dijit/form/nls/es/ComboBox":5450,"dijit/form/nls/el/ComboBox":5451,"dijit/form/nls/de/ComboBox":5452,"dijit/form/nls/da/ComboBox":5453,"dijit/form/nls/cs/ComboBox":5454,"dijit/form/nls/ca/ComboBox":5455,"dijit/form/nls/bg/ComboBox":5456,"dijit/form/nls/az/ComboBox":5457,"dijit/form/nls/ar/ComboBox":5458,"dijit/form/nls/ComboBox":5459,"dijit/form/_ListMouseMixin":5460,"dijit/form/_ListBase":5461,"dojo/text!dijit/form/templates/DropDownBox.html":5462,"rtc/plugins/images/InlineResizeImageProvider":5463,"rtc/plugins/images/InlineResizeImage":5464,"rtc/plugins/images/export/Image2DocBookXMLProvider":5465,"rtc/plugins/images/export/Image2DocBookXML":5466,"rtc/plugins/images/export/Image2HelpTextProvider":5467,"rtc/plugins/images/export/Image2HelpText":5468,"rtc/plugins/images/export/Image2HTMLProvider":5469,"rtc/plugins/images/export/Image2HTML":5470,"rtc/plugins/images/export/Image2LaTeXProvider":5471,"rtc/plugins/images/export/Image2LaTeX":5472,"rtc/plugins/images/export/Image2XSLFOProvider":5473,"rtc/plugins/images/export/Image2XSLFO":5474,"rtc/plugins/images/export/ImageDocxSerializerProvider":5475,"rtc/plugins/images/export/ImageDocxSerializer":5476,"rtc/plugins/images/model/ImageNodeContentConverterProvider":5477,"rtc/plugins/images/model/ImageNodeContentConverter":5478,"rtc/plugins/images/view/ImageCoordinateConverterProvider":5479,"rtc/plugins/images/view/ImageCoordinateConverter":5480,"rtc/plugins/images/view/ImageLayouterProvider":5481,"rtc/plugins/images/view/ImageLayouter":5482,"rtc/model/io/serializers/providers/nodes/ImageSerializerProvider":5483,"rtc/plugins/resizer/ResizerProvider":5484,"rtc/plugins/resizer/Resizer":5485,"rtc/plugins/lists/model/ListParagraphContentConverterProvider":5486,"rtc/plugins/lists/model/ListParagraphContentConverter":5487,"rtc/plugins/lists/model/ListItemContentConverterProvider":5488,"rtc/plugins/lists/model/ListItemContentConverter":5489,"rtc/plugins/lists/ListParagraphInsertionRulesProvider":5490,"rtc/plugins/lists/ListParagraphInsertionRules":5491,"rtc/plugins/lists/ListItemInsertionRulesProvider":5492,"rtc/plugins/lists/ListItemInsertionRules":5493,"rtc/plugins/lists/ListsProvider":5494,"rtc/plugins/lists/Lists":5495,"rtc/plugins/lists/HTMLListElementHandlerProvider":5496,"rtc/plugins/lists/HTMLListElementHandler":5497,"rtc/plugins/lists/HTMLWordStyleListHandlerProvider":5498,"rtc/plugins/lists/HTMLWordStyleListHandler":5499,"rtc/plugins/lists/export/ListParagraph2DocBookXMLProvider":5500,"rtc/plugins/lists/export/ListParagraph2DocBookXML":5501,"rtc/plugins/lists/export/ListParagraph2HelpTextProvider":5502,"rtc/plugins/lists/export/ListParagraph2HelpText":5503,"rtc/plugins/lists/export/ListParagraph2HTMLProvider":5504,"rtc/plugins/lists/export/ListParagraph2HTML":5505,"rtc/plugins/lists/export/ListParagraph2LaTeXProvider":5506,"rtc/plugins/lists/export/ListParagraph2LaTeX":5507,"rtc/plugins/lists/export/ListItem2DocBookXMLProvider":5508,"rtc/plugins/lists/export/ListItem2DocBookXML":5509,"rtc/plugins/lists/export/ListParagraph2DOCXProvider":5510,"rtc/plugins/lists/export/ListParagraph2DOCX":5511,"rtc/plugins/lists/export/ListItem2HTMLProvider":5512,"rtc/plugins/lists/export/ListItem2HTML":5513,"rtc/plugins/lists/export/ListItem2MProvider":5514,"rtc/plugins/lists/export/ListItem2M":5515,"rtc/plugins/lists/export/ListItem2LaTeXProvider":5516,"rtc/plugins/lists/export/ListItem2LaTeX":5517,"rtc/plugins/lists/export/ListParagraph2XSLFOProvider":5518,"rtc/plugins/lists/export/ListParagraph2XSLFO":5519,"rtc/plugins/lists/export/ListItem2XSLFOProvider":5520,"rtc/plugins/lists/export/ListItem2XSLFO":5521,"rtc/plugins/lists/export/ListItemDocxSerializerProvider":5522,"rtc/plugins/lists/view/ListParagraphCoordinateConverterProvider":5523,"rtc/plugins/lists/view/ListParagraphCoordinateConverter":5524,"rtc/plugins/lists/view/ListItemLayouterProvider":5525,"rtc/plugins/lists/view/ListItemLayouter":5526,"rtc/plugins/lists/view/ListParagraphLayouterProvider":5527,"rtc/plugins/lists/view/ListParagraphLayouter":5528,"rtc/model/io/serializers/providers/containers/ListContainerSerializerProvider":5529,"rtc/model/io/serializers/containers/ListContainerSerializer":5530,"rtc/model/io/serializers/providers/containers/ListItemContainerSerializerProvider":5531,"rtc/plugins/richtext/RichTextProvider":5532,"rtc/plugins/richtext/RichText":5533,"rtc/plugins/richtext/RichTextShortcutsProvider":5534,"rtc/plugins/richtext/RichTextShortcuts":5535,"rtc/plugins/richtext/RichTextTooltipPreviewProvider":5536,"rtc/plugins/richtext/RichTextTooltipPreview":5537,"rtc/plugins/richtext/MatlabJSONMimeConverterProvider":5538,"rtc/plugins/richtext/MatlabJSONMimeConverter":5539,"rtc/plugins/richtext/HTMLRichTextElementHandlerProvider":5540,"rtc/plugins/richtext/HTMLRichTextElementHandler":5541,"rtc/plugins/richtext/export/RichTextParagraphNode2DocBookXMLProvider":5542,"rtc/plugins/richtext/export/RichTextParagraphNode2DocBookXML":5543,"rtc/plugins/richtext/export/RichTextParagraphNode2XSLFOProvider":5544,"rtc/plugins/richtext/export/RichTextParagraphNode2XSLFO":5545,"rtc/plugins/richtext/export/RichTextParagraphNode2HelpTextProvider":5546,"rtc/plugins/richtext/export/RichTextParagraphNode2HelpText":5547,"rtc/plugins/richtext/export/RichTextParagraphNode2HTML":5548,"rtc/plugins/richtext/export/HeadingNode2DocBookXMLProvider":5549,"rtc/plugins/richtext/export/HeadingNode2DocBookXML":5550,"rtc/plugins/richtext/export/HeadingNode2HTMLProvider":5551,"rtc/plugins/richtext/export/HeadingNode2HTML":5552,"rtc/plugins/richtext/export/HeadingNode2MProvider":5553,"rtc/plugins/richtext/export/HeadingNode2M":5554,"rtc/plugins/richtext/export/HeadingNode2LaTeXProvider":5555,"rtc/plugins/richtext/export/HeadingNode2LaTeX":5556,"rtc/plugins/richtext/export/HeadingNode2XSLFOProvider":5557,"rtc/plugins/richtext/export/HeadingNode2XSLFO":5558,"rtc/plugins/richtext/export/RichTextNode2DocBookXMLProvider":5559,"rtc/plugins/richtext/export/RichTextNode2DocBookXML":5560,"rtc/plugins/richtext/export/RichTextNode2HelpTextProvider":5561,"rtc/plugins/richtext/export/RichTextNode2HelpText":5562,"rtc/plugins/richtext/export/RichTextNode2HTMLProvider":5563,"rtc/plugins/richtext/export/RichTextNode2HTML":5564,"rtc/plugins/richtext/export/RichTextNode2MProvider":5565,"rtc/plugins/richtext/export/RichTextNode2M":5566,"rtc/plugins/richtext/export/RichTextNode2LaTeXProvider":5567,"rtc/plugins/richtext/export/RichTextNode2LaTeX":5568,"rtc/plugins/richtext/export/RichTextNode2XSLFOProvider":5569,"rtc/plugins/richtext/export/RichTextNode2XSLFO":5570,"rtc/plugins/richtext/export/RichTextParagraphNode2MProvider":5571,"rtc/plugins/richtext/export/RichTextParagraphNode2M":5572,"rtc/plugins/richtext/export/RichTextParagraphNode2DOCXProvider":5573,"rtc/plugins/richtext/export/RichTextParagraphNode2DOCX":5574,"rtc/plugins/richtext/export/HeadingNode2DOCXProvider":5575,"rtc/plugins/richtext/export/HeadingNode2DOCX":5576,"rtc/plugins/richtext/export/RichTextDocxSerializerProvider":5577,"rtc/plugins/richtext/export/RichTextParagraphNode2LaTeXProvider":5578,"rtc/plugins/richtext/export/RichTextParagraphNode2LaTeX":5579,"rtc/plugins/richtext/view/RichTextCoordinateConverterProvider":5580,"rtc/plugins/richtext/view/RichTextCoordinateConverter":5581,"rtc/plugins/richtext/view/RichTextRangeConverterProvider":5582,"rtc/plugins/richtext/view/RichTextRangeConverter":5583,"rtc/view/rangeconverter/base/AbstractRangeConverter":5584,"rtc/plugins/richtext/RichTextNodeInsertionRulesProvider":5585,"rtc/plugins/richtext/RichTextNodeInsertionRules":5586,"rtc/plugins/richtext/RichTextParagraphInsertionRulesProvider":5587,"rtc/plugins/richtext/RichTextParagraphInsertionRules":5588,"rtc/plugins/richtext/view/HeadingLayouterProvider":5589,"rtc/plugins/richtext/view/HeadingLayouter":5590,"rtc/plugins/richtext/view/RichTextLayouterProvider":5591,"rtc/plugins/richtext/view/RichTextParagraphLayouterProvider":5592,"rtc/plugins/richtext/view/RichTextParagraphLayouter":5593,"rtc/plugins/richtext/nodes/inner/RichTextParagraphNodeContentConverterProvider":5594,"rtc/plugins/richtext/nodes/inner/HeadingNodeContentConverterProvider":5595,"rtc/plugins/richtext/nodes/inner/HeadingNodeContentConverter":5596,"rtc/plugins/richtext/nodes/leaf/RichTextNodeContentConverterProvider":5597,"rtc/plugins/richtext/nodes/leaf/RichTextNodeContentConverter":5598,"rtc/plugins/export/docbookxml/PlainTextNode2DocBookXMLProvider":5599,"rtc/plugins/export/docbookxml/PlainTextNode2DocBookXML":5600,"rtc/plugins/export/xslfo/PlainTextNode2XSLFOProvider":5601,"rtc/plugins/export/xslfo/PlainTextNode2XSLFO":5602,"rtc/plugins/export/docx/PlainTextDocxSerializerProvider":5603,"rtc/plugins/export/docx/PlainTextDocxSerializer":5604,"rtc/model/io/serializers/providers/nodes/RichTextSerializerProvider":5605,"rtc/model/io/serializers/providers/containers/HeadingContainerSerializerProvider":5606,"rtc/model/io/serializers/containers/HeadingContainerSerializer":5607,"rtc/model/io/serializers/providers/containers/RichTextContainerSerializerProvider":5608,"rtc/plugins/tableofcontents/TableOfContentsProvider":5609,"rtc/plugins/tableofcontents/TableOfContents":5610,"rtc/plugins/tableofcontents/TableOfContentsCreator":5611,"rtc/plugins/tableofcontents/TableOfContentsUtilities":5612,"rtc/plugins/tableofcontents/TableOfContentsContainerInsertionRulesProvider":5613,"rtc/plugins/tableofcontents/TableOfContentsContainerInsertionRules":5614,"rtc/plugins/tableofcontents/TableOfContentsHeadingNodeConversionRulesProvider":5615,"rtc/plugins/tableofcontents/TableOfContentsHeadingNodeConversionRules":5616,"rtc/plugins/tableofcontents/TableOfContentsListConversionRulesProvider":5617,"rtc/plugins/tableofcontents/TableOfContentsListConversionRules":5618,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2DocBookXMLProvider":5619,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2DocBookXML":5620,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2HelpTextProvider":5621,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2HelpText":5622,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2HTMLProvider":5623,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2HTML":5624,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2MProvider":5625,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2M":5626,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2LaTeXProvider":5627,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2LaTeX":5628,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2XSLFOProvider":5629,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2XSLFO":5630,"rtc/plugins/tableofcontents/export/TableOfContentsHeadingNode2DocBookXMLProvider":5631,"rtc/plugins/tableofcontents/export/TableOfContentsHeadingNode2DocBookXML":5632,"rtc/plugins/tableofcontents/export/TableOfContentsHeadingNode2XSLFOProvider":5633,"rtc/plugins/tableofcontents/export/TableOfContentsHeadingNode2XSLFO":5634,"rtc/plugins/tableofcontents/export/TableOfContentsList2XSLFOProvider":5635,"rtc/plugins/tableofcontents/export/TableOfContentsList2XSLFO":5636,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2DOCXProvider":5637,"rtc/plugins/tableofcontents/export/TableOfContentsContainer2DOCX":5638,"rtc/plugins/tableofcontents/export/TableOfContentsHeadingDocxSerializerProvider":5639,"rtc/plugins/tableofcontents/export/TableOfContentsListDocxSerializerProvider":5640,"rtc/plugins/tableofcontents/export/TableOfContentsListDocxSerializer":5641,"rtc/plugins/tableofcontents/view/TableOfContentsLayouterProvider":5642,"rtc/plugins/tableofcontents/view/TableOfContentsLayouter":5643,"rtc/plugins/tableofcontents/view/TableOfContentsHeadingNodeLayouterProvider":5644,"rtc/plugins/tableofcontents/view/TableOfContentsHeadingNodeLayouter":5645,"rtc/plugins/tableofcontents/view/TableOfContentsContainerLayouterProvider":5646,"rtc/plugins/tableofcontents/view/TableOfContentsContainerLayouter":5647,"rtc/plugins/tableofcontents/model/TableOfContentsContainerContentConverterProvider":5648,"rtc/plugins/tableofcontents/model/TableOfContentsContainerContentConverter":5649,"rtc/plugins/tableofcontents/model/TableOfContentsHeadingNodeContentConverterProvider":5650,"rtc/plugins/tableofcontents/model/TableOfContentsHeadingNodeContentConverter":5651,"rtc/plugins/tableofcontents/model/TableOfContentsListContentConverterProvider":5652,"rtc/plugins/tableofcontents/model/TableOfContentsListContentConverter":5653,"rtc/plugins/tableofcontents/view/TableOfContentsListCoordinateConverterProvider":5654,"rtc/plugins/tableofcontents/view/TableOfContentsListCoordinateConverter":5655,"rtc/plugins/tableofcontents/view/TableOfContentsContainerCoordinateConverterProvider":5656,"rtc/plugins/tableofcontents/view/TableOfContentsContainerCoordinateConverter":5657,"rtc/plugins/tableofcontents/view/TableOfContentsHeadingNodeCoordinateConverterProvider":5658,"rtc/plugins/tableofcontents/view/TableOfContentsHeadingNodeCoordinateConverter":5659,"rtc/plugins/tableofcontents/export/TableOfContentsList2DocBookXMLProvider":5660,"rtc/plugins/tableofcontents/export/TableOfContentsList2DocBookXML":5661,"rtc/model/io/serializers/providers/containers/TableOfContentsContainerSerializerProvider":5662,"rtc/model/io/serializers/containers/TableOfContentsContainerSerializer":5663,"rtc/model/io/serializers/providers/containers/TableOfContentsHeadingSerializerProvider":5664,"rtc/model/io/serializers/providers/containers/TableOfContentsListSerializerProvider":5665,"rtc/plugins/export/html/HTMLWithMExporterProvider":5666,"rtc/plugins/export/html/HTMLWithMExporter":5667,"rtc/plugins/language/matlab/sections/InsertSectionProvider":5668,"rtc/plugins/language/matlab/sections/InsertSection":5669,"livecode_saveload/plugin/LiveCodeWithOutputsSaveLoadProvider":5670,"livecode_saveload/plugin/LiveCodeSaveLoadProvider":5671,"livecode_saveload/plugin/LiveCodeWithOutputsSaveLoad":5672,"livecode_features/plugin/embeddedoutputs/ClearOutputsFailSafeProvider":5673,"livecode_features/plugin/embeddedoutputs/ClearOutputsFailSafe":5674,"livecode_features/plugin/print/LiveEditorPrintProvider":5675,"livecode_features/plugin/print/LiveEditorPrint":5676,"livecode_features/plugin/ValidScriptFileTypeNotifierProvider":5677,"livecode_features/plugin/ValidScriptFileTypeNotifier":5678,"livecode_features/plugin/LiveEditorHTMLGeneratorProvider":5679,"livecode_features/plugin/LiveEditorHTMLGenerator":5680,"livecode_features/plugin/LiveEditorRTFGeneratorProvider":5681,"livecode_features/plugin/LiveEditorRTFGenerator":5682,"livecode_features/plugin/ForwardCompatibilityHandlerProvider":5683,"livecode_features/l10n/nls/ja-jp/liveeditor":5684,"livecode_features/l10n/nls/zh-cn/liveeditor":5685,"livecode_features/l10n/nls/ko-kr/liveeditor":5686,"livecode_features/l10n/nls/liveeditor":5687,"livecode_features/plugin/MatlabMobileForwardCompatabilityHandlerProvider":5688,"livecode_features/plugin/DisableFunctionsClassesHandlerProvider":5689,"livecode_features/plugin/DisableFunctionsClassesHandler":5690,"livecode_features/plugin/SmoothScrollingPreferenceProvider":5691,"livecode_features/plugin/SmoothScrollingPreference":5692,"livecode_features/plugin/figure/FigureToolstripManagerProvider":5693,"livecode_features/plugin/figure/FigureToolstripManager":5694,"livecode_features/plugin/figure/FigureFactoryProvider":5695,"livecode_features/plugin/figure/FigureFactory":5696,"MW/componentframework/UIBuilderMLDriven":5697,"MW/componentframework/ControllerManager":5698,"MW/componentframework/controllers/DijitControllerMixin":5699,"uicomponents_plugin_uifigure/ComponentSetManifest":5700,"MW/componentframework/manifest/ComponentManifest":5701,"MW/componentframework/attribute/Property":5702,"MW/componentframework/attribute/Event":5703,"visualcomponents/widgetview/standardcomponents/PushButton":5704,"visualcomponents/widgetview/standardcomponents/customdijit/PushButton":5705,"gbtshared/mixins/controller/ComponentSizeLocationController":5706,"gbtshared/mixins/controller/ComponentLayoutInterface":5707,"gbtshared/strategies/DefaultPositionStrategy":5708,"MW/componentframework/controllers/PassThroughEventDispatcher":5709,"MW/componentframework/controllers/EventDispatcher":5710,"gbtshared/util/RendererSupport":5711,"gbtshared/util/FontPropertiesSupport":5712,"gbtshared/mixins/controller/InteractionKeyController":5713,"gbtshared/mixins/controller/EnableController":5714,"visualcomponents/widgetview/standardcomponents/RadioButton":5715,"visualcomponents/widgetview/standardcomponents/customdijit/RadioButton":5716,"visualcomponents/widgetview/uicontrolredirectstrategies/RadioButtonRedirectStrategy":5717,"visualcomponents/widgetview/standardcomponents/CheckBox":5718,"visualcomponents/widgetview/standardcomponents/customdijit/CheckBox":5719,"visualcomponents/widgetview/standardcomponents/TextField":5720,"visualcomponents/widgetview/standardcomponents/customdijit/TextField":5721,"visualcomponents/widgetview/standardcomponents/TextArea":5722,"visualcomponents/widgetview/standardcomponents/customdijit/TextArea":5723,"visualcomponents/widgetview/standardcomponents/NumberField":5724,"visualcomponents/resources/uicomponents/core_js/nls/ja-jp/WidgetView":5725,"visualcomponents/resources/uicomponents/core_js/nls/ko-kr/WidgetView":5726,"visualcomponents/resources/uicomponents/core_js/nls/zh-cn/WidgetView":5727,"visualcomponents/resources/uicomponents/core_js/nls/WidgetView":5728,"visualcomponents/widgetview/standardcomponents/customdijit/NumberTextBox":5729,"visualcomponents/widgetview/standardcomponents/customdijit/_TextBoxMixin":5730,"visualcomponents/widgetview/standardcomponents/customdijit/_NumberTextBoxMixin":5731,"visualcomponents/widgetview/standardcomponents/customdijit/_NumberFieldStrategyModules":5732,"dojo/text!visualcomponents/widgetview/standardcomponents/customdijit/templates/NumberTextBox.html":5733,"visualcomponents/widgetview/standardcomponents/customdijit/_HorizontallyAlignableMixin":5734,"visualcomponents/widgetview/standardcomponents/AbstractNumberField":5735,"visualcomponents/widgetview/standardcomponents/Label":5736,"visualcomponents/widgetview/standardcomponents/customdijit/Label":5737,"visualcomponents/widgetview/standardcomponents/customdijit/HTMLLabel":5738,"visualcomponents/widgetview/standardcomponents/mixins/HorizontalClippingController":5739,"visualcomponents/widgetview/standardcomponents/customdijit/TexLabel":5740,"visualcomponents/widgetview/standardcomponents/Slider":5741,"visualcomponents/widgetview/standardcomponents/customdijit/HorizontalSlider":5742,"visualcomponents/widgetview/standardcomponents/customdijit/VerticalSlider":5743,"mw-slider/VerticalSlider":5744,"gbtshared/strategies/SliderPositionStrategy":5745,"visualcomponents/widgetview/standardcomponents/DropDown":5746,"visualcomponents/widgetview/standardcomponents/customdijit/ComboboxDropdown":5747,"visualcomponents/widgetview/standardcomponents/ListBox":5748,"visualcomponents/widgetview/standardcomponents/customdijit/ListBox":5749,"visualcomponents/widgetview/standardcomponents/ToggleButton":5750,"visualcomponents/widgetview/standardcomponents/customdijit/ToggleButton":5751,"visualcomponents/widgetview/standardcomponents/GroupedToggleButton":5752,"visualcomponents/widgetview/standardcomponents/customdijit/GroupedToggleButton":5753,"visualcomponents/widgetview/standardcomponents/Spinner":5754,"visualcomponents/widgetview/standardcomponents/customdijit/Spinner":5755,"visualcomponents/widgetview/standardcomponents/CheckBoxTreeController":5756,"mw-data-model/tree/impl/_expandCollapseToggle":5757,"mw-data-model/tree/impl/_treeParentNodeStore":5758,"mw-data-model/tree/utils/cacheImpl/StringCache":5759,"mw-data-model/tree/utils/cacheImpl/MapCache":5760,"mw-data-model/tree/impl/_search":5761,"mw-data-model/tree/impl/_sortTree":5762,"mw-data-model/treeTable/impl/_sortTreeTable":5763,"mw-data-model/tree/utils/IndexCache":5764,"mw-data-model/tree/impl/_treeFilter":5765,"mw-data-model/impl/_metaData/_OrderedRules":5766,"mw-data-model/impl/_metaData/_HierarchicalOrderedRules":5767,"mw-data-model/utils/_criteriaUtils":5768,"mw-data-model/table/impl/_sortTable":5769,"mw-data-model/table/impl/_filter":5770,"mw-data-model/table/impl/_Headers":5771,"mw-data-model/treeTable/_TreeTableDataStore":5772,"mw-data-model/treeTable/impl/_ArrayOfArraysStore":5773,"mw-data-model/treeTable/impl/_treeTableFilter":5774,"mw-data-model/treeTable/impl/_ArrayOfObjectsStore":5775,"mw-data-model/treeTable/impl/_Group":5776,"visualcomponents/widgetview/standardcomponents/customdijit/Tree":5777,"mw-tree/utils/ViewEventHandlers":5778,"mw-tree/utils/MouseCodeEnum":5779,"mw-tree/view/DesignTimeEventsConfig":5780,"mw-tree/view/TriStateCheckBox":5781,"mw-tristate-checkbox/enums/KeyCodeEnum":5782,"mw-tristate-checkbox/enums/TriStateEnum":5783,"mw-tristate-checkbox/template/TristateCheckboxTemplate":5784,"mw-tree/plugins/checkboxTree/CheckboxTree":5785,"mw-tree/adaptors/CheckboxTreeAdaptor":5786,"mw-tree/plugins/contextMenu/ContextMenu":5787,"mw-tree/adaptors/ContextMenuAdaptor":5788,"mw-tree/plugins/dnd/impl/AutoScroll":5789,"mw-tree/plugins/dnd/ReorderUtility":5790,"mw-tree/plugins/filter/Filter":5791,"mw-tree/adaptors/FilterAdaptor":5792,"mw-tree/plugins/focus/DesignTimeFocus":5793,"mw-tree/adaptors/FocusAdaptor":5794,"mw-tree/plugins/search/Search":5795,"mw-tree/adaptors/SearchAdaptor":5796,"mw-tree/plugins/selection/SingleNodeSelection":5797,"mw-tree/adaptors/RangeSelection":5798,"mw-tree/plugins/selection/MultipleNodeSelection":5799,"mw-tree/plugins/scrollsync/ScrollSync":5800,"mw-tree/adaptors/ScrollSyncAdaptor":5801,"mw-tree/view/TreeDisclosureNode":5802,"mw-tree/view/TreeNode":5803,"mw-tree/view/Gutters":5804,"mw-tree/view/DataTip":5805,"mw-tree/view/TreeContainer":5806,"mw-tree/view/TreeRenderer":5807,"mw-tree/renderers/IconLabelRenderer":5808,"mw-tree/renderers/utils/RendererUtils":5809,"mw-tree/functional/FunctionalUtils":5810,"mw-tree/view/EditableTreeView":5811,"mw-tree/view/EditableTreeBuilder":5812,"mw-tree/view/TreeEditor":5813,"mw-tree/controller/edit/EditController":5814,"mw-tree/controller/TreeNodeController":5815,"mw-tree/controller/navigation/KeyController":5816,"mw-tree/controller/navigation/TreeNodeKeyNavigation":5817,"mw-tree/controller/navigation/ActiveNodeHandler":5818,"mw-tree/controller/scrolling/ScrollController":5819,"mw-tree/controller/actions/ActionController":5820,"mw-tree/controller/actions/DeleteActionImpl":5821,"mw-tree/controller/interactive/InteractiveController":5822,"mw-data-model/impl/_PagedDataModel":5823,"mw-tree/viewModel/ViewModel":5824,"mw-tree/viewModel/LinkedList":5825,"mw-tree/viewModel/DataMapper":5826,"mw-tree/viewModel/Row":5827,"mw-tree/viewModel/_RankMetaData":5828,"mw-tree/editors/EditorEnum":5829,"mw-tree/editors/EditorDecorator":5830,"mw-tree/editors/DesignTimeEditor":5831,"mw-tree/viewModel/DataEnum":5832,"visualcomponents/widgetview/standardcomponents/DatePickerController":5833,"visualcomponents/widgetview/standardcomponents/mixins/DatePickerInteractionController":5834,"visualcomponents/widgetview/standardcomponents/customdijit/DatePicker":5835,"mw-datepicker/Calendar":5836,"mw-datepicker/utils/GregorianResources":5837,"mw-datepicker/gregorian/nls/root/gregorian":5838,"mw-datepicker/gregorian/nls/ar/gregorian":5839,"mw-datepicker/gregorian/nls/bs/gregorian":5840,"mw-datepicker/gregorian/nls/ca/gregorian":5841,"mw-datepicker/gregorian/nls/cs/gregorian":5842,"mw-datepicker/gregorian/nls/da/gregorian":5843,"mw-datepicker/gregorian/nls/de/gregorian":5844,"mw-datepicker/gregorian/nls/el/gregorian":5845,"mw-datepicker/gregorian/nls/en/gregorian":5846,"mw-datepicker/gregorian/nls/en-au/gregorian":5847,"mw-datepicker/gregorian/nls/en-ca/gregorian":5848,"mw-datepicker/gregorian/nls/en-gb/gregorian":5849,"mw-datepicker/gregorian/nls/es/gregorian":5850,"mw-datepicker/gregorian/nls/fi/gregorian":5851,"mw-datepicker/gregorian/nls/fr/gregorian":5852,"mw-datepicker/gregorian/nls/fr-ch/gregorian":5853,"mw-datepicker/gregorian/nls/he/gregorian":5854,"mw-datepicker/gregorian/nls/hr/gregorian":5855,"mw-datepicker/gregorian/nls/hu/gregorian":5856,"mw-datepicker/gregorian/nls/it/gregorian":5857,"mw-datepicker/gregorian/nls/ja/gregorian":5858,"mw-datepicker/gregorian/nls/ja-jp/gregorian":5859,"mw-datepicker/gregorian/nls/ko/gregorian":5860,"mw-datepicker/gregorian/nls/ko-kr/gregorian":5861,"mw-datepicker/gregorian/nls/mk/gregorian":5862,"mw-datepicker/gregorian/nls/nb/gregorian":5863,"mw-datepicker/gregorian/nls/nl/gregorian":5864,"mw-datepicker/gregorian/nls/pl/gregorian":5865,"mw-datepicker/gregorian/nls/pt/gregorian":5866,"mw-datepicker/gregorian/nls/pt-pt/gregorian":5867,"mw-datepicker/gregorian/nls/ro/gregorian":5868,"mw-datepicker/gregorian/nls/ru/gregorian":5869,"mw-datepicker/gregorian/nls/sk/gregorian":5870,"mw-datepicker/gregorian/nls/sl/gregorian":5871,"mw-datepicker/gregorian/nls/sr/gregorian":5872,"mw-datepicker/gregorian/nls/sv/gregorian":5873,"mw-datepicker/gregorian/nls/th/gregorian":5874,"mw-datepicker/gregorian/nls/tr/gregorian":5875,"mw-datepicker/gregorian/nls/zh/gregorian":5876,"mw-datepicker/gregorian/nls/zh-cn/gregorian":5877,"mw-datepicker/gregorian/nls/zh-hant/gregorian":5878,"mw-datepicker/gregorian/nls/zh-hk/gregorian":5879,"mw-datepicker/gregorian/nls/zh-tw/gregorian":5880,"dojo/text!mw-datepicker/templates/Calendar.html":5881,"dojo/i18n!mw-datepicker/l10n/nls/CalendarResources":5882,"mw-datepicker/l10n/nls/ja-jp/CalendarResources":5883,"mw-datepicker/l10n/nls/zh-cn/CalendarResources":5884,"mw-datepicker/l10n/nls/ko-kr/CalendarResources":5885,"mw-datepicker/l10n/nls/CalendarResources":5886,"dojo/text!mw-datepicker/templates/DatePicker.html":5887,"dojo/i18n!mw-datepicker/l10n/nls/DatePickerResources":5888,"mw-datepicker/l10n/nls/ja-jp/DatePickerResources":5889,"mw-datepicker/l10n/nls/zh-cn/DatePickerResources":5890,"mw-datepicker/l10n/nls/ko-kr/DatePickerResources":5891,"mw-datepicker/l10n/nls/DatePickerResources":5892,"visualcomponents/widgetview/DateUtils":5893,"visualcomponents/widgetview/standardcomponents/ImageController":5894,"visualcomponents/widgetview/standardcomponents/HTMLController":5895,"visualcomponents/widgetview/standardcomponents/customdijit/IFrame":5896,"dojo/text!visualcomponents/widgetview/standardcomponents/customdijit/templates/IFrame.html":5897,"visualcomponents/widgetview/standardcomponents/HyperlinkController":5899,"visualcomponents/widgetview/standardcomponents/customdijit/Hyperlink":5900,"visualcomponents/widgetview/standardcomponents/ProgressIndicatorController":5901,"visualcomponents/widgetview/standardcomponents/customdijit/ProgressIndicator":5902,"visualcomponents/widgetview/standardcomponents/CircularProgressIndicatorController":5903,"visualcomponents/widgetview/standardcomponents/customdijit/CircularProgressIndicator":5904,"visualcomponents/widgetview/standardcomponents/ColorPickerController":5905,"visualcomponents/widgetview/standardcomponents/customdijit/ColorPicker":5906,"mw-colorpicker/ColorPickerDropDown":5907,"visualcomponents/widgetview/standardcomponents/PasswordFieldController":5908,"visualcomponents/widgetview/standardcomponents/customdijit/PasswordField":5909,"visualcomponents/widgetview/hmicomponents/SemicircularGauge":5910,"visualcomponents/widgetview/hmicomponents/CircularGauge":5915,"visualcomponents/widgetview/hmicomponents/NinetyDegreeGauge":5917,"visualcomponents/widgetview/hmicomponents/LinearGauge":5922,"visualcomponents/widgetview/hmicomponents/HorizontalLinearGauge":5923,"dojo/text!visualcomponents/widgetview/hmicomponents/templates/LinearGauge.html":5924,"visualcomponents/widgetview/hmicomponents/mixins/DijitAdapterForLinearGauge":5925,"visualcomponents/widgetview/hmicomponents/VerticalLinearGauge":5926,"visualcomponents/widgetview/hmicomponents/Lamp":5927,"visualcomponents/widget/Lamp":5928,"visualcomponents/widget/_SvgWidgetBase":5929,"visualcomponents/widgetview/hmicomponents/ContinuousKnob":5931,"visualcomponents/widgetview/hmicomponents/mixins/view/KnobLayoutableMixin":5932,"visualcomponents/widgetview/hmicomponents/DiscreteKnob":5934,"visualcomponents/widgetview/hmicomponents/RockerSwitch":5936,"visualcomponents/widgetview/hmicomponents/mixins/view/SwitchLayoutableMixin":5937,"visualcomponents/widgetview/hmicomponents/SliderSwitch":5940,"visualcomponents/widgetview/hmicomponents/VerticalSliderSwitch":5941,"visualcomponents/widgetview/hmicomponents/HorizontalSliderSwitch":5942,"visualcomponents/widgetview/hmicomponents/ToggleSwitch":5945,"componentframework/controller/EventCoalescingEventDispatcher":5948,"componentframework/controller/EventDispatcher":5949,"gbtshared/layout/autolayoutcomponentcontroller/ContinuousKnobLayoutableController":5950,"gbtshared/layout/autolayoutcomponentcontroller/DiscreteKnobLayoutableController":5951,"gbtshared/strategies/LayoutStrategyMap":5952,"gbtshared/strategies/AbsoluteLayoutStrategy":5953,"gbtshared/strategies/GridLayoutStrategy":5954,"gbtshared/mixins/controller/LayoutableControllerForInteractiveTickComponents":5955,"gbtshared/mixins/view/MWTooltipMixin":5956,"uitest/controller/mixin/ViewReady":5957,"uitest/controller/UITestButtonController":5958,"uitest/controller/UITestCheckBoxController":5959,"uitest/controller/UITestContinuousKnobController":5960,"uitest/controller/UITestDatePickerController":5961,"uitest/controller/UITestDiscreteKnobController":5962,"uitest/controller/UITestDropDownController":5963,"uitest/controller/UITestHyperlinkController":5964,"uitest/controller/UITestImageController":5965,"uitest/controller/UITestLabelController":5966,"uitest/controller/UITestListBoxController":5967,"uitest/controller/UITestNumberFieldController":5968,"uitest/controller/UITestRadioButtonController":5969,"uitest/controller/UITestSliderController":5970,"uitest/controller/UITestSpinnerController":5971,"uitest/controller/UITestSwitchController":5972,"uitest/controller/UITestTextAreaController":5973,"uitest/controller/UITestTextFieldController":5974,"uitest/controller/UITestTreeController":5975,"gbtcomponents_plugin_uifigure/ComponentSetManifest":5976,"gbtcomponents/controller/FigureController":5977,"gbtcomponents/controller/BaseFigureController":5978,"gbtshared/mixins/controller/ViewModelSynchronizer":5979,"gbtcomponents/view/FigureLayoutContainer":5980,"dijit/layout/LayoutContainer":5981,"gbtcomponents/view/Figure":5982,"graphics/system/GLInfo":5983,"graphics/system/GLBlacklist":5984,"graphics/system/MWOffscreenCanvas":5985,"graphics/services/MinChannelMessageService":5986,"graphics/services/EventPublisher":5987,"graphics/services/EnvironmentService":5988,"graphics/MWSG/RendererInfo":5989,"graphics/MWSG/transparency/ComposeTexturesCommand":5990,"graphics/system/FontMap":5991,"graphics/system/detail/FontUtils":5992,"graphics/system/EnvironmentData":5993,"graphics/MWSG/CanvasACTResponder":5994,"graphics/services/TestUtils":5995,"graphics/SceneWidgets/SceneView":5996,"graphics/MWSG/json_scenetree":5997,"graphics/MWSG/shader/WebGLShaderFactory":5998,"graphics/MWSG/shader/webgl_shader":5999,"graphics/MWSG/shader/WebGLShaderGenerator":6e3,"graphics/MWSG/TextPlainHandler":6001,"graphics/MWSG/TextTeXHandler":6002,"graphics/MWSG/ShaderConfigFcns/DrawTexturesForDebugShaderConfigFcns":6003,"graphics/MWSG/transparency/DepthPeelerDrawer":6004,"graphics/MWSG/ShaderConfigFcns/DepthPeelingPassShaderConfigFcns":6005,"graphics/MWSG/transparency/TailBlendDrawer":6006,"graphics/MWSG/transparency/DepthPeelerDebugShowLayer":6007,"graphics/MWSG/transparency/ColorTexturesResourceFactory":6008,"graphics/MWSG/transparency/DepthTexturesResourceFactory":6009,"graphics/MWSG/transparency/DebugDepthTexturesResourceFactory":6010,"graphics/MWSG/postprocessingeffects/FXAADrawer":6011,"graphics/MWSG/ShaderConfigFcns/FXAADrawTexturesShaderConfigFcns":6012,"graphics/MWSG/shader/UseFragCoordForClippingShaderSourceProvider":6013,"graphics/MWSG/shader/ClippingPositionShaderSourceProvider":6014,"graphics/MWSG/shader/ClippingPositionShaderSourceProvider_ModelSpace":6015,"graphics/MWSG/shader/PositionShaderSourceProvider":6016,"graphics/MWSG/shader/WideLinesPositionShaderSourceProvider":6017,"graphics/MWSG/shader/WideLinesPositionShaderSourceProvider_V2":6018,"graphics/MWSG/shader/WideLinesClippingPositionShaderSourceProvider_V2":6019,"graphics/MWSG/shader/ClippingShaderSourceProvider":6020,"graphics/MWSG/shader/PolarClippingShaderSourceProvider":6021,"graphics/MWSG/shader/StippleShaderSourceProvider":6022,"graphics/MWSG/shader/Texture1DShaderSourceProvider":6023,"graphics/MWSG/shader/Texture2DShaderSourceProvider":6024,"graphics/MWSG/shader/DepthTexture2DShaderSourceProvider":6025,"graphics/MWSG/shader/VertexColorShaderSourceProvider":6026,"graphics/MWSG/shader/MarkerConstantColorShaderSourceProvider":6027,"graphics/MWSG/shader/AnchorPointPositionShaderSourceProvider":6028,"graphics/MWSG/shader/AnchorPointClippingShaderSourceProvider_3dBox":6029,"graphics/MWSG/shader/AnchorPointClippingShaderSourceProvider_ScissorRect":6030,"graphics/MWSG/shader/AnchorPointClippingShaderSourceProvider_Polar":6031,"graphics/MWSG/shader/ConstantColorShaderSourceProvider":6032,"graphics/MWSG/shader/ImagePositionShaderSourceProvider":6033,"graphics/MWSG/shader/LineJoinsPositionShaderSourceProvider":6034,"graphics/MWSG/shader/LineCapsPositionShaderSourceProvider":6035,"graphics/MWSG/shader/PickShaderSourceProvider":6036,"graphics/MWSG/shader/DepthRenderShaderSourceProvider":6037,"graphics/MWSG/shader/DiscardFragUsingDepthTextureShaderSourceProvider":6038,"graphics/MWSG/shader/LightingGouraudShaderSourceProvider":6039,"graphics/MWSG/shader/FXAAShaderSourceProvider":6040,"graphics/MWSG/shader/AlphaMultiplierShaderSourceProvider":6041,"graphics/MWSG/Webgl20Strategy":6042,"graphics/MWSG/shader/WebGL20ShaderOpts":6043,"graphics/MWSG/shader/AnchorPointPositionShaderSourceProvider_WebGL2":6044,"graphics/MWSG/shader/MarkerPickShaderSourceProvider":6045,"graphics/MWSG/Webgl20ShaderHeaderStrategy":6046,"graphics/MWSG/Transforms":6047,"graphics/MWSG/Lights":6048,"graphics/MWSG/PickRenderPass":6049,"graphics/MWSG/StateSet":6050,"graphics/MWSG/draw_fcns":6051,"graphics/MWSG/cull_fcns":6052,"graphics/MWSG/CullUtils":6053,"graphics/MWSG/create_fcns":6054,"graphics/MWSG/traverse_fcns":6055,"graphics/MWSG/dependency_fcns":6056,"graphics/MWSG/RenderTimes":6057,"graphics/MWSG/PickResult":6058,"graphics/MWSG/Picker":6059,"graphics/MWSG/PickProperties":6060,"graphics/MWSG/bounding_box_fcns":6061,"graphics/MWSG/BoundingBox":6062,"graphics/axes/SceneTreeAxesControl":6063,"graphics/axes/AxesStructureMixin":6064,"graphics/axes/GridControl":6065,"graphics/axes/RulerControl":6066,"graphics/axes/BaselineControl":6067,"graphics/axes/AxesControlSceneTreeVisitor":6068,"graphics/axes/NullValueAxisDecoration":6069,"graphics/axes/TextDecorationControl":6070,"graphics/graphicscontrol/CameraControl":6071,"graphics/MWSG/CommandProcessor":6072,"dojo/text!graphics/SceneWidgets/templates/SceneView.html":6073,"graphics/MWSG/API/SceneTreeController":6074,"graphics/MWSG/NearPointUtils":6075,"graphics/MWSG/Vector3":6076,"graphics/MWSG/CameraUtils":6077,"graphics/MWSG/API/GroupAPI":6078,"graphics/MWSG/API/LeafAPI":6079,"graphics/SceneWidgets/ImageView":6080,"dojo/text!graphics/SceneWidgets/templates/ImageView.html":6081,"graphics/GraphicsInteractions/ScenePickingController":6082,"graphics/GraphicsInteractions/ImageMouseController":6083,"graphics/GraphicsInteractions/NOPController":6084,"graphics/services/BinaryDataReceiver":6085,"mw-binarystream/BinaryStream":6086,"mw-binarystream/impl/BinaryStreamTransport":6087,"mw-binarystream/impl/BinaryStreamWebSocket":6088,"mw-binarystream/impl/BinaryStreamFraming":6089,"graphics/services/BinaryDataSink":6090,"graphics/graphicscontrol/ControlBase":6091,"graphics/graphicscontrol/AxesControl":6092,"gbtshared/mixins/controller/LayoutableControllerForGraphics":6093,"graphics/graphicscontrol/ServerSideAxesControlStrategy":6094,"graphics/graphicscontrol/ClientSideAxesControlStrategy":6095,"graphics/graphicscontrol/TextControl":6096,"graphics/graphicscontrol/DataTipControl":6097,"graphics/graphicscontrol/ServerSideDataTipControlStrategy":6098,"graphics/graphicscontrol/ClientSideDataTipControlStrategy":6099,"graphics/graphicscontrol/AxesToolbarControl":6100,"graphics/graphicscontrol/ServerSideAxesToolbarStrategy":6101,"graphics/graphicscontrol/ClientSideAxesToolbarStrategy":6102,"graphics/graphicscontrol/LayoutableChildren":6103,"graphics/graphicscontrol/InteractionsManager":6104,"graphics/InteractionObjects/ZoomInteraction":6105,"graphics/InteractionObjects/RegionZoomInteraction":6106,"graphics/InteractionObjects/RegionZoomAffordanceInteraction":6107,"graphics/interaction/Transforms":6108,"graphics/InteractionObjects/StepZoomInteraction":6109,"graphics/InteractionObjects/PinchZoomInteraction":6110,"graphics/InteractionObjects/PanInteraction":6111,"graphics/InteractionObjects/BoundsHelper":6112,"graphics/InteractionObjects/RotateInteraction":6113,"graphics/InteractionObjects/RectangleEnterExitBaseInteraction":6114,"graphics/InteractionObjects/TextEditInteraction":6115,"graphics/InteractionObjects/GenericInteraction":6116,"graphics/interaction/ActionParser":6117,"graphics/interaction/BaseParser":6118,"graphics/interaction/CursorFactory":6119,"graphics/InteractionObjects/DataTipHoverInteraction":6120,"graphics/InteractionObjects/DataTipDisableInteraction":6121,"graphics/InteractionObjects/AxesToolbarInteraction":6122,"graphics/InteractionObjects/AxesToolbarButtonInteraction":6123,"graphics/MWSG/object_picker":6124,"graphics/MWSG/rectangle_picker":6125,"dojo/text!graphics/SceneWidgets/templates/GraphicsView.html":6126,"gbtcomponents/controller/utils/PointerUtil":6127,"dojo/text!gbtcomponents/view/templates/Figure.html":6128,"gbtcomponents/controller/FigureToolsController":6129,"gbtcomponents/view/FigureToolsContainer":6130,"dojo/text!gbtcomponents/view/templates/FigureToolsContainer.html":6131,"gbtcomponents/view/MenuBarContainer":6132,"dojo/text!gbtcomponents/view/templates/MenuBarContainer.html":6133,"gbtcomponents/view/MenuBar":6134,"dojo/text!gbtcomponents/view/templates/MenuBar.html":6135,"gbtcomponents/view/ToolBarContainer":6136,"dojo/text!gbtcomponents/view/templates/ToolBarContainer.html":6137,"gbtshared/mixins/controller/MnemonicController":6138,"gbtshared/services/UnitsServiceForFigure":6139,"gbtshared/services/ErrorLoggingService":6140,"gbtcomponents/strategy/UIFigureResizableStrategyFactory":6141,"gbtcomponents/strategy/UIFigureBrowserResizableStrategy":6142,"gbtcomponents/strategy/WindowSizeLocationStrategy":6143,"gbtcomponents/strategy/UIFigureCEFResizableStrategy":6144,"gbtshared/util/AssertSupport":6145,"gbtcomponents/strategy/UIFigureMOResizableStrategy":6146,"gbtcomponents/strategy/EmbeddedFigureResizableStrategy":6147,"gbtcomponents/controller/DivFigureControllerCommService":6148,"gbtshared/util/FigurePositionUtil":6149,"gbtcomponents/view/Banner":6150,"gbtshared/mixins/controller/FullScreenController":6151,"gbtshared/dialogs/services/DialogService":6152,"gbtshared/dialogs/services/FileInputService":6153,"gbtshared/dialogs/view/FileInputDialog":6154,"gbtshared/dialogs/view/FileInputDnD":6155,"gbtshared/dialogs/view/FileUploader":6156,"dojo/text!gbtshared/dialogs/view/templates/FileInputDialog.html":6157,"gbtshared/dialogs/services/FileOutputService":6158,"gbtshared/dialogs/view/FileOutputDialog":6159,"dojo/text!gbtshared/dialogs/view/templates/FileOutputDialog.html":6160,"gbtshared/dialogs/services/ProgressDialogService":6161,"gbtshared/dialogs/services/ProgressDialogController":6162,"gbtshared/dialogs/services/HtmlMessage":6163,"gbtshared/dialogs/services/LatexMessage":6164,"gbtshared/util/LatexUtils":6165,"gbtshared/dialogs/services/PlainTextMessage":6166,"gbtshared/services/URLService":6167,"gbtshared/services/AppCaptureService":6168,"gbtshared/services/CommandReceiver":6169,"gbtshared/services/FigureACTResponder":6170,"dojo/i18n!gbtcomponents/resources/uitools/nls/figure":6171,"gbtcomponents/resources/uitools/nls/ja-jp/figure":6172,"gbtcomponents/resources/uitools/nls/ko-kr/figure":6173,"gbtcomponents/resources/uitools/nls/zh-cn/figure":6174,"gbtcomponents/resources/uitools/nls/figure":6175,"gbtshared/mixins/view/TitleMixin":6176,"dojo/text!gbtcomponents/view/templates/Panel.html":6177,"gbtcomponents/controller/ButtonGroupController":6178,"gbtcomponents/controller/TabGroupController":6179,"gbtcomponents/view/TabGroup":6180,"gbtcomponents/controller/TabController":6181,"gbtcomponents/view/Tab":6182,"dojo/text!gbtcomponents/view/templates/Tab.html":6183,"gbtcomponents/controller/MenuController":6184,"gbtshared/strategies/SubMenuStrategy":6185,"gbtshared/strategies/ContextMenuStrategy":6186,"gbtcomponents/controller/ToolbarController":6187,"gbtcomponents/view/Toolbar":6188,"dojo/text!gbtcomponents/view/templates/Toolbar.html":6189,"gbtcomponents/controller/PushToolController":6190,"gbtcomponents/view/ToolSeparator":6191,"gbtcomponents/view/PushTool":6192,"gbtcomponents/controller/ToggleToolController":6193,"gbtcomponents/view/ToggleTool":6194,"gbtcomponents/controller/ContextMenuController":6195,"gbtcomponents/view/ContextMenu":6196,"gbtcomponents/controller/MWTableController":6197,"mw-table/controllers/data/IdController":6198,"mw-table/controllers/events/EventsController":6199,"mw-table/treetable/renderers/IconLabelRenderer":6200,"mw-table/controllers/events/DoubleClickController":6201,"mw-table/functional/Maybe":6202,"mw-table/controllers/columns/ColConfigUtil":6203,"mw-table/controllers/edit/EditControllerProxy":6204,"mw-table/controllers/edit/EditController":6205,"mw-table/controllers/interactive/InteractiveController":6206,"mw-table/controllers/edit/HeaderEditController":6207,"mw-table/controllers/attributes/AttributesController":6208,"mw-table/plugins/focus/CellFocus":6209,"mw-table/controllers/navigation/UnbufferedCellNavigation":6210,"mw-table/controllers/navigation/BufferedCellNavigation":6211,"mw-table/adaptors/FocusAdaptor":6212,"mw-table/plugins/selection/SingleRowSelection":6213,"mw-table/plugins/selection/MultiRowSelection":6214,"mw-table/adaptors/ResizeAdaptor":6215,"mw-table/adaptors/RowHeaderAdaptor":6216,"mw-table/adaptors/DragAndDropAdaptor":6217,"mw-table/adaptors/TableRowDnDService":6218,"mw-table/plugins/menus/HeaderMenu":6219,"mw-table/adaptors/MenuAdaptor":6220,"mw-table/adaptors/SearchAdaptor":6221,"mw-table/adaptors/ClipboardAdaptor":6222,"mw-clipboard/ClipboardService":6223,"mw-clipboard/browser/ClientClipboardService":6224,"mw-clipboard/utils/ClipboardDataUtils":6225,"mw-clipboard/browser/PastePromise":6226,"mw-clipboard/browser/PasteService":6227,"mw-table/controllers/navigation/ActiveCell":6228,"mw-table/adaptors/CellSizingAdaptor":6229,"mw-table/viewmodel/_LinkedList":6230,"mw-table/viewmodel/_DataMapper":6231,"mw-table/viewmodel/_Row":6232,"mw-table/viewmodel/_RankMetaData":6233,"mw-table/view/DataCell":6234,"mw-table/view/ResizeSelectionAffordance":6235,"mw-table/renderers/DefaultRendererComponent":6236,"mw-table/view/utils/ReactHighlight":6237,"mw-table/view/utilcomponent/LoadingComponent":6238,"mw-table/view/InteractiveTableCell":6239,"mw-table/view/EditableTableCell":6240,"mw-table/enums/EditEnum":6241,"mw-table/view/utils/EventDelegator":6242,"mw-table/view/TableView":6243,"mw-table/utils/initialization":6244,"mw-table/enums/ErrorEnum":6245,"mw-table/utils/Registration":6246,"mw-table/lifecycle/LifeCycle":6247,"mw-table/lifecycle/BuildComponents":6248,"mw-table/utils/PropManager":6249,"mw-table/utils/TableHelper":6250,"mw-table/utils/TreeTableHelper":6251,"mw-table/view/ComponentFactory":6252,"mw-table/renderers/MultiLineRenderer":6253,"mw-table/view/ColResizeAffordance":6254,"mw-table/view/SortAffordance":6255,"mw-table/utils/Sort":6256,"mw-table/view/HeaderMenuAffordance":6257,"mw-table/view/DragAffordance":6258,"mw-table/view/utils/AutoScroll":6259,"mw-table/view/utils/TableRowDndUtils":6260,"mw-table/view/utils/TreetableRowDndUtils":6261,"mw-table/view/headers/HierarchicalColumnHeaders":6262,"mw-table/view/SpanningColumnHeader":6263,"mw-table/view/headers/TopLeftAffordanceWithInteraction":6264,"mw-table/view/headers/TopLeftAffordance":6265,"mw-table/view/TableComponent":6266,"mw-table/view/utilcomponent/InsertionLineComponent":6267,"mw-table/view/context/HeaderContextProvider":6268,"mw-table/view/OuterWrapperComponent":6269,"mw-table/view/DisableWrapperComponent":6270,"mw-table/view/RowHeader":6271,"mw-table/view/RowHeaders":6272,"mw-table/view/EditableRowHeader":6273,"mw-table/view/RowHeaderCell":6274,"mw-table/view/IndexCellWithInteraction":6275,"mw-table/view/IndexCell":6276,"mw-table/view/hooks/ScrollNodeIntoView":6277,"mw-table/view/ScrollComponentWithDnDEnabled":6278,"mw-table/view/HeaderRowWithDnDEnabled":6279,"mw-table/view/context/DnDContextProvider":6280,"mw-table/lifecycle/IncomingDataUpdates":6281,"mw-table/lifecycle/Render":6282,"mw-table/lifecycle/InteractionEvents":6283,"mw-table/io/DataSize":6284,"mw-table/io/ViewPortGeom":6285,"datatoolsservices/ActionService/ActionDataService":6286,"datatoolsservices/ActionService/Action":6287,"datatoolsservices/l10n/nls/ja-jp/datatoolsservices":6288,"datatoolsservices/l10n/nls/zh-cn/datatoolsservices":6289,"datatoolsservices/l10n/nls/ko-kr/datatoolsservices":6290,"datatoolsservices/l10n/nls/datatoolsservices":6291,"datatoolsservices/ActionService/Remote/PeerActionDataServiceProvider":6292,"datatoolsservices/ContextMenuService/ContextHandler":6293,"datatoolsservices/ContextMenuService/ActionProviderMixin":6294,"datatoolsservices/ContextMenuService/DatatoolsKeyBindings":6295,"datatoolsservices/ContextMenuService/CheckedActionMenuItem":6296,"datatoolsservices/ContextMenuService/ActionPopupMenuItem":6297,"datatoolsservices/ContextMenuService/UserDefinedActionMenuItem":6298,"datatoolsservices/ContextMenuService/ContextStateHandler":6299,"datatoolsservices/ContextMenuService/MsgServiceContextMenuProvider":6300,"datatoolsservices/ContextMenuService/ContextMenuProvider":6301,"variableeditor/ClientPeerDocument":6302,"variableeditor/_ArgumentsMixin":6303,"variableeditor/views/SummaryBar":6304,"datatoolsservices/constants/TypeConstants":6305,"dojo/text!variableeditor/views/SummaryBar.html":6306,"dojo/text!variableeditor/ClientPeerDocument.html":6307,"variableeditor/ContextUpdateManager":6308,"gbtcomponents/view/Table":6309,"gbtcomponents/controller/utils/TriStateColumnSort":6310,"gbtcomponents/controller/utils/UITableLeftAlignedRenderer":6311,"gbtcomponents/controller/utils/UITableRightAlignedRenderer":6312,"gbtcomponents/controller/utils/UITableRightAlignedEditor":6313,"gbtcomponents/controller/utils/UITableCenterAlignedRenderer":6314,"gbtcomponents/controller/utils/UITableCenterAlignedEditor":6315,"gbtcomponents/controller/utils/MWMetadataStore":6316,"gbtcomponents/controller/utils/MWTableConstructor":6317,"gbtcomponents/controller/utils/SpanRenderer":6319,"gbtcomponents/controller/plugins/SingleColumnSelection":6322,"gbtcomponents/controller/plugins/SingleCellSelection":6323,"gbtcomponents/controller/plugins/MultiColumnSelection":6324,"gbtcomponents/controller/plugins/MultiCellSelection":6325,"gbtcomponents/controller/utils/UITableRangeUtil":6326,"gbtcomponents/controller/ChartController":6327,"gbtcomponents/view/Chart":6328,"dojo/text!gbtcomponents/view/templates/Chart.html":6329,"gbtshared/mixins/controller/LayoutableControllerForUiaxes":6330,"gbtcomponents/controller/GridController":6331,"gbtshared/mixins/controller/ChangingChangedController":6332,"gbtcomponents/view/Grid":6333,"dojo/text!gbtcomponents/view/templates/Grid.html":6334,"gbtcomponents/controller/AccordionController":6335,"gbtcomponents/view/Accordion":6336,"dojo/text!gbtcomponents/view/templates/Accordion.html":6337,"gbtcomponents/controller/AccordionPanelController":6338,"gbtcomponents/view/AccordionPanel":6339,"dojo/text!gbtcomponents/view/templates/AccordionPanel.html":6340,"gbtshared/layout/autolayout/AutoLayout":6341,"gbtshared/layout/autolayout/AutoLayoutGraph":6342,"gbtshared/layout/autolayout/Graph":6343,"gbtshared/layout/autolayout/VertexRelocatorStrategyForGrowing":6344,"gbtshared/layout/autolayout/AbstractPathIterator":6345,"gbtshared/layout/autolayout/VertexRelocatorStrategyForShrinking":6346,"gbtshared/layout/autolayout/AutoLayoutGraphMeasureCalculator":6347,"gbtshared/layout/autolayout/EdgeFactory":6348,"gbtshared/layout/autolayout/ResizableComponentEdge":6349,"gbtshared/layout/autolayout/Edge":6350,"gbtshared/layout/autolayout/ContainerEdge":6351,"gbtshared/layout/autolayout/NonResizableComponentEdge":6352,"gbtshared/layout/autolayout/GapEdge":6353,"gbtshared/layout/autolayout/HorizontalDirection":6354,"gbtshared/layout/autolayout/AutoLayoutVertex":6355,"gbtshared/layout/autolayout/Vertex":6356,"gbtshared/layout/autolayout/VerticalDirection":6357,"gbtshared/layout/autolayout/VertexLocationToPositionConverter":6358,"gbtshared/layout/DefaultLayout":6359,"gbtshared/layout/TabLayoutControllerMixin":6360,"gbtshared/layout/LayoutableTabComponentController":6361,"gbtshared/layout/LayoutableUIChartComponentController":6362,"gbtshared/layout/LayoutableGridComponentController":6363,"gbtshared/mixins/controller/LayoutableControllerForWidgetsNeedingWrapper":6364,"gbtshared/mixins/controller/LayoutableControllerForLayoutManagers":6365,"uitest/controller/UITestContextMenuController":6366,"dojo/i18n!uitest/resources/MATLAB/uiautomation/nls/Driver":6367,"uitest/resources/MATLAB/uiautomation/nls/ja-jp/Driver":6368,"uitest/resources/MATLAB/uiautomation/nls/ko-kr/Driver":6369,"uitest/resources/MATLAB/uiautomation/nls/zh-cn/Driver":6370,"uitest/resources/MATLAB/uiautomation/nls/Driver":6371,"uitest/controller/UITestFigureController":6372,"uitest/UIEventLiaison":6373,"uitest/FigureService":6374,"uitest/UIEventSimulator":6375,"uitest/UIVisualizer":6376,"uitest/Messenger":6377,"uitest/controller/UITestAxesControllerFactory":6378,"uitest/controller/UITestAxesController":6379,"uitest/controller/UITestPolarAxesController":6380,"uitest/controller/UITestTextController":6381,"uitest/controller/UITestMenuController":6382,"uitest/controller/UITestPanelController":6383,"uitest/controller/UITestPushToolController":6384,"uitest/controller/UITestTabGroupController":6385,"uitest/controller/UITestTableController":6386,"uitest/controller/UITestToggleToolController":6387,"aerocomponents_plugin_uifigure/ComponentSetManifest":6388,"aerocomponents/HeadingIndicator":6389,"aerocomponents/ComponentHeading":6390,"aerocomponents/AirspeedIndicator":6392,"aerocomponents/ComponentAirspeedIndicator":6393,"aerocomponents/Altimeter":6395,"aerocomponents/ComponentAltimeter":6396,"aerocomponents/ArtificialHorizon":6398,"aerocomponents/ComponentArtificialHorizon":6399,"aerocomponents/TurnCoordinator":6401,"aerocomponents/ComponentTurnCoordinator":6402,"aerocomponents/ClimbIndicator":6404,"aerocomponents/ComponentClimb":6405,"aerocomponents/EGTIndicator":6407,"aerocomponents/ComponentEGT":6408,"aerocomponents/RPMIndicator":6410,"aerocomponents/ComponentRPM":6411,"aerocomponents_plugin_uifigure/controller/AeroScaleColorController":6413,"gbtclient/FigureContentPane":6414,"gbtclient/EmbeddedFigureManager":6415,"livecode_features/plugin/language/matlab/filetype/LiveEditorFileTypeProvider":6416,"livecode_features/plugin/language/matlab/filetype/LiveEditorFileType":6417,"livecode_features/plugin/liveapps/LiveAppEmbeddableCompletionCustomizerProvider":6418,"livecode_features/plugin/liveapps/LiveAppEmbeddableCompletionCustomizer":6419,"livecode_features/plugin/liveapps/LiveAppUIFigureWidgetFactoryProvider":6420,"livecode_features/plugin/liveapps/LiveAppUIFigureWidgetFactory":6421,"livecode_features/plugin/liveapps/LiveAppUIFigureWidget":6422,"livecode_features/plugin/variableeditor/InteractiveTableOutputHandlerProvider":6423,"livecode_features/plugin/variableeditor/InteractiveTableOutputHandler":6424,"livecode_features/plugin/variableeditor/InteractiveVariablePopoutHandler":6425,"variableeditor_client/DocumentWidget":6426,"variableeditor_client/SummaryBar":6427,"dojo/text!variableeditor_client/SummaryBar.html":6428,"variableeditor_peer/PeerDocument":6430,"variableeditor_peer/PeerDocumentWidget":6431,"rendererseditors/mwTableRenderers/CheckBoxInteractiveRenderer":6432,"dojo/i18n!rendererseditors/l10n/nls/mwTableRenderers":6433,"rendererseditors/l10n/nls/ja-jp/mwTableRenderers":6434,"rendererseditors/l10n/nls/zh-cn/mwTableRenderers":6435,"rendererseditors/l10n/nls/ko-kr/mwTableRenderers":6436,"rendererseditors/l10n/nls/mwTableRenderers":6437,"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer":6438,"rendererseditors/mwTableRenderers/StringRenderer":6439,"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer":6440,"rendererseditors/mwTableRenderers/PlainTextSpanRenderer":6441,"rendererseditors/mwTableRenderers/PlainTextRightAlignedSpanRenderer":6442,"rendererseditors/mwTableRenderers/IconHeaderRenderer":6443,"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer":6444,"rendererseditors/mwTableRenderers/CompositeIconTextRenderer":6445,"rendererseditors/mwTableRenderers/MultiIconDisplayMixin":6446,"rendererseditors/mwTableRenderers/IconTextRenderer":6447,"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer":6448,"rendererseditors/mwTableEditors/TableNumericEditor":6449,"rendererseditors/mwTableEditors/TableCharEditor":6450,"rendererseditors/mwTableEditors/DateTimeEditor":6451,"rendererseditors/mwTableEditors/TableHeaderEditor":6452,"rendererseditors/mwTableEditors/ComboBoxEditorProvider":6453,"rendererseditors/mwTableRenderers/CategoricalFilteringTableRenderer":6454,"variableeditor_client/Data/RendererProvider":6455,"variableeditor_client/Plugins/CellFocus":6456,"variableeditor_client/Plugins/ColumnSort":6457,"variableeditor_client/Plugins/Selection/PlaidSelection":6458,"variableeditor_client/Plugins/Selection/BlockSelection":6459,"variableeditor_client/Plugins/RowHeaders":6460,"variableeditor_client/Plugins/LightWeightGriddedView":6461,"variableeditor_client/Plugins/DoubleClickHandler":6462,"variableeditor_client/Plugins/TableContextBasedPlaidSelection":6463,"variableeditor_client/Plugins/PlaidViewContextHandler":6464,"variableeditor_client/Plugins/InfiniteGrid":6465,"variableeditor_client/Plugins/DragAndDrop":6466,"variableeditor_client/Plugins/SparklineScrollPosition":6467,"variableeditor_client/export/TabularHTMLWriter":6468,"dojo/text!variableeditor_client/Plugins/print/PrintTemplate.html":6469,"variableeditor_client/l10n/nls/ja-jp/VariableEditorStrings":6471,"variableeditor_client/l10n/nls/ko-kr/VariableEditorStrings":6472,"variableeditor_client/l10n/nls/zh-cn/VariableEditorStrings":6473,"variableeditor_client/l10n/nls/VariableEditorStrings":6474,"variableeditor_client/Plugins/print/DomPrint":6475,"variableeditor_client/Plugins/PercentageColumnWidth":6476,"variableeditor_client/Plugins/Brushing":6477,"variableeditor_peer/Plugins/ContextMenuCreation":6478,"variableeditor_peer/l10n/nls/ja-jp/peerarrayviewmodel":6479,"variableeditor_peer/l10n/nls/zh-cn/peerarrayviewmodel":6480,"variableeditor_peer/l10n/nls/ko-kr/peerarrayviewmodel":6481,"variableeditor_peer/l10n/nls/peerarrayviewmodel":6482,"variableeditor_peer/Plugins/StringDisplayPlugin":6484,"variableeditor_peer/Plugins/ColumnResizePaged":6485,"variableeditor_peer/Plugins/ColumnReorder":6486,"dojo/i18n!mw-form/l10n/nls/form":6487,"mw-form/l10n/nls/form":6488,"variableeditor_peer/l10n/nls/ja-jp/FilteringHeaderMenu":6489,"variableeditor_peer/l10n/nls/zh-cn/FilteringHeaderMenu":6490,"variableeditor_peer/l10n/nls/ko-kr/FilteringHeaderMenu":6491,"variableeditor_peer/l10n/nls/FilteringHeaderMenu":6492,"variableeditor_peer/HeaderMenus/FigureHandlerMixin":6493,"datatoolsservices/Figure/FigureController":6494,"datatoolsservices/Figure/FigureChannel":6495,"datatoolsservices/Figure/KeyConstants":6496,"datatoolsservices/Figure/FigureView":6497,"variableeditor_peer/HeaderMenus/IncludeMissingMixin":6498,"dojo/text!variableeditor_peer/HeaderMenus/NumericHeaderMenu.html":6499,"variableeditor_peer/HeaderMenus/DateTimeSelectionRangeMixin":6500,"variableeditor_peer/DatetimeEditor":6501,"variableeditor_peer/DatePickerEditor":6502,"dojo/text!variableeditor_peer/HeaderMenus/DateTimeHeaderMenu.html":6503,"variableeditor_peer/HeaderMenus/DurationFilteredRangeMixin":6504,"variableeditor_peer/HeaderMenus/DurationSelectionRangeMixin":6505,"variableeditor_client/CategoricalCleaner/CategoricalCleanerWidget":6506,"variableeditor_client/CategoricalCleaner/CategoricalCleanerContentWidget":6507,"dojo/text!variableeditor_client/CategoricalCleaner/templates/CategoricalCleanerWidget.html":6508,"variableeditor_client/l10n/nls/ja-jp/CategoricalCleaner":6509,"variableeditor_client/l10n/nls/zh-cn/CategoricalCleaner":6510,"variableeditor_client/l10n/nls/ko-kr/CategoricalCleaner":6511,"variableeditor_client/l10n/nls/CategoricalCleaner":6512,"dojo/i18n!variableeditor_peer/l10n/nls/CategoricalCleaningHeaderMenu":6513,"variableeditor_peer/l10n/nls/ja-jp/CategoricalCleaningHeaderMenu":6514,"variableeditor_peer/l10n/nls/zh-cn/CategoricalCleaningHeaderMenu":6515,"variableeditor_peer/l10n/nls/ko-kr/CategoricalCleaningHeaderMenu":6516,"variableeditor_peer/l10n/nls/CategoricalCleaningHeaderMenu":6517,"variableeditor_peer/Plugins/PeerPlaidSelection":6518,"variableeditor_peer/Plugins/PeerCustomRowHeight":6519,"variableeditor_peer/Plugins/CharacterWidth":6520,"variableeditor_peer/Plugins/PeerCornerSpacerText":6521,"variableeditor_peer/Plugins/Copy":6522,"variableeditor_peer/Plugins/SelectionContextHandler":6523,"variableeditor_peer/Plugins/EditingHandler":6524,"variableeditor_peer/Plugins/RowHeaderEditingHandler":6525,"variableeditor_peer/Plugins/ColumnHeaderEditingHandlerWithValidations":6526,"variableeditor_peer/Plugins/RemoteMultiRowSelection":6527,"variableeditor_peer/Plugins/RemoteSingleRowSelection":6528,"variableeditor_peer/Plugins/HeaderContextMenu":6529,"variableeditor_peer/Plugins/ContextServiceDataTypeConversion":6530,"datatoolsservices/Data/PeerNodeDataProvider":6531,"variableeditor_client/StructViewModel":6532,"variableeditor_peer/PeerTableViewModel":6533,"variableeditor_peer/PeerViewModel":6534,"variableeditor_peer/PeerUnsupportedViewModel":6535,"variableeditor_peer/RemoteUnsupportedViewModel":6536,"variableeditor_peer/PeerPopoutHandlerWidget":6537,"datatoolsservices/ContextMenuService/ContextMenuService":6538,"variableeditor_peer/RemotePopoutHandlerWidget":6540,"variableeditor_peer/RemoteDocumentWidget":6541,"datatoolsservices/ActionService/Remote/MF0VMActionDataServiceProvider":6542,"livecode_features/plugin/variableeditor/ExportDataHandler":6543,"livecode_features/plugin/variableeditor/InteractiveVariableRunScriptPromptController":6544,"livecode_features/plugin/variableeditor/ContextHandler":6545,"livecode_features/plugin/variableeditor/LiveEditorCodePublishService":6546,"variableeditor_peer/PeerSortUndoRedoHandler":6547,"livecode_features/l10n/nls/ja-jp/interactiveVariableOutput":6548,"livecode_features/l10n/nls/zh-cn/interactiveVariableOutput":6549,"livecode_features/l10n/nls/ko-kr/interactiveVariableOutput":6550,"livecode_features/l10n/nls/interactiveVariableOutput":6551,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableDocbookWriter":6553,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TabularDocbookWriter":6554,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TablePDFWriter":6555,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TabularPDFWriter":6556,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TabularPDFStyleConstants":6557,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableRTFWriter":6558,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TabularRTFWriter":6559,"livecode_features/plugin/variableeditor/InteractiveTabularOutput":6560,"livecode_features/plugin/variableeditor/InteractiveVariableExports/VariableMatrixElement2HTMLProvider":6561,"livecode_features/plugin/variableeditor/InteractiveVariableExports/VariableMatrixElement2HTML":6562,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableElement2HTMLProvider":6563,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableElement2HTML":6564,"livecode_features/plugin/variableeditor/InteractiveVariableExports/InteractiveVariableString2LaTeXProvider":6565,"livecode_features/plugin/variableeditor/InteractiveVariableExports/InteractiveVariableString2LaTeX":6566,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableElement2DocBookXMLProvider":6567,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableElement2DocBookXML":6568,"livecode_features/plugin/variableeditor/InteractiveVariableExports/InteractiveVariableString2DocbookXMLProvider":6569,"livecode_features/plugin/variableeditor/InteractiveVariableExports/InteractiveVariableString2DocbookXML":6570,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableElement2XSLFOProvider":6571,"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableElement2XSLFO":6572,"livecode_features/plugin/variableeditor/InteractiveVariableExports/VariableMatrixElement2XSLFOProvider":6573,"livecode_features/plugin/variableeditor/InteractiveVariableExports/VariableMatrixElement2XSLFO":6574,"livecode_features/plugin/variableeditor/InteractiveMatrixOutputHandlerProvider":6575,"livecode_features/plugin/variableeditor/InteractiveMatrixOutputHandler":6576,"livecode_features/plugin/variableeditor/TextMatrixOutput":6577,"livecode_features/plugin/variableeditor/InteractiveVariableExports/InteractiveVariableTextMatrixWriter":6578,"livecode_features/plugin/variableeditor/StaticTextMatrixOutput":6579,"livecode_features/plugin/variableeditor/TextOutputStyler":6580,"variableeditor_client/FitToContentWidths":6581,"rendererseditors/mwTableRenderers/NativeTableRenderer":6582,"livecode_features/plugin/variableeditor/InteractiveMatrixRunScriptPromptController":6583,"livecode_features/plugin/variableeditor/NumericMatrixOutput":6584,"livecode_features/plugin/variableeditor/VariableStringOutputHandlerProvider":6585,"livecode_features/plugin/variableeditor/VariableStringOutputHandler":6586,"livecode_features/plugin/variableeditor/MatrixOutputHandlerProvider":6587,"livecode_features/plugin/variableeditor/MatrixOutputHandler":6588,"livecode_features/plugin/contentmodifiedlistener/LiveContentModifiedListenerProvider":6589,"livecode_features/plugin/contentmodifiedlistener/LiveContentModifiedListener":6590,"livecode_features/plugin/datatip/EmbeddedOutputsDataTipPreferenceProvider":6591,"livecode_features/plugin/datatip/EmbeddedOutputsDataTipPreference":6592,"livecode_features/plugin/datatip/EmbeddedOutputsDataTipProvider":6593,"livecode_features/plugin/datatip/EmbeddedOutputsDataTip":6594,"livecode_features/plugin/execution/LiveEditorManualRunSectionTriggerProvider":6595,"livecode_features/plugin/execution/LiveEditorManualRunSectionTrigger":6596,"livecode_features/plugin/execution/LiveEditorSectionActionBarEvaluationProvider":6597,"livecode_features/plugin/execution/LiveEditorSectionActionBarEvaluation":6598,"livecode_features/plugin/execution/LiveCodeEditorExecutionNotifierProvider":6599,"common_features/plugin/execution/DeferredPromise":6600,"livecode_features/plugin/welcomebanner/WelcomeBannerProvider":6601,"livecode_features/plugin/welcomebanner/WelcomeBanner":6602,"livecode_features/plugin/welcomebanner/view/WelcomeBannerWidget":6603,"dojo/text!livecode_features/plugin/welcomebanner/view/welcomebannertemplate.html":6604,"dojo/i18n!livecode_features/l10n/nls/welcometoliveeditorbanner":6605,"livecode_features/l10n/nls/ja-jp/welcometoliveeditorbanner":6606,"livecode_features/l10n/nls/zh-cn/welcometoliveeditorbanner":6607,"livecode_features/l10n/nls/ko-kr/welcometoliveeditorbanner":6608,"livecode_features/l10n/nls/welcometoliveeditorbanner":6609,"dojo/text!rtc/plugins/announcementbanner/view/AnnouncementBannerTemplate.html":6610,"livecode_features/plugin/filenamebanner/FileNameBannerProvider":6611,"livecode_features/plugin/filenamebanner/FileNameBanner":6612,"dojo/i18n!livecode_features/l10n/nls/filenamebanner":6613,"livecode_features/l10n/nls/ja-jp/filenamebanner":6614,"livecode_features/l10n/nls/zh-cn/filenamebanner":6615,"livecode_features/l10n/nls/ko-kr/filenamebanner":6616,"livecode_features/l10n/nls/filenamebanner":6617,"livecode_features/plugin/livecontrols/LiveControlWorkspaceDataContributorProvider":6618,"livecode_features/plugin/livecontrols/LiveControlWorkspaceDataContributor":6619,"datatoolsservices/RemoteWorkspaceListener":6620,"widgets/WorkspaceWidgets/WorkspaceDropdown":6621,"dojo/i18n!widgets/l10n/nls/widgets":6622,"widgets/l10n/nls/ja-jp/widgets":6623,"widgets/l10n/nls/zh-cn/widgets":6624,"widgets/l10n/nls/ko-kr/widgets":6625,"widgets/l10n/nls/widgets":6626,"livecode_features/plugin/InsertImageProvider":6627,"livecode_features/plugin/InsertImage":6628,"livecode_features/plugin/export/FullFileExporterProvider":6629,"livecode_features/plugin/export/FullFileExporter":6630,"rtc/plugins/breakpoint/matlab/MatlabBreakpointDirtyService":6631,"rtc/settings/plugins/BackgroundColorSettingProvider":6632,"rtc/settings/plugins/CodeFoldingMarginSettingProvider":6633,"rtc/settings/plugins/EmbeddedOutputsSettingProvider":6634,"rtc/settings/plugins/FontSettingProvider":6635,"rtc/settings/plugins/LexerSettingProvider":6636,"rtc/settings/plugins/LineNumberSettingProvider":6637,"rtc/settings/plugins/MatlabSyntaxHighlightingSettingProvider":6638,"rtc/settings/plugins/RunToHereMarginSettingProvider":6639,"rtc/settings/plugins/VerticalBorderSettingProvider":6640,"rtc/plugins/execution/TraditionalExecutionServiceProvider":6641,"rtc/plugins/execution/TraditionalExecutionService":6642,"plaincode_features/plugin/backingstore/JsEditorSaveLoadContributorProvider":6643,"plaincode_features/plugin/backingstore/JsEditorSaveLoadContributor":6644,"plaincode_features/plugin/contentmodifiedlistener/PlainContentModifiedListenerProvider":6645,"plaincode_features/plugin/margin/PlainCodeExecutionMarginProvider":6646,"plaincode_features/plugin/execution/PlainCodeExecutionEnablerProvider":6647,"plaincode_features/plugin/execution/PlainCodeExecutionEnabler":6648,"plaincode_features/plugin/execution/PlainCodeEditorExecutionNotifierProvider":6649,"plaincode_features/plugin/PlainCodeHTMLGeneratorProvider":6650,"plaincode_features/plugin/PlainCodeHTMLGenerator":6651,"plaincode_features/plugin/PlainCodeRTFGeneratorProvider":6652,"plaincode_features/plugin/PlainCodeRTFGenerator":6653,"plaincode_features/plugin/openaslivescriptbanner/OpenAsLiveScriptBannerPlugin":6654,"dojo/i18n!plaincode_features/l10n/nls/openAsLiveScriptBanner":6655,"plaincode_features/l10n/nls/ja-jp/openAsLiveScriptBanner":6656,"plaincode_features/l10n/nls/zh-cn/openAsLiveScriptBanner":6657,"plaincode_features/l10n/nls/ko-kr/openAsLiveScriptBanner":6658,"plaincode_features/l10n/nls/openAsLiveScriptBanner":6659,"rtc/plugins/announcementbanner/AnnouncementBannerUtils":6660,"plaincode_features/plugin/print/PlainCodeEditorPrintProvider":6661,"plaincode_features/plugin/print/PlainCodeEditorPrint":6662,"plaincode_features/plugin/print/pagesetup/PageSetupDialog":6663,"plaincode_features/plugin/print/pagesetup/FontPane":6664,"dojo/text!dijit/templates/TitlePane.html":6665,"dojo/text!dijit/templates/Fieldset.html":6666,"plaincode_features/l10n/nls/ja-jp/pageSetupDialog":6667,"plaincode_features/l10n/nls/zh-cn/pageSetupDialog":6668,"plaincode_features/l10n/nls/ko-kr/pageSetupDialog":6669,"plaincode_features/l10n/nls/pageSetupDialog":6670,"plaincode_features/plugin/print/pagesetup/HeaderPane":6671,"plaincode_features/plugin/print/pagesetup/LayoutPane":6672,"dojo/text!plaincode_features/plugin/print/pagesetup/PageSetupDialogTemplate.html":6673,"plaincode_features/plugin/print/printSettingsUtils":6674,"plaincode_features/plugin/publish/Publish":6675,"dojo/text!plaincode_features/plugin/publish/files/publish_configurations":6676,"plaincode_features/plugin/publish/PublishPreferencesTag":6677,"plaincode_features/plugin/publish/PublishToolstripService":6678,"plaincode_features/l10n/nls/ja-jp/publishDialog":6679,"plaincode_features/l10n/nls/zh-cn/publishDialog":6680,"plaincode_features/l10n/nls/ko-kr/publishDialog":6681,"plaincode_features/l10n/nls/publishDialog":6682,"plaincode_features/plugin/publish/view/PublishDialog":6683,"plaincode_features/plugin/publish/view/PublishDialogActionManager":6684,"plaincode_features/plugin/publish/view/FileTableRenderer":6685,"mw-table/TreeTable":6686,"mw-table/treetable/TreeTable":6687,"mw-table/treetable/controllers/columns/ColConfigController":6688,"mw-table/treetable/controllers/columns/ColConfigUtil":6689,"mw-table/treetable/controllers/edit/EditControllerProxy":6690,"mw-table/treetable/controllers/edit/EditController":6691,"mw-table/treetable/controllers/interactive/InteractiveController":6692,"mw-table/treetable/enums/RendererActionsEnum":6693,"mw-table/treetable/controllers/scroll/ScrollToController":6694,"mw-table/treetable/controllers/filter/FilterController":6695,"mw-table/treetable/controllers/events/DoubleClickController":6696,"mw-table/treetable/controllers/keyboard/CustomKeyController":6697,"mw-table/treetable/utils/KeyValidationUtils":6698,"mw-table/treetable/plugins/selection/SingleRowSelection":6699,"mw-table/treetable/plugins/selection/MultiRowSelection":6700,"mw-table/treetable/plugins/events/ContextMenu":6701,"mw-table/treetable/adaptors/PublicEventsAdaptor":6702,"mw-table/treetable/plugins/events/HeaderMenu":6703,"mw-table/treetable/adaptors/HeaderMenuAdaptor":6704,"mw-table/treetable/plugins/sort/SingleColumnSort":6705,"mw-table/treetable/adaptors/SortAdaptor":6706,"mw-table/treetable/controllers/navigation/KeyController":6707,"mw-table/treetable/controllers/navigation/ActiveCell":6708,"mw-table/treetable/plugins/focus/CellFocus":6709,"mw-table/treetable/adaptors/FocusAdaptor":6710,"mw-table/treetable/plugins/checkboxtreetable/CheckboxTreetable":6711,"mw-table/treetable/adaptors/CheckboxTreetableAdaptor":6712,"mw-table/treetable/plugins/scrollsync/ScrollSync":6713,"mw-table/treetable/adaptors/ScrollSyncAdaptor":6714,"mw-table/treetable/enums/EditorEnum":6715,"mw-table/treetable/editors/DefaultEditor":6716,"mw-table/treetable/utils/PropUtils":6717,"mw-table/treetable/view/DataCell":6718,"mw-table/treetable/view/Gutters":6719,"mw-table/treetable/view/EditableTableCell":6720,"mw-table/treetable/view/hoc/withTree":6721,"mw-table/treetable/view/EditableTreeCell":6722,"mw-table/treetable/view/InteractiveTableCell":6723,"mw-table/treetable/view/DisclosureIcon":6724,"mw-table/treetable/view/TriStateCheckbox":6725,"mw-table/treetable/view/TreeTableRow":6726,"mw-table/treetable/view/Tooltip":6727,"mw-table/treetable/view/TbodyComponent":6728,"plaincode_features/plugin/publish/view/SavePublishSettingsDialog":6729,"dojo/text!plaincode_features/plugin/publish/view/SavePublishSettingsTemplate.html":6730,"plaincode_features/plugin/publish/view/PublishDialogButtonPanel":6731,"plaincode_features/plugin/publish/view/PublishDialogConfigurationNamePanel":6732,"plaincode_features/plugin/publish/view/PublishDialogFileFilterPanel":6733,"plaincode_features/plugin/publish/view/PublishDialogFilePathSettingsPanel":6734,"plaincode_features/plugin/publish/view/PublishDialogMatlabExpressionPanel":6735,"dojo/text!plaincode_features/plugin/publish/view/PublishDialogTemplate.html":6736,"plaincode_features/plugin/datatip/MatlabDataTipPreferenceProvider":6737,"plaincode_features/plugin/datatip/MatlabDataTipPreference":6738,"plaincode_features/plugin/backup/BackupPlugin":6739,"plaincode_features/plugin/backup/BackupTimer":6740,"plaincode_features/plugin/backup/Timer":6741,"plaincode_features/plugin/backup/BackupService":6742,"plaincode_features/plugin/backup/BackupFileUtility":6743,"plaincode_features/plugin/find/FindReplaceCustomShortcutsProvider":6744,"plaincode_features/plugin/find/FindReplaceCustomShortcutsHandler":6745,"matlab_preferences/preferencesUI/preferencePanels/MATLABPreferencePanel":6746,"dojo/text!matlab_preferences/preferencesUI/widgets/templates/panelContainer.html":6747,"matlab_preferences/l10n/nls/ja-jp/matlabPreferencePanel":6748,"matlab_preferences/l10n/nls/ko-kr/matlabPreferencePanel":6749,"matlab_preferences/l10n/nls/zh-cn/matlabPreferencePanel":6750,"matlab_preferences/l10n/nls/matlabPreferencePanel":6751,"matlab_preferences/preferencesUI/preferencePanels/CommandHistoryPreferencePanel":6752,"matlab_preferences/l10n/nls/ja-jp/commandHistoryPreferencePanel":6753,"matlab_preferences/l10n/nls/ko-kr/commandHistoryPreferencePanel":6754,"matlab_preferences/l10n/nls/zh-cn/commandHistoryPreferencePanel":6755,"matlab_preferences/l10n/nls/commandHistoryPreferencePanel":6756,"matlab_preferences/preferencesUI/preferencePanels/GeneralPreferencePanel":6757,"matlab_preferences/l10n/nls/ja-jp/generalPreferencePanel":6758,"matlab_preferences/l10n/nls/ko-kr/generalPreferencePanel":6759,"matlab_preferences/l10n/nls/zh-cn/generalPreferencePanel":6760,"matlab_preferences/l10n/nls/generalPreferencePanel":6761,"matlab_preferences/preferencesUI/preferencePanels/ConfirmationDialogsPreferencePanel":6762,"dojo/text!matlab_preferences/preferencesUI/preferencePanels/templates/ConfirmationDialogsPreferencePanel.html":6763,"matlab_preferences/l10n/nls/ja-jp/confirmationDialogPreferencePanel":6764,"matlab_preferences/l10n/nls/ko-kr/confirmationDialogPreferencePanel":6765,"matlab_preferences/l10n/nls/zh-cn/confirmationDialogPreferencePanel":6766,"matlab_preferences/l10n/nls/confirmationDialogPreferencePanel":6767,"matlab_preferences/preferencesUI/preferencePanels/SimulinkPreferencePanel":6768,"dojo/text!matlab_preferences/preferencesUI/preferencePanels/templates/SimulinkPreferencePanel.html":6769,"matlab_preferences/l10n/nls/simulinkPreferencePanel":6770,"editorpanels-ui/AutocodingPanel":6771,"editorpanels-ui/l10n/nls/ja-jp/AutocodingPanelLabels":6772,"editorpanels-ui/l10n/nls/ko-kr/AutocodingPanelLabels":6773,"editorpanels-ui/l10n/nls/zh-cn/AutocodingPanelLabels":6774,"editorpanels-ui/l10n/nls/AutocodingPanelLabels":6775,"dojo/text!editorpanels-ui/templates/AutocodingPanel.html":6776,"editorpanels-ui/AutoformattingPanel":6777,"editorpanels-ui/l10n/nls/ja-jp/AutoformattingPanelLabels":6778,"editorpanels-ui/l10n/nls/ko-kr/AutoformattingPanelLabels":6779,"editorpanels-ui/l10n/nls/zh-cn/AutoformattingPanelLabels":6780,"editorpanels-ui/l10n/nls/AutoformattingPanelLabels":6781,"dojo/text!editorpanels-ui/templates/AutoformattingPanel.html":6782,"editorpanels-ui/BackupPanel":6783,"editorpanels-ui/l10n/nls/BackupPanelLabels":6784,"dojo/text!editorpanels-ui/templates/BackupPanel.html":6785,"editorpanels-ui/CodeAnalyzerPanel":6786,"editorpanels-ui/l10n/nls/ja-jp/CodeAnalyzerPanelLabels":6787,"editorpanels-ui/l10n/nls/ko-kr/CodeAnalyzerPanelLabels":6788,"editorpanels-ui/l10n/nls/zh-cn/CodeAnalyzerPanelLabels":6789,"editorpanels-ui/l10n/nls/CodeAnalyzerPanelLabels":6790,"editorpanels-ui/l10n/nls/ja-jp/ProgrammingToolsPanelLabels":6791,"editorpanels-ui/l10n/nls/ko-kr/ProgrammingToolsPanelLabels":6792,"editorpanels-ui/l10n/nls/zh-cn/ProgrammingToolsPanelLabels":6793,"editorpanels-ui/l10n/nls/ProgrammingToolsPanelLabels":6794,"dojo/text!editorpanels-ui/templates/CodeAnalyzerPanel.html":6795,"cajsservice/apis/createCAMessageChecksRequest":6796,"editorpanels-ui/utility/codeanalyzer/CheckboxRendererForTree":6797,"editorpanels-ui/utility/codeanalyzer/CodeAnalyzerConfigManager":6798,"editorpanels-ui/CodeFoldingPanel":6799,"editorpanels-ui/l10n/nls/ja-jp/CodeFoldingPanelLabels":6800,"editorpanels-ui/l10n/nls/ko-kr/CodeFoldingPanelLabels":6801,"editorpanels-ui/l10n/nls/zh-cn/CodeFoldingPanelLabels":6802,"editorpanels-ui/l10n/nls/CodeFoldingPanelLabels":6803,"dojo/text!editorpanels-ui/templates/CodeFoldingPanel.html":6804,"editorpanels-ui/DisabledCheckboxRenderer":6805,"editorpanels-ui/ColorsPanel":6806,"editorpanels-ui/l10n/nls/ja-jp/ColorsPanelLabels":6807,"editorpanels-ui/l10n/nls/ko-kr/ColorsPanelLabels":6808,"editorpanels-ui/l10n/nls/zh-cn/ColorsPanelLabels":6809,"editorpanels-ui/l10n/nls/ColorsPanelLabels":6810,"dojo/text!editorpanels-ui/templates/ColorsPanel.html":6811,"dojo/text!editorpanels-ui/templates/ColorsSyntaxEditorSampleText.html":6812,"dojo/text!editorpanels-ui/templates/ColorsCommandWindowSample.html":6813,"dojo/text!dijit/form/templates/DropDownButton.html":6814,"rtc/RichTextComponent":6815,"rtc/RichTextComponentViewManager":6816,"rtc/core/states/StatesTransferDeserializeHelper":6817,"rtc/core/states/StatesTransferSerializeHelper":6818,"rtc/RichTextComponentView":6819,"dojo/text!rtc/templates/rtePane.html":6820,"rtc/core/ViewPluginResolver":6821,"rtc/core/_dependencyinjector/LayerableDependencyInjector":6822,"rtc/actiondataservice/ActionDataServiceProvider":6823,"rtc/actiondataservice/ActionDataService":6824,"rtc/actiondataservice/ActionDataServiceSynchronizerProvider":6825,"rtc/actiondataservice/ActionDataServiceSynchronizer":6826,"rtc/actiondataservice/DefaultActionDataServiceDestroyNotifierProvider":6827,"rtc/actiondataservice/DefaultActionDataServiceDestroyNotifier":6828,"rtc/actiondataservice/DefaultActionDataServiceSynchronizerConverterProvider":6829,"rtc/actiondataservice/DefaultActionDataServiceSynchronizerConverter":6830,"rtc/actiondataservice/DefaultActionDataServiceSynchronizerFilterProvider":6831,"rtc/actiondataservice/DefaultActionDataServiceSynchronizerFilter":6832,"rtc/clipboardservice/ClipboardProvider":6833,"rtc/cursor/CursorActionsProvider":6834,"rtc/cursor/CursorActions":6835,"rtc/cursor/CursorControllerProvider":6836,"rtc/cursor/CursorController":6837,"rtc/cursor/ColumnSelectionDisabledActions":6838,"rtc/cursor/CursorNavigatorProvider":6839,"rtc/cursor/CursorNavigator":6840,"rtc/cursor/CursorProvider":6841,"rtc/cursor/CursorViewProvider":6842,"rtc/cursor/CursorView":6843,"rtc/datamodel/DefaultBackingStoreProvider":6844,"rtc/events/KeyHandlerProvider":6845,"rtc/events/MobileKeyHandler":6846,"rtc/events/KeyboardShortcutsModelProvider":6847,"rtc/events/keybindings/AlternateActionServiceSupportProvider":6848,"rtc/events/MultistrokeShortcutsProvider":6849,"rtc/margin/TraditionalLineNumberDecoratorProvider":6850,"rtc/margin/TraditionalLineNumberDecorator":6851,"rtc/margin/settings/LineNumberPreferenceProvider":6852,"rtc/margin/settings/LineNumberPreference":6853,"rtc/model/DocumentActionsProvider":6854,"rtc/model/DocumentActions":6855,"rtc/model/DocumentProvider":6856,"rtc/model/InternalDocumentProvider":6857,"rtc/model/InternalDocument":6858,"rtc/core/states/StatesTransferNodeChangeEventUtils":6859,"rtc/model/PositionControllerProvider":6860,"rtc/model/PositionController":6861,"rtc/model/ActivePosition":6862,"rtc/model/ChangeEventTarget":6863,"rtc/model/document/DocumentChangeNotifierProvider":6864,"rtc/model/document/DocumentChangeNotifier":6865,"rtc/model/document/DocumentEditBlockControllerProvider":6866,"rtc/model/document/DocumentEditBlockController":6867,"rtc/model/document/DocumentInfoProvider":6868,"rtc/model/document/DocumentInfo":6869,"rtc/model/CodeTextGeneratorVisitor":6870,"rtc/model/LineColumn":6871,"rtc/model/document/DocumentModificationControllerProvider":6872,"rtc/model/document/DocumentModificationController":6873,"rtc/model/io/SerializersProvider":6874,"rtc/model/io/serializers/providers/containers/CodeContainerSerializerProvider":6875,"rtc/model/io/serializers/containers/CodeContainerSerializer":6876,"rtc/model/io/serializers/providers/nodes/PlainTextSerializerProvider":6877,"rtc/model/io/serializers/nodes/PlainTextSerializer":6878,"rtc/nodes/contentconverter/ContentConverterPluginProvider":6879,"rtc/nodes/contentconverter/ContentConverterPlugin":6880,"rtc/nodes/contentconverter/inner/LineNodeContentConverterProvider":6881,"rtc/nodes/contentconverter/inner/LineNodeContentConverter":6882,"rtc/nodes/contentconverter/leaf/PlainTextNodeContentConverterProvider":6883,"rtc/nodes/contentconverter/leaf/PlainTextNodeContentConverter":6884,"rtc/nodes/contentconverter/inner/RootNodeContentConverterProvider":6885,"rtc/nodes/contentconverter/inner/RootNodeContentConverter":6886,"rtc/nodes/insertionrules/LineNodeInsertionRulesProvider":6887,"rtc/nodes/insertionrules/LineNodeInsertionRules":6888,"rtc/nodes/insertionrules/OpaqueNodeInsertionRulesProvider":6889,"rtc/nodes/insertionrules/OpaqueNodeInsertionRules":6890,"rtc/plugins/insertionrules/receivinginstructions/ContinueAtPositionInstruction":6891,"rtc/nodes/insertionrules/PlainTextNodeInsertionRulesProvider":6892,"rtc/nodes/insertionrules/PlainTextNodeInsertionRules":6893,"rtc/nodes/nodeconversionrules/NodeConversionRulesProvider":6894,"rtc/nodes/nodeconversionrules/NodeConversionRules":6895,"rtc/nodes/nodeconversionrules/InnerNodeConversionRulesProvider":6896,"rtc/nodes/nodeconversionrules/InnerNodeConversionRules":6897,"rtc/plugins/code/CodeTextServiceProvider":6898,"rtc/plugins/code/CodeTextService":6899,"rtc/plugins/core/FocusManagerProvider":6900,"rtc/plugins/core/FocusManager":6901,"rtc/plugins/core/ViewReadyServiceProvider":6902,"rtc/plugins/core/ViewReadyService":6903,"rtc/plugins/contextmenu/DocumentContextMenuContributorProvider":6904,"rtc/plugins/contextmenu/DocumentContextMenuContributor":6905,"rtc/plugins/cursorgripper/CursorGripperProvider":6906,"rtc/plugins/cursorgripper/CursorGripper":6907,"rtc/plugins/cursorgripper/view/CursorGripperView":6908,"rtc/plugins/cursorgripper/view/NoAutoscrollingMover":6909,"rtc/plugins/cursorgripper/view/RtcConstrainedMoveable":6910,"rtc/plugins/cutcopypaste/ClipboardConverterProvider":6911,"rtc/plugins/cutcopypaste/ClipboardConverter":6912,"rtc/plugins/cutcopypaste/PlainTextMimeGeneratorProvider":6913,"rtc/plugins/cutcopypaste/PlainTextMimeGenerator":6914,"rtc/plugins/cutcopypaste/mime/PlainTextMimeConverterProvider":6915,"rtc/plugins/cutcopypaste/mime/PlainTextMimeInCodeConverterProvider":6916,"rtc/plugins/cutcopypaste/mime/PlainTextMimeInCodeConverter":6917,"rtc/plugins/cutcopypaste/mime/UnicodeStringMimeConverterProvider":6918,"rtc/plugins/cutcopypaste/mime/UnicodeStringMimeConverter":6919,"rtc/plugins/device/ios/VirtualKeyboardShortcutBarProvider":6920,"rtc/plugins/device/ios/VirtualKeyboardShortcutBar":6921,"rtc/plugins/events/EventHandlerProvider":6922,"rtc/plugins/events/DefaultEventHandler":6923,"rtc/plugins/events/EventHandler":6924,"rtc/plugins/events/EventHandlerUtilities":6925,"rtc/plugins/imeinput/IMEInputProvider":6926,"rtc/plugins/insertbreak/InsertBreakProvider":6927,"rtc/plugins/insertbreak/InsertBreak":6928,"rtc/plugins/insertionrules/InsertionRuleServiceProvider":6929,"rtc/plugins/insertionrules/InsertionRuleService":6930,"rtc/plugins/margin/MarginContainerProvider":6931,"rtc/margin/MarginContainer":6932,"rtc/plugins/margin/LineNumberMarginProvider":6933,"rtc/plugins/nodeconversionrules/NodeConversionRulesServiceProvider":6934,"rtc/plugins/nodeconversionrules/NodeConversionRulesService":6935,"rtc/plugins/service/FocusServiceProvider":6936,"rtc/plugins/service/FocusService":6937,"rtc/plugins/service/LineNumberServiceProvider":6938,"rtc/plugins/service/LineNumberService":6939,"rtc/plugins/shadowtext/ShadowTextServiceProvider":6940,"rtc/plugins/shadowtext/ShadowTextService":6941,"rtc/plugins/shadowtext/ShadowTextServiceView":6942,"rtc/plugins/tooltip/TooltipPluginContainerProvider":6943,"rtc/plugins/tooltip/TooltipPluginContainer":6944,"rtc/plugins/undoredo/UndoRedoActionProvider":6945,"rtc/plugins/undoredo/UndoRedoAction":6946,"rtc/plugins/undoredo/UndoRedoControllerProvider":6947,"rtc/plugins/undoredo/UndoRedoController":6948,"rtc/core/states/StatesTransferCommandUtils":6949,"rtc/core/states/StatesTransferDocumentEventUtils":6950,"rtc/plugins/undoredo/UndoRedoCursorProvider":6951,"rtc/plugins/undoredo/UndoRedoCursor":6952,"rtc/plugins/undoredo/EditBlockControllerProvider":6953,"rtc/plugins/undoredo/EditBlockController":6954,"rtc/plugins/view/divcaret/DivCaretPluginProvider":6955,"rtc/plugins/view/divselection/DivSelectionPluginProvider":6956,"rtc/plugins/view/divselection/DivSelectionPlugin":6957,"rtc/plugins/view/divselection/DivSelectionRendererProvider":6958,"rtc/plugins/view/divselection/DivSelectionRenderer":6959,"rtc/plugins/view/focus/FocusNotifierProvider":6960,"rtc/plugins/view/focus/FocusNotifier":6961,"rtc/plugins/view/layoutmanager/LayoutManagerProvider":6962,"rtc/plugins/view/layoutmanager/LayoutManager":6963,"rtc/plugins/view/layoutmanager/layouters/LineLayouterProvider":6964,"rtc/plugins/view/layoutmanager/layouters/PlainTextLayouterProvider":6965,"rtc/plugins/view/layoutmanager/layouters/RootLayouterProvider":6966,"rtc/plugins/view/layoutmanager/layouters/RootLayouter":6967,"rtc/plugins/view/layoutmanager/rules/DefaultRuleProvider":6968,"rtc/plugins/view/movehiddenkeycapture/MoveHiddenKeyCaptureProvider":6969,"rtc/plugins/view/movehiddenkeycapture/MoveHiddenKeyCapture":6970,"rtc/view/ViewActionsProvider":6971,"rtc/view/ViewActions":6972,"rtc/view/ViewMeasurementServiceProvider":6973,"rtc/view/ViewMeasurementService":6974,"rtc/view/ViewModelProvider":6975,"rtc/view/ViewModel":6976,"rtc/view/pagination/LineView":6977,"rtc/view/ViewProvider":6978,"rtc/view/View":6979,"rtc/view/coordinateconverter/CoordinateConverterProvider":6980,"rtc/view/coordinateconverter/CoordinateConverter":6981,"rtc/view/coordinateconverter/PlainTextCoordinateConverterProvider":6982,"rtc/view/coordinateconverter/PlainTextCoordinateConverter":6983,"rtc/view/coordinateconverter/RootCoordinateConverterProvider":6984,"rtc/view/coordinateconverter/RootCoordinateConverter":6985,"rtc/view/decoration/DecorationProvider":6986,"rtc/view/decoration/Decoration":6987,"rtc/view/decoration/Decorator":6988,"rtc/view/decoration/LayerDecorator":6989,"rtc/view/decoration/DecorationPendingInlineDecorationProvider":6990,"rtc/view/decoration/DecorationPendingList":6991,"rtc/view/decoration/LayerDecoratorMarginDecoratorProvider":6992,"rtc/view/decoration/LayerDecoratorMarginDecorator":6993,"rtc/view/decoration/viewmodel/DecorationDescriptorsStoreProvider":6994,"rtc/view/decoration/viewmodel/DecorationDescriptorsStore":6995,"rtc/view/decoration/viewmodel/DecorationLayerViewModelProvider":6996,"rtc/view/decoration/viewmodel/DecorationLayerViewModel":6997,"rtc/view/decoration/viewmodel/LayerDecoratorDescriptorStore":6998,"rtc/view/decoration/viewmodel/DecorationViewModelProvider":6999,"rtc/view/decoration/viewmodel/DecorationViewModel":7e3,"rtc/view/hidden/HiddenNodeModelProvider":7001,"rtc/view/hidden/HiddenNodeModel":7002,"rtc/view/rangeconverter/PlainTextRangeConverterProvider":7003,"rtc/view/rangeconverter/PlainTextRangeConverter":7004,"rtc/view/rangeconverter/RangeConverterProvider":7005,"rtc/view/rangeconverter/RangeConverter":7006,"rtc/view/styles/GlobalStyleChangerProvider":7007,"rtc/view/styles/GlobalStyleChanger":7008,"rtc/core/registry/FeaturePluginRegistry":7009,"rtc/actiondataservice/ActionDelegationServiceProvider":7010,"rtc/actiondataservice/ActionDelegationService":7011,"rtc/datamodel/ExternalChangeLoadNotifierProvider":7012,"rtc/datamodel/ExternalChangeLoadNotifier":7013,"rtc/editorservice/EditorServiceInitializerProvider":7014,"rtc/editorservice/EditorServiceInitializer":7015,"rtc/execution/ExecutionServiceProvider":7016,"rtc/execution/MatlabExecutionDataService":7017,"rtc/hyperlinkservice/HyperlinkServiceProvider":7018,"rtc/hyperlinkservice/HyperlinkService":7019,"rtc/model/document/DocumentEventCacheProvider":7020,"rtc/model/document/DocumentEventCache":7021,"rtc/model/document/DocumentIdleNotifierProvider":7022,"rtc/model/document/DocumentIdleNotifier":7023,"rtc/plugins/events/RTCDomNodeMouseDownNotifierProvider":7024,"rtc/plugins/events/RTCDomNodeMouseDownNotifier":7025,"rtc/plugins/execution/CapabilityBlacklistProvider":7026,"rtc/plugins/execution/CapabilityBlacklist":7027,"rtc/plugins/execution/ValidScriptFileTypeNotifierProvider":7028,"rtc/plugins/execution/events/ExecutionRequestNotifierProvider":7029,"rtc/plugins/execution/events/ExecutionRequestNotifier":7030,"rtc/plugins/execution/ExecutionRequestSerializationServiceProvider":7031,"rtc/plugins/execution/ExecutionRequestSerializationService":7032,"rtc/plugins/execution/tracking/ExecutionTrackingStoreProvider":7033,"rtc/plugins/execution/tracking/ExecutionTrackingStore":7034,"rtc/plugins/execution/tracking/LineNumberTrackerProvider":7035,"rtc/plugins/execution/tracking/LineNumberTracker":7036,"rtc/plugins/execution/events/StateHandlerProvider":7037,"rtc/plugins/execution/events/StateHandler":7038,"rtc/plugins/functionnotifier/FunctionArgumentNotifierProvider":7039,"rtc/plugins/functionnotifier/FunctionArgumentNotifier":7040,"rtc/plugins/functionnotifier/LocalFunctionNotifierProvider":7041,"rtc/plugins/functionnotifier/LocalFunctionNotifier":7042,"rtc/plugins/functionnotifier/AllFunctionNotifierProvider":7043,"rtc/plugins/functionnotifier/AllFunctionNotifier":7044,"rtc/plugins/functionnotifier/TopLevelFunctionNotifierProvider":7045,"rtc/plugins/functionnotifier/TopLevelFunctionNotifier":7046,"rtc/plugins/language/matlab/code/CodeChangeServiceProvider":7047,"rtc/plugins/language/matlab/code/CodeChangeService":7048,"rtc/plugins/language/matlab/contextualselection/ContextualSelectionUtilityProvider":7049,"rtc/plugins/language/matlab/contextualselection/ContextualSelectionUtility":7050,"rtc/plugins/language/matlab/contextualselection/ContextualTextInformation":7051,"rtc/plugins/language/matlab/diagnosticmessage/DiagnosticMessageFormatterProvider":7052,"rtc/plugins/language/matlab/diagnosticmessage/DiagnosticMessageFormatter":7053,"rtc/plugins/language/matlab/diagnosticmessage/ErrorMessageContent":7054,"rtc/plugins/language/matlab/diagnosticmessage/WarningMessageContent":7055,"rtc/plugins/language/matlab/executablecode/ExecutableCodeServiceProvider":7056,"rtc/plugins/language/matlab/executablecode/ExecutableCodeService":7057,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/ExecutableCodeConverterProvider":7058,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/ExecutableCodeConverter":7059,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/LineNodeExecutableCodeConverterProvider":7060,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/LineNodeExecutableCodeConverter":7061,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/PlainTextNodeExecutableCodeConverterProvider":7062,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/PlainTextNodeExecutableCodeConverter":7063,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/base/LeafNodeExecutableCodeConverter":7064,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/RootNodeExecutableCodeConverterProvider":7065,"rtc/plugins/language/matlab/executablecode/executablecodeconverter/RootNodeExecutableCodeConverter":7066,"rtc/plugins/language/matlab/filetype/FileTypeProvider":7067,"rtc/plugins/language/matlab/languageanalysis/FileStructureServiceWrapperProvider":7068,"cajsservice/apis/createCAFileStructureNotifier":7069,"cajsservice/source/getFileStructureInformation":7070,"rtc/plugins/language/matlab/languageanalysis/FileStructureServiceWrapper":7071,"rtc/plugins/language/matlab/languageanalysis/IdentifierServiceWrapperProvider":7072,"cajsservice/apis/createCAIdentifierNotifier":7073,"rtc/plugins/language/matlab/languageanalysis/IdentifierServiceWrapper":7074,"rtc/plugins/language/matlab/languageanalysis/RefactoringServiceWrapperProvider":7075,"cajsservice/apis/createFunctionRefactoringRequest":7076,"rtc/plugins/language/matlab/languageanalysis/RefactoringServiceWrapper":7077,"rtc/plugins/language/matlab/languageanalysis/SectionsListDataServiceProvider":7078,"rtc/plugins/language/matlab/languageanalysis/SectionsListDataService":7079,"rtc/plugins/language/matlab/syntax/functions/FunctionServiceProvider":7080,"rtc/plugins/language/matlab/syntax/functions/FunctionService":7081,"rtc/plugins/language/matlab/syntax/functions/FunctionDeclaration":7082,"rtc/plugins/language/matlab/syntax/functions/MainFunctionDeclaration":7083,"rtc/plugins/language/matlab/syntax/mtree/CodeBlockLocationServiceProvider":7084,"rtc/plugins/language/matlab/syntax/mtree/CodeBlockLocationService":7085,"rtc/plugins/language/matlab/syntax/mtree/MTreeNodeFactory":7086,"rtc/plugins/language/matlab/syntax/mtree/MTreeRangeFactoryProvider":7087,"rtc/plugins/language/matlab/syntax/mtree/MTreeRangeFactory":7088,"rtc/plugins/language/matlab/tokenizer/MatlabLexerProvider":7089,"rtc/plugins/language/matlab/tokenizer/MatlabLexer":7090,"rtc/plugins/language/common/tokenizer/LexedToken":7091,"rtc/plugins/language/matlab/tokenizer/MatlabLexicalInfo":7092,"rtc/plugins/language/matlab/tokenizer/MatlabState":7093,"rtc/plugins/language/matlab/tokenizer/MatlabStateUtilities":7094,"rtc/plugins/language/matlab/tokenizer/MatlabStateManagerProvider":7095,"rtc/plugins/language/matlab/tokenizer/MatlabStateManager":7096,"rtc/plugins/language/matlab/tokenizer/MatlabTokenManagerProvider":7097,"rtc/plugins/language/matlab/tokenizer/MatlabTokenManager":7098,"rtc/plugins/language/common/tokenizer/IterativeToken":7099,"rtc/plugins/language/matlab/variableservice/VariableServiceProvider":7100,"rtc/plugins/language/matlab/variableservice/VariableService":7101,"rtc/plugins/code/ExecutableLineServiceProvider":7102,"rtc/plugins/code/ExecutableLineService":7103,"rtc/plugins/core/CurrentViewProvider":7104,"rtc/plugins/core/CurrentView":7105,"rtc/plugins/ddux/ActionLoggerServiceBlacklistProvider":7106,"rtc/plugins/ddux/ActionLoggerServiceBlacklist":7107,"rtc/plugins/debug/DocumentLoadedServiceProvider":7108,"rtc/plugins/debug/DocumentLoadedService":7109,"rtc/plugins/documentsynchronizer/SynchronizationDataModelProvider":7110,"rtc/plugins/documentsynchronizer/SynchronizationDataModel":7111,"rtc/plugins/editorapiservice/EditorAPIServiceProvider":7112,"rtc/plugins/editorapiservice/EditorAPIService":7113,"rtc/plugins/editorapiservice/EditorAPIMessageHandlerMap":7114,"rtc/plugins/editorapiservice/EditorAPIStatusCodeMap":7115,"rtc/plugins/editordataservice/DefaultPluginContainerProvider":7116,"rtc/plugins/editordataservice/EditorDataServiceManagerProvider":7117,"rtc/editordataservice/EditorDataServiceManager":7118,"rtc/editordataservice/EditorDataServiceProvider":7119,"rtc/plugins/editordataservice/EditorDataServiceProvider":7120,"rtc/plugins/editortabservice/EditorTabServiceProvider":7121,"rtc/plugins/editortabservice/EditorTabService":7122,"rtc/plugins/execution/BatchedBusyIdleServiceProvider":7123,"rtc/plugins/execution/BatchedBusyIdleService":7124,"rtc/plugins/execution/BusyIdleServicesProvider":7125,"rtc/plugins/execution/BusyIdleServices":7126,"rtc/plugins/indentutilities/IndentUtilitiesProvider":7127,"rtc/plugins/indentutilities/IndentUtilities":7128,"rtc/plugins/language/matlab/autoindent/preferences/functionIndentingFormatConstants":7129,"rtc/plugins/language/matlab/contextualselection/HelpServiceProvider":7130,"rtc/plugins/language/matlab/contextualselection/HelpService":7131,"rtc/plugins/language/matlab/sections/SectionModelProvider":7132,"rtc/plugins/language/matlab/sections/SectionModel":7133,"rtc/plugins/language/matlab/sections/CurrentSectionModelProvider":7134,"rtc/plugins/language/matlab/sections/CurrentSectionModel":7135,"rtc/plugins/service/connectivity/ConnectivityServiceProvider":7136,"rtc/plugins/service/connectivity/ConnectivityService":7137,"rtc/plugins/service/connectivity/ConnectorConnectivityContributorProvider":7138,"rtc/plugins/service/connectivity/ConnectorConnectivityContributor":7139,"rtc/plugins/service/ColorSettingServiceProvider":7140,"rtc/plugins/service/ColorSettingService":7141,"rtc/plugins/service/ContextSensitiveHelpServiceProvider":7142,"rtc/plugins/service/TooltipServiceProvider":7143,"rtc/plugins/service/TooltipService":7144,"rtc/plugins/service/hover/ActionHoverServiceProvider":7145,"rtc/plugins/service/hover/ActionHoverService":7146,"rtc/plugins/service/hover/DomNodeActionHoverNotifierFactoryProvider":7147,"rtc/plugins/service/hover/DomNodeActionHoverNotifierFactory":7148,"rtc/plugins/service/hover/DomNodeActionHoverNotifier":7149,"rtc/plugins/settings/InMemorySettingServiceProvider":7150,"rtc/plugins/settings/matlab/RtcMatlabSettingServiceProvider":7151,"rtc/plugins/settings/matlab/RtcMatlabSettingService":7152,"rtc/plugins/settings/matlab/SynchronouslyAccessedSettings":7153,"rtc/plugins/view/VisibilityServiceProvider":7154,"rtc/plugins/view/VisibilityService":7155,"rtc/preferences/PreferencesServiceProvider":7156,"rtc/preferences/PreferencesService":7157,"rtc/view/ViewportOpenedServiceProvider":7158,"rtc/view/ViewportOpenedService":7159,"rtc/view/VisibilityNotifierProvider":7160,"rtc/view/VisibilityNotifier":7161,"rtc/view/VisibilityNotifiable":7162,"rtc/view/hidden/HiddenNodeServiceProvider":7163,"rtc/view/hidden/HiddenNodeService":7164,"rtc/core/_dependencyinjector/ViewRegistryBasedDependencyInjector":7165,"rtc/core/_dependencyinjector/utilities/DependencyInjectionUtilities":7166,"rtc/HasExtensions":7167,"rtc/RichTextComponentCore":7168,"rtc/core/CorePluginResolver":7169,"rtc/core/_dependencyinjector/CoreRegistryBasedDependencyInjector":7170,"rtc/core/provider/ViewPluginWrapperFactory":7171,"rtc/core/DynamicPluginPathResolver":7177,"editorpanels-ui/CommandWindowPreview":7178,"editorpanels-ui/DisplayPanel":7179,"editorpanels-ui/l10n/nls/ja-jp/DisplayLabels":7180,"editorpanels-ui/l10n/nls/ko-kr/DisplayLabels":7181,"editorpanels-ui/l10n/nls/zh-cn/DisplayLabels":7182,"editorpanels-ui/l10n/nls/DisplayLabels":7183,"dojo/text!editorpanels-ui/templates/DisplayPanel.html":7184,"editorpanels-ui/EditorPanel":7185,"editorpanels-ui/l10n/nls/ja-jp/EditorPanelLabels":7186,"editorpanels-ui/l10n/nls/ko-kr/EditorPanelLabels":7187,"editorpanels-ui/l10n/nls/zh-cn/EditorPanelLabels":7188,"editorpanels-ui/l10n/nls/EditorPanelLabels":7189,"dojo/text!editorpanels-ui/templates/EditorPanel.html":7190,"panel-utilities-js/Capabilities":7191,"editorpanels-ui/FontsPanel":7192,"editorpanels-ui/l10n/nls/ja-jp/FontsPanelLabels":7193,"editorpanels-ui/l10n/nls/ko-kr/FontsPanelLabels":7194,"editorpanels-ui/l10n/nls/zh-cn/FontsPanelLabels":7195,"editorpanels-ui/l10n/nls/FontsPanelLabels":7196,"dojo/text!editorpanels-ui/templates/FontsPanel.html":7197,"editorpanels-ui/CustomFontsPanel":7198,"dojo/text!editorpanels-ui/templates/CustomFontsPanel.html":7199,"editorpanels-ui/KeyboardPanel":7200,"editorpanels-ui/l10n/nls/ja-jp/KeyboardPanelLabels":7201,"editorpanels-ui/l10n/nls/ko-kr/KeyboardPanelLabels":7202,"editorpanels-ui/l10n/nls/zh-cn/KeyboardPanelLabels":7203,"editorpanels-ui/l10n/nls/KeyboardPanelLabels":7204,"dojo/text!editorpanels-ui/templates/KeyboardPanel.html":7205,"editorpanels-ui/LanguageMATLABPanel":7206,"editorpanels-ui/l10n/nls/ja-jp/LanguageMATLABPanelLabels":7207,"editorpanels-ui/l10n/nls/ko-kr/LanguageMATLABPanelLabels":7208,"editorpanels-ui/l10n/nls/zh-cn/LanguageMATLABPanelLabels":7209,"editorpanels-ui/l10n/nls/LanguageMATLABPanelLabels":7210,"dojo/text!editorpanels-ui/templates/LanguageMATLABPanel.html":7211,"dojo/i18n!editorpanels-ui/l10n/nls/FileExtensionsLabels":7212,"editorpanels-ui/l10n/nls/ja-jp/FileExtensionsLabels":7213,"editorpanels-ui/l10n/nls/ko-kr/FileExtensionsLabels":7214,"editorpanels-ui/l10n/nls/zh-cn/FileExtensionsLabels":7215,"editorpanels-ui/l10n/nls/FileExtensionsLabels":7216,"editorpanels-ui/DefaultExtensions":7217,"editorpanels-ui/LanguageExtensionsMap":7218,"mw-tree-data-model/impl/_expandCollapseToggle":7219,"mw-tree-data-model/impl/_parentNodeStore":7220,"mw-tree-data-model/utils/cacheImpl/StringCache":7221,"mw-tree-data-model/utils/cacheImpl/MapCache":7222,"mw-tree-data-model/impl/_filter":7223,"mw-tree-data-model/impl/_search":7224,"mw-tree-data-model/impl/_sort":7225,"mw-tree-data-model/enums/sortEnum":7226,"mw-tree-data-model/utils/rangeListFrom":7227,"mw-tree-data-model/utils/IndexCache":7228,"mw-tree-data-model/impl/_metaData/_MetaDataRules":7229,"mw-tree-data-model/impl/_metaData/_OrderedRules":7230,"mw-tree-data-model/impl/_metaData/_HierarchicalOrderedRules":7231,"mw-tree-data-model/utils/_criteriaUtils":7232,"editorpanels-ui/OtherLanguagesPanel":7233,"editorpanels-ui/l10n/nls/ja-jp/OtherLanguagesPanelLabels":7234,"editorpanels-ui/l10n/nls/ko-kr/OtherLanguagesPanelLabels":7235,"editorpanels-ui/l10n/nls/zh-cn/OtherLanguagesPanelLabels":7236,"editorpanels-ui/l10n/nls/OtherLanguagesPanelLabels":7237,"dojo/text!editorpanels-ui/templates/OtherLanguagesPanel.html":7238,"editorpanels-ui/ProgrammingToolsPanel":7239,"dojo/text!editorpanels-ui/templates/ProgrammingToolsPanel.html":7240,"dojo/text!editorpanels-ui/templates/ProgrammingToolsSampleText.html":7241,"editorpanels-ui/NonlocalVariableHighlightPreviewProvider":7242,"editorpanels-ui/ProgrammingToolsPanelPreviewProvider":7243,"editorpanels-ui/ProgrammingToolsPanelPreview":7244,"editorpanels-ui/VariableHighlightMarkerPreviewProvider":7245,"editorpanels-ui/VariableHighlightPreviewProvider":7246,"editorpanels-ui/TabPanel":7247,"editorpanels-ui/l10n/nls/ja-jp/TabPanelLabels":7248,"editorpanels-ui/l10n/nls/ko-kr/TabPanelLabels":7249,"editorpanels-ui/l10n/nls/zh-cn/TabPanelLabels":7250,"editorpanels-ui/l10n/nls/TabPanelLabels":7251,"dojo/text!editorpanels-ui/templates/TabPanel.html":7252,"editorpanels-ui/ColorsPanelBackgroundForegroundProvider":7253,"editorpanels-ui/ColorsPanelCodeAnalyzerPreferenceProvider":7254,"editorpanels-ui/ColorsPanelSyntaxHighlighterPreferencesProvider":7255,"editorpanels-ui/ColorsPanelSyntaxHighlighterProvider":7256,"commandwindowpanel-ui/CommandWindowPanel":7257,"commandwindowpanel-ui/l10n/nls/ja-jp/CommandWindowPanelLabels":7258,"commandwindowpanel-ui/l10n/nls/ko-kr/CommandWindowPanelLabels":7259,"commandwindowpanel-ui/l10n/nls/zh-cn/CommandWindowPanelLabels":7260,"commandwindowpanel-ui/l10n/nls/CommandWindowPanelLabels":7261,"dojo/text!commandwindowpanel-ui/templates/CommandWindowPanel.html":7262,"commandwindowpanel-ui/CommandWindowCompletionPanel":7263,"commandwindowpanel-ui/l10n/nls/ja-jp/CommandWindowCompletionPanelLabels":7264,"commandwindowpanel-ui/l10n/nls/ko-kr/CommandWindowCompletionPanelLabels":7265,"commandwindowpanel-ui/l10n/nls/zh-cn/CommandWindowCompletionPanelLabels":7266,"commandwindowpanel-ui/l10n/nls/CommandWindowCompletionPanelLabels":7267,"dojo/text!commandwindowpanel-ui/templates/CommandWindowCompletionPanel.html":7268,"cfbprefs-ui/CurrentFolderPrefsModule":7269,"dojo/text!cfbprefs-ui/templates/CurrentFolderPreferencesPanel.html":7270,"cfbprefs-ui/l10n/nls/ja-jp/CurrentFolderPanelLabels":7271,"cfbprefs-ui/l10n/nls/ko-kr/CurrentFolderPanelLabels":7272,"cfbprefs-ui/l10n/nls/zh-cn/CurrentFolderPanelLabels":7273,"cfbprefs-ui/l10n/nls/CurrentFolderPanelLabels":7274,"cpanel-ui/LanguageCLikePanel":7275,"cpanel-ui/CLanguageRegistry":7276,"cpanel-ui/LanguageCLikeSettingKeys":7277,"cpanel-ui/l10n/nls/ja-jp/LanguageCLikePanelLabels":7278,"cpanel-ui/l10n/nls/ko-kr/LanguageCLikePanelLabels":7279,"cpanel-ui/l10n/nls/zh-cn/LanguageCLikePanelLabels":7280,"cpanel-ui/l10n/nls/LanguageCLikePanelLabels":7281,"dojo/i18n!rtc_clike_language_support/resources/rtc_language_support/nls/cLanguage":7282,"rtc_clike_language_support/resources/rtc_language_support/nls/ja-jp/cLanguage":7283,"rtc_clike_language_support/resources/rtc_language_support/nls/ko-kr/cLanguage":7284,"rtc_clike_language_support/resources/rtc_language_support/nls/zh-cn/cLanguage":7285,"rtc_clike_language_support/resources/rtc_language_support/nls/cLanguage":7286,"rtc_clike_language_support/plugins/autoindenting/CLikeAutoIndentServiceProvider":7287,"rtc_clike_language_support/plugins/autoindenting/preferences/CAutoIndentingPreferenceProvider":7288,"rtc_clike_language_support/plugins/smartindenting/CLikeSmartIndentingProvider":7289,"rtc_clike_language_support/plugins/syntaxhighlighter/CLikeSyntaxHighlighterProvider":7290,"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CLikeEnableSyntaxHighlightingPreferenceProvider":7291,"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CLikeSyntaxHighlighterPreferencesProvider":7292,"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CLikeSyntaxHighlighterSettingKeys":7293,"rtc_clike_language_support/plugins/tokenizer/CLikeTokenizerProvider":7294,"rtc_clike_language_support/plugins/tokenizer/CLikeTokenizer":7295,"CodeMirror/MW/CodeMirror":7296,"CodeMirror/MW/StringStream":7297,"rtc_clike_language_support/plugins/tokenizer/CLikeTokenManagerProvider":7298,"rtc/plugins/language/external/tokenizer/matching/ExternalBasicTokenMatcherRules":7299,"cpanel-ui/LanguageCppPanel":7300,"cpanel-ui/CppLanguageRegistry":7301,"cpanel-ui/LanguageCppSettingKeys":7302,"dojo/i18n!rtc_clike_language_support/resources/rtc_language_support/nls/cppLanguage":7303,"rtc_clike_language_support/resources/rtc_language_support/nls/ja-jp/cppLanguage":7304,"rtc_clike_language_support/resources/rtc_language_support/nls/ko-kr/cppLanguage":7305,"rtc_clike_language_support/resources/rtc_language_support/nls/zh-cn/cppLanguage":7306,"rtc_clike_language_support/resources/rtc_language_support/nls/cppLanguage":7307,"rtc_clike_language_support/plugins/autoindenting/preferences/CppAutoIndentingPreferenceProvider":7308,"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CppEnableSyntaxHighlightingPreferenceProvider":7309,"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CppSyntaxHighlighterPreferencesProvider":7310,"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CppSyntaxHighlighterSettingKeys":7311,"cpanel-ui/LanguageCLikeEnableSyntaxHighlighterPreferenceProvider":7312,"cpanel-ui/LanguageCLikePanelSyntaxHighlighterPreferencesProvider":7313,"cpanel-ui/LanguageCLikePanelSyntaxHighlighterProvider":7314,"cpanel-ui/LanguageCppEnableSyntaxHighlighterPreferenceProvider":7315,"cpanel-ui/LanguageCppPanelSyntaxHighlighterPreferencesProvider":7316,"javapanel-ui/l10n/nls/ja-jp/LanguageJavaPanelLabels":7317,"javapanel-ui/l10n/nls/ko-kr/LanguageJavaPanelLabels":7318,"javapanel-ui/l10n/nls/zh-cn/LanguageJavaPanelLabels":7319,"javapanel-ui/l10n/nls/LanguageJavaPanelLabels":7320,"javapanel-ui/LanguageJavaPanel":7321,"dojo/text!javapanel-ui/templates/LanguageJavaPanel.html":7322,"dojo/text!javapanel-ui/templates/LanguageJavaSyntaxEditorSampleText.html":7323,"javapanel-ui/ColorPickerConstants":7324,"javapanel-ui/LanguageJavaSettingKeys":7325,"javapanel-ui/JavaLanguageRegistry":7326,"javapanel-ui/LanguageJavaEnableSyntaxHighlighterPreferenceProvider":7327,"javapanel-ui/LanguageJavaPanelSyntaxHighlighterPreferencesProvider":7328,"rtc_java_language_support/plugins/syntaxhighlighter/preferences/JavaSyntaxHighlighterSettingKeys":7329,"javapanel-ui/LanguageJavaPanelSyntaxHighlighterProvider":7330,"panel-utilities-js/PreviewSettingsServiceProvider":7331,"panel-utilities-js/PreviewSettingsService":7332,"dojo/i18n!rtc_java_language_support/resources/rtc_language_support/nls/javaLanguage":7333,"rtc_java_language_support/resources/rtc_language_support/nls/ja-jp/javaLanguage":7334,"rtc_java_language_support/resources/rtc_language_support/nls/ko-kr/javaLanguage":7335,"rtc_java_language_support/resources/rtc_language_support/nls/zh-cn/javaLanguage":7336,"rtc_java_language_support/resources/rtc_language_support/nls/javaLanguage":7337,"rtc_java_language_support/plugins/autoindenting/JavaAutoIndentServiceProvider":7338,"rtc_java_language_support/plugins/autoindenting/preferences/JavaAutoIndentingPreferenceProvider":7339,"rtc_java_language_support/plugins/smartindenting/JavaSmartIndentingProvider":7340,"rtc_java_language_support/plugins/syntaxhighlighter/JavaSyntaxHighlightingColorContributorProvider":7341,"rtc_java_language_support/plugins/syntaxhighlighter/JavaSyntaxHighlighterProvider":7342,"rtc_java_language_support/plugins/syntaxhighlighter/preferences/JavaEnableSyntaxHighlightingPreferenceProvider":7343,"rtc_java_language_support/plugins/syntaxhighlighter/preferences/JavaSyntaxHighlighterPreferencesProvider":7344,"rtc_java_language_support/plugins/tokenizer/JavaTokenizerProvider":7345,"rtc_java_language_support/plugins/tokenizer/JavaTokenizer":7346,"rtc_java_language_support/plugins/tokenizer/JavaTokenManagerProvider":7347,"xmlpanel-ui/l10n/nls/ja-jp/LanguageXmlPanelLabels":7348,"xmlpanel-ui/l10n/nls/ko-kr/LanguageXmlPanelLabels":7349,"xmlpanel-ui/l10n/nls/zh-cn/LanguageXmlPanelLabels":7350,"xmlpanel-ui/l10n/nls/LanguageXmlPanelLabels":7351,"xmlpanel-ui/LanguageHtmlPanel":7352,"dojo/i18n!rtc_xml_language_support/resources/rtc_language_support/nls/htmlLanguage":7353,"rtc_xml_language_support/resources/rtc_language_support/nls/ja-jp/htmlLanguage":7354,"rtc_xml_language_support/resources/rtc_language_support/nls/ko-kr/htmlLanguage":7355,"rtc_xml_language_support/resources/rtc_language_support/nls/zh-cn/htmlLanguage":7356,"rtc_xml_language_support/resources/rtc_language_support/nls/htmlLanguage":7357,"rtc_xml_language_support/plugins/autoindenting/preferences/HtmlAutoIndentingPreferenceProvider":7358,"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/HtmlEnableSyntaxHighlightingPreferenceProvider":7359,"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/HtmlSyntaxHighlighterPreferencesProvider":7360,"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/HtmlSyntaxHighlighterSettingKeys":7361,"dojo/i18n!rtc_xml_language_support/resources/rtc_language_support/nls/xmlLanguage":7362,"rtc_xml_language_support/resources/rtc_language_support/nls/ja-jp/xmlLanguage":7363,"rtc_xml_language_support/resources/rtc_language_support/nls/ko-kr/xmlLanguage":7364,"rtc_xml_language_support/resources/rtc_language_support/nls/zh-cn/xmlLanguage":7365,"rtc_xml_language_support/resources/rtc_language_support/nls/xmlLanguage":7366,"rtc_xml_language_support/plugins/autoindenting/XmlAutoIndentServiceProvider":7367,"rtc_xml_language_support/plugins/autoindenting/preferences/XmlAutoIndentingPreferenceProvider":7368,"rtc_xml_language_support/plugins/smartindenting/XmlSmartIndentingProvider":7369,"rtc_xml_language_support/plugins/syntaxhighlighter/XmlSyntaxHighlighterProvider":7370,"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/XmlEnableSyntaxHighlightingPreferenceProvider":7371,"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/XmlSyntaxHighlighterPreferencesProvider":7372,"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/XmlSyntaxHighlighterSettingKeys":7373,"rtc_xml_language_support/plugins/tokenizer/XmlTokenizerProvider":7374,"rtc_xml_language_support/plugins/tokenizer/XmlTokenizer":7375,"CodeMirror/MW/htmlmixed":7376,"rtc_xml_language_support/plugins/tokenizer/XmlTokenManagerProvider":7377,"xmlpanel-ui/LanguageHtmlSettingKeys":7378,"xmlpanel-ui/HtmlLanguageRegistry":7379,"xmlpanel-ui/LanguageXmlPanel":7380,"xmlpanel-ui/LanguageXmlSettingKeys":7381,"xmlpanel-ui/XmlLanguageRegistry":7382,"xmlpanel-ui/LanguageHtmlEnableSyntaxHighlighterPreferenceProvider":7383,"xmlpanel-ui/LanguageHtmlPanelSyntaxHighlighterPreferencesProvider":7384,"xmlpanel-ui/LanguageXmlEnableSyntaxHighlighterPreferenceProvider":7385,"xmlpanel-ui/LanguageXmlPanelSyntaxHighlighterPreferencesProvider":7386,"xmlpanel-ui/LanguageXmlPanelSyntaxHighlighterProvider":7387,"javascriptpanel-ui/l10n/nls/ja-jp/LanguageJavaScriptPanelLabels":7388,"javascriptpanel-ui/l10n/nls/ko-kr/LanguageJavaScriptPanelLabels":7389,"javascriptpanel-ui/l10n/nls/zh-cn/LanguageJavaScriptPanelLabels":7390,"javascriptpanel-ui/l10n/nls/LanguageJavaScriptPanelLabels":7391,"javascriptpanel-ui/LanguageJavaScriptPanel":7392,"javascriptpanel-ui/LanguageJavaScriptSettingKeys":7393,"javascriptpanel-ui/JavaScriptLanguageRegistry":7394,"dojo/i18n!rtc_javascript_language_support/resources/rtc_language_support/nls/javascriptLanguage":7395,"rtc_javascript_language_support/resources/rtc_language_support/nls/ja-jp/javascriptLanguage":7396,"rtc_javascript_language_support/resources/rtc_language_support/nls/ko-kr/javascriptLanguage":7397,"rtc_javascript_language_support/resources/rtc_language_support/nls/zh-cn/javascriptLanguage":7398,"rtc_javascript_language_support/resources/rtc_language_support/nls/javascriptLanguage":7399,"rtc_javascript_language_support/plugins/autoindenting/JavaScriptAutoIndentServiceProvider":7400,"rtc_javascript_language_support/plugins/autoindenting/preferences/JavaScriptAutoIndentingPreferenceProvider":7401,"rtc_javascript_language_support/plugins/smartindenting/JavaScriptSmartIndentingProvider":7402,"rtc_javascript_language_support/plugins/syntaxhighlighter/JavaScriptSyntaxHighlighterProvider":7403,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JavaScriptEnableSyntaxHighlightingPreferenceProvider":7404,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JavaScriptSyntaxHighlighterPreferencesProvider":7405,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JavaScriptSyntaxHighlighterSettingKeys":7406,"rtc_javascript_language_support/plugins/tokenizer/JavaScriptTokenizerProvider":7407,"rtc_javascript_language_support/plugins/tokenizer/JavaScriptTokenizer":7408,"rtc_javascript_language_support/plugins/tokenizer/JavaScriptTokenManagerProvider":7409,"javascriptpanel-ui/LanguageJsonPanel":7410,"javascriptpanel-ui/LanguageJsonSettingKeys":7411,"javascriptpanel-ui/JsonLanguageRegistry":7412,"dojo/i18n!rtc_javascript_language_support/resources/rtc_language_support/nls/jsonLanguage":7413,"rtc_javascript_language_support/resources/rtc_language_support/nls/ja-jp/jsonLanguage":7414,"rtc_javascript_language_support/resources/rtc_language_support/nls/ko-kr/jsonLanguage":7415,"rtc_javascript_language_support/resources/rtc_language_support/nls/zh-cn/jsonLanguage":7416,"rtc_javascript_language_support/resources/rtc_language_support/nls/jsonLanguage":7417,"rtc_javascript_language_support/plugins/autoindenting/preferences/JsonAutoIndentingPreferenceProvider":7418,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JsonEnableSyntaxHighlightingPreferenceProvider":7419,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JsonSyntaxHighlighterPreferencesProvider":7420,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JsonSyntaxHighlighterSettingKeys":7421,"javascriptpanel-ui/LanguageTypeScriptPanel":7422,"javascriptpanel-ui/LanguageTypeScriptSettingKeys":7423,"javascriptpanel-ui/TypeScriptLanguageRegistry":7424,"dojo/i18n!rtc_javascript_language_support/resources/rtc_language_support/nls/typescriptLanguage":7425,"rtc_javascript_language_support/resources/rtc_language_support/nls/ja-jp/typescriptLanguage":7426,"rtc_javascript_language_support/resources/rtc_language_support/nls/ko-kr/typescriptLanguage":7427,"rtc_javascript_language_support/resources/rtc_language_support/nls/zh-cn/typescriptLanguage":7428,"rtc_javascript_language_support/resources/rtc_language_support/nls/typescriptLanguage":7429,"rtc_javascript_language_support/plugins/autoindenting/preferences/TypeScriptAutoIndentingPreferenceProvider":7430,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/TypeScriptEnableSyntaxHighlightingPreferenceProvider":7431,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/TypeScriptSyntaxHighlighterPreferencesProvider":7432,"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/TypeScriptSyntaxHighlighterSettingKeys":7433,"javascriptpanel-ui/LanguageJavaScriptEnableSyntaxHighlighterPreferenceProvider":7434,"javascriptpanel-ui/LanguageJavaScriptPanelSyntaxHighlighterPreferencesProvider":7435,"javascriptpanel-ui/LanguageJavaScriptPanelSyntaxHighlighterProvider":7436,"javascriptpanel-ui/LanguageJsonEnableSyntaxHighlighterPreferenceProvider":7437,"javascriptpanel-ui/LanguageJsonPanelSyntaxHighlighterPreferencesProvider":7438,"javascriptpanel-ui/LanguageTypeScriptEnableSyntaxHighlighterPreferenceProvider":7439,"javascriptpanel-ui/LanguageTypeScriptPanelSyntaxHighlighterPreferencesProvider":7440,"editor_actions/_impl/NewScriptAction":7441,"filesystem_services/ListFolderService":7442,"filesystem_services/OPCAttributeService":7444,"filesystem_services/VFSAttributesService":7445,"filesystem_services/FileOperationsService":7446,"filesystem_services/FileOpenPluginServiceProvider":7447,"filesystem_services/FileOpenPluginService":7448,"filesystem_services/FileIconPluginService":7449,"filesystem_services/FileIconProvider":7450,"editor_actions/l10n/gen/resources/editor_integration/nls/ja-jp/actions":7451,"editor_actions/l10n/gen/resources/editor_integration/nls/ko-kr/actions":7452,"editor_actions/l10n/gen/resources/editor_integration/nls/zh-cn/actions":7453,"editor_actions/l10n/gen/resources/editor_integration/nls/actions":7454,"editor_actions/_impl/NewLiveScriptAction":7455,"editor_actions/_impl/NewFunctionAction":7456,"editor_actions/_impl/NewClassAction":7457,"editor_actions/_impl/OpenAsTextAction":7458,"dojo/i18n!physmod_simscape_language_editor/resources/rtc_language_support/nls/simscapeLanguage":7459,"physmod_simscape_language_editor/resources/rtc_language_support/nls/ja-jp/simscapeLanguage":7460,"physmod_simscape_language_editor/resources/rtc_language_support/nls/ko-kr/simscapeLanguage":7461,"physmod_simscape_language_editor/resources/rtc_language_support/nls/zh-cn/simscapeLanguage":7462,"physmod_simscape_language_editor/resources/rtc_language_support/nls/simscapeLanguage":7463,"physmod_simscape_language_editor/plugins/autoindenting/SimscapeAutoIndentServiceProvider":7464,"physmod_simscape_language_editor/plugins/autoindenting/preferences/SimscapeAutoIndentingPreferenceProvider":7465,"physmod_simscape_language_editor/plugins/smartindenting/SimscapeSmartIndentingProvider":7466,"physmod_simscape_language_editor/plugins/syntaxhighlighter/SimscapeSyntaxHighlightingColorContributorProvider":7467,"physmod_simscape_language_editor/plugins/syntaxhighlighter/SimscapeColorMapDefaults":7468,"physmod_simscape_language_editor/plugins/syntaxhighlighter/SimscapeSyntaxHighlighterProvider":7469,"physmod_simscape_language_editor/plugins/syntaxhighlighter/preferences/SimscapeEnableSyntaxHighlightingPreferenceProvider":7470,"physmod_simscape_language_editor/plugins/syntaxhighlighter/preferences/SimscapeSyntaxHighlighterPreferencesProvider":7471,"physmod_simscape_language_editor/plugins/syntaxhighlighter/preferences/SimscapeSyntaxHighlighterPreferences":7472,"physmod_simscape_language_editor/plugins/syntaxhighlighter/preferences/SimscapeSyntaxHighlighterSettingKeys":7473,"physmod_simscape_language_editor/plugins/tokenizer/SimscapeTokenizerProvider":7474,"physmod_simscape_language_editor/plugins/tokenizer/SimscapeTokenizer":7475,"physmod_simscape_language_editor/plugins/tokenizer/mode/SimscapeMode":7476,"physmod_simscape_language_editor/plugins/tokenizer/SimscapeTokenManagerProvider":7477,"physmod_simscape_language_editor/plugins/tokenizer/matching/SimscapeTokenMatcherRulesProvider":7478,"physmod_simscape_language_editor/plugins/tokenizer/matching/SimscapeTokenMatcherRules":7479,"cd_up_one_dir_button/_impl/CdUpOneDirAction":7480,"browse_for_folder_button/_impl/BrowseForFolderAction":7481,"dojo/text!mw-filebrowser/filebrowser.html":7482,"dgrid/extensions/DnD":7483,"xstyle/has-class":7486,"dgrid/OnDemandList":7496,"dgrid/_StoreMixin":7497,"dgrid/extensions/ColumnHider":7498,"dojo/i18n!dgrid/extensions/nls/columnHider":7499,"dgrid/extensions/nls/es/columnHider":7500,"dgrid/extensions/nls/ro/columnHider":7501,"dgrid/extensions/nls/columnHider":7502,"dgrid/extensions/ColumnReorder":7505,"mw-filebrowser/actions/keyboard/KeyboardActionsManager":7508,"mw-filebrowser/grid/draganddrop/FileBrowserGridDnDSource":7509,"mw-filebrowser/grid/draganddrop/FileBrowserGridDnDAvatar":7510,"mw-filebrowser/l10n/nls/FileBrowserResources":7511,"mw-filebrowser/grid/workarounds/DnDFixes":7512,"mw-filebrowser/grid/workarounds/ColumnResizer":7513,"mw-filebrowser/grid/GridHelper":7515,"mw-filebrowser/controllers/FBControllerInterface":7516,"mw-filebrowser/controllers/FBTreeController":7517,"mw-filebrowser/controllers/FBFocusController":7518,"mw-filebrowser/controllers/FBStoreController":7519,"mw-filebrowser/controllers/FBFileController":7520,"mw-filebrowser/events/FBEventRegistry":7521,"dojo/text!filechooser-ui/fileChooserTemplate.html":7522,"filechooser-ui/l10n/gen/resources/filechooser/nls/ja-jp/filechooser":7523,"filechooser-ui/l10n/gen/resources/filechooser/nls/ko-kr/filechooser":7524,"filechooser-ui/l10n/gen/resources/filechooser/nls/zh-cn/filechooser":7525,"filechooser-ui/l10n/gen/resources/filechooser/nls/filechooser":7526,"filesystem-js-utils/EventEmitter":7527,"filechooser-ui/columns/ColumnRegistry":7528,"mw-filebrowser/grid/workarounds/tree":7529,"mw-filebrowser/columns/groupingactions/SizeGroupingAction":7530,"mw-filebrowser/columns/helpers/DateComparator":7531,"mw-filebrowser/columns/groupingactions/DateModifiedGroupingAction":7532,"mw-filebrowser/columns/groupingactions/TypeGroupingAction":7533,"filechooser-ui/FileChooserActionManager":7534,"project-action-ui/_impl/AddToProject":7535,"project-action-ui/l10n/resources/MATLAB/project/nls/ja-jp/view_action":7536,"project-action-ui/l10n/resources/MATLAB/project/nls/ko-kr/view_action":7537,"project-action-ui/l10n/resources/MATLAB/project/nls/zh-cn/view_action":7538,"project-action-ui/l10n/resources/MATLAB/project/nls/view_action":7539,"project-util-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_util":7540,"project-util-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_util":7541,"project-util-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_util":7542,"project-util-ui/l10n/gen/resources/MATLAB/project/nls/view_util":7543,"project-action-ui/_impl/AddToProjectPathSection":7544,"project-action-ui/_impl/AddToProjectPath":7545,"project-action-ui/_impl/AddToProjectPathRecursive":7546,"project-action-ui/_impl/RemoveFromProjectPathSection":7547,"project-action-ui/_impl/RemoveFromProjectPath":7548,"project-action-ui/_impl/RemoveFromProjectPathRecursive":7549,"project-action-ui/_impl/RemoveFromProject":7550,"project-action-ui/_impl/SetStartupFile":7551,"project-action-ui/_impl/ClearStartupFile":7552,"project-action-ui/_impl/SetShutdownFile":7553,"project-action-ui/_impl/ClearShutdownFile":7554,"project-action-ui/_impl/Cut":7555,"project-action-ui/_impl/Copy":7556,"project-action-ui/_impl/Paste":7557,"sharing_actions/_impl/ShareAction":7558,"sharing_actions/_impl/ManageShareAction":7559,"mldosharing-js/ui/SharingManager":7560,"mldo-embedded-client/EmbeddedClient":7561,"mldosharing-js/ui/ShareDialog":7562,"dojo/text!mldosharing-js/ui/shareDialogTemplate.html":7563,"mldosharing-js/service/SharingDataService":7564,"sharing_actions/resources/MATLABDrive/nls/ja-jp/desktop":7565,"sharing_actions/resources/MATLABDrive/nls/ko-kr/desktop":7566,"sharing_actions/resources/MATLABDrive/nls/zh-cn/desktop":7567,"sharing_actions/resources/MATLABDrive/nls/desktop":7568,"sharing_actions/_impl/ManageLinkAction":7569,"richcontent_preview_plugin/_impl/RichContentPreviewPlugin":7570,"richcontent_preview_plugin/_impl/PreviewServerRequest":7571,"mlapp_preview/_impl/MlappPreviewPlugin":7572,"matlabdrive_js/_impl/MATLABDriveAction":7573,"matlabdrive_js/_impl/RecentActivityAction":7574,"matlabdrive_js/resources/MATLABDrive/nls/ja-jp/desktop":7575,"matlabdrive_js/resources/MATLABDrive/nls/ko-kr/desktop":7576,"matlabdrive_js/resources/MATLABDrive/nls/zh-cn/desktop":7577,"matlabdrive_js/resources/MATLABDrive/nls/desktop":7578,"matlabdrive_js/_impl/ViewMLDOAction":7579,"pathdataservice-js/js/PathDataService":7580,"filesystem-js-utils/promise/ExpiredPromiseError":7581,"tripwire_button/_impl/TripwireButtonAction":7582,"tripwire_button/resources/MATLABDrive/nls/ja-jp/desktop":7583,"tripwire_button/resources/MATLABDrive/nls/ko-kr/desktop":7584,"tripwire_button/resources/MATLABDrive/nls/zh-cn/desktop":7585,"tripwire_button/resources/MATLABDrive/nls/desktop":7586,"tripwire_button/_impl/TripwireDialog":7587,"dijit/WidgetSet":7588,"dijit/selection":7589,"dijit/_base/place":7590,"dijit/_base/popup":7591,"dijit/_base/scroll":7592,"dijit/_base/sniff":7593,"dijit/_base/typematic":7594,"dijit/_base/wai":7595,"dijit/_base/window":7596,"dojo/text!dijit/form/templates/ComboButton.html":7597,"dojo/text!dijit/templates/CheckedMenuItem.html":7598,"dojo/text!dijit/templates/MenuSeparator.html":7599,"variableeditor/VariableEditorDnD":7600,"workspacebrowser/WorkspaceBrowserManager":7601,"dojo/i18n!workspacebrowser/app/l10n/nls/app":7602,"workspacebrowser/app/l10n/nls/ja-jp/app":7603,"workspacebrowser/app/l10n/nls/zh-cn/app":7604,"workspacebrowser/app/l10n/nls/ko-kr/app":7605,"workspacebrowser/app/l10n/nls/app":7606,"MOTW/openwith/module/accessTiers/AccessTierService":7607,"MOTW/openwith/module/actions/ActionReducer":7608,"MOTW/l10n/nls/ja-jp/toolstrip":7609,"MOTW/l10n/nls/ko-kr/toolstrip":7610,"MOTW/l10n/nls/zh-cn/toolstrip":7611,"MOTW/l10n/nls/toolstrip":7612,"MOTW/addons/AddOnsService":7613,"MOTW/addons/AddOnsToolstripActions":7614,"MOTW/l10n/nls/addons":7615,"MOTW/addons/ExplorerWindowService":7616,"MOTW/addons/AddOnsWindow":7617,"MOTW/iframecontainer/IframeWidget":7618,"dojo/text!MOTW/iframecontainer/IframeWidgetTemplate.html":7619,"dojo/text!MOTW/iframecontainer/IframeWidgetUnsupportedBrowserTemplate.html":7620,"MOTW/addons/GeneralPurposeMessageHandler":7621,"MOTW/addons/GeneralPurposeMessageCallbacks":7622,"MOTW/addons/InstalledTooltipNotification":7623,"MOTW/addons/BalloonTooltipDialog":7624,"MOTW/addons/widgets/BalloonTooltipNotificationContentWidget":7625,"dojo/text!MOTW/addons/templates/BalloonTooltipNotificationContentWidget.html":7626,"MOTW/addons/SaveToMatlabDriveDialog":7627,"MOTW/addons/ToolstripEntry":7628,"MOTW/addons/PopupConfig":7629,"addressbar-ui/AddressBar":7630,"addressbar-ui/toolbaractions/ToolbarActionRegistry":7631,"addressbar-ui/toolbaractions/ToolbarActionManager":7632,"addressbar-ui/l10n/gen/resources/addressbar/nls/ja-jp/addressbar":7633,"addressbar-ui/l10n/gen/resources/addressbar/nls/ko-kr/addressbar":7634,"addressbar-ui/l10n/gen/resources/addressbar/nls/zh-cn/addressbar":7635,"addressbar-ui/l10n/gen/resources/addressbar/nls/addressbar":7636,"mw-navigationbar/EditableNavBarMixin":7637,"mw-navigationbar/LocationHistoryMixin":7638,"dojo/text!addressbar-ui/addressbarTemplate.html":7639,"dojo/i18n!MOTW/l10n/nls/addressBar":7640,"MOTW/l10n/nls/addressBar":7641,"MOTW/toolstrip/appsGallery/AppsGalleryManager":7642,"MOTW/toolstrip/appsGallery/ToolstripEntry":7643,"MOTW/toolstrip/appsGallery/ToolstripTags":7644,"MOTW/toolstrip/appsGallery/PushButtonActions":7645,"MOTW/addons/utils/AddOnsWindowUtil":7646,"MOTW/addons/MatlabWorkerCommunicator":7647,"MOTW/toolstrip/appsGallery/OpenInstallAppDialog":7648,"MOTW/toolstrip/configs/global/AppsGalleryPopupConfig":7649,"dojo/i18n!MOTW/l10n/nls/appsgallery":7650,"MOTW/l10n/nls/ja-jp/appsgallery":7651,"MOTW/l10n/nls/ko-kr/appsgallery":7652,"MOTW/l10n/nls/zh-cn/appsgallery":7653,"MOTW/l10n/nls/appsgallery":7654,"MOTW/audio/AudioManager":7655,"dojo/i18n!MOTW/l10n/nls/audio":7656,"MOTW/l10n/nls/audio":7657,"MOTW/audio/AudioHandler":7658,"MOTW/authorizationdetails/AuthorizationDetailsDataService":7659,"MOTW/openwith/module/editor/BufferedEditorService":7660,"dojo/i18n!MOTW/l10n/nls/cfb":7661,"MOTW/l10n/nls/ja-jp/cfb":7662,"MOTW/l10n/nls/ko-kr/cfb":7663,"MOTW/l10n/nls/zh-cn/cfb":7664,"MOTW/l10n/nls/cfb":7665,"currentfolderbrowser-ui/CurrentFolderBrowser":7666,"dojo/text!currentfolderbrowser-ui/currentfolderbrowserTemplate.html":7667,"matlab_sourcecontrol_javascript-ui/SourceControlManager":7668,"matlab_sourcecontrol_javascript-ui/CommunicatorProvider":7669,"matlab_sourcecontrol_javascript-ui/SourceControlCommunicator":7670,"matlab_sourcecontrol_javascript-ui/IconLookupTable":7671,"matlab_sourcecontrol_javascript-ui/StatusCache":7672,"matlab_sourcecontrol_javascript-ui/SourceControlStatusColumn":7673,"matlab_sourcecontrol_javascript-ui/TooltipLookupTable":7674,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/ja-jp/cfb":7675,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/ko-kr/cfb":7676,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/zh-cn/cfb":7677,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/cfb":7678,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/ja-jp/actions":7679,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/ko-kr/actions":7680,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/zh-cn/actions":7681,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/actions":7682,"currentfolderbrowser-ui/actions/dialogs/DeleteReplaceConfirmationDialog":7683,"currentfolderbrowser-ui/actions/dialogs/MessageServiceHelperForCurrentFolderBrowserDialogs":7684,"currentfolderbrowser-ui/actions/matlabOnline/ActionRegistry":7685,"currentfolderbrowser-ui/actions/RunAction":7686,"currentfolderbrowser-ui/actions/path/IndicateFilesNotOnPathAction":7687,"currentfolderbrowser-ui/actions/CfbActionManager":7688,"filebrowser_utils-ui/js/actions/OpenAction":7689,"filebrowser_utils-ui/js/actions/RenameAction":7690,"filebrowser_utils-ui/js/actions/DeleteAction":7691,"filebrowser_utils-ui/js/actions/ShowAction":7692,"filebrowser_utils-ui/js/actions/ShowColumnAction":7693,"filebrowser_utils-ui/js/actions/SortByAction":7694,"filebrowser_utils-ui/js/actions/SortByColumnAction":7695,"filebrowser_utils-ui/js/actions/SortByDescendingAction":7696,"filebrowser_utils-ui/js/actions/GroupByAction":7697,"filebrowser_utils-ui/js/actions/GroupByColumnAction":7698,"filebrowser_utils-ui/js/actions/GroupModeAction":7699,"filebrowser_utils-ui/js/actions/NewAction":7700,"filebrowser_utils-ui/js/actions/NewFolderAction":7701,"filebrowser_utils-ui/js/actions/CreateZipAction":7702,"filebrowser_utils-ui/js/ActionPluginManagerFactory":7703,"currentfolderbrowser-ui/actions/CfbCommunicator":7704,"currentfolderbrowser-ui/clipboard/ClipboardManager":7705,"currentfolderbrowser-ui/upload/UploadUtils":7706,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/ja-jp/upload":7707,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/ko-kr/upload":7708,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/zh-cn/upload":7709,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/upload":7710,"currentfolderbrowser-ui/upload/UploadWidget":7711,"currentfolderbrowser-ui/upload/legacy/LegacyUploadWidget":7712,"dojo/text!currentfolderbrowser-ui/upload/legacy/LegacyUploadWidgetTemplate.html":7713,"currentfolderbrowser-ui/service/FileDataService":7714,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/ja-jp/fileDataServiceFaultMessages":7715,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/ko-kr/fileDataServiceFaultMessages":7716,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/zh-cn/fileDataServiceFaultMessages":7717,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/fileDataServiceFaultMessages":7718,"currentfolderbrowser-ui/service/FileDataStore":7719,"filesystem-js-utils/MeasurementUtils":7720,"currentfolderbrowser-ui/actionsMenu/CurrentFolderActions":7721,"currentfolderbrowser-ui/actionsMenu/NewMenuRegistry":7722,"currentfolderbrowser-ui/actionsMenu/ReportsMenuRegistry":7723,"currentfolderbrowser-ui/actionsMenu/FindFilesAction":7724,"currentfolderbrowser-ui/actionsMenu/CfbActionMenuListener":7725,"currentfolderbrowser-ui/actionsMenu/ShowMenuRegistry":7726,"currentfolderbrowser-ui/actionsMenu/GroupByMenuRegistry":7727,"currentfolderbrowser-ui/columns/SourceControlStatusColumnProvider":7728,"dojo/i18n!cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/core":7729,"cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/ja-jp/core":7730,"cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/ko-kr/core":7731,"cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/zh-cn/core":7732,"cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/core":7733,"cmlink-core-ui/RolledUpFolderStatusCache":7734,"currentfolderbrowser-ui/actions/path/PathActionMixin":7735,"currentfolderbrowser-ui/actions/layout/CFBLayoutPersistenceMixin":7736,"currentfolderbrowser-ui/actions/preview/PreviewMixin":7737,"currentfolderbrowser-ui/actions/preview/PreviewPopupContentProvider":7738,"currentfolderbrowser-ui/actions/preview/PreviewPopupContent":7739,"currentfolderbrowser-ui/actions/preview/PreviewPluginContent":7740,"currentfolderbrowser-ui/actions/preview/PreviewAction":7741,"currentfolderbrowser-ui/actions/preview/PreviewPluginManagerFactory":7742,"currentfolderbrowser-ui/actions/preview/PreviewPluginManager":7743,"commandwindow/CommandWindowModule":7744,"dojo/text!commandwindow/view/commandWindow2.html":7745,"commandwindow/PluginRegistry":7746,"commandwindow/commands/ClearCommandWindowProvider":7747,"commandwindow/commands/ClearCommandWindow":7748,"commandwindow/resources/commandwindow/nls/ja-jp/commandwindow":7749,"commandwindow/resources/commandwindow/nls/ko-kr/commandwindow":7750,"commandwindow/resources/commandwindow/nls/zh-cn/commandwindow":7751,"commandwindow/resources/commandwindow/nls/commandwindow":7752,"commandwindow/commands/HomeCommandProvider":7753,"commandwindow/commands/HomeCommand":7754,"commandwindow/commands/PauseHandlerProvider":7755,"commandwindow/commands/PauseHandler":7756,"commandwindow/core/history/CommandWindowHistoryProvider":7757,"commandwindow/core/history/CommandWindowHistory":7758,"commandwindow/utils/TruncatingBuffer":7759,"commandwindow/utils/ContentManipulationUtils":7760,"commandwindow/core/output/model/OutputNodeContentConverterProvider":7761,"commandwindow/core/output/model/OutputNodeContentConverter":7762,"commandwindow/core/output/coordinateconverter/OutputNodeCoordinateConverterProvider":7763,"commandwindow/core/output/coordinateconverter/OutputNodeCoordinateConverter":7764,"commandwindow/core/output/insertionrules/OutputNodeInsertionRulesProvider":7765,"commandwindow/core/output/insertionrules/OutputNodeInsertionRules":7766,"commandwindow/core/output/view/OutputNodeLayouterProvider":7767,"commandwindow/core/output/view/OutputNodeLayouter":7768,"commandwindow/core/prompt/PromptProvider":7769,"commandwindow/core/prompt/Prompt":7770,"dojo/i18n!commandwindow/resources/commandwindow/nls/cmdPrompts":7771,"commandwindow/resources/commandwindow/nls/ja-jp/cmdPrompts":7772,"commandwindow/resources/commandwindow/nls/ko-kr/cmdPrompts":7773,"commandwindow/resources/commandwindow/nls/zh-cn/cmdPrompts":7774,"commandwindow/resources/commandwindow/nls/cmdPrompts":7775,"commandwindow/core/promptinput/PromptInputProvider":7776,"commandwindow/core/promptinput/PromptInput":7777,"commandwindow/core/prompt/coordinateConverter/PromptNodeCoordinateConverterProvider":7778,"commandwindow/core/prompt/coordinateConverter/PromptNodeCoordinateConverter":7779,"commandwindow/core/prompt/insertionRules/PromptNodeInsertionRulesProvider":7780,"commandwindow/core/prompt/insertionRules/PromptNodeInsertionRules":7781,"commandwindow/plugins/commandhistorynavigation/CommandHistoryNavigationProvider":7782,"commandwindow/plugins/commandhistorynavigation/CommandHistoryNavigation":7783,"commandhistory/js/CommandHistoryPopupWidget":7784,"mw-dialog-utils/DialogDisplayManager":7785,"mw-dialog-utils/l10n/nls/ja-jp/dialog":7786,"mw-dialog-utils/l10n/nls/ko-kr/dialog":7787,"mw-dialog-utils/l10n/nls/zh-cn/dialog":7788,"mw-dialog-utils/l10n/nls/dialog":7789,"mw-dialog-utils/FloatingPane":7790,"dojox/layout/ContentPane":7791,"dojox/html/_base":7792,"dojo/text!dojox/layout/resources/FloatingPane.html":7793,"dojox/layout/Dock":7794,"dojo/text!mw-dialog-utils/floatingPaneTemplate.html":7795,"commandhistory/js/CommandHistoryTable":7796,"commandhistory/js/renderers/GutterRenderer":7797,"commandhistory/js/renderers/CommandRenderer":7798,"commandhistory/js/renderers/ErrorRenderer":7799,"commandhistory/l10n/nls/commandhistory":7800,"commandhistory/js/CommandHistoryDockedWidget":7801,"commandhistory/js/CommandHistoryDataService":7802,"commandhistory/js/setupModel":7803,"commandhistory/js/RecordTransactionListener":7804,"commandwindow/plugins/autocompletions/AutoCompletionRequestModifierProvider":7805,"commandwindow/plugins/autocompletions/AutoCompletionRequestModifier":7806,"commandwindow/plugins/autocompletions/AutoCompletionDefaultTabActionProvider":7807,"commandwindow/plugins/autocompletions/AutoCompletionDefaultTabAction":7808,"commandwindow/plugins/autocompletions/AutoCompletionPreferenceProvider":7809,"commandwindow/plugins/commandwindowstatehandler/CommandWindowStateHandlerProvider":7810,"commandwindow/plugins/commandwindowstatehandler/CommandWindowStateHandler":7811,"commandwindow/plugins/CmdPlainTextMimeConverterProvider":7812,"commandwindow/plugins/contextmenu/CWContextMenuModelProvider":7813,"commandwindow/plugins/contextmenu/CWContextMenuModel":7814,"commandwindow/plugins/evaluateselection/EvaluateSelectionProvider":7815,"commandwindow/plugins/evaluateselection/EvaluateSelection":7816,"dojo/i18n!commandwindow/resources/commandwindow/nls/actions":7817,"commandwindow/resources/commandwindow/nls/ja-jp/actions":7818,"commandwindow/resources/commandwindow/nls/ko-kr/actions":7819,"commandwindow/resources/commandwindow/nls/zh-cn/actions":7820,"commandwindow/resources/commandwindow/nls/actions":7821,"commandwindow/plugins/interrupt/InterruptCommandWindowProvider":7822,"commandwindow/plugins/interrupt/InterruptCommandWindow":7823,"commandwindow/plugins/PromptlessTextGenerator":7824,"commandwindow/plugins/CmdUnicodeStringMimeConverterProvider":7825,"commandwindow/plugins/CmdUnicodeStringMimeConverter":7826,"commandwindow/plugins/openselection/OpenSelectionProvider":7827,"commandwindow/plugins/openselection/OpenSelection":7828,"commandwindow/plugins/executionhandler/ExecutionHandlerProvider":7829,"commandwindow/plugins/executionhandler/ExecutionHandler":7830,"commandwindow/plugins/gettingstartedbanner/GettingStartedBannerProvider":7831,"commandwindow/plugins/gettingstartedbanner/GettingStartedBanner":7832,"commandwindow/plugins/keyhandler/CommandWindowKeyHandlerProvider":7833,"commandwindow/plugins/keyhandler/CommandWindowKeyHandler":7834,"commandwindow/plugins/promptinputhandler/PromptInputHandlerProvider":7835,"commandwindow/plugins/promptinputhandler/PromptInputHandler":7836,"commandwindow/plugins/service/CodingUIBackendCodeProviderProvider":7837,"commandwindow/plugins/service/CodingUIBackendCodeProvider":7838,"commandwindow/plugins/syntaxhighlighting/MatlabTokensHandlerProvider":7839,"commandwindow/plugins/syntaxhighlighting/MatlabTokensHandler":7840,"commandwindow/plugins/undoredo/UndoRedoControllerProvider":7841,"commandwindow/plugins/undoredo/UndoRedoController":7842,"commandwindow/plugins/wraplines/WrapLinesProvider":7843,"commandwindow/plugins/wraplines/WrapLines":7844,"commandwindow/core/prompt/view/PromptLayouterProvider":7845,"commandwindow/core/prompt/view/PromptLayouter":7846,"commandwindow/view/CommandWindowViewProvider":7847,"commandwindow/view/CommandWindowView":7848,"commandwindow/plugins/accessibility/screenreader/ScreenReaderOutputServiceProvider":7849,"commandwindow/plugins/accessibility/screenreader/ScreenReaderOutputService":7850,"commandwindow/plugins/accessibility/screenreader/ScreenReaderServiceProvider":7851,"commandwindow/plugins/accessibility/screenreader/ScreenReaderService":7852,"commandwindow/preferences/numberoflinesinscrollbuffer/NumberOfLinesInScrollBufferProvider":7853,"commandwindow/preferences/numberoflinesinscrollbuffer/NumberOfLinesInScrollBuffer":7854,"commandwindow/preferences/commandwindowcolors/CommandWindowColorsProvider":7855,"commandwindow/preferences/commandwindowcolors/CommandWindowColors":7856,"commandwindow/preferences/showtyposuggestions/ShowTypoSuggestionsProvider":7857,"commandwindow/preferences/showtyposuggestions/ShowTypoSuggestions":7858,"commandwindow/plugins/commandwindowsize/CommandWindowSizeProvider":7859,"commandwindow/plugins/commandwindowsize/CommandWindowSize":7860,"commandwindow/plugins/processkey/ProcessKeyProvider":7861,"commandwindow/plugins/processkey/ProcessKey":7862,"liveeditor/l10n/nls/matlabunit":7863,"MOTW/dialog/NewFileFolderUtil":7864,"dojo/text!MOTW/dialog/NewFileFolderTemplate.html":7865,"MOTW/l10n/nls/dialog":7866,"dojo/text!MOTW/dialog/SaveAsTemplate.html":7867,"dojo/text!MOTW/dialog/SpecifyNewFilenameTemplate.html":7868,"currentfolderbrowser-ui/actions/gds/OpenAction":7869,"currentfolderbrowser-ui/actions/gds/DownloadAction":7870,"MOTW/l10n/nls/about":7871,"dojo/text!MOTW/motw/about.html":7872,"matlab_preferences/l10n/nls/ja-jp/preferencePanel":7873,"matlab_preferences/l10n/nls/ko-kr/preferencePanel":7874,"matlab_preferences/l10n/nls/zh-cn/preferencePanel":7875,"matlab_preferences/l10n/nls/preferencePanel":7876,"matlab_preferences/preferencesUI/PreferenceUIFactory":7877,"matlab_preferences/preferencesUI/widgets/PreferenceUI":7878,"dojo/text!matlab_preferences/preferencesUI/widgets/templates/PreferenceUI.html":7879,"matlab_preferences/preferencesUI/PreferenceFetcher":7880,"matlab_preferences/preferencesUI/utils/NavigateToNodeListener":7881,"matlab_preferences/preferencesUI/PreferenceService":7882,"matlab_preferences/preferencesUI/widgets/PreferencePanelUIFigureWidget":7883,"dojo/text!matlab_preferences/preferencesUI/widgets/templates/PreferencePanelUIFigureWidget.html":7884,"matlab_preferences/preferencesUI/widgets/PreferenceTree":7885,"dojo/text!matlab_preferences/preferencesUI/widgets/templates/preferenceTree.html":7886,"matlab_preferences/preferencesUI/widgets/CustomRenderer":7887,"matlab_preferences/preferencesUI/widgets/PanelHeader":7888,"dojo/text!matlab_preferences/preferencesUI/widgets/templates/panelHeader.html":7889,"project-creation/NewProjectOverlay":7890,"project-creation/resources/MATLAB/project/nls/ja-jp/view_creation":7891,"project-creation/resources/MATLAB/project/nls/ko-kr/view_creation":7892,"project-creation/resources/MATLAB/project/nls/zh-cn/view_creation":7893,"project-creation/resources/MATLAB/project/nls/view_creation":7894,"project-creation/NewProjectForm/Controller":7895,"project-creation/NewProjectForm/FromSourcesLayout":7896,"clone/CloneDialog":7897,"clone/DefaultCloneForm":7898,"dojo/text!clone/templates/DefaultCloneForm.html":7899,"clone/resources/shared_cmlink/nls/ja-jp/view_clone":7900,"clone/resources/shared_cmlink/nls/ko-kr/view_clone":7901,"clone/resources/shared_cmlink/nls/zh-cn/view_clone":7902,"clone/resources/shared_cmlink/nls/view_clone":7903,"clone/ProgressDialog":7904,"MOTW/feedback/FeedbackDialogCreator":7905,"MOTW/feedback/FeedbackDialogService":7906,"MOTW/l10n/nls/feedbackDialog":7907,"mw-feedback-dialog/_AbstractFeedbackService":7908,"mw-feedback-dialog/FeedbackWithEmailContent":7909,"dojo/text!mw-feedback-dialog/templates/FeedbackWithEmailContentTemplate.html":7910,"mw-feedback-dialog/l10n/nls/ja-jp/feedbackDialog":7911,"mw-feedback-dialog/l10n/nls/ko-kr/feedbackDialog":7912,"mw-feedback-dialog/l10n/nls/zh-cn/feedbackDialog":7913,"mw-feedback-dialog/l10n/nls/feedbackDialog":7914,"mw-feedback-dialog/_AbstractFeedbackContent":7915,"mw-feedback-dialog/FeedbackDialog":7916,"dojo/text!mw-feedback-dialog/templates/FeedbackDialogTemplate.html":7917,"mw-feedback-dialog/FeedbackController":7918,"MOTW/feedback/FeedbackDialogEnum":7919,"MOTW/editor/plugins/save/MatlabOnlineSaveHandler":7920,"liveeditor/plugin/external/sysobj/SysObjTemplateCoreActionsConfig":7921,"liveeditor/l10n/nls/sysobj":7922,"commandhistory/js/CommandHistoryDockController":7923,"MOTW/openwith/module/worker/ConfigureWorker":7924,"addressbar-ui/AddressBarServiceProvider":7925,"addressbar-ui/AddressBarService":7926,"addressbar-ui/MSHelperForAddressBarServices":7927,"currentfolderbrowser-ui/service/FileDataServiceFaultHandler":7928,"dojo/i18n!executiondataservice/resources/executiondataservice/nls/executiondataservice":7929,"executiondataservice/resources/executiondataservice/nls/ja-jp/executiondataservice":7930,"executiondataservice/resources/executiondataservice/nls/ko-kr/executiondataservice":7931,"executiondataservice/resources/executiondataservice/nls/zh-cn/executiondataservice":7932,"executiondataservice/resources/executiondataservice/nls/executiondataservice":7933,"MW/cmdhistory/CommandHistoryStore":7934,"executiondataservice/ActionIdConstants":7935,"executiondataservice/dialog/PathUpdateDialog":7936,"dojo/text!executiondataservice/dialog/PathUpdateTemplate.html":7937,"dojo/i18n!executiondataservice/resources/dialog/nls/dialog":7938,"executiondataservice/resources/dialog/nls/ja-jp/dialog":7939,"executiondataservice/resources/dialog/nls/ko-kr/dialog":7940,"executiondataservice/resources/dialog/nls/zh-cn/dialog":7941,"executiondataservice/resources/dialog/nls/dialog":7942,"MOTW/browser/BrowserDataService":7943,"MOTW/motw/feature/FeatureDataService":7944,"MOTW/motw/feature/FeatureError":7945,"MOTW/motw/feature/PollableFeature":7946,"MOTW/motw/ShadowDataService":7947,"pathdataservice-js/js/PathDataServiceFaultHandler":7948,"dojo/i18n!pathdataservice-js/l10n/nls/PathDataServiceMessages":7949,"pathdataservice-js/l10n/nls/PathDataServiceMessages":7950,"searchservice-js/js/SearchServiceProvider":7951,"searchservice-js/js/SearchService":7952,"searchservice-js/js/SearchRequestManager":7953,"datatoolsservices/DialogHandlerService":7954,"MOTW/DiscoveryService":7955,"gbtfigure_uicontainer/UIContainerDivFigureFactory":7956,"gbtfigure_uicontainer/controller/UIContainerFigureController":7957,"gbtdivfigure/controller/DivFigureController":7958,"gbtdivfigure/view/FigureContentPane":7959,"gbtcomponents/controller/interface/DivFigureMsgFromClientInterface":7960,"MOTW/divfigure/DivFigureWidgetManager":7961,"MOTW/l10n/nls/ja-jp/figuretoolstrip":7962,"MOTW/l10n/nls/ko-kr/figuretoolstrip":7963,"MOTW/l10n/nls/zh-cn/figuretoolstrip":7964,"MOTW/l10n/nls/figuretoolstrip":7965,"MOTW/modules/divfigure/ui/FigureToolstripStateManager":7966,"MOTW/toolstrip/configs/figure/DefaultFigureTabGroupConfig":7967,"MOTW/toolstrip/configs/figure/PlotEditTabGroupConfig":7968,"MOTW/toolstrip/configs/figure/CameraTabGroupConfig":7969,"mw-help-matlab-colon/js/MatlabColonEvalService":7970,"dojo/i18n!mw-help-matlab-colon/l10n/nls/mw_help_matlab_colon_resources":7971,"mw-help-matlab-colon/l10n/nls/ja-jp/mw_help_matlab_colon_resources":7972,"mw-help-matlab-colon/l10n/nls/ko-kr/mw_help_matlab_colon_resources":7973,"mw-help-matlab-colon/l10n/nls/zh-cn/mw_help_matlab_colon_resources":7974,"mw-help-matlab-colon/l10n/nls/mw_help_matlab_colon_resources":7975,"MOTW/editor/EditorService":7976,"dojox/uuid/_base":7977,"MOTW/dnd/DnDUtils":7978,"MOTW/editor/EquationEditorTabGroupFactory":7979,"MOTW/toolstrip/configs/editor/EquationEditorTabGroupConfig":7980,"MOTW/l10n/nls/ja-jp/equationeditor":7981,"MOTW/l10n/nls/ko-kr/equationeditor":7982,"MOTW/l10n/nls/zh-cn/equationeditor":7983,"MOTW/l10n/nls/equationeditor":7984,"MOTW/l10n/nls/ja-jp/liveeditor":7985,"MOTW/l10n/nls/ko-kr/liveeditor":7986,"MOTW/l10n/nls/zh-cn/liveeditor":7987,"MOTW/l10n/nls/liveeditor":7988,"MOTW/toolstrip/equationGalleries/EquationEditorStructuresGalleryManager":7989,"MOTW/toolstrip/configs/editor/EquationEditorStructuresGalleryPopupConfig":7990,"MOTW/toolstrip/equationGalleries/EquationEditorSymbolsGalleryManager":7991,"MOTW/toolstrip/configs/editor/EquationEditorSymbolsGalleryPopupConfig":7992,"dojo/text!MOTW/editor/liveEditorWindow.html":7993,"liveeditor/config/CommonConfiguration":7996,"liveeditor/config/CommonConfigurationUtils":7997,"liveeditor/config/PluginConfiguration":7998,"common_features/CommonRegistry":7999,"rtc/margin/LineNumberDecoratorProvider":8e3,"common_features/plugin/debug/EditorBreadcrumbNavigationProvider":8001,"common_features/plugin/debug/EditorBreadcrumbNavigation":8002,"common_features/plugin/OpenToLineColumnProvider":8003,"common_features/plugin/OpenToLineColumn":8004,"common_features/plugin/savecompletednotifier/SaveCompletedNotifierProvider":8005,"common_features/plugin/savecompletednotifier/SaveCompletedNotifier":8006,"common_features/plugin/navigationhistory/NavigationPluginProvider":8007,"common_features/plugin/navigationhistory/NavigationPlugin":8008,"common_features/plugin/navigationhistory/NavigationModelProvider":8009,"common_features/plugin/navigationhistory/NavigationModel":8010,"common_features/plugin/navigationhistory/NavigationStackProvider":8011,"common_features/plugin/navigationhistory/NavigationStack":8012,"common_features/plugin/navigationhistory/NavigationDataMap":8013,"common_features/plugin/navigationhistory/NavigationCursorStackProvider":8014,"common_features/plugin/navigationhistory/NavigationCursorStack":8015,"common_features/plugin/navigationhistory/AbstractNavigationStack":8016,"common_features/plugin/navigationcontributors/FindNavigationContributorProvider":8017,"common_features/plugin/navigationcontributors/FindNavigationContributor":8018,"common_features/plugin/navigationhistory/AbstractNavigationContributor":8019,"common_features/plugin/navigationcontributors/GotoNavigationContributorProvider":8020,"common_features/plugin/navigationcontributors/GotoNavigationContributor":8021,"common_features/plugin/navigationhistory/NavigationButtonHandlerProvider":8022,"common_features/plugin/navigationhistory/NavigationButtonHandler":8023,"common_features/plugin/navigationcontributors/CursorNavigationContributorProvider":8024,"common_features/plugin/navigationcontributors/CursorNavigationContributor":8025,"common_features/plugin/navigationcontributors/KeyhandlerNavigationContributorProvider":8026,"common_features/plugin/navigationcontributors/KeyhandlerNavigationContributor":8027,"common_features/plugin/navigationcontributors/EditorAPIServiceNavigationContributorProvider":8028,"common_features/plugin/navigationcontributors/EditorAPIServiceNavigationContributor":8029,"common_features/plugin/navigationcontributors/HyperlinkNavigationContributorProvider":8030,"common_features/plugin/navigationcontributors/HyperlinkNavigationContributor":8031,"common_features/plugin/navigationcontributors/BookmarksNavigationContributorProvider":8032,"common_features/plugin/navigationcontributors/BookmarksNavigationContributor":8033,"common_features/plugin/navigationcontributors/OpenToLineColumnNavigationContributorProvider":8034,"common_features/plugin/navigationcontributors/OpenToLineColumnNavigationContributor":8035,"common_features/plugin/navigationcontributors/OpenSelectionNavigationContributorProvider":8036,"common_features/plugin/navigationcontributors/OpenSelectionNavigationContributor":8037,"rtc/plugins/language/matlab/codingui/liveapps/LiveAppTestHelper":8038,"rtc/view/PerformanceTestHelper":8039,"rtc/view/RTCPerformanceTestHelper":8040,"rtc/view/ViewLinesTestHelper":8041,"rtc/view/ViewSectionsTestHelper":8042,"rtc/settings/SettingsLoader":8043,"rtc/settings/SettingsPluginRegistry":8044,"rtc/settings/SettingsPluginResolver":8045,"liveeditor/plugin/JavascriptToolstripManager":8046,"liveeditor/plugin/ToolstripManager":8047,"liveeditor/plugin/filemodificationnotifier/FileModificationNotifier":8048,"rtcintegration/plugins/service/DefaultActionIdConverterProvider":8049,"rtcintegration/plugins/service/DefaultEditorServiceProvider":8050,"rtcintegration/plugins/toolstrip/ExecutionControlsToolstripProvider":8051,"rtcintegration/plugins/toolstrip/ExecutionControlsToolstrip":8052,"rtcintegration/plugins/toolstrip/ExecutionControlsToolstripCreationNotifierProvider":8053,"rtcintegration/plugins/toolstrip/ExecutionControlsToolstripCreationNotifier":8054,"rtcintegration/plugins/toolstrip/hover/JavaToolstripHoverServiceProvider":8055,"rtcintegration/plugins/toolstrip/hover/JavaToolstripHoverService":8056,"rtcintegration/plugins/toolstrip/hover/JavascriptToolstripHoverServiceProvider":8057,"rtcintegration/plugins/toolstrip/hover/JavascriptToolstripHoverService":8058,"rtcintegration/plugins/runconfiguration/editor/RunButtonDataContributorProvider":8059,"rtcintegration/plugins/runconfiguration/BaseDropdownButtonDataContributor":8060,"rtcintegration/plugins/runconfiguration/editor/RunConfigsManagerProvider":8061,"rtcintegration/plugins/runconfiguration/editor/RunConfigsManager":8062,"rtcintegration/plugins/runconfiguration/BaseRunConfigsManager":8063,"rtcintegration/plugins/runconfiguration/RunConfigsDataServiceFactory":8064,"rtcintegration/plugins/runconfiguration/RunConfigsDataService":8065,"rtcintegration/plugins/runconfiguration/RunConfig":8066,"rtcintegration/plugins/runconfiguration/editor/RunConfigsRunnerProvider":8067,"rtcintegration/plugins/runconfiguration/editor/RunConfigsRunner":8068,"rtc/resources/rich_text_component/nls/ja-jp/runConfigurations":8069,"rtc/resources/rich_text_component/nls/ko-kr/runConfigurations":8070,"rtc/resources/rich_text_component/nls/zh-cn/runConfigurations":8071,"rtc/resources/rich_text_component/nls/runConfigurations":8072,"rtcintegration/plugins/runconfiguration/BaseRunConfigsRunner":8073,"rtcintegration/plugins/runconfiguration/editor/RunConfigsViewControllerProvider":8074,"rtcintegration/plugins/runconfiguration/BaseRunConfigsViewController":8075,"rtcintegration/plugins/runconfiguration/RunConfigsToolstripViewFactory":8076,"rtcintegration/plugins/runconfiguration/RunConfigsToolstripView":8077,"rtcintegration/plugins/runconfiguration/editor/RunConfigsViewModelProvider":8078,"rtcintegration/plugins/runconfiguration/RunConfigsViewModel":8079,"rtcintegration/plugins/runconfiguration/liveeditor/RunConfigsFileValidatorProvider":8080,"rtcintegration/plugins/runconfiguration/liveeditor/RunConfigsFileValidator":8081,"rtcintegration/plugins/runconfiguration/liveeditor/RunConfigsViewControllerProvider":8082,"rtcintegration/plugins/runconfiguration/liveeditor/RunConfigsViewController":8083,"MOTW/editor/plugins/toolstrip/LiveEditorExecutionControlsButtonTags":8084,"MOTW/editor/plugins/backingstore/OnlineEditorBackingstore":8085,"MOTW/editor/plugins/backingstore/OnlineLiveEditorSaveLoadContributorProvider":8086,"MOTW/editor/plugins/backingstore/OnlineLiveEditorSaveLoadContributor":8087,"livecode_saveload/plugin/LiveCodeSaveLoadContributor":8088,"MOTW/editor/plugins/backingstore/OnlineLiveEditorBackingstoreContentContributorProvider":8089,"MOTW/editor/plugins/backingstore/OnlineLiveEditorBackingstoreContentContributor":8090,"livecode_features/plugin/backingstore/AbstractLiveEditorBackingstoreContentContributor":8091,"livecode_saveload/plugin/LiveCodeWithOutputsBackingstoreContentContributor":8092,"livecode_saveload/plugin/LiveCodeBackingstoreContentContributor":8093,"MOTW/editor/plugins/busyidle/BusyIdleServicesProvider":8094,"MOTW/editor/plugins/busyidle/BusyIdleServices":8095,"MOTW/editor/plugins/close/EditorCloseHandler":8096,"MOTW/editor/plugins/contextmenu/DocumentTabContextMenu":8097,"MOTW/editor/plugins/contextmenu/ReconfigureContextMenuModel":8098,"MOTW/editor/plugins/delete/LiveEditorFileDeleteHandlerProvider":8099,"MOTW/editor/plugins/delete/LiveEditorFileDeleteHandler":8100,"MOTW/editor/plugins/gotocodelinecolumn/MatlabOnlineGotoCodeLineColumn":8101,"MOTW/editor/plugins/keybindings/EmbeddedOutputsKeyBindingsProvider":8102,"MOTW/editor/plugins/keybindings/EmbeddedOutputsKeyBindings":8103,"MOTW/editor/plugins/keybindings/LiveEditorKeyBindingsProvider":8104,"MOTW/editor/plugins/keybindings/LiveEditorKeyBindings":8105,"MOTW/editor/plugins/liveapps/LiveAppGalleryNotifierProvider":8106,"MOTW/editor/plugins/liveapps/LiveAppGalleryNotifier":8107,"MOTW/toolstrip/liveAppsGallery/LiveAppsGalleryManager":8108,"MOTW/editor/plugins/liveapps/LiveAppReconfigureContextMenuProvider":8109,"MOTW/editor/plugins/liveapps/LiveAppReconfigureContextMenu":8110,"MOTW/editor/plugins/liveeditorinmemorysaveload/LiveEditorInMemorySaveLoadProvider":8111,"MOTW/editor/plugins/liveeditorinmemorysaveload/LiveEditorInMemorySaveLoad":8112,"MOTW/editor/plugins/refactor/function/externalfunction/MatlabOnlineExternalFunctionFileCreator":8113,"dojo/i18n!MOTW/l10n/nls/extractFunctionDialog":8114,"MOTW/l10n/nls/extractFunctionDialog":8115,"MOTW/editor/plugins/runconfiguration/LiveEditorRunButtonDataContributorProvider":8116,"MOTW/editor/plugins/runconfiguration/LiveEditorRunButtonDataContributor":8117,"MOTW/editor/plugins/save/MatlabOnlineSaveReadyPluginProvider":8118,"MOTW/editor/plugins/save/MatlabOnlineSaveReadyPlugin":8119,"MOTW/editor/plugins/save/SaveErrorHandler":8120,"MOTW/layout/LayoutDataService":8121,"MOTW/layout/LayoutStrategy":8122,"dojo/i18n!MOTW/l10n/nls/saveErrorDialog":8123,"MOTW/l10n/nls/saveErrorDialog":8124,"MOTW/l10n/nls/ja-jp/editor":8125,"MOTW/l10n/nls/ko-kr/editor":8126,"MOTW/l10n/nls/zh-cn/editor":8127,"MOTW/l10n/nls/editor":8128,"MOTW/editor/plugins/statusbar/OnlineEditorStatusBarUpdater":8129,"liveeditor/plugin/statusbar/AbstractStatusBarUpdater":8130,"rtc/resources/rich_text_component/nls/ja-jp/statusbar":8131,"rtc/resources/rich_text_component/nls/ko-kr/statusbar":8132,"rtc/resources/rich_text_component/nls/zh-cn/statusbar":8133,"rtc/resources/rich_text_component/nls/statusbar":8134,"MOTW/editor/plugins/textstyletoolstrip/TextStyleToolstripProvider":8135,"MOTW/editor/plugins/textstyletoolstrip/TextStyleToolstrip":8136,"MOTW/editor/plugins/variablehighlighting/VariableHighlightingStatusBar":8137,"rtc/plugins/images/SimpleInsertImageProvider":8138,"rtc/plugins/images/SimpleInsertImage":8139,"liveeditor/plugin/external/matlabunit/MATLABUnitPluginForJavaToolstrip":8140,"liveeditor/plugin/external/matlabunit/MATLABUnitPluginForJSToolstrip":8141,"liveeditor/plugin/external/matlabunit/RunTestsArgParser":8142,"liveeditor/plugin/external/matlabunit/RunTestsActions":8143,"liveeditor/plugin/external/matlabunit/RunTestsToolstrip":8144,"liveeditor/plugin/external/matlabunit/RunTestsJavaToolstrip":8145,"MOTW/editor/LiveEditorTabGroupFactory":8146,"MOTW/editor/actions/GlobalActionProvider":8147,"MOTW/editor/actions/CompareActionsProvider":8148,"MOTW/editor/language/matlab/EditSectionActionProvider":8149,"MOTW/editor/actions/EditSectionActions":8150,"MOTW/editor/language/matlab/MatlabActionProvider":8151,"MOTW/editor/actions/CoreActions":8152,"rtc/plugins/debug/DebuggerActions":8153,"MOTW/editor/language/matlab/PublishTabActionProvider":8154,"MOTW/editor/actions/PublishActions":8155,"MOTW/editor/language/matlab/LiveEditorToolstripActionProvider":8156,"MOTW/editor/actions/EquationEditorActions":8157,"MOTW/editor/toolstrip/LiveEditorTabGroupConfig":8158,"MOTW/editor/toolstrip/liveeditortab/LiveEditorTabConfig":8159,"MOTW/editor/toolstrip/insertab/LiveEditorInsertTabConfig":8160,"MOTW/editor/toolstrip/viewtab/LiveEditorViewTabConfig":8161,"MOTW/editor/toolstrip/LiveEditorTabGroupPopupsConfig":8162,"MOTW/editor/LiveEditorWidgetFactory":8163,"MOTW/editor/PlainEditorTabGroupFactory":8164,"MOTW/editor/toolstrip/EditorTabGroupConfig":8165,"MOTW/editor/toolstrip/editortab/EditorTabConfig":8166,"MOTW/editor/toolstrip/EditorTabGroupPopupsConfig":8167,"MOTW/editor/PlainEditorWidgetFactory":8168,"MOTW/editor/PlainEditorWidget":8169,"MOTW/editor/CompareActions":8170,"MOTW/editor/DebuggerToolstripFactory":8171,"MOTW/editor/DebuggerToolstrip":8172,"MOTW/editor/FunctionCallStackActions":8173,"MOTW/editor/RunMenuDropdownEventHandlerFactory":8174,"MOTW/editor/RunDropdownMenuEventHandler":8175,"dojo/text!MOTW/editor/plainEditorWindow.html":8176,"MOTW/editor/plugins/toolstrip/EditorExecutionControlsButtonTags":8177,"MOTW/editor/plugins/backingstore/OnlineJsEditorSaveLoadContributorProvider":8178,"MOTW/editor/plugins/backingstore/OnlineJsEditorSaveLoadContributor":8179,"MOTW/editor/plugins/backingstore/OnlineJsEditorBackingstoreContentContributorProvider":8180,"MOTW/editor/plugins/backingstore/OnlineJsEditorBackingstoreContentContributor":8181,"plaincode_features/plugin/backingstore/AbstractJsEditorBackingstoreContentContributor":8182,"plaincode_saveload/plugin/PlainCodeBackingstoreContentContributor":8183,"MOTW/editor/plugins/delete/PlainEditorFileDeleteHandlerProvider":8184,"MOTW/editor/plugins/delete/PlainEditorFileDeleteHandler":8185,"MOTW/editor/plugins/keybindings/PlainEditorKeyBindingsProvider":8186,"MOTW/editor/plugins/keybindings/PlainEditorKeyBindings":8187,"MOTW/editor/plugins/plaineditorinmemorysave/PlainEditorInMemorySaveProvider":8188,"MOTW/editor/plugins/plaineditorinmemorysave/PlainEditorInMemorySave":8189,"MOTW/editor/plugins/runconfiguration/RunButtonDataContributorProvider":8190,"MOTW/editor/plugins/runconfiguration/RunButtonDataContributor":8191,"MOTW/editor/plugins/runconfiguration/RunConfigsFileValidatorProvider":8192,"MOTW/editor/plugins/runconfiguration/RunConfigsFileValidator":8193,"liveeditor/plugin/external/sysobj/SysObjPluginProvider":8194,"liveeditor/plugin/external/sysobj/SysObjPlugin":8195,"liveeditor/plugin/external/sysobj/CustomPropertyDialog":8196,"liveeditor/plugin/external/sysobj/EnumerationDialog":8197,"mw-table/renderers/RadiobuttonRenderer":8198,"liveeditor/plugin/external/sysobj/SystemEditorToolstrip":8199,"liveeditor/plugin/external/sysobj/PopupConfig":8200,"liveeditor/plugin/external/sysobj/SystemConfig":8201,"MOTW/editor/plugins/reloadexternallymodifiedfiles/ReloadExternallyModifiedFilesProvider":8202,"MOTW/editor/plugins/reloadexternallymodifiedfiles/ReloadExternallyModifiedFiles":8203,"dojo/i18n!MOTW/l10n/nls/reloadExternallyModified":8204,"MOTW/l10n/nls/reloadExternallyModified":8205,"MOTW/editor/plugins/comparewithbackup/CompareWithAutosaveProvider":8206,"MOTW/editor/plugins/comparewithbackup/CompareWithAutosave":8207,"liveeditor/plugin/backingstore/DesktopEditorBackingstoreProvider":8208,"liveeditor/plugin/backingstore/DesktopEditorBackingstore":8209,"MOTW/editor/OpenAsLiveCodeService":8210,"MOTW/editor/OpenToLineService":8211,"MOTW/editor/SaveOptionsEnablementService":8212,"MOTW/editor/UntitledBufferService":8213,"MOTW/editor/plugins/backingstore/PluggableBackingstoreFeature":8214,"MOTW/editor/statusbar/EditorContextualStatusComponentFactory":8215,"MOTW/editor/statusbar/displaygroup/FileEncodingDisplayGroup":8216,"MOTW/editor/statusbar/displaygroup/LineEndingStyleDisplayGroup":8217,"MOTW/editor/statusbar/displaygroup/EnclosingScopeDisplayGroup":8218,"MOTW/editor/statusbar/displaygroup/CursorPositionDisplayGroup":8219,"MOTW/toolstrip/configs/editor/FigureTabGroupConfig":8220,"MOTW/editor/EditorVersioningService":8221,"MOTW/versioning/VersioningController":8222,"dojo/cldr/supplemental":8223,"dojo/i18n!dojo/cldr/nls/gregorian":8224,"dojo/cldr/nls/ar/gregorian":8225,"dojo/cldr/nls/bs/gregorian":8226,"dojo/cldr/nls/ca/gregorian":8227,"dojo/cldr/nls/cs/gregorian":8228,"dojo/cldr/nls/da/gregorian":8229,"dojo/cldr/nls/de/gregorian":8230,"dojo/cldr/nls/el/gregorian":8231,"dojo/cldr/nls/en-au/gregorian":8232,"dojo/cldr/nls/en-ca/gregorian":8233,"dojo/cldr/nls/en-gb/gregorian":8234,"dojo/cldr/nls/es/gregorian":8235,"dojo/cldr/nls/fi/gregorian":8236,"dojo/cldr/nls/fr/gregorian":8237,"dojo/cldr/nls/fr-ch/gregorian":8238,"dojo/cldr/nls/he/gregorian":8239,"dojo/cldr/nls/hr/gregorian":8240,"dojo/cldr/nls/hu/gregorian":8241,"dojo/cldr/nls/it/gregorian":8242,"dojo/cldr/nls/ja/gregorian":8243,"dojo/cldr/nls/ko/gregorian":8244,"dojo/cldr/nls/mk/gregorian":8245,"dojo/cldr/nls/nb/gregorian":8246,"dojo/cldr/nls/nl/gregorian":8247,"dojo/cldr/nls/pl/gregorian":8248,"dojo/cldr/nls/pt/gregorian":8249,"dojo/cldr/nls/pt-pt/gregorian":8250,"dojo/cldr/nls/ro/gregorian":8251,"dojo/cldr/nls/ru/gregorian":8252,"dojo/cldr/nls/sk/gregorian":8253,"dojo/cldr/nls/sl/gregorian":8254,"dojo/cldr/nls/sr/gregorian":8255,"dojo/cldr/nls/sv/gregorian":8256,"dojo/cldr/nls/th/gregorian":8257,"dojo/cldr/nls/tr/gregorian":8258,"dojo/cldr/nls/zh/gregorian":8259,"dojo/cldr/nls/zh-hant/gregorian":8260,"dojo/cldr/nls/zh-hk/gregorian":8261,"dojo/cldr/nls/zh-tw/gregorian":8262,"dojo/cldr/nls/gregorian":8263,"dojo/i18n!MOTW/l10n/nls/versioning":8264,"MOTW/l10n/nls/versioning":8265,"MOTW/editor/LiveClassFeature":8266,"MOTW/editor/UntitledBufferFeature":8267,"MOTW/editor/SaveOptionsFeature":8268,"MOTW/editor/ApplicationApiImpl":8269,"editor_application_interface/EditorApplicationApiInterface":8270,"MOTW/editor/toolstrip/recentfilelist/RecentFileListService":8271,"MOTW/editor/utils/LifoSet":8272,"MOTW/editor/toolstrip/recentfilelist/RecentFileListUI":8273,"MOTW/editor/toolstrip/recentfilelist/PopupList":8274,"MOTW/embeddedfigures/EmbeddedFigureWidgetManager":8275,"MOTW/embeddedfigures/EmbeddedFigureWidget":8276,"MOTW/embeddedfigures/PlotEditDnd":8277,"dojo/text!MOTW/embeddedfigures/templates/EmbeddedFigureWidget.html":8278,"MOTW/mgg/components/Clipboard":8279,"dojo/text!MOTW/mgg/components/clipboard.html":8280,"MOTW/l10n/nls/mgg":8281,"MOTW/mgg/components/MaxFiguresDialog":8282,"dojo/text!MOTW/mgg/components/maxFiguresDialog.html":8283,"MOTW/embeddedfigures/WebGraphicsFeature":8284,"MOTW/errorlogger/ErrorLoggerService":8285,"MOTW/faults/FaultHandlerService":8286,"mw-network-utils/NetworkHealthCheck":8287,"matlab_favorite_commands/FavoriteCommands":8288,"matlab_favorite_commands/js/FavoriteCommandsManager":8289,"matlab_favorite_commands/js/FavoriteCommandsDataService":8290,"matlab_favorite_commands/l10n/nls/ja-jp/favcommands":8291,"matlab_favorite_commands/l10n/nls/ko-kr/favcommands":8292,"matlab_favorite_commands/l10n/nls/zh-cn/favcommands":8293,"matlab_favorite_commands/l10n/nls/favcommands":8294,"matlab_favorite_commands/js/FavoriteCommandsEditorManager":8295,"matlab_favorite_commands/js/FavoriteCommandsEditorModule":8296,"matlab_favorite_commands/js/FavoriteCommandsEditorPluginRegistry":8297,"matlab_favorite_commands/js/FavoriteCommandsEditorPlugins/FEContextMenuModelProvider":8298,"matlab_favorite_commands/js/FavoriteCommandsEditorPlugins/FEContextMenuModel":8299,"matlab_favorite_commands/js/FavoriteCommandActions":8300,"matlab_favorite_commands/js/CategoryEditorManager":8301,"matlab_favorite_commands/js/CategoryEditorModule":8302,"matlab_favorite_commands/js/CategoryActions":8303,"matlab_favorite_commands/js/ActionIdConstants":8304,"MOTW/feedback/FeedbackManager":8305,"MOTW/feedback/FeedbackDialog":8306,"MOTW/l10n/nls/feedback":8307,"dojo/text!MOTW/feedback/templates/FeedbackDialogTemplate.html":8308,"MOTW/feedback/FeedbackService":8309,"MOTW/toolstrip/figureGalleries/FigureAnnotationsGalleryManager":8310,"MOTW/toolstrip/configs/figure/FigureAnnotationsGalleryPopupConfig":8311,"MOTW/figureapps/MOFigureManager":8312,"MOTW/figureapps/MOFigureContainerController":8313,"MOTW/figureapps/MOFigureContainer":8314,"MOTW/findFiles/FindFilesService":8315,"MOTW/findFiles/FindFilesWindow":8316,"MOTW/findFiles/FindFilesCommunicator":8317,"MOTW/findFiles/ChooseLookInLocationDialog":8318,"findfiles-ui/l10n/gen/resources/findfiles/nls/ja-jp/findfiles":8319,"findfiles-ui/l10n/gen/resources/findfiles/nls/ko-kr/findfiles":8320,"findfiles-ui/l10n/gen/resources/findfiles/nls/zh-cn/findfiles":8321,"findfiles-ui/l10n/gen/resources/findfiles/nls/findfiles":8322,"MOTW/gdsNotifications/GDSNotifications":8323,"gotofile/GoToFileApp":8324,"gotofile/GoToFileResultManager":8325,"gotofile/GoToFileDialog":8326,"dojo/text!gotofile/goToFileTemplate.html":8327,"gotofile/GoToFileResultPanel":8328,"gotofile/ResultItem":8329,"dojo/text!gotofile/resultItemTemplate.html":8330,"gotofile/l10n/gen/resources/gotofile/nls/ja-jp/goToFile":8331,"gotofile/l10n/gen/resources/gotofile/nls/ko-kr/goToFile":8332,"gotofile/l10n/gen/resources/gotofile/nls/zh-cn/goToFile":8333,"gotofile/l10n/gen/resources/gotofile/nls/goToFile":8334,"gotofile/ToolstripEntry":8335,"MOTW/openwith/wraService/WraDataService":8336,"MOTW/l10n/nls/wraLogin":8337,"MOTW/motw/HeartbeatService":8338,"dojo/i18n!MOTW/l10n/nls/session":8339,"MOTW/l10n/nls/session":8340,"MOTW/help/impl/HelpDataService":8341,"MOTW/help/SuggestionsTextField":8342,"dojo/text!MOTW/help/templates/SuggestionTextField.html":8343,"MOTW/iframecontainer/IframeLayoutManager":8344,"desktop_importtool/ImportToolMain":8345,"importtool_peer/PeerImportTool":8346,"importtool_peer/RemoteImportToolManager":8347,"importtool_peer/RemoteImportToolDocument":8348,"importtool_peer/ImportToolRegistry":8349,"importtool_peer/PeerSpreadsheetImportWidget":8350,"importtool_peer/RemoteSpreadsheetDataImportSource":8352,"importtool_client/TabularDataImportSource":8353,"importtool_peer/PeerTextImportWidget":8354,"importtool_client/TextImportWidget":8355,"importtool_peer/RemoteTextDataImportSource":8356,"importtool_client/TextDataImportSource":8357,"importtool_client/UIImportTool":8358,"importtool_client/FixedWidthImportTool/FixedWidthImportTool":8359,"importtool_client/FixedWidthImportTool/FixedWidthSelectorWidget":8360,"dojo/text!importtool_client/FixedWidthImportTool/FixedWidthSelectorWidget.html":8361,"importtool_client/l10n/nls/ja-jp/app":8362,"importtool_client/l10n/nls/ko-kr/app":8363,"importtool_client/l10n/nls/zh-cn/app":8364,"importtool_client/l10n/nls/app":8365,"importtool_peer/toolstrip/SpreadSheetPeerImportToolstripTabGroupFactory":8367,"importtool_client/toolstrip/SpreadSheetImportToolstripTabGroupFactory":8368,"importtool_client/toolstrip/SpreadSheetImportToolstripTabGroupConfig":8369,"importtool_client/toolstrip/SpreadSheetImportToolstripTabGroupConfigNoCodegen":8370,"importtool_client/toolstrip/SpreadSheetImportToolstripTabGroupConfigRange":8371,"importtool_client/toolstrip/SpreadSheetImportToolstripTabGroupPopupConfig":8372,"importtool_peer/toolstrip/TextPeerImportToolstripTabGroupFactory":8373,"importtool_client/toolstrip/TextImportToolstripTabGroupFactory":8374,"importtool_client/toolstrip/TextImportToolstripTabGroupConfig":8375,"importtool_client/toolstrip/TextImportToolstripTabGroupConfigNoCodegen":8376,"importtool_client/toolstrip/TextImportToolstripTabGroupConfigRange":8377,"importtool_client/toolstrip/TextImportToolstripTabGroupPopupConfig":8378,"importtool_client/toolstrip/ImportToolstripDelimiterPopupConfig":8379,"MOTW/layout/LayoutManager":8380,"MOTW/layout/BorderManager":8381,"mw-overlay-utils/DisabledOverlay":8382,"dojox/widget/Standby":8383,"MOTW/layout/DocumentManager":8384,"MOTW/layout/MainManager":8385,"MW/layout/MainContainer":8386,"MOTW/layout/SplitManager":8387,"MOTW/layout/TabManager":8388,"MOTW/layout/DialogManager":8389,"MOTW/layout/NonModalDialogManager":8390,"dojo/text!MOTW/layout/floatingPaneTemplate.html":8391,"MOTW/layout/ResizeHandler":8392,"MOTW/layout/AppWindowManager":8393,"MOTW/layout/DockableDialogManager":8394,"MOTW/layout/LayoutFacade":8395,"dojo/i18n!MOTW/l10n/nls/workspace":8396,"MOTW/l10n/nls/ja-jp/workspace":8397,"MOTW/l10n/nls/ko-kr/workspace":8398,"MOTW/l10n/nls/zh-cn/workspace":8399,"MOTW/l10n/nls/workspace":8400,"MOTW/embeddedfigures/FigureChildProperties":8401,"MOTW/ve/VEChildProperties":8402,"MOTW/layout/LayoutSessionDataAdapter":8403,"MOTW/toolstrip/qab/QABContextualControlsActionMap":8404,"MOTW/toolstrip/ToolstripReducer":8405,"MOTW/toolstrip/ToolstripGlobalTabGroupFactory":8406,"MOTW/toolstrip/configs/global/GlobalTabGroupPopupsConfig":8407,"MOTW/layout/ActionIdConstants":8408,"MOTW/toolstrip/configs/global/GlobalTabGroupConfig":8409,"MW/uiframework/uicontainer/ViewPopupConfig":8410,"MOTW/layout/Statusbar":8411,"MOTW/findFiles/FindFilesKeyBindings":8412,"MOTW/openwith/module/experiences/LiveEditorExperience":8413,"MOTW/iframecontainer/logicAnalyzer/logicAnalyzer":8414,"mw-login/login":8415,"mw-login/LoginWidget":8416,"mw-login/l10n/nls/ja-jp/app":8417,"mw-login/l10n/nls/ko-kr/app":8418,"mw-login/l10n/nls/zh-cn/app":8419,"mw-login/l10n/nls/app":8420,"mw-login/view/Spinner":8421,"dojo/text!mw-login/view/Spinner.html":8422,"mw-login/utils/TimeoutCascade":8423,"mw-login/LogoutWidget":8424,"dojo/text!mw-login/LogoutWidget.html":8425,"mw-login/placements/PlacementFactory":8426,"mw-login/placements/Dialog":8427,"mw-login/placements/User":8428,"mw-login/errors/LoginError":8429,"mw-login/backends/MATLAB":8430,"mw-login/backends/Backend":8431,"MOTW/motw/matlabexitservice/MatlabExitService":8432,"MOTW/openwith/module/message/IframeMessageService":8433,"MOTW/openwith/module/manifest/ManifestService":8434,"MOTW/openwith/module/manifest/ManifestHandler":8435,"project-core-ui/DesktopProject":8436,"project-core-ui/CurrentProjectService":8437,"project-core-ui/toolstrip/CurrentProjectToolstrip":8438,"project-core-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_core":8439,"project-core-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_core":8440,"project-core-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_core":8441,"project-core-ui/l10n/gen/resources/MATLAB/project/nls/view_core":8442,"dojo/i18n!project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_core":8443,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_core":8444,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_core":8445,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_core":8446,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_core":8447,"project-file-ui/shortcut/ShortcutGallery":8448,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_file":8449,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_file":8450,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_file":8451,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_file":8452,"project-file-ui/shortcut/OrganizeGroupsDialog":8453,"project-core-ui/util/GenericFileSelector":8454,"dojo/i18n!project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_source_control":8455,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_source_control":8456,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_source_control":8457,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_source_control":8458,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_source_control":8459,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_action":8460,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_action":8461,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_action":8462,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_action":8463,"dojo/i18n!project-util-ui/l10n/gen/resources/MATLAB/project/nls/view_action":8464,"project-util-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_action":8465,"project-util-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_action":8466,"project-util-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_action":8467,"project-util-ui/l10n/gen/resources/MATLAB/project/nls/view_action":8468,"cmlink-git-lib/commit/CommitDialog":8469,"cmlink-git-lib/commit/CommitForm":8470,"dojo/text!cmlink-git-lib/commit/templates/CommitForm.html":8471,"cmlink-git-lib/commit/ChangeAuthorDialog":8472,"cmlink-git-lib/commit/ChangeAuthorForm":8473,"dojo/text!cmlink-git-lib/commit/templates/ChangeAuthorForm.html":8474,"cmlink-git-lib/l10n/gen/resources/shared_cmlink/nls/ja-jp/view_commit":8475,"cmlink-git-lib/l10n/gen/resources/shared_cmlink/nls/ko-kr/view_commit":8476,"cmlink-git-lib/l10n/gen/resources/shared_cmlink/nls/zh-cn/view_commit":8477,"cmlink-git-lib/l10n/gen/resources/shared_cmlink/nls/view_commit":8478,"project-core-ui/toolstrip/ShareListDropDownManager":8479,"project-core-ui/toolstrip/EnvironmentSection":8480,"project-file-ui/project_path/ProjectPathDialog":8481,"dojo/i18n!project-file-ui/l10n/gen/resources/MATLAB/project/nls/management":8482,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/management":8483,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/management":8484,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/management":8485,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/management":8486,"project-util-ui/GenericFolderSelector":8487,"dojo/i18n!project-core-ui/l10n/gen/resources/MATLAB/project/nls/view_file":8488,"project-core-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_file":8489,"project-core-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_file":8490,"project-core-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_file":8491,"project-core-ui/l10n/gen/resources/MATLAB/project/nls/view_file":8492,"project-file-ui/project_details/ProjectDetailsDialog":8493,"project-core-ui/toolstrip/ToolsSection":8494,"project-core-ui/toolstrip/ToolsGallery":8495,"project-core-ui/util/ProjectOpenAction":8496,"project-core-ui/DesktopProjectFilesPanel":8497,"project-file-ui/ProjectFileDataService":8498,"project-file-ui/ProjectFileDataStore":8499,"project-file-ui/labels/LabelsCache":8500,"project-file-ui/ProjectStatusColumn":8501,"project-file-ui/labels/AttachedLabelsColumn":8502,"project-file-ui/actions/ProjectActionManager":8503,"filebrowser_utils-ui/js/FileBrowserProvider":8504,"project-file-ui/actions/ActionKeybindingMap":8505,"project-file-ui/labels/LabelMenuHandler":8506,"dojo/i18n!project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_labels":8507,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_labels":8508,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_labels":8509,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_labels":8510,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_labels":8511,"project-file-ui/shortcut/EntryPointCache":8512,"project-file-ui/shortcut/ShortcutMenuHandler":8513,"project-file-ui/shortcut/ShortcutDialogAction":8514,"project-core-ui/AuxViewManager":8515,"project-core-ui/ProjectInitView":8516,"project-util-ui/IsReadyLatch":8517,"project-labels-ui/js/LabelsViewProjectExtension":8518,"project-labels-ui/js/LabelsViewManager":8519,"project-labels-ui/js/LabelsViewDesktop":8520,"project-labels-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_labels":8521,"project-labels-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_labels":8522,"project-labels-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_labels":8523,"project-labels-ui/l10n/gen/resources/MATLAB/project/nls/view_labels":8524,"project-labels-ui/js/LabelsTree":8525,"project-labels-ui/js/LabelsTreeContextMenuItems":8526,"project-labels-ui/js/NewCategoryDialog":8527,"project-labels-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_action":8528,"project-labels-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_action":8529,"project-labels-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_action":8530,"project-labels-ui/l10n/gen/resources/MATLAB/project/nls/view_action":8531,"project-labels-ui/js/NewLabelDialog":8532,"project-labels-ui/js/LabelsToolstrip":8533,"project-labels-ui/js/LabelSelectionBroadcaster":8534,"project-labels-ui/js/LabelSelectionHandler":8535,"project-references-ui/js/ReferencesViewProjectExtension":8536,"project-references-ui/js/ReferencesViewManager":8537,"project-references-ui/js/ReferencesViewDesktop":8538,"project-references-ui/js/ReferencesTree":8539,"project-references-ui/js/ReferencesSelectionPanel":8540,"project-references-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_references":8541,"project-references-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_references":8542,"project-references-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_references":8543,"project-references-ui/l10n/gen/resources/MATLAB/project/nls/view_references":8544,"project-references-ui/js/ReferenceProjectDetails":8545,"dojo/i18n!project-references-ui/l10n/gen/resources/MATLAB/project/nls/view_core":8546,"project-references-ui/l10n/gen/resources/MATLAB/project/nls/ja-jp/view_core":8547,"project-references-ui/l10n/gen/resources/MATLAB/project/nls/ko-kr/view_core":8548,"project-references-ui/l10n/gen/resources/MATLAB/project/nls/zh-cn/view_core":8549,"project-references-ui/l10n/gen/resources/MATLAB/project/nls/view_core":8550,"dojo/text!project-references-ui/js/ReferenceProjectDetailsTemplate.html":8551,"project-references-ui/js/ReferencesToolstrip":8552,"project-references-ui/js/ReferenceAdder":8553,"project-references-ui/js/ReferenceRemover":8554,"project-references-ui/js/ReferenceSelectionHandler":8555,"MOTW/mgg/GUIDataService":8556,"MOTW/mgg/utils/InMemoryStore":8557,"MOTW/mgg/utils/ImageStream":8558,"MOTW/mgg/utils/MouseStream":8559,"MOTW/mgg/dataservices/ComponentDataService":8560,"MOTW/mgg/dataservices/AxesDataService":8561,"MOTW/mgg/dataservices/RootDataService":8562,"MOTW/mgg/GUIManager":8563,"MOTW/mgg/containers/DocumentContainer":8564,"MOTW/mgg/containers/ClosablePanel":8565,"MOTW/mgg/containers/LayoutPanel":8566,"MOTW/mgg/containers/ContextMenuPanel":8567,"MOTW/mgg/containers/SingleClickPanel":8568,"MOTW/mgg/containers/ClassificationLearnerModelListScrollPane":8569,"MOTW/mgg/containers/SplitPane":8570,"MOTW/mgg/containers/TabContainer":8571,"MOTW/mgg/containers/ContentPane":8572,"MOTW/mgg/containers/ToolBarContainer":8573,"MOTW/mgg/containers/ToolBar":8574,"dijit/Toolbar":8575,"MOTW/mgg/containers/Tree":8576,"MOTW/mgg/containers/TreeNode":8577,"MOTW/mgg/menus/MenuBar":8578,"dijit/MenuBar":8579,"dojo/text!dijit/templates/MenuBar.html":8580,"MOTW/mgg/menus/Menu":8581,"dijit/PopupMenuBarItem":8582,"dijit/MenuBarItem":8583,"dojo/text!dijit/templates/MenuBarItem.html":8584,"MOTW/mgg/menus/PopupMenu":8585,"MOTW/mgg/menus/CheckBoxMenuItem":8586,"MOTW/mgg/menus/DropdownPopup":8587,"MOTW/mgg/menus/ColorPickerMenuItem":8588,"MOTW/mgg/menus/MJCheckBoxMenuItem":8589,"MOTW/mgg/components/Canvas":8590,"MOTW/mgg/components/StreamCanvas":8591,"MOTW/mgg/utils/CursorUtils":8592,"MOTW/mgg/components/Separator":8593,"dijit/ToolbarSeparator":8594,"MOTW/mgg/components/Dropdown":8595,"dijit/form/_FormSelectWidget":8596,"dojo/text!dijit/form/templates/Select.html":8597,"dojo/text!MOTW/mgg/components/Dropdown.html":8598,"MOTW/mgg/components/Slider":8599,"dijit/form/VerticalSlider":8600,"dojo/text!dijit/form/templates/VerticalSlider.html":8601,"dijit/form/VerticalRule":8602,"dijit/form/VerticalRuleLabels":8603,"dojo/text!MOTW/mgg/components/VerticalSlider.html":8604,"MOTW/mgg/components/ScrollBar":8605,"MOTW/mgg/components/HorizontalScrollBar":8606,"dojo/text!MOTW/mgg/components/VerticalScrollBar.html":8607,"dojo/text!MOTW/mgg/components/HorizontalScrollBar.html":8608,"MOTW/mgg/components/NumberSpinner":8609,"dijit/form/NumberSpinner":8610,"dijit/form/_Spinner":8611,"dojo/text!dijit/form/templates/Spinner.html":8612,"MOTW/mgg/components/TextBox":8613,"MOTW/mgg/components/MultiLineTextBox":8614,"MOTW/mgg/utils/CustomExpandingTextarea":8615,"dijit/form/Textarea":8616,"dijit/form/_ExpandingTextAreaMixin":8617,"MOTW/mgg/utils/TextAreaSizer":8618,"MOTW/mgg/components/Label":8619,"MOTW/mgg/components/PanelSeparator":8620,"MOTW/mgg/components/FileChooser":8621,"MOTW/filechooser/FileChooser":8622,"MOTW/mgg/components/DTTitleBar":8623,"MOTW/mgg/components/IFrame":8624,"MOTW/mgg/components/Toolstrip":8625,"MOTW/mgg/table/Table":8626,"MOTW/mgg/table/_TableBase":8627,"MOTW/mgg/table/_TableHeaders":8628,"MOTW/mgg/table/_TableHeaderSelection":8629,"MOTW/mgg/table/_TableColumnWidth":8630,"MOTW/mgg/table/_PropTypeHandler":8631,"dojo/text!MOTW/mgg/table/Table.html":8632,"MOTW/mgg/table/List":8633,"dojo/text!MOTW/mgg/table/List.html":8634,"MOTW/mgg/buttons/ToggleButton":8635,"MOTW/mgg/buttons/CheckBoxSplitterButton":8636,"MOTW/mgg/buttons/RadioButton":8637,"MOTW/mgg/buttons/DropdownButton":8638,"MOTW/mgg/buttons/ScrollStripButton":8639,"MOTW/mgg/MggAspectFeature":8640,"MOTW/mgg/MggPanesFeature":8641,"MOTW/mgg/MggPopupFeature":8642,"MOTW/mgg/MggToggleDockFeature":8643,"MOTW/mgg/MggLazyLoadFeature":8644,"MOTW/toolstrip/managers/LegacyFigureControlsManager":8645,"MOTW/navigationShortcutsDialog/NavigationShortcutsDialog":8646,"dojo/i18n!MOTW/l10n/nls/navigationShortcutsDialog":8647,"MOTW/l10n/nls/navigationShortcutsDialog":8648,"mw-tabular-data-model/utils/rangeListFrom":8649,"mw-tabular-data-model/sort/_compareFunctions":8650,"mw-tabular-data-model/sort/Enum":8651,"mw-tabular-data-model/enums/saveEnum":8652,"mw-tabular-data-model/impl/_filter":8653,"mw-tabular-data-model/impl/_compareEnum":8654,"mw-tabular-data-model/impl/_Search":8655,"mw-tabular-data-model/impl/_Headers":8656,"mw-tabular-data-model/impl/_metaData/_MetaDataRules":8657,"mw-tabular-data-model/impl/_metaData/_OrderedRules":8658,"mw-tabular-data-model/utils/_arrayUtils":8659,"MW/uiframework/AdvertiseShortcutsDialogManager":8660,"dojo/i18n!l10n/nls/AdvertiseShortcutsDialog":8661,"l10n/nls/ja-jp/AdvertiseShortcutsDialog":8662,"l10n/nls/ko-kr/AdvertiseShortcutsDialog":8663,"l10n/nls/zh-cn/AdvertiseShortcutsDialog":8664,"l10n/nls/AdvertiseShortcutsDialog":8665,"MOTW/openwith/module/ddux/OpenWithEventLogger":8666,"MOTW/pct/app/ParallelComputingFeature":8667,"MOTW/pct/app/cluster/profiles/model/Profile":8668,"MOTW/pct/app/cluster/profiles/model/Section":8669,"MOTW/pct/app/cluster/profiles/model/ValidationInfo":8670,"MOTW/pct/app/utils/log/_DivLogger":8671,"MOTW/pct/app/utils/log/_NoLogger":8672,"MOTW/pct/app/cluster/profiles/model/ProfileExecutor":8673,"MOTW/pct/app/status/session/MF0SessionProvider":8674,"MOTW/pct/app/status/session/CloudCluster":8675,"MOTW/pct/app/status/session/ClusterStage":8676,"MOTW/pct/resources/parallel/web/nls/ja-jp/indicator":8677,"MOTW/pct/resources/parallel/web/nls/ko-kr/indicator":8678,"MOTW/pct/resources/parallel/web/nls/indicator":8679,"MOTW/pct/app/status/session/PeerModelSessionProvider":8680,"MOTW/pct/resources/parallel/web/nls/ja-jp/common":8681,"MOTW/pct/resources/parallel/web/nls/ko-kr/common":8682,"MOTW/pct/resources/parallel/web/nls/common":8683,"MOTW/pct/resources/parallel/web/nls/ja-jp/profiles":8684,"MOTW/pct/resources/parallel/web/nls/ko-kr/profiles":8685,"MOTW/pct/resources/parallel/web/nls/profiles":8686,"MOTW/pct/app/status/Indicator":8687,"MOTW/pct/app/status/IndicatorMenu":8688,"MOTW/pct/app/status/IndicatorTooltip":8689,"MOTW/pct/app/status/IndicatorTooltipMessageBuilder":8690,"dojo/text!MOTW/pct/app/status/IndicatorTooltip.html":8691,"MOTW/pct/app/status/session/ClusterType":8692,"MOTW/pct/app/status/session/PoolIcon":8693,"MOTW/pct/app/toolstrip/Actions":8694,"MOTW/pct/app/cloud/model/controllers/DialogController":8695,"MOTW/pct/app/cloud/model/controllers/FlowController":8696,"MOTW/pct/app/cloud/connectivity/model/SessionController":8697,"MOTW/pct/app/cluster/discovery/DiscoveryWizardUI":8698,"MOTW/pct/app/cluster/discovery/DiscoveryWizardView":8699,"MOTW/pct/app/cluster/discovery/model/FakeDiscoveryManager":8700,"MOTW/pct/app/cluster/discovery/model/PeerDiscoveryManager":8701,"MOTW/pct/app/cluster/discovery/panes/DiscoveryClusterListPane":8702,"MOTW/pct/resources/parallel/web/nls/ja-jp/discover":8703,"MOTW/pct/resources/parallel/web/nls/ko-kr/discover":8704,"MOTW/pct/resources/parallel/web/nls/discover":8705,"MOTW/pct/app/cluster/discovery/DiscoveryTable":8706,"dojo/text!MOTW/pct/app/cluster/discovery/panes/DiscoveryClusterListPane.html":8707,"MOTW/pct/app/cluster/discovery/panes/DiscoveryCompletedPane":8708,"dojo/text!MOTW/pct/app/cluster/discovery/panes/DiscoveryCompletedPane.html":8709,"MOTW/pct/app/cluster/discovery/panes/DiscoveryWelcomePane":8710,"dojo/text!MOTW/pct/app/cluster/discovery/panes/DiscoveryWelcomePane.html":8711,"dojo/text!MOTW/pct/app/cluster/discovery/DiscoveryWizard.html":8712,"MOTW/pct/app/cluster/profiles/ProfileManagerUI":8713,"MOTW/pct/app/cluster/profiles/ProfileManagerView":8714,"MOTW/pct/app/cluster/profiles/ProfileContainer":8715,"MOTW/pct/app/cluster/profiles/ProfileDetails":8716,"dojo/text!MOTW/pct/app/cluster/profiles/ProfileDetails.html":8717,"MOTW/pct/app/cluster/profiles/ProfileTabContainer":8718,"MOTW/pct/app/cluster/profiles/property/PropertySectionWidget":8719,"MOTW/pct/app/cluster/profiles/property/PropertyWidget":8720,"MOTW/pct/app/cluster/profiles/property/PropertyWidgetFactory":8721,"dojo/text!MOTW/pct/app/cluster/profiles/property/editors/_PropertyValueEditor.html":8722,"MOTW/pct/app/cluster/profiles/property/editors/DynamicDropDownPropertyEditor":8723,"MOTW/pct/app/cluster/profiles/property/editors/DynamicComboBox":8724,"MOTW/pct/app/cluster/profiles/property/editors/FileListPropertyEditor":8725,"MOTW/pct/app/cluster/profiles/property/editors/FileListEditor":8726,"dojo/text!MOTW/pct/app/cluster/profiles/property/editors/FileListEditor.html":8727,"MOTW/pct/app/cluster/profiles/property/editors/FolderPropertyEditor":8728,"MOTW/pct/app/cluster/profiles/property/editors/FolderEditor":8729,"dojo/i18n!pct/resources/parallel/web/nls/profiles":8730,"pct/resources/parallel/web/nls/ja-jp/profiles":8731,"pct/resources/parallel/web/nls/ko-kr/profiles":8732,"pct/resources/parallel/web/nls/profiles":8733,"dojo/text!MOTW/pct/app/cluster/profiles/property/editors/FolderEditor.html":8734,"MOTW/pct/app/cluster/profiles/property/editors/LogicalPropertyEditor":8735,"MOTW/pct/app/cluster/profiles/property/editors/NumericRangePropertyEditor":8736,"MOTW/pct/app/cluster/profiles/property/editors/TablePropertyEditor":8737,"MOTW/pct/app/cluster/profiles/property/editors/TableEditor":8738,"dojo/text!MOTW/pct/app/cluster/profiles/property/editors/TableEditor.html":8739,"MOTW/pct/app/cluster/profiles/property/viewers/MultilinePropertyViewer":8740,"MOTW/pct/app/cluster/profiles/property/viewers/NumericRangePropertyViewer":8741,"MOTW/pct/app/cluster/profiles/property/viewers/TablePropertyViewer":8742,"MOTW/pct/app/cluster/profiles/property/config/AdditionalProperties":8743,"MOTW/pct/app/cluster/profiles/property/config/NumericEditor":8744,"dojo/text!MOTW/pct/app/cluster/profiles/property/PropertyWidget.html":8745,"dojo/text!MOTW/pct/app/cluster/profiles/property/PropertySectionWidget.html":8746,"MOTW/pct/app/utils/actions/Action":8747,"dojo/text!MOTW/pct/app/cluster/profiles/PropertiesView.html":8748,"MOTW/pct/app/cluster/profiles/validation/ValidationDetailsSection":8749,"dojo/text!MOTW/pct/app/cluster/profiles/validation/ValidationDetailsSection.html":8750,"MOTW/pct/app/cluster/profiles/validation/ValidationTable":8751,"dojo/text!MOTW/pct/app/cluster/profiles/validation/ValidationView.html":8752,"MOTW/pct/app/cluster/profiles/ProfileTable":8753,"MOTW/pct/app/cluster/profiles/ProfileContextMenu":8754,"MOTW/pct/app/cluster/profiles/toolstrip/Toolstrip":8755,"MOTW/pct/app/cluster/profiles/toolstrip/Config":8756,"MOTW/pct/app/cluster/profiles/toolstrip/PopupConfig":8757,"MOTW/pct/app/cloud/connectivity/ConnectivityCheckDialog":8758,"MOTW/pct/app/cloud/connectivity/ConnectivityCheckWidget":8759,"MOTW/pct/app/cloud/connectivity/_ConnectivityCheckWidgetBase":8760,"MOTW/pct/app/cloud/connectivity/model/ConnectivityCheckSession":8761,"MOTW/pct/resources/parallel/web/nls/ja-jp/connectivityCheck":8762,"MOTW/pct/resources/parallel/web/nls/ko-kr/connectivityCheck":8763,"MOTW/pct/resources/parallel/web/nls/connectivityCheck":8764,"MOTW/pct/app/cloud/connectivity/ConnectivityCheckDetailsWidget":8765,"MOTW/pct/app/cloud/connectivity/ConnectivityCheckDetailsStageWidget":8766,"dojo/text!MOTW/pct/app/cloud/connectivity/ConnectivityCheckDetailsStageWidget.html":8767,"MOTW/pct/app/cloud/connectivity/ConnectivityCheckTable":8768,"MOTW/pct/app/cloud/connectivity/ConnectivityCheckStageWidget":8769,"dojo/text!MOTW/pct/app/cloud/connectivity/ConnectivityCheckStageWidget.html":8770,"dojo/text!MOTW/pct/app/cloud/connectivity/ConnectivityCheckTable.html":8771,"dojo/text!MOTW/pct/app/cloud/connectivity/ConnectivityCheckWidget.html":8772,"MOTW/pct/app/jobmonitor/JobMonitorUI":8773,"MOTW/pct/app/jobmonitor/JobMonitorView":8774,"MOTW/pct/app/jobmonitor/JobMonitorMenu":8775,"MOTW/pct/resources/parallel/web/nls/ja-jp/jobMonitor":8776,"MOTW/pct/resources/parallel/web/nls/ko-kr/jobMonitor":8777,"MOTW/pct/resources/parallel/web/nls/jobMonitor":8778,"MOTW/pct/app/jobmonitor/JobMonitorTable":8779,"MOTW/pct/app/jobmonitor/JobMonitorTooltip":8780,"MOTW/pct/app/jobmonitor/model/CorruptionLevel":8781,"MOTW/pct/app/jobmonitor/JobMonitorUpdateFrequencySelector":8782,"MOTW/pct/app/jobmonitor/model/JobMonitorManager":8783,"MOTW/pct/app/jobmonitor/model/JobMonitorExecutor":8784,"MOTW/pct/app/jobmonitor/model/AbstractJobMonitorExecutor":8785,"MOTW/pct/app/utils/remote/MatlabDisplay":8786,"MOTW/pct/app/jobmonitor/model/Profile":8787,"MOTW/pct/app/jobmonitor/model/Job":8788,"MOTW/pct/app/cluster/profiles/ProfileSelector":8789,"dojo/text!MOTW/pct/app/jobmonitor/JobMonitor.html":8790,"MOTW/pct/app/toolstrip/Toolstrip":8791,"MOTW/pct/app/toolstrip/ParallelMenu":8792,"MOTW/toolstrip/plotsGallery/PlotsGalleryManager":8793,"MOTW/toolstrip/configs/global/PlotsGalleryPopupConfig":8794,"dojo/i18n!MOTW/l10n/nls/plotsgallery":8795,"MOTW/l10n/nls/ja-jp/plotsgallery":8796,"MOTW/l10n/nls/ko-kr/plotsgallery":8797,"MOTW/l10n/nls/zh-cn/plotsgallery":8798,"MOTW/l10n/nls/plotsgallery":8799,"PMP/PostMessageProtocol":8800,"PMP/CommunicationBridge":8801,"PMP/filters/SecurityFilter":8802,"PMP/PostMessageRegistry":8803,"MOTW/postMessageRequestHandlers/DefaultRequestHandler":8804,"desktop_inspector/InspectorMain":8805,"inspector_peer/InspectorFactory":8806,"inspector_peer/InspectorManager":8807,"inspector_client/l10n/nls/ja-jp/app":8808,"inspector_client/l10n/nls/zh-cn/app":8809,"inspector_client/l10n/nls/ko-kr/app":8810,"inspector_client/l10n/nls/app":8811,"dojo/text!rendererseditors/renderers/templates/ColorOrderRenderer.html":8812,"rendererseditors/renderers/GroupedColumnRenderer":8813,"rendererseditors/renderers/_TooltipMixin":8814,"rendererseditors/renderers/_VERendererStyleMixin":8815,"rendererseditors/editors/ArrayOfDatesTextBoxEditor":8816,"rendererseditors/editors/ArrayOfEnumsTextBoxEditor":8817,"rendererseditors/editors/ArrayOfNumbersTextBoxEditor":8818,"rendererseditors/editors/ArrayOfStringsTextBoxEditor":8819,"rendererseditors/editors/BaseOpenvarEditor":8820,"rendererseditors/editors/BinaryToggleButtonEditor":8821,"dojo/text!rendererseditors/editors/templates/binaryToggleButtonEditor.html":8822,"rendererseditors/editors/CharEditor":8823,"rendererseditors/editors/CheckBoxEditor":8824,"dojo/text!rendererseditors/editors/CheckboxListEditor/checkboxlisteditor.html":8825,"rendererseditors/editors/CheckboxListEditor/CheckboxListEditorTableModel":8826,"rendererseditors/l10n/nls/ja-jp/app":8827,"rendererseditors/l10n/nls/zh-cn/app":8828,"rendererseditors/l10n/nls/ko-kr/app":8829,"rendererseditors/l10n/nls/app":8830,"dojo/text!rendererseditors/editors/templates/ColorEditor.html":8831,"dojo/text!rendererseditors/editors/templates/ColorDropDownEditor.html":8832,"rendererseditors/editors/ColorOrderEditor":8833,"dojo/text!rendererseditors/editors/templates/ColorTextBoxEditor.html":8834,"dojo/text!rendererseditors/editors/templates/RGBColorEditor.html":8835,"dojo/text!rendererseditors/editors/templates/ColorOrderEditor.html":8836,"rendererseditors/editors/ColormapEditor":8837,"dojo/text!rendererseditors/editors/templates/ColormapEditor.html":8838,"rendererseditors/editors/DateCheckboxListEditor/DateCheckboxListEditor":8839,"rendererseditors/editors/DateDisplayFormatEditor":8840,"dojo/text!rendererseditors/editors/templates/datepickerEditor.html":8841,"rendererseditors/editors/DateTableEditor/DateTableEditor":8842,"rendererseditors/editors/DateTableEditor/DatePSTable":8843,"rendererseditors/editors/_BasePSTable/_PSTableMixin":8844,"dojo/text!rendererseditors/editors/_BasePSTable/PSTable.html":8845,"rendererseditors/editors/DateTableEditor/DateModel":8846,"dojo/text!rendererseditors/editors/DateTableEditor/DateTableEditor.html":8847,"rendererseditors/editors/DatetimeEditor":8848,"rendererseditors/editors/DisplayFormatEditor/DisplayFormatEditor":8849,"dojo/text!rendererseditors/editors/templates/displayFormatRichEditor.html":8850,"rendererseditors/editors/DisplayFormatEditor/DisplayFormatMode":8851,"rendererseditors/editors/DisplayFormatTextBoxEditor":8852,"rendererseditors/editors/FilePickerEditor":8853,"dojo/text!rendererseditors/editors/templates/FilePickerEditor.html":8854,"rendererseditors/editors/FontNameEditor":8855,"rendererseditors/utils/FontNameHelper":8856,"rendererseditors/editors/IconTextBoxEditor":8857,"rendererseditors/editors/ItemsEditor/ItemsEditor":8858,"rendererseditors/editors/ItemsEditor/ItemsPSTable":8859,"rendererseditors/editors/ItemsEditor/ItemsModel":8860,"rendererseditors/utils/UniqueNameGenerator":8861,"dojo/text!rendererseditors/editors/ItemsEditor/ItemsEditor.html":8862,"rendererseditors/editors/LabelEditor":8863,"rendererseditors/editors/LineStyleOrderEditor":8864,"rendererseditors/editors/LogicalEditor":8865,"rendererseditors/editors/MultilineTextEditor":8866,"dojo/text!rendererseditors/editors/templates/MultilineTextEditor.html":8867,"rendererseditors/editors/NumericEditor":8868,"rendererseditors/editors/NumericTextEditor":8869,"rendererseditors/editors/ObjectEditor/GraphicsObjectEditor":8870,"rendererseditors/editors/ObjectEditor/_BaseObjectEditor":8871,"rendererseditors/editors/ScaleColorsEditor/ScaleColorsEditor":8872,"rendererseditors/editors/ScaleColorsEditor/ScaleColorsPSTable":8873,"rendererseditors/editors/ScaleColorsEditor/ColorColumnEditor":8874,"dojo/text!rendererseditors/editors/ScaleColorsEditor/ColorColumnEditor.html":8875,"rendererseditors/editors/ScaleColorsEditor/ScaleColorsModel":8876,"dojo/text!rendererseditors/editors/ScaleColorsEditor/ScaleColorsEditor.html":8877,"rendererseditors/editors/ScaleColorsTextBoxEditor":8878,"rendererseditors/editors/SliderEditor":8879,"rendererseditors/editors/SpinnerEditor":8880,"rendererseditors/editors/TextAreaEditor":8881,"rendererseditors/editors/TicksEditor/TicksDialogEditor":8882,"rendererseditors/editors/TicksEditor/TickDialogTableModel":8883,"rendererseditors/editors/TicksEditor/HeaderMenuEditor":8884,"dojo/text!rendererseditors/editors/TicksEditor/HeaderMenuEditor.html":8885,"rendererseditors/editors/TicksEditor/ReadOnlyRenderer":8886,"dojo/text!rendererseditors/editors/templates/TicksDialog.html":8887,"rendererseditors/editors/ToggleButtonGroupEditor":8888,"dojo/text!rendererseditors/editors/templates/toggleButtonGroupEditor.html":8889,"rendererseditors/editors/UITableColumnEditor/UITableColumnEditor":8890,"rendererseditors/editors/UITableColumnEditor/UITableColumnEditorModel":8891,"rendererseditors/editors/UITableColumnEditor/UITableColumnEditorTableModel":8892,"rendererseditors/editors/UITableColumnEditor/IntegerEditor":8893,"dojo/text!rendererseditors/editors/templates/UITableColumnEditor.html":8894,"rendererseditors/editors/UITableColumnTextBoxEditor":8895,"rendererseditors/editors/UITableLogicalEditor":8896,"rendererseditors/editors/UITableNonEditableComboboxEditor":8897,"rendererseditors/editors/UITableStringEditor":8898,"rendererseditors/editors/HyperlinkURLEditor":8899,"dojo/text!rendererseditors/editors/templates/HyperlinkURLEditor.html":8900,"inspector_client/widget/InspectorPropertySheet":8901,"inspector_client/renderer/InspectorRenderer":8902,"inspector_client/factory/InspectorManifest":8903,"dojo/text!inspector_client/objectbrowser/templates/objectbrowser.html":8904,"dojo/text!inspector_client/breadcrumbs/templates/breadcrumbs.html":8905,"dojo/text!inspector_client/treeobjectbrowser/templates/treeobjectbrowser.html":8906,"inspector_client/treeobjectbrowser/TreeDataModel":8907,"inspector_client/treeobjectbrowser/_BaseContextMenuProvider":8908,"inspector_client/widget/InspectorPropertyGroup":8909,"inspector_client/widget/_BaseInspectorGroup":8910,"inspector_client/widget/InspectorPropertyEditorGroup":8911,"inspector_client/widget/InspectorPropertySet":8912,"inspector_client/widget/InspectorPropertySubGroup":8913,"inspector_client/editors/ResetLimitsEditor":8914,"inspector_client/editors/DatePickerRichEditor":8915,"inspector_client/editors/datatiprowseditor/DataTipsCustomValueEditor":8916,"inspector_client/editors/datatiprowseditor/DataTipsEditor":8917,"dojo/text!inspector_client/editors/datatiprowseditor/templates/DataTipsEditor.html":8918,"inspector_client/renderer/PropertyGroupRenderer":8919,"inspector_client/renderer/PropertySetRenderer":8920,"inspector_client/renderer/PropertySubGroupRenderer":8921,"dojo/text!inspector_client/templates/inspector.html":8922,"inspector_client/search/InspectorToolbar":8923,"inspector_client/search/SearchTextField":8924,"dojo/text!inspector_client/search/templates/searchTextField.html":8925,"dojo/text!inspector_client/search/templates/inspectorToolbar.html":8926,"dojo/text!inspector_client/templates/inspectorClientWidget.html":8927,"inspector_client/plugins/TicksValidatorPlugin":8928,"inspector_client/plugins/_TicksValidationPluginBase":8929,"viewmodel/impl/matlabViewModel/MF0ViewModelManagerFactory":8930,"viewmodel/impl/matlabViewModel/commitstrategy/AlwaysCommit":8931,"viewmodel/impl/matlabViewModel/commitstrategy/AbstractCommitStrategy":8932,"viewmodel/impl/matlabViewModel/transactionhandlerstrategy/MF0TransactionHandler":8933,"viewmodel/impl/matlabViewModel/transactionhandlerstrategy/AbstractTransactionHandler":8934,"viewmodel/impl/matlabViewModel/MF0ViewModelManager":8935,"viewmodel/impl/matlabViewModel/listener/MF0ViewModelManagerListener":8936,"viewmodel/impl/matlabViewModel/MF0ViewModelFactory":8937,"viewmodel/impl/matlabViewModel/MF0ViewModel":8938,"viewmodel/impl/matlabViewModel/listener/MF0EventDispatchable":8939,"viewmodel/impl/matlabViewModel/listener/MF0ViewModelListener":8940,"viewmodel/impl/matlabViewModel/propertiesgetsetstrategy/JSONEncodePropertyGetSetStrategy":8941,"viewmodel/impl/matlabViewModel/propertiesgetsetstrategy/AbstractPropertyGetSetStrategy":8942,"dojo/i18n!desktop_inspector/l10n/nls/desktop_inspector":8943,"desktop_inspector/l10n/nls/ja-jp/desktop_inspector":8944,"desktop_inspector/l10n/nls/zh-cn/desktop_inspector":8945,"desktop_inspector/l10n/nls/ko-kr/desktop_inspector":8946,"desktop_inspector/l10n/nls/desktop_inspector":8947,"inspector_peer/LayoutManager":8948,"MOTW/toolstrip/qab/QABManager":8950,"MOTW/toolstrip/qab/DefaultQABControlsConfig":8951,"MOTW/toolstrip/qab/QABPlaceHolderActions":8952,"dojo/i18n!MOTW/l10n/nls/qab":8953,"MOTW/l10n/nls/ja-jp/qab":8954,"MOTW/l10n/nls/ko-kr/qab":8955,"MOTW/l10n/nls/zh-cn/qab":8956,"MOTW/l10n/nls/qab":8957,"MOTW/reports/ReportsService":8958,"MOTW/session/SessionDataService":8959,"MOTW/session/SessionLifecycle":8960,"MOTW/session/sessionOverride":8961,"MOTW/dialog/Callout":8962,"dojo/text!MOTW/dialog/callout.html":8963,"MOTW/sharing/SharingList":8964,"dojo/text!MOTW/sharing/sharingList.html":8965,"MOTW/l10n/nls/sharing":8966,"MOTW/sharing/SharingSimpleEdit":8967,"dojo/text!MOTW/sharing/sharingSimpleEdit.html":8968,"slonlineui/main":8969,"slonlineui/containers/ClientWidget":8970,"slonlineui/eventHandlers/JsToNativeEvent":8971,"slonlineui/eventHandlers/DragTracker":8972,"slonlineui/TestUtils/TestMessageService":8973,"slonlineui/utils/BrowserCheck":8974,"slonlineui/utils/KeyboardLayout":8975,"slonlineui/log/Perf":8976,"slonlineui/log/LogMessageHandler":8977,"slonlineui/TestUtils/TestServices":8978,"slonlineui/log/UdcLogging":8979,"dojo/i18n!slonlineui/resources/SimulinkOnline/nls/ui":8980,"slonlineui/resources/SimulinkOnline/nls/ui":8981,"MOTW/openwith/module/experiences/StandaloneWebAppExperience":8982,"MOTW/figureapps/StandaloneWebAppFigureManager":8983,"MOTW/motw/taskbar/Taskbar":8984,"MOTW/motw/taskbar/BottomPanel":8985,"MOTW/l10n/nls/taskbar":8986,"MOTW/motw/taskbar/WindowMinimizer":8987,"MOTW/motw/taskbar/SidePanel":8988,"MOTW/motw/taskbar/UdcLogging":8989,"MOTW/udc/UdcServiceFactory":8990,"MOTW/udc/impl/UdcService":8991,"MOTW/motw/lifecycle/MotwLifeCycle":8992,"MOTW/motw/lifecycle/TaskRunner":8993,"desktop_variableeditor/VariableEditorMain":8994,"desktop_variableeditor/VariableEditorDnD":8995,"variableeditor_client/toolstrip/VETabGroupFactory":8997,"variableeditor_client/toolstrip/VETabGroupConfig":8998,"variableeditor_client/l10n/nls/ja-jp/VEToolstrip":8999,"variableeditor_client/l10n/nls/ko-kr/VEToolstrip":9e3,"variableeditor_client/l10n/nls/zh-cn/VEToolstrip":9001,"variableeditor_client/l10n/nls/VEToolstrip":9002,"variableeditor_client/toolstrip/VETabGroupPopupConfig":9003,"variableeditor_client/toolstrip/VEToolstripActions":9004,"variableeditor_client/toolstrip/VEToolstripManager":9005,"variableeditor_client/toolstrip/VEToolstripActionSynchronizer":9006,"variableeditor_client/toolstrip/VEDynamicTabGroupConfig":9007,"variableeditor_client/enums/NumberDisplayFormat":9008,"MOTW/versioning/VersioningDataService":9009,"MOTW/versioning/VersionDataStore":9010,"mw-store-utils/CurrentItemDataStore":9011,"MOTW/webcam/WebcamService":9012,"dojo/i18n!MOTW/l10n/nls/webcam":9013,"MOTW/l10n/nls/webcam":9014,"MOTW/webcam/WebcamBinaryCommHandler":9015,"webddg/app/WebDdgFactory":9016,"dojo/_base/unload":9017,"webddg/app/WebDdgDialog":9018,"glee/js/glee2/widgets/WGCheckBox":9019,"glee/js/glee2/widgets/WGEdit":9020,"glee/js/glee2/mixins/properties/_WGEchoModeMixin":9021,"glee/js/glee2/widgets/WGText":9022,"glee/js/glee2/widgets/WGButton":9023,"glee/js/glee2/mixins/events/_WGClickedEventMixin":9024,"glee/js/glee2/widgets/WGComboBox":9025,"glee/js/glee2/mixins/events/_WGSelectionChangeEventMixin":9026,"webddg/app/AutoSelectContentOnFocusMixin":9027,"webddg/app/ConstrainedSelect":9028,"webddg/app/WebDdgPushButton":9029,"MOTW/openwith/module/worker/WorkerActionDisabler":9030,"desktop_workspacebrowser/WorkspaceBrowserMain":9031,"desktop_workspacebrowser/Data/WorkspaceClientDataProvider":9032,"desktop_workspacebrowser/l10n/nls/ja-jp/desktop_workspacebrowser":9033,"desktop_workspacebrowser/l10n/nls/zh-cn/desktop_workspacebrowser":9034,"desktop_workspacebrowser/l10n/nls/ko-kr/desktop_workspacebrowser":9035,"desktop_workspacebrowser/l10n/nls/desktop_workspacebrowser":9036,"variableeditor_client/Data/ClientDataProvider":9037,"desktop_workspacebrowser/WorkspaceBrowserDnD":9038,"desktop_workspacebrowser/UploadFilesWidget":9039,"dojo/text!desktop_workspacebrowser/UploadWidget.html":9040,"desktop_workspacebrowser/WorkspaceBrowserFactory":9041,"desktop_workspacebrowser/ViewManifest":9042,"desktop_workspacebrowser/RemoteWorkspaceBrowserViewModel":9043,"desktop_workspacebrowser/WorkspaceBrowserManager":9044,"desktop_workspacebrowser/MF0ViewModelWSBProvider":9045,"MOTW/wra/WraLogin":9047,"MOTW/wra/EmbeddedLoginView":9048,"MOTW/wra/EmbeddedLoginTask":9049,"dojo/text!MOTW/wra/embeddedloginview.html":9050,"MOTW/wra/TermsOfUseView":9051,"dojo/text!MOTW/wra/termsofuseview.html":9052,"MOTW/wra/WaitingRoomDialog":9053,"MOTW/wra/loadAdobeDTMScript":9054,"dojo/text!MOTW/wra/wraLogin2.html":9055,"MOTW/wra/WraDataService":9056,"testbrowser-ui/TestBrowserFactory":9057,"testbrowser-ui/actions/TestBrowserActions":9058,"testbrowser-ui/TestBrowser":9059,"testbrowser-ui/views/TestBrowserView":9060,"dojo/text!testbrowser-ui/templates/testBrowserTemplate.html":9061,"testbrowser-ui/views/TestToolbarView":9062,"testbrowser-ui/controllers/TestToolbarController":9063,"testbrowser-ui/services/core/TestBrowserDataStore":9064,"testbrowser-ui/views/TestSummaryView":9065,"testbrowser-ui/views/TestTreeView":9066,"testbrowser-ui/controllers/TestTreeController":9067,"testbrowser-ui/views/builders/TestTreeNodeRenderer":9068,"mw-popout/Popout":9069,"mw-widget-api/facade/html":9070,"mw-popout/impl/manager/FocusManager":9071,"mw-popout/utils/FocusUtils":9072,"mw-popout/enum/CustomAttributeEnum":9073,"mw-popout/utils/PopoutUtils":9074,"popper/popper":9075,"testbrowser-ui/views/TestPreviewView":9076,"dojo/text!testbrowser-ui/templates/testPreviewTemplate.html":9077,"testbrowser-ui/views/builders/TestTreeContextMenuBuilder":9078,"sidepanel-ui/js/SidePanelManager":9079,"sidepanel-ui/js/SidePanelWidget":9080,"dojo/text!sidepanel-ui/js/SidePanelWidget.html":9081,"mlc/core/Messenger":9082,"mlc/core/_MessengerBase":9083,"mlc/util/clientMode":9084,"mlc/util/coderHas":9085,"mlc/util/Interval":9086,"mlc/util/clientId":9087,"coderapp-webui/ui/CoderAppRegistry":9088,"coderapp-common/mfz/ShallowListener":9089,"coderapp-common/mfz/ModelSource":9090,"coderapp-webui/ui/CoderApp":9091,"coderapp-webui/ui/CoderAppUi":9092,"coderapp-webui/ui/panel/Panel":9093,"mlc/ui/IFrameContentPane":9094,"dojo/text!mlc/ui/templates/editorMessageOverlay.html":9095,"dojo/text!coderapp-webui/ui/panel/templates/coderPanel.html":9096,"coderapp-webui/ui/toolstrip/Toolstrip":9097,"mlc/ui/fileDialogs":9098,"dojo/promise/first":9099,"coderapp-webui/ui/toolstrip/config/TabConfig":9100,"coderapp-webui/ui/toolstrip/config/PopupConfig":9101,"project-sharing-toarchive/ArchiveExtension":9102,"project-sharing-widgets/ShareViewManager":9103,"project-sharing-widgets/resources/MATLAB/project/nls/ja-jp/sharing":9104,"project-sharing-widgets/resources/MATLAB/project/nls/ko-kr/sharing":9105,"project-sharing-widgets/resources/MATLAB/project/nls/zh-cn/sharing":9106,"project-sharing-widgets/resources/MATLAB/project/nls/sharing":9107,"project-sharing-widgets/SaveAsDialog":9108,"dojo/i18n!project-sharing-toarchive/resources/MATLAB/project/nls/sharing":9109,"project-sharing-toarchive/resources/MATLAB/project/nls/ja-jp/sharing":9110,"project-sharing-toarchive/resources/MATLAB/project/nls/ko-kr/sharing":9111,"project-sharing-toarchive/resources/MATLAB/project/nls/zh-cn/sharing":9112,"project-sharing-toarchive/resources/MATLAB/project/nls/sharing":9113,"cmlink-core-ui/DesktopSourceControl":9114,"cmlink-core-ui/SourceControlViewRegistry":9115,"cmlink-core-ui/log/LogViewManager":9116,"cmlink-core-ui/log/LogViewDialog":9117,"cmlink-core-ui/log/RevisionTable":9118,"cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/ja-jp/view_core":9119,"cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/ko-kr/view_core":9120,"cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/zh-cn/view_core":9121,"cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/view_core":9122,"MOTW/matlabOnlineServer/discoveryService/DiscoveryService":9123,"MOTW/matlabOnlineServer/sharingService/SharingDataService":9124,"MOTW/matlabOnlineServer/wraLogin/WraLogin":9125,"MOTW/matlabOnlineServer/wraService/WraDataService":9126,"MOTW/workerClient/WorkerClientPMP":9127,"MOTW/workerClient/WorkerClientJSD":9128,"MOTW/jsd/wraService/WraDataService":9129,"mw-webwindow/WebWindowService":9130,"mw-webwindow/windows/FloatingWebWindow":9131,"mw-webwindow/windows/DialogWebWindow":9132,"mw-webwindow/windows/SeparateWebWindow":9133,"mw-webwindow/WebWindowChannel":9134,"mw-webwindow/origin/OriginUtils":9135,"mw-webwindow/bringToFront/BringToFront":9136,"mw-webwindow/bringToFront/IBringToFront":9137,"mw-webwindow/client/WebWindowClientService":9138,"importtool_peer/ViewManifest":9140,"importtool_peer/RemoteSpreadsheetTableViewModel":9141,"importtool_peer/RemoteSpreadsheetArrayViewModel":9142,"importtool_client/Data/ImportToolTableConstructor":9143,"importtool_client/editors/HeaderEditor":9145,"importtool_peer/Data/ImportToolRemoteDataStore":9146,"importtool_client/SelectionUtils":9147,"dojo/i18n!importtool_peer/l10n/nls/app":9148,"importtool_peer/l10n/nls/ja-jp/app":9149,"importtool_peer/l10n/nls/ko-kr/app":9150,"importtool_peer/l10n/nls/zh-cn/app":9151,"importtool_peer/l10n/nls/app":9152,"importtool_client/SpreadsheetTableViewModel":9153,"importtool_peer/RemoteTextTableViewModel":9154,"importtool_peer/RemoteTextArrayViewModel":9155,"importtool_client/TextTableViewModel":9156,"inspector_client/main":9157,"variableeditor/views/UnknownView":9158,"variableeditor/views/NumericArrayView":9159,"variableeditor/views/table/VariableEditorTable":9160,"variableeditor/views/table/tableBase/_TableBase":9161,"variableeditor/views/table/tableBase/_ListBase":9162,"variableeditor/views/table/tableBase/TextUtils":9163,"variableeditor/views/table/tableBase/_TableHeaders":9164,"variableeditor/app/l10n/nls/ja-jp/app":9165,"variableeditor/app/l10n/nls/zh-cn/app":9166,"variableeditor/app/l10n/nls/ko-kr/app":9167,"variableeditor/app/l10n/nls/app":9168,"dojo/text!variableeditor/views/table/DefaultHeaderTemplate.html":9169,"variableeditor/views/table/tableBase/_TableHeaderSelection":9170,"variableeditor/views/table/_VETableSelection":9171,"dojo/NodeList":9172,"variableeditor/views/table/tableBase/_TableSelection":9173,"variableeditor/views/table/_VEModelProperties":9174,"variableeditor/views/table/tableBase/_TableColumnWidth":9175,"variableeditor/views/table/tableBase/_PropTypeHandler":9176,"dojo/text!variableeditor/views/table/VariableEditorTemplate.html":9177,"variableeditor/views/renderers/VERendererFactory":9178,"variableeditor/views/CharArrayView":9179,"variableeditor/views/StringArrayView":9180,"variableeditor/views/StructureArrayView":9181,"variableeditor/views/table/StructureTable":9182,"datatoolsservices/TestingHooksUtils":9183,"variableeditor/views/table/HeaderContextMenu":9184,"variableeditor/views/accessibility/KeyboardAccessibilityMixin":9185,"variableeditor/views/accessibility/KeyboardActionMappings":9186,"variableeditor/views/CategoricalView":9187,"variableeditor/views/TableArrayView":9188,"variableeditor/views/table/MatlabTable":9189,"variableeditor/views/table/_VERowHeaders":9190,"variableeditor/views/CellArrayView":9191,"variableeditor/views/VectorStructureArrayView":9192,"variableeditor/views/table/StructureArrayTable":9193,"variableeditor/views/DatetimeArrayView":9194,"variableeditor/views/DurationArrayView":9195,"variableeditor/views/CalendarDurationArrayView":9196,"variableeditor/views/editors/OpenvarEditor":9197,"importtool_client/renderers/RightAlignedImportToolRenderer":9198,"importtool_client/renderers/CenterAlignedImportToolRenderer":9199,"importtool_client/renderers/FixedWidthHeaderRenderer":9200})})(),(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,function(e,t,i){var n,o;n=[i(242),i(279),i(211),i(221),i(2748),i(2754),i(2755)],o=i.dj.d(n,(function(e,t,i,n,o){var r={isBrowserValid:function(){var e=!0;return!n("dom")||n("quirks")?e=!1:n("css-enabled")&&n("css-border-radius")&&n("css-text-overflow")&&n("object-create")||(e=!1),e},displayErrorAsOverlay:function(){i.create("div",{style:{position:"absolute",left:"0%",top:"0%","background-color":"grey","-moz-opacity":"0.7",opacity:".70",filter:"alpha(opacity=70)",width:"100%",height:"100%",zIndex:"90"},id:"fadeDiv"},e.body());i.create("div",{style:{position:"relative",margin:"auto","margin-top":"12.35%",width:"400px",height:"300px",padding:"10px",border:"2px solid black","background-color":"#ffffff","z-index":"100","font-family":"Sans-serif"},id:"unsupportedBrowser",class:"content_module"},e.body()).innerHTML=o.unsupportedError}};return{load:function(t,i,n){r.isBrowserValid()?n():t?e.global.location=t:r.displayErrorAsOverlay()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(227),i(280),i(398),i(209),i(3398),i(247),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a={};return new o("DesktopUI").observe(),i.markStart("loginFlow.loginPageLoad"),{start:function(i){try{a=function(){var e,t,i,n,o,a,s=[],l={},c=!1;for(n in t=r.parseQueryString())if(t.hasOwnProperty(n))if(a=t[n].replace(/[^a-zA-Z0-9:,]/g,""),"mocks"===n)for(i=a.split(","),e=0;e<i.length;e+=1)l[(o=i[e].split(":"))[0]]="true"===o[1];else 0===n.indexOf("motw.internal.")?s.push({name:n,status:"on"===a.toLowerCase()?"ON":"OFF"}):"isJSDesktopTechPreview"===n&&"true"===a&&(c=!0);return{mocks:l,featureSwitches:s,isJSDesktopTechPreview:c}}()}catch(e){n.error("Error while parsing query string:",e)}i.appModuleRegistry&&(a.appModuleRegistry=i.appModuleRegistry),t.initialize(a,e.byId("motwApplication"))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(242),i(279)],o=i.dj.d(n,(function(e,t){var i={isBrowserValid:function(){var e,t=navigator.userAgent,i=t.match(/(msie|trident|edge(?=\/))\/?\s*(\d+)/i)||[];return!(i[1]&&("MSIE"===i[1]||"msie"===i[1]||/trident/i.test(i[1]))&&(e=/\brv[ :]+(\d+)/g.exec(t)||[],parseInt(e[1])<12))}};return{load:function(t,n,o){!i.isBrowserValid()&&t?e.global.location=t:o()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3404),i(3405),i(3406),i(3407),i(1831),i(1832),i(1082)],o=i.dj.d(n,(function(){return Array.prototype.slice.call(arguments).map(JSON.parse)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3409)],o=i.dj.d(n,(function(){return Array.prototype.slice.call(arguments).map(JSON.parse)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3410),i(3411),i(3412),i(1082),i(1830)],o=i.dj.d(n,(function(){return Array.prototype.slice.call(arguments).map(JSON.parse)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(242),i(247),i(221)],o=i.dj.d(n,(function(e,t,i){var n={isBrowserValid:function(){var e=!0;return null==t.parseQueryString().touch&&(i("ios")||i("android"))&&(e=!1),e}};return{load:function(t,i,o){n.isBrowserValid()?o():e.global.location=t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3399),i(1082),i(1830),i(3400),i(3401),i(3402),i(1829),i(1828),i(3403)],o=i.dj.d(n,(function(){return Array.prototype.slice.call(arguments).map(JSON.parse)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3408),i(1831),i(1832),i(1082),i(1827)],o=i.dj.d(n,(function(){return Array.prototype.slice.call(arguments).map(JSON.parse)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(280),i(247)],o=i.dj.d(n,(function(e,t){var i=!!t.parseQueryString().mss;return{hideTags:function(){e._moduleLoader.loadExports([{name:"uiLifecycle"}]).then((function(t){t.exports.uiLifecycle.registerTask("WORKER_CONNECTED",(function(){return new Promise((function(t){e._moduleLoader.loadExports([{name:"toolstripReducer"}]).then((function(e){e.exports.toolstripReducer.hideTags(i?["motwToolstrip.matlabTab.help.help.newList.checkForUpdates"]:["motwToolstrip.matlabTab.help.feedback","motwToolstrip.appsTab.file.column2.getMoreAppsPushButton","motwToolstrip.appsTab.file.column3","motwToolstrip.matlabTab.help.help.newList.manageLicenses","motwToolstrip.matlabTab.help.help.newList.checkForUpdates"]),t()}))}))}))}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(212),i(203),i(509),i(377),i(275)],o=i.dj.d(n,(function(e,t,i,n,o,r){let a=!1;return{initialize:function(i){this._editorService=i.editorService,this._focusManager=new o,this._debugServices=r.getInstance(),this._feature=this._createFeature(),this._handles=[e.after(this._debugServices,"onStackChanged",this._handleDebugEvent.bind(this),!0)],i.featureService.addFeature(this._feature);const n=new t;return n.resolve({exports:{debugFileOpeningService:{}}}),n.promise},_handleDebugEvent:function(e,t){if(!a)return;if(0===e.length)return;const i=e[t],n=i.getFullPath(),o=Math.abs(i.getLineNumber());console.log("Attempted to open JS file from debug event: "+n+" at line "+o)},_createFeature:function(){return new(i([n],{constructor:function(e,t){},enableFeature:function(){a=!0},disableFeature:function(){a=!1}}))("JSGraphicalDebugging")}}}),e,t),e.exports=o},,,,,,,,,,,,,,,,,,,function(e,t,i){var n,o;n=[i(203),i(210),i(221),i(223),i(204),i(206),i(238),i(276),i(1391),i(1915),i(216),i(4013),i(31)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=e("dijit.TooltipDialog",[s,d,c,l],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:u,_setTitleAttr:"containerNode",postCreate:function(){this.inherited(arguments),this.own(r(this.domNode,"keydown",o.hitch(this,"_onKey")))},orient:function(e,i,n){var o={"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft","BR-TL":"dijitTooltipBelow dijitTooltipABLeft","BL-TR":"dijitTooltipBelow dijitTooltipABRight","TL-BR":"dijitTooltipAbove dijitTooltipABRight","TR-BL":"dijitTooltipAbove dijitTooltipABLeft"}[i+"-"+n];t.replace(this.domNode,o,this._currentOrientClass||""),this._currentOrientClass=o},focus:function(){this._getFocusItems(),a.focus(this._firstFocusItem)},onOpen:function(e){this.orient(this.domNode,e.aroundCorner,e.corner);var t=e.aroundNodePos;"M"==e.corner.charAt(0)&&"M"==e.aroundCorner.charAt(0)?(this.connectorNode.style.top=t.y+(t.h-this.connectorNode.offsetHeight>>1)-e.y+"px",this.connectorNode.style.left=""):"M"==e.corner.charAt(1)&&"M"==e.aroundCorner.charAt(1)&&(this.connectorNode.style.left=t.x+(t.w-this.connectorNode.offsetWidth>>1)-e.x+"px"),this._onShow()},onClose:function(){this.onHide()},_onKey:function(e){if(e.keyCode==n.ESCAPE)this.defer("onCancel"),e.stopPropagation(),e.preventDefault();else if(e.keyCode==n.TAB){var t=e.target;this._getFocusItems(),this._firstFocusItem==this._lastFocusItem?(e.stopPropagation(),e.preventDefault()):t==this._firstFocusItem&&e.shiftKey?(a.focus(this._lastFocusItem),e.stopPropagation(),e.preventDefault()):t!=this._lastFocusItem||e.shiftKey?e.stopPropagation():(a.focus(this._firstFocusItem),e.stopPropagation(),e.preventDefault())}}});return i("dojo-bidi")&&p.extend({_setTitleAttr:function(e){this.containerNode.title=this.textDir&&this.enforceTextDirWithUcc?this.enforceTextDirWithUcc(null,e):e,this._set("title",e)},_setTextDirAttr:function(e){this._created&&this.textDir==e||(this._set("textDir",e),this.textDir&&this.title&&(this.containerNode.title=this.enforceTextDirWithUcc(null,this.title)))}}),p}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240)],o=i.dj.d(n,(function(e){return e.dijit}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(232),i(247),i(1825)],o=i.dj.d(n,(function(e,t,i,n){var o,r=i.parseQueryString(),a=null;return{init:function(e,t=!!r.mss){o=e,this._isMss=t},enableForMOS:function(){this._isMOS=!0},isMOS:function(){return this._isMOS&&!this._isMss},_getMatlabOnlineFeatures:function(){return{isNativeImportDataEnabled:!1,isSetPathEnabled:!1,isGDSEnabled:!this._isMOS||this._isMss,isNativePublishEnabled:!0,isSimulinkCmdEnabled:!0,isUDCFeedbackEnabled:!1,isMGGEnabled:!0,isLoginRequired:!0,isGDSNotificationsEnabled:!this._isMOS||this._isMss,isAddOnsEnabled:!this._isMOS||this._isMss,isLogoutEnabled:!this._isMOS||this._isMss,isFeedbackEnabled:!this._isMOS||this._isMss,isPublishEnabled:!this._isMOS||this._isMss,isPreferencesEnabled:!this._isMOS||this._isMss,isFileFolderFilterEnabled:!!this._isMOS&&!this._isMss,isSessionTimerEnabled:!this._isMOS||this._isMss}},fetchFeatures:function(){var i=new e;return o?(n.registerResponseHandlers("EnabledFeatures"),t.sendMessage({EnabledFeatures:{}},i)):i.resolve({features:this._getMatlabOnlineFeatures()}),i.promise.then((function(e){a=e.features})),i.promise},getPopulatedFeature:function(e){return a[e]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(206),i(225)],o=i.dj.d(n,(function(e,t){var i={tapRadius:10,dbltapTime:250,selector:function(i,n,o){return function(r,a){var s=n.bubble;return s?n=s:!1!==o&&(o=!0),e(r,n,(function(e){var n=e.target;for(3==n.nodeType&&(n=n.parentNode);!t.matches(n,i,r);)if(n==r||!o||!(n=n.parentNode))return;return a.call(n,e)}))}},countCurrentTouches:function(e,t){if(!("touches"in e))return-1;var i,n,o;for(i=0,n=0;o=e.touches[i];++i)t.contains(o.target)&&++n;return n}};function n(t,n,o,r){if(!(o.targetTouches.length>1)){var a=o.changedTouches[0],s=a.screenX,l=a.screenY;r&&o.preventDefault();var c=e(t,"touchend",(function(e){var t=e.changedTouches[0];e.targetTouches.length||(Math.abs(t.screenX-s)<i.tapRadius&&Math.abs(t.screenY-l)<i.tapRadius&&(r&&e.preventDefault(),n.call(this,e)),c.remove())}))}}return i.tap=function(t,i){return e(t,"touchstart",(function(e){n(t,i,e)}))},i.dbltap=function(t,o){var r,a;return e(t,"touchstart",(function(e){r?n(t,(function(e){if(r){var t=e.changedTouches[0];Math.abs(t.screenX-r.screenX)<i.tapRadius&&Math.abs(t.screenY-r.screenY)<i.tapRadius&&(a&&clearTimeout(a),r=a=null,o.call(this,e))}}),e,!0):n(t,(function(e){r=e.changedTouches[0],a=setTimeout((function(){r=a=null}),i.dbltapTime)}),e)}))},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(794)],o=i.dj.d(n,(function(e,t,i){return e("dojo.dnd.Target",i,{constructor:function(){this.isSource=!1,t.remove(this.node,"dojoDndSource")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2275),i(483),i(256)],o=i.dj.d(n,(function(e,t,i){var n,o={},r=[],a=!1,s=0;function l(){return n||(n=new e({channel:"/LegacyVariableEditorManager"}),o[n.channel]=n,n.manager.addEventListener("rootSet",(function(e){t.logDebug("VE: Factory Root Set");var n=e.target,r=n.getProperty("Debug");void 0!==r&&t.setDebug(r.Debug),n.addEventListener("propertySet",(function(e){e.data&&e.data.key&&"Managers"===e.data.key?t.logDebug("VE: Factory Managers Updated"):e.data&&e.data.key&&"Debug"===e.data.key&&t.setDebug(e.data.newValue.Debug)})),n.addEventListener("peerEvent",(function(e){e.data.type&&"FactoryInitialized"===e.data.type?(t.logDebug("VE: Factory Initialized"),!0,c()):e.data.type&&"ManagerCreated"===e.data.type?e.data.Channel&&o[e.data.Channel]&&o[e.data.Channel].start&&o[e.data.Channel].autoStart&&(o[e.data.Channel].start(),t.logDebug("VE: Factory Auto Starting Manager ("+e.data.Channel+")")):e.data.type&&"log"===e.data.type&&e.data.message&&t.logDebug("VE: Server Log ("+e.data.message+")")})),i.subscribe("variableeditor/isDebug",(function(e){var t=n.getProperty("Debug");e&&void 0!==e.Debug&&t&&e.Debug!==t.Debug&&n.setProperty("Debug",{Debug:e.Debug,Source:"client"})})),n&&n.getProperty("Initialized")&&n.getProperty("Initialized").Initialized&&c()}))),n}function c(){n&&n.getRoot()&&(r.forEach((function(e,i,o){var r=n.getRoot();t.logDebug("VE: Factory Create Manager From Queue ("+e.channel+")"),r.dispatchEvent("peerEvent",r,e)})),r=[])}function d(t){if(!t)return null;var i=l();return t.manager&&(i=t.manager),function(e,t,i){i||(i=l());var n=i.getRoot();n?n.dispatchEvent("peerEvent",n,{type:"CreateManager",channel:e,ignoreUpdates:t||!1}):r.push({type:"CreateManager",channel:e,ignoreUpdates:t||!1})}(t.channel,t.ignoreUpdates||!1,i),new e(t)}function u(e){e&&!e.isError&&(a=!0,c())}return{createManager:function(e){return l(),e.channel||(s+=1,e.channel="/VE_"+s),o&&o[e.channel]&&!e.forceNewManager||(o[e.channel]=d(e)),o[e.channel]},deleteManager:function(e){if(!e&&e.channel)return null;var t=l();!function(e,t){t||(t=l());var i=t.getRoot();i?i.dispatchEvent("peerEvent",i,{type:"DeleteManager",channel:e}):r.push({type:"DeleteManager",channel:e})}(e.channel,t),o[e.channel]=null},start:function(e){e?t.runFactoryInitInMATLAB("internal.matlab.legacyvariableeditor.peer.PeerManagerFactory.startup",u):a=!0,l().start()},isStarted:function(){return a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(240),i(204),i(225),i(231),i(277),i(411),i(272),i(788),i(6814),i(487)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e("dijit.form.DropDownButton",[a,s,l],{baseClass:"dijitDropDownButton",templateString:c,_fillContent:function(){var e=this.srcNodeRef,i=this.containerNode;if(e&&i)for(;e.hasChildNodes();){var n=e.firstChild;n.hasAttribute&&(n.hasAttribute("data-dojo-type")||n.hasAttribute("dojoType")||n.hasAttribute("data-"+t._scopeName+"-type")||n.hasAttribute(t._scopeName+"Type"))?(this.dropDownContainer=this.ownerDocument.createElement("div"),this.dropDownContainer.appendChild(n)):i.appendChild(n)}},startup:function(){this._started||(!this.dropDown&&this.dropDownContainer&&(this.dropDown=o.byNode(this.dropDownContainer.firstChild),delete this.dropDownContainer),this.dropDown&&r.hide(this.dropDown),this.inherited(arguments))},isLoaded:function(){var e=this.dropDown;return!!e&&(!e.href||e.isLoaded)},loadDropDown:function(e){var t=this.dropDown,n=t.on("load",i.hitch(this,(function(){n.remove(),e()})));t.refresh()},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(638),i(7395),i(7400),i(7401),i(7402),i(7403),i(1599),i(7404),i(7405),i(7407),i(7409),i(819),i(813),i(820),i(929),i(930),i(931),i(1590),i(926),i(906),i(1084),i(905)],o=i.dj.d(n,(function(e,t){return new e("javascriptLanguageRegistry",[{id:"language.interface.autoindent.service",path:"rtc_javascript_language_support/plugins/autoindenting/JavaScriptAutoIndentServiceProvider"},{id:"javascript.autoindentingpreference",path:"rtc_javascript_language_support/plugins/autoindenting/preferences/JavaScriptAutoIndentingPreferenceProvider"},{id:"language.interface.smartindent",path:"rtc_javascript_language_support/plugins/smartindenting/JavaScriptSmartIndentingProvider"},{id:"language.common.smartindent.preference",path:"rtc/plugins/language/common/smartindenting/preferences/SmartIndentPreferenceProvider"},{id:"language.javascript.syntaxhighlighter.colorcontributor",path:"rtc_javascript_language_support/plugins/syntaxhighlighter/JavaScriptSyntaxHighlightingColorContributorProvider"},{id:"javascript.syntaxhighlighter",path:"rtc_javascript_language_support/plugins/syntaxhighlighter/JavaScriptSyntaxHighlighterProvider"},{id:"javascript.enablesyntaxhighlightingpreference",path:"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JavaScriptEnableSyntaxHighlightingPreferenceProvider"},{id:"javascript.syntaxhighlighterpreferences",path:"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JavaScriptSyntaxHighlighterPreferencesProvider"},{id:"language.common.lexer.preferences",path:"rtc/plugins/language/common/tokenizer/preferences/MaxTokenizationLineLengthPreferenceProvider",isSharedPlugin:!0},{id:"language.interface.lexer",path:"rtc_javascript_language_support/plugins/tokenizer/JavaScriptTokenizerProvider",isSharedPlugin:!0},{id:"language.interface.tokenmanager",path:"rtc_javascript_language_support/plugins/tokenizer/JavaScriptTokenManagerProvider",isSharedPlugin:!0},{id:"language.common.autoindent",path:"rtc/plugins/language/common/autoindent/AutoIndentProvider"},{id:"language.interface.tokenmatcher.rules",path:"rtc/plugins/language/external/tokenizer/matching/ExternalBasicTokenMatcherRulesProvider",isSharedPlugin:!0},{id:"language.common.blockmatching",path:"rtc/plugins/language/common/blockmatching/BlockMatchingProvider"}],t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3413)],o=i.dj.d(n,(function(){}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(638),i(7282),i(7287),i(7288),i(7289),i(2461),i(7290),i(7291),i(7292),i(7294),i(7298),i(819),i(813),i(820),i(929),i(930),i(931),i(1590),i(926),i(906),i(1084),i(905)],o=i.dj.d(n,(function(e,t){return new e("cLanguageRegistry",[{id:"language.interface.autoindent.service",path:"rtc_clike_language_support/plugins/autoindenting/CLikeAutoIndentServiceProvider"},{id:"clike.autoindentingpreference",path:"rtc_clike_language_support/plugins/autoindenting/preferences/CAutoIndentingPreferenceProvider"},{id:"language.interface.smartindent",path:"rtc_clike_language_support/plugins/smartindenting/CLikeSmartIndentingProvider"},{id:"language.common.smartindent.preference",path:"rtc/plugins/language/common/smartindenting/preferences/SmartIndentPreferenceProvider"},{id:"language.clike.syntaxhighlighter.colorcontributor",path:"rtc_clike_language_support/plugins/syntaxhighlighter/CLikeSyntaxHighlightingColorContributorProvider"},{id:"clike.syntaxhighlighter",path:"rtc_clike_language_support/plugins/syntaxhighlighter/CLikeSyntaxHighlighterProvider"},{id:"clike.enablesyntaxhighlightingpreference",path:"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CLikeEnableSyntaxHighlightingPreferenceProvider"},{id:"clike.syntaxhighlighterpreferences",path:"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CLikeSyntaxHighlighterPreferencesProvider"},{id:"language.common.lexer.preferences",path:"rtc/plugins/language/common/tokenizer/preferences/MaxTokenizationLineLengthPreferenceProvider",isSharedPlugin:!0},{id:"language.interface.lexer",path:"rtc_clike_language_support/plugins/tokenizer/CLikeTokenizerProvider",isSharedPlugin:!0},{id:"language.interface.tokenmanager",path:"rtc_clike_language_support/plugins/tokenizer/CLikeTokenManagerProvider",isSharedPlugin:!0},{id:"language.common.autoindent",path:"rtc/plugins/language/common/autoindent/AutoIndentProvider"},{id:"language.interface.tokenmatcher.rules",path:"rtc/plugins/language/external/tokenizer/matching/ExternalBasicTokenMatcherRulesProvider",isSharedPlugin:!0},{id:"language.common.blockmatching",path:"rtc/plugins/language/common/blockmatching/BlockMatchingProvider"}],t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(638),i(7362),i(7367),i(7368),i(7369),i(2470),i(7370),i(7371),i(7372),i(7374),i(7377),i(819),i(813),i(820)],o=i.dj.d(n,(function(e,t){return new e("xmlLanguageRegistry",[{id:"language.interface.autoindent.service",path:"rtc_xml_language_support/plugins/autoindenting/XmlAutoIndentServiceProvider"},{id:"xml.autoindentingpreference",path:"rtc_xml_language_support/plugins/autoindenting/preferences/XmlAutoIndentingPreferenceProvider"},{id:"language.interface.smartindent",path:"rtc_xml_language_support/plugins/smartindenting/XmlSmartIndentingProvider"},{id:"language.common.smartindent.preference",path:"rtc/plugins/language/common/smartindenting/preferences/SmartIndentPreferenceProvider"},{id:"language.xml.syntaxhighlighter.colorcontributor",path:"rtc_xml_language_support/plugins/syntaxhighlighter/XmlSyntaxHighlightingColorContributorProvider"},{id:"xml.syntaxhighlighter",path:"rtc_xml_language_support/plugins/syntaxhighlighter/XmlSyntaxHighlighterProvider"},{id:"xml.enablesyntaxhighlightingpreference",path:"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/XmlEnableSyntaxHighlightingPreferenceProvider"},{id:"xml.syntaxhighlighterpreferences",path:"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/XmlSyntaxHighlighterPreferencesProvider"},{id:"language.common.lexer.preferences",path:"rtc/plugins/language/common/tokenizer/preferences/MaxTokenizationLineLengthPreferenceProvider",isSharedPlugin:!0},{id:"language.interface.lexer",path:"rtc_xml_language_support/plugins/tokenizer/XmlTokenizerProvider",isSharedPlugin:!0},{id:"language.interface.tokenmanager",path:"rtc_xml_language_support/plugins/tokenizer/XmlTokenManagerProvider",isSharedPlugin:!0},{id:"language.common.autoindent",path:"rtc/plugins/language/common/autoindent/AutoIndentProvider"}],t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(240),i(204),i(242),i(217),i(206),i(248)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([],{CONTEXT_MENU_TIMEOUT:1500,constructor:function(){this._mouseEvents=[],this._docEvents=[]},setupMouseEvents:function(e){this._mouseNode=e,this._mouseEvents.push(a(e,s.press,n.hitch(this,this._onMouseDown))),this._mouseEvents.push(a(e,s.move,n.hitch(this,this._onMouseMove))),this._mouseEvents.push(a(e,s.cancel,n.hitch(this,this._onMouseOut))),this._mouseEvents.push(a(e,s.out,n.hitch(this,this._onMouseOut))),this._nodePos=r.position(this._mouseNode)},cleanupMouseEvents:function(){this._mouseEvents.forEach((function(e){e.remove()})),this._mouseEvents=[],this.cleanupDocumentEvents(),this._mouseNode=null},cleanupDocumentEvents:function(){this._docEvents.forEach((function(e){e.remove()})),this._docEvents=[]},duplicateEvent:function(e){return{offsetX:e.offsetX,offsetY:e.offsetY,pageX:e.pageX,pageY:e.pageY,layerX:e.layerX,layerY:e.layerY,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,button:e.button}},makeMouseEvent:function(e){var t={altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1,button:"right"===e.button?"right":"left",timestamp:Date.now()},n=0,o=0;return e.pageX||e.pageY?(n=e.pageX,o=e.pageY):(e.clientX||e.clientY)&&(n=e.clientX+i.global.document.body.scrollLeft+i.global.document.documentElement.scrollLeft,o=e.clientY+i.global.document.body.scrollTop+i.global.document.documentElement.scrollTop),this._nodePos=r.position(this._mouseNode),t.x=n-this._nodePos.x,t.y=o-this._nodePos.y,this._lastEvent=t,t},getLastEvent:function(){return this._lastEvent},onDragStart:function(e){},onDrag:function(e){},onDragStop:function(e){},onMouseDown:function(e){},onMouseMove:function(e){},onMouseOut:function(e){},onMouseUp:function(e){},onMouseClick:function(e){},onMouseDoubleClick:function(e){},_onMouseDown:function(e){if(t.stop(e),this._mouseDownTime=Date.now(),this._lastMouseDownEvent=this.duplicateEvent(e),this._mouseDown=!0,!this.dragging){this._docEvents.push(a(i.global.document,s.over,n.hitch(t,t.stop))),this._docEvents.push(a(i.global.document,s.out,n.hitch(t,t.stop))),this._docEvents.push(a(i.global.document,s.enter,n.hitch(t,t.stop))),this._docEvents.push(a(i.global.document,s.cancel,n.hitch(t,t.stop))),this._docEvents.push(a(i.global.document,s.move,n.hitch(this,this._onDocumentMouseMove))),this._docEvents.push(a(i.global.document,s.release,n.hitch(this,this._onDocumentMouseUp)));var r=this;this.contextMenuTimeout=setTimeout((function(){o.global.contextMenuPosition={x:r._lastMouseDownEvent.pageX,y:r._lastMouseDownEvent.pageY},r._lastMouseDownEvent.button="right",r.onMouseClick(r._lastMouseDownEvent),r._mouseDown=!1}),this.CONTEXT_MENU_TIMEOUT)}},_onDocumentMouseMove:function(e){clearTimeout(this.contextMenuTimeout),this._mouseDown&&!this.dragging&&(this.dragging=!0,this.onDragStart(this._lastMouseDownEvent)),this.dragging&&(t.stop(e),this.onDrag(e))},_onDocumentMouseUp:function(e){clearTimeout(this.contextMenuTimeout),(this.dragging||this._mouseDown)&&(t.stop(e),this.dragging=!1,Date.now()-this._mouseDownTime<250&&this.onMouseClick(e),this.onDragStop(e)),this.cleanupDocumentEvents(),this._mouseDown=!1},_onMouseMove:function(e){clearTimeout(this.contextMenuTimeout),this._mouseDown&&!this.dragging&&(this.dragging=!0,this.onDragStart(this._lastMouseDownEvent)),this.dragging&&(t.stop(e),this.onDrag(e))},_onMouseOut:function(e){clearTimeout(this.contextMenuTimeout),this.dragging||this.onMouseOut(e),this._mouseDown=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(204),i(225),i(277),i(231),i(609),i(865)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("dijit.PopupMenuItem",a,{baseClass:"dijitMenuItem dijitPopupMenuItem",_fillContent:function(){if(this.srcNodeRef){var e=n("*",this.srcNodeRef);this.inherited(arguments,[e[0]]),this.dropDownContainer=this.srcNodeRef}},_openPopup:function(e,t){var n=this.popup;o.open(i.delegate(e,{popup:this.popup,around:this.domNode})),t&&n.focus&&n.focus()},_closePopup:function(){o.close(this.popup),this.popup.parentMenu=null},startup:function(){if(!this._started){if(this.inherited(arguments),!this.popup){var e=n("[widgetId]",this.dropDownContainer)[0];this.popup=r.byNode(e)}this.ownerDocumentBody.appendChild(this.popup.domNode),this.popup.domNode.setAttribute("aria-labelledby",this.containerNode.id),this.popup.startup(),this.popup.domNode.style.display="none",this.arrowWrapper&&t.set(this.arrowWrapper,"visibility",""),this.focusNode.setAttribute("aria-haspopup","true")}},destroyDescendants:function(e){this.popup&&(this.popup._destroyed||this.popup.destroyRecursive(e),delete this.popup),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(215),i(216),i(360),i(7599)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("dijit.MenuSeparator",[i,n,o],{templateString:r,buildRendering:function(){this.inherited(arguments),t.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(240)],o=i.dj.d(n,(function(e,t){"use strict";var i=document.createElement("div"),n=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector,o=i.querySelectorAll,r=/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g;e.add("dom-matches-selector",!!n),e.add("dom-qsa",!!o);var a=function(i,n){if(c&&i.indexOf(",")>-1)return c(i,n);var r=n?n.ownerDocument||n:t.doc||document,d=(o?/^([\w]*)#([\w\-]+$)|^(\.)([\w\-\*]+$)|^(\w+$)/:/^([\w]*)#([\w\-]+)(?:\s+(.*))?$|(?:^|(>|.+\s+))([\w\-\*]+)(\S*$)/).exec(i);if(n=n||r,d){var u=8===e("ie")&&e("quirks")?n.nodeType===r.nodeType:null!==n.parentNode&&9!==n.nodeType&&n.parentNode===r;if(d[2]&&u){var h;if(!(h=t.byId?t.byId(d[2],r):r.getElementById(d[2]))||d[1]&&d[1]!=h.tagName.toLowerCase())return[];if(n!=r)for(var p=h;p!=n;)if(!(p=p.parentNode))return[];return d[3]?a(d[3],h):[h]}if(d[3]&&n.getElementsByClassName)return n.getElementsByClassName(d[4]);if(d[5]){if(h=n.getElementsByTagName(d[5]),!d[4]&&!d[6])return h;i=(d[4]||"")+d[6]}}if(o)return 1===n.nodeType&&"object"!==n.nodeName.toLowerCase()?s(n,i,n.querySelectorAll):n.querySelectorAll(i);h||(h=n.getElementsByTagName("*"));for(var f=[],g=0,m=h.length;g<m;g++){var _=h[g];1==_.nodeType&&l(_,i,n)&&f.push(_)}return f},s=function(e,t,i){var n=e,o=e.getAttribute("id"),a=o||"__dojo__",s=e.parentNode,l=/^\s*[+~]/.test(t);if(l&&!s)return[];o?a=a.replace(/'/g,"\\$&"):e.setAttribute("id",a),l&&s&&(e=e.parentNode);for(var c=t.match(r),d=0;d<c.length;d++)c[d]="[id='"+a+"'] "+c[d];t=c.join(",");try{return i.call(e,t)}finally{o||n.removeAttribute("id")}};if(!e("dom-matches-selector"))var l=function(){var e="div"==i.tagName?"toLowerCase":"toUpperCase",t={"":function(t){return t=t[e](),function(e){return e.tagName==t}},".":function(e){var t=" "+e+" ";return function(i){return i.className.indexOf(e)>-1&&(" "+i.className+" ").indexOf(t)>-1}},"#":function(e){return function(t){return t.id==e}}},n={"^=":function(e,t){return 0==e.indexOf(t)},"*=":function(e,t){return e.indexOf(t)>-1},"$=":function(e,t){return e.substring(e.length-t.length,e.length)==t},"~=":function(e,t){return(" "+e+" ").indexOf(" "+t+" ")>-1},"|=":function(e,t){return 0==(e+"-").indexOf(t+"-")},"=":function(e,t){return e==t},"":function(e,t){return!0}};function o(e){return function(t,i){for(;(t=t.parentNode)!=i;)if(e(t,i))return!0}}function r(e){return function(t,i){return t=t.parentNode,e?t!=i&&e(t,i):t==i}}var a={};function s(e,t){return e?function(i,n){return t(i)&&e(i,n)}:t}return function(e,i,l){var c=a[i];if(!c){if(i.replace(/(?:\s*([> ])\s*)|(#|\.)?((?:\\.|[\w-])+)|\[\s*([\w-]+)\s*(.?=)?\s*("(?:\\.|[^"])+"|'(?:\\.|[^'])+'|(?:\\.|[^\]])*)\s*\]/g,(function(e,i,a,l,d,u,h){return l?c=s(c,t[a||""](l.replace(/\\/g,""))):i?c=(" "==i?o:r)(c):d&&(c=s(c,function(e,t,i){var o=t.charAt(0);'"'!=o&&"'"!=o||(t=t.slice(1,-1)),t=t.replace(/\\/g,"");var r=n[i||""];return function(i){var n=i.getAttribute(e);return n&&r(n,t)}}(d,h,u))),""})))throw new Error("Syntax error in query");if(!c)return!0;a[i]=c}return c(e,l)}}();if(!e("dom-qsa"))var c=function(e,t){for(var i=e.match(r),n=[],o=0;o<i.length;o++){(e=new String(i[o].replace(/\s*$/,""))).indexOf=escape;for(var s=a(e,t),l=0,c=s.length;l<c;l++){var d=s[l];n[d.sourceIndex]=d}}var u=[];for(o in n)u.push(n[o]);return u};return a.match=n?function(e,t,i){return i&&9!=i.nodeType?s(i,t,(function(t){return n.call(e,t)})):n.call(e,t)}:l,a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(206),i(212),i(244),i(204),i(209),i(232),i(766),i(1699),i(341),i(2776),i(3289),i(3290),i(3291),i(3292),i(3293),i(3294),i(3295),i(3296),i(3297),i(3298),i(3299),i(3300),i(3301),i(3302),i(3303),i(3304),i(32),i(1825)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A){var x=function(e){I.fetchFeatures().then((function(){[d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w].forEach(l.registerFeature,l),e&&s.disableBackspaceOnNonEditableFields()}))};return{init:function(e){if(!e)return I.init(!1),x(e),void c.addToPage();I.init(e._isJSDesktopTechPreview),e._isJSDesktopTechPreview?(A.registerResponseHandlers("ClientType"),A.registerResponseHandlers("NewComputeResource"),function(){var e=new t;return r.setEndpoint(),r.sendMessage({NewComputeResource:{}},e),e.promise}().then((function(i){r.setWorkerEndpoint(i.computeInfo.routingHost,i.computeInfo.routingHost.routingKey),function(){var e=new t;return r.sendMessage(a.createClientTypeMessage(),e),e.promise}().then((function(){x(e)}))}))):x(e)}}}),e,t),e.exports=o},function(e,t,i){e.exports={group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:".",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤#,##0.00;(¤#,##0.00)",plusSign:"+","decimalFormat-long":"000 trillion","decimalFormat-short":"000T"}},function(e,t,i){var n,o;n=[i(638),i(7303),i(7308),i(2461),i(7309),i(7310)],o=i.dj.d(n,(function(e,t){return new e("cppLanguageRegistry",[{id:"clike.autoindentingpreference",path:"rtc_clike_language_support/plugins/autoindenting/preferences/CppAutoIndentingPreferenceProvider"},{id:"language.clike.syntaxhighlighter.colorcontributor",path:"rtc_clike_language_support/plugins/syntaxhighlighter/CLikeSyntaxHighlightingColorContributorProvider"},{id:"clike.enablesyntaxhighlightingpreference",path:"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CppEnableSyntaxHighlightingPreferenceProvider"},{id:"clike.syntaxhighlighterpreferences",path:"rtc_clike_language_support/plugins/syntaxhighlighter/preferences/CppSyntaxHighlighterPreferencesProvider"}],t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(638),i(7333),i(7338),i(7339),i(7340),i(7341),i(7342),i(7343),i(7344),i(7345),i(7347),i(819),i(813),i(820),i(929),i(930),i(931),i(1590),i(926),i(906),i(1084),i(905)],o=i.dj.d(n,(function(e,t){return new e("javaLanguageRegistry",[{id:"language.interface.autoindent.service",path:"rtc_java_language_support/plugins/autoindenting/JavaAutoIndentServiceProvider"},{id:"java.autoindentingpreference",path:"rtc_java_language_support/plugins/autoindenting/preferences/JavaAutoIndentingPreferenceProvider"},{id:"language.interface.smartindent",path:"rtc_java_language_support/plugins/smartindenting/JavaSmartIndentingProvider"},{id:"language.common.smartindent.preference",path:"rtc/plugins/language/common/smartindenting/preferences/SmartIndentPreferenceProvider"},{id:"language.java.syntaxhighlighter.colorcontributor",path:"rtc_java_language_support/plugins/syntaxhighlighter/JavaSyntaxHighlightingColorContributorProvider"},{id:"java.syntaxhighlighter",path:"rtc_java_language_support/plugins/syntaxhighlighter/JavaSyntaxHighlighterProvider"},{id:"java.enablesyntaxhighlightingpreference",path:"rtc_java_language_support/plugins/syntaxhighlighter/preferences/JavaEnableSyntaxHighlightingPreferenceProvider"},{id:"java.syntaxhighlighterpreferences",path:"rtc_java_language_support/plugins/syntaxhighlighter/preferences/JavaSyntaxHighlighterPreferencesProvider"},{id:"language.common.lexer.preferences",path:"rtc/plugins/language/common/tokenizer/preferences/MaxTokenizationLineLengthPreferenceProvider",isSharedPlugin:!0},{id:"language.interface.lexer",path:"rtc_java_language_support/plugins/tokenizer/JavaTokenizerProvider",isSharedPlugin:!0},{id:"language.interface.tokenmanager",path:"rtc_java_language_support/plugins/tokenizer/JavaTokenManagerProvider",isSharedPlugin:!0},{id:"language.common.autoindent",path:"rtc/plugins/language/common/autoindent/AutoIndentProvider"},{id:"language.interface.tokenmatcher.rules",path:"rtc/plugins/language/external/tokenizer/matching/ExternalBasicTokenMatcherRulesProvider",isSharedPlugin:!0},{id:"language.common.blockmatching",path:"rtc/plugins/language/common/blockmatching/BlockMatchingProvider"}],t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(638),i(7353),i(7358),i(2470),i(7359),i(7360)],o=i.dj.d(n,(function(e,t){return new e("htmlLanguageRegistry",[{id:"xml.autoindentingpreference",path:"rtc_xml_language_support/plugins/autoindenting/preferences/HtmlAutoIndentingPreferenceProvider"},{id:"language.xml.syntaxhighlighter.colorcontributor",path:"rtc_xml_language_support/plugins/syntaxhighlighter/XmlSyntaxHighlightingColorContributorProvider"},{id:"xml.enablesyntaxhighlightingpreference",path:"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/HtmlEnableSyntaxHighlightingPreferenceProvider"},{id:"xml.syntaxhighlighterpreferences",path:"rtc_xml_language_support/plugins/syntaxhighlighter/preferences/HtmlSyntaxHighlighterPreferencesProvider"}],t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(638),i(7413),i(7418),i(1599),i(7419),i(7420)],o=i.dj.d(n,(function(e,t){return new e("jsonLanguageRegistry",[{id:"javascript.autoindentingpreference",path:"rtc_javascript_language_support/plugins/autoindenting/preferences/JsonAutoIndentingPreferenceProvider"},{id:"language.javascript.syntaxhighlighter.colorcontributor",path:"rtc_javascript_language_support/plugins/syntaxhighlighter/JavaScriptSyntaxHighlightingColorContributorProvider"},{id:"javascript.enablesyntaxhighlightingpreference",path:"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JsonEnableSyntaxHighlightingPreferenceProvider"},{id:"javascript.syntaxhighlighterpreferences",path:"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/JsonSyntaxHighlighterPreferencesProvider"}],t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(638),i(7425),i(7430),i(1599),i(7431),i(7432)],o=i.dj.d(n,(function(e,t){return new e("typescriptLanguageRegistry",[{id:"javascript.autoindentingpreference",path:"rtc_javascript_language_support/plugins/autoindenting/preferences/TypeScriptAutoIndentingPreferenceProvider"},{id:"language.javascript.syntaxhighlighter.colorcontributor",path:"rtc_javascript_language_support/plugins/syntaxhighlighter/JavaScriptSyntaxHighlightingColorContributorProvider"},{id:"javascript.enablesyntaxhighlightingpreference",path:"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/TypeScriptEnableSyntaxHighlightingPreferenceProvider"},{id:"javascript.syntaxhighlighterpreferences",path:"rtc_javascript_language_support/plugins/syntaxhighlighter/preferences/TypeScriptSyntaxHighlighterPreferencesProvider"}],t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(33),i(1602),i(430),i(7484)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a,s,l,c,d={},u={},h=/^translate(?:3d)?\((-?\d+)(?:\.\d*)?(?:px)?, (-?\d+)/,p=/^matrix\(1, 0, 0, 1, (-?\d+)(?:\.\d*)?(?:px)?, (-?\d+)/,f=n("css-transitions"),g=n("transitionend"),m=n("css-transforms"),_=n("css-transforms3d");if(_?(l="translate3d(",c=",0)"):m&&(l="translate(",c=")"),!f||!l)return console.warn("CSS3 features unavailable for touch scroll effects."),function(){};function v(e,i){var n,o,r,a,u,h=e.touchNode,p=d[e.id];"object"!=typeof i?(a=i,u=arguments[2],i=arguments[3],o=r=!0):(r="y"in i,(o="x"in i)&&r||(n=e.getScrollPosition()),a=o?i.x:n.x,u=r?i.y:n.y),h.style[s]=l+-a+"px,"+-u+"px"+c,p&&o&&e._scrollbarXNode&&(e._scrollbarXNode.style[s]=l+a*p.parentWidth/p.scrollWidth+"px,0"+c),p&&r&&e._scrollbarYNode&&(e._scrollbarYNode.style[s]=l+"0,"+u*p.parentHeight/p.scrollHeight+"px"+c),t.emit(e.touchNode.parentNode,"scroll",{scrollLeft:a,scrollTop:u})}function b(e){return d[e.id]?p.exec(window.getComputedStyle(e.touchNode)[s]):h.exec(e.touchNode.style[s])}function y(e){var t=this.widget,i=[this.node,t._scrollbarXNode,t._scrollbarYNode],n=i.length;for(this.timer&&(clearTimeout(this.timer),this.timer=null),this.transitionHandler&&this.transitionHandler.remove();n--;)i[n]&&(i[n].style[a+"Duration"]="0");e&&e.preserveScrollbars||o(this.node.parentNode,".touchscroll-fadeout"),delete this.resetEffects}function C(e){var t,n,o,r=e.widget,a=r.touchNode,p=r.id,f=0,g=0;i.countCurrentTouches(e,a)===r.touchesToScroll&&((n=b(r))&&(f=+n[1],g=+n[2]),(o=d[p])&&(o.resetEffects&&o.resetEffects({preserveScrollbars:!0}),a.style[s]=l+f+"px,"+g+"px"+c,u[p]=o),t=e.targetTouches[0],(o=d[p]={widget:r,node:a,startX:f-t.pageX,startY:g-t.pageY,lastX:f,lastY:g,pageX:t.pageX,pageY:t.pageY,tickFunc:function(){!function(e){var t,i,n,o,r=d[e];if(!r)return;t=r.node,(i=h.exec(t.style[s]))?(n=+i[1],o=+i[2],r.velX=n-r.lastX,r.velY=o-r.lastY,r.lastX=n,r.lastY=o):r.lastX=r.lastY=0;r.timer=setTimeout(r.tickFunc,50)}(p)}}).timer=setTimeout(o.tickFunc,50))}function T(e){var t,n,r,a,s,l,c,h,p=e.widget,f=p.id,g=p.touchesToScroll,m=d[f];if(m&&(t=i.countCurrentTouches(e,p.touchNode))===g){if(r=(n=e.targetTouches)[0],!m.scrollbarsShown&&(u[f]||Math.abs(r.pageX-m.pageX)>p.scrollThreshold||Math.abs(r.pageY-m.pageY)>p.scrollThreshold))for(function(e,t){var i,n=e.touchNode,r=n.parentNode,a=r.offsetWidth-8,s=r.offsetHeight-8,l=t.scrollWidth=n.scrollWidth,c=t.scrollHeight=n.scrollHeight,d=t.parentWidth=r.offsetWidth,u=t.parentHeight=r.offsetHeight;l>d?(e._scrollbarXNode||(i=o(r,"div.touchscroll-x")),(i=e._scrollbarXNode=e._scrollbarXNode||o(i,"div.touchscroll-bar")).style.width=a*a/l+"px",i.style.left=n.offsetLeft+"px",o(r,".touchscroll-scrollable-x"),t.scrollableX=!0):o(r,"!touchscroll-scrollable-x"),c>u?(e._scrollbarYNode||(i=o(r,"div.touchscroll-y")),(i=e._scrollbarYNode=e._scrollbarYNode||o(i,"div.touchscroll-bar")).style.height=s*s/c+"px",i.style.top=n.offsetTop+"px",o(r,".touchscroll-scrollable-y"),t.scrollableY=!0):o(r,"!touchscroll-scrollable-y"),o(r,"!touchscroll-fadeout")}(p,m),m.scrollbarsShown=!0,h=n.length;h--;)n[h].touchScrolled=!0;m.scrollbarsShown&&(m.scrollableX||m.scrollableY)&&(e.preventDefault(),a=m.scrollableX?m.startX+r.pageX:0,s=m.scrollableY?m.startY+r.pageY:0,l=m.scrollableX?-(m.scrollWidth-m.parentWidth):0,c=m.scrollableY?-(m.scrollHeight-m.parentHeight):0,a>0?a/=2:a<l&&(a=l-(l-a)/2),s>0?s/=2:s<c&&(s=c-(c-s)/2),v(p,-a,-s))}else t>g&&p.cancelTouchScroll()}function E(e){var t=e.widget,n=t.id;d[n]&&i.countCurrentTouches(e,t.touchNode)==t.touchesToScroll-1&&function(e){var t,i,n,o=d[e],r=u[e];delete u[e],o.timer&&clearTimeout(o.timer);o.resetEffects=y,(t=h.exec(o.node.style[s]))?(i=+t[1],n=+t[2]):i=n=0;if(!o.velX&&!o.velY||(i>=0||i<=-(o.scrollWidth-o.parentWidth))&&(n>=0||n<=-(o.scrollHeight-o.parentHeight)))return void S(e,i,n);r&&(r.velX||r.velY)&&(a=o,l=r,(a.velX<=0&&l.velX<=0||a.velX>=0&&l.velX>=0)&&(a.velY<=0&&l.velY<=0||a.velY>=0&&l.velY>=0))&&(o.velX=1.15*(o.velX+r.velX),o.velY=1.15*(o.velY+r.velY));var a,l;o.lastX=i,o.lastY=n,o.calcFunc=function(){!function(e){var t,i,n,o,r,a,s,l=d[e];if(!l)return;if(t=l.node,t.parentNode,i=l.widget,a=i.glideDecel(l.velX),s=i.glideDecel(l.velY),Math.abs(a)>=1||Math.abs(s)>=1){if(o=l.lastX+a,r=l.lastY+s,o>0||o<-(l.scrollWidth-l.parentWidth))for(n=6;n--;)a=i.glideDecel(a);if(r>0||r<-(l.scrollHeight-l.parentHeight))for(n=6;n--;)s=i.glideDecel(s);v(i,-o,-r),l.lastX=o,l.lastY=r,l.velX=a,l.velY=s,l.timer=setTimeout(l.calcFunc,30)}else S(e,l.lastX,l.lastY)}(e)},o.timer=setTimeout(o.calcFunc,30)}(n)}function S(e,i,n){var o,r=d[e],u=r.widget,h=r.node,p=r.scrollableX?Math.max(Math.min(0,i),-(r.scrollWidth-r.parentWidth)):i,f=r.scrollableY?Math.max(Math.min(0,n),-(r.scrollHeight-r.parentHeight)):n;function m(){delete r.transitionHandler,r.resetEffects(),delete d[e]}delete r.timer,p!=i||f!=n?(r.transitionHandler=t.once(h,g,m),h.style[a+"Duration"]=u.bounceDuration+"ms",h.style[s]=l+p+"px,"+f+"px"+c,p!=i&&r.scrollableX&&((o=r.widget._scrollbarXNode).style[a+"Duration"]=u.bounceDuration+"ms",o.style[s]=i>p?l+"0,0"+c:l+(o.parentNode.offsetWidth-o.offsetWidth)+"px,0"+c),f!=n&&r.scrollableY&&((o=r.widget._scrollbarYNode).style[a+"Duration"]=u.bounceDuration+"ms",o.style[s]=n>f?l+"0,0"+c:l+"0,"+(o.parentNode.offsetHeight-o.offsetHeight)+"px"+c)):m()}return s=!0===(s=_||m)?"transform":s+"Transform",a=!0===f?"transition":f+"Transition",r=!0===m?"":"-"+m.toLowerCase()+"-",e(null,{touchesToScroll:1,touchNode:null,scrollThreshold:10,bounceDuration:300,postCreate:function(){this._initTouch(),this.inherited(arguments)},_initTouch:function(){var e,i=this.touchNode=this.touchNode||this.containerNode,n=this;function o(){n.cancelTouchScroll()}function s(e){return function(t){t.widget=n,t.cancelTouchScroll=o,e.call(this,t)}}i&&i.parentNode?((e=i.parentNode).style.overflow="hidden",i.style[a+"Property"]=r+"transform",i.style[a+"TimingFunction"]="cubic-bezier(0.33, 0.66, 0.66, 1)",this._touchScrollListeners=[t(e,"touchstart",s(C)),t(e,"touchmove",s(T)),t(e,"touchend,touchcancel",s(E))]):console.warn("TouchScroll requires a nested node upon which to operate.")},destroy:function(){for(var e=this._touchScrollListeners.length;e--;)this._touchScrollListeners[e].remove();delete d[this.id],this.inherited(arguments)},scrollTo:function(e){var t=d[this.id],i=this.touchNode,n=i.parentNode;!e.preserveMomentum&&t&&t.resetEffects&&t.resetEffects(),e.x&&(e.x=Math.max(0,Math.min(e.x,i.scrollWidth-n.offsetWidth))),e.y&&(e.y=Math.max(0,Math.min(e.y,i.scrollHeight-n.offsetHeight))),v(this,e)},getScrollPosition:function(){var e=b(this);return e?{x:-e[1],y:-e[2]}:{x:0,y:0}},cancelTouchScroll:function(){var e=d[this.id];e&&(e.resetEffects?e.resetEffects():(e.timer&&clearTimeout(e.timer),o(e.node.parentNode,".touchscroll-fadeout")),delete d[this.id])},glideDecel:function(e){return.9*e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(217),i(1327),i(1215)],o=i.dj.d(n,(function(e,t,i,n){var o,r,a=i.autoScrollNodes;return o={},e.after(n.prototype,"postCreate",(function(e){var t=this.id;return o[t]&&console.warn("dgrid instance registered with duplicate id '"+t+"'"),o[t]=this,e})),e.after(n.prototype,"destroy",(function(e){return delete o[this.id],e})),r=function(e){for(var t,i;e;){if((t=e.id)&&(i=o[t]))return i;e=e.parentNode}},i.autoScrollNodes=function(e){var n,o,s,l,c,d,u,h,p,f=e.target,g=r(f);if(g&&(f=g.touchNode.parentNode,n=t.position(f,!0),o=e.pageX-n.x,s=e.pageY-n.y,l=Math.min(i.H_TRIGGER_AUTOSCROLL,n.w/2),c=Math.min(i.V_TRIGGER_AUTOSCROLL,n.h/2),o<l?d=-l:o>n.w-l&&(d=l),s<c?u=-c:s>n.h-c&&(u=c),d||u))return h=g.getScrollPosition(),p={},d&&(p.x=h.x+d),u&&(p.y=h.y+u),void g.scrollTo(p);a.call(this,e)},i}),e,t),e.exports=o},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["Su","Mo","Tu","We","Th","Fr","Sa"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"now","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Day of the Week","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, M/d/y","field-wed-relative+0":"this Wednesday","field-wed-relative+1":"next Wednesday","dateFormatItem-GyMMMEd":"E, MMM d, y G","dateFormatItem-MMMEd":"E, MMM d",eraNarrow:["B","A"],"field-tue-relative+-1":"last Tuesday","days-format-short":["Su","Mo","Tu","We","Th","Fr","Sa"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormat-long":"MMMM d, y","field-fri-relative+-1":"last Friday","field-wed-relative+-1":"last Wednesday","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, MMMM d, y","field-thu-relative+-1":"last Thursday","dateFormatItem-Md":"M/d","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","dayPeriods-format-wide-noon":"noon","dateFormatItem-yMd":"M/d/y","field-era":"Era","dateFormatItem-yM":"M/y","months-standAlone-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"timeFormat-short":"h:mm a","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"h:mm:ss a z","field-year":"Year","dateFormatItem-yMMM":"MMM y","dateTimeFormats-appendItem-Era":"{0} {1}","field-hour":"Hour","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"field-sat-relative+0":"this Saturday","field-sat-relative+1":"next Saturday","timeFormat-full":"h:mm:ss a zzzz","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","field-day-relative+0":"today","field-thu-relative+0":"this Thursday","field-day-relative+1":"tomorrow","field-thu-relative+1":"next Thursday","dateFormatItem-GyMMMd":"MMM d, y G","dateFormatItem-H":"HH","months-standAlone-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"timeFormat-medium":"h:mm:ss a","field-sun-relative+0":"this Sunday","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"next Sunday",eraAbbr:["BC","AD"],"field-minute":"Minute","field-dayperiod":"AM/PM","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","field-day-relative+-1":"yesterday","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} 'at' {0}","dayPeriods-format-narrow-am":"a","dateFormatItem-MMMd":"MMM d","dateFormatItem-MEd":"E, M/d","dateTimeFormat-full":"{1} 'at' {0}","field-fri-relative+0":"this Friday","field-fri-relative+1":"next Friday","field-day":"Day","days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"field-zone":"Time Zone","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"last year","field-month-relative+-1":"last month","dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormatItem-yMMMd":"MMM d, y",eraNames:["Before Christ","Anno Domini"],"days-standAlone-narrow":["S","M","T","W","T","F","S"],"dateFormatItem-MMM":"LLL","field-month":"Month","field-tue-relative+0":"this Tuesday","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","field-tue-relative+1":"next Tuesday","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"this Monday","field-mon-relative+1":"next Monday","dateFormat-short":"M/d/yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","dayPeriods-format-narrow-noon":"n","field-second":"Second","field-sat-relative+-1":"last Saturday","dateFormatItem-yMMMEd":"E, MMM d, y","field-sun-relative+-1":"last Sunday","field-month-relative+0":"this month","field-month-relative+1":"next month","dateFormatItem-Ed":"d E","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Week","dateFormat-medium":"MMM d, y","field-year-relative+0":"this year","field-week-relative+-1":"last week","field-year-relative+1":"next year","dayPeriods-format-narrow-pm":"p","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"last Monday","field-week-relative+0":"this week","field-week-relative+1":"next week"}},function(e,t,i){var n,o;n=[i(203),i(2501)],o=i.dj.d(n,(function(e,t){return e([t],{getNextFocusableModule:function(e){return{}[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(609),i(7598),i(865)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.CheckedMenuItem",i,{baseClass:"dijitMenuItem dijitCheckedMenuItem",templateString:n,checked:!1,_setCheckedAttr:function(e){this.domNode.setAttribute("aria-checked",e?"true":"false"),this._set("checked",e)},iconClass:"",role:"menuitemcheckbox",checkedChar:"&#10003;",onChange:function(){},_onClick:function(e){this.disabled||(this.set("checked",!this.checked),this.onChange(this.checked)),this.onClick(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(843),i(203),i(204),i(35),i(483),i(7600),i(209),i(206),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=t("variableeditor.VariableEditorMain",[r],{layoutService:[],clientPeerManager:{},orig_updateDataStyles:null,orig_updateColumnStyles:null,currentVariables:[],dropZoneClass:"VEDropZone",legacyMOTWChannel:"/VariableEditor",constructor:function(t){this.layoutService=[],this.executionService=[],this.helpDataService=[],this.clientPeerManager={},this.orig_updateDataStyles=null,this.orig_updateColumnStyles=null,this.currentVariables=[],this.focusedDocument={},this.initArgs(t),t&&(e.setContextManager(this.legacyMOTWChannel,t.contextManagerInstance),this.clientPeerManager=n.createManager({messageService:t.messageService,executionService:t.executionService,helpDataService:t.helpDataService,channel:this.legacyMOTWChannel,ignoreUpdates:!1,editable:!0}),this.init())},initArgs:function(e){e&&(this.layoutService=e.layoutService,this.executionService=e.executionService,this.helpDataService=e.helpDataService)},init:function(){var e=this;this.clientPeerManager.addEventListener("variableAdded",(function(t){try{if(t.data.peerDoc){var i=t.data.peerDoc;if(e.addWidget(i),e.currentVariables.push(i.varName),o.logDebug("VE: Document Added"),o.isPerformance()){console.time("openvar");var n=(new Date).getTime()}i.addEventListener("viewAdded",(function(t){try{o.logDebug("VE: View Added");var i=t.data.peerDoc,r=t.data.peerView;e._attachDndHandles(i);var s=function(e){o.logDebug("VE: View Ready");var t=e.data.peerView;if(t.table.startup&&t.table.startup(),o.isPerformance()&&0!==e.data.peerView.table.dataModel._partialData.length){var i=e.data.peerView.table.dataModel._partialData[0][0],r=JSON.parse(i),a=e.data.peerView.table.dataModel._rowCount,c=e.data.peerView.table.dataModel._columnCount;if(!r.isTemporaryValue){console.timeEnd("openvar");var d=(new Date).getTime()-n;l.publish("/VELogChannel",{eventType:"VELoadPerformance",dataType:e.data.peerView.declaredClass,loadTime:d,rows:a,columns:c})}}t.removeEventListener("viewReady",s,this)};r.addEventListener("viewReady",s)}catch(e){a.error(e)}})),i.addEventListener("viewRemoved",(function(e){try{o.logDebug("VE: View Removed")}catch(e){a.error(e)}}))}}catch(e){a.error(e)}})),this.clientPeerManager.addEventListener("variableRemoved",(function(t){if(t.data.peerDoc){var i=t.data.peerDoc;e.removeWidget(i),e.currentVariables.pop(i.varName)}})),this.clientPeerManager.addEventListener("variableFocusGained",(function(t){if(t.data.peerDoc){var i=t.data.peerDoc;e.layoutService.showWidget(i.varDocID),this.focusedDocument=i}})),this.clientPeerManager.addEventListener("variableFocusLost",(function(e){this.focusedDocument={}}))},_attachDndHandles:function(e){this.dragEnterListener=s(e,"dragenter",i.hitch(this,this._onDragEnter,e.domNode,this.dropZoneClass)),this.dragOverListener=s(e,"dragover",i.hitch(this,this._onDragOver)),this.dragLeaveListener=s(e,"dragleave",i.hitch(this,this._onDragLeave,e.domNode,this.dropZoneClass)),this.dropListener=s(e,"drop",i.hitch(this,this._onDrop,e.domNode,this.dropZoneClass))},_onDrop:function(e,t,i){var n=i.dataTransfer.getData("text/workspacebrowser"),o=n.split(","),r=this.clientPeerManager;o.forEach((function(e){e&&r&&r.openVariable(e)})),this.inherited(arguments)},openVariable:function(e,t,i){this.clientPeerManager&&this.clientPeerManager.openVariable&&this.clientPeerManager.openVariable(e,t,i)},closeVariable:function(e){this.clientPeerManager.closeVariable(e)},closeAllVariables:function(){this.clientPeerManager.closeAllVariables()},start:function(){this.clientPeerManager.start()},stop:function(){this.clientPeerManager.stop()},addWidget:function(e){this.layoutService.addWidget(e.varDocID,"vEditor2",e,{title:e.varName,tooltip:e.varName,userContext:e.userContext}),this.layoutService.showWidget(e.varDocID)},showWidget:function(e){this.layoutService.showWidget(e.varDocID)},removeWidget:function(e){this.layoutService.removeWidget(e.varDocID)},getVariables:function(){return this.currentVariables}});return c.getInstance=function(e){return c._instance?(e&&c._instance.initArgs(e),c._instance):(c._instance=new c(e),c._instance)},{getInstance:c.getInstance}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2747)],o=i.dj.d(n,(function(e){return{dynamic:0,normalize:function(e){return e},load:e.require}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";var e="undefined"==typeof _css_cache?{}:_css_cache,t=document;var i=t.head;function n(e){if(t.createStyleSheet){var n=t.createStyleSheet();return n.cssText=e,n.owningElement}return(n=t.createElement("style")).setAttribute("type","text/css"),n.appendChild(t.createTextNode(e)),i.insertBefore(n,i.firstChild),n}function o(o,r,a){var s=e[o];if(s)return l=n(s),r(l);var l=t.createElement("link");l.type="text/css",l.rel="stylesheet",l.href=o;var c=!a||!1!==a.wait,d=navigator.userAgent.match(/AppleWebKit\/(\d+\.?\d*)/);if(d=d&&+d[1],null!==l.onload||d<536){if(c)var u=setInterval((function(){l.style&&(clearInterval(u),r(l))}),15)}else l.onload=function(){l.onload=null,l.onerror=null,c&&r(l)},l.onerror=function(){console.error("Error loading stylesheet "+o),c&&r(l)};(i||t.getElementsByTagName("head")[0]).appendChild(l),c||r(l)}return o.insertCss=n,o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240)],o=i.dj.d(n,(function(e){return e.dojox}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(678),i(4610),i(4993),i(5031),i(5152),i(2088),i(5666),i(5668),i(5670),i(5673),i(5675),i(5677),i(5679),i(5681),i(5683),i(5688),i(5689),i(5691),i(5693),i(5695),i(6416),i(6418),i(6420),i(6423),i(6561),i(6563),i(6565),i(6567),i(6569),i(6571),i(6573),i(6575),i(6585),i(6587),i(6589),i(6591),i(6593),i(6595),i(6597),i(6599),i(6601),i(6611),i(6618),i(6627),i(6629)],o=i.dj.d(n,(function(e){return new e("LiveCodePluginRegistry",[{id:"rtc.export.html",path:"rtc/plugins/export/html/HTMLWithMExporterProvider",subsystem:"rtc.exporters"},{id:"rtc.code.sections.insert",path:"rtc/plugins/language/matlab/sections/InsertSectionProvider",family:"livecodesections",subsystem:"hideallcodeplugins"},{id:"livecode.saveload.withoutputs",path:"livecode_saveload/plugin/LiveCodeWithOutputsSaveLoadProvider",family:"embeddedoutputs"},{id:"rtc.print",path:"livecode_features/plugin/print/LiveEditorPrintProvider"},{id:"rtc.validscriptfiletypenotifier",path:"livecode_features/plugin/ValidScriptFileTypeNotifierProvider",family:"execution"},{id:"rtc.cutcopypaste.htmlgenerator",path:"livecode_features/plugin/LiveEditorHTMLGeneratorProvider"},{id:"rtc.cutcopypaste.rtfgenerator",path:"livecode_features/plugin/LiveEditorRTFGeneratorProvider"},{id:"liveeditor.saveload.forwardcompatibilty",path:"livecode_features/plugin/ForwardCompatibilityHandlerProvider"},{id:"liveeditor.disablefunctionsclasses",path:"livecode_features/plugin/DisableFunctionsClassesHandlerProvider"},{id:"liveeditor.smoothscrollingpreference",path:"livecode_features/plugin/SmoothScrollingPreferenceProvider"},{id:"liveeditor.figure.toolstrip",path:"livecode_features/plugin/figure/FigureToolstripManagerProvider"},{id:"liveeditor.embeddedoutputs.figurefactory",path:"livecode_features/plugin/figure/FigureFactoryProvider",subsystem:"rtc.embeddedoutputs.figuretypes"},{id:"rtc.code.matlabfiletype",path:"livecode_features/plugin/language/matlab/filetype/LiveEditorFileTypeProvider",isSharedPlugin:!0},{id:"rtc.autocompletions.customizers.embeddablecompletion",path:"livecode_features/plugin/liveapps/LiveAppEmbeddableCompletionCustomizerProvider",family:"rtc.liveapps",subsystem:"rtc.autocompletions.customizers"},{id:"rtc.liveapps.uifigurewidgetfactory",path:"livecode_features/plugin/liveapps/LiveAppUIFigureWidgetFactoryProvider",family:"rtc.liveapps"},{id:"rtc.livecontrols.workspacedatacontributor",path:"livecode_features/plugin/livecontrols/LiveControlWorkspaceDataContributorProvider",family:"rtc.livecontrols"},{id:"liveeditor.embeddedoutputs.interactivetableoutputhandler",path:"livecode_features/plugin/variableeditor/InteractiveTableOutputHandlerProvider",family:"embeddedoutputs"},{id:"liveeditor.embeddedoutputs.export.html.matrixoutput",path:"livecode_features/plugin/variableeditor/InteractiveVariableExports/VariableMatrixElement2HTMLProvider",subsystem:"rtc.export.htmloutputwriters"},{id:"liveeditor.embeddedoutputs.export.html.interactivetableoutput",path:"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableElement2HTMLProvider",subsystem:"rtc.export.htmloutputwriters"},{id:"liveeditor.embeddedoutputs.export.latex.interactivevariablestringoutput",path:"livecode_features/plugin/variableeditor/InteractiveVariableExports/InteractiveVariableString2LaTeXProvider",subsystem:"rtc.export.latexoutputwriters"},{id:"liveeditor.embeddedoutputs.export.docbookxml.interactivetableoutput",path:"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableElement2DocBookXMLProvider",subsystem:"rtc.export.docbookxmloutputwriters"},{id:"liveeditor.embeddedoutputs.export.docbookxml.interactivevariablestringoutput",path:"livecode_features/plugin/variableeditor/InteractiveVariableExports/InteractiveVariableString2DocbookXMLProvider",subsystem:"rtc.export.docbookxmloutputwriters"},{id:"liveeditor.embeddedoutputs.export.xslfo.interactivetableoutput",path:"livecode_features/plugin/variableeditor/InteractiveVariableExports/TableElement2XSLFOProvider",subsystem:"rtc.export.xslfooutputwriters"},{id:"rtc.export.output.xslfo.variablematrix",path:"livecode_features/plugin/variableeditor/InteractiveVariableExports/VariableMatrixElement2XSLFOProvider",subsystem:"rtc.export.xslfooutputwriters"},{id:"liveeditor.embeddedoutputs.interactivematrixoutputhandler",path:"livecode_features/plugin/variableeditor/InteractiveMatrixOutputHandlerProvider",family:"embeddedoutputs"},{id:"liveeditor.embeddedoutputs.variablestringoutputhandler",path:"livecode_features/plugin/variableeditor/VariableStringOutputHandlerProvider",family:"embeddedoutputs"},{id:"liveeditor.embeddedoutputs.matrixoutputhandler",path:"livecode_features/plugin/variableeditor/MatrixOutputHandlerProvider",family:"embeddedoutputs"},{id:"liveeditor.embeddedoutputs.clearoutputsfailsafe",path:"livecode_features/plugin/embeddedoutputs/ClearOutputsFailSafeProvider",family:"embeddedoutputs"},{id:"rtc.execution.triggers.manualsection",path:"livecode_features/plugin/execution/LiveEditorManualRunSectionTriggerProvider",family:"execution",subsystem:"hideallcodeplugins"},{id:"margin.statusactionbar.evaluation",path:"livecode_features/plugin/execution/LiveEditorSectionActionBarEvaluationProvider",family:"executionmargin"},{id:"liveeditor.contentmodifiedlistener",path:"livecode_features/plugin/contentmodifiedlistener/LiveContentModifiedListenerProvider"},{id:"rtc.datatip.embeddedoutputs.preference",path:"livecode_features/plugin/datatip/EmbeddedOutputsDataTipPreferenceProvider",family:"embeddedoutputs"},{id:"rtc.datatip",path:"livecode_features/plugin/datatip/EmbeddedOutputsDataTipProvider",subsystem:"hoverabletooltip",family:["debugging","executioncontrols","datatip"]},{id:"rtc.editor.executionnotifier",path:"livecode_features/plugin/execution/LiveCodeEditorExecutionNotifierProvider",family:"execution",isSharedPlugin:!0},{id:"debug.breakpointdirtyservice",isSharedPlugin:!0,family:"executioncontrols",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointDirtyServiceProvider"},{id:"liveeditor.banner.welcomebanner",path:"livecode_features/plugin/welcomebanner/WelcomeBannerProvider"},{id:"liveeditor.filename.banner",path:"livecode_features/plugin/filenamebanner/FileNameBannerProvider"},{id:"rtc.richtext.insertimage",path:"livecode_features/plugin/InsertImageProvider"},{id:"rtc.export.fullfile",path:"livecode_features/plugin/export/FullFileExporterProvider"}])}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(6631)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["debug.documentdirtyservice","rtc.code.matlabfiletype","rtc.internaldocument"]}},createInstance:function(e,t,i){return new n(e,t,i)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6632),i(6633),i(6634),i(6635),i(6636),i(6637),i(6638),i(6639),i(6640)],o=i.dj.d(n,(function(){}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(678),i(6641),i(6643),i(6645),i(6646),i(6647),i(6649),i(6650),i(6652),i(2377),i(6661),i(2378),i(6737),i(2389),i(6744)],o=i.dj.d(n,(function(e){return new e("PlainCodePluginRegistry",[{id:"rtc.backingstore.saveloadcontributor",path:"plaincode_features/plugin/backingstore/JsEditorSaveLoadContributorProvider",isSharedPlugin:!0},{id:"rtc.traditionalexecutionservice",path:"rtc/plugins/execution/TraditionalExecutionServiceProvider"},{id:"liveeditor.contentmodifiedlistener",path:"plaincode_features/plugin/contentmodifiedlistener/PlainContentModifiedListenerProvider"},{id:"rtc.margin.execution",path:"plaincode_features/plugin/margin/PlainCodeExecutionMarginProvider",family:"executionmargin",subsystem:["rtc.left.margin","hideallcodeplugins"]},{id:"rtc.execution.executionenabler",path:"plaincode_features/plugin/execution/PlainCodeExecutionEnablerProvider",family:"execution"},{id:"rtc.editor.executionnotifier",path:"plaincode_features/plugin/execution/PlainCodeEditorExecutionNotifierProvider",family:"execution",isSharedPlugin:!0},{id:"rtc.cutcopypaste.htmlgenerator",path:"plaincode_features/plugin/PlainCodeHTMLGeneratorProvider"},{id:"rtc.cutcopypaste.rtfgenerator",path:"plaincode_features/plugin/PlainCodeRTFGeneratorProvider"},{id:"liveeditor.banner.openaslivescript",path:"plaincode_features/plugin/openaslivescriptbanner/OpenAsLiveScriptBannerProvider"},{id:"rtc.print",path:"plaincode_features/plugin/print/PlainCodeEditorPrintProvider"},{id:"liveeditor.publish",path:"plaincode_features/plugin/publish/PublishProvider",family:"liveeditor.publish"},{id:"rtc.datatip.matlab.preference",path:"plaincode_features/plugin/datatip/MatlabDataTipPreferenceProvider"},{id:"liveeditor.backup",path:"plaincode_features/plugin/backup/BackupPluginProvider"},{id:"rtc.navigate.find.customshortcuts",path:"plaincode_features/plugin/find/FindReplaceCustomShortcutsProvider"}])}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(6746),i(6752),i(6757),i(6762),i(6768),i(2390),i(2391),i(2392),i(2393),i(2394)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return{initialize:function(){let u=new e;return u.resolve({exports:{MATLABPreferencePanel:t,MatlabPreferencePanelLabels:a,CommandHistoryPreferencePanel:i,CommandHistoryPreferencePanelLabels:s,GeneralPreferencePanel:n,GeneralPreferencePanelLabels:l,ConfirmationDialogsPreferencePanel:o,ConfirmationDialogsPreferencePanelLabels:c,SimulinkPreferencePanel:r,SimulinkPreferencePanelLabels:d}}),u.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(6771),i(2395),i(6777),i(2396),i(6783),i(2397),i(6786),i(991),i(6799),i(2399),i(6806),i(2400),i(7179),i(2433),i(7185),i(2434),i(7192),i(747),i(7198),i(7200),i(2440),i(7206),i(1587),i(7233),i(2449),i(7239),i(1569),i(7247),i(2453),i(7253),i(7254),i(7255),i(7256)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P){return{initialize:function(O){let R=new e;return R.resolve({exports:{AutocodingPanel:t,AutocodingPanelLabels:i,AutoformattingPanel:n,AutoformattingPanelLabels:o,BackupPanel:r,BackupPanelLabels:a,CodeAnalyzerPanel:s,CodeAnalyzerPanelLabels:l,CodeFoldingPanel:c,CodeFoldingPanelLabels:d,ColorsPanel:u,ColorsPanelLabels:h,DisplayPanel:p,DisplayLabels:f,EditorPanel:g,EditorPanelLabels:m,FontsPanel:_,FontsPanelLabels:v,CustomFontsPanel:b,KeyboardPanel:y,KeyboardPanelLabels:C,LanguageMATLABPanel:T,LanguageMATLABPanelLabels:E,OtherLanguagesPanel:S,OtherLanguagesPanelLabels:w,ProgrammingToolsPanel:I,ProgrammingToolsPanelLabels:A,TabPanel:x,TabPanelLabels:N,ColorsPanelBackgroundForegroundProvider:L,ColorsPanelCodeAnalyzerPreferenceProvider:D,ColorsPanelSyntaxHighlighterPreferencesProvider:M,ColorsPanelSyntaxHighlighterProvider:P}}),R.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(7257),i(2454),i(7263),i(2455)],o=i.dj.d(n,(function(e,t,i,n,o){return{initialize:function(){let r=new e;return r.resolve({exports:{CommandWindowPanel:t,CommandWindowPanelLabels:i,CommandWindowCompletionPanel:n,CommandWindowCompletionPanelLabels:o}}),r.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(7269),i(2456)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(){let n=new e;return n.resolve({exports:{CurrentFolderPrefsModule:t,CurrentFolderPanelLabels:i}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7275),i(7300),i(212),i(1588),i(7312),i(7313),i(7314),i(7315),i(7316)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return{initialize:function(){let c=new i;return c.resolve({exports:{LanguageCLikePanel:e,LanguageCLikePanelLabels:n,LanguageCppPanel:t,LanguageCLikePanelSyntaxHighlighterProvider:a,LanguageCLikePanelSyntaxHighlighterPreferencesProvider:r,LanguageCLikeEnableSyntaxHighlighterPreferenceProvider:o,LanguageCppPanelSyntaxHighlighterPreferencesProvider:l,LanguageCppEnableSyntaxHighlighterPreferenceProvider:s}}),c.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(2465),i(7321)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(){let n=new e;return n.resolve({exports:{LanguageJavaPanel:i,LanguageJavaPanelLabels:t}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(1592),i(7352),i(7380),i(7383),i(7384),i(7385),i(7386),i(7387)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return{initialize:function(){let c=new e;return c.resolve({exports:{LanguageXmlPanel:n,LanguageHtmlPanel:i,LanguageXmlPanelLabels:t,LanguageXmlPanelSyntaxHighlighterProvider:l,LanguageXmlPanelSyntaxHighlighterPreferencesProvider:s,LanguageXmlEnableSyntaxHighlighterPreferenceProvider:a,LanguageHtmlPanelSyntaxHighlighterPreferencesProvider:r,LanguageHtmlEnableSyntaxHighlighterPreferenceProvider:o}}),c.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(1213),i(7392),i(7410),i(7422),i(7434),i(7435),i(7436),i(7437),i(7438),i(7439),i(7440)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return{initialize:function(){let h=new e;return h.resolve({exports:{LanguageJavaScriptPanel:i,LanguageTypeScriptPanel:o,LanguageJsonPanel:n,LanguageJavaScriptPanelLabels:t,LanguageJavaScriptPanelSyntaxHighlighterProvider:s,LanguageJavaScriptPanelSyntaxHighlighterPreferencesProvider:a,LanguageJavaScriptEnableSyntaxHighlighterPreferenceProvider:r,LanguageTypeScriptPanelSyntaxHighlighterPreferencesProvider:u,LanguageTypeScriptEnableSyntaxHighlighterPreferenceProvider:d,LanguageJsonPanelSyntaxHighlighterPreferencesProvider:c,LanguageJsonEnableSyntaxHighlighterPreferenceProvider:l}}),h.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(7441),i(7455),i(7456),i(7457),i(7458)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{initialize:function(s){const l=new t,c=e([i]),d=e([n]),u=e([o]),h=e([r]),p=e([a]);return l.resolve({exports:{newScriptAction:c,newLiveScriptAction:d,newFunctionAction:u,newClassAction:h,openAsTextAction:p}}),l.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(638),i(7459),i(7464),i(7465),i(7466),i(7467),i(7469),i(7470),i(7471),i(7474),i(7477),i(7478),i(929),i(930),i(905),i(926),i(906),i(931),i(819),i(813),i(820)],o=i.dj.d(n,(function(e,t){return new e("simscapeLanguageRegistry",[{id:"language.interface.autoindent.service",path:"physmod_simscape_language_editor/plugins/autoindenting/SimscapeAutoIndentServiceProvider"},{id:"simscape.autoindentingpreference",path:"physmod_simscape_language_editor/plugins/autoindenting/preferences/SimscapeAutoIndentingPreferenceProvider"},{id:"language.interface.smartindent",path:"physmod_simscape_language_editor/plugins/smartindenting/SimscapeSmartIndentingProvider"},{id:"language.common.smartindent.preference",path:"rtc/plugins/language/common/smartindenting/preferences/SmartIndentPreferenceProvider"},{id:"language.simscape.syntaxhighlighter.colorcontributor",path:"physmod_simscape_language_editor/plugins/syntaxhighlighter/SimscapeSyntaxHighlightingColorContributorProvider"},{id:"simscape.syntaxhighlighter",path:"physmod_simscape_language_editor/plugins/syntaxhighlighter/SimscapeSyntaxHighlighterProvider"},{id:"simscape.enablesyntaxhighlightingpreference",path:"physmod_simscape_language_editor/plugins/syntaxhighlighter/preferences/SimscapeEnableSyntaxHighlightingPreferenceProvider"},{id:"simscape.syntaxhighlighterpreferences",path:"physmod_simscape_language_editor/plugins/syntaxhighlighter/preferences/SimscapeSyntaxHighlighterPreferencesProvider"},{id:"language.common.lexer.preferences",path:"rtc/plugins/language/common/tokenizer/preferences/MaxTokenizationLineLengthPreferenceProvider",isSharedPlugin:!0},{id:"language.interface.lexer",path:"physmod_simscape_language_editor/plugins/tokenizer/SimscapeTokenizerProvider",isSharedPlugin:!0},{id:"language.interface.tokenmanager",path:"physmod_simscape_language_editor/plugins/tokenizer/SimscapeTokenManagerProvider",isSharedPlugin:!0},{id:"language.common.autoindent",path:"rtc/plugins/language/common/autoindent/AutoIndentProvider"},{id:"language.interface.tokenmatcher.rules",path:"physmod_simscape_language_editor/plugins/tokenizer/matching/SimscapeTokenMatcherRulesProvider",isSharedPlugin:!0},{id:"language.common.blockmatching",path:"rtc/plugins/language/common/blockmatching/BlockMatchingProvider"}],t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(7480)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new t,r=e([i]);return o.resolve({exports:{cdUpOneDirAction:r}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(7481)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new t,r=e([i]);return o.resolve({exports:{browseForFolderAction:r}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(7535),i(7544),i(7547),i(7550),i(7551),i(7552),i(7553),i(7554),i(7555),i(7556),i(7557)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return{initialize:function(){const e=new t;return e.resolve({exports:{addToProject:i,removeFromProject:r,addToProjectPathSection:n,removeFromProjectPathSection:o,setStartupFile:a,clearStartupFile:s,setShutdownFile:l,clearShutdownFile:c,copy:u,paste:h,cut:d}}),e.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1035),i(1275),i(651),i(203),i(7558)],o=i.dj.d(n,(function(e,t,i,n,o){return{initialize:function(){var e=n([o]);return Promise.resolve({exports:{shareAction:e}})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(7570)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new t,r=e([i])();return o.resolve({exports:{richContentPreviewPlugin:r}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7572)],o=i.dj.d(n,(function(e,t){return{initialize:function(){return new Promise((function(i,n){i({exports:{mlappPreviewPlugin:e([t])()}})}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7573)],o=i.dj.d(n,(function(e){return{initialize:function(){return Promise.resolve({exports:{MATLABDriveAction:e}})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7582)],o=i.dj.d(n,(function(e){return{initialize:async function(){return{exports:{tripwireButtonAction:e}}}}}),e,t),e.exports=o},function(e,t,i){e.exports={HKD_displayName:"Hong Kong Dollar",CHF_displayName:"Swiss Franc",JPY_symbol:"¥",CAD_displayName:"Canadian Dollar",CNY_displayName:"Chinese Yuan",USD_symbol:"$",AUD_displayName:"Australian Dollar",JPY_displayName:"Japanese Yen",USD_displayName:"US Dollar",GBP_displayName:"British Pound Sterling",EUR_displayName:"Euro"}},function(e,t,i){e.exports={"field-second-relative+0":"now","field-weekday":"Day of the Week","field-wed-relative+0":"this Wednesday","field-wed-relative+1":"next Wednesday","dateFormatItem-GyMMMEd":"E, MMM d, y G","dateFormatItem-MMMEd":"E, MMM d","field-tue-relative+-1":"last Tuesday","days-format-short":["Su","Mo","Tu","We","Th","Fr","Sa"],"dateFormat-long":"MMMM d, y G","field-fri-relative+-1":"last Friday","field-wed-relative+-1":"last Wednesday","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"dateFormatItem-yyyyQQQ":"QQQ y G","dateTimeFormat-medium":"{1}, {0}","dateFormat-full":"EEEE, MMMM d, y G","dateFormatItem-yyyyMEd":"E, M/d/y GGGGG","field-thu-relative+-1":"last Thursday","dateFormatItem-Md":"M/d","field-era":"Era","timeFormat-short":"h:mm a","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"timeFormat-long":"h:mm:ss a z","field-year":"Year","dateTimeFormats-appendItem-Era":"{0} {1}","field-hour":"Hour","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"field-sat-relative+0":"this Saturday","field-sat-relative+1":"next Saturday","timeFormat-full":"h:mm:ss a zzzz","field-day-relative+0":"today","field-thu-relative+0":"this Thursday","field-day-relative+1":"tomorrow","field-thu-relative+1":"next Thursday","dateFormatItem-GyMMMd":"MMM d, y G","dateFormatItem-Gy":"y G","dateFormatItem-yyyyMMMEd":"E, MMM d, y G","dateFormatItem-yyyyMMM":"MMM y G","dateFormatItem-yyyyMMMd":"MMM d, y G","timeFormat-medium":"h:mm:ss a","field-sun-relative+0":"this Sunday","field-sun-relative+1":"next Sunday",eraAbbr:["BE"],"field-minute":"Minute","field-dayperiod":"AM/PM","field-day-relative+-1":"yesterday","dateTimeFormat-long":"{1} 'at' {0}","dateFormatItem-MEd":"E, M/d","dateTimeFormat-full":"{1} 'at' {0}","field-fri-relative+0":"this Friday","field-fri-relative+1":"next Friday","field-day":"Day","days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"field-zone":"Time Zone","dateFormatItem-y":"y G","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"last year","field-month-relative+-1":"last month","dateTimeFormats-appendItem-Year":"{0} {1}","dateFormatItem-yyyyMd":"M/d/y GGGGG","field-month":"Month","field-tue-relative+0":"this Tuesday","field-tue-relative+1":"next Tuesday","field-mon-relative+0":"this Monday","field-mon-relative+1":"next Monday","dateFormat-short":"M/d/y GGGGG","field-second":"Second","field-sat-relative+-1":"last Saturday","field-sun-relative+-1":"last Sunday","field-month-relative+0":"this month","field-month-relative+1":"next month","dateFormatItem-Ed":"d E","field-week":"Week","dateFormat-medium":"MMM d, y G","field-year-relative+0":"this year","field-week-relative+-1":"last week","dateFormatItem-yyyyM":"M/y GGGGG","field-year-relative+1":"next year","dateFormatItem-yyyyQQQQ":"QQQQ y G","dateTimeFormat-short":"{1}, {0}","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"last Monday","dateFormatItem-yyyy":"y G","field-week-relative+0":"this week","field-week-relative+1":"next week"}},function(e,t,i){e.exports={"field-second-relative+0":"now","field-weekday":"Day of the Week","field-wed-relative+0":"this Wednesday","field-wed-relative+1":"next Wednesday","dateFormatItem-GyMMMEd":"E, MMM d, y G","dateFormatItem-MMMEd":"E, MMM d","field-tue-relative+-1":"last Tuesday","days-format-short":["Su","Mo","Tu","We","Th","Fr","Sa"],"dateFormat-long":"MMMM d, y G","field-fri-relative+-1":"last Friday","field-wed-relative+-1":"last Wednesday","dateFormatItem-yyyyQQQ":"QQQ y G","dateTimeFormat-medium":"{1}, {0}","dateFormat-full":"EEEE, MMMM d, y G","dateFormatItem-yyyyMEd":"E, M/d/y GGGGG","field-thu-relative+-1":"last Thursday","dateFormatItem-Md":"M/d","field-era":"Era","timeFormat-short":"h:mm a","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"timeFormat-long":"h:mm:ss a z","field-year":"Year","dateTimeFormats-appendItem-Era":"{0} {1}","field-hour":"Hour","field-sat-relative+0":"this Saturday","field-sat-relative+1":"next Saturday","timeFormat-full":"h:mm:ss a zzzz","field-day-relative+0":"today","field-thu-relative+0":"this Thursday","field-day-relative+1":"tomorrow","field-thu-relative+1":"next Thursday","dateFormatItem-GyMMMd":"MMM d, y G","dateFormatItem-Gy":"y G","dateFormatItem-yyyyMMMEd":"E, MMM d, y G","dateFormatItem-yyyyMMM":"MMM y G","dateFormatItem-yyyyMMMd":"MMM d, y G","timeFormat-medium":"h:mm:ss a","field-sun-relative+0":"this Sunday","field-sun-relative+1":"next Sunday",eraAbbr:["AH"],"field-minute":"Minute","field-dayperiod":"AM/PM","field-day-relative+-1":"yesterday","dateTimeFormat-long":"{1} 'at' {0}","dateFormatItem-MEd":"E, M/d","dateTimeFormat-full":"{1} 'at' {0}","field-fri-relative+0":"this Friday","field-fri-relative+1":"next Friday","field-day":"Day","days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"field-zone":"Time Zone","dateFormatItem-y":"y G","field-year-relative+-1":"last year","field-month-relative+-1":"last month","dateTimeFormats-appendItem-Year":"{0} {1}","dateFormatItem-yyyyMd":"M/d/y GGGGG","field-month":"Month","field-tue-relative+0":"this Tuesday","field-tue-relative+1":"next Tuesday","field-mon-relative+0":"this Monday","field-mon-relative+1":"next Monday","dateFormat-short":"M/d/y GGGGG","field-second":"Second","field-sat-relative+-1":"last Saturday","field-sun-relative+-1":"last Sunday","field-month-relative+0":"this month","field-month-relative+1":"next month","dateFormatItem-Ed":"d E","field-week":"Week","dateFormat-medium":"MMM d, y G","field-year-relative+0":"this year","field-week-relative+-1":"last week","dateFormatItem-yyyyM":"M/y GGGGG","field-year-relative+1":"next year","dateFormatItem-yyyyQQQQ":"QQQQ y G","dateTimeFormat-short":"{1}, {0}","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"last Monday","dateFormatItem-yyyy":"y G","field-week-relative+0":"this week","field-week-relative+1":"next week"}},function(e,t,i){var n,o;n=[i(31),i(650),i(7588),i(1005),i(712),i(7590),i(7591),i(7592),i(7593),i(7594),i(7595),i(7596)],o=i.dj.d(n,(function(e){return e._base}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(203),i(356),i(214)],o=i.dj.d(n,(function(e,t,i,n){return t("dojo.fx.Toggler",null,{node:null,showFunc:i.fadeIn,hideFunc:i.fadeOut,showDuration:200,hideDuration:200,constructor:function(t){var i=this;e.mixin(i,t),i.node=t.node,i._showArgs=e.mixin({},t),i._showArgs.node=i.node,i._showArgs.duration=i.showDuration,i.showAnim=i.showFunc(i._showArgs),i._hideArgs=e.mixin({},t),i._hideArgs.node=i.node,i._hideArgs.duration=i.hideDuration,i.hideAnim=i.hideFunc(i._hideArgs),n.after(i.showAnim,"beforeBegin",e.hitch(i.hideAnim,"stop",!0),!0),n.after(i.hideAnim,"beforeBegin",e.hitch(i.showAnim,"stop",!0),!0)},show:function(e){return this.showAnim.play(e||0)},hide:function(e){return this.hideAnim.play(e||0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(794)],o=i.dj.d(n,(function(e,t){return e("dojo.dnd.AutoSource",t,{constructor:function(){this.autoSync=!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(224),i(306),i(225),i(206),i(214),i(1602),i(1003),i(33),i(430)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){function d(e,t,i,n){var o,r=this.grid.isRTL?"right":"left",a=".dgrid-expando-icon";return t&&(a+=".ui-icon.ui-icon-triangle-1-"+(i?"se":"e")),(o=c("div"+a+"[style=margin-"+r+": "+e*(this.indentWidth||9)+"px; float: "+r+"]")).innerHTML="&nbsp;",o}function u(e){var t=this,i=this.style.height;i&&(this.style.display="0px"==i?"none":"block"),e&&(c(this,".dgrid-tree-resetting"),setTimeout((function(){c(t,"!dgrid-tree-resetting")}))),this.style.height=""}function h(e){var h,p,f=e.renderCell||s.defaultRenderCell;return e||(e={}),e.shouldExpand=e.shouldExpand||function(e,t,i){return i},r.after(e,"init",(function(){var s=e.grid,f=".dgrid-content .dgrid-column-"+e.id,g=[];if(s.cleanEmptyObservers=!1,!s.store)throw new Error("dgrid tree column plugin requires a store to operate.");e.renderExpando||(e.renderExpando=d),g.push(s.on(e.expandOn||".dgrid-expando-icon:click,"+f+":dblclick,"+f+":keydown",(function(e){var t=s.row(e);s.store.mayHaveChildren&&!s.store.mayHaveChildren(t.data)||"keydown"==e.type&&32!=e.keyCode||"dblclick"==e.type&&p&&p.count>1&&t.id==p.id&&e.target.className.indexOf("dgrid-expando-icon")>-1||s.expand(t),e.target.className.indexOf("dgrid-expando-icon")>-1&&(p&&p.id==s.row(e).id?p.count++:p={id:s.row(e).id,count:1})}))),a("touch")&&g.push(s.on(l.selector(f,l.dbltap),(function(){s.expand(this)}))),s._expanded||(s._expanded={}),g.push(r.after(s,"insertRow",(function(t){var i=this.row(t);return e.shouldExpand(i,h,this._expanded[i.id])&&this.expand(t,!0,!0),t}))),g.push(r.before(s,"removeRow",(function(e,t){var i=e.connected;i&&(n(">.dgrid-row",i).forEach((function(e){s.removeRow(e,!0)})),t||c(i,"!"))}))),e.collapseOnRefresh&&g.push(r.after(s,"cleanup",(function(){this._expanded={}}))),s._calcRowHeight=function(e){var t=e.connected;return e.offsetHeight+(t?t.offsetHeight:0)},s.expand=function(t,r,l){var d=t.element?t:s.row(t),h=a("transitionend"),p=new i,f=p.promise;if(p.resolve(),t=(t=d.element).className.indexOf("dgrid-expando-icon")>-1?t:n(".dgrid-expando-icon",t)[0],l=l||!1===e.enableTransitions,t&&t.mayHaveChildren&&(l||r!==!!this._expanded[d.id])){var g=void 0===r?!this._expanded[d.id]:r;c(t,".ui-icon-triangle-1-"+(g?"se":"e")+"!ui-icon-triangle-1-"+(g?"e":"se"));var m,_,v=d.element,b=v.connected,y={originalQuery:this.query};if(!b){b=y.container=v.connected=c(v,"+div.dgrid-tree-container");var C=function(e){return s.store.getChildren(d.data,e)};e.allowDuplicates&&(y.parentId=d.id),"level"in t&&(C.level=t.level),f=f.then((function(){if(s.renderQuery)return s.renderQuery(C,y);var e=c(b,"div"),t=s.renderArray(C(y),e,"level"in C?{queryLevel:C.level}:{});return i.when(t,(function(){c(e,"!")})),t})),h?o(b,h,u):u.call(b)}b.hidden=!g,m=b.style,!h||l?(m.display=g?"block":"none",m.height=""):(g?(m.display="block",_=b.scrollHeight,m.height="0px"):(c(b,".dgrid-tree-resetting"),m.height=b.scrollHeight+"px"),setTimeout((function(){c(b,"!dgrid-tree-resetting"),m.height=g?_?_+"px":"auto":"0px"}))),g?this._expanded[d.id]=!0:delete this._expanded[d.id]}return f},r.after(e,"destroy",(function(){t.forEach(g,(function(e){e.remove()})),delete s.expand,delete s._calcRowHeight}))})),e.renderCell=function(t,i,n,o){var r,a,s=e.grid,l=Number(o&&o.queryLevel)+1,d=!s.store.mayHaveChildren||s.store.mayHaveChildren(t),u=o.parentId;l=h=isNaN(l)?0:l,(r=e.renderExpando(l,d,s._expanded[(u?u+"-":"")+s.store.getIdentity(t)],t)).level=l,r.mayHaveChildren=d,(a=f.call(e,t,i,n,o))&&a.nodeType?(c(n,r),c(n,a)):n.insertBefore(r,n.firstChild)},e}return h.defaultRenderExpando=d,h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(224),i(206),i(214),i(445),i(430)],o=i.dj.d(n,(function(e,t,i,n,o,r){return function(i,a){var s,l,c=[];function d(e){return!s.allowSelect(s.row(e))}function u(e){return function(t){var n,o,r,a=t.rows,c=a.length,d="false";for(r=0;r<c;r++){var u=s.cell(a[r],i.id).element;u&&((u=(u.contents||u).input)&&!u.disabled&&(u.checked=e,u.setAttribute("aria-checked",e)))}if("checkbox"==l.type){for(r in o=!1,n=s.selection)if(n[r]!=s.allSelected){o=!0;break}l.indeterminate=o,l.checked=s.allSelected,o?d="mixed":s.allSelected&&(d="true"),l.setAttribute("aria-checked",d)}}}function h(e){if("click"==e.type||32==e.keyCode||!o("opera")&&13==e.keyCode||0===e.keyCode){var t=s.row(e);if(s._selectionTriggerEvent=e,t){if(s.allowSelect(t)){var i=s._lastSelected&&s.row(s._lastSelected);"radio"==a?i&&i.id==t.id||(s.clearSelection(),s.select(t,null,!0),s._lastSelected=t.element):t&&(e.shiftKey?u(!0)({rows:[t]}):i=null,i=e.shiftKey?i:null,s.select(i||t,t,i?void 0:null),s._lastSelected=t.element)}}else r(this,(s.allSelected?"!":".")+"dgrid-select-all"),s[s.allSelected?"clearSelection":"selectAll"]();s._selectionTriggerEvent=null}}function p(){s._hasSelectorInputListener=!0,c.push(s.on(".dgrid-selector:click,.dgrid-selector:keydown",h));var e=s._handleSelect;if(s._handleSelect=function(t){this.cell(t).column!=i&&e.apply(this,arguments)},"function"==typeof i.disabled){var t=s.allowSelect,n=i.disabled;s.allowSelect=function(e){var o=t.call(this,e);return n===d?o:o&&!n.call(i,e.data)},i.disabled=d}else i.disabled=d;c.push(s.on("dgrid-select",u(!0))),c.push(s.on("dgrid-deselect",u(!1)))}i||(i={}),i.type&&(i.selectorType=i.type,e.deprecated("columndef.type","use columndef.selectorType instead","dgrid 0.4")),i.selectorType=a=a||i.selectorType||"checkbox",i.sortable=!1;var f="function"==typeof a?a:function(e,t,n){var o,l=t.parentNode;s._hasSelectorInputListener||p(),o=i.disabled,r(l&&l.contents?l:t,".dgrid-selector");var c=t.input||(t.input=r(t,"input[type="+a+"]",{tabIndex:isNaN(i.tabIndex)?-1:i.tabIndex,disabled:o&&("function"==typeof o?o.call(i,n):o),checked:e}));return c.setAttribute("aria-checked",!!e),c};return n.after(i,"init",(function(){s=i.grid})),n.after(i,"destroy",(function(){t.forEach(c,(function(e){e.remove()})),s._hasSelectorInputListener=!1})),i.renderCell=function(e,t,i,n,o){var r=e&&s.row(e);t=r&&s.selection[r.id],f(t,i,e)},i.renderHeaderCell=function(e){var t="label"in i?i.label:i.field||"";"radio"!=a&&s.allowSelectAll?f(!1,e,{}):(e.appendChild(document.createTextNode(t)),s._hasSelectorInputListener||p()),l=e.lastChild},i}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(238),i(36),i(7597),i(487)],o=i.dj.d(n,(function(e,t,i,n,o){return e("dijit.form.ComboButton",n,{templateString:o,_setIdAttr:"",_setTabIndexAttr:["focusNode","titleNode"],_setTitleAttr:"titleNode",optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{buttonNode:"dijitButtonNode",titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyDown:function(e){e.keyCode==t[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]&&(i.focus(this._popupStateNode),e.stopPropagation(),e.preventDefault())},_onArrowKeyDown:function(e){e.keyCode==t[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]&&(i.focus(this.titleNode),e.stopPropagation(),e.preventDefault())},focus:function(e){this.disabled||i.focus("start"==e?this.titleNode:this._popupStateNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(843),i(203),i(210),i(2502),i(483),i(652),i(7602)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=t("workspacebrowser.WorkspaceBrowserMain",[r.Impl],{layoutService:[],uiContainer:[],clientPeerManager:{},orig_updateDataStyles:null,orig_updateColumnStyles:null,currentVariables:[],variableListeners:[],wsb_MOTW_class:"workspacebrowser_motw",wsbMOTWChannel:"/WorkspaceBrowser",constructor:function(e){o.logDebug("WSB: Constructor"),this.layoutService=[],this.uiContainer=[],this.clientPeerManager={},this.orig_updateDataStyles=null,this.orig_updateColumnStyles=null,this.currentVariables=[],this.variableListeners=[],this.initArgs(e),this.init()},initArgs:function(t){t&&(o.logDebug("WSB: initialize arguments"),e.setContextManager(this.wsbMOTWChannel,t.contextManagerInstance),this.layoutService=t.layoutService,this.uiContainer=t.uiContainer,this.clientPeerManager=n.createWorkspaceBrowser({messageService:t.messageService,layoutService:t.layoutService,executionService:t.executionService,fileDataService:t.fileDataService,workspace:"caller",channel:this.wsbMOTWChannel,editable:!0,cssSpecifier:"mw_type_WorkspaceBrowser",fixedColumnWidths:!1,ignoreUpdates:!1,requestFocusOnStart:!1,dataTagRoot:"motw.datatools.workspacebrowser",keyboardAccessibility:!0,selectionTimeoutLimit:0}))},init:function(){var e=this;this.clientPeerManager.addEventListener("variableAdded",(function(t){var n=t.data.peerDoc;i.add(n.domNode,e.wsb_MOTW_class),o.logDebug("WSB: Document Added"),e.addWidget(n),n.addEventListener("viewRemoved",(function(e){o.logDebug("WSB: View Removed")}))})),this.clientPeerManager.addEventListener("variableRemoved",(function(t){var i=t.data.peerDoc;o.logDebug("WSB: Document Removed"),e.removeWidget(i)})),this.clientPeerManager.addEventListener("variablesAdded",(function(t){o.logDebug("WSB: VariablesAdded: "+t.data.variables),e.dispatchEvent("variablesAdded",t.target,{workspaceBrowser:e,variables:t.data.variables})})),this.clientPeerManager.addEventListener("variablesRemoved",(function(t){o.logDebug("WSB: VariablesRemoved: "+t.data.variables),e.dispatchEvent("variablesRemoved",t.target,{workspaceBrowser:e,variables:t.data.variables})})),this.clientPeerManager.addEventListener("variablesChanged",(function(t){o.logDebug("WSB: VariablesChanged: "+t.data.variables),e.dispatchEvent("variablesChanged",t.target,{workspaceBrowser:e,variables:t.data.variables})}))},start:function(){n.start(),this.clientPeerManager.start()},stop:function(){this.clientPeerManager.stop()},addWidget:function(e){this.layoutService.addWidget("workspace","workspace",e)},showWidget:function(e){this.layoutService.showWidget("workspace")},removeWidget:function(e){this.layoutService.removeWidget("workspace")},getVariables:function(){return this.currentVariables},onStackChanged:function(e,t){var i="";e.length>0&&t<e.length&&e[t].getName&&(i=e[t].getName());for(var n=this.uiContainer.getPanels(),o=0;o<n.length;o+=1)if("workspace"===n[o].properties.panelId){0===i.length||"Base"===i?n[o].properties.set("title",a.title):n[o].properties.set("title",a.title+" - "+i),n[o].properties.set("shortTitle",a.title);break}}});return s.getInstance=function(e){return s._instance?(e&&s._instance.initArgs(e),s._instance):(s._instance=new s(e),s._instance)},{getInstance:s.getInstance}}),e,t),e.exports=o},function(e,t,i){i.e(0).then((function(){var e=[i(9139)];(function(){}).apply(null,e)})).catch(i.oe)},function(e,t,i){var n,o;n=[i(212),i(7607)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t({actionReducer:i.actionReducer});return i.manifestHandler.registerTasks("setAccessTier",o.setAccessTier.bind(o)),n.resolve({exports:{accessTierService:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(7608)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t({uiBuilder:i.uiBuilder});return i.manifestHandler.registerTasks("curateLiveEditorExperience",o.curateLiveEditorExperience.bind(o)),n.resolve({exports:{actionReducer:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(7613),i(280)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(o){var r=new e,a=new i({executionService:o.executionService,featureService:o.featureService,actionService:o.actionService,iframeLayoutManager:o.iframeLayoutManager,uiBuilder:o.uiBuilder,settingsService:o.settingsService});return o.workerReady.then(t.hitch(this,"_start",{addOnsService:a})),n.addOnsService=a,r.resolve({exports:{addOnsService:a}}),r.promise},_start:function(e){e.addOnsService.start()},reset:function(e){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(7630),i(232),i(304),i(7640),i(247)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{initialize:function(a){var s=new e,l=new e;a.workerReady.then((function(){l.resolve({requestResponseService:i})}));var c=new t({fileService:a.fileDataService,fileIconProvider:a.fileIconProvider,pathService:a.pathService,actionService:a.actionService,pathDataServiceFaultHandler:a.pathMessageFaultHandler,addressBarService:a.addressBarService,layoutService:a.layoutService,searchService:a.searchService,settingsService:a.settingsService,communicationAvailable:l.promise});return c.on("initialized",(function(){a.sessionService.convertObjectPropertyToStringSetting("addressBarLocationData",["matlab","desktop","addressbar"],"LocationHistory"),a.sessionService.registerSettingToSync(["matlab","desktop","addressbar"],"LocationHistory",{get:function(){return JSON.stringify(c.navigationBarWidget.visitedLocations)},set:function(e){var t;e&&(t=JSON.parse(e),c.navigationBarWidget.setLocationHistory(t))}})})),void 0===r.parseQueryString().course&&a.uiContainer.addToolBar(c,new n({title:"Current Folder Bar",ariaLabel:o.ariaLabel})),s.resolve({exports:{addressBar:c}}),s.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(7642)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t({uiBuilder:i.uiBuilder,authorizationDetailsService:i.authorizationDetailsService,executionService:i.executionService,actionService:i.actionService,workerReady:i.workerReady,pathService:i.pathService,layoutService:i.layoutService,fileDataService:i.fileDataService,addOnsService:i.addOnsService});return o.subscribeToRegistrationFramework(),i.sessionService.convertObjectPropertyToStringSetting("AppsGalleryState",["matlab","desktop","toolstrip"],"AppsGalleryState"),i.sessionService.registerSettingToSync(["matlab","desktop","toolstrip"],"AppsGalleryState",{get:function(){return JSON.stringify(o.getGalleryState())},set:function(e){if(!this._setOnce){this._setOnce=!0;var t=JSON.parse(e);t&&o.setGalleryState(t)}}.bind(this)}),n.resolve({exports:{appsGalleryManager:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(212),i(7655)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new t,r=new i({messageService:n.messageService});return n.workerReady.then(e.hitch(this,"start",{audioManager:r})),o.resolve({exports:{audioManager:r}}),o.promise},start:function(e){e.audioManager.start()},reset:function(e){e.audioManager.stop()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(7659)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t;return n.resolve({exports:{authorizationDetailsService:o}}),n.promise},reset:function(e){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(214)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=i.moduleLoader,r=new e;return i.busyIndicator.showUntilFinished(r.promise),i.uiLifecycle.registerTask("WORKER_CONNECTED",(function(){var e=o.loadExports(o.convertServicesToExportNames(["applicationLifecycle"]));return e.then((function(){r.resolve()})),e})),t.after(i.wraService,"_sendAcquireMatlab",(function(){window.setTimeout((function(){o.loadExports(o.convertServicesToExportNames(["commandWindow"]))}),10)})),n.resolve({exports:{bootstrapService:{}}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(7660)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t({editorService:i.editorService,uiConfigService:i.uiConfigService,workerActionDisabler:i.workerActionDisabler});return i.manifestHandler.registerTasks("handleBufferedContent",o.handleBufferedContent.bind(o)),i.manifestHandler.registerTasks("extractContentsFromLiveEditor",o.extractContentsFromLiveEditor.bind(o)),n.resolve({exports:{bufferedEditorService:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(203),i(222),i(244),i(7661),i(232),i(7666),i(2518),i(2519),i(7728),i(7735),i(7736),i(7737),i(1220),i(1216),i(304),i(2488)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return{initialize:function(i){var c={},_=new l,v=s.getRegistry({sharingManager:i.mldoSharingManager,fileIconProvider:i.fileIconProvider});async function b(n){var s=new e;i.workerReady.then((function(){s.resolve({requestResponseService:r,pubSubService:i.messageService})})),v.addColumn(_),c=t([a,d,u,h])({fileDataService:i.fileDataService,listFolderService:i.listFolderService,fileIconProvider:i.fileIconProvider,actionService:i.actionService,sharingManager:i.mldoSharingManager,pathService:i.pathService,executionService:i.executionService,findFilesService:i.findFilesService,layoutService:i.layoutService,uiContainer:i.uiContainer,contextMenuBuilder:new m,settingsService:i.settingsService,columnRegistry:v,layoutConfiguration:n,communicationAvailable:s.promise}),i.uiContainer.loadActions(c.getActionsMenuActionObjects());let l=new g({panelId:"cfb",title:o.title,isBusy:!0,closable:!1,actions:c.getActionsMenuActionIds(),qabControlToActionMap:{}});i.uiContainer.addPanel(c,l),c.own(c.on("removeSpinner",()=>{l.set("isBusy",!1)}));let p=i.uiContainer.uiBuilder.tagToId("motwToolstrip.matlabTab.environment.layout.list.show.list.currentFolder");i.uiContainer.uiBuilder.set(p,"selected",!0),i.uiContainer.getChildProperties("cfb").watch("isOpen",(function(e,t,n){!0===n?i.uiContainer.uiBuilder.set(p,"selected",!0):!1===n&&i.uiContainer.uiBuilder.set(p,"selected",!1)})),i.workerReady.then((function(){c.startup()}))}i.messageService.publish("/matlab/currentfolder/reports/actions",{action:"startServerSide"});var y=["GroupColumn","GroupMode","SortColumn","SortDescending","ColumnSizes","VisibleColumns","ColumnOrder"],C=y.map((function(e){return i.settingsService.getSetting(["matlab","desktop","currentfolder","layout"],e)})),T=n(C);const E=new e;p.createExpiringPromise(T,1e4).then((function(e){for(var t=new f,i=0;i<y.length;i++)t[y[i]]=e[i];b(t).then(()=>E.resolve())})).catch((function(){b().then(()=>E.resolve())}));var S=new e;return E.then(()=>{S.resolve({exports:{currentFolderBrowser:c}})}),S.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(225),i(290),i(7744),i(232),i(276),i(299),i(1012),i(304),i(555),i(280),i(468)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return{initialize:function(i){var n=new e;i.contextManager.register("QuickAccessAction",{appId:"commandWindow",contextId:"global",quickAccessControlTag:l.REDO,actionId:s.REDO_CMD});var r=new o({actionService:i.actionService,executionService:i.executionService,uiLifecycle:i.uiLifecycle,wraService:i.wraService});return h.start("CommandWindow"),d.setService([{commandWindow:r}]),u.commandWindow=r,this._addPanel({commandWindow:r,featureService:i.featureService,uiContainer:i.uiContainer}),i.workerReady.then(t.hitch(this,"_start",{commandWindow:r})),n.resolve({exports:{commandWindow:r}}),n.promise},_start:function(e){e.commandWindow.focus();var t=setInterval((function(){e.commandWindow.focus(),"TEXTAREA"==document.activeElement.nodeName&&(clearInterval(t),h.end("CommandWindow"))}),1e3)},_addPanel:function(e){var t={};t[l.UNDO]=s.UNDO_CMD,t[l.REDO]=s.REDO_CMD;var i=new a({id:"commandWindowWrapper",content:e.commandWindow});i.focus=function(){e.commandWindow.focus()},i.onFocus=function(){return e.commandWindow.onFocus()},i.onBlur=function(){return e.commandWindow.onBlur()},e.commandWindow.wrapper=i,e.uiContainer.addPanel(i,new c({panelId:"commandWindow",title:n.commandWindowTitle,closable:!1,qabControlToActionMap:t}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(292),i(299),i(1620),i(7923)],o=i.dj.d(n,(function(e,t,i,n,o){return{initialize:function(t){var r=new e,a=(new o({uiContainer:t.uiContainer,workerReady:t.workerReady}),n.getInstance());return a.setup({actionService:t.actionService,executionService:t.executionService,sessionService:t.sessionService,actionIdConstants:i}),a.start(),r.resolve({exports:{historyDataService:a._commandHistoryDataService}}),r.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212)],o=i.dj.d(n,(function(e){return{initialize:function(t){var i=new e;return i.resolve({exports:{codeanalyzer:{}}}),i.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(7924)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=i.workerReady,r=i.manifestHandler,a=new t({workerReady:o});return r.registerTasks("downloadDependencies",a.downloadDependencies.bind(a)),r.registerTasks("initializeWorker",a.initializeWorker.bind(a)),n.resolve({exports:{configureWorker:a}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(302),i(206),i(555),i(7925),i(1225),i(7928),i(2558),i(7943),i(7944),i(7947),i(368),i(233),i(1219),i(7948),i(418),i(7951),i(2499),i(280),i(398)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return{initialize:function(t){var i=new e;return t.uiLifecycle.registerTask("WORKER_CONNECTED",function(){this._createCoreServices(t,i)}.bind(this)),i.promise},_createCoreServices:function(e,y){var C,T,E,S,w,I,A,x,N,L,D,M,P,O;A=g.getListFolderService(),x=g.getVFSAttributesService(),fileOperationsService=g.getFileOperationsService(),v.listFolderService=A,v.vfsAttributesService=x,v.fileOperationsService=fileOperationsService,(C=p.getPathDataService()).setMotwUDCLogging(b),v.pathService=C,E=_.getSharingDataService(),v.sharingDataService=E,S=m.getSearchService(),v.searchService=S,w=new u({nameSpace:"/actions/main"}),e.postMessageRequestHandler.setActionService(w),v.actionService=w,I=o.getAddressBarService(),(L=r.getFileDataService()).setMotwUDCLogging(b),v.fileDataService=L,N=g.getFileIconPluginService(),fileIconProvider=g.getFileIconProvider(),D=new f({pathDataService:C}),new a({fileDataService:L}),T=new s({actionService:w,pathDataService:C,fileDataService:L}),v.executionService=T,M=new c({executionService:T,pollableFeatures:["geckobutton","sso","singleloginmessage","longrunningtasks","serverscreenshot"]}),P=new d({executionService:T}),O=new l({actionService:w}),i(C,"CWDChanged",(function(e){e&&L.currentDirectory(h.pathFromFileInfo(e))})),t.connect(L,"onCurrentFolderChange",(function(e){e&&C.setMATLABCWD(h.pathFromFileInfo(e))})),n.setup(),n.setService({userDataService:e.userDataService}),e.workerReady.then((function(){C.start(),E.start(),S.start(),I.start(),L.start(),A.start(),x.start(),fileOperationsService.start(),N.start()})),y.resolve({exports:{pathService:C,searchService:S,actionService:w,addressBarService:I,fileDataService:L,listFolderService:A,vfsAttributesService:x,fileOperationsService:fileOperationsService,fileIconPluginService:N,fileIconProvider:fileIconProvider,executionService:T,featureService:M,browserService:O,shadowService:P,helpUrlHandler:function(e){T.executionEval(e)},pathMessageFaultHandler:D,sharingDataService:E}})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(7954)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=t.getInstance();return n.resolve({exports:{dialogHandlerService:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(398)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e;return this.uiLifecycle=i.uiLifecycle,this.featureService=i.featureService,this.uiLifecycle.registerTask("WORKER_READY",function(){t.addData("loginFlow.matlabReady"),this._loadFinalLayer({moduleLoader:i.moduleLoader})}.bind(this)),n.resolve({exports:{applicationLifecycle:{}}}),n.promise},_loadFinalLayer:function(e){"function"==typeof window.requestIdleCallback?window.requestIdleCallback(function(){this.__loadFinalLayer(e)}.bind(this)):this.__loadFinalLayer(e)},__loadFinalLayer:function(e){e.moduleLoader.loadExports(e.moduleLoader.convertServicesToExportNames(["logoutButton","editorDataService","editorVersioningService","debugFileOpeningService","versioningService","FavoriteCommands","appsGalleryManager","plotsGalleryManager","liveAppsGalleryManager","matlabbreakpoint","figureAnnotationsGalleryManager","figureAnnotationsGalleryManagerMOL","figure","sidePanel","variableEditor","iframeLayoutManager","dialogHandlerService","inspector","feedbackService","feedbackManager","helpDataJSDService","serverOnWorker","logicAnalyzer","webDdgFactory","newTabHandler","findFilesService","reportsService","matlabExitService","moFigureManager","audioManager","docService","mggGuiManager","mggGuiDataService","legacyFigureControlsManager","mggPanesFeature","mggLazyLoadFeature","mggPopupFeature","mggToggleDockFeature","gdsNotifications","slonlineContainer","importtool","webcamService","pct","navigationShortcutsDialog","dfWidgetManager","efWidgetManager","helpUrlHandler","manifestHandler","configureWorker","openWithLogger","errorLoggerService","sourceControl","matlabProject","matlabProjectLabels","matlabProjectReferences","matlabProjectSharing","coder","taskbar","testbrowser","academySimulinkCourses"])).then((function(e){}),(function(e){console.log(e)}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(7955)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t;return n.resolve({exports:{discoveryService:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{setup:function(){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(7956),i(467),i(7961),i(1628),i(1629),i(1630),i(1633),i(1634)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return{_isSubscribed:!1,initialize:function(r){var a=new e,d=new i;this._legacyFigureProperties=new n({defaultRegion:"right",title:"Figures",collectiveLabel:"Figures",willReopen:!1,plusActions:["motw.newFigure"],canUndock:!0,documentFactory:d}),r.uiContainer.registerDocumentType("legacyfigure",this._legacyFigureProperties),this._defaultFigureProperties=new n({defaultRegion:"right",title:"Figures",collectiveLabel:"Figures",willReopen:!1,plusActions:["motw.newFigure"],contexts:[{contextId:"motwToolstrip.defaultContext",tabGroupTags:["motwToolstrip.defaultFigureToolstripTabGroup"]},{contextId:"motwToolstrip.plotEditContext",tabGroupTags:["motwToolstrip.plotEditTabGroup"]},{contextId:"motwToolstrip.cameraContext",tabGroupTags:["motwToolstrip.defaultFigureToolstripTabGroup","motwToolstrip.cameraTabGroup"]}],tabGroupFactories:{"motwToolstrip.defaultFigureToolstripTabGroup":new s(r),"motwToolstrip.plotEditTabGroup":new l(r),"motwToolstrip.cameraTabGroup":new c(r)},canUndock:!0,documentFactory:d}),r.uiContainer.registerDocumentType("defaultfigure",this._defaultFigureProperties);var u=new o({documentFactory:d,uiContainer:r.uiContainer,layoutService:r.layoutService});return this._isSubscribed=u.subscribe(),r.workerReady.then(t.hitch(this,"_start",{dfWidgetManager:u})),a.resolve({exports:{dfWidgetManager:u}}),a.promise},_start:function(e){e.dfWidgetManager&&e.dfWidgetManager.refreshFigures()},reset:function(e){this._isSubscribed&&(e.dfWidgetManager.reset(),e.dfWidgetManager.destroy(),this._isSubscribed=!1)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(238),i(7970),i(318)],o=i.dj.d(n,(function(e,t,i){return{_helpHandler:function(e,i){i=e.addMOQueryParameter(i),this._deleteExistingIframe(e);var n=e.iframeContainer.showIframe({host:i,name:"MATLAB Online Help",maximizeUrl:e.getMaximizeUrl(i),closeOnEscapeKey:!0});window.helpIframeWidgetPeerNodeId=n.peerNodeId,t.focus(n.frame)},_helpHtmlHandler:function(e,i){if(i){this._deleteExistingIframe(e);var n=e.iframeContainer.showIframe({host:e.getRemoteUrl(i),name:"MATLAB Online Help",closeOnEscapeKey:!0});window.helpIframeWidgetPeerNodeId=n.peerNodeId,t.focus(n.frame)}},_deleteExistingIframe:function(e){window.helpIframeWidgetPeerNodeId&&(e.iframeContainer.removeWindow(window.helpIframeWidgetPeerNodeId),delete window.helpIframeWidgetPeerNodeId)},_isMathworksDomain:function(e){return/https:\/\/.*\.mathworks\.com$/g.test(e)},_isSameWithMatlabDomain:function(e){return document.location.origin===e},_isSubscribed:!1,initialize:function(t){var i=new e,n=this;return this.helpHandler=function(e){n._helpHandler(t.helpDataService,e.data)},this.helpHtmlHandler=function(e){n._helpHtmlHandler(t.helpDataService,e.data)},t.messageService.subscribe("/web/doc",this.helpHandler),t.messageService.subscribe("/web/doc/htmltext",this.helpHtmlHandler),this._isSubscribed=!0,i.resolve({exports:{docService:{}}}),i.promise},reset:function(e){this._isSubscribed&&(e.messageService.unsubscribe("/web/doc",this.helpHandler),e.messageService.unsubscribe("/web/doc/htmltext",this.helpHtmlHandler))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(2562)],o=i.dj.d(n,(function(e,t){return{modulesLoded:!1,initialize:function(i){var n=new e,o={layoutMap:{mode:"LIVE_EDITOR",layout:t,session:"disabled"}};return n.resolve({exports:{uiConfigService:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(280),i(7976),i(8221),i(8266),i(8267),i(8268),i(8269),i(2430),i(275),i(1958),i(341),i(232),i(1270),i(233),i(468),i(555),i(8271),i(299)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){let y=!1;return{initialize:function(p){m.mark("editorStart");var C=new e,T={},E=c.getInstance(),S=new a("UntitledBuffer");p.featureService.addFeature(S),p.featureService.enableFeature("motw.internal.UntitledBuffer");var w=new r("LiveClasses");p.featureService.addFeature(w),p.featureService.disableFeature("motw.internal.LiveClasses");var I=new s("SaveOptions");p.featureService.addFeature(I);var A=new n({fileDataService:p.fileDataService,executionService:p.executionService,actionService:p.actionService,featureService:p.featureService,uiContainer:p.uiContainer,figureAnnotationsGalleryManager:p.figureAnnotationsGalleryManager,statusBar:p.statusbar});i.editorService=A,m.mark("editorService"),m.measure("EditorService","editorStart","editorService");const x=new l(A);u.installImplementation(x),_.setService({editorService:A});var N=d.getInstance();p.actionService.enableAction(b.NEW_LIVE_SCRIPT),p.actionService.enableAction(b.NEW_FILE),p.sessionService.convertObjectPropertyToStringSetting("editorFiles",["matlab","editor"],"PreviouslyOpenedFiles"),p.sessionService.registerSettingToSync(["matlab","editor"],"PreviouslyOpenedFiles",{get:function(){var e=p.fileDataService,t=e.getAllOpenedFileInfoPaths().map((function(t){var i=g.createFilePath(t.location,t.name),n=e.openedFilesDataStore.get(i);if(n&&!n.isUntitled)return N.isPaused||this._saveFileIfDirtyHelper(e,n,i,A),g.pathFromFileInfo(t)}),this).filter(Boolean);return JSON.stringify(t)},_saveFileIfDirtyHelper:function(e,t,i,n){e.isFileModified(t)&&n.onEditorSave(i).then((function(i){i&&(e.setFileClean(t),t.savePending=!1)}),(function(){}))},set:function(e){if(!p.manifestService.wasManifestReceived()&&!y){y=!0,e||(e="[]");var t=JSON.parse(e);t&&A._openFilesForSession(t)}}}),f.SaveSessionState&&(f.SaveSessionState=f.SaveSessionState.filter((function(e){return"UpdateFile"!==e}))),!0===h.getFeatureStatus(h.FeatureNames.GDS)&&(T=new o({editorService:A,versioningService:p.versioningService,actionService:p.actionService,fileDataService:p.fileDataService}),i.editorVersioningService=T),p.workerReady.then(t.hitch(this,"_start",{editorDataService:E})),C.resolve({exports:{editorDataService:E,editorService:A,editorVersioningService:T}});new v({editorService:A});return C.promise},_start:function(e){e.editorDataService.start()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(467),i(8275),i(1631),i(1628),i(1629),i(2608),i(1013),i(8284),i(1630),i(1633),i(1634)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return{_isSubscribed:!1,initialize:function(i){var o=new e,r=new c("WebGraphics",{executionService:i.executionService});i.featureService.addFeature(r);var a=this.getFigureToolstripConfig(!1,i);i.uiContainer.registerDocumentType("embeddedfigure",a);var s=new n({layoutService:i.layoutService});return this._isSubscribed=s.subscribe(),i.workerReady.then(t.hitch(this,"_start",{efWidgetManager:s})),o.resolve({exports:{efWidgetManager:s,webGraphicsFeature:r}}),o.promise},_start:function(e){e.efWidgetManager&&e.efWidgetManager.refreshFigures()},reset:function(e){this._isSubscribed&&(e.efWidgetManager.reset(),e.efWidgetManager.destroy(),this._isSubscribed=!1)},getFigureToolstripConfig:function(e,t){return new i(e?{defaultRegion:"right",title:"Figures",collectiveLabel:"Figures",suppressInitialFocus:!0,plusActions:["motw.newFigure"],willReopen:!1,tabGroupTags:["motwToolstrip.figureToolstripTabGroup2"],contexts:[{contextId:"motwToolstrip.cameraToolbarContext",tabGroupTags:["motwToolstrip.cameraToolbarToolstripTabGroup2"]}],tabGroupFactories:{"motwToolstrip.cameraToolbarToolstripTabGroup2":{createWidget:function(e,i,n){t.uiContainer.addTabGroupFromConfig(a,"motwToolstrip.cameraToolbarToolstripTabGroup2")}}}}:{defaultRegion:"right",title:"Figures",collectiveLabel:"Figures",suppressInitialFocus:!0,plusActions:["motw.newFigure"],willReopen:!1,contexts:[{contextId:"motwToolstrip.defaultContext",tabGroupTags:["motwToolstrip.defaultFigureToolstripTabGroup"]},{contextId:"motwToolstrip.plotEditContext",tabGroupTags:["motwToolstrip.plotEditTabGroup"]},{contextId:"motwToolstrip.cameraContext",tabGroupTags:["motwToolstrip.defaultFigureToolstripTabGroup","motwToolstrip.cameraTabGroup"]}],tabGroupFactories:{"motwToolstrip.defaultFigureToolstripTabGroup":new d(t),"motwToolstrip.plotEditTabGroup":new u(t),"motwToolstrip.cameraTabGroup":new h(t)}})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8285)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t({uiLifecycle:i.uiLifecycle});return n.resolve({exports:{errorLoggerService:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8286)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t(i);return o.start(),n.resolve({exports:{faultHandlerModule:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8288)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=t.getInstance({uiBuilder:i.uiBuilder,actionService:i.actionService,settingsService:i.settingsService});return n.resolve({exports:{FavoriteCommands:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8305),i(8309)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r=new i,a=new t({feedbackService:r,layoutService:n.layoutService});return o.resolve({exports:{feedbackService:r,feedbackManager:a}}),o.promise},reset:function(e){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212)],o=i.dj.d(n,(function(e){return{initialize:function(t){var i=new e;return i.resolve({exports:{figure:{}}}),i.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8310)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t({uiBuilder:i.uiBuilder,authorizationDetailsService:i.authorizationDetailsService,executionService:i.executionService});return n.resolve({exports:{figureAnnotationsGalleryManager:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(2608),i(1013),i(1631),i(1628)],o=i.dj.d(n,(function(e,t,i,n,o){return{initialize:function(r){var a=new e,s=new t({uiBuilder:r.uiBuilder,authorizationDetailsService:r.authorizationDetailsService,executionService:r.executionService});return i.loadActions({executionService:r.executionService,actionService:r.actionService}),r.uiBuilder.createPopupsFromConfig(n),s.buildGalleryPopup(),r.uiContainer.addTabGroupFromConfig(o,"motwToolstrip.figureToolstripTabGroup2"),r.uiContainer._contextManager.register("TabGroups",{appId:"motw",contextId:"motwToolstrip.cameraToolbarContext",tabGroupTags:["motwToolstrip.cameraToolbarToolstripTabGroup2"]}),r.uiContainer.addTabGroup("motwToolstrip.cameraToolbarToolstripTabGroup2",!0),a.resolve({exports:{figureAnnotationsGalleryManagerMOL:s}}),a.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(8312)],o=i.dj.d(n,(function(e,t,i){return{_isSubscribed:!1,initialize:function(n){var o=new e,r=new i({iframeLayoutManager:n.iframeLayoutManager});return this._isSubscribed=r.subscribe(),n.workerReady.then(t.hitch(this,"_start",{moFigureManager:r})),o.resolve({exports:{moFigureManager:r}}),o.promise},_start:function(e){e.moFigureManager&&e.moFigureManager.moRefreshed()},reset:function(e){this._isSubscribed&&(e.moFigureManager.reset(),e.moFigureManager.destroy(),this._isSubscribed=!1)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(8315),i(280),i(555)],o=i.dj.d(n,(function(e,t,i,n,o){return{initialize:function(r){var a=new e,s=new i({messageService:r.messageService});return r.workerReady.then(t.hitch(this,"_start",{findFilesService:s})),o.setService({findFilesService:s}),n.findFilesService=s,a.resolve({exports:{findFilesService:s}}),a.promise},_start:function(e){e.findFilesService.start()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8323)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t({fileDataService:i.fileDataService,editorService:i.editorService});return i.workerReady.then((function(){o.start()})),n.resolve({exports:{gdsNotifications:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(8324),i(280),i(555),i(418)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{initialize:function(t){var a=new e,s=new i({pathService:t.pathService,actionService:t.actionService,searchService:t.searchService,fileOperationsService:r.getFileOperationsService(),uiBuilder:t.uiBuilder});return s.start(),o.setService({goToFileApp:s}),n.goToFileApp=s,a.resolve({exports:{goToFileApp:s}}),a.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8336),i(756),i(247),i(280)],o=i.dj.d(n,(function(e,t,i,n,o){return{initialize:function(r){var a=new e,s=n.parseQueryString(),l=new t({injectedRouterEndpoint:s.mre,skipStart:!0,uiConfigService:r.uiConfigService,uiLifecycle:r.uiLifecycle,heartbeatService:r.heartbeatService,busyIndicator:r.busyIndicator});return i.setUp(l),a.resolve({exports:{wraService:l}}),o.wraService=l,a.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8338)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e;return n.resolve({exports:{heartbeatService:t}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(2616)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e;if(n._isJSDesktopTechPreview){var r=i.getHelpDataNullService(n.actionService);n.userReady.then(t.hitch(this,"_start",{helpDataJSDService:r}))}return o.resolve({exports:{helpDataJSDService:n._isJSDesktopTechPreview?r:{}}}),o.promise},_start:function(e){e.helpDataJSDService&&""===e.helpDataJSDService.endpoint&&e.helpDataJSDService.updateRoute()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(2616)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r=n.discoveryService.getServiceEndPointsMap(),a=i.createHelpDataService("MOTW",r.HELP_DATA_SERVICE,n.actionService,n.iframeLayoutManager);return r.HELP_DATA_SERVICE.endpoint||n.discoveryService.on("serviceSet",(function(e){e.HELP_DATA_SERVICE.endpoint&&a.updateHelpEndpoint(e.HELP_DATA_SERVICE)})),n.workerReady.then(t.hitch(this,"_start",{helpDataService:a})),o.resolve({exports:{helpDataService:a}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(228),i(204),i(211),i(213),i(223),i(214),i(290),i(226),i(790),i(331),i(1331),i(8342),i(299)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return{initialize:function(f){var g,m,_,v,b,y,C=new e;g=f.uiBuilder.widgetByTag("motwToolstrip"),o.set(g.searchContainer,"display","inline-block"),m=n.create("div",{class:"searchDiv","aria-label":"Search Documentation",role:"Search"},g.searchContainer),(v=new h({helpDataService:f.helpDataService})).startup(),v._setPlaceholderTextAttr(s.search),n.place(v.domNode,m),b=n.create("div",{class:"searchPopupDiv"},g.searchPopupContainer),_=new d({tag:"searchPopup"}),(y=new u({placeholder:s.search})).on("keydown",i.hitch(this,(function(e){e.keyCode===r.ENTER&&(f.actionService.executeAction(p.HELP,{searchTerm:y.get("value")}),y.set("value",""))}))),_.addChild(y);var T=new c({icon:"search_light_16",class:"searchDropDownButton",type:l.DROP_DOWN_BUTTON,menu:_});return T.startup(),a.after(T,"closeDropDown",i.hitch(this,(function(){T.emit("restorefocus")}))),n.place(T.domNode,b),t.set(v.domNode,"data-focus","accept"),T.focusNode.setAttribute("data-mnemonic","D"),v.searchBox.focusNode.setAttribute("data-mnemonic","D"),C.resolve({exports:{searchButton:T}}),C.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(8344),i(280)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(o){var r=new e,a=new i({});return o.workerReady.then(t.hitch(this,"_start",{layoutService:o.layoutService,iframeLayoutManager:a})),n.iframeLayoutManager=a,r.resolve({exports:{iframeLayoutManager:a}}),r.promise},_start:function(e){e.iframeLayoutManager.start({layoutService:e.layoutService})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8345),i(8366),i(467),i(8367),i(8373),i(1543),i(538)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=["TextImportTabGroup"],c=["SpreadsheetImportTabGroup"];return{initialize:function(i){var n=new e,o=t.getInstance({messageService:i.messageService,layoutService:i.layoutService,executionService:i.executionService,uiContainer:i.uiContainer});return this.registerImportDocumentType(i.uiContainer),n.resolve({exports:{importtool:o}}),this.cmdLineCodePublishSvc=new a({executionService:i.executionService,context:"ImportData",enabled:!0}),n.promise},registerImportDocumentType:function(e){var t=this.getSpreadSheetTypeProperties(),i=this.getTextTypeProperties();this.register(e,"textImportTool",i),this.register(e,"spreadsheetImportTool",t)},register:function(e,t,i){e.registerDocumentType(t,i)},getSpreadSheetTypeProperties:function(){var e=this.getSpreadSheetTabGroupFactories(o);return new n({defaultRegion:"right",willReopen:!0,tabGroupTags:c,title:s.spreadSheetTitle,collectiveLabel:s.spreadSheetCollectiveLabel,tabGroupFactories:e})},getTextTypeProperties:function(){var e=this.getTextTabGroupFactories(r);return new n({defaultRegion:"right",willReopen:!0,tabGroupTags:l,title:s.textTitle,collectiveLabel:s.textCollectiveLabel,tabGroupFactories:e})},getTextTabGroupFactories:function(e){var t={};return l.forEach((function(i){t[i]=new e})),t},getSpreadSheetTabGroupFactories:function(e){var t={};return c.forEach((function(i){t[i]=new e})),t},reset:function(e){e.importtool.stop()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(210),i(213),i(302),i(256),i(280),i(555),i(1640),i(8380),i(8395),i(8403),i(1241),i(2549),i(8404),i(8405),i(8406),i(2562),i(560),i(569),i(657),i(8411),i(299),i(247),i(8412),i(290)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w){return{initialize:function(n){var w=new e,I=l,A=E.parseQueryString(),x=new c({layoutStore:I.layoutStore,actionService:n.actionService},n.obsoleteView),N=b.isDebugPage()?"undocked-debug.html?websocket=on":"undocked.html?websocket=on";n.messageService.publish("/motw/uicontainer",{type:"terminated"});var L=new v("motw",{globalPanelSetTitle:"MATLAB",product:"MATLAB",scope:"Online",reserveDocumentSpace:!1,groupDocumentsByType:!0,enableCenterCollapse:!0,persistLayout:!0,persistDocuments:!1,tabGroupTags:["motwToolstrip.globalTabGroup"],qabControlToActionMap:f,defaultLayout:p,actionService:n.actionService,sessionDataService:new u,undockedPage:N,hasMnemonics:!0,enableQABCustomization:!0,lazyToolstripConstruction:!0,showTopLeftButtonInToolstrip:"true"===A.showHome,isToolstripBusy:!0,isDocumentContainerBusy:!0,windowBoundsModified:!0}),D=new C({uiContainer:L}),M=L.watch(v.IS_DOCUMENT_CONTAINER_BUSY,(e,t,i)=>{!1===i&&(L.getDocuments().length<1&&L._removeDocumentContainer(),L.set(v.IS_TOOLSTRIP_BUSY,!1),M.remove())});n.manifestHandler.registerTasks("setupUiContainerExperience",function(){var t=new e;return L.cleanStart=!0,L.defaultLayout=_,L.sessionDataService.setLayoutState({}),L.startup(),L.set("isDocumentContainerBusy",!1),t.resolve(),t.promise}.bind(L)),n.manifestHandler.registerTasks("switchToMATLABView",function(){var t=new e;return i.remove(L.getRootNode(),"hidden"),t.resolve(),t.promise}.bind(L)),a.uiContainer=L,L.application=a,L.sessionDataService.uiContainer=L,i.add(L.getRootNode(),"hidden");var P=L._contextManager,O=L.uiBuilder;I=new d({layoutService:I,uiContainer:L});a.layoutService=I;var R=[T.NEW_FILE,T.NEW_FILE_EDITOR,T.NEW_FILE_LIVE_EDITOR,T.NEW_FOLDER,T.UPLOAD,T.DOWNLOAD,T.FIND_FILES,T.SAVE,T.SHOW_HISTORY],k=[];o.connect(n.executionService,"onExecutionStateChange",(function(e){e===n.executionService.EXECUTION_STATES.INPUT?(I&&(I.disableWidget("cfb"),I.disableWidget("workspace"),I.disableWidget("veDialogGroup"),I.disableWidget("documents"),I.disableWidget("toolstrip")),k=R.map((function(e){var t=n.actionService.getAction(e),i=!1;return t&&(i=t.enabled,n.actionService.disableAction(e)),i}))):(I&&(I.enableWidget("cfb"),I.enableWidget("workspace"),I.enableWidget("veDialogGroup"),I.enableWidget("documents"),I.enableWidget("toolstrip")),k.forEach((function(e,t){n.actionService.updateAction(R[t],{enabled:e})})),k=[])})),s.setService({executionService:n.executionService,fileDataService:n.fileDataService,uiContainer:L,layoutService:I}),n.actionService.loadActions(s.actions),S.setUpKeyBindings(n.actionService);var F=new e;n.workerReady.then(t.hitch(this,"_displayContainer",{uiContainer:L,uiContainerReady:F,sessionService:n.sessionService}));var B=new m({uiBuilder:L.uiBuilder,contextManager:P,featureService:n.featureService});B.build();var H=new g({uiBuilder:L.uiBuilder});let V=L.uiBuilder.tagToId("motwToolstrip.matlabTab.environment.layout.list.show.list.currentFolder"),j=L.uiBuilder.tagToId("motwToolstrip.matlabTab.environment.layout.list.show.list.workspace"),U=L.uiBuilder.tagToId("motwToolstrip.matlabTab.environment.layout.list.show.list.toolstrip");L.uiBuilder.tagToId("motwToolstrip");return L.uiBuilder.set(U,"selected",!0),L.toolstrip.watch("displayState",(function(e,t,i){i===y.EXPANDED?L.uiBuilder.set(U,"selected",!0):i===y.COLLAPSED&&L.uiBuilder.set(U,"selected",!1)})),L.uiBuilder.addPropertySetCallback(V,e=>{"selected"===e.property&&(e.newValue?L.getChildProperties("cfb").set("isOpen",!0):L.getChildProperties("cfb").set("isOpen",!1))}),L.uiBuilder.addPropertySetCallback(j,e=>{"selected"===e.property&&(e.newValue?L.getChildProperties("workspace").set("isOpen",!0):L.getChildProperties("workspace").set("isOpen",!1))}),L.uiBuilder.addPropertySetCallback(U,e=>{if("selected"===e.property){let t=L.uiBuilder.tagToId("motwToolstrip");e.newValue?L.uiBuilder.set(t,"displayState",y.EXPANDED):L.uiBuilder.set(t,"displayState",y.COLLAPSED)}}),r.subscribe("/floatingPaneDockUpdate",(function(e){var t=e.newWidget;h.getOpenWindows().forEach((function(e){t.addItem(e)})),h.addCallback("windowAdded","qab",t.addItem.bind(t)),h.addCallback("windowRemoved","qab",t.removeItem.bind(t))})),w.resolve({exports:{layoutManager:x,uiContainer:L,statusbar:D,layoutService:I,uiBuilder:O,contextManager:P,uiContainerReady:F.promise,toolstripGlobalTabGroupFactory:B,toolstripReducer:H,activeWindowManager:h}}),w.promise},_displayContainer:function(e){"function"==typeof window.requestIdleCallback?window.requestIdleCallback(function(){this.__displayContainer(e)}.bind(this)):this.__displayContainer(e)},__displayContainer:function(e){var t,o;i.remove(e.uiContainer.getRootNode(),"hidden"),n.set(e.uiContainer.getRootNode(),"opacity",1),e.uiContainer.on("started",(function(){e.uiContainerReady.resolve()})),e.uiContainer.startup(),e.sessionService.convertObjectPropertyToStringSetting("layout",["matlab","desktop"],"LayoutState"),e.sessionService.registerSettingToSync(["matlab","desktop"],"LayoutState",{get:function(){return JSON.stringify(e.uiContainer.sessionDataService.getLayoutState())},set:function(i){if(!t){var n=i?JSON.parse(i):{};e.uiContainer.sessionDataService.setLayoutState(n),t=!0}}}),e.sessionService.convertObjectPropertyToStringSetting("documents",["matlab","desktop"],"Documents"),e.sessionService.registerSettingToSync(["matlab","desktop"],"Documents",{get:function(){return JSON.stringify(e.uiContainer.sessionDataService.getDocumentsState())},set:function(t){if(!o){var i=t?JSON.parse(t):[];e.uiContainer.sessionDataService.setDocumentsState(i),o=!0}}})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(2590)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t.getInstance({uiBuilder:i.uiBuilder,workerReady:i.workerReady,editorService:i.editorService}),r=i.sessionService;return r.convertObjectPropertyToStringSetting("LiveAppsGalleryState",["matlab","editor","codingui"],"LiveAppsGalleryState"),r.registerSettingToSync(["matlab","editor","codingui"],"LiveAppsGalleryState",{get:function(){return JSON.stringify(o.getGalleryState())},set:function(e){if(!this._setOnce){this._setOnce=!0;var t=JSON.parse(e);t&&o.setGalleryState(t)}}.bind(this)}),n.resolve({exports:{liveAppsGalleryManager:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8413),i(38)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(i){var n=new e;return new t({uiLifecycle:i.uiLifecycle,featureService:i.featureService,faultHandlerModule:i.faultHandlerModule,manifestService:i.manifestService,iframeMessageService:i.iframeMessageService,wraService:i.wraService,sessionLifecycle:i.sessionLifecycle,manifestHandler:i.manifestHandler,fileDataService:i.fileDataService,uiConfigService:i.uiConfigService}).initializeExperience(),n.resolve({exports:{applicationLifecycle:{},addressBar:null,quickAccessBarManager:null}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8414)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e;return new t({iframeLayoutManager:i.iframeLayoutManager}),n.resolve({exports:{logicAnalyzer:{}}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(228),i(210),i(331),i(288),i(243),i(450),i(8415),i(8430),i(291),i(297),i(407),i(1231),i(555),i(2627),i(32),i(290)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){let _,v=null;function b(e=!1){var t,r,l,c;return(l=new n({tag:"toolstrip.loginStatusIndicator.logoutPopup"})).domNode.setAttribute("data-focus","temporary"),e||((t=new o({tag:"toolstrip.loginStatusIndicator.logoutPopup.myAccount",text:m.myAccount})).on("click",(function(){let e=`https://www.mathworks.com/ml_mymwa_mlsi_${h.getMATLABVersionInfo().release}_${_}`;p.openURL(e)})),l.addChild(t)),(r=new o({tag:"toolstrip.loginStatusIndicator.logoutPopup.logout",text:m.logout})).textAndDescriptionContainerNode.id="toolstrip.logoutButton.logoutPopup.logout_text",r.on("click",(function(){e||s.logout(),v.publishLogout(!0)})),l.addChild(r),c=new a({menu:l,tag:"toolstrip.loginStatusIndicator.statusIndicatorButton",description:m.logout}),i.add(c.domNode,"motwLogoutButton"),c.focusNode.setAttribute("data-mnemonic","O"),c}function y(e,t){t.info.displayName?e.set("text",t.info.displayName):e.set("text",m.defaultUserName)}function C(t){var n,o,a=new e,c=t.uiBuilder.widgetByTag("motwToolstrip");return n=function(){let e;return e=new r({tag:"toolstrip.loginStatusIndicator.loginButton",text:m.login}),e.on("click",(function(){s.login()})),i.add(e.domNode,"motwLogoutButton"),e.focusNode.setAttribute("data-mnemonic","O"),e}(),o=b(),v=f.getInstance(t),s.init({backend:new l}),s.getLoginInfo().then((function(e){e.loggedIn?(y(o,e),c.logoutContainer.appendChild(o.domNode),o._started&&o.startup()):(c.logoutContainer.appendChild(n.domNode),o._started&&n.startup())})),s.addStatusListener((function(e){e.loggedIn?(y(o,e),c.logoutContainer.replaceChild(o.domNode,n.domNode),o._started&&o.startup()):(c.logoutContainer.replaceChild(n.domNode,o.domNode),o._started&&n.startup())})),a.resolve({exports:{logoutButton:o}}),a.promise}return _=function(){let e=u.getSystemInfo().PLATFORM;return"Win32"===e?"win64":"MacIntel"===e?"maci64":e.includes("Linux")?"glnxa64":e}(),{initialize:function(t){return g.isMOS()?function(t){const i=new e,n=t.uiBuilder.widgetByTag("motwToolstrip");v=f.getInstance(t);const o={info:{displayName:t.wraService.userInfo.userInfo.firstName}},r=b(!0);return y(r,o),n.logoutContainer.appendChild(r.domNode),r.startup(),i.resolve({exports:{logoutButton:r}}),i.promise}(t):C(t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8433),i(8434),i(8435)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(o){var r=new e,a=o.uiConfigService,s=o.busyIndicator,l=o.UdcDataService,c=o.wraService,d=o.workerReady,u=new t;u.start(),u.postMessage("ready",!0);var h=new n({iframeMessageService:u,uiConfigService:a,busyIndicator:s,UdcService:l,workerReady:d}),p=new i({iframeMessageService:u,wraService:c,manifestHandler:h,workerReady:d});return r.resolve({exports:{manifestHandler:h,manifestService:p,iframeMessageService:u}}),r.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(2627)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r=i.getInstance({wraService:n.wraService,uiLifecycle:n.uiLifecycle,executionService:n.executionService});return n.settingsService.getSetting(["matlab","confirmationdialogs"],"MatlabExitConfirm").then(t.hitch(r,(function(e){this._showExitDialog=e.value}))),n.settingsService.listenTo(["matlab","confirmationdialogs"],"MatlabExitConfirm",t.hitch(r,(function(e){this._showExitDialog=e.newValue}))),o.resolve({exports:{matlabExitService:{}}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(219),i(555),i(280),i(8436)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=[],s={registerExtension:function(e,t){a.push({factory:e,priority:t})}},l={},c=!1;return{initialize:function(t){l=t.uiContainer;var d=new e;return i.subscribe("/project/view/current/r",(function(e){if(!c){c=!0,i.publish("/project/view/current",{action:"model_received"});var t=e.data,n=t.ServerChannel,o=t.ClientChannel,d=t.CommandChannel;i.publish("/project/view/current",{action:"model_constructed"}),s.ui=new r(n,o,d,l),a.forEach(e=>{s.ui.registerExtension(e.factory,e.priority)}),i.publish("/project/view/current",{action:"model_started"})}}),this).then((function(){i.publish("/project/view/current",{action:"getView"})})),n.setService({matlabProject:s}),o.matlabProject=s,d.resolve({exports:{matlabProject:s}}),d.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8518)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new t;i.matlabProject.registerExtension(n);var o=new e;return o.resolve({exports:{matlabProjectLabels:n}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8536)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new t;i.matlabProject.registerExtension(n);var o=new e;return o.resolve({exports:{matlabProjectReferences:n}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212)],o=i.dj.d(n,(function(e){return{initialize:function(t){var i=new e;return i.resolve({exports:{matlabbreakpoint:{}}}),i.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(219)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=t;return o.internalMotwDisableStart(),i.uiLifecycle.registerTask("WORKER_CONNECTED",(function(){o.internalMotwEnableStart(),o.isRunning()||o.start()})),i.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",(function(){o.isRunning()&&o.stop()})),n.resolve({exports:{messageService:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(8556),i(8563),i(8640),i(8641),i(8642),i(8643),i(8644),i(8645),i(467),i(1630),i(1633),i(1634),i(1629)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return{initialize:function(d){var u=new e,h=new r("GraphicsAndGuisPanes");d.featureService.addFeature(h);var p=new a("GraphicsAndGuisPopup");d.featureService.addFeature(p);var f=new o("GraphicsAndGuisAspect");d.featureService.addFeature(f),d.featureService.enableFeature("motw.internal.GraphicsAndGuisAspect");var g=new s("GraphicsAndGuisToggleDock");d.featureService.addFeature(g);var m=new l("GraphicsAndGuisLazyLoad",{executionService:d.executionService});d.featureService.addFeature(m);var _=new i({messageService:d.messageService.messageService,figureService:void 0,executionService:d.executionService}),v=this.getFigureToolstripConfig(!1,d);d.uiContainer.registerDocumentType("figure",v);var b=new c({mggGuiDataService:_}),y=new n({guiDataService:_,layoutService:d.layoutService,pathService:d.pathService,legacyFigureControlsManager:b,fileService:d.fileDataService});return _.flushHandler=y,d.workerReady.then(t.hitch(this,"_start",{mggGuiDataService:_})),u.resolve({exports:{mggGuiDataService:_,mggGuiManager:y,legacyFigureControlsManager:b,mggAspectFeature:f,mggPanesFeature:h,mggLazyLoadFeature:m,mggPopupFeature:p,mggToggleDockFeature:g}}),u.promise},_start:function(e){e.mggGuiDataService.start()},getFigureToolstripConfig:function(e,t){return new d(e?{defaultRegion:"right",title:"Figures",collectiveLabel:"Figures",suppressInitialFocus:!0,plusActions:["motw.newFigure"],willReopen:!1,tabGroupTags:["motwToolstrip.figureToolstripTabGroup2"],contexts:[{contextId:"motwToolstrip.cameraToolbarContext",tabGroupTags:["motwToolstrip.cameraToolbarToolstripTabGroup2"]}],tabGroupFactories:{"motwToolstrip.cameraToolbarToolstripTabGroup2":{createWidget:function(e,i,n){t.uiContainer.addTabGroupFromConfig(f,"motwToolstrip.cameraToolbarToolstripTabGroup2")}}}}:{defaultRegion:"right",title:"Figures",collectiveLabel:"Figures",suppressInitialFocus:!0,plusActions:["motw.newFigure"],willReopen:!1,contexts:[{contextId:"motwToolstrip.defaultContext",tabGroupTags:["motwToolstrip.defaultFigureToolstripTabGroup"]},{contextId:"motwToolstrip.plotEditContext",tabGroupTags:["motwToolstrip.plotEditTabGroup"]},{contextId:"motwToolstrip.cameraContext",tabGroupTags:["motwToolstrip.defaultFigureToolstripTabGroup","motwToolstrip.cameraTabGroup"]}],tabGroupFactories:{"motwToolstrip.defaultFigureToolstripTabGroup":new u(t),"motwToolstrip.plotEditTabGroup":new h(t),"motwToolstrip.cameraTabGroup":new p(t)}})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(1218)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=t.getSharingManager();return n.resolve({exports:{mldoSharingManager:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(206),i(1826),i(398)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(o){var r=new e,a=i.getInstance();return t(a,"moduleInitializeStarted",(function(e){n.markStart("ModuleLoadTime."+e.modulePath)})),t(a,"moduleInitializeEnded",(function(e){n.markEnd("ModuleLoadTime."+e.modulePath)})),r.resolve({exports:{moduleLoader:a}}),r.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(211),i(227),i(339)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(){var o=new e,r=t.create("div",{class:"motwApplication",spellcheck:"false"},i.byId("motwApplication"),"replace"),a=t.create("div",{class:"matlabView hidden"},r,"last"),s=t.create("div",{id:"motw",class:"matlabView hidden"},r,"last"),l=new n;return l.set("target",document.body),o.resolve({exports:{matlabView:s,obsoleteView:a,busyIndicator:l,domNode:r}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8646)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n,o=new e;return n=new t({actionService:i.actionService,preferenceValue:!0,executionService:i.executionService,selector:i.uiContainer.getRootSelector()}),i.settingsService.getSetting(["matlab","confirmationdialogs"],"NavigationShortcutsConfirm").then((function(e){n.setPreferenceValue(e.value)})),o.resolve({exports:{navigationShortcutsDialog:n}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(5)],o=i.dj.d(n,(function(e){return{initialize:function(t){var i=new e,n=t.moduleLoader;return t.wraService.doLoginWhenReady({type:"test"}),t.uiLifecycle.registerTask("WORKER_CONNECTED",(function(){return n.loadExports(n.convertServicesToExportNames(["applicationLifecycle"]))})),i.resolve({exports:{bootstrapService:{}}}),i.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(242),i(290),i(241),i(232),i(902),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{_isSubscribed:!1,initialize:function(t){var i=new e,n=this;return t.messageService.subscribe("/web/newtab",(async function(e){var i=await n.getPublishURLFromMATLABDriveURL(e.data,t.userDataService);i||(i=n._createWorkerRouterUrlForStaticContent(e.data)),n._newTabHandler(i)})),this._isSubscribed=!0,i.resolve({exports:{newTabHandler:{}}}),i.promise},getPublishURLFromMATLABDriveURL:async function(e,t){const i=(await t.getUserInfo()).userInfo.userId,n=a.constructPathFromUserName(i);return a.convertToPublishURLFromMATLABDriveURL(e,n)},_checkPopupBlocker:function(e){if(e){var t=this;e.onload=function(){t._isPopupBlocked(t,e)}}else this._displayError()},_isPopupBlocked:function(e,t){t.innerHeight>0==0&&e._displayError()},_displayError:function(){n.displayAlertDialog(i.popupBlockedTitle,i.popupBlockedText)},_newTabHandler:function(e){var i=t.global.open(e);"ie"!==r.getBrowserInfo().name&&this._checkPopupBlocker(i)},_createWorkerRouterUrlForStaticContent:function(e){return e.startsWith("http")?e:e=o.getWorkerRoutingHost().slice(0,-1)+e},_ensureNoDoubleSlashes:function(e){return e.replace(/\/\/+/g,"/")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8666)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t({actionService:i.actionService});return i.manifestHandler.registerTasks("logOpenWithMessage",o.logOpenWithMessage.bind(o)),n.resolve({exports:{openWithLogger:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8667)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t("pct",{uiContainer:i.uiContainer,statusbar:i.statusbar,executionService:i.executionService,actionService:i.actionService,authorizationDetailsService:i.authorizationDetailsService,userDataService:i.userDataService});return feature=i.featureService.addFeature(o),i.featureService.enableFeature(feature.id),n.resolve({exports:{pct:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(1612),i(219),i(8793)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(o){let r=new e,a=new n({uiBuilder:o.uiBuilder,executionService:o.executionService,authorizationDetailsService:o.authorizationDetailsService,workerReady:o.workerReady,commandWindow:o.commandWindow});return i.subscribe("/plotsModuleStarted",(function e(){i.unsubscribe("/plotsModuleStarted",e),a.subscribeToRegistrationFramework(),o.sessionService.convertObjectPropertyToStringSetting("PlotsGalleryState",["matlab","desktop","toolstrip"],"PlotsGalleryState"),o.sessionService.registerSettingToSync(["matlab","desktop","toolstrip"],"PlotsGalleryState",{get:function(){return JSON.stringify(a.getGalleryState())},set:function(e){if(!this._setOnce){this._setOnce=!0;let t=JSON.parse(e);t&&a.setGalleryState(t)}}.bind(this)})})).then(()=>{t.initialize("plotsgallery")}),r.resolve({exports:{plotsGalleryManager:a}}),r.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8800),i(8804)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r=new t,a=new i(r,n.workerReady);return r.sendToParent("BroadcastMessage",{msgType:"request/PMPStatus",status:"ready"}),o.resolve({exports:{postMessageProtocol:r,postMessageRequestHandler:a}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(8805)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r=i.getInstance({helpDataService:n.helpDataService,layoutService:n.layoutService,executionService:n.executionService,messageService:n.messageService});return n.workerReady.then(t.hitch(this,"_start",{inspector:r})),o.resolve({exports:{inspector:r}}),o.promise},_start:function(e){e.inspector.start()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8950)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t({uiBuilder:i.uiBuilder,actionService:i.actionService,uiContainer:i.uiContainer});return i.uiContainerReady.then(()=>{i.sessionService.convertObjectPropertyToStringSetting("quickAccessBarState",["matlab","desktop","toolstrip"],"QuickAccessBar"),i.sessionService.registerSettingToSync(["matlab","desktop","toolstrip"],"QuickAccessBar",{get:function(){return JSON.stringify(o.getState())},set:function(e){var t;this._setOnce||(this._setOnce=!0,e&&(t=JSON.parse(e)),o.setState(t||{}))}})}),n.resolve({exports:{quickAccessBarManager:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(8958),i(467)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(n){var o=new e,r=new i({uiContainer:n.uiContainer,helpUrlHandler:n.helpUrlHandler});return n.userReady.then(t.hitch(this,"_start",{uiContainer:n.uiContainer,reportsService:r})),o.resolve({exports:{reportsService:r}}),o.promise},_start:function(e){e.reportsService.start();var t=new n({defaultRegion:"right",title:"Reports",collectiveLabel:"Reports",willReopen:!1,suppressInitialFocus:!0,plusActions:[],tabGroupTags:[]});e.uiContainer.registerDocumentType("report",t)},reset:function(){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(232)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e;return t.setWorkerOnlyMessageTypes(["Eval","FEval","Interrupt","Variable","VariableChange","Workspace","CodeAnalyzer","FormatCode","ListFolder","CurrentFolder","UpdateFile","CreateFile","CloseFile","OpenFile","DeleteFile","MoveFile","MoveMultipleFiles","RenameFile","SetActiveVersion","ListVersion","DisplayVersion","SyntaxHighlighting","SyntaxHighlightingColorMap","LoadSession","GetShareInfo","UpdateShare","CancelPendingLoadSession","LoadClientSessionState","SaveClientSessionState","LoadSessionState","SaveSessionState","TabContextGetInfo","ClientModulesStarted","GetMatlabStatus"]),t.enableServerOnWorker(),n.resolve({exports:{serverOnWorker:{}}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8959),i(280)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r=new t({settingsService:n.settingsService});return o.resolve({exports:{sessionService:r}}),i.sessionService=r,o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8960),i(280)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r={};return n.uiLifecycle.registerTask("WORKER_CONNECTED",(function(){var e=n.sessionService,a=n.pathService;n.faultHandlerModule.setService({sessionService:e}),r=new t({sessionService:e,pathService:a,wraService:n.wraService,uiLifecycle:n.uiLifecycle,busyIndicator:n.busyIndicator}),i.sessionLifecycle=r,o.resolve({exports:{sessionLifecycle:r}})})),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(263),i(280),i(555)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(o){var r=new e;return n.setService({settingsService:t}),i.settingsService=t,r.resolve({exports:{settingsService:t}}),r.promise},reset:function(e){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(2706),i(2707)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r=new t({wraService:n.wraService}),a=new i({sharingService:r});return o.resolve({exports:{sharingService:r,sharingManager:a}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(398),i(8969),i(244)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(n){i.initialize(n.layoutService,t,n.activeWindowManager);var o=new e;return o.resolve({exports:{slonlineContainer:{}}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8982),i(6)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e;new t({uiLifecycle:i.uiLifecycle,wraService:i.wraService}).initializeExperience();var o=document.getElementsByClassName("progress-bar stripes");return o.length>0&&(o[0].style.display="none"),i.uiLifecycle.registerTask("WORKER_READY",function(){i.standAloneWebAppFigureManager.moRefreshed()}.bind(this)),n.resolve({exports:{applicationLifecycle:{}}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212)],o=i.dj.d(n,(function(e){return{initialize:function(t){var i=new e;return i.resolve({exports:{uiConfigService:{layoutMap:{mode:"MATLAB_WEBAPP"}}}}),i.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8983)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t;return o.subscribe(),o.listenForResizeEvents(),n.resolve({exports:{standAloneWebAppFigureManager:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8984),i(398)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r=new t(i);return n.uiContainerReady.then((function(){var e=document.getElementById("motw");r.placeAt(e,"after"),r.startup()})),o.resolve({exports:{taskbar:r}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(8990),i(398)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(o){var r=new e,a=i.getUdcServiceInstance("MOTW");a.setMaxBufferSize(250),n.setUDCService(a),o.workerReady.then(t.hitch(this,"_setUdcServiceSessionInformation",{userDataService:o.userDataService,UdcService:a}));var s=o.discoveryService.getServiceEndPointsMap();return s.USAGE_DATA_COLLECTION_SERVICE.endpoint&&a.updateUdcEndpoint(s.USAGE_DATA_COLLECTION_SERVICE.endpoint),o.discoveryService.on("serviceSet",(function(e){e.USAGE_DATA_COLLECTION_SERVICE.endpoint&&a.updateUdcEndpoint(e.USAGE_DATA_COLLECTION_SERVICE.endpoint)})),r.resolve({exports:{UdcDataService:a}}),r.promise},_setUdcServiceSessionInformation:function(e){e.userDataService.getUserInfo().then((function(t){e.UdcService&&t&&t.userInfo&&t.userInfo.userToken&&t.userInfo.userToken.hasOwnProperty("sessionCorrelationId")&&(t.userInfo.userToken.hasOwnProperty("mwaToken")||t.userInfo.userToken.hasOwnProperty("udcServiceToken"))&&(e.UdcService.setSessionCorrelationId(t.userInfo.userToken.sessionCorrelationId),t.userInfo.userToken.hasOwnProperty("udcServiceToken")?e.UdcService.setMWAToken(t.userInfo.userToken.udcServiceToken):e.UdcService.setMWAToken(t.userInfo.userToken.mwaToken))}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212)],o=i.dj.d(n,(function(e,t){return{modulesLoded:!1,initialize:function(t){var i=new e;return i.resolve({exports:{uiConfigService:{layoutMap:{}}}}),i.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(8992)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e;return n.resolve({exports:{uiLifecycle:new t({phases:["PAGE_LOAD","WORKER_CONNECTED","WORKER_READY","PRE_WORKER_DISCONNECTED","POST_WORKER_DISCONNECTED"]})}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(232),i(540)],o=i.dj.d(n,(function(e,t,i){function n(){var n=new e;return t.registerResponseHandler("CurrentUserResponse:GetUserData",(function(e){e&&e[0]&&e[0].userInfo?n.resolve(e[0]):n.resolve({userInfo:{firstName:"",userToken:{}}})}),this),i.addMessagesTypesToEndPoint("WORKER_ENDPOINT","CurrentUser"),i.removeMessageTypesFromEndPoint("ROUTER_LEAF_INSECURE_ENDPOINT","CurrentUser"),t.sendMessage({CurrentUser:{}},{},"GetUserData"),i.addMessagesTypesToEndPoint("ROUTER_LEAF_INSECURE_ENDPOINT","CurrentUser"),i.removeMessageTypesFromEndPoint("WORKER_ENDPOINT","CurrentUser"),n.promise}return{initialize:function(t){var i=new e,o=new e,r={setUserInfo:function(e){o.resolve(e)},getUserInfo:function(){return o.promise}};return t.workerReady.then((function(){n().then((function(e){o.resolve(e)}))})),i.resolve({exports:{userDataService:r}}),i.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(214),i(204),i(341),i(290)],o=i.dj.d(n,(function(e,t,i,n,o){return{initialize:function(t){var i=new e,n=new e;return t.uiLifecycle.registerTask("WORKER_CONNECTED",(function(){n.resolve()})),i.resolve({exports:{userReady:n}}),i.promise},reset:function(){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(714),i(467),i(8994),i(8997),i(9005)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=["motwToolstrip.VariableTabGroup"];return{initialize:function(t){var n=new e,l=i.getInstance(),c=new o.getInstance({helpDataService:t.helpDataService,layoutService:t.layoutService,executionService:t.executionService,messageService:t.messageService,contextManagerInstance:l}),d={};return s.forEach((function(e){d[e]=new r({toolstripManager:new a({manager:c.getManager(),contextManager:l})})})),this.registerVEDocumentType(t.uiContainer,d),t.workerReady.then((function(){})),n.resolve({exports:{variableEditor:c}}),n.promise},registerVEDocumentType:function(e,t){var i=new n({defaultRegion:"right",title:"Variables",collectiveLabel:"Variables",willReopen:!0,contexts:[{contextId:"variable",tabGroupTags:s}],tabGroupTags:s,tabGroupFactories:t});e.registerDocumentType("variable",i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(9009),i(280)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r=new t({fileDataService:n.fileDataService});return i.versioningService=r,o.resolve({exports:{versioningService:r}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(212),i(9012)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new t,r=new i({messageService:n.messageService});return n.workerReady.then(e.hitch(this,"start",{webcamService:r})),o.resolve({exports:{webcamService:r}}),o.promise},start:function(e){e.webcamService.start()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(9016)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t(i.messageService);return o.start(),n.resolve({exports:{webDdgFactory:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(9030)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t({actionService:i.actionService,workerReady:i.workerReady});return n.resolve({exports:{workerActionDisabler:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(232)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new e,r=new e,a=i.uiLifecycle,s=i.messageService;return a.registerTask("WORKER_CONNECTED",(function(){var i=new e;new URL(t.getWorkerRoutingHost()).origin===window.location.origin&&i.resolve();var n=function(){};return s.subscribe("/dummy_tmp_channel/tmp",n).then((function(){i.resolve(),s.unsubscribe("/dummy_tmp_channel/tmp",n)})),i.promise})),a.registerTask("WORKER_READY",(function(){o.resolve()})),n.resolve({exports:{workerReady:o,workerLost:r}}),n.promise},reset:function(){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(214),i(1612),i(714),i(9031),i(275),i(703),i(342),i(468),i(291),i(299)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return{initialize:function(s){c.mark("wbStart");var l=new e,u=r.getInstance({layoutService:s.layoutService,executionService:s.executionService,fileDataService:s.fileDataService,uiContainer:s.uiContainer,contextManagerInstance:o.getInstance(),settingsService:s.settingsService});this._debugServices=a.getInstance(),i.after(this._debugServices,"onStackChanged",t.hitch(u,"onStackChanged"),!0),s.workerReady.then(t.hitch(this,"_start",{workspaceBrowser:u,actionService:s.actionService}));return d.getMVM().whenMVMReady().then(()=>{n.initialize("workspacebrowser"),n.start()}),l.resolve({exports:{workspaceBrowser:u}}),l.promise},_start:function(e){e.workspaceBrowser.start(),this._initKeyBindings(e)},_initKeyBindings:function(e){s.getInstance(e.actionService).getBinding([l.Keys.SYSCTRL,l.Keys.S]).setAction(".motwApplication",u.SAVE_WORKSPACE)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(210),i(211),i(227),i(356),i(614),i(204),i(214),i(9047),i(2722),i(339),i(280)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return{modulesLoded:!1,initialize:function(t){var n=new e,d=i.create("div",{class:"wraView"},t.domNode,"first"),h=new c(t.domNode);u.statusNode=h;var p=new l({wraService:t.wraService,class:"hidden",busyIndicator:t.busyIndicator},d);u.wraLogin=p,s.after(p,"setViewLoggedIn",a.hitch(h,h.setModulesReady),!1),s.after(p,"onReady",a.hitch(h,h.setLoginReady),!1),s.after(t.wraService,"logout",a.hitch(h,h.setStatusUnknown),!1),t.wraService.start(),p.startup();var f=this._getAnimations();return f.push(o.fadeIn({node:p.domNode,duration:500})),r.combine(f).play(),n.resolve({exports:{wraLogin:{}}}),n.promise},_getAnimations:function(){var e=[];return n.byId("preloader")&&!t.contains("preloader","hidden")&&e.push(o.fadeOut({node:"preloader",duration:0===this.unloadedModules?500:100,onEnd:function(e){t.add(e,"hidden")}})),e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(9056),i(756),i(280),i(232)],o=i.dj.d(n,(function(e,t,i,n,o){return{initialize:function(r){var a,s=new e,l=window.navigator.language.slice(0,2).toLowerCase();0==(a=o.getServiceRegistryEndpoint("primary-"+l)).length&&(a=o.getServiceRegistryEndpoint("primary"));var c=o.getServiceRegistryEndpoint("computeSpecification"),d=new t({skipStart:!0,uiConfigService:r.uiConfigService,uiLifecycle:r.uiLifecycle,heartbeatService:r.heartbeatService,userDataService:r.userDataService,injectedEndpoint:a,busyIndicator:r.busyIndicator,computeSpecification:c});return i.setUp(d),s.resolve({exports:{wraService:d}}),n.wraService=d,s.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(9057)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){let n=i.uiContainer;var o={uiContainer:n};i.workerReady.then((function(){i.messageService.start(),i.messageService.subscribe("/testbrowser/start",e=>{i.settingsService.getSetting(["matlab","desktop"],"EnableJSRunTestsToolstrip").then(i=>{i.value&&((o=t.getInstance({channel:e.data,uiContainer:n})).createView(),o.startup(),o.show())})})}));let r=new e;return r.resolve({exports:{testbrowser:o}}),r.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212)],o=i.dj.d(n,(function(e){return{initialize:function(t){var i=new e,n=t.uiContainer;return n.whenLayoutInitialized().then(()=>{n.showMainContainer(),this._hideSplashscreen()}),i.resolve({exports:{splashscreenmanager:{}}}),i.promise},_hideSplashscreen:function(){var e=document.querySelector("div.mw-startscreen");e&&(e.style.opacity=0,setTimeout(()=>{e.remove()},500))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(9079)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){let n=new e,o=new t({uiContainer:i.uiContainer,messageService:i.messageService});return n.resolve({exports:{sidePanel:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(219),i(280),i(9082),i(9088)],o=i.dj.d(n,(function(e,t,i,n,o){return{initialize:function(r){const a=new e,s=r.uiContainer;let l={appRegistry:null};return t.subscribe("/mlc/coderapp/registry",e=>{l.appRegistry&&l.appRegistry.destroy(),l.appRegistry=new o({messenger:n("coderapp"),modelSyncParams:e.data}),l.appRegistry.start(s)}),i.coder=l,a.resolve({exports:{coder:l}}),a.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(9102)],o=i.dj.d(n,(function(e){class t{createExtension(t){return new e(t)}provideToolstripEntryPoint(){return null}}return{initialize:async function(e){const i=new t;return e.matlabProject.registerExtension(i),{exports:{matlabProjectSharing:i}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(204),i(219),i(280),i(9114)],o=i.dj.d(n,(function(e,t,i,n,o){let r={},a={};const s={};let l=!1;return{initialize:function(t){r=t,a=r.uiContainer;const c=new e;return i.subscribe("/cmlink/getRootView/r",(function(e){if(l)return;l=!0;const t=e.data,i=t.ServerChannel,n=t.ClientChannel,r=t.CommandChannel;s.ui=new o(i,n,r,a)}),this).then((function(){i.publish("/cmlink/startServer",{from:"modules/sourceControl/index.js"}),i.publish("/cmlink/getRootView",{action:"getView"})})),n.sourceControl=s,c.resolve({exports:{sourceControl:s}}),c.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(232),i(291),i(297),i(247),i(398)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{initialize:function(t){let i=o.parseQueryString().course;if(null!=i){let e="learning.simulink.launchOnramp('"+i+"')";r.addData("SimulinkCourses.CourseLaunch",JSON.stringify({course:i})),t.workerReady.then(function(){this.executeCallback(e)}.bind(this))}let n=new e;return n.resolve({exports:{academySimulinkCourses:{}}}),n.promise},executeCallback:function(e){i.getMVM().eval(e,new n).then((function(e){}),(function(e){}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(9123)],o=i.dj.d(n,(function(e,t){return{initialize:function(i){var n=new e,o=new t;return n.resolve({exports:{discoveryService:o}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(2706),i(9124),i(2707),i(247)],o=i.dj.d(n,(function(e,t,i,n,o){var r=!!o.parseQueryString().mss;return{initialize:function(o){var a,s=new e;a=r?new t({wraService:o.wraService}):new i({wraService:o.wraService});var l=new n({sharingService:a});return s.resolve({exports:{sharingService:a,sharingManager:l}}),s.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(210),i(211),i(227),i(356),i(614),i(204),i(214),i(9125),i(2722),i(339),i(280),i(398),i(209),i(280)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return{modulesLoded:!1,initialize:function(t){var h=new e,p=i.create("div",{class:"motwApplication",spellcheck:"false"},n.byId("motwApplication"),"replace"),f=i.create("div",{class:"wraView"},p,"first"),g=i.create("div",{class:"matlabView hidden"},p,"last"),m=i.create("div",{id:"motw",class:"matlabView hidden"},p,"last"),_=new c(p);u.statusNode=_;var v=new d;v.set("target",document.body);var b=new l({wraService:t.wraService,class:"hidden",busyIndicator:v},f);u.wraLogin=b,s.after(b,"setViewLoggedIn",a.hitch(_,_.setModulesReady),!1),s.after(b,"onReady",a.hitch(_,_.setLoginReady),!1),s.after(t.wraService,"logout",a.hitch(_,_.setStatusUnknown),!1),t.wraService.start(),b.startup();var y=this._getAnimations();return y.push(o.fadeIn({node:b.domNode,duration:500})),r.combine(y).play(),h.resolve({exports:{matlabView:m,obsoleteView:g,busyIndicator:v,wraLogin:b}}),h.promise},_getAnimations:function(){var e=[];return n.byId("preloader")&&!t.contains("preloader","hidden")&&e.push(o.fadeOut({node:"preloader",duration:0===this.unloadedModules?500:100,onEnd:function(e){t.add(e,"hidden")}})),e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(9126),i(756),i(247),i(280)],o=i.dj.d(n,(function(e,t,i,n,o){return{initialize:function(n){var r=new e,a=new t({skipStart:!0,uiConfigService:n.uiConfigService,uiLifecycle:n.uiLifecycle,postMessageProtocol:n.postMessageProtocol,heartbeatService:n.heartbeatService,postMessageRequestHandler:n.postMessageRequestHandler,userDataService:n.userDataService});return n.postMessageProtocol.registerHandler("request/DisconnectSubscription",a.handleDisconnectSubscriptionMessage.bind(a)),n.postMessageProtocol.registerHandler("request/HeartBeatService",a.handleHeartBeatSubscription.bind(a)),i.setUp(a),r.resolve({exports:{wraService:a}}),o.wraService=a,r.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(398),i(291),i(468)],o=i.dj.d(n,(function(e,t,i,n){return{initialize:function(i){var o=new e;return this.uiLifecycle=i.uiLifecycle,this.featureService=i.featureService,this.uiLifecycle.registerTask("WORKER_READY",function(){n.start("AppModuleLoading_DesktopModuleServices"),t.addData("loginFlow.matlabReady"),this._loadFinalLayer({moduleLoader:i.moduleLoader})}.bind(this)),o.resolve({exports:{applicationLifecycle:{}}}),o.promise},_loadFinalLayer:function(e){"function"==typeof window.requestIdleCallback?window.requestIdleCallback(function(){this.__loadFinalLayer(e)}.bind(this)):this.__loadFinalLayer(e)},__loadFinalLayer:function(e){var t=["pct","webWindowService"];e.moduleLoader.loadExports(e.moduleLoader.convertServicesToExportNames(["editorDataService","editorVersioningService","versioningService","FavoriteCommands","appsGalleryManager","plotsGalleryManager","liveAppsGalleryManager","matlabbreakpoint","figureAnnotationsGalleryManager","figureAnnotationsGalleryManagerMOL","figure","sidePanel","dfWidgetManager","variableEditor","iframeLayoutManager","dialogHandlerService","inspector","feedbackService","feedbackManager","helpDataJSDService","serverOnWorker","logicAnalyzer","webDdgFactory","newTabHandler","findFilesService","addOnsService","reportsService","matlabExitService","moFigureManager","audioManager","docService","mggGuiManager","mggGuiDataService","legacyFigureControlsManager","mggPanesFeature","mggLazyLoadFeature","mggPopupFeature","mggToggleDockFeature","gdsNotifications","slonlineContainer","importtool","webcamService","navigationShortcutsDialog","efWidgetManager","helpUrlHandler","manifestHandler","configureWorker","openWithLogger","errorLoggerService","matlabProject","matlabProjectLabels","matlabProjectReferences","matlabProjectSharing","testbrowser"])).then((function(e){n.end("AppModuleLoading_DesktopModuleServices")}),(function(e){console.log(e)})),i.getMVM().whenMVMReady().then((function(){e.moduleLoader.loadExports(e.moduleLoader.convertServicesToExportNames(t)).then((function(e){}),(function(e){console.log(e)}))}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(4),i(468)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(t){var n=new e,o=t.moduleLoader;return t.uiLifecycle.registerTask("WORKER_CONNECTED",(function(){i.start("AppModuleLoading_AppLifeCycle");var e=o.loadExports(o.convertServicesToExportNames(["applicationLifecycle"]));return e.then((function(){i.end("AppModuleLoading_AppLifeCycle")})),e})),n.resolve({exports:{bootstrapService:{}}}),n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212)],o=i.dj.d(n,(function(e){return{initialize:function(t){var i=new e;return i.resolve({exports:{uiConfigService:{}}}),i.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(9129),i(756),i(247),i(280),i(209),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{initialize:function(s){var l=new e,c=n.parseQueryString(),d={},u=window.location.origin;try{(d=JSON.parse(window.sessionStorage.getItem("crConfig")))&&d.connectorRoot&&(u=d.connectorRoot)}catch(e){r.error("Encountered error reading JupyterHub UI Configurations")}c.desktoponly&&(a.messageService.start=function(){console.error("Attempt to start MessageService with desktop only (2)")},a.internalMotwEnableStart=function(){console.error("Attempt to start MessageService with desktop only (1)")});var h=c.mre,p=h||u;p&&!p.endsWith("/")&&(p+="/");var f=new t({defaultRemoteEndpoint:p,skipStart:!0,uiConfigService:s.uiConfigService,uiLifecycle:s.uiLifecycle,postMessageProtocol:s.postMessageProtocol,heartbeatService:s.heartbeatService,postMessageRequestHandler:s.postMessageRequestHandler,userDataService:s.userDataService,isHeartBeatEnabled:c.heartbeat});return i.setUp(f),l.resolve({exports:{wraService:f}}),o.wraService=f,l.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(798),i(9130)],o=i.dj.d(n,(function(e,t,i){return{initialize:function(n){var o=new e,r=new i({ChildWindowManager:t,moFigureManager:n.moFigureManager,heartbeatService:n.heartbeatService});return n.uiLifecycle.registerTask("WORKER_READY",(function(){r.start()})),n.uiLifecycle.registerTask("PRE_WORKER_DISCONNECTED",(function(){return r.killDanglingMatlabWebwindows(),r.closeAllWindows()})),o.resolve({exports:{webWindowService:r}}),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(798),i(9138),i(649),i(318)],o=i.dj.d(n,(function(e,t,i){var n,o,r,a,s='<div style="text-align: center; font-size: large;"><p>This application must be launched from MATLAB.</p><p>Please close the page and return to MATLAB to re-open the application.</p></div>';try{r=e.getInitialData(!0),n=r.url,o=r.forceSameDomainAsParent,a=r.fontsToPreload?"<script>"+r.fontsToPreload.reduce((function(e,t){return e+'fetch("'+t+'", {credentials:"include"});'}),"")+"<\/script>":""}catch(e){return void(document.body.innerHTML=s)}if(1!==performance.navigation.type){if(o){var l=new XMLHttpRequest;l.onreadystatechange=function(){if(4===this.readyState&&200===this.status){var e=l.responseText,t=document.getElementById("iframeCapsule");-1!==e.indexOf("<head>")&&-1!==n.indexOf("/")&&(e=e.replace("<head>","<head><base href="+n+" target='_blank'>"+a),t.srcdoc=e)}},l.open("GET",n,!0),l.send()}else{document.getElementById("iframeCapsule").src=n}e.opened();window.self.addEventListener("message",(function(e){var t;switch(e.data.type){case"bubbleClick":(t=document.createEvent("Events")).initEvent("click",!0,!0),window.dispatchEvent(t);break;case"bubbleBlur":(t=document.createEvent("Events")).initEvent("blur",!0,!0),window.dispatchEvent(t);break;case"bubbleFocus":(t=document.createEvent("Events")).initEvent("focus",!0,!0),window.dispatchEvent(t);break;case"bringParentToFront":window.opener.postMessage(e.data,"*")}}))}else document.body.innerHTML=s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(221),i(204)],o=i.dj.d(n,(function(e,t,i){var n,o=i.mixin,r=Object.prototype,a=r.toString,s=0,l="constructor";function c(e,t){throw new Error("declare"+(t?" "+t:"")+": "+e)}function d(e,t,i){var n,o,a,s,d,u,h,p,f,g=this._inherited=this._inherited||{};if("string"==typeof e&&(n=e,e=t,t=i),i=0,s=e.callee,(n=n||s.nom)||c("can't deduce a name to call inherited()",this.declaredClass),a=(d=this.constructor._meta).bases,f=g.p,n!=l){if(g.c!==s&&(f=0,(d=(u=a[0])._meta).hidden[n]!==s)){(o=d.chains)&&"string"==typeof o[n]&&c("calling chained method with inherited: "+n,this.declaredClass);do{if(d=u._meta,h=u.prototype,d&&(h[n]===s&&h.hasOwnProperty(n)||d.hidden[n]===s))break}while(u=a[++f]);f=u?f:-1}if(u=a[++f])if(h=u.prototype,u._meta&&h.hasOwnProperty(n))i=h[n];else{p=r[n];do{if((i=(h=u.prototype)[n])&&(u._meta?h.hasOwnProperty(n):i!==p))break}while(u=a[++f])}i=u&&i||r[n]}else{if(g.c!==s&&(f=0,(d=a[0]._meta)&&d.ctor!==s)){for((o=d.chains)&&"manual"===o.constructor||c("calling chained constructor with inherited",this.declaredClass);(u=a[++f])&&(!(d=u._meta)||d.ctor!==s););f=u?f:-1}for(;(u=a[++f])&&!(i=(d=u._meta)?d.ctor:u););i=u&&i}if(g.c=i,g.p=f,i)return!0===t?i:i.apply(this,t||e)}function u(e,t){return"string"==typeof e?this.__inherited(e,t,!0):this.__inherited(e,!0)}n=t("csp-restrictions")?function(){}:new Function;var h=e.config.isDebug?function(e,t,i){var n=this.getInherited(e,t);if(n)return n.apply(this,i||t||e)}:d;function p(e){for(var t=this.constructor._meta.bases,i=0,n=t.length;i<n;++i)if(t[i]===e)return!0;return this instanceof e}function f(e,n){for(var o in n)o!=l&&n.hasOwnProperty(o)&&(e[o]=n[o]);if(t("bug-for-in-skips-shadowed"))for(var r=i._extraNames,a=r.length;a;)(o=r[--a])!=l&&n.hasOwnProperty(o)&&(e[o]=n[o])}function g(e){return y.safeMixin(this.prototype,e),this}function m(e,t){return e instanceof Array||"function"==typeof e||(t=e,e=void 0),t=t||{},y([this].concat(e=e||[]),t)}function _(e,t,i){return function(){var n,o,r,a=0,s=1;for(i&&(a=t.length-1,s=-1);n=t[a];a+=s)(r=((o=n._meta)?o.hidden:n.prototype)[e])&&r.apply(this,arguments)}}function v(e){n.prototype=e.prototype;var t=new n;return n.prototype=null,t}function b(e){var t=e.callee,i=v(t);return t.apply(i,e),i}function y(e,t,n){"string"!=typeof e&&(n=t,t=e,e=""),n=n||{};var C,T,E,S,w,I,A,x=1,N=t;if("[object Array]"==a.call(t)?(E=(I=function(e,t){for(var i,n,o,r,l,d,u,h,p=[],f=[{cls:0,refs:[]}],g={},m=1,_=e.length,v=0;v<_;++v){for((o=e[v])?"[object Function]"!=a.call(o)&&c("mixin #"+v+" is not a callable constructor.",t):c("mixin #"+v+" is unknown. Did you use dojo.require to pull it in?",t),r=0,i=(n=o._meta?o._meta.bases:[o]).length-1;i>=0;--i)(l=n[i].prototype).hasOwnProperty("declaredClass")||(l.declaredClass="uniqName_"+s++),u=l.declaredClass,g.hasOwnProperty(u)||(g[u]={count:0,refs:[],cls:n[i]},++m),d=g[u],r&&r!==d&&(d.refs.push(r),++r.count),r=d;++r.count,f[0].refs.push(r)}for(;f.length;){for(r=f.pop(),p.push(r.cls),--m;1==(h=r.refs).length;){if(!(r=h[0])||--r.count){r=0;break}p.push(r.cls),--m}if(r)for(v=0,_=h.length;v<_;++v)--(r=h[v]).count||f.push(r)}return m&&c("can't build consistent linearization",t),o=e[0],p[0]=o?o._meta&&o===p[p.length-o._meta.bases.length]?o._meta.bases.length:1:0,p}(t,e))[0],t=I[x=I.length-E]):(I=[0],t?"[object Function]"==a.call(t)?(E=t._meta,I=I.concat(E?E.bases:t)):c("base class is not a callable constructor.",e):null!==t&&c("unknown base class. Did you use dojo.require to pull it in?",e)),t)for(T=x-1;C=v(t),T;--T)((E=I[T])._meta?f:o)(C,E.prototype),(S=new Function).superclass=t,S.prototype=C,t=C.constructor=S;else C={};for(y.safeMixin(C,n),(E=n.constructor)!==r.constructor&&(E.nom=l,C.constructor=E),T=x-1;T;--T)(E=I[T]._meta)&&E.chains&&(A=o(A||{},E.chains));if(C["-chains-"]&&(A=o(A||{},C["-chains-"])),E=!A||!A.hasOwnProperty(l),I[0]=S=A&&"manual"===A.constructor?function(e){return function(){var t,i,n=arguments,o=0;if(!(this instanceof n.callee))return b(n);for(;t=e[o];++o)if(t=(i=t._meta)?i.ctor:t){t.apply(this,n);break}(t=this.postscript)&&t.apply(this,n)}}(I):1==I.length?function(e,t){return function(){var i,n=arguments,o=n,r=n[0];if(!(this instanceof n.callee))return b(n);t&&(r&&(i=r.preamble)&&(o=i.apply(this,o)||o),(i=this.preamble)&&i.apply(this,o)),e&&e.apply(this,n),(i=this.postscript)&&i.apply(this,n)}}(n.constructor,E):function(e,t){return function(){var i,n,o,r,a=arguments,s=a,l=a[0],c=e.length;if(!(this instanceof a.callee))return b(a);if(t&&(l&&l.preamble||this.preamble))for((r=new Array(e.length))[0]=a,n=0;(l=a[0])&&(i=l.preamble)&&(a=i.apply(this,a)||a),(i=(i=e[n].prototype).hasOwnProperty("preamble")&&i.preamble)&&(a=i.apply(this,a)||a),++n!=c;)r[n]=a;for(n=c-1;n>=0;--n)(i=(o=(i=e[n])._meta)?o.ctor:i)&&i.apply(this,r?r[n]:a);(i=this.postscript)&&i.apply(this,s)}}(I,E),S._meta={bases:I,hidden:n,chains:A,parents:N,ctor:n.constructor},S.superclass=t&&t.prototype,S.extend=g,S.createSubclass=m,S.prototype=C,C.constructor=S,C.getInherited=u,C.isInstanceOf=p,C.inherited=h,C.__inherited=d,e&&(C.declaredClass=e,i.setObject(e,S)),A)for(w in A)C[w]&&"string"==typeof A[w]&&w!=l&&((E=C[w]=_(w,I,"after"===A[w])).nom=w);return S}return e.safeMixin=y.safeMixin=function(e,n){var o,s;for(o in n)(s=n[o])===r[o]&&o in r||o==l||("[object Function]"==a.call(s)&&(s.nom=o),e[o]=s);if(t("bug-for-in-skips-shadowed")&&n)for(var c=i._extraNames,d=c.length;d;)(s=n[o=c[--d]])===r[o]&&o in r||o==l||("[object Function]"==a.call(s)&&(s.nom=o),e[o]=s);return e},e.declare=y,y}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(221),i(245)],o=i.dj.d(n,(function(e,t){t.add("bug-for-in-skips-shadowed",(function(){for(var e in{toString:1})return 0;return 1}));var i=t("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],n=i.length,o=function(t,i,n){n||(n=t[0]&&e.scopeMap[t[0]]?e.scopeMap[t.shift()][1]:e.global);try{for(var o=0;o<t.length;o++){var r=t[o];if(!(r in n)){if(!i)return;n[r]={}}n=n[r]}return n}catch(e){}},r=Object.prototype.toString,a=function(e,t,i){return(i||[]).concat(Array.prototype.slice.call(e,t||0))},s=/\{([^\}]+)\}/g,l={_extraNames:i,_mixin:function(e,o,r){var a,s,l,c={};for(a in o)s=o[a],a in e&&(e[a]===s||a in c&&c[a]===s)||(e[a]=r?r(s):s);if(t("bug-for-in-skips-shadowed")&&o)for(l=0;l<n;++l)s=o[a=i[l]],a in e&&(e[a]===s||a in c&&c[a]===s)||(e[a]=r?r(s):s);return e},mixin:function(e,t){e||(e={});for(var i=1,n=arguments.length;i<n;i++)l._mixin(e,arguments[i]);return e},setObject:function(e,t,i){var n=e.split("."),r=n.pop(),a=o(n,!0,i);return a&&r?a[r]=t:void 0},getObject:function(e,t,i){return e?o(e.split("."),t,i):i},exists:function(e,t){return void 0!==l.getObject(e,!1,t)},isString:function(e){return"string"==typeof e||e instanceof String},isArray:Array.isArray||function(e){return"[object Array]"==r.call(e)},isFunction:function(e){return"[object Function]"===r.call(e)},isObject:function(e){return void 0!==e&&(null===e||"object"==typeof e||l.isArray(e)||l.isFunction(e))},isArrayLike:function(e){return!!e&&!l.isString(e)&&!l.isFunction(e)&&!(e.tagName&&"form"==e.tagName.toLowerCase())&&(l.isArray(e)||isFinite(e.length))},isAlien:function(e){return e&&!l.isFunction(e)&&/\{\s*\[native code\]\s*\}/.test(String(e))},extend:function(e,t){for(var i=1,n=arguments.length;i<n;i++)l._mixin(e.prototype,arguments[i]);return e},_hitchArgs:function(t,i){var n=l._toArray(arguments,2),o=l.isString(i);return function(){var r=l._toArray(arguments),a=o?(t||e.global)[i]:i;return a&&a.apply(t||this,n.concat(r))}},hitch:function(t,i){if(arguments.length>2)return l._hitchArgs.apply(e,arguments);if(i||(i=t,t=null),l.isString(i)){if(!(t=t||e.global)[i])throw['lang.hitch: scope["',i,'"] is null (scope="',t,'")'].join("");return function(){return t[i].apply(t,arguments||[])}}return t?function(){return i.apply(t,arguments||[])}:i},delegate:function(){function e(){}return function(t,i){e.prototype=t;var n=new e;return e.prototype=null,i&&l._mixin(n,i),n}}(),_toArray:t("ie")?function(){function e(e,t,i){for(var n=i||[],o=t||0;o<e.length;o++)n.push(e[o]);return n}return function(t){return(t.item?e:a).apply(this,arguments)}}():a,partial:function(t){var i=[null];return l.hitch.apply(e,i.concat(l._toArray(arguments)))},clone:function(e){if(!e||"object"!=typeof e||l.isFunction(e))return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);var t,i,n;if(l.isArray(e))for(t=[],i=0,n=e.length;i<n;++i)i in e&&(t[i]=l.clone(e[i]));else t=e.constructor?new e.constructor:{};return l._mixin(t,e,l.clone)},trim:String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},replace:function(e,t,i){return e.replace(i||s,l.isFunction(t)?t:function(e,i){return l.getObject(i,!1,t)})}};return t("extend-dojo")&&l.mixin(e,l),l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(null,{isApplicable:function(){return!0},requires:function(){},createInstance:function(){throw new Error("Unimplemented API: createInstance")},destroyInstance:function(e){e&&e.isInstanceOf&&e.isInstanceOf(t)&&e.destroy()},priority:function(){return 1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.h("dom-addeventlistener?:214"),i(240),i(245)],o=i.dj.d(n,(function(e,t,i){"use strict";if(i("dom")){var n=window.ScriptEngineMajorVersion;i.add("jscript",n&&n()+ScriptEngineMinorVersion()/10),i.add("event-orientationchange",i("touch")&&!i("android")),i.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation),i.add("event-focusin",(function(e,t,i){return"onfocusin"in i})),i("touch")&&i.add("touch-can-modify-event-delegate",(function(){var e=function(){};e.prototype=document.createEvent("MouseEvents");try{var t=new e;return t.target=null,null===t.target}catch(e){return!1}}))}var o=function(e,t,i,n){return"function"!=typeof e.on||"function"==typeof t||e.nodeType?o.parse(e,t,i,a,n,this):e.on(t,i)};o.pausable=function(e,t,i,n){var r,a=o(e,t,(function(){if(!r)return i.apply(this,arguments)}),n);return a.pause=function(){r=!0},a.resume=function(){r=!1},a},o.once=function(e,t,i,n){var r=o(e,t,(function(){return r.remove(),i.apply(this,arguments)}));return r},o.parse=function(e,t,i,n,r,a){var s;if(t.call)return t.call(a,e,i);if(t instanceof Array?s=t:t.indexOf(",")>-1&&(s=t.split(/\s*,\s*/)),s){for(var l,c=[],d=0;l=s[d++];)c.push(o.parse(e,l,i,n,r,a));return c.remove=function(){for(var e=0;e<c.length;e++)c[e].remove()},c}return n(e,t,i,r,a)};var r=/^touch/;function a(e,t,n,a,s){var l=t.match(/(.*):(.*)/);if(l)return t=l[2],l=l[1],o.selector(l,t).call(s,e,n);if(i("touch")&&(r.test(t)&&(n=T(n)),i("event-orientationchange")||"orientationchange"!=t||(t="resize",e=window,n=T(n))),p&&(n=p(n)),e.addEventListener){var c=t in u,d=c?u[t]:t;return e.addEventListener(d,n,c),{remove:function(){e.removeEventListener(d,n,c)}}}if(t="on"+t,m&&e.attachEvent)return m(e,t,n);throw new Error("Target must be an event emitter")}function s(){this.cancelable=!1,this.defaultPrevented=!0}function l(){this.bubbles=!1}o.matches=function(e,i,n,o,r){for(r=r&&"function"==typeof r.matches?r:t.query,o=!1!==o,1!=e.nodeType&&(e=e.parentNode);!r.matches(e,i,n);)if(e==n||!1===o||!(e=e.parentNode)||1!=e.nodeType)return!1;return e},o.selector=function(e,t,i){return function(n,r){var a="function"==typeof e?{matches:e}:this,s=t.bubble;function l(t){return o.matches(t,e,n,i,a)}return s?o(n,s(l),r):o(n,t,(function(e){var t=l(e.target);if(t)return e.selectorTarget=t,r.call(t,e)}))}};var c=[].slice,d=o.emit=function(e,t,i){var n=c.call(arguments,2),o="on"+t;if("parentNode"in e){var r=n[0]={};for(var a in i)r[a]=i[a];r.preventDefault=s,r.stopPropagation=l,r.target=e,r.type=t,i=r}do{e[o]&&e[o].apply(e,n)}while(i&&i.bubbles&&(e=e.parentNode));return i&&i.cancelable&&i},u=i("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!i("event-stopimmediatepropagation"))var h=function(){this.immediatelyStopped=!0,this.modified=!0},p=function(e){return function(t){if(!t.immediatelyStopped)return t.stopImmediatePropagation=h,e.apply(this,arguments)}};if(i("dom-addeventlistener"))o.emit=function(e,t,i){if(e.dispatchEvent&&document.createEvent){var n=e.ownerDocument||document,r=n.createEvent("HTMLEvents");for(var a in r.initEvent(t,!!i.bubbles,!!i.cancelable),i)a in r||(r[a]=i[a]);return e.dispatchEvent(r)&&r}return d.apply(o,arguments)};else{o._fixEvent=function(e,t){e||(e=(t&&(t.ownerDocument||t.document||t).parentWindow||window).event);if(!e)return e;try{f&&e.type==f.type&&e.srcElement==f.target&&(e=f)}catch(e){}if(!e.target)switch(e.target=e.srcElement,e.currentTarget=t||e.srcElement,"mouseover"==e.type&&(e.relatedTarget=e.fromElement),"mouseout"==e.type&&(e.relatedTarget=e.toElement),e.stopPropagation||(e.stopPropagation=v,e.preventDefault=b),e.type){case"keypress":var i="charCode"in e?e.charCode:e.keyCode;10==i?(i=0,e.keyCode=13):13==i||27==i?i=0:3==i&&(i=99),e.charCode=i,_(e)}return e};var f,g=function(e){this.handle=e};g.prototype.remove=function(){delete _dojoIEListeners_[this.handle]};var m=function(t,n,r){if(r=function(e){return function(t){t=o._fixEvent(t,this);var i=e.call(this,t);return t.modified&&(f||setTimeout((function(){f=null})),f=t),i}}(r),((t.ownerDocument?t.ownerDocument.parentWindow:t.parentWindow||t.window||window)!=top||i("jscript")<5.8)&&!i("config-_allow_leaks")){"undefined"==typeof _dojoIEListeners_&&(_dojoIEListeners_=[]);var a,s=t[n];if(!s||!s.listeners){var l=s;(s=Function("event","var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}")).listeners=[],t[n]=s,s.global=this,l&&s.listeners.push(_dojoIEListeners_.push(l)-1)}return s.listeners.push(a=s.global._dojoIEListeners_.push(r)-1),new g(a)}return e.after(t,n,r,!0)},_=function(e){e.keyChar=e.charCode?String.fromCharCode(e.charCode):"",e.charOrCode=e.keyChar||e.keyCode},v=function(){this.cancelBubble=!0},b=o._preventDefault=function(){if(this.bubbledKeyCode=this.keyCode,this.ctrlKey)try{this.keyCode=0}catch(e){}this.defaultPrevented=!0,this.returnValue=!1,this.modified=!0}}if(i("touch"))var y=function(){},C=window.orientation,T=function(e){return function(t){var n=t.corrected;if(!n){var o=t.type;try{delete t.type}catch(e){}if(t.type){if(i("touch-can-modify-event-delegate"))y.prototype=t,n=new y;else for(var r in n={},t)n[r]=t[r];n.preventDefault=function(){t.preventDefault()},n.stopPropagation=function(){t.stopPropagation()}}else(n=t).type=o;if(t.corrected=n,"resize"==o)return C==window.orientation?null:(C=window.orientation,n.type="orientationchange",e.call(this,n));"rotation"in n||(n.rotation=0,n.scale=1);var a=n.changedTouches[0];for(var s in a)delete n[s],n[s]=a[s]}return e.call(this,n)}};return o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1083)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";function e(e){return function(t,i,n,o,r){var a,s=t[i];if(!s&&t!==window)throw new Error("aspect target method: "+i+" does not exist");s&&s.target==t||(t[i]=a=function(){for(var e=a.nextId,t=arguments,i=a.before;i;)i.advice&&(t=i.advice.apply(this,t)||t),i=i.next;if(a.around)var n=a.around.advice(this,t);for(var o=a.after;o;){if(o.advice&&o.id<e)if(o.receiveArguments){var r=o.advice.apply(this,t);n=void 0===r?n:r}else n=o.advice.call(this,n,t);o=o.next}return n},s&&(a.around={advice:function(e,t){return s.apply(e,t)}}),a.target=t,a.nextId=a.nextId||0);var l=function(e,t,i,n,o){var r,a,s=e[t],l="around"==t;if(o=void 0===o?0:o,l){var c=i((function(){return s.advice(this,arguments)}));r={remove:function(){c&&(c=e=i=null)},advice:function(e,t){return c?c.apply(e,t):s.advice(e,t)}}}else r={remove:function(){if(r.advice){var n=r.previous,o=r.next;o||n?(n?n.next=o:e[t]=o,o&&(o.previous=n)):delete e[t],e=i=r.advice=null}},id:e.nextId++,advice:i,receiveArguments:n,priority:o};if(s&&!l)if("after"==t)if(o<(void 0!==s.priority?s.priority:1/0))e[t]=r,r.next=s,s.previous=r;else{for(;s.next&&(void 0!==s.next.priority?s.next.priority:1/0)<=o&&(s=s.next););a=s.next,s.next=r,r.previous=s,r.next=a,a&&(a.previous=r)}else"before"==t&&(e[t]=r,r.next=s,s.previous=r);else e[t]=r;return r}(a||s,e,n,o,r);return n=null,l}}var t=e("after");return{before:e("before"),around:e("around"),after:t,priority:{INFRASTRUCTURE:-1e3,DEFAULT:0,EXTERNAL:1/0}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1697),i(2757),i(2758),i(1268)],o=i.dj.d(n,(function(e,t,i,n){const o=i.create(100),r=4,a=3,s=3,l=3,c=3,d=3,u=3,h=3,p=3,f=2,g=1,m=0,_=0;let v={},b=0,y=t.DEBUG,C=e.DEVELOPMENT,T=[],E={};class S{constructor(i){null==E[i]?(n.makeReadOnlyProperty(this,"name",i),E[this.name]=this,this._timers={},this._threshold=t.DEBUG,this._showTimestamp=!0,n.makeReadOnlyProperty(this,"modes",e),n.makeReadOnlyProperty(this,"levels",t)):E.DEFAULT.error("a logger with the name '"+i+"' already exists - change the name to prevent interference")}static _sanitizeLevel(e){return"number"==typeof e?e:t.DEBUG}static _sanitizeMode(t){return n.objectValues(e).indexOf(t)>-1?t:e.development}get threshold(){return this._threshold}set threshold(e){this._threshold=S._sanitizeLevel(e)}get showTimestamp(){return this._showTimestamp}set showTimestamp(e){this._showTimestamp=!!e}get globalThreshold(){return y}set globalThreshold(e){y=S._sanitizeLevel(e)}get mode(){return C}set mode(e){C=S._sanitizeMode(e)}_shouldLog(e){return y>e&&this._threshold>e}_nameAndTime(){let e=[];return"DEFAULT"!==this.name&&e.push(this.name),this._showTimestamp&&e.push(n.currentTimeString()),e}table(e){if(this._shouldLog(l)){const t={namespace:this.name,type:"table",message:[e],time:new Date};o.add(t),n.printToConsole("log",this._nameAndTime(),C),n.printToConsole("table",[e],C),n.execCallbacks(v,t)}}trace(){if(this._shouldLog(c)){const e={namespace:this.name,type:"trace",message:null,time:new Date};let t=(new Error).stack.split("\n");for("Error"===t[0]&&t.shift();t[0].includes("Log.js")||t[0].includes("logger.trace")||"trace"===t[0];)t.shift();t=t.join("\n"),e.message=[t],o.add(e),n.printToConsole("log",this._nameAndTime(),C),n.printToConsole("trace",[],C),n.execCallbacks(v,e)}}time(e){this._shouldLog(d)&&(null==this._timers[e]?this._timers[e]=(new Date).getTime():this.warn('timer "'+e+'" already exists.'))}timeEnd(e){if(this._shouldLog(u)){const t={namespace:this.name,type:"timeEnd",message:null,time:new Date};if(null!=this._timers[e]){const i=(new Date).getTime()-this._timers[e];t.message=[e+": "+i+"ms - timer ended"],o.add(t),n.printToConsole("log",this._nameAndTime().concat(t.message),C),n.execCallbacks(v,t),this._timers[e]=null}else this.warn('timer "'+e+"\" doesn't exist.")}}_group(e,t){if(this._shouldLog(h)){const i=t?"groupCollapsed":"group",r={namespace:this.name,type:i,message:[e],time:new Date};T.push(e),o.add(r),n.printToConsole(i,[e],C),n.execCallbacks(v,r)}}groupCollapsed(e){this._group(e,!0)}group(e){this._group(e,!1)}groupEnd(){if(this._shouldLog(p)){const e=T.pop(),t={namespace:this.name,type:"groupEnd",message:[e],time:new Date};o.add(t),n.printToConsole("groupEnd",[],C),n.execCallbacks(v,t)}}assert(e,t){if(this._shouldLog(m)&&!e){const e={namespace:this.name,type:"assert",message:["Assertion failed:",t],time:new Date};o.add(e),e.message.shift();let i=[!1].concat(this._nameAndTime().concat(e.message));n.printToConsole("assert",i,C),n.execCallbacks(v,e)}}_basicLogMethod(e,t,i){if(this._shouldLog(t)){const t={namespace:this.name,type:e,message:i,time:new Date};i=this._nameAndTime().concat(i),o.add(t),n.printToConsole(e,i,C),n.execCallbacks(v,t)}}debug(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("debug",r,t)}log(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("log",a,t)}dir(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("dir",s,t)}info(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("info",f,t)}warn(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("warn",g,t)}error(e){const t=Array.prototype.slice.call(arguments);this._basicLogMethod("error",_,t)}addCallback(e,t){v[b]=e,t&&o.applyCallback(e);let i={};const n=b;return i.remove=()=>{delete v[n]},b++,i}createLogger(e){const t=new S(e);return t.name?t:E[e]}}return new S("DEFAULT")}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(224),i(227)],o=i.dj.d(n,(function(e,t,i){var n,o="className",r=/\s+/,a=[""];function s(e){if("string"==typeof e||e instanceof String){if(e&&!r.test(e))return a[0]=e,a;var i=e.split(r);return i.length&&!i[0]&&i.shift(),i.length&&!i[i.length-1]&&i.pop(),i}return e?t.filter(e,(function(e){return e})):[]}var l={};return n={contains:function(e,t){return(" "+i.byId(e)[o]+" ").indexOf(" "+t+" ")>=0},add:function(e,t){e=i.byId(e),t=s(t);var n,r=e[o];n=(r=r?" "+r+" ":" ").length;for(var a,l=0,c=t.length;l<c;++l)(a=t[l])&&r.indexOf(" "+a+" ")<0&&(r+=a+" ");n<r.length&&(e[o]=r.substr(1,r.length-2))},remove:function(t,n){var r;if(t=i.byId(t),void 0!==n){n=s(n),r=" "+t[o]+" ";for(var a=0,l=n.length;a<l;++a)r=r.replace(" "+n[a]+" "," ");r=e.trim(r)}else r="";t[o]!=r&&(t[o]=r)},replace:function(e,t,r){e=i.byId(e),l[o]=e[o],n.remove(l,r),n.add(l,t),e[o]!==l[o]&&(e[o]=l[o])},toggle:function(e,t,o){if(e=i.byId(e),void 0===o)for(var r,a=0,l=(t=s(t)).length;a<l;++a)r=t[a],n[n.contains(e,r)?"remove":"add"](e,r);else n[o?"add":"remove"](e,t);return o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(240),i(245),i(242),i(227),i(228)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},l=/<\s*([\w\:]+)/,c={},d=0,u="__"+t._scopeName+"ToDomId";for(var h in s)if(s.hasOwnProperty(h)){var p=s[h];p.pre="option"==h?'<select multiple="multiple">':"<"+p.join("><")+">",p.post="</"+p.reverse().join("></")+">"}function f(e,t){var i=t.parentNode;i&&i.insertBefore(e,t)}i("ie")<=8&&(a=function(e){e.__dojo_html5_tested="yes";var t=g("div",{innerHTML:"<nav>a</nav>",style:{visibility:"hidden"}},e.body);1!==t.childNodes.length&&"abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video".replace(/\b\w+\b/g,(function(t){e.createElement(t)})),_(t)}),e.toDom=function(e,t){var o=(t=t||n.doc)[u];o||(t[u]=o=++d+"",c[o]=t.createElement("div")),i("ie")<=8&&!t.__dojo_html5_tested&&t.body&&a(t);var r,h,p,f,g=(e+="").match(l),m=g?g[1].toLowerCase():"",_=c[o];if(g&&s[m])for(r=s[m],_.innerHTML=r.pre+e+r.post,h=r.length;h;--h)_=_.firstChild;else _.innerHTML=e;if(1==_.childNodes.length)return _.removeChild(_.firstChild);for(f=t.createDocumentFragment();p=_.firstChild;)f.appendChild(p);return f},e.place=function(t,i,n){if(i=o.byId(i),"string"==typeof t&&(t=/^\s*</.test(t)?e.toDom(t,i.ownerDocument):o.byId(t)),"number"==typeof n){var r=i.childNodes;!r.length||r.length<=n?i.appendChild(t):f(t,r[n<0?0:n])}else switch(n){case"before":f(t,i);break;case"after":!function(e,t){var i=t.parentNode;i&&(i.lastChild==t?i.appendChild(e):i.insertBefore(e,t.nextSibling))}(t,i);break;case"replace":i.parentNode.replaceChild(t,i);break;case"only":e.empty(i),i.appendChild(t);break;case"first":if(i.firstChild){f(t,i.firstChild);break}default:i.appendChild(t)}return t};var g=e.create=function(t,i,a,s){var l=n.doc;return a&&(l=(a=o.byId(a)).ownerDocument),"string"==typeof t&&(t=l.createElement(t)),i&&r.set(t,i),a&&e.place(t,a,s),t};function m(e){if("innerHTML"in e)try{return void(e.innerHTML="")}catch(e){}for(var t;t=e.lastChild;)e.removeChild(t)}e.empty=function(e){m(o.byId(e))};var _=e.destroy=function(e){(e=o.byId(e))&&function(e,t){e.firstChild&&m(e),t&&(i("ie")&&t.canHaveChildren&&"removeNode"in e?e.removeNode(!1):t.removeChild(e))}(e,e.parentNode)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(204),i(1032),i(864),i(485)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";var r="This deferred has already been fulfilled.",a=Object.freeze||function(){},s=function(t,i,n,o,r){e("config-deferredInstrumentation")&&2===i&&u.instrumentRejected&&0===t.length&&u.instrumentRejected(n,!1,o,r);for(var a=0;a<t.length;a++)l(t[a],i,n,o)},l=function(t,i,n,o){var r=t[i],a=t.deferred;if(r)try{var s=r(n);if(0===i)void 0!==s&&d(a,i,s);else{if(s&&"function"==typeof s.then)return t.cancel=s.cancel,void s.then(c(a,1),c(a,2),c(a,0));d(a,1,s)}}catch(e){d(a,2,e)}else d(a,i,n);e("config-deferredInstrumentation")&&2===i&&u.instrumentRejected&&u.instrumentRejected(n,!!r,o,a.promise)},c=function(e,t){return function(i){d(e,t,i)}},d=function(e,t,i){if(!e.isCanceled())switch(t){case 0:e.progress(i);break;case 1:e.resolve(i);break;case 2:e.reject(i)}},u=function(t){var o,c,d,h=this.promise=new n,p=this,f=!1,g=[];e("config-deferredInstrumentation")&&Error.captureStackTrace&&(Error.captureStackTrace(p,u),Error.captureStackTrace(h,u)),this.isResolved=h.isResolved=function(){return 1===o},this.isRejected=h.isRejected=function(){return 2===o},this.isFulfilled=h.isFulfilled=function(){return!!o},this.isCanceled=h.isCanceled=function(){return f},this.progress=function(e,t){if(o){if(!0===t)throw new Error(r);return h}return s(g,0,e,null,p),h},this.resolve=function(e,t){if(o){if(!0===t)throw new Error(r);return h}return s(g,o=1,c=e,null,p),g=null,h};var m=this.reject=function(t,i){if(o){if(!0===i)throw new Error(r);return h}return e("config-deferredInstrumentation")&&Error.captureStackTrace&&Error.captureStackTrace(d={},m),s(g,o=2,c=t,d,p),g=null,h};this.then=h.then=function(e,t,i){var n=[i,e,t];return n.cancel=h.cancel,n.deferred=new u((function(e){return n.cancel&&n.cancel(e)})),o&&!g?l(n,o,c,d):g.push(n),n.deferred.promise},this.cancel=h.cancel=function(e,n){if(o){if(!0===n)throw new Error(r)}else{if(t){var a=t(e);e=void 0===a?e:a}if(f=!0,!o)return void 0===e&&(e=new i),m(e),e;if(2===o&&c===e)return e}},a(h)};return u.prototype.toString=function(){return"[object Deferred]"},o&&o(u),u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(245),i(227),i(242)],o=i.dj.d(n,(function(e,t,i){var n,o,r={};n=e("webkit")?function(e){var t;if(1==e.nodeType){var i=e.ownerDocument.defaultView;!(t=i.getComputedStyle(e,null))&&e.style&&(e.style.display="",t=i.getComputedStyle(e,null))}return t||{}}:e("ie")&&(e("ie")<9||e("quirks"))?function(e){return 1==e.nodeType&&e.currentStyle?e.currentStyle:{}}:function(e){if(1===e.nodeType){var t=e.ownerDocument.defaultView;return(t.opener?t:i.global.window).getComputedStyle(e,null)||{}}return{}},r.getComputedStyle=n,o=e("ie")?function(e,t){if(!t)return 0;if("medium"==t)return 4;if(t.slice&&"px"==t.slice(-2))return parseFloat(t);var i=e.style,n=e.runtimeStyle,o=e.currentStyle,r=i.left,a=n.left;n.left=o.left;try{i.left=t,t=i.pixelLeft}catch(e){t=0}return i.left=r,n.left=a,t}:function(e,t){return parseFloat(t)||0},r.toPixelValue=o;var a="DXImageTransform.Microsoft.Alpha",s=function(e,t){try{return e.filters.item(a)}catch(e){return t?{}:null}},l=e("ie")<9||e("ie")<10&&e("quirks")?function(e){try{return s(e).Opacity/100}catch(e){return 1}}:function(e){return n(e).opacity},c=e("ie")<9||e("ie")<10&&e("quirks")?function(e,t){""===t&&(t=1);var i=100*t;if(1===t?(e.style.zoom="",s(e)&&(e.style.filter=e.style.filter.replace(new RegExp("\\s*progid:"+a+"\\([^\\)]+?\\)","i"),""))):(e.style.zoom=1,s(e)?s(e,1).Opacity=i:e.style.filter+=" progid:"+a+"(Opacity="+i+")",s(e,1).Enabled=!0),"tr"==e.tagName.toLowerCase())for(var n=e.firstChild;n;n=n.nextSibling)"td"==n.tagName.toLowerCase()&&c(n,t);return t}:function(e,t){return e.style.opacity=t},d={left:!0,top:!0},u=/margin|padding|width|height|max|min|offset/;function h(e,t,i){if(t=t.toLowerCase(),"auto"==i){if("height"==t)return e.offsetHeight;if("width"==t)return e.offsetWidth}if("fontweight"==t)switch(i){case 700:return"bold";case 400:default:return"normal"}return t in d||(d[t]=u.test(t)),d[t]?o(e,i):i}var p={cssFloat:1,styleFloat:1,float:1};return r.get=function(e,i){var n=t.byId(e),o=arguments.length,a="opacity"==i;if(2==o&&a)return l(n);i=p[i]?"cssFloat"in n.style?"cssFloat":"styleFloat":i;var s=r.getComputedStyle(n);return 1==o?s:h(n,i,s[i]||n.style[i])},r.set=function(e,i,n){var o=t.byId(e),a=arguments.length,s="opacity"==i;if(i=p[i]?"cssFloat"in o.style?"cssFloat":"styleFloat":i,3==a)return s?c(o,n):o.style[i]=n;for(var l in i)r.set(e,l,i[l]);return r.getComputedStyle(o)},r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";function e(e){return function(t,i,n,o){var r,a=t[i];a&&a.target==t||(t[i]=r=function(){for(var e=r.nextId,t=arguments,i=r.before;i;)i.advice&&(t=i.advice.apply(this,t)||t),i=i.next;if(r.around)var n=r.around.advice(this,t);for(var o=r.after;o&&o.id<e;){if(o.advice)if(o.receiveArguments){var a=o.advice.apply(this,t);n=void 0===a?n:a}else n=o.advice.call(this,n,t);o=o.next}return n},a&&(r.around={advice:function(e,t){return a.apply(e,t)}}),r.target=t,r.nextId=r.nextId||0);var s=function(e,t,i,n){var o,r=e[t],a="around"==t;if(a){var s=i((function(){return r.advice(this,arguments)}));o={remove:function(){s&&(s=e=i=null)},advice:function(e,t){return s?s.apply(e,t):r.advice(e,t)}}}else o={remove:function(){if(o.advice){var n=o.previous,r=o.next;r||n?(n?n.next=r:e[t]=r,r&&(r.previous=n)):delete e[t],e=i=o.advice=null}},id:e.nextId++,advice:i,receiveArguments:n};if(r&&!a)if("after"==t){for(;r.next&&(r=r.next););r.next=o,o.previous=r}else"before"==t&&(e[t]=o,o.next=r,r.previous=o);else e[t]=o;return o}(r||a,e,n,o);return n=null,s}}var t=e("after");return{before:e("before"),around:e("around"),after:t}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i(224),i(214),i(420),i(302),i(203),i(227),i(228),i(210),i(211),i(217),i(213),i(221),i(240),i(204),i(206),i(385),i(384),i(256),i(242),i(230),i.dj.h("dojo-bidi?2778"),i(231)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){h.add("dijit-legacy-requires",!p.isAsync),h.add("dojo-bidi",!1),h("dijit-legacy-requires")&&m(0,(function(){e(["dijit/_base/manager"])}));var E={};function S(e){var t={};for(var i in e)t[i.toLowerCase()]=!0;return t}function w(e){return function(t){s[t?"set":"remove"](this.domNode,e,t),this._set(e,t)}}var I=r("dijit._WidgetBase",[_,y],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:w("lang"),dir:"",_setDirAttr:w("dir"),class:"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(e){this._set("ownerDocument",e)},attributeMap:{},_blankGif:n.blankGif||e.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var e=this.constructor;if(!e._setterAttrs){var t=e.prototype,i=e._setterAttrs=[],n=e._onMap={};for(var o in t.attributeMap)i.push(o);for(o in t)/^on/.test(o)&&(n[o.substring(2).toLowerCase()]=o),/^_set[A-Z](.*)Attr$/.test(o)&&(o=o.charAt(4).toLowerCase()+o.substr(5,o.length-9),t.attributeMap&&o in t.attributeMap||i.push(o))}},postscript:function(e,t){this.create(e,t)},create:function(e,t){var i;if(this._introspect(),this.srcNodeRef=a.byId(t),this._connects=[],this._supportingWidgets=[],this.srcNodeRef&&this.srcNodeRef.id&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id),e&&(this.params=e,f.mixin(this,e)),this.postMixInProperties(),this.id||(this.id=T.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id),this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document),this.ownerDocumentBody=b.body(this.ownerDocument),T.add(this),this.buildRendering(),this.domNode){this._applyAttributes();var n=this.srcNodeRef;n&&n.parentNode&&this.domNode!==n&&(n.parentNode.replaceChild(this.domNode,n),i=!0),this.domNode.setAttribute("widgetId",this.id)}this.postCreate(),i&&delete this.srcNodeRef,this._created=!0},_applyAttributes:function(){var e={};for(var i in this.params||{})e[i]=this._get(i);for(i in t.forEach(this.constructor._setterAttrs,(function(t){if(!(t in e)){var i=this._get(t);i&&this.set(t,i)}}),this),e)this.set(i,e[i])},postMixInProperties:function(){},buildRendering:function(){if(this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div")),this.baseClass){var e=this.baseClass.split(" ");this.isLeftToRight()||(e=e.concat(t.map(e,(function(e){return e+"Rtl"})))),l.add(this.domNode,e)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,t.forEach(this.getChildren(),(function(e){e._started||e._destroyed||!f.isFunction(e.startup)||(e.startup(),e._started=!0)})))},destroyRecursive:function(e){this._beingDestroyed=!0,this.destroyDescendants(e),this.destroy(e)},destroy:function(e){function i(t){t.destroyRecursive?t.destroyRecursive(e):t.destroy&&t.destroy(e)}this._beingDestroyed=!0,this.uninitialize(),t.forEach(this._connects,f.hitch(this,"disconnect")),t.forEach(this._supportingWidgets,i),this.domNode&&t.forEach(T.findWidgets(this.domNode,this.containerNode),i),this.destroyRendering(e),T.remove(this.id),this._destroyed=!0},destroyRendering:function(e){this.bgIframe&&(this.bgIframe.destroy(e),delete this.bgIframe),this.domNode&&(e?s.remove(this.domNode,"widgetId"):c.destroy(this.domNode),delete this.domNode),this.srcNodeRef&&(e||c.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(e){t.forEach(this.getChildren(),(function(t){t.destroyRecursive&&t.destroyRecursive(e)}))},uninitialize:function(){return!1},_setStyleAttr:function(e){var t=this.domNode;f.isObject(e)?u.set(t,e):t.style.cssText?t.style.cssText+="; "+e:t.style.cssText=e,this._set("style",e)},_attrToDom:function(e,i,n){n=arguments.length>=3?n:this.attributeMap[e],t.forEach(f.isArray(n)?n:[n],(function(t){var n=this[t.node||t||"domNode"];switch(t.type||"attribute"){case"attribute":f.isFunction(i)&&(i=f.hitch(this,i));var o=t.attribute?t.attribute:/^on[A-Z][a-zA-Z]*$/.test(e)?e.toLowerCase():e;n.tagName?s.set(n,o,i):n.set(o,i);break;case"innerText":n.innerHTML="",n.appendChild(this.ownerDocument.createTextNode(i));break;case"textContent":n.textContent=i;break;case"innerHTML":n.innerHTML=i;break;case"class":l.replace(n,i,this[e]);break;case"toggleClass":l.toggle(n,t.className||e,i)}}),this)},get:function(e){var t=this._getAttrNames(e);return this[t.g]?this[t.g]():this._get(e)},set:function(e,t){if("object"==typeof e){for(var i in e)this.set(i,e[i]);return this}var n=this._getAttrNames(e),o=this[n.s];if(f.isFunction(o))var r=o.apply(this,Array.prototype.slice.call(arguments,1));else{var a=this.focusNode&&!f.isFunction(this.focusNode)?"focusNode":"domNode",s=this[a]&&this[a].tagName,l=s&&(E[s]||(E[s]=S(this[a]))),c=e in this.attributeMap?this.attributeMap[e]:n.s in this?this[n.s]:l&&n.l in l&&"function"!=typeof t||/^aria-|^data-|^role$/.test(e)?a:null;null!=c&&this._attrToDom(e,t,c),this._set(e,t)}return r||this},_attrPairNames:{},_getAttrNames:function(e){var t=this._attrPairNames;if(t[e])return t[e];var i=e.replace(/^[a-z]|-[a-zA-Z]/g,(function(e){return e.charAt(e.length-1).toUpperCase()}));return t[e]={n:e+"Node",s:"_set"+i+"Attr",g:"_get"+i+"Attr",l:i.toLowerCase()}},_set:function(e,t){var i,n,o=this[e];this[e]=t,!this._created||((i=o)===(n=t)||i!=i&&n!=n)||(this._watchCallbacks&&this._watchCallbacks(e,o,t),this.emit("attrmodified-"+e,{detail:{prevValue:o,newValue:t}}))},_get:function(e){return this[e]},emit:function(e,t,i){void 0===(t=t||{}).bubbles&&(t.bubbles=!0),void 0===t.cancelable&&(t.cancelable=!0),t.detail||(t.detail={}),t.detail.widget=this;var n,o=this["on"+e];return o&&(n=o.apply(this,i||[t])),this._started&&!this._beingDestroyed&&g.emit(this.domNode,e.toLowerCase(),t),n},on:function(e,t){var n=this._onMap(e);return n?i.after(this,n,t,!0):this.own(g(this.domNode,e,t))[0]},_onMap:function(e){var t=this.constructor,i=t._onMap;if(!i)for(var n in i=t._onMap={},t.prototype)/^on/.test(n)&&(i[n.replace(/^on/,"").toLowerCase()]=n);return i["string"==typeof e&&e.toLowerCase()]},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getChildren:function(){return this.containerNode?T.findWidgets(this.containerNode):[]},getParent:function(){return T.getEnclosingWidget(this.domNode.parentNode)},connect:function(e,t,i){return this.own(o.connect(e,t,this,i))[0]},disconnect:function(e){e.remove()},subscribe:function(e,t){return this.own(v.subscribe(e,f.hitch(this,t)))[0]},unsubscribe:function(e){e.remove()},isLeftToRight:function(){return this.dir?"ltr"==this.dir.toLowerCase():d.isBodyLtr(this.ownerDocument)},isFocusable:function(){return this.focus&&"none"!=u.get(this.domNode,"display")},placeAt:function(e,t){var i=!e.tagName&&T.byId(e);if(!i||!i.addChild||t&&"number"!=typeof t){var n=i&&"domNode"in i?i.containerNode&&!/after|before|replace/.test(t||"")?i.containerNode:i.domNode:a.byId(e,this.ownerDocument);c.place(this.domNode,n,t),!this._started&&(this.getParent()||{})._started&&this.startup()}else i.addChild(this,t);return this},defer:function(e,t){var i=setTimeout(f.hitch(this,(function(){i&&(i=null,this._destroyed||f.hitch(this,e)())})),t||0);return{remove:function(){return i&&(clearTimeout(i),i=null),null}}}});return h("dojo-bidi")&&I.extend(C),I}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2842),i(203),i(211),i(204),i(206),i(245),i(236),i(2844)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=t("dijit._TemplatedMixin",s,{templateString:null,templatePath:null,_skipNodeCache:!1,searchContainerNode:!0,_stringRepl:function(e){var t=this.declaredClass,i=this;return a.substitute(e,this,(function(e,o){if("!"==o.charAt(0)&&(e=n.getObject(o.substr(1),!1,i)),void 0===e)throw new Error(t+" template:"+o);return null==e?"":"!"==o.charAt(0)?e:this._escapeValue(""+e)}),this)},_escapeValue:function(e){return e.replace(/["'<>&]/g,(function(e){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}[e]}))},buildRendering:function(){if(!this._rendered){this.templateString||(this.templateString=e(this.templatePath,{sanitize:!0}));var t,o=l.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);if(n.isString(o)){if(1!=(t=i.toDom(this._stringRepl(o),this.ownerDocument)).nodeType)throw new Error("Invalid template: "+o)}else t=o.cloneNode(!0);this.domNode=t}this.inherited(arguments),this._rendered||this._fillContent(this.srcNodeRef),this._rendered=!0},_fillContent:function(e){var t=this.containerNode;if(e&&t)for(;e.hasChildNodes();)t.appendChild(e.firstChild)}});return l._templateCache={},l.getCachedTemplate=function(e,t,n){var o=l._templateCache,r=e,s=o[r];if(s){try{if(!s.ownerDocument||s.ownerDocument==(n||document))return s}catch(e){}i.destroy(s)}if(e=a.trim(e),t||e.match(/\$\{([^\}]+)\}/g))return o[r]=e;var c=i.toDom(e,n);if(1!=c.nodeType)throw new Error("Invalid template: "+e);return o[r]=c},r("ie")&&o(window,"unload",(function(){var e=l._templateCache;for(var t in e){var n=e[t];"object"==typeof n&&i.destroy(n),delete e[t]}})),l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(245),i(242),i(227),i(213)],o=i.dj.d(n,(function(e,t,i,n){var o={boxModel:"content-box"};e("ie")&&(o.boxModel="BackCompat"==document.compatMode?"border-box":"content-box"),o.getPadExtents=function(e,t){e=i.byId(e);var o=t||n.getComputedStyle(e),r=n.toPixelValue,a=r(e,o.paddingLeft),s=r(e,o.paddingTop),l=r(e,o.paddingRight),c=r(e,o.paddingBottom);return{l:a,t:s,r:l,b:c,w:a+l,h:s+c}};var r="none";function a(e,t,i,n,o,r){r=r||"px";var a=e.style;isNaN(t)||(a.left=t+r),isNaN(i)||(a.top=i+r),n>=0&&(a.width=n+r),o>=0&&(a.height=o+r)}function s(e){return"button"==e.tagName.toLowerCase()||"input"==e.tagName.toLowerCase()&&"button"==(e.getAttribute("type")||"").toLowerCase()}function l(e){return"border-box"==o.boxModel||"table"==e.tagName.toLowerCase()||s(e)}o.getBorderExtents=function(e,t){e=i.byId(e);var o=n.toPixelValue,a=t||n.getComputedStyle(e),s=a.borderLeftStyle!=r?o(e,a.borderLeftWidth):0,l=a.borderTopStyle!=r?o(e,a.borderTopWidth):0,c=a.borderRightStyle!=r?o(e,a.borderRightWidth):0,d=a.borderBottomStyle!=r?o(e,a.borderBottomWidth):0;return{l:s,t:l,r:c,b:d,w:s+c,h:l+d}},o.getPadBorderExtents=function(e,t){e=i.byId(e);var r=t||n.getComputedStyle(e),a=o.getPadExtents(e,r),s=o.getBorderExtents(e,r);return{l:a.l+s.l,t:a.t+s.t,r:a.r+s.r,b:a.b+s.b,w:a.w+s.w,h:a.h+s.h}},o.getMarginExtents=function(e,t){e=i.byId(e);var o=t||n.getComputedStyle(e),r=n.toPixelValue,a=r(e,o.marginLeft),s=r(e,o.marginTop),l=r(e,o.marginRight),c=r(e,o.marginBottom);return{l:a,t:s,r:l,b:c,w:a+l,h:s+c}},o.getMarginBox=function(t,a){t=i.byId(t);var s,l=a||n.getComputedStyle(t),c=o.getMarginExtents(t,l),d=t.offsetLeft-c.l,u=t.offsetTop-c.t,h=t.parentNode,p=n.toPixelValue;if(e("mozilla")){var f=parseFloat(l.left),g=parseFloat(l.top);isNaN(f)||isNaN(g)?h&&h.style&&"visible"!=(s=n.getComputedStyle(h)).overflow&&(d+=s.borderLeftStyle!=r?p(t,s.borderLeftWidth):0,u+=s.borderTopStyle!=r?p(t,s.borderTopWidth):0):(d=f,u=g)}else(e("opera")||8==e("ie")&&!e("quirks"))&&h&&(d-=(s=n.getComputedStyle(h)).borderLeftStyle!=r?p(t,s.borderLeftWidth):0,u-=s.borderTopStyle!=r?p(t,s.borderTopWidth):0);return{l:d,t:u,w:t.offsetWidth+c.w,h:t.offsetHeight+c.h}},o.getContentBox=function(t,r){t=i.byId(t);var a,s=r||n.getComputedStyle(t),l=t.clientWidth,c=o.getPadExtents(t,s),d=o.getBorderExtents(t,s);return l?(a=t.clientHeight,d.w=d.h=0):(l=t.offsetWidth,a=t.offsetHeight),e("opera")&&(c.l+=d.l,c.t+=d.t),{l:c.l,t:c.t,w:l-c.w-d.w,h:a-c.h-d.h}},o.setContentSize=function(e,t,n){e=i.byId(e);var r=t.w,s=t.h;if(l(e)){var c=o.getPadBorderExtents(e,n);r>=0&&(r+=c.w),s>=0&&(s+=c.h)}a(e,NaN,NaN,r,s)};var c={l:0,t:0,w:0,h:0};return o.setMarginBox=function(t,r,d){t=i.byId(t);var u=d||n.getComputedStyle(t),h=r.w,p=r.h,f=l(t)?c:o.getPadBorderExtents(t,u),g=o.getMarginExtents(t,u);if(e("webkit")&&s(t)){var m=t.style;h>=0&&!m.width&&(m.width="4px"),p>=0&&!m.height&&(m.height="4px")}h>=0&&(h=Math.max(h-f.w-g.w,0)),p>=0&&(p=Math.max(p-f.h-g.h,0)),a(t,r.l,r.t,h,p)},o.isBodyLtr=function(e){return e=e||t.doc,"ltr"==(t.body(e).dir||e.documentElement.dir||"ltr").toLowerCase()},o.docScroll=function(i){i=i||t.doc;var n=t.doc.parentWindow||t.doc.defaultView;return"pageXOffset"in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=e("quirks")?t.body(i):i.documentElement)&&{x:o.fixIeBiDiScrollLeft(n.scrollLeft||0,i),y:n.scrollTop||0}},o.getIeDocumentElementOffset=function(e){return{x:0,y:0}},o.fixIeBiDiScrollLeft=function(i,n){n=n||t.doc;var r=e("ie");if(r&&!o.isBodyLtr(n)){var a=e("quirks"),s=a?t.body(n):n.documentElement,l=t.global;return 6==r&&!a&&l.frameElement&&s.scrollHeight>s.clientHeight&&(i+=s.clientLeft),r<8||a?i+s.clientWidth-s.scrollWidth:-i}return i},o.position=function(n,r){n=i.byId(n);var a=t.body(n.ownerDocument),s=n.getBoundingClientRect();if(s={x:s.left,y:s.top,w:s.right-s.left,h:s.bottom-s.top},e("ie")<9&&(s.x-=e("quirks")?a.clientLeft+a.offsetLeft:0,s.y-=e("quirks")?a.clientTop+a.offsetTop:0),r){var l=o.docScroll(n.ownerDocument);s.x+=l.x,s.y+=l.y}return s},o.getMarginSize=function(e,t){e=i.byId(e);var r=o.getMarginExtents(e,t||n.getComputedStyle(e)),a=e.getBoundingClientRect();return{w:a.right-a.left+r.w,h:a.bottom-a.top+r.h}},o.normalizeEvent=function(t){if("layerX"in t||(t.layerX=t.offsetX,t.layerY=t.offsetY),!("pageX"in t)){var i=t.target,n=i&&i.ownerDocument||document,r=e("quirks")?n.body:n.documentElement;t.pageX=t.clientX+o.fixIeBiDiScrollLeft(r.scrollLeft||0,n),t.pageY=t.clientY+(r.scrollTop||0)}},o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i.dj.c(e.i),i(221),i(224),i(420),i(204),i(765),i(512),i.dj.m(e)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){i.add("dojo-preload-i18n-Api",1),i.add("dojo-v1x-i18n-Api",1);var c=e.i18n={},d=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,u={},h=function(t,i,n){return n=n?n.toLowerCase():e.locale,t=t.replace(/\./g,"/"),i=i.replace(/\./g,"/"),/root/i.test(n)?t+"/nls/"+i:t+"/nls/"+n+"/"+i},p=e.getL10nName=function(e,t,i){return l.id+"!"+h(e,t,i)},f=function(t,a,l){var c=d.exec(t),h=c[1]+"/",p=c[5]||c[4],f=h+p,g=c[5]&&c[4],m=g||e.locale||"",_=f+"/"+m,v=g?[m]:function(e){var t=o.extraLocale||[];return(t=r.isArray(t)?t:[t]).push(e),t}(m),T=v.length,E=function(){--T||l(r.delegate(u[_]))};if(i("dojo-preload-i18n-Api")){var S=t.split("*"),w="preload"==S[1];if(w&&(u[t]||(u[t]=1,b(S[2],s.parse(S[3]),1,a)),l(1)),w||y(t,a,l)&&!u[_])return}n.forEach(v,(function(e){var t=f+"/"+e;i("dojo-preload-i18n-Api")&&C(t),u[t]?E():function(e,t,i,n,o,a){e([t],(function(s){var l=r.clone(s.root||s.ROOT),c=function(e,t,i,n){for(var o=[i+n],r=t.split("-"),a="",s=0;s<r.length;s++)a+=(a?"-":"")+r[s],e&&!e[a]||(o.push(i+a+"/"+n),o.specificity=a);return o}(!s._v1x&&s,o,i,n);e(c,(function(){for(var e=1;e<c.length;e++)l=r.mixin(r.clone(l),arguments[e]);var i=t+"/"+o;u[i]=l,l.$locale=c.specificity,a()}))}))}(a,f,h,p,e,E)}))};if(i("dojo-preload-i18n-Api")||i("dojo-v1x-i18n-Api"))var g=c.normalizeLocale=function(t){var i=t?t.toLowerCase():e.locale;return"root"==i?"ROOT":i},m=function(e,n){return!i("dojo-sync-loader")||!i("dojo-v1x-i18n-Api")||n.isXdUrl(t.toUrl(e+".js"))},_=0,v=[],b=c._preloadLocalizations=function(i,o,a,s){function l(e,t){for(var i=e.split("-");i.length;){if(t(i.join("-")))return;i.pop()}t("ROOT")}function c(){_++}function d(){for(--_;!_&&v.length;)f.apply(null,v.shift())}function h(e,t,i,n){return n.toAbsMid(e+t+"/"+i)}function p(e){l(e=g(e),(function(p){if(n.indexOf(o,p)>=0){var f=i.replace(/\./g,"/")+"_"+p;return c(),function(e,t){m(e,s)||a?s([e],t):S([e],t,s)}(f,(function(i){for(var n in i){var o,a,f=i[n],g=n.match(/(.+)\/([^\/]+)$/);if(g&&(o=g[2],a=g[1]+"/",f._localized)){var m;if("ROOT"===p){var _=m=f._localized;delete f._localized,_.root=f,u[t.toAbsMid(n)]=_}else m=f._localized,u[h(a,o,p,t)]=f;if(p!==e){function v(i,n,o,a){var p=[],f=[];l(e,(function(e){a[e]&&(p.push(t.toAbsMid(i+e+"/"+n)),f.push(h(i,n,e,t)))})),p.length?(c(),s(p,(function(){for(var a=p.length-1;a>=0;a--)o=r.mixin(r.clone(o),arguments[a]),u[f[a]]=o;u[h(i,n,e,t)]=r.clone(o),d()}))):u[h(i,n,e,t)]=o}v(a,o,f,m)}}}d()})),!0}return!1}))}s=s||t,p(),n.forEach(e.config.extraLocale,p)},y=function(e,t,i){return _&&v.push([e,t,i]),_},C=function(){};if(i("dojo-v1x-i18n-Api")){var T={},E=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;},\t require = function(){define.called = 1;};try{define.called = 0;eval(__bundle);if(define.called==1)return __amdValue;if((__checkForLegacyModules = __checkForLegacyModules(__mid)))return __checkForLegacyModules;}catch(e){}try{return eval('('+__bundle+')');}catch(e){return e;}"),S=function(e,t,i){var o=[];n.forEach(e,(function(e){var t=i.toUrl(e+".js");function n(i){var n=E(i,C,e,T);n===T?o.push(u[t]=T.result):(n instanceof Error&&(console.error("failed to evaluate i18n bundle; url="+t,n),n={}),o.push(u[t]=/nls\/[^\/]+\/[^\/]+$/.test(t)?n:{root:n,_v1x:1}))}if(u[t])o.push(u[t]);else{var r=i.syncLoadNls(e);if(r||(r=C(e.replace(/nls\/([^\/]*)\/([^\/]*)$/,"nls/$2/$1"))),r)o.push(r);else if(a)a.get({url:t,sync:!0,load:n,error:function(){o.push(u[t]={})}});else try{i.getText(t,!0,n)}catch(e){o.push(u[t]={})}}})),t&&t.apply(null,o)};C=function(t){for(var i,n=t.split("/"),o=e.global[n[0]],r=1;o&&r<n.length-1;o=o[n[r++]]);return o&&((i=o[n[r]])||(i=o[n[r].replace(/-/g,"_")]),i&&(u[t]=i)),i},c.getLocalization=function(e,i,n){var o,r=h(e,i,n);return f(r,m(r,t)?t:function(e,i){S(e,i,t)},(function(e){o=e})),o}}return r.mixin(c,{dynamic:!0,normalize:function(e,t){return/^\./.test(e)?t(e):e},load:f,cache:u,getL10nName:p})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(214),i(206),i(2822),i(1703),i(2831),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){let s=new o,l={messageService:s,subscribe:e.hitch(s,"subscribe"),unsubscribe:e.hitch(s,"unsubscribe"),publish:e.hitch(s,"publish"),start:e.hitch(s,"start"),stop:e.hitch(s,"stop"),isRunning:e.hitch(s,"isStarted"),isStarted:e.hitch(s,"isStarted"),isConnected:e.hitch(s,"isConnected"),isFatallyDisconnected:e.hitch(s,"isFatallyDisconnected"),isDisconnected:e.hitch(s,"isDisconnected"),setLatency:e.hitch(s,"setLatency"),setErrorRate:e.hitch(s,"setErrorRate"),getTransport:e.hitch(s,"getTransport"),onConnected:function(){},onDisconnected:function(){},onReconnected:function(){},onFatallyDisconnected:function(){},onNotConnected:function(){},on:function(e,t){return i(this.messageService,e,t)},handleMessage:e.hitch(s,"handleMessage"),internalMotwDisableStart:function(){this._startFunction=this.start,this.start=function(){}},internalMotwEnableStart:function(){this._startFunction&&(this.start=this._startFunction,this._startFunction=null)}};t.after(s,"onConnected",e.hitch(l,"onConnected"),!0),t.after(s,"onDisconnected",e.hitch(l,"onDisconnected"),!0),t.after(s,"onReconnected",e.hitch(l,"onReconnected"),!0),t.after(s,"onFatallyDisconnected",e.hitch(l,"onFatallyDisconnected"),!0),t.after(s,"onNotConnected",e.hitch(l,"onNotConnected"),!0);let c=a.enableServerOnWorkerAsync;a.enableServerOnWorkerAsync=function(){c(),s.setDelegate(new n(a))};let d=a.disableServerOnWorkerAsync;return a.disableServerOnWorkerAsync=function(){d(),s.setDelegate(new r(a,s))},a.isServerOnWorkerAsyncEnabled()?a.enableServerOnWorkerAsync():a.disableServerOnWorkerAsync(),l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return function(e,t,i,n){var o,r,a;if(e.load(t,i,(function(e){r=e,a=!0,o&&o(e)}),{isBuild:!0}),a)return r;if(!n)throw new Error(t+" unavailable");return(r=new Promise((function(e){o=e}))).__DOJO_WEBPACK_DEFINE_PROMISE__=!0,r}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i.dj.m(e)],o=i.dj.d(n,(function(e,t){var i=e.has||function(){};if(!i("dojo-has-api")){var n="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location==location&&window.document==document,o=function(){return this}(),r=n&&document,a=r&&r.createElement("DiV"),s=t.config&&t.config()||{};(i=function(e){return"function"==typeof s[e]?s[e]=s[e](o,r,a):s[e]}).cache=s,i.add=function(e,t,n,o){return(void 0===s[e]||o)&&(s[e]=t),n&&i(e)},i.add("host-browser",n),i.add("host-node","object"==typeof process&&process.versions&&process.versions.node&&process.versions.v8),i.add("host-rhino","function"==typeof load&&("function"==typeof Packages||"object"==typeof Packages)),i.add("dom",n),i.add("dojo-dom-ready-api",1),i.add("dojo-sniff",1)}if(i("host-browser")){i.add("dom-addeventlistener",!!document.addEventListener),i.add("touch","ontouchstart"in document||"onpointerdown"in document&&navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints),i.add("touch-events","ontouchstart"in document),i.add("pointer-events","pointerEnabled"in window.navigator?window.navigator.pointerEnabled:"PointerEvent"in window),i.add("MSPointer",window.navigator.msPointerEnabled),i.add("device-width",screen.availWidth||innerWidth);var l=document.createElement("form");i.add("dom-attributes-explicit",0==l.attributes.length),i.add("dom-attributes-specified-flag",l.attributes.length>0&&l.attributes.length<40)}return i.clearElement=function(e){return e.innerHTML="",e},i.normalize=function(e,t){var n=e.match(/[\?:]|[^:\?]*/g),o=0,r=function(e){var t=n[o++];return":"==t?0:"?"==n[o++]?!e&&i(t)?r():(r(!0),r(e)):t||0};return(e=r())&&t(e)},i.load=function(e,t,i){e?t([e],i):i()},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(206)],o=i.dj.d(n,(function(e,t){"use strict";var i=e.after;function n(){}return n.prototype={on:function(e,n){return t.parse(this,e,n,(function(e,t){return i(e,"on"+t,n,!0)}))},emit:function(e,i){var n=[this];return n.push.apply(n,arguments),t.emit.apply(t,n)}},n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(245)],o=i.dj.d(n,(function(e,t){return e.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:t("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:t("mac")&&!t("air")?t("safari")?91:224:17}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(221),i(204)],o=i.dj.d(n,(function(e,t,i){var n={};function o(e){return n[e]=new Function("item","index","array",e)}function r(e){var t=!e;return function(i,r,a){var s,l=0,c=i&&i.length||0;if(c&&"string"==typeof i&&(i=i.split("")),"string"==typeof r&&(r=n[r]||o(r)),a){for(;l<c;++l)if(s=!r.call(a,i[l],l,i),e^s)return!s}else for(;l<c;++l)if(s=!r(i[l],l,i),e^s)return!s;return t}}function a(e){var t=1,i=0,n=0;return e||(t=i=n=-1),function(o,r,a,l){if(l&&t>0)return s.lastIndexOf(o,r,a);var c,d=o&&o.length||0,u=e?d+n:i;for(void 0===a?c=e?i:d+n:a<0?(c=d+a)<0&&(c=i):c=a>=d?d+n:a,d&&"string"==typeof o&&(o=o.split(""));c!=u;c+=t)if(o[c]==r)return c;return-1}}var s={every:r(!1),some:r(!0),indexOf:a(!0),lastIndexOf:a(!1),forEach:function(e,t,i){var r=0,a=e&&e.length||0;if(a&&"string"==typeof e&&(e=e.split("")),"string"==typeof t&&(t=n[t]||o(t)),i)for(;r<a;++r)t.call(i,e[r],r,e);else for(;r<a;++r)t(e[r],r,e)},map:function(e,t,i,r){var a=0,s=e&&e.length||0,l=new(r||Array)(s);if(s&&"string"==typeof e&&(e=e.split("")),"string"==typeof t&&(t=n[t]||o(t)),i)for(;a<s;++a)l[a]=t.call(i,e[a],a,e);else for(;a<s;++a)l[a]=t(e[a],a,e);return l},filter:function(e,t,i){var r,a=0,s=e&&e.length||0,l=[];if(s&&"string"==typeof e&&(e=e.split("")),"string"==typeof t&&(t=n[t]||o(t)),i)for(;a<s;++a)r=e[a],t.call(i,r,a,e)&&l.push(r);else for(;a<s;++a)t(r=e[a],a,e)&&l.push(r);return l},clearCache:function(){n={}}};return t("extend-dojo")&&i.mixin(e,s),s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(221),i(227),i(206),i(224),i(204),i(2777),i(44)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";t.add("array-extensible",(function(){return 1==r.delegate([],{length:1}).length&&!t("bug-for-in-skips-shadowed")}));var l=Array.prototype,c=l.slice,d=l.concat,u=o.forEach,h=function(t,i,n){return i=[0].concat(c.call(i,0)),n=n||e.global,function(e){return i[0]=e,t.apply(n,i)}},p=function(e){var i=this instanceof f&&t("array-extensible");"number"==typeof e&&(e=Array(e));var n=e&&"length"in e?e:arguments;if(i||!n.sort){for(var o=i?this:[],a=o.length=n.length,s=0;s<a;s++)o[s]=n[s];if(i)return o;n=o}return r._mixin(n,g),n._NodeListCtor=function(e){return f(e)},n},f=p,g=f.prototype=t("array-extensible")?[]:{};function m(e,t){var n=function(n,o){if("string"==typeof o&&!(o=i.byId(o)))return new t([]);var r="string"==typeof n?e(n,o):n?n.end&&n.on?n:[n]:[];return r.end&&r.on?r:new t(r)};if(n.matches=e.match||function(e,t,i){return n.filter([e],t,i).length>0},n.filter=e.filter||function(e,t,i){return n(t,i).filter((function(t){return o.indexOf(e,t)>-1}))},"function"!=typeof e){var r=e.search;e=function(e,t){return r(t||document,e)}}return n}f._wrap=g._wrap=function(e,t,i){var n=new(i||this._NodeListCtor||f)(e);return t?n._stash(t):n},f._adaptAsMap=function(e,t){return function(){return this.map(h(e,arguments,t))}},f._adaptAsForEach=function(e,t){return function(){return this.forEach(h(e,arguments,t)),this}},f._adaptAsFilter=function(e,t){return function(){return this.filter(h(e,arguments,t))}},f._adaptWithCondition=function(t,i,n){return function(){var o=arguments,r=h(t,o,n);return i.call(n||e.global,o)?this.map(r):(this.forEach(r),this)}},u(["slice","splice"],(function(e){var t=l[e];g[e]=function(){return this._wrap(t.apply(this,arguments),"slice"==e?this:null)}})),u(["indexOf","lastIndexOf","every","some"],(function(t){var i=o[t];g[t]=function(){return i.apply(e,[this].concat(c.call(arguments,0)))}})),r.extend(p,{constructor:f,_NodeListCtor:f,toString:function(){return this.join(",")},_stash:function(e){return this._parent=e,this},on:function(e,t){var i=this.map((function(i){return n(i,e,t)}));return i.remove=function(){for(var e=0;e<i.length;e++)i[e].remove()},i},end:function(){return this._parent?this._parent:new this._NodeListCtor(0)},concat:function(e){var t=c.call(this,0),i=o.map(arguments,(function(e){return c.call(e,0)}));return this._wrap(d.apply(t,i),this)},map:function(e,t){return this._wrap(o.map(this,e,t),this)},forEach:function(e,t){return u(this,e,t),this},filter:function(e){var t=arguments,i=this,n=0;if("string"==typeof e){if(i=_._filterResult(this,t[0]),1==t.length)return i._stash(this);n=1}return this._wrap(o.filter(i,t[n],t[n+1]),this)},instantiate:function(e,t){var i=r.isFunction(e)?e:r.getObject(e);return t=t||{},this.forEach((function(e){new i(t,e)}))},at:function(){var e=new this._NodeListCtor(0);return u(arguments,(function(t){t<0&&(t=this.length+t),this[t]&&e.push(this[t])}),this),e._stash(this)}});var _=m(s,p);return e.query=m(s,(function(e){return p(e)})),_.load=function(e,t,i){a.load(e,t,(function(e){i(m(e,p))}))},e._filterQueryResult=_._filterResult=function(e,t,i){return new p(_.filter(e,t,i))},e.NodeList=_.NodeList=p,_}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TOOLSTRIP_ROOT:"ToolstripRoot",QAB_ROOT:"QABRoot",POPUP_ROOT:"PopupRoot",GALLERY_ROOT:"GalleryRoot",GALLERY_POPUP_ROOT:"GalleryPopupRoot",GALLERY_PANEL_ROOT:"GalleryPanelRoot",GALLERY_FAVORITE_CATEGORY_ROOT:"GalleryFavoriteCategoryRoot",TOOLSTRIP:"Toolstrip",QAB:"QuickAccessBar",QA_GROUP:"QuickAccessGroup",TAB_GROUP:"TabGroup",TAB:"Tab",SECTION:"Section",PANEL:"Panel",COLUMN:"Column",COLOR_PICKER_BUTTON:"ColorPickerButton",GRID_PICKER_BUTTON:"GridPickerButton",PUSH_BUTTON:"PushButton",DROP_DOWN_BUTTON:"DropDownButton",SPLIT_BUTTON:"SplitButton",TOGGLE_BUTTON:"ToggleButton",POPUP_LIST:"PopupList",LIST_ITEM:"ListItem",POPUP_LIST_PANEL:"PopupListPanel",LIST_ITEM_WITH_CHECKBOX:"ListItemWithCheckBox",LIST_ITEM_WITH_TEXTFIELD:"ListItemWithTextField",LIST_ITEM_WITH_RADIO_BUTTON:"ListItemWithRadioButton",LIST_ITEM_WITH_POPUP:"ListItemWithPopup",POPUP_LIST_SEPARATOR:"PopupListSeparator",POPUP_LIST_HEADER:"PopupListHeader",COMBO_BOX:"ComboBox",LIST:"List",LABEL:"Label",EMPTY_CONTROL:"EmptyControl",TEXT_FIELD:"TextField",TEXT_AREA:"TextArea",SPINNER:"Spinner",HORIZONTAL_SLIDER:"HorizontalSlider",RADIO_BUTTON:"RadioButton",CHECK_BOX:"CheckBox",TOGGLE_SPLIT_BUTTON:"ToggleSplitButton",FOOTER:"Footer",FOOTER_CELL:"FooterCell",QAB_PUSH_BUTTON:"QABPushButton",QAB_DROP_DOWN_BUTTON:"QABDropDownButton",QAB_SPLIT_BUTTON:"QABSplitButton",QAB_TOGGLE_BUTTON:"QABToggleButton",QAB_TOGGLE_SPLIT_BUTTON:"QABToggleSplitButton",QAB_GALLERY_CATEGORY_BUTTON:"QABGalleryCategoryButton",QAB_FLOATING_PANE_DOCK:"QABFloatingPaneDock",MENUBAR_WRAPPER:"MenubarWrapper",TOOLBAR_WRAPPER:"ToolbarWrapper",GALLERY:"Gallery",GALLERY_POPUP:"GalleryPopup",GALLERY_PANEL:"GalleryPanel",GALLERY_CATEGORY:"GalleryCategory",GALLERY_FAVORITE_CATEGORY:"GalleryFavoriteCategory",GALLERY_ITEM:"GalleryItem",TOGGLE_GALLERY_ITEM:"ToggleGalleryItem"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(245),i(242)],o=i.dj.d(n,(function(e,t){if(e("ie")<=7)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(e){}var i={};e("ie")?i.byId=function(e,i){if("string"!=typeof e)return e;var n=i||t.doc,o=e&&n.getElementById(e);if(o&&(o.attributes.id.value==e||o.id==e))return o;var r=n.all[e];r&&!r.nodeName||(r=[r]);for(var a=0;o=r[a++];)if(o.attributes&&o.attributes.id&&o.attributes.id.value==e||o.id==e)return o}:i.byId=function(e,i){return("string"==typeof e?(i||t.doc).getElementById(e):e)||null},i.isDescendant=function(e,t){try{for(e=i.byId(e),t=i.byId(t);e;){if(e==t)return!0;e=e.parentNode}}catch(e){}return!1},e.add("css-user-select",(function(e,t,i){if(!i)return!1;var n=i.style,o=["Khtml","O","Moz","Webkit"],r=o.length,a="userSelect";do{if(void 0!==n[a])return a}while(r--&&(a=o[r]+"UserSelect"));return!1}));var n=e("css-user-select");return i.setSelectable=n?function(e,t){i.byId(e).style[n]=t?"":"none"}:function(e,t){var n=(e=i.byId(e)).getElementsByTagName("*"),o=n.length;if(t)for(e.removeAttribute("unselectable");o--;)n[o].removeAttribute("unselectable");else for(e.setAttribute("unselectable","on");o--;)n[o].setAttribute("unselectable","on")},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(245),i(204),i(227),i(213),i(1696)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a={innerHTML:1,textContent:1,className:1,htmlFor:t("ie"),value:1},s={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};function l(e,t){var i=e.getAttributeNode&&e.getAttributeNode(t);return!!i&&i.specified}e.has=function(e,t){var i=t.toLowerCase();return a[r.names[i]||t]||l(n.byId(e),s[i]||t)},e.get=function(e,t){e=n.byId(e);var o=t.toLowerCase(),c=r.names[o]||t,d=a[c],u=e[c];if(d&&void 0!==u)return u;if("textContent"==c)return r.get(e,c);if("href"!=c&&("boolean"==typeof u||i.isFunction(u)))return u;var h=s[o]||t;return l(e,h)?e.getAttribute(h):null},e.set=function(t,l,c){if(t=n.byId(t),2==arguments.length){for(var d in l)e.set(t,d,l[d]);return t}var u=l.toLowerCase(),h=r.names[u]||l,p=a[h];return"style"==h&&"string"!=typeof c?(o.set(t,c),t):p||"boolean"==typeof c||i.isFunction(c)?r.set(t,l,c):(t.setAttribute(s[u]||l,c),t)},e.remove=function(e,t){n.byId(e).removeAttribute(s[t.toLowerCase()]||t)},e.getNodeProp=function(e,t){e=n.byId(e);var i=t.toLowerCase(),o=r.names[i]||t;if(o in e&&"href"!=o)return e[o];var a=s[i]||t;return l(e,a)?e.getAttribute(a):null}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(242),i(1272)],o=i.dj.d(n,(function(e,t,i){return{generateUuid:function(){return"xxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).toUpperCase()},isImageData:function(e){return!!e&&(t.global.ImageData&&e instanceof t.global.ImageData||e.hasOwnProperty("width")&&e.hasOwnProperty("height")&&e.hasOwnProperty("data"))},isArray:function(e){return i.deprecated({deprecated:{module:"MW/utils/Utils",method:"isArray"},geckNumber:1444368}),Array.isArray(e)},getArrayLength:function(t){var i=0;return!!e.isArray(t)&&(t.forEach((function(e){e&&(i+=1)})),i)},isWhitespace:function(e){return/^\s+$/.test(e)},removeSurroundingNewLines:function(e){for(;"\n"===e.charAt(0);)e=e.substring(1);for(;"\n"===e.charAt(e.length-1);)e=e.substring(0,e.length-1);return e},getFirstUniqueElement:function(e,t){var i=null;return t.some((function(t){if(-1===e.indexOf(t))return i=t,!0})),i},unionOfWordSets:function(e,t,i){e=this._stringToArray(e),t=this._stringToArray(t);var n=this.unionOfArrays(e,t);return i?n.join(" "):n},intersectionOfWordSets:function(e,t,i){e=this._stringToArray(e),t=this._stringToArray(t);var n=this.intersectionOfArrays(e,t);return i?n.join(" "):n},differenceOfWordSets:function(e,t,i){e=this._stringToArray(e),t=this._stringToArray(t);var n=this.unique(this.differenceOfArrays(e,t));return i?n.join(" "):n},unionOfArrays:function(e,t){return this.unique(e.concat(t))},intersectionOfArrays:function(e,t){return this.nonunique(e.concat(t))},differenceOfArrays:function(e,t){if(void 0===window.Map)return this._legacyDifferenceOfArrays(e,t);var i,n,o=new Map,r=[];for(n=0;n<t.length;n++)o.set(t[n],null);for(n=0;n<e.length;n++)i=e[n],o.has(i)||r.push(i);return r},_legacyDifferenceOfArrays:function(e,t){return this.unique(e.filter((function(e){return-1===t.indexOf(e)})))},unique:function(e){return e.filter((function(t,i){return e.indexOf(t)===i}))},nonunique:function(e){return this.unique(e.filter((function(t,i){return e.indexOf(t)!==i})))},arrayEquals:function(e,t,i){if(e===t)return!0;if(e.length!==t.length)return!1;i||(i=function(e,t){return e===t});for(var n=0,o=e.length;n<o;n++)if(!i(e[n],t[n]))return!1;return!0},removeEmptyElements:function(e){return e.filter((function(e){return!(""===e||null==e)}))},_stringToArray:function(e){return this._isString(e)?this.removeEmptyElements(e.split(" ")):e},_isString:function(e){return"string"==typeof e||e instanceof String}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(214),i(203)],o=i.dj.d(n,(function(e,t,i){return i("dijit.Destroyable",null,{destroy:function(e){this._destroyed=!0},own:function(){var i=["destroyRecursive","destroy","remove"];return e.forEach(arguments,(function(n){var o,r=t.before(this,"destroy",(function(e){n[o](e)})),a=[];function s(){r.remove(),e.forEach(a,(function(e){e.remove()}))}n.then?(o="cancel",n.then(s,s)):e.forEach(i,(function(e){"function"==typeof n[e]&&(o||(o=e),a.push(t.after(n,e,s,!0)))}))}),this),arguments}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(242),i(31)],o=i.dj.d(n,(function(e,t,i){var n={},o={},r={length:0,add:function(e){if(o[e.id])throw new Error("Tried to register widget with id=="+e.id+" but that id is already registered");o[e.id]=e,this.length++},remove:function(e){o[e]&&(delete o[e],this.length--)},byId:function(e){return"string"==typeof e?o[e]:e},byNode:function(e){return o[e.getAttribute("widgetId")]},toArray:function(){var e=[];for(var t in o)e.push(o[t]);return e},getUniqueId:function(e){var t;do{t=e+"_"+(e in n?++n[e]:n[e]=0)}while(o[t]);return"dijit"==i._scopeName?t:i._scopeName+"_"+t},findWidgets:function(e,t){var i=[];return function e(n){for(var r=n.firstChild;r;r=r.nextSibling)if(1==r.nodeType){var a=r.getAttribute("widgetId");if(a){var s=o[a];s&&i.push(s)}else r!==t&&e(r)}}(e),i},_destroyAll:function(){i._curFocus=null,i._prevFocus=null,i._activeStack=[],e.forEach(r.findWidgets(t.body()),(function(e){e._destroyed||(e.destroyRecursive?e.destroyRecursive():e.destroy&&e.destroy())}))},getEnclosingWidget:function(e){for(;e;){var t=1==e.nodeType&&e.getAttribute("widgetId");if(t)return o[t];e=e.parentNode}return null},_hash:o};return i.registry=r,r}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(214),i(1269),i(2762),i(2763),i(2765),i(1271),i(2766),i(540),i(1273),i(2768),i(209),i(2770),i(2771)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f;return(f={reset:function(){var g=[],m=new n,_=new r({faultManager:m}),v=new o({responseManager:_});f.faultManager=m,f.responseManager=_,f.requestManager=v,f._serviceRegistryLookup=p,f._uploadIframeProxyUrlParameters=["?computeToken=","","&routingkey=",""];var b=f.proxyClient=new i;f.createUploadIframeTarget=e.hitch(b,b.createUploadIframeTarget),f.cancelUpload=e.hitch(b,b.cancelUpload),l.setIframeProxyClientForEndPoint(l.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT,b),l.setIframeProxyClientForEndPoint(l.getEndPointNames().ROUTER_LEAF_INSECURE_ENDPOINT,b),a.construct=function(e){return e=e||{},l.getRoutingHost(l.getEndPointNames().ROUTER_LEAF_INSECURE_ENDPOINT)||f.setEndpoint(),e.allowedMessages=g,e.sendMessage=f.sendMessage,e.computeSessionId=f.getComputeSessionId,new s(e)},f.registerEndpointLevelFaultHandler=e.hitch(m,m.registerEndpointLevelFaultHandler),f.sendMessage=e.hitch(v,v.sendMessage),f.sendPayload=c.sendPayload,f.registerDefaultMessageFactory=e.hitch(v,v.registerDefaultMessageFactory),f.deregisterDefaultMessageFactory=e.hitch(v,v.deregisterDefaultMessageFactory),f.registerResponseHandler=e.hitch(_,_.registerResponseHandler),f.deregisterResponseHandler=e.hitch(_,_.deregisterResponseHandler),f.registerFaultHandler=e.hitch(m,m.registerFaultHandler),f.deregisterFaultHandler=e.hitch(m,m.deregisterFaultHandler),f.registerTopLevelFaultHandler=e.hitch(m,m.registerTopLevelFaultHandler),f.deregisterTopLevelFaultHandler=e.hitch(m,m.deregisterTopLevelFaultHandler),f.setServiceEndPoint=function(e,t,i){l.setRoutingHostAndRoutingKey(e,t,i)},f.setDirectXhrCommunicationState=function(e){l._setDirectXhrCommunicationState(e)},f.setServicePathSuffixForEndPoint=function(e,t){l.setPathSuffixForEndPoint(e,t)},f.ignoreTopLevelFault=f.registerTopLevelFaultHandler,f.setComputeToken=function(e){f._uploadIframeProxyUrlParameters[1]=e.computeSessionId,v.computeToken=e},f.setWorkerEndpoint=function(e,t){f._uploadIframeProxyUrlParameters[3]=t,l.setRoutingHostAndRoutingKey(l.getEndPointNames().WORKER_ENDPOINT,e,t)},f.setEndpoint=function(e){if(!e){var t=f._serviceRegistryLookup.getServiceRegistryEndpoint("primary");t?e=t:(u.info("ServiceRegistryLookup is empty, falling back to localhost"),e="/")}if(!e||"/"===e){var i=(document.getElementsByTagName("base")[0]||{}).href;if(void 0!==i){var n=document.createElement("a");n.display="none",n.href=i,e=n.protocol+"//"+n.hostname+(n.port?":"+n.port:"")+"/"}else e=window.location.protocol+"//"+window.location.host+"/"}l.setRoutingHostAndRoutingKey(l.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT,e),l.setRoutingHostAndRoutingKey(l.getEndPointNames().ROUTER_LEAF_INSECURE_ENDPOINT,e),b.setRemotePageHost(e)},f.setAllowedMessages=function(e){g=e},f.allowAllMessages=function(){g=[]},f.getEndPoint=function(){return l.getRoutingHost(l.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT)},f.getUploadIframeProxyUrl=function(){var e=f.getWorkerRoutingHost();return"/"===e.slice(-1)&&(e=e.slice(0,-1)),e+b.getUploadIframeProxyUrlPath()+f._uploadIframeProxyUrlParameters.join("")},f.getComputeSessionId=function(){return v.computeToken?v.computeToken.computeSessionId:null},f.getWorkerRoutingHost=function(){var e=l.getRoutingHost(l.getEndPointNames().WORKER_ENDPOINT);if(e)return e;if(!(e=f._serviceRegistryLookup.getServiceRegistryEndpoint("primary"))||"/"===e){var t=(document.getElementsByTagName("base")[0]||{}).href;if(void 0!==t){var i=document.createElement("a");i.display="none",i.href=t,e=i.protocol+"//"+i.hostname+(i.port?":"+i.port:"")+"/"}else e=window.location.protocol+"//"+window.location.host+"/"}return e},f.getWorkerRoutingKey=function(){return l.getRoutingKey(l.getEndPointNames().WORKER_ENDPOINT)},f.upload=function(e,t){return(new d).upload(e,t,{endpoint:f.getWorkerRoutingHost(),uploadIframeProxyUrl:f.getUploadIframeProxyUrl()})},f.createWorkerRoutingHostUrl=function(e){return h.createWorkerRoutingHostUrl(e,{host:f.getWorkerRoutingHost(),sessionId:f.getComputeSessionId(),routingKey:f.getWorkerRoutingKey()})},f.getServiceRegistryEndpoint=function(e){return f._serviceRegistryLookup.getServiceRegistryEndpoint(e)},f.enableServerOnWorkerAsync=function(){l.enableEndPoint(l.getEndPointNames().WORKER_ASYNC_ENDPOINT)},f.disableServerOnWorkerAsync=function(){l.disableEndPoint(l.getEndPointNames().WORKER_ASYNC_ENDPOINT)},f.isServerOnWorkerAsyncEnabled=function(){return l.isEndPointEnabled(l.getEndPointNames().WORKER_ASYNC_ENDPOINT)},f.enableServerOnWorker=function(){l.enableEndPoint(l.getEndPointNames().WORKER_ENDPOINT)},f.disableServerOnWorker=function(){l.disableEndPoint(l.getEndPointNames().WORKER_ENDPOINT)},f.isWorkerEndpointEnabled=function(){return l.isEndPointEnabled(l.getEndPointNames().WORKER_ENDPOINT)},f.setWorkerOnlyMessageTypes=function(e){l.setMessageTypesToEndPoint(l.getEndPointNames().WORKER_ENDPOINT,e)},t.after(b,"onError",(function(e){e&&m.handleNonTransactionFault(e)}),!0),f.createNewEndPoint=function(e,t,i,n,o){this.getEndPointByName(e)||l.setUpNewEndPoint(e,t,i,n,o)},f.getUrlForEndPoint=function(e){return l.getRemoteUrlForEndPoint(e)},f.getEndPointByName=function(e){return l.getEndPointNames()[e]},f.getEndPointAllowsDirectXhr=function(e){return l.getEndPointAllowsDirectXhr(e)}}}).reset(),f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(486),i(209)],o=i.dj.d(n,(function(e,t,i){t.deprecated({deprecated:{module:"mw-filename-utils/FileNameUtil",method:"assertIsFile"},replacement:{module:"mw-filename-utils/FileNameUtil",method:"assertAndUpdateFile"},additionalInformation:"method will be removed in 21b"}),t.deprecated({deprecated:{module:"mw-filename-utils/FileNameUtil",method:"assertIsFileInfo"},replacement:{module:"mw-filename-utils/FileNameUtil",method:"assertAndUpdateFileInfo"},additionalInformation:"method will be removed in 21b"}),t.deprecated({deprecated:{module:"mw-filename-utils/FileNameUtil",method:"getFullyQualifiedMatlabName"},additionalInformation:"Please see PTH-2918 to track the issue"});var n,o;return{MATLAB_FILE_PATTERN:/^[a-z][a-z0-9_]*\.m$/i,USER_DIR_PATH:"users/",USERS_DIR_PATH:"/users/",USER_PUBLISHED_DIR:"Published",USER_PUBLISHED_DIR_PATH_PATTERN:"^/MATLAB Drive/Published$",USER_SHARED_DIR_PATH_PATTERN:"^/MATLAB Drive/Shared$",IN_USER_SHARED_DIR_PATTERN:"^/MATLAB Drive/Shared/*",BROWSER_TYPES:["htm","html","pdf","doc","docx","dot","dotx","rtf","docm","dotm","xls","asv","dat","exe","dll","zip"],LOAD_TYPES:["mat"],MATLAB_OPEN_TYPES:["fig","tif","png","jpg","jpeg","gif","au","bmp","mlx","xlsx"],LIVE_SCRIPT_EXTENSION:"mlx",MATLAB_CODE_FILE_EXTENSION:"m",FILENAME_PATTERN:/^[^\"\/\*:><\?\\|]+$/,MATLAB_EXTENSION_PATTERN:/\.(m|mln|mlx)$/i,SUPPORTED_EXTENSION_PATTERN:/\.(pdf|html|htm)$/i,SUPPORTED_FILENAME_PATTERN:/^[a-z][a-z0-9_]*\.(m|mln|mlx|pdf|html|htm)$/i,MATLAB_FILENAME_PATTERN:/^[a-z][a-z0-9_]*\.(m|mln|mlx)$/i,MATLAB_NAME_LENGTH:63,FILE_NAME_LENGTH:128,setPathSeparator:function(e){o=e},isMatlabFileInfo:function(e){return this._fileInfoNameMatchesRegExp(e,this.MATLAB_FILE_PATTERN)},isMatlabFileName:function(e){return this._fileNameMatchesRegExp(e,this.MATLAB_FILE_PATTERN)},isValidFileName:function(e){return this._fileNameMatchesRegExp(e,this.FILENAME_PATTERN)},checkFileInfoExtension:function(e,t){return e&&e.name&&this.checkFileNameExtension(e.name,t)},checkFileNameExtension:function(t,i){return i instanceof Array||(i=[i]),e.some(i,(function(e){return this.getFileNameExtension(t).toLocaleLowerCase()===e.toLocaleLowerCase()}),this)},constructMatlabFilePath:function(e){return"'"+this.pathFromFileInfo(e).replace(/'/g,"''")+"'"},constructUrlFromFileInfo:function(e,t){var i="/"+e.location.substring(Math.min(e.location.indexOf("/MATLAB Drive/")+"/MATLAB Drive/".length,e.location.length));return this.USER_DIR_PATH+t+i+e.name},constructPathFromUserName:function(e){return e?this.USERS_DIR_PATH+e+"/":void 0},getFileSeparator:function(e){return o||(n||(n=!0,i.warn("[mw-filename-utils]: Did not initialize pathSeparator. Trying to guess from provided location")),-1!==e.search(/^[a-z]:/i)||-1!==e.search(/.\\/i)?"\\":"/")},getFileNameNoExtension:function(e){if(!e||!("string"==typeof e))return e;var t=-1!==e.lastIndexOf(".")?e.lastIndexOf("."):e.length;return e.slice(0,t)},getFileNameExtension:function(e){if(!e||!("string"==typeof e))return e;var t=-1!==e.lastIndexOf(".")?e.lastIndexOf(".")+1:e.length;return e.substring(t,e.length)},normalizePath:function(e){var t=this.getFileSeparator(e);return e.replace(/[\/\\]*$/,t)},parseHomeFolderFromPath:function(e,t){var i=e.indexOf(t),n="";return i>0&&(n=e.substring(0,i+t.length)+this.getFileSeparator(e)),n},getPackageStartFromLocation:function(e){e=this.normalizeLocation(e);var t=this.getFileSeparator(e),i="(\\"+t+"\\+[a-zA-Z][a-zA-Z0-9_]*)+\\"+t+"$";return e.search(i)},getFullyQualifiedMatlabName:function(e){return this._convertLocationToPackage(e.location)+this.getFileNameNoExtension(e.name)},getPathForPublish:function(e,t){var i;return e.location.indexOf("+")>-1?i=this.getFullyQualifiedMatlabName(e):(i=t?e.location.replace("/MATLAB Drive/",t):e.location,i+=e.name),i},convertToPublishURLFromMATLABDriveURL:function(e,t){if(0===e.indexOf("/MATLAB Drive/"+this.USER_PUBLISHED_DIR))return e.replace("/MATLAB Drive/",t)},areFilesEqual:function(e,t){return this.pathFromFileInfo(e)===this.pathFromFileInfo(t)},convertPathToRowClass:function(e){return e.replace(/[\/\.]/g,"_")},_convertLocationToPackage:function(e){e=this.normalizeLocation(e);var t=this.getPackageStartFromLocation(e);if(t<0)return"";var i=this.getFileSeparator(e);return e.substring(t+1,e.length).replace(/\+/g,"").replace(new RegExp("\\"+i,"g"),".")},isShareable:function(e){return e.location!==this.USERS_DIR_PATH&&(!this.isUserPublishedDirectoryPath(e.path)&&(e.shareAttributes&&void 0!==e.shareAttributes.canProduceShare?e.shareAttributes.canProduceShare:e.isDirectory&&!(e.parent&&"ROOT"===e.parent.pathId)))},isUserSharedDirectoryPath:function(e){return e.match(this.USER_SHARED_DIR_PATH_PATTERN)},isInUsersSharedDirectory:function(e){return-1!==e.search(this.IN_USER_SHARED_DIR_PATTERN)},isCurrentFolderInPath:function(e,t){return-1!==t.search(e)},isUserPublishedDirectoryPath:function(e){return e.match(this.USER_PUBLISHED_DIR_PATH_PATTERN)},isVersioned:function(e){return!e.isDirectory&&this.isWritable(e)&&this.isMatlabEditorOpenType(e)},isWritable:function(e){return e&&e.filePermissions&&e.filePermissions.canWrite},isLiveScriptFile:function(e){return this.getFileNameExtension(e)===this.LIVE_SCRIPT_EXTENSION},isPlainCodeFile:function(e){return this.getFileNameExtension(e)===this.MATLAB_CODE_FILE_EXTENSION},canRename:function(e){return!!e&&((!e.parent||"ROOT"!==e.parent.pathId)&&((!e.parent||e.name!==this.USER_PUBLISHED_DIR||"ROOT"!==e.parent.parent.pathId)&&this.isWritable(e)))},canDelete:function(e){return this.canRename(e)},canDownload:function(e){return!!e&&((!e.name||"mln"!==this.getFileNameExtension(e.name).toLocaleLowerCase())&&!e.isDirectory)},_fileInfoNameMatchesRegExp:function(e,t){var i=!1;return e&&e.name&&(i=this._fileNameMatchesRegExp(e.name,t)),i},_fileNameMatchesRegExp:function(e,t){var i=!1,n=this._getCaseInsensitiveRegExp(t);return e&&"string"==typeof e&&-1!==e.search(n)&&(i=!0),i},_getCaseInsensitiveRegExp:function(e){return e instanceof RegExp?new RegExp(e.source,"i"):new RegExp(e,"i")},assertIsFile:function(e){if(!this.isFile(e))throw new Error("MW.utils.FileNameUtil: the object is not a 'File'. "+JSON.stringify(e))},isFile:function(e){return e&&e.hasOwnProperty("content")&&e.hasOwnProperty("fileInfo")&&this.isFileInfo(e.fileInfo)},assertIsFileInfo:function(e){if(!this.isFileInfo(e))throw new Error("MW.utils.FileNameUtil: the object is not a 'FileInfo'. "+JSON.stringify(e))},isFileInfo:function(e){return e&&e.hasOwnProperty("location")&&e.hasOwnProperty("name")&&e.hasOwnProperty("isDirectory")&&e.hasOwnProperty("path")},normalizeLocation:function(e){return"string"!=typeof e||0!==e.length&&e.lastIndexOf(this.getFileSeparator(e))===e.length-1||(e+=this.getFileSeparator(e)),e},createFilePath:function(e,t){return this.normalizeLocation(e)+t},folderInfoFromPath:function(e){var t=this.fileInfoFromPath(e);return t.isDirectory=!0,t},fileInfoFromPath:function(e){return{location:this.locationFromPath(e),name:this.nameFromPath(e),filePermissions:{canWrite:!0},isDirectory:!1,separator:this.getFileSeparator(e),parent:this.getParentPath(e),path:e}},pathFromFileInfo:function(e){if(e.hasOwnProperty("location")&&e.hasOwnProperty("name"))return e.location+e.name;throw new Error("MW.utils.FileNameUtil: the object does not have location or name. "+JSON.stringify(e))},locationFromPath:function(e){var t,i,n=this.getFileSeparator(e),o=e.split(n);return o[o.length-1]?(t=o[o.length-1],i=e.slice(0,e.length-t.length)):o[o.length-2]&&(t=o[o.length-2],i=e.slice(0,e.length-t.length-1)),i||e!==n||(i=""),i},getParentPath:function(e){var t=this.locationFromPath(e);return this._getPath(t)},_getPath:function(e){if(0===e.length)return e;var t=this.getFileSeparator(e);return e.charAt(e.length-1)!==t||3===e.length&&e.charAt(0).match(/[a-z]/i)&&":"===e.charAt(1)&&"\\"===e.charAt(2)||"/"===e?e:e.slice(0,e.length-1)},nameFromPath:function(e){if(""===this.locationFromPath(e))return e;var t="",i=this.getFileSeparator(e),n=(e=e.replace(i+i,i)).split(i);return n[n.length-1]?t=n[n.length-1]:n[n.length-2]&&(t=n[n.length-2]),t},createEmptyFileObject:function(e,t){return{content:"",fileInfo:this.fileInfoFromPath(this.createFilePath(e,t))}},createFileInfoObject:function(e,t,i){if(!e||"string"!=typeof e)throw new Error("MW.utils.FileNameUtil: location is invalid "+e);if(!t||"string"!=typeof e)throw new Error("MW.utils.FileNameUtil: fileName is invalid "+t);if(void 0===i)throw new Error("MW.utils.FileNameUtil: isDirectory is undefined "+i);return{location:e,name:t,path:e+t,isDirectory:i}},assertAndUpdateFile:function(e){if(!e&&!e.hasOwnProperty("content")&&!e.hasOwnProperty("fileInfo"))throw new Error("MW.utils.FileNameUtil: the object is not a valid 'File'");var t=e;return t.fileInfo=this.assertAndUpdateFileInfo(e.fileInfo),t},assertAndUpdateFileInfo:function(e){if(!e||!(e.hasOwnProperty("location")&&e.hasOwnProperty("name")||e.hasOwnProperty("path"))&&e.hasOwnProperty("isDirectory"))throw new Error("MW.utils.FileNameUtil: the object is not a valid 'FileInfo'. "+JSON.stringify(e));var t=e.name,i=e.location,n=e.path;n&&!t&&(t=this.nameFromPath(n)),n&&!i&&(i=this.locationFromPath(n)),!n&&null!=i&&t&&(n=i+t);var o=e;return o.location=i,o.name=t,o.path=n,o},remoteFile:function(e){var t=e;return this.isFile(e)&&this.isFileInfo(e.fileInfo)&&(t={content:e.content,fileInfo:this.remoteFileInfo(e.fileInfo)}),t},remoteFileInfo:function(e){var t=e;return this.isFileInfo(e)&&(t={location:e.location,name:e.name,isDirectory:e.isDirectory,path:this.pathFromFileInfo(e)}),t},extractSelectedFileName:function(e){if(!e||""===e||e.length<1)return"";var t=this.getFileSeparator(e);return e.lastIndexOf(t)<0?e:e.substring(e.lastIndexOf(t)+1,e.length)},isBrowserType:function(e){return!!this.checkFileInfoExtension(e,this.BROWSER_TYPES)},isLoadType:function(e){return!!this.checkFileInfoExtension(e,this.LOAD_TYPES)},isMatlabOpenType:function(e){return!!this.checkFileInfoExtension(e,this.MATLAB_OPEN_TYPES)},isMatlabEditorOpenType:function(e){return!(this.checkFileInfoExtension(e,this.BROWSER_TYPES)||this.checkFileInfoExtension(e,this.LOAD_TYPES)||this.checkFileInfoExtension(e,this.MATLAB_OPEN_TYPES))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(274),i(333),i(323)],o=i.dj.d(n,(function(e,t,i){return{CODE_NODE_TYPE:"code",isCodeContainer:function(t,n){if(!t)return!1;if(n)return t.isInstanceOf(i)&&"code"===t.containerType();var o=e.getClosestAncestorOfType(t,i);return!!o&&"code"===o.containerType()},isCodeLine:function(e,t,i){var n=e.getLineNode(t);return this.isCodeContainer(n,i)},extractFunctionName:function(e){var t="";e.indexOf("=")>=0&&(t=e.split("=")[1]),e.indexOf("(")>=0&&(t=t?t.split("(")[0]:e.split("(")[0]);var i,n=new RegExp("(\\s\\w+)","g");return(i=t?t.match(n):e.match(n))?i[0].trim():t},isKeywordInLineNode:function(e,t){if(!this.isCodeContainer(e,!1))return!1;var i=e.getText(),n=new RegExp("\\b("+t+")\\b"),o=null!==i.match(n),r=i.indexOf("%"),a=-1!==r&&r<i.indexOf(t);return o&&!a},isNonExecutableCodeContainer:function(t){if(!t)return!1;var n=e.getClosestAncestorOfType(t,i);return!!n&&"code"!==n.containerType()},isCodeRange:function(t,n){return e.isRangeNodeType(t,n,i)},isCodeInRange:function(t,n){return e.isNodeTypeInRange(t,n,i)},isWritableCodeInNodeRange:function(t,n){return e.siblingNodesInRangeIterator(t.rootContainer(),n.rootContainer(),(function(e){return e instanceof i&&!e.isReadOnly()}))},getCodeLineNodes:function(t){return e.getContainersOfNodeType(i,t)},getAbsoluteCodeOffsetFromPosition:function(t,i){e._assert(this.isCodeContainer(i.getNode()),"Invalid node. Node must be a code line.");var n=this.getCodeLineNodes(t),o=this.getCodeLineNumberFromPosition(t,i)-1,r=0;return n.some((function(e,t){if(t===o)return r+=i.getOffset(),!0;r+=e.getText().length,r+=1})),r},getCodeLineNumberFromPosition:function(t,i){var n,o=i.getNode();return e._assert(this.isCodeContainer(o),"Invalid node. Node must be a code line."),(n=this.getCodeLineNodes(t).indexOf(o)+1)>0?n:-1},getCodeInRange:function(e){var i=[],n=null,o=-1;return t.rangeIterator(e,function(e,t,r){var a=e.rootContainer();this.isExecutableCodeLine(a)&&(a!==n&&(o++,i[o]="",n=a),i[o]+=e.getCodeText().slice(t,r))}.bind(this)),i.join("\n")},getCodeInNodeRange:function(e,t){return this.getCodeNodesInNodeRange(e,t).map((function(e){return e.getCodeText()})).join("\n")},getCodeNodesInNodeRange:function(t,i){return e.getParagraphNodesInRange(t,i).filter((function(e){return this.isCodeContainer(e,!0)}),this)},getCodePositionsInNodeRange:function(e,t,i){return this.getCodeNodesInNodeRange(t,i).map((function(t){return e.createLinePosition(t,!1)}),this)},getMATLABStringFromCodeText:function(e){return"['"+(e=e.replace(new RegExp("'","g"),"''")).split("\n").join("' 10 '")+"']"},isExecutableCodeLine:function(e){return e instanceof i&&!this.isNonExecutableCodeContainer(e)},isCodeComment:function(e){if(!this.isCodeContainer(e,!1))return!1;var t=e.getText().split("%");return t.length>1&&""===t[0].trim()},isEmptyLine:function(e,t){return""===e.getLineText(t)},findEndOfCodePosition:function(e){var t=this.getCodeLineNodes(e);return t.length>0?t[t.length-1].rootContainer().endPosition():null},getNumberOfCodeLineNodes:function(e){var t=0;return e.children.forEach((function(e){this.isCodeContainer(e,!0)&&t++}),this),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(31),i(238),i(203),i(34),i(210),i(211),i(213),i(221),i(2276),i(217),i(209),i(1699),i(241)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=null;var f=i(n,{onSelectStart:function(e){}});function g(e,i,n){try{if(void 0!==e.selectionStart)e.selectionStart=i,e.selectionEnd=n,t.curNode!==e&&t.focus(e);else if(e.createTextRange){var o=e.createTextRange();o.collapse(!0),o.moveStart("character",i),o.moveEnd("character",n),o.select(),t.curNode!==e&&t.focus(e)}else e.setSelectionRange&&(t.curNode!==e&&t.focus(e),e.setSelectionRange(i,n))}catch(e){d.log(e)}}function m(e){g(e,0,e.value.length)}function _(){return navigator.language.toLocaleLowerCase().indexOf("en-us")>-1}function v(e){return null!=e}return{NEWLINE_CHARACTER:"↵",TAB_CHARACTER:"→",addToClassList:function(e,t){null!=e&&null!=t&&o.add(e,t)},compareArrays:function e(t,i){var n,o;if(!t||!i)return!1;if(t.length!==i.length)return!1;for(n=0,o=t.length;n<o;n+=1)if(t[n]instanceof Array&&i[n]instanceof Array){if(!e(t[n],i[n]))return!1}else if(t[n]!==i[n])return!1;return!0},compareValues:function(e,t){return e instanceof Array&&(e=e.toString()),t instanceof Array&&(t=t.toString()),JSON.stringify(e)===JSON.stringify(t)},concatenateDataTagStrings:function e(t){for(var i=t,n=1;n<arguments.length;n+=1)i=arguments[n]instanceof Object&&arguments[n].length?i+"."+e.apply(this,arguments[n]):i+"."+arguments[n];return i},createDebounceFn:function(e,t,i){var n=null,o=i;return function(){clearTimeout(n),n=setTimeout((function(){if(e.domNode)for(var i=0;i<t.length;i+=1)t[i].apply(e)}),o)}},createSelectableDnDTarget:function(e,t){var i=new f(e,t);return t&&t.dropCallback&&(i.onDrop=t.dropCallback),t&&t.checkAcceptanceCallback&&(i.checkAcceptance=t.checkAcceptanceCallback),i},displayErrorMessage:function(e,t,i){var n=t,o={icon:i||"error","data-test-id":"fileDataServiceFaultDialog"};n||(n=l.errorDialogTitle),h.displayAlertDialog(n,e,o)},displayErrorMessageWithSpecifiedWidth:function(e,t,i,n){var o=t||300,r=i,s={icon:n||"error","data-test-id":"fileDataServiceFaultDialog"};r||(r=l.errorDialogTitle);var c=h.displayAlertDialog(r,e,s);c.domNode.style.width=o+"px",c.domNode.style.minWidth=o+"px";var d=_()&&e.charCodeAt(0)<127?150:75;if(e.replace(/<a\b[^>]*>/i,"").replace(/<\/a>/i,"").length>d){var p=a.get(c.domNode,"height");c.domNode.style.minHeight=2*p+"px",c.domNode.style.height=2*p+"px";var f=a.get(c.domNode,"top");c.domNode.style.top=Math.floor(f/2)+"px"}return u.disableBackspaceOnNonEditableFields(c.domNode),c},formatString:function(e,t){return t=t||{},(e=e&&e.toString?e.toString():e)&&e.indexOf&&e.replace&&((e.indexOf("\n")>-1||e.indexOf("\t")>-1)&&(e=(e=e.replace(/\n/g,"↵")).replace(/\t/g,"→")),e=t.escapeSpace?e.replace(/ /g," "):e),e},getBrowserScrollBarWidth:function(e){if(!p)if(s("mac")){var t=document.createElement("div");t.className="scrollbar-measure",t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var i=t.offsetWidth-t.clientWidth;document.body.removeChild(t),p=i+=2,setTimeout((function(){p=null}),500)}else p=e.scrollbarWidth;return p},getClassNameForIconList:function(e){return e.indexOf("sparse")>-1?e="sparse":e.indexOf("complex")>-1?e="complex":""===e.trim()&&(e="novardisplay"),e},getColumnHeaderPositions:function(e){var t=window.HTMLElement.prototype.getBoundingClientRect;if(window.HTMLElement.prototype.getBoundingClientRect=function(){try{return t.apply(this,arguments)}catch(e){return{left:0,right:0,top:0,bottom:0,height:0,width:0}}},null===e)return[];for(var i=[],n=0;n<e.length;n++)i[n]=e[n].getBoundingClientRect();return window.HTMLElement.prototype.getBoundingClientRect=t,i},getComputedColumnHeaderWidth:function(e,t){if(e&&t){var i=document.createElement("canvas").getContext("2d");return i.font=t,parseInt(i.measureText(e).width)}return 0},getLogicalValue:function(e,t){var i=void 0!==t&&!0===t;return"string"==typeof e||e instanceof String?i="false"!==(e=e.toLowerCase())&&"0"!==e&&"off"!==e&&"no"!==e&&("true"===e||"1"===e||"on"===e||"yes"===e||(void 0===t||!0===t)):"boolean"==typeof e?i=e:"number"==typeof e&&(i=0!==e),i},getSelectionEnd:function(e){if(void 0!==e.selectionStart&&null!==e.selectionStart)return e.selectionEnd;if(e.createTextRange){var t=document.selection.createRange().duplicate();return t.moveStart("character",-e.value.length),t.text.length}},getSelectionStart:function(e){if(void 0!==e.selectionStart&&null!==e.selectionStart)return e.selectionStart;if(e.createTextRange){var t=document.selection.createRange().duplicate();return t.moveEnd("character",e.value.length),""===t.text?e.value.length:e.value.lastIndexOf(t.text)}},getStylesFromClasses:function(e,t){var i=r.create("div",{style:"display: none; width: 0px; height: 0px;"});if(e)for(var n=0;n<e.length;n+=1)o.add(i,e[n]);r.place(i,document.body,"last");var a=window.getComputedStyle(i),s={};if(a&&t)for(n=0;n<t.length;n+=1){var l=t[n];s[l]=a.getPropertyValue(l)}return r.destroy(i),s},handleFormatting:function(e,t,i){var n=null,o=null;if("newLine"===i?n="\n":"tab"===i&&(n="\t"),e){var r=e[0],a=e[1],s=a>r?r:a;o=(o=(o=t.slice(0,s)+n+t.slice(a,t.length)).replace(/\u21b5/g,"\n")).replace(/\u2192/g,"\t")}return o},isUSLocale:_,mergeObjects:function(e,t){var i,n={};for(i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);for(i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n},preventDefaultMouseClick:function(e){e.preventDefault()},removeFromClassList:function(e,t){null!=e&&null!=t&&o.remove(e,t)},selectAll:m,clearAllSelection:function(e){g(e,e.selectionEnd,e.selectionEnd)},selectAllText:function(e){e&&e.value&&(/^".*"$/.test(e.value)||/^'.*'$/.test(e.value)?g(e,1,e.value.length-1):m(e))},selectRange:g,stripOuterDoubleQuotes:function(e){var t=e;return t&&("string"==typeof t||t instanceof String)&&(t=(t=t.replace(/^\s*"/,"")).replace(/"\s*$/,"")),t},stripOuterSingleQuotes:function(e){var t=e;return t&&("string"==typeof t||t instanceof String)&&(t=(t=t.replace(/^\s*'/,"")).replace(/'\s*$/,"")),t},unescapeMatlabQuotes:function(e){var t=e;return t&&("string"==typeof t||t instanceof String)&&(t=t.replace(/''/g,"'")),t},selectTextInNode:function(e){if(document.selection){var t=document.body.createTextRange();t.moveToElementText(e),t.select()}else window.getSelection&&((t=document.createRange()).selectNodeContents(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(t))},getClassList:function(e){return e.className.split(" ")},filterFloat:function(e){if("string"==typeof e){var t=parseFloat(e).toString();if(0===e.indexOf(t)&&e.length!==t.length){for(var i=t.length;i<e.length;i+=1)if(e.charAt(i)<"0"||e.charAt(i)>"9")return NaN;return parseFloat(e)}return parseFloat(e)}return parseFloat(e)},closeTooltips:function(){e._masterTT&&e._masterTT.hide&&e._masterTT.aroundNode&&e._masterTT.hide(e._masterTT.aroundNode)},isValid:v,isInvalidOrEmpty:function(e){return!v(e)||""===e},getNodePosition:function(e){var t=c.position(e);return{x:t.x,y:window.innerHeight-(t.y+2*t.h)}},generateArrayFromIndex:function(e,t){return e=Math.max(e||0,0),t=t||1,Array.from({length:t},(t,i)=>i+e)},removeDuplicates:function(e){return[...new Set(e)]},sortNumeric:function(e){return e.sort((e,t)=>e-t),e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204)],o=i.dj.d(n,(function(e,t){var i=/[&<>'"\/]/g,n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"},o={};return t.setObject("dojo.string",o),o.escape=function(e){return e?e.replace(i,(function(e){return n[e]})):""},o.rep=function(e,t){if(t<=0||!e)return"";for(var i=[];1&t&&i.push(e),t>>=1;)e+=e;return i.join("")},o.pad=function(e,t,i,n){i||(i="0");var r=String(e),a=o.rep(i,Math.ceil((t-r.length)/i.length));return n?r+a:a+r},o.substitute=function(i,n,o,r){return r=r||e.global,o=o?t.hitch(r,o):function(e){return e},i.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,i,a){if(""==i)return"$";var s=t.getObject(i,!1,n);return a&&(s=t.getObject(a,!1,r).call(r,s,i)),o(s,i).toString()}))},o.trim=String.prototype.trim?t.trim:function(e){for(var t=(e=e.replace(/^\s+/,"")).length-1;t>=0;t--)if(/\S/.test(e.charAt(t))){e=e.substring(0,t+1);break}return e},o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(236),i(229),i(282),i(270),i(266),i(3444)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s;return s={_LINE_COLUMN_GREATER_THAN_ZERO:"Line and column must be greater than zero",_LINE_MUST_EXIST_IN_DOCUMENT:"Line must be a valid line in the document",_COLUMN_MUST_EXIST_ON_LINE:"Column must be valid for the specified line",_SELECTION_START_LESS_THAN_END:"Text replacement start position must not be greater than end position",_WORD_SEARCH_PATTERN:/\W/,reverseString:function(e){return e.split("").reverse().join("")},isSingleCharOrSpaces:function(e){return e.trim().length<=1},assert:function(e,t){if(!e)throw new Error(t)},checkLineExists:function(e,t){this.assert(t>0,this._LINE_COLUMN_GREATER_THAN_ZERO+", lineNumber = "+t),this.assert(t<=e.getMaxLineNumber(),this._LINE_MUST_EXIST_IN_DOCUMENT)},checkLineColumnExists:function(e,t,i){this.checkLineExists(e,t),this.assert(i>0,this._LINE_COLUMN_GREATER_THAN_ZERO+", lineNumber = "+t+", column = "+i);var n=e.getLineNode(t-1);this.assert(n,this._LINE_MUST_EXIST_IN_DOCUMENT),this.assert(n.getText,this._LINE_MUST_EXIST_IN_DOCUMENT);var o=n.getTextForPositioning().length+1;this.assert(i<=o,this._COLUMN_MUST_EXIST_ON_LINE)},checkLineColumnIsValid:function(e,t,i){if(t>e.getMaxLineNumber())return!1;var n=e.getLineNode(t);return!!n&&!(i>n.getTextForPositioning().length)},checkOneDirectionalSelection:function(e,t,i,n){this.assert(e<=i,this._SELECTION_START_LESS_THAN_END),e===i&&this.assert(t<=n,this._SELECTION_START_LESS_THAN_END)},isAtStartOfContainer:function(e,t){var i=e.getNode(),n=t||i.textContainer();return 0===e.getOffset()&&i===n.startNode()},isAtStartOfReadOnlyContainer:function(e){return e.getNode().isReadOnly()&&s.isAtStartOfContainer(e)},isAtEndOfContainer:function(e,t){var i=e.getNode(),n=e.getOffset(),o=t||i.textContainer();return n===i.maxOffset()&&i===o.endNode()},isAtEndOfReadOnlyContainer:function(e){return e.getNode().isReadOnly()&&s.isAtEndOfContainer(e)},isInLastLine:function(e){var t=e.getNode().rootContainer();if(!t)return!1;var i=t.parent.lastChild();return t===i},isAtEndOfFile:function(e){return s.isInLastLine(e)&&s.isAtEndOfContainer(e)},isTextLevelContainer:function(e){return e.isTextNode()&&e.containsTextNodes()},isInTextLevelContainer:function(e){return e.parent&&s.isTextLevelContainer(e.parent)},isEdgeOfTextLevelContainer:function(e,t){if(s.isInTextLevelContainer(e)){var i=e.parent;if(0===t&&e===i.firstChild())return!0;if(t===e.maxOffset()&&e===i.lastChild())return!0}return!!s.isTextLevelContainer(e)&&(0===t||t===e.maxOffset())},isInWord:function(e){var t=e.getNode(),i=e.getOffset(),n="";if(0===i){var o=t.previousSibling();n=o?(n=o.getTextForPositioning()).substring(n.length-1):" ",n+=t.getTextForPositioning().substring(0,1)}else if(i===n.length){n=(n=t.getTextForPositioning()).substring(n.length-1);var r=t.nextSibling();n+=r?r.getTextForPositioning().substring(0,1):" "}else n=t.getTextForPositioning().substring(i-1,i+1);return!!n.match(/\w\w/)||(n.match(/\w\W/)?-1:!!n.match(/\W\w/)&&0)},getWordBoundary:function(e,t,i,n){if(t.isOpaqueNode()){var o=t.maxOffset();if(i!==o&&e>0)return{node:t,posInNode:o};if(0!==i&&e<0)return{node:t,posInNode:0};if(!(t=e>0?t.nextSibling():t.previousSibling()))return null;i=e>0?0:t.maxOffset()}var r,l;t.offsetInContainer()>0?(r=t.rootContainer(),l=t.offsetInContainer()+i):(r=t.textContainer(),l=i);var c=r.getTextForPositioning();c=e<0?s.reverseString(c.substring(0,l)):c.substring(l);var d,u=a.unicodeWordCharacters(),h=new RegExp("["+(u+="_")+"]+|\\s+|[!\\(\\)\\[\\]\\{\\}\\-\\+\\*,=\\.\\?\\/\\:;%'\"&<>\\|\\^]+|"),p=/\s*/,f=0;if((d=e>0?h.exec(c):p.exec(c))&&d.index+d[0].length>0&&(f=d.index+d[0].length,c=c.substring(f)),d=null,e>0?n||(d=p.exec(c)):d=h.exec(c),d&&d.index+d[0].length>0&&(f+=d.index+d[0].length),f<1)return null;if(1===f)return{node:r,column:l+e};var g=l+e*f;return e<0&&f<=i||e>0&&i+f<=t.maxOffset()?{node:t,posInNode:i+e*f}:{node:r,column:g}},getCommonParent:function(e,t){if(e===t)return e;var i=e.depth(),n=t.depth();if(i>n)for(;i>n;)e=e.parent,i-=1;else for(;n>i;)t=t.parent,n-=1;for(;e.parent;){if(e.parent===t.parent)return e.parent;e=e.parent,t=t.parent}return e.parent},nodesInOrder:function(e,t){if(e===t)return 0;var i=e.depth(),o=t.depth();if(i>o){for(;i>o;)e=e.parent,i-=1;if(e===t)return-1}else if(o>i){for(;o>i;)t=t.parent,o-=1;if(e===t)return 1}for(;e.parent&&t.parent&&e.parent!==t.parent;)e=e.parent,t=t.parent;return n.indexOf(e.parent.children,e)<n.indexOf(e.parent.children,t)?1:-1},getWritableChunksInRange:function(e,t){var i,n=e.getLineNumber(t[0]),o=n,r=n,a=[];for(i=0;i<t.length;i++){var s=t[i],l=t[i+1];s.isReadOnly()&&l&&!l.isReadOnly()&&(o=e.getLineNumber(l)),s.isReadOnly()||l&&!l.isReadOnly()||(r=e.getLineNumber(s),a.push({startLine:o,endLine:r}))}return a},getWhitespaceStringOfLength:function(e){return t.rep(" ",e)},getLeadingWhitespace:function(e){return e.match(/^\s*/)[0].length},getTrailingWhitespace:function(e){var t=e.match("[ \t]+$");return t?t[0].length:0},isLineNodeEmpty:function(e){return e&&""===e.getText().trim()},isLineTextOnly:function(e,t){return e.getLineNode(t).children.every(e=>e.isTextNode())},textLineArray:function(e){return e.split(s.NewLineRegex)},textToContent:function(t,i){var n,o,r,a,l=[],c=s.textLineArray(t);for(i&&(r=i.textContainer().serialize(),i.textContainer().isRootContainer()||(a=i.rootContainer().serialize()),o=i.isTextNode()?i.serialize():i.textContainer().getDefaultChild()),o||(o=s.DEFAULT_TEXT_NODE,r=s.DEFAULT_CONTAINER_NODE),n=0;n<c.length;n+=1){var d=e.clone(o);if(d.text=c[n],1===c.length)return[d];var u=e.clone(r);u.children=[d],l.push(u)}if(a){var h=e.clone(a);return h.children=l,[h]}return l},DEFAULT_TEXT_NODE:{className:"PlainTextNode",text:""},DEFAULT_CONTAINER_NODE:{className:"LineNode",children:[]},DEFAULT_TAB_STRING:" ",getWordAtPosition:function(e,t){return this.getStringAtPosition(e,t,this._WORD_SEARCH_PATTERN)},getStringTillPosition:function(e,t,i){var n=s.getWordAtPosition(i,e);if(!n||!n.text)return null;if(this._isInvalidVariableName(n,t))return null;var o,r,a=n.text,l=n.startLineCol.column,c=n.endLineCol.column,d=n.startLineCol.line;if(0!==l&&(o=this._getCharAtLocation(t,d,l-1)),"."===o){if(l<=1)return null;var u=i.getPositionForLineColumn(d+1,l-1),h=this.getStringTillPosition(u,t,i);if(!h)return null;r=h.text+"."+a,l=(c=n.endLineCol.column)-r.length}else r=a;return{text:r,startColumn:l,endColumn:c}},_isInvalidVariableName:function(e,t){var i=e.startLineCol.line,n=e.startLineCol.column;return!(n<=1)&&("."===s._getCharAtLocation(t,i,n-1)&&"."===s._getCharAtLocation(t,i,n-2))},_getCharAtLocation:function(e,t,i){return e.getTextCharacters(t,i,1)},getStringAtPosition:function(e,t,i){if(!t.isValid())return null;var n=this._getLineColumnAtPosition(e,t.getNode(),t.getOffset()),o=t.getNode().rootContainer().getTextForPositioning();return this._getStringStartEndPositions(o,n,i)},_getLineColumnAtPosition:function(e,t,i){var n=t.rootContainer();return{line:e.getLineNumber(n),column:t.offsetInContainer(n)+i}},_getStringStartEndPositions:function(e,t,i){this.assert(t&&t.column>=0&&t.column<=e.length);var n=t.column,o=this.reverseString(e.substring(0,n)),r=e.substring(n),a=o.search(i);-1===a&&(a=o.length);var s=n-a,l=r.search(i);-1===l&&(l=r.length);var c=n+l,d=e.substring(s,c);return 0===d.length?null:{text:d,startLineCol:{line:t.line,column:s},endLineCol:{line:t.line,column:c}}},checkOverlapsWithRange:function(e,t,i){var n,o,r,a;return i.some((function(i){return n=e.line===i.startLine,o=e.column===i.startColumn,r=t.line===i.endLine,a=t.column===i.endColumn,n&&r&&(o||a)}))},getTextRangeFromLeftToPosition:function(e){var t=e.getNode();if(!t.isTextNode())return null;var i=t,n=e.getOffset(),r=t.getText().slice(0,n),a=t.textContainer();for(t=t.prevNode();t&&t.isTextNode()&&t.textContainer()===a;)i=t,r=t.getText()+r,t=t.prevNode();return{startPos:new o(i,0),endPos:e,text:r}},getRangeAndTextOfTargetOnLine:function(e,t,i){i=new RegExp(i);var n=e.getLineNode(t-1).getTextForPositioning(),o=i.exec(n);return o?{start:o.index+1,end:o.index+o[0].length+1,text:o[0]}:null},getRangeAndTextOfMultipleTargetsOnLine:function(e,t,i){if(!i.global){var n=i.flags?i.flags:"";n+="g",i=new RegExp(i.source,n)}for(var o=e.getLineNode(t-1).getTextForPositioning(),r=[];match=i.exec(o);)r.push({start:match.index+1,end:match.index+match[0].length+1,text:match[0]});return r},getRangeFromLineNumber:function(e,t){var i=e.createLinePositionInLine(t),n=e.createLinePositionInLine(t,!0);return new r(i,n)},isInDocument:function(e){return!!e&&!(!e.rootContainer()||!e.rootContainer().parent)},createFullFileRange:function(e,t){var i=e.getNumberOfLines()-1,n=t.createLinePositionInLine(0,!1),o=t.createLinePositionInLine(i,!1);return new r(n,o)},insertArrayAt:function(e,t,i){let n;return e.length<=1e4?(t.splice(i,0,...e),n=t):n=t.slice(0,i).concat(e).concat(t.slice(i)),n},NewLineRegex:/\r\n|\r|\n/}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(227),i(228),i(210),i(211),i(222),i(204),i(206),i(605),i(245),i(384),i(242),i(279),i(650),i(231),i(31)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){var _,v,b=new(t([u,a],{curNode:null,activeStack:[],constructor:function(){var t=s.hitch(this,(function(e){i.isDescendant(this.curNode,e)&&this.set("curNode",null),i.isDescendant(this.prevNode,e)&&this.set("prevNode",null)}));e.before(r,"empty",t),e.before(r,"destroy",t)},registerIframe:function(e){return this.registerWin(e.contentWindow,e)},registerWin:function(e,t){var i=this,n=e.document&&e.document.body;if(n){var o=d("pointer-events")?"pointerdown":d("MSPointer")?"MSPointerDown":d("touch-events")?"mousedown, touchstart":"mousedown",r=l(e.document,o,(function(e){e&&e.target&&null==e.target.parentNode||i._onTouchNode(t||e.target,"mouse")})),a=l(n,"focusin",(function(e){if(e.target.tagName){var n=e.target.tagName.toLowerCase();"#document"!=n&&"body"!=n&&(f.isFocusable(e.target)?i._onFocusNode(t||e.target):i._onTouchNode(t||e.target))}})),s=l(n,"focusout",(function(e){i._onBlurNode(t||e.target)}));return{remove:function(){r.remove(),a.remove(),s.remove(),r=a=s=null,n=null}}}},_onBlurNode:function(e){var t=(new Date).getTime();t<_+100||(this._clearFocusTimer&&clearTimeout(this._clearFocusTimer),this._clearFocusTimer=setTimeout(s.hitch(this,(function(){this.set("prevNode",this.curNode),this.set("curNode",null)})),0),this._clearActiveWidgetsTimer&&clearTimeout(this._clearActiveWidgetsTimer),t<v+100||(this._clearActiveWidgetsTimer=setTimeout(s.hitch(this,(function(){delete this._clearActiveWidgetsTimer,this._setStack([])})),0)))},_onTouchNode:function(e,t){v=(new Date).getTime(),this._clearActiveWidgetsTimer&&(clearTimeout(this._clearActiveWidgetsTimer),delete this._clearActiveWidgetsTimer),o.contains(e,"dijitPopup")&&(e=e.firstChild);var i=[];try{for(;e;){var r=n.get(e,"dijitPopupParent");if(r)e=g.byId(r).domNode;else if(e.tagName&&"body"==e.tagName.toLowerCase()){if(e===h.body())break;e=p.get(e.ownerDocument).frameElement}else{var a=e.getAttribute&&e.getAttribute("widgetId"),s=a&&g.byId(a);!s||"mouse"==t&&s.get("disabled")||i.unshift(a),e=e.parentNode}}}catch(e){}this._setStack(i,t)},_onFocusNode:function(e){e&&9!=e.nodeType&&(_=(new Date).getTime(),this._clearFocusTimer&&(clearTimeout(this._clearFocusTimer),delete this._clearFocusTimer),this._onTouchNode(e),e!=this.curNode&&(this.set("prevNode",this.curNode),this.set("curNode",e)))},_setStack:function(e,t){var i=this.activeStack,n=i.length-1,o=e.length-1;if(e[o]!=i[n]){var r,a;for(this.set("activeStack",e),a=n;a>=0&&i[a]!=e[a];a--)(r=g.byId(i[a]))&&(r._hasBeenBlurred=!0,r.set("focused",!1),r._focusManager==this&&r._onBlur(t),this.emit("widget-blur",r,t));for(a++;a<=o;a++)(r=g.byId(e[a]))&&(r.set("focused",!0),r._focusManager==this&&r._onFocus(t),this.emit("widget-focus",r,t))}},focus:function(e){if(e)try{e.focus()}catch(e){}}}));for(var y in c((function(){var e=b.registerWin(p.get(document));d("ie")&&l(window,"unload",(function(){e&&(e.remove(),e=null)}))})),m.focus=function(e){b.focus(e)},b)/^_/.test(y)||(m.focus[y]="function"==typeof b[y]?s.hitch(b,y):b[y]);return b.watch((function(e,t,i){m.focus[e]=i})),b}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[],o=i.dj.d(n,(function(){var e=function(e){return 0===e||e>0},t=function(t,i){if(!e(t))throw new Error("Invalid start value set");if(!e(i)&&(0!==t||-1!==i))throw new Error("Invalid end value set");var n={};return Object.defineProperty(n,"start",{value:t,enumerable:!0}),Object.defineProperty(n,"end",{value:i,enumerable:!0}),Object.defineProperty(n,"count",{value:i-t+1,enumerable:!0}),n},i=function(e,t){return t.start<=e.end&&t.end>=e.start},n=function(e,t,i,n){return new s(i,n,e,t)},o=function(e,t,i,n){return new s(e,t,i,n)},s=function(){function e(i,n,o,r){a(this,e),Object.defineProperties(this,{rows:{value:t(i,n),enumerable:!0},columns:{value:t(o,r),enumerable:!0}})}return r(e,[{key:"setEntireColumns",value:function(t,i){return void 0===i&&(i=t),new e(0,1/0,t,i)}},{key:"setEntireRows",value:function(t,i){return void 0===i&&(i=t),new e(t,i,0,1/0)}},{key:"setColumns",value:function(t,i){return new e(this.rows.start,this.rows.end,t,i)}},{key:"setRows",value:function(t,i){return new e(t,i,this.columns.start,this.columns.end)}},{key:"column",get:function(){return this.columns.start===this.columns.end&&0===this.rows.start&&this.rows.end===1/0?this.columns.start:null}},{key:"row",get:function(){return this.rows.start===this.rows.end&&0===this.columns.start&&this.columns.end===1/0?this.rows.start:null}}]),e}();return Object.defineProperty(s.prototype,"row",{enumerable:!0}),Object.defineProperty(s.prototype,"column",{enumerable:!0}),function(){function e(){a(this,e)}return r(e,null,[{key:"range",value:function(){return new s(0,-1,0,-1)}},{key:"doesRangeListIntersect",value:function(t,i){for(var n=0;n<t.length;n+=1)for(var o=0;o<i.length;o+=1)if(e.doesRangeIntersect(t[n],i[o]))return!0;return!1}},{key:"doesRangeIntersect",value:function(e,t){return e.columns.start<=t.columns.end&&e.columns.end>=t.columns.start&&e.rows.start<=t.rows.end&&e.rows.end>=t.rows.start}},{key:"isRangeEqual",value:function(e,t){return e===t||e.columns.start===t.columns.start&&e.columns.end===t.columns.end&&e.rows.start===t.rows.start&&e.rows.end===t.rows.end}},{key:"isRangeInside",value:function(e,t){return e===t||e.columns.start<=t.columns.start&&e.columns.end>=t.columns.end&&e.rows.start<=t.rows.start&&e.rows.end>=t.rows.end}},{key:"isRowRange",value:function(e){return 0===e.columns.start&&e.columns.end===1/0}},{key:"isColumnRange",value:function(e){return 0===e.rows.start&&e.rows.end===1/0}},{key:"groupRangeListByRow",value:function(t){return e._groupRangeList(t,"rows")}},{key:"groupRangeListByColumn",value:function(t){return e._groupRangeList(t,"columns")}},{key:"removeRowsFromRangeList",value:function(t,i){return e._removeIntervalFromRank("rows",t,i,o)}},{key:"removeColumnsFromRangeList",value:function(t,i){return e._removeIntervalFromRank("columns",t,i,n)}},{key:"removeRangeFromRangeList",value:function(t,i){for(var n=[],o=0;o<t.length;o+=1)n=n.concat(e._removeIntersection(t[o],i));return n}},{key:"isRangeInsideRangeList",value:function(t,i){for(var n=[t],o=0;o<i.length&&n.length>0;o+=1){var r=i[o];n=e.removeRangeFromRangeList(n,r)}return 0===n.length}},{key:"_removeIntersection",value:function(t,i){var r=[{rank:"columns",secondaryRank:"rows",makeRange:n},{rank:"rows",secondaryRank:"columns",makeRange:o}],a=t,s=[];return e.doesRangeIntersect(t,i)?r.forEach((function(e){var t=e.rank,n=e.secondaryRank,o=e.makeRange,r=a[t],l=i[t],c=[a[n].start,a[n].end];r.start<l.start&&(s.push(o.apply(void 0,[r.start,l.start-1].concat(c))),a=o.apply(void 0,[l.start,r.end].concat(c))),l.end<r.end&&(s.push(o.apply(void 0,[l.end+1,r.end].concat(c))),a=o.apply(void 0,[a[t].start,l.end].concat(c)))})):s=[t],s}},{key:"_removeIntervalFromRank",value:function(e,t,n,o){var r="columns",a=[];"columns"===e&&(r="rows");for(var s=0;s<t.length;s+=1){var l=t[s],c=l[e],d=c.start,u=c.end,h=[l[r].start,l[r].end];i(l[e],n)?l[e].end<=n.end&&l[e].start>=n.start||(l[e].start>=n.start?a.push(o.apply(void 0,[n.end+1,u].concat(h))):l[e].end<=n.end?a.push(o.apply(void 0,[d,n.start-1].concat(h))):(a.push(o.apply(void 0,[d,n.start-1].concat(h))),a.push(o.apply(void 0,[n.end+1,u].concat(h))))):a.push(l)}return a}},{key:"_groupRangeList",value:function(t,i){var n=[],o={};return t.forEach((function(t){var r=e._hashRankFromRange(t,i),a=o[r];a>=0?n[a].push(t):(a=n.length,o[r]=a,n[a]=[t])})),n}},{key:"_hashRankFromRange",value:function(e,t){var i=e[t].start,n=e[t].end;return 0===e[t].count?-1:n*n+n+i}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(420),i.dj.c(e.i),i.dj.m(e)],o=i.dj.d(n,(function(e,t,i,n){var o,r,a,s=function(){return this}(),l={},c={},d={config:t,global:s,dijit:l,dojox:c},u={dojo:["dojo",d],dijit:["dijit",l],dojox:["dojox",c]},h=i.map&&i.map[n.id.match(/[^\/]+/)[0]];for(r in h)u[r]?u[r][0]=h[r]:u[r]=[h[r],{}];for(r in u)(a=u[r])[1]._scopeName=a[0],t.noGlobals||(s[a[0]]=a[1]);d.scopeMap=u,d.baseUrl=d.config.baseUrl=i.baseUrl,d.isAsync=!e("dojo-loader")||i.async,d.locale=t.locale;var p="$Rev: 91fa0cb $".match(/[0-9a-f]{7,}/);if(d.version={major:1,minor:11,patch:2,flag:"",revision:p?p[0]:NaN,toString:function(){var e=d.version;return e.major+"."+e.minor+"."+e.patch+e.flag+" ("+e.revision+")"}},e.add("extend-dojo",1),e("csp-restrictions")||Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(d),e("host-rhino")?d.exit=function(e){quit(e)}:d.exit=function(){},e("host-webworker")||e.add("dojo-guarantee-console",1),e("dojo-guarantee-console")){e.add("console-as-object",(function(){return Function.prototype.bind&&console&&"object"==typeof console.log})),"undefined"!=typeof console||(console={});var f,g=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];for(o=0;f=g[o++];)console[f]?e("console-as-object")&&(console[f]=Function.prototype.bind.call(console[f],console)):function(){var e=f+"";console[e]="log"in console?function(){var t=Array.prototype.slice.call(arguments);t.unshift(e+":"),console.log(t.join(" "))}:function(){},console[e]._fake=!0}()}if(e.add("dojo-debug-messages",!!t.isDebug),d.deprecated=d.experimental=function(){},e("dojo-debug-messages")&&(d.deprecated=function(e,t,i){var n="DEPRECATED: "+e;t&&(n+=" "+t),i&&(n+=" -- will be removed in version: "+i),console.warn(n)},d.experimental=function(e,t){var i="EXPERIMENTAL: "+e+" -- APIs subject to change without notice.";t&&(i+=" "+t),console.warn(i)}),e.add("dojo-modulePaths",1),e("dojo-modulePaths")&&t.modulePaths){d.deprecated("dojo.modulePaths","use paths configuration");var m={};for(r in t.modulePaths)m[r.replace(/\./g,"/")]=t.modulePaths[r];i({paths:m})}return e.add("dojo-moduleUrl",1),e("dojo-moduleUrl")&&(d.moduleUrl=function(e,t){d.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var n=null;return e&&(n=i.toUrl(e.replace(/\./g,"/")+(t?"/"+t:"")+"/*.*").replace(/\/\*\.\*/,"")+(t?"":"/")),n}),d._hasResource={},d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(242),i(240),i(1034),i(279),i(1316),i(3082),i(787),i(262),i(273)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c={displayAlertDialog:function(e,t,i){i=i||{};var n=this._createIconAndMessageWidget(t,"error",i);this._setupIconAndMessageWidget(n);var o=[{type:l.OK.type,label:l.OK.label,"data-test-id":"AlertDialogButton1"}],r=i.closeCallback?i.closeCallback:function(){},a={eventName:"AlertDialogClosed",dialogTitle:e,response:1,buttonText:o[0].label},c=s.createDialog({title:e,content:n,dialogType:!1===i.modal?s.MODELESS:s.MODAL,buttons:o,draggable:!0,specifiedFocusItem:this._parseAndGetSpecifiedFocusedItem(i,o),"data-test-id":i["data-test-id"]?i["data-test-id"]:"AlertDialog",className:"mwAlertDialog"});return c.on("close",(function(){r(a)})),c.addButtonEventListener(l.OK,null,!0),c},_createIconAndMessageWidget:function(e,t,i){var n=i.icon?i.icon:t,r=i.customIconAltText||"";return new o({message:e,icon:n,customIconAltText:r})},_setupIconAndMessageWidget:function(e){var t=n.getBox(),i=Math.max(80,Math.min(.4*t.h,300));e.messageNode.style.maxHeight=i+"px"},_resizeToFitOversizeButtons:function(e){parseInt(window.getComputedStyle(e.domNode).width)>400&&(e.domNode.querySelector(".mwDialogBody").style.maxWidth="none")},_parseAndGetSpecifiedFocusedItem:function(e,t){return isNaN(e.specifiedFocusItem)?e.specifiedFocusItem:t[e.specifiedFocusItem-1]},displayConfirmDialog:function(e,t,i){var n="ConfirmDialog";i=i||{};var o=this._createIconAndMessageWidget(t,"question",i);this._setupIconAndMessageWidget(o);var r=[],a=[l.TYPE.DO_IT,l.TYPE.DONT_DO_IT,l.TYPE.CANCEL,l.TYPE.APPLY,l.TYPE.REVERT];if(i.buttonText&&i.buttonText.length>=1)for(var c=0;c<i.buttonText.length&&c<5;c++)r.push({type:a[c],label:i.buttonText[c],"data-test-id":n+"Button"+(c+1)});else r=[{type:l.TYPE.DO_IT,label:l.OK.label,"data-test-id":n+"Button1"},{type:l.TYPE.CANCEL,label:l.CANCEL.label,"data-test-id":n+"Button2"}];var d=i.closeCallback?i.closeCallback:function(){},u={eventName:n+"Closed",dialogTitle:e,response:1,buttonText:r[0].label},h=i.defaultCancelButton<=r.length?i.defaultCancelButton:r.length,p=r[h-1].label,f=s.createDialog({title:e,dialogType:s.MODAL,content:o,buttons:r,draggable:!0,className:"mw"+n,"data-test-id":i["data-test-id"]?i["data-test-id"]:n,specifiedFocusItem:this._parseAndGetSpecifiedFocusedItem(i,r),defaultActionButton:i.defaultAcceptButton<=r.length?r[i.defaultAcceptButton-1]:r[0]});return f.on("close",(function(){u.response=h,u.buttonText=p,d(u)})),r.forEach((function(e,t){f.addButtonEventListener(e,(function(){h=t+1,p=e.label}),!0)})),this._resizeToFitOversizeButtons(f),f},displayProgressDialog:function(e,t,i){var n="ProgressDialog",o=void 0===(i=i||{}).className?"":" "+i.className,r=this._createIconAndMessageWidget('<div class="mwProgressDialogMessage" data-test-id="progress-message-node"></div><div class="mwProgressDialogProgressBar"></div>',"none",i),c=r.messageNode.children[1],u=r.messageNode.children[0];d(u,t);var h=new a({indeterminate:void 0!==i.indeterminate&&i.indeterminate,value:void 0===i.value?0:i.value,color:i.color||i.colorStyle||"Info",showPercentage:void 0!==i.showPercentage&&i.showPercentage,"data-test-id":n+"ProgressBar"});h.placeAt(c),h.startup(),h.resize({w:"none"===r.icon?360:317}),this._setupIconAndMessageWidget(r);var p=[],f=void 0!==i.showCancelButton&&i.showCancelButton;f&&(p=[{type:l.CANCEL.type,label:void 0===i.cancelButtonText?l.CANCEL.label:i.cancelButtonText,"data-test-id":n+"Button1"}]);var g=s.createDialog({title:e,dialogType:s.MODAL,content:r,buttons:p,draggable:!0,closeOnEscape:f,hideCloseButton:!f,specifiedFocusItem:this._parseAndGetSpecifiedFocusedItem(i,p),className:"mw"+n+o,"data-test-id":i["data-test-id"]?i["data-test-id"]:n});if(f){var m={eventName:n+"Closed",dialogTitle:e,response:"cancel",buttonText:p[0].label,dialog:g},_=i.cancelCallback?i.cancelCallback:function(){},v=function(){_(m)};g.on("close",v),g.addButtonEventListener(l.CANCEL,v,!1),g._destroyCache=g.destroy,g.destroy=function(){},g.closeProgressDialog=function(){this.destroy=this._destroyCache,this.destroy()},g.disableCancelButton=function(){this.disableButton(p[0])},g.enableCancelButton=function(){this.enableButton(p[0])}}else g.closeProgressDialog=function(){this.destroy()};return g.progressBar=h,g.progressMessageNode=u,g.updateMessage=function(e){d(this.progressMessageNode,e)},g}},d=function(e,t){"string"==typeof t&&(e.style.whiteSpace="pre-wrap"),i.set(e,t,{parseContent:!0})};return c.displayAlertBanner=function(i,n,o){t.experimental("Notifications.displayAlertBanner");o=o||{};var a=this._createIconAndMessageWidget(n,"error",o),s=o.closeCallback?o.closeCallback:function(){},l={eventName:"AlertBannerClosed",dialogTitle:i,response:"closed"},c=new r({title:i,content:a,duration:o.duration?o.duration:4e3,class:"mwAlertBanner","data-test-id":o["data-test-id"]?o["data-test-id"]:"AlertBanner"});return c.set("onHide",(function(){s(l),c.destroyRecursive()})),c.placeAt(e.body()),c.startup(),c.show(),c},c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(245)],o=i.dj.d(n,(function(e,t,i){var n={global:e.global,doc:e.global.document||null,body:function(t){return(t=t||e.doc).body||t.getElementsByTagName("body")[0]},setContext:function(t,i){e.global=n.global=t,e.doc=n.doc=i},withGlobal:function(t,i,o,r){var a=e.global;try{return e.global=n.global=t,n.withDoc.call(null,t.document,i,o,r)}finally{e.global=n.global=a}},withDoc:function(t,o,r,a){var s,l,c,d=n.doc,u=i("quirks"),h=i("ie");try{return e.doc=n.doc=t,e.isQuirks=i.add("quirks","BackCompat"==e.doc.compatMode,!0,!0),i("ie")&&(c=t.parentWindow)&&c.navigator&&(s=parseFloat(c.navigator.appVersion.split("MSIE ")[1])||void 0,(l=t.documentMode)&&5!=l&&Math.floor(s)!=l&&(s=l),e.isIE=i.add("ie",s,!0,!0)),r&&"string"==typeof o&&(o=r[o]),o.apply(r,a||[])}finally{e.doc=n.doc=d,e.isQuirks=i.add("quirks",u,!0,!0),e.isIE=i.add("ie",h,!0,!0)}}};return i("extend-dojo")&&t.mixin(e,n),n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(215),i(360),i(316),i(307),i(216),i(351),i(352),i(330),i(769),i(653),i(432),i(343),i(353),i(335),i(1280),i(1281),i(421),i(259),i(770),i(2845)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){return e(b.validate([i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,y]),{baseClass:"mwWidget mwPushButton",templateString:C,postCreate:function(){this.inherited(arguments),this.own(t(this.domNode,"keydown",this._handleKeydown.bind(this)),t(this.domNode,"keyup",this._handleKeyup.bind(this)))},_handleKeydown:function(e){switch(e.keyCode){case 13:this.get("disabled")||e.target.click(),e.preventDefault();break;case 32:e.preventDefault()}},_handleKeyup:function(e){switch(e.keyCode){case 13:e.preventDefault();break;case 32:this.get("disabled")||e.target.click(),e.preventDefault()}},_qeClick:function(){this.emit("click")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(212),i(285)],o=i.dj.d(n,(function(e,t,i){"use strict";var n=e.some;return function(e){var o,r,a;e instanceof Array?r=e:e&&"object"==typeof e&&(o=e);var s=[];if(o){for(var l in r=[],o)Object.hasOwnProperty.call(o,l)&&(s.push(l),r.push(o[l]));a={}}else r&&(a=[]);if(!r||!r.length)return(new t).resolve(a);var c=new t;c.promise.always((function(){a=s=null}));var d=r.length;return n(r,(function(e,t){return o||s.push(t),i(e,(function(e){c.isFulfilled()||(a[s[t]]=e,0==--d&&c.resolve(a))}),c.reject),c.isFulfilled()})),c.promise}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){if(e("host-browser")){var t=navigator,i=t.userAgent,n=t.appVersion,o=parseFloat(n);if(e.add("air",i.indexOf("AdobeAIR")>=0),e.add("wp",parseFloat(i.split("Windows Phone")[1])||void 0),e.add("msapp",parseFloat(i.split("MSAppHost/")[1])||void 0),e.add("khtml",n.indexOf("Konqueror")>=0?o:void 0),e.add("edge",parseFloat(i.split("Edge/")[1])||void 0),e.add("opr",parseFloat(i.split("OPR/")[1])||void 0),e.add("webkit",!e("wp")&&!e("edge")&&parseFloat(i.split("WebKit/")[1])||void 0),e.add("chrome",!e("edge")&&!e("opr")&&parseFloat(i.split("Chrome/")[1])||void 0),e.add("android",!e("wp")&&parseFloat(i.split("Android ")[1])||void 0),e.add("safari",!(n.indexOf("Safari")>=0)||e("wp")||e("chrome")||e("android")||e("edge")||e("opr")?void 0:parseFloat(n.split("Version/")[1])),e.add("mac",n.indexOf("Macintosh")>=0),e.add("quirks","BackCompat"==document.compatMode),!e("wp")&&i.match(/(iPhone|iPod|iPad)/)){var r=RegExp.$1.replace(/P/,"p"),a=i.match(/OS ([\d_]+)/)?RegExp.$1:"1",s=parseFloat(a.replace(/_/,".").replace(/_/g,""));e.add(r,s),e.add("ios",s)}if(e.add("bb",(i.indexOf("BlackBerry")>=0||i.indexOf("BB10")>=0)&&parseFloat(i.split("Version/")[1])||void 0),e.add("trident",parseFloat(n.split("Trident/")[1])||void 0),e.add("svg","undefined"!=typeof SVGAngle),!e("webkit")){if(i.indexOf("Opera")>=0&&e.add("opera",o>=9.8&&parseFloat(i.split("Version/")[1])||o),!(i.indexOf("Gecko")>=0)||e("wp")||e("khtml")||e("trident")||e("edge")||e.add("mozilla",o),e("mozilla")&&e.add("ff",parseFloat(i.split("Firefox/")[1]||i.split("Minefield/")[1])||void 0),document.all&&!e("opera")){var l=parseFloat(n.split("MSIE ")[1])||void 0,c=document.documentMode;c&&5!=c&&Math.floor(l)!=c&&(l=c),e.add("ie",l)}e.add("wii","undefined"!=typeof opera&&opera.wiiremote)}}return e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(206),i(221),i(217)],o=i.dj.d(n,(function(e,t,i,n){if(t._fixEvent){var o=t._fixEvent;t._fixEvent=function(e,t){return(e=o(e,t))&&n.normalizeEvent(e),e}}var r={fix:function(e,i){return t._fixEvent?t._fixEvent(e,i):e},stop:function(e){i("dom-addeventlistener")||e&&e.preventDefault?(e.preventDefault(),e.stopPropagation()):((e=e||window.event).cancelBubble=!0,t._preventDefault.call(e))}};return i("extend-dojo")&&(e.fixEvent=r.fix,e.stopEvent=r.stop),r}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(513),i(2756),i(486)],o=i.dj.d(n,(function(e,t,i){return{HYPERLINK_ESCAPE_REGEXP:/<a\s+href\s*=\s*"[^"]*"[^>]*>[\s\S]*?<\/a>/g,HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP:/<a\s+href\s*=\s*"([^"]*)"([^>]*)>([\s\S]*?)<\/a>/g,STRONG_ESCAPE_REGEXP:/<strong>|<\/strong>/g,BOLD_LINK_ATTRIBUTE_REGEX:/\bstyle\s*=\s*"[^"]*\bfont-weight\s*:\s*bold\b[^"]*"/,parseQueryString:function(){var e=window.location.search.substr(1,window.location.search.length);return this._parseQueryString(e)},_parseQueryString:function(t){return e.queryToObject(t)},parseUrl:function(e){var t=document.createElement("a");t.display="none",t.href=e||window.location.href,t.href=t.href;var i={protocol:t.protocol,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,hash:t.hash};return"https:"!==i.protocol&&"http:"!==i.protocol||0===i.pathname.indexOf("/")||(i.pathname="/"+i.pathname),"https:"===i.protocol&&"443"===i.port&&0!==e.indexOf("https://"+i.hostname+":443")&&(i.port=""),i},escapeHtml:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML},escapeLinksAndHtml:function(e,t){i.deprecated({deprecated:{module:"mw-html-utils/HtmlUtils",method:"escapeLinksAndHtml"},replacement:{module:"mw-html-utils/HtmlUtils",method:"treatHtmlLikeCommandWindow"}});var n="",o=e.split(this.HYPERLINK_ESCAPE_REGEXP),r=e.match(this.HYPERLINK_ESCAPE_REGEXP),a="",s=this,l=0,c=function(e,t,i,n){var o=s.parseUrl(t).protocol;"http:"!==o&&"https:"!==o&&"matlab:"!==o&&(t="#"),t=s.escapeHtml(t),n=s._strongNotEscaped(n,!0),a='<a href="'+t+'">'+n+"</a>"};if(t)n=this.escapeHtml(e),n=this.escapeWhitespace(n);else if(""!==o[0]&&(n=this._strongNotEscaped(o[0],!0)),null!==r&&0!==r.length)for(l=0;l<r.length;l+=1)r[l].replace(this.HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP,c),""!==o[l+1]&&(o[l+1]=this._strongNotEscaped(o[l+1],!0)),n+=a+o[l+1];return n},treatHtmlLikeCommandWindow:function(e,t,i){if("string"!=typeof e)return"";var n="",o=e.split(this.HYPERLINK_ESCAPE_REGEXP),r=e.match(this.HYPERLINK_ESCAPE_REGEXP),a="",s=this,l=0;i=i||{};var c=function(e,t,i,n){var o=s.parseUrl(t).protocol,r="";"http:"!==o&&"https:"!==o&&"matlab:"!==o&&(t="#"),t=s.escapeHtml(t),n=s._strongNotEscaped(n,!1),s.BOLD_LINK_ATTRIBUTE_REGEX.test(i)&&(r=' style="font-weight:bold"'),a='<a href="'+t+'"'+r+">"+n+"</a>"};if(t)n=this.escapeHtml(e);else if(""!==o[0]&&(n=this._strongNotEscaped(o[0],!1)),null!==r&&0!==r.length)for(l=0;l<r.length;l+=1)r[l].replace(this.HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP,c),""!==o[l+1]&&(o[l+1]=this._strongNotEscaped(o[l+1],!1)),n+=a+o[l+1];return i.addPreTagToPreserveWhiteSpace&&(n='<span style="white-space: pre">'+n+"</span>"),n},_strongNotEscaped:function(e,t){var i="",n=e.match(this.STRONG_ESCAPE_REGEXP),o=e.split(this.STRONG_ESCAPE_REGEXP),r=function(e){return e};t&&(r=this.escapeWhitespace);var a=0;if(null!==n&&0!==n.length)for(i=r(this.escapeHtml(o[0])),a=0;a<n.length;a+=1)i+=n[a]+r(this.escapeHtml(o[a+1]));else i=r(this.escapeHtml(e));return i},escapeWhitespace:function(e){return i.deprecated({deprecated:{module:"mw-html-utils/HtmlUtils",method:"escapeWhitespace"},replacement:{module:"Plain HTML",method:'Set class as white-space: pre or use <span style="white-space: pre">...</span>'}}),(e=e||"").replace(/\n/g,"<br>").replace(/ {2}/g,"&nbsp;&nbsp;")},handleAnchors:function(e,t){if(t.target.href){t.preventDefault(),t.stopPropagation();var i=t.target.href;if(-1!==i.indexOf("matlab:")){if("matlab:"===i.substring(0,7)){var n=t.target.href.substring(7);e(window.unescape(n))}}else window.open(t.target.href)}},isElementOverflown:function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth},sanitizeHtmlFromJava:t.sanitizeHtmlFromJava}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(214),i(227),i(210),i(204),i(206),i(221),i(257),i(605),i(242)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d,u,h,p,f,g,m,_,v,b,y=a("ios")<5,C=a("pointer-events")||a("MSPointer"),T=function(){var e={};for(var t in{down:1,move:1,up:1,cancel:1,over:1,out:1})e[t]=a("MSPointer")?"MSPointer"+t.charAt(0).toUpperCase()+t.slice(1):"pointer"+t;return e}(),E=a("touch-events"),S=!1;function w(e,t,i){return C&&i?function(e,t){return r(e,i,t)}:E?function(i,n){var o=r(i,t,(function(e){n.call(this,e),v=(new Date).getTime()})),a=r(i,e,(function(e){(!v||(new Date).getTime()>v+1e3)&&n.call(this,e)}));return{remove:function(){o.remove(),a.remove()}}}:function(t,i){return r(t,e,i)}}function I(e,t,o){if(!s.isRight(e)){var a=function(e){do{if(void 0!==e.dojoClick)return e}while(e=e.parentNode)}(e.target);if((u=!e.target.disabled&&a&&a.dojoClick)&&(h=(S="useTarget"==u)?a:e.target,S&&e.preventDefault(),p=e.changedTouches?e.changedTouches[0].pageX-c.global.pageXOffset:e.clientX,f=e.changedTouches?e.changedTouches[0].pageY-c.global.pageYOffset:e.clientY,g=("object"==typeof u?u.x:"number"==typeof u?u:0)||4,m=("object"==typeof u?u.y:"number"==typeof u?u:0)||4,!d)){function l(e){u=S?i.isDescendant(c.doc.elementFromPoint(e.changedTouches?e.changedTouches[0].pageX-c.global.pageXOffset:e.clientX,e.changedTouches?e.changedTouches[0].pageY-c.global.pageYOffset:e.clientY),h):u&&(e.changedTouches?e.changedTouches[0].target:e.target)==h&&Math.abs((e.changedTouches?e.changedTouches[0].pageX-c.global.pageXOffset:e.clientX)-p)<=g&&Math.abs((e.changedTouches?e.changedTouches[0].pageY-c.global.pageYOffset:e.clientY)-f)<=m}function v(e){c.doc.addEventListener(e,(function(t){var i=t.target;u&&!t._dojo_click&&(new Date).getTime()<=_+1e3&&("INPUT"!=i.tagName||!n.contains(i,"dijitOffScreen"))&&(t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),"click"==e&&("INPUT"!=i.tagName||"radio"==i.type&&(n.contains(i,"dijitCheckBoxInput")||n.contains(i,"mblRadioButton"))||"checkbox"==i.type&&(n.contains(i,"dijitCheckBoxInput")||n.contains(i,"mblCheckBox")))&&"TEXTAREA"!=i.tagName&&"AUDIO"!=i.tagName&&"VIDEO"!=i.tagName&&t.preventDefault())}),!0)}d=!0,c.doc.addEventListener(t,(function(e){s.isRight(e)||(l(e),S&&e.preventDefault())}),!0),c.doc.addEventListener(o,(function(e){if(!s.isRight(e)&&(l(e),u)){_=(new Date).getTime();var t=S?h:e.target;"LABEL"===t.tagName&&(t=i.byId(t.getAttribute("for"))||t);var n=e.changedTouches?e.changedTouches[0]:e;function o(t){var i=document.createEvent("MouseEvents");return i._dojo_click=!0,i.initMouseEvent(t,!0,!0,e.view,e.detail,n.screenX,n.screenY,n.clientX,n.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null),i}var a=o("mousedown"),c=o("mouseup"),d=o("click");setTimeout((function(){r.emit(t,"mousedown",a),r.emit(t,"mouseup",c),r.emit(t,"click",d),_=(new Date).getTime()}),0)}}),!0),v("click"),v("mousedown"),v("mouseup")}}}a("touch")&&l(C?function(){c.doc.addEventListener(T.down,(function(e){I(e,T.move,T.up)}),!0)}:function(){function e(e){var t=o.delegate(e,{bubbles:!0});return a("ios")>=6&&(t.touches=e.touches,t.altKey=e.altKey,t.changedTouches=e.changedTouches,t.ctrlKey=e.ctrlKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.targetTouches=e.targetTouches),t}b=c.body(),c.doc.addEventListener("touchstart",(function(e){v=(new Date).getTime();var t=b;b=e.target,r.emit(t,"dojotouchout",{relatedTarget:b,bubbles:!0}),r.emit(b,"dojotouchover",{relatedTarget:t,bubbles:!0}),I(e,"touchmove","touchend")}),!0),r(c.doc,"touchmove",(function(t){v=(new Date).getTime();var i=c.doc.elementFromPoint(t.pageX-(y?0:c.global.pageXOffset),t.pageY-(y?0:c.global.pageYOffset));i&&(b!==i&&(r.emit(b,"dojotouchout",{relatedTarget:i,bubbles:!0}),r.emit(i,"dojotouchover",{relatedTarget:b,bubbles:!0}),b=i),r.emit(i,"dojotouchmove",e(t))||t.preventDefault())})),r(c.doc,"touchend",(function(t){v=(new Date).getTime();var i=c.doc.elementFromPoint(t.pageX-(y?0:c.global.pageXOffset),t.pageY-(y?0:c.global.pageYOffset))||c.body();r.emit(i,"dojotouchend",e(t))}))});var A={press:w("mousedown","touchstart",T.down),move:w("mousemove","dojotouchmove",T.move),release:w("mouseup","dojotouchend",T.up),cancel:w(s.leave,"touchcancel",C?T.cancel:null),over:w("mouseover","dojotouchover",T.over),out:w("mouseout","dojotouchout",T.out),enter:s._eventHandler(w("mouseover","dojotouchover",T.over)),leave:s._eventHandler(w("mouseout","dojotouchout",T.out))};return a("extend-dojo")&&(e.touch=A),A}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{INSERT_TEXT:"insertText",INSERT_BREAK_EVENT:"insertBreak",DELETION_EVENT:"deleteSelection",FORMAT_CHANGE_EVENT:"formatChange",NUMBER_OF_LINES_CHANGED:"numberOfLinesChanged",LINES_CHANGED:"linesChanged",READONLY_STATE_CHANGE_EVENT:"readOnlyStateChange",FORWARD_DELETE:1,BACKWARD_DELETE:-1}}),e,t),e.exports=o},function(e,t,i){"use strict";e.exports=function(){function e(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(e,t,i){this.props=e,this.context=t,this.refs=V,this.updater=i||H}function i(){}function n(e,t,i){this.props=e,this.context=t,this.refs=V,this.updater=i||H}function o(e,t,i){var n,o={},r=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(r=""+t.key),t)G.call(t,n)&&!z.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=i;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:E,type:e,key:r,ref:a,props:o,_owner:W.current}}function r(e){return"object"==typeof e&&null!==e&&e.$$typeof===E}function a(e,t,i,n){if(K.length){var o=K.pop();return o.result=e,o.keyPrefix=t,o.func=i,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:i,context:n,count:0}}function s(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>K.length&&K.push(e)}function l(t,i,n){return null==t?0:function t(i,n,o,r){var a=typeof i;"undefined"!==a&&"boolean"!==a||(i=null);var s=!1;if(null===i)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(i.$$typeof){case E:case S:s=!0}}if(s)return o(r,i,""===n?"."+c(i,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(i))for(var l=0;l<i.length;l++){var d=n+c(a=i[l],l);s+=t(a,d,o,r)}else if("function"==typeof(d=null===i||"object"!=typeof i?null:"function"==typeof(d=O&&i[O]||i["@@iterator"])?d:null))for(i=d.call(i),l=0;!(a=i.next()).done;)s+=t(a=a.value,d=n+c(a,l++),o,r);else if("object"===a)throw o=""+i,Error(e(31,"[object Object]"===o?"object with keys {"+Object.keys(i).join(", ")+"}":o,""));return s}(t,"",i,n)}function c(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function d(e,t,i){e.func.call(e.context,t,e.count++)}function u(e,t,i){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?h(e,n,i,(function(e){return e})):null!=e&&(r(e)&&(e=function(e,t){return{$$typeof:E,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(q,"$&/")+"/")+i)),n.push(e))}function h(e,t,i,n,o){var r="";null!=i&&(r=(""+i).replace(q,"$&/")+"/"),l(e,u,t=a(t,r,n,o)),s(t)}function p(){var t=U.current;if(null===t)throw Error(e(321));return t}function f(e,t){var i=e.length;e.push(t);e:for(;;){var n=Math.floor((i-1)/2),o=e[n];if(!(void 0!==o&&0<_(o,t)))break e;e[n]=t,e[i]=o,i=n}}function g(e){return void 0===(e=e[0])?null:e}function m(e){var t=e[0];if(void 0!==t){var i=e.pop();if(i!==t){e[0]=i;e:for(var n=0,o=e.length;n<o;){var r=2*(n+1)-1,a=e[r],s=r+1,l=e[s];if(void 0!==a&&0>_(a,i))void 0!==l&&0>_(l,a)?(e[n]=l,e[s]=i,n=s):(e[n]=a,e[r]=i,n=r);else{if(!(void 0!==l&&0>_(l,i)))break e;e[n]=l,e[s]=i,n=s}}}return t}return null}function _(e,t){var i=e.sortIndex-t.sortIndex;return 0!==i?i:e.id-t.id}function v(e){for(var t=g(me);null!==t;){if(null===t.callback)m(me);else{if(!(t.startTime<=e))break;m(me),t.sortIndex=t.expirationTime,f(ge,t)}t=g(me)}}function b(e){if(Te=!1,v(e),!Ce)if(null!==g(ge))Ce=!0,Z(y);else{var t=g(me);null!==t&&ee(b,t.startTime-e)}}function y(e,t){Ce=!1,Te&&(Te=!1,te()),ye=!0;var i=be;try{for(v(t),ve=g(ge);null!==ve&&(!(ve.expirationTime>t)||e&&!ie());){var n=ve.callback;if(null!==n){ve.callback=null,be=ve.priorityLevel;var o=n(ve.expirationTime<=t);t=J(),"function"==typeof o?ve.callback=o:ve===g(ge)&&m(ge),v(t)}else m(ge);ve=g(ge)}if(null!==ve)var r=!0;else{var a=g(me);null!==a&&ee(b,a.startTime-t),r=!1}return r}finally{ve=null,be=i,ye=!1}}function C(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var T="function"==typeof Symbol&&Symbol.for,E=T?Symbol.for("react.element"):60103,S=T?Symbol.for("react.portal"):60106,w=T?Symbol.for("react.fragment"):60107,I=T?Symbol.for("react.strict_mode"):60108,A=T?Symbol.for("react.profiler"):60114,x=T?Symbol.for("react.provider"):60109,N=T?Symbol.for("react.context"):60110,L=T?Symbol.for("react.forward_ref"):60112,D=T?Symbol.for("react.suspense"):60113;T&&Symbol.for("react.suspense_list");var M=T?Symbol.for("react.memo"):60115,P=T?Symbol.for("react.lazy"):60116;T&&Symbol.for("react.fundamental"),T&&Symbol.for("react.responder"),T&&Symbol.for("react.scope");var O="function"==typeof Symbol&&Symbol.iterator,R=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,B=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;var t={};for(e=0;10>e;e++)t["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");for(var i,n=Object(e),o=1;o<arguments.length;o++){var r=Object(arguments[o]);for(var a in r)k.call(r,a)&&(n[a]=r[a]);if(R){i=R(r);for(var s=0;s<i.length;s++)F.call(r,i[s])&&(n[i[s]]=r[i[s]])}}return n},H={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,i){},enqueueReplaceState:function(e,t,i,n){},enqueueSetState:function(e,t,i,n){}},V={};t.prototype.isReactComponent={},t.prototype.setState=function(t,i){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(e(85));this.updater.enqueueSetState(this,t,i,"setState")},t.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i.prototype=t.prototype,(T=n.prototype=new i).constructor=n,B(T,t.prototype),T.isPureReactComponent=!0;var j,U={current:null},W={current:null},G=Object.prototype.hasOwnProperty,z={key:!0,ref:!0,__self:!0,__source:!0},q=/\/+/g,K=[];if("undefined"==typeof window||"function"!=typeof MessageChannel){var X=null,Y=null,Q=function(){if(null!==X)try{var e=J();X(!0,e),X=null}catch(e){throw setTimeout(Q,0),e}},$=Date.now(),J=function(){return Date.now()-$},Z=function(e){null!==X?setTimeout(Z,0,e):(X=e,setTimeout(Q,0))},ee=function(e,t){Y=setTimeout(e,t)},te=function(){clearTimeout(Y)},ie=function(){return!1};T=j=function(){}}else{var ne=window.performance,oe=window.Date,re=window.setTimeout,ae=window.clearTimeout;T=window.requestAnimationFrame;var se=window.cancelAnimationFrame;if("undefined"!=typeof console&&("function"!=typeof T&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof se&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof ne&&"function"==typeof ne.now)J=function(){return ne.now()};else{var le=oe.now();J=function(){return oe.now()-le}}var ce=!1,de=null,ue=-1,he=5,pe=0;ie=function(){return J()>=pe},T=function(){},j=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):he=0<e?Math.floor(1e3/e):33.33};var fe=(se=new MessageChannel).port2;se.port1.onmessage=function(){if(null!==de){var e=J();pe=e+he;try{de(!0,e)?fe.postMessage(null):(ce=!1,de=null)}catch(e){throw fe.postMessage(null),e}}else ce=!1},Z=function(e){de=e,ce||(ce=!0,fe.postMessage(null))},ee=function(e,t){ue=re((function(){e(J())}),t)},te=function(){ae(ue),ue=-1}}var ge=[],me=[],_e=1,ve=null,be=3,ye=!1,Ce=!1,Te=!1,Ee=0;return B(se={ReactCurrentDispatcher:U,ReactCurrentOwner:W,IsSomeRendererActing:{current:!1},assign:B},{Scheduler:{unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=be;be=e;try{return t()}finally{be=i}},unstable_next:function(e){switch(be){case 1:case 2:case 3:var t=3;break;default:t=be}var i=be;be=t;try{return e()}finally{be=i}},unstable_scheduleCallback:function(e,t,i){var n=J();if("object"==typeof i&&null!==i){var o=i.delay;o="number"==typeof o&&0<o?n+o:n,i="number"==typeof i.timeout?i.timeout:C(e)}else i=C(e),o=n;return e={id:_e++,callback:t,priorityLevel:e,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>n?(e.sortIndex=o,f(me,e),null===g(ge)&&e===g(me)&&(Te?te():Te=!0,ee(b,o-n))):(e.sortIndex=i,f(ge,e),Ce||ye||(Ce=!0,Z(y))),e},unstable_cancelCallback:function(e){e.callback=null},unstable_wrapCallback:function(e){var t=be;return function(){var i=be;be=t;try{return e.apply(this,arguments)}finally{be=i}}},unstable_getCurrentPriorityLevel:function(){return be},unstable_shouldYield:function(){var e=J();v(e);var t=g(ge);return t!==ve&&null!==ve&&null!==t&&null!==t.callback&&t.startTime<=e&&t.expirationTime<ve.expirationTime||ie()},unstable_requestPaint:T,unstable_continueExecution:function(){Ce||ye||(Ce=!0,Z(y))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return g(ge)},get unstable_now(){return J},get unstable_forceFrameRate(){return j},unstable_Profiling:null},SchedulerTracing:{get __interactionsRef(){return null},get __subscriberRef(){return null},unstable_clear:function(e){return e()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Ee},unstable_trace:function(e,t,i){return i()},unstable_wrap:function(e){return e},unstable_subscribe:function(e){},unstable_unsubscribe:function(e){}}}),I={default:w={Children:{map:function(e,t,i){if(null==e)return e;var n=[];return h(e,n,null,t,i),n},forEach:function(e,t,i){if(null==e)return e;l(e,d,t=a(null,null,t,i)),s(t)},count:function(e){return l(e,(function(){return null}),null)},toArray:function(e){var t=[];return h(e,t,null,(function(e){return e})),t},only:function(t){if(!r(t))throw Error(e(143));return t}},createRef:function(){return{current:null}},Component:t,PureComponent:n,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:N,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:x,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:L,render:e}},lazy:function(e){return{$$typeof:P,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:M,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return p().useCallback(e,t)},useContext:function(e,t){return p().useContext(e,t)},useEffect:function(e,t){return p().useEffect(e,t)},useImperativeHandle:function(e,t,i){return p().useImperativeHandle(e,t,i)},useDebugValue:function(e,t){},useLayoutEffect:function(e,t){return p().useLayoutEffect(e,t)},useMemo:function(e,t){return p().useMemo(e,t)},useReducer:function(e,t,i){return p().useReducer(e,t,i)},useRef:function(e){return p().useRef(e)},useState:function(e){return p().useState(e)},Fragment:w,Profiler:A,StrictMode:I,Suspense:D,createElement:o,cloneElement:function(t,i,n){if(null==t)throw Error(e(267,t));var o=B({},t.props),r=t.key,a=t.ref,s=t._owner;if(null!=i){if(void 0!==i.ref&&(a=i.ref,s=W.current),void 0!==i.key&&(r=""+i.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in i)G.call(i,c)&&!z.hasOwnProperty(c)&&(o[c]=void 0===i[c]&&void 0!==l?l[c]:i[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];o.children=l}return{$$typeof:E,type:t.type,key:r,ref:a,props:o,_owner:s}},createFactory:function(e){var t=o.bind(null,e);return t.type=e,t},isValidElement:r,version:"16.11.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:se}},(w=w||I).default||w}()},function(e,t,i){var n,o;n=[i(253),i(1085),i(1086)],o=i.dj.d(n,(function(e,t,i){return{SYNTAX_HIGHLIGHTING:"rtc_syntax_highlighting",CODE_ANALYZER:"rtc_code_analyzer",SECTIONS:{INSERT_SECTION_ACTION:"rtc_insert_section",RUN_SECTION_ACTION:"rtc_evaluate_section",NEXT_SECTION_ACTION:"rtc_navigate_next_section",PREVIOUS_SECTION_ACTION:"rtc_navigate_previous_section"},FIND_STRING:{FIND_ACTION:"rtc_find_dialog",FIND_NEXT_ACTION:"rtc_find_dialog_find_next_key",FIND_PREVIOUS_ACTION:"rtc_find_dialog_find_previous_key",FIND_FORWARD_ACTION:"rtc_find_dialog_find_forward_key",FIND_BACKWARD_ACTION:"rtc_find_dialog_find_backward_key",FIND_SELECTION_ACTION:"rtc_find_dialog_find_selection_key",FIND_CLOSE_ACTION:"rtc_find_dialog_close_key",REPLACE_ACTION:"rtc_replace_dialog"},GOTO:{GOTO_DIALOG:{Action:"rtc_goTo_dialog"},GOTO_TOOLSTRIP_BUTTON:{Text:e.goToLabel,Description:e.goToDescription,Icon:"bigGoToToolstrip",QuickAccessIcon:"smallGoToToolstrip"},GOTO_LINE:{Text:e.goToLineLabel,Shortcut:e.goToShortcut,PlatformShortcut:"meta+l",Description:e.goToLineDescription,Icon:"bigGoToLine",QuickAccessIcon:"smallGoToLine"}},EXPORT_FOLDER:"rtc_save_folder",BOOKMARKS:{TOGGLE_BOOKMARK:{Action:"rtc_toggle_bookmark",Icon:"icon_bookmark_set-clear_24",QABIcon:"icon_bookmark_set-clear_16",Text:e.bookmarkTSLabel,Description:e.bookmarkTSDescription},PREV_BOOKMARK:{Action:"rtc_previous_bookmark",Icon:"icon_bookmark_previous_24",QABIcon:"icon_bookmark_previous_16",Text:e.bookmarkTSPreviousLabel,Description:e.bookmarkTSPreviousDescription},NEXT_BOOKMARK:{Action:"rtc_next_bookmark",Icon:"icon_bookmark_next_24",QABIcon:"icon_bookmark_next_16",Text:e.bookmarkTSNextLabel,Description:e.bookmarkTSNextDescription},CLEAR_ALL_BOOKMARK_CONTEXT_MENU:"rtc_clear_all_bookmark_context_menu",PREV_BOOKMARK_CONTEXT_MENU:"rtc_previous_bookmark_context_menu",NEXT_BOOKMARK_CONTEXT_MENU:"rtc_next_bookmark_context_menu"},INDENT_ON_NEWLINE:"rtc_indent_on_newline",SMART_TAB:"rtc_smart_tab",PAREN_MATCH:"rtc_paren_match",GUTTER_LINE_NUMBER:"rtc_gutter_line_number",CONTEXT_MENU:"rtc_context_menu",AUTO_INDENT:"rtc_auto_indent",EVALUATE_SELECTION:{EVALUATE_SELECTION_ACTION:"rtc_evaluate_selection"},OPEN_SELECTION:{OPEN_SELECTION_ACTION:"rtc_open_selection"},COMMENT:{COMMENT:{Action:"rtc_comment",Icon:"smallInsertComment",QABIcon:"smallInsertComment",Description:e.commentDescription},UNCOMMENT:{Action:"rtc_uncomment",Icon:"smallUncomment",QABIcon:"smallUncomment",Description:e.uncommentDescription},WRAP_COMMENT:{Action:"rtc_wrap_comment",Icon:"wrapCommentIcon",QABIcon:"wrapCommentIcon",Description:e.wrapCommentDescription}},DUPLICATE_LINE:"rtc_duplicate_line",INDENT:{INDENT_ACTION:"rtc_indent",OUTDENT_ACTION:"rtc_unindent"},FORMAT_CODE:{SMART_INDENT_ACTION:"rtc_smart_indent",SMART_INDENT_ALL_ACTION:"rtc_smart_indent_all"},UNDO_REDO:{UNDO_ACTION:"rtc_undo",REDO_ACTION:"rtc_redo",CLEAR_ACTION:"rtc_clear_undo"},CUT_COPY_PASTE:{CUT_ACTION:"rtc_cut",COPY_ACTION:"rtc_copy",PASTE_ACTION:"rtc_paste"},VARIABLE_HIGHLIGHTING:"rtc_variable_highlighting",RICH_TEXT:{TOGGLE_BOLD_ACTION:"rtc_toggle_bold",TOGGLE_ITALIC_ACTION:"rtc_toggle_italic",TOGGLE_UNDERLINE_ACTION:"rtc_toggle_underline",TOGGLE_MONOSPACE_ACTION:"rtc_toggle_monospace",PARAGRAPH_FORMAT_CODE_ACTION:"rtc_paraformat_code",PARAGRAPH_FORMAT_TEXT_ACTION:"rtc_paraformat_text",PARAGRAPH_FORMAT_HEADING_ACTION:"rtc_paraformat_heading",PARAGRAPH_FORMAT_HEADING1_ACTION:"rtc_paraformat_heading",PARAGRAPH_FORMAT_HEADING2_ACTION:"rtc_paraformat_heading2",PARAGRAPH_FORMAT_HEADING3_ACTION:"rtc_paraformat_heading3",PARAGRAPH_FORMAT_TITLE_ACTION:"rtc_paraformat_title",TOGGLE_CODE_AND_TEXT_ACTION:"rtc_toggle_code_and_text",ALIGNMENT_LEFT_ACTION:"rtc_align_left",ALIGNMENT_CENTER_ACTION:"rtc_align_center",ALIGNMENT_RIGHT_ACTION:"rtc_align_right"},LISTS:{ORDERED_LIST_ACTION:"rtc_ordered_list",UNORDERED_LIST_ACTION:"rtc_unordered_list"},HYPERLINK:{HYPERLINK_ACTION:"rtc_hyperlink",HYPERLINK_SERVICE_BACKWARD_ACTION:"rtc_hyperlink_service_backward",HYPERLINK_SERVICE_FORWARD_ACTION:"rtc_hyperlink_service_forward"},EQUATIONS:{LATEX_EDITOR_ACTION:"rtc_equation",WYSIWYG_EDITOR_ACTION:"rtc_equation_editor"},IMAGES:{IMAGE_ACTION:"rtc_image"},EDIT_IMAGE:{EDIT_IMAGE_ACTION:"rtc_edit_image"},TABLE_OF_CONTENTS:{TABLE_OF_CONTENTS_ACTION:"rtc_table_of_contents"},CODE_EXAMPLE:{DEFAULT_ACTION:"rtc_codeexample",MATLAB_ACTION:"rtc_codeexample_matlab",PLAIN_ACTION:"rtc_codeexample_plain"},AUTO_COMPLETION:"rtc_autocompletion",AUTO_COMPLETION_PREFERENCE:"rtc_autocompletion_preference",AUTO_CODING:"rtc_smartformatting_auto_coding",AUTO_FORMATTING:"rtc_smartformatting_auto_formatting",HELP_ON_SELECTION:"rtc_helponselection",REFACTOR:{REFACTOR_LOCAL_FUNCTION:"rtc_refactor_local_function",REFACTOR_EXTERNAL_FUNCTION:"rtc_refactor_external_function"},EDITOR_TAB_PREFERENCE:"rtc_editortab_preference",BACKGROUND_FOREGROUND_COLORS:"rtc_backgroundforegroundcolor",PRINT:{PRINT:{Action:"rtc_print",Text:e.printText,Description:e.printDescription,Shortcut:e.printShortcut,Icon:"smallPrint"},PRINT_SELECTION:{Action:"rtc_print_selection",Text:e.printSelection}},CODE_FOLDING:{codeFoldingSectionTitle:e.codeFoldingSectionTitle,FOLD_CURRENT_BLOCK:{Action:"rtc_fold_current_block",Text:e.collapse,Description:e.collapseDescription,Shortcut:e.collapseShortcut,Icon:"bigCollapse",QuickAccessIcon:"smallCollapse"},UNFOLD_CURRENT_BLOCK:{Action:"rtc_unfold_current_block",Text:e.expand,Description:e.expandDescription,Shortcut:e.expandShortcut,Icon:"bigExpand",QuickAccessIcon:"smallExpand"},FOLD_ALL:{Action:"rtc_fold_all",Text:e.collapseAll,Description:e.collapseAllDescription,Shortcut:e.collapseAllShortcut,Icon:"bigCollapseAll",QuickAccessIcon:"smallCollapseAll"},UNFOLD_ALL:{Action:"rtc_unfold_all",Text:e.expandAll,Description:e.expandAllDescription,Shortcut:e.expandAllShortcut,Icon:"bigExpandAll",QuickAccessIcon:"smallExpandAll"}},ZOOM:{ZOOM_IN:{Action:"zoomIn",Icon:"zoomInIcon",Text:e.zoomInLabel,Description:e.zoomInLabel},ZOOM_OUT:{Action:"zoomOut",Icon:"zoomOutIcon",Text:e.zoomOutLabel,Description:e.zoomOutLabel},RESET_ZOOM:{Action:"resetZoom",Icon:"resetZoomIcon",Text:e.zoomResetLabel,Description:e.zoomResetDescription}},DISPLAY_SECTION:{Title:e.displaySectionTitle,HIGHLIGHT_CURRENT_LINE:{Action:"editor.rtc_highlight_currentline",Text:e.highlightCurrentline,Description:e.highlightCurrentlineDescription,Icon:"bigHighlightCurrentLine",QuickAccessIcon:"smallHighlightCurrentLine"},LINE_NUMBERS:{Action:"editor.rtc_lineNumbers",Text:e.lineNumbers,Description:e.lineNumbersDescription,Icon:"bigLineNumbers",QuickAccessIcon:"smallLineNumbers"},DATATIPS:{Action:"editor.rtc_matlab_datatips",Text:e.dataTips,Description:e.datatTipsDescription,Icon:"bigDataTips",QuickAccessIcon:"smallDataTips"},AUTO_COMPLETION:{Action:"editor.rtc_completions",Text:e.completions,Description:e.completionsDescription,Icon:"bigCompletions",QuickAccessIcon:"smallCompletions"}},EXECUTION_CONTROLS:{FAMILY:"executioncontrols",CONTINUE:{Action:"rtc_continue",Icon:"bigContinue",QABIcon:"smallContinue",Text:t.continueLabel,Description:t.continueDescription},PAUSE:{Action:"rtc_pause",Icon:"bigPause",QABIcon:"smallPause",Text:t.pauseLabel,Description:t.pausingDescription},STOP:{Action:"rtc_stop_execution",Icon:"bigQuit",QABIcon:"smallQuit",Text:t.stopLabel,Description:t.stopDescription},STEP:{Action:"rtc_step",Icon:"bigStep",QABIcon:"smallStep",Text:t.stepLabel,Description:t.stepDescription},STEP_IN:{Action:"rtc_debug_step_in",Icon:"bigStepIn",QABIcon:"smallStepIn",Text:i.debugStepInLabel,Description:i.debugStepInDescription},STEP_OUT:{Action:"rtc_debug_step_out",Icon:"bigStepOut",QABIcon:"smallStepOut",Text:i.debugStepOutLabel,Description:i.debugStepOutDescription},BREAKPOINTS:{BREAKPOINTS_TITLE:e.breakpointsTitle,CLEAR_ALL_BREAKPOINTS:{Action:"rtc_clear_all_breakpoints",Icon:"bigClearAllBreakpoints",QABIcon:"smallClearAllBreakpoints",Text:e.clearAllBreakpointsLabel,Description:e.clearAllBreakpointsDescription},TOGGLE_BREAKPOINT:{Action:"rtc_toggle_breakpoint",Icon:"bigToggleBreakpoint",QABIcon:"smallToggleBreakpoint",Text:e.toggleBreakpointLabel,Description:e.toggleBreakpointDescription},TOGGLE_ENABLE_BREAKPOINT:{Action:"rtc_toggle_enable_breakpoint",Icon:"bigToggleEnableBreakpoint",QABIcon:"smallToggleEnableBreakpoint",Text:e.toggleEnableBreakpointLabel,Description:e.toggleEnableBreakpointDescription},TOGGLE_CONDITIONAL:{Action:"rtc_toggle_conditional_breakpoint",Icon:"bigSetBreakpointCondition",QABIcon:"smallSetBreakpointCondition",Text:e.toggleConditionalBreakpointLabel,Description:e.toggleConditionalBreakpointDescription},ERROR_HANDLING_TITLE:e.errorHandlingTitle,PAUSE_ON_ERROR:{ActionOn:"rtc_pause_on_error_on",ActionOff:"rtc_pause_on_error_off",Text:e.stopIfErrorText,Description:e.stopIfErrorDescription},PAUSE_ON_WARNING:{ActionOn:"rtc_pause_on_warning_on",ActionOff:"rtc_pause_on_warning_off",Text:e.stopIfWarningText,Description:e.stopIfWarningDescription},PAUSE_ON_NANINF:{ActionOn:"rtc_pause_on_naninf_on",ActionOff:"rtc_pause_on_naninf_off",Text:e.stopIfNanInfText,Description:e.stopIfNanInfDescription}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{_STYLES:[],constructor:function(){},getApplicableNodeClass:function(){throw new Error("Unimplemented: getApplicableNodeClass")},reset:function(){},finalize:function(){},enter:function(e,t,i){return!1},leave:function(e,t,i){},visit:function(e,t,i,n,o){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3447),i(3448),i(3449),i(3450)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/actions",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209)],o=i.dj.d(n,(function(e){return function(t){return"string"!=typeof(t=t||{}).type&&e.error(t.type,"Type property is required"),"boolean"!=typeof t.notInAction&&e.error(t.notInAction,"NotInAction property is required"),"boolean"!=typeof t.required&&e.error(t.required,"Required property is required"),void 0===t.defaultValue&&e.error(t.defaultValue,"DefaultValue property is required"),t}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(214),i(203),i(204),i(651)],o=i.dj.d(n,(function(e,t,i,n,o){return i("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:!1,contextRequire:null,_beforeFillContent:function(){if(/dojoType|data-dojo-type/i.test(this.domNode.innerHTML)){var e=this.domNode;if(this.containerNode&&!this.searchContainerNode&&(this.containerNode.stopParser=!0),o.parse(e,{noStart:!this._earlyTemplatedStartup,template:!0,inherited:{dir:this.dir,lang:this.lang,textDir:this.textDir},propsThis:this,contextRequire:this.contextRequire,scope:"dojo"}).then(n.hitch(this,(function(e){this._startupWidgets=e;for(var t=0;t<e.length;t++)this._processTemplateNode(e[t],(function(e,t){return e[t]}),(function(e,t,i){return t in e?e.connect(e,t,i):e.on(t,i,!0)}));this.containerNode&&this.containerNode.stopParser&&delete this.containerNode.stopParser}))),!this._startupWidgets)throw new Error(this.declaredClass+": parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin. Must pre-load all supporting widgets before instantiation.")}},_processTemplateNode:function(e,t,i){return!(!t(e,"dojoType")&&!t(e,"data-dojo-type"))||this.inherited(arguments)},startup:function(){e.forEach(this._startupWidgets,(function(e){e&&!e._started&&e.startup&&e.startup()})),this._startupWidgets=null,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(222)],o=i.dj.d(n,(function(e){var t=new e;return{publish:function(e,i){return t.emit.apply(t,arguments)},subscribe:function(e,i){return t.on.apply(t,arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(206),i(221),i(227),i(242)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a;function s(e,i){var o=function(o,r){return t(o,e,(function(e){return i?i(e,r):n.isDescendant(e.relatedTarget,o)?void 0:r.call(this,e)}))};return o.bubble=function(t){return s(e,(function(e,i){var n=t(e.target),o=e.relatedTarget;if(n&&n!=(o&&1==o.nodeType&&t(o)))return i.call(n,e)}))},o}return i.add("dom-quirks",o.doc&&"BackCompat"==o.doc.compatMode),i.add("events-mouseenter",o.doc&&"onmouseenter"in o.doc.createElement("div")),i.add("events-mousewheel",o.doc&&"onmousewheel"in o.doc),r=i("dom-quirks")&&i("ie")||!i("dom-addeventlistener")?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,t){return e.button&t},isLeft:function(e){return 1&e.button},isMiddle:function(e){return 4&e.button},isRight:function(e){return 2&e.button}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,t){return e.button==t},isLeft:function(e){return 0==e.button},isMiddle:function(e){return 1==e.button},isRight:function(e){return 2==e.button}},e.mouseButtons=r,a=i("events-mousewheel")?"mousewheel":function(e,i){return t(e,"DOMMouseScroll",(function(e){e.wheelDelta=-e.detail,i.call(this,e)}))},{_eventHandler:s,enter:s("mouseover"),leave:s("mouseout"),wheel:a,isLeft:r.isLeft,isMiddle:r.isMiddle,isRight:r.isRight}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(206),i(215),i(360),i(316),i(307),i(216),i(351),i(352),i(330),i(769),i(887),i(343),i(1063),i(1782),i(888),i(335),i(433),i(259),i(409),i(1064),i(3024)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){return e(y.validate([o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,C,T]),{baseClass:"mwWidget mwTextField",templateString:E,horizontalAlignment:"left",width:150,height:22,constructor:function(){this._addKeysThatPreventTypingEvent([i.ENTER])},postCreate:function(){this.inherited(arguments),this.own(n(this.inputNode,"focus",this._focusHandler.bind(this))),this.own(n(this.inputNode,"blur",this._blurHandler.bind(this)))},_focusHandler:function(){this.domNode.classList.add("mwTextFieldInputNodeFocused")},_blurHandler:function(){this.domNode.classList.remove("mwTextFieldInputNodeFocused")},_handleEnterKey:function(){var e,i,n;e=this.inputNode.value,i=this.get("value"),this.set("value",e),i!==(n=this.get("value"))&&this._triggerChangeEvent("value",i,n),this.domNode.classList.add("mwTextFieldHighlight"),this.defer(t.hitch(this,(function(){this.domNode.classList.remove("mwTextFieldHighlight")})),200)},_onKeyUp:function(e){this.inherited(arguments),e.keyCode===i.ENTER&&this._handleEnterKey()},_qeTypeOverWithEnter:function(e){this.get("value");this.set("value",e);var t=new KeyboardEvent("keydown",{key:"Enter",code:"Enter",keyCode:13,which:13});this.inputNode.dispatchEvent(t),t=new KeyboardEvent("keyup",{key:"Enter",code:"Enter",keyCode:13,which:13}),this.inputNode.dispatchEvent(t)},_setDisabledAttr:function(e){this.inherited(arguments),!0===e?this.inputNode.setAttribute("disabled",""):this.inputNode.removeAttribute("disabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{validate:function(e){return e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(282),i(209),i(249),i(237),i(1090),i(663),i(577)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{_INVALID_START_LINE:"Invalid start line provided for ",_INVALID_END_LINE:"Invalid end line provided for ",_EVENT_PAYLOAD_SHOULD_BE_ARRAY:"Event payload should be an array",_EVENT_ARRAY_NON_EMPTY:"Event array should be non-empty",_EVENT_NOT_DOCUMENT_EVENT_BASE:"Event object not an instance of DocumentEventBase",isEventOfType:function(e,t){return!(!e||!t)&&e.type===t},hasEventType:function(e,t){return!(!e||e.length<1||!t)&&e.some(function(e){return this.isEventOfType(e,t)}.bind(this))},hasOnlyEventsOfType:function(e,t){return!(!e||e.length<1||!t)&&e.every((function(e){return e&&e.type===t}))},getEventsOfType:function(e,t){return!e||e.length<1||!t?[]:e.filter((function(e){return e&&e.type===t}))},hasLengthChangingEvent:function(e){return e.some((function(e){return this.isLengthChangingEvent(e)}),this)},isLengthChangingEvent:function(e){var t=e.getMutation().getData();return 0!==this._calculateLineChanges(t)},isMultiLineEvent:function(e,t){if(!e||e.length<1||!t)return!1;var i=[];return e.some((function(e){return!!e&&(e.type===n.INSERT_BREAK_EVENT||e.type===n.INSERT_TEXT&&(e.startLine!==e.endLine||(0===i.length?(i.push(e.startLine),!1):i.indexOf(e.startLine)<0||void 0)))}))},getLineNodesFromEvents:function(e,t){var i=this.getRawCoalescedDocumentMutations(e);return this.getLineNodesFromMutations(i,t)},getLineNodesFromMutations:function(e,t){var i=this.getLineNumbersFromMutations(e),n=[];return i.forEach((function(e){var i=t.getLineNode(e);i&&n.push(i)})),n},getLineNumbersFromEvents:function(e){if(!e||e.length<1)return[];var t=this.getRawCoalescedDocumentMutations(e);return this.getLineNumbersFromMutations(t)},getLineNumbersFromMutations:function(e){if(!e||e.length<1)return[];var t=[];return e.forEach((function(e){for(var i=e.to[0];i<=e.to[1];i++)t.push(i)})),t},toLengthChangeEvent:function(e){var t=this.getRawCoalescedDocumentMutations(e);return this.toLengthChangeEventFromMutations(t)},toLengthChangeEventFromMutations:function(e){var t=this._getNumberOfLinesChanged(e);return 0===t?null:{type:n.NUMBER_OF_LINES_CHANGED,change:t}},_getNumberOfLinesChanged:function(e){return 0===e.length?0:this._calculateOverallLineChanges(e)},assertValidEventPayload:function(e){o.assert(Array.isArray(e),this._EVENT_PAYLOAD_SHOULD_BE_ARRAY),o.assert(e.length>0,this._EVENT_ARRAY_NON_EMPTY),e.forEach((function(e){o.assert(e.isInstanceOf(r),this._EVENT_NOT_DOCUMENT_EVENT_BASE)}),this)},assertValidLines:function(e,t,i){o.assert(this._isValidLine(e),this._INVALID_START_LINE+i),o.assert(this._isValidLine(t),this._INVALID_END_LINE+i)},_isValidLine:function(e){return"number"==typeof e&&e>-1},finalLineRangeFromEvents:function(e){var t=this.getRawCoalescedDocumentMutations(e);return this.finalLineRangeFromMutations(t)},finalLineRangeFromMutations:function(e){return 0===e.length?null:{startLine:e[0].to[0],endLine:e[e.length-1].to[1]}},translateEventsForUndo:function(e){return this.assertValidEventPayload(e),e.map(this._translateEventForUndo,this)},_translateEventForUndo:function(e){return e.isInstanceOf(a)?e.getUndoEvent():e},allEventsOfSameType:function(e){i.assert(0!==e.length,"Events input array cannot be empty");var t=e[0].type;return e.every((function(e){return e.type===t}))},getRawCoalescedDocumentMutations:function(e){return e?this._getRawMutations(e).reduce(this._reduceMutation.bind(this),[]):[]},_getRawMutations:function(e){return e.map((function(e){return e.getMutation().getData()}),this)},_reduceMutation:function(e,t){if(0===e.length)return[t];var i=this._partitionOverlappingMutations(e,t),n=i.overlapping,o=i.notOverlapping,r=this._getMergedMutation(n,t,o);0===o.length?o.push(r):r.from[0]<o[0].from[0]?o.unshift(r):r.from[0]>o[o.length-1].from[0]?o.push(r):(o.push(r),o.sort((function(e,t){return e.from[0]-t.from[0]})));var a=this._calculateLineChanges(t);return this._accountForNumberOfLinesChanging(o,r,a)},_getMergedMutation:function(e,t,i){return 0!==e.length?this._mergeOverlappingMutations(e,t):t=this._accountForPreviousLineChanges(t,i)},_accountForPreviousLineChanges:function(e,t){for(var i=0,n=0;n<t.length&&t[n].to[1]<e.from[0];n++)i+=this._calculateLineChanges(t[n]);return e.from[0]-=i,e.from[1]-=i,e},_mergeOverlappingMutations:function(e,t){var i={from:[-1,-1],to:[-1,-1]},n=e[0],o=e[e.length-1];t.from[0]<n.to[0]?i.from[0]=n.from[0]-(n.to[0]-t.from[0]):i.from[0]=n.from[0],t.from[1]>o.to[1]?i.from[1]=o.from[1]+(t.from[1]-o.to[1]):i.from[1]=o.from[1],i.to[0]=Math.min(n.to[0],t.to[0]);var r=this._calculateLineChanges(t);return i.to[1]=Math.max(o.to[1]+r,t.to[1]),i},_calculateLineChanges:function(e){return e.to[1]-e.to[0]-(e.from[1]-e.from[0])},_calculateOverallLineChanges:function(e){if(0===e.length)return 0;var t=e[0],i=e[e.length-1];return i.to[1]-t.to[0]-(i.from[1]-t.from[0])},_accountForNumberOfLinesChanging:function(e,t,i){var n=e.indexOf(t);return this._shiftMutationsBelow(i,n+1,e)},_shiftMutationsBelow:function(e,t,i){return 0===e||i.slice(t).forEach((function(t){t.to[0]+=e,t.to[1]+=e})),i},_partitionOverlappingMutations:function(e,t){if(t.from[1]<e[0].to[0]||t.from[0]>e[e.length-1].to[1])return{overlapping:[],notOverlapping:e};var i=[],n=[];return e.forEach((function(e){this._isRangeOverlapping(e.to,t.from)?i.push(e):n.push(e)}),this),{overlapping:i,notOverlapping:n}},_isRangeOverlapping:function(e,t){return e[0]<=t[0]&&e[1]>=t[0]||t[0]<=e[0]&&t[1]>=e[0]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(null,{constructor:function(){},own:function(e){this._ownHandles||(this._ownHandles=[i.after(this,"destroy",t.hitch(this,(function(){this._ownHandles.forEach((function(e){e.remove()}))})))]),this._ownHandles.push(e)},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(3083),i(1789),i(229)],o=i.dj.d(n,(function(e,t,i,n){var o=function(t){return t.uuid=n.generateUuid(),t.id=t.id?t.id:"dialog_"+t.uuid,t.className="string"==typeof t.className?e.trim(t.className):"",t.dialogType="modal"===t.dialogType?"modal":"modeless",t.hideCloseButton="boolean"==typeof t.hideCloseButton&&t.hideCloseButton,t.closeOnEscape="boolean"!=typeof t.closeOnEscape||t.closeOnEscape,t.resizable="boolean"==typeof t.resizable&&t.resizable,t.draggable="boolean"==typeof t.draggable?t.draggable:"modeless"===t.dialogType,t};return{MODAL:"modal",MODELESS:"modeless",ROLE:i,numberOfOpenDialogs:t.numberOfOpenDialogs.bind(t),createDialog:function(e){return e=o(e),new t(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(222),i(203),i(212),i(214),i(219),i(229),i(468)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){const s="/matlab/settingsChannel/Request";function l(e){for(var t=r.generateUuid();void 0!==e[t];)t=r.generateUuid();return t}var c=new(t([e],{_deferredMap:{},_serviceStarted:!1,_queue:[],_settingIdToCallbackMap:{},_settingValueCache:{},_responseChannel:"",constructor:function(){this._responseChannel="/matlab/settingsChannel/Response/"+r.generateUuid(),this.SettingLevel={UNSPECIFIED:0,ACTIVE:1,TEMPORARY:2,PERSONAL:3,FACTORY:4,UNEXPECTED:5},this._hasTimingMeasured=!1},start:function(){if(!this.isStarted()){for(o.subscribe(this._responseChannel,this._handleServerMessages.bind(this)),o.subscribe("/matlab/settingsChannel/ValueChanged",this._handleValueChanged.bind(this)),this._serviceStarted=!0;this._queue.length>0;){var e=this._queue.pop();this._sendMessage(e.channel,e.message)}a.start("SettingsService")}},_handleValueChanged:function(e){var t=e.data,i=t.name,n=this._settingIdToCallbackMap[i];if(n){var o=this._convertValueToOld(t.newValue,!0),r=this._convertValueToOld(t.oldValue,!0);if(JSON.stringify(r)===JSON.stringify(o))return;n.slice().forEach((function(e){var t={settingGroup:e.settingGroup,setting:e.setting,newValue:o,oldValue:r};e.callback(t)}))}},_sendMessage:function(e,t){this.isStarted()?o.publish(e,t):this._queue.push({channel:e,message:t})},_isaplha:function(e){return null!==e.match(/[a-z]/i)},_isalphanumeric:function(e){return!!e.match(/^[0-9a-zA-Z]+$/)},_isValidPath:function(e){if("string"==typeof e){let t=e.split(".");for(let e=0;e<t.length;e++){if(t[e].length<=0)return!1;if(!this._isaplha(t[e][0]))return!1;if(!this._isalphanumeric(t[e]))return!1}return!0}return!1},_isValidLevel:function(e){return e>=this.SettingLevel.UNSPECIFIED&&e<this.SettingLevel.UNEXPECTED},_isValidLevelForWrite:function(e){return e===this.SettingLevel.TEMPORARY||e===this.SettingLevel.PERSONAL||e===this.SettingLevel.UNSPECIFIED},_splitParentPathAndSettingName:function(e){let t=e.lastIndexOf(".");return t<0?["",e]:[e.substr(0,t),e.substr(t+1,e.length)]},_handleServerMessages:function(e){this._hasTimingMeasured||(a.end("SettingsService"),this._hasTimingMeasured=!0);let t=e.data.type;const i=e.data.uuid;if(this._deferredMap[i])if("ERROR_RESPONSE"===t)this._deferredMap[i].reject(e.data),delete this._deferredMap[i];else{var n=!1;if(e.data.hasOwnProperty("makeCompatible")&&(n=e.data.makeCompatible),n)if("GetAllSettingsMessageResponse"===t||"GetSettingsMessageResponse"===t){var o;for(o=0;o<e.data.settingData.length;o++)e.data.settingData[o].settingValue=this._convertValueToOld(e.data.settingData[o].settingValue,!0);this._deferredMap[i].resolve(e.data.settingData)}else{let t=this._makeCompatibleResult(e.data.settingData);this._deferredMap[i].resolve(t)}else{this._handleUnsupportedTypes(e.data.settingData);let t=e.data.settingData;this._deferredMap[i].resolve(t)}delete this._deferredMap[i]}},_changeMissingToUndefined(e,t){e[t]=void 0},_removeUnsupportedTypedData(e,t){if(!e.hasOwnProperty(t))return;let i=e[t];if("object"==typeof i){if(i.hasOwnProperty("mwtype")&&"missing"===i.mwtype)return void this._changeMissingToUndefined(e,t);if(i.hasOwnProperty("mwdata")){if("NaN"===i.mwdata)return void(e[t]=NaN);if("Inf"===i.mwdata)return void(e[t]=1/0);if("-Inf"===i.mwdata)return void(e[t]=-1/0);e.mwtype;e[t]=new Proxy(e[t],{get(e,i){throw'"'+t+'" has type "'+e.mwtype+'" which is not unsupported by JavaScript Settings API. This type will not be supported until R2021a. Use the older getSetting or setSetting API to get or set personal values'}})}}},_handleUnsupportedTypes:function(e){e.hasOwnProperty("SettingObject")&&(this._removeUnsupportedTypedData(e.SettingObject,"ActiveValue"),this._removeUnsupportedTypedData(e.SettingObject,"PersonalValue"),this._removeUnsupportedTypedData(e.SettingObject,"FactoryValue"),this._removeUnsupportedTypedData(e.SettingObject,"TemporaryValue")),e.hasOwnProperty("SettingValue")&&this._removeUnsupportedTypedData(e,"SettingValue"),e.hasOwnProperty("PreviousValue")&&(this._removeUnsupportedTypedData(e,"SettingValue"),this._removeUnsupportedTypedData(e,"PreviousValue"))},_convertToDotSeparated:function(e,t){let i=e.join(".");return void 0!==t&&(i+="."+t),i},_replaceNanInf:function(e){for(elem of e)"object"==typeof elem&&elem.hasOwnProperty("mwdata")&&("NaN"===elem.mwdata&&(elem=NaN),"Inf"===elem.mwdata&&(elem=1/0),"-Inf"===elem.mwdata&&(elem=-1/0));return e},_convertValueToOld:function(e,t){if("object"==typeof e){if(e.hasOwnProperty("mwtype")&&"missing"===e.mwtype)return;if(e.hasOwnProperty("mwtype")&&("uint8"===e.mwtype||"uint16"===e.mwtype||"uint32"===e.mwtype||"uint64"===e.mwtype))if(t)e=e.mwsize[0]<=1&&e.mwsize[1]<=1?e.mwdata[0]:e.mwdata;else{let t=[],i=0;for(elem of e.mwdata)t[i]={},t[i].fValue=elem,i++;e=t}if(!e.hasOwnProperty("mwtype")||"int8"!==e.mwtype&&"int16"!==e.mwtype&&"int32"!==e.mwtype&&"int64"!==e.mwtype||(e=e.mwsize[0]<=1&&e.mwsize[1]<=1?e.mwdata[0]:e.mwdata),e.hasOwnProperty("mwtype")&&"cell"===e.mwtype&&(e=e.mwdata),("char"===e.mwtype||"string"===e.mwtype&&e.mwsize[0]<=1&&e.mwsize[1]<=1)&&(e=e.mwdata[0]),"string"!==e.mwtype||e.mwsize[0]<=1&&e.mwsize[1]<=1||(e=e.mwdata),e.constructor==Array&&(e=this._replaceNanInf(e)),e.constructor==Array&&null!=e[0]&&e[0].constructor==Array)return e=[].concat.apply([],e)}return e},_makeCompatibleResult:function(e){return oldResultObj={setting:e.SettingNodeName,settingsGroup:e.SettingParentGroup.split(".")},oldResultObj.value=this._convertValueToOld(e.SettingValue,!1),e.hasOwnProperty("PreviousValue")&&(oldResultObj.oldValue=this._convertValueToOld(e.PreviousValue,!1)),oldResultObj},isStarted:function(){return this._serviceStarted},stop:function(){this._serviceStarted=!1},getSettingValue:function(e,t){let n=new i;try{if(0===arguments.length)throw Error("Too few input argument. Argument list is: pathToASetting - is a dot seperated string of settings nodes representing a setting to get. settingLevel - is an optional argument which can either be SettingLevel.PERSONAL or SettingLevel.TEMPORARY.");if(arguments.length>2)throw Error("Too many input arguments. Argument list is: pathToASetting - is a dot seperated string of settings nodes representing a setting to get. settingLevel - is an optional argument which can either be SettingLevel.PERSONAL or SettingLevel.TEMPORARY.");if(!this._isValidPath(e))throw Error("Invalid pathToASetting argument. pathToASetting argument must be a dot seperated string containing alphanumeric characters. Each part of the path argument must begin with an aplhabet.");if("number"==typeof(t=void 0!==t?t:this.SettingLevel.UNSPECIFIED)&&!this._isValidLevel(t))throw Error("Invalid settingLevel argument. settingLevel must be one of SettingLevel.ACTIVE, SettingLevel.TEMPORARY, SettingLevel.PERSONAL, or SettingLevel.FACTORY");const i=l(this._deferredMap),[o,r]=this._splitParentPathAndSettingName(e);let a={type:"GetSettingMessage",uuid:i,channel:this._responseChannel,makeCompatible:!1,SettingGroup:o,SettingName:r,SettingLevel:t};return this._deferredMap[i]=n,this._sendMessage(s,a),n.promise}catch(e){return n.reject(e)}},cacheSettings:function(e){let t=new i;const n=l(this._deferredMap);let o=Object.keys(this._settingValueCache),r=e.filter((function(e){return-1===o.indexOf(e)}));if(0===r.length)return t.resolve(),t.promise;const a={type:"GetSettingsMessage",uuid:n,channel:this._responseChannel,makeCompatible:!0,Settings:r};let c=new i;return this._deferredMap[n]=c,c.then(function(e){e.forEach(function(e){const t=e.settingsGroup+"."+e.setting;this._settingValueCache[t]=e.settingValue;const[i,n]=this._splitParentPathAndSettingName(t),o={settingGroup:i,setting:n,callback:function(e){this._settingValueCache[t]=e.newValue}.bind(this)};this._addEntrySettingIdToCallbackMap(t,o)}.bind(this)),t.resolve()}.bind(this)),this._sendMessage(s,a),t.promise},getSetting:function(e,t){let n=new i,o=this._convertToDotSeparated(e,t);if(this._settingValueCache.hasOwnProperty(o))return n.resolve({value:this._settingValueCache[o]}),n.promise;const r=l(this._deferredMap);let a={type:"GetSettingMessage",uuid:r,channel:this._responseChannel,makeCompatible:!0,SettingGroup:this._convertToDotSeparated(e),SettingName:t,SettingLevel:this.SettingLevel.ACTIVE};return this._deferredMap[r]=n,this._sendMessage(s,a),n.promise},setSettingValue:function(e,t,n){let o=new i;try{if(0===arguments.length)throw Error("Too few input argument. Argument list is: pathToASetting - is a dot seperated string of settings nodes representing a setting to set. settingValue - is the value of a setting. The value on level settingLevel is set. If settingLevel is not provided then PERSONAL level is set. NOTE: settingValue is not optional, if you like to clear a setting value use clearSettingValue. settingLevel - is an optional argument which can either be SettingLevel.PERSONAL or SettingLevel.TEMPORARY.");if(arguments.length>3)throw Error("Too many input arguments. Argument list is: pathToASetting - is a dot seperated string of settings nodes representing a setting to set. settingValue - is the value of a setting. The value on level settingLevel is set. If settingLevel is not provided then PERSONAL level is set. settingLevel - is an optional argument which can either be SettingLevel.PERSONAL or SettingLevel.TEMPORARY.");if(!this._isValidPath(e))throw Error("Invalid pathToASetting argument. pathToASetting argument must be a dot seperated string containing alphanumeric characters. Each part of the path argument must begin with an aplhabet.");if(void 0===t)throw Error('Invalid settingValue argument. settingValue argument cannot be "undefined". Use clearSettingValue instead.');if("number"==typeof(n=void 0!==n?n:this.SettingLevel.UNSPECIFIED)&&!this._isValidLevelForWrite(n))throw Error("Invalid settingLevel argument. settingLevel must be SettingLevel.TEMPORARY, or SettingLevel.PERSONAL");const i=l(this._deferredMap),[r,a]=this._splitParentPathAndSettingName(e);let c={type:"SetSettingMessage",uuid:i,channel:this._responseChannel,makeCompatible:!1,SettingGroup:r,SettingName:a,SettingLevel:n,SettingValue:t};return this._deferredMap[i]=o,this._sendMessage(s,c),o.promise}catch(e){return o.reject(e)}},setSetting:function(e,t,n){let o=new i;"object"==typeof n&&n.constructor==Array&&0==n.length&&(n={mwtype:"cell",mwsize:[1,n.length],mwdata:[]}),"object"==typeof n&&n.constructor==Array&&n.length>=1&&"string"==typeof n[0]&&(n={mwtype:"cell",mwsize:[1,n.length],mwdata:n});const r=l(this._deferredMap);let a={type:"SetSettingMessage",uuid:r,channel:this._responseChannel,makeCompatible:!0,SettingGroup:this._convertToDotSeparated(e),SettingName:t,SettingLevel:this.SettingLevel.PERSONAL,SettingValue:n};return this._deferredMap[r]=o,this._sendMessage(s,a),o.promise},clearSettingValue:function(e,t){let n=new i;try{if(0===arguments.length)throw Error("Too few input argument. Argument list is: pathToASetting - is a dot seperated string of settings nodes representing a setting to clear. settingLevel - is an optional argument which can be either be SettingLevel.PERSONAL or SettingLevel.TEMPORARY.");if(arguments.length>2)throw Error("Too many input arguments. Argument list is: pathToASetting - is a dot seperated string of settings nodes representing a setting to clear. settingLevel - is an optional argument which can be either be SettingLevel.PERSONAL or SettingLevel.TEMPORARY.");if(!this._isValidPath(e))throw Error("Invalid pathToASetting argument. pathToASetting argument must be a dot seperated string containing alphanumeric characters. Each part of the path argument must begin with an aplhabet.");if("number"==typeof(t=void 0!==t?t:this.SettingLevel.UNSPECIFIED)&&!this._isValidLevelForWrite(t))throw Error("Invalid settingLevel argument. settingLevel must be SettingLevel.TEMPORARY, or SettingLevel.PERSONAL");const i=l(this._deferredMap),[o,r]=this._splitParentPathAndSettingName(e);let a={type:"ClearSettingMessage",uuid:i,channel:this._responseChannel,SettingGroup:o,SettingName:r,SettingLevel:t};return this._deferredMap[i]=n,this._sendMessage(s,a),n.promise}catch(e){return n.reject(e)}},get:function(e){let t=new i;try{if(0===arguments.length)throw Error("Too few input argument. Argument list is: path - is a dot seperated string of settings nodes forming a path to a leaf setting or a setting group.");if(arguments.length>1)throw Error("Too many input arguments. Argument list is: path - is a dot seperated string of settings nodes forming a path to a leaf setting or a setting group.");if(!this._isValidPath(e))throw Error("Invalid path argument. path argument must be a dot seperated string containing alphanumeric characters. Each part of the path argument must begin with an alphabet.");const i=l(this._deferredMap),[n,o]=this._splitParentPathAndSettingName(e);let r={type:"GetMessage",uuid:i,channel:this._responseChannel,SettingGroup:n,SettingName:o};return this._deferredMap[i]=t,this._sendMessage(s,r),t.promise}catch(e){return t.reject(e)}},addGroup:function(e,t,n){let o=new i;try{if(0===arguments.length)throw Error("Too few input argument. Argument list is: pathToNewGroup - is a dot seperated string of settings nodes representing a group. hidden - optinal argument indicating if the group to be added is hidden. isReadOnly - optional indicating if the group to be added is readonly.");if(arguments.length>3)throw Error("Too many input arguments. Argument list is: pathToNewGroup - is a dot seperated string of settings nodes representing a group. hidden - optinal argument indicating if the group to be added is hidden. isReadOnly - optional indicating if the group to be added is readonly.");if(!this._isValidPath(e))throw Error("Invalid pathToNewGroup argument. pathToNewGroup argument must be a dot seperated string containing alphanumeric characters. Each part of the pathToNewGroup argument must begin with an aplhabet.");if(void 0!==t&&"boolean"!=typeof t)throw Error("hidden argument must be of type boolean");if(void 0!==n&&"boolean"!=typeof n)throw Error("isReadOnly argument must be of type boolean");const[i,r]=this._splitParentPathAndSettingName(e);t=void 0!==t&&t,n=void 0!==n&&n;const a=l(this._deferredMap);let c={type:"AddMessage",uuid:a,channel:this._responseChannel,SettingGroup:i,SettingName:r,SettingValue:[],isGroup:!0,isVisible:!t,isReadOnly:n,ValidatorFcn:[]};return this._deferredMap[a]=o,this._sendMessage(s,c),o.promise}catch(e){return o.reject(e)}},addSetting:function(e,t,n,o,r){let a=new i;try{if(0===arguments.length)throw Error("Too few input argument. Argument list is: pathToNewSetting - is a dot seperated string of settings nodes representing a the setting to add. personalValue - is the value of setting at personal value. hidden - optinal argument indicating if the group to be added is hidden. isReadOnly - optional indicating if the group to be added is readonly. validatorFcn - optional validation function specification.");if(arguments.length>5)throw Error("Too many input arguments. Argument list is: pathToNewSetting - is a dot seperated string of settings nodes representing a the setting to add. personalValue - is the value of setting at personal value. hidden - optinal argument indicating if the group to be added is hidden. isReadOnly - optional indicating if the group to be added is readonly. validatorFcn - optional validation function specification.");if(!this._isValidPath(e))throw Error("Invalid pathToNewSetting argument. pathToNewSetting argument must be a dot seperated string containing alphanumeric characters. Each part of the pathToNewSetting argument must begin with an aplhabet.");if(null==t&&(t=[]),void 0!==n&&"boolean"!=typeof n)throw Error("hidden argument must be of type boolean");if(void 0!==o&&"boolean"!=typeof o)throw Error("isReadOnly argument must be of type boolean");if(void 0!==r&&r.constructor!=Array&&"string"!=typeof r)throw Error("validatorFcn argument must be an array containing the function name, language name, and package/library name");const[i,c]=this._splitParentPathAndSettingName(e);n=void 0!==n&&n,o=void 0!==o&&o,r=void 0!==r?r:[];const d=l(this._deferredMap);let u={type:"AddMessage",uuid:d,channel:this._responseChannel,SettingGroup:i,SettingName:c,SettingValue:t,isGroup:!1,isVisible:!n,isReadOnly:o,ValidatorFcn:r};return this._deferredMap[d]=a,this._sendMessage(s,u),a.promise}catch(e){return a.reject(e)}},remove:function(e){let t=new i;try{if(0===arguments.length)throw Error("Too few input argument. Argument list is: path - is a dot seperated string of settings nodes representing a setting or a setting group to remove.");if(arguments.length>1)throw Error("Too many input arguments. Argument list is: path - is a dot seperated string of settings nodes representing a setting or a setting group to remove.");if(!this._isValidPath(e))throw Error("Invalid path argument. path argument must be a dot seperated string containing alphanumeric characters. Each part of the path must begin with an alphabet.");const i=l(this._deferredMap),[n,o]=this._splitParentPathAndSettingName(e);let r={type:"RemoveMessage",uuid:i,channel:this._responseChannel,SettingGroup:n,SettingName:o};return this._deferredMap[i]=t,this._sendMessage(s,r),t.promise}catch(e){return t.reject(e)}},listenTo:function(e,t,i){var n=e.join(".")+"."+t,o={settingGroup:e,setting:t,callback:i},r=this._settingIdToCallbackMap,a={_removed:!1,remove:function(){if(!this._removed){var e=r[n],t=e.indexOf(o);e.splice(t,1),this._removed=!0}}};return this._addListener(n,o),a},_addListener:function(e,t){let i={type:"AddListenerMessage",SettingName:e};this._sendMessage(s,i),this._addEntrySettingIdToCallbackMap(e,t)},_addEntrySettingIdToCallbackMap:function(e,t){let i=this._settingIdToCallbackMap[e];i?i.push(t):(i=[t],this._settingIdToCallbackMap[e]=i)},getAllSettingsForSettingGroup:function(e){let t=new i;const n=l(this._deferredMap);let o={type:"GetAllSettingsMessage",uuid:n,channel:this._responseChannel,makeCompatible:!0,SettingGroup:e,SettingLevel:this.SettingLevel.ACTIVE};return this._deferredMap[n]=t,this._sendMessage(s,o),t.promise}}));return o.isStarted()?c.start():n.after(o,"onConnected",(function(){c.start()})),c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{type:new e({type:"string",defaultValue:"",notInAction:!0,required:!0})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{tag:new e({type:"string",defaultValue:"",notInAction:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_startPosition:null,_endPosition:null,constructor:function(e,t){this._startPosition=e,this._endPosition=t},destroy:function(){this._startPosition.destroy(),this._endPosition.destroy()},getStartPosition:function(){return this._startPosition},getEndPosition:function(){return this._endPosition},isEqualTo:function(e){return!!e&&this.constructor===e.constructor&&this._startPosition.isEqualTo(e._startPosition)&&this._endPosition.isEqualTo(e._endPosition)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=Object.freeze({CELL:"cellComponent",ROW:"rowComponent",TBODY:"tbodyComponent",TOOLTIP:"TooltipComponent"});return Object.freeze({ACTIVE_RANGE:"activerange",SELECT_HEADERS:"selectHeaders",SELECT_ROW_HEADERS:"selectRowHeaders",SELECT_CELLS:"selectCells",ROW_HEIGHT:"rowHeight",COL_WIDTH:"colWidth",tableFlexWidth:"tableFlexWidth",origHeaders:"origHeaders",tableBottomLeftAffordanceHeight:"tableBottomLeftAffordanceHeight",TABLE_AFFORDANCE_WIDTH:"tableAffordanceWidth",COLUMN_RESIZED:"columnResized",colResize:"colResize",displaySearch:"displaySearch",dragAndDrop:"dragAndDrop",dragColumns:"dragColumns",dragRows:"dragRows",setDragData:"setDragData",setAvatar:"setAvatar",dragInProgress:"dragInProgress",displayRowHeader:"displayRowHeader",DISPLAY_ROW_HEADER_INDICES:"displayIndices",rowHeaderWidth:"rowHeaderWidth",INTERACTIVE_CHANGE:"interactiveChange",ROW_HEADER_NODE:"rowHeaderNode",VIEWPORT_CHANGED:"viewportChanged",SET_SCROLL_TOP:"setScrollTop",SCROLL_COMPONENT_WIDTH:"scrollComponentWidth",SCROLL_COMPONENT_LEFT:"scrollComponentLeft",SCROLL_CONTAINER:"scrollComponent",TOTAL_COLUMN_WIDTH:"totalColumnWidth",TBODY:"tbody",TABLE_WIDTH:"tableWidth",VIEWPORT_CONTAINER:"viewportContainer",TRANSLATE_X:"translateX",LOGICAL_VIEWPORT:"logicalViewport",TABLE_DISABLED:"tableDisabled",REGISTRATION:"registration",state:{VIEWPORT_CHANGED:"viewportChanged"},publisher:{ROW_HEADER:"rowHeader",SCROLL_BAR_HEIGHT:"scrollBarHeight",SCROLL_BAR_WIDTH:"scrollBarWidth",TOOLTIP_DISMISS:"tooltipDismiss",HEADER_TRANSX:"headerTranslateX",CALCULATED_TABLE_WIDTH:"calculatedTableWidth",HEADER_ROW_HEIGHT:"headerRowHeight",HEADER_ROW_WIDTH:"headerRowWidth",TOP_LEFT_ROW_HEADER:"topLeftHeaderWidth"},subscriber:{ROW_HEADER_PARENT:"rowHeaderParent",ROW_HEADER:"rowHeader",TOP_LEFT:"topLeft",TOOLTIP_ENTER:"tooltipEnter",TOOLTIP_LEAVE:"tooltipLeave",TOOLTIP_GLOBAL_LEAVE:"tooltipGlobalLeave",INSERTION_TABLE_BODY:"insertionBody",INSERTION_COLUMN_HEADER:"insertionColumnHeader",DRAG_LEAVE:"dragLeave",DND_START:"dndStart",TABLE_BOTTOM_LEFT_AFFORDANCE:"tableBottomLeftAffordance",HEADER_RIGHT_AFFORDANCE:"headerRightAffordance",TABLE_HAS_VERT_SCROLL:"tableHasVertScroll",HEADER_MIN_HEIGHT:"headerMinHeight",HEADER_TRANSFORMX:"headerTransformX",TBODY_TRANSFORM:"tbodyTransform",TABLE_WIDTH:"tableWidth",HEADER_WIDTH:"headerWidth"},protected:{VIEW_DATA:"viewData",ROW_METADATA:"rowMetaData",component:e,UPDATE_CUSTOM_PROPS_FUNC:"updateCUstomPropsFunction",INIT_CUSTOM_PROPS_FUNC:"initializeCustomPropsFunction",PENDING_FOCUS_FUNC:"pendingFuncForView",FOCUSED:"focused",SELECTED:"selected",testId:"data-test-id",SORTED:"_sortIndicator",SORTABLE:"sortable",WIDGET_TYPE:"widgetType",TYPE:{TABLE:"Table",TREETABLE:"TreeTable"},HEADER_MENU_AFFORDANCE:"headerMenuAffordance",ACTIVE_CELL:"activeCell",PIVOT:"pivot",EDIT_STATE:"editState",publisher:{CELL_ENTER:"cellEnter",DND_IN_ACTION:"dndInAction"},GRID_STYLE:"gridStyle",GROUPED_COLUMN_HEADERS:"groupedColumnHeaders",COLUMN_CONFIG:"colconfig",COL_EDIT_STATE:"colEditState",ROW_HEADER_EDIT_STATE:"rowEditState",EDIT_VALIDATION:"editValidation",EDIT_PROCESSING:"editProcessing",USE_DATA_FIELDS:"useEditorRendererDataFields",RESIZE_SELECTION:"resizeSelection",REORDER_ROWS:"reorderRows",REPARENT_ROWS:"reparentRows",CAN_DRAG:"canDrag",CAN_DROP:"canDrop"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(204),i(400),i(453),i(618),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";var a={SYMBOL:"symbol",DELIMITER:"delimiter",NUMBER:"number",CODE:"code",IDENTIFIER:"id",TEXT:"mtext",WHITESPACE:"whitespace"};var s={ATOM:"atom",MULTILINEEQUATION:"multilineequation",PLACEHOLDER_ATOM:"placeholder-atom",PLACEHOLDER_ROW:"placeholder",SHALLOW:"shallow",STATIC:"static",STRUCTURE:"structure",STRUCTURE_PART:"structure-part"};function l(e){if(e[n.MWMMLX_TEMPLATE]||e[n.MWMMLX_VARNAME]?e["data-category"]=s.STRUCTURE:!e["data-category"]&&e[n.MWMMLX_DATACATEGORY]&&(e["data-category"]=e[n.MWMMLX_DATACATEGORY]),e["data-category"])return e["data-category"];switch(e.className){case"MathRoot":return"structure-part";case"MathAction":case"MathStyle":return s.SHALLOW;case"MathRow":return s.PLACEHOLDER_ROW;case"MathText":return e.kind===a.CODE&&(e.kind=a.IDENTIFIER),s.ATOM}return"structure"}function c(e){return"MathMatrix"===e.className&&e["data-category"]===s.STRUCTURE_PART}var d=["id","code","number"];return{CATEGORY:s,TEXT_KIND:a,categorizeNode:l,ensureParentEditable:function(e){var t=e,i=e.parent;return i&&l(i)===s.PLACEHOLDER_ROW||(t=o.createNode("MathRow",{id:r.generateUuid()}),i&&function(e,t,i){var n=e.children.indexOf(t);-1!==n&&(e.children[n]=i,i.parent=e)}(i,e,t),t.children=[e],e.parent=t,t["data-category"]=s.PLACEHOLDER_ROW),t},findStructure:function(e){for(var t=[];e;){if(l(e)===s.STRUCTURE)return{structure:e,path:t};var i=e.parent;if(!i)return;var n=i.children.indexOf(e);e=i,t.unshift(n)}},getNodeListForSelection:function(e){var i=[];return e.node.children?i=e.node.children.slice(e.left,e.right):"MathText"===e.node.className?i.push(o.createNode("MathText",t.mixin(e.node.getContents(),{text:e.node.text.substring(e.left,e.right)}))):i.push(e.node),i},isEmptyEquation:function(e){return"MathRoot"===e.className&&1===e.children.length&&1===e.children[0].children.length&&l(e.children[0].children[0])===s.PLACEHOLDER_ATOM},isEmptyRow:function(e){return e&&"MathRow"===e.className&&e.children&&0===e.children.length},isMatrix:c,isCases:function(e){var t=e.parent;return c(e)&&2===t.children.length},isMatrixWithDelimiters:function(e,t){if(!c(e))return!1;var n=e.parent;if(n&&n.children&&3===n.children.length){var o=n.children[0],r=n.children[2];if(i.isOpeningDelimiter(o.symbolName)&&o.symbolName===t+"left"&&i.isClosingDelimiter(r.symbolName)&&r.symbolName===t+"right")return!0}return!1},isMultiLineEquation:function(e){var t=e.children[0];return 1===t.children.length&&"MathMatrix"===t.children[0].className},isNonEmptyRow:function(e){return e&&"MathRow"===e.className&&e.children&&e.children.length>0},isOperatorMinus:function(e){return this.qualifiesAsOperator(e)&&"-"===e.symbolName},isPlaceholderRow:function(e){return e&&"MathRow"===e.className&&e["data-category"]===s.PLACEHOLDER_ROW},kindOfText:function(e){return e.match(/^\s+$/)?a.WHITESPACE:"~!+*<=>/-,'".indexOf(e)>=0?a.SYMBOL:"[](){}".indexOf(e)>=0?a.DELIMITER:i.unicodeMap[e]?a.SYMBOL:e.match(/^[0-9]+$/)?a.NUMBER:a.IDENTIFIER},matchTemplate:function i(n,o){return e.every(Object.keys(o),(function(r){var a=o[r];return a instanceof RegExp?n[r]&&a.test(n[r]):t.isArray(a)?a.length===n[r].length&&e.every(a,(function(e,t){var o=n.children[t];return e?i(o,e):!o})):a===n[r]}))},mergeIfCompatible:function(e,t,i){"atom"!==l(t)||"atom"!==l(i)||d.indexOf(t.kind)<0||d.indexOf(i.kind)<0||t.kind!==i.kind&&"number"===t.kind||e.mergeNodes(t.id,i.id)},moveChildren:function(e,t,i,n){void 0!==i?(t.children=e.children.slice(i,n),e.children.splice(i,n-i)):(t.children=e.children,e.children=[]),t.children.forEach((function(e){e&&(e.parent=t)}))},moveChildrenIntoPlaceholderRow:function(e){var t=o.createNode("MathRow",{id:r.generateUuid(),"data-category":s.PLACEHOLDER_ROW});return this.moveChildren(e,t),t.parent=e,e.children=[t],e},qualifiesAsIdentifier:function(e){return e&&e.isIdentifier()},qualifiesAsOperator:function(e){return i.isOperator(e.symbolName)||i.isOperator(e.text)},qualifiesAsPrefixOperator:function(e){return this.qualifiesAsOperator(e)&&("+"===e.symbolName||"-"===e.symbolName)},setCategories:function(e,t){if(e["data-category"]=t[0],e.children)for(var i=0;i<e.children.length&&i<t.length-1;i+=1)e.children[i]&&(e.children[i]["data-category"]=t[i+1])}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(360),i(316),i(307),i(216),i(351),i(352),i(330),i(769),i(653),i(432),i(343),i(353),i(335),i(1280),i(1281),i(421),i(607),i(259),i(770),i(3018)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){return e(b.validate([t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,y]),{baseClass:"mwWidget mwLabel",templateString:C,_paddingAndBorder:0,_setTabIndexOnNode:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(282),i(313),i(469),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e,t,i){this.node=e||null,this.offset=t||0,this.setRightAligned(i),this._pendingChangeEvent=null},destroy:function(){this.isValid()&&this.isLive()&&n.detachPosition(this.node,this),this.node=null},_ignoreOffset:!1,setIgnoreOffset:function(){this._ignoreOffset=!0},isLinePosition:function(){return this._ignoreOffset},onChange:function(e){},_fireOnChange:function(){var e=this._pendingChangeEvent;this._pendingChangeEvent=null,this.onChange(e)},getNode:function(){return this.node},getOffset:function(){return this.offset},setPosition:function(e,t){var i=this.isLive();i&&n.detachPosition(this.node,this),this.node=e,this.offset=t,i&&n.attachPosition(this.node,this)},isAtEdge:function(){return this.isAtLeftEdge()||this.isAtRightEdge()},isAtLeftEdge:function(){return 0===this.offset},isAtRightEdge:function(){return this.offset===this.node.maxOffset()},setRightAligned:function(e){this.align=e?1:0},isRightAligned:function(){return 1===this.align},isValid:function(){return this.node&&this.node.rootContainer()&&this.offset>=0&&this.offset<=this.node.maxOffset()},isEqualTo:function(e){return e&&this.offset===e.offset&&this.node===e.node},setLive:function(e){this.node&&(!1!==e?this.isLive()||n.attachPosition(this.node,this):this.isLive()&&n.detachPosition(this.node,this))},isLive:function(){return n.isPositionAttached(this)},print:function(e){var t=this.node.getText();if(t=t.substring(0,this.offset)+"|"+t.substring(this.offset),e)if(this.offset<e-1)t=t.substring(0,e)+"...";else{var i=Math.floor(e/2);t="..."+t.substring(this.offset-i,this.offset+i)+(this.offset+i<t.length?"":"...")}return t},getLineColumn:function(){return{line:this.getLine(),column:this.getColumn()}},getLine:function(){if(!this.isValid())return-1;var e=this.getNode().rootContainer(),t=this._getLine(e);return t>=0?t+1:-1},_getLine:function(e){return i.indexOf(e.parent.children,e)},getColumn:function(){if(!this.isValid())return-1;var e=this.getNode(),t=1;return e.offsetInContainer&&(t+=e.offsetInContainer()+this.getOffset()),t},handleNodeChange:function(e){if(this.node&&e.node===this.node){var t;switch(e.type){case o.INSERT_TEXT:t=this._handleInsertTextNodeEvent(e);break;case o.DELETE_TEXT:t=this._handleDeleteTextNodeEvent(e);break;case o.SPLIT_NODE:t=this._handleSplitNodeEvent(e);break;case o.MERGE_NODE:t=this._handleMergeNodeEvent(e);break;case o.UPDATE_ATTRIBUTES:t=this._handleUpdateAttributesEvent(e)}return r.assert(this.isValid(),"Position invalid after handleNodeChange("+e.type+")!"),t&&this._notifyChange(e.type,t.nodeHasChanged,t.offsetHasChanged),this.node}},_handleInsertTextNodeEvent:function(e){var t=!1;return e.offset-this.align<this.offset&&(this.offset+=e.length,t=!0),{nodeHasChanged:!1,offsetHasChanged:t}},_handleDeleteTextNodeEvent:function(e){var t=!1;return e.offset<this.offset&&(e.offset+e.length>this.offset?this.offset=e.offset:this.offset-=e.length,t=!0),{nodeHasChanged:!1,offsetHasChanged:t}},_handleSplitNodeEvent:function(e){var t=!1,i=!1;return this._ignoreOffset?t=e.nodeChanged&&!(e.lineStartOrEnd<this.align):e.offset-this.align<this.offset?(this.offset-=e.offset,i=!0,t=!e.nodeChanged):t=e.nodeChanged,t&&(this.node=e.newNode),{nodeHasChanged:t,offsetHasChanged:i}},_handleMergeNodeEvent:function(e){var t=!1;return!this._ignoreOffset&&e.hasOwnProperty("offset")&&(this.offset+=e.offset,t=e.offset>0),r.assert(e.newNode,"New node missing in Position.handleNodeChange(MERGE_NODE)."),e.newNode&&this._ignoreOffset?this.node=e.newNode.rootContainer():this.node=e.newNode,{nodeHasChanged:!0,offsetHasChanged:t}},handleDeleteNodeEvent:function(e){if(r.assert(e.newNode,"New node missing in Position.handleNodeChange(DELETE_NODE)."),this.align&&e.newEndNode)this.node=e.newEndNode,this.offset=e.newEndOffset;else{var t=e.newNode;if(t&&t.children&&t.children.length>0){const i=t.getPositionFromOffset(e.newOffset);this.node=i.node,this.offset=i.offset}else this.node=t,this.offset=e.newOffset}return this._ignoreOffset&&(this.node=this.node.rootContainer(),this.offset=0),this._notifyChange(e.type,!0,!1),this.node},_handleUpdateAttributesEvent:function(e){var t=e.node.maxOffset(),i=!1;return this.offset>t&&(i=!0,this.offset=t),{nodeHasChanged:!1,offsetHasChanged:i}},handleSiblingNodeChange:function(e,t){var i=!1,n=!1;if(this._ignoreOffset)throw new Error("MW.rtc.model.Position.handleSiblingNodeChange does not support Line Positions");var o=e.newNodes,r=o[0],a=o[o.length-1];if(t||!this.isAtLeftEdge()||this.isRightAligned()){if(t&&this.isAtRightEdge()&&this.isRightAligned()){var s=a.endNode();s&&(this.node=s,this.offset=this.node.maxOffset(),n=!0,i=!0)}}else{var l=r.startNode();l&&(this.node=l,i=!0)}return this._notifyChange(e.type,i,n),this.node},_notifyChange:function(e,t,i){(i||t)&&(this._pendingChangeEvent?(this._pendingChangeEvent.nodeHasChanged=this._pendingChangeEvent.nodeHasChanged||t,this._pendingChangeEvent.offsetHasChanged=this._pendingChangeEvent.offsetHasChanged||i):(this._pendingChangeEvent={nodeHasChanged:t,offsetHasChanged:i},n.queueEvent(this._fireOnChange.bind(this))))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({ScrollComponentMounted:"scrollMounted",internal:{SCROLL_COMPONENT_MOUNTED:"scrollMounted",SCROLL_COMPONENT_UPDATED:"scrollUpdated",INTERACTIVE_CELL_CLICK:"interactiveCellClick",TABLE_RESIZE:"tableResized",COL_RESIZE_DONE:"colResized",TABLE_MOUNT:"tableMounted",TABLE_SCROLL:"tableScroll",NODE_PUBLISH:"nodePublish",NODE_SUBSCRIBE:"nodeSubscribe",NODE_UNSUBSCRIBE:"nodeUnsubscribe",BUFFER_DATA:"viewDataChanged",DATA_SIZE:"dataSizeChanged",ROW_META:"pagedRowMetaDataChanged",TBODY_MOUNT:"tbodyMount",COL_HEADER_UPDATE:"colHeaderUpdate",SET_LAST_COLUMN:"setLastColumn",COMPUTE_TRANSLATEX:"computeTranslateX",TABLE_WIDTH:"tableWidth",TABLE_RIGHT_CLICK:"tableRightClick",SELECTION_EVENT:"selectionEvent",DRAG_STARTED:"dragStarted",DRAG_END:"dragEnd",COLUMN_REORDERED:"columnReordered",ROW_DROPPED:"rowDropped"},exposed:{SELECTION_CHANGED:"selectionChanged",HEADER_MENU:"headerMenuRequested",SELECTED_ACTION:"selectedAction",CONTEXT_MENU:"contextMenu",COLUMN_RESIZED:"columnResized",DOUBLE_CLICKED:"doubleClicked",ICON_ACTION:"iconAction",DROP_IN_PROGRESS:"dropInProgress",DROP_COMPLETED:"dropCompleted",DROP_FAILED:"dropFailed"},protected:{TABLE_CELL_CLICK:"tableCellClick",TABLE_DBL_CLICK:"tableDblClick",TABLE_KEY_PRESS:"tableKeyPress",TABLE_CELL_FOCUS:"tableCellFocus",CELL_DOM_FOCUS_CACHE:"cellDomFocusCache",CELL_FOCUS_KEY:"cellFocusKeyPress",CELL_FOCUS_CLICK:"cellFocusClick",CELL_SELECTION_CLICK:"cellSelectionClick",CELL_SELECTION_KEY:"cellSelectionKeyPress",CELL_DBL_CLICK:"cellDoubleClick",TABLE_SELECTED_ACTION:"tableSelectedAction",NODE_NOTIFY:"nodeNotify",FORCE_LAYOUT:"forceLayout",HEADER_RECTS:"headerRects",ROW_CELL_RECTS:"rowCellRects",ROW_RECTS:"rowRects",COL_HEADER_CLICK:"colHeaderClick",ROW_SELECTION_CLICK:"rowSelectionClick",HEADER_CLICKED:"headerClicked",DOCUMENT_MOUSE_MOVE_INTERVAL:"docMouseMoveInterval",DATA_AREA_MOUSE_MOVE:"dataAreaMouseMove",DOCUMENT_MOUSE_UP:"docMouseUp",SORT_AFFORDANCE_CLICKED:"sortAffordanceClicked",TABLE_COLUMN_SORT:"tableColumnSort",COL_RESIZE:"colResize",COL_HEADER_MOUNT:"colHeaderDidMount",RESIZE_SELECTION_BEGIN:"ResizeSelectionBegin",RESIZE_SELECTION_END:"ResizeSelectionEnd"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(211),i(240)],o=i.dj.d(n,(function(e,t,i,n){return t("dijit._Container",null,{buildRendering:function(){this.inherited(arguments),this.containerNode||(this.containerNode=this.domNode)},addChild:function(e,t){var n=this.containerNode;if(t>0){for(n=n.firstChild;t>0;)1==n.nodeType&&t--,n=n.nextSibling;n?t="before":(n=this.containerNode,t="last")}i.place(e.domNode,n,t),this._started&&!e._started&&e.startup()},removeChild:function(e){if("number"==typeof e&&(e=this.getChildren()[e]),e){var t=e.domNode;t&&t.parentNode&&t.parentNode.removeChild(t)}},hasChildren:function(){return this.getChildren().length>0},_getSiblingOfChild:function(t,i){var n=this.getChildren();return n[e.indexOf(n,t)+i]},getIndexOfChild:function(t){return e.indexOf(this.getChildren(),t)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(568)],o=i.dj.d(n,(function(e){var t=Object.freeze({HELP:"Help",SPL1:"Spl1",SPL2:"Spl2",DO_IT:"DoIt",DONT_DO_IT:"DontDoIt",CANCEL:"Cancel",APPLY:"Apply",REVERT:"Revert"}),i={NO_DEFAULT_ACTION:"NoDefaultAction",TYPE:t,HELP:Object.freeze({type:t.HELP,label:e.help,"data-test-id":"HelpButton"}),OK:Object.freeze({type:t.DO_IT,label:e.ok,"data-test-id":"OkButton"}),YES:Object.freeze({type:t.DO_IT,label:e.yes,"data-test-id":"YesButton"}),SUBMIT:Object.freeze({type:t.DO_IT,label:e.submit,"data-test-id":"SubmitButton"}),SAVE:Object.freeze({type:t.DO_IT,label:e.save,"data-test-id":"SaveButton"}),FIND:Object.freeze({type:t.DO_IT,label:e.find,"data-test-id":"FindButton"}),CREATE:Object.freeze({type:t.DO_IT,label:e.create,"data-test-id":"CreateButton"}),DONT_SAVE:Object.freeze({type:t.DONT_DO_IT,label:e.dontSave,"data-test-id":"DontSaveButton"}),NO:Object.freeze({type:t.DONT_DO_IT,label:e.no,"data-test-id":"NoButton"}),CANCEL:Object.freeze({type:t.CANCEL,label:e.cancel,"data-test-id":"CancelButton"}),CLOSE:Object.freeze({type:t.CANCEL,label:e.close,"data-test-id":"CloseButton"}),APPLY:Object.freeze({type:t.APPLY,label:e.apply,"data-test-id":"ApplyButton"}),REVERT:Object.freeze({type:t.REVERT,label:e.revert,"data-test-id":"RevertButton"})};return Object.freeze(i),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(282),i(573)],o=i.dj.d(n,(function(e,t,i){return{getStyleAttributesFromRange:function(e,t){var i={};return this.leafNodesInRangeIterator(e,t,(function(e){var t=e.getStyleAttributes();for(var n in t)t.hasOwnProperty(n)&&(i.hasOwnProperty(n)?i[n]!==t[n]&&(i[n]=void 0):i[n]=t[n])})),i},isNodeInstanceOfNodes:function(e,t){return t.some((function(t){return e instanceof t}))},getLineage:function(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t},getLineageReverse:function(e){return this.getLineage(e).reverse()},getCommonAncestors:function(e,t){for(var i=this.getLineage(e),n=this.getLineage(t),o=0;o<i.length;o+=1)if(i[o]!==n[o])return i.slice(0,o);return i},getParagraphNodesInRange:function(e,t,i){e=e.rootContainer(),t=t.rootContainer();var n=[];return this.siblingNodesInRangeIterator(e,t,(function(e){(!i||e instanceof i)&&n.push(e)})),n},getNodesInRange:function(e,t){var i=[];return this.leafNodesInRangeIterator(e,t,(function(e){i.push(e)})),i},getParagraphNodesInRangeAsSet:function(e,i){e=e.rootContainer(),i=i.rootContainer();var n=t.createSet();return this.siblingNodesInRangeIterator(e,i,(function(e){n.add(e)})),n},getParagraphFormat:function(e){var t=e.startNode.rootContainer(),i=e.endNode.rootContainer(),n=t.containerType();return i.containerType()!==n?"none":(this.siblingNodesInRangeIterator(t,i,(function(e){if(e.isTextContainerNode()&&e.containerType()!==n)return n="none",!0})),n)},getLineNumberForNode:function(e,t){return t.getLineNumber(e.rootContainer())},getContainersOfNodeType:function(e,t){var i=[];return t.root.children.forEach((function(t){this.isInType(t,e)&&i.push(t)}),this),i},getFullRange:function(e,t){e.isTextContainerNode()&&(e=e.startNode()),t.isTextContainerNode()&&(t=t.endNode());var i=t.maxOffset();return{start:{node:e,offset:0},end:{node:t,offset:i}}},getLinesAndLineNodesInRangeByFilters:function(e,t,i,n){for(var o=[],r=[],a=t;a<=i;a++){var s=e.getLineNode(a);n.some((function(e){return e(s)}),this)&&(o.push(s),r.push(a))}return 0===o.length?null:{lineNodes:o,lineNumbers:r}},getNodesAndAllDescendents:function(e){const t=[];return this._addNodesAndDescendents(t,e),t},_addNodesAndDescendents:function(e,t){if(t&&0!==t.length)for(let i=0,n=t.length;i<n;i++){const n=t[i];e.push(n),this._addNodesAndDescendents(e,n.children)}},searchNodeById:function(e,t){var i,n;if(t.uid===e)return t;if(t.children)for(n=0;n<t.children.length;n+=1)if(i=this.searchNodeById(e,t.children[n]))return i;return i},isContinuousFormat:function(e){return"none"!==this.getParagraphFormat(e)},isInType:function(e,t){return!!e&&(!!e.isInstanceOf(t)||!!e.parent&&this.isInType(e.parent,t))},getClosestAncestorOfType:function(e,t){return e?e.isInstanceOf(t)?e:e.parent?this.getClosestAncestorOfType(e.parent,t):null:null},isRangeNodeType:function(e,t,i){var n=t.rootContainer();if(!(n instanceof i))return!1;var o=!0,r=e.rootContainer();return this.siblingNodesInRangeIterator(r,n,(function(e){if(!(e instanceof i))return o=!1,!0})),o},isNodeTypeInRange:function(e,t,i){var n=t.rootContainer();if(n instanceof i)return!0;var o=!1,r=e.rootContainer();return this.siblingNodesInRangeIterator(r,n,(function(e){if(e instanceof i)return o=!0,!0})),o},isFreestandingOpaque:function(e){if(e.getText().trim()!==e.textContainer().getText().trim())return!1;var t,i,n=e.textContainer();for(t=0;t<n.children.length;t+=1)if((i=n.children[t]).containsTextNodes()||!i.isTextNode()&&i.className!==e.className)return!1;return!0},isNode:function(e,t){return t=t||i,e&&e.isInstanceOf(t)},allNodesInRangeWritable:function(e){return this.getNodesInRange(e.getStartPosition().getNode(),e.getEndPosition().getNode()).every((function(e){return!e.isReadOnly()}))},forAllDescendants:function(e,t){e.forEach((function(e){t(e),e.children&&this.forAllDescendants(e.children,t)}),this)},siblingNodesInRangeIterator:function(e,i,n){if(this._assert(e&&i,"Start node or end node not provided"),this._assert(e.parent===i.parent,"Start node and end node should be in the same layer"),e===i)return!!n(e);for(var o=e.parent.children,r=e,a=t.indexOf(o,r);r;){if(n(r))return!0;if(r===i)break;r=o[a+=1]}return!1},textContainerNodesInRangeIterator:function(e,t,i){var n=null;this.leafNodesInRangeIterator(e,t,(function(e){var t=e.textContainer();return t!==n&&(!!i(t)||void(n=t))}))},leafNodesInRangeIterator:function(e,t,i){if(this._assert(e&&t,"Start node or end node not provided"),e===t)return i(e);var n=e.rootContainer(),o=t.rootContainer();return n&&o?this.siblingNodesInRangeIterator(n,o,function(r){if(r.children&&r.children.length>0){var a=e,s=t;return r===n&&r!==o?s=n.endNode():r!==n&&r===o?a=o.startNode():n!==o&&(a=r.startNode(),s=r.endNode()),this._leafNodesInRangeIterator(a,s,i)}}.bind(this)):this._leafNodesInRangeIterator(e,t,i)},_leafNodesInRangeIterator:function(e,t,i){for(var n=e;n;){if(i(n))return!0;if(n===t)break;n=n.nextNode()}return!1},setNodeAttributes:function(e,t){for(var i in t)e.hasOwnProperty(i)&&(e[i]=t[i]);return e},setAttributesForNodes:function(e,t){e.forEach((function(e){return this.setNodeAttributes(e,t)}),this)},prevNode:function(e){return e?e.prevNode():null},nextNode:function(e){return e?e.nextNode():null},prevContainer:function(e){return e?e.rootContainer().previousSibling():null},nextContainer:function(e){return e?e.rootContainer().nextSibling():null},_assert:function(e,t){if(!e)throw new Error(t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3486)],o=i.dj.d(n,(function(e){var t=null;return{getInstance:function(){return null===t&&(t=new e),t},setCustomInstance:function(i,n,o){this._destroyCurrentInstance(),t=new e(i,n,o)},clearCustomInstance:function(){this._destroyCurrentInstance(),t=null},_destroyCurrentInstance:function(){null!==t&&t.destroy()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(328),i(272),i(2780),i(236),i(1034),i(224),i(203),i(306),i(227),i(228),i(211),i(765),i(218),i(285),i(2781)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return l("dijit.layout.ContentPane",[i,n,o],{href:"",content:"",extractContent:!1,parseOnLoad:!0,parserScope:e._scopeName,preventCache:!1,preload:!1,refreshOnShow:!1,loadingMessage:"<span class='dijitContentPaneLoading'><span class='dijitInline dijitIconLoading'></span>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'><span class='dijitInline dijitIconError'></span>${errorState}</span>",isLoaded:!1,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,_setTitleAttr:null,stopParser:!0,template:!1,markupFactory:function(e,t,i){var n=new i(e,t);return!n.href&&n._contentSetter&&n._contentSetter.parseDeferred&&!n._contentSetter.parseDeferred.isFulfilled()?n._contentSetter.parseDeferred.then((function(){return n})):n},create:function(e,i){if((!e||!e.template)&&i&&!("href"in e)&&!("content"in e)){for(var n=(i=d.byId(i)).ownerDocument.createDocumentFragment();i.firstChild;)n.appendChild(i.firstChild);e=t.delegate(e,{content:n})}this.inherited(arguments,[e,i])},postMixInProperties:function(){this.inherited(arguments);var e=f.getLocalization("dijit","loading",this.lang);this.loadingMessage=r.substitute(this.loadingMessage,e),this.errorMessage=r.substitute(this.errorMessage,e)},buildRendering:function(){this.inherited(arguments),this.containerNode||(this.containerNode=this.domNode),this.domNode.removeAttribute("title")},startup:function(){this.inherited(arguments),this._contentSetter&&s.forEach(this._contentSetter.parseResults,(function(e){e._started||e._destroyed||!t.isFunction(e.startup)||(e.startup(),e._started=!0)}),this)},_startChildren:function(){s.forEach(this.getChildren(),(function(e){e._started||e._destroyed||!t.isFunction(e.startup)||(e.startup(),e._started=!0)})),this._contentSetter&&s.forEach(this._contentSetter.parseResults,(function(e){e._started||e._destroyed||!t.isFunction(e.startup)||(e.startup(),e._started=!0)}),this)},setHref:function(t){return e.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0"),this.set("href",t)},_setHrefAttr:function(e){return this.cancel(),this.onLoadDeferred=new c(t.hitch(this,"cancel")),this.onLoadDeferred.then(t.hitch(this,"onLoad")),this._set("href",e),this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0,this.onLoadDeferred},setContent:function(t){e.deprecated("dijit.layout.ContentPane.setContent() is deprecated. Use set('content', ...) instead.","","2.0"),this.set("content",t)},_setContentAttr:function(e){return this._set("href",""),this.cancel(),this.onLoadDeferred=new c(t.hitch(this,"cancel")),this._created&&this.onLoadDeferred.then(t.hitch(this,"onLoad")),this._setContent(e||""),this._isDownloaded=!1,this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&-1==this._xhrDfd.fired&&this._xhrDfd.cancel(),delete this._xhrDfd,this.onLoadDeferred=null},destroy:function(){this.cancel(),this.inherited(arguments)},destroyRecursive:function(e){this._beingDestroyed||this.inherited(arguments)},_onShow:function(){if(this.inherited(arguments),this.href&&!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){return this.cancel(),this.onLoadDeferred=new c(t.hitch(this,"cancel")),this.onLoadDeferred.then(t.hitch(this,"onLoad")),this._load(),this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),!0);var e=this,i={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};t.isObject(this.ioArgs)&&t.mixin(i,this.ioArgs);var n,o=this._xhrDfd=(this.ioMethod||p.get)(i);o.then((function(t){n=t;try{return e._isDownloaded=!0,e._setContent(t,!1)}catch(t){e._onError("Content",t)}}),(function(t){return o.canceled||e._onError("Download",t),delete e._xhrDfd,t})).then((function(){return e.onDownloadEnd(),delete e._xhrDfd,n})),delete this._hrefChanged},_onLoadHandler:function(e){this._set("isLoaded",!0);try{this.onLoadDeferred.resolve(e)}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);try{this.onUnload()}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message)}},destroyDescendants:function(e){this.isLoaded&&this._onUnloadHandler();var t=this._contentSetter;s.forEach(this.getChildren(),(function(t){t.destroyRecursive?t.destroyRecursive(e):t.destroy&&t.destroy(e),t._destroyed=!0})),t&&(s.forEach(t.parseResults,(function(t){t._destroyed||(t.destroyRecursive?t.destroyRecursive(e):t.destroy&&t.destroy(e),t._destroyed=!0)})),delete t.parseResults),e||h.empty(this.containerNode),delete this._singleChild},_setContent:function(e,i){e=this.preprocessContent(e),this.destroyDescendants();var n=this._contentSetter;n&&n instanceof a._ContentSetter||(n=this._contentSetter=new a._ContentSetter({node:this.containerNode,_onError:t.hitch(this,this._onError),onContentError:t.hitch(this,(function(e){var t=this.onContentError(e);try{this.containerNode.innerHTML=t}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e)}}))}));var o=t.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:!e.domNode&&this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang,textDir:this.textDir},this._contentSetterParams||{}),r=n.set(t.isObject(e)&&e.domNode?e.domNode:e,o),s=this;return g(r&&r.then?r:n.parseDeferred,(function(){delete s._contentSetterParams,i||(s._started&&(s._startChildren(),s._scheduleLayout()),s._onLoadHandler(e))}))},preprocessContent:function(e){return e},_onError:function(e,t,i){this.onLoadDeferred.reject(t);var n=this["on"+e+"Error"].call(this,t);i?console.error(i,t):n&&this._setContent(n,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(214),i(203),i(227),i(228),i(211),i(217),i(213),i(221),i(223),i(204),i(206),i(1276),i(867),i(541),i(31),i(248)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){function m(){this._popupWrapper&&(r.destroy(this._popupWrapper),delete this._popupWrapper)}var _=i(null,{_stack:[],_beginZIndex:1e3,_idGen:1,_repositionAll:function(){if(this._firstAroundNode){var e=this._firstAroundPosition,t=a.position(this._firstAroundNode,!0),i=t.x-e.x,n=t.y-e.y;if(i||n){this._firstAroundPosition=t;for(var o=0;o<this._stack.length;o++){var r=this._stack[o].wrapper.style;r.top=parseFloat(r.top)+n+"px","auto"==r.right?r.left=parseFloat(r.left)+i+"px":r.right=parseFloat(r.right)-i+"px"}}this._aroundMoveListener=setTimeout(d.hitch(this,"_repositionAll"),i||n?10:50)}},_createWrapper:function(e){var i=e._popupWrapper,n=e.domNode;if(!i){(i=r.create("div",{class:"dijitPopup",style:{display:"none"},role:"region","aria-label":e["aria-label"]||e.label||e.name||e.id},e.ownerDocumentBody)).appendChild(n);var o=n.style;o.display="",o.visibility="",o.position="",o.top="0px",e._popupWrapper=i,t.after(e,"destroy",m,!0),"ontouchend"in document&&u(i,"touchend",(function(e){/^(input|button|textarea)$/i.test(e.target.tagName)||e.preventDefault()})),i.dojoClick=!0}return i},moveOffScreen:function(e){var t=this._createWrapper(e),i=a.isBodyLtr(e.ownerDocument),n={visibility:"hidden",top:"-9999px",display:""};return n[i?"left":"right"]="-9999px",n[i?"right":"left"]="auto",s.set(t,n),t},hide:function(e){var t=this._createWrapper(e);s.set(t,{display:"none",height:"auto",overflowY:"visible",border:""});var i=e.domNode;"_originalStyle"in i&&(i.style.cssText=i._originalStyle)},getTopPopup:function(){for(var e=this._stack,t=e.length-1;t>0&&e[t].parent===e[t-1].widget;t--);return e[t]},open:function(e){var t=this._stack,i=e.popup,r=i.domNode,g=e.orient||["below","below-alt","above","above-alt"],m=e.parent?e.parent.isLeftToRight():a.isBodyLtr(i.ownerDocument),_=e.around,v=e.around&&e.around.id?e.around.id+"_dropdown":"popup_"+this._idGen++;if(!e.doNotClose)for(;t.length&&(!e.parent||!n.isDescendant(e.parent.domNode,t[t.length-1].widget.domNode));)this.close(t[t.length-1].widget);var b=this.moveOffScreen(i);i.startup&&!i._started&&i.startup();var y,C=a.position(r);if("maxHeight"in e&&-1!=e.maxHeight)y=e.maxHeight||1/0;else{var T=f.getEffectiveBox(this.ownerDocument),E=_?a.position(_,!1):{y:e.y-(e.padding||0),h:2*(e.padding||0)};y=Math.floor(Math.max(E.y,T.h-(E.y+E.h)))}if(C.h>y){var S=s.getComputedStyle(r),w=S.borderLeftWidth+" "+S.borderLeftStyle+" "+S.borderLeftColor;s.set(b,{overflowY:"scroll",height:y+"px",border:w}),r._originalStyle=r.style.cssText,r.style.border="none"}o.set(b,{id:v,style:{zIndex:this._beginZIndex+t.length},class:"dijitPopup "+(i.baseClass||i.class||"").split(" ")[0]+"Popup",dijitPopupParent:e.parent?e.parent.id:""}),0==t.length&&_&&(this._firstAroundNode=_,this._firstAroundPosition=a.position(_,!0),this._aroundMoveListener=setTimeout(d.hitch(this,"_repositionAll"),50)),l("config-bgIframe")&&!i.bgIframe&&(i.bgIframe=new p(b));var I=i.orient?d.hitch(i,"orient"):null,A=_?h.around(b,_,g,m,I):h.at(b,e,"R"==g?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],e.padding,I);b.style.visibility="visible",r.style.visibility="visible";var x=[];return x.push(u(b,"keydown",d.hitch(this,(function(t){if(t.keyCode==c.ESCAPE&&e.onCancel)t.stopPropagation(),t.preventDefault(),e.onCancel();else if(t.keyCode==c.TAB){t.stopPropagation(),t.preventDefault();var i=this.getTopPopup();i&&i.onCancel&&i.onCancel()}})))),i.onCancel&&e.onCancel&&x.push(i.on("cancel",e.onCancel)),x.push(i.on(i.onExecute?"execute":"change",d.hitch(this,(function(){var e=this.getTopPopup();e&&e.onExecute&&e.onExecute()})))),t.push({widget:i,wrapper:b,parent:e.parent,onExecute:e.onExecute,onCancel:e.onCancel,onClose:e.onClose,handlers:x}),i.onOpen&&i.onOpen(A),A},close:function(t){for(var i=this._stack;t&&e.some(i,(function(e){return e.widget==t}))||!t&&i.length;){var n,o=i.pop(),r=o.widget,a=o.onClose;for(r.bgIframe&&(r.bgIframe.destroy(),delete r.bgIframe),r.onClose&&r.onClose();n=o.handlers.pop();)n.remove();r&&r.domNode&&this.hide(r),a&&a()}0==i.length&&this._aroundMoveListener&&(clearTimeout(this._aroundMoveListener),this._firstAroundNode=this._firstAroundPosition=this._aroundMoveListener=null)}});return g.popup=new _}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(206),i(257),i(245),i(209),i(232),i(301),i(235)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=0,l=0;function c(e,t){if(!e)return!1;var i=["double","single","int8","int16","int32","int64","uint8","uint16","uint32","uint64","logical","half"].some((function(t){return t===e}));return!i&&t&&t.indexOf("isNumericObject")>-1&&(i=!0),i}function d(e){return["cell","char","categorical","string","nominal","cellstr"].some((function(t){return t===e}))}function u(e){return"ordinal"===e||"nominal"===e}function h(e){return e&&e.indexOf("isCellStr")>-1}return{mergeObjects:function(e,t){var i,n={};for(i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);for(i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n},setDebug:function(e){l=e},logDebug:function(e){l&&console.log(e)},isDebug:function(){return l},runFactoryInitInMATLAB:function(e,t,i,r){try{var a=e+(s+=1);i&&o.registerResponseHandler("FEvalResponse:"+a,i,this),r&&o.registerFaultHandler("FEval:"+a,r,this),o.sendMessage({FEval:{function:t,dequeMode:"ppe"}},{},a)}catch(e){n.error(e),n.trace(e.stack)}},preventPropagationOnWheel:function(t,i){var n=null;return t&&(n=e(t,"wheel",(function(e){e.stopPropagation(),i&&e.preventDefault()}))),n},getColumnClassForDisplay:function(e){var t=e;return"cellstr"===e&&(t="cell"),t},getParsedData:function(e,t,i,n){try{var o,r=e,a=new Array(t),s=0;for(s=0;s<a.length;s+=1)a[s]=new Array(i);for(r=this.cleanJSONDataFromServer(r,t,i),o=0;o<t;o+=1){var l,c=r[o];for(l=0;l<i;l+=1){var d="NaN",u=Array.isArray(c)?c[l]:c;try{var h=n&&n[l]&&n[l].hasOwnProperty("GroupColumnSize")?parseInt(n[l].GroupColumnSize):1,p=JSON.parse(u);Array.isArray(p)?d=h===p.length?p.map((function(e){return{value:e.toString()}})):[{value:u}]:p.hasOwnProperty("value")?"NaN"!==(d=p.value)&&Array.isArray(JSON.parse(d))&&(d=(d=JSON.parse(d)).map((function(e){return e}))):d=[{value:String(p)}]}catch(e){d=[{value:u}]}a[o][l]=d}}}catch(e){return null}return a},cleanJSONDataFromServer:function(e,t,i){return(e=this.convertVectorJSONDataToArray(e,t,i)).forEach((function(e,t,i){Array.isArray(e)?e.forEach((function(e,t,i){i[t]=e.value||e})):i[t]=e.value})),e},convertVectorJSONDataToArray:function(e,t,i){return 1===e.length||1===t?[e]:1===i?e=e.map((function(e){return[e]})):e},formatString:function(e,t){return e&&(e.indexOf("\n")>-1||e.indexOf("\t")>-1)&&(e=(e=e.replace(/\n/g,a.NEWLINE_CHARACTER)).replace(/\t/g,a.TAB_CHARACTER)),e=e.replace(/ /g," ")},isTypeNumeric:c,isTypeTable:function(e){return["table","timetable"].some((function(t){return t===e}))},isTypeTime:function(e){return"datetime"===e||"duration"===e||"calendarDuration"===e},isTypeText:d,isTypeTimeTable:function(e){return"timetable"===e},isGroupingType:u,getDefaultColumnWidth:function(e){return"logical"===e?35:75},constructColumnHeader:function(e,t,i,n){return{label:e,dataIndex:t,width:{value:i||this.getDefaultColumnWidth(n),unit:"px"}}},getViewTypeForLoad:function(e){return this.isTypeTable(e)?"variableeditor_client/TableViewModel":"variableeditor_client/ArrayViewModel"},preventEventDefaults:function(e){t.isMiddle(e)||(e.stopPropagation(),e.preventDefault())},formatNumeric:function(e){if("Inf"===e||"-Inf"===e)return e;var t=parseFloat(e),i=parseInt(e);return t!==i?Math.abs(t)<.001||Math.abs(t)>9999?t.toExponential(4):t.toString():Math.abs(i)>9999?i.toExponential(4):i.toString()},isValid:function(e){return null!=e},isIELikeBrowser:function(){return navigator.userAgent.indexOf("Edge")>=0||i("ie")},getCustomEditor:function(){return function(e){var t=new r,i=t.emit.bind(t),n=document.createElement("input"),o=e;this.on=t.on.bind(t),n.value=e||"",n.addEventListener("blur",(function(e){i("editComplete",{newValue:this.value,oldValue:o.value})})),n.addEventListener("keydown",(function(e){switch(e.stopPropagation(),e.keyCode){case 27:i("editCanceled");break;case 13:!function(e){""===e||e===o[0].value?i("editCanceled"):(e=a.formatString(e),i("editComplete",{newValue:e,oldValue:o[0].value}))}(this.value)}})),this.getDomNode=function(e){var t=JSON.parse(JSON.parse(e).value);return t=(t=t[0].value).substring(1,t.length-1),n.value=a.formatString(t),n},this.setFocus=function(){n.focus()},this.destroy=function(){n.removeEventListener("blur",this._handleBlur),n.removeEventListener("keydown",this._handleKeyDown),n=void 0}}},isCategorical:function(e){return"categorical"===e||"ordinal"===e||"nominal"===e},isTypeTextFiltering:function(e){return d(e)||u(e)||"logical"===e},isTypeNumericFiltering:function(e){return c(e)&&"logical"!==e||"datetime"===e||"duration"===e},getDimsFromVarSize:function(e){var t={},i=e.split(/['x'|\u00D7]/);return i&&e&&(i.length>0&&(t.rows=parseInt(i[0],10)),i.length>1&&(t.columns=parseInt(i[1],10))),t},forceRedraw:function(e){e.style.display="none";var t=e.offsetHeight;return e.style.display="block",t},parseTableJSONData:function(e){var t=JSON.parse(e).value;return JSON.parse(t)},getViewTypeBasedOnDataType:function(e,t){return this.isTypeNumeric(e,t)?"numeric":e},isTextLikeArrayView:function(e,t){return"string"===e||"categorical"===e||"ordinal"===e||"nominal"===e||"datetime"===e||"duration"===e||"calendarDuration"===e||"cell"===e&&h(t)},isRichTabularView:function(e,t){return"cell"===e&&!h(t)||"struct"===e||"object"===e},getEditorValueFromJSONData:function(e){var t=JSON.parse(e);try{if(t.value&&!t.editorValue){var i=JSON.parse(t.value);t=Array.isArray(i)?i[0]:i}}catch(e){}return t.editorValue}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(245),i(242),i(227),i(217),i(213),i(211)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){t.add("rtl-adjust-position-for-verticalScrollBar",(function(e,t){var n=i.body(t),r=a.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},n,"last"),s=a.create("div",{style:{overflow:"hidden",direction:"ltr"}},r,"last"),l=0!=o.position(s).x;return r.removeChild(s),n.removeChild(r),l})),t.add("position-fixed-support",(function(e,t){var n=i.body(t),r=a.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},n,"last"),s=a.create("span",{style:{position:"fixed",left:"0",top:"0"}},r,"last"),l=o.position(s).x!=o.position(r).x;return r.removeChild(s),n.removeChild(r),l}));var s={getBox:function(e){var n,r,a="BackCompat"==(e=e||i.doc).compatMode?i.body(e):e.documentElement,l=o.docScroll(e);if(t("touch")){var c=s.get(e);n=c.innerWidth||a.clientWidth,r=c.innerHeight||a.clientHeight}else n=a.clientWidth,r=a.clientHeight;return{l:l.x,t:l.y,w:n,h:r}},get:function(e){if(t("ie")&&s!==document.parentWindow){e.parentWindow.execScript("document._parentWindow = window;","Javascript");var i=e._parentWindow;return e._parentWindow=null,i}return e.parentWindow||e.defaultView},scrollIntoView:function(e,a){try{var s=(e=n.byId(e)).ownerDocument||i.doc,l=i.body(s),c=s.documentElement||l.parentNode,d=t("ie")||t("trident"),u=t("webkit");if(e==l||e==c)return;if(!(t("mozilla")||d||u||t("opera")||t("trident")||t("edge"))&&"scrollIntoView"in e)return void e.scrollIntoView(!1);var h="BackCompat"==s.compatMode,p=Math.min(l.clientWidth||c.clientWidth,c.clientWidth||l.clientWidth),f=Math.min(l.clientHeight||c.clientHeight,c.clientHeight||l.clientHeight),g=u||h?l:c,m=a||o.position(e),_=e.parentNode,v=function(e){return!(d<=6||7==d&&h)&&(t("position-fixed-support")&&"fixed"==r.get(e,"position").toLowerCase())},b=this,y=function(e,t,i){"BODY"==e.tagName||"HTML"==e.tagName?b.get(e.ownerDocument).scrollBy(t,i):(t&&(e.scrollLeft+=t),i&&(e.scrollTop+=i))};if(v(e))return;for(;_;){_==l&&(_=g);var C=o.position(_),T=v(_),E="rtl"==r.getComputedStyle(_).direction.toLowerCase();if(_==g)C.w=p,C.h=f,g==c&&(d||t("trident"))&&E&&(C.x+=g.offsetWidth-C.w),C.x=0,C.y=0;else{var S=o.getPadBorderExtents(_);C.w-=S.w,C.h-=S.h,C.x+=S.l,C.y+=S.t;var w=_.clientWidth,I=C.w-w;w>0&&I>0&&(E&&t("rtl-adjust-position-for-verticalScrollBar")&&(C.x+=I),C.w=w),w=_.clientHeight,I=C.h-w,w>0&&I>0&&(C.h=w)}T&&(C.y<0&&(C.h+=C.y,C.y=0),C.x<0&&(C.w+=C.x,C.x=0),C.y+C.h>f&&(C.h=f-C.y),C.x+C.w>p&&(C.w=p-C.x));var A,x,N=m.x-C.x,L=m.y-C.y,D=N+m.w-C.w,M=L+m.h-C.h;D*N>0&&(_.scrollLeft||_==g||_.scrollWidth>_.offsetHeight)&&(A=Math[N<0?"max":"min"](N,D),E&&(8==d&&!h||t("trident")>=5)&&(A=-A),x=_.scrollLeft,y(_,A,0),A=_.scrollLeft-x,m.x-=A),M*L>0&&(_.scrollTop||_==g||_.scrollHeight>_.offsetHeight)&&(A=Math.ceil(Math[L<0?"max":"min"](L,M)),x=_.scrollTop,y(_,0,A),A=_.scrollTop-x,m.y-=A),_=_!=g&&!T&&_.parentNode}}catch(t){console.error("scrollIntoView: "+t),e.scrollIntoView(!1)}}};return t("extend-dojo")&&e.setObject("dojo.window",s),s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2759),i(1334)],o=i.dj.d(n,(function(e,t){var i=null;return function(){if(null===i)if(t.isUndockedWindow()&&window.opener&&window.opener._motwApp){var n=window.opener._motwApp;i={fileDataService:n.fileDataService,executionService:n.executionService,editorService:n.editorService,editorVersioningService:n.editorVersioningService}}else i=new e,window._motwApp=i;return i}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(233),i(903)],o=i.dj.d(n,(function(e,t){return{DEFAULT_FILE_PATH:"untitled.mlx",isMatlabCodeFile:function(i){return"function"==typeof i.getFileName&&(n=i.getFileName(),e.checkFileNameExtension(n,[t.FILE_EXTENSIONS.M,t.FILE_EXTENSIONS.MLX,t.FILE_EXTENSIONS.MLAPP]));var n},isPlainCodeFile:function(i){return"function"==typeof i.getFileName&&(n=i.getFileName(),e.checkFileNameExtension(n,[t.FILE_EXTENSIONS.M,t.FILE_EXTENSIONS.MLAPP]));var n},isCLikeFile:function(i){return"function"==typeof i.getFileName&&(n=i.getFileName(),e.checkFileNameExtension(n,[t.FILE_EXTENSIONS.C,t.FILE_EXTENSIONS.H,t.FILE_EXTENSIONS.CPP,t.FILE_EXTENSIONS.HPP]));var n},isLiveCodeFile:function(i){return"function"==typeof i.getFileName&&e.checkFileNameExtension(i.getFileName(),t.FILE_EXTENSIONS.MLX)},getAbsoluteFilePathFromBackingStore:function(e){return"function"==typeof e.getAbsoluteFilePath?e.getAbsoluteFilePath():""},accountForPFilesAndCompareToBackingStore:function(e,t){return this.mapPFileToMFile(t)===e.getUniqueId()},mapPFileToMFile:function(i){return e.checkFileNameExtension(i,t.FILE_EXTENSIONS.P)?e.getFileNameNoExtension(i)+"."+t.FILE_EXTENSIONS.M:i},hasFileLocation:function(e){return e.file&&e.file.fileInfo.location},getShortDisplayName:function(t){return this.hasFileLocation(t)||this.isLiveCodeFile(t)?t.getFileName():e.getFileNameNoExtension(t.getFileName())},getLongName:function(t){return this.hasFileLocation(t)||this.isLiveCodeFile(t)?this.getAbsoluteFilePathFromBackingStore(t):e.getFileNameNoExtension(t.getFileName())}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(221),i(1342),i(3429),i(3430)],o=i.dj.d(n,(function(e,t,i,n,o){var r;return r={createMap:function(){return this.isES6MapSupported()?new Map:new i},isES6MapSupported:function(){return void 0!==window.Map},createSet:function(){return this._isES6SetSupported()?new Set:new n},createWeakSet:function(){return this._isES6WeakSetSupported()?new WeakSet:new o},_isES6SetSupported:function(){return void 0!==window.Set},_isES6WeakSetSupported:function(){return void 0!==window.WeakSet},indexOf:function(t,i){return e.indexOf(t,i)}},t("chrome")>=52&&(r.indexOf=function(e,t){return e.indexOf(t)}),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(234),i(274),i(333),i(822),i(823),i(499),i(334),i(932),i(1124)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return{GENERATED_CODE_UPDATE_CONTEXT:{CHANGED:"changed",RESET:"reset",VARIABLE_RENAME:"variableRenamed"},getLiveAppNode:function(e){return this.getLiveAppLineNode(e)||this.getLiveAppInlineNode(e)},getLiveAppInlineNode:function(e){var t=e.getNode();return this.isLiveAppInlineNode(t)?t:null},getLiveAppLineNode:function(e){var t=e.getNode().rootContainer();return this.isLiveAppLineNode(t)?t:null},getLiveAppLines:function(e){var t=e.getStartPosition().getNode().rootContainer(),n=e.getEndPosition().getNode().rootContainer();return i.getParagraphNodesInRange(t,n,a)},getLiveAppLineNodeFromViewModel:function(e,t){return this.getLiveAppLineNodeForNodeFromViewModel(e.getNode(),t)},getLiveAppLineNodeForNodeFromViewModel:function(e,t){var i=s.getLineage(e,t)[0];return this.isLiveAppLineNode(i)?i:null},getGeneratedCodeLineNodes:function(e){var t=this.getCodeRange(e);return t?n.paragraphNodesInRange(t):[]},getStartPositionOfLiveApp:function(e){return e.startPosition()},getEndPositionOfLiveApp:function(e){return this.hasGeneratedCode(e)?this.getEndPositionOfGeneratedCode(e):e.endPosition()},getStartPositionOfGeneratedCode:function(e){var t=this.getStartLineOfGeneratedCode(e);return t?t.startPosition():null},getStartLineOfGeneratedCode:function(e){var t=this.getCodeRange(e);return t?t.getStartPosition().getNode():null},getEndPositionOfGeneratedCode:function(e){var t=this.getEndLineOfGeneratedCode(e);return t?t.endPosition():null},getEndLineOfGeneratedCode:function(e){var t=this.getCodeRange(e);return t?t.getEndPosition().getNode():null},setLiveAppLineTracker:function(t,i,n){this.removeLiveAppLineTracker(t);var o=t.getStore();return o.linePosition=i,o.linePositionTracker=e.after(i,"onChange",n,!0),o.linePositionTracker},removeLiveAppLineTracker:function(e){var t=e.getStore();t.linePosition&&(t.linePosition.destroy(),t.linePosition=null),t.linePositionTracker&&(t.linePositionTracker.remove(),t.linePositionTracker=null)},removeGeneratedCode:function(e,t){if(this.getCodeRange(e)){var i=this.getStartPositionOfGeneratedCode(e).getLineColumn(),n=this.getEndPositionOfGeneratedCode(e).getLineColumn();this.setReadOnly(e,!1,t),t.deleteText(i.line,i.column,n.line,n.column)}},setReadOnly:function(e,t,i){var n=this.getCodeRange(e);if(n)for(var o=n.getStartPosition().getLine(),r=n.getEndPosition().getLine(),a=o;a<=r;a++)i.setReadOnlyLine(a,t)},hasGeneratedCodeInView:function(e){return this.hasGeneratedCode(e)&&this.isGeneratedCodeDisplayed(e)&&e.getWidget().hasCode()},hasGeneratedCode:function(e){return!!this.getCodeRange(e)},isGeneratedCodeDisplayed:function(e){return!this.isCollapsed(e)&&this.isShowCode(e)},isShowCode:function(e){return this.isInControlsAndCodeView(e)||this.isInCodeOnlyView(e)},isInControlsAndCodeView:function(e){return e.getContext("view")===l.CONTROLS_AND_CODE},isInControlsOnlyView:function(e){return e.getContext("view")===l.CONTROLS_ONLY},isInCodeOnlyView:function(e){return e.getContext("view")===l.CODE_ONLY},isAutorun:function(e){return!!e.getContext("autorun")},setCodeRange:function(e,t){this.removeCodeRange(e),e.getStore().codeRange=t},removeCodeRange:function(e){var t=e.getStore();t.codeRange&&(t.codeRange.destroy(),t.codeRange=null)},getGeneratedCode:function(e){var i=this.getCodeRange(e);if(!i)return"";var n=i.getStartPosition().getNode(),o=i.getEndPosition().getNode();return t.getCodeInNodeRange(n,o)},getTextFromCodeRange:function(e){var t=this.getCodeRange(e);return t?n.paragraphNodesInRange(t).map((function(e){return e.getText()})).join("\n"):""},getCodeRange:function(e){var t=e.getStore().codeRange;if(!t)return null;var i=t.getStartPosition(),n=t.getEndPosition(),o=t.getStartPosition().getLine(),r=t.getEndPosition().getLine();return-1===o||-1===r||this.isLiveAppLineNode(i.getNode())||this.isLiveAppLineNode(n.getNode())?null:t},isLiveAppInlineNode:function(e){return e.isInstanceOf(o)},isLiveAppIntegratedInlineNode:function(e){return e instanceof r},isLiveAppLineNode:function(e){return e instanceof a},isGeneratedCodeLine:function(e,t){return this.getGeneratedCodeLineNodes(t).indexOf(e)>=0},setDirtyState:function(e,t){e.getStore().isDirty=t},isDirty:function(e){return e.getStore().isDirty},isCollapsed:function(e){var t=e.getStore().foldCandidate;return t&&t.isFolded()},compareContext:function(e,t,i,n,o,r){var a=e.getContext("code")===t,s=e.getContext("appVariables")===i,l=e.getContext("appOperation")===n,c=e.getContext("appState")===o,d=e.getContext("lineOffsetForUpdate")===r;return{codeSame:a,outputsSame:s,summarySame:l,stateSame:c,lineOffsetForUpdateSame:d,allSame:a&&s&&l&&c&&d}},getAppName:function(e){var t,i=e.getTaskId(),n=e.getAppIdentifier()||"";if(i&&(t=c.getEntryWithUniqueId(i)),t||(t=c.getEntryWithAppIdentifier(n)),t)return t.label;if(i)return i;var o=n.split(".");return o[o.length-1]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(447)],o=i.dj.d(n,(function(e){return{toJSBoolean:function(e){return"boolean"==typeof e?e:"on"===e},toMLBoolean:function(e){return!0===e||"on"===e?"on":"off"},toJSRGB:function(e){var t;if("none"===e)t="rgba(0, 0, 0, 0)";else{var i=[];e.forEach((function(e,t){i[t]=Math.round(255*e)})),t="rgb("+i[0]+", "+i[1]+", "+i[2]+")"}return t},toMLRGB:function(t){var i=e.fromRgb(t);i||(i=e.fromHex(t));var n=i.toRgb();return[n[0]/255,n[1]/255,n[2]/255]},toJSRGBArray:function(e){return null==e||"none"===e?[0,0,0]:e.map((function(e){return Math.round(255*e)}))},toHexColorCode:function(e){var t="#";return this.toJSRGBArray(e).forEach((function(e){var i=e.toString(16);t+=1===i.length?"0"+i:i})),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(864)],o=i.dj.d(n,(function(e,t){"use strict";return function(i,n,o,r){var a=i&&"function"==typeof i.then,s=a&&i instanceof t;if(!a)return arguments.length>1?n?n(i):i:(new e).resolve(i);if(!s){var l=new e(i.cancel);i.then(l.resolve,l.reject,l.progress),i=l.promise}return n||o||r?i.then(n,o,r):i}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(221),i(223),i(277),i(215),i(360),i(316),i(307),i(216),i(238),i(257),i(607),i(351),i(330),i(887),i(352),i(343),i(1063),i(335),i(545),i(433),i(409),i(258),i(272),i(3140),i(514),i(259),i(3141)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x){var N=e([r,c,s,S,w,b],{baseClass:"mwWidget mwComboBoxPopup",templateString:'<div tabindex="0"><div data-dojo-attach-point="menuItemsNode"></div></div>',getChildren:function(){return Array.prototype.slice.call(this.menuItemsNode.childNodes)}});return e(A.validate([r,a,s,l,c,h,p,f,g,m,_,v,b,y,C,T]),{baseClass:"mwWidget mwComboBox",templateString:x,editable:!1,text:"",height:22,width:150,maxHeight:500,ORIENTATION_VALUES:{below:["below","below-alt"],vertical:["below","below-alt","above","above-alt"],horizontal:["after","before"]},closeOnWindowResize:!0,blurAfterSelection:!1,_boundWindowResizeHandler:null,_boundWindowScrollHandler:null,constructor:function(e){if(e=e||{},this._textField=new E({editable:!1,disabled:!0}),this.own(this._textField),this.own(t(this._textField,"typing",this._handleTextFieldTyping.bind(this)),t(this._textField,"keydown",this._handleTextFieldKeyDown.bind(this)),t(this._textField,"keyup",this._handleTextFieldKeyUp.bind(this))),this.menu=new N({}),this.own(this.get("menu")),this.menu.onOpen=function(){window.addEventListener("scroll",this._boundWindowScrollHandler,!0)}.bind(this),this.menu.onClose=function(){window.removeEventListener("scroll",this._boundWindowScrollHandler,!0)}.bind(this),this._isTextEmpty=!0,this._pendingValue=null,e&&!1===this.get("editable")&&e.value&&!e.items)throw new Error("Value cannot be set on a non-editable combo box without having items");this._boundWindowResizeHandler=this._handleWindowResize.bind(this),this._boundWindowScrollHandler=this._handleWindowScroll.bind(this)},postCreate:function(){this.inherited(arguments),this.own(t(this.domNode,"mousedown",this.focus.bind(this)),t(this._textField.inputNode,"blur",this._handleTextFieldBlur.bind(this),!0),t(this.domNode,"blur",this._handleDomNodeBlur.bind(this),!0),t(this.domNode,"keydown",this._handleDomNodeKeyDown.bind(this)),t(this.menu.menuItemsNode,"click",this._handleMenuClick.bind(this)),t(this.menu.menuItemsNode,"keydown",this._handleMenuKeyDown.bind(this)),t(this._textField,"mouseover",this._handleTextFieldMouseover.bind(this)),t(this._textField,"change",this._handleTextFieldChange.bind(this),!0)),this._menuNodeMouseDownHandler||(this._menuNodeMouseDownHandler=this._handleArrowNodeMouseDown.bind(this),this.menuNode.addEventListener("mousedown",this._menuNodeMouseDownHandler)),!0===this.get("disabled")&&(this.menuNode.removeEventListener("mousedown",this._menuNodeMouseDownHandler),this._menuNodeMouseDownHandler=null),this.menu.domNode.addEventListener("blur",this._handleMenuBlur.bind(this),!0),window.addEventListener("resize",this._boundWindowResizeHandler,!0),void 0!==this.get("items")&&0!==this.get("items").length||this.set("items",[]),this.set("menuOrientation","vertical")},_handleWindowResize:function(){!0===this.closeOnWindowResize&&!0===this._comboBoxMenuOpened&&this.closeMenu()},_handleWindowScroll:function(e){if(this._comboBoxMenuOpened&&e.srcElement!==this.menu.domNode.parentElement&&!this.active){var t=e.srcElement===document;if(t&&document.activeElement&&document.activeElement.classList.contains("mwMenuItem")){var i=document.activeElement.getBoundingClientRect();(Math.abs(window.innerHeight-i.bottom)<=i.height||Math.abs(i.top)<=i.height)&&(t=!1)}if(!t)for(var n=this.domNode;null!==n;){if(n===e.srcElement){t=!0;break}n=n.parentElement}t&&this.closeMenu()}},_setCloseOnWindowResizeAttr:function(e){if("boolean"!=typeof e)throw new Error("Input value expected to be of type 'boolean'.");this._set("closeOnWindowResize",e)},startup:function(){this.inherited(arguments),this.menu.startup(),this._textField.startup(),this._isResized||this.resize()},destroy:function(){window.removeEventListener("resize",this._boundWindowResizeHandler,!0),window.removeEventListener("scroll",this._boundWindowScrollHandler,!0),this._boundWindowResizeHandler=null,this._boundWindowScrollHandler=null,this.inherited(arguments)},buildRendering:function(){this.inherited(arguments),this._textField.placeAt(this.textFieldContainerNode),this.inputNode=this._textField.inputNode,this.focusNode=this.domNode},_isDescendant:function(e,t){if(e===t)return!0;for(var i=t.parentNode;null!=i;){if(i===e)return!0;i=i.parentNode}return!1},_handleArrowNodeMouseDown:function(e){!0!==this._comboBoxMenuOpened?0===e.button&&this._openComboBoxMenu():this.closeMenu(),this._arrowNodeWasClicked=!0,setTimeout(function(){this._arrowNodeWasClicked=!1}.bind(this),200)},closeMenu:function(e){this.get("blurAfterSelection")||e?(i("ff")&&this._isDescendant(this.menu.domNode,document.activeElement)&&document.activeElement.blur(),i("safari")&&this._isDescendant(this.menu.domNode,document.activeElement)&&setTimeout((function(){document.activeElement.blur()}),200)):d.focus(this.focusNode),o.close(this.get("menu"))},_closeMenuOnBlur:function(e){setTimeout(function(){if(!this._isDescendant(this.domNode,document.activeElement)&&!this._isDescendant(this.menu.domNode,document.activeElement)){if(this._comboBoxMenuOpened&&this.closeMenu(!0),this._beingDestroyed)return;var e=this.get("value"),t=this._getSelectedItemFromLabel(e);t||(t={label:"",value:""}),!0===this.get("editable")&&""!==this.inputNode.value&&this.inputNode.value!==t.label&&this.inputNode.value!==this.get("value")?(t=this._getSelectedItemFromLabel(this.inputNode.value))&&void 0!==t.index?this.set("value",t.value):this.set("value",this.inputNode.value):""===this.inputNode.value&&""!==this.get("value")&&!0===this.get("editable")&&this.set("value","");var i=this.get("value");e!==i&&this._triggerChangeEvent("value",e,i)}}.bind(this),0)},_handleMenuBlur:function(e){this._closeMenuOnBlur(e)},_handleMenuItemMouseEnter:function(e){I.isFocusable(e.target)&&d.focus(e.target)},_handleTextFieldBlur:function(e){!0===this.get("editable")&&this._closeMenuOnBlur(e)},_handleTextFieldMouseover:function(e){!this.get("disabled")&&this._isDescendant(this.menu.domNode,document.activeElement)&&d.focus(this.focusNode)},_handleTextFieldChange:function(e){e.stopPropagation(),e.preventDefault()},_handleDomNodeBlur:function(e){!1===this.get("editable")&&this._closeMenuOnBlur(e)},_handleUpAndDownArrow:function(e){var t,i=this.get("menu").getChildren(),o=void 0!==this._get("value")?this._getSelectedItemFromValue(this._get("value")):void 0;if(e.keyCode===n.DOWN_ARROW){for(this._comboBoxMenuOpened||this._openComboBoxMenu(),t=o&&void 0!==o.index?o.index%i.length:0;t<i.length;t++)if(this._isKeyboardNav(i[t])){d.focus(i[t]);break}e.preventDefault()}else if(e.keyCode===n.UP_ARROW){for(this._comboBoxMenuOpened||this._openComboBoxMenu(),t=o&&void 0!==o.index?o.index%i.length:i.length-1;t>=0;t--)if(this._isKeyboardNav(i[t])){d.focus(i[t]);break}e.preventDefault()}},_handleDomNodeKeyDown:function(e){!1===this.get("editable")&&!0==!this.get("disabled")&&(this._handleUpAndDownArrow(e),e.keyCode!==n.SPACE&&e.keyCode!==n.ENTER||(!0!==this._comboBoxMenuOpened?this._openComboBoxMenu():this.closeMenu(),e.stopPropagation(),e.preventDefault())),e.keyCode===n.ESCAPE&&(!0===this._comboBoxMenuOpened&&(e.stopPropagation(),e.preventDefault()),this.closeMenu())},_setDisabledAttr:function(e){this.inherited(arguments),!0===e?(this._removeMenuNodeMouseDownHandler(),this._comboBoxMenuOpened&&this.closeMenu()):this._addMenuNodeMouseDownHandler(),!0===this.get("editable")&&this._textField.set("disabled",e),e?(this.domNode.removeAttribute("tabIndex"),this._textField.focusNode.removeAttribute("tabIndex")):this.get("editable")?(this.domNode.removeAttribute("tabIndex"),this._textField.focusNode.setAttribute("tabIndex","0")):(this._textField.focusNode.removeAttribute("tabIndex"),this.domNode.setAttribute("tabIndex","0"))},_handleTextFieldKeyDown:function(e){if(this._gotTextFieldKeyDownForEnterOrSpace=(e.keyCode===n.ENTER||e.keyCode===n.SPACE)&&!this.get("disabled"),!0===this.get("editable")&&this._handleUpAndDownArrow(e),!0===this.get("editable")&&e.keyCode===n.ENTER){var t=this.inputNode.value;this._isTextEmpty=!0;var i=this._getSelectedItemFromLabel(t),o=this.get("value");i&&void 0!==i.index?this.set("value",i.value):this.set("value",this.inputNode.value);var r=this.get("value");o!==r&&this._triggerChangeEvent("value",o,r),this.closeMenu()}},_openComboBoxMenu:function(e){var t=void 0!==this._get("value")?this._getSelectedItemFromValue(this._get("value")):void 0;void 0!==t&&this.get("menu").getChildren().length>0&&(this.get("menu").getChildren()[t.index].classList.add("mwComboBoxSelectedMenuItem"),e&&e.noFocus||this.get("menu").getChildren()[t.index].focus()),e&&e.typing||this.get("menu").getChildren().forEach((function(e,t){"none"===e.style.display&&(e.style.display="")})),this.menu.domNode.style.minWidth=this.domNode.getBoundingClientRect().width-2+"px";var i=o.open({parent:this,popup:this.get("menu"),around:this.domNode,orient:this.menuOrientation,onClose:function(){!0==!this._destroyed&&(this.domNode.classList.remove("mwHasMenuOpened"),this.domNode.classList.contains("mwHasMenuOpenedTop")?this.domNode.classList.remove("mwHasMenuOpenedTop"):this.domNode.classList.remove("mwHasMenuOpenedBottom")),this._comboBoxMenuOpened=!1,this.menu&&this.menu.domNode&&this.menu.domNode.parentNode&&(this.menu.domNode.parentNode.style.overflowX="visible",this.menu.domNode.parentNode.style.overflowY="visible",this.menu.domNode.parentElement.classList.remove("mwDropDownHasOpenedUpwards"),this.menu.domNode.parentElement.classList.remove("mwDropDownHasOpenedDownwards"),this.menu.domNode.parentElement.classList.remove("mwDropDownHasScrollbars"),this.menu.domNode.parentElement.classList.remove("mwDropDownHasMaxHeight"))}.bind(this)}),n=this.get("menu").domNode.parentElement,r=n.getBoundingClientRect(),a=this.domNode.getBoundingClientRect();r.top<a.top&&r.top+r.height>a.top&&(n.style.height=a.top-r.top+"px",n.style.overflowY="scroll"),this.domNode.classList.add("mwHasMenuOpened"),i&&i.corner&&"BL"===i.corner?(this.domNode.classList.add("mwHasMenuOpenedTop"),this.menu.domNode.parentElement.classList.add("mwDropDownHasOpenedUpwards")):(this.domNode.classList.add("mwHasMenuOpenedBottom"),this.menu.domNode.parentElement.classList.add("mwDropDownHasOpenedDownwards")),this._comboBoxMenuOpened=!0,this.menu.domNode.parentElement.classList.contains("mwComboBoxPopupParent")||this.menu.domNode.parentElement.classList.add("mwComboBoxPopupParent");var s=this.menu.domNode.parentElement;s&&(s.style.border="",s.scrollHeight>s.clientHeight&&(s.classList.add("mwDropDownHasScrollbars"),s.clientHeight===this.get("maxHeight")&&s.classList.add("mwDropDownHasMaxHeight")))},_handleTextFieldTyping:function(e){var t=e.mwEventData.currentContent,i=new RegExp(this._escapeRegExp(t),"i");this.get("menu").getChildren().forEach(function(e,n){if(this._isSeparator(e))e.style.display="none";else{var o=e.textContent;0===o.toLowerCase().indexOf(t.toLowerCase())?(""!==t||i.test(o))&&(e.style.display=""):e.style.display="none"}}.bind(this));var n=0;this.get("menu").getChildren().forEach(function(e){this._isSeparator(e)&&n>0?(e.style.display="block",n=0):this._isSeparator(e)||"none"===e.style.display||n++}.bind(this)),this._openComboBoxMenu({typing:!0,noFocus:!0})},_handleMenuKeyDown:function(e){e.keyCode===n.BACKSPACE?(e.preventDefault(),d.focus(this._textField.focusNode)):e.keyCode!==n.ENTER&&e.keyCode!==n.SPACE||this.get("disabled")?e.keyCode===n.ESCAPE?(this.closeMenu(),d.focus(this.focusNode),e.stopPropagation(),e.preventDefault()):this.editable&&e.keyCode!==n.DOWN_ARROW&&e.keyCode!==n.UP_ARROW&&d.focus(this._textField.focusNode):t.emit(e.target,"click",{bubbles:!0,cancelable:!0,mwEventData:{keyCode:e.keyCode},_dojo_click:!0})},_handleTextFieldKeyUp:function(e){this._gotTextFieldKeyDownForEnterOrSpace||e.keyCode!==n.ENTER&&e.keyCode!==n.SPACE||this.get("disabled")||(e.stopPropagation(),e.preventDefault()),this._gotTextFieldKeyDownForEnterOrSpace=!1},_handleMenuClick:function(e){if(this._isSeparator(e.target)||!e.target.classList.contains("mwMenuItem")&&!e.target.classList.contains("mwTextNode"))e.preventDefault();else{var t=this._getItemForNode(e.target).value,i=this.get("value");this.set("value",t),i!==t&&this._triggerChangeEvent("value",i,t),this.closeMenu()}},_getItemForNode:function(e){for(var t=this.get("menu"),i=this.get("items"),n=t.getChildren(),o=null,r=0;r<n.length;r++)if(n[r].contains(e)){o=i[r];break}return o},_removeSelectedMenuItemColor:function(){if(!this._beingDestroyed){var e=void 0!==this._get("value")?this._getSelectedItemFromValue(this._get("value")):void 0;void 0!==e&&this.get("menu").getChildren().length>0&&this.get("menu").getChildren()[e.index].classList.remove("mwComboBoxSelectedMenuItem")}},_getParentPopup:function(e){for(;e;){if(e.classList&&e.classList.contains("dijitPopup"))return e;e=e.parentNode}return null},resize:function(){this._textField.domNode.parentNode.style.width="calc(100% - 22px)",this._textField.set("width","100%")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{setTimeout(function(){d.focus(this.focusNode)}.bind(this),0)}catch(e){}},_setMaxHeightAttr:function(e){if("number"!=typeof e)throw new Error("'MaxHeight' property expects a Number!");this.menu.domNode.style.maxHeight=e+"px",this._set("maxHeight",e)},_setValueAttr:function(e){var t=this._getSelectedItemFromValue(e);if(("number"==typeof e?e.toString():e)&&t&&void 0!==t.index){var i=t.label;this._textField.set("value",i),this._isTextEmpty=!0,this._removeSelectedMenuItemColor(),this.get("menu").getChildren().length>0&&void 0!==t.index&&this.get("menu").getChildren()[t.index].classList.add("mwComboBoxSelectedMenuItem")}else if(("number"==typeof e?e.toString():e)&&!t){if(!this.get("editable")){if(this.get("items")&&0!==this.get("items").length)throw new Error("Value must match an existing item for non-editable combo box");return void(this._pendingValue=e)}this._removeSelectedMenuItemColor(),this._textField.set("value",e),this._isTextEmpty=!1}else""===e&&(this._textField.set("value",""),void 0!==this._get("value")&&(this._removeSelectedMenuItemColor(),this._isTextEmpty=!0),""!==this.get("text")&&(this._isTextEmpty=!1));!0===this._isTextEmpty?this.set("text",""):this.set("text",e);this.get("value");this._set("value",e)},_getValueAttr:function(){return this._get("value")},_setItemsAttr:function(e){var t=this.get("value"),i=null,n=this._getSelectedItemFromValue(t);n&&(i=n.label);var o=dojo.clone(e);if(o&&o.length>0){this.set("value",""),this._initMenuItems(o),this._set("items",o);var r=this._getSelectedItemFromValue(t);r&&i===r.label&&this.set("value",t)}else this.set("value",""),this._destroyMenuItems(),this._set("items",o);!1===this.get("editable")&&null!=this._pendingValue&&(this.set("value",this._pendingValue),this._pendingValue=null),this._comboBoxMenuOpened&&(this.closeMenu(),this._openComboBoxMenu())},_initMenuItems:function(e){this.get("menu").getChildren().length>0&&this._destroyMenuItems(),e.forEach((function(e,t){var i=document.createElement("div");if(e.type&&"separator"===e.type)i.setAttribute("data-refuse-key-nav",!0),i.setAttribute("data-menu-item-type","separator"),i.classList.add("mwMenuSeparator"),this.get("menu").menuItemsNode.appendChild(i);else{i.setAttribute("tabIndex","0"),["mwDefaultVisualFamily","mwTextMixin","mwTextMixin","mwWidget","mwSharedMenuItem","mwMenuItem"].forEach((function(e){i.classList.add(e)}));var n=document.createElement("div");n.textContent=e.label,n.classList.add("mwTextNode"),i.appendChild(n),this.get("menu").menuItemsNode.appendChild(i),i.addEventListener("mouseover",this._handleMenuItemMouseEnter.bind(this))}}),this)},_getItemsAttr:function(){return this._get("items")},_setEditableAttr:function(e){e?(this.domNode.classList.add("mwEditableComboBox"),this.domNode.classList.remove("mwNonEditable"),this.focusNode=this._textField.focusNode,this._toggleTextField(!0),this.get("disabled")?this._textField.focusNode.removeAttribute("tabIndex"):this._textField.focusNode.setAttribute("tabIndex","0"),this.domNode.removeAttribute("tabIndex"),this._removeMenuNodeMouseDownHandler(),this.menuNode=this.arrowNode,this._addMenuNodeMouseDownHandler(),this._set("editable",!0)):(this.domNode.classList.add("mwNonEditable"),this.domNode.classList.remove("mwEditableComboBox"),this.focusNode=this.domNode,this._toggleTextField(!1),this._textField.focusNode.removeAttribute("tabIndex"),this.get("disabled")?this.domNode.removeAttribute("tabIndex"):this.domNode.setAttribute("tabIndex","0"),this._removeMenuNodeMouseDownHandler(),this.menuNode=this.domNode,this._addMenuNodeMouseDownHandler(),this._set("editable",!1))},_removeMenuNodeMouseDownHandler:function(){this._menuNodeMouseDownHandler&&(this.menuNode.removeEventListener("mousedown",this._menuNodeMouseDownHandler),this._menuNodeMouseDownHandler=null)},_addMenuNodeMouseDownHandler:function(){this.menuNode&&null===this._menuNodeMouseDownHandler&&(this._menuNodeMouseDownHandler=this._handleArrowNodeMouseDown.bind(this),this.menuNode.addEventListener("mousedown",this._menuNodeMouseDownHandler))},_setTextAttr:function(e){!1===this._isTextEmpty||(""===this.get("value")||void 0===this.get("value"))&&""!==e?(this.get("editable")&&void 0===this._getSelectedItemFromValue(e)?(this._set("text",e),this._isTextEmpty=!1):(this._isTextEmpty=!0,this._set("text","")),this._textField.set("value",e)):this._set("text","")},_getTextAttr:function(e){return this._get("text")},_toggleTextField:function(e){this._textField.set("editable",e),!0===this.get("disabled")?this._textField.set("disabled",!0):this._textField.set("disabled",!e)},_setMenuOrientationAttr:function(e){if("string"!=typeof e||-1===this.ORIENTATION_VALUES.hasOwnProperty(e))throw new Error("'menuOrientation' property expects one of these values: "+Object.keys(this.ORIENTATION_VALUES));this._set("menuOrientation",this.ORIENTATION_VALUES[e])},_setWidthAttr:function(e){this.inherited(arguments),void 0===this._started&&!0!==this._started||this.resize()},_setHeightAttr:function(e){this.inherited(arguments),this._textField.set("height",e)},_setPlaceholderAttr:function(e){this._textField.set("placeholder",e),this._set("placeholder",e)},_getPlaceholderAttr:function(){return this._textField.get("placeholder")},_setDescriptionAttr:function(e){this.inherited(arguments),this._textField.set("description",e)},_destroyMenuItems:function(){for(;this.get("menu").menuItemsNode.firstChild;)this.get("menu").menuItemsNode.firstChild.removeEventListener("mouseover",this._handleMenuItemMouseEnter.bind(this)),this.get("menu").menuItemsNode.removeChild(this.get("menu").menuItemsNode.firstChild)},_escapeRegExp:function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},_getSelectedItemFromLabel:function(e){var t={};if(this.get("items")&&this.get("items").length>0)for(var i=0;i<this.get("items").length;i++){var n=this.get("items")[i];if(void 0!==n.label&&n.label===e){t.label=n.label,t.value=n.value,t.index=i;break}}return void 0!==t.index?t:void 0},_getSelectedItemFromValue:function(e){var t={};if(this.get("items")&&this.get("items").length>0)for(var i=0;i<this.get("items").length;i++){var n=this.get("items")[i];if(void 0!==n.value&&(n.value===e||"object"==typeof n.value&&JSON.stringify(n.value)===JSON.stringify(e))){t.label=n.label,t.value=n.value,t.index=i;break}}return void 0!==t.index?t:void 0},_isSeparator:function(e){return e&&e.getAttribute("data-menu-item-type")&&"separator"===e.getAttribute("data-menu-item-type")},_isKeyboardNav:function(e){return"none"!==e.style.display&&!this._isSeparator(e)},_qeSelectItemByLabel:function(e){var t=this._getSelectedItemFromLabel(e).value;this.set("value",t)},_qeSelectItemByValue:function(e){var t=this._getSelectedItemFromValue(e).value;this.set("value",t)},_qeSelectItemByIndex:function(e){var t=this.get("items")[e].value;this.set("value",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1488),i(1149),i(318)],o=i.dj.d(n,(function(e,t){if(!document.body)throw new Error("Assertion: _PositionableMixin requires the document to be fully loaded ");var i=document.createElement("div");i.style.display="none",i.style.whiteSpace="pre",document.body.appendChild(i);var n=document.createElement("span");n.style.display="none",n.style.whiteSpace="pre",document.body.appendChild(n);var o=Object.create(null),r=Object.create(null),a="";return{getWidgetFontStyleMap:function(e){var t,i=e.getProperty("FontSize");return t=void 0!==i.FontSize?i.FontSize:i,{FontAngle:e.getProperty("FontAngle"),FontWeight:e.getProperty("FontWeight"),FontSize:t,FontName:e.getProperty("FontName")}},_getValidWidgetFontUnitsFromFontSizeString:function(e){var t="";return("string"!=typeof e&&"number"==typeof e||"string"==typeof e&&-1===e.indexOf("px")&&-1===e.indexOf("pt")&&-1===e.indexOf("in")&&-1===e.indexOf("cm"))&&(t="px"),t},_getWidgetFontUnits:function(e){return this._getValidWidgetFontUnitsFromFontSizeString(e.FontSize)},getWidgetFontStyleString:function(e){var t=this._getWidgetFontUnits(e);return e.FontAngle+" "+e.FontWeight+" "+e.FontSize+t+" "+e.FontName},getWidgetFontStyleStringFromDom:function(e){var t=window.getComputedStyle(e);return t.fontStyle+" "+t.fontWeight+" "+t.fontSize+" "+t.fontFamily},getTextPosition:function(e,t){var i,n;if(i="object"==typeof t?this.getWidgetFontStyleString(t):t,a!==i&&(o[i]||(o[i]={}),r=o[i],a=i),r[e])n=r[e];else{var s=e||"";n=this._getTextPosition(s,t),r[s]=n}return n},_getTextPosition:function(i,o,r){var a;if(n.style.display="inline-block","object"==typeof o){var s=this._getWidgetFontUnits(o);n.style.font="",n.style.fontStyle=o.FontAngle,n.style.fontWeight=o.FontWeight,n.style.fontSize=o.FontSize+s+" ",o.FontName&&(a=e.getFallBack(o.FontName),n.style.fontFamily=a)}else n.style.fontStyle="",n.style.fontWeight="",n.style.fontSize="",n.style.fontFamily="",n.style.font=o,n.style.fontFamily&&(a=e.getFallBack(n.style.fontFamily),n.style.fontFamily=a);0===i.length&&(i="."),n.textContent=i;var l=[];if(void 0!==r){var c={};l=Object.keys(r);for(var d=0;d<l.length;d++)c[l[d]]=n.style[l[d]],n.style[l[d]]=r[l[d]]}var u=t.getBoundingClientRect(n);n.style.display="none";for(var h=0;h<l.length;h++)n.style[l[h]]=c[l[h]];return u},getTextPositionWithWordWrap:function(e,t,i){i||(i="auto");var n={width:i,height:"auto",whiteSpace:"pre-wrap",overflowWrap:"break-word",overflow:"hidden"};return this._getTextPosition(e,t,n)},getHTMLTextPositionWithWordWrap:function(e,t,i){i||(i="auto");var n={width:i,height:"auto",whiteSpace:"pre-wrap",overflowWrap:"break-word",overflow:"hidden"};return this.getHTMLTextPosition(e,t,n)},getHTMLTextPosition:function(n,o,r){var a;if(i.style.display="inline-block","object"==typeof o){var s=this._getWidgetFontUnits(o);i.style.font="",i.style.fontStyle=o.FontAngle,i.style.fontWeight=o.FontWeight,i.style.fontSize=o.FontSize+s+" ",o.FontName&&(a=e.getFallBack(o.FontName),i.style.fontFamily=a)}else i.style.fontStyle="",i.style.fontWeight="",i.style.fontSize="",i.style.fontFamily="",i.style.font=o,i.style.fontFamily&&(a=e.getFallBack(i.style.fontFamily),i.style.fontFamily=a);0===n.length&&(n="."),i.innerHTML=n;var l=[];if(void 0!==r){var c={};l=Object.keys(r);for(var d=0;d<l.length;d++)c[l[d]]=i.style[l[d]],i.style[l[d]]=r[l[d]]}var u=t.getBoundingClientRect(i);i.style.display="none",i.innerHTML="";for(var h=0;h<l.length;h++)i.style[l[h]]=c[l[h]];return u},generateTicksForRange:function(e,t,i){var n=e[0],o=e[1],r=this._findMajorTickDelta(n,o,t,i);return this.generateTicks(e[0],e[1],r)},calculateAverageLabelLength:function(e,t){for(var i,n,o=0,r=0;r<e.length;r++)n=this.getMajorTickLabelString(e[r]),i=this.getTextPosition(n,t),o+=Math.max(i.w,i.h);return o/e.length},_findMajorTickDelta:function(e,t,i,n){var o=1.3*n,r=1.8*n;return this._findTickDelta(e,t,i,o,r)},_findMinorTickDelta:function(e,t,i){return this._findTickDelta(e,t,i,4,9)},_findTickDelta:function(e,t,i,n,o){var r=Math.abs(t-e),a=Math.round(i/o)-1;a<1&&(a=1);var s=Math.round(i/n);if(s<=1)return s=1,r;for(var l=1;Math.abs(l*r)<10;)l*=10;Math.abs(l*r)<20&&(l*=2);for(var c=r*l,d=1,u=2,h=s;h>=a;h--){if(c/h===Math.round(c/h))return d=c/h/l;u>Math.abs(c/h-Math.round(c/h))&&(d=c/h,u=Math.abs(c/h-Math.round(c/h)))}for(var p=1;Math.abs(p*d)>10;)p/=10;return d=Math.round(d*p*l)/p/l/l,Number(d.toPrecision(10))},parseNumberToMatlabFormat:function(e){return parseFloat(e.toPrecision(10))},parseArrayToMatlabFormat:function(e){for(var t=[],i=0;i<e.length;i++)t.push(this.parseNumberToMatlabFormat(e[i]));return t},arePropertyNamesPresent:function(e,t){for(var i=e.join("$").toLowerCase().split("$"),n=0;n<t.length;n++)if(i.indexOf(t[n].toLowerCase())>=0)return!0;return!1},getDefaultScaleLineLength:function(e){switch(e.toLowerCase()){case"circulargauge":case"matlab.ui.control.gauge":return 152;case"ninetydegreegauge":case"matlab.ui.control.ninetydegreegauge":return 78;case"semicirculargauge":case"matlab.ui.control.semicirculargauge":return 110;case"lineargauge":case"matlab.ui.control.lineargauge":return 100;case"slider":case"matlab.ui.control.slider":return 150;case"continuousknob":case"matlab.ui.control.knob":return 157;default:return 160}},autoGenerateMajorTickLabels:function(e){var t=[];e instanceof Array||(e=[e]);for(var i=0;i<e.length;i++)t.push(this.getMajorTickLabelString(e[i]));return t},getMajorTickLabelString:function(e){var t=[1,3],i=String(e);-1!==i.indexOf("e")&&(i=this._getMATLABFormattedExponentialString(i));var n=String(Number(e.toPrecision(t[0]+t[1])));-1!==n.indexOf("e")&&(n=this._getMATLABFormattedExponentialString(n));var o=this._getMATLABFormattedExponentialString(String(e.toExponential(t[1]))),r=this._getMATLABFormattedExponentialString(String(e.toExponential())),a=this._getShorterStringForLabel(r,o),s=this._getShorterStringForLabel(i,n);return Math.abs(e)<1?this._getShorterStringForLabel(s,a):s.replace(".","").replace("-","").replace("+","").length>=5?a:this._getShorterStringForLabel(a,s)},_getShorterStringForLabel:function(e,t){return e.replace(".","").length<=t.replace(".","").length?e:t},_getMATLABFormattedExponentialString:function(e){var t;if(-1===e.indexOf("e"))t=e;else{var i=e.split("e"),n=String(Number(i[0])),o=i[1],r="+";-1!==o.indexOf("-")?(r="-",o=o.replace("-","")):-1!==o.indexOf("+")&&(r="+",o=o.replace("+","")),1===o.length&&(o="0"+o),t=n+"e"+r+o}return t},autoGenerateMinorTicks:function(e,t,i,n,o){var r,a=this.getModeTickInterval(e);if(e.length<2)r=i-t;else{if(2===e.length&&e[0]===t&&e[1]===i)return[];r=a}var s=r*n/Math.abs(i-t);if(s<.01)return[];if(s>n)return[];var l=this._findMinorTickDelta(0,r,s);return this.generateTicks(t,i,l)},generateTicks:function(e,t,i){var n=[];n.push(e);var o=e,r=function(){for(var a=1;o<t&&o+.65*i<=t;){if(o===o+i){(n=[]).push(e);break}o=e+Number((a*i).toPrecision(10)),n.push(o),a++,o%1e5==0&&setTimeout(r,1)}};(r(),1===n.length)?n.push(t):e+i*(n.length-1)!==t&&(n.pop(),n.push(t));return n},_numberHasFractionalPart:function(e){return"number"==typeof e&&isFinite(e)&&parseFloat(e.toFixed(0))!==e},getModeTickInterval:function(e){var t=10;if(e.length>1){for(var i,n,o=[],r=[],a=1;a<e.length;a++)i=e[a]-e[a-1],-1===(n=o.indexOf(i))?(o.push(i),r.push(1)):r[n]++;var s=Math.max.apply(Math,r);t=o[r.indexOf(s)]}return t},getBorderSize:function(e){var t=window.getComputedStyle(e);return[(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0),(parseFloat(t.borderTopWidth)||0)+(parseFloat(t.borderBottomWidth)||0)]},getPaddingSize:function(e){var t=window.getComputedStyle(e);return[(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0),(parseFloat(t.paddingTop)||0)+(parseFloat(t.paddingBottom)||0)]},getBorderAndPaddingSize:function(e){var t=this.getBorderSize(e),i=this.getPaddingSize(e);return[t[0]+i[0],t[1]+i[1]]},getVerticalAlignmentPropertyForWidget:function(e){return"center"===e?"middle":e},getNewLineDelimitedText:function(e){return Array.isArray(e)||(e=[e]),e.join("\n")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(316),i(360),i(307),i(1041),i(351),i(872),i(352),i(330),i(432),i(370),i(871),i(1712),i(873),i(874),i(353),i(1042),i(335),i(607),i(421),i(875),i(876),i(877),i(259),i(2847)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){return e(w.validate([t,i,n,o,r,s,l,c,d,u,h,p,f,g,m,_,v,b,a,y,C,T,E,S]),{baseClass:"mwWidget mwSharedMenuItem mwMenuItem",templateString:I,closeMenuOnClick:!0,_emitClickEvent:function(e){this.emit("click",{mwEventData:{value:this.get("text"),details:e&&e.keyCode?{keyCode:e.keyCode}:{}},_dojo_click:!0})},_qeClick:function(){this._emitClickEvent()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(247),i(312)],o=i.dj.d(n,(function(e,t,i){return e(null,{tooltipHandle:null,setTooltip:function(e){var t=this.processTooltipValue(e);if(0===t.length)this.tooltipHandle&&(this.destroyArray(this.tooltipHandle),this.tooltipHandle=null);else if(null===this.tooltipHandle){var i=this.getTooltipNode();if(null===i)throw new Error("Tooltip node was null and is expected to be a valid node");if(void 0===i)throw new Error("Tooltip node was undefined and is expected to be a valid node");Array.isArray(i)||(i=[i]);for(var n=[],o=0;o<i.length;o++)n.push(this.createTooltip(i[o],t));this.tooltipHandle=n}else this.editTooltipText(this.tooltipHandle,t);this.tooltip=e},processTooltipValue:function(e){var t=this.getNewLinePlaceHolder(),i=e;return Array.isArray(e)&&(i=e.join(t)),i},destroy:function(){this.tooltipHandle&&this.destroyArray(this.tooltipHandle),this.inherited(arguments)},destroyArray:function(e){e.forEach((function(e){e.destroy()}))},getTooltipNode:function(){return this.domNode},editTooltipText:function(e,t){e.forEach((function(e){e.label=t}))},createTooltip:function(e,t){return new i({connectId:e,label:t})},getNewLinePlaceHolder:function(){return"\n"},isMWTooltipMixin:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3306),i(3307),i(3308),i(3309)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/motw",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(3487)],o=i.dj.d(n,(function(e){return{getMVM:function(){return e.get("user-mvm")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2881),i(368),i(1300)],o=i.dj.d(n,(function(e,t,i){var n={};return"/DefaultUIBuilderPeerModelChannel","_Action",{getInstance:function(o){return(o=o||{}).channel=o.channel||"/DefaultUIBuilderPeerModelChannel",o.enableQABCustomization=o.enableQABCustomization||!1,o.lazyLoading=o.lazyLoading||!1,o.qabAuthoringMode=o.qabAuthoringMode||i.DEFAULT,o._openWithViewModel=void 0===o._openWithViewModel||o._openWithViewModel,n[o.channel]||(o.isMATLABDriven=!!o.isMATLABDriven,o.actionService=o.actionService||new t({nameSpace:o.channel+"_Action",mode:o.isMATLABDriven?"ActAsClient":"StandAlone"}),n[o.channel]=new e(o)),n[o.channel]},destroyInstance:function(e){n[e=e||"/DefaultUIBuilderPeerModelChannel"]&&(n[e].cleanup(),delete n[e])}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(563),i(1054),i(309)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s(t),r=s(i),a=s(n);function s(e){return e&&e.__esModule?e:{default:e}}var l=o.default.noConflict(),c=l.runInContext();c.capitalize=function(e){return(e=null===e?"":String(e)).charAt(0).toUpperCase()+e.slice(1)},c.generateRandomUuid=function(){return r.default.v4()},c.isValidUuid=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)},c.fqnToPath=function(e){return l.words(e,/[^.]+/g)},c.splitFqn=function(e){if(l.isString(e)){var t=e.lastIndexOf(".");return{path:e.slice(0,t),name:e.slice(t+1)}}return{}},c.when=function(e,t){return e&&"function"==typeof e.then?e.then(t):t(e)},c.setObject=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;return l.set(i,e,t)},c.getObject=function(e){return l.get(window,e)},c.loadJSON=function(e){return l.loadFile(e,"application/json")},c.loadFile=function(e,t){var i=new XMLHttpRequest;return t&&i.overrideMimeType(t),i.open("GET",e,!0),new Promise((function(e){i.onreadystatechange=function(){4==i.readyState&&"200"==i.status&&e(i.responseText)},i.send(null)}))},c.mapArrayOrCall=function(e,t,i){return l.isArray(e)?l.map(e,t,i):void 0!==i?l.bind(t,i)(e):t(e)},c.topSort=function(e,t,i){var n={},o={},r=[];function s(e){var t=void 0;for(t in e)if(e.hasOwnProperty(t)){var i=e[t];return delete e[t],i}}function c(e,s){var d=t(e);a.default.assert(!l.has(s,d),"CyclicInheritance",d),l.each(i(e),(function(e){var t;0===o[e]&&((t=l.clone(s))[d]=1,c(n[e],t))})),0===o[d]&&(r.push(e),o[d]=1)}l.forEach(e,(function(e){var i=t(e);n[i]=e,o[i]=0}));for(var d=s(n);d;)c(d,{}),d=s(n);return r},e.default=c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TYPO_CORRECTION:"TypoCorrection",SYMBOLIC_SUGGESTIONS:"SymbolicSuggestions",CODE_ANALYZER:"CodeAnalyzer",MODE_INTERACTION:"ModeInteraction",SELECTIONS:"Selections",LIVE_APPS_VIEWS:"LiveAppsView",LIVE_APPS_AUTORUN_SECTION:"LiveAppsAutorunSection",LIVE_APPS_ACTIONS:"LiveAppsActions",LIVE_APPS_COPYPASTE:"LiveAppsCopyPaste",LIVE_APPS_GENERAL:"LiveAppsGeneral",LIVE_CONTROLS:"LiveControls",COPY_PASTE:"copyPaste",DEFAULT:"Default",REFACTORING:"Refactoring",DELETE:"Delete",SECTIONS:"Sections",CODE_SECTIONS:"CodeSections",CLEAR_OUTPUT:"ClearOutput",RICH_TEXT:"RichText",ALIGN:"Align",MATRIX:"Matrix",SET:"Set",TOGGLE:"Toggle",TOGGLE_ALL_STATUS:"ToggleAllStatus",CLEAR_ALL:"ClearAll",RUN_TO_LINE:"RunToLine",SPLIT_SCREEN:"SplitScreen",BOOKMARKS:"Bookmarks",BOOKMARKS_CLEAR_ALL:"BookmarksClear",MARGIN:"Margin"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(210),i(206)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(){this._fitSize=null,this._propertiesAffectingFitSize=null,this._isFitSizeUsed=!1},getFitSize:function(){return this._isFitSizeUsed||this.setFitSizeUsed(!0),this._fitSize},setFitSizeUsed:function(e){this._isFitSizeUsed=e,this._isFitSizeUsed&&(this._fitSize=this._computeFitSize())},resetFitSize:function(){this._isFitSizeUsed=!1},_computeFitSize:function(){throw new Error("_computeFitSize must be implemented by the subclasses")},_setProperties:function(e){if(this.inherited(arguments),this._isFitSizeUsed){var t,i=this.getPropertiesAffectingFitSize(),n=!1;for(t in e)if(i.indexOf(t)>-1){n=!0;break}n&&this.recomputeFitSize()}},recomputeFitSize:function(e){if(e=!0===e,this._isFitSizeUsed){var t=this._fitSize.slice(0);if(this._fitSize=this._computeFitSize(),!e&&(t[0]!==this._fitSize[0]||t[1]!==this._fitSize[1])){var i={child:this.getPeerNode()};this.emit("fitsizechanged",i)}}},recomputeFitHeight:function(e){},getPropertiesAffectingFitSize:function(){return null===this._propertiesAffectingFitSize&&(this._propertiesAffectingFitSize=this._gatherPropertiesAffectingFitSize()),this._propertiesAffectingFitSize},_gatherPropertiesAffectingFitSize:function(){var e=[];this.getPeerNode().hasProperty("Text")&&e.push("Text"),this.getPeerNode().hasProperty("WordWrap")&&e.push("WordWrap");for(var t=["FontName","FontSize","FontWeight","FontAngle"],i=0;i<t.length;i++)this.getPeerNode().hasProperty(t[i])&&e.push(t[i]);return e=this._editPropertiesAffectingFitSize(e),Array.isArray(e)||console.error("Expected the list of properties affecting fit to be an array"),e},_editPropertiesAffectingFitSize:function(e){return e},getCellWidth:function(){var e=this.getGridController(),t=this.getLayoutConstraints();return e.widget.getCellSize(t.Row,t.Column)[0]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{label:"",keyCode:!1,shortcut:"",constructor:function(e){t.mixin(this,e)},isApplicableTo:function(e){return console.log("Please implement isApplicableTo for action"),!1},callback:function(){console.log("Please implement callback for action")},section:{id:"MISC",name:"MISC",allowSubMenu:!1,forceSubMenu:!1}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(801),i(617)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e){"object"!=typeof e?this._timeout=e:(this._timeout=e.timeout,this.dequeueMode=e.dequeueMode,this.queueName=e.queueName,this.disableBreakPoints=e.disableBreakpoints,void 0!==e.capabilitiesList&&(this.capabilitiesList=e.capabilitiesList.slice()),void 0!==e.groupNames&&(this.groupNames=e.groupNames.slice()),void 0!==e.outTextCallback&&this.setOutTextCallback(e.outTextCallback),void 0!==e.errTextCallback&&this.setErrTextCallback(e.errTextCallback),void 0!==e.suppressDebugControlOutput&&(this.suppressDebugControlOutput=e.suppressDebugControlOutput)),this.eventNames=[],this._eventCallbackMap={}},getTimeOut:function(){return this._timeout},setTimeOut:function(e){this.timeout=e},setDequeueMode:function(e){this.dequeueMode=e},getDequeueMode:function(){return this.dequeueMode},setQueueName:function(e){this.queueName=e},getQueueName:function(){return this.queueName},disableBreakpoints:function(e){this.disableBreakPoints=e},areBreakPointsDisabled:function(){return this.disableBreakPoints},setCallback:function(e,t){this.eventNames.push(e),this._eventCallbackMap[e]=t},getEventCallbacks:function(){return this._eventCallbackMap},getCapabilitiesList:function(){return void 0!==this.capabilitiesList?this.capabilitiesList.slice():void 0},setCapabilities:function(e){this.capabilitiesList=e?e.slice():[]},getGroupNames:function(){if(void 0!==this.groupNames)return this.groupNames.slice()},setGroupNames:function(e){this.groupNames=e?e.slice():void 0},setOutTextCallback:function(e){this.outSink=e,null===this.outSink?this.useNullOutSink=!0:this.useNullOutSink=!1},setErrTextCallback:function(e){this.errSink=e,null===this.errSink?this.useNullErrSink=!0:this.useNullErrSink=!1},getOutTextCallback:function(){if(void 0!==this.outSink)return this.outSink},getErrTextCallback:function(){if(void 0!==this.errSink)return this.errSink},setSuppressDebugControlOutput:function(e){this.suppressDebugControlOutput=e},getSuppressDebugControlOutput:function(){return this.suppressDebugControlOutput},_serializeAndVerifyRunOptions:function(){var e={},n={};if(this.dequeueMode){if(!Object.keys(i).some(function(e){return i[e]===this.dequeueMode}.bind(this)))return e.error="Unknown Dequeue Mode "+this.dequeueMode,e;n.dequeueMode=this.dequeueMode}if(this.queueName){if(!("string"==typeof this.queueName||this.queueName instanceof String))return e.error="Invalid QueueName",e;n.queueName=this.queueName}if(void 0!==this.capabilitiesList){if(!Array.isArray(this.capabilitiesList))return e.error="Invalid Capability",e;var o=t.getFullCapabilitiesList();if(this.capabilitiesList.some((function(e){return-1===o.indexOf(e)})))return e.error="Undefined Capability",e;n.capabilitiesList=this.capabilitiesList.slice()}if(void 0!==this.outSink&&(null===this.outSink?n.useNullOutSink=!0:"function"==typeof this.outSink||this.outSink instanceof Function?n.useNullOutSink=!1:e.error="Invalid outTextCallback"),void 0!==this.errSink&&(null===this.errSink?n.useNullErrSink=!0:"function"==typeof this.errSink||this.errSink instanceof Function?n.useNullErrSink=!1:e.error="Invalid errTextCallback"),void 0!==this.groupNames){if(!Array.isArray(this.groupNames))return e.error="Invalid groupNames",e;if(!1===this.groupNames.every((function(e){return"string"==typeof e||e instanceof String})))return e.error="Invalid groupNames",e;n.groupNames=this.groupNames.slice()}if(void 0!==this._eventCallbackMap&&!1===Object.keys(this._eventCallbackMap).every(function(e){return"function"==typeof this._eventCallbackMap[e]||this._eventCallbackMap[e]instanceof Function}.bind(this)))return e.error="Invalid setCallback",e;if(this.suppressDebugControlOutput){if(!("boolean"==typeof this.suppressDebugControlOutput||this.suppressDebugControlOutput instanceof Boolean))return e.error="Invalid suppressDebugControlOutput",e;n.suppressDebugControlOutput=this.suppressDebugControlOutput}return e.runOptions=n,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){this._minimumSize=null},getMinimumSize:function(){return null===this._minimumSize&&(this._minimumSize=this._computeMinimumSize()),this._minimumSize},_computeMinimumSize:function(){throw new Error("_computeMinimumSize must be implemented by the subclasses")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{STOP:"motw.stop",SAVE:"motw.save",SHOW_HISTORY:"motw.fileHistory",OPEN:"motw.open",OPEN_AS_TEXT:"motw.openAsText",SIMULINK:"motw.simulink",IMPORT_DATA:"motw.importData",SAVE_WORKSPACE:"motw.saveWorkspace",NEW_VARIABLE:"motw.newVariable",OPEN_VARIABLE:"motw.openVariable",CLEAR:"motw.clear",CLEAR_ALL:"motw.clearAll",SET_PATH:"motw.setPath",OPEN_FILE:"motw.openFile",SET_DEFAULT_LAYOUT:"motw.setDefaultLayout",SET_THREE_COLUMN_LAYOUT:"motw.setThreeColumnLayout",SET_MIN_ALL_BUT_CMD_WIN_LAYOUT:"motw.setMinAllButCmdWinLayout",SET_CMD_WIN_ONLY_LAYOUT:"motw.setCmdWinOnlyLayout",HELP:"motw.help",EXAMPLES:"motw.examples",SUPPORT_WEBSITE:"motw.supportWebSite",LEARN_MATLAB:"motw.learnMatlab",COMMUNITY:"motw.community",CHECK_FOR_UPDATES:"motw.checkForUpdates",PATENTS:"motw.patents",CLEAR_COMMAND_WINDOW:"motw.clearCommandWindow",FEEDBACK:"motw.feedback",ABOUT:"motw.about",MANAGE_LICENSES:"motw.manageLicenses",KEYBOARD_SHORTCUTS:"motw.keyboardShortcuts",ACCESSIBILITY:"motw.accessibility",NEW_FILE:"motw.newFile",NEW_FILE_EDITOR:"motw.newFileEditor",NEW_FILE_LIVE_EDITOR:"motw.newFileLiveEditor",NEW_LIVE_SCRIPT:"motw.newLiveScript",NEW_NOTEBOOK:"motw.newNotebook",NEW_FUNCTION:"motw.newFunction",NEW_LIVE_FUNCTION:"motw.newLiveFunction",NEW_EXAMPLE:"motw.newExample",NEW_CLASS:"motw.newClass",NEW_TEST_CLASS:"motw.newTestClass",NEW_LIVE_CLASS:"motw.newLiveClass",NEW_PROJECT:"motw.newProject",NEW_FROM_GIT:"motw.newFromGit",OPEN_AS_NOTEBOOK:"motw.openAsNotebook",NEW_FOLDER:"motw.newFolder",UPLOAD:"motw.upload",DOWNLOAD:"motw.download",FORMAT_CODE:"motw.formatCode",NEW_FIGURE:"motw.newFigure",NEW_APP:"motw.newApp",UNDO_CMD:"motw.undoCMD",REDO_CMD:"motw.redoCMD",PREFERENCES:"motw.preferences",FIND_FILES:"motw.findFiles",NEW_UNTITLED_BUFFER_ON_FILE_DELETE:"motw.newUntitledBufferOnFileDelete",GECKO:"motw.gecko",SCREENSHOT:"motw.screenshot"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(319)],o=i.dj.d(n,(function(e){return{createDocument:function(t){var i;if(document.implementation&&document.implementation.createDocument)if(t===e.ROOT_TAG_NAME){var n=e.NAMESPACE_TAG+":"+e.ROOT_TAG_NAME;i=document.implementation.createDocument(e.NAMESPACE_URL,n,null)}else i=document.implementation.createDocument(null,t,null);return i},createAlternateContent:function(t,i,n){var o=this.createAlternateContentXMLElementNS(e.MCNAMESPACE_TAG,e.ALTERNATECONTENT_TAG),r=this.createAlternateContentXMLElementNS(e.MCNAMESPACE_TAG,e.CHOICE_TAG),a=e.REQUIRES_ATTRIBUTE_NAME;r.setAttribute(a,t),r.appendChild(i),o.appendChild(r);var s=this.createAlternateContentXMLElementNS(e.MCNAMESPACE_TAG,e.FALLBACK_TAG);return n&&s.appendChild(n),o.appendChild(s),o},createAlternateContentXMLElementNS:function(t,i){return i=t+":"+i,document.createElementNS(e.MARKUP_COMPATIBILITY_NAMESPACE,i)},createXMLElement:function(t){return t=t||e.PARAGRAPH_TAG_NAME,t=e.NAMESPACE_TAG+":"+t,document.createElementNS(e.NAMESPACE_URL,t)},createXMLElementNS:function(t,i){return i=(t=t||e.NAMESPACE_TAG)+":"+(i=i||e.PARAGRAPH_TAG_NAME),document.createElementNS(e.NAMESPACE_URL,i)},createBookmarkStart:function(t,i){var n=this.createXMLElement(e.BOOKMARK_START_TAG_NAME),o=e.NAMESPACE_TAG+":"+e.NAME_TAG;n.setAttributeNS(e.NAMESPACE_URL,o,t);var r=e.NAMESPACE_TAG+":"+e.TYPE_ID_TAG;return n.setAttributeNS(e.NAMESPACE_URL,r,i),n},createBookmarkEnd:function(t){var i=this.createXMLElement(e.BOOKMARK_END_TAG_NAME),n=e.NAMESPACE_TAG+":"+e.TYPE_ID_TAG;return i.setAttributeNS(e.NAMESPACE_URL,n,t),i},createParagraphProperty:function(t){var i=this.createXMLElement(e.PARAGRAPH_PROPERTY_TAG_NAME),n=this.createXMLElement(e.PARAGRAPH_STYLE_TAG_NAME),o=e.NAMESPACE_TAG+":"+e.PROPERTY_TAG;return n.setAttributeNS(e.NAMESPACE_URL,o,t),i.appendChild(n),i},addParagraphProperty:function(t,i,n){var o=this.createXMLElement(i),r=e.NAMESPACE_TAG+":"+e.PROPERTY_TAG;return o.setAttributeNS(e.NAMESPACE_URL,r,n),t.appendChild(o),t},createListType:function(t){var i=this.createXMLElement(e.NUMBER_PROPERTY_TAG),n=this.createXMLElement(e.NUMBER_ID_TAG),o=e.NAMESPACE_TAG+":"+e.PROPERTY_TAG;return n.setAttributeNS(e.NAMESPACE_URL,o,t),i.appendChild(n),i},createTextParagraph:function(t){t=t||"";var i=this.createXMLElement(),n=this.createParagraphProperty(e.TEXT_FORMAT_VALUE);i.appendChild(n);var o=this.createXMLElement(e.RUN_OF_TEXT_TAG_NAME);i.appendChild(o);var r=this.createXMLElement(e.TEXT_TAG_NAME),a=document.createTextNode(t);return r.appendChild(a),o.appendChild(r),i},createHyperLinkTag:function(t,i){var n=this.createXMLElement(e.HYPERLINK_TAG);if(t){var o=e.NAMESPACE_TAG+":"+e.DOC_LOCATION;n.setAttributeNS(e.NAMESPACE_URL,o,t)}if(i){var r=e.NAMESPACE_TAG+":"+e.ANCHOR;n.setAttributeNS(e.NAMESPACE_URL,r,i)}return n},createCustomXMLTag:function(t){var i=this.createXMLElement(e.CUSTOM_XML_TAG);return i.setAttributeNS(e.NAMESPACE_URL,e.NAMESPACE_TAG+":"+e.CUSTOM_ELEMENT_TAG,t),i},createCustomXMLProperty:function(t,i){var n=this.createXMLElement(e.CUSTOM_XML_PROPERTY),o=this.createXMLElement(e.CUSTOM_XML_ATTRIBUTE);return o.setAttributeNS(e.NAMESPACE_URL,e.NAMESPACE_TAG+":"+e.NAME_TAG,t),o.setAttributeNS(e.NAMESPACE_URL,e.NAMESPACE_TAG+":"+e.CUSTOM_XML_VALUE_TAG,i),n.appendChild(o),n},createCustomXMLAttribute:function(t,i){var n=this.createXMLElement(e.CUSTOM_XML_ATTRIBUTE);return n.setAttributeNS(e.NAMESPACE_URL,e.NAMESPACE_TAG+":"+e.NAME_TAG,t),n.setAttributeNS(e.NAMESPACE_URL,e.NAMESPACE_TAG+":"+e.CUSTOM_XML_VALUE_TAG,i),n},getBookmarkStart:function(t){var i=t.getElementsByTagNameNS(e.NAMESPACE_URL,e.BOOKMARK_START_TAG_NAME);if(i[0]&&i[0].attributes[0]){var n={};return n.name=i[0].getAttributeNS(e.NAMESPACE_URL,e.NAME_TAG),n.id=i[0].getAttributeNS(e.NAMESPACE_URL,e.TYPE_ID_TAG),n}},getBookmarkEnd:function(t){var i=t.getElementsByTagNameNS(e.NAMESPACE_URL,e.BOOKMARK_END_TAG_NAME);if(i[0]&&i[0].attributes[0])return i[0].attributes[0].nodeValue},getListType:function(t){return t.getElementsByTagNameNS(e.NAMESPACE_URL,e.NUMBER_PROPERTY_TAG)[0].getElementsByTagNameNS(e.NAMESPACE_URL,e.NUMBER_ID_TAG)[0].attributes[0].nodeValue},getParagraphProperty:function(t,i){var n=t.getElementsByTagNameNS(e.NAMESPACE_URL,i);return n&&n[0]&&n[0].attributes&&n[0].attributes[0]?n[0].attributes[0].nodeValue:""},getAttribute:function(t){var i=t.getElementsByTagNameNS(e.NAMESPACE_URL,e.PARAGRAPH_PROPERTY_TAG_NAME);if(i&&i[0]){var n=i[0].getElementsByTagNameNS(e.NAMESPACE_URL,e.PARAGRAPH_STYLE_TAG_NAME);return n[0]?n[0].attributes[0].nodeValue:!!this.hasSectionBreak(t)&&"sectionbreak"}return!1},createSdtAliasPropertyElement:function(t,i){var n=this.createXMLElement(e.ALIAS_TAG),o=e.NAMESPACE_TAG+":"+e.PROPERTY_TAG;return n.setAttributeNS(e.NAMESPACE_URL,o,i),t.appendChild(n),t},createSdtPartGalleryPropertyElement:function(t,i){var n=this.createXMLElement(e.DOC_PART_OBJ),o=this.createXMLElement(e.DOC_PART_GALLERY);n.appendChild(o);var r=e.NAMESPACE_TAG+":"+e.PROPERTY_TAG;return o.setAttributeNS(e.NAMESPACE_URL,r,i),t.appendChild(n),t},getSdtAttribute:function(t){var i=t.getElementsByTagNameNS(e.NAMESPACE_URL,e.SDT_PROPERTY_TAG);if(i)for(var n=0;n<i.length;n++){var o=i[n].getElementsByTagNameNS(e.NAMESPACE_URL,e.ALIAS_TAG);if(o&&o[0]&&o[0].attributes&&o[0].attributes.length>0)return o[0].attributes[0].nodeValue;if(i[n].getElementsByTagNameNS(e.NAMESPACE_URL,e.DOC_PART_OBJ)){var r=i[n].getElementsByTagNameNS(e.NAMESPACE_URL,e.DOC_PART_GALLERY);if(r&&r[0]&&r[0].attributes&&r[0].attributes.length>0)return r[0].attributes[0].nodeValue}}return null},hasHyperLink:function(t){return t.hasAttributeNS(e.NAMESPACE_URL,e.DOC_LOCATION)||t.hasAttributeNS(e.NAMESPACE_URL,e.ANCHOR)},hasEquation:function(e){var t=e.attributes[0];if(t)return"equation"===t.textContent},hasImage:function(e){var t=e.attributes[0];if(t)return"image"===t.textContent},hasLiveControl:function(e){var t=e.attributes[0];if(t)return"livecontrol"===t.textContent},hasLiveAppIntegratedInline:function(e){var t=e.attributes[0];return!!t&&"LiveAppIntegratedInline"===t.textContent},hasToCHeading:function(e){if(e.attributes&&e.attributes[0])return"TOCHeading"===e.attributes[0].textContent},hasToCItems:function(e){if(e.attributes&&e.attributes[0])return"TOC1"===e.attributes[0].textContent},hasSectionBreak:function(t){return 1===t.getElementsByTagNameNS(e.NAMESPACE_URL,e.SECTION_PROPERTY_TAG_NAME).length},getClassName:function(e){return this.hasHyperLink(e)?"HyperlinkNode":this.hasEquation(e)?"EquationNode":this.hasText(e)?"RichTextNode":this.hasImage(e)?"ImageNode":this.hasLiveControl(e)?"LiveControlNode":this.hasSectionBreak(e)?"SectionBreak":this.hasToCHeading(e)?"TableOfContentsHeadingNode":this.hasToCItems(e)?"TableOfContentsList":this.hasLiveAppIntegratedInline(e)?"LiveAppIntegratedInlineNode":void 0},hasText:function(t){return 0!==t.getElementsByTagNameNS(e.NAMESPACE_URL,e.TEXT_TAG_NAME).length},getKeyFromValue:function(e,t){for(var i in e)if(e.hasOwnProperty(i))if("[object Array]"===Object.prototype.toString.call(e[i].type)){if(-1!==e[i].type.indexOf(t))return i}else{if(e[i].type===t)return i;if(e[i]===t)return i}},getURLExtension:function(e){var t="",i=new RegExp("^(http|https)://");return e.match(i)&&(t=e.split(".").pop().split(/\#|\?/)[0].trim()),t},getImageExtension:function(e){var t=this.getURLExtension(e);t||(t=e.split(";")[0].split("/")[1]);return t},getTextFromRun:function(t){var i=t.getElementsByTagNameNS(e.NAMESPACE_URL,e.TEXT_TAG_NAME),n="";if(0===i.length)return n;for(var o=0;o<i[0].childNodes.length;o++)n+=i[0].childNodes[o].nodeValue;return n},isCode:function(e){return e.className.indexOf("lineNode")>-1},serializeToFormattedString:function(t){var i=(new window.XMLSerializer).serializeToString(t);return e.XML_HEADER+i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(222),i(203)],o=i.dj.d(n,(function(e,t){var i=t([e],{});return function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=new i;this.emit=t.emit.bind(t),this.on=t.on.bind(t)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(206),i(256),i(214),i(246),i(257),i(445),i(204),i(223)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){function l(i,o,a,l,d){if(l=s.hitch(a,l),!i||!i.addEventListener&&!i.attachEvent)return n.after(i||e.global,o,l,!0);if("string"==typeof o&&"on"==o.substring(0,2)&&(o=o.substring(2)),i||(i=e.global),!d)switch(o){case"keypress":o=c;break;case"mouseenter":o=r.enter;break;case"mouseleave":o=r.leave}return t(i,o,l,d)}a.add("events-keypress-typed",(function(){var e={charCode:0};try{((e=document.createEvent("KeyboardEvent")).initKeyboardEvent||e.initKeyEvent).call(e,"keypress",!0,!0,null,!1,!1,!1,!1,9,3)}catch(e){}return 0==e.charCode&&!a("opera")}));var c,d={106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113},u=a("mac")?"metaKey":"ctrlKey",h=function(e,t){var i=s.mixin({},e,t);return p(i),i.preventDefault=function(){e.preventDefault()},i.stopPropagation=function(){e.stopPropagation()},i};function p(e){e.keyChar=e.charCode?String.fromCharCode(e.charCode):"",e.charOrCode=e.keyChar||e.keyCode}if(a("events-keypress-typed")){c=function(e,i){var n=t(e,"keydown",(function(e){var t=e.keyCode,n=13!=t&&32!=t&&(27!=t||!a("ie"))&&(t<48||t>90)&&(t<96||t>111)&&(t<186||t>192)&&(t<219||t>222)&&229!=t;if(n||e.ctrlKey){var o=n?0:t;if(e.ctrlKey){if(3==t||13==t)return i.call(e.currentTarget,e);o>95&&o<106?o-=48:!e.shiftKey&&o>=65&&o<=90?o+=32:o=d[o]||o}var r=h(e,{type:"keypress",faux:!0,charCode:o});i.call(e.currentTarget,r),a("ie")&&function(e,t){try{e.keyCode=t}catch(e){return 0}}(e,r.keyCode)}})),o=t(e,"keypress",(function(e){var t=e.charCode;return e=h(e,{charCode:t=t>=32?t:0,faux:!0}),i.call(this,e)}));return{remove:function(){n.remove(),o.remove()}}}}else c=a("opera")?function(e,i){return t(e,"keypress",(function(e){var t=e.which;return 3==t&&(t=99),t=t<32&&!e.shiftKey?0:t,e.ctrlKey&&!e.shiftKey&&t>=65&&t<=90&&(t+=32),i.call(this,h(e,{charCode:t}))}))}:function(e,i){return t(e,"keypress",(function(e){return p(e),i.call(this,e)}))};var f={_keypress:c,connect:function(e,t,i,n,o){var r=arguments,a=[],s=0;a.push("string"==typeof r[0]?null:r[s++],r[s++]);var c=r[s+1];a.push("string"==typeof c||"function"==typeof c?r[s++]:null,r[s++]);for(var d=r.length;s<d;s++)a.push(r[s]);return l.apply(this,a)},disconnect:function(e){e&&e.remove()},subscribe:function(e,t,n){return i.subscribe(e,s.hitch(t,n))},publish:function(e,t){return i.publish.apply(i,[e].concat(t))},connectPublisher:function(e,t,i){var n=function(){f.publish(e,arguments)};return i?f.connect(t,i,n):f.connect(t,n)},isCopyKey:function(e){return e[u]}};return f.unsubscribe=f.disconnect,a("extend-dojo")&&s.mixin(e,f),f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{mnemonic:new e({type:"string",notInAction:!0,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(203),i(204),i(344),i(1717),i(775),i(569),i(1081),i(3257),i(1817),i(209),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=t([o,r],{Fixed:void 0,Dynamic:void 0,Deprecated:void 0,constructor:function(e){this._preProcessing(e),t.safeMixin(this,e),delete this.Fixed,delete this.Dynamic,delete this.Deprecated,this.__lockedProperties=[],this.__windowBoundsListenerWindow=this[h.IS_DOCKED]?window:this.__undockedWindow||window,this._updateWindowBoundsListener(this.__windowBoundsListenerWindow),(this.panelId||this.isDocked)&&this._lockProperty(h.INNER_BOUNDS);const i=!(!this.panelId&&!this.isDocked);this.setWindowingSystem({value:h.WINDOW_FRAME_SYSTEM,options:{target:this.__windowBoundsListenerWindow,origin:e.origin,windowReady:i}}),this._setupWindowInnerBoundsWatch(),this.watch(h.ORIGIN,function(e,t,i){this.__locallySetOriginValue=!0,this.__inheritedOriginValue=!1,this._handleOriginChange(e,t,i)}.bind(this)),this._watchAlias("origin_inherit",function(e,t){return this.__locallySetOriginValue||(this.__inheritedOriginValue=!0,this._handleOriginChange(e,null,t),this[e]=t),!0}.bind(this)),this.watch(h.IS_DOCKED,(e,t,i)=>{if(i)this._updateWindowBoundsListener(window),this.__windowBoundsListenerWindow=window,this._lockProperty(h.WINDOW_BOUNDS),this._lockProperty(h.INNER_BOUNDS);else{let e=this.__undockedWindow||window;this._updateWindowBoundsListener(e),this.__windowBoundsListenerWindow=e,this._unlockProperty(h.WINDOW_BOUNDS),this._unlockProperty(h.INNER_BOUNDS)}this.window?("IFRAME"!==this.__windowBoundsListenerWindow.nodeName&&this.window.set("target",this.__windowBoundsListenerWindow),this.window._isReady=!0):(this.setWindowingSystem({value:h.WINDOW_FRAME_SYSTEM,options:{target:this.__windowBoundsListenerWindow,origin:this.window.get(Window.ORIGIN_PROPERTY)}}),this._setupWindowInnerBoundsWatch())}),this.watch("isAddingDocument",(e,t,i)=>{if(!0===t&&!1===i&&(this.set("isUndocking",!1),this.set("isDocking",!1),this.__undockedWindow||this.__typeUndocked)){if(this.__typeUndocked&&delete this.__typeUndocked,this.window&&(this.window._isReady=!0,this.window._pendingPropertiesQueue&&this.window._applyPendingProperties&&this.window._applyPendingProperties()),!1===this.get(h.IS_VISIBLE))return;this.setWindowVisibility(!0),this._applyPendingProperties()}})},setWindowingSystem:function({value:e,options:t={}}){if(this.window){const i=this.window.get("target"),n=this.window.get("origin");t=Object.assign({target:i,origin:n},t),e||(e="IFRAME"===t.target.nodeName?h.INLINE_FRAME_SYSTEM:h.WINDOW_FRAME_SYSTEM)}switch(e){case h.INLINE_FRAME_SYSTEM:this.window=new l(t);break;case h.WINDOW_FRAME_SYSTEM:default:this.window=new c(t)}},isFullscreenAvailable:function(){return!!this.enableFullscreen&&!(!window.document.body.requestFullscreen||window.document.fullscreenElement)},_isFullscreenSetter:function(e){!e||this[h.IS_FULLSCREEN]||this.isFullscreenAvailable()?this[h.IS_FULLSCREEN]=e:d.warn(`Fullscreen mode is not available for document "${this.title}"`)},_isFullscreenGetter:function(){return this[h.IS_FULLSCREEN]},_isPhantomSetter:function(e){d.warn("isPhantom property is deprecated and will be removed in the future, please switch to using the isVisible property instead."),this.set(h.IS_VISIBLE,!e)},_isPhantomGetter:function(){return d.warn("isPhantom property is deprecated and will be removed in the future, please switch to using the isVisible property instead."),!this.get(h.IS_VISIBLE)},_preProcessing:function(e){(e=h._setupVisibleProperty(e)).hasOwnProperty(h.IS_DOCKED)&&e.hasOwnProperty(h.INNER_BOUNDS)&&(e[h.IS_DOCKED]?(delete e[h.INNER_BOUNDS],d.error("Unable to set inner bounds when the child is docked")):(this._addToPendingPropertiesMap(h.INNER_BOUNDS,e[h.INNER_BOUNDS]),delete e[h.INNER_BOUNDS]))},_setupWindowInnerBoundsWatch:function(){this.window.watch(c.INNER_BOUNDS_PROPERTY,(e,t)=>{this.__programmaticInnerBoundsSet||this.__ignoreResize||this.updateInnerBounds(t)})},_handleOriginChange:function(e,t,i){this.__windowBoundsListenerWindow=this[h.IS_DOCKED]?window:this.__undockedWindow||window,this._updateWindowBoundsListener(this.__windowBoundsListenerWindow),this[h.WINDOW_BOUNDS]=s.getWindowBounds(this.__windowBoundsListenerWindow,i),this.window.set(c.ORIGIN_PROPERTY,i),this.updateInnerBounds()},_handleWindowBoundsChange:function(e){this.__respondingToBoundsChange=!0,this._changeAttrValue(h.WINDOW_BOUNDS,e),this.__respondingToBoundsChange=!1},_addWindowBoundsListener:function(e){this.__undockedWindow&&window===this.__undockedWindow||(this.__windowBoundsListenerId=s.addWindowBoundsListener(e,this._handleWindowBoundsChange.bind(this),this.origin))},_removeWindowBoundsListener:function(e){this.__windowBoundsListenerId&&(s.removeWindowBoundsListener(this.__windowBoundsListenerId),delete this.__windowBoundsListenerId)},_updateWindowBoundsListener:function(e){this._removeWindowBoundsListener(e),this._addWindowBoundsListener(e)},updateInnerBounds:function(t){if(!this.__ignoreResize&&!1!==this.get(h.IS_VISIBLE)){var i,n=t||this.window.get(c.INNER_BOUNDS_PROPERTY);if(this.widgetId){if(this.get(h.IS_DOCKED)||this.panelId)i=e.byId(this.widgetId);else{var o=this.window.get("target");o&&o.dijit&&o.dijit.registry&&(i=o.dijit.registry.byId(this.widgetId))}if(!i||!i.domNode)return;var r=(this.panelId?i.domNode:i.domNode.parentElement?i.domNode.parentElement:i.domNode).getBoundingClientRect();this.window.get(c.ORIGIN_PROPERTY)===c.BOTTOM_LEFT_ORIGIN&&this._translateBounds(n);var a={};a.x=n.x+r.left,a.y=n.y+r.top,a.w=r.width,a.h=r.height,"bottomLeft"===this.get("origin")&&this._translateBounds(a),this._unlockProperty(h.INNER_BOUNDS),this.__programmaticInnerBoundsSet=!0,this.set(h.INNER_BOUNDS,a),delete this.__programmaticInnerBoundsSet,(this.get(h.IS_DOCKED)||this.panelId)&&this._lockProperty(h.INNER_BOUNDS)}}},_validateInnerBoundsValue:function(e){return a.hasProperties(e,["x","y","w","h"])?"number"!=typeof e.x?(d.error('Property "x" for the InnerBounds value should be a number'),!1):"number"!=typeof e.y?(d.error('Property "y" for the InnerBounds value should be a number'),!1):"number"!=typeof e.w?(d.error('Property "w" for the InnerBounds value should be a number'),!1):"number"!=typeof e.h?(d.error('Property "h" for the InnerBounds value should be a number'),!1):e.w<=0?(d.error('Property "w" for the InnerBounds value should be greater than zero'),!1):!(e.h<=0)||(d.error('Property "h" for the InnerBounds value should be greater than zero'),!1):(d.error("Value should be an object in this format: {x: number, y: number, w: number, h: number}"),!1)},_setInnerBounds:function(e){if(!this._validateInnerBoundsValue(e))return!1;if(!this.panelId&&!1===this.get(h.IS_VISIBLE))return this._addToPendingPropertiesMap(h.INNER_BOUNDS,e),!1;var t=this.window.get(c.INNER_BOUNDS_PROPERTY),i=this.get(h.INNER_BOUNDS);if(!i)return!1;this.window.get(c.ORIGIN_PROPERTY)!==c.BOTTOM_LEFT_ORIGIN&&this._translateBounds(t),this.get("origin")!==h.BOTTOM_LEFT_ORIGIN&&this._translateBounds(i);var n=this.window.get(c.TARGET_PROPERTY).document.querySelector('[id="toolstripWrapper"]'),o=n?n.getBoundingClientRect().height:0;if(t.x!==i.x||t.y!==i.y||t.w!==i.w||t.h-o!==i.h)return d.error("Cannot set the inner bounds"),!1;var r={x:e.x,y:e.y,w:e.w,h:e.h+o};return this.window.get(c.ORIGIN_PROPERTY)===c.TOP_LEFT_ORIGIN&&this._translateBounds(r),this.__programmaticInnerBoundsSet=!0,this.__ignoreResize=!0,this.window.set(c.INNER_BOUNDS_PROPERTY,r).then(()=>{delete this.__programmaticInnerBoundsSet,delete this.__ignoreResize,this.updateInnerBounds()}),!0},_translateBounds:function(e){e.y=this.window.get(c.TARGET_PROPERTY).screen.height-e.y-e.h},set:function(e,t){if("object"!=typeof e)if("string"!=typeof e||this._isPropertyLocked(e)||this[this._getPropertyNameFromAlias(e)]===t)e===h.INNER_BOUNDS&&d.error('Property "'+e+'" is locked');else{if(this._isAliasForPropertyName(e)){if(this._handleAliasWatch(e,t))return;arguments[0]=this._getPropertyNameFromAlias(e)}(e!==h.INNER_BOUNDS||this.__programmaticInnerBoundsSet||this._setInnerBounds(t))&&this.inherited(arguments)}else for(var i in e)e.hasOwnProperty(i)&&"_watchCallbacks"!=i&&this.set(i,e[i])},_lockProperty:function(e){this._isPropertyLocked(e)||this.__lockedProperties.push(e)},_unlockProperty:function(e){this._isPropertyLocked(e)&&this.__lockedProperties.splice(this.__lockedProperties.indexOf(e),1)},_isPropertyLocked:function(e){return this.__lockedProperties.indexOf(e)>-1},_isAliasForPropertyName:function(e){return p.hasOwnProperty(e)},_getPropertyNameFromAlias:function(e){return this._isAliasForPropertyName(e)?p[e]:e},_watchAlias:function(e,t){this.__aliasWatches||(this.__aliasWatches=Object.create(null));var i=u.generateUuid();return e in this.__aliasWatches||(this.__aliasWatches[e]=Object.create(null)),this.__aliasWatches[e][i]=t,{unwatch:()=>{delete this.__aliasWatches[e][i],a.hasProperties(this.__aliasWatches[e])||delete this.__aliasWatches[e]}}},_handleAliasWatch:function(e,t){var i;if(e in this.__aliasWatches)for(let n in this.__aliasWatches[e])i=this.__aliasWatches[e][n](this._getPropertyNameFromAlias(e),t);return i},setWindowVisibility:function(e){this.window.set(c.VISIBLE_PROPERTY,e)},getWindowVisibility:function(){return this.window.get(c.VISIBLE_PROPERTY)},_addToPendingPropertiesMap:function(e,t){this.__pendingProperties||(this.__pendingProperties={}),this.__pendingProperties[e]=t},_applyPendingProperties:function(){if(this.__pendingProperties){for(let e in this.__pendingProperties)this.set(e,this.__pendingProperties[e]);delete this.__pendingProperties}}});h._setupVisibleProperty=function(e){return"boolean"==typeof e[h.IS_VISIBLE]&&"boolean"==typeof e[h.IS_PHANTOM]&&(d.warn("isPhantom property is deprecated and will be removed in the future, please switch to using the isVisible property instead."),e[h.IS_PHANTOM]=!e[h.IS_VISIBLE]),"boolean"==typeof e[h.IS_PHANTOM]&&"boolean"!=typeof e[h.IS_VISIBLE]&&(d.warn("isPhantom property is deprecated and will be removed in the future, please switch to using the isVisible property instead."),e[h.IS_VISIBLE]=!e[h.IS_PHANTOM]),void 0===e[h.IS_VISIBLE]&&(e[h.IS_VISIBLE]=!0),delete e[h.IS_PHANTOM],e},h.ACTIONS=n.ACTIONS,h.ACTIVE_CONTEXTS="activeContexts",h.INDEX=n.INDEX,h.DESCRIPTION=n.DESCRIPTION,h.DESTROY_ON_CLOSE=n.DESTROY_ON_CLOSE,h.IS_COLLAPSED=n.IS_COLLAPSED,h.IS_DOCKED="isDocked",h.IS_FULLSCREEN="isFullscreen",h.ENABLE_FULLSCREEN="enableFullscreen",h.IS_MAXIMIZED=n.IS_MAXIMIZED,h.IS_OPEN=n.IS_OPEN,h.IS_PHANTOM="isPhantom",h.IS_VISIBLE="isVisible",h.IS_SHOWING=n.IS_SHOWING,h.IS_SELECTED=n.IS_SELECTED,h.REGION=n.REGION,h.SHORT_TITLE=n.SHORT_TITLE,h.TILE=n.TILE,h.TITLE=n.TITLE,h.WINDOW_BOUNDS="windowBounds",h.INNER_BOUNDS="innerBounds",h.ORIGIN="origin",h.IS_BUSY="isBusy",h.IS_COLLAPSIBLE=n.IS_COLLAPSIBLE,h.IS_MAXIMIZABLE=n.IS_MAXIMIZABLE,h.IS_RESIZABLE=n.IS_RESIZABLE,h.PERMISSIBLE_REGIONS=n.PERMISSIBLE_REGIONS,h.PREFERRED_WIDTH=n.PREFERRED_WIDTH,h.PREFERRED_HEIGHT=n.PREFERRED_HEIGHT,h.BOTTOM_LEFT_ORIGIN=c.BOTTOM_LEFT_ORIGIN,h.TOP_LEFT_ORIGIN=c.TOP_LEFT_ORIGIN,h.WINDOW_FRAME_SYSTEM="WindowFrameSystem",h.INLINE_FRAME_SYSTEM="InlineFrameSystem";var p={windowBounds_force:h.WINDOW_BOUNDS,origin_inherit:h.ORIGIN};return h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(234),i(249),i(237),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{LEADING_SPACES_REGEXP:/^\s+/,TRAILING_SPACES_REGEXP:/\s+$/,URL_REGEXP_STRING:"((https?|ftp):\\/\\/|www\\.)[^\\s]+",ROUND_PAREN_OPEN_CHAR:"(",ROUND_PAREN_CLOSE_CHAR:")",CURLY_PAREN_OPEN_CHAR:"{",CURLY_PAREN_CLOSE_CHAR:"}",SQUARE_PAREN_OPEN_CHAR:"[",SQUARE_PAREN_CLOSE_CHAR:"]",SINGLE_QUOTE_OPEN_CHAR:"'",SINGLE_QUOTE_CLOSE_CHAR:"'",DOUBLE_QUOTE_OPEN_CHAR:'"',DOUBLE_QUOTE_CLOSE_CHAR:'"',SINGLE_SMART_QUOTE_OPEN_CHAR:"‘",SINGLE_SMART_QUOTE_CLOSE_CHAR:"’",DOUBLE_SMART_QUOTE_OPEN_CHAR:"“",DOUBLE_SMART_QUOTE_CLOSE_CHAR:"”",PAIR_INSERT_ALLOWED_CHAR_AFTER_CURSOR:[""," ",")","}","]",";","%"],LINE_CONTINUATION:"...",isAtEndOfEmptyLine:function(e){var t=e.getNode().rootContainer();return n.isAtEndOfContainer(e,t)&&""===t.getTextForPositioning().trim()},isFirstLayerContainer:function(e){var t=e.getNode();return t.textContainer()===t.rootContainer()},isInString:function(e,t,i){var n=i.getTokenOnLineColumn(e,t);return!(!n||n.getLength()<=2)&&r.isMatlabStringToken(n)},isInMatlabUntermString:function(e,t,i,n){var o=i.getTokenOnLineColumn(e,t);return"single"===n?r.isMatlabUntermSingleQuoteStringToken(o):r.isMatlabUntermDoubleQuoteStringToken(o)},isInCommandDualSyntax:function(e,t,i){var n=i.getTokenOnLineColumn(e,t);return!!n&&r.isMatlabDualToken(n)},isCursorPositionApplicableForSplitRule:function(e){var i=e.getNode();if(!t.isCodeContainer(i))return!1;var o=e.getNode().rootContainer();return!(n.isAtEndOfContainer(e,o)||""===o.getTextForPositioning().trim())},isNonCodeLineInBetweenForSplitRule:function(i,n,o){e.assert(n<=o,"Start line should be <= end line!");for(var r=n;r<=o;r+=1){var a=i.getLineNode(r);if(!t.isCodeContainer(a))return!0}return!1},areThereMoreOpenCharactersThanClosingOnLine:function(e,t,i,n,o){for(var r=this._getLineTextForFormatting(e,i-1),a=0,s=0,l=0;l<r.length;l++)t.isInString(i-1,l)||(r[l]===n&&(a+=1),r[l]===o&&(s+=1));return n===o?a%2!=0:a>s},isLineColumnBeforeValidString:function(e,t,i,o,r){var a=this._getLineTextForFormatting(e,i-1),s=e.getPositionForLineColumn(i,o+1),l=n.getWordAtPosition(e,s);if(null===l)return a.substring(o,o+1)===r;var c=l.endLineCol.column,d=a.substring(o-1,o),u=a.substring(c,c+1);return d===r&&u===r},isCharAtLineColumnForFormatting:function(t,i,n,o){return e.assert(1===i.length,"Input must be a character"),i===this.getTextAtLineColumnForFormatting(t,n,o,1)},getTextAtLineColumnForFormatting:function(e,t,i,n){return this._getLineTextForFormatting(e,t).substr(i,n)},_getLineTextForFormatting:function(e,t){return e.getLineNode(t).getTextForPositioning()},lineHasUntermSingleQuoteString:function(e,t){return t.lineHasTokenToPassCheck(e,r.isMatlabUntermSingleQuoteStringToken)},lineHasUntermDoubleQuoteString:function(e,t){return t.lineHasTokenToPassCheck(e,r.isMatlabUntermDoubleQuoteStringToken)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(212),i(864),i(1032),i(221),i(204),i(285)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=function(){},l=Object.freeze||function(){},c=e.Deferred=function(e){var a,d,u,h,p,f,g,m=this.promise=new i;function _(e){if(d)throw new Error("This deferred has already been resolved");a=e,d=!0,v()}function v(){for(var e;!e&&g;){var i=g;g=g.next,(e=i.progress==s)&&(d=!1);var n=p?i.error:i.resolved;if(o("config-useDeferredInstrumentation")&&p&&t.instrumentRejected&&t.instrumentRejected(a,!!n),n)try{var l=n(a);if(l&&"function"==typeof l.then){l.then(r.hitch(i.deferred,"resolve"),r.hitch(i.deferred,"reject"),r.hitch(i.deferred,"progress"));continue}var c=e&&void 0===l;e&&!c&&(p=l instanceof Error),i.deferred[c&&p?"reject":"resolve"](c?a:l)}catch(e){i.deferred.reject(e)}else p?i.deferred.reject(a):i.deferred.resolve(a)}}this.isResolved=m.isResolved=function(){return 0==h},this.isRejected=m.isRejected=function(){return 1==h},this.isFulfilled=m.isFulfilled=function(){return h>=0},this.isCanceled=m.isCanceled=function(){return u},this.resolve=this.callback=function(e){this.fired=h=0,this.results=[e,null],_(e)},this.reject=this.errback=function(e){p=!0,this.fired=h=1,o("config-useDeferredInstrumentation")&&t.instrumentRejected&&t.instrumentRejected(e,!!g),_(e),this.results=[null,e]},this.progress=function(e){for(var t=g;t;){var i=t.progress;i&&i(e),t=t.next}},this.addCallbacks=function(e,t){return this.then(e,t,s),this},m.then=this.then=function(e,t,i){var n=i==s?this:new c(m.cancel),o={resolved:e,error:t,progress:i,deferred:n};return g?f=f.next=o:g=f=o,d&&v(),n.promise};var b=this;m.cancel=this.cancel=function(){if(!d){var t=e&&e(b);d||(t instanceof Error||(t=new n(t)),t.log=!1,b.reject(t))}u=!0},l(m)};return r.extend(c,{addCallback:function(t){return this.addCallbacks(r.hitch.apply(e,arguments))},addErrback:function(t){return this.addCallbacks(null,r.hitch.apply(e,arguments))},addBoth:function(t){var i=r.hitch.apply(e,arguments);return this.addCallbacks(i,i)},fired:-1}),c.when=e.when=a,c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(238),i(215),i(203),i(204)],o=i.dj.d(n,(function(e,t,i,n){return n.extend(t,{focused:!1,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()}}),i("dijit._FocusMixin",null,{_focusManager:e})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(215),i(360),i(316),i(307),i(216),i(351),i(330),i(608),i(352),i(343),i(353),i(335),i(433),i(409),i(1713),i(421),i(259),i(770),i(2851)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){return e(v.validate([i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,b]),{baseClass:"mwWidget mwCheckBox",templateString:y,postCreate:function(){this.inherited(arguments),this.own(t(this.domNode,"keydown",this._handleKeydown.bind(this)),t(this.domNode,"keyup",this._handleKeyup.bind(this)))},_handleKeydown:function(e){32===e.keyCode&&e.preventDefault()},_handleKeyup:function(e){32===e.keyCode&&(this.get("disabled")||e.target.click())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1733),i(2890)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(t),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}e.default={throwErr:function(){n.default.throwError(o.default.root,arguments)},assert:function(){n.default.assert(o.default.root,arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{enabled:new e({type:"boolean",shouldBeFlipped:!0,notInAction:!1,defaultValue:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{actionId:new e({type:"string",notInAction:!0,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(356),i(227),i(210),i(217),i(213),i(204),i(257),i(206),i(245),i(712),i(1276),i(328),i(216),i(867),i(3169),i(31)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){var v=t("dijit._MasterTooltip",[p,f],{duration:u.defaultDuration,templateString:m,postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode),this.bgIframe=new g(this.domNode),this.fadeIn=i.fadeIn({node:this.domNode,duration:this.duration,onEnd:s.hitch(this,"_onShow")}),this.fadeOut=i.fadeOut({node:this.domNode,duration:this.duration,onEnd:s.hitch(this,"_onHide")})},show:function(e,t,i,n,o,r,l){if(!this.aroundNode||this.aroundNode!==t||this.containerNode.innerHTML!=e)if("playing"!=this.fadeOut.status()){this.containerNode.innerHTML=e,o&&this.set("textDir",o),this.containerNode.align=n?"right":"left";var c=h.around(this.domNode,t,i&&i.length?i:C.defaultPosition,!n,s.hitch(this,"orient")),d=c.aroundNodePos;"M"==c.corner.charAt(0)&&"M"==c.aroundCorner.charAt(0)?(this.connectorNode.style.top=d.y+(d.h-this.connectorNode.offsetHeight>>1)-c.y+"px",this.connectorNode.style.left=""):"M"==c.corner.charAt(1)&&"M"==c.aroundCorner.charAt(1)?this.connectorNode.style.left=d.x+(d.w-this.connectorNode.offsetWidth>>1)-c.x+"px":(this.connectorNode.style.left="",this.connectorNode.style.top=""),a.set(this.domNode,"opacity",0),this.fadeIn.play(),this.isShowingNow=!0,this.aroundNode=t,this.onMouseEnter=r||y,this.onMouseLeave=l||y}else this._onDeck=arguments},orient:function(e,t,i,n,o){this.connectorNode.style.top="";var a=n.h,s=n.w;e.className="dijitTooltip "+{"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[t+"-"+i],this.domNode.style.width="auto";var l=r.position(this.domNode);(d("ie")||d("trident"))&&(l.w+=2);var c=Math.min(Math.max(s,1),l.w);if(r.setMarginBox(this.domNode,{w:c}),"B"==i.charAt(0)&&"B"==t.charAt(0)){var u=r.position(e),h=this.connectorNode.offsetHeight;if(u.h>a){var p=a-(o.h+h>>1);this.connectorNode.style.top=p+"px",this.connectorNode.style.bottom=""}else this.connectorNode.style.bottom=Math.min(Math.max(o.h/2-h/2,0),u.h-h)+"px",this.connectorNode.style.top=""}else this.connectorNode.style.top="",this.connectorNode.style.bottom="";return Math.max(0,l.w-s)},_onShow:function(){d("ie")&&(this.domNode.style.filter="")},hide:function(e){this._onDeck&&this._onDeck[1]==e?this._onDeck=null:this.aroundNode===e&&(this.fadeIn.stop(),this.isShowingNow=!1,this.aroundNode=null,this.fadeOut.play()),this.onMouseEnter=this.onMouseLeave=y},_onHide:function(){this.domNode.style.cssText="",this.containerNode.innerHTML="",this._onDeck&&(this.show.apply(this,this._onDeck),this._onDeck=null)}});d("dojo-bidi")&&v.extend({_setAutoTextDir:function(t){this.applyTextDir(t),e.forEach(t.children,(function(e){this._setAutoTextDir(e)}),this)},_setTextDirAttr:function(e){this._set("textDir",e),"auto"==e?this._setAutoTextDir(this.containerNode):this.containerNode.dir=this.textDir}}),_.showTooltip=function(t,i,n,o,r,a,s){return n&&(n=e.map(n,(function(e){return{after:"after-centered",before:"before-centered"}[e]||e}))),C._masterTT||(_._masterTT=C._masterTT=new v),C._masterTT.show(t,i,n,o,r,a,s)},_.hideTooltip=function(e){return C._masterTT&&C._masterTT.hide(e)};var b="DORMANT";function y(){}var C=t("dijit.Tooltip",p,{label:"",showDelay:400,hideDelay:400,connectId:[],position:[],selector:"",_setConnectIdAttr:function(t){e.forEach(this._connections||[],(function(t){e.forEach(t,(function(e){e.remove()}))}),this),this._connectIds=e.filter(s.isArrayLike(t)?t:t?[t]:[],(function(e){return n.byId(e,this.ownerDocument)}),this),this._connections=e.map(this._connectIds,(function(e){var t=n.byId(e,this.ownerDocument),i=this.selector,o=i?function(e){return c.selector(i,e)}:function(e){return e},r=this;return[c(t,o(l.enter),(function(){r._onHover(this)})),c(t,o("focusin"),(function(){r._onHover(this)})),c(t,o(l.leave),s.hitch(r,"_onUnHover")),c(t,o("focusout"),s.hitch(r,"set","state",b))]}),this),this._set("connectId",t)},addTarget:function(t){var i=t.id||t;-1==e.indexOf(this._connectIds,i)&&this.set("connectId",this._connectIds.concat(i))},removeTarget:function(t){var i=t.id||t,n=e.indexOf(this._connectIds,i);n>=0&&(this._connectIds.splice(n,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments),o.add(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var t=this.connectId;e.forEach(s.isArrayLike(t)?t:[t],this.addTarget,this)},getContent:function(e){return this.label||this.domNode.innerHTML},state:b,_setStateAttr:function(e){if(!(this.state==e||"SHOW TIMER"==e&&"SHOWING"==this.state||"HIDE TIMER"==e&&this.state==b)){switch(this._hideTimer&&(this._hideTimer.remove(),delete this._hideTimer),this._showTimer&&(this._showTimer.remove(),delete this._showTimer),e){case b:this._connectNode&&(C.hide(this._connectNode),delete this._connectNode,this.onHide());break;case"SHOW TIMER":"SHOWING"!=this.state&&(this._showTimer=this.defer((function(){this.set("state","SHOWING")}),this.showDelay));break;case"SHOWING":var t=this.getContent(this._connectNode);if(!t)return void this.set("state",b);C.show(t,this._connectNode,this.position,!this.isLeftToRight(),this.textDir,s.hitch(this,"set","state","SHOWING"),s.hitch(this,"set","state","HIDE TIMER")),this.onShow(this._connectNode,this.position);break;case"HIDE TIMER":this._hideTimer=this.defer((function(){this.set("state",b)}),this.hideDelay)}this._set("state",e)}},_onHover:function(e){this._connectNode&&e!=this._connectNode&&this.set("state",b),this._connectNode=e,this.set("state","SHOW TIMER")},_onUnHover:function(e){this.set("state","HIDE TIMER")},open:function(e){this.set("state",b),this._connectNode=e,this.set("state","SHOWING")},close:function(){this.set("state",b)},onShow:function(){},onHide:function(){},destroy:function(){this.set("state",b),e.forEach(this._connections||[],(function(t){e.forEach(t,(function(e){e.remove()}))}),this),this.inherited(arguments)}});return C._MasterTooltip=v,C.show=_.showTooltip,C.hide=_.hideTooltip,C.defaultPosition=["after-centered","before-centered"],C}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(469)],o=i.dj.d(n,(function(e){var t;return t={pendingEvents:[],updatePositions:function(i){if(i.type===e.INSERT_NODE)return void t._updatePositionsForInsertNodeEvent(i);if(i.type===e.DELETE_NODE)return void t._updatePositionsForDeleteNodeEvent(i);const n=i.node;if(!n)return;const o=t.getPositions(n);for(let e=0,r=o.length;e<r;e++){const r=o[e],a=r.handleNodeChange(i);t._handleUpdatedNodeForPosition(r,n,a)}},_updatePositionsForInsertNodeEvent:function(e){var i=e.newNodes,n=i[0].previousSibling(),o=i[i.length-1].nextSibling(),r=i[0].isRootContainer(),a=r&&e.referenceSibling!==n,s=r&&e.referenceSibling!==o;n&&!a&&t._updateAdjacentPositions(n.endNode(),e,!0),o&&!s&&t._updateAdjacentPositions(o.startNode(),e,!1)},_updateAdjacentPositions:function(e,i,n){const o=t.getPositions(e);for(let r=0,a=o.length;r<a;r++){const a=o[r],s=a.handleSiblingNodeChange(i,n);t._handleUpdatedNodeForPosition(a,e,s)}},_updatePositionsForDeleteNodeEvent:function(e){const i=e.nodes;for(let n=0,o=i.length;n<o;n++){const o=i[n],r=t.getPositions(o);for(let i=0,n=r.length;i<n;i++){const n=r[i],a=n.handleDeleteNodeEvent(e);t._handleUpdatedNodeForPosition(n,o,a)}}},_handleUpdatedNodeForPosition:function(e,i,n){n?i!==n&&(t.detachPosition(i,e),t.attachPosition(n,e)):t.detachPosition(i,e)},queueEvent:function(e){t.pendingEvents.push(e)},firePendingEvents:function(){for(;t.pendingEvents.length>0;){var e=t.pendingEvents;t.pendingEvents=[];for(var i=0;i<e.length;i++)e[i]()}},attachPosition:function(e,t){e.positionsSet||(e.positionsSet=new Set),e.positionsSet.add(t)},detachPosition:function(e,t){e.positionsSet.delete(t)},isPositionAttached:function(e){var t=e.getNode();return t&&t.positionsSet&&t.positionsSet.has(e)},getPositions:function(e){return e&&e.positionsSet?[...e.positionsSet]:[]},getNumberOfPositions:function(e){return e.positionsSet?e.positionsSet.size:0},isPositionInRange:function(e,t){var i=e.getLineColumn(),n=i.line,o=i.column,r=t.getStartPosition().getLineColumn(),a=r.line,s=r.column,l=t.getEndPosition().getLineColumn(),c=l.line,d=l.column;return(n>a||n===a&&o>=s)&&(n<c||n===c&&o<=d)},comparePositions:function(e,t){var i=e.getLineColumn(),n=t.getLineColumn();return i.line===n.line?i.column-n.column:i.line-n.line}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return{COPY_FOR_COMMAND_WINDOW:"application/x-java-serialized-object",HTML:"text/html",RTF:"text/rtf",IMAGE:"image/x-java-image",IMAGE_LIST:"application/liveeditor_internal_imagelist",MATLAB_RICHTEXT:"application/matlab_json",MATHML:"application/mathml+xml",MATHML_PRESENTATION:"application/mathml-presentation+xml",TEXT:"text/plain",UNICODE_STRING:"Unicode String",PROMPTLESS_STRING:"application/x-matlab-promptless-string"}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{TREE:"TREE",TREETABLE:"TREETABLE",TABLE:"TABLE"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(227),i(210),i(221),i(204),i(206),i(605),i(248),i(242),i(487),i(231)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=t("dijit._CssStateMixin",[],{hovering:!1,active:!1,_applyAttributes:function(){for(var t in this.inherited(arguments),e.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active","_opened"],(function(e){this.watch(e,r.hitch(this,"_setStateClass"))}),this),this.cssStateNodes||{})this._trackMouseState(this[t],this.cssStateNodes[t]);this._trackMouseState(this.domNode,this.baseClass),this._setStateClass()},_cssMouseEvent:function(e){if(!this.disabled)switch(e.type){case"mouseover":case"MSPointerOver":case"pointerover":this._set("hovering",!0),this._set("active",this._mouseDown);break;case"mouseout":case"MSPointerOut":case"pointerout":this._set("hovering",!1),this._set("active",!1);break;case"mousedown":case"touchstart":case"MSPointerDown":case"pointerdown":case"keydown":this._set("active",!0);break;case"mouseup":case"dojotouchend":case"MSPointerUp":case"pointerup":case"keyup":this._set("active",!1)}},_setStateClass:function(){var t=this.baseClass.split(" ");function i(i){t=t.concat(e.map(t,(function(e){return e+i})),"dijit"+i)}this.isLeftToRight()||i("Rtl");var n="mixed"==this.checked?"Mixed":this.checked?"Checked":"";this.checked&&i(n),this.state&&i(this.state),this.selected&&i("Selected"),this._opened&&i("Opened"),this.disabled?i("Disabled"):this.readOnly?i("ReadOnly"):this.active?i("Active"):this.hovering&&i("Hover"),this.focused&&i("Focused");var o=this.stateNode||this.domNode,r={};e.forEach(o.className.split(" "),(function(e){r[e]=!0})),"_stateClasses"in this&&e.forEach(this._stateClasses,(function(e){delete r[e]})),e.forEach(t,(function(e){r[e]=!0}));var a=[];for(var s in r)a.push(s);o.className=a.join(" "),this._stateClasses=t},_subnodeCssMouseEvent:function(e,t,i){if(!this.disabled&&!this.readOnly)switch(i.type){case"mouseover":case"MSPointerOver":case"pointerover":o(!0);break;case"mouseout":case"MSPointerOut":case"pointerout":o(!1),r(!1);break;case"mousedown":case"touchstart":case"MSPointerDown":case"pointerdown":case"keydown":r(!0);break;case"mouseup":case"MSPointerUp":case"pointerup":case"dojotouchend":case"keyup":r(!1);break;case"focus":case"focusin":a(!0);break;case"blur":case"focusout":a(!1)}function o(i){n.toggle(e,t+"Hover",i)}function r(i){n.toggle(e,t+"Active",i)}function a(i){n.toggle(e,t+"Focused",i)}},_trackMouseState:function(e,t){e._cssState=t}});return s((function(){function e(e,t,n){if(!n||!i.isDescendant(n,t))for(var o=t;o&&o!=n;o=o.parentNode)if(o._cssState){var r=u.getEnclosingWidget(o);r&&(o==r.domNode?r._cssMouseEvent(e):r._subnodeCssMouseEvent(o,o._cssState,e))}}var t,n=c.body();a(n,l.over,(function(t){e(t,t.target,t.relatedTarget)})),a(n,l.out,(function(t){e(t,t.target,t.relatedTarget)})),a(n,d.press,(function(i){e(i,t=i.target)})),a(n,d.release,(function(i){e(i,t),t=null})),a(n,"focusin, focusout",(function(e){var t=e.target;if(t._cssState&&!t.getAttribute("widgetId")){var i=u.getEnclosingWidget(t);i&&i._subnodeCssMouseEvent(t,t._cssState,e)}}))})),h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(238),i(245),i(223),i(206),i(225),i(231),i(277),i(215),i(216),i(272),i(1282),i(1039),i(1283),i(870),i(1284),i(1285),i(351),i(335),i(259),i(1711)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){return e(y.validate([c,h,d,u,p,f,g,m,_,v,b]),{baseClass:"mwWidget mwContextMenu",disabled:!1,templateString:C,postCreate:function(){this.inherited(arguments),this._activeEventListeners=[],this._onOpenEventListenersInfo=[{event:"blur",target:window,callback:t.hitch(this,(function(e){this._destroyed?this._removeOnOpenEventListeners():e.target===window&&this.closeMenu()})),useCapture:!0},{event:"resize",target:window,callback:t.hitch(this,(function(e){this._destroyed?this._removeOnOpenEventListeners():(e.target===window||this._shouldCloseMenu(e.target))&&this.closeMenu()})),useCapture:!0},{event:"wheel",target:document.body,callback:t.hitch(this,"_onWheel")},{event:"mousewheel",target:document.body,callback:t.hitch(this,"_onWheel")},{event:"mousedown",target:document.body,callback:t.hitch(this,(function(e){this._destroyed?this._removeOnOpenEventListeners():this._shouldCloseMenu(e.target)&&this.closeMenu()})),useCapture:!0},{event:"pointerdown",target:document.body,callback:t.hitch(this,(function(e){this._destroyed?this._removeOnOpenEventListeners():this._shouldCloseMenu(e.target)&&this.closeMenu()})),useCapture:!0},{event:"mouseenter",target:document.body,callback:t.hitch(this,this._onMouseMovement),useCapture:!0},{event:"mouseover",target:document.body,callback:t.hitch(this,this._onMouseMovement),useCapture:!0},{event:"contextmenu",target:this.domNode,callback:function(e){this._destroyed?this._removeOnOpenEventListeners():e.preventDefault()},useCapture:!0},{event:"keydown",target:this.domNode,callback:t.hitch(this,(function(e){this._destroyed?this._removeOnOpenEventListeners():e.keyCode===o.ESCAPE&&(this.closeMenu(),document.body.classList.contains("mwHasFocusManager")||i.focus(this._previousFocusNode))}))},{event:"change",target:this.domNode,callback:t.hitch(this,(function(e){if(this._destroyed)this._removeOnOpenEventListeners();else{var t=s.getEnclosingWidget(e.target);t.domNode.hasAttribute("data-composite-child")&&(t=s.byNode(document.getElementById(t.domNode.getAttribute("data-composite-primary-id")))),(t.get("closeMenuOnClick")||void 0===t.get("closeMenuOnClick"))&&this.closeMenu()}}))},{event:"close",target:this.domNode,callback:t.hitch(this,this._cleanupOnClose)}],this.own(r(this.domNode,"open",t.hitch(this,this._handleOpen))),this.set("disabled",this.disabled)},_setDisabledAttr:function(e){if("boolean"==typeof value)throw new Error("Expected 'disabled' property to be a boolean");e?this._removeRightClickEventListener():this._addRightClickEventListener(),this._set("disabled",e)},_addRightClickEventListener:function(){this._rightClickListener||(this._rightClickListener=r(document.body,"contextmenu",this._onContextMenu.bind(this)),this.own(this._rightClickListener))},_removeRightClickEventListener:function(){this._rightClickListener&&(this._rightClickListener.remove(),delete this._rightClickListener)},_addOnOpenEventListeners:function(){setTimeout(function(){if(this._activeEventListeners.length<this._onOpenEventListenersInfo.length)for(var e=0;e<this._onOpenEventListenersInfo.length;e++)if(this._onOpenEventListenersInfo[e].useCapture)this._onOpenEventListenersInfo[e].target.addEventListener(this._onOpenEventListenersInfo[e].event,this._onOpenEventListenersInfo[e].callback,!0),this._activeEventListeners.push({target:this._onOpenEventListenersInfo[e].target,event:this._onOpenEventListenersInfo[e].event,callback:this._onOpenEventListenersInfo[e].callback,useCapture:!0});else{var t=r(this._onOpenEventListenersInfo[e].target,this._onOpenEventListenersInfo[e].event,this._onOpenEventListenersInfo[e].callback);this.own(t),this._activeEventListeners.push(t)}}.bind(this),0)},_removeOnOpenEventListeners:function(){if(this._activeEventListeners.length>0)for(;this._activeEventListeners.length>0;){var e=this._activeEventListeners.pop();e.useCapture?e.target.removeEventListener(e.event,e.callback,!0):e.remove()}},_onWheel:function(e){this._destroyed?this._removeOnOpenEventListeners():this.isDescendant(e.target)||this.closeMenu()},isMenuOpen:function(){return this.domNode&&this.domNode.parentElement&&"none"!==this.domNode.parentElement.style.display},open:function(e){this.openMenu(e)},openMenu:function(e){if(!this.get("disabled")&&!this._destroyed){if(this._computeTargetNodes(e),e.doNotClose=this._nodeMatchesSelector(e.target,".galleryPopup, .galleryPopup *, .mwSectionPopup, .mwSectionPopup *, [data-type='PopupList'], [data-type='PopupList'] *"),e.target){var t=s.getEnclosingWidget(e.target);t&&t.id&&this.domNode.setAttribute("data-target-id",t.id)}if("contextmenu"===e.type)e.mwEventData&&e.mwEventData.around?this._handleOpenWithDomNode(e):this._handleRightClick(e);else if(e.target instanceof HTMLElement&&isNaN(e.x)&&isNaN(e.y))this._handleOpenWithDomNode(e);else{if(e.target||isNaN(e.x)||isNaN(e.y))throw new Error("Invalid parameters passed");this._handleOpenWithXY(e)}}},_onMouseMovement:function(e){this._destroyed?this._removeOnOpenEventListeners():this.isDescendant(e.target)||(e.stopImmediatePropagation(),e.preventDefault())},_nodeMatchesSelector:function(e,t){var i=!1;return e&&t&&(e.matches?i=e.matches(t):e.matchesSelector?i=e.matchesSelector(t):e.webkitMatchesSelector?i=e.webkitMatchesSelector(t):e.mozMatchesSelector?i=e.mozMatchesSelector(t):e.msMatchesSelector?i=e.msMatchesSelector(t):e.oMatchesSelector&&(i=e.oMatchesSelector(t))),i},_handleRightClick:function(e){if(this._contextMenuNodes.indexOf(e.target)>=0){if(this._previousFocusNode=document.activeElement,this.willOpenCallback&&this.willOpenCallback({target:e.target,x:e.clientX,y:e.clientY}))return;e.pageX<1&&e.pageY<1?this._showMenu({around:e.target,popup:this,doNotClose:e.doNotClose}):this._showMenu({x:e.pageX,y:e.pageY,popup:this,doNotClose:e.doNotClose})}},_handleOpenWithDomNode:function(e){var t,i=e.mwEventData||{};if(this._contextMenuNodes.indexOf(e.target)>=0){if(this._previousFocusNode=e.target,this.willOpenCallback&&this.willOpenCallback({target:e.target}))return;t=i.around||e.target,this._showMenu({target:e.target,around:t,popup:this,doNotClose:e.doNotClose})}},_handleOpenWithXY:function(e){this.willOpenCallback&&this.willOpenCallback({x:e.x,y:e.y,target:e.target||document.elementFromPoint(e.x,e.y)})||this._showMenu({x:e.x,y:e.y,popup:this})},_showMenu:function(e){this._destroyed||0===this.domNode.childElementCount||(this._closeEventData?this._closeEventData.mwFocusData?this._closeEventData.mwFocusData.previousFocusNode=document.activeElement:this._closeEventData.mwFocusData={previousFocusNode:document.activeElement}:this._closeEventData={mwFocusData:{previousFocusNode:document.activeElement}},this._lastKnownInvokingNode=e.target||document.elementFromPoint(e.x,e.y),l.open(e))},_handleOpen:function(){this._addOnOpenEventListeners()},close:function(){this.closeMenu()},closeMenu:function(){l.close(this)},_cleanupOnClose:function(){this._removeOnOpenEventListeners(),this.domNode&&(this.domNode.removeAttribute("data-target-id"),this.domNode.parentNode&&(this.domNode.parentNode.style.overflowX="visible",this.domNode.parentNode.style.overflowY="visible"))},_shouldCloseMenu:function(e){var t=!0;return!!this.isMenuOpen()&&(e&&(this.isDescendant(e)||e.classList.contains("dijitPopup")&&this.isDescendant(this,e))&&(t=!1),t)},_setTargetNodesAttr:function(e){null==e&&(e=[]),this._set("targetNodes",e)},_computeTargetNodes:function(e){return this._contextMenuNodes=[],this.targetNodes&&this.targetNodes.forEach((function(t){if("string"==typeof t)a(t).forEach((function(e){var t=e.querySelectorAll("*");Object.keys(t).forEach((function(e){this._contextMenuNodes.push(t[e])}),this),this._contextMenuNodes.push(e)}),this);else if("function"==typeof t){var i=t(e);i&&(i.length>1?i.forEach(function(e){this._contextMenuNodes.push(e)}.bind(this)):this._contextMenuNodes.push(i))}else this._contextMenuNodes.push(t)}),this),this._contextMenuNodes},_onContextMenu:function(e){if(n("android")){this._computeTargetNodes(e).indexOf(e.target)>=0&&e.preventDefault()}else e.preventDefault();setTimeout(function(){this.openMenu(e)}.bind(this),0)},_getTargetNode:function(e){return null!==e&&e.hasAttribute("data-composite-child")&&(e=document.getElementById(e.getAttribute("data-composite-primary-id"))),e},_createCallback:function(e,t,i,n){var o,r=0;return void 0===i&&(i=200),function(a){!0===n&&this._computeTargetNodes(a).indexOf(a.target)>=-0&&a.preventDefault(),1===(r+=1)?o=setTimeout((function(){r=0,e(a)}),i):2===r&&(clearTimeout(o),r=0,t(a))}},destroyRecursive:function(){this._removeOnOpenEventListeners(),this.inherited(arguments)},destroy:function(){this._removeOnOpenEventListeners(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(605),i(220),i(485)],o=i.dj.d(n,(function(e,t){return t(e,"",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{XML_HEADER:'<?xml version="1.0" encoding="UTF-8"?>',NAMESPACE_URL:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",RELATIONSHIP_TYPE:"http://schemas.mathworks.com/matlab/code/2013/relationships/document",IMAGE_RELATIONSHIP_TYPE:"http://schemas.mathworks.com/matlab/code/2013/relationships/image",MATHML_RELATIONSHIP_TYPE:"http://www.w3.org/TR/MathML2/",DOCUMENT_TARGET:"/matlab/document.xml",DOCUMENT_CONTENT_TYPE:"application/vnd.mathworks.matlab.code.document+xml",NAMESPACE_TAG:"w",SCHEMA_TAG:"xmlns",ROOT_TAG_NAME:"document",BODY_TAG_NAME:"body",TYPE_TAG:"Type",TYPE_ID_TAG:"id",NUMBER_TAG:"num",NUMBER_PROPERTY_TAG:"numPr",NUMBER_ID_TAG:"numId",PARAGRAPH_TAG_NAME:"p",PARAGRAPH_PROPERTY_TAG_NAME:"pPr",PROPERTY_TAG:"val",PARAGRAPH_STYLE_TAG_NAME:"pStyle",JUSTIFCATION_TAG_NAME:"jc",RUN_OF_TEXT_TAG_NAME:"r",RUN_OF_TEXT_PROPERTY_TAG_NAME:"rPr",BOOKMARK_PREFIX:"MW_",BOOKMARK_START_TAG_NAME:"bookmarkStart",BOOKMARK_END_TAG_NAME:"bookmarkEnd",TEXT_TAG_NAME:"t",BOLD_TAG_NAME:"b",ITALIC_TAG_NAME:"i",UNDERLINE_TAG_NAME:"u",RUN_OF_FONT:"rFonts",FONT_TYPE_TAG:"cs",MONOSPACE_TAG:"monospace",CODE_FORMAT_VALUE:"code",TEXT_FORMAT_VALUE:"text",TITLE_FORMAT_VALUE:"title",HEADING_FORMAT_VALUE:"heading",HEADING2_FORMAT_VALUE:"heading2",HEADING3_FORMAT_VALUE:"heading3",LIST_FORMAT_VALUE:"ListParagraph",UNORDERED_LIST_VALUE:"1",ORDERED_LIST_VALUE:"2",RELATIONSHIP_ID_TAG_NAME:"relationshipId",HEIGHT_ATTRIBUTE_NAME:"height",WIDTH_ATTRIBUTE_NAME:"width",ALTTEXT_ATTRIBUTE_NAME:"altText",VERTICALALIGN_ATTRIBUTE_NAME:"verticalAlign",SECTION_PROPERTY_TAG_NAME:"sectPr",HYPERLINK_FORMAT_VALUE:"hyperlink",HYPERLINK_ID:"r:id",HYPERLINK_TAG:"hyperlink",DOC_LOCATION:"docLocation",ANCHOR:"anchor",CUSTOM_XML_TAG:"customXml",CUSTOM_ELEMENT_TAG:"element",NAME_TAG:"name",EQUATION_ELEMENT:"equation",CUSTOM_XML_PROPERTY:"customXmlPr",CUSTOM_XML_ATTRIBUTE:"attr",CUSTOM_XML_VALUE_TAG:"val",EQUATION_DISPLAY_STYLE:"displayStyle",MCNAMESPACE_TAG:"mc",ALTERNATECONTENT_TAG:"AlternateContent",CHOICE_TAG:"Choice",REQUIRES_ATTRIBUTE_NAME:"Requires",FALLBACK_TAG:"Fallback",ALTERNATECONTENT_TAG_WITH_NAMESPACE:"mc:AlternateContent",FALLBACK_TAG_WITH_NAMESPACE:"mc:Fallback",CHOICE_TAG_WITH_NAMESPACE:"mc:Choice",LIVE_CONTROL_CONTEXT_ATTRIBUTE_NAME:"context",LIVE_CONTROL_START_OFFSET_LINE_ATTRIBUTE_NAME:"startOffsetLine",LIVE_CONTROL_START_COLUMN_ATTRIBUTE_NAME:"startColumn",LIVE_CONTROL_END_OFFSET_LINE_ATTRIBUTE_NAME:"endOffsetLine",LIVE_CONTROL_END_COLUMN_ATTRIBUTE_NAME:"endColumn",LIVE_CONTROL_TEXT_ATTRIBUTE_NAME:"text",LIVE_APP_TASK_ID:"taskID",LIVE_APP_IDENTIFIER:"appIdentifier",LIVE_APP_VARIABLES:"appVariables",LIVE_APP_VARIABLESUSERMAP:"appVariablesUserMap",LIVE_APP_STATE:"appState",LIVE_APP_NUM_OF_CODE_LINES:"numOfCodeLines",LIVE_APP_LINE_OFFSET_FOR_UPDATE:"lineOffsetForUpdate",LIVE_APP_VIEW:"view",LIVE_APP_AUTORUN:"autorun",LIVE_APP_COLLAPSED:"collapsed",SDT_TAG:"sdt",SDT_CONTENT_TAG:"sdtContent",SDT_PROPERTY_TAG:"sdtPr",DOC_PART_OBJ:"docPartObj",DOC_PART_GALLERY:"docPartGallery",ALIAS_TAG:"alias",MARKUP_COMPATIBILITY_NAMESPACE:"http://schemas.openxmlformats.org/markup-compatibility/2006"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(324)],o=i.dj.d(n,(function(e){return{getTokenValueById:function(t){return e.TOKEN_TO_VALUE[t]},getTokenIdByName:function(t){return e.TOKENS[t]},isTokenStartOfBlock:function(t){var i=t.getType();return i===e.TOKENS.FOR||i===e.TOKENS.PARFOR||i===e.TOKENS.IF||i===e.TOKENS.WHILE||i===e.TOKENS.TRY||i===e.TOKENS.SWITCH||i===e.TOKENS.FUNCTION||i===e.TOKENS.NESTED||i===e.TOKENS.CLASSDEF||i===e.TOKENS.PROPERTIES||i===e.TOKENS.ENUMERATION||i===e.TOKENS.SPMD||i===e.TOKENS.EVENTS||i===e.TOKENS.METHODS||i===e.TOKENS.ARGUMENTS_BLOCK},isTokenEndOfBlock:function(t){return t.getType()===e.TOKENS.END},isTokenStartOfMidBlock:function(t){var i=t.getType();return i===e.TOKENS.ELSE||i===e.TOKENS.ELSEIF||i===e.TOKENS.CATCH||i===e.TOKENS.OTHERWISE||i===e.TOKENS.CASE},isSectionTitleToken:function(t){return t.getType()===e.TOKENS.SECTION_TITLE},isWhitespaceToken:function(t){return t.getType()===e.TOKENS.WHITE},isTokenStartOfBlockIndent:function(e){return this.isTokenStartOfBlock(e)||this.isTokenStartOfMidBlock(e)},isCommentToken:function(t){var i=t.getType();return e.TOKENS.COMMENT===i||e.TOKENS.SECTION_TITLE===i||e.TOKENS.BLKCOM===i||e.TOKENS.BLKSTART===i||e.TOKENS.BLKEND===i||e.TOKENS.PRAGMA===i},isLineCommentToken:function(t){var i=t.getType();return e.TOKENS.COMMENT===i},isBlockCommentToken:function(t){var i=t.getType();return e.TOKENS.BLKCOM===i||e.TOKENS.BLKSTART===i||e.TOKENS.BLKEND===i},isBlockCommentStartToken:function(t){var i=t.getType();return e.TOKENS.BLKSTART===i},isBlockCommentEndToken:function(t){var i=t.getType();return e.TOKENS.BLKEND===i},isBlockCommentMidToken:function(t){var i=t.getType();return e.TOKENS.BLKCOM===i},isPragmaCommentToken:function(t){var i=t.getType();return e.TOKENS.PRAGMA===i},isSwitchToken:function(t){return t.getType()===e.TOKENS.SWITCH},isEndOfLineToken:function(t){return t.getType()===e.TOKENS.EOL||t.getType()===e.TOKENS.SEOL||t.getType()===e.TOKENS.CEOL||t.getType()===e.TOKENS.IEOL},isFunctionToken:function(t){return t.getType()===e.TOKENS.FUNCTION||t.getType()===e.TOKENS.NESTED},isIndentableFunction:function(t){return t.getType()===e.TOKENS.NESTED},isMatlabStringToken:function(t){var i=t.getType();return i===e.TOKENS.STRING||i===e.TOKENS.STRING_LITERAL},isMatlabUntermDoubleQuoteStringToken:function(t){return t.getType()===e.TOKENS.UNTERM_STRING_LITERAL},isMatlabUntermSingleQuoteStringToken:function(t){return t.getType()===e.TOKENS.UNTERM},isMatlabDualToken:function(t){return t.getType()===e.TOKENS.DUAL},doesTokenMarkEndOfTypeSection:function(t){var i=t.getType();return i===e.TOKENS.DOTDOTDOT||i===e.TOKENS.COMMENT||i===e.TOKENS.CEOL||i===e.TOKENS.EOL||i===e.TOKENS.IEOL||i===e.TOKENS.SEOL||i===e.TOKENS.END_TYPE},isDotDotDotToken:function(t){return t.getType()===e.TOKENS.DOTDOTDOT},isNestedToken:function(t){return t.getType()===e.TOKENS.NESTED},isBeginTypeToken:function(t){return t.getType()===e.TOKENS.BEGIN_TYPE},isDotToken:function(t){return t.getType()===e.TOKENS.DOT},isIdToken:function(t){return t.getType()===e.TOKENS.ID},isDualToken:function(t){return t.getType()===e.TOKENS.DUAL},isEqualsToken:function(t){return t.getType()===e.TOKENS.EQUALS},getMatchingTokenInLine:function(e,t,i){let n=null;return e.some(e=>{const o=e.getColumn(),r=o+e.getValue().length;if(t>=o&&t<=r&&i>=o&&i<=r)return n=e,!0}),n},getTokensFromLineRange:function(e,t,i,n){for(var o=[],r=t;r<=i;r+=1)for(var a=e[r],s=0;s<a.length;s+=1){var l=a[s];n&&!n(l,s,a)||o.push(l)}return o},checkTokensAreMatching:function(e,t,i){for(var n=0,o=0;o<e.length;o++){var r=e[o];if(r.getValue()===t)n++;else if(r.getValue()===i){if(n<=0)return!1;n--}}return 0===n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{description:new e({type:"string",notInAction:!1,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{shortcut:new e({type:"string",notInAction:!1,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(470),i(662)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e,t){t&&t.anchorId&&(this.anchorId=t.anchorId)},className:"LineNode",groupingType:i.CONTIGUOUS,groupingName:"CodeBlock",setGroupingName:function(e,t){t?this.groupingName=e:(this.groupingName="CodeBlock",e&&""!==e&&(this.groupingName+=" "+e))},containerType:function(){return"code"},getDefaultChild:function(){return{className:"PlainTextNode",text:""}},isTextContainerNode:function(){return!0},containsTextNodes:function(){return!0},getCodeText:function(){return this.getCodeTextOfChildren()},_serializeAttributes:function(e){this.anchorId&&(e.anchorId=this.anchorId)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TOKENS:{FUNCTION:1,NESTED:2,IF:3,SWITCH:4,TRY:5,WHILE:6,FOR:7,END:8,ELSE:9,ELSEIF:10,BREAK:11,RETURN:12,PARFOR:13,GLOBAL:15,PERSISTENT:16,CATCH:20,CONTINUE:21,CASE:22,OTHERWISE:23,CLASSDEF:25,PROPERTIES:28,METHODS:30,EVENTS:31,ENUMERATION:32,SPMD:33,PARSECTION:34,SECTION:35,ID:40,EEND:41,INT:42,FLOAT:43,STRING:44,DUAL:45,BANG:46,QUEST:47,SEMI:50,COMMA:51,LP:52,RP:53,LB:54,RB:55,LC:56,RC:57,FEEND:58,TRANS:60,DOTTRANS:61,NOT:62,AT:63,DOLLAR:64,BACKQUOTE:65,DOUBLEQUOTE:66,SHARP:67,PLUS:70,MINUS:71,MUL:72,DIV:73,LDIV:74,EXP:75,COLON:76,DOT:80,DOTMUL:81,DOTDIV:82,DOTLDIV:83,DOTEXP:84,AND:85,OR:86,ANDAND:87,OROR:88,LT:89,GT:90,LE:91,GE:92,EQ:93,NE:94,EQUALS:95,CNE:96,EOL:100,SEOL:101,CEOL:102,IEOL:103,COMMENT:105,BLKSTART:106,BLKCOM:107,BLKEND:108,SECTION_TITLE:109,CPAD:109,PRAGMA:110,DOTDOTDOT:111,DOTDOT:112,DEEP_NEST:113,DEEP_STMT:114,WHITE:116,NEGERR:118,SEMERR:119,EOLERR:120,UNTERM:121,BADCHAR:122,DEEP_PAREN:123,FP_ERR:124,RES_ERR:125,DEEP_COM:126,BEGIN_TYPE:127,END_TYPE:128,STRING_LITERAL:129,UNTERM_STRING_LITERAL:130,ARGUMENTS_BLOCK:131,HEX:132,BINARY:133,HB_ERR:134,LAST_TOKEN:135},TOKEN_TO_VALUE:{0:"NA",1:"function",2:"nested",3:"if",4:"switch",5:"try",6:"while",7:"for",8:"end",9:"else",10:"elseif",11:"break",12:"return",13:"parfor",14:"NA",15:"global",16:"persistent",17:"NA",18:"NA",19:"NA",20:"catch",21:"continue",22:"case",23:"otherwise",24:"NA",25:"classdef",26:"NA",27:"NA",28:"properties",29:"NA",30:"methods",31:"events",32:"enumeration",33:"spmd",34:"parsection",35:"section",36:"NA",37:"NA",38:"NA",39:"NA",40:"ID",41:"<end>",42:"<int>",43:"<float>",44:"<string>",45:"<dual>",46:"<BANG>",47:"?",48:"NA",49:"NA",50:";",51:",",52:"(",53:")",54:"[",55:"]",56:"{",57:"}",58:"NA",59:"NA",60:"'",61:".'",62:"~",63:"@",64:"$",65:"`",66:"\\",67:"#",68:"NA",69:"NA",70:"+",71:"-",72:"*",73:"/",74:"\\\\",75:"^",76:":",77:"::",78:"NA",79:"NA",80:".",81:".*",82:"./",83:".\\",84:".^",85:"&",86:"|",87:"&&",88:"||",89:"<",90:">",91:"<=",92:">=",93:"==",94:"~=",95:"=",96:"<CNE>",97:"NA",98:"NA",99:"NA",100:"<EOL>",101:"<SEOL>",102:"<CEOL>",103:"<IEOL>",104:"NA",105:"<comment>",106:"<begin block comment>",107:"<block comment>",108:"<end block comment>",109:"%%",110:"PRAGMA",111:"...",112:"<DOT DOT>",113:"<DEEP NEST>",114:"<DEEP STMT>",115:"NA",116:"<whitespace>",117:"NA",118:"<NEG ERROR>",119:"<SEM ERROR>",120:"<EOL ERROR>",121:"<unterm string>",122:"<badchar>",123:"<DEEP PAREN>",124:"<FP ERROR>",125:"<RES ERROR>",126:"<DEEP COM>",127:"NA",128:"NA",129:"<string literal>",130:"<unterm string literal>",131:"arguments",132:"<hex>",133:"<binary>",134:"<hb error>"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{PrimitiveType:{point:0,line:1,linestrip:2,triangle:3,trianglestrip:4},Binding:{none:0,object:1,primitive:2,vertex:3},ClipMode:{none:0,scissor:1,planes:2,polar:3},ColorType:{colormapped:0,truecolor:1,truecoloralpha:2,texturemapped:3},TextureColorType:{truecolor:0,truecoloralpha:1},TextureSamplingFilterType:{nearest:0,linear:1,bilinear:2,trilinear:3},Layer:{back:1,middle:0,front:2},HorizontalAlignment:{left:0,center:1,right:2},VerticalAlignment:{baseline:0,top:1,cap:2,middle:3,bottom:4},VerticalAlignment_GUI:{top:0,cap:1,middle:2,baseline:3,bottom:4},TextInterpreter:{none:0,tex:1,latex:2},MarkerStyle:{plus:0,circle:1,asterisk:2,point:3,x:4,square:5,diamond:6,triangle:7,pyramid:8,right:9,left:10,pentagram:11,hexagram:12,vbar:13,hbar:14,none:15},LineStyle:{solid:0,dashed:1,dotted:2,dashdotted:3,none:4},Platform:{Windows:0,Apple:1,Linux:2},GPUVendor:{Other:-1,Intel:0,NVidia:1,AMD:2,VMWare:3},ImageFormat:{Raw:0,PNG:1,JPG:2},LineJoin:{chamfer:0,miter:1,round:2,none:3},LineCap:{none:0,square:1,round:2},Dependency:{none:0,viewport:1,view:2,screen_resolution:4},RenderTraversalMode:{pick:1,draw:2},PixelUnitType:{csspixel:1,devicepixel:2},LightStyle:{infinite:0,local:1,ambient:2}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(206),i(6198),i(2227),i(2228),i(2230),i(6199),i(6201),i(2232),i(6204),i(6207),i(6208),i(267),i(2234),i(1176),i(2251),i(2252),i(239),i(955),i(1507),i(2253),i(1179),i(2254)],o=i.dj.d(n,(function(e,t,i,n,o,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){"use strict";var S={IdController:t,GeometryController:i,Scroll:n,TableResize:o,EventsController:s,DoubleClickController:l,ColConfigController:c,EditControllerProxy:d,HeaderEditController:u,AttributesController:h};return function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t),this._events=[],this._eventMap={},this.resizeHandler=this.resizeHandler.bind(this);var n=this._viewModel=E.setViewModel(y,C,e,v),o=T.getRowHeaderConfig(i);n.setState(p.protected.testId,"__MW_TABLE__"+i.dataTestId),n.setRowHeaderConfig(o),E.setupRegistration(this,n);var r=this._tableView=E.initializeTableView(n,e,S,f,i),s=r.registry;E.mixinFacade(this,s),E.facadeListeners(this,s)}return r(t,[{key:"registerRenderer",value:function(e,t){E.registerRenderer(this,this._viewModel,e,t)}},{key:"registerEditor",value:function(e,t){E.registerEditor(this,this._viewModel,e,t)}},{key:"startup",value:function(){var e=m.SYNC;this._tableView.renderTable(),this._viewModel.setRenderType(e)}},{key:"destroy",value:function(){this._events.forEach((function(e){e.remove()})),this._tableView.removeTable(this._container)}},{key:"on",value:function(t,i){var n=e(this._eventMap[t],t,i);return this._events.push(n),n}},{key:"getRangeFromId",value:function(e){}},{key:"resizeHandler",value:function(){this._tableView.throttledResize()}},{key:"focus",value:function(){this._tableView.focus()}},{key:"editCell",value:function(){this.focus();var e=this._tableView.domNode;this._editCell({container:e})}},{key:"emits",value:function(){}},{key:"domNode",get:function(){return this._tableView.domNode}}],[{key:"range",value:function(){return v.range()}},{key:"FEATURE",get:function(){return f.AVAILABLE}},{key:"gridStyle",get:function(){return g.public_enum}},{key:"compare",get:function(){return b.compare}},{key:"REORDER",get:function(){return _.AVAILABLE}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function s(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return a(e,null,[{key:"curry",value:function(e){return function t(){var i=arguments;return i.length>=e.length?e.apply(null,i):function(){var e=[];return Array.prototype.push.apply(e,i),Array.prototype.push.apply(e,arguments),t.apply(null,e)}}}},{key:"find",value:function(e,t){for(var i=0;i<e.length&&!t(e[i]);)i++;return i<e.length?e[i]:null}},{key:"flatten",value:function(e){var t=[];return e.forEach((function(e){e=Array.isArray(e)?e:[e],Array.prototype.push.apply(t,e)})),t}},{key:"dedupe",value:function(e){return e.reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[])}},{key:"getNestedProp",value:function(e,t){var i=0,n=e;if(n){for(;i<t.length;){if(!n.hasOwnProperty(t[i]))return;n=n[t[i]],i+=1}return n}}},{key:"compose",value:function(){var e=[].concat(Array.prototype.slice.call(arguments)).reverse();return function(){for(var t=e[0].apply(this,arguments),i=1;i<e.length;i+=1)t=e[i].call(this,t);return t}}},{key:"fork",value:function(e,t,i){return function(n){return e(t(n),i(n))}}},{key:"canConvertToNumber",value:function(e){return!isNaN(e)}},{key:"transpose",value:function(e){if(Array.isArray(e)&&e.length>0)return e[0].map((function(t,i){return e.map((function(e){return e[i]}))}))}},{key:"values",value:function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(e[i]);return t}},{key:"range",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return[].concat(s(Array(e).keys())).map((function(e){return e+t}))}},{key:"rangeArray",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=0&&i>=0){var n=i-t+1;return e.range(n,t)}}},{key:"arrayMerge",value:function(e,t){return[].concat(s(e),s(t))}},{key:"toPromise",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(t,i){return setTimeout(t,e)}))}},{key:"convertSyncFunctionToPromise",value:function(e){var t=arguments;return new Promise((function(i,n){try{return i(e?e.apply(null,t):void 0)}catch(e){return n(e)}}))}},{key:"deepEqual",value:function(t,i){var n=Object.keys(t),o=Object.keys(i);if(n.length!==o.length)return!1;var r=!0,a=!1,s=void 0;try{for(var l,c=n[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var d=l.value,u=t[d],h=i[d],p=e.isObject(u)&&e.isObject(h);if(p&&!e.deepEqual(u,h)||!p&&u!==h)return!1}}catch(e){a=!0,s=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw s}}return!0}},{key:"isObject",value:function(e){return null!=e&&"object"===(void 0===e?"undefined":r(e))}},{key:"classNameArrayEqual",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=e.length;if(i!==t.length)return!1;for(var n=i-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}},{key:"alt",get:function(){return e.curry((function(e,t,i){return e(i)||t(i)}))}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(420),i(302),i(203),i(221),i(240),i(204),i(225),i(385),i(231),i(215),i(2779),i(307),i(1700),i(865)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){function p(){}function f(e){return function(t,n,o,r){return t&&"string"==typeof n&&t[n]==p?t.on(n.substring(2).toLowerCase(),a.hitch(o,r)):e.apply(i,arguments)}}e.around(i,"connect",f),r.connect&&e.around(r,"connect",f);var g=n("dijit._Widget",[d,u,h],{onClick:p,onDblClick:p,onKeyDown:p,onKeyPress:p,onKeyUp:p,onMouseDown:p,onMouseMove:p,onMouseOut:p,onMouseOver:p,onMouseLeave:p,onMouseEnter:p,onMouseUp:p,constructor:function(e){for(var t in this._toConnect={},e)this[t]===p&&(this._toConnect[t.replace(/^on/,"").toLowerCase()]=e[t],delete e[t])},postCreate:function(){for(var e in this.inherited(arguments),this._toConnect)this.on(e,this._toConnect[e]);delete this._toConnect},on:function(e,t){return this[this._onMap(e)]===p?i.connect(this.domNode,e.toLowerCase(),this,t):this.inherited(arguments)},_setFocusedAttr:function(e){this._focused=e,this._set("focused",e)},setAttribute:function(e,t){r.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0"),this.set(e,t)},attr:function(e,t){var i=arguments.length;return i>=2||"object"==typeof e?this.set.apply(this,arguments):this.get(e)},getDescendants:function(){return r.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0"),this.containerNode?s("[widgetId]",this.containerNode).map(c.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}});return o("dijit-legacy-requires")&&l(0,(function(){require(["dijit/_base"])})),g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(375),i(457),i(325),i(1517),i(458),i(406)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{convertPointToScreenSpace:function(e,t){return this.convertPointToScreenSpace2(e,t.getMatrix(),t.getWidth(),t.getHeight())},convertPointToScreenSpace2:function(e,t,i,n){var o=t.transform(e).project();return[(o.getX()+1)*i/2,(o.getY()+1)*n/2,1*(o.getZ()+1)/2]},to32BitFloat:function(e){var t=new Float32Array(1);return t[0]=+e,t[0]},convertScreenSpaceToWorldPoint:function(e,i,n,o){var r=new t(2*e[0]/n-1,2*e[1]/o-1,2*e[2]-1,1),a=i.transform(r);if(0!==a.getW()){var s=a.project();return[s.getX(),s.getY(),s.getZ()]}return[Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE]},getMax:function(e){for(var t=e.length,i=-1/0;t--;)i=e[t]>i?e[t]:i;return i},getNearestPoint:function(e,t,n,o,r){var a={};n||(n=1),o||(o=1),r||(r=1);var s=new i(e.X*n,e.Y*o,e.Z*r),l=Number.MAX_VALUE;for(let e=0;e<t.length;e+=3){var c=new i(t[e]*n,t[e+1]*o,t[e+2]*r).distanceSquared(s);c<l&&(l=c,a.X=t[e],a.Y=t[e+1],a.Z=t[e+2])}return a},isBoundingBoxTooLargeInClipSpace:function(e,i,n){if(i.isValid()){var o=i.getAllCorners();for(let i in o){var r=o[i],a=new t(r.x,r.y,void 0===r.z?1:r.z,1),s=e.transform(a);if(Math.abs(s.getX())>n||Math.abs(s.getY())>n)return!0;if(void 0!==r.z&&Math.abs(s.getZ())>n)return!0}}return!1},doRectanglesIntersect:function(e,t){return!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)},isPOWOf2:function(e){return e>1&&0==(e&e-1)},nextPOWOf2:function(e){return 1<<Math.ceil(Math.log2(e))},copyVertex:function(e,t,i,n,o,r){if(t+o>e.length)throw new Error("error in copyVertex - 1");if(n+o*r>i.length)throw new Error("error in copyVertex - 2");var a=n;for(let n=0;n<r;++n)for(let n=0;n<o;++n){var s=t+n;i[a++]=e[s]}return a},getPlatform:function(){var e=navigator.platform.toLowerCase();return e.indexOf("win")>=0?n.Platform.Windows:e.indexOf("mac")>=0||e.indexOf("ipad")>=0||e.indexOf("iphone")>=0?n.Platform.Apple:n.Platform.Linux},FindDPI:function(){if(this.hasOwnProperty("_ServerBaselinePPI"))return this._ServerBaselinePPI;var e=96;switch(this.getPlatform()){case n.Platform.Windows:case n.Platform.Linux:e=96;break;case n.Platform.Apple:e=72}return e},getDistanceInEyeSpace:function(e,t){return-(e[0]*t._data[2]+e[1]*t._data[6]+e[2]*t._data[10]+t._data[14])},getFarthestBBCorner:function(e){var t=[-e._data[2],-e._data[6],-e._data[10]];return(t[0]>=0?1:0)|(t[1]>=0?2:0)|(t[2]>=0?4:0)},getBBoxNearFar:function(e,t){var i=this.getFarthestBBCorner(e);return[this.getDistanceInEyeSpace(t.getCorner(7&~i),e),this.getDistanceInEyeSpace(t.getCorner(i),e)]},getTransformedBoundingBoxCorners:function(e,t){var i=t.getAllCorners(),n=e._data,o=new Array(8);for(let e=0;e<i.length;e++){var r=[i[e].x,i[e].y,i[e].z,1];o[e]=[r[0]*n[0]+r[1]*n[4]+r[2]*n[8]+n[12],r[0]*n[1]+r[1]*n[5]+r[2]*n[9]+n[13],r[0]*n[2]+r[1]*n[6]+r[2]*n[10]+n[14],r[0]*n[3]+r[1]*n[7]+r[2]*n[11]+n[15]]}return o},getHorizontalAlignment:function(e){var t=[];switch(e){case n.HorizontalAlignment.left:t="left";break;case n.HorizontalAlignment.right:t="right";break;case n.HorizontalAlignment.center:t="center";break;default:t="start "}return t},getHorizontalTranslation:function(e,t){var i=0;switch(t){case n.HorizontalAlignment.left:i=0;break;case n.HorizontalAlignment.right:i=e;break;case n.HorizontalAlignment.center:i=e/2;break;default:i=0}return i},getVerticalTranslation:function(e,t){var i=0;switch(t){case n.VerticalAlignment.baseline:i=0;break;case n.VerticalAlignment.top:case n.VerticalAlignment.cap:i=e;break;case n.VerticalAlignment.bottom:i=0;break;case n.VerticalAlignment.middle:i=e/2;break;default:i=e/2}return i},getVerticalAlignment:function(e){var t=[];switch(e){case n.VerticalAlignment.baseline:t="alphabetic";break;case n.VerticalAlignment.top:t="top";break;case n.VerticalAlignment.cap:t="hanging";break;case n.VerticalAlignment.bottom:t="bottom";break;case n.VerticalAlignment.middle:t="middle";break;default:t="middle"}return t},intersectBounds:function(e,t){var i=Math.max(e.x,t.x),n=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),r=Math.min(e.y+e.height,t.y+t.height);if(o>i&&r>n)return{x:i,y:n,width:o-i,height:r-n}},getPixelBounds:function(e,t,i,n,r){var a=function(e){return Math.abs(Math.round(e)-e)<1e-6?Math.round(e):e},s=this.getHorizontalTranslation(e,i),l=this.getVerticalTranslation(t,n),c=new o(0,0,e,t);c.translate(s,l),c.rotate(r*Math.PI/180);var d=Math.floor(a(c.getXMin())),u=Math.floor(a(c.getYMin()));return{x:d,y:u,width:Math.ceil(a(c.getXMax()))-d,height:Math.ceil(a(c.getYMax()))-u}},rotate2DWithAspect:function(e,t,i,n){var o=a.createFloat32Array(2*t),r=1/n,s=Math.sin(i),l=Math.cos(i);for(let i=0;i<2*t;i+=2)o[i]=(e[i]*n*l-e[i+1]*s)*r,o[i+1]=e[i]*n*s+e[i+1]*l;return o},getNumCircleSegments:function(e,t){var i=4;if(e>=1){var n=t;(i=Math.ceil(Math.PI/Math.acos(1-n/e)))%2&&(i+=1)}return Math.max(Math.min(i,200),4)},getVendor:function(e){if(!e)throw new Error("Invalid WebGL context was passed to getVendor function.");var t="",i="",o=e.getExtension("WEBGL_debug_renderer_info");if(null!=o&&(t=e.getParameter(o.UNMASKED_RENDERER_WEBGL),i=e.getParameter(o.UNMASKED_VENDOR_WEBGL)),null!==t&&null!=i){var r=t.concat(",",i).toLowerCase();if(r.indexOf("intel")>=0)return n.GPUVendor.Intel;if(r.indexOf("nvidia")>=0)return n.GPUVendor.NVidia;if(r.indexOf("amd")>=0)return n.GPUVendor.AMD;if(r.indexOf("vmware")>=0)return n.GPUVendor.VMWare}return n.GPUVendor.Other},getVersion:function(e){if(!e)throw new Error("Invalid WebGL context was passed to getVersion function.");var t=e.getParameter(e.VERSION);if(0!==t.length){var i=t.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g);return parseFloat(i[0])}return 1},convertPoints2DevicePixels:function(e,t){return t*e.getDPI()/72},convertScaledPixels2DevicePixels:function(e,t){return t*e.getPixelScale()},convertRectangleScaledPixels2DevicePixels:function(e,t){var i=e.getPixelScale();return{x:t.x*i,y:t.y*i,width:t.width*i,height:t.height*i}},getTextCenter:function(e,t,i,o,r,a){var s=Math.sin(-a*(Math.PI/180)),l=Math.cos(-a*(Math.PI/180)),c=[e[0],e[1]];switch(t){case n.HorizontalAlignment.left:c[0]+=o/2;break;case n.HorizontalAlignment.right:c[0]+=-o/2}switch(i){case n.VerticalAlignment.top:case n.VerticalAlignment.cap:c[1]+=r/2;break;case n.VerticalAlignment.bottom:case n.VerticalAlignment.baseline:c[1]+=-r/2}c[0]-=e[0],c[1]-=e[1];var d=c[0]*l-c[1]*s,u=c[0]*s+c[1]*l;return[e[0]+d,e[1]+u]},computeTextLogicalBounds:function(t,i,n,o,a){var s=e.create("canvas");s.width=500,s.height=500;var l=s.getContext("2d"),c=this.FindDPI();l.font=r.makeFont(i,c),l.textAlign=this.getHorizontalAlignment(n),l.textBaseline="bottom";var d=i.size*(c/72),u=a.computeSize({font:i},t,t.length,"rgba(1, 0 ,0)",l,d),h=this.getPixelBounds(u.width,u.height,n,o,0),p=72/c;return h.x*=p,h.y*=p,h.width*=p,h.height*=p,h},computeTextLogicalBoundsInPixels:function(t,i,n,o,a){var s=e.create("canvas");s.width=500,s.height=500;var l=s.getContext("2d"),c=this.FindDPI();l.font=r.makeFont(i,c),l.textAlign=this.getHorizontalAlignment(n),l.textBaseline="bottom";var d=i.size*(c/72),u=a.computeSize({font:i},t,t.length,"rgba(1, 0 ,0)",l,d);return this.getPixelBounds(u.width,u.height,n,o,0)},guiVertAlignToJSVertAlign:function(e){switch(e){case n.VerticalAlignment_GUI.top:return n.VerticalAlignment.top;case n.VerticalAlignment_GUI.bottom:return n.VerticalAlignment.bottom;case n.VerticalAlignment_GUI.cap:return n.VerticalAlignment.cap;case n.VerticalAlignment_GUI.baseline:return n.VerticalAlignment.baseline;case n.VerticalAlignment_GUI.middle:return n.VerticalAlignment.middle}},isDataFinite:function(e){if(null===e)return!1;for(let t=0;t<e.length;t++)if(!isFinite(e[t])||void 0===e[t])return!1;return!0},getEventXYCoordinates:function(e){var t=e.target.getBoundingClientRect(),i={};return i.X=e.pageX-t.left,i.Y=e.pageY-t.top,i.YFlip=t.bottom-e.pageY,i},getEventXYRelativeToTheFigureContainer:function(e,t){var i=e.getBoundingClientRect(),n={};return n.X=t.clientX+1-i.left,n.Y=i.bottom-t.clientY,n},convertUint8ColorsToFloat:function(e){var t,i=e.length,n=a.createFloat32Array(i);for(t=0;t<i;t+=1)n[t]=e[t]/255;return n},isPointWithinLimits:function(e,t){var i=e.getX(),n=e.getY(),o=e.getZ(),r=Math.abs(t[1]-t[0]),a=Math.abs(t[3]-t[2]),s=Math.abs(t[5]-t[4]),l=Math.abs(i-t[0])<=.001*r||Math.abs(i-t[1])<=.001*r||i>=t[0]&&i<=t[1],c=Math.abs(n-t[2])<=.001*a||Math.abs(n-t[3])<=.001*a||n>=t[2]&&n<=t[3],d=Math.abs(o-t[4])<=.001*s||Math.abs(o-t[5])<=.001*s||o>=t[4]&&o<=t[5];return l&&c&&d},appendPickResultToEvent:function(e,t){t.pickResult=e},getMarkerDataBreakLimitForPicking:function(){return 1e3}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{disabled:!1,postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwDisabledMixin"),this.set("disabled",this.get("disabled")),this._disableInteractionHandler=this._disableInteractionHandler.bind(this),this._addDisableListener(this.domNode,this._disableInteractionHandler)},startup:function(){this.inherited(arguments),this.get("disabled")&&(this.domNode.dojoClick=!1)},destroy:function(){this.domNode&&this._removeDisableListener(this.domNode,this._disableInteractionHandler),this.inherited(arguments)},_disableInteractionHandler:function(e){this.get("disabled")&&this._disabledInteraction(e)},_disabledInteraction:function(e){e.stopImmediatePropagation();var t=document.createEvent("MouseEvent");t.initMouseEvent(e.type,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.domNode.parentElement.dispatchEvent(t)},_addDisableListener:function(e,t){window.PointerEvent&&e.addEventListener("pointerdown",t,!0),e.addEventListener("mousedown",t,!0),e.addEventListener("click",t,!0)},_removeDisableListener:function(e,t){window.PointerEvent&&e.removeEventListener("pointerdown",t,!0),e.removeEventListener("mousedown",t,!0),e.removeEventListener("click",t,!0)},_updateDisableNode:function(e){e?(this.domNode.classList.add("mwDisabled"),this.domNode.classList.remove("mwEnabled")):(this.domNode.classList.add("mwEnabled"),this.domNode.classList.remove("mwDisabled"))},_setDisabledAttr:function(e){if("boolean"!=typeof e)throw new Error("'disabled' property expects a boolean!");this._set("disabled",e),this._updateDisableNode(e),this.set("hovering",!1),this.set("active",!1),this._setAriaDisabled(),this.baseClass.split(" ").forEach(function(t){e?this.domNode.classList.add(t+"Disabled"):this.domNode.classList.remove(t+"Disabled")}.bind(this)),e?(this.domNode.classList.add("dijitDisabled"),this.domNode.dojoClick=!1):(this.domNode.classList.remove("dijitDisabled"),this.domNode.dojoClick=void 0),this._setTabIndexOnNode(this.focusNode)},_setTabIndexOnNode:function(e){this.get("disabled")?e.removeAttribute("tabIndex"):e.setAttribute("tabIndex","0")},_setAriaDisabled:function(){(this.disabledNode?this.disabledNode:this.domNode).setAttribute("aria-disabled",this.get("disabled")&&!this.get("dropDownNeverDisabled")?"true":"false")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(238),i(215),i(216),i(272),i(1282),i(1039),i(1283),i(870),i(1284),i(1285),i(351),i(2850),i(335),i(259),i(1711)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e(f.validate([i,r,n,o,u,a,s,l,c,d,h,p]),{baseClass:"mwWidget mwMenu",templateString:g,_defaultContextMenuBlocker:function(e){e.preventDefault()},_getTargetNode:function(e){return e.hasAttribute("data-composite-child")&&(e=document.getElementById(e.getAttribute("data-composite-primary-id"))),e},isMenuOpen:function(){return!(!this.domNode||!this.domNode.parentElement)&&"none"!==this.domNode.parentElement.style.display}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{type:"",_setTypeAttr:function(e){if("string"!=typeof e)throw new Error("type property expects a 'String'");this.domNode.setAttribute("data-type",e),this._set("type",e)},postCreate:function(){this.inherited(arguments),this.set("type",this.get("type"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(274),i(270),i(313),i(266)],o=i.dj.d(n,(function(e,t,i,n,o){return{rangeIsInsideOneNode:function(e){return e.getStartPosition().getNode()===e.getEndPosition().getNode()},rangeIsInsideOneTextContainer:function(e){return e.getStartPosition().getNode().textContainer()===e.getEndPosition().getNode().textContainer()},nodesInRange:function(e){var i=e.getStartPosition().getNode(),n=e.getEndPosition().getNode();return t.getNodesInRange(i,n)},paragraphNodesInRange:function(e){var i=e.getStartPosition().getNode(),n=e.getEndPosition().getNode();return t.getParagraphNodesInRange(i,n)},isRangeReadOnly:function(e,i){var n=e.getStartPosition().getNode(),o=e.getEndPosition().getNode(),r=Boolean(i);return t.leafNodesInRangeIterator(n,o,(function(e){return i&&!e.isReadOnly()?(r=!1,!0):!i&&e.isReadOnly()?(r=!0,!0):void 0})),r},_hasTrailingLineBreak:function(e){var t=e.getStartPosition(),i=e.getEndPosition();return 0!==n.comparePositions(t,i)&&1===i.getLineColumn().column},trimTrailingLineBreak:function(e){var t=e,n=e.getStartPosition(),r=e.getEndPosition();if(this._hasTrailingLineBreak(e)){var a=r.getNode().rootContainer().previousSibling().endNode();r=new i(a,a.maxOffset()),t=new o(n,r)}return t},rangeIsInsideOneRootContainer:function(e){return e.getStartPosition().getNode().rootContainer()===e.getEndPosition().getNode().rootContainer()},trimRange:function(e){return this.rangeIsInsideOneTextContainer(e)?this.trimRangeForNodes(e):e},trimRangeForNodes:function(e){if(this.rangeIsInsideOneNode(e))return e;var t=this._trimStartPosition(e);return this._trimEndPosition(t)},_trimStartPosition:function(e){var t=e.getStartPosition(),n=t.getOffset();if(0===n)return e;if(n!==t.getNode().maxOffset())return e;var r=t.getNode();return(r=r.parent.containsTextNodes()?r.nextNode():r.nextSibling())?(r=r.containsTextNodes()?r.startNode():r)===e.getEndPosition().getNode()&&0===e.getEndPosition().getOffset()?e:new o(new i(r,0),e.getEndPosition()):e},_trimEndPosition:function(e){var t=e.getEndPosition();if(0!==t.getOffset())return e;var n=t.getNode();return(n=n.parent.containsTextNodes()?n.prevNode():n.previousSibling())?(n=n.containsTextNodes()?n.endNode():n,new o(e.getStartPosition(),new i(n,n.maxOffset()))):e},expandRangeToFullLines:function(e){var t=e.getStartPosition().getNode(),i=e.getEndPosition().getNode();return new o(t.rootContainer().startPosition(),i.rootContainer().endPosition())},isParagraphNodeInRange:function(e,i){var n=i.getStartPosition().getNode().rootContainer(),o=i.getEndPosition().getNode().rootContainer(),r=!1;return t.siblingNodesInRangeIterator(n,o,(function(t){if(t===e)return r=!0,!0})),r},isNodeInRange:function(e,i){var o=i.getStartPosition().getNode(),r=i.getEndPosition().getNode(),a=!1;return t.leafNodesInRangeIterator(o,r,(function(t){if(t===e&&0!==n.comparePositions(t.startPosition(),i.getEndPosition())&&0!==n.comparePositions(t.endPosition(),i.getStartPosition()))return a=!0,!0})),a},getNodesInRangeOfNodeType:function(e,i){var n=this.getStartEndNodes(e),o=n.startNode,r=n.endNode,a=[];return t.leafNodesInRangeIterator(o,r,function(e){e instanceof i&&a.push(e)}.bind(this)),a},getStartEndNodes:function(e){var t,i,o=e.getStartPosition(),r=o.getNode(),a=e.getEndPosition(),s=a.getNode();return n.comparePositions(o,a)>0?(t=s,i=r):(t=r,i=s),{startNode:t,endNode:i}},rangeIterator:function(e,i){var n=e.getStartPosition().getNode(),o=e.getStartPosition().getOffset(),r=e.getEndPosition().getNode(),a=e.getEndPosition().getOffset();if(n===r)return!!i(n,o,a);var s=i(n,o,n.maxOffset());if(s)return!0;var l=n.nextNode();if(l!==r){var c=r.prevNode();if(s=t.leafNodesInRangeIterator(l,c,function(e){return i(e,0,e.maxOffset())}.bind(this)))return!0}return!!i(r,0,a)},equivalent:function(e,t){return 0===n.comparePositions(e.getStartPosition(),t.getStartPosition())&&0===n.comparePositions(e.getEndPosition(),t.getEndPosition())},isRangeContainedInRange:function(e,t){var i=t.getStartPosition(),o=t.getEndPosition(),r=e.getStartPosition(),a=e.getEndPosition(),s=n.comparePositions(i,r)<=0,l=n.comparePositions(o,a)>=0;return s&&l},getTextForRange:function(e,t){var i=this.nodesInRange(e),n="",o=-1,r=i.splice(0,1)[0];t&&!r.isTextNode()||(n=r.getText().slice(e.getStartPosition().getOffset()),o=0),i.forEach((function(e,i){t&&!e.isTextNode()||(e.rootContainer()!==e.prevNode().rootContainer()&&(n+="\n"),n+=e.getText(),o=i+1)}));var a=e.getEndPosition().getNode().maxOffset(),s=e.getEndPosition().getOffset();return o===i.length&&s<a&&(n=n.slice(0,s-a)),n},getRangeDifference:function(e,t){let i=[];const r=e.getStartPosition(),a=e.getEndPosition(),s=t.getStartPosition(),l=t.getEndPosition();if(n.comparePositions(r,s)<0){if(n.comparePositions(a,s)<0)return[e];i.push(new o(r,s))}else if(n.comparePositions(l,r)<0)return[e];return n.comparePositions(l,a)<0&&i.push(new o(l,a)),i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(274)],o=i.dj.d(n,(function(e){return{assert:function(e,t){if(!e)throw new Error(t)},isDescendant:function(e,t){for(var i=e.parentNode;i;){if(i===t)return!0;i=i.parentNode}return!1},isDomTextNode:function(e){return e&&e.nodeType===Node.TEXT_NODE},hasViewOnlyText:function(e,t){var i=t.getNodeBox(e);return i&&i.textContent!==e.getText()},getVerticalDimensionsBetweenPositions:function(e,t,i){if(this.isFullyHiddenBetweenPositions(e,t,i))return{top:0,bottom:0,height:0};var n=this.getTopOfPositionLine(e,i),o=this.getBottomOfPositionLine(t,i);return{top:n,bottom:o,height:o-n}},getTopOfPositionLine:function(e,t){var i=e.getNode().rootContainer();if(t.isRootContainerVisible(i))return t.getNodeTop(i,!0);var n=this._getBottomOfContainerAbove(i,t);if(null!==n)return n;var o=this._getTopOfContainerBelow(i,t);return null!==o?o:0},getBottomOfPositionLine:function(e,t){var i=e.getNode().rootContainer();if(t.isRootContainerVisible(i))return t.getNodeBottom(i,!0);var n=this._getTopOfContainerBelow(i,t);if(null!==n)return n;var o=this._getBottomOfContainerAbove(i,t);return null!==o?o:0},_getTopOfContainerBelow:function(e,t){var i=this.getVisibleRootContainerBelow(e,t);if(!i)return null;var n=t.getCoordinateForNode(i);return t.isValidCoordinate(n)?n.y:t.getScrollHeight()},_getBottomOfContainerAbove:function(e,t){var i=this.getVisibleRootContainerAbove(e,t);if(i){var n=t.getCoordinateForNode(i);return t.isValidCoordinate(n)?n.y+n.height:0}return null},isFullyHiddenBetweenPositions:function(t,i,n){return!e.getParagraphNodesInRange(t.getNode(),i.getNode()).some((function(e){return n.isRootContainerVisible(e)}),this)},getVisibleRootContainerAbove:function(e,t){for(e=e.previousSibling();e;){if(t.isRootContainerVisible(e))return e;e=e.previousSibling()}return null},getVisibleRootContainerBelow:function(e,t){for(e=e.nextSibling();e;){if(t.isRootContainerVisible(e))return e;e=e.nextSibling()}return null},getClosestVisiblePosition(e,t){let i=e.getNode();if(t.isNodeVisible(i))return e;for(;i;){if(t.isNodeVisible(i))return i.startPosition();i=i.nextNode()}for(i=e.getNode();i;){if(t.isNodeVisible(i))return i.endPosition();i=i.prevNode()}return null},getLastVisibleNodeInContainer:function(e,t){for(var i=e.lastChild();i;){if(t.isNodeVisible(i))return i;i=i.previousSibling()}return null},getLineage:function(e,t){for(var i=[],n=this.getDomNode(e,t);n;){var o=n.rteNode;if(o){if(o.isRootNode())break;i.unshift(o)}n=n.parentNode}return i},getZeroBasedVisibleLineNumbers:function(e){return e.getVisibleLineNumbers().map((function(e){return e-1}))},getDomNode:function(e,t){return t.getNodeBox(e)},isInLastVisibleLine:function(e,t){var i=e.getNode().rootContainer(),n=i.parent.lastChild();return i===(t.isRootContainerVisible(n)?n:this.getVisibleRootContainerAbove(n,t))},isAtVisibleEndOfContainer:function(e,t){var i=e.getNode(),n=e.getOffset();return this.getLastVisibleNodeInContainer(i.rootContainer(),t)===i&&n===i.maxOffset()},isAtVisibleEndOfFile:function(e,t){return this.isInLastVisibleLine(e,t)&&this.isAtVisibleEndOfContainer(e,t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{visualFamily:"default",_setVisualFamilyAttr:function(e){if("string"!=typeof e||0===e.length)throw new Error("'visualFamily' property expects a literal non-empty string!");var t=this._getClassNameForVisualFamily(this.get("visualFamily"));this.domNode.classList.remove(t);var i=this._getClassNameForVisualFamily(e);this.domNode.classList.add(i),this._set("visualFamily",e)},_getClassNameForVisualFamily:function(e){return"mw"+e.charAt(0).toUpperCase()+e.slice(1)+"VisualFamily"}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._events=[]}return r(e,[{key:"on",value:function(e,t){var i=this;this._events[e]||(this._events[e]=[]),this._events[e].push(t);var n={remove:function(){var o=i._events[e].indexOf(t);i._events[e].splice(o,1),n.remove=function(){return null}}};return n}},{key:"emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._events[e],n=Object.getOwnPropertyNames(t),o={};n.forEach((function(e){o[e]=t[e]}));var r=function(e){e&&e.forEach((function(e){e(o)}))};r(i)}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1533),i(271)],o=i.dj.d(n,(function(e,t){var i=e.mergeEnums({internal:{TREE_DISCLOSURE_CLICK:"treeDisclosureClick",TREE_CELL_DOUBLE_CLICK:"treeCellDoubleClick",EMIT_SELECTION_EVENT:"emitSelectionEvent",EMIT_CONTEXT_MENU:"emitContextMenu",TABLE_RIGHT_CLICK:"tableRightClick",INTERACTIVE_CELL_CLICK:"interactiveCellClick",TREETABLE_KEY_PRESS:"treeTableKeyPress",CHECKBOX_CLICKED:"checkBoxClicked",CHECKBOX_STATUS_CHANGE_REQUESTED:"checkboxStatusChangeRequested",SCROLL_CHANGED:"scrollChanged"},exposed:{SELECTION_CHANGED:"selectionChanged",CONTEXT_MENU:"contextMenu",HEADER_MENU:"headerMenuRequested",ICON_ACTION:"iconAction",CHECK_CHANGED:"checkChanged",SCROLL_VIEW_CHANGED:"scrollViewChanged"},protected:{COL_HEADER_MOUNT:"colHeaderDidMount",COL_RESIZE:"colResize"}},t);return Object.freeze(i)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{text:new e({type:"string",defaultValue:"",notInAction:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(212),i(244),i(231),i(215),i(216),i(661),i(209),i(3287)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d={spinnerSize:"large"},u=e("MW.utils.BusyOverlay",[r,a],{_displayed:!1,_started:!1,_spinner:null,_size:null,target:null,_text:"",_textSpan:null,_spinnerTextNode:null,templateString:c,_resizeEvent:null,constructor:function(e){this._textSpan=document.createElement("span"),this._spinnerTextNode=document.createElement("div"),Object.defineProperty(this,"text",{set:function(e){this._text=e,!this._resizeEvent&&this.registerResize(),this._text&&"string"==typeof this._text||(this._text=""),this._textSpan.textContent=this._text,this._started&&this._updateTitle()},get:function(){return this._text},enumerable:!0,configurable:!0}),this._setSpinnerSize(e),this._spinnerTextNode.classList.add("spinnerText"),e&&e.text&&this.set("text",e.text)},_setSpinnerSize:function(e){try{if(null==e)this._size=d;else{if("object"!=typeof e)throw new Error("Incorrect argument passed to BusyOverlay Object.");e.size?this._size=e.size:e.spinnerSize?this._size=e:this._size=d}}catch(e){l.error(e.message)}},_updateTitle:function(){this._textSpan.classList.remove("spinnerCenter"),this._textSpan.classList.add("spinnerCenter")},_updateTextStyle:function(){this._spinnerTextNode.style.marginTop="",this._text&&""!==this.text.toString().trim()&&(this._spinnerTextNode.style.marginTop="10px")},startup:function(){if(!this._started){if(this._spinner=s({type:"spinner",size:this._size.spinnerSize}),this.target){if("string"==typeof this.target){var e=o.byId(this.target);this.target=e?e.domNode:document.getElementById(this.target)}this.target.appendChild(this.domNode),this._spinnerTextNode.appendChild(this._textSpan),this._spinnerBgPanel.appendChild(this._spinnerTextNode)}this._text&&(this._updateTitle(),!this._resizeEvent&&this.registerResize()),this._started=!0,this.inherited(arguments)}},postCreate:function(){this._underlayNode.style.zIndex=1999999999,this.inherited(arguments)},show:function(){this._displayed||(this._started||this.startup(),this._displayed=!0,this._busyOverlayNode.style.display="inline",this._busyOverlayNode.className="mw-busyIndicator",this._updateTextStyle(),this._spinnerTextNode.style.display="block",this._spinnerNode.appendChild(this._spinner),this.onShow())},hide:function(){this._displayed&&(this._displayed=!1,this._busyOverlayNode.style.display="none",this._spinnerNode.removeChild(this._spinner),this._spinnerTextNode.style.display="none",this.onHide())},showUntilFinished:function(e){var t=new i;e.always((function(){t.resolve()})),this.isVisible()||this.show(),this._hideBusyIndicatorPromise?this._hideBusyIndicatorPromise=n([this._hideBusyIndicatorPromise,t.promise]):this._hideBusyIndicatorPromise=t.promise;var o=this._hideBusyIndicatorPromise;o.then(function(){o===this._hideBusyIndicatorPromise&&this.hide()}.bind(this))},uninitialize:function(){if(this.hide(),this.target=null,this._spinner=null,this._displayed=!1,this._busyOverlayNode)for(var e=this._busyOverlayNode.querySelectorAll(".spinnerText"),t=0;t<e.length;t++)e[t].remove();this._textSpan=null,this._spinnerTextNode=null,this.inherited(arguments),this._resizeEvent&&this._resizeEvent.remove()},isVisible:function(){return this._displayed},onShow:function(){},onHide:function(){this.inherited(arguments)},registerResize:function(){this._resizeEvent=t(window,"resize",this._updateTextStyle.bind(this)),this.own(this._resizeEvent)}}),h={LARGE:d,MEDIUM:{spinnerSize:"medium"},SMALL:{spinnerSize:"small"},XSMALL:{spinnerSize:"xsmall"}};return u.SIZE=h,Object.freeze(u.SIZE),Object.freeze(u.SIZE.LARGE),Object.freeze(u.SIZE.MEDIUM),Object.freeze(u.SIZE.SMALL),Object.freeze(u.SIZE.XSMALL),u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{RUN:"motw.run",RUN_CELL:"motw.runCell",RUN_CELL_ADVANCE:"motw.runCellAdvance",RUN_TO_END:"motw.rtc_run_section_end",PAUSE:"motw.rtc_pause",CONTINUE:"motw.rtc_continue",STEP:"motw.rtc_step",STOP:"motw.rtc_stop_execution",DEBUG_CONTINUE:"motw.rtc_debug_continue",DEBUG_STEP:"motw.rtc_debug_step",DEBUG_STEP_IN:"motw.rtc_debug_step_in",DEBUG_STEP_OUT:"motw.rtc_debug_step_out",DEBUG_STOP:"motw.rtc_debug_quit",RUN_TO_CURSOR:"motw.rtc_run_to_cursor",FIND:"motw.find",REPLACE:"motw.replace",FIND_NEXT:"motw.findNext",FIND_PREVIOUS:"motw.findPrevious",FIND_SELECTION:"motw.findSelection",FIND_FILES:"motw.findFiles",BACK:"motw.back",FORWARD:"motw.forward",GOTO:"motw.goTo",GOTO_LINE:"motw.goToLine",GOTO_FILE:"motw.goToFile",GOTO_POSITION_IN_LINE:"motw.goToPositionInLine",GOTO_SECTION_HEADER:"motw.goToSectionHeader",NEXT_SECTION:"motw.rtc_navigate_next_section",PREVIOUS_SECTION:"motw.rtc_navigate_previous_section",BOOKMARK_TOGGLE:"motw.rtc_toggle_bookmark",BOOKMARK_PREVIOUS:"motw.rtc_previous_bookmark",BOOKMARK_NEXT:"motw.rtc_next_bookmark",COMPARE_WITH_DISK:"motw.compareWithDisk",COMPARE_WITH_AUTOSAVE:"motw.compareWithAutosave",REFACTOR:"motw.refactor",REFACTOR_EXTERNAL_FUNCTION:"motw.refactorExternalFunction",REFACTOR_LOCAL_FUNCTION:"motw.refactorLocalFunction",INSERT_SECTION:"motw.insertSection",INSERT_COMMENT:"motw.insertComment",SMART_INDENT:"motw.smartIndent",UNCOMMENT:"motw.uncomment",WRAP_COMMENT:"motw.wrapComment",INDENT:"motw.indent",OUTDENT:"motw.outdent",NEW_SECTION:"motw.newSection",INSERT_SECTION_WITH_TITLE:"motw.insertSectionWithTitle",BOLD:"motw.bold",ITALIC:"motw.italic",MONOSPACED:"motw.monospaced",HYPERLINK:"motw.hyperlink",INLINE_LATEX:"motw.inlineLatex",BULLETED_LIST:"motw.bulletedList",NUMBERED_LIST:"motw.numberedList",IMAGE:"motw.image",PREFORMATTED_TEXT:"motw.preformattedText",CODE:"motw.code",DISPLAY_LATEX:"motw.displayLatex",PUBLISH_AS_HTML:"motw.publishAsHtml",PUBLISH_AS_PDF:"motw.publishAsPdf",PUBLISH:"motw.publish",PUBLISH_CONFIGURATION:"motw.publishConfiguration",BREAKPOINTS:"motw.breakpoints",CLEAR_ALL_BREAKPOINTS:"motw.clearAllBreakpoints",TOGGLE_BREAKPOINT:"motw.toggleBreakpoint",TOGGLE_ENABLE_BREAKPOINT:"motw.toggleEnableBreakpoint",TOGGLE_STOP_IF_ERROR:"motw.stopIfError",TOGGLE_STOP_IF_WARNING:"motw.stopIfWarning",TOGGLE_STOP_IF_NAN_INF:"motw.stopIfNanInf",SAVEAS:"motw.saveAs",SAVEALL:"motw.saveAll",SAVECOPYAS:"motw.saveCopyAs",EXPORT_AS_MFILE:"motw.exportAsMFile",UNDO_EDITOR:"motw.undoEditor",REDO_EDITOR:"motw.redoEditor",CLOSE_EDITOR:"motw.closeEditor",VERSION_LIST:"motw.versionList",GET_OLDER_VERSION:"motw.getOlderVersion",GET_NEWER_VERSION:"motw.getNewerVersion",RESTORE_AS_LATEST:"motw.restoreAsLatest",EXPAND:"motw.editor.rtc_unfold_current_block",COLLAPSE:"motw.editor.rtc_fold_current_block",EXPAND_ALL:"motw.editor.rtc_unfold_all",COLLAPSE_ALL:"motw.editor.rtc_fold_all"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(408),i(2773),i(2775)],o=i.dj.d(n,(function(e,t,i,n){var o={},r={};return new(e(null,{FeatureNames:JSON.parse(n).reduce((function(e,t){return e[t]=t,e}),{}),constructor:function(){this._registerDefaultFeatures()},_registerDefaultFeatures:function(){i.forEach((function(e){this.registerFeature(e)}),this)},registerFeature:function(e){if(!(e instanceof t))throw new Error("Only an instance of MW/uiframework/featuredetection/Feature can be registered with the Feature Detection Service!");if(this._verifyFeatureName(e.name),o[e.name])throw new Error("A feature with this name has already been registered!");o[e.name]=e,this._triggerFeatureRegistrationCallbacks(e.name,!0)},unregisterFeature:function(e){this._verifyFeatureExistence(e),this._triggerFeatureRegistrationCallbacks(e,!1),delete o[e]},_verifyFeatureExistence:function(e){if(!o[e])throw new Error("No registered feature with this name found! Use 'listRegisteredFeatures' to see a list of all the registered feature names and 'registerFeature' to register one.")},_verifyFeatureName:function(e){if(-1===Object.keys(this.FeatureNames).map((function(e){return this.FeatureNames[e]}),this).indexOf(e))throw new Error("The feature's name is not valid! Only the names present in the MW/uiframework/featuredetection/FeatureNames.json are valid.")},_triggerFeatureRegistrationCallbacks:function(e,t){void 0!==r[e]&&r[e].forEach((function(e){e(t)}))},listRegisteredFeatures:function(){return Object.keys(o)},isFeatureRegistered:function(e){return this._verifyFeatureName(e),!!o[e]},getFeatureStatus:function(e){this._verifyFeatureExistence(e);try{return o[e].get("status")}catch(t){throw new Error("An error occurred while running the detection function for the feature named: '"+e+"'. The error was: "+t.message)}},watchFeatureStatus:function(e,t){var i=!1;return this._verifyFeatureExistence(e),{remove:o[e].watch("status",(function(e,n,o){i||t(o)})).remove,pause:function(){i=!0},resume:function(){i=!1}}},watchFeatureRegistration:function(e,t){var i,n=!1;return this._verifyFeatureName(e),i=function(e){n||t(e)},void 0===r[e]?r[e]=[i]:r[e].push(i),{remove:function(){var t=r[e].indexOf(i);t>-1&&r[e].splice(t,1)},pause:function(){n=!0},resume:function(){n=!1}}},destroy:function(){o={},r={}}}))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(767),i(1708),i(606),i(2841),i(1710),i(1037),i(368)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=e([],{constructor:function(e){if(!t.isObject(e)||!e.isInstanceOf(l))throw new Error("actionDataService passed into KeyBindings constructor must be an instance of mw-actiondataservice/ActionDataService ");this._actionDataService=e,this._bindingMap={},this._keyHandler=new a(this)},getBinding:function(e,t){var i,n=o.getKeyBindingData(e,t).keySequenceIdentifier;return void 0===this._bindingMap[n]&&(i=new r(e,t,this._actionDataService),this._bindingMap[n]=i),o.validateNoBrowserConflicts(this._bindingMap[n]),this._bindingMap[n]},getBindingFromKeySequenceIdentifier:function(e){return this._bindingMap[e]},removeBinding:function(e){if(!t.isObject(e)||!e.isInstanceOf(r))throw new Error("Binding must be an instance of mw-keybindings/Binding ");var i=e.getKeySequenceIdentifier();if(void 0===this._bindingMap[i])throw new Error("Error removing the binding: "+e.getShortcut()+". No such binding exists in the map.");e.cleanup(),delete this._bindingMap[i]},cleanup:function(){this._bindingMap=null,this._keyHandler.destroy()}});return c.Keys=i,c.StandardKeySequences=n,c.Platform=s,c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(203)],o=i.dj.d(n,(function(e,t){return t(null,{width:"auto",height:"auto",_allowedValues:["auto","100%"],postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwSizeMixin"),this.on("updatelayout",e.hitch(this,this._updateLayout))},startup:function(){this.inherited(arguments),this._updateLayout()},_updateLayout:function(){this._setWidthAttr(this.get("width")),this._setHeightAttr(this.get("height"))},_setWidthAttr:function(e){this._setSize("width",e)},_setHeightAttr:function(e){this._setSize("height",e)},_validateSizeInput:function(e){if(!("string"==typeof e&&this._allowedValues.indexOf(e)>=0||"number"==typeof e&&e>0))throw new Error(" Property should either be 'auto' or a positive integer")},_setSize:function(e,t){if(this._validateSizeInput(t),this._set(e,t),this._started){var i="";i=this._allowedValues.indexOf(t)>=0?t:this._getAdjustedSize(e,t,this.domNode),this.domNode.style[e]=i}},_getAdjustedSize:function(e,t,i){return t+"px"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TITLE:"title",SHORT_TITLE:"shortTitle",DESCRIPTION:"description",REGION:"region",IS_OPEN:"isOpen",IS_ENABLED:"isEnabled",IS_COLLAPSIBLE:"isCollapsible",IS_COLLAPSED:"isCollapsed",IS_EXPANDED:"isExpanded",IS_MAXIMIZABLE:"isMaximizable",IS_MAXIMIZED:"isMaximized",IS_RESIZABLE:"isResizable",IS_SELECTABLE:"isSelectable",IS_SELECTED:"isSelected",IS_SHOWING:"isShowing",ACTIONS:"actions",INDEX:"index",TILE:"tile",PERMISSIBLE_REGIONS:"permissibleRegions",PREFERRED_WIDTH:"preferredWidth",PREFERRED_HEIGHT:"preferredHeight",MINIMUM_WIDTH:"minimumWidth",MINIMUM_HEIGHT:"minimumHeight",SET_ID:"setId",TITLE_SHORTENING_ALLOWED:"titleShorteningAllowed",DESTROY_ON_CLOSE:"destroyOnClose",ARIALABEL:"arialabel"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isShallow=!0,this.isModifier=!1,this.isValidator=!1,this.isObserver=!0}return t(e,[{key:"modifyOnCommit",value:function(e){}},{key:"validateOnCommit",value:function(e){return!0}},{key:"transactionCommitted",value:function(e){}},{key:"transactionCanceled",value:function(e,t){}}]),e}();e.default=i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{descriptionOverride:new e({type:"string",notInAction:!0,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(918)],o=i.dj.d(n,(function(e,t){return e([t],{_SUPPORTED_ALIGNMENTS:["left","center","right"],constructor:function(e,t){t&&(this.align=t.align,t.anchorId&&(this.anchorId=t.anchorId)),this.align=this.align&&-1!==this._SUPPORTED_ALIGNMENTS.indexOf(this.align)?this.align:"left",this.wrappable=!0},className:"RichTextParagraphNode",containerType:function(){return"text"},isTextContainerNode:function(){return!0},_serializeAttributes:function(e){e.align=this.align,this.anchorId&&(e.anchorId=this.anchorId)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(721)],o=i.dj.d(n,(function(e,t){return e([],{_STYLES:[],constructor:function(){},getApplicableDomNodeClasses:function(){throw new Error("Unimplemented: getApplicableNodeClass")},reset:function(){},enter:function(e,t,i){return!1},leave:function(e,t,i){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TEXT_BOX:{OVERALL_HEIGHT_BORDER:2,OVERALL_WIDTH_PADDING:10,OVERALL_HEIGHT_PADDING:4},TEXT_AREA:{PADDING_LEFT:4,BORDER_LEFT_RIGHT:2,OVERALL_HEIGHT_PADDING:6,OVERALL_WIDTH_PADDING:10},DROP_DOWN:{ARROW_BUTTON_WIDTH:15,ARROW_BUTTON_BORDER_LEFT:1,BORDER_TOP_BOTTOM:2,DROP_SHADOW:1,PADDING_RIGHT:2,OVERALL_HEIGHT_PADDING:2,OVERALL_WIDTH_PADDING:4,OPTION_MINIMUM_WIDTH:20,OPTION_MINIMUM_HEIGHT:15},COMBO_BOX:{OVERALL_HEIGHT_PADDING:2,OVERALL_WIDTH_PADDING:6},BUTTON:{PADDING_LABEL_ICON:2,MINIMUM_WIDTH:20,MINIMUM_HEIGHT:20,OVERALL_HEIGHT_PADDING:6,OVERALL_WIDTH_PADDING:6,OVERALL_HEIGHT_PADDING_TEXTNODE:2,OVERALL_WIDTH_PADDING_TEXTNODE:4},SPAN:{MINIMUM_WIDTH:20,MINIMUM_HEIGHT:22},SPINNER:{BUTTON_WIDTH:22,TEXT_BOX_PADDING:2,OVERALL_WIDTH_PADDING:6,OVERALL_HEIGHT_PADDING:2},LISTBOX:{OVERALL_HEIGHT_PADDING:2,OVERALL_WIDTH_PADDING:2,OVERALL_ITEM_WIDTH_PADDING:24,OVERALL_ITEM_HEIGHT_PADDING:4},PANEL:{OVERALL_HEIGHT_PADDING:2,OVERALL_WIDTH_PADDING:2},DATEPICKER:{OVERALL_HEIGHT_PADDING:2,OVERALL_WIDTH_PADDING:2,ARROW_NODE_WIDTH:22},TREE:{TREENODE_INDENTATION:18,TREENODE_OVERALL_VERTICAL_PADDING:4,TREENODE_MINIMUM_HEIGHT:21,BORDER_WIDTH:2,BORDER_HEIGHT:2},HORIZONTAL_SLIDER:{SLIDER_TRACK_WIDTH:150,SLIDER_TRACK_HEIGHT:3,MAJOR_TICK_WIDTH:1,MAJOR_TICK_HEIGHT:10,MINOR_TICK_WIDTH:1,MINOR_TICK_HEIGHT:5,SLIDER_THUMB_WIDTH:11,SLIDER_THUMB_HEIGHT:14,THUMB_TO_TICKS_GAP:1,TICKS_TO_LABEL_GAP:0},VERTICAL_SLIDER:{SLIDER_TRACK_WIDTH:3,SLIDER_TRACK_HEIGHT:150,MAJOR_TICK_WIDTH:10,MAJOR_TICK_HEIGHT:1,MINOR_TICK_WIDTH:5,MINOR_TICK_HEIGHT:1,SLIDER_THUMB_WIDTH:14,SLIDER_THUMB_HEIGHT:13,THUMB_TO_TICKS_GAP:0,TICKS_TO_LABEL_GAP:3},CHECK_BOX:{ICON_NODE_WIDTH:14,ICON_NODE_HEIGHT:14}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2137),i(2142),i(5772),i(315)],o=i.dj.d(n,(function(e,t,i,n){var o={TREE:e,TABLE:t,TREETABLE:i},a=function(e,t){if(!t.type)throw new Error("type required.");if(!s(t.type))throw new Error("Invalid type");var i=new(0,o[t.type])(e,t);if(!i)throw new Error("DataStore not created");return i._type=t.type,i},s=function(e){return Object.values(n).includes(e)};return function(){function e(){throw function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new Error("This class is not instantiable")}return r(e,null,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e,t)}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{tag:"",_setTagAttr:function(e){if("string"!=typeof e)throw new Error("tag property expects a 'String'");this.domNode.setAttribute("data-tag",e),this._set("tag",e)},postCreate:function(){this.inherited(arguments),this.set("tag",this.get("tag"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(768)],o=i.dj.d(n,(function(e,t){return e(null,{description:"",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwDescriptionMixin"),this.set("description",this.get("description"))},_setDescriptionAttr:function(e){if("string"!=typeof e)throw new Error("'description' property expects a literal string!");this._updateDescription(e),this._set("description",e)},_updateDescription:function(e){this._lastKnownDescription=e,this.descriptionNode?(this.descriptionNode.textContent=e,!1===this.get("showDescription")||""===e?this.domNode.classList.add("mwHideDescription"):this.domNode.classList.remove("mwHideDescription")):this._updateTitle(e)},_updateTitle:function(e,i){var n;i?(""!==e&&void 0!==e&&(e=""===this._lastKnownDescription?e:" ("+e+")"),n=this._lastKnownDescription+e):n=this.get("shortcut")?e?e+" ("+t.getPlatformSpecificString(this.get("shortcut"))+")":t.getPlatformSpecificString(this.get("shortcut")):e,this.getTitleNodes().forEach((function(e){e.setAttribute("title",n)}))},getTitleNodes:function(){return[this.domNode]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{text:"",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwTextMixin"),this.set("text",this.get("text"))},_setTextAttr:function(e){if("string"!=typeof e)throw new Error("'text' property expects a literal string!");this._updateTextInDOM(e),this._set("text",e)},_updateTextInDOM:function(e){this._placeTextInNode(e),0===this._getTextForDOM(e).length?this.domNode.classList.add("mwNoText"):this.domNode.classList.remove("mwNoText")},_placeTextInNode:function(e,t){for(void 0===t&&(t=this.textNode);t.firstChild;)t.removeChild(t.firstChild);var i=this._getTextForDOM(e,t);if(i.length>0){var n=document.createElement("span");n.classList.add("mwTextLine"),n.textContent=i,t.appendChild(n),t.classList.remove("mwEmptyNode")}else t.classList.add("mwEmptyNode")},_getTextForDOM:function(e){return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(316),i(351),i(335),i(1286),i(259),i(2848)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(s.validate([t,i,n,o,r,a]),{baseClass:"mwWidget mwMenuSeparator",templateString:l})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{STATE_CHANGED:"state_changed",CHILD_ADDED:"child_added",CHILD_REMOVED:"child_removed",DRAG_OUT_INITIATED:"drag_out_initiated",DRAG_OUT:"drag_out",EXPAND_ALL:"expand",COLLAPSE_ALL:"collapse",SPLITTER_DRAG_STARTED:"splitterDragStarted",SPLITTER_DRAG_ENDED:"splitterDragEnded",CLOSE:"close"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(420),i(204),i(222),i(447),i(214),i(245),i(227),i(213)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=i.mixin,d={},u=d._Line=function(e,t){this.start=e,this.end=t};u.prototype.getValue=function(e){return(this.end-this.start)*e+this.start};var h=d.Animation=function(e){c(this,e),i.isArray(this.curve)&&(this.curve=new u(this.curve[0],this.curve[1]))};h.prototype=new n,i.extend(h,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var e=this._percent,t=this.easing;return t?t(e):e},_fire:function(e,i){var n=i||[];if(this[e])if(t.debugAtAllCosts)this[e].apply(this,n);else try{this[e].apply(this,n)}catch(t){console.error("exception in animation handler for:",e),console.error(t)}return this},play:function(e,t){var n=this;if(n._delayTimer&&n._clearTimer(),t)n._stopTimer(),n._active=n._paused=!1,n._percent=0;else if(n._active&&!n._paused)return n;n._fire("beforeBegin",[n.node]);var o=e||n.delay,r=i.hitch(n,"_play",t);return o>0?(n._delayTimer=setTimeout(r,o),n):(r(),n)},_play:function(e){var t=this;t._delayTimer&&t._clearTimer(),t._startTime=(new Date).valueOf(),t._paused&&(t._startTime-=t.duration*t._percent),t._active=!0,t._paused=!1;var i=t.curve.getValue(t._getStep());return t._percent||(t._startRepeatCount||(t._startRepeatCount=t.repeat),t._fire("onBegin",[i])),t._fire("onPlay",[i]),t._cycle(),t},pause:function(){var e=this;return e._delayTimer&&e._clearTimer(),e._stopTimer(),e._active?(e._paused=!0,e._fire("onPause",[e.curve.getValue(e._getStep())]),e):e},gotoPercent:function(e,t){var i=this;return i._stopTimer(),i._active=i._paused=!0,i._percent=e,t&&i.play(),i},stop:function(e){var t=this;return t._delayTimer&&t._clearTimer(),t._timer?(t._stopTimer(),e&&(t._percent=1),t._fire("onStop",[t.curve.getValue(t._getStep())]),t._active=t._paused=!1,t):t},destroy:function(){this.stop()},status:function(){return this._active?this._paused?"paused":"playing":"stopped"},_cycle:function(){var e=this;if(e._active){var t=(new Date).valueOf(),i=0===e.duration?1:(t-e._startTime)/e.duration;i>=1&&(i=1),e._percent=i,e.easing&&(i=e.easing(i)),e._fire("onAnimate",[e.curve.getValue(i)]),e._percent<1?e._startTimer():(e._active=!1,e.repeat>0?(e.repeat--,e.play(null,!0)):-1==e.repeat?e.play(null,!0):e._startRepeatCount&&(e.repeat=e._startRepeatCount,e._startRepeatCount=0),e._percent=0,e._fire("onEnd",[e.node]),!e.repeat&&e._stopTimer())}return e},_clearTimer:function(){clearTimeout(this._delayTimer),delete this._delayTimer}});var p=0,f=null,g={run:function(){}};i.extend(h,{_startTimer:function(){this._timer||(this._timer=r.after(g,"run",i.hitch(this,"_cycle"),!0),p++),f||(f=setInterval(i.hitch(g,"run"),this.rate))},_stopTimer:function(){this._timer&&(this._timer.remove(),this._timer=null,p--),p<=0&&(clearInterval(f),f=null,p=0)}});var m=a("ie")?function(e){var t=e.style;t.width.length||"auto"!=l.get(e,"width")||(t.width="auto")}:function(){};d._fade=function(e){e.node=s.byId(e.node);var t=c({properties:{}},e),n=t.properties.opacity={};n.start="start"in t?t.start:function(){return+l.get(t.node,"opacity")||0},n.end=t.end;var o=d.animateProperty(t);return r.after(o,"beforeBegin",i.partial(m,t.node),!0),o},d.fadeIn=function(e){return d._fade(c({end:1},e))},d.fadeOut=function(e){return d._fade(c({end:0},e))},d._defaultEasing=function(e){return.5+Math.sin((e+1.5)*Math.PI)/2};var _=function(e){for(var t in this._properties=e,e){var i=e[t];i.start instanceof o&&(i.tempColor=new o)}};return _.prototype.getValue=function(e){var t={};for(var n in this._properties){var r=this._properties[n],a=r.start;a instanceof o?t[n]=o.blendColors(a,r.end,e,r.tempColor).toCss():i.isArray(a)||(t[n]=(r.end-a)*e+a+("opacity"!=n?r.units||"px":0))}return t},d.animateProperty=function(t){var n=t.node=s.byId(t.node);t.easing||(t.easing=e._defaultEasing);var a=new h(t);return r.after(a,"beforeBegin",i.hitch(a,(function(){var e={};for(var t in this.properties){"width"!=t&&"height"!=t||(this.node.display="block");var r=this.properties[t];i.isFunction(r)&&(r=r(n)),r=e[t]=c({},i.isObject(r)?r:{end:r}),i.isFunction(r.start)&&(r.start=r.start(n)),i.isFunction(r.end)&&(r.end=r.end(n));var a=t.toLowerCase().indexOf("color")>=0;function s(e,t){var i={height:e.offsetHeight,width:e.offsetWidth}[t];return void 0!==i?i:(i=l.get(e,t),"opacity"==t?+i:a?i:parseFloat(i))}"end"in r?"start"in r||(r.start=s(n,t)):r.end=s(n,t),a?(r.start=new o(r.start),r.end=new o(r.end)):r.start="opacity"==t?+r.start:parseFloat(r.start)}this.curve=new _(e)})),!0),r.after(a,"onAnimate",i.hitch(l,"set",a.node),!0),a},d.anim=function(e,t,i,n,o,r){return d.animateProperty({node:e,duration:i||h.prototype.duration,properties:t,easing:n,onEnd:o}).play(r||0)},a("extend-dojo")&&(c(e,d),e._Animation=h),d}),e,t),e.exports=o},function(e,t,i){e.exports={FO_NAMESPACE_URL:"http://www.w3.org/1999/XSL/Format",CJK_FONT_SET:",Arial,MingLiU,STSong,MS Mincho,AppleGothic,Malgun Gothic,Noto Sans CJK JP,Droid Sans Fallback,Arial Unicode MS",PIXEL:"px",POINT:"pt",PX_PT_RATIO:.75,ROOT:"fo:root",LAYOUT_MASTER_SET:"fo:layout-master-set",SIMPLE_PAGE_MASTER:"fo:simple-page-master",PAGE_SEQUENCE:"fo:page-sequence",REGION_BODY:"fo:region-body",REGION_AFTER:"fo:region-after",STATIC_CONTENT:"fo:static-content",PAGE_NUMBER:"fo:page-number",PAGE_NUMBER_CITATION:"fo:page-number-citation",FLOW:"fo:flow",BLOCK:"fo:block",INLINE:"fo:inline",LIST_BLOCK:"fo:list-block",LIST_ITEM:"fo:list-item",LIST_ITEM_LABEL:"fo:list-item-label",LIST_ITEM_BODY:"fo:list-item-body",BASIC_LINK:"fo:basic-link",EXTERNAL_GRAPHIC:"fo:external-graphic",LEADER:"fo:leader"}},function(e,t,i){var n,o;n=[i(203),i(213),i(1488)],o=i.dj.d(n,(function(e,t,i){return e(null,{fontFamily:"Helvetica",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontUnits:"px",fontColor:"rgb(0, 0, 0)",postCreate:function(){this.inherited(arguments),this._applyAllFontStyles(this._getNodeToApplyFontProperties())},_setFontFamilyAttr:function(e){if("string"!=typeof e)throw new Error("'font-family' property expects a literal string");var t=i.getFallBack(e);this._getNodeToApplyFontProperties().style.fontFamily=t,this._set("fontFamily",e)},_setFontSizeAttr:function(e){if("number"!=typeof e)throw new Error("'font-size' property expects a literal number");this._getNodeToApplyFontProperties().style.fontSize=e+this.get("fontUnits"),this._set("fontSize",e)},_setFontUnitsAttr:function(e){if("string"!=typeof e)throw new Error("'font-units' property expects a literal string");this._set("fontUnits",e)},_setFontWeightAttr:function(e){this._getNodeToApplyFontProperties().style.fontWeight=e,this._set("fontWeight",e)},_setFontStyleAttr:function(e){if("string"!=typeof e)throw new Error("'font-style' property expects a literal string");if("normal"!==e&&"italic"!==e)throw new Error("'font-style' property expects a literal string of 'normal' or 'italic' value");this._getNodeToApplyFontProperties().style.fontStyle=e,this._set("fontStyle",e)},_setFontColorAttr:function(e){if("string"!=typeof e)throw new Error("'fontColor' property expects a literal string");this._getNodeToApplyFontProperties().style.color=e,this._set("fontColor",e)},_getNodeToApplyFontProperties:function(){return this.domNode},_applyAllFontStyles:function(e){var t=i.getFallBack(this.get("fontFamily")),n=this.get("fontStyle")+" "+this.get("fontWeight")+" "+this.get("fontSize")+this.get("fontUnits")+" "+t;e.style.font=n,e.style.color=this.get("fontColor")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209)],o=i.dj.d(n,(function(e,t,i){return e("datatoolsservices.Observable",[],{constructor:function(){this._listeners={}},addEventListener:function(e,t,i){this._addEventListener(this._listeners,e,t,i)},_addEventListener:function(e,t,i,n){n=n||this,e[t]=e[t]||[];var o={scope:n,callback:i};this._getEventListenerIndex(e,t,i,n)<0&&e[t].push(o)},hasEventListener:function(e,t,i){return this._getEventListenerIndex(this._listeners,e,t,i)>=0},removeEventListener:function(e,t,i){this._removeEventListener(this._listeners,e,t,i)},_removeEventListener:function(e,t,i,n){n=n||this;var o=this._getEventListenerIndex(e,t,i,n);if(!(o>=0))throw new Error("Listener does not exist");e[t].splice(o,1)},_getEventListenerIndex:function(e,t,i,n){n=n||this;var o,r=e[t];if(r){var a=r.length;for(o=0;o<a;o+=1)if(r[o].scope===n&&r[o].callback===i)return o}return-1},dispatchEvent:function(e,t,i,n){this._dispatchEvent(this._listeners,e,t,i,n)},_dispatchEvent:function(e,n,o,r,a){if(void 0!==r&&(t.isArray(r)||t.isString(r)||null===r||"number"==typeof r||"boolean"==typeof r))throw new Error("Invalid event data, must be object");var s,l=e[n];if(l){var c=(l=l.slice(0)).length;for(s=0;s<c;s+=1)try{var d={type:n,target:o||this,data:r||{},originator:a};"string"==typeof l[s].callback?l[s].scope[l[s].callback](d):l[s].callback.call(l[s].scope,d)}catch(e){i.error("Error while dispatching event handler of type: "+n+", message: "+e)}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(231)],o=i.dj.d(n,(function(e,t){return e("dijit._Contained",null,{_getSibling:function(e){var t=this.getParent();return t&&t._getSiblingOfChild&&t._getSiblingOfChild(this,"previous"==e?-1:1)||null},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var e=this.getParent();return e&&e.getIndexOfChild?e.getIndexOfChild(this):-1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{postCreate:function(){this.inherited(arguments),this._addDataAttribute("tag"),this._addDataAttribute("type")},_addDataAttribute:function(e,t){t=t||this[e],this.domNode&&this.domNode.setAttribute("data-"+e,t)},_setTagAttr:function(e){this._addDataAttribute("tag",e),this._set("tag",e)},_setTypeAttr:function(e){this._addDataAttribute("type",e),this._set("type",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(204),i(234),i(334),i(1344)],o=i.dj.d(n,(function(e,t,i,n,o){return{PLACEMENT:{BEFORE:0,AFTER:1,BETWEEN:2},_FULL_LINE_LAYER_CSS:"decorationLayer",HIGHLIGHTED_LINE_CSS:"highlightedLine",DECORATOR_ID:{SYNTAX_HIGHLIGHTING:"syntaxhighlighting"},updateClassesByLineDecorationInfo:function(e,t,i,n,o){const r=o.getRangeForLine(e+1),a=[],s=i?2:3;for(let n=0,r=t.length;n<r;n+=s){const r=t[n],s=t[n+1];a.push({range:o.getRangeForLineColumn(e+1,r+1,e+1,s+1),classList:i||t[n+2]})}n.updateClasses(r,a)},updateStylesByLineDecorationInfo:function(e,t,i,n,o){const r=o.getRangeForLine(e+1),a=[];for(let i=0,n=t.length;i<n;i+=3){const n=t[i],r=t[i+1],s=t[i+2];a.push({range:o.getRangeForLineColumn(e+1,n+1,e+1,r+1),value:s})}n.updateStyles(r,i,a)},getSyntaxHighlightingForExport:function(e,t){return t.isUsingTemporaryStore()?this._getSyntaxHighlightingFromTemporaryDecoration(e,t):this._getSyntaxHighlightingFromDescriptors(e,t)},_getSyntaxHighlightingFromDescriptors:function(e,t){const i=[];return t.getDescriptorsStore().getForNode(e).forEach(e=>{const t=e.getStyles();t&&t.color&&i.push({start:e.getStartOffset(),end:e.getEndOffset(),styles:{color:t.color}})}),i},_getSyntaxHighlightingFromTemporaryDecoration:function(e,t){const i=t.getDescriptorsStore().getTemporaryStoreByNode(e);if(!i)return[];const n=i[this.DECORATOR_ID.SYNTAX_HIGHLIGHTING];if(!n)return[];const o=[],r=e.offsetInContainer(),a=r+e.maxOffset();for(let e=0,t=n.length;e<t;e+=3){const t=n[e],i=n[e+1],s=n[e+2];t>=r&&i<=a&&o.push({start:t,end:i,styles:{color:s}})}return o},createViewForTextNode:function(e,t,i,n){if(n=n||document.createDocumentFragment(),!e)return n.appendChild(i),n;var o=0,r=0;return t.forEach((function(t){o=t.start,this._createViewAndAppend(e,r,o,i,n),r=t.end;var a=this._createViewAndAppend(e,o,r,i,n);a&&this._applyDecoration(a,t)}),this),this._createViewAndAppend(e,r,e.length,i,n),n},createViewForTextNodeFragment:function(e,t,i,n,o,r){if(r=r||document.createDocumentFragment(),!e)return r.appendChild(o),r;var a=0,s=0,l=0,c=0;return n.forEach((function(n){if(n.start>i||n.end<t)return a=n.start,void(s=n.end);a=n.start,l=Math.max(t,s),c=Math.min(i,a),this._createViewAndAppend(e,l,c,o,r),s=n.end,l=Math.max(t,a),c=Math.min(i,s);var d=this._createViewAndAppend(e,l,c,o,r);d&&this._applyDecoration(d,n)}),this),l=Math.max(t,s),c=Math.min(i,e.length),this._createViewAndAppend(e,l,c,o,r),r},_createViewAndAppend:function(e,t,i,n,o){var r=null;return i>t&&((r=n.cloneNode(!1)).textContent=e.substring(t,i),o.appendChild(r)),r},_applyDecoration:function(e,t){var i=t.styles;for(var n in i)i.hasOwnProperty(n)&&(e.style[n]=i[n]);var o=t.classes;for(var r in o)o.hasOwnProperty(r)&&e.classList.add(r)},createNewLayerForDecorator:function(t,i,n){var r=e.create("div",{class:this._FULL_LINE_LAYER_CSS}),a=t.getLayerCssClass();a&&r.classList.add(a);var s=i.getDescriptorsForLayerDecorator(t);return s?(s.forEach((function(e){e instanceof o?this._addRangeDomNodeIntoLayer(e,r,n,a):this._addDomNodeIntoLayer(e,r)}),this),this.setLayerToFullWidth(r,n),r):r},_addRangeDomNodeIntoLayer:function(i,o,r,a){var s=i.getRange().getStartPosition();if(!n.isFullyHiddenBetweenPositions(s,s,r)){var l=n.getVerticalDimensionsBetweenPositions(s,s,r),c=l.bottom-l.top,d={top:l.top+"px",height:c+"px"};t.mixin(d,i.getStyles());var u=this._FULL_LINE_LAYER_CSS;a&&(u=a),e.create("div",{style:d,class:i.getClassName(),"data-testid":u+"_"+s.getLine()},o)}},setLayerToFullWidth:function(e,t){const i=t.getDocumentDimension(),n=t.getScrollLeft();e.style.left=n+"px";const o=Math.min(t.getClientWidth(),i.width-n);e.style.width=o+"px"},setLayerToFullHeight:function(e,t){const i=t.getDocumentDimension(),n=t.getScrollTop();e.style.top=n+"px";const o=Math.min(t.getClientHeight(),i.height-n);e.style.height=o+"px"},_addDomNodeIntoLayer:function(t,i){e.create("div",{style:t.getStyles(),class:t.getClassName()},i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(291)],o=i.dj.d(n,(function(e){let t=null,i=null;return{getInstance:()=>null!==i?i:(null===t&&(t=e.getMVM()),t),installCustomInstance:function(e){i=e},clearCustomInstance:function(){this._destroyInstance(i),i=null},_destroyInstance:function(e){null!==e&&e.destroy()},destroy:function(){this._destroyInstance(t),t=null,this.clearCustomInstance()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(260),i(1090)],o=i.dj.d(n,(function(e,t,i){return{create:function(e,n){return t.assertValidLines(e,n,"DocumentEvent"),new i(e,n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(457),i(375),i(406),i(329)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e("graphics.MWSG.Matrix4x4",[],{constructor:function(){this._data=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},getElements:function(){return this._data},setElements:function(e){if(!o.isDataFinite(e))throw new Error("Matrix should be set with finite elements only");var t;for(t=0;t<16;t+=1)this._data[t]=e[t]},transpose:function(){var e=this.getElements(),t=new r;function i(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}return t.setElements(e),i(t._data,1,4),i(t._data,2,8),i(t._data,3,12),i(t._data,6,9),i(t._data,7,13),i(t._data,11,14),t},scale:function(e){var t=this.getElements(),i=new r;return i.setElements(t),i._data[0]=e*i._data[0],i._data[5]=e*i._data[5],i._data[10]=e*i._data[10],i},getAsFloat32Array:function(){var e,t=this.getElements(),i=n.createFloat32Array(16);for(e=0;e<16;e+=1)i[e]=t[e];return i},toString:function(){var e,t,i="[";for(e=0;e<4;e+=1)for(t=0;t<4;t+=1)i+=this._data[4*e+t],i+=3===t?"; ":", ";return i+="]"},times:function(e){var t,i,n=new r,o=new Array(16);for(t=0;t<4;t+=1)for(i=0;i<4;i+=1)o[t+4*i]=this._data[t]*e._data[4*i]+this._data[t+4]*e._data[1+4*i]+this._data[t+8]*e._data[2+4*i]+this._data[t+12]*e._data[3+4*i];return n.setElements(o),n},transform:function(e){var t=e.getX(),n=e.getY(),o=e.getZ(),r=e.getW(),a=t*this._data[0]+n*this._data[4]+o*this._data[8]+r*this._data[12],s=t*this._data[1]+n*this._data[5]+o*this._data[9]+r*this._data[13],l=t*this._data[2]+n*this._data[6]+o*this._data[10]+r*this._data[14],c=t*this._data[3]+n*this._data[7]+o*this._data[11]+r*this._data[15];return new i(a,s,l,c)},rotate:function(e){var t=e.getX(),n=e.getY(),o=e.getZ(),r=t*this._data[0]+n*this._data[4]+o*this._data[8],a=t*this._data[1]+n*this._data[5]+o*this._data[9],s=t*this._data[2]+n*this._data[6]+o*this._data[10];return new i(r,a,s,1)},createInverseTranspose:function(){var e,t,i=new r,n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];for(i.setElements(this._data),i.invert(),e=0;e<4;e+=1)for(t=0;t<4;t+=1)n[e+4*t]=i._data[t+4*e];var o=new r;return o.setElements(n),o},invert:function(){var e=this._data[0],t=this._data[4],i=this._data[8],n=this._data[12],o=this._data[1],r=this._data[5],a=this._data[9],s=this._data[13],l=this._data[2],c=this._data[6],d=this._data[10],u=this._data[14],h=this._data[3],p=this._data[7],f=this._data[11],g=this._data[15];let m=1/(e*r*d*g-e*r*u*f-e*c*a*g+e*c*s*f+e*p*a*u-e*p*s*d-o*t*d*g+o*t*u*f+o*c*i*g-o*c*n*f-o*p*i*u+o*p*n*d+l*t*a*g-l*t*s*f-l*r*i*g+l*r*n*f+l*p*i*s-l*p*n*a-h*t*a*u+h*t*s*d+h*r*i*u-h*r*n*d-h*c*i*s+h*c*n*a);this._data[0]=(r*d*g-r*u*f-c*a*g+c*s*f+p*a*u-p*s*d)*m,this._data[4]=-(t*d*g-t*u*f-c*i*g+c*n*f+p*i*u-p*n*d)*m,this._data[8]=(t*a*g-t*s*f-r*i*g+r*n*f+p*i*s-p*n*a)*m,this._data[12]=-(t*a*u-t*s*d-r*i*u+r*n*d+c*i*s-c*n*a)*m,this._data[1]=-(o*d*g-o*u*f-l*a*g+l*s*f+h*a*u-h*s*d)*m,this._data[5]=(e*d*g-e*u*f-l*i*g+l*n*f+h*i*u-h*n*d)*m,this._data[9]=-(e*a*g-e*s*f-o*i*g+o*n*f+h*i*s-h*n*a)*m,this._data[13]=(e*a*u-e*s*d-o*i*u+o*n*d+l*i*s-l*n*a)*m,this._data[2]=(o*c*g-o*u*p-l*r*g+l*s*p+h*r*u-h*s*c)*m,this._data[6]=-(e*c*g-e*u*p-l*t*g+l*n*p+h*t*u-h*n*c)*m,this._data[10]=(e*r*g-e*s*p-o*t*g+o*n*p+h*t*s-h*n*r)*m,this._data[14]=-(e*r*u-e*s*c-o*t*u+o*n*c+l*t*s-l*n*r)*m,this._data[3]=-(o*c*f-o*d*p-l*r*f+l*a*p+h*r*d-h*a*c)*m,this._data[7]=(e*c*f-e*d*p-l*t*f+l*i*p+h*t*d-h*i*c)*m,this._data[11]=-(e*r*f-e*a*p-o*t*f+o*i*p+h*t*a-h*i*r)*m,this._data[15]=(e*r*d-e*a*c-o*t*d+o*i*c+l*t*a-l*i*r)*m}});return r.multiply=function(e,t){var i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],n=e.getElements(),o=t.getElements();i[0]=n[0]*o[0]+n[1]*o[4]+n[2]*o[8]+n[3]*o[12],i[1]=n[0]*o[1]+n[1]*o[5]+n[2]*o[9]+n[3]*o[13],i[2]=n[0]*o[2]+n[1]*o[6]+n[2]*o[10]+n[3]*o[14],i[3]=n[0]*o[3]+n[1]*o[7]+n[2]*o[11]+n[3]*o[15],i[4]=n[4]*o[0]+n[5]*o[4]+n[6]*o[8]+n[7]*o[12],i[5]=n[4]*o[1]+n[5]*o[5]+n[6]*o[9]+n[7]*o[13],i[6]=n[4]*o[2]+n[5]*o[6]+n[6]*o[10]+n[7]*o[14],i[7]=n[4]*o[3]+n[5]*o[7]+n[6]*o[11]+n[7]*o[15],i[8]=n[8]*o[0]+n[9]*o[4]+n[10]*o[8]+n[11]*o[12],i[9]=n[8]*o[1]+n[9]*o[5]+n[10]*o[9]+n[11]*o[13],i[10]=n[8]*o[2]+n[9]*o[6]+n[10]*o[10]+n[11]*o[14],i[11]=n[8]*o[3]+n[9]*o[7]+n[10]*o[11]+n[11]*o[15],i[12]=n[12]*o[0]+n[13]*o[4]+n[14]*o[8]+n[15]*o[12],i[13]=n[12]*o[1]+n[13]*o[5]+n[14]*o[9]+n[15]*o[13],i[14]=n[12]*o[2]+n[13]*o[6]+n[14]*o[10]+n[15]*o[14],i[15]=n[12]*o[3]+n[13]*o[7]+n[14]*o[11]+n[15]*o[15];var a=new r;return a.setElements(i),a},r.createScale=function(e,t,i){1===arguments.length&&(t=e,i=e);var n=new r,o=[e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1];return n.setElements(o),n},r.createXRotation=function(e){var t=new r,i=Math.cos(e),n=Math.sin(e),o=[1,0,0,0,0,i,n,0,0,-n,i,0,0,0,0,1];return t.setElements(o),t},r.createYRotation=function(e){var t=new r,i=Math.cos(e),n=Math.sin(e),o=[i,0,-n,0,0,1,0,0,n,0,i,0,0,0,0,1];return t.setElements(o),t},r.createZRotation=function(e){var t=new r,i=Math.cos(e),n=Math.sin(e),o=[i,n,0,0,-n,i,0,0,0,0,1,0,0,0,0,1];return t.setElements(o),t},r.createInverse=function(e){var t=new r;return t.setElements(e.getElements()),t.invert(),t},r.rot_createTensorProduct=function(e,t){let i=[e.getX()*t.getX(),e.getY()*t.getX(),e.getZ()*t.getX(),0,e.getX()*t.getY(),e.getY()*t.getY(),e.getZ()*t.getY(),0,e.getX()*t.getZ(),e.getY()*t.getZ(),e.getZ()*t.getZ(),0,0,0,0,1];var n=new r;return n.setElements(i),n},r.rot_createSkewSymmetric=function(e){let t=[0,e.getZ(),-e.getY(),0,-e.getZ(),0,e.getX(),0,e.getY(),-e.getX(),0,0,0,0,0,1];var i=new r;return i.setElements(t),i},r.rot_multiply=function(e,t){let i=t.getElements(),n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];var o,a;for(o=0;o<4;o+=1)for(a=0;a<4;a+=1){var s=4*a+o;n[s]=o<3&&a<3?e*i[s]:i[s]}n[15]=1;var l=new r;return l.setElements(n),l},r.rot_add=function(e,t,i){let n=e.getElements(),o=t.getElements(),a=i.getElements(),s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];var l,c;for(l=0;l<4;l+=1)for(c=0;c<4;c+=1){var d=4*c+l;s[d]=l<3&&c<3?n[d]+o[d]+a[d]:n[d]}s[15]=1;var u=new r;return u.setElements(s),u},r.createRotation=function(e,i){var n=e.getX(),o=e.getY(),a=e.getZ(),s=n*n+o*o+a*a;if(s<1e-10)return new r;var l=1/Math.sqrt(s),c=new t(n*=l,o*=l,a*=l),d=Math.cos(i),u=Math.sin(i),h=r.rot_multiply(d,new r),p=r.rot_multiply(1-d,r.rot_createTensorProduct(c,c)),f=r.rot_multiply(u,r.rot_createSkewSymmetric(c));return r.rot_add(h,p,f)},r.createTranslation=function(e,t,i){var n=new r,o=[1,0,0,0,0,1,0,0,0,0,1,0,e,t,i,1];return n.setElements(o),n},r.createFrustum=function(e,t,i,n,o,a){if(e>=t||i>=n||o>=a)throw new Error("InvalidBoundsException");var s=[2*o/(t-e),0,0,0,0,2*o/(n-i),0,0,(t+e)/(t-e),(n+i)/(n-i),-(a+o)/(a-o),-1,0,0,-2*a*o/(a-o),0],l=new r;return l.setElements(s),l},r.createOrtho=function(e,t,i,n,o,a){var s=new r,l=t-e,c=n-i,d=a-o,u=[2/l,0,0,0,0,2/c,0,0,0,0,-2/d,0,-(t+e)/l,-(n+i)/c,-(a+o)/d,1];return s.setElements(u),s},r.compare=function(e,t,i){var n,o,r=e.getElements(),a=t.getElements();if(e.length!==t.length)return!1;for(var s=0;s<r.length;s+=1){if((n=r[s],o=a[s],Math.abs(n-o)/Math.max(Math.abs(n),Math.abs(o),1))>i)return!1}return!0},r.adjustOrthoNearFar=function(e,t){var i=e,n=t;return[i=Math.max(0,.98*i),n=n<=0?i+1e3:1.02*n]},r.adjustPerspNearFar=function(e,t){var i=e,n=t;(n=n<0?100:1.02*n,i<.01)?n/.01>100?(i=.01,n=Math.min(n,1e4*i)):i=Math.max(i,n/100):(i*=.98,n=Math.min(n,1e4*i));return[i,n]},r.clampProjectionMatrix=function(e,t,i){if(void 0!==e&&void 0!==e._data)if(Math.abs(e._data[3])<1e-8&&Math.abs(e._data[7])<1e-8&&Math.abs(e._data[11])<1e-8){var n=r.adjustOrthoNearFar(t,i);e._data[10]=-2/(n[1]-n[0]),e._data[14]=-1*(n[1]+n[0])/(n[1]-n[0])}else{var o=r.adjustPerspNearFar(t,i);let n=(-o[0]*e._data[10]+e._data[14])/(-o[0]*e._data[11]+e._data[15]),s=(-o[1]*e._data[10]+e._data[14])/(-o[1]*e._data[11]+e._data[15]),l=Math.abs(2/(n-s)),c=-(n+s)/2;var a=r.multiply(r.createScale(1,1,l),r.createTranslation(0,0,l*c));e.setElements(a.times(e).getElements())}return e},r.getOrtho=function(e){var t={};return 0===e._data[3]&&0===e._data[7]&&0===e._data[11]&&1===e._data[15]&&(t.zNear=(e._data[14]+1)/e._data[10],t.zFar=(e._data[14]-1)/e._data[10],t.left=-(1+e._data[12])/e._data[0],t.right=(1-e._data[12])/e._data[0],t.bottom=-(1+e._data[13])/e._data[5],t.top=(1-e._data[13])/e._data[5],t)},r.getFrustum=function(e){var t={};return 0===e._data[3]&&0===e._data[7]&&-1===e._data[11]&&0===e._data[15]&&(t.zNear=e._data[14]/(e._data[10]-1),t.zFar=e._data[14]/(1+e._data[10]),t.left=t.zNear*(e._data[8]-1)/e._data[0],t.right=t.zNear*(1+e._data[8])/e._data[0],t.top=t.zNear*(1+e._data[9])/e._data[5],t.bottom=t.zNear*(e._data[9]-1)/e._data[5],t)},r.getPerspective=function(e){var t={},i=r.getFrustum(e);return!1!==i&&(t.fovy=180*(Math.atan(i.top/i.zNear)-Math.atan(i.bottom/i.zNear))/Math.PI,t.aspectRatio=(i.right-i.left)/(i.top-i.bottom),t.zNear=i.zNear,t.zFar=i.zFar,t)},r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{VIEW_RENDERING:"renderingInProgress",VIEW_RENDERED:"renderingComplete",SIZE_CHANGED:"dataSizeChanged",DATA_CHANGED:"dataChanged",TABLE_META_DATA_CHANGED:"pagedTableMetaDataChanged",COLUMN_META_DATA_CHANGED:"pagedColumnMetaDataChanged",ROW_META_DATA_CHANGED:"pagedRowMetaDataChanged",CELL_META_DATA_CHANGED:"pagedCellMetaDataChanged",SERVER_INITIALIZED:"serverInitialized",DOUBLE_CLICK_ON_METADATA_CELL:"doubleClickedOnMetaData",SELECTION_CHANGED:"SelectionChanged",SELECTION_RANGE_CHANGED:"SelectionRangeChanged",COLUMN_REORDERED:"ColumnReordered"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(211),i(213),i(238),i(1671),i(359)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("rendererseditors.editors._EditorBase",[a,s],{_renderer:void 0,_editing:!1,_commitOnBlur:!0,_originalValue:void 0,_originalState:void 0,_blurListeners:void 0,_notEditableCSSClass:"venoteditable",_rendererDisplayStyle:void 0,constructor:function(e){this._editing=!1,this._commitOnBlur=!0,this._renderer=void 0,e&&this.init(e),this._blurListeners={}},destroy:function(){this.inherited(arguments),this._commitOnBlur=null,this.commitOnBlur=null,delete this._allArgs.commitOnBlur,this._allArgs.commitOnBlur=null},init:function(e){e&&(this._allArgs=t.mixin({},e),this._renderer=e.renderer||this,this._commitOnBlur=void 0!==e.commitOnBlur?e.commitOnBlur:void 0===e.editable||e.editable,this._originalValue=e.value,this._originalState=e.state,this._value=e.value,this._state=e.state,this._editable=this._getPossibleBooleanFunctionValue(e.editable)),this.inherited(arguments)},setRenderer:function(e){this._renderer=e},postCreate:function(){this.inherited(arguments)},_setupBlurListener:function(){this._changeObjectListenersState(this._blurListeners,"remove");var e=i(r,"widget-blur",this._handleBlurEvent.bind(this));this._blurListeners.widgetBlur=e},_handleBlurEvent:function(e){e===this&&(this._clickCount=0,this._getPossibleBooleanFunctionValue(this._commitOnBlur,!0)&&this._editing?this.stopEditing():this._editing&&this.cancelEditing())},_changeListenerState:function(e){e&&"string"==typeof e&&(this.inherited(arguments),this._changeObjectListenersState(this._blurListeners,e))},_handleMouseEvent:function(e){if(this._renderer===this)this.inherited(arguments);else{var t=e;t.renderer=this,this.dispatchEvent(e.type,this,t),e.stopPropagation()}},_handleKeyboardEvent:function(e){this.isEditing()||this.inherited(arguments)},_focus:function(e){e&&e.isFocusable&&e.isFocusable()&&e.focusNode?r.focus(e.focusNode):e&&e.domNode&&e.domNode.focus&&e.domNode.focus()},_swapOutRenderer:function(){if(this._renderer&&this._renderer!==this&&this._renderer.domNode&&this.domNode){var e=window.getComputedStyle(this._renderer.domNode);this._rendererDisplayStyle=e.getPropertyValue("display"),o.set(this._renderer.domNode,{display:"none"}),n.place(this.domNode,this._renderer.domNode,"before"),this._resumeListeners()}this.application&&"EmbeddedInspectorInRichEditor"===this.application||this._focus(this)},_swapInRenderer:function(){this._renderer&&this._renderer!==this&&this._renderer.domNode&&this.domNode&&(this.domNode.parentNode.removeChild(this.domNode),o.set(this._renderer.domNode,{display:this._rendererDisplayStyle}),this._pauseListeners()),this.application&&"EmbeddedInspectorInRichEditor"===this.application||this._focus(this._renderer)},edit:function(){this._editing||(this.addCSSClasses("Editing"),this.addCSSClasses("focused"),this._originalValue=this._value,this._originalState=this.getState(),this._editing=!0,this._swapOutRenderer(),this.dispatchEvent("editingStarted",this,{editor:this,currentValue:this._value,currentState:this._state})),this._changeObjectListenersState(this._mouseListeners,"pause"),this._setupBlurListener(),this._keyboardListeners.keypress.pause()},editOverride:function(e){this._editing||(this.addCSSClasses("Editing"),this.addCSSClasses("focused"),this._originalValue=this._value,this._originalState=this.getState(),this._editing=!0,this._swapOutRenderer(),this.dispatchEvent("editingStarted",this,{editor:this,overrideValue:e,currentValue:this._value,currentState:this._state})),this._changeObjectListenersState(this._mouseListeners,"pause"),this._setupBlurListener(),this._keyboardListeners.keypress.pause()},stopEditing:function(){this._editing&&(this.removeCSSClasses("Editing"),this.removeCSSClasses("focused"),this._commit(),this._clickCount=0,this._originalState=this.getState(),this._editing=!1,this._swapInRenderer(),this.dispatchEvent("editingStopped",this,{editor:this,value:this._value,state:this._state})),this._changeObjectListenersState(this._mouseListeners,"resume"),this._changeObjectListenersState(this._blurListeners,"remove"),this._keyboardListeners.keypress.resume()},cancelEditing:function(){this._editing&&(this.removeCSSClasses("Editing"),this.removeCSSClasses("focused"),this._value=this._originalValue,this._state=this._originalState,this.dispatchEvent("editingCanceled",this,{editor:this}),this.stopEditing())},isEditing:function(){return this._editing},setEditable:function(e){if(this._getPossibleBooleanFunctionValue(this._editable)!==this._getPossibleBooleanFunctionValue(e)){this._editable=e;var t=this._getPossibleBooleanFunctionValue(this._editable);this.domNode&&(t||this.isEditing()&&this.cancelEditing(),this._setReadOnly(!t))}},_getUIValue:function(){return"Method must be overridden"},_setUIValue:function(){return"Method must be overridden"},_commit:function(){var e=this._getUIValue();null!=e&&this.hasValueChanged(e)?this.setValue(e,"client"):this._setUIValue(this._originalValue)},_revert:function(){this._setUIValue(this._originalValue),this._value=this._originalValue,this._state=this._originalState},setDependentProperties:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(369),i(1279),i(2835),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,n],{constructor:function(e){e=e||{},this._mode=e.mode||"StandAlone",this._nameSpace=e.nameSpace||"/actions/"+o.generateUuid(),this._setupPeerModel(),this._callbacks={},this._actionChangeCallbacks={},this._propertyToIndex="id"},_setupPeerModel:function(){switch(this._mode){case"StandAlone":this._peerModelManager=t.getClientInstance(this._nameSpace),this.addManagerListeners(this._peerModelManager),this._peerModelManager.setRoot("Root");break;case"ActAsServer":this._peerModelManager=t.getServerInstance(this._nameSpace),this.addManagerListeners(this._peerModelManager),this.start(this._peerModelManager),this._peerModelManager.setRoot("Root");break;case"ActAsClient":this._peerModelManager=t.getClientInstance(this._nameSpace),this.addManagerListeners(this._peerModelManager),this.start(this._peerModelManager);break;default:throw new Error("The mode provided is not valid! Please use one of the following: StandAlone, ActAsServer or ActAsClient")}},onPropertySet:function(e){this.onActionChange({id:e.target.getProperty("id"),key:e.data.key,oldValue:e.data.oldValue,newValue:e.data.newValue,originator:e.originator})},onChildAdd:function(e){e.data.child.getProperty("id")||e.data.child.setProperty("id",e.data.child.getId()),this.onActionAdd({id:e.data.child.getProperty("id")})},loadActions:function(e){Array.isArray(e)&&e.forEach((function(e){this.addAction(e)}),this)},addAction:function(e){if("ActAsClient"===this._mode)throw new Error("Actions cannot be added while in ActAsClient Mode!");var t;if((e=e||{}).id&&this._getPeerNodeIdForIndexedProperty(e.id))throw new Error("Action id must be unique!");return t=this._peerModelManager.getRoot().addChild("Action",e),e.id||t.setProperty("id",t.getId()),e.callback&&this.addActionCallback(t.getProperty("id"),e.callback),t.getId()},getAction:function(e){var t=this._actionById(e);return t?t.getProperties():null},getAllActions:function(){return this._peerModelManager.getRoot().getChildren().map((function(e){return e.getProperties()}))},removeAction:function(e){if("ActAsClient"===this._mode)throw new Error("Actions cannot be removed while in ActAsClient Mode!");var t=this._getPeerNodeIdForIndexedProperty(e);if(!t||!this._peerModelManager.hasById(t))throw new Error("This is not a valid action id!");this._peerModelManager.getById(t).destroy(),delete this._callbacks[e]},enableAction:function(e){this.updateAction(e,{enabled:!0})},disableAction:function(e){this.updateAction(e,{enabled:!1})},updateAction:function(e,t,i){var n=this._actionById(e);n&&(t.callback&&this.addActionCallback(e,t.callback),n.setProperties(t,i))},actionHasProperty:function(e,t){return this._actionById(e).hasProperty(t)},executeAction:function(e,t){var i;t=t||{},!0===(i=this._actionById(e)).getProperty("enabled")&&i.dispatchEvent("peerEvent",i,t)},addActionCallback:function(e,t,i){var n,o=this._actionById(e);this.removeActionCallback(e),n=function(e){t.call(i||o.getProperties(),e.data)},this._callbacks[e]={callback:n,scope:i},o.addEventListener("peerEvent",n,i)},removeActionCallback:function(e){var t,i=this._actionById(e);(t=this._callbacks[e])&&(i.removeEventListener("peerEvent",t.callback,t.scope),delete this._callbacks[e])},addActionChangeCallback:function(e,t,i){var n,o=this._actionById(e);this.removeActionChangeCallback(e),n=function(e){t.call(i,{property:e.data.key,oldValue:e.data.oldValue,newValue:e.data.newValue},e.originator)},this._actionChangeCallbacks[e]={callback:n,scope:i},o.addEventListener("propertySet",n,i)},removeActionChangeCallback:function(e){var t=this._actionById(e);this._actionChangeCallbacks[e]&&(t.removeEventListener("propertySet",this._actionChangeCallbacks[e].callback,this._actionChangeCallbacks[e].scope),delete this._actionChangeCallbacks[e])},onActionChange:function(e){},onActionAdd:function(e){},_actionById:function(e){var t,i=this._getPeerNodeIdForIndexedProperty(e);return i&&this._peerModelManager.hasById(i)&&(t=this._peerModelManager.getById(i)),t},destroy:function(){var e=this;if(this._peerModelManager){if("ActAsClient"!==this._mode){var i=this.getAllActions();i&&i.length>0&&i.forEach((function(t){e.removeAction(t.id)}))}this.removeManagerListeners(this._peerModelManager)}t.cleanup(this._nameSpace),this._peerModelManager=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2821),i(2833),i(1704),i(652)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e([o],{getNamespace:function(){},move:function(e,t,i,n){},setRoot:function(e,t,i){},getRoot:function(){},hasRoot:function(){},hasById:function(e){},getById:function(e){},setSyncEnabled:function(e,t){},isSyncEnabled:function(){},getByType:function(e,t){},getByProperty:function(e,t,i){}}),a=e([r,o.Syncable],{setRootWithId:function(e,t,i,n){}}),s=e([a,o.Impl],{constructor:function(){this._root=null,this._sync=!1,this._idCache={}},setRootWithId:function(e,t,n,o){if(this.hasRoot())throw new Error("Root node already exists.");var r=new i.Impl(e,t,n,this._idCache);return this._setRoot(r,o),r},setRoot:function(e,t,n){if(this.hasRoot())throw new Error("Root node already exists.");var o=i.Impl.createNode(e,t,this._idCache);return this._setRoot(o,n),o},_setRoot:function(e,t){this._root=e;var n=this;return this._root.destroy=function(e){n.dispatchEvent("rootDestroyed",this,void 0,e),i.Impl.prototype.destroy.call(this,e),n._root=null,n.dispatchEvent("rootUnset",this,void 0,e)},this.dispatchEvent("rootSet",this._root,void 0,t),this._root},getRoot:function(){return this._root},hasRoot:function(){return!!this._root},hasById:function(e){return this._idCache.hasOwnProperty(e)},getById:function(e){if(this._idCache.hasOwnProperty(e))return this._idCache[e];throw new Error("No root node exists")},move:function(e,t,i,n){if(e.getRoot()!==t.getRoot())throw new Error("Can not move a node to a different peer model");if(e===t||e.hasDescendant(e.getId()))throw new Error("Can not move a node to be a child or descendant of itself");var o,r;if(!e.hasParent())throw new Error("Only un-orphaned nodes can be moved.");(r=(o=e.getParent()).getChildIndex(e))===i&&o===t||(o._removeChild(e),i=t._addChild(e,i),this.dispatchEvent("childMoved",e,{oldParent:o,oldIndex:r,newParent:t,newIndex:i},n))},setSyncEnabled:function(e,t){this._sync!==e&&(this._sync=e,this.dispatchEvent("syncChanged",this,{syncEnabled:this._sync},t))},isSyncEnabled:function(){return this._sync},getByType:function(e,t){var i=[];return t||(t=this.getRoot()),t&&t.accept((function(t){t.getType()===e&&i.push(t)})),i},getByProperty:function(e,t,i){var n=[];return i||(i=this.getRoot()),i&&i.accept((function(i){i.hasProperty(e)&&i.getProperty(e)===t&&n.push(i)})),n}});return r._clientPropSet=!0,r.setClientPropSetEnabled=function(e){r._clientPropSet=e},r.clearInstances=function(){r._instances={},r._serverInstances={}},r.clearInstances(),r.getInstance=r.getClientInstance=function(e,i){if(!this._instances[e]){var o,a=new s;o=r._clientPropSet?new t(e,a,i):new n(e,a,i),this._instances[e]={manager:a,synchronizer:o}}return this._instances[e].manager},r.getServerInstance=function(e,i){if(!this._serverInstances[e]){var o,a=new s;o=r._clientPropSet?new t(e,a,i,!1):new n(e,a,i,!1),this._serverInstances[e]={manager:a,synchronizer:o}}return this._serverInstances[e].manager},r.cleanup=function(e){r._instances[e]&&(r._instances[e].manager.setSyncEnabled(!1),r._instances[e].manager.hasRoot()&&r._instances[e].manager.getRoot().destroy(),r._instances[e].synchronizer.remove(),delete r._instances[e])},r.Impl=s,r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(768),i(352)],o=i.dj.d(n,(function(e,t,i){var n=e(null,{shortcut:"",platformizeShortcut:!0,postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwShortcutMixin"),this.set("shortcut",this.get("shortcut"))},_setShortcutAttr:function(e){if("string"!=typeof e)throw new Error("'shortcut' property expects a literal string!");this._updateShortcut(e),this._set("shortcut",e)},_updateShortcut:function(e){this.shortcutKeyNode?(this.shortcutKeyNode.textContent=this._getPlatformizedShortcut(e),!1===this.get("showShortcut")||""===e?this.domNode.classList.add("mwHideShortcut"):this.domNode.classList.remove("mwHideShortcut")):this._updateTitle(this._getPlatformizedShortcut(e),!0)},_updateTitle:function(e,t){if(this.domNode.classList.contains("mwDescriptionMixin"))this.inherited(arguments);else{var i=this.getTitleNodes();i.forEach((function(t){t.setAttribute("title",e)}))}},getTitleNodes:function(){return[this.domNode]},_getPlatformizedShortcut:function(e){return this.get("platformizeShortcut")?t.getPlatformSpecificString(e):e},_setPlatformizeShortcutAttr:function(e){if("boolean"!=typeof e)throw new Error("'platformizeShortcut' property expects a boolean value!");this._set("platformizeShortcut",e),this._updateShortcut(this.get("shortcut"))}});return n._dependencies=[{mixin:i,orderDependent:!0,type:"shortcut"}],n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(251)],o=i.dj.d(n,(function(e){return{RUN_ALL:"rtc_manual_run_all",RUN:"rtc_run",RUN_SECTION:"rtc_run_section",RUN_SECTION_ADVANCE:"rtc_run_section_advance",RUN_SECTION_END:"rtc_run_section_end",RUN_SECTION_ALL:"rtc_run_section_all",CONTINUE_ACTION_ID:e.EXECUTION_CONTROLS.CONTINUE.Action,STEP_ACTION_ID:e.EXECUTION_CONTROLS.STEP.Action,STOP_ACTION_ID:e.EXECUTION_CONTROLS.STOP.Action,PAUSE_ACTION_ID:e.EXECUTION_CONTROLS.PAUSE.Action,STEP_IN_ACTION_ID:e.EXECUTION_CONTROLS.STEP_IN.Action,STEP_OUT_ACTION_ID:e.EXECUTION_CONTROLS.STEP_OUT.Action,RUN_TO_LINE_ACTION_ID:"rtc_run_to_line",CONTINUE_TO_LINE_ACTION_ID:"rtc_continue_to_line",RUN_TO_CURSOR:"rtc_run_to_cursor",RUN_SECTION_AND_PRIOR_STALE:"rtc_run_section_and_prior_stale"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t){this._data=e,this._children=t||[],this._parent=null,this._children.forEach((function(e){e._parent=this}),this)},getParent:function(){return this._parent},getChildren:function(){return this._children},getAllChildren:function(){return this.getChildren()},getStartLine:function(){return this._data.startLine},getStartColumn:function(){return this._data.startColumn},getEndLine:function(){return this._data.endLine},getEndColumn:function(){return this._data.endColumn},getType:function(){return this._data.type},getChildrenOfType:function(e){return this.getChildren().filter((function(t){return t.getType()===e}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(249),i(260)],o=i.dj.d(n,(function(e,t){return{EVENTS:{scrollTop:1,scrollLeft:2,scrollHeight:3,scrollWidth:4,clientHeight:5,clientWidth:6,offsetHeight:7,offsetWidth:8,layoutChange:9,renderUpdate:10,styleChange:11},SOURCES:{documentChange:1,styleRuleChange:2},_DOCUMENT_EVENTS_TO_PATCH:[e.FORMAT_CHANGE_EVENT],createEvent:function(e,t){return{type:e,source:t}},hasScrollEvent:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.scrollTop||e.type===this.EVENTS.scrollLeft}),this)},hasVerticalScrollEvent:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.scrollTop}),this)},hasHorizontalScrollEvent:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.scrollLeft}),this)},hasVerticalEvents:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.scrollTop||e.type===this.EVENTS.clientHeight||e.type===this.EVENTS.offsetHeight||e.type===this.EVENTS.scrollHeight}),this)},hasScrollHeightChange:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.scrollHeight}),this)},hasClientOrOffsetHeightChange:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.clientHeight||e.type===this.EVENTS.offsetHeight}),this)},hasClientOrOffsetWidthChange:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.clientWidth||e.type===this.EVENTS.offsetWidth}),this)},hasSizingEvent:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.scrollHeight||e.type===this.EVENTS.scrollWidth||e.type===this.EVENTS.clientHeight||e.type===this.EVENTS.clientWidth||e.type===this.EVENTS.offsetHeight||e.type===this.EVENTS.offsetWidth}),this)},hasHeightEvent:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.clientHeight||e.type===this.EVENTS.offsetHeight||e.type===this.EVENTS.scrollHeight}),this)},hasOffsetHeightEvent:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.offsetHeight}),this)},hasWidthEvent:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.clientWidth||e.type===this.EVENTS.offsetWidth||e.type===this.EVENTS.scrollWidth}),this)},hasLayoutEvent:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.layoutChange}),this)},hasRenderEvent:function(e){return this._assertValidEvents(e),e.some((function(e){return e.type===this.EVENTS.renderUpdate}),this)},hasDocumentChangeSource:function(e){return this._assertValidEvents(e),e.some((function(e){return e.source===this.SOURCES.documentChange}),this)},hasStyleChangeSource:function(e){return this._assertValidEvents(e),e.some((function(e){return e.source===this.SOURCES.styleRuleChange}),this)},isLayoutChangeEventToPatch:function(e,i){return t.isMultiLineEvent(e,i)||this._hasDocumentEventToPatch(e)},_assertValidEvents:function(e){if(!(e&&e.length>0))throw Error("View events payload cannot be empty")},_hasDocumentEventToPatch:function(e){return this._DOCUMENT_EVENTS_TO_PATCH.some((function(i){return t.hasEventType(e,i)}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213)],o=i.dj.d(n,(function(e,t){return e(null,{backgroundColor:"rgb(239, 239, 239)",_setBackgroundColorAttr:function(e){if("string"!=typeof e)throw new Error("'backgroundColor' property expects a literal string");var t=this.get("readOnly"),i=this._getReadOnlyColor(e,t);this._updateViewBackgroundColor(i),this._set("backgroundColor",e)},_getReadOnlyColor:function(e,t){var i;return t?-1!==e.indexOf("rgb(")&&(i=e.replace(")",", 0.65)").replace("rgb(","rgba(")):i=e,i},_updateViewBackgroundColor:function(e){t.set(this.backgroundColorNode,{"background-color":e})},_setReadOnlyAttr:function(e){this.inherited(arguments);var t=this.get("backgroundColor"),i=this._getReadOnlyColor(t,e);this._updateViewBackgroundColor(i)},_rgbStringToIntegerArray:function(e){var t,i=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(/,\s*/),n=[];for(t=0;t<i.length;t++)n[t]=parseInt(i[t]);return n},_integerArrayToRGBString:function(e){return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},_calculateLighterRGBString:function(e,t,i){var n=this._rgbStringToIntegerArray(e),o=Number(n[0]),r=Number(n[1]),a=Number(n[2]);if(o+=(255-o)*t,r+=(255-r)*t,a+=(255-a)*t,i){var s=o+r+a;3*i>s&&(o+=o/s*(3*i-s),r+=r/s*(3*i-s),a+=a/s*(3*i-s))}return this._integerArrayToRGBString([Math.round(o),Math.round(r),Math.round(a)])},_getDropDownMenuBackgroundColor:function(){if(-1!==this.get("backgroundColor").indexOf("rgba"))throw new Error("_getDropDownMenuBackgroundColor does not support rgba values");return this._calculateLighterRGBString(this.get("backgroundColor"),.35)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(457)],o=i.dj.d(n,(function(e,t){var i=e([],{constructor:function(e,i,n,o){void 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):e instanceof t?(this._x=e.getX(),this._y=e.getY(),this._z=e.getZ(),this._w=1):(this._x=e,this._y=i,this._z=n,this._w=void 0===o?1:o)},getX:function(){return this._x},getY:function(){return this._y},getZ:function(){return this._z},getW:function(){return this._w},setX:function(e){this._x=e},setY:function(e){this._y=e},setZ:function(e){this._z=e},setW:function(e){this._w=e},toString:function(){var e="[";return e+=this._x,e+=", ",e+=this._y,e+=", ",e+=this._z,e+=", ",e+=this._w,e+="]"},project:function(){return new t(this._x/this._w,this._y/this._w,this._z/this._w)},calculateOutcodes:function(e){var i,n=0;if(this._x<-this._w&&(n+=1),this._x>this._w&&(n+=2),this._y<-this._w&&(n+=4),this._y>this._w&&(n+=8),this._z<-this._w&&(n+=16),this._z>this._w&&(n+=32),void 0!==e)for(i=0;i<e.length;i+=1){e[i].distance(new t(this._x,this._y,this._z))>0&&(n+=1<<6+i)}return n}});return i.outCodeForPlane=function(e){return 1<<e},i.ClipPlanes={XMIN:0,XMAX:1,YMIN:2,YMAX:3,ZMIN:4,ZMAX:5,USER:6},i.OutCodes={OUT_XMIN:1<<i.ClipPlanes.XMIN,OUT_XMAX:1<<i.ClipPlanes.XMAX,OUT_YMIN:1<<i.ClipPlanes.YMIN,OUT_YMAX:1<<i.ClipPlanes.YMAX,OUT_ZMIN:1<<i.ClipPlanes.ZMIN,OUT_ZMAX:1<<i.ClipPlanes.ZMAX},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(223),i(206),i(235),i(844),i(367),i(258),i(238)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e("rendererseditors.editors.TextBoxEditor",[s],{_inputBox:void 0,_removeQuotes:!1,_originalEditValue:void 0,formattedVal:"",setValue:function(e,t,i){if((e=this._applyFormatting(e,t))!==this._value){var n=i||this.formattedVal?i||this.formattedVal:e;this.formattedVal=null,e&&e.hasOwnProperty("value")&&(n=e.value),this._inputBox&&this._setUIValue(n),e=n,r.compareValues(this._value,e)||(e=this.updateBeforeSendToServer(e,t),this.inherited(arguments))}else this._value=this._getTextValue(e)},startup:function(){this._setReadOnly(!0)},updateBeforeSendToServer:function(e,t){return e},setEditValue:function(e,t,i){e=this._applyFormatting(e,t),r.compareValues(this._editValue,e)||(this.inherited(arguments),this._editValue=i||this.formattedVal?i||this.formattedVal:e,this.formattedVal=null,void 0===t&&(t="client"),this.dispatchEvent("editValueChanged",this,{renderer:this,oldValue:this.oldValue,newValue:e,source:t}))},setState:function(e){this.domNode&&JSON.stringify(this._oldState)!==JSON.stringify(e)&&(this._oldState=JSON.parse(JSON.stringify(e)),this._inputBox||this._setupInputNode(),this._setupDomClasses(e),this._inputBox.inputNode.setAttribute("data-tag",this.createDataTag("value")),this.inherited(arguments),void 0!==e.isMetaData&&(this._state.isMetaData=r.getLogicalValue(e.isMetaData,!1)),this._state.isMetaData&&(this._commitOnBlur=!1),void 0===e.doCommitEmptyMetaData&&(this._state.doCommitEmptyMetaData=!0))},_setupDomClasses:function(e){var t=e?e.dataType?e.dataType:e.class?e.class:"char":"char",n=!!e&&e.isTemporaryValue,o=r.getLogicalValue(!!e&&e.isMetaData,!1);this._applyCssClass(t,n,!1,this._inputBox.domNode),this._applyCssClass(t,n,!1,this._inputBox.inputNode),this.addCSSClasses("cellRenderer",this.domNode),this.isEditable()?this.removeCSSClasses("variableEditorNotEditable",this.domNode):this.addCSSClasses("variableEditorNotEditable",this.domNode),i.set(this._inputBox.inputNode,"width","inherit"),o&&r.addToClassList(this._inputBox.inputNode,a.IS_METADATA)},_handleKeyboardEvent:function(e){if(this.isEditing()){"keypress"===e.type?this._handleKeyPress(e):"keydown"===e.type&&this._handleKeyDown(e);var t=e;t.editor=this,this.dispatchEvent(e.type,this.domNode,t),e.stopPropagation()}else this.inherited(arguments)},_handleStringFormatting:function(e){var t=this.getCursorPosition(),i=this._getUIValue(),n=null;if(this._handleFormatting?n=this._handleFormatting(t,i,e):this._state&&this._state.dataType&&"string"===this._state.dataType&&(n=r.handleFormatting(t,i,e)),n){var o=r.formatString(n,"client");this.formattedVal=n,this._setUIValue(o),this.setCursorPosition(t[0]+1,t[0]+1)}},_handleKeyDown:function(e){if(e){var t=this._getKeyCode(e);if(null!==t&&t===n.ESCAPE)this.cancelEditing(),e.preventDefault();else if(t===n.TAB)this._handleStringFormatting("tab");else if(null!==t&&t===n.ENTER){if(e.altKey)return void this._handleStringFormatting("newLine");this.formattedVal&&(this.setValue(this._getUIValue(),"client"),this.formattedVal=""),this.stopEditing(),this.addCSSClasses("focused"),this._setupBlurListener(),e.preventDefault()}}},_handleKeyPress:function(e){if(e){var t=this._getKeyCode(e);null!==t&&t===n.ENTER&&(this.stopEditing(),e.preventDefault())}},_handleMouseUp:function(){this.isEditable()&&this.isEditOnSingleClick()&&this._setReadOnly(!1),this._focus()},_setupInputNode:function(){this._inputBox=new l({readOnly:!0,value:this._value,editable:this._allArgs.editable}),this._inputBox.domNode.setAttribute("data-tag",this.createDataTag("textboxeditor")),this.own(this._inputBox),this._setupInputNodeListeners(),this._inputBox._handleEnterKey=function(){},this.domNode.appendChild(this._inputBox.domNode),this.focusNode=this._inputBox.focusNode},_editOnFocus:function(){!this.isEditing()&&this.isEditOnSingleClick()&&this.isEditable()&&(this._inPlaceEditor!==this&&this._inPlaceEditor?this._inPlaceEditor&&this._inPlaceEditor.edit&&this._inPlaceEditor.edit():this.edit())},_setupInputNodeListeners:function(){var e=this,i=t.hitch(this,"_handleKeyboardEvent");this._inputNodeListeners={},this._inputNodeListeners.keypress=o(this._inputBox.domNode,"keypress",i),this._inputNodeListeners.keydown=o(this._inputBox.domNode,"keydown",i),this._inputNodeListeners.mouseup=this._inputBox.on("mouseup",(function(){var t=e._inputBox.inputNode.selectionStart,i=e._inputBox.inputNode.selectionEnd;e._inputBox.set("cursorPosition",[t,i]),e.set("cursorPosition",[t,i])})),this._inputNodeListeners.focus=c.on("widget-focus",(function(t){t===e._inputBox&&e._editOnFocus()}))},getCursorPosition:function(){return[r.getSelectionStart(this._inputBox.inputNode),r.getSelectionEnd(this._inputBox.inputNode)]},setCursorPosition:function(e,t){r.selectRange(this._inputBox.inputNode,e,t)},_getDefaultState:function(){return{isMetaData:!1,doCommitEmptyMetaData:!0,editorValue:""}},_handleClick:function(e){if(this._editOnSingleClick&&void 0===this._doubleClickTimer&&!e.metaKey&&!e.ctrlKey&&!this.isEditing()&&this.isEditable()){this._setReadOnly(!1);var t=this.getCursorPosition();this.setCursorPosition(t[0],t[1])}},postCreate:function(){this._inputBox||this._setupInputNode(),this.own(o(this._inputBox,"click",this._handleClick.bind(this))),this.inherited(arguments)},stopEditing:function(){this.isEditing()&&(this._setReadOnly(!0),this.setCursorPosition(-1,-1),this.inherited(arguments))},edit:function(){this.isEditing()||(this._setReadOnly(!1),this.inherited(arguments),this._editValue&&this._setUIValue(this._editValue),r.getLogicalValue(this.getState().isMetaData,!1)&&this._setUIValue(""),!1===this._editOnSingleClick&&r.selectAllText(this._inputBox.inputNode))},editOverride:function(e){this.isEditing()||(this._setReadOnly(!1),this.inherited(arguments),this._setUIValue(e),this.setCursorPosition(e.length,e.length))},cancelEditing:function(){this.isEditing()&&(this.formattedVal&&(this.formattedVal=""),this._setUIValue(this._originalValue),this._editValue=this._originalEditValue,this.inherited(arguments))},hasValueChanged:function(e){var t=this._originalValue!==e;this._editValue&&(t=t||this._editValue!==e);var i=this._getPossibleBooleanFunctionValue(this.getState().isMetaData),n=this._getPossibleBooleanFunctionValue(this.getState().doCommitEmptyMetaData);return!0===i&&!1===n&&(t=t&&""!==e),t},_commit:function(){if(this.formattedVal)this.setValue(this.formattedVal,"client",this._getUIValue()),this.formattedVal="";else{var e=this._getUIValue();null!=e&&this.hasValueChanged(e)?this.setValue(e,"client"):this._setUIValue(this._originalValue)}},_revert:function(){this.inherited(arguments),this._editValue=this._originalEditValue},_getUIValue:function(){return this._inputBox.inputNode.value},_setUIValue:function(e){if(e===this._getUIValue("value"))return;let t=this._getTextValue(e);this._inputBox.set("value",t+" "),this._inputBox.set("value",t)},setEditable:function(e){this.inherited(arguments),this._inputBox&&(this._inputBox.set("editable",this.isEditable()),this.isEditable()?this.removeCSSClasses(this._notEditableCSSClass,this._inputBox.inputNode):this.addCSSClasses(this._notEditableCSSClass,this._inputBox.inputNode))},_setReadOnly:function(e){this._inputBox&&(!0===e?this._inputBox.set("readOnly",!0):this._inputBox.set("readOnly",!1))},_focus:function(){this._inputBox&&this._inputBox.focusNode&&this._inputBox.focusNode.focus&&c.curNode!==this._inputBox.focusNode&&c.focus(this._inputBox.focusNode)},setRemoveQuotes:function(e){this._removeQuotes=e},getRemoveQuotes:function(){return this._getPossibleBooleanFunctionValue(this._removeQuotes,!1)},_applyFormatting:function(e,t){var i=e;if("server"===t){if(!0===this.getRemoveQuotes())i=r.stripOuterSingleQuotes(e);else{var n=r.stripOuterSingleQuotes(e);e!==n&&(i="'"+n.replace(/'/g,"''")+"'")}this._state&&"string"===this._state.dataType&&(this.formattedVal=r.formatString(e,t))}return i},getStyleNode:function(e){return"backgroundColor"===e?this.domNode:this.focusNode},destroy:function(){this._changeObjectListenersState(this._inputNodeListeners,"remove"),this.inherited(arguments)},_handleBlurEvent:function(e){e===this&&(this.removeCSSClasses("Editing"),this.removeCSSClasses("focused"),this.inherited(arguments))},_getTextValue:function(e){let t="";return Array.isArray(e)&&Array.isArray(e[0])?t=this._getArrayTextValue(e):t+=e,t},_getArrayTextValue:function(e){let t=""+e[0];for(let i=1;i<e.length;i+=1)t=t+";"+e[i];return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(228),i(210),i(225),i(277),i(231),i(514)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=function(e){for(;e;){if(e.getAttribute&&"refuse"===e.getAttribute("data-focus")||"refuse"===n.get(e,"data-focus"))return!0;e=e.parentNode}return!1},d=function(e){for(;e;){if(e&&e.classList&&e.classList.contains("dijitPopup")){const t=l.findParentNode(e,"mwHasMenuOpened")||l.findParentNode(e,"dijitDropDownButtonOpened");if(!t)return!1;e=t}if("temporary"===n.get(e,"data-focus"))return!0;e=e.parentNode}return!1},u=function(e){for(var t=r("[data-tag='motwToolstrip.figureTab.menuAndToolbars.menubarWrapper']"),o=t.length>0?t[0]:null;e;){if("accept"===n.get(e,"data-focus")||o&&i.isDescendant(e,o))return!0;if("refuse"===n.get(e,"data-focus"))return!1;e=e.parentNode}return!0},h=function(){return document.body.querySelector(".mwModalDialog")||document.body.querySelector(".dijitDialog")||document.body.querySelector(".mwModelessDialog")},p=null,f=document.body,g=null,m=null,_=null,v=!1,b=e(null,{_restoreFocusToLastNonRefuseElementHandler:function(){b.restoreToLastNonRefuseElement()},_restoreFocusHandler:function(){b.restoreFocus()},_blurHandler:function(e){g||(e.target===window&&(b._windowBlurred=!0),setTimeout((function(){"IFRAME"===document.activeElement.tagName&&([void 0,null,window,document,document.body].indexOf(document.activeElement.parentElement)<0&&(f&&function(e){var t;window.FocusEvent?(t=new FocusEvent("blur"),e.dispatchEvent(t)):document.createEvent?((t=document.createEvent("HTMLEvents")).initEvent("blur",!0,!0),e.dispatchEvent(t)):((t=document.createEventObject()).eventType="blur",element.fireEvent("on"+t.eventType,t))}(f),u(document.activeElement.parentElement)&&(g=document.activeElement,!d(g)&&u(g)&&(f=g),_=g.contentDocument&&g.contentDocument.activeElement?g.contentDocument.activeElement:null,y(g.parentElement),setTimeout((function(){_&&y(_)}),0))),b._iFrameClicked=!0)}),0))},_mouseDownHandler:function(e){d(e.target)||(u(e.target)?g||1!==e.target.children.length||"IFRAME"!==e.target.children[0].tagName||(f=e.target.children[0],g=f,y(f)):c(e.target)?setTimeout((function(){0===a._stack.length&&(s.getEnclosingWidget(f)&&s.getEnclosingWidget(f).set("focused",!0),f&&!g&&(h()||y(f)))}),0):a._stack.length>0?setTimeout((function(){f&&!g&&y(f)}),0):f=e.target)},_focusHandler:function(e){if("IFRAME"!==e.target.tagName&&e.target!==document){if(!0===b._iFrameClicked)b._windowBlurred=!1,b._iFrameClicked=!1;else if(!0===b._windowBlurred)return b._windowBlurred=!1,void(v||b.restoreFocus(!0));if(e.target instanceof Element)if(p=e.target,c(p)||d(p)||(m=e.target),function(e){return!!(e.getAttribute&&"temporary"===e.getAttribute("data-focus")||"temporary"===n.get(e,"data-focus"))}(p));else if(d(p));else if(u(p)){if(e.target!==document.body){if(g){if([].slice.call(e.target.children).indexOf(g)>-1&&f)return void y(f);g=null}f=e.target}}else c(p)?f?setTimeout((function(){(0===a._stack.length&&f||function(e){for(;e;){if(o.contains(e,"dijitPopup"))return!0;e=e.parentNode}return!1}(e.target))&&(g&&(g=null),h()||y(f))}),0):document.activeElement.blur():e.target!==document.body&&(g&&(g=null),f=e.target)}},_closeHandler:function(e){var t;if(e&&e.mwEventData&&e.mwEventData.gainedFocusWidget&&e.mwEventData.gainedFocusWidget.domNode?t=e.mwEventData.gainedFocusWidget.domNode:document&&document.activeElement&&document.activeElement instanceof Node&&(t=document.activeElement),t&&e&&e.target&&e.target.contains&&e.target.contains(t)){if(e.target.classList.contains("mwContextMenu")&&e.mwFocusData&&e.mwFocusData.previousFocusNode)return void y(e.mwFocusData.previousFocusNode);if(f){var i,n=document.querySelector('[data-tag="qabOverflowPopup"]');if(n)if(document.activeElement.parentElement&&(i=document.activeElement.parentElement.getAttribute("dijitpopupparent"))){var o=s.byId(i);if(o&&o.domNode&&n.contains(o.domNode))return}a.close(),y(f)}}},constructor:function(e,t){b._instantiated=!0,e&&b.refuseFocus(e.domNode),t&&(v=!0),document.addEventListener("restorefocustolastnonrefuseelement",this._restoreFocusToLastNonRefuseElementHandler),document.addEventListener("restorefocus",this._restoreFocusHandler),window.addEventListener("blur",this._blurHandler),document.body.addEventListener("blur",this._blurHandler),window.addEventListener("focus",this._focusHandler,!0),document.addEventListener("mousedown",this._mouseDownHandler,!0),document.addEventListener("close",this._closeHandler,!0),document.body.classList.add("mwHasFocusManager")},destroy:function(){document.removeEventListener("restorefocustolastnonrefuseelement",this._restoreFocusToLastNonRefuseElementHandler),document.removeEventListener("restorefocus",this._restoreFocusHandler),window.removeEventListener("blur",this._blurHandler),document.body.removeEventListener("blur",this._blurHandler),window.removeEventListener("focus",this._focusHandler,!0),document.removeEventListener("mousedown",this._mouseDownHandler,!0),document.body.classList.remove("mwHasFocusManager")}});b.refuseFocus=function(e){e.setAttribute("data-focus","refuse")},b.acceptFocus=function(e){e.setAttribute("data-focus","accept")},b.temporaryFocus=function(e){e.setAttribute("data-focus","temporary")},b.preventScroll=function(e){e.setAttribute("prevent-scroll",!0)},b.allowScroll=function(e){e.removeAttribute("prevent-scroll")};var y=function(e){e.matches("[prevent-scroll=true], [prevent-scroll=true] *")?e.focus({preventScroll:!0}):e.focus()};return b.restoreFocus=function(e){e?f&&y(f):setTimeout((function(){f&&y(f)}),0)},b.restoreToLastNonRefuseElement=function(){setTimeout(t.hitch(this,(function(){m&&y(m)}),0))},b.isAvailable=function(){return!0===b._instantiated},b.getPermanentFocusedElement=function(){return f},b}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1835),i(281)],o=i.dj.d(n,(function(e,t){return{isMatlabCodeFileOrBuffer:function(i){return i instanceof e||t.isMatlabCodeFile(i)},isCLikeFile:function(e){return t.isCLikeFile(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(237),i(274),i(313),i(333),i(401)],o=i.dj.d(n,(function(e,t,i,n,o){return{trimSelection:function(e){var t=n.trimRange(e),i=e.fileEndSelected()?e.getEndPosition():t.getEndPosition();return new o(t.getStartPosition(),i,e.isReversed(),e.fileEndSelected())},trimSelectionForMultipleContainer:function(e){var t=n.trimRangeForNodes(e),i=e.fileEndSelected()?e.getEndPosition():t.getEndPosition();return new o(t.getStartPosition(),i,e.isReversed(),e.fileEndSelected())},trimTrailingLineBreak:function(e){var t=n.trimTrailingLineBreak(e);return t.isEqualTo(e)||(t=new o(t.getStartPosition(),t.getEndPosition(),e.isReversed,!1)),t},isInSelection:function(e,t){if(!t)return!1;for(var i=t.getEndPosition().getNode().rootContainer();i;){if(i instanceof e)return i;if(i===t.getStartPosition().getNode().rootContainer())return!1;i=i.prevNode().rootContainer()}},isInFullSelection:function(t,i,n){if(!t.getSelection())return!1;var o=t.selectionInfo(),r=i.getLineNumber(n)+1,a=i.getLineNumber(o.startNode.rootContainer())+1,s=i.getLineNumber(o.endNode.rootContainer())+1;return r<s&&r>a||(!!(r===s&&r>a&&e.isAtEndOfContainer(o.endPosition,n))||(!!(r<s&&r===a&&e.isAtStartOfContainer(o.startPosition,n))||!(!e.isAtEndOfContainer(o.endPosition,n)||!e.isAtStartOfContainer(o.startPosition,n))))},checkFullSelection:function(t,i,n){var o=t.selectionInfo();e.isAtEndOfContainer(o.endPosition,i)&&e.isAtStartOfContainer(o.startPosition,i)&&this.setContainerSelection(t,n,i)},setContainerSelection:function(t,i,n){var o=i.getLineNumber(n)+1;t.suspendChangeEvent(),t.collapseSelection(),e.isAtEndOfContainer(t.position,n)?t.setSelectionLineColumn(o,1,o+1,1):t.setSelectionLineColumn(o+1,1,o,1),t.activateChangeEvent()},isNodeTypeInSelection:function(e,o){if(0===i.comparePositions(e.getStartPosition(),e.getEndPosition()))return!1;e=this.trimSelection(e);var r=n.getStartEndNodes(e),a=r.startNode,s=r.endNode,l=!1;return t.leafNodesInRangeIterator(a,s,function(e){if(e instanceof o)return l=!0,!0}.bind(this)),l},isMultiLineSelection:function(e){if(!e.hasSelection())return!1;var t=e.getSelectionLineColumn();return t.start.line!==t.end.line},getLiveSelectionFromCursor:function(e){return e.getCursors().map(e=>{const t=e.getCursorAsLiveRange();return new o(t.getStartPosition(),t.getEndPosition())})},destroyLiveSelection:function(e){e.forEach(e=>{e.getStartPosition().destroy(),e.getEndPosition().destroy()})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1104)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this.font=e.font||null,this.size=e.size||null,this.bold=void 0!==e.bold?e.bold:null,this.italic=void 0!==e.italic?e.italic:null,this.monospace=void 0!==e.monospace?e.monospace:null,this.underline=void 0!==e.underline?e.underline:null},className:"RichTextNode",_styleAttributes:["font","size","bold","italic","monospace","underline","color"],_serializeAttributes:function(e){e.text=this.text,void 0!==this.font&&null!==this.font&&(e.font=this.font),void 0!==this.size&&null!==this.size&&(e.size=this.size),void 0!==this.bold&&null!==this.bold&&(e.bold=this.bold),void 0!==this.italic&&null!==this.italic&&(e.italic=this.italic),void 0!==this.underline&&null!==this.underline&&(e.underline=this.underline),void 0!==this.monospace&&null!==this.monospace&&(e.monospace=this.monospace),void 0!==this.color&&null!==this.color&&(e.color=this.color)},movePositionRight:function(e){var t=e.getOffset();if(e.isRightAligned()&&t>0){var i=this.getPositionFromOffset(t);return this.inherited(arguments,[i])}return this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(1491),i(284),i(1148),i(441),i(481),i(482),i(1495),i(5714)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([n,r,a,s,l,c,d],{createView:function(){this.inherited(arguments),this.peernode.hasProperty("IsUIControl")&&this.getComponentDomNode().classList.add("supportsKeyInteractions"),this.getComponentDomNode()&&(this.addMouseEventListeners(this.getComponentDomNode()),this.own(t(this,"compViewSizeChanged",this._onComponentViewSizeChanged.bind(this))))},fireViewReadyEvent:function(){this.getPeerNode().setProperty("isViewReady",!0)},setProperties:function(e){this.inherited(arguments)},_Enable:function(e){this.peernode.hasProperty("IsUIControl")||this.inherited(arguments)},_UIControlEnable:function(e){if("inactive"===e)this.widget.set("disabled",!1),this.getComponentDomNode().classList.add("enableInactive");else{var t=o.toJSBoolean(e);this.widget.set("disabled",!t),this.getComponentDomNode().classList.remove("enableInactive")}this._setSupportsLeftClickInteractions(e)},_setSupportsLeftClickInteractions:function(e){var t=this.getComponentDomNode();"on"===e||!0===e?t.classList.remove("supportsLeftClickInteractions"):t.classList.add("supportsLeftClickInteractions")},handleInnerSizeSet:function(e){this._resizeView(e),this.updateOuterPositionForNoMarginsComponent(e)},setComponentToPreferredSize:function(){var e=this._ViewState.isViewScaled();if(e)var t=this._moveWidgetDomOffScreen();var n=i.clone(this.widget.get("preferredSize"));if(void 0===n.width||void 0===n.height)throw new Error("Assertion: preferredSize did not contain fields 'width' and 'height'");if(!(n.width>=0&&n.height>=0))throw new Error("Assertion: preferredSize contained negative values for ''width'' and ''height''");if(!this.WidgetData.ComponentAdapter)throw new Error("Assertion: setComponentToPreferredSize() is only supported when a component has an adapter providing minimum information");var o=this._getWidthBuffer(n.width);n.width=Math.max(n.width+o,this.WidgetData.ComponentAdapter.MinimumSize[0]),n.height=Math.max(n.height,this.WidgetData.ComponentAdapter.MinimumSize[1]);var r={width:this.widget.get("width"),height:this.widget.get("height")},a=this._previousPreferredSize,s=!!this.WidgetData.getProperty("WordWrap")&&this.WidgetData.getProperty("WordWrap");if(!this.WidgetData.ComponentAdapter.PreferredSizing.AutoFitShrinkWidthMode.isPreserveWidth&&!s){var l=this._computeSizeToPreserve(r,a);n.width=Math.max(n.width,l.width),n.height=Math.max(n.height,l.height)}var c=this.getInnerSizeInPixels();(this.WidgetData.ComponentAdapter.PreferredSizing.AutoFitShrinkWidthMode.isPreserveWidth||s)&&(n.width=c[0],void 0!==a&&void 0!==a.height&&(a.height=Math.max(a.height,this.WidgetData.ComponentAdapter.MinimumSize[1]),r.height>a.height&&(n.height=Math.max(r.height,n.height))));var d=this.getInnerLocationInPixels(),u=this.WidgetData.getProperty("HorizontalAlignment")?this.WidgetData.getProperty("HorizontalAlignment"):"left",h=[n.width,n.height],p={Size:h,Location:this._getLocationBasedOnNewSize(d,c,h,u)};this.setPositionPropertiesInPixels(p),e&&t(this.getComponentDomNode())},_computeSizeToPreserve:function(e,t){var i={width:0,height:0};if(void 0!==t&&void 0!==t.width){var n=this._getWidthBuffer(t.width);t.width=Math.max(t.width+n,this.WidgetData.ComponentAdapter.MinimumSize[0]),t.height=Math.max(t.height,this.WidgetData.ComponentAdapter.MinimumSize[1]),this.WidgetData.ComponentAdapter.PreferredSizing.AutoFitShrinkWidthMode.isPreserveMinimumDefaultWidth&&(t.width=Math.max(t.width,this.WidgetData.ComponentAdapter.DefaultValues.Size[0])),e.width!==t.width||e.height!==t.height?(i.width=e.width,i.height=e.height):this.WidgetData.ComponentAdapter.PreferredSizing.AutoFitShrinkWidthMode.isPreserveMinimumDefaultWidth&&(i.width=this.WidgetData.ComponentAdapter.DefaultValues.Size[0])}else this.WidgetData.ComponentAdapter.PreferredSizing.AutoFitShrinkWidthMode.isPreserveMinimumDefaultWidth&&(i.width=this.WidgetData.ComponentAdapter.DefaultValues.Size[0]);return i},_getWidthBuffer:function(e){return Math.round(Math.max(5,.03*e))},_getLocationBasedOnNewSize:function(e,t,i,n){var o;switch(n.toLowerCase()){case"left":o=e[0];break;case"right":o=e[0]-(i[0]-t[0]);break;case"center":o=e[0]-.5*(i[0]-t[0])}var r=t[1]-i[1];return[o,e[1]+r]},addMouseEventListeners:function(e){this.inherited(arguments),this.peernode.hasProperty("IsUIControl")&&this.own(this._keydown=t(e,"keydown",function(e){this.onKeyDown(e)}.bind(this)),this._keyup=t(e,"keyup",function(e){this.onKeyUp(e)}.bind(this)))},_shouldProcessKeyEvent:function(e){return e.currentTarget.contains(e.target)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(239)],o=i.dj.d(n,(function(e){"use strict";function t(t,i,n,o){return[e.range().setRows(t,i).setColumns(n,o)]}function i(t,i){return!(!t||!i)&&(!!e.doesRangeIntersect(t,i)&&(!!e.isRangeEqual(t,i)||!(!n(t)&&!n(i)&&Math.max(t.rows.start,i.rows.start)===Math.min(t.rows.end,i.rows.end))&&!(!o(t)&&!o(i)&&Math.max(t.columns.start,i.columns.start)===Math.min(t.columns.end,i.columns.end))))}function n(e){return 1===e.rows.count&&e.columns.count>1}function o(e){return 1===e.columns.count&&e.rows.count>1}function r(t,i){if(!t||!i)return!1;var n=i.rows.end>t.rows.end?i:t,o=n===t?i:t,r=n.rows.start-o.rows.end==1;return(e.doesRangeIntersect(t,i)||r)&&t.columns.start===i.columns.start&&t.columns.end===i.columns.end}function a(t,i){if(!t||!i)return!1;var n=i.columns.end>t.columns.end?i:t,o=n===t?i:t,r=n.columns.start-o.columns.end==1;return(e.doesRangeIntersect(t,i)||r)&&t.rows.start===i.rows.start&&t.rows.end===i.rows.end}function s(t,i){return t?i?e.range().setRows(Math.min(t.rows.start,i.rows.start),Math.max(t.rows.end,i.rows.end)).setColumns(t.columns.start,t.columns.end):t:i}function l(t,i){return t?i?e.range().setRows(t.rows.start,t.rows.end).setColumns(Math.min(t.columns.start,i.columns.start),Math.max(t.columns.end,i.columns.end)):t:i}function c(e,t){for(var i=d(e,t),n=i?i.length:0,o=0;o!==n;)o=n,n=(i=d(e,i))?i.length:0;return i}function d(t,n){var o=[];if(!(t&&t.length>0&&n))return n;for(var r=0;r<n.length;r+=1){for(var a=n[r],s=0;s<t.length;s+=1){var c=t[s];if(i(c,a)){if(e.isRangeInside(c,a)){a=null;break}var d=c.rows.start,u=a.rows.start,h=c.rows.end,p=a.rows.end,f=c.columns.start,g=a.columns.start,m=c.columns.end,_=a.columns.end,v=Math.min(f,g),b=Math.max(f,g),y=Math.min(m,_),C=Math.max(m,_),T=Math.max(h,p),E=Math.min(h,p),S=Math.max(d,u),w=Math.min(d,u),I=e.range().setRows(E,T).setColumns(v,b),A=e.range().setRows(E,T).setColumns(b,y),x=e.range().setRows(E,T).setColumns(y,C),N=e.range().setRows(S,E).setColumns(v,b),L=e.range().setRows(S,E).setColumns(y,C),D=e.range().setRows(w,S).setColumns(v,b),M=e.range().setRows(w,S).setColumns(b,y),P=e.range().setRows(w,S).setColumns(y,C);u<d&&(g<f&&_>m?o.push(l(D,P)):g<f?o.push(l(D,M)):_>m?o.push(l(M,P)):o.push(M)),p>h&&(g<f&&_>m?o.push(l(I,x)):g<f?o.push(l(I,A)):_>m?o.push(l(A,x)):o.push(A)),g<f&&o.push(N),_>m&&o.push(L),a=null;break}}if(a)if(0===r)o.push(a);else{o.some(t=>e.isRangeEqual(t,a))||o.push(a)}}return o}function u(t,n){if(!t||t.length<=0)return[n];var o=t[0],d=[];if(t.length>1)if(d=u(t.slice(1),n),i(o,n)){var h=c(d,[o]);h&&h.length>0&&h.forEach((function(e){d.push(e)}))}else d.push(o);else a(o,n)?d.push(l(o,n)):r(o,n)?d.push(s(o,n)):e.isRangeInside(o,n)?d.push(o):e.isRangeInside(n,o)?d.push(n):i(o,n)?(d.push(o),(h=c([o],[n]))&&h.length>0&&h.forEach((function(e){d.push(e)}))):(d.push(o),1===t.length&&d.push(n));return d}function h(e){for(var t=0,i=0,n=e.length-1;i<e.length;i++,n--)t+=(e.charCodeAt(i)-64)*Math.pow(26,n);return t}return{createRange:t,rangeHasPoint:function(e,t,i){return e&&e.rows.start<=t&&e.rows.end>=t&&e.columns.start<=i&&e.columns.end>=i},rangeIsSinglePoint:function(e){return e&&e.rows&&e.rows.start===e.rows.end&&e.columns&&e.columns.start===e.columns.end},isStrictIntersection:i,isRowAdjacent:r,isColumnAdjacent:a,vertCombineRange:s,horizCombineRange:l,getUnbufferedRanges:c,getMinimumRanges:function(t,i){return function t(i){var n=[],o=!1;if(i&&i.length>1)for(var c=0;c<i.length;c+=1){for(var d=i[c],u=c+1;u<i.length;u+=1){var h=i[u];a(d,h)?(d=l(d,h),i[u]=e.range(),o=!0):r(d,h)&&(d=s(d,h),i[u]=e.range(),o=!0)}d&&d.rows&&-1!==d.rows.end&&(n.push(d),o&&(n=t(n)))}else n=i;return n}(u(t,i))},reduceRangeOverlaps:u,consolidateRanges:function(t){var i=[];if(t&&t.length>0)for(var n=t.slice(0);n.length>0;){for(var o=n.shift(),r=!1,a=0;a<i.length;a+=1){var s=i[a];e.doesRangeIntersect(s,o)&&(r=!0,i[a]=e.range().setRows(Math.min(o.rows.start,s.rows.start),Math.max(o.rows.end,s.rows.end)).setColumns(Math.min(o.columns.start,s.columns.start),Math.max(o.columns.end,s.columns.end)))}r||i.push(o)}return i},convertExcelRangeToMATLAB:function(e){var i=e.split(":");return t(parseInt(i[0].replace(/\D+/,""))-1,parseInt(i[1].replace(/\D+/,""))-1,h(i[0].replace(/\d+/,""))-1,h(i[1].replace(/\d+/,""))-1)},_convertExcelColsToNumbers:h}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1054),i(219),i(2497)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{fCommandChannel:null,constructor:function(e){i.start(),this.fCommandChannel=e},executeWithProgress(e,n,...o){const r=t.v4(),a=this.fCommandChannel+"/c"+r,s=this.fCommandChannel+"/p"+r,l=this.fCommandChannel+"/r"+r;return new Promise((t,c)=>{const d=t=>{e.onProgress(t.data.message,t.data.progress)},u=n=>{e.onStop(),i.unsubscribe(l,u,this),i.unsubscribe(s,d,this);n.data.success?t(n.data.successMessage):c(n.data.errorMessage)},h={action:n,args:o,id:r};e.onStart(),i.subscribe(l,u,this).then(t=>{i.subscribe(s,d,this).then(t=>{i.publish(this.fCommandChannel,h),e.handleCancel(()=>{i.publish(a,{})})})})})},execute:function(e,...t){return this.executeWithProgress(new n,e,...t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(224),i(285)],o=i.dj.d(n,(function(e,t,i,n){return e("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(e){var t=this._attrPairNames;return t[e]?t[e]:t[e]={s:"_"+e+"Setter",g:"_"+e+"Getter"}},postscript:function(e){e&&this.set(e)},_get:function(e,t){return"function"==typeof this[t.g]?this[t.g]():this[e]},get:function(e){return this._get(e,this._getAttrNames(e))},set:function(e,t){if("object"==typeof e){for(var i in e)e.hasOwnProperty(i)&&"_watchCallbacks"!=i&&this.set(i,e[i]);return this}var o,r=this._getAttrNames(e),a=this._get(e,r),s=this[r.s];if("function"==typeof s?o=s.apply(this,Array.prototype.slice.call(arguments,1)):this[e]=t,this._watchCallbacks){var l=this;n(o,(function(){l._watchCallbacks(e,a,t)}))}return this},_changeAttrValue:function(e,t){var i=this.get(e);return this[e]=t,this._watchCallbacks&&this._watchCallbacks(e,i,t),this},watch:function(e,t){var n=this._watchCallbacks;if(!n){var o=this;n=this._watchCallbacks=function(e,t,i,r){var a=function(n){if(n)for(var r=0,a=(n=n.slice()).length;r<a;r++)n[r].call(o,e,t,i)};a(n["_"+e]),r||a(n["*"])}}t||"function"!=typeof e?e="_"+e:(t=e,e="*");var r=n[e];"object"!=typeof r&&(r=n[e]=[]),r.push(t);var a={};return a.unwatch=a.remove=function(){var e=i.indexOf(r,t);e>-1&&r.splice(e,1)},a}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(221),i.dj.c(e.i),i(605),i(204)],o=i.dj.d(n,(function(e,t,n,o,r){var a=0,s=[],l=0,c=function(){a=1,e._postLoad=e.config.afterOnLoad=!0,d()},d=function(){if(!l){for(l=1;a&&(!o||0==o._Q.length)&&(!n.idle||n.idle())&&s.length;){var e=s.shift();try{e()}catch(e){if(e.info=e.message,!n.signal)throw e;n.signal("error",e)}}l=0}};n.on&&n.on("idle",d),o&&(o._onQEmpty=d);var u=e.ready=e.addOnLoad=function(t,i,n){var o=r._toArray(arguments);"number"!=typeof t?(n=i,i=t,t=1e3):o.shift(),(n=n?r.hitch.apply(e,o):function(){i()}).priority=t;for(var a=0;a<s.length&&t>=s[a].priority;a++);s.splice(a,0,n),d()};if(t.add("dojo-config-addOnLoad",1),t("dojo-config-addOnLoad")){var h=e.config.addOnLoad;h&&u[r.isArray(h)?"apply":"call"](e,h)}return t("dojo-sync-loader")&&e.config.parseOnLoad&&!e.isAsync&&u(99,(function(){e.parser||(e.deprecated("Add explicit require(['dojo/parser']);","","2.0"),Promise.resolve().then((function(){i(651)})).catch(i.oe))})),o?o(c):c(),u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(328),i(272),i(360),i(541),i(203),i(210),i(217),i(213)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return r("dijit.layout._LayoutWidget",[t,i,n],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,_setTitleAttr:null,buildRendering:function(){this.inherited(arguments),a.add(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var t=this.getParent&&this.getParent();t&&t.isLayoutContainer||(this.resize(),this.own(o.on("resize",e.hitch(this,"resize"))))}},resize:function(t,i){var n=this.domNode;t&&s.setMarginBox(n,t);var o=i||{};e.mixin(o,t||{}),"h"in o&&"w"in o||(o=e.mixin(s.getMarginBox(n),o));var r=l.getComputedStyle(n),a=s.getMarginExtents(n,r),c=s.getBorderExtents(n,r),d=this._borderBox={w:o.w-(a.w+c.w),h:o.h-(a.h+c.h)},u=s.getPadExtents(n,r);this._contentBox={l:l.toPixelValue(n,r.paddingLeft),t:l.toPixelValue(n,r.paddingTop),w:d.w-u.w,h:d.h-u.h},this.layout()},layout:function(){},_setupChild:function(e){var t=this.baseClass+"-child "+(e.baseClass?this.baseClass+"-"+e.baseClass:"");a.add(e.domNode,t)},addChild:function(e,t){this.inherited(arguments),this._started&&this._setupChild(e)},removeChild:function(e){var t=this.baseClass+"-child"+(e.baseClass?" "+this.baseClass+"-"+e.baseClass:"");a.remove(e.domNode,t),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(246),i(240),i(204),i(227),i(217),i(213),i(206),i(245),i(248),i(238),i(277)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){var u=function(e,t){e&&t.target!==e||t.preventDefault()},h=function(e){f.stopEvent(e)},p=!0,f={formatClipStyle:function(e){return{clip:"rect("+e.t+"px,"+(e.l+e.w)+"px,"+(e.t+e.h)+"px,"+e.l+"px)"}},isShowing:function(e){return!!e&&(e===document||"hidden"!==r.get(e,"visibility")&&"none"!==r.get(e,"display")&&this.isShowing(e.parentNode))},setSize:function(e,t){e.resize?e.resize(t):o.setMarginBox(e.domNode,t)},restoreStyle:function(e){r.set(e.domNode,{top:"auto",left:"auto",position:"static",display:"block",clip:"auto"})},getAncestorOfClass:function(e,t){for(var i=e.getParent();i&&!i.isInstanceOf(t);)i=i.getParent();return i},removeFromParent:function(e){if(e){var t=e.parentNode;t&&(s("ie")&&t.canHaveChildren&&"removeNode"in e?e.removeNode(!1):t.removeChild(e))}},getScrollPosition:function(e){var t={l:0,t:0},i=this._findScrollPane(e);return i&&(t.l=i.scrollLeft,t.t=i.scrollTop),t},setScrollPosition:function(e,t){var i=this._findScrollPane(e);i&&(i.scrollLeft=t.l,i.scrollTop=t.t)},saveScrollPosition:function(e,t){t.scrollPane||(t.scrollPane=this._findScrollPane(e)),t.scrollPane&&!t.savedScrollTop&&(t.savedScrollTop=t.scrollPane.scrollTop,t.savedScrollLeft=t.scrollPane.scrollLeft)},restoreScrollPosition:function(e,t){t.scrollPane&&(t.savedScrollTop&&(t.scrollPane.scrollTop=t.savedScrollTop,delete t.savedScrollTop),t.savedScrollLeft&&(t.scrollPane.scrollLeft=t.savedScrollLeft,delete t.savedScrollLeft))},_findScrollPane:function(e){var t=dojo.query(".scrollPane",e.domNode);return t.length>0?t[0]:this._findScrolledChild(e.domNode)},_findScrolledChild:function(e){if(e.scrollTop||e.scrollLeft)return e;if(!e.children)return null;var t,i;for(t=0;t<e.children.length;t++)if(i=this._findScrolledChild(e.children[t]))return i;return null},saveIfNotDefault:function(e,t,i,n){var o=i.get?i.get(t):i[t];void 0!==o&&o!==n&&(e[t]=o)},restoreOrSetDefault:function(e,t,i,n){var o=void 0===e[t]?n:e[t];i.set?i.set(t,o):i[t]=o},preventDefaultContextMenu:function(e,t){a(e,"contextmenu",i.partial(u,!1===t?e:null))},preventFocus:function(e,t){t||a(e,l.press,h)},stopEvent:function(t){if(this.isPopupShowing()){if(!this.popupHasFocus()){var i=c.curNode;setTimeout((function(){c.focus(i)}),0)}}else e.stop(t)},isPopupShowing:function(){return d._stack.length>0},popupHasFocus:function(){var e=d.getTopPopup().widget.domNode;return e&&(e===c.curNode||n.isDescendant(c.curNode,e))},setLocaleOnDomNode:function(e){0!==t.locale.indexOf("ko")&&0!==t.locale.indexOf("ja")&&0!==t.locale.indexOf("zh")||e.classList.add("isCJK")},disableLayoutAnimation:function(){p=!1},enableLayoutAnimation:function(){p=!0},isAnimationEnabled:function(){return p}};return f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{STATUS_BAR_ROOT:"StatusBarRoot",STATUS_BAR:"StatusBar",STATUS_GROUP:"StatusGroup",STATUS_LABEL:"StatusLabel",STATUS_PROGRESS_BAR:"StatusProgressBar",STATUS_PUSH_BUTTON:"StatusPushButton",STATUS_TEXT_FIELD:"StatusTextField",STATUS_TOGGLE_BUTTON:"StatusToggleButton"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1104)],o=i.dj.d(n,(function(e,t){return e(t,{className:"PlainTextNode",getCodeText:function(){return this.getText()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{RECEIVING_INSTRUCTION:{CONTINUE_UP:"continue_up",CONTINUE_AT_POSITION:"continue_at_position",INSERT_IF_COMPATIBLE:"insert_if_compatible",INSERT_ALTERNATE_NODE:"insert_alternate_node",USE_TOP_LEVEL_RULE_AT_POSITION:"use_top_level_rule_at_position"},RELATION:{BEFORE:0,AFTER:1,AT:2}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(209)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){i.error("Unimplemented API: MW.rtc.view.layoutmanager.layouter.getApplicableNodeClass")},getNodeToLayout:function(e,t){return e},createDomNode:function(e,t){return i.assert(this._hiddenNodeModel,"Hidden Node Model should have been constructed."),this._hiddenNodeModel.isHidden(t)?(e.removeAndDisconnectNode(t),null):this.layout(e,t)},layout:function(e,t){i.error("Unimplemented API: MW.rtc.view.layoutmanager.layouter.layout")},refresh:function(e,t,i,n){return i},place:function(e,t){},postLayout:function(e){},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(461),i(239),i(974),i(245)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o)}return a(o,null,[{key:"getFocusedCellForTreeTable",value:function(e,t,i){var n={},r=void 0;if(t&&t.rangeList.length>0&&t.rangeList[0]){var a=t.rangeList[0],s=a.rows.start,l=a.columns.start,c=[s,l].join(",");if(t.value?c=[r=t.value,l].join(","):s<=e.rangeList[0].rows.end&&s>=e.rangeList[0].rows.start&&(c=[r=e.rowMetaData[0](s).value.id,l].join(","),o._updateActiveStateWhenFocusCellPageIntoView(r,t.rangeList,i)),s<=e.rangeList[0].rows.end&&s>=e.rangeList[0].rows.start){var d=e.rowMetaData[0](s).value.groupRow;o.isGroupedRow(d)&&(c=r)}n[c]="mw-table-cell-focused"}return[r,n]}},{key:"_areRangeListsEqual",value:function(e,i){if(!e&&!i&&e===i)return!0;if(!e||!i)return!1;if(e.length!==i.length)return!1;for(var n=0;n<e.length;n+=1)if(!t.isRangeEqual(e[n],i[n]))return!1;return!0}},{key:"_updateActiveStateWhenFocusCellPageIntoView",value:function(t,i,n){var r=n.getStateByKey(e.protected.FOCUSED),a=n.getStateByKey(e.protected.ACTIVE_CELL);r&&r.value===t||r&&o._areRangeListsEqual(i,r.rangeList)||n.setState(e.protected.FOCUSED,t,i),a&&a.value&&a.value.id===t||a&&o._areRangeListsEqual(i,a.rangeList)||n.setState(e.protected.ACTIVE_CELL,{id:t},i)}},{key:"_updateSelectionStateWhenSelectionPageIntoView",value:function(t,i){var n=i.getStateByKey(e.protected.SELECTED),o=i.getStateByKey(e.protected.PIVOT);n&&n.value&&n.value[0]===t||i.setState(e.protected.SELECTED,[t]),o&&o.value!==t&&i.setState(e.protected.PIVOT,t)}},{key:"getIdsFromProxyNodes",value:function(e){return e.map((function(e){return e.id}))}},{key:"createProxyNodesWithIds",value:function(e){return e.map((function(e){return{id:e}}))}},{key:"_setInitialSelectionPivot",value:function(t,i){if(0!==t.rangeList[0].rows.count&&0===t.rangeList[0].rows.start&&!i.getStateByKey(e.protected.PIVOT)){var n=t.rowMetaData[0](0).value.id;void 0!==n&&i.setState(e.protected.PIVOT,n)}}},{key:"getSelectionIdList",value:function(t,i,n){var r={},a=void 0,s=void 0;if(i){if((a=i.value)&&0!==a.length)for(var l=0;l<a.length;l++)r[a[l]]=!0;else if(!n.getStateByKey(e.treetable.SELETION_CLEARED)){var c=n.getStateByKey(e.protected.ACTIVE_CELL);c&&c.value&&(void 0!==(s=c.value.id)&&(r[s]=!0),o._updateSelectionStateWhenSelectionPageIntoView(s,n))}}else o._setInitialSelectionPivot(t,n);return r}},{key:"isObjectEmpty",value:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},{key:"isGroupedRow",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&e.constructor===Object}},{key:"getActiveCell",value:function(i){var n=i.getStateByKey(e.protected.ACTIVE_CELL);n||(n={value:null,rangeList:[t.range().setRows(0,0).setColumns(0,0)]});return n}},{key:"hasModifierKey",value:function(e){var t=e.ctrlKey,i=e.meta,n=e.shiftKey,o=e.altKey;return t||o||i||n}},{key:"shallowEqual",value:function(e,t){if(e===t)return!0;for(var i in e)if(!(i in t)||e[i]!==t[i])return!1;for(var n in t)if(!(n in e))return!1;return!0}},{key:"containsKeyCode",value:function(e,t){return!!(t&&Array.isArray(t)&&e)&&t.includes(e)}},{key:"hasDuplicates",value:function(e){return!!(e&&Array.isArray(e)&&e.length>0)&&new Set(e).size!==e.length}},{key:"isArrayEmpty",value:function(e){return!!(e&&Array.isArray(e)&&e.length<=0)}},{key:"isArrayMatching",value:function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var i=Object.assign([],e),n=Object.assign([],t);if(i.sort((function(e,t){return e-t})),n.sort((function(e,t){return e-t})),i.length!==n.length)return!1;for(var o=0;o<e.length;o++)if(i[o]!==n[o])return!1;return!0}return!1}},{key:"isPropertyInTheObject",value:function(e,t,i){return!!(e&&t&&i)&&e.some((function(e){if(e&&e[t])return e[t]===i}))}},{key:"getUsersPlaform",value:function(){var e=navigator.userAgent.toLowerCase();return n(i.exposed.MAC)?i.exposed.MAC:e.includes(i.exposed.WINDOWS)?i.exposed.WINDOWS:e.includes(i.exposed.LINUX)?i.exposed.LINUX:void 0}},{key:"getKeyByValue",value:function(e,t){if(e&&t)for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t)return i;return!1}},{key:"getColumnId",value:function(e,t){var i=e.find((function(e){return e._index===t}));return i?i.columnId:""}},{key:"getCheckboxTreetableAriaLabel",value:function(e){if(e)return"checkbox "+(!0===e.check?"checked":e.check?e.check:"unchecked")}},{key:"getFocusState",value:function(t){return t.getStateByKey(e.protected.FOCUSED)||null}},{key:"getTreeColumnIndex",value:function(t){return t.getStateByKey(e.treetable.treeColumnIndex)||null}},{key:"getCheckboxTreetableState",value:function(t){return t.getStateByKey(e.treetable.CHECKBOX_TREETABLE)||null}},{key:"isCheckboxTreetable",value:function(e){return!(!e||!e.isCheckboxTree)}},{key:"getCellInfo",value:function(e){var t=e.row,i=e.column,n=e.columnId,o=e.evt,r=e.node,a=o.ctrlKey,s=o.shiftKey,l=o.altKey,c=o.target,d=r.id,u=o.metaKey;return{isDisclosureTarget:c.hasAttribute("data-disclosure-id"),cellInfo:{id:d,node:r,row:t,column:i,columnId:n,meta:u,ctrlKey:a,shiftKey:s,altKey:l}}}}]),o}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("variableeditor_client/Plugins/PluginBase",[],{constructor:function(){},_initializePlugin:function(e,t){this._view=e,this.name=this.PLUGIN_NAME,this._view.updateTableFeaturesEnabled(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(301)],o=i.dj.d(n,(function(e){return e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8684),i(8685),i(8686)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/pct/resources/parallel/web/nls/profiles",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=Object.freeze({Type:"mf.zero.meta.Type",Info:"mf.zero.meta.Info",NamedElement:"mf.zero.meta.NamedElement",TypedElement:"mf.zero.meta.TypedElement",Class:"mf.zero.meta.Class",Extension:"mf.zero.meta.Extension",DataType:"mf.zero.meta.DataType",StructuredType:"mf.zero.meta.StructuredType",Enum:"mf.zero.meta.Enum",PrimitiveType:"mf.zero.meta.PrimitiveType",Property:"mf.zero.meta.Property",Package:"mf.zero.meta.Package",EnumLiteral:"mf.zero.meta.EnumLiteral",Operation:"mf.zero.meta.Operation",Argument:"mf.zero.meta.Argument",AttributeMap:"mf.zero.meta.AttributeMap",Attribute:"mf.zero.meta.Attribute",Model:"mf.zero.Model",ModelElement:"mf.zero.ModelElement",Boolean:"Boolean",Integer:"Integer",Integer8:"Integer8",Integer16:"Integer16",Integer64:"Integer64",UInteger8:"UInteger8",UInteger16:"UInteger16",UInteger64:"UInteger64",Real:"Real",UnlimitedNatural:"UnlimitedNatural",String:"String",StdString:"StdString",UUID:"UUID",DateTime:"DateTime",Object:"Object",JsonValue:"JsonValue",MxArray:"MxArray",StringToStringMap:"StringToStringMap"});e.default=t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{isInQAB:new e({type:"boolean",notInAction:!1,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{CONSUMER_TAGS:[{key:"CONSUMER_TAG.URL_MARKER",value:document.location.href}],service:null,queue:[],setUDCService:function(e){if(this.service=e,this.queue.length>0){var t=this;this.queue.forEach((function(e){t._createProbe(e.name,e.data)})),this.queue=[]}this._sendConsumerTags()},_sendConsumerTags:function(){this.CONSUMER_TAGS.forEach((function(e){this._createProbe(e.key,e.value)}),this)},_createProbe:function(e,t){var i=null;this.service&&(i=this.service.getProbe(e)),t?this.addData(e,t,i):this.addData(e,this.getTime(),i)},getTime:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()},addData:function(e,t,i){i?i.trace(t):this.service?this._createProbe(e,t):this.queue.push({name:e,data:t})},markStart:function(e){this._createProbe(e+"_Start")},markEnd:function(e){this._createProbe(e+"_End")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{enableForHiddenCode:function(){throw new Error("Unimplemented API: MW.rtc.view.hidden.AbstractHideAllCodeEnableDisable.enableForHiddenCode")},disableForHiddenCode:function(){throw new Error("Unimplemented API: MW.rtc.view.hidden.AbstractHideAllCodeEnableDisable.disableForHiddenCode")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(578),i(1863),i(523),i(1865),i(1866)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";var r={isLargeOpSymbol:function(e){return"symbol"===e.kind&&r._isLargeOp(e.symbolName)},isOpeningDelimiter:function(e){var t=r.symbolMap[e];return t&&t.delimiterType&&-1!==t.delimiterType.indexOf("open")},isClosingDelimiter:function(e){var t=r.symbolMap[e];return t&&t.delimiterType&&-1!==t.delimiterType.indexOf("close")},isSeparator:function(e){var t=r.symbolMap[e];return t&&t.delimiterType&&-1!==t.delimiterType.indexOf("separator")},hasXHeight:function(e){var t=r.getSymbol(e);return t&&t.hasXHeight},isDelimiter:function(e){var t=r.symbolMap[e];return t&&t.delimiterType},isAccent:function(e){var t=r.symbolMap[e||""];return t&&(t.accentHeight||t.accentStretchy)},isIdentifier:function(e){var t=r.symbolMap[e||""];return t&&t.isIdentifier},isOperator:function(e){var t=r.symbolMap[e||""];return t&&t.hasOwnProperty("spacing")},isStretchyOperatorByDefault:function(e){var t=r.symbolMap[e]||r.symbolMap[r.unicodeMap[e]];return t&&t.stretchyDefault},isStretchyAccent:function(e){var t=r.symbolMap[e];return t&&t.accentStretchy},lookupLargeOp:function(e,t){var i=e+(t?"display":"");return r.symbolMap[i]},ariaLabel:function(e){e=r.unicodeMap[e]||e;var t=r.symbolMap[e];return t&&t.ariaLabel?t.ariaLabel:e},notSymbols:{"=":"neq","<":"notlt",">":"notgt",exists:"notexists",leq:"notleq",geq:"notgeq",equiv:"notequiv",approx:"notapprox",cong:"notcong",sim:"notsim",simeq:"notsimeq",models:"notmodels",in:"notin",ni:"notni",succ:"notsucc",succeq:"notsucceq",prec:"notprec",preceq:"notpreceq",parallel:"notparallel",subset:"notsubset",supset:"notsupset",subseteq:"notsubseteq",supseteq:"notsupseteq"},lookupNotSymbol:function(e){"\\"===e.charAt(0)&&(e=e.slice(1));var t=this.notSymbols[e];return t||null},getSpacing:function(e){return r.symbolMap[e]&&r.symbolMap[e].spacing||void 0},getSymbol:function(e){return r.symbolMap[e]||r.symbolMap[r.unicodeMap[e]]},getSymbolName:function(e){return r.unicodeMap[e]||e},getCharForSymbolName:function(e){var t=r.getSymbol(e);return t?this.getCharForSymbol(t):e},getCharForSymbol:function(e){var i=e.glyph||e.unicode,n=t.fromCodePoint(i);return e.isCombiningChar&&(n="  "+n),n},serializeSymbol:function(e){var t=r.getSymbol(e);return t&&t.entity?o.replace(t.entity):r.getCharForSymbolName(e)},serializeToMatlab:function(e){var t=r.getSymbol(e);return t&&"string"==typeof t.matlab?i({code:t.matlab}):i({code:r.serializeSymbol(e),invalid:!0})},_isLargeOp:function(e){var t=r.symbolMap[e];return t&&t.largeOp},entities:o,initSymbolMap:function(){return{alpha:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:945,matlab:"alpha"},beta:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:946,matlab:"beta"},gamma:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:947,matlab:"gamma"},delta:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:948,matlab:"delta"},epsilon:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:1013,matlab:"epsilon"},zeta:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:950,matlab:"zeta"},eta:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:951,matlab:"eta"},theta:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:952,matlab:"theta"},iota:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:953,matlab:"iota"},kappa:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:954,matlab:"kappa"},lambda:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:955,matlab:"lambda"},mu:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:956,matlab:"mu"},nu:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:957,matlab:"nu"},xi:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:958,matlab:"xi"},omicron:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:959,matlab:"omicron"},pi:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:960,matlab:"pi"},rho:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:961,matlab:"rho"},sigma:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:963,matlab:"sigma"},tau:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:964,matlab:"tau"},upsilon:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:965,matlab:"upsilon"},phi:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:981,matlab:"phi"},chi:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:967,matlab:"chi"},psi:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:968,matlab:"psi"},omega:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:969,matlab:"omega"},varepsilon:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:949,matlab:"varepsilon"},varbeta:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:976,matlab:"varbeta"},vartheta:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:977,matlab:"vartheta"},varphi:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:966,matlab:"varphi"},varpi:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:982,matlab:"varpi"},varrho:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:1009,matlab:"varrho"},varsigma:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:987,matlab:"varsigma"},Alpha:{font:"symbol",isIdentifier:!0,unicode:913,matlab:"Alpha"},Beta:{font:"symbol",isIdentifier:!0,unicode:914,matlab:"Beta"},Gamma:{font:"symbol",isIdentifier:!0,unicode:915,matlab:"Gamma"},Delta:{font:"symbol",isIdentifier:!0,unicode:916,matlab:"Delta"},Epsilon:{font:"symbol",isIdentifier:!0,unicode:917,matlab:"Epsilon"},Zeta:{font:"symbol",isIdentifier:!0,unicode:918,matlab:"Zeta"},Eta:{font:"symbol",isIdentifier:!0,unicode:919,matlab:"Eta"},Theta:{font:"symbol",isIdentifier:!0,unicode:920,matlab:"Theta"},Iota:{font:"symbol",isIdentifier:!0,unicode:921,matlab:"Iota"},Kappa:{font:"symbol",isIdentifier:!0,unicode:922,matlab:"Kappa"},Lambda:{font:"symbol",isIdentifier:!0,unicode:923,matlab:"Lambda"},Mu:{font:"symbol",isIdentifier:!0,unicode:924,matlab:"Mu"},Nu:{font:"symbol",isIdentifier:!0,unicode:925,matlab:"Nu"},Xi:{font:"symbol",isIdentifier:!0,unicode:926,matlab:"Xi"},Omicron:{font:"symbol",isIdentifier:!0,unicode:927,matlab:"Omicron"},Pi:{font:"symbol",isIdentifier:!0,unicode:928,matlab:"Pi"},Rho:{font:"symbol",isIdentifier:!0,unicode:929,matlab:"Rho"},Sigma:{font:"symbol",isIdentifier:!0,unicode:931,matlab:"Sigma"},Tau:{font:"symbol",isIdentifier:!0,unicode:932,matlab:"Tau"},Upsilon:{font:"symbol",isIdentifier:!0,unicode:933,matlab:"Upsilon"},Phi:{font:"symbol",isIdentifier:!0,unicode:934,matlab:"Phi"},Chi:{font:"symbol",isIdentifier:!0,unicode:935,matlab:"Chi"},Psi:{font:"symbol",isIdentifier:!0,unicode:936,matlab:"Psi"},Omega:{font:"symbol",isIdentifier:!0,unicode:937,matlab:"Omega"},Aopf:{font:"symbol",isIdentifier:!0,unicode:120120,ariaLabel:"double-struck capital A"},Bopf:{font:"symbol",isIdentifier:!0,unicode:120121,ariaLabel:"double-struck capital B"},Copf:{font:"symbol",isIdentifier:!0,unicode:8450,matlab:"complexes",ariaLabel:"double-struck capital C"},Dopf:{font:"symbol",isIdentifier:!0,unicode:120123,ariaLabel:"double-struck capital D"},Eopf:{font:"symbol",isIdentifier:!0,unicode:120124,ariaLabel:"double-struck capital E"},Fopf:{font:"symbol",isIdentifier:!0,unicode:120125,ariaLabel:"double-struck capital F"},Gopf:{font:"symbol",isIdentifier:!0,unicode:120126,ariaLabel:"double-struck capital G"},Hopf:{font:"symbol",isIdentifier:!0,unicode:8461,ariaLabel:"double-struck capital H"},Iopf:{font:"symbol",isIdentifier:!0,unicode:120128,ariaLabel:"double-struck capital I"},Jopf:{font:"symbol",isIdentifier:!0,unicode:120129,ariaLabel:"double-struck capital J"},Kopf:{font:"symbol",isIdentifier:!0,unicode:120130,ariaLabel:"double-struck capital K"},Lopf:{font:"symbol",isIdentifier:!0,unicode:120131,ariaLabel:"double-struck capital L"},Mopf:{font:"symbol",isIdentifier:!0,unicode:120132,ariaLabel:"double-struck capital M"},Nopf:{font:"symbol",isIdentifier:!0,unicode:8469,ariaLabel:"double-struck capital N"},Oopf:{font:"symbol",isIdentifier:!0,unicode:120134,ariaLabel:"double-struck capital O"},Popf:{font:"symbol",isIdentifier:!0,unicode:8473,ariaLabel:"double-struck capital P"},Qopf:{font:"symbol",isIdentifier:!0,unicode:8474,matlab:"rationals",ariaLabel:"double-struck capital Q"},Ropf:{font:"symbol",isIdentifier:!0,unicode:8477,matlab:"reals",ariaLabel:"double-struck capital R"},Sopf:{font:"symbol",isIdentifier:!0,unicode:120138,ariaLabel:"double-struck capital S"},Topf:{font:"symbol",isIdentifier:!0,unicode:120139,ariaLabel:"double-struck capital T"},Uopf:{font:"symbol",isIdentifier:!0,unicode:120140,ariaLabel:"double-struck capital U"},Vopf:{font:"symbol",isIdentifier:!0,unicode:120141,ariaLabel:"double-struck capital V"},Wopf:{font:"symbol",isIdentifier:!0,unicode:120142,ariaLabel:"double-struck capital W"},Xopf:{font:"symbol",isIdentifier:!0,unicode:120143,ariaLabel:"double-struck capital X"},Yopf:{font:"symbol",isIdentifier:!0,unicode:120144,ariaLabel:"double-struck capital Y"},Zopf:{font:"symbol",isIdentifier:!0,unicode:8484,ariaLabel:"double-struck capital Z"},aopf:{font:"symbol",isIdentifier:!0,unicode:120146,ariaLabel:"double-struck a"},bopf:{font:"symbol",isIdentifier:!0,unicode:120147,ariaLabel:"double-struck b"},copf:{font:"symbol",isIdentifier:!0,unicode:120148,ariaLabel:"double-struck c"},dopf:{font:"symbol",isIdentifier:!0,unicode:120149,ariaLabel:"double-struck d"},eopf:{font:"symbol",isIdentifier:!0,unicode:120150,ariaLabel:"double-struck e"},fopf:{font:"symbol",isIdentifier:!0,unicode:120151,ariaLabel:"double-struck f"},gopf:{font:"symbol",isIdentifier:!0,unicode:120152,ariaLabel:"double-struck g"},hopf:{font:"symbol",isIdentifier:!0,unicode:120153,ariaLabel:"double-struck h"},iopf:{font:"symbol",isIdentifier:!0,unicode:120154,ariaLabel:"double-struck i"},jopf:{font:"symbol",isIdentifier:!0,unicode:120155,ariaLabel:"double-struck j"},kopf:{font:"symbol",isIdentifier:!0,unicode:120156,ariaLabel:"double-struck k"},lopf:{font:"symbol",isIdentifier:!0,unicode:120157,ariaLabel:"double-struck l"},mopf:{font:"symbol",isIdentifier:!0,unicode:120158,ariaLabel:"double-struck m"},nopf:{font:"symbol",isIdentifier:!0,unicode:120159,ariaLabel:"double-struck n"},oopf:{font:"symbol",isIdentifier:!0,unicode:120160,ariaLabel:"double-struck o"},popf:{font:"symbol",isIdentifier:!0,unicode:120161,ariaLabel:"double-struck p"},qopf:{font:"symbol",isIdentifier:!0,unicode:120162,ariaLabel:"double-struck q"},ropf:{font:"symbol",isIdentifier:!0,unicode:120163,ariaLabel:"double-struck r"},sopf:{font:"symbol",isIdentifier:!0,unicode:120164,ariaLabel:"double-struck s"},topf:{font:"symbol",isIdentifier:!0,unicode:120165,ariaLabel:"double-struck t"},uopf:{font:"symbol",isIdentifier:!0,unicode:120166,ariaLabel:"double-struck u"},vopf:{font:"symbol",isIdentifier:!0,unicode:120167,ariaLabel:"double-struck v"},wopf:{font:"symbol",isIdentifier:!0,unicode:120168,ariaLabel:"double-struck w"},xopf:{font:"symbol",isIdentifier:!0,unicode:120169,ariaLabel:"double-struck x"},yopf:{font:"symbol",isIdentifier:!0,unicode:120170,ariaLabel:"double-struck y"},zopf:{font:"symbol",isIdentifier:!0,unicode:120171,matlab:"integers",ariaLabel:"double-struck z"},ascr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:119990,ariaLabel:"script a"},bscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119991,ariaLabel:"script b"},cscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:119992,ariaLabel:"script c"},dscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119993,ariaLabel:"script d"},escr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:8495,ariaLabel:"script e"},fscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119995,ariaLabel:"script f"},gscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:8458,ariaLabel:"script g"},hscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119997,ariaLabel:"script h"},iscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119998,ariaLabel:"script i"},jscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119999,ariaLabel:"script j"},kscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:12e4,ariaLabel:"script k"},lscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:120001,ariaLabel:"script l"},mscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120002,ariaLabel:"script m"},nscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120003,ariaLabel:"script n"},oscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:8500,ariaLabel:"script o"},pscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120005,ariaLabel:"script p"},qscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120006,ariaLabel:"script q"},rscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120007,ariaLabel:"script r"},sscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120008,ariaLabel:"script s"},tscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:120009,ariaLabel:"script t"},uscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120010,ariaLabel:"script u"},vscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120011,ariaLabel:"script v"},wscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120012,ariaLabel:"script w"},xscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120013,ariaLabel:"script x"},yscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120014,ariaLabel:"script y"},zscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:120015,ariaLabel:"script z"},Ascr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119964,ariaLabel:"script A"},Bscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:8492,ariaLabel:"script B"},Cscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119966,ariaLabel:"script C"},Dscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119967,ariaLabel:"script D"},Escr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:8496,ariaLabel:"script E"},Fscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:8497,ariaLabel:"script F"},Gscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119970,ariaLabel:"script G"},Hscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:8459,ariaLabel:"script H"},Iscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:8464,ariaLabel:"script I"},Jscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119973,ariaLabel:"script J"},Kscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119974,ariaLabel:"script K"},Lscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:8466,ariaLabel:"script L"},Mscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:8499,ariaLabel:"script M"},Nscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119977,ariaLabel:"script N"},Oscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119978,ariaLabel:"script O"},Pscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119979,ariaLabel:"script P"},Qscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119980,ariaLabel:"script Q"},Rscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:8475,ariaLabel:"script R"},Sscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119982,ariaLabel:"script S"},Tscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119983,ariaLabel:"script T"},Uscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119984,ariaLabel:"script U"},Vscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119985,ariaLabel:"script V"},Wscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119986,ariaLabel:"script W"},Xscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119987,ariaLabel:"script X"},Yscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119988,ariaLabel:"script Y"},Zscr:{font:"symbol",fontStyle:"italic",isIdentifier:!0,unicode:119989,ariaLabel:"script Z"},afr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120094},bfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120095},cfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120096},dfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120097},efr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120098},ffr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120099},gfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120100},hfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120101},ifr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120102},jfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120103},kfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120104},lfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120105},mfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120106},nfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120107},ofr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120108},pfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120109},qfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120110},rfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120111},sfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120112},tfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120113},ufr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120114},vfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120115},wfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120116},xfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120117},yfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120118},zfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:120119},Afr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120068},Bfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120069},Cfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:8493},Dfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120071},Efr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120072},Ffr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120073},Gfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120074},Hfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:8460},Ifr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:8465},Im:{font:"symbol",fontStyle:"normal",unicode:8465},Jfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120077},Kfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120078},Lfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120079},Mfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120080},Nfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120081},Ofr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120082},Pfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120083},Qfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120084},Rfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:8476},Re:{font:"symbol",fontStyle:"normal",unicode:8476},Sfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120086},Tfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120087},Ufr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120088},Vfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120089},Wfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120090},Xfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120091},Yfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:120092},Zfr:{font:"symbol",fontStyle:"normal",isIdentifier:!0,unicode:8488},Kelvin:{font:"symbol",isIdentifier:!0,unicode:8490},infty:{font:"symbol",hasXHeight:!0,unicode:8734,matlab:"inf",ariaLabel:"infinity"},partial:{font:"symbol",unicode:8706,ariaLabel:"partial"},aleph:{font:"symbol",unicode:8501},downtack:{font:"symbol",unicode:8868},uptack:{font:"symbol",unicode:8869},angle:{font:"symbol",unicode:8736},ell:{font:"symbol",unicode:8467},hbar:{font:"symbol",unicode:8463},emptyset:{font:"symbol",unicode:8709,matlab:"zeros([0, 1], 'sym')"},exists:{font:"symbol",unicode:8707},notexists:{font:"symbol",unicode:8708},forall:{font:"symbol",unicode:8704},imath:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:305,matlab:"1i"},jmath:{font:"symbol",fontStyle:"italic",isIdentifier:!0,hasXHeight:!0,unicode:567,matlab:"1j"},i:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:305},j:{font:"symbol",fontStyle:"normal",isIdentifier:!0,hasXHeight:!0,unicode:567},wp:{font:"symbol",unicode:8472},nabla:{font:"symbol",unicode:8711},ordPeriod:{font:"symbol",glyph:46,entity:"&period;",ariaLabel:"point"},dollar:{font:"symbol",unicode:36},ampersand:{font:"symbol",unicode:38,matlab:"&"},percent:{font:"symbol",unicode:37},neg:{font:"symbol",unicode:172,matlab:"~"},macron:{font:"symbol",unicode:8254,alternateInputName:175,glyphTop:870,glyphBottom:720,accentDownShift:100,accentStretchy:!0,stretchy:!0,stretchyDefault:!0,width:500},macron_left:{font:"symbol",glyph:8254,width:500,glyphTop:870,glyphBottom:720,accentDownShift:100},macron_right:{font:"symbol",glyph:8254,width:500},macron_ex:{font:"symbol",glyph:8254,width:500},underscore:{font:"symbol",unicode:95,glyphTop:-75,glyphBottom:-125,accentStretchy:!0,stretchyDefault:!0},circumflex:{font:"stixsize1",unicode:710,alternateInputName:94,accentStretchy:!0,stretchyDefault:!1,glyphTop:770,glyphBottom:550,accentDownShift:-300,width:560,ariaLabel:"circumflex"},circumflexbig:{font:"stixsize2",glyph:710,glyphTop:780,glyphBottom:560,accentDownShift:-500,width:979},circumflexBig:{font:"stixsize3",glyph:710,glyphTop:780,glyphBottom:560,accentDownShift:-750,width:1460},circumflexbigg:{font:"stixsize4",glyph:710,glyphTop:800,glyphBottom:570,accentDownShift:-750,width:1886},circumflexBigg:{font:"stixsize5",glyph:710,glyphTop:820,glyphBottom:570,accentDownShift:120,width:2328},caron:{font:"symbol",unicode:711,accentHeight:.3},tildeAccent:{font:"symbol",unicode:126,spacing:n.BIN,accentHeight:.6},smallTildeAccent:{font:"symbol",unicode:732,spacing:n.BIN,accentHeight:.3},ss:{font:"symbol",unicode:223},O:{font:"symbol",unicode:216},o:{font:"symbol",unicode:248},L:{font:"symbol",unicode:321},l:{font:"symbol",unicode:322},OE:{font:"symbol",unicode:338},oe:{font:"symbol",unicode:339},AE:{font:"symbol",unicode:198},ae:{font:"symbol",unicode:230},AA:{font:"symbol",unicode:8491},aa:{font:"symbol",unicode:229},surd:{font:"symbol",unicode:8730},triangle:{font:"symbol",unicode:9653,entity:"&triangle;"},prime:{font:"symbol",unicode:8242,alternateInputName:39,supDownShift:.25},doubleprime:{font:"symbol",unicode:8243,supDownShift:.25},sum:{font:"extra",glyph:61520,largeOp:"sumdisplay",spacing:n.OP,width:1056,movableLimits:!0,entity:"&Sum;",unicodeSymbol:"∑"},sumdisplay:{font:"extra",glyph:61528,size:1.4,spacing:n.OP,width:1444},prod:{font:"extra",glyph:61521,largeOp:"proddisplay",spacing:n.OP,width:944,movableLimits:!0,entity:"&prod;",unicodeSymbol:"∏"},proddisplay:{font:"extra",glyph:61529,size:1.4,spacing:n.OP,width:1278},intop:{font:"extra",glyph:61522,size:1.11,largeOp:"intopdisplay",spacing:n.OP,width:609,subLeftShift:.2,supRightShift:.1,entity:"&Integral;",unicodeSymbol:"∫",ariaLabel:"integral"},intopdisplay:{font:"extra",glyph:61530,size:2.222,spacing:n.OP,width:943,subLeftShift:.4,supRightShift:.1},contourintop:{font:"extra",glyph:61512,size:1.11,largeOp:"contourintopdisplay",spacing:n.OP,width:609,subLeftShift:.2,supRightShift:.1,entity:"&ContourIntegral;",unicodeSymbol:"∮"},contourintopdisplay:{font:"extra",glyph:61513,size:2.222,spacing:n.OP,width:943,subLeftShift:.4,supRightShift:.1},fpartintop:{font:"extra",glyph:61567,size:1.11,largeOp:"fpartintopdisplay",spacing:n.OP,width:609,subLeftShift:.2,supRightShift:.1,entity:"&fpartint;",unicodeSymbol:"⨍"},fpartintopdisplay:{font:"extra",glyph:61568,size:2.222,spacing:n.OP,width:943,subLeftShift:.4,supRightShift:.1},bigcup:{font:"extra",glyph:61523,largeOp:"bigcupdisplay",spacing:n.OP,width:833,movableLimits:!0,entity:"&bigcup;",unicodeSymbol:"⋃"},bigcupdisplay:{font:"extra",glyph:61647,size:1.4,spacing:n.OP,width:1111},bigcap:{font:"extra",glyph:61524,largeOp:"bigcapdisplay",spacing:n.OP,width:833,movableLimits:!0,entity:"&bigcap;",unicodeSymbol:"⋂"},bigcapdisplay:{font:"extra",glyph:61648,size:1.4,spacing:n.OP,width:1111},bigsqcup:{font:"extra",glyph:61510,largeOp:"bigsqcupdisplay",spacing:n.OP,width:833,movableLimits:!0,entity:"&bigsqcup;",unicodeSymbol:"⋆"},bigsqcupdisplay:{font:"extra",glyph:61511,size:1.4,spacing:n.OP,width:1111},biguplus:{font:"extra",glyph:61525,largeOp:"bigcapdisplay",spacing:n.OP,width:833,movableLimits:!0,entity:"&biguplus;",unicodeSymbol:"⨄"},biguplusdisplay:{font:"extra",glyph:61651,size:1.4,spacing:n.OP,width:1111},bigwedge:{font:"extra",glyph:61526,largeOp:"bigwedgedisplay",spacing:n.OP,width:833,movableLimits:!0,entity:"&bigwedge;",unicodeSymbol:"⋀"},bigwedgedisplay:{font:"extra",glyph:61534,size:1.4,spacing:n.OP,width:1111},bigvee:{font:"extra",glyph:61527,largeOp:"bigveedisplay",spacing:n.OP,width:833,movableLimits:!0,entity:"&bigvee;",unicodeSymbol:"⋁"},bigveedisplay:{font:"extra",glyph:61535,size:1.4,spacing:n.OP,width:1111},bigodot:{font:"extra",glyph:61514,largeOp:"bigodotdisplay",spacing:n.OP,width:1111,movableLimits:!0,entity:"&bigodot;",unicodeSymbol:"⨀"},bigodotdisplay:{font:"extra",glyph:61515,size:1.4,spacing:n.OP,width:1511},bigoplus:{font:"extra",glyph:61516,largeOp:"bigoplusdisplay",spacing:n.OP,width:1111,movableLimits:!0,entity:"&bigoplus;",unicodeSymbol:"⨁"},bigoplusdisplay:{font:"extra",glyph:61517,size:1.4,spacing:n.OP,width:1511},bigotimes:{font:"extra",glyph:61518,largeOp:"bigotimesdisplay",spacing:n.OP,width:1111,movableLimits:!0,entity:"&bigotimes;",unicodeSymbol:"⨂"},bigotimesdisplay:{font:"extra",glyph:61519,size:1.4,spacing:n.OP,width:1511},"+":{font:"symbol",unicode:43,spacing:n.BIN,matlab:" + ",ariaLabel:"plus"},"-":{font:"symbol",unicode:8722,alternateInputName:45,spacing:n.BIN,entity:"-",matlab:" - ",ariaLabel:"minus"},pm:{font:"symbol",unicode:177,spacing:n.BIN,ariaLabel:"plusMinus"},mp:{font:"symbol",unicode:8723,spacing:n.BIN,ariaLabel:"minusPlus"},times:{font:"symbol",unicode:215,spacing:n.BIN,matlab:"*"},ast:{font:"symbol",unicode:8727,spacing:n.BIN,matlab:"*"},"*":{font:"symbol",glyph:8727,spacing:n.BIN,entity:"*",matlab:"*",ariaLabel:"times"},div:{font:"symbol",unicode:247,spacing:n.BIN,matlab:"/"},oplus:{font:"symbol",unicode:8853,spacing:n.BIN},ominus:{font:"symbol",unicode:8854,spacing:n.BIN},otimes:{font:"symbol",unicode:8855,spacing:n.BIN},oslash:{font:"symbol",unicode:8856,spacing:n.BIN},odot:{font:"symbol",unicode:8857,spacing:n.BIN},cup:{font:"symbol",unicode:8746,spacing:n.BIN},cap:{font:"symbol",unicode:8745,spacing:n.BIN},land:{font:"symbol",unicode:8743,spacing:n.BIN,matlab:"&"},lor:{font:"symbol",unicode:8744,spacing:n.BIN,matlab:"|"},amalg:{font:"symbol",unicode:10815,spacing:n.BIN},uplus:{font:"symbol",unicode:8846,spacing:n.BIN},bullet:{font:"symbol",unicode:8226,spacing:n.BIN},cdot:{font:"symbol",unicode:8901,spacing:n.BIN,matlab:"*"},middledot:{font:"symbol",unicode:183,spacing:n.BIN,matlab:"*"},circ:{font:"symbol",unicode:8728,spacing:n.BIN},dagger:{font:"symbol",unicode:8224,spacing:n.BIN},ddagger:{font:"symbol",unicode:8225,spacing:n.BIN},diamond:{font:"symbol",unicode:9671,spacing:n.BIN},setminus:{font:"symbol",unicode:8726,spacing:n.BIN},sqcup:{font:"symbol",unicode:8852,spacing:n.BIN},sqcap:{font:"symbol",unicode:8851,spacing:n.BIN},triangleleft:{font:"symbol",unicode:9667,spacing:n.BIN},triangleright:{font:"symbol",unicode:9657,spacing:n.BIN},bigtriangleup:{font:"symbol",unicode:9651,spacing:n.BIN},bigtriangledown:{font:"symbol",unicode:9661,spacing:n.BIN},bigcirc:{font:"symbol",unicode:9711,spacing:n.BIN},wr:{font:"symbol",unicode:8768,spacing:n.BIN},star:{font:"symbol",unicode:8902,spacing:n.BIN,matlab:"*"},"<":{font:"symbol",unicode:60,spacing:n.REL,relation:!0,matlab:" < ",ariaLabel:"less than"},"=":{font:"symbol",unicode:61,spacing:n.REL,relation:!0,matlab:" == ",ariaLabel:"equals"},"==":{font:"symbol",spacing:n.REL,relation:!0,matlab:" == "},">":{font:"symbol",unicode:62,spacing:n.REL,relation:!0,matlab:" > ",ariaLabel:"greater than"},":":{font:"symbol",unicode:58,spacing:n.REL},mid:{font:"symbol",glyph:124,delimiterType:"separator",stretchy:!0,stretchyDefault:!0,spacing:n.REL,entity:"&vert;"},leq:{font:"symbol",unicode:8804,spacing:n.REL,relation:!0,matlab:" <= ",ariaLabel:"less equals"},geq:{font:"symbol",unicode:8805,spacing:n.REL,relation:!0,matlab:" >= ",ariaLabel:"greater equals"},neq:{font:"symbol",unicode:8800,spacing:n.REL,relation:!0,matlab:" ~= ",ariaLabel:"not equals"},notleq:{font:"symbol",unicode:8816,spacing:n.REL,relation:!0},notgeq:{font:"symbol",unicode:8817,spacing:n.REL,relation:!0},notlt:{font:"symbol",unicode:8814,spacing:n.REL,relation:!0},notgt:{font:"symbol",unicode:8815,spacing:n.REL,relation:!0},equiv:{font:"symbol",unicode:8801,spacing:n.REL,relation:!0},notequiv:{font:"symbol",unicode:8802,spacing:n.REL,relation:!0},ll:{font:"symbol",unicode:8810,spacing:n.REL,relation:!0},gg:{font:"symbol",unicode:8811,spacing:n.REL,relation:!0},triangleq:{font:"symbol",unicode:8796,spacing:n.REL,relation:!0},doteq:{font:"symbol",unicode:8784,spacing:n.REL,relation:!0},approx:{font:"symbol",unicode:8776,spacing:n.REL,relation:!0},notapprox:{font:"symbol",unicode:8777,spacing:n.REL,relation:!0},cong:{font:"symbol",unicode:8773,spacing:n.REL,relation:!0},notcong:{font:"symbol",unicode:8775,spacing:n.REL,relation:!0},sim:{font:"symbol",unicode:8764,spacing:n.REL,relation:!0,accentHeight:.6,matlab:"~"},widetilde:{font:"extra",unicode:65374,spacing:n.REL,relation:!0,accentHeight:e("ff")>56?.7:.5},notsim:{font:"symbol",unicode:8769,spacing:n.REL,relation:!0},asympeq:{font:"symbol",unicode:8781,spacing:n.REL,relation:!0},simeq:{font:"symbol",unicode:8771,spacing:n.REL,relation:!0},notsimeq:{font:"symbol",unicode:8772,spacing:n.REL,relation:!0},bowtie:{font:"symbol",unicode:8904,spacing:n.REL,relation:!0},models:{font:"symbol",unicode:8871,spacing:n.REL,relation:!0},notmodels:{font:"symbol",unicode:8877,spacing:n.REL,relation:!0},in:{font:"symbol",unicode:8712,spacing:n.REL,relation:!0},notin:{font:"symbol",unicode:8713,spacing:n.REL,relation:!0},ni:{font:"symbol",unicode:8715,spacing:n.REL,relation:!0},notni:{font:"symbol",unicode:8716,spacing:n.REL,relation:!0},succ:{font:"symbol",unicode:8827,spacing:n.REL,relation:!0},notsucc:{font:"symbol",unicode:8833,spacing:n.REL,relation:!0},succeq:{font:"symbol",unicode:8829,spacing:n.REL,relation:!0},notsucceq:{font:"symbol",unicode:8929,spacing:n.REL,relation:!0},prec:{font:"symbol",unicode:8826,spacing:n.REL,relation:!0},notprec:{font:"symbol",unicode:8832,spacing:n.REL,relation:!0},preceq:{font:"symbol",unicode:8828,spacing:n.REL,relation:!0},notpreceq:{font:"symbol",unicode:8928,spacing:n.REL,relation:!0},dashv:{font:"symbol",unicode:8867,spacing:n.REL,relation:!0},vdash:{font:"symbol",unicode:8866,spacing:n.REL,relation:!0},parallel:{font:"symbol",unicode:8741,spacing:n.REL,relation:!0},notparallel:{font:"symbol",unicode:8742,spacing:n.REL,relation:!0},perp:{font:"symbol",glyph:8869,spacing:n.REL,relation:!0,entity:"&perp;"},propto:{font:"symbol",unicode:8733,spacing:n.REL,relation:!0},sqsubseteq:{font:"symbol",unicode:8849,spacing:n.REL,relation:!0},sqsupseteq:{font:"symbol",unicode:8850,spacing:n.REL,relation:!0},subset:{font:"symbol",unicode:8834,spacing:n.REL,relation:!0},supset:{font:"symbol",unicode:8835,spacing:n.REL,relation:!0},notsubset:{font:"symbol",unicode:8836,spacing:n.REL,relation:!0},notsupset:{font:"symbol",unicode:8837,spacing:n.REL,relation:!0},subseteq:{font:"symbol",unicode:8838,spacing:n.REL,relation:!0},supseteq:{font:"symbol",unicode:8839,spacing:n.REL,relation:!0},notsubseteq:{font:"symbol",unicode:8840,spacing:n.REL,relation:!0},notsupseteq:{font:"symbol",unicode:8841,spacing:n.REL,relation:!0},combiningSlash:{font:"symbol",unicode:824,spacing:n.REL,relation:!0},therefore:{font:"symbol",unicode:8756,spacing:n.REL,relation:!0},verticalbar:{font:"extra1",unicode:124,glyph:61615,delimiterType:"separator",stretchy:!0,stretchyDefault:!0,width:333,entity:"&vert;",unicodeSymbol:"|"},verticalbartp:{font:"extra",glyph:61615,size:.6,width:333},verticalbarbt:{font:"extra",glyph:61615,size:.58},verticalbarex:{font:"extra",glyph:61615,size:.58},dblverticalbar:{font:"extra1",glyph:61612,delimiterType:"separator",stretchy:!0,stretchyDefault:!0,width:578,entity:"&Vert;",unicodeSymbol:"‖"},dblverticalbartp:{font:"extra",glyph:61616,size:.58,width:556},dblverticalbarbt:{font:"extra",glyph:61616,size:.6},dblverticalbarex:{font:"extra",glyph:61616,size:.58},leftarrow:{font:"symbol",unicode:8592,spacing:n.REL,accentHeight:.85,accentStretchy:!0,stretchyDefault:!0},leftarrow_left:{font:"stixvariants",glyph:8592,spacing:n.REL,accentHeight:.85,width:415},leftarrow_right:{font:"symbol",glyph:9135,spacing:n.REL,width:315},leftarrow_ex:{font:"symbol",glyph:9135,spacing:n.REL,width:315},rightarrow:{font:"symbol",unicode:8594,spacing:n.REL,accentHeight:.85,accentStretchy:!0,stretchyDefault:!0,width:926},rightarrow_left:{font:"symbol",glyph:9135,spacing:n.REL,accentHeight:.85,width:315},rightarrow_right:{font:"stixvariants",glyph:8594,spacing:n.REL,width:415},rightarrow_ex:{font:"symbol",glyph:9135,spacing:n.REL,width:315},leftrightarrow:{font:"symbol",unicode:8596,spacing:n.REL,accentHeight:.85,accentStretchy:!0,stretchyDefault:!0},leftrightarrow_left:{font:"stixvariants",glyph:8592,spacing:n.REL,accentHeight:.85,width:415},leftrightarrow_right:{font:"stixvariants",glyph:8594,spacing:n.REL,width:415},leftrightarrow_ex:{font:"symbol",glyph:9135,spacing:n.REL,width:315},longleftarrow:{font:"symbol",unicode:10229,spacing:n.REL,accentHeight:.85},longrightarrow:{font:"symbol",unicode:10230,spacing:n.REL,accentHeight:.85},longleftrightarrow:{font:"symbol",unicode:10231,spacing:n.REL,accentHeight:.85},Leftarrow:{font:"symbol",unicode:8656,spacing:n.REL,accentHeight:.85},Rightarrow:{font:"symbol",unicode:8658,spacing:n.REL,accentHeight:.85},Leftrightarrow:{font:"symbol",unicode:8660,spacing:n.REL,accentHeight:.85},Longleftarrow:{font:"symbol",unicode:10232,spacing:n.REL,accentHeight:.85},Longrightarrow:{font:"symbol",unicode:10233,spacing:n.REL,accentHeight:.85},Longleftrightarrow:{font:"symbol",unicode:10234,spacing:n.REL,accentHeight:.85},uparrow:{font:"symbol",unicode:8593,spacing:n.REL},downarrow:{font:"symbol",unicode:8595,spacing:n.REL},updownarrow:{font:"symbol",unicode:8597,spacing:n.REL},nwarrow:{font:"symbol",unicode:8598,spacing:n.REL},nearrow:{font:"symbol",unicode:8599,spacing:n.REL},searrow:{font:"symbol",unicode:8600,spacing:n.REL},swarrow:{font:"symbol",unicode:8601,spacing:n.REL},leadsto:{font:"symbol",unicode:8605,spacing:n.REL},mapsto:{font:"symbol",unicode:8614,spacing:n.REL},longmapsto:{font:"symbol",unicode:10236,spacing:n.REL},hookleftarrow:{font:"symbol",unicode:8617,spacing:n.REL,accentHeight:.85},hookrightarrow:{font:"symbol",unicode:8618,spacing:n.REL,accentHeight:.85},crarr:{font:"symbol",unicode:8629,spacing:n.REL},leftharpoonup:{font:"symbol",unicode:8636,spacing:n.REL,accentHeight:.85},leftharpoondown:{font:"symbol",unicode:8637,spacing:n.REL,accentHeight:.85},rightharpoonup:{font:"symbol",unicode:8640,spacing:n.REL,accentHeight:.85},rightharpoondown:{font:"symbol",unicode:8641,spacing:n.REL,accentHeight:.85},rightleftharpoons:{font:"symbol",unicode:8652,spacing:n.REL,accentHeight:.85},Uparrow:{font:"symbol",unicode:8657,spacing:n.REL},Downarrow:{font:"symbol",unicode:8659,spacing:n.REL},Updownarrow:{font:"symbol",unicode:8661,spacing:n.REL},parenleft:{font:"extra1",unicode:40,delimiterType:"open",stretchy:!0,stretchyDefault:!0,spacing:n.OPEN,matlab:"(",ariaLabel:"leftParenthesis"},parenleftbig:{font:"extra2",glyph:40,size:1.2,spacing:n.OPEN,width:458},parenleftBig:{font:"extra3",glyph:40,size:1.8,spacing:n.OPEN,width:597},parenleftbigg:{font:"extra4",glyph:40,size:2.4,spacing:n.OPEN,width:736},parenleftBigg:{font:"extra5",glyph:40,size:3,spacing:n.OPEN,width:792},parenlefttp:{font:"extra",glyph:61488,size:1.8,xOffset:291,width:875},parenleftbt:{font:"extra",glyph:61504,size:1.8},parenleftex:{font:"extra",glyph:61506,size:.58},parenright:{font:"extra1",unicode:41,delimiterType:"close",stretchy:!0,stretchyDefault:!0,spacing:n.CLOSE,matlab:")",ariaLabel:"rightParenthesis"},parenrightbig:{font:"extra2",glyph:41,size:1.2,spacing:n.CLOSE,width:458},parenrightBig:{font:"extra3",glyph:41,size:1.8,spacing:n.CLOSE,width:597},parenrightbigg:{font:"extra4",glyph:41,size:2.4,spacing:n.CLOSE,width:736},parenrightBigg:{font:"extra5",glyph:41,size:3,spacing:n.CLOSE,width:792},parenrighttp:{font:"extra",glyph:61489,size:1.8,xOffset:1095,width:875},parenrightbt:{font:"extra",glyph:61505,size:1.8},parenrightex:{font:"extra",glyph:61507,size:.58},bracketleft:{font:"extra1",unicode:91,delimiterType:"open",stretchy:!0,stretchyDefault:!0,spacing:n.OPEN},bracketleftbig:{font:"extra2",glyph:91,size:1.2,spacing:n.OPEN,width:417},bracketleftBig:{font:"extra3",glyph:91,size:1.8,spacing:n.OPEN,width:472},bracketleftbigg:{font:"extra4",glyph:91,size:2.4,spacing:n.OPEN,width:528},bracketleftBigg:{font:"extra5",glyph:91,size:3,spacing:n.OPEN,width:583},bracketlefttp:{font:"extra",glyph:61490,size:1.8,width:667},bracketleftbt:{font:"extra",glyph:61492,size:1.8},bracketleftex:{font:"extra",glyph:61494,size:.58},bracketright:{font:"extra1",unicode:93,delimiterType:"close",stretchy:!0,stretchyDefault:!0,spacing:n.CLOSE},bracketrightbig:{font:"extra2",glyph:93,size:1.2,spacing:n.CLOSE,width:417},bracketrightBig:{font:"extra3",glyph:93,size:1.8,spacing:n.CLOSE,width:472},bracketrightbigg:{font:"extra4",glyph:93,size:2.4,spacing:n.CLOSE,width:528},bracketrightBigg:{font:"extra5",glyph:93,size:3,spacing:n.CLOSE,width:583},bracketrighttp:{font:"extra",glyph:61491,size:1.8,width:667},bracketrightbt:{font:"extra",glyph:61493,size:1.8},bracketrightex:{font:"extra",glyph:61495,size:.58},whitesquarebracketleft:{font:"extra1",unicode:10214,delimiterType:"open",stretchy:!0,stretchyDefault:!0,spacing:n.OPEN},whitesquarebracketleftbig:{font:"extra2",glyph:10214,size:1.2,spacing:n.OPEN,width:416},whitesquarebracketleftBig:{font:"extra3",glyph:10214,size:1.8,spacing:n.OPEN,width:471},whitesquarebracketleftbigg:{font:"extra4",glyph:10214,size:2.4,spacing:n.OPEN,width:527},whitesquarebracketleftBigg:{font:"extra5",glyph:10214,size:3,spacing:n.OPEN,width:582},whitesquarebracketlefttp:{font:"extra",glyph:61482,size:1.8,width:666},whitesquarebracketleftbt:{font:"extra",glyph:61484,size:1.8},whitesquarebracketleftex:{font:"extra",glyph:61486,size:.58},whitesquarebracketright:{font:"extra1",unicode:10215,delimiterType:"close",stretchy:!0,stretchyDefault:!0,spacing:n.CLOSE},whitesquarebracketrightbig:{font:"extra2",glyph:10215,size:1.2,spacing:n.CLOSE,width:416},whitesquarebracketrightBig:{font:"extra3",glyph:10215,size:1.8,spacing:n.CLOSE,width:471},whitesquarebracketrightbigg:{font:"extra4",glyph:10215,size:2.4,spacing:n.CLOSE,width:527},whitesquarebracketrightBigg:{font:"extra5",glyph:10215,size:3,spacing:n.CLOSE,width:582},whitesquarebracketrighttp:{font:"extra",glyph:61483,size:1.8,width:666},whitesquarebracketrightbt:{font:"extra",glyph:61485,size:1.8},whitesquarebracketrightex:{font:"extra",glyph:61487,size:.58},braceleft:{font:"extra1",unicode:123,delimiterType:"open",stretchy:!0,stretchyDefault:!0,spacing:n.OPEN,width:500},braceleftbig:{font:"extra2",glyph:123,size:1.2,spacing:n.OPEN,width:583},braceleftBig:{font:"extra3",glyph:123,size:1.8,spacing:n.OPEN,width:667},braceleftbigg:{font:"extra4",glyph:123,size:2.4,spacing:n.OPEN,width:750},braceleftBigg:{font:"extra5",glyph:123,size:3,spacing:n.OPEN,width:806},bracelefttp:{font:"extra",glyph:61496,size:.9,xOffset:555,width:889},braceleftbt:{font:"extra",glyph:61498,size:.9},braceleftmid:{font:"extra",glyph:61500,size:1.8},braceleftex:{font:"extra",glyph:61502,size:.38},braceright:{font:"extra1",unicode:125,delimiterType:"close",stretchy:!0,stretchyDefault:!0,spacing:n.CLOSE,width:500},bracerightbig:{font:"extra2",glyph:125,size:1.2,spacing:n.CLOSE,width:583},bracerightBig:{font:"extra3",glyph:125,size:1.8,spacing:n.CLOSE,width:667},bracerightbigg:{font:"extra4",glyph:125,size:2.4,spacing:n.CLOSE,width:750},bracerightBigg:{font:"extra5",glyph:125,size:3,spacing:n.CLOSE,width:806},bracerighttp:{font:"extra",glyph:61497,size:.9,xOffset:555,width:889},bracerightbt:{font:"extra",glyph:61499,size:.9},bracerightmid:{font:"extra",glyph:61501,size:1.8},bracerightex:{font:"extra",glyph:61502,size:.38},overbrace:{font:"stixsize1",unicode:9182,glyphTop:140,glyphBottom:-90,accentDownShift:-950,accentStretchy:!0,stretchyDefault:!0,width:926},overbracebig:{font:"stixsize2",glyph:9182,glyphTop:150,glyphBottom:-80,accentDownShift:-1200,width:1460},overbraceBig:{font:"stixsize3",glyph:9182,glyphTop:160,glyphBottom:-90,accentDownShift:-1380,width:1886},overbracebigg:{font:"stixsize4",glyph:9182,glyphTop:180,glyphBottom:-90,accentDownShift:-1350,width:2328},overbraceBigg:{font:"stixsize5",glyph:9182,glyphTop:190,glyphBottom:-90,accentDownShift:e("chrome")?-550:-600,width:3238},overbrace_left:{font:"stixsize0",glyph:57659,glyphTop:1220,glyphBottom:510,accentDownShift:280,width:897},overbrace_right:{font:"stixsize0",glyph:57660,width:897},overbrace_mid:{font:"stixsize0",glyph:57664,width:1844},overbrace_ex:{font:"stixsize0",glyph:57674,width:633},underbrace:{font:"stixsize1",unicode:9183,glyphTop:790,glyphBottom:565,accentDownShift:-250,accentStretchy:!0,stretchyDefault:!0,width:926},underbracebig:{font:"stixsize2",glyph:9183,glyphTop:800,glyphBottom:570,accentDownShift:-480,width:1460},underbraceBig:{font:"stixsize3",glyph:9183,glyphTop:820,glyphBottom:570,accentDownShift:-680,width:1886},underbracebigg:{font:"stixsize4",glyph:9183,glyphTop:840,glyphBottom:570,accentDownShift:-650,width:2328},underbraceBigg:{font:"stixsize5",glyph:9183,glyphTop:850,glyphBottom:570,accentDownShift:e("chrome")?155:120,width:3238},underbrace_left:{font:"stixsize0",glyph:57661,glyphTop:180,glyphBottom:-530,accentDownShift:-700,width:897},underbrace_right:{font:"stixsize0",glyph:57662,width:897},underbrace_mid:{font:"stixsize0",glyph:57665,width:1844},underbrace_ex:{font:"stixsize0",glyph:57675,width:633},floorleft:{font:"extra1",glyph:65,delimiterType:"open",stretchy:!0,stretchyDefault:!0,spacing:n.OPEN,width:444,alternateInputName:8970,entity:"&lfloor;",unicodeSymbol:"⌊"},floorleftbig:{font:"extra2",glyph:65,size:1.2,spacing:n.OPEN,width:472},floorleftBig:{font:"extra3",glyph:65,size:1.8,spacing:n.OPEN,width:528},floorleftbigg:{font:"extra4",glyph:65,size:2.4,spacing:n.OPEN,width:583},floorleftBigg:{font:"extra5",glyph:65,size:3,spacing:n.OPEN,width:639},floorlefttp:{font:"extra",glyph:61494,size:.6,width:667},floorleftbt:{font:"extra",glyph:61492,size:1.8},floorleftex:{font:"extra",glyph:61494,size:.58},floorright:{font:"extra1",glyph:66,delimiterType:"close",stretchy:!0,stretchyDefault:!0,spacing:n.CLOSE,width:444,alternateInputName:8971,entity:"&rfloor;",unicodeSymbol:"⌋"},floorrightbig:{font:"extra2",glyph:66,size:1.2,spacing:n.CLOSE,width:472},floorrightBig:{font:"extra3",glyph:66,size:1.8,spacing:n.CLOSE,width:528},floorrightbigg:{font:"extra4",glyph:66,size:2.4,spacing:n.CLOSE,width:583},floorrightBigg:{font:"extra5",glyph:66,size:3,spacing:n.CLOSE,width:639},floorrighttp:{font:"extra",glyph:61495,size:.6,width:667},floorrightbt:{font:"extra",glyph:61493,size:1.8},floorrightex:{font:"extra",glyph:61495,size:.58},ceilleft:{font:"extra1",glyph:67,delimiterType:"open",stretchy:!0,stretchyDefault:!0,spacing:n.OPEN,width:444,alternateInputName:8968,entity:"&lceil;",unicodeSymbol:"⌈"},ceilleftbig:{font:"extra2",glyph:67,size:1.2,spacing:n.OPEN,width:472},ceilleftBig:{font:"extra3",glyph:67,size:1.8,spacing:n.OPEN,width:528},ceilleftbigg:{font:"extra4",glyph:67,size:2.4,spacing:n.OPEN,width:583},ceilleftBigg:{font:"extra5",glyph:67,size:3,spacing:n.OPEN,width:639},ceillefttp:{font:"extra",glyph:61490,size:1.8,width:667},ceilleftbt:{font:"extra",glyph:61494,size:.6},ceilleftex:{font:"extra",glyph:61494,size:.58},ceilright:{font:"extra1",glyph:68,delimiterType:"close",stretchy:!0,stretchyDefault:!0,spacing:n.CLOSE,width:444,alternateInputName:8969,entity:"&rceil;",unicodeSymbol:"⌉"},ceilrightbig:{font:"extra2",glyph:68,size:1.2,spacing:n.CLOSE,width:472},ceilrightBig:{font:"extra3",glyph:68,size:1.8,spacing:n.CLOSE,width:528},ceilrightbigg:{font:"extra4",glyph:68,size:2.4,spacing:n.CLOSE,width:583},ceilrightBigg:{font:"extra5",glyph:68,size:3,spacing:n.CLOSE,width:639},ceilrighttp:{font:"extra",glyph:61491,size:1.8,width:667},ceilrightbt:{font:"extra",glyph:61495,size:.6},ceilrightex:{font:"extra",glyph:61495,size:.58},anglebracketleft:{font:"extra1",glyph:69,delimiterType:"open",stretchy:!0,stretchyDefault:!0,spacing:n.OPEN,width:389,alternateInputName:9001,entity:"&LeftAngleBracket;",unicodeSymbol:"〈"},anglebracketleftbig:{font:"extra2",glyph:69,size:1.2,spacing:n.OPEN,width:472},anglebracketleftBig:{font:"extra3",glyph:69,size:1.8,spacing:n.OPEN,width:611},anglebracketleftbigg:{font:"extra4",glyph:69,size:2.4,spacing:n.OPEN,width:750},anglebracketleftBigg:{font:"extra5",glyph:69,size:3,spacing:n.OPEN,width:806},anglebracketright:{font:"extra1",glyph:70,delimiterType:"close",stretchy:!0,stretchyDefault:!0,spacing:n.CLOSE,width:389,alternateInputName:9002,entity:"&RightAngleBracket;",unicodeSymbol:"〉"},anglebracketrightbig:{font:"extra2",glyph:70,size:1.2,spacing:n.CLOSE,width:472},anglebracketrightBig:{font:"extra3",glyph:70,size:1.8,spacing:n.CLOSE,width:611},anglebracketrightbigg:{font:"extra4",glyph:70,size:2.4,spacing:n.CLOSE,width:750},anglebracketrightBigg:{font:"extra5",glyph:70,size:3,spacing:n.CLOSE,width:806},slash:{font:"extra1",unicode:47,stretchy:!0,stretchyDefault:!1,width:500,matlab:"/"},slashbig:{font:"extra2",glyph:47,size:1.2,width:578},slashBig:{font:"extra3",glyph:47,size:1.8,width:811},slashbigg:{font:"extra4",glyph:47,size:2.4,width:1044},slashBigg:{font:"extra5",glyph:47,size:3,width:1278},backslash:{font:"extra1",glyph:92,alternateInputName:92,stretchy:!0,stretchyDefault:!1,unicodeSymbol:"\\"},backslashbig:{font:"extra2",glyph:92,size:1.2,width:578},backslashBig:{font:"extra3",glyph:92,size:1.8,width:811},backslashbigg:{font:"extra4",glyph:92,size:2.4,width:1044},backslashBigg:{font:"extra5",glyph:92,size:3,width:1278},"!":{font:"symbol",unicode:33,spacing:n.CLOSE},"?":{font:"symbol",unicode:63,spacing:n.CLOSE},degree:{font:"symbol",unicode:176,spacing:n.CLOSE},colonPunct:{font:"symbol",glyph:58,delimiterType:"separator",spacing:n.PUNCT,entity:":"},",":{font:"symbol",unicode:44,delimiterType:"separator",spacing:n.PUNCT,matlab:", "},";":{font:"symbol",unicode:59,delimiterType:"separator",spacing:n.PUNCT},ldotp:{font:"symbol",unicode:46,spacing:n.PUNCT},cdotp:{font:"symbol",glyph:8901,spacing:n.PUNCT,entity:"&cdot;"},dotabove:{font:"text",unicode:729,accentHeight:.3},diaresis:{font:"text",unicode:168,accentHeight:.3},tripledot:{font:"text",unicode:8411,accentHeight:.3,isCombiningChar:!0,entity:"&TripleDot;"},dotdot:{font:"text",unicode:8412,accentHeight:.3,isCombiningChar:!0,entity:"&DotDot;"},breve:{font:"text",unicode:728,accentHeight:.3},grave:{font:"text",unicode:96,accentHeight:.3},acute:{font:"text",unicode:180,accentHeight:.3},ldots:{font:"symbol",unicode:8230,spacing:n.INNER},cdots:{font:"symbol",unicode:8943,spacing:n.INNER},vdots:{font:"symbol",unicode:8942,spacing:n.INNER},ddots:{font:"symbol",unicode:8945,spacing:n.INNER},radical:{font:"extra1",glyph:71,size:1,width:833,entity:"&Sqrt;",unicodeSymbol:"√"},radicalbig:{font:"extra2",glyph:71,size:1.2,width:1e3},radicalBig:{font:"extra3",glyph:71,size:1.8,width:1e3},radicalbigg:{font:"extra4",glyph:71,size:2.4,width:1e3},radicalBigg:{font:"extra5",glyph:71,size:3,width:1e3},radicaltp:{font:"extra",glyph:61558,yOffset:100,size:.6,xOffset:702,width:1056},radicalbt:{font:"extra",glyph:61556,size:1.8},radicalex:{font:"extra",glyph:61557,size:.6},imaginaryi:{font:"symbol",fontStyle:"normal",glyph:105,entity:"i",matlab:"1i"},exponentiale:{font:"symbol",fontStyle:"normal",glyph:101,entity:"e",matlab:"exp(1)"},InvisibleTimes:{font:"symbol",unicode:8201,spacing:n.ORD,matlab:"*"},InvisibleComma:{font:"symbol",glyph:8201,spacing:n.ORD,matlab:""},ZeroWidthSpace:{font:"symbol",unicode:8203,matlab:"",ariaLabel:""}}}},a=r.initSymbolMap(),s={};for(var l in r.symbolMap=a,a)if(a.hasOwnProperty(l)){var c=a[l];c.unicode&&(s[t.fromCodePoint(c.unicode)]=l),c.alternateInputName&&(s[t.fromCodePoint(c.alternateInputName)]=l)}return r.unicodeMap=s,r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(266)],o=i.dj.d(n,(function(e,t){return e(t,{_isReversed:!1,_fileEndSelected:!1,constructor:function(e,t,i,n){this._isReversed=i,this._fileEndSelected=n},isReversed:function(){return this._isReversed},fileEndSelected:function(){return this._fileEndSelected},isEqualTo:function(e){return this.inherited(arguments)&&this._isReversed===e._isReversed&&this._fileEndSelected===e._fileEndSelected}})}),e,t),e.exports=o},function(e,t,i){e.exports={CELLSCRIPTWRAPPER:"cellscriptwrapper",RELATEDFILES:"relatedfiles",REMARK:"remark",CONTEXT:"context",PROCEDURE:"procedure",STEP:"step",TITLE:"title",ANCHOR:"anchor",PARA:"para",PROGRAMLISTING:"programlisting",ORDEREDLIST:"orderedlist",ITEMIZEDLIST:"itemizedlist",LISTITEM:"listitem",IMAGEDATA:"imagedata",IMAGEOBJECT:"imageobject",MEDIAOBJECT:"mediaobject",INLINEMEDIAOBJECT:"inlinemediaobject",INFORMALFIGURE:"informalfigure",GUIICON:"guiicon",INFORMALEQUATION:"informalequation",INLINEEQUATION:"inlineequation",LINK:"link",TYPE:"type",TOKEN:"token",FILE:"file",FILENAME:"filename",PRODUCTNUMBER:"productnumber",LITERAL:"literal",EMPHASIS:"emphasis",ROLE:"role",LANGUAGE:"language",COLORSCHEME:"colorscheme",XMLID:"xml:id",ID:"id",FILEREF:"fileref",XLINK_HREF:"xlink:href",XLINK_ROLE:"xlink:role",DISPLAYEQUATION_ROLE:"displayequation",WIDTH:"width",DEPTH:"depth",SHORTDESC:"shortdesc",FIRST_TITLE:"firstTitle",INTERNAL_ANCHOR_PREFIX:"mw_rtc_"}},function(e,t,i){var n,o;n=[i(203),i(249),i(260),i(577),i(663)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e(o,{type:t.NUMBER_OF_LINES_CHANGED,primitiveProperties:["direction"],constructor:function(e,t,i){this.direction=i},getMutation:function(){return n.createFromEvent(this,this._getMutationType())},_getMutationType:function(){return this.direction>0?n.MUTATION_TYPE.INSERTION:this.direction<0?n.MUTATION_TYPE.DELETION:n.MUTATION_TYPE.INPLACE},getUndoEvent:function(){return new r(this.startLine,this.endLine,-this.direction)}});return{create:function(e,n,o){return i.assertValidLines(e,n,t.NUMBER_OF_LINES_CHANGED),new r(e,n,o)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(284)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){},_BackgroundColor:function(e){this.widget.set("backgroundColor",t.toJSRGB(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return{isOutOfRange:function(e,t,i,n){if(n||(n=0),"number"!=typeof e||"number"!=typeof t||"number"!=typeof i)throw new Error("Error with isAngleOutOfRange: isAngleOutOfRange expects Numeric Data as input parameters.");return t-=n,i+=n,this.toPositiveAngle(e-t)>this.toPositiveAngle(i-t)},isCloserToUpperLimit:function(e,t,i){if("number"!=typeof e||"number"!=typeof t||"number"!=typeof i)throw new Error("Error with isAngleOutOfRange: isAngleOutOfRange expects Numeric Data as input parameters.");t=this.toPositiveAngle(t),i=this.toPositiveAngle(i),e=this.toPositiveAngle(e);var n=Math.min(Math.abs(e-t),Math.abs(e-(t+360)));return Math.min(Math.abs(e-i),Math.abs(e-(i+360)))<n},getSlope:function(e,t,i,n){if(n||(n=0),"number"!=typeof e||"number"!=typeof t||"object"!=typeof i)throw new Error("Error with getSlope: getSlope expects Numeric Data as input parameters.");var o=i.clientX-e,r=i.clientY-t,a=this.toDegrees(Math.atan2(r,o))+225+n;return this.toPositiveAngle(a)},toPositiveAngle:function(e){if("number"!=typeof e)throw new Error("Error with toPositiveAngle: toPositiveAngle expects Numeric Data as input parameters.");for(var t=e;t>360;)t-=360;for(;t<0;)t+=360;return t},toDegrees:function(e){if("number"!=typeof e)throw new Error("Error with toDegrees: toDegrees expects Numeric Data as input parameters.");return 180*e/Math.PI},toRadians:function(e){if("number"!=typeof e)throw new Error("Error with ToRadians: ToRadians expects Numeric Data as input parameters.");return e*Math.PI/180}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={},t=!1;["sort","slice","reduce","map","forEach","fill"].forEach((function(i){Float32Array.prototype[i]||(e[i]=function(){var e=Array.prototype[i].apply(this,arguments);return new Float32Array(e)},t=!0),Uint8Array.prototype[i]||(e[i]=function(){var e=Array.prototype[i].apply(this,arguments);return new Uint8Array(e)},t=!0)}));var i={_polyfillNativeArrayIfNeeded:function(t){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},createFloat32Array:function(e){var t=new Float32Array(e);return this._polyfillNativeArrayIfNeeded(t)},createUint8Array:function(e){var t=new Uint8Array(e);return this._polyfillNativeArrayIfNeeded(t)},createUint32Array:function(e){var t=new Uint32Array(e);return this._polyfillNativeArrayIfNeeded(t)}};return!1===t&&(i._polyfillNativeArrayIfNeeded=function(e){return e}),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(445),i(210)],o=i.dj.d(n,(function(e,t,i){var n=window,o=null;return{supportsLocalStorage:function(){var e=n&&void 0!==typeof n.localStorage&&null!==n.localStorage;if(e)try{n.localStorage.setItem("motw.test.local.storage","0"),n.localStorage.removeItem("motw.test.local.storage")}catch(t){e=!1}return e},_hasNewIE:function(e){return e&&!t("ie")&&t("trident")>0?parseFloat(e.split("rv:")[1]):e&&e.indexOf("Edge")>0?"Edge "+parseFloat(e.split("Edge/")[1]):""},_getBrowserInfo:function(e){var i,n,o={BROWSER:"OTHER",BROWSER_VER:"OTHER"},r={IE:"Microsoft Internet Explorer",FF:"Mozilla Firefox",Chrome:"Google Chrome",Safari:"Apple Safari"};if(i=this._hasNewIE(e))o.BROWSER=r.IE,o.BROWSER_VER=i.toString();else for(n in r)if(r.hasOwnProperty(n)&&t(n.toLowerCase())){i=t(n.toLowerCase()),o.BROWSER=r[n],o.BROWSER_VER=i.toString(),"Chrome"!==n&&"Safari"!==n||(o.WEBKIT_VER=t("webkit").toString());break}return o},getSystemInfo:function(){var t={},i={};try{t.DEVICE="",t.LOCALE=n.navigator.language,t.OS=n.navigator.platform,t.PLATFORM=n.navigator.platform,t.SCREEN_RESOLUTION=n.screen.width+"x"+n.screen.height,t.WINDOW_RESOLUTION=n.innerWidth+"x"+n.innerHeight,t.USER_AGENT=n.navigator.userAgent,i=this._getBrowserInfo(n.navigator.appVersion),t=e.mixin(t,i)}catch(e){}return t},setClassName:function(e,t){if(i.add(e,"mw_type_"+(t.type||"unknownType")),i.add(e,"mw_type_Component"),t.name){var n="mw_name_"+(t.name.trim().replace(/[^a-zA-Z0-9]/g,"_")||"NO_NAME");i.contains(e,n)||(e.className=e.className.replace(/mw_name_[^ ]*/,""),i.add(e,n))}},isInFocus:function(e){return"unknown"!=typeof n.document.activeElement&&e===n.document.activeElement},getScrollbarWidth:function(){if(null===o){var e=document.createElement("div");e.className="scrollbar-measure",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;document.body.removeChild(e),o=t+=2}return o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(384),i(212),i(864)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{_isAsync:null,constructor:function(e){if(void 0===e&&(e={}),this.status=null,"string"!=typeof e.name||0===e.name.length)throw new Error("A valid 'name' must be provided!");if(this.name=e.name,!t.isFunction(e.detectionFunction))throw new Error("A 'detectionFunction' must be provided!");this.detectionFunction=e.detectionFunction},refreshStatus:function(){this._runDetectionFunction(!0)},_statusGetter:function(){var e,t;return null===this.status?e=this._runDetectionFunction():this._isAsync?((t=new n).resolve(this.status),e=t.promise):e=this.status,e},_runDetectionFunction:function(e){var i=this.detectionFunction();return i instanceof o?(this._isAsync=!0,i.then(t.hitch(this,(function(t){e?this.set("status",t):this.status=t})))):(this._isAsync=!1,e?this.set("status",i):this.status=i),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{_triggerChangeEvent:function(e,t,i){this.emit("change",{mwEventData:{propertyName:e,oldValue:t,newValue:i}})},_qeTypeOverWithEnter:function(e){var t=this.get("value");this.set("value",e),this._triggerChangeEvent("value",t,e)},postCreate:function(){this.inherited(arguments),this.own(this.on("change",t.hitch(this,(function(e){e.preventDefault(),e.mwEventData||(e.stopPropagation(),this._triggerChangeEvent("checked",!this.get("checked"),this.get("checked")))}))))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return function(e,t){var i;return function(){i&&clearTimeout(i);var n=this,o=arguments;i=setTimeout((function(){e.apply(n,o)}),t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i(203),i(210),i(221),i(240),i(204),i(385),i(1784),i(1786),i(3033),i(892),i(487)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){d.deprecated({deprecated:{module:"dijit/form/Button"},replacement:{module:"mw-form/PushButton"},geckNumber:1352405}),n("dijit-legacy-requires")&&a(0,(function(){e(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])}));var u=t("dijit.form.Button"+(n("dojo-bidi")?"_NoBidi":""),[s,l],{showLabel:!0,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:c,_setValueAttr:"valueNode",_setNameAttr:function(e){this.valueNode&&this.valueNode.setAttribute("name",e)},postCreate:function(){this.inherited(arguments),this._setLabelFromContainer()},_setLabelFromContainer:function(){this.containerNode&&!this.label&&(this.label=r.trim(this.containerNode.innerHTML),this.onLabelSet())},_setShowLabelAttr:function(e){this.containerNode&&i.toggle(this.containerNode,"dijitDisplayNone",!e),this._set("showLabel",e)},setLabel:function(e){o.deprecated("dijit.form.Button.setLabel() is deprecated. Use set('label', ...) instead.","","2.0"),this.set("label",e)},onLabelSet:function(){this.inherited(arguments),this.showLabel||"title"in this.params||(this.titleNode.title=r.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});return n("dojo-bidi")&&(u=t("dijit.form.Button",u,{onLabelSet:function(){this.inherited(arguments),this.titleNode.title&&this.applyTextDir(this.titleNode,this.titleNode.title)},_setTextDirAttr:function(e){this._created&&this.textDir!=e&&(this._set("textDir",e),this._setLabelAttr(this.label))}})),u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(352)],o=i.dj.d(n,(function(e,t){var i=e(null,{descriptionOverride:"",postCreate:function(){this.inherited(arguments),this.set("descriptionOverride",this.get("descriptionOverride"))},_setDescriptionOverrideAttr:function(e){if("string"!=typeof e)throw new Error("'description' property expects a literal string!");this._set("descriptionOverride",e),this._updateDescription(e,!0)},_updateDescription:function(e,t){t?""===e&&(e=this.description):""!==this.descriptionOverride&&(e=this.descriptionOverride),arguments[0]=e,this.inherited(arguments)}});return i._dependencies=[{mixin:t,orderDependent:!0}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(360),i(316),i(307),i(216),i(351),i(352),i(330),i(769),i(887),i(343),i(1063),i(1782),i(888),i(335),i(433),i(409),i(1064),i(259),i(3179)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){return e(b.validate([t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v]),{baseClass:"mwWidget mwTextArea",templateString:y,horizontalAlignment:"left",width:150,height:66,_setDisabledAttr:function(e){this.inherited(arguments),!0===e?this.inputNode.setAttribute("disabled",""):this.inputNode.removeAttribute("disabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(816)],o=i.dj.d(n,(function(e){return{_CONTROL_EDIT_MODE_PROPERTY:"editMode",_CONTROL_VALUE_PROPERTY:"value",_CONTROL_DISABLED_PROPERTY:"disabled",_CONTROL_POSITION_PROPERTY:"position",_CONTROL_ALIGN_PROPERTY:"align",_CONTROL_LABEL_PROPERTY:"text",_CONTROL_PANEL_WIDTH_PROPERTY:"panelWidth",_CONTROL_PANEL_HEIGHT_PROPERTY:"panelHeight",_CONTROL_EXECUTE_ON_PROPERTY:"executionOn",_CONTROL_EXECUTION_MODEL_PROPERTY:"executionModel",_CONTROL_ITEMS_PROPERTY:"items",_CONTROL_ITEM_LABELS_PROPERTY:"itemLabels",_CONTROL_VALUE_TYPE_PROPERTY:"valueType",_CONTROL_MINIMUM_PROPERTY:"minimum",_CONTROL_MAXIMUM_PROPERTY:"maximum",_CONTROL_STEP_PROPERTY:"step",_CONTROL_LINKED_VARIABLE_PROPERTY:"linkedVariable",_CONTROL_MIN_LINKED_VARIABLE:"minLinkedVariable",_CONTROL_MAX_LINKED_VARIABLE:"maxLinkedVariable",_CONTROL_STEP_LINKED_VARIABLE:"stepLinkedVariable",_CONTROL_DEFAULT_PROPERTY:"defaultValue",_CONTROL_DEFAULT_LINKED_VARIABLE:"defaultValueLinkedVariable",getEditMode:function(e){return e.get(this._CONTROL_EDIT_MODE_PROPERTY)},getData:function(e,t){let i={};return t.forEach(t=>{i[t]=e.get(t)}),i},getValue:function(e){return e.get(this._CONTROL_VALUE_PROPERTY)},getDisabled:function(e){return e.get(this._CONTROL_DISABLED_PROPERTY)},getExecuteOn:function(e){return e.get(this._CONTROL_EXECUTE_ON_PROPERTY)},getExecutionModel:function(t){return t.get(this._CONTROL_EXECUTION_MODEL_PROPERTY)||e.CURRENT_SECTION},getWidth:function(e){return e.domNode.getBoundingClientRect().width},getPanelWidth:function(e){return e.get(this._CONTROL_PANEL_WIDTH_PROPERTY)},getPanelHeight:function(e){return e.get(this._CONTROL_PANEL_HEIGHT_PROPERTY)},setEditMode:function(e,t){e.set(this._CONTROL_EDIT_MODE_PROPERTY,t)},setDisabled:function(e,t){e.set(this._CONTROL_DISABLED_PROPERTY,t)},setPosition:function(e,t){e.set(this._CONTROL_POSITION_PROPERTY,t)},setAlign:function(e,t){e.set(this._CONTROL_ALIGN_PROPERTY,t)},setExecutionModel:function(e,t){e.set(this._CONTROL_EXECUTION_MODEL_PROPERTY,t)},setExecutionModelToLocalFunctions:function(t){var i=this.getExecutionModel(t);i!==e.ALL&&i!==e.NOTHING&&this.setExecutionModel(t,e.ALL),t.updatePropertyChoices(this._CONTROL_EXECUTION_MODEL_PROPERTY,["ALL","NOTHING"])},setExecutionModelToAll:function(t){var i=Object.keys(e);t.updatePropertyChoices(this._CONTROL_EXECUTION_MODEL_PROPERTY,i)},disableCategory:function(e,t,i){e.disableCategory(t,i)},setLabel:function(e,t){e.set(this._CONTROL_LABEL_PROPERTY,t)},isLabelDisplayed:function(e){var t=e.getLabelContainerElement();return t&&"none"!==t.style.display},setDDUXContributor:function(e,t){e.setDDUXContributor(t)},setWorkspaceDropdownWidget:function(e,t){e.setWorkspaceDropdownWidget(t)},setWorkspaceVariables:function(e,t){e.set("workspaceVariables",t)},setCharacterWidthService:function(e,t){e.set("characterWidthService",t)},isWidgetResettable:function(e){return!!e&&e.isResettable()},isResetAllowed:function(e){return!!e&&e.isControlResetAllowed()},resetControl:function(e){e.restoreDefaultValue()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t,i){this._settingsService=t,this._settingKey=e,this._syntaxHighlightingPlugin=i,this.own(this._settingsService.listenToSettingChange(this._settingKey,this._handleSettingsChanged.bind(this))),this._settingsService.getSetting(this._settingKey).then(function(e){this._handleSettingsChanged(e)}.bind(this),function(e){this._handleSettingsChanged(!0)}.bind(this))},_handleSettingsChanged:function(e){e?this._syntaxHighlightingPlugin.enable():this._syntaxHighlightingPlugin.disable()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(470),i(732)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){t=t||{},this.type=t.type||i.MATLAB,this.wrappable=!1,this._isFocused=!1,t.anchorId&&(this.anchorId=t.anchorId)},className:"CodeExampleBlockNode",CHILD_TEXT_SEPARATOR:"\n",_FOCUSED_CSS_CLASS:"BlockActive",containerType:function(){return this.type},getDefaultChild:function(){return{className:"CodeExampleLineNode"}},isEmpty:function(){return!(this.children.length>1)&&this.inherited(arguments)},isSameTypeAs:function(e){return this.className===e.className&&this.type===e.type},isTextContainerNode:function(){return!0},_serializeAttributes:function(e){e.type=this.type,this.anchorId&&(e.anchorId=this.anchorId)},focus:function(){this._isFocused=!0},blur:function(){this._isFocused=!1},isFocused:function(){return this._isFocused},getFocusedCssClass:function(){return this._FOCUSED_CSS_CLASS},resetUniqueAttributes:function(){},childrenAreContainers:!0})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{uicontextmenu:function(e){e.uicontextmenu(this.widget.domNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7442),i(7444),i(7445),i(7446),i(2484),i(7450)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e.getInstance(),s=t.getInstance(),l=i.getInstance();const c=n.getInstance(),d=o.getFileIconPluginService(),u=new r;return{getListFolderService:function(){return a},getMetadataService:function(){return s},getVFSAttributesService:function(){return l},getFileOperationsService:()=>c,getFileIconPluginService:()=>d,getFileIconProvider:()=>u}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1133),i(241),i(1217)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{fProgressDialog:null,fTitle:null,fDescription:null,fOnProgressThrottled:null,fThrottleTimeInMilliseconds:50,constructor:function(e){this.fProgressDialog=null,this.fTitle=e.title,this.fDescription=e.description,this.fShowCancel=e.showCancel,this.fCancelHandler=null},onStart:function(){const e={indeterminate:!0};this.fShowCancel&&Object.assign(e,{showCancelButton:!0,cancelButtonText:n.Cancel,cancelCallback:e=>{this.fCancelHandler&&this.fCancelHandler()}}),this.fProgressDialog=i.displayProgressDialog(this.fTitle,this.fDescription,e),this.fOnProgressThrottled=t((e,t)=>{this.fProgressDialog.updateMessage(e),this.fProgressDialog.progressBar.set({indeterminate:!1,value:t})},this.fThrottleTimeInMilliseconds)},onProgress:function(e,t){this.fOnProgressThrottled(e,t)},onStop:function(){this.fProgressDialog.closeProgressDialog()},handleCancel:function(e){this.fCancelHandler=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i.dj.c(e.i)],o=i.dj.d(n,(function(e,t){var i,n={};if(e("dojo-config-api")){var o,r=t.rawConfig;for(o in r)n[o]=r[o]}else{var a=function(t,i,n){for(o in t)"has"!=o&&e.add(i+o,t[o],0,n)},s=function(){return this}();a(n=e("dojo-loader")?t.rawConfig:s.dojoConfig||s.djConfig||{},"config",1),a(n.has,"",1)}(n.updateLocale=function(e,t){var i;if(e.indexOf(t)>=0&&"zh"!==t)n.locale=t;else if("zh"!==(i=t.split("-")[0])){for(var o=0;o<e.length;o+=1)if(i===e[o].split("-")[0]){n.locale=e[o];break}n.locale||(n.locale="en-us".toLowerCase())}else n.locale="en-us".toLocaleLowerCase()},n.locale||"undefined"==typeof navigator)||(i=n._testLanguageOverride||navigator.language||navigator.userLanguage)&&(i=i.toLowerCase(),n.supportedLocales&&n.updateLocale(n.supportedLocales,i));return n.locale||(n.locale="en-us"),n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206)],o=i.dj.d(n,(function(e,t){return e(null,{postCreate:function(){this.inherited(arguments),this._getNonSelectableNodes().forEach((function(e){t(e,"selectstart",(function(e){-1===["INPUT","TEXTAREA"].indexOf(e.target.nodeName)&&e.preventDefault()}))}))},_getNonSelectableNodes:function(){return[this.domNode]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(215),i(360),i(316),i(307),i(216),i(351),i(330),i(608),i(878),i(352),i(343),i(353),i(335),i(433),i(409),i(1713),i(421),i(259),i(770),i(2852)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){return e(b.validate([i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,y]),{baseClass:"mwWidget mwRadioButton",templateString:C,postCreate:function(){this.inherited(arguments),this.own(t(this.domNode,"keydown",this._handleKeydown.bind(this)),t(this.domNode,"keyup",this._handleKeyup.bind(this)))},_handleKeydown:function(e){32===e.keyCode&&e.preventDefault()},_handleKeyup:function(e){32===e.keyCode&&(this.get("disabled")||e.target.click())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{quickAccessIcon:new e({type:"string",notInAction:!1,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1946)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){throw new Error("Unimplemented API: MW.rtc.insertionrules.getApplicableNodeClass")},_compatibleParents:[],canInsertInContainer:function(e){return this._compatibleParents.some((function(t){return e.isInstanceOf(t)}))},getReceivingInstruction:function(e){return new t},getTopLevelInsertionInstruction:function(e,t,i,n,o){throw new Error("Unimplemented API: MW.rtc.insertionrules.getTopLevelInsertionInstruction")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(672),i(414)],o=i.dj.d(n,(function(e,t,i){const n=[i._CONTROL_LABEL_PROPERTY,i._CONTROL_VALUE_PROPERTY,i._CONTROL_EXECUTION_MODEL_PROPERTY];return e([t],{className:"LiveControlNode",defaultWidgetValue:"",constructor:function(e){e.context?this.context=e.context:this.context={data:{value:this._getDefaultWidgetValue()}};let t=this.context.data;var i=" ";if(t){var o=t.value;i=void 0!==o&&""!==o?o:i}this.text=i.toString(),this.intermediateEvalText=null,this._dataProperties=n},shouldDeleteIfEmpty:function(){return!1},isActionable:function(){return!1},getDataProperties:function(){return this._dataProperties},_getDefaultWidgetValue:function(){return this.defaultWidgetValue},getCodeText:function(){return this.getText()},getText:function(){return this.text||" "},maxOffset:function(){return this.getText().length},_serializeAttributes:function(e){e.text=this.text,e.context=this.context,e.introducedRelease=this.introducedRelease,e.startColumn=this.startPosition().getLineColumn().column-1,e.endColumn=this.endPosition().getLineColumn().column-1},setContextData:function(e){this.context.data=e},getContextData:function(){return this.context.data},setContextDataProperty:function(e,t){this.context.data[e]=t},getContext:function(){return this.context},movePositionRight:function(e){return 0===e.getOffset()?this.endPosition():this.inherited(arguments)},movePositionLeft:function(e){return e.getOffset()===this.maxOffset()?this.startPosition():this.inherited(arguments)},isContextEqualTo:function(e){var t=this.getContext();return JSON.stringify(t.data)===JSON.stringify(e.data)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(213),i(573),i(357)],o=i.dj.d(n,(function(e,t,i){return{createFOElement:function(e){return document.createElementNS(i.FO_NAMESPACE_URL,e)},createFOElementWithStyles:function(e,t,i,n){var o=this.createFOElement(e);return this.getAttributesForStyle(t,i,n).forEach((function(e){o.setAttribute(e.name,e.value)})),o},createVerticalEllipsisElement:function(){var e=this.createFOElement(i.EXTERNAL_GRAPHIC);return e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAZCAYAAAAIcL+IAAAALklEQVR42mP4//8/AzGYgWyFMECMwv8QddRS+P//KyimlmcGUOFoOI6GI/UVAgDnd8Dd4+NCwgAAAABJRU5ErkJggg=="),e.setAttribute("content-width","6.75pt"),e.setAttribute("padding-left","25pt"),e},createHorizontalEllipsisElement:function(){var e=this.createFOElement(i.EXTERNAL_GRAPHIC);return e.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAJCAYAAADO1CeCAAAAJUlEQVR42mP4//8/A70xw0i29BUDFPxnAEtTW37wWDqakIa4pQDvOOG89lHX2gAAAABJRU5ErkJggg=="),e.setAttribute("content-width","21.75pt"),e},getAttributesForStyle:function(i,n,o){for(var r=[],a=i instanceof t?o.getNodeBox(i):i,s=e.getComputedStyle(a),l=0;l<n.length;l+=1)r.push(this._HTML2FOStyle(n[l],s[n[l]]));return r},_HTML2FOStyle:function(e,t){var n=e,o=t;switch(e){case"font-family":o+=i.CJK_FONT_SET;break;case"font-size":case"line-height":case"min-height":case"margin-left":case"margin-right":case"margin-top":case"margin-bottom":o=this._recalculatePXWithPT(t);case"padding-left":case"padding-right":case"padding-top":case"padding-bottom":n=e.replace("padding","margin"),o=this._recalculatePXWithPT(t);case"font-weight":"700"===t&&(o="bold"),"400"===t&&(o="normal");case"color":o=o.replace(/rgba(\(.*), 1\)/,"rgb$1)");case"white-space":"pre-wrap"===o&&(o="normal")}return{name:n,value:o}},_recalculatePXWithPT:function(e){var t=Math.round(parseFloat(e)*i.PX_PT_RATIO);return isNaN(t)&&console.error(!1,"Not a number"),t+i.POINT}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(733),i(470),i(918)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{constructor:function(e,i){this.hyperlink={},i&&(this.hyperlink=t.prepareHyperReference(i.hyperlink.target,i.hyperlink.anchor),i.readOnly&&(this.readOnly=i.readOnly))},className:"HyperlinkNode",isTextNode:function(){return!0},containsTextNodes:function(){return!0},getPositionFromOffset:function(e){var t=this.findChildIndexForPosInNode(e);return this.children[t.n].getPositionFromOffset(t.posInNode)},findChildIndexForPosInNode:function(e){if(this.children){e<0&&(e+=this.getTextForPositioning().length+1);for(var t=0;e>this.children[t].maxOffset()&&this.children[t].nextSibling();)e-=this.children[t].maxOffset(),t+=1;return{n:t,posInNode:e}}return{n:0,posInNode:e}},maxOffset:function(){if(this.children){for(var e=0,t=0;this.children[e];)t+=this.children[e].maxOffset(),e+=1;return t}return 0},lineBorderOffset:function(e,t){var i;if(this.children){var n=this.findChildIndexForPosInNode(t);return i=t-n.posInNode+this.children[n.n].lineBorderOffset(e,n.posInNode).getOffset(),this.getPositionFromOffset(i)}return i=this.offsetInContainer(),e>=0&&(i+=this.maxOffset()),this.getPositionFromOffset(i)},offsetInContainer:function(e){return this.children&&this.children[0]?(e=e||this.rootContainer())._childOffset(this.children[0]):-1},replaceText:function(e){var t;if(this.children.length>1)for(t=this.children.length-1;t>0;t-=1)this.removeChild(t);this.children[0].replaceText(e)},_serializeAttributes:function(e){e.hyperlink={target:this.hyperlink._href,anchor:this.hyperlink._anchor}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1481),i(5416)],o=i.dj.d(n,(function(e,t,i){return e("dojo.store.Memory",null,{constructor:function(e){for(var t in e)this[t]=e[t];this.setData(this.data||[])},data:null,idProperty:"id",index:null,queryEngine:i,get:function(e){return this.data[this.index[e]]},getIdentity:function(e){return e[this.idProperty]},put:function(e,t){var i=this.data,n=this.index,o=this.idProperty,r=e[o]=t&&"id"in t?t.id:o in e?e[o]:Math.random();if(r in n){if(t&&!1===t.overwrite)throw new Error("Object already exists");i[n[r]]=e}else n[r]=i.push(e)-1;return r},add:function(e,t){return(t=t||{}).overwrite=!1,this.put(e,t)},remove:function(e){var t=this.index,i=this.data;if(e in t)return i.splice(t[e],1),this.setData(i),!0},query:function(e,i){return t(this.queryEngine(e,i)(this.data))},setData:function(e){e.items?(this.idProperty=e.identifier||this.idProperty,e=this.data=e.items):this.data=e,this.index={};for(var t=0,i=e.length;t<i;t++)this.index[e[t][this.idProperty]]=t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=Object.freeze({COL_WIDTH:82,ROW_HEIGHT:22,MIN_ROW_HEADER_WIDTH:40,MIN_LEFT_HEADER_WIDTH:27,TOOLTIP_MIN_WIDTH:300,ABSOLUTE_MIN:10,MAX_ROW_HEADER_WIDTH:250}),t=Object.freeze({ROW_OVERSCAN:4,COL_OVERSCAN:3,UNPAGED_COL_LIMIT:12}),i=Object.freeze({EDITABLE_TABLE_CELL:"EditableTableCell",EDITABLE_TREE_CELL:"EditableTreeCell",INTERACTIVE_TABLE_CELL:"InteractiveTableCell"}),n=Object.freeze({ROW:"row",COLUMN:"column",CELL:"cell"});return Object.freeze({dimensions:e,buffers:t,cellType:i,rangeType:n,ZERO_HEIGHT_ROWS:12,ZERO_WIDTH_COLS:12})}),e,t),e.exports=o},function(e,t,i){var n,o,r,a,s,l;l=/[-+,> ]/,a=r=function(e,t){"use strict";l=t||l;var i,n=/(?:\s*([-+ ,<>]))?\s*(\.|!\.?|#)?([-\w\u00A0-\uFFFF%$|]+)?(?:\[([^\]=]+)=?['"]?([^\]'"]*)['"]?\])?/g,o=!1,a="object"==typeof(e=e||document).createElement;function s(t,i){t.appendChild(e.createTextNode(i))}function c(t){var r,d,u,h,p,f=arguments,g=f[0];function m(){p&&h&&p!=h&&(h==t&&(r||(r=l.test(v)&&e.createDocumentFragment()))?r:h).insertBefore(p,u||null)}for(var _=0;_<f.length;_++){var v=f[_];if("object"==typeof v){if(d=!1,v instanceof Array){p=e.createDocumentFragment();for(var b=0;b<v.length;b++)p.appendChild(c(v[b]));v=p}if(v.nodeType)p=v,m(),h=v,u=0;else for(var b in v)p[b]=v[b]}else if(d)d=!1,s(p,v);else{_<1&&(t=null),d=!0;var y=v.replace(n,(function(n,r,l,d,g,b){r&&(m(),"-"==r||"+"==r?(h=(u=p||h).parentNode,p=null,"+"==r&&(u=u.nextSibling)):("<"==r?h=p=(p||h).parentNode:(","==r?h=t:p&&(h=p),p=null),u=0),p&&(h=p));var y=!l&&d;if(y||!p&&(l||g))if("$"==y)s(h,f[++_]);else{y=y||c.defaultTag;var C=a&&f[_+1]&&f[_+1].name;C&&(y="<"+y+' name="'+C+'">'),p=o&&~(i=y.indexOf("|"))?e.createElementNS(o[y.slice(0,i)],y.slice(i+1)):e.createElement(y)}if(l)if("$"==d&&(d=f[++_]),"#"==l)p.id=d;else{var T,E=p.className,S=E&&(" "+E+" ").replace(" "+d+" "," ");"."==l?p.className=E?(S+d).substring(1):d:"!"==v?a?c("div",p,"<").innerHTML="":(T=p.parentNode)&&T.removeChild(p):(S=S.substring(1,S.length-1))!=E&&(p.className=S)}if(g)if("$"==b&&(b=f[++_]),"style"==g)p.style.cssText=b;else{var w="!"==g.charAt(0)?(g=g.substring(1))&&"removeAttribute":"setAttribute";b=""===b?g:b,o&&~(i=g.indexOf("|"))?p[w+"NS"](o[g.slice(0,i)],g.slice(i+1),b):p[w](g,b)}return""}));if(y)throw new SyntaxError("Unexpected char "+y+" in "+v);m(),h=g=p||h}}return t&&r&&t.appendChild(r),g}return c.addNamespace=function(t,i){e.createElementNS?(o||(o={}))[t]=i:e.namespaces.add(t,i)},c.defaultTag="div",c.forDocument=r,c},s=s||a,n=[],o=i.dj.d(n,(function(){return s()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8827),i(8828),i(8829),i(8830)],o=i.dj.d(n,(function(e,t){return t(e,"rendererseditors/l10n/nls/app",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(206)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_iconTypes:{DATA_URI:"data_uri",PATH_URI:"path_uri",CSS_CLASS:"css_class"},icon:"",_lastIconApplied:"",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwIconMixin"),this.set("icon",this.get("icon"))},_setIconAttr:function(e){if("string"!=typeof e)throw new Error("'icon' property expects a literal string!");this._set("icon",e),this._updateDOM(e)},_updateDOM:function(e){this._removeOldIcon(),this._applyNewIcon(e)},_removeOldIcon:function(){var e=this._lastIconApplied,t=this._getIconType(e);if(t===this._iconTypes.DATA_URI||t===this._iconTypes.PATH_URI)this._removeImageStyles(this.iconNode);else if(t===this._iconTypes.CSS_CLASS){if(""!==e)e.trim().split(" ").forEach((function(e){this.iconNode.classList.remove(e)}),this)}},_applyNewIcon:function(e){var o=this._getIconType(e);if(o===this._iconTypes.DATA_URI||o===this._iconTypes.PATH_URI){var r=i.create("img",{src:e});this.own(n.once(r,"load",t.hitch(this,(function(){this._applyImageStyles(this.iconNode,e,r),this.emit("iconapplied"),this.emit("updatelayout"),i.destroy(r)}))))}else if(o===this._iconTypes.CSS_CLASS){if(""!==e)e.trim().split(" ").forEach((function(e){this.iconNode.classList.add(e)}),this)}0===e.length?this.domNode.classList.add("mwNoIcon"):this.domNode.classList.remove("mwNoIcon"),this._lastIconApplied=e},_getIconType:function(e){return e.indexOf("data:")>-1?this._iconTypes.DATA_URI:e.match(/\./)?this._iconTypes.PATH_URI:this._iconTypes.CSS_CLASS},_applyImageStyles:function(e,t,i){e.style.backgroundImage='url("'+t+'")',e.style.width=i.width+"px",e.style.height=i.height+"px"},_removeImageStyles:function(e){e.style.backgroundImage="",e.style.width="",e.style.height=""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(257),i(217),i(211),i(206),i(242),i(215),i(216)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=e([s,l],{templateString:'<div class="mwValidationTooltipDialog"><div class="mwArrowNode" data-dojo-attach-point="arrowNode"></div><div class="mwContentsNode" data-dojo-attach-point="contentsNode"><div data-dojo-attach-point="iconNode" class="mwIconNode"></div><div data-dojo-attach-point="textNode" class="mwTextNode"></div></div></div>',_setTextAttr:function(e){this.textNode.textContent=e,this._set("text",e)}}),d=["error","warning","normal"];return e(null,{warningText:"",errorText:"",validationState:"normal",_setErrorTextAttr:function(e){if("string"!=typeof e)throw new Error("errorText property expects a 'string'!");this.validationTooltip&&"error"===this.get("validationState")&&(this.validationTooltip.set("text",e),""===e?this.validationTooltip.domNode.style.visibility="hidden":this.validationTooltip.domNode.classList.contains("mwValidationFocused")&&(this.validationTooltip.domNode.style.visibility="visible")),this._set("errorText",e)},_setWarningTextAttr:function(e){if("string"!=typeof e)throw new Error("warningText property expects a 'string'!");this.validationTooltip&&"warning"===this.get("validationState")&&(this.validationTooltip.set("text",e),""===e?this.validationTooltip.domNode.style.visibility="hidden":this.validationTooltip.domNode.classList.contains("mwValidationFocused")&&(this.validationTooltip.domNode.style.visibility="visible")),this._set("warningText",e)},_setValidationStateAttr:function(e){if("string"!=typeof e)throw new Error("validationState property expects a 'string'!");if(-1===d.indexOf(e.toLowerCase()))throw new Error("validationState property expects the value to be 'normal', 'error' or 'warning'!");this._set("validationState",e);var t=!1,i=!1;"error"===e.toLowerCase()?(i=!0,this._createValidationTooltip(),this.validationTooltip.set("text",this.get("errorText"))):"warning"===e.toLowerCase()&&(t=!0,this._createValidationTooltip(),this.validationTooltip.set("text",this.get("warningText"))),this.validationTooltip&&(this.domNode.classList.contains("mwWidgetFocused")&&(this.validationTooltip.domNode.classList.add("mwValidationFocused"),this._placeTooltip()),i?(this._getDomNodeForValidationClasses().classList.add("mwValidationError"),this.validationTooltip.domNode.classList.add("mwErrorTooltip")):(this._getDomNodeForValidationClasses().classList.remove("mwValidationError"),this.validationTooltip.domNode.classList.remove("mwErrorTooltip")),t?this.validationTooltip.domNode.classList.add("mwWarningTooltip"):this.validationTooltip.domNode.classList.remove("mwWarningTooltip"),("normal"===e.toLowerCase()||this._isEmptyErrorText()||this._isEmptyWarningText())&&(this.validationTooltip.domNode.style.visibility="hidden"))},_isEmptyErrorText:function(){return"error"===this.get("validationState")&&""===this.get("errorText")},_isEmptyWarningText:function(){return"warning"===this.get("validationState")&&""===this.get("warningText")},_createValidationTooltip:function(){this.validationTooltip||(this.validationTooltip=new c,this.validationTooltip.startup(),this.own(this.validationTooltip),this._addTooltipEvents())},_flipDomOrder:function(e){var t=e.children[0],i=e.children[1];o.place(t,o.place(i,e),"after"),o.place(i.children[0],o.place(i.children[1],i),"after")},_tooltipOrientation:function(){return this.validationTooltip.domNode.classList.contains("mwTooltipLeft")?"left":"right"},_getDomNodeForValidationClasses:function(){return this.domNode},_placeTooltip:function(){if(this.validationTooltip&&("error"===this.validationState||"warning"===this.validationState)){o.place(this.validationTooltip.domNode,a.body());var e,t,i,r,s,l,c,d,u,h,p=n.position(this.domNode),f=!1;e=p.x,t=p.y,i=p.w,"error"===this.validationState?(this._getDomNodeForValidationClasses().classList.add("mwValidationError"),this.validationTooltip.set("text",this.errorText),this.validationTooltip.domNode.classList.add("mwErrorTooltip")):"warning"===this.validationState&&(this.validationTooltip.set("text",this.warningText),this.validationTooltip.domNode.classList.add("mwWarningTooltip")),("error"===this.get("validationState")&&""!==this.get("errorText")||"warning"===this.get("validationState")&&""!==this.get("warningText"))&&(this.validationTooltip.domNode.style.visibility="visible"),c=n.position(this.validationTooltip.domNode).h/2,s=n.position(this.domNode).h/2,l=this.validationTooltip.domNode,d=n.position(a.body()).w,r=this._calculateTooltipWidth();var g=(document.documentElement||document.body.parentNode||document.body).scrollTop;e+i+r>d?(f=!0,u=e-r+"px",h=t+s-c+g+"px",l.children[0].classList.contains("mwArrowNode")&&this._flipDomOrder(l)):(u=e+i+"px",h=t+s-c+g+"px"),f?(this.validationTooltip.domNode.classList.add("mwTooltipLeft"),this.validationTooltip.domNode.classList.remove("mwTooltipRight")):(this.validationTooltip.domNode.classList.remove("mwTooltipLeft"),this.validationTooltip.domNode.classList.add("mwTooltipRight")),this.validationTooltip.domNode.style.left=u,this.validationTooltip.domNode.style.top=h}},_calculateTooltipWidth:function(){this.validationTooltip.domNode.classList.add("mwTooltipLeft");var e=n.position(this.validationTooltip.domNode).w;return this.validationTooltip.domNode.classList.remove("mwTooltipLeft"),e},_addTooltipEvents:function(){this.own(r(this,i.enter,t.hitch(this,(function(){this._placeTooltip()}))),r(this,i.leave,t.hitch(this,(function(){this.validationTooltip&&(this.validationTooltip.domNode.style.visibility="hidden")}))),r(this.focusNode,"focus",t.hitch(this,(function(){this._placeTooltip(),this.validationTooltip&&("error"!==this.get("validationState")&&"warning"!==this.get("validationState")||this.validationTooltip.domNode.classList.add("mwValidationFocused"))}))),r(this.focusNode,"blur",t.hitch(this,(function(){this.validationTooltip&&(this.validationTooltip.domNode.classList.remove("mwValidationFocused"),this.validationTooltip.domNode.style.visibility="hidden")}))))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(388),i(226)],o=i.dj.d(n,(function(e,t,i){var n={ROOT:"Root",ORPHAN_ROOT:"OrphanRoot"};return e.mixin(n,t),e.mixin(n,i),n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(226)],o=i.dj.d(n,(function(e,t){var i=["all","none","horizontal","vertical"];return e(null,{mnemonicKeyNavDirection:"all",postCreate:function(){this.inherited(arguments),this._updateMnemonicKeyNavDirectionInDOM(this.get("mnemonicKeyNavDirection"))},_setMnemonicKeyNavDirectionAttr:function(e){if(-1===i.indexOf(e))throw new Error("'mnemonicKeyNavDirection' property expects one of these values: "+i);this._started&&this._updateMnemonicKeyNavDirectionInDOM(e),this._set("mnemonicKeyNavDirection",e)},_updateMnemonicKeyNavDirectionInDOM:function(e){this.focusNode.setAttribute("data-mnemonic-key-nav-direction",e),this.mnemonicKeyNavDirectionNodes&&this.mnemonicKeyNavDirectionNodes.length>0&&this.mnemonicKeyNavDirectionNodes.forEach((function(t){t.setAttribute("data-mnemonic-key-nav-direction",e)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(567),i(518)],o=i.dj.d(n,(function(e,t,i){var n=e(null,{textOverride:"",postCreate:function(){this.inherited(arguments),this.set("textOverride",this.get("textOverride"))},_setTextAttr:function(e){this.inherited(arguments),this._updateNoTextClass()},_setTextOverrideAttr:function(e){if("string"!=typeof e)throw new Error("'textOverride' property expects a literal string!");var t,i=this.textNode.querySelector(".mwTextLine");i&&(t=i.getAttribute("id")),this._placeTextInNode(e,void 0,"textOverride setter"),t&&(i=this.textNode.querySelector(".mwTextLine"))&&i.setAttribute("id",t),this._set("textOverride",e),this._updateNoTextClass(),this._started&&this._checkAndFixClippedText&&this._checkAndFixClippedText()},_updateNoTextClass:function(){""===this.get("textOverride")&&""===this.get("text")||this.get("textOverride")===t.DO_NOT_DISPLAY?this.domNode.classList.add("mwNoText"):this.domNode.classList.remove("mwNoText")},_placeTextInNode:function(e,i,n){"textOverride setter"===n?e===t.DO_NOT_DISPLAY?e="":""===e&&(e=this.text):""!==this.textOverride&&(e=this.textOverride===t.DO_NOT_DISPLAY?"":this.textOverride),arguments[0]=e,arguments[1]=i,this.inherited(arguments)}});return n._dependencies=[{mixin:i,orderDependent:!0}],n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(377)],o=i.dj.d(n,(function(e,t){return{TOOLTIP_CLASS:"rtcTooltip",TOOLTIP_DIALOG_CLASS:"rtcTooltipDialog",createUnfocusableTooltipTextHTML:function(i){var n=e.toDom("<div>"+i+"</div>");return t.refuseFocus(n),n.outerHTML},addClassNameToParentElement:function(e){var t=e.parentElement;t&&t.classList.add("rtcTooltipDialogPopup")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(402)],o=i.dj.d(n,(function(e){return{setRole:function(t,i){t.setAttribute(e.ROLE,i)},getRole:function(t){return t.getAttribute(e.ROLE)},getImageFileName:function(e,t,i,n){return e+"_"+t+(i<10?"0"+i:i)+"."+n},nestElement:function(e,t){return t.reduce((function(e,t){var i=document.createElement(t);return i.appendChild(e),i}),e)},createOutputProgramlisting:function(){var t=document.createElement(e.PROGRAMLISTING);return t.setAttribute(e.COLORSCHEME,"output"),t},createEmphasizeElement:function(t){var i=document.createElement(e.EMPHASIS);return t&&i.setAttribute(e.ROLE,t),i},getInternalAnchorPrefix:function(t){return e.INTERNAL_ANCHOR_PREFIX+t.exampleName+"_"},writeInternalAnchor:function(t,i,n){if(i.anchorId){var o=document.createElement(e.ANCHOR);o.setAttribute(e.XMLID,this.getInternalAnchorPrefix(n)+i.anchorId),t.appendElement(o)}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(665),i(911),i(672),i(1460)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{constructor:function(e){e=e||{},this._encoding=e.encoding||"tex",this._displayStyle=e.displayStyle,this._mathmlString=e.mathmlString||"",this._texString=e.texString||"",this._altTextString=e.altTextString||""},className:"EquationNode",maxOffset:function(){return"mathml"===this.getEncoding()?this._editorBridge?this._editorBridge.maxOffset()+2:r.isEmptyEquationEncoding(this._mathmlString)?2:4:this.inherited(arguments)},posRightOfEquation:function(){return this.maxOffset()},posRightmostInsideEquation:function(){return this.maxOffset()-1},posLeftOfEquation:function(){return 0},posInsideOfEquation:function(){return this.maxOffset()/2},lineBorderOffset:function(e,t){return this.getPositionFromOffset(t)},getMathRootBox:function(e){return e&&e.children&&e.children[0]&&e.children[0].children?t.contains(e.children[0],"mwEquationEditor")?e.children[0]:e.children[0].children[0]:null},getEditor:function(){return this._editor},setEditor:function(e){this._editor=e},setEditorBridge:function(e){this._editorBridge=e},getEditorBridge:function(){return this._editorBridge},updateAttributes:function(e){var t={};return e.hasOwnProperty("encoding")&&(t.encoding=this._encoding,this._encoding=e.encoding),e.hasOwnProperty("displayStyle")&&(t.displayStyle=this._displayStyle,this._displayStyle=e.displayStyle),e.hasOwnProperty("mathmlString")&&(t.mathmlString=this._mathmlString,this._mathmlString=e.mathmlString),e.hasOwnProperty("texString")&&(t.texString=this._texString,this._texString=e.texString),e.hasOwnProperty("altTextString")&&(t.altTextString=this._altTextString,this._altTextString=e.altTextString),t},_sanitizeTeXString:function(){return this._texString=n.sanitzeLaTeXString(this._texString),this._texString},getTeXString:function(){return"mathml"!==this._encoding?this._sanitizeTeXString():this._editor?this._editor.getEquation().toTeX():i.convertMathMLToLaTeX(this.getMathMLString())},getTeXStringFromModel:function(){return"mathml"===this._encoding?this.getTeXString():i.convertTeXToLaTeX(this.getTeXString())},getAltTextString:function(){return this._altTextString},getMathMLString:function(){return this._mathmlString?this._mathmlString:this._editor&&this._editor.getEquation().toMathML()||""},getEncoding:function(){return this._encoding},setDisplayStyle:function(e){this._displayStyle=e,this._editor&&this._editor.getEquation().setDisplayStyle(e)},getDisplayStyle:function(){return this._displayStyle},getStyleAttributes:function(){return{}},compareStyleAttributes:function(){return!1},getPlainText:function(e,t){return""},getText:function(e,t){return this.getPlainText()},_serializeAttributes:function(e){e.text=this.getText(),e.encoding=this._encoding,e.mathmlString=this.getMathMLString(),e.displayStyle=this._displayStyle,e.texString=this.getTeXString();var t=this.getAltTextString();t&&(e.altTextString=t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(222),i(230),i(480),i(5709)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([o,n],{constructor:function(e){this._processConstructorArguments(e),this._peerNode.addEventListener("propertiesSet",this._handlePropertiesSet,this),this._peerNode.addEventListener("peerEvent",this._handlePeerEvent,this),this.viewReadyHandler=t(this,"viewReady",i.hitch(this,this._handleViewReady)),this.eventDispatcher||this.setEventDispatcher(new a(this))},_handleViewReady:function(e){this._peerNode.setProperty("isViewReady",!0),this._peerNode.dispatchEventToServer("viewReady",e)},_processConstructorArguments:function(e){if(!(e=e||{}).view)throw new Error("A 'view' must be supplied!");if(this._view=e.view,!e.peerNode)throw new Error("A 'peernode' must be supplied!");if(this._peerNode=e.peerNode,this._peerNode._controller=this,this.peernode=e.peerNode,this.dataTag=e.peerNode.getId(),null!==e.parentController&&!e.parentController.isInstanceOf(r))throw new Error("The 'parentController' supplied should be an instance of MW/uiframework/ContainerControllerMixin!");this._parentController=e.parentController,this._environment=e.environment},createView:function(e){},_isEventFromClient:function(e){return e&&e.hasOwnProperty("srcLang")?"JS"===e.srcLang:void 0===e.originator},_handlePropertiesSet:function(e){if(this.isInDesignTime&&this.isInDesignTime()||!this._isEventFromClient(e)){var t=e.data.newValues;this._setProperties(t)}},_setProperties:function(e){var t;for(t in e){var i="_"+t;this[i]&&"function"==typeof this[i]&&this[i](e[t])}},handleClientDrivenPropertiesChange:function(e,t,i,n){i&&this.peernode.setProperties(i),this.eventDispatcher.dispatch(e,t)},_handlePeerEvent:function(e){this.eventDispatcher.handlePeerNodePeerEvent(e)},getPeerNode:function(){return this._peerNode},getPeerNodeId:function(){return this._peerNode.getId()},getParentController:function(){return this._parentController},setParentController:function(e){this._parentController=e},handleUserInteraction:function(e,t,i){i&&(this.peernode.removeEventListener("propertiesSet",this._handlePropertiesSet,this),this.peernode.setProperties(i),this.peernode.addEventListener("propertiesSet",this._handlePropertiesSet,this)),this.eventDispatcher.dispatch(e,t)},setEventDispatcher:function(e){if(this.eventDispatcher){var t=this.eventDispatcher.getRegisteredEvents();e.registerEvents(t)}this.eventDispatcher=e},destroy:function(){this.inherited(arguments),this._peerNode.removeEventListener("propertiesSet",this._handlePropertiesSet,this),this._peerNode.removeEventListener("peerEvent",this._handlePeerEvent,this),this.viewReadyHandler.remove(),delete this._peerNode._controller,delete this._peerNode,delete this.peernode,delete this.eventDispatcher,this.widget&&"destroy"in this.widget&&"function"==typeof this.widget.destroy&&this.widget.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_Tooltip:function(e){this.inherited(arguments),null!=e&&this.widget.setTooltip(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{visibility:!0,setVisibility:function(e){if("boolean"!=typeof e)throw new Error("'visible property expects a boolean'");var t=this._getVisibilityDomClassName();this._setVisibleWithDomClasses(e,t),this._updateViewVisibilityState(e)},_setVisibleWithDomClasses:function(e,t){e?this.getVisibilityNode().classList.remove(t):this.getVisibilityNode().classList.add(t)},_updateViewVisibilityState:function(e){this.set("visibility",e)},getVisibilityNode:function(){return this.domNode},_getVisibilityDomClassName:function(){return"gbtVisibilityMixin"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7536),i(7537),i(7538),i(7539)],o=i.dj.d(n,(function(e,t){return t(e,"project-action-ui/l10n/resources/MATLAB/project/nls/view_action",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(213),i(217),i(328),i(407)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s,l,c;function d(){a=this,l||(l=setTimeout((function(){l=null,a.handleFocus(),s=a}),100))}function u(){c||(c=setTimeout((function(){c=null,s&&s.handleBlur&&s.handleBlur()}),100))}return e([o],{constructor:function(e){if(!(e=e||{}).widgetData)throw new Error("No data specified.");if(!e.guiDataService)throw new Error("No GUI service specified.");e.id="mgg_"+e.widgetData.id,this.componentData=e.widgetData,this.dataService=e.guiDataService,this.handler=e.handler},postCreate:function(){this.inherited(arguments),r.setClassName(this.domNode,{type:this.componentData.type,name:this.componentData.name}),this.widgetId=this.componentData.id,this._focusListener=d.bind(this),this._blurListener=u.bind(this),this.domNode.addEventListener("focus",this._focusListener,!0),this.domNode.addEventListener("blur",this._blurListener,!0)},destroyRecursive:function(){this.domNode&&(this.domNode.removeEventListener("focus",this._focusListener,!0),this.domNode.removeEventListener("blur",this._blurListener,!0)),this.inherited(arguments)},update:function(e){e||(e=this.componentData),this._renderComponent(e),r.setClassName(this.domNode,{type:e.type,name:e.name})},buildRendering:function(){this.inherited(arguments),this._renderComponent(this.componentData)},startup:function(){this.inherited(arguments),this.update(this.componentData)},_renderComponent:function(e){this._updateDomNodeStyle(e)},_updateDomNodeStyle:function(e){var i=this._getStyle(e);"function"==typeof this.getParent&&this.getParent()&&"function"==typeof this.getParent().childStyleChanged&&(i=this.getParent().childStyleChanged(e,i));var n,o,r,a,s,l=Object.keys(i),c=this._style;if(c)for(o=(s=Object.keys(c)).length,n=0;n<o;n+=1)r=s[n],l.indexOf(r)<0&&(this.domNode.style[r]=null);for(o=l.length,n=0;n<o;n+=1)a=i[r=l[n]],s&&a===c[r]||(this.domNode.style[r]=a);this._style=i;var d=this._getClassState(e);for(o=(l=Object.keys(d)).length,n=0;n<o;n+=1)r=l[n],t.toggle(this.domNode,r,d[r]);this.resize&&(this._started&&d.invisible!==this._lastInvisible&&!d.invisible&&this.resize(),this._lastInvisible=d.invisible),e.focusable&&(this.domNode.tabIndex=0),e.focused&&!this._lastFocused&&this._setFocus(),this._lastFocused=e.focused},_setFocus:function(){var e=this._getFocusNode(this.domNode);e&&e.focus()},_getFocusNode:function(e){if(this.focusNode)return this.focusNode;for(var t=e.firstElementChild;t;){var i=t.tagName.toLowerCase();if(["input","button","select","textbox","textarea"].indexOf(i)>=0)return t;if(void 0!==t.tabIndex)return t;var n=this._getFocusNode(t);if(n)return n;t=t.nextElementSibling}},handleFocus:function(){this.handler.setProperties(this.componentData.id,{focused:!0},!0)},_getStyle:function(e){var t={};return e.position&&(t.position="absolute",t.left=e.position.x+"px",t.top=e.position.y+"px",t.width=e.position.width+"px",t.height=e.position.height+"px"),e.background&&(t.backgroundColor="rgb("+e.background.join(",")+")"),e.renderer&&e.renderer.fontSize&&(t.fontSize=e.renderer.fontSize+"px"),t},_getClassState:function(e){var t={},i=void 0===e.visibility||e.visibility;return t.invisible=!i,t.passThroughEvents=!i||!!e.passThrough,t.notFocusable=void 0!==e.focusable&&!e.focusable,t.filtered=void 0!==e.filtered&&e.filtered,this.getParent&&this.getParent()&&this.getParent().childClassStateChanged&&(t=this.getParent().childClassStateChanged(e,t)),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(245)],o=i.dj.d(n,(function(e,t,i){return i("host-browser")?(e._name="browser",t.mixin(e,{isBrowser:!0,isFF:i("ff"),isIE:i("ie"),isKhtml:i("khtml"),isWebKit:i("webkit"),isMozilla:i("mozilla"),isMoz:i("mozilla"),isOpera:i("opera"),isSafari:i("safari"),isChrome:i("chrome"),isMac:i("mac"),isIos:i("ios"),isAndroid:i("android"),isWii:i("wii"),isQuirks:i("quirks"),isAir:i("air")}),i):i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(215),i(360),i(316),i(307),i(216),i(351),i(330),i(608),i(878),i(352),i(769),i(653),i(432),i(343),i(353),i(335),i(1280),i(409),i(1281),i(421),i(259),i(770),i(2849)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S){return e(T.validate([i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,E]),{baseClass:"mwWidget mwToggleButton",templateString:S,postCreate:function(){this.inherited(arguments),this.own(t(this.domNode,"keydown",this._handleKeydown.bind(this)),t(this.domNode,"keyup",this._handleKeyup.bind(this)))},_handleKeydown:function(e){switch(e.keyCode){case 13:this.get("disabled")||e.target.click(),e.preventDefault();break;case 32:e.preventDefault()}},_handleKeyup:function(e){switch(e.keyCode){case 13:e.preventDefault();break;case 32:this.get("disabled")||e.target.click(),e.preventDefault()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(224),i(420)],o=i.dj.d(n,(function(e,t,i,n){var o=e.Color=function(e){e&&this.setColor(e)};return o.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:n.transparentColor||[0,0,0,0]},t.extend(o,{r:255,g:255,b:255,a:1,_set:function(e,t,i,n){var o=this;o.r=e,o.g=t,o.b=i,o.a=n},setColor:function(e){return t.isString(e)?o.fromString(e,this):t.isArray(e)?o.fromArray(e,this):(this._set(e.r,e.g,e.b,e.a),e instanceof o||this.sanitize()),this},sanitize:function(){return this},toRgb:function(){var e=this;return[e.r,e.g,e.b]},toRgba:function(){var e=this;return[e.r,e.g,e.b,e.a]},toHex:function(){return"#"+i.map(["r","g","b"],(function(e){var t=this[e].toString(16);return t.length<2?"0"+t:t}),this).join("")},toCss:function(e){var t=this,i=t.r+", "+t.g+", "+t.b;return(e?"rgba("+i+", "+t.a:"rgb("+i)+")"},toString:function(){return this.toCss(!0)}}),o.blendColors=e.blendColors=function(e,t,n,r){var a=r||new o;return i.forEach(["r","g","b","a"],(function(i){a[i]=e[i]+(t[i]-e[i])*n,"a"!=i&&(a[i]=Math.round(a[i]))})),a.sanitize()},o.fromRgb=e.colorFromRgb=function(e,t){var i=e.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return i&&o.fromArray(i[1].split(/\s*,\s*/),t)},o.fromHex=e.colorFromHex=function(e,t){var n=t||new o,r=4==e.length?4:8,a=(1<<r)-1;return e=Number("0x"+e.substr(1)),isNaN(e)?null:(i.forEach(["b","g","r"],(function(t){var i=e&a;e>>=r,n[t]=4==r?17*i:i})),n.a=1,n)},o.fromArray=e.colorFromArray=function(e,t){var i=t||new o;return i._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(i.a)&&(i.a=1),i.sanitize()},o.fromString=e.colorFromString=function(e,t){var i=o.named[e];return i&&o.fromArray(i,t)||o.fromRgb(e,t)||o.fromHex(e,t)},o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{textOverride:new e({type:"string",defaultValue:"",notInAction:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{mnemonic:"",postCreate:function(){this.inherited(arguments),this._updateMnemonicInDOM(this.get("mnemonic"))},_setMnemonicAttr:function(e){if("string"!=typeof e)throw new Error("mnemonic property expects a String!");this._started&&this._updateMnemonicInDOM(e),this._set("mnemonic",e)},_updateMnemonicInDOM:function(e){if(e.length>0){if(e.split("").some((function(e){return e.charCodeAt(0)<65||e.charCodeAt(0)>90})))throw new Error("mnemonic property should be a String of uppercase characters!");this.focusNode.setAttribute("data-mnemonic",e)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(360),i(316),i(307),i(216),i(351),i(654),i(1043),i(352),i(330),i(653),i(432),i(893),i(343),i(353),i(335),i(433),i(607),i(1318),i(421),i(1070),i(894),i(1071),i(791),i(259),i(1072)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){return e(w.validate([t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S]),{baseClass:"mwWidget mwDropDownButton",templateString:I,getTitleNodes:function(){return[this.focusNode]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{DEFAULT:"0",CHECKBOX:"1",RADIOBUTTON:"2",POPUP:"3",SEPARATOR:"4"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(225),i(221),i(209)],o=i.dj.d(n,(function(e,t,i){return{_IMAGEFILE_PREFIX:"image",splitImageDataURI:function(e){var t=/data:image\/(\w+);base64,(.*)/.exec(e);if(t&&3===t.length)return{format:t[1],data:t[2]}},pushImageAndGetPathFromURI:function(e,t,i){var n=this.splitImageDataURI(e);if(n){var o=t+"/"+this._IMAGEFILE_PREFIX+Date.now()+i.length+"."+n.format;return i.push({path:o,data:n.data}),"file:///"+o}},convertDataURIsInNode:function(t,i,n){var o=t,r=e("img",t);return r.length>0&&(o=t.cloneNode(!0),(r=e("img",o)).forEach((function(e){var t=this.pushImageAndGetPathFromURI(e.src,i,n);t&&e.setAttribute("src",t)}),this)),o},getHexBinaryFromURI:function(e){if(t("ie"))return i.assert("getHexBinaryFromURI should not be used on IE"),"";var n="",o=this.splitImageDataURI(e);if(!o)return"";var r=atob(o.data.replace(/[ \r\n]+$/,"")),a=0,s="";for(a=0;a<r.length;a+=1)1===(s=r.charCodeAt(a).toString(16)).length&&(s="0"+s),n+=s;return{format:o.format,hexData:n}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NSMW_PREFIX:"mw",XMLNSMW_PREFIX:"xmlns:mw",NSMWMMLX_PREFIX:"mwmmlx",XMLNSMWMMLX_PREFIX:"xmlns:mwmmlx",XMLNSMWMMLX:'xmlns:mwmmlx="https://www.mathworks.com/namespace/MathMLextensions" mwmmlx:extension="true"',MWMMLX_TEMPLATE:"mwmmlx:template",MWMMLX_VARNAME:"mwmmlx:varname",MWMMLX_DATACATEGORY:"mwmmlx:dataCategory",MWMMLX_EXTRAS:"mwmmlx:extras"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1925),i(3815)],o=i.dj.d(n,(function(e,t){return{DEFAULT_SUPPORTED_LANGUAGES:{TEXT:"TEXT",MATLAB:"MATLAB"},DEFAULT_LANGUAGE_INFORMATION:{TEXT:new e("TEXT",0,[],"text/plain","TEXT",t.plainTextFileDescription),MATLAB:new e("MATLAB",3,["m","mlx"],"text/matlab")},LANGUAGE_PRIORITY:{DEFAULT:0,COMMON:1,PRODUCT:2,PREFERRED:3}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(904)],o=i.dj.d(n,(function(e,t){return new t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return{addNewElement:function(e,t,i,n){var o=this.createElement(e.ownerDocument,t,i);void 0!==n&&(o.textContent=n),e.appendChild(o)},createTextElement:function(e,t,i,n){var o=this.createElement(e,"text",i,n),r=e.createTextNode(t);return o.appendChild(r),o},createElement:function(e,t,i,n){var o,r=e.createElementNS("http://www.w3.org/2000/svg",t);for(o in i)r.setAttribute(o,i[o]);if(void 0!==n)for(o in n){var a=n[o];r.setAttributeNS(a.ns,o,a.value)}return r},findChildNode:function(e){for(var t=e.parentNode.childNodes,i=0;i<t.length;i++)if(t.item(i)===e)return i;return-1},removeChildNodes:function(e){for(;e.hasChildNodes();)e.removeChild(e.firstChild)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=e([],{constructor:function(e,t,i){void 0===e?(this._x=0,this._y=0,this._z=0):(this._x=e,this._y=t,this._z=i)},getX:function(){return this._x},getY:function(){return this._y},getZ:function(){return this._z},getW:function(){return 1},distanceSquared:function(e){var t=this._x-e._x,i=this._y-e._y,n=this._z-e._z;return t*t+i*i+n*n},distance:function(e){return Math.sqrt(this.distanceSquared(e))},length:function(){return void 0===this._length&&(this._length=Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z)),this._length},normalize:function(){var e=this.length();return 0!==e?new t(this.getX()/e,this.getY()/e,this.getZ()/e):new t(0,0,0)},dotProduct:function(e){return this._x*e._x+this._y*e._y+this._z*e._z},scalarMult:function(e){this._x=this._x*e,this._y=this._y*e,this._z=this._z*e},isSameAs:function(e){return this._x===e.getX()&&this._y===e.getY()&&this._z===e.getZ()},toString:function(){var e="[";return e+=this._x,e+=", ",e+=this._y,e+=", ",e+=this._z,e+="]"}});return t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(406),i(2190)],o=i.dj.d(n,(function(e,t){var i=function(i){var n=t.base64ToArrayBuffer(i);return e.createFloat32Array(n)};return{makeFont:function(e,t){var i=e.angle+" ";"bold"===e.weight?i+="700":i+="500",i=i+" "+e.size*t/72+"px ";return i+=/sans\s*serif/i.test(e.name)||/symbol/i.test(e.name)?"sans-serif":/\w+\s+\w+/.test(e.name)?"'"+e.name+"'":e.name},convertEncodedArray:function(t){if(void 0!==t.b64){var n=t.b64;return i(n)}var o=[],r=0;Object.keys(t).sort().forEach((function(e){if(t.hasOwnProperty(e)){var n=function(e,t){var n={numElems:0},o=e[t];if(Array.isArray(o)||"object"!=typeof o)n.numElems=o.length,n.get=function(e){return o[e]};else if(void 0!==o.const){let e=o.const,t=e[0];n.numElems=e[1],n.get=function(e){return t}}else if(void 0!==o.aseries){let e=o.aseries,t=e[0],i=e[1];n.numElems=e[2],n.get=function(e){return t+e*i}}else if(void 0!==o.b64){let e=o.b64,t=i(e);n.numElems=t.length,n.get=function(e){return t[e]}}else console.log("bad channel data format");return n}(t,e);o.push(n),0===r&&(r=n.numElems)}}));for(var a=o.length,s=e.createFloat32Array(r*a),l=0,c=0;c<r;c++)for(var d=0;d<a;d++)s[l++]=o[d].get(c);return s},convertArray:function(t){return void 0!==t&&t.constructor&&t.constructor===Float32Array?t:void 0!==t&&t.hasOwnProperty("data")?t.data.hasOwnProperty("binarydata")&&t.data.hasOwnProperty("binaryDataConversionFcn")?t.data.binaryDataConversionFcn(t.data.binarydata):Array.isArray(t.data)||"object"!=typeof t.data?e.createFloat32Array(t.data):this.convertEncodedArray(t.data):void 0!==t&&t.hasOwnProperty("binarydata")&&t.hasOwnProperty("binaryDataConversionFcn")?t.binaryDataConversionFcn(t.binarydata):[]},removeFromArray:function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)if(e[i]===t)return e.splice(i,1),!0;return!1},visualizeTextImage:function(e){var t=e.toDataURL("image/png"),i="width="+e.width+", height="+e.height,n=window.open("","image from canvas",i,"false");n.document.open(),n.document.write("<img src='"+t+"' alt='from canvas'/>"),n.document.close()},calcTextWidth:function(e,t,i){if(1===i)return Math.ceil(e.measureText(t[0]).width);for(var n=0,o=0;o<i;o++){var r=Math.ceil(e.measureText(t[o]).width);r>n&&(n=r)}return n},getNextPowerOfTwo:function(e,t){for(t=t||1;t<e;)t*=2;return t}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(738),i(271),i(691),i(1531),i(6200)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return function(){function s(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s)}return r(s,null,[{key:"isSyntheticRightClick",value:function(t){return t&&t.button&&t.button===e.MOUSE_RIGHT_BUTTON||!1}},{key:"emitDoubleClickEvent",value:function(e,i,n){e&&(i.defaultFn=n,e(t.protected.CELL_DBL_CLICK,i))}},{key:"validateContextMenuEventInfo",value:function(e){e.isEditing&&e.target&&e.target.hasOwnProperty("isWhiteSpace")&&delete e.target.isWhiteSpace}},{key:"eventCallbackForContextMenu",value:function(e,i,n){e.preventDefault();var o=e.pageX,r=e.pageY,a=n.type,l=n.rowIndex,c=n.colIndex,d=n.colEnd,u=n.isEditable,h=l>=0?l:-1,p=c>=0?c:-1,f=n.isWhiteSpace;void 0===f&&(f=s.isWhiteSpace(e.target,e.clientX,e.clientY));var g={left:o,top:r,row:h,col:p,target:{type:a,isWhiteSpace:f,isEditable:u},colEnd:d};return i(t.internal.TABLE_RIGHT_CLICK,g)}},{key:"isElementOverflow",value:function(e){return e.scrollWidth>e.offsetWidth}},{key:"getTreeCellTargetNode",value:function(e){return e.firstElementChild.firstChild}},{key:"getTreetableIconLabelRendererTargetNode",value:function(e,t){return e&&e.querySelector(".mw-data-label-renderer")?e.querySelector(".mw-data-label-renderer"):t}},{key:"getTableRendererTargetNode",value:function(e){return e}},{key:"getTargetNode",value:function(e,t,r,a){return"treeCell"===e&&(t=this.getTreeCellTargetNode(t)),(a instanceof n||a instanceof i)&&(t=this.getTableRendererTargetNode(r)),a instanceof o&&(t=this.getTreetableIconLabelRendererTargetNode(r,t)),t}},{key:"getCellInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mw-table-cell",i=void 0,n=e.path||e.composedPath&&e.composedPath();if(n&&n.length>0){var o=!0,r=!1,s=void 0;try{for(var l,c=n[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var d=l.value;if(d.classList.contains(t)){i=a(d);break}if(d.classList.contains("mw-table-component"))break}}catch(e){r=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(r)throw s}}}else for(var u=document.elementFromPoint(e.clientX,e.clientY);u&&!u.classList.contains("mw-table-component")&&u!==document.body;){if(u.classList.contains(t)){i=a(u);break}u=u.parentNode}return i}},{key:"_isPointInsideRect",value:function(e,t,i){return e>=i.left&&t>=i.top&&e<=i.right&&t<=i.bottom}},{key:"setFocusCache",value:function(e){e(t.protected.CELL_DOM_FOCUS_CACHE)}},{key:"_isNodeTypeText",value:function(e){return!!e&&(3===e.nodeType||!(1!==e.nodeType||!e.innerText))}},{key:"_isPointInTextNode",value:function(e,t,i){if(!this._isNodeTypeText(i))return!1;var n=document.createRange();n.selectNodeContents(i);var o=n.getBoundingClientRect();return!!this._isPointInsideRect(e,t,o)}},{key:"_isNonWhiteSpaceClass",value:function(e){if(e)for(var t=["mwCheckBoxRadioIconNode"],i=0;i<t.length;i++)if(e.includes(t[i]))return!0;return!1}},{key:"isWhiteSpace",value:function(e,t,i){if(!e)return!0;if(this._isNonWhiteSpaceClass(e.className))return!1;var n=e.childNodes;if(0===n.length)return!1;for(var o=!0,r=0;r<n.length;r++){var a=n[r];this._isPointInTextNode(t,i,a)&&(o=!1)}return o}},{key:"handleContextmenu",value:function(e,t,i){var n=t.eventCallback,o=t.rowIndex,r=t.colIndex,a={type:i,colEnd:t.colEnd,rowIndex:o,colIndex:r,isEditable:!!t.handleEditComplete};return s.eventCallbackForContextMenu(e,n,a)}}]),s}();function a(e){return{rowIndex:Number(e.getAttribute("data-row")),colIndex:Number(e.getAttribute("data-col")),id:e.getAttribute("data-row-id"),cellNode:e,cellType:e.getAttribute("data-cell-type")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({BACKSPACE:8,NUM_START:48,NUM_END:57,SPACE:32,ENTER:13,ALPHA_START:65,ALPHA_END:91,NUMPAD_START:95,NUMPAD_END:112,SYM1_START:185,SYM1_END:193,SYM2_START:219,SYM2_END:222,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,CTRL:17,SHIFT:16,META:91,ALT:16,ESCAPE:27,A:65,C:67,V:86,X:88})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1533),i(267)],o=i.dj.d(n,(function(e,t){var i=e.mergeEnums({treetable:{treeColumnIndex:"treeColumnIndex",POTENTIAL_ACTIVE_CELL:"potentialNextActiveCell",POTENTIAL_PIVOT:"potentialPivot",SELETION_CLEARED:"selectionCleared",CHECKBOX_TREETABLE:"checkboxTreetable",WIDGET_TYPE:"TreeTable"},protected:{WIDTH_CHANGED:"widthChanged",COLUMN_CONFIG:"colconfig"}},t);return Object.freeze(i)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(211),i(213)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a=t(null,{constructor:function(e){this._elementName=e,this._params={}},withClass:function(e){return this._className=e,this},withId:function(e){return this.withParam("id",e)},withContents:function(e){return this._contents=e,this},withParam:function(e,t){return this._params[e]=t,this},hidden:function(){return this._params.style||(this._params.style={}),i.mixin(this._params.style,{display:"none"}),this},withParams:function(e){return i.mixin(this._params,e),this},withParent:function(e){return this._parent=e,this},withPosition:function(e){return this._position=e,this},create:function(){var e=n.create(this._elementName,this._params,this._parent,this._position);return this._className&&(e.className=this._className),this._contents&&(e.textContent=this._contents),this._className=void 0,this._params={},this._parent=void 0,this._position=void 0,this._contents=void 0,e}}),s={div:"div",table:"table",tr:"tr",td:"td",span:"span",li:"li",a:"a"};for(r in s)s.hasOwnProperty(r)&&(s[r]=new a(s[r]));return s.custom=function(e){return new a(e)},s.destroy=i.hitch(n,n.destroy),s.empty=i.hitch(n,n.empty),s.place=i.hitch(n,n.place),s.display=function(e,t){e.domNode&&(e=e.domNode),o.set(e,"display",t?"":"none")},s.isVisible=function(e){return e.domNode&&(e=e.domNode),"none"!==e.style.display},s.show=function(e){s.display(e,!0)},s.hide=function(e){s.display(e,!1)},s.toggleDisplay=function(e,t){s.display(e,!0),s.display(t,!1)},s.removeClass=function(t,n){t.domNode&&(t=t.domNode),"string"==typeof n?t.classList.remove(n):i.isFunction(n)&&e.filter(t.classList,n).forEach((function(e){t.classList.remove(e)}))},s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(216)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.renderers._TemplateMixin",[t],{_getAttachNode:function(e){var t=this._getAttachNodes(e);return null===t?null:t[0]},_getAttachNodes:function(e){if(!this.domNode)return null;var t='[data-datatools-renderer-attach-point="'+e+'"]',i=this.domNode.querySelectorAll(t);return i&&i.length&&i.length>0?i:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(356),i(242),i(227),i(210),i(211),i(217),i(213),i(222),i(257),i(206),i(248),i(386),i(276),i(881),i(344),i(355),i(387),i(882),i(656),i(561),i(774),i(209),i(2863),i(2864)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){var A=Number.MAX_VALUE,x=["top","left","center","right","bottom"],N=["left","top","center","bottom","right"];return e([f,d,E,m,y],{_:void 0,design:"headline",animationEnabled:!0,minimumCenterWidth:100,minimumCenterHeight:100,baseClass:"borderContainer",_activeAnimationCount:0,_resizeDragCount:0,constructor:function(){this._borderInfo={},this._dragInfo={}},buildRendering:function(){this.inherited(arguments),a.add(this.domNode,"mwLayoutContainer")},startup:function(){if(!this._started){var e=this;this.getChildren().forEach((function(t){e._setupChild(t)})),this.inherited(arguments)}},addWithProperties:function(e,t){var n,o=t.region;S.assert(o,"No region specified for "+e.id),e.region=o,"center"===o?(this._bindCenterProperties(t),this._isCenterProportional=t.isProportional):(n=this._createBorderInfo(o,e),this._bindChildProperties(n,t),t===e?this._getInfoFromWidget(e,n):(i.mixin(n,t),void 0===t.isResizable&&(n.isResizable=n.hasSplitter)),this._borderInfo[o]=n),this.addChild(e)},addChild:function(e){var t,i=e.region;S.assert(i,"No region specified for "+e.id),"center"===i?(this._centerWidget=e,this._bindCenterProperties(e),this._clearExpandedStates()):this._isBorderRegion(i)&&((t=this._borderInfo[i])?S.assert(t.widget.getParent()!==this,i+" region already occupied"):(t=this._createBorderInfo(i,e),this._borderInfo[i]=t,this._getInfoFromWidget(e,t)),this._bindChildProperties(t,e)),this.inherited(arguments),this._started&&(this._pendingState&&this._isPopulatedPerState(this._pendingState)?(this._restoreState(this._pendingState),delete this._pendingState):this.layout(),this.emit(v.STATE_CHANGED)),"center"===i&&this._updateExpandedStates()},_setupChild:function(e){var t,n,o,l,d,u,f,g=e.region;if(this.inherited(arguments),c.set(e.domNode,"position","absolute"),g&&e!==this._collapsedCenterWidget){if(t=this._borderInfo[g]){if(e===t.collapsedWidget)return;t.initComplete=!0}else this._initialCenterWidth=e.domNode.style.width,this._initialCenterHeight=e.domNode.style.height;if(t&&t.hasSplitter){if(o="H"===t.splitterOrientation?"height":"width",l="H"===t.splitterOrientation?"padding-top":"padding-left",t.isResizable){t.initialDimension=this._getDimensionFromStyle(t),t.splitterNode=s.create("div",{id:e.domNode.id+"Splitter"},this.domNode),a.add(t.splitterNode,"splitter"+t.splitterOrientation),r.setSelectable(t.splitterNode,!1),b.preventFocus(t.splitterNode,!0),n=s.create("div",{id:e.domNode.id+"SplitterLine"},t.splitterNode),a.add(n,"splitterLine"+t.splitterOrientation),r.setSelectable(n,!1),b.preventFocus(n,!0),t.splitterThickness=Math.round(c.get(t.splitterNode,o)),t.visibleSplitterThickness=Math.round(c.get(n,o)),t.preSplitterOverlap=Math.round(c.get(t.splitterNode,l)),t.postSplitterOverlap=t.splitterThickness-t.visibleSplitterThickness-t.preSplitterOverlap,t.followOpposite&&c.set(t.splitterNode,{visibility:"hidden"});var m=i.hitch(this,"_beginSplitterDrag",t);h(t.splitterNode,p.press,m),h(n,p.press,m);var _=i.hitch(this,"_handleDoubleClick",t);h(t.splitterNode,"dblclick",_),h(n,"dblclick",_);var v=function(e){e.preventDefault()};h(t.splitterNode,"contextmenu",v),h(n,"contextmenu",v)}else t.splitterNode=s.create("div",{id:e.domNode.id+"Splitter"},this.domNode),c.set(t.splitterNode,"position","absolute"),a.add(t.splitterNode,"splitterLine"+t.splitterOrientation),r.setSelectable(t.splitterNode,!1),b.preventFocus(t.splitterNode),t.splitterThickness=Math.round(c.get(t.splitterNode,o)),t.visibleSplitterThickness=t.splitterThickness,t.preSplitterOverlap=0,t.postSplitterOverlap=0;"function"==typeof t.restoredSplitterPosition&&(t.restoredSplitterPosition=t.restoredSplitterPosition()),t.collapsePending&&(d=this.animationEnabled,this.animationEnabled=!1,u=t.restoredSplitterPosition,f=t.restoredReferenceDimension,this._collapse(t),t.restoredSplitterPosition=u,t.restoredReferenceDimension=f,this.animationEnabled=d,delete t.collapsePending)}}},getChildInRegion:function(e){if("center"===e&&this._centerWidget)return this._centerWidget;var t=this._borderInfo[e];return t?t.widget:null},removeChildInRegion:function(e){var t=this.getChildInRegion(e);return t&&this.removeChild(t),t},removeChild:function(e){var t,i=e.region,n={top:"auto",left:"auto",position:"static",clip:"auto"};"center"===i?(this._collapsedCenterWidget&&(f.prototype.removeChild.apply(this,[this._collapsedCenterWidget]),this._collapsedCenterWidget.destroyRecursive(),delete this._collapsedCenterWidget),this._centerWidget=null,this._unbindCenterProperties&&this._unbindCenterProperties(),n.width=this._initialCenterWidth,n.height=this._initialCenterHeight):(t=this._borderInfo[i])&&(t.unbindChildProperties&&t.unbindChildProperties(),t.initialDimension&&("H"===t.splitterOrientation?n.height=t.initialDimension:n.width=t.initialDimension),t.splitterNode&&s.destroy(t.splitterNode),t.isCollapsed&&f.prototype.removeChild.apply(this,[t.collapsedWidget]),t.collapsedWidget&&t.collapsedWidget.isDefaultCollapsedWidget&&t.collapsedWidget.destroyRecursive(),delete this._borderInfo[i]),this.inherited(arguments);var o=this._dragInfo[i];o&&(o.animation&&o.animation.stop(),delete this._dragInfo[i]),(t||"center"===i)&&(this._started&&(this.layout(),this.emit(v.STATE_CHANGED)),c.set(e.domNode,n))},collapse:function(e){var t=this._borderInfo[e];t&&this._collapse(t)},isCollapsed:function(e){var t=this._borderInfo[e];return t?!!t.isCollapsed:!!this._collapsedCenterWidget},isCollapsing:function(e){var t=this._borderInfo[e];return!!t&&!!t.isCollapsing},expand:function(e){var t,i,n,o=[];for(i=Object.keys(this._borderInfo),t=0;t<i.length;t+=1)(n=i[t])!==e&&this._borderInfo[n].isCollapsible&&!this._borderInfo[n].isCollapsed&&(this._collapse(this._borderInfo[n]),o.push(n));if("center"!==e){var r=this._borderInfo[e];r.isCollapsed&&this._setCollapsed(r,!1),r.regionsCollapsedUponExpand=o;var a=this._dragInfo[e];a||(a=this._initDragInfo(r,0,0),this._dragInfo[e]=a),a.done=!0,this._doExpand(a)}else this._setCenterExpanded(!0),this._regionsCollapsedUponCenterExpand=o},isExpanded:function(e){return"center"===e?this._isCenterExpanded:this._borderInfo[e]&&this._borderInfo[e].isExpanded},restore:function(e,t){var i,n,o,r,a,s;if(this._inRestore=!0,"center"===e?(o=this._isCenterExpanded,r=this._regionsCollapsedUponCenterExpand,this._setCenterExpanded(!1),this._regionsCollapsedUponCenterExpand=null):(s=this._borderInfo[e])&&s.isExpanded&&(o=!0,r=s.regionsCollapsedUponExpand,s.regionsCollapsedUponExpand=null,s.isRestoring=!0),o)for(i=Object.keys(this._borderInfo),n=0;n<i.length;n+=1)(a=i[n])===e||r&&-1===r.indexOf(a)||this._restore(this._borderInfo[i[n]]);else"center"===e&&this._isCenterCollapsed()&&this._restoreCenter(t);s&&this._restore(s),this._inRestore=!1},canMaximizeLocally:function(e){var t,i,n,o=e.region;if(o){if(this.isExpanded(o))return!1;for(t=Object.keys(this._borderInfo),i=0;i<t.length;i++)if((n=this._borderInfo[t[i]]).isCollapsible&&!n.isCollapsed)return!0;return!1}return!1},canRestoreLocally:function(e){var t=e.region;return!!t&&(this.isExpanded(t)&&Object.keys(this._borderInfo).length>0)},maximizeLocally:function(e){var t=e.region;t&&this.expand(t)},restoreLocally:function(e){var t=e.region;t&&this.restore(t)},revealChild:function(e){var t=e.region;this.isCollapsed(t)&&this.restore(t)},nextChild:function(e,t){if(0===this.getChildren().length)return null;var i=this.traversalOrder||("headline"===this.design?x:N),n=i[i.length-1];if(e&&e.region===n&&this.getParent())return null;var o,r,a,s=e?i.indexOf(e.region):-1;for(o=(s+1)%i.length;o!==s;o=(o+1)%i.length){if("center"===(r=i[o])&&this._centerWidget)return this._centerWidget;if((a=this._borderInfo[r])&&(!t||!a.isCollapsed)){if(!a.widget.nextChild)return a.widget;if(a.widget.nextChild(null,t))return a.widget}if((!a||t&&a.isCollapsed)&&r===n&&this.getParent())return null}return null},previousChild:function(e,t){if(0===this.getChildren().length)return null;var i=this.traversalOrder||("headline"===this.design?x:N),n=i[0];if(e&&e.region===n&&this.getParent())return null;var o,r,a,s=e?i.indexOf(e.region):i.length;for(o=(s-1+i.length)%i.length;o!==s;o=(o-1)%i.length){if("center"===(r=i[o])&&this._centerWidget)return this._centerWidget;if((a=this._borderInfo[r])&&(!t||!a.isCollapsed)){if(!a.widget.previousChild)return a.widget;if(a.widget.previousChild(null,t))return a.widget}if((!a||t&&a.isCollapsed)&&r===n&&this.getParent())return null}return null},isShowingLocally:function(e){return e.getParent()===this&&!this.isCollapsed(e.region)&&!this.isCollapsing(e.region)},resize:function(){var e,t,i,n,o,r;for(this.computedStyle||(this.computedStyle=c.getComputedStyle(this.domNode)),this.inherited(arguments),!1===this._isCenterProportional&&(this._portionsAreStale=!0),(t=Object.keys(this._dragInfo)).length>0&&(o=l.getContentBox(this.domNode,this.computedStyle)),e=0;e<t.length;e+=1)if(i=t[e],(n=this._dragInfo[i]).animation)switch(i){case"left":o.w!==n.lastReferenceDimension&&(r=o.w-n.lastReferenceDimension,n.oppositeCollapsePosition+=r,n.upperLimit+=r,n.lastReferenceDimension=o.w);break;case"top":o.h!==n.lastReferenceDimension&&(r=o.h-n.lastReferenceDimension,n.oppositeCollapsePosition+=r,n.upperLimit+=r,n.lastReferenceDimension=o.h);break;case"right":o.w!==n.lastReferenceDimension&&(r=o.w-n.lastReferenceDimension,n.collapsePosition+=r,n.upperLimit+=r,n.lastReferenceDimension=o.w);break;case"bottom":o.h!==n.lastReferenceDimension&&(r=o.h-n.lastReferenceDimension,n.collapsePosition+=r,n.upperLimit+=r,n.lastReferenceDimension=o.h)}},getFreeDimension:function(e){var t=this._borderInfo[e];return t&&t.freeDimension?t.freeDimension:0},setFreeDimension:function(e,t){var i=this._borderInfo[e];if(i){var n=l.getContentBox(this.domNode,this.computedStyle),o=this._computeSplitterOverhead(),r="H"===i.splitterOrientation?n.h-o.h:n.w-o.w;if(r>0){var a=Math.floor(.25*r);t>=r?t=Math.max(r-100,a):t<0&&(t=a)}i.isCollapsed?i.preCollapseFreeDimension=t:i.freeDimension=t,i.isProportional&&(i.proportion=r>0?i.freeDimension/r:1),this._started&&this.layout()}},getNonCollapsedFreeDimension:function(e){var t=this._borderInfo[e];return t&&t.isCollapsed&&t.preCollapseFreeDimension?t.preCollapseFreeDimension:this.getFreeDimension(e)},getNonCollapsedCenterSize:function(){return this._preCollapseCenterSize},getProportion:function(e){return this._getProportion(this._borderInfo[e])},setProportion:function(e,t){var i=this._borderInfo[e];i&&((t<0||t>=1)&&(t=.25),i.proportion=t,this._started&&this.layout())},getState:function(){var e,t=l.getContentBox(this.domNode,this.computedStyle),i={referenceWidth:t.w,referenceHeight:t.h,centerExpanded:!!this._isCenterExpanded,centerCollapsed:this._isCenterCollapsed()};i.centerCollapsed&&(i.centerCollapseEdge=this._collapsedCenterWidget.__edge,i.preCollapseCenterSize=this._preCollapseCenterSize);var n=this;return Object.keys(this._borderInfo).forEach((function(o){(e=n._borderInfo[o]).isResizable&&(i[o]=n._getBorderState(e,"left"===o||"right"===o?t.w:t.h))})),i},setState:function(e){this._isPopulatedPerState(e)?this._restoreState(e):this._pendingState=e},isRestoringState:function(){return void 0!==this._pendingState},endStateRestore:function(){delete this._pendingState},_isPopulatedPerState:function(e){var t,i,n=!0,o=["left","right","top","bottom"];for(t=0;t<o.length&&n;t+=1)i=o[t],(!!this._borderInfo[i]&&this._borderInfo[i].isResizable)!==(void 0!==e[i])&&(n=!1);return n},_restoreState:function(e){var t=l.getContentBox(this.domNode,this.computedStyle),i=e.referenceWidth===t.w,n=e.referenceHeight===t.h,o=this;this._isCenterCollapsible()&&void 0!==e.centerCollapsed&&e.centerCollapsed!==this._isCenterCollapsed()&&(e.centerCollapsed?(this._switchToCollapsedCenter(e.centerCollapseEdge),this._preCollapseCenterSize=e.preCollapseCenterSize):this._switchToNormalCenter()),this._isCenterExpanded=e.centerExpanded,this._updateLayoutConstraints(),Object.keys(this._borderInfo).forEach((function(t){e[t]&&("H"===o._borderInfo[t].splitterOrientation?o._restoreBorderState(t,e[t],n,e.referenceHeight):o._restoreBorderState(t,e[t],i,e.referenceWidth))}))},_getBorderState:function(e,t){var i={freeDimension:e.isCollapsed?this._computeFreeDimensionFromSplitterPosition(e,e.restoredSplitterPosition,t):e.freeDimension,collapsed:!!e.isCollapsed,expanded:!!e.isExpanded};return e.proportion&&(i.portion=e.proportion),i},_restoreBorderState:function(e,t,n,o){var r,a=this._borderInfo[e];if(a){var s=this.animationEnabled;if(this.animationEnabled=!1,a.isResizable&&!a.followOpposite)if(n)this.setFreeDimension(e,t.freeDimension),r=t.freeDimension;else{var l=t.portion||t.proportion;this.setProportion(e,void 0===l?.25:l),r=Math.floor(this._getProportion(a)*o)}var c=t.collapsed||t.isCollapsed;a.isCollapsible&&a.isCollapsed!==c&&(c?this._collapse(a):this._restore(a)),c&&(a.initComplete?a.restoredSplitterPosition=this._computeSplitterPositionFromFreeDimension(a,r,o):a.restoredSplitterPosition=i.hitch(this,"_computeSplitterPositionFromFreeDimension",a,r,o),a.restoredReferenceDimension=o),a.isExpanded=t.expanded,this.animationEnabled=s}},_getProportion:function(e){return e&&(e.proportion||0===e.portion)?e.proportion:.25},_getDimensionFromStyle:function(e){var t="H"===e.splitterOrientation?"height":"width";return e.widget.domNode.style[t]},_getBorderThickness:function(e){var t=l.getBorderExtents(e.widget.domNode);return"H"===e.splitterOrientation?t.h:t.w},layout:function(){this._started&&this.domNode&&this._layoutChildren()},_isBorderRegion:function(e){return"left"===e||"right"===e||"top"===e||"bottom"===e},_oppositeRegion:function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}return"center"},_oppositeBorderInfo:function(e){return this._borderInfo[this._oppositeRegion(e.region)]},_layoutChildren:function(){this._updateLayoutConstraints();var e=l.getContentBox(this.domNode,this.computedStyle);if(!e||0===e.h||0===e.w)return!1;var t,n,o,r,a,s,d,u,h,p=this,f=i.clone(e),g=f.w,m=f.h,_={},v={},y={},C={},T={},E={},S=this._computeSplitterOverhead(),w=Object.keys(this._dragInfo).length>0,I=[],A=Object.keys(this._borderInfo);for(d=0;d<A.length;d++)(a=this._borderInfo[A[d]]).initComplete&&(I.push(a),a.isExpanded&&!a.isRestoring&&(h=a.region));var x=[];if(h||this._isCenterCollapsed()){var N=function(e){var t=p._borderInfo[e];t&&(t.layoutOrder+=2,x.push(t))};"sidebar"===this.design&&("left"===h||"right"===h||this._centerSize&&this._centerSize.w<this.minimumCenterWidth)?["left","right"].forEach(N):"headline"===this.design&&("top"===h||"bottom"===h||this._centerSize&&this._centerSize.h<this.minimumCenterHeight)&&["top","bottom"].forEach(N)}for(I.sort((function(e,t){return 2*e.layoutOrder+("left"===e.region||"top"===e.region?0:1)-(2*t.layoutOrder+("left"===t.region||"top"===t.region?0:1))})),x.forEach((function(e){e.layoutOrder-=2})),d=0;d<I.length;d++){switch(a=I[d],t=i.clone(f),o=i.clone(f),r=i.clone(f),a.unconstrainedFreeDimension&&(w?delete a.unconstrainedFreeDimension:a.freeDimension=a.unconstrainedFreeDimension),a.region){case"top":w&&this._portionsAreStale&&this._updatePortion(a,m,S.h),u=this._computeFreeDimension(a,m,S.h),t.h=u,f.t+=t.h,f.h-=t.h,a.splitterNode&&(o.t=f.t-a.preSplitterOverlap,o.h=a.splitterThickness,f.t+=a.visibleSplitterThickness,f.h-=a.visibleSplitterThickness),a.isCollapsed&&(r.h=this._getCollapsedThickness(a));break;case"bottom":w&&this._portionsAreStale&&this._updatePortion(a,m,S.h),u=this._computeFreeDimension(a,m,S.h),t.h=u,t.t=f.t+f.h-t.h,f.h-=t.h,a.splitterNode&&(o.t=t.t-a.preSplitterOverlap-a.visibleSplitterThickness,o.h=a.splitterThickness,f.h-=a.visibleSplitterThickness),a.isCollapsed&&(r.h=this._getCollapsedThickness(a),r.t=e.t+e.h-r.h);break;case"left":w&&this._portionsAreStale&&this._updatePortion(a,g,S.w),u=this._computeFreeDimension(a,g,S.w),t.w=u,f.l+=t.w,f.w-=t.w,a.splitterNode&&(o.l=f.l-a.preSplitterOverlap,o.w=a.splitterThickness,f.l+=a.visibleSplitterThickness,f.w-=a.visibleSplitterThickness),a.isCollapsed&&(r.w=this._getCollapsedThickness(a));break;case"right":w&&this._portionsAreStale&&this._updatePortion(a,g,S.w),u=this._computeFreeDimension(a,g,S.w),t.w=u,t.l=f.l+f.w-t.w,f.w-=t.w,a.splitterNode&&(o.l=t.l-a.preSplitterOverlap-a.visibleSplitterThickness,o.w=a.splitterThickness,f.w-=a.visibleSplitterThickness),a.isCollapsed&&(r.w=this._getCollapsedThickness(a),r.l=e.l+e.w-r.w)}_[a.region]={},_[a.region].borderBox=t,_[a.region].splitterBox=o,_[a.region].collapsedBox=r,v[a.region]=a.isResizable&&a.isProportional&&!a.isCollapsed,C[a.region]=Math.max(a.minSize,a.minAutoSize)-u,T[a.region]=a.maxSize-u}w&&(this._portionsAreStale=!1);var L=this._centerWidget&&(!1===this._isCenterProportional||this._collapsedCenterWidget)&&this._centerSize&&!this._isCenterExpanded&&!w;s=0,!this._collapsedCenterWidget&&this._centerWidget&&f.w<this.minimumCenterWidth||f.w<-1?w||(s=f.w-this.minimumCenterWidth):L&&(s=f.w-this._centerSize.w),s>=0&&(this._borderInfo.left&&delete this._borderInfo.left.unconstrainedFreeDimension,this._borderInfo.right&&delete this._borderInfo.right.unconstrainedFreeDimension);var D=function(e){var t=p._borderInfo[e];t&&(v[e]=!t.isCollapsed&&t.isResizable&&!p._dragInfo[e],v[e]&&void 0===t.unconstrainedFreeDimension&&(t.unconstrainedFreeDimension=t.freeDimension))};for(0!==s&&(s<0&&(D("left"),D("right")),y.left=s,y.right=s,v.left&&v.right&&(E.left=this._borderInfo.left.portion||.5,E.right=this._borderInfo.right.portion||.5,y.left=s*E.left/(E.left+E.right),y.right=s-y.left),v.left&&(y.left=Math.max(C.left,Math.min(T.left,y.left)),this._borderInfo.left.freeDimension+=y.left,_.left.borderBox.w+=y.left,f.l+=y.left,f.w-=y.left,_.left.splitterBox.l+=y.left),v.right&&(y.right=Math.max(C.right,Math.min(T.right,y.right)),this._borderInfo.right.freeDimension+=y.right,_.right.borderBox.w+=y.right,_.right.borderBox.l-=y.right,f.w-=y.right,_.right.splitterBox.l-=y.right),"sidebar"===this.design&&(v.left||v.right)&&(_.top&&this._borderInfo.top.layoutOrder>0&&(_.top.borderBox.l=f.l,_.top.borderBox.w=f.w,_.top.splitterBox.l=f.l,_.top.splitterBox.w=f.w),_.bottom&&this._borderInfo.bottom.layoutOrder>0&&(_.bottom.borderBox.l=f.l,_.bottom.borderBox.w=f.w,_.bottom.splitterBox.l=f.l,_.bottom.splitterBox.w=f.w))),s=0,!this._collapsedCenterWidget&&this._centerWidget&&f.h<this.minimumCenterHeight||f.h<-1?w||(s=this._centerWidget&&this._centerWidget._addingToDOM&&this._centerWidget._referenceHeight&&this._centerWidget._referenceHeight>=this.minimumCenterHeight?-this._centerWidget._referenceHeight:f.h-this.minimumCenterHeight):L&&(s=f.h-this._centerSize.h),s>=0&&(this._borderInfo.top&&delete this._borderInfo.top.unconstrainedFreeDimension,this._borderInfo.bottom&&delete this._borderInfo.bottom.unconstrainedFreeDimension),0!==s&&(s<0&&(D("top"),D("bottom")),y.top=s,y.bottom=s,v.top&&v.bottom&&(E.top=this._borderInfo.top.portion||.5,E.bottom=this._borderInfo.bottom.portion||.5,y.top=s*E.top/(E.top+E.bottom),y.bottom=s-y.top),v.top&&(y.top=Math.max(C.top,Math.min(T.top,y.top)),this._borderInfo.top.freeDimension+=y.top,_.top.borderBox.h+=y.top,f.t+=y.top,f.h-=y.top,_.top.splitterBox.t+=y.top),v.bottom&&(y.bottom=Math.max(C.bottom,Math.min(T.bottom,y.bottom)),this._borderInfo.bottom.freeDimension+=y.bottom,_.bottom.borderBox.h+=y.bottom,_.bottom.borderBox.t-=y.bottom,f.h-=y.bottom,_.bottom.splitterBox.t-=y.bottom),"headline"===this.design&&(v.top||v.bottom)&&(_.left&&(_.left.borderBox.t=f.t,_.left.borderBox.h=f.h,_.left.splitterBox.t=f.t,_.left.splitterBox.h=f.h),_.right&&(_.right.borderBox.t=f.t,_.right.borderBox.h=f.h,_.right.splitterBox.t=f.t,_.right.splitterBox.h=f.h))),d=0;d<I.length;d++){switch(t=_[(a=I[d]).region].borderBox,o=_[a.region].splitterBox,r=_[a.region].collapsedBox,n={t:0,l:0,w:e.l+e.w,h:e.t+e.h},a.region){case"top":t.h<a.minSize?(s=a.minSize-t.h,t.t-=s,t.h=a.minSize,n.t=s):n=null;break;case"bottom":t.h<a.minSize?(n.h=t.h,t.h=a.minSize):n=null;break;case"left":t.w<a.minSize?(s=a.minSize-t.w,t.l-=s,t.w=a.minSize,n.l=s):n=null;break;case"right":t.w<a.minSize?(n.w=t.w,t.w=a.minSize):n=null}b.setSize(a.widget,t),a.isCollapsed&&b.setSize(this._getCollapsedWidget(a),r),a.isResizable&&c.set(a.widget.domNode,null===n?{clip:"auto"}:b.formatClipStyle(n)),a.splitterNode&&(l.setMarginBox(a.splitterNode,o),a.splitterBox=o),a.properties&&a.properties.freeDimension!==a.freeDimension&&void 0!==a.freeDimension&&a.properties.set("freeDimension",a.freeDimension)}return this._centerWidget&&(this._updateCenterWidget(f,e)&&!this.isAnimating()&&setTimeout(i.hitch(this,this.layout),0),b.setSize(this._centerWidget,f),this._collapsedCenterWidget&&(b.setSize(this._collapsedCenterWidget,f),this._collapsedCenterWidget.layout()),this._centerSize&&!w||(this._centerSize=f)),!0},_updateCenterWidget:function(e,t){if(this._isCenterCollapsible()){var i=this._centerProperties.getCollapsedSize(),n=e.w<=i.w,o=e.h<=i.h,r=n||o;if(r!==!!this._collapsedCenterWidget){if(r){var a;if(n){var s=e.l-t.l;a=t.w-e.w-s>s?"left":"right"}else{var l=e.t-t.t;a=t.h-e.h-l>l?"top":"bottom"}this._switchToCollapsedCenter(a)}else this._switchToNormalCenter();return!0}}return!1},_switchToCollapsedCenter:function(e){this._collapsedCenterWidget=this._centerProperties.getCollapsedWidget(e),this._collapsedCenterWidget.__edge=e,f.prototype.addChild.apply(this,[this._collapsedCenterWidget]),a.add(this._centerWidget.domNode,"hideAllChildren"),this._collapsedCenterWidget.startup(),this._centerProperties.set(_.IS_COLLAPSED,!0)},_switchToNormalCenter:function(){f.prototype.removeChild.apply(this,[this._collapsedCenterWidget]),a.remove(this._centerWidget.domNode,"hideAllChildren"),this._collapsedCenterWidget.saveForReuse||this._collapsedCenterWidget.destroyRecursive(),delete this._collapsedCenterWidget,this._centerProperties.set(_.IS_COLLAPSED,!1)},_isCenterCollapsible:function(){return this._centerProperties&&this._centerProperties.getCollapsedWidget},_isCenterCollapsed:function(){return!(!this._centerWidget||!this._collapsedCenterWidget)},_updateLayoutConstraints:function(){var e,t,i,n;this._started&&((this._borderInfo.left||this._borderInfo.right)&&(e=!(this._centerWidget||this._isCenterExpanded||"headline"!==this.design&&(this._borderInfo.top||this._borderInfo.bottom)),this._borderInfo.right&&this._borderInfo.right.isResizable&&(t=this._borderInfo.right.isCollapsed||this._borderInfo.right.isCollapsing||this._borderInfo.right.isRestoring,i=!(!e||!this._borderInfo.left||t),n=!(!e||this._borderInfo.left||t),i===this._borderInfo.right.followOpposite&&n===this._borderInfo.right.fillAvailable||(this._borderInfo.right.followOpposite=i,this._borderInfo.right.fillAvailable=n,delete this._borderInfo.right.freeDimension,this._borderInfo.left&&delete this._borderInfo.left.freeDimension,n&&this._setCollapsed(this._borderInfo.right,!1),this._setSplitterVisible(this._borderInfo.right,!(i||n)))),this._borderInfo.left&&this._borderInfo.left.isResizable&&(t=this._borderInfo.left.isCollapsed||this._borderInfo.left.isCollapsing||this._borderInfo.left.isRestoring,(n=!(!e||this._borderInfo.right||t))!==this._borderInfo.left.fillAvailable&&(this._borderInfo.left.fillAvailable=n,n&&this._setCollapsed(this._borderInfo.left,!1),delete this._borderInfo.left.freeDimension,this._setSplitterVisible(this._borderInfo.left,!n)))),(this._borderInfo.bottom||this._borderInfo.top)&&(e=!(this._centerWidget||this._isCenterExpanded||"sidebar"!==this.design&&(this._borderInfo.left||this._borderInfo.right)),this._borderInfo.bottom&&this._borderInfo.bottom.isResizable&&(t=this._borderInfo.bottom.isCollapsed||this._borderInfo.bottom.isCollapsing||this._borderInfo.bottom.isRestoring,i=!(!e||!this._borderInfo.top||t),n=!(!e||this._borderInfo.top||t),i===this._borderInfo.bottom.followOpposite&&n===this._borderInfo.bottom.fillAvailable||(this._borderInfo.bottom.followOpposite=i,this._borderInfo.bottom.fillAvailable=n,delete this._borderInfo.bottom.freeDimension,this._borderInfo.top&&delete this._borderInfo.top.freeDimension,this._setSplitterVisible(this._borderInfo.bottom,!(i||n)))),this._borderInfo.top&&this._borderInfo.top.isResizable&&(t=this._borderInfo.top.isCollapsed||this._borderInfo.top.isCollapsing||this._borderInfo.top.isRestoring,(n=!(!e||this._borderInfo.bottom||t))!==this._borderInfo.top.fillAvailable&&(this._borderInfo.top.fillAvailable=n,n&&this._setCollapsed(this._borderInfo.top,!1),delete this._borderInfo.top.freeDimension,this._setSplitterVisible(this._borderInfo.top,!n)))))},_setSplitterVisible:function(e,t){e.splitterNode&&c.set(e.splitterNode,{visibility:t?"visible":"hidden"})},_setCollapsed:function(e,t){e.isCollapsed=t,t?a.add(e.widget.domNode,"collapsedChild"):a.remove(e.widget.domNode,"collapsedChild"),e.properties&&(e.properties.set(_.IS_COLLAPSED,t),t?e.properties.set(_.IS_SHOWING,!1):b.isShowing(this.domNode)&&e.properties.set(_.IS_SHOWING,!0));var i=this._getCollapsedWidget(e);t?(c.set(i.domNode,"position","absolute"),f.prototype.addChild.apply(this,[i])):f.prototype.removeChild.apply(this,[i])},_setExpanded:function(e,t){e.isExpanded=t,e.properties&&e.properties.set(_.IS_EXPANDED,t)},_setCenterExpanded:function(e){this._isCenterExpanded=e,this._centerProperties&&this._centerProperties.set(_.IS_EXPANDED,e)},_createBorderInfo:function(e,t){return{region:e,widget:t,hasSplitter:!1,isResizable:!1,splitterOrientation:"top"===e||"bottom"===e?"H":"V",minSize:0,minAutoSize:0,maxSize:A,isCollapsible:!1,layoutOrder:"headline"===this.design&&("top"===e||"bottom"===e)||"sidebar"===this.design&&("left"===e||"right"===e)?0:1,isProportional:!1,proportion:.25,collapsedWidget:t.collapsedWidget,fillAvailable:!1,followOpposite:!1}},_getInfoFromWidget:function(e,t){void 0!==e.splitter?t.hasSplitter=e.splitter:void 0!==e.hasSplitter&&(t.hasSplitter=e.hasSplitter),void 0!==e.collapsible?t.isCollapsible=e.collapsible:void 0!==e.isCollapsibled&&(t.isCollapsible=e.isCollapsible),void 0!==e.resizable?t.isResizable=e.resizable:void 0!==e.isResizable?t.isResizable=e.isResizable:t.isResizable=t.hasSplitter,void 0!==e.minSize&&(t.minSize=e.minSize),void 0!==e.minAutoSize&&(t.minAutoSize=e.minAutoSize),void 0!==e.maxSize&&(t.maxSize=e.maxSize),void 0!==e.layoutOrder&&(t.layoutOrder=e.layoutOrder)},_bindChildProperties:function(e,t){var i,n,o=this;!e.properties&&t.watch&&t.set&&t.get&&(e.properties=t,i=t.watch(_.IS_COLLAPSED,(function(t,i,n){o._inRestore||n!==e.isCollapsed&&(n?o._collapse(e):o._restore(e))})),n=t.watch(_.IS_EXPANDED,(function(t,i,n){o._inRestore||n!==e.isExpanded&&(n?o.expand(e.region):o.restore(e.region))})),e.unbindChildProperties=function(){i&&i.remove(),n&&n.remove(),delete e.properties,delete e.unbindChildProperties})},_bindCenterProperties:function(e){var t,i=this;!this._centerProperties&&e.watch&&e.set&&e.get&&(this._centerProperties=e,t=e.watch(_.IS_EXPANDED,(function(e,t,n){n!==i._isCenterExpanded&&(n?i.expand("center"):i.restore("center"))})),this._unbindCenterProperties=function(){t.remove(),delete i._centerProperties,delete i._unbindCenterProperties})},_getProperties:function(e){if("center"===e)return this._centerProperties;var t=this._borderInfo[e];return t?t.properties:null},_computeSplitterOverhead:function(){var e=0,t=0,i=this._borderInfo;return Object.keys(this._borderInfo).forEach((function(n){i[n.hasSplitter]&&("H"===i[n].splitterOrientation?t+=i[n].visibleSplitterThickness:e+=i[n].visibleSplitterThickness)})),{w:e,h:t}},_computeFreeDimension:function(e,t,i){var n,o=Math.max(1,t-i),r=this._dragInfo[e.region];if(r)return e.freeDimension=this._computeFreeDimensionFromSplitterPosition(e,r.splitterPosition,t),this._enforceFreeDimensionLimits(e),e.freeDimension;if(e.isCollapsed)return void 0===e.freeDimension&&(e.freeDimension=this._getCollapsedThickness(e)),e.freeDimension;var a=this._oppositeBorderInfo(e),s=0;if(e.isExpanded)return this._centerWidget&&(s=this._isCenterCollapsed()?"left"===e.region||"right"===e.region?this._centerProperties.getCollapsedSize().w:this._centerProperties.getCollapsedSize().h:"left"===e.region||"right"===e.region?this.minimumCenterWidth:this.minimumCenterHeight),e.freeDimension=t-s,a&&(e.freeDimension-=(a.isCollapsible?this._getCollapsedThickness(a):a.freeDimension)+(a.visibleSplitterThickness?a.visibleSplitterThickness:0)),e.freeDimension;if(e.fillAvailable)return t;if(a){if(e.followOpposite)return e.freeDimension=t-a.freeDimension-(a.splitterNode?a.visibleSplitterThickness:0),e.freeDimension;if(a.followOpposite&&a.isCollapsed)return e.freeDimension=t-e.postSplitterOverlap-e.visibleSplitterThickness-e.preSplitterOverlap,e.freeDimension}if(e.freeDimension&&(e.isResizable||e.isProportional)||((n=void 0!==e.initialDimension?e.initialDimension:this._getDimensionFromStyle(e))&&(n.indexOf("%")>=0?e.freeDimension=Math.floor(parseInt(n.slice(0,-1),10)*o/100):e.freeDimension=c.toPixelValue(e.widget.domNode,n)+this._getBorderThickness(e)),this._updatePortion(e,t,i)),e.isProportional||!e.freeDimension){var l=e.freeDimension;e.freeDimension=Math.round(this._getProportion(e)*o),e.minSize&&e.freeDimension<e.minSize&&(e.freeDimension=e.minSize),e.minAutoSize&&e.freeDimension<e.minAutoSize&&(e.freeDimension=e.minAutoSize,l&&l<e.freeDimension&&(e.freeDimension=l))}return this._enforceFreeDimensionLimits(e),e.freeDimension},_computeFreeDimensionFromSplitterPosition:function(e,t,i){var n=l.getPadExtents(this.domNode,this.computedStyle),o="left"===e.region||"top"===e.region?t+e.preSplitterOverlap:i-t-e.splitterThickness+e.postSplitterOverlap;switch(e.region){case"left":o-=n.l;break;case"top":o-=n.t;break;case"right":o+=n.l;break;case"bottom":o+=n.t}return o},_computeSplitterPositionFromFreeDimension:function(e,t,i){var n=l.getPadExtents(this.domNode,this.computedStyle),o="left"===e.region||"top"===e.region?t-e.preSplitterOverlap:i-t-e.splitterThickness+e.postSplitterOverlap;switch(e.region){case"left":o+=n.l;break;case"top":o+=n.t;break;case"right":o-=n.l;break;case"bottom":o-=n.t}return o},_enforceFreeDimensionLimits:function(e){void 0!==e.maxSize&&e.freeDimension>e.maxSize&&(e.freeDimension=e.maxSize),!e.isCollapsible&&void 0!==e.minSize&&e.freeDimension<e.minSize&&(e.freeDimension=e.minSize)},_updatePortion:function(e,t,i){var n;e.freeDimension&&!e.isCollapsed&&e.isProportional&&!e.fillAvailable&&(n=Math.max(1,t-i),e.proportion=e.freeDimension/n)},_collapse:function(e){if(!e.isCollapsed&&e.isCollapsible)if(e.initComplete){this._centerWidget||(e.isCollapsing=!0,this._updateLayoutConstraints());var t=e.followOpposite;t&&(e=this._oppositeBorderInfo(e));var i=this._dragInfo[e.region];i||(i=this._initDragInfo(e,0,0),this._dragInfo[e.region]=i),i.done=!0,this._doCollapse(i,t)}else e.collapsePending=!0},_restore:function(e){if(e.isCollapsed||e.isExpanded){var t=e.followOpposite;t&&(e=this._oppositeBorderInfo(e));var i=this._dragInfo[e.region];i||(i=this._initDragInfo(e,0,0),this._dragInfo[e.region]=i),i.done=!0,this._doRestore(i,t)}},_restoreCenter:function(e){if(this._centerSize&&this._preCollapseCenterSize){var t,i=this,o=this._oppositeRegion(e),r=this._borderInfo[o];switch(e){case"left":t=this._preCollapseCenterSize.w-this._centerSize.w;break;case"top":t=this._preCollapseCenterSize.h-this._centerSize.h;break;case"right":t=this._centerSize.w-this._preCollapseCenterSize.w;break;case"bottom":t=this._centerSize.h-this._preCollapseCenterSize.h}var a=this._initDragInfo(r,0,0);this._dragInfo[o]=a;var s=Math.min(Math.max(a.splitterPosition+t,a.lowerLimit),a.upperLimit);r.isExpanded&&this._setExpanded(r,!1);var l=function(){a.animation=null,a.splitterPosition=s,i._animationEnded(),r.proportion=r.preCollapseCenterProportion,i.layout(),delete i._dragInfo[r.region],i.emit(v.STATE_CHANGED)};this.animationEnabled&&b.isAnimationEnabled()?(this._animationStarted(),a.animation=new n.Animation({curve:[a.splitterPosition,s],onAnimate:function(e){a.splitterPosition=Math.floor(e),i.layout()},onEnd:l}).play()):(l(),this._animationStarted())}},_beginSplitterDrag:function(e,t){if((u.isLeft(t)||"touchstart"===t.type)&&!e.isRestoring){if(this._dragInfo[e.region])return;!this._isCenterCollapsed()&&this._centerSize&&(this._preCollapseCenterSize=this._centerSize);var n=this._initDragInfo(e,t.pageX,t.pageY);this._dragInfo[e.region]=n,n.connections=[h(this.ownerDocument,p.move,i.hitch(this,"_continueSplitterDrag",n)),h(this.ownerDocument,p.release,i.hitch(this,"_endSplitterDrag",n))],T.blockUntilRelease(this.domNode)}b.stopEvent(t)},_initDragInfo:function(e,t,i){var n,o,r={borderInfo:e},a=this._oppositeBorderInfo(e),s=l.getContentBox(this.domNode,this.computedStyle),c=e.splitterBox||l.getMarginBox(e.splitterNode),d=l.getPadExtents(this.domNode,this.computedStyle),u=e.isCollapsed||a&&a.followOpposite&&a.isCollapsed,h="left"===e.region||"right"===e.region?this.minimumCenterWidth:this.minimumCenterHeight;if(this._centerProperties&&this._centerProperties.getCollapsedSize){var p=this._centerProperties.getCollapsedSize();p="left"===e.region||"right"===e.region?p.w:p.h}return"V"===e.splitterOrientation?(r.startPoint=t,r.splitterPosition=c.l,r.initialPosition=c.l,r.lastReferenceDimension=s.w,n=d.l,o=s.w,u||e.isExpanded||(e.restoredSplitterPosition=c.l,e.restoredReferenceDimension=s.w)):(r.startPoint=i,r.splitterPosition=c.t,r.initialPosition=c.t,r.lastReferenceDimension=s.h,n=d.t,o=s.h,u||e.isExpanded||(e.restoredSplitterPosition=c.t,e.restoredReferenceDimension=s.h)),"left"===e.region||"top"===e.region?(r.lowerLimit=n+this._getCollapsedThickness(e)-e.preSplitterOverlap,r.upperLimit=o+n,a?a.followOpposite?(r.upperLimit-=this._getCollapsedThickness(a)+e.splitterThickness-e.postSplitterOverlap,r.oppositeCollapsePosition=r.upperLimit):(r.upperLimit-=a.freeDimension,p?(r.centerCollapseThreshold=r.upperLimit-h+0,r.upperLimit-=p):this._centerWidget&&(r.upperLimit-=h),r.expandPosition=r.upperLimit-e.visibleSplitterThickness,a.isCollapsible&&(r.expandPosition+=a.freeDimension-this._getCollapsedThickness(a))):(p?(r.centerCollapseThreshold=r.upperLimit-h+0,r.upperLimit-=p):this._centerWidget&&(r.upperLimit-=h),r.expandPosition=r.upperLimit),r.collapsePosition=r.lowerLimit):(r.lowerLimit=n+(a?a.freeDimension:0)-e.preSplitterOverlap,p?(r.centerCollapseThreshold=r.lowerLimit+h-0,r.lowerLimit+=p):this._centerWidget&&(r.lowerLimit+=h),r.upperLimit=n+o-this._getCollapsedThickness(e)-e.splitterThickness+e.postSplitterOverlap,r.collapsePosition=r.upperLimit,r.expandPosition=r.lowerLimit,a&&a.isCollapsible&&(r.expandPosition+=this._getCollapsedThickness(a)-a.freeDimension)),r.lastPoint=r.startPoint,r},_continueSplitterDrag:function(e,t){var i,n,o,r,a=e.borderInfo,s=l.getContentBox(this.domNode,this.computedStyle),c="V"===a.splitterOrientation?s.w:s.h,d="V"===a.splitterOrientation?t.pageX:t.pageY,u=d-e.lastPoint;if("right"!==a.region&&"bottom"!==a.region||(u*=-1),i=this._oppositeBorderInfo(a),e.lastPoint=d,r=e.lastPoint-e.startPoint,Math.abs(r)>3&&!e.hasSplitterMoved&&(e.hasSplitterMoved=!0,this._resizeDragStarted(),this.emit(v.SPLITTER_DRAG_STARTED,a.region)),(n=e.initialPosition+r)<e.lowerLimit?n=e.lowerLimit:n>e.upperLimit&&(n=e.upperLimit),a.isCollapsible&&(o=this._computeFreeDimensionFromSplitterPosition(a,n,c),u>0&&o>0&&this._setCollapsed(a,!1),u<0&&o>0&&o<a.freeDimension&&o<a.minSize-0&&this._doCollapse(e)),i&&i.followOpposite&&i.isCollapsible?(u*=-1,o=this._computeFreeDimensionFromSplitterPosition(i,n,c),u>0&&o>0&&this._setCollapsed(i,!1),u<0&&o>0&&o<i.freeDimension&&o<i.minSize-0&&this._doCollapse(e,!0)):e.centerCollapseThreshold&&(r>0&&n>e.centerCollapseThreshold&&("left"===a.region||"top"===a.region)&&(n=e.upperLimit),r<0&&n<e.centerCollapseThreshold&&("right"===a.region||"bottom"===a.region)&&(n=e.lowerLimit)),!(e.animation||a.isCollapsed||i&&i.followOpposite&&i.isCollapsed||n===e.splitterPosition)){var h=n;if(i&&i.hasSplitter&&"V"===i.splitterOrientation)if("left"===a.region){var p=i.splitterBox.l-5;h>p&&(h=p)}else if("right"===a.region){var f=i.splitterBox.l+5;h<f&&(h=f)}e.splitterPosition=h,this.layout()}},_endSplitterDrag:function(e){var t=e.borderInfo,i=this._oppositeBorderInfo(t);if(e.connections.forEach((function(e){e.remove()})),e.hasSplitterMoved){if(!(t.isCollapsed||i&&i.followOpposite&&i.isCollapsed||e.animation)){this._isCenterCollapsed()&&(t.preCollapseCenterProportion=t.proportion);var n=l.getContentBox(this.domNode,this.computedStyle);"H"===t.splitterOrientation?t.proportion=t.freeDimension/n.h:t.proportion=t.freeDimension/n.w}e.animation?e.done=!0:(delete this._dragInfo[t.region],this._resizeDragEnded(),this.emit(v.SPLITTER_DRAG_ENDED,t.region),this.emit(v.STATE_CHANGED))}else delete this._dragInfo[t.region]},_handleDoubleClick:function(e,t){if(!e.isCollapsing&&!e.isRestoring){var i=this._oppositeBorderInfo(e);i&&i.followOpposite||(e.isCollapsed?this._restore(e):this._collapse(e))}b.stopEvent(t)},_doCollapse:function(e,t){if(!e.animation){var i=this,o=e.borderInfo,r=t?i._oppositeBorderInfo(o):o;if(t||!o.fillAvailable)o.preCollapseFreeDimension=o.freeDimension;else{var a=l.getContentBox(this.domNode,this.computedStyle);o.preCollapseFreeDimension=Math.floor(("left"===o.region||"right"===o.region?a.w:a.h)/2)}var s=function(){e.animation=null,e.splitterPosition=t?e.oppositeCollapsePosition:e.collapsePosition,i._layoutChildren()||(o.freeDimension=i._getCollapsedThickness(o)),r.isCollapsing=!1,i._setCollapsed(r,!0),i._updateExpandedStates(),i._animationEnded(),i.layout(),e.done&&(delete i._dragInfo[o.region],i.emit(v.STATE_CHANGED)),i.emit(v.SPLITTER_DRAG_ENDED,o.region)};r.isCollapsing=!0,this.animationEnabled&&b.isAnimationEnabled()?(this._animationStarted(),e.splitterStartPosition=e.splitterPosition,e.animation=new n.Animation({curve:[0,1],onAnimate:function(n){var o=(t?e.oppositeCollapsePosition:e.collapsePosition)-e.splitterStartPosition;e.splitterPosition=e.splitterStartPosition+Math.floor(n*o),i.layout()},onEnd:s}).play()):(s(),this._animationStarted())}},_doExpand:function(e){if(!e.animation){var t=this,i=e.borderInfo;this._preCollapseCenterSize=this._centerSize;var o=function(){e.animation=null,e.splitterPosition=e.expandPosition,t._setExpanded(i,!0),t._animationEnded(),t.layout(),e.done&&(delete t._dragInfo[i.region],t.emit(v.STATE_CHANGED)),t.emit(v.SPLITTER_DRAG_ENDED,i.region)};this.animationEnabled&&b.isAnimationEnabled()?(this._animationStarted(),e.splitterStartPosition=e.splitterPosition,e.animation=new n.Animation({curve:[0,1],onAnimate:function(i){var n=e.expandPosition-e.splitterStartPosition;e.splitterPosition=e.splitterStartPosition+Math.floor(i*n),t.layout()},onEnd:o}).play()):(o(),this._animationStarted())}},_doRestore:function(e,t){if(!e.animation){var i=this,o=e.borderInfo;o.isRestoring=!0;var r,a,s=l.getContentBox(this.domNode,this.computedStyle),c="V"===o.splitterOrientation?s.w:s.h;o.restoredSplitterPosition&&(r=o.restoredSplitterPosition,c!==o.restoredReferenceDimension&&(r*=c,r/=o.restoredReferenceDimension)),r||(a="left"===o.region||"top"===o.region?.25:.75,r=Math.floor(a*c)),t?this._setCollapsed(this._oppositeBorderInfo(o),!1):this._setCollapsed(o,!1),this._clearExpandedStates();var d=function(){e.animation=null,e.splitterPosition=r,i._animationEnded(),o.isExpanded=!1,i.layout(),e.done&&(delete i._dragInfo[o.region],i.emit(v.STATE_CHANGED)),o.isRestoring=!1};this.animationEnabled&&b.isAnimationEnabled()?(this._animationStarted(),e.animation=new n.Animation({curve:[e.splitterPosition,r],onAnimate:function(t){e.splitterPosition=Math.floor(t),i.layout()},onEnd:d}).play()):(d(),this._animationStarted())}},_getCollapsedWidget:function(e){if(!e.collapsedWidget){var t=new g({content:"H"===e.splitterOrientation?w:I});t.isDefaultCollapsedWidget=!0,a.add(t.domNode,"collapsedBorderChild"+e.splitterOrientation),r.setSelectable(t.domNode,!1),b.preventFocus(t.domNode);var n=e.followOpposite?this._oppositeBorderInfo(e):e;t.own(h(t.domNode,p.press,i.hitch(this,"_beginSplitterDrag",n))),t.own(h(t.domNode,"contextmenu",(function(e){e.preventDefault()}))),e.collapsedWidget=t}return e.collapsedWidget},_getCollapsedThickness:function(e){if(!e.collapsedThickness){var t,i=this._getCollapsedWidget(e);c.set(i.domNode,{visibility:"hidden"}),s.place(i.domNode,this.domNode),t=l.getContentBox(i.domNode),e.collapsedThickness="H"===e.splitterOrientation?t.h:t.w,this.domNode.removeChild(i.domNode),c.set(i.domNode,{visibility:"visible"})}return e.collapsedThickness},_updateExpandedStates:function(){var e,t,i,n,o=0,r=0;for(this._centerWidget&&(o+=1,e="center"),t=Object.keys(this._borderInfo),i=0;i<t.length&&o<=1;i+=1)(n=this._borderInfo[t[i]]).isCollapsible&&(r++,n.isCollapsed||(o+=1,e=t[i]));1===o&&("center"===e?!this._isCenterExpanded&&r&&(this._setCenterExpanded(!0),this._regionsCollapsedUponCenterExpand=t):(n=this._borderInfo[e]).isExpanded||(this._setExpanded(n,!0),n.regionsCollapsedUponExpand=t.filter((function(t){return t!==e}))))},_clearExpandedStates:function(){this._setCenterExpanded(!1);for(var e=Object.keys(this._borderInfo),t=0;t<e.length;t++){var i=this._borderInfo[e[t]];i.isRestoring||this._setExpanded(i,!1)}},_animationStarted:function(){this._activeAnimationCount++},_animationEnded:function(){this._activeAnimationCount--},isAnimating:function(){return this._activeAnimationCount>0},_resizeDragStarted:function(){this._resizeDragCount++},_resizeDragEnded:function(){this._resizeDragCount--},isResizingViaDrag:function(){return this._resizeDragCount>0},destroyRecursive:function(){var e,t,i;for(e=Object.keys(this._borderInfo),t=0;t<e.length;t++)(i=this._borderInfo[e[t]]).collapsedWidget&&!i.isCollapsed&&i.collapsedWidget.destroyRecursive();this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{icon:new e({type:"string",notInAction:!1,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_updateDOM:function(e){this._removeOldIcon(),this._applyNewIcon(this._getIconForDOM())},_getIconForDOM:function(){return this.hasOwnProperty("iconOverride")&&""!==this.iconOverride?this.iconOverride:this.hasOwnProperty("iconProp")&&""!==this.iconProp&&this[this.iconProp]?this[this.iconProp]:""===this.icon&&this.hasOwnProperty("quickAccessIcon")&&""!==this.quickAccessIcon?this.quickAccessIcon:this.icon}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1047),i(1817),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e([i],{Fixed:void 0,Dynamic:void 0,isDocked:!0,constructor:function(e){delete this.Fixed},isUndockable:function(){var e,t;if(!this.documentFactory&&!this.factoryPath)return!1;if(this.tabGroupTags&&this.tabGroupTags.length>0){if(!this.tabGroupFactories)return!1;for(e=0;e<this.tabGroupTags.length;e++)if(t=this.tabGroupTags[e],!this.tabGroupFactories[t])return!1}return!0}});return r.DOCUMENT_COUNT=i.DOCUMENT_COUNT,r.FACET="documentType",r.IS_DOCKED="isDocked",r.WINDOW_BOUNDS="windowBounds",r.ORIGIN="origin",r.IS_MAXIMIZED=i.IS_MAXIMIZED,r.IS_OPEN=i.IS_OPEN,r.LAST_SELECTED=i.LAST_SELECTED,r.TILE=i.TILE,r.SUB_GRID_SIZE=i.SUB_GRID_SIZE,r.SHRINK_TABS_TO_FIT=i.SHRINK_TABS_TO_FIT,r.BOTTOM_LEFT_ORIGIN=n.BOTTOM_LEFT_ORIGIN,r.TOP_LEFT_ORIGIN=n.TOP_LEFT_ORIGIN,r}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(209)],o=i.dj.d(n,(function(e){"performance"in window==="false"&&(window.performance={}),"function"!=typeof window.performance.mark&&(window.performance.mark=function(){}),"function"!=typeof window.performance.measure&&(window.performance.measure=function(){});return{start:function(e){this.mark(e+"__S")},end:function(e){this.mark(e+"__E"),this.measure(e,e+"__S",e+"__E")},mark:function(t){void 0===t?e.warn("Missing parameter for Timing mark."):window.performance.mark(t)},measure:function(t,i,n){if(arguments.length>0)try{window.performance.measure(t,i,n)}catch(t){e.warn(t.message)}else e.warn("Missing the first parameter for Timing measure.")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{DELETE_NODE:"deleteNode",DELETE_TEXT:"deleteText",INSERT_NODE:"insertNode",INSERT_TEXT:"insertText",MERGE_NODE:"mergeNode",SPLIT_NODE:"splitNode",UPDATE_ATTRIBUTES:"updateAttributes"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(282),i(270),i(573),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e){this.children=e,this.children.forEach((function(e){e.parent=this}),this)},className:"InnerNode",getDefaultChild:function(){o.error("getDefaultChild() has to be overloaded in "+this.className+".")},_childOffset:function(e){var t=this.startNode();if(t){if(e===t)return 0;for(var i=0,n=t.textContainer();t!==e&&(i+=t.maxOffset(),t=t.nextNode());)t.textContainer()!==n&&t.textContainer()!==n.textContainer()&&(i+=this.CHILD_TEXT_SEPARATOR.length),n=t.textContainer();return i}return 0},firstChild:function(){if(this.children.length>0)return this.children[0];o.assert("InnerNode must have at least one child")},lastChild:function(){if(this.children.length>0)return this.children[this.children.length-1];o.assert("InnerNode must have at least one child")},addChild:function(e,t){e&&(1===arguments.length&&(t=this.children.length),e.parent=this,this.children.splice(t,0,e))},replaceChild:function(e,t){e&&(e.parent=this,this.children.splice(t,1,e))},removeChild:function(e){var i=t.indexOf(this.children,e);e.parent=null,this.children.splice(i,1)},empty:function(){var e,t=this.children.length;for(e=0;e<t;e+=1)this.children[e].parent=null;this.children=[]},startNode:function(){return this.children.length>0?this.children[0].startNode():null},endNode:function(){return this.children.length>0?this.children[this.children.length-1].endNode():null},CHILD_TEXT_SEPARATOR:"",getText:function(){return this._getTextRepresentation((function(e){return e.getText()}))},getTextForPositioning:function(){return this._getTextRepresentation((function(e){return e.getTextForPositioning()}))},getCodeText:function(){return""},getCodeTextOfChildren:function(){return this._getTextRepresentation((function(e){return e.getCodeText()}))},_getTextRepresentation:function(e){for(var t="",i=this.children.length,n=0;n<i;n+=1)t+=e(this.children[n]),n<i-1&&(t+=this.CHILD_TEXT_SEPARATOR);return t},maxOffset:function(){var e=0;if(this.children&&this.children.length>0){var t=this.CHILD_TEXT_SEPARATOR.length;this.children.forEach((function(i,n){e+=i.maxOffset()+(n>0?t:0)}))}return e},childrenAreContainers:!1,getPositionFromOffset:function(e){if(!(this.children&&this.children.length>0))return null;for(var t=this.startNode(),i=this.endNode(),n=t.textContainer();e>t.maxOffset();){if(t===i)return t.endPosition();e-=t.maxOffset(),(t=t.nextNode()).textContainer()!==n&&t.textContainer()!==n.textContainer()&&(e-=t.rootContainer().CHILD_TEXT_SEPARATOR.length),n=t.textContainer()}return t.getPositionFromOffset(e)},startPosition:function(){return this.startNode()&&this.startNode().startPosition()},endPosition:function(){return this.endNode()&&this.endNode().endPosition()},getEquivalentChildPositions:function(e){for(var t,n,o=[],r=0,a=0,s=0;s<this.children.length;s++)r=a,a+=(t=this.children[s]).maxOffset(),s>0&&(r+=this.CHILD_TEXT_SEPARATOR.length,a+=this.CHILD_TEXT_SEPARATOR.length),r<=e&&e<=a&&(n=e-r,o.push(new i(t,n)));return o},resetUniqueAttributes:function(){this.inherited(arguments),delete this.anchorId},isSplittable:function(e){if(0===e||e===this.maxOffset())return!1;var t=this.getEquivalentChildPositions(e)[0];return!!t.isAtEdge()||t.getNode().isSplittable(t.getOffset())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{JSON:"json",XML:"xml",NONE:""}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(453)],o=i.dj.d(n,(function(e){var t=["class","mathvariant","style","id","data-category",e.XMLNSMWMMLX_PREFIX,e.MWMMLX_TEMPLATE,e.MWMMLX_VARNAME,e.MWMMLX_DATACATEGORY,e.MWMMLX_EXTRAS];return{MATHML_XMLNS:'xmlns="http://www.w3.org/1998/Math/MathML"',commonMathMLAttributes:t.concat([]),startTag:function(e,i,n,o){e.attribBlackList=e.attribBlackList||[],o=o||[];var r="<"+i;return t.concat(o).forEach((function(t){if(n.hasOwnProperty(t)&&void 0!==n[t]&&-1===e.attribBlackList.indexOf(t)){var i=n[t];Array.isArray(i)&&(i=i.join(" ")),r+=" "+t+'="'+(""+i).replace(/"/g,"&quot;")+'"'}})),r+=">"},maskSpecialCharacters:function(e){var t={"&":"&amp;","<":"&lt;"};return e.replace(/[&<]/g,(function(e){return t[e]}))},endTag:function(e){return"</"+e+">"},emptyTag:function(e){return"<"+e+"/>"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(229),i(470),i(662)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{"-chains-":{constructor:"manual"},constructor:function(){this.inherited(arguments,[[]]),this.boxes={},this.uid=t.generateUuid()},className:"SectionBreak",groupingType:n.CONTAINMENT,containerType:function(){return""},getDefaultChild:function(){return null},endNode:function(){return this.previousSibling()?this.previousSibling().endNode():null},startNode:function(){return this.nextSibling()?this.nextSibling().startNode():null},getPositionFromOffset:function(e){return this.nextSibling().getPositionFromOffset(e)},startPosition:function(){return this.previousSibling().endPosition()},endPosition:function(){return this.nextSibling().startPosition()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(274),i(333),i(379),i(425),i(414),i(673),i(727)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=["true","false","0","1"],l=/=\s*$/,c=/^[A-Za-z0-9_\s]+\s*$/,d=/^0[xX][0-9a-fA-F]+/,u=/^0[bB][01]+/;return{LIVE_CONTROL_DIV:"liveControlDiv",getControlNearCursor:function(e,t){return this.getControlBeforeCursor(e,t)||this.getControlAfterCursor(e,t)},getControlAfterCursor:function(e,t){return t.isAtLeftEdge()?this._getNodeIfLiveControlNode(e):t.isAtRightEdge()?this._getNodeIfLiveControlNode(e.nextSibling()):null},getControlBeforeCursor:function(e,t){return t.isAtRightEdge()?this._getNodeIfLiveControlNode(e):t.isAtLeftEdge()?this._getNodeIfLiveControlNode(e.previousSibling()):null},_getNodeIfLiveControlNode:function(e){return e instanceof n?e:null},isLiveControlNode:function(e){return!!this._getNodeIfLiveControlNode(e)},isLiveControlWidget:function(e,t){return!!t.getNodeWidget(e)},isLiveControlNodeInRange:function(e){return i.isNodeTypeInSelection(e,n)},getLiveControlNodesOnLineNode:function(e){var t=[];return e.children.forEach((function(e){e instanceof n&&t.push(e)})),t},getLiveControlNodesInRange:function(e){var i=[];return t.rangeIterator(e,(function(e,t,o){e instanceof n&&o>t&&i.push(e)})),i},getLiveControlNodesInDocument:function(t){var i=[],o=t.startNode(),r=t.endNode();return e.leafNodesInRangeIterator(o,r,(function(e){e instanceof n&&i.push(e)})),i},isLineColumnInComment:function(e,t,i){return i.willTextAtLineColumnBeComment(e-1,t-1)},getWidgetTypes:function(e){var t=[];return-1!==s.indexOf(e)&&t.push(r.BOOLEAN),this.isScalarWidgetType(e)?t.push(r.SCALAR):""===e.trim()?t.push(r.EMPTY_STRING):this._isStringWidgetType(e)&&t.push(r.STRING),0===t.length&&t.push(r.NONE),t},isScalarWidgetType:function(e){return!isNaN(e)&&""!==e.trim()&&!this._isBinaryOrHexadecimalValue(e)},_isBinaryOrHexadecimalValue:function(e){return d.test(e)||u.test(e)},_isStringWidgetType:function(e){return a.isMatlabString(e)},enableOrDisableControl:function(e,t,i){for(var r=!1,a=0;a<e.length;a++){var s=e[a];if(s instanceof n){var l=i.getNodeWidget(s);if(!l)continue;var c=s.startPosition(),d=c.getLine(),u=c.getColumn(),h=this.isLineColumnInComment(d,u,t);s.parent&&(o.setDisabled(l,h),h&&(r=!0))}}return r},setDisabledPropertyOfControlInNodes:function(e,t,i){for(var r=0;r<e.length;r++){var a=e[r];if(a instanceof n){var s=i.getNodeWidget(a);t&&o.setEditMode(s,!1),s.domNode&&o.setDisabled(s,t)}}},getAssignmentVariable:function(e,t){var i=e.slice(0,t-1),n=i.search(l);if(-1!==n){var o=i.slice(0,n),r=o.indexOf(";");-1!==r&&(o=o.slice(r+1));var a=o.search(c);if(-1!==a)return o.slice(a).trim()}},setCursorAndClearSelection:function(e,t){var i=e.getCursors()[0],n=t.endPosition().getLineColumn();i.setLineColumn(n.line,n.column),e.clearSelection(),e.hide()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{INSERT_BREAK:0,INSERT_TEXT:1,DELETE:2}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(234),i(237),i(620),i(475),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(o,{_TARGET_REGEXP:void 0,_END_STRING:s.getTokenValueById(a.TOKENS.END),_LINE_COLUMN_LESS_THAN_ZERO:"Line and column must be greater than or equal to zero",_DOCUMENT_IS_READ_ONLY:"This document should not be read only",_isTriggerTypeExpected:function(e){return e.type===r.INSERT_BREAK},_isTriggerPositionExpected:function(e){if(!this._validCursorAndTriggerPositions(e.cursorPos,e.triggerPos))return!1;var n=e.triggerPos.getNode(),o=e.cursorPos.getNode(),r=e.triggerPos.getLineColumn().line-1,a=e.triggerPos.getLineColumn().column-1;t.assert(r>=0&&a>=0,this._LINE_COLUMN_LESS_THAN_ZERO);var s=this._matlabTokenManager.findStartOfBlockOnLine(r);if(s)var l=s.getValue()===this._TARGET_REGEXP;return l&&i.isCodeContainer(n)&&i.isCodeContainer(o)&&this._matlabTokenManager.isUnmatchedStartToken(s)},_validCursorAndTriggerPositions:function(e,t){return e.getLine()-t.getLine()==1},_findAndRecordTarget:function(e){var t=e.triggerPos.getLineColumn().line,i=this._getRangeOfDirectivesOnLine(t);return!!i&&(e.target=i,!0)},_getRangeOfDirectivesOnLine:function(e){return n.getRangeAndTextOfTargetOnLine(this._internalDocument,e,this._TARGET_REGEXP)},format:function(e){t.assert(!(this._document.isReadOnly()||e.cursor.isCursorReadOnly()),this._DOCUMENT_IS_READ_ONLY);var i=e.cursorPos.getLineColumn().line,n=e.cursorPos.getLineColumn().column,o=this._document.getLineLength(i),r=this._indentUtilities.getIndentForLineNumber(i-2);this._document.insertText("\n",i,o+1),this._document.insertText(this._END_STRING,i+1,1),r>0&&this._indentUtilities.changeLineIndent(i,r),this._tokenSpecificFormat(i,n,o,r,e)},_tokenSpecificFormat:function(e,t,i,n,o){o.cursor.setLineColumn(e,t,!0)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(4465),i(4470)],o=i.dj.d(n,(function(e,t,i){return function(e,n){var o=[],r=t.fromNode(e),a=i.fromNode(e),s=function(e){Array.isArray(e)||(e=[e]),e.forEach((function(e){e.attachInputStream(r),e.attachInputStream(a)})),o=o.concat(e)};return n&&s(n),{add:s,remove:function(e){},getAttachedRecognizers:function(){return o},destroy:function(){r.destroy(),a.destroy(),o.forEach((function(e){return e.destroy()}))},preventFocus:function(){r.preventFocus()},allowFocus:function(){r.allowFocus()},stopPropagation:function(){r.stopPropagation(),a.stopPropagation()},allowPropagation:function(){r.allowPropagation(),a.allowPropagation()},preventDefault:function(){r.preventDefault(),a.preventDefault()},allowDefault:function(){r.allowDefault(),a.allowDefault()},addHoverListeners:function(){return r.addHoverListeners()},resetAll:function(){r.clearInput(),o&&o.forEach((function(e){return e.reset()}))}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(470)],o=i.dj.d(n,(function(e,t){return e([t],{className:"TableOfContentsContainer",constructor:function(e,t){this.wrappable=!0,t&&t.anchorId&&(this.anchorId=t.anchorId)},CHILD_TEXT_SEPARATOR:"\n",getDefaultChild:function(){return null},isTextContainerNode:function(){return!0},isReadOnly:function(){return!1},isSplittable:function(e){return!1},containerType:function(){return"toc"},_serializeAttributes:function(e){this.anchorId&&(e.anchorId=this.anchorId)},childrenAreContainers:!0})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(349)],o=i.dj.d(n,(function(e,t,i){return e(null,{_getPreferredSizeAttr:function(){var e=this.domNode.offsetWidth||this.get("width"),n=this.domNode.offsetHeight||this.get("height"),o=this.domNode.parentNode,r=o.offsetWidth||t.get(o,"width"),a=o.offsetHeight||t.get(o,"height");t.set(o,"width","auto"),t.set(o,"height","auto"),this.set("width","auto"),this.set("height","auto");var s=i.SPAN.MINIMUM_WIDTH,l=i.SPAN.MINIMUM_HEIGHT,c=this.get("text");0===c.length&&this.set("text",".");var d=this.domNode.offsetWidth||t.get(this.domNode,"width"),u=this.domNode.offsetHeight||t.get(this.domNode,"height");if(0===u||0===u){var h=this._getDimensionByClassOverride(e,n);d=h.width,u=h.height}var p={width:d=Math.max(d,s),height:u=Math.max(u,l)};return 0===c.length&&this.set("text",""),t.set(o,"width",r+"px"),t.set(o,"height",a+"px"),this.set("width",e),this.set("height",n),p},getDropDownArrowWidth:function(e){if(isNaN(e))throw new Error("fontSize was empty");var t=1/3*e;return 4+t+t+4},positionDropDownArrow:function(e,i,n,o){if(isNaN(n))throw new Error("fontSize was empty");if(isNaN(o)&&"100%"!==o)throw new Error("height was empty");var r,a=1/3*n,s=a*Math.sqrt(3);"100%"===o?r="calc(50% - "+s/2+"px)":(r=(o-s)/2,r+="px");var l=4+a+a+4;return t.set(e,{"border-left":a+"px solid transparent","border-right":a+"px solid transparent","border-top":s+"px solid rgb(10, 2, 2)",right:"4px",top:r}),i.offsetWidth<l?t.set(i,{width:l+"px"}):t.set(i,{width:"22px"}),l},_getDimensionByClassOverride:function(e,t){this.domNode.classList.add("calculatingPreferredSize");var i=this.domNode.offsetWidth,n=this.domNode.offsetHeight;return this.domNode.classList.remove("calculatingPreferredSize"),{width:i||e,height:n||t}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){e.peerNode.getChildren().forEach(function(e){this._handleChildAdd({data:{child:e}})}.bind(this)),e.peerNode.addEventListener("childAdded",this._handleChildAdd,this)},approveChildAdd:function(e){return!0},addChild:function(e,t){},removeChild:function(e){},getChildContainer:function(e){return{parentDijit:this.widget,parentDomNode:this.widget.containerNode}},destroy:function(){this._peerNode.removeEventListener("childAdded",this._handleChildAdd,this),this._peerNode.getChildren().forEach((function(e){e.hasEventListener("propertiesSet",this._handleChildPropertiesSet,this)&&e.removeEventListener("propertiesSet",this._handleChildPropertiesSet,this)}),this),this.inherited(arguments)},_handleChildAdd:function(e){e.data.child.addEventListener("propertiesSet",this._handleChildPropertiesSet,this)},_handleChildPropertiesSet:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(245),i(284),i(5713)],o=i.dj.d(n,(function(e,t,i,n,o,r){function a(e,t){return!0===e.ctrlKey&&!0!==e.shiftKey&&0===e.button||!0!==e.shiftKey&&2===e.button||!0===e.shiftKey&&!0===e.ctrlKey&&2===e.button?"alt":!0===e.shiftKey&&!0!==e.ctrlKey&&0===e.button||1===e.button||0===e.button&&2===e.button||!0===e.shiftKey&&2===e.button?"extend":t}var s=e(null,{addMouseEventListeners:function(e){e.classList.add("supportsMouseInteractions");var t=0,n="",o="normal",r="",a=0,s=0;this.own(this._mousedown=i(e,"mousedown",function(e){var i=(new Date).getTime();r=e.target,i-t<400&&a===e.clientX&&s===e.clientY&&e.button===n?(t=i,n=e.button,o="open",this.onMouseEvent(e,o,r)):(o="normal",t=i,n=e.button,a=e.clientX,s=e.clientY,this.onMouseEvent(e,o,r))}.bind(this)),this._mousemove=i(e,"mousemove",function(e){this.onMouseEvent(e,o,r)}.bind(this)))},getMouseInteractionBoundingNode:function(){return"function"==typeof this.getProperty&&o.toJSBoolean(this.getProperty("Scrollable"))?this.widget.containerNode:this.getParentFigure().figureLayoutContainer.containerNode},onMouseEvent:function(e,t,i){var n=this.getMouseInteractionBoundingNode().getBoundingClientRect();if(this._shouldProcessMouseEvent(e,i,n)){var o={data:{type:e.type,position:this._getPositionRelativeToFigure(e),selectionType:a(e,t),button:e.button}},r=this._getComponentSpecificMouseEventInformation(e);r&&(o.data.componentData=r),"mousemove"===e.type?this.handleUserInteraction("processMouseMoveEvent",o):this.handleUserInteraction("processButtonEvent",o)}},_getComponentSpecificMouseEventInformation:function(e){},getParentFigure:function(){for(var e=this;null!==e.getParentController();)e=e.getParentController();return e},onMouseWheel:function(e){var t="normal";!0===e.ctrlKey&&0===e.button?t="alt":!0===e.shiftKey&&0===e.button||n("win")&&0===e.button&&2===e.button||n("linux")&&1===e.button||n("mac")&&0===e.button&&2===e.button||n("mac")&&1===e.button?t="extend":0===e.button&&(t="normal");var i=this._getPositionRelativeToFigure(e),o=e.deltaY||-e.wheelDelta||e.detail;(o/=Math.abs(o))||(o=1);var r={data:{type:e.type,position:i,selectionType:t,verticalCnt:o,verticalAmt:3}};this.handleUserInteraction("processButtonScrollEvent",r)},_shouldProcessMouseEvent:function(e,t,i){return"mousemove"===e.type?this._shouldProcessMouseMove(e,t,i):"mouseup"===e.type?this._shouldProcessMouseUp(e,t):this.validateMouseEventTarget(t)},validateMouseEventTarget:function(e){return this._VCWidgetDOMNode?this._VCWidgetDOMNode.contains(e):this.widget.domNode.contains(e)},_shouldProcessMouseUp:function(e,t){if(""===t||"CANVAS"===t.tagName||"IMG"===t.tagName&&t.classList.contains("ImageView"))return!1;if(t.classList.contains("gbtScrollable-on"))return!1;var i=t.closest(".vc-widget, .gbtWidget, .gbtFigureFrame");if(null===i)return!1;var n=i.classList.contains("supportsMouseInteractions");return null!==t.closest(".supportsKeyInteractions")&&null===t.closest(".supportsLeftClickInteractions")&&0===e.button&&(n=!1),n},_shouldProcessMouseMove:function(e,t,i){return this.validateMouseEventTarget(e.target)},_getPositionRelativeToFigure:function(e){var t;this.hasOwnProperty("_figureDomNode")?t=this._figureDomNode:t=this.getParentFigure().widget.scrollableNode;for(var i,n,o=e.clientX,r=e.clientY,a=0,s=t;s;)o-=s.offsetLeft,r-=s.offsetTop,a+=s.scrollTop,s=s.offsetParent;return t.classList.contains("gbtScrollable-on")?(i=t.scrollHeight,n=t.scrollLeft):(i=t.offsetHeight,n=t.offsetLeft),[o+1+Math.floor(n),i-Math.floor(a)-r]}});return e([r,s],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1494),i(2127)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(){this.ContextMenuId=null},_ContextMenuID:function(e){if(this._removeContextMenuTargets(),e&&0!==e.length){var n=t.getMap()[e],o=this._getContextMenuTargets();n?o.forEach((function(e){n.getController().addTriggerNode(e)})):(i.getMap()[e]||(i.getMap()[e]=[]),o.forEach((function(t){i.getMap()[e].push(t)}))),this.ContextMenuId=e}},_getContextMenuTargets:function(){return['[data-tag="'+this.getPeerNode().getId()+'"]']},_removeContextMenuTargets:function(){var e=t.getMap()[this.ContextMenuId];e&&(this._getContextMenuTargets().forEach((function(t){e.getController().removeTriggerNode(t)})),this.ContextMenuId=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(232),i(209),i(219),i(235)],o=i.dj.d(n,(function(e,t,i,n){var o=0,r=0;function a(e){"setLogFlagFromServer"===e.data.eventType&&(r=e.data.flag)}return i.subscribe("/VELogChannel",a),{DEFAULT_VE_DATA_TAG_ROOT:"datatools.variableeditor",runFactoryInitInMATLAB:function(i,n,r){try{var a="VariableEditorUtilsResponse_"+(o+=1);n&&e.registerResponseHandler("EvalResponse:"+a,n,this),r&&e.registerFaultHandler("Eval:"+a,r,this),i.endsWith(";")&&(i=i.substring(0,i.length-1)),e.sendMessage({FEval:{function:i,nargout:0,dequeMode:"idle"}},{},a)}catch(e){t.error(e),t.trace(e.stack)}},createDataTag:function(){return n.concatenateDataTagStrings("datatools.variableeditor",arguments)},isDebug:function(){return 2&r},isPerformance:function(){return 1&r},isInfo:function(){return 4&r},setDebug:function(e){e?this.addLogLevel(2):this.isDebug()&&this.removeLogLevel(2),this.publishLogLevel(r)},addLogLevel:function(e){r|=e},removeLogLevel:function(e){e<=r&&(r^=e)},publishLogLevel:function(e){try{i.publish("/VELogChannel",{eventType:"setLogFlagFromClient",LogLevel:e})}catch(e){}},logDebug:function(e){this.isDebug()&&t.debug(e)},receivedLogInfo:a,setLogLevel:function(e){r=e,this.publishLogLevel(r)},logDebugStackTraceMessage:function(){if(this.isDebug()){var e=this.getStackTrace();e.shift();var i=e.join("\n");t.debug("VECallStack: "+i)}},logDebugStackTraceArray:function(){if(this.isDebug()){var e=this.getStackTrace();e.shift(),t.debug(e)}},getStackTrace:function(){var e=[];try{throw new Error("Generating Stack")}catch(o){if(o.stack){for(var t=o.stack.split("\n"),i=0;i<t.length;i++){var n=t[i].split("at").join("").trim();e.push(n)}e.shift()}}return e.shift(),e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{modulePath:"MW/uiframework/uicontainer/UIComponentFactory",createWidget:function(e,t,i){return null},createProperties:function(e,t,i){return null},getState:function(e,t){return null},destroyWidget:function(e,t){},getCssFiles:function(){return[]}})}),e,t),e.exports=o},function(e,t){e.exports=void 0},function(e,t,i){var n,o;n=[i(420),i(209)],o=i.dj.d(n,(function(e,t){var i={deprecated:function(i){var n,o;(!!e.isDebug||!!window.showDeprecationsAsErrors)&&this._isConfigValid(i)&&(o=window.showDeprecationsAsErrors||i.deprecationLevel===this.ERROR?this.ERROR:this.WARN,n="DEPRECATED: ",i.deprecated&&(n+=i.deprecated.module,i.deprecated.method&&(n+="."+i.deprecated.method+"()"),n+="."),i.replacement&&(n+=" Use "+i.replacement.module,i.replacement.method&&(n+="."+i.replacement.method+"()"),n+=" instead."),i.removalVersion&&(n+=" Will be removed in version: "+i.removalVersion+"."),i.geckNumber&&(n+=" Please use g"+i.geckNumber+" to track latest information regarding this deprecation"),i.additionalInformation&&(n+=" "+i.additionalInformation),t[o](n))},_isConfigValid:function(e){var i=!!e.deprecated&&"object"==typeof e.deprecated&&e.deprecated.hasOwnProperty("module");return e.replacement&&(i=i&&"object"==typeof e.replacement&&e.replacement.hasOwnProperty("module")),e.geckNumber&&(i=i&&"number"==typeof e.geckNumber),i||t.error("Supplied deprecationConfig properties are not valid. Please refer to http://inside.mathworks.com/wiki/Web_Widgets_Deprecation_API for right API"),i}};return Object.defineProperties(i,{WARN:{value:"warn",enumerable:!0},ERROR:{value:"error",enumerable:!0}}),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(223),i(257),i(206),i(248)],o=i.dj.d(n,(function(e,t,i,n){function o(t){if((t.keyCode===e.ENTER||t.keyCode===e.SPACE)&&!/input|button|textarea/i.test(t.target.nodeName))for(var i=t.target;i;i=i.parentNode)if(i.dojoClick)return!0}var r;i(document,"keydown",(function(e){o(e)?(r=e.target,e.preventDefault()):r=null})),i(document,"keyup",(function(e){o(e)&&e.target==r&&(r=null,i.emit(e.target,"click",{cancelable:!0,bubbles:!0,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,altKey:e.altKey,_origType:e.type}))}));var a=function(e,t){return e.dojoClick=!0,i(e,"click",t)};return a.click=a,a.press=function(o,r){var a=i(o,n.press,(function(e){("mousedown"!=e.type||t.isLeft(e))&&r(e)})),s=i(o,"keydown",(function(t){t.keyCode!==e.ENTER&&t.keyCode!==e.SPACE||r(t)}));return{remove:function(){a.remove(),s.remove()}}},a.release=function(o,r){var a=i(o,n.release,(function(e){("mouseup"!=e.type||t.isLeft(e))&&r(e)})),s=i(o,"keyup",(function(t){t.keyCode!==e.ENTER&&t.keyCode!==e.SPACE||r(t)}));return{remove:function(){a.remove(),s.remove()}}},a.move=n.move,a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(227),i(228),i(210),i(211),i(217),i(213),i(222),i(223),i(257),i(206),i(384),i(248),i(238),i(1048),i(609),i(277),i(216),i(215),i(386),i(1044),i(655),i(881),i(344),i(355),i(387),i(656),i(561),i(773),i(775),i(774),i(1721),i(351),i(2868)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R){var k=e([y,b],{templateString:R,buildRendering:function(){var e=this;this.inherited(arguments),this._setActionsAttr(this.actions),n.setSelectable(this.domNode,!1),A.preventFocus(this.domNode),h(this.plusNode,"click",(function(t){e.actions[0].callback(t)})),h(this.dropDownNode,f.press,i.hitch(this,"_displayPlusMenu"))},_setActionsAttr:function(e){this._set("actions",e),l.set(this.dropDownNode,{display:this.actions.length<2?"none":"inline"}),this.actions.length>0&&o.set(this.domNode,"title",this.actions[0].text)},_displayPlusMenu:function(){var e,t,i,n,o,r;for(N.blockSelection(this.domNode),v.close(),t=new m({id:this.id+"PlusMenu"}),r=function(){t.destroyRecursive(),N.unblockSelection()},e=0;e<this.actions.length;e++)o=function(e){return function(t){e.callback(t),v.close()}}(i=this.actions[e]),n=new _({label:i.text,onClick:o}),h(n.domNode,f.release,o),t.addChild(n);v.open({around:this.dropDownNode,popup:t,onClose:r,onCancel:function(){v.close()}}),g.focus(t.domNode)}}),F=e([C,c,x,M,S,D,O],{Fixed:void 0,displayToolTipsOnTruncatedTabs:!1,isContentBorderVisible:!0,selectionHighlightingEnabled:!1,tabReorderingEnabled:!1,tabsRepositioningEnabled:!1,tabWidthAdjustmentEnabled:!1,plusDropDownEnabled:!0,baseClass:"mwTabContainer",Dynamic:void 0,tabPosition:"top",shrinkTabsToFit:!1,hideSingleTab:!1,successionOption:"mostRecent",tabAnimationEnabled:!0,tabBarClass:P,_showOrder:0,_areTabsHidden:!1,constructor:function(){this._tabInfo=[],this.plusActions=[],delete this.Fixed,delete this.Dynamic},buildRendering:function(){var e=this;if(this.inherited(arguments),r.add(this.domNode,"mwLayoutContainer"),A.setLocaleOnDomNode(this.domNode),this.containerNode=a.create("div",{id:this.id+"Wrapper"},this.domNode),this._updateContainerBorder(),this._tabBar=new this.tabBarClass({id:this.id+"_tablist",orientation:this._orientationFromTabPosition(this.tabPosition),displayToolTipsWhenTruncated:this.displayToolTipsOnTruncatedTabs,reorderingEnabled:this.tabReorderingEnabled,shrinkWidthToFit:this.shrinkTabsToFit,animationEnabled:this.tabAnimationEnabled,tabOpening:E.oppositeRegion(this.tabPosition),distributeButtons:this.distributeTabs,selectionHighlightingEnabled:this.selectionHighlightingEnabled}),this.tabClass&&(this._tabBar.tabClass=this.tabClass),this.tablist=this._tabBar,this._tabBar.placeAt(this.domNode),n.setSelectable(this._tabBar.domNode,!1),this._tabBar.on(I.CLOSE,i.hitch(this,"_tabCloseHandler")),this._tabBar.on(I.STATE_CHANGED,(function(){e.emit(I.STATE_CHANGED)})),this._tabBar.watch(T.SHRINK_WIDTH_TO_FIT,(function(t,i,n){e.notifyStateWatchers("shrinkTabsToFit",i,n),e.layout()})),this._tabBar.watch(T.MINIMUM_BUTTON_WIDTH,(function(t,i,n){e.notifyStateWatchers("minimumTabWidth",i,n),e.layout()})),this.tabsRepositioningEnabled){this._horizontalBarGrip=a.create("div",{id:this.id+"HGrip"}),r.add(this._horizontalBarGrip,"horizontalBarGrip"),n.setSelectable(this._horizontalBarGrip,!1),A.preventFocus(this._horizontalBarGrip,!0),this._verticalBarGrip=a.create("div",{id:this.id+"VGrip"}),r.add(this._verticalBarGrip,"verticalBarGrip"),n.setSelectable(this._verticalBarGrip,!1),A.preventFocus(this._verticalBarGrip,!0);var t=i.hitch(this,"_beginTabsDrag");h(this._horizontalBarGrip,f.press,t),h(this._verticalBarGrip,f.press,t),h(this._tabBar.domNode,f.press,t)}this.tabWidthAdjustmentEnabled&&(this._tabBarEdgeCover=a.create("div",{id:this.id+"TabBarEdgeCover"},this.domNode),r.add(this._tabBarEdgeCover,"edgeCoverV"),h(this._tabBarEdgeCover,f.press,i.hitch(this,"_beginTabBarEdgeDrag")),this._updateTabBarEdgeCoverVisibility())},postCreate:function(){var e=this;this.inherited(arguments),this._pendingStyles&&(this._pendingStyles.forEach((function(t){e._addCustomStyle(t.selector,t.style)})),delete this._pendingStyles)},startup:function(){if(!this._started){var e,t=this;this.getChildren().forEach((function(e){t._setupChild(e)})),this.inherited(arguments),this._updateBarGrip(this._tabBar.orientation),this._updateTabsVisibility(),this._tabBar.startup(),this.own(h(this._tabBar.domNode,"keydown",i.hitch(this,this._handleKeyDown))),this.own(h(this._tabBar.domNode,f.release,(function(e){var i=e.target.parentElement;if(i){var n=dijit.byNode(i);n&&n.focused&&t._handleTabKey()}}))),this.getParent&&this.getParent()&&this.getParent()._collapseAllButton&&(e=this.getParent()._collapseAllButton),e&&this.own(h(e,"keydown",i.hitch(this,this._handleKeyDown)))}},destroy:function(){this._styleSheet&&document.head.removeChild(this._styleSheet),this.inherited(arguments)},addWithProperties:function(e,t,i,n,o){var r=this._createTabInfo(e,t);r.initialIndex=i,r.immediate=o,this._tabInfo.push(r),this.addChild(e,i,n,o)},addChild:function(e,t,i,n){var o=this._getTabInfoFromDomId(e.id);o||((o=this._createTabInfo(e)).initialIndex=t,o.immediate=n,this._tabInfo.push(o));var r=this._pendingState;r&&(this._updateInfoFromState(r,o)?(o.immediate=!0,i=1===this._tabInfo.length||!(!r.showingChildId||r.showingChildId!==o.properties.childId)||!(!r.showingChildTitle||r.showingChildTitle!==o.properties.title),r.toRestoreCount--):r.toRestoreCount=0,0===r.toRestoreCount&&this.endStateRestore()),!1===i&&o.properties.set(w.IS_SHOWING,!1),this._updateTabsVisibility(),arguments.length=1,this.inherited(arguments),this.emit(I.CHILD_ADDED,o.widget,o.properties),e.navAssociation=this._tabBar,e.sideBarExpandedNavAssociation=this._tabBar,this._setChildVisible(o,!1),!1!==i&&this._showChild(o),this._updateTabsVisibility(),this.layout(),this._tabInfo.forEach(e=>{e.properties&&e.properties.updateInnerBounds&&e.properties.updateInnerBounds()})},removeChild:function(e,t){var i,n,o=this._getLocalIndexFromDomId(e.id);o>=0&&((i=this._tabInfo[o]).unbindChildProperties&&i.unbindChildProperties(),i.isRemoving=!0,this._suppressSuccession||(n=this._chooseSuccessor(i)),this._tabBar.removeTab(i.properties,t),i.properties.get(w.IS_SELECTED)&&r.remove(this._tabBar.domNode,"selected"),this._tabInfo.splice(o,1),this.hideSingleTab&&1===this._tabInfo.length&&this._tabBar.removeTab(this._tabInfo[0].properties,t),this._showChild(n),e.domNode&&this.inherited(arguments),this._updateTabsVisibility(),this._started&&(this.layout(),this.emit(I.STATE_CHANGED)),this._setChildVisible(i,!0),e.domNode&&l.set(e.domNode,{top:"auto",left:"auto",position:"static"}),this.emit(I.CHILD_REMOVED,i.widget,i.properties))},closeChild:function(e,t,n){var o,r=this._getTabInfoFromDomId(e.id);r&&(t||!r.properties.canClose?(t||!e.onClose||e.onClose(this,e))&&this._doClose(r):(o=r.properties.canClose())&&("function"==typeof o.then?o.then(i.hitch(this,"_doClose",r),(function(){})):this._doClose(r)))},_doClose:function(e){var t=e.widget,i=t.getParent();i&&(i.removeChild(t),e.properties.set(w.IS_OPEN,!1),e.properties.set(w.IS_SHOWING,!1))},isEmpty:function(){return 0===this._tabInfo.length},getTabCount:function(){return this._tabInfo.length},removeAll:function(e){for(var t;this._tabInfo.length>0;)t=this._tabInfo[0].widget,this.removeChild(t),e&&t.destroyRecursive()},setSuppressSuccession:function(e){this._suppressSuccession=e},getTabBar:function(){return this._tabBar},getTabForChild:function(e){return this._tabBar.getTabForProperties(this.getChildProperties(e))},getChildrenInTabOrder:function(){var e,t,i=[];if(1===this._tabInfo.length)i.push(this._tabInfo[0].widget);else for(e=this._tabBar.getButtons(),t=0;t<e.length;t++)i.push(e[t].widget);return i},getChildrenInShowOrder:function(){var e=this._tabInfo.slice(0);e.sort((function(e,t){return e.showOrder-t.showOrder}));var t,i=[];for(t=0;t<e.length;t++)i.push(e[t].widget);return i},getChildProperties:function(e){var t=this._getTabInfo(e);return t?t.properties:null},dragIn:function(e,t){var i=this._createTabInfo(e.widget,e.properties);i.initialIndex=e.index,e.mousePoint=t,i.dragInInfo=e,i.immediate=!0,this._tabInfo.push(i),this.addChild(e.widget)},setGripNeighbor:function(e){e!==this._gripNeighbor&&(this._gripNeighbor&&(A.removeFromParent(this._gripNeighbor),r.remove(this._verticalBarGrip,"withNeighbor")),e&&(a.place(e,this._verticalBarGrip),r.add(this._verticalBarGrip,"withNeighbor")),this._gripNeighbor=e)},getGripNeighbor:function(){return this._gripNeighbor},setUpperRightOverlay:function(e,t){this._upperRightOverlay=e,this._shouldShowOverlayCallback=t,this._updateUpperRightOverlayVisibility(),a.place(e,this.domNode)},getUpperRightOverlay:function(){return this._upperRightOverlay},showChild:function(e){this.set("showingChild",e)},revealChild:function(e){this.showChild(e)},nextChild:function(e,t,i){if(i&&(t=!0),t){var n=this.get("showingChild");return n===e?null:n}var o=this.getChildrenInTabOrder();if(!e)return o.length>0?o[0]:null;for(var r=0;r<o.length-1;r++)if(o[r]===e)return o[r+1];return null},previousChild:function(e,t,i){if(i&&(t=!0),t){var n=this.get("showingChild");return n===e?null:n}var o=this.getChildrenInTabOrder();if(!e)return o.length>0?o[o.length-1]:null;for(var r=o.length-1;r>0;r--)if(o[r]===e)return o[r-1];return null},isShowingLocally:function(e){return this._showingInfo&&this._showingInfo.widget===e},getState:function(){var e,t,i={children:[]};i.children.length=this._tabInfo.length,A.saveIfNotDefault(i,"tabPosition",this,"top"),A.saveIfNotDefault(i,"shrinkTabsToFit",this,!1),A.saveIfNotDefault(i,"maximumTabWidth",this,void 0),this._showingInfo&&((t=this._showingInfo).properties.childId?i.showingChildId=t.properties.childId:i.showingChildTitle=t.properties.title);var n=this.getChildrenInTabOrder();for(e=0;e<n.length;e++)t=this._getTabInfoFromDomId(n[e].id),i.children[e]={showOrder:t.showOrder},t.properties.childId?i.children[e].id=t.properties.childId:i.children[e].title=t.properties.title;return i},setState:function(e){var t,i,n=this;e=Object.assign({},e);A.restoreOrSetDefault(e,"tabPosition",this,"top"),A.restoreOrSetDefault(e,"shrinkTabsToFit",this,!1),A.restoreOrSetDefault(e,"maximumTabWidth",this,void 0);var o=0;e.toRestoreCount=e.children.length,i=0,nullIdxs=[],e.children.forEach((function(r,a){if(null==r)return e.toRestoreCount--,void nullIdxs.push(a);var s,l,c;for(delete r.restored,l=0;l<n._tabInfo.length;l++)if(s=n._tabInfo[l],(c=r.id||r.childId)&&c===s.properties.childId||!c&&r.title===s.properties.title){s.properties.set(w.INDEX,i++),s.showOrder=r.showOrder||-1,r.restored=!0,e.toRestoreCount--,o++,(e.showingChildId&&c===e.showingChildId||!e.showingChildId&&r.title===e.showingChildTitle)&&(t=s);break}})),nullIdxs.sort().reverse().forEach(t=>{e.children.splice(t,1)}),e.toRestoreCount>0&&o===this._tabInfo.length&&(this._pendingState=e),t&&this._showChild(t)},isRestoringState:function(){return!!this._pendingState},endStateRestore:function(){delete this._pendingState},isExpecting:function(e){return this._pendingState&&F.stateIncludes(this._pendingState,e)},_updateInfoFromState:function(e,t){var i,n,o,r=0,a=0,s=!1;for(i=0;i<e.children.length;i++){if((o=(n=e.children[i]).id||n.childId)&&o===t.properties.childId||!o&&n.title===t.properties.title)return t.initialIndex=r,t.showOrder=n.showOrder||-1,t.initialStartIndex=a,n.restored=!0,n.setId=t.properties.setId,!0;n.restored&&(n.setId==t.properties.setId&&(s=!0,r++),s||a++)}return!1},resize:function(){this.computedStyle||(this.computedStyle=l.getComputedStyle(this.domNode)),this.inherited(arguments),this._tabInfo.forEach(e=>{e.properties&&e.properties.updateInnerBounds&&e.properties.updateInnerBounds()})},layout:function(){if(this.domNode){var e=s.getContentBox(this.domNode,this.computedStyle);if(e&&0!==e.h){var t,n,o,r,a=e,l=this;if(!this._areTabsHidden){switch(t=this._tabBar.getPreferredSize(),"vertical"===this._tabBar.orientation&&(t.w=Math.max(t.w,Math.max(65,this._tabBar.get(T.MINIMUM_BUTTON_WIDTH))),r=Math.max(this.maximumTabWidth||e.w-100,0),t.w>r?t.w=r:this._tabInfo.length>0&&!this.maximumTabWidth&&this._set("maximumTabWidth",0)),n=i.clone(e),this.tabPosition){case"top":n.h=t.h,a.t+=n.h,a.h-=n.h;break;case"bottom":n.t=e.t+e.h-t.h,n.h=t.h,a.h-=n.h;break;case"left":n.w=t.w,a.l+=n.w,a.w-=n.w,(o=i.clone(a)).l-=3,o.w=7;break;case"right":n.l=e.l+e.w-t.w,n.w=t.w,a.w-=n.w,(o=i.clone(n)).l-=3,o.w=7}this._tabBar.resize(n)}s.setMarginBox(this.containerNode,a),this._showBox=a,this._showingInfo&&(this._positionChild(this._showingInfo),this._upperRightOverlay&&s.setMarginBox(this._upperRightOverlay,{l:a.l+a.w-18,t:a.t+2,w:16,h:16})),this._tabInfo.forEach((function(e){e!==l._showingInfo&&e.properties.updateSizeWhenHidden&&l._positionChild(e)})),o&&this.tabWidthAdjustmentEnabled&&s.setMarginBox(this._tabBarEdgeCover,o)}}},_positionChild:function(e){var t;if(this._showBox){if(this.isContentBorderVisible)t={l:0,t:0,w:this._showBox.w-2,h:this._showBox.h-2};else{switch(t={l:0,t:0,w:this._showBox.w,h:this._showBox.h},this.tabPosition){case"bottom":t.h-=1;break;case"right":t.w-=1}this._areTabsHidden||("top"===this.tabPosition||"bottom"===this.tabPosition?t.h-=1:t.w-=1)}A.setSize(e.widget,t)}},_updateBarGrip:function(e){"horizontal"===e?this._horizontalBarGrip&&this._tabBar.setPreNeighbor(this._horizontalBarGrip):this._verticalBarGrip&&this._tabBar.setPreNeighbor(this._verticalBarGrip)},_updateTabsVisibility:function(){var e=this._tabInfo.length,t=!(this.reserveSpaceForTabs||e>1||e>0&&!this.hideSingleTab||this.plusActions.length>0);t!==this._areTabsHidden&&(this._areTabsHidden=t,l.set(this._tabBar.domNode,{visibility:t?"hidden":"visible"}),this._updateContainerBorder()),this._updateUpperRightOverlayVisibility()},_updateUpperRightOverlayVisibility:function(){if(this._upperRightOverlay&&this._shouldShowOverlayCallback){var e=this._areTabsHidden||this.hideSingleTab&&this._tabInfo.length<2;l.set(this._upperRightOverlay,{visibility:this._shouldShowOverlayCallback(!e)?"visible":"hidden"})}},_updateContainerBorder:function(){var e;(e=this.isContentBorderVisible?"fullTabContentWrapper":this._areTabsHidden?"noTabContentWrapper":this._getContentWrapperClass(this.tabPosition))!==this._wrapperClass&&(this._wrapperClass&&r.remove(this.containerNode,this._wrapperClass),this._wrapperClass=e,e&&r.add(this.containerNode,e))},_updateTabBarEdgeCoverVisibility:function(){this._tabBarEdgeCover&&l.set(this._tabBarEdgeCover,{visibility:"vertical"===this._tabBar.orientation?"visible":"hidden"})},_getContentWrapperClass:function(e){return e+"TabContentWrapper"},_createTabInfo:function(e,t){if(t&&!(t.watch&&t.set&&t.get)){var n=new p;i.mixin(n,t),t=n}return{widget:e,properties:t||e,showOrder:-1}},_getLocalIndexFromDomId:function(e){var t;for(t=0;t<this._tabInfo.length;t++)if(this._tabInfo[t].widget.id===e)return t;return-1},_getTabInfo:function(e){var t=null;return"string"==typeof e?(t=this._getTabInfoFromChildId(e))||(t=this._getTabInfoFromTitle(e)):e&&(t=this._getTabInfoFromDomId(e.id)),t},_getTabInfoFromDomId:function(e){var t=this._getLocalIndexFromDomId(e);return t<0?null:this._tabInfo[t]},_getTabInfoFromTitle:function(e){var t;for(t=0;t<this._tabInfo.length;t++)if(this._tabInfo[t].properties.title===e)return this._tabInfo[t];return null},_getTabInfoFromChildId:function(e){var t;for(t=0;t<this._tabInfo.length;t++)if(this._tabInfo[t].properties.childId===e)return this._tabInfo[t];return null},_setupChild:function(e){this.inherited(arguments),l.set(e.domNode,"position","absolute");var t,i=this._getTabInfoFromDomId(e.id),n=this._tabInfo.length;i&&!i.childWasSetup&&(i.childWasSetup=!0,this._bindChildProperties(i),this.hideSingleTab&&2===n&&0===this._tabBar.getButtons().length&&(t=this._tabInfo[0],this._tabBar.addTab(t.widget,t.properties,t.initialIndex,i.initialStartIndex,i.immediate)),(!this.hideSingleTab||n>1)&&i!==t&&this._tabBar.addTab(e,i.properties,i.initialIndex,i.initialStartIndex,i.immediate,i.dragInInfo),i===this._showingInfo&&A.isShowing(this.domNode)&&i.properties.set(w.IS_SHOWING,!0))},_bindChildProperties:function(e){var t=this,i=[];e.properties&&(i.push(e.properties.watch(w.IS_SHOWING,(function(i,n,o){o&&t._showChildRecursive(e)}))),i.push(e.properties.watch(w.IS_OPEN,(function(i,n,o){o||t._doClose(e)}))),i.push(e.properties.watch(w.TITLE,(function(){"vertical"===t._orientationFromTabPosition(t.tabPosition)&&setTimeout((function(){t.layout()}),0)}))),i.push(e.properties.watch(w.IS_ENABLED,(function(i,n,o){1===t._tabInfo.length?t._showChild(o?e:null):o||e!==t._showingInfo||t._showChild(t._chooseSuccessor(e))}))),e.unbindChildProperties=function(){i.forEach((function(e){e.remove()})),delete e.unbindChildProperties})},_showChild:function(e){if(this._showingInfo!==e){var t,i,n=null;this._showingInfo&&(this._setChildVisible(this._showingInfo,!1),this.selectedChildWidget=null,t=this._showingInfo.properties,n=this._showingInfo.widget,i=this._showingInfo.isRemoving),this._showingInfo=e,e&&(this._setChildVisible(e,!0),this.selectedChildWidget=e.widget,e.showOrder=this._showOrder++,this._positionChild(e),this._started&&e.properties.set(w.IS_SHOWING,S.isShowingGlobally(this))),this._started&&t&&!i&&t.set(w.IS_SHOWING,!1),this.notifyStateWatchers("showingChild",n,e?e.widget:null),e&&e.widget.onShow&&e.widget.onShow(),this._started&&this.emit(I.STATE_CHANGED)}},_showChildRecursive:function(e){var t=this;if(e&&(e.widget instanceof F?t=e.widget:e.properties&&"isShowing"in e.properties&&(e.properties.isShowing||this._showingInfo!==e||(this._showingInfo=null),this._showChild(e)),e.widget&&e.widget.getChildren))for(let i of e.widget.getChildren())i instanceof F?t._showChildRecursive({widget:i}):t.selectedChildWidget&&t.selectedChildWidget.id===i.id&&t._showChildRecursive(t._getTabInfoFromDomId(i.id))},_setChildVisible:function(e,t){e.widget.domNode&&(t?(r.remove(e.widget.domNode,"hiddenChild"),l.set(e.widget.domNode,{visibility:"visible"})):(r.add(e.widget.domNode,"hiddenChild"),l.set(e.widget.domNode,{visibility:"hidden"})))},_chooseSuccessor:function(e){var t,i,n,o,r,a;if("mostRecent"===this.successionOption)for(o=-2,t=0;t<this._tabInfo.length;t++)(n=this._tabInfo[t])!==e&&n.showOrder>o&&!1!==n.properties.get(w.IS_ENABLED)&&(o=n.showOrder,r=n);else if("neighbor"===this.successionOption){for(i=e.properties.get(w.INDEX),a=this._tabBar.getButtons(),t=i-1;t>=0;t--)if(!1!==a[t].enabled){r=this._getTabInfoFromDomId(a[t].widget.id);break}for(t=i+1;!r&&t<a.length;t++)if(!1!==a[t].enabled){r=this._getTabInfoFromDomId(a[t].widget.id);break}}return r},_tabCloseHandler:function(e){this.closeChild(e.widget,!1,!0)},_orientationFromTabPosition:function(e){return"top"===e||"bottom"===e?"horizontal":"vertical"},_setTabPositionAttr:function(e){this.tabPosition!==e&&(this._set("tabPosition",e),this._tabBar.set(T.ORIENTATION,this._orientationFromTabPosition(e)),this._tabBar.set(P.TAB_OPENING,E.oppositeRegion(e)),this._updateBarGrip(this._tabBar.orientation),this._updateContainerBorder(),this._updateTabBarEdgeCoverVisibility(),this.layout(),this.selectedChildWidget&&(this.selectedChildWidget.focus?this.selectedChildWidget.focus():this.selectedChildWidget.domNode.focus()))},_setShrinkTabsToFitAttr:function(e){this._tabBar.set(T.SHRINK_WIDTH_TO_FIT,e)},_getShrinkTabsToFitAttr:function(){return this._tabBar.get(T.SHRINK_WIDTH_TO_FIT)},_setMinimumTabWidthAttr:function(e){this._tabBar.set(T.MINIMUM_BUTTON_WIDTH,e)},_getMinimumTabWidthAttr:function(){return this._tabBar.get(T.MINIMUM_BUTTON_WIDTH)},_setMaximumTabWidthAttr:function(e){this._set("maximumTabWidth",e),"left"!==this.tabPosition&&"right"!==this.tabPosition||this.layout()},_setHideSingleTabAttr:function(e){var t,i;e!==this.hideSingleTab?(t=this._areTabsHidden,this._set("hideSingleTab",e),1===this._tabInfo.length&&this._started&&(i=this._tabInfo[0],e?(this._tabBar.removeTab(i.properties),this._setAriaAttributesAfterHidingTab(i)):(this._tabBar.addTab(i.widget,i.properties,i.initialIndex),i.properties.set(w.IS_SHOWING,!0))),this._updateTabsVisibility(),t!==this._areTabsHidden&&this.layout()):1===this._tabInfo.length&&this._setAriaAttributesAfterHidingTab(this._tabInfo[0])},_setAriaAttributesAfterHidingTab:function(e){e.properties&&e.properties.title&&e.widget&&e.widget.domNode&&(e.widget.domNode.removeAttribute("aria-labelledby"),e.widget.domNode.setAttribute("aria-label",e.properties.title),e.widget.domNode.setAttribute("role","region"))},_setShowingChildAttr:function(e){this._showChild(this._getTabInfo(e))},_getShowingChildAttr:function(){return this._showingInfo?this._showingInfo.widget:null},_setPlusActionsAttr:function(e){0===e.length?this._tabBar.setPlusButton(null):(this.plusDropDownEnabled||(e=e.slice(0,1)),Math.min(this.plusActions.length,2)===Math.min(e.length,2)?this._tabBar.getPlusButton().set("actions",e):this._tabBar.setPlusButton(new k({actions:e}))),this._set("plusActions",e),this._updateTabsVisibility()},_setTabAnimationEnabledAttr:function(e){this._tabBar.set("animationEnabled",e),this._set("tabAnimationEnabled",e)},_setTabBackgroundAttr:function(e){var t="background:"+e;this._addCustomStyle(".mwTabContainer .tabBar",t),this._addCustomStyle(".mwTabContainer .tab:not(.checkedTab)",t),this._addCustomStyle(".mwTabContainer .tabBar.selected","background: rgb(169,190,211)"),this._addCustomStyle(".mwTabContainer .tabBar.selected .tab:not(.checkedTab)","background: rgb(169,190,211)"),this._set("tabBackground",e)},_setTabForegroundAttr:function(e){this._addCustomStyle(".mwTabContainer .tab:not(.checkedTab)","color:"+e),this._set("tabForeground",e)},_setShowingTabBackgroundAttr:function(e){this._addCustomStyle(".mwTabContainer .tab.checkedTab","background:"+e),this._addCustomStyle(".mwTabContainer .tab.bottomOpen.checkedTab","border-bottom: 1px solid "+e),this._addCustomStyle(".mwTabContainer .tab.topOpen.checkedTab","border-top: 1px solid "+e),this._addCustomStyle(".mwTabContainer .tab.leftOpen.checkedTab","border-left: 1px solid "+e),this._addCustomStyle(".mwTabContainer .tab.rightOpen.checkedTab","border-right: 1px solid "+e),this._set("showingTabBackground",e)},_setShowingTabForegroundAttr:function(e){this._addCustomStyle(".mwTabContainer .tab.checkedTab","color:"+e),this._set("showingTabForeground",e)},_addCustomStyle:function(e,t){this.id?(this._styleSheet||(this._styleSheet=document.createElement("style"),this._styleSheet.appendChild(document.createTextNode("")),document.head.appendChild(this._styleSheet)),this._styleSheet.sheet.insertRule("#"+this.id+e+" {"+t+"}",this._styleSheet.sheet.cssRules.length)):(this._pendingStyles||(this._pendingStyles=[]),this._pendingStyles.push({selector:e,style:t}))},_beginTabsDrag:function(e){!u.isLeft(e)||this._dragConnections||e.target!==this._horizontalBarGrip&&e.target!==this._verticalBarGrip&&e.target!==this._tabBar.domNode||(this._dragConnections=[h(this.ownerDocument,f.move,i.hitch(this,"_continueTabsDrag")),h(this.ownerDocument,f.release,i.hitch(this,"_endTabsDrag"))],N.blockUntilRelease(this.domNode),this._hasDraggedOffTabs=!1)},_continueTabsDrag:function(e){var t=s.position(this.domNode);if(t.l=t.x,t.t=t.y,!this._hasDraggedOffTabs){var i=s.position(this._tabBar.domNode);i.l=i.x,i.t=i.y,E.boxContains(t,e.pageX,e.pageY)&&!E.boxContains(i,e.pageX,e.pageY)&&(this._hasDraggedOffTabs=!0)}if(this._hasDraggedOffTabs){var n=E.getNearestBorder(t,e.pageX,e.pageY,.25);"center"!==n&&n!==this.tabPosition&&this.set("tabPosition",n)}},_endTabsDrag:function(){this._dragConnections.forEach((function(e){e.remove()})),delete this._dragConnections,this.emit(I.STATE_CHANGED)},on:function(e,t){var i=this;return e===I.DRAG_OUT?this._tabBar.on(e,(function(e){e.button&&(e.widget=e.button.widget),e.box=i._getShowBox(),t(e)})):this.inherited(arguments)},_getShowBox:function(){var e=i.clone(this._showBox),t=s.position(this.domNode);return e.l+=t.x,e.t+=t.y,e},_beginTabBarEdgeDrag:function(e){if(u.isLeft(e)&&this._showBox){var t=s.getContentBox(this.domNode,this.computedStyle),n={initialX:e.pageX,initialWidth:"left"===this.tabPosition?this._showBox.l:t.w-this._showBox.w};u.isLeft(e)&&(n.connections=[h(this.ownerDocument,f.move,i.hitch(this,"_continueTabBarEdgeDrag",n)),h(this.ownerDocument,f.release,i.hitch(this,"_endTabBarEdgeDrag",n))],N.blockUntilRelease(this.domNode))}},_continueTabBarEdgeDrag:function(e,t){var i="left"===this.tabPosition?t.pageX-e.initialX:e.initialX-t.pageX,n=e.initialWidth+i;n=Math.max(n,Math.max(65,this.get("minimumTabWidth"))),this.set("maximumTabWidth",n)},_endTabBarEdgeDrag:function(e){e.connections.forEach((function(e){e.remove()})),this.emit(I.STATE_CHANGED)},_handleKeyDown:function(e){var t=e.keyCode;switch(!0){case t===d.TAB:e.preventDefault(),this._handleTabKey();break;case t===d.LEFT_ARROW:this._handleNavigation("previous");break;case t===d.UP_ARROW:"left"!==this.tabPosition&&"right"!==this.tabPosition||this._handleNavigation("previous");break;case t===d.RIGHT_ARROW:this._handleNavigation("next");break;case t===d.DOWN_ARROW:"left"!==this.tabPosition&&"right"!==this.tabPosition||this._handleNavigation("next");break;case t===d.ENTER:case t===d.SPACE:var i=this._tabBar.getPlusButton();if(i&&i.domNode&&document.activeElement===i.domNode){var n=i.domNode.querySelector(".tabPlusIcon");h.emit(n,"click",{bubbles:!0})}var o=this._getContextMenu();o&&document.activeElement===o&&h.emit(o,"pointerdown",{bubbles:!0,button:0,cancelable:!0,target:o})}},_getContextMenu:function(){var e;"left"===this.tabPosition||"right"===this.tabPosition?e=this._tabBar.getPreNeighbor().querySelector(".actionsButtonWrapper"):"top"!==this.tabPosition&&"bottom"!==this.tabPosition||(e=this._tabBar.getPostNeighbor());return e||null},_emitPointerEventOnTab:function(e){h.emit(e,"pointerdown",{bubbles:!0,button:0,cancelable:!0,target:e}),h.emit(e,"pointerup",{bubbles:!0,button:0,cancelable:!0,target:e})},_deselectCurrentSelectedTab:function(e){e[L.SELECTED_CHILD]&&e.setSelected(e[L.SELECTED_CHILD],!1,!0)},_handleNavigation:function(e){for(var t,i,n=[],o=[],r=this.getParent();!r||!r.selectionManager;)r=r.getParent();i=r.selectionManager,"left"!==this.tabPosition&&"right"!==this.tabPosition||(t=this._getContextMenu())&&n.push(t);var a=this._tabBar.getButtonInfo();a.forEach((function(e){e.button&&e.button.domNode&&(n.push(e.button.domNode),o.push(e),e.button.actionsNodeWrapper&&(n.push(e.button.actionsNodeWrapper),o.push(e)))}));var s=this._tabBar.getPlusButton();if(s&&s.domNode&&n.push(s.domNode),"top"!==this.tabPosition&&"bottom"!==this.tabPosition||(t=this._getContextMenu())&&n.push(t),null===s&&null===t&&this.getParent&&this.getParent()&&this.getParent().getCollapseAllButton&&n.push(this.getParent().getCollapseAllButton()),!(n.length<2)){var l=document.activeElement,c=n.indexOf(l);switch(e){case"next":"top"===this.tabPosition||"bottom"===this.tabPosition?c===n.length-1?i._childProperties[o[0].properties.id]?i.setSelected(o[0].properties,!0,!0):this._emitPointerEventOnTab(n[0]):c<o.length-1?i._childProperties[o[c+1].properties.id]?i.setSelected(o[c+1].properties,!0,!0):this._emitPointerEventOnTab(n[c+1]):this._deselectCurrentSelectedTab(i):("left"===this.tabPosition||"right"===this.tabPosition)&&c<a.length?i._childProperties[o[c].properties.id]?i.setSelected(o[c].properties,!0,!0):this._emitPointerEventOnTab(n[c+1]):this._deselectCurrentSelectedTab(i),c===n.length-1?n[0].focus():c>=0&&n[c+1].focus();break;case"previous":"top"===this.tabPosition||"bottom"===this.tabPosition?c>0&&c<=o.length?i._childProperties[o[c-1].properties.id]?i.setSelected(o[c-1].properties,!0,!0):this._emitPointerEventOnTab(n[c-1]):0===c&&n[n.length-1]===o[o.length-1].button.domNode?i._childProperties[o[o.length-1].properties.id]?i.setSelected(o[o.length-1].properties,!0,!0):this._emitPointerEventOnTab(n[n.length-1]):this._deselectCurrentSelectedTab(i):"left"!==this.tabPosition&&"right"!==this.tabPosition||(c>1&&c<n.length?i._childProperties[o[c-2].properties.id]?i.setSelected(o[c-2].properties,!0,!0):this._emitPointerEventOnTab(n[c-1]):0===c?n[n.length-1]===o[o.length-1].button.domNode&&(i._childProperties[o[o.length-1].properties.id]?i.setSelected(o[o.length-1].properties,!0,!0):this._emitPointerEventOnTab(n[n.length-1])):this._deselectCurrentSelectedTab(i)),0===c?n[n.length-1].focus():c>0&&n[c-1].focus()}}},_handleTabKey:function(){for(var e,t=this._tabBar.getButtonInfo(),i=0;i<t.length;i++)if(t[i].button&&t[i].button.domNode&&t[i].button.domNode.contains(document.activeElement)){(e=t[i].properties)&&(document.activeElement.classList.contains("groupTab")?e.groupProperties&&e.groupProperties.lastSelected&&e.groupProperties.lastSelected.navAssociation&&e.groupProperties.lastSelected.navAssociation.focus&&e.groupProperties.lastSelected.navAssociation.focus():e.focus?e.focus():e.domNode?e.domNode.focus():e.widget&&(e.widget.focus?e.widget.focus():e.widget.domNode&&e.widget.domNode.focus()));break}}});return F.stateIncludes=function(e,t){var i,n,o;for(i=0;i<e.children.length;i++)if(o=(n=e.children[i]).id||n.childId,!n.restored&&(o&&o===t||!o&&n.title===t))return!0;return!1},F.TAB_POSITION="tabPosition",F.SHRINK_TABS_TO_FIT="shrinkTabsToFit",F.MINIMUM_TAB_WIDTH="minimumTabWidth",F.MAXIMUM_TAB_WIDTH="maximumTabWidth",F.HIDE_SINGLE_TAB="hideSingleTab",F.SUCCESSION_OPTION="successionOption",F.SHOWING_CHILD="showingChild",F.PLUS_ACTIONS="plusActions",F.TAB_BACKGROUND="tabBackground",F.TAB_FOREGROUND="tabForeground",F.SHOWING_TAB_BACKGROUND="showingTabBackground",F.SHOWING_TAB_FOREGROUND="showingTabForeground",F.SUCCESSOR_NONE="none",F.SUCCESSOR_MOST_RECENT="mostRecent",F.SUCCESSOR_NEIGHBOR="neighbor",F}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{errorText:new e({type:"string",notInAction:!1,defaultValue:"This component is in error state",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{warningText:new e({type:"string",notInAction:!1,defaultValue:"This component is in Warning state",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{validationState:new e({type:"string",notInAction:!1,defaultValue:"normal",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{serializePlugin:function(e){throw new Error("Unimplemented method")},deserializePlugin:function(e,t){throw new Error("Unimplemented method")}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(3538),i(1854),i(1856),i(1853)],o=i.dj.d(n,(function(e,t,i,n){var o=function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}return r(n,null,[{key:"createTooltip",value:function(n){if(!i.isElement(n.referenceNode))throw new Error("You must pass a valid dom node");if(t.has(n.referenceNode))throw new Error("A tooltip already exists for this reference node.Pass a new reference node");var o=new e(n);t.set(n.referenceNode,o);var r={};return Object.defineProperty(r,"content",{get:function(){return o.content},set:function(e){o.content=e},enumerable:!0,configurable:!0}),r.destroy=o.destroy.bind(o),r}}]),n}();return o.TYPE=n,o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){return{ALWAYS_ADD_BRACES:"always",NEVER_ADD_BRACES:"never",ADD_BRACES_WHERE_NEEDED:"standard",export:function(t,i){var n;i=e.mixin({openParens:0,boldIdents:!1,addBraces:"standard"},i);var o="";for(n=0;n<t.length;n+=1)o+=t[n].exportLaTeX(i);return o=o.length>1?o.trim():o},exportChild:function(e,t){var i=t.addBraces;t.addBraces="standard";var n=e?e._exportLaTeX(t):"";return t.addBraces=i,n=(n="never"!==t.addBraces&&n.length>1&&"{}"!==n&&!n.match(/^{.}$/)?"{"+n+"}":n).length<2&&"always"===t.addBraces?"{"+n+"}":n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_CENTER:"center",_RIGHT:"right",_ALIGN_RIGHT:"flushright",_ALIGN_LEFT:"flushleft",_LABEL_COMMAND:"label",_VERTICAL_SPACE_COMMAND:"vspace",_EMPTY_SPACE_SIZE:"1em",getAlignmentForNode:function(e){var t=this._ALIGN_LEFT;return e.align===this._RIGHT?t=this._ALIGN_RIGHT:e.align===this._CENTER&&(t=this._CENTER),t},wrapInCommand:function(e,t,i){return"\\"+e+(i=i?"["+i+"]":"")+(t=t?"{"+t+"}":"")},getLabelCommand:function(e){return this.wrapInCommand(this._LABEL_COMMAND,e)},getEmptyLineCommand:function(){return this.wrapInCommand(this._VERTICAL_SPACE_COMMAND,this._EMPTY_SPACE_SIZE)+"\n"},getEscapedOutputText:function(e){var t=e.replace(/\u00D7/g,"x");return t=t.replace(/\u0160|\u2009/g,String.fromCharCode(32))},processWhitespaces:function(e){var t=new RegExp("^(?:\\n\\\\"+this._VERTICAL_SPACE_COMMAND+"{"+this._EMPTY_SPACE_SIZE+"}\\n)+"),i=new RegExp("(?:\\n\\\\"+this._VERTICAL_SPACE_COMMAND+"{"+this._EMPTY_SPACE_SIZE+"}\\n)+$");return e.replace(t,"").replace(i,"")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TYPING_TEXT:"TypingText",INDENT:"Indent",UNINDENT:"Unindent",DELETE:"ForwardDelete",BACKSPACE:"Backspace",DELETE_SELECTION:"DeleteSelection",AUTO:"_Auto"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(249),i(260),i(577),i(663),i(403),i(1940)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=e(o,{type:t.DELETION_EVENT,primitiveProperties:["endColumn","didRangeCollapse"],constructor:function(e,t,i,n){this.endColumn=i,this.didRangeCollapse=n},getMutation:function(){var e=this.didRangeCollapse?n.MUTATION_TYPE.DELETION:n.MUTATION_TYPE.DELETION_WITHOUT_COLLAPSE;return n.createFromEvent(this,e)},getUndoEvent:function(){return this.didRangeCollapse?r.create(this.startLine,this.endLine,1):a.create(this.startLine,this.startLine+1,this.startLine,this.endLine)}});return{create:function(e,n,o,r){return i.assertValidLines(e,n,t.DELETION_EVENT),new s(e,n,o,r=void 0===r||r)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(470),i(1993)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{getApplicableNodeClass:function(){return i},unpack:function(e){var t=this._unpackChildren(e.children);return new(this.getApplicableNodeClass())(t,e)},_unpackChildren:function(e){if(!e)return t.warn("InnerNodeContentConverter: children array was falsy, treating as empty"),[];for(var i=[],n=e.length,o=0;o<n;o++){var r=e[o],a=this._mainConverter.unpack(r);a&&i.push(a)}return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(470),i(662)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){(t=t||{}).anchorId&&(this.anchorId=t.anchorId)},className:"LiveAppLineNode",groupingName:"CodeBlock",groupingType:i.CONTIGUOUS,containerType:function(){return"liveapp"},isTextContainerNode:function(){return!0},isSplittable:function(){return!1},getDefaultChild:function(){return null},destroyWidget:function(){this.getInlineNode().destroyWidget(),this.widget.destroy(),this.widget=null},getWidget:function(){return this.widget},setWidget:function(e){this.widget=e},setActive:function(e){this.getWidget().setActive(e)},setContext:function(e,t){return this.getInlineNode().setContext(e,t)},getContext:function(e){return this.getInlineNode().getContext(e)},getMetadataCode:function(){return this.getInlineNode().getMetadataCode()},getAppIdentifier:function(){return this.getInlineNode().getAppIdentifier()},setAppIdentifier:function(e){this.getInlineNode().setAppIdentifier(e)},getTaskId:function(){return this.getInlineNode().getTaskId()},getStore:function(){return this.getInlineNode().getStore()},getInlineNode:function(){return this.startNode()},_serializeAttributes:function(e){this.anchorId&&(e.anchorId=this.anchorId)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{convertFromClientToOffset:function(e,t){var i=this._getDifferenceBetweenOffsetAndClient(t);return{x:e.x-i.x,y:e.y-i.y}},convertFromOffsetToClient:function(e,t){var i=this._getDifferenceBetweenOffsetAndClient(t);return{x:e.x+i.x,y:e.y+i.y}},_getDifferenceBetweenOffsetAndClient:function(e){var t=e.getDomTargetBoundingClientRect(),i=e.getDomTargetDomNode();return{x:t.left-i.scrollLeft,y:t.top-i.scrollTop}},getProjectedCoordinate:function(e,t){var i=e.x,n=e.y;return this.isCoordinateXWithinRect(e,t)||(i>t.right?i=t.right:i<t.left&&(i=t.left)),this.isCoordinateYWithinRect(e,t)||(n<t.top?n=t.top:n>t.bottom&&(n=t.bottom)),{x:i,y:n}},getOffsetRectFromDomNode:function(e){var t=e.offsetLeft,i=e.offsetTop,n=e.offsetWidth,o=e.offsetHeight;return{left:t,right:t+n,top:i,bottom:i+o,width:n,height:o}},isCoordinateWithinRect:function(e,t){return t&&this.isCoordinateXWithinRect(e,t)&&this.isCoordinateYWithinRect(e,t)},isCoordinateWithinRects:function(e,t){return t.some((function(t){return this.isCoordinateWithinRect(e,t)}),this)},isCoordinateXWithinRect:function(e,t){return e.x>=t.left&&e.x<=t.right},isCoordinateYWithinRect:function(e,t){return e.y>=t.top&&e.y<=t.bottom},isCoordinateAboveOrLeftOfRect:function(e,t){return this.isCoordinateAboveRect(e,t)||this.isCoordinateYWithinRect(e,t)&&this.isCoordinateLeftOfRect(e,t)},isCoordinateBelowOrRightOfRect:function(e,t){return this.isCoordinateBelowRect(e,t)||this.isCoordinateYWithinRect(e,t)&&this.isCoordinateRightOfRect(e,t)},isCoordinateAboveRect:function(e,t){return e.y<t.top},isCoordinateBelowRect:function(e,t){return e.y>t.bottom},isCoordinateLeftOfRect:function(e,t){return e.x<t.left},isCoordinateRightOfRect:function(e,t){return e.x>t.right},isCoordinateAtRightHalfOfRect:function(e,t){return e.x>t.left+t.width/2},getClosestXDistanceToRect:function(e,t){return Math.min(Math.abs(t.left-e.x),Math.abs(t.right-e.x))},getClosestYDistanceToRect:function(e,t){return Math.min(Math.abs(t.top-e.y),Math.abs(t.bottom-e.y))},getClientRectsArray:function(e){return 0===e.length?[]:Object.keys(e).map((function(t){return e[t]}))},getClientRectsByRange:function(e){var t=[];return e.forEach((function(e){var i=e.getClientRects(),n=this.getClientRectsArray(i);t=t.concat(n)}),this),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(626),i(1472)],o=i.dj.d(n,(function(e,t,i,n){var o=[",",";"," "];return{updateConfigPanelPropertyValue:function(e,t,i){e&&e.setEditorValue(t,i)},updateConfigPanelPropertyDisabledState:function(e,t,i){e&&e.setEditorDisabled(t,i)},isChildWidgetFocused:function(e){return document.activeElement===e.focusNode},getLargestIndexOf:function(e,t){var i=t.map((function(t){return e.lastIndexOf(t)}));return i.reduce((function(e,t){return Math.max(e,t)}))},hasDelimiter:function(e){var t=!1;return o.forEach((function(i){-1!==e.indexOf(i)&&(t=!0)})),t},hasModifier:function(e){return e.ctrlKey||e.metaKey||e.altKey||e.shiftKey},addVisibleElementAttribute:function(e){e&&e.setAttribute("visible-element","")},addCodeValueClassName:function(e){e&&e.classList.add("mwLiveControlCodeValue")},buildContainerWidget:function(i){var n=new t([e],{_setWidthAttr:function(e){"number"==typeof e&&(e+="px"),this.domNode.style.width=e}})();return n.domNode.classList.add(i),n},getDisplayStringForPropertyValue:function(e){var t=Object.keys(n).find((function(t){return n[t]===e}));return i[t]},getValuesForMatchingKeyInObject:function(e,t,i){return e instanceof Array?e.forEach(e=>{this.getValuesForMatchingKeyInObject(e,t,i)}):Object.keys(e).forEach(n=>{let o=e[n];n===t&&i.push(o),"object"==typeof o&&this.getValuesForMatchingKeyInObject(o,t,i)}),i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(672)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this.width=this._parseSizeValue(e.width),this.height=this._parseSizeValue(e.height),this.verticalAlign=e.verticalAlign||"baseline",e.imgSrc&&(this.imgSrc=e.imgSrc.replace(/\n|\r/g,"")),this.altText=e.altText||"",this.originalWidth=this.width,this.originalHeight=this.height,this.naturalWidth=this.width,this.naturalHeight=this.height},_parseSizeValue:function(e){return"string"==typeof e&&(e=parseInt(e,10)),Number.isInteger(e)?e:-1},className:"ImageNode",_serializeAttributes:function(e){e.width=this.width,e.height=this.height,e.verticalAlign=this.verticalAlign,e.altText=this.altText,e.imgSrc=this.imgSrc,e.text=this.getText()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(470)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){t&&(this.type=t.type,this.anchorId=t.anchorId),this.type=this.type||"unordered",this.wrappable=!0},className:"ListParagraph",CHILD_TEXT_SEPARATOR:"\n",containerType:function(){return this.type},getDefaultChild:function(){return{className:"ListItem"}},isEmpty:function(){return!(this.children.length>1)&&this.inherited(arguments)},resetUniqueAttributes:function(){},isSameTypeAs:function(e){return this.className===e.className&&this.type===e.type},isTextContainerNode:function(){return!0},canSpliceContainers:function(e,t){return"ordered"===e.type&&"ordered"===t.type||"ordered"!==e.type&&"ordered"!==t.type},canMergeContainerWithSibling:function(e,t){return"ordered"===e.type&&"ordered"===t.type||"ordered"!==e.type&&"ordered"!==t.type},_serializeAttributes:function(e){e.type=this.type,this.anchorId&&(e.anchorId=this.anchorId)},childrenAreContainers:!0})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{buildRendering:function(){this.inherited(arguments),this.inlineEditorNode=this.textNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(244),i(212),i(2210)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{_ID:null,_control:null,_actionParser:null,_mouseCursor:null,_actions:null,_listeners:null,_DEBUG:!1,constructor:function(e,t,i,n){this._ID=e,this._control=t,this._actionParser=i,this._listeners=[],this._enabled=!1,this._mouseCursor=n.mouseCursor,Array.isArray(n.actions)?this._actions=n.actions:this._actions=[n.actions],this._eventsToBeCoalesced=["hover","dragprogress","pinchprogress","scroll"],this._eventCoalescer=new o(this,this._eventsToBeCoalesced)},getEventsToBeCoalesced:function(){return this._eventsToBeCoalesced},addPromisesToBeResolved:function(e){this.hasOwnProperty("_promisesToBeResolved")||(this._promisesToBeResolved=[]),this._promisesToBeResolved.push(e)},hasPromisesToBeResolved:function(){return this.hasOwnProperty("_promisesToBeResolved")&&this._promisesToBeResolved.length>0},enable:function(){if(!this._enabled){void 0!==this._listeners&&this._listeners.length>0&&(this._printLog("Listeners should not exist at this point"),this._removeListeners());for(var e=0;e<this._actions.length;e++)this._listeners.push(this._actionParser.onEvent(this._actions[e],this.response.bind(this)));this._enabled=!0,0===this._eventCoalescer.getRegisteredEvents().length&&this._eventCoalescer.registerEvents(this._eventsToBeCoalesced)}},disable:function(){this._removeListeners(),this._enabled=!1,this._eventCoalescer.reset()},process:function(e,t){"flush"===e&&this._eventCoalescer.flushEvent(t)},_printLog:function(e){this._DEBUG&&console.log(e)},_removeListeners:function(){void 0!==this._listeners&&this._listeners.length>0&&(this._listeners.forEach((function(e){e.remove()})),this._listeners.length=0)},preResponse:function(e){var t={name:"preresponse",interactionID:this._ID,actionData:{name:e.name}};this._control.process(t)},execute:function(e){},postResponse:function(e){var t={name:"postresponse",interactionID:this._ID,actionData:{name:e.name}};this._control.process(t)},dispatchEvent:function(e){this.shouldEmitPreResponse(e.name)&&this.preResponse(e),this.execute(e),-1!==this._eventsToBeCoalesced.indexOf(e.name)&&(this.hasPromisesToBeResolved()?i(this._promisesToBeResolved).then(function(t){this._promisesToBeResolved=[],this.process("flush",e.name)}.bind(this)):this.process("flush",e.name)),this.shouldEmitPostResponse(e.name)&&this.postResponse(e)},response:function(e){this._eventCoalescer.coalesceEvent(e,e.name)},getMouseCursor:function(){return this._mouseCursor},shouldEmitPreResponse:function(e){var t=!0;return["hover","dragprogress","dragend","pinchprogress","pinchend"].includes(e)&&(t=!1),t},shouldEmitPostResponse:function(e){var t=!0;return["hover","dragstart","dragprogress","pinchstart","pinchprogress"].includes(e)&&(t=!1),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TABLE_DATA_NODE_CLASS:"mw-table",TABLE_HEADER_CLASS:"mw-table-header-wrapper",TABLE_COMPONENT_QUERY_CLASS:".mw-table-component",TABLE_HEADER_COMPONENT_QUERY_CLASS:".mw-table-header-wrapper",TABLE_SCROLLING_NODE:"mw-scrolling-div",TABLE_ROW_HEADER_CLASS:"mw-table-row-header-container",TBODY_ROW_HEADER_CLASS:"mw-table-tbody-row-header",TABLE_TOP_LEFT_AFFORDANCE_CLASS:"mw-table-top-left-affordance",TABLE_HEADER_MENU_AFFORDANCE:"mwTableHeaderMenuAffordance",TABLE_SCROLL_CONTAINER_CLASSES:".mw-table-inner-wrapper.mw-scrolling-div",TABLE_ROW_CLASSES:"tr.mw-table-row",FIRST_TABLE_ROW_CLASS:"data-row-index",TABLE_COLUMN_CLASSES:"td.mw-table-cell",FIRST_COLUMN_CLASS:"data-col",TABLE_HEADER_PADDING_PIXELS:6,TABLE_HEADER_RESIZER_PIXELS:7}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6679),i(6680),i(6681),i(6682)],o=i.dj.d(n,(function(e,t){return t(e,"plaincode_features/l10n/nls/publishDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7511)],o=i.dj.d(n,(function(e,t){return t(e,"mw-filebrowser/l10n/nls/FileBrowserResources",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{ON:"ON",OFF:"OFF",constructor:function(e,t){if(!e||!dojo.isString(e))throw new Error("Feature name missing");this._name="motw.internal."+e,this._featureState=this.OFF,dojo.safeMixin(this,t)},name:function(){return this._name},executionScope:function(){return this},enableFeature:function(){throw new Error("Unimplemented API: MW.motw.feature.Feature.enableFeature")},disableFeature:function(){throw new Error("Unimplemented API: MW.motw.feature.Feature.disableFeature")},enable:function(){this._featureState!==this.ON&&(this.enableFeature(),this._featureState=this.ON)},disable:function(){this._featureState!==this.OFF&&(this.disableFeature(),this._featureState=this.OFF)},featureState:function(){return this._featureState}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(232)],o=i.dj.d(n,(function(e,t,i){return e(null,{fRoot:null,fCache:null,constructor:function(e){this.fRoot=e,this.fCache=new Map},loadIcon:function(e=null){const i=new t;let n=this.fCache.get(e);if(n)return i.resolve(n),i.promise;const o=this.fRoot?this.fRoot+e:e,r=new XMLHttpRequest;r.onload=()=>{const t=new FileReader;t.onloadend=()=>{n=t.result,i.resolve(n),this.fCache.set(e,n)},t.readAsDataURL(r.response)};const a=this.getRemoteWorkerUrl(o);return r.open("GET",a),r.responseType="blob",r.send(),i.promise},getRemoteWorkerUrl:function(e){const t=i.getWorkerRoutingKey(),n=i.getComputeSessionId(),o=i.getWorkerRoutingHost();return i.getWorkerRoutingHost()+e.substring(1)+"?routingkey="+t+"&computeToken="+n+"&mre="+o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(203),i(204),i(212),i(512),i(763),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=r.getLogger(),l=t("pct.utils.MatlabWorker",null,{constructor:function(t){this._classifier=t||e.getUniqueId(this.declaredClass),a.registerResponseHandler("FEvalResponse:"+this._classifier,this._handleResponse,this),a.registerFaultHandler("FEval:"+this._classifier,this._handleError,this),a.registerResponseHandler("EvalResponse:"+this._classifier,this._handleResponse,this),a.registerFaultHandler("Eval:"+this._classifier,this._handleError,this)},runCode:function(e){var t;if(!e||"string"!=typeof e)throw new Error("MATLAB code to run must be a non-empty string.");return t=new n,s.info(i.replace("Eval/mcode [{0}]: {1}",[this._classifier,e])),a.sendMessage({Eval:{mcode:e}},{deferred:t},this._classifier),t.promise},execute:function(e){var t;if(!e)throw new Error("MatlabWorker: ExecutionInfo name not specified");if(!e.functionName)throw new Error("MatlabWorker: ExecutionInfo.function name not specified");return e.args=e.args||[],e.nargout=e.nargout||0,e.priority=e.priority||1,t=new n,s.info(i.replace("FEval [{classifier}]: {functionName}({args}) ({nargout} outputs)",{classifier:this._classifier,functionName:e.functionName,args:e.args.map(o.stringify).join(", "),nargout:e.nargout})),a.sendMessage({FEval:{function:e.functionName,arguments:e.args,nargout:e.nargout,priority:e.priority,dequeMode:"ppe"}},{deferred:t,info:e},this._classifier),t.promise},_handleError:function(e,t){s.error(i.replace("Error [{0}]: {1}",[this._classifier,o.stringify(e)]));var n=t.deferred;n.reject&&n.reject(e)},_handleResponse:function(e,t){var n,r,a,l=t.deferred;if(1===e.length)(n=e[0]).isError?(r=(a=n.messageFaults)&&a.length>0?a[0].message:n.responseStr,s.error(i.replace("Error [{0}]: {1}",[this._classifier,o.stringify(r)])),l.reject(r)):(s.debug(i.replace("Success [{0}]: {1}",[this._classifier,o.stringify(n.results)])),l.resolve(n.results));else{var c="Error: Expected 1 result message back, received: "+e.length;l.reject(c)}}});return l.clientLog=function(t,i){return new l(e.getUniqueId("clientLog")).execute({functionName:"dctSchedulerMessage",args:[t,i]})},l}),e,t),e.exports=o},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(221)],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(has){"use strict";var hasJSON="undefined"!=typeof JSON;if(has.add("json-parse",hasJSON),has.add("json-stringify",hasJSON&&'{"a":1}'==JSON.stringify({a:0},(function(e,t){return t||1}))),has("json-stringify"))return JSON;var escapeString=function(e){return('"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};return{parse:has("json-parse")?JSON.parse:function(str,strict){if(strict&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(str))throw new SyntaxError("Invalid characters in JSON");return eval("("+str+")")},stringify:function(e,t,i){return"string"==typeof t&&(i=t,t=null),function e(n,o,r){t&&(n=t(r,n));var a,s=typeof n;if("number"==s)return isFinite(n)?n+"":"null";if("boolean"==s)return n+"";if(null===n)return"null";if("string"==typeof n)return escapeString(n);if("function"!=s&&"undefined"!=s){if("function"==typeof n.toJSON)return e(n.toJSON(r),o,r);if(n instanceof Date)return'"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z"'.replace(/\{(\w+)(\+)?\}/g,(function(e,t,i){var o=n["getUTC"+t]()+(i?1:0);return o<10?"0"+o:o}));if(n.valueOf()!==n)return e(n.valueOf(),o,r);var l=i?o+i:"",c=i?" ":"",d=i?"\n":"";if(n instanceof Array){var u=n.length,h=[];for(r=0;r<u;r++){"string"!=typeof(a=e(n[r],l,r))&&(a="null"),h.push(d+l+a)}return"["+h.join(",")+d+o+"]"}var p=[];for(r in n){var f;if(n.hasOwnProperty(r)){if("number"==typeof r)f='"'+r+'"';else{if("string"!=typeof r)continue;f=escapeString(r)}if("string"!=typeof(a=e(n[r],l,r)))continue;p.push(d+l+f+":"+c+a)}}return"{"+p.join(",")+d+o+"}"}}(e,"","")}}}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){var t={};return{objectToQuery:function(i){var n=encodeURIComponent,o=[];for(var r in i){var a=i[r];if(a!=t[r]){var s=n(r)+"=";if(e.isArray(a))for(var l=0,c=a.length;l<c;++l)o.push(s+n(a[l]));else o.push(s+n(a))}}return o.join("&")},queryToObject:function(t){for(var i,n,o,r=decodeURIComponent,a=t.split("&"),s={},l=0,c=a.length;l<c;++l)if((o=a[l]).length){var d=o.indexOf("=");d<0?(i=r(o),n=""):(i=r(o.slice(0,d)),n=r(o.slice(d+1))),"string"==typeof s[i]&&(s[i]=[s[i]]),e.isArray(s[i])?s[i].push(n):s[i]=n}return s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(245)],o=i.dj.d(n,(function(e){var t={},i={INVALID_ELEMENT:"The input parameter must be an instance of an Element object.",INVALID_STRING:"The input parameter must be of type 'string'.",INVALID_BOOLEAN:"The input parameter must be of type 'boolean'.",INVALID_OBJECT:"The input parameter must be of type 'object'.",INVALID_FOCUS_EVENT:"The input parameter must be a 'FocusEvent' object.",INVALID_STYLE:"The style specified is invalid.",INVALID_VALUE:"The value specified is invalid.",INTEGER_INDEX:"index argument expects an integer.",STRING_INDEX:"index argument expects an string.",SPOUSE_NODE:"A function which returns a spouse node if it exists must be provided."},n=function(e){if(!(e instanceof Element))throw new Error(i.INVALID_ELEMENT)},o=function(e){if(-1===["String","string"].indexOf(typeof e))throw new Error(i.INVALID_STRING)},r=function(e){if(-1===["Boolean","boolean"].indexOf(typeof e))throw new Error(i.INVALID_BOOLEAN)},a=function(e){if(-1===["Object","object"].indexOf(typeof e))throw new Error(i.INVALID_OBJECT)};return t._qeSetup=function(){t._qeTools={},t._qeTools.errorMessages=i,t._qeTools.validateElement=n,t._qeTools.validateString=o,t._qeTools.validateBoolean=r,t._qeTools.validateObject=a,t._qeTools.overrideErrorMessaged=function(e){i=e},t._qeTools.overrideValidateElement=function(e){n=e},t._qeTools.overrideValidateString=function(e){o=e},t._qeTools.overrideValidateBoolean=function(e){r=e},t._qeTools.overrideValidateObject=function(e){a=e}},t.isLeftMouseButton=function(t){return!0===t.synthetic&&e("trident")?1===t.button:0===t.button},t.parseFocusEvent=function(e){if(!(e instanceof FocusEvent))throw new Error(i.INVALID_FOCUS_EVENT);var t={};return t.lostFocusNode=e.target,t.gainedFocusNode="relatedTarget"in e?e.relatedTarget:document.activeElement,t.type=e.type,t.eventdata=e,t},t.getParent=function(e){return n(e),e.parentNode},t.findParentNode=function(e,t,i){var n,o=null;for(e.domNode&&(e=e.domNode);e&&e!==window.document;){if(i){if(e.hasAttribute(t)&&e.getAttribute(t)===i){o=e;break}}else{if(e.hasAttribute(t)){o=e;break}if(e.classList.contains(t)){o=e;break}}n=e.getAttribute("dijitpopupparent"),e=n?document.getElementById(n):e.parentNode}return o},t.getNodeType=function(e){return n(e),{1:"Element",3:"Text",7:"Processing Instruction",8:"Comment",9:"Document",10:"Document Type",11:"Document Fragment"}[e.nodeType]},t.getById=function(e){return o(e),window.document.getElementById(e)},t.getByClass=function(e){return o(e),window.document.getElementsByClassName(e)},t.getByAttr=function(e){return o(e),window.document.querySelectorAll("["+e+"]")},t.getByAttrValue=function(e,t){return o(e),o(t),window.document.querySelectorAll("["+e+"="+t.replace(/['".\\]/g,"\\$&").replace(/[\\]/g,"\\$&")+"]")},t.getByName=function(e){return o(e),window.document.getElementById("[name="+e+"]")},t.getByTag=function(e){return o(e),window.document.getElementsByTagName(e)},t.matchesSelector=function(e,t){return!(!e||!t)&&(n(e),o(t),e[e.msMatchesSelector?"msMatchesSelector":"matches"](t))},t.getComputedStyle=function(e,t){return n(e),t?(o(t),window.getComputedStyle(e,null)[t]):window.getComputedStyle(e,null)},t.getStyle=function(e,t){if(n(e),o(t),void 0===e.style[t])throw new Error(i.INVALID_STYLE);return e.style[t]},t.setStyle=function(e,t,r){if(n(e),o(t),o(r),e.style[t]=r,e.style[t]!==r)throw new Error(i.INVALID_VALUE)},t.hasAttr=function(e,t){return n(e),o(t),e.hasAttribute(t)},t.hasAttrValue=function(e,t,i){return n(e),o(t),o(i),e.hasAttribute(t)&&e.getAttribute(t)===i},t.getAttr=function(e,t){return n(e),o(t),e.getAttribute(t)},t.setAttr=function(e,t,i){n(e),o(t),o(i),e.setAttribute(t,i)},t.addAttr=function(e,t){n(e),o(t),e.setAttribute(t,"")},t.removeAttr=function(e,t){n(e),o(t),e.removeAttribute(t)},t.getClasses=function(e){return n(e),e.classList?e.classList:{_element:e,_getClassArray:function(){return this._element.className.split(" ")},_updateClassName:function(e){this._element.className=e.join(" "),this.length=e.length},length:e.className.split(" ").length,item:function(e){return this._getClassArray()[e]},contains:function(e){for(var t=this._getClassArray(),i=0;i<t.length;i++)if(t[i]===e)return!0;return!1},add:function(e){var t=this._getClassArray();t.push(e),this._updateClassName(t)},remove:function(e){var t=this._getClassArray(),i=t.indexOf(e);i>=0&&(t.splice(i,1),this._updateClassName(t))},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}}},t.getClass=function(e,n){if(null==n||"number"!=typeof n||n<0||n%1!=0)throw new Error(i.INTEGER_INDEX);return t.getClasses(e).item(n)},t.addClass=function(e,n){if(null==n||"string"!=typeof n)throw new Error(i.STRING_INDEX);return t.getClasses(e).add(n)},t.removeClass=function(e,n){if(null==n||"string"!=typeof n)throw new Error(i.STRING_INDEX);return t.getClasses(e).remove(n)},t.toggleClass=function(e,n,o){if(null==n||"string"!=typeof n)throw new Error(i.STRING_INDEX);return o?t.getClasses(e).toggle(n,o):t.getClasses(e).toggle(n)},t.containsClass=function(e,n){if(null==n||"string"!=typeof n)throw new Error(i.STRING_INDEX);return t.getClasses(e).contains(n)},t.classCount=function(e){return t.getClasses(e).length},t.getChildCount=function(e){return n(e),e.childElementCount},t.getChildren=function(e){return n(e),e.children},t.isDescendant=function(e,i,o){if(n(e),n(i),o&&e===i)return!0;for(;e&&e!==window.document;)if((e=t.getParent(e))===i)return!0;return!1},t.isDescendantOrInLaw=function(e,n,o,r){var a,s;if("function"!=typeof o)throw new Error(i.SPOUSE_NODE);if(!1===(s=t.isDescendant(e,n,r))){(a=function(e){return o(e)||e.parentNode}(e))&&a!==window.document&&(s=t.isDescendantOrInLaw(a,n,o,r))}return s},t.getFirstChild=function(e){return n(e),!t.isContainer(e)||t.getChildCount(e)<1?null:t.getChildren(e)[0]},t.getLastChild=function(e){var i;return n(e),i=t.getChildCount(e),!t.isContainer(e)||i<1?null:t.getChildren(e)[i-1]},t.isContainer=function(e){return n(e),t.getChildCount(e)>0},t.getAdjacentElement=function(e,t){return n(e),(!t||["next","previous"].indexOf(t)<0)&&(t="next"),e=e[t+"Sibling"]},t.getElementPositionInViewPort=function(e){var t;return n(e),{x:(t=e.getBoundingClientRect()).left,y:t.top,w:t.right-t.left,h:t.bottom-t.top}},t.getElementPositionOnPage=function(e){var i;return n(e),(i=t.getElementPositionInViewPort(e)).x+=window.pageXOffset,i.y+=window.pageYOffset,i},t.setPositionExtents=function(e,i){a(i);var n={};n.top=i.t?i.t:i.top?i.top:"auto",n.right=i.r?i.r:i.right?i.right:"auto",n.bottom=i.b?i.b:i.bottom?i.bottom:"auto",n.left=i.l?i.l:i.left?i.left:"auto",["top","right","bottom","left"].forEach((function(i){t.setStyle(e,i,n[i])}))},t.isFocusable=function(e){return n(e),e&&!e.hasAttribute("disabled")&&(!e.hasAttribute("aria-disabled")||"true"!==e.getAttribute("aria-disabled"))&&"none"!==e.style.display&&!e.hasAttribute("data-refuse-key-nav")},t.isElementInViewport=function(e,t){var i,o,r,a,s,l;return n(e),i=e.getBoundingClientRect(),o=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,a=function(e,t){return document.elementFromPoint(e,t)},!(i.width<=0||i.height<=0)&&(!(i.right<0||i.bottom<0||i.left>o||i.top>r)&&(i.width<2&&i.height<2?(s=i.left+(i.right-i.left)/2,l=i.top+(i.bottom-i.top)/2,e.contains(a(s,l))):i.width<2?(s=i.left+(i.right-i.left)/2,t?e.contains(a(s,i.top+1))&&e.contains(a(s,i.bottom-1)):e.contains(a(s,i.top+1))||e.contains(a(s,i.bottom-1))):i.height<2?(l=i.top+(i.bottom-i.top)/2,t?e.contains(a(i.left+1,l))&&e.contains(a(i.right-1,l)):e.contains(a(i.left+1,l))||e.contains(a(i.right-1,l))):t?e.contains(a(i.left+1,i.top+1))&&e.contains(a(i.right-1,i.top+1))&&e.contains(a(i.right-1,i.bottom-1))&&e.contains(a(i.left+1,i.bottom-1)):e.contains(a(i.left+1,i.top+1))||e.contains(a(i.right-1,i.top+1))||e.contains(a(i.right-1,i.bottom-1))||e.contains(a(i.left+1,i.bottom-1))))},t._obscuredProps={},t._obscuredProps.sawPosAbsolute=!1,t._obscuredProps.elementPosition=null,t.isElementObscuredByParent=function(e,i){var o,r,a,s;if(n(e),s=!1,(a=t.getParent(e))&&(i||(t._obscuredProps.elementPosition=t.getElementPositionOnPage(e),t._obscuredProps.sawPosAbsolute="absolute"===window.getComputedStyle(e,null).position),o=t._obscuredProps.elementPosition,r=t._obscuredProps.sawPosAbsolute,a&&"Element"===t.getNodeType(a)&&"BODY"!==a.nodeName)){var l=t.getElementPositionOnPage(a),c=window.getComputedStyle(a,null);/relative|absolute/.test(c.position)&&(r=t._sawPosAbsolute=!1),!r&&/hidden|auto|scroll/.test(c.overflow)&&(s=o.y<l.y||o.y+o.h>l.y+l.h||o.x<l.x||o.x+o.w>l.x+l.w)}return s},t.isElementObscuredByAncestor=function(e){var i,o;for(n(e),i=!1,t._obscuredProps.elementPosition=t.getElementPositionOnPage(e),t._obscuredProps.sawPosAbsolute="absolute"===window.getComputedStyle(e,null).position;(o=t.getParent(e))&&"Element"===t.getNodeType(o)&&"BODY"!==o.nodeName;)i=t.isElementObscuredByParent(e,!0),e=o;return i},t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(238),i(215),i(216),i(316),i(360),i(307),i(308),i(351),i(608),i(872),i(352),i(330),i(370),i(871),i(873),i(874),i(353),i(1042),i(335),i(875),i(876),i(1041),i(607),i(409),i(421),i(877),i(259),i(1714)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x){return e(A.validate([i,n,o,r,a,y,C,l,c,d,u,p,f,g,m,_,v,h,b,T,E,S,w,I]),{baseClass:"mwWidget mwSharedMenuItem mwCheckBoxMenuItem",templateString:x,constructor:function(){this.checkBox=new s({text:""}),this.own(this.checkBox)},_setCheckedAttr:function(e){this.inherited(arguments),this.checkBox.set("checked",e),this.get("closeMenuOnClick")&&(e?(this.checkBox.domNode.classList.add("mwSpecialCheckBoxIcon"),this.checkBox.domNode.classList.remove("mwNoCheckBoxIcon")):(this.checkBox.domNode.classList.add("mwNoCheckBoxIcon"),this.checkBox.domNode.classList.remove("mwSpecialCheckBoxIcon")))},buildRendering:function(){this.inherited(arguments),this.checkBox.placeAt(this.domNode,"first")},postCreate:function(){this.inherited(arguments),this.checkBox._triggerChangeEvent=function(){},this.checkBox._onClick=function(){},this.domNode.setAttribute("data-composite-primary",""),(this.checkBox.focusNode||this.checkBox.domNode).setAttribute("data-composite-child",""),(this.checkBox.focusNode||this.checkBox.domNode).setAttribute("data-composite-primary-id",this.get("id")),this.focusNode.setAttribute("role","menuitemcheckbox")},startup:function(){this.inherited(arguments),this.checkBox.startup()},_onClick:function(){this.inherited(arguments),this.checkBox.set("checked",this.get("checked"))},_emitClickEvent:function(){this.emit("click",{mwEventData:{checked:!this.get("checked")},_dojo_click:!0})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(214),i(219),i(2889),i(884),i(2893),i(1292)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.startMessageService=void 0;var a=u(t),s=u(i),l=u(n),c=u(o),d=u(r);function u(e){return e&&e.__esModule?e:{default:e}}function h(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,i){return function n(o,r){try{var a=t[o](r),s=a.value}catch(e){return void i(e)}if(!a.done)return Promise.resolve(s).then((function(e){n("next",e)}),(function(e){n("throw",e)}));e(s)}("next")}))}}var p=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var f=null,g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.outChannel=e.outChannel,i.inChannel=e.inChannel,i}var i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),p(t,[{key:"start",value:(i=h(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.default.start(),e.next=3,_();case 3:if(null!==f){e.next=8;break}return f=new d.default(s.default),c.default.addBackend(f),e.next=8,f.start();case 8:if(this._started||!this.inChannel){e.next=12;break}return e.next=11,s.default.subscribe(this.inChannel,(function(e){return t.receive(e.data)}),this);case 11:this._started=!0;case 12:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"send",value:function(e){s.default.publish(this.outChannel,e)}}]),t}(l.default);e.default=g;var m,_=e.startMessageService=(m=h(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){s.default.messageService.isConnected()?e():a.default.after(s.default.messageService,"onConnected",e,!1)})));case 1:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(565),i(1293),i(780),i(345),i(1747),i(2913),i(1749),i(1753),i(2921),i(1746),i(1755),i(610),i(1292)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var f=I(t),g=I(i),m=I(n),_=I(o),v=I(r),b=I(a),y=I(s),C=I(l),T=I(c),E=I(d),S=I(u),w=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(p);function I(e){return e&&e.__esModule?e:{default:e}}function A(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,i){return function n(o,r){try{var a=t[o](r),s=a.value}catch(e){return void i(e)}if(!a.done)return Promise.resolve(s).then((function(e){n("next",e)}),(function(e){n("throw",e)}));e(s)}("next")}))}}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var N=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function L(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var D=Object.freeze({ModelPacket:"mf.zero.Model",ReportDataPacket:"mf.zero.ReportData",FetchModelPacket:"mf.zero.io.ModelSynchronizer.FetchModel",FetchModelWithDataDefinitionPacket:"mf.zero.io.ModelSynchronizer.FetchModelWithDataDefinition",ModelWithDataDefinitionPacket:"mf.zero.io.ModelSynchronizer.ModelWithDataDefinition",LoadDataDefinitionPacket:"mf.zero.io.ModelSynchronizer.LoadDataDefinition",DataDefinitionOKPacket:"mf.zero.io.ModelSynchronizer.DataDefinitionOK",DataDefinitionErrorPacket:"mf.zero.io.ModelSynchronizer.DataDefinitionError",FetchDataDefinitionPacket:"mf.zero.io.ModelSynchronizer.FetchDataDefinition",DataDefinitionPacket:"mf.zero.io.ModelSynchronizer.DataDefinition"}),M=function(e){function t(e,i,n,o,r){var a,s=(a=A(regeneratorRuntime.mark((function e(t,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.default.promiseLoad(t.content.definitions);case 2:k(d,t.client,t.content,i);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)}),l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];x(this,t);var c=L(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),d=c;function u(t){return E.default.createPacket(D.ModelPacket,{"transaction-factory-ordinals":P(e),model:R(e)},t.client)}function h(e,t){k(d,e.client,e.content,t)}function p(e){return g.default.promiseLoad(e.content).then((function(){return E.default.createPacket(D.DataDefinitionOKPacket)}),(function(){return E.default.createPacket(D.DataDefinitionErrorPacket)}))}function m(e,t){if(d.uuid===e.client)return g.default.promiseLoad(e.content).then((function(e){if(f.default.isArray(e)){var t=!0,i=!1,n=void 0;try{for(var o,r=function(){var e=o.value;d.pendingDataDefinitionRequests=d.pendingDataDefinitionRequests.filter((function(t){return t!==e.uri}))},a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)r()}catch(e){i=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(i)throw n}}}else d.pendingDataDefinitionRequests=d.pendingDataDefinitionRequests.filter((function(t){return t!==e.uri}));if(0!==d.pendingDataDefinitionRequests.length)return d.requestDataDefinition(d.pendingDataDefinitionRequests);for(;d.changeReportsWaitingForDataDefinitions.length>0&&0===F(d,d.changeReportsWaitingForDataDefinitions[0]).length;)d.applyChange(d.changeReportsWaitingForDataDefinitions.shift())}));t.packetIgnored=!0}return c.uuid=f.default.generateRandomUuid(),c.model=e,c.toSend=[],c.marshaller=new y.default(r),c.startCtr=0,c.myChangeReports=new Set,c.packetTransport=new E.default(i),c.interpreter=n||function(e,t){return d.marshaller.parseChangeReportJSON(e,t)},c.freezer=o,c.synchronizerId=f.default.generateRandomUuid(),c.span=e.span.createChild("sync"),c.span.addContext(w.info,"SynchronizerId",c.synchronizerId),c.waitingForModelFetch=l?1:2,c.changeReportsWaitingForModelFetch=[],c.changeReportsWaitingForDataDefinitions=[],c.pendingDataDefinitionRequests=[],c.packetTransport.setPacketHandlers([{packetType:D.FetchModelPacket,handler:u},{packetType:D.FetchModelWithDataDefinitionPacket,handler:function(){}},{packetType:D.ModelPacket,promiseMode:E.default.PacketPromiseMode.Resolve,handler:h},{packetType:D.ModelWithDataDefinitionPacket,promiseMode:E.default.PacketPromiseMode.Resolve,handler:s},{packetType:D.ReportDataPacket,handler:function(e){return d.applyChange(e.content)}},{packetType:D.LoadDataDefinitionPacket,handler:p},{packetType:D.DataDefinitionPacket,promiseMode:E.default.PacketPromiseMode.Resolve,handler:m},{packetType:D.DataDefinitionOKPacket,promiseMode:E.default.PacketPromiseMode.Resolve,handler:function(){}}]),c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),N(t,[{key:"destroy",value:function(){this.model.removeListener(this)}},{key:"start",value:function(){++this.startCtr,1===this.startCtr&&this.model.addPriorityShallowListener(this)}},{key:"stop",value:function(){--this.startCtr,this.startCtr<=0&&this.model.removeListener(this)}},{key:"transactionCanceled",value:function(){this.transactionFinished()}},{key:"transactionCommitted",value:function(e){if(this.myChangeReports.has(e.origin.transactionId))this.myChangeReports.delete(e.origin.transactionId);else if(e.origin.synchronizer!==this.synchronizerId){var t=e.origin.model,i=g.default.getType("mf.zero.meta.Language"),n=_.default.getPropertySerializer(i).serializeValue(e.origin.language.literal),o=e.origin.transactionId,r=e.origin.synchronizer||this.synchronizerId,a=e.origin.transactionOrdinal,s=e.origin.transactionFactory,l=new b.default;this.marshaller.serializeChangeReport(e,l),l.out.origin={model:t,language:n,transactionId:o,synchronizer:r,ordinal:a,factory:s},this.sendDelta(l)}this.transactionFinished()}},{key:"sendDelta",value:function(e){var t=this;this.packetTransport.isWaitingForPromise()?this.packetTransport.packetPromise.then((function(){t.sendDelta(e)})):this.packetTransport.sendPacket(E.default.createPacket(D.ReportDataPacket,e.out))}},{key:"transactionFinished",value:function(){}},{key:"applyChange",value:function(e){var t=this;if(0!==this.waitingForModelFetch&&1!==this.waitingForModelFetch){var i=F(this,e);if(this.pendingDataDefinitionRequests.length>0)return this.pendingDataDefinitionRequests=this.pendingDataDefinitionRequests.concat(i),void this.changeReportsWaitingForDataDefinitions.push(e);if(i.length>0)return this.pendingDataDefinitionRequests=this.pendingDataDefinitionRequests.concat(i),this.changeReportsWaitingForDataDefinitions.push(e),void this.fetchDataDefinition(i);var n=e.origin;if(!n)throw new Error("Transaction has no origin");var o=this.span.createChild();o.addContext(w.info,"origin",n);var r=n.ordinal,a=n.factory;o.log(w.debug,"Queueing change");var s=n.model,l=g.default.getType("mf.zero.meta.Language"),c=_.default.getPropertySerializer(l).parseValue(n.language,l),d=n.transactionId,u=n.synchronizer,h=new mf.zero.meta.TransactionOrigin({model:s,language:c,transactionId:d,synchronizer:u,transactionOrdinal:r,transactionFactory:a}),p=this.interpreter(e,new S.default(this.model,h));this.model.addToWorkQueue((function(e){var i=t.model.getLastSeenTransactionOrdinals();o.addContext(w.debug,"lastSeenOrdinals",i),!i.has(a)||i.get(a)<r?(t.myChangeReports.add(d),t._thaw((function(){return p(e)}))):(o.addContext(w.warning,"last-seen-transaction-ordinal",i.get(a)),o.log(w.warning,"Not applying out-of-date transaction"))}))}else this.changeReportsWaitingForModelFetch.push(e)}},{key:"fetchModel",value:function(){if(0===this.waitingForModelFetch)throw new Error("Already waiting for modle fetch");return this.waitingForModelFetch=0,this.packetTransport.sendAndReceivePacket(E.default.createPacket(D.FetchModelPacket,{"transaction-factory-ordinals":P(this.model),model:O(this.model)},this.uuid))}},{key:"fetchModelWithDataDefinition",value:function(){if(0===this.waitingForModelFetch)throw new Error("Already waiting for modle fetch");return this.waitingForModelFetch=0,this.packetTransport.sendAndReceivePacket(E.default.createPacket(D.FetchModelWithDataDefinitionPacket,{"transaction-factory-ordinals":P(this.model),model:O(this.model)},this.uuid))}},{key:"pushDataDefinition",value:function(e){var t=f.default.isString(e)?JSON.parse(e):e;return this.packetTransport.sendAndExpectPacket(E.default.createPacket(D.LoadDataDefinitionPacket,t),D.DataDefinitionOKPacket)}},{key:"fetchDataDefinition",value:function(e){return this.packetTransport.sendAndReceivePacket(E.default.createPacket(D.FetchDataDefinitionPacket,e,this.uuid))}},{key:"requestDataDefinition",value:function(e){return this.packetTransport.sendPacket(E.default.createPacket(D.FetchDataDefinitionPacket,e,this.uuid))}},{key:"_thaw",value:function(e){if(this.model.isFrozen()&&this.freezer){var t=this.freezer.thaw();e(),t.destroy()}else e()}}]),t}(v.default);function P(e){var t={},i=e.getLastSeenTransactionOrdinals(),n=!0,o=!1,r=void 0;try{for(var a,s=i[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;t[l[0]]=l[1]}}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return t}function O(e){var t=!0;return e.forTopLevel((function(e){return t=!1,!1})),t?void 0:R(e)}function R(e){var t=new b.default;return(new C.default).serialize(e,t),t.out}function k(e,t,i,n){if(e.uuid===t){var o=new S.default(e.model,new mf.zero.meta.TransactionOrigin({model:e.model.modelID,language:mf.zero.meta.Language.JavaScript,transactionId:f.default.generateRandomUuid(),synchronizer:e.synchronizerId,transactionFactory:f.default.generateRandomUuid(),transactionOrdinal:0}));for(e._thaw((function(){var t=e.span.createChild("parseModel");t.addContext(w.debug,"content",i),t.log(w.info,"Parsing model");var n=null;if(i.model){var r=new T.default;r.setModel(e.model),n=r.parseVerbatim(i.model,o)}t.addContext(w.info,"incoming-ordinals",i["transaction-factory-ordinals"]),t.log(w.info,"Updating transaction-factory-ordinals");var a=!0,s=!1,l=void 0;try{for(var c,d=Object.entries(i["transaction-factory-ordinals"])[Symbol.iterator]();!(a=(c=d.next()).done);a=!0){var u=c.value;e.model.updateLastSeenTransactionOrdinal(u[0],u[1])}}catch(e){s=!0,l=e}finally{try{!a&&d.return&&d.return()}finally{if(s)throw l}}return t.log(w.info,"Updated transaction-factory-ordinals"),n})),e.waitingForModelFetch=2;e.changeReportsWaitingForModelFetch.length>0;)e.applyChange(e.changeReportsWaitingForModelFetch.shift())}else n.packetIgnored=!0}function F(e,t){if(t.addedElementURIs&&t.addedElementURIs.length>0){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t.addedElementURIs[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;f.default.includes(e.pendingDataDefinitionRequests,l)||m.default.getPackage(l)||i.push(l)}}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}return[]}e.default=M}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{text:"",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwTextMixin"),this._addTextContentClass(),this.set("text",this.get("text"))},_setTextAttr:function(){this.inherited(arguments),this._started&&this._checkAndFixClippedText&&this._checkAndFixClippedText()},_addTextContentClass:function(){(this.textNode||this.domNode).classList.add("mwTextContent")},_getTextForDOM:function(e,t){return e},_placeTextInNode:function(e,t){t=t||this.textNode,this._updateDataTextContent(e,t)},_updateDataTextContent:function(e,t,i){(t||this.textNode||this.domNode).setAttribute("data-text-content",i?e:this._getTextForDOM(e,t))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(432)],o=i.dj.d(n,(function(e,t){var i=e(null,{quickAccessIcon:"",postCreate:function(){this.inherited(arguments),this.set("quickAccessIcon",this.get("quickAccessIcon"))},_setQuickAccessIconAttr:function(e){if("string"!=typeof e)throw new Error("'quickAccessIcon' property expects a literal string!");this._set("quickAccessIcon",e),this._updateDOM()}});return i._dependencies=[{mixin:t,orderDependent:!0}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(217),i(211),i(206),i(223),i(215),i(360),i(316),i(307),i(216),i(258),i(351),i(330),i(887),i(3142),i(343),i(433),i(335),i(769),i(409),i(1064),i(545),i(259),i(889),i(3143)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){return e(S.validate([s,l,c,d,u,p,f,g,m,_,v,b,y,C,T,E]),{baseClass:"mwWidget mwSpinner",templateString:I,width:150,height:22,value:100,step:1,errorText:"",horizontalAlignment:"right",roundValueToInt:!1,setDomValueOnButtonClick:!0,valuePrecision:4,includeDefaultErrorText:!1,isCustomRangeErrorMessages:!0,invalidMessage:"Value must be numeric",rangeMessage:"Value entered is out of range",rangeMessageBetween:"Value must be between %1 and %2",rangeMessageLessThan:"Value must be less than %1",rangeMessageGreaterThan:"Value must be greater than %1",includeMinimum:!0,includeMaximum:!0,allowInfiniteValue:!1,_preventClick:!1,_isMouseDown:!1,_isKeyDown:!1,_startValue:100,_clickCount:0,_previousValue:100,constructor:function(){this._textField=new h({horizontalAlignment:"right"}),this.focusNode=this._textField.focusNode,this.inputNode=this._textField.inputNode,this.own(this._textField),this.limits={minimum:0,maximum:Number.POSITIVE_INFINITY},this.own(this._textField.watch("value",t.hitch(this,(function(e,t,i){isNaN(i)||this._set("value",parseFloat(i))}))))},buildRendering:function(){this.inherited(arguments),this._textField.placeAt(this.containerNode,"first")},_setEditableAttr:function(e){if("boolean"!=typeof e)throw new Error("Editable property expects a boolean");this._textField.set("editable",e),e?this.domNode.classList.remove("mwNonEditable"):this.domNode.classList.add("mwNonEditable"),this._set("editable",e)},_setDisabledAttr:function(e){this.inherited(arguments),e&&"normal"!==this.get("validationState")&&(this._textField.set("value",this._previousValue+""),this.set("validationState","normal")),this._textField.set("disabled",e)},_setHorizontalAlignmentAttr:function(e){this.inherited(arguments),this._textField.set("horizontalAlignment",e)},_setStepAttr:function(e){if("number"!=typeof e)throw new Error("'step' property expects a Number!");this._set("step",e),this._setButtonState(),this._startValue=this.get("value"),this._clickCount=0},_setValueAttr:function(e){if(!w.isEmpty(e)&&(e<this.get("limits").minimum||e>this.get("limits").maximum))throw new Error("'Value' must be numeric and fall within the range of 'Limits'.");this._startValue=parseFloat(e),this._previousValue=parseFloat(e),this._clickCount=0,this._textField.set("value",e+""),this._set("value",e),this._setButtonState()},_getValueAttr:function(){return this.value},_setWidthAttr:function(e){this.inherited(arguments),this.resize()},_setHeightAttr:function(e){this.inherited(arguments),this._textField.set("height",e),this._resizeHeight(e)},_setLimitsAttr:function(e){if("object"!=typeof e)throw new Error("'IncludeMinimum' property expects an 'Object'!");this._validateLimits(e),this._set("limits",e),this._applyConstraintsToValue()},_validateLimits:function(e){if("number"!=typeof e.maximum||"number"!=typeof e.minimum)throw new Error("'Limits' expects an Object of numbers!");if(e.minimum>e.maximum)throw new Error("'Minimum' should be less than maximum")},_setIncludeMinimumAttr:function(e){if("boolean"!=typeof e)throw new Error("'IncludeMinimum' property expects a 'Boolean'!");this._set("includeMinimum",e),this._applyConstraintsToValue()},_setIncludeMaximumAttr:function(e){if("boolean"!=typeof e)throw new Error("'IncludeMaximum' property expects a 'Boolean'!");this._set("includeMaximum",e),this._applyConstraintsToValue()},_applyConstraintsToValue:function(){var e=this.get("includeMaximum")?this.get("limits").maximum:this.get("limits").maximum-this.get("step");e=this._convertInfiniteValueToString(e);var t=this.get("includeMinimum")?this.get("limits").minimum:this.get("limits").minimum+this.get("step");t=this._convertInfiniteValueToString(t);var i=this.get("value");i=w.convertValueToNumber(i),this.get("limits").maximum<=i&&this._rangeCheck(e)&&this.set("value",e),this.get("limits").minimum>=this.get("value")&&this._rangeCheck(t)&&this.set("value",t),this._setButtonState()},_setButtonState:function(){var e,t,i=this.get("value");if(w.isEmpty(i))e=!0,t=!0;else{i=w.convertValueToNumber(i);var n=this._rangeCheck(i+this.step)&&i+this.step<this.get("limits").maximum,o=this._rangeCheck(i),r=this._rangeCheck(i-this.step)&&i-this.step>this.get("limits").minimum;if(this.get("includeMaximum"))var a=i===this.get("limits").maximum,s=o&&!a;else{var l=this._calculateIncrement(this.get("limits").maximum,-.1),c=i>=this.get("limits").maximum+l;s=o&&!c&&!this.get("roundValueToInt")}if(this.get("includeMinimum"))var d=i===this.get("limits").minimum,u=o&&!d;else{l=this._calculateIncrement(this.get("limits").minimum,.1);var h=i<=this.get("limits").minimum+l;u=o&&!h&&!this.get("roundValueToInt")}e=n||s,t=r||u}e?this._enableIncrementButton():this._disableIncrementButton(),t?this._enableDecrementButton():this._disableDecrementButton()},_getDomNodeForValidationClasses:function(){return this.domNode},_getParentPopup:function(e){for(;e;){if(e.classList&&e.classList.contains("dijitPopup"))return e;e=e.parentNode}return null},postCreate:function(){this.inherited(arguments),this.set("value",this.value),this.own(r(this.domNode,"keydown",t.hitch(this,"_onKeyDown")),r(this.domNode,"keyup",t.hitch(this,"_onKeyUp")),r(this.incrementButtonNodeWrapper,"click",t.hitch(this,(function(){if(!this._preventClick&&!this._isIncrementButtonDisabled()){var e=parseFloat(this._textField.get("value"));this._handleIncrement();var t=parseFloat(this._textField.get("value"));this.changingActionPerformed(t),this._triggerChangeEvent("value",e,t)}this._preventClick=!1}))),r(this.decrementButtonNodeWrapper,"click",t.hitch(this,(function(){if(!this._preventClick&&!this._isDecrementButtonDisabled()){var e=parseFloat(this._textField.get("value"));this._handleDecrement();var t=parseFloat(this._textField.get("value"));this.changingActionPerformed(t),this._triggerChangeEvent("value",e,t)}this._preventClick=!1}))),r(this.incrementButtonNodeWrapper,"contextmenu",function(e){return e.preventDefault(),!1}.bind(this)),r(this.decrementButtonNodeWrapper,"contextmenu",function(e){return e.preventDefault(),!1}.bind(this)),r(this.incrementButtonNodeWrapper,"mousedown",function(e){0===e.button&&this._onIncrementButtonMouseDown()}.bind(this)),r(this.decrementButtonNodeWrapper,"mousedown",function(e){0===e.button&&this._onDecrementButtonMouseDown()}.bind(this)),r(this.incrementButtonNodeWrapper,"mouseup, mouseout",function(e){0===e.button&&this._onButtonMouseUp()}.bind(this)),r(this.decrementButtonNodeWrapper,"mouseup, mouseout",function(e){0===e.button&&this._onButtonMouseUp()}.bind(this)),r(this._textField,"focusin",t.hitch(this._textField,(function(){var e=this.getParent();!e.get("disabled")&&e.get("editable")&&("normal"===e.get("validationState")&&(e._isInt(this.get("value"))&&e._isInt(e.get("step"))?this.setValueInDom(e.get("value")):this.setValueInDom(e._formatShort(e.get("value")))),this.inputNode.select())})))),this._textField.on("change",t.hitch(this,(function(e){this._onChangeHandler(e)}))),this._textField.on("typing",t.hitch(this,(function(e){this._handleValidation(e.mwEventData.currentContent)}))),this._textField.inputNode.addEventListener("dragstart",this._disableDragDrop),this._textField.inputNode.addEventListener("drop",this._disableDragDrop)},startup:function(){this._textField.startup(),this.inherited(arguments)},resize:function(){var e=n.position(this.domNode).w,t=n.position(this.buttonsContainerNode).w;if(e=0===e?150:e,0===(t=0===t?22:t)){var o=this._getParentPopup(this.buttonsContainerNode);if(null!==o){o.classList.add("dijitOffScreen");var r=i.get(o,"display");o.style.display="block",t=n.position(this.buttonsContainerNode).w,o.style.display=r}}n.getPadBorderExtents(this._textField.domNode);var a=n.getPadBorderExtents(this.buttonsContainerNode),s=a.l+a.r;this.containerNode.style.width=e-t+"px",this._textField.domNode.style.width=e-t-s+"px",this.inherited(arguments)},_resizeHeight:function(e){var t=n.position(this.domNode).h,i=n.position(this.incrementButtonNode).h,o=n.position(this.decrementButtonNode).h,r=((t=0===t?e:t)-3)/2,a=(r-(i=0===i?6:i))/2-1,s=(r-(o=0===o?6:o))/2+1;this.containerNode.style.height=t+"px",this._textField.domNode.style.height=t+"px",this.buttonsContainerNode.style.height=t+"px",this.incrementButtonNodeWrapper.style.height=r+"px",this.decrementButtonNodeWrapper.style.height=r+"px",this.incrementButtonNode.style.marginTop=a+"px",this.decrementButtonNode.style.marginTop=s+"px"},_onChangeHandler:function(e){var t,i;if(e.preventDefault(),e.stopPropagation(),"normal"!==this.get("validationState"))this._revertToOldValue(e.mwEventData.oldValue);else{if(t=e.mwEventData.oldValue,i=e.mwEventData.newValue,this.roundValueToInt){var n=this._getTextFieldContentsAsFiniteNumber();i=this._validateAndCalibrateRoundedValue(n),this._startValue=parseFloat(i),this._clickCount=0}i=this._isNumeric(i)?parseFloat(i):i,t=this._isNumeric(t)?parseFloat(t):t,this.changingActionPerformed(i),this.set("value",i),this._triggerChangeEvent("value",t,i)}},_disableDragDrop:function(e){return e.preventDefault(),!1},_onIncrementButtonMouseDown:function(){this._delayStart=setTimeout(t.hitch(this,(function(){this._valueChangeTimer=setInterval(t.hitch(this,(function(){if(!this._isIncrementButtonDisabled()){var e=parseFloat(this._textField.get("value"));this._handleIncrement();var t=parseFloat(this._textField.get("value"));this._triggerChangingEvent("value",e,t)}})),100),this._preventClick=!0,this._isMouseDown=!0})),300)},_onDecrementButtonMouseDown:function(){this._delayStart=setTimeout(t.hitch(this,(function(){this._valueChangeTimer=setInterval(t.hitch(this,(function(){if(!this._isDecrementButtonDisabled()){var e=parseFloat(this._textField.get("value"));this._handleDecrement();var t=parseFloat(this._textField.get("value"));this._triggerChangingEvent("value",e,t)}})),100),this._preventClick=!0,this._isMouseDown=!0})),300)},_onButtonMouseUp:function(){clearInterval(this._valueChangeTimer),clearTimeout(this._delayStart),this._isMouseDown&&(this._triggerChangeEvent("value","",this.get("value")),this._isMouseDown=!1)},_onKeyDown:function(e){if(e.keyCode===a.UP_ARROW){if(e.preventDefault(),!this._isIncrementButtonDisabled()){var t=parseFloat(this._textField.get("value"));this._handleIncrement();var i=parseFloat(this._textField.get("value"));this._triggerChangingEvent("value",t,i),this._isKeyDown=!0}}else if(e.keyCode===a.DOWN_ARROW){if(e.preventDefault(),!this._isDecrementButtonDisabled()){t=parseFloat(this._textField.get("value"));this._handleDecrement();i=parseFloat(this._textField.get("value"));this._triggerChangingEvent("value",t,i),this._isKeyDown=!0}}else(e.keyCode===a.PAGE_UP||e.keyCode===a.PAGE_DOWN)&&e.preventDefault()},_onKeyUp:function(e){this.inherited(arguments),e.keyCode===a.UP_ARROW?this._isKeyDown&&(this._triggerChangeEvent("value","",this.get("value")),this._isKeyDown=!1):e.keyCode===a.DOWN_ARROW&&this._isKeyDown&&(this._triggerChangeEvent("value","",this.get("value")),this._isKeyDown=!1)},_triggerChangingEvent:function(e,t,i){this.emit("changing",{mwEventData:{propertyName:e,oldValue:t,newValue:i}})},_handleValidation:function(e){var t=this._rangeCheck(w.convertValueToNumber(e)),i=this.allowInfiniteValue?w.isFiniteValue(e)||w.isInfinteValue(e):w.isFiniteValue(e)&&!isNaN(parseFloat(e)),n=this.disabled||i&&t;if(this.includeDefaultErrorText)if(i)if(!t&&this.isCustomRangeErrorMessages){var o=this.get("limits").minimum===w.NegativeInfinity?w.NegativeInfinityString:this.get("limits").minimum,r=this.get("limits").maximum===w.PositiveInfinity?w.PositiveInfinityString:this.get("limits").maximum;e!==this.get("limits").minimum||this.get("includeMinimum")?e!==this.get("limits").maximum||this.get("includeMaximum")?this.set("errorText",this.rangeMessageBetween.replace("%1",o).replace("%2",r)):this.set("errorText",this.rangeMessageLessThan.replace("%1",r)):this.set("errorText",this.rangeMessageGreaterThan.replace("%1",o))}else this.set("errorText",this.rangeMessage);else this.set("errorText",this.invalidMessage);return n?(this.set("validationState","normal"),this.validationTooltip&&this.validationTooltip.domNode.classList.remove("mwValidationFocused")):this.set("validationState","error"),n},_handleIncrement:function(){var e;if(w.isInfinteValue(this._convertInfiniteValueToString(this.get("value")))?(e=this.get("limits").maximum===Number.POSITIVE_INFINITY?0:this.get("limits").maximum,this._startValue=e,this._clickCount=0):w.isEmpty(this.get("value"))?(e=w.isFiniteValue(this.get("limits").minimum)?this.get("limits").minimum+this.get("step"):w.isFiniteValue(this.get("limits").maximum)?this.get("limits").maximum:0+this.get("step"),this._startValue=e,this._clickCount=0):(this._clickCount=this._clickCount+1,e=this._startValue+this.get("step")*this._clickCount),!this._rangeCheck(e)){if(this.get("includeMaximum"))e=this.get("limits").maximum,e=this._convertInfiniteValueToString(e);else{var t=this._calculateIncrement(this.get("limits").maximum,-.1);e=this.get("limits").maximum+t,e=this._convertInfiniteValueToString(e),this.roundValueToInt&&(e=this._validateAndCalibrateRoundedValue(e))}this._startValue=e,this._clickCount=0}this._textField._set("value",e+""),this._set("value",e),this._previousValue=e,this.setDomValueOnButtonClick&&(w.isInfinteValue(e)||this._isInt(e)?this._textField.setValueInDom(e+""):this._textField.setValueInDom(this._formatShort(e)+"")),this._setButtonState()},_handleDecrement:function(){var e;if(w.isInfinteValue(this._convertInfiniteValueToString(this.get("value")))?(e=this.get("limits").minimum===Number.NEGATIVE_INFINITY?0:this.get("limits").minimum,this._startValue=e,this._clickCount=0):w.isEmpty(this.get("value"))?(e=w.isFiniteValue(this.get("limits").minimum)?this.get("limits").minimum:w.isFiniteValue(this.get("limits").maximum)?this.get("limits").maximum-this.get("step"):0-this.get("step"),this._startValue=e,this._clickCount=0):(this._clickCount=this._clickCount-1,e=this._startValue+this.get("step")*this._clickCount),!this._rangeCheck(e)){if(this.get("includeMinimum"))e=this.get("limits").minimum,e=this._convertInfiniteValueToString(e);else{var t=this._calculateIncrement(this.get("limits").minimum,.1);e=this.get("limits").minimum+t,e=this._convertInfiniteValueToString(e),this.roundValueToInt&&(e=this._validateAndCalibrateRoundedValue(e))}this._startValue=e,this._clickCount=0}this._textField._set("value",e+""),this._set("value",e),this._previousValue=e,this.setDomValueOnButtonClick&&(w.isInfinteValue(e)||this._isInt(e)?this._textField.setValueInDom(e+""):this._textField.setValueInDom(this._formatShort(e)+"")),this._setButtonState()},_calculateIncrement:function(e,t){var i=t;if(!w.isFiniteValue(e))return 0;for(;!1===this._rangeCheck(e+i);)i/=10;return i},_validateAndCalibrateRoundedValue:function(e){var t=Math.round(e),i=Math.floor(e),n=Math.ceil(e),o=null;return this._rangeCheck(t)?o=t:this._rangeCheck(i)?o=i:this._rangeCheck(n)&&(o=n),this._convertInfiniteValueToString(o)},_rangeCheck:function(e){var t=!1===this.get("includeMinimum")?e>this.get("limits").minimum:e>=this.get("limits").minimum,i=!1===this.get("includeMaximum")?e<this.get("limits").maximum:e<=this.get("limits").maximum,n=this.get("limits").maximum-e==0&&Math.abs(this.get("limits").maximum)-Number.MAX_VALUE==0,o=this.get("limits").minimum-e==0&&Math.abs(this.get("limits").minimum)-Number.MAX_VALUE==0;return t&&i||n||o},_setRevertTimeout:function(e){return e||750},_revertToOldValue:function(e){this._hiddenDiv=o.create("div",{},this.domNode);var i=n.getBorderExtents(this.domNode);this._hiddenDiv.style.top=-i.t+"px",this._hiddenDiv.style.right=-i.r+"px",this._hiddenDiv.style.bottom=-i.b+"px",this._hiddenDiv.style.left=-i.l+"px",this._hiddenDiv.style.position="absolute",this._hiddenDiv.addEventListener("mousedown",(function(e){e.preventDefault(),e.stopPropagation()})),setTimeout(t.hitch(this,(function(){var t=this._textField.get("value");!0!==this._destroyed&&(this._handleValidation(t)||(this._textField.set("value",e+""),w.isFiniteValue(e)||this._set("value",e),this._handleDisplayFormat()),this.set("validationState","normal"),o.destroy(this._hiddenDiv))})),this._setRevertTimeout())},changingActionPerformed:function(e){},_getTextFieldContentsAsFiniteNumber:function(){var e=this._getTextFieldContentsAsString();return w.convertValueToNumber(e)},_getTextFieldContentsAsString:function(){return t.trim(this._textField.value)},_isDecrementButtonDisabled:function(){return this.decrementButtonNode.classList.contains("mwDecrementButtonDisabled")},_isIncrementButtonDisabled:function(){return this.incrementButtonNode.classList.contains("mwIncrementButtonDisabled")},_disableIncrementButton:function(){this.incrementButtonNode.classList.add("mwIncrementButtonDisabled"),this.incrementButtonNodeWrapper.classList.add("mwButtonWrapperDisabled")},_disableDecrementButton:function(){this.decrementButtonNode.classList.add("mwDecrementButtonDisabled"),this.decrementButtonNodeWrapper.classList.add("mwButtonWrapperDisabled")},_enableIncrementButton:function(){this.incrementButtonNode.classList.remove("mwIncrementButtonDisabled"),this.incrementButtonNodeWrapper.classList.remove("mwButtonWrapperDisabled")},_enableDecrementButton:function(){this.decrementButtonNode.classList.remove("mwDecrementButtonDisabled"),this.decrementButtonNodeWrapper.classList.remove("mwButtonWrapperDisabled")},_containsNonNumericCharacter:function(e){return e.split("").some((function(e){return-1==="0123456789.".indexOf(e)}))},_isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},_isInt:function(e){return Number(e)===e&&e%1==0},_formatShort:function(e){return w.isFiniteValue(e)?(e=parseFloat(e),w.getPrecision(e)>this.valuePrecision?parseFloat(e.toFixed(this.valuePrecision)):e):e},_convertInfiniteValueToString:function(e){var t=w.convertValueToNumber(e);return t===Number.POSITIVE_INFINITY?"Inf":t===Number.NEGATIVE_INFINITY?"-Inf":t},_qeTypeOverWithEnter:function(e){var t=this.get("value");this.set("value",e),this._triggerChangeEvent("value",t,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(229),i(300),i(574)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{read:function(e,t,i){var n,o=!0,r=[];return Array.isArray(e)?e.forEach((function(e){n=this._readParagraph(e,t,i),r.push(n.readObject)}),this):(n=this._readParagraph(e,t,i),r=n.readObject),o=o&&n.readStatus,{readObject:r,readStatus:o}},_readParagraph:function(e,t,i){for(var o=!0,r={className:this.getNodeType(),children:[]},a=0;a<e.childNodes.length;a++){var s=i.getSerializer(n.getClassName(e.childNodes[a])),l={};if(s){l=s.read(e.childNodes[a],t,i),r.children.push(l.readObject),l.readStatus||(o=!1);var c=n.getBookmarkStart(e);c&&c.id&&(r.anchorId=c.id)}}return{readObject:r,readStatus:o}},mustMerge:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(236),i(203),i(800)],o=i.dj.d(n,(function(e,t,i){return t(null,{LINE_BREAKPOINT:0,constructor:function(e,t,i,n,o,r){this.zeroBasedLineNumber=e,this.fileName=t,this.isEnabled=i,this.expression=n||"",this.anonymousIndex=o||this.LINE_BREAKPOINT,this.zeroBasedColumnNumber=r||this.LINE_BREAKPOINT},equals:function(e){return this.zeroBasedLineNumber===e.zeroBasedLineNumber&&this.fileName===e.fileName&&this.isEnabled===e.isEnabled&&this.expression===e.expression&&this.zeroBasedColumnNumber===e.zeroBasedColumnNumber},hasExpression:function(){return 0!==this.expression.length},isAnonymous:function(){return this.anonymousIndex!==this.LINE_BREAKPOINT},isValid:function(){return this.zeroBasedLineNumber>=0},toString:function(){var e="";return this.isAnonymous()&&(e=this._buildAnonymousString()+" "),this._buildLineString()+" "+e+this._buildEnablementString()+" "+this._buildExpressionString()},_buildLineString:function(){return i.tooltipLine+": "+(this.zeroBasedLineNumber+1)+"."},_buildAnonymousString:function(){return e.substitute(i.tooltipAnonymous,[this.anonymousIndex])+"."},_buildEnablementString:function(){var e=i.tooltipStatus+": ";return this.isEnabled?e+=i.tooltipEnabled:e+=i.tooltipDisabled,e+="."},_buildExpressionString:function(){var e="";return this.hasExpression()&&(e=i.tooltipCondition+": '"+this.expression+"'."),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,NEST:8}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{FONT_MONOSPACE:"Consolas",OUTPUT_STYLE:'margin-left: 17px; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; color: rgb(64, 64, 64); white-space: pre;',DOCUMENT_TARGET:"/word/document.xml",NUMBERING_TARGET:"/word/numbering.xml",STYLES_TARGET:"/word/styles.xml",DOCUMENT_TYPE:"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml",IMAGE_RELATIONSHIP_TYPE:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",STYLES_TYPE:"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml",NUMBERING_TYPE:"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml",VLNS_TYPE:"urn:schemas-microsoft-com:vml",DOCUMENT_TARGET_SCHEMA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",DRAWING_SHEMA:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",DRAWING_ML_SHEMA:"http://schemas.openxmlformats.org/drawingml/2006/main",F_CHUNK_SCHEMA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk",HYPERLINK_SCHEMA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",MATH_SCHEMA:"http://schemas.openxmlformats.org/officeDocument/2006/math",MC_SCHEMA:"http://schemas.openxmlformats.org/markup-compatibility/2006",NUMBERING_TARGET_SCHEMA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",REALATIONSHIPS_SCHEMA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",OFFICE_SCHEMA:"http://schemas.microsoft.com/office/mac/office/2008/main",PICTURE_SCHEMA:"http://schemas.openxmlformats.org/drawingml/2006/picture",STYLES_TARGET_SCHEMA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",W14_SCHEMA:"http://schemas.microsoft.com/office/word/2010/wordml",W15_SCHEMA:"http://schemas.microsoft.com/office/word/2012/wordml",W_SCHEMA:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",WORD_PROCESSING_DRAWING_SCHEMA:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",MARKUM_COMPATIBILITY_TAG:"xmlns:mc",MATH_TAG:"xmlns:m",OFFICE_TAG:"xmlns:mo",REALATIONSHIPS_TAG:"xmlns:r",SCHEMA_IGNORABLE_TAG:"mc:Ignorable",VLNS_TAG:"xmlns:v",WORD_ML_TAG:"xmlns:w14",WORD_PROCESSING_DRAWING_TAG:"xmlns:wp14",XML_SPACE:"xml:space",ALT_CHUNK:"altChunk",DIV:"div",MHT_CONTENT_TYPE:"message/rfc822",POSITION:"position",SINGLE:"single",STYLE:"style",VALUE_TAG:"w:val",AV_LST_TAG:"a:avLst",BLIP_FILL_TAG:"pic:blipFill",BLIP_TAG:"a:blip",C_NV_PIC_PR_TAG:"pic:cNvPicPr",C_NV_PR_TAG:"pic:cNvPr",CX:"cx",CY:"cy",DIST_B:"distB",DIST_L:"distL",DIST_R:"distR",DIST_T:"distT",DOC_PR_TAG:"wp:docPr",DRAWING_TAG:"w:drawing",EXT_TAG:"a:ext",EXTENT_TAG:"wp:extent",FILL_RECT_TAG:"a:fillRect",GRAPHIC_DATA_TAG:"a:graphicData",GRAPHIC_TAG:"a:graphic",ID:"id",IMAGE_NAME_TYPE:"image",IMAGE_TARGET:"/media/",INLINE_TAG:"wp:inline",NAME:"name",OFF_TAG:"a:off",PIC_PR_AG:"pic:nvPicPr",PIC_TAG:"pic:pic",PRST:"prst",PRST_GEOM_TAG:"a:prstGeom",R_EMBED:"r:embed",SP_PR_TAG:"pic:spPr",STRETCH_TAG:"a:stretch",URI:"uri",X:"x",XFRM_TAG:"a:xfrm",Y:"y",COLOR:"color",NO_PROOF:"noProof",SPAN:"span",MATH:"m",O_MATH_PARA:"oMathPara",HYPERLINK:"Hyperlink",R_STYLE:"rStyle",BEGIN:"begin",END:"end",DEFAULT:"w:default",FIELD_CHAR_TAG:"w:fldCharType",FIELD_TAG:"w:fldChar",FIELD_TYPE_TAG:"w:fldCharType",INSERT_TEXT_TAG:"w:instrText",LINE_BREAK_TAG:"w:br",SEPARATE:"separate",AFTER_TAG:"w:after",AFTER_AUTOSPACING:"w:afterAutospacing",ASCII_TAG:"w:ascii",BASED_ON_TAG:"w:basedOn",BEFORE_TAG:"w:before",BEFORE_AUTOSPACING:"w:beforeAutospacing",BOTTOM_TAG:"w:bottom",COLOR_TAG:"w:color",CONTEXTUAL_SPACING_TAG:"w:contextualSpacing",COUNT_TAG:"w:count",CS_THEME_TAG:"w:cstheme",DEF_Q_FORMAT_TAG:"w:defQFormat",DOC_DEFAULTS_TAG:"w:docDefaults",EAST_ASIA_THEME_TAG:"w:eastAsiaTheme",FILL_TAG:"w:fill",FIRST_LINE_DOCX:"w:firstLine",H_ANSI_TAG:"w:hAnsi",INDENTATION_TAG:"w:ind",LATENT_STYLES_TAG:"latentStyles",LEFT_TAG:"w:left",LINE_RULE_TAG:"w:lineRule",LINE_TAG:"w:line",LOCKED_STATE_TAG:"w:defLockedState",NAME_TAG:"w:name",NEXT_TAG:"w:next",PARAGRAPH_BORDER_TAG:"w:pBdr",PROPERTY_DEFAULT_TAG:"w:rPrDefault",Q_FORMAT_TAG:"w:qFormat",REVISION_ID_TAG:"w:rsid",RIGHT_TAG:"w:right",ROW_FONTS_TAG:"w:rFonts",SCHEMA_MC_TAG:"xmlns:mc",SCHEMA_R_TAG:"xmlns:r",SCHEMA_W14_TAG:"xmlns:w14",SCHEMA_W15_TAG:"xmlns:w15",SCHEMA_W_TAG:"xmlns:w",SEMI_HIDDEN_TAG:"w:defSemiHidden",SHD_TAG:"w:shd",SIZE_TAG:"w:sz",SPACE_TAG:"w:space",SPACING_TAG:"w:spacing",STYLE_ID_TAG:"w:styleId",STYLE_TAG:"w:style",STYLES_TAG:"w:styles",THEME_COLOR_TAG:"w:themeColor",THEME_FILL_SHADE_TAG:"w:themeFillShade",THEME_FILL_TAG:"w:themeFill",THEME_SHADE_TAG:"w:themeShade",TOP_TAG:"w:top",TYPE_TAG:"w:type",UI_PRIORITY_TAG:"w:defUIPriority",UNHIDE_WHEN_USED_TAG:"w:defUnhideWhenUsed",ABSTRACT_NUMBER:"w:abstractNum",ABSTRACT_NUMBER_ID:"w:abstractNumId",BULLET:"bullet",DECIMAL:"decimal",DEFAULT_TAG:"default",HANGING:"w:hanging",HINT:"w:hint",INITIAL_LEVEL:"w:ilvl",LEFT:"left",LEVEL:"w:lvl",LEVEL_JC:"w:lvlJc",LEVEL_TEXT:"w:lvlText",MULTILEVEL_TYPE:"w:multiLevelType",NUMBER:"w:num",NUMBER_FORMAT:"w:numFmt",NUMBER_ID:"w:numId",NUMBERING:"w:numbering",START:"w:start",SYMBOL:"Symbol",PAGE_HEIGHT:"w:h",PAGE_MARGIN:"w:pgMar",PAGE_ORIENTATION:"w:orient",PAGE_SIZE:"w:pgSz",PAGE_WIDTH:"w:w",SECTION_PROPERTY:"w:sectPr"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(274),i(470),i(323),i(582),i(551),i(347),i(380)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{hasRichText:function(t){var i=!1,n=this._getStartEndNodeForCursor(t);return e.textContainerNodesInRangeIterator(n.startNode,n.endNode,(function(e){if(e.isInstanceOf(r))return i=!0,!0})),i},isRichText:function(t){var i=!0,n=this._getStartEndNodeForCursor(t);return e.textContainerNodesInRangeIterator(n.startNode,n.endNode,(function(e){if(!e.isInstanceOf(r))return i=!1,!0})),i},getParagraphFormat:function(t){var i=this._getStartEndNodeForCursor(t);return e.getParagraphFormat(i)},_getStartEndNodeForCursor:function(e){var t=e.selectionInfo();return{startNode:(t=e.adjustSelection(t,!0)).startNode,endNode:t.endNode}},getNodeConstructorByFormat:function(e){return e===n.NORMAL.FORMAT?r:this.isRichTextParagraphFormat(e)?o:"code"===e?i:null},isRichTextParagraphFormat:function(e){for(var t in n)if(n.hasOwnProperty(t)&&n[t].FORMAT===e)return!0;return!1},getRichTextLinesAndLineNodes:function(e,t,i){for(var n=[],o=[],a=t;a<=i;a++){var s=e.getLineNode(a);s.isInstanceOf(r)&&(n.push(a),o.push(s))}return 0===o.length?null:{lineNodes:o,lineNumbers:n}},isReadOnly:function(e,t){return!(!e||!e.isReadOnly())||!(!t||!t.isCursorReadOnly())},updateActionShortcuts:function(e,t){t.forEach((function(t){var i=e.getAction(t.id);e.removeAction(t.id),i.key=t.key,i.platformKey=t.platformKey,t.contextMenuGroup&&(i.contextMenuGroup=t.contextMenuGroup),e.addAction(i)}))},cloneRichTextNodeFromPositionWithText:function(e,i){var n=i.getNode();n instanceof t&&(n=n.getPositionFromOffset(i.getOffset()).getNode());var o=new a({text:e});return o.setStyleAttributes(n.getStyleAttributes()),o}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(214)],o=i.dj.d(n,(function(e){return function(){var t={emit:function(e){}};return{subscribe:function(i){var n=e.after(t,"emit",i,!0);return{unsubscribe:function(){n.remove()}}},emit:function(e){t.emit(e)}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(4471),i(1428),i(4473),i(4474),i(4475),i(4476),i(4477),i(4478),i(4479),i(4480),i(4481)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){var u=function(t,i){return function(n){if(i)for(var o in n.options||(n.options={}),i)i.hasOwnProperty(o)&&(n.options[o]=i[o]);var r=e(t(n.options));if(n.callbacks)for(var a in n.callbacks)n.callbacks.hasOwnProperty(a)&&r.on(a,n.callbacks[a]);if(n&&n.options&&n.options.pointerTypes){var s=n.options.pointerTypes;r.setPointerTypes(s)}return r}};return{click:u(o),tap:u(n),tapmove:u(i),slide:u(i,{numTaps:0}),flick:u(r),pan:u(a),rotate:u(s),pinch:u(l),doubleTap:u(n,{numTaps:2}),tripleTap:u(n,{numTaps:3}),leftClick:u(o,{button:t.LEFT}),rightClick:u(o,{button:t.RIGHT}),wheel:u(c),hover:u(d)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{INLINE_VIEW_STATE:"document",ON_RIGHT_VIEW_STATE:"code",HIDE_CODE_VIEW_STATE:"hidecode",SLIDE_VIEW_STATE:"slide"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{ADD_OUTPUT:0,REASSOCIATE_AND_UPDATE:1,UPDATE:2,REMOVE_OUTPUT:3,IGNORE_OUTPUT:4}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._events={}}return r(e,[{key:"on",value:function(e,t){var i=this;this._events[e]||(this._events[e]=[]),this._events[e].push(t);var n={remove:function(){var o=i._events[e].indexOf(t);i._events[e].splice(o,1),n.remove=function(){return null}}};return n}},{key:"emit",value:function(e,t){var i=this._events[e],n=Object.getOwnPropertyNames(t),o={};o.eventName=e,n.forEach((function(e){o[e]=t[e]}));var r;(r=i)&&r.forEach((function(e){e(o)}))}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(206),i(336),i(2146),i(5811),i(5814),i(5815),i(5819),i(5820),i(5822),i(350),i(1507),i(5824),i(239),i(5829),i(2151),i(957),i(2169),i(5832),i(2163),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){"use strict";return function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,t),this._eventListeners=[],this._controllers=[],this._plugins=[],this._eventsMap={},this._createModels(e);var n=_.getPluginsBasedOnDSConfiguration(this._dataStore)||[],o=i.plugins||[],r=[].concat(a(o),a(n));r=r.length>0?r:void 0;var l=this._getConfiguredPlugins(r,i);this._setViewModel(this._myViewModel,i),this._domNode=document.createElement("div"),this._domNode.className="mw-tree treeContainer",this._domNode.setAttribute("data-test-id",i.dataTestId),this._configureFeatureSpecificViewAndController(i,l),this._createAndConfigureControllers(i),this._createAndConfigurePlugins(l,i)}return r(t,[{key:"_configureFeatureSpecificViewAndController",value:function(e,t){if(e.editor&&e.editor.type){this._treeView=new n(this._myViewModel,this._domNode,e,t);var r=new o(this._treeView,this._myViewModel,this._dataStore);this._proxyControllerEvents(r,r.emits),this._controllers.push(r)}else this._treeView=new i(this._myViewModel,this._domNode,e,t);this._facadeListeners(this._controllers),this._mixinFacade(this._controllers)}},{key:"_warnUsersAboutIncompatiblePlugins",value:function(e){var t=_.COMPATIBLE,i="",n="[";e.forEach((function(e){i+=e.name+" "})),n+=i.trim()+"] are incompatible/not supported, however [",t.forEach((function(t){var i="",o=!1;t.forEach((function(t){e.indexOf(t)&&(o=!0),i+=t.name+" "})),o&&(n+=i.trim()+"] ")})),n+="are supported.",console.warn(n)}},{key:"_discardIncompatiblePlugins",value:function(e){var t=this,i=_.INCOMPATIBLE,n=[];return i.forEach((function(i){var o=0;i.forEach((function(t){var i=e.indexOf(t);i>-1&&(o>0&&n.push(i),o++)})),n.length>0&&t._warnUsersAboutIncompatiblePlugins(i)})),n.forEach((function(t){return e.splice(t,1)})),e}},{key:"_getConfiguredPlugins",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[_.AVAILABLE.SingleNodeSelection],t=[];e.forEach((function(e){Array.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)}));var i=[];return i=t.reduce((function(e,t){return-1===e.indexOf(t)&&e.push(t),e}),[]),this._discardIncompatiblePlugins(i)}},{key:"_setViewModel",value:function(e,t){var i=t.lookAheadNodeBuffer,n=t.nodeHeightInPx;e.setState("lookAheadNodeBuffer",i||C.lookAheadNodeBuffer),e.setState("nodeHeightInPx",n||C.nodeHeight),this._viewStateOptions={lookAheadNodeBuffer:i,nodeHeightInPx:n}}},{key:"_createModels",value:function(e){Array.isArray(e)?this._dataStore=h.create(e,Object.assign({},{type:T.TREE})):this._dataStore=e;var t=new p(this._dataStore);this._myViewModel=new f(t)}},{key:"_createAndConfigureControllers",value:function(e){var t=new l(this._treeView,this._myViewModel,this._dataStore),i=new c(this._treeView,this._myViewModel,this._dataStore);if(e.actions){var n=new d(this._treeView,this._myViewModel,this._dataStore,e);this.executeAction=n.executeAction;var o=n.emits;this._proxyControllerEvents(n,o),this._controllers.push(n)}if(!this._dataStore.isCheckboxTree&&!e.editor){var r=new u(this._treeView,this._myViewModel,this._dataStore),a=r.emits;this._proxyControllerEvents(r,a),this._controllers.push(r)}var s=t.emits;this._proxyControllerEvents(t,s),this._controllers.push(t),this._controllers.push(i)}},{key:"_proxyControllerEvents",value:function(e,t){var i=this;t.forEach((function(t){i._eventsMap[t]=e}))}},{key:"_makeMap",value:function(){return"undefined"==typeof Map?{_map:{},get:function(e){return this._map[e]},set:function(e,t){this._map[e]=t}}:new Map}},{key:"_createAndConfigurePlugins",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[_.AVAILABLE.SingleNodeSelection],i=arguments[1],n=this._makeMap(),o=void 0;t.forEach((function(t){var r=t.adaptor;n.get(r.toString())||(o=new r(e._myViewModel,e._treeView,e._dataStore,i),n.set(r.toString(),o));var a=new t(n.get(r.toString()));e._plugins.push(a)})),this._facadeListeners(this._plugins),this._mixinFacade(this._plugins)}},{key:"_mixinFacade",value:function(e){var t=this;e.forEach((function(e){var i=e.exposedAPI();Object.keys(i).forEach((function(e){if("exposedVariables"===e){var n=i.exposedVariables;Object.keys(n).forEach((function(e){Object.defineProperty(t,e,{set:n[e].setter,get:n[e].getter})}))}t[e]=i[e]}))}))}},{key:"_facadeListeners",value:function(e){var t=this;e.forEach((function(e){e.emits.forEach((function(i){return t._eventsMap[i]=e}))}))}},{key:"_constructTreeView",value:function(){this._treeView.initialize()}},{key:"resize",value:function(e,t){if(this._treeView){var i=this._viewStateOptions.nodeHeightInPx;this._myViewModel.setState("nodeHeightInPx",i||C.nodeHeight),this._treeView.resize(e,t)}}},{key:"startup",value:function(){0===this._domNode.clientHeight&&console.warn("Please set Tree's container height to 100% or value greater than 0. If the container height is unset, Tree will display 10 TreeNodes only."),this._constructTreeView()}},{key:"on",value:function(t,i){if(this._eventsMap[t]){var n=e(this._eventsMap[t],t,i);return this._eventListeners.push(n),n}throw new Error("Tree Configuration does not seem to support the event that you want to configure. Please check configuration.")}},{key:"expand",value:function(e,t){if(!Array.isArray(e)||!e.length)throw new Error("Expected: non empty treeNodearray. Usage: tree.expand([{id: 'node1'}])");this._dataStore.expand(e)}},{key:"expandAll",value:function(){this._dataStore.expandAll()}},{key:"collapse",value:function(e,t){if(!Array.isArray(e)||!e.length)throw new Error("Expected: non empty treeNodearray. Usage: tree.collapse([{id: 'node1'}])");this._dataStore.collapse(e)}},{key:"collapseAll",value:function(){this._dataStore.collapseAll()}},{key:"scrollTo",value:function(e){if(e===y.FIRST_NODE)this._treeView.scrollToIndex(this._myViewModel.dataSize.rows.start);else if(e===y.LAST_NODE)this._treeView.scrollToIndex(this._myViewModel.dataSize.rows.end);else{if(!e||!e.id)throw new Error("Expected: Tree.FIRST_NODE, Tree.LAST_NODE or treeNode object with id property. Usage: scrollTo({id: 'node1'})");this._treeView.scrollTo(e)}}},{key:"destroy",value:function(){this._eventListeners.forEach((function(e){return e.remove()})),this._controllers.forEach((function(e){e.destroy&&e.destroy()})),this._plugins.forEach((function(e){return e.destroy()}));var e=this._domNode.parentNode;this._treeView.destroy(),e&&e.removeChild(this._domNode)}},{key:"domNode",get:function(){return this._domNode}}],[{key:"PLUGINS",get:function(){return _.AVAILABLE}},{key:"EDITORS",get:function(){return m}},{key:"ACTIONS",get:function(){return b.ACTIONS}},{key:"FIRST_NODE",get:function(){return y.FIRST_NODE}},{key:"LAST_NODE",get:function(){return y.LAST_NODE}},{key:"DND_ENUM",get:function(){return v.MODE}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({BACKSPACE:8,NUM_START:48,NUM_END:57,F2:113,SPACE:32,ENTER:13,ESCAPE:27,ALPHA_START:65,ALPHA_END:90,NUMPAD_START:95,NUMPAD_END:112,SYM1_START:185,SYM1_END:193,SYM2_START:219,SYM2_END:222,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(405),i(456)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{needlePeggingPosition:5,majorTickLimit:150,scalingFactor:1,labelRadiusOffset:null,initializeConstants:function(e,i,n,o,r,a,s,l,c,d,u){this.startAngle=e,this.angularSpan=i,this.defaultLabelHeight=13,this.fontSize=10,this.defaultFontSize=10,this.labelRadiusOffset=r;var h=this.SVGDocument.getElementById("Center");this.centerX=parseFloat(h.getAttribute("cx")),this.centerY=parseFloat(h.getAttribute("cy")),this.radius=s||t.position(this.SVGDocument.getElementById("RadiusLine")).h,this.radius<1?this.labelRadius=t.position(this.SVGDocument.getElementById("RadiusLine")).w+r:this.labelRadius=this.radius+r,this.minorTickLength=this.radius+o,this.scaleColorRadius=this.radius+a,this.minorTickInnerRadius=l,this.minorTickOuterRadius=c,this.majorTickInnerRadius=d,this.majorTickOuterRadius=u},setScalingFactor:function(e){this.scalingFactor=e},layoutMinorTicks:function(e,t,i){if("hidden"===this.SVGDocument.getElementById("tooManyTicksErrorMessage").getAttribute("visibility")){var n=this.computeTickPositions(t,e,i),r=this.SVGDocument.getElementById("Minor_Ticks");o.removeChildNodes(r),this.drawTickLines(e,n,"Minor_Ticks")}},drawTickLines:function(e,t,i){var r,a,s=this.SVGDocument.getElementById(i);"Major_Ticks"===i?(r=this.majorTickInnerRadius,a=this.majorTickOuterRadius):(r=this.minorTickInnerRadius,a=this.minorTickOuterRadius);for(var l={},c=0;c<e.length;c++)l.x1=this.centerX-r*Math.cos(n.toRadians(t[c])),l.y1=this.centerY-r*Math.sin(n.toRadians(t[c])),l.x2=this.centerX-a*Math.cos(n.toRadians(t[c])),l.y2=this.centerY-a*Math.sin(n.toRadians(t[c])),l.id=i+"_"+e[c],o.addNewElement(s,"line",l)},computeTickPositions:function(e,t,i){for(var n=e[1]-e[0],o=[],r=0;r<t.length;r++)o[r]=Number("clockwise"===i?((t[r]-e[0])/n*this.angularSpan+this.startAngle).toFixed(4):(this.startAngle+this.angularSpan-(t[r]-e[0])/n*this.angularSpan).toFixed(4));return o},_removeMinorTicks:function(){var e=this.SVGDocument.getElementById("Minor_Ticks");o.removeChildNodes(e)},_removeMajorTicks:function(){var e=this.SVGDocument.getElementById("Major_Ticks");o.removeChildNodes(e)},getLabelsAndAngles:function(){var e=this.WidgetData.getProperty("Limits"),t=this.WidgetData.getProperty("ScaleDirection");void 0===t&&(t="clockwise");var i=this.computeTickPositions(e,this.majorTicks,t);return{ticks:this.majorTicks,labels:this.majorTickLabels,positions:i}},setValue:function(e,t,i){var o=-this.needlePeggingPosition,r=this.angularSpan+this.needlePeggingPosition,a=0;a=t>=e[0]&&t<=e[1]?this._computeNeedleAngleForValue(t,e,i):t<e[0]?"clockwise"===i?o:r:"clockwise"===i?r:o,this._rotateNeedle(n.toPositiveAngle(a))},_computeNeedleAngleForValue:function(e,t,i){var n=t[1]-t[0],o=(e-t[0])/n*this.angularSpan;return"clockwise"===i?o:this.angularSpan-o},_rotateNeedle:function(e){if(isNaN(e)||"number"!=typeof e)throw new Error("Error with rotateNeedle: Wrong typeof Input Argument. rotateNeedle expects Numeric Data as input.");var t="rotate("+e+","+this.centerX+","+this.centerY+")";this.SVGDocument.getElementById("Needle").setAttribute("transform",t)},_isComponentInErrorState:function(e){var t=this.SVGDocument.getElementById("tooManyTicksErrorMessage");return this._isTooManyTicksPresent(e)?(t.setAttribute("visibility","visible"),this._removeMajorTicks(),this.createAndCleanUpLabelDiv(),this._removeMinorTicks(),!0):(t.setAttribute("visibility","hidden"),!1)},_isTooManyTicksPresent:function(e){return e.length>this.majorTickLimit}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(6318)],o=i.dj.d(n,(function(e,t){var i=JSON.parse(t),n=i,o={};function r(t,i){if(t===i||!t&&!i)return!0;if(Array.isArray(t)){if(Array.isArray(i))return e.compareArrays(t,i);for(var n=0;n<t.length;n+=1)if(t[n]===i)return!0;if(0===t.length&&!i)return!0}return!1}function a(e,t,i,n,o){if(e=e.filter((function(e){var i=r(e.Keyset.Container,t);return i=i&&r(e.Keyset.DataAttributes,o)})),i){var a=e.filter((function(e){var t=r(e.Keyset.Datatype,i);return t=t&&r(e.Keyset.DataAttributes,o)}));a.length>0&&(e=a)}if(n){var s=e.filter((function(e){return r(e.Keyset.Context,n)}));s.length>0&&(e=s)}return e.length>0?e[0]:void 0}function s(e,t,i){for(var n=[],o=0;o<e.length;o+=1)e[o]&&e[o].Keyset&&e[o].Valueset&&r(e[o].Keyset.Context,i)&&r(e[o].Valueset.Editor,t)&&n.push(e[o]);return n}return{getWidgets:function(e,t,i,o){var r,s=a(n,e,t,i,o);return s&&(r=s.Valueset),r},getWidgetsByEditor:function(e,t){var o=s(n,e,t),r=[];return i&&(r=s(i,e,t)),o.concat(r)},registerWidget:function(e,t,i,o,r,s){var l=a(n,e,t,i,r=r||void 0);l&&(Array.isArray(o)&&Array.isArray(l.Valueset.Plugins)?l.Valueset.Plugins[0].featureList=o:l.Valueset.Plugins=[{name:"features",featureList:o}],s&&Object.keys(s).map((function(e){l.Valueset&&(l.Valueset[e]=s[e])})),n.push(l))},registerWidgetDefaults:function(e){try{e&&("string"==typeof e&&(e=JSON.parse(e)),n||(n=[]),n=n.concat(e))}catch(e){console.log(e)}},registerWidgetJSONFile:function(e,t){o[t]||(this.registerWidgetDefaults(t),o[t]=!0)},_getDefaultWidgetByPartialMatch:a}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7609),i(7610),i(7611),i(7612)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/toolstrip",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7962),i(7963),i(7964),i(7965)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/figuretoolstrip",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8125),i(8126),i(8127),i(8128)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/editor",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8362),i(8363),i(8364),i(8365)],o=i.dj.d(n,(function(e,t){return t(e,"importtool_client/l10n/nls/app",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(369),i(630)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";const r="rootSet",a="childAdded",s="childDestroyed",l="propertySet",c="propertiesSet";let d=[];const u=Object.freeze({client:!0});let h=function(e,n,o){let r=e,a=n||this;if(t.isString(e)&&(r=n[e],!r))throw new Error(`Couldn't find callback: ${e}.`);try{r.apply(a,o||[])}catch(e){throw i.error(e),e}},p=function(e,t,i,n){let o={remove:function(){e.removeEventListener(t,i,n)}};return e.addEventListener(t,i,n),d.push(o),o},f=e(null,{_manager:void 0,constructor:function(e,t={}){switch(void 0===t.startupSync&&(t.startupSync=!0),this._strategy=t.strategy||f.PEERMODEL,this._strategy){case f.VIEWMODEL:const i=o.CPPMF0ViewModel;this._manager=i.getViewModelManager(e);break;case f.PEERMODEL:this._manager=n.getInstance(e),t.startupSync&&this.setSyncEnabled(!0);break;default:throw new Error("Unsupported strategy: "+t.strategy)}},setSyncEnabled:function(e){this._manager.setSyncEnabled(e)},onRootSet:function(e,t){return p(this._manager,r,(function(i){h(e,t,[i.target,i])}))},getRoot:function(){return this._manager.getRoot()},hasRoot:function(){return this._manager.hasRoot()},destroy:function(){this._manager.destroy()}});return f.onChildAdded=function(e,t,i){return p(e,a,(function(e){h(t,i,[e.data.child,e])}))},f.onChildDestroyed=function(e,t,i){return p(e,s,(function(e){h(t,i,[e.data.index,e])}))},f.setProperty=function(e,t,i){e.setProperty(t,i,u)},f.unsetProperty=function(e,t){f.setProperty(e,t,"")},f.onPropertySet=function(e,t,i){return p(e,l,(function(e){e.originator!==u&&""!==e.data.newValue&&h(t,i,[e.data.key,e.data.newValue,e.data.oldValue,e])}))},f.onPropertyUnset=function(e,t,i){return p(e,l,e=>{e.originator!==u&&""===e.data.newValue&&""!==e.data.oldValue&&h(t,i,[e.data.key,e.data.oldValue,e])})},f.onPropertiesSet=function(e,t,i){return p(e,c,(function(e){e.originator!==u&&h(t,i,[e.data.newValues,e.data.oldValues,e])}))},f.disconnect=function(){d.forEach((function(e){try{e.remove()}catch(e){}})),d=[]},f.VIEWMODEL="viewmodel",f.PEERMODEL="peermodel",f}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(2764)],o=i.dj.d(n,(function(e){var t=null;return null===t&&(t=new e),t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(222),i(206),i(605),i(245),i(279)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a=new e;return i((function(){var e=o.getBox();if(a._rlh=t(window,"resize",(function(){var t=o.getBox();e.h==t.h&&e.w==t.w||(e=t,a.emit("resize"))})),8==n("ie")){var i=screen.deviceXDPI;setInterval((function(){screen.deviceXDPI!=i&&(i=screen.deviceXDPI,a.emit("resize"))}),500)}n("ios")&&(t(document,"focusin",(function(e){r=e.target})),t(document,"focusout",(function(e){r=null})))})),a.getEffectiveBox=function(e){var t=o.getBox(e),i=r&&r.tagName&&r.tagName.toLowerCase();if(n("ios")&&r&&!r.readOnly&&("textarea"==i||"input"==i&&/^(color|email|number|password|search|tel|text|url)$/.test(r.type))){t.h*=0==orientation||180==orientation?.66:.4;var a=r.getBoundingClientRect();t.h=Math.max(t.h,a.top+a.height)}return t},a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(238),i(206),i(223),i(217),i(204),i(215),i(216),i(316),i(360),i(307),i(1039),i(1283),i(351),i(872),i(352),i(330),i(654),i(1043),i(432),i(370),i(871),i(1712),i(873),i(874),i(353),i(1042),i(335),i(875),i(876),i(1041),i(421),i(877),i(259),i(2856)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O){return e(P.validate([a,s,l,c,d,u,h,p,f,g,m,_,x,v,b,y,C,T,E,S,w,I,A,L,D,N,M]),{baseClass:"mwWidget mwSharedMenuItem mwPopupMenuItem",templateString:O,_focusSubMenuOnOpen:!1,menuOrientation:"horizontal",keyPressButtons:"right_arrow_a11y",postCreate:function(){this.inherited(arguments),this.own(i(this.domNode,"keydown",r.hitch(this,"_handleRightArrow")))},_setFocusSubMenuOnOpenAttr:function(e){if("boolean"!=typeof e)throw new Error("'doFocus' argument expects a boolean value.");this._set("_focusSubMenuOnOpen",e)},_emitClickEvent:function(){this.emit("click",{mwEventData:{value:this.get("text")},_dojo_click:!0})},focusLost:function(e){this.get("menu")&&this.get("menu").isDescendant&&!this.get("menu").isDescendant(e,this.get("menu"))&&(this.get("menu")._closeEventData?this.get("menu")._closeEventData.mwEventData?this.get("menu")._closeEventData.mwEventData.gainedFocusWidget=e:this.get("menu")._closeEventData.mwEventData={gainedFocusWidget:e}:this.get("menu")._closeEventData={mwEventData:{gainedFocusWidget:e}},this.closeMenu(!1))},focus:function(){this.inherited(arguments),this.get("disabled")||this.openMenu()},_handleRightArrow:function(e){e.keyCode===n.RIGHT_ARROW&&(this.isMenuOpen()?this.get("menu").focusFirst():(this.set("_focusSubMenuOnOpen",!0),this.openMenu()))},_showMenu:function(){var e=this.get("menu");null===e||this._doNotOpen||this.isMenuOpen()||(e._leftArrowListener=i(e.domNode,"keydown",r.hitch(e,this._handleLeftArrow)),e._menuCloseListener=i(e.domNode,"close",r.hitch(e,this._handleCloseMenu)),e._storeFocusOnOpen=e.get("_focusOnOpen"),e._storeOnOpen=e.onOpen,e._storeMatchMinWidthToInvokingWidget=e.get("_matchMinWidthToInvokingWidget"),e.set("_focusOnOpen",this.get("_focusSubMenuOnOpen")),e.onOpen=this.onOpen,e._matchMinWidthToInvokingWidget=!1,e.domNode.classList.add("mwPopupMenuItemPopup"),this.inherited(arguments))},_handleCloseMenu:function(e){if(e&&e.mwEventData&&e.mwEventData.hasOwnProperty("gainedFocusWidget")&&this._invokingWidget&&this._invokingWidget.getParentWidget){var t=this._invokingWidget.getParentWidget(),i=e.mwEventData.gainedFocusWidget;t.isInvokingWidget(i)||t.isDescendant(i,t)||(this._leftArrowListener&&this._leftArrowListener.remove(),this._menuCloseListener&&this._menuCloseListener.remove(),delete this._leftArrowListener,delete this._menuCloseListener,this._focusOnOpen=this._storeFocusOnOpen,this.onOpen=this._storeOnOpen,this._matchMinWidthToInvokingWidget=this._storeMatchMinWidthToInvokingWidget,this.domNode.classList.remove("mwPopupMenuItemPopup"),t._focusChange(i))}},_handleLeftArrow:function(e){e.keyCode===n.LEFT_ARROW&&(this._doNotOpen=!0,this._invokingWidget.focus(),this._doNotOpen=!1)},onOpen:function(){this.inherited(arguments),this._emitOpenEvent(),this._updateLayout();var e=o.position(this.domNode).x;e>o.position(this._invokingWidget.domNode).x?(this.domNode.classList.add("mwPopupMenuItemPopupRight"),this.domNode.classList.remove("mwPopupMenuItemPopupleft"),this.domNode.parentElement.classList.add("mwPopupMenuItemParentRight"),this.domNode.parentElement.classList.remove("mwPopupMenuItemParentLeft")):(this.domNode.classList.add("mwPopupMenuItemPopupLeft"),this.domNode.classList.remove("mwPopupMenuItemPopupRight"),this.domNode.parentElement.classList.remove("mwPopupMenuItemParentRight"),this.domNode.parentElement.classList.add("mwPopupMenuItemParentLeft")),this.domNode.parentElement.classList.add("mwPopupMenuItemParent"),this.getChildren().length>0&&this._focusOnOpen&&this.focusFirst&&(this._storeFocus=this.focus,this.focus=function(){this.focusFirst(),this.focus=this._storeFocus,delete this._storeFocus}),this._invokingWidget.set("_focusSubMenuOnOpen",!1)},_closeMenuOnParentClick:function(){return!1},_updateWidth:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{iconOverride:new e({type:"string",notInAction:!0,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(2949),i(2950),i(2951),i(2952)],o=i.dj.d(n,(function(e,t){return t(e,"l10n/nls/toolstrip",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_isResized:!1,startup:function(){if(this.inherited(arguments),!this._isResized){for(var e={parentNode:this.domNode},t=!0;(e=e.parentNode)&&e!==document;)if("none"===e.style.display){t=!1;break}t&&this.resize()}},resize:function(){this.inherited(arguments),this.getChildren&&this.getChildren().forEach((function(e){e.resize&&e.resize()}),this),this._isResized=!0}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(222),i(901),i(1819),i(3271),i(3273),i(3274),i(3276),i(3277)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){return function(e){function c(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return e._registry=[],e._exports=[],e._loadManager=new a,e._loadManager.on("_initializeStarted",(function(t){e.emit("moduleInitializeStarted",t)})),e._loadManager.on("_initializeEnded",(function(t){e.emit("moduleInitializeEnded",t)})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,e),r(c,[{key:"register",value:function(e){var n=i.validateInput(e,s).map((function(e){return new l(e)})),o=[];return n.forEach((function(e){o=o.concat(e.exports)})),this._exports=t.getUniqueValues(this._exports.concat(o),"name"),this._registry=t.getUniqueValues(this._registry.concat(n),"key"),s.updateExportsDependenciesMap(this._registry),o}},{key:"loadExports",value:function(e,t){var r=i.validateExports(e,this._exports),a=r.isValid,l=r.invalidExports,c=r.validationMessage;if(!a){var d=l.join(", ");throw new Error("Exports requested to load are not valid. Either one or more exports have not been registered or input type is invalid. Invalid exports are: "+d+". "+c)}var u=void 0,h=new n,p=new o,f=s.getNonLoadedExports(e);if(f.length>0){var g=s.getModulePathsToLoad(f),m=h.constructGraph(g,s);if(!i.isGraphValid(m))throw new Error("Modules information is invalid:Modules either have cyclic dependecy or a Module is undefined");var _=p.getModuleLoadOrder(m);u=this._loadManager.load(_,e,s,t)}else u=this._loadManager.load([],e,s,t);return u.then((function(){h=null,p=null})),u}},{key:"emits",value:function(){}}]),c}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(470)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){},className:"RootNode",isRootNode:function(){return!0},CHILD_TEXT_SEPARATOR:"\n",getCodeText:function(){return this.getCodeTextOfChildren()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(228),i(210),i(211),i(217),i(213),i(1357),i(3597),i(3598),i(3600),i(718),i(1860),i(3602),i(1356),i(1355),i(1866)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e(null,{MINIMALFONTSIZE:10,SCRIPTSCALINGFACTOR:.7,constructor:function(e){var t;e=e||{},this._cacheFontMetrics=!0===e.cacheFontMetrics,this._scriptScalingFactor=e.scriptScalingFactor||e._scriptScalingFactor||this.SCRIPTSCALINGFACTOR,this._minimalFontSize=e.minimalFontSize||e._minimalFontSize||this.MINIMALFONTSIZE,t=e.equationFormat||"mathml",this._inputLanguage=t.toLowerCase(),this._pxPerEm=Math.round((e.pxPerEm||0)*m.FONT_UPSCALE),this._ptIsRelative=e.ptIsRelative||!1,"mathml"===this._inputLanguage?(e.flavor=e.flavor||c.FLAVOUR_MATHML20,this._importer=new c(e)):"tex"===this._inputLanguage?(this._importer=new u,e.strictTeX&&this._importer.setStrict(!0)):this._importer=new d},render:function(e,i,n){return g.then(t.hitch(this,(function(t){return this._adjustMinFontSize(t.minFontSize),this._render(e,i,n)})))},renderToCanvas:function(e,i){return g.then(t.hitch(this,(function(t){return this._adjustMinFontSize(t.minFontSize),this._renderToCanvas(e,i)})))},renderToImageURL:function(e,i,n){return g.then(t.hitch(this,(function(t){return this._adjustMinFontSize(t.minFontSize),this._renderToImageURL(e,i,n)})))},renderToImageURLSynch:function(e,t,i){return this._renderToImageURL(e,t,i)},exportDomnodeToCanvas:function(e,t){return p.exportDomnodeToCanvas(e,t)},exportDomnodeToImageURL:function(e,t,i){return p.exportDomnodeToImageURL(e,t,i)},_adjustMinFontSize:function(e){this._minimalFontSize=Math.max(this._minimalFontSize,e)},_renderEquationOffScreen:function(e,t){var i=p.createOffScreenSpan({fontSize:t});return this._render(e,i),i},_renderToCanvas:function(e,t,i){var n=this._renderEquationOffScreen(e,t),o=this.exportDomnodeToCanvas(n.firstElementChild,i);return r.destroy(n),o},_renderToImageURL:function(e,t,i){var n=this._renderToCanvas(e,t,i),o=p.getImageObject(n,"image/png");return r.destroy(n),o},_addStyleAttributes:function(e,t){if(t){for(var i={},n=t.split(";"),o=0;o<n.length;o+=1){var r=n[o].split(":");r.length>1&&(i[r[0].trim()]=r[1].trim())}var a=i.fontSize||i["font-size"];a&&(e.pxPerEm=parseFloat(a))}},_render:function(e,t,i){var n=this.getModel(e);return this._draw(n,t,i)},hasExplictMathMode:function(e,t){return h.hasExplictMathMode(e,t)},setDisplaystyleIfNeeded:function(e,t){return h.setDisplaystyleIfNeeded(e,t)},getModel:function(e){var t=null;try{var i=this._importer.parse(e);t=this._importer.makeEquation(i)}catch(e){t=this._importer.makeBrokenEquationReplacement()}return t.annotations=t.annotations||{},t},draw:function(e,i,n){return g.then(t.hitch(this,(function(){return this._draw(e,i,n)})))},_draw:function(e,t,i){if(i=i||{},!e)return!1;var o=null;try{r.empty(t);var a={domNode:t,pxPerEm:this._pxPerEm,creatorFlavor:e.creatorFlavor,scriptScalingFactor:this._scriptScalingFactor,minimalFontSize:this._minimalFontSize,ptIsRelative:this._ptIsRelative,displaystyle:i.displaystyle};this._addStyleAttributes(a,e.style||"");var s=new f(a);e.accessibility={"aria-label":l.export([e])},o=s.layoutAndRender(e);var c=e.annotations&&e.annotations.MATLAB||i.altText||"";c&&n.set(o,"aria-label",c),this._cacheFontMetrics&&(this._pxPerEm=s.emToPx(1)),o.foundEncodingIssues=e.foundEncodingIssues}catch(n){return e=this._importer.makeBrokenEquationReplacement(),this._draw(e,t,i)}return o},destroy:function(){delete this._importer,this._importer=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1917),i(1103),i(3755)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e(null,{constructor:function(){this._opcParts=[],this._opcPackageRelationship=new i},createPart:function(e,t){var i=new n(e,t);return this._opcParts.push(i),i},getPart:function(e){e=e.replace(/^(?:\.\.\/)+/,"/");var t={};return this._opcParts.forEach((function(i){var n=i.getPartURI();"/"!==n.charAt(0)&&(n="/"+n),e===n&&(t=i)})),t},getParts:function(){return this._opcParts},getPartURI:function(e,t,i){var n=[];return this._opcParts.forEach((function(e){n.push(e.getPartURI())})),o.getUniquePartUri(e,t,i,n)},createRelationship:function(e,t){return this._opcPackageRelationship.createRelationship(e,t)}});return r.toJson=function(e){var t=[];return e._opcParts.forEach((function(i,o){t.push(n.toJson(e._opcParts[o]))}),this),{parts:t,relationships:i.toJson(e._opcPackageRelationship)}},r.fromJson=function(e){var t=new r;for(var o in e.parts){var a=e.parts[o];t._opcParts.push(n.fromJson(a))}return t._opcPackageRelationship=i.fromJson(e.relationships),t},r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(312),i(437)],o=i.dj.d(n,(function(e,t){return{COMPLETION_ITEM_HEIGHT:22,COMPLETION_MINIMUM_ITEMS:2,FUNCTION_ASSISTANT_MIN_HEIGHT:50,buildNode:function(e,t,i){t=t||{};var n=document.createElement(e),o="";return t.parent&&!t.useOwnClass?o=t.parent.classList[0]:t.useOwnClass||(o=i),t.className&&(""===o?n.classList.add(t.className):n.classList.add(o+"__"+t.className)),t.classModifiers&&t.classModifiers.forEach((function(e){""===o?n.classList.add(t.className+"--"+e):n.classList.add(o+"__"+t.className+"--"+e)}),this),t.text&&(n.textContent=t.text),t.parent&&t.parent.appendChild(n),t.title&&n.setAttribute("title",t.title),n},setEventListener:function(e,t,i,n){return e.addEventListener(t,i,n),{remove:function(){e.removeEventListener(t,i,n)}}},buildTooltip:function(i,n,o){return new e({class:t.TOOLTIP_CLASS,connectId:i,label:n,position:o})},getMinHeightOfOnlyFunctionAssistant:function(){return this.getMinHeightOfFunctionAssistantWithCompletion()-this.getMinHeightOfCompletion()},getMinHeightOfFunctionAssistantWithCompletion:function(){return this.FUNCTION_ASSISTANT_MIN_HEIGHT+this.getMinHeightOfCompletion()},getMinHeightOfCompletion:function(){return this.COMPLETION_ITEM_HEIGHT*this.COMPLETION_MINIMUM_ITEMS},getHeightForChoices:function(e){return e*this.COMPLETION_ITEM_HEIGHT}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(669),i(347)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e,i){this.level=i&&i.level?i.level:t.getLevelByHeadingFormat(t.getDefaultHeadingFormat())},className:"HeadingNode",containerType:function(){return t.getHeadingFormatByLevel(this.level)},isSameTypeAs:function(e){return this.className===e.className&&this.level===e.level},canSpliceContainers:function(e,t){return e.level===t.level},isTextContainerNode:function(){return!0},_serializeAttributes:function(e){this.inherited(arguments),e.level=this.level}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(347)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){t&&(this.bullet=t.bullet)},className:"ListItem",containerType:function(){return this.parent.type},isTextContainerNode:function(){return!0},offsetInContainer:function(e){var t,i=0;e=e||this.rootContainer();for(var n=0;n<e.children.length;n++){if(this===(t=e.children[n]))return i;i=i+t.maxOffset()+e.CHILD_TEXT_SEPARATOR.length}return-1},_serializeAttributes:function(e){this.inherited(arguments),this.bullet&&(e.bullet=this.bullet)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{OUTPUT_TYPE:null,constructor:function(){},getOutputFromData:function(e,t){throw new Error("Unimplemented API: MW.rtc.plugins.embeddedoutputs.outputhandlers.BaseOutputHandler.getOutputFromData()")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){this._knownEvents=[],this._evented=new t},_defineEvent:function(e){this._knownEvents[e]=1},emitEvent:function(e,t){if(!this._knownEvents.hasOwnProperty(e))throw new Error("emitEvent: event '"+e+"' undefined");this._evented.emit(e,t)},onEvent:function(e,t){if(this._knownEvents.hasOwnProperty(e))return this._evented.on(e,t);throw new Error("onEvent: event '"+e+"' undefined")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(242),i(214),i(211),i(206),i(285),i(227),i(225),i(1621),i(339),i(308),i(209),i(1228),i(766),i(291),i(297),i(7864),i(1230),i(2547),i(1229),i(7869),i(7870),i(341),i(280),i(2549),i(1231),i(299),i(233),i(560),i(241),i(726),i(2551),i(7877),i(7890),i(7897),i(1122),i(290),i(1007),i(7905),i(2556),i(1907),i(7921),i(1609)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U){let W=f.getMVM();var G={},z={},q="File",K="LiveScript",X="Function",Y="LiveFunction",Q="Example",$="Class",J="LiveClass";z.setService=function(e){for(var t in e)G[t]=e[t]},z.saveCallback=function(){if(G.editorService.isLocalClient()){var e=E.editorService.getActiveEditor();r(e.widget.getBackingStore().save(e.getFile().id),function(t){t&&E.fileDataService.setFileClean(e.getFile())}.bind(this),(function(){}))}else H.getInstance().save()},z.setup=function(){G.fileDataService&&G.executionService||(G.fileDataService=E.fileDataService,G.executionService=E.executionService,G.layoutService=E.layoutService,G.editorService=E.editorService,G.uiContainer=E.uiContainer,G.settingsService=E.settingsService,G.commandWindow=E.commandWindow,G.findFilesService=E.findFilesService),H.getInstance(),z.newFileCallback=function(t){var i="",n="",r=function(){if(i&&""!==i&&t.currentWorkingFolder){var o=A.pathFromFileInfo(t.currentWorkingFolder),r=null,a=null,s=""!==n?n.getFileName():i.getFileName();if(r=A.createEmptyFileObject(o,s),a=A.getFileNameNoExtension(s),r.content=t.fileContents||"",x.windowContainsASingleUndockedDocument()&&G.editorService.setUndockUponOpen(r.fileInfo),!t.ignoreTemplates){var l={fileName:a,fileNameCaps:a.toUpperCase()};r.content=z.updateFileContent(r.content,l)}"mlx"!==A.getFileNameExtension(s)?G.fileDataService.createFile(r,!1):(G.fileDataService.openedFilesDataStore.put(e.mixin(r,{modifiedDate:null,savePending:!1,id:A.pathFromFileInfo(r.fileInfo)})),G.fileDataService.onFileOpen(r))}oe("newfile")},a=function(){oe("newfile"),o.emit(document.body,"restorefocus",{bubbles:!0})},s=k["new"+t.fileLabel+"DialogNameLabel"],l=k["new"+t.fileLabel+"DialogTitle"],c="";t.currentWorkingFolder&&(c=A.pathFromFileInfo(t.currentWorkingFolder)),(i=m.createForm({title:l,inputLabel:s,okAction:function(){if(!i.okButton.disabled){var e=i.getFileName();!b.SUPPORTED_FILENAME_PATTERN.test(e)||e.length>A.MATLAB_NAME_LENGTH?n=new v({fileDataService:G.fileDataService,filename:e,okAction:r,cancelAction:a,fileLocation:c}):r()}},cancelAction:a,dialogType:m.FILE_DIALOG,fileDataService:G.fileDataService,startValue:t.fileExtension,fileLocation:c})).onClose=function(){oe("newfile"),o.emit(document.body,"restorefocus",{bubbles:!0})},ne(i,{id:"newfile",layoutId:"newDialog",title:l})},z.newUntitledBufferCallback=function(e){G.editorService.createUntitledBuffer(e)},z.setupComplete=!0},z.updateFileContent=function(t,i){return e.replace(t,i)};var Z=function(e){!0===T.getFeatureStatus(T.FeatureNames.MATLAB_LOCAL)?G.executionService.executionEval("web('"+e+"', '-browser')"):t.global.open(e)};z.openURL=Z,z.confirmDialogOpen=!1,z.importStarted=!1;var ee,te=function(e,t,i){t===V.RESPONSE_TYPE_ENUM.ACCEPT&&("function"==typeof e?e():G.executionService.executionEval(e,G.executionService.streamingEval),!0===i&&("clc"===e?G.settingsService.setSetting(["matlab","confirmationdialogs"],"CommandWindowClearConfirmation",!1):"builtin('clear');"!==e&&"builtin('clear', 'all');"!==e||G.settingsService.setSetting(["matlab","confirmationdialogs"],"WorkspaceBrowserClearConfirmation",!1))),z.confirmDialogOpen&&(z.confirmDialogOpen=!1)},ie=function(e){return"."+e},ne=function(t,i){if(G.layoutService)G.layoutService.addWidget(i.id,i.layoutId,t,i);else{var n={widget:t,refocus:!1};e.mixin(n,i),(ee=(new h).createModalDialogWrapper(n)).show(),t.startup()}},oe=function(e){G.layoutService?G.layoutService.removeWidget(e):ee&&(ee.destroyRecursive(),ee=null)},re=function(e){E.fileDataService.enableUntitledBuffer?z.newUntitledBufferCallback({fileExtension:A.MATLAB_CODE_FILE_EXTENSION,fileContents:e.fileContents,fileLabel:q,ignoreTemplates:!0,isModified:e.isModified,editorId:e.editorId}):z.newFileCallback({fileExtension:ie(A.MATLAB_CODE_FILE_EXTENSION),currentWorkingFolder:G.fileDataService.currentWorkingFolder,fileContents:e.fileContents,fileLabel:q,ignoreTemplates:!0})};var ae=function(e,t){E.fileDataService.enableUntitledBuffer?z.newUntitledBufferCallback({fileExtension:A.MATLAB_CODE_FILE_EXTENSION,fileTemplate:t,fileLabel:$,isModified:!0}):z.newFileCallback({fileExtension:ie(A.MATLAB_CODE_FILE_EXTENSION),currentWorkingFolder:G.fileDataService.currentWorkingFolder,fileTemplate:t,fileLabel:$})},se=function(){G.uiContainer.set(x.SELECTED_CHILD,"commandWindow"),E.commandWindow&&E.commandWindow.focus&&E.commandWindow.focus()};return z.actions=[{id:I.NEW_FIGURE,enabled:!0,text:k.newFigureLabel,icon:"icon_new_figure_24",quickAccessIcon:"icon_new_figure_16",callback:function(){G.executionService.executionEval("figure",G.executionService.streamingEval)}},{id:I.NEW_APP,enabled:!0,text:k.newAppLabel,icon:"icon_new_app_24",quickAccessIcon:"icon_new_app_16",callback:function(){G.executionService.executionEval("appdesigner.internal.online.createNewApp();",G.executionService.streamingEval)}},{id:I.CLEAR_COMMAND_WINDOW,enabled:!0,text:k.clearCommandWindowLabel,description:k.clearCommandWindowDescription,icon:"icon_clear_command_window_24",quickAccessIcon:"icon_clear_command_window_16",popupTag:"motwToolstrip.matlabTab.code.clearCommands.list",callback:function(){var t=k.clearCommandsDialogTitle,i=n.create("div"),o=n.create("div");o.textContent=k.clearCommandWindowDialogMessage;var r=new d({text:k.checkBoxMessage,class:"confirmationDialogCheckBox"});i.appendChild(o),i.appendChild(document.createElement("br")),i.appendChild(r.domNode);var a=i,s=V.createConfirmDialogOptions(te.bind(this,"clc"));r.startup(),G.settingsService.getSetting(["matlab","confirmationdialogs"],"CommandWindowClearConfirmation").then(e.hitch(this,(function(e){!0===e.value?z.confirmDialogOpen||(N.displayConfirmDialog(t,a,s),z.confirmDialogOpen=!0):G.executionService.executionEval("clc",G.executionService.streamingEval)})))}},{id:I.NEW_FILE_EDITOR,enabled:!0,text:k.newFileLabel,description:k.newFileDescription,icon:"icon_new_script_plus_24",quickAccessIcon:"new_16",popupTag:"motwToolstrip.editorTab.file.new.newList",callback:re},{id:I.NEW_FILE_LIVE_EDITOR,enabled:!0,text:k.newFileLabel,description:k.newFileDescription,icon:"icon_new_script_plus_24",quickAccessIcon:"new_16",popupTag:"motwToolstrip.liveEditorTab.file.new.newList",callback:re},{id:I.FIND_FILES,enabled:!0,text:k.findFilesLabel,description:k.findFilesDescription,callback:function(e){G.findFilesService.openFindFilesPopUp()}},{id:I.NEW_FILE,enabled:!1,icon:"icon_new_script_plus_24",quickAccessIcon:"new_16",text:k.newFileLabel,description:k.newFileDescription,callback:re},{id:I.NEW_LIVE_SCRIPT,enabled:!1,icon:"icon_new_live_script_plus_24",quickAccessIcon:"icon_new_live_script_plus_16",text:k.newLiveScriptLabel,description:k.newLiveScriptDescription,callback:function(e){E.fileDataService.enableUntitledBuffer?z.newUntitledBufferCallback({fileExtension:A.LIVE_SCRIPT_EXTENSION,fileContents:e.fileContents,fileLabel:K,ignoreTemplates:!0,isModified:e.isModified}):z.newFileCallback({fileExtension:ie(A.LIVE_SCRIPT_EXTENSION),currentWorkingFolder:G.fileDataService.currentWorkingFolder,fileContents:"",fileLabel:K,ignoreTemplates:!0})}},{id:I.PREFERENCES,text:k.preferencesLabel,description:k.preferencesDescription,icon:"settings_24",quickAccessIcon:"settings_16",callback:function(){E.preferencePanelSelection?E.preferenceUI=M.getInstance(E.preferencePanelSelection):E.preferenceUI=M.getInstance(),E.preferenceUI.on("selectionchange",e.hitch(this,(function(e){E.preferencePanelSelection=e.label}))),E.preferenceDialog=D.createDialog(E.preferenceUI)}},{id:I.NEW_FUNCTION,enabled:!0,text:k.newFunctionLabel,icon:"icon_new_function_24",quickAccessIcon:"icon_new_function_16",callback:function(e){E.fileDataService.enableUntitledBuffer?z.newUntitledBufferCallback({fileExtension:A.MATLAB_CODE_FILE_EXTENSION,fileTemplate:"plainFunction",fileLabel:X,isModified:!0,ignoreTemplates:!1}):z.newFileCallback({fileExtension:ie(A.MATLAB_CODE_FILE_EXTENSION),currentWorkingFolder:G.fileDataService.currentWorkingFolder,fileTemplate:"plainFunction",fileLabel:X,ignoreTemplates:!1})}},{id:I.NEW_LIVE_FUNCTION,enabled:!0,icon:"icon_new_live_function_24",quickAccessIcon:"icon_new_live_function_16",text:k.newLiveFunctionListItemLabel,description:k.newLiveFunctionListItemLabel,callback:function(e){E.fileDataService.enableUntitledBuffer?z.newUntitledBufferCallback({fileExtension:A.LIVE_SCRIPT_EXTENSION,fileTemplate:"liveFunction",fileLabel:Y,testValue:!0,isModified:!0,ignoreTemplates:!1}):z.newFileCallback({fileExtension:ie(A.LIVE_SCRIPT_EXTENSION),currentWorkingFolder:G.fileDataService.currentWorkingFolder,fileTemplate:"liveFunction",fileLabel:Y,testValue:!0,ignoreTemplates:!1})}},{id:I.NEW_PROJECT,enabled:!0,icon:"icon_new_project_24",quickAccessIcon:"icon_new_project_16",text:k.newProjectListItemLabel,callback:async function(e){(await P.createForBlankProject()).show()}},{id:I.NEW_FROM_GIT,enabled:!0,icon:"icon_new_from_git_24",quickAccessIcon:"icon_new_from_git_16",text:k.newFromGitListItemLabel,callback:async function(e){const t=new O({sourceControlProvider:"MWGitAdapter"});await t.createDialog()}},{id:I.NEW_EXAMPLE,enabled:!0,text:k.newExampleLabel,icon:"icon_new_example_24",quickAccessIcon:"icon_new_example_16",callback:function(e){E.fileDataService.enableUntitledBuffer?z.newUntitledBufferCallback({fileExtension:A.MATLAB_CODE_FILE_EXTENSION,fileTemplate:"plainExample",fileLabel:Q,isModified:!0}):z.newFileCallback({fileExtension:ie(A.MATLAB_CODE_FILE_EXTENSION),currentWorkingFolder:G.fileDataService.currentWorkingFolder,fileTemplate:"plainExample",fileLabel:Q})}},{id:I.NEW_CLASS,enabled:!0,text:k.newClassLabel,icon:"icon_new_class_24",quickAccessIcon:"icon_new_class_16",callback:function(e){E.fileDataService.enableUntitledBuffer?z.newUntitledBufferCallback({fileExtension:A.MATLAB_CODE_FILE_EXTENSION,fileTemplate:"plainClass",fileLabel:$,isModified:!0}):z.newFileCallback({fileExtension:ie(A.MATLAB_CODE_FILE_EXTENSION),currentWorkingFolder:G.fileDataService.currentWorkingFolder,fileTemplate:"plainClass",fileLabel:$})}},{id:I.NEW_LIVE_CLASS,enabled:!0,icon:"icon_new_live_class_24",text:k.newLiveClassListItemLabel,description:k.newLiveClassListItemLabel,callback:function(e){E.fileDataService.enableUntitledBuffer?z.newUntitledBufferCallback({fileExtension:A.LIVE_SCRIPT_EXTENSION,fileTemplate:"liveClass",fileLabel:J,testValue:!0,isModified:!0}):z.newFileCallback({fileExtension:ie(A.LIVE_SCRIPT_EXTENSION),currentWorkingFolder:G.fileDataService.currentWorkingFolder,fileTemplate:"liveClass",fileLabel:J,testValue:!0,ignoreTemplates:!0})}},e.mixin(j.sysObjBasic,{callback:function(e){ae(0,"basisSysObj")}}),e.mixin(j.sysObjAdvanced,{callback:function(e){ae(0,"advancedSysObj")}}),e.mixin(j.sysObjSimulinkExtension,{callback:function(e){ae(0,"simulinkExtensionSysObj")}}),{id:I.NEW_TEST_CLASS,enabled:!0,text:l.TestClass.Label,description:l.TestClass.Description,icon:"icon_new_testClass_24",quickAccessIcon:"icon_new_testClass_16",callback:function(e){E.fileDataService.enableUntitledBuffer?z.newUntitledBufferCallback({fileExtension:A.MATLAB_CODE_FILE_EXTENSION,fileTemplate:"plainTestClass",fileLabel:$,isModified:!0}):z.newFileCallback({fileExtension:ie(A.MATLAB_CODE_FILE_EXTENSION),currentWorkingFolder:G.fileDataService.currentWorkingFolder,fileTemplate:"plainTestClass",fileLabel:$})}},{id:I.NEW_FOLDER,enabled:!0,icon:"open_24",quickAccessIcon:"open_16",text:k.newFolderLabel,callback:function(){var e="",t=G.fileDataService.currentWorkingFolder,i=k.newFolderDialogNameLabel,n=k.newFolderDialogTitle,r="";t&&(r=A.pathFromFileInfo(t)),(e=m.createForm({title:n,inputLabel:i,okAction:function(){if(e&&""!==e&&t){var i=A.pathFromFileInfo(t),n=A.createFilePath(i,e.getFileName()),o={content:"",fileInfo:A.folderInfoFromPath(n)};G.fileDataService.createFile(o,!1)}G.layoutService.removeWidget("newfolder")},cancelAction:function(){G.layoutService.removeWidget("newfolder"),o.emit(document.body,"restorefocus",{bubbles:!0})},dialogType:m.FOLDER_DIALOG,fileDataService:G.fileDataService,fileLocation:r})).onClose=function(){G.layoutService.removeWidget("newfolder")},G.layoutService.addWidget("newfolder","newDialog",e,{title:n})}},{id:I.UPLOAD,enabled:!0,text:k.uploadLabel,description:k.uploadDescription,icon:"icon_upload_16",quickAccessIcon:"icon_upload_16",callback:function(){s(".hiddenFileInputForUpload")[0].click()}},{id:I.DOWNLOAD,enabled:!1,text:k.downloadLabel,description:k.downloadDescription,icon:"icon_download_16",quickAccessIcon:"icon_download_16",callback:function(){C.callback(this,this.selectedFileInfo)}},{id:I.OPEN,enabled:!0,text:k.openLabel,description:k.openDescription,icon:"open_24",quickAccessIcon:"open_16",callback:async function(){var e=G.fileDataService.currentWorkingFolder;if(void 0!==window.cefclient){let t={dialogName:k.openLabel,initialPath:e.path,filters:[{label:"MATLAB Code files (*.m, *mlx)",patterns:["*.m","*.mlx"]},{label:"Figures (*.fig)",patterns:["*.fig"]},{label:"MAT-files (*.mat)",patterns:["*.mat"]},{label:"MATLAB App Installer (*.mlappinstall)",patterns:["*.mlappinstall"]},{label:"MATLAB Data Export files (*.mldatx)",patterns:["*.mldatx"]},{label:"MATLAB Toolboxes (*.mltbx)",patterns:["*.mltbx"]},{label:"Project Archives (*.mlproj)",patterns:["*.mlproj"]},{label:"Projects (*.prj)",patterns:["*.prj"]},{label:"Simulink Data Dictionary files (*.sldd)",patterns:["*.sldd"]},{label:"Simulink Models (*.slx, *.mdl)",patterns:["*.slx","*.mdl"]},{label:"Code Generator files (*.rtw, *.tlc, *.tmf, *.c, *.cpp, *.h, *.mk, *.vhd, *.v)",patterns:["*.rtw","*.tlc","*.tmf","*.c","*.cpp","*.h","*.mk","*.vhd","*.v"]},{label:"Report Generator (*.rpt)",patterns:["*.rpt"]},{label:"Simscape Files (*.ssc)",patterns:["*.ssc"]},{label:"Virtual Reality 3D files (*.wrl, *.x3d, *.x3dv)",patterns:["*.wrl","*.x3d","*.x3dv"]},{label:"All Files (*.*)",patterns:["*.*"]}],multiSelection:!0};this.fileChooserService=new U;let i=await this.fileChooserService.openFile(t);if(i.length>0)try{await W.feval("open",0,i,new g)}catch(e){throw e._id&&e._msg?new Error("Error id: "+e._id+"Message: "+e._msg):new Error("Cannot Open the selected file(s) "+JSON.stringify(e))}}else try{await W.feval("uiopen",0,[],new g)}catch(e){throw e._id&&e._msg?new Error("Error id: "+e._id+"Message: "+e._msg):new Error("Cannot Open the selected file(s) "+JSON.stringify(e))}}},{id:I.OPEN_AS_TEXT,enabled:!0,icon:"open_as_text_24",text:k.openAsText,callback:function(){L.showOpenFileDialog({title:k.openAsTextDialogTitle}).then(function(t){if(t)if("p"!==A.getFileNameExtension(t.name)){var i=A.createEmptyFileObject(t.path,t.name);L.openAsText(i)}else{var n=e.replace(k.alertMessagePcodedFile,{file:t.path+t.name});N.displayAlertDialog(k.openAsTextDialogTitle,n,{icon:"warning",modal:!0})}}.bind(this),(function(){}))}},{id:I.SIMULINK,enabled:!0,text:k.simulinkLabel,description:k.simulinkDescription,icon:"icon_simulink_24",quickAccessIcon:"icon_simulink_16",callback:function(){G.executionService.executionEval("simulink")}},{id:I.IMPORT_DATA,enabled:!0,text:k.importDataLabel,description:k.importDataDescription,icon:"icon_import_24",quickAccessIcon:"icon_import_16",callback:function(){if(!1===z.importStarted){z.importStarted=!0;var e="uiimport";try{!0===T.getFeatureStatus(T.FeatureNames.NATIVE_IMPORT_DATA)&&(e+="('-file')"),G.executionService.executionEval(e,G.executionService.streamingEval)}catch(e){}setTimeout((function(){z.importStarted=!1}),2e3)}}},{id:I.SAVE_WORKSPACE,enabled:!0,text:k.saveWorkspaceLabel,description:k.saveWorkspaceDescription,icon:"icon_saveworkspace_24",quickAccessIcon:"icon_saveworkspace_16",callback:function(){G.executionService.executionEval("uisave",G.executionService.streamingEval)}},{id:I.NEW_VARIABLE,enabled:!0,text:k.newVariableLabel,description:k.newVariableDescription,icon:"icon_newVariable_16",quickAccessIcon:"icon_newVariable_16",callback:function(){G.executionService.executionEval("internal.matlab.datatoolsservices.VariableUtils.createUniqueVariable",G.executionService.streamingEval)}},{id:I.OPEN_VARIABLE,enabled:!0,text:k.openVariableLabel,description:k.openVariableDescription,icon:"icon_variableEdit_16",quickAccessIcon:"icon_variableEdit_16",callback:function(e){}},{id:I.CLEAR,enabled:!0,text:k.clearLabel,description:k.clearDescription,icon:"icon_clear_workspace_24",quickAccessIcon:"icon_clear_workspace_16",callback:function(){var t=k.clearWorkspaceDialogTitle,i=n.create("div"),o=n.create("div");o.textContent=k.clearVariablesDialogMessage;var r=new d({text:k.checkBoxMessage,class:"confirmationDialogCheckBox"});i.appendChild(o),i.appendChild(document.createElement("br")),i.appendChild(r.domNode);var a=i,s=V.createConfirmDialogOptions(te.bind(this,"builtin('clear');"));G.settingsService.getSetting(["matlab","confirmationdialogs"],"WorkspaceBrowserClearConfirmation").then(e.hitch(this,(function(e){!0===e.value?z.confirmDialogOpen||(N.displayConfirmDialog(t,a,s),z.confirmDialogOpen=!0):G.executionService.executionEval("builtin('clear');",G.executionService.streamingEval)})))}},{id:I.CLEAR_ALL,enabled:!0,text:k.clearAllLabel,description:k.clearAllDescription,icon:"icon_clear_24",quickAccessIcon:"icon_clear_16",callback:function(){var t=k.clearWorkspaceDialogTitle,i=n.create("div"),o=n.create("div");o.textContent=k.clearAllVariablesFunctionsBreakpointsDialogMessage;var r=new d({text:k.checkBoxMessage,class:"confirmationDialogCheckBox"});i.appendChild(o),i.appendChild(document.createElement("br")),i.appendChild(r.domNode);var a=i;let s=te.bind(this,"builtin('clear', 'all');");var l=V.createConfirmDialogOptions(s);return G.settingsService.getSetting(["matlab","confirmationdialogs"],"WorkspaceBrowserClearConfirmation").then(e.hitch(this,(function(e){!0===e.value?z.confirmDialogOpen||(N.displayConfirmDialog(t,a,l),z.confirmDialogOpen=!0):G.executionService.executionEval("builtin('clear', 'all');",G.executionService.streamingEval)}))),s}},{id:I.SET_PATH,enabled:!0,text:k.setPathLabel,description:k.setPathDescription,icon:"icon_set_path_24",quickAccessIcon:"icon_set_path_16",callback:function(){G.executionService.executionEval("pathtool")}},{id:I.OPEN_FILE,enabled:!0,callback:function(e){new y({fileService:G.fileDataService,executionService:G.executionService}).callback([e.fileInfo])}},{id:I.SAVE,key:"ctrl_s",shortcut:k.saveShortcut,platformKey:{mac:"meta_s"},icon:"save_24",quickAccessIcon:"save_16",text:k.saveLabel,description:k.saveDescription,popupTag:"motwToolstrip.editorTab.file.save.newList",enabled:!1,callback:function(){z.saveCallback()}},{id:I.UNDO_CMD,enabled:!1,shortcut:k.undoCmdShortcut,platformShortcut:{mac:"meta+z"},text:k.undoCmdLabel,description:k.undoCmdDescription,quickAccessIcon:"undo_16",callback:function(){G.commandWindow.undo()}},{id:I.REDO_CMD,enabled:!1,shortcut:k.redoCmdShortcut,platformShortcut:{mac:"shift+meta+z"},text:k.redoCmdLabel,description:k.redoCmdDescription,quickAccessIcon:"redo_16",callback:function(){G.commandWindow.redo()}},{id:I.STOP,enabled:!1,text:k.stopLabel,description:k.stopDescription,callback:function(){G.executionService.interrupt()}},{id:I.SHOW_HISTORY,enabled:!1,text:k.fileHistoryShowLabel,description:k.fileHistoryShowDescription,callback:function(){u.warn("Action "+I.SHOW_HISTORY+" doesn't do anything yet.")}},{id:I.SET_DEFAULT_LAYOUT,enabled:!0,text:k.setDefaultLayoutLabel,description:k.setDefaultLayoutDescription,icon:"icon_two_column_16",popupTag:"motwToolstrip.matlabTab.environment.layout.list.default",callback:function(e){G.uiContainer.set(x.LAYOUT,{majorVersion:2,minorVersion:1,panelLayout:{centerExpanded:!1,centerCollapsed:!1,left:{collapsed:!1,expanded:!1,portion:.22,children:[{id:"cfb",collapsed:!1},{id:"workspace",collapsed:!1}],showingSetId:"global"},bottom:{collapsed:!1,expanded:!1,portion:.25,children:[{id:"commandWindow",showing:!0}]}}}),G.settingsService.setSetting(["matlab","desktop","commandhistory"],"DisplayMode","popup"),se()}},{id:I.SET_THREE_COLUMN_LAYOUT,enabled:!0,text:k.setThreeColumnLabel,description:k.setThreeColumnDescription,icon:"icon_three_column_16",popupTag:"motwToolstrip.matlabTab.environment.layout.list.threeColumn",callback:function(e){G.uiContainer.set(x.LAYOUT,{majorVersion:2,minorVersion:1,panelLayout:{centerExpanded:!1,centerCollapsed:!1,left:{collapsed:!1,expanded:!1,portion:.22,children:[{id:"cfb",collapsed:!1}],showingSetId:"global"},bottom:{collapsed:!1,expanded:!1,portion:.25,children:[{id:"commandWindow",showing:!0}]},right:{collapsed:!1,expanded:!1,portion:.22,children:[{id:"workspace",collapsed:!1}],showingSetId:"global"}}}),G.settingsService.setSetting(["matlab","desktop","commandhistory"],"DisplayMode","popup"),se()}},{id:I.SET_MIN_ALL_BUT_CMD_WIN_LAYOUT,enabled:!0,text:k.setMinAllButCmdWinLabel,description:k.setMinAllButCmdWinDescription,icon:"icon_minimize_all_but_layout_16",popupTag:"motwToolstrip.matlabTab.environment.layout.list.minimizeAllButCmdWin",callback:function(e){G.uiContainer.set(x.LAYOUT,{majorVersion:2,minorVersion:1,panelLayout:{centerExpanded:!1,centerCollapsed:!1,left:{collapsed:!0,expanded:!1,portion:.22,children:[{id:"cfb",collapsed:!1},{id:"workspace",collapsed:!1}],showingSetId:"global",isCollapsed:!0},bottom:{collapsed:!1,expanded:!1,portion:.25,children:[{id:"commandWindow",showing:!0}]}}}),G.settingsService.setSetting(["matlab","desktop","commandhistory"],"DisplayMode","popup"),se()}},{id:I.SET_CMD_WIN_ONLY_LAYOUT,enabled:!0,text:k.setCmdWinOnlyLabel,description:k.setCmdWinOnlyDescription,icon:"icon_command_only_layout_16",popupTag:"motwToolstrip.matlabTab.environment.layout.list.cmdWinOnly",callback:function(e){G.uiContainer.set(x.LAYOUT,{majorVersion:2,minorVersion:1,panelLayout:{centerExpanded:!1,centerCollapsed:!1,bottom:{collapsed:!1,expanded:!1,portion:.25,children:[{id:"commandWindow",showing:!0}]}}}),G.settingsService.setSetting(["matlab","desktop","commandhistory"],"DisplayMode","popup"),se()}},{id:I.HELP,enabled:!0,text:k.helpLabel,description:k.helpDescription,icon:"help_24",quickAccessIcon:"help_16",popupTag:"motwToolstrip.matlabTab.help.help.newList",callback:function(e){G.executionService.executionEval(e.searchTerm?"docsearch "+e.searchTerm:"doc")}},{id:I.EXAMPLES,enabled:!0,text:k.examplesLabel,description:k.examplesDescription,icon:"icon_example_gallery_24",quickAccessIcon:"icon_example_gallery_16",callback:function(){G.executionService.executionEval("com.mathworks.mlservices.MLHelpServices.showExampleGallery()")}},{id:I.SUPPORT_WEBSITE,enabled:!0,text:k.supportWebsiteLabel,description:k.supportWebsiteDescription,icon:"icon_support_website_24",quickAccessIcon:"icon_support_website_16",callback:function(){Z("https://www.mathworks.com/pl_support")}},{id:I.PATENTS,enabled:!0,text:k.patentsLabel,callback:function(){Z("https://www.mathworks.com/company/aboutus/policies_statements/patents.html")}},{id:I.MANAGE_LICENSES,enabled:!0,text:k.manageLicensesLabel,callback:function(){Z("https://www.mathworks.com/licensecenter/licenses")}},{id:I.CHECK_FOR_UPDATES,enabled:!0,text:F.checkForUpdates,callback:function(){G.executionService.executionEval("com.mathworks.addons.AddonsLauncher.showUpdates")}},{id:I.KEYBOARD_SHORTCUTS,enabled:!0,text:k.keyboardShortcutsLabel,callback:function(){G.executionService.executionEval("helpview('matlab','matlab_navigation_shortcuts','CSHelpWindow')")}},{id:I.ACCESSIBILITY,enabled:!0,text:k.accessibilityLabel,callback:function(){Z("https://www.mathworks.com/pl_accessibility")}},{id:I.COMMUNITY,enabled:!0,icon:"icon_community_16",quickAccessIcon:"icon_community_16",text:k.communityLabel,description:k.communityDescription,callback:function(){Z("https://www.mathworks.com/matlabcentral")}},{id:I.FEEDBACK,enabled:!0,icon:"icon_feedback_16",quickAccessIcon:"icon_feedback_16",text:k.feedbackLabel,description:k.feedbackDescription,callback:function(){G.userDataService.getUserInfo().then((function(e){(new B).createFeedbackDialog(e.userInfo.emailAddress)}))}},{id:I.LEARN_MATLAB,enabled:!0,text:k.learnMatlabLabel,description:k.learnMatlabDescription,icon:"icon_online_learning_16",quickAccessIcon:"icon_online_learning_16",callback:function(){Z("https://www.mathworks.com/pl_learn")}},{id:I.ABOUT,enabled:!0,text:k.aboutLabel,callback:function(){w.displayInfo()}},{id:I.GECKO,enabled:!0,text:k.geckoLabel,description:k.geckoDescription,icon:"gecko_16",quickAccessIcon:"gecko_16",callback:function(){var e=w.getVersionInfo(),t="http://komodo.mathworks.com/main/gecko/new?Site=Software&Keywords=MO_GECK_BUTTON+MATLABOnlineCWB21b+R2021b_Bash&FoundIn="+w.getMATLABVersionInfo().release+"&Problem=%0A%0AAPP+-+"+encodeURIComponent(window.location.href)+"%0A%0APLATFORM+-+"+encodeURIComponent(navigator.platform+"-"+navigator.userAgent)+"%0A%0AWEBGUI_BUILD+-+"+encodeURIComponent(e.version+"-"+e.timestamp)+"%0A%0AML_VER+-+"+encodeURIComponent(w.getMATLABVersionString());Z(t)}},{id:I.SCREENSHOT,enabled:!0,text:k.serverScreenshotLabel,description:k.serverScreenshotDescription,icon:"screenshot_16",quickAccessIcon:"screenshot_16",callback:function(){G.executionService.executionEval("simulink.online.internal.captureServerScreen(char(datetime))")}}],z}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{FIND_EVENT:"FIND",KEYPRESS_EVENT:"KEY_PRESS",MOUSECLICK_EVENT:"MOUSE_CLICK",GOTO_EVENT:"GOTO",OPENFILE_EVENT:"OPEN",DEBUG_EVENT:"DEBUG",HYPERLINK_EVENT:"HYPERLINK",BOOKMARKS_EVENT:"BOOKMARKS"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(386),i(444)],o=i.dj.d(n,(function(e,t,i,n){return e([i,n],{addChild:function(e){this.inherited(arguments),e.update&&e.update()},resize:function(){this.inherited(arguments);var e=this.getChildren();e.forEach((function(e){e.resize&&e.resize()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(217),i(210),i(231),i(209),i(483),i(235),i(2740)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e("variableeditor.views.ClientArrayView",[l],{table:null,constructor:function(e){this.table={}},init:function(e){this.inherited(arguments);var t=this;if(e&&e.container){if(t.allArgs=e,t.peerNode.addEventListener("childAdded",(function(i){var n=i.data.child;t._addGrid(e,n),t._initializeExistingModelProperties()})),t.peerNode.getChildren&&t.peerNode.getChildren().length>0){var i=t.peerNode.getChildren()[0];t._addGrid(e,i)}this._initializeModelProperties()}},initArgs:function(e){},_refreshTable:function(){this.table&&this.table.updateModelProperties&&this.table.updateModelProperties(!0)},_updateModelProperties:function(e,t,i){if(void 0===i&&(i=!0),this[e]=JSON.parse(t),a.logDebug("Setting "+e+":"),a.logDebug(this[e]),this.table){this.table[e]=this[e];if(i){var n=this;this._propertyTimer&&clearTimeout(this._propertyTimer),this._propertyTimer=setTimeout((function(){n._refreshTable()}),50)}}this.dispatchEvent("modelPropertiesSet",this,{type:e})},_initializeExistingModelProperties:function(){this.peerNode&&this.peerNode.hasProperty&&(this.peerNode.hasProperty("CellModelProperties")&&this._updateModelProperties("CellModelProperties",this.peerNode.getProperty("CellModelProperties"),!1),this.peerNode.hasProperty("TableModelProperties")&&this._updateModelProperties("TableModelProperties",this.peerNode.getProperty("TableModelProperties"),!1),this.peerNode.hasProperty("RowModelProperties")&&this._updateModelProperties("RowModelProperties",this.peerNode.getProperty("RowModelProperties"),!1),this.peerNode.hasProperty("ColumnModelProperties")&&this._updateModelProperties("ColumnModelProperties",this.peerNode.getProperty("ColumnModelProperties"),!1)),this._refreshTable()},_initializeModelProperties:function(){this._initializeExistingModelProperties();var e=this;e.peerNode.addEventListener("propertySet",(function(t){try{t&&t.data&&"CellModelProperties"===t.data.key?e._updateModelProperties("CellModelProperties",t.data.newValue,!0):t&&t.data&&"TableModelProperties"===t.data.key?e._updateModelProperties("TableModelProperties",t.data.newValue,!0):t&&t.data&&"RowModelProperties"===t.data.key?e._updateModelProperties("RowModelProperties",t.data.newValue,!0):t&&t.data&&"ColumnModelProperties"===t.data.key&&e._updateModelProperties("ColumnModelProperties",t.data.newValue,!0)}catch(e){r.error(e)}}))},getTable:function(){return this.table},_mapClientSideProperties:function(e,t){var i={backgroundcolor:"backgroundColor",color:"color",fontfamily:"fontFamily",fontsize:"fontSize",fontstyle:"fontStyle",fontweight:"fontWeight",style:"style",renderer:"renderer",editor:"editor",inplaceeditor:"inPlaceEditor"};return"HeaderName"===e&&t&&t.row&&-1!==t.row?"RowName":"HeaderNumber"===e&&t&&t.row&&-1!==t.row?"RowNumber":i.hasOwnProperty(e.toLowerCase())?i[e.toLowerCase()]:e},_getPropertiesFunction:function(e,t,i,n){var o,r,a=t&&void 0!==t.row?t.row:-1,s=t&&void 0!==t.column?t.column:-1,l=!0;return-1!==a&&-1!==s?(l="CellModelProperties",o="set"===e?"setCellModelProperty":"getCellPropertyValue",r=[a,s,i]):-1!==s?(l="ColumnModelProperties",o="set"===e?"setColumnModelProperty":"getColumnModelProperty",r=[s,i]):-1!==a?(l="RowModelProperties",o="set"===e?"setRowModelProperty":"getRowModelProperty",r=[a,i]):(l="TableModelProperties",o="set"===e?"setTableModelProperty":"getTableModelProperty",r=[i]),"set"===e&&r.push(n),{propertiesSet:l,valueFunction:o,valueFunctionArgs:r}},getProperty:function(e,i){var n=new t((function(){!0}));e=this._mapClientSideProperties(e,i);var o=this._getPropertiesFunction("get",i,e),r=o.propertiesSet,a=o.valueFunction,s=o.valueFunctionArgs;if(this.table&&this.table[r]){var l=this.table[a].apply(this.table,s);n.resolve(l)}else{var c=this,d=function(e){try{if(e&&e.data&&e.data.type===r){c.removeEventListener("modelPropertiesSet",d,this);var t=c.table[a].apply(c.table,s);n.resolve(t)}}catch(e){n.reject(e.message)}};c.addEventListener("modelPropertiesSet",d)}return n},setProperty:function(e,i,n){var o=new t((function(){!0}));e=this._mapClientSideProperties(e,n);var r=this._getPropertiesFunction("set",n,e,i),a=r.propertiesSet,s=r.valueFunction,l=r.valueFunctionArgs;if(this.table&&this.table[a])this[s].apply(this,l),this.table.updateModelProperties&&this.table.updateModelProperties(!0),o.resolve(i);else{var c=this,d=function(e){try{e&&e.data&&e.data.type===a&&(c.removeEventListener("modelPropertiesSet",d,this),c[s].apply(c,l),c.table.updateModelProperties(!0),o.resolve(i))}catch(e){o.reject(e.message)}};c.addEventListener("modelPropertiesSet",d)}return o},_addGrid:function(e,t){try{var a=e.position;if(e&&e.container&&e.container.domNode&&!e.position){var l=i.position(e.container.domNode);a={height:l.h,width:l.w}}t&&t.setProperty&&t.setProperty("editable",e.editable);try{this.peerNode.getProperty("CellModelProperties")&&this.table&&(this.CellModelProperties=JSON.parse(this.peerNode.getProperty("CellModelProperties"))),this.peerNode.getProperty("TableModelProperties")&&this.table&&(this.TableModelProperties=JSON.parse(this.peerNode.getProperty("TableModelProperties"))),this.peerNode.getProperty("RowModelProperties")&&this.table&&(this.RowModelProperties=JSON.parse(this.peerNode.getProperty("RowModelProperties"))),this.peerNode.getProperty("ColumnModelProperties")&&this.table&&(this.ColumnModelProperties=JSON.parse(this.peerNode.getProperty("ColumnModelProperties")))}catch(e){r.error(e)}if(this.allArgs=s.mergeObjects(this.allArgs,{peerViewModel:this,peerNode:t,position:a,CellModelProperties:this.CellModelProperties,TableModelProperties:this.TableModelProperties,RowModelProperties:this.RowModelProperties,ColumnModelProperties:this.ColumnModelProperties}),t&&t.getId){var c=o.byId("mgg_"+t.getId());c&&(r.warning("Found existing widget for table, trying to delete."),c.destroyRecursive?(r.warning("Calling destroyRecursive"),c.destroyRecursive()):r.error("Can't find destroyRecursive method of widget."))}if(this.table=this.createTable(this.allArgs),this.table.startup(),this.table&&this.table.cssSpecifier&&this.table.domNode){var d=this.table.domNode;n.add(d,this.table.cssSpecifier)}e.container&&this.table&&e.container.addChild(this.table);var u=this;t&&t.addEventListener&&t.addEventListener("propertySet",(function(e){e&&e.data&&"dataModel"===e.data.key&&u.dispatchEvent("viewReady",u.table.domNode,{peerView:u})}),t),t&&t.hasProperty&&t.hasProperty("dataModel")&&(!t.getProperty("dataModel")||0===t.getProperty("dataModel")._partialData.length&&0!==t.getProperty("dataModel")._rowCount||u.dispatchEvent("viewReady",u.table.domNode,{peerView:u})),t&&t.getProperty&&t.getProperty("rowHeaderWidth")&&(this.table.rowHeaderWidth=t.getProperty("rowHeaderWidth")),e.container&&e.container.resize&&e.container.resize()}catch(e){r.error(e),r.error(e.stack)}},_dispatchPropertySetEvent:function(e,t){this.dispatchEvent("propertySet",this,t)},setCellModelProperty:function(e,t,i,n){var o,r,a=this.table.CellModelProperties;if(!a||0===a.length)for(a=[],o=this.table.dataModel.getCurrentStartRow();o<this.table.dataModel.getCurrentEndRow();o+=1)for(a[o]=[],r=this.table.dataModel.getCurrentStartCol();r<this.table.dataModel.getCurrentEndCol();r+=1)a[o][r]={};a[e][t][i]=n,this.table.CellModelProperties=a,this.peerNode.setProperty("CellModelProperty",{row:e,column:t,property:i,value:n}),this._dispatchPropertySetEvent(i,{row:e,column:t,propertyName:i,value:n})},setTableModelProperty:function(e,t){var i=new Array({});this.table.TableModelProperties&&(i=this.table.TableModelProperties),i[e]=t,this.table.TableModelProperties=i,this.peerNode.setProperty("TableModelProperty",{property:e,value:t}),this._dispatchPropertySetEvent(e,{propertyName:e,value:t})},setColumnModelProperty:function(e,t,i){var n,o=this.table.ColumnModelProperties;if(!o||0===o.length)for(o=[],n=this.table.dataModel.getCurrentStartCol();n<this.table.dataModel.getCurrentEndCol();n+=1)o[n]={};o.hasOwnProperty(e)&&(o[e][t]=i,this.table.ColumnModelProperties=o,this.peerNode.setProperty("ColumnModelProperty",{column:e,property:t,value:i}),this._dispatchPropertySetEvent(t,{column:e,propertyName:t,value:i}))},setRowModelProperty:function(e,t,i){var n,o=this.table.RowModelProperties;if(!o||0===o.length)for(o=[],n=this.table.dataModel.getCurrentStartRow();n<this.table.dataModel.getCurrentEndRow();n+=1)o[n]={};o.hasOwnProperty(e)&&(o[e][t]=i,this.table.RowModelProperties=o,this.peerNode.setProperty("RowModelProperty",{row:e,property:t,value:i}),this._dispatchPropertySetEvent(t,{row:e,propertyName:t,value:i}))},destroy:function(){a.logDebug("VE: ClientArrayView destroy"),this.table&&this.table.destroyRecursive&&(a.logDebug("VE: ClientArrayView destroyRecursive"),this.table.destroyRecursive()),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(9160),i(204),i(206),i(227),i(217),i(9178),i(483),i(844),i(235),i(1182),i(209),i(210),i(225),i(231),i(1694),i(1031),i(221),i(245),i(238),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){var C=e("variableeditor.views.table.ArrayTable",[t],{mouseMotionHandler:null,mouseUpHandler:null,mouseDownColumnHandler:null,mouseDownRowHandler:null,mouseDownHandler:null,anchorRow:-1,anchorColumn:-1,mouseColumnHeaderMotionHandler:null,mouseRowHeaderMotionHandler:null,isCellEnterListenerPaused:!0,lastSelectedHeaderCol:-1,lastSelectedHeaderRow:-1,mouseUpColumnHeaderHandler:null,mouseUpRowHeaderHandler:null,editable:!0,tableRowOffset:2,tableColumnOffset:2,sendSelectionRanges:!0,paddingPagedRows:40,tolerancePagedRows:20,paddingPagedColumns:15,tolerancePagedCols:7,blockSelection:new g,columnHeaderMouseDown:!1,rowHeaderMouseDown:!1,maxHeight:-1,selectable:!0,TableModelProperties:{},RowModelProperties:{},ColumnModelProperties:{},showSelectionBorder:!0,selectionUpdated:!1,cellsDragged:!1,resizeBehaviour:"default",peerViewModel:{},_selectingColumn:void 0,_selectingRow:void 0,lineSpacing:1.5,minRowHeight:18,rightClickKeyCode:3,TABLE_DEFAULT_FONT:"12px Helvetica, Helvetica, sans-serif",COLUMN_HEADER_ATTACH_POINT:"variableEditorColumnHeaders",_shiftDirection:"",constructor:function(e){this.pagedDataUpdateDelay=0,e.position&&(this.position=e.position),void 0===e.editable||null===e.editable?this.editable=!0:this.editable=e.editable,!1===e.selectable&&(this.selectable=!1),e.peerViewModel&&(this.peerViewModel=e.peerViewModel),void 0!==e.sendSelectionRanges&&(this.sendSelectionRanges=e.sendSelectionRanges),this.blockSelection.setIndexedRows(!this.sendSelectionRanges),this.RendererName="variableeditorrenderer_"+C._RenderCounter,C._RenderCounter=C._RenderCounter+1,this.VariableEditorRenderer=new a(this),this.cellTypes[this.RendererName]=this.VariableEditorRenderer,e.resizeBehaviour&&(this.resizeBehaviour=e.resizeBehaviour),e.contextId&&(this.contextId=e.contextId)},postCreate:function(){this.inherited(arguments);var e=this;n(this.dataScrollerNode,"mouseup",i.hitch(this,"_onMouseDragUp")),this.mouseDownHandler=n.pausable(this.dataScrollerNode,"mousedown",i.hitch(this,"_onMouseDown")),this.mouseDownColumnHandler=n.pausable(this.columnHeaderNode,"mousedown",i.hitch(this,"_onHeaderColumnMouseDown")),n(this.columnHeaderScrollerNode,"scroll",(function(t){e.columnHeaderScrollerNode.scrollLeft=e.dataScrollerNode.scrollLeft})),n(this.rowHeaderScrollerNode,"scroll",(function(t){e.rowHeaderScrollerNode.scrollTop=e.dataScrollerNode.scrollTop})),this.mouseDownRowHandler=n.pausable(this.rowHeaderNode,"mousedown",i.hitch(this,"_onHeaderRowMouseDown")),this.own(this.mouseDownColumnHandler),this.mouseMotionHandler=n.pausable(window,"mousemove",i.hitch(this,"_onMouseMove")),this.own(this.mouseMotionHandler),this.mouseMotionHandler.pause(),n(this.cornerSpacerNode,"mousedown",i.hitch(this,"_onCornerMouseDown")),this.own(n(window,"mouseup",i.hitch(this,"_onWindowMouseUp"))),this.peerNode.addEventListener("peerEvent",(function(t){e.handlePeerEvent(t)}),this.peerNode),this.peerNode.addEventListener("propertySet",(function(t){e.handlePropertySet(t)}),this.peerNode),h.add(this.domNode,"mgg"),"/VariableEditor"===this.channel&&h.add(this.domNode,"mw_type_VariableEditorTable"),this.maxHeight<0?h.add(this.domNode,"arrayTable"):null!==this.dataModel&&(this.dataModel.getRowCount()*this.rowHeight>this.maxHeight?h.add(this.domNode,"arrayTableMaxHeight"):h.add(this.domNode,"arrayTableMaxHeightScaled")),this.domNode.setAttribute("data-tag",s.createDataTag("views","table")),this._attachListenersForContextUpdate(),y.subscribe("/VElogmessage",i.hitch(this,(function(e){e.data.eventType&&(s.logDebug("VE: "+e.data.eventType),"log"===e.data.eventType&&e.data.message&&s.logDebug("VE: Server Log ("+e.data.message+")"))})))},_attachListenersForContextUpdate:function(){this.rowHeaderScrollerNode&&this._handleContextUpdate(this.rowHeaderScrollerNode,["Header","Row"]),this.columnHeaderScrollerNode&&this._handleContextUpdate(this.columnHeaderScrollerNode,["Header","Column"])},_handleContextUpdate:function(e,t){var i=this;n(e,"click",(function(e){d.addToContext(i.contextUpdateChannel,t,!0)}))},_getCellType:function(){return this.VariableEditorRenderer},_onColumnsSet:function(){this._updateColumnHeaderNames(),this.inherited(arguments)},_renderCell:function(e,t){var i=this._getCellType(e);if(i&&i.type&&0===i.type.indexOf("variableeditorrenderer")){var n=document.createElement("div");n.setAttribute("class","cell"),n.setAttribute("data-tag",c.concatenateDataTagStrings("datatools","variableeditor","views","table","cell"));var o=this;return this.cellTypes[i.type]&&this.cellTypes[i.type].create&&this.cellTypes[i.type].create(i,t,(function(r){n.appendChild(r),o.cellTypes[i.type]&&o.cellTypes[i.type].startup&&o.cellTypes[i.type].startup(r,e,t,n)})),n}this.inherited(arguments)},_updateCell:function(e,t,i,n){var o=f.getEnclosingWidget(e.firstChild);if(null!=i){var r=null;try{r=JSON.parse(i)}catch(e){r=i}if(o&&o.isEditing&&o.isEditing()){if(o.setEditable){var a=o.getCellIndices(r);o.setEditable(this.getCellPropertyValue(a.row,a.column,"Editable",r))}return}}var s=this._getCellType(t);if(s&&s.type&&0===s.type.indexOf("variableeditorrenderer")){var l=this;if(this.cellTypes[s.type]&&this.cellTypes[s.type].update){var c=e.firstChild;this.cellTypes[s.type].update(c,s,i,(function(o){o&&c&&o!==c?(e.replaceChild(o,c),f.getEnclosingWidget(c).destroy()):o&&!c&&e.appendChild(o);l.cellTypes[s.type]&&l.cellTypes[s.type].startup&&l.cellTypes[s.type].startup(o,t,i,n)}))}}else this.inherited(arguments)},_setEmptyBlockSelection:function(){this.blockSelection.isEmpty()||(this.blockSelection=new g({source:"client",indexedRows:!this.sendSelectionRanges}),this._renderSelection(),this.setServerSelection(!0))},_onColumnMouseUp:function(e){this.inherited(arguments),this.setServerSelection(!0),void 0!==this._resizingColumn&&this.columns&&(this._setColumnWidthOnTable(this._resizingColumn,this.columns[this._resizingColumn].width),this.setColumnModelProperty(this._resizingColumn,"ColumnWidth",this.columns[this._resizingColumn].width),this._updateDataStyles(),this.setColumnModelProperty(this._resizingColumn,"ColumnResized",!0)),this._resizingColumn=void 0},_setColumnWidthOnTable:function(){},onValueChanged:function(e){if(!e||!e.data||"server"!==e.data.source){var t=null;e.data.editor?t=e.data.editor:e.data.renderer&&(t=e.data.renderer);var i=-1,n=-1;if(t.domNode&&t.domNode.dataset){var o=this._getRowColumnFromNode(t.domNode);i=o.row,n=o.col}var r=e.data.newValue;t.convert&&(r=t.convert(e.data.newValue)),this.dataModel&&this.dataModel.changeData&&this.dataModel.changeData(i,n,[[r]])}},onEditingStarted:function(){this.mouseMotionHandler.pause()},onMouseDown:function(e){if(this._shiftDirection="",_("mac")&&Object.defineProperty(e.data,"ctrlKey",{value:!1}),this.contextMenu&&this.contextMenu.close(),this.selectable){this.isCellEnterListenerPaused=!1,this.cellsDragged=!1,this.mouseMotionHandler.resume();var t=-1,i=-1;if(e&&e.data&&e.data.renderer&&e.data.renderer.domNode){var n=this._getRowColumnFromNode(e.data.renderer.domNode);t=n.row,i=n.col}!this.isCellDraggable(t,i)||!this.isCellSelected(t,i)||e.data.ctrlKey||e.data.metaKey||e.data.shiftKey?(this._updateAndRenderSelection(t,i,e.data),this.selectionUpdated=!0):this.selectionUpdated=!1}},_updateAndRenderSelection:function(e,t,i){var n;this._setLeadCellPosition(e,t),this.anchorRow=e,this.anchorColumn=t,this.blockSelection.isEmpty()&&this._resetShiftKeyPivot(),n="extended"!==this.selectionMode||!i.ctrlKey&&!i.metaKey||i.shiftKey?new g({indexedRows:!this.sendSelectionRanges}):this.blockSelection.clone(),n=this._updateBlockSelection(e,t,n,i),this.blockSelection.matchingSelection(n)||(this.blockSelection=n,this._renderSelection())},_updateBlockSelection:function(e,t,i,n){if("none"!==this.selectionType&&"none"!==this.selectionMode)if(n&&n.shiftKey){var o;(o=this.getShiftKeyPivot())[0]<0&&o[1]<0?i.add(0,e,0,t):i.add(o[0],e,o[1],t)}else n.ctrlKey||n.metaKey?(this._setShiftKeyPivot(e,t),i.containsRow(e)&&i.containsColumn(t)?i.removeRows(e,e):i.addCell(e,t)):(this._setShiftKeyPivot(e,t),i.addCell(e,t));return i},onMouseEnter:function(e){if(this.selectable&&!this.isCellEnterListenerPaused){var t=-1,i=-1;if(e&&e.data&&e.data.renderer&&e.data.renderer.domNode){var n=this._getRowColumnFromNode(e.data.renderer.domNode);t=n.row,i=n.col}this._updateSelection(t,i,e)}},onMouseUp:function(){this.selectable&&this.setServerSelection(!0),this.isCellEnterListenerPaused=!0,this.mouseMotionHandler.pause()},onEditingStopped:function(){this.mouseDownColumnHandler&&this.mouseDownColumnHandler.resume()},_getRowColumnFromNode:function(e){var t,i;return e&&e.dataset?(t=parseInt(e.dataset.row),i=parseInt(e.dataset.col)):(t=parseInt(e.getAttribute("data-row")),i=parseInt(e.getAttribute("data-col"))),{row:t,col:i}},_convertPxToRows:function(e,t,i){return Math.floor((e-t.y+i)/this.rowHeight)},_onMouseDown:function(e){if(!h.contains(e.target,"dataScrollerNode")){var t=r.position(this.dataScrollerNode),i={row:this._convertPxToRows(e.pageY,t,this.dataScrollerNode.scrollTop),column:this._convertPxToCols(0,e.pageX-t.x+this.dataScrollerNode.scrollLeft)};i.row>this.getRowCount()-1||i.column>this.getColumnCount()-1?(d.addToContext(this.contextUpdateChannel,[this.contextId,"EmptySpace"],!0),this.blockSelection.isEmpty()||this._clearBlockSelection()):d.addToContext(this.contextUpdateChannel,[this.contextId,"DataVariable"],!0)}},_clearBlockSelection:function(){this.blockSelection=new g({source:"client",indexedRows:!this.sendSelectionRanges}),this._setLeadCellPosition(-1,-1),this._renderSelection(),this.mouseMotionHandler.resume()},_onMouseMove:function(e){if(e.preventDefault(),!this.blockSelection.isEmpty()){var t=r.position(this.dataScrollerNode),i={row:this._convertPxToRows(e.pageY,t,this.dataScrollerNode.scrollTop),column:this._convertPxToCols(0,e.pageX-t.x+this.dataScrollerNode.scrollLeft)},n=Math.max(0,Math.min(i.row,this.getRowCount()-1)),o=Math.max(0,Math.min(i.column,this.getColumnCount()-1));this.scrollToCell(n,o),this._updateSelection(n,o,e)}},_updateSelection:function(e,t,i){var n,o,r,a,s;this._setLeadCellPosition(e,t),n=i.ctrlKey||i.metaKey?this.blockSelection.clone():new g({indexedRows:!this.sendSelectionRanges}),o=Math.min(this.anchorRow,e),r=Math.max(this.anchorRow,e),a=Math.min(this.anchorColumn,t),s=Math.max(this.anchorColumn,t),n.add(o,r,a,s),this.blockSelection=n,this._renderSelection()},getRowCount:function(){return this.dataModel?this.dataModel.getRowCount():0},getColumnCount:function(){return this.dataModel?this.dataModel.getColumnCount():0},_onDataChange:function(){},resize:function(){if(!this._noAutoSizing){var e=r.position(this.domNode);this.position={width:e.w,height:e.h},this.debounceRedraw()}},handlePropertySet:function(e){if("Selection"===e.data.key){var t=e.data.newValue;if(t.source&&"client"===t.source||t.selectionSource&&"client"===t.selectionSource)return;var i=new g(t);i.setIndexedRows(!this.sendSelectionRanges),this.blockSelection=i,this._renderSelection()}else"editable"===e.data.key?this.domNode&&("false"===e.data.newValue?(this.domNode.className?this.domNode.className=this.domNode.className+" readonly":this.domNode.className="readonly",h.toggle(this.domNode,"hideVerticalScroll",!0),h.toggle(this.domNode,"hideHorizontalScroll",!0)):(this._updateScrollerStyles(),this.domNode.className?this.domNode.className=this.domNode.className.replace(/\breadonly\b/,""):this.domNode.className="")):"dataModel"===e.data.key&&(this.pagedDataUpdateDelay=100)},_onCornerMouseDown:function(e){e.preventDefault();var t=new g({indexedRows:!this.sendSelectionRanges}),i=this.getRowCount(),n=this.getColumnCount();t.add(0,i-1,0,n-1),null===this.getLeadNode()&&this._setLeadCellPosition(0,0),this.blockSelection=t,this._renderSelection()},_onMouseDragUp:function(e){if(_("mac")&&(e.ctrlKey&&Object.defineProperty(e,"which",{value:3}),Object.defineProperty(e,"ctrlKey",{value:!1})),this.anchorRow=-1,this.anchorColumn=-1,this.mouseMotionHandler&&this.mouseMotionHandler.pause(),e&&e.renderer&&e.renderer.domNode){d.removeFromContext(this.contextUpdateChannel,!0);var t=this._getRowColumnFromNode(e.renderer.domNode);this.selectionUpdated||this.cellsDragged||e.which===this.rightClickKeyCode||(this._updateAndRenderSelection(t.row,t.col,e),this.selectionUpdated=!0)}this.cellsDragged=!1},_onHeaderRowMouseDown:function(e,t){if(this.selectable){var o,r=null;try{o=this.getEnclosingHeaderWidget(e.target)}catch(e){o={index:-1}}if(o.index>=0&&(r=o.index),this._selectingRow=r,this.mouseRowHeaderMotionHandler?this.mouseRowHeaderMotionHandler.resume():(this.mouseRowHeaderMotionHandler=n.pausable(window,"mousemove",i.hitch(this,"_onRowHeaderSelection")),this.own(this.mouseRowHeaderMotionHandler)),t||void 0===t){var a=this.getLeadNode().getElementsByTagName("input")[0];b.focus(a)}e.preventDefault()}},_onTableHeaderKeyDown:function(e){var t=this.getLeadNode();b.focus(t.getElementsByTagName("input")[0]),f.getEnclosingWidget(t)._handleKeyboardEvent(e)},_onHeaderRowMouseUp:function(){this.selectable&&(this.lastSelectedHeaderRow=-1,this.mouseUpRowHeaderHandler&&this.mouseUpRowHeaderHandler.pause(),this.mouseRowHeaderMotionHandler&&this.mouseRowHeaderMotionHandler.pause(),this.getRowCount()>0&&this.getColumnCount()>0&&this.setServerSelection(!0),this._selectingRow=void 0)},_onRowHeaderSelection:function(e){if(this.selectable){var t;e.preventDefault();var i=r.position(this.dataScrollerNode),n=null;if(e.pageX<i.x+i.w&&e.pageX>i.x&&e.pageY<i.y+i.h&&e.pageY>i.y){var o;try{o=this._getCellFromNode(e.target)}catch(e){o={row:-1}}o.row>=0&&(n=o.row)}n||(n=Math.floor((e.pageY-i.y+this.dataScrollerNode.scrollTop)/this.rowHeight),n=Math.min(Math.max(0,n),this.getRowCount()-1),this.scrollToRow(n)),this.lastSelectedHeaderRow<0&&(this.lastSelectedHeaderRow=n);var a=this.blockSelection.getColumnCount()===this.getColumnCount();if(this.blockSelection.containsRow(n)&&a){if(this.lastSelectedHeaderRow!==n)if(n<this.lastSelectedHeaderRow)for(t=this.lastSelectedHeaderRow;t>n;t-=1)this.blockSelection.containsRow(t)&&this.blockSelection.removeRows(t,t);else for(t=this.lastSelectedHeaderRow;t<n;t+=1)this.blockSelection.containsRow(t)&&this.blockSelection.removeRows(t,t);return this.lastSelectedHeaderRow=n,this._setLeadCellPosition(this.lastSelectedHeaderRow,0),void(this.getColumnCount()>0?this._renderSelection():this._updateHeaderStyle())}if(n>=this.lastSelectedHeaderRow)for(t=this.lastSelectedHeaderRow;t<=n;t+=1)this.blockSelection.containsRow(t)||this.blockSelection.add(t,t,0,this.getColumnCount()-1);else for(t=n;t<=this.lastSelectedHeaderRow;t+=1)this.blockSelection.containsRow(t)||this.blockSelection.add(t,t,0,this.getColumnCount()-1);this.lastSelectedHeaderRow=n,this._setLeadCellPosition(this.lastSelectedHeaderRow,0),this.getColumnCount()>0?this._renderSelection():this._updateHeaderStyle()}},_onHeaderColumnMouseDown:function(e,t){if(this.selectable&&!(e&&e.target&&e.target.className&&-1!==e.target.className.toLowerCase().indexOf("drag"))){var o,r=null;try{o=this.getEnclosingHeaderWidget(e.target)}catch(e){o={index:-1}}if(o.index>=0&&(r=o.index),this._selectingColumn=r,this.mouseUpColumnHeaderHandler?this.mouseUpColumnHeaderHandler.resume():this.mouseUpColumnHeaderHandler=n.pausable(this.columnHeaderNode,"mouseup",i.hitch(this,"_onHeaderColumnMouseUp")),this.mouseColumnHeaderMotionHandler?this.mouseColumnHeaderMotionHandler.resume():(this.mouseColumnHeaderMotionHandler=n.pausable(window,"mousemove",i.hitch(this,"_onColumnHeaderSelection")),this.own(this.mouseColumnHeaderMotionHandler)),t||void 0===t){var a=this.getLeadNode().getElementsByTagName("input")[0];b.focus(a)}e.preventDefault()}},_onRowMouseDown:function(e){if(this.selectable&&"single"!==this.selectionMode){var t;try{t=this.getEnclosingHeaderWidget(e.target)}catch(e){t={index:-1}}if(!(t.index<0)){var i=t.index;this.blockSelection.isEmpty()&&this._resetShiftKeyPivot();var n=new g({indexedRows:!this.sendSelectionRanges});"extended"!==this.selectionMode||!e.ctrlKey&&!e.metaKey||e.shiftKey||(n=this.blockSelection.clone()),n=this._updateRowSelection(i,n,e),this.blockSelection.matchingSelection(n)||(this.lastSelectedHeaderRow<0&&(this.lastSelectedHeaderRow=i),this.blockSelection=n,this._setLeadCellPosition(this.lastSelectedHeaderRow,0),this.getColumnCount()>0?this._renderSelection():this._updateHeaderStyle())}}},_updateRowSelection:function(e,t,i){var n,o=this.getColumnCount()-1;if("none"!==this.selectionType&&"none"!==this.selectionMode)if(i.shiftKey){var r=null;r=(n=this.getShiftKeyPivot())[0]<0?0:n[0],t.add(r,e,0,o)}else i.ctrlKey||i.metaKey?(this._setShiftKeyPivot(e,o),t.containsRow(e)?t.removeRows(e,e):t.add(e,e,0,o)):i.selectAll?t.add(0,e,0,o):(this._setShiftKeyPivot(e,o),t.add(e,e,0,o));return t},_onColumnMouseDown:function(e){var t;if(this.selectable&&"single"!==this.selectionMode){var i;try{i=this.getEnclosingHeaderWidget(e.target)}catch(e){i={index:-1}}if(!(i.index<0)){var n=i.index,o=new g({indexedRows:!this.sendSelectionRanges});"extended"===this.selectionMode&&(e.ctrlKey||e.metaKey||e.shiftKey)&&(o=this.blockSelection.clone()),"none"!==this.selectionType&&"none"!==this.selectionMode&&(e.shiftKey&&!o.isEmpty()?(t=o.getLeadCell(),o.add(0,this.getRowCount()-1,t[1],n)):(e.ctrlKey||e.metaKey)&&o.containsColumn(n)?o.removeColumns(n,n):o.add(0,this.getRowCount()-1,n,n)),this.blockSelection.matchingSelection(o)||(this.lastSelectedHeaderCol<0&&(this.lastSelectedHeaderCol=n),this.blockSelection=o,this._setLeadCellPosition(0,this.lastSelectedHeaderCol),this._renderSelection())}}},_onHeaderColumnMouseUp:function(){this.selectable&&(this.lastSelectedHeaderCol=-1,this.mouseColumnHeaderMotionHandler&&this.mouseColumnHeaderMotionHandler.pause(),this.mouseUpColumnHeaderHandler&&this.mouseUpColumnHeaderHandler.pause(),this.getRowCount()>0&&this.getColumnCount()>0&&this.setServerSelection(!0),this._selectingColumn=void 0)},_onColumnHeaderSelection:function(e,t){if(this.selectable){var i;!1!==t&&e.preventDefault();var n=r.position(this.dataScrollerNode),o=null;if(e.pageX<n.x+n.w&&e.pageX>n.x&&e.pageY<n.y+n.h&&e.pageY>n.y){var a;try{a=this._getCellFromNode(e.target)}catch(e){a={column:-1}}a.column>=0&&(o=a.column)}if(o||(o=this._convertPxToCols(0,e.pageX-n.x+this.dataScrollerNode.scrollLeft),o=Math.min(Math.max(0,o),this.getColumnCount()-1),this.scrollToColumn(o)),o!==this.lastSelectedHeaderCol){this.lastSelectedHeaderCol<0&&(this.lastSelectedHeaderCol=o);var s=this.blockSelection.containsColumn(o),l=this.blockSelection.getRowCount()===this.getRowCount();if(s&&l){if(this.lastSelectedHeaderCol!==o)if(o<this.lastSelectedHeaderCol)for(i=this.lastSelectedHeaderCol;i>o;i-=1)this.blockSelection.containsColumn(i)&&this.blockSelection.removeColumns(i,i);else for(i=this.lastSelectedHeaderCol;i<o;i+=1)this.blockSelection.containsColumn(i)&&this.blockSelection.removeColumns(i,i);return this.lastSelectedHeaderCol=o,this._setLeadCellPosition(0,this.lastSelectedHeaderCol),void this._renderSelection()}if(o>=this.lastSelectedHeaderCol)for(i=this.lastSelectedHeaderCol;i<=o;i+=1)this.blockSelection.containsColumn(i)||this.blockSelection.add(0,this.getRowCount()-1,i,i);else for(i=o;i<=this.lastSelectedHeaderCol;i+=1)this.blockSelection.containsColumn(i)||this.blockSelection.add(0,this.getRowCount()-1,i,i);this.lastSelectedHeaderCol=o,this._setLeadCellPosition(0,this.lastSelectedHeaderCol),this._renderSelection()}}},_onWindowMouseUp:function(e,t){this._onHeaderColumnMouseUp(),this._onHeaderRowMouseUp(),this._onTableMouseUp(e,t),this.mouseMotionHandler&&this.mouseMotionHandler.pause(),this.mouseColumnHeaderMotionHandler&&this.mouseColumnHeaderMotionHandler.pause(),this.mouseRowHeaderMotionHandler&&this.mouseRowHeaderMotionHandler.pause(),this._selectingColumn=void 0,this._selectingRow=void 0,this.anchorRow=-1,this.anchorColumn=-1,this.isCellEnterListenerPaused=!0},_onTableMouseUp:function(e,t){if(o.isDescendant(e.target,this.domNode)&&this.leadCell&&!this.columnHeaderNode.contains(e.target)&&!this.rowHeaderNode.contains(e.target)){var i=".row_"+this.leadCell.row+".col_"+this.leadCell.column;this.leadCell.index>-1&&(i=i+".idx_"+this.leadCell.index);var n=p(i,this.domNode)[0],r=f.getEnclosingWidget(n);r&&r._handleMouseUp&&(r._handleMouseUp(),e&&e.target&&!r.domNode.contains(e.target)&&r.domNode.contains(b.curNode)&&b.focus(this.domNode))}return!0},_cancelCurrentEditor:function(e,t){var i=p(".row_"+e+".col_"+t,this.domNode)[0],n=f.getEnclosingWidget(i);n&&n.cancelEditing&&n.cancelEditing()},_revertCurrentEditorChanges:function(e,t){var i=p(".cellRenderer.row_"+e+".col_"+t,this.domNode)[0],n=f.getEnclosingWidget(i);n&&n._revert&&n._revert()},_cancelCurrentRowHeaderEditor:function(e){var t=p(".EditableHeader",this.rowHeaderNode)[e+(this.rowView.end-this.rowView.start)-this.rowView.end],i=f.getEnclosingWidget(t);this._handleDuplicateRowHeaderValues(i)},_cancelCurrentColumnHeaderEditor:function(e,t){var i=p(".EditableHeader",this.columnHeaderNode)[e+(this.colView.end-this.colView.start)-this.colView.end],n=f.getEnclosingWidget(i);this._handleColumnHeaderError(n,t)},_forceRowUpdate:function(e,t){if(e>=0&&t>=0){var i=this.getCellSelector(e,t),n=p(i)[0];if(n){var o=this.dataModel.getPartialData()[e-this.rowView.start];this._updateRow(n.parentNode,o,o,this.colView.start,this.colView.end,this.oldColView.start,this.oldColView.end)}}},_clearRendererCache:function(e,t){if(e>=0&&t>=0){var i=this.getCellSelector(e,t),n=p(i)[0];if(n){var o=this.dataModel.getPartialData()[e-this.dataModel._currentStartRow],r=this._getCellType(t);this.cellTypes[r.type].clearCache&&this.cellTypes[r.type].clearCache(n.firstElementChild,t,o[t])}}},getEnclosingHeaderWidget:function(e){for(;!h.contains(e,"EditableHeader")&&!h.contains(e,"NonEditableHeader");)e=e.parentElement;return f.getEnclosingWidget(e)},_handleDataChangeStatus:function(e){if(s.logDebug("VE: Server data change status: "+e.data.status),e.data.status&&"success"===e.data.status){var t=".cellRenderer.row_"+e.data.row+".col_"+e.data.column,i=p(t,this.domNode)[0],n=f.getEnclosingWidget(i);this._updateCellValue(n,e)}else this._clearRendererCache(e.data.row,e.data.column),this._revertCurrentEditorChanges(e.data.row,e.data.column),e.data.status&&"noChange"===e.data.status||(e.data.message?c.displayErrorMessage(e.data.message):u.warn("VE: Server error with no message."))},_updateCellValue:function(e,t){e&&e.setValue&&t.data&&t.data.dispValue&&(e.setValue(t.data.dispValue,t.data.source,t.data.dispValue),t.data.isMetaData?c.addToClassList(e._inputBox.inputNode,l.IS_METADATA):c.removeFromClassList(e._inputBox.inputNode,l.IS_METADATA))},handlePeerEvent:function(e){s.logDebug("VE: Peer Event: "+e.data.type),e.data.type&&"ErrorDuplicateColumnHeader"===e.data.type?this._cancelCurrentColumnHeaderEditor(e.data.index):e.data.type&&"ColumnHeaderError"===e.data.type?this._cancelCurrentColumnHeaderEditor(e.data.index,e.data.message):e.data.type&&"ErrorDuplicateRowHeader"===e.data.type?this._cancelCurrentRowHeaderEditor(e.data.index):e.data.type&&"errormsg"===e.data.type?(s.logDebug("VE: Server error: "+e.data.message),this._cancelCurrentEditor(e.data.row,e.data.column),e.data.message?c.displayErrorMessage(e.data.message):u.warn("VE: Server error with no message.")):e.data.type&&"dataChangeStatus"===e.data.type&&this._handleDataChangeStatus(e)}});return C._RenderCounter=0,C._forTestingOnly={contextPublishingUtils:d},C}),e,t),e.exports=o},function(e,t,n){var o,r;o=[n(203),n(204),n(212),n(227),n(210),n(211),n(213),n(222),n(206),n(384),n(285),n(276),n(277),n(231),n(368),n(342),n(703),n(209),n(219),n(243),n(1038),n(464),n(355),n(2865),n(1046),n(1729),n(1047),n(1722),n(387),n(344),n(1730),n(773),n(775),n(2878),n(1731),n(657),n(226),n(1051),n(377),n(292),n(714),n(3256),n(1068),n(304),n(798),n(3269),n(3270),n(1334),n(467),n(1818),n(3278),n(1081),n(3280),n(569),n(339),n(1727),n(880),n(3288),n(468),n(562),t],r=n.dj.d(o,(function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U,W,G,z,q,K,X,Y,Q,$,J,Z,ee,te,ie,ne,oe,re,ae,se){var le="toolstripWrapper",ce=e([l,d,P],{Fixed:void 0,minorVersion:1,hasToolstrip:!0,hasMnemonics:!1,enableQABCustomization:!1,enableRemoteControl:!0,documentGroupingFacet:Y.FACET,showSingleDocumentTab:!0,enableOnTopExpand:!0,enableUsageOverlay:!0,mainContainerTraversalOrder:["top","left","center","bottom","right"],automaticallyShowWindow:!0,useWebpack:!1,Dynamic:void 0,Property_Object_Definitions:void 0,constructor:function(i,o){var r,a,s=this;if(this._propertyDelegates={},this.set("isBusy",o.isBusy),this.windowBoundsModified=!1,e.safeMixin(this,o),this.appId=this.appId||i,this.dynamicLoader=new Q(this.useWebpack),this.id=i,this.toolstripTag=i+"Toolstrip",this.selectedChild=void 0,this._layoutKey=this.appId+"Layout",this._documentsKey=this.appId+"Documents",this._dockedContainers={},this._panels={},this._documents=[],this._toolBars=[],this._closeApprovers=[],this._childProperties={},this._undockedChildProperties={},this._dockWatches={},this._groupRegistry=this.parentContainer?this.parentContainer._groupRegistry:new x,this._documentTypes=[],this._panelSetTitles={global:this.globalPanelSetTitle},this._pendingTypeProperties={},this._layoutInitializedPromise=new n,delete this.Fixed,delete this.Dynamic,delete this.Property_Object_Definitions,this.product&&this.scope&&(ne.start(this.product,this.scope,this.hasMultipleProductsOrScopes),this.prefixesOfElementIdsToRedact&&ne.setPrefixesOfElementIdsToRedact(this.prefixesOfElementIdsToRedact,this.product,this.scope)),this.parentContainer&&(this.parentContainer._undockedChildProperties[window.name]={}),this.parentContainer&&this.isDocked||X.setContainer(this),void 0===this.persistDocuments&&(this.persistDocuments=this.persistLayout),this.isDocked)this.sessionDataService=this.parentContainer.sessionDataService,this.actionService=this.parentContainer.actionService,this.uiBuilder=this.parentContainer.uiBuilder,this._selectionManger=this.parentContainer._selectionManager,this._contextManager=this.parentContainer._contextManager,this._contextDriver=this.parentContainer._contextDriver,this._focusManager=this.parentContainer._focusManager,this.parentContainer._dockedContainers[i]=this;else{var l=this.parentContainer?"uiroot":i;if(this._outerContainer=new T({id:l,uiContainer:this},l),this.hideOuterContainer(),this._mainContainer=new D({id:i+"Main",enableOnTopExpand:this.enableOnTopExpand,borderOptions:this.borderOptions,supportFooter:!this.footerSpansFullWidth,panelSetTitles:this._panelSetTitles,traversalOrder:this.mainContainerTraversalOrder,minimumCenterWidth:200}),this._mainContainer.on("regioncontainercreated",function(e){switch(e.region){case"left":this.leftWidth&&this._mainContainer.set("leftWidth",this.leftWidth);break;case"right":this.rightWidth&&this._mainContainer.set("rightWidth",this.rightWidth);break;case"bottom":this.bottomHeight&&this._mainContainer.set("bottomHeight",this.bottomHeight)}}.bind(this)),this._outerContainer.addWithProperties(this._mainContainer,t.mixin(new d,{region:"center"})),this.title&&this.set("title",this.title),J.addWindowBoundsListener(window,(function(e,t){s._changeAttrValue("windowBounds",e),t||s.parentContainer||s._handleLayoutChange()})),window.cefclient?(window.cefclient.handleWindowClosed=function(){s.close()},window.cefclient.sendMessage("js-custom-close-set")):this.parentContainer||c(window,"beforeunload",(function(){s.close(!0)})),this.parentContainer||(window.name=i),this.sessionDataService||(this.sessionDataService=new $,this.sessionDataService.setMinimumSaveInterval(this._layoutKey,1e3)),z.setSessionDataService(this.sessionDataService),this.actionService||(this.actionService=new g({nameSpace:"/actions/main"})),this.uiBuilder||(this.uiBuilder=V.getInstance({actionService:this.actionService,enableQABCustomization:this.enableQABCustomization,lazyLoading:this.lazyToolstripConstruction})),this._selectionManager=this._mainContainer.selectionManager,this.hasToolstrip){if(re.start("Toolstrip"),this._toolstripId=this.uiBuilder.create({tag:this.toolstripTag,type:F.TOOLSTRIP,displayState:this.isToolstripCollapsed?k.COLLAPSED:k.EXPANDED}),this.toolstrip=f.byId(this._toolstripId),this._setToolstripBusy(this.isToolstripBusy),o.showTopLeftButtonInToolstrip&&this.toolstrip.addTopLeftButton(),this.uiBuilder.addPropertySetCallback(this._toolstripId,t.hitch(this,this._handleToolstripPropertyChange)),this.toolstrip.watch("selectedTab",t.hitch(this,this._handleToolstripSelectedTabChange)),(r=new h({id:le})).set("content",this.toolstrip),this._outerContainer.addWithProperties(r,{region:"top"}),C.setCloseClickExclusion(r.domNode),this.parentContainer&&!1!==this.isDockable&&this.contentType===X.CHILD_UI_CONTENT)new y({class:"dockButton",icon:"smallDock",showText:!1,description:this.title?t.replace(ae.dockSomething,{placeholder:this.title}):ae.dock}).placeAt(this.toolstrip.topRightContainer).on("click",t.hitch(this,"_dock"));a=this.parentContainer&&this.contentType!==X.CHILD_UI_CONTENT?this.parentContainer.id:i,this._contextManager=j.getInstance({uiContainer:this,uiBuilder:this.uiBuilder,parentAppId:a,toolstripTag:this.toolstripTag,qabContextualControlsActionMap:this.qabControlToActionMap||{},alternativeContextMemory:o.alternativeContextMemory}),r.dontSelectOnFocus=!0,this._childProperties[le]=r,this._selectionManager.addChild(r,r)}var u=ee.detectIE();if(this.hasMnemonics&&(!1===u||u>=13)){if(!this.hasToolstrip)throw new Error("'hasMnemonics' cannot be true without 'hasToolstrip' also being true!");this._mnemonicsManager=new U({toolstripId:this._toolstripId})}this._focusManager=new H(this.toolstrip),this._propertyDelegates[D.IS_LEFT_COLLAPSED]=this._mainContainer,this._propertyDelegates[D.IS_RIGHT_COLLAPSED]=this._mainContainer,this._propertyDelegates[D.IS_BOTTOM_COLLAPSED]=this._mainContainer,this._propertyDelegates[D.LEFT_WIDTH]=this._mainContainer,this._propertyDelegates[D.RIGHT_WIDTH]=this._mainContainer,this._propertyDelegates[D.BOTTOM_HEIGHT]=this._mainContainer,this._propertyDelegates[M.SELECTED_CHILD]=this._selectionManager,this._contextManager&&(this._contextDriver=new K(a,this)),this._documentContainerPropertyDelegator=this._createDocumentContainerPropertyDelegator(o),this._documentContainerActions=new I(this.actionService),this.reserveDocumentSpace&&this._addDocumentContainer(),this._propertyDelegates[w.TAB_POSITION]=this._documentContainerPropertyDelegator,this._propertyDelegates[w.ARRANGEMENT]=this._documentContainerPropertyDelegator,this._propertyDelegates[w.GRID_SIZE]=this._documentContainerPropertyDelegator,this._propertyDelegates[w.ROW_WEIGHTS]=this._documentContainerPropertyDelegator,this._propertyDelegates[w.COLUMN_WEIGHTS]=this._documentContainerPropertyDelegator,this._propertyDelegates[w.TILE_COVERAGE]=this._documentContainerPropertyDelegator,this._propertyDelegates[w.PLACE_HOLDER_TEXT]=this._documentContainerPropertyDelegator,this.defaultLayout&&"string"==typeof this.defaultLayout&&(this.defaultLayout=JSON.parse(this.defaultLayout)),this._initializeLayout(),this._mainContainer.on(E.STATE_CHANGED,(function(){s._mainContainerStateChanged(),s._isDestroying||(s._handlePanelLayoutChange(),s._handleLayoutChange())}))}this._keyBindings=_.getInstance(this.actionService)},whenLayoutInitialized:function(){return this._layoutInitializedPromise},showOuterContainer:function(){this._outerContainer.domNode.classList.remove("hideAllChildren")},hideOuterContainer:function(){this._outerContainer.domNode.classList.add("hideAllChildren")},showMainContainer:function(){this._mainContainer.domNode.classList.remove("hideAllChildren")},hideMainContainer:function(){this._mainContainer.domNode.classList.add("hideAllChildren")},startup:function(){if(!this._started){var e,t=this;if(this.emit("starting"),this._started=!0,this.isDocked||(this._contextManager&&(this.tabGroupTags&&this._contextManager.register("TabGroups",{appId:this.id,contextId:"global",tabGroupTags:this.tabGroupTags}),this.contexts&&this.contexts.forEach((function(e){t._registerContextualElements(t.id,e.contextId,e)}))),this.showOuterContainer(),this._outerContainer.startup(),re.end("Toolstrip"),window.cefclient||setTimeout(()=>{this._changeAttrValue("windowBounds",J.getWindowBounds(window))},0)),this._restoreDocuments(),!this.isDocked&&this.parentContainer)for(e=0;e<this._documents.length;e++)if(this._documents[e].properties.get(G.IS_SHOWING)){this._documents[e].properties.set(G.IS_SELECTED,!0);break}this.product&&this.scope&&(this.toolstrip&&ne.enableLoggingFromNode(this.toolstrip.domNode,"toolstrip"),ne.logEvent({eventType:"opened",elementId:this.appId,elementType:"app"}),this.enableUsageOverlay&&b.isRunning()&&oe.enable(this.product,this.scope),this.watch(M.SELECTED_CHILD,(function(e,i,n){var o;if(n){var r=t.getChildProperties(n);r&&(o=r.documentType||r.panelId,r.documentId&&(o+=":"+r.documentId))}ne.setSelectedContext(o)}))),this.enableRemoteControl&&Z.enableAttach(this),this._createKeyBindings(),this.emit("started")}},getRootNode:function(){return this._outerContainer.domNode},shutdown:function(){var e,t=this;if(this.emit("stopping"),ne.stop(),this._peer&&(this._peer.destroy(),delete this._peer),this.isDocked)return Object.keys(this._panels).forEach((function(i){(e=t._panels[i].properties).isContextual=e.saveIsContextual,t.parentContainer.removePanel(i)})),this._saveDocuments(),this._getDocumentTypes().forEach((function(i){t.parentContainer._documentContainer.removeGroup(i),(e=t._getPropertiesForType(i)).tabGroupTags=e.saveTabGroupTags,e.panelIds=e.savePanelIds,t.parentContainer.unregisterDocumentType(i)})),this._actionIds&&this._actionIds.forEach((function(e){t.actionService.removeAction(e)})),this._toolstripComponentTags&&this._toolstripComponentTags.forEach((function(e){var i=t.uiBuilder.tagToId(e);i&&t.uiBuilder.destroy(i)})),delete this.parentContainer._dockedContainers[this.id],void this.emit("stopped");this.persistLayout&&this._saveLayout(),this._saveDocuments(),this.set("footer",null),this.destroyRecursive(),this.emit("stopped")},_getLastSelectedDocument:function(){return this.getDocuments().find(e=>e.widget===this.lastSelectedDocument)},_isPanelForDocument:function(e,t){return!!this._getPanelsForType(t).find(t=>t.widget===e)},addPanel:function(e,t,i,n){i&&!t&&(t=i.createProperties(this,n));var o={widget:e,properties:t||e,factory:i,state:n},r=o.properties.panelId;t=o.properties;var a=this;if(this.persistLayout&&this._assertPropertyDefined(o,"panelId"),!this._panels[r]){if(void 0===t.isMaximizable&&(t.isMaximizable=!0),v.assert("center"!==t.region,"Attempting to place panel: "+t.title+" in center. Only documents can appear there"),this._panels[r]=o,this.isDocked)t.saveIsContextual=t.isContextual,t.isContextual=!0,this.parentContainer.addPanel(e,t,i,n);else{t.qabControlToActionMap&&this._contextManager&&Object.keys(t.qabControlToActionMap).forEach((function(e){a._contextManager.register("QuickAccessAction",{appId:a.id,contextId:t.panelId,quickAccessControlTag:e,actionId:t.qabControlToActionMap[e]})}));const e="boolean"==typeof t.isOpen&&!1===t.isOpen&&!t.isProgramaticallyHidden;if(o.properties.isContextual){const e=this._getLastSelectedDocument();e&&this._isPanelForDocument(o.widget,e.properties.documentType)?this._addPanelToLayout(o):o.properties.isOpen=!1}else this._waitingForLayout||e||this._addPanelToLayout(o);o.watches=[o.properties.watch(G.IS_OPEN,(function(e,t,i){!a._restoringLayout&&i&&!1===t&&a._addPanelToLayout(o)})),o.properties.watch(G.IS_BUSY,(function(e,t,i){i!==t&&a._setPanelBusy(o,i)}))],this.reserveDocumentSpace||o.watches.push(o.properties.watch(G.REGION,(function(e,t,i){"bottom"===i&&a._documentContainer&&a._documentContainer.isEmpty()&&a._removeDocumentContainer()})))}this._setPanelBusy(o,o.properties.isBusy),this.emit(E.CHILD_ADDED,{childType:"panel",widget:o.widget,properties:o.properties}),o.widget&&(o.properties.widgetId=o.widget.id,t.updateInnerBounds&&t.updateInnerBounds())}},_setPanelBusy:function(e,t){!0===t&&e.widget.domNode?(e.placeholder=new O({containerType:O.PANEL}),e.placeholder.startup(),e.widget.domNode.appendChild(e.placeholder.domNode)):!1===t&&e.placeholder&&(e.widget.domNode.removeChild(e.placeholder.domNode),e.placeholder.destroy(),e.placeholder=null)},removePanel:function(e){var t,i,n=this,o=this.getChildProperties(e);if(o)return o.isRemoving=!0,this.isDocked?(delete this._panels[o.panelId],t=this.parentContainer.removePanel(e)):(o.set(G.IS_OPEN,!1),o.isProgramaticallyHidden=!0,(i=this._panels[o.panelId]).widget&&(delete this._childProperties[i.widget.id],t=i.widget),delete this._panels[o.panelId],i.watches.forEach((function(e){e.remove()})),o.qabControlToActionMap&&this._contextManager&&Object.keys(o.qabControlToActionMap).forEach((function(e){n._contextManager.unregister("QuickAccessAction",{appId:o.panelId,contextId:"global",quickAccessControlTag:e})})),this.emit(E.CHILD_REMOVED,{childType:"panel",widget:i.widget,properties:i.properties})),o.isRemoving=!1,t},registerDocumentType:function(e,t){var i=this;void 0===t.tabGroupTags&&(t.tabGroupTags=[]),t.plusActions&&this._convertStringsToActions(t.plusActions),this.registerDocumentGroup(Y.FACET,e,t,!1),this._addDocumentType(e),this._restoreDocuments(),this.parentContainer&&this.contentType===e&&this._outerContainer.own(t.watch("title",(function(e,t,n){i.set("title",n)})))},unregisterDocumentType:function(e){this.isDocked?this.parentContainer.unregisterDocumentType(e):(this._removeDocumentType(e),this._groupRegistry.unregister(Y.FACET,e))},registerDocumentGroup:function(e,t,i,n){i._autoUnregister=!1!==n,void 0===i.get(A.DOCUMENT_COUNT)&&i.set(A.DOCUMENT_COUNT,0),this._groupRegistry.register(e,t,i)},unregisterDocumentGroup:function(e,t){this._groupRegistry.unregister(e,t)},addDocument:function(e,i,n){var o={widget:e,properties:i=i||e,state:n},r=this;if(this.isDocked)return i.owningContainer=this,this._addToDocumentsList(o),void this.parentContainer.addDocument(e,i,n);i.set("isAddingDocument",!0),this._assertPropertyDefined(o,"documentType"),this._assertPropertyDefined(o,"title");var a,s=this._groupRegistry.getGroupPropertiesFromDocumentProperties(Y.FACET,i);if((v.assert(s,"DocumentTypeProperties haven't been registered for "+o.properties.documentType),o.factory=s.documentFactory,this._addToDocumentsList(o),!this.parentContainer)&&(i.isDocking||this._logDocumentOpen(i,!0),s.get(Y.IS_DOCKED)?!i.isDocking&&s.isUndockable()&&!1===i.get(Y.IS_DOCKED)&&(a=this._addDocumentUndocked(o)):a=this._addDocumentUndocked(o,i.documentType),a))return this._removeFromDocumentsList(o),void(e&&e.destroyRecursive());e||(e=this._createDocumentWidget(i,s,n),o.widget=e),this._childProperties[e.id]=i,this.parentContainer&&(this.parentContainer._undockedChildProperties[window.name][e.id]=i),e.windowName=window.name;var l=!this.parentContainer||this.contentType===i.documentType;s.isUndockable()&&i.setForWindow&&(this.parentContainer?this.contentType===X.SINGLE_DOCUMENT_CONTENT&&i.setForWindow(window,"_dock",t.hitch(this,"_dockDocument")):(i.setForWindow(window,"_undock",t.hitch(this,"_undockDocument")),i.isFullscreenAvailable()&&i.setForWindow(window,"_fullscreen",t.hitch(this,"_fullscreenDocumentHandler")))),i.actions&&this._convertStringsToActions(i.actions),i.__actionsWatch||(i.__actionsWatch=i.watch(G.ACTIONS,(e,t,i)=>{i&&this._convertStringsToActions(i)})),i.set(G.IS_DOCKED,l),this._saveDocuments(),i.__isOpenWatch||(i.__isOpenWatch=i.watch(G.IS_OPEN,(function(e,t,n){n||r._isDestroying||(t&&r._logDocumentOpen(i,!1),q.cleanup(i),r._saveDocuments())}))),i.__dockWatch||(i.__dockWatch=i.watch(G.IS_DOCKED,(function(t,n,o){o!==n&&(o?(l||r._dockDocument(),i.__undockedWindow&&delete i.__undockedWindow):l&&r._undockDocument(e))})));const c=i.enableDockControls;if(!i.__fullscreenWatch){let t=!0;i.__fullscreenWatch=i.watch(G.IS_FULLSCREEN,(n,o,r)=>{r!==o&&(r?!this.parentContainer&&s.isUndockable(e)?t=this._fullscreenDocument(e):(v.warn(`Document "${e.id}" must be undockable for full-screen mode`),i.set(G.IS_FULLSCREEN,!1)):t?(i.enableDockControls=c,this._exitFullscreenMode()):t=!0)})}if(this.activeFullscreenDocument){i.enableDockControls=!1;const e=window.parent.document;if(e.fullscreenElement){const n=()=>{e.removeEventListener("fullscreenChange",n),this._exitFullscreenModeHandler(i)};e.addEventListener("fullscreenchange",n),this.toolstrip.set("displayState","collapsed");const o=i.watch("isUndocking",()=>{o.unwatch(),this.set("isLeftCollapsed",!0),this.set("isRightCollapsed",!0),this.set("isBottomCollapsed",!0)});new y({class:"exitFullscreenButton",icon:"smallDock",showText:!1,description:this.title?t.replace(ae.exitFullscreenModeSomething,{placeholder:this.title}):ae.exitFullscreenMode}).placeAt(this.toolstrip.topRightContainer).on("click",()=>{e.removeEventListener("fullscreenChange",n),i.set(G.IS_FULLSCREEN,!1)})}else if(i.isUndocking){const e=i.watch("isUndocking",()=>{e.unwatch(),setTimeout(()=>{i.set(G.IS_FULLSCREEN,!1)},0)})}else setTimeout(()=>{i.set(G.IS_FULLSCREEN,!1)},0)}i instanceof G&&(i.set("origin_inherit",i.origin||s.origin||G.TOP_LEFT_ORIGIN),i.__originWatch||(s.__originWatch=s.watch(G.ORIGIN,(function(e,t,n){i.set("origin_inherit",s.origin||G.TOP_LEFT_ORIGIN)})),i.__originWatch=s.__originWatch),i.set("windowBounds_force",J.getWindowBounds(i.__undockedWindow||window,i.origin))),i.__boundsWatch||(i.__boundsWatch=i.watch(G.WINDOW_BOUNDS,(function(e,t,n){!i.__respondingToBoundsChange&&i.__undockedWindow&&(J.applyDefaultBounds(n,!0),J.convertBoundsToPixels(n),J.setWindowBounds(i.__undockedWindow,n,i.origin))}))),this.parentContainer&&this.contentType===X.SINGLE_DOCUMENT_CONTENT&&(i.__titleWatch=i.watch("title",(function(e,t,i){r.set("title",i)})),this._outerContainer.own(i.__titleWatch)),i.widgetId=e.id,s.__undockedWindow&&(i.__typeUndocked=!0),this._setupDocumentVisibility(e,i,s,n),!1!==i.get(G.IS_VISIBLE)?(this._addDocumentToLayout(o),i.isUndocking||i.isDocking||this._adjustDocumentCounts(i,1),this.emit(E.CHILD_ADDED,{childType:"document",widget:o.widget,properties:o.properties}),i.updateInnerBounds&&i.updateInnerBounds(),i.set("isAddingDocument",!1)):i.set("isAddingDocument",!1)},_setDocumentDockControls:function(e){if(this.parentContainer){if(this.contentType===X.SINGLE_DOCUMENT_CONTENT){var i=e.get("enableDockControls")?t.hitch(this,"_dockDocument"):void 0;e.setForWindow(window,"_undock",i)}}else{var n=e.get("enableDockControls")?t.hitch(this,"_undockDocument"):void 0;e.setForWindow(window,"_undock",n)}},_setDocumentTypeDockControls:function(e,i){i.setForWindow&&(X.isUndockedWindow()?this.parentContainer&&this.contentType===i.groupId&&i.isUndockable()&&i.setForWindow(window,"_dock",t.hitch(this,"_dockType")):!this.parentContainer&&i.owningContainerId&&i.owningContainerId!==this.id?i.setForWindow(window,"_undock",t.hitch(this,"_undockChildUI",i.owningContainerId)):!this.parentContainer&&i.isUndockable()&&i.setForWindow(window,"_undock",t.hitch(this,"_undockType",e)))},closeDocument:function(e){var t=this.getChildProperties(e);t&&t.set(G.IS_OPEN,!1)},loadActions:function(e){var t=this;this.actionService.loadActions(e),this.isDocked&&(this._actionIds||(this._actionIds=[]),e.forEach((function(e){t._actionIds.push(e.id)})))},addTabGroup:function(e,t){var n;if("string"==typeof e)n=e,this._saveToolstripComponentTag(n);else if(Array.isArray(e)){if(e.length>1)for(i=1;i<e.length;i++)this.createPopupsFromConfig(e[i]);n=e[0].tag,this.addTabGroupFromConfig(e[0],n)}else n=e.tag,this.addTabGroupFromConfig(e,n);t||(this.tabGroupTags?this.tabGroupTags.push(n):this.tabGroupTags=[n],this._contextManager.register("TabGroups",{appId:this.id,contextId:"global",tabGroupTags:this.tabGroupTags}))},addToolBar:function(e,t,i){var n=this;this._toolBars.length>0&&this.removeToolBar(this._toolBars[0].widget),i&&!t&&(t=i.createProperties(this)),i&&!e&&(e=i.createWidget(this,t)),t||(t=e);var o=function(t){t?(s.set(e.domNode,"display","block"),s.set(e.domNode,"height","27px")):(s.set(e.domNode,"display","none"),s.set(e.domNode,"height","0"))};o(!1!==t.isShowing),e.domNode.setAttribute("role","toolbar region"),t.ariaLabel&&e.domNode.setAttribute("aria-label",t.ariaLabel),t.region="top",t.layoutOrder=-1,this._mainContainer.addWithProperties(e,t);var r=[];r[0]=t.watch(G.IS_SHOWING,(function(e,t,i){o(i),n._mainContainer.layout()})),this._toolBars[0]={widget:e,properties:t,watches:r},this._childProperties[e.id]=e,this._selectionManager.addChild(e,t)},removeToolBar:function(e){this._toolBars.length>0&&(this._toolBars[0].widget===e||this._toolBars[0].properties.title===e)&&(this._mainContainer.removeChild(this._toolBars[0].widget),this._toolBars[0].watches[0].remove(),this._toolBars.length=0)},addStatusBar:function(e){var t;"string"==typeof e?(this.statusBarId=this.uiBuilder.tagToId(e),t=f.byId(this.statusBarId)):e.isInstanceOf&&e.isInstanceOf(R)?t=e:(this.uiBuilder.addStatusBarFromConfig(e,e.tag),this.statusBarId=this.uiBuilder.tagToId(e.tag),t=this.uiBuilder.widgetByTag(e.tag)),t.domNode.style.height="22px",this.set("footer",t)},addCloseApprover:function(e){this._closeApprovers.push(e)},removeCloseApprover:function(e){var t=this._closeApprovers.indexOf(e);t>=0&&this._closeApprovers.splice(t,1)},getRootUIContainer:function(){for(var e=this;e.parentContainer;)e=e.parentContainer;return e},getPanels:function(e){var t=this,i=[];return Object.keys(this._panels).forEach((function(n){var o=t._panels[n];e&&o.properties.region!==e||i.push({widget:o.widget,properties:o.properties})})),i},getDocuments:function(e){var t=[];return this._documents.forEach((function(i){e&&e!==i.properties.documentType||t.push({widget:i.widget,properties:i.properties})})),t},getChildProperties:function(e,t){if("string"==typeof e){var i=this._getChildInfo(e,t);if(i)return i.properties}return this._childProperties[e.id]},_getDocumentPropertiesFromAllWindows:function(e){return e.windowName in this._undockedChildProperties?this._undockedChildProperties[e.windowName][e.id]:this._childProperties[e.id]},getChildWidget:function(e,t){var i=this._getChildInfo(e,t);return i?i.widget:null},getDocumentTypes:function(){var e=this,t=[];return this._getDocumentTypes().forEach((function(i){t.push({type:i,properties:e._getPropertiesForType(i)})})),t},getDocumentTypeProperties:function(e){return this._getPropertiesForType(e)},own:function(e){this._outerContainer.own(e)},destroyRecursive:function(){var e=this;this._isDestroying=!0,this._documentContainer&&this._documentContainer.clear(),this._mnemonicsManager&&this._mnemonicsManager.destroy(),this._contextManager&&j.destroy(),this.uiBuilder&&V.destroyInstance(),this._focusManager&&this._focusManager.destroy(),Object.keys(this._panels).forEach((function(t){var i=e._panels[t].widget;e.removePanel(t),i&&i.destroyRecursive()})),this._getRegisteredDocumentTypes().forEach((function(t){e.parentContainer?e._removeDocumentType(t):e.unregisterDocumentType(t)})),this._outerContainer.destroyRecursive(),this.actionService.destroy(),this._keyBindings&&_.destroyInstance(),this.parentContainer&&delete this.parentContainer._undockedChildProperties[window.name],this._isDestroyed=!0},resetLayout:function(){this._initializeLayout()},createChildUI:function(e,t,i){void 0===i&&(i=X.shouldDockUI(e));var n=X.createPackingList(this);n.containerFactoryPath=t.modulePath,n.cssFiles=t.getCSSFiles(),n.parent=this,i?(n.isDocked=!0,X.buildContainer(ce,n)):X.spawnContainer(this,t.getPage()||this.undockedPage,X.CHILD_UI_CONTENT,n)},isChildContainer:function(){return!!this.parentContainer},getChildUIContainer:function(e){var t=this._dockedContainers[e];return t&&!t._isDestroyed?t:null},getRootSelector:function(){return".keyboardNavigation"},_getChildInfo:function(e,t){var i,n;if(!t){if("string"==typeof e&&(i=this._panels[e]))return i;for(n=0;n<this._panels.length;n++)if((i=this._panels[n]).properties.title===e||i.widget===e||i.properties===e)return i}for(n=0;n<this._documents.length;n++)if(!((i=this._documents[n]).properties.title!==e&&i.properties.documentId!==e&&i.widget.id!==e&&i.widget!==e&&i.properties!==e||t&&i.properties.documentType!==t))return i;return null},_getDocumentInfo:function(e){var t,i;for(t=0;t<this._documents.length;t++)if((i=this._documents[t]).widget===e)return i;return null},_getPropertiesForType:function(e){return this._groupRegistry.getProperties(Y.FACET,e)},_getDocumentTypes:function(){return this._documentTypes},_getRegisteredDocumentTypes:function(){return this._groupRegistry.getIds(Y.FACET)},_adjustDocumentCounts:function(e,t){var i=this.documentGroupingFacet,n=e[i];if(this._adjustCountsRecursive(e,i,t),n){var o=this._groupRegistry.getProperties(i,n),r=o.documentCount>0||this._documentContainer&&this._documentContainer.hasChildContainer(n);r!==o.get(A.IS_OPEN)&&o.set(A.IS_OPEN,r)}},_adjustCountsRecursive:function(e,t,i){var n=e[t];if(n){var o=this._groupRegistry.getProperties(t,n);o.set(A.DOCUMENT_COUNT,o.get(A.DOCUMENT_COUNT)+i),o._autoUnregister&&0===o.get(A.DOCUMENT_COUNT)&&this._groupRegistry.unregister(t,n),o.subGroupingFacet&&this._adjustCountsRecursive(e,o.subGroupingFacet,i)}},createPopupsFromConfig:function(e){var t=this;this.uiBuilder.createPopupsFromConfig(e),e.popups.forEach((function(e){t._saveToolstripComponentTag(e.tag)}))},addTabGroupFromConfig:function(e,t){this.uiBuilder.addTabGroupFromConfig(e,t),this._saveToolstripComponentTag(t)},_saveToolstripComponentTag:function(e){this.isDocked&&(this._toolstripComponentTags||(this._toolstripComponentTags=[]),this._toolstripComponentTags.push(e))},_addPanelToLayout:function(e){var t=e.properties;t.region=t.region||"left",e.widget||(e.widget=e.factory.createWidget(this,e.state)),t.actions&&this._convertStringsToActions(t.actions),t.watch(G.ACTIONS,(e,t,i)=>{i&&this._convertStringsToActions(i)}),this._childProperties[e.widget.id]=e.properties,e.properties!==e.widget?this._mainContainer.addWithProperties(e.widget,e.properties):this._mainContainer.addChild(e.widget),t.updateInnerBounds&&t.updateInnerBounds(),t.set(G.IS_OPEN,!0)},_addDocumentType:function(e){var i=this;if(!(this._documentTypes.indexOf(e)>=0)){this._documentTypes.push(e);var n=this._getPropertiesForType(e),o=this._pendingTypeProperties[e];if(o&&o.windowBounds&&(n.windowBounds=o.windowBounds),this.isDocked){n.saveTabGroupTags=n.tabGroupTags,this.tabGroupTags&&(n.tabGroupTags=n.tabGroupTags||[],n.tabGroupTags=this.tabGroupTags.concat(n.tabGroupTags)),n.savePanelIds=n.panelIds;var r=Object.keys(this._panels);return r.length>0&&(n.panelIds=r.concat(n.panelIds)),n.owningContainerId=this.id,void this.parentContainer._addDocumentType(e)}if(this._panelSetTitles[e]=n.title,this._registerContextualElements(e,"global",n),n.contexts&&this._contextManager&&n.contexts.forEach((function(t){this._registerContextualElements(e,t.contextId,t)}),this),n.qabControlToActionMap&&this._contextManager&&Object.keys(n.qabControlToActionMap).forEach((function(t){i._contextManager.register("QuickAccessAction",{appId:e,contextId:"global",quickAccessControlTag:t,actionId:n.qabControlToActionMap[t]})})),n.isUndockable()&&n.setForWindow&&(X.isUndockedWindow()?this.parentContainer&&this.contentType===n.groupId&&n.isUndockable()&&n.setForWindow(window,"_dock",t.hitch(this,"_dockType")):!this.parentContainer&&n.owningContainerId&&n.owningContainerId!==this.id?n.setForWindow(window,"_undock",t.hitch(this,"_undockChildUI",n.owningContainerId)):!this.parentContainer&&n.isUndockable()&&n.setForWindow(window,"_undock",t.hitch(this,"_undockType",e))),!this.parentContainer&&n.tabGroupFactories)for(var a in n.tabGroupFactories)this.uiBuilder.tagToId(a)||n.tabGroupFactories[a].createWidget(this,null,n);!this.parentContainer&&n.statusComponentFactory&&n.statusComponentFactory.createWidget(this,null,n);var s=n.get(Y.IS_DOCKED);n.__dockWatch=n.watch(Y.IS_DOCKED,(function(t,o,r){r!==o&&(r?(!s&&i.parentContainer&&i._dockType(),n.__undockedWindow&&delete n.__undockedWindow):s&&i._undockType(e))})),this._dockWatches[e]=n.__dockWatch,n.__boundsWatch=n.watch(G.WINDOW_BOUNDS,(function(t,i,o){var r=X._getWindowForType(e);r&&!n.__respondingToBoundsChange&&(J.applyDefaultBounds(o,!0),J.convertBoundsToPixels(o),J.setWindowBounds(r,o))})),this.emit(E.CHILD_ADDED,{childType:"documentType",typeId:e,properties:n})}},_setupDocumentVisibility:function(e,t,i,n){var o=this;t.__visibilityWatch||(t.__visibilityWatch=t.watch(G.IS_VISIBLE,(function(i,r,a){if(a!==r&&(void 0!==r||!0!==a))if(a)o.addDocument(e,t,n);else{var s=t.get(G.DESTROY_ON_CLOSE);t.set(G.DESTROY_ON_CLOSE,!1),t.set(G.IS_OPEN,!1),t.set(G.DESTROY_ON_CLOSE,s)}})))},_createDocumentWidget:function(e,t,i){var n;return v.assert(t.documentFactory,"Must supply documentFactory if widget not supplied"),B.loadFiles(t.documentFactory.getCssFiles()).then(()=>{n&&n.resize&&n.resize()}),n=t.documentFactory.createWidget(this,i,e)},_registerContextualElements:function(e,t,i){this._contextManager&&(i.tabGroupTags&&this._contextManager.register("TabGroups",{appId:e,contextId:t,tabGroupTags:i.tabGroupTags}),i.statusComponentTags&&this._contextManager.register("StatusComponents",{appId:e,contextId:t,statusComponentTags:i.statusComponentTags}),i.panelIds&&this._contextManager.register("Panels",{appId:e,contextId:t,panelIds:i.panelIds}))},_removeDocumentType:function(e){var t=this,i=this._documentTypes.indexOf(e);if(!(i<0)){this._documentTypes.splice(i,1);var n=this._getPropertiesForType(e);delete this._panelSetTitles[e],n&&(n.tabGroupTags&&this._contextManager&&this._contextManager.unregister("TabGroups",{appId:e,contextId:"global"}),n.qabControlToActionMap&&this._contextManager&&Object.keys(n.qabControlToActionMap).forEach((function(i){t._contextManager.unregister("QuickAccessAction",{appId:e,contextId:"global",quickAccessControlTag:i})})),n.contexts&&this._contextManager&&n.contexts.forEach((function(i){i.tabGroupTags&&t._contextManager.unregister("TabGroups",{appId:e,contextId:i.contextId}),i.statusComponentTags&&t._contextManager.unregister("StatusComponents",{appId:e,contextId:i.contextId}),i.panelIds&&t._contextManager.unregister("Panels",{appId:e,contextId:i.contextId})}),this),this._dockWatches[e]&&(this._dockWatches[e].remove(),this._dockWatches[e]===n.__dockWatch&&delete n.__dockWatch,delete this._dockWatches[e]),n.__fullscreenWatch&&(n.__fullscreenWatch.remove(),delete n.__fullscreenWatch),n.__originWatch&&(n.__originWatch.remove(),delete n.__originWatch),n.__boundsWatch&&(n.__boundsWatch.remove(),delete n.__boundsWatch),n.__undockedWindow&&delete n.__undockedWindow,this.emit(E.CHILD_REMOVED,{childType:"documentType",typeId:e,properties:n}))}},_addDocumentToLayout:function(e){this._documentContainer||this._addDocumentContainer(),e.properties!==e.widget?this._documentContainer.addWithProperties(e.widget,e.properties):this._documentContainer.addChild(e.widget),e.properties.set(G.IS_OPEN,!0)},_addToLayout:function(e,t){var i=this._panels[e];i&&(i.properties.setId||(i.properties.setId=t),i.properties.set(G.IS_OPEN,!0))},_removeFromLayout:function(e){var t=this._panels[e];t&&(t.properties.set(G.IS_OPEN,!1),t.properties.isProgramaticallyHidden=!0)},_getContextualState:function(e){return this._mainContainer.getState(e)},_setContextualState:function(e,t){this._mainContainer.setState(e,t,!0)},getOccupiedBorders:function(){return this._mainContainer.getOccupiedBorders()},_assertPropertyDefined:function(e,t){v.assert(e.properties[t],t+" not specified")},_convertStringsToActions:function(e){var t,i;for(t=0;t<e.length;t++)"string"==typeof(i=e[t])?this.actionService.getAction(i)&&(e[t]=this._createLazyAction(i)):i instanceof Array&&this._convertStringsToActions(i)},_createLazyAction:function(e){var t=this.actionService,i=this.actionService.getAction(e);return{text:i.text.replace("\n"," "),description:i.description,itemType:i.itemType,getEnabled:function(){return t.getAction(e).enabled},getSelected:function(){return t.getAction(e).selected},setEnabled:function(i){t.updateAction(e,{enabled:i})},setSelected:function(i){t.updateAction(e,{selected:i})},callback:function(i){i&&i.view?i.view.DockingManager.getContainer().actionService.getAction(e).callback(arguments):t.getAction(e).callback(arguments)}}},_addDocumentContainer:function(){if(!this._documentContainer){var e=this,i={id:this.id+"DocumentContainer",groupRegistry:this._groupRegistry,groupingFacet:this.documentGroupingFacet,showSingleDocumentTab:this.showSingleDocumentTab,offerMaximizeButton:this.offerDocumentMaximizeButton,userTilingEnabled:!1!==this.userDocumentTilingEnabled,groupTabsByType:this.groupDocumentsByType,selectionManager:this._selectionManager};this._documentContainerState&&this._documentContainerState.tabPosition&&(i.tabPosition=this._documentContainerState.tabPosition),this._documentContainerState&&this._documentContainerState.placeHolderText&&(i.placeHolderText=this._documentContainerState.placeHolderText);var n=new w(i);this._documentContainerState&&(n.setState(this._documentContainerState),delete this._documentContainerState);i={region:"center"};this.enableCenterCollapse&&(i.getCollapsedWidget=function(t){var i=n.get(w.TAB_POSITION),o=new S({id:n.id+"Bar",documentContainer:n,region:t,buttonOrientation:"left"===i||"right"===i?"horizontal":"vertical"});return o.on(E.EXPAND_ALL,(function(){e._mainContainer.restore("center",t)})),o.on(E.CLOSE,(function(t){e._documentContainer.closeChild?e._documentContainer.closeChild(t.widget,!1,!0):e._documentContainer.closeDocument&&e._documentContainer.closeDocument(t.widget,!1)})),o},i.getCollapsedSize=function(){var e={w:24,h:24},t=n.get(w.TAB_POSITION);return"left"!==t&&"right"!==t||(e.w=110),e}),n._addingToDOM=!0,this._mainContainer.addWithProperties(n,t.mixin(new d,i)),delete n._addingToDOM,this._documentContainer=n,this._documentContainerActions.setContainer(n),this._contextDriver&&this._contextDriver.setDocumentContainer(n),this._documentContainerPropertyDelegator.setDocumentContainer(n),this._setDocumentContainerBusy(this.isDocumentContainerBusy),n.on(E.CHILD_ADDED,(function(t,i){!i.get(G.IS_SELECTED)&&e.lastSelectedDocument&&o.isDescendant(e.lastSelectedDocument.domNode,n.domNode)&&n.getSelectedDocument()||e.set("lastSelectedDocument",t),i.uiContainerSelectWatch=i.watch(G.IS_SELECTED,(function(i,n,o){o&&e.set("lastSelectedDocument",t)})),i.uiContainerShowWatch=i.watch(G.IS_SHOWING,(function(i,o,r){if(!r&&t===e.lastSelectedDocument&&!n.isRestoringState()&&!n.isChangingTiling()){var a=n.getShowingDocuments();a.length>0&&e.set("lastSelectedDocument",a[0])}}))})),n.on(E.CHILD_REMOVED,(function(t,i){var o=e._getDocumentInfo(t);if(i.get("isDocking")||i.get("isUndocking")||!1!==i.get(G.IS_VISIBLE)){let i=e._documents.indexOf(o);if(e._documents.splice(i,1),delete e._childProperties[t.id],o.properties.owningContainer&&o.properties.owningContainer!==e){var r=o.properties.owningContainer._documents;i=r.indexOf(o),r.splice(i,1)}e._removeDocumentWatches(o.properties)}e.parentContainer&&delete e.parentContainer._undockedChildProperties[window.name][t.id],i.isUndocking||i.isDocking||e._adjustDocumentCounts(i,-1),i.uiContainerSelectWatch.unwatch(),i.uiContainerShowWatch.unwatch();var a=n.getShowingDocuments();if(t===e.get("lastSelectedDocument")&&(a.length>0?e.set("lastSelectedDocument",a[0]):e.set("lastSelectedDocument",null)),i.set(G.IS_SELECTED,!1),n.isEmpty()&&!e._isDestroying&&!e._isDocking)if(e.parentContainer&&e.contentType!==X.CHILD_UI_CONTENT)e._hasInvisibleDocuments()?i.setWindowVisibility(!1):window.close();else{var s,l=e._selectionManager.get(M.SELECTED_CHILD);if(!e.reserveDocumentSpace&&e._mainContainer.hasPanelInRegion("bottom")){var c=e._mainContainer.animationEnabled;e._mainContainer.animationEnabled=!1,e._mainContainer._getIsBottomCollapsedAttr()&&e._mainContainer._setIsBottomCollapsedAttr(!1),e._removeDocumentContainer(),e._mainContainer.animationEnabled=c}if(!e.reserveDocumentSpace&&e._mainContainer.isExpanded("center")&&e._mainContainer.restore("center"),l)e._documentContainer||setTimeout((function(){e._selectionManager.setSelected(l,!0)}),0);else if(e._documentContainer||(s=e._mainContainer.getChildInRegion("bottom")),s||(s=e._mainContainer.nextChild(e._documentContainer,!0)),s&&s.nextChild){var d=s.nextChild(null,!0);d&&setTimeout((function(){e._selectionManager.setSelected(d,!0)}),0)}}e.emit(E.CHILD_REMOVED,{childType:"document",widget:o.widget,properties:o.properties})})),n.on(E.STATE_CHANGED,(function(){e._handleDocumentLayoutChange(),e._handleLayoutChange()})),this._mainContainerStateChanged()}},_removeDocumentContainer:function(){this._documentContainer&&(this._documentContainer.clear(),this._documentContainerState=this._documentContainer.getState(),this._mainContainer.removeChild(this._documentContainer),this._documentContainer.destroyRecursive(),delete this._documentContainer,this._documentContainerActions.setContainer(null),this._contextDriver&&this._contextDriver.setDocumentContainer(null))},_mainContainerStateChanged:function(){if(this._documentContainer){var e=this._mainContainer.isExpanded("center");e!=this._isDocumentContainerExpanded&&(this._isDocumentContainerExpanded=e,this._documentContainer.ancestorMaximizeUpdated(e))}},_initializeLayout:function(){var e=this;this.persistLayout&&!this.cleanStart?(this._waitingForLayout=!0,this.sessionDataService.retrieve(this._layoutKey).then((function(t){e._restoreLayout(t,!0),e._waitingForLayout=!1,e.sessionDataService.retrieve(e._documentsKey).then((function(t){t.length>0&&!0===e.isDocumentContainerBusy&&e._addDocumentContainer(),e.persistDocuments&&(e._documentsToRestore=t,e._documentToRestoreCount=t.length,e._errorDuringDocumentRestore=!1,e._restoreDocuments())}),(function(){})),e._initialShow()}),(function(){e._restoreLayout(e.defaultLayout),e._initialShow(),e._waitingForLayout=!1}))):(this.defaultLayout&&this._restoreLayout(this.defaultLayout),this._initialShow())},_setDocumentContainerBusy:function(e){this._documentContainer&&(!0===e?(this._documentContainerPlaceholder=new O({containerType:O.DOCUMENT}),this._documentContainerPlaceholder.startup(),this._documentContainer.domNode.appendChild(this._documentContainerPlaceholder.domNode)):!1===e&&this._documentContainerPlaceholder&&(this._documentContainer.domNode.removeChild(this._documentContainerPlaceholder.domNode),this._documentContainerPlaceholder.destroy(),this._documentContainerPlaceholder=null))},_isDocumentContainerBusySetter:function(e){this.isDocumentContainerBusy!==e&&(this._setDocumentContainerBusy(e),this.isDocumentContainerBusy=e)},_isToolstripBusySetter:function(e){this.isToolstripBusy!==e&&(this._setToolstripBusy(e),this.isToolstripBusy=e)},_setToolstripBusy:function(e){this.toolstrip&&(!0===e?(this._toolstripPlaceholder=new O({containerType:O.TOOLSTRIP}),this._toolstripPlaceholder.startup(),this.toolstrip.domNode.appendChild(this._toolstripPlaceholder.domNode)):!1===e&&this._toolstripPlaceholder&&(this.toolstrip.domNode.removeChild(this._toolstripPlaceholder.domNode),this.toolstrip.resize(),this._toolstripPlaceholder.destroy(),this._toolstripPlaceholder=null))},_initialShow:function(){this._layoutInitializedPromise.resolve(),this.automaticallyShowWindow&&window.cefclient&&(this.windowBounds&&!this.windowBoundsModified&&this.set("windowBounds",this.windowBounds),J.bringToFront(window))},_saveLayout:function(){if(this.persistLayout&&!this._restoringLayout&&!this._waitingForLayout)try{this.sessionDataService.save(this._layoutKey,this._layoutGetter(!0))}catch(e){}},_restoreLayout:function(e,t){this._restoringLayout=!0;var i=this;if(e&&this._canRestoreLayout(e.majorVersion,e.minorVersion)){Object.keys(this._panels).forEach((function(e){var t=i._panels[e];t.widget&&N.saveScrollPosition(t.widget,t.properties)})),e.windowBounds&&!this.windowBoundsModified&&(this.set("windowBounds",e.windowBounds),this.windowBoundsModified=!0),this.hasToolstrip&&null!=e.toolstripCollapsed&&this.set("isToolstripCollapsed",e.toolstripCollapsed),t&&e.types&&Object.keys(e.types).forEach((function(t){var n=e.types[t],o=i._getPropertiesForType(t);o?n.windowBounds&&(o.windowBounds=n.windowBounds):i._pendingTypeProperties[t]=n})),this._contextManager&&this._contextManager._panelManager.setContextualStates(e.contexts);var n=e.panelLayout||e.borders||e.main;this._mainContainer.setState(n);var o=e.documentLayout||e.tiling||e.center;o&&(this._documentContainer?this._documentContainer.setState(o):(this._documentContainerState=o,this._documentContainerPropertyDelegator.setDocumentContainerState(this._documentContainerState))),Object.keys(this._panels).forEach((function(t){var i=this._panels[t],o=i.properties;o.get(G.IS_OPEN)||o.isContextual||e&&!D.stateIncludes(n,o.panelId)||this._addPanelToLayout(i)}),this),this._documentContainer||n.bottom||this._mainContainer.hasPanelInRegion("bottom")||this._addDocumentContainer(),Object.keys(i._panels).forEach((function(e){var t=i._panels[e];t.widget&&N.restoreScrollPosition(t.widget,t.properties)})),this._restoringLayout=!1}},_saveDocuments:function(){if(!this._restoringDocuments&&this.persistDocuments){var e=[];this._documents.forEach((function(t){var i,n;!1!==t.properties.get(G.IS_VISIBLE)&&!1===t.properties.get(G.IS_OPEN)||(t.factory&&(i=t.factory.modulePath,n=t.factory.getState(t.widget,t.properties)),e.push({title:t.properties.title||"untitled",documentType:t.properties.documentType,state:n,factoryPath:i}))})),this.sessionDataService.save(this._documentsKey,e)}},_restoreDocuments:function(){var e=this;if(this.persistDocuments&&this._documentsToRestore){this._restoringDocuments=!0;var t=[],i=function(){e._errorDuringDocumentRestore&&0===e._documentToRestoreCount&&e._documentContainer&&e._documentContainer.endStateRestore()};this._documentsToRestore.forEach((function(n){e._started&&e._getPropertiesForType(n.documentType)?e.dynamicLoader.load([n.factoryPath],(function(t){var o=new t;u(o.createProperties(e,n.state),(function(t){u(o.createWidget(e,n.state,t),(function(n){e._documentToRestoreCount--,n?e.addDocument(n,t):e._errorDuringDocumentRestore=!0,i()}),(function(t){e._documentToRestoreCount--,e._errorDuringDocumentRestore=!0,i()}))}))})):t.push(n)})),t.length>0?this._documentsToRestore=t:delete this._documentsToRestore,this._restoringDocuments=!1}},_canRestoreLayout:function(e,t){return e<=2&&t===this.minorVersion},_titleSetter:function(e){this.title=e,window.cefclient?window.cefclient.sendMessage("setTitle",[this.title]):(e=document.getElementsByTagName("title")[0])&&(e.textContent=this.title)},_titleGetter:function(){var e=document.getElementsByTagName("title")[0];if(e)return this.title=e.textContent,this.title},_layoutGetter:function(e){if("layout"===this._settingPropertyName)return{};var t=this,i={majorVersion:2,minorVersion:this.minorVersion,panelLayout:this._mainContainer.getState(),documentLayout:this._documentContainer?this._documentContainer.getState(e):this._documentContainerState};i.documentLayout||delete i.documentLayout;var n=this.get("windowBounds");return n&&(i.windowBounds=n),this.hasToolstrip&&(i.toolstripCollapsed=this.get("isToolstripCollapsed")),i.types={},this._documentTypes.forEach((function(e){var n=t._getPropertiesForType(e);n.windowBounds&&(i.types[e]={windowBounds:n.windowBounds})})),0===Object.keys(i.types).length&&delete i.types,e&&this._contextManager&&(i.contexts=this._contextManager._panelManager.getContextualStates()),i},_layoutSetter:function(e){"string"==typeof e&&(e=JSON.parse(e)),this._restoreLayout(e),this._saveLayout()},_useWebpackGetter:function(){return this.useWebpack},_useWebpackSetter:function(){v.error('The "useWebpack" property should not be changed at runtime.')},_panelLayoutGetter:function(){return"panelLayout"===this._settingPropertyName?{}:this._mainContainer.getState()},_panelLayoutSetter:function(e){var t={majorVersion:2,minorVersion:this.minorVersion,panelLayout:e};this._layoutSetter(t)},_documentLayoutGetter:function(){return"documentLayout"===this._settingPropertyName?{}:this._documentContainer?this._documentContainer.getState():this._documentContainerState||{}},_documentLayoutSetter:function(e){var t=ce.validateDocumentLayout(e);t.isValid?this._documentContainer?this._documentContainer.setState(e):this._documentContainerState=e:v.error(t.failureMessage)},_footerGetter:function(){return this.isDocked?this.parentContainer._footerGetter():this.footerSpansFullWidth?this._outerContainer.getChildInRegion("bottom"):this._mainContainer.getFooter()},_footerSetter:function(e){this.isDocked||(this.footerSpansFullWidth?e?this._outerContainer.addWithProperties(e,{region:"bottom"}):this._outerContainer.removeChildInRegion("bottom"):this._mainContainer.setFooter(e))},_windowBoundsSetter:function(e){J.applyDefaultBounds(e),J.convertBoundsToPixels(e),J.setWindowBounds(window,e)},_isVisibleSetter:function(e){window.cefclient&&e!==this.get("isVisible")&&(window.cefclient.sendMessage("setVisible",[e]),this._changeAttrValue("isVisible",e))},_isBusySetter:function(e){if(this.isBusy!==e){if(e){if(!this._busyOverlay){var t=a.create("div",{id:"mwFullBusyOverlay"},document.body);this._busyOverlay=new te(te.SIZE.SMALL),this._busyOverlay.set("target",t)}this._busyOverlay.show()}else this._busyOverlay&&this._busyOverlay.hide();this._changeAttrValue("isBusy",e)}},_isToolstripCollapsedGetter:function(){return this.uiBuilder.get(this._toolstripId,"displayState")!==k.EXPANDED},_isToolstripCollapsedSetter:function(e){this.uiBuilder.set(this._toolstripId,"displayState",e?k.COLLAPSED:k.EXPANDED)},_selectedToolstripTabGetter:function(){var e=this.toolstrip.get("selectedTab");if(!e){var t=this.getToolstripTabs();t.length>0&&(e=t[0].id)}return e?this._getToolstripTabFromId(e):null},_selectedToolstripTabSetter:function(e){var t,i,n=e.id;if(!n)if(e.tag)n=this.uiBuilder.tagToId(e.tag);else if(e.title)for(i=this.getToolstripTabs(),t=0;t<i.length&&!n;t++)i[t].title===e.title&&(n=i[t].id);n&&this.uiBuilder.set(this._toolstripId,"selectedTab",n)},_handleToolstripPropertyChange:function(e){if("displayState"===e.property){var t=e.oldValue!==k.EXPANDED,i=e.newValue!==k.EXPANDED;t!==i&&(this.notifyStateWatchers("isToolstripCollapsed",t,i),ne.logEvent({eventType:i?"minimized":"restored",elementId:"toolstrip",elementType:"toolstrip"}),this._handleLayoutChange())}},_handleToolstripSelectedTabChange:function(e,t,i){var n=this._getToolstripTabFromId(t),o=this._getToolstripTabFromId(i);this.notifyStateWatchers("selectedToolstripTab",n,o)},getToolstripTabs:function(){var e=this,t=[];return this.uiBuilder.getChildrenIds(this._toolstripId).forEach((function(i){e.uiBuilder.getChildrenIds(i).forEach((function(i){t.push({id:i,tag:e.uiBuilder.get(i,"tag"),title:e.uiBuilder.get(i,"title")})}))})),t},_getToolstripTabFromId:function(e){var t;return e&&(t={id:e,tag:this.uiBuilder.get(e,"tag"),title:this.uiBuilder.get(e,"title")}),t},_handleLayoutChange:function(){if(this.persistLayout&&!this._isSavePending){var e=this;this._isSavePending=!0,setTimeout((function(){e._saveLayout(),e._isSavePending=!1}),0)}this.notifyStateWatchers("layout",{},t.hitch(this,"_layoutGetter"),0)},_handlePanelLayoutChange:function(){this.notifyStateWatchers("panelLayout",{},t.hitch(this,"_panelLayoutGetter"),0)},_handleDocumentLayoutChange:function(){this.notifyStateWatchers("documentLayout",{},t.hitch(this,"_documentLayoutGetter"),0)},set:function(e,t){if(e===M.SELECTED_CHILD&&"string"==typeof t){var i=this._getChildInfo(t);i&&(t=i.widget)}var n=this._propertyDelegates[e];n?n.set(e,t):(this._settingPropertyName=e,this.inherited(arguments),delete this._settingPropertyName)},_createDocumentContainerPropertyDelegator:function(e){var i=this,n=t.mixin(new d,{get:function(e){return i._documentContainer?i._documentContainer.get(e):i._documentContainerState?i._documentContainerState[e]:void 0},set:function(e,t){i._documentContainer?i._documentContainer.set(e,t):(i._documentContainerState||(i._documentContainerState={}),i._documentContainerState[e]=t,n._changeAttrValue(e,t))},setDocumentContainer:function(e){if(e){var t=function(e,t,i){n._changeAttrValue(e,i)};e.own(e.watch(w.TAB_POSITION,t)),e.own(e.watch(w.ARRANGEMENT,t)),e.own(e.watch(w.GRID_SIZE,t)),e.own(e.watch(w.ROW_WEIGHTS,t)),e.own(e.watch(w.COLUMN_WEIGHTS,t)),e.own(e.watch(w.TILE_COVERAGE,t)),e.own(e.watch(w.PLACE_HOLDER_TEXT,t))}},setDocumentContainerState:function(e){e&&(n._changeAttrValue(w.TAB_POSITION,e[w.TAB_POSITION]),n._changeAttrValue(w.ARRANGEMENT,e[w.ARRANGEMENT]),n._changeAttrValue(w.GRID_SIZE,e[w.GRID_SIZE]),n._changeAttrValue(w.ROW_WEIGHTS,e[w.ROW_WEIGHTS]),n._changeAttrValue(w.COLUMN_WEIGHTS,e[w.COLUMN_WEIGHTS]),n._changeAttrValue(w.TILE_COVERAGE,e[w.TILE_COVERAGE]),n._changeAttrValue(w.PLACE_HOLDER_TEXT,e[w.PLACE_HOLDER_TEXT]))}});return e.documentLayout&&(this._documentContainerState=e.documentLayout),e.tabPosition&&n.set(w.TAB_POSITION,e.tabPosition),e.gridSize&&n.set(w.GRID_SIZE,e.gridSize),e.rowWeights&&n.set(w.ROW_WEIGHTS,e.rowWeights),e.columnWeights&&n.set(w.COLUMN_WEIGHTS,e.columnWeights),e.tileCoverage&&n.set(w.TILE_COVERAGE,e.tileCoverage),e.placeHolderText&&n.set(w.PLACE_HOLDER_TEXT,e.placeHolderText),n},get:function(e){var t=this._propertyDelegates[e];return t?t.get(e):this.inherited(arguments)},watch:function(e,t){var i=this;if(t||"function"!=typeof e){var n=this._propertyDelegates[e];return n?n.watch(e,t):this.inherited(arguments)}var o=[];t=e,Object.keys(this._propertyDelegates).forEach((function(e){o.push(i._propertyDelegates[e].watch(e,t))})),o.push(this.inherited(arguments));var r={};return r.unwatch=r.remove=function(){o.forEach((function(e){e.remove()})),o.length=0},r},_undockType:function(e,t){var i,n,o=!1,r=this._getPropertiesForType(e);if(r.isUndocking)return o;if(r.set("isUndocking",!0),t)for((n=[]).length=t.length,i=0;i<n.length;i++)n[i]=this._getDocumentInfo(t[i]);else n=this._getDocumentsForType(e);var a={panels:this._getPanelsForType(e),types:[e],documents:n};if(0===a.documents.length)o=!0;else{a.documents.forEach((function(e){e.properties.set("isDocking",!0)}));var s=X.createPackingList(this,a,!0);s.title=r.title,s.parent=this,s.contentType=e;try{var l=X.spawnContainer(this,this.undockedPage,e,s,r.windowBounds);if(l&&(J.addWindowBoundsListener(l,(function(e){r.__respondingToBoundsChange=!0,r._changeAttrValue("windowBounds",e),r.__respondingToBoundsChange=!1})),r.__undockedWindow=l),this._documentContainer){const o=r.groupId;if(s.documentContainerState=this._documentContainer.getState(!1,o),t)for(i=0;i<n.length;i++)this._documentContainer.removeChild(t[i]);else this._documentContainer.removeGroup(e)}r.set(Y.IS_DOCKED,!1),this._removeDocumentWatches(r),o=!0}catch(e){v.warn(e)}}return r.isUndocking=!1,o},_fullscreenDocument:function(e){const t=this._getDocumentInfo(e),{properties:i}=t;if(this._fullscreenElement)return v.error(`A document is already in full-screen mode "${this.activeFullscreenDocument.id}"`),i.set(G.IS_FULLSCREEN,!1),!1;this._fullscreenElement=window.document.createElement("iframe"),this._fullscreenElement.id=this.appId+"_fullscreen",this._fullscreenElement.allow="fullscreen",window.document.body.appendChild(this._fullscreenElement);return this._fullscreenElement.requestFullscreen().then(()=>{this._undockDocument(e)}).catch(e=>{v.error(e),this._fullscreenElement.remove(),this._fullscreenElement=null,i.set(G.IS_FULLSCREEN,!1)}),!0},_fullscreenDocumentHandler:function(e){this._getDocumentInfo(e).properties.set(G.IS_FULLSCREEN,!0)},_undockDocument:function(e){var t=!1,i=this._getDocumentInfo(e),n=!1;if(!i)return t;var o=i.properties;this._removeDocumentWatches(i.properties);var r=o.documentType;o.isUndocking=!0;var a={panels:this._getPanelsForType(r),types:[r],documents:[i]};!1===o.get(G.IS_DOCKED)&&(n=!0);var s=X.createPackingList(this,a,n);s.title=o.title,s.parent=this,s.contentType=X.SINGLE_DOCUMENT_CONTENT,s.activeFullscreenDocument=!!this._fullscreenElement;try{var l=X.spawnContainer(this,this.undockedPage,X.SINGLE_DOCUMENT_CONTENT,s,o.windowBounds,this._fullscreenElement);o.__undockedWindow=l,this._documentContainer&&e&&this._documentContainer.removeChild(e),J.addWindowBoundsListener(l,(function(e){o.__respondingToBoundsChange=!0,o._changeAttrValue("windowBounds",e),o.__respondingToBoundsChange=!1})),t=!0}catch(e){v.warn(e),o.isUndocking=!1}return t},_undockChildUI:function(e){var t=this;this._dockedContainers[e].shutdown(),this.dynamicLoader.load([X.getUIFactoryPath(e)],(function(i){t.createChildUI(e,new i,!1)}))},_addDocumentUndocked:function(e,t){var i=!1;if(t){var n=this._getPropertiesForType(t),o={panels:this._getPanelsForType(t),types:[t],documents:[e]},r=X.createPackingList(this,o,!0);r.title=n.title,r.parent=this,r.contentType=t;try{X.sendToUndockedContainer(this,this.undockedPage,t,r),i=!0}catch(e){v.warn(e)}return i}return this._undockDocument(e.widget)},_getPanelsForType:function(e){var t=this,i=this._getPropertiesForType(e),n=[];i.panelIds&&(n=n.concat(i.panelIds)),i.contexts&&i.contexts.forEach((function(e){e.panelIds&&e.panelIds.forEach((function(e){n.indexOf(e)<0&&n.push(e)}))}));var o=[];return n.forEach((function(e){o.push(t._panels[e])})),o},_getDocumentsForType:function(e){var t=[];return this._documents.forEach((function(i){i.properties.documentType===e&&t.push(i)})),t},_exitFullscreenMode:function(){if(!this.activeFullscreenDocument||this._isExitingFullscreen)return;this._isExitingFullscreen=!0;const e=window.parent.document;e.fullscreenElement&&e.exitFullscreen(),this._dockDocument(),this.parentContainer._fullscreenElement.remove(),delete this.parentContainer._fullscreenElement,this.parentContainer._fullscreenElement=null,this.activeFullscreenDocument=void 0,this._isExitingFullscreen=!1},_exitFullscreenModeHandler:function(e){window.parent.document.fullscreenElement||e.set(G.IS_FULLSCREEN,!1)},_dockDocument:function(){this._dock(!1)},_dockType:function(){this._dock(!0)},_dock:function(e){if(!this._isDocking){this._isDocking=!0;var t=this;if(this.contentType===X.CHILD_UI_CONTENT)return this.shutdown(),window.close(),void this.dynamicLoader.load([X.getUIFactoryPath(this.id)],(function(e){t.parentContainer.createChildUI(t.id,new e,!0)}));var i={panels:this._getAllPanels(),types:this._getDocumentTypes(),documents:this._getAllDocuments()};i.documents.forEach((function(e){e.properties.__undockedWindow&&delete e.properties.__undockedWindow,t._removeDocumentWatches(e.properties)})),e||this.contentType!==X.SINGLE_DOCUMENT_CONTENT||i.documents&&i.documents[0]&&i.documents[0].properties&&!0===i.documents[0].properties.get(G.IS_DOCKED)&&(e=!0),i.documents.forEach(e=>{e.properties&&e.properties.set("isDocking",!0)});var n=X.createPackingList(this,i,e);n.parent=this,n.contentType=this.contentType,this._documentContainer&&(this.contentType!==X.SINGLE_DOCUMENT_CONTENT&&(n.documentContainerState=this._documentContainer.getState()),this._documentContainer.removeAll()),this._documents=[],this._getDocumentTypes().forEach((function(e){t._removeDocumentType(e)})),X.returnToOriginalContainer(t,n),this.destroyRecursive(),window.close()}},_getAllPanels:function(){var e=this,t=[];return Object.keys(this._panels).forEach((function(i){t.push(e._panels[i])})),t},_getAllDocuments:function(){var e,t=[];for(document.length=this._documents.length,e=0;e<this._documents.length;e++)t[e]=this._documents[e];return t},_hasInvisibleDocuments:function(){return this._getInvisibleDocuments().length>0},_getInvisibleDocuments:function(){return this._documents.filter(e=>!1===e.properties.get(G.IS_VISIBLE))},_getIndexInDocumentList:function(e){return this._documents.findIndex(t=>t.widget===e.widget)},_addToDocumentsList:function(e){const t=this._getIndexInDocumentList(e);t>-1?this._documents[t]=e:this._documents.push(e)},_removeFromDocumentsList:function(e){const t=this._getIndexInDocumentList(e);t>-1&&this._documents.splice(t,1)},_removeDocumentWatches:function(e){["__dockWatch","__fullscreenWatch","__visibilityWatch","__isOpenWatch","__originWatch","__boundsWatch","__titleWatch","__actionsWatch"].forEach(t=>{e[t]&&(e[t].remove(),delete e[t])})},close:function(e){e?this._doClose():this._canCloseExecuted||(this._canCloseExecuted=!0,this._canClose().then(this._doClose.bind(this)).always(()=>{this._canCloseExecuted=!1}))},isClosing:function(){return this._isClosing},_canClose:function(){var e=this._closeApprovers.slice(0);return this._documents.forEach((function(i){i.properties.canClose&&e.push(t.hitch(i.properties,"canClose"))})),ie(e)},_doClose:function(){this._isClosing||(this._isClosing=!0,z.closeChildren(),ne.logEvent({eventType:"closed",elementId:this.appId,elementType:"app"},void 0,!0),Object.keys(this._panels).forEach(e=>{q.cleanup(this._panels[e].properties)}),this._documents.forEach(e=>{q.cleanup(e.properties)}),q.completePendingCleanups().then(()=>{window.cefclient&&window.cefclient.sendMessage("close")}))},_createKeyBindings:function(){r.add(document.body,"keyboardNavigation"),this._createNavigationKeyBinding(),this._createBackwardNavigationKeyBinding()},_setKeyBindingAction:function(e){this.actionService.addAction(e),this._keyBindings.getBinding(e.shortcut).setAction(".keyboardNavigation",e.id)},_createNavigationKeyBinding:function(){var e={id:"navigationBinding",enabled:!0,shortcut:[m.Keys.SYSCTRL,m.Keys.F6],callback:t.hitch(this,"_navigateAcrossChildren","forward")};this._setKeyBindingAction(e)},_createBackwardNavigationKeyBinding:function(){var e={id:"backwardNavigationBinding",enabled:!0,shortcut:[m.Keys.SYSCTRL,m.Keys.SHIFT,m.Keys.F6],callback:t.hitch(this,"_navigateAcrossChildren","backward")};this._setKeyBindingAction(e)},_getChildPropertyButton:function(e){return e.widget&&e.widget.button&&e.widget.button.domNode?e.widget.button.domNode:null},_getChildPropertyGrandparent:function(e){return e.widget&&e.widget.getParent&&e.widget.getParent()&&e.widget.getParent().getParent&&e.widget.getParent().getParent()&&e.widget.getParent().getParent().domNode?e.widget.getParent().getParent().domNode:null},_findAppropriateSelectedChild:function(e,t){var i,n,o,r,a=!1,s=this._selectionManager._childProperties;for(var l in s)if(s.hasOwnProperty(l)){if(s[l].widget&&s[l].widget.navAssociation&&(r=s[l].widget.navAssociation.domNode?s[l].widget.navAssociation.domNode:s[l].widget.navAssociation),r&&(e===r||e.parentNode===r)){i=s[l].widget;break}if(n=this._getChildPropertyButton(s[l]),o=this._getChildPropertyGrandparent(s[l]),e.classList.contains("mwCollapsedPanelButton")?n&&e===n&&(a=!0):!n||e.parentNode!==n.parentNode&&e.parentNode.parentNode!==o||(a=!0),a&&(i=s[l].widget).getParent){i="forward"===t?this._selectionManager._getLastChild(i.getParent(),!1,!0):this._selectionManager._getFirstChild(i.getParent(),!1,!0);break}}return i&&(this._selectionManager.blockFocus(),this._selectionManager.blockRevealChild(),this._selectionManager.setSelected(i,!0),this._selectionManager.unblockFocus(),this._selectionManager.unblockRevealChild()),i},_getChildRegion:function(e){return e.properties&&e.properties.region?e.properties.region:null},_navigateAcrossChildren:function(e){if(!document.body.querySelector(".mwModalDialog")&&!document.body.querySelector(".dijitDialog")){var t=this._mnemonicsManager.getToolstrip();if(W.getCurrentMnemonicsState()!==W.NULL_NULL&&this._selectChild(this._childProperties[le]),N.isPopupShowing()){var i=p.getTopPopup();i&&i.parent&&i.parent.domNode&&t.domNode&&t.domNode.contains(i.parent.domNode)&&this._selectChild(this._childProperties[le])}var n=this._selectionManager[M.SELECTED_CHILD],o=document.activeElement;if(!n&&o)if(void 0===this._documentContainer||this._documentContainer&&!this._documentContainer.domNode.contains(o))n=this._findAppropriateSelectedChild(o,e),o=document.activeElement;else{if(!(n=this._selectionManager.getLastSelectedChild()))return;this._selectionManager.blockFocus(),this._selectionManager.blockRevealChild(),this._selectionManager.setSelected(n,!0),this._selectionManager.unblockFocus(),this._selectionManager.unblockRevealChild()}var r=!1;if(null===o.parentNode.querySelector(".groupTab")){if(n.domNode&&n.domNode.contains(o)&&n.navAssociation)if(n.navAssociation.focus){if(n.navAssociation.focus(),o!==document.activeElement)return}else if(n.navAssociation.domNode&&(n.navAssociation.domNode.focus(),o!==document.activeElement))return;if(n.focusContainer&&(n.focusContainer(),o!==document.activeElement))return}else o.classList.contains("groupTab")||(r=!0);for(n.id===le&&(this._mnemonicsManager.removeFocusFromToolstrip(),"expanded_on_top"===t.get("displayState")&&t.set("displayState",k.COLLAPSED),N.isPopupShowing()&&p.close());document.activeElement===o;){var a=this._getNextChildToBeSelected(e,n);if(!a)return;var s,l=this._getChildRegion(a);if(a.button&&a.button.domNode&&l&&this._mainContainer.isCollapsed(l)&&(this._documentContainer&&(s=this._documentContainer.getProperties(n)),void 0===s||s&&!s.isInGroupTab||o.classList.contains("groupTab")))return this._selectionManager.blockSuccession(),this._selectionManager.setSelected(n,!1),this._selectionManager.unblockSuccession(),a.button.domNode.tabIndex=-1,void a.button.domNode.focus();if(a.id===le)return void this._mnemonicsManager.setFocusOnCurrentToolstripTab();(a.preventContentFocusOnKeyNav||a.focusContainer)&&this._selectionManager.blockFocus(),this._selectionManager.blockRevealChild(),this._selectChild(a),a.focusContainer&&a.focusContainer(),(a.preventContentFocusOnKeyNav||a.focusContainer)&&this._selectionManager.unblockFocus(),this._selectionManager.unblockRevealChild(),this._handleDocumentContainerTabCases(n,a,o,r),n=this._selectionManager[M.SELECTED_CHILD]}}},_handleDocumentContainerTabCases:function(e,t,i,n){var o,r;n?t.navAssociation&&t.navAssociation.focus?t.navAssociation.focus():t.navAssociation&&t.navAssociation.domNode&&t.navAssociation.domNode.focus():(this._documentContainer&&(o=this._documentContainer.getProperties(e),r=this._documentContainer.getProperties(t)),o&&o.isInGroupTab&&r&&r.isInGroupTab?this._isCurrentAndNextChildInSameTabGroup(e,t)?i.classList.contains("groupTab")?this._focusGroupTab(t):t.navAssociation&&t.navAssociation.focus&&t.navAssociation.focus():i.classList.contains("groupTab")?r&&r.isInGroupTab&&t.getParent&&this._focusGroupTab(t):(this._selectChild(e),this._focusGroupTab(e)):o&&o.isInGroupTab&&!i.classList.contains("groupTab")?(this._selectChild(e),this._focusGroupTab(e)):r&&r.isInGroupTab&&t.getParent?this._focusGroupTab(t):t.navAssociation&&t.navAssociation.focus?t.navAssociation.focus():t.navAssociation&&t.navAssociation.domNode&&t.navAssociation.domNode.focus())},_focusGroupTab:function(e){if(e.getParent){for(var t=e.getParent();!t.navAssociation;)t=t.getParent();t.navAssociation.focus&&t.navAssociation.focus()}},_isCurrentAndNextChildInSameTabGroup:function(e,t){for(var i=this._documentContainer.getChildrenInTileOrder(),n=!1,o=!1,r=0;r<i.length;r++){if(i[r].domNode&&e.domNode&&t.domNode&&(i[r].domNode.contains(e.domNode)&&(n=!0),i[r].domNode.contains(t.domNode)&&(o=!0)),n&&o)return!0;if(n||o)return!1}},_getNextChildToBeSelected:function(e,t){return"forward"===e?this._selectionManager.getNextChild(t,!1,!0):this._selectionManager.getPreviousChild(t,!1,!0)},_selectChild:function(e){e.widget?this._selectionManager.setSelected(e.widget,!0):this._selectionManager.setSelected(e,!0)},_logDocumentOpen:function(e,t){ne.logEvent({eventType:t?"opened":"closed",elementId:e.documentType+":redacted",redactedHash:ne.hashString(e.documentId||e.title),elementType:"document"})}});return ce.stateIncludes=function(e,t){var i=e.panelLayout||e.borders||e.main;return i&&D.stateIncludes(i,t)},ce.validateDocumentLayout=function(e){return w.validateState(e)},ce.windowContainsASingleUndockedDocument=function(){return!(!X.getContainer()||X.getContainer().contentType!==X.SINGLE_DOCUMENT_CONTENT)},ce.BOTTOM_HEIGHT=D.BOTTOM_HEIGHT,ce.DOCUMENT_COLUMN_WEIGHTS=w.COLUMN_WEIGHTS,ce.DOCUMENT_GRID_SIZE=w.GRID_SIZE,ce.DOCUMENT_LAYOUT="documentLayout",ce.DOCUMENT_PLACE_HOLDER_TEXT=w.PLACE_HOLDER_TEXT,ce.DOCUMENT_ROW_WEIGHTS=w.ROW_WEIGHTS,ce.DOCUMENT_TAB_POSITION=w.TAB_POSITION,ce.DOCUMENT_TILE_COVERAGE=w.TILE_COVERAGE,ce.FOOTER="footer",ce.IS_BOTTOM_COLLAPSED=D.IS_BOTTOM_COLLAPSED,ce.IS_BUSY="isBusy",ce.IS_DOCUMENT_CONTAINER_BUSY="isDocumentContainerBusy",ce.IS_TOOLSTRIP_BUSY="isToolstripBusy",ce.IS_LEFT_COLLAPSED=D.IS_LEFT_COLLAPSED,ce.IS_RIGHT_COLLAPSED=D.IS_RIGHT_COLLAPSED,ce.IS_TOOLSTRIP_COLLAPSED="isToolstripCollapsed",ce.IS_VISIBLE="isVisible",ce.LAST_SELECTED_DOCUMENT="lastSelectedDocument",ce.LAYOUT="layout",ce.LEFT_WIDTH=D.LEFT_WIDTH,ce.PANEL_LAYOUT="panelLayout",ce.REGION_IS_COLLAPSED=D.REGION_IS_COLLAPSED,ce.RIGHT_WIDTH=D.RIGHT_WIDTH,ce.SELECTED_CHILD=M.SELECTED_CHILD,ce.SELECTED_TOOLSTRIP_TAB="selectedToolstripTab",ce.TITLE="title",ce.WINDOW_BOUNDS="windowBounds",ce.WINDOW_BOUNDS_MODIFIED="windowBoundsModified",ce.DOCUMENT_ARRANGEMENT=w.ARRANGEMENT,ce.STARTING="starting",ce.STARTED="started",ce.STOPPING="stopping",ce.STOPPED="stopped",ce.CHILD_ADDED=E.CHILD_ADDED,ce.CHILD_REMOVED=E.CHILD_REMOVED,se.UIContainer=ce,se.CHILD_ADDED=ce.CHILD_ADDED,se.CHILD_REMOVED=ce.CHILD_REMOVED,se.BOTTOM_HEIGHT=ce.BOTTOM_HEIGHT,se.DOCUMENT_COLUMN_WEIGHTS=ce.DOCUMENT_COLUMN_WEIGHTS,se.DOCUMENT_GRID_SIZE=ce.DOCUMENT_GRID_SIZE,se.DOCUMENT_LAYOUT=ce.DOCUMENT_LAYOUT,se.DOCUMENT_PLACE_HOLDER_TEXT=ce.DOCUMENT_PLACE_HOLDER_TEXT,se.DOCUMENT_ROW_WEIGHTS=ce.DOCUMENT_ROW_WEIGHTS,se.DOCUMENT_TAB_POSITION=ce.DOCUMENT_TAB_POSITION,se.DOCUMENT_TILE_COVERAGE=ce.DOCUMENT_TILE_COVERAGE,se.IS_BOTTOM_COLLAPSED=ce.IS_BOTTOM_COLLAPSED,se.IS_BUSY=ce.IS_BUSY,se.IS_DOCUMENT_CONTAINER_BUSY=ce.IS_DOCUMENT_CONTAINER_BUSY,se.IS_TOOLSTRIP_BUSY=ce.IS_TOOLSTRIP_BUSY,se.IS_LEFT_COLLAPSED=ce.IS_LEFT_COLLAPSED,se.IS_RIGHT_COLLAPSED=ce.IS_RIGHT_COLLAPSED,se.IS_TOOLSTRIP_COLLAPSED=ce.IS_TOOLSTRIP_COLLAPSED,se.IS_VISIBLE=ce.IS_VISIBLE,se.LAST_SELECTED_DOCUMENT=ce.LAST_SELECTED_DOCUMENT,se.LAYOUT=ce.LAYOUT,se.LEFT_WIDTH=ce.LEFT_WIDTH,se.PANEL_LAYOUT=ce.PANEL_LAYOUT,se.RIGHT_WIDTH=ce.RIGHT_WIDTH,se.SELECTED_CHILD=ce.SELECTED_CHILD,se.SELECTED_TOOLSTRIP_TAB=ce.SELECTED_TOOLSTRIP_TAB,se.TITLE=ce.TITLE,se.WINDOW_BOUNDS=ce.WINDOW_BOUNDS,se.WINDOW_BOUNDS_MODIFIED=ce.WINDOW_BOUNDS_MODIFIED,ce}),e,t),e.exports=r},function(e,t,i){var n,o;n=[i(210),i(206),i(225),i(248)],o=i.dj.d(n,(function(e,t,i,n){var o,r,a,s;return{blockUntilRelease:function(e){if(!r){this.blockSelection(e),this._blockIframePointerEvents();var i=this;r=t(window,n.release,(function(){i.unblockSelection(e),i._unblockIframePointerEvents(e.ownerDocument.body),r=null}))}},blockSelection:function(t){o||(s=t.ownerDocument.body,e.add(s,"noselect"),o=!0)},unblockSelection:function(){o&&(e.remove(s,"noselect"),o=!1)},_blockIframePointerEvents:function(t){(a=i("iframe, object",t)).forEach((function(t){e.add(t,"nopointer")}))},_unblockIframePointerEvents:function(){a&&(a.forEach((function(t){e.remove(t,"nopointer")})),a=null)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(2858),i(2859),i(2860),i(2861)],o=i.dj.d(n,(function(e,t){return t(e,"l10n/nls/layout",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){(function(e,n){var o;(function(){function r(e,t){return e.set(t[0],t[1]),e}function a(e,t){return e.add(t),e}function s(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function l(e,t,i,n){for(var o=-1,r=null==e?0:e.length;++o<r;){var a=e[o];t(n,a,i(a),e)}return n}function c(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}function d(e,t){for(var i=null==e?0:e.length;i--&&!1!==t(e[i],i,e););return e}function u(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(!t(e[i],i,e))return!1;return!0}function h(e,t){for(var i=-1,n=null==e?0:e.length,o=0,r=[];++i<n;){var a=e[i];t(a,i,e)&&(r[o++]=a)}return r}function p(e,t){return!(null==e||!e.length)&&-1<T(e,t,0)}function f(e,t,i){for(var n=-1,o=null==e?0:e.length;++n<o;)if(i(t,e[n]))return!0;return!1}function g(e,t){for(var i=-1,n=null==e?0:e.length,o=Array(n);++i<n;)o[i]=t(e[i],i,e);return o}function m(e,t){for(var i=-1,n=t.length,o=e.length;++i<n;)e[o+i]=t[i];return e}function _(e,t,i,n){var o=-1,r=null==e?0:e.length;for(n&&r&&(i=e[++o]);++o<r;)i=t(i,e[o],o,e);return i}function v(e,t,i,n){var o=null==e?0:e.length;for(n&&o&&(i=e[--o]);o--;)i=t(i,e[o],o,e);return i}function b(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}function y(e,t,i){var n;return i(e,(function(e,i,o){if(t(e,i,o))return n=i,!1})),n}function C(e,t,i,n){var o=e.length;for(i+=n?1:-1;n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function T(e,t,i){if(t==t)e:{--i;for(var n=e.length;++i<n;)if(e[i]===t){e=i;break e}e=-1}else e=C(e,S,i);return e}function E(e,t,i,n){--i;for(var o=e.length;++i<o;)if(n(e[i],t))return i;return-1}function S(e){return e!=e}function w(e,t){var i=null==e?0:e.length;return i?N(e,t)/i:z}function I(e){return function(t){return null==t?W:t[e]}}function A(e){return function(t){return null==e?W:e[t]}}function x(e,t,i,n,o){return o(e,(function(e,o,r){i=n?(n=!1,e):t(i,e,o,r)})),i}function N(e,t){for(var i,n=-1,o=e.length;++n<o;){var r=t(e[n]);r!==W&&(i=i===W?r:i+r)}return i}function L(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}function D(e){return function(t){return e(t)}}function M(e,t){return g(t,(function(t){return e[t]}))}function P(e,t){return e.has(t)}function O(e,t){for(var i=-1,n=e.length;++i<n&&-1<T(t,e[i],0););return i}function R(e,t){for(var i=e.length;i--&&-1<T(t,e[i],0););return i}function k(e){return"\\"+He[e]}function F(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}function B(e,t){return function(i){return e(t(i))}}function H(e,t){for(var i=-1,n=e.length,o=0,r=[];++i<n;){var a=e[i];a!==t&&"__lodash_placeholder__"!==a||(e[i]="__lodash_placeholder__",r[o++]=i)}return r}function V(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}function j(e){if(Pe.test(e)){for(var t=De.lastIndex=0;De.test(e);)++t;e=t}else e=tt(e);return e}function U(e){return Pe.test(e)?e.match(De)||[]:e.split("")}var W,G=1/0,z=NaN,q=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],K=/\b__p\+='';/g,X=/\b(__p\+=)''\+/g,Y=/(__e\(.*?\)|\b__t\))\+'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,J=RegExp(Q.source),Z=RegExp($.source),ee=/<%-([\s\S]+?)%>/g,te=/<%([\s\S]+?)%>/g,ie=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oe=/^\w*$/,re=/^\./,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,se=/[\\^$.*+?()[\]{}|]/g,le=RegExp(se.source),ce=/^\s+|\s+$/g,de=/^\s+/,ue=/\s+$/,he=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pe=/\{\n\/\* \[wrapped with (.+)\] \*/,fe=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,me=/\\(\\)?/g,_e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,be=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,Ce=/^\[object .+?Constructor\]$/,Te=/^0o[0-7]+$/i,Ee=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Ie=/['\n\r\u2028\u2029\\]/g,Ae="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",xe="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+Ae,Ne=RegExp("['’]","g"),Le=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),De=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])"+Ae,"g"),Me=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)|\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)|\\d+",xe].join("|"),"g"),Pe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Oe=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Re="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),ke={};ke["[object Float32Array]"]=ke["[object Float64Array]"]=ke["[object Int8Array]"]=ke["[object Int16Array]"]=ke["[object Int32Array]"]=ke["[object Uint8Array]"]=ke["[object Uint8ClampedArray]"]=ke["[object Uint16Array]"]=ke["[object Uint32Array]"]=!0,ke["[object Arguments]"]=ke["[object Array]"]=ke["[object ArrayBuffer]"]=ke["[object Boolean]"]=ke["[object DataView]"]=ke["[object Date]"]=ke["[object Error]"]=ke["[object Function]"]=ke["[object Map]"]=ke["[object Number]"]=ke["[object Object]"]=ke["[object RegExp]"]=ke["[object Set]"]=ke["[object String]"]=ke["[object WeakMap]"]=!1;var Fe={};Fe["[object Arguments]"]=Fe["[object Array]"]=Fe["[object ArrayBuffer]"]=Fe["[object DataView]"]=Fe["[object Boolean]"]=Fe["[object Date]"]=Fe["[object Float32Array]"]=Fe["[object Float64Array]"]=Fe["[object Int8Array]"]=Fe["[object Int16Array]"]=Fe["[object Int32Array]"]=Fe["[object Map]"]=Fe["[object Number]"]=Fe["[object Object]"]=Fe["[object RegExp]"]=Fe["[object Set]"]=Fe["[object String]"]=Fe["[object Symbol]"]=Fe["[object Uint8Array]"]=Fe["[object Uint8ClampedArray]"]=Fe["[object Uint16Array]"]=Fe["[object Uint32Array]"]=!0,Fe["[object Error]"]=Fe["[object Function]"]=Fe["[object WeakMap]"]=!1;var Be,He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,je=parseInt,Ue="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,Ge=Ue||We||Function("return this")(),ze=t&&!t.nodeType&&t,qe=ze&&"object"==typeof n&&n&&!n.nodeType&&n,Ke=qe&&qe.exports===ze,Xe=Ke&&Ue.process;e:{try{Be=Xe&&Xe.binding&&Xe.binding("util");break e}catch(r){}Be=void 0}var Ye=Be&&Be.isArrayBuffer,Qe=Be&&Be.isDate,$e=Be&&Be.isMap,Je=Be&&Be.isRegExp,Ze=Be&&Be.isSet,et=Be&&Be.isTypedArray,tt=I("length"),it=A({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nt=A({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),ot=A({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),rt=function e(t){function i(e){if(Jn(e)&&!Va(e)&&!(e instanceof A)){if(e instanceof o)return e;if(jo.call(e,"__wrapped__"))return Sn(e)}return new o(e)}function n(){}function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=W}function A(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ae(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function xe(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function De(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Be(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new De;++t<i;)this.add(e[t])}function He(e){this.size=(this.__data__=new xe(e)).size}function Ue(e,t){var i,n=Va(e),o=!n&&Ha(e),r=!n&&!o&&Ua(e),a=!n&&!o&&!r&&Ka(e),s=(o=(n=n||o||r||a)?L(e.length,Ro):[]).length;for(i in e)!t&&!jo.call(e,i)||n&&("length"==i||r&&("offset"==i||"parent"==i)||a&&("buffer"==i||"byteLength"==i||"byteOffset"==i)||un(i,s))||o.push(i);return o}function We(e){var t=e.length;return t?e[Kt(0,t-1)]:W}function ze(e,t){return yn(Ei(e),ut(t,0,e.length))}function qe(e){return yn(Ei(e))}function Xe(e,t,i){(i===W||Gn(e[t],i))&&(i!==W||t in e)||ct(e,t,i)}function tt(e,t,i){var n=e[t];jo.call(e,t)&&Gn(n,i)&&(i!==W||t in e)||ct(e,t,i)}function at(e,t){for(var i=e.length;i--;)if(Gn(e[i][0],t))return i;return-1}function st(e,t,i,n){return Hr(e,(function(e,o,r){t(n,e,i(e),r)})),n}function lt(e,t){return e&&Si(t,po(t),e)}function ct(e,t,i){"__proto__"==t&&rr?rr(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function dt(e,t){for(var i=-1,n=t.length,o=xo(n),r=null==e;++i<n;)o[i]=r?W:uo(e,t[i]);return o}function ut(e,t,i){return e==e&&(i!==W&&(e=e<=i?e:i),t!==W&&(e=e>=t?e:t)),e}function ht(e,t,i,n,o,r){var a,s=1&t,l=2&t,d=4&t;if(i&&(a=o?i(e,n,o,r):i(e)),a!==W)return a;if(!$n(e))return e;if(n=Va(e)){if(a=function(e){var t=e.length,i=e.constructor(t);return t&&"string"==typeof e[0]&&jo.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(e),!s)return Ei(e,a)}else{var u=Qr(e),h="[object Function]"==u||"[object GeneratorFunction]"==u;if(Ua(e))return _i(e,s);if("[object Object]"==u||"[object Arguments]"==u||h&&!o){if(a=l||h?{}:ln(e),!s)return l?function(e,t){return Si(e,Yr(e),t)}(e,function(e,t){return e&&Si(t,fo(t),e)}(a,e)):function(e,t){return Si(e,Xr(e),t)}(e,lt(a,e))}else{if(!Fe[u])return o?e:{};a=cn(e,u,ht,s)}}if(r||(r=new He),o=r.get(e))return o;r.set(e,a);l=d?l?Zi:Ji:l?fo:po;var p=n?W:l(e);return c(p||e,(function(n,o){p&&(n=e[o=n]),tt(a,o,ht(n,t,i,o,e,r))})),a}function pt(e,t,i){var n=i.length;if(null==e)return!n;for(e=Po(e);n--;){var o=i[n],r=t[o],a=e[o];if(a===W&&!(o in e)||!r(a))return!1}return!0}function ft(e,t,i){if("function"!=typeof e)throw new ko("Expected a function");return Zr((function(){e.apply(W,i)}),t)}function gt(e,t,i,n){var o=-1,r=p,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;i&&(t=g(t,D(i))),n?(r=f,a=!1):200<=t.length&&(r=P,a=!1,t=new Be(t));e:for(;++o<s;){var d=e[o],u=null==i?d:i(d);d=n||0!==d?d:0;if(a&&u==u){for(var h=c;h--;)if(t[h]===u)continue e;l.push(d)}else r(t,u,n)||l.push(d)}return l}function mt(e,t){var i=!0;return Hr(e,(function(e,n,o){return i=!!t(e,n,o)})),i}function _t(e,t,i){for(var n=-1,o=e.length;++n<o;){var r=e[n],a=t(r);if(null!=a&&(s===W?a==a&&!io(a):i(a,s)))var s=a,l=r}return l}function vt(e,t){var i=[];return Hr(e,(function(e,n,o){t(e,n,o)&&i.push(e)})),i}function bt(e,t,i,n,o){var r=-1,a=e.length;for(i||(i=dn),o||(o=[]);++r<a;){var s=e[r];0<t&&i(s)?1<t?bt(s,t-1,i,n,o):m(o,s):n||(o[o.length]=s)}return o}function yt(e,t){return e&&jr(e,t,po)}function Ct(e,t){return e&&Ur(e,t,po)}function Tt(e,t){return h(t,(function(t){return Xn(e[t])}))}function Et(e,t){for(var i=0,n=(t=gi(t,e)).length;null!=e&&i<n;)e=e[Cn(t[i++])];return i&&i==n?e:W}function St(e,t,i){return t=t(e),Va(e)?t:m(t,i(e))}function wt(e){if(null==e)e=e===W?"[object Undefined]":"[object Null]";else if(or&&or in Po(e)){var t=jo.call(e,or),i=e[or];try{e[or]=W;var n=!0}catch(e){}var o=Go.call(e);n&&(t?e[or]=i:delete e[or]),e=o}else e=Go.call(e);return e}function It(e,t){return e>t}function At(e,t){return null!=e&&jo.call(e,t)}function xt(e,t){return null!=e&&t in Po(e)}function Nt(e,t,i){for(var n=i?f:p,o=e[0].length,r=e.length,a=r,s=xo(r),l=1/0,c=[];a--;){var d=e[a];a&&t&&(d=g(d,D(t))),l=_r(d.length,l),s[a]=!i&&(t||120<=o&&120<=d.length)?new Be(a&&d):W}d=e[0];var u=-1,h=s[0];e:for(;++u<o&&c.length<l;){var m=d[u],_=t?t(m):m;m=i||0!==m?m:0;if(h?!P(h,_):!n(c,_,i)){for(a=r;--a;){var v=s[a];if(v?!P(v,_):!n(e[a],_,i))continue e}h&&h.push(_),c.push(m)}}return c}function Lt(e,t,i){return null==(t=null==(e=2>(t=gi(t,e)).length?e:Et(e,ei(t,0,-1)))?e:e[Cn(Nn(t))])?W:s(t,e,i)}function Dt(e){return Jn(e)&&"[object Arguments]"==wt(e)}function Mt(e,t,i,n,o){if(e===t)t=!0;else if(null==e||null==t||!Jn(e)&&!Jn(t))t=e!=e&&t!=t;else e:{var r,a,s=Va(e),l=Va(t),c="[object Object]"==(r="[object Arguments]"==(r=s?"[object Array]":Qr(e))?"[object Object]":r);l="[object Object]"==(a="[object Arguments]"==(a=l?"[object Array]":Qr(t))?"[object Object]":a);if((a=r==a)&&Ua(e)){if(!Ua(t)){t=!1;break e}s=!0,c=!1}if(a&&!c)o||(o=new He),t=s||Ka(e)?Qi(e,t,i,n,Mt,o):function(e,t,i,n,o,r,a){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!r(new Qo(e),new Qo(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return Gn(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=F;case"[object Set]":if(s||(s=V),e.size!=t.size&&!(1&n))break;return(i=a.get(e))?i==t:(n|=2,a.set(e,t),t=Qi(s(e),s(t),n,o,r,a),a.delete(e),t);case"[object Symbol]":if(kr)return kr.call(e)==kr.call(t)}return!1}(e,t,r,i,n,Mt,o);else{if(!(1&i)&&(s=c&&jo.call(e,"__wrapped__"),r=l&&jo.call(t,"__wrapped__"),s||r)){e=s?e.value():e,t=r?t.value():t,o||(o=new He),t=Mt(e,t,i,n,o);break e}if(a)t:if(o||(o=new He),s=1&i,r=Ji(e),l=r.length,a=Ji(t).length,l==a||s){for(c=l;c--;){var d=r[c];if(!(s?d in t:jo.call(t,d))){t=!1;break t}}if((a=o.get(e))&&o.get(t))t=a==t;else{a=!0,o.set(e,t),o.set(t,e);for(var u=s;++c<l;){var h=e[d=r[c]],p=t[d];if(n)var f=s?n(p,h,d,t,e,o):n(h,p,d,e,t,o);if(f===W?h!==p&&!Mt(h,p,i,n,o):!f){a=!1;break}u||(u="constructor"==d)}a&&!u&&((i=e.constructor)!=(n=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof i&&i instanceof i&&"function"==typeof n&&n instanceof n)&&(a=!1)),o.delete(e),o.delete(t),t=a}}else t=!1;else t=!1}}return t}function Pt(e,t,i,n){var o=i.length,r=o,a=!n;if(null==e)return!r;for(e=Po(e);o--;){var s=i[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<r;){var l=(s=i[o])[0],c=e[l],d=s[1];if(a&&s[2]){if(c===W&&!(l in e))return!1}else{if(s=new He,n)var u=n(c,d,l,e,t,s);if(u===W?!Mt(d,c,3,n,s):!u)return!1}}return!0}function Ot(e){return!(!$n(e)||Wo&&Wo in e)&&(Xn(e)?Ko:Ce).test(Tn(e))}function Rt(e){return"function"==typeof e?e:null==e?Co:"object"==typeof e?Va(e)?Vt(e[0],e[1]):Ht(e):wo(e)}function kt(e){if(!gn(e))return gr(e);var t,i=[];for(t in Po(e))jo.call(e,t)&&"constructor"!=t&&i.push(t);return i}function Ft(e,t){return e<t}function Bt(e,t){var i=-1,n=zn(e)?xo(e.length):[];return Hr(e,(function(e,o,r){n[++i]=t(e,o,r)})),n}function Ht(e){var t=rn(e);return 1==t.length&&t[0][2]?mn(t[0][0],t[0][1]):function(i){return i===e||Pt(i,e,t)}}function Vt(e,t){return pn(e)&&t==t&&!$n(t)?mn(Cn(e),t):function(i){var n=uo(i,e);return n===W&&n===t?ho(i,e):Mt(t,n,3)}}function jt(e,t,i,n,o){e!==t&&jr(t,(function(r,a){if($n(r)){o||(o=new He);var s=o,l=e[a],c=t[a];if(f=s.get(c))Xe(e,a,f);else{var d=(f=n?n(l,c,a+"",e,t,s):W)===W;if(d){var u=Va(c),h=!u&&Ua(c),p=!u&&!h&&Ka(c),f=c;u||h||p?Va(l)?f=l:qn(l)?f=Ei(l):h?(d=!1,f=_i(c,!0)):p?(d=!1,f=bi(c,!0)):f=[]:eo(c)||Ha(c)?(f=l,Ha(l)?f=lo(l):(!$n(l)||i&&Xn(l))&&(f=ln(c))):d=!1}d&&(s.set(c,f),jt(f,c,i,n,s),s.delete(c)),Xe(e,a,f)}}else(s=n?n(e[a],r,a+"",e,t,o):W)===W&&(s=r),Xe(e,a,s)}),fo)}function Ut(e,t){var i=e.length;if(i)return un(t+=0>t?i:0,i)?e[t]:W}function Wt(e,t,i){var n=-1;return t=g(t.length?t:[Co],D(nn())),function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].c;return e}(e=Bt(e,(function(e){return{a:g(t,(function(t){return t(e)})),b:++n,c:e}})),(function(e,t){var n;e:{n=-1;for(var o=e.a,r=t.a,a=o.length,s=i.length;++n<a;){var l=yi(o[n],r[n]);if(l){n=n>=s?l:l*("desc"==i[n]?-1:1);break e}}n=e.b-t.b}return n}))}function Gt(e,t,i){for(var n=-1,o=t.length,r={};++n<o;){var a=t[n],s=Et(e,a);i(s,a)&&Jt(r,gi(a,e),s)}return r}function zt(e,t,i,n){var o=n?E:T,r=-1,a=t.length,s=e;for(e===t&&(t=Ei(t)),i&&(s=g(e,D(i)));++r<a;){var l=0,c=t[r];for(c=i?i(c):c;-1<(l=o(s,c,l,n));)s!==e&&tr.call(s,l,1),tr.call(e,l,1)}return e}function qt(e,t){for(var i=e?t.length:0,n=i-1;i--;){var o=t[i];if(i==n||o!==r){var r=o;un(o)?tr.call(e,o,1):li(e,o)}}}function Kt(e,t){return e+dr(yr()*(t-e+1))}function Xt(e,t){var i="";if(!e||1>t||9007199254740991<t)return i;do{t%2&&(i+=e),(t=dr(t/2))&&(e+=e)}while(t);return i}function Yt(e,t){return ea(_n(e,t,Co),e+"")}function Qt(e){return We(mo(e))}function $t(e,t){var i=mo(e);return yn(i,ut(t,0,i.length))}function Jt(e,t,i,n){if(!$n(e))return e;for(var o=-1,r=(t=gi(t,e)).length,a=r-1,s=e;null!=s&&++o<r;){var l=Cn(t[o]),c=i;if(o!=a){var d=s[l];(c=n?n(d,l,s):W)===W&&(c=$n(d)?d:un(t[o+1])?[]:{})}tt(s,l,c),s=s[l]}return e}function Zt(e){return yn(mo(e))}function ei(e,t,i){var n=-1,o=e.length;for(0>t&&(t=-t>o?0:o+t),0>(i=i>o?o:i)&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0,i=xo(o);++n<o;)i[n]=e[n+t];return i}function ti(e,t){var i;return Hr(e,(function(e,n,o){return!(i=t(e,n,o))})),!!i}function ii(e,t,i){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&2147483647>=o){for(;n<o;){var r=n+o>>>1,a=e[r];null!==a&&!io(a)&&(i?a<=t:a<t)?n=r+1:o=r}return o}return ni(e,t,Co,i)}function ni(e,t,i,n){t=i(t);for(var o=0,r=null==e?0:e.length,a=t!=t,s=null===t,l=io(t),c=t===W;o<r;){var d=dr((o+r)/2),u=i(e[d]),h=u!==W,p=null===u,f=u==u,g=io(u);(a?n||f:c?f&&(n||h):s?f&&h&&(n||!p):l?f&&h&&!p&&(n||!g):!p&&!g&&(n?u<=t:u<t))?o=d+1:r=d}return _r(r,4294967294)}function oi(e,t){for(var i=-1,n=e.length,o=0,r=[];++i<n;){var a=e[i],s=t?t(a):a;if(!i||!Gn(s,l)){var l=s;r[o++]=0===a?0:a}}return r}function ri(e){return"number"==typeof e?e:io(e)?z:+e}function ai(e){if("string"==typeof e)return e;if(Va(e))return g(e,ai)+"";if(io(e))return Fr?Fr.call(e):"";var t=e+"";return"0"==t&&1/e==-G?"-0":t}function si(e,t,i){var n=-1,o=p,r=e.length,a=!0,s=[],l=s;if(i)a=!1,o=f;else if(200<=r){if(o=t?null:qr(e))return V(o);a=!1,o=P,l=new Be}else l=t?[]:s;e:for(;++n<r;){var c=e[n],d=t?t(c):c;c=i||0!==c?c:0;if(a&&d==d){for(var u=l.length;u--;)if(l[u]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,i)||(l!==s&&l.push(d),s.push(c))}return s}function li(e,t){return null==(e=2>(t=gi(t,e)).length?e:Et(e,ei(t,0,-1)))||delete e[Cn(Nn(t))]}function ci(e,t,i,n){for(var o=e.length,r=n?o:-1;(n?r--:++r<o)&&t(e[r],r,e););return i?ei(e,n?0:r,n?r+1:o):ei(e,n?r+1:0,n?o:r)}function di(e,t){var i=e;return i instanceof A&&(i=i.value()),_(t,(function(e,t){return t.func.apply(t.thisArg,m([e],t.args))}),i)}function ui(e,t,i){var n=e.length;if(2>n)return n?si(e[0]):[];for(var o=-1,r=xo(n);++o<n;)for(var a=e[o],s=-1;++s<n;)s!=o&&(r[o]=gt(r[o]||a,e[s],t,i));return si(bt(r,1),t,i)}function hi(e,t,i){for(var n=-1,o=e.length,r=t.length,a={};++n<o;)i(a,e[n],n<r?t[n]:W);return a}function pi(e){return qn(e)?e:[]}function fi(e){return"function"==typeof e?e:Co}function gi(e,t){return Va(e)?e:pn(e,t)?[e]:ta(co(e))}function mi(e,t,i){var n=e.length;return i=i===W?n:i,!t&&i>=n?e:ei(e,t,i)}function _i(e,t){if(t)return e.slice();var i=e.length;i=$o?$o(i):new e.constructor(i);return e.copy(i),i}function vi(e){var t=new e.constructor(e.byteLength);return new Qo(t).set(new Qo(e)),t}function bi(e,t){return new e.constructor(t?vi(e.buffer):e.buffer,e.byteOffset,e.length)}function yi(e,t){if(e!==t){var i=e!==W,n=null===e,o=e==e,r=io(e),a=t!==W,s=null===t,l=t==t,c=io(t);if(!s&&!c&&!r&&e>t||r&&a&&l&&!s&&!c||n&&a&&l||!i&&l||!o)return 1;if(!n&&!r&&!c&&e<t||c&&i&&o&&!n&&!r||s&&i&&o||!a&&o||!l)return-1}return 0}function Ci(e,t,i,n){var o=-1,r=e.length,a=i.length,s=-1,l=t.length,c=mr(r-a,0),d=xo(l+c);for(n=!n;++s<l;)d[s]=t[s];for(;++o<a;)(n||o<r)&&(d[i[o]]=e[o]);for(;c--;)d[s++]=e[o++];return d}function Ti(e,t,i,n){var o=-1,r=e.length,a=-1,s=i.length,l=-1,c=t.length,d=mr(r-s,0),u=xo(d+c);for(n=!n;++o<d;)u[o]=e[o];for(d=o;++l<c;)u[d+l]=t[l];for(;++a<s;)(n||o<r)&&(u[d+i[a]]=e[o++]);return u}function Ei(e,t){var i=-1,n=e.length;for(t||(t=xo(n));++i<n;)t[i]=e[i];return t}function Si(e,t,i,n){var o=!i;i||(i={});for(var r=-1,a=t.length;++r<a;){var s=t[r],l=n?n(i[s],e[s],s,i,e):W;l===W&&(l=e[s]),o?ct(i,s,l):tt(i,s,l)}return i}function wi(e,t){return function(i,n){var o=Va(i)?l:st,r=t?t():{};return o(i,e,nn(n,2),r)}}function Ii(e){return Yt((function(t,i){var n=-1,o=i.length,r=1<o?i[o-1]:W,a=2<o?i[2]:W;r=3<e.length&&"function"==typeof r?(o--,r):W;for(a&&hn(i[0],i[1],a)&&(r=3>o?W:r,o=1),t=Po(t);++n<o;)(a=i[n])&&e(t,a,n,r);return t}))}function Ai(e,t){return function(i,n){if(null==i)return i;if(!zn(i))return e(i,n);for(var o=i.length,r=t?o:-1,a=Po(i);(t?r--:++r<o)&&!1!==n(a[r],r,a););return i}}function xi(e){return function(t,i,n){for(var o=-1,r=Po(t),a=(n=n(t)).length;a--;){var s=n[e?a:++o];if(!1===i(r[s],s,r))break}return t}}function Ni(e){return function(t){t=co(t);var i=Pe.test(t)?U(t):W,n=i?i[0]:t.charAt(0);return t=i?mi(i,1).join(""):t.slice(1),n[e]()+t}}function Li(e){return function(t){return _(bo(vo(t).replace(Ne,"")),e,"")}}function Di(e){return function(){switch((t=arguments).length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var t,i=Br(e.prototype);return $n(t=e.apply(i,t))?t:i}}function Mi(e,t,i){var n=Di(e);return function o(){for(var r=arguments.length,a=xo(r),l=r,c=tn(o);l--;)a[l]=arguments[l];return(r-=(l=3>r&&a[0]!==c&&a[r-1]!==c?[]:H(a,c)).length)<i?Wi(e,t,Ri,o.placeholder,W,a,l,W,W,i-r):s(this&&this!==Ge&&this instanceof o?n:e,this,a)}}function Pi(e){return function(t,i,n){var o=Po(t);if(!zn(t)){var r=nn(i,3);t=po(t),i=function(e){return r(o[e],e,o)}}return-1<(i=e(t,i,n))?o[r?t[i]:i]:W}}function Oi(e){return $i((function(t){var i=t.length,n=i,r=o.prototype.thru;for(e&&t.reverse();n--;){if("function"!=typeof(s=t[n]))throw new ko("Expected a function");if(r&&!a&&"wrapper"==en(s))var a=new o([],!0)}for(n=a?n:i;++n<i;){var s,l="wrapper"==(r=en(s=t[n]))?Kr(s):W;a=l&&fn(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[en(l[0])].apply(a,l[3]):1==s.length&&fn(s)?a[r]():a.thru(s)}return function(){var e=(o=arguments)[0];if(a&&1==o.length&&Va(e))return a.plant(e).value();for(var n=0,o=i?t[n].apply(this,o):e;++n<i;)o=t[n].call(this,o);return o}}))}function Ri(e,t,i,n,o,r,a,s,l,c){var d=128&t,u=1&t,h=2&t,p=24&t,f=512&t,g=h?W:Di(e);return function m(){for(var _=arguments.length,v=xo(_),b=_;b--;)v[b]=arguments[b];if(p){var y,C=tn(m);b=v.length;for(y=0;b--;)v[b]===C&&++y}if(n&&(v=Ci(v,n,o,p)),r&&(v=Ti(v,r,a,p)),_-=y,p&&_<c)return C=H(v,C),Wi(e,t,Ri,m.placeholder,i,v,C,s,l,c-_);if(C=u?i:this,b=h?C[e]:e,_=v.length,s){y=v.length;for(var T=_r(s.length,y),E=Ei(v);T--;){var S=s[T];v[T]=un(S,y)?E[S]:W}}else f&&1<_&&v.reverse();return d&&l<_&&(v.length=l),this&&this!==Ge&&this instanceof m&&(b=g||Di(b)),b.apply(C,v)}}function ki(e,t){return function(i,n){return function(e,t,i){var n={};return yt(e,(function(e,o,r){t(n,i(e),o,r)})),n}(i,e,t(n))}}function Fi(e,t){return function(i,n){var o;if(i===W&&n===W)return t;if(i!==W&&(o=i),n!==W){if(o===W)return n;"string"==typeof i||"string"==typeof n?(i=ai(i),n=ai(n)):(i=ri(i),n=ri(n)),o=e(i,n)}return o}}function Bi(e){return $i((function(t){return t=g(t,D(nn())),Yt((function(i){var n=this;return e(t,(function(e){return s(e,n,i)}))}))}))}function Hi(e,t){var i=(t=t===W?" ":ai(t)).length;return 2>i?i?Xt(t,e):t:(i=Xt(t,cr(e/j(t))),Pe.test(t)?mi(U(i),0,e).join(""):i.slice(0,e))}function Vi(e,t,i,n){var o=1&t,r=Di(e);return function t(){for(var a=-1,l=arguments.length,c=-1,d=n.length,u=xo(d+l),h=this&&this!==Ge&&this instanceof t?r:e;++c<d;)u[c]=n[c];for(;l--;)u[c++]=arguments[++a];return s(h,o?i:this,u)}}function ji(e){return function(t,i,n){n&&"number"!=typeof n&&hn(t,i,n)&&(i=n=W),t=oo(t),i===W?(i=t,t=0):i=oo(i),n=n===W?t<i?1:-1:oo(n);var o=-1;i=mr(cr((i-t)/(n||1)),0);for(var r=xo(i);i--;)r[e?i:++o]=t,t+=n;return r}}function Ui(e){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=so(t),i=so(i)),e(t,i)}}function Wi(e,t,i,n,o,r,a,s,l,c){var d=8&t;return 4&(t=(t|(d?32:64))&~(d?64:32))||(t&=-4),o=[e,t,o,d?r:W,d?a:W,r=d?W:r,a=d?W:a,s,l,c],i=i.apply(W,o),fn(e)&&Jr(i,o),i.placeholder=n,vn(i,e,t)}function Gi(e){var t=Mo[e];return function(e,i){if(e=so(e),i=null==i?0:_r(ro(i),292)){var n=(co(e)+"e").split("e");return+((n=(co(n=t(n[0]+"e"+(+n[1]+i)))+"e").split("e"))[0]+"e"+(+n[1]-i))}return t(e)}}function zi(e){return function(t){var i=Qr(t);return"[object Map]"==i?F(t):"[object Set]"==i?function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=[e,e]})),i}(t):function(e,t){return g(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function qi(e,t,i,n,o,r,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new ko("Expected a function");var c=n?n.length:0;if(c||(t&=-97,n=o=W),a=a===W?a:mr(ro(a),0),s=s===W?s:ro(s),c-=o?o.length:0,64&t){var d=n,u=o;n=o=W}var h=l?W:Kr(e);return r=[e,t,i,n,o,d,u,r,a,s],h&&(t=(i=r[1])|(e=h[1]),n=128==e&&8==i||128==e&&256==i&&r[7].length<=h[8]||384==e&&h[7].length<=h[8]&&8==i,131>t||n)&&(1&e&&(r[2]=h[2],t|=1&i?0:4),(i=h[3])&&(n=r[3],r[3]=n?Ci(n,i,h[4]):i,r[4]=n?H(r[3],"__lodash_placeholder__"):h[4]),(i=h[5])&&(n=r[5],r[5]=n?Ti(n,i,h[6]):i,r[6]=n?H(r[5],"__lodash_placeholder__"):h[6]),(i=h[7])&&(r[7]=i),128&e&&(r[8]=null==r[8]?h[8]:_r(r[8],h[8])),null==r[9]&&(r[9]=h[9]),r[0]=h[0],r[1]=t),e=r[0],t=r[1],i=r[2],n=r[3],o=r[4],!(s=r[9]=r[9]===W?l?0:e.length:mr(r[9]-c,0))&&24&t&&(t&=-25),vn((h?Wr:Jr)(t&&1!=t?8==t||16==t?Mi(e,t,s):32!=t&&33!=t||o.length?Ri.apply(W,r):Vi(e,t,i,n):function(e,t,i){var n=1&t,o=Di(e);return function t(){return(this&&this!==Ge&&this instanceof t?o:e).apply(n?i:this,arguments)}}(e,t,i),r),e,t)}function Ki(e,t,i,n){return e===W||Gn(e,Bo[i])&&!jo.call(n,i)?t:e}function Xi(e,t,i,n,o,r){return $n(e)&&$n(t)&&(r.set(t,e),jt(e,t,W,Xi,r),r.delete(t)),e}function Yi(e){return eo(e)?W:e}function Qi(e,t,i,n,o,r){var a=1&i,s=e.length;if(s!=(l=t.length)&&!(a&&l>s))return!1;if((l=r.get(e))&&r.get(t))return l==t;var l=-1,c=!0,d=2&i?new Be:W;for(r.set(e,t),r.set(t,e);++l<s;){var u=e[l],h=t[l];if(n)var p=a?n(h,u,l,t,e,r):n(u,h,l,e,t,r);if(p!==W){if(p)continue;c=!1;break}if(d){if(!b(t,(function(e,t){if(!P(d,t)&&(u===e||o(u,e,i,n,r)))return d.push(t)}))){c=!1;break}}else if(u!==h&&!o(u,h,i,n,r)){c=!1;break}}return r.delete(e),r.delete(t),c}function $i(e){return ea(_n(e,W,An),e+"")}function Ji(e){return St(e,po,Xr)}function Zi(e){return St(e,fo,Yr)}function en(e){for(var t=e.name+"",i=Nr[t],n=jo.call(Nr,t)?i.length:0;n--;){var o=i[n],r=o.func;if(null==r||r==e)return o.name}return t}function tn(e){return(jo.call(i,"placeholder")?i:e).placeholder}function nn(){var e=(e=i.iteratee||To)===To?Rt:e;return arguments.length?e(arguments[0],arguments[1]):e}function on(e,t){var i=e.__data__,n=typeof t;return("string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?i["string"==typeof t?"string":"hash"]:i.map}function rn(e){for(var t=po(e),i=t.length;i--;){var n=t[i],o=e[n];t[i]=[n,o,o==o&&!$n(o)]}return t}function an(e,t){var i=null==e?W:e[t];return Ot(i)?i:W}function sn(e,t,i){for(var n=-1,o=(t=gi(t,e)).length,r=!1;++n<o;){var a=Cn(t[n]);if(!(r=null!=e&&i(e,a)))break;e=e[a]}return r||++n!=o?r:!!(o=null==e?0:e.length)&&Qn(o)&&un(a,o)&&(Va(e)||Ha(e))}function ln(e){return"function"!=typeof e.constructor||gn(e)?{}:Br(Jo(e))}function cn(e,t,i,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return vi(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return t=n?vi(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return bi(e,n);case"[object Map]":return _(t=n?i(F(e),1):F(e),r,new e.constructor);case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return(t=new e.constructor(e.source,ve.exec(e))).lastIndex=e.lastIndex,t;case"[object Set]":return _(t=n?i(V(e),1):V(e),a,new e.constructor);case"[object Symbol]":return kr?Po(kr.call(e)):{}}}function dn(e){return Va(e)||Ha(e)||!!(ir&&e&&e[ir])}function un(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Ee.test(e))&&-1<e&&0==e%1&&e<t}function hn(e,t,i){if(!$n(i))return!1;var n=typeof t;return!!("number"==n?zn(i)&&un(t,i.length):"string"==n&&t in i)&&Gn(i[t],e)}function pn(e,t){if(Va(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!io(e))||oe.test(e)||!ne.test(e)||null!=t&&e in Po(t)}function fn(e){var t=en(e),n=i[t];return"function"==typeof n&&t in A.prototype&&(e===n||!!(t=Kr(n))&&e===t[0])}function gn(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Bo)}function mn(e,t){return function(i){return null!=i&&i[e]===t&&(t!==W||e in Po(i))}}function _n(e,t,i){return t=mr(t===W?e.length-1:t,0),function(){for(var n=arguments,o=-1,r=mr(n.length-t,0),a=xo(r);++o<r;)a[o]=n[t+o];for(o=-1,r=xo(t+1);++o<t;)r[o]=n[o];return r[t]=i(a),s(e,this,r)}}function vn(e,t,i){var n=t+"";t=ea;var o,r=En;return i=r(o=(o=n.match(pe))?o[1].split(fe):[],i),(r=i.length)&&(i[o=r-1]=(1<r?"& ":"")+i[o],i=i.join(2<r?", ":" "),n=n.replace(he,"{\n/* [wrapped with "+i+"] */\n")),t(e,n)}function bn(e){var t=0,i=0;return function(){var n=vr(),o=16-(n-i);if(i=n,0<o){if(800<=++t)return arguments[0]}else t=0;return e.apply(W,arguments)}}function yn(e,t){var i=-1,n=(o=e.length)-1;for(t=t===W?o:t;++i<t;){var o,r=e[o=Kt(i,n)];e[o]=e[i],e[i]=r}return e.length=t,e}function Cn(e){if("string"==typeof e||io(e))return e;var t=e+"";return"0"==t&&1/e==-G?"-0":t}function Tn(e){if(null!=e){try{return Vo.call(e)}catch(e){}return e+""}return""}function En(e,t){return c(q,(function(i){var n="_."+i[0];t&i[1]&&!p(e,n)&&e.push(n)})),e.sort()}function Sn(e){if(e instanceof A)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=Ei(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function wn(e,t,i){var n=null==e?0:e.length;return n?(0>(i=null==i?0:ro(i))&&(i=mr(n+i,0)),C(e,nn(t,3),i)):-1}function In(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var o=n-1;return i!==W&&(o=ro(i),o=0>i?mr(n+o,0):_r(o,n-1)),C(e,nn(t,3),o,!0)}function An(e){return null!=e&&e.length?bt(e,1):[]}function xn(e){return e&&e.length?e[0]:W}function Nn(e){var t=null==e?0:e.length;return t?e[t-1]:W}function Ln(e,t){return e&&e.length&&t&&t.length?zt(e,t):e}function Dn(e){return null==e?e:Cr.call(e)}function Mn(e){if(!e||!e.length)return[];var t=0;return e=h(e,(function(e){if(qn(e))return t=mr(e.length,t),!0})),L(t,(function(t){return g(e,I(t))}))}function Pn(e,t){if(!e||!e.length)return[];var i=Mn(e);return null==t?i:g(i,(function(e){return s(t,W,e)}))}function On(e){return(e=i(e)).__chain__=!0,e}function Rn(e,t){return t(e)}function kn(e,t){return(Va(e)?c:Hr)(e,nn(t,3))}function Fn(e,t){return(Va(e)?d:Vr)(e,nn(t,3))}function Bn(e,t){return(Va(e)?g:Bt)(e,nn(t,3))}function Hn(e,t,i){return t=i?W:t,t=e&&null==t?e.length:t,qi(e,128,W,W,W,W,t)}function Vn(e,t){var i;if("function"!=typeof t)throw new ko("Expected a function");return e=ro(e),function(){return 0<--e&&(i=t.apply(this,arguments)),1>=e&&(t=W),i}}function jn(e,t,i){function n(t){var i=l,n=c;return l=c=W,f=t,u=e.apply(n,i)}function o(e){var i=e-p;return e-=f,p===W||i>=t||0>i||m&&e>=d}function r(){var e=xa();if(o(e))return a(e);var i,n=Zr;i=e-f,e=t-(e-p),i=m?_r(e,d-i):e,h=n(r,i)}function a(e){return h=W,_&&l?n(e):(l=c=W,u)}function s(){var e=xa(),i=o(e);if(l=arguments,c=this,p=e,i){if(h===W)return f=e=p,h=Zr(r,t),g?n(e):u;if(m)return h=Zr(r,t),n(p)}return h===W&&(h=Zr(r,t)),u}var l,c,d,u,h,p,f=0,g=!1,m=!1,_=!0;if("function"!=typeof e)throw new ko("Expected a function");return t=so(t)||0,$n(i)&&(g=!!i.leading,d=(m="maxWait"in i)?mr(so(i.maxWait)||0,t):d,_="trailing"in i?!!i.trailing:_),s.cancel=function(){h!==W&&zr(h),f=0,l=p=c=h=W},s.flush=function(){return h===W?u:a(xa())},s}function Un(e,t){function i(){var n=arguments,o=t?t.apply(this,n):n[0],r=i.cache;return r.has(o)?r.get(o):(n=e.apply(this,n),i.cache=r.set(o,n)||r,n)}if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ko("Expected a function");return i.cache=new(Un.Cache||De),i}function Wn(e){if("function"!=typeof e)throw new ko("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Gn(e,t){return e===t||e!=e&&t!=t}function zn(e){return null!=e&&Qn(e.length)&&!Xn(e)}function qn(e){return Jn(e)&&zn(e)}function Kn(e){if(!Jn(e))return!1;var t=wt(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!eo(e)}function Xn(e){return!!$n(e)&&("[object Function]"==(e=wt(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)}function Yn(e){return"number"==typeof e&&e==ro(e)}function Qn(e){return"number"==typeof e&&-1<e&&0==e%1&&9007199254740991>=e}function $n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Jn(e){return null!=e&&"object"==typeof e}function Zn(e){return"number"==typeof e||Jn(e)&&"[object Number]"==wt(e)}function eo(e){return!(!Jn(e)||"[object Object]"!=wt(e))&&(null===(e=Jo(e))||"function"==typeof(e=jo.call(e,"constructor")&&e.constructor)&&e instanceof e&&Vo.call(e)==zo)}function to(e){return"string"==typeof e||!Va(e)&&Jn(e)&&"[object String]"==wt(e)}function io(e){return"symbol"==typeof e||Jn(e)&&"[object Symbol]"==wt(e)}function no(e){if(!e)return[];if(zn(e))return to(e)?U(e):Ei(e);if(nr&&e[nr]){e=e[nr]();for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}return("[object Map]"==(t=Qr(e))?F:"[object Set]"==t?V:mo)(e)}function oo(e){return e?(e=so(e))===G||e===-G?17976931348623157e292*(0>e?-1:1):e==e?e:0:0===e?e:0}function ro(e){var t=(e=oo(e))%1;return e==e?t?e-t:e:0}function ao(e){return e?ut(ro(e),0,4294967295):0}function so(e){if("number"==typeof e)return e;if(io(e))return z;if($n(e)&&(e=$n(e="function"==typeof e.valueOf?e.valueOf():e)?e+"":e),"string"!=typeof e)return 0===e?e:+e;e=e.replace(ce,"");var t=ye.test(e);return t||Te.test(e)?je(e.slice(2),t?2:8):be.test(e)?z:+e}function lo(e){return Si(e,fo(e))}function co(e){return null==e?"":ai(e)}function uo(e,t,i){return(e=null==e?W:Et(e,t))===W?i:e}function ho(e,t){return null!=e&&sn(e,t,xt)}function po(e){return zn(e)?Ue(e):kt(e)}function fo(e){if(zn(e))e=Ue(e,!0);else if($n(e)){var t,i=gn(e),n=[];for(t in e)("constructor"!=t||!i&&jo.call(e,t))&&n.push(t);e=n}else{if(t=[],null!=e)for(i in Po(e))t.push(i);e=t}return e}function go(e,t){if(null==e)return{};var i=g(Zi(e),(function(e){return[e]}));return t=nn(t),Gt(e,i,(function(e,i){return t(e,i[0])}))}function mo(e){return null==e?[]:M(e,po(e))}function _o(e){return bs(co(e).toLowerCase())}function vo(e){return(e=co(e))&&e.replace(Se,it).replace(Le,"")}function bo(e,t,i){return e=co(e),(t=i?W:t)===W?Oe.test(e)?e.match(Me)||[]:e.match(ge)||[]:e.match(t)||[]}function yo(e){return function(){return e}}function Co(e){return e}function To(e){return Rt("function"==typeof e?e:ht(e,1))}function Eo(e,t,i){var n=po(t),o=Tt(t,n);null!=i||$n(t)&&(o.length||!n.length)||(i=t,t=e,e=this,o=Tt(t,po(t)));var r=!($n(i)&&"chain"in i&&!i.chain),a=Xn(e);return c(o,(function(i){var n=t[i];e[i]=n,a&&(e.prototype[i]=function(){var t=this.__chain__;if(r||t){var i=e(this.__wrapped__);return(i.__actions__=Ei(this.__actions__)).push({func:n,args:arguments,thisArg:e}),i.__chain__=t,i}return n.apply(e,m([this.value()],arguments))})})),e}function So(){}function wo(e){return pn(e)?I(Cn(e)):function(e){return function(t){return Et(t,e)}}(e)}function Io(){return[]}function Ao(){return!1}var xo=(t=null==t?Ge:rt.defaults(Ge.Object(),t,rt.pick(Ge,Re))).Array,No=t.Date,Lo=t.Error,Do=t.Function,Mo=t.Math,Po=t.Object,Oo=t.RegExp,Ro=t.String,ko=t.TypeError,Fo=xo.prototype,Bo=Po.prototype,Ho=t["__core-js_shared__"],Vo=Do.prototype.toString,jo=Bo.hasOwnProperty,Uo=0,Wo=function(){var e=/[^.]+$/.exec(Ho&&Ho.keys&&Ho.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Go=Bo.toString,zo=Vo.call(Po),qo=Ge._,Ko=Oo("^"+Vo.call(jo).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xo=Ke?t.Buffer:W,Yo=t.Symbol,Qo=t.Uint8Array,$o=Xo?Xo.f:W,Jo=B(Po.getPrototypeOf,Po),Zo=Po.create,er=Bo.propertyIsEnumerable,tr=Fo.splice,ir=Yo?Yo.isConcatSpreadable:W,nr=Yo?Yo.iterator:W,or=Yo?Yo.toStringTag:W,rr=function(){try{var e=an(Po,"defineProperty");return e({},"",{}),e}catch(e){}}(),ar=t.clearTimeout!==Ge.clearTimeout&&t.clearTimeout,sr=No&&No.now!==Ge.Date.now&&No.now,lr=t.setTimeout!==Ge.setTimeout&&t.setTimeout,cr=Mo.ceil,dr=Mo.floor,ur=Po.getOwnPropertySymbols,hr=Xo?Xo.isBuffer:W,pr=t.isFinite,fr=Fo.join,gr=B(Po.keys,Po),mr=Mo.max,_r=Mo.min,vr=No.now,br=t.parseInt,yr=Mo.random,Cr=Fo.reverse,Tr=an(t,"DataView"),Er=an(t,"Map"),Sr=an(t,"Promise"),wr=an(t,"Set"),Ir=an(t,"WeakMap"),Ar=an(Po,"create"),xr=Ir&&new Ir,Nr={},Lr=Tn(Tr),Dr=Tn(Er),Mr=Tn(Sr),Pr=Tn(wr),Or=Tn(Ir),Rr=Yo?Yo.prototype:W,kr=Rr?Rr.valueOf:W,Fr=Rr?Rr.toString:W,Br=function(){function e(){}return function(t){return $n(t)?Zo?Zo(t):(e.prototype=t,t=new e,e.prototype=W,t):{}}}();i.templateSettings={escape:ee,evaluate:te,interpolate:ie,variable:"",imports:{_:i}},i.prototype=n.prototype,i.prototype.constructor=i,o.prototype=Br(n.prototype),o.prototype.constructor=o,A.prototype=Br(n.prototype),A.prototype.constructor=A,Ae.prototype.clear=function(){this.__data__=Ar?Ar(null):{},this.size=0},Ae.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},Ae.prototype.get=function(e){var t=this.__data__;return Ar?"__lodash_hash_undefined__"===(e=t[e])?W:e:jo.call(t,e)?t[e]:W},Ae.prototype.has=function(e){var t=this.__data__;return Ar?t[e]!==W:jo.call(t,e)},Ae.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Ar&&t===W?"__lodash_hash_undefined__":t,this},xe.prototype.clear=function(){this.__data__=[],this.size=0},xe.prototype.delete=function(e){var t=this.__data__;return!(0>(e=at(t,e))||(e==t.length-1?t.pop():tr.call(t,e,1),--this.size,0))},xe.prototype.get=function(e){var t=this.__data__;return 0>(e=at(t,e))?W:t[e][1]},xe.prototype.has=function(e){return-1<at(this.__data__,e)},xe.prototype.set=function(e,t){var i=this.__data__,n=at(i,e);return 0>n?(++this.size,i.push([e,t])):i[n][1]=t,this},De.prototype.clear=function(){this.size=0,this.__data__={hash:new Ae,map:new(Er||xe),string:new Ae}},De.prototype.delete=function(e){return e=on(this,e).delete(e),this.size-=e?1:0,e},De.prototype.get=function(e){return on(this,e).get(e)},De.prototype.has=function(e){return on(this,e).has(e)},De.prototype.set=function(e,t){var i=on(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},Be.prototype.add=Be.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Be.prototype.has=function(e){return this.__data__.has(e)},He.prototype.clear=function(){this.__data__=new xe,this.size=0},He.prototype.delete=function(e){var t=this.__data__;return e=t.delete(e),this.size=t.size,e},He.prototype.get=function(e){return this.__data__.get(e)},He.prototype.has=function(e){return this.__data__.has(e)},He.prototype.set=function(e,t){var i=this.__data__;if(i instanceof xe){var n=i.__data__;if(!Er||199>n.length)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new De(n)}return i.set(e,t),this.size=i.size,this};var Hr=Ai(yt),Vr=Ai(Ct,!0),jr=xi(),Ur=xi(!0),Wr=xr?function(e,t){return xr.set(e,t),e}:Co,Gr=rr?function(e,t){return rr(e,"toString",{configurable:!0,enumerable:!1,value:yo(t),writable:!0})}:Co,zr=ar||function(e){return Ge.clearTimeout(e)},qr=wr&&1/V(new wr([,-0]))[1]==G?function(e){return new wr(e)}:So,Kr=xr?function(e){return xr.get(e)}:So,Xr=ur?function(e){return null==e?[]:(e=Po(e),h(ur(e),(function(t){return er.call(e,t)})))}:Io,Yr=ur?function(e){for(var t=[];e;)m(t,Xr(e)),e=Jo(e);return t}:Io,Qr=wt;(Tr&&"[object DataView]"!=Qr(new Tr(new ArrayBuffer(1)))||Er&&"[object Map]"!=Qr(new Er)||Sr&&"[object Promise]"!=Qr(Sr.resolve())||wr&&"[object Set]"!=Qr(new wr)||Ir&&"[object WeakMap]"!=Qr(new Ir))&&(Qr=function(e){var t=wt(e);if(e=(e="[object Object]"==t?e.constructor:W)?Tn(e):"")switch(e){case Lr:return"[object DataView]";case Dr:return"[object Map]";case Mr:return"[object Promise]";case Pr:return"[object Set]";case Or:return"[object WeakMap]"}return t});var $r=Ho?Xn:Ao,Jr=bn(Wr),Zr=lr||function(e,t){return Ge.setTimeout(e,t)},ea=bn(Gr),ta=function(e){var t=(e=Un(e,(function(e){return 500===t.size&&t.clear(),e}))).cache;return e}((function(e){var t=[];return re.test(e)&&t.push(""),e.replace(ae,(function(e,i,n,o){t.push(n?o.replace(me,"$1"):i||e)})),t})),ia=Yt((function(e,t){return qn(e)?gt(e,bt(t,1,qn,!0)):[]})),na=Yt((function(e,t){var i=Nn(t);return qn(i)&&(i=W),qn(e)?gt(e,bt(t,1,qn,!0),nn(i,2)):[]})),oa=Yt((function(e,t){var i=Nn(t);return qn(i)&&(i=W),qn(e)?gt(e,bt(t,1,qn,!0),W,i):[]})),ra=Yt((function(e){var t=g(e,pi);return t.length&&t[0]===e[0]?Nt(t):[]})),aa=Yt((function(e){var t=Nn(e),i=g(e,pi);return t===Nn(i)?t=W:i.pop(),i.length&&i[0]===e[0]?Nt(i,nn(t,2)):[]})),sa=Yt((function(e){var t=Nn(e),i=g(e,pi);return(t="function"==typeof t?t:W)&&i.pop(),i.length&&i[0]===e[0]?Nt(i,W,t):[]})),la=Yt(Ln),ca=$i((function(e,t){var i=null==e?0:e.length,n=dt(e,t);return qt(e,g(t,(function(e){return un(e,i)?+e:e})).sort(yi)),n})),da=Yt((function(e){return si(bt(e,1,qn,!0))})),ua=Yt((function(e){var t=Nn(e);return qn(t)&&(t=W),si(bt(e,1,qn,!0),nn(t,2))})),ha=Yt((function(e){var t="function"==typeof(t=Nn(e))?t:W;return si(bt(e,1,qn,!0),W,t)})),pa=Yt((function(e,t){return qn(e)?gt(e,t):[]})),fa=Yt((function(e){return ui(h(e,qn))})),ga=Yt((function(e){var t=Nn(e);return qn(t)&&(t=W),ui(h(e,qn),nn(t,2))})),ma=Yt((function(e){var t="function"==typeof(t=Nn(e))?t:W;return ui(h(e,qn),W,t)})),_a=Yt(Mn),va=Yt((function(e){var t="function"==typeof(t=1<(t=e.length)?e[t-1]:W)?(e.pop(),t):W;return Pn(e,t)})),ba=$i((function(e){function t(t){return dt(t,e)}var i=e.length,n=i?e[0]:0,r=this.__wrapped__;return!(1<i||this.__actions__.length)&&r instanceof A&&un(n)?((r=r.slice(n,+n+(i?1:0))).__actions__.push({func:Rn,args:[t],thisArg:W}),new o(r,this.__chain__).thru((function(e){return i&&!e.length&&e.push(W),e}))):this.thru(t)})),ya=wi((function(e,t,i){jo.call(e,i)?++e[i]:ct(e,i,1)})),Ca=Pi(wn),Ta=Pi(In),Ea=wi((function(e,t,i){jo.call(e,i)?e[i].push(t):ct(e,i,[t])})),Sa=Yt((function(e,t,i){var n=-1,o="function"==typeof t,r=zn(e)?xo(e.length):[];return Hr(e,(function(e){r[++n]=o?s(t,e,i):Lt(e,t,i)})),r})),wa=wi((function(e,t,i){ct(e,i,t)})),Ia=wi((function(e,t,i){e[i?0:1].push(t)}),(function(){return[[],[]]})),Aa=Yt((function(e,t){if(null==e)return[];var i=t.length;return 1<i&&hn(e,t[0],t[1])?t=[]:2<i&&hn(t[0],t[1],t[2])&&(t=[t[0]]),Wt(e,bt(t,1),[])})),xa=sr||function(){return Ge.Date.now()},Na=Yt((function(e,t,i){var n=1;if(i.length){var o=H(i,tn(Na));n=32|n}return qi(e,n,t,i,o)})),La=Yt((function(e,t,i){var n=3;if(i.length){var o=H(i,tn(La));n=32|n}return qi(t,n,e,i,o)})),Da=Yt((function(e,t){return ft(e,1,t)})),Ma=Yt((function(e,t,i){return ft(e,so(t)||0,i)}));Un.Cache=De;var Pa=Yt((function(e,t){var i=(t=1==t.length&&Va(t[0])?g(t[0],D(nn())):g(bt(t,1),D(nn()))).length;return Yt((function(n){for(var o=-1,r=_r(n.length,i);++o<r;)n[o]=t[o].call(this,n[o]);return s(e,this,n)}))})),Oa=Yt((function(e,t){return qi(e,32,W,t,H(t,tn(Oa)))})),Ra=Yt((function(e,t){return qi(e,64,W,t,H(t,tn(Ra)))})),ka=$i((function(e,t){return qi(e,256,W,W,W,t)})),Fa=Ui(It),Ba=Ui((function(e,t){return e>=t})),Ha=Dt(function(){return arguments}())?Dt:function(e){return Jn(e)&&jo.call(e,"callee")&&!er.call(e,"callee")},Va=xo.isArray,ja=Ye?D(Ye):function(e){return Jn(e)&&"[object ArrayBuffer]"==wt(e)},Ua=hr||Ao,Wa=Qe?D(Qe):function(e){return Jn(e)&&"[object Date]"==wt(e)},Ga=$e?D($e):function(e){return Jn(e)&&"[object Map]"==Qr(e)},za=Je?D(Je):function(e){return Jn(e)&&"[object RegExp]"==wt(e)},qa=Ze?D(Ze):function(e){return Jn(e)&&"[object Set]"==Qr(e)},Ka=et?D(et):function(e){return Jn(e)&&Qn(e.length)&&!!ke[wt(e)]},Xa=Ui(Ft),Ya=Ui((function(e,t){return e<=t})),Qa=Ii((function(e,t){if(gn(t)||zn(t))Si(t,po(t),e);else for(var i in t)jo.call(t,i)&&tt(e,i,t[i])})),$a=Ii((function(e,t){Si(t,fo(t),e)})),Ja=Ii((function(e,t,i,n){Si(t,fo(t),e,n)})),Za=Ii((function(e,t,i,n){Si(t,po(t),e,n)})),es=$i(dt),ts=Yt((function(e){return e.push(W,Ki),s(Ja,W,e)})),is=Yt((function(e){return e.push(W,Xi),s(ss,W,e)})),ns=ki((function(e,t,i){e[t]=i}),yo(Co)),os=ki((function(e,t,i){jo.call(e,t)?e[t].push(i):e[t]=[i]}),nn),rs=Yt(Lt),as=Ii((function(e,t,i){jt(e,t,i)})),ss=Ii((function(e,t,i,n){jt(e,t,i,n)})),ls=$i((function(e,t){var i={};if(null==e)return i;var n=!1;t=g(t,(function(t){return t=gi(t,e),n||(n=1<t.length),t})),Si(e,Zi(e),i),n&&(i=ht(i,7,Yi));for(var o=t.length;o--;)li(i,t[o]);return i})),cs=$i((function(e,t){return null==e?{}:function(e,t){return Gt(e,t,(function(t,i){return ho(e,i)}))}(e,t)})),ds=zi(po),us=zi(fo),hs=Li((function(e,t,i){return t=t.toLowerCase(),e+(i?_o(t):t)})),ps=Li((function(e,t,i){return e+(i?"-":"")+t.toLowerCase()})),fs=Li((function(e,t,i){return e+(i?" ":"")+t.toLowerCase()})),gs=Ni("toLowerCase"),ms=Li((function(e,t,i){return e+(i?"_":"")+t.toLowerCase()})),_s=Li((function(e,t,i){return e+(i?" ":"")+bs(t)})),vs=Li((function(e,t,i){return e+(i?" ":"")+t.toUpperCase()})),bs=Ni("toUpperCase"),ys=Yt((function(e,t){try{return s(e,W,t)}catch(e){return Kn(e)?e:new Lo(e)}})),Cs=$i((function(e,t){return c(t,(function(t){t=Cn(t),ct(e,t,Na(e[t],e))})),e})),Ts=Oi(),Es=Oi(!0),Ss=Yt((function(e,t){return function(i){return Lt(i,e,t)}})),ws=Yt((function(e,t){return function(i){return Lt(e,i,t)}})),Is=Bi(g),As=Bi(u),xs=Bi(b),Ns=ji(),Ls=ji(!0),Ds=Fi((function(e,t){return e+t}),0),Ms=Gi("ceil"),Ps=Fi((function(e,t){return e/t}),1),Os=Gi("floor"),Rs=Fi((function(e,t){return e*t}),1),ks=Gi("round"),Fs=Fi((function(e,t){return e-t}),0);return i.after=function(e,t){if("function"!=typeof t)throw new ko("Expected a function");return e=ro(e),function(){if(1>--e)return t.apply(this,arguments)}},i.ary=Hn,i.assign=Qa,i.assignIn=$a,i.assignInWith=Ja,i.assignWith=Za,i.at=es,i.before=Vn,i.bind=Na,i.bindAll=Cs,i.bindKey=La,i.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},i.chain=On,i.chunk=function(e,t,i){if(t=(i?hn(e,t,i):t===W)?1:mr(ro(t),0),!(i=null==e?0:e.length)||1>t)return[];for(var n=0,o=0,r=xo(cr(i/t));n<i;)r[o++]=ei(e,n,n+=t);return r},i.compact=function(e){for(var t=-1,i=null==e?0:e.length,n=0,o=[];++t<i;){var r=e[t];r&&(o[n++]=r)}return o},i.concat=function(){var e=arguments.length;if(!e)return[];for(var t=xo(e-1),i=arguments[0];e--;)t[e-1]=arguments[e];return m(Va(i)?Ei(i):[i],bt(t,1))},i.cond=function(e){var t=null==e?0:e.length,i=nn();return e=t?g(e,(function(e){if("function"!=typeof e[1])throw new ko("Expected a function");return[i(e[0]),e[1]]})):[],Yt((function(i){for(var n=-1;++n<t;){var o=e[n];if(s(o[0],this,i))return s(o[1],this,i)}}))},i.conforms=function(e){return function(e){var t=po(e);return function(i){return pt(i,e,t)}}(ht(e,1))},i.constant=yo,i.countBy=ya,i.create=function(e,t){var i=Br(e);return null==t?i:lt(i,t)},i.curry=function e(t,i,n){return(t=qi(t,8,W,W,W,W,W,i=n?W:i)).placeholder=e.placeholder,t},i.curryRight=function e(t,i,n){return(t=qi(t,16,W,W,W,W,W,i=n?W:i)).placeholder=e.placeholder,t},i.debounce=jn,i.defaults=ts,i.defaultsDeep=is,i.defer=Da,i.delay=Ma,i.difference=ia,i.differenceBy=na,i.differenceWith=oa,i.drop=function(e,t,i){var n=null==e?0:e.length;return n?ei(e,0>(t=i||t===W?1:ro(t))?0:t,n):[]},i.dropRight=function(e,t,i){var n=null==e?0:e.length;return n?ei(e,0,0>(t=n-(t=i||t===W?1:ro(t)))?0:t):[]},i.dropRightWhile=function(e,t){return e&&e.length?ci(e,nn(t,3),!0,!0):[]},i.dropWhile=function(e,t){return e&&e.length?ci(e,nn(t,3),!0):[]},i.fill=function(e,t,i,n){var o=null==e?0:e.length;if(!o)return[];for(i&&"number"!=typeof i&&hn(e,t,i)&&(i=0,n=o),o=e.length,0>(i=ro(i))&&(i=-i>o?0:o+i),0>(n=n===W||n>o?o:ro(n))&&(n+=o),n=i>n?0:ao(n);i<n;)e[i++]=t;return e},i.filter=function(e,t){return(Va(e)?h:vt)(e,nn(t,3))},i.flatMap=function(e,t){return bt(Bn(e,t),1)},i.flatMapDeep=function(e,t){return bt(Bn(e,t),G)},i.flatMapDepth=function(e,t,i){return i=i===W?1:ro(i),bt(Bn(e,t),i)},i.flatten=An,i.flattenDeep=function(e){return null!=e&&e.length?bt(e,G):[]},i.flattenDepth=function(e,t){return null!=e&&e.length?bt(e,t=t===W?1:ro(t)):[]},i.flip=function(e){return qi(e,512)},i.flow=Ts,i.flowRight=Es,i.fromPairs=function(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var o=e[t];n[o[0]]=o[1]}return n},i.functions=function(e){return null==e?[]:Tt(e,po(e))},i.functionsIn=function(e){return null==e?[]:Tt(e,fo(e))},i.groupBy=Ea,i.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},i.intersection=ra,i.intersectionBy=aa,i.intersectionWith=sa,i.invert=ns,i.invertBy=os,i.invokeMap=Sa,i.iteratee=To,i.keyBy=wa,i.keys=po,i.keysIn=fo,i.map=Bn,i.mapKeys=function(e,t){var i={};return t=nn(t,3),yt(e,(function(e,n,o){ct(i,t(e,n,o),e)})),i},i.mapValues=function(e,t){var i={};return t=nn(t,3),yt(e,(function(e,n,o){ct(i,n,t(e,n,o))})),i},i.matches=function(e){return Ht(ht(e,1))},i.matchesProperty=function(e,t){return Vt(e,ht(t,1))},i.memoize=Un,i.merge=as,i.mergeWith=ss,i.method=Ss,i.methodOf=ws,i.mixin=Eo,i.negate=Wn,i.nthArg=function(e){return e=ro(e),Yt((function(t){return Ut(t,e)}))},i.omit=ls,i.omitBy=function(e,t){return go(e,Wn(nn(t)))},i.once=function(e){return Vn(2,e)},i.orderBy=function(e,t,i,n){return null==e?[]:(Va(t)||(t=null==t?[]:[t]),Va(i=n?W:i)||(i=null==i?[]:[i]),Wt(e,t,i))},i.over=Is,i.overArgs=Pa,i.overEvery=As,i.overSome=xs,i.partial=Oa,i.partialRight=Ra,i.partition=Ia,i.pick=cs,i.pickBy=go,i.property=wo,i.propertyOf=function(e){return function(t){return null==e?W:Et(e,t)}},i.pull=la,i.pullAll=Ln,i.pullAllBy=function(e,t,i){return e&&e.length&&t&&t.length?zt(e,t,nn(i,2)):e},i.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?zt(e,t,W,i):e},i.pullAt=ca,i.range=Ns,i.rangeRight=Ls,i.rearg=ka,i.reject=function(e,t){return(Va(e)?h:vt)(e,Wn(nn(t,3)))},i.remove=function(e,t){var i=[];if(!e||!e.length)return i;var n=-1,o=[],r=e.length;for(t=nn(t,3);++n<r;){var a=e[n];t(a,n,e)&&(i.push(a),o.push(n))}return qt(e,o),i},i.rest=function(e,t){if("function"!=typeof e)throw new ko("Expected a function");return Yt(e,t=t===W?t:ro(t))},i.reverse=Dn,i.sampleSize=function(e,t,i){return t=(i?hn(e,t,i):t===W)?1:ro(t),(Va(e)?ze:$t)(e,t)},i.set=function(e,t,i){return null==e?e:Jt(e,t,i)},i.setWith=function(e,t,i,n){return n="function"==typeof n?n:W,null==e?e:Jt(e,t,i,n)},i.shuffle=function(e){return(Va(e)?qe:Zt)(e)},i.slice=function(e,t,i){var n=null==e?0:e.length;return n?(i&&"number"!=typeof i&&hn(e,t,i)?(t=0,i=n):(t=null==t?0:ro(t),i=i===W?n:ro(i)),ei(e,t,i)):[]},i.sortBy=Aa,i.sortedUniq=function(e){return e&&e.length?oi(e):[]},i.sortedUniqBy=function(e,t){return e&&e.length?oi(e,nn(t,2)):[]},i.split=function(e,t,i){return i&&"number"!=typeof i&&hn(e,t,i)&&(t=i=W),(i=i===W?4294967295:i>>>0)?(e=co(e))&&("string"==typeof t||null!=t&&!za(t))&&(!(t=ai(t))&&Pe.test(e))?mi(U(e),0,i):e.split(t,i):[]},i.spread=function(e,t){if("function"!=typeof e)throw new ko("Expected a function");return t=null==t?0:mr(ro(t),0),Yt((function(i){var n=i[t];return i=mi(i,0,t),n&&m(i,n),s(e,this,i)}))},i.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},i.take=function(e,t,i){return e&&e.length?ei(e,0,0>(t=i||t===W?1:ro(t))?0:t):[]},i.takeRight=function(e,t,i){var n=null==e?0:e.length;return n?ei(e,0>(t=n-(t=i||t===W?1:ro(t)))?0:t,n):[]},i.takeRightWhile=function(e,t){return e&&e.length?ci(e,nn(t,3),!1,!0):[]},i.takeWhile=function(e,t){return e&&e.length?ci(e,nn(t,3)):[]},i.tap=function(e,t){return t(e),e},i.throttle=function(e,t,i){var n=!0,o=!0;if("function"!=typeof e)throw new ko("Expected a function");return $n(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),jn(e,t,{leading:n,maxWait:t,trailing:o})},i.thru=Rn,i.toArray=no,i.toPairs=ds,i.toPairsIn=us,i.toPath=function(e){return Va(e)?g(e,Cn):io(e)?[e]:Ei(ta(co(e)))},i.toPlainObject=lo,i.transform=function(e,t,i){var n=Va(e),o=n||Ua(e)||Ka(e);if(t=nn(t,4),null==i){var r=e&&e.constructor;i=o?n?new r:[]:$n(e)&&Xn(r)?Br(Jo(e)):{}}return(o?c:yt)(e,(function(e,n,o){return t(i,e,n,o)})),i},i.unary=function(e){return Hn(e,1)},i.union=da,i.unionBy=ua,i.unionWith=ha,i.uniq=function(e){return e&&e.length?si(e):[]},i.uniqBy=function(e,t){return e&&e.length?si(e,nn(t,2)):[]},i.uniqWith=function(e,t){return t="function"==typeof t?t:W,e&&e.length?si(e,W,t):[]},i.unset=function(e,t){return null==e||li(e,t)},i.unzip=Mn,i.unzipWith=Pn,i.update=function(e,t,i){return null==e?e:Jt(e,t,fi(i)(Et(e,t)),void 0)},i.updateWith=function(e,t,i,n){return n="function"==typeof n?n:W,null!=e&&(e=Jt(e,t,fi(i)(Et(e,t)),n)),e},i.values=mo,i.valuesIn=function(e){return null==e?[]:M(e,fo(e))},i.without=pa,i.words=bo,i.wrap=function(e,t){return Oa(fi(t),e)},i.xor=fa,i.xorBy=ga,i.xorWith=ma,i.zip=_a,i.zipObject=function(e,t){return hi(e||[],t||[],tt)},i.zipObjectDeep=function(e,t){return hi(e||[],t||[],Jt)},i.zipWith=va,i.entries=ds,i.entriesIn=us,i.extend=$a,i.extendWith=Ja,Eo(i,i),i.add=Ds,i.attempt=ys,i.camelCase=hs,i.capitalize=_o,i.ceil=Ms,i.clamp=function(e,t,i){return i===W&&(i=t,t=W),i!==W&&(i=(i=so(i))==i?i:0),t!==W&&(t=(t=so(t))==t?t:0),ut(so(e),t,i)},i.clone=function(e){return ht(e,4)},i.cloneDeep=function(e){return ht(e,5)},i.cloneDeepWith=function(e,t){return ht(e,5,t="function"==typeof t?t:W)},i.cloneWith=function(e,t){return ht(e,4,t="function"==typeof t?t:W)},i.conformsTo=function(e,t){return null==t||pt(e,t,po(t))},i.deburr=vo,i.defaultTo=function(e,t){return null==e||e!=e?t:e},i.divide=Ps,i.endsWith=function(e,t,i){e=co(e),t=ai(t);var n=e.length;n=i=i===W?n:ut(ro(i),0,n);return 0<=(i-=t.length)&&e.slice(i,n)==t},i.eq=Gn,i.escape=function(e){return(e=co(e))&&Z.test(e)?e.replace($,nt):e},i.escapeRegExp=function(e){return(e=co(e))&&le.test(e)?e.replace(se,"\\$&"):e},i.every=function(e,t,i){var n=Va(e)?u:mt;return i&&hn(e,t,i)&&(t=W),n(e,nn(t,3))},i.find=Ca,i.findIndex=wn,i.findKey=function(e,t){return y(e,nn(t,3),yt)},i.findLast=Ta,i.findLastIndex=In,i.findLastKey=function(e,t){return y(e,nn(t,3),Ct)},i.floor=Os,i.forEach=kn,i.forEachRight=Fn,i.forIn=function(e,t){return null==e?e:jr(e,nn(t,3),fo)},i.forInRight=function(e,t){return null==e?e:Ur(e,nn(t,3),fo)},i.forOwn=function(e,t){return e&&yt(e,nn(t,3))},i.forOwnRight=function(e,t){return e&&Ct(e,nn(t,3))},i.get=uo,i.gt=Fa,i.gte=Ba,i.has=function(e,t){return null!=e&&sn(e,t,At)},i.hasIn=ho,i.head=xn,i.identity=Co,i.includes=function(e,t,i,n){return e=zn(e)?e:mo(e),i=i&&!n?ro(i):0,n=e.length,0>i&&(i=mr(n+i,0)),to(e)?i<=n&&-1<e.indexOf(t,i):!!n&&-1<T(e,t,i)},i.indexOf=function(e,t,i){var n=null==e?0:e.length;return n?(0>(i=null==i?0:ro(i))&&(i=mr(n+i,0)),T(e,t,i)):-1},i.inRange=function(e,t,i){return t=oo(t),i===W?(i=t,t=0):i=oo(i),(e=so(e))>=_r(t,i)&&e<mr(t,i)},i.invoke=rs,i.isArguments=Ha,i.isArray=Va,i.isArrayBuffer=ja,i.isArrayLike=zn,i.isArrayLikeObject=qn,i.isBoolean=function(e){return!0===e||!1===e||Jn(e)&&"[object Boolean]"==wt(e)},i.isBuffer=Ua,i.isDate=Wa,i.isElement=function(e){return Jn(e)&&1===e.nodeType&&!eo(e)},i.isEmpty=function(e){if(null==e)return!0;if(zn(e)&&(Va(e)||"string"==typeof e||"function"==typeof e.splice||Ua(e)||Ka(e)||Ha(e)))return!e.length;var t=Qr(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(gn(e))return!kt(e).length;for(var i in e)if(jo.call(e,i))return!1;return!0},i.isEqual=function(e,t){return Mt(e,t)},i.isEqualWith=function(e,t,i){var n=(i="function"==typeof i?i:W)?i(e,t):W;return n===W?Mt(e,t,W,i):!!n},i.isError=Kn,i.isFinite=function(e){return"number"==typeof e&&pr(e)},i.isFunction=Xn,i.isInteger=Yn,i.isLength=Qn,i.isMap=Ga,i.isMatch=function(e,t){return e===t||Pt(e,t,rn(t))},i.isMatchWith=function(e,t,i){return i="function"==typeof i?i:W,Pt(e,t,rn(t),i)},i.isNaN=function(e){return Zn(e)&&e!=+e},i.isNative=function(e){if($r(e))throw new Lo("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ot(e)},i.isNil=function(e){return null==e},i.isNull=function(e){return null===e},i.isNumber=Zn,i.isObject=$n,i.isObjectLike=Jn,i.isPlainObject=eo,i.isRegExp=za,i.isSafeInteger=function(e){return Yn(e)&&-9007199254740991<=e&&9007199254740991>=e},i.isSet=qa,i.isString=to,i.isSymbol=io,i.isTypedArray=Ka,i.isUndefined=function(e){return e===W},i.isWeakMap=function(e){return Jn(e)&&"[object WeakMap]"==Qr(e)},i.isWeakSet=function(e){return Jn(e)&&"[object WeakSet]"==wt(e)},i.join=function(e,t){return null==e?"":fr.call(e,t)},i.kebabCase=ps,i.last=Nn,i.lastIndexOf=function(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var o=n;if(i!==W&&(o=0>(o=ro(i))?mr(n+o,0):_r(o,n-1)),t==t){for(i=o+1;i--&&e[i]!==t;);e=i}else e=C(e,S,o,!0);return e},i.lowerCase=fs,i.lowerFirst=gs,i.lt=Xa,i.lte=Ya,i.max=function(e){return e&&e.length?_t(e,Co,It):W},i.maxBy=function(e,t){return e&&e.length?_t(e,nn(t,2),It):W},i.mean=function(e){return w(e,Co)},i.meanBy=function(e,t){return w(e,nn(t,2))},i.min=function(e){return e&&e.length?_t(e,Co,Ft):W},i.minBy=function(e,t){return e&&e.length?_t(e,nn(t,2),Ft):W},i.stubArray=Io,i.stubFalse=Ao,i.stubObject=function(){return{}},i.stubString=function(){return""},i.stubTrue=function(){return!0},i.multiply=Rs,i.nth=function(e,t){return e&&e.length?Ut(e,ro(t)):W},i.noConflict=function(){return Ge._===this&&(Ge._=qo),this},i.noop=So,i.now=xa,i.pad=function(e,t,i){e=co(e);var n=(t=ro(t))?j(e):0;return!t||n>=t?e:Hi(dr(t=(t-n)/2),i)+e+Hi(cr(t),i)},i.padEnd=function(e,t,i){e=co(e);var n=(t=ro(t))?j(e):0;return t&&n<t?e+Hi(t-n,i):e},i.padStart=function(e,t,i){e=co(e);var n=(t=ro(t))?j(e):0;return t&&n<t?Hi(t-n,i)+e:e},i.parseInt=function(e,t,i){return i||null==t?t=0:t&&(t=+t),br(co(e).replace(de,""),t||0)},i.random=function(e,t,i){if(i&&"boolean"!=typeof i&&hn(e,t,i)&&(t=i=W),i===W&&("boolean"==typeof t?(i=t,t=W):"boolean"==typeof e&&(i=e,e=W)),e===W&&t===W?(e=0,t=1):(e=oo(e),t===W?(t=e,e=0):t=oo(t)),e>t){var n=e;e=t,t=n}return i||e%1||t%1?(i=yr(),_r(e+i*(t-e+Ve("1e-"+((i+"").length-1))),t)):Kt(e,t)},i.reduce=function(e,t,i){var n=Va(e)?_:x,o=3>arguments.length;return n(e,nn(t,4),i,o,Hr)},i.reduceRight=function(e,t,i){var n=Va(e)?v:x,o=3>arguments.length;return n(e,nn(t,4),i,o,Vr)},i.repeat=function(e,t,i){return t=(i?hn(e,t,i):t===W)?1:ro(t),Xt(co(e),t)},i.replace=function(){var e=arguments,t=co(e[0]);return 3>e.length?t:t.replace(e[1],e[2])},i.result=function(e,t,i){var n=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=W);++n<o;){var r=null==e?W:e[Cn(t[n])];r===W&&(n=o,r=i),e=Xn(r)?r.call(e):r}return e},i.round=ks,i.runInContext=e,i.sample=function(e){return(Va(e)?We:Qt)(e)},i.size=function(e){if(null==e)return 0;if(zn(e))return to(e)?j(e):e.length;var t=Qr(e);return"[object Map]"==t||"[object Set]"==t?e.size:kt(e).length},i.snakeCase=ms,i.some=function(e,t,i){var n=Va(e)?b:ti;return i&&hn(e,t,i)&&(t=W),n(e,nn(t,3))},i.sortedIndex=function(e,t){return ii(e,t)},i.sortedIndexBy=function(e,t,i){return ni(e,t,nn(i,2))},i.sortedIndexOf=function(e,t){var i=null==e?0:e.length;if(i){var n=ii(e,t);if(n<i&&Gn(e[n],t))return n}return-1},i.sortedLastIndex=function(e,t){return ii(e,t,!0)},i.sortedLastIndexBy=function(e,t,i){return ni(e,t,nn(i,2),!0)},i.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var i=ii(e,t,!0)-1;if(Gn(e[i],t))return i}return-1},i.startCase=_s,i.startsWith=function(e,t,i){return e=co(e),i=null==i?0:ut(ro(i),0,e.length),t=ai(t),e.slice(i,i+t.length)==t},i.subtract=Fs,i.sum=function(e){return e&&e.length?N(e,Co):0},i.sumBy=function(e,t){return e&&e.length?N(e,nn(t,2)):0},i.template=function(e,t,n){var o=i.templateSettings;n&&hn(e,t,n)&&(t=W),e=co(e),t=Ja({},t,o,Ki);var r,a,s=po(n=Ja({},t.imports,o.imports,Ki)),l=M(n,s),c=0;n=t.interpolate||we;var d="__p+='";n=Oo((t.escape||we).source+"|"+n.source+"|"+(n===ie?_e:we).source+"|"+(t.evaluate||we).source+"|$","g");var u="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";if(e.replace(n,(function(t,i,n,o,s,l){return n||(n=o),d+=e.slice(c,l).replace(Ie,k),i&&(r=!0,d+="'+__e("+i+")+'"),s&&(a=!0,d+="';"+s+";\n__p+='"),n&&(d+="'+((__t=("+n+"))==null?'':__t)+'"),c=l+t.length,t})),d+="';",(t=t.variable)||(d="with(obj){"+d+"}"),d=(a?d.replace(K,""):d).replace(X,"$1").replace(Y,"$1;"),d="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(r?",__e=_.escape":"")+(a?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+d+"return __p}",(t=ys((function(){return Do(s,u+"return "+d).apply(W,l)}))).source=d,Kn(t))throw t;return t},i.times=function(e,t){if(1>(e=ro(e))||9007199254740991<e)return[];var i=4294967295,n=_r(e,4294967295);for(e-=4294967295,n=L(n,t=nn(t));++i<e;)t(i);return n},i.toFinite=oo,i.toInteger=ro,i.toLength=ao,i.toLower=function(e){return co(e).toLowerCase()},i.toNumber=so,i.toSafeInteger=function(e){return e?ut(ro(e),-9007199254740991,9007199254740991):0===e?e:0},i.toString=co,i.toUpper=function(e){return co(e).toUpperCase()},i.trim=function(e,t,i){return(e=co(e))&&(i||t===W)?e.replace(ce,""):e&&(t=ai(t))?mi(e=U(e),t=O(e,i=U(t)),i=R(e,i)+1).join(""):e},i.trimEnd=function(e,t,i){return(e=co(e))&&(i||t===W)?e.replace(ue,""):e&&(t=ai(t))?mi(e=U(e),0,t=R(e,U(t))+1).join(""):e},i.trimStart=function(e,t,i){return(e=co(e))&&(i||t===W)?e.replace(de,""):e&&(t=ai(t))?mi(e=U(e),t=O(e,U(t))).join(""):e},i.truncate=function(e,t){var i=30,n="...";if($n(t)){var o="separator"in t?t.separator:o;i="length"in t?ro(t.length):i,n="omission"in t?ai(t.omission):n}var r=(e=co(e)).length;if(Pe.test(e)){var a=U(e);r=a.length}if(i>=r)return e;if(1>(r=i-j(n)))return n;if(i=a?mi(a,0,r).join(""):e.slice(0,r),o===W)return i+n;if(a&&(r+=i.length-r),za(o)){if(e.slice(r).search(o)){var s=i;for(o.global||(o=Oo(o.source,co(ve.exec(o))+"g")),o.lastIndex=0;a=o.exec(s);)var l=a.index;i=i.slice(0,l===W?r:l)}}else e.indexOf(ai(o),r)!=r&&(-1<(o=i.lastIndexOf(o))&&(i=i.slice(0,o)));return i+n},i.unescape=function(e){return(e=co(e))&&J.test(e)?e.replace(Q,ot):e},i.uniqueId=function(e){var t=++Uo;return co(e)+t},i.upperCase=vs,i.upperFirst=bs,i.each=kn,i.eachRight=Fn,i.first=xn,Eo(i,function(){var e={};return yt(i,(function(t,n){jo.call(i.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),i.VERSION="4.17.4",c("bind bindKey curry curryRight partial partialRight".split(" "),(function(e){i[e].placeholder=i})),c(["drop","take"],(function(e,t){A.prototype[e]=function(i){i=i===W?1:mr(ro(i),0);var n=this.__filtered__&&!t?new A(this):this.clone();return n.__filtered__?n.__takeCount__=_r(i,n.__takeCount__):n.__views__.push({size:_r(i,4294967295),type:e+(0>n.__dir__?"Right":"")}),n},A.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),c(["filter","map","takeWhile"],(function(e,t){var i=t+1,n=1==i||3==i;A.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:nn(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}})),c(["head","last"],(function(e,t){var i="take"+(t?"Right":"");A.prototype[e]=function(){return this[i](1).value()[0]}})),c(["initial","tail"],(function(e,t){var i="drop"+(t?"":"Right");A.prototype[e]=function(){return this.__filtered__?new A(this):this[i](1)}})),A.prototype.compact=function(){return this.filter(Co)},A.prototype.find=function(e){return this.filter(e).head()},A.prototype.findLast=function(e){return this.reverse().find(e)},A.prototype.invokeMap=Yt((function(e,t){return"function"==typeof e?new A(this):this.map((function(i){return Lt(i,e,t)}))})),A.prototype.reject=function(e){return this.filter(Wn(nn(e)))},A.prototype.slice=function(e,t){e=ro(e);var i=this;return i.__filtered__&&(0<e||0>t)?new A(i):(0>e?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==W&&(i=0>(t=ro(t))?i.dropRight(-t):i.take(t-e)),i)},A.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},A.prototype.toArray=function(){return this.take(4294967295)},yt(A.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=i[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);a&&(i.prototype[t]=function(){function t(e){return e=a.apply(i,m([e],c)),r&&p?e[0]:e}var l=this.__wrapped__,c=r?[1]:arguments,d=l instanceof A,u=c[0],h=d||Va(l);h&&n&&"function"==typeof u&&1!=u.length&&(d=h=!1);var p=this.__chain__,f=!!this.__actions__.length;u=s&&!p,d=d&&!f;return!s&&h?(l=d?l:new A(this),(l=e.apply(l,c)).__actions__.push({func:Rn,args:[t],thisArg:W}),new o(l,p)):u&&d?e.apply(this,c):(l=this.thru(t),u?r?l.value()[0]:l.value():l)})})),c("pop push shift sort splice unshift".split(" "),(function(e){var t=Fo[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);i.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var i=this.value();return t.apply(Va(i)?i:[],e)}return this[n]((function(i){return t.apply(Va(i)?i:[],e)}))}})),yt(A.prototype,(function(e,t){var n=i[t];if(n){var o=n.name+"";(Nr[o]||(Nr[o]=[])).push({name:t,func:n})}})),Nr[Ri(W,2).name]=[{name:"wrapper",func:W}],A.prototype.clone=function(){var e=new A(this.__wrapped__);return e.__actions__=Ei(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ei(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ei(this.__views__),e},A.prototype.reverse=function(){if(this.__filtered__){var e=new A(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},A.prototype.value=function(){var e,t=this.__wrapped__.value(),i=this.__dir__,n=Va(t),o=0>i,r=n?t.length:0;e=r;for(var a=this.__views__,s=0,l=-1,c=a.length;++l<c;){var d=a[l],u=d.size;switch(d.type){case"drop":s+=u;break;case"dropRight":e-=u;break;case"take":e=_r(e,s+u);break;case"takeRight":s=mr(s,e-u)}}if(a=(e={start:s,end:e}).start,e=(s=e.end)-a,a=o?s:a-1,l=(s=this.__iteratees__).length,c=0,d=_r(e,this.__takeCount__),!n||!o&&r==e&&d==e)return di(t,this.__actions__);n=[];e:for(;e--&&c<d;){for(o=-1,r=t[a+=i];++o<l;){u=(h=s[o]).type;var h=(0,h.iteratee)(r);if(2==u)r=h;else if(!h){if(1==u)continue e;break e}}n[c++]=r}return n},i.prototype.at=ba,i.prototype.chain=function(){return On(this)},i.prototype.commit=function(){return new o(this.value(),this.__chain__)},i.prototype.next=function(){this.__values__===W&&(this.__values__=no(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?W:this.__values__[this.__index__++]}},i.prototype.plant=function(e){for(var t,i=this;i instanceof n;){var o=Sn(i);o.__index__=0,o.__values__=W,t?r.__wrapped__=o:t=o;var r=o;i=i.__wrapped__}return r.__wrapped__=e,t},i.prototype.reverse=function(){var e=this.__wrapped__;return e instanceof A?(this.__actions__.length&&(e=new A(this)),(e=e.reverse()).__actions__.push({func:Rn,args:[Dn],thisArg:W}),new o(e,this.__chain__)):this.thru(Dn)},i.prototype.toJSON=i.prototype.valueOf=i.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},i.prototype.first=i.prototype.head,nr&&(i.prototype[nr]=function(){return this}),i}();Ge._=rt,void 0===(o=function(){return rt}.call(null,i,t,n))||(n.exports=o)}).call(this)}).call(this,i(1053),i(2892)(e))},function(e,t,i){var n,o;n=[t,i(309),i(293),i(885)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inverseAdd=function(e,t,i){if(i.isAssociation()){var n=i.get_PropName();h(e,i.name),i.isSingleValuedAssociation()?i.isContainer()?(u(e)||l(e),c(e,t,i.opposite,i.name)):(i.opposite&&e[n]&&s(e[n],e,i.opposite),e[n]=t):e[i.name]._basicAdd(t)}},e.inverseRemove=s,e.makeUncontained=l,e.basicSetContainer=c,e.basicContainer=d,e.isTopLevel=u,e.notifyModifying=h,e.destroyRecursively=p,e.checkCircularContainment=function(e,t){for(var i=t;i;i=d(i))i===e&&o.default.throwErr("CircularContainment")},e.setContainedByThis=function(e,t,i){l(t),c(t,e,i,null)},e.updateDynamicValuesOnMoveToAnotherModel=function(e,t){if(e.dynamicValues)for(var i=Array.from(t.keys()),n=0,o=i.length;n<o;++n){var r=i[n],a=e.dynamicValues[r.name];a&&a.uuid===r.uuid&&(a.uuid=t.get(r).uuid)}};var o=a(t),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,i){if(i&&i.isAssociation()){var n=i.get_PropName();i.isSingleValuedAssociation()?(h(e,i.name),i.isContainer()?c(e,null,i,i.name):e[n]=null):e[n]._basicRemove(t)}}function l(e){var t=d(e);if(t){var i=e.containerFeature;s(t,e,i);var n=i.opposite;c(e,null,null,n&&n.name)}}function c(e,t,i,r){h(e,r);var a=e.getModel();t&&i?(t.getModel()!==a&&o.default.throwErr("CannotChangeModel"),u(e)&&(0,n.elementNoLongerTopLevel)(a,e),e.containerOrModel=t,e.containerFeature=i):(e.isValid&&!u(e)&&(0,n.elementMadeTopLevel)(a,e),e.containerOrModel=a,e.containerFeature=null)}function d(e){return u(e)?null:e.containerOrModel}function u(e){return!e.containerFeature}function h(e,t){e.getModel&&(0,n.elementModifying)(e.getModel(),e,t)}function p(e,t){e&&e.isValid&&(e.aboutToDestroy(),(0,n.elementDestroying)(e.getModel(),e),function(e){r.default.forEach(e.getMetaClass().getAllAttributes(),(function(t){t.isPrimitiveProperty()||!t.opposite||t.isContainment()||t.isContainer()||(t.isSingleValuedAssociation()?e[t.name]=null:(e[t.name].forEach((function(i){return s(i,e,t.opposite)})),e[t.name]._basicClear()))}))}(e),t&&!u(e)&&s(d(e),e,e.containerFeature),function(e){r.default.forEach(e.getMetaClass().getAllAttributes(),(function(t){t.isContainment()&&(t.isSingleValuedAssociation()?(p(e[t.name]),t.isContainer()?c(e,null,t,t.name):e[t.name]=null):(r.default.forEach(e[t.name].getAllValues(),p),e[t.name]._basicClear()))}))}(e),e._invalidate())}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1293),i(2900)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(t),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};e.default=a(n.default,{promiseLoad:o.default.promiseLoad,loadDefinitions:o.default.loadDefinitions,loadDefinitionFromUri:o.default.loadDefinitionFromUri,loadDefinition:o.default.loadDefinition,extendClass:o.default.extendClass})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(1291),i(1290)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.instantiateDynamicCollection=function(e,t){var i=t.type,n=m.getType(i.qualifiedName);if(!n)return null;if(n!==i)return null;return t.isOrdered?new s.default(e,!1,t):new l.default(e,t)},e.instantiate=function(e){if(e){var t=e.qualifiedName,i=m.get(t);if(i&&m.getType(t)===e){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new(Function.prototype.bind.apply(i,[null].concat(o)))}}};var r=c(t),a=c(i),s=c(n),l=c(o);function c(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),u={},h={},p={},f={};function g(e,t,i){return t||a.default.throwErr("NoQualifiedName"),e[t]&&a.default.throwErr("DuplicateTypeInRegistry: ",t),e[t]=i,i}var m=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return d(e,[{key:"registerType",value:function(e,t){return g(h,t,e)}},{key:"getType",value:function(e){return h[e]}},{key:"addMetaElement",value:function(e,t){return g(p,e,t)}},{key:"getMetaElement",value:function(e){return p[e]}},{key:"addEnumeration",value:function(e,t){r.default.setObject(e,t)}},{key:"registerPackage",value:function(e){return f[e.uri]=e,e}},{key:"unregisterPackage",value:function(e){delete f[e]}},{key:"getPackage",value:function(e){return f[e]}},{key:"registerConstructor",value:function(e,t){r.default.getObject(e)||r.default.setObject(e,t),g(u,e,t)}},{key:"get",value:function(e){return u[e]}},{key:"create",value:function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return new(Function.prototype.bind.apply(this.get(e),[null].concat(i)))}}]),e}());e.default=m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{DO_NOT_DISPLAY:"ToolstripDoNotDisplay",TAB_WIDTH:90}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3084),i(3085),i(3086),i(3087)],o=i.dj.d(n,(function(e,t){return t(e,"mw-dialogs/l10n/nls/dialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240)],o=i.dj.d(n,(function(e){var t={detectIE:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0&&parseInt(e.substring(n+5,e.indexOf(".",n)),10)},isDebugPage:function(){return location.href.indexOf("-debug")>0},addEventListener:function(e,t,i,n){return n=!!n,e.addEventListener(t,i,n),{remove:function(){e.removeEventListener(t,i,n)}}},isCJKLocale:function(){return["ko","ko-kr","ja-jp","zh-cn"].indexOf(e.locale)>-1},isMac:function(){return window.navigator.userAgent.indexOf("Mac")>-1},isLinux:function(){return window.navigator.userAgent.indexOf("Linux")>-1},isUnix:function(){return window.navigator.userAgent.indexOf("X11")>-1},isWindows:function(){return window.navigator.userAgent.indexOf("Win")>-1},OSConstants:{WINDOWS:"Windows",MAC:"Mac",LINUX:"Linux"},getOS:function(){return this.isMac()?this.OSConstants.MAC:this.isLinux()?this.OSConstants.LINUX:this.isWindows()?this.OSConstants.WINDOWS:"Unknown"},isObject:function(e){return e===Object(e)},hasProperties:function(e,i){if(!t.isObject(e))return!1;if(void 0===i)for(var n in e)return!0;else if("string"==typeof i){for(var o in e)if(o===i)return!0}else if(i instanceof Array){var r=0;return i.forEach((function(i){r+=!!t.hasProperties(e,i)})),!!r&&r===i.length}return!1}};return t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(432)],o=i.dj.d(n,(function(e,t){var i=e(null,{iconOverride:"",iconProp:"icon",postCreate:function(){this.inherited(arguments),this.set("iconOverride",this.get("iconOverride"))},_setIconOverrideAttr:function(e){if("string"!=typeof e)throw new Error("'iconOverride' property expects a literal string!");this._removeOldIcon(this.get("iconOverride")),this._set("iconOverride",e),this._updateDOM()},_setIconPropAttr:function(e){this._set("iconProp",e),this._updateDOM()}});return i._dependencies=[{mixin:t,orderDependent:!0}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(447)],o=i.dj.d(n,(function(e,t){var i=e([t],{toDoubleRGBString:function(){var e=this.toDoubleRGB();return"["+e[0].toFixed(2)+" "+e[1].toFixed(2)+" "+e[2].toFixed(2)+"]"},toMATLABFriendlyName:function(){var e=i.namedMATLABColors[this.toHex().toLowerCase()];return e?this.toDoubleRGBString()+" - "+e:this.toDoubleRGBString()},toDoubleRGB:function(){return[this.r/255,this.g/255,this.b/255]}});return i.fromDoubleRGB=function(e){var t=e.map((function(e){return Math.round(255*e)}));return new i(t)},i.toHSV=function(e){var t,i,n,o,r,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),d=c-Math.min(a,s,l),u=function(e){return(c-e)/6/d+.5};return 0===d?(o=0,r=0):(r=d/c,t=u(a),i=u(s),n=u(l),a===c?o=n-i:s===c?o=1/3+t-n:l===c&&(o=2/3+i-t),o<0?o+=1:o>1&&(o-=1)),[Math.round(360*o),Math.round(100*r),Math.round(100*c)]},i.fromHSV=function(e){var t,n,o,r=e[0],a=e[1]/100,s=e[2]/100;if(360===r&&(r=0),0===a)t=s,o=s,n=s;else{var l=r/60,c=Math.floor(l),d=l-c,u=s*(1-a),h=s*(1-a*d),p=s*(1-a*(1-d));switch(c){case 0:t=s,n=p,o=u;break;case 1:t=h,n=s,o=u;break;case 2:t=u,n=s,o=p;break;case 3:t=u,n=h,o=s;break;case 4:t=p,n=u,o=s;break;case 5:t=s,n=u,o=h}}var f=Math.round(255*t),g=Math.round(255*n),m=Math.round(255*o);return new i([f,g,m])},i.getStandardColors=function(){return[["#0072bd","#d95319","#edb120","#7e2f8e","#77ac30","#4dbeee","#a2142f"],["#ffff11","#139fff","#ff6929","#64d413","#b746ff","#0fffff","#ff13a6"],["#ffffff","#f0f0f0","#e6e6e6","#cccccc","#a6a6a6","#808080","#262626"],["#ff0000","#ff00ff","#ffff00","#00ff00","#00ffff","#0000ff","#000000"]].slice()},i.fromMATLABFriendlyName=function(e){return i.namedMATLABColorStrings[e.toLowerCase()]},i.namedMATLABColors={"#ff0000":"red (r)","#ff00ff":"magenta (m)","#ffff00":"yellow (y)","#00ff00":"green (g)","#00ffff":"cyan (c)","#0000ff":"blue (b)","#000000":"black (k)","#ffffff":"white (w)"},i.namedMATLABColorStrings={red:"#ff0000",magenta:"#ff00ff",yellow:"#ffff00",green:"#00ff00",cyan:"#00ffff",blue:"#0000ff",black:"#000000",white:"#ffffff"},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(227),i(210),i(222),i(206),i(256),i(248),i(660),i(713),i(242)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return t("dojo.dnd.Moveable",[r],{handle:"",delay:0,skip:!1,constructor:function(e,t){this.node=n.byId(e),t||(t={}),this.handle=t.handle?n.byId(t.handle):null,this.handle||(this.handle=this.node),this.delay=t.delay>0?t.delay:0,this.skip=t.skip,this.mover=t.mover?t.mover:d,this.events=[a(this.handle,l.press,i.hitch(this,"onMouseDown")),a(this.handle,"dragstart",i.hitch(this,"onSelectStart")),a(this.handle,"selectstart",i.hitch(this,"onSelectStart"))]},markupFactory:function(e,t,i){return new i(t,e)},destroy:function(){e.forEach(this.events,(function(e){e.remove()})),this.events=this.node=this.handle=null},onMouseDown:function(e){this.skip&&c.isFormElement(e)||(this.delay?(this.events.push(a(this.handle,l.move,i.hitch(this,"onMouseMove")),a(this.handle.ownerDocument,l.release,i.hitch(this,"onMouseUp"))),this._lastX=e.pageX,this._lastY=e.pageY):this.onDragDetected(e),e.preventDefault())},onMouseMove:function(e){(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)&&(this.onMouseUp(e),this.onDragDetected(e)),e.stopPropagation(),e.preventDefault()},onMouseUp:function(e){for(var t=0;t<2;++t)this.events.pop().remove();e.stopPropagation(),e.preventDefault()},onSelectStart:function(e){this.skip&&c.isFormElement(e)||(e.stopPropagation(),e.preventDefault())},onDragDetected:function(e){new this.mover(this.node,e,this)},onMoveStart:function(e){s.publish("/dnd/move/start",e),o.add(u.body(),"dojoMove"),o.add(this.node,"dojoMoveItem")},onMoveStop:function(e){s.publish("/dnd/move/stop",e),o.remove(u.body(),"dojoMove"),o.remove(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(e,t){this.onMoving(e,t);var i=e.node.style;i.left=t.l+"px",i.top=t.t+"px",this.onMoved(e,t)},onMoving:function(){},onMoved:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(282),i(270),i(662),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(){this.parent=null,this.boxes={},this.readOnly=!1,this.uid=r.generateUuid()},className:"Node",groupingType:o.BASE,isRootNode:function(){return!1},isRootContainer:function(){return this.parent&&this.parent.isRootNode()},rootContainer:function(){for(var e=this,t=null;e.parent;)if(t=e,(e=e.parent).isRootNode())return t;return null},isTextContainerNode:function(){return!1},isOpaqueNode:function(){return!1},isTextNode:function(){return!1},textContainer:function(){for(var e=this;!e.isTextContainerNode();){if(!e.parent)return e;e=e.parent}return e},isEmpty:function(){var e;if(this.children)for(e=0;e<this.children.length;e+=1)if(!this.children[e].isEmpty())return!1;return!0},containsTextNodes:function(){return!1},isReadOnly:function(){for(var e=this.readOnly,t=this;!e&&t.parent;)e=(t=t.parent).readOnly;return e},isSameTypeAs:function(e){return this.className===e.className},updateAttributes:function(e){var t,i={};for(t in e)e.hasOwnProperty(t)&&(i[t]=this[t],this[t]=e[t]);return i},deleteNode:function(){if(this.parent){var e=i.indexOf(this.parent.children,this);this.parent.removeChild(e)}},serialize:function(e){var t={className:this.className};return this._serializeAttributes(t),e||this.children&&(t.children=this.children.map((function(e){return e.serialize()}))),t},_serializeAttributes:function(e){},nextSibling:function(){var e=this.parent;if(!e)return null;var t=e.children,n=i.indexOf(t,this);return-1===n?null:t[n+1]||null},previousSibling:function(){var e=this.parent;if(!e)return null;var t=e.children,n=i.indexOf(t,this);return-1===n?null:t[n-1]||null},nextNode:function(){var e=this.nextSibling();return e&&e.startNode()?e.startNode():this.parent?this.parent.nextNode():null},prevNode:function(){var e=this.previousSibling();return e&&e.endNode()?e.endNode():this.parent?this.parent.prevNode():null},depth:function(){return this.parent?this.parent.depth()+1:0},getTop:function(e){return e?e.offsetTop:0},defaultHeight:18,getHeight:function(e){if(e){var t=e.offsetHeight;return t>0?t:this.defaultHeight}return 0},getLeft:function(e){return e?e.offsetLeft:0},getWidth:function(e){return e?e.offsetWidth:0},getRight:function(e){var t=this.getLeft(e);return e?t+this.getWidth(e):0},getBottom:function(e){var t=this.getTop(e);return e?t+this.getHeight(e):0},getPositionFromOffset:function(e){return t.assert(e>=0&&e<=this.maxOffset(),"Invalid offset"),new n(this,e)},startPosition:function(){return this.getPositionFromOffset(0)},endPosition:function(){return this.getPositionFromOffset(this.maxOffset())},getEquivalentChildPositions:function(e){return t.error("Unimplemented API: MW.rtc.nodes.Node.getEquivalentChildPositions"),[]},isSplittable:function(e){return t.error("Unimplemented API: MW.rtc.nodes.Node.isSplittable"),!1},resetUniqueAttributes:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{write:function(e,t){throw new Error("Unimplemented Write Method in the handler for node type: "+this.getNodeType())},read:function(e,t){throw new Error("Unimplemented Read Method in the handler for node type: "+this.getNodeType())},getXMLType:function(){throw new Error("Unimplemented getXMLType Method: handler.getXMLType()")},getNodeType:function(){throw new Error("Unimplemented getNodeType Method: handler.getNodeType()")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1841)],o=i.dj.d(n,(function(e,t){return e(t,{handleBeginUpdate:function(e){},hasLayerForLineNumber:function(e){throw new Error("Unimplemented API: MW.rtc.margin.AbstractLineMarginDecorator.hasLayerForLineNumber")},createDecorationForLineNumber:function(e){throw new Error("Unimplemented API: MW.rtc.margin.AbstractLineMarginDecorator.createDecorationForLineNumber")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3509)],o=i.dj.d(n,(function(e){var t;return{getRegistrationFramework:function(){return void 0===t&&(t=new e).init(),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=e([],{constructor:function(e,t,i,n){this._mutation={from:[e,t],to:[i,n]}},getToRange:function(){return{start:this._mutation.to[0],end:this._mutation.to[1]}},getFromRange:function(){return{start:this._mutation.from[0],end:this._mutation.from[1]}},getData:function(){return this._mutation},destroy:function(){}});return{MUTATION_TYPE:{INSERTION:"insertion",DELETION:"deletion",DELETION_WITHOUT_COLLAPSE:"deletionWithoutCollapse",INPLACE:"inplace"},createFromEvent:function(e,t){switch(t){case this.MUTATION_TYPE.INSERTION:return this.create(e.startLine,e.startLine,e.startLine,e.endLine);case this.MUTATION_TYPE.DELETION:return this.create(e.startLine,e.endLine,e.startLine,e.startLine);case this.MUTATION_TYPE.DELETION_WITHOUT_COLLAPSE:return this.create(e.startLine,e.endLine,e.startLine,e.startLine+1);case this.MUTATION_TYPE.INPLACE:default:return this.create(e.startLine,e.endLine,e.startLine,e.endLine)}},create:function(e,i,n,o){return new t(e,i,n,o)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return{fromCodePoint:function(e){return String.fromCodePoint?String.fromCodePoint(e):e>65535?(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e))):String.fromCharCode(e)},escapeHTML:function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},unEscapeHTML:function(e){return e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"')}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(210),i(211),i(213),i(225),i(247),i(665)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){function s(e,i,n){var r;if(t.contains(e,"MathEquation"))r=e;else{var s=o(".MathEquation",e);s.length>0&&(r=s[0])}if(r)return a.exportDomnodeToImageURL(r,i,"image/png",n)}return{exportDomnodeToImageURLPromise:function(e,t,i){return e.then((function(e){return s(e,t,i)}))},exportDomnodeToImageURL:s,simpleEquationToHTML:function(e){var t=n.getComputedStyle(e);return i.create("span",{style:{fontFamily:t.fontFamily,fontStyle:t.fontStyle,fontWeight:t.fontWeight,color:t.color},textContent:e.textContent}).outerHTML}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1091)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){(e=e||{}).children=e.children||[],this.setChildren(e.children)},replaceChild:function(e,t){this.children&&(e!==parseInt(e,10)&&(e=this.children.length),this._setParent(this.children[e],null),this._setParent(t,this),this.children[e]=t)},appendChild:function(e){this.children&&(this._setParent(e,this),this.children.push(e))},setChildren:function(e){this.children&&this.children.forEach(t.hitch(this,(function(e){this._setParent(e,null)}))),e.forEach(t.hitch(this,(function(e){this._setParent(e,this)}))),this.children=e},removeChild:function(e){var t=this.children[e];return this._setParent(t,null),this.children.splice(e,1),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LOCAL_FUNCTION_ATTRIBUTE:"localFunctions",TOP_LEVEL_FUNCTION_ATTRIBUTE:"topLevelFunctions",FUNCTION_ATTRIBUTE:"functions"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NORMAL:{FORMAT:"text",CSS_CLASS:"paragraphNode",DEFAULT_FONT_SIZE:14},TITLE:{FORMAT:"title",CSS_CLASS:"heading-1",DEFAULT_FONT_SIZE:24},HEADING1:{FORMAT:"heading",CSS_CLASS:"heading-2",DEFAULT_FONT_SIZE:20},HEADING2:{FORMAT:"heading2",CSS_CLASS:"heading-3",DEFAULT_FONT_SIZE:17},HEADING3:{FORMAT:"heading3",CSS_CLASS:"heading-4",DEFAULT_FONT_SIZE:15}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{_SMART_INDENT:"SmartIndent",_NO_INDENT:"NoIndent",constructor:function(e,t,i){this._settingsService=t,this._settingKey=e,this._autoIndentingPlugin=i,this.own(this._settingsService.listenToSettingChange(this._settingKey,this._handleSettingsChanged.bind(this))),this._settingsService.getSetting(this._settingKey).then(function(e){this._handleSettingsChanged(e)}.bind(this),function(e){this._handleSettingsChanged(this._SMART_INDENT)}.bind(this))},_handleSettingsChanged:function(e){e===this._SMART_INDENT?this._autoIndentingPlugin.enable():e===this._NO_INDENT&&this._autoIndentingPlugin.disable()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(814),i(4093)],o=i.dj.d(n,(function(e,t,i){return{isSuggestionWidget:function(e){var i=e.widgetType;return i===t.COMPLETION||i===t.FILE_NAME},isFunctionAssistantWidget:function(e){var t=e.signatures;return t&&t.length>0},getNumberOfViewableChoices:function(e){return e?e.get("numberOfViewableChoices"):0},getNumberOfChoices:function(e){return e?e.get("numberOfChoices"):0},getSelectedCompletion:function(e){if(!e)return null;var t=e.get("value");return t||e.get("valueOfFirstChoice")},isChoiceSameAsTypedCode:function(e){return this.getSelectedCompletion(e.widget)===e.code},getCompletionChoices:function(e){return e?e.get("choices"):[]},createWidget:function(n,o){var r=n.getData(),a=null,s=r.signatures,l=r.shared;if(n.customizeWidgetData(o),s&&s.length>0){var c=!n.isCallingSyntaxObjectOrCell();(a=new i[t.FUNCTION_ASSISTANT]({data:r})).set("showHelp",c)}else{var d=null;if(l?d=l:r.widgetType&&(d=r),d&&i[d.widgetType]){var u=i[d.widgetType];if(u)a=new u(e.mixin({},d.widgetData))}}return a},getCustomizersOfWidgetType:function(e,t){return e.filter((function(e){return e.getApplicableWidgetType()===t}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){class e{constructor(e,t,i){this.r=e,this.g=t,this.b=i}equals(t){return t instanceof e&&(this===t||this.r===t.r&&this.g===t.g&&this.b===t.b)}toString(){return this._rgbString||(this._rgbString=`rgb(${this.r}, ${this.g}, ${this.b})`),this._rgbString}toHexString(){return`#${this.r.toString(16)}${this.g.toString(16)}${this.b.toString(16)}`}}return e}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){var e="d"===location.href.slice(-1);return{sequence:function(){var t=arguments;return function(i){e&&(console.log("~~~~~~~~~~~"),console.log(i));for(var n=0;n<t.length;n++)i=t[n].call(this,i),e&&console.log(i.internalData);return e&&console.log(i),i}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t){this._output=t,this._instruction=e},getOutput:function(){return this._output},getInstruction:function(){return this._instruction}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2047),i(268)],o=i.dj.d(n,(function(e,t){"use strict";var i=new e,n={symbol:-1,mtext:-2};function o(e,i){if("MathText"===e.className&&t.categorizeNode(i)===t.CATEGORY.ATOM){var o=n[e.kind]||0;if((n[i.kind]||0)>o)return!1}return!0}function r(e){return"placeholder-atom"===e["data-category"]?0:e.children?e.children.length:"MathText"===e.className?e.text.length:1}return{adaptPositionToAtoms:function(e,i,n){if(i){var r=t.categorizeNode(i);"atom"===r?(e.id=i.id,e.offset=i.text.length):"placeholder-atom"===r?(e.id=i.id,e.offset=0):i=null}if(n){var a=t.categorizeNode(n);"atom"!==a||i&&o(i,n)?"placeholder-atom"===a&&(e.id=n.id,e.offset=0):(e.id=n.id,e.offset=0)}return e},availableCursorPosition:function(e){return i.visit(e),i.visitedCounter()},_cursorPositionVisitorForTestingOnly:i,positionsEqual:function(e,t){return e.id===t.id&&e.offset===t.offset},logicalFromPosition:function(e,t){return i.visit(t,{atom:function(t){if(e.id===t.id)return i.visitedCounter()+e.offset},row:function(t,n){if(e.id===t.id&&n===e.offset)return i.visitedCounter()}})},nodeLength:r,positionFromLogical:function(e,t){return i.visit(t,{atom:function(t){var n=e-i.visitedCounter();if(n<r(t))return{id:t.id,offset:n};if(n===r(t)){var a=i.getNextSibling();if("placeholder"!==i.parentCategory()||!a||o(t,a))return{id:t.id,offset:n}}},placeholder:function(t,n){if(e===i.visitedCounter())return{id:t.id,offset:n}}})},shouldCursorMergeToLeft:o}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(219),i(4862),i(4863),i(4865)],o=i.dj.d(n,(function(e,t,i,n){return{_internalClipboard:null,_browserSyncedClipboard:null,getInternalClipboard:function(){return this._internalClipboard||(this._internalClipboard=new t),this._internalClipboard},getConnectorClipboard:function(){return new i(e)},getBrowserSyncedClipboard:function(){return this._browserSyncedClipboard||(this._browserSyncedClipboard=new n),this._browserSyncedClipboard},createClipboard:function(){return new t},destroy:function(e){e instanceof i&&e.destroy()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{wordWrap:!1,postCreate:function(){this.inherited(arguments),this.setWordWrap(this.wordWrap)},setWordWrap:function(e){this.wordWrap=e,e?(this.domNode.classList.remove("vc-wordWrapOff"),this.domNode.classList.add("vc-wordWrapOn")):(this.domNode.classList.remove("vc-wordWrapOn"),this.domNode.classList.add("vc-wordWrapOff"))},getWordWrap:function(){return this.wordWrap}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(244),i(212),i(688)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"computeTableHeight",value:function(e,t){return(e*t||0)+"px"}},{key:"generateUuid",value:function(){return"xxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).toUpperCase()}},{key:"isViewPortRangeInDataBuffer",value:function(e){var t=e.viewPort.rangeList[0],i=e.viewBuffer.rangeList[0],n=Math.max(0,t.rows.start-4),o=t.rows.end+4;return n>=i.rows.start&&o<=i.rows.end}},{key:"getRangeListForRange",value:function(t,i,n){var o=Math.max(i,t.dataSize.rows.start),r=Math.min(n,t.dataSize.rows.end);return[e.range().setRows(o,r).setColumns(0,0)]}},{key:"dynamicScrollTopCalculator",value:function(e,i){return function(n){n.top=i.viewPort.size.top,n.left=i.viewPort.size.left,t.calculateAndUpdateViewPort(i,n);var o=i.getStateByKey("nodeHeightInPx").value,r=function(t){var n=t.rangeList[0].rows;if(n.start<=e&&e<=n.end)return n.start;var o=e-(n.count-1);return Math.max(i.dataSize.rows.start,o)}(i.viewPort),a=r+(i.viewPort.rangeList[0].rows.count-1),s=i.viewPort.rangeList[0].rows.start!==r?r*o:n.top;if(e===a){var l=i.viewPort.rangeList[0].rows.count*o-i.viewPort.size.height;return s=l>0?s+l:s}return s}}},{key:"calculateAndUpdateViewPort",value:function(e,i){var n=0,o=0,r=e.getStateByKey("nodeHeightInPx");r&&(r=r.value,n=Math.round(i.height/r),o=Math.round(i.top/r)),t.updateViewPort(e,o,n,i)}},{key:"updateViewPort",value:function(e,t,i,n){var o=e.viewPort,r=0,a=0;n&&(o.size=n),"number"==typeof t&&t>=0&&(r=Math.max(t,e.dataSize.rows.start)),a="number"==typeof i&&i>0?Math.max(0,r+i-1):Math.max(0,r+o.rangeList[0].rows.count-1);var s=o.rangeList;s[0]=s[0].setRows(r,a).setColumns(0,0),o.rangeList=s,e.viewPort=o}},{key:"updateDataBuffer",value:function(i,n){if(n||!t.isViewPortRangeInDataBuffer(i)){var o=i.getStateByKey("lookAheadNodeBuffer").value,r=Math.max(i.dataSize.rows.start,i.viewPort.rangeList[0].rows.start-o),a=i.viewPort.rangeList[0].rows.end+o;i.viewBuffer={size:null,rangeList:[e.range().setRows(r,a).setColumns(0,0)]}}}},{key:"getSelectedNodes",value:function(e){var t=void 0,i=e.getStateByKey("selected");if(i&&(t=i.rangeList[0]),t&&t.length){var n=t.map((function(e){return{id:e.id}}));if(n.length>0)return n}return[]}},{key:"removeNodeSelectionState",value:function(e,t){var i=void 0,n=e.getStateByKey("selected");if(n&&(i=n.rangeList[0]),i&&i.length){var o=i.filter((function(e){return e.id!==t.id}));e.setState("selected",!0,[o])}}},{key:"removeNodeFocusState",value:function(e,t){var i=e.getStateByKey("focused");i&&i.value&&(i=i.value,t.id===i.id&&e.deleteState("focused"))}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(284)],o=i.dj.d(n,(function(e,t){return e(null,{_Visible:function(e){this.widget.setVisibility(t.toJSBoolean(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({ROW_HEADER:"ROW_HEADER",COLUMN_HEADER:"COLUMN_HEADER",TABLE_CELL:"TABLE_CELL",TREE_CELL:"TREE_CELL",TABLE:"TABLE",TABLE_ROW:"TABLE_ROW",TREETABLE:"TREETABLE",TREETABLE_ROW:"TREETABLE_ROW"})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(460)],o=i.dj.d(n,(function(e,t){"use strict";return function(){function i(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var o=new e;void 0===t&&(t=""),this.config=n,this._emit=o.emit.bind(o),this.on=o.on.bind(o),this._handleKeyDown=this._handleKeyDown.bind(this),this._handleBlur=this._handleBlur.bind(this);var r=document.createElement("div");this._oldValue=t;var a=this._textField=document.createElement("input");a.input="text",a.value=t,a.tabIndex=0,r.appendChild(a),this._domNode=r,a.className="mwTableTextEditor",this._textField.addEventListener("blur",this._handleBlur),this._textField.addEventListener("keydown",this._handleKeyDown)}return r(i,[{key:"_handleBlur",value:function(){this._handleEdit()}},{key:"_handleEdit",value:function(){var e=this._textField.value,t=this._oldValue;t!==e?this._emit("editComplete",{newValue:e,oldValue:t}):this._emit("editCanceled")}},{key:"_handleKeyDown",value:function(e){switch(e.stopPropagation(),e.keyCode){case 27:this._emit("editCanceled");break;case 13:this._handleEdit();break;case t.PAGE_UP:case t.PAGE_DOWN:e.preventDefault()}}},{key:"setFocus",value:function(){this._textField.setSelectionRange(0,this._textField.value.length),this._textField.focus()}},{key:"getDomNode",value:function(){return this._domNode}},{key:"destroy",value:function(){this._textField.removeEventListener("blur",this._handleBlur),this._textField.removeEventListener("keydown",this._handleKeyDown),delete this._textField,delete this._domNode}},{key:"value",get:function(){return this._textField.value},set:function(e){this._textField.value=e}}]),i}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[],o=i.dj.d(n,(function(){var e=function(e){return 0===e||e>0},t=function(t,i){if(!e(t))throw new Error("Invalid start value set");if(!e(i)&&(0!==t||-1!==i))throw new Error("Invalid end value set");var n={};return Object.defineProperty(n,"start",{value:t,enumerable:!0}),Object.defineProperty(n,"end",{value:i,enumerable:!0}),Object.defineProperty(n,"count",{value:i-t+1,enumerable:!0}),n},i=function(e,t){return t.start<=e.end&&t.end>=e.start},n=function(e,t,i,n){return new s(i,n,e,t)},o=function(e,t,i,n){return new s(e,t,i,n)},s=function(){function e(i,n,o,r){a(this,e),Object.defineProperties(this,{rows:{value:t(i,n),enumerable:!0},columns:{value:t(o,r),enumerable:!0}})}return r(e,[{key:"setEntireColumns",value:function(t,i){return void 0===i&&(i=t),new e(0,1/0,t,i)}},{key:"setEntireRows",value:function(t,i){return void 0===i&&(i=t),new e(t,i,0,1/0)}},{key:"setColumns",value:function(t,i){return new e(this.rows.start,this.rows.end,t,i)}},{key:"setRows",value:function(t,i){return new e(t,i,this.columns.start,this.columns.end)}},{key:"column",get:function(){return this.columns.start===this.columns.end&&0===this.rows.start&&this.rows.end===1/0?this.columns.start:null}},{key:"row",get:function(){return this.rows.start===this.rows.end&&0===this.columns.start&&this.columns.end===1/0?this.rows.start:null}}]),e}();return Object.defineProperty(s.prototype,"row",{enumerable:!0}),Object.defineProperty(s.prototype,"column",{enumerable:!0}),function(){function e(){a(this,e)}return r(e,null,[{key:"range",value:function(){return new s(0,-1,0,-1)}},{key:"doesRangeListIntersect",value:function(t,i){for(var n=0;n<t.length;n+=1)for(var o=0;o<i.length;o+=1)if(e.doesRangeIntersect(t[n],i[o]))return!0;return!1}},{key:"doesRangeIntersect",value:function(e,t){return e.columns.start<=t.columns.end&&e.columns.end>=t.columns.start&&e.rows.start<=t.rows.end&&e.rows.end>=t.rows.start}},{key:"isRangeEqual",value:function(e,t){return e===t||e.columns.start===t.columns.start&&e.columns.end===t.columns.end&&e.rows.start===t.rows.start&&e.rows.end===t.rows.end}},{key:"isRangeInside",value:function(e,t){return e===t||e.columns.start<=t.columns.start&&e.columns.end>=t.columns.end&&e.rows.start<=t.rows.start&&e.rows.end>=t.rows.end}},{key:"isRowRange",value:function(e){return 0===e.columns.start&&e.columns.end===1/0}},{key:"isColumnRange",value:function(e){return 0===e.rows.start&&e.rows.end===1/0}},{key:"groupRangeListByRow",value:function(t){return e._groupRangeList(t,"rows")}},{key:"groupRangeListByColumn",value:function(t){return e._groupRangeList(t,"columns")}},{key:"removeRowsFromRangeList",value:function(t,i){return e._removeIntervalFromRank("rows",t,i,o)}},{key:"removeColumnsFromRangeList",value:function(t,i){return e._removeIntervalFromRank("columns",t,i,n)}},{key:"removeRangeFromRangeList",value:function(t,i){for(var n=[],o=0;o<t.length;o+=1)n=n.concat(e._removeIntersection(t[o],i));return n}},{key:"isRangeInsideRangeList",value:function(t,i){for(var n=[t],o=0;o<i.length&&n.length>0;o+=1){var r=i[o];n=e.removeRangeFromRangeList(n,r)}return 0===n.length}},{key:"_removeIntersection",value:function(t,i){var r=[{rank:"columns",secondaryRank:"rows",makeRange:n},{rank:"rows",secondaryRank:"columns",makeRange:o}],a=t,s=[];return e.doesRangeIntersect(t,i)?r.forEach((function(e){var t=e.rank,n=e.secondaryRank,o=e.makeRange,r=a[t],l=i[t],c=[a[n].start,a[n].end];r.start<l.start&&(s.push(o.apply(void 0,[r.start,l.start-1].concat(c))),a=o.apply(void 0,[l.start,r.end].concat(c))),l.end<r.end&&(s.push(o.apply(void 0,[l.end+1,r.end].concat(c))),a=o.apply(void 0,[a[t].start,l.end].concat(c)))})):s=[t],s}},{key:"_removeIntervalFromRank",value:function(e,t,n,o){var r="columns",a=[];"columns"===e&&(r="rows");for(var s=0;s<t.length;s+=1){var l=t[s],c=l[e],d=c.start,u=c.end,h=[l[r].start,l[r].end];i(l[e],n)?l[e].end<=n.end&&l[e].start>=n.start||(l[e].start>=n.start?a.push(o.apply(void 0,[n.end+1,u].concat(h))):l[e].end<=n.end?a.push(o.apply(void 0,[d,n.start-1].concat(h))):(a.push(o.apply(void 0,[d,n.start-1].concat(h))),a.push(o.apply(void 0,[n.end+1,u].concat(h))))):a.push(l)}return a}},{key:"_groupRangeList",value:function(t,i){var n=[],o={};return t.forEach((function(t){var r=e._hashRankFromRange(t,i),a=o[r];a>=0?n[a].push(t):(a=n.length,o[r]=a,n[a]=[t])})),n}},{key:"_hashRankFromRange",value:function(e,t){var i=e[t].start,n=e[t].end;return 0===e[t].count?-1:n*n+n+i}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(366)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_client.ViewUpdatedListenersMixin",[],{viewRenderingInProgressListener:null,viewRenderingCompleteListener:null,viewSizeChangedListener:null,viewDataChangedListener:null,viewTableMetaDataChangedListener:null,viewColumnMetaDataChangedListener:null,viewRowMetaDataChangedListener:null,viewCellMetaDataChangedListener:null,doubleClickOnCellListener:null,_viewModel:null,initListenersOnView:function(e,t){this._viewModel=e;var i=this._validateOptions(t);i&&this._addListenersOnView(i)},_validateOptions:function(e){if(Array.isArray(e)&&!(e.length<0))return e=e.filter((function(e){var i=this._isValidEventOnView(e);return i||t.warn(e+" is not a valid event on the view"),i}),this);t.warn("Expecting an array of event listeners to be added")},_isValidEventOnView:function(e){for(var t in i)if(i.hasOwnProperty(t)&&i[t]===e)return!0;return!1},_addListenersOnView:function(e){this.viewRenderingInProgressListener=this._attachListenerToCallback(this._handleViewRendering,i.VIEW_RENDERING,e),this.viewRenderingCompleteListener=this._attachListenerToCallback(this._handleViewRendered,i.VIEW_RENDERED,e),this.viewSizeChangedListener=this._attachListenerToCallback(this._handleSizeChanged,i.SIZE_CHANGED,e),this.viewDataChangedListener=this._attachListenerToCallback(this._handleDataChanged,i.DATA_CHANGED,e),this.viewTableMetaDataChangedListener=this._attachListenerToCallback(this._handleTableMetaDataChanged,i.TABLE_META_DATA_CHANGED,e),this.viewColumnMetaDataChangedListener=this._attachListenerToCallback(this._handleColumnMetaDataChanged,i.COLUMN_META_DATA_CHANGED,e),this.viewRowMetaDataChangedListener=this._attachListenerToCallback(this._handleRowMetaDataChanged,i.ROW_META_DATA_CHANGED,e),this.viewCellMetaDataChangedListener=this._attachListenerToCallback(this._handleCellMetaDataChanged,i.CELL_META_DATA_CHANGED,e),this.doubleClickOnCellListener=this._attachListenerToCallback(this._handleDoubleClickOnMetaDataCell,i.DOUBLE_CLICK_ON_METADATA_CELL,e)},_attachListenerToCallback:function(e,t,i){var n=null;return i.indexOf(t)>-1&&(n=e.bind(this),this._viewModel.addEventListener(t,n)),n},_handleViewRendering:function(e){t.warn("_handleViewRendering To Be overridden by superclass")},_handleViewRendered:function(e){t.warn("_handleViewRendered To Be overridden by superclass")},_handleSizeChanged:function(e){t.warn("_handleSizeChanged To Be overridden by superclass")},_handleDataChanged:function(e){t.warn("_handleDataChanged To Be overridden by superclass")},_handleTableMetaDataChanged:function(e){t.warn("_handleTableMetaDataChanged To Be overridden by superclass")},_handleColumnMetaDataChanged:function(e){t.warn("_handleColumnMetaDataChanged To Be overridden by superclass")},_handleRowMetaDataChanged:function(e){t.warn("_handleRowMetaDataChanged To Be overridden by superclass")},_handleCellMetaDataChanged:function(e){t.warn("_handleCellMetaDataChanged To Be overridden by superclass")},_handleDoubleClickOnMetaDataCell:function(e){t.warn("_handleDoubleClickOnMetaDataCell To Be overridden by superclass")},removeListener:function(e,t){t&&(this._viewModel.removeEventListener(e,t),t=null)},removeAllListenersOnView:function(){this.destroy()},destroy:function(){this.removeListener(i.VIEW_RENDERING,this.viewRenderingInProgressListener),this.removeListener(i.VIEW_RENDERED,this.viewRenderingCompleteListener),this.removeListener(i.SIZE_CHANGED,this.viewSizeChangedListener),this.removeListener(i.DATA_CHANGED,this.viewDataChangedListener),this.removeListener(i.TABLE_META_DATA_CHANGED,this.viewTableMetaDataChangedListener),this.removeListener(i.COLUMN_META_DATA_CHANGED,this.viewColumnMetaDataChangedListener),this.removeListener(i.ROW_META_DATA_CHANGED,this.viewRowMetaDataChangedListener),this.removeListener(i.CELL_META_DATA_CHANGED,this.viewCellMetaDataChangedListener),this.removeListener(i.DOUBLE_CLICK_ON_METADATA_CELL,this.viewCellMetaDataChangedListener),delete this.viewRenderingInProgressListener,delete this.viewRenderingCompleteListener,delete this.viewSizeChangedListener,delete this.viewDataChangedListener,delete this.viewTableMetaDataChangedListener,delete this.viewColumnMetaDataChangedListener,delete this.viewRowMetaDataChangedListener,delete this.viewCellMetaDataChangedListener,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(308)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t,i){this._settingKey=e,this._label=t,this._attachPointNode=i,this._createCheckboxComponent()},getSettingKey:function(){return this._settingKey},getLabel:function(){return this._label},getAttachPointNode:function(){return this._attachPointNode},_createCheckboxComponent:function(){this._checkbox=new t({tag:this.getSettingKey(),text:this.getLabel(),disabled:!0})},getAssociatedWidget:function(){return this._checkbox},placeInPanel:function(){var e=this.getAssociatedWidget(),t=this.getAttachPointNode();e.placeAt(t)},setFocus:function(){this._checkbox.focusNode.focus()},getNode:function(){return this._checkbox.domNode},isUnchecked:function(){return!this._checkbox.checked}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(443),i(241),i(2497)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e){this.fCommandName=null,this.fProgressHandler=new o,e=e||{},this.fPaths=[],this.fCommandExecutor=e.commandExecutor,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!1,this.orderPriorityWithinSection=e.orderPriorityWithinSection,this.isApplicableTo=function(e){return!0},this.callback=function(e){0!==this.fPaths.length&&this.fCommandExecutor.executeWithProgress(this.fProgressHandler,this.fCommandName,...this.fPaths).then(()=>{}).catch(e=>{n.displayAlertDialog(i.ErrorDialogTitle,e)})},this.setPaths=function(e){this.fPaths=e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7679),i(7680),i(7681),i(7682)],o=i.dj.d(n,(function(e,t){return t(e,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/actions",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7866)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/dialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8521),i(8522),i(8523),i(8524)],o=i.dj.d(n,(function(e,t){return t(e,"project-labels-ui/l10n/gen/resources/MATLAB/project/nls/view_labels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1250),i(241)],o=i.dj.d(n,(function(e,t){"use strict";var i={displayError:function(i,n){return n=n||{},t.displayAlertDialog(n.title||e.Error,i,{closeCallback:n.closeCallback,icon:n.icon||"error"})}};return i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8808),i(8809),i(8810),i(8811)],o=i.dj.d(n,(function(e,t){return t(e,"inspector_client/l10n/nls/app",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(359)],o=i.dj.d(n,(function(e,t,i,n){return e([t,i,n],{update:function(e,t){Array.isArray(e)&&e.length>0&&e[0].needUpdateInPlaceEditor&&!0===e[0].needUpdateInPlaceEditor||this._updateEditor(e,t)},onOpen:function(){},_updateEditor:function(e,t){},updateState:function(e,t){},_commitValue:function(e,t,i,n){this.dispatchEvent("propertyValueChanged",this,{propertyName:e,source:n,oldValue:t,newValue:i,needUpdateInPlaceEditor:!0})},_getKeyCode:function(e){var t=e.which||e.keyCode||e.charCode||e.key||null;return t>95&&t<112?t-48:t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){var t,i=function(){return this}(),n=document,o={loaded:1,complete:1},r="string"!=typeof n.readyState,a=!!o[n.readyState],s=[];function l(e){s.push(e),a&&c()}function c(){if(!t){for(t=!0;s.length;)try{s.shift()(n)}catch(e){console.error(e,"in domReady callback",e.stack)}t=!1,l._onQEmpty()}}if(l.load=function(e,t,i){l(i)},l._Q=s,l._onQEmpty=function(){},r&&(n.readyState="loading"),!a){var d=[],u=function(e){e=e||i.event,a||"readystatechange"==e.type&&!o[n.readyState]||(r&&(n.readyState="complete"),a=1,c())},h=function(e,t){e.addEventListener(t,u,!1),s.push((function(){e.removeEventListener(t,u,!1)}))};if(!e("dom-addeventlistener")){h=function(e,t){t="on"+t,e.attachEvent(t,u),s.push((function(){e.detachEvent(t,u)}))};var p=n.createElement("div");try{p.doScroll&&null===i.frameElement&&d.push((function(){try{return p.doScroll("left"),1}catch(e){}}))}catch(e){}}if(h(n,"DOMContentLoaded"),h(i,"load"),"onreadystatechange"in n?h(n,"readystatechange"):r||d.push((function(){return o[n.readyState]})),d.length){var f=function(){if(!a){for(var e=d.length;e--;)if(d[e]())return void u("poller");setTimeout(f,30)}};f()}}return l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(245),i(767),i(2837),i(1037),i(1709),i(2840)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=[];for(var l in i)s.push(i[l]);var c=[];for(var l in o)c.push(o[l]);var d,u,h=function(a,s){g(a),Array.isArray(a)||(a=[a]);var l=o.Unspecified;if(void 0!==s&&!e.isObject(s))throw new Error("Optional platform must be an object with a Platform property");if(e.isObject(s)){if(!s.hasOwnProperty("platform"))throw new Error("No platform property specified in optional platform object");if(-1===c.indexOf(s.platform))throw new Error("Invalid platform for a binding : "+s.platform);if((l=s.platform)!==o.Mac&&f(i.COMMAND,a))throw new Error("Can not create a binding with the COMMAND key and specify platform other than mac")}for(var d=[],u=[],h=0;h<a.length;h++){var _=a[h];if(-1!==n.indexOf(_)){if(0!==u.length)throw new Error(" modifier keys must come before keycode");d.push(_)}else u.push(_)}var v=f(i.CTRL,d),b=f(i.SHIFT,d),y=f(i.ALT,d),C=f(i.COMMAND,d);f(i.SYSCTRL,d)&&(t("mac")?C=!0:v=!0);var T=r.getString(d.concat(u));m(u,T);var E=p([v,b,y,C],u[0],l);return{hasCtrlKey:v,hasShiftKey:b,hasAltKey:y,hasMetaKey:C,keyCode:u[0],shortcut:T,platform:l,keySequenceIdentifier:E}},p=function(e,t,i){var n={modifierKeys:e,keyCode:t,platform:i};return JSON.stringify(n)},f=function(e,t){var i=!1;return-1!==t.indexOf(e)&&(i=!0),i},g=function(e){if(void 0===e)throw new Error("Invalid key sequence for a binding: cannot be null");if(Array.isArray(e)||(e=[e]),0===e.length)throw new Error("Invalid key sequence for a binding: cannot be empty");for(var t=0;t<e.length;t++){var i=e[t];if(void 0===i||-1===s.indexOf(i))throw new Error("Invalid keyCode for a binding : "+e[t])}},m=function(e,t){if(0===e.length)throw new Error("Invalid key sequence: "+t+". Excluding modifiers, there must be one key for the binding");if(1!==e.length)throw new Error("Invalid key sequence: "+t+". Excluding modifiers, there can only be one key for the binding")},_=JSON.parse(a),v=(d=Object.keys(_),u={},d.forEach((function(e){var t=_[e],n=t.keys,r=[],a=Object.keys(t.platform);a.push(o.Unspecified),n.forEach((function(e){if(!i.hasOwnProperty(e))throw new Error("Invalid key entry in the json file for the conflicting Key Binding");r.push(i[e])})),a.forEach((function(e){var i=h(r,{platform:o[e]}).keySequenceIdentifier;u[i]=t}))})),u);return{generateKeySequenceIdentifier:p,getKeyBindingData:h,validateNoBrowserConflicts:function(e){var t=e.keySequenceIdentifier;if(v[t]){var i=v[t].platform;console.warn("The requested key binding "+e.shortcut+" is a known browser conflict which is not supported in \n"+JSON.stringify(i))}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(223)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{postCreate:function(){this.inherited(arguments),this.own(i(this.domNode,"keydown",t.hitch(this,(function(e){e.keyCode===n.SPACE&&-1===Array.prototype.slice.call(this.domNode.classList).indexOf("mwComboBox")&&e.preventDefault(),setTimeout(t.hitch(this,(function(){if(!0!==this.get("disabled"))switch(e.keyCode){case n.ENTER:case n.SPACE:this._emitClickEvent(e)}})),0)})))),this.own(i(this.domNode,"keyup",t.hitch(this,(function(e){var t=e.keyCode===n.ENTER||e.keyCode===n.SPACE,i=/input|button|textarea/i.test(e.target.nodeName);t&&!i&&e.stopPropagation()}))))},_emitClickEvent:function(e){i.emit(e.target,"click",{bubbles:!0,cancelable:!0,mwEventData:{keyCode:e.keyCode},_dojo_click:!0})},_qeClick:function(){this.emit("click")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(409)],o=i.dj.d(n,(function(e,t,i,n){var o=e(null,{checked:!1,checkableNode:null,_treatAsUserEvent:!0,postCreate:function(){this.get("checkableNode")||this.set("checkableNode",this.domNode),this.inherited(arguments),this.domNode.classList.add("mwCheckedMixin"),this.own(i(this.get("checkableNode"),"click",t.hitch(this,"_onClick")))},_setCheckedAttr:function(e,t){this._treatAsUserEvent=t,this._set("checked",e),this._setAriaPressed(),this._setAriaChecked(),this.baseClass.split(" ").forEach((function(t){e?this.domNode.classList.add(t+"Checked"):this.domNode.classList.remove(t+"Checked")}),this)},_setCheckableNodeAttr:function(e){this.checkableNode=e||this.domNode},_setAriaPressed:function(){var e=this.buttonNode||this.focusNode||this.domNode;e.hasAttribute("aria-pressed")&&e.setAttribute("aria-pressed",this.get("checked"))},_setAriaChecked:function(){var e=this.focusNode?this.focusNode:this.domNode;e.hasAttribute("aria-checked")&&e.setAttribute("aria-checked",this.get("checked"))},_onClick:function(){var e=this.get("checked"),t=!this.get("checked");this.set("checked",t,!0),this._triggerChangeEvent("checked",e,t)}});return o._dependencies=[{mixin:n,orderDependent:!1}],o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(228),i(210),i(240),i(245),i(204),i(328),i(216),i(360),i(316),i(2867)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=e("dijit.MenuItem"+(r("dojo-bidi")?"_NoBidi":""),[s,l,c,d],{templateString:u,baseClass:"dijitMenuItem",label:"",_setLabelAttr:function(e){this._set("label",e);var t,i,n="",o=e;if("object"==typeof o&&(o=o.label||o.value),"string"==typeof o){if((i=o.search(/{\S}/))>=0){n=o.charAt(i+1);var r=o.substr(0,i),a=o.substr(i+3);t=r+n+a,e=r+'<span class="dijitMenuItemShortcutKey">'+n+"</span>"+a}else t=o;this.domNode.setAttribute("aria-label",t+" "+this.accelKey)}this.containerNode.innerHTML=e,this._set("shortcutKey",n)},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:!1,_fillContent:function(e){e&&!("label"in this.params)&&this._set("label",e.innerHTML)},buildRendering:function(){this.inherited(arguments);var e=this.id+"_text";i.set(this.containerNode,"id",e),this.accelKeyNode&&i.set(this.accelKeyNode,"id",this.id+"_accel"),t.setSelectable(this.domNode,!1)},onClick:function(){},focus:function(){try{8==r("ie")&&this.containerNode.focus(),this.focusNode.focus()}catch(e){}},_setSelected:function(e){n.toggle(this.domNode,"dijitMenuItemSelected",e)},setLabel:function(e){o.deprecated("dijit.MenuItem.setLabel() is deprecated. Use set('label', ...) instead.","","2.0"),this.set("label",e)},setDisabled:function(e){o.deprecated("dijit.Menu.setDisabled() is deprecated. Use set('disabled', bool) instead.","","2.0"),this.set("disabled",e)},_setDisabledAttr:function(e){this.focusNode.setAttribute("aria-disabled",e?"true":"false"),this._set("disabled",e)},_setAccelKeyAttr:function(e){this.accelKeyNode&&(this.accelKeyNode.style.display=e?"":"none",this.accelKeyNode.innerHTML=e,i.set(this.containerNode,"colSpan",e?"1":"2")),this._set("accelKey",e)}});return r("dojo-bidi")&&(h=e("dijit.MenuItem",h,{_setLabelAttr:function(e){this.inherited(arguments),"auto"===this.textDir&&this.applyTextDir(this.textDirNode)}})),h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.data=1,e.parameter=2,e.debug=4,e.info=8,e.event=16,e.scope_entry=32,e.scope_exit=64,e.return_value=128,e.warning=256,e.error=512,e.critical=1024,e.fatal=2048,e.none=0,e.all=4095}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(1738),i(564),i(778),i(566),i(1057),i(1058),i(1742),i(1743),i(396),i(345),i(885),i(2898),i(1744),i(1295),i(884),i(2899),i(610)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPackage=z,e.elementCreated=K,e.startParse=function(e){return new W(e)},e.resurrectElement=function(e,t){t.isValid=!0,e.elements.set(t.uuid,t),(0,o.isTopLevel)(t)&&e.topLevelElements.set(t.uuid,t)},e.transactionEnded=function(e){e.currentTransaction&&e.currentTransaction.cancel();e.updateLastSeenTransactionOrdinal(e.currentTransaction.origin.transactionFactory,e.currentTransaction.origin.transactionOrdinal),e.currentTransaction=null},e.getExtensionDefault=function(e,t,i){var n=e.getExtension(t,i);if(n)for(var o=e.defaultDynamicValues.get(i),r=0,a=o.length;r<a;++r)if(o[r].extension===n)return o[r].defaultValue;C.default.throwErr("NoSuchExtension",i,t.qualifiedName)},e.getMetaRegistryModel=ee,e._startMetaRegistryModification=te;var y=R(t),C=R(i),T=R(n),E=R(a),S=R(l),w=R(c),I=R(d),A=R(u),x=R(h),N=R(f),L=R(g),D=R(m),M=R(_),P=R(v),O=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(b);function R(e){return e&&e.__esModule?e:{default:e}}var k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function F(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function B(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function H(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var V=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),j=function(){function e(t){H(this,e),this.model=t,this.thawCount=0,++this.model.freezeCount}return V(e,[{key:"destroy",value:function(){this.model&&(0!==this.thawCount&&C.default.throwErr("ThawCountZero"),--this.model.freezeCount,this.model=null)}},{key:"isActive",value:function(){return 0===this.thawCount}},{key:"thaw",value:function(){return new U(this)}}]),e}();var U=function(){function e(t){H(this,e),this.freezer=t,this.active=!0,function(e){1==++e.thawCount&&--e.model.freezeCount}(t)}return V(e,[{key:"destroy",value:function(){var e;this.active&&(0==--(e=this.freezer).thawCount&&++e.model.freezeCount,this.freezer=null,this.active=!1)}},{key:"isActive",value:function(){return this.active}}]),e}(),W=function(){function e(t){H(this,e),this.model=t,++t.parsingInProgress}return V(e,[{key:"destroy",value:function(){--this.model.parsingInProgress}}]),e}(),G=function(e){function t(){H(this,t);var e=F(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.rootPackage2Count={},e.uri2Package={},e}return B(t,e),V(t,[{key:"getUsedPackageUris",value:function(){return y.default.map(this.getUsedPackages(),"uri")}},{key:"getUsedPackages",value:function(){for(var e=[],t=Object.keys(this.uri2Package),i=0,n=t.length;i<n;++i){var o=t[i];this.rootPackage2Count[o]>0&&e.push(this.uri2Package[o])}return e}},{key:"elementCreated",value:function(e){var t=z(e);if(t){var i=t.uri;this.rootPackage2Count[i]?++this.rootPackage2Count[i]:(this.rootPackage2Count[i]=1,this.uri2Package[i]=t)}}},{key:"elementDestroying",value:function(e){var t=z(e).uri;t&&--this.rootPackage2Count[t]}},{key:"clear",value:function(){this.rootPackage2Count={},this.uri2Package={}}}]),t}(N.default);function z(e){return e.getMetaClass().getRootPackage()}var q=function(e){function t(e){H(this,t);var i=F(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return P.default.register(),i.topLevelElements=new Map,i.elements=new Map,i.currentTransaction=null,i.listeners=[],i.transactionDepth=p.TransactionDepth.Shallow,i.freezeCount=0,i.modelID=y.default.generateRandomUuid(),i.defaultDynamicValues=new Map,i.extensionListeners=new Set,i.parsingInProgress=0,i.dataModelUsageProvider=new G,i._revertUnchanged=!1,i.workQueue=[],i.span=new M.default(e),i.span.addContext(O.info,"modelID",i.uuid),i.lastSeenTransactionOrdinals=new Map,Object.seal(i),i.span.log(O.debug,"Model created"),i}return B(t,e),V(t,[{key:"getModel",value:function(){return this}},{key:"getMetaClass",value:function(){return mf.zero.Model.metaClass}},{key:"freeze",value:function(){return new j(this)}},{key:"isFrozen",value:function(){return this.freezeCount>0}},{key:"findElement",value:function(e){return this.elements.get(e)}},{key:"isParsingInProgress",value:function(){return this.parsingInProgress>0}},{key:"isDetectAndRevertUnchangedProperties",value:function(){return this._revertUnchanged}},{key:"setDetectAndRevertUnchangedProperties",value:function(e){this._revertUnchanged=e}},{key:"destroy",value:function(){if(this.isValid){this.currentTransaction&&this.currentTransaction.abandon(),new Set(this.extensionListeners).forEach((function(e){e.listenerRemoved()})),this.extensionListeners.clear(),this.topLevelElements.forEach((function(e){e.destroy()})),this.topLevelElements.clear();var e=te(),t=ee();if(t!==this&&this.defaultDynamicValues.size>0){var i=t.beginRevertibleTransaction();this.listExtensions((function(e){e.isValid&&e.owner&&e.owner.destroy()})),i.commit()}e.destroy(),this._invalidate()}}},{key:"getTopLevelElements",value:function(){return new Map(this.topLevelElements)}},{key:"getDefaultTransactionFactory",value:function(){var e=this,t=y.default.generateRandomUuid(),i=0,n=function(){return new mf.zero.meta.TransactionOrigin({model:e.modelID,language:mf.zero.meta.Language.JavaScript,transactionId:y.default.generateRandomUuid(),transactionFactory:t,transactionOrdinal:i++})};return{beginTransaction:function(t){return(0,p.beginTransaction)(e,t,n(),I.default,w.default,S.default)},beginRevertibleTransaction:function(){return(0,p.beginTransaction)(e,!0,n(),I.default,w.default,S.default)}}}},{key:"beginTransaction",value:function(e){return this.getDefaultTransactionFactory().beginTransaction(e)}},{key:"beginRevertibleTransaction",value:function(){return this.getDefaultTransactionFactory().beginRevertibleTransaction()}},{key:"isTransactionInProgress",value:function(){return!y.default.isEmpty(this.currentTransaction)}},{key:"addShallowListener",value:function(e){return e instanceof x.default||(e=k(new x.default,e)),this.listeners.push(e),e}},{key:"addDeepListener",value:function(e){return e.isShallow=!1,this.transactionDepth=p.TransactionDepth.Deep,this.addShallowListener(e)}},{key:"addPriorityShallowListener",value:function(e){return e instanceof x.default||(e=k(new x.default,e)),this.listeners.unshift(e),e}},{key:"addPriorityDeepListener",value:function(e){return e.isShallow=!1,this.transactionDepth=p.TransactionDepth.Deep,this.addPriorityShallowListener(e)}},{key:"removeListener",value:function(e){for(var t=!1,i=0,n=this.listeners.length;i<n;++i){if(this.listeners[i]===e){var o=this.listeners[i];o.isShallow||t||(this.transactionDepth=p.TransactionDepth.DontKnow),this.currentTransaction&&(0,s.removeListener)(this.currentTransaction,o),this.listeners.splice(i,1);break}this.listeners[i].isShallow||(t=!0)}}},{key:"addToWorkQueue",value:function(e){this.workQueue.push(e),this.processWorkQueue()}},{key:"transactionEffectsComplete",value:function(){this.processWorkQueue()}},{key:"processWorkQueue",value:function(){!this.isTransactionInProgress()&&this.workQueue.length>0&&this.workQueue.shift()(this)}},{key:"getLastSeenTransactionOrdinals",value:function(){return this.lastSeenTransactionOrdinals}},{key:"updateLastSeenTransactionOrdinal",value:function(e,t){var i=this.span.createChild("updateLastSeenTransactionOrdinal");i.addContext(O.info,"transactionFactoryId",e),i.addContext(O.info,"transactionOrdinal",t),i.addContext(O.debug,"lastSeenTransactionOrdinals",this.lastSeenTransactionOrdinals),!this.lastSeenTransactionOrdinals.has(e)||this.lastSeenTransactionOrdinals.get(e)<t?(this.lastSeenTransactionOrdinals.set(e,t),i.log(O.debug,"Updating last seen transaction ordinal")):i.log(O.warning,"Ignoring attempted update of last seen transaction ordinal")}},{key:"forEach",value:function(e){X(this.elements,e)}},{key:"forTopLevel",value:function(e){X(this.topLevelElements,e)}},{key:"extendMetaclass",value:function(e,t,i){var n=ee();e&&e.getModel()===n||C.default.throwErr("CannotCreateWithoutModel");var o=E.default.getType(t.typeName);o||C.default.throwErr("NoSuchType",t.typeName);var r=t.name;y.default.isEmpty(r)&&C.default.throwErr("ExtensionMustHaveName");var s=this.defaultDynamicValues.get(r);y.default.forEach(s,(function(t){var i=t.extension.owner.owningClass;(i.isA(e)||e.isA(i))&&C.default.throwErr("ExtensionNameMustBeUnique")}));var l=1==t.upper,c=o._isInstOfClass();l&&y.default.isUndefined(i)&&!c&&C.default.throwErr("ExtensionMustHaveDefaultValue");var d=te(),u=n.beginTransaction(),h=e.extensions.at(this.modelID);h||((h=new mf.zero.meta.DynamicExtensions(n)).modelID=this.modelID,h.owningClass=e);var p=new mf.zero.meta.Extension(n);p.name=r,p.type=o,p.owner=h,p.lower=t.lower,p.upper=t.upper,p.isUnique=t.isUnique,p.isOrdered=t.isOrdered,l||(0,a.instantiateDynamicCollection)(null,p)||C.default.throwErr("CannotInstantiateCollection",e.qualifiedName),u.commit()!==mf.zero.TransactionResult.Committed&&C.default.throwErr("NoOpenTransaction");var f=this.defaultDynamicValues.get(r),g={extension:p,defaultValue:c&&l?void 0:i};f?f.push(g):this.defaultDynamicValues.set(r,[g]),Y(this,p),d.destroy()}},{key:"unextendMetaclass",value:function(e,t){var i=this,n=ee();e&&e.getModel()===n||C.default.throwErr("CannotCreateWithoutModel");var o=e.extensions.at(this.modelID);o&&o.extensions.at(t)||C.default.throwErr("NoSuchExtension",t,e.qualifiedName);var r=te(),a=n.beginTransaction(),s=o.extensions.at(t),l=this.defaultDynamicValues.get(t),c=void 0,d=l.length;for(c=0;c<d&&l[c].extension!==s;++c);c===l.length&&C.default.throwErr("NoSuchExtension",t,e.qualifiedName);var u=s.owner;new Set(this.extensionListeners).forEach((function(e){e.modelAboutToUnextend(i,s)})),s.destroy(),u.extensions.isEmpty()&&u.destroy(),a.commit()!==mf.zero.TransactionResult.Committed&&C.default.throwErr("NoOpenTransaction"),l.splice(c,1),r.destroy()}},{key:"getDeclaredExtension",value:function(e,t){var i=e.extensions.at(this.modelID);if(i)return i.extensions.at(t)}},{key:"getExtension",value:function(e,t){for(var i=void 0,n=e;n&&!(0,r.isModelElement)(n);n=n.superclass)if(i=this.getDeclaredExtension(n,t))return i;if((0,r.isModelElement)(e))return this.getDeclaredExtension(e,t)}},{key:"addExtensionListener",value:function(e){this.extensionListeners.add(e)}},{key:"removeExtensionListener",value:function(e){this.extensionListeners.delete(e)}},{key:"listExtensions",value:function(e){X(this.defaultDynamicValues,(function(t){for(var i=0,n=t.length;i<n;++i)if(!1===e(t[i].extension))return}))}},{key:"listExtendedClasses",value:function(e){var t=new Set;this.listExtensions((function(i){var n=i.owner.owningClass;return!!t.has(n)||(t.add(n),e(n))}))}},{key:"moveAllContentsTo",value:function(e){(!e||e===this||this.listeners.length>0||this.currentTransaction)&&C.default.throwErr("CannotChangeModel");var t=new Map;if(X(this.defaultDynamicValues,(function(i){for(var n=0,o=i.length;n<o;++n){var r=i[n],a=r.extension,s=Q(e,a,r.defaultValue);s?s!==a&&t.set(a,s):C.default.throwErr("ExtensionNameMustBeUnique")}})),this.defaultDynamicValues.size>0){var i=te(),n=ee(),r=n.beginRevertibleTransaction();this.listExtensions((function(i){var o=i.owner.owningClass;if(!t.get(i)){var r=o.extensions.at(e.modelID);r||((r=new mf.zero.meta.DynamicExtensions(n)).modelID=e.modelID,r.owningClass=o);var a=i.owner;i.owner=r,a.extensions.isEmpty()&&a.destroy()}}));var a=r.commit();a!==mf.zero.TransactionResult.Committed&&a!==mf.zero.TransactionResult.Ignored&&C.default.throwErr("CannotChangeModel"),X(this.defaultDynamicValues,(function(i,n){for(var o=0,r=i.length;o<r;++o){var a=i[o],s=a.extension;if(!t.get(s)){var l=e.defaultDynamicValues.get(n);l?l.push(a):e.defaultDynamicValues.set(n,[a]),Y(e,s)}}})),i.destroy()}var s=e.beginTransaction();if(X(this.elements,(function(i){i.containerOrModel=e,t.size>0&&(0,o.updateDynamicValuesOnMoveToAnotherModel)(i,t),K(e,i,(0,o.isTopLevel)(i))})),s.commit(),this.elements.clear(),this.topLevelElements.clear(),this.dataModelUsageProvider&&this.dataModelUsageProvider.clear(),this.defaultDynamicValues.size>0){var l=te(),c=ee().beginRevertibleTransaction();this.listExtensions((function(e){t.get(e)&&e.owner&&e.owner.destroy()})),c.commit(),l.destroy()}this.defaultDynamicValues.clear()}},{key:"extensionNames",value:function(e){var t=[];return this.listExtensions((function(i){i.owner.owningClass===e&&t.push(i.name)})),t}},{key:"getUsedPackageUris",value:function(){return this.dataModelUsageProvider?this.dataModelUsageProvider.getUsedPackageUris():[]}},{key:"getUsedPackages",value:function(){return this.dataModelUsageProvider?this.dataModelUsageProvider.getUsedPackages():[]}}]),t}(T.default);function K(e,t){if((0,p.validateTransaction)(e),e.elements.has(t.uuid)){t.setUuid();var i=e.span.createChild("error");i.addContext(O.error,"conflictingUuid",t.uuid),i.addContext(O.error,"existingElement",e.elements.get(t.uuid)),i.addContext(O.error,"newElement",t),i.log(O.error,"UUID Conflict"),C.default.throwErr("UUIDConflict")}e.currentTransaction&&e.currentTransaction.elementCreated(t),e.dataModelUsageProvider&&e.dataModelUsageProvider.elementCreated(t),e.elements.set(t.uuid,t),e.topLevelElements.set(t.uuid,t)}function X(e,t){for(var i=Array.from(e.keys()),n=0,o=i.length;n<o;++n)if(!1===t(e.get(i[n]),i[n],e))return}function Y(e,t){new Set(e.extensionListeners).forEach((function(i){i.modelExtended(e,t)}))}function Q(e,t,i){for(var n=t.owner.owningClass,o=e.defaultDynamicValues.get(t.name)||[],r=0,a=o.length;r<a;++r){var s=o[r],l=s.extension.owner.owningClass;if(l.isA(n)&&n!==l)return;if(n.isA(l)){var c=s.extension;if(c.type!==t.type)return;if(c.isSingleValued()){if(!t.isSingleValued())return;if(c.lower!=t.lower)return;if(!c._isInstOfClass()&&i!==s.defaultValue)return}else{if(t.isSingleValued())return;if(c.isUnique!==t.isUnique)return;if(c.isOrdered!==t.isOrdered)return}return c}}return t}var $=function(e){function t(){return H(this,t),F(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return B(t,e),V(t,[{key:"getUsedPackageUris",value:function(){return[(0,D.default)(L.default.family,L.default.modelVersion)]}}]),t}(N.default),J=new q;J.dataModelUsageProvider=new $;var Z=J.freeze();function ee(){return J}function te(){return Z.thaw()}y.default.setObject(A.default.Model,q),Object.defineProperty(q,"metaClass",{get:function(){return E.default.getType(A.default.Model)}}),e.default=q}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),i=Object.freeze({Primitive:1,Datatype:2,Association:4,Composition:8,Verbatim:16,Collection:256,Custom:65536}),n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=t}return t(e,[{key:"bitAdd",value:function(t){return new e(this.flags|t.flags)}},{key:"bitOr",value:function(e){return this.bitAdd(e)}},{key:"and",value:function(e){return 0!=(this.flags&e.flags)}},{key:"bitMinus",value:function(t){return new e(this.flags&~t.flags)}},{key:"isCollection",value:function(){return this.flags>=i.Collection&&this.flags<i.Custom}},{key:"isCustom",value:function(){return this.flags&i.Custom}},{key:"setCollection",value:function(){this.flags*=i.Collection}},{key:"isA",value:function(e){return 0!=(this.flags&e.flags)}}],[{key:"Unknown",value:function(){return new e(0)}},{key:"Primitive",value:function(){return new e(i.Primitive)}},{key:"PrimitiveCollection",value:function(){return new e(i.Primitive*i.Collection)}},{key:"PrimitiveAny",value:function(){return e.Primitive().bitOr(e.PrimitiveCollection())}},{key:"Datatype",value:function(){return new e(i.Datatype)}},{key:"DatatypeCollection",value:function(){return new e(i.Datatype*i.Collection)}},{key:"DatatypeAny",value:function(){return e.Datatype().bitOr(e.DatatypeCollection())}},{key:"Association",value:function(){return new e(i.Association)}},{key:"AssociationCollection",value:function(){return new e(i.Association*i.Collection)}},{key:"AssociationAny",value:function(){return e.Association().bitOr(e.AssociationCollection())}},{key:"Composition",value:function(){return new e(i.Composition)}},{key:"CompositionCollection",value:function(){return new e(i.Composition*i.Collection)}},{key:"CompositionAny",value:function(){return e.Composition().bitOr(e.CompositionCollection())}},{key:"Verbatim",value:function(){return new e(i.Verbatim)}},{key:"VerbatimCollection",value:function(){return new e(i.Verbatim*i.Collection)}},{key:"VerbatimCustom",value:function(){return new e(i.Verbatim|i.Custom)}},{key:"VerbatimAny",value:function(){return e.Verbatim().bitOr(e.VerbatimCollection()).bitOr(e.VerbatimCustom())}},{key:"All",value:function(){return new e(65535)}}]),e}();e.default=n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{selected:new e({type:"boolean",notInAction:!1,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(222),i(240),i(224),i(214),i(356),i(227),i(213),i(217),i(385),i.dj.c(e.i)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){i.isAsync||c(0,(function(){d(["./fx/Toggler"])}));var u=i.fx={},h={_fire:function(e,t){return this[e]&&this[e].apply(this,t||[]),this}},p=function(e){this._index=-1,this._animations=e||[],this._current=this._onAnimateCtx=this._onEndCtx=null,this.duration=0,n.forEach(this._animations,(function(e){e&&(void 0!==e.duration&&(this.duration+=e.duration),e.delay&&(this.duration+=e.delay))}),this)};p.prototype=new t,e.extend(p,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){this._onAnimateCtx.remove(),this._onEndCtx.remove(),this._onAnimateCtx=this._onEndCtx=null,this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=o.after(this._current,"onAnimate",e.hitch(this,"_onAnimate"),!0),this._onEndCtx=o.after(this._current,"onEnd",e.hitch(this,"_onEnd"),!0),this._current.play(0,!0))},play:function(t,i){if(this._current||(this._current=this._animations[this._index=0]),!i&&"playing"==this._current.status())return this;var n=o.after(this._current,"beforeBegin",e.hitch(this,(function(){this._fire("beforeBegin")})),!0),r=o.after(this._current,"onBegin",e.hitch(this,(function(e){this._fire("onBegin",arguments)})),!0),a=o.after(this._current,"onPlay",e.hitch(this,(function(e){this._fire("onPlay",arguments),n.remove(),r.remove(),a.remove()})));return this._onAnimateCtx&&this._onAnimateCtx.remove(),this._onAnimateCtx=o.after(this._current,"onAnimate",e.hitch(this,"_onAnimate"),!0),this._onEndCtx&&this._onEndCtx.remove(),this._onEndCtx=o.after(this._current,"onEnd",e.hitch(this,"_onEnd"),!0),this._current.play.apply(this._current,arguments),this},pause:function(){if(this._current){var t=o.after(this._current,"onPause",e.hitch(this,(function(e){this._fire("onPause",arguments),t.remove()})),!0);this._current.pause()}return this},gotoPercent:function(e,t){this.pause();var i=this.duration*e;return this._current=null,n.some(this._animations,(function(e,t){return i<=e.duration?(this._current=e,this._index=t,!0):(i-=e.duration,!1)}),this),this._current&&this._current.gotoPercent(i/this._current.duration),t&&this.play(),this},stop:function(t){if(this._current){if(t){for(;this._index+1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var i=o.after(this._current,"onStop",e.hitch(this,(function(e){this._fire("onStop",arguments),i.remove()})),!0);this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this.stop(),this._onAnimateCtx&&this._onAnimateCtx.remove(),this._onEndCtx&&this._onEndCtx.remove()}}),e.extend(p,h),u.chain=function(t){return new p(e.isArray(t)?t:Array.prototype.slice.call(t,0))};var f=function(t){this._animations=t||[],this._connects=[],this._finished=0,this.duration=0,n.forEach(t,(function(t){var i=t.duration;t.delay&&(i+=t.delay),this.duration<i&&(this.duration=i),this._connects.push(o.after(t,"onEnd",e.hitch(this,"_onEnd"),!0))}),this),this._pseudoAnimation=new r.Animation({curve:[0,1],duration:this.duration});var i=this;n.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],(function(e){i._connects.push(o.after(i._pseudoAnimation,e,(function(){i._fire(e,arguments)}),!0))}))};return e.extend(f,{_doAction:function(e,t){return n.forEach(this._animations,(function(i){i[e].apply(i,t)})),this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(e,t){var i=this._pseudoAnimation;i[e].apply(i,t)},play:function(e,t){return this._finished=0,this._doAction("play",arguments),this._call("play",arguments),this},pause:function(){return this._doAction("pause",arguments),this._call("pause",arguments),this},gotoPercent:function(e,t){var i=this.duration*e;return n.forEach(this._animations,(function(e){e.gotoPercent(e.duration<i?1:i/e.duration,t)})),this._call("gotoPercent",arguments),this},stop:function(e){return this._doAction("stop",arguments),this._call("stop",arguments),this},status:function(){return this._pseudoAnimation.status()},destroy:function(){this.stop(),n.forEach(this._connects,(function(e){e.remove()}))}}),e.extend(f,h),u.combine=function(t){return new f(e.isArray(t)?t:Array.prototype.slice.call(t,0))},u.wipeIn=function(t){var i,n=t.node=a.byId(t.node),l=n.style,c=r.animateProperty(e.mixin({properties:{height:{start:function(){if(i=l.overflow,l.overflow="hidden","hidden"==l.visibility||"none"==l.display)return l.height="1px",l.display="",l.visibility="",1;var e=s.get(n,"height");return Math.max(e,1)},end:function(){return n.scrollHeight}}}},t)),d=function(){l.height="auto",l.overflow=i};return o.after(c,"onStop",d,!0),o.after(c,"onEnd",d,!0),c},u.wipeOut=function(t){var i,n=(t.node=a.byId(t.node)).style,s=r.animateProperty(e.mixin({properties:{height:{end:1}}},t));o.after(s,"beforeBegin",(function(){i=n.overflow,n.overflow="hidden",n.display=""}),!0);var l=function(){n.overflow=i,n.height="auto",n.display="none"};return o.after(s,"onStop",l,!0),o.after(s,"onEnd",l,!0),s},u.slideTo=function(t){var i,n=t.node=a.byId(t.node),c=null,d=null,u=(i=n,function(){var e=s.getComputedStyle(i),t=e.position;if(c="absolute"==t?i.offsetTop:parseInt(e.top)||0,d="absolute"==t?i.offsetLeft:parseInt(e.left)||0,"absolute"!=t&&"relative"!=t){var n=l.position(i,!0);c=n.y,d=n.x,i.style.position="absolute",i.style.top=c+"px",i.style.left=d+"px"}});u();var h=r.animateProperty(e.mixin({properties:{top:t.top||0,left:t.left||0}},t));return o.after(h,"beforeBegin",u,!0),h},u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(223),i(3420)],o=i.dj.d(n,(function(e,t,i){return{UNKNOWN_KEY:"unknown",_MODIFIER_KEYS:["Shift","Control","Alt","AltGraph","Meta"],_EVENT_KEY_TO_DOJO_KEY:{"*":t.NUMPAD_MULTIPLY,"+":t.NUMPAD_PLUS,"-":t.NUMPAD_MINUS,".":t.NUMPAD_PERIOD,"/":t.NUMPAD_DIVIDE,0:t.NUMPAD_0,1:t.NUMPAD_1,2:t.NUMPAD_2,3:t.NUMPAD_3,4:t.NUMPAD_4,5:t.NUMPAD_5,6:t.NUMPAD_6,7:t.NUMPAD_7,8:t.NUMPAD_8,9:t.NUMPAD_9,"=":187,Enter:t.ENTER,ArrowLeft:t.LEFT_ARROW,ArrowRight:t.RIGHT_ARROW,ArrowUp:t.UP_ARROW,ArrowDown:t.DOWN_ARROW,PageUp:t.PAGE_UP,PageDown:t.PAGE_DOWN,Home:t.HOME,End:t.END,Delete:t.DELETE,Insert:t.INSERT,Left:t.LEFT_ARROW,Right:t.RIGHT_ARROW,Up:t.UP_ARROW,Down:t.DOWN_ARROW},getKeyStrokeFromEvent:function(t){var i=t.ctrlKey,n=t.metaKey,o=t.altKey,r=t.shiftKey;e("matlab")&&e("mac")&&(i=t.metaKey,n=t.ctrlKey);var a=this._getKeyNameFromEvent(t);return this.getKeyStroke(a,i,n,o,r)},_getKeyNameFromEvent:function(t){var i=t.key;if(e("matlab")&&(i=t.keyIdentifier),this.isModifierKey(i))return this.UNKNOWN_KEY;if(e("linux")){if(this._getCorrectedLocation(t)===KeyboardEvent.DOM_KEY_LOCATION_NUMPAD)return this._getKeyNameForNumpadKey(i)}else if(t.location===KeyboardEvent.DOM_KEY_LOCATION_NUMPAD)return this._getKeyNameForNumpadKey(i);return this._getKeyNameFromKeyboardEvent(t)},_getCorrectedLocation:function(e){if(e.location===KeyboardEvent.DOM_KEY_LOCATION_NUMPAD){if(-1!=="qwrtyuop[szxvQWRTYUOP{SZXV".indexOf(e.key))return KeyboardEvent.DOM_KEY_LOCATION_STANDARD}return e.location},_getKeyNameForNumpadKey:function(e){var t=this._EVENT_KEY_TO_DOJO_KEY[e];return i[t]},_getKeyNameFromKeyboardEvent:function(e){var t=e.keyCode;return i[t]||String.fromCharCode(t).toLowerCase()},isModifierKey:function(e){return-1!==this._MODIFIER_KEYS.indexOf(e)},getKeyStroke:function(e,t,i,n,o){return(t?"ctrl_":"")+(i?"meta_":"")+(n?"alt_":"")+(o?"shift_":"")+(e=e||this.UNKNOWN_KEY).toLowerCase()},executeActions:function(e){for(var t=0;t<e.length;t++){if(!0===e[t].callback({actionOrigin:"keyhandler"}))return!0}return!1}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(207),i(451)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(){this.groupMenuItemsMap={},this.hiddenGroupsList=[],this.hiddenActionsList=[]},addActionsToMap:function(e,t){t.forEach((function(t){this.addActionToMap(e,t)}),this)},addActionToMap:function(e,t){"string"==typeof t?t={actionId:t,type:o.DEFAULT,priority:0}:(i.assert(""!==t.actionId,"Must have action ID"),i.assert(""!==t.type,"Must have type"),void 0===t.priority&&(t.priority=0));var n=this.groupMenuItemsMap[e];n||(n=[],this.groupMenuItemsMap[e]=n),this._findMenuItemByActionId(t.actionId,n)||n.push(t)},removeActionFromMap:function(e){for(var t in this.groupMenuItemsMap){var i=this.groupMenuItemsMap[t];if(i){var n=this._findMenuItemByActionId(e,i);n&&i.splice(n.index,1),0===i.length?delete this.groupMenuItemsMap[t]:this.groupMenuItemsMap[t]=i}}},contributeToContextMenu:function(e){var t={};return this.updateActions(e),this._getGroupsToContribute(e).forEach((function(e){t[e]=this._getMenuItemsToContribute(e)}),this),t},updateActions:function(){this.hiddenActionsList=[]},hideAction:function(e){this.hiddenActionsList.push(e)},hideGroup:function(e){this.hiddenGroupsList.push(e)},_findMenuItemByActionId:function(e,t){var i=null,n=-1;return t.some((function(t,o){if(t.actionId===e)return i=t,n=o,!0})),i?{item:i,index:n}:null},_getGroupsToContribute:function(){var e=Object.keys(this.groupMenuItemsMap).filter((function(e){return this.hiddenGroupsList.indexOf(e)<0}),this);return this.hiddenGroupsList=[],e},_getMenuItemsToContribute:function(e){var i=t.clone(this.groupMenuItemsMap[e].filter((function(e){return this.hiddenActionsList.indexOf(e.actionId)<0}),this));return i.forEach(function(e){if(e.children&&e.children.length>0){var t=this._getSubMenuItemsToContribute(e);e.children=t}}.bind(this)),i},_getSubMenuItemsToContribute:function(e){return e.children.filter((function(e){return this.hiddenActionsList.indexOf(e.actionId)<0}),this)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){var e={DEQUEUE_UNKNOWN:0,DEQUEUE_AT_PPE:1,DEQUEUE_AT_PAUSE:2,DEQUEUE_AT_PROMPT:3,DEQUEUE_AT_NON_DEBUG_PROMPT:4,DEQUEUE_AT_DEBUG_PROMPT:5,DEQUEUE_AT_IDLE:6,DEQUEUE_AT_BOOTSTRAP:7};return e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1358),i(1862),i(1868),i(1869),i(1870),i(1871),i(1872),i(1873),i(1092),i(1874),i(1875),i(1876),i(1359)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){"use strict";return{createNode:function(p,f){switch(f=f||{},p){case"Null":return null;case"MathAction":return f.children=f.children||[],new e(f);case"MathDelimiter":return new t(f);case"MathFenced":return f.children=f.children||[],new i(f);case"MathFraction":return f.children=f.children||[],new n(f);case"MathMatrix":return f.children=f.children||[],new o(f);case"MathMultiScript":return f.children=f.children||[],new r(f);case"MathRadical":return f.children=f.children||[],new a(f);case"MathRoot":return f.children=f.children||[],new s(f);case"MathRow":return f.children=f.children||[],new l(f);case"MathScript":return f.children=f.children||[],new c(f);case"MathSpace":return new d(f);case"MathStyle":return f.children=f.children||[],new u(f);case"MathText":return f.text=f.text||"",new h(f)}console.log("Error: Unimplemented node kind '"+p+"'")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{OUTPUT_TYPE:"error",CSS_TAG:"embeddedOutputsErrorElement",SYNTAX_ERROR_TYPE:"syntax",RUNTIME_ERROR_TYPE:"runtime"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{SMART_FORMATTER_ID:void 0,_enabled:!0,isApplicable:function(e){return this._isEnabled()&&this._isTriggerExpected(e)&&this._findAndRecordTarget(e)},enable:function(){this._enabled=!0},disable:function(){this._enabled=!1},format:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.smartformatting.AbstractSmartFormatter.format")},postFormat:function(e){},_isEnabled:function(){return this._enabled},_isTriggerExpected:function(e){return this._isTriggerTypeExpected(e)&&this._isTriggerPositionExpected(e)},_isTriggerTypeExpected:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.smartformatting.AbstractSmartFormatter._isTriggerTypeExpected")},_isTriggerPositionExpected:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.smartformatting.AbstractSmartFormatter._isTriggerPositionExpected")},_findAndRecordTarget:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.smartformatting.AbstractSmartFormatter._findAndRecordTarget")},_getActions:function(){return[{id:"rtc_smartformatting_"+this.SMART_FORMATTER_ID+"_on",enabled:!0,callback:t.hitch(this,this.enable)},{id:"rtc_smartformatting_"+this.SMART_FORMATTER_ID+"_off",enabled:!0,callback:t.hitch(this,this.disable)}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(252),i(357),i(426)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{constructor:function(e){this._view=e},enter:function(e,t,i){return e.openWrapperElement(),!1},leave:function(e,i,n){var r=this._createWrapperElement(i);o.getAttributesForStyle(i,this._STYLES,this._view).forEach((function(e){r.setAttribute(e.name,e.value)})),i.isEmpty()&&!i.childrenAreContainers&&r.appendChild(o.createFOElement("fo:leader")),i.anchorId&&r.setAttribute("id",i.anchorId),(r=this._processElement(r,i)).setAttribute("white-space-collapse","false"),"pre"!==r.getAttribute("white-space")&&r.setAttribute("white-space-treatment","ignore-if-after-linefeed"),t.assert(r,"No element returned from _processElement"),e.closeWrapperElement(r)},_createWrapperElement:function(e){return o.createFOElement(this._getTagName(e))},_processElement:function(e){return e},_getTagName:function(e){return n.BLOCK}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(825),i(1427),i(675)],o=i.dj.d(n,(function(e,t,i){var n=e.RECOGNIZED,o=e.BEGAN,r=e.PROGRESS,a=e.INACTIVE,s=e.POSSIBLE,l=e.CANCELLED,c=(t.isActiveState,t.isEndedState),d=t.isInactiveState,u={createRecognizerData:function(e,t,i){return{type:e,currentState:t.currentState,inputData:t.inputData,targetState:null,actionData:{},internalData:i}},applyWhen:function(e,t){return function(i){return e(i)?t(i):i}},applyIfUndetermined:function(e){return u.applyWhen(u.isUndetermined,e)},applyIfDetermined:function(e){return u.applyWhen(u.isDetermined,e)},applyIfActive:function(e){return u.applyWhen((function(e){return t.isActiveState(e.currentState)}),e)},applyIfBegun:function(e){return u.applyWhen((function(e){return t.hasBegun(e.currentState)}),e)},applyIfPossible:function(e){return u.applyWhen((function(e){return t.isPossibleState(e.currentState)}),e)},applyIfTargetStateBegun:function(e){return u.applyWhen((function(e){return t.hasBegun(e.targetState)}),e)},applyIfTargetStateIsActive:function(e){return u.applyWhen((function(e){return t.isActiveState(e.targetState)}),e)},applyIfTargetStateIsComplete:function(e){return u.applyWhen((function(e){return d(e.targetState)||c(e.targetState)}),e)},applyIfInactive:function(e){return u.applyWhen((function(e){return!t.isActiveState(e.currentState)}),e)},applyOnUp:function(e){return u.applyWhen((function(e){return i.isUp(e.inputData)}),e)},applyOnDown:function(e){return u.applyWhen((function(e){return i.isDown(e.inputData)}),e)},applyOnMove:function(e){return u.applyWhen((function(e){return i.isMove(e.inputData)}),e)},applyOnCancel:function(e){return u.applyWhen((function(e){return i.isCancel(e.inputData)}),e)},applyOnTimeout:function(e){return u.applyWhen((function(e){return i.isTimeout(e.inputData)}),e)},applyOnWheel:function(e){return u.applyWhen((function(e){return i.isWheel(e.inputData)}),e)},applyWhenNotSinglePrimary:function(e){return u.applyWhen((function(e){return!i.isSinglePrimary(e.inputData)}),e)},isDetermined:function(e){return!!e.targetState},isUndetermined:function(e){return!e.targetState},markAsNoChange:function(e){return e.targetState=e.currentState,e},markAsPossible:function(e){return e.targetState=s,e},markAsRecognized:function(e){return e.targetState=n,e},markAsInactive:function(e){return e.targetState=a,e},markAsCancelled:function(e){return e.targetState=l,e},markAsProgress:function(e){return e.targetState=r,e},markAsBegan:function(e){return e.targetState=o,e},resetWhenComplete:function(e){var t=e.targetState,i=e.internalData;return(d(t)||c(t))&&i&&i.reset&&i.reset(),e}};return u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(234)],o=i.dj.d(n,(function(e){return{regionStartNodesMatch:function(e,t){return this.checkRegionIsValid(e),this.checkRegionIsValid(t),!(!e.code.regionPositions.length||!t.code.regionPositions.length)&&e.code.regionPositions[0].getNode()===t.code.regionPositions[0].getNode()},isPositionWithinRegionRange:function(e,t,i){this.checkRegionIsValid(t),this.checkRegionIsValid(i),this.checkPositionIsValid(e);var n=t.code.regionPositions,o=i.code.regionPositions,r=n[0].line,a=o[o.length-1].line,s=e.line;return r<=s&&s<=a},getFirstRegionInRange:function(e,t){for(var i=e.getStartPosition().getLine()-1,n=e.getEndPosition().getLine()-1,o=0;o<t.length;o++){var r=t[o].code.regionPositions;if(!(r[0].line<i))return r[0].line>n?null:t[o]}},checkRegionIsValid:function(e){this.assert(e,"No region"),this.assert(e.code,"No code in region"),this.assert(e.code.regionPositions,"No region positions")},validateRegions:function(e,t){let i=-1,n=-1,o=-1,r=!0,a=null;for(var s=0;s<e.length;s++){let l,c,d,u=e[s],h=u.code.regionNumber,p=u.code.sectionBreak,f=u.code.endOfSection;if(t)l=u.startLine,c=u.endLine;else{let e=u.code.regionPositions;l=e[0].line,c=e[e.length-1].line,d=u.code.sectionNumber}if(c<0||l<0){a=`Line numbers must not be negative (currentStartLine: ${l} currentEndLine: ${c})`;break}if(l>c){a=`The start must not be after the end (currentStartLine: ${l} currentEndLine: ${c})`;break}if(l<i){a=`The start should not be before the previous region's end (currentStartLine: ${l} previousEndLine: ${i})`;break}if(h!==n+1){a=`Region numbers should be incrementing (currentRegionNumber: ${h} previousRegionNumber: ${n})`;break}if(p!==r){a=`SectionBreak and EndOfSection flags should be consistent (currentSectionBreak: ${p} previousEndOfSection: ${r})`;break}if(!t){if(d<0){a=`Section numbers should be positive (currentSectionNumber: ${d})`;break}if(d<o){a=`Section numbers should be incrementing (currentSectionNumber: ${d} previousSectionNumber: ${o})`;break}}i=c,n=h,o=d,r=f}return{hasError:!!a,firstError:a}},checkPositionIsValid:function(e){this.assert(e.isValid(),"Region position is invalid")},assert:function(e,t){if(!e)throw new Error(t)},updateAndGetAllExecutableRegions:function(e,t){return e.synchronizeRegions(),this._getTextRegions(t,e)},_getTextRegions:function(e,t){var i=t.getRegions().map(this._getTextRegion.bind(this,e));return JSON.stringify(i)},_getTextRegion:function(t,i){var n=i.code;return{regionLineNumber:e.getCodeLineNumberFromPosition(t,n.regionPositions[0]),regionString:n.regionString,regionNumber:n.regionNumber,endOfSection:n.endOfSection,sectionNumber:n.sectionNumber,regionUid:i.uid}},updateAndGetExecutableRegionsForRange:function(e,t,i,n,o){var r=t.getSectionNumberForNode(n.getNode()),a=t.getSectionNumberForNode(o.getNode());i.synchronizeRegionsPartial(r,a);var s=i.getSectionRegionsFromNodeRange(n.getNode(),o.getNode()).map((function(t){return this._getTextRegion(e,t)}),this);return JSON.stringify(s)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(1438)],o=i.dj.d(n,(function(e,t){return{getText:function(t){var i=e.create("div",{innerHTML:t});i.innerHTML=i.innerHTML.replace(/<br>/g,"\n");var n=i.textContent;return e.destroy(i),n},removeControlCharacters:function(e){return e.replace(/[\x00-\x07\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,"")},processBackspaceCharacters:function(e){for(;-1!==e.indexOf("\b");)e=e.replace(/[\s\S]?\x08/,"");return e},limitTextNodeLength:function(e,i){i=i||1e4,Array.from(e.childNodes).forEach((function(e){if(e.nodeType===Node.TEXT_NODE)for(var n=e;n.textContent.length>i;){var o=t.findSafeSplitLocation(n.textContent,i);n=n.splitText(o)}else this.limitTextNodeLength(e,i)}),this)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{INSERTTASK:"rtc_liveapps_inserttask",HELP:"rtc_liveapps_help",RESET:"rtc_liveapps_reset",CONVERT_TO_CODE:"rtc_liveapps_convert_to_code",REMOVE_TASK:"rtc_liveapps_remove_task",TOGGLE_CONTROLS_AND_CODE:"rtc_liveapps_toggle_controls_and_code",TOGGLE_CONTROLS_ONLY:"rtc_liveapps_toggle_controls_only",TOGGLE_CODE_ONLY:"rtc_liveapps_toggle_code_only",TOGGLE_AUTORUN_SECTION:"rtc_liveapps_toggle_autorun_section",EXPAND_ALL_LIVE_APPS:"rtc_liveapps_expand_all"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(5206),i(5207),i(5208),i(5209)],o=i.dj.d(n,(function(e,t){return t(e,"l10n/nls/liveControls",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{FILE_OPEN_COMMAND:"matlab:open",_MATLAB_OPEN_EXPRESSION:/matlab:open\((.+)\)/,_TRIM_PATH_EXPRESSION:/^(('[^']+')|("[^"]+"))$/,getFilePathFromOpenCommand:function(e){if(e){var t=e.match(this._MATLAB_OPEN_EXPRESSION);if(t&&t.length>1&&t[1]){var i=t[1];return i.match(this._TRIM_PATH_EXPRESSION)&&(i=i.slice(1,-1)),this._removeAnchorId(i)}}return""},_removeAnchorId:function(e){var t=e.lastIndexOf("."),i=e.lastIndexOf("#");return t>0&&t<i&&(e=e.substr(0,i)),e},prepareRelativePath:function(e,t){if(e.charAt(0)!==t.charAt(0))return t;var i=-1!==e.indexOf("/")?"/":"\\",n=e.split(i).filter(Boolean),o=t.split(i).filter(Boolean),r=o.pop();if(n.length===o.length&&n.every((function(e,t){return e===o[t]}),this))return"."+i+r;for("\\"===i&&(o[0].match(/[A-Za-z]:/g)&&o.shift(),n[0].match(/[A-Za-z]:/g)&&n.shift());o[0]&&n[0]&&o[0]===n[0];)o.shift(),n.shift();for(var a="";n.length>0;)n.pop(),a+=".."+i;return""===a&&(a="."+i),o.length&&(a+=o.join(i)+i),a+r}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(347)],o=i.dj.d(n,(function(e,t){return e([t],{className:"TableOfContentsList",isAutoGenerated:!0,constructor:function(e,t){this.wrappable=!1},isTextContainerNode:function(){return!0},isReadOnly:function(){return!0},containerType:function(){return"toc"},offsetInContainer:function(e){var t,i=0;e=e||this.textContainer();for(var n=0;n<e.children.length;n++){if(this===(t=e.children[n]))return i;i=i+t.maxOffset()+e.CHILD_TEXT_SEPARATOR.length}return 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(347)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){(t=t||{}).align&&(this.align=t.align),this.wrappable=!1},className:"TableOfContentsHeadingNode",containerType:function(){return"ToCHeading"},canSpliceContainers:function(e,t){return!0},isTextContainerNode:function(){return!0},offsetInContainer:function(e){var t,i=0;e=e||this.textContainer();for(var n=0;n<e.children.length;n++){if(this===(t=e.children[n]))return i;i=i+t.maxOffset()+e.CHILD_TEXT_SEPARATOR.length}return 0},isSplittable:function(e){return!1},canMergeContainerWithSibling:function(e,t){return!0},_serializeAttributes:function(e){this.align&&(e.align=this.align),this.anchorId&&(e.anchorId=this.anchorId)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(369),i(219),i(1052)],o=i.dj.d(n,(function(e,t,i){let n={PeerModel:"PeerModel",MF0ViewModel:"MF0ViewModel",CPPMF0ViewModel:"CPPMF0ViewModel"},o=function(t,i){let n;return n=!0===i?e.getServerInstance(t):e.getInstance(t),n.setSyncEnabled(!0),n.commit=function(){},n.destroy=function(){var i;e.cleanup(t),i=t,e._serverInstances[i]&&(e._serverInstances[i].manager.setSyncEnabled(!1),e._serverInstances[i].manager.hasRoot()&&e._serverInstances[i].manager.getRoot().destroy(),e._serverInstances[i].synchronizer.remove(),delete e._serverInstances[i])},n},r=function(e,r,a,s,l){switch(t.isRunning()||t.start(),e){case n.PeerModel:return o(r,a);case n.MF0ViewModel:case n.CPPMF0ViewModel:return console.log("MF0ViewModel: Using CPP Version"),function(e,t,n,o){let r=i.getViewModelManager({channelPrefix:e,isClientDriven:t,commitStrategy:n,apiFactories:o});return r.setSyncEnabled=function(e){},r}(r,a,s,l);default:return o(r,a)}},a={isEventFromServer:function(e){return e&&e.hasOwnProperty("srcLang")?"CPP"===e.srcLang:this.isOriginatorFromServer(e.originator)},isOriginatorFromServer:function(e){return"object"==typeof e&&null!==e&&e.toString&&"[object Object]"===e.toString()&&0===Object.keys(e).length||"matlabServerSide"===e}},s={ViewModelTypes:n,CommitStrategyTypes:i.CommitStrategyTypes};Object.keys(n).forEach((function(e){s[e]={getViewModelManager:function(t,i,n,o){return r(e,t,i,n,o)}}}));for(let e in a)if(a.hasOwnProperty(e)){let t=a[e];s[e]=t,Object.keys(n).forEach((function(i){s[i][e]=t}))}return s.undefined=s[n.PeerModel],s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{Position:{id:0,aName:"a_Position",uName:"u_Position"},Color:{id:1,aName:"a_Color",uName:"u_Color"},MVPMatrix:{id:2,aName:null,uName:"u_MVPMatrix"},TexCoord:{id:3,aName:"a_TexCoord",uName:null},Sampler2D:{id:4,aName:null,uName:"u_Sampler2D"},Anchor:{id:5,aName:"a_Anchor",uName:"u_Anchor"},Coord2D:{id:6,aName:"a_Coord2D",uName:null},xMinClipPlane:{id:7,aName:null,uName:"u_xMinClipPlane"},xMaxClipPlane:{id:8,aName:null,uName:"u_xMaxClipPlane"},yMinClipPlane:{id:9,aName:null,uName:"u_yMinClipPlane"},yMaxClipPlane:{id:10,aName:null,uName:"u_yMaxClipPlane"},zMinClipPlane:{id:11,aName:null,uName:"u_zMinClipPlane"},zMaxClipPlane:{id:12,aName:null,uName:"u_zMaxClipPlane"},StipplePattern:{id:13,aName:null,uName:"u_StipplePattern"},StippleCoord:{id:14,aName:"a_StippleCoord",uName:null},ViewportSize:{id:15,aName:null,uName:"u_ViewportSize"},PlotBox:{id:16,aName:null,uName:"u_PlotBox"},ScissorRect:{id:17,aName:null,uName:"u_ScissorRect"},AVCOffset:{id:18,aName:null,uName:"u_AVCOffset"},LineWidth:{id:19,aName:null,uName:"u_LineWidth"},UnitDistPoint:{id:20,aName:"a_UnitDistPoint",uName:null},JoinStyle:{id:21,aName:null,uName:"u_JoinStyle"},VertexIndex:{id:22,aName:"a_VertexIndex",uName:null},UnitDistPointPrev:{id:23,aName:"a_UnitDistPointPrev",uName:null},UnitDistPointNext:{id:24,aName:"a_UnitDistPointNext",uName:null},SegmentsPerJoin:{id:25,aName:null,uName:"u_SegmentsPerJoin"},CapStyle:{id:26,aName:null,uName:"u_CapStyle"},SegmentsPerCap:{id:27,aName:null,uName:"u_SegmentsPerCap"},Pick:{id:28,aName:null,uName:"u_Pick"},PickColor:{id:29,aName:null,uName:"u_PickColor"},Scale:{id:30,aName:"a_Scale",uName:"u_Scale"},Coord2DOffset:{id:31,aName:"a_Coord2DOffset",uName:null},MVPInverseMatrix:{id:32,aName:null,uName:"u_MVPInverseMatrix"},StoreScreenSpaceDepth:{id:33,aName:null,uName:"u_StoreScreenSpaceDepth"},ModelViewMatrix:{id:34,aName:null,uName:"u_ModelViewMat"},ProjectionMat:{id:35,aName:null,uName:"u_ProjectionMat"},ProjectionInverseMatrix:{id:36,aName:null,uName:"u_ProjectionInvMat"},NormalMatrix:{id:37,aName:null,uName:"u_NormalMatrix"},Normal:{id:38,aName:"a_Normal",uName:null},Material_AmbientStrength:{id:39,aName:null,uName:"u_Material.ambientStrength"},Material_DiffuseStrength:{id:40,aName:null,uName:"u_Material.diffuseStrength"},Material_SpecularStrength:{id:41,aName:null,uName:"u_Material.specularStrength"},Material_SpecularColorReflectance:{id:42,aName:null,uName:"u_Material.specularColorReflectance"},Material_SpecularExponent:{id:43,aName:null,uName:"u_Material.specularExponent"},LightCount:{id:44,aName:null,uName:"u_LightCount"},Light0_Style:{id:45,aName:null,uName:"u_Lights[0].style"},Light0_Color:{id:46,aName:null,uName:"u_Lights[0].color"},Light0_Position:{id:47,aName:null,uName:"u_Lights[0].position"},Light1_Style:{id:48,aName:null,uName:"u_Lights[1].style"},Light1_Color:{id:49,aName:null,uName:"u_Lights[1].color"},Light1_Position:{id:50,aName:null,uName:"u_Lights[1].position"},Light2_Style:{id:51,aName:null,uName:"u_Lights[2].style"},Light2_Color:{id:52,aName:null,uName:"u_Lights[2].color"},Light2_Position:{id:53,aName:null,uName:"u_Lights[2].position"},Light3_Style:{id:54,aName:null,uName:"u_Lights[3].style"},Light3_Color:{id:55,aName:null,uName:"u_Lights[3].color"},Light3_Position:{id:56,aName:null,uName:"u_Lights[3].position"},Light4_Style:{id:57,aName:null,uName:"u_Lights[4].style"},Light4_Color:{id:58,aName:null,uName:"u_Lights[4].color"},Light4_Position:{id:59,aName:null,uName:"u_Lights[4].position"},Light5_Style:{id:60,aName:null,uName:"u_Lights[5].style"},Light5_Color:{id:61,aName:null,uName:"u_Lights[5].color"},Light5_Position:{id:62,aName:null,uName:"u_Lights[5].position"},Light6_Style:{id:63,aName:null,uName:"u_Lights[6].style"},Light6_Color:{id:64,aName:null,uName:"u_Lights[6].color"},Light6_Position:{id:65,aName:null,uName:"u_Lights[6].position"},Light7_Style:{id:66,aName:null,uName:"u_Lights[7].style"},Light7_Color:{id:67,aName:null,uName:"u_Lights[7].color"},Light7_Position:{id:68,aName:null,uName:"u_Lights[7].position"},EyePos:{id:69,aName:null,uName:"u_EyePos"},SeparateSpecularColor:{id:70,aName:null,uName:"u_SeparateSpecularColor"},SceneAmbientLightColor:{id:71,aName:null,uName:"u_SceneAmbientLightColor"},AlphaMultiplier:{id:72,aName:null,uName:"u_AlphaMultiplier"},D0Sampler:{id:73,aName:null,uName:"u_D0"},D1Sampler:{id:74,aName:null,uName:"u_D1"},ClosedLoopEdge:{id:75,aName:null,uName:"u_ClosedLoopEdge"},FaceColorIndicator:{id:76,aName:"a_FaceColorIndicator",uName:null},FaceColor:{id:77,aName:"a_FaceColor",uName:"u_FaceColor"},EdgeColor:{id:78,aName:"a_EdgeColor",uName:"u_EdgeColor"},PrevPos:{id:79,aName:"a_PrevPos",uName:null},NextPos:{id:80,aName:"a_NextPos",uName:null},PrevToPrevPos:{id:81,aName:"a_PrevToPrevPos",uName:null},NextToNextPos:{id:82,aName:"a_NextToNextPos",uName:null},PosToAccess:{id:83,aName:"a_PosToAccess",uName:null},startTheta:{id:84,aName:null,uName:"u_startTheta"},endTheta:{id:85,aName:null,uName:"u_endTheta"},innerRadius:{id:86,aName:null,uName:"u_innerRadius"},outerRadius:{id:87,aName:null,uName:"u_outerRadius"},polarOrigin:{id:88,aName:null,uName:"u_polarOrigin"},MarkerBreakLimit:{id:89,aName:null,uName:"u_MarkerBreakLimit"}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(429),i(267),i(1532),i(327)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";var a=function(e,t){return e<t?-1:e>t?1:0},s=function(e,t){var i=a(e.rows.start,t.rows.start);return 0===i?a(e.rows.end,t.rows.end):i},l=function(t,i){return e.range().setRows(t,t).setColumns(i,i)},c=function(e,t){var i=e;return e===t&&(i=t),i};return function(){function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}return r(a,null,[{key:"fitRangeToBounds",value:function(t,i,n){var o={rows:{},columns:{}};return n.rows.start>t||n.columns.start>i||n.rows.end<0||n.columns.end<0?null:(o.rows.start=Math.max(Math.min(n.rows.start,t),0),o.columns.start=Math.max(Math.min(n.columns.start,i),0),o.rows.end=n.rows.end===1/0?1/0:Math.max(Math.min(n.rows.end,t),o.rows.start),o.columns.end=n.columns.end===1/0?1/0:Math.max(Math.min(n.columns.end,i),o.columns.start),e.range().setRows(o.rows.start,o.rows.end).setColumns(o.columns.start,o.columns.end))}},{key:"getActiveCell",value:function(e){var t=e.getStateByKey(i.protected.ACTIVE_CELL);return t?t.rangeList[0]:[]}},{key:"getValidStartPoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0?0:e}},{key:"isCellInRanges",value:function(t,i,n){if(!Array.isArray(t)||0===t.length)return!1;var o=e.range().setRows(i,i).setColumns(n,n);return e.isRangeInsideRangeList(o,t)}},{key:"isRangeVisible",value:function(t,i){return!(!i||!t)&&e.isRangeInside(i,t)}},{key:"isIdInSelections",value:function(e,t){return e in t}},{key:"getSelectionCountByRanges",value:function(i){var n=void 0;return{count:i.reduce((function(i,o){return o?e.isRowRange(o)?(n=t.rangeType.ROW,i+o.rows.count):e.isColumnRange(o)?(n=t.rangeType.COLUMN,i+o.columns.count):(n=t.rangeType.CELL,i+o.rows.count*o.columns.count):i}),0),type:n}}},{key:"getSelectionCountByIDs",value:function(e){return{count:Object.keys(e).length,type:"rows"}}},{key:"areSelectionRangesDifferent",value:function(t,i){var n=!0;return i.length===t.length&&(i.sort(s),t.sort(s),n=t.reduce((function(t,n,o){return t||!e.isRangeEqual(n,i[o])}),!1)),n}},{key:"areSelectionIdsDifferent",value:function(e,t){return!o.deepEqual(e,t)}},{key:"resizeSelectionInProgress",value:function(e){return e===n.ROW}},{key:"resizeSelectionState",value:function(t){var i=t.nextActiveCell,o=t.currentActiveCell,r=t.currentFulcrum,a=t.dragType,s=t.cellType,d=o,u=r;if(a===n.ROW)if(s===n.FULCRUM){var h=c(i.rows.start,r.rows.start);u=l(h,r.columns.start)}else if(s===n.ACTIVE){var p=c(i.rows.start,o.rows.start);d=l(p,o.columns.start)}var f=e.isRangeEqual(r,u),g=e.isRangeEqual(o,d);return f&&g?null:{resizeActiveCell:d,resizeFulcrum:u}}},{key:"resizeSelectionType",value:function(e){var t=e.location,i=e.activeCell,o=e.fulcrum,r=e.startRow,a=void 0,s=void 0;return t===n.TOP||t===n.BOTTOM?(i&&i.rows.start===r&&(a=n.ACTIVE),o&&o.rows.start===r&&(a=n.FULCRUM),s=n.ROW):t===n.LEFT||n.RIGHT,{cellType:a,dragType:s}}},{key:"getRangeAsString",value:function(e){function t(e){var t="";return e&&e.rows&&e.columns&&(t="[R"+e.rows.start+","+e.rows.end,t+="|C"+e.columns.start+","+e.columns.end,t+="|T"+e.columns.count*e.rows.count+"]"),t}if(!e)return"range undefined";if(e.length){for(var i="",n=0;n<e.length;n++)i+=n+"="+t(e[n])+",";return i}return t(e)}},{key:"isDataTransferValid",value:function(e){if(!e)return!1;var t=e.types;if(!Array.isArray(t)||0===t.length)return!1;var i=t[0];return!!i&&!!e.getData(i)}},{key:"getDataTransferString",value:function(e){if(!e)return"dataTransfer is null";var t=e.types;if(!t||0===t.length||!t[0])return"dataTransfer has no mime types";for(var i="",n=0;n<t.length;n++){var o=t[n];i+=" type = "+o+" value = "+e.getData(o)}return i}}]),a}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=Object.freeze({SOURCE_SELECTOR:"mw-table-dnd-source",TARGET_SELECTOR_TABLE_BODY:".mw-table-cell",TARGET_SELECTOR_TABLE_HEADER:".mw-table-header-column",COLUMN_REGIONS:"50% 50%",dataType:{JSON:"json",TEXT:"text"},targetLifeCycle:{ENTER:"enter",HOVER:"hover",LEAVE:"leave"},modes:["columns","rowSelection"],AVAILABLE:{REPARENT:{ROWS:"reparentRows"}},TABLE_DEFAULT_TYPE:"mw-table-default-type",TABLE_SOURCE_COLUMN:"TABLE_COLUMN",TABLE_SOURCE_ROW:"TABLE_ROW",TREETABLE_DEFAULT_TYPE:"mw-treetable-default-type",getDragType:function(t,i){if(t===e.modes[0]&&i===e.TABLE_DEFAULT_TYPE)return e.TABLE_SOURCE_COLUMN}});return e}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1174)],o=i.dj.d(n,(function(e){"use strict";return function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this._getDomNodeWithHightlight=this._getDomNodeWithHightlight.bind(this),this._getDomNodeByValue=this._getDomNodeByValue.bind(this)}return r(t,[{key:"getTooltip",value:function(e){return"number"==typeof e&&(e=e.toString()),{text:e}}},{key:"getDomNode",value:function(e,t){return t&&t.searchHighlight&&t.searchHighlight.matches?this._getDomNodeWithHightlight(e,t.searchHighlight.matches,"mw-search-highlight-text"):this._getDomNodeByValue(e)}},{key:"_getDomNodeByValue",value:function(e){var t=document.createElement("div");return t.style.textOverflow="ellipsis",void 0===e&&(e=""),t.textContent=e,t.style.overflow="hidden",t.className="mw-string-renderer",t}},{key:"_getDomNodeWithHightlight",value:function(t,i){var n=document.createElement("div");return n.className="mw-string-renderer",n.style.textOverflow="ellipsis",n.setAttribute("data-test-id","highlightText"),n.setAttribute("data-region",!0),e.getHighlightedTextDOM(t.toString(),i).forEach((function(e){e.setAttribute&&e.setAttribute("data-region",!0),n.appendChild(e)})),n}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{Values:0,OriginalMin:1,OriginalMax:2,FilteredMin:3,FilteredMax:4,IncludeMissing:5,MissingString:6,MissingCount:7,SelectedRangeMin:8,SelectedRangeMax:9,SelectedRangeMinFullPrecision:10,SelectedRangeMaxFullPrecision:11,FilteredMinDispVal:12,FilteredMaxDispVal:13,rangeMinDispVal:14,rangeMaxDispVal:15,missingCountsDispVal:16,OriginalMinFullPrecision:17,OriginalMaxFullPrecision:18,TimeFormat:19,DateFormat:20,OriginalMinDT:21,OriginalMaxDT:22,SelectedRangeMinDT:23,SelectedRangeMaxDT:24,ShowTimeComponent:25}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1533),i(460)],o=i.dj.d(n,(function(e,t){var i=e.mergeEnums({F2:113,ESCAPE:27,DELETE:46,ALT:18},t);return Object.freeze(i)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(6815),i(251),i(2403),i(7172),i(7173),i(7174),i(7175),i(7176),i(993),i(2424),i(7177),i(2432),i(1976)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){const f=["rtc.settings.provider.lexer","rtc.duplicateline.plugin","contextmenu","findandreplace","gotolinenumber","rtc.caseconverter","margin.linenumber","draganddrop","rtc.linenumberpreference","rtc.emacsstyle.tab","rtc.cutcopypaste","rtc.smarttab","rtc.indent","comment","language.common.syntaxhighlighter.colors","rtc.editortabservice.preference","rtc.contextualselection.evaluateselection","rtc.contextualselection.openselection","rtc.helponselection","rtc.settings.service","plainTextPrint","trimautowhitespace"],g=["bookmarks"],m=["pagination","currentlinehighlight","verticalcodeborder","rtc.preferences.fonts.code"],_=["rtc.code.wrapComments","codeanalyzer","matlab.code.variables.rename","rtc.autocompletions","rtc.autocompletions.preference","matlab.code.variables.highlighting","messagebar","autoindent","smartindent","parenmatching","rtc.smartformatting.formatters.autocoding","syntaxhighlighter","blockmatching","matlab.code.variables.nonlocalhighlightingpreference","language.matlab.syntaxhighlighter.enablepreference","folding","plaincodesections","language.common.lexer.preferences"],v=["matlab.persistfold"];return{createPlainTextEditor:function(e,t){let i=e||{};i.language=t||p.TEXT,i.enabled=i.enabled||[];const n=i.enabled.includes("rtc.backingstore");let o=[];switch(i.language){case p.MATLAB:o=o.concat(this.getMatlabDefaultPlugins(n),["debugging"]);break;default:i.language!==p.TEXT&&o.push("externallanguagesupport")}o=o.concat(this.getCommonDefaultPlugins(n),this.getPlainTextDefaultPlugins(n));let r=o.indexOf("pagination");return r>=0&&(o.splice(r,1),o.unshift("pagination")),i.enabled=i.enabled.concat(o),this.createRTC(i)},createRTC:function(i){var n=new e,o=i.containerElement;return this._formatArguments(i).then(e=>{var i=this._getPluginsToRequire(e.registry,e.dependencies,e.features);require(i,function(){var i=new t(e,o);o&&i.startup(),n.resolve(i)}.bind(this))}),n.promise},_formatArguments:function(t){var i=new e,n=t.features||[],o=t.enabled||[],r=t.disabled||[],a=t.registry||[];return this._loadAdditionalPlugins(o,a).then(e=>{var a=this._updateFeatures(n,o,r),s={class:"rtePaneFixedSize",language:t.language||p.MATLAB,dependencies:t.dependencies||{},registry:new c(e,t.registryConfigurationId),registryConfigurationId:t.registryConfigurationId,features:{fixedSize:t.fixedSize||!0,fileEndSelectable:t.fileEndSelectable||!1,enabled:a.enabledFeatures,disabled:a.disabledFeatures}};t.visualFamily&&(s.visualFamily=t.visualFamily),t.clipboard&&(s.clipboard=t.clipboard),t.id&&(s.id=t.id),t.actionDataService&&(s.actionDataService=t.actionDataService),t.initialDocumentText&&(s.initialDocumentText=t.initialDocumentText),t.readOnly&&(s.readOnly=t.readOnly),t.states&&(s.states=t.states),i.resolve(s)}),i.promise},_loadAdditionalPlugins:function(t,i){let n=new e,c=[];return t.includes("embeddedoutputs")&&(c=c.concat(JSON.parse(o).moduleDefs)),t.includes("equationeditors")&&(c=c.concat(JSON.parse(r).moduleDefs)),t.includes("rtc.liveapps")&&(c=c.concat(JSON.parse(a).moduleDefs)),(t.includes("rtc.livecontrols")||t.includes("rtc.livecontrols.view")||t.includes("rtc.livecontrols.execution"))&&(c=c.concat(JSON.parse(s).moduleDefs)),(t.includes("equationrenderer")||t.includes("rtc.richtext")||t.includes("rtc.richtext.codeexample")||t.includes("rtc.richtext.hyperlink")||t.includes("rtc.richtext.images")||t.includes("rtc.richtext.lists")||t.includes("rtc.richtext.tableofcontents"))&&(c=c.concat(JSON.parse(l).moduleDefs)),c.length>0?h._loadModule(c).then(e=>{i=i.concat(e),n.resolve(i)}):n.resolve(i),n},_getPluginsToRequire:function(e,t,i){var o=this._getPluginPathsFromRegistry(n),r=this._getPluginPathsFromRegistry(d),a=this._getPluginPathsFromEnabledFeatures(e,i,t);return o.concat(r,a)},getCommonDefaultPlugins:function(e){let t=f.slice();return e&&(t=t.concat(g)),t},getPlainTextDefaultPlugins:function(e){return m.slice()},getMatlabDefaultPlugins:function(e){let t=_.slice();return e&&(t=t.concat(v)),t},_updateFeatures:function(e,t,n){var o={enabledFeatures:t,disabledFeatures:n},r=function(t,i){(function(t){return-1!==e.indexOf(t)})(t)&&o.enabledFeatures.push(i)};return r(i.SYNTAX_HIGHLIGHTING,"syntaxhighlighter"),r(i.AUTO_INDENT,"autoindent"),r(i.CODE_ANALYZER,"codeanalyzer"),r(i.CONTEXT_MENU,"contextmenu"),r(i.CUT_COPY_PASTE,"rtc.cutcopypaste"),r(i.EVALUATE_SELECTION,"rtc.contextualselection.evaluateselection"),r(i.FIND_STRING,"findandreplace"),r(i.FORMAT_CODE,"smartindent"),r(i.GOTO_LINE,"gotolinenumber"),r(i.GUTTER_LINE_NUMBER,"margin.linenumber"),r(i.OPEN_SELECTION,"rtc.contextualselection.openselection"),r(i.PAREN_MATCH,"parenmatching"),r(i.AUTO_COMPLETION,"rtc.autocompletions"),r(i.AUTO_COMPLETION_PREFERENCE,"rtc.autocompletions.preference"),r(i.VARIABLE_HIGHLIGHTING,"matlab.code.variables.highlighting"),r(i.RICH_TEXT,"rtc.richtext"),r(i.LISTS,"rtc.richtext.lists"),r(i.CODE_EXAMPLE,"rtc.richtext.codeexample"),r(i.HYPERLINK,"rtc.richtext.hyperlink"),r(i.EQUATIONS,"equationeditors"),r(i.IMAGES,"rtc.richtext.insertimage"),r(i.EDIT_IMAGE,"rtc.richtext.images.edit"),r(i.INDENT,"rtc.indent"),r(i.SMART_TAB,"rtc.smarttab"),r(i.TABLE_OF_CONTENTS,"rtc.richtext.tableofcontents"),r(i.AUTO_CODING,"rtc.smartformatting.formatters.autocoding"),r(i.AUTO_FORMATTING,"rtc.smartformatting.formatters.autoformatting"),r(i.HELP_ON_SELECTION,"rtc.helponselection"),r(i.REFACTOR,"refactoringtools"),r(i.EDITOR_TAB_PREFERENCE,"rtc.editortabservice.preference"),r(i.COMMENT,"comment"),r(i.BACKGROUND_FOREGROUND_COLORS,"rtc.backgroundforegroundcolor"),o},_getPluginPathsFromRegistry:function(e){return e.plugins.map((function(e){return e.path}))},_getPluginPathsFromEnabledFeatures:function(e,t,i){var n=new u(e,t.enabled,t.disabled,null,i,null),o=n.getPluginPathsArray(e);return n.destroy(),o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(678)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i){this._l10nResources=i},getPluginRegistry:function(){return this._registry},_getExports:function(){const e=this.inherited(arguments);return e.exports[this._registryName+"L10n"]=this._l10nResources,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(454),i(1123),i(1995),i(1997)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{constructor:function(e,t,i,n){this._internalDocument=t,this._tokenManager=i,this._syntaxHighlightingColors=n,this._enabled=!1,this._aspectHandles=[],this.enable()},enable:function(){this._enabled||(this._enabled=!0,this._enableListeners(),this._recolorDocument())},disable:function(){this._enabled&&(this._enabled=!1,this._disableListeners(),this._clearAllHighlighting())},_enableListeners:function(){this._aspectHandles.push(i.after(this._tokenManager,"onTokensUpdated",this._highlightUpdatedLines.bind(this),!0)),this._aspectHandles.push(i.after(this._syntaxHighlightingColors,"onColorsUpdated",t.hitch(this,"_handleColorMapChanged")))},_disableListeners:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]},_recolorDocument:function(){const e=new Array(this._internalDocument.getMaxLineNumber());for(let t=0;t<e.length;t++)e[t]=t;this._highlightUpdatedLines(new o(e))},_highlightUpdatedLines:function(e){const t=e.getAllRetokenizedLines(),i=this._getLineToDecorationInfoMap(t);this._updateHighlighting(t,i)},_getLineToDecorationInfoMap:function(e){const t={},i=this._tokenManager.getTokens();let n=1/0,o=-1/0;return e.forEach(e=>{t[e]=[];const r=i[e];r&&r.forEach(i=>{const r=this._syntaxHighlightingColors.getColorFromCategory(i.getType());if(!this._shouldBeColorized(r))return;const a=i.getColumn(),s=i.getColumn()+i.getLength(),l=r.toString();t[e].push(a,s,l),n=Math.min(n,e),o=Math.max(o,e)})}),t},_handleColorMapChanged:function(){this._clearAllHighlighting(),this._recolorDocument()},_updateHighlighting:function(e,t){e.forEach(e=>{this._decorator.updateLineRange(e,e,t)}),this._decorator.applyChanges()},_shouldBeColorized:function(e){return!e.equals(r.DEFAULT_TEXT_COLOR)},destroy:function(){this.inherited(arguments),this._disableListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(585),i(1395)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,t){this._syntaxHighlighterColorMap=e,this._settingsService=t,this._settingKeyToSyntaxType=this._getSettingKeyToSyntaxTypeMap(),this._setUpSettingServiceSubscriber(),this._readValuesOnLoad()},_getSettingKeyToSyntaxTypeMap:function(){return{}},_setUpSettingServiceSubscriber:function(){this.own(new o(this._getSettingKeyValuesAsArray(),this._settingsService,t.hitch(this,"_readValues")))},_readValuesOnLoad:function(){this._readValues(this._settingsService)},_readValues:function(e){var t=this._getSettingKeyValuesAsArray();this._syntaxHighlighterColorMap.pauseEvents(),t.forEach((function(t){var i=this._settingKeyToSyntaxType[t];this._ifNewValueSetColor(i,e.get(t))}),this),this._syntaxHighlighterColorMap.unpauseEvents()},_getSettingKeyValuesAsArray:function(){return Object.keys(this._settingKeyToSyntaxType)},_ifNewValueSetColor:function(e,t){if(t){const i=new n(t[0],t[1],t[2]);this._syntaxHighlighterColorMap.setColorForType(e,i)}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{IFRAME_LOAD_TIMEOUT:"IframeLoadTimeout",CONNECTION_FAULT:"Connection.Fault",GENERAL_SERVER_FAULT_CODE:"GeneralServerFault",SERVICE_UNAVAILABLE:"RemoteServiceUnavailable",CONCURRENT_SESSION:"SecurityService.ConcurrentSession",USER_NOT_AUTHORIZED:"SecurityService.UserNotAuthorized",USER_NOT_ENTITLED:"SecurityService.UserNotEntitled",EMAIL_NOT_VERIFIED:"SecurityService.EmailNotVerified",INVALID_LOGIN_CREDENTIALS:"SecurityService.InvalidLoginCredentials",LOGIN_SERVICE_ERROR:"SecurityService.LoginServiceError",INVALID_ACTIVATION_KEY:"SecurityService.InvalidActivationKey",USER_NOT_PROVISIONED:"SecurityService.UserNotProvisioned",INVALID_TERMS_OF_USE:"SecurityService.InvalidTermsOfUse",USER_MISSING_USERID:"SecurityService.MissingUserId",USERID_NOT_AVAILABLE:"SecurityService.UserIdNotAvailable",USERID_NOT_VALID:"SecurityService.UserIdNotValid",CREATE_PROFILE_ERROR:"SecurityService.CreateProfileError",SESSION_ALREADY_AUTHENTICATED:"SecurityService.SessionAlreadyAuthenticated",FILE_SERVICE_IO_ERROR_CODE:"FileService.IOError",VERSION_SERVICE_ERROR:"VersionService.Error",MAX_FIGURES_EXCEEDED:"FigureService.MaxFiguresExceeded",INVALID_MESSAGE_FOR_WORKER_STATE:"ComputeService.InvalidMessageForWorkerState",NO_WORKERS_AVAILABLE:"ComputeService.NoWorkersAvailable",EVAL_TRUNCATE_RESULT_WARNING_CODE:"ComputeService.EvalTruncateResultWarning",WORKER_NO_LONGER_AVAILABLE:"ComputeService.WorkerNoLongerAvailable",WORKER_RESPONSE_FAILURE:"ComputeService.WorkerResponseFailure",INVALID_CWD:"ComputeService.InvalidCwd",AUTHORIZATION_PROCESS_FAILURE:"AuthorizationService.ProcessFailure",SHARING_GENERAL_ERROR:"SharingService.GeneralError",SHARING_INVALID_USERID:"SharingService.InvalidUserID",REQUEST_IGNORED:"Request.Ignored",SESSIONS_ERROR:"Sessions.Error",FILENAME_ALREADY_ON_PATH:"PathManager.FilenameAlreadyOnPath",MATLAB_CODE_ERROR:"MATLAB.CodeError",INVALID_WORKER_REQUEST:"Request.InvalidMessage",WORKER_CRASH_FAILURE:"ComputeService.WorkerCrashFailure"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(233)],o=i.dj.d(n,(function(e){return{DOCUMENT_TYPE:{PLAIN_CODE_FILE:"editorFile",LIVE_CODE_FILE:"liveCodeFile"},isExtensionM:function(e){return this._isEditorHasExtension("m",e)},isExtensionMLX:function(e){return this._isEditorHasExtension("mlx",e)},isExtensionMLN:function(e){return this._isEditorHasExtension("mln",e)},isExtensionMorMLN:function(e){return this.isExtensionM(e)||this.isExtensionMLN(e)},isLatest:function(e){return e._isLatest},isShared:function(e){var t=e.getFile().fileInfo.shareAttributes;return t&&t.isConsumed},isEditable:function(e){return e&&e.isEditable()},isNotSharedAndLatest:function(e){return this.isLatest(e)&&!this.isShared(e)},isNotSharedAndLatestAndEditable:function(e){return this.isEditable(e)&&this.isLatest(e)&&!this.isShared(e)},_isEditorHasExtension:function(t,i){return!!i&&e.checkFileNameExtension(i.getFile().fileInfo.name,t)},isUntitled:function(e){return e&&e.getFile().isUntitled},saveUntitledBufferBeforeCallback:function(t,i){var n=t.getActiveEditor(window);n&&(this.isUntitled(n)&&this.isExtensionM(n)?n.widget.getBackingStore().save(e.pathFromFileInfo(n.getFile().fileInfo)).then((function(n){e.isFile(n)&&i(t.getAllOpenEditors(e.pathFromFileInfo(n.fileInfo)))}),(function(){})):(n.focus(),i(n)))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7985),i(7986),i(7987),i(7988)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/liveeditor",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8019)],o=i.dj.d(n,(function(e,t){return e(t,{pushToNavigation:function(e,t){this.emitNavigationData({eventType:e,node:t.getNode(),offset:t.getOffset()})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{GOTO:"motw.liveeditor.rtc_goTo_dialog",FIND:"motw.liveeditor.rtc_find_dialog",NEXT_SECTION:"motw.liveeditor.rtc_navigate_next_section",PREVIOUS_SECTION:"motw.liveeditor.rtc_navigate_previous_section",BOOKMARK_TOGGLE:"motw.liveeditor.rtc_toggle_bookmark",BOOKMARK_PREVIOUS:"motw.liveeditor.rtc_previous_bookmark",BOOKMARK_NEXT:"motw.liveeditor.rtc_next_bookmark",BOLD:"motw.liveeditor.rtc_toggle_bold",ITALIC:"motw.liveeditor.rtc_toggle_italic",UNDERLINE:"motw.liveeditor.rtc_toggle_underline",MONOSPACE:"motw.liveeditor.rtc_toggle_monospace",COMMENT:"motw.liveeditor.rtc_comment",UNCOMMENT:"motw.liveeditor.rtc_uncomment",WRAP_COMMENT:"motw.liveeditor.rtc_wrap_comment",SMART_INDENT:"motw.liveeditor.rtc_smart_indent",INDENT:"motw.liveeditor.rtc_indent",UNINDENT:"motw.liveeditor.rtc_unindent",REFACTOR:"motw.liveeditor.rtc_refactor",REFACTOR_FUNCTION:"motw.liveeditor.rtc_refactor_external_function",REFACTOR_LOCAL_FUNCTION:"motw.liveeditor.rtc_refactor_local_function",INSERT_CODE:"motw.liveeditor.rtc_insert_code",INSERT_TEXT:"motw.liveeditor.rtc_insert_text",INSERT_SECTION_BREAK:"motw.liveeditor.rtc_insert_sectionbreak",INSERT_EQUATION:"motw.liveeditor.rtc_equation",INSERT_EQUATION_EDITOR:"motw.liveeditor.rtc_equation_editor",INSERT_HYPERLINK:"motw.liveeditor.rtc_hyperlink",INSERT_IMAGE:"motw.liveeditor.rtc_image",INSERT_CONTROL:"motw.liveeditor.rtc_insert_live_control",INSERT_SLIDER:"motw.liveeditor.rtc_insert_slider",INSERT_COMBO_BOX:"motw.liveeditor.rtc_insert_combo_box",INSERT_CHECK_BOX:"motw.liveeditor.rtc_insert_check_box",INSERT_EDIT_FIELD:"motw.liveeditor.rtc_insert_edit_field",INSERT_BUTTON:"motw.liveeditor.rtc_insert_button",INSERT_TASK:"motw.liveeditor.rtc_liveapps_inserttask",INSERT_TABLE_OF_CONTENTS:"motw.liveeditor.rtc_table_of_contents",INSERT_CODE_EXAMPLE:"motw.liveeditor.rtc_codeexample",INSERT_CODE_EXAMPLE_MATLAB:"motw.liveeditor.rtc_codeexample_matlab",INSERT_CODE_EXAMPLE_PLAIN:"motw.liveeditor.rtc_codeexample_plain",NORMAL:"motw.liveeditor.rtc_paraformat_text",HEADING1:"motw.liveeditor.rtc_paraformat_heading",HEADING2:"motw.liveeditor.rtc_paraformat_heading2",HEADING3:"motw.liveeditor.rtc_paraformat_heading3",TITLE:"motw.liveeditor.rtc_paraformat_title",BULLETED_LIST:"motw.liveeditor.rtc_unordered_list",NUMBERED_LIST:"motw.liveeditor.rtc_ordered_list",PARAGRAPH_STYLE:"motw.liveeditor.rtc_paragraph_style",ALIGN_LEFT:"motw.liveeditor.rtc_align_left",ALIGN_CENTER:"motw.liveeditor.rtc_align_center",ALIGN_RIGHT:"motw.liveeditor.rtc_align_right",RUN_ALL:"motw.liveeditor.rtc_run",PAUSE:"motw.liveeditor.rtc_pause",CONTINUE:"motw.liveeditor.rtc_continue",STEP:"motw.liveeditor.rtc_step",STEP_IN:"motw.liveeditor.rtc_debug_step_in",STEP_OUT:"motw.liveeditor.rtc_debug_step_out",RUN_TO_CURSOR:"motw.liveeditor.rtc_run_to_cursor",STOP:"motw.liveeditor.rtc_stop_execution",CLEAR_ALL_BREAKPOINTS:"motw.liveeditor.rtc_clear_all_breakpoints",TOGGLE_BREAKPOINT:"motw.liveeditor.rtc_toggle_breakpoint",TOGGLE_ENABLE_BREAKPOINT:"motw.liveeditor.rtc_toggle_enable_breakpoint",RUN_SECTION:"motw.liveeditor.rtc_run_section",RUN_AND_ADVANCE:"motw.liveeditor.rtc_run_section_advance",RUN_TO_END:"motw.liveeditor.rtc_run_section_end",DATATIPS:"motw.liveeditor.rtc_liveeditor_datatips",COMPLETIONS:"motw.liveeditor.rtc_completions",CLEAR_ALL_OUTPUT:"motw.liveeditor.rtc_clear_all_output",OUTPUT_INLINE:"motw.liveeditor.rtc_inline_view",OUTPUT_ON_RIGHT:"motw.liveeditor.rtc_on_right_view",HIDE_CODE_VIEW:"motw.liveeditor.rtc_hide_code_view"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(242),i(214),i(217),i(213),i(221),i(206),i(227),i(225),i(279),i(231),i(312),i(209),i(2607),i(756),i(8279),i(8282),i(1015)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b;function y(){}return(b=e([],{FLOATING_PANE_PADDING_W:5,FLOATING_PANE_PADDING_H:15,preWidgetId:"mgg_",constructor:function(e){e=e||{},this.componentData=e.widgetData,this.guiDataService=e.guiDataService,this.layoutService=e.layoutService,this.handler=e.handler,this._embeddedFigureContextualToolstripManager=new f(e.layoutService),this.children=[];var o,r=this;setTimeout((function(){r._sendBrowserResize()}),0),n.after(i.global,"onresize",t.hitch(this,this._sendBrowserResize)),this._started=!0,this._resizing={},this._tooltipOpenMethod=h.prototype.open,(o=this)._autoResizeEventHasSent=!1,b.sendBrowserResize=function(){o._autoResizeEventHasSent||(o._createResizeEvent=!0,o._autoResizeEventHasSent=!0,o._sendBrowserResize())},b.deselectChildren=function(){o._deselectChildren()}},update:function(e,t){var i;if(this.componentData=e,"clipboard"===t&&this._showClipboard(this.componentData.clipboard),"selectedChild"===t){var n,o=this.getChildren();for(n=0;n<o.length;n+=1)o[n].componentData.id===this.componentData.selectedChild&&(i=o[n],b.lazyLoadEnabled&&i.componentData.docked&&i.busyIndicator.show(),this.layoutService.showWidget(i.layoutWidgetId)),b.lazyLoadEnabled&&this._updateVisibility(o[n])}!1!==this.componentData.enableTooltips&&h.prototype.open===y?h.prototype.open=this._tooltipOpenMethod:!1===this.componentData.enableTooltips&&(h.prototype.open=y),"openGuis"===t&&this._checkMaxFigures()},addChild:function(e){if(b.windowOpenedOrClosed(),this.children.push(e),!e.componentData.filtered&&"FileChooser"!==e.componentData.type){this._addToLayout(e),b.lazyLoadEnabled&&e.busyIndicator&&e.busyIndicator.show();var t=this;e.onShow=function(){t.handler.setProperties(t.componentData.id,{selectedChild:e.widgetId})},setTimeout((function(){t.layoutService.updateWidget(e.layoutWidgetId,"dirty",Math.random())}),0),n.after(e,"addChild",(function(){e.componentData.docked?t._onWidgetResize(e):t.layoutService.updateWidget(e.layoutWidgetId,"dirty",Math.random())})),n.after(e,"childUpdated",(function(){if(e.componentData.docked){if(t._onWidgetResize(e),e.hasCameraToolBar?t._embeddedFigureContextualToolstripManager.select(e.layoutWidgetId,"motwToolstrip.cameraToolbarContext"):t._embeddedFigureContextualToolstripManager.hide(e.layoutWidgetId),b.lazyLoadEnabled){var i,n=t.getChildren();for(i=0;i<n.length;i+=1)t._updateVisibility(n[i])}}else t.layoutService.updateWidget(e.layoutWidgetId,"dirty",Math.random())})),e.childUpdated(),n.after(e,"removeChild",(function(){e.componentData.docked?t._onWidgetResize(e):t.layoutService.updateWidget(e.layoutWidgetId,"dirty",Math.random())})),n.after(e,"onMinimized",(function(){e.componentData.docked||t.layoutService.updateWidget(e.layoutWidgetId,"minimized",!0)})),n.after(e,"onWindowShown",(function(){e.componentData.docked||t.layoutService.updateWidget(e.layoutWidgetId,"minimized",!1),b.lazyLoadEnabled&&e.busyIndicator&&e.busyIndicator.hide()}))}},childUpdated:function(e,t,i,n){if(!e.componentData.filtered){var o=!1,r=!1;e._lastPosition!==e.componentData.position&&(this.layoutService.updateWidget(e.layoutWidgetId,"dirty",Math.random()),e._lastPosition=e.componentData.position,o=!0),e._lastDocked!==e.componentData.docked&&(e.getParent().removeChild(e),this.layoutService.removeWidget(e.layoutWidgetId),this._addToLayout(e),r=!0),o||r||this.layoutService.updateWidget(e.layoutWidgetId,t,n)}},removeChild:function(e){b.windowOpenedOrClosed();var t=this.children.indexOf(e);t>=0&&this.children.splice(t,1),e.componentData.filtered||"FileChooser"===e.componentData.type||this.layoutService.removeWidget(e.layoutWidgetId),e.destroyRecursive()},destroyRecursive:function(){this.children.map((function(e){return e})).forEach(this.removeChild,this)},getChildren:function(){return this.children},_addToLayout:function(e){var i="mggDocked";(!e.componentData.docked&&b.usePanes||!1===e.componentData.dockable)&&(i=e.componentData.modal?"mggDialog":"mggFloatingPane"),b.dockAll&&(i="mggDocked"),!b.dockAll&&"mggDocked"===i&&e.componentData.morphId&&(i="mggMorphed"),e._lastDocked=e.componentData.docked;var n=Math.max(0,e.componentData.top),r=Math.max(0,e.componentData.left);if(e.componentData.isPositionRelative)if(e.componentData.anchor_id){var a=u.byId(e.componentData.anchor_id);if(a){o.getBorderExtents(a.domNode);n=(s=o.position(a.domNode)).y+s.h,r=s.x}}else if(e.componentData.relativeParentId){var s,l=u.byId("mgg_"+e.componentData.relativeParentId);if(l)n+=(s=o.position(l.domNode)).y-20,r+=s.x}e.layoutWidgetId=this.preWidgetId+e.componentData.id+"_"+Math.random(),e.connect(e,"resize",t.hitch(this,this._onWidgetResize,e)),this.layoutService.addWidget(e.layoutWidgetId,i,e,{title:e.componentData.title||" ",morphId:e.componentData.morphId||"",relativeParentId:e.componentData.relativeParentId||void 0,top:n,left:r,tooltip:e.componentData.title,overflow:"hidden",resizable:this._shouldGuiBeResizable(e.componentData),class:"mgg"+(e.componentData.relativeParentId?" hideMinimizeButton":""),autofocus:e.componentData.modal,active:e.componentData.id===this.componentData.selectedChild,onResize:t.hitch(this,this._onResize),onMinimize:t.hitch(this,this._onMinimize),onWindowShow:t.hitch(this,this._onWindowShow),onMove:t.hitch(this,this._onMove),onBringToTop:t.hitch(this,this._onBringToTop)})},_updateVisibility:function(e){if("GUIContainer"===e.componentData.type){var t=this.layoutService._getProperties(e.layoutWidgetId);t&&(e.componentData.visible=t.isShowing,e.handler.handleEvent(e.widgetId,{type:"makeVisible",visible:e.componentData.visible},!0))}},_onResize:function(e){this._onWidgetResize(e.widget)},_onMinimize:function(e){this.handler.setProperties(e.widget.peerNode.getId(),{minimized:!0},!0)},_onWindowShow:function(e){b.lazyLoadEnabled&&e.widget.busyIndicator.show(),this.handler.setProperties(e.widget.peerNode.getId(),{minimized:!1},!0),this._bringRelativeChildOnTop(e)},_onWidgetResize:function(e){var t=e.componentData.id;this._resizing[t]&&clearTimeout(this._resizing[t]);var i=this;this._resizing[t]=setTimeout((function(){if(clearTimeout(i._resizing[t]),delete i._resizing[t],e.componentData.resizable&&e.domNode&&e.domNode.parentNode){var n=o.position(e.contentContainer),r=n.w/n.h,a=0;if(e.menuContainer)a=o.position(e.menuContainer).h;var s=0;if(e.toolBarContainer)s=o.position(e.toolBarContainer).h;var l=o.position(e.domNode.parentNode);if(l.h-=a,l.h-=s,b.maintainAspect&&e.componentData.docked)r<l.w/l.h?l.w=l.h*r:l.h=l.w/r;if(l.w=Math.round(l.w),l.h=Math.round(l.h),l.w>50&&l.h>50){i._doSendBrowserResize();var c=l.w-n.w,d=l.h-n.h;(c<0||c>2||d<0||d>2)&&e.handler.handleEvent(e.widgetId,{type:"resize",width:l.w,height:l.h}),e.componentData.docked&&i.handler.setProperties(i.componentData.id,{dockedWidth:l.w,dockedHeight:l.h}),b.lazyLoadEnabled&&e.busyIndicator&&e.busyIndicator.hide()}}}),500)},_onMove:function(e){var t=o.position(e.wrapper.domNode);e.widget.handler.setProperties(e.widget.widgetId,{top:t.y,left:t.x},!0)},_onBringToTop:function(e){this.handler.setProperties(this.componentData.id,{selectedChild:e.widget.widgetId},!0),this._autoResizeEventHasSent=!1;var t=this;e.relativeParentId||this.layoutService.layoutStore.fetch({query:{relativeParentId:e.widget.widgetId},onItem:function(e){t._bringRelativeChildOnTop(e)}})},_bringRelativeChildOnTop:function(e){var t=c('div[id^="'+this.preWidgetId+e.relativeParentId+'_"]')[0],i=t?parseInt(r.get(t,"z-index"))+1:null;if(null!==i){var n=l.byId(e.id);r.set(n,"z-index",i)}},_sendBrowserResize:function(){this._browserResizing&&clearTimeout(this._browserResizing);var e=this;this._browserResizing=setTimeout((function(){e._doSendBrowserResize()}),500)},_doSendBrowserResize:function(){clearTimeout(this._browserResizing),this._browserResizing=!1;var e=0;if(this._createResizeEvent){for(this._createResizeEvent=!1,e=Math.round(10*Math.random())+1;e===this._tempResizeNumber;)e=Math.round(10*Math.random())+1;this._tempResizeNumber=e}else this._autoResizeEventHasSent=!1;this.handler.setProperties(this.componentData.id,{screenWidth:d.getBox().w-e-2*this.FLOATING_PANE_PADDING_W,screenHeight:d.getBox().h-2*this.FLOATING_PANE_PADDING_H},!1)},_deselectChildren:function(){this.handler.setProperties(this.componentData.id,{selectedChild:""})},_showClipboard:function(e){var t=this;if(this._clipboard)this._clipboard.setText(e);else{this._clipboard=new m({text:e});var i=[{name:"Ok",label:v.clipboardButton,buttonHandler:{scope:this,handler:"dismiss"}}];g.displayMessage(this._clipboard,v.clipboardTitle,i),n.after(this._clipboard,"destroyRecursive",(function(){t._clipboard=null}))}},_checkMaxFigures:function(){!(b.lazyLoadEnabled?this.componentData.maxGuis:this.componentData.openGuis.some((function(e){return!e.isLoaded})))||this.guiDataService.maxFiguresWarningOff||this.guiDataService.maxFiguresWarningOffAlways||this._showMaxFiguresDialog()},_showMaxFiguresDialog:function(){var e=new _({guiDataService:this.guiDataService});setTimeout((function(){g.displayFault(e,e.title,e.buttons)}),0)},_shouldGuiBeResizable:function(e){return!(!e.title||-1===e.title.indexOf("Filter Design & Analysis Tool"))||e.resizable}})).usePanes=!0,b.usePopups=!a("ie")&&!a("trident"),b.dockAll=!1,b.lazyLoadEnabled=!1,b.maintainAspect=!0,b.windowOpenedOrClosed=function(){},b.emptyEval=function(){},b}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(213),i(210),i(242),i(228),i(238),i(276),i(8382),i(1640)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){var u=e(l,{});return e(null,{addModule:function(e,t){t.wrapper=this._createWrapper(t),this.addToContainer(e,t)},removeModule:function(e,t){e.widget.removeChild(t.wrapper),t.wrapper.destroyRecursive()},updateModule:function(e,t,n,o,a){"focused"===n&&a?t.blockFocus||!t.widget||s.curNode===t.widget.domNode||i.isDescendant(s.curNode,t.widget.domNode)||(t.blockFocus=!0,dijit.focus(t.widget.domNode),t.blockFocus=!1):"enabled"===n?!0===a&&t.wrapper.disabledOverlay?t.wrapper.disabledOverlay.hide():(t.wrapper.disabledOverlay||(t.wrapper.disabledOverlay=new c({target:t.wrapper.domNode}),t.wrapper.disabledOverlay.placeAt(r.body()),t.wrapper.disabledOverlay.startup()),t.wrapper.disabledOverlay.show()):"widget"===n?(t.wrapper.set("content",a),o.hasOwnProperty("destroyRecursive")&&o.destroyRecursive()):t.wrapper.set(n,a)},addToContainer:function(e,t){e.widget.addChild(t.wrapper,t.position),t.widget&&t.widget.startup&&t.widget.startup(),t.wrapper&&t.wrapper.startup&&t.wrapper.startup()},createContainer:function(e){throw new Error("subclasses need to override this method")},destroyContainer:function(e){e.widget.destroyRecursive()},_createWrapper:function(e){var t=new u({title:e.title||"",tooltip:e.tooltip,id:e.id+"Wrapper",layoutId:e.layoutId,splitter:e.splitter,collapsible:e.collapsible,minSize:e.minSize,closable:e.closable,style:e.style,region:e.region,class:e.class||"layoutContainer"});return this._addWrapperEvents(t,e),t.set("content",e.widget),n.set(t.domNode,{overflow:e.overflow||"hidden"}),t},_addWrapperEvents:function(e,t){t.focusBorder&&o.add(e.domNode,"focusable"),e.onClose=function(){return t.widget.onClose&&t.widget.onClose(arguments)},e.onShow=function(){return t.widget.onShow&&t.widget.onShow(arguments)},e.onFocus=function(){return t.focusBorder&&(o.add(e.domNode,"focused"),t.wrapper.set("isSelected",!0)),t.widget.onFocus&&t.widget.onFocus(arguments)},e.onBlur=function(){return t.focusBorder&&(o.remove(e.domNode,"focused"),t.wrapper.set("isSelected",!1)),t.widget.onBlur&&t.widget.onBlur(arguments)},e.watch("isSelected",(function(i,n,r){r&&!o.contains(e.domNode,"focused")?(s.focus(t.widget.domNode),o.add(e.domNode,"focused"),d.focusWidget(t.id)):!r&&o.contains(e.domNode,"focused")&&o.remove(e.domNode,"focused")}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(204)],o=i.dj.d(n,(function(e,t){"use strict";return{getMapValues:function(t){if("object"!=typeof t)throw new Error("getMapValues applied on non-object.");return e.map(Object.keys(t),(function(e){return t[e]}))},toMap:function(t,i,n){var o={};return i||(i=function(e,t){return t}),n||(n=function(e){return e}),e.forEach(t,(function(e,t){o[i(e,t)]=n(e,t)})),o},forEachValue:function(e,i,n){if("object"!=typeof e)throw new Error("forEachValue applied on non-object.");n&&(i=t.hitch(n,i)),Object.keys(e).forEach((function(t){i(e[t],t)}),n)},makeArray:function(e){return e?t.isArray(e)?e:[e]:[]},requireArgs:function(e,i,n){if(!i)throw new Error("No arguments specified when creating the "+e);n.forEach((function(n){if(!i[n])throw new Error(t.replace("{0}: {1} not specified.",[e,n]))}))},noOp:function(){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1267),i(1266),i(2752),i(1033),i(221)],o=i.dj.d(n,(function(e,t,i,n,o){o.add("native-xhr",(function(){return"undefined"!=typeof XMLHttpRequest})),o.add("dojo-force-activex-xhr",(function(){return o("activex")&&"file:"===window.location.protocol})),o.add("native-xhr2",(function(){if(o("native-xhr")&&!o("dojo-force-activex-xhr")){var e=new XMLHttpRequest;return void 0!==e.addEventListener&&("undefined"==typeof opera||void 0!==e.upload)}})),o.add("native-formdata",(function(){return"undefined"!=typeof FormData})),o.add("native-response-type",(function(){return o("native-xhr")&&void 0!==(new XMLHttpRequest).responseType})),o.add("native-xhr2-blob",(function(){if(o("native-response-type")){var e=new XMLHttpRequest;e.open("GET","/",!0),e.responseType="blob";var t=e.responseType;return e.abort(),"blob"===t}}));var r,a,s,l,c={blob:o("native-xhr2-blob")?"blob":"arraybuffer",document:"document",arraybuffer:"arraybuffer"};function d(t,o){var r,a=t.xhr;t.status=t.xhr.status;try{t.text=a.responseText}catch(e){}if("xml"===t.options.handleAs&&(t.data=a.responseXML),!o)try{i(t)}catch(e){o=e}if(o)this.reject(o);else{try{i(t)}catch(e){r=e}n.checkStatus(a.status)?r?this.reject(r):this.resolve(t):r?(o=new e("Unable to load "+t.url+" status: "+a.status+" and an error in handleAs: transformation of response",t),this.reject(o)):(o=new e("Unable to load "+t.url+" status: "+a.status,t),this.reject(o))}}function u(e){return this.xhr.getResponseHeader(e)}o("native-xhr2")?(r=function(e){return!this.isFulfilled()},l=function(e,t){t.xhr.abort()},s=function(t,i,n){function o(e){i.handleResponse(n)}function r(t){var o=t.target,r=new e("Unable to load "+n.url+" status: "+o.status,n);i.handleResponse(n,r)}function a(e){e.lengthComputable?(n.loaded=e.loaded,n.total=e.total,i.progress(n)):3===n.xhr.readyState&&(n.loaded="loaded"in e?e.loaded:e.position,i.progress(n))}return t.addEventListener("load",o,!1),t.addEventListener("error",r,!1),t.addEventListener("progress",a,!1),function(){t.removeEventListener("load",o,!1),t.removeEventListener("error",r,!1),t.removeEventListener("progress",a,!1),t=null}}):(r=function(e){return e.xhr.readyState},a=function(e){return 4===e.xhr.readyState},l=function(e,t){var i=t.xhr,n=typeof i.abort;"function"!==n&&"object"!==n&&"unknown"!==n||i.abort()});var h={data:null,query:null,sync:!1,method:"GET"};function p(i,f,g){var m=o("native-formdata")&&f&&f.data&&f.data instanceof FormData,_=n.parseArgs(i,n.deepCreate(h,f),m);i=_.url,f=_.options;var v,b=n.deferred(_,l,r,a,d,(function(){v&&v()})),y=_.xhr=p._create();if(!y)return b.cancel(new e("XHR was not created")),g?b:b.promise;_.getHeader=u,s&&(v=s(y,b,_));var C=f.data,T=!f.sync,E=f.method;try{y.open(E,i,T,f.user||void 0,f.password||void 0),f.withCredentials&&(y.withCredentials=f.withCredentials),o("native-response-type")&&f.handleAs in c&&(y.responseType=c[f.handleAs]);var S=f.headers,w=!m&&"application/x-www-form-urlencoded";if(S)for(var I in S)"content-type"===I.toLowerCase()?w=S[I]:S[I]&&y.setRequestHeader(I,S[I]);w&&!1!==w&&y.setRequestHeader("Content-Type",w),S&&"X-Requested-With"in S||y.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.notify&&n.notify.emit("send",_,b.promise.cancel),y.send(C)}catch(e){b.reject(e)}return t(b),y=null,g?b:b.promise}if(p._create=function(){throw new Error("XMLHTTP not available")},o("native-xhr")&&!o("dojo-force-activex-xhr"))p._create=function(){return new XMLHttpRequest};else if(o("activex"))try{new ActiveXObject("Msxml2.XMLHTTP"),p._create=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}catch(e){try{new ActiveXObject("Microsoft.XMLHTTP"),p._create=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}catch(e){}}return n.addCommonMethods(p),p}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(227),i(228),i(213),i(204),i(245),i(31)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s={_isElementShown:function(e){var t=n.get(e);return"hidden"!=t.visibility&&"collapsed"!=t.visibility&&"none"!=t.display&&"hidden"!=i.get(e,"type")},hasDefaultTabStop:function(e){switch(e.nodeName.toLowerCase()){case"a":return i.has(e,"href");case"area":case"button":case"input":case"object":case"select":case"textarea":return!0;case"iframe":var t;try{var n=e.contentDocument;if("designMode"in n&&"on"==n.designMode)return!0;t=n.body}catch(i){try{t=e.contentWindow.document.body}catch(e){return!1}}return t&&("true"==t.contentEditable||t.firstChild&&"true"==t.firstChild.contentEditable);default:return"true"==e.contentEditable}},effectiveTabIndex:function(e){return i.get(e,"disabled")?void 0:i.has(e,"tabIndex")?+i.get(e,"tabIndex"):s.hasDefaultTabStop(e)?0:void 0},isTabNavigable:function(e){return s.effectiveTabIndex(e)>=0},isFocusable:function(e){return s.effectiveTabIndex(e)>=-1},_getTabNavigable:function(e){var t,n,o,a,l,c,d={};function u(e){return e&&"input"==e.tagName.toLowerCase()&&e.type&&"radio"==e.type.toLowerCase()&&e.name&&e.name.toLowerCase()}var h=s._isElementShown,p=s.effectiveTabIndex,f=function(e){for(var s=e.firstChild;s;s=s.nextSibling)if(!(1!=s.nodeType||r("ie")<=9&&"HTML"!==s.scopeName)&&h(s)){var g=p(s);if(g>=0){0==g?(t||(t=s),n=s):g>0&&((!o||g<a)&&(a=g,o=s),(!l||g>=c)&&(c=g,l=s));var m=u(s);i.get(s,"checked")&&m&&(d[m]=s)}"SELECT"!=s.nodeName.toUpperCase()&&f(s)}};function g(e){return d[u(e)]||e}return h(e)&&f(e),{first:g(t),last:g(n),lowest:g(o),highest:g(l)}},getFirstInTabbingOrder:function(e,i){var n=s._getTabNavigable(t.byId(e,i));return n.lowest?n.lowest:n.first},getLastInTabbingOrder:function(e,i){var n=s._getTabNavigable(t.byId(e,i));return n.last?n.last:n.highest}};return r("extend-dojo")&&o.mixin(a,s),s}),e,t),e.exports=o},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,require;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__.dj.c(module.i),__webpack_require__(240),__webpack_require__(204),__webpack_require__(224),__webpack_require__(420),__webpack_require__(227),__webpack_require__(242),__webpack_require__(1035),__webpack_require__(214),__webpack_require__(244),__webpack_require__(1275),__webpack_require__(212),__webpack_require__(221),__webpack_require__(225),__webpack_require__(206),__webpack_require__(385)],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(require,dojo,dlang,darray,config,dom,dwindow,_Url,aspect,all,dates,Deferred,has,query,don,ready){function myEval(text){return eval("("+text+")")}new Date("X");var extendCnt=0;function getNameMap(e){var t=e._nameCaseMap,i=e.prototype;if(!t||t._extendCnt<extendCnt){for(var n in t=e._nameCaseMap={},i)"_"!==n.charAt(0)&&(t[n.toLowerCase()]=n);t._extendCnt=extendCnt}return t}function getCtor(e,t){t||(t=require);var i=t._dojoParserCtorMap||(t._dojoParserCtorMap={}),n=e.join();if(!i[n]){for(var o=[],r=0,a=e.length;r<a;r++){var s=e[r];o[o.length]=i[s]=i[s]||dlang.getObject(s)||~s.indexOf("/")&&t(s)}var l=o.shift();i[n]=o.length?l.createSubclass?l.createSubclass(o):l.extend.apply(l,o):l}return i[n]}aspect.after(dlang,"extend",(function(){extendCnt++}),!0);var parser={_clearCache:function(){extendCnt++,_ctorMap={}},_functionFromScript:function(e,t){var i="",n="",o=e.getAttribute(t+"args")||e.getAttribute("args"),r=e.getAttribute("with"),a=(o||"").split(/\s*,\s*/);return r&&r.length&&darray.forEach(r.split(/\s*,\s*/),(function(e){i+="with("+e+"){",n+="}"})),new Function(a,i+e.innerHTML+n)},instantiate:function(e,t,i){t=t||{};var n=((i=i||{}).scope||dojo._scopeName)+"Type",o="data-"+(i.scope||dojo._scopeName)+"-",r=o+"type",a=o+"mixins",s=[];return darray.forEach(e,(function(e){var i=n in t?t[n]:e.getAttribute(r)||e.getAttribute(n);if(i){var o=e.getAttribute(a),l=o?[i].concat(o.split(/\s*,\s*/)):[i];s.push({node:e,types:l})}})),this._instantiate(s,t,i)},_instantiate:function(e,t,i,n){var o=darray.map(e,(function(e){var n=e.ctor||getCtor(e.types,i.contextRequire);if(!n)throw new Error("Unable to resolve constructor for: '"+e.types.join()+"'");return this.construct(n,e.node,t,i,e.scripts,e.inherited)}),this);function r(e){return t._started||i.noStart||darray.forEach(e,(function(e){"function"!=typeof e.startup||e._started||e.startup()})),e}return n?all(o).then(r):r(o)},construct:function(e,t,i,n,o,r){var a,s=e&&e.prototype,l={};if((n=n||{}).defaults&&dlang.mixin(l,n.defaults),r&&dlang.mixin(l,r),has("dom-attributes-explicit"))a=t.attributes;else if(has("dom-attributes-specified-flag"))a=darray.filter(t.attributes,(function(e){return e.specified}));else{var c=(/^input$|^img$/i.test(t.nodeName)?t:t.cloneNode(!1)).outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,"");a=darray.map(c.split(/\s+/),(function(e){var i=e.toLowerCase();return{name:e,value:"LI"==t.nodeName&&"value"==e||"enctype"==i?t.getAttribute(i):t.getAttributeNode(i).value}}))}var d=n.scope||dojo._scopeName,u="data-"+d+"-",h={};"dojo"!==d&&(h[u+"props"]="data-dojo-props",h[u+"type"]="data-dojo-type",h[u+"mixins"]="data-dojo-mixins",h[d+"type"]="dojotype",h[u+"id"]="data-dojo-id");for(var p,f,g,m=0,_=[];p=a[m++];){var v=p.name,b=v.toLowerCase(),y=p.value;switch(h[b]||b){case"data-dojo-type":case"dojotype":case"data-dojo-mixins":break;case"data-dojo-props":g=y;break;case"data-dojo-id":case"jsid":f=y;break;case"data-dojo-attach-point":case"dojoattachpoint":l.dojoAttachPoint=y;break;case"data-dojo-attach-event":case"dojoattachevent":l.dojoAttachEvent=y;break;case"class":l.class=t.className;break;case"style":l.style=t.style&&t.style.cssText;break;default:if(!(v in s))v=getNameMap(e)[b]||v;if(v in s)switch(typeof s[v]){case"string":l[v]=y;break;case"number":l[v]=y.length?Number(y):NaN;break;case"boolean":l[v]="false"!=y.toLowerCase();break;case"function":""===y||-1!=y.search(/[^\w\.]+/i)?l[v]=new Function(y):l[v]=dlang.getObject(y,!1)||new Function(y),_.push(v);break;default:var C=s[v];l[v]=C&&"length"in C?y?y.split(/\s*,\s*/):[]:C instanceof Date?""==y?new Date(""):"now"==y?new Date:dates.fromISOString(y):C instanceof _Url?dojo.baseUrl+y:myEval(y)}else l[v]=y}}for(var T=0;T<_.length;T++){var E=_[T].toLowerCase();t.removeAttribute(E),t[E]=null}if(g)try{g=myEval.call(n.propsThis,"{"+g+"}"),dlang.mixin(l,g)}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+g+"'")}dlang.mixin(l,i),o||(o=e&&(e._noScript||s._noScript)?[]:query("> script[type^='dojo/']",t));var S=[],w=[],I=[],A=[];if(o)for(m=0;m<o.length;m++){var x=o[m];t.removeChild(x);var N=x.getAttribute(u+"event")||x.getAttribute("event"),L=x.getAttribute(u+"prop"),D=x.getAttribute(u+"method"),M=x.getAttribute(u+"advice"),P=x.getAttribute("type"),O=this._functionFromScript(x,u);N?"dojo/connect"==P?S.push({method:N,func:O}):"dojo/on"==P?A.push({event:N,func:O}):l[N]=O:"dojo/aspect"==P?S.push({method:D,advice:M,func:O}):"dojo/watch"==P?I.push({prop:L,func:O}):w.push(O)}var R=e.markupFactory||s.markupFactory,k=R?R(l,t,e):new e(l,t);function F(e){for(f&&dlang.setObject(f,e),m=0;m<S.length;m++)aspect[S[m].advice||"after"](e,S[m].method,dlang.hitch(e,S[m].func),!0);for(m=0;m<w.length;m++)w[m].call(e);for(m=0;m<I.length;m++)e.watch(I[m].prop,I[m].func);for(m=0;m<A.length;m++)don(e,A[m].event,A[m].func);return e}return k.then?k.then(F):F(k)},scan:function(e,t){var i=[],n=[],o={},r=(t.scope||dojo._scopeName)+"Type",a="data-"+(t.scope||dojo._scopeName)+"-",s=a+"type",l=a+"textdir",c=a+"mixins",d=e.firstChild,u=t.inherited;if(!u){function h(e,t){return e.getAttribute&&e.getAttribute(t)||e.parentNode&&h(e.parentNode,t)}for(var p in u={dir:h(e,"dir"),lang:h(e,"lang"),textDir:h(e,l)})u[p]||delete u[p]}var f,g,m={inherited:u};function _(e){if(!e.inherited){e.inherited={};var t=e.node,i=_(e.parent),n={dir:t.getAttribute("dir")||i.dir,lang:t.getAttribute("lang")||i.lang,textDir:t.getAttribute(l)||i.textDir};for(var o in n)n[o]&&(e.inherited[o]=n[o])}return e.inherited}for(;;)if(d)if(1==d.nodeType)if(f&&"script"==d.nodeName.toLowerCase())(v=d.getAttribute("type"))&&/^dojo\/\w/i.test(v)&&f.push(d),d=d.nextSibling;else if(g)d=d.nextSibling;else{var v=d.getAttribute(s)||d.getAttribute(r),b=d.firstChild;if(v||b&&(3!=b.nodeType||b.nextSibling)){var y,C=null;if(v){var T=d.getAttribute(c),E=T?[v].concat(T.split(/\s*,\s*/)):[v];try{C=getCtor(E,t.contextRequire)}catch(e){}C||darray.forEach(E,(function(e){~e.indexOf("/")&&!o[e]&&(o[e]=!0,n[n.length]=e)}));var S=C&&!C.prototype._noScript?[]:null;(y={types:E,ctor:C,parent:m,node:d,scripts:S}).inherited=_(y),i.push(y)}else y={node:d,scripts:f,parent:m};f=S,g=d.stopParser||C&&C.prototype.stopParser&&!t.template,m=y,d=b}else d=d.nextSibling}else d=d.nextSibling;else{if(!m||!m.node)break;d=m.node.nextSibling,g=!1,f=(m=m.parent).scripts}var w=new Deferred;n.length?(has("dojo-debug-messages")&&console.warn("WARNING: Modules being Auto-Required: "+n.join(", ")),(t.contextRequire||require)(n,(function(){w.resolve(darray.filter(i,(function(e){if(!e.ctor)try{e.ctor=getCtor(e.types,t.contextRequire)}catch(e){}for(var i=e.parent;i&&!i.types;)i=i.parent;var n=e.ctor&&e.ctor.prototype;return e.instantiateChildren=!(n&&n.stopParser&&!t.template),e.instantiate=!i||i.instantiate&&i.instantiateChildren,e.instantiate})))}))):w.resolve(i);return w.promise},_require:function(e,t){var i=myEval("{"+e.innerHTML+"}"),n=[],o=[],r=new Deferred,a=t&&t.contextRequire||require;for(var s in i)n.push(s),o.push(i[s]);return a(o,(function(){for(var e=0;e<n.length;e++)dlang.setObject(n[e],arguments[e]);r.resolve(arguments)})),r.promise},_scanAmd:function(e,t){var i=new Deferred,n=i.promise;i.resolve(!0);var o=this;return query("script[type='dojo/require']",e).forEach((function(e){n=n.then((function(){return o._require(e,t)})),e.parentNode.removeChild(e)})),n},parse:function(e,t){e&&"string"!=typeof e&&!("nodeType"in e)&&(e=(t=e).rootNode);var i=e?dom.byId(e):dwindow.body(),n=(t=t||{}).template?{template:!0}:{},o=[],r=this,a=this._scanAmd(i,t).then((function(){return r.scan(i,t)})).then((function(e){return r._instantiate(e,n,t,!0)})).then((function(e){return o=o.concat(e)})).otherwise((function(e){throw console.error("dojo/parser::parse() error",e),e}));return dlang.mixin(o,a),o}};return has("extend-dojo")&&(dojo.parser=parser),config.parseOnLoad&&ready(100,parser,"parse"),parser}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},function(e,t,i){var n,o;n=[i(203),i(204),i(209)],o=i.dj.d(n,(function(e,t,i){var n=e([],{addEventListener:function(e,t,i){},removeEventListener:function(e,t,i){},hasEventListener:function(e,t,i){},dispatchEvent:function(e,t,i,n){}});return n.Syncable=e([],{addSyncEventListener:function(e,t,i){},removeSyncEventListener:function(e,t,i){}}),n.Impl=e([n,n.Syncable],{constructor:function(){this._listeners={},this._syncListeners={}},addEventListener:function(e,t,i){this._addEventListener(this._listeners,e,t,i)},addSyncEventListener:function(e,t,i){this._addEventListener(this._syncListeners,e,t,i)},_addEventListener:function(e,t,i,n){n=n||this,e[t]=e[t]||[];var o={scope:n,callback:i};this._getEventListenerIndex(e,t,i,n)<0&&e[t].push(o)},hasEventListener:function(e,t,i){return this._getEventListenerIndex(this._listeners,e,t,i)>=0},removeEventListener:function(e,t,i){this._removeEventListener(this._listeners,e,t,i)},removeSyncEventListener:function(e,t,i){this._removeEventListener(this._syncListeners,e,t,i)},_removeEventListener:function(e,t,i,n){n=n||this;var o=this._getEventListenerIndex(e,t,i,n);if(!(o>=0))throw new Error("Listener does not exist");e[t].splice(o,1)},_getEventListenerIndex:function(e,t,i,n){n=n||this;var o,r=e[t];if(r){var a=r.length;for(o=0;o<a;o+=1)if(r[o].scope===n&&r[o].callback===i)return o}return-1},dispatchEvent:function(e,t,i,n){this._dispatchEvent(this._syncListeners,e,t,i,n),this._dispatchEvent(this._listeners,e,t,i,n)},_dispatchEvent:function(e,n,o,r,a){if(void 0!==r&&(t.isArray(r)||t.isString(r)||null===r||"number"==typeof r||"boolean"==typeof r))throw new Error("Invalid event data, must be object");var s,l=e[n];if(l){var c=(l=l.slice(0)).length;for(s=0;s<c;s+=1)try{var d={type:n,target:o||this,data:r||{},originator:a};"string"==typeof l[s].callback?l[s].scope[l[s].callback].call(l[s].scope,d):l[s].callback.call(l[s].scope,d)}catch(e){i.error("Error while dispatching event handler of type: "+n+", message: "+e)}}}}),n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(353),i(432)],o=i.dj.d(n,(function(e,t,i,n){var o=e(null,{CLASS_NAME_PREFIX:"mwIconAlignment",constructor:function(){this.ICON_ALIGNMENT_CONFIGURATION={top:{className:this.CLASS_NAME_PREFIX+"Top",textNodeLocation:"after"},right:{className:this.CLASS_NAME_PREFIX+"Right",textNodeLocation:"before"},bottom:{className:this.CLASS_NAME_PREFIX+"Bottom",textNodeLocation:"before"},left:{className:this.CLASS_NAME_PREFIX+"Left",textNodeLocation:"after"}}},iconAlignment:"left",_supportedValues:["top","right","bottom","left"],postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwIconAlignmentMixin")},_setIconAlignmentAttr:function(e){if(this.get("iconAlignment")!==e||!this._started){if(-1===this._supportedValues.indexOf(e))throw new Error("'iconAlignment' property expects one of these values: "+this._supportedValues);var i=this.ICON_ALIGNMENT_CONFIGURATION[this.get("iconAlignment")].className;this.domNode.classList.remove(i);var n=this.ICON_ALIGNMENT_CONFIGURATION[e].className;this.domNode.classList.add(n);var o=this.ICON_ALIGNMENT_CONFIGURATION[e].textNodeLocation;t.place(this.textNode,this.iconNode,o),this._set("iconAlignment",e)}}});return o._dependencies=[{mixin:i,orderDependent:!1},{mixin:n,orderDependent:!1}],o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(227),i(217),i(221),i(223),i(206),i(248),i(238),i(277),i(541),i(215),i(880)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f={left:[0],center:[1],right:[2],all:[0,1,2],none:[]},g={down_arrow:[a.DOWN_ARROW],right_arrow:[a.RIGHT_ARROW],left_arrow:[a.LEFT_ARROW],up_arrow:[a.UP_ARROW],enter:[a.ENTER],space:[a.SPACE],a11y:[a.ENTER,a.SPACE],down_arrow_a11y:[a.DOWN_ARROW,a.ENTER,a.SPACE],right_arrow_a11y:[a.RIGHT_ARROW,a.ENTER,a.SPACE],left_arrow_a11y:[a.LEFT_ARROW,a.ENTER,a.SPACE],up_arrow_a11y:[a.UP_ARROW,a.ENTER,a.SPACE],none:[]},m={below:["below","below-alt","below-centered"],vertical:["below","below-alt","above","above-alt","below-centered","above-centered"],horizontal:["after","before","after-centered","before-centered"]};return e(null,{menu:null,menuNode:null,aroundNode:null,_clickButtons:f.left,_keyPressButtons:g.a11y,_menuOrientation:m.vertical,_setMenuAttr:function(e){this._validateMenuAttr(e),this._set("menu",e)},_validateMenuAttr:function(e){if(null!==e&&!(e instanceof h))throw new Error("'menu' property expects a widget")},_setMenuNodeAttr:function(e){if(!(e instanceof HTMLElement))throw new Error("'menuNode' property expects a DOM node.");e?this._set("menuNode",e):this._set("menuNode",this.focusNode||this.domNode)},_setAroundNodeAttr:function(e){if(!(e instanceof HTMLElement))throw new Error("'aroundNode' property expects a DOM node.");e?this._set("aroundNode",e):this._set("aroundNode",this.domNode)},_setClickButtonsAttr:function(e){if("string"!=typeof e||-1===f.hasOwnProperty(e))throw new Error("'clickButtons' property expects one of these values: "+Object.keys(f));this._set("_clickButtons",f[e])},_setKeyPressButtonsAttr:function(e){if("string"!=typeof e||-1===g.hasOwnProperty(e))throw new Error("'keyPressButtons' property expects one of these values: "+Object.keys(g));this._set("_keyPressButtons",g[e])},_setMenuOrientationAttr:function(e){if("string"!=typeof e||-1===m.hasOwnProperty(e))throw new Error("'menuOrientation' property expects one of these values: "+Object.keys(m));this._set("_menuOrientation",m[e])},postCreate:function(){var e,i;this.inherited(arguments),this.domNode.classList.add("mwMenuMixin"),this.menuNode=this.menuNode||this.focusNode||this.domNode,this.aroundNode=this.aroundNode||this.domNode,e=r("touch")&&!window.PointerEvent,i=r("touch")&&window.PointerEvent,this.own(s(this.menuNode,e?l.press:i?"pointerdown":"mousedown",t.hitch(this,"_onPress")),s(this.menuNode,"mousedown",t.hitch(this,"_onMouseDown")),s(this.menuNode,"keydown",t.hitch(this,"_onKeyDown")),s(this.menuNode,"keyup",t.hitch(this,"_onKeyUp")),s(this.domNode,"click",t.hitch(this,"_onMouseClick")),this.watch("disabled",t.hitch(this,(function(e,t,i){i&&this._handleClosingPopup(!1)})))),this._handleCloseOnEscape=function(e){if(e.keyCode===a.ESCAPE)if(this.domNode.classList.contains("mwFocusableMenuChildMixin")){var t=this.getParent();this.closeMenu(!1),t._closeEventData={mwEventData:{gainedFocusWidget:null}},t.closeRequest(!1)}else this.closeMenu(!0)}.bind(this)},_onPress:function(e){var i=this._clickButtons.indexOf(function(e){if(!0!==e.synthetic||!window.syn||-1===e.type.indexOf("mouse"))return e.button;switch(e.button){case window.syn.mouse.browser.left[e.type].button:return 0;case window.syn.mouse.browser.right[e.type].button:return 2;default:return 1}}(e))>-1||"touchstart"===e.type,n=!this.isMenuOpen()||this._closeMenuOnParentClick();if(this.get("menu")&&(this.get("menu")._lastPressEvent=e),i&&n){if(this.get("menu")&&(this.get("menu")._mouseDownTriggered=!0,setTimeout(t.hitch(this,(function(){this.get("menu")&&"_mouseDownTriggered"in this.get("menu")&&delete this.get("menu")._mouseDownTriggered})),300)),!this.isMenuOpen()){var o={eventType:e&&e.keyStroke?"keypress":"click",elementId:this.tag,elementType:"drop_down"};e&&e.keyStroke&&(o.keyStroke=e.keyStroke),p.logEvent(o,this.domNode)}this.toggleMenu(e.target)}else this.isMenuOpen()&&(e.preventDefault(),e.stopImmediatePropagation())},_onMouseDown:function(e){this.inherited(arguments);var t=this.get("menu")&&"_mouseDownTriggered"in this.get("menu"),i=this.get("menu")&&"_lastPressEvent"in this.get("menu")&&"touchstart"===this.get("menu")._lastPressEvent.type;(this.isMenuOpen()||t&&i)&&(e.preventDefault(),e.stopImmediatePropagation())},_onMouseClick:function(e){this.get("menu")&&"_mouseDownTriggered"in this.get("menu")&&delete this.get("menu")._mouseDownTriggered,this.inherited(arguments),n.isDescendant(e.target,this.menuNode)&&e.stopImmediatePropagation()},_onKeyDown:function(e){this.inherited(arguments),this.get("disabled")&&!this.get("dropDownNeverDisabled")||(e.keyCode===a.ESCAPE?(this.domNode.classList.contains("mwFocusableMenuChildMixin")?this.closeMenu(!1):this.closeMenu(!0),this._setAriaExpanded()):this._keyPressButtons.indexOf(e.keyCode)>-1&&(!this.isMenuOpen()||this._closeMenuOnParentClick()&&this.isMenuOpen())&&(this._toggleOnKeyUp=!0))},_onKeyUp:function(e){this.inherited(arguments),this._toggleOnKeyUp&&(delete this._toggleOnKeyUp,this.isMenuOpen()&&!this.closeMenuOnClick||this.toggleMenu(e.target))},_onBlur:function(){!this.isMenuOpen()||this.get("menu")._invokingWidget!==this||this.get("menu").domNode.classList.contains("mwMenu")||this.get("menu").domNode.classList.contains("mwSectionPopup")||this.get("menu").domNode.classList.contains("galleryPopup")||(n.isDescendant(document.activeElement,this.domNode)?this.closeMenu(!0):this.closeMenu(!1),this._setAriaExpanded()),this.inherited(arguments)},_qeDropDownClick:function(){this.toggleMenu()},toggleMenu:function(e){e=(e=e||this.menuNode).domNode||e,n.isDescendant(e,this.menuNode)&&(this.isMenuOpen()?this.closeMenu(!0):this.openMenu(),this._setAriaExpanded())},_setAriaExpanded:function(){setTimeout(function(){var e=this.focusNode||this.domNode;e&&e.setAttribute("aria-expanded",this.isMenuOpen())}.bind(this),0)},openMenu:function(){this._showMenu()},_showMenu:function(){null!=this.get("menu")&&(setTimeout(t.hitch(this,(function(){var e,t,n=this;if(null!=n.get("menu")){null==this.aroundNode&&(e=0,t=0),"_invokingWidget"in this.get("menu")&&this.get("menu")._invokingWidget&&(this.get("menu")._lastInvokingWidget=this.get("menu")._invokingWidget),this.get("menu")._invokingWidget=this,this.domNode.classList.add("mwHasMenuOpened"),this.get("menu")._onPositionListener=i.around(o,"position",(function(e){return function(t,i){var n="ontouchstart"in window||navigator.maxTouchPoints,o=document.body.clientWidth>window.innerWidth;return e(t,!(i&&n&&o)&&i)}})),this.get("menu").domNode.addEventListener("keydown",this._handleCloseOnEscape),this.get("menu").own(this.get("menu")._onPositionListener),this.get("menu").beforeOpen&&this.get("menu").beforeOpen(),d.open({parent:this,popup:n.get("menu"),x:e,y:t,around:n.aroundNode,orient:n._menuOrientation,maxHeight:n.get("maxHeight"),onClose:function(){n.get("menu")&&"_lastInvokingWidget"in n.get("menu")?(null!=n.get("menu")._lastInvokingWidget&&n._cleanUpAfterClose(n,!0),delete n.get("menu")._lastInvokingWidget):n._cleanUpAfterClose(n,!1),n.get("menu")&&"_onPositionListener"in n.get("menu")&&(n.get("menu")._onPositionListener.remove(),delete n.get("menu")._onPositionListener),n.get("menu")&&n.get("menu").domNode&&n.get("menu").domNode.removeEventListener("keydown",n._handleCloseOnEscape)}}),this.hasListItemWithPopupAction&&this.get("menu").focus&&this.get("menu").focus();var r=n.own(s(u,"resize",(function(){n.getParentWidget?n.closeMenu(!1):n.closeMenu(!0),r.length?[].slice.call(r).forEach((function(e){e.remove()})):r.remove()})))}})),0),this._setAriaExpanded())},closeMenu:function(e){var t=this._handleClosingPopup(e);this._handleFocusOnClose(e,t),this._setAriaExpanded()},_handleClosingPopup:function(e){if(!this.isMenuOpen())return this.get("menu")?this.get("menu")._closeEventData:void 0;if(this.get("menu")){this.get("menu").getChildren().forEach((function(t){"menu"in t&&t.isMenuOpen()&&(t.get("menu")._closeEventData=this._closeEventData,t.closeMenu(e))}),this);var t=this.get("menu")._closeEventData;return d.close(this.get("menu")),t}},_handleFocusOnClose:function(e,t){!0===e?this.focus?this.focus():c.focus(this.focusNode||this.domNode):t&&"mwEventData"in t&&"gainedFocusWidget"in t.mwEventData&&t.mwEventData.gainedFocusWidget?c.focus(t.mwEventData.gainedFocusWidget.focusNode||t.mwEventData.gainedFocusWidget.domNode):c.focus(document.body)},startup:function(){if(!this._started){if(!this.get("menu")&&this.srcNodeRef){var e=query("[widgetId]",this.srcNodeRef)[0];e&&this.set("menu",registry.byNode(e))}this.get("menu")&&d.hide(this.get("menu")),this.inherited(arguments)}},destroy:function(){this.isMenuOpen()&&this.closeMenu(!0),this.inherited(arguments)},_closeMenuOnParentClick:function(){return!0},_cleanUpAfterClose:function(e,t){!t&&e.get("menu")&&delete e.get("menu")._invokingWidget,e.domNode&&e.domNode.classList.remove("mwHasMenuOpened")},isMenuOpen:function(){return!!(this.get("menu")&&this.get("menu")._invokingWidget&&this.get("menu")._invokingWidget===this&&this.get("menu").domNode&&this.get("menu").domNode.parentElement&&this.get("menu").domNode.parentElement.classList.contains("dijitPopup"))&&!("none"===this.get("menu").domNode.parentElement.style.display)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(217),i(213)],o=i.dj.d(n,(function(e,t){return{copyBox:function(e,t){t.l=e.l,t.t=e.t,t.w=e.w,t.h=e.h},boxContains:function(e,t,i){return t>=e.l&&t<=e.l+e.w&&i>=e.t&&i<=e.t+e.h},computeClip:function(e,t){var i=e.l+e.w,n=t.l+t.w,o=e.t+e.h,r=t.t+t.h,a={l:0,t:0,w:e.w,h:e.h};return e.l<t.l&&(a.l=t.l-e.l,a.w-=a.l),e.t<t.t&&(a.t=t.t-e.t,a.h-=a.t),i>n&&(a.w-=i-n),o>r&&(a.h-=o-r),a},intersectionBox:function(e,t){var i=Math.max(e.l,t.l),n=Math.max(e.t,t.t);return{l:i,t:n,w:Math.min(e.l+e.w,t.l+t.w)-i,h:Math.min(e.t+e.h,t.t+t.h)-n}},unionBox:function(e,t){var i=Math.min(e.l,t.l),n=Math.min(e.t,t.t);return{l:i,t:n,w:Math.max(e.l+e.w,t.l+t.w)-i,h:Math.max(e.t+e.h,t.t+t.h)-n}},constrainBox:function(e,t){e.l<t.l&&(e.l=t.l),e.t<t.t&&(e.t=t.t),e.l+e.w>t.l+t.w&&(e.l=t.l+t.w-e.w),e.t+e.h>t.t+t.h&&(e.t=t.t+t.h-e.h)},boxesOverlap:function(e,t){var i=this.intersectionBox(e,t);return i.w>0&&i.h>0},areBoxesEqual:function(e,t){return e.l===t.l&&e.t===t.t&&e.w===t.w&&e.h===t.h},isNearBox:function(e,t,i,n,o){return o=o||n,t>=e.l-n&&t<=e.l+e.w+n&&i>=e.t-o&&i<=e.t+e.h+o},getNearestBorder:function(e,t,i,n){var o,r,a,s,l=n*e.w,c=n*e.h;return t-=e.l,i-=e.t,t>l&&t<e.w-l&&i>c&&i<e.h-c?"center":(a=(o=e.h*t)>(r=e.w*i),s=o<e.w*e.h-r,a?s?"top":"right":s?"left":"bottom")},oppositeRegion:function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}return"center"},measure:function(i,n){var o;i.parentNode||(t.set(i,{visibility:"hidden",position:"absolute"}),n.appendChild(i),o=!0);var r=e.getMarginBox(i);return o&&(n.removeChild(i),t.set(i,{visibility:"visible"})),r}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{getState:function(){return null},setState:function(e){},isRestoringState:function(){return!1},endStateRestore:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{COLLAPSED:"collapsed",EXPANDED:"expanded",EXPANDED_ON_TOP:"expanded_on_top",STATIC:"static"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{hasDynamicPopup:new e({type:"boolean",notInAction:!1,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{ICON:"icon_view",LIST:"list_view"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(245),i(240),i(204),i(227)],o=i.dj.d(n,(function(e,t,i,n){var o=i.getObject("dojo.dnd",!0);return o.getCopyKeyState=function(t){return t[e("mac")?"metaKey":"ctrlKey"]},o._uniqueId=0,o.getUniqueId=function(){var e;do{e=t._scopeName+"Unique"+ ++o._uniqueId}while(n.byId(e));return e},o._empty={},o.isFormElement=function(e){var t=e.target;return 3==t.nodeType&&(t=t.parentNode)," a button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0},o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1335),i(1336),i(3284),i(1338),i(1339),i(3286)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e({name:"mw-progress-indicator",widgetClass:class extends t{static get properties(){return{value:{type:Number,reflect:!0},size:{type:String,reflect:!0},type:{type:String,reflect:!0},color:{type:String,reflect:!0},border:{type:Boolean,reflect:!0},indeterminate:{type:Boolean,reflect:!0}}}constructor(){super(),this.baseClass="mw-progress-indicator",this.strokeDash=0,this.strokeGap=0,this.customSize=0,this.tabindex=0,this.currentProgress=0,this._view=null}set type(e){r.validate(e,"type"),e=e.toLowerCase(),this.setAttribute("type",e)}get type(){return this.getAttribute("type")}set size(e){if("object"==typeof e){r.validate(e.customSize,"customSize");const t={width:e.customSize+"px",height:e.customSize+"px"};r.addStyles(this,t),this.customSize=e.customSize}else r.validate(e,"size"),e=e.toLowerCase(),r.removeStyles(this,["width","height"]),this.setAttribute("size",e);this._view&&(this._view.update(this),this.requestUpdate())}get size(){return this.getAttribute("size")}set border(e){r.validate(e,"border"),this.setAttribute("border",e),this._view&&(this._view.update(this),this.requestUpdate())}get border(){const e=this.getAttribute("border");return"false"!==e&&"true"===e}get indeterminate(){return this.hasAttribute("indeterminate")}set indeterminate(e){this.setAttribute("indeterminate",e)}set value(e){r.validate(e,"value"),this.setAttribute("value",e),this.setAttribute("aria-valuenow",e),this.removeAttribute("indeterminate"),this._view&&(this._view.update(this),this.requestUpdate())}get value(){let e=this.getAttribute("value");return null===e?0:parseFloat(e)}set color(e){r.validate(e,"color"),this.setAttribute("color",e),this._view&&(this._view.update(this),this.requestUpdate())}get color(){let e=this.getAttribute("color");return r._isHexaColor(e)?e:"#0095ff"}render(){return this.type=this.type?this.type:o.SPINNER,this.size=this.size?this.size:this.customSize?{customSize:this.customSize}:n.SMALL,this._view=i.createView.call(this),this.currentProgress=this._view.getProgress(),this._view.getView()}shouldUpdate(){return!0}firstUpdated(){this.hasAttribute("value")||this.setAttribute("indeterminate",""),r.addAttributes(this,{role:"progress"}),this._view.update(this),this.requestUpdate()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{BASE:"base",CONTAINMENT:"containment",CONTIGUOUS:"contiguous"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1090)],o=i.dj.d(n,(function(e,t){return e(t,{getUndoEvent:function(){throw new Error("Unimplemented API: MW.rtc.model.events.UndoableEvent.getUndoEvent")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},getType:function(){throw new Error("Unimplemented API: getType")},convertFromMimeData:function(e){throw new Error("Unimplemented API: convert")},priority:function(){throw new Error("Unimplemented API: priority")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(494),i(1860),i(1356),i(548)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";var r={};function a(e){return r[e]||(r[e]=new o({equationFormat:e,cacheFontMetrics:!1})),r[e]}return{renderMathML:function(e,t){return a("mathml").render(e,t)},renderTeX:function(e,t){return a("tex").render(e,t)},renderSimpleTeX:function(e,t){return a("simpletex").render(e,t)},loadFonts:function(){n.then()},waitForEquations:function(){var t=new e;return n.loading()?n.then((function(){setTimeout((function(){t.resolve(!0)}),0)})):t.resolve(!0),t},convertMathMLToLaTeX:function(e){var i=a("mathml").getModel(e);return t.export([i])},convertTeXToLaTeX:function(e){var i=a("tex"),n=i.getModel(i.setDisplaystyleIfNeeded(e,!0));return t.export([n])},exportDomnodeToCanvas:i.exportDomnodeToCanvas,exportDomnodeToImageURL:i.exportDomnodeToImageURL}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1102),i(1365),i(803)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{constructor:function(e){this._nodeExporters=new i(e),this._treeWalker=new o(this),this._exportDocument=this._defineExportDocument(),this._results=[],this._context={}},getFormat:function(){t.assert(!1,"Subclasses must define an export format.")},_defineExportDocument:function(){t.assert(!1,"Subclasses must define an exportDocument.")},_reset:function(){this.reset(),this._nodeExporters.forEach((function(e){e.reset(this._context)}),this)},reset:function(){},_finalize:function(){this._nodeExporters.forEach((function(e){e.finalize(this._exportDocument,this._context)}),this),this.finalize()},finalize:function(){},_processResults:function(e){t.assert(!1,"Subclasses must overwrite _processResults.")},export:function(e){return this._context=e,this._reset(),this._treeWalker.traverseRange(e.range,!0),this._finalize(),this._processResults(this._context)},enterInnerNode:function(e){var t=this._nodeExporters.get(e);return!!t&&t.enter(this._exportDocument,e,this._context)},leaveInnerNode:function(e){var t=this._nodeExporters.get(e);t&&t.leave(this._exportDocument,e,this._context)},visitLeafNode:function(e,t,i){var n=this._nodeExporters.get(e);n&&n.visit(this._exportDocument,e,t,i,this._context)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{_LEFT_TRIM_REGEXP:/^\s+/,_NEWLINE_REXEXP:/(\r\n|\n|\r)/g,leftTrim:function(e){return e.replace(this._LEFT_TRIM_REGEXP,"")},normalizeNewlines:function(e){return e.replace(this._NEWLINE_REXEXP,"\n")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(669)],o=i.dj.d(n,(function(e){return{LABEL:"label",LINE:"line",COLUMN:"column",gotoCodeLineColumn:function(e,t,i,n,o,r){var a=t.getNumberOfCodeLines();if(0!=a){n=this._getCorrectedLineOrColumn(n,a);var s=t.getLineNumberFromCodeLineNumber(n)+1,l=e.getLineNode(s-1).getText().length+1;o=this._getCorrectedLineOrColumn(o,l),r&&!r.isLineInView(s,!0)&&r.scrollNearestVisibleLineToPercent(s,50),i.setLineColumn(s,o,!r)}},gotoDocumentLineColumn:function(e,t,i,n,o){var r=e.getMaxLineNumber();i=this._getCorrectedLineOrColumn(i,r);var a=e.getLineNode(i-1).getText().length+1;n=this._getCorrectedLineOrColumn(n,a),o&&!o.isLineInView(i,!0)&&o.scrollNearestVisibleLineToPercent(i,50),t.setLineColumn(i,n,!o)},_getCorrectedLineOrColumn:function(e,t){return e=Math.max(e,1),Math.min(e,t)},sortFunctionDeclarations:function(e,t){var i=e.map((function(e,t){return{elem:e,idx:t}})),n=t?i.shift():null;return i.sort((function(e,t){var i=e.elem.getName().toLocaleLowerCase(),n=t.elem.getName().toLocaleLowerCase(),o=i.localeCompare(n);return 0!==o?o:e.idx-t.idx})),n&&i.unshift(n),i.map((function(e){return e.elem}))},getSectionInfo:function(t,i,n){for(var o="",r=1,a=t;a;){if(!a.isEmpty()||a===i){e.isHeadingNode(a)&&(o=a.getText()),r=n.getLineNumber(a)+1;break}a=a.nextSibling()}var s={};return s[this.LABEL]=o,s[this.LINE]=r,s[this.COLUMN]=1,s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(582)],o=i.dj.d(n,(function(e){return{_NODE_CLASS:"HeadingNode",_headingLevelLookup:{1:{format:e.TITLE.FORMAT,equationHeight:26},2:{format:e.HEADING1.FORMAT,equationHeight:22},3:{format:e.HEADING2.FORMAT,equationHeight:19},4:{format:e.HEADING3.FORMAT,equationHeight:17}},_defaultFormat:e.HEADING1.FORMAT,_versionedFormats:{R2016a:[e.TITLE.FORMAT,e.HEADING1.FORMAT],R2018b:[e.HEADING2.FORMAT,e.HEADING3.FORMAT]},getDefaultHeadingFormat:function(){return this._defaultFormat},isHeadingNode:function(e){return e.className===this._NODE_CLASS},isFormatHeading:function(e){return!!this.getLevelByHeadingFormat(e)},getLevelByHeadingFormat:function(e){for(var t in this._headingLevelLookup)if(this._headingLevelLookup.hasOwnProperty(t)&&this._headingLevelLookup[t].format===e)return Number(t)},getNodeType:function(e){let t=e.containerType();switch(t){case"heading":return"heading1";case"title":case"heading2":case"heading3":return t}return"normal"},getHeadingFormatByLevel:function(e){return this._headingLevelLookup[e]?this._headingLevelLookup[e].format:"none"},isFormatIntroducedInVersion:function(e,t){return!!this._versionedFormats[t]&&-1!==this._versionedFormats[t].indexOf(e)},getEquationHeightByLevel:function(e){return this._headingLevelLookup[e]?this._headingLevelLookup[e].equationHeight:0},getEquationHeight:function(e){return this.getEquationHeightByLevel(e.level||0)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(323),i(389),i(347),i(380)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{createTextNodeForPosition:function(e,t){var i=t.getNode(),n=i.textContainer(),o=this.createTextNodeForContainer(e,n);return i.getStyleAttributes&&o.setStyleAttributes(i.getStyleAttributes()),o},createTextNodeForContainer:function(e,t){return t.isInstanceOf(o)?new r({text:e}):new n({text:e})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{SILENT_UPDATE:1,CURSOR_SELECTION:2,INSERT_DELETE_TEXT:3,ACTIVE_REQUEST:4,COMPLETE:5}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1096)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){},className:"OpaqueNode",text:"",getTextForPositioning:function(){var e=this.maxOffset();return new Array(e+1).join("")},isTextNode:function(){return!1},isOpaqueNode:function(){return!0},maxOffset:function(){return 1},insertText:function(e){},deleteText:function(e,t){},getStyleAttributes:function(){return{}},canSpliceContainers:function(e,t){return!1},canMergeContainerWithSibling:function(e,t){return!1},_serializeAttributes:function(e){e.text=this.getText()}})}),e,t),e.exports=o},function(e,t,i){e.exports={SCALAR:"scalar",NONE:"none",BOOLEAN:"boolean",STRING:"string",EMPTY_STRING:"emptyString",SLIDER:"slider",COMBO_BOX:"comboBox",CHECK_BOX:"checkBox",EDIT_FIELD:"editField",BUTTON:"button"}},function(e,t,i){var n,o;n=[i(203),i(928)],o=i.dj.d(n,(function(e,t){return e(t,{_TARGET_STYLE:[],format:function(){var e=this.inherited(arguments);return this._TARGET_STYLE.forEach((function(t){e.style[t]||this._actionService.executeAction("rtc_toggle_"+t)}),this),e},_format:function(){var e=this.inherited(arguments);e.style=this._richText.getFormatAndStyle();var t=e.target;return this._TARGET_STYLE.forEach((function(e){this._richText.applyStyleInLineColumn(e,!0,t.line,t.left,t.line,t.right)}),this),e}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(4466),i(2001),i(2002),i(1425)],o=i.dj.d(n,(function(e,t,i){var n=t.isPrimary,o=t.getXY,r=i.calculateProperties,a={pointerdown:e.DOWN,pointermove:e.MOVE,pointerup:e.UP,pointercancel:e.CANCEL,touchstart:e.DOWN,touchmove:e.MOVE,touchend:e.UP,touchcancel:e.CANCEL,mousedown:e.DOWN,mousemove:e.MOVE,mouseup:e.UP,"":e.CANCEL},s=function(e){var t=null;return e&&e.srcEvent&&(t=a[e.srcEvent.type]),t},l=function(e){var t=e?e.target:null;return t||(e.touches&&e.touches[0]?t=e.touches[0].target:e.changedTouches&&e.changedTouches[0]&&(t=e.changedTouches[0].target)),t};return{createFromPointers:function(e,t,i){t._softTimestamp=Date.now()+(t.detail?t.detail:0);var n=e.slice();return{type:"inputData",pointers:n,properties:r(n,t),changedPointers:[t],srcEvent:t,target:l(t),srcNode:i}},createTimeout:function(){return{type:"inputData",isTimeout:!0}},isSinglePrimary:function(e){return e.pointers&&1===e.pointers.length&&n(e.pointers[0])},isDown:function(t){return s(t)===e.DOWN},isMove:function(t){return s(t)===e.MOVE},isUp:function(t){return s(t)===e.UP},isCancel:function(t){return s(t)===e.CANCEL},isTimeout:function(e){return!!e.isTimeout},isWheel:function(e){var t=e.srcEvent;return t&&"wheel"===t.type},getInputType:s,getCenterPoint:function(e){var t={x:NaN,y:NaN};return e&&e.properties&&(t=e.properties.center),t},getPointerLocations:function(e){return e.pointers.map(o)},getTimestamp:function(e){return e&&e.srcEvent?e.srcEvent._softTimestamp:NaN}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{setActionData:function(e){return e.actionData={type:e.type,srcEvent:e.inputData.srcEvent,pointers:e.inputData.pointers,properties:e.internalData.positionTracker.getActionProperties()},e},trackInitial:function(e){var t=e.inputData;return e.internalData.positionTracker.setInitial(t),e},trackFinal:function(e){var t=e.inputData;return e.internalData.positionTracker.setFinal(t),e},trackUpdate:function(e){var t=e.inputData;return e.internalData.positionTracker.setUpdated(t),e},resetTracker:function(e){return e.internalData.positionTracker.reset(),e}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2002)],o=i.dj.d(n,(function(e){var t=e.compareProperties;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reset()}return r(e,[{key:"setInitial",value:function(e){this.initialProperties=e.properties,this.currentProperties=e.properties,this.previousProperties=null,this.finalProperties=null,this.updateActionProperties()}},{key:"setUpdated",value:function(e){this.previousProperties=this.currentProperties,this.currentProperties=e.properties,this.updateActionProperties()}},{key:"setFinal",value:function(e){this.previousProperties=this.currentProperties,this.currentProperties=e.properties,this.finalProperties=e.properties,this.updateActionProperties()}},{key:"updateActionProperties",value:function(){this.actionProperties=t(this.currentProperties,this.initialProperties,this.previousProperties,this.actionProperties)}},{key:"reset",value:function(){this.initialProperties=null,this.finalProperties=null,this.currentProperties=null,this.previousProperties=null,this.actionProperties=null}},{key:"getActionProperties",value:function(){return this.actionProperties}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t){this._registryName=e,this._registry=t},initialize:function(e){const i=new t,n=this._getExports();return i.resolve(n),i.promise},_getExports:function(){let e={exports:{}};return e.exports[this._registryName]=this._registry,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(234),i(313)],o=i.dj.d(n,(function(e,t,i){return{LOADED_FROM_DISK_EVALUATION_ID:"Load from disk",isLoadedFromDisk:function(e){return e===this.LOADED_FROM_DISK_EVALUATION_ID},convertPositionToRegionNumber:function(e,t){if(0===t.length)throw new Error("There should be at least one region.");var i=e.line,n=0;return t.some((function(e,t){return!(e.code.regionPositions[0].line<=i)||(n=t,!1)}),this),n},getLineNumbersFromRegionNumbers:function(e,i,n){var o=[];return e.forEach((function(e){i[e].code.regionPositions.forEach((function(e){if(t.isCodeContainer(e.getNode(),!0)){var i=t.getCodeLineNumberFromPosition(n,e);o.push(i)}}),this)}),this),o},createPositionsFromRegionNumbers:function(e,t,i){var n=[];return e.forEach((function(e){t[e].code.regionPositions.forEach((function(e){var t=i.createLinePosition(e.getNode(),!1);n.push(t)}),this)}),this),n},isOutputAssociatedWithRegion:function(e,t){var i=t.code.regionPositions[0],n=t.code.regionPositions[t.code.regionPositions.length-1];return e.codeLinePositions.some((function(e){return e.line>=i.line&&e.line<=n.line}),this)},mergeCodeLinePositions:function(e,t){for(var n=0,o=0,r=[];n<e.length&&o<t.length;){var a,s=e[n],l=t[o],c=i.comparePositions(s,l);c<0?(a=s,n++):c>0?(a=l,o++):(a=s,l.destroy(),n++,o++),r.push(a)}var d=[];return n<e.length?d=e.slice(n):o<t.length&&(d=t.slice(o)),r=r.concat(d)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209)],o=i.dj.d(n,(function(e,t){"use strict";return e(null,{_NODE_IN_MODEL_ERROR:"Node must be in the model.",type:null,primitiveProperties:[],nodeProperties:[],constructor:function(){},execute:function(){t.assert("Subclasses must override execute.")},unexecute:function(){t.assert("Subclasses must override unexecute.")},isSufficientForUndoTask:function(){return!0},serialize:function(e){const t={};return e.writeIntoStates(t,this,["type"]),e.writeIntoStates(t,this,this.primitiveProperties,this.nodeProperties),t},deserialize:function(e,t){t.loadFromStates(e,this,this.primitiveProperties,this.nodeProperties)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217)],o=i.dj.d(n,(function(e,t){return e(null,{_HAS_POINTER_EVENTS:window.PointerEvent,getEventPosition:function(e){return e?void 0!==e.clientX&&null!==e.clientX?{x:e.clientX,y:e.clientY}:void 0!==e.x&&null!==e.x?{x:e.x,y:e.y}:null:null},convertEventToMatlabRelativeCoords:function(e,i){var n=t.position(i,!1);return this.convertEventToMatlabRelativeToFigureCoords(e,n)},convertEventToMatlabRelativeToFigureCoords:function(e,t){var i=e.x-t.x,n=e.y-t.y;return{x:(i+1)/t.w,y:(t.h-n+1)/t.h}},isEventInsideAxes:function(e,t){return e.MouseOverAxes&&e.MouseOverAxes.isInside&&e.target===t},addCursorOffset:function(e,t){var i=this.getEventPosition(e);return{x:i.x+t[0],y:i.y+t[1]}},hasMouseClicked:function(e,t){if(!t)return!1;var i=this.getEventPosition(e);return t.x===i.x&&t.y===i.y},addEventListener:function(e,t,i){switch(t){case"mousedown":this._HAS_POINTER_EVENTS&&(t="pointerdown");break;case"mouseup":this._HAS_POINTER_EVENTS&&(t="pointerup");break;case"mousemove":this._HAS_POINTER_EVENTS&&(t="pointermove")}e.addEventListener(t,i,!0)},removeEventListener:function(e,t,i){switch(t){case"mousedown":this._HAS_POINTER_EVENTS&&(t="pointerdown");break;case"mouseup":this._HAS_POINTER_EVENTS&&(t="pointerup");break;case"mousemove":this._HAS_POINTER_EVENTS&&(t="pointermove")}e.removeEventListener(t,i,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(4728),i(4729),i(4730),i(4731)],o=i.dj.d(n,(function(e,t){return t(e,"l10n/nls/figureToolStrip",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(618)],o=i.dj.d(n,(function(e){return{export:function(t,i){var n,o;if((i=i||{}).attribBlackList=i.attribBlackList||["data-category"],1===t.length)o=t[0];else for(o=e.createNode("MathRoot",{inline:i.inline}),n=0;n<t.length;n+=1)o.children.push(t[n]);return o.exportMathML(i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return{UP:"up*",DOWN:"children",DOWN_RIGHT_UP:"children ((right + children)* up)*",RIGHT_LEFT_DOWN_UP:"((right + children)* (left + children)* up)*"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(402),i(438),i(252)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{constructor:function(){},enter:function(e,t,i){return n.writeInternalAnchor(e,t,i),e.openWrapperElement(),!1},leave:function(e,i,n){var o=this._processElement(this._createWrapperElement(i),i,n);t.assert(o,"No element returned from _processElement"),e.closeWrapperElement(o),this._postProcessWrapperElement(o,i,n)},_createWrapperElement:function(e){return document.createElement(this._getTagName(e))},_processElement:function(e){return e},_postProcessWrapperElement:function(e,t,i){},_getTagName:function(e){return"para"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(270),i(500),i(1994)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._viewModel=e},getPositionFromCoordinate:function(e,i){return new t(i,0)},getCoordinateFromPosition:function(e){return null},getDomNode:function(e){return this._viewModel.getNodeBox(e)},_getClientRects:function(e){var t=this.getDomNode(e),i=[];if(t){var n=t.getBoundingClientRect();(n.width>0||n.height>0)&&(i=[n])}return i},getClosestRect:function(e,t,i){var n=this._getSubClientRects(e,t,i);if(0===n.length)return null;var o={x:t.x,y:t.y},r=this._getVerticalRangeOfRects(n);return t.y<r.top?o.y=r.top:t.y>r.bottom&&(o.y=r.bottom),this._upwardSearchClosestRect(o,n,r)||this._downwardSearchClosestRect(o,n,r)},_getSubClientRects:function(e,t,i){var n=e.children.map(i);return Array.prototype.concat.apply([],n)},_upwardSearchClosestRect:function(e,t,i){for(var n=e.y;n>=i.top;n-=1){var o={x:e.x,y:n},r=this._getClosestRect(o,t);if(r)return r}return null},_downwardSearchClosestRect:function(e,t,i){for(var n=e.y+1;n<=i.bottom;n+=1){var o={x:e.x,y:n},r=this._getClosestRect(o,t);if(r)return r}return null},_getVerticalRangeOfRects:function(e){var t={},i=1/0,n=-1/0;return e.forEach((function(e){e.top<i&&(t.top=e.top,i=e.top),e.bottom>n&&(t.bottom=e.bottom,n=e.bottom)}),this),t},_getClosestRect:function(e,t){var n,o=[];if(t.some((function(t){if(i.isCoordinateWithinRect(e,t))return n=t,!0;i.isCoordinateYWithinRect(e,t)&&o.push(t)}),this),n)return n;if(0===o.length)return null;var r=1/0,a=-1/0;o.forEach((function(e){e.top<r&&(r=e.top),e.bottom>a&&(a=e.bottom)}),this);var s=t.filter((function(e){if(e.top>=r&&e.top<a||e.bottom>r&&e.bottom<=a||e.top>=r&&e.bottom<=a||e.top<=r&&e.bottom>=a)return!0}),this),l=1/0;return s.some((function(t){if(i.isCoordinateXWithinRect(e,t))return n=t,!0;var o=i.getClosestXDistanceToRect(e,t);o<l&&(n=t,l=o)}),this),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2123)],o=i.dj.d(n,(function(e,t){return e([],{getPositionInUnitsFromUnitsValue:function(e){if(!e.Value)throw new Error("UnitsService expects the input to be a struct. Input = ",e);return e.Value},getUnitsFromUnitsValue:function(e){if(!e.Units)throw new Error("UnitsService expects the input to be a struct. Input = ",e);return e.Units},getValueInPixelsFromUnitsValue:function(e,i){return t.convertPosition(e.Units,"pixels",e.Value,i)},getSizeOrLocationInPixelsFromUnitsValue:function(e,i){return t.convertPosition(e.Units,"pixels",e.Value,i).slice(0,2)},getValueForPeerNodeFromPixelValue:function(e,t,i){return this._getUnitsValueFromPixelValue(e,t,i)},getSizeForPeerNodeFromPixelValue:function(e,t,i){var n=this._getUnitsValueFromPixelValue(e,t,i);return n.Value=n.Value.slice(2,4),n},getLocationForPeerNodeFromPixelValue:function(e,t,i){var n=this._getUnitsValueFromPixelValue(e,t,i);return n.Value=n.Value.slice(0,2),n},getSizeOrLocationForPeerNodeFromSizeOrLocationValue:function(e,t,i){return this.getLocationForPeerNodeFromPixelValue(e,t,i)},convertToPeerNodeValue:function(e,t){var i={ScreenResolution:96};return i.Units=e,i.Value=t,i},_getUnitsValueFromPixelValue:function(e,i,n){var o;if(void 0!==(o=t.convertPosition("pixels",i,e,n)))return this.convertToPeerNodeValue(i,o)},createUnitsValueEventData:function(e,t){var i={};return Object.keys(e).forEach((function(n){var o=e[n];i[n]=this._getUnitsValueFromPixelValue(o,"pixels",t)}),this),{valuesInUnits:i,refFrameSize:t}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(5759),i(5760)],o=i.dj.d(n,(function(e,t){return function(){function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._caches=[],this._caches.push(new e),"undefined"!=typeof Map&&Map.prototype.keys&&this._caches.push(new t);var n,o=(n=[],{set:function(e,t){for(var i=0;i<n.length;i+=1){var o=n[i];if(o.key===e)return void(o.value=t)}n.push({key:e,value:t})},get:function(e){for(var t=0;t<n.length;t+=1){var i=n[t];if(i.key===e)return i.value}},has:function(e){for(var t=0;t<n.length;t+=1)if(n[t].key===e)return!0;return!1},remove:function(e){for(var t=0;t<n.length;t+=1)if(n[t].key===e){n.splice(t,1);break}},keys:function(){return n.map((function(e){return e.key}))},canIndex:function(){return!0}});this._caches.push(o)}return r(i,[{key:"getCache",value:function(e){for(var t=0;t<this._caches.length;t+=1)if(this._caches[t].canIndex(e))return this._caches[t]}},{key:"set",value:function(e,t){this.getCache(e).set(e,t)}},{key:"get",value:function(e){return this.getCache(e).get(e)}},{key:"has",value:function(e){return this.getCache(e).has(e)}},{key:"remove",value:function(e){return this.getCache(e).remove(e)}},{key:"canIndex",value:function(e){return this.getCache(e).canIndex(e)}},{key:"keys",value:function(){for(var e=[],t=0;t<this._caches.length;t+=1)Array.prototype.push.apply(e,this._caches[t].keys());return e}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(2185),i(1162)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{constructor:function(){this._suppressPositionChangedEvent=!1},getActivePositionInPixels:function(){return this.getInnerPositionInPixels()},getOuterPositionInPixels:function(){var e={},t=this.getPeerNode();if(t.hasProperty("OuterSize")&&t.hasProperty("OuterLocation")){var i=this.getOuterSizeInPixels();e=this.getOuterLocationInPixels().concat(i),e=this._convertFromOneToZeroOrigin(e)}else e=void 0!==t.getProperty("Position")?this.getPositionInPixels():void 0;return e},setOuterPositionInPixels:function(e){var t=this.getPeerNode();t.hasProperty("Size")&&t.hasProperty("Location")?this.setSizeLocationInPixelsImpl(e):void 0!==t.getProperty("Position")&&this.setOuterPositionInPixelsImpl(e)},getInnerPositionInPixels:function(){var e={},t=this.getPeerNode();if(t.hasProperty("Size")&&t.hasProperty("Location")){var i=this.getInnerSizeInPixels();e=this.getInnerLocationInPixels().concat(i),e=this._convertFromOneToZeroOrigin(e)}else e=void 0!==t.getProperty("Position")?this._getInnerPositionInPixels():void 0;return e},setActivePositionInPixels:function(e){this._suppressPositionChangedEvent=!0;try{var t=this.getPeerNode();if(t.hasProperty("Size")&&t.hasProperty("Location"))e=this._convertFromZeroToOneOrigin(e),this.setPositionPropertiesInPixels({Size:e.slice(2,4),Location:e.slice(0,2)});else{if(void 0===t.getProperty("Position"))throw new Error("setInnerPositionInPixels called on an unknown type of component");this._setInnerPositionInPixels(e)}}finally{this._suppressPositionChangedEvent=!1}},getId:function(){return this.getPeerNode().getId()},getDebugId:function(){var e=this.getPeerNode(),t=e.getId();return t=t+"_"+e.getType(),void 0!==e.getProperty("Value")&&(t=t+"_"+e.getProperty("Value")),void 0!==e.getProperty("Text")&&(t=t+"_"+e.getProperty("Text")),void 0!==e.getProperty("Title")&&(t=t+"_"+e.getProperty("Title")),t},isContainer:function(){return o.isContainer(this.getPeerNode())},getProperty:function(e){return this.getPeerNode().getProperty(e)},validateComponent:function(){this.validate()},attachModelSidePositionChangeListener:function(){var e=this.getPeerNode();this.own(t(e,"propertiesSet",i.hitch(this,(function(e){var t=["Position","OuterPosition","Size","OuterSize","Location","OuterLocation"],i=Object.keys(e.data.newValues).filter((function(e){return t.indexOf(e)>-1}));if(i.length>0&&!0!==this._suppressPositionChangedEvent){var n=e.data;i.filter((function(t){return e.target.getController().isPositionPropertyChanging(n,t)})).length>0&&this.emit("modelSidePositionChanged",n)}}))))}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(429)],o=i.dj.d(n,(function(e){"use strict";var t=function(e,t,i){return i>=e.columns.start&&i<=e.columns.end&&t>=e.rows.start&&t<=e.rows.end};return function(){function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i)}return r(i,null,[{key:"getFocusedCell",value:function(e){var t={},i=void 0;(e&&e.rangeList&&e.rangeList[0]&&(i=e.rangeList[0]),i&&i.rows&&i.columns)&&(t[[i.rows.start,i.columns.start].join(",")]="mw-table-cell-focused");return t}},{key:"getContentFor",value:function(e,i,n){for(var o=e.rangeList||[],r=0;r<o.length;r++)if(t(o[r],i,n)&&e.value[r])return e.value[r];return null}},{key:"getInteractiveRendererFor",value:function(e,i,n){for(var o=e.rangeList||[],r=0;r<o.length;r++)if(t(o[r],i,n))return e.value[r]?{renderer:e.value[r],range:o[r]}:null;return null}},{key:"getTableHeaderStyle",value:function(t,i,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.dimensions.COL_WIDTH,r={};switch(isNaN(t)&&(t=o,i="px"),""===i&&(i="px"),i){case"percent":case"%":r=n?{maxWidth:"none",minWidth:o,width:Math.min(100,Math.abs(t))+"%"}:{minWidth:o,maxWidth:o};break;case"px":r={maxWidth:t=Math.max(o,t),minWidth:t}}return r}},{key:"computeTableHeight",value:function(e,t){return(Math.max(e*t,1)||1)+"px"}},{key:"renderUpdate",value:function(e,t){t=t||e.viewPortList[0].getBufferedViewPort(),e.viewBuffer={size:null,rangeList:[t]}}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(841),i(2231),i(1174)],o=i.dj.d(n,(function(e,t,i){"use strict";var n=function(){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var i=e=e||{},o=i.isChecked,r=i.getValueForAction,a=i.getA11yProperties,s=i.alignment;this._checkboxDefaultClasses=["mwDefaultVisualFamily","mwEnabled","mwWidget","mwCheckBox","mw-data-checkbox-renderer"],this._checkboxCheckedClasses=["mwCheckBoxChecked"],o&&(this._isChecked=o),r&&(this.getValueForAction=r),a&&(this._getA11yProperties=a),s===t.LEFT||s===t.RIGHT?this._alignment=s:this._alignment=t.CENTER}return a(n,[{key:"_isChecked",value:function(e){return"object"===(void 0===e?"undefined":r(e))&&!0===e.checked}},{key:"_getLabel",value:function(e){return e&&e.label?e.label.trim():""}},{key:"getTooltip",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i="";return this._alignment===t.LEFT&&(i={text:this._getLabel(e)}),i}},{key:"getDomNode",value:function(e,i){var n=document.createElement("span"),o=document.createElement("span"),r=document.createElement("div"),a=document.createElement("div"),s=this._isChecked(e);if(o.className=s?this._checkboxDefaultClasses.concat(this._checkboxCheckedClasses).join(" "):this._checkboxDefaultClasses.join(" "),e&&e.a11y&&e.a11y.checkboxDescription)r.setAttribute("aria-label",e.a11y.checkboxDescription);else if(this._getA11yProperties){var l=this._getA11yProperties(e);l&&l.checkboxDescription&&r.setAttribute("aria-label",l.checkboxDescription)}if(r.setAttribute("role","checkbox"),r.setAttribute("aria-checked",s),r.setAttribute("data-clickable",!0),r.classList.add("mwCheckBoxRadioIconNode"),a.classList.add("mwCheckBoxRadioIconInner"),a.setAttribute("data-clickable",!0),r.appendChild(a),o.appendChild(r),this._alignment===t.LEFT){var c=i&&i.searchHighlight&&i.searchHighlight.matches?i.searchHighlight.matches:null,d=this._getlabelNode(e,c);o.classList.add("mwLabeledCheckbox"),r.classList.add("mwLabeledCheckboxIcon"),o.appendChild(d)}else this._alignment===t.RIGHT&&o.classList.add("mwRightAlignCheckbox");return n.appendChild(o),n.className="mw-table-cell-content mwRenderer",n}},{key:"_getlabelNode",value:function(e,t){var n=document.createElement("span"),o=this._getLabel(e);(n.setAttribute("checkbox-label",!0),t)?(n.setAttribute("data-test-id","highlightLabel"),i.getHighlightedTextDOM(o,t).forEach((function(e){e.setAttribute&&e.setAttribute("data-region",!0),n.appendChild(e)}))):(n.textContent=o,n.setAttribute("data-test-id","label2"));return n}},{key:"getAriaLabel",value:function(e){var t="checkbox "+(this._isChecked(e)?"checked":"unchecked");if(e&&e.a11y&&e.a11y.checkboxDescription)return e.a11y.checkboxDescription+" "+t;if(this._getA11yProperties){var i=this._getA11yProperties(e);if(i&&i.checkboxDescription)return i.checkboxDescription+" "+t}return t}},{key:"getValueForAction",value:function(t){var i=e().shallowCopy(t);return"object"===(void 0===i?"undefined":r(i))&&i.hasOwnProperty("checked")&&(i.checked=!i.checked),{oldValue:t,newValue:i}}},{key:"handleAction",value:function(e){var t=e=e||{},i=t.value,n=t.shouldUpdate,o=t.target;return!0===n||o&&o.getAttribute("data-clickable")?this.getValueForAction(i):null}}]),n}();return n.ALIGNMENT=t,n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(224),i(217),i(211),i(210),i(213),i(456),i(1161),i(284),i(298),i(295)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([c,u,h],{_labelClass:"vc-gaugeMajorTickLabel",_labelDivId:"Major_Tick_Labels",_gaugeCSSClass:"vc-gaugeComponents",setUpComponentOnLoad:function(){a.add(this.SVGContainer,this._gaugeCSSClass)},initializeComponent:function(){this.inherited(arguments),this.setProperties(["Limits"])},doSetProperties:function(e){var t,i=this.WidgetData.getProperty("Limits"),n=this.WidgetData.getProperty("ScaleDirection"),o=this.WidgetData.getProperty("Value"),r=this.WidgetData.getProperty("ScaleColors"),a=this.WidgetData.getProperty("ScaleColorLimits");t="true"===this.WidgetData.getProperty("PrivateLogic"),this.inherited(arguments),this.setScaleColors(i,r,a,n),this.setMajorTickValues(i),this.setValue(i,o,n,t)},updateComponentSize:function(e,t,i,n){this.setSVGSize(t[0],t[1]),this.handleResize(t,!0)},onResize:function(e){this.handleResize(e,!1)},handleInnerSizeSet:function(e){this.inherited(arguments),this.updateOuterPositionForNoMarginsComponent(e)},handleResize:function(e,t){this.setScalingFactor(this.getScalingFactor(e))},updateFontPropertiesFromModel:function(){},_computeMinimumSize:function(){return this._getDefaultSize()},_getDefaultSize:function(){return[120,120]},_computeFitSize:function(){return this._getDefaultSize()},getScalingFactor:function(e){return e[0]/this._defaultSVGWidth}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LOADING:"loading",HIDDEN:"hidden",VISIBLE:"visible",DOCUMENT_CLASS:"ClientDocument",DOCUMENT_SPECIFIER_CLASS:"veSpecifier",VIEW_WRAPPER_CLASS:"ClientViewDiv",HAS_SUMMARY_BAR:"hasSummaryBar",DATA_FIT_TO_VIEWPORT_CLASS:"DataFitToViewport",FILTER_SUMMARY_CLASS:"filteredSummary",COLUMN_NAME_CLASS:"ColumnNameFooter",SCALING_FACTOR_CLASS:"hasScalingFactor",SCALING_FACTOR_PROP:"ScalingFactor",POP_OUT_DIALOG_CLASS:"vePopoutDialog",POP_OUT_CONTENT_DIALOG_CLASS:"vePopoutDialogContent",VARIABLE_VIEW_TYPE:"ArrayView",EMPTY_DATA_ATTRIBUTE:"isEmpty"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6479),i(6480),i(6481),i(6482)],o=i.dj.d(n,(function(e,t){return t(e,"variableeditor_peer/l10n/nls/peerarrayviewmodel",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(227),i(228),i(210),i(217),i(614),i(221),i(240),i(223),i(316),i(216),i(276),i(6665),i(712),i(487)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){var g=t("dijit.TitlePane",[h,u,d],{title:"",_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:!0,toggleable:!0,tabIndex:"0",duration:f.defaultDuration,baseClass:"dijitTitlePane",templateString:p,doLayout:!1,_setTooltipAttr:{node:"focusNode",type:"attribute",attribute:"title"},buildRendering:function(){this.inherited(arguments),i.setSelectable(this.titleNode,!1)},postCreate:function(){this.inherited(arguments),this.toggleable&&this._trackMouseState(this.titleBarNode,this.baseClass+"Title");var e=this.hideNode,t=this.wipeNode;this._wipeIn=a.wipeIn({node:t,duration:this.duration,beforeBegin:function(){e.style.display=""}}),this._wipeOut=a.wipeOut({node:t,duration:this.duration,onEnd:function(){e.style.display="none"}})},_setOpenAttr:function(t,i){(e.forEach([this._wipeIn,this._wipeOut],(function(e){e&&"playing"==e.status()&&e.stop()})),i)?this[t?"_wipeIn":"_wipeOut"].play():this.hideNode.style.display=this.wipeNode.style.display=t?"":"none";this._started&&(t?this._onShow():this.onHide()),this.containerNode.setAttribute("aria-hidden",t?"false":"true"),this.focusNode.setAttribute("aria-pressed",t?"true":"false"),this._set("open",t),this._setCss()},_setToggleableAttr:function(e){this.focusNode.setAttribute("role",e?"button":"heading"),e?(this.focusNode.setAttribute("aria-controls",this.id+"_pane"),this.focusNode.setAttribute("tabIndex",this.tabIndex),this.focusNode.setAttribute("aria-pressed",this.open)):(n.remove(this.focusNode,"aria-controls"),n.remove(this.focusNode,"tabIndex"),n.remove(this.focusNode,"aria-pressed")),this._set("toggleable",e),this._setCss()},_setContentAttr:function(e){this.open&&this._wipeOut&&"playing"!=this._wipeOut.status()?(this._wipeIn&&"playing"==this._wipeIn.status()&&this._wipeIn.stop(),r.setMarginBox(this.wipeNode,{h:r.getMarginBox(this.wipeNode).h}),this.inherited(arguments),this._wipeIn?this._wipeIn.play():this.hideNode.style.display=""):this.inherited(arguments)},toggle:function(){this._setOpenAttr(!this.open,!0)},_setCss:function(){var e=this.titleBarNode||this.focusNode,t=this._titleBarClass;this._titleBarClass=this.baseClass+"Title"+(this.toggleable?"":"Fixed")+(this.open?"Open":"Closed"),o.replace(e,this._titleBarClass,t||""),o.replace(e,this._titleBarClass.replace("TitlePaneTitle",""),(t||"").replace("TitlePaneTitle","")),this.arrowNodeInner.innerHTML=this.open?"-":"+"},_onTitleKey:function(e){e.keyCode==c.DOWN_ARROW&&this.open&&(this.containerNode.focus(),e.preventDefault())},_onTitleClick:function(){this.toggleable&&this.toggle()},setTitle:function(e){l.deprecated("dijit.TitlePane.setTitle() is deprecated. Use set('title', ...) instead.","","2.0"),this.set("title",e)}});return s("dojo-bidi")&&g.extend({_setTitleAttr:function(e){this._set("title",e),this.titleNode.innerHTML=e,this.applyTextDir(this.titleNode)},_setTooltipAttr:function(e){this._set("tooltip",e),this.textDir&&(e=this.enforceTextDirWithUcc(null,e)),n.set(this.focusNode,"title",e)},_setTextDirAttr:function(e){this._created&&this.textDir!=e&&(this._set("textDir",e),this.set("title",this.title),this.set("tooltip",this.tooltip))}}),g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(244),i(212),i(2441),i(243),i(597),i(1207),i(454),i(2431),i(589),i(637),i(251),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(null,{_ENABLE_SYNTAX_HIGHLIGHTING:"EnableSyntaxHighlighting",_SMART_INDENTING:"SmartIndentWhileTyping",_SMART_INDENT:"SmartIndent",_NO_INDENT:"NoIndent",_PREFERENCE_DIALOG:"mwPreferencesDialogContainer",_RESTORE_DEFAULTS_BUTTON_TAG:"restoreButton",_EXTENSIONS_SETTING_KEY:"Extensions",_ADD_BUTTON_TAG:"addButton",_REMOVE_BUTTON_TAG:"removeButton",constructor:function(e){this.inherited(arguments),this._args=e,this._languageSettingKeys=this._args.languageSettingKeys,this._colorPickerConstants=this._args.colorPickerConstants,this._panelLabels=this._args.panelLabels,this._panelNodes=this._args.panelNodes,this._syntaxEditorSampleText=this._args.sampleText||"",this._languageSupportRegistry=this._args.languageSupportRegistry,this._aliasLanguageSupportRegistry=this._args.aliasLanguageSupportRegistry,this._languageRegistry=this._args.languageRegistry,this._languageColorDefaults=this._args.colorMapDefaults,this._syntaxTokenTypes=this._args.syntaxTokenTypes,this._isAutoIndentingSupported=this._args.isAutoIndentingSupported,this._buildLanguagePanel(),this._isAutoIndentingSupported&&this._createAndPlaceSmartIndentingCheckbox(),this._createPreviewPanel(),this._getDefaultValues(),this._tabKeyHandler(),this._fileExtension=new o({settingPath:this._languageSettingKeys.LANGUAGE_SETTING_PATH,languageName:this._languageSettingKeys.LANGUAGE_NAME,nodes:{addButtonNode:this._panelNodes.addButtonNode,removeButtonNode:this._panelNodes.removeButtonNode,treeNode:this._panelNodes.myTreeContainer,fileExtensionsNode:this._panelNodes.fileExtensionsNode}}),this._placeLanguagePanel()},_buildLanguagePanel:function(){this._enableSyntaxHighlightingCheckboxAttribute=new a(this._ENABLE_SYNTAX_HIGHLIGHTING,this._panelLabels.enableSyntaxHighlightingLabel,this._panelNodes.syntaxHighlightingNode),this._enableSyntaxHighlightingCheckboxAttribute.getAssociatedWidget().on("change",e=>{this._setDisabled(e.mwEventData.newValue)}),this.pickerUtilities={},Object.keys(this._syntaxTokenTypes).forEach(e=>{this.pickerUtilities[this._colorPickerConstants.settingKeys[e]]=new s({tag:this._colorPickerConstants.pickerTags[e]})}),this.pickers={},Object.values(this._colorPickerConstants.settingKeys).forEach(e=>{this.pickers[e]=this.pickerUtilities[e].getColorPicker()}),this.checkBox={},this.checkBox[this._ENABLE_SYNTAX_HIGHLIGHTING]=this._enableSyntaxHighlightingCheckboxAttribute.getAssociatedWidget(),this._restoreDefaultsButton=new r({text:this._panelLabels.restoreDefaultsLabel,tag:this._RESTORE_DEFAULTS_BUTTON_TAG}),this._restoreDefaultsButton.on("click",()=>{this._restoreDefaults()})},_createAndPlaceSmartIndentingCheckbox:function(){this._smartIndentingCheckboxAttribute=new a(this._SMART_INDENTING,this._panelLabels.applySmartIndentingLabel,this._panelNodes.smartIndentingNode),this._smartIndentingCheckboxAttribute.placeInPanel(),this._smartIndentingCheckboxAttribute.getAssociatedWidget().startup()},_createPreviewPanel:function(){var e=d.getBrowserSyncedClipboard(),t=[h.CUT_COPY_PASTE],i=new c;i.addSupportedLanguage(this._languageSettingKeys.LANGUAGE_NAME,l.LANGUAGE_PRIORITY.COMMON,[],this._languageSettingKeys.LANGUAGE_MIME),i.setLanguage(this._languageSettingKeys.LANGUAGE_NAME);var n={features:t,visualFamily:"Colors",clipboard:e,language:this._languageSettingKeys.LANGUAGE_NAME,enabled:this._languageRegistry.enabledList,dependencies:{"preferences.pickers":this.pickers,"preferences.labels":this._panelNodes.colorPickerNodes,"preferences.settingKey":this._languageSettingKeys.LANGUAGE_SETTING_KEY,"preferences.checkBox":this.checkBox,"rtc.internal.language":i},registry:this._getLanguageRegistry()};u.createRTC(n).then(e=>{this._rtc=e,this._rtc.placeAt(this._panelNodes.syntaxHighlightRTCNode),this._rtc.getDocument().setText(this._syntaxEditorSampleText),this._rtc.getDocument().setReadOnly(!0),this._rtc.blur()})},_getLanguageRegistry:function(){var e=[],t=[],i=new Set;return this._aliasLanguageSupportRegistry&&(t=this._aliasLanguageSupportRegistry.getPluginRegistry().filter(e=>!i.has(e.id)&&(i.add(e.id),!0))),e=(e=this._languageSupportRegistry.getPluginRegistry().filter(e=>!i.has(e.id))).concat(t),this._languageRegistry.registry.concat(e)},_getDefaultValues:function(){i(this._loadColorPickerSettings()).then(this._setColorPickerDefaultValues.bind(this)),p.getSetting(this._languageSettingKeys.LANGUAGE_SETTING_PATH,this._ENABLE_SYNTAX_HIGHLIGHTING).then(e=>{this._destroyed||(this._enableSyntaxHighlightingCheckboxAttribute.getAssociatedWidget().set("disabled",!1),this._enableSyntaxHighlightingCheckboxAttribute.getAssociatedWidget().set("checked",e.value),this._setCheckboxValue(this._enableSyntaxHighlightingCheckboxAttribute.getAssociatedWidget(),e.value))}),this._isAutoIndentingSupported&&p.getSetting(this._languageSettingKeys.LANGUAGE_SETTING_PATH,this._SMART_INDENTING).then(e=>{this._destroyed||(this._smartIndentingCheckboxAttribute.getAssociatedWidget().set("checked",e.value===this._SMART_INDENT),this._smartIndentingCheckboxAttribute.getAssociatedWidget().set("disabled",!1))})},_loadColorPickerSettings:function(){var e=[];return Object.values(this._colorPickerConstants.settingKeys).forEach(t=>{var i=new n;e.push(i.promise),p.getSetting(this._languageSettingKeys.LANGUAGE_SETTING_PATH,t).then(e=>{i.resolve(e.value)})}),e},_setColorPickerDefaultValues:function(e){Object.values(this._colorPickerConstants.settingKeys).forEach((t,i)=>{this.pickerUtilities[t].loadSettings(e[i])})},_setDisabled:function(e){Object.values(this.pickerUtilities).forEach(t=>{e?t.enableDropDown():t.disableDropDown()})},_setCheckboxValue:function(e,t){var i=e.get("checked");e.set("checked",t),e.set("disabled",!1),e.emit("change",{mwEventData:{propertyName:"value",oldValue:i,newValue:t}})},_restoreDefaults:function(){Object.keys(this._syntaxTokenTypes).forEach(e=>{this.pickerUtilities[this._colorPickerConstants.settingKeys[e]].loadSettings(this._languageColorDefaults.colorMapDefaults[this._syntaxTokenTypes[e]])}),this._setCheckboxValue(this._enableSyntaxHighlightingCheckboxAttribute.getAssociatedWidget(),!0),this._isAutoIndentingSupported&&this._smartIndentingCheckboxAttribute.getAssociatedWidget().set("checked",!0),this._fileExtension.restoreDefaults()},_tabKeyHandler:function(){var e=this.pickerUtilities[Object.keys(this.pickerUtilities)[Object.keys(this.pickerUtilities).length-1]],i=this._enableSyntaxHighlightingCheckboxAttribute,n=this._isAutoIndentingSupported?this._smartIndentingCheckboxAttribute:this._restoreDefaultsButton,o=function(e,t){this._isAutoIndentingSupported||!t.focusNode?t.setFocus():t.focusNode.focus(),e.preventDefault()}.bind(this);e.getNode().onkeydown=function(e){e.shiftKey||e.keyCode!==t.TAB||o(e,n)},i.getNode().onkeydown=function(e){i.isUnchecked()&&(e.shiftKey||e.keyCode!==t.TAB||o(e,n))},(this._isAutoIndentingSupported?n.getNode():n.domNode).onkeydown=function(n){if(n.shiftKey&&n.keyCode===t.TAB){var r=i.isUnchecked()?i:e;o(n,r)}}},_placeLanguagePanel:function(){this._enableSyntaxHighlightingCheckboxAttribute.placeInPanel(),Object.keys(this._panelNodes.colorPickerNodes).forEach(e=>{this.pickerUtilities[e].placeDropDown(this._panelNodes.colorPickerNodes[e])}),this._restoreDefaultsButton.placeAt(this._panelNodes.restoreDefaultsNode)},startup:function(){this.inherited(arguments),Object.values(this.pickerUtilities).forEach(e=>{e.startup()}),this._rtc&&this._rtc.startup(),this._enableSyntaxHighlightingCheckboxAttribute.getAssociatedWidget().startup(),this._restoreDefaultsButton.startup();var e=document.getElementsByClassName(this._PREFERENCE_DIALOG);e.length&&e[0].addEventListener("resize",()=>{this._rtc.resize()}),this._fileExtension.startup()},commitPrefsChanges:function(){p.setSetting(this._languageSettingKeys.LANGUAGE_SETTING_PATH,this._ENABLE_SYNTAX_HIGHLIGHTING,this._enableSyntaxHighlightingCheckboxAttribute.getAssociatedWidget().get("checked"));for(const e in this.pickerUtilities)p.setSetting(this._languageSettingKeys.LANGUAGE_SETTING_PATH,e,this.pickerUtilities[e].getRGB());if(this._isAutoIndentingSupported){this._smartIndentingCheckboxAttribute.getAssociatedWidget().get("checked")?p.setSetting(this._languageSettingKeys.LANGUAGE_SETTING_PATH,this._SMART_INDENTING,this._SMART_INDENT):p.setSetting(this._languageSettingKeys.LANGUAGE_SETTING_PATH,this._SMART_INDENTING,this._NO_INDENT)}this._fileExtension.commitPrefsChanges()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(203),i(306),i(206),i(221),i(214),i(1215),i(2487),i(33),i(430),i(225),i(445)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){o.add("dom-comparedocumentposition",(function(e,t,i){return!!i.compareDocumentPosition})),o.add("css-user-select",(function(e,t,i){var n=i.style,o=["Khtml","O","ms","Moz","Webkit"],r=o.length,a="userSelect";do{if(void 0!==n[a])return a}while(r--&&(a=o[r]+"UserSelect"));return!1})),o.add("dom-selectstart",void 0!==document.onselectstart);var d=o("mac")?"metaKey":"ctrlKey",u=o("css-user-select"),h=s.pointer,p=s.MSPointer,f=h?h+(p?"Down":"down"):"mousedown",g=h?h+(p?"Up":"up"):"mouseup";function m(e,t){for(var i=e.unselectable=t?"on":"",n=e.getElementsByTagName("*"),o=n.length;--o;)"INPUT"!==n[o].tagName&&"TEXTAREA"!==n[o].tagName&&(n[o].unselectable=i)}function _(e,t){var i=e.bodyNode,a=t?"text":o("ff")<21?"-moz-none":"none";u&&"msUserSelect"!==u?i.style[u]=a:o("dom-selectstart")?t||e._selectstartHandle?t&&e._selectstartHandle&&(e._selectstartHandle.remove(),delete e._selectstartHandle):e._selectstartHandle=n(i,"selectstart",(function(e){var t=e.target&&e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&e.preventDefault()})):(m(i,!t),t||e._unselectableHandle?t&&e._unselectableHandle&&(e._unselectableHandle.remove(),delete e._unselectableHandle):e._unselectableHandle=r.after(e,"renderRow",(function(e){return m(e,!0),e})))}return t(null,{selectionDelegate:".dgrid-row",selectionEvents:f+","+g+",dgrid-cellfocusin",selectionTouchEvents:o("touch")?l.tap:null,deselectOnRefresh:!0,allowSelectAll:!1,selection:{},selectionMode:"extended",allowTextSelection:void 0,_selectionTargetType:"rows",create:function(){return this.selection={},this.inherited(arguments)},postCreate:function(){this.inherited(arguments),this._initSelectionEvents();var e=this.selectionMode;this.selectionMode="",this._setSelectionMode(e)},destroy:function(){this.inherited(arguments),this._selectstartHandle&&this._selectstartHandle.remove(),this._unselectableHandle&&this._unselectableHandle.remove(),this._removeDeselectSignals&&this._removeDeselectSignals()},_setSelectionMode:function(e){e!=this.selectionMode&&(this.clearSelection(),this.selectionMode=e,this._selectionHandlerName="_"+e+"SelectionHandler",this._setAllowTextSelection(this.allowTextSelection))},setSelectionMode:function(t){e.deprecated("setSelectionMode(...)",'use set("selectionMode", ...) instead',"dgrid 0.4"),this.set("selectionMode",t)},_setAllowTextSelection:function(e){_(this,void 0!==e?e:"none"===this.selectionMode),this.allowTextSelection=e},_handleSelect:function(e,t){!this[this._selectionHandlerName]||!this.allowSelect(this.row(t))||"dgrid-cellfocusin"===e.type&&e.parentType===f||e.type===g&&t!=this._waitForMouseUp||(this._waitForMouseUp=null,this._selectionTriggerEvent=e,e.keyCode&&e.ctrlKey&&32!=e.keyCode||(!e.shiftKey&&e.type===f&&this.isSelected(t)?this._waitForMouseUp=t:this[this._selectionHandlerName](e,t)),this._selectionTriggerEvent=null)},_singleSelectionHandler:function(e,t){var i=e.keyCode?e.ctrlKey:e[d];this._lastSelected===t?this.select(t,null,!i||!this.isSelected(t)):(this.clearSelection(),this.select(t),this._lastSelected=t)},_multipleSelectionHandler:function(e,t){var i,n=this._lastSelected,o=e.keyCode?e.ctrlKey:e[d];e.shiftKey||(i=!o||null,n=null),this.select(t,n,i),n||(this._lastSelected=t)},_extendedSelectionHandler:function(e,t){(2===e.button?this.isSelected(t):e.keyCode?e.ctrlKey:e[d])||this.clearSelection(null,!0),this._multipleSelectionHandler(e,t)},_toggleSelectionHandler:function(e,t){this.select(t,null,null)},_initSelectionEvents:function(){var e=this,t=this.contentNode,i=this.selectionDelegate;this._selectionEventQueues={deselect:[],select:[]},o("touch")&&!o("pointer")&&this.selectionTouchEvents?(n(t,l.selector(i,this.selectionTouchEvents),(function(t){e._handleSelect(t,this),e._ignoreMouseSelect=this})),n(t,n.selector(i,this.selectionEvents),(function(t){e._ignoreMouseSelect!==this?e._handleSelect(t,this):t.type===g&&(e._ignoreMouseSelect=null)}))):n(t,n.selector(i,this.selectionEvents),(function(t){e._handleSelect(t,this)})),this.addKeyHandler&&this.addKeyHandler(32,(function(t){e._handleSelect(t,t.target)})),this.allowSelectAll&&this.on("keydown",(function(t){t[d]&&65==t.keyCode&&!/\bdgrid-input\b/.test(t.target.className)&&(t.preventDefault(),e[e.allSelected?"clearSelection":"selectAll"]())})),this._setStore&&r.after(this,"_setStore",(function(){e._updateDeselectionAspect()})),this._updateDeselectionAspect()},_updateDeselectionAspect:function(){var e,t,i=this,n=this.store;function o(e,t,n){var o=t||e&&e[i.idProperty||"id"];if(null!=o){var r=i.row(o),a=r&&i.selection[r.id];a&&i[n](r,null,a)}}this._removeDeselectSignals&&this._removeDeselectSignals(),n&&n.notify?(e=r.before(n,"notify",(function(e,t){e||o(e,t,"deselect")})),t=r.after(n,"notify",(function(e,t){o(e,t,"select")}),!0),this._removeDeselectSignals=function(){e.remove(),t.remove()}):(e=r.before(this,"removeRow",(function(e,t){var i;t||(i=this.row(e))&&i.id in this.selection&&this.deselect(i)})),this._removeDeselectSignals=function(){e.remove()})},allowSelect:function(e){return!0},_fireSelectionEvent:function(e){var t,i=this._selectionEventQueues[e],o=this._selectionTriggerEvent;t={bubbles:!0,grid:this},o&&(t.parentType=o.type),t[this._selectionTargetType]=i,n.emit(this.contentNode,"dgrid-"+e,t),this._selectionEventQueues[e]=[]},_fireSelectionEvents:function(){var e,t=this._selectionEventQueues;for(e in t)t[e].length&&this._fireSelectionEvent(e)},_select:function(e,t,i){var n,o,r,a,s;if(void 0===i&&(i=!0),e.element||(e=this.row(e)),(!1===i||this.allowSelect(e))&&(o=!!(n=this.selection)[e.id],null===i&&(i=!o),r=e.element,i||this.allSelected?n[e.id]=i:delete this.selection[e.id],r&&c(r,i?".dgrid-selected"+(this.addUiClasses?".ui-state-active":""):"!dgrid-selected!ui-state-active"),i!==o&&r&&this._selectionEventQueues[(i?"":"de")+"select"].push(e),t)){if(t.element||(t=this.row(t)),!t)return this._lastSelected=r,void console.warn("The selection range has been reset because the beginning of the selection is no longer in the DOM. If you are using OnDemandList, you may wish to increase farOffRemoval to avoid this, but note that keeping more nodes in the DOM may impact performance.");if(a=t.element)for((s=this._determineSelectionDirection(r,a))||(a=document.getElementById(a.id),s=this._determineSelectionDirection(r,a));e.element!=a&&(e=this[s](e));)this._select(e,null,i)}},_determineSelectionDirection:o("dom-comparedocumentposition")?function(e,t){var i=t.compareDocumentPosition(e);return!(1&i)&&(2===i?"down":"up")}:function(e,t){return!(t.sourceIndex<1)&&(t.sourceIndex>e.sourceIndex?"down":"up")},select:function(e,t,i){this._select(e,t,i),this._fireSelectionEvents()},deselect:function(e,t){this.select(e,t,!1)},clearSelection:function(e,t){for(var i in this.allSelected=!1,this.selection)e!==i&&this._select(i,null,!1);t||(this._lastSelected=null),this._fireSelectionEvents()},selectAll:function(){for(var e in this.allSelected=!0,this.selection={},this._rowIdToObject){var t=this.row(this._rowIdToObject[e]);this._select(t.id,null,!0)}this._fireSelectionEvents()},isSelected:function(e){return null!=e&&(e.element||(e=this.row(e)),e.id in this.selection?!!this.selection[e.id]:this.allSelected&&(!e.data||this.allowSelect(e)))},refresh:function(){return this.deselectOnRefresh&&this.clearSelection(),this._lastSelected=null,this.inherited(arguments)},renderArray:function(){var e=this,t=this.inherited(arguments);return i.when(t,(function(t){var i,n,o,r=e.selection;for(i=0;i<t.length;i++)(o=(n=e.row(t[i])).id in r?r[n.id]:e.allSelected)&&e._select(n,null,o);e._fireSelectionEvents()})),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(241),i(756)],o=i.dj.d(n,(function(e,t,i){var n=e([],{openStatus:!1,constructor:function(e){e=e||{}},handleOpenStatus:function(e,n,o,r,a){var s;if(!this.openStatus){var l,c=o||{},d=this;"displayFault"===r?(l=c.closeCallBack?c.closeCallBack:function(){},c.closeCallBack=function(e){d.openStatus=!1,l(e)}):(l=c.closeCallback?c.closeCallback:function(){},c.closeCallback=function(e){d.openStatus=!1,l(e)}),"displayFault"===r?s=i.displayFault(n,e,a,c):"displayAlertDialog"===r?s=t.displayAlertDialog(e,n,c):"displayConfirmDialog"===r&&(s=t.displayConfirmDialog(e,n,c)),this.openStatus=!0}return s},openNotificationAlertDialog:function(e,t,i){return this.handleOpenStatus(e,t,i,"displayAlertDialog")},openNotificationConfirmDialog:function(e,t,i){return this.handleOpenStatus(e,t,i,"displayConfirmDialog")},openMotwFaultDialog:function(e,t,i,n){return this.handleOpenStatus(e,t,n,"displayFault",i)}}),o=null;return o||(o=new n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8337)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/wraLogin",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(236),i(701),i(1018),i(1657),i(1249),i(648),i(602),i(395),i(568),i(209),i(241)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){"use strict";let h;const p={setDefaultProfileWithConfirmation:function(n,o,d){const h=r.get().latest;(o=o||{}).onError=o.onError||s.displayError,d&&a.forEachValue(o,(function(t,i){o[i]=e.hitch(d,t)}),this),h.shouldRestartOnClusterChange()?u.displayConfirmDialog(l.ActionsSetDefaultRestartPoolDialogTitle,t.substitute(l.ActionsSetDefaultRestartPoolDialogMessage,[h.profileName,n]),{icon:"question",buttonText:[c.yes,c.no],closeCallback:function(e){1===e.response&&i.getInstance().executor.setDefaultProfile(n).then(o.onSuccess,o.onError)},"data-test-id":"PCT_RestartPoolConfirmDialog"}):i.getInstance().executor.setDefaultProfile(n).then(o.onSuccess,o.onError)},isLocalClusterEnabledAsync:function(){return o.currentProfileExecutor().isLocalClusterEnabled().then(e=>{h=e}).otherwise(e=>{d.error("Can't find out whether the local cluster should be enabled. \nError was: "+e.message),h=!1})},isSupported:function(e){if(e&&"object"==typeof e&&(e=e.name),"local"!==e)return!0;if(void 0===h)throw new Error("localClusterEnabled is not available yet.");return h}};return p}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(8668),i(1248),i(1657),i(763),i(539)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){const s=r.getLogger(),l=e([t],{constructor:function(){this.data={profiles:[]},this._profilesById={},this.validationManager=new n,this.executor=o.currentProfileExecutor(),this.executor.initializeProfileManager().then(e=>this._handleProfileManagerInitialized(e),e=>this.emit(l.FAILED_TO_INITIALIZE,e))},_handleProfileManagerInitialized:function(e){this.emit(l.READY,e[0]);const t=new a("/parallel/profile",{strategy:a.VIEWMODEL});t.hasRoot()?this._handleRootSet(t.getRoot()):t.onRootSet(this._handleRootSet,this),this.validationManager.setup()},validate:function(e){this.validationManager.validate(e.name,e.validationSuite)},_handleRootSet:function(e){this.data.defaultProfileName=e.getProperty("default"),s.debug("ProfileManager: Root peer node initialised."),a.onPropertySet(e,this._handleRootPropertySet,this),a.onChildAdded(e,this._handleProfileAdded,this),a.onChildDestroyed(e,this._handleProfileRemoved,this)},_handleRootPropertySet:function(e,t){const i={};if("default"===e){const e=Object.assign({},...this.data.profiles.map(e=>({[e.name]:e})));i.oldProfile=e[this.data.defaultProfileName],this.data.defaultProfileName=t,i.newProfile=e[t],i.newProfile&&(s.debug(`ProfileManager: Default profile changed from '${i.oldProfile.name}' to '${i.newProfile.name}'`),this.emit(l.DEFAULT_PROFILE_CHANGED,i))}},_handleProfileAdded:function(e){const t=new i(e);s.debug("Added profile named "+t.name),this.data.profiles.push(t),this._profilesById[t.id]=t,this.emit(l.PROFILE_ADDED,t),t.on(i.RENAMED,(...e)=>this.emit(l.PROFILE_RENAMED,...e)),t.on(i.COPYABLE_CHANGED,(...e)=>this.emit(l.PROFILE_COPYABLE_CHANGED,...e)),t.on(i.EXPORTABLE_CHANGED,(...e)=>this.emit(l.PROFILE_EXPORTABLE_CHANGED,...e))},_handleProfileRemoved:function(e){const t=this.data.profiles[e];s.debug("ProfileManager: Removing profile named "+t.name),this.data.profiles.splice(e,1),delete this._profilesById[t.id],this.emit(l.PROFILE_REMOVED,t)},getProfiles:function(){return this.data.profiles},getProfileById:function(e){return this._profilesById[e]},getDefaultProfile:function(){if(!this.data.profiles||!this.data.defaultProfileName)return null;const e=this.data.profiles.filter(e=>this.isDefaultProfile(e));if(e.length>1)throw new Error("Cannot have multiple default profiles.");return 1===e.length?e[0]:null},getDefaultProfileName:function(){return this.data.defaultProfileName},isDefaultProfile:function(e){return e.name&&(e=e.name),e===this.data.defaultProfileName}});let c=null;return l.getInstance=function(){return null===c&&(c=new l),c},l.READY="ready",l.FAILED_TO_INITIALIZE="initFailed",l.PROFILE_ADDED="profileAdded",l.PROFILE_REMOVED="profileRemoved",l.PROFILE_RENAMED="profileRenamed",l.DEFAULT_PROFILE_CHANGED="defaultProfileChanged",l.PROFILE_COPYABLE_CHANGED="profileCopyableChanged",l.PROFILE_EXPORTABLE_CHANGED="profileExportableChanged",l}),e,t),e.exports=o},function(e,t,i){e.exports={ABOUT_TO_START:"ABOUT_TO_START",STARTING:"STARTING",FAILED_TO_START:"FAILED_TO_START",BUSY:"BUSY",IDLE:"IDLE",CLOSED:"CLOSED",INVALID:"INVALID"}},function(e,t,i){var n,o;n=[i(342)],o=i.dj.d(n,(function(e){var t=null;return KeyBindingsFactory={getInstance:function(i){if(t||(t={actionDataServiceUsed:i,keyBindingsObject:new e(i)}),i!==t.actionDataServiceUsed)throw new Error("The keyBinding API is already registered with a different actionDataService, cannot use this actionDataService as an argument");return t.keyBindingsObject},destroyInstance:function(){t&&(t.keyBindingsObject.cleanup(),delete t.keyBindingsObject,t=null)}},KeyBindingsFactory}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(776)],o=i.dj.d(n,(function(e){return{toJSON:function(t){void 0===t&&(t="");try{t=e.convertToJSON(t)}catch(e){t=""}return e.convertToJSON(this.getMetadata(t))},getMetadata:function(e){return{metadata:e,origin:"JS"}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(704)],o=i.dj.d(n,(function(e){return{fireSyncCompleted:function(t){t.notifyEventListeners("syncCompleted",t,{},e.getMetadata())},fireRootSetEvent:function(e,t,i){var n={root:t};e.notifyEventListeners("rootSet",t,n,i),e._pluginManager.rootSetFired(e,t,i)},fireChildAddedEvent:function(e,t,i,n){var o={child:t,index:i};e.notifyEventListeners("childAdded",e,o,n),e.getViewModelManager()._pluginManager.childAddedFired(e,t,i,n)},firePropertySetEvent:function(e,t,i,n,o){var r={key:t,oldValue:n,newValue:i};e.notifyEventListeners("propertySet",e,r,o)},firePropertiesSetEvent:function(e,t,i,n){var o={newValues:i,oldValues:t};e.notifyEventListeners("propertiesSet",e,o,n)},fireChildDestroyedEvent:function(e,t,i,n){data={child:t,index:i},e.notifyEventListeners("childRemoved",e,data,n),e.notifyEventListeners("childDestroyed",e,data,n)},fireDestroyedEvent:function(e,t){e.notifyEventListeners("destroyed",e,{},t)},fireRootUnset:function(e,t,i){data={root:e},t.notifyEventListeners("rootUnset",e,data,i)},fireChildAttached:function(e,t,i,n){var o={child:t,index:i};e.notifyEventListeners("childAttached",e,o,n)},fireChildDetached:function(e,t,i,n){var o={child:t,index:i};e.notifyEventListeners("childDetached",e,o,n)},fireChildrenChanged:function(e,t,i){var n={previousChildren:t};e.notifyEventListeners("childrenChanged",e,n,i)},fireChildMoved:function(e,t,i,n,o,r,a){var s={oldParent:o,oldIndex:r,newParent:i,newIndex:n};e.notifyEventListeners("childMoved",t,s,a)},fireDispatchEvent:function(e,t,i,n){e.notifyEventListeners(t,e,i,n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{buttonGroupName:new e({type:"string",defaultValue:"",required:!1,notInAction:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{popupId:new e({type:"string",notInAction:!1,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{preventRestoreFocus:new e({type:"boolean",defaultValue:!1,notInAction:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{showText:new e({type:"boolean",defaultValue:!1,notInAction:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(518),i(436),i(352),i(412),i(370)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e(null,{_setDescriptionAttr:function(){this.inherited(arguments),this._updateTooltip()},_setTextAttr:function(){this.inherited(arguments),this._updateTooltip()},_setShortcutAttr:function(e){this._set("shortcut",e),this._updateTooltip()},_updateTitle:function(){this._updateTooltip()},_updateTooltip:function(){var e="",t="",i="";this._excludeTextInTooltip?e="":this.textOverride?e=this.textOverride:this.text&&(e=this.text),this._excludeShortcutInTooltip?t="":this.shortcut&&(t=this._getPlatformizedShortcut(this.shortcut)),this._excludeDescriptionInTooltip?i="":this.descriptionOverride?i=this.descriptionOverride:this.description&&(i=this.description),this._updateTooltipLayout(e,t,i)},_updateTooltipLayout:function(e,t,i){var n="",o="";e?(t&&(n=" (",o=")",e=e.replace(/\n/g," ")),i&&(o+=" - ",i=i.replace(/\n/g," "))):t&&i&&(e=i.replace(/\n/g," "),i="",n=" (",o=")"),this._updateTitleInDOM(e+n+t+o+i)},_updateTitleInDOM:function(e){this.getTitleNodes().forEach((function(t){t.setAttribute("title",e)}))},getTitleNodes:function(){return[this.domNode]}});return a._dependencies=[{mixin:t,orderDependent:!0},{mixin:i,orderDependent:!0},{mixin:n,orderDependent:!0},{mixin:o,orderDependent:!0},{mixin:r,orderDependent:!0}],a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{postCreate:function(){this.inherited(arguments),this.width="auto",this.height="auto"},_setHeightAttr:function(e){},_getHeightAttr:function(){return"Horizontal"===this.get("orientation")?22:72}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(420),i(204),i(231),i(31)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};return e.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],(function(e){r[e]=n[e]})),i.mixin(r,{defaultDuration:t.defaultDuration||200}),i.mixin(o,r),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(245),i(242),i(227),i(217),i(213),i(222),i(206),i(248),i(660),i(1327)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return t("dojo.dnd.Mover",[l],{constructor:function(e,t,n){this.node=r.byId(e),this.marginBox={l:t.pageX,t:t.pageY},this.mouseButton=t.button;var o=this.host=n,a=e.ownerDocument;function s(e){e.preventDefault(),e.stopPropagation()}this.events=[c(a,d.move,i.hitch(this,"onFirstMove")),c(a,d.move,i.hitch(this,"onMouseMove")),c(a,d.release,i.hitch(this,"onMouseUp")),c(a,"dragstart",s),c(a.body,"selectstart",s)],h.autoScrollStart(a),o&&o.onMoveStart&&o.onMoveStart(this)},onMouseMove:function(e){h.autoScroll(e);var t=this.marginBox;this.host.onMove(this,{l:t.l+e.pageX,t:t.t+e.pageY},e),e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){(n("webkit")&&n("mac")&&2==this.mouseButton?0==e.button:this.mouseButton==e.button)&&this.destroy(),e.preventDefault(),e.stopPropagation()},onFirstMove:function(e){var t,i,n=this.node.style,r=this.host;switch(n.position){case"relative":case"absolute":t=Math.round(parseFloat(n.left))||0,i=Math.round(parseFloat(n.top))||0;break;default:n.position="absolute";var l=a.getMarginBox(this.node),c=o.doc.body,d=s.getComputedStyle(c),u=a.getMarginBox(c,d),h=a.getContentBox(c,d);t=l.l-(h.l-u.l),i=l.t-(h.t-u.t)}this.marginBox.l=t-this.marginBox.l,this.marginBox.t=i-this.marginBox.t,r&&r.onFirstMove&&r.onFirstMove(this,e),this.events.shift().remove()},destroy:function(){e.forEach(this.events,(function(e){e.remove()}));var t=this.host;t&&t.onMoveStop&&t.onMoveStop(this),this.events=this.node=this.host=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3251)],o=i.dj.d(n,(function(e){var t=null;return{getInstance:function(i){return t||(t=new e(i)),t},destroy:function(){t&&(t.cleanup(),t=null)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(232),i(212),i(233),i(3279)],o=i.dj.d(n,(function(e,t,i,n){return e.registerResponseHandler("CreateFileResponse:WriteFileToPreferenceDirectory",(function(e,t){if(1===e.length)e[0].messageFaults&&e[0].messageFaults.length>0?t.reject(e[0].messageFaults):t.resolve("File Created");else{var i="Error while writing file to prefdir: Expected 1 result message back, received: "+e.length;t.reject(i)}}),this),e.registerFaultHandler("CreateFileResponse:WriteFileToPreferenceDirectory",(function(e,t){t.reject(e)}),this),e.registerResponseHandler("OpenFileResponse:ReadFileFromPreferenceDirectory",(function(e,t){if(1===e.length)e[0].messageFaults&&e[0].messageFaults.length>0?t.reject(e[0].messageFaults):t.resolve(e[0].file.content);else{var i="Error while reading file from prefdir: Expected 1 result message back, received: "+e.length;t.reject(i)}}),this),e.registerFaultHandler("OpenFileResponse:ReadFileFromPreferenceDirectory",(function(e,t){t.reject(e)}),this),{getPreferenceDirectoryPath:function(){var e=new t;return n.getPrefdir().then((function(t){t&&"object"==typeof t&&t.hasOwnProperty("prefdir")||e.reject("Error while getting prefdir: No response received."),"string"!=typeof t.prefdir&&e.reject("Error while getting prefdir: Expected a string, received "+typeof t),e.resolve(t.prefdir)}),(function(t){e.reject(t)})),e.promise},writeFileToPreferenceDirectory:function(n,o){var r=new t;return this.getPreferenceDirectoryPath().then((function(t){var a=i.createEmptyFileObject(t,n);a.content=o,e.sendMessage({CreateFile:{file:a,updateIfExists:!0}},r,"WriteFileToPreferenceDirectory")})),r.promise},readFileFromPreferenceDirectory:function(n){var o=new t;return this.getPreferenceDirectoryPath().then((function(t){e.sendMessage({OpenFile:{path:i.createFilePath(t,n)}},o,"ReadFileFromPreferenceDirectory")})),o.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(221),i(206)],o=i.dj.d(n,(function(e,t,i){return{MOUSEWHEEL:t("mozilla")?"DOMMouseScroll":"wheel",_WHEEL_DELTA:120,_MOZ_PIXEL_DISTANCE:51,_IE_PIXEL_DISTANCE:45,_MAC_PIXEL_DISTANCE:40,_DEFAULT_PIXEL_DISTANCE:100,_WHEEL_MODE_LINE:-40,redirectMouseScroll:function(t,n){var o=e.hitch(this,(function(e){n.setScrollTop(n.getScrollTop()-this.getVerticalScrollDistance(e)),n.setScrollLeft(n.getScrollLeft()-this.getHorizontalScrollDistance(e))}));i(t,this.MOUSEWHEEL,o)},getVerticalScrollDistance:function(e){if(!this.isVerticalScroll(e))return 0;var t=this._normalizeMouseEvent(e).vertical;return this._browserfyScrollDistance(t)},getHorizontalScrollDistance:function(e){if(!this.isHorizontalScroll(e))return 0;var t=this._normalizeMouseEvent(e).horizontal;return this._browserfyScrollDistance(t)},isVerticalScroll:function(e){return 0!==this._normalizeMouseEvent(e).vertical},isHorizontalScroll:function(e){return 0!==this._normalizeMouseEvent(e).horizontal},_normalizeMouseEvent:function(e){var i={vertical:0,horizontal:0};if(t("mozilla"))i.vertical=e.axis===e.VERTICAL_AXIS?e.detail:0,i.horizontal=e.axis===e.HORIZONTAL_AXIS?e.detail:0;else{var n=e.deltaY&&0!==e.deltaY,o=e.deltaX&&0!==e.deltaX,r=e.wheelDeltaY&&0!==e.wheelDeltaY,a=e.wheelDeltaX&&0!==e.wheelDeltaX,s=n||r,l=o||a,c=e.shiftKey;s&&(c?i.horizontal=r?e.wheelDeltaY:-e.deltaY:i.vertical=r?e.wheelDeltaY:-e.deltaY),l&&(c&&n?i.vertical=a?e.wheelDeltaX:-e.deltaX:i.horizontal=a?e.wheelDeltaX:i.horizontal||-e.deltaX)}return i},_browserfyScrollDistance:function(e){return(t("mozilla")?this._WHEEL_MODE_LINE*this._MOZ_PIXEL_DISTANCE:t("trident")||t("ie")?this._IE_PIXEL_DISTANCE:t("safari")||t("mac")?this._MAC_PIXEL_DISTANCE:this._DEFAULT_PIXEL_DISTANCE)*e/this._WHEEL_DELTA},isEventInScrollbarTrack:function(e){if(0===e.target.clientWidth&&0===e.target.clientHeight)return!1;var t=e.target.getBoundingClientRect(),i=t.left+e.target.clientWidth,n=t.top+e.target.clientHeight,o=e.clientX>i,r=e.clientY>n;return o||r},isBrowserZoomScrollEvent:function(e){return e.ctrlKey&&!t("mac")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){return{getBreakpointMarginWidth:function(){return 17},translateBreakpointToExecutableLine:function(t,i){var n=e.clone(i);return t.isCodeLineExecutable(i.zeroBasedLineNumber+1)||(n.zeroBasedLineNumber=t.getNextExecutableCodeLine(i.zeroBasedLineNumber+1)-1),n},translateConditionToEnablement:function(e,t=!0){let i=e;const n=i.startsWith("false&&"),o="false"===i;let r=!n&&!o&&t;return n?i=i.replace(/^(false&&)/,""):o&&(i=""),{isEnabled:r,condition:i}}}}),e,t),e.exports=o},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(204),__webpack_require__(472)],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(lang,MathMLExportUtils){var commonAttributes=MathMLExportUtils.commonMathMLAttributes.concat("accessibility"),nonspacing=RegExp(eval('"[\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1-\\u05c2\\u05c4-\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u065e\\u0670\\u06d6-\\u06dc\\u06df-\\u06e4\\u06e7-\\u06e8\\u06ea-\\u06ed\\u0711\\u0730-\\u074a\\u07a6-\\u07b0\\u07eb-\\u07f3\\u0901-\\u0902\\u093c\\u0941-\\u0948\\u094d\\u0951-\\u0954\\u0962-\\u0963\\u0981\\u09bc\\u09c1-\\u09c4\\u09cd\\u09e2-\\u09e3\\u0a01-\\u0a02\\u0a3c\\u0a41-\\u0a42\\u0a47-\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a70-\\u0a71\\u0a75\\u0a81-\\u0a82\\u0abc\\u0ac1-\\u0ac5\\u0ac7-\\u0ac8\\u0acd\\u0ae2-\\u0ae3\\u0b01\\u0b3c\\u0b3f\\u0b41-\\u0b44\\u0b4d\\u0b56\\u0b62-\\u0b63\\u0b82\\u0bc0\\u0bcd\\u0c3e-\\u0c40\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55-\\u0c56\\u0c62-\\u0c63\\u0cbc\\u0cbf\\u0cc6\\u0ccc-\\u0ccd\\u0ce2-\\u0ce3\\u0d41-\\u0d44\\u0d4d\\u0d62-\\u0d63\\u0dca\\u0dd2-\\u0dd4\\u0dd6\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0eb1\\u0eb4-\\u0eb9\\u0ebb-\\u0ebc\\u0ec8-\\u0ecd\\u0f18-\\u0f19\\u0f35\\u0f37\\u0f39\\u0f71-\\u0f7e\\u0f80-\\u0f84\\u0f86-\\u0f87\\u0f90-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u102d-\\u1030\\u1032-\\u1037\\u1039-\\u103a\\u103d-\\u103e\\u1058-\\u1059\\u105e-\\u1060\\u1071-\\u1074\\u1082\\u1085-\\u1086\\u108d\\u135f\\u1712-\\u1714\\u1732-\\u1734\\u1752-\\u1753\\u1772-\\u1773\\u17b7-\\u17bd\\u17c6\\u17c9-\\u17d3\\u17dd\\u180b-\\u180d\\u18a9\\u1920-\\u1922\\u1927-\\u1928\\u1932\\u1939-\\u193b\\u1a17-\\u1a18\\u1b00-\\u1b03\\u1b34\\u1b36-\\u1b3a\\u1b3c\\u1b42\\u1b6b-\\u1b73\\u1b80-\\u1b81\\u1ba2-\\u1ba5\\u1ba8-\\u1ba9\\u1c2c-\\u1c33\\u1c36-\\u1c37\\u1dc0-\\u1de6\\u1dfe-\\u1dff\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2de0-\\u2dff\\u302a-\\u302f\\u3099-\\u309a\\ua66f\\ua67c-\\ua67d\\ua802\\ua806\\ua80b\\ua825-\\ua826\\ua8c4\\ua926-\\ua92d\\ua947-\\ua951\\uaa29-\\uaa2e\\uaa31-\\uaa32\\uaa35-\\uaa36\\uaa43\\uaa4c\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe26]|\\ud800\\uddfd|\\ud802[\\ude01-\\ude03\\ude05-\\ude06\\ude0c-\\ude0f\\ude38-\\ude3a\\ude3f]|\\ud834[\\udd67-\\udd69\\udd7b-\\udd82\\udd85-\\udd8b\\uddaa-\\uddad\\ude42-\\ude44]|\\udb40[\\udd00-\\uddef]"'),"g");function hasExplictMathMode(e,t){var i=e.trim();function n(e){return t?0===e:-1!==e}return!!n(i.indexOf("$"))||(0===i.indexOf("\\[")||!!n(i.indexOf("\\(")))}return{isSingleCharIdentString:function(e){return 1===e.replace(nonspacing,"").length},copyCommonAttributes:function(e,t){commonAttributes.forEach(lang.hitch(this,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})))},setDisplaystyleIfNeeded:function(e,t){var i=e.replace(/(^%|[^\\\\]%).*(\r?\n)?/g,"");if((i=i.trim())&&!this.hasExplictMathMode(i,t)){e="$$"+e+"\n$$"}return e},hasExplictMathMode:hasExplictMathMode,stringAscentBelowXHeight:function(e){return null!==e.match(/^[acegmnopqrsuvwxyz+\-\u2009\u2212\u03B1\u03B3\u03B5\u03B7\u03B9\u03BA\u03BC\u03BD\u03BF\u03C0\u03C1\u03C3\u03C4\u03C5\u03C7\u03C8\u03C9\u03C6\u03D6\u03F1\u03DB]*$/)}}}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},function(e,t,i){var n,o;n=[i(230),i(312),i(203),i(204),i(211),i(206),i(437)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i(e,{_TOOLTIP_WRAPPER_CLASS:"rtcDescriptiveTooltip",_TOOLTIP_DESCRIPTION_CLASS:"detailedDescription",_TOOLTIP_SHORTCUT_INFO_CLASS:"shortcutInfo",_TOOLTIP_KEY_BINDING_CLASS:"keyBinding",_TOOLTIP_DELAY:400,constructor:function(e){if(!e.targetNode||!e.label)throw new Error("Required arguments not provided");this._targetNode=e.targetNode,this._cachedMessage=null,this._args=e;var t=e.additionalDelay?this._TOOLTIP_DELAY+e.additionalDelay:this._TOOLTIP_DELAY;this.own(r(this._targetNode,"mouseenter",n.hitch(this,"_showTooltip",t))),this.own(r(this._targetNode,"mouseleave",n.hitch(this,"_hideTooltip"))),this.own(r(this._targetNode,"click",n.hitch(this,"_hideTooltip"))),this._tooltipTimer=null},_showTooltip:function(e){this._tooltipTimer&&clearTimeout(this._tooltipTimer),this._tooltipTimer=setTimeout(n.hitch(this,(function(){this._cachedMessage||(this._cachedMessage=this._buildMessage(this._args.label,this._args.description,this._args.cssClasses,this._args.keyBinding),this._args=null),t.show(this._cachedMessage,this._targetNode,["below","above"])})),e)},_hideTooltip:function(){clearTimeout(this._tooltipTimer),this._tooltipTimer=null,t.hide(this._targetNode)},_buildMessage:function(e,t,i,n){var r=e;if(n){var a=o.create("span",{class:this._TOOLTIP_KEY_BINDING_CLASS,innerHTML:n});r=o.create("span",{class:this._TOOLTIP_SHORTCUT_INFO_CLASS,innerHTML:"("+a.outerHTML+")"}).outerHTML+r}t&&(r=r+"<br>"+o.create("span",{class:this._TOOLTIP_DESCRIPTION_CLASS,innerHTML:t}).outerHTML);return this._wrapTooltipContent(r,i)},_wrapTooltipContent:function(e,t){var i=this._TOOLTIP_WRAPPER_CLASS;return t&&(i=i+" "+t),o.create("div",{class:i,innerHTML:a.createUnfocusableTooltipTextHTML(e)}).outerHTML},destroy:function(){this.inherited(arguments),this._hideTooltip()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209)],o=i.dj.d(n,(function(e){return{_latestNumberOfWhiteSpaces:0,_latestIndentLevel:0,_autoIndentEnablement:!1,_autoIndentDisableStack:0,getLatestNumberOfWhiteSpaces:function(){return this._latestNumberOfWhiteSpaces},setNumberOfWhiteSpaces:function(e){this._latestNumberOfWhiteSpaces=e},resetNumberOfWhiteSpaces:function(){this._latestNumberOfWhiteSpaces=0},getLatestIndentLevel:function(){return this._latestIndentLevel},setIndentLevel:function(e){this._latestIndentLevel=e},resetIndentLevel:function(){this._latestIndentLevel=0},notifyAutoIndentEnablement:function(){this._autoIndentEnablement=!0},isAutoIndentEnabled:function(){return this._autoIndentEnablement},disableAutoIndent:function(){this._autoIndentDisableStack++},restoreAutoIndent:function(){e.assert(this._autoIndentDisableStack>0,"Auto-indent must be disabled before it can be restored"),this._autoIndentDisableStack--},isAutoIndentTemporarilyDisabled:function(){return this._autoIndentDisableStack>0}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(213),i(221)],o=i.dj.d(n,(function(e,t){return{getStyleValuesForNode:function(e,t,i){return this.getStyleValuesForDomNode(this.getDomNode(e,i),t)},getStyleValuesForDomNode:function(i,n){var o="",r=e.getComputedStyle(i);if(t("ff"))return this._reduceComputedStyles(r,n);for(var a=0;a<n.length;a+=1)o+=n[a]+": "+r[n[a]]+"; ";return o},getDomNode:function(e,t){return t.getNodeBox(e)},_reduceComputedStyles:function(e,t){return t.reduce((function(t,i){var n="";switch(i){case"border-left":n=t+i+": "+e["border-left-width"]+" "+e["border-left-style"]+" "+e["border-left-color"]+"; ";break;case"border-right":n=t+i+": "+e["border-right-width"]+" "+e["border-right-style"]+" "+e["border-right-color"]+"; ";break;case"border-top":n=t+i+": "+e["border-top-width"]+" "+e["border-top-style"]+" "+e["border-top-color"]+"; ";break;case"border-bottom":n=t+i+": "+e["border-bottom-width"]+" "+e["border-bottom-style"]+" "+e["border-bottom-color"]+"; ";break;case"border-radius":n=t+i+": "+e["border-top-left-radius"]+" "+e["border-top-right-radius"]+" "+e["border-bottom-right-radius"]+" "+e["border-bottom-left-radius"]+"; ";break;case"margin":n=t+i+": "+e["margin-top"]+" "+e["margin-right"]+" "+e["margin-bottom"]+" "+e["margin-left"]+"; ";break;case"padding":n=t+i+": "+e["padding-top"]+" "+e["padding-right"]+" "+e["padding-bottom"]+" "+e["padding-left"]+"; ";break;case"background":n=t+i+": "+e["background-color"]+" "+e["background-image"]+" "+e["background-repeat"]+" "+e["background-position"]+"; ";break;default:n=t+i+": "+e[i]+"; "}return n}),"")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){},enter:function(e,t,i){var n=e.getAttributesForStyle(t,this._STYLES);t.anchorId&&(n+=" id = '"+t.anchorId+"' ");var o="<"+this._getTagName(t,i);return n&&(o+=" "+n),o+=">",e.addToBody(o),t.isEmpty()&&"clipboard"===i.target&&e.addToBody("\x3c!--[if mso]><br><![endif]--\x3e"),!1},leave:function(e,t,i){e.addToBody("</"+this._getTagName(t,i)+">")},_getTagName:function(e,t){return"div"}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),a=[];function s(e){for(var t=-1,i=0;i<a.length;i++)if(a[i].identifier===e){t=i;break}return t}function l(e,t){for(var i={},n=[],o=0;o<e.length;o++){var r=e[o],l=t.base?r[0]+t.base:r[0],c=i[l]||0,d="".concat(l," ").concat(c);i[l]=c+1;var u=s(d),h={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(a[u].references++,a[u].updater(h)):a.push({identifier:d,updater:m(h,t),references:1}),n.push(d)}return n}function c(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var d,u=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function h(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=u(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function p(e,t,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f=null,g=0;function m(e,t){var i,n,o;if(t.singleton){var r=g++;i=f||(f=c(t)),n=h.bind(null,i,r,!1),o=h.bind(null,i,r,!0)}else i=c(t),n=p.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=s(i[n]);a[o].references--}for(var r=l(e,t),c=0;c<i.length;c++){var d=s(i[c]);0===a[d].references&&(a[d].updater(),a.splice(d,1))}i=r}}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var o=(a=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),r=n.sources.map((function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"}));return[i].concat(r).concat([o]).join("\n")}var a;return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i})).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(n[r]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&n[a[0]]||(i&&!a[2]?a[2]=i:i&&(a[2]="("+a[2]+") and ("+i+")"),t.push(a))}},t}},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(240),i(204),i(206),i(245),i(1079),i(1402),i(3939),i(31),i(892)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){u.deprecated({deprecated:{module:"dijit/form/TextBox"},replacement:{module:"mw-form/TextField"},geckNumber:1352405});var h=e("dijit.form.TextBox"+(a("dojo-bidi")?"_NoBidi":""),[s,l],{templateString:c,_singleNodeTemplate:'<input class="dijit dijitReset dijitLeft dijitInputField" data-dojo-attach-point="textbox,focusNode" autocomplete="off" type="${type}" ${!nameAttrSetting} />',_buttonInputDisabled:a("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var e=this.type.toLowerCase();(this.templateString&&"input"==this.templateString.toLowerCase()||("hidden"==e||"file"==e)&&this.templateString==this.constructor.prototype.templateString)&&(this.templateString=this._singleNodeTemplate),this.inherited(arguments)},postCreate:function(){this.inherited(arguments),a("ie")<9&&this.defer((function(){try{var e=i.getComputedStyle(this.domNode);if(e){var t=e.fontFamily;if(t){var n=this.domNode.getElementsByTagName("INPUT");if(n)for(var o=0;o<n.length;o++)n[o].style.fontFamily=t}}}catch(e){}}))},_setPlaceHolderAttr:function(e){this._set("placeHolder",e),this._phspan||(this._attachPoints.push("_phspan"),this._phspan=t.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after"),this.own(r(this._phspan,"mousedown",(function(e){e.preventDefault()})),r(this._phspan,"touchend, pointerup, MSPointerUp",o.hitch(this,(function(){this.focus()}))))),this._phspan.innerHTML="",this._phspan.appendChild(this._phspan.ownerDocument.createTextNode(e)),this._updatePlaceHolder()},_onInput:function(e){this.inherited(arguments),this._updatePlaceHolder()},_updatePlaceHolder:function(){this._phspan&&(this._phspan.style.display=this.placeHolder&&!this.textbox.value?"":"none")},_setValueAttr:function(e,t,i){this.inherited(arguments),this._updatePlaceHolder()},getDisplayedValue:function(){return n.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use get('displayedValue') instead.","","2.0"),this.get("displayedValue")},setDisplayedValue:function(e){n.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0"),this.set("displayedValue",e)},_onBlur:function(e){this.disabled||(this.inherited(arguments),this._updatePlaceHolder(),a("mozilla")&&this.selectOnClick&&(this.textbox.selectionStart=this.textbox.selectionEnd=void 0))},_onFocus:function(e){this.disabled||this.readOnly||(this.inherited(arguments),this._updatePlaceHolder())}});return a("ie")<9&&(h.prototype._isTextSelected=function(){var e=this.ownerDocument.selection.createRange();return e.parentElement()==this.textbox&&e.text.length>0},d._setSelectionRange=l._setSelectionRange=function(e,t,i){if(e.createTextRange){var n=e.createTextRange();n.collapse(!0),n.moveStart("character",-99999),n.moveStart("character",t),n.moveEnd("character",i-t),n.select()}}),a("dojo-bidi")&&(h=e("dijit.form.TextBox",h,{_setPlaceHolderAttr:function(e){this.inherited(arguments),this.applyTextDir(this._phspan)}})),h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(1958),i(209),i(291)],o=i.dj.d(n,(function(e,t,i,n){"use strict";var o=null;function r(t,r,a){var s=new e;if(r=r||{},!t)throw new Error("No function name specified for showFileDialog.");return(null===o&&(o=n.getMVM()),o).feval(t,a,r).then((function(e){s.resolve(e||null)}),(function(e){i.error(e),s.reject(e)})),s}return{showOpenFileDialog:function(e){return new Promise((function(t,i){r("uigetfile",[e.filter||"*.*",e.title||"",e.fileName||""],3).then((function(e){e&&e[0]&&e[0].length>0?t({name:e[0],path:e[1],filterIndex:e[2]}):t(null)}),(function(e){i(e)}))}))},showSaveFileDialog:function(e){return new Promise((function(t,i){r("uiputfile",[e.filter||"*.*",e.title||"",e.fileName||""],3).then((function(e){t({name:e[0],path:e[1],filterIndex:e[2]})}),(function(e){i(e)}))}))},showOpenFolderDialog:function(){return new Promise((function(e,t){r("uigetdir",[],1).then((function(t){e({name:t[0],path:t[1]})}),(function(e){t(e)}))}))},isFile:function(e){return r("isfile",[e],1)},getPwd:function(){return r("pwd",[],1)},deleteFile:function(e){return r("delete",[e.filePath||e.pattern||""],0)},openAsText:function(...e){return t.openFileInEditor(...e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return _TEXT_ALLOWED_AFTER_CURSOR=["'",'"',")","]","}"],_METADATA_CALLING_SYNTAX_COMMAND="command",{isSamePositionAsLast:function(e,t){return t.line===e.line&&t.column===e.column},isMatlabString:function(e){return"'"===e.slice(0,1)&&"'"===e.slice(-1)||'"'===e.slice(0,1)&&'"'===e.slice(-1)},isArgumentSelected:function(e,t,i){if(e.startLine!==e.endLine||t.start.line!==t.end.line||e.startLine!==t.start.line)return!1;var n=t.start.column,o=t.end.column;if(n>o){var r=n;n=o,o=r}var a=e.startColumn,s=e.endColumn;return a===n&&s===o||!(!this.isMatlabString(i)||a+1!==n||s-1!==o)},isTextAllowedAfterCursor:function(e){return-1!==_TEXT_ALLOWED_AFTER_CURSOR.indexOf(e)},hasMultipleCursorsOrReadOnlyCursor:function(e){return e.hasMultipleCursors()||e.areCursorsReadOnly()},isSelectionOutsideCurrentArg:function(e,t){if(!e.hasSelection())return!1;var i=e.getSelectionLineColumn(),n=t.metaData.getCurrentBounds(e.position);return n.startLine!==n.endLine||(i.start.column<n.left||i.end.column>n.right)},isCommandCallingSyntax:function(e){var t=e.getPresentingSignature();return t&&t.callingSyntax===_METADATA_CALLING_SYNTAX_COMMAND}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(237),i(620),i(475),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{_TARGET_REGEXP:void 0,_isTriggerTypeExpected:function(e){return e.type===n.INSERT_BREAK},_isTriggerPositionExpected:function(e){return o.isFirstLayerContainer(e.triggerPos)&&o.isAtEndOfEmptyLine(e.cursorPos)},_findAndRecordTarget:function(e){var t=e.triggerPos.getLineColumn().line,i=this._getRangeOfDirectivesOnLine(t);return!!i&&(e.target=i,!0)},format:function(e){var t=e.cursorPos.getLineColumn().line,i=e.triggerPos.getLineColumn().line,n=this._document.startBlockEdit();this._removeLeadingSpaces(t);var o=e.target;return this._format(i,o),this._document.endBlockEdit(n),this._cursor.onUpdate(),e},_format:function(e,t){this._transformLineToParagraph(e,t)},_getRangeOfDirectivesOnLine:function(e){return t.getRangeAndTextOfTargetOnLine(this._internalDocument,e,this._TARGET_REGEXP)},_transformLineToParagraph:function(e,t){var i=this._getTypeOfParagraph(e);this._richText.applyFormatInLine(i,e),this._removeDirectives(e,t),this._removeTrailingSpaces(e)},_getTypeOfParagraph:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.smartformatting.abstract.ParagraphFormatSmartFormatter._getTypeOfParagraph")},_removeDirectives:function(e,t){this._document.deleteText(e,t.start,e,t.end-1)},_removeTrailingSpaces:function(e){var i=t.getRangeAndTextOfTargetOnLine(this._internalDocument,e,o.TRAILING_SPACES_REGEXP);i&&this._document.deleteText(e,i.start,e,i.end)},_removeLeadingSpaces:function(e){var i=t.getRangeAndTextOfTargetOnLine(this._internalDocument,e,o.LEADING_SPACES_REGEXP);i&&this._document.deleteText(e,i.start,e,i.end)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(400),i(1877),i(4788)],o=i.dj.d(n,(function(e,t,i,n){"use strict";var o,r,a,s,l=["data-cursor","cols","rows"],c=["accent","accentunder","bevelled","stretchy"],d=["alpha","beta","gamma","delta","epsilon","varepsilon","zeta","eta","theta","vartheta","iota","kappa","lambda","mu","nu","xi","omicron","pi","varpi","rho","varrho","sigma","varsigma","tau","upsilon","phi","varphi","chi","psi","omega","Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta","Theta","Iota","Kappa","Lambda","Mu","Nu","Xi","Omicron","Pi","Rho","Sigma","Tau","Upsilon","Phi","Chi","Psi","Omega","pm","mp","times","div","cdot","ast","star","dagger","ddagger","amalg","cap","cup","uplus","sqcap","sqcup",["vee","lor"],["wedge","land"],"setminus","wr","circ","bullet","oslash","odot","bigcirc","bigtriangleup","bigtriangledown","triangleleft","triangleright","oplus","ominus","otimes",["bot","uptack"],["top","downtack"],["sumop","sum"],["prodop","prod"],"intop",["ointop","contourintop"],"biguplus","bigoplus","bigvee","bigcap","bigotimes","bigwedge","bigcup","bigodot","bigsqcup",["lt","<"],["gt",">"],"leq","geq","ll","gg","neq","doteq","sim","simeq","approx",["asymp","asympeq"],"cong","equiv","subset","supset","subseteq","supseteq","sqsubseteq","sqsupseteq","in","ni","notin","models","vdash","dashv","perp","mid","parallel","propto","bowtie","prec","preceq","succ","succeq","notlt","notgt","notleq","notgeq","notequiv","notapprox","notcong","notsim","notsimeq","notmodels","notni","notsucc","notsucceq","notprec","notpreceq","notparallel","notsubset","notsupset","notsubseteq","notsupseteq","leftarrow","rightarrow","uparrow","Leftarrow","Rightarrow","Uparrow","longleftarrow","longrightarrow","downarrow","Longleftarrow","Longrightarrow","Downarrow","hookleftarrow","hookrightarrow","updownarrow","leftharpoondown","rightharpoondown","Updownarrow","leftharpoonup","rightharpoonup","leftrightarrow","swarrow","nearrow","Leftrightarrow","nwarrow","searrow","longleftrightarrow","mapsto","longmapsto","Longleftrightarrow",["lbrace","braceleft"],["rbrace","braceright"],["vert","verticalbar"],["lbrack","bracketleft"],["rbrack","bracketright"],["Vert","dblverticalbar"],["langle","anglebracketleft"],["rangle","anglebracketright"],"backslash",["lceil","ceilleft"],["rceil","ceilright"],["lfloor","floorleft"],["rfloor","floorright"],"aleph","infty","forall","wp","nabla","exists","angle","partial","emptyset","triangle","Im","imath","hbar","Re","jmath","prime","ldots","ell",["colon","colonPunct"],"cdots","neg","ddots","surd","ldotp","vdots",["to","rightarrow"],["gets","leftarrow"]];function u(t){var i={};return e.forEach(t.attributes,(function(e){l.indexOf(e.nodeName)>=0?i[e.nodeName]=parseInt(e.nodeValue,10):c.indexOf(e.nodeName)>=0?i[e.nodeName]="true"===e.nodeValue:i[e.nodeName]=e.nodeValue})),i}function h(t){var i=e.filter(t.childNodes,(function(e){return"#text"!==e.nodeName}));return i=e.map(i,h),[t.nodeName,u(t),i]}function p(e,t,i){return[e,t,i=i||[]]}function f(e,t){for(var i=[],n=0;n<e;n+=1)for(var r=0;r<t;r+=1)i.push(p("MathRow",{"data-cursor":r+n*e,"data-category":"placeholder"}));var a=p("MathMatrix",{"data-category":"structure-part",rows:e,cols:t},i),s=p("MathDelimiter",{symbolName:"bracketleft","data-category":"static"}),l=p("MathDelimiter",{symbolName:"bracketright","data-category":"static"}),c=p("MathRow",{"data-category":"structure"},[s,a,l]),d={id:"matrix"+e+"x"+t};1===e&&1===t&&(d["command-id"]="matrix,matrix1x1"),o.push({attributes:d,template:c})}function g(){return o||(o=function(){for(var e=[],t=(new i).parseString(n).documentElement.firstElementChild;t;){var o=u(t),r=h(t.firstElementChild);e.push({attributes:o,template:r}),t=t.nextElementSibling}return e}(),d.forEach((function(e){var i=e;e instanceof Array&&(i=e[0],e=e[1]);var n={id:i},r={kind:"symbol",symbolName:e,"data-category":"structure"};t.isStretchyOperatorByDefault(e)&&(r.stretchy=!1);var a=p("MathText",r);o.push({attributes:n,template:a})})),function(e,t){for(var i=0;i<e;i+=1)for(var n=0;n<t;n+=1)f(i+1,n+1)}(10,10)),o}function m(){return a||(a={},s=[],g().forEach((function(e){e.attributes.hasOwnProperty("command-id")?e.attributes["command-id"].split(",").forEach((function(t){a[t]=e,s.push(t)})):(a[e.attributes.id]=e,s.push(e.attributes.id))}))),a}return{getById:function(){return r||(r={},g().forEach((function(e){e.attributes.id&&(r[e.attributes.id]=e)}))),r},getByCommandId:m,getCommands:function(){return a||m(),s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231)],o=i.dj.d(n,(function(e){var t=/`[^`]+`|\|[^|]+\|/g,i=/\*[^*]+\*/g;return{DOWN_EVENT:window.PointerEvent?"pointerdown":"mousedown",UP_EVENT:window.PointerEvent?"pointerup":"mouseup",LIVE_APP_LINE_WIDGET_CSS:"liveAppLineWidget",CODE_STYLE_CSS:"liveAppCodeStyle",HIGHLIGHT_STYLE_CSS:"liveAppHighlightStyle",UIFIGURE_INIT_CSS:"uifigureInit",ERROR_INIT_CSS:"errorInit",TABBABLE_ELEMENTS_CSS:'button,[href],input:not([type="hidden"]):not([disabled]):not([readonly]),select,textarea,[tabindex]:not([tabindex="-1"])',SCROLLABLE_CSS:"gbtScrollable-on",getDecoratedDomFragment:function(e){var n=document.createDocumentFragment();if(!e)return n;n.textContent=e;var o=this._getRangesInDomNode(n.firstChild,t,e),r=this._getRangesInDomNode(n.firstChild,i,e);return o.forEach(this._decorateForAppOperationOnRange.bind(this,this.CODE_STYLE_CSS)),r.forEach(this._decorateForAppOperationOnRange.bind(this,this.HIGHLIGHT_STYLE_CSS)),this._removeEmptyNode(n),n},_removeEmptyNode:function(e){for(var t=[],i=0;i<e.childNodes.length;i+=1){var n=e.childNodes[i];n.textContent||t.push(n)}t.forEach((function(e){e.parentNode.removeChild(e)}))},_getRangesInDomNode:function(e,t,i){var n;t=new RegExp(t);for(var o=[];n=t.exec(i);){var r=document.createRange();r.setStart(e,n.index),r.setEnd(e,n.index+n[0].length),o.push(r)}return o},_decorateForAppOperationOnRange:function(e,t){if(!t.collapsed){var i=document.createElement("span");i.classList.add(e),t.surroundContents(i),i.firstChild.textContent=i.firstChild.textContent.slice(1),i.lastChild.textContent=i.lastChild.textContent.slice(0,-1)}},addEventListenerWithHandle:function(e,t,i,n){return e.addEventListener(t,i,n),{remove:function(){e.removeEventListener(t,i,n)}}},addNodeListToArray:function(e,t){for(var i=0;i<e.length;i+=1)t.push(e[i])},getCoordinatesOfWidget:function(e,t){return t.getCoordinateForDomNode(e.getWidget().domNode)},getEnclosingLiveAppLineWidget:function(t){for(var i=e.getEnclosingWidget(t);i;){if(i.domNode.classList.contains(this.LIVE_APP_LINE_WIDGET_CSS))return i;i=i.getParent()}return null},hasScrollableElementInHierarchy:function(e,t){if(!e.contains(t.target))return!1;for(var i=!1,n=t.target;n!==e;){if(n.classList.contains(this.SCROLLABLE_CSS)&&(Math.abs(t.deltaY)>0&&n.scrollHeight>n.clientHeight||Math.abs(t.deltaX)>0&&n.scrollWidth>n.clientWidth)){i=!0;break}n=n.parentNode}return i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1096),i(1993)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{getApplicableNodeClass:function(){return i},unpack:function(e){return new(this.getApplicableNodeClass())(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{MATLAB:"codeexample_matlab",PLAIN:"codeexample_plain"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2091),i(949),i(1476),i(627)],o=i.dj.d(n,(function(e,t,i,n){return{INTERNAL:"internal:",FILE_EXPRESSION:/((\\){1}$)|((\/){1}$)|(.*[*?"'<>|].*)/,FILE_PATH_DETECTION:/^(?:[\w]\:|\\|\/|.\/|..\/).*/g,_nextContainer:function(e){if(e.isTextContainerNode()||e.isRootContainer()){var t=e.firstChild();if(t&&t.isTextContainerNode())return t;var i=e.nextSibling();if(i)return i;if(e.parent.isRootNode())return null;var n=e.parent.nextSibling();return n||null}},getNodeForInternalUrl:function(e,t){if(0===t.indexOf(this.INTERNAL)){var i=t.substring(this.INTERNAL.length);return this.getNodeForAnchorId(e,i)}return null},getNodeForAnchorId:function(e,t){for(var i=e.children[0];i;){if(i.anchorId&&i.anchorId===t)return i;i=this._nextContainer(i)}return null},getPossibleTarget:function(e){var t=e.groupingName;if(t)for(var i=e.previousSibling();i&&i.groupingName===t;)i=(e=i).previousSibling();return e},isFileHyperlinkValid:function(e){return!(e&&e.match(this.FILE_EXPRESSION))},findPreviousContainer:function(e,t){var i=e.previousSibling();i||(i=t.root.children[t.root.children.length-1]);var n=i.groupingName;if(i.groupingName){for(;i&&i.groupingName===n;)i=i.previousSibling();return i?i.nextSibling():t.root.children[0]}return i},prepareHyperReference:function(o,r){let a,s=n.getFilePathFromOpenCommand(o);if(!s&&this.isFileURL(o)&&(s=o),!o||s||r)a=!s&&r?new e(o,t.TARGET.INTERNAL,r):s?new e(s,t.TARGET.FILE,r):!o.startsWith("matlab:")||s||r?new e("about:blank<>",t.TARGET.WEB):new e(o,t.TARGET.MATLAB);else{const n=i.sanitizeUrl(o);a=new e(n.newURL,t.TARGET.WEB)}return a},isFileURL:function(e){return e&&e.match(this.FILE_PATH_DETECTION)},appendMatlabOpenForFilePath:function(e){return this.isFileURL(e)?n.FILE_OPEN_COMMAND+"('"+e+"')":e},findNextContainer:function(e,t){var i=e,n=i.groupingName;if(i.groupingName)for(;i&&i.groupingName===n;)i=i.nextSibling();else i=i.nextSibling();return i||(i=t.root.children[0]),i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5952)],o=i.dj.d(n,(function(e,t){return e([],{layoutStrategyMap:t,enableResizeInCell:!0,getPropertiesTriggeringRelayout:function(){return{primary:[],secondary:[]}},needsServerSideUpdate:function(){return!0},_LayoutConstraints:function(e){this.strategy=this.layoutStrategyMap[e.Type],this.strategy&&this.strategy.setLayoutConstraints(this,e)},setLayoutConstraints:function(e){this._LayoutConstraints(e)},_Position:function(e){(void 0===this.strategy||this.strategy.allowPositionSetFromServer)&&this.inherited(arguments)},setLayoutStrategyMap:function(e){this.layoutStrategyMap=e},setGridController:function(e){},setProperties:function(e){var t=this.getPropertiesTriggeringRelayout().primary,i=this.getPropertiesTriggeringRelayout().secondary,n=t.concat(i);this._arePropertyNamesPresent(e,t)?(this.enableResizeInCell=!1,this.inherited(arguments),this.enableResizeInCell=!0):this.inherited(arguments),this.enableResizeInCell&&this._arePropertyNamesPresent(e,n)&&this.triggerResizeInCell()},triggerResizeInCell:function(){void 0!==this.strategy&&this.strategy.sizeViewInCell(this)},fillCell:function(e){throw new Error("Must be implemented by subclasses")},handleLayoutContainerChanged:function(){this.triggerResizeInCell()},handleTrackSizeChanged:function(){if(void 0!==this.strategy){var e=this.getPeerNode().getProperty("LayoutConstraints");this.strategy.applyCSS(this,this.getTopLevelNode(),e)}},getGridWidget:function(){return this.getParentController().widget},getGridController:function(){return this.getParentController()},getLayoutConstraints:function(){return void 0!==this.getPeerNode()?this.getPeerNode().getProperty("LayoutConstraints"):null},getTopLevelNode:function(){var e;if(this.getComponentDomNode)e=this.getComponentDomNode();else if(this.requiresWrapperNodeInLayoutContainer)e=this.widget.domNode.parentElement;else{if(!this.widget)throw new Error("Expected to have a VC wrapper or a widget");e=this.widget.domNode}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6091)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){this._requestHandler=null,this._peerID=e,this._gview=t},isLayoutable:function(){return!1},isTextControl:function(){return!1},isValidControl:function(){return!0},postCreate:function(){},cleanUp:function(){},process:function(e){return e.peerID=this._peerID,this._requestHandler(e)},processMessage:function(e){},setRequestHandlerCallback:function(e){this._requestHandler=e},clearCache:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(563)],o=i.dj.d(n,(function(e){return{THROTTLE_DELAY:200,throttle:e.throttle}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(230)],o=i.dj.d(n,(function(e,t,i){var n=e([],{_resizeListener:null,startEmittingCommonResizeEvent:function(e){if(e=e||this,!this._resizeListener){var t=this._getListenerByContainer(e);t&&(e.getPeerNode().addEventListener("peerEvent",t,this),this._resizeListener=t)}},stopEmittingCommonResizeEvent:function(e){e=e||this,this._resizeListener&&(e.getPeerNode().removeEventListener("peerEvent",this._resizeListener,this),this._resizeListener=null)},_getListenerByContainer:function(e){var t;switch(e.getPeerNode().getType()){case"matlab.ui.Figure":t=this._figureResizeListener.bind(this,e);break;case"matlab.ui.container.Tab":t=this._tabResizeListener.bind(this,e);break;case"matlab.ui.container.internal.UIContainer":case"matlab.ui.container.Panel":case"matlab.ui.container.ButtonGroup":case"matlab.ui.container.internal.Accordion":case"matlab.ui.container.internal.AccordionPanel":t=this._panelInsetsChangedListener.bind(this,e),this._addSizeChangedEventListener(e)}return t},_addSizeChangedEventListener:function(e){this.own(t(e,"sizechangedevent",function(e,t){var i=t.innerSize;this.emitContainerResizeControllerEvent(e,i)}.bind(this,e)))},_figureResizeListener:function(e,t){if("positionChangedEvent"===t.data.Name){var i=[t.data.width,t.data.height];this.emitContainerResizeControllerEvent(e,i)}},_tabResizeListener:function(e,t){if("positionChangedEvent"===t.data.Name){var i=t.data.valuesInUnits.OuterPosition.Value,n=[i[2],i[3]];this.emitContainerResizeControllerEvent(e,n)}},_panelInsetsChangedListener:function(e,t){if("insetsChangedEvent"===t.data.Name){var i=t.data.valuesInUnits.InnerPosition.Value,n=[i[2],i[3]];this.emitContainerResizeControllerEvent(e,n)}},emitContainerResizeControllerEvent:function(e,t){e.emit("containerClientAreaSizeChanged",t)}});return n.CONTAINER_RESIZE_EVENT_NAME="containerClientAreaSizeChanged",n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({MOUSE_LEFT_BUTTON:0,MOUSE_MIDDLE_BUTTON:1,MOUSE_RIGHT_BUTTON:2})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(327),i(6202),i(429),i(267),i(1176)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";var s=0;var l=function(e){return e.length>0},c=function(e){return e.dataIndex>=0},d=function(e){return"px"===e.width.unit||"%"===e.width.unit&&!e.parentId||""===e.width.unit||!e.width.value&&!e.width.unit};return function(){function u(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u)}return a(u,null,[{key:"getLevelsOfHeaders",value:function(){return s}},{key:"parseViewModelWithConfig",value:function(t){var i=t.columnModel,n=void 0===i?{}:i,o=t.viewModel,a=void 0===o?{}:o,s=t.attributes,l=void 0===s?{}:s,c=e.alt(u.initializeConfiguredHeaders,(function(){return{columns:[]}}),{columnConfig:n.columnConfig}),d=c.spanning,h=c.columns||[],p=u.validateColPct(h),f=r(p,2),g=f[0];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments[2];t>-1&&(e[t].width.value+=i)}(h,f[1],g),a.setColumnHeaders(h),a.setSpanningHeaders(d),u.setAttributes(a,l),a}},{key:"enoughColumnsToPage",value:function(e){return e>=i.buffers.UNPAGED_COL_LIMIT}},{key:"notEnoughColumnsToPage",value:function(e){return!u.enoughColumnsToPage(e)}},{key:"parseHeaderConfig",value:function(e,i){var n=e.label,o=void 0===n?null:n,r=e.dataIndex,a=void 0===r?-1:r,s=e.width,l=void 0===s?{}:s,u=e.renderer,h=void 0===u?null:u,p=e.editor,f=void 0===p?null:p,g=e.interactiveRenderer,m=void 0===g?null:g,_=e.sortType,v=void 0===_?"":_,b=e.hidden,y=void 0!==b&&b,C=e.hideable,T=void 0===C||C,E=e.columnId,S=void 0===E?null:E,w=e.headerMenu,I=void 0!==w&&w,A=e.headerRenderer,x=void 0===A?null:A,N=e.headerEditor,L=void 0===N?null:N,D=e.parentId,M=void 0===D?void 0:D,P=e.colStartIndex,O=void 0===P?-1:P,R=e.colEndIndex,k=void 0===R?-1:R;m&&(f=null,h=null);var F={label:o,dataIndex:a,width:l,renderer:h,editor:f,interactiveRenderer:m,sortType:v,hidden:y,hideable:T,columnId:null!==S?S.toString():i.toString(),headerMenu:I,headerRenderer:x,headerEditor:L,colStartIndex:O,colEndIndex:k,parentId:M};return t.fromType(c,F).filter(d).orElse(null)}},{key:"initializeConfiguredHeaders",value:function(e){var i=e.columnConfig,n=function e(t,i,n){var o={columns:[],spanningConfig:[]},r={generatedId:n};if(t.children){if(s+=1,void 0!==i){var a=t.label,l=t.columnId,c=t.headerEditor,d=t.headerRenderer,u=t.sortType,h=t.headerMenu,p=t.groupLength,f=t.colStartIndex,g=t.colEndIndex,m=void 0===n?"."+i:n+"."+i;r={generatedId:l||m,columnId:l||m,label:a,parentId:n,headerEditor:c,headerRenderer:d,sortType:u,headerMenu:h,groupLength:p,colStartIndex:f,colEndIndex:g},o.spanningConfig.push(r)}t.children.forEach((function(t,i){var n=e(t,i,r.generatedId);o.columns=o.columns.concat(n.columns),o.spanningConfig=o.spanningConfig.concat(n.spanningConfig)}))}else t.parentId=n,o.columns=[t];return o}({children:void 0===i?[]:i});return{spanning:function(e){for(var t={},i=0;i<e.length;i+=1){var n=e[i],o=n.label,r=n.parentId,a=n.columnId,s=n.headerRenderer,l=n.headerEditor,c=n.sortType,d=n.headerMenu,u=n.groupLength,h=n.colStartIndex,p=n.colEndIndex;t[n.generatedId]={label:o,parentId:r,columnId:a,headerRenderer:s,headerEditor:l,sortType:c,headerMenu:d,groupLength:u,colStartIndex:h,colEndIndex:p}}return t}(n.spanningConfig),columns:t.fromType(l,n.columns).chain((function(e){return e.map(u.parseHeaderConfig)})).chain((function(e){return e.filter((function(e){return e}))})).orElse(null)}}},{key:"validateColPct",value:function(e){var t=0,i=0,n=-1;e.forEach((function(e,o){if(e.width&&u.validateGeoVal(e.width,"%")){var r=Math.abs(e.width.value);t+=r,r>i&&(n=o,i=r)}}));var o=100-t;return o<1&&(n=-1),[o,n]}},{key:"getTbodyHeaderClass",value:function(e){return e?"mw-tbody-all-columns":"mw-tbody-paged-columns"}},{key:"getTableHeaderClass",value:function(e){return e?"":"mw-table-paged-columns"}},{key:"getPercentColumnPageWidth",value:function(t){var i=t.headers,n=void 0===i?[]:i,o=t.allColumnsRendered;return void 0!==o&&o&&e.find(n,(function(e){if(e.width)return"%"===e.width.unit}))?"100%":null}},{key:"validateGeoVal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value,i=e.unit,n=arguments[1];return!(isNaN(parseFloat(t))||t===1/0||n&&i!==n)}},{key:"validateForNaturalNumber",value:function(e){if(!function(){if(void 0!==e){if("number"!=typeof e)return!1;if(!Number.isInteger(e))return!1;if(e<=0)return!1}return!0}())throw new Error("Error: Invalid numberOfGutters option, numberOfGutters should be a natural number")}},{key:"setAttributes",value:function(e,t){function r(t,n){n=Math.max(i.dimensions.ABSOLUTE_MIN,n),u.validateGeoVal({value:n})&&e.setState(t,n)}function a(t,i){o.hasOwnProperty(i)&&e.setState(t,i)}function s(t,i){e.setState(t,i)}function l(t,i){e.setState(t,i)}function c(t,i){e.setState(t,i)}function d(t,i){u.validateForNaturalNumber(i),e.setState(t,i)}for(var h=function(e){switch(e){case"minColWidth":return r.bind(this,n.COL_WIDTH);case"minRowHeight":return r.bind(this,n.ROW_HEIGHT);case"gridStyle":return a.bind(this,n.protected.GRID_STYLE);case"groupedColumns":return c.bind(this,n.protected.GROUPED_COLUMN_HEADERS);case"numberOfGutters":return d.bind(this,"numberOfGutters");case"useEditorRendererDataFields":return s.bind(this,n.protected.USE_DATA_FIELDS);case"resizeSelection":return l.bind(this,n.protected.RESIZE_SELECTION);default:return function(e){return e}}},p=Object.keys(t),f=p.length,g=void 0,m=0;m<f;m++)h(g=p[m])(t[g])}}]),u}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6305),i(844)],o=i.dj.d(n,(function(e,t){return{ClassTypeMap:(i={},i[e.DOUBLE]=t.MATRIX,i[e.SINGLE]=t.MATRIX,i[e.UINT8]=t.MATRIX,i[e.UINT16]=t.MATRIX,i[e.UINT32]=t.MATRIX,i[e.UINT64]=t.MATRIX,i[e.INT8]=t.MATRIX,i[e.INT16]=t.MATRIX,i[e.INT32]=t.MATRIX,i[e.INT64]=t.MATRIX,i[e.HALF]=t.MATRIX,i[e.COMPLEX]=t.MATRIX,i[e.CHAR]=t.CHAR,i[e.STRING]=t.STRING,i[e.CELL]=t.CELL,i[e.LOGICAL]=t.LOGICAL,i[e.STRUCT]=t.STRUCT,i[e.TIMESERIES]=t.TIMESERIES,i[e.TIMETABLE]=t.TIMETABLE,i[e.SPARSE]=t.SPARSE,i[e.DATETIME]=t.DATETIME,i[e.DURATION]=t.DURATION,i[e.CALENDAR_DURATION]=t.CALENDAR_DURATION,i[e.OBJECT]=t.OBJECT,i[e.TALL]=t.TALL,i[e.TALL_DOUBLE]=t.TALL_MATRIX,i[e.TALL_UINT8]=t.TALL_MATRIX,i[e.TALL_UINT16]=t.TALL_MATRIX,i[e.TALL_UINT32]=t.TALL_MATRIX,i[e.TALL_UINT64]=t.TALL_MATRIX,i[e.TALL_INT8]=t.TALL_MATRIX,i[e.TALL_INT16]=t.TALL_MATRIX,i[e.TALL_INT32]=t.TALL_MATRIX,i[e.TALL_INT64]=t.TALL_MATRIX,i[e.TALL_SINGLE]=t.TALL_MATRIX,i[e.TALL_HALF]=t.TALL_MATRIX,i[e.TALL_CELL]=t.TALL_CELL,i[e.TALL_LOGICAL]=t.TALL_LOGICAL,i[e.TALL_OBJECT]=t.TALL_OBJECT,i[e.TALL_SPARSE]=t.TALL_SPARSE,i[e.TALL_CHAR]=t.TALL_CHAR,i[e.TALL_STRUCT]=t.TALL_STRUCT,i[e.TALL_TIMETABLE]=t.TALL_TIMETABLE,i[e.TALL_MATLAB_TABLE]=t.TALL_MATLAB_TABLE,i[e.TALL_CATEGORICAL]=t.TALL_CATEGORICAL,i[e.TALL_ORDINAL]=t.TALL_CATEGORICAL,i[e.TALL_NOMINAL]=t.TALL_CATEGORICAL,i[e.TALL_DATETIME]=t.TALL_DATETIME,i[e.TALL_DURATION]=t.TALL_DURATION,i[e.TALL_CALENDAR_DURATION]=t.TALL_CALENDAR_DURATION,i[e.TALL_STRING]=t.TALL_STRING,i[e.MIXED]=t.MIXED,i[e.UNKNOWN]=t.OBJECT,i[e.DEFAULT]=t.OBJECT,i[e.NOVARDISPLAY]=t.NOVARDISPLAY,i),IconTypeMap:function(){var i={};return i[e.DOUBLE]=t.MATRIX_ICON,i[e.SINGLE]=t.MATRIX_ICON,i[e.UINT8]=t.MATRIX_ICON,i[e.UINT16]=t.MATRIX_ICON,i[e.UINT32]=t.MATRIX_ICON,i[e.UINT64]=t.MATRIX_ICON,i[e.INT8]=t.MATRIX_ICON,i[e.INT16]=t.MATRIX_ICON,i[e.INT32]=t.MATRIX_ICON,i[e.INT64]=t.MATRIX_ICON,i[e.HALF]=t.MATRIX_ICON,i[e.COMPLEX]=t.MATRIX_ICON,i[e.CHAR]=t.CHAR_ICON,i[e.STRING]=t.STRING_ICON,i[e.CELL]=t.CELL_ICON,i[e.LOGICAL]=t.LOGICAL_ICON,i[e.STRUCT]=t.STRUCT_ICON,i[e.TIMESERIES]=t.TIMESERIES_ICON,i[e.TIMETABLE]=t.TIMETABLE_ICON,i[e.SPARSE]=t.SPARSE_ICON,i[e.OBJECT]=t.OBJECT_ICON,i[e.MATLAB_TABLE]=t.TABLE_ICON,i[e.DATASET]=t.TABLE_ICON,i[e.CATEGORICAL]=t.CATEGORICAL_ICON,i[e.ORDINAL]=t.CATEGORICAL_ICON,i[e.NOMINAL]=t.CATEGORICAL_ICON,i[e.DATETIME]=t.DATETIME_ICON,i[e.DURATION]=t.DURATION_ICON,i[e.CALENDAR_DURATION]=t.CALENDAR_DURATION_ICON,i[e.TALL]=t.TALL_ICON,i[e.TALL_DOUBLE]=t.TALL_MATRIX_ICON,i[e.TALL_UINT8]=t.TALL_MATRIX_ICON,i[e.TALL_UINT16]=t.TALL_MATRIX_ICON,i[e.TALL_UINT32]=t.TALL_MATRIX_ICON,i[e.TALL_UINT64]=t.TALL_MATRIX_ICON,i[e.TALL_INT8]=t.TALL_MATRIX_ICON,i[e.TALL_INT16]=t.TALL_MATRIX_ICON,i[e.TALL_INT32]=t.TALL_MATRIX_ICON,i[e.TALL_INT64]=t.TALL_MATRIX_ICON,i[e.TALL_SINGLE]=t.TALL_MATRIX_ICON,i[e.TALL_HALF]=t.TALL_MATRIX_ICON,i[e.TALL_CELL]=t.TALL_CELL_ICON,i[e.TALL_LOGICAL]=t.TALL_LOGICAL_ICON,i[e.TALL_OBJECT]=t.TALL_OBJECT_ICON,i[e.TALL_SPARSE]=t.TALL_SPARSE_ICON,i[e.TALL_CHAR]=t.TALL_CHAR_ICON,i[e.TALL_STRUCT]=t.TALL_STRUCT_ICON,i[e.TALL_TIMETABLE]=t.TALL_TIMETABLE_ICON,i[e.TALL_MATLAB_TABLE]=t.TALL_MATLAB_TABLE_ICON,i[e.TALL_CATEGORICAL]=t.TALL_CATEGORICAL_ICON,i[e.TALL_DATETIME]=t.TALL_DATETIME_ICON,i[e.TALL_DURATION]=t.TALL_DURATION_ICON,i[e.TALL_CALENDAR_DURATION]=t.TALL_CALENDAR_DURATION_ICON,i[e.TALL_STRING]=t.TALL_STRING_ICON,i[e.TALL_ORDINAL]=t.TALL_CATEGORICAL_ICON,i[e.TALL_NOMINAL]=t.TALL_CATEGORICAL_ICON,i[e.MIXED]=t.MIXED_ICON,i[e.UNKNOWN]=t.OBJECT_ICON,i[e.DEFAULT]=t.OBJECT_ICON,i[e.NOVARDISPLAY]=t.NOVARDISPLAY_ICON,i}(),ClassArray:function(){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(t[i]);return e}()};var i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{COMPONENT:"component",CONTAINER:"container",SEPARATOR:"separator"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";function e(e){this.adaptor=e.adaptor,Object.defineProperty(this,"emits",{get:function(){return[]}}),this.exposedAPI=function(){return{setRowHeight:this.setRowHeight.bind(this),setColumnWidth:this.setColumnWidth.bind(this)}},this.setRowHeight=function(e){this.adaptor.setDefaultRowHeight(e)},this.setColumnWidth=function(e){this.adaptor.setDefaultColumnWidth(e)}}return e.prototype.constructor=e,Object.defineProperty(e,"adaptor",{get:function(){return"SizingAdaptor"}}),e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(210),i(983),i(1189)],o=i.dj.d(n,(function(e,t,i,n,o){return t("rendererseditors.mwTableRenderers.TextRenderer",[o,n],{getTooltipValue:function(e){var t=this.getParsedDataValue(e);return t.hasOwnProperty("value")?t.value:t},getValueDomNode:function(t){var i=document.createElement("div"),n=t.hasOwnProperty("value")?t.value:t;return this.addAlignment(i),n=e.formatString(n,{escapeSpace:!0}),i.textContent=n,this._updateDomClass(i,t),i},_updateDomClass:function(t,n){var o=["TextRenderer"];if(n.isMetaData&&o.push("MetaData"),n.hasOwnProperty("editable")){var r=n.editable;if(e.isValid(r)){var a=n.editable?"editable":"notEditable";o.push(a)}}i.add(t,o)},getParsedDataValue:function(e){try{return JSON.parse(e)}catch(t){return e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(239)],o=i.dj.d(n,(function(e){var t=function(e,t){return 0!==e.length&&e.every((function(e){return e.end===1/0||0===e.start&&e.end-e.start+1>=t}))},i=function(e){return e.length>1||e.some((function(e){return e.end-e.start+1>1}))};return{isEmptySelection:function(e){return 0===e.selectedRows.length&&0===e.selectedColumns.length},isSingleColumnSelection:function(e,t){return 1===e.selectedColumns.length&&(e.selectedRows[0].count>=t||e.selectedRows[0].end===1/0)&&e.selectedColumns[0].start===e.selectedColumns[0].end},isColumnSelection:function(e,i){return t(e.selectedRows,i)},isRowSelection:function(e,i){return t(e.selectedColumns,i)},isConsecutiveColumnSelection:function(e,t){var i=e.selectedColumns;return 1===i.length&&i[0].end>i[0].start&&this.isColumnSelection(e,t)},populateRangeCount:function(e){e.forEach((function(e){e.count=e.count||e.end-e.start+1}))},convertPlaidSelectionToRange:function(t){var i=[];return t.selectedRows.forEach((function(n){t.selectedColumns.forEach((function(t){i.push(e.range().setRows(n.start,n.end).setColumns(t.start,t.end))}),this)}),this),i},hasMultipleRows:function(e){return i(e.selectedRows)},hasMultipleColumns:function(e){return i(e.selectedColumns)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{type:null,primitiveProperties:[],nodeProperties:[],constructor:function(){},serialize:function(e){const t={type:this.type};return e.writeIntoStates(t,this,this.primitiveProperties,this.nodeProperties),t},deserialize:function(e,t){t.loadFromStates(e,this,this.primitiveProperties,this.nodeProperties)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{INSERT_CHILDREN:0,REMOVE_CHILDREN:1,REPLACE_TEXT:2,UPDATE_ATTRIBUTES:3,SET_CURSOR:4,NODE_CHANGE:5}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7193),i(7194),i(7195),i(7196)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/FontsPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{KEYWORD:"keyword",STRING:"string",COMMENT:"comment",ERROR:"error"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(430)],o=i.dj.d(n,(function(e,t){e.add("dom-contains",(function(e,t,i){return!!i.contains}));var i,n,o,r=[],a=/([^A-Za-z0-9_\u00A0-\uFFFF-])/g;var s={defaultDelay:15,throttle:function(e,t,i){var n=!1;return i=i||s.defaultDelay,function(){n||(n=!0,e.apply(t,arguments),setTimeout((function(){n=!1}),i))}},throttleDelayed:function(e,t,i){var n=!1;return i=i||s.defaultDelay,function(){if(!n){n=!0;var o=arguments;setTimeout((function(){n=!1,e.apply(t,o)}),i)}}},debounce:function(e,t,i){var n;return i=i||s.defaultDelay,function(){n&&(clearTimeout(n),n=null);var o=arguments;n=setTimeout((function(){e.apply(t,o)}),i)}},each:function(e,t,i){var n,o;if(e)if("number"==typeof e.length)for(n=0,o=e.length;n<o;n++)t.call(i,e[n],n,e);else for(n in e)t.call(i,e[n],n,e)},contains:function(t,i){return e("dom-contains")?t.contains(i):8&t.compareDocumentPosition(i)},addCssRule:function(e,a){i||(i=(i=t(document.getElementsByTagName("head")[0],"style")).sheet||i.styleSheet,n=i.deleteRule?"deleteRule":"removeRule",o=i.cssRules?"cssRules":"rules");var s=r.length;return r[s]=(i.cssRules||i.rules).length,i.addRule?i.addRule(e,a):i.insertRule(e+"{"+a+"}",r[s]),{get:function(e){return i[o][r[s]].style[e]},set:function(e,t){void 0!==r[s]&&(i[o][r[s]].style[e]=t)},remove:function(){!function(e){var t,o,a=r[e];if(void 0!==a)for(i[n](a),r[e]=void 0,t=e+1,o=r.length;t<o;t++)r[t]>a&&r[t]--}(s)}}},escapeCssIdentifier:function(e,t){return"string"==typeof e?e.replace(a,t||"\\$1"):e}};return s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(206),i(204),i(221),i(430),i(2487),i(749),i(306),i(445)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c={checkbox:1,radio:1,button:1},d=/\bdgrid-cell\b/,u=/\bdgrid-row\b/,h=a.pointer,p=a.MSPointer,f=h?h+(p?"Down":"down"):"mousedown",g=e(null,{pageSkip:10,tabIndex:0,keyMap:null,headerKeyMap:null,postMixInProperties:function(){this.inherited(arguments),this.keyMap||(this.keyMap=n.mixin({},g.defaultKeyMap)),this.headerKeyMap||(this.headerKeyMap=n.mixin({},g.defaultHeaderKeyMap))},postCreate:function(){this.inherited(arguments);var e=this;function n(e){var t=e.target;return t.type&&(!c[t.type]||32==e.keyCode)}function o(o){var r=e.cellNavigation,a=r?d:u,c=o===e.headerNode,h=o;function p(){if(e._focusedHeaderNode&&(e._focusedHeaderNode.tabIndex=-1),e.showHeader){if(r){for(var t,i=0,n=e.headerNode.getElementsByTagName("th");t=n[i];++i)if(a.test(t.className)){e._focusedHeaderNode=h=t;break}}else e._focusedHeaderNode=h=e.headerNode;h&&(h.tabIndex=e.tabIndex)}}c?(p(),t.after(e,"renderHeader",p,!0)):t.after(e,"renderArray",(function(t){return l.when(t,(function(t){var i=e._focusedNode||h;if(a.test(i.className)&&s.contains(o,i))return t;for(var n,r=0,l=o.getElementsByTagName("*");n=l[r];++r)if(a.test(n.className)){i=e._focusedNode=n;break}return i.tabIndex=e.tabIndex,t}))})),e._listeners.push(i(o,f,(function(t){n(t)||e._focusOnNode(t.target,c,t)}))),e._listeners.push(i(o,"keydown",(function(t){if(!t.metaKey&&!t.altKey){var i=e[c?"headerKeyMap":"keyMap"][t.keyCode];i&&!n(t)&&i.call(e,t)}})))}this.tabableHeader&&(o(this.headerNode),i(this.headerNode,"dgrid-cellfocusin",(function(){e.scrollTo({x:this.scrollLeft})}))),o(this.contentNode)},removeRow:function(e){if(!this._focusedNode)return this.inherited(arguments);var t,i=this,n=document.activeElement===this._focusedNode,o=this[this.cellNavigation?"cell":"row"](this._focusedNode),r=o.row||o;(e=e.element||e)===r.element&&((t=this.down(r,!0))&&t.element!==e||(t=this.up(r,!0)),this._removedFocus={active:n,rowId:r.id,columnId:o.column&&o.column.id,siblingId:t&&t.element!==e?t.id:void 0},setTimeout((function(){i._removedFocus&&i._restoreFocus(r.id)}),0),this._focusedNode=null),this.inherited(arguments)},insertRow:function(e){var t=this.inherited(arguments);return this._removedFocus&&!this._removedFocus.wait&&this._restoreFocus(t),t},_restoreFocus:function(e){var t,i,n=this._removedFocus;if((t=(e=e&&this.row(e))&&e.element&&e.id===n.rowId?e:void 0!==n.siblingId&&this.row(n.siblingId))&&t.element){if(!t.element.parentNode.parentNode)return void(n.wait=!0);void 0!==n.columnId&&(i=this.cell(t,n.columnId))&&i.element&&(t=i),n.active&&0!==t.element.offsetHeight?this._focusOnNode(t,!1,null):(r(t.element,".dgrid-focus"),t.element.tabIndex=this.tabIndex,this._focusedNode=t.element)}delete this._removedFocus},addKeyHandler:function(e,i,n){return t.after(this[n?"headerKeyMap":"keyMap"],e,i,!0)},_focusOnNode:function(e,t,a){var s,l,c,h,p,f="_focused"+(t?"Header":"")+"Node",g=this[f],m=this.cellNavigation?"cell":"row",_=this[m](e);if(e=_&&_.element){if(this.cellNavigation)for(p=0,c=(s=e.getElementsByTagName("input")).length;p<c;p++)if((-1!=(l=s[p]).tabIndex||"_dgridLastValue"in l)&&!l.disabled){o("ie")<8&&(l.style.position="relative"),l.focus(),o("ie")<8&&(l.style.position=""),h=!0;break}null!==a&&((a=n.mixin({grid:this},a)).type&&(a.parentType=a.type),a.bubbles||(a.bubbles=!0)),g&&(r(g,"!dgrid-focus[!tabIndex]"),o("ie")<8&&(g.style.position=""),a&&(a[m]=this[m](g),i.emit(g,"dgrid-cellfocusout",a))),g=this[f]=e,a&&(a[m]=_);var v=this.cellNavigation?d:u;!h&&v.test(e.className)&&(o("ie")<8&&(e.style.position="relative"),e.tabIndex=this.tabIndex,e.focus()),r(e,".dgrid-focus"),a&&i.emit(g,"dgrid-cellfocusin",a)}},focusHeader:function(e){this._focusOnNode(e||this._focusedHeaderNode,!0)},focus:function(e){var t=e||this._focusedNode;t?this._focusOnNode(t,!1):this.contentNode.focus()}}),m=g.moveFocusVertical=function(e,t){var i=this.cellNavigation,n=this[i?"cell":"row"](e),o=i&&n.column.id,r=this.down(this._focusedNode,t,!0);i&&(r=this.cell(r,o)),this._focusOnNode(r,!1,e),e.preventDefault()},_=g.moveFocusUp=function(e){m.call(this,e,-1)},v=g.moveFocusDown=function(e){m.call(this,e,1)},b=g.moveFocusPageUp=function(e){m.call(this,e,-this.pageSkip)},y=g.moveFocusPageDown=function(e){m.call(this,e,this.pageSkip)},C=g.moveFocusHorizontal=function(e,t){if(this.cellNavigation){var i=!this.row(e),n=this["_focused"+(i?"Header":"")+"Node"];this._focusOnNode(this.right(n,t),i,e),e.preventDefault()}},T=g.moveFocusLeft=function(e){C.call(this,e,-1)},E=g.moveFocusRight=function(e){C.call(this,e,1)},S=g.moveHeaderFocusEnd=function(e,t){var i;this.cellNavigation&&(i=this.headerNode.getElementsByTagName("th"),this._focusOnNode(i[t?0:i.length-1],!0,e)),e.preventDefault()},w=g.moveHeaderFocusHome=function(e){S.call(this,e,!0)},I=g.moveFocusEnd=function(e,i){var r,a=this,s=this.cellNavigation,c=this.contentNode,d=i?0:c.scrollHeight,u=c.scrollTop+d,h=c[i?"firstChild":"lastChild"],p=h.className.indexOf("dgrid-preload")>-1,f=p?h[(i?"next":"previous")+"Sibling"]:h,g=f.offsetTop+(i?0:f.offsetHeight);if(p){for(;f&&f.className.indexOf("dgrid-row")<0;)f=f[(i?"next":"previous")+"Sibling"];if(!f)return}!p||h.offsetHeight<1?(s&&(f=this.cell(f,this.cell(e).column.id)),this._focusOnNode(f,!1,e)):(o("dom-addeventlistener")||(e=n.mixin({},e)),r=t.after(this,"renderArray",(function(t){return r.remove(),l.when(t,(function(t){var n=t[i?0:t.length-1];s&&(n=a.cell(n,a.cell(e).column.id)),a._focusOnNode(n,!1,e)}))}))),u===g&&e.preventDefault()},A=g.moveFocusHome=function(e){I.call(this,e,!0)};function x(e){e.preventDefault()}return g.defaultKeyMap={32:x,33:b,34:y,35:I,36:A,37:T,38:_,39:E,40:v},g.defaultHeaderKeyMap={32:x,35:S,36:w,37:T,39:E},g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(219),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){function r(e){let t=o.generateUuid();for(;void 0!==e[t];)t=o.generateUuid();return t}const a=new(e([i],{constructor:function(e){this._baseChannel=e.baseChannel,this._serviceStarted=!1,this._startedDeferred=void 0,this._requestsMap={},this._requestsQueue=[]},start:function(){return this._isClientStarted()||(this._startedDeferred=new t,Promise.all([n.subscribe(this._baseChannel+"/started",this._handleStarted,this),n.subscribe(this._baseChannel+"/getmatlabdrivepath",this._handleResponse,this),n.subscribe(this._baseChannel+"/isposixbackend",this._handleResponse,this),n.subscribe(this._baseChannel+"/issyncing",this._handleResponse,this),n.subscribe(this._baseChannel+"/getrecentactivitybaseurl",this._handleResponse,this),n.subscribe(this._baseChannel+"/getselfsignedcert",this._handleResponse,this),n.subscribe(this._baseChannel+"/getauthtoken",this._handleResponse,this),n.subscribe(this._baseChannel+"/getuserid",this._handleResponse,this),n.subscribe(this._baseChannel+"/getmldoembedurl",this._handleResponse,this),n.subscribe(this._baseChannel+"/viewmldo",this._handleResponse,this),n.subscribe(this._baseChannel+"/gettripwirestatus",this._handleResponse,this),n.subscribe(this._baseChannel+"/startmldc",this._handleResponse,this),n.subscribe(this._baseChannel+"/installmldc",this._handleResponse,this),n.subscribe(this._baseChannel+"/viewmldproducturl",this._handleResponse,this)]).then(function(){n.publish(this._baseChannel+"/start",{})}.bind(this))),this._startedDeferred.promise},stop:function(){this.isStarted()&&(this._startedDeferred=void 0,Promise.all([n.unsubscribe(this._baseChannel+"/started",this._handleStarted,this),n.unsubscribe(this._baseChannel+"/getmatlabdrivepath",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/isposixbackend",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/issyncing",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/getrecentactivitybaseurl",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/getselfsignedcert",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/getauthtoken",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/getuserid",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/getmldoembedurl",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/viewmldo",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/gettripwirestatus",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/startmldc",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/installmldc",this._handleResponse,this),n.unsubscribe(this._baseChannel+"/viewmldproducturl",this._handleResponse,this)]).then(function(){this._serviceStarted=!1}.bind(this)))},isStarted:function(){return this._serviceStarted},getMATLABDrivePath:function(e,t){const i=this._createRequestHandle();return n.publish(this._baseChannel+"/getmatlabdrivepath",{directCall:e,timeout:t,uuid:i.uuid}),i},isPosixBackend:function(){const e=this._createRequestHandle();return n.publish(this._baseChannel+"/isposixbackend",{uuid:e.uuid}),e},isSyncing:function(e,t){const i=this._createRequestHandle();return n.publish(this._baseChannel+"/issyncing",{uuid:i.uuid}),i},getRecentActivityBaseUrl:function(){const e=this._createRequestHandle();return n.publish(this._baseChannel+"/getrecentactivitybaseurl",{uuid:e.uuid}),e},getSelfSignedCert:function(){const e=this._createRequestHandle();return n.publish(this._baseChannel+"/getselfsignedcert",{uuid:e.uuid}),e},getAuthToken:function(){const e=this._createRequestHandle();return n.publish(this._baseChannel+"/getauthtoken",{uuid:e.uuid}),e},getMLDOEmbedURL:function(){const e=this._createRequestHandle();return n.publish(this._baseChannel+"/getmldoembedurl",{uuid:e.uuid}),e},getUserID:function(){const e=this._createRequestHandle();return n.publish(this._baseChannel+"/getuserid",{uuid:e.uuid}),e},viewMLDO:function(){const e=this._createRequestHandle();return n.publish(this._baseChannel+"/viewmldo",{uuid:e.uuid}),e},startMLDC:function(){const e=this._createRequestHandle();return n.publish(this._baseChannel+"/startmldc",{uuid:e.uuid}),e},installMLDC:function(e){const t=this._createRequestHandle();return n.publish(this._baseChannel+"/installmldc",{source:e,uuid:t.uuid}),t},getTripwireStatus:function(){const e=this._createRequestHandle();return n.publish(this._baseChannel+"/gettripwirestatus",{uuid:e.uuid}),e},viewMLDProductURL:function(){const e=this._createRequestHandle();return n.publish(this._baseChannel+"/viewmldproducturl",{uuid:e.uuid}),e},_createRequestHandle:function(){const e=new t,i={uuid:r(this._requestsMap),requestTime:new Date,deferred:e,then:e.promise.then,resolve:e.resolve};return this._requestsMap[i.uuid]=i,i},_handleResponse:function(e){this._requestsMap[e.data.uuid]&&(this._requestsMap[e.data.uuid].resolve(e.data),delete this._requestsMap[e.data.uuid])},_isClientStarted:function(){return void 0!==this._startedDeferred},_queueRequest:function(e){const i={asyncCallback:e,deferred:new t};return this._requestsQueue.push(i),i.deferred.promise},_processQueuedRequests:function(){function e(e){e.asyncCallback().then((function(t){e.deferred.resolve(t)}),(function(t){e.deferred.reject(t)}))}for(;this._requestsQueue.length>0;){e(this._requestsQueue.shift())}},_assertClientStarted:function(){if(!this._isClientStarted())throw new Error("Service is not started")},_handleStarted:function(e){this._serviceStarted=!0,this.emit(this.events.STARTED),this._processQueuedRequests(),this._startedDeferred.resolve(!0)},events:{STARTED:"started"}}))({baseChannel:"/storage/matlabdriveaccess"});return{getInstance:function(){return a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(204),i(219),i(226),i(398)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e){this._uiBuilder=e.uiBuilder,this._executionService=e.executionService,this._galleryPopulated=!1,this._commandWindow=e.commandWindow},setGalleryState:function(e){var i,n=this;this._galleryPopulated?this._setGalleryState(e):i=t.after(this,"_postPopulateGallery",(function(){i.remove(),n._setGalleryState(e)}))},_setGalleryState:function(e){e&&(this._uiBuilder.set(this._galleryId,"shouldRefresh",!1),this._uiBuilder.setGalleryState(this._galleryPopupTag,e),this._uiBuilder.set(this._galleryId,"shouldRefresh",!0)),this._uiBuilder.refreshGallery(this._galleryId)},_populateGallery:function(e){this._galleryPopulated||this._uiBuilder.set(this._galleryId,"shouldRefresh",!1)},getGalleryState:function(){return this._uiBuilder.getGalleryState(this._galleryPopupTag)},_createGalleryItem:function(e,t){return e.type=o.GALLERY_ITEM,e.parentId=t,this._uiBuilder.create(e)},_postPopulateGallery:function(){this._uiBuilder.set(this._galleryId,"displayState","normal"),this._galleryPopulated=!0,this._uiBuilder.set(this._galleryId,"shouldRefresh",!0),this._uiBuilder.refreshGallery(this._galleryId)},reset:function(){this._uiBuilder.set(this._galleryId,"shouldRefresh",!1),[this._galleryId,this._favCategoryId].forEach((function(e){this._uiBuilder.getChildrenIds(e).map(this._uiBuilder.destroy)}),this),this._uiBuilder.getChildrenIds(this._galleryPopupId).forEach((function(e){this._uiBuilder.getChildrenIds(e).map(this._uiBuilder.destroy),this._uiBuilder.destroy(e)}),this),this._uiBuilder.set(this._galleryId,"displayState","busy"),this._uiBuilder.set(this._galleryId,"textOverlay",""),this._uiBuilder.set(this._galleryId,"shouldRefresh",!1),this._galleryPopulated=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(285),i(224)],o=i.dj.d(n,(function(e,t,i,n){var o=function(e){var o=[],r=0;(e=t.delegate(e)).notify=function(e,t){r++;for(var i=o.slice(),n=0,a=i.length;n<a;n++)i[n](e,t)};var a,s=e.query;function l(t,n){var o=e[t];o&&(e[t]=function(r){var s;if("put"===t&&(s=e.getIdentity(r)),a)return o.apply(this,arguments);a=!0;try{var l=o.apply(this,arguments);return i(l,(function(e){n("object"==typeof e&&e||r,s)})),l}finally{a=!1}})}return e.query=function(a,l){l=l||{};var c=s.apply(this,arguments);if(c&&c.forEach){var d=t.mixin({},l);delete d.start,delete d.count;var u,h=e.queryEngine&&e.queryEngine(a,d),p=r,f=[];c.observe=function(t,a){1==f.push(t)&&o.push(u=function(t,o){i(c,(function(i){var s,c,d,u=i.length!=l.count;if(++p!=r)throw new Error("Query is out of date, you must observe() the query prior to any data modifications");var g,m=-1,_=-1;if(void 0!==o){var v=[].concat(i);for(h&&!t&&(v=h(i)),s=0,c=i.length;s<c;s++){var b=i[s];if(e.getIdentity(b)==o){if(v.indexOf(b)<0)continue;g=b,m=s,!h&&t||i.splice(s,1);break}}}if(h){if(t&&(h.matches?h.matches(t):h([t]).length)){var y=m>-1?m:i.length;i.splice(y,0,t),_=n.indexOf(h(i),t),i.splice(y,1),l.start&&0==_||!u&&_==i.length?_=-1:i.splice(_,0,t)}}else t&&(void 0!==o?_=m:l.start||(_=e.defaultIndex||0,i.splice(_,0,t)));if((m>-1||_>-1)&&(a||!h||m!=_)){var C=f.slice();for(s=0;d=C[s];s++)d(t||g,m,_)}}))});var s={};return s.remove=s.cancel=function(){var e=n.indexOf(f,t);e>-1&&(f.splice(e,1),f.length||o.splice(n.indexOf(o,u),1))},s}}return c},l("put",(function(t,i){e.notify(t,i)})),l("add",(function(t){e.notify(t)})),l("remove",(function(t){e.notify(void 0,t)})),e};return t.setObject("dojo.store.Observable",o),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7786),i(7787),i(7788),i(7789)],o=i.dj.d(n,(function(e,t){return t(e,"mw-dialog-utils/l10n/nls/dialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7922)],o=i.dj.d(n,(function(e,t){return t(e,"liveeditor/l10n/nls/sysobj",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2533),i(1334),i(1640),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e([],{constructor:function(e){this.defaultHandlers={logout:function(e,t){this.wraService&&this.wraService.terminateMATLABSession?this.wraService.terminateMATLABSession():r.warn("No WRA service found, not logging out."),t&&t.onClose()},logoutWithoutSessionSave:function(e,t){this.wraService&&this.wraService.terminateMATLABSession?this.wraService.terminateMATLABSession({skipLogoutTasks:!0}):r.warn("No WRA service found, not logging out."),t&&t.onClose()}},n.isUndockedWindow()||i.setLayout(o)},setUp:function(e){this.wraService=e},_getDefaultButtonHandler:function(e){return this.defaultHandlers[e]?this.defaultHandlers[e]:e},_convertButtonsThatHaveMOTWDefaultHandlers:function(e){var t=[];if(e){var i=this;return(e=e instanceof Array?e:[e]).forEach((function(e){var n,o={},r=Object.keys(e);if(1===r.length&&i.defaultHandlers[e[r[0]]])for(n in e)e.hasOwnProperty(n)&&(o.name=n,o.buttonHandler={},o.buttonHandler.handler=i._getDefaultButtonHandler(e[n]),o.buttonHandler.scope=i);else e.buttonHandler&&(e.buttonHandler=i._getDefaultButtonHandler(e.buttonHandler)),o=e;t.push(o)})),t}},displayMessage:function(e,t,n,o){return(o=o||{}).DialogType="message",o.layoutId="messageDialog",n=this._convertButtonsThatHaveMOTWDefaultHandlers(n),i.displayModalDialog(e,t,n,o)},displayFault:function(e,t,n,o){return(o=o||{}).DialogType="fault",o.layoutId="faultDialog",n=this._convertButtonsThatHaveMOTWDefaultHandlers(n),i.displayModalDialog(e,t,n,o)},closeOpenDialogs:function(){o.removeWidgetsWithParentId("dialog")}}),s=null;return s||(s=new a),s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209)],o=i.dj.d(n,(function(e,t){return e(null,{updateActions:function(e){throw new Error("Unimplemented API: MW.editor.language.matlab.ActionProvider.updateActions")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(516),i(517),i(209)],o=i.dj.d(n,(function(e,t,i,n){const o=t.default,r=i.default;return e(null,{constructor:function(e,t){this.fModel=new mf.zero.Model,this.fClient=e,this.fServer=t,this.fListeners=[]},start:function(){const e=new o({inChannel:this.fServer,outChannel:this.fClient}),t=this.fModel;e.start().then(()=>{const i=new r(t,e);this.onStart(i.start.bind(i));const o=this.fListeners;return i.fetchModelWithDataDefinition().then(()=>{o.forEach(e=>{try{e()}catch(e){n.error(e)}})})})},onStart:function(e){this.fListeners.push(e)},getModel:function(){return this.fModel},getTopLevelObject:function(e){const t=this.fModel.getTopLevelElements().values();let i=t.next().value;for(;i;){if(i.getMetaClass().getQualifiedName()===e)return i;i=t.next().value}return null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8439),i(8440),i(8441),i(8442)],o=i.dj.d(n,(function(e,t){return t(e,"project-core-ui/l10n/gen/resources/MATLAB/project/nls/view_core",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(557),i(761),i(247)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{_getStyle:function(e){var t=this.inherited(arguments);return delete t.pointerEvents,e.borderType&&"LineBorder"===e.borderType&&!e.borderTitle&&"TitledBorder"!==e.borderType&&this._addBorderProperties(e,t),t},_addBorderProperties:function(e,t){var i;return t=t||{},e.borderColor&&(i=e.borderColor.map((function(e){return Math.floor(255*e)})),t.borderColor="rgb("+i.join(",")+")"),e.borderWidth&&(t.borderWidth=e.borderWidth+"px",t.borderStyle="solid"),t},_renderComponent:function(e){if(this.inherited(arguments),e.borderTitle&&void 0===this.field){if(this.field=t.create("fieldset"),this.containerNode=this.field,this.title=t.create("legend",{innerHTML:r.treatHtmlLikeCommandWindow(e.borderTitle,!0)}),e.fontName&&(this.title.style.font=e.fontName),e.fontColor&&(this.title.style.fontColor="rgb("+e.fontColor.join(",")+")"),e.fontSize){var n=o.getAdjustedFontSize(e.fontSize);this.title.style.fontSize=n+"px",this.title.style.lineHeight=e.fontSize+"px"}e.fontBold&&(this.title.style.fontWeight="bolder"),e.fontItalic&&(this.title.style.fontStyle="italic"),t.place(this.title,this.field),t.place(this.field,this.domNode)}e.borderType&&"TitledBorder"===e.borderType&&(void 0===this.field&&(this.field=t.create("fieldset"),this.containerNode=this.field,t.place(this.field,this.domNode)),i.set(this.field,this._addBorderProperties(e))),this.handleOnScroll()},handleOnScroll:function(){this.domNode.onscroll=function(){this.scrollLeft=0,this.scrollTop=0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={size:"fontSize",family:"fontFamily",style:"fontStyle",weight:"fontWeight",align:"textAlign",valign:"verticalAlign",color:"color"},t={size:"font-size",family:"font-family",style:"font-style",weight:"font-weight",align:"text-align",valign:"vertical-align",color:"color"};return{getTextStyle:function(t){return this._getTextStyle(t,e)},getTextStyleDashes:function(e){return this._getTextStyle(e,t)},_getTextStyle:function(e,t){var i=null;i=!1===e.enabled?[128,128,128]:e.fontColor;var n={},o=this.getAdjustedFontSize(e.fontSize);return n[t.size]=o+"px",n[t.family]=e.fontName?{Dialog:"Helvetica",DialogInput:"Monaco",Monospaced:"monospace",Serif:"serif",SansSerif:"sans-serif",Helvetica:"Helvetica"}[e.fontName]:void 0,n[t.style]=e.fontItalic?"italic":void 0,n[t.weight]=e.fontBold?"bolder":"normal",n[t.align]=e.horizontalAlignment||e.textAlign,n[t.valign]=e.verticalAlignment,n[t.color]=i?"rgb("+i.join(",")+")":"",n},getAdjustedFontSize:function(e){var t=12;return e&&(t=e>11?Math.max(11,Math.round(.85*e)):e),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(407)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e){e=e||{},this.componentData=e.widgetData,this.parentData=e.parentData,this.dataService=e.guiDataService,this.delegate=this._constructDelegate("mgg_"+this.componentData.id,this.componentData,this.parentData),this._updateDelegate(this.delegate,this.componentData,this.parentData),i.setClassName(this.delegate.domNode,{type:this.componentData.type,name:this.componentData.name})},startup:function(){this.inherited(arguments),this.delegate.startup()},update:function(e){e?this.componentData=e:e=this.componentData,this.delegate=this._updateDelegate(this.delegate,e,this.parentData)},addChild:function(e,t){e.delegate?this.delegate.addChild(e.delegate,t):this.delegate.addChild(e,t)},removeChild:function(e){e.delegate?this.delegate.removeChild(e.delegate):this.delegate.removeChild(e)},getChildren:function(){return this.delegate.getChildren()},destroyRecursive:function(){this.delegate.destroyRecursive(),this.inherited(arguments)},_updateDelegate:function(e,i,n){return i.text&&e.set("label",i.text),e.set("disabled",!i.enabled),"PopupMenu"===i.type||(i.filtered||!1===i.visibility||"Menu"===i.type&&""===i.text?t.set(e.domNode,{display:"none"}):t.set(e.domNode,{display:""})),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8671),i(8672),i(648),i(1020),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";const r={div:e,none:t},a=n.get("logger","none");let s=r[a];const l=function(){var e={},t="logger-"+a+"-";return i.forEachValue(n.getAll(),(i,n)=>{0===n.indexOf(t)&&(e[n.substring(t.length)]=i)}),e};let c;return{getLogger:function(){return c||(c=s?new s(l()):(o.warn(`Unsupported logger: '${a}'. Falling back to the null logger.`),new t)),c}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(603),i(1257),i(2680)],o=i.dj.d(n,(function(e,t,i){var n={default:{displayName:t.defaultPropertySheetDisplayName,tooltip:t.defaultPropertySheetTooltip,dataType:"char",renderer:"rendererseditors/editors/TextBoxEditor",inPlaceEditor:"rendererseditors/editors/TextBoxEditor",editor:null,editable:!0}},o={name:t.defaultGroupName,displayName:t.defaultGroupDisplayName,tooltip:t.defaultGroupTooltip,expanded:!1,type:i.PROPERTY_ITEM_TYPE.GROUP,module:"inspector_client/widget/InspectorPropertyGroup"},r=e("inspector_client.InspectorObject",[],{objects:[],template:"inspector_client/templates/inspectorPropertySheetWithoutHeader.html",propertySheet:n,objectName:"",workspaceID:void 0,className:"",serverEvalFcn:"",onPropertyValueChanged:void 0,showGroups:!0,showDefaultGroup:!0,id:"",constructor:function(e){for(var t in e||(e={}),this.objects=e.objects||[],this.propertySheet=e.propertySheet||n,this.objectName=e.objectName||"",this.workspaceID=e.workspaceID,this.className=e.className||"",this.serverEvalFcn=e.serverEvalFcn||"",this.onPropertyValueChanged=e.onPropertyValueChanged,this.showGroups=void 0===e.showGroups||e.showGroups,this.showDefaultGroup=void 0===e.showDefaultGroup||e.showDefaultGroup,this.template=this._chooseObjectTemplate(e),this.id=e.id||"",this.breadCrumbsData=e.breadCrumbsData||void 0,this.treeData=e.treeData||void 0,e)e.hasOwnProperty(t)&&void 0!==e[t]&&(this[t]=e[t])},_chooseObjectTemplate:function(e){var t=e&&e.template||"inspector_client/templates/inspectorPropertySheetWithoutHeader.html";return(!e||!e.template)&&this.propertySheet&&this.propertySheet.groups&&this.propertySheet.groups.length&&this.showGroups&&(t="inspector_client/templates/inspectorPropertySheetWithoutHeader.html"),t},getPropertyGroup:function(e){var t=this.propertySheet&&this.propertySheet.groups;if(t){var i=t.filter(function(t){return this._isPropInGroup(t,e)}.bind(this))[0];return i||o}},_isPropInGroup:function(e,t){return!!e.items&&e.items.some((function(e){return e.name===t}))},getPropertyGroupTemplate:function(e){return e&&e.template?e.template:"inspector_client/templates/inspectorPropertyGroup.html"},getPropertySet:function(e){if(this.propertySheet&&this.propertySheet.properties){for(var t=0;t<this.propertySheet.properties.length;t+=1){var i=this.propertySheet.properties[t];if(i.name&&i.name===e)return i}if(this.propertySheet.default)return this.propertySheet.default}return n.default},compareTo:function(e){var t={totalChange:!1};return e?!e.objects||!this.objects||!e.propertySheet&&this.propertySheet||!this.propertySheet&&e.propertySheet?(t.totalChange=!0,t):(t=this._getObjDiffs(this.objects[0],e.objects[0],"objects",t),this.propertySheet&&this.propertySheet.properties&&(t=this._getObjDiffs(this.propertySheet.properties,e.propertySheet.properties,"propertySheet_properties",t)),this.propertySheet&&this.propertySheet.groups&&(t=this._getObjDiffs(this.propertySheet.groups,e.propertySheet.groups,"propertySheet_groups",t)),this.propertySheet&&this.propertySheet.default&&(t=this._getObjDiffs(this.propertySheet.default,e.propertySheet.default,"propertySheet_default",t)),this.template!==e.template&&(t.template=this.template),this.objectName!==e.objectName&&(t.objectName=this.objectName),this.workspaceID!==e.workspaceID&&(t.workspaceID=this.workspaceID),this.className!==e.className&&(t.className=this.className),this.serverEvalFcn!==e.serverEvalFcn&&(t.serverEvalFcn=this.serverEvalFcn),t):(t.totalChange=!0,t)},_getObjDiffs:function(e,t,i,n){if(!e)return t;if(!t)return e;for(var o in n||(n={totalChange:!1}),i||(i="changes"),n[i]||(n[i]={changes:[],changedProperties:[],addedProperties:[],removedProperties:[]}),e)e.hasOwnProperty(o)&&(t.hasOwnProperty(o)?JSON.stringify(e[o])!==JSON.stringify(t[o])&&(n[i].changes[o]=e[o],n[i].changedProperties.push(o)):(n[i].changes[o]=e[o],n[i].addedProperties.push(o)));for(o in t)t.hasOwnProperty(o)&&(e.hasOwnProperty(o)||(n[i].changes[o]=t[o],n[i].removedProperties.push(o)));return n}});return r.DEFAULT_GROUP_PROPERTY_SHEET_TEMPLATE="inspector_client/templates/inspectorPropertySheetWithoutHeader.html",r.DEFAULT_PROPERTY_GROUP_TEMPLATE="inspector_client/templates/inspectorPropertyGroup.html",r.DEFAULT_PROPERTY_SHEET=n,r.DEFAULT_GROUP=o,r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(445),i.dj.c(e.i),i(513),i(227),i(2749),i(306),i(420),i(2750),i(204),i(224),i(206),i(214),i(1266),i(649),i(1033)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){e._xhrObj=f._create;var m=e.config;e.objectToQuery=n.objectToQuery,e.queryToObject=n.queryToObject,e.fieldToObject=r.fieldToObject,e.formToObject=r.toObject,e.formToQuery=r.toQuery,e.formToJson=r.toJson,e._blockAsync=!1;var _=e._contentHandlers=e.contentHandlers={text:function(e){return e.responseText},json:function(e){return l.fromJson(e.responseText||null)},"json-comment-filtered":function(e){s.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");var t=e.responseText,i=t.indexOf("/*"),n=t.lastIndexOf("*/");if(-1==i||-1==n)throw new Error("JSON was not comment filtered");return l.fromJson(t.substring(i+2,n))},javascript:function(t){return e.eval(t.responseText)},xml:function(e){var i=e.responseXML;if(i&&t("dom-qsa2.1")&&!i.querySelectorAll&&t("dom-parser")&&(i=(new DOMParser).parseFromString(e.responseText,"application/xml")),t("ie")&&(!i||!i.documentElement)){var n=function(e){return"MSXML"+e+".DOMDocument"},o=["Microsoft.XMLDOM",n(6),n(4),n(3),n(2)];d.some(o,(function(t){try{var n=new ActiveXObject(t);n.async=!1,n.loadXML(e.responseText),i=n}catch(e){return!1}return!0}))}return i},"json-comment-optional":function(e){return e.responseText&&/^[^{\[]*\/\*/.test(e.responseText)?_["json-comment-filtered"](e):_.json(e)}};e._ioSetArgs=function(t,i,s,l){var d={args:t,url:t.url},u=null;if(t.form){var h=o.byId(t.form),p=h.getAttributeNode("action");d.url=d.url||(p?p.value:e.doc?e.doc.URL:null),u=r.toObject(h)}var f=[{}];u&&f.push(u),t.content&&f.push(t.content),t.preventCache&&f.push({"dojo.preventCache":(new Date).valueOf()}),d.query=n.objectToQuery(c.mixin.apply(null,f)),d.handleAs=t.handleAs||"text";var g=new a((function(e){e.canceled=!0,i&&i(e);var t=e.ioArgs.error;return t||((t=new Error("request cancelled")).dojoType="cancel",e.ioArgs.error=t),t}));g.addCallback(s);var _=t.load;_&&c.isFunction(_)&&g.addCallback((function(e){return _.call(t,e,d)}));var v=t.error;v&&c.isFunction(v)&&g.addErrback((function(e){return v.call(t,e,d)}));var b=t.handle;return b&&c.isFunction(b)&&g.addBoth((function(e){return b.call(t,e,d)})),g.addErrback((function(e){return l(e,g)})),m.ioPublish&&e.publish&&!1!==d.args.ioPublish&&(g.addCallbacks((function(t){return e.publish("/dojo/io/load",[g,t]),t}),(function(t){return e.publish("/dojo/io/error",[g,t]),t})),g.addBoth((function(t){return e.publish("/dojo/io/done",[g,t]),t}))),g.ioArgs=d,g};var v=function(e){var t=_[e.ioArgs.handleAs](e.ioArgs.xhr);return void 0===t?null:t},b=function(e,t){return t.ioArgs.args.failOk||console.error(e),e},y=function(t){C<=0&&(C=0,m.ioPublish&&e.publish&&(!t||t&&!1!==t.ioArgs.args.ioPublish)&&e.publish("/dojo/io/stop"))},C=0;h.after(p,"_onAction",(function(){C-=1})),h.after(p,"_onInFlight",y),e._ioCancelAll=p.cancelAll,e._ioNotifyStart=function(t){m.ioPublish&&e.publish&&!1!==t.ioArgs.args.ioPublish&&(C||e.publish("/dojo/io/start"),C+=1,e.publish("/dojo/io/send",[t]))},e._ioWatch=function(e,t,i,n){e.ioArgs.options=e.ioArgs.args;c.mixin(e,{response:e.ioArgs,isValid:function(i){return t(e)},isReady:function(t){return i(e)},handleResponse:function(t){return n(e)}}),p(e),y(e)};return e._ioAddQueryToUrl=function(e){e.query.length&&(e.url+=(-1==e.url.indexOf("?")?"?":"&")+e.query,e.query=null)},e.xhr=function(t,i,n){var o,r=e._ioSetArgs(i,(function(e){o&&o.cancel()}),v,b),a=r.ioArgs;"postData"in i?a.query=i.postData:"putData"in i?a.query=i.putData:"rawBody"in i?a.query=i.rawBody:(arguments.length>2&&!n||-1==="POST|PUT".indexOf(t.toUpperCase()))&&e._ioAddQueryToUrl(a);var s={method:t,handleAs:"text",timeout:i.timeout,withCredentials:i.withCredentials,ioArgs:a};void 0!==i.headers&&(s.headers=i.headers),void 0!==i.contentType&&(s.headers||(s.headers={}),s.headers["Content-Type"]=i.contentType),void 0!==a.query&&(s.data=a.query),void 0!==i.sync&&(s.sync=i.sync),e._ioNotifyStart(r);try{o=f(a.url,s,!0)}catch(e){return r.cancel(),r}return r.ioArgs.xhr=o.response.xhr,o.then((function(){r.resolve(r)})).otherwise((function(e){a.error=e,e.response&&(e.status=e.response.status,e.responseText=e.response.text,e.xhr=e.response.xhr),r.reject(e)})),r},e.xhrGet=function(t){return e.xhr("GET",t)},e.rawXhrPost=e.xhrPost=function(t){return e.xhr("POST",t,!0)},e.rawXhrPut=e.xhrPut=function(t){return e.xhr("PUT",t,!0)},e.xhrDelete=function(t){return e.xhr("DELETE",t)},e._isDocumentOk=function(e){return g.checkStatus(e.status)},e._getText=function(t){var i;return e.xhrGet({url:t,sync:!0,load:function(e){i=e}}),i},c.mixin(e.xhr,{_xhrObj:e._xhrObj,fieldToObject:r.fieldToObject,formToObject:r.toObject,objectToQuery:n.objectToQuery,formToQuery:r.toQuery,formToJson:r.toJson,queryToObject:n.queryToObject,contentHandlers:_,_ioSetArgs:e._ioSetArgs,_ioCancelAll:e._ioCancelAll,_ioNotifyStart:e._ioNotifyStart,_ioWatch:e._ioWatch,_ioAddQueryToUrl:e._ioAddQueryToUrl,_isDocumentOk:e._isDocumentOk,_getText:e._getText,get:e.xhrGet,post:e.xhrPost,put:e.xhrPut,del:e.xhrDelete}),e.xhr}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(540),i(407)],o=i.dj.d(n,(function(e,t){return{createClientTypeMessage:function(i,n){var o=t.getSystemInfo(),r=e.getRemoteUrlForEndPoint(e.getEndPointForMessageType("ClientType"));return o.TYPE=i||"motw",n&&(o.VERSION=n),o.SERVICE_ENDPOINT=r,{ClientType:{properties:o}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(2836)],o=i.dj.d(n,(function(e,t){return e.mixin(t,{SYSCTRL:9e3,COMMAND:9001})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(245)],o=i.dj.d(n,(function(e){var t=e("mac")?"":"+",i=e("mac")?"":"NumPad-",n=e("mac")?"":"NumPad ",o=/NUMPAD-\d/,r=["CTRL","ALT","SHIFT","META"],a={CTRL:{macString:"⌃",otherPlatformString:"Ctrl"},META:{macString:"⌘",otherPlatformString:"Ctrl"},SHIFT:{macString:"⇧",otherPlatformString:"Shift"},ALT:{macString:"⌥",otherPlatformString:"Alt"},ENTER:{macString:"⏎",otherPlatformString:"Enter"},DELETE:{macString:"⌦",otherPlatformString:"Delete"},DEL:{macString:"⌦",otherPlatformString:"Del"},SPACEBAR:{macString:"␣",otherPlatformString:"Spacebar"},SPACE:{macString:"␣",otherPlatformString:"Space"},UP:{macString:"↑",otherPlatformString:"Up"},DOWN:{macString:"↓",otherPlatformString:"Down"},LEFT:{macString:"←",otherPlatformString:"Left"},RIGHT:{macString:"→",otherPlatformString:"Right"},HOME:{macString:"↖",otherPlatformString:"Home"},END:{macString:"↘",otherPlatformString:"End"},PAGEUP:{macString:"⇞",otherPlatformString:"Page Up"},PAGEDOWN:{macString:"⇟",otherPlatformString:"Page Down"},TAB:{macString:"⇥",otherPlatformString:"Tab"},ESCAPE:{macString:"⎋",otherPlatformString:"Esc"},BACKSPACE:{macString:"⌫",otherPlatformString:"Backspace"},CLEAR:{macString:"⌧",otherPlatformString:"Clear"},PAUSE:{macString:"Pause",otherPlatformString:"Pause"},INSERT:{macString:"Insert",otherPlatformString:"Insert"}};return{getPlatformSpecificString:function(s,l){l=l||{},s=(s=(s=(s=s.replace(/ /g,"")).replace(/_/g,"+")).toUpperCase()).replace(/CNTRL|CONTROL/g,"CTRL"),e("mac")&&!l.dontConvertCtrlToCmd&&(s=s.replace(/CTRL/g,"META")),/[^+-]\+$/.test(s)&&(s+="+");var c=s.split(/\+(?!$)/),d=c.pop();return 0===d.indexOf("NUMPAD-")&&(d=function(e){var t=e.match(o)?i:n;return e.replace("NUMPAD-",t)}(d)),l.sortModifiers&&function(e){e.sort((function(e,t){return r.indexOf(e)-r.indexOf(t)}))}(c),c.push(d),c.map((function(t){var i=a[t];return i?e("mac")?i.macString:i.otherPlatformString:t})).join(t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=["left","center","right"],i={};return Object.keys(t).forEach((function(e){var n;i[t[e]]="mwHorizontalAlignment"+((n=t[e]).charAt(0).toUpperCase()+n.slice(1))})),e(null,{horizontalAlignment:"center",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwHorizontalAlignmentMixin")},_setHorizontalAlignmentAttr:function(e){if(-1===t.indexOf(e))throw new Error("'Vertical alignment' property expects '' one of these values: "+t);this._applyHorizontalAlignmentClass(e),this._set("horizontalAlignment",e)},_applyHorizontalAlignmentClass:function(e){var t,n,o;t=this.get("horizontalAlignment"),(n=i[t])&&this.domNode.classList.remove(n),o=i[e],this.domNode.classList.add(o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(353)],o=i.dj.d(n,(function(e,t){var i=e(null,{postCreate:function(){this.inherited(arguments);var e=this.id+"_label";this.focusNode.setAttribute("aria-labelledby",e),this.textNode.setAttribute("id",e)}});return i._dependencies=[{mixin:t,orderDependent:!1}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){var t={linear:function(e){return e},quadIn:function(e){return Math.pow(e,2)},quadOut:function(e){return e*(e-2)*-1},quadInOut:function(e){return(e*=2)<1?Math.pow(e,2)/2:-1*(--e*(e-2)-1)/2},cubicIn:function(e){return Math.pow(e,3)},cubicOut:function(e){return Math.pow(e-1,3)+1},cubicInOut:function(e){return(e*=2)<1?Math.pow(e,3)/2:(e-=2,(Math.pow(e,3)+2)/2)},quartIn:function(e){return Math.pow(e,4)},quartOut:function(e){return-1*(Math.pow(e-1,4)-1)},quartInOut:function(e){return(e*=2)<1?Math.pow(e,4)/2:(e-=2,-.5*(Math.pow(e,4)-2))},quintIn:function(e){return Math.pow(e,5)},quintOut:function(e){return Math.pow(e-1,5)+1},quintInOut:function(e){return(e*=2)<1?Math.pow(e,5)/2:(e-=2,(Math.pow(e,5)+2)/2)},sineIn:function(e){return-1*Math.cos(e*(Math.PI/2))+1},sineOut:function(e){return Math.sin(e*(Math.PI/2))},sineInOut:function(e){return-1*(Math.cos(Math.PI*e)-1)/2},expoIn:function(e){return 0==e?0:Math.pow(2,10*(e-1))},expoOut:function(e){return 1==e?1:-1*Math.pow(2,-10*e)+1},expoInOut:function(e){return 0==e?0:1==e?1:(e*=2)<1?Math.pow(2,10*(e-1))/2:(--e,(-1*Math.pow(2,-10*e)+2)/2)},circIn:function(e){return-1*(Math.sqrt(1-Math.pow(e,2))-1)},circOut:function(e){return e-=1,Math.sqrt(1-Math.pow(e,2))},circInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-Math.pow(e,2))-1):(e-=2,.5*(Math.sqrt(1-Math.pow(e,2))+1))},backIn:function(e){var t=1.70158;return Math.pow(e,2)*((t+1)*e-t)},backOut:function(e){e-=1;var t=1.70158;return Math.pow(e,2)*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?Math.pow(e,2)*((t+1)*e-t)/2:(e-=2,(Math.pow(e,2)*((t+1)*e+t)+2)/2)},elasticIn:function(e){if(0==e||1==e)return e;return e-=1,-1*Math.pow(2,10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)},elasticOut:function(e){if(0==e||1==e)return e;return Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1},elasticInOut:function(e){if(0==e)return 0;if(2==(e*=2))return 1;var t=.3*1.5,i=t/4;return e<1?(e-=1,Math.pow(2,10*e)*Math.sin((e-i)*(2*Math.PI)/t)*-.5):(e-=1,Math.pow(2,-10*e)*Math.sin((e-i)*(2*Math.PI)/t)*.5+1)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(e){var t,i=7.5625,n=2.75;return e<1/n?t=i*Math.pow(e,2):e<2/n?(e-=1.5/n,t=i*Math.pow(e,2)+.75):e<2.5/n?(e-=2.25/n,t=i*Math.pow(e,2)+.9375):(e-=2.625/n,t=i*Math.pow(e,2)+.984375),t},bounceInOut:function(e){return e<.5?t.bounceIn(2*e)/2:t.bounceOut(2*e-1)/2+.5}};return e.setObject("dojo.fx.easing",t),t}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(210),i(211),i(217),i(213),i(206),i(225),i(279),i(869)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){var c=function(e,t,i,o,r,a){return a?Math.max(n.get(e.domNode,"min-width"),Math.min(r.w-t.x,Math.min(i.pageX-o.x-t.x,Math.min(n.get(e.domNode,"max-width")?n.get(e.domNode,"max-width"):a.w+a.x-t.x,a.w+a.x-t.x)))):Math.max(n.get(e.domNode,"min-width"),Math.min(i.pageX-o.x-t.x,Math.min(n.get(e.domNode,"max-width")?n.get(e.domNode,"max-width"):r.w-t.x,r.w-t.x)))},d=function(e,t,i,o,r,a){return a?Math.max(n.get(e.domNode,"min-width"),Math.min(t.x+t.w,Math.min(t.x+t.w-(i.pageX-o.x),Math.min(n.get(e.domNode,"max-width")?n.get(e.domNode,"max-width"):t.x+t.w-a.x,t.x+t.w-a.x)))):Math.max(n.get(e.domNode,"min-width"),Math.min(t.x+t.w-(i.pageX-o.x),Math.min(n.get(e.domNode,"max-width")?n.get(e.domNode,"max-width"):t.x+t.w,t.x+t.w)))},u=function(e,t,i,o,r,a){return a?Math.max(n.get(e.domNode,"min-height"),Math.min(r.h-t.y,Math.min(i.pageY-o.y-t.y,Math.min(n.get(e.domNode,"max-height")?n.get(e.domNode,"max-height"):a.h+a.y-t.y,a.h+a.y-t.y)))):Math.max(n.get(e.domNode,"min-height"),Math.min(i.pageY-o.y-t.y,Math.min(n.get(e.domNode,"max-height")?n.get(e.domNode,"max-height"):r.h-t.y,r.h-t.y)))},h=function(e,t,i,o,r,a){return a?Math.max(n.get(e.domNode,"min-height"),Math.min(t.y+t.h,Math.min(t.y+t.h-(i.pageY-o.y),Math.min(n.get(e.domNode,"max-height")?n.get(e.domNode,"max-height"):t.y+t.h-a.y,t.y+t.h-a.y)))):Math.max(n.get(e.domNode,"min-height"),Math.min(t.y+t.h-(i.pageY-o.y),Math.min(n.get(e.domNode,"max-height")?n.get(e.domNode,"max-height"):t.y+t.h,t.y+t.h)))},p=function(e,t,n,a,s,p,f,g){if(n.synthetic||1==(1&n.buttons)){l(n);var m=function(e,t,n,o,a,s,l,p){var f={};if("object"===(void 0===s?"undefined":r(s))){var g=i.position(s);"e"===l?f.w=c(e,t,n,o,a,g):"w"===l&&(f.w=d(e,t,n,o,0,g)),"s"===p?f.h=u(e,t,n,o,a,g):"n"===p&&(f.h=h(e,t,n,o,0,g))}else"e"===l?f.w=c(e,t,n,o,a):"w"===l&&(f.w=d(e,t,n,o)),"s"===p?f.h=u(e,t,n,o,a):"n"===p&&(f.h=h(e,t,n,o));return"w"===l&&(f.l=t.x+t.w-f.w),"n"===p&&(f.t=t.y+t.h-f.h),f}(e,t,n,a,s,p,f,g),_={},v=void 0;"e"!==f&&"w"!==f||(e.domNode.style.width=m.w+"px"),"w"===f&&(e.domNode.style.left=m.l+"px"),"s"!==g&&"n"!==g||(e.domNode.style.height=m.h+"px"),"n"===g&&(e.domNode.style.top=m.t+"px"),t=i.position(e.domNode),e._contentArea&&(_={w:(v=i.position(e._contentArea)).w,h:v.h}),function(e,t,i){o.emit(e.domNode,"resize",{bubbles:!1,dimension:t,contentSize:i})}(e,t,_)}};return{resizeEvent:"resize",enable:function(n){var r=n.widget,c=n.bindingNode;r._resizeEventSignals=[];var d=void 0,u=void 0,h={x:0,y:0};!function(){var n=!1,f=!1,g=!1,m=!1,_=!1,v=!1,b=!1,y=!1;r._resizeHandlers=[];var C=document.createElement("div");e.add(C,"mwResizableHandle mwResizable-e"),t.place(C,r.domNode,"last"),r._resizeHandlers.push(C);var T=document.createElement("div");e.add(T,"mwResizableHandle mwResizable-s"),t.place(T,r.domNode,"last"),r._resizeHandlers.push(T);var E=document.createElement("div");e.add(E,"mwResizableHandle mwResizable-w"),t.place(E,r.domNode,"last"),r._resizeHandlers.push(E);var S=document.createElement("div");e.add(S,"mwResizableHandle mwResizable-n"),t.place(S,r.domNode,"last"),r._resizeHandlers.push(S);var w=document.createElement("div");e.add(w,"mwResizableHandle mwResizable-se"),t.place(w,r.domNode,"last"),r._resizeHandlers.push(w);var I=document.createElement("div");e.add(I,"mwResizableHandle mwResizable-ne"),t.place(I,r.domNode,"last"),r._resizeHandlers.push(I);var A=document.createElement("div");e.add(A,"mwResizableHandle mwResizable-sw"),t.place(A,r.domNode,"last"),r._resizeHandlers.push(A);var x=document.createElement("div");e.add(x,"mwResizableHandle mwResizable-nw"),t.place(x,r.domNode,"last"),r._resizeHandlers.push(x),r._resizeHandlers.forEach((function(e){r._resizeEventSignals.push(o(e,"mousedown",(function(t){0===t.button&&(l(t),d=s.getBox(),u=i.position(r.domNode),e===C?(n=!0,h.x=t.pageX-(u.x+u.w),a("*")[0].style.cursor="ew-resize"):e===T?(f=!0,h.y=t.pageY-(u.y+u.h),a("*")[0].style.cursor="ns-resize"):e===E?(g=!0,h.x=t.pageX-u.x,a("*")[0].style.cursor="ew-resize"):e===S?(m=!0,h.y=t.pageY-u.y,a("*")[0].style.cursor="ns-resize"):e===w?(_=!0,h.x=t.pageX-(u.x+u.w),h.y=t.pageY-(u.y+u.h),a("*")[0].style.cursor="nwse-resize"):e===I?(v=!0,h.x=t.pageX-(u.x+u.w),h.y=t.pageY-u.y,a("*")[0].style.cursor="nesw-resize"):e===A?(b=!0,h.x=t.pageX-u.x,h.y=t.pageY-(u.y+u.h),a("*")[0].style.cursor="nesw-resize"):e===x&&(y=!0,h.x=t.pageX-u.x,h.y=t.pageY-u.y,a("*")[0].style.cursor="nwse-resize"))})))})),r._resizeEventSignals.push(o(document,"mouseup",(function(){n=!1,f=!1,g=!1,m=!1,_=!1,v=!1,b=!1,y=!1,a("*")[0].style.cursor=""}))),r._resizeEventSignals.push(o(document,"mousemove",(function(e){n?p(r,u,e,h,d,c,"e"):f?p(r,u,e,h,d,c,null,"s"):g?p(r,u,e,h,d,c,"w"):m?p(r,u,e,h,d,c,null,"n"):_?p(r,u,e,h,d,c,"e","s"):v?p(r,u,e,h,d,c,"e","n"):b?p(r,u,e,h,d,c,"w","s"):y&&p(r,u,e,h,d,c,"w","n")})))}()},disable:function(e){e._resizeEventSignals.forEach((function(e){e.remove()})),e._resizeEventSignals=[],e._resizeHandlers.forEach((function(e){t.destroy(e)})),e._resizeHandlers=[]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(227),i(228),i(210),i(384),i(238),i(277),i(231),i(209),i(881),i(344),i(355)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=e(a,{_successionBlockCount:0,_blockFocus:!1,_blockRevealChild:!1,_immediateUnblockFocus:!1,_lastSelectedChild:null,constructor:function(){this._childProperties={},this._containerConnections={}},registerContainer:function(e){this._containerConnections[e.id]=[e.on(p.CHILD_ADDED,t.hitch(this,"addChild")),e.on(p.CHILD_REMOVED,t.hitch(this,"removeChild"))]},unregisterContainer:function(e){var t=this._containerConnections[e.id];t&&(t.forEach((function(e){e.remove()})),delete this._containerConnections[e.id])},addChild:function(e,t){if(!1!==t.get(h.IS_SELECTABLE)&&!this._childProperties[e.id]){e.focus||e.domNode&&o.has(e.domNode,"tabindex")||e.dontSelectOnFocus||d.warn("The widget (id: "+e.id+") has neither a focus() method nor a tabindex and therefore won't accept focus correctly.");var n=this;this._childProperties[e.id]=t;var r=function(t,i,o){var r,a;if(o&&n.selectedChild!==e){r=n.selectedChild,n._changeAttrValue("selectedChild",e),n._lastSelectedChild=n.selectedChild,r&&n._setSelected(n._childProperties[r.id],!1),n._blockRevealChild||n._revealChild(e),!n._isRespondingToFocus&&e.domNode&&s.activeStack.indexOf(e.domNode.id)<0&&!n._blockFocus&&!l.getTopPopup()&&(e.focus?e.focus():s.focus(e.domNode));var c=n._childProperties[e.id];n._shouldSetShowingOnSelection(c)&&c.set(h.IS_SHOWING,!0)}else o||n.selectedChild!==e||(n._successionBlockCount>0?n._changeAttrValue("selectedChild",null):(a=n.getNextChild(e,!0))&&n._childProperties[a.id]&&n._setSelected(n._childProperties[a.id],!0))};t.selectionManagerSelectWatch=t.watch(h.IS_SELECTED,r),t.get(h.IS_SELECTED)&&r(h.IS_SELECTED,0,!0),t.selectionManagerShowWatch=t.watch(h.IS_SHOWING,(function(e,i,o){o||n.shouldBlockSuccession()||setTimeout((function(){t.get(h.IS_SHOWING)||n._setSelected(t,!1)}),0)}));var a=function(){n._isRespondingToFocus=!0,n._setSelected(t,!0),n._isRespondingToFocus=!1};e.dontSelectOnFocus||(e.onFocus?t.selectionManagerOnFocusAspect=i.after(e,"onFocus",a):e.onFocus=a)}},_shouldSetShowingOnSelection:function(e){return e&&(e.hasOwnProperty(h.IS_COLLAPSED)&&!e.get(h.IS_COLLAPSED)||!e.hasOwnProperty(h.IS_COLLAPSED))&&e.hasOwnProperty(h.IS_SHOWING)},removeChild:function(e,t){var i;delete this._childProperties[e.id],t.selectionManagerSelectWatch&&(t.selectionManagerSelectWatch.unwatch(),delete t.selectionManagerSelectWatch),t.selectionManagerShowWatch&&(t.selectionManagerShowWatch.unwatch(),delete t.selectionManagerShowWatch),t.selectionManagerOnFocusAspect&&(t.selectionManagerOnFocusAspect.remove(),delete t.selectionManagerOnFocusAspect),e===this.selectedChild&&(t.documentType?this._changeAttrValue("selectedChild",null):(i=this._successionBlockCount>0?null:this.getNextChild(e,!0))?this._setSelected(this._childProperties[i.id],!0):(this._setSelected(t,!1),this._changeAttrValue("selectedChild",null)))},setSuccessionFilter:function(e){this._canSelectFilter=e},blockSuccession:function(){this._successionBlockCount++},unblockSuccession:function(){this._successionBlockCount>0&&this._successionBlockCount--},shouldBlockSuccession:function(){return this._successionBlockCount>0},blockFocus:function(){this._blockFocus=!0},unblockFocus:function(){this._blockFocus=!1},shouldBlockFocus:function(){return this._blockFocus},blockRevealChild:function(){this._blockRevealChild=!0},unblockRevealChild:function(){this._blockRevealChild=!1},shouldBlockRevealChild:function(){return this._blockRevealChild},getLastSelectedChild:function(){return this._lastSelectedChild},setSelected:function(e,t,i){var n=this._childProperties[e.id];n&&(i&&(t?this.blockFocus():this.blockSuccession()),this._setSelected(n,t),i&&(t?this.unblockFocus():this.unblockSuccession()))},_setSelected:function(e,t){t!=e.get(h.IS_SELECTED)&&(e.set(h.IS_SELECTED,t),t&&(e.widget?this._lastSelectedChild=e.widget:this._lastSelectedChild=e))},_selectedChildSetter:function(e){this.setSelected(e,!0)},_revealChild:function(e){for(var t=e,i=t.domNode?t.getParent():null;i;)i.revealChild&&i.revealChild(t),t=i,i=i.getParent()},_getFirstChild:function(e,t,i){return e&&e.nextChild?this._getFirstChild(e.nextChild(null,t,i),t,i):e},getNextChild:function(e,t,i){var n,o,r,a=e.getParent()||e.parentBar;if(!a)return null;if(a.nextChild&&(!t||t&&u.isShowingGlobally(a)))for(;(n=a.nextChild(e,t,i))&&(o=this._getFirstChild(n,t,i));){if(this._childProperties[o.id]){if(o.properties&&!0===o.properties.get(h.IS_SELECTED))break;if(this._canSelectFilter&&!this._canSelectFilter(o,this._childProperties[o.id]))break;return o}if(r&&r===o)return null;void 0===r&&a.getParent&&null===a.getParent()&&(r=o),e=o,o.getParent&&o.getParent()!==a&&(a=o.getParent())}return this.getNextChild(a,t,i)},_getLastChild:function(e,t,i){return e&&e.previousChild?this._getLastChild(e.previousChild(null,t,i),t,i):e},getPreviousChild:function(e,t,i){var n,o,r,a=e.getParent()||e.parentBar;if(!a)return null;if(a.previousChild&&(!t||t&&u.isShowingGlobally(a)))for(;(n=a.previousChild(e,t,i))&&(o=this._getLastChild(n,t,i));){if(this._childProperties[o.id]){if(o.properties&&!0===o.properties.get(h.IS_SELECTED))break;if(this._canSelectFilter&&!this._canSelectFilter(o,this._childProperties[o.id]))break;return o}if(r&&r===o)return null;void 0===r&&a.getParent&&null===a.getParent()&&(r=o),e=o,o.getParent&&o.getParent()!==a&&(a=o.getParent())}return this.getPreviousChild(a,t,i)}});return f.SELECTED_CHILD="selectedChild",f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{revealChild:function(e){},nextChild:function(e,t){return null},previousChild:function(e,t){return null}})}),e,t),e.exports=o},function(e,t,n){var o,r;o=[n(203)],r=n.dj.d(o,(function(e){return e([],{notifyStateWatchers:function(e,t,i,n){if(this._watchCallbacks){var o=this;if(void 0!==n){this._pendingWatchNotifications||(this._pendingWatchNotifications={});var r=this._pendingWatchNotifications[e];return void(r?r.newValue=i:(this._pendingWatchNotifications[e]={oldValue:t,newValue:i},setTimeout((function(){var t=o._pendingWatchNotifications[e];delete o._pendingWatchNotifications[e],o.notifyStateWatchers(e,t.oldValue,t.newValue)}),n)))}if("function"==typeof i){if(!this._watchCallbacks["_"+e]&&!this._watchCallbacks["*"])return;i=i()}this._watchCallbacks(e,t,i)}},preferredWatch:function(e,t){var n=this.watch(e,t);if("string"==typeof e){var o=this._watchCallbacks["_"+e],r=o.length;if(r>1){var a=o[r-1];for(i=r-1;i>=1;i--)o[i]=o[i-1];o[0]=a}}return n}})}),e,t),e.exports=r},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{convertToJSON:function(e){return JSON.stringify(e)},convertFromJSON:function(e){return JSON.parse(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(564)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.modifying=function(e){e._owner&&e._property&&(0,n.notifyModifying)(e._owner,e._property._isInstOfExtension()?e._property:e._property.name)},e.isComposite=function(e){var t=e._property;return t&&t.isContainment()},e.isDataType=c,e.areEqual=function(e,t,i){return c(e)?d(t,i):t===i},e.areEqualDataTypes=d,e.arrIndexOf=function(e,t,i){return i?o.default.findIndex(e,d.bind(null,t)):e.indexOf(t)};var o=a(t),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),l=function(){function e(t,i,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._owner=i,this._property=n,this._opposite=o,this._collection=t}return s(e,[{key:"size",value:function(){r.default.throwErr("Implement")}},{key:"isEmpty",value:function(){return 0===this.size()}},{key:"forEach",value:function(){r.default.throwErr("Implement")}},{key:"clear",value:function(){r.default.throwErr("Implement")}},{key:"getKind",value:function(){r.default.throwErr("Implement")}},{key:"genericAdd",value:function(e){r.default.throwErr("Implement")}},{key:"genericRemove",value:function(e){r.default.throwErr("Implement")}},{key:"getAllValues",value:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e}},{key:"map",value:function(){var e;return(e=this.getAllValues()).map.apply(e,arguments)}},{key:"reduce",value:function(){var e;return(e=this.getAllValues()).reduce.apply(e,arguments)}},{key:"filter",value:function(){var e;return(e=this.getAllValues()).filter.apply(e,arguments)}},{key:"every",value:function(){var e;return(e=this.getAllValues()).every.apply(e,arguments)}},{key:"some",value:function(){var e;return(e=this.getAllValues()).some.apply(e,arguments)}}]),e}();function c(e){var t=e._property;return t&&t.isDataType()}function d(e,t){if(e&&t){var i=e.__isSealed?e.clone():e,n=t.__isSealed?t.clone():t;return o.default.isEqual(i,n)}return e===t}e.default=l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(1738),i(564),i(566),i(2895),i(611),i(885),i(779)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isModelElement=function(e){return e===mf.zero.ModelElement.metaClass},e.copyValue=function(e,t,i){if(d.default.isString(i)){var n="_"+i,l=e.getPropertyByIndex(i);if(l.isSingleValuedAssociation()&&l.isContainer()){var c=e.containerFeature,u=c?(0,o.basicContainer)(e):null;(0,a.setOldContainer)(t,u,c)}else l.isSingleValued()&&"StringToStringMap"!==l.type.name?t.values[i]=e[i]:e[n]&&!e[n].isEmpty()&&(t.values[i]=e[i]._clone())}else{var h=i.uuid,p=t.extensionChanges.get(h);if(t.extensionChanges.has(h)&&p)return;var f=e.dynamicValues[i.name];if(1==i.upper){var g=f&&f.uuid===h?f.value:(0,s.getExtensionDefault)(e.getModel(),e.getMetaClass(),i.name);p?t.extensionChanges.set(h,g):t.extensionChanges.get(h)||t.extensionChanges.set(h,g)}else{var m=f.value,_=(0,r.instantiateDynamicCollection)(null,i);_._copyContents(m),p?t.extensionChanges.set(h,_):t.extensionChanges.get(h)||t.extensionChanges.set(h,_)}}},e.copyStateFromStorage=function(e,t){d.default.forEach(e.getMetaClass().getAllAttributes(),(function(i){var n="_"+i.name;t.isChanged(i)&&(i.isSingleValued()?i.isContainer()?t._containerFeature?(0,o.basicSetContainer)(e,t._container,t._containerFeature):(0,o.basicSetContainer)(e):e[n]=t.values[i.name]:t.values[i.name]?e[n]._copyContents(t.values[i.name]):e[n]&&e[n]._basicClear())}));var i=(0,s.getMetaRegistryModel)();t.extensionChanges.forEach((function(t,n){var o=i.findElement(n);if(o)if(1==o.upper)e.setExtension(o.name,t);else{var r=e.dynamicValues[o.name];r||u.default.throwErr("ExtensionMustHaveDefaultValue"),r.value._copyContents(t._collection)}}))},e.createStorage=function(e){return new f.default(e.uuid,e.getModel(),e.getMetaClass())};var d=g(t),u=g(i),h=g(n),p=g(r),f=g(a);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var _=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i));return n.containerOrModel=e,n.containerFeature=null,n.dynamicValues=null,n._isClass=null,n._isExtension=null,n._isDataType=null,n._isStructuredTyped=null,n._isEnum=null,n._isPrimitiveType=null,n._isPackage=null,(0,s.elementCreated)(n.getModel(),n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),m(t,[{key:"_isInstOfClass",value:function(){return null===this._isClass&&(this._isClass=this.isInstOf(mf.zero.meta.Class.metaClass)),this._isClass}},{key:"_isInstOfExtension",value:function(){return null===this._isExtension&&(this._isExtension=this.isInstOf(mf.zero.meta.Extension.metaClass)),this._isExtension}},{key:"_isInstOfDataType",value:function(){return null===this._isDataType&&(this._isDataType=this.isInstOf(mf.zero.meta.DataType.metaClass)),this._isDataType}},{key:"_isInstOfStructuredType",value:function(){return null===this._isStructuredType&&(this._isStructuredType=this.isInstOf(mf.zero.meta.StructuredType.metaClass)),this._isStructuredType}},{key:"_isInstOfEnum",value:function(){return null===this._isEnum&&(this._isEnum=this.isInstOf(mf.zero.meta.Enum.metaClass)),this._isEnum}},{key:"_isInstOfPrimitiveType",value:function(){return null===this._isPrimitiveType&&(this._isPrimitiveType=this.isInstOf(mf.zero.meta.PrimitiveType.metaClass)),this._isPrimitiveType}},{key:"_isInstOfPackage",value:function(){return null===this._isPackage&&(this._isPackage=this.isInstOf(mf.zero.meta.Package.metaClass)),this._isPackage}},{key:"jasmineToString",value:function(){return this.getMetaClass().getQualifiedName()}},{key:"destroy",value:function(){(0,o.destroyRecursively)(this,!0)}},{key:"getMetaClass",value:function(){return mf.zero.ModelElement.metaClass}},{key:"aboutToDestroy",value:function(){}},{key:"_invalidate",value:function(){var e=this;this.callback&&this.dynamicValues&&d.default.forOwn(this.dynamicValues,(function(t,i){delete e.dynamicValues[i]})),function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_invalidate",this).call(this)}},{key:"identifier",value:function(){return""}},{key:"getPropertyByIndex",value:function(e){return this.getMetaClass().getPropertyByName(e)}},{key:"getModel",value:function(){return this.containerOrModel.getModel()}},{key:"isInstOf",value:function(e){var t=d.default.isString(e)?p.default.getType(e):e;return this.getMetaClass().isA(t)}},{key:"hasNonDefaultExtension",value:function(e){if(!this.dynamicValues)return!1;var t=this.getModel().getExtension(this.getMetaClass(),e);return!!t&&v(this,e,this.dynamicValues[e],t)}},{key:"getExtension",value:function(e){var t=this.getModel().getExtension(this.getMetaClass(),e);if(this.dynamicValues){var i=this.dynamicValues[e];if(i){if(t&&i.uuid===t.uuid)return i.value;(t.upper>1||"*"===t.upper)&&this.dynamicValues[e].value&&h.default.callback&&h.default.callback(null,this.dynamicValues[e].value),delete this.dynamicValues[e]}}if(t||u.default.throwErr("NoSuchExtension",e,this.getMetaClass().qualifiedName),"1"==t.upper)return(0,s.getExtensionDefault)(this.getModel(),this.getMetaClass(),e);var n=(0,r.instantiateDynamicCollection)(this,t);if(n)return this.dynamicValues||(this.dynamicValues={}),this.dynamicValues[e]||(this.dynamicValues[e]={uuid:t.uuid,value:n}),this.dynamicValues[e].value;u.default.throwErr("NoSuchExtension",e,this.getMetaClass().qualifiedName)}},{key:"setExtension",value:function(e,t){var i=this.getModel().getExtension(this.getMetaClass(),e);i&&1==i.upper||u.default.throwErr("NoSuchExtension",e,this.getMetaClass().qualifiedName),this.dynamicValues||(this.dynamicValues={});var n=this.dynamicValues[e];n&&n.uuid!==i.uuid&&(delete this.dynamicValues[e],n=null),t===(0,s.getExtensionDefault)(this.getModel(),this.getMetaClass(),e)?n&&((0,l.elementModifying)(this.getModel(),this,i),delete this.dynamicValues[e]):n?n.value!==t&&((0,l.elementModifying)(this.getModel(),this,i),n.value=t):((0,l.elementModifying)(this.getModel(),this,i),this.dynamicValues[e]||(this.dynamicValues[e]={uuid:i.uuid,value:t}))}},{key:"listExtensionNamesWithNonDefaultValues",value:function(e){if(this.dynamicValues)for(var t=Object.keys(this.dynamicValues),i=0,n=t.length;i<n;++i){var o=t[i];if(v(this,o,this.dynamicValues[o])&&!e(o))return}}}]),t}(h.default);function v(e,t,i,n){if(!i)return!1;var o=n;return!(!o&&!(o=e.getModel().getExtension(e.getMetaClass(),t)))&&(e.dynamicValues[t].uuid===o.uuid&&(!(o.upper>1||"*"===o.upper)||0!==e.dynamicValues[t].value.size()))}e.default=_}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1294)],o=i.dj.d(n,(function(e,t){"use strict";function i(e,t,i){var n=i.call(e);return e[t]=function(){return n},n}function n(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e},o=i.call(e);if(void 0!==o){var r=n.call(e,o);return e[t]=function(){return r},r}return n.call(e,o)}Object.defineProperty(e,"__esModule",{value:!0}),e.constEvalOnce=i,e.constConditionalEvalOnce=n,e.bindFunctionsToObject=function(e,t){var i=!0,n=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(i=(r=a.next()).done);i=!0){var s=r.value;void 0!==e[s]&&(e[s]=e[s].bind(e))}}catch(e){n=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw o}}},e.useOnce=function(e){var t=function e(){return e._func()},n=function(){return i(t,"_func",e)};return t.reset=function(){t._func=n},t.reset(),t},e.useConditionalOnce=function(e,t){var i=function e(){return e._func()};t=t||function(e){return e};var o=function(){return n(i,"_func",e,t)};return i.reset=function(){i._func=o},i.reset(),i},e.useMemoize=function(e,i){var n=void 0;n=i?function(){for(var t=arguments.length,o=Array(t),r=0;r<t;r++)o[r]=arguments[r];return n._cache.getOrEval(i.apply(void 0,o),(function(){return e.apply(void 0,o)}))}:function(){for(var t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return n._cache.getOrEval(i[0],(function(){return e.apply(void 0,i)}))};return n.reset=function(){n._cache=new t.SimpleFunctionCache},n.reset(),n}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(1745),i(566),i(396),i(1055)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.initialize=function(){N.registerPropertySerializer(d.default.getType(u.default.Boolean),new S),N.registerPropertySerializer(d.default.getType(u.default.Boolean),new y("Boolean"),"numeric"),N.registerPropertySerializer(d.default.getType(u.default.Integer),new y),N.registerPropertySerializer(d.default.getType(u.default.Integer8),new y),N.registerPropertySerializer(d.default.getType(u.default.Integer16),new y),N.registerPropertySerializer(d.default.getType(u.default.Integer64),new y),N.registerPropertySerializer(d.default.getType(u.default.UInteger8),new y),N.registerPropertySerializer(d.default.getType(u.default.UInteger16),new y),N.registerPropertySerializer(d.default.getType(u.default.UInteger64),new y),N.registerPropertySerializer(d.default.getType(u.default.Real),new C),N.registerPropertySerializer(d.default.getType(u.default.UnlimitedNatural),new T),N.registerPropertySerializer(d.default.getType(u.default.UUID),new b),N.registerPropertySerializer(d.default.getType(u.default.String),new v(u.default.String)),N.registerPropertySerializer(d.default.getType(u.default.StdString),new v),N.registerPropertySerializer(d.default.getType(u.default.DateTime),new E),N.registerPropertySerializer(d.default.getType(u.default.Enum),new w),N.registerPropertySerializer(d.default.getType(u.default.JsonValue),new I),N.registerPropertySerializer(d.default.getType(u.default.MxArray),new I),N.registerPropertySerializer(d.default.getType(u.default.StringToStringMap),new A)};var s=p(t),l=p(i),c=p(n),d=p(o),u=p(r),h=p(a);function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var g=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(e){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,d.default.getType(e||u.default.String)))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return e}},{key:"_doParseValue",value:function(e){return e}}]),t}(c.default),b=function(e){function t(){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,d.default.getType(u.default.UUID)))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return e}},{key:"_doParseValue",value:function(e){if(s.default.isValidUuid(e))return e;l.default.throwErr("InvalidValue")}}]),t}(c.default),y=function(e){function t(e){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,d.default.getType(e||u.default.Integer)))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return Number(e).toString()}},{key:"_doParseValue",value:function(e){return Number.parseInt(e)}}]),t}(c.default),C=function(e){function t(e){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,d.default.getType(e||u.default.Real)))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return Number(e).toString()}},{key:"_doParseValue",value:function(e){return Number.parseFloat(e)}}]),t}(c.default),T=function(e){function t(e){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,d.default.getType(e||u.default.UnlimitedNatural)))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return s.default.isString(e)?"*":Number(e).toString()}},{key:"_doParseValue",value:function(e){return"*"===e?e:Number.parseInt(e)}}]),t}(c.default),E=function(e){function t(){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,d.default.getType(u.default.DateTime)))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return e.toISOString()}},{key:"_doParseValue",value:function(e){return new Date(e)}}]),t}(c.default),S=function(e){function t(){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,d.default.getType(u.default.Boolean)))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return e?"true":"false"}},{key:"_doParseValue",value:function(e){return"true"===e||"false"!==e&&void l.default.throwErr("UnexpectedValue")}}]),t}(c.default),w=function(e){function t(){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,d.default.getType(u.default.Enum)))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return e.toString()}},{key:"_doParseValue",value:function(e,t){var i=Number.parseInt(e);return isNaN(i)?s.default.getObject(t.qualifiedName+"."+e):i}}]),t}(c.default),I=function(e){function t(e){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,d.default.getType(e||u.default.JsonValue)))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return JSON.stringify(e)}},{key:"_doParseValue",value:function(e){try{return JSON.parse(e)}catch(t){return e}}}]),t}(c.default),A=function(e){function t(){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,d.default.getType(u.default.StringToStringMap)))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return e.toString()}},{key:"_doParseValue",value:function(e){try{var t=new h.default;return t.loadFromString(e),t}catch(t){return e}}}]),t}(c.default),x=function(e){function t(){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,null))}return _(t,e),g(t,[{key:"_doSerializeValue",value:function(e){return""}},{key:"_doParseValue",value:function(e){return{}}}]),t}(c.default),N=new(function(){function e(){f(this,e),this.serializers={}}return g(e,[{key:"getPropertySerializer",value:function(e,t){var i=L(e);if(i)return i[t||""]}},{key:"getDefaultPrimitiveSerializer",value:function(){return new x}},{key:"registerPropertySerializer",value:function(e,t,i){var n=e.qualifiedName,o=e.owningPackage.uri;this.getPropertySerializer(e,i)&&l.default.throwErr("DuplicateTypeInRegistry",n),this.serializers[n]||(this.serializers[n]={}),this.serializers[n][o]||(this.serializers[n][o]={}),this.serializers[n][o][i||""]=t}},{key:"forAllPropertySerializers",value:function(e,t){for(var i=L(e),n=s.default.keys(i),o=0,r=n.length;o<r&&!1!==t(i[n[o]]);++o);}}]),e}());function L(e){var t=e._isInstOfEnum(),i=N.serializers[t?u.default.Enum:e.qualifiedName];return i&&i[(t?e.getMetaClass():e).owningPackage.uri]}e.default=N}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226)],o=i.dj.d(n,(function(e){return[e.LABEL,e.PUSH_BUTTON,e.TOGGLE_BUTTON,e.DROP_DOWN_BUTTON,e.SPLIT_BUTTON,e.TOGGLE_SPLIT_BUTTON,e.TEXT_FIELD,e.TEXT_AREA,e.CHECK_BOX,e.RADIO_BUTTON,e.COMBO_BOX,e.SPINNER,e.LIST,e.LIST_ITEM,e.LIST_ITEM_WITH_CHECKBOX,e.LIST_ITEM_WITH_RADIO_BUTTON,e.LIST_ITEM_WITH_POPUP,e.LIST_ITEM_WITH_TEXTFIELD,e.POPUP_LIST,e.POPUP_LIST_PANEL,e.POPUP_LIST_SEPARATOR,e.POPUP_LIST_HEADER,e.QAB_PUSH_BUTTON,e.QAB_TOGGLE_BUTTON,e.QAB_DROP_DOWN_BUTTON,e.QAB_SPLIT_BUTTON,e.QAB_TOGGLE_SPLIT_BUTTON,e.QAB_GALLERY_CATEGORY_BUTTON,e.COLOR_PICKER_BUTTON,e.GRID_PICKER_BUTTON]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(659),i(254)],o=i.dj.d(n,(function(e,t){return{displayState:new t({type:"string",notInAction:!0,defaultValue:e.ICON,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{closePopupOnClick:new e({type:"boolean",notInAction:!1,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{region:new e({type:"string",notInAction:!0,defaultValue:"left",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(240),i(242),i(217),i(211),i(226),i(3009),i(3010)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{isGalleryPopupAttachedWithGallery:function(e){return e.domNode.classList.contains("gallery")},isAPopupList:function(e){return e===r.POPUP_LIST},isAListItemWithPopup:function(e){return e===r.LIST_ITEM_WITH_POPUP},isAMenubarWrapper:function(e){return e===r.MENUBAR_WRAPPER},isAToolbarWrapper:function(e){return e===r.TOOLBAR_WRAPPER},isAColumn:function(e){return e===r.COLUMN},isAPanel:function(e){return e===r.PANEL},supportsAction:function(e){return-1===a.indexOf(e)},isAFooterCell:function(e){return e===r.FOOTER_CELL},hasNoCorrespondingWidget:function(e){return s.indexOf(e)>-1},findParent:function(t,i){for(var n,o=null;t;){if(n=null,t.get("type")===i){o=t;break}t.domNode.parentNode&&(n=t.domNode.parentNode.getAttribute("dijitpopupparent")),t=n?e.byId(n):t.getParent()}return o},findParentToolstrip:function(e){return this.findParent(e,r.TOOLSTRIP)},findParentSection:function(e){return this.findParent(e,r.SECTION)},getClosestValue:function(e,t){for(var i,n=-1,o=e.length;o-n>1;)e[i=Math.round((n+o)/2)]<=t?n=i:o=i;return e[n]===t&&(o=n),[e[n],e[o]]},computeWidth:function(e,t,i){return parseInt(this._computeStyle(e,null,t,i).width)},computeHeight:function(e,t,i){return parseInt(this._computeStyle(e,t,null,i).height)},_computeStyle:function(e,t,i,n){var o,r;null==t&&(t="auto"),null==i&&(i="auto"),null==n&&(n=""),(o=document.createElement("div")).classList.add("dijitOffScreen"),o.classList.add("toolstrip"),o.style=n,document.body.appendChild(o),o.textContent=e;var a={width:(r=window.getComputedStyle(o,null)).width,height:r.height};return document.body.removeChild(o),a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{region:"left",_setRegionAttr:function(e){if("left"!==e&&"right"!==e)throw new Error('region property must "left" or "right"');this._set("region",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(210),i(217),i(216),i(215),i(3020),i(3021)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([r,o,a],{baseClass:"mwProgressBar",templateString:s,resize:function(e){var i;e&&e.w?i=e.w:i=n.getContentBox(this.domNode.parentNode).w;NaN!==i&&0!==i||(i=100),t.set(this.gutterNode,"transform","scaleX("+i/100+")")},startup:function(){this.inherited(arguments),this.resize()},_setValueAttr:function(e){this.inherited(arguments),t.set(this.progressNode,"transform","translateX("+(this.value-100)+"px)")},_showAnimationWave:function(e){var t=this.baseClass+"NoWave";!1===e?i.add(this.domNode,t):i.remove(this.domNode,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(306),i(227),i(228),i(210),i(217),i(213),i(221),i(223),i(204),i(206),i(248),i(231),i(238),i(277),i(307)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e("dijit._HasDropDown",g,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:!0,_onDropDownMouseDown:function(e){this.disabled||this.readOnly||("MSPointerDown"!=e.type&&"pointerdown"!=e.type&&e.preventDefault(),this.own(d.once(this.ownerDocument,u.release,c.hitch(this,"_onDropDownMouseUp"))),this.toggleDropDown())},_onDropDownMouseUp:function(e){var t=this.dropDown,i=!1;if(e&&this._opened){var n=r.position(this._buttonNode,!0);if(!(e.pageX>=n.x&&e.pageX<=n.x+n.w&&e.pageY>=n.y&&e.pageY<=n.y+n.h)){for(var a=e.target;a&&!i;)o.contains(a,"dijitPopup")?i=!0:a=a.parentNode;if(i){if(a=e.target,t.onItemClick){for(var s;a&&!(s=h.byNode(a));)a=a.parentNode;s&&s.onClick&&s.getParent&&s.getParent().onItemClick(s,e)}return}}}this._opened?t.focus&&(!1!==t.autoFocus||"mouseup"==e.type&&!this.hovering)&&(this._focusDropDownTimer=this.defer((function(){t.focus(),delete this._focusDropDownTimer}))):this.focus&&this.defer("focus")},_onDropDownClick:function(e){this._stopClickEvents&&(e.stopPropagation(),e.preventDefault())},buildRendering:function(){this.inherited(arguments),this._buttonNode=this._buttonNode||this.focusNode||this.domNode,this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var e={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";o.add(this._arrowWrapperNode||this._buttonNode,"dijit"+e+"ArrowButton")},postCreate:function(){this.inherited(arguments);var e=this.focusNode||this.domNode;this.own(d(this._buttonNode,u.press,c.hitch(this,"_onDropDownMouseDown")),d(this._buttonNode,"click",c.hitch(this,"_onDropDownClick")),d(e,"keydown",c.hitch(this,"_onKey")),d(e,"keyup",c.hitch(this,"_onKeyUp")))},destroy:function(){this._opened&&this.closeDropDown(!0),this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroyRecursive(),delete this.dropDown),this.inherited(arguments)},_onKey:function(e){if(!this.disabled&&!this.readOnly){var t=this.dropDown,i=e.target;if(t&&this._opened&&t.handleKey&&!1===t.handleKey(e))return e.stopPropagation(),void e.preventDefault();t&&this._opened&&e.keyCode==l.ESCAPE?(this.closeDropDown(),e.stopPropagation(),e.preventDefault()):!this._opened&&(e.keyCode==l.DOWN_ARROW||(e.keyCode==l.ENTER||e.keyCode==l.SPACE&&(!this._searchTimer||e.ctrlKey||e.altKey||e.metaKey))&&("input"!==(i.tagName||"").toLowerCase()||i.type&&"text"!==i.type.toLowerCase()))&&(this._toggleOnKeyUp=!0,e.stopPropagation(),e.preventDefault())}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp,this.toggleDropDown();var e=this.dropDown;e&&e.focus&&this.defer(c.hitch(e,"focus"),1)}},_onBlur:function(){this.closeDropDown(!1),this.inherited(arguments)},isLoaded:function(){return!0},loadDropDown:function(e){e()},loadAndOpenDropDown:function(){var e=new t,i=c.hitch(this,(function(){this.openDropDown(),e.resolve(this.dropDown)}));return this.isLoaded()?i():this.loadDropDown(i),e},toggleDropDown:function(){this.disabled||this.readOnly||(this._opened?this.closeDropDown(!0):this.loadAndOpenDropDown())},openDropDown:function(){var e=this.dropDown,t=e.domNode,i=this._aroundNode||this.domNode,a=this,s=f.open({parent:this,popup:e,around:i,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){a.closeDropDown(!0)},onCancel:function(){a.closeDropDown(!0)},onClose:function(){n.set(a._popupStateNode,"popupActive",!1),o.remove(a._popupStateNode,"dijitHasDropDownOpen"),a._set("_opened",!1)}});if(this.forceWidth||this.autoWidth&&i.offsetWidth>e._popupWrapper.offsetWidth){var l=i.offsetWidth-e._popupWrapper.offsetWidth,d={w:e.domNode.offsetWidth+l};this._origStyle=t.style.cssText,c.isFunction(e.resize)?e.resize(d):r.setMarginBox(t,d),"R"==s.corner[1]&&(e._popupWrapper.style.left=e._popupWrapper.style.left.replace("px","")-l+"px")}return n.set(this._popupStateNode,"popupActive","true"),o.add(this._popupStateNode,"dijitHasDropDownOpen"),this._set("_opened",!0),this._popupStateNode.setAttribute("aria-expanded","true"),this._popupStateNode.setAttribute("aria-owns",e.id),"presentation"===t.getAttribute("role")||t.getAttribute("aria-labelledby")||t.setAttribute("aria-labelledby",this.id),s},closeDropDown:function(e){this._focusDropDownTimer&&(this._focusDropDownTimer.remove(),delete this._focusDropDownTimer),this._opened&&(this._popupStateNode.setAttribute("aria-expanded","false"),e&&this.focus&&this.focus(),f.close(this.dropDown),this._opened=!1),this._origStyle&&(this.dropDown.domNode.style.cssText=this._origStyle,delete this._origStyle)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_removable:!1,_removeMessage:"",_getRemovableAttr:function(){return this.get("_removable")},_setRemovableAttr:function(e){if("boolean"!=typeof e)throw new Error("'removable' property expected a boolean value.");this._set("_removable",e),e?this.domNode.classList.add("mwRemovableTrue"):this.domNode.classList.remove("mwRemovableTrue")},_getRemoveMessageAttr:function(){return this.get("_removeMessage")},_setRemoveMessageAttr:function(e){if("string"!=typeof e)throw new Error("'_removeMessage' property expected a string value.");this._set("_removeMessage",e)},_emitRemoveEvent:function(){this.emit("remove"),this.remove()},remove:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(450),i(449),i(435),i(466),i(570),i(518),i(711),i(1319),i(1073),i(792),i(436),i(412),i(332),i(370),i(519),i(895),i(1322),i(1074),i(710),i(793),i(1323),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){return e(T.validate([t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C]),{visualFamily:"default",minWidth:38,getTitleNodes:function(){return[this.focusNode]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(343)],o=i.dj.d(n,(function(e,t,i){var n=e(null,{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,doNotSize:!1,_setSize:function(e,i){if(this.inherited(arguments),this._started&&!this.doNotSize){var n="";if("auto"!==i){var o,r,a,s,l,c,d,u,h=window.getComputedStyle(this.domNode),p=t.getMarginBox(this.get("iconNode")),f=t.getMarginBox(this.get("textNode")),g=t.getMarginBox(this.get("arrowNode")),m=1;if(n=parseInt(this._getAdjustedSize(e,i,this.domNode)),"width"===e&&"left"===this.get("iconAlignment")&&"inline"===this.get("arrowMode")){if((n-=d=parseInt(h.getPropertyValue("border-left-width"))+parseInt(h.getPropertyValue("border-right-width")))<(o=p.w+g.w))a=n/2,l=n/2;else{u=window.getComputedStyle(this.dropDownNode);var _=parseInt(u.getPropertyValue("padding-right"))+parseInt(u.getPropertyValue("border-right-width")),v=parseInt(u.getPropertyValue("padding-left"))+parseInt(u.getPropertyValue("border-left-width")),b=v+_;a=(n-b)/2-(o/2-p.w)+v,l=(n-b)/2-(o/2-g.w)+_}this._setDomStyles("width",a,l)}else if("height"!==e||"top"!==this.get("iconAlignment")||"inline"!==this.get("arrowMode")&&"auto"!==this.get("arrowMode"))if("width"!==e||"left"!==this.get("iconAlignment")||"block"!==this.get("arrowMode")&&"auto"!==this.get("arrowMode"))if("height"===e&&"top"===this.get("iconAlignment")&&"block"===this.get("arrowMode"))s=n-g.h-3,c=g.h+1,this._setDomStyles("height",s,c);else if("width"===e)d=parseInt(h.getPropertyValue("border-left-width"))+parseInt(h.getPropertyValue("border-right-width")),n=(n<this.maxWidth?n:this.maxWidth)>this.minWidth?n:this.minWidth,n-=d,this._setDomStyles("width",n,n);else{if("height"!==e)throw new Error("Invalid property value. The size type property expects one of these values: {'width', 'height', 'auto'}");n=(n<this.maxHeight?n:this.maxHeight)>this.minHeight?n:this.minHeight,this._setDomStyles("height",n,n)}else u=window.getComputedStyle(this.dropDownNode),d=parseInt(u.getPropertyValue("padding-left"))+parseInt(u.getPropertyValue("padding-right"))+parseInt(u.getPropertyValue("border-left-width"))+parseInt(u.getPropertyValue("border-right-width"))+parseInt(h.getPropertyValue("border-left-width"))+parseInt(h.getPropertyValue("border-right-width")),a=n-g.w-d,l=g.w,this._setDomStyles("width",a,l);else(r=p.h+f.h+g.h+m)<0&&(r=0),n<r?(s=n/2,c=n/2):(s=n/2-(r/2-p.h)+m,c=n/2-(r/2-(f.h+g.h))-m),this._setDomStyles("height",s,c)}else this.domNode.style["min"+this._capitalize(e)]=this["min"+this._capitalize(e)]+"px";this._set(e,i)}},_setDomStyles:function(e,t,i){var n=0,o=0,r=0;if("height"===e){var a=window.getComputedStyle(this.domNode),s=parseInt(a.getPropertyValue("border-bottom-width"))+parseInt(a.getPropertyValue("border-top-width"));n=this._getPaddingBorderSizeForHeight(this.buttonNode)+s,o=this._getPaddingBorderSizeForHeight(this.focusNode),r=this._getPaddingBorderSizeForHeight(this.dropDownNode)+s}this.buttonNode.style[e]=t-n+"px",this.buttonNode.style["max"+this._capitalize(e)]=t-n+"px",this.dropDownNode.style[e]=i-r-o+"px",this.dropDownNode.style["max"+this._capitalize(e)]=i-n-o+"px"},_getPaddingBorderSizeForHeight:function(e){var t=window.getComputedStyle(e,null);return parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"))+parseInt(t.getPropertyValue("border-top-width"))+parseInt(t.getPropertyValue("border-bottom-width"))},_capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}});return n._dependencies=[{mixin:i,orderDependent:!0}],n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(226)],o=i.dj.d(n,(function(e,t){var i=["Horizontal","Vertical"];return e(null,{orientation:"Horizontal",horizontalHeight:22,verticalHeight:72,_setOrientationAttr:function(e){if(-1===i.indexOf(e))throw new Error("'orientation' property expects one of these values: "+i);this.domNode.classList.remove(this._getClassNameForOrientation(this.get("orientation"))),this.domNode.classList.add(this._getClassNameForOrientation(e)),"Horizontal"===e?(this.set("iconProp","quickAccessIcon"),this.set("iconAlignment","left")):"Vertical"===e&&(this.set("iconProp","icon"),this.set("iconAlignment","top")),this._set("orientation",e),this._started&&this._checkAndFixClippedText()},_getClassNameForOrientation:function(e){return"mw"+e+"Orientation"},startup:function(){this.inherited(arguments),this._checkAndFixClippedText()},_isWidthSetOnColumn:function(){var e;return this.getParent&&(e=this.getParent()),e&&e.get("type")===t.COLUMN&&e.get("width")>0},_checkAndFixClippedText:function(){if(this._isWidthSetOnColumn()&&(this.get("type")===t.PUSH_BUTTON||this.get("type")===t.TOGGLE_BUTTON)){var e=!1;if(this.textNode&&this.textNode.classList.contains("avoidTextClipping")&&(e=!0,this.textNode.classList.remove("avoidTextClipping")),"Vertical"===this.get("orientation")&&this.textNode){var i=this.textNode.getAttribute("data-text-content");if(i&&i.trim().split(" ").length-1>1&&this.contentWrapperNode&&this.domNode){var n=window.getComputedStyle(this.contentWrapperNode),o=window.getComputedStyle(this.domNode);isNaN(parseFloat(n.height))?e&&this.textNode.classList.add("avoidTextClipping"):parseFloat(n.height)>parseFloat(o.height)&&this.textNode.classList.add("avoidTextClipping")}}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(567),i(518),i(436),i(710)],o=i.dj.d(n,(function(e,t,i,n,o){function r(e,t){return!(!e||!t)&&(Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1}).call(e,t)}var a=e(null,{showText:!0,_setTextAttr:function(){this.inherited(arguments),this._placeTextInNode(this.get("text"),this.textNode||this.domNode)},_setShowTextAttr:function(e){if("boolean"!=typeof e)throw new Error("'showText' property expects a boolean!");this._restrictModelUpdate?this.showText=e:this._set("showText",e),!e||""===this.get("textOverride")&&""===this.get("text")||this.get("textOverride")===t.DO_NOT_DISPLAY?this.domNode.classList.add("mwNoText"):this.domNode.classList.remove("mwNoText"),this._placeTextInNode(this.get("text"),this.textNode||this.domNode),this._updateTooltip(e)},_updateTooltip:function(){r(this.domNode,".compactToolstrip *")?this._updateTitleInDOM(""):(this.showText?this._excludeTextInTooltip=!0:this._excludeDescriptionInTooltip=!0,this.inherited(arguments),delete this._excludeTextInTooltip,delete this._excludeDescriptionInTooltip)},_updateDataTextContent:function(e,t,i){this.showText?(t||this.textNode||this.domNode).setAttribute("data-text-content",i?e:this._getTextForDOM(e,t)):(t||this.textNode||this.domNode).setAttribute("data-text-content","")},_updateNoTextClass:function(){!this.showText||""===this.get("textOverride")&&""===this.get("text")||this.get("textOverride")===t.DO_NOT_DISPLAY?this.domNode.classList.add("mwNoText"):this.domNode.classList.remove("mwNoText")}});return a._dependencies=[{mixin:o,orderDependent:!0},{mixin:i,orderDependent:!1},{mixin:n,orderDependent:!1}],a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(240),i(204),i(210),i(217),i(257),i(385),i(256),i(660),i(3126),i(795)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){i.isAsync||s(0,(function(){require(["dojo/dnd/AutoSource","dojo/dnd/Target"])}));var h=t("dojo.dnd.Source",d,{isSource:!0,horizontal:!1,copyOnly:!1,selfCopy:!1,selfAccept:!0,skipForm:!1,withHandles:!1,autoSync:!1,delay:0,accept:["text"],generateText:!0,constructor:function(e,t){n.mixin(this,n.mixin({},t));var i=this.accept;if(i.length){this.accept={};for(var r=0;r<i.length;++r)this.accept[i[r]]=1}this.isDragging=!1,this.mouseDown=!1,this.targetAnchor=null,this.targetBox=null,this.before=!0,this._lastX=0,this._lastY=0,this.sourceState="",this.isSource&&o.add(this.node,"dojoDndSource"),this.targetState="",this.accept&&o.add(this.node,"dojoDndTarget"),this.horizontal&&o.add(this.node,"dojoDndHorizontal"),this.topics=[l.subscribe("/dnd/source/over",n.hitch(this,"onDndSourceOver")),l.subscribe("/dnd/start",n.hitch(this,"onDndStart")),l.subscribe("/dnd/drop",n.hitch(this,"onDndDrop")),l.subscribe("/dnd/cancel",n.hitch(this,"onDndCancel"))]},checkAcceptance:function(e,t){if(this==e)return!this.copyOnly||this.selfAccept;for(var i=0;i<t.length;++i){for(var n=e.getItem(t[i].id).type,o=!1,r=0;r<n.length;++r)if(n[r]in this.accept){o=!0;break}if(!o)return!1}return!0},copyState:function(e,t){return!!e||(arguments.length<2&&(t=this==u.manager().target),t?!!this.copyOnly&&this.selfCopy:this.copyOnly)},destroy:function(){h.superclass.destroy.call(this),e.forEach(this.topics,(function(e){e.remove()})),this.targetAnchor=null},onMouseMove:function(e){if(!this.isDragging||"Disabled"!=this.targetState){h.superclass.onMouseMove.call(this,e);var t=u.manager();if(!this.isDragging&&this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var i=this.getSelectedNodes();i.length&&t.startDrag(this,i,this.copyState(c.getCopyKeyState(e),!0))}if(this.isDragging){var n=!1;this.current&&(this.targetBox&&this.targetAnchor==this.current||(this.targetBox=r.position(this.current,!0)),n=this.horizontal?e.pageX-this.targetBox.x<this.targetBox.w/2==r.isBodyLtr(this.current.ownerDocument):e.pageY-this.targetBox.y<this.targetBox.h/2),this.current==this.targetAnchor&&n==this.before||(this._markTargetAnchor(n),t.canDrop(!this.current||t.source!=this||!(this.current.id in this.selection)))}}},onMouseDown:function(e){this.mouseDown||!this._legalMouseDown(e)||this.skipForm&&c.isFormElement(e)||(this.mouseDown=!0,this._lastX=e.pageX,this._lastY=e.pageY,h.superclass.onMouseDown.call(this,e))},onMouseUp:function(e){this.mouseDown&&(this.mouseDown=!1,h.superclass.onMouseUp.call(this,e))},onDndSourceOver:function(e){if(this!==e)this.mouseDown=!1,this.targetAnchor&&this._unmarkTargetAnchor();else if(this.isDragging){var t=u.manager();t.canDrop(!("Disabled"==this.targetState||this.current&&t.source==this&&this.current.id in this.selection))}},onDndStart:function(e,t,i){this.autoSync&&this.sync(),this.isSource&&this._changeState("Source",this==e?i?"Copied":"Moved":"");var n=this.accept&&this.checkAcceptance(e,t);this._changeState("Target",n?"":"Disabled"),this==e&&u.manager().overSource(this),this.isDragging=!0},onDndDrop:function(e,t,i,n){this==n&&this.onDrop(e,t,i),this.onDndCancel()},onDndCancel:function(){this.targetAnchor&&(this._unmarkTargetAnchor(),this.targetAnchor=null),this.before=!0,this.isDragging=!1,this.mouseDown=!1,this._changeState("Source",""),this._changeState("Target","")},onDrop:function(e,t,i){this!=e?this.onDropExternal(e,t,i):this.onDropInternal(t,i)},onDropExternal:function(e,t,i){var n=this._normalizedCreator;this.creator?this._normalizedCreator=function(t,i){return n.call(this,e.getItem(t.id).data,i)}:this._normalizedCreator=i?function(t){var i=e.getItem(t.id),n=t.cloneNode(!0);return n.id=c.getUniqueId(),{node:n,data:i.data,type:i.type}}:function(t){var i=e.getItem(t.id);return e.delItem(t.id),{node:t,data:i.data,type:i.type}},this.selectNone(),i||this.creator||e.selectNone(),this.insertNodes(!0,t,this.before,this.current),!i&&this.creator&&e.deleteSelectedNodes(),this._normalizedCreator=n},onDropInternal:function(e,t){var i=this._normalizedCreator;if(!this.current||!(this.current.id in this.selection)){if(t)this.creator?this._normalizedCreator=function(e,t){return i.call(this,this.getItem(e.id).data,t)}:this._normalizedCreator=function(e){var t=this.getItem(e.id),i=e.cloneNode(!0);return i.id=c.getUniqueId(),{node:i,data:t.data,type:t.type}};else{if(!this.current)return;this._normalizedCreator=function(e){var t=this.getItem(e.id);return{node:e,data:t.data,type:t.type}}}this._removeSelection(),this.insertNodes(!0,e,this.before,this.current),this._normalizedCreator=i}},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){h.superclass.onOverEvent.call(this),u.manager().overSource(this),this.isDragging&&"Disabled"!=this.targetState&&this.onDraggingOver()},onOutEvent:function(){h.superclass.onOutEvent.call(this),u.manager().outSource(this),this.isDragging&&"Disabled"!=this.targetState&&this.onDraggingOut()},_markTargetAnchor:function(e){this.current==this.targetAnchor&&this.before==e||(this.targetAnchor&&this._removeItemClass(this.targetAnchor,this.before?"Before":"After"),this.targetAnchor=this.current,this.targetBox=null,this.before=e,this.targetAnchor&&this._addItemClass(this.targetAnchor,this.before?"Before":"After"))},_unmarkTargetAnchor:function(){this.targetAnchor&&(this._removeItemClass(this.targetAnchor,this.before?"Before":"After"),this.targetAnchor=null,this.targetBox=null,this.before=!0)},_markDndStatus:function(e){this._changeState("Source",e?"Copied":"Moved")},_legalMouseDown:function(e){if("touchstart"!=e.type&&!a.isLeft(e))return!1;if(!this.withHandles)return!0;for(var t=e.target;t&&t!==this.node;t=t.parentNode){if(o.contains(t,"dojoDndHandle"))return!0;if(o.contains(t,"dojoDndItem")||o.contains(t,"dojoDndIgnore"))break}return!1}});return h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(242),i(210),i(222),i(221),i(223),i(206),i(256),i(248),i(660),i(1327),i(1795)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=t("dojo.dnd.Manager",[r],{constructor:function(){this.avatar=null,this.source=null,this.nodes=[],this.copy=!0,this.target=null,this.canDropFlag=!1,this.events=[]},OFFSET_X:a("touch")?4:16,OFFSET_Y:a("touch")?4:16,overSource:function(e){this.avatar&&(this.target=e&&"Disabled"!=e.targetState?e:null,this.canDropFlag=Boolean(this.target),this.avatar.update()),c.publish("/dnd/source/over",e)},outSource:function(e){this.avatar?this.target==e&&(this.target=null,this.canDropFlag=!1,this.avatar.update(),c.publish("/dnd/source/over",null)):c.publish("/dnd/source/over",null)},startDrag:function(e,t,r){function a(e){e.preventDefault(),e.stopPropagation()}h.autoScrollStart(n.doc),this.source=e,this.nodes=t,this.copy=Boolean(r),this.avatar=this.makeAvatar(),n.body().appendChild(this.avatar.node),c.publish("/dnd/start",e,t,this.copy),this.events=[l(n.doc,d.move,i.hitch(this,"onMouseMove")),l(n.doc,d.release,i.hitch(this,"onMouseUp")),l(n.doc,"keydown",i.hitch(this,"onKeyDown")),l(n.doc,"keyup",i.hitch(this,"onKeyUp")),l(n.doc,"dragstart",a),l(n.body(),"selectstart",a)];var s="dojoDnd"+(r?"Copy":"Move");o.add(n.body(),s)},canDrop:function(e){var t=Boolean(this.target&&e);this.canDropFlag!=t&&(this.canDropFlag=t,this.avatar.update())},stopDrag:function(){o.remove(n.body(),["dojoDndCopy","dojoDndMove"]),e.forEach(this.events,(function(e){e.remove()})),this.events=[],this.avatar.destroy(),this.avatar=null,this.source=this.target=null,this.nodes=[]},makeAvatar:function(){return new p(this)},updateAvatar:function(){this.avatar.update()},onMouseMove:function(e){var t=this.avatar;if(t){h.autoScrollNodes(e);var i=t.node.style;i.left=e.pageX+this.OFFSET_X+"px",i.top=e.pageY+this.OFFSET_Y+"px";var n=Boolean(this.source.copyState(u.getCopyKeyState(e)));this.copy!=n&&this._setCopyStatus(n)}a("touch")&&e.preventDefault()},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var t=Boolean(this.source.copyState(u.getCopyKeyState(e)));c.publish("/dnd/drop/before",this.source,this.nodes,t,this.target,e),c.publish("/dnd/drop",this.source,this.nodes,t,this.target,e)}else c.publish("/dnd/cancel");this.stopDrag()}},onKeyDown:function(e){if(this.avatar)switch(e.keyCode){case s.CTRL:var t=Boolean(this.source.copyState(!0));this.copy!=t&&this._setCopyStatus(t);break;case s.ESCAPE:c.publish("/dnd/cancel"),this.stopDrag()}},onKeyUp:function(e){if(this.avatar&&e.keyCode==s.CTRL){var t=Boolean(this.source.copyState(!1));this.copy!=t&&this._setCopyStatus(t)}},_setCopyStatus:function(e){this.copy=e,this.source._markDndStatus(this.copy),this.updateAvatar(),o.replace(n.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"))}});return u._manager=null,f.manager=u.manager=function(){return u._manager||(u._manager=new f),u._manager},f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(215),i(216),i(255),i(446),i(3131),i(3139),i(571),i(3145),i(3147),i(1805),i(3149),i(1077)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([i,n,o],{value:"#ff0000",recentlyUsedColors:[],standardColors:[],displayView:"standard",autoColor:"",showAuto:!1,showNone:!1,showFlat:!1,showInterp:!1,showTexturemap:!1,recentColorsTitle:p.recentColors,_colorStylesShown:0,_STANDARD_COLORS:"standard_colors",_RECENT_COLORS:"recent_colors",_GRADIENT:"gradient",_SPINNER:"spinner",_displayViewType:{STANDARD:"standard",CUSTOM:"custom"},_isStarted:!1,_parsedStandardColors:"",_previewTitle:p.preview,templateString:h,baseClass:"mwColorPicker",constructor:function(){this._set("recentlyUsedColors",["#ff0000","#ff00ff","#ffff00","#00ff00","#ffffff","#00ffff","#0000ff"]),this._set("standardColors",l.getStandardColors())},postMixInProperties:function(){this._set("_parsedStandardColors",JSON.stringify(this.get("standardColors"))),this.inherited(arguments)},postCreate:function(){this.inherited(arguments),this.standardButton=new r({buttonGroup:"ColorPickerViewButtons"+this.domNode.id,checked:!0,icon:"mwColorPickerToggleButtonStandard",width:24,height:24,description:p.standardColors}),this.standardButton.domNode.setAttribute("data-test-id","standardColorsButton"),this.standardButton.placeAt(this.standardButtonNode),this.customButton=new r({buttonGroup:"ColorPickerViewButtons"+this.domNode.id,icon:"mwColorPickerToggleButtonCustom",width:24,height:24,description:p.customColors}),this.customButton.domNode.setAttribute("data-test-id","customColorsButton"),this.customButton.placeAt(this.customButtonNode),this.paletteNode.set("showTitle",!1),this.titleNode.textContent=p.standardColors,this.previewContainerNode.textContent=p.preview,this.standardButtonNode.setAttribute("title",p.standardColors),this.customButtonNode.setAttribute("title",p.customColors),this.own(this.paletteNode.on("change",this._handleWidgetChange.bind(this,this._STANDARD_COLORS)),this.paletteNode.on("previewchange",this._handlePaletteCellPreviewChange.bind(this)),t(this.standardButton,"change",this._switchToStandard.bind(this)),t(this.customButton,"change",this._switchToCustom.bind(this)))},_emitPreviewEvent:function(e){this.emit("preview",{mwEventData:{propertyName:"value",oldValue:this.get("value"),newValue:e}})},_handleColorStylePreviewChange:function(e){var t;if("mouseenter"===e.eventData.type){var i=this.standardPickerRow.querySelector(".mwPaletteCellInPreview");i&&i.classList.remove("mwPaletteCellInPreview"),e.eventData.target.classList.add("mwPaletteCellInPreview"),this._setPreviewColorStyle(e.value),t=e.value}else e.eventData.target.classList.remove("mwPaletteCellInPreview"),t=this.get("value"),this._setPreview(t);this._emitPreviewEvent(t)},_setPreview:function(e){this._isColorStyle(e)?this._setPreviewColorStyle(e):this._setPreviewColor(e)},_handlePaletteCellPreviewChange:function(e){var t=e.value;if("mouseenter"===e.eventData.type||"focus"===e.eventData.type){var i=this.standardPickerRow.querySelector(".mwPaletteCellInPreview");i&&i.classList.remove("mwPaletteCellInPreview"),e.eventData.target.classList.add("mwPaletteCellInPreview")}else e.eventData.target.classList.remove("mwPaletteCellInPreview"),t=this.get("value");this._setPreview(t),this._emitPreviewEvent(t)},startup:function(){this.inherited(arguments),this._isStarted=!0,this.standardButton.startup(),this.customButton.startup(),this.displayView===this._displayViewType.CUSTOM&&(this.colorGradientNode.startup(),this.colorSpinnerNode.startup())},_setValueAttr:function(e){this._isColorStyle(e)?this._updateViewFromColorStyleChange(e):(this.displayView===this._displayViewType.STANDARD?(this.paletteNode.set("value",e,!1),this._colorStylesShown&&this._updateColorStyleSelection(this.value,e),this.recentColorsWidgetNode&&this.recentColorsWidgetNode.set("value",e,!1)):void 0!==this.colorGradientNode&&(this.colorGradientNode.set("value",e),this.colorSpinnerNode.set("value",e)),this._setPreviewColor(e)),this._set("value",e)},_isColorStyle:function(e){return-1!==[u.AUTO,u.NONE,u.FLAT,u.INTERP,u.TEXTUREMAP].indexOf(e)},_removeRecentColorsWidget:function(){if(this.recentColorsWidgetNode)for(this.recentColorsWidgetNode.destroy();this.recentColorsNode.lastChild;)this.recentColorsNode.removeChild(this.recentColorsNode.lastChild);this.recentColorsWidgetNode=null},_createRecentColorsWidget:function(){this.recentColorsWidgetNode=new a({palette:[this.recentlyUsedColors],title:this.get("recentColorsTitle"),value:this.value}),this.own(this.recentColorsWidgetNode.on("change",this._handleWidgetChange.bind(this,this._RECENT_COLORS)),this.recentColorsWidgetNode.on("previewchange",this._handlePaletteCellPreviewChange.bind(this))),this.recentColorsWidgetNode.placeAt(this.recentColorsNode).startup()},_isEmptyRecentlyUsedColors:function(){return 0===this.recentlyUsedColors.length},_updateRecentColorsWidget:function(){this._removeRecentColorsWidget(),this._isEmptyRecentlyUsedColors()||this._createRecentColorsWidget()},_setRecentlyUsedColorsAttr:function(e){this._set("recentlyUsedColors",e.slice(0,7)),this._updateRecentColorsWidget()},_setRecentColorsTitleAttr:function(e){this._set("recentColorsTitle",e),this.recentColorsWidgetNode&&this.recentColorsWidgetNode.set("title",e)},_setDisplayViewAttr:function(e){e===this._displayViewType.STANDARD?(this._switchToStandard(),this.standardButton&&this.standardButton.set("checked",!0)):e===this._displayViewType.CUSTOM&&(this._switchToCustom(),this.customButton&&this.customButton.set("checked",!0))},_setAutoColorAttr:function(e){this._set("autoColor",e),this._updateAutoColorSwatch(e),this.value!==u.AUTO&&this.value!==e||this._updateViewFromColorStyleChange(u.AUTO)},_setShowAutoAttr:function(e){this._handleColorStyleSet(e,"autoColorNode",u.AUTO),this._updateAutoColorSwatch(this.autoColor)},_updateAutoColorSwatch:function(e){if(this.autoColorNode)if(""===e)this.autoColorNode.colorStyleSwatch.classList.add("mwColorStyleSwatchDefault"),this.autoColorNode.colorStyleSwatch.style.background="";else{this.autoColorNode.colorStyleSwatch.classList.remove("mwColorStyleSwatchDefault");var t=new l(e);this.autoColorNode.colorStyleSwatch.style.background=t.toCss()}},_setShowNoneAttr:function(e){this._handleColorStyleSet(e,"noneColorNode",u.NONE)},_setShowFlatAttr:function(e){this._handleColorStyleSet(e,"flatColorNode",u.FLAT)},_setShowInterpAttr:function(e){this._handleColorStyleSet(e,"interpColorNode",u.INTERP)},_setShowTexturemapAttr:function(e){this._handleColorStyleSet(e,"texturemapColorNode",u.TEXTUREMAP)},_handleColorStyleSet:function(e,t,i){var n=i.charAt(0).toUpperCase()+i.slice(1);e&&void 0===this[t]?(this[t]=this._createColorStyle(i),this.value===i&&this._updateSelection(i,!0)):e||(this._destroyColorStyle(this[t]),this[t]=void 0),this._set("show"+n,e)},_createColorStyle:function(e){var t=new d({value:e});return t.placeAt(this.stylesContainerNode),t.startup(),this.own(t.on("change",this._handleColorStyleChange.bind(this)),t.on("previewchange",this._handleColorStylePreviewChange.bind(this))),this._colorStylesShown++,t},_destroyColorStyle:function(e){e&&(e.destroy(),this._colorStylesShown--)},_switchToCustom:function(e){e&&e.stopPropagation(),this.standardPickerRow.classList.add("mwColorPickerViewHidden"),this.customPickerRow.classList.remove("mwColorPickerViewHidden"),this.titleNode.textContent=p.customColors,this.titleNode.classList.add("mwColorPickerTitleCustomColors"),this.colorGradientNode||(this.colorGradientNode=new c,this.own(this.colorGradientNode.on("change",this._handleGradientChange.bind(this))),this.own(this.colorGradientNode.on("preview",this._handleGradientPreview.bind(this))),this.colorGradientNode.placeAt(this.gradientContainerNode),this.colorSpinnerNode=new s,this.own(this.colorSpinnerNode.on("change",this._handleSpinnerChange.bind(this))),this.colorSpinnerNode.placeAt(this.spinnerContainerNode),this._isStarted&&(this.colorGradientNode.startup(),this.colorSpinnerNode.startup()));var t=90+30*(Math.floor(this._colorStylesShown/2)+this._colorStylesShown%2);this.colorGradientNode.domNode.style.setProperty("--color-gradient-height",t+"px"),this._colorStylesShown>0?this.colorGradientNode.domNode.classList.add("mwColorGradientWithStyles"):this.colorGradientNode.domNode.classList.remove("mwColorGradientWithStyles"),this.colorGradientNode.set("value",this.value),this.colorSpinnerNode.set("value",this.value),this._set("displayView",this._displayViewType.CUSTOM)},_switchToStandard:function(e){e&&e.stopPropagation(),this.standardPickerRow.classList.remove("mwColorPickerViewHidden"),this.customPickerRow.classList.add("mwColorPickerViewHidden"),this.titleNode.textContent=p.standardColors,this.titleNode.classList.remove("mwColorPickerTitleCustomColors"),this.paletteNode.set("value",this.value,!1),this.recentColorsWidgetNode&&this.recentColorsWidgetNode.set("value",this.value,!1),this._set("displayView",this._displayViewType.STANDARD)},_handleGradientChange:function(e){var t=e.mwEventData.newValue;e.stopPropagation(),this._handleWidgetChange(this._GRADIENT,t)},_handleSpinnerChange:function(e){var t=e.mwEventData.newValue;e.stopPropagation(),this._handleWidgetChange(this._SPINNER,t)},_handleColorStyleChange:function(e){e.stopPropagation(),this._updateViewFromColorStyleChange(e.value),this._setValueAndEmitChange(e.value)},_handleGradientPreview:function(e){var t=e.mwEventData.newValue;this.colorSpinnerNode.set("value",t),this._setPreviewColor(t)},_updateViewFromColorStyleChange:function(e){var t=e===u.AUTO?this.autoColor:null;this.recentColorsWidgetNode&&this.recentColorsWidgetNode.set("value",t,!1),this.paletteNode.set("value",t,!1),this._updateColorStyleSelection(this.value,e),this._setPreviewColorStyle(e)},_handleWidgetChange:function(e,t){switch(e){case this._STANDARD_COLORS:this.recentColorsWidgetNode&&this.recentColorsWidgetNode.set("value",t,!1);break;case this._RECENT_COLORS:this.paletteNode.set("value",t,!1);break;case this._GRADIENT:this.colorSpinnerNode.set("value",t);break;case this._SPINNER:this.colorGradientNode.set("value",t)}this._colorStylesShown&&this._updateSelection(this.value,!1),this._setPreviewColor(t),this._setValueAndEmitChange(t)},_setValueAndEmitChange:function(e){var t=this.get("value");this._set("value",e),this.emit("change",{mwEventData:{propertyName:"value",oldValue:t,newValue:e}})},_setPreviewColor:function(e){var t=new l(e);this.previewColorNode.style.background=t.toCss(),this.previewColorNode.textContent="",this.previewColorNode.classList.remove("mwColorPickerPreviewNone"),this.previewColorNode.classList.remove("mwColorPickerPreviewColorStyle")},_setPreviewColorStyle:function(e){switch(e){case u.AUTO:this.autoColor?this._setPreviewColor(this.autoColor):this._updatePreviewStyle(e);break;case u.NONE:this.previewColorNode.classList.add("mwColorPickerPreviewNone"),this.previewColorNode.classList.remove("mwColorPickerPreviewColorStyle"),this.previewColorNode.style.background="",this.previewColorNode.textContent="";break;case u.FLAT:case u.INTERP:case u.TEXTUREMAP:this._updatePreviewStyle(e)}},_updatePreviewStyle:function(e){this.previewColorNode.style.background="",this.previewColorNode.classList.add("mwColorPickerPreviewColorStyle"),this.previewColorNode.classList.remove("mwColorPickerPreviewNone"),this.previewColorNode.textContent=p[e]},_updateColorStyleSelection:function(e,t){this._updateSelection(e,!1),this._updateSelection(t,!0)},_updateSelection:function(e,t){switch(e){case this.autoColor:this.autoColorNode&&this.autoColorNode.set("selected",t);break;case u.AUTO:case u.NONE:case u.FLAT:case u.INTERP:case u.TEXTUREMAP:this[e+"ColorNode"]&&this[e+"ColorNode"].set("selected",t)}},_qeSetColorByName:function(e){var t=l.fromMATLABFriendlyName(e);this._qeSetColorAndEmitChange(t)},_qeSetColorByRGB:function(e){var t=l.fromDoubleRGB(e).toHex();this._qeSetColorAndEmitChange(t)},_qeSetColorAndEmitChange:function(e){var t=this.get("value");this.set("value",e),this.emit("change",{mwEventData:{propertyName:"value",oldValue:t,newValue:e}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-focus","accept")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(212),i(206),i(241),i(229),i(1081),i(900),i(3264)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){window.ChildWindowManager={_childInfo:{},_childBounds:{},open:function(e){var i,n=this,o=new t;return e.persistBounds&&e.id?(i=this._childBounds[e.id])||!this._sessionDataService?this._doOpen(e,i,o):this._sessionDataService.retrieve("childWidowBounds"+e.id).then((function(t){n._doOpen(e,t,o)}),(function(){n._doOpen(e,i,o)})):this._doOpen(e,i,o),o.promise},openSynchronously:function(e){var t;e.persistBounds&&e.id&&(t=this._childBounds[e.id]);var i=this._preOpen(e,t);let{child:n}=e;return n?(n.src=i.url.href,n.contentWindow.name=i.name):n=e.tabbed?window.open(i.url,i.name):window.open(i.url,i.name,"location=no,menubar=no,toolbar=no,status=no,"+l(i.initialBounds)),n?(i.window=n,this._postOpen(n,e,i)):(this._reportOpenFailure(),delete this._childInfo[i.name]),n},_doOpen:function(e,t,i){var n=this._preOpen(e,t);this._tryOpen(e,n,i)},_preOpen:function(e,t){t||(t=e.bounds||{x:-1,y:-1,w:-1,h:-1}),r.applyDefaultBounds(t,e.singleDocument),r.convertBoundsToPixels(t),window.cefclient&&(t=r.convertOrigin(window,t));var i="_"+o.generateUuid(),n={id:e.id,initialData:e.initialData,closeHandler:e.closeHandler,name:i,url:e.url||new URL(e.page,window.location.href),initialBounds:t};return this._childInfo[i]=n,n},_tryOpen:function(t,i,o){var r=this,c=t.tabbed?window.open(i.url,i.name):window.open(i.url,i.name,"location=no,menubar=no,toolbar=no,status=no,"+l(i.initialBounds));if(c)this._postOpen(c,t,i),o.resolve(c);else if(window.cefclient)this._reportOpenFailure(),delete this._childInfo[i.name],o.reject("open failed");else{var d;d=t.childTitle?e.replace(s.titledOpenBlockedMessage,{placeholder:t.childTitle}):s.openBlockedMessage,d+="\n"+s.openPermissionRequest+"\n\n"+s.allowPopupsInstruction,n.displayConfirmDialog(s.windowOpenTitle,d,{icon:"question",modal:!0,buttonText:[s.open,a.cancel],closeCallback:function(e){1===e.response?r._tryOpen(t,i,o):(delete r._childInfo[i.name],o.reject("open permission denied"))}})}},_postOpen:function(e,t,n){var o=this;window.cefclient?setTimeout((function(){r.setWindowBounds(e,n.initialBounds)}),0):r.setWindowBounds(e,n.initialBounds),e.originalOpener=e.opener;var a=e.name;i(e,"beforeunload",(function(){setTimeout((function(){e.closed&&o._childClosed(e,a)}),500)})),n.poller=setInterval((function(){e.closed&&o._childClosed(e,a)}),1e3),t.id&&r.addWindowBoundsListener(e,(function(i){o._childBounds[t.id]=i;var n=e.originalOpener.ChildWindowManager._sessionDataService;n&&n.save("childWidowBounds"+t.id,i)}))},getInitialData:function(e){var t=this._getChildInfo().initialData;return e&&t&&this._discardInitialData(),t},opened:function(){var e=this;setTimeout((function(){e._cancelPolling()}),2e3)},bringToFront:function(e){var t=this.getWindowById(e);t&&r.bringToFront(t)},setSessionDataService:function(e){this._sessionDataService=e},closeChildren:function(){var e=this;Object.keys(this._childInfo).forEach((function(t){var i=e._childInfo[t];i.window&&("IFRAME"===i.window.nodeName?i.window.remove():i.window.close(),delete i.window)})),this._childInfo={}},_reportOpenFailure:function(){var e;window.cefclient?e=s.unableToOpenMessage:(e=s.openBlockedMessage,e+="\n\n"+s.allowPopupsInstruction),n.displayAlertDialog(s.windowOpenTitle,e,{icon:"warning",modal:!0})},_handleOpenFailure:function(){this._reportOpenFailure},_getChildInfo:function(){return(window.opener||window.parent).ChildWindowManager._childInfo[window.name]},_discardInitialData:function(){var e=this._getChildInfo();e&&delete e.initialData},_cancelPolling:function(){var e=this._getChildInfo();e&&e.poller&&((window.opener||window.parent).clearInterval(e.poller),delete e.poller)},_childClosed:function(e,t){var i=this._childInfo[t];i&&(i.poller&&clearInterval(i.poller),delete this._childInfo[t],i.closeHandler&&i.closeHandler({id:i.id,childWindow:e}))},getWindowByName:function(e){var t=this._childInfo[e];return t?t.window:null},getWindowById:function(e){for(var t=Object.keys(this._childInfo),i=0;i<t.length;i++){var n=this._childInfo[t[i]];if(n.id===e)return n.window}return null}};var l=function(e){return"left="+e.x+",top="+e.y+",width="+e.w+",height="+e.h};return window.ChildWindowManager}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{SEQUENCE_SEPARATOR:"//",SEQUENCE_SEPARATOR_REGEX:/\/\/(?!\/)/,STATUS_ENUM:{INVALID_START_OF_SEQUENCE:0,INVALID_MIDDLE_OF_SEQUENCE:1,PARTIAL_MATCH:2,COMPLETE_MATCH:3},_FUNCTION_KEY_REGEX:/f\d{1,2}/g,handleMultistrokeState:function(e,t,i){var n,o=[];switch(e){case this.STATUS_ENUM.INVALID_START_OF_SEQUENCE:n=!1;break;case this.STATUS_ENUM.INVALID_MIDDLE_OF_SEQUENCE:case this.STATUS_ENUM.PARTIAL_MATCH:n=!0;break;case this.STATUS_ENUM.COMPLETE_MATCH:n=!0;var r=t.getCompleteSequence();o=i.getEnabledActionsForKeyBinding(r)}return{actions:o,preventDefault:n}},isValidMultistrokeStrokeList:function(e){if(1===e.length)return!0;var t=e[0];return!!(t.ctrlKey||t.metaKey||t.altKey)||!!t.keyName.match(this._FUNCTION_KEY_REGEX)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3466),i(3467),i(3468),i(3469)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/breakpoints",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1088)],o=i.dj.d(n,(function(e){return{capabilityFullList:[e.InteractiveCommandLine,e.Swing,e.ComplexSwing,e.LocalClient,e.WebWindow,e.ModalDialogs,e.Debugging],getFullCapabilitiesList:function(){return this.capabilityFullList.slice()},getCapabilitiesListDiff:function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(453),i(1092)],o=i.dj.d(n,(function(e,t,i){return{getAbbreviation:function(e){if(!e||"MathRoot"!==e.className)return null;return function e(i){return i&&"abbreviation"!==i[t.MWMMLX_TEMPLATE]?"MathRow"===i.className&&1===i.children.length?e(i.children[0]):null:i}(e.children[0])},isNonEmptyRow:function(e){return e&&e instanceof i&&e.children&&e.children.length>0},sanitizeModel:function(e){return e.children&&e.children.forEach((function(t){t&&(t.parent=e,this.sanitizeModel(t))}),this),e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1095)],o=i.dj.d(n,(function(e,t){return e(t,{traverseSelection:function(e){if(this._range=e,this._buildCommonAncestors(),e.fileEndSelected()){for(var t=this._commonAncestors[this._commonAncestors.length-1];t&&!t.isRootNode()&&!t.isRootContainer();)this._commonAncestors.pop(),t=this._commonAncestors[this._commonAncestors.length-1];t.isRootNode()||this._commonAncestors.pop()}if(this._doTreeWalk(),e.fileEndSelected()){var i=this._range.getEndPosition().getNode().rootContainer();i.childrenAreContainers||(this._visitor.traverseSibling(i),this._enterNode(i),this._leaveNode(i))}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(3625),i(1894)],o=i.dj.d(n,(function(e,t){var i=[];return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}return r(n,null,[{key:"createContext",value:function(t){if(t&&t.context instanceof HTMLElement){window.cefclient&&window.cefclient.sendMessage&&"function"==typeof window.cefclient.sendMessage&&window.cefclient.sendMessage("enable-dragndrop");var n=new e(t);return i.push(n),n}throw new Error("Expected: config.context should be of type HTMLElement")}},{key:"NativeType",get:function(){return t.TYPES}}]),n}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},onLogEvent:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(234)],o=i.dj.d(n,(function(e){return{isHiddenCodeNode:function(t,i){return i.hideCode&&e.isCodeContainer(t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1841)],o=i.dj.d(n,(function(e,t){return e(t,{getRangeDescriptions:function(e){throw new Error("Unimplemented API: MW.rtc.margin.AbstractRangeMarginDecorator.createDecorationForLineNumber")},getPriority:function(){throw new Error("Unimplemented API: MW.rtc.margin.AbstractRangeMarginDecorator.getPriority")},getId:function(){throw new Error("Unimplemented API: MW.rtc.margin.AbstractRangeMarginDecorator.getId")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i,n,o,r){this.div=e,this.startLine=t,this.endLine=i,this.decorator=n,this.shouldExpandUp=o,this.shouldExpandDown=r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){return{_NAME_KEY:"name",_SIZE_KEY:"size",_UNIT_KEY:"unit",_STYLE_KEY:"style",_FAMILY_PROPERTY:"font-family",_SIZE_PROPERTY:"font-size",_WEIGHT_PROPERTY:"font-weight",_STYLE_PROPERTY:"font-style",_COLOR_PROPERTY:"color",_PIXEL_UNIT:"px",_POINT_UNIT:"pt",_DEFAULT_MONOSPACED_FAMILY:'Menlo, Monaco, Consolas, "Courier New", monospace',_DEFAULT_SERIF_FAMILY:'"Times New Roman", Times, serif',_DEFAULT_SANS_SERIF_FAMILY:"Helvetica, Arial, sans-serif",_NORMAL_VALUE:"normal",_BOLD_VALUE:"bold",_ITALIC_VALUE:"italic",_SEPARATOR:", ",_FONT_SIZE_WITH_UNIT_REGEX:new RegExp(/^\d+(\.\d+)?(pt|px)$/),_FONT_SIZE_NUMBER_REGEX:new RegExp(/^\d+(\.\d+)?$/),getFontFamilyProperty:function(){return this._FAMILY_PROPERTY},getFontSizeProperty:function(){return this._SIZE_PROPERTY},getFontWeightProperty:function(){return this._WEIGHT_PROPERTY},getFontStyleProperty:function(){return this._STYLE_PROPERTY},getColorProperty:function(){return this._COLOR_PROPERTY},getPixelUnit:function(){return this._PIXEL_UNIT},getPointUnit:function(){return this._POINT_UNIT},getDefaultMonospacedFontFamilyValue:function(){return this._DEFAULT_MONOSPACED_FAMILY},getDefaultSerifFontFamilyValue:function(){return this._DEFAULT_SERIF_FAMILY},getDefaultSansSerifFontFamilyValue:function(){return this._DEFAULT_SANS_SERIF_FAMILY},getDefaultFontSizeUnit:function(){return this._PIXEL_UNIT},getFontFamilyValueFromSettingValue:function(e,t){if("string"==typeof e&&(e=Array(e)),!Array.isArray(e))throw new Error("FontCssUtilities.getFontFamilyValueFromSettingValue: Invalid setting value for font family");var i=e.findIndex(this._isJavaLogicalFont);return i>-1&&(t=this._getFontFamilyValueFromLogicalFont(e[i]),e=e.slice(0,i)),t=t||"",(e=e.length?'"'+e.join('"'+this._SEPARATOR+'"')+'"':"")+(e.length&&t.length?this._SEPARATOR:"")+t},_normalizeSettingValue:function(t){return t=t.toString().trim(),e("mac")&&(t=t.replace(this._POINT_UNIT,this._PIXEL_UNIT)),t},getFontSizeValueFromSettingValue:function(t,i){if(t=this._normalizeSettingValue(t.toString().trim()),e("mac")&&(i=this._PIXEL_UNIT),this._FONT_SIZE_WITH_UNIT_REGEX.test(t))return t;if(this._FONT_SIZE_NUMBER_REGEX.test(t))return t+(i||this.getDefaultFontSizeUnit());throw new Error("FontCssUtilities.getFontSizeValueFromSettingValue: Invalid setting value for font size")},getFontSizeValueFromSettingValueInPx:function(e){if(e=this._normalizeSettingValue(e.toString().trim()),this._FONT_SIZE_NUMBER_REGEX.test(e)){return 96*parseFloat(e)/72}const t=e.slice(-2,-1),i=parseFloat(e);return t===this._POINT_UNIT?72*i/92:i},getFontWeightValueFromSettingValue:function(e){return"number"==typeof e&&[1,3].indexOf(e)>-1||"string"==typeof e&&this._isBoldValue(e)||Array.isArray(e)&&e.some(this._isBoldValue)?this._BOLD_VALUE:this._NORMAL_VALUE},getFontStyleValueFromSettingValue:function(e){return"number"==typeof e&&[2,3].indexOf(e)>-1||"string"==typeof e&&this._isItalicValue(e)||Array.isArray(e)&&e.some(this._isItalicValue)?this._ITALIC_VALUE:this._NORMAL_VALUE},getColorValueFromSettingValue:function(e){if(Array.isArray(e)){var t=e.length;if(3===t)return"rgb("+e.join(",")+")";if(4===t)return"rgba("+e.join(",")+")"}throw new Error("FontCssUtilities.getColorValueFromSettingValue: Invalid setting value for color")},_getFontFamilyValueFromLogicalFont:function(e){switch(e){case"Monospaced":return this._DEFAULT_MONOSPACED_FAMILY;case"Serif":return this._DEFAULT_SERIF_FAMILY;case"SansSerif":case"Dialog":case"DialogInput":return this._DEFAULT_SANS_SERIF_FAMILY;default:return null}},_isJavaLogicalFont:function(e){return["Monospaced","Serif","SansSerif","Dialog","DialogInput"].includes(e)},_isBoldValue:function(e){return"BOLD"===e.toUpperCase()},_isItalicValue:function(e){return"ITALIC"===e.toUpperCase()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getLineColumnFromOffset:function(e,t){"string"==typeof e&&(e=e.split("\n"));var i,n=0;for(i=0;i<e.length;i+=1){if(n+e[i].length>=t)return{line:i,column:t-n};n=n+e[i].length+1}return{line:0,column:0}},getOffsetFromLine:function(e,t){"string"==typeof e&&(e=e.split("\n"));var i,n=0;for(i=0;i<e.length;i+=1){if(t===i)return[n,e[i].length];n=n+e[i].length+1}return[n,0]},getRangeOfCodeToFormat:function(e,t){var i=e.split("\n"),n=this.getOffsetFromLine(i,t.line),o={cursor:n[0]};if(i[t.line]&&(o.cursor+=t.column),t.anchor&&t.anchor.hasOwnProperty("line")&&t.anchor.hasOwnProperty("column")){var r=this.getOffsetFromLine(i,t.anchor.line);n[0]<r[0]?(o.start=n[0],o.end=r[0]+r[1]):(o.start=r[0],o.end=n[0]+n[1])}else o.start=0,o.end=e.length,o.cursorLine=t.line;return o},getWhiteSpaces:function(e){var t,i="";for(t=0;t<e;t+=1)i+=" ";return i},generateUniqueName:function(e,t){if(-1===t.indexOf(e))return e;for(var i,n=2;;){if(i=e+n,-1===t.indexOf(i))return i;n+=1}},getInternalRtcId:function(e){return"internal_"+e},isInternalRtcId:function(e){return 0===e.indexOf("internal_")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{_INVALID_RANGE:null,getActionId:function(){throw new Error("Unimplemented API: MW.rtc.plugins.execution.range.AbstractExecutionRange.getActionId")},getRange:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.execution.range.AbstractExecutionRange")},willEnterDebugMode:function(){return!1},willStartExecution:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{ERROR:1,WARNING:2}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(4041),i(205)],o=i.dj.d(n,(function(e,t){return class extends t{requires(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.view","rtc.cursorcontroller","rtc.document.eventcache","rtc.view.current","rtc.editortabservice","language.interface.autoindent.service","rtc.autowhitespacelinenotifier"]}}createInstance(){return new e(...arguments)}}}),e,t),e.exports=o},function(e,t,i){e.exports={FUNCTION_ASSISTANT:"functionAssistant",COMPLETION:"completion",FILE_NAME:"filename",FOLDER_NAME:"foldername",SCALAR:"scalar"}},function(e,t,i){var n,o;n=[i(313),i(672),i(1112)],o=i.dj.d(n,(function(e,t,i){return{_METADATA_WIDGET_TYPE_PROPERTY:"widgetType",checkLeavingContext:function(e,t){return this._checkLeavingRange(e,t)},_checkLeavingRange:function(t,n){var o=t.range;return e.isPositionInRange(n,o)&&(t.nonTabMode||t.metaData.hasSignatures()||0!==e.comparePositions(n,o.getStartPosition())||0!==e.comparePositions(n,o.getEndPosition()))?null:i.LEAVING_RANGE},isInSameContext:function(e,t,i){return!!t&&(t.leftMostBounds.startLine===e.getLeftMostBounds(i).startLine&&(t.leftMostBounds.left===e.getLeftMostBounds(i).left&&(e.hasSignatures()===t.metaData.hasSignatures()&&!e.hasOwnProperty(this._METADATA_WIDGET_TYPE_PROPERTY))))},getLineColumnForOffsetBounds:function(e,t,i){if(!e)return null;var n=e.left,o=e.right,r=this.getLineColumnForOffsetPosition(n,t,i),a=this.getLineColumnForOffsetPosition(o,t,i);return{startLine:r.line,startColumn:r.column,endLine:a.line,endColumn:a.column}},getLineColumnForOffsetPosition:function(e,t,i){var n=i.getLineColumn(),o=n.line,r=n.column,a=i.getNode().rootContainer(),s=a.getTextForPositioning().length,l=t-r+1,c=l+s,d=0;e<l?d=-1:e>c&&(d=1);for(var u=o;!(e>=l&&e<=c);){if(u+=d,!(a=-1===d?a.previousSibling():a.nextSibling()))return null;s=a.getTextForPositioning().length,-1===d?l=(c=l-1)-s:1===d&&(c=(l=c+1)+s)}return{column:s-(c-e)+1,line:u}},isContextInOpaqueNode:function(e,i){var n=e.currentBounds,o=i.createPositionAtLineColumn(n.startLine-1,n.left-1),r=i.createPositionAtLineColumn(n.endLine-1,n.right-1),a=o.getNode(),s=!1,l=r.getNode();l instanceof t&&(s=!0);for(var c=a;c!==l;)c instanceof t&&(s=!0),c=c.nextNode();return o.destroy(),r.destroy(),s}}}),e,t),e.exports=o},function(e,t,i){e.exports={CURRENT_SECTION:"Section",CURRENT_SECTION_AND_STALE_SECTIONS_ABOVE:"SectionAndStaleSectionsAbove",CURRENT_SECTION_TO_END:"SectionToEnd",ALL:"AllSections",NOTHING:"Nothing"}},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{VARIABLE_HIGHLIGHT:"variableHighlight",NON_LOCAL_VARIABLE_HIGHLIGHTING:"nonlocalVariableHighlighting",VARIABLE_HIGHLIGHT_PREVIEW:"variableHighlightPreview",NON_LOCAL_VARIABLEHIGHLIGHTING_PREVIEW:"nonlocalVariableHighlightingPreview"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1420)],o=i.dj.d(n,(function(e,t,i){return e(i,{getApplicableNodeClass:function(){t.error("Unimplemented: getApplicableNodeClass")},isConvertibleTo:function(e){t.error("Unimplemented: isConvertibleTo")},isConvertibleFrom:function(e){t.error("Unimplemented: isConvertibleFrom")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4444)],o=i.dj.d(n,(e,t)=>class extends e{requires(){return{createInstance:["rtc.settings.service","language.interface.smartindent"]}}createInstance(){return new t(...arguments)}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4447)],o=i.dj.d(n,(e,t)=>class extends e{requires(){return{createInstance:["rtc.settings.service","language.interface.lexer"]}}createInstance(){return new t(...arguments)}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(207)],o=i.dj.d(n,(function(e){return class extends e{constructor(e,t,i){super(),i.setDefaults(e,t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(672),i(1423)],o=i.dj.d(n,(function(e,t,i){return e(t,{className:"LiveAppInlineNode",constructor:function(e){(e=e||{}).taskID?(this.taskID=e.taskID,this.appIdentifier=i.getAppIdentifierFromTaskID(this.taskID)):(this.appIdentifier=e.appIdentifier,this.taskID=i.getTaskIDFromAppIdentifier(this.appIdentifier)),this.store={}},getAppIdentifier:function(){return this.appIdentifier},setAppIdentifier:function(e){this.appIdentifier=e},getTaskId:function(){return this.taskID},getUid:function(){return this.uid},setActive:function(e){this.getWidget().setActive(e)},setContext:function(e,t){this[e]=t},getContext:function(e){return this[e]},getStore:function(){return this.store},getWidget:function(){return this.widget},setWidget:function(e){this.widget=e},destroyWidget:function(){this.widget.destroy(),this.widget=null},_serializeAttributes:function(e){this.inherited(arguments),e.taskID=this.taskID||i.getTaskIDFromAppIdentifier(this.appIdentifier),e.appIdentifier=this.appIdentifier}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(932),i(822)],o=i.dj.d(n,(function(e,t,i){return e(i,{className:"LiveAppIntegratedInlineNode",constructor:function(e){e=e||{};var i=this.getStore();i.appName=e.appName||"",i.metadataCode=e.metadataCode||"",this.appVariables=e.appVariables||"",this.appVariablesUserMap=this._getJsonObject(e.appVariablesUserMap),this.appState=e.appState||"",this.autorun=void 0===e.autorun||null===e.autorun?null:!0===e.autorun||"1"===e.autorun,this.view=e.view||t.DEFAULT,this.collapsed=!0===e.collapsed||"1"===e.collapsed,this.code=e.code||"",this.numOfCodeLines=parseInt(e.numOfCodeLines,10)||0;var n=parseInt(e.lineOffsetForUpdate,10);this.lineOffsetForUpdate=isNaN(n)?-1:n,this.generateCodeAfterInsertion=e.generateCodeAfterInsertion||!1},_serializeAttributes:function(e){this.inherited(arguments),e.appVariables=this.appVariables,e.appVariablesUserMap=JSON.stringify(this.appVariablesUserMap),e.appState=this.appState,e.view=this.view,e.autorun=this.autorun?"1":"0",e.collapsed=this.collapsed?"1":"0",e.code=this.code,e.numOfCodeLines=this.numOfCodeLines,e.lineOffsetForUpdate=this.lineOffsetForUpdate},_getJsonObject:function(e){var t;try{t=JSON.parse(e)}catch(e){t={}}return t}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1424)],o=i.dj.d(n,(function(e){var t=e.DIRECTION_UP,i=e.DIRECTION_RIGHT,n=e.DIRECTION_DOWN,o=e.DIRECTION_LEFT,r=e.DIRECTION_NONE,a=function(e){return e.x},s=function(e){return e.y},l=function(e){return{max:{x:Math.max.apply(null,e.map(a)),y:Math.max.apply(null,e.map(s))},min:{x:Math.min.apply(null,e.map(a)),y:Math.min.apply(null,e.map(s))}}},c=function(e,t){return{x:t.x-e.x,y:t.y-e.y}},d=function(e,t){return u(c(e,t))},u=function(e){var t=Math.pow(e.x,2),i=Math.pow(e.y,2);return Math.sqrt(t+i)};return{arePointsWithinRadius:function(e,t,i){var n,o;return!(!e||!t)&&(n=e.x-t.x,o=e.y-t.y,Math.sqrt(n*n+o*o)<i)},getCenter:function(e){var t,i,n=l(e),o=n.max,r=n.min;return i=r,{x:((t=o).x+i.x)/2,y:(t.y+i.y)/2}},getAngle:function(e){var t,i,n=l(e),o=n.max,r=n.min;return t=o,i=r,Math.atan2(t.y-i.y,t.x-i.x)*(180/Math.PI)},getSpread:function(e){var t=l(e),i=t.max,n=t.min;return d(i,n)},computeDistance:c,computeMagnitude:u,computeDistanceMagnitude:d,computeDirection:function(e,a){var s=r,l=a.x-e.x,c=a.y-e.y;return 0===l&&0===c||(s=Math.abs(l)>Math.abs(c)?l<0?o:i:c<0?t:n),s}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{INACTIVE:"inactive",POSSIBLE:"possible",WAITING:"waiting",BEGAN:"began",PROGRESS:"progress",RECOGNIZED:"recognized",CANCELLED:"cancelled",DISABLED:"disabled"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(207),i(237),i(1129)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e){this._viewModel=e},getOperationsForLayout:function(e,t,i,n){return null},getOperationsForRemove:function(e,t){return null},getOperationsForRefresh:function(e){return null},getOperationsForResize:function(){return null},reset:function(){},getRefDomNode:function(e,t,i){var n=this._getRefPosition(e,t);if(!n)return null;var o=this._getDomNode(t),r={domNode:o,position:n,base:!0};return o&&this._isParentDetached(o)&&(r=this._getRefDomNodeForDetachedParent(e,t,r)||r),r},_getRefPosition:function(e,t){var i=this._getDomNode(t);return i&&i.parentElement?1===n.nodesInOrder(e,t)?"before":"after":null},_isParentDetached:function(e){var t=e.parentElement,i=t&&t.rteNode;return i&&!i.isRootNode()&&!i.rootContainer()},_getRefDomNodeForDetachedParent:function(e,t,i){var n,o,r=e.parent;return"before"===i.position&&e===r.firstChild()?(n=this._viewModel.getNodeBox(r),o="first"):"after"===i.position&&e===r.lastChild()&&(n=this._viewModel.getNodeBox(r),o="last"),n?{domNode:n,position:o,base:!0}:null},_isApplicable:function(e){return!0},_getDomNode:function(e){var i=this._viewModel.getNodeBox(e);if(i){var n=i.parentElement;return n&&t.contains(n,o.LINENODE_WRAPPER_CLASS)?n:i}},priority:function(){throw new Error("Unimplemented API: MW.rtc.plugins.view.layoutmanager.BaseRule.priority")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(225),i(206),i(213),i(210),i(211),i(215),i(216),i(411),i(4659)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([s,l],{templateString:d,postCreate:function(){this.currentBannerHeight=0,this._shouldResize=!0,this._createButtons(),this._setBannerText(),this._setIcon(),this._placeBanner(),this._setFocusBehavior()},_placeBanner:function(){switch(this.params.type){case"top":r.add(this.domNode,"top");break;case"bottom":r.add(this.domNode,"bottom")}this.params.parent&&("first"===this.params.position||"last"===this.params.position?a.place(this.domNode,this.params.parent,this.params.position):a.place(this.domNode,this.params.parent),this.resize())},resize:function(){var e=this.domNode.offsetHeight;this.currentBannerHeight!==e&&this.doResize(e)},doResize:function(e){this.currentBannerHeight=e,this._shouldResize&&(o.set(this.params.sibling,{height:"calc(100% - "+e+"px)"}),this.alertResize())},getBannerHeight:function(){return this.currentBannerHeight},enableResize:function(){this._shouldResize=!0},disableResize:function(){this._shouldResize=!1},_createButtons:function(){this.params.closable||o.set(this.closeButtonNode,"visibility","hidden");var e=this.params.buttons;e&&e.forEach((function(e){var i=a.create("div",{className:"bannerButton"}),n=new c({label:e.text});n.on("click",t.hitch(this,(function(){n.set("disabled","true"),e.callback()}))),n.placeAt(i),this.buttonsContainer.appendChild(i)}),this)},_setIcon:function(){this.params.iconType&&"error"===this.params.iconType&&r.add(this.iconNode,"errorIcon")},_setBannerText:function(){this.bannerTextNode.innerHTML=this.params.bannerText},alertResize:function(){this.params.resizer()},_setFocusBehavior:function(){this.own(n(this.domNode,"click",function(){this.focusService.setFocus()}.bind(this)))},closeBanner:function(){a.destroy(this.id),this.domNode&&(o.set(this.domNode,"top","0px"),"top"===this.params.type?r.remove(this.domNode,"top"):"bottom"===this.params.type&&r.remove(this.domNode,"bottom"),this.resize()),this.onClosed()},onClosed:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(225),i(204),i(224)],o=i.dj.d(n,(function(e,t,i){var n=e.NodeList;return t.extend(n,{_buildArrayFromCallback:function(e){for(var t=[],i=0;i<this.length;i++){var n=e.call(this[i],this[i],t);n&&(t=t.concat(n))}return t},_getUniqueAsNodeList:function(e){for(var t,n=[],o=0;t=e[o];o++)1==t.nodeType&&-1==i.indexOf(n,t)&&n.push(t);return this._wrap(n,null,this._NodeListCtor)},_getUniqueNodeListWithParent:function(t,i){var n=this._getUniqueAsNodeList(t);return(n=i?e._filterResult(n,i):n)._stash(this)},_getRelatedUniqueNodes:function(e,t){return this._getUniqueNodeListWithParent(this._buildArrayFromCallback(t),e)},children:function(e){return this._getRelatedUniqueNodes(e,(function(e,i){return t._toArray(e.childNodes)}))},closest:function(t,i){return this._getRelatedUniqueNodes(null,(function(n,o){do{if(e._filterResult([n],t,i).length)return n}while(n!=i&&(n=n.parentNode)&&1==n.nodeType);return null}))},parent:function(e){return this._getRelatedUniqueNodes(e,(function(e,t){return e.parentNode}))},parents:function(e){return this._getRelatedUniqueNodes(e,(function(e,t){for(var i=[];e.parentNode;)e=e.parentNode,i.push(e);return i}))},siblings:function(e){return this._getRelatedUniqueNodes(e,(function(e,t){for(var i=[],n=e.parentNode&&e.parentNode.childNodes,o=0;o<n.length;o++)n[o]!=e&&i.push(n[o]);return i}))},next:function(e){return this._getRelatedUniqueNodes(e,(function(e,t){for(var i=e.nextSibling;i&&1!=i.nodeType;)i=i.nextSibling;return i}))},nextAll:function(e){return this._getRelatedUniqueNodes(e,(function(e,t){for(var i=[],n=e;n=n.nextSibling;)1==n.nodeType&&i.push(n);return i}))},prev:function(e){return this._getRelatedUniqueNodes(e,(function(e,t){for(var i=e.previousSibling;i&&1!=i.nodeType;)i=i.previousSibling;return i}))},prevAll:function(e){return this._getRelatedUniqueNodes(e,(function(e,t){for(var i=[],n=e;n=n.previousSibling;)1==n.nodeType&&i.push(n);return i}))},andSelf:function(){return this.concat(this._parent)},first:function(){return this._wrap(this[0]&&[this[0]]||[],this)},last:function(){return this._wrap(this.length?[this[this.length-1]]:[],this)},even:function(){return this.filter((function(e,t){return t%2!=0}))},odd:function(){return this.filter((function(e,t){return t%2==0}))}}),n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(219),i(452)],o=i.dj.d(n,(function(e,t,i){return{writeToPath:function(n,o){var r=new e,a=i.splitImageDataURI(n);return a?(t.publish("/editor/exportutilities/base64tofile",{filePath:o,base64Data:a.data}),r.resolve()):r.reject("ImageRemoteService: Can not parse dataURI."),r}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(211),i(939),i(1134),i(247),i(229),i(209),i(1135)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{_DEFAULT_MAX_COLUMNS:50,_MAX_ROWS:10,_DEFAULT_CHAR_LENGTH:10,_REGEX_FOR_FIRST_ELEMENT:/^\s*\S*/,_REGEX_FOR_FIRST_COMPLEX_ELEMENT:/^[\s\d\.a-fA-F+-]+[ij]/i,createHeader:function(e){if(""===(e=o.treatHtmlLikeCommandWindow(e)))return e;var i=t.create("span",{className:"headerElement",innerHTML:e}).innerText,n=t.create("span",{className:"headerElement"});return n.innerText=i,n},createMatrixValue:function(e,t,i,n){var o=e.value,r=o.match(t),a=e.subtype&&"complex"===e.subtype,s={value:o,id:e.id,rows:e.rows,columns:e.columns,exponent:r,isComplex:a,columnWidth:n};return this.createValueElement(s,i)},createName:function(e){return e+" = "},createNameAndSummary:function(i,n,o,r,a){var s=t.create("div",{className:"veVariableName variableNameElement"}),l=t.create("span");l.textContent=this.createName(i);var c=t.create("span",{className:"veVariableValueSummary"});return(a=this.createHeader(a))?(c.innerText=a.innerText,e.add(c,"headerElement")):"double"!==r&&(c.textContent=n+"×"+o+" "+r,e.add(c,"veMetaSummary")),s.appendChild(l),s.appendChild(c),{summary:s,metaSummary:c}},createValueElement:function(e,i){var o=t.create("div",{className:"valueContainer"}),r=t.create("div",{className:"variableValue"}),a=e.value,s=i.maxColumns||this._DEFAULT_MAX_COLUMNS;e.columns>s&&(a=this._chopColumns(a,s,e)),r.textContent=a,o.appendChild(r),this._addEllipsis(o),i.createPromptController||n.updateEllipsesVisibility(o,e.columns,e.rows,s,this._MAX_ROWS);var l=e.columnWidth?e.columnWidth:this._getColumnWidth(a,e.exponent,e.isComplex),c=this.getCharsPerElement(a,e.exponent,e.isComplex);return this.updateLayoutInfo(l,e.columns,e.rows,c,o),{value:r,container:o}},updateLayoutInfo:function(e,t,i,n,o){var r={columnWidth:e,totalColumns:t,totalRows:i,charsPerColumn:n};o.setAttribute("data-layout",JSON.stringify(r))},_addEllipsis:function(e){var i=t.create("div",{className:"horizontalEllipsis hide"});e.appendChild(i);var n=t.create("div",{className:"verticalEllipsis hide"});e.appendChild(n)},_getColumnWidth:function(e,t,i){return this.getCharsPerElement(e,t,i)*s.getNumericCharacterWidth()},_chopColumns:function(e,t,i){if(!e)return null;var n,o="",r=e.split("\n"),a=r.length,s=this.getCharsPerElement(e,i.exponent,i.isComplex)*t;for(n=0;n<a-1;n+=1)o+=r[n].substr(0,s)+"\n";return o+=r[n].substr(0,s)},getCharsPerElement:function(e,t,i){var n=i?this._REGEX_FOR_FIRST_COMPLEX_ELEMENT:this._REGEX_FOR_FIRST_ELEMENT;if(t){var o=e.split("\n\n")[1];o||(o=e.substring(e.indexOf("\n")+1)||e),e=o}var r=n.exec(e);return r&&r.length>0?r[0].length:(a.error("Unexpected String Value"),this._DEFAULT_CHAR_LENGTH)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(204),i(268)],o=i.dj.d(n,(function(e,t,i){"use strict";var n=["accent","accentunder","actiontype","bevelled","class","close","cols","colspec","data-category","displaystyle","inline","kind","length","limitStyle","linethickness","mathsize","mathvariant","numPostPairs","open","rows","style","stretchy","symbolName","text","TeXSpacing"];function o(e){var t={};return n.forEach((function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}function r(t){if(!t)return["Null"];var n=t.className,a=o(t),s=[];return t.children&&(s=e.filter(t.children,(function(e){return!e||i.categorizeNode(e)!==i.CATEGORY.PLACEHOLDER_ATOM})),s=e.map(s,(function(e){return r(e)}))),[n,a,s]}return{INTERESTING_ATTRIBUTES:n,serializeRange:function(e,n,a){var s=[],l=i.categorizeNode(e);if(n=n||0,"atom"===l)void 0===a&&(a=e.text.length),s.push(["MathText",t.mixin(o(e),{text:e.text.substr(n,a-n)})]);else if("placeholder"===l||"structure-part"===l){void 0===a&&(a=e.children.length);for(var c=n;c<a;c+=1)(l=i.categorizeNode(e.children[c]))!==i.CATEGORY.PLACEHOLDER_ATOM&&s.push(r(e.children[c]))}return s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(225),i(1075)],o=i.dj.d(n,(function(e){return e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(333),i(401),i(283)],o=i.dj.d(n,(function(e,t,i){return{getAdjustedSelection:function(e,n){var o,r,a=e.getStartPosition(),s=e.getEndPosition(),l=i.getLiveAppLineNodeFromViewModel(a,n),c=i.getLiveAppLineNodeFromViewModel(s,n);if(!l&&!c)return null;if(l&&l===c&&this.isSelectionInCodeRange(e,l))return null;var d=e.fileEndSelected();if(l){var u=i.getStartPositionOfLiveApp(l);u.isEqualTo(a)||(o=u)}if(c&&!s.isEqualTo(i.getStartPositionOfLiveApp(c))){var h;if(i.hasGeneratedCodeInView(c))h=i.getEndPositionOfLiveApp(c);else if(l===c)h=c.endPosition();else{var p=(h=i.getEndPositionOfLiveApp(c)).getNode().rootContainer().nextSibling();p&&(h=p.startPosition())}h.isEqualTo(s)||(r=h),i.hasGeneratedCodeInView(c)&&(d=!0)}if(!o&&!r&&d===e.fileEndSelected())return null;var f=o||a,g=r||s,m=e.isReversed();return new t(f,g,m,d)},getSelectionOfLiveApp:function(e){return new t(i.getStartPositionOfLiveApp(e),i.getEndPositionOfLiveApp(e),!0,!1)},getSelectionOfGeneratedCode:function(e){return i.hasGeneratedCode(e)?new t(i.getStartPositionOfGeneratedCode(e),i.getEndPositionOfGeneratedCode(e),!1,!1):null},isSelectionOfLiveAppSame:function(e,t){return e&&t&&e.getStartPosition().isEqualTo(t.getStartPosition())&&e.getEndPosition().isEqualTo(t.getEndPosition())&&e.isReversed()===t.isReversed()},isSelectionInCodeRange:function(e,t){var n=i.getCodeRange(t);return!!n&&(n.getStartPosition().getLine()<=e.getStartPosition().getLine()&&n.getEndPosition().getLine()>=e.getEndPosition().getLine())},isLiveAppInCursorSelection:function(t,i){return!!i.hasSelection()&&i.getSelection().some((function(i){return e.isParagraphNodeInRange(t,i)}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(425),i(391),i(1130)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_LIVE_CONTROL_OUTER_NODE:"liveControlOuterNode",_LIVE_CONTROL_DECORATION_NODE:"liveControlDecoration",constructor:function(e,t,i,n,o,r){this._liveControlViewModel=e,this._decorationViewModel=t,this._liveControlDecorator=i,this._hiddenNodeModel=n,this._liveControlSizer=o,this._liveControlWidgetState=r},getApplicableNodeClass:function(){throw new Error("Unimplemented API: getApplicableNodeClass")},getWidgetClass:function(){throw new Error("Unimplemented API: getWidgetClass")},getNodeToLayout:function(e,t){var i=this._liveControlViewModel.getNodeWidget(e),n=document.activeElement,r=n.tagName;return i&&i.domNode.contains(n)&&("TEXTAREA"===r||"INPUT"===r)&&o.isUpdateOperation(t)?null:e},layout:function(e,t){var i=e.layoutInto(t,"div",{class:this._LIVE_CONTROL_OUTER_NODE}),n=this._createDecorationView(t,i);n&&i.appendChild(n);var o=this._liveControlViewModel.createLiveControl(t,this.getWidgetClass());return i.appendChild(o),i},postLayout:function(e){e.parent&&(this._liveControlWidgetState.updateWidgetDisplay(e),this._liveControlSizer.resize(e))},refresh:function(e,t,i,n){return this._liveControlViewModel.updateTextView(t,i),this._updateDecoration(t,i),null},_createDecorationView:function(e,i){var n=this._decorationViewModel.getDecoration(e);if(!n.length)return null;var o=t.create("div",{class:this._LIVE_CONTROL_DECORATION_NODE});return this._liveControlDecorator.addDecoration(n,o,i),0===o.children.length?null:o},_updateDecoration:function(e,t){var i=this._createDecorationView(e,t),n=t.querySelector("."+this._LIVE_CONTROL_DECORATION_NODE);n&&n.parentNode!==t||(n&&i?t.replaceChild(i,n):n&&!i?t.removeChild(n):!n&&i&&t.insertBefore(i,t.firstChild))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(323),i(2089)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){this.wrappable=!1},className:"CodeExampleLineNode",groupingType:"",containerType:function(){return this.parent.type},offsetInContainer:function(e){var t,i=0;e=e||this.rootContainer();for(var n=0;n<e.children.length;n++){if(this===(t=e.children[n]))return i;i=i+t.maxOffset()+e.CHILD_TEXT_SEPARATOR.length}return-1},getIndexInContainer:function(){return this.parent.children.indexOf(this)},_serializeAttributes:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(284)],o=i.dj.d(n,(function(e,t){return e(null,{_WordWrap:function(e){this.widget.setWordWrap(t.toJSBoolean(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(213),i(217),i(211),i(349),i(287),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{calculateInputPreferredSize:function(e,t,i){var n=r.getTextPosition(e.value,e.style.font);return{width:n.w+i,height:n.h+t}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=["tree-list-item","treeNode"],t=["mw-treeNode-renderer-container"],i=["mw-tree-drag-hover"],n=["mw-tree-node-hover"],o={invalid:"mw-tree-dnd-invalid"};return Object.freeze({get TREENODE(){return[].concat(e)},get TREENODE_CONTENT(){return[].concat(t)},get TREENODE_DRAG_HOVER(){return[].concat(i)},get TREENODE_HOVER(){return[].concat(n)},get TREENODE_STRIKETHROUGH(){return"mw-tree-node-strike-through"},get TREENODE_GUTTER(){return"mw-tree-node-gutter"},get TREENODE_GUTTER_WRAPPER(){return"mw-tree-node-gutter-wrapper"},get TREENODE_GUTTER_ITEM(){return"mw-tree-node-gutter-item"},get VALID_REORDERING(){return"valid"},get REORDERING(){return"reordering"},get INVALID_REORDERING(){return"invalid"},get DRAGGED_NODE_CLASS(){return"dragged-node"},get DnD_AVATAR_ICON_CLASSES(){return o},get EMPTY_NODE_CLASS(){return"empty"},get READ_ONLY_NODE_CLASS(){return"readonly"},get NON_INTERACTIVE_NODE_CLASS(){return"non-interactive"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e,t,i,n){this._dimensions={dimx:!0,dimy:!0,dimz:!0},void 0!==n.DimX&&void 0!==n.DimY&&void 0!==n.DimZ&&(this._dimensions.dimx=n.DimX,this._dimensions.dimy=n.DimY,this._dimensions.dimz=n.DimZ)},constrainLimitsToDimensions:function(e,t){var i=e.slice();return this._dimensions.dimx&&(i[0]=t[0],i[1]=t[1]),this._dimensions.dimy&&(i[2]=t[2],i[3]=t[3]),this._dimensions.dimz&&(i[4]=t[4],i[5]=t[5]),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206)],o=i.dj.d(n,(function(e,t){return e([],{createView:function(){this.inherited(arguments),this.own(t(this.getPeerNode(),"childAdded",this._handleContainerFitChildAdded.bind(this)),t(this.getPeerNode(),"childRemoved",this._handleContainerFitChildRemoved.bind(this)))},_handleContainerFitChildAdded:function(e){var i=e.data.child;this.isChildRelevantForFitSize(i)&&(void 0!==i.getController&&i.getController()&&this.own(t(i.getController(),"fitsizechanged",this.recomputeFitSize.bind(this))),this.recomputeFitSize())},_handleContainerFitChildRemoved:function(e){var t=e.data.child;this.isChildRelevantForFitSize(t)&&(t.getController().resetFitSize(),this.recomputeFitSize())},isChildRelevantForFitSize:function(e){return"matlab.ui.container.GridLayout"===e.getType()},getRelevantChildrenForFitSize:function(e){return e.filter((function(e){return this.isChildRelevantForFitSize(e)}),this)},computeContentFitSize:function(){var e=this.getPeerNode().getChildren();return this.getRelevantChildrenForFitSize(e).length>0?this.computeRelevantContentFitSize():[260,220]},computeRelevantContentFitSize:function(){var e=this.getPeerNode().getChildren(),t=this.getRelevantChildrenForFitSize(e),i=[0,0];return t.forEach((function(e){var t=e.getController().getFitSize();i[0]=Math.max(i[0],t[0]),i[1]=Math.max(i[1],t[1])})),i}})}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(1173)],o=i.dj.d(n,(function(e){"use strict";return function(){var t=function(e){var t={};if(null!==e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}return e},i=function(t,i){return!(!i||!i.value||"object"!==(void 0===t?"undefined":r(t))||!(e.EDITOR in t)&&!(e.RENDERER in t))};return{getDisplayValue:function(e,t,n){var o=e;return i(e,n)&&(t in e||(e[t]=""),o=e[t]),o},shallowCopy:t,getValueToSave:function(e,n,o,r){var a=n;return i(e,r)?((a=t(e))[o]=n,{oldValue:e,valueToSave:a}):{oldValue:e,valueToSave:a}}}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(301),i(632),i(267),i(271),i(460),i(972),i(973)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){"use strict";var c=function(e){return e.ctrlKey||e.meta||e.metaKey},d=Object.freeze({RANGE_SELECTION:"rangeSelection",COLUMN_SELECTION:"columnSelection",ROW_SELECTION:"rowSelection",SELECT_ALL:"selectAll"}),u=function(e,t){var i=Object.getOwnPropertyNames(t);if(0===i.length)return-1;if(e.x>=t[i[i.length-1]].right)return Number(i[i.length-1]);for(var n=0;n<i.length;n+=1){var o=i[n];if(e.x>=t[o].left&&e.x<t[o].right)return Number(o)}return-1},h=function(e,t){var i=Object.getOwnPropertyNames(t);if(0===i.length)return-1;if(e.y>=t[i[i.length-1]].bottom)return Number(i[i.length-1]);for(var n=0;n<i.length;n+=1){var o=i[n];if(e.y>=t[o].top&&e.y<t[o].bottom)return Number(o)}return-1},p=function(e,t,i){for(var n=Object.getOwnPropertyNames(t),o=n.length-1;o>-1;o-=1)if(e[i]>t[n[o]][i])return Number(n[o]);return Number(n[n.length-1])},f=function(e,t,i){for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;o+=1)if(e[i]<t[n[o]][i])return Number(n[o]);return Number(n[0])};return function(t){function g(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));return i._viewModel=t.viewModel,i._logicalViewPort=t.viewPortList[0],i._cellNav=new l(t.viewModel),i._events={},i._cellSelection=null,i._headerRects=function(){return{}},i._rowRects=function(){return{}},i._rowCellRects=function(){return{}},i._previousRange=e.range(),i._previousLeftPosition=0,i._previousTopPosition=0,i._sizes=new s(i._viewModel),i._resizeSelectionDragType=null,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(g,t),r(g,[{key:"eventList",value:function(){var e=this,t={};return t[o.protected.HEADER_RECTS]=function(t){return e._setHeaderRects(t)},t[o.protected.ROW_RECTS]=function(t){return e._setRowRects(t)},t[o.protected.ROW_CELL_RECTS]=function(t){return e._setRowCellRects(t)},t[o.protected.TABLE_CELL_CLICK]=function(t){return e._handleCellClick(t)},t[o.protected.TABLE_KEY_PRESS]=function(t){return e._handleKeyPress(t)},t[o.protected.COL_HEADER_CLICK]=function(t){return e._handleColumnHeaderClick(t)},t[o.protected.ROW_SELECTION_CLICK]=function(t){return e._handleRowHeaderClick(t)},t[o.protected.DOCUMENT_MOUSE_MOVE_INTERVAL]=function(t){return e._autoScroll(t)},t[o.protected.DATA_AREA_MOUSE_MOVE]=function(t){return e._trackMouseSelection(t)},t[o.protected.DOCUMENT_MOUSE_UP]=function(t){return e._endScroll(t)},t[o.protected.RESIZE_SELECTION_BEGIN]=function(t){return e._handleResizeBegin(t)},t[o.protected.RESIZE_SELECTION_END]=function(t){return e._handleResizeEnd(t)},t}},{key:"_getActiveCell",value:function(){var e=this._viewModel.getStateByKey(n.protected.ACTIVE_CELL);return e?e.rangeList[0]:e}},{key:"_canDragCellSelection",value:function(){var e=this._viewModel.getStateByKey(n.dragInProgress),t=this._viewModel.getStateByKey(n.protected.EDIT_STATE);return!e&&!t}},{key:"_rowCellRectsHeaderFallback",value:function(e){var t=this._rowCellRects(e);return 0===Object.keys(t).length&&void 0!==e.row&&void 0===e.col?this._headerRects():t}},{key:"_handleCellClick",value:function(e){this._resizeSelectionInProgress()||this._emitSelectionEvent(e)}},{key:"_handleResizeBegin",value:function(e){var t=e.event,n={x:t.x,y:t.y},o={startRow:h(n,this._rowRects()),activeCell:this._getActiveCell(),fulcrum:this._fulcrum,location:t.location},r=i.resizeSelectionType(o),a=r.cellType,s=r.dragType;this._resizeSelectionCellType=a,this._resizeSelectionDragType=s}},{key:"_handleResizeEnd",value:function(e){this._resizeSelectionCellType=null,this._resizeSelectionDragType=null}},{key:"_trackMouseSelection",value:function(t){if(this._canDragCellSelection()){var i=t.event,o=i.pointer,r=i.rowsOnly,a=i.colsOnly,s=h(o,this._rowRects()),l=s;l<0&&(l=this._logicalViewPort.getFirstVisibleRow());var c=u(o,this._rowCellRectsHeaderFallback({row:l})),d=this._getActiveCell();if(d){var p=d.rows.start,f=d.columns.start,g=e.range().setRows(p,p).setColumns(f,f);if(c>-1&&!r&&(g=g.setColumns(c,c)),s>-1&&!a&&(g=g.setRows(s,s)),!e.isRangeEqual(this._previousRange,g)){if(this._resizeSelectionInProgress()){var m=this._resizeSelection(g);if(!m)return;this._fulcrum=m.resizeFulcrum,g=m.resizeActiveCell}this._previousRange=g,this._viewModel.setState(n.protected.FOCUSED,null,[g]),this._viewModel.setState(n.protected.ACTIVE_CELL,null,[g]),t.event.shiftKey=!0,this._emitSelectionEvent(t)}}}}},{key:"_resizeSelection",value:function(e){if(0===this.getSelection().length)return null;var t={nextActiveCell:e,currentActiveCell:this._getActiveCell(),currentFulcrum:this._fulcrum,cellType:this._resizeSelectionCellType,dragType:this._resizeSelectionDragType};return i.resizeSelectionState(t)}},{key:"_resizeSelectionInProgress",value:function(){return i.resizeSelectionInProgress(this._resizeSelectionDragType)}},{key:"_autoScroll",value:function(t){var i=this._viewModel.getStateByKey(n.protected.ACTIVE_CELL);if(i=i?i.rangeList[0]:i,this._canDragCellSelection()&&i){var o=this._rowCellRectsHeaderFallback({row:i.rows.start});if(!(Object.keys(o).length<1)){var r=t.event,a=r.yDelta,s=r.xDelta,l=this._logicalViewPort.getScrollTop(),c=this._logicalViewPort.getScrollLeft(),d=this._logicalViewPort.getFirstVisibleColumn(),u=Math.floor(this._logicalViewPort.getLastVisibleColumn()),h=o[d].width/this._sizes.COL_WIDTH,p=Math.max(0,c+s/h),f=Math.max(0,l+a),g=this._setAutoScrollRange(t);if(t.event.rowsOnly||this._logicalViewPort.setScrollLeftPx(p),t.event.colsOnly||this._logicalViewPort.setScrollTopPx(f),!e.isRangeEqual(this._previousRange,g)){if(this._resizeSelectionInProgress()){var m=this._resizeSelection(g);if(!m)return;this._fulcrum=m.resizeFulcrum,g=m.resizeActiveCell}this._previousRange=g,this._viewModel.setState(n.protected.FOCUSED,null,[g]),this._viewModel.setState(n.protected.ACTIVE_CELL,null,[g]),this._fulcrum=this._fulcrum||e.range().setEntireColumns(u,u),t.event.shiftKey=!0,this._emitSelectionEvent(t)}}}}},{key:"_setAutoScrollRange",value:function(e){var t=e.event,n=t.yDelta,o=t.xDelta,r=t.pointer,a=this._getActiveCell(),s=this._logicalViewPort.getLastVisibleRow(),l=this._logicalViewPort.getFirstVisibleRow(),c=this._logicalViewPort.getLastVisibleColumn(),d=this._logicalViewPort.getFirstVisibleColumn();if(!e.event.rowsOnly)if(o>0)c=Math.min(c+15,this._viewModel.dataSize.columns.end),a=a.setColumns(c,c);else if(o<0){var p=Math.max(0,d-15);a=a.setColumns(p,p)}else{var f=u(r,this._rowCellRectsHeaderFallback({row:l}));f=i.getValidStartPoint(f),a=a.setColumns(f,f)}if(!e.event.colsOnly)if(n>0)s=Math.min(s+15,this._viewModel.dataSize.rows.end),a=a.setRows(s,s);else if(n<0){var g=Math.max(0,l-15);a=a.setRows(g,g)}else{var m=h(r,this._rowRects());m=i.getValidStartPoint(m),a=a.setRows(m,m)}return a}},{key:"_endScroll",value:function(e){var t=this._viewModel.getStateByKey(n.protected.ACTIVE_CELL);t=t?t.rangeList[0]:t;var i=e.event,o=i.yDelta,r=i.xDelta,a=i.containerRect;if(t){var s=this._rowCellRectsHeaderFallback({row:t.rows.start});if(!(Object.keys(s).length<1)){var l=this._rowCellRectsHeaderFallback({col:t.columns.start});if(!(Object.keys(l).length<1)){var c=this._getActiveCell();if(r>0){var d=p(a,s,"right");c=c.setColumns(d,d)}else if(r<0){var u=f(a,s,"left");c=c.setColumns(u,u)}if(o>0){var h=p(a,l,"bottom");c=c.setRows(h,h)}else if(o<0){var g=f(a,l,"top");c=c.setRows(g,g)}this._viewModel.setState(n.protected.FOCUSED,null,[c]),this._viewModel.setState(n.protected.ACTIVE_CELL,null,[c]),this._triggerCallbacks(e)}}}}},{key:"_triggerCallbacks",value:function(e){var t=e.event,i=t.yDelta,n=t.xDelta,r=t.callback,s={shiftKey:!0};i>0&&(s.keyCode=a.ARROW_DOWN,r(o.protected.TABLE_KEY_PRESS,s)),i<0&&(s.keyCode=a.ARROW_UP,r(o.protected.TABLE_KEY_PRESS,s)),n>0&&(s.keyCode=a.ARROW_RIGHT,r(o.protected.TABLE_KEY_PRESS,s)),n<0&&(s.keyCode=a.ARROW_LEFT,r(o.protected.TABLE_KEY_PRESS,s))}},{key:"_setHeaderRects",value:function(e){this._headerRects=e.event.children}},{key:"_setRowRects",value:function(e){this._rowRects=e.event.children}},{key:"_setRowCellRects",value:function(e){this._rowCellRects=e.event.children}},{key:"_computeEventForPlugin",value:function(e){return{shiftKey:e.event.shiftKey,ctrlKey:e.event.ctrlKey,metaKey:e.event.meta||e.event.metaKey,groupedSelection:e.event.groupedSelection}}},{key:"_handleKeyPress",value:function(t){var i=t.event;switch(i.keyCode){case a.ARROW_LEFT:case a.ARROW_RIGHT:case a.ARROW_UP:case a.ARROW_DOWN:case a.PAGE_UP:case a.PAGE_DOWN:case a.HOME:case a.END:this._emitSelectionEvent(t);break;case a.A:c(i)&&(t.event.nativeEvent.preventDefault(),this._selectAll(t));break;case a.SPACE:if(c(i)){var o=((this._viewModel.getStateByKey(n.protected.ACTIVE_CELL)||{}).rangeList||[{columns:{start:0}}])[0].columns.start;this._fulcrum=e.range().setEntireColumns(o,o),this._emitColumnSelectionEvent(t,o)}else if(i.shiftKey){var r=((this._viewModel.getStateByKey(n.protected.ACTIVE_CELL)||{}).rangeList||[{rows:{start:0}}])[0].rows.start;this._fulcrum=e.range().setEntireRows(r,r),this._emitRowSelectionEvent(t,r)}break;default:return!1}}},{key:"_selectAll",value:function(t){this._fulcrum=e.range().setEntireRows(0,1/0);var n=this._computeEventForPlugin(t);n.activeCell=i.getActiveCell(this._viewModel),n.fulcrum=this._fulcrum,this.emit(d.SELECT_ALL,n)}},{key:"_emitSelectionEvent",value:function(e){var t=i.getActiveCell(this._viewModel);this._fulcrum=this._fulcrum||t,e.event.shiftKey&&!c(e.event)||(this._fulcrum=t);var n=this._computeEventForPlugin(e);n.activeCell=t,n.fulcrum=this._fulcrum,this._resizeSelectionInProgress()&&(n.resizeSelectionInProgress=!0),this.emit(d.RANGE_SELECTION,n)}},{key:"_handleColumnHeaderClick",value:function(t){var i=t.event.column,o=t.event.columnEnd,r=this._logicalViewPort.getFirstVisibleRow(),a=this._cellNav.getScrollTopPosition(r),s=e.range().setRows(r,r).setColumns(i,i);this._logicalViewPort.setScrollTopPx(a),this._viewModel.setState(n.protected.FOCUSED,null,[s]),this._viewModel.setState(n.protected.ACTIVE_CELL,null,[s]),this._emitColumnSelectionEvent(t,i,o)}},{key:"_emitColumnSelectionEvent",value:function(t,n,o){var r=i.getActiveCell(this._viewModel);if(this._fulcrum=this._fulcrum||r,t.event.shiftKey){var a=this._fulcrum.columns.start;this._fulcrum=e.range().setEntireColumns(a,o)}else this._fulcrum=e.range().setEntireColumns(n,o);var s=this._computeEventForPlugin(t);s.activeCell=r,s.fulcrum=this._fulcrum||r,this.emit(d.COLUMN_SELECTION,s)}},{key:"_handleRowHeaderClick",value:function(t){var i=t.event.row,o=this._logicalViewPort.getFirstVisibleColumn(),r=this._cellNav.getScrollLeftPosition(o,this._rowCellRectsHeaderFallback({row:i})),a=e.range().setRows(i,i).setColumns(o,o);this._logicalViewPort.setScrollLeftPx(r),this._viewModel.setState(n.protected.FOCUSED,null,[a]),this._viewModel.setState(n.protected.ACTIVE_CELL,null,[a]),this._emitRowSelectionEvent(t,i)}},{key:"_emitRowSelectionEvent",value:function(t,n){var o=i.getActiveCell(this._viewModel);if(this._fulcrum=this._fulcrum||o,t.event.shiftKey){var r=this._fulcrum.rows.start;this._fulcrum=e.range().setEntireRows(r,r)}else this._fulcrum=e.range().setEntireRows(n,n);var a=this._computeEventForPlugin(t);a.activeCell=o,a.fulcrum=this._fulcrum,this.emit(d.ROW_SELECTION,a)}},{key:"_handleDoubleClick",value:function(e){this.emit(o.internal.TABLE_SELECTED_ACTION,{selectedRange:this.getSelectionState()})}},{key:"setSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.activeRange;Array.isArray(e)&&(this._viewModel.setState(n.protected.SELECTED,this._cellSelection,e),this._viewModel.setState(n.ACTIVE_RANGE,i))}},{key:"getSelection",value:function(){var e=this._viewModel.getStateByKey(n.protected.SELECTED);return e?e.rangeList:[]}},{key:"applyToCells",set:function(e){this._cellSelection=e?n.SELECT_CELLS:null}},{key:"selectHeaders",set:function(e){this._viewModel.setState(n.SELECT_HEADERS,!!e)}}],[{key:"event",get:function(){return d}}]),g}(t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={};return{getContextManager:function(t){return e[t]||null},setContextManager:function(t,i){!e.hasOwnProperty(t)&&i&&(e[t]=i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{MGG_CELL:"cell",VE_RENDERERS:"variableEditorRenderers",IS_METADATA:"variableEditorIsMetaData",NOT_EDITABLE:"variableEditorNotEditable",TEMPORARY:"variableEditorTemporary",MATRIX:"variableEditorMatrix",CHAR:"variableEditorChar",STRING:"variableEditorString",CELL:"variableEditorCell",LOGICAL:"variableEditorLogic",STRUCT:"variableEditorStruct",TIMESERIES:"variableEditorTimeseries",TIMETABLE:"variableEditorTimetable",SPARSE:"variableEditorSparse",DATETIME:"variableEditorDatetime",DURATION:"variableEditorDuration",CALENDAR_DURATION:"variableEditorCalendarDuration",OBJECT:"variableEditorObject",MIXED:"variableEditorMixed",TALL:"variableEditorTall",TALL_MATRIX:"variableEditorTallMatrix",TALL_CELL:"variableEditorTallCell",TALL_LOGICAL:"variableEditorTallLogical",TALL_OBJECT:"variableEditorTallObject",TALL_SPARSE:"variableEditorTallSparse",TALL_CHAR:"variableEditorTallChar",TALL_STRUCT:"variableEditorTallStruct",TALL_TIMETABLE:"variableEditorTallTimetable",TALL_MATLAB_TABLE:"variableEditorTallMatlabTable",TALL_CATEGORICAL:"variableEditorTallCategorical",TALL_DATETIME:"variableEditorTallDatetime",TALL_DURATION:"variableEditorTallDuration",TALL_CALENDAR_DURATION:"variableEditorTallCalendarDuration",TALL_STRING:"variableEditorTallString",MATRIX_ICON:"iconVariableEditorMatrix",CHAR_ICON:"iconVariableEditorChar",STRING_ICON:"iconVariableEditorString",CELL_ICON:"iconVariableEditorCell",LOGICAL_ICON:"iconVariableEditorLogic",STRUCT_ICON:"iconVariableEditorStruct",TIMESERIES_ICON:"iconVariableEditorTimeseries",TIMETABLE_ICON:"iconVariableEditorTimetable",SPARSE_ICON:"iconVariableEditorSparse",OBJECT_ICON:"iconVariableEditorObject",TABLE_ICON:"iconVariableEditorMatlabTable",CATEGORICAL_ICON:"iconVariableEditorCategorical",DATETIME_ICON:"iconVariableEditorDatetime",DURATION_ICON:"iconVariableEditorDuration",CALENDAR_DURATION_ICON:"iconVariableEditorCalendarDuration",MIXED_ICON:"iconVariableEditorMixed",TALL_ICON:"iconVariableEditorTall",TALL_MATRIX_ICON:"iconVariableEditorTallMatrix",TALL_CELL_ICON:"iconVariableEditorTallCell",TALL_LOGICAL_ICON:"iconVariableEditorTallLogical",TALL_OBJECT_ICON:"iconVariableEditorTallObject",TALL_SPARSE_ICON:"iconVariableEditorTallSparse",TALL_CHAR_ICON:"iconVariableEditorTallChar",TALL_STRUCT_ICON:"iconVariableEditorTallStruct",TALL_TIMETABLE_ICON:"iconVariableEditorTallTimetable",TALL_MATLAB_TABLE_ICON:"iconVariableEditorTallMatlabTable",TALL_CATEGORICAL_ICON:"iconVariableEditorTallCategorical",TALL_DATETIME_ICON:"iconVariableEditorTallDatetime",TALL_DURATION_ICON:"iconVariableEditorTallDuration",TALL_CALENDAR_DURATION_ICON:"iconVariableEditorTallCalendarDuration",TALL_STRING_ICON:"iconVariableEditorTallString",NOVARDISPLAY_ICON:"iconVariableEditorNoVarDisplay"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1434)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(){},initializeSynchronizable:function(e){this.own(i.before(e,"onCodeChanged",t.hitch(this,"markDirty")))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{HEADER_CONTEXT:"Header",COLUMN_CONTEXT:"Column",BODY_CONTEXT:"Body",SINGLE_COLUMN_CONTEXT:"SingleColumn",GROUP_COLUMN_CONTEXT:"GroupColumn",UNGROUP_COLUMN_CONTEXT:"UngroupColumn",ROW_CONTEXT:"Row",MULTIPLE_ROWS_CONTEXT:"multiplerows",MULTIPLE_COLUMNS_CONTEXT:"multiplecolumns",KEYBOARD_CONTEXT:"Keyboard",DATA_GRID_CONTEXT:"DataVariable",GRID_CONTEXT:"Grid",EMPTY_SPACE_CONTEXT:"EmptySpace",STRUCT_NUMERIC_CONTEXT:"structnum",TIME_CONTEXT:"Time",TABLE_CELL_CONTEXT:"TABLE_CELL",TABLE_KEYBOARD_CONTEXT:"TABLE"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(6487),i(888),i(258)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o,n],{baseClass:"mwWidget mwTextField mwSearchTextField",placeholder:i.Search,postCreate:function(){this.inherited(arguments),this.clearTextNode=document.createElement("div"),this.clearTextNode.classList.add("clearTextContainerNode"),this.domNode.insertBefore(this.clearTextNode,this.domNode.firstChild),this._toggleSearchBoxIcon(),this.on("typing",this._toggleSearchBoxIcon.bind(this)),this.clearTextNode.addEventListener("click",this._handleClearTextNodeClick.bind(this)),this.watch("value",this._toggleSearchBoxIcon.bind(this))},_toggleSearchBoxIcon:function(){""===this.inputNode.value?this.clearTextNode.classList.remove("clearTextIconVisible"):this.clearTextNode.classList.add("clearTextIconVisible")},_handleClearTextNodeClick:function(){this.set("value",""),this._triggerTypingEvent(""),this._toggleSearchBoxIcon()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=Object.freeze({COL_WIDTH:82,ROW_HEIGHT:22,TOOLTIP_MIN_WIDTH:300});return Object.freeze({TREE_COLUMN_INDEX:0,TREE_NODE_INDENTATION:18,dimensions:e,KEY_HANDLER_NAME:"keyHandlerName",KEY_CODE:"keyCode",KEY_HANDLER:"keyHandler",PLATFORMS:"platforms",MODIFIER_KEY_LIST:"modifierKeyList",ALT_KEY:"altKey",CTRL_KEY:"ctrlKey",META:"meta",SHIFT_KEY:"shiftKey"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return class{constructor(e){const t={},i=new Promise((i,n)=>{t.resolve=i,t.reject=n,e&&e(i,n)});let n=!1;return i.resolve=(...e)=>{n=!0,t.resolve(...e)},i.reject=(...e)=>{n=!0,t.reject(...e)},i.progress=(e,t)=>{if(t&&n)throw new Error("Attempting to update a fulfilled promise")},i.cancel=i.reject,i.promise=i,i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(213),i(206),i(222),i(223),i(215),i(216),i(255),i(238),i(243),i(1601),i(233),i(7522),i(2491),i(418),i(1216),i(2492),i(7528),i(7534)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){return e([s,l,c,r],{templateString:f,FILES_ONLY:0,DIRECTORIES_ONLY:1,constructor:function(e){e=e||{},this._fileIconProvider=e.fileIconProvider||m.getFileIconProvider(),this._columnRegistry=b.getRegistry({fileIconProvider:this._fileIconProvider}),this._fileService=e.fileService,this._pathService=e.pathService,this._selectedFilter={},this._excludeOnlyRoots=e.excludeOnlyRoots||[],this._actionManager=new y,this._selectionMode="number"==typeof e.selectionMode?e.selectionMode:this.FILES_ONLY,this.localization=g,this._okButtonText=e.approveButtonText||g.ok,this._okButton=new u({text:this._okButtonText}),this._okButton.set("disabled",!0),this._cancelButton=new u({text:g.cancel}),this._fsuiConfig=new _},postCreate:function(){this._pathService.getAccessibleRoots(),this.root=this._pathService.startupFolder,this.inherited(arguments),(this._fileService.fileStore.store.isGroupingMode||this._fileService.fileStore.store.isSearchMode)&&(this._fileServiceGroupedStore=this._fileService.fileStore.store,this._fileService.fileStore.store=this._fileService.fileStore.store.originalStore),this.fileBrowser=new h({fileService:this._fileService,allowDnD:!1,columnRegistry:this._columnRegistry,contextMenuEnabled:!1,actionManager:this._actionManager,layoutConfiguration:this._fsuiConfig},this.fileBrowserNode),this._okButton.placeAt(this.okButtonNode),this._cancelButton.placeAt(this.cancelButtonNode),n.set(this.fileTypeWithLabelNode,{display:"none"}),n.set(this.fileNameWithLabelNode,{display:"none"}),this._setupSelectionMode(),this.own(i.after(this.fileBrowser,"onSelectionChange",t.hitch(this,this._enableOkButton),!0),o(this._pathService,"accessibleRoots",t.hitch(this,(function(e){this._setRootFolders(e)}))),o(this.domNode,"keydown",t.hitch(this,this._handleTabKeyboardAccessibility)),o(this._okButton,"click",t.hitch(this,(function(e){e.stopPropagation(),e.preventDefault(),this._emitOkButtonClickedEvent()}))),o(this._cancelButton,"click",t.hitch(this,(function(){this.emit("cancelButtonClicked")}))),o(this.fileBrowser.grid,".dgrid-row:dblclick",function(e){e.stopPropagation(),e.preventDefault(),this._expandFolderOrSelectFile(e)}.bind(this)),o(this.fileBrowser.grid,"keypress",function(e){e.keyCode===a.ENTER&&(e.stopPropagation(),e.preventDefault(),this._expandFolderOrSelectFile(e))}.bind(this)))},_expandFolderOrSelectFile:function(e){var t=this.fileBrowser.grid.row(e);t&&t.data.hasChildren?this.fileBrowser.grid.expand(t):!1===this._okButton.get("disabled")&&this._emitOkButtonClickedEvent()},_enableOkButton:function(e,t){this._selectionMode===this.DIRECTORIES_ONLY?this._enableOkButtonForDirectories(e,t):this._enableOkButtonForFiles(e,t)},_enableOkButtonForDirectories:function(e,t){e.length>0?this._okButton.set("disabled",!1):this._okButton.set("disabled",!0)},_enableOkButtonForFiles:function(e,t){if(e.length>0){for(var i=!1,n=0;n<e.length;n++)e[n].isDirectory&&(i=!0);i?this._okButton.set("disabled",!0):this._okButton.set("disabled",!1)}else this._okButton.set("disabled",!0)},_emitOkButtonClickedEvent:function(){var e=this.fileBrowser.grid.getSelectedFileInfos();this.emit("okButtonClicked",{selectedNode:e})},setFilters:function(e,t){var i;t&&(this._selectedFilter.parent=t);var n=this._selectedFilter.parent;if(e){this._selectedFilter.value=e;i=e.replace(/[(.)(*)]/g,"")}var o=new RegExp("^.*.("+i+")$","i"),r=function(e){return this.pathService.getAccessibleRootsCachedData().directories.map((function(e){return e.fileInfo.path})).some((function(t){return e.path.startsWith(t)}))}.bind(this),a=e=>!0===e.isDirectory||o.test(e.name),s=function(e){return(e.parent===n||e.proxyParent===n)&&a(e)&&r(e)};s.commonFilter=a,this.fileBrowser.grid.set("query",s),this._fsuiConfig.on("update:showHiddenFiles",()=>{this.fileBrowser.grid.set("query",s)})},_setRootFolders:function(e){for(var t=e.data,i=t.directories,n=0;n<t.directories.length;n++){const e=i[n].fileInfo.path||p.pathFromFileInfo(i[n].fileInfo);i[n].fileInfo.path=e,i[n].fileInfo.proxyParent=t.parentPath,i[n].fileInfo.isDirectory=t.directories[n].fileInfo.hasChildren=!0,this.fileService.addWatchReason(e,"filechooser"),this.on(this.events.DESTROY,()=>{this.fileService.removeWatchReason(e,"filechooser")}),0!==this._excludeOnlyRoots.length&&-1!==this._excludeOnlyRoots.indexOf(i[n].fileInfo.path)||this.fileService.addOrUpdateFilesInStore(i[n].fileInfo)}this._selectedFilter.parent=t.parentPath,this.setFilters(this._selectedFilter.value),this._okButton.set("disabled",!0)},_setupSelectionMode:function(){this.selectionMode===this.FILES_ONLY?this._selectedFilter.value="*.*":this.selectionMode===this.DIRECTORIES_ONLY&&(this._selectedFilter={})},_handleTabKeyboardAccessibility:function(e){var t;if(e.keyCode===a.TAB){var i=this.fileBrowser.getFocusableElements().focusableElements,n=Object.values(this.bottom.querySelectorAll('[tabindex="0"]')),o=i.concat(n),r=e.target,s=o.indexOf(r);s<0?d.focus(o[0]):e.shiftKey?e.shiftKey&&(t=o[s-1]?o[s-1]:o[o.length-1],d.focus(t)):(t=o[s+1]?o[s+1]:o[0],d.focus(t)),e.preventDefault(),e.stopPropagation()}},destroy:function(){o.emit(this.domNode,"restorefocus",{bubbles:!0}),this.inherited(arguments),this.emit(this.events.DESTROY),this._fileServiceGroupedStore&&(this._fileService.fileStore.store=this._fileServiceGroupedStore)},events:{DESTROY:"destroy"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1003),i(7496)],o=i.dj.d(n,(function(e,t,i){return e([t,i],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{caseSensitiveStringComparator:function(t,i){return e.compare(t,i)},separateFoldersFromFiles:function(e,t){return e.isDirectory&&t.isDirectory?this.caseSensitiveStringComparator(e.name,t.name):e.isDirectory?-1:t.isDirectory?1:void 0}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{GENERAL_PURPOSE_SUBSCRIPTION_CHANNEL:"/matlab/addons/serverToClient",GENERAL_PURPOSE_PUBLISH_CHANNEL:"/matlab/addons/clientToServer",EXPLORER_CHANNEL:"/matlab/addons/mlonline/explorer"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7675),i(7676),i(7677),i(7678)],o=i.dj.d(n,(function(e,t){return t(e,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/cfb",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){const i=new(e([t],{})),n={path:["*"],once:!1};return{subscribe(e,t,o){o||(o={});const r=Object.assign({},n,o);let{path:a,once:s,clientId:l}=r;"string"==typeof a&&(a=[a]);const c=new Set(a),d=i.on(e,e=>{(c.has("*")||c.has(e.fileInfo.path))&&(l&&l!==e.clientId||(s&&d.remove(),t(e.fileInfo)))});return d},publish:(e,t)=>i.emit(e,t)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2534),i(2535),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e([],{_storeRef:"_S",_timestampProp:"_timestamp",constructor:function(e){e=e||{},this.items=[],e.items&&e.items.forEach((function(e){this.newItem(e)}),this)},_fetchItems:function(e,t){var n,o,r,a,s,l,c,d=[],u={};if(e.query){for(n in c=!!e.queryOptions&&e.queryOptions.ignoreCase,e.query)e.query.hasOwnProperty(n)&&("string"==typeof(l=e.query[n])&&/[\*\?]+/.test(l)?u[n]=i.patternToRegExp(l,c):l instanceof RegExp&&(u[n]=l));for(s=this.items.length,o=0;o<s;o+=1){if(r=!0,null===(a=this.items[o]))r=!1;else for(n in e.query)e.query.hasOwnProperty(n)&&(l=e.query[n],this._containsValue(a,n,l,u[n])||(r=!1));r&&d.push(a)}}else this.items&&this.items.forEach((function(e){null!==e&&d.push(e)}));t(d,e)},getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Write":!0,"dojo.data.api.Notification":!0,"dojo.data.api.Identity":!0}},getAttributes:function(e){this._assertIsItem(e);var t,i=[];for(t in e)e.hasOwnProperty(t)&&t!==this._storeRefPropName&&t!==this._loadedPropName&&t!==this._filePathPropName&&i.push(t);return i},isItem:function(e){return e&&e[this._storeRef]===this},isItemLoaded:function(e){return this.isItem(e)},loadItem:function(){},getValues:function(e,i){if(this._assertIsItem(e),!t.isString(i))throw new Error("MW.utils.InMemoryStore: invalid attribute");return e.hasOwnProperty(i)?[e[i]]:[]},getValue:function(e,t){var i=this.getValues(e,t);return 0===i.length?void 0:i[0]},hasAttribute:function(e,t){return this.getValues(e,t).length>0},containsValue:function(e,t,n){var o;return"string"==typeof n&&(o=i.patternToRegExp(n,!1)),this._containsValue(e,t,n,o)},_containsValue:function(e,i,n,o){var r,a,s=this.getValues(e,i),l=s.length;for(r=0;r<l;r+=1)if(a=s[r],o&&!t.isObject(a)&&null!==a&&a.toString().match(o)||n===a)return!0;return!1},setValues:function(e,i,n){var o;if(this._assertIsItem(e),!t.isString(i))throw new Error("MW.utils.InMemoryStore: invalid attribute");(o=e[i])===n&&"store"!==i||(e[i]=n,this.onSet(e,i,o,n))},setValue:function(e,t,i){this.setValues(e,t,i)},newItem:function(e){var i={id:o.generateUuid()};return i[this._timestampProp]=new Date,i[this._storeRef]=this,t.mixin(i,e),this.items.push(i),this.onNew(i),i},deleteItem:function(e){var t;this._assertIsItem(e),(t=this.items.indexOf(e))>=0&&this.items.splice(t,1),this.onDelete(e)},getIdentity:function(e){return e.id},save:function(e){},revert:function(){return!1},isDirty:function(e){return!1},onNew:function(){},onDelete:function(){},onSet:function(){},_assertIsItem:function(e){if(!this.isItem(e))throw new Error("MW.utils.InMemoryStore: Invalid argument, item is not in the store.")}});return t.extend(r,n),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7800)],o=i.dj.d(n,(function(e,t){return t(e,"commandhistory/l10n/nls/commandhistory",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(306),i(219)],o=i.dj.d(n,(function(e,t){return{_EVENT_CONVERT_CONTENT_REQUEST_CHANNEL_PREFIX:"/mlx/service/convertContentRequest",_EVENT_CONVERT_CONTENT_RESPONSE_CHANNEL_PREFIX:"/mlx/service/convertContentResponse",_publishMessage:function(i){return t.subscribe(this._EVENT_CONVERT_CONTENT_RESPONSE_CHANNEL_PREFIX,"_handleConvertContentResponse",this),this._loaddeferred=new e,t.publish(this._EVENT_CONVERT_CONTENT_REQUEST_CHANNEL_PREFIX,i),this._loaddeferred.promise},doConvert:function(e,t){return this._publishMessage({source:e,target:t,sourceType:"filePath"})},doConvertContent:function(e,t){return this._publishMessage({source:e,target:t,sourceType:"content"})},_handleConvertContentResponse:function(e){e.data.status?(t.unsubscribe(this._EVENT_CONVERT_CONTENT_RESPONSE_CHANNEL_PREFIX,"_handleConvertContentResponse",this),this._loaddeferred.resolve("success")):this._loaddeferred.reject(e.data.message)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(214),i(206),i(212),i(1230),i(1006),i(858),i(555),i(280),i(233),i(209),i(241),i(363),i(643),i(290),i(754)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m=s,_={actions:[{id:r.EXPORT_AS_HTML,enabled:!0,icon:"save_as_24",text:p.exportAsHTMLLabel,description:p.exportAsHTMLDescription,callback:function(e){_._exportToFile("html")}},{id:r.EXPORT_AS_PDF,enabled:!0,icon:"save_as_24",text:p.exportAsPDFLabel,description:p.exportAsPDFDescription,callback:function(e){_._exportToFile("pdf")}},{id:r.EXPORT_AS_DOCX,enabled:!0,icon:"save_as_24",text:p.exportAsDOCXLabel,description:p.exportAsDOCXDescription,callback:function(e){_._exportToFile("docx")}},{id:r.EXPORT_AS_LATEX,enabled:!0,icon:"save_as_24",text:p.exportAsLaTeXLabel,description:p.exportAsLaTeXDescription,callback:function(e){_._exportToFile("tex")}},{id:r.EXPORT_FOLDER,enabled:!0,icon:"save_as_24",text:p.exportFolderLabel,description:p.exportFolderDescription,callback:function(e){l.editorService.getActiveEditor().editor.getActionDataService().executeAction("rtc_save_folder")}},{id:r.SAVEAS,enabled:!0,icon:"save_as_24",text:p.saveAsLabel,description:p.saveAsDescription,callback:function(e){_._exportToFile(c.LIVE_SCRIPT_EXTENSION)}},{id:r.SAVE,key:"ctrl_s",shortcut:f.saveShortcut,platformKey:{mac:"meta_s"},icon:"save_24",quickAccessIcon:"save_16",text:f.saveLabel,description:f.saveDescription,popupTag:"motwToolstrip.liveEditorTab.file.save.saveList",enabled:!0,callback:function(){m.saveCallback()}}],_exportToFile:function(e){var t=l.editorService.getActiveEditor(window),i=c.getFileNameNoExtension(t.getFile().fileInfo.name);i+="."+e,this.exportToFileForEditor(i,t).otherwise((function(){}))},exportToFileForEditor:function(t,i){var n=this.checkForReadOnlyFolderAndShowError(t);if(n)return n;var o=c.pathFromFileInfo(l.fileDataService.currentWorkingFolder);return this._getExportFileName(t).then(e.hitch(this,"_performExportAction",o,i))},_performExportAction:function(e,t,i){var o=c.getFileNameExtension(i),r=c.createEmptyFileObject(e,i);if(o===c.LIVE_SCRIPT_EXTENSION)return this._exportToMLX(e,t,i);var a=new n;if(!this.isExportableExtension(o))return d.assert(!1,"Attempted to export to unsupported file extension: "+o),a;const s=t.id,l=e+"/"+i;return this.exportViaMATLAB(s,l,o,r).then(()=>{},()=>{})},exportViaMATLAB:async function(e,t,i,n){const o=h.getInstance();try{const i="matlab.desktop.editor.internal.exportDocumentByID",n=[e,"Destination",t];await o.feval(i,1,n)}catch(e){throw e}const r=l.fileDataService;switch(i){case"html":case"pdf":r.refreshOpenFolders(),this._openFileInBrowser(n.fileInfo);break;case"tex":case c.MATLAB_CODE_FILE_EXTENSION:r.openFile(n.fileInfo,!1)}return!0},isExportableExtension:function(e){return"html"===e||"pdf"===e||"docx"===e||"tex"===e||e===c.MATLAB_CODE_FILE_EXTENSION},_exportToMLX:function(t,i,n){var o=i.getFile().fileInfo.location,r=c.createFilePath(o,i.getFile().fileInfo.name),s=c.createFilePath(t,n);return m.saveCallback(),a.doConvert(r,s).then((function(i){var o=c.createEmptyFileObject(t,n);l.fileDataService.openedFilesDataStore.put(e.mixin(o,{modifiedDate:null,savePending:!1,id:c.pathFromFileInfo(o.fileInfo)})),l.fileDataService.onFileOpen(o)}))},checkForReadOnlyFolderAndShowError:function(e){return!c.isWritable(l.fileDataService.currentWorkingFolder)&&(this._displayReadOnlyFolderWriteError(e,c.pathFromFileInfo(l.fileDataService.currentWorkingFolder)),(new n).reject())},_openFileInBrowser:function(e){var t="web("+c.constructMatlabFilePath(e)+", '-browser');";l.executionService.executionEval(t)},_displayReadOnlyFolderWriteError:function(e,t){u.displayConfirmDialog(c.isLiveScriptFile(e)?f.saveUntitledBufferLiveEditorTitle:f.saveUntitledBufferEditorTitle,f.saveToReadOnlyFolderError.replace("{0}",t),{icon:"error",buttonText:[g.ok],defaultAcceptButton:1,closeCallback:function(){}})},getExportFileName:function(e){return this._getExportFileName(e)},_getExportFileName:function(r){var a="",s=new n,d=function(){l.layoutService.removeWidget("saveAs"),i.emit(document.body,"restorefocus",{bubbles:!0}),a.deferred.reject()};return(a=new o({fileDataService:l.fileDataService,fileLocation:c.pathFromFileInfo(l.fileDataService.currentWorkingFolder),saveAsNameLabel:f.saveAsFileNameLabel,numSelectedChars:0,okAction:function(){""!==a&&a.deferred.resolve(a.getFileName()),l.layoutService.removeWidget("saveAs")},cancelAction:d,deferred:s})).onClose=function(){d()},a.inputBox.set("value",r),t.after(a,"onShow",e.hitch(a,"updateButtons")),l.layoutService.addWidget("saveAs","newDialog",a,{title:f.saveAsDialogTitle}),s.promise}};return _}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8449),i(8450),i(8451),i(8452)],o=i.dj.d(n,(function(e,t){return t(e,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_file",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(210),i(211),i(312),i(1786),i(1652),i(444),i(761),i(247)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([l,s],{destroyRecursive:function(){this.toolTip&&(this.toolTip.set("connectId",""),this.toolTip.destroyRecursive()),this.button&&this.button.destroyRecursive&&this.button.destroyRecursive(),this.inherited(arguments)},_renderComponent:function(e){if(this.inherited(arguments),this.button?this._updateButton(e):(this._createButton(e,this.dataService),this._lastText=e.text||"",this.button._setLabelAttr=function(e){for(var i=this.containerNode||this.focusNode;i.firstChild;)i.removeChild(i.firstChild);t.isString(e)&&0===e.toLowerCase().indexOf("<html>")?i.appendChild(d.sanitizeHtmlFromJava(e)):(this._set("label",e),i.appendChild(document.createTextNode(e)))},this.button._setLabelAttr(this._lastText),this.connect(this.button,"onClick",this._onClick)),e.tooltip&&(this.toolTip?this._lastTooltip!==e.tooltip&&this.toolTip.set("label",e.tooltip):(this.toolTip=new r({label:e.tooltip}),this.toolTip.set("connectId",this.button.domNode),this.own(this.toolTip)),this._lastTooltip=e.tooltip),this.button.containerNode){var n=c.getTextStyle(e);i.set(this.button.containerNode,n)}this._createOrUpdateIcon(this.button.iconNode,e)},_onClick:function(){this.toolTip&&this.toolTip.close()},_clear:function(){this._context.beginPath(),this._context.clearRect(0,0,this._canvas.width,this._canvas.height),this._context.closePath()},_createButton:function(e,t){this.button=this._createButtonWidget(e,t),this.own(this.button),this.button.placeAt(this.domNode,"last")},_createButtonWidget:function(e,t){return{placeAt:function(){}}},_updateButton:function(e){this.button.set("disabled",!e.enabled),this._lastText!==e.text&&(this.button.set("label",e.text||""),this._lastText=e.text||"")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8762),i(8763),i(8764)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/pct/resources/parallel/web/nls/connectivityCheck",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8776),i(8777),i(8778)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/pct/resources/parallel/web/nls/jobMonitor",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){"use strict";function t(){throw new TypeError("abstract")}return e.extend((function(){}),{then:function(e,i,n){t()},cancel:function(e,i){t()},isResolved:function(){t()},isRejected:function(){t()},isFulfilled:function(){t()},isCanceled:function(){t()},always:function(e){return this.then(e,e)},otherwise:function(e){return this.then(null,e)},trace:function(){return this},traceRejected:function(){return this},toString:function(){return"[object Promise]"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(1274),i(605),i(242)],o=i.dj.d(n,(function(e,t,i,n){return i((function(){t("highcontrast")&&e.add(n.body(),"dijit_a11y")})),t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(210),i(217),i(213),i(204)],o=i.dj.d(n,(function(e,t,i,n,o){function r(e,t){var n=e.resize?e.resize(t):i.setMarginBox(e.domNode,t);n?o.mixin(e,n):(o.mixin(e,i.getMarginBox(e.domNode)),o.mixin(e,t))}var a={marginBox2contentBox:function(e,t){var o=n.getComputedStyle(e),r=i.getMarginExtents(e,o),a=i.getPadBorderExtents(e,o);return{l:n.toPixelValue(e,o.paddingLeft),t:n.toPixelValue(e,o.paddingTop),w:t.w-(r.w+a.w),h:t.h-(r.h+a.h)}},layoutChildren:function(i,n,a,s,l){n=o.mixin({},n),t.add(i,"dijitLayoutContainer"),a=e.filter(a,(function(e){return"center"!=e.region&&"client"!=e.layoutAlign})).concat(e.filter(a,(function(e){return"center"==e.region||"client"==e.layoutAlign}))),e.forEach(a,(function(e){var i=e.domNode,o=e.region||e.layoutAlign;if(!o)throw new Error("No region setting for "+e.id);var a,c=i.style;c.left=n.l+"px",c.top=n.t+"px",c.position="absolute",t.add(i,"dijitAlign"+((a=o).substring(0,1).toUpperCase()+a.substring(1)));var d={};s&&s==e.id&&(d["top"==e.region||"bottom"==e.region?"h":"w"]=l),"leading"==o&&(o=e.isLeftToRight()?"left":"right"),"trailing"==o&&(o=e.isLeftToRight()?"right":"left"),"top"==o||"bottom"==o?(d.w=n.w,r(e,d),n.h-=e.h,"top"==o?n.t+=e.h:c.top=n.t+n.h+"px"):"left"==o||"right"==o?(d.h=n.h,r(e,d),n.w-=e.w,"left"==o?n.l+=e.w:c.left=n.l+n.w+"px"):"client"!=o&&"center"!=o||r(e,n)}))}};return o.setObject("dijit.layout.utils",a),a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i(31),i(420),i(211),i(213),i(204),i(206),i(245)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){s.add("config-bgIframe",s("ie")&&!/IEMobile\/10\.0/.test(navigator.userAgent)||s("trident")&&/Windows NT 6.[01]/.test(navigator.userAgent));var l=new function(){var t=[];this.pop=function(){var r;if(t.length)(r=t.pop()).style.display="";else{if(s("ie")<9){var a="<iframe src='"+(i.dojoBlankHtmlUrl||e.toUrl("dojo/resources/blank.html")||'javascript:""')+"' role='presentation' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>";r=document.createElement(a)}else(r=n.create("iframe")).src='javascript:""',r.className="dijitBackgroundIframe",r.setAttribute("role","presentation"),o.set(r,"opacity",.1);r.tabIndex=-1}return r},this.push=function(e){e.style.display="none",t.push(e)}};return t.BackgroundIframe=function(e){if(!e.id)throw new Error("no id");if(s("config-bgIframe")){var t=this.iframe=l.pop();e.appendChild(t),s("ie")<7||s("quirks")?(this.resize(e),this._conn=a(e,"resize",r.hitch(this,"resize",e))):o.set(t,{width:"100%",height:"100%"})}},r.extend(t.BackgroundIframe,{resize:function(e){this.iframe&&o.set(this.iframe,{width:e.offsetWidth+"px",height:e.offsetHeight+"px"})},destroy:function(){this._conn&&(this._conn.remove(),this._conn=null),this.iframe&&(this.iframe.parentNode.removeChild(this.iframe),l.push(this.iframe),delete this.iframe)}}),t.BackgroundIframe}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(649)],o=i.dj.d(n,(function(e){return e}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return function(e){return e.stopPropagation(),e.preventDefault(),!1}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(514),i(238)],o=i.dj.d(n,(function(e,t,i){return e(null,{isCyclic:!0,_setIsCyclicAttr:function(e){if("boolean"!=typeof e)throw new Error("'isCyclic' property expects a boolean value.");this._set("isCyclic",e)},postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwContainerFocusMixin"),this.focusNode=this.focusNode||this.domNode},focus:function(e){this.inherited(arguments),e?this._focusNearestFocusableNode(e,!0,"next"):this.focusNode&&t.isFocusable(this.focusNode)&&i.focus(this.focusNode)},focusNext:function(e){this.inherited(arguments),e||(e=document.activeElement&&t.isDescendant(document.activeElement,this.domNode)?document.activeElement:this.domNode),this._focusNearestFocusableNode(e,!1,"next")},focusPrevious:function(e){this.inherited(arguments),e||(e=document.activeElement&&t.isDescendant(document.activeElement,this.domNode)?document.activeElement:this.domNode),this._focusNearestFocusableNode(e,!1,"previous")},focusFirst:function(){this.inherited(arguments),this._focusNearestFocusableNode(null,!1,"next")},focusLast:function(){this.inherited(arguments),this._focusNearestFocusableNode(null,!1,"previous")},_focusNearestFocusableNode:function(e,n,o){if(e=this._getAppropriateNodeFromInput(e),t.getChildren(this.domNode).length>0){var r;if(null!=e&&!t.isDescendant(e,this.domNode,!0))return;if(null===(r=this._findFocusableChild(e,n,o)))return;t.isElementInViewport(r)||r.scrollIntoView(!0),i.focus(r)}},_findFocusableChild:function(e,i,n){var o,r=!1,a=!1;if(e=this._getAppropriateNodeFromInput(e),null==i&&(i=!0),(!n||["next","previous"].indexOf(n)<0)&&(n="next"),e===this.domNode)r=!0;else for((o=e)&&!i&&(o=t.getAdjacentElement(o,n));o&&!t.isFocusable(o);){if(o===e){if(a)return null;a=!0}o=t.getAdjacentElement(o,n)}if(r||!o&&this.isCyclic||null==e){switch(n){case"next":o=t.getFirstChild(this.domNode);break;case"previous":o=t.getLastChild(this.domNode)}var s=this.isCyclic;this.isCyclic=!1,o=this._findFocusableChild(o,!0,n),this.isCyclic=s}return o&&(e=this._getAppropriateNodeFromInput(o)),e&&t.isFocusable(e)?e:null},_getAppropriateNodeFromInput:function(e){if(null==e)return null;if(!((e=e.focusNode||e.domNode||e)instanceof Element))throw new Error("Input argument expects a Widget or DOM node.");return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{showDescription:!0,postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwShowDescriptionMixin")},_setShowDescriptionAttr:function(e){if("boolean"!=typeof e)throw new Error("'showDescription' property expects a Boolean!");!1===e||this.descriptionNode&&""===this.descriptionNode.textContent?this.domNode.classList.add("mwHideDescription"):this.domNode.classList.remove("mwHideDescription"),this._set("showDescription",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(277)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{closeMenuOnClick:!1,postCreate:function(){this.inherited(arguments),this.own(i(this.domNode,"change",t.hitch(this,"_onChange"))),this.domNode.classList.add("mwCloseMenuOnClickMixin"),this.set("closeMenuOnClick",this.get("closeMenuOnClick"))},_setCloseMenuOnClickAttr:function(e){if("boolean"!=typeof e)throw new Error("'closeMenuOnClick' property expects a Boolean!");this._set("closeMenuOnClick",e),e?this.domNode.classList.add("mwClosePopupOnClick"):this.domNode.classList.remove("mwClosePopupOnClick")},_onChange:function(){this.get("closeMenuOnClick")&&(n.close(),this.emit("closeRequest"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{showText:!0,postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwShowTextMixin")},_setShowTextAttr:function(e){if("boolean"!=typeof e)throw new Error("'showText' property expects a Boolean!");e?this.domNode.classList.remove("mwHideText"):this.domNode.classList.add("mwHideText"),this._set("showText",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{showShortcut:!0,postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwShowShortcutMixin")},_setShowShortcutAttr:function(e){if("boolean"!=typeof e)throw new Error("'showShortcut' property expects a Boolean!");!1===e||this.shortcutNode&&""===this.shortcutNode.textContent?this.domNode.classList.add("mwHideShortcut"):this.domNode.classList.remove("mwHideShortcut"),this._set("showShortcut",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(221),i(227),i(206),i(257),i(248),i(238),i(231),i(514)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(null,{postCreate:function(){this.inherited(arguments);var e=i("touch")&&!window.PointerEvent;this.own(o(this.domNode,"click",t.hitch(this,"_onMouseClick")),o(this.domNode,e?a.release:"mouseup",t.hitch(this,"_onMouseUp")),o(this.domNode,r.enter,t.hitch(this,"_onMouseEnter")),o(this.domNode,"focusout",t.hitch(this,"_focusLost"))),this.domNode.classList.add("mwFocusableMenuChildMixin")},_focusLost:function(e){var t,i=c.parseFocusEvent(e).gainedFocusNode,o=l.getEnclosingWidget(i);if(o){var r=o.focusNode&&o.focusNode instanceof Element?o.focusNode:o.domNode;if(r&&r.hasAttribute("data-composite-child")&&(o=l.getEnclosingWidget(n.byId(r.getAttribute("data-composite-primary-id"))))===this)return}this!==o&&(t=this.getParentWidget(),(null==o||c.isFocusable(i))&&t&&t._focusChange&&t._focusChange(o),this.focusLost&&this.focusLost(o))},_onMouseClick:function(e){e.mwEventData?(this.focus(),this.closeMenuOnClick&&this._requestClose(!1)):(e.preventDefault(),e.stopImmediatePropagation())},_onMouseEnter:function(e){this.focusNode&&!0!==this.get("disabled")&&c.isFocusable(this.focusNode)&&this.focus()},_onMouseUp:function(e){e.target.classList.contains("allowDefaultActions")||e.preventDefault(),this.getParentWidget()&&!0===this.getParentWidget()._mouseDownTriggered||!c.isFocusable(this.focusNode)||this._emitClickEvent&&(c.isLeftMouseButton(e)||"dojotouchend"===e.type)&&this._emitClickEvent(e)},_requestClose:function(e){var t=this.getParentWidget();null!=t&&t.closeRequest&&(t._closeEventData?t._closeEventData.mwEventData?t._closeEventData.mwEventData.gainedFocusWidget=null:t._closeEventData.mwEventData={gainedFocusWidget:null}:t._closeEventData={mwEventData:{gainedFocusWidget:null}},t.closeRequest(e||!1))},focus:function(){this.inherited(arguments),c.isFocusable(this.focusNode)&&(s.focus(this.focusNode||this.domNode),(this.focusNode||this.domNode).focus())},getParentWidget:function(e){if(null==e){if(!this.domNode)return null;e=this.domNode}return e.domNode&&(e=e.domNode),e.parentNode?(e=c.getParent(e),l.getEnclosingWidget(e)):null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){var i=["icon","text","shortcut","description","showIcon","showText","showShortcut","showDescription"];return e(null,{postCreate:function(){this.inherited(arguments),this.watch(t.hitch(this,(function(e,t,n){i.indexOf(e)>-1&&("icon"===e&&this._getIconType(n)===this._iconTypes.DATA_URI||this.emit("updatelayout"))}))),this.domNode.classList.add("mwMenuChildResizeMixin")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(353),i(352),i(370)],o=i.dj.d(n,(function(e,t,i,n){var o=e(null,{postCreate:function(){this.inherited(arguments);var e=this.id+"_textNodeId",t=this.id+"_descriptionNodeId",i=this.id+"_shortcutKeyNodeId",n=this.textNode.querySelector(".mwTextLine");n||(n=this.textNode),n.setAttribute("id",e),this.descriptionNode&&this.descriptionNode.setAttribute("id",t),this.shortcutKeyNode.setAttribute("id",i),this.focusNode.setAttribute("aria-labelledby",e+" "+t+" "+i)}});return o._dependencies=[{mixin:t,orderDependent:!1},{mixin:i,orderDependent:!1},{mixin:n,orderDependent:!1}],o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(231),i(608),i(409)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e(null,{buttonGroup:"",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwButtonGroupMixin")},_setButtonGroupAttr:function(e){if("string"!=typeof e)throw new Error("'buttonGroup' property expects a literal string!");e.length>0?this.domNode.setAttribute("data-mw-buttongroup",e):this.domNode.removeAttribute("data-mw-buttongroup"),this._set("buttonGroup",e)},_setCheckedAttr:function(e,t){this.inherited(arguments),e&&this.get("buttonGroup")&&i.toArray().forEach((function(e){this._shouldUncheckWidget(e)&&(e.set("checked",!1,t),t&&e._triggerChangeEvent("checked",!0,!1))}),this)},_shouldUncheckWidget:function(e){return e.get("buttonGroup")===this.get("buttonGroup")&&e!==this&&e.get("checked")},_onClick:function(e){if(this.get("checked")&&this.get("buttonGroup")&&!this.get("allowDeselectionInButtonGroup"))return!1;this.inherited(arguments)}});return r._dependencies=[{mixin:n,orderDependent:!0},{mixin:o,orderDependent:!1}],r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(238),i(215),i(216),i(316),i(360),i(307),i(422),i(608),i(872),i(351),i(878),i(352),i(330),i(370),i(871),i(873),i(874),i(353),i(1042),i(335),i(875),i(876),i(1041),i(607),i(409),i(421),i(877),i(259),i(1714)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N){return e(x.validate([i,n,o,r,a,C,T,h,f,g,m,_,v,b,p,y,l,c,E,S,d,u,w,I,A]),{baseClass:"mwWidget mwSharedMenuItem mwRadioButtonMenuItem",templateString:N,constructor:function(){this.radioButton=new s({text:""}),this.own(this.radioButton)},postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-composite-primary",""),(this.radioButton.focusNode||this.radioButton.domNode).setAttribute("data-composite-child",""),(this.radioButton.focusNode||this.radioButton.domNode).setAttribute("data-composite-primary-id",this.get("id")),this.focusNode.setAttribute("role","menuitemradio")},_setCheckedAttr:function(e){this.inherited(arguments),this.radioButton.set("checked",e)},buildRendering:function(){this.inherited(arguments),this.radioButton.placeAt(this.domNode,"first")},startup:function(){this.inherited(arguments),this.radioButton.startup()},_emitClickEvent:function(){this.emit("click",{mwEventData:{checked:this.get("checked")},_dojo_click:!0})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(212),i(2853),i(2854),i(2855),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s,l,c,d,u,h={},p=[];return{start:function(t,r,u){a||("string"==typeof t?(c={product:t,appComponent:r},d={product:t,appComponent:r},t=l={product:t,scope:r,allowProductScopeOverride:u}):(l={product:(t=t||{}).product,scope:t.scope||t.appComponent,allowProductScopeOverride:t.allowProductScopeOverride},c={product:t.product,appComponent:t.appComponent||t.scope,eventKey:t.eventKey},d={product:t.product,appComponent:t.appComponent||t.scope,artifactType:t.artifactType,artifactId:t.artifactId}),o.setup(l.allowProductScopeOverride,e.hitch(this,"logEvent")),a=!0,(s=t.sendDirect?i:n).start(t))},stop:function(){a&&(s.stop(),s=void 0,a=!1)},isRunning:function(){return a},logEvent:function(e,t,i){if(a){if(r.assert(e.eventType,"eventType must be defined"),e.elementType&&!e.elementId)return void r.warn("Can't log "+e.elementType+" "+e.eventType+" without elementId");i=i||t,e.product=l.product,e.scope=l.scope;var n=this,o=function(){try{n._filterElementId(e),u&&"keypress"===e.eventType&&(e.selection=u),n._sendEvent("uiEvent",e)}catch(e){r.warn("Error while logging event: "+e.message)}};i?o():setTimeout(o,0)}},setSelectedContext:function(e){u=e},setPrefixesOfElementIdsToRedact:function(e,t,i){h[this._productAndScopeKey(t||l.product,i||l.scope)]=e},enableLoggingFromNode:function(e,t){o.enableLoggingFromNode(e,t)},logData:function(e,t,i){this._sendEvent("telemetry",this._composeTelemetryEvent(e,t,i))},logDataObtainResult:function(e,t,i){return this._sendEvent("telemetry",this._composeTelemetryEvent(e,t,i),!0)},logComposition:function(e,t,i){var n={product:(e=e||{}).product||d.product,appComponent:e.appComponent||d.appComponent,artifactType:e.artifactType||d.artifactType,artifactId:e.artifactId||d.artifactId,properties:t,componentCounts:i};r.assert(n.product,"product must be defined"),r.assert(n.appComponent,"appComponent must be defined"),r.assert(n.artifactType,"artifactType must be defined"),r.assert(n.artifactId,"artifactId must be defined"),this._sendEvent("composition",n)},addTap:function(e,t,i){var n={matchProperties:e,tapFunction:t,blockDefault:i};return p.push(n),{remove:function(){var e=p.indexOf(n);e>=0&&p.splice(e,1)}}},removeTap:function(e,t){for(var i=0;i<p.length;i++){var n=p[i];if(n.tapFunction===t){for(var o=Object.keys(e),r=Object.keys(n.matchProperties),a=o.length===r.length,s=0;s<o.legnth&&a;s++){var l=o[s];a=e[l]===n.matchProperties[l]}a&&(p.splice(i,1),i--)}}},_filterElementId:function(e){var t,i,n=e.product||l.product,o=e.scope||l.scope,r=h[this._productAndScopeKey(n,o)];if(r)for(t=0;t<r.length;t++)if(i=r[t],e.elementId.startsWith(i)){var a=e.elementId.slice(i.length);if(e.elementId=i+":redacted",a.length>0){var s=a.charAt(0);":"===s||"."===s?e.redactedHash=this.hashString(a):/\D/.test(a)||(e.redactedHash=a)}break}},_productAndScopeKey:function(e,t){return e+":"+t},hashString:function(e){for(var t=0,i=0;i<e.length;i++)t+=Math.pow(31*e.charCodeAt(i),e.length-i),t&=t;return Math.abs(t).toString(16)},_composeTelemetryEvent:function(e,t,i){var n={product:(t=t||{}).product||c.product,appComponent:t.appComponent||c.appComponent,eventKey:t.eventKey||c.eventKey,data:e};return i&&(n.verifyParametersOnly=i.verifyParametersOnly),r.assert(n.product,"product must be defined"),r.assert(n.appComponent,"appComponent must be defined"),r.assert(n.eventKey,"eventKey must be defined"),n},_sendEvent:function(e,i,n){var o=!1;if(p.forEach((function(e){for(var t=Object.keys(e.matchProperties),n=!0,r=0;r<t.length&&n;r++){var a=t[r];n=e.matchProperties[a]===i[a]}n&&(e.tapFunction(i),e.blockDefault&&(o=!0))})),!o)return s.sendEvent(e,i,n);if(n){var r=new t;return r.resolve(0),r.promise}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=e([],{isShowingLocally:function(e){return e.getParent()===this}});return t.isShowingGlobally=function(e){for(var i=e.getParent();i;){if(i.isInstanceOf(t)&&!i.isShowingLocally(e))return!1;i=(e=i).getParent()}return!0},t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(387)],o=i.dj.d(n,(function(e,t){var i=e([],{canMaximizeLocally:function(e){return!1},canRestoreLocally:function(e){return!1},maximizeLocally:function(e){},restoreLocally:function(e){}});return i.canMaximizeGlobally=function(e){var t=i._getMaximizingContainerAncestor(e);return t&&(t.canMaximizeLocally(e)||i.canMaximizeGlobally(t))},i.canRestoreGlobally=function(e){var t=i._getMaximizingContainerAncestor(e);return t&&(t.canRestoreLocally(e)||i.canRestoreGlobally(t))},i.maximizeGlobally=function(e){var t=i._getMaximizingContainerAncestor(e);t&&(i.maximizeGlobally(t),t.canMaximizeLocally(e)&&t.maximizeLocally(e))},i.restoreGlobally=function(e){var t=i._getMaximizingContainerAncestor(e);t&&(i.restoreGlobally(t),t.canRestoreLocally(e)&&t.restoreLocally(e))},i._getMaximizingContainerAncestor=function(e){return t.getAncestorOfClass(e,i)},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{MF0GenericObjectClassName:"viewmodel.internal.zml.ViewModelBackingElement",MF0PropertyObjectClassName:"viewmodel.internal.zml.Property",MF0EventDataObjectClassName:"viewmodel.internal.zml.ViewModelBackingEventData",PropertyChangeListenerEventNamePrefix:"viewmodel_internal_propertySetListener_",HandshakeEventName:"viewmodel_sync_setup_handshake"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(2891),i(610),i(1737)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.internalSpan=void 0;var o=s(t),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i),a=s(n);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),d=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=[],h=new Map,p=!1;function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.search;if("URLSearchParams"in window){var t=new URLSearchParams(e),i=!0,n=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=d(r.value,2),c=l[0],u=l[1];if(c.startsWith("log_")){var h=c.substring(4);""===h&&(h=void 0),g.setSpec(new a.default(u),h)}}}catch(e){n=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw o}}}}var g=function(){function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mf0::js";l(this,e),this.channel=n,this.domain=t,this.parent=i,this.displaySummaryMap=new o.default}return c(e,null,[{key:"addBackend",value:function(e){if(u.push(e),!p){p=!0;try{f()}catch(e){console.warn("Could not load log specs from URI",e)}}}},{key:"setSpec",value:function(e,t){h.set(t,e);var i=m.createChild();i.addContext(r.info,"spec",e),i.addContext(r.info,"domain",t),i.log(r.info,"Logging specification set")}}]),c(e,[{key:"isEnabled",value:function(e){return 0!=(e&this._verbosity)}},{key:"addContext",value:function(e,t,i){this.isEnabled(e)&&this.displaySummaryMap.add(t,i)}},{key:"addDynamicContext",value:function(e,t,i){this.isEnabled(e)&&this.displaySummaryMap.addDynamic(t,i)}},{key:"log",value:function(e,t){if(this.isEnabled(e)){for(var i=this.displaySummaryMap.createDocument(t),n=this.parent;n;)n.displaySummaryMap.wrapDocument(i),n=n.parent;var o=!0,r=!1,a=void 0;try{for(var s,l=u[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){s.value.log(e,this.domain,this.channel,i.contents,t)}}catch(e){r=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw a}}}}},{key:"createChild",value:function(t){return new e(this.domain,this,t?this.channel+"::"+t:this.channel)}},{key:"_verbosity",get:function(){var e=h.get(this.domain);return void 0===e?r.none:e.getVerbosity(this.channel)}}]),e}(),m=e.internalSpan=new g("log/internal");e.default=g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(309),i(293)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionDepth=void 0,e.elementMadeTopLevel=function(e,t){e.topLevelElements.set(t.uuid,t)},e.elementNoLongerTopLevel=function(e,t){e.topLevelElements.delete(t.uuid)},e.elementModifying=function(e,t,i){a(e),e.currentTransaction&&e.currentTransaction.elementModifying(t,i)},e.validateTransaction=a,e.elementDestroying=function(e,t){a(e),e.currentTransaction&&e.currentTransaction.elementDestroying(t);e.dataModelUsageProvider&&e.dataModelUsageProvider.elementDestroying(t);s(e,t)},e.remove=s,e.beginTransaction=function(e,t,i,n,r,a){if(e.currentTransaction)return new n(e.currentTransaction,i);t||e.transactionDepth!==l.DontKnow||(e.transactionDepth=l.Shallow,o.default.some(e.listeners,(function(e){return!e.isShallow}))&&(e.transactionDepth=l.Deep));return e.currentTransaction=t||e.transactionDepth===l.Deep?new r(e,o.default.clone(e.listeners),i):new a(e,o.default.clone(e.listeners),i),e.currentTransaction};var n=r(t),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}function a(e){e.isFrozen()&&(e.currentTransaction&&e.currentTransaction.abandon(),n.default.throwErr("ModelFrozen")),e.currentTransaction||o.default.isEmpty(e.listeners)||n.default.throwErr("NoOpenTransaction")}function s(e,t){e.elements.delete(t.uuid),e.topLevelElements.delete(t.uuid)}var l=e.TransactionDepth=Object.freeze({DontKnow:0,Shallow:1,Deep:2})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{removable:new e({type:"boolean",defaultValue:!1,notInAction:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{editable:!0,postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwEditableMixin"),this._setEditableAttr(this.get("editable"))},_setEditableAttr:function(e){this.inputNode.readOnly=!e,e?this.domNode.classList.remove("mwNonEditable"):this.domNode.classList.add("mwNonEditable"),this._set("editable",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(211),i(206),i(238),i(1063)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=e(null,{placeholder:"",_setPlaceholderAttr:function(e){if("string"!=typeof e)throw new Error("'placeholder' property expects a literal string!");this.inputNode.placeholder=e,this._set("placeholder",e)}});return s._dependencies=[{mixin:a,orderDependent:!1}],s}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204)],o=i.dj.d(n,(function(e){var t={Infinity:{PossibleValues:["inf"],StringValue:"Inf",NumberValue:Number.POSITIVE_INFINITY,NumericValue:Number.MAX_VALUE},PositiveInfinity:{PossibleValues:["+inf"],StringValue:"+Inf",NumberValue:Number.POSITIVE_INFINITY,NumericValue:Number.MAX_VALUE},NegativeInfinity:{PossibleValues:["-inf"],StringValue:"-Inf",NumberValue:Number.NEGATIVE_INFINITY,NumericValue:Number.MIN_VALUE},PositivePi:{PossibleValues:["+pi"],StringValue:"+Pi",NumberValue:+Math.PI,NumericValue:+Math.PI},NegativePi:{PossibleValues:["-pi"],StringValue:"-Pi",NumberValue:-Math.PI,NumericValue:-Math.PI},Pi:{PossibleValues:["pi"],StringValue:"Pi",NumberValue:+Math.PI,NumericValue:+Math.PI},Nan:{PossibleValues:["nan"],StringValue:"nan",NumberValue:NaN,NumericValue:NaN}},i=Object.keys(t).map((function(e){return t[e]}));return{isANumber:function(e){var i,n=Object.keys(t),o=!1;return n.forEach((function(i){"string"==typeof e&&t[i].StringValue.toLowerCase()===e.toLowerCase()&&(o=!0)})),!!o||(i=e,!isNaN(parseFloat(i))&&isFinite(i))},isAString:function(e){return"string"==typeof e||e instanceof String},hasWhiteSpace:function(e){return/\s/g.test(e)},validNumberRegex:new RegExp("^[-+]?([0-9]*\\.?[0-9]+|[0-9]+\\.?[0-9]*)([eE][-+]?[0-9]+)?$|^[-+]?[Ii]nf$"),validInfinityRegex:new RegExp("^[-+]?[Ii]nf$"),isValidNumber:function(e){return!this.isEmpty(e)&&this.validNumberRegex.test(e)},convertValueToNumber:function(e,n){if(n=void 0!==n&&n,"string"==typeof e){var o;for(o in i){if(i[o].PossibleValues.indexOf(e.toLowerCase())>=0)return n?i[o].NumericValue:i[o].NumberValue}if(isNaN(parseFloat(e)))return t.Nan.StringValue}return parseFloat(e)},isFiniteValue:function(e){return this.isValidNumber(e)&&!this.validInfinityRegex.test(e)&&isFinite(e)},isInfinteValue:function(e){return this.validInfinityRegex.test(e)||this.isValidNumber(e)&&!isFinite(e)},getPrecision:function(e){if(!this.isFiniteValue(e))return 0;for(var t=1,i=0;Math.round(e*t)/t!==e;)t*=10,i++;return i},isEmpty:function(e){return(e.trim?/^\s*$/:/^$/).test(e)},PositiveInfinity:t.PositiveInfinity.NumericValue,NegativeInfinity:t.NegativeInfinity.NumericValue,PositiveInfinityString:t.PositiveInfinity.StringValue,NegativeInfinityString:t.NegativeInfinity.StringValue}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(891)],o=i.dj.d(n,(function(e,t){return e.cookie=function(e,i,n){var o,r=document.cookie;if(1==arguments.length){var a=r.match(new RegExp("(?:^|; )"+t.escapeString(e)+"=([^;]*)"));o=a?decodeURIComponent(a[1]):void 0}else{var s=(n=n||{}).expires;if("number"==typeof s){var l=new Date;l.setTime(l.getTime()+24*s*60*60*1e3),s=n.expires=l}s&&s.toUTCString&&(n.expires=s.toUTCString());var c,d=e+"="+(i=encodeURIComponent(i));for(c in n){d+="; "+c;var u=n[c];!0!==u&&(d+="="+u)}document.cookie=d}return o},e.cookie.isSupported=function(){return"cookieEnabled"in navigator||(this("__djCookieTest__","CookiesAllowed"),navigator.cookieEnabled="CookiesAllowed"==this("__djCookieTest__"),navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1})),navigator.cookieEnabled},e.cookie}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204)],o=i.dj.d(n,(function(e,t){var i={};return t.setObject("dojo.regexp",i),i.escapeString=function(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(function(e){return t&&-1!=t.indexOf(e)?e:"\\"+e}))},i.buildGroupRE=function(e,t,n){if(!(e instanceof Array))return t(e);for(var o=[],r=0;r<e.length;r++)o.push(t(e[r]));return i.group(o.join("|"),n)},i.group=function(e,t){return"("+(t?"?:":"")+e+")"},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(420)],o=i.dj.d(n,(function(e){var t={warn:function(e){console&&console.warn&&console.warn(e)},error:function(e){console&&console.error&&console.error(e)}},i={deprecated:function(i){var n,o;(!!e.isDebug||!!window.showDeprecationsAsErrors)&&this._isConfigValid(i)&&(o=window.showDeprecationsAsErrors||i.deprecationLevel===this.ERROR?this.ERROR:this.WARN,n="DEPRECATED: ",i.deprecated&&(n+=i.deprecated.module,i.deprecated.method&&(n+="."+i.deprecated.method+"()"),n+="."),i.replacement&&(n+=" Use "+i.replacement.module,i.replacement.method&&(n+="."+i.replacement.method+"()"),n+=" instead."),i.removalVersion&&(n+=" Will be removed in version: "+i.removalVersion+"."),i.geckNumber&&(n+=" Please use g"+i.geckNumber+" to track latest information regarding this deprecation"),i.additionalInformation&&(n+=" "+i.additionalInformation),t[o](n))},_isConfigValid:function(e){var i=!!e.deprecated&&"object"==typeof e.deprecated&&e.deprecated.hasOwnProperty("module");return e.replacement&&(i=i&&"object"==typeof e.replacement&&e.replacement.hasOwnProperty("module")),e.geckNumber&&(i=i&&"number"==typeof e.geckNumber),i||t.error("Supplied deprecationConfig properties are not valid. Please refer to http://inside.mathworks.com/wiki/Web_Widgets_Deprecation_API for right API"),i}};return Object.defineProperties(i,{WARN:{value:"warn",enumerable:!0},ERROR:{value:"error",enumerable:!0}}),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=["auto","inline","block"];return e(null,{arrowMode:"auto",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwArrowModeMixin")},_setArrowModeAttr:function(e){if("string"!=typeof e||-1===t.indexOf(e))throw new Error("'arrowMode' property expects one of these values: "+t);this.domNode.classList.add("mwArrowMode"+this._capitalize(e)),t.forEach((function(t){t!==e&&this.domNode.classList.remove("mwArrowMode"+this._capitalize(t))}),this),this._set("arrowMode",e)},_capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(893),i(353),i(1071)],o=i.dj.d(n,(function(e,t,i,n){var o=e(null,{_setArrowModeAttr:function(){this.inherited(arguments),this.set("text",this.get("text"))}});return o._dependencies=[{mixin:t,orderDependent:!0},{mixin:i,orderDependent:!1},{mixin:n,orderDependent:!1}],o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(231),i(331),i(1790)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{menuId:"",_setMenuIdAttr:function(e){this._set("menuId",e),this._syncAttributes()},_setMenuAttr:function(e){this.set("menuId",e.get("id"))},_getMenuIdAttr:function(){return this._syncAttributes(),this._get("menuId")},_getMenuAttr:function(){return this._syncAttributes(),this._get("menu")},_syncAttributes:function(){var e=t.byId(this._get("menuId"))||null;this._get("menu")!==e&&(this._validateMenuAttr(e),this._set("menu",e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(302),i(204),i(206),i(245),i(31)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=r.typematic={_fireEventAndReload:function(){this._timer=null,this._callback(++this._count,this._node,this._evt),this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay),this._timer=setTimeout(i.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(e,t,n,o,r,a,s,l){if(r!=this._obj){for(var c in this.stop(),this._initialDelay=s||500,this._subsequentDelay=a||.9,this._minDelay=l||10,this._obj=r,this._node=n,this._currentTimeout=-1,this._count=-1,this._callback=i.hitch(t,o),this._evt={faux:!0},e)if("layerX"!=c&&"layerY"!=c){var d=e[c];"function"!=typeof d&&void 0!==d&&(this._evt[c]=d)}this._fireEventAndReload()}},stop:function(){this._timer&&(clearTimeout(this._timer),this._timer=null),this._obj&&(this._callback(-1,this._node,this._evt),this._obj=null)},addKeyListener:function(o,r,s,l,c,d,u){var h="keyCode"in r?"keydown":"charCode"in r?"keypress":t._keypress,p="keyCode"in r?"keyCode":"charCode"in r?"charCode":"charOrCode",f=[n(o,h,i.hitch(this,(function(e){e[p]!=r[p]||void 0!==r.ctrlKey&&r.ctrlKey!=e.ctrlKey||void 0!==r.altKey&&r.altKey!=e.altKey||void 0!==r.metaKey&&r.metaKey!=(e.metaKey||!1)||void 0!==r.shiftKey&&r.shiftKey!=e.shiftKey?a._obj==r&&a.stop():(e.stopPropagation(),e.preventDefault(),a.trigger(e,s,o,l,r,c,d,u))}))),n(o,"keyup",i.hitch(this,(function(){a._obj==r&&a.stop()})))];return{remove:function(){e.forEach(f,(function(e){e.remove()}))}}},addMouseListener:function(t,r,s,l,c,d){var u=[n(t,"mousedown",i.hitch(this,(function(e){e.preventDefault(),a.trigger(e,r,t,s,t,l,c,d)}))),n(t,"mouseup",i.hitch(this,(function(e){this._obj&&e.preventDefault(),a.stop()}))),n(t,"mouseout",i.hitch(this,(function(e){this._obj&&e.preventDefault(),a.stop()}))),n(t,"dblclick",i.hitch(this,(function(e){e.preventDefault(),o("ie")<9&&(a.trigger(e,r,t,s,t,l,c,d),setTimeout(i.hitch(this,a.stop),50))})))];return{remove:function(){e.forEach(u,(function(e){e.remove()}))}}},addListener:function(t,i,n,o,r,a,s,l){var c=[this.addKeyListener(i,n,o,r,a,s,l),this.addMouseListener(t,o,r,a,s,l)];return{remove:function(){e.forEach(c,(function(e){e.remove()}))}}}};return a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(352),i(793)],o=i.dj.d(n,(function(e,t,i){var n=e(null,{qabWidget:!0,_showTextWasTrue:!1,_setShowTextAttr:function(){this.inherited(arguments),this.get("showText")&&(this._showTextWasTrue=!0),this._updateTooltip(this.get("showText"))},_updateTooltipLayout:function(e,t,i){var n="",o="";e?(t&&(n=" (",o=")",e=e),i&&(o+=" - ",i=i)):t&&i&&(e=i,i="",n=" (",o=")"),this._updateTitleInDOM(e.replace(/\n/g," ")+n+t.replace(/\n/g," ")+o+i.replace(/\n/g," "))}});return n._dependencies=[{mixin:t,orderDependent:!0},{mixin:i,orderDependent:!0}],n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_allowedValues:["auto","100%"],_validateSizeInput:function(e){"100%"!==e&&this.inherited(arguments)},_setSize:function(e,t){if(this._validateSizeInput(t),this._set(e,t),this._started){"100%"===t&&this.getParent()&&(t=this.getParent().get("width"));var i="";i=this._allowedValues.indexOf(t)>=0?t:this._getAdjustedSize(e,t,this.domNode),this.domNode.style[e]=i}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(218),i(3190),i(236),i(891)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};if(e.setObject("dojo.number",r),r.format=function(i,n){n=e.mixin({},n||{});var o=t.normalizeLocale(n.locale),a=t.getLocalization("dojo.cldr","number",o);n.customs=a;var s=n.pattern||a[(n.type||"decimal")+"Format"];return isNaN(i)||Math.abs(i)==1/0?null:r._applyPattern(i,s,n)},r._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/,r._applyPattern=function(e,t,i){var n=(i=i||{}).customs.group,o=i.customs.decimal,a=t.split(";"),s=a[0];if(-1!=(t=a[e<0?1:0]||"-"+s).indexOf("%"))e*=100;else if(-1!=t.indexOf("‰"))e*=1e3;else if(-1!=t.indexOf("¤"))n=i.customs.currencyGroup||n,o=i.customs.currencyDecimal||o,t=t.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/,(function(e,t,n,o){var r=["symbol","currency","displayName"][n.length-1],a=i[r]||i.currency||"";return a?t+a+o:""}));else if(-1!=t.indexOf("E"))throw new Error("exponential notation not supported");var l=r._numberPatternRE,c=s.match(l);if(!c)throw new Error("unable to find a number expression in pattern: "+t);return!1===i.fractional&&(i.places=0),t.replace(l,r._formatAbsolute(e,c[0],{decimal:o,group:n,places:i.places,round:i.round}))},r.round=function(e,t,i){var n=10/(i||10);return(n*+e).toFixed(t)/n},0==.9.toFixed()){var a=r.round;r.round=function(e,t,i){var n=Math.pow(10,-t||0),o=Math.abs(e);return(!e||o>=n||(o/=n)<.5||o>=.95)&&(n=0),a(e,t,i)+(e>0?n:-n)}}return r._formatAbsolute=function(e,t,i){!0===(i=i||{}).places&&(i.places=0),i.places===1/0&&(i.places=6);var o=t.split("."),a="string"==typeof i.places&&i.places.indexOf(","),s=i.places;a?s=i.places.substring(a+1):s>=0||(s=(o[1]||[]).length),i.round<0||(e=r.round(e,s,i.round));var l=String(Math.abs(e)).split("."),c=l[1]||"";if(o[1]||i.places){a&&(i.places=i.places.substring(0,a));var d=void 0!==i.places?i.places:o[1]&&o[1].lastIndexOf("0")+1;d>c.length&&(l[1]=n.pad(c,d,"0",!0)),s<c.length&&(l[1]=c.substr(0,s))}else l[1]&&l.pop();var u=o[0].replace(",","");-1!=(d=u.indexOf("0"))&&((d=u.length-d)>l[0].length&&(l[0]=n.pad(l[0],d)),-1==u.indexOf("#")&&(l[0]=l[0].substr(l[0].length-d)));var h,p,f=o[0].lastIndexOf(",");if(-1!=f){h=o[0].length-f-1;var g=o[0].substr(0,f);-1!=(f=g.lastIndexOf(","))&&(p=g.length-f-1)}for(var m=[],_=l[0];_;){var v=_.length-h;m.push(v>0?_.substr(v):_),_=v>0?_.slice(0,v):"",p&&(h=p,delete p)}return l[0]=m.reverse().join(i.group||","),l.join(i.decimal||".")},r.regexp=function(e){return r._parseInfo(e).regexp},r._parseInfo=function(e){e=e||{};var i=t.normalizeLocale(e.locale),n=t.getLocalization("dojo.cldr","number",i),a=e.pattern||n[(e.type||"decimal")+"Format"],s=n.group,l=n.decimal,c=1;if(-1!=a.indexOf("%"))c/=100;else if(-1!=a.indexOf("‰"))c/=1e3;else{var d=-1!=a.indexOf("¤");d&&(s=n.currencyGroup||s,l=n.currencyDecimal||l)}var u=a.split(";");1==u.length&&u.push("-"+u[0]);var h=o.buildGroupRE(u,(function(t){return(t="(?:"+o.escapeString(t,".")+")").replace(r._numberPatternRE,(function(t){var i={signed:!1,separator:e.strict?s:[s,""],fractional:e.fractional,decimal:l,exponent:!1},n=t.split("."),o=e.places;1==n.length&&1!=c&&(n[1]="###"),1==n.length||0===o?i.fractional=!1:(void 0===o&&(o=e.pattern?n[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(i.fractional=!0),!e.places&&o<n[1].length&&(o+=","+n[1].length),i.places=o);var a=n[0].split(",");return a.length>1&&(i.groupSize=a.pop().length,a.length>1&&(i.groupSize2=a.pop().length)),"("+r._realNumberRegexp(i)+")"}))}),!0);return d&&(h=h.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,(function(t,i,n,r){var a=["symbol","currency","displayName"][n.length-1],s=o.escapeString(e[a]||e.currency||"");return s?(i=i?"[\\s\\xa0]":"",r=r?"[\\s\\xa0]":"",e.strict?i+s+r:(i&&(i+="*"),r&&(r+="*"),"(?:"+i+s+r+")?")):""}))),{regexp:h.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:s,decimal:l,factor:c}},r.parse=function(e,t){var i=r._parseInfo(t),n=new RegExp("^"+i.regexp+"$").exec(e);if(!n)return NaN;var o=n[1];if(!n[1]){if(!n[2])return NaN;o=n[2],i.factor*=-1}return(o=o.replace(new RegExp("["+i.group+"\\s\\xa0]","g"),"").replace(i.decimal,"."))*i.factor},r._realNumberRegexp=function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!/^0/.test(e.places)||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);var t=r._integerRegexp(e),i=o.buildGroupRE(e.fractional,(function(t){var i="";return t&&0!==e.places&&(i="\\"+e.decimal,e.places==1/0?i="(?:"+i+"\\d+)?":i+="\\d{"+e.places+"}"),i}),!0),n=t+i;return i&&(n="(?:(?:"+n+")|(?:"+i+"))"),n+o.buildGroupRE(e.exponent,(function(t){return t?"([eE]"+r._integerRegexp({signed:e.eSigned})+")":""}))},r._integerRegexp=function(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",o.buildGroupRE(e.signed,(function(e){return e?"[-+]":""}),!0)+o.buildGroupRE(e.separator,(function(t){if(!t)return"(?:\\d+)";" "==(t=o.escapeString(t))?t="\\s":" "==t&&(t="\\s\\xa0");var i=e.groupSize,n=e.groupSize2;if(n){var r="(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*["+t+"]\\d{"+i+"})";return i-n>0?"(?:"+r+"|(?:0|[1-9]\\d{0,"+(i-1)+"}))":r}return"(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*)"}),!0)},r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3260),i(3261),i(3262),i(3263)],o=i.dj.d(n,(function(e,t){return t(e,"l10n/nls/dialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"hasDuplicates",value:function(t,i){return!(t instanceof Array&&0===t.length)&&e.getUniqueValues(t,i).length!==t.length}},{key:"getUniqueValues",value:function(e,t){if(!(e instanceof Array)||t&&"string"!=typeof t)throw new Error("Either input is not an array or key is not a string");return t&&"string"==typeof t?e.filter((function(i,n,o){return e.map((function(e){return e[t]})).indexOf(i[t])===n})):e.filter((function(t,i,n){return e.indexOf(t)===i}))}},{key:"isSubset",value:function(t,i){return t.length===e.getIntersection(t,i).length}},{key:"isArraySame",value:function(e,t){return e.length===t.length&&e.every((function(e,i){return e===t[i]}))}},{key:"getIntersection",value:function(e,t){return e.filter((function(e){return-1!==t.indexOf(e)}))}},{key:"isElementInArray",value:function(e,t){return t.indexOf(e)>-1}},{key:"flattenArray",value:function(e){return[].concat.apply([],e)}},{key:"merge",value:function(e,t){if(!(e instanceof Object&&t instanceof Object))throw new Error("Inputs must be objects.");return Object.keys(t).forEach((function(i){e[i]=t[i]})),e}},{key:"isKeyInObject",value:function(e,t){return!!e.hasOwnProperty(t)}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(221),i(890),i(204),i(241),i(3305),i(290)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{cookie_name:"motw.browsernotice",getBrowserInfo:function(){var e,i,n=navigator.userAgent,o=n.match(/(opera|chrome|safari|firefox|msie|trident|edge(?=\/))\/?\s*(\d+)/i)||[];if(-1!=navigator.appVersion.indexOf("Win")&&(i="Windows",!o[1]||"MSIE"!==o[1]&&"msie"!==o[1]||(o[1]="ie")),-1!=navigator.appVersion.indexOf("Mac")&&(o[0].indexOf("Safari")>=0?(i=t("touch")?"iOS":"MacOS",n.indexOf("CriOS")>=0&&(o[0]="chrome")):i="MacOS"),-1!=navigator.appVersion.indexOf("Android")&&(i="Android"),-1!==navigator.appVersion.indexOf("Linux")&&(i=-1!==n.indexOf("Android")?"Android":"Linux"),/trident/i.test(o[1]))return{name:"ie",version:(e=/\brv[ :]+(\d+)/g.exec(n)||[])[1]||"",os:i};if("Chrome"===o[1]){if(null!=(e=n.match(/\bOPR\/(\d+)/)))return{name:"opera",version:e[1],os:i};if(null!=(e=n.match(/\bBrave\/(\d+)/)))return{name:"brave",version:e[1],os:i};if(null!=(e=n.match(/\bEdge\/(\d+)/)))return{name:"ie",version:e[1],os:i}}return o=o[2]?[o[1],o[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(e=n.match(/version\/(\d+)/i))&&o.splice(1,1,e[1]),{name:o[0],version:o[1],os:i}},isBrowserSupported:function(e){this.browserInfo||(this.browserInfo=this.getBrowserInfo());var t,i,n,o=this.browserInfo.name.toLowerCase();if((e||r.supportedBrowsers).indexOf(o)<0)return!1;if(t=parseInt(this.browserInfo.version),i=this.browserInfo.os,n=r.unsupportedList[o])for(var a=0;a<n.length;a++){var s=n[a].os,l=n[a].version;if(s&&i===s){if(!l)return!1;if(!1===this._checkVersion(l,t))return!1}else if(l&&!1===this._checkVersion(l,t))return!1}return!0},_checkVersion:function(e,t){if(0===e.indexOf("<")){if(parseFloat(e.substring(1,e.length))>t)return!1}else if(parseFloat(e)===t)return!1},displayDialog:function(){var e=this;i(this.cookie_name)||this.isBrowserSupported()||o.displayAlertDialog(a.browserNoticeTitle,a.browserNoticeText,{closeCallback:function(){e.setCookie()}})},setCookie:function(){i(this.cookie_name,!0,{expires:30})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{FILE_EXTENSIONS:{M:"m",MLX:"mlx",MLAPP:"mlapp",P:"p"},_fileExtensionMap:{},addFileExtensionsForLanguage:function(e,t){t.forEach(function(t){var i=t.toLowerCase();this._fileExtensionMap[i]?-1===this._fileExtensionMap[i].indexOf(e)&&this._fileExtensionMap[i].push(e):this._fileExtensionMap[i]=[e]}.bind(this))},getLanguagesForFileExtension:function(e){return this._fileExtensionMap[e.toLowerCase()]||[]},removeExtensionsForLanguage:function(e){Object.keys(this._fileExtensionMap).forEach(function(t){this._fileExtensionMap[t].includes(e)&&(1===this._fileExtensionMap[t].length?delete this._fileExtensionMap[t]:this._fileExtensionMap[t]=this._fileExtensionMap[t].filter((function(t){return t!==e})))}.bind(this))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){this._messageService=t},getInstance:function(){return this._messageService},installInstance:function(e){this._messageService=e},clearCustomMessageServiceInstance:function(){this._messageService=t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3439)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.cursor","rtc.eventhandler"]}},createInstance:function(e,t,i){return new n(e,t,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3442)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1836),i(281),i(233)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e){this.absoluteFilePath=e,this.file={fileInfo:n.fileInfoFromPath(e)}},_updateFilePath:function(e){this.absoluteFilePath!==e&&(this.absoluteFilePath=e,this.file={fileInfo:n.fileInfoFromPath(e)},this.onLocationUpdated(this.absoluteFilePath))},getAbsoluteFilePath:function(){return this.absoluteFilePath},getFileName:function(){return this.file.fileInfo.name},getFileLocation:function(){return this.file.fileInfo.location},getUniqueId:function(){return this.absoluteFilePath},getFullyQualifiedFileName:function(){return n.getFullyQualifiedMatlabName(this.file.fileInfo)},onSaveCompleted:function(){},hasLocationOnDisk:function(){return i.hasFileLocation(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(228),i(210),i(211),i(221),i(257),i(206),i(203),i(204),i(209),i(1839),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return a(c,{_PADDING:4,constructor:function(e,i,n,o,r,a){this._view=e,t.add(this._gutter,"lineMargin")},_updateLater:function(e,t){this._lineNumbersForUpdate=t,this._animationRequestValue||(this._animationRequestValue=requestAnimationFrame(s.hitch(this,(function(){this._animationRequestValue=null;try{this._updateNow(null,this._lineNumbersForUpdate)}catch(e){l.error("Error updating margin;\nDrawing margin for line numbers: "+this._lineNumbersForUpdate+";\nActual document visible line numbers: "+d.getZeroBasedVisibleLineNumbers(this._view)+";\n"),l.error(e)}}))))},_updateNow:function(e,t){if(this.isEnabled()&&this.isVisible()){var i=this._copyGutter();if(t||(t=d.getZeroBasedVisibleLineNumbers(this._view)),t.length>0){var n=t[0];this._canIncludeOneLineAboveViewport(n)&&(t=[n-=1].concat(t));var o=this._view.getDomTargetPosition().scrollTop;this._decorators.forEach((function(e){e.handleBeginUpdate(t)})),t.forEach((function(e){var t=this._createGutterLineDiv(e,o);i.appendChild(t)}),this)}this._replaceGutter(i),this._updateWidth(),this.onUpdate(t)}},_createGutterLineDiv:function(e,t){var n=i.create("div",{class:"gutterLine"});return this._decorateDiv(n,e),this._positionDiv(n,e,t),n},_decorateDiv:function(i,n){var o=!1;e.set(i,"data-testid","gutterLine_"+n),this._decorators.forEach((function(e){if(e.hasLayerForLineNumber(n)){var t=e.createDecorationForLineNumber(n);i.appendChild(t),o=!0}}),this),o||t.add(i,"emptyGutterLine")},_positionDiv:function(e,t,i){var n=this._getHeightAndTopForLine(t,i);e.style="top: "+n.top+"px; height: "+n.height+"px;"},_getHeightAndTopForLine:function(e,t){var i=this._internalDocument.getLineNode(e),n=this._view.getNodeTopAndBottom(i,!0),o=n.bottom-n.top;return o=Math.max(o,1),{top:n.top-t,height:o}},_canIncludeOneLineAboveViewport:function(e){return e>0&&this._view.isLineVisible(e)},destroy:function(){this.inherited(arguments),this._animationRequestValue&&(window.cancelAnimationFrame(this._animationRequestValue),this._animationRequestValue=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(576)],o=i.dj.d(n,(function(e,t){return{setup:function(e,i,n,o){o=o||{};var r={resourceName:e,resourceType:i},a=t.getRegistrationFramework().subscribe(o,r);return a.then(n),a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209)],o=i.dj.d(n,(function(e,t){return e(null,{createPreview:function(e,i,n){t.assert("The createPreview function must be overridden.")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(400),i(1867)],o=i.dj.d(n,(function(e,t){"use strict";var i={int:"intop",oint:"contourintop",intbar:"fpartintop",bot:"uptack",top:"downtack",colon:"colonPunct",owns:"ni",dots:"ldots",ge:"geq",le:"leq",ne:"neq",gets:"leftarrow",to:"rightarrow",iff:"Longleftrightarrow",gt:">",lt:"<",asymp:"asympeq",_:"underscore","|":"dblverticalbar","{":"braceleft","}":"braceright","(":"parenleft",")":"parenright",Vert:"dblverticalbar",vert:"verticalbar",langle:"anglebracketleft",rangle:"anglebracketright",lceil:"ceilleft",rceil:"ceilright",lfloor:"floorleft",rfloor:"floorright",lbrace:"braceleft",rbrace:"braceright",lbrack:"bracketleft",rbrack:"bracketright",llbracket:"whitesquarebracketleft",rrbracket:"whitesquarebracketright",vee:"lor",wedge:"land",lnot:"neg","&":"ampersand"},n={};Object.keys(i).forEach((function(e){n[i[e]]=e})),n["<"]=null,n[">"]=null;var o={verticalbar:"|",dblverticalbar:"\\|",ampersand:"\\&",dollar:"\\$",underscore:"\\_","-":"-","*":"*",InvisibleTimes:"\\,",InvisibleComma:"\\,",ZeroWidthSpace:"",imaginaryi:"\\mathrm{i}",exponentiale:"\\mathrm{e}",middledot:"\\cdot ","%":"\\%"};("abcdefghijklmnopqrstuvwxyz"+"abcdefghijklmnopqrstuvwxyz".toUpperCase()).split("").forEach((function(e){o[e+"opf"]="\\mathbb{"+e+"}",o[e+"scr"]="\\mathcal{"+e+"}",o[e+"fr"]="\\mathfrak{"+e+"}"})),Object.keys(e.notSymbols).forEach((function(t){var i=1===t.length?t:"\\"+t;o[e.notSymbols[t]]="\\not"+i+" "}));var r={omicron:"o",Alpha:"A",Beta:"B",Epsilon:"E",Zeta:"Z",Eta:"H",Iota:"I",Kappa:"K",Mu:"M",Nu:"N",Omicron:"O",Rho:"P",Tau:"T",Chi:"X"};Object.keys(r).forEach((function(e){o[e]=r[e]}));var a=["cos","cot","csc","sec","sin","tan"],s=["arg","deg","dim","exp","hom","ker","lg","ln","log"];s=(s=(s=s.concat(a)).concat(a.map((function(e){return"arc"+e})))).concat(a.map((function(e){return e+"h"})));var l=["det","gcd","inf","lim","liminf","limsup","max","min","Pr","sup"],c={ss:"ß",O:"Ø",o:"ø",L:"Ł",l:"ł",OE:"Œ",oe:"œ",AE:"Æ",ae:"æ",AA:"Å",aa:"å"},d=null,u=null,h={"`":"̀","'":"́","^":"̂",'"':"̈","~":"̃","=":"̄",".":"̇",u:"̆",v:"̌",H:"̋",c:"̧",d:"̣",b:"̱"},p=null;function f(i,r){r=r||"";var a=o[i];if("string"==typeof a)return a;var s=n[i]||i;return t[s]?"\\"+s+r:e.getCharForSymbolName(i)}return{trigonometricFunctions:a,functionNames:s,limitsFunctionNames:l,allFunctionNames:s.concat(l,["bigcup","bigcap","bigsqcup","biguplus","bigwedge","bigvee","bigodot","bigoplus","bigotimes","prod","sum","int"]),symbolMap:i,specialLetters:c,combiningChars:h,sanitzeLaTeXString:function(t){return t=(t=t.replace(/[^\u0000-\u007f]/g,(function(t){var i=e.unicodeMap[t];return i?f(i," "):t}))).replace(/\\omicron/g,"o")},replaceUnicodeBySpecialLettersName:function(e){var t;if(!d)for(t in d={},u={},c)c.hasOwnProperty(t)&&(t.length>1?u[c[t]]=t:d[c[t]]=t);return Object.keys(u).forEach((function(t){e=e.replace(new RegExp(t,"g"),"\\"+u[t])})),e.replace(/[^\000-\177]/g,(function(e){var t=e;return d[e]&&(t="\\"+d[e]),t}))},replaceUnicodeByCombiningCharsName:function(e){var t;if(!p)for(t in p={},h)h.hasOwnProperty(t)&&(p[h[t]]=t);return e.replace(/[\000-\177][^\000-\177]/g,(function(e){var t=e;return p[e[1]]&&(t="\\"+p[e[1]]+e[0]),t}))},commandName:f}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{id:"",text:"",actionClass:"",enabled:function(){return!1},constructor:function(e){t.mixin(this,e)},callback:function(){console.log("Please implement Callback for action")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1374),i(1375),i(1376),i(1377),i(1378),i(1379),i(1381),i(1382),i(1383),i(3678),i(1384),i(1385),i(1386),i(1387)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return{BLOCK_COMMENT:"blockcomment",CLASS_DEFINITION:"class",CLASS_ENUMERATION:"enumeration",CLASS_EVENTS:"events",FOR_LOOP:"for",FUNCTION_DEFINITION:"function",IF_STATEMENT:"if",CLASS_METHODS:"methods",CLASS_PROPERTIES:"properties",CLASS_SECTION:"classsection",SPMD_STATEMENT:"spmd",SWITCH:"switch",TRY_STATEMENT:"try",WHILE_LOOP:"while",getBlockTypeForNode:function(f){var g=null;return f instanceof e?g=this.BLOCK_COMMENT:f instanceof t?g=this.CLASS_DEFINITION:f instanceof i?g=this.CLASS_ENUMERATION:f instanceof n?g=this.CLASS_EVENTS:f instanceof o?g=this.FOR_LOOP:f instanceof r?g=this.FUNCTION_DEFINITION:f instanceof a?g=this.IF_STATEMENT:f instanceof s?g=this.CLASS_METHODS:f instanceof l?g=this.CLASS_PROPERTIES:f instanceof c?g=this.CLASS_SECTION:f instanceof d?g=this.SPMD_STATEMENT:f instanceof u?g=this.SWITCH:f instanceof h?g=this.TRY_STATEMENT:f instanceof p&&(g=this.WHILE_LOOP),g}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return class{static get SAVE_CANCELLED(){return"save_cancelled"}static get NOT_SUPPORTED_FILE_TYPE(){return"notASupportedFileError"}static get NOT_SUPPORTED_MLX_EXPORT_FILE_TYPE(){return"notASupportedMlxExportFileError"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(209),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._internalDocument=e,this._outOfDate=!0,this._addListenersForCacheInvalidation()},_addListenersForCacheInvalidation:function(){["onDocumentReset","onNodeChange","onDocumentChanged"].forEach(this._addDocumentEventListenerForCacheInvalidation.bind(this))},_addDocumentEventListenerForCacheInvalidation:function(e){this.own(t.after(this._internalDocument,e,function(){this._outOfDate=!0}.bind(this),!1,t.priority.INFRASTRUCTURE))},_ensureBuilt:function(){this._outOfDate&&(this._build(),this._outOfDate=!1)},_build:function(){i.error("AbstractCachedModelQueryService._build Unimplemented")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(319),i(300),i(524)],o=i.dj.d(n,(function(e,t,i){return{_IGNORABLE_SCHEMA:"w14 wp14",_IGNORABLE_STYLE_SCHEMA:"w14 w15",_NUMBERING_HEANGING:"200",_NUMBERING_LEFT:"720",_NUMBERING_LEVEL:"0",_NUMBERING_START:"1",_NUMBERING_TYPE:"hybridMultilevel",_SPACE:"preserve",createWordDocument:function(){var t=e.NAMESPACE_TAG+":"+e.ROOT_TAG_NAME,n=document.implementation.createDocument(e.NAMESPACE_URL,t,null),o=n.firstChild;return o.setAttribute(i.XML_SPACE,this._SPACE),o.setAttribute(i.SCHEMA_IGNORABLE_TAG,this._IGNORABLE_SCHEMA),o.setAttribute(i.MATH_TAG,i.MATH_SCHEMA),o.setAttribute(i.MARKUM_COMPATIBILITY_TAG,i.MC_SCHEMA),o.setAttribute(i.OFFICE_TAG,i.OFFICE_SCHEMA),o.setAttribute(i.REALATIONSHIPS_TAG,i.REALATIONSHIPS_SCHEMA),o.setAttribute(i.WORD_ML_TAG,i.W14_SCHEMA),o.setAttribute(i.WORD_PROCESSING_DRAWING_TAG,i.WORD_PROCESSING_DRAWING_SCHEMA),o.setAttribute(i.VLNS_TAG,i.VLNS_TYPE),n},createOXmlElement:function(t){return document.createElementNS(e.NAMESPACE_URL,t)},createAndAddElement:function(e,t){var i=this.createOXmlElement(t);return e.appendChild(i),i},createLatentStyles:function(e,t){var n=this.createOXmlElement(i.LATENT_STYLES_TAG);e.appendChild(n),n.setAttribute(i.COUNT_TAG,t.count),n.setAttribute(i.LOCKED_STATE_TAG,t.lockedState),n.setAttribute(i.DEF_Q_FORMAT_TAG,t.qFormat),n.setAttribute(i.SEMI_HIDDEN_TAG,t.hidden),n.setAttribute(i.UI_PRIORITY_TAG,t.priority),n.setAttribute(i.UNHIDE_WHEN_USED_TAG,t.unhideWhenUsed)},createStyle:function(e,t,n,o){var r=this.createOXmlElement(i.STYLE_TAG);return e.appendChild(r),r.setAttribute(i.STYLE_ID_TAG,t),r.setAttribute(i.TYPE_TAG,n),o&&r.setAttribute(i.DEFAULT,o),r},createStyles:function(){var e=this.createOXmlElement(i.STYLES_TAG);return e.setAttribute(i.SCHEMA_MC_TAG,i.MC_SCHEMA),e.setAttribute(i.SCHEMA_R_TAG,i.REALATIONSHIPS_SCHEMA),e.setAttribute(i.SCHEMA_W14_TAG,i.W14_SCHEMA),e.setAttribute(i.SCHEMA_W15_TAG,i.W15_SCHEMA),e.setAttribute(i.SCHEMA_IGNORABLE_TAG,this._IGNORABLE_STYLE_SCHEMA),e},setFont:function(e,t,n,o){var r=this.createOXmlElement(i.ROW_FONTS_TAG);e.appendChild(r),r.setAttribute(i.ASCII_TAG,t),r.setAttribute(i.CS_THEME_TAG,n),r.setAttribute(i.EAST_ASIA_THEME_TAG,o),r.setAttribute(i.H_ANSI_TAG,t)},createImage:function(e,n){var o=n.imgSrc?n.imgSrc:n.dataURL,r=t.getImageExtension(o),a=e.getPartURI(i.IMAGE_TARGET,i.IMAGE_NAME_TYPE,r),s=this._createPartRelationship(e.getPart(i.DOCUMENT_TARGET),a),l=i.IMAGE_NAME_TYPE+"/"+r;return e.createPart(a,l).setContent(o),n.relationshipId=s,s},_createPartRelationship:function(e,t){return e.createRelationship(i.IMAGE_RELATIONSHIP_TYPE,t)},setVerticalAlignment:function(n,o){var r=t.createXMLElementNS(e.NAMESPACE_TAG,e.RUN_OF_TEXT_PROPERTY_TAG_NAME);t.addParagraphProperty(r,i.POSITION,o),n.appendChild(r)},createNumbers:function(){return this.createOXmlElement(i.NUMBERING)},addAbstractNumbering:function(e,t,n,o){var r=this.createAndAddElement(e,i.ABSTRACT_NUMBER);r.setAttribute(i.ABSTRACT_NUMBER_ID,t),this.createAndAddElement(r,i.MULTILEVEL_TYPE).setAttribute(i.VALUE_TAG,this._NUMBERING_TYPE),this._addNumberLevel(r,n,o)},addNumberReference:function(e,t){var n=this.createAndAddElement(e,i.NUMBER);n.setAttribute(i.NUMBER_ID,t),this.createAndAddElement(n,i.ABSTRACT_NUMBER_ID).setAttribute(i.VALUE_TAG,t)},_addNumberLevel:function(n,o,r){var a=this.createAndAddElement(n,i.LEVEL);a.setAttribute(i.INITIAL_LEVEL,this._NUMBERING_LEVEL);var s=this.createOXmlElement(i.START);s.setAttribute(i.VALUE_TAG,this._NUMBERING_START),a.appendChild(s);var l=this.createOXmlElement(i.NUMBER_FORMAT);l.setAttribute(i.VALUE_TAG,r),a.appendChild(l);var c=this.createOXmlElement(i.LEVEL_TEXT);c.setAttribute(i.VALUE_TAG,o),a.appendChild(c);var d=this.createOXmlElement(i.LEVEL_JC);d.setAttribute(i.VALUE_TAG,i.LEFT),a.appendChild(d);var u=t.createXMLElement(e.PARAGRAPH_PROPERTY_TAG_NAME);a.appendChild(u);var h=this.createOXmlElement(i.INDENTATION_TAG);if(h.setAttribute(i.HANGING,this._NUMBERING_HEANGING),h.setAttribute(i.LEFT_TAG,this._NUMBERING_LEFT),u.appendChild(h),r===i.BULLET){var p=t.createXMLElement(e.RUN_OF_TEXT_PROPERTY_TAG_NAME);a.appendChild(p);var f=this.createOXmlElement(i.ROW_FONTS_TAG);p.appendChild(f),f.setAttribute(i.ASCII_TAG,i.SYMBOL),f.setAttribute(i.H_ANSI_TAG,i.SYMBOL),f.setAttribute(i.HINT,i.DEFAULT_TAG)}},createDrawing:function(t,n,o,r){var a=document.createElementNS(e.NAMESPACE_URL,i.DRAWING_TAG);return this._createInline(a,t,n,o,r),a},_createInline:function(e,t,n,o,r){var a=document.createElementNS(i.DRAWING_SHEMA,i.INLINE_TAG);e.appendChild(a),a.setAttribute(i.DIST_B,"0"),a.setAttribute(i.DIST_L,"0"),a.setAttribute(i.DIST_R,"0"),a.setAttribute(i.DIST_T,"0"),this._createExtent(a,n,o),this._createDocPr(a,r),this._createGraphic(a,t,n,o,r)},_createExtent:function(e,t,n){var o=document.createElementNS(i.DRAWING_SHEMA,i.EXTENT_TAG);e.appendChild(o),o.setAttribute(i.CX,n),o.setAttribute(i.CY,t)},_createDocPr:function(e,t){var n=document.createElementNS(i.DRAWING_SHEMA,i.DOC_PR_TAG);e.appendChild(n),n.setAttribute(i.ID,"1"),n.setAttribute(i.NAME,t)},_createGraphic:function(e,t,n,o,r){var a=document.createElementNS(i.DRAWING_ML_SHEMA,i.GRAPHIC_TAG);e.appendChild(a),this._createGraphicData(a,t,n,o,r)},_createGraphicData:function(e,t,n,o,r){var a=document.createElementNS(i.DRAWING_ML_SHEMA,i.GRAPHIC_DATA_TAG);e.appendChild(a),a.setAttribute(i.URI,i.PICTURE_SCHEMA),this._createPic(a,t,n,o,r)},_createPic:function(e,t,n,o,r){var a=document.createElementNS(i.PICTURE_SCHEMA,i.PIC_TAG);e.appendChild(a),this._createNvPicPr(a,r),this._createBlipFill(a,t),this._createSpPr(a,n,o)},_createNvPicPr:function(e,t){var n=document.createElementNS(i.PICTURE_SCHEMA,i.PIC_PR_AG);e.appendChild(n);var o=document.createElementNS(i.PICTURE_SCHEMA,i.C_NV_PR_TAG);n.appendChild(o),o.setAttribute(i.ID,"1"),o.setAttribute(i.NAME,t);var r=document.createElementNS(i.PICTURE_SCHEMA,i.C_NV_PIC_PR_TAG);n.appendChild(r)},_createBlipFill:function(e,t){var n=document.createElementNS(i.PICTURE_SCHEMA,i.BLIP_FILL_TAG);e.appendChild(n);var o=document.createElementNS(i.DRAWING_ML_SHEMA,i.BLIP_TAG);n.appendChild(o),o.setAttribute(i.R_EMBED,t);var r=document.createElementNS(i.DRAWING_ML_SHEMA,i.STRETCH_TAG);n.appendChild(r);var a=document.createElementNS(i.DRAWING_ML_SHEMA,i.FILL_RECT_TAG);r.appendChild(a)},_createSpPr:function(e,t,n){var o=document.createElementNS(i.PICTURE_SCHEMA,i.SP_PR_TAG);e.appendChild(o),this._createXfrm(o,t,n),this._createPrstGeom(o)},_createXfrm:function(e,t,n){var o=document.createElementNS(i.DRAWING_ML_SHEMA,i.XFRM_TAG);e.appendChild(o);var r=document.createElementNS(i.DRAWING_ML_SHEMA,i.OFF_TAG);o.appendChild(r),r.setAttribute(i.X,"0"),r.setAttribute(i.Y,"0");var a=document.createElementNS(i.DRAWING_ML_SHEMA,i.EXT_TAG);o.appendChild(a),a.setAttribute(i.CX,n),a.setAttribute(i.CY,t)},_createPrstGeom:function(e){var t=document.createElementNS(i.DRAWING_ML_SHEMA,i.PRST_GEOM_TAG);t.setAttribute(i.PRST,"rect"),e.appendChild(t);var n=document.createElementNS(i.DRAWING_ML_SHEMA,i.AV_LST_TAG);t.appendChild(n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1920),i(1374),i(1921),i(3794),i(1375),i(3795),i(3796),i(1376),i(1377),i(1378),i(1922),i(3797),i(1379),i(1380),i(1101),i(1381),i(1382),i(1383),i(3798),i(1923),i(1384),i(1385),i(1386),i(1905),i(1387),i(1394)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w){return{REGISTRY:{FunctionCallNode:u,FunctionDeclarationNode:h,ClassdefNode:o,EnumerationNode:s,PropertiesNode:_,MethodsNode:m,EventsNode:l,ProtoNode:v,IdentifierNode:f,ClassdefIdentifierNode:r,FunctionIdentifierNode:p,VariableNode:E,ForNode:c,ParForNode:c,WhileNode:S,SPMDNode:y,TryNode:T,SwitchNode:C,IfNode:g,EqualsNode:a,BlockCommentNode:t,CellTitleNode:n},BLOCK_REGISTRY:{function:d,method:d,arguments:e,classdef:o,enumeration:s,properties:_,methods:m,events:l,proto:v,for:c,parfor:c,while:S,spmd:y,try:T,switch:C,if:g,blockComment:t,comment:i,section:b},compareByPosition:function(e,t){return this._xBeforeY(e,t)?-1:this._xBeforeY(t,e)?1:0},_xBeforeY:function(e,t){var i=e.getEndLine(),n=t.getStartLine();return i<n||i===n&&e.getEndColumn()<t.getStartColumn()},findAsArray:function(e,t){var i=[];return this._forEachNode(e,(function(e){e.getType()===t&&i.push(e)})),i},_forEachNode:function(e,t){e.forEach((function(e){t(e),this._forEachNode(e.getChildren(),t)}),this)},isRangeEquivalent:function(e,t){var i=t.getStartPosition(),n=t.getEndPosition();return e.getStartColumn()===i.getColumn()&&e.getEndColumn()===n.getColumn()&&e.getStartLine()===i.getLine()&&e.getEndLine()===n.getLine()},createFoldCandidateForMTreeNode:function(e,t){var i=t.getRangeForMTreeNode(e);return new w(i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(470)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){},className:"RichTextContainerNode",getDefaultChild:function(){return{className:"RichTextNode",text:""}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){this._type=null},getType:function(){if(null===this._type)throw new Error("Instruction type not defined: MW.rtc.insertionrules.BaseInsertionInstruction");return this._type}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(919),i(390)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){this._type=i.RECEIVING_INSTRUCTION.CONTINUE_UP}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(224),i(242),i(445)],o=i.dj.d(n,(function(e,t,i,n){var o=e.getObject("dojox.html",!0),r={},a={},s=[];return o.insertCssRule=function(e,t,r){var a=o.getDynamicStyleSheet(r),s=e+" {"+t+"}";return console.log("insertRule:",s),n("ie")?(a.cssText+=s,console.log("ss.cssText:",a.cssText)):a.sheet?a.sheet.insertRule(s,a._indicies.length):a.appendChild(i.doc.createTextNode(s)),a._indicies.push(e+" "+t),e},o.removeCssRule=function(e,t,i){var o,a,s,l=-1;for(a in r)if(!i||i===a){for(o=r[a],s=0;s<o._indicies.length;s++)if(e+" "+t===o._indicies[s]){l=s;break}if(l>-1)break}return o?-1===l?(console.warn("The css rule was not found and could not be removed."),!1):(o._indicies.splice(l,1),n("ie")?o.removeRule(l):o.sheet&&o.sheet.deleteRule(l),!0):(console.warn("No dynamic style sheet has been created from which to remove a rule."),!1)},o.modifyCssRule=function(e,t,i){},o.getStyleSheet=function(e){if(r[e||"default"])return r[e||"default"];if(!e)return!1;var t,i=o.getStyleSheets();if(i[e])return o.getStyleSheets()[e];for(t in i)if(i[t].href&&i[t].href.indexOf(e)>-1)return i[t];return!1},o.getDynamicStyleSheet=function(e){return e||(e="default"),r[e]||(i.doc.createStyleSheet?(r[e]=i.doc.createStyleSheet(),n("ie")<9&&(r[e].title=e)):(r[e]=i.doc.createElement("style"),r[e].setAttribute("type","text/css"),i.doc.getElementsByTagName("head")[0].appendChild(r[e]),console.log(e," ss created: ",r[e].sheet)),r[e]._indicies=[]),r[e]},o.enableStyleSheet=function(e){var t=o.getStyleSheet(e);t&&(t.sheet?t.sheet.disabled=!1:t.disabled=!1)},o.disableStyleSheet=function(e){var t=o.getStyleSheet(e);t&&(t.sheet?t.sheet.disabled=!0:t.disabled=!0)},o.activeStyleSheet=function(e){var i,n=o.getToggledStyleSheets();if(1===arguments.length)t.forEach(n,(function(t){t.disabled=t.title!==e}));else for(i=0;i<n.length;i++)if(!1===n[i].disabled)return n[i];return!0},o.getPreferredStyleSheet=function(){},o.getToggledStyleSheets=function(){var e;if(!s.length){var t=o.getStyleSheets();for(e in t)t[e].title&&s.push(t[e])}return s},o.getStyleSheets=function(){if(a.collected)return a;var e=i.doc.styleSheets;return t.forEach(e,(function(e){var i=e.sheet?e.sheet:e,o=i.title||i.href;if(n("ie"))-1===i.cssText.indexOf("#default#VML")&&(i.href?a[o]=i:i.imports.length?t.forEach(i.imports,(function(e){a[e.title||e.href]=e})):a[o]=i);else{a[o]=i,a[o].id=i.ownerNode.id;var r=[];try{r=i[i.cssRules?"cssRules":"rules"]}catch(e){console.warn("Reading css rules from stylesheet "+i.href+" is forbidden due to same-origin policy. See http://www.w3.org/TR/CSP/#cascading-style-sheet-css-parsing",i)}t.forEach(r,(function(e){e.href&&(a[e.href]=e.styleSheet,a[e.href].id=i.ownerNode.id)}))}})),a.collected=!0,a},o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(233),i(1111)],o=i.dj.d(n,(function(e,t,i){return{_ACTIVE_CONFIGURATION_FILE:"ActiveConfigurationFile",_MODIFIED_SETTINGS:"ModifiedDefaultSettings",_PATH_TO_SETTING:["matlab","codeanalyzer"],_COMMENT:"#",_ENABLED:"1",_DISABLED:"0",_COPYRIGHT:"Copyright 2020 The MathWorks, Inc.",_LINE_BREAK:"\r\n",getActiveConfigFileInfo:async function(e){let i=await e.getSetting(this._PATH_TO_SETTING,this._ACTIVE_CONFIGURATION_FILE);return t.fileInfoFromPath(i.value)},getActiveConfig:async function(e){let t=await this.getActiveConfigFileInfo(e);return this.getConfig(t)},getConfigFromFileFromPicker:function(t){let n=new e;return i.readFromFileFromPicker(t).then(e=>{if(e.exist){let t=this._parseConfigString(e.data);n.resolve({config:t,file:e.file})}else n.reject(e)}),n},getConfig:function(t){let n=new e;return i.readFromFile(t.location,t.name).then(e=>{if(e.exist){let t=this._parseConfigString(e.data);n.resolve(t)}else n.reject(e)}),n},_parseConfigString:function(e){for(var t=e.split(this._LINE_BREAK),i=[],n=0;n<t.length;n++){var o=t[n].trim();if(0!==o.length&&o[0]!==this._COMMENT){if(o[0]!==this._ENABLED&&o[0]!==this._DISABLED)return null;var r=o.substring(0,1),a="";a=o[1]===this._ENABLED||o[1]===this._DISABLED?o.substring(2,o.length):o.substring(1,o.length),i.push({id:a,value:!(r===this._DISABLED)})}}return i},addItemsToActiveConfig:async function(e,t){let i=(await this.getActiveConfig(t)).concat(e);await this.updateActiveConfig(i,t),this.onConfigUpdated()},updateActiveConfig:async function(e,t){let i=await this.getActiveConfigFileInfo(t);return this.updateConfig(i.location,i.name,e,t)},writeConfigToFileFromPicker:function(e,t,n){let o=this._constructStringFromConfigItems(t);return this._updateModifiedSettingsValue(o,n),i.writeToFileFromPicker(o,e)},updateConfig:function(e,t,n,o){let r=this._constructStringFromConfigItems(n);return this._updateModifiedSettingsValue(r,o),i.writeToFile(e,t,r)},_constructStringFromConfigItems:function(e){let t=e.map(e=>(e.value?this._ENABLED:this._DISABLED)+e.id);return this._COMMENT+" "+this._COPYRIGHT+this._LINE_BREAK+this._LINE_BREAK+t.join(this._LINE_BREAK)+this._LINE_BREAK},onConfigUpdated:function(){},_updateModifiedSettingsValue:function(e,t){t.setSetting(this._PATH_TO_SETTING,this._MODIFIED_SETTINGS,e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(313),i(379)],o=i.dj.d(n,(function(e,t){return{cursorSortFunc:function(e,t){return this._firstCursorBeforeSecond(e,t)?-1:this._firstCursorBeforeSecond(t,e)?1:0},_firstCursorBeforeSecond:function(e,t){var i=e.getLineColumn(),n=t.getLineColumn();return i.line<n.line||!(i.line>n.line)&&i.column<n.column},getCursorAtEdgeOfRange:function(t,i){var n=null;return t.some((function(t){var o=t.getCursorPosition();if(0===e.comparePositions(o,i.getStartPosition())||0===e.comparePositions(o,i.getEndPosition()))return n=t,!0})),n},getLineColumnPair:function(e){if(e.hasSelection())return this.normalizeSelection(e.getSelectionLineColumn());var t=e.getLineColumn();return{start:t,end:t}},normalizeSelection:function(e){return e.start.line<e.end.line?e:e.start.line>e.end.line||e.start.column>e.end.column?{start:e.end,end:e.start}:e},getTextBeforeCursor:function(e,i,n){n=n||!1;var o=e.getLineColumn(),r=e.getSelection();if(r&&n&&!t.isMultiLineSelection(e)){var a=r.getStartPosition().getColumn(),s=r.getEndPosition().getColumn();o.column=Math.min(a,s)}return i.getLineText(o.line).substring(0,o.column-1)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{COMMENT_REGEXP:/%\s*\S*/,COMMENT_ANNOTATION_REGEXP:/^\s*%+\s*/,BLOCK_COMMENT_START_REGEX:/^\s*(%{)\s*$/,BLOCK_COMMENT_END_REGEX:/^\s*(%})\s*$/,COMMENT_BULLET_REGEX:/\s*[%]+\s*[*#]/,BLOCK_COMMENT_START:"%{",BLOCK_COMMENT_END:"%}",WRAP_FROM_COMMENT_START_ID:"matlab.editor.language.matlab.comments.FromCommentStart",WRAP_WIDTH_ID:"matlab.editor.language.matlab.comments.MaxWidth",WRAP_DEFAULT_WIDTH:75}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{FUNCTION_ARGS_NAVIGATE_ENTER:"navigateIntoFunctionArgs",FUNCTION_ARGS_NAVIGATE_EXIT:"navigateOutFunctionArgs",FUNCTION_ARGS_NAVIGATE:"navigateInsideFunctionArgs",FUNCTION_ARGS_NAVIGATE_CHANGE:"navigateBetweenArgs",INNER_NESTED_FUNCTION_CALL:"nestedChildFunctionCall",OUTER_NESTED_FUNCTION_CALL:"ParentFunctionCall",VALID_FUNCTIONS_ADDED:"validFunctionsAdded",VALID_FUNCTIONS_CHANGED:"validFunctionsChanged",VALID_FUNCTIONS_REMOVED:"validFunctionsRemoved",FUNCTIONS_ON_VALID_DOCUMENT_CHANGE:"functionInfoOnValidDocumentChange"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4251)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.view","rtc.scrollpane"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(237),i(4305),i(1987),i(320)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{SHIFT_FOR_LENGTH:8,AND_FOR_TYPE:255,constructor:function(){this._tokenizer=r,this._tokenizer.initialize(),this._resetTokenStates()},initializeLines:function(e){var t,i=e.split("\n");this._resetTokenStates(),(i=this._addNewLineCharacter(i)).forEach((function(e,i){t=this._tokenizeCode(e,i,this.getLexStateForLine(i)),this._replaceLineHandle(i,t)}),this)},retokenize:function(e,t,i){var n=Object.keys(this._tokenMap).length;n||(this.initializeLines(""),n=Object.keys(this._tokenMap).length),this._assertValidLines(t,i),this._isMultiLineDocumentChange=i>t;var o=e.split("\n"),r=(o=this._addNewLineCharacter(o)).length;t>n&&(t=n);var a=i;if(n>r){var s=n-r;this._deleteTokenPlaceHolders(i,n,s,r),this._deleteLineHandles(t,i,s)}else if(n<r){var l=r-n;this._insertTokenPlaceHolders(t,i,l),this._insertLineHandles(o,t,l)}return this.getNumberOfSavedStates()>1&&t<r&&(a=this._rippleThroughLines(o,t,i)),a},resetStartingTokenizerStateForLine:function(e){var t=this._tokenizer.make_lex_state();this._replaceLineHandle(e-1,t)},_assertValidLines:function(e,t){i.assert(e>=0,"Invalid start line"),i.assert(t>=0,"Invalid end line")},_isMultiLineChange:function(){return this._isMultiLineDocumentChange},_addNewLineCharacter:function(e){for(var t=e.length,i=0;i<t-1;i++)e[i]+="\n";return e},_resetTokenStates:function(){this._tokenMap={},this._lexState=this._tokenizer.make_lex_state(),this._savedLexStates=[this._lexState],this._isLineExecutable=[],this._tokensOnLine=[],this._isMultiLineDocumentChange=!1},_deleteTokenPlaceHolders:function(e,t,i,n){for(var o,r,a=e;a<t;a++)if(this._tokenMap[a]){o=this._tokenMap[a];for(var s=0;s<o.length;s++)(r=o[s]).setLine(Math.max(0,r.getLine()-i));this._tokenMap[Math.max(0,a-i)]=this._tokenMap[a]}Object.keys(this._tokenMap).reverse().forEach((function(e){var t=parseInt(e,10);t>=n&&delete this._tokenMap[t]}),this)},_deleteLineHandles:function(e,t,i){for(var n=e+i;n>e;n--)this._removeLineHandle(n),this._isLineExecutable.splice(n,1),this._tokensOnLine.splice(n,1)},_removeLineHandle:function(e){e+1<this.getNumberOfSavedStates()&&this._savedLexStates.splice(e+1,1)},_insertTokenPlaceHolders:function(e,t,i){for(var n,o,r=[],a=Object.keys(this._tokenMap).reverse(),s=parseInt(a[0],10);s>=e;s--){n=this._tokenMap[s];for(var l=0;l<n.length;l++)(o=n[l]).setLine(o.getLine()+i);this._tokenMap[s+i]=this._tokenMap[s],this._tokensOnLine[s+i]=JSON.stringify(this._tokenMap[s]),this._isLineExecutable[s+i]=this._isLineExecutable[s]}for(s=e;s<=t;s++)this._tokenMap[s]=r},_insertLineHandles:function(e,t,i){for(var o=[],r=this._createStateHandle(e,t),a=t;a<t+i;a++){var s={};this._tokenizer.copy_lex_state(s,r),r=this._createStateHandleUsingPreviousHandle(e,a+1,r),a+1>=this.getNumberOfSavedStates()?this._replaceLineHandle(a,s):o.push(s)}this._savedLexStates=n.insertArrayAt(o,this._savedLexStates,t+1)},_replaceLineHandle:function(e,t){this._savedLexStates[e+1]={},this._tokenizer.copy_lex_state(this._savedLexStates[e+1],t)},_rippleThroughLines:function(e,t,i){this._assertValidLines(t,i);for(var n,o=t,r=!1,a=-1,s=e.length,l=!1;!r;)n=this._createStateHandle(e,o),(l=this._isLineUnchanged(o,n))||(a=o,this._replaceLineHandle(o,n)),o>=i&&l&&(r=!0),++o===s&&(r=!0);return-1===a&&(a=i),Math.min(a+1,s-1)},_createStateHandle:function(e,t){var i=this.getLexStateForLine(t);return this._createStateHandleUsingPreviousHandle(e,t,i)},_createStateHandleUsingPreviousHandle:function(e,t,i){var n=e[t];return this._tokenizeCode(n,t,i)},_tokenizeCode:function(e,t,i){e||(e="");var n=e.length+3,o=[],r=this._tokenizer.lex_line(o,n,i,e,e.length);return this._notEnoughRoom(r)&&(n*=2,r=this._tokenizer.lex_line(o,n,i,e,e.length)),this._isLineExecutable[t]=r.isExecutable,this._parseTokens(o,e,t),this._tokensChanged=this._tokensOnLine[t]!==JSON.stringify(this._tokenMap[t]),this._tokensOnLine[t]=JSON.stringify(this._tokenMap[t]),r.newState},_isLineUnchanged:function(e,t){var i=this.areStatesEqual(t,this.getLexStateForLine(e+1));return this._isMultiLineChange()?i:i&&!this._tokensChanged},_notEnoughRoom:function(e){return-1===e.numTokens},getLexStateForLine:function(e){return this._savedLexStates[e]},getExecutableLineData:function(){return this._isLineExecutable},isLineContinuation:function(e){return this._tokenizer.is_contin(e)},haveEnds:function(e){return this._tokenizer.nesting(e,null)},areStatesEqual:function(e,t){if(e&&t)return this._tokenizer.are_states_equal(e,t)},getNumberOfSavedStates:function(){return this._savedLexStates.length},getTokenMap:function(){return this._tokenMap},getLastToken:function(e){var t=null,i=this._tokenMap[e];return i&&i.forEach((function(e){a.isEndOfLineToken(e)||(t=e)}),this),t},getFirstToken:function(e){var t=null,i=this._tokenMap[e];return i&&i.length>0&&(t=i[0],a.isEndOfLineToken(t)&&(t=null)),t},getTokenOnLineColumn:function(e,t){for(var i=this.getFirstToken(e);i;){if(this.isTokenAtColumn(i,t))return i;i=this.getNextToken(i)}return i},isTokenAtColumn:function(e,t){var i=this.getTokenColumn(e),n=this.getTokenLength(e);return i<=t&&t<=i+n-1},getTokenColumn:function(e){return e._column},getTokenLength:function(e){return e._length},getNextToken:function(e){var t=null,i=this._tokenMap[e.getLine()],n=e.getIndex();return i&&i[n+1]&&!a.isEndOfLineToken(i[n+1])&&(t=i[n+1]),t},getPreviousToken:function(e,t){var i;if(null===e)return i=t-1,this._searchBackForToken(i);t=e.getLine();var n=this._tokenMap[t],o=e.getIndex();return n&&n[o-1]?n[o-1]:(i=t-1,this._searchBackForToken(i))},getNumberOfTokensOnLine:function(e){return this._tokenMap[e]?this._tokenMap[e].length:null},_searchBackForToken:function(e){for(var t=this.getLastToken(e);!t&&e>=0;)t=this.getLastToken(e-=1);return t},_parseTokens:function(e,t,i){var n,r,a,s,l=[],c=e.length,d=0;for(n=0;n<c;n+=1)r=this._extractTokenInfo(e[n]),a=t.substr(d,r.length),s=new o(n,r.type,i,d,r.length,a),l.push(s),d+=r.length;this._tokenMap[i]=l},_extractTokenInfo:function(e){var t={};return t.type=e&this.AND_FOR_TYPE,t.length=e>>this.SHIFT_FOR_LENGTH,t},destroy:function(){this._tokenMap={},this._tokenizer={},this._lexState={},this._savedLexStates=[],this._isLineExecutable=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(1121),i(475)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_OPEN_CHAR:void 0,_CLOSE_CHAR:void 0,_isTriggerPositionExpected:function(e){var i=e.triggerPos.getNode();return!t.isCodeContainer(i)&&!t.isNonExecutableCodeContainer(i)},_isTriggerTypeExpected:function(e){return e.type===n.INSERT_TEXT&&e.text===this._CLOSE_CHAR.slice(-1)},_getTextRangeForFormatting:function(){var e=this.inherited(arguments);if(!e)return null;var t=this._OPEN_CHAR.length,i=this._CLOSE_CHAR.length;return e.left+=t,e.right-=i,e.text=e.text.slice(t,-i),e},_format:function(e){var t=e.target;return this._document.deleteText(t.line,t.right,t.line,t.right+this._CLOSE_CHAR.length),this._document.deleteText(t.line,t.left-this._OPEN_CHAR.length,t.line,t.left),t.left-=this._OPEN_CHAR.length,t.right-=this._OPEN_CHAR.length,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4440)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.view","rtc.cursorcontroller","rtc.focusservice","rtc.actionservice","rtc.tokenmatching.eventhandler","language.common.blockmatching.view","language.common.tokenmatcher"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4441)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.view","rtc.internaldocument","rtc.cursorcontroller","rtc.focusservice","rtc.linenumberservice","rtc.offscreennotification","language.interface.tokenmanager","language.common.syntaxhighlighter.colors","rtc.view.styles.globalstylechanger","rtc.linenumberpreference","rtc.tokenhighlighting.view"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4448)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.internaldocument","language.interface.tokenmanager","language.interface.tokenmatcher.rules"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{CONTROLS_AND_CODE:"0",CONTROLS_ONLY:"1",CODE_ONLY:"2",DEFAULT:"1"}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{TOUCH:"touch",MOUSE:"mouse",PEN:"pen"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(935),i(2015)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){this._styler=new i(this)},destroy:function(){this._styler.destroy(),this.inherited(arguments)},getStyler:function(){return this._styler}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(229)],o=i.dj.d(n,(function(e,t){return e(null,{type:null,uid:null,codeLinePositions:null,constructor:function(e){this.uid=t.generateUuid()},destroy:function(){},getCodeLinePositions:function(){return this.codeLinePositions},setCodeLinePositions:function(e){this.codeLinePositions=e},getCssTag:function(){throw new Error("Unimplemented API: MW.rtc.plugins.embeddedoutputs.outputhandlers.BaseOutput.getCssTag()")},getDomElement:function(){throw new Error("Unimplemented API: MW.rtc.plugins.embeddedoutputs.outputhandlers.BaseOutput.getDomElement()")},startup:function(){},getSerializableData:function(){throw new Error("Unimplemented API: MW.rtc.plugins.embeddedoutputs.outputhandlers.BaseOutput.getSerializableData()")},getText:function(){throw new Error("Unimplemented API: MW.rtc.plugins.embeddedoutputs.outputhandlers.BaseOutput.getText()")},getHTML:function(e,t){throw new Error("Unimplemented API: MW.rtc.plugins.embeddedoutputs.outputhandlers.BaseOutput.getHTML()")},isReady:function(){return!0},getReadyPromise:function(){throw new Error("Unimplemented API: MW.rtc.plugins.embeddedoutputs.outputhandlers.BaseOutput.getReadyPromise()")},getCapabilities:function(){return{isKeyboardAccessible:!1}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(213),i(225)],o=i.dj.d(n,(function(e,t,i){return{_ELEMENT_NODE:1,cleanUpCSS:function(e){return e.replace(/\n|.rtePane /g,"").replace(/}/g,"}\n")},removeElementsWithClass:function(t,n){var o;return i(n,t).length>0?(o=t.cloneNode(!0),i(n,o).forEach((function(t){e.destroy(t)})),o):t},convertToInlineStyles:function(e,i){if(i.nodeType===this._ELEMENT_NODE){var n=t.getComputedStyle(i);e.style.whiteSpace=n.whiteSpace,e.style.fontStyle=n.fontStyle,e.style.color=n.color,e.style.fontSize=n.fontSize;for(var o=0;o<i.childNodes.length;o++)this.convertToInlineStyles(e.childNodes[o],i.childNodes[o])}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{OUTPUT_TYPE:"figure",CSS_TAG:"embeddedOutputsFigure",STATE:{NOT_INITIALIZED:0,PLACEHOLDER:1,PENDING:2,FINAL_SNAPSHOT:3,FINAL_PENDING_SNAPSHOT:4}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(213),i(210),i(1443),i(1444),i(206),i(217),i(230),i(2029)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([c,d],{_outputDomNode:null,_mouseEnterListener:null,_mouseLeaveListener:null,paletteRegistryId:"",paletteWidth:null,setTarget:function(e){this._outputDomNode!==e&&(this._mouseEnterListener&&this._mouseEnterListener.remove(),this._outputDomNode=e,this._mouseEnterListener=s(this._outputDomNode,"mouseenter",t.hitch(this,(function(e){this._handleMouseEnter(e)}))),this._mouseLeaveListener=s(this._outputDomNode,"mouseleave",t.hitch(this,(function(e){this._handleMouseLeave(e)}))),this.own(this._mouseEnterListener),this.own(this._mouseLeaveListener))},getView:function(){if(!this._palette){var e=r.getPalette(this.paletteRegistryId);a.getPalette(e,t.hitch(this,(function(e){this._palette=e,this._palette.startup(),this._setupPaletteListeners()})))}return this._palette},_setupPaletteListeners:function(){this._paletteListener||(this._paletteListener=this._palette.on("elementClicked",t.hitch(this,(function(e){this.notify("interaction",{})}))))},addInteractionListener:function(e){this.own(s(this,"interaction",e))},getPreferredLeftPosition:function(){throw new Error("getPreferredLeftPosition must be overridden")},_handleMouseEnter:function(e){this.updatePalettePosition()},updatePalettePosition:function(){if(this._palette=this.getView(),this._palette){if(i.place(this._palette.domNode,this._outputDomNode),this.isInline(this._outputDomNode)){var e=this.getPreferredLeftPosition();null===this.paletteWidth&&(this.paletteWidth=this._palette.domNode.offsetWidth),e+this._palette.domNode.offsetWidth>this._outputDomNode.offsetWidth?n.set(this._palette.domNode,{right:"1px",left:"",top:"0px"}):n.set(this._palette.domNode,{left:e+"px",right:"",top:"0px"})}else n.set(this._palette.domNode,{right:"1px",left:"",top:"5px"});this.setVisible(!0)}},destroy:function(){this.inherited(arguments),this.destroyView()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211)],o=i.dj.d(n,(function(e){return{createHeader:function(e){return""==e?e:this._createHeaderSpanElement(e)},_createHeaderSpanElement:function(t){var i=e.create("span",{className:"headerElement",innerHTML:t}).innerText,n=e.create("span",{className:"headerElement"});return n.innerText=i,n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";function e(e,t){var i=e.indexOf(t);return i>=0&&e.splice(i,1),e}function t(t){return t?e(t.split("-"),"normal"):[]}function i(e){return 0===e.length?"normal":e.sort().join("-")}return{add:function(e,n){var o=t(e);return i(o=function(e,t){return e.indexOf(t)<0&&e.push(t),e}(o,n))},remove:function(n,o){var r=t(n);return i(r=e(r,o))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(237),i(270),i(283)],o=i.dj.d(n,(function(e,t,i){return{FROM_LEFT:1,FROM_RIGHT:-1,getAdjustedPositionFromDirection:function(e,t){var i=e.getNode();if(e.isAtRightEdge()&&t===this.FROM_LEFT)i.nextSibling()&&(e=i.nextSibling().startPosition());else if(e.isAtLeftEdge()&&t===this.FROM_RIGHT){i.previousSibling()&&(e=i.previousSibling().endPosition())}return e},getPositionForNavigationFromDirection:function(e,t,i){return t===this.FROM_RIGHT?this._getLeftPositionForNavigation(e,i):this._getRightPositionForNavigation(e,i)},_getLeftPositionForNavigation:function(n,o){var r,a=n.getNode().rootContainer();if(e.isAtStartOfContainer(n,a)){if((r=i.getLiveAppLineNodeFromViewModel(n,o))&&i.hasGeneratedCodeInView(r)){if(i.getStartLineOfGeneratedCode(r)===a)return new t(r,0);if(a!==r)return null}var s=a.previousSibling();if(s){var l=s.startPosition();if(r=i.getLiveAppLineNodeFromViewModel(l,o))return new t(r,1)}}else if(e.isAtEndOfContainer(n,a)&&(r=i.getLiveAppLineNodeFromViewModel(n,o))===a&&i.hasGeneratedCodeInView(r)){var c=i.getEndLineOfGeneratedCode(r);return new t(c,c.maxOffset())}return null},_getRightPositionForNavigation:function(n,o){var r,a=n.getNode().rootContainer();if(e.isAtStartOfContainer(n,a)){if((r=i.getLiveAppLineNodeFromViewModel(n,o))===a&&i.hasGeneratedCodeInView(r)){var s=i.getStartLineOfGeneratedCode(r);return new t(s,0)}}else if(e.isAtEndOfContainer(n,a)){if(!(r=i.getLiveAppLineNodeFromViewModel(n,o))||!i.hasGeneratedCodeInView(r))return null;var l=i.getEndLineOfGeneratedCode(r);if(l===a)return new t(r,1);if(r===a){var c=l.nextSibling();return c?new t(c,0):new t(r,1)}}return null}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{CHANGED:"rtc_liveapps_changed",SECTION_EXECUTION:"rtc_liveapps_execution_Section",POST_EXECUTION:"rtc_liveapps_post_execution",POST_EXECUTION_NO_CODE:"rtc_liveapps_post_execution_no_code",DELETE:"rtc_liveapps_delete"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(258),i(324),i(320),i(927)],o=i.dj.d(n,(function(e,t,i,n){var o=/^[a-zA-Z]\w*$/;return{VARIABLE_MAX_LENGTH:63,getVariableNameInfo:function(e){var t=e.getContext("appVariables"),i=e.getContext("appVariablesUserMap");return(t?t.split(","):[]).map((function(e){return{originalVariable:e,userVariable:i[e]||e}}))},getCodeWithUserVariableNames:function(e,t){var i=this.analyzeCode(e);return this.getCodeWithUserVariableNamesUsingAnalyzedData(i,t)},analyzeCode:function(e){var t=new n;return t.initializeLines(e),{codeLines:e.split("\n"),tokenMap:t.getTokenMap()}},getCodeWithUserVariableNamesUsingAnalyzedData:function(e,t){var i=this._getLineNodesFromAnalzyedData(e),n=this._getRangesForReplacement(e,t,i);return this._replaceTextOnRanges(n),i.map((function(e){return e.textContent})).join("\n")},_getLineNodesFromAnalzyedData:function(e){return e.codeLines.map((function(e){var t=document.createElement("span");return t.textContent=e,t}))},_getRangesForReplacement:function(e,i,n){for(var o=[],r=0;r<e.codeLines.length;r++)for(var a=e.tokenMap[r],s=!1,l=0;l<a.length;l++){var c=a[l];if(c.getType()===t.TOKENS.BACKQUOTE)s=!s,this._addRangeOfTextToReplaceForToken(o,n,c,"");else if(!s&&this._isRenamableVariableToken(c,l,a)){var d=i[c.getValue()];d&&this._addRangeOfTextToReplaceForToken(o,n,c,d)}}return o},_addRangeOfTextToReplaceForToken:function(e,t,i,n){var o=t[i.getLine()].firstChild,r=document.createRange();r.setStart(o,i.getColumn()),r.setEnd(o,i.getColumn()+i.getLength()),r.textToReplace=n,e.push(r)},_replaceTextOnRanges:function(e){e.forEach((function(e){var t=document.createElement("span");e.surroundContents(t),t.textContent=e.textToReplace}))},getRenamableLhsVariables:function(e){for(var t=[],n=0;n<e.codeLines.length;n+=1){var o=e.tokenMap[n],r=[];o.some((function(e,t){if(i.isEqualsToken(e))return!0;this._isRenamableVariableToken(e,t,o)&&r.push(e.getValue())}),this)&&(t=t.concat(r))}return t},_isRenamableVariableToken:function(e,t,n){if(!i.isIdToken(e)&&!i.isDualToken(e))return!1;var o=n[t-1];return!o||!i.isDotToken(o)},getEditField:function(t){var i=document.createElement("span");i.classList.add("liveAppVariableWrapper");var n=document.createElement("span");n.textContent=t,n.classList.add("liveAppVariableTextView"),n.classList.add("liveAppCodeStyle");var o=new e({width:"100%",maxlength:this.VARIABLE_MAX_LENGTH,value:t});return o.inputNode.classList.add("liveAppCodeStyle"),i.appendChild(n),i.appendChild(o.domNode),{domNode:i,textView:n,inputWidget:o}},isVariableNameAllowed:function(e,t,i){return this.isValidVariableName(e)&&this.isVariableNameNotUsedInSameLiveApp(e,t,i)},isValidVariableName:function(e){return o.test(e)},isVariableNameNotUsedInSameLiveApp:function(e,t,i){return!Object.keys(t).some((function(n){var o=t[n].inputWidget;if(o!==i&&o.get("value")===e)return!0}))},variableMapsEqual:function(e,t){var i=Object.keys(e),n=Object.keys(t);return i.length===n.length&&!i.some((function(i){return e[i]!==t[i]}),this)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(270),i(500),i(686)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){},getPositionFromCoordinate:function(e,t){var o=this._getClientRects(t)[0];if(!n.isCoordinateWithinRect(e,o))return null;var r=0;return e.x>=o.left+o.width/2&&(r=1),new i(t,r)},getCoordinateFromPosition:function(e){var t=e.getNode(),i=e.getOffset(),n=this.getDomNode(t);return this._getCoordinateFromDomNode(n,i)},_getCoordinateFromDomNode:function(e,i){var o=e?t.position(e):{x:0,w:0},r=e?n.getOffsetRectFromDomNode(e):{top:0,left:0,width:0,height:0};return{x:i?r.right:r.left,y:r.top,width:r.width,height:r.height,pageX:o.x+(i?o.w:0)}},_getSubClientRects:function(e){return this.getClientRects(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(249),i(260),i(577),i(270),i(497),i(663)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=e(a,{type:t.INSERT_TEXT,primitiveProperties:["text","length"],constructor:function(e,t,i,n){this.position=i,this.text=n,this.length=n?n.length:0},getMutation:function(){return n.createFromEvent(this,n.MUTATION_TYPE.INSERTION)},serialize:function(e){const t=this.inherited(arguments);return t.position={id:e.serializeNode(this.position.getNode()),offset:this.position.getOffset()},t},deserialize:function(e,t){this.inherited(arguments),this.position=new o(t.getNode(e.position.id),e.position.offset)},getUndoEvent:function(){return r.create(this.startLine,this.endLine,this.position.getLineColumn().column)}});return{create:function(e,n,o,r){return i.assertValidLines(e,n,t.INSERT_TEXT),new s(e,n,o,r)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(231),i(203),i(223),i(5211),i(208),i(5212),i(5214),i(5215),i(5216),i(5217),i(5218),i(5219),i(501),i(5220),i(550)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m=i([e,a,l,c,d,u,s],{baseClass:"mwLiveControl",_CONTROL_PROPERTY_NAME:"controlPropertyName",_CATEGORY_PROPERTIES_LIST:"properties",_PROPERTY_VALUES_TEXT:"value_RSRC",constructor:function(){this.childWidget=null,this._disabledCategories=[],this._ELEMENTS_DISPLAY_TO_TOGGLE=[],this._hasLabel=!0,this._widgetClickManager=new f(this._emitWidgetMouseDownEvent.bind(this),this._handleBlurLeft.bind(this),this._handleBlurRight.bind(this))},buildRendering:function(){this.inherited(arguments),this.domNode.setAttribute("tabindex","-1"),this.domNode.setAttribute("data-focus","temporary"),this._buildWidgetContainer(),this._hasLabel&&(this.createLabel(),this._ELEMENTS_DISPLAY_TO_TOGGLE.push({element:this.getLabelContainerElement(),visibleInHideCodeView:!0,visibleInEditMode:!0,isEmpty:!1})),this._buildEditorContainer(),this._widgetContainer.appendChild(this.childWidget.domNode),p.addVisibleElementAttribute(this.childWidget.domNode),this.domNode.classList.add(this.liveControlClass),this.own(this.childWidget)},_buildWidgetContainer:function(){this._widgetOuterContainer=g.buildNode("div",{className:"mwLiveControl__outerContainer",parent:this.domNode,useOwnClass:!0},this.baseClass),this._containerWidget=p.buildContainerWidget("mwLiveControl__outerContainer__widgetContainer"),this._widgetContainer=this._containerWidget.domNode,this._widgetOuterContainer.appendChild(this._widgetContainer)},_buildEditorContainer:function(){this.editorContainer=g.buildNode("div",{className:"mwLiveControl__editorContainer",parent:this.domNode,useOwnClass:!0},this.baseClass),this.editorContainer.setAttribute("tabindex","-1")},postCreate:function(){this.inherited(arguments);var e=h.mergePropertySheet(JSON.stringify(this._widgetPropertyData),o);this._widgetPropertyData=JSON.parse(e),this.initializeProperties(),this._eventHandlers=[],this._eventHandlers.push(g.setEventListener(this.domNode,"mousedown",this._handleWidgetMouseDown.bind(this),!0)),this._eventHandlers.push(g.setEventListener(this.domNode,"keydown",this.handleKeyDown.bind(this),!0)),this._eventHandlers.push(g.setEventListener(this.domNode,"keyup",this.handleKeyUp.bind(this))),this._eventHandlers.push(g.setEventListener(this.domNode,"change",this.handleChange.bind(this))),this._eventHandlers.push(g.setEventListener(this.domNode,"propertychanged",this.handlePropertyChange.bind(this))),this._eventHandlers.push(g.setEventListener(this.domNode,"blur",this._handleChildWidgetBlur.bind(this),!0)),this._eventHandlers.push(g.setEventListener(this.domNode,"focus",this._handleChildWidgetFocus.bind(this),!0)),this._eventHandlers.push(g.setEventListener(this.domNode,"focus",this.focus.bind(this))),this._eventHandlers.push(g.setEventListener(this.domNode,"configpanelwarningdisplayed",this._handleConfigPanelWarningDisplayed.bind(this))),this._setInitialDefaultValue(),this._setInitialDefaultState()},_setValueAttr:function(e){this.childWidget.set("value",e),this._set("value",e)},setDDUXContributor:function(e){this._liveControlDDUXContributor=e},getElementsDisplayToToggle:function(){return this._ELEMENTS_DISPLAY_TO_TOGGLE},isResettable:function(){return!0},getResizableWidgetElement:function(){return this.childWidget.domNode},getResizableLabelElement:function(){return this._hasLabel?this._label.domNode:null},getLabelContainerElement:function(){return this._labelContainer},_getPanelWidthAttr:function(){return 252},_getPanelHeightAttr:function(){var e=this.get("editMode")?3:0;return this.editorContainer.getBoundingClientRect().height+e},focus:function(){this.childWidget&&this.childWidget.focusNode.focus()},getChildWidget:function(){return this.childWidget},_emitWidgetMouseDownEvent:function(e){this.emit("widgetmousedown",{mwEventData:{event:e}})},emitKeyOnWidgetsEvent:function(e){this.emit("keyonwidgets",{mwEventData:{event:e}})},emitRestoreFocusEvent:function(){this.emit("restorefocustolastnonrefuseelement")},createLabel:function(){this.inherited(arguments)},initializeProperties:function(){this._configurableProperties=this._getConfigurableProperties()},disableCategory:function(e,t){var i=this._disabledCategories.indexOf(e);t?-1===i&&this._disabledCategories.push(e):this._disabledCategories.splice(i,1)},updatePropertyChoices:function(e,t){Object.keys(this._widgetPropertyData).forEach((function(i){let n=this._widgetPropertyData[i].sections;if(n)n.forEach(i=>{let n=i.properties;this._updateValueOfMatchingProperty(n,e,t)});else{let n=this._widgetPropertyData[i].properties;this._updateValueOfMatchingProperty(n,e,t)}}),this)},_updateValueOfMatchingProperty:function(e,t,i){e.some(e=>{if(e.controlPropertyName===t)return e.value_RSRC=i,!0})},handleChange:function(e){var i=t.getEnclosingWidget(e.target);(this.get("editMode")||i===this.valueEditor)&&(e.stopImmediatePropagation(),e.stopPropagation())},handlePropertyChange:function(e){var t=e.propertyName,i=e.newValue;this._handlePropertyChange(t,i),this._liveControlDDUXContributor.logDDUXForPropertyChange(e,this.get("type"))},_handlePropertyChange:function(e,t){this.set(e,t)},_updateElementsToToggleList:function(e,t){this._ELEMENTS_DISPLAY_TO_TOGGLE=this._ELEMENTS_DISPLAY_TO_TOGGLE.map((function(i){return i.element===e&&Object.keys(i).forEach((function(e){i[e]=t.hasOwnProperty(e)?t[e]:i[e]})),i}))},_handleChildWidgetFocus:function(){this.domNode.classList.add("mwLiveControl--focused")},_handleChildWidgetBlur:function(){this.domNode.classList.remove("mwLiveControl--focused")},navigate:function(e){var t=e.keyCode,i=document.activeElement,o=!1;return t!==n.DELETE&&t!==n.BACKSPACE&&t!==n.TAB||i!==this.childWidget.domNode&&(this.focus(),o=!0),o},_handleWidgetMouseDown:function(e){this.get("editMode")?this._emitWidgetMouseDownEvent(e):this._widgetClickManager.handleWidgetMousedown(e,this._widgetOuterContainer)},_handleBlurLeft:function(e){e.preventDefault(),this.emit("blurleft")},_handleBlurRight:function(e){e.preventDefault(),this.emit("blurright")},handleKeyDown:function(e){var t=e.keyCode,i=document.activeElement;switch(this.enableCommitInEditMode(),t){case n.TAB:i===this.childWidget.focusNode&&(e.preventDefault(),this.emitKeyOnWidgetsEvent(e));break;case n.ESCAPE:this.emitKeyOnWidgetsEvent(e);break;default:this.get("editMode")||this.emitKeyOnWidgetsEvent(e)}this._logKeyEvents(e)},_logKeyEvents:function(e){this.get("editMode")||this._liveControlDDUXContributor.logDDUXForKeyEvents(e,this.get("type"))},handleKeyUp:function(e){e.keyCode===n.ESCAPE&&(this.get("editMode")||this.emitRestoreFocusEvent())},enableCommitInEditMode:function(){this.configPanel&&this.configPanel.set("commit",!0)},_getConfigurableProperties:function(){return p.getValuesForMatchingKeyInObject(this._widgetPropertyData,"controlPropertyName",[])},_enterEditModeOnDoubleClick:function(){this.set("editMode",!0),this._liveControlDDUXContributor.logDDUXForDoubleClickConfigMode(this.get("type"))},_handleConfigPanelWarningDisplayed:function(e){this._liveControlDDUXContributor.logConfigPanelWarningDisplayed(e.mwEventData,this.get("type"))},_setInitialDefaultValue:function(){},_setInitialDefaultState:function(){},startup:function(){this.inherited(arguments),this.childWidget&&this.childWidget.startup()},destroy:function(){this.configPanel&&this.configPanel.destroy(),this._eventHandlers.forEach((function(e){e.remove()})),this.inherited(arguments)}});return m.BASE_CLASS="mwLiveControl",m._CONTROL_PROPERTY_NAME="controlPropertyName",m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(413)],o=i.dj.d(n,(function(e,t){return{getNodeForSelector:function(e,t){return e.querySelector(t)},updateEditorDisplayValue:function(e,i,n){var o=this.getPropertyEditor(e,i);o&&(n=null!=(n=function(e){return e instanceof t}(o)?this._getFormattedDisplayTextAreaValue(n):n)?n.toString():n,o.set("value",n))},trimWhiteSpacesAndEmptyValues:function(e){return e=(e=e.map((function(e){return e&&e.trim()}))).filter((function(e){return""!==e}))},_getFormattedDisplayTextAreaValue:function(e){return Array.isArray(e)&&(e=0===(e=this.trimWhiteSpacesAndEmptyValues(e)).length||1===e.length&&!e[0]?e:e.join("\n")+"\n"),e},_splitAtDelimiterAndTrimValues:function(e,t){return e=e.split(t),this.trimWhiteSpacesAndEmptyValues(e)},getPropertyEditor:function(t,i){var n=this.getNodeForAttribute(t,"data-propertyEditor",i);return e.getEnclosingWidget(n)},getNodeForAttribute:function(e,t,i){return this.getNodeForSelector(e,"["+t+"='"+i+"']")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{createCallback:function(e,t,i){var n,o=0;return void 0===i&&(i=200),function(r){1===(o+=1)?(r.stopPropagation(),n=setTimeout((function(){o=0,e(r)}),i)):2===o&&(clearTimeout(n),r.stopPropagation(),o=0,r.syntheticEvent||t(r))}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TARGET:{WEB:"web",FILE:"file",MATLAB:"matlab",INTERNAL:"internal"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(5340),i(5341),i(5342),i(5343)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/richtext_actions",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(242),i(246),i(513),i(1272)],o=i.dj.d(n,(function(e,t,i,n){return{HYPERLINK_ESCAPE_REGEXP:/<a\s+href\s*=\s*"[^"]*"[^>]*>[\s\S]*?<\/a>/g,HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP:/<a\s+href\s*=\s*"([^"]*)"([^>]*)>([\s\S]*?)<\/a>/g,STRONG_ESCAPE_REGEXP:/<strong>|<\/strong>/g,BOLD_LINK_ATTRIBUTE_REGEX:/\bstyle\s*=\s*\"[^\"]*\bfont-weight\s*:\s*bold\b[^\"]*\"/,parseQueryString:function(){var t=e.global.location.search.substr(1,e.global.location.search.length);return this._parseQueryString(t)},_parseQueryString:function(e){return i.queryToObject(e)},parseUrl:function(e){var t=document.createElement("a");t.display="none",t.href=e||window.location.href,t.href=t.href;var i={protocol:t.protocol,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,hash:t.hash};return"https:"!==i.protocol&&"http:"!==i.protocol||0===i.pathname.indexOf("/")||(i.pathname="/"+i.pathname),"https:"===i.protocol&&"443"===i.port&&0!==e.indexOf("https://"+i.hostname+":443")&&(i.port=""),i},escapeHtml:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML},escapeLinksAndHtml:function(e,t){n.deprecated({deprecated:{module:"mw-utils/HtmlUtils",method:"escapeLinksAndHtml"},replacement:{module:"mw-utils/HtmlUtils",method:"treatHtmlLikeCommandWindow"}});var i="",o=e.split(this.HYPERLINK_ESCAPE_REGEXP),r=e.match(this.HYPERLINK_ESCAPE_REGEXP),a="",s=this,l=0,c=function(e,t,i,n){var o=s.parseUrl(t).protocol;"http:"!==o&&"https:"!==o&&"matlab:"!==o&&(t="#"),t=s.escapeHtml(t),n=s._strongNotEscaped(n,!0),a='<a href="'+t+'">'+n+"</a>"};if(t)i=this.escapeHtml(e),i=this.escapeWhitespace(i);else if(""!==o[0]&&(i=this._strongNotEscaped(o[0],!0)),null!==r&&0!==r.length)for(l=0;l<r.length;l+=1)r[l].replace(this.HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP,c),""!==o[l+1]&&(o[l+1]=this._strongNotEscaped(o[l+1],!0)),i+=a+o[l+1];return i},treatHtmlLikeCommandWindow:function(e,t,i){if("string"!=typeof e)return"";var n="",o=e.split(this.HYPERLINK_ESCAPE_REGEXP),r=e.match(this.HYPERLINK_ESCAPE_REGEXP),a="",s=this,l=0;i=i||{};var c=function(e,t,i,n){var o=s.parseUrl(t).protocol,r="";"http:"!==o&&"https:"!==o&&"matlab:"!==o&&(t="#"),t=s.escapeHtml(t),n=s._strongNotEscaped(n,!1),s.BOLD_LINK_ATTRIBUTE_REGEX.test(i)&&(r=' style="font-weight:bold"'),a='<a href="'+t+'"'+r+">"+n+"</a>"};if(t)n=this.escapeHtml(e);else if(""!==o[0]&&(n=this._strongNotEscaped(o[0],!1)),null!==r&&0!==r.length)for(l=0;l<r.length;l+=1)r[l].replace(this.HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP,c),""!==o[l+1]&&(o[l+1]=this._strongNotEscaped(o[l+1],!1)),n+=a+o[l+1];return i.addPreTagToPreserveWhiteSpace&&(n='<span style="white-space: pre">'+n+"</span>"),n},_strongNotEscaped:function(e,t){var i="",n=e.match(this.STRONG_ESCAPE_REGEXP),o=e.split(this.STRONG_ESCAPE_REGEXP),r=function(e){return e};t&&(r=this.escapeWhitespace);var a=0;if(null!==n&&0!==n.length)for(i=r(this.escapeHtml(o[0])),a=0;a<n.length;a+=1)i+=n[a]+r(this.escapeHtml(o[a+1]));else i=r(this.escapeHtml(e));return i},escapeWhitespace:function(e){return n.deprecated({deprecated:{module:"mw-utils/HtmlUtils",method:"escapeWhitespace"},replacement:{module:"Plain HTML",method:'Set class as white-space: pre or use <span style="white-space: pre">...</span>'}}),(e=e||"").replace(/\n/g,"<br>").replace(/ {2}/g,"&nbsp;&nbsp;")},handleAnchors:function(i,n){if(n.target.href){t.stop(n);var o=n.target.href;if(-1!==o.indexOf("matlab:")){if("matlab:"===o.substring(0,7)){var r=n.target.href.substring(7);i(e.global.unescape(r))}}else e.global.open(n.target.href)}},isElementOverflown:function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(204),i(206)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{backgroundColor:"rgb(245, 245, 245)",_handlesHoverWhenPushed:!0,_toggleButtonMouseDown:!1,_lastActiveValue:!1,postCreate:function(){this.inherited(arguments),this.own(this.watch("hovering",i.hitch(this,"_handleHoverChange")),this.watch("active",i.hitch(this,"_handleActiveChange")),this.watch("checked",i.hitch(this,"_handleCheckedChange")),this.watch("_opened",i.hitch(this,"_handleOpenedChange"))),this._mousedownListener=n(document,"mousedown",i.hitch(this,(function(){this._toggleButtonMouseDown=!0})),!0),this._mouseupListener=n(document,"mouseup",i.hitch(this,(function(){this._toggleButtonMouseDown=!1})),!0)},_handleActiveChange:function(e,t,i){var n;t!==i&&(this._handlesHoverWhenPushed?(void 0===t&&(t=this._lastActiveValue),void 0===i&&(i=this._toggleButtonMouseDown),this._lastActiveValue=i,!0===t&&!1===i&&this.hovering?(n=!0,this._setPressedBackgroundColor(n)):t!==i&&(n=this._isPressed(),this._setPressedBackgroundColor(n))):(n=this._isPressed(),this._setPressedBackgroundColor(n)))},_handleCheckedChange:function(e,t,i){this._setPressedBackgroundColor(i)},_handleHoverChange:function(e,t,i){this._setHoverBackgroundColor(this._isPressed())},_handleOpenedChange:function(e,t,i){this._setPressedBackgroundColor(i)},_setBackgroundColorAttr:function(e){this.inherited(arguments);var t=this._isPressed();this._updateButtonBackgroundColor(e,t),this._setPressedBackgroundColor(t)},_updateButtonBackgroundColor:function(e,i){t.set(this.backgroundColorNode,{"box-shadow":this._getBoxShadowValue(e,i)})},_getBoxShadowValue:function(e,t){return t?"rgba(0, 0, 0, .15) 0px 1px 0px 0px inset":this._getHoverColor(e).replace(")",", 0.9)").replace("rgb(","rgba(")+" 0px 1px 0px 0px inset"},_isPressed:function(){return!0===this._opened||!0===this.active||!0===this.checked},_setPressedBackgroundColor:function(e){var t,i=this.get("backgroundColor");e?(t=this._getPressedColor(i),this._updateViewBackgroundColor(t),this._updateButtonBackgroundColor(t,e)):e||this._setHoverBackgroundColor(e)},_setHoverBackgroundColor:function(e){var t,i=this.get("backgroundColor");t=e?this._getPressedColor(i):i,!0===this.hovering&&(!e||e&&this._handlesHoverWhenPushed)&&(t=this._getHoverColor(t)),this._updateViewBackgroundColor(t),this._updateButtonBackgroundColor(t,e)},_getHoverColor:function(e){if(-1!==e.indexOf("rgba"))throw new Error("getHoverColor does not support rgba values");var t=this._rgbStringToIntegerArray(e),i=1*(t[0]+t[1]+t[2])/1600+13/320;return this._calculateLighterRGBString(e,i,35)},_getPressedColor:function(e){if(-1!==e.indexOf("rgba"))throw new Error("getPressedColor does not support rgba values");var t=this._rgbStringToIntegerArray(e),i=parseInt(t[0]),n=parseInt(t[1]),o=parseInt(t[2]),r=(i+n+o)/4200+11/140;return this._integerArrayToRGBString([Math.round(i*(1-r)),Math.round(n*(1-r)),Math.round(o*(1-r))])},destroy:function(){this.inherited(arguments),this._mousedownListener.remove(),this._mouseupListener.remove()},_dependencies:function(){return[{mixin:BackgroundColorMixin,orderDependent:!0}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(353),i(432),i(653),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{originalIconWidth:0,originalIconHeight:0,_applyImageStyles:function(e,t,i){e.style.backgroundImage='url("'+t+'")',this.originalIconWidth=i.width,this.originalIconHeight=i.height,this._resizeIcon(e)},_removeImageStyles:function(e){this.inherited(arguments),e.style.backgroundSize=""},_resizeIcon:function(e){if(0!==this.get("icon").length){var t="auto",i=this._computeScaledIconScaleFactor(this.originalIconWidth,this.originalIconHeight),n=i*this.originalIconWidth,o=i*this.originalIconHeight;i<1&&(t="100%"),e.style.backgroundSize=t,e.style.width=n+"px",e.style.height=o+"px",0===n||0===o?this.domNode.classList.add("mwNoIcon"):this.domNode.classList.remove("mwNoIcon")}},getDomNodePositionInPixels:function(){var e=this.domNode.style.width,t=this.domNode.style.height;if("auto"===e||"100%"===e||"auto"===t||"100%"===t){var i=this.domNode.getBoundingClientRect();e=i.width,t=i.height}else e=e.replace("px",""),t=t.replace("px","");return{width:Math.max(e-r.BUTTON.OVERALL_WIDTH_PADDING,0),height:Math.max(t-r.BUTTON.OVERALL_HEIGHT_PADDING,0)}},_computeScaledIconScaleFactor:function(e,i){var n=1,o=this.getDomNodePositionInPixels(),r=o.width,a=o.height;if(0===r||0===a)return n;var s=window.getComputedStyle(this.textNode),l=t.getMarginBox(this.textNode,s),c=l.w,d=l.h,u=window.getComputedStyle(this.iconNode),h=t.getMarginExtents(this.iconNode,u),p=h.l+h.r,f=h.t+h.b;switch(this.iconAlignment.toLowerCase()){case"left":case"right":e+p+c<=r&&i<=a||(n=Math.min((r-c-p)/e,a/i),n=Math.max(0,n));break;case"top":case"bottom":e<=r&&i+f+d<=a||(n=Math.min(r/e,(a-d-f)/i),n=Math.max(0,n));break;case"center":e<=r&&i<=a||(n=Math.min(r/e,a/i),n=Math.max(0,n));break;default:throw new Error("invalid iconAlignment value")}return n},_setIconAlignmentAttr:function(e){this.inherited(arguments),this._resizeIcon(this.iconNode)},_setTextAttr:function(e){this.inherited(arguments),this._resizeIcon(this.iconNode)},_setFontFamilyAttr:function(e){this.inherited(arguments),this._resizeIcon(this.iconNode)},_setFontSizeAttr:function(e){this.inherited(arguments),this._resizeIcon(this.iconNode)},_setFontWeightAttr:function(e){this.inherited(arguments),this._resizeIcon(this.iconNode)},_setFontStyleAttr:function(e){this.inherited(arguments),this._resizeIcon(this.iconNode)},_setWidthAttr:function(e){this.inherited(arguments),this._resizeIcon(this.iconNode)},_setHeightAttr:function(e){this.inherited(arguments),this._resizeIcon(this.iconNode)},_dependencies:[{mixin:i,orderDependent:!0},{mixin:n,orderDependent:!0},{mixin:o,orderDependent:!0}]})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{findIndex:function(e,t){for(var i=e.length,n=0;n<i;n+=1)if(t(e[n]))return n;return-1},find:function(e,t){for(var i=e.length,n=0;n<i;n+=1){var o=e[n];if(t(o))return o}},every:function(e,t,i){return e.every(t,i)},some:function(e,t,i){return e.some(t,i)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{order:{ASC:"ASC",DESC:"DESC"},compare:{NUMERIC:"NUMERIC",STRING:"STRING"}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(239)],o=i.dj.d(n,(function(e){var t=function(e){return"row"===e?function(e,t,i){return e.setRows(t,i)}:function(e,t,i){return e.setColumns(t,i)}},i=function(i,n){var o=void 0,r=void 0,a=void 0;"row"===i?(o=t("row"),r=t("column"),a="row"):(o=t("column"),r=t("row"),a="column"),n.sort((function(e,t){return e-t}));var s=[];if(n.length>0){var l=r(e.range(),0,1/0);l=o(l,n[0],n[0]);for(var c=0;c<n.length;c+=1)l[a].end+1===n[c]?l[a].end=n[c]:(s.push(l),l=o(l=r(e.range(),0,1/0),n[0],n[0]));s.push(l)}return s};return{columnArray:function(e){return i("column",e)},rowArray:function(e){return i("row",e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({TYPE_TREENODE:"TREENODE",TYPE_TREE:"TREE",MODE:{REORDER:"REORDER",REPARENT:"REPARENT",REORDER_WITHOUT_REPARENT:"REORDER_WITHOUT_REPARENT"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(204)],o=i.dj.d(n,(function(e,t){var i={getDaysInMonth:function(e){var t=e.getMonth();return 1==t&&i.isLeapYear(e)?29:[31,28,31,30,31,30,31,31,30,31,30,31][t]},isLeapYear:function(e){var t=e.getFullYear();return!(t%400&&(t%4||!(t%100)))},getTimezoneName:function(e){var t,i=e.toString(),n="",o=i.indexOf("(");if(o>-1)n=i.substring(++o,i.indexOf(")"));else{var r=/([A-Z\/]+) \d{4}$/;(t=i.match(r))?n=t[1]:(r=/ ([A-Z\/]+)$/,(t=(i=e.toLocaleString()).match(r))&&(n=t[1]))}return"AM"==n||"PM"==n?"":n},compare:function(e,t,i){return e=new Date(+e),t=new Date(+(t||new Date)),"date"==i?(e.setHours(0,0,0,0),t.setHours(0,0,0,0)):"time"==i&&(e.setFullYear(0,0,0),t.setFullYear(0,0,0)),e>t?1:e<t?-1:0},add:function(e,t,i){var n=new Date(+e),o=!1,r="Date";switch(t){case"day":break;case"weekday":var a,s,l=i%5;l?(a=l,s=parseInt(i/5)):(a=i>0?5:-5,s=i>0?(i-5)/5:(i+5)/5);var c=e.getDay(),d=0;6==c&&i>0?d=1:0==c&&i<0&&(d=-1);var u=c+a;0!=u&&6!=u||(d=i>0?2:-2),i=7*s+a+d;break;case"year":r="FullYear",o=!0;break;case"week":i*=7;break;case"quarter":i*=3;case"month":o=!0,r="Month";break;default:r="UTC"+t.charAt(0).toUpperCase()+t.substring(1)+"s"}return r&&n["set"+r](n["get"+r]()+i),o&&n.getDate()<e.getDate()&&n.setDate(0),n},difference:function(e,t,n){n=n||"day";var o=(t=t||new Date).getFullYear()-e.getFullYear(),r=1;switch(n){case"quarter":var a=e.getMonth(),s=t.getMonth(),l=Math.floor(a/3)+1,c=Math.floor(s/3)+1;r=(c+=4*o)-l;break;case"weekday":var d=Math.round(i.difference(e,t,"day")),u=parseInt(i.difference(e,t,"week")),h=d%7;if(0==h)d=5*u;else{var p=0,f=e.getDay(),g=t.getDay();u=parseInt(d/7),h=d%7;var m=new Date(e);m.setDate(m.getDate()+7*u);var _=m.getDay();if(d>0)switch(!0){case 6==f:p=-1;break;case 0==f:p=0;break;case 6==g:p=-1;break;case 0==g:p=-2;break;case _+h>5:p=-2}else if(d<0)switch(!0){case 6==f:p=0;break;case 0==f:p=1;break;case 6==g:p=2;break;case 0==g:p=1;break;case _+h<0:p=2}d+=p,d-=2*u}r=d;break;case"year":r=o;break;case"month":r=t.getMonth()-e.getMonth()+12*o;break;case"week":r=parseInt(i.difference(e,t,"day")/7);break;case"day":r/=24;case"hour":r/=60;case"minute":r/=60;case"second":r/=1e3;case"millisecond":r*=t.getTime()-e.getTime()}return Math.round(r)}};return e("extend-dojo")&&t.mixin(t.getObject("dojo.date",!0),i),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constrainScaleColorLimitsToScaleLimits:function(e,t,i){var n=[],o=[],r=[],a=[];t.length>0&&!(t[0]instanceof Array)?(a[0]=[t[0],t[1]],a.length=1):a=t,i.length>0&&!(i[0]instanceof Array)?(r[0]=[i[0],i[1],i[2]],r.length=1):r=i;for(var s=0;s<r.length&&void 0!==a[s];s++)a[s][1]<=e[0]||a[s][0]>=e[1]||(a[s][0]>=e[0]&&a[s][1]<=e[1]?(n.push(a[s]),o.push(r[s])):a[s][0]<e[0]&&a[s][1]<=e[1]?(n.push([e[0],a[s][1]]),o.push(r[s])):a[s][0]>=e[0]&&a[s][1]>e[1]?(n.push([a[s][0],e[1]]),o.push(r[s])):a[s][0]<e[0]&&a[s][1]>e[1]&&(n.push(e),o.push(r[s])));return{scaleColorLimits:n,scaleColors:o}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(284),i(1488)],o=i.dj.d(n,(function(e,t,i,n){return e([],{_FontColor:function(e){this._VCWidgetDOMNode.style.color=i.toJSRGB(e)},_FontName:function(e){var t=n.getFallBack(e);this._VCWidgetDOMNode.style.fontFamily=t},_FontSize:function(e){this._VCWidgetDOMNode.style.fontSize=e+"px"},_FontWeight:function(e){this._VCWidgetDOMNode.style.fontWeight=e},_FontAngle:function(e){this._VCWidgetDOMNode.style.fontStyle=e},updateFontPropertiesFromModel:function(){this._FontName(this.WidgetData.getProperty("FontName")),this._FontSize(this.WidgetData.getProperty("FontSize")),this._FontWeight(this.WidgetData.getProperty("FontWeight")),this._FontAngle(this.WidgetData.getProperty("FontAngle")),this._FontColor(this.WidgetData.getProperty("FontColor"))},getInitializationFontPropertyNames:function(){return["FontName","FontSize","FontWeight","FontAngle","FontColor"]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getScrollbarWidth:function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var i=document.createElement("div");i.style.width="100%",e.appendChild(i);var n=i.offsetWidth;return e.parentNode.removeChild(e),t-n},calculateMaxSizeGivenAspectRatio:function(e,t){var i,n,o,r,a,s=e[0],l=e[1];return i=0===l?1/0:s/l,"Inf"===(n=t[0])&&(n=1/0),"Inf"===(o=t[1])&&(o=1/0),i>=n&&i<=o?(r=s,a=l):i<n?a=(r=s)/n:i>o&&(r=(a=l)*o),[r,a]},calculateOuterSize:function(e){for(var t,i,n,o,r,a=0;a<e.length;a++)r=e[a].getBoundingClientRect(),t?(t=Math.min(t,r.left),i=Math.max(i,r.left+r.width),n=Math.min(n,r.top),o=Math.max(o,r.top+r.height)):(t=r.left,i=r.left+r.width,n=r.top,o=r.top+r.height);return[i-t,o-n]},getCellRect:function(e){var t=e.getController().getTopLevelNode(),i=document.createElement("div");i.style.gridRowStart=t.style.gridRowStart,i.style.gridRowEnd=t.style.gridRowEnd,i.style.gridColumnStart=t.style.gridColumnStart,i.style.gridColumnEnd=t.style.gridColumnEnd,i.style.msGridRow=t.style.msGridRow,i.style.msGridRowSpan=t.style.msGridRowSpan,i.style.msGridColumn=t.style.msGridColumn,i.style.msGridColumnSpan=t.style.msGridColumnSpan;var n=t.parentElement;n.appendChild(i);var o=i.getBoundingClientRect();return n.removeChild(i),o},isChildPositionable:function(e){return void 0!==e&&void 0!==e.yesIAmPositionable&&e.yesIAmPositionable()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(5979),i(1164)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(){this._PubSubLogger=new o,this._PubSubLogger.setID(this._getViewModelSynchronizerID()),this._PubSubLogger.log("Construct CanvasController for: "+this.getPeerNode().getId()),this.own(n.createIfNecessary(this._getViewModelSynchronizerID())),this._ViewModelSynchronizer=n.get(this._getViewModelSynchronizerID()),this._initCanvasControllerSynchronizerListener()},_getUIEventRecordCreator:function(){for(var e=this;e.getParentController();)e=e.getParentController();return e.getUIEventRecordCreator()},createView:function(){this.inherited(arguments),this.own(i(this.getPeerNode(),"propertiesSet",t.hitch(this,this._redrawCanvas)),i(this.getPeerNode(),"PositionChanged",t.hitch(this,this._redrawCanvas)),i(this,"containerClientAreaSizeChanged",this._redrawCanvas.bind(this)))},_initCanvasControllerSynchronizerListener:function(){this.own(this._ViewModelSynchronizer.createAddedOrModifiedDataListener("matlab.graphics.internal.viewmodel.Canvas",function(e){this._isCorrectToken(e.AuthToken)&&(this._PubSubLogger.log("Received Canvas ServerID: "+e.ServerID+" Canvas: "+this.getPeerNode().getId()),this._updateCanvasConfig(e.UseBinaryChannel,e.ServerID,e.BinaryChannelID,e.RendererVersion),this.widget.setUIEventRecordCreator(this._getUIEventRecordCreator()))}.bind(this))),this._PubSubLogger.log("Created CanvasControllerSynchronizerListener")},_updateCanvasConfig:function(e,t,i,n){this.widget.set("BinaryChannelId",i),this.widget.set("UseBinaryChannel",e),this.widget.set("RendererVersion",n),this.widget.set("ServerId",t)},_getViewModelSynchronizerID:function(){return"AppDesigner"===this.getPeerNode().getRoot().getType()?"/figureViewModel/appdesigner":"/figureViewModel/"+this.getPeerNode().getRoot().getId()},_redrawCanvas:function(){if(this.widget){if(!this.widget.renderGraphics)throw new Error("CanvasController: renderGraphics() must be exist on this.widget.");this.widget.renderGraphics()}},_isCorrectToken:function(e){return e===this.getPeerNode().getId()},handleViewInDom:function(){this.inherited(arguments),this._redrawCanvas()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(1165)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){},destroy:function(){this.GraphicsView&&(this.GraphicsView.destroy(),this.GraphicsView=null),this.inherited(arguments)},startup:function(){this.inherited(arguments),this._addGraphicsView()},setUIEventRecordCreator:function(e){this.GraphicsView.setUIEventRecordCreator(e)},_addGraphicsView:function(){var e=new i({Container:this.canvasContents});e.startup(),this.GraphicsView=e},renderGraphics:function(){this.GraphicsView.redrawScene()},_setRendererVersionAttr:function(e){this.GraphicsView.set("RendererVersion",e)},_setServerIdAttr:function(e){this.GraphicsView.set("ServerId",e)},_setBinaryChannelIdAttr:function(e){this.GraphicsView.set("BinaryChannelId",e)},_getServerIdAttr:function(){return this.GraphicsView?this.GraphicsView.get("ServerId"):""},_setUseBinaryChannelAttr:function(e){this.GraphicsView.set("UseBinaryChannel",e)},_getUseBinaryChannelAttr:function(){return this.GraphicsView?this.GraphicsView.get("UseBinaryChannel"):""},getLayoutableChildren:function(){return this.GraphicsView.getLayoutableChildren()},setChildAddedCallback:function(e){this.GraphicsView.setChildAddedCallback(e)},setChildRemovedCallback:function(e){this.GraphicsView.setChildRemovedCallback(e)},setChildReadinessCallback:function(e){this.GraphicsView.setChildReadinessCallback(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(5983),i(5984),i(5985)],o=i.dj.d(n,(function(e,t,i,n,o){var r=null,a=null;return{_offscreenCanvas:o,createContextHandler:function(e,t,i){return this._offscreenCanvas.createContextHandler(e,t,i)},createContext:function(e,t){return this._offscreenCanvas.getOrCreateContext(e,t)},isGLAvailable:function(e){if(!a){var n=t.create("canvas"),o=this.createContext(n,e);r=null!==o,null!==o&&(a=new i(o),r=this.supportsWebGL(window.navigator.userAgent,a))}return r},supportsWebGL:function(e,t){for(var i=!0,o=0;i&&o<n.length;o++)try{i=n[o](e,t)}catch(e){var r="Exception in GLBlacklist function: ";e.message&&(r+=e.message),e.stack&&(r+=" -- stack: "+e.stack),console.error?console.error(r):console.log(r),i=!1}return i},getSystemGLInfo:function(e){return a||new i(null)},_setSystemGL:function(e){var t={Available:r,GLInfo:a};return r=e.Available,a=e.GLInfo,t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(214),i(5986)],o=i.dj.d(n,(function(e,t,i,n){var o=t([],{constructor:function(e,t,i,n){this._MessageService=e,this._channel=t,this._callback=i,this.Promise=n},destroy:function(){this.isDestroyed()||(this._MessageService.unsubscribe(this._channel,this._callback),this._destroyed=!0)},isDestroyed:function(){return this._destroyed},Promise:null,_destroyed:!1});return t([e],{constructor:function(e){this._MessageService=void 0===e?n:e,this.own(i.after(this._MessageService,"onReconnected",function(){this.onReconnected()}.bind(this),!0))},publish:function(e,t){this._MessageService.publish(e,t)},subscribe:function(e,t){var i=this._MessageService.subscribe(e,t);return new o(this._MessageService,e,t,i)},unsubscribe:function(e,t){throw new Error("Unsubscribe unavailable. Call destroy on the object returned by subscribe instead")},onReconnected:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{createTexture:function(e,t,i,n,o,r){var a=e,s=a.createTexture();return a.activeTexture(t),a.bindTexture(a.TEXTURE_2D,s),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),i?r.createDepthTexture(a,n,o):a.texImage2D(a.TEXTURE_2D,0,a.RGBA,n,o,0,a.RGBA,a.UNSIGNED_BYTE,null),a.bindTexture(a.TEXTURE_2D,null),s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(325),i(1516),i(968)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(){this._shaderOpts=new n},addConfigBeforeFragColorIsSet:function(e,t,i){e.addShaderOption(i),e.addShaderOption(this._shaderOpts.Ids.renderScreenSpaceDepth)},shouldProceedAfterFragColorIsSet:function(){return!0},_addClippingConfig:function(e,t,i){e.useShaderClipping&&(t.addShaderOption(i),e.needsPolarClipping?t.addShaderOption(this._shaderOpts.Ids.polarClip):e.needsFragCoordClipping&&!0!==e.isWideLines?t.addShaderOption(this._shaderOpts.Ids.fragCoordForClip):t.addShaderOption(this._shaderOpts.Ids.clip))},getLineShaderConfiguration:function(e){var n=new i;if(!0===e.isWideLines?e.useWideLineV2?(n.addShaderOption(this._shaderOpts.Ids.widelinesPosV2),this._addClippingConfig(e,n,this._shaderOpts.Ids.widelinesClipPosV2)):(n.addShaderOption(this._shaderOpts.Ids.widelinesPos),this._addClippingConfig(e,n,this._shaderOpts.Ids.clipPos)):(n.addShaderOption(this._shaderOpts.Ids.pos),this._addClippingConfig(e,n,this._shaderOpts.Ids.clipPos)),e.alignVertexCenters&&n.addShaderOption(this._shaderOpts.Ids.avc),e.useStippleShader&&n.addShaderOption(this._shaderOpts.Ids.stipple),this.addConfigBeforeFragColorIsSet(n,e,this._shaderOpts.Ids.pick),!1!==this.shouldProceedAfterFragColorIsSet())return e.colorType===t.ColorType.texturemapped?n.addShaderOption(this._shaderOpts.Ids.texture2d):e.colorType===t.ColorType.colormapped?n.addShaderOption(this._shaderOpts.Ids.texture1d):e.colorType===t.ColorType.truecolor?e.colorBinding===t.Binding.object?n.addShaderOption(this._shaderOpts.Ids.constColorOpaque):n.addShaderOption(this._shaderOpts.Ids.vertexColorsOpaque):e.colorType===t.ColorType.truecoloralpha&&(e.colorBinding===t.Binding.object?n.addShaderOption(this._shaderOpts.Ids.constColorAlpha):n.addShaderOption(this._shaderOpts.Ids.vertexColorsAlpha)),!0===e.applyLighting&&n.addShaderOption(this._shaderOpts.Ids.lighting_OneSided),n.addShaderOption(this._shaderOpts.Ids.AlphaMultiplier),n},getLineCapsOrJoinsShaderConfiguration:function(e,n){var o=new i;if(n?o.addShaderOption(this._shaderOpts.Ids.linecapsPos):o.addShaderOption(this._shaderOpts.Ids.linejoinsPos),this._addClippingConfig(e,o,this._shaderOpts.Ids.clipPos),e.useStippleShader&&o.addShaderOption(this._shaderOpts.Ids.stipple),this.addConfigBeforeFragColorIsSet(o,e,this._shaderOpts.Ids.pick),!1!==this.shouldProceedAfterFragColorIsSet())return e.colorType===t.ColorType.texturemapped?o.addShaderOption(this._shaderOpts.Ids.texture2d):e.colorType===t.ColorType.colormapped?o.addShaderOption(this._shaderOpts.Ids.texture1d):e.colorType===t.ColorType.truecolor?e.colorBinding===t.Binding.object?o.addShaderOption(this._shaderOpts.Ids.constColorOpaque):o.addShaderOption(this._shaderOpts.Ids.vertexColorsOpaque):e.colorType===t.ColorType.truecoloralpha&&(e.colorBinding===t.Binding.object?o.addShaderOption(this._shaderOpts.Ids.constColorAlpha):o.addShaderOption(this._shaderOpts.Ids.vertexColorsAlpha)),!0===e.applyLighting&&o.addShaderOption(this._shaderOpts.Ids.lighting_OneSided),o.addShaderOption(this._shaderOpts.Ids.AlphaMultiplier),o},getTriangleShaderConfiguration:function(e){var n=new i;if(n.addShaderOption(this._shaderOpts.Ids.pos),this._addClippingConfig(e,n,this._shaderOpts.Ids.clipPos),this.addConfigBeforeFragColorIsSet(n,e,this._shaderOpts.Ids.pick),!1!==this.shouldProceedAfterFragColorIsSet())return e.colorType===t.ColorType.texturemapped?n.addShaderOption(this._shaderOpts.Ids.texture2d):e.colorType===t.ColorType.colormapped?n.addShaderOption(this._shaderOpts.Ids.texture1d):e.colorType===t.ColorType.truecolor?e.colorBinding===t.Binding.object?n.addShaderOption(this._shaderOpts.Ids.constColorOpaque):n.addShaderOption(this._shaderOpts.Ids.vertexColorsOpaque):e.colorType===t.ColorType.truecoloralpha&&(e.colorBinding===t.Binding.object?n.addShaderOption(this._shaderOpts.Ids.constColorAlpha):n.addShaderOption(this._shaderOpts.Ids.vertexColorsAlpha)),!0===e.applyLighting&&(!0===e.twoSidedLighting?n.addShaderOption(this._shaderOpts.Ids.lighting_TwoSided):n.addShaderOption(this._shaderOpts.Ids.lighting_OneSided)),n.addShaderOption(this._shaderOpts.Ids.AlphaMultiplier),n},getScreenSpaceImageShader:function(e,n,o){var r=new i;if(r.addShaderOption(this._shaderOpts.Ids.imagePos),e===t.ClipMode.planes?!0===n?(r.addShaderOption(this._shaderOpts.Ids.clipPos),r.addShaderOption(this._shaderOpts.Ids.clip)):r.addShaderOption(this._shaderOpts.Ids.anchorpt_3DBoxClip):e===t.ClipMode.scissor&&o?r.addShaderOption(this._shaderOpts.Ids.anchorpt_ScissorClip):e===t.ClipMode.polar&&(o?r.addShaderOption(this._shaderOpts.Ids.anchorpt_PolarClip):(r.addShaderOption(this._shaderOpts.Ids.clipPos),r.addShaderOption(this._shaderOpts.Ids.polarClip))),this.addConfigBeforeFragColorIsSet(r,null,this._shaderOpts.Ids.pick),!1!==this.shouldProceedAfterFragColorIsSet())return r.addShaderOption(this._shaderOpts.Ids.texture2d),r.addShaderOption(this._shaderOpts.Ids.AlphaMultiplier),r},getScreenSpaceColorShader:function(e,n,o,r,a,s,l,c){var d=new i;if(o?d.addShaderOption(s.AVC):d.addShaderOption(s.noAVC),e===t.ClipMode.planes?r?d.addShaderOption(this._shaderOpts.Ids.anchorpt_3DBoxClip):(d.addShaderOption(this._shaderOpts.Ids.clipPosModelSpace),d.addShaderOption(this._shaderOpts.Ids.clip)):e===t.ClipMode.scissor&&r?d.addShaderOption(this._shaderOpts.Ids.anchorpt_ScissorClip):e===t.ClipMode.polar&&(r?d.addShaderOption(this._shaderOpts.Ids.anchorpt_PolarClip):(d.addShaderOption(this._shaderOpts.Ids.clipPos),d.addShaderOption(this._shaderOpts.Ids.polarClip))),c?this.addConfigBeforeFragColorIsSet(d,null,this._shaderOpts.Ids.markerPick):this.addConfigBeforeFragColorIsSet(d,null,this._shaderOpts.Ids.pick),!1!==this.shouldProceedAfterFragColorIsSet())return a?d.addShaderOption(l.opaque):d.addShaderOption(l.alpha),n&&d.addShaderOption(this._shaderOpts.Ids.stipple),d.addShaderOption(this._shaderOpts.Ids.AlphaMultiplier),d},getScreenSpaceConstantColorShader:function(e,t,i,n,o){var r={AVC:this._shaderOpts.Ids.anchorptPosAVC,noAVC:this._shaderOpts.Ids.anchorptPos},a={opaque:this._shaderOpts.Ids.constColorOpaque,alpha:this._shaderOpts.Ids.constColorAlpha};return this.getScreenSpaceColorShader(e,t,i,n,o,r,a,!1)},getScreenSpaceMarkerVertexColorShader:function(e,t,i,n,o){var r={AVC:this._shaderOpts.Ids.anchorptPosAVC_WebGL2,noAVC:this._shaderOpts.Ids.anchorptPos_WebGL2},a={opaque:this._shaderOpts.Ids.markerColorsOpaque,alpha:this._shaderOpts.Ids.markerColorsAlpha};return this.getScreenSpaceColorShader(e,t,i,n,o,r,a,!0)},getScreenSpaceMarkerUniformColorShader:function(e,t,i,n,o){var r={AVC:this._shaderOpts.Ids.anchorptPosAVC,noAVC:this._shaderOpts.Ids.anchorptPos},a={opaque:this._shaderOpts.Ids.markerColorsOpaque,alpha:this._shaderOpts.Ids.markerColorsAlpha};return this.getScreenSpaceColorShader(e,t,i,n,o,r,a,!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("graphics.MWSG.shader.ShaderOpts",[],{Ids:{clip:"clip",polarClip:"polarClip",fragCoordForClip:"fragCoordForClip",clipPos:"clipPos",clipPosModelSpace:"clipPosModelSpace",pos:"pos",widelinesPos:"widelinesPos",widelinesPosV2:"widelinesPosV2",widelinesClipPosV2:"widelinesClipPosV2",stipple:"stipple",texture1d:"texture1d",texture2d:"texture2d",depthtexture2d:"depthtexture2d",vertexColorsOpaque:"vertexColorsOpaque",vertexColorsAlpha:"vertexColorsAlpha",vertexColorsOpaque_WebGL2:"vertexColorsOpaque_WebGL2",vertexColorsAlpha_WebGL2:"vertexColorsAlpha_WebGL2",markerColorsOpaque:"markerColorsOpaque",markerColorsAlpha:"markerColorsAlpha",anchorptPos:"anchorptPos",anchorptPosAVC:"anchorptPosAVC",anchorptPos_WebGL2:"anchorptPos_WebGL2",anchorptPosAVC_WebGL2:"anchorptPosAVC_WebGL2",anchorpt_3DBoxClip:"anchorpt_3DBoxClip",anchorpt_ScissorClip:"anchorpt_ScissorClip",anchorpt_PolarClip:"anchorpt_PolarClip",constColorOpaque:"constColorOpaque",constColorAlpha:"constColorAlpha",imagePos:"imagePos",avc:"avc",linejoinsPos:"linejoinsPos",linecapsPos:"linecapsPos",pick:"pick",markerPick:"markerPick",renderScreenSpaceDepth:"renderScreenSpaceDepth",discardFragUsingOneDepthTexture:"discardFragUsingOneDepthTexture",discardFragUsingTwoDepthTexture:"discardFragUsingTwoDepthTexture",lighting_TwoSided:"lighting_TwoSided",lighting_OneSided:"lighting_OneSided",FXAA:"FXAA",AlphaMultiplier:"Alpha"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(375),i(365),i(1167),i(325),i(1517)],o=i.dj.d(n,(function(e,t,i,n,o){return{getAxleTranslation:function(e,i,n,o){var r=[{t:0},{t:0},{t:0}];return o.forEach((function(t){var n=t.axis,o=t.value,a=(o-i[2*n])/(i[2*n+1]-i[2*n]);a=Math.max(0,Math.min(a,1));var s=(o-e[2*n])/(e[2*n+1]-e[2*n]);s=Math.max(0,Math.min(s,1)),r[n].t=(s-a)*(i[2*n+1]-i[2*n])})),t.createTranslation(r[0].t,r[1].t,r[2].t)},getAxisTransform:function(e,i,n){var o=[{s:1,t:0},{s:1,t:0},{s:1,t:0}];o[n].s=(i[2*n+1]-i[2*n])/(e[2*n+1]-e[2*n]),o[n].t=i[2*n+1]-e[2*n+1]*o[n].s;var r=t.createScale(o[0].s,o[1].s,o[2].s),a=t.createTranslation(o[0].t,o[1].t,o[2].t);return t.multiply(r,a)},transformData:function(t,i){for(var n=t.length,o=new Array(n),r=0;r<n;r+=3){var a=new e(t[r],t[r+1],t[r+2],1),s=i.transform(a);o[r]=s.getX(),o[r+1]=s.getY(),o[r+2]=s.getZ()}return o},filterVertexDataAndString:function(e,t,i,n,o){for(var r=Math.min(t,i),a=Math.max(t,i),s=o.length,l=[],c=[],d=e.length/3,u=0;u<d;u++){var h=e[3*u+n],p=1.1921e-7*Math.max(Math.abs(h),1);r-p<h&&a+p>h&&(c.push(e[3*u]),c.push(e[3*u+1]),c.push(e[3*u+2]),s>0&&l.push(o[u]))}return{vertexdata:c,string:l}},filterVertexData:function(e,t,i,n){return this.filterVertexDataAndString(e,t,i,n,[]).vertexdata},convertAxisFromString:function(e){var t=0;return"y"===e?t=1:"z"===e&&(t=2),t},getPrimitiveTextFromCompositeText:function(e){let t=null;for(let i=0;i<e._children.length;i++)if("Text"===e._children[i].type){t=e._children[i];break}return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(213),i(206)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{scrollable:!1,horizontalScrollRequired:!1,verticalScrollRequired:!1,contentSize:null,parentInnerPosition:null,topDownLayout:!1,constructor:function(){this.scrollbarSizes={horizontal:0,vertical:0}},updateDomNodes:function(){if(this.scrollable&&this.contentSize?(this.scrollableContents.style.setProperty("--gbtScrollable-content-width",String(this.contentSize.width)+"px"),this.scrollableContents.style.setProperty("--gbtScrollable-content-height",String(this.contentSize.height)+"px")):(this.scrollableContents.style.setProperty("--gbtScrollable-content-width","100%"),this.scrollableContents.style.setProperty("--gbtScrollable-content-height","100%"),this.scrollableContents.style.setProperty("--gbtScrollable-canvas-width","100%"),this.scrollableContents.style.setProperty("--gbtScrollable-canvas-height","100%")),this.parentInnerPosition&&(this.scrollableContents.style.setProperty("--gbtScrollable-canvas-width",String(Math.max(this.parentInnerPosition[2],this.contentSize.width))+"px"),this.scrollableContents.style.setProperty("--gbtScrollable-canvas-height",String(Math.max(this.parentInnerPosition[3],this.contentSize.height))+"px")),this.scrollable){var e=this._get("horizontalScrollRequired"),i=this._get("verticalScrollRequired"),n=["gbtScrollable-on"],o=["gbtScrollable-off"];e?n.push("gbtScrollable-hscroll"):o.push("gbtScrollable-hscroll"),i?n.push("gbtScrollable-vscroll"):o.push("gbtScrollable-vscroll"),t.replace(this.scrollableNode,n,o)}else t.replace(this.scrollableNode,"gbtScrollable-off",["gbtScrollable-on","gbtScrollable-hscroll","gbtScrollable-vscroll"])},_setParentInnerPositionAttr:function(e){this._set("parentInnerPosition",e)},_setTopDownLayoutAttr:function(e){this._set("topDownLayout",e)},_setScrollableAttr:function(e){e!==this.scrollable&&this._set("scrollable",e)},_setContentSizeAttr:function(e){this._set("contentSize",e)},_setScrollbarRequiredAttr:function(e){this._set("horizontalScrollRequired",e.horizontal),this._set("verticalScrollRequired",e.vertical)},getScrollableNode:function(){return this.scrollableNode||this.containerNode},getScrollableAreaSize:function(){var e=this.getScrollableNode();return{width:e.scrollWidth,height:e.scrollHeight}},setScrollLocation:function(e,t){var i=this.getScrollableNode(),o=void 0!==e.scrollTop&&e.scrollTop!==i.scrollTop;return void 0!==e.scrollLeft&&e.scrollLeft!==i.scrollLeft||o?(void 0!==e.scrollTop&&(i.scrollTop=e.scrollTop),void 0!==e.scrollLeft&&(i.scrollLeft=e.scrollLeft),t=Object.assign({expire:500},t||{}),new Promise((function(o,r){var a=n.once(i,"scroll",(function(){clearTimeout(s),o([i.scrollLeft,i.scrollTop])})),s=setTimeout((function(t){t.remove(),r(new Error("Timed out in setScrollLocation waiting for "+e.scrollLeft+", "+e.scrollTop))}),t.expire,a)}))):Promise.resolve([i.scrollLeft,i.scrollTop])},getScrollLocation:function(){var e=this.getScrollableNode();return void 0!==e?[e.scrollLeft,e.scrollTop]:[0,0]},scrollTo:function(e){e=Array.isArray(e)?e:[e];var t=this.getScrollableNode(),i=this.scrollableContents.clientHeight-t.clientHeight,n=this.scrollableContents.clientWidth-t.clientWidth,o={};return e.forEach((function(e){"top"===e?o.scrollTop=0:"bottom"===e?o.scrollTop=i:"left"===e?o.scrollLeft=0:"right"===e&&(o.scrollLeft=n)})),this.setScrollLocation(o)},_getScrollInsets:function(){var e=this.get("scrollbarSizes");return{left:0,right:e.vertical,top:0,bottom:e.horizontal}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(736),i(961),i(206),i(2211)],o=i.dj.d(n,(function(e,t,i,n,o){function r(e){var t=e.getOuterPositionInPixels();if(!t){var i=e.getProperty("Location"),n=e.getProperty("Size");t=i&&n?i.concat(n):[0,0,0,0]}return{left:t[0],bottom:t[1],right:t[0]+t[2],top:t[1]+t[3]}}function a(e,t){return{left:Math.min(e.left,t.left),bottom:Math.min(e.bottom,t.bottom),right:Math.max(e.right,t.right),top:Math.max(e.top,t.top)}}return e([o],{_cachedBbox:null,constructor:function(e){this.addChildAddedListener(),this.addChildRemovedListener(),this.own(n(this,"containerContentSizeChanged",this._notifyBoundingBoxChanged.bind(this)),n(this,"containerChildAdded",this._onChildAdded.bind(this)),n(this,"containerChildRemoved",this._onChildRemoved.bind(this))),this._getComponentBoundingBox=r.bind(this)},addChildAddedListener:function(){this.own(n(this.getPeerNode(),"childAdded",this._handleChildAddedEvent.bind(this)))},addChildRemovedListener:function(){this.own(n(this.getPeerNode(),"childRemoved",function(e){var t=e.data.child;"function"==typeof t.getController&&t.getController()&&this.emit("containerChildRemoved",t.getController())}.bind(this)))},_handleChildAddedEvent:function(e){var t=e.data.child;"function"==typeof t.getController&&t.getController()&&this.emit("containerChildAdded",t.getController())},_getLayoutManager:function(){if(this.getLayoutManager)return this.getLayoutManager()},invalidateTree:function(){var e,t=this.getNonGraphicsPositionableChildren(),i=0;if(void 0!==t&&(i=t.length),i>0)for(e=0;e<i;++e)t[e].invalidate()},_validateChildren:function(){var e=this._getLayoutManager();e?e.doValidateContainer():this.getPositionableChildren().forEach((function(e){var t=e.getPeerNode();if(t&&void 0!==t.getProperty("Position")){var i=e.getPositionInPixels();e.setOuterPositionInPixelsImpl(i)}}),this)},validate:function(){!1===this._valid&&this._validateChildren(),this.inherited(arguments)},calculateBoundingBox:function(){var e=this.getPositionableChildren().filter((function(e){return!1!==e.getProperty("Visible")}));return e.length>0?e.map(this._getComponentBoundingBox,this).reduce(a):{left:0,bottom:0,right:0,top:0}},getVisibleChildren:function(){return this.getPositionableChildren().filter((function(e){return!1!==e.getProperty("Visible")}))},getBoundingBox:function(){return this._cachedBbox||(this._cachedBbox=this.calculateBoundingBox()),this._cachedBbox},_resizeView:function(e){if(this.inherited(arguments),!this._lastSize||this._lastSize&&(this._lastSize[0]!==e[0]||this._lastSize[1]!==e[1])){var t={innerSize:this._getInnerPositionInPixels().slice(2,4)};this.emit("sizechangedevent",t)}},getRefFrameSizeForChild:function(){return this._getInnerPositionInPixels().slice(2,4)},_onChildAdded:function(e){if(i.isChildPositionable(e)){var t=e.getPeerNode();e.attachModelSidePositionChangeListener(),this.own(n(e,"modelSidePositionChanged",this._onChildPositionChanged.bind(this,e))),t&&this._attachVisibilityChangeListener(t),this._notifyBoundingBoxChanged(e)}},_onChildRemoved:function(e){this._notifyBoundingBoxChanged(e)},_onChildPositionChanged:function(e){this._notifyBoundingBoxChanged(e)},_attachVisibilityChangeListener:function(e){this.own(n(e,"propertiesSet",function(e){void 0!==e.data.newValues.Visible&&this._notifyBoundingBoxChanged()}.bind(this)))},_notifyBoundingBoxChanged:function(e){this._cachedBbox=null;var t=e?{child:e}:null;this.emit("containerBoundingBoxChanged",t)},getPositionableChildren:function(){return this.getNonGraphicsPositionableChildren()},getAllChildren:function(){var e=this.getPeerNode()&&this.getPeerNode().getChildren(),t=[];e&&(e.length>0&&(t=e.map((function(e){return e.getController()}))));return t},getNonGraphicsPositionableChildren:function(){var e=this.getPeerNode()&&this.getPeerNode().getChildren(),t=[];e&&(e.length>0&&(t=e.filter((function(e){return i.isChildPositionable(e.getController())}),this).map((function(e){return e.getController()}))));return t}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(429),i(267)],o=i.dj.d(n,(function(e,t){return function(){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._viewModel=e}return r(i,[{key:"COL_WIDTH",get:function(){var i=this._viewModel.getStateByKey(t.COL_WIDTH),n=e.dimensions.COL_WIDTH;return i&&i.value&&(n=i.value),n}},{key:"ROW_HEIGHT",get:function(){var i=this._viewModel.getStateByKey(t.ROW_HEIGHT),n=e.dimensions.ROW_HEIGHT;return i&&i.value&&(n=i.value),n}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(6210),i(6211),i(739),i(1177),i(2235),i(972),i(267)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){"use strict";return function(){function l(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var o=void 0,r=new s(e),a=e.getColumnHeaders().length||e.dataSize.columns.count;this._viewModel=e,this._bufferedNavigation=i(r),this._unbufferedNavigation=t(r),o=n.enoughColumnsToPage(a)?i(r):t(r),this.getScrollTopPosition=o.getScrollTopPosition,this.getScrollBottomPosition=o.getScrollBottomPosition,this.getScrollLeftPosition=this.getScrollLeftPosition.bind(this),this.getScrollRightPosition=this.getScrollRightPosition.bind(this)}return r(l,[{key:"getScrollLeftPosition",value:function(e,t){var i=this._viewModel.dataSize.columns.count,n=this._viewModel.viewBuffer.rangeList[0],o=this._viewModel.getColumnHeaders().length||i;return n.columns.count===o?this._unbufferedNavigation.getScrollLeftPosition.apply(null,[e,t]):this._bufferedNavigation.getScrollLeftPosition.apply(null,[e,t])}},{key:"getScrollRightPosition",value:function(e,t,i){var n=this._viewModel.dataSize.columns.count,o=this._viewModel.viewBuffer.rangeList[0],r=this._viewModel.getColumnHeaders().length||n;return o.columns.count===r?this._unbufferedNavigation.getScrollRightPosition.apply(null,[e,t,i]):this._bufferedNavigation.getScrollRightPosition.apply(null,[e,t,i])}},{key:"increment",value:function(e,t,i){return Math.min(i+Number(t),e)}},{key:"decrement",value:function(e,t,i){return Math.max(i-t,e)}},{key:"setCellMeta",value:function(t,i,n,o){return{scrollInPixels:{scrollLeft:i,scrollTop:t,scrollCol:o},activeRange:e.range().setRows(n,n).setColumns(o,o)}}},{key:"getCurrent",value:function(e,t){return a.maybe(e).chain((function(e){return e.currentState})).chain((function(e){return e.rangeList})).chain((function(e){return e[0]})).therefore(-1,(function(e){return e[t].start}))}},{key:"isInRange",value:function(e,t){return e.prev<=t.prev&&e.next>=t.next}},{key:"isNextItem",value:function(e,t){return e.next>t.prev&&e.next<=t.next}},{key:"isPreviousItem",value:function(e,t){return e.prev>t.prev&&e.prev<=t.next}},{key:"getRowPosition",value:function(e,t,i,n){var r=o.map(t,[["top","prev"],["bottom","next"]]),a=o.map(e,[["top","prev"],["bottom","next"]]);return this.isNextItem(a,r)?this.getScrollBottomPosition(n,i):this.isPreviousItem(a,r)?this.getScrollTopPosition(i):this.isInRange(a,r)?null:this.getScrollTopPosition(i)}},{key:"getColPosition",value:function(e,t,i,n){var r=n[e]||{},a=o.map(r,[["left","prev"],["right","next"]]),s=o.map(t,[["left","prev"],["right","next"]]);return this.isNextItem(s,a)?this.getScrollRightPosition(i,e,n):this.isPreviousItem(s,a)?this.getScrollLeftPosition(e,n):this.isInRange(s,a)?null:this.getScrollLeftPosition(e,n)}}]),l}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({internal:{ALL:"all"},exposed:{WINDOWS:"windows",MAC:"mac",LINUX:"linux"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2248)],o=i.dj.d(n,(function(e){class t{constructor(){this._contentMap=new Map}get types(){return Array.from(this._contentMap.keys())}setData(...t){e.validateArguments(t,2,"dataTransfer.setData");let[i,n]=this._normalize(t);i=i.toLowerCase(),this._contentMap.set(i,n)}_normalize(e){return e.map(e=>String(e))}getData(...t){e.validateArguments(t,1,"dataTransfer.getData");let[i]=this._normalize(t);return i=i.toLowerCase(),this._contentMap.has(i)?this._contentMap.get(i):""}static createInstance(e){let i=new t;return e.types.forEach(t=>{i.setData(t,e.getData(t))}),i}}return t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=Object.freeze({ACTIVE_RIGHT_BORDER:1,SELECTED:2,ACTIVE_SELECTED:4});return Object.freeze({selection:e})}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){"use strict";return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return a(e,null,[{key:"hasModifierKey",value:function(e){var t=e.ctrlKey,i=e.meta,n=e.shiftKey,o=e.altKey;return t||o||i||n}},{key:"isStrikeThrough",value:function(e){return e&&e.metaData&&!0===e.metaData.strikeThrough}},{key:"isSafari",value:function(){return/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&window.safari.pushNotification).toString()}},{key:"isDeepEqual",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t===i)return!0;if(n+=1,"object"!==(void 0===t?"undefined":r(t))||"object"!==(void 0===i?"undefined":r(i))||null===t||null===i)return!1;var o=Object.keys(t),a=Object.keys(i);if(o.length!==a.length)return!1;var s=!0,l=!1,c=void 0;try{for(var d,u=o[Symbol.iterator]();!(s=(d=u.next()).done);s=!0){var h=d.value;if(!a.includes(h))return!1;if(("function"==typeof t[h]||"function"==typeof i[h])&&t[h].toString()!==i[h].toString())return!1;if(n>=5||!e.isDeepEqual(t[h],i[h],n))return!1}}catch(e){l=!0,c=e}finally{try{!s&&u.return&&u.return()}finally{if(l)throw c}}return!0}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({HEADER_LABEL:"mw-header-label",ROW_HEADER_LABEL:"mw-row-header-label",RESIZE_AFFORDANCE:"mw-table-resize-affordance",RESIZE_SELECTION_AFFORDANCE:"mw-table-resize-selection"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(250)],o=i.dj.d(n,(function(e){return e.createContext({})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6286)],o=i.dj.d(n,(function(e,t){var i={};return{getInstance:function(e){var n=null,o=e.namespace;return i[o]?n=i[o]:(n=new t(e.provider),i[o]=n),n},deleteInstance:function(e){i[e]&&(i[e].destroy(),delete i[e])}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(359)],o=i.dj.d(n,(function(e,t){var i=1;return e("variableeditor_client.ViewModel",[t],{_focused:!1,constructor:function(e){this._initProperties(),this.viewID="View_"+i,i+=1,this.init(e),this.createView(e)},focus:function(){this._focused=!0},blurView:function(){},blur:function(){this._focused=!1},isFocused:function(){return this._focused},_initProperties:function(){this.tableFeaturesEnabled=[]},init:function(e){throw new Error("Need to overwrite init in implementation")},createView:function(e){throw new Error("Need to overwrite createView in implementation")},getView:function(){throw new Error("Need to overwrite getView in implementation")},getProperty:function(){throw new Error("Need to overwrite getProperty in implementation")},setProperty:function(){throw new Error("Need to overwrite setProperty in implementation")},destroy:function(){this.destroyView()},destroyView:function(){throw new Error("Need to overwrite destroyView in implementation")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(215),i(203),i(204),i(212),i(227),i(210),i(211),i(206),i(225),i(742),i(382),i(1188),i(1194),i(350),i(239),i(278),i(326),i(693),i(981),i(2317),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){return i("variableeditor.ArrayViewModel",[b,y,t],{_table:null,_tableScrollListener:null,_overlayScrollListener:null,allArgs:{},_VIEWTYPE:"",type:v.VARIABLE_VIEW_TYPE,_tableConstructor:null,tableAttributes:{},ROW_HEIGHT_PLUGIN:"CUSTOM_ROW_HEIGHT",VIEW_CONTEXT_PLUGIN:"ARRAY_VIEW_CONTEXT_HANDLER",_data_test_id:"VariableEditor",constructor:function(){},init:function(e){this._tableConstructor=null,e&&e.data&&e.data.viewID&&(this.viewID=e.data.viewID),this.allArgs=e},startup:function(e){e=e||this.allArgs,this.inherited(arguments),this._table||this.createView(e)},createView:function(e){this.tableAttributes={},this.manager=e.manager,this.inherited(arguments),this.createTable(e)},getProperty:function(e){return this[e]||this.allArgs[e]||null},getView:function(){var e=!1,t=new o((function(){e=!0}));if(this._table&&this._table.domNode)t.resolve(this._table.domNode);else var i=this,n=this.addEventListener("viewReady",(function(){try{n&&i.removeEventListener("viewReady",n)}catch(e){console.log(e)}!e&&i._table&&i._table.domNode&&t.resolve(i._table.domNode)}));return t},createTable:function(e){var t=this,i=e&&e.data?e.data.metaData:[],n=e&&e.data?{containerType:e.data.containerType,context:e.data.context,dataAttributes:e.data.dataAttributes}:{};this.createTableConstructor(i,n);var o=this.getDataStore(e),r={features:this.tableFeaturesEnabled,dataTestId:this._data_test_id};if(Object.keys(this.tableAttributes).length>0&&(r.attributes=this.tableAttributes),e&&e.data&&e.data.metaData){if(e.data.metaData.rowMetadata&&(o.getLocalRowMetaData=function(e){return t._tableConstructor.getRowConfig(e)}),e.data.metaData.columnMetadata){var s=this._tableConstructor.getColumnConfigForRange(o.dataSize);r.columnModel=s.columnModel}e.data.metaData.cellMetadata&&(o.getLocalCellMetaData=function(e,i){return t._tableConstructor.getCellConfig(e,i)})}else this._setColumnModel(r,e);var l=new _(o,r);t._table=l,this.dispatchEvent("tableCreated",this,{view:this}),a.add(l.domNode,["toggleOverflowCss","mwTable"])},createTableConstructor:function(e,t){var i=new h(e,t);return this._tableConstructor=new p(i,t),this.allArgs.hasOwnProperty("editable")&&this._tableConstructor.setIsEditable(this.allArgs.editable),this._tableConstructor},getMetaDataStore:function(){return this._tableConstructor.getMetaDataStore()},getTableConstructor:function(){return this._tableConstructor},getCurrentSize:function(){return this._dataStore.dataSize},getTable:function(){return this._table},getDataStore:function(e){var t=null;if(this._dataStore)t=this._dataStore;else{var i=null;e&&e.data&&e.data.data&&(i=e.data.data),t=f.create(i,Object.assign({},{type:C.TABLE})),this._dataStore=t}return t},getViewHeight:function(){var e=0;if(this._dataStore&&this._dataStore.dataSize.rows){var t=this._dataStore.dataSize.rows.count,i=this.getPluginByName(this.ROW_HEIGHT_PLUGIN),n=22;i&&(n=i.getRowHeight()),e=n+t*n+2}return e},_addViewPlugins:function(){this.updateTableFeaturesEnabled(d),this.inherited(arguments)},updateDataAttributes:function(e){this._tableConstructor.updateDataAttributes(e),this.dataAttributes=e,this.resize()},updateTableFeaturesEnabled:function(e){this.tableFeaturesEnabled.some((function(t){return t===e}))||this.tableFeaturesEnabled.push(e)},updateDragConfig:function(e,t,i){this.dragAndDropConfig||(this.dragAndDropConfig={}),e&&(this.dragAndDropConfig.setDragDataBySelection=e),t&&(this.dragAndDropConfig.mode=t),i&&(this.dragAndDropConfig.setAvatar=i)},_setDragDropConfig:function(e){this.dragAndDropConfig&&(e.dragAndDropConfig=this.dragAndDropConfig)},updateTableAttributes:function(e,t){this.tableAttributes.hasOwnProperty(e)||(this.tableAttributes[e]=t)},_setColumnModel:function(e,t){var i=t.columnModel||(t.data?t.data.columnModel:void 0);i&&(e.columnModel={},e.columnModel.columnConfig=i.columnConfig)},_setRowModel:function(e,t){var i=!0===t.rowHeaderEditing||!1;e.rowModel={rowHeaderConfig:{displayRowLabel:!!this.pluginsEnabled.ROW_HEADERS,enableEdit:i}}},_updateView:function(){if(this._table){if(!this._tableStarted){this._table.startup(),this._tableStarted=!0;var e=s.create("div",{className:"loading"}),t=this._table.domNode.getElementsByClassName("mw-table-outer-wrapper-blurred");t.length>0&&(t[0].appendChild(e),this._tableScrollListener=m.preventPropagationOnWheel(t[0])),this._overlayScrollListener=m.preventPropagationOnWheel(e,!0);var i={type:"viewReady",viewModel:this,table:this._table};this.dispatchEvent("viewReady",this,i)}this.resize&&this.resize()}},resize:function(){try{this._table&&this._table.domNode&&this._tableStarted&&this._table.resizeHandler()}catch(e){}},getColumnModel:function(e){return e.data.columnData},getSelection:function(){return this._table.getSelection?this._table.getSelection():null},destroyView:function(){this._table&&this._table.destroy&&(this._table.destroy(),this._table=null),this._tableScrollListener&&(this._tableScrollListener.remove(),this._tableScrollListener=null),this._overlayScrollListener&&(this._overlayScrollListener.remove(),this._overlayScrollListener=null),this.inherited(arguments)},getType:function(){return[this.getViewType(),"Array"]},getViewType:function(){return m.getViewTypeBasedOnDataType(this.allArgs.containerType,this.dataAttributes)},getContextAttributes:function(){var e=this.getViewType();return this.dataAttributes?[e].concat(this.dataAttributes):e},_updateColumnModelWithProperties:function(e,t){e.columnModel&&(e.columnModel.columnConfig[2].renderer.config.totalCount=t.outputRowCount)},focus:function(e){!1!==e&&this._table&&this.focusTable(),this.inherited(arguments)},focusTable:function(){this._table.focus()},isTableStarted:function(){return this._tableStarted||!1},scrollTo:function(e,t){e-=1,t-=1;var i=u.createRange(e,e,t,t);return this._table.scrollTo(i[0])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.mwTableRenderers.LeftAlignmentMixin",[],{addAlignment:function(e){t.add(e,"left")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(740),i(844),i(235),i(210)],o=i.dj.d(n,(function(e,t,i,n){function o(t){return e.IconTypeMap[t]||""}function r(e,t){(e||t)&&n.add(t,e)}return{applyCssClassForVarType:function(o,a,s,l){var c=void 0===o?"object":o;if(c=i.getClassNameForIconList(c),function(e,t){if(!e&&!t)return;n.remove(t,e)}(e.ClassArray,l),a)r(t.TEMPORARY,l);else if(s){if(e.IconTypeMap.hasOwnProperty(c))i.addToClassList(l,e.IconTypeMap[c]);else{i.addToClassList(l,e.IconTypeMap.object)}r("icon",l)}else r(e.ClassTypeMap[c],l)},getClassTypeForDatatype:o,getResolvedIconForType:function(e){var t=e||"object",n=o(t=i.getClassNameForIconList(t));return n||(n=o("object")),n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(2312)],o=i.dj.d(n,(function(e,t,i){return t("rendererseditors.mwTableEditors.TextEditorBase",[i],{_EDITOR_TABLE_CLASS:["mwTableTextEditorBase"],getParsedEditorValue:function(t,i){try{var n=JSON.parse(t)}catch(e){n={value:t}}var o=n.editValue||n.value;return i?o:e.formatString(o)},isMetaData:function(e){try{var t=JSON.parse(e)}catch(e){t={}}return!!t.hasOwnProperty("isMetaData")&&t.isMetaData},handleBlur:function(e){this.inputNode&&this.validateAndComplete(this.inputNode.value,this.inputNode.oldValue)},handleEscapeKey:function(){this.emitCanceledEvent()},handleEnterKey:function(){this.validateAndComplete(this.inputNode.value,this.inputNode.oldValue)},getInputNodeValue:function(e){return this.isMetaData(e)?"":this.getParsedEditorValue(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(210),i(206),i(235),i(209),i(982),i(1188),i(1194),i(2334),i(2335),i(278),i(326),i(366),i(301),i(2353),i(1560),i(742)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e("variableeditor_peer.RemoteArrayViewModel",[s,d,m],{_dataStore:null,_ROW_HEIGHT:14,UNDO_ACTION:"UndoAction",REDO_ACTION:"RedoAction",_MENU_OFFSET:8,_plugins:null,_viewHandlers:[],_dataStoreWrapper:null,_initProperties:function(){this.inherited(arguments),this._viewHandlers=[],this._dataStoreWrapper=null},createTable:function(e){this.getDataStore(e),this._createTableWithFeatures(this._dataStoreWrapper,e),this._setColumnWidth(e)},viewStateChanged:function(e){this.onViewStateChanged(e)},onViewStateChanged:function(e){},_setColumnWidth:function(e){var t=null;e.columnWidth?(t=e.columnWidth,this.provider&&this.provider.setPropertyOnServer(this,"TableModelProperty",{property:"ColumnWidth",value:t})):t=this.getMetaDataStore().getTableModelProperty("ColumnWidth");t&&(this._table.setColumnWidth(t),this.resize())},_updateEditability:function(){let e=!!r.isInvalidOrEmpty(this.allArgs.editable)||this.allArgs.editable,t=this.getMetaDataStore().getTableModelProperty("editable");r.isInvalidOrEmpty(t)&&(t=!0),this._tableConstructor.setIsEditable(e&&t)},_createTableWithFeatures:function(e,t){var i={features:this.tableFeaturesEnabled,dataTestId:this._data_test_id};Object.keys(this.tableAttributes).length>0&&(i.attributes=this.tableAttributes),this._setColumnModel(i,t),this._setRowModel(i,t),this._setDragDropConfig(i);var o=new p(e,i);this._table=o,n.add(o.domNode,["toggleOverflowCss","mwTable"]),this.provider&&this.provider.isReady()&&!this._serverInitializeInitiated&&this._setServerIntializedOnDomNode(),this.dispatchEvent("tableCreated",this,{view:this})},handleContextMenuRequested:function(e){},getColumnModel:function(e){var t={columnModel:{columnConfig:[]}};if(this.viewObj&&this.viewObj.hasOwnProperty("Size")){var i,n=this.viewObj.Size;for(i=1;i<n.columnCount;i+=1)t.columnModel.columnConfig.push({label:this.ColumnModelProperties[i]&&this.ColumnModelProperties[i].HeaderName||i.toString(),dataIndex:i,width:{value:h.getDefaultColumnWidth(),unit:"px"}})}return t},getDataStore:function(e){if(!this._dataStore){var t,n,o=null,r={};e&&e.data&&(o=e.data),this.createTableConstructor(e.metaData,this._getTableConstructorArgs(e));var a=this;this._viewHandlers.push(i.after(this._tableConstructor,"setSize",(function(){a.dispatchEvent("updateCssCache",{})}))),this.allArgs&&this.allArgs.varSize&&(r=h.getDimsFromVarSize(this.allArgs.varSize)),e&&h.isValid(e.rows)?t=e.rows:h.isValid(r.rows)&&(t=r.rows),e&&h.isValid(e.columns)?n=e.columns:r.columns&&(n=r.columns),this._dataStoreWrapper=this._createMixedDataStore(o,this._tableConstructor,t,n),this._dataStore=this._dataStoreWrapper.getDataStore(),e&&e.provider&&e.provider.isReady()&&this.serverReady(e.propertyObj,e.provider)}return this._dataStore},_getTableConstructorArgs:function(e){return{containerType:e.containerType,context:e.context,dataAttributes:e.dataAttributes,showIndexAndLabel:e.showIndexAndLabel}},getUIDForView:function(){if(this.provider)return this.provider.getUIDForObject(this)},updateDataStore:function(e,t){this._dataStore.update(e,t)},fetchFromDataStore:function(e){if(this._dataStore)return this._dataStore.getLocalRangeData(e)},_createMixedDataStore:function(e,t,i,n){return new _(e,t,i=i||0,n=n||0)},getFeatureMap:function(){return u},_dispatchActionToServer:function(e,t,i){if(this.peerDocument.propertyObj){var n=this.peerDocument.propertyObj.docID;this.manager.executeAction(e,{actionInfo:t,docID:n})}this.inherited(arguments)},getActionById:function(e){var t=null;return this.manager.actionDataService?t=this.manager.actionDataService.getAction(e):a.warn("Manager's ActionDataService not initialized"),t},viewContentChanged:function(){},undo:function(){this._dispatchActionToServer(this.UNDO_ACTION,null,!0)},redo:function(){this._dispatchActionToServer(this.REDO_ACTION,null,!0)},_setServerIntializedOnDomNode:function(){var e=this.getDataStore(),t=this;e.getViewPortData&&(e.getViewPortData().then((function(){t._table&&t._table.domNode&&(t.dispatchEvent(f.SERVER_INITIALIZED),n.add(t._table.domNode,["serverInitialized"]))})),this._serverInitializeInitiated=!0)},_setDataStoreServerConnection:function(e){var t=this,i=this._tableConstructor.getMetaDataStore(),n=i.on("pagedTableMetaDataChanged",(function(e){t.dispatchEvent(f.TABLE_META_DATA_CHANGED,t,{rangeList:e.rangeList}),t._setColumnWidth(t.allArgs),t._updateEditability()}));this._viewHandlers.push(n);var o=i.on("pagedColumnMetaDataChanged",(function(e){t.dispatchEvent(f.COLUMN_META_DATA_CHANGED,t,{rangeList:e.rangeList})}));this._viewHandlers.push(o);var r=i.on("pagedRowMetaDataChanged",(function(e){t.dispatchEvent(f.ROW_META_DATA_CHANGED,t,{rangeList:e.rangeList})}));this._viewHandlers.push(r);var a=i.on("pagedCellMetaDataChanged",(function(e){t.dispatchEvent(f.CELL_META_DATA_CHANGED,t,{rangeList:e.rangeList})}));this._viewHandlers.push(a),this._dataStoreWrapper.setViewModel(this,e,this.allArgs.varType),this._dataStore=this._dataStoreWrapper.getDataStore();var s=this._dataStore.on("serverFetchInProgress",(function(){t.dispatchEvent(f.VIEW_RENDERING,t,{})}));this._viewHandlers.push(s);var l=this._dataStore.on("serverFetchComplete",(function(){t.dispatchEvent(f.VIEW_RENDERED,t,{})}));this._viewHandlers.push(l);var c=this._dataStore.on("dataSizeChanged",(function(e){t.dispatchEvent(f.SIZE_CHANGED,t,{dataSize:e.dataSize,actualSize:e.actualSize})}));this._viewHandlers.push(c);var d=this._dataStore.on("dataChanged",(function(e){!e||e.source&&"data"!==e.source||(t.dispatchEvent(f.DATA_CHANGED,t,{rangeList:e.rangeList}),t._updateLastRangeDataTag(e))}));this._viewHandlers.push(d),this._serverInitializeInitiated||this._setServerIntializedOnDomNode()},serverReady:function(e,t){this.provider=t,this.propertyObj=e,this.provider.setupViewListeners(this);var i=this.provider.getUIDForObject(this);this._setDataStoreServerConnection(i)},handlePropertySet:function(e){if(!(e.data&&e.data.newValue&&e.data.newValue.Source&&"server"!==e.data.newValue.Source)){var t=e.data.key;this.propertyObj[t]=e.data.newValue,this.peerDocument.handlePropertySetOnView(this,e)}},getProperty:function(e){return this.propertyObj&&this.propertyObj.hasOwnProperty(e)?this.propertyObj[e]:this.inherited(arguments)},setProperty:function(e,t){if(!h.isValid(e)||!h.isValid(t))return;let i=this.provider||this.allArgs.provider;i&&this.propertyObj?i.setPropertyOnServer(this,e,t):a.warn("Provider not available to set remote property")},handleRemoteEvent:function(e){e.data&&"server"===e.data.source&&"scrollClient"===e.data.type&&void 0!==e.data.row&&void 0!==e.data.column&&this.scrollTo(e.data.row,e.data.column)},dispatchRemoteEvent:function(e){this.provider&&this.provider.isReady()&&this.provider.dispatchEventToServer(this,e)},_updateLastRangeDataTag:function(e){this._table&&this._table.domNode&&this._table.domNode.dataset&&(this._table.domNode.dataset.lastUpdatedRange=JSON.stringify(e.rangeList))},getParsedData:function(e){var t=e.startRow||0,i=e.startRow+e.rowCount-1||0,n=e.startColumn||0,o=e.startColumn+e.columnCount-1||0;return h.getParsedData(e.data,i-t+1,o-n+1)},setSortable:function(e){this._tableConstructor.setTableSortable(e)},destroy:function(){this.inherited(arguments),this._dataStoreWrapper&&(this._dataStoreWrapper.destroy(),this._dataStoreWrapper=null),this._viewHandlers.forEach((function(e){e&&e.remove&&e.remove()})),this._viewHandlers=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6489),i(6490),i(6491),i(6492)],o=i.dj.d(n,(function(e,t){return t(e,"variableeditor_peer/l10n/nls/FilteringHeaderMenu",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(221),i(241),i(219),i(232),i(2379)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a="PublishDialogExecutingCommand";return o.registerResponseHandler("FEvalResponse:"+a,(function(e,t){e[0].isError?i.displayAlertDialog("Message",e[0].messageFaults[0].message):t.resolve(e)}),this),{_runMatlabFunction:function(t,i,n){i=i||[];var r=new e;return o.sendMessage({FEval:{function:t,arguments:i,nargout:n,priority:1}},r,a),r},fileExist:function(e,t){this._runMatlabFunction("exist",[e],1).then((function(e){var i;i=1===e.length?{isError:e[0].isError,fileExist:2===e[0].results[0]}:{isError:!0,fileExist:void 0},t(i)}))},filesExists:function(e,t){var i=[];e.forEach((function(e){var t=this._runMatlabFunction("exist",[e],1).then((function(t){return{result:t,path:e}}));i.push(t)}),this),Promise.all(i).then((function(e){var i={};e.forEach((function(e){1===e.result.length&&(i[e.path]=2===e.result[0].results[0])})),t(i)}))},openFileDialog:function(e,t){t=t||"",this._runMatlabFunction("uigetfile",[t],2).then((function(t){var i;i=1===t.length?{isError:t[0].isError,path:t[0].results[1]+t[0].results[0]}:{isError:!0,path:void 0},e(i)}))},openFolderDialog:function(e){this._runMatlabFunction("uigetdir",[],1).then((function(t){var i;i=1===t.length?{isError:t[0].isError,path:t[0].results[0]}:{isError:!0,path:void 0},e(i)}))},changeFolder:function(e,t){this._runResultlessCommand("cd",[e],t)},getCurrentFolder:function(e){this._runMatlabFunction("pwd",[],1).then((function(t){1===t.length&&e(t[0].results[0])}))},addPath:function(e,t){this._runResultlessCommand("addpath",[e],t)},directoryInPath:function(e,i){this._runMatlabFunction("path",[],1).then((function(n){var o=!1;if(1===n.length){var r=t("windows")?";":":",a=n[0].results[0];(o=-1!==a.indexOf(e.slice(0,e.length-1)+r))||(o=a.slice(1-e.length)===e.slice(0,e.length-1))}i(o)}))},openFile:function(e,t){this._runResultlessCommand("open",[e],t)},_runResultlessCommand:function(e,t,i){this._runMatlabFunction(e,t,0).then((function(e){var t;i&&(t=1===e.length?{isError:e[0].isError}:{isError:!0},i(t))}))},runPublish:function(e,t,i){var n=[e];t.forEach((function(e,t){"Inf"!==e&&"default"!==e&&""!==e&&(n.push(r.PUBLISH_MAPPING_MAP[t]),parseInt(e,10).toString()===e?n.push(parseInt(e,10)):"boolean"==typeof e||"true"===e||"false"===e?n.push(Boolean(e)):n.push(e))})),this._runMatlabFunction("publish",n,1).then((function(e){var t;t=1===e.length?e[0].isError||0===e[0].results[0]?{isError:!0,path:void 0}:{isError:e[0].isError,path:e[0].results[0]}:{isError:!0,path:void 0},i(t)}))},openHelp:function(e,t){this._runMatlabFunction("docroot",[],1).then(function(i){if(1===i.length){var n=[i[0].results[0],"matlab",e];this._runMatlabFunction("fullfile",n,1).then(function(e){if(1===e.length){var i=[e[0].results[0],t,"CSHelpWindow","size",[500,400]];this._runMatlabFunction("helpview",i,0)}}.bind(this))}}.bind(this))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6747),i(215),i(216),i(272)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,n,o],{templateString:t,baseClass:"preferencePanelContent",_setTitleAttr:function(e){this.panelLegend.innerHTML=e,this._set("title",e)},postCreate:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6787),i(6788),i(6789),i(6790)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/CodeAnalyzerPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(223),i(236)],o=i.dj.d(n,(function(e,t){return{_ANCHOR_TAG_START:"<a class='hyperlink' tabindex='0'>",_ANCHOR_TAG_END:"</a>",_ANCHOR_TAG_NAME:"A",createHyperlink:function(e){this._wrapperNode=e.wrapperNode,this._wrapperText=e.wrapperText||"",this._linkText=e.linkText||"",this._navigateTo=e.navigateTo||"",this._callback=e.callback||function(){},this._renderHyperlink()},_renderHyperlink:function(){var i=""+t.substitute(this._wrapperText,{aTagStart:this._ANCHOR_TAG_START,hyperlinkText:this._linkText,aTagEnd:this._ANCHOR_TAG_END});this._wrapperNode.innerHTML=i,this._wrapperNode.onclick=function(e){e.target.tagName===this._ANCHOR_TAG_NAME&&(this._navigateTo&&this.navigateToNode(this._navigateTo),this._callback())}.bind(this),this._wrapperNode.onkeydown=function(t){t.keyCode===e.ENTER&&(this._navigateTo&&this.navigateToNode(this._navigateTo),this._callback())}.bind(this)},navigateToNode:function(e){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2402),i(2403),i(7009),i(2424)],o=i.dj.d(n,(function(e,t,i,n){let o=null;class r{constructor(e,t,i){this._clientRegistry=e||[],this._configurationId=t,this._ignoreBuiltInRegistries=i,this._register(t)}_register(e){if(!e)return;o=o||{};const t=o[e];t?t.count++:o[e]={registryMap:null,count:1}}buildRegistryMappings(){var e={},t={},i={},n={};return this._forEachPlugin(o=>{var a=r.getSubsystemFromRegistryEntry(o),s=o.id,l=o.subsystemControllerFor;l&&l.forEach((function(e){n[e]||(n[e]=o)})),t[s]=a,o.requiredForSubsystem&&a.forEach((function(e){i[e]||(i[e]=[]),i[e].push(s)}));var c=o.family;c&&(Array.isArray(c)||(c=[c]),c.forEach((function(t){e[t]||(e[t]=[]),e[t].push(s)})))}),{subsystemControllers:n,pluginIdsToSubSystems:t,subsystemToRequiredPluginIds:i,familiesToPluginIds:e}}static getSubsystemFromRegistryEntry(e){var t=e.subsystem||r.DEFAULT_SUBSYSTEM_ID;return Array.isArray(t)||(t=[t]),t}getRegistryByKey(e){return this._getOrCreateRegistryMap()[e]}_getOrCreateRegistryMap(){if(this._registryMap)return this._registryMap;let e;if(this._configurationId){let t=o[this._configurationId].registryMap;t||(t=this._buildRegistryMap(),o[this._configurationId].registryMap=t),e=Object.create(t)}else e=this._buildRegistryMap();return this._registryMap=e,e}_buildRegistryMap(){const e={},t=r._addIntoRegistry.bind(void 0,e);return this._forEachPlugin(t),this._resolveSubsystemsWithoutProviders().forEach(t),e}static _addIntoRegistry(e,t){if(e[t.id]||(e[t.id]=[],e[t.id].isSharedPlugin=t.isSharedPlugin||!1,e[t.id].isSubsystemEntry=t.isSubsystemEntry||!1),e[t.id].push(t.path||t.providerClass),e[t.id].isSharedPlugin!==(t.isSharedPlugin||!1))throw new Error("Registry entries with duplicate id's must all be shared or all in view.")}_resolveSubsystemsWithoutProviders(){const t=this._getSubsystems(),i=this.getDependencyToProviderPath(),n=[];return t.forEach((function(t){i[t]||n.push({id:t,providerClass:e.make(t),isSubsystemEntry:!0})}),this),n}_getSubsystems(){var e=[];return this._forEachPlugin(t=>{var i=t.subsystem;i&&(Array.isArray(i)||(i=[i]),i.forEach((function(t){e.indexOf(t)<0&&e.push(t)})))}),e}createSharedPluginMap(){var e={};return this._forEachPlugin(t=>{if(!t.isSubsystemEntry)if(e[t]){if(e[t.id].isSharedPlugin!==!!t.isSharedPlugin)throw new Error("Duplicated plugin id's must have matching types (whether a shared plugin or not)")}else e[t.id]=!!t.isSharedPlugin}),e}getDependencyToProviderPath(){var e={};return this._forEachPlugin(t=>{e[t.id]||(e[t.id]=[]),e[t.id].push(t.path)}),e}injectRegistry(e,t,i){this._registryMap[e]=[t],i&&(this._registryMap[e].isSharedPlugin=!0)}destroy(){if(this._clientRegistry=null,this._registryMap=null,this._configurationId){const e=o[this._configurationId];e.count--,0===e.count&&(delete o[this._configurationId],0===Object.keys(o).length&&(o=null))}}_forEachPlugin(e){let o=[];o=this._ignoreBuiltInRegistries?[this._clientRegistry]:[t.plugins,n.plugins,i.plugins,this._clientRegistry],o.forEach(t=>t.forEach(e))}static getRegistryStore(){return o}}return r.DEFAULT_SUBSYSTEM_ID="rtc.code.container",r}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(7221),i(7222)],o=i.dj.d(n,(function(e,t){return function(){function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._caches=[],this._caches.push(new e),"undefined"!=typeof Map&&Map.prototype.keys&&this._caches.push(new t);var n,o=(n=[],{set:function(e,t){for(var i=0;i<n.length;i+=1){var o=n[i];if(o.key===e)return void(o.value=t)}n.push({key:e,value:t})},get:function(e){for(var t=0;t<n.length;t+=1){var i=n[t];if(i.key===e)return i.value}},has:function(e){for(var t=0;t<n.length;t+=1)if(n[t].key===e)return!0;return!1},remove:function(e){for(var t=0;t<n.length;t+=1)if(n[t].key===e){n.splice(t,1);break}},keys:function(){return n.map((function(e){return e.key}))},canIndex:function(){return!0}});this._caches.push(o)}return r(i,[{key:"getCache",value:function(e){for(var t=0;t<this._caches.length;t+=1)if(this._caches[t].canIndex(e))return this._caches[t]}},{key:"set",value:function(e,t){this.getCache(e).set(e,t)}},{key:"get",value:function(e){return this.getCache(e).get(e)}},{key:"has",value:function(e){return this.getCache(e).has(e)}},{key:"remove",value:function(e){return this.getCache(e).remove(e)}},{key:"canIndex",value:function(e){return this.getCache(e).canIndex(e)}},{key:"keys",value:function(){for(var e=[],t=0;t<this._caches.length;t+=1)Array.prototype.push.apply(e,this._caches[t].keys());return e}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(667),i(229),i(237),i(1948)],o=i.dj.d(n,(e,t,i,n)=>class extends n{constructor(e,t,i){super(e),this._editorTabService=t,this._externalTokenizer=i}performIndentOnLine(e){const t=this._document.getLineText(e+1);let i=this._externalTokenizer.getIndentAmountForLine(e,t);return i===this._externalTokenizer.NO_INDENT_REQUIRED&&(i=this._getIndentAmountOnLine(e-1)),this._indentLine(e,i),i}performSnapIndentOnLine(t,i,n){const o=this._getStringForSnapIndent(t,i,n),r=this._getIndentString(o),a=this._editorTabService.getLengthCompensatingTabs(r),s=this._externalTokenizer.getIndentAmountIfSnap(t,e.leftTrim(o));s!==this._externalTokenizer.NO_INDENT_REQUIRED&&s!==a&&this._indentLine(t,s)}_getIndentAmountOnLine(e){if(e<0)return 0;const t=this._getIndentString(this._document.getLineText(e+1));return this._editorTabService.getLengthCompensatingTabs(t)}_getIndentString(e){return e.match(/^\s*/)[0]}_indentLine(e,t){const n=e+1,o=i.getLeadingWhitespace(this._document.getLineText(n)),r=this._editorTabService.getWhitespaceStringOfLength(t);this._document.replaceText(r,n,1,n,o+1)}_getStringForSnapIndent(e,t,i){const n=this._document.getLineText(e+1);let o=n.substring(0,t+1);if("\b"===i){const e=new RegExp("^.{"+t+"}[a-zA-Z]*"),i=n.match(e);i&&(o=i[0])}return o}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(667),i(208),i(234),i(237),i(270),i(379),i(364),i(670),i(1932)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d=/^[\s]+/,u=/[\s]+$/;return e(c,{constructor:function(e,t,i,n,o,r,a){this._externalTokenizer=r,this._editorTabService=a},_formatLines:function(e){const{startLine:i,endLine:n,trimWhitespace:o}=e;var r=[],a=null,l=this._getIndentSizeOnLine(i-1),c=this._document.startBlockEdit();this._cursorController.holdCursors();for(var d=i;d<=n;d++){var u=this._document.getLineText(d+1),h=this._getPrecedingWhitespace(u),p=this._externalTokenizer.getIndentAmountForLine(d,t.leftTrim(u));p===this._externalTokenizer.NO_INDENT_REQUIRED&&(p=l);var f=this._editorTabService.getWhitespaceStringOfLength(p),g=!0;if(this._shouldFormatLine(d,u,h,f,o)&&(a=null===a?d:a,this._formatLine(d,h,f,o),g=d===n),l=p,g&&null!==a){var m=d===n?d:d-1;r.push(s.create(a,m)),a=null}this._externalTokenizer.updateStateForLine(d+1,this._document.getLineText(d+1))}r.length&&(c.appendUndoEvents(r),c.appendRedoEvents(r),this._internalDocument.emitDocumentEvents(r)),this._cursorController.resetCursors(),this._document.endBlockEdit(c),r.length&&this._cursorController.scrollIntoView()},_getIndentSizeOnLine:function(e){if(e<0)return 0;const t=this._document.getLineText(e+1),i=this._getPrecedingWhitespace(t);return this._editorTabService.getLengthCompensatingTabs(i)},_formatLine:function(e,t,i,o){o&&(this._trimEnd(e),n.isEmptyLine(this._document,e+1))||this._setIndent(e,t,i)},_trimEnd:function(e){var t=this._internalDocument.getLineNode(e).lastChild(),i=t.getText().match(u);if(i&&i[0]){var n=i.index,o=n+i[0].length;this._internalDocument.deleteText(t,n,o)}},_setIndent:function(e,t,i){var n=this._internalDocument.getLineNode(e).firstChild();if(t.length>0&&this._internalDocument.deleteText(n,0,t.length),i.length>0){var o=new r(n,0),a=l.createTextNodeForPosition(i,o);this._internalDocument.insertAtPosition(a,o)}},_getPrecedingWhitespace:function(e){var t=e.match(d);return t&&t[0]?t[0]:""},_hasTrailingWhitespace:function(e){var t=e.match(u);return t&&void 0!==t[0]},_shouldFormatLine:function(e,t,i,o,r){return r?this._isWritableCodeLine(e)&&!n.isEmptyLine(this._document,e+1)&&(o!==i||this._hasTrailingWhitespace(t)):this._isWritableCodeLine(e)&&o!==i},_isWritableCodeLine:function(e){return n.isCodeLine(this._internalDocument,e)&&!this._internalDocument.getLineNode(e).isReadOnly()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{KEYWORD:"keyword",STRING:"string",CHARACTER:"character",COMMENT:"comment",PREPROCESSOR:"preprocessor",BAD_CHARACTER:"bad character"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(229),i(209),i(208),i(207),i(454),i(1581),i(7296),i(7297)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(r,{NO_INDENT_REQUIRED:-1,_DEFAULT_MAX_TOKENIZATION_LINE_LENGTH:1e4,constructor:function(e,t,i,n,o){this._internalDocument=t,this._documentEventCache=i,this._documentInfo=e,this._language=n,this._editorTabService=o,this._maxTokenizationLineLength=this._DEFAULT_MAX_TOKENIZATION_LINE_LENGTH,this._initializeListeners(),this._codeMirror=new l,this._setupCodeMirror(this._codeMirror);var r=this._getLanguageSpec(),a=this._editorTabService.getIndentSize();this._mode=this._codeMirror.getMode({indentUnit:a},r);var s=this._codeMirror.copyState(this._mode,this._codeMirror.startState(this._mode));this._stateCache=[s]},initialize:function(){this._retokenizeEntireDocument()},onUpdateTokens:function(e,t){},onLinesInserted:function(e,t){},onLinesDeleted:function(e,t){},_updateIndentSize:function(){var e=this._getLanguageSpec();this._mode=this._codeMirror.getMode({indentUnit:this._editorTabService.getIndentSize()},e),this._stateCache[0]=this._codeMirror.copyState(this._mode,this._codeMirror.startState(this._mode)),this._retokenizeEntireDocument()},getIndentAmountForLine:function(e,t){var i=this._stateCache[e],n=this._mode.indent(i,t);return void 0===n?this.NO_INDENT_REQUIRED:n},getIndentAmountIfSnap:function(e,t){return this._shouldTryToSnapIndent(e,t)?this.getIndentAmountForLine(e,t):this.NO_INDENT_REQUIRED},updateStateForLine:function(e,t){var i=this._codeMirror.copyState(this._mode,this._stateCache[e-1]);this._parseLineForTokens(t,i),this._stateCache[e]=i},setMaxTokenizationLineLength:function(e,t){this._maxTokenizationLineLength!==e&&(this._maxTokenizationLineLength=e,t&&this._retokenizeEntireDocument())},_shouldTryToSnapIndent:function(e,t){var i=this._mode.innerMode?this._mode.innerMode(this._stateCache[e]).mode:this._mode;if(i.electricChars){var n=t.charAt(t.length-1);return i.electricChars.indexOf(n)>=0}return!!i.electricInput&&i.electricInput.test(t)},_initializeListeners:function(){this.own(o.after(this._internalDocument,"onDocumentChanged",()=>{this._handleDocumentChangeEvent()},!0)),this.own(o.after(this._internalDocument,"onDocumentReset",()=>{this._handleDocumentResetEvent()},!0)),this.own(o.after(this._editorTabService,"setIndentSize",()=>{this._updateIndentSize(...arguments)},!0))},_setupCodeMirror:function(e){n.error("API Not Implemented: ExternalTokenizer._setupCodeMirror")},_getLanguageSpec:function(){return{name:this._language.getMimeType()}},_handleDocumentChangeEvent:function(){var e=this._documentEventCache.getCoalescedDocumentMutations(),t=e[0],i=e[e.length-1],n=Math.min(t.getFromRange().start,t.getToRange().start),o=Math.max(i.getFromRange().end,i.getToRange().end),r=n!==o;this._runMode(this._documentInfo.getCodeText(),n,o,r)},_handleDocumentResetEvent:function(){this._retokenizeEntireDocument()},_retokenizeEntireDocument:function(){this._runMode(this._documentInfo.getCodeText(),0,this._internalDocument.getMaxLineNumber()-1,!0)},_runMode:function(e,t,i,n){var o=this._codeMirror.splitLines(e);this._resizeCaches(o.length,t);var r=this._codeMirror.copyState(this._mode,this._stateCache[t]);const a=[];for(var s=t;s<o.length;s++){const e=this._parseLineForTokens(o[s],r,s);if(a.push(e),this._isStateChangedForLine(s,r))this._stateCache[s+1]=r;else if(n){if(s>=i)break}else if(s!==t)break;r=this._codeMirror.copyState(this._mode,r)}a.length&&this.onUpdateTokens(t,a)},_resizeCaches:function(e,t){var i=this._stateCache.length-1;if(i>e){const n=i-e;this._deleteStateCacheEntries(t,n),this.onLinesDeleted(t,n)}else if(i<e){var n=e-i;this._insertStateCacheEntries(t,n),this.onLinesInserted(t,n)}},_insertStateCacheEntries:function(e,t){this._stateCache=this._stateCache.slice(0,e+1).concat(Array(t),this._stateCache.slice(e+1))},_deleteStateCacheEntries:function(e,t){this._stateCache.splice(e+1,t)},_isStateChangedForLine:function(e,t){var i=this._stateCache[e+1];return!this._areStatesEqual(i,t)},_areStatesEqual:function(e,t){return this._stateDeepEqual(e,t,20)},_stateDeepEqual:function(e,t,i){if(this._isObjEqual(e,t)||0===i)return!0;if(!this._isObject(e)||!this._isObject(t))return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++){if(!this._stateDeepEqual(e[n[r]],t[n[r]],i-1))return!1}return!0},_isObjEqual:function(e,t){return e===t},_isObject:function(e){return null!==e&&"object"==typeof e},_parseLineForTokens:function(e,t){if(e.length>this._maxTokenizationLineLength)return new s(e,[e.length,null]);const i=new c(e,this._editorTabService.getTabSize());!i.string&&this._mode.blankLine&&this._mode.blankLine(t);const n=[];for(;!i.eol();){const e=this._mode.token(i,t);n.push(i.pos,e),i.start=i.pos}return new s(e,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(2429),i(1582),i(1123)],o=i.dj.d(n,(function(e,t,i,n){return class extends t{constructor(t){super(),this._tokenizer=t,this._tokenCache=[],this.own(e.after(this._tokenizer,"onLinesInserted",this._handleLinesInserted.bind(this),!0)),this.own(e.after(this._tokenizer,"onLinesDeleted",this._handleLinesDeleted.bind(this),!0)),this.own(e.after(this._tokenizer,"onUpdateTokens",this._handleUpdatedTokens.bind(this),!0)),this._tokenizer.initialize()}getTokens(){return this._tokenCache}getTokensOnLine(e){const t=this._tokenCache[e];return t?t.map(t=>i.createToken(t,e)):[]}getNumberOfTokensOnLine(e){const t=this._tokenCache[e];return t?t.getNumTokens():0}getTokenOnLineColumn(e,t){const n=this._tokenCache[e];if(!n)return null;let o=n.getTokenAtColumn(t);return i.createToken(o,e)}getNextTokenOf(e){const t=e.getLine(),n=this._tokenCache[t].getToken(e.getIndex()+1);return n?i.createToken(n,t):null}getPreviousTokenOf(e,t){const i=this.iterateTokens(e,t,!0);return i&&i.next()?i.clone():null}_handleLinesInserted(e,t){this._tokenCache=this._tokenCache.slice(0,e).concat(Array(t),this._tokenCache.slice(e))}_handleLinesDeleted(e,t){this._tokenCache.splice(e+1,t)}_handleUpdatedTokens(e,t){let i=[];for(let n=0;n<t.length;n++)this._tokenCache[e+n]=t[n],i.push(e+n);this.onTokensUpdated(new n(i))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{ERROR:"error",ATTRIBUTE_NAME:"attribute name",ATTRIBUTE_VALUE:"attribute value",DOCTYPE_DECLARATION:"doctype declaration",PROCESSING_INSTRUCTION:"processing instruction",TAG:"tag",OPERATOR:"operator",COMMENT:"comment",CHARACTER:"character",CDATA_SECTION:"cdata section"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(209)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{constructor:function(e){this._moduleLoader=e.moduleLoader,this._registrationFramework=e.registrationFramework,this._resourceSpecification=e.resourceSpecification,this._registerModuleDefObjFcn=e.registerModuleDefObjFcn,this._registrationPoint=e.registrationPoint,this._matchingResourcesToLoadInitiallyFcn=e.matchingResourcesToLoadInitiallyFcn||this._loadAllMatchingResourcesWithModuleLoader,this._moduleRegistry={},this._loadedModulesRegistry={},this._areModulesLoaded=new t},subscribeAndLoadModules:async function(e,t){this._requestResponseService=e.requestResponseService;var i=this._registrationFramework.subscribe(this._registrationPoint,this._resourceSpecification);return await i.then(function(e){var i=this._matchingResourcesToLoadInitiallyFcn(e,this._registerModuleDefObjFcn);return this.loadWithModuleLoader(i.reduce((function(e,t){return e.concat(t)}),[]),t)}.bind(this))},_loadAllMatchingResourcesWithModuleLoader:function(e,t){return this._registerWithModuleLoader(e.resourcesFilesData,t)},_registerWithModuleLoader:function(e,t){var i=[];return e.forEach(function(e){var n=t(e,this._moduleLoader);n&&i.push(n)}.bind(this)),i},loadWithModuleLoader:async function(e,t){var i=t?{loadModulesWhenIdle:!0,idleLoadTimeout:1e3}:void 0;let o=e.map(e=>{try{return this._moduleLoader.loadExports([e],i)}catch(t){n.error("The following AppModule "+e.name+" failed to load! Error: ",t)}}).filter(e=>void 0!==e),r={};for(let t=0;t<o.length;t++){let i;try{i=await o[t],this._addLoadedModulesToRegistry(i.exports),Object.assign(r,i.exports)}catch(i){n.error("The following AppModule "+e[t].name+" failed to load! Error: ",i)}}return this._areModulesLoaded.resolve(!0),r},areModulesLoaded:function(){return this._areModulesLoaded},isModuleRegistered:function(e){return!!this._moduleRegistry[e]},addModuleDefToRegistry:function(e,t){this._moduleRegistry[e]=t.moduleDef},removeModuleDefFromRegistry:function(e){this._moduleRegistry[e]&&delete this._moduleRegistry[e]},_getModuleDef:function(e){return this._moduleRegistry[e]},getRegisteredModuleNames:function(){return Object.keys(this._moduleRegistry)},updateModuleDefObjForEnvironment:function(e){if(this._requestResponseService){var t=this._requestResponseService.getWorkerRoutingHost().replace(/\/$/,"");e.resourcesFileContents.moduleDef.bundle.location=t+e.resourcesFileContents.moduleDef.bundle.location}return e},_addLoadedModulesToRegistry:function(e){Object.keys(e).forEach(function(t){this._loadedModulesRegistry[t]?n.error("Error found in moduleDef object's exported services: '"+t+"' has already been defined in the 'provides' of another module!"):this._loadedModulesRegistry[t]=e[t]}.bind(this))},removeLoadedModulesFromRegistry:function(e){e.forEach(function(e){this._loadedModulesRegistry[e]&&delete this._loadedModulesRegistry[e]}.bind(this))},getLoadedModulesRegistry:function(){return this._loadedModulesRegistry},getLoadedModules:async function(e){var t={};if(e)return await Promise.all(e.map(async function(e){if(this.isModuleRegistered(e)){var i=this._getModuleDef(e);await Promise.all(i.provides.map(async function(e){if(this._loadedModulesRegistry[e])t[e]=this._loadedModulesRegistry[e];else{let i=await this.loadWithModuleLoader([{name:e}]);Object.assign(t,i)}}.bind(this)))}}.bind(this))),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7451),i(7452),i(7453),i(7454)],o=i.dj.d(n,(function(e,t){return t(e,"editor_actions/l10n/gen/resources/editor_integration/nls/actions",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(203),i(206),i(221),i(430),i(1215),i(749),i(445)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=n("ie")<8&&!n("quirks");function l(e,t){t&&t.nodeType&&e.appendChild(t)}function c(e){return a.escapeCssIdentifier(e,"-")}var d=t(r,{columns:null,cellNavigation:!0,tabableHeader:!0,showHeader:!0,column:function(e){return"object"!=typeof e?this.columns[e]:this.cell(e).column},listType:"grid",cell:function(e,t){if(e.column&&e.element)return e;var i;if(e.target&&e.target.nodeType&&(e=e.target),e.nodeType)do{if(this._rowIdToObject[e.id])break;var n=e.columnId;if(n){t=n,i=e;break}e=e.parentNode}while(e&&e!=this.domNode);if(!i&&void 0!==t){var o=this.row(e),r=o&&o.element;if(r)for(var a=r.getElementsByTagName("td"),s=0;s<a.length;s++)if(a[s].columnId==t){i=a[s];break}}return null!=e?{row:o||this.row(e),column:t&&this.column(t),element:i}:void 0},createRowCells:function(e,t,i,r){var a,l,d,u,h,p,f,g,m,_,v,b,y,C,T=o("table.dgrid-row-table[role=presentation]"),E=(this.cellNavigation,n("ie")<9||n("quirks")?o(T,"tbody"):T);for(l=0,d=(i=i||this.subRows).length;l<d;l++)for(p=i[l],a=o(E,"tr"),p.className&&o(a,"."+p.className),u=0,h=p.length;u<h;u++)g=(f=p[u]).id,m=f.field?".field-"+c(f.field):"",(_="function"==typeof f.className?f.className(r):f.className)&&(m+="."+_),(v=o(e+".dgrid-cell.dgrid-cell-padding"+(g?".dgrid-column-"+c(g):"")+m.replace(/ +/g,".")+"[role="+("th"===e?"columnheader":"gridcell")+"]")).columnId=g,s?(b=o(v,"!dgrid-cell-padding div.dgrid-cell-padding"),v.contents=b):b=v,(y=f.colSpan)&&(v.colSpan=y),(C=f.rowSpan)&&(v.rowSpan=C),t(b,f),a.appendChild(v);return T},left:function(e,t){return e.element||(e=this.cell(e)),this.cell(this._move(e,-(t||1),"dgrid-cell"))},right:function(e,t){return e.element||(e=this.cell(e)),this.cell(this._move(e,t||1,"dgrid-cell"))},renderRow:function(e,t){var i=this.createRowCells("td",(function(i,n){var o=e;n.get?o=n.get(e):"field"in n&&"_item"!=n.field&&(o=o[n.field]),n.renderCell?l(i,n.renderCell(e,o,i,t)):u.call(n,e,o,i,t)}),t&&t.subRows,e);return o("div[role=row]>",i)},renderHeader:function(){var e=this,t=(this.columns,this.headerNode),r=t.childNodes.length;for(t.setAttribute("role","row");r--;)o(t.childNodes[r],"!");var a=this.createRowCells("th",(function(e,t){var i=t.headerNode=e;s&&(e=e.parentNode);var n=t.field;n&&(e.field=n),t.renderHeaderCell?l(i,t.renderHeaderCell(i)):("label"in t||t.field)&&i.appendChild(document.createTextNode("label"in t?t.label:t.field)),!1!==t.sortable&&n&&"_item"!=n&&(e.sortable=!0,e.className+=" dgrid-sortable")}),this.subRows&&this.subRows.headerRows);this._rowIdToObject[a.id=this.id+"-header"]=this.columns,t.appendChild(a),this._sortListener&&this._sortListener.remove(),this._sortListener=i(a,"click,keydown",(function(o){if("click"==o.type||32==o.keyCode||!n("opera")&&13==o.keyCode){var r,a,s,l,c=o.target;do{if(c.sortable){s=[{attribute:r=c.field||c.columnId,descending:(a=e._sort[0])&&a.attribute==r&&!a.descending}],l={bubbles:!0,cancelable:!0,grid:e,parentType:o.type,sort:s},i.emit(o.target,"dgrid-sort",l)&&(e._sortNode=c,e.set("sort",s));break}}while((c=c.parentNode)&&c!=t)}}))},resize:function(){var e,t=this.headerNode.firstChild,i=this.contentNode;this.inherited(arguments),(!n("ie")||n("ie")>7&&!n("quirks"))&&(i.style.width="",i&&t&&(e=t.offsetWidth)!=i.offsetWidth&&(i.style.width=e+"px"))},destroy:function(){this._destroyColumns(),this._sortListener&&this._sortListener.remove(),this.inherited(arguments)},_setSort:function(e,t){this.inherited(arguments),this.updateSortArrow(this._sort)},_findSortArrowParent:function(e){var t=this.columns;for(var i in t){var n=t[i];if(n.field==e)return n.headerNode}},updateSortArrow:function(e,t){if(this._lastSortedArrow&&(o(this._lastSortedArrow,"<!dgrid-sort-up!dgrid-sort-down"),o(this._lastSortedArrow,"!"),delete this._lastSortedArrow),t&&(this._sort=e),e[0]){var i,n=e[0].attribute,r=e[0].descending,a=this._sortNode||this._findSortArrowParent(n);delete this._sortNode,a&&(a=a.contents||a,(i=this._lastSortedArrow=o("div.dgrid-sort-arrow.ui-icon[role=presentation]")).innerHTML="&nbsp;",a.insertBefore(i,a.firstChild),o(a,r?".dgrid-sort-down":".dgrid-sort-up"),this.resize())}},styleColumn:function(e,t){return this.addCssRule("#"+a.escapeCssIdentifier(this.domNode.id)+" .dgrid-column-"+c(e),t)},_configColumns:function(e,t){var i=[],n=t instanceof Array;return a.each(t,(function(o,r){"string"==typeof o&&(t[r]=o={label:o}),n||o.field||(o.field=r),r=o.id=o.id||(isNaN(r)?r:e+r),this._configColumn&&(this._configColumn(o,r,t,e),r=o.id),n&&(this.columns[r]=o),o.grid=this,"function"==typeof o.init&&o.init(),i.push(o)}),this),n?t:i},_destroyColumns:function(){var e,t,i,n,o=this.subRows,r=o&&o.length;for(this.cleanup(),e=0;e<r;e++)for(t=0,n=o[e].length;t<n;t++)"function"==typeof(i=o[e][t]).destroy&&i.destroy()},configStructure:function(){var e=this.subRows,t=this._columns=this.columns;if(this.columns=!t||t instanceof Array?{}:t,e)for(var i=0;i<e.length;i++)e[i]=this._configColumns(i+"-",e[i]);else this.subRows=[this._configColumns("",t)]},_getColumns:function(){return this._columns||this.columns},_setColumns:function(e){this._destroyColumns(),this.subRows=null,this.columns=e,this._updateColumns()},_setSubRows:function(e){this._destroyColumns(),this.subRows=e,this._updateColumns()},setColumns:function(t){e.deprecated("setColumns(...)",'use set("columns", ...) instead',"dgrid 0.4"),this.set("columns",t)},setSubRows:function(t){e.deprecated("setSubRows(...)",'use set("subRows", ...) instead',"dgrid 0.4"),this.set("subRows",t)},_updateColumns:function(){this.configStructure(),this.renderHeader(),this.refresh(),this._lastCollection&&this.renderArray(this._lastCollection),this._started&&(this._sort&&this._sort.length?this.updateSortArrow(this._sort):this.resize())}});function u(e,t,i,n){if(this.formatter){var o=this.formatter,r=this.grid.formatterScope;i.innerHTML="string"==typeof o&&r?r[o](t,e):this.formatter(t,e)}else null!=t&&i.appendChild(document.createTextNode(t))}return d.appendIfNode=l,d.defaultRenderCell=u,d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(224),i(306),i(206),i(214),i(221),i(225),i(285),i(1003),i(430),i(445)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){function u(e,t){e.value=t,"radio"!=e.type&&"checkbox"!=e.type||(e.checked=e.defaultChecked=!!t)}function h(e,t){if("number"==typeof t)e=isNaN(e)?e:parseFloat(e);else if("boolean"==typeof t)e="true"==e||"false"!=e&&e;else if(t instanceof Date){var i=new Date(e);e=isNaN(i.getTime())?e:i}return e}function p(e,t,i){var n,r,a,l=e.cell(t.domNode||t),c=l.column,d=e._activeCell;if((!t.isValid||t.isValid())&&(n=function(e,t,i,n,r){var a,s,l,c;if((i&&i.valueOf())!=(n&&n.valueOf())&&(a=t.element,s=t.row,(l=t.column).field&&s)){var d;if(c={grid:e,cell:t,rowId:s.id,oldValue:i,value:n,bubbles:!0,cancelable:!0},r&&r.type&&(c.parentType=r.type),!o.emit(a,"dgrid-datachange",c))return(d=a.widget)?(d._dgridIgnoreChange=!0,d.set("value",i),setTimeout((function(){d._dgridIgnoreChange=!1}),0)):(d=a.input)&&u(d,i),i;e.updateDirty?(e.updateDirty(s.id,l.field,n),l.autoSave&&setTimeout((function(){e._trackError("save")}),0)):s.data[l.field]=n}return n}(e,l,d?e._activeValue:t._dgridLastValue,function(e,t){return"function"==typeof t.get?h(t.get("value")):h(t["checkbox"==t.type||"radio"==t.type?"checked":"value"])}(0,t),i),d?e._activeValue=n:t._dgridLastValue=n,"radio"===t.type&&t.name&&!c.editOn&&c.field))for(r in a=e.row(t),s("input[type=radio][name="+t.name+"]",e.contentNode).forEach((function(i){var n=e.row(i);i!==t&&i._dgridLastValue&&(i._dgridLastValue=!1,e.updateDirty?e.updateDirty(n.id,c.field,!1):n.data[c.field]=!1)})),e.dirty)a.id!==r&&e.dirty[r][c.field]&&e.updateDirty(r,c.field,!1)}function f(e){var i,n,r,s=e.editor,l=e.editOn,c=e.grid,u="string"!=typeof s;return"function"==typeof(i=e.editorArgs||{})&&(i=i.call(c,e)),u?(((n=new s(i)).focusNode||n.domNode).className+=" dgrid-input",n.connect(n,l?"onBlur":"onChange",(function(){n._dgridIgnoreChange||p(c,this,{type:"widget"})}))):(r=function(e){var t=e.target;"_dgridLastValue"in t&&t.className.indexOf("dgrid-input")>-1&&p(c,t,e)},e.grid._hasInputListener||(c._hasInputListener=!0,c.on("change",(function(e){r(e)}))),n=d(("textarea"==s?"textarea":"input[type="+s+"]")+".dgrid-input",t.mixin({name:e.field,tabIndex:isNaN(e.tabIndex)?-1:e.tabIndex},i)),(a("ie")<9||a("ie")&&a("quirks"))&&o(n,"radio"==s||"checkbox"==s?"click":"change",(function(e){r(e)}))),n}function g(e,t,i,n){var o=e.domNode;o||u(e,n),i.innerHTML="",d(i,".dgrid-cell-editing"),d(i,e.domNode||e),o&&!t.editOn?t.grid._editorsPendingStartup.push([e,t,i,n]):m(e,t,i,n)}function m(e,t,i,n){var r=t.grid;e.domNode&&(e._started||e.startup(),e._dgridIgnoreChange=!0,e.set("value",n),setTimeout((function(){e._dgridIgnoreChange=!1}),0)),e._dgridLastValue=n,r._activeCell&&(r._activeValue=n,o.emit(i,"dgrid-editor-show",{grid:r,cell:r.cell(i),column:t,editor:e,bubbles:!0,cancelable:!1}))}function _(e){for(var t=e._editorsPendingStartup,i=t.length;i--;)m.apply(null,t[i]);e._editorsPendingStartup=[]}function v(e){var t,i,o,r,a,s,l,c,d;function u(e){i.grid._activeCell=o,g(i.editorInstance,i,o,s),i._editTimer=setTimeout((function(){l.focus&&l.focus(),i._editorBlurHandle&&i._editorBlurHandle.resume(),i._editTimer=null,e.resolve(l)}),0)}if(e.column||(e=this.cell(e)),!e||!e.element)return null;if(a=(i=e.column).field,o=e.element.contents||e.element,l=i.editorInstance){if(i.grid._activeCell!=o&&(t=e.row,r=this.dirty&&this.dirty[t.id],s=r&&a in r?r[a]:i.get?i.get(t.data):t.data[a],!i.canEdit||i.canEdit(e.row.data,s)))return c=new n,(d=l.domNode||l).offsetWidth?(d.blur(),setTimeout((function(){u(c)}),0)):u(c),c.promise}else if(i.editor&&(l=o.widget||o.input))return c=new n,l.focus&&l.focus(),c.resolve(l),c.promise;return null}return function(n,s,h){var m,b=n.renderCell||c.defaultRenderCell,y=[];function C(e){var t,i,n=e.grid;n.edit||(n.edit=v,n._editorsPendingStartup=[],y.push(o(n.domNode,".dgrid-input:focusin",(function(){n._focusedEditorCell=n.cell(this)}))),t=n._editorFocusoutHandle=o.pausable(n.domNode,".dgrid-input:focusout",(function(){n._focusedEditorCell=null})),y.push(t),y.push(r.before(n,"removeRow",(function(e){var o=n._focusedEditorCell;e=n.row(e),o&&o.row.id===e.id&&(i=o,t.pause(),setTimeout((function(){t.resume(),i=null}),0))}))),y.push(r.after(n,"insertRow",(function(e){var t=n.row(e);return i&&i.row.id===t.id&&n.edit(n.cell(t,i.column.id)),e}))),y.push(r.after(n,"renderArray",(function(e){return l(e,(function(e){e.length?_(n):n._editorsPendingStartup=[]})),e}))),y.push(r.after(n,"_onNotification",(function(){_(n)}))))}return n||(n={}),n.editor=s=s||n.editor||"text",n.editOn=h=h||n.editOn,m="string"!=typeof s,n.widgetArgs&&(e.deprecated("column.widgetArgs","use column.editorArgs instead","dgrid 0.4"),n.editorArgs=n.widgetArgs),r.after(n,"init",h?function(){C(n),n.editorInstance=function(e,i){var n=f(e),r=e.grid,s=n.domNode,l=n.domNode||n,h=n.focusNode||l,g=s?function(){n.set("value",n._dgridLastValue)}:function(){u(n,n._dgridLastValue),p(e.grid,n)};function m(){var e=r._activeCell;h.blur(),"function"==typeof r.focus&&setTimeout((function(){r.focus(e)}),s&&a("ie")<9?15:0)}return o(h,"keydown",(function(t){var i=t.keyCode||t.which;27==i?(g(),r._activeValue=n._dgridLastValue,m()):13==i&&!1!==e.dismissOnEnter&&m()})),(e._editorBlurHandle=o.pausable(n,"blur",(function(){var i=l.parentNode,a=i.children.length-1,s={alreadyHooked:!0},u=r.cell(l);if(o.emit(u.element,"dgrid-editor-hide",{grid:r,cell:u,column:e,editor:n,bubbles:!0,cancelable:!1}),e._editorBlurHandle.pause(),i.removeChild(l),u.row){for(d(u.element,"!dgrid-cell-editing");a--;)d(i.firstChild,"!");c.appendIfNode(i,e.renderCell(e.grid.row(i).data,r._activeValue,i,r._activeOptions?t.delegate(s,r._activeOptions):s))}r._focusedEditorCell=r._activeCell=r._activeValue=r._activeOptions=null}))).pause(),n}(n)}:function(){var e=n.grid;C(n),m&&y.push(r.before(e,"removeRow",(function(t){var i=e.cell(t,n.id).element,o=i&&(i.contents||i).widget;o&&(e._editorFocusoutHandle.pause(),o.destroyRecursive())})))}),r.after(n,"destroy",(function(){i.forEach(y,(function(e){e.remove()})),n._editorBlurHandle&&n._editorBlurHandle.remove(),n._editTimer&&clearTimeout(n._editTimer),h&&m&&n.editorInstance.destroyRecursive(),n.grid.edit=null,n.grid._editorsPendingStartup=null})),n.renderCell=h?function(e,t,i,r){var a=n.grid;return r&&r.alreadyHooked||o("TD"==i.tagName?i:i.parentNode,h,(function(){a._activeOptions=r,a.edit(this)})),b.call(n,e,t,i,r)}:function(e,t,i,o){if(n.canEdit&&!n.canEdit(e,t))return b.call(n,e,t,i,o);var r=f(n);g(r,n,i,t),i[m?"widget":"input"]=r},n}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(227),i(204),i(256),i(242),i(238),i(7589),i(31)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l={_curFocus:null,_prevFocus:null,isCollapsed:function(){return s.getBookmark().isCollapsed},getBookmark:function(){return(o.global==window?a:new a.SelectionManager(o.global)).getBookmark()},moveToBookmark:function(e){return(o.global==window?a:new a.SelectionManager(o.global)).moveToBookmark(e)},getFocus:function(e,i){var n=!r.curNode||e&&t.isDescendant(r.curNode,e.domNode)?s._prevFocus:r.curNode;return{node:n,bookmark:n&&n==r.curNode&&o.withGlobal(i||o.global,s.getBookmark),openedForWindow:i}},_activeStack:[],registerIframe:function(e){return r.registerIframe(e)},unregisterIframe:function(e){e&&e.remove()},registerWin:function(e,t){return r.registerWin(e,t)},unregisterWin:function(e){e&&e.remove()}};return r.focus=function(e){if(e){var t="node"in e?e.node:e,i=e.bookmark,n=e.openedForWindow,a=!!i&&i.isCollapsed;if(t){var l="iframe"==t.tagName.toLowerCase()?t.contentWindow:t;if(l&&l.focus)try{l.focus()}catch(e){}r._onFocusNode(t)}if(i&&o.withGlobal(n||o.global,s.isCollapsed)&&!a){n&&n.focus();try{o.withGlobal(n||o.global,s.moveToBookmark,null,[i])}catch(e){}}}},r.watch("curNode",(function(e,t,i){s._curFocus=i,s._prevFocus=t,i&&n.publish("focusNode",i)})),r.watch("activeStack",(function(e,t,i){s._activeStack=i})),r.on("widget-blur",(function(e,t){n.publish("widgetBlur",e,t)})),r.on("widget-focus",(function(e,t){n.publish("widgetFocus",e,t)})),i.mixin(s,l),s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1221)],o=i.dj.d(n,(function(e){return{SAVE:e.MOTW_PREFIX+"save",SAVEAS:e.MOTW_PREFIX+"saveas",EXPORT_AS_HTML:e.MOTW_PREFIX+"exportAsHTML",EXPORT_AS_PDF:e.MOTW_PREFIX+"exportAsPDF",EXPORT_AS_DOCX:e.MOTW_PREFIX+"exportAsDOCX",EXPORT_AS_LATEX:e.MOTW_PREFIX+"exportAsLaTeX",EXPORT_FOLDER:e.MOTW_PREFIX+"exportFolder"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7615)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/addons",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{EXECUTE_COMMAND:"cw_execute_command",CLEAR_PROMPT_INPUT:"cw_clear_prompt",ESCAPE_COMMAND:"cw_escape_command",ENTER_COMMAND:"cw_enter_command",BACKSPACE_COMMAND:"cw_backspace_command",INTERRUPT_COMMAND:"cw_interrupt_command",HOME_NAVIGATION:"home_navigation",HOME_SELECTION_NAVIGATION:"home_selection_navigation",CLEAR_COMMAND_WINDOW:"cw_clear_command_window"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1104)],o=i.dj.d(n,(function(e,t){return e([t],{_styleAttributes:["color"],className:"OutputNode",constructor:function(e){this.readOnly=!0},getPlainText:function(e,t){var i=this.getText(),n=t;return t===this.maxOffset()&&"\n"===i[t-1]&&(n=t-1),i.slice(e,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1104)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this.readOnly=!0,this.active=e.active||!1},className:"PromptNode",getCodeText:function(){return Array(this.getText().length+1).join(" ")},isTextNode:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(713),i(217),i(279)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{_iframesSelector:".dojoxFloatingPaneContent iframe",_iframePointerStylesMap:new function(){var e=[];return{set:function(t,i){for(var n=0;n<e.length;n+=1){var o=e[n];if(o.key===t)return void(o.value=i)}e.push({key:t,value:i})},get:function(t){for(var i=0;i<e.length;i+=1){var n=e[i];if(n.key===t)return n.value}},has:function(t){for(var i=0;i<e.length;i+=1){if(e[i].key===t)return!0}return!1},clear:function(){e=[]}}},_setIframePointerEventsStyle:function(e){for(var t=document.querySelectorAll(this._iframesSelector),i=0;i<t.length;i++)t[i].style.pointerEvents=e},_resetIframePointerEventsStyle:function(){for(var e=document.querySelectorAll(this._iframesSelector),t=0;t<e.length;t++)this._iframePointerStylesMap.has(e[t])&&(e[t].style.pointerEvents=this._iframePointerStylesMap.get(e[t]));this._iframePointerStylesMap.clear()},_saveIframePointerEventsStyle:function(){for(var e=document.querySelectorAll(this._iframesSelector),t=0;t<e.length;t++)this._iframePointerStylesMap.set(e[t],e[t].style.pointerEvents)},onFirstMove:function(){this.inherited(arguments),this._saveIframePointerEventsStyle(),this._setIframePointerEventsStyle("none")},onMouseMove:function(e){var i=this.marginBox,r=n.position(this.host.node),a=o.getBox(),s={l:i.l+e.pageX,t:i.t+e.pageY};s.l=Math.max(0,Math.min(s.l,a.w-r.w)),s.t=Math.max(0,Math.min(s.t,a.h-r.h)),this.host.onMove(this,s,e),t.stop(e)},onMouseUp:function(){this.inherited(arguments),this._resetIframePointerEventsStyle()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{UNDO:"motwToolstrip.qab.globalQAGroup.undo",REDO:"motwToolstrip.qab.globalQAGroup.redo"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(536),i(304),i(219),i(291),i(297)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=[],s=function(e){o.getMVM().eval(e,new r).then((function(e){}),(function(e){}))};function l(e){var t=e.actionService,i=function(e){return{id:e,enabled:!0,selected:!1,callback:function(){s("matlab.graphics.internal.FigureToolstripManager.pushCallback('"+e+"')")}}},o=[],r=function(e){return o.push(e),{id:e,enabled:!0,selected:!1,callback:function(){}}},l=[i("motw.embeddedfigures.newfigure"),i("motw.embeddedfigures.openfigure"),i("motw.embeddedfigures.closefigure"),i("motw.embeddedfigures.clearfigure"),i("motw.embeddedfigures.copyfigure"),i("motw.embeddedfigures.print"),i("motw.noop")];t.loadActions(l),a=a.concat(l);var c=[i("motw.embeddedfigures.scaleUpFont"),i("motw.embeddedfigures.scaleDownFont")];t.loadActions(c),a=a.concat(c);var d=[i("motw.embeddedfigures.export"),i("motw.embeddedfigures.exportPNG"),i("motw.embeddedfigures.exportPDF")];t.loadActions(d),a=a.concat(d);l=[i("motw.embeddedfigures.basicfit"),i("motw.embeddedfigures.datastats"),i("motw.embeddedfigures.colormapeditor"),i("motw.embeddedfigures.datalink"),i("motw.embeddedfigures.linkedplot"),r("motw.embeddedfigures.hold")];t.loadActions(l),a=a.concat(l);var u=[i("motw.embeddedfigures.undo1"),i("motw.embeddedfigures.redo1")];u.forEach((function(e){e.enabled=!1})),t.loadActions(u),a=a.concat(u);var h=i("motw.embeddedfigures.inspector");t.loadActions([h]),a=a.concat(h);var p=[i("motw.embeddedfigures.savefigure"),i("motw.embeddedfigures.saveasfigure"),i("motw.embeddedfigures.generatecode")];t.loadActions(p),a=a.concat(p);var f=[i("motw.embeddedfigures.camera")];t.loadActions(f),a=a.concat(f);var g=[r("motw.embeddedfigures.plotedit"),r("motw.embeddedfigures.plotedit.bold"),r("motw.embeddedfigures.plotedit.italics"),r("motw.embeddedfigures.plotedit.alignleft"),r("motw.embeddedfigures.plotedit.aligncenter"),r("motw.embeddedfigures.plotedit.alignright"),i("motw.embeddedfigures.plotedit.close")];t.loadActions(g),a=a.concat(g);var m=[i("motw.embeddedfigures.lineStyle.solid"),i("motw.embeddedfigures.lineStyle.dashed"),i("motw.embeddedfigures.lineStyle.dotted"),i("motw.embeddedfigures.lineStyle.dashdot"),i("motw.embeddedfigures.lineStyle.none")];t.loadActions(m),a=a.concat(m);var _=[i("motw.embeddedfigures.xlabel"),i("motw.embeddedfigures.ylabel"),i("motw.embeddedfigures.title"),i("motw.embeddedfigures.legend"),i("motw.embeddedfigures.removelegend"),i("motw.embeddedfigures.colorbar"),i("motw.embeddedfigures.removecolorbar"),i("motw.embeddedfigures.grid"),i("motw.embeddedfigures.removegrid"),i("motw.embeddedfigures.xgrid"),i("motw.embeddedfigures.ygrid"),i("motw.embeddedfigures.annotations.line"),i("motw.embeddedfigures.annotations.arrow"),i("motw.embeddedfigures.annotations.doublearrow"),i("motw.embeddedfigures.annotations.textarrow")];t.loadActions(_),a=a.concat(_);f=[r("motw.embeddedfigures.camera.orbit"),r("motw.embeddedfigures.camera.pan"),r("motw.embeddedfigures.camera.dollyhv"),r("motw.embeddedfigures.camera.dollyfb"),r("motw.embeddedfigures.camera.zoom"),r("motw.embeddedfigures.camera.roll"),i("motw.embeddedfigures.camera.resetx"),i("motw.embeddedfigures.camera.resety"),i("motw.embeddedfigures.camera.resetz"),i("motw.embeddedfigures.camera.resetnone"),i("motw.embeddedfigure.camera.togglescenelight"),i("motw.embeddedfigures.camera.orthographic"),i("motw.embeddedfigures.camera.perspective"),i("motw.embeddedfigures.camera.resetcameralight"),i("motw.embeddedfigures.camera.stop"),i("motw.embeddedfigures.camera.close")];t.loadActions(f),a=a.concat(f);var v=[];o.forEach((function(e){var i,n;v[e]=(i=e,n=function(e){"selected"===e.property&&e.newValue&&s("matlab.graphics.internal.FigureToolstripManager.toggleCallback('"+i+"',"+e.newValue+")")},t.addActionChangeCallback(i,n),n)}));var b=function(e){void 0!==e.enabled&&(e.enabled?t.enableAction(e.id):t.disableAction(e.id))};n.subscribe("/embedded/figure/toolstrip/actions",(function(e){Array.isArray(e.data)?e.data.forEach((function(e){t.removeActionChangeCallback(e.id,v[e.id]),t.updateAction(e.id,e),b(e),t.addActionChangeCallback(e.id,v[e.id])})):(t.removeActionChangeCallback(e.data.id,v[e.data.id]),t.updateAction(e.data.id,{selected:e.data.selected}),b(e.data),t.addActionChangeCallback(e.data.id,v[e.data.id]))}))}return{loadActions:function(e){null!==a&&a.length<=0&&l(e)},getActions:function(){return a},unloadActions:function(e){this.getActions().forEach((function(t){e.actionService.removeAction(t.id)}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(388)],o=i.dj.d(n,(function(e){return class{static create(t,i){return t.create({type:e.STATUS_LABEL,tag:this.getTag(),text:"",region:"right",parentId:i||null})}static getTag(){throw new Error("Unimplemented API: getTag")}static setValue(e,t){this._setValue(e,this.getTag(),t)}static _setValue(e,t,i){const n=e.tagToId(t);e.set(n,"text",String(i))}static _setBlank(e,t){this._setValue(e,t," ")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8281)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/mgg",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(226),i(241),i(8464)],o=i.dj.d(n,(e,t,i,n)=>e(null,{fUiBuilder:null,fIconProvider:null,fSection:null,constructor:function(e,t,i){this.fUiBuilder=e,this.fIconProvider=t,this.fSection=i},makeBigButton:function(e,i,n,o,r){const a=this.fUiBuilder.create({type:t.COLUMN,parentId:this.fSection});this.makeButton(a,e,i,n,o,r)},makeButton:function(e,o,r,a,s,l){const c=this.fUiBuilder.create({type:t.PUSH_BUTTON,tag:r,text:a,description:s,parentId:e});this.fIconProvider.loadIcon(o).then(e=>this.fUiBuilder.set(c,"icon",e)),this.fUiBuilder.addEventCallback(c,e=>{const t=()=>{this.fUiBuilder.set(c,"enabled",!0)};this.fUiBuilder.set(c,"enabled",!1),l().then(()=>{t()}).catch(e=>{console.log(e),t(),i.displayAlertDialog(n.ErrorDialogTitle,e)})});const d=this.fUiBuilder.tagToId("motwToolstrip");if(d){const e=this.fUiBuilder.addPropertySetCallback(d,t=>{if("selectedTab"===t.property){const t=this.fUiBuilder.widgetByTag(r);t&&(t.isEligibleForQab=()=>!1,e.remove())}})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(241),i(1217)],o=i.dj.d(n,(function(e,t){return class{static show(i){e.displayAlertDialog(t.ErrorDialogTitle,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209)],o=i.dj.d(n,(function(e,t){"use strict";var i,n=e(null,{constructor:function(e){this._application=e,this._application.userDataService.getUserInfo().then(e=>this._handleUserInfoReceived(e),e=>t.error(e))},_handleUserInfoReceived:function(e){this.userInfo=e.userInfo},getExecutionDataService:function(){return this._application.executionService},getUserInfo:function(){if(!this.userInfo)throw new Error("User information not available yet.");return this.userInfo}});return n.create=function(e){i=new n(e)},n.getInstance=function(){if(!i)throw new Error("ApplicationServiceProvider instance has not been created yet");return i},n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(539)],o=i.dj.d(n,(function(e,t,i){var n=e([t],{constructor:function(e){this._node=e,this.info=e.getProperties(),this.value=this.info.value,delete this.info.value,i.onPropertySet(e,"_handlePropertySet",this),i.onPropertyUnset(e,"_handlePropertyUnset",this)},_handlePropertySet:function(e,t,i){"value"===e&&(this.value=t,this.emit(n.CHANGED,this.value,i))},_handlePropertyUnset:function(e,t){this._handlePropertySet(e,void 0,t)},setValue:function(e){this.value=e,i.setProperty(this._node,"value",e)},unsetValue:function(){this.value=void 0,i.unsetProperty(this._node,"value")},isSet:function(){return void 0!==this.value}});return n.isDefault=function(e){return e===n.DEFAULT},n.DEFAULT=void 0,n.CHANGED="changed",n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(247)],o=i.dj.d(n,(function(e){"use strict";var t=e.parseQueryString(),i={getAll:function(){return t},get:function(e,i){return t[e]||i},asInt:function(e,i){return t[e]?parseInt(t[e]):i},asBool:function(e,i){return i?!/^off|false|no|0$/i.test(t[e]):/^on|true|yes|1$/i.test(t[e])},asParsedUrl:function(e,i){return t[e]?decodeURIComponent(t[e]):i}};return i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8677),i(8678),i(8679)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/pct/resources/parallel/web/nls/indicator",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){this.profile=null,this._profileListeners=[]},_setProfileAttr:function(e){this._profileListeners.forEach((function(e){e.remove()})),this._set("profile",e)},registerListener:function(e,i,n){var o;if(!this.profile)throw new Error("Failed to register listener. Profile is null.");o=this.profile.on(e,t.hitch(n,i)),this._profileListeners.push(o)},registerListeners:function(e,t){e.forEach((function(e){this.registerListener(e.name,e.callback,t)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{convertToJSON:function(e){return JSON.stringify(e)},convertFromJSON:function(e){return JSON.parse(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2709),i(219),i(8973)],o=i.dj.d(n,(function(e,t,i){return e.isTestMode?(document.slonlineContainer?document.slonlineContainer.TestMessageService||(document.slonlineContainer.TestMessageService=new i):document.slonlineContainer={TestMessageService:new i},document.slonlineContainer.TestMessageService):t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8999),i(9e3),i(9001),i(9002)],o=i.dj.d(n,(function(e,t){return t(e,"variableeditor_client/l10n/nls/VEToolstrip",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_setTooltipAttr:function(e){this.set("description",e)},_getTooltipAttr:function(){return this.get("description")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{visible:!0,_oldDisplay:"",_setVisibleAttr:function(e){this._set("visible",e),e?this.domNode.classList.remove("dasInvisible"):this.domNode.classList.add("dasInvisible")},postCreate:function(){this.inherited(arguments),this.set("visible",this.visible)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(9033),i(9034),i(9035),i(9036)],o=i.dj.d(n,(function(e,t){return t(e,"desktop_workspacebrowser/l10n/nls/desktop_workspacebrowser",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({SHOW:"show",IDLE:"idle",WAITING:"waiting",CURRENT_ACTIVE_ELEMENT:"activeElement",CLOSED_EXTERNALLY:"closedExternally",FOCUS_WITHIN:"focusWithin"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{CODER_TAB_GROUP_TAG:"motwToolstrip.coderTabGroup",CODER_TAB_TAG:"motwToolstrip.coderTab",FILE_SECTION_TAG:"motwToolstrip.coderTab.file",FILE_SECTION_COLUMN1_TAG:"motwToolstrip.coderTab.file.column1",FILE_SECTION_COLUMN2_TAG:"motwToolstrip.coderTab.file.column2",FILE_SECTION_NEW_BUTTON_TAG:"motwToolstrip.coderTab.file.new",FILE_SECTION_OPEN_BUTTON_TAG:"motwToolstrip.coderTab.file.open",FILE_SECTION_SAVE_AS_BUTTON_TAG:"motwToolstrip.coderTab.file.saveAs",PREPARE_SECTION_TAG:"motwToolstrip.coderTab.prepare",PREPARE_SECTION_COLUMN1_TAG:"motwToolstrip.coderTab.prepare.column1",PREPARE_SECTION_ENTRY_POINT_FUNCTIONS_BUTTON_TAG:"motwToolstrip.coderTab.prepare.entryPointFunctions",SETTINGS_SECTION_TAG:"motwToolstrip.coderTab.settings",SETTINGS_SECTION_COLUMN1_TAG:"motwToolstrip.coderTab.settings.column1",SETTINGS_SECTION_COLUMN2_TAG:"motwToolstrip.coderTab.settings.column2",SETTINGS_SECTION_LANGUAGE_BUTTON_TAG:"motwToolstrip.coderTab.settings.language",SETTINGS_SECTION_OUTPUT_BUTTON_TAG:"motwToolstrip.coderTab.settings.output",SETTINGS_SECTION_SETTINGS_BUTTON_TAG:"motwToolstrip.coderTab.settings.settings",LANGUAGE_POPUP_TAG:"motwToolstrip.coderTab.language.popup",LANGUAGE_POPUP_C_ITEM_TAG:"motwToolstrip.coderTab.language.popup.c.item",LANGUAGE_POPUP_CPP_ITEM_TAG:"motwToolstrip.coderTab.language.popup.cpp.item",LANGUAGE_POPUP_CUDA_ITEM_TAG:"motwToolstrip.coderTab.language.popup.cuda.item",CHECK_SECTION_TAG:"motwToolstrip.coderTab.check",CHECK_SECTION_COLUMN1_TAG:"motwToolstrip.coderTab.check.column1",CHECK_SECTION_CHECK_ISSUES_BUTTON_TAG:"motwToolstrip.coderTab.check.checkIssues",GENERATE_SECTION_TAG:"motwToolstrip.coderTab.generate",GENERATE_SECTION_COLUMN1_TAG:"motwToolstrip.coderTab.generate.column1",GENERATE_SECTION_GENERATE_BUTTON_TAG:"motwToolstrip.coderTab.generate.button",GENERATE_POPUP_TAG:"motwToolstrip.coderTab.generate.popup",GENERATE_POPUP_GENERATE_CODE_ITEM_TAG:"motwToolstrip.coderTab.generate.popup.generateCode.item",GENERATE_POPUP_BUILD_ITEM_TAG:"motwToolstrip.coderTab.generate.popup.build.item",REPORT_SECTION_TAG:"motwToolstrip.coderTab.report",REPORT_SECTION_COLUMN1_TAG:"motwToolstrip.coderTab.report.column1",REPORT_SECTION_VIEW_REPORT_BUTTON_TAG:"motwToolstrip.coderTab.report.viewReport",VERIFY_SECTION_TAG:"motwToolstrip.coderTab.verify",VERIFY_SECTION_COLUMN1_TAG:"motwToolstrip.coderTab.verify.column1",VERIFY_SECTION_VERIFY_BUTTON_TAG:"motwToolstrip.coderTab.verify.verify",SHARE_SECTION_TAG:"motwToolstrip.coderTab.share",SHARE_SECTION_COLUMN1_TAG:"motwToolstrip.coderTab.share.column1",SHARE_SECTION_SHARE_BUTTON_TAG:"motwToolstrip.coderTab.share.share",CODER_PANEL_ID:"coderPanel",CODER_STATUS_BAR_RUNNING_TAG:"coderRunning",ACTION_OPEN:"coder.action.open",ACTION_SAVE_AS:"coder.action.saveAs",ACTION_CLOSE_CONTEXT:"coder.action.closeContext",ACTION_SETUP_ENTRY_POINTS:"coder.action.setupEntryPoints",ACTION_UPDATE_LANGUAGE_C:"coder.action.updateLanguageC",ACTION_UPDATE_LANGUAGE_CPP:"coder.action.updateLanguageCpp",ACTION_UPDATE_LANGUAGE_CUDA:"coder.action.updateLanguageCuda",ACTION_GENERATE:"coder.action.generate",ACTION_BUILD:"coder.action.build",CODER_CONTEXT_ID:"coderContext",CODER_RUNNING_CONTEXT_ID:"coderRunningContext"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(9165),i(9166),i(9167),i(9168)],o=i.dj.d(n,(function(e,t){return t(e,"variableeditor/app/l10n/nls/app",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1265)],o=i.dj.d(n,(function(e){return e("CancelError",null,null,{dojoType:"cancel"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1267),i(1032),i(212),i(513),i(224),i(204),i(864)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){e.deepCopy=function(t,i){for(var n in i){var o=t[n],r=i[n];o!==r&&(o&&"object"==typeof o&&r&&"object"==typeof r?e.deepCopy(o,r):t[n]=r)}return t},e.deepCreate=function(t,i){i=i||{};var n,o,r=a.delegate(t);for(n in t)(o=t[n])&&"object"==typeof o&&(r[n]=e.deepCreate(o,i[n]));return e.deepCopy(r,i)};var l=Object.freeze||function(e){return e};function c(e){return l(e)}function d(e){return void 0!==e.data?e.data:e.text}e.deferred=function(o,r,u,h,p,f){var g=new n((function(e){return r&&r(g,o),e&&(e instanceof t||e instanceof i)?e:new i("Request canceled",o)}));g.response=o,g.isValid=u,g.isReady=h,g.handleResponse=p;var m=g.then(c).otherwise((function(e){throw e.response=o,e}));e.notify&&m.then(a.hitch(e.notify,"emit","load"),a.hitch(e.notify,"emit","error"));var _=m.then(d),v=new s;for(var b in _)_.hasOwnProperty(b)&&(v[b]=_[b]);return v.response=m,l(v),f&&g.then((function(e){f.call(g,e)}),(function(e){f.call(g,o,e)})),g.promise=v,g.then=v.then,g},e.addCommonMethods=function(e,t){r.forEach(t||["GET","POST","PUT","DELETE"],(function(t){e[("DELETE"===t?"DEL":t).toLowerCase()]=function(i,n){return(n=a.delegate(n||{})).method=t,e(i,n)}}))},e.parseArgs=function(e,t,i){var n=t.data,r=t.query;return n&&!i&&("object"!=typeof n||n instanceof ArrayBuffer||n instanceof Blob||(t.data=o.objectToQuery(n))),r?("object"==typeof r&&(r=o.objectToQuery(r)),t.preventCache&&(r+=(r?"&":"")+"request.preventCache="+ +new Date)):t.preventCache&&(r="request.preventCache="+ +new Date),e&&r&&(e+=(~e.indexOf("?")?"&":"?")+r),{url:e,options:t,getHeader:function(e){return null}}},e.checkStatus=function(e){return(e=e||0)>=200&&e<300||304===e||1223===e||!e}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(224),i(203),i(227),i(211),i(651)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=0,l={_secureForInnerHtml:function(e){return e.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/gi,"")},_emptyNode:r.empty,_setNodeContent:function(e,i){if(r.empty(e),i)if("number"==typeof i&&(i=i.toString()),"string"==typeof i&&(i=r.toDom(i,e.ownerDocument)),!i.nodeType&&t.isArrayLike(i))for(var n=i.length,o=0;o<i.length;o=n==i.length?o+1:0)r.place(i[o],e,"last");else r.place(i,e,"last");return e},_ContentSetter:n("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:e._scopeName,startup:!0,constructor:function(e,i){t.mixin(this,e||{}),i=this.node=o.byId(this.node||i),this.id||(this.id=["Setter",i?i.id||i.tagName:"",s++].join("_"))},set:function(e,t){void 0!==e&&(this.content=e),"number"==typeof e&&(e=e.toString()),t&&this._mixin(t),this.onBegin(),this.setContent();var i=this.onEnd();return i&&i.then?i:this.node},setContent:function(){var e=this.node;if(!e)throw new Error(this.declaredClass+": setContent given no node");try{e=l._setNodeContent(e,this.content)}catch(i){var t=this.onContentError(i);try{e.innerHTML=t}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e)}}this.node=e},empty:function(){this.parseDeferred&&(this.parseDeferred.isResolved()||this.parseDeferred.cancel(),delete this.parseDeferred),this.parseResults&&this.parseResults.length&&(i.forEach(this.parseResults,(function(e){e.destroy&&e.destroy()})),delete this.parseResults),r.empty(this.node)},onBegin:function(){var e=this.content;if(t.isString(e)&&(this.cleanContent&&(e=l._secureForInnerHtml(e)),this.extractContent)){var i=e.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);i&&(e=i[1])}return this.empty(),this.content=e,this.node},onEnd:function(){return this.parseContent&&this._parse(),this.node},tearDown:function(){delete this.parseResults,delete this.parseDeferred,delete this.node,delete this.content},onContentError:function(e){return"Error occurred setting content: "+e},onExecError:function(e){return"Error occurred executing scripts: "+e},_mixin:function(e){var t,i={};for(t in e)t in i||(this[t]=e[t])},_parse:function(){var e=this.node;try{var t={};i.forEach(["dir","lang","textDir"],(function(e){this[e]&&(t[e]=this[e])}),this);var n=this;this.parseDeferred=a.parse({rootNode:e,noStart:!this.startup,inherited:t,scope:this.parserScope}).then((function(e){return n.parseResults=e}),(function(e){n._onError("Content",e,"Error parsing in _ContentSetter#"+this.id)}))}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(e,t,i){var n=this["on"+e+"Error"].call(this,t);i?console.error(i,t):n&&l._setNodeContent(this.node,n,!0)}}),set:function(e,i,n){return null==i&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),i=""),"number"==typeof i&&(i=i.toString()),n?new l._ContentSetter(t.mixin(n,{content:i,node:e})).set():l._setNodeContent(e,i,!0)}};return t.setObject("dojo.html",l),l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240)],o=i.dj.d(n,(function(e){var t=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),i=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),n=function(){for(var e=null,o=arguments,r=[o[0]],a=1;a<o.length;a++)if(o[a]){var s=new n(o[a]+""),l=new n(r[0]+"");if(""!=s.path||s.scheme||s.authority||s.query){if(!s.scheme&&(s.scheme=l.scheme,!s.authority&&(s.authority=l.authority,"/"!=s.path.charAt(0)))){for(var c=l.path.substring(0,l.path.lastIndexOf("/")+1)+s.path,d=c.split("/"),u=0;u<d.length;u++)"."==d[u]?u==d.length-1?d[u]="":(d.splice(u,1),u--):u>0&&(1!=u||""!=d[0])&&".."==d[u]&&".."!=d[u-1]&&(u==d.length-1?(d.splice(u,1),d[u-1]=""):(d.splice(u-1,2),u-=2));s.path=d.join("/")}}else s.fragment!=e&&(l.fragment=s.fragment),s=l;r=[],s.scheme&&r.push(s.scheme,":"),s.authority&&r.push("//",s.authority),r.push(s.path),s.query&&r.push("?",s.query),s.fragment&&r.push("#",s.fragment)}this.uri=r.join("");var h=this.uri.match(t);this.scheme=h[2]||(h[1]?"":e),this.authority=h[4]||(h[3]?"":e),this.path=h[5],this.query=h[7]||(h[6]?"":e),this.fragment=h[9]||(h[8]?"":e),this.authority!=e&&(h=this.authority.match(i),this.user=h[3]||e,this.password=h[4]||e,this.host=h[6]||h[7],this.port=h[9]||e)};return n.prototype.toString=function(){return this.uri},e._Url=n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(t){this.name="",this.context={},this.triggerHandler=t.triggerHandler||function(){},e.safeMixin(this,t)},enable:function(){},disable:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{Windows:"Windows",Mac:"Mac",Linux:"Linux",Unspecified:"Unspecified"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(242),i(227),i(228),i(210),i(211),i(217),i(213),i(771),i(223),i(257),i(206),i(225),i(248),i(238),i(231),i(276),i(772),i(317),i(288),i(354),i(446),i(1287),i(1288),i(1044),i(655),i(344),i(355),i(387),i(561),i(1715),i(562),i(773)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O){var R,k=e([I],{animationEnabled:!0,fixParallelDimension:!0,defaultExpandSize:300,expandButtonIdPrefix:"",constructor:function(){this._childInfo=[]},postMixInProperties:function(){this.inherited(arguments),"left"!==this.region&&"right"!==this.region||(this.orientation="vertical"),this.dragOffEdge=A.oppositeRegion(this.region),this._restrictedEdges=this._computerestrictedEdges()},buildRendering:function(){this.inherited(arguments),a.add(this.domNode,"borderBar"),a.add(this.domNode,this.orientation+"Bar"),a.add(this.domNode,this.region+"Bar"),"vertical"===this.orientation&&(c.set(this.domNode,{width:"22px"}),a.add(this.domNode,this.region+"SideBar")),this.own(p(this.ownerDocument,g.press,i.hitch(this,"_handleTouch"))),L.preventDefaultContextMenu(this.domNode),L.setLocaleOnDomNode(this.domNode);var e=s.create("div",{id:this.expandButtonIdPrefix+this.region+"_expandAllButton"});a.add(e,"expandButton"),r.set(e,"title","vertical"===this.orientation?P.expandSidePanel:P.expandBottomPanel),o.setSelectable(e,!1),L.preventFocus(e);var t=i.hitch(this,"_expandAll");p(e,"click",t),p(this.domNode,"dblclick",t),e.tabIndex=-1,this.own(p(e,"keyup",i.hitch(this,"_expandAllButtonKeyUpHandler"))),this.own(p(e,"keydown",i.hitch(this,"_expandAllButtonKeyDownHandler"))),this.own(p(e,"focus",(function(){e.classList.add("expandButtonFocused")}))),this.own(p(e,"blur",(function(){e.classList.remove("expandButtonFocused")}))),this.own(p(this.domNode,"keydown",i.hitch(this,"_keyDownHandler"))),this.setPostNeighbor(e),this._createContextMenu()},startup:function(){if(!this._started){this.inherited(arguments);for(var e=this;e&&!this.selectionManager;)this.selectionManager=e.selectionManager,e=e.getParent()}},acceptLoan:function(e,t,n){var o={text:t.shortTitle||t.title};o.label=o.text,t.description&&(o.title=t.description);var r={properties:t,childLender:e,button:new E(o)};a.add(r.button.domNode,"mwCollapsedPanelButton"),r.button.disarm=i.hitch(r.button,(function(){this.set("disabled",!0)})),r.button.rearm=i.hitch(r.button,(function(){this.set("disabled",!1)})),r.button.childInfo=r,t.setId&&a.add(r.button.domNode,"contextualButton"),L.preventFocus(r.button.domNode),c.set(r.button.domNode,{position:"absolute"}),this._updateTitleBarVisibility(r),this._bindChildProperties(r,t),this._childInfo.push(r),n||this.addButton(r.button,t),r.button.on("change",(function(){r.button.checked?setTimeout((function(){t.set(x.IS_SELECTED,!0)}),150):t.set(x.IS_SELECTED,!1)})),r.properties.widget&&(r.properties.widget.button=r.button),this.own(p(r.button.domNode,"keydown",i.hitch(this,"_buttonKeyDownHandler",r))),this.own(p(r.button.domNode,"keyup",i.hitch(this,"_buttonKeyUpHandler",r))),this.own(p(r.button.domNode,"focus",(function(){r.button.domNode.classList.add("borderBarButtonFocused")}))),this.own(p(r.button.domNode,"blur",(function(){r.button.domNode.classList.remove("borderBarButtonFocused")})));var s=r.properties.watch(x.IS_OPEN,function(e,t,i){i||(s.remove(),this.cancelLoan(r.properties))}.bind(this))},cancelLoan:function(e){var t=this._getIndexFromProperties(e);if(t>=0){var i=this._childInfo[t];i.onTopPane&&this._completeCollapse(i);var n=i.button;delete n.onChange,this.removeButton(i.button,(function(){n.destroyRecursive()}),!0),i.unbindChildProperties(),this._childInfo.splice(t,1)}},removeAll:function(){var e=this.animationEnabled;for(this.animationEnabled=!1,this._isRemovingAll=!0;this._childInfo.length>0;)this.cancelLoan(this._childInfo[0].properties);this._isRemovingAll=!1,this.animationEnabled=e},destroyRecursive:function(){this.removeAll(),this.inherited(arguments)},dragChildIn:function(e,t,i){this.acceptLoan(e,t.properties,!0);var n=this._getIndexFromProperties(t.properties),o=this._childInfo[n];this.dragIn(o.button,o.properties,i||t.index)},collapseAllChildrenImmediately:function(){var e=this;this._animationTimer&&(clearInterval(this._animationTimer),delete this._animationTimer),this._childInfo.forEach((function(t){t.onTopPane&&e._completeCollapse(t),t.animationState&&delete t.animationState,t.properties&&t.properties.widget&&t.properties.widget.sideBarExpandedNavAssociation&&(t.properties.widget.navAssociation=t.properties.widget.sideBarExpandedNavAssociation)})),this._childInfo.forEach((function(e){e.button.set("checked",!1)}))},_bindChildProperties:function(e,t){var i=this,n=[];t.watch&&t.set&&t.get&&(n.push(t.watch(x.TITLE,(function(){i._setTitleFromProperties(e),i._updateTitleBarVisibility(e)}))),n.push(t.watch(x.SHORT_TITLE,(function(){i._setTitleFromProperties(e),i._updateTitleBarVisibility(e)}))),n.push(t.watch(x.DESCRIPTION,(function(t,i,n){e.button.set("title",n)}))),n.push(t.watch(x.IS_SELECTED,(function(t,n,o){i.getParent()&&(e.button.set("checked",o),!o||i._isExpandedOrExpanding(e)||i.selectionManager.shouldBlockRevealChild()?o||i._isCollapsedOrCollapsing(e)||i._collapse(e):i._expand(e))}))),e.unbindChildProperties=function(){n.forEach((function(e){e.remove()})),delete e.unbindChildProperties})},_setTitleFromProperties:function(e){e.button.set("text",e.properties.shortTitle||e.properties.title)},_createPrototypeButton:function(){var e=new E({id:this.id+"prototype",text:"Prototype"});return a.add(e.domNode,"mwCollapsedPanelButton"),e},_updateButtonIndices:function(){this._isRemovingAll||this.inherited(arguments)},_getIndexFromProperties:function(e){var t;for(t=0;t<this._childInfo.length;t++)if(this._childInfo[t].properties===e)return t;return-1},_collapse:function(e){var t,n;if(!this._isCollapsedOrCollapsing(e)){var o=i.hitch(this,"_completeCollapse",e);this.animationEnabled&&L.isAnimationEnabled()?(t=(new Date).valueOf(),e.animationState||(e.animationState={},e.animationState.currentBox=l.getMarginBox(e.onTopPane.domNode)),"vertical"===this.orientation?(n=e.animationState.currentBox.w,e.animationState.initialPosition=e.animationState.currentBox.l,e.animationState.finalPosition=e.animationState.initialPosition+("left"===this.region?-n:n)):(n=e.animationState.currentBox.h,e.animationState.initialPosition=e.animationState.currentBox.t,e.animationState.finalPosition=e.animationState.initialPosition+("top"===this.region?-n:n)),e.animationState.isExpanding=!1,e.animationState.startTime=t,e.animationState.duration=w.computeDuration(Math.abs(e.animationState.finalPosition-e.animationState.initialPosition)),e.animationState.doneHandler=o,this._animationTimer||(this._animationTimer=setInterval(i.hitch(this,"_updateOnTopPositions"),w.UPDATE_INTERVAL))):o()}},_completeCollapse:function(e){L.saveScrollPosition(e.widget,e.properties),this._hideChild(e),this._removeChildFocusOverride(e),e.childLender.returnChild(e.properties,e.widget),delete e.widget,this._updateChildInnerBounds(e)},_expand:function(e){var t,n,o,r="vertical"===this.orientation;if(this._deselectAll(e),!this._isExpandedOrExpanding(e)){e.onTopPane||(e.widget=e.childLender.borrowChild(e.properties),this._overrideChildFocus(e),this._showChild(e),L.restoreScrollPosition(e.widget,e.properties)),t=this._computeExpandedBox(e);var a=i.hitch(this,"_completeExpand",e);this.animationEnabled&&L.isAnimationEnabled()?(o=(new Date).valueOf(),e.animationState?e.animationState.initialPosition=r?e.animationState.currentBox.l:e.animationState.currentBox.t:(e.animationState={},r?(e.animationState.initialPosition=t.l+("left"===this.region?-t.w:t.w),e.animationState.finalPosition=t.l,(n=i.clone(t)).l=e.animationState.initialPosition):(e.animationState.initialPosition=t.t+("top"===this.region?-t.h:t.h),e.animationState.finalPosition=t.t,(n=i.clone(t)).t=e.animationState.initialPosition),this._positionChild(e,n),e.animationState.currentBox=n),e.animationState.isExpanding=!0,e.animationState.startTime=o,e.animationState.duration=w.computeDuration(Math.abs(e.animationState.finalPosition-e.animationState.initialPosition)),e.animationState.doneHandler=a,this._animationTimer||(this._animationTimer=setInterval(i.hitch(this,"_updateOnTopPositions"),w.UPDATE_INTERVAL),this._animationCompleteListener=function(){e&&this._focusChild(e),this.domNode.removeEventListener("animationcomplete",this._animationCompleteListener),delete this._animationCompleteListener}.bind(this),this.domNode.addEventListener("animationcomplete",this._animationCompleteListener))):(this._positionChild(e,t),a())}},_completeExpand:function(e){e.focusPending&&(this._focusChild(e),e.focusPending=!1),this._updateChildInnerBounds(e)},_computeExpandedBox:function(e){var t=l.position(this.domNode);t.l=t.x,t.t=t.y;var i=l.position(e.button.domNode);i.l=i.x,i.t=i.y;var n=e.properties,o={l:t.x,t:t.y,w:n.__recentWidth?n.__recentWidth:n.preferredWidth?n.preferredWidth:400,h:n.__recentHeight?n.__recentHeight:n.preferredHeight?n.preferredHeight:400};return"vertical"===this.orientation?("left"===this.region?o.l+=t.w:o.l-=o.w,this.fixParallelDimension?o.h=t.h:(o.h>t.h&&(o.h=t.h),o.t=i.t+(i.h-o.h)/2,o.t<t.t?o.t=t.t:o.t+o.h>t.t+t.h&&(o.t=t.t+t.h-o.h))):("top"===this.region?o.t+=t.h:o.t-=o.h,this.fixParallelDimension?o.w=t.w:(o.w>t.w&&(o.w=t.w),o.l=i.l+(i.w-o.w)/2,o.l<t.l?o.l=t.l:o.l+o.w>t.l+t.w&&(o.l=t.l+t.w-o.w))),o},_computeClipBox:function(e){var t,i,n=l.position(this.domNode);switch(this.region){case"left":i=n.x+n.w,e.l<i&&(t={l:i-e.l,t:0,w:e.w,h:e.h});break;case"right":i=n.x-e.l,e.w>i&&(t={l:0,t:0,w:i,h:e.h});break;case"top":i=n.y+n.h,e.t<i&&(t={l:0,t:i-e.t,w:e.w,h:e.h});break;case"bottom":i=n.y-e.t,e.h>i&&(t={l:0,t:0,w:e.w,h:i})}return t},_expandAll:function(){this.collapseAllChildrenImmediately(),this.emit(N.EXPAND_ALL)},_overrideChildFocus:function(e){var t=this;e.originalFocus=e.widget.focus,e.widget.focus=function(){e.animationState?e.focusPending=!0:t._focusChild(e)}},_removeChildFocusOverride:function(e){e.focusPending=!1,e.originalFocus?e.widget.focus=e.originalFocus:delete e.widget.focus},_focusChild:function(e){!this.selectionManager||this.selectionManager.shouldBlockFocus()||(e&&e.widget&&e.widget.refocus?e.widget.refocus():e&&e.originalFocus?i.hitch(e.widget,e.originalFocus)():e&&e.widget&&m.focus(e.widget.domNode))},_showChild:function(e){var t=e.widget.id+"OnTopPane";e.onTopPane=new M({id:t,contentWidget:e.widget,contentProperties:e.properties,showTitleBar:e.showTitleBar}),e.onTopPane.parentBar=this,e.onTopPane.placeAt(n.body()),e.onTopPane.startup(),c.set(e.onTopPane.domNode,"position","absolute"),a.add(e.onTopPane.domNode,"onTopPane"),b.enable({widget:e.onTopPane,bindingNode:this.getParent().domNode}),this._hideIrrelevantResizeHandles(e.onTopPane),this._blockSelectionDuringResize(e.onTopPane),e.onTopPane.on("resize",(function(t){e.onTopPane.resize(t.dimension),e.properties.__recentWidth=t.dimension.w,e.properties.__recentHeight=t.dimension.h})),e.properties.set(x.IS_SHOWING,!0),e.button&&e.button.domNode&&(e.button.domNode.tabIndex=-1,e.properties&&e.properties.widget&&(e.properties.widget.navAssociation=e.button.domNode))},_hideChild:function(e){n.body().removeChild(e.onTopPane.domNode),e.onTopPane.destroy(),delete e.onTopPane,e.properties.set(x.IS_SHOWING,!1)},_positionChild:function(e,t){var i;e.onTopPane&&(i=this._computeClipBox(t),c.set(e.onTopPane.domNode,i?L.formatClipStyle(i):{clip:"auto"}),e.onTopPane.resize(t))},_isExpandedOrExpanding:function(e){return e.onTopPane&&!this._isCollapsing(e)},_isCollapsedOrCollapsing:function(e){return!e.onTopPane||this._isCollapsing(e)},_isExpanding:function(e){return e.animationState&&e.animationState.isExpanding},_isCollapsing:function(e){return e.animationState&&!e.animationState.isExpanding},_updateOnTopPositions:function(){var e,t,i,n,o=!1,r=(new Date).valueOf(),a=this,s="vertical"===this.orientation;if(this._childInfo.forEach((function(l){l.animationState&&(e=l.animationState,t=r-e.startTime,i=e.currentBox,t<e.duration?(n=e.initialPosition+(e.finalPosition-e.initialPosition)*d.cubicInOut(t/e.duration),s?i.l=n:i.t=n,o=!0):(s?i.l=e.finalPosition:i.t=e.finalPosition,e.doneHandler&&e.doneHandler(),delete l.animationState,a._isExpandedOrExpanding(l)&&l.widget.focus()),a._positionChild(l,i))})),!o){clearInterval(this._animationTimer),delete this._animationTimer;var l=new CustomEvent("animationcomplete");this.domNode.dispatchEvent(l)}},_updateTitleBarVisibility:function(e){var t=!(!e.properties.shortTitle||e.properties.shortTitle===e.properties.title);t!==e.showTitleBar&&(e.showTitleBar=t,e.button&&(t?a.remove(e.button.domNode,"mwSurrogateTitle"):a.add(e.button.domNode,"mwSurrogateTitle")))},_handleTouch:function(e){if(!L.isPopupShowing()){var i=this._getExpandedOrExpandingInfo();!i||o.isDescendant(e.target,i.onTopPane.domNode)||o.isDescendant(e.target,this.domNode)||R&&o.isDescendant(e.target,R)||(this._deselectAll(),t.stop(e))}},_beginButtonDrag:function(e,i){this.inherited(arguments),t.stop(i)},_getExpandedOrExpandingInfo:function(){var e,t;for(e=0;e<this._childInfo.length;e++)if(t=this._childInfo[e],this._isExpandedOrExpanding(t))return t;return null},_deselectAll:function(e){var t=this;this._childInfo.forEach((function(i){i!==e&&t._isExpandedOrExpanding(i)&&i.properties.set(x.IS_SELECTED,!1)}))},_emitDragOffEvent:function(e){var t=this._getIndexFromProperties(e.properties),i=this._childInfo[t];e.widget=i.widget,e.box=l.getMarginBox(this.domNode),"horizontal"===this.orientation?e.box.h=i.properties.__recentHeight||this.defaultExpandSize:e.box.w=i.properties.__recentWidth||this.defaultExpandSize,this.emit(N.DRAG_OUT,e)},resize:function(){var e=this;this.inherited(arguments),this._childInfo.forEach((function(t){t.onTopPane&&e._positionChild(t,e._computeExpandedBox(t)),e._updateChildInnerBounds(t)}))},_updateChildInnerBounds:function(e){e.properties&&e.properties.updateInnerBounds&&e.properties.updateInnerBounds()},_measureButton:function(e){if("horizontal"===this.orientation)return this.inherited(arguments);var t=this._getPrototypeButton();t.set("text",e.button.get("text"));var i=l.getMarginBox(t.domNode);return i.h=i.w,i.w=22,i},_transformClipBox:function(e,t){if("vertical"===this.orientation){e.t=e.l,e.l=t.h-e.h;var i=e.w;e.w=e.h,e.h=i}},_hideIrrelevantResizeHandles:function(e){var t={};this._restrictedEdges.forEach((function(e){switch(e){case"north":t[".mwResizable-n"]=!0,t[".mwResizable-ne"]=!0,t[".mwResizable-nw"]=!0;break;case"south":t[".mwResizable-s"]=!0,t[".mwResizable-se"]=!0,t[".mwResizable-sw"]=!0;break;case"east":t[".mwResizable-e"]=!0,t[".mwResizable-ne"]=!0,t[".mwResizable-se"]=!0;break;case"west":t[".mwResizable-w"]=!0,t[".mwResizable-nw"]=!0,t[".mwResizable-sw"]=!0}})),Object.keys(t).forEach((function(t){var i=f(t,e.domNode)[0];c.set(i,"display","none")}))},_computerestrictedEdges:function(){var e=[];return"vertical"===this.orientation?(e.push("left"===this.region?"west":"east"),this.fixParallelDimension&&(e.push("north"),e.push("south"))):(e.push("top"===this.region?"north":"south"),this.fixParallelDimension&&(e.push("east"),e.push("west"))),e},_blockSelectionDuringResize:function(e){if(e._resizeHandlers){var t=function(e){D.blockUntilRelease(e)};e._resizeHandlers.forEach((function(e){p(e,g.press,i.partial(t,e))}))}},getChildFromIndex:function(e){for(var t=0;t<this._childInfo.length;t++)if(this._childInfo[t].properties&&this._childInfo[t].properties.index===e)return this._childInfo[t];return null},getFirstChild:function(){return this.getChildFromIndex(0)},nextChild:function(e,t){return this._findNextChildBasedOnDirection(e,t,"forward")},getLastChild:function(){return this.getChildFromIndex(this._childInfo.length-1)},previousChild:function(e,t){return this._findNextChildBasedOnDirection(e,t,"backward")},_findNextChildBasedOnDirection:function(e,t,i){if(t)return null;var n,o;if(!e)return(n="forward"===i?this.getFirstChild():this.getLastChild())&&n.properties&&n.properties.widget?n.properties.widget:n;for(var r=0;r<this._childInfo.length;r++)for(var a=e.getChildren(),s=0;s<a.length;s++)if(this._childInfo[r].widget===a[s]&&this._childInfo[r].properties&&(o="forward"===i?this.getChildFromIndex(this._childInfo[r].properties.index+1):this.getChildFromIndex(this._childInfo[r].properties.index-1))&&o.properties&&o.properties.widget)return o.properties.widget;return null},_expandAllButtonKeyUpHandler:function(e){e.keyCode===u.SPACE&&(e.preventDefault(),this._expandBorderBar())},_expandAllButtonKeyDownHandler:function(e){e.keyCode===u.ENTER&&this._expandBorderBar()},_expandBorderBar:function(){var e=this;this._expandAll(),setTimeout((function(){e.collapseAllButton&&(e.collapseAllButton.tabIndex=-1,e.collapseAllButton.focus())}),400)},_keyDownHandler:function(e){var t=e.keyCode;switch(!0){case t===u.LEFT_ARROW:"horizontal"===this.orientation&&this._handleNavigation("previous");break;case t===u.UP_ARROW:"vertical"===this.orientation&&this._handleNavigation("previous");break;case t===u.RIGHT_ARROW:"horizontal"===this.orientation&&this._handleNavigation("next");break;case t===u.DOWN_ARROW:"vertical"===this.orientation&&this._handleNavigation("next")}},_handleNavigation:function(e){var t=[];this._buttonInfo.forEach((function(e){t.push(e.button.domNode)})),this.getPostNeighbor&&t.push(this.getPostNeighbor());var i=document.activeElement,n=t.indexOf(i);switch(n!==t.length-1&&this._childInfo[n]&&this._childInfo[n].properties&&this._childInfo[n].properties.get(x.IS_SHOWING)&&this.selectionManager[O.SELECTED_CHILD]&&this.selectionManager.setSelected(this.selectionManager[O.SELECTED_CHILD],!1,!0),e){case"next":n>=0&&n<t.length-1?t[n+1].focus():t[0].focus();break;case"previous":n>0&&n<t.length?t[n-1].focus():t[t.length-1].focus()}},_buttonKeyDownHandler:function(e,t){var i=this;t.keyCode===u.ESCAPE&&e.properties.get(x.IS_SHOWING)&&e.properties.get(x.IS_SELECTED)&&(this.selectionManager.blockSuccession(),this._collapse(e),setTimeout((function(){i.selectionManager.unblockSuccession()}),800)),t.keyCode===u.ENTER&&this._expandCollapsePanel(e),t.keyCode===u.TAB&&(t.preventDefault(),e.properties&&e.properties.widget&&e.properties.get(x.IS_SHOWING)&&(e.properties.widget.focus?e.properties.widget.focus():e.properties.widget.domNode&&e.properties.widget.domNode.focus()))},_buttonKeyUpHandler:function(e,t){t.keyCode===u.SPACE&&(t.preventDefault(),this._expandCollapsePanel(e))},_expandCollapsePanel:function(e){var t=this;e.button.domNode&&(e.button.domNode.tabIndex=-1,e.button.domNode.focus()),e.properties.get(x.IS_SHOWING)||e.properties.get(x.IS_SELECTED)?this.selectionManager[O.SELECTED_CHILD]&&this.selectionManager.setSelected(this.selectionManager[O.SELECTED_CHILD],!1,!0):(this.selectionManager.blockFocus(),setTimeout((function(){e.properties.get(x.IS_SHOWING)&&e.properties.get(x.IS_SELECTED)&&t.selectionManager.unblockFocus()}),800))},_createContextMenu:function(){var e=this,t=new y({id:this.id+"Menu",targetNodes:[this.domNode,"#"+this.id+" *"]});this.own(t),t.willOpenCallback=function(i){var n=_.getEnclosingWidget(i.target).childInfo;e._populateMenu(t,n)}},_populateMenu:function(e,t){var n,o=this;if(this._clearMenu(e),t){var r=t.properties;r.actions&&(S._addMenuItems(e,r.actions),e.addChild(new T)),r.closable&&(n=new C({text:i.replace(P.closeSomething,{placeholder:r.shortTitle||r.title}),tag:"close"}),p(n.domNode,"click",(function(){if(r.set(x.IS_OPEN,!1),t&&t.childLender&&t.childLender.getChildren&&t.properties){var e=t.childLender.getChildren().filter((function(e){if(t.properties.childId===e.childId)return e}))[0];e&&o.emit(N.CLOSE,{widget:e,properties:r})}})),e.addChild(n))}n=new C({text:this._getExpandAllItemText(),tag:"expandAll"}),p(n.domNode,"click",(function(){o._expandAll()})),e.addChild(n)},_clearMenu:function(e){e.getChildren().forEach((function(e){e.destroyRecursive()}))},_getExpandAllItemText:function(){return"left"===this.region||"right"===this.region?P.expandSidePanel:"bottom"===this.region?P.expandBottomPanel:P.expandTopPanel}});return k.setCloseClickExclusion=function(e){R=e},k}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(217)],o=i.dj.d(n,(function(e,t,i){return e(null,{_focusOnOpen:!0,_matchMinWidthToInvokingWidget:!0,onOpen:function(e){this._defaultContextMenuBlocker&&this.domNode.addEventListener("contextmenu",this._defaultContextMenuBlocker,!0),this._correctWrapperBorder(),setTimeout(t.hitch(this,(function(){if(this._focusOnOpen&&this.focus){var e=window.pageXOffset,t=window.pageYOffset;this.focus(),window.scrollTo(e,t)}})),0),this._emitOpenEvent(),this._updateLayout(e),this.domNode.parentElement&&(this.domNode.parentElement.removeAttribute("role"),this.domNode.parentElement.removeAttribute("aria-label"))},_correctWrapperBorder:function(){var e=this.domNode.parentElement;e&&(e.style.border="")},_updateLayout:function(e){this._removeAllWidths(),this._matchMinWidthToInvokingWidget&&this._updateWidth(),this._updateHeight(e),this._updatePosition(e)},_removeAllWidths:function(){this.domNode.style.width="",this.getChildren().forEach((function(e){e.domNode.style.width=""}))},_updateWidth:function(){var e=this.domNode.offsetWidth,t=0;this.domNode.parentElement&&(t=i.getMarginBox(this.domNode.parentElement).w-i.getMarginBox(this.domNode).w,e=this.domNode.parentElement.offsetWidth),this._invokingWidget&&e<this._invokingWidget.domNode.offsetWidth&&(this.domNode.style.width=this._invokingWidget.domNode.offsetWidth-t+"px")},_updateHeight:function(e){var t,i;if(this.domNode&&this.domNode.parentElement&&this.domNode.parentElement.classList&&this.domNode.parentElement.classList.contains("dijitPopup")){i=(t=this.domNode).parentElement;var n=window.getComputedStyle(t);e&&parseInt(n.height)>e.h&&(t.style.height=e.h+"px"),i.style.overflow="hidden",i.style.overflowX="hidden",i.style.overflowY="hidden"}},_updatePosition:function(e){var t;e&&"L"===e.corner.charAt(1)&&"R"===e.aroundCorner.charAt(1)&&e.overflow&&(t=(t=parseInt(this.domNode.parentElement.style.left)-e.overflow)<0?0:t,this.domNode.parentElement.style.left=t+"px")},_setFocusOnOpenAttr:function(e){if("boolean"!=typeof e)throw new Error("'focusOnOpen' property expects a boolean value.");this._set("_focusOnOpen",e)},_emitOpenEvent:function(){this.emit("open",{})}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(231),i(2846)],o=i.dj.d(n,(function(e,t){var i={findParentWidget:function(i,n){var o,r=null;for(i instanceof HTMLElement&&(i=e.getEnclosingWidget(i));i;){if(i.get("type")===n){r=i;break}if(t.containsClass(i.domNode,n)){r=i;break}i=(o=t.getAttr(i.domNode.parentNode,"dijitpopupparent"))?e.byId(o):i.getParent()}return r},isMenuChild:function(e){return null!=t.findParentNode(e,"dijitPopup")},getParentMenu:function(i){var n=t.findParentNode(i,"dijitPopup");return n?e.getEnclosingWidget(n.children[0]):null},isInvokingWidget:function(e,t){return t?i.getMenuWidget(e)===t:null!=i.getMenuWidget(e)},getInvokingWidget:function(i){if(i._invokingWidget)return i._invokingWidget;var n=t.findParentNode(i,"dijitPopup");return n?e.getEnclosingWidget(document.getElementById(n.getAttribute("dijitpopupparent"))):null},getMenuWidget:function(e){return e.menu||e.dropDown},isMenuOpen:function(i){if(null==i)return!1;var n,o=i;return i.domNode&&i.domNode.hasAttribute("data-composite-child")&&(n=document.getElementById(i.domNode.getAttribute("data-composite-primary-id")),o=e.getEnclosingWidget(n)),o&&o.dropDown&&(t.containsClass(o.domNode,"dijitOpened")||t.containsClass(o.domNode,"dijitHasDropDownOpen"))||o&&o.isMenuOpen&&o.isMenuOpen()||o&&o.domNode&&t.findParentNode(o,"dijitPopup")&&(o.getParent&&o.getParent()&&o.getParent().isMenuOpen&&o.getParent().isMenuOpen()||"none"!==t.getStyle(t.findParentNode(o,"dijitPopup"),"display"))},isDescendant:function(n,o){if(null==n)return!1;if(n.domNode&&(n=n.domNode),null==o)return!1;o.domNode&&(o=o.domNode);return t.isDescendantOrInLaw(n,o,(function(t){var n,o=e.getEnclosingWidget(t);return o&&i.isMenuChild(o)&&i.isMenuOpen(o)&&(n=i.getInvokingWidget(o))&&n.domNode?n.domNode:null}),!0)},getPrimaryWidget:function(i){var n;if(i.domNode)n=i.domNode;else{if(!(i instanceof HTMLElement))throw new Error("The input value must be a widget or HTML Element.");n=i}return n&&n.hasAttribute("data-composite-child")?e.getEnclosingWidget(t.getById(n.getAttribute("data-composite-primary-id"))):i}};return i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(352),i(871)],o=i.dj.d(n,(function(e,t,i){var n=e(null,{_setDescriptionAttr:function(e){this.inherited(arguments),""!==e?this.textNode.classList.add("mwBlueText"):this.textNode.classList.remove("mwBlueText")},_setShowDescriptionAttr:function(e){this.inherited(arguments),e?this.textNode.classList.add("mwBlueText"):this.textNode.classList.remove("mwBlueText")},postCreate:function(){this.inherited(arguments),(this.get("showDescription")&&""===this.get("description")||!this.get("showDescription")&&""!==this.get("description"))&&this.textNode.classList.remove("mwBlueText")}});return n._dependencies=[{mixin:t,orderDependent:!0},{mixin:i,orderDependent:!0}],n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(353)],o=i.dj.d(n,(function(e,t){var i=e(null,{_getTextForDOM:function(e){return e=(e=this.inherited(arguments)).replace(/\n/g," ")}});return i._dependencies=[{mixin:t,orderDependent:!0}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(654)],o=i.dj.d(n,(function(e,t,i){var n=e(null,{hasDynamicMenu:!1,_setHasDynamicMenuAttr:function(e){this._set("hasDynamicMenu",e)},postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwHasDynamicMenuMixin"),this.set("hasDynamicMenu",this.get("hasDynamicMenu"))},openMenu:function(){var e=this.get("menu");e&&e.focusNode&&e.focusNode.setAttribute("aria-labelledby",this.get("id")),this.get("hasDynamicMenu")?this._shouldDropDownClickEventBeFired(e)&&this.emit("dropdownclick",{}):this._showMenu()},_shouldDropDownClickEventBeFired:function(e){return!(e&&e.isMenuOpen&&e.isMenuOpen()&&e._invokingWidget&&e._invokingWidget.get("id")===this.get("id"))},showMenu:function(){this._showMenu();var e=this.menu.on("updatelayout",t.hitch(this.menu,(function(){this._updateLayout&&this._updateLayout()}))),i=this.menu.on("close",(function(){e.remove(),i.remove()}))}});return n._dependencies=[{mixin:i,orderDependent:!0}],n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(227),i(228),i(210),i(211),i(217),i(213),i(771),i(222),i(257),i(206),i(248),i(384),i(238),i(277),i(386),i(317),i(288),i(1288),i(655),i(344),i(355),i(387),i(561)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w){var I=e([_,d],{orientation:"horizontal",reorderingEnabled:!0,distributeButtons:!1,shrinkWidthToFit:!1,shrinkHeightToFit:!1,minimumButtonWidth:50,minimumButtonHeight:0,setGap:0,setFacet:"setId",displayToolTipsWhenTruncated:!1,animationEnabled:!0,entryExitEdge:null,dragOffEnabled:!1,dragOffEdge:null,constructor:function(){this._buttonInfo=[]},buildRendering:function(){this.inherited(arguments),r.add(this.domNode,"buttonBar"),this._previousButton=a.create("div",{id:this.id+"_previousButton"},this.domNode),n.setSelectable(this._previousButton,!1),l.set(this._previousButton,{position:"absolute"}),S.preventFocus(this._previousButton,!0),l.set(this._previousButton,{display:"none"}),h(this._previousButton,p.press,i.hitch(this,"_handleScrollButtonPress")),this._nextButton=a.create("div",{id:this.id+"_nextButton"},this.domNode),n.setSelectable(this._nextButton,!1),l.set(this._nextButton,{position:"absolute"}),S.preventFocus(this._nextButton,!0),l.set(this._nextButton,{display:"none"}),h(this._nextButton,p.press,i.hitch(this,"_handleScrollButtonPress"))},startup:function(){this._started||(this.inherited(arguments),this._updateScrollButtonDimension("width"),this._updateScrollButtonDimension("height"),this._updateScrollButtonIcons())},_updateScrollButtonDimension:function(e){var t="height"===e?"scrollUpButton":"scrollLeftButton",i="height"===e?"scrollLeftButton":"scrollUpButton",n=this._previousButton.classList.contains(t),o=this._previousButton.classList.contains(i);o&&this._previousButton.classList.remove(i),n||this._previousButton.classList.add(t),this["_scrollButton"+("height"===e?"Height":"Width")]=Math.round(l.get(this._previousButton,e)),n||this._previousButton.classList.remove(t),o&&this._previousButton.classList.add(i)},destroy:function(){this._abortAnimation(),this.inherited(arguments)},addButton:function(e,t,n,r,a,c){var d,u=this,f={button:e,properties:t,targetBox:{l:0,t:0,w:0,h:0},currentBox:{l:0,t:0,w:0,h:0},isShowing:!0,addPending:!0,hasToolTip:!!o.get(e.domNode,"title")};(l.set(e.domNode,{position:"absolute"}),this._bindButtonProperties(f,t),void 0===r&&(r=t.get(T.INDEX)),null==a)&&(a=this._indexOfFirstInSet(this._setIdFromProperties(t)));a<0&&(a=this._buttonInfo.length),void 0===r||r<0||r>this._buttonInfo.length?(r=this._indexOfLastInSet(this._setIdFromProperties(t)))<0?r=this._buttonInfo.length:r+=1:r+=a,void 0!==r&&r>=0&&r<this._buttonInfo.length?this._buttonInfo.splice(r,0,f):(r=this._buttonInfo.length,this._buttonInfo.push(f)),n&&(this._justAddedIndex=r),f.properties.set(T.INDEX,r-a),r!==this._indexOfLastInSet(this._setIdFromProperties(t))&&this._updateButtonIndices(),f.connection=h(e.domNode,p.press,i.hitch(this,"_beginButtonDrag",f)),void 0===c&&(c=!0),this._addPending||(this._abortAnimation(),this._addPending=!0,d=function(){var e,t,i;if(u._addPending=!1,u.domNode)if(u._started&&!c&&u.animationEnabled&&S.isAnimationEnabled()&&u.entryExitEdge){for(i=(new Date).valueOf(),u._computeLayout(r),e=0;e<u._buttonInfo.length;e++){if((t=u._buttonInfo[e]).addPending){switch(t.addPending=!1,C.copyBox(t.targetBox,t.currentBox),u.entryExitEdge){case"left":t.currentBox.l-=t.currentBox.w;break;case"right":t.currentBox.l+=t.currentBox.w;break;case"top":t.currentBox.t-=t.currentBox.h;break;case"bottom":t.currentBox.t+=t.currentBox.h}l.set(t.button.domNode,{visibility:"hidden"}),t.isShowing=!1,s.setMarginBox(t.button.domNode,t.currentBox)}u._setupAnimation(t,i)}u._plusButtonInfo&&u._setupAnimation(u._plusButtonInfo,i),u._animationDoneResponse=function(){u.layout()},u._startAnimation()}else for(u.layout(),e=0;e<u._buttonInfo.length;e++)(t=u._buttonInfo[e]).addPending&&(t.addPending=!1,l.set(t.button.domNode,{visibility:"visible"}))}),l.set(e.domNode,{visibility:"hidden"}),this.addChild(e),d&&(!c&&this.animationEnabled&&S.isAnimationEnabled()?setTimeout(d,0):d())},removeButton:function(e,t,i){var n,o=this,r=this._indexFromButton(e),a=this._buttonInfo[r];a.unbindButtonProperties&&a.unbindButtonProperties(),a.connection.remove(),a.removePending=!0,a.removeCallback=t,this._removePending||(this._abortAnimation(),this._removePending=!0,n=function(){if(o.domNode){var e,t,n,r=[];for(e=0;e<o._buttonInfo.length;e++)(t=o._buttonInfo[e]).removePending||r.push(t);if(o._animationDoneResponse=function(){for(r=[],e=0;e<o._buttonInfo.length;e++)(t=o._buttonInfo[e]).removePending?(o.removeChild(t.button),t.removeCallback&&t.removeCallback()):r.push(t);o._buttonInfo=r,o._removePending=!1,o._updateButtonIndices(),o.layout()},void 0===i&&(i=!0),o._started&&!i&&o.animationEnabled&&S.isAnimationEnabled()&&o.entryExitEdge){var a=o._buttonInfo;for(o._buttonInfo=r,o._computeLayout(),o._buttonInfo=a,n=(new Date).valueOf(),e=0;e<o._buttonInfo.length;e++){if((t=o._buttonInfo[e]).removePending)switch(o.entryExitEdge){case"left":t.targetBox.l-=t.targetBox.w;break;case"right":t.targetBox.l+=t.targetBox.w;break;case"top":t.targetBox.t-=t.targetBox.h;break;case"bottom":t.targetBox.t+=t.targetBox.h}o._setupAnimation(t,n)}o._plusButtonInfo&&o._setupAnimation(o._plusButtonInfo,n),o._startAnimation()}else o._animationDoneResponse(),delete o._animationDoneResponse}},!i&&this.animationEnabled&&S.isAnimationEnabled()?setTimeout(n,0):n())},getButtons:function(){var e,t,i=[];for(e=0;e<this._buttonInfo.length;e++)(t=this._buttonInfo[e]).removePending||i.push(t.button);return i},getButtonsInSet:function(e){var t,i,n=[],o=this._indexOfFirstInSet(e),r=this._indexOfLastInSet(e);if(o>=0)for(t=o;t<=r;t++)(i=this._buttonInfo[t]).removePending||n.push(i.button);return n},setPlusButton:function(e){this._plusButtonInfo&&(this.removeChild(this._plusButtonInfo.button),this._plusButtonInfo.button.destroyRecursive(),delete this._plusButtonInfo),e&&(this._plusButtonInfo={button:e,targetBox:{l:0,t:0,w:0,h:0},currentBox:{l:0,t:0,w:0,h:0},isShowing:!0},l.set(e.domNode,{position:"absolute"}),e.domNode.addEventListener("focus",(function(){e.domNode.classList.add("tabPlusButtonFocused")})),e.domNode.addEventListener("blur",(function(){e.domNode.classList.remove("tabPlusButtonFocused")})),e.domNode.tabIndex=-1,this.addChild(e)),this.layout()},getPlusButton:function(){return this._plusButtonInfo?this._plusButtonInfo.button:null},setPreNeighbor:function(e){this._preNeighbor!==e&&(this._preNeighbor&&(S.removeFromParent(this._preNeighbor),delete this._preNeighborBox,this.domNode.classList.remove("buttonBar-hasPreNeighbor")),this._preNeighbor=e,e&&(e.style.position="absolute",this.domNode.classList.add("buttonBar-hasPreNeighbor"),this.domNode.appendChild(e)),this.layout())},getPreNeighbor:function(){return this._preNeighbor},setPostNeighbor:function(e){this._postNeighbor!==e&&(this._postNeighbor&&(S.removeFromParent(this._postNeighbor),delete this._postNeighborBox),this._postNeighbor=e,e&&(l.set(e,{position:"absolute"}),a.place(e,this.domNode)))},getPostNeighbor:function(){return this._postNeighbor},setFiller:function(e){e!==this._fillerWidget&&(this._fillerWidget&&(this.removeChild(this._fillerWidget),l.set(this._fillerWidget.domNode,{top:"auto",left:"auto",position:"static",width:""}),delete this._fillerWidget),e&&(l.set(e.domNode,{position:"absolute"}),this._fillerWidget=e,this.addChild(e)),this.layout())},dragIn:function(e,t,i){var n,o,r,a,l,c,d=typeof i;if("number"===d)n=i;else for(o=s.position(this.domNode),r=i.x-o.x,a=i.y-o.y,n=0;n<this._buttonInfo.length;n++)if(l=this._buttonInfo[n].currentBox,"horizontal"===this.orientation){if(r<l.l+l.w/2)break}else if(a<l.t+l.h/2)break;this.addButton(e,t,!1,n,void 0,!0),"number"!==d&&("vertical"===this.orientation||o.h>0)&&(c=this._buttonInfo[this._indexFromButton(e)],r=o.x+c.currentBox.l+c.currentBox.w/2,a=o.y+c.currentBox.t+c.currentBox.h/2,this._beginButtonDragAtPoint(c,r,a),this._buttonDragInfo.hasOrderChanged=!0,this._continueButtonDrag({pageX:i.x,pageY:i.y}))},_bindButtonProperties:function(e,t){var i,n,o,r,a=this,s=function(){delete e.preferredSize,a.layout()};i=e.button.watch("label",s),n=e.button.watch("text",s),o=e.button.watch("checked",(function(t,i,n){n&&a._scrollIntoView(a._buttonInfo.indexOf(e))})),r=t.watch(T.INDEX,(function(t,i,n){if(!a._isUpdatingIndices&&i!==n&&i===a._buttonInfo.indexOf(e)&&n<a._buttonInfo.length){var o=a._setIdFromProperties(e.properties),r=o?a._indexOfFirstInSet(o):0;a._changeButtonIndices(i+r,n+r,1),a.layout()}})),e.unbindButtonProperties=function(){i.unwatch(),n.unwatch(),o.unwatch(),r.unwatch()}},_indexFromButton:function(e){var t;for(t=0;t<this._buttonInfo.length;t++)if(this._buttonInfo[t].button===e)return t;return-1},_indexFromProperties:function(e){var t;for(t=0;t<this._buttonInfo.length;t++)if(this._buttonInfo[t].properties===e)return t;return-1},_setIdFromProperties:function(e){return e[this.setFacet]},_indexOfFirstInSet:function(e){var t;for(t=0;t<this._buttonInfo.length&&this._setIdFromProperties(this._buttonInfo[t].properties)!==e;t++);return t>=this._buttonInfo.length?-1:t},_indexOfLastInSet:function(e){var t;for(t=this._buttonInfo.length-1;t>=0&&this._setIdFromProperties(this._buttonInfo[t].properties)!==e;t--);return t},_getSetMemberCount:function(e){var t=this._indexOfFirstInSet(e);return t<0?0:this._indexOfLastInSet(e)-t+1},resize:function(){this.computedStyle||(this.computedStyle=l.getComputedStyle(this.domNode)),this._clearButtonClipping(),this.inherited(arguments)},layout:function(){var e;if(!(!this.domNode||this._buttonDragInfo&&this._buttonDragInfo.hasMoved||this._addPending||this._removePending)&&(void 0!==this._justAddedIndex?(e=this._justAddedIndex,delete this._justAddedIndex):e=this._getCheckedIndex(),this._computeLayout(e))){var t,i;for(t=0;t<this._buttonInfo.length;t++)i=this._buttonInfo[t],s.setMarginBox(i.button.domNode,i.targetBox),C.copyBox(i.targetBox,i.currentBox),this._updateToolTip(i);s.setMarginBox(this._previousButton,this._previousButtonBox),s.setMarginBox(this._nextButton,this._nextButtonBox),this._plusButtonInfo&&(s.setMarginBox(this._plusButtonInfo.button.domNode,this._plusButtonInfo.targetBox),C.copyBox(this._plusButtonInfo.targetBox,this._plusButtonInfo.currentBox)),this._preNeighbor&&s.setMarginBox(this._preNeighbor,this._preNeighborBox),this._postNeighbor&&s.setMarginBox(this._postNeighbor,this._postNeighborBox),this._fillerWidget&&(this._fillerWidget.resize?this._fillerWidget.resize(this._fillerBox):s.setMarginBox(this._fillerWidget.domNode,this._fillerBox)),this._updateScrollButtonVisibility(),this._updateButtonVisibility()}},_updateToolTip:function(e){if(this.displayToolTipsWhenTruncated&&!e.hasToolTip){var t=this._isTruncated(e)?e.button.get("label"):null;t!==o.get(e.button.domNode,"title")&&(t?o.set(e.button.domNode,"title",t):o.remove(e.button.domNode,"title",t))}},_isTruncated:function(e){return"horizontal"===this.orientation&&e.currentBox.w<e.preferredSize.w||"vertical"===this.orientation&&e.currentBox.h<e.preferredSize.h},getPreferredSize:function(){var e,t,i,n,o="horizontal"===this.orientation,r=this._getPlusButtonSize(),a=this._getPreNeighborSize(),l=this._getPostNeighborSize(),c={w:r.w,h:r.h};for(o?(c.w+=a.w,c.w+=l.w):(c.h+=a.h,c.h+=l.h),this._buttonInfo.length||o&&(n=this._getPrototypeButton())&&(n.set("label","Prototype"),(i=s.getMarginBox(n.domNode)).h>c.h&&(c.h=i.h)),e=0;e<this._buttonInfo.length;e++)t=this._buttonInfo[e],i=this._getButtonSize(t),o?(c.w+=i.w,i.h>c.h&&(c.h=i.h)):(c.h+=i.h,i.w>c.w&&(c.w=i.w));return c},_computeLayout:function(e){this.computedStyle||(this.computedStyle=l.getComputedStyle(this.domNode));var t,i,n,o,r,a,c,d,u,h,p,f,g,m,_,v,b=s.getMarginBox(this.domNode,this.computedStyle);if(!b||0===b.h&&0===b.w)return!1;b.l=0,b.t=0;var y,C,E,S,w,I=0,A=0,x=this._buttonInfo.length,N=0;for(y=0;y<x;y++)C=this._buttonInfo[y],E=this._getButtonSize(C),C.targetBox.w=E.w,C.targetBox.h=E.h,C.targetBox.l=0,C.targetBox.t=0,C.preGap=0,S=this._setIdFromProperties(C.properties),y>0&&S!==w&&(C.preGap=this.setGap,N+=this.setGap),w=S;if(this._getPlusButtonSize(),this._getPreNeighborSize(),this._getPostNeighborSize(),"horizontal"===this.orientation){if(t=b.w,this._plusButtonInfo&&(t-=this._plusButtonInfo.preferredSize.w),this._postNeighbor&&(t-=this._postNeighborBox.w,this._postNeighborBox.l=b.w-this._postNeighborBox.w,b.w-=this._postNeighborBox.w),this._preNeighbor&&(t-=this._preNeighborBox.w,I+=this._preNeighborBox.w,this._preNeighborBox.h=b.h,b.w-=this._preNeighborBox.w,b.l+=this._preNeighborBox.w),this.distributeButtons&&x>0)for(_=Math.max(t/x,this.minimumButtonWidth),y=0;y<x;y++)this._buttonInfo[y].targetBox.w=_;for(n=N,r=0,y=0;y<x;y++)n+=(C=this._buttonInfo[y]).targetBox.w,C.targetBox.h=b.h,C.targetBox.w>this.minimumButtonWidth&&(r+=C.targetBox.w-this.minimumButtonWidth);if(n>t)for(a=n-t,y=0;y<x;y++)C=this._buttonInfo[y],(this.shrinkWidthToFit||C.properties.get(T.TITLE_SHORTENING_ALLOWED))&&C.targetBox.w>this.minimumButtonWidth&&(d=a*(C.targetBox.w-this.minimumButtonWidth)/r+1,u=Math.max(C.targetBox.w-d,this.minimumButtonWidth),n-=C.targetBox.w-u,C.targetBox.w=u);if(n>t){if(g={low:0,high:x-1},I+=this._scrollButtonWidth,t-=2*this._scrollButtonWidth,this._showingRange){for(m=this._showingRange.high,e>=0&&e>m&&(m=e);g.high>m&&n>t;g.high--)n-=p=(C=this._buttonInfo[g.high]).targetBox.w+C.preGap;for(m=this._showingRange.low,e>=0&&e<m&&(m=e);g.low<m&&n>t;g.low++)n-=p=(C=this._buttonInfo[g.low]).targetBox.w+C.preGap,I-=p}for(m=g.low,e>=0&&e>m&&(m=e);g.high>m&&n>t;g.high--)n-=p=(C=this._buttonInfo[g.high]).targetBox.w+C.preGap;for(m=g.high,e>=0&&e<m&&(m=e);g.low<m&&n>t;g.low++)n-=p=(C=this._buttonInfo[g.low]).targetBox.w+C.preGap,I-=p;g.low===g.high&&(C=this._buttonInfo[g.low],!this.shrinkWidthToFit&&!C.properties.get(T.TITLE_SHORTENING_ALLOWED)&&t<C.targetBox.w&&C.targetBox.w>this.minimumButtonWidth&&(d=C.targetBox.w-t,u=Math.max(C.targetBox.w-d,this.minimumButtonWidth),n-=C.targetBox.w-u,C.targetBox.w=u,v=!0)),!v&&g.low>0&&g.high===x-1&&(I+=t-n)}for(y=0;y<x;y++)(C=this._buttonInfo[y]).targetBox.l=I+C.preGap,I+=C.targetBox.w+C.preGap;this._scrollButtonWidth||this._updateScrollButtonDimension("width"),this._previousButtonBox={l:b.l,t:0,w:this._scrollButtonWidth,h:b.h},this._nextButtonBox={l:b.l+b.w-this._scrollButtonWidth,t:0,w:this._scrollButtonWidth,h:b.h},this._plusButtonInfo&&(this._plusButtonInfo.targetBox.t=0,this._plusButtonInfo.targetBox.h=b.h,this._plusButtonInfo.targetBox.w=this._plusButtonInfo.preferredSize.w,g?(this._plusButtonInfo.targetBox.l=b.l+b.w-this._plusButtonInfo.preferredSize.w,this._nextButtonBox.l-=this._plusButtonInfo.preferredSize.w):(this._plusButtonInfo.targetBox.l=I,I+=this._plusButtonInfo.preferredSize.w)),this._fillerWidget&&(this._fillerBox={l:I,t:0,w:b.w-I,h:b.h})}else{for(i=b.h,this._plusButtonInfo&&(i-=this._plusButtonInfo.preferredSize.h),this._preNeighbor&&(i-=this._preNeighborBox.h,A+=this._preNeighborBox.h,this._preNeighborBox.w=b.w,b.h-=this._preNeighborBox.h,b.t+=this._preNeighborBox.h),this._postNeighbor&&(i-=this._postNeighborBox.h,this._postNeighborBox.t=b.h-this._postNeighborBox.h,this._postNeighborBox.w=b.w,b.h-=this._postNeighborBox.h),o=N,r=0,y=0;y<x;y++)o+=(C=this._buttonInfo[y]).targetBox.h,C.targetBox.w=b.w,C.targetBox.h>this.minimumButtonHeight&&(r+=C.targetBox.h-this.minimumButtonHeight);if(o>i)for(c=o-b.h,y=0;y<x;y++)C=this._buttonInfo[y],(this.shrinkHeightToFit||C.properties.get(T.TITLE_SHORTENING_ALLOWED))&&C.targetBox.h>this.minimumButtonHeight&&(d=c*(C.targetBox.h-this.minimumButtonHeight)/r+1,h=Math.max(C.targetBox.h-d,this.minimumButtonHeight),o-=C.targetBox.h-h,C.targetBox.h=h);if(o>i&&x>1){if(g={low:0,high:x-1},A+=this._scrollButtonHeight,i-=2*this._scrollButtonHeight,this._showingRange){for(m=this._showingRange.high,e>=0&&e>m&&(m=e);g.high>m&&o>i;g.high--)o-=f=(C=this._buttonInfo[g.high]).targetBox.h+C.preGap;for(m=this._showingRange.low,e>=0&&e<m&&(m=e);g.low<m&&o>i;g.low++)o-=f=(C=this._buttonInfo[g.low]).targetBox.h+C.preGap,A-=f}for(m=g.low,e>=0&&e>m&&(m=e);g.high>m&&o>i;g.high--)o-=f=(C=this._buttonInfo[g.high]).targetBox.h+C.preGap;for(m=g.high,e>=0&&e<m&&(m=e);g.low<m&&o>i;g.low++)o-=f=(C=this._buttonInfo[g.low]).targetBox.h+C.preGap,A-=f;g.low>0&&g.high===x-1&&(A+=i-o)}for(y=0;y<x;y++)(C=this._buttonInfo[y]).targetBox.t=A+C.preGap,A+=C.targetBox.h+C.preGap;this._scrollButtonHeight||this._updateScrollButtonDimension("height"),this._previousButtonBox={l:0,t:b.t,w:b.w,h:this._scrollButtonHeight},this._nextButtonBox={l:0,t:b.t+b.h-this._scrollButtonHeight,w:b.w,h:this._scrollButtonHeight},this._plusButtonInfo&&(this._plusButtonInfo.targetBox.l=0,this._plusButtonInfo.targetBox.w=b.w,this._plusButtonInfo.targetBox.h=this._plusButtonInfo.preferredSize.h,g?(this._plusButtonInfo.targetBox.t=b.t+b.h-this._plusButtonInfo.preferredSize.h,this._nextButtonBox.t-=this._plusButtonInfo.preferredSize.h):(this._plusButtonInfo.targetBox.t=A,A+=this._plusButtonInfo.preferredSize.h)),this._fillerWidget&&(this._fillerBox={l:0,t:A,w:b.w,h:b.h-A})}return this._showingRange=g,!0},_getCheckedIndex:function(){var e;for(e=0;e<this._buttonInfo.length;e++)if(this._buttonInfo[e].button.get("checked"))return e;return-1},_getButtonSize:function(e){return e.preferredSize||(e.preferredSize=this._measureButton(e)),e.preferredSize},_getPlusButtonSize:function(){return this._plusButtonInfo?(this._plusButtonInfo.preferredSize||(this._plusButtonInfo.preferredSize=s.getMarginBox(this._plusButtonInfo.button.domNode)),this._plusButtonInfo.preferredSize):{w:0,h:0}},_getPreNeighborSize:function(){return this._preNeighbor?(this._preNeighborBox||(this._preNeighborBox=this._getDefaultSize(this._preNeighbor)),this._preNeighborBox):{w:0,h:0}},_getPostNeighborSize:function(){return this._postNeighbor?(this._postNeighborBox||(this._postNeighborBox=this._getDefaultSize(this._postNeighbor)),this._postNeighborBox):{w:0,h:0}},_measureButton:function(e){return this._getPrototypeButton(),this._prototypeButton?(this._configurePrototypeButton(this._prototypeButton,e.button,e.properties),s.getMarginBox(this._prototypeButton.domNode)):{w:80,h:24}},_getPrototypeButton:function(){return this._prototypeButton||(this._prototypeButton=this._createPrototypeButton(),this._prototypeButton&&(l.set(this._prototypeButton.domNode,{position:"absolute",visibility:"hidden"}),this.addChild(this._prototypeButton))),this._prototypeButton},_getDefaultSize:function(e){var t=s.getMarginBox(e);return t.defaultW=t.w,t.defaultH=t.h,t},_diffBox:function(e,t){return{l:e.l-t.l,t:e.t-t.t,w:e.w-t.w,h:e.h-t.h}},_updateButtonVisibility:function(){var e,t,i,n,o,r,a=this._buttonInfo.length,s=this._showingRange;for(e=0;e<a;e++)n=this._buttonInfo[e],t=!1,i=!1,!s||this._buttonDragInfo&&this._buttonDragInfo.buttonInfo[0]===n||e>=s.low&&e<=s.high?t=!0:(e===s.high+1||e===s.low-1&&s.high===a-1)&&(t=!0,i=!0),t!==n.isShowing&&(l.set(n.button.domNode,{visibility:t?"visible":"hidden"}),n.isShowing=t),i!==n.isClipped&&(i?(o=this._computeScrollBounds(this._getBarBounds()),r=C.computeClip(n.targetBox,o),this._transformClipBox&&this._transformClipBox(r,n.targetBox),l.set(n.button.domNode,S.formatClipStyle(r))):l.set(n.button.domNode,{clip:"auto"}),n.isClipped=i)},_updateScrollButtonVisibility:function(){this._showingRange?(l.set(this._previousButton,{display:"block"}),l.set(this._nextButton,{display:"block"}),this._fillerWidget&&l.set(this._fillerWidget.domNode,{visibility:"hidden"}),this._showingRange.low>0?r.remove(this._previousButton,"disabled"):r.add(this._previousButton,"disabled"),this._showingRange.high<this._buttonInfo.length-1?r.remove(this._nextButton,"disabled"):r.add(this._nextButton,"disabled")):(l.set(this._previousButton,{display:"none"}),l.set(this._nextButton,{display:"none"}),this._fillerWidget&&l.set(this._fillerWidget.domNode,{visibility:"visible"}))},_createPrototypeButton:function(){return null},_configurePrototypeButton:function(e,t){e.set("label",t.get("label")),e.set("text",t.get("text"))},_updateScrollButtonIcons:function(){"horizontal"===this.orientation?(r.remove(this._previousButton,"scrollUpButton"),r.remove(this._nextButton,"scrollDownButton"),r.add(this._previousButton,"scrollLeftButton"),r.add(this._nextButton,"scrollRightButton")):(r.remove(this._previousButton,"scrollLeftButton"),r.remove(this._nextButton,"scrollRightButton"),r.add(this._previousButton,"scrollUpButton"),r.add(this._nextButton,"scrollDownButton"))},_updateNeighbors:function(){this._preNeighborBox&&(this._preNeighborBox.w=this._preNeighborBox.defaultW,this._preNeighborBox.h=this._preNeighborBox.defaultH),this._postNeighborBox&&(this._postNeighborBox.w=this._postNeighborBox.defaultW,this._postNeighborBox.h=this._postNeighborBox.defaultH)},_setOrientationAttr:function(e){e!==this.orientation&&(this._abortAnimation(),this._set("orientation",e),this._updateScrollButtonIcons(),this._updateNeighbors()),this.domNode.setAttribute("aria-orientation",e)},_setShrinkWidthToFitAttr:function(e){e!==this.shrinkWidthToFit&&(this._set("shrinkWidthToFit",e),this.layout())},_setShrinkHeightToFitAttr:function(e){e!==this.shrinkHeightToFit&&(this._set("shrinkHeightToFit",e),this.layout())},_setMinimumButtonWidthAttr:function(e){e!==this.minimumButtonWidth&&(this._set("minimumButtonWidth",e),this.layout())},_setMinimumButtonHeightAttr:function(e){e!==this.minimumButtonHeight&&(this._set("minimumButtonHeight",e),this.layout())},_handleScrollButtonPress:function(e){this._scrollInfo={button:e.target,connection:h(this.ownerDocument,p.release,i.hitch(this,"_handleScrollButtonRelease")),timer:setTimeout(i.hitch(this,"_handleScrollButtonTimeout",e),500)},S.stopEvent(e)},_handleScrollButtonRelease:function(e){this._scrollInfo&&this._scrollInfo.button===e.target&&(e.target===this._previousButton?this._scrollToPrevious():this._scrollToNext(),this._cleanupScrollInfo())},_handleScrollButtonTimeout:function(){var e,t,i,n,o;if(this._scrollInfo){for(w.blockSelection(this.domNode),m.close(),t=new v({targetNodes:[this._scrollInfo.button],id:this.id+"ScrollMenu"}),e=0;e<this._buttonInfo.length;e++)o=function(e){return function(){e.set("checked",!0)}}(n=this._buttonInfo[e].button),i=new b({text:n.get("label")}),r.add(i.domNode,e>=this._showingRange.low&&e<=this._showingRange.high?"showingButtonBarOverflowItem":"hiddenButtonBarOverflowItem"),n.get("checked")&&r.add(i.domNode,"checkedButtonBarOverflowItem"),h(i.domNode,p.release,o),h(i.domNode,"click",o),t.addChild(i);t.open({target:this._scrollInfo.button}),t.on("close",(function(){setTimeout((function(){t.destroyRecursive()}),0),w.unblockSelection()})),this._cleanupScrollInfo()}},_cleanupScrollInfo:function(){this._scrollInfo&&(clearTimeout(this._scrollInfo.timer),this._scrollInfo.connection.remove(),delete this._scrollInfo)},_scrollToPrevious:function(){this._showingRange.low>0&&this._scrollIntoView(this._showingRange.low-1)},_scrollToNext:function(){this._showingRange.high<this._buttonInfo.length-1&&this._scrollIntoView(this._showingRange.high+1)},_scrollIntoView:function(e){if(this._showingRange&&(e<this._showingRange.low||e>this._showingRange.high)){var t;this._computeLayout(e);var i=(new Date).valueOf();for(t=0;t<this._buttonInfo.length;t++)this._setupAnimation(this._buttonInfo[t],i);this._startAnimation()}},_setupAnimation:function(e,t){t=t||(new Date).valueOf();var n=this._diffBox(e.targetBox,e.currentBox);e.animationInfo={startBox:i.clone(e.currentBox),startTime:t,duration:this._computeButtonAnimationDuration(n),boxDiff:n}},_startAnimation:function(){this.animationEnabled&&S.isAnimationEnabled()?this._buttonAnimationTimer||(this._buttonAnimationTimer=setInterval(i.hitch(this,"_updateButtonPositions"),y.UPDATE_INTERVAL)):this._updateButtonPositions()},_endAnimation:function(){this._buttonAnimationTimer&&(clearInterval(this._buttonAnimationTimer),delete this._buttonAnimationTimer,this._clearButtonClipping(),this._animationDoneResponse&&(this._animationDoneResponse(),delete this._animationDoneResponse))},_abortAnimation:function(){this._buttonAnimationTimer&&(clearInterval(this._buttonAnimationTimer),delete this._buttonAnimationTimer,this._clearButtonClipping())},_updateButtonPositions:function(){var e,t,i=!1,n=(new Date).valueOf(),o=this._getBarBounds();for(e=0;e<this._buttonInfo.length;e++)t=this._buttonInfo[e],this._updateButtonPosition(t,n,o)&&(i=!0);this._plusButtonInfo&&this._updateButtonPosition(this._plusButtonInfo,n,o)&&(i=!0),i||(this._endAnimation(),this._updateButtonVisibility(),this._updateScrollButtonVisibility())},_updateButtonPosition:function(e,t,i){var n,o,r,a,d,u,h=!1;return e.animationInfo&&(o=t-(n=e.animationInfo).startTime,r=e.currentBox,this.animationEnabled&&S.isAnimationEnabled()&&o<n.duration?(a=c.cubicInOut(o/n.duration),r.l=n.startBox.l+n.boxDiff.l*a,r.t=n.startBox.t+n.boxDiff.t*a,r.w=n.startBox.w+n.boxDiff.w*a,r.h=n.startBox.h+n.boxDiff.h*a,h=!0):(C.copyBox(e.targetBox,r),delete e.animationInfo),e!==this._plusButtonInfo&&(d=this._computeScrollBounds(i),C.boxesOverlap(r,d)?(e.isShowing||(l.set(e.button.domNode,{visibility:"visible"}),e.isShowing=!0),u=C.computeClip(r,d)):(l.set(e.button.domNode,{visibility:"hidden"}),e.isShowing=!1)),u&&(u.w<r.w||u.h<r.h)?(this._transformClipBox&&this._transformClipBox(u,e.targetBox),l.set(e.button.domNode,S.formatClipStyle(u)),e.isClipped=!0):e.isClipped&&(l.set(e.button.domNode,{clip:"auto"}),e.isClipped=!1),s.setMarginBox(e.button.domNode,r)),h},_getBarBounds:function(){var e=s.getMarginBox(this.domNode,this.computedStyle);return e.l=-1,e.t=-1,e.w+=2,e.h+=2,e},_getVisibleButtonSetBounds:function(e){return C.intersectionBox(this._getButtonSetBounds(e),this._computeScrollBounds())},_getButtonSetBounds:function(e){var t=this._indexOfFirstInSet(e),i=this._indexOfLastInSet(e);if(!(t<0||i<0)){var n=this._buttonInfo[t].currentBox,o=this._buttonInfo[i].currentBox,r=this._getBarBounds();return"horizontal"===this.orientation?(r.l=n.l,r.w=o.l-n.l+o.w):(r.t=n.t,r.h=o.t-n.t+o.h),r}},_computeScrollBounds:function(e){var t,i,n;return e=e||this._getBarBounds(),this._showingRange?("horizontal"===this.orientation?n={l:t=this._previousButtonBox.l+this._previousButtonBox.w,t:e.t,w:this._nextButtonBox.l-t,h:e.h}:(i=this._previousButtonBox.t+this._previousButtonBox.h,n={l:e.l,t:i,w:e.w,h:this._nextButtonBox.t-i}),C.intersectionBox(e,n)):e},_clearButtonClipping:function(){var e,t;for(e=0;e<this._buttonInfo.length;e++)(t=this._buttonInfo[e]).isClipped&&(t.button.domNode&&l.set(t.button.domNode,{clip:"auto"}),t.isClipped=!1)},_computeButtonAnimationDuration:function(e){var t=Math.max(Math.abs(e.l),Math.max(Math.abs(e.t),Math.max(Math.abs(e.w),Math.abs(e.h))));return y.computeDuration(t)},_beginButtonDrag:function(e,t){var i,n;u.isLeft(t)&&this.reorderingEnabled&&(this._buttonInfo.length>1&&(n=this._setIdFromProperties(e.properties),this._indexOfFirstInSet(n)===this._indexOfLastInSet(n)&&(this._beginSetDragAtPoint(n,null,t.pageX,t.pageY),i=!0,this._buttonDragInfo.initiatedButtonDrag=!0)),i||this._beginButtonDragAtPoint(e,t.pageX,t.pageY))},_beginButtonDragAtPoint:function(e,t,n){var o=this._buttonInfo.indexOf(e),r={buttonInfo:[e],startBox:e.targetBox,startX:t,startY:n,lastX:t,lastY:n,startIndex:o,currentIndex:o,connections:[h(this.ownerDocument,p.move,i.hitch(this,"_continueButtonDrag")),h(this.ownerDocument,p.release,i.hitch(this,"_endDrag",!1))]};this._buttonDragInfo=r,w.blockUntilRelease(this.domNode);var a=this._setIdFromProperties(e.properties);r.indexLowerLimit=this._indexOfFirstInSet(a),r.indexUpperLimit=this._indexOfLastInSet(a);var s=Math.max(r.indexLowerLimit,this._showingRange?this._showingRange.low:0),l=this._buttonInfo[s].currentBox,c=Math.min(r.indexUpperLimit,this._showingRange?this._showingRange.high:this._buttonInfo.length-1),d=this._buttonInfo[c].currentBox;"horizontal"===this.orientation?(r.lowerLimit=l.l,r.upperLimit=d.l+d.w):(r.lowerLimit=l.t,r.upperLimit=d.t+d.h)},_continueButtonDrag:function(e){var t,i,n,o,r,a,l,c,d,u,h=this._buttonDragInfo,p=h.buttonInfo[0],f="horizontal"===this.orientation;f?(t=e.pageX-h.startX,i=e.pageX-h.lastX,h.lastX=e.pageX,n=e.pageY-h.startY,o=this.dragOffEdge?"top"===this.dragOffEdge?-1:1:0):(t=e.pageY-h.startY,i=e.pageY-h.lastY,h.lastY=e.pageY,n=e.pageX-h.startX,o=this.dragOffEdge?"left"===this.dragOffEdge?-1:1:0);var g=p.currentBox,m=s.position(this.domNode);if(m.l=m.x,m.t=m.y,this.dragOffEnabled&&!C.isNearBox(m,e.pageX,e.pageY,h.hasOrderChanged?50:6)&&n*o>=0)return this._endDrag(!0),void this._emitDragOffEvent({button:p.button,properties:p.properties,index:h.startIndex-this._indexOfFirstInSet(this._setIdFromProperties(p.properties)),mousePoint:{x:e.pageX,y:e.pageY}});if(!h.hasMoved){if(!(this._buttonInfo.length>1&&(t>5||t<-5)))return;h.hasMoved=!0,this._prepareButtonForDrag(p)}this._dragBox(g,t,h),s.setMarginBox(p.button.domNode,g),h.isBelowLimit||h.isAboveLimit?this._buttonAnimationTimer||this._slideButtons():0!==i&&(r=h.startIndex<h.currentIndex?h.currentIndex:h.currentIndex-1,a=h.startIndex>h.currentIndex?h.currentIndex:h.currentIndex+1,r===h.startIndex&&r++,a===h.startIndex&&a++,f?i<0&&r>=h.indexLowerLimit?(d=(l=this._buttonInfo[r]).targetBox,g.l<d.l+d.w/2&&(d.l+=g.w,h.currentIndex--,this._setupAnimation(l),this._startAnimation(),h.hasOrderChanged=!0)):i>0&&a<=h.indexUpperLimit&&(u=(c=this._buttonInfo[a]).targetBox,g.l+g.w>u.l+u.w/2&&(u.l-=g.w,h.currentIndex++,this._setupAnimation(c),this._startAnimation(),h.hasOrderChanged=!0)):i<0&&r>=h.indexLowerLimit?(d=(l=this._buttonInfo[r]).targetBox,g.t<d.t+d.h/2&&(d.t+=g.h,h.currentIndex--,this._setupAnimation(l),this._startAnimation(),h.hasOrderChanged=!0)):i>0&&a<=h.indexUpperLimit&&(u=(c=this._buttonInfo[a]).targetBox,g.t+g.h>u.t+u.h/2&&(u.t-=g.h,h.currentIndex++,this._setupAnimation(c),this._startAnimation(),h.hasOrderChanged=!0)))},_emitDragOffEvent:function(e){this.emit(E.DRAG_OUT,e)},_endDrag:function(e){var t=this,i=this._buttonDragInfo,n=this._buttonInfo[i.startIndex]===i.buttonInfo[0],o=!i.buttonInfo[0].removePending;delete this._buttonDragInfo,i.connections.forEach((function(e){e.remove()})),i.hasMoved&&n&&o&&(i.currentIndex!==i.startIndex&&(this._changeButtonIndices(i.startIndex,i.currentIndex,i.buttonInfo.length),this.emit(E.STATE_CHANGED)),this._computeLayout(i.currentIndex),i.buttonInfo.forEach((function(e){t._setupAnimation(e)})),this._animationDoneResponse=function(){i.buttonInfo.forEach((function(e){t._restoreButtonAfterDrag(e)}))},this._startAnimation()),!this._animationTimer&&this._animationDoneResponse&&(this._animationDoneResponse(),delete this._animationDoneResponse)},_beginSetDrag:function(e,t,i){u.isLeft(i)&&this.reorderingEnabled&&this._beginSetDragAtPoint(e,t,i.pageX,i.pageY),S.stopEvent(i)},_beginSetDragAtPoint:function(e,t,n,o){var r=this._indexOfFirstInSet(e),a=this._indexOfLastInSet(e),s={setId:e,headerBox:t,startBox:this._getButtonSetBounds(e),startX:n,startY:o,lastX:n,lastY:o,startIndex:r,currentIndex:r,connections:[h(this.ownerDocument,p.move,i.hitch(this,"_continueSetDrag")),h(this.ownerDocument,p.release,i.hitch(this,"_endDrag",!1))]};this._buttonDragInfo=s,w.blockUntilRelease(this.domNode);var l,c=a-r+1,d=[];for(l=s.startIndex;l<s.startIndex+c;l++)d.push(this._buttonInfo[l]);this._buttonDragInfo.buttonInfo=d,s.indexLowerLimit=0,s.indexUpperLimit=this._buttonInfo.length-c;var u=this._showingRange?this._showingRange.low:0,f=this._buttonInfo[u].currentBox,g=Math.max(a,this._showingRange?this._showingRange.high:this._buttonInfo.length-1),m=this._buttonInfo[g].currentBox;"horizontal"===this.orientation?(s.lowerLimit=f.l,s.upperLimit=m.l+m.w):(s.lowerLimit=f.t,s.upperLimit=m.t+m.h)},_continueSetDrag:function(e){var t,n,o,r,a,l,c,d,u,h,p,f,g,m,_,v,b,y,T,E=this._buttonDragInfo,S="horizontal"===this.orientation;S?(t=e.pageX-E.startX,n=e.pageX-E.lastX,E.lastX=e.pageX,o=e.pageY-E.startY,r=this.dragOffEdge?"top"===this.dragOffEdge?-1:1:0):(t=e.pageY-E.startY,n=e.pageY-E.lastY,E.lastY=e.pageY,o=e.pageX-E.startX,r=this.dragOffEdge?"left"===this.dragOffEdge?-1:1:0),a=this._getButtonSetBounds(E.setId);var w=s.position(this.domNode);if(w.l=w.x,w.t=w.y,E.headerBox&&(w=C.unionBox(w,E.headerBox)),this.dragOffEnabled&&!C.isNearBox(w,e.pageX,e.pageY,E.hasOrderChanged?50:6)&&o*r>=0){this._endDrag(!0);var I={index:E.startIndex,mousePoint:{x:e.pageX,y:e.pageY}};return E.initiatedButtonDrag?(I.button=E.buttonInfo[0].button,I.properties=E.buttonInfo[0].properties,I.index-=this._indexOfFirstInSet(E.setId)):I.setId=E.setId,void this._emitDragOffEvent(I)}if(!E.hasMoved){if(!(t>5||t<-5))return;for(E.hasMoved=!0,l=0;l<E.buttonInfo.length;l++)this._prepareButtonForDrag(E.buttonInfo[l],!0)}for(this._dragBox(a,t,E),l=0;l<E.buttonInfo.length;l++)(d=E.buttonInfo[l]).currentBox=i.clone(d.targetBox),S?d.currentBox.l+=a.l-E.startBox.l:d.currentBox.t+=a.t-E.startBox.t,s.setMarginBox(d.button.domNode,d.currentBox);if(E.isBelowLimit||E.isAboveLimit)this._buttonAnimationTimer||this._slideButtons();else if(0!==n)if(c=E.buttonInfo.length,E.currentIndex===E.startIndex?(h=E.currentIndex-1,p=E.currentIndex+c):p=E.currentIndex>E.startIndex?(h=E.currentIndex+c-1)+1:(h=E.currentIndex-1)+1,n<0&&E.currentIndex>E.indexLowerLimit?(f=this._setIdFromProperties(this._buttonInfo[h].properties),m=h-this._indexOfFirstInSet(f)+1,y=this._getButtonSetBounds(f)):n>0&&E.currentIndex<E.indexUpperLimit&&(g=this._setIdFromProperties(this._buttonInfo[p].properties),_=this._indexOfLastInSet(g)-p+1,T=this._getButtonSetBounds(g)),S){if(m){if(a.l<y.l+y.w/2){for(E.currentIndex-=m,u=0;u<m;u++,h--)(y=(v=this._buttonInfo[h]).targetBox).l+=a.w+this.setGap,this._setupAnimation(v);this._startAnimation(),E.hasOrderChanged=!0}}else if(_&&a.l+a.w>T.l+T.w/2){for(E.currentIndex+=_,u=0;u<_;u++,p++)(T=(b=this._buttonInfo[p]).targetBox).l-=a.w+this.setGap,this._setupAnimation(b);this._startAnimation(),E.hasOrderChanged=!0}}else if(m){if(a.t<y.t+y.h/2){for(E.currentIndex-=m,u=0;u<m;u++,h--)(y=(v=this._buttonInfo[h]).targetBox).t+=a.h+this.setGap,this._setupAnimation(v);this._startAnimation(),E.hasOrderChanged=!0}}else if(_&&a.t+a.h>T.t+T.h/2){for(E.currentIndex+=_,u=0;u<_;u++,p++)(T=(b=this._buttonInfo[p]).targetBox).t-=a.h+this.setGap,this._setupAnimation(b);this._startAnimation(),E.hasOrderChanged=!0}},_dragBox:function(e,t,i){i.isAboveLimit=!1,i.isBelowLimit=!1,"horizontal"===this.orientation?(e.l=i.startBox.l+t,e.l<=i.lowerLimit?(e.l=i.lowerLimit,i.isBelowLimit=!0):e.l+e.w>=i.upperLimit&&(e.l=i.upperLimit-e.w,i.isAboveLimit=!0)):(e.t=i.startBox.t+t,e.t<=i.lowerLimit?(e.t=i.lowerLimit,i.isBelowLimit=!0):e.t+e.h>=i.upperLimit&&(e.t=i.upperLimit-e.h,i.isAboveLimit=!0))},_prepareButtonForDrag:function(e,t){e.button.disarm&&e.button.disarm(),t?r.add(e.button.domNode,"movingSet"):r.add(e.button.domNode,"movingButton")},_restoreButtonAfterDrag:function(e){e.button.rearm&&setTimeout((function(){e.button.domNode&&e.button.rearm()}),0),r.remove(e.button.domNode,"movingButton"),r.remove(e.button.domNode,"movingSet")},_slideButtons:function(){var e,t,i,n,o,r,a,s,c,d,u,h=this,p=this._buttonDragInfo,f=p.buttonInfo[0],g=this._buttonInfo.length,m="horizontal"===this.orientation;if(this._showingRange){if(p.isBelowLimit&&p.currentIndex>0){if(i=p.currentIndex-1,n=this._buttonInfo[i],l.set(n.button.domNode,{visibility:"visible"}),m)for(o=n.currentBox.w,n.currentBox.l=p.lowerLimit-o,n.targetBox.l=n.currentBox.l,t=i;t<g;t++)(u=this._buttonInfo[t])!==f&&(u.targetBox.l+=o,t<p.currentIndex&&(u.targetBox.l+=f.currentBox.w),this._setupAnimation(u));else for(r=n.currentBox.h,n.currentBox.t=p.lowerLimit-r,n.targetBox.t=n.currentBox.t,t=i;t<g;t++)(u=this._buttonInfo[t])!==f&&(u.targetBox.t+=r,t<p.currentIndex&&(u.targetBox.t+=f.currentBox.h),this._setupAnimation(u));p.currentIndex--,this._showingRange.low--,this._showingRange.high--,e=!0}else if(p.isAboveLimit&&p.currentIndex<g-1){if(a=p.currentIndex+1,s=this._buttonInfo[a],l.set(s.button.domNode,{visibility:"visible"}),m)for(c=s.currentBox.w,s.currentBox.l=p.upperLimit,s.targetBox.l=s.currentBox.l,t=a;t>=0;t--)(u=this._buttonInfo[t])!==f&&(u.targetBox.l-=c,t>p.currentIndex&&(u.targetBox.l-=f.currentBox.w),this._setupAnimation(u));else for(d=s.currentBox.h,s.currentBox.t=p.upperLimit,s.targetBox.t=s.currentBox.t,t=a;t>=0;t--)(u=this._buttonInfo[t])!==f&&(u.targetBox.t-=d,t>p.currentIndex&&(u.targetBox.t-=f.currentBox.h),this._setupAnimation(u));p.currentIndex++,this._showingRange.high++,this._showingRange.low++,e=!0}e&&(this._animationDoneResponse=function(){h._buttonDragInfo===p&&(p.isBelowLimit||p.isAboveLimit)&&setTimeout((function(){h._buttonDragInfo===p&&(p.isBelowLimit||p.isAboveLimit)&&h._slideButtons()}),100)},this._startAnimation())}},_changeButtonIndices:function(e,t,i){var n,o=this._buttonInfo.splice(e,i);for(n=0;n<o.length;n++)this._buttonInfo.splice(t+n,0,o[n]);this._updateButtonIndices()},_updateButtonIndices:function(){var e,t,i,n;this._isUpdatingIndices=!0;var o=0;for(e=0;e<this._buttonInfo.length;e++)t=this._buttonInfo[e].properties,n!==(i=this._setIdFromProperties(t))&&(o=e,n=i),!1!==t.isOpen&&t.set(T.INDEX,e-o);this._isUpdatingIndices=!1},on:function(e){return e===E.DRAG_OUT&&(this.dragOffEnabled=!0),this.inherited(arguments)}});return I.ORIENTATION="orientation",I.SHRINK_WIDTH_TO_FIT="shrinkWidthToFit",I.SHRINK_HEIGHT_TO_FIT="shrinkHeightToFit",I.MINIMUM_BUTTON_WIDTH="minimumButtonWidth",I.MINIMUM_BUTTON_HEIGHT="minimumButtonHeight",I}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(242),i(227),i(228),i(210),i(211),i(217),i(213),i(223),i(257),i(206),i(248),i(216),i(215),i(1287),i(344),i(387),i(1716),i(317),i(562),i(2862)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){var E=e([b,f],{templateString:T,buildRendering:function(){this.inherited(arguments),o.setSelectable(this.domNode,!1),v.preventFocus(this.domNode,!0),v.setLocaleOnDomNode(this.domNode);var e=this;this._watches=[],this.properties?(this.set(_.TITLE,this.properties.title),this._watches.push(this.properties.watch(_.TITLE,(function(t,i,n){e.set(_.TITLE,n)}))),this.set("toolTip",this.properties.description),this._watches.push(this.properties.watch(_.DESCRIPTION,(function(t,i,n){e.set("toolTip",n)}))),this.set(_.IS_COLLAPSED,this.properties.isCollapsed),this._watches.push(this.properties.watch(_.IS_COLLAPSED,(function(t,i,n){e.set(_.IS_COLLAPSED,n)}))),this.set(_.ACTIONS,this.properties.actions),this._watches.push(this.properties.watch(_.CONEXT_ACTIONS,(function(t,i,n){e.set(_.ACTIONS,n)}))),this.properties.get(_.IS_SELECTED)&&a.add(e.domNode,"selected"),this._watches.push(this.properties.watch(_.IS_SELECTED,(function(t,i,n){e.domNode&&(n?a.add(e.domNode,"selected"):a.remove(e.domNode,"selected"))}))),this.properties.get(_.IS_MAXIMIZABLE)&&(this._maximizeRestoreAction={id:"maximizeRestore",enabled:!0,text:"",callback:function(t){if(t.mwEventData&&t.mwEventData.details&&(t.mwEventData.details.keyCode===d.ENTER||t.mwEventData.details.keyCode===d.SPACE)){const t=e.getParent?e.getParent():null;t&&(t._shouldBlockSuccession=!0)}e.properties.set(_.IS_MAXIMIZED,!e.properties.get(_.IS_MAXIMIZED))}}),!1!==this.properties.get(_.IS_COLLAPSIBLE)&&(this._collapseExpandAction={id:"collapseExpand",enabled:!0,text:"",callback:function(t){if(t.mwEventData&&t.mwEventData.details&&(t.mwEventData.details.keyCode===d.ENTER||t.mwEventData.details.keyCode===d.SPACE)){const t=e.getParent?e.getParent():null;t&&(t._shouldBlockSuccession=!0)}e.properties.set(_.IS_COLLAPSED,!e.properties.get(_.IS_COLLAPSED))}}),this.properties.get("closable")&&(this._closeAction={id:"close",enabled:!0,text:C.close,callback:function(){e.properties.set(_.IS_OPEN,!1)}}),this.own(h(this.domNode,p.press,(function(t){e.get(_.IS_COLLAPSED)||t.target===e.toggleNode?e.isArmed=!1:!1!==e.properties.isSelectable&&e.properties.set(_.IS_SELECTED,!0),v.stopEvent(t)}))),this.properties.get(_.IS_MAXIMIZABLE)&&this.own(h(this.domNode,"dblclick",(function(t){e.properties.set(_.IS_MAXIMIZED,!e.properties.get(_.IS_MAXIMIZED))})))):(this._setTitleAttr(this.title),this._setToolTipAttr(this.description),this._setIsCollapsedAttr(this.isCollapsed),this._setActionsAttr(this.actions)),this.title&&r.set(this.actionsNodeWrapper,"title",i.replace(C.childActions,{placeholder:this.title})),this.own(h(this.actionsNode,p.press,this._touchPressHandler.bind(this))),this.own(h(this.actionsNodeWrapper,"keydown",this._keydownHandler.bind(this))),this.own(h(this.actionsNodeWrapper,"keyup",this._keyupHandler.bind(this)))},_touchPressHandler:function(e){u.isLeft(e)&&this._displayActionsMenu(e)},_keydownHandler:function(e){e.keyCode===d.ENTER&&this._displayActionsMenu(e)},_keyupHandler:function(e){e.keyCode===d.SPACE&&this._displayActionsMenu(e)},destroy:function(){this._watches.forEach((function(e){e.remove()})),this._contextMenu&&this._contextMenu.destroyRecursive(),this.inherited(arguments)},_setTitleAttr:function(e){this.titleNode.textContent=e,this._set("title",e)},_getTitleAttr:function(){return this.titleNode.textContent},_setToolTipAttr:function(e){e?r.set(this.titleNode,"title",e):r.remove(this.titleNode,"title"),this._set("toolTip",e)},_getToolTipAttr:function(){return r.get(this.titleNode,"title")},_setIsCollapsedAttr:function(e){this.isCollapsible&&(e?a.replace(this.toggleNode,"expandIcon","collapseIcon"):a.replace(this.toggleNode,"collapseIcon","expandIcon")),this._set(_.IS_COLLAPSED,e)},_setIsCollapsibleAttr:function(e){if(this._set(_.IS_COLLAPSIBLE,e),e){var t=this.isCollapsed;delete this.isCollapsed,this.set("isCollapsed",t),c.set(this.titleNode,{left:"16px"})}else a.remove(this.toggleNode,"expandIcon"),a.remove(this.toggleNode,"collapseIcon"),c.set(this.titleNode,{left:"0"});this._hasContextActions()||(this._updateActionsDropDown(),this._updateContextMenu())},_setIsMaximizableAttr:function(e){this._set(_.IS_MAXIMIZABLE,e),this._hasContextActions()||(this._updateActionsDropDown(),this._updateContextMenu())},_setActionsAttr:function(e){this._set(_.ACTIONS,e),this._updateActionsDropDown(),this._updateContextMenu()},_displayActionsMenu:function(e){m.display(this.actionsNode,this._getAllActions()),t.stop(e),this.actionsNodeWrapper.setAttribute("aria-expanded","true")},_updateActionsDropDown:function(){this._hasAnyActions()?(this.actionsNodeWrapper.style.visibility="visible",this.actionsNodeWrapper.setAttribute("tabindex",-1)):(this.actionsNodeWrapper.style.visibility="hidden",this.actionsNodeWrapper.removeAttribute("tabindex"))},_updateContextMenu:function(){var e=this;this._hasAnyActions()?this._contextMenu||(this._contextMenu=new y({id:this.id+"ContextMenu",targetNodes:[this.domNode,"#"+this.id+" *"]}),this._contextMenu.willOpenCallback=function(){e._contextMenu.getChildren().forEach((function(e){e.destroyRecursive()})),m._addMenuItems(e._contextMenu,e._getAllActions())}):(this._contextMenu&&this._contextMenu.destroyRecursive(),v.preventDefaultContextMenu(this.domNode))},_hasAnyActions:function(){return this._hasContextActions()||this._hasStandardActionsOtherThanCollapse()},_hasContextActions:function(){return this.actions&&this.actions.length>0},_hasStandardActions:function(){return this.isMaximizable&&this._maximizeRestoreAction||this.isCollapsible&&this._collapseExpandAction||this._closeAction||this.properties&&this.properties._globalActionsSupplier},_hasStandardActionsOtherThanCollapse:function(){return this.isMaximizable&&this._maximizeRestoreAction||this._closeAction},_getAllActions:function(){var e;return this._updateStandardActionLabels(),e=this._hasContextActions()?this.actions.slice():[],this._hasStandardActions()&&(e.length>0&&e.push(null),this.isMaximizable&&this._maximizeRestoreAction&&e.push(this._maximizeRestoreAction),this.isCollapsible&&this._collapseExpandAction&&e.push(this._collapseExpandAction),this.properties&&this.properties._globalActionsSupplier&&(e=e.concat(this.properties._globalActionsSupplier.getActions())),this._closeAction&&e.push(this._closeAction)),e},_updateStandardActionLabels:function(){this._maximizeRestoreAction&&(this._maximizeRestoreAction.text=this.properties.get(_.IS_MAXIMIZED)?C.restore:C.maximize),this._collapseExpandAction&&(this._collapseExpandAction.text=this.properties.get(_.IS_COLLAPSED)?C.expand:C.collapse)}});return E.getPreferredHeight=function(){if(!E._preferredHeight){var e=new E({id:"dummyTitleBar",title:"Dummy Title"});c.set(e.toggleNode,{position:"static"}),c.set(e.titleNode,{position:"static"}),c.set(e.actionsNode,{position:"static"}),s.place(e.domNode,n.body()),c.set(e.domNode,{visibility:"hidden"}),this._preferredHeight=l.getMarginBox(e.domNode).h,n.body().removeChild(e.domNode),e.destroy()}return E._preferredHeight},E}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(212),i(227),i(228),i(210),i(211),i(217),i(213),i(221),i(257),i(206),i(384),i(248),i(238),i(231),i(317),i(331),i(288),i(354),i(542),i(879),i(1287),i(464),i(1047),i(1722),i(655),i(2869),i(344),i(355),i(387),i(882),i(656),i(561),i(773),i(775),i(488),i(1724),i(1726),i(2873),i(774),i(1727),i(1728),i(209),i(562)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U,W,G,z){var q=e([V,P,j,M,k],{Fixed:void 0,showSingleDocumentTab:!0,Dynamic:void 0,tabPosition:"top",tabContainerClass:x,baseClass:"documentContainer",_selectionCount:0,_subContainerCount:0,_maximizeUpdateDepth:0,constructor:function(){this._selectionOrder={},this._lastRegionForGroup={},this._groupWatches={}},postMixInProperties:function(){var e=this;this.inherited(arguments),delete this.Dynamic,this.groupRegistry||(this.groupRegistry=new I),this.typeInfo&&(this.groupingFacet="documentType",Object.keys(this.typeInfo).forEach((function(t){e.groupRegistry.register("documentType",t,new w(e.typeInfo[t]))}))),this._isChildContainer||(this.selectionManager||(this.selectionManager=new R),this.selectionManager.registerContainer(this),this.own(this.selectionManager.watch(R.SELECTED_CHILD,(function(t,i,n){var o;e.containsDocument(n)&&(o=e._getGroupId(n)),e._updateSelectedGroup(o)})))),this.showSingleChildTab=this.showSingleDocumentTab},postCreate:function(){var e=this;this.inherited(arguments),this._updateBackground(),this.watch("animationEnabled",(function(t,i,n){e._getChildContainers().forEach((function(e){e.set("animationEnabled",n)}))})),this.watch(H.GRID_SIZE,(function(t,i,n){e._updateRegions(),e.notifyStateWatchers(q.ARRANGEMENT,this._getArrangementFromGridSize(i),this._getArrangementFromGridSize(n)),(n.w>1||n.h>1)&&e._clearPreMaximizeState()}));var t=function(){e._getTabContainers().forEach((function(t){e._updatePlusActions(t)}))};this.own(this.groupRegistry.on(I.PROPERTIES_ADDED,t)),this.own(this.groupRegistry.on(I.PROPERTIES_REMOVED,t)),this.groupRegistry.getIds(this.groupingFacet).forEach((function(t){var i=e.groupRegistry.getProperties(e.groupingFacet,t);i.retainEmptySubContainer&&e._addGroupWatches(t,i)})),this.own(this.groupRegistry.on(I.PROPERTIES_ADDED,(function(t,i,n){t==e.groupingFacet&&n.retainEmptySubContainer&&e._addGroupWatches(i,n)}))),this.own(this.groupRegistry.on(I.PROPERTIES_REMOVED,(function(t,i,n){t==e.groupingFacet&&n.retainEmptySubContainer&&e._removeGroupWatches(i)})))},buildRendering:function(){this.inherited(arguments),this._isChildContainer||a.add(this.domNode,"rootContainer"),this._containedGroupId&&a.add(this.domNode,"groupContainer"),this.placeHolderText&&(this._addPlaceHolder(),this._setPlaceHolderText(this.placeHolderText))},startup:function(){this._started||(this.inherited(arguments),this._startingState&&this._restoreStartingState())},destroyRecursive:function(){this.selectionManager&&this.selectionManager.unregisterContainer(this),this.inherited(arguments)},addChild:function(e){var t,i,n,o,r,a,s,l,c,d,u,h,p,f,g=-1;if(!this._isInternalAdd){if(this._startingState&&this._restoreStartingState(),(t=this._getProperties(e))||(t=e),this.groupingFacet?(i=t[this.groupingFacet],t.setId=i,i&&(n=this.groupRegistry.getProperties(this.groupingFacet,i),t.__showHeader=!1!==n.showGroupHeader,null!=n._showGroupHeaderOverride&&(t.__showHeader=n._showGroupHeaderOverride))):delete t.setId,t.childId||(t.childId=this._generateChildId(t)),void 0!==this._targetTile)g=this._targetTile,delete this._targetTile;else if(this._targetSubContainer)s=this._targetSubContainer,this._unbindChildProperties(e,t),s.addWithProperties(e,t),t.isInGroupTab=!0,delete this._targetSubContainer;else if(i)if(t.set(N.TITLE_SHORTENING_ALLOWED,!!n.get(w.SHRINK_TABS_TO_FIT)),this._isAddingBack||(e.own(n.watch(w.SHRINK_TABS_TO_FIT,(function(e,i,n){t.set(N.TITLE_SHORTENING_ALLOWED,n)}))),this._addGroupWatches(i,n)),r=this._pendingState?this._pendingState.nestings||this._pendingState.subContainers:null,this.isRestoringState()&&r){for(c=0;c<r.length;c++)if(o=r[c],this._stateIncludesDocument(o,t,n.constrainToSubContainer)&&(a=this.getGrandChildren((function(e,t){var i=o.nestingId||o.containerId;return t.childId===i}))).length>0&&(s=a[0],this._unbindChildProperties(e,t),s.addWithProperties(e,t),t.isInGroupTab=!0,this.isRestoringState()&&!this._areAnyTabContainersRestoringState())){this.endStateRestore();break}}else this.getDocumentCount(i)?(l=this._getMostRecent(i)).child&&l.child.isInstanceOf(q)?(s=l.child,this._unbindChildProperties(e,t),s.addWithProperties(e,t),t.isInGroupTab=!0):void 0===t.tile&&(g=l.tile):this.hasChildContainer(i)?(s=this._getChildContainers(i)[0],this._unbindChildProperties(e,t),s.addWithProperties(e,t)):this._tileCount<=2&&(d=this._getPreferredRegion(i),1==this._tileCount&&void 0!==d&&"center"!==d?(g=0,(u=this.getChildInTile(0).get(F.SHOWING_CHILD))&&(h=this._getGroupId(u),p=this._getPreferredRegion(h),this._areCorrespondingRegions(d,p)||(this._isSplittingForAdd=!n.suppressInitialFocus,g=this._splitTile(0,d),this._isSplittingForAdd=!1,f=!0))):g=this._getTileFromRegion(d));else void 0===t.tile&&(g=this._chooseTile())>=0&&!this.getChildInTile(g).isEmpty()&&(g=this._getMostRecent().tile);i&&!s&&(n.constrainToSubContainer||n.defaultTiling&&!this.getDocumentCount(i))&&((void 0===g||g<0)&&(g=0),s=this._addSubContainer(i,n,g),this._unbindChildProperties(e,t),s.addWithProperties(e,t),t.isInGroupTab=!0),void 0!==g&&[].splice.call(arguments,1,0,g)}if(s)this._isInternalAdd||this._isAddingBack||setTimeout(function(){this.emit(L.CHILD_ADDED,e,t)}.bind(this),0);else{var m=this.isRestoringState();this.inherited(arguments),t&&n&&t.get(N.IS_SELECTED)&&n.setForWindow(window,w.LAST_SELECTED,e),!this._started||m||!t||n&&n.suppressInitialFocus||t.set(N.IS_SELECTED,!0),f&&this._updateRegions()}this._isInternalAdd||(this._updateBackground(),this._updateRecentDocumentSizes())},getDocuments:function(e){var t=this,i=[];return this._gatherDocuments(i,(function(i){return!e||t._getGroupId(i)===e})),i},getDocumentCount:function(e){return this.getDocuments(e).length},isEmpty:function(){return 0===this.getDocumentCount()},containsDocument:function(e){return e&&o.isDescendant(e.domNode,this.domNode)},getShowingDocuments:function(){var e=this,t=[];return this._gatherDocuments(t,(function(t){var i=e._getProperties(t);return i&&i.isShowing})),t},getContainingRegion:function(e){if(1===this._tileCount)return"center";if(2===this._tileCount){var t=this._getTileContainingChild(e);return 2===this.gridSize.w?t?"right":"left":t?"bottom":"top"}return""},moveDocument:function(e,t){this._getProperties(e).set(N.REGION,t)},setPreferredRegionsToDefault:function(){this._lastRegionForGroup={}},removeAll:function(e){this._getChildContainers().forEach((function(t){t.removeAll(e)})),this.inherited(arguments)},removeGroup:function(e){this.getDocuments(e).forEach(i.hitch(this,"removeChild"))},closeDocument:function(e,t){B.getOwningTabContainer(e).closeChild(e,t)},closeGroup:function(e){this._closingGroupId=e;var t=this._closeDocuments(this.getDocuments(e));return delete this._closingGroupId,t},closeAll:function(){return this._closeDocuments(this.getDocuments())},clear:function(){this._closeDocuments(this.getDocuments(),!0),this._eliminateEmptySubContainers(),this.set(H.GRID_SIZE,{w:1,h:1})},refreshShowingDocuments:function(){var e=this;this._getTabContainers().forEach((function(t){var i=t.get(F.SHOWING_CHILD);i&&(i.isInstanceOf(q)?i.refreshShowingDocuments():e._getProperties(i).set(N.IS_SHOWING,!0))}))},canMaximizeLocally:function(e){return!this._isRestoringFromMaximize&&(!!this._isMaximizing||!this._getProperties(e).get(N.IS_MAXIMIZED))&&(this._tileCount>1||this._getProperties(e).get(N.IS_SHOWING)&&!this._isPopulatingMenu)},canRestoreLocally:function(e){let t=0;return this._preMaximizeState&&(t=this._preMaximizeState.tileCount),!this._isMaximizing&&(!!this._isRestoringFromMaximize||this._getProperties(e).get(N.IS_MAXIMIZED))&&(t>1||this._preMaximizeState&&this._preMaximizeState.nestings&&this._preMaximizeState.nestings.length>0||!!this._getGroupProperties(e,this._getProperties(e)).panelIds&&!!this._preMaximizeState)},maximizeLocally:function(e){var t,i=this._getProperties(e);this._tileCount>1&&(this._isChangingTiling=!0,this._isChildContainer?(t=this._getRootContainer())._preMaximizeState||(t._preMaximizeState=t.getState()):this._preMaximizeState||(this._preMaximizeState=this.getState()),this.set(H.GRID_SIZE,{w:1,h:1})),i.set(N.IS_SHOWING,!0),setTimeout((function(){i.set(N.IS_SELECTED,!0)}),0),this._isChangingTiling=!1},restoreLocally:function(e){this._preMaximizeState&&(this._isChangingTiling=!0,this.setState(this._preMaximizeState),this.endStateRestore(),delete this._preMaximizeState,this._isChangingTiling=!1)},_subTileGroup:function(e,t){var i,n=this._getChildContainers(e);n.length>0?n[0].set(H.GRID_SIZE,t):(t.w>1||t.h>1)&&(i=this.getDocuments(e)).length&&this._extractToSubContainer(i,this._getTileContainingChild(i[0]),t)},_moveGroup:function(e,t){var i=this,n=this._getChildContainers(e);n.length>0?this._moveChild(n[0],this._getTileContainingChild(n[0]),t,!0):this.getDocuments(e).forEach((function(e){i._getProperties(e).set(N.TILE,t)})),this.eliminateEmptyTiles()},nextChild:function(e,t){if(this.domNode.classList.contains("hideAllChildren"))return null;var i=e?this.getTileContaining(e)+1:0;return i<this._tileCount?this.getChildInTile(i):null},previousChild:function(e,t){var i=e?this.getTileContaining(e)-1:this._tileCount-1;return i>=0?this.getChildInTile(i):null},getState:function(e,t){var n=this,o=this.inherited(arguments);e||(o.emptyTileCount=this.getEmptyTileCount()),this._selectionOrder&&(o.selectionOrder=this._selectionOrder),this._containedGroupId&&(o.groupId=this._containedGroupId);var r=this._getChildContainers(t);if(r.length&&(o.nestings=[],r.forEach((function(t){var i=t.getState(e);i.nestingId=n._getProperties(t).childId,t._updateChildStates(i,e),o.nestings.push(i)}))),Object.keys(this._lastRegionForGroup).length&&(o.groupRegions=i.clone(this._lastRegionForGroup)),e){var a,s,l,c;for(a=0;a<o.tileOccupancy.length;a++)for(l=o.tileOccupancy[a].children,s=0;s<l.length;s++)void 0!==(c=this._selectionOrder[l[s].id])&&(l[s].selectionOrder=c);this._preMaximizeState&&(o.preMaximizeState=this._preMaximizeState)}return this._updateChildStates(o,e),o},setState:function(e){var t=this;if(this._started||e===this._startingState){this._isInSetState=!0,e.groupRegions&&Object.keys(e.groupRegions).forEach((function(i){t._lastRegionForGroup[i]||(t._lastRegionForGroup[i]=e.groupRegions[i])})),e.preMaximizeState&&(this._preMaximizeState=e.preMaximizeState),e.selectionOrder&&(this._selectionOrder=e.selectionOrder);var i=[];this._removeDocumentsRecursive(i),this.inherited(arguments);var n,o,r,a,s=e.nestings||e.subContainers;s&&s.forEach((function(i){var n=t.groupRegistry.getProperties(t.groupingFacet,i.groupId),o=i.groupId,r=t._createSubContainer(o,n),a=t._createSubContainerProperties(r,o,n);a.childId=i.nestingId||i.containerId;var s=t._getTileForChildFromState(e,a.childId);t._addToTabContainer(s,r,a,void 0,!0,!0),t._bindChildProperties(r,a),r.setState(i)})),this._isAddingBack=!0,i.forEach((function(i){e.closeExtraDocuments&&t._getTileForChildFromState(e,i.properties.childId)<0?i.properties.set(N.IS_OPEN,!1):t.addWithProperties(i.widget,i.properties)})),this._isAddingBack=!1;var l=this._getRootContainer();if(e.tileStates&&!e.tileOccupancy&&(e.tileOccupancy=e.tileStates),e.tileOccupancy)for(n=0;n<e.tileOccupancy.length;n++)for(r=e.tileOccupancy[n].children,o=0;o<r.length;o++)void 0!==(a=r[o].selectionOrder)&&(this._selectionOrder[r[o].id]=a,l&&a>l._selectionCount&&(l._selectionCount=a));this._isInSetState=!1}else this._startingState=e},_restoreStartingState:function(){this.setState(this._startingState),delete this._startingState,this._endStateRestorePending&&(this.endStateRestore(),delete this._endStateRestorePending)},isRestoringState:function(){return this._isInSetState||this.inherited(arguments)},endStateRestore:function(){if(this._startingState)this._endStateRestorePending=!0;else if(this._pendingState){var e=this._pendingState;this.inherited(arguments),this._eliminateEmptySubContainers();var t=this._getRootContainer();t._preMaximizeState&&e.emptyTileCount>=this.getEmptyTileCount()||this._isSettingTileCoverage||this._isSettingGridSize||e&&e.retainEmptyTiles||this.eliminateEmptyTiles();var i=this;this.getShowingDocuments().forEach((function(e){var t=i._getProperties(e),n=i._getGroupProperties(e,t);n&&!n.getForWindow(window,w.LAST_SELECTED)&&n.setForWindow(window,w.LAST_SELECTED,e)}))}},_stateIncludesDocument:function(e,t,i){var n=t.childId;if(i&&e.groupId===t.setId)return!0;var o;if(this._getTileForChildFromState(e,n)>=0)return!0;var r=e.nestings||e.subContainers;if(r)for(o=0;o<r.length;o++)if(this._stateIncludesDocument(r[o],t,i))return!0;return!1},_updateChildStates:function(e,t){var i=this,n=this._getRootContainer(),o=this._getChildInfoMap();e.tileOccupancy.forEach((function(e){if(t){var r=[];e.children.forEach((function(e){var t=o[e.id],n=t?i._getGroupProperties(t.widget,t.properties):null;n&&!n.willReopen||r.push(e)})),e.children=r}e.children.forEach((function(e){var t=o[e.id];t&&!t.properties.documentId&&(e.id=n._generateChildId(t.properties))}))}))},_getChildInfoMap:function(){var e={};return this.getGrandChildren((function(t,i){return t.isInstanceOf(q)||(e[i.childId]={widget:t,properties:i}),!1})),e},_generateChildId:function(e){var t="";return t=this._appendGroupToId(this.groupingFacet,e,t),t+=e.documentId?e.documentId:e.title},_appendGroupToId:function(e,t,i){if(e){var n=t[e];i+=n+"_";var o=this.groupRegistry.getProperties(e,n);i=this._appendGroupToId(o.subGroupingFacet,t,i)}return i},_removeDocumentsRecursive:function(e){var t=this,i=[];this._getTabContainers().forEach((function(e){t._removeChildrenFromTabContainer(e,i)})),i.forEach((function(i){i.widget.isInstanceOf(q)?i.widget._removeDocumentsRecursive(e):(i.properties[t._getUnbindingKey(i.widget)](),e.push(i))}))},_areAnyTabContainersRestoringState:function(){var e,t,i=this.inherited(arguments);if(!i)for(t=this._getChildContainers(),e=0;e<t.length&&!i;e++)i=t[e].isRestoringState();return i},_addChildWatches:function(e,t,i){if(this.inherited(arguments),!this._widgets[e.id].isInstanceOf(q)){var n=this,o=e.id,r=function(e,t,i){var r,s,l,c;if(i){var d=n._getRootContainer();if(!d)return;for((r=n._getGroupProperties(n._widgets[o],n._properties[o]))&&r.setForWindow&&r.setForWindow(window,w.LAST_SELECTED,n._widgets[o]),s=d._selectionCount++,n._selectionOrder[n._properties[o].childId]=s,c=n;c&&c._isChildContainer;)(r=(l=c._getParentContainer())._getGroupProperties(n._widgets[o],n._properties[o]))&&r.setForWindow&&r.setForWindow(window,w.LAST_SELECTED,n._widgets[o]),l._selectionOrder[l._getProperties(c).childId]=s,c=l;if(n._getGroupId(n._widgets[o])){var u=B.getOwningTabContainer(n._widgets[o]).getTabForChild(n._widgets[o]);u&&a.add(u.domNode,"selectedGroup")}}},s=n._properties[o].preferredWatch?n._properties[o].preferredWatch(N.IS_SELECTED,r):n._properties[o].watch(N.IS_SELECTED,r);s.test="DocumentContainer._addChildWatches.selectWatch",i.push(s);var l=n._properties[o].watch(N.REGION,(function(e,t,i){var r;n._isUpdatingRegions||i===t||("center"===i?2===n._tileCount&&setTimeout((function(){var e=n._isUpdatingRegions;n._isUpdatingRegions=!0,n._properties[o].set(N.REGION,n._getRegionFromTile(n._getTileContainingChild(n._widgets[o]))),n._isUpdatingRegions=e}),0):1===n._tileCount?r=n._splitTile(0,i):2===n._tileCount&&(r=n._getTileFromRegion(i)),void 0!==r&&n._moveChild(n._widgets[o],1-r,r,n._properties[o].get(N.IS_SHOWING)||n.getChildInTile(r).isEmpty()))}));i.push(l);var c=n._properties[o].watch(N.IS_MAXIMIZED,(function(e,t,i){for(var r in n._maximizeUpdateDepth||(i?n._maximize(n._widgets[o]):n._restore(n._widgets[o])),n._widgets)n._updateMaximizeButton(n._widgets[r])}));i.push(c)}},_addGroupWatches:function(e,t){var i=this;this._groupWatches[e]||(this._groupWatches[e]=[],this._groupWatches[e].push(t.watch(N.IS_MAXIMIZED,(function(t,n,o){var r=i._getChildContainers(e);r.length>0&&(i._maximizeUpdateDepth||(o?i._maximize(r[0]):i._restore(r[0])),i._updateMaximizeButton(r[0]))}))),this._groupWatches[e].push(t.watch(N.TILE,(function(n,o,r){i._tileUpdateDepth||(r<0||r>=i._tileCount?(i._tileUpdateDepth++,t.set(N.TILE,i._getTileContainingGroup(e)),i._tileUpdateDepth--):i._moveGroup(e,r))}))),this._groupWatches[e].push(t.watch(w.SUB_GRID_SIZE,(function(t,n,o){o&&!i._isUpdatingSubContainerGridSize&&i._subTileGroup(e,o)}))),this._groupWatches[e].push(t.watch(w.IS_OPEN,(function(n,o,r){if(r&&t.constrainToSubContainer&&!t.documentCount&&!i.hasChildContainer(e)){var a=t.tile;void 0===a&&(a=i._chooseTile()),void 0===a&&(a=0),i._addSubContainer(e,t,a)}else r||i.closeGroup(e).then((function(){i._getChildContainers(e).forEach((function(e){i._eliminateSubContainer(e)}))}),(function(){setTimeout((function(){t.set(w.IS_OPEN,!0)}),0)}))}))))},_removeGroupWatches:function(e){var t=this._groupWatches[e];t&&(t.forEach((function(e){e.remove()})),delete this._groupWatches[e])},_setArrangementAttr:function(e){if(e!==this.get("arrangement"))switch(e){case q.NO_SPLIT:this.set(H.GRID_SIZE,{w:1,h:1});break;case q.LEFT_RIGHT_SPLIT:this.set(H.GRID_SIZE,{w:2,h:1});break;case q.TOP_BOTTOM_SPLIT:this.set(H.GRID_SIZE,{w:1,h:2})}},_getArrangementAttr:function(){return this._getArrangementFromGridSize(this.gridSize)},_getArrangementFromGridSize:function(e){var t=q.CUSTOM_TILING,i=e.w*e.h;return 1===i?t=q.NO_SPLIT:2===i&&(t=2===e.w?q.LEFT_RIGHT_SPLIT:q.TOP_BOTTOM_SPLIT),t},_setTabPositionAttr:function(e){this._setTabContainerProperty(F.TAB_POSITION,this.tabPosition,e)},_getTabPositionAttr:function(){return this._getTabContainerProperty(F.TAB_POSITION,"top")},_setTabContainerProperty:function(e,t,i){this._getTabContainers().forEach((function(t){t.set(e,i)})),this._getChildContainers().forEach((function(t){t.set(e,i)})),this.tabProperties[e]=i,this.notifyStateWatchers(F.TAB_POSITION,t,this.get(F.TAB_POSITION)),this.get(e)!==t&&this.emit(L.STATE_CHANGED)},_getTabContainerProperty:function(e,t){var i,n=this._getTabContainers(),o=0===n.length?t:n[0].get(e);for(i=1;i<n.length;i++)if(n[i].get(e)!==o){o="mixed";break}var r=this._getChildContainers();for(i=0;i<r.length;i++)if(r[i].get(e)!==o){o="mixed";break}return o},_setPlaceHolderTextAttr:function(e){this.placeHolderText=e,this.domNode&&(e?(this._placeHolder||this._addPlaceHolder(),this._setPlaceHolderText(e)):this._placeHolder&&this._removePlaceHolder())},_addPlaceHolder:function(){this._placeHolder=s.create("div",{id:this.id+"_placeHolder"},this.domNode),a.add(this.domNode,"placeHolderContainer"),a.add(this._placeHolder,"placeHolder")},_removePlaceHolder:function(){this._placeHolder&&(s.destroy(this._placeHolder),delete this._placeHolder)},_setPlaceHolderText:function(e){this._placeHolder&&(this._placeHolder.textContent=e)},_createTabContainer:function(){var e=this;this.tabProperties.tabAnimationEnabled=this.animationEnabled,this.tabProperties.displayToolTipsOnTruncatedTabs=!0,this.groupingFacet&&this.groupRegistry&&(this.tabProperties.actionsMenuCreator=i.hitch(this,"_createSetActionsMenu"),this.tabProperties.groupPropertiesFetcher=i.hitch(this,"_getGroupProperties")),this._isChildContainer&&(this.tabProperties.isContentBorderVisible=!0);var t,n=this.inherited(arguments);if(D.preventDefaultContextMenu(n.containerNode,!1),(!0===this.offerMaximizeButton||void 0===this.offerMaximizeButton&&n.hideSingleTab)&&(t=s.create("div",{id:n.id+"_maximizeButton"}),a.add(t,"maximizeButton"),r.set(t,"title",z.maximize),o.setSelectable(t,!1),D.preventFocus(t),h(t,"click",(function(){var t=n.get(F.SHOWING_CHILD);t&&e._toggleMaximize(t)})),n.setUpperRightOverlay(t,(function(t){var i=n.get(F.SHOWING_CHILD);return i&&(e.offerMaximizeButton||void 0===e.offerMaximizeButton&&!t&&(M.canMaximizeGlobally(i)||M.canRestoreGlobally(i)))}))),this._updatePlusActions(n),!this._containedGroupId){n._actionsButton=this._createActionsButton(n,1),this._updateActionsButtonLocation(n);var l=this._createActionsButton(n,2);n.setGripNeighbor(l),this._createActionsMenu(n,[n._actionsButton,l])}return n.own(n.watch(F.SHOWING_CHILD,(function(t,i,o){if(i){var r=e._getProperties(i);r.get(N.IS_MAXIMIZED)&&(e._maximizeUpdateDepth++,r.set(N.IS_MAXIMIZED,!1),o&&e._getProperties(o).set(N.IS_MAXIMIZED,!0),e._maximizeUpdateDepth--)}e._updatePlusActions(n)}))),n.own(n.watch(F.TAB_POSITION,(function(t,i){e.notifyStateWatchers(F.TAB_POSITION,i,e.get(F.TAB_POSITION)),e._updateActionsButtonLocation(n)}))),n.own(h(n.tablist.domNode,"dblclick",i.hitch(this,"_handleTabDoubleClick",n))),this._createTabContextMenu(n),n},_handleTabDoubleClick:function(e,t){var i=this._getEnclosingTab(e,t.target);i&&i.widget&&i.widget.domNode&&this._toggleMaximize(i.widget)},_toggleMaximize:function(e){M.canMaximizeGlobally(e)?this._maximize(e):M.canRestoreGlobally(e)&&this._restore(e)},_createActionsButton:function(e,t){var n=document.createElement("div");n.setAttribute("id",e.id+"ActionsButton"+t),a.add(n,"actionsButton");var r=document.createElement("div");return r.setAttribute("id",e.id+"ActionsButtonWrapper"+t),r.setAttribute("role","button"),r.setAttribute("aria-haspopup","true"),r.setAttribute("title",i.replace(z.childActions,{placeholder:z.document})),r.appendChild(n),a.add(r,"actionsButtonWrapper"),o.setSelectable(r,!1),D.preventFocus(r,!0),r.addEventListener("focus",(function(){r.classList.add("actionsButtonFocused")})),r.addEventListener("blur",(function(){r.classList.remove("actionsButtonFocused")})),r.tabIndex=-1,r},_updateActionsButtonLocation:function(e){"top"===e.tabPosition||"bottom"===e.tabPosition?e._tabBar.setPostNeighbor(e._actionsButton):e._tabBar.getPostNeighbor()===e._actionsButton&&e._tabBar.setPostNeighbor(null)},_createTabContextMenu:function(e){var t=this,i=e.tablist.domNode,n=new _({id:i.id+"Menu",targetNodes:[i,"#"+i.id+" *"]});e.own(n),n.willOpenCallback=function(i){var o,r=t._getEnclosingTab(e,i.target);if(r)o=t._getContextFromWidget(r.widget);else{var a=e.get(F.SHOWING_CHILD);o=t._getContextFromWidget(a)}t._populateMenu(e,n,o)}},_createActionsMenu:function(e,i){var n=this,o=new _({id:e.id+"ActionsMenu",targetNodes:i});return e.own(o),i.forEach((function(e){h(e,f.press,(function(e){var i=!o.domNode.parentElement||"none"===c.get(o.domNode.parentElement,"display");if((u.isLeft(e)||"touchstart"===e.type)&&i){t.stop(e),o.open({target:e.currentTarget});var n=e.currentTarget;n.setAttribute("aria-expanded","true"),o.own(o.on("close",(function(){n.removeAttribute("aria-expanded")})))}}))})),o.willOpenCallback=function(){var t=e.get(F.SHOWING_CHILD);n._populateMenu(e,o,n._getContextFromWidget(t))},o},_createSetActionsMenu:function(e,t,i){var n,o,r=this;"string"==typeof t?(o=t,n=this._getContextForSet(e,t)):(o=this._getProperties(t).childId,n=this._getContextFromWidget(t));var a=new _({id:o+(i?"ContextMenu":"ActionsMenu"),targetNodes:[]});return a.willOpenCallback=function(){r._populateMenu(e,a,n)},a},_populateMenu:function(e,t,i){var n,o,r,a,s=this;if(this._clearMenu(t),this._isPopulatingMenu=!0,i.isDocument&&(n=i.children[0],o=this._getProperties(n),this.groupingFacet&&(l=o[this.groupingFacet])&&(r=this.groupRegistry.getProperties(this.groupingFacet,l)),o.actions&&(E._addMenuItems(t,o.actions),t.addChild(new y)),(a=this._createMaximizeDocumentMenuItem(n,o))&&t.addChild(a),this._getFullscreenFunction(o)&&t.addChild(this._createFullscreenDocumentMenuItem(n,o)),this._getUndockFunction(o)&&o.enableDockControls&&t.addChild(this._createUndockDocumentMenuItem(n,o)),this._getDockFunction(o)&&o.enableDockControls&&t.addChild(this._createDockDocumentMenuItem(n,o)),l&&this._getUndockFunction(r)&&r.enableDockControls&&t.addChild(this._createUndockGroupMenuItem(l,r)),l&&this._getDockFunction(r)&&r.enableDockControls&&t.addChild(this._createDockGroupMenuItem(l,r)),this._isClosable(n)&&(t.addChild(this._createCloseDocumentMenuItem(n,o)),l&&this._getRegisteredGroupCount()>1&&this._isAnyInGroupClosable(l)&&t.addChild(this._createCloseGroupMenuItem(l,r)))),(i.subContainer||i.children.length>1)&&(l=i.subContainer?i.subContainer._containedGroupId:this._getGroupId(i.children[0]),r=this.groupRegistry.getProperties(this.groupingFacet,l),i.subContainer&&(a=this._createMaximizeSetMenuItem(r,i.subContainer))&&t.addChild(a),this._getUndockFunction(r)&&r.enableDockControls&&t.addChild(this._createUndockSetMenuItem(r,l,i.children)),l&&this._getDockFunction(r)&&r.enableDockControls&&t.addChild(this._createDockGroupMenuItem(l,r)),(this._isAnyClosable(i.children)||0===i.children.length)&&t.addChild(this._createCloseSetMenuItem(r,i.children))),this._getRegisteredGroupCount()<=1&&this._hasClosableDocument()&&this.getDocumentCount()>1&&t.addChild(this._createCloseAllMenuItem()),t.getChildren().length>0&&t.addChild(new y),this.userTilingEnabled&&this.getDocumentCount()>1){if(this._getRegisteredGroupCount()>1)if(i.isDocument&&!this.restrictToSingleSplit){var l,c=i.children[0];if(l=this._getGroupId(c)){r=this.groupRegistry.getProperties(this.groupingFacet,l);var d=B.getOwningTabContainer(c),u=[];d.getChildrenInTabOrder().forEach((function(e){s._getGroupId(e)===l&&u.push(e)})),u.length>1&&t.addChild(this._createTileSetSubMenu(t,u,void 0,r,this.getTileContaining(d)))}}else(i.subContainer||i.children.length>1&&!this.restrictToSingleSplit)&&t.addChild(this._createTileSetSubMenu(t,i.children,i.subContainer,r,this.getTileContaining(e)));t.addChild(this._createTileAllSubMenu(t))}t.addChild(this._createTabPositionSubMenu(e)),this._isPopulatingMenu=!1},_createFullscreenDocumentMenuItem:function(e,t){return this._createFullscreenMenuItem(e,t)},_createMaximizeDocumentMenuItem:function(e,t){return this._createMaximizeMenuItem(e,t.title)},_createUndockDocumentMenuItem:function(e,t){var n=this,o=new b({text:i.replace(z.undockSomething,{placeholder:t.title}),tag:"undockDocument"});return h(o.domNode,"click",(function(){n._getUndockFunction(t)(e)})),o},_createDockDocumentMenuItem:function(e,t){var n=this,o=new b({text:i.replace(z.dockSomething,{placeholder:t.title}),tag:"dockDocument"});return h(o.domNode,"click",(function(){n._getDockFunction(t)()})),o},_createCloseDocumentMenuItem:function(e,t){var n=this,o=new b({text:i.replace(z.closeSomething,{placeholder:t.title}),tag:"closeDocument"});return h(o.domNode,"click",(function(){n.closeDocument(e)})),o},_createUndockGroupMenuItem:function(e,t){var n=this,o=new b({text:i.replace(z.undockSomething,{placeholder:t.collectiveLabel}),tag:"undockGroup"});return h(o.domNode,"click",(function(){n._getUndockFunction(t)()})),o},_createDockGroupMenuItem:function(e,t){var n=this,o=new b({text:i.replace(z.dockSomething,{placeholder:t.collectiveLabel}),tag:"dockGroup"});return h(o.domNode,"click",(function(){n._getDockFunction(t)()})),o},_createCloseGroupMenuItem:function(e,t){var n=this,o=new b({text:i.replace(z.closeSomething,{placeholder:t.collectiveLabel}),tag:"closeAll"});return h(o.domNode,"click",(function(){n.closeGroup(e)})),o},_createMaximizeSetMenuItem:function(e,t){return this._createMaximizeMenuItem(t,e.collectiveLabel)},_createFullscreenMenuItem:function(e,t){var i=this,n=new b({text:z.fullscreenMode,tag:"fullscreenDocument"});return h(n.domNode,"click",(function(){i._getFullscreenFunction(t)(e)})),n},_createMaximizeMenuItem:function(e,t){var i,n=this;return M.canMaximizeGlobally(e)?(i=new b({text:z.maximize,tag:"maximize"+(e._isChildContainer?"Group":"Document")}),h(i.domNode,"click",(function(){n._maximize(e)}))):M.canRestoreGlobally(e)&&(i=new b({text:z.restore,tag:"restore"+(e._isChildContainer?"Group":"Document")}),h(i.domNode,"click",(function(){n._restore(e)}))),i},_createUndockSetMenuItem:function(e,t,n){var o=this,r=new b({text:i.replace(z.undockSomething,{placeholder:e.collectiveLabel}),tag:"undockGroup"});return h(r.domNode,"click",(function(){o._getUndockFunction(e)(n)})),r},_createCloseSetMenuItem:function(e,t){var n=this,o=new b({text:i.replace(z.closeSomething,{placeholder:e.collectiveLabel}),tag:"closeAll"});return h(o.domNode,"click",(function(){if(0===t.length){var i=e[n.groupingFacet];n._getChildContainers(i).forEach((function(e){n._eliminateSubContainer(e)})),0===e.documentCount&&e.set(w.IS_OPEN,!1)}else n._closeDocuments(t)})),o},_createTileSetSubMenu:function(e,t,i,n,o){var r=this;return this._createTileSubMenu(e,i,t.length,!!i,n.collectiveLabel,n.defaultTiling,(function(e){if(0!==e.columns&&0!==e.rows){var a={w:e.columns,h:e.rows};i?!r._isSingleGrid(a)||n.defaultTiling||n.constrainToSubContainer?i.set(H.GRID_SIZE,a):r._eliminateSubContainer(i):r._isSingleGrid(a)||r._extractToSubContainer(t,o,a)}}))},_isSingleGrid:function(e){return 1===(e.h||e.rows)&&1===(e.w||e.columns)},_createTileAllSubMenu:function(e){var t=this;return this._createTileSubMenu(e,this,this._getChildCount(),!0,void 0,void 0,(function(e){0!==e.columns&&0!==e.rows&&t.set(H.GRID_SIZE,{w:e.columns,h:e.rows})}))},_createTileSubMenu:function(e,t,n,o,r,a,s){var l,c=t?t.get(H.GRID_SIZE):{w:1,h:1},d=new v;if(o&&(l=new T({text:z.singleTileLabel,checked:1===c.w&&1===c.h,closeMenuOnClick:!0,tag:"Single"}),h(l.domNode,"click",(function(){s({rows:1,columns:1})})),d.addChild(l)),l=new T({text:z.leftRightSplitLabel,checked:2===c.w&&1===c.h,closeMenuOnClick:!0,tag:"LeftRight"}),h(l.domNode,"click",(function(){s({rows:1,columns:2})})),d.addChild(l),l=new T({text:z.topBottomSplitLabel,checked:1===c.w&&2===c.h,closeMenuOnClick:!0,tag:"TopBottom"}),h(l.domNode,"click",(function(){s({rows:2,columns:1})})),d.addChild(l),a&&t&&(l=new T({text:"Default Tiling",checked:V.areStatesSimilar(a,t.getState()),closeMenuOnClick:!0,tag:"Default"}),h(l.domNode,"click",(function(){t.setState(a)})),d.addChild(l)),!this.restrictToSingleSplit){var u=new W({occupancy:n});u.on(W.SELECTION_CHANGED,(function(t){e.close(),s(t)})),d.addChild(new y),d.addChild(u)}return new C({text:!t||t._isChildContainer?r?i.replace(z.subtileSomething,{placeholder:r}):z.subtile:z.tileAll,menu:d,tag:!t||t._isChildContainer?"tileGroup":"tileAll"})},_createCloseAllMenuItem:function(){var e=this,t=new b({text:z.closeAll,tag:"closeAll"});return h(t.domNode,"click",(function(){e.closeAll()})),t},_createTabPositionSubMenu:function(e){var t=this,i=new v,n={};return["top","bottom","left","right"].forEach((function(o){n[o]=new T({text:z[o],closeMenuOnClick:!0,checked:o===e.tabPosition,buttonGroup:"tabArrangementButtonGroup",tag:"TabPosition"+o.substr(0,1).toUpperCase()+o.substr(1)}),h(n[o].domNode,"change",(function(){var i,n;e.set(F.TAB_POSITION,o),(i=t.get(F.TAB_POSITION))!==t.tabPosition&&(n=t.tabPosition,t._set(F.TAB_POSITION,i),"mixed"===i&&(t.tabPosition=n),t.layout(),t.emit(L.STATE_CHANGED))})),i.addChild(n[o])})),new C({text:z.tabPosition,menu:i,tag:"tabPosition"})},_clearMenu:function(e){e.getChildren().forEach((function(e){e.destroyRecursive()}))},_getContextFromWidget:function(e){var t={};return e&&e.isInstanceOf(q)?(t.children=e.getGrandChildren(),t.subContainer=e):e?(t.children=[e],t.isDocument=!0):t.children=[],t},_getContextForSet:function(e,t){var i=this,n={children:[]};return e.getChildrenInTabOrder().forEach((function(e){i._getGroupId(e)===t&&n.children.push(e)})),n},_getEnclosingTab:function(e,t){for(;t;){if(a.contains(t,"tab"))return m.byNode(t);t=t.parentNode}return null},_closeDocuments:function(e,t){var o=this,r=[],a=[],s=[],l=new n;return e.forEach((function(e){var n=o._getProperties(e);n&&n.closable&&n.canClose&&!t?(a.push(e),r.push(i.hitch(n,"canClose"))):s.push(e)})),U(r).then((function(){a.forEach((function(e){o.closeDocument(e,!0)})),s.forEach((function(e){(t||o._isClosable(e))&&o.closeDocument(e,t)})),l.resolve()}),(function(){l.reject()})),l},_isClosable:function(e){return!1!==this._getProperties(e).closable},_isAnyInGroupClosable:function(e){return this._isAnyClosable(this.getDocuments(e))},_hasClosableDocument:function(){return this._isAnyClosable(this.getDocuments())},_isAnyClosable:function(e){var t;for(t=0;t<e.length;t++)if(this._isClosable(e[t]))return!0;return!1},_gatherDocuments:function(e,t){this.getGrandChildren().forEach((function(i){i.isInstanceOf(q)?i._gatherDocuments(e,t):t(i)&&e.push(i)}))},_maximize:function(e){this._isMaximizing=!0,M.maximizeGlobally(e),this._maximizeUpdateDepth++,this._getProperties(e).set(N.IS_MAXIMIZED,!0),this._maximizeUpdateDepth--,this._isMaximizing=!1},_restore:function(e){this._isRestoringFromMaximize=!0;var t=this._getProperties(e);M.restoreGlobally(e),this._maximizeUpdateDepth++,t.set(N.IS_MAXIMIZED,!1),this._maximizeUpdateDepth--,this._isRestoringFromMaximize=!1},ancestorMaximizeUpdated:function(e){var t,i;e?1===this._tileCount&&(t=this.getChildInTile(0).get(F.SHOWING_CHILD))&&(i=this._getProperties(t),t.isInstanceOf(q)&&(i=i.groupProperties),this._maximizeUpdateDepth++,i.set(N.IS_MAXIMIZED,!0),this._maximizeUpdateDepth--):this._isRestoringFromMaximize||this._clearPreMaximizeState()},_clearPreMaximizeState:function(){delete this._preMaximizeState,this._maximizeUpdateDepth++,this.getGrandChildren((function(e,t){return e.isInstanceOf(q)&&(t=t.groupProperties),t.set(N.IS_MAXIMIZED,!1),!1})),this._maximizeUpdateDepth--},_getParentContainer:function(){var e=this.getParent();return this._isChildContainer&&e&&e.isInstanceOf(F)&&(e=e.getParent())&&e.isInstanceOf(q)?e:null},_getRootContainer:function(){for(var e=this;e&&e._isChildContainer;)e=e._getParentContainer();return e},_getChildContainers:function(e){return this.getGrandChildren((function(t){return t.isInstanceOf(q)&&(!e||t._containedGroupId===e)}))},hasChildContainer:function(e){return this._getChildContainers(e).length>0},_getChildCount:function(){return this.getGrandChildren().length},_getGroupCount:function(){return Object.keys(this._getDocumentCensus()).length},_getDocumentCensus:function(){var e=this,t={};return this.getGrandChildren().forEach((function(i){if(i.isInstanceOf(q))t[i._containedGroupId]=i.getDocumentCount();else{var n,o=e._getProperties(i);e.groupingFacet&&(n=o[e.groupingFacet]),t[n]?t[n]++:t[n]=1}})),t},_getGroupId:function(e,t){return t||(t=this._getProperties(e)),e.isInstanceOf(q)?e._containedGroupId:this.groupingFacet&&t?t[this.groupingFacet]:""},_getGroupProperties:function(e,t){var i=this._getGroupId(e,t);return i?this.groupRegistry.getProperties(this.groupingFacet,i):null},_getRegisteredGroupCount:function(){return this.groupingFacet?this.groupRegistry.getIds(this.groupingFacet).length:0},_getFullscreenFunction:function(e){return e.getForWindow&&e.getForWindow(window,"_fullscreen")},_getUndockFunction:function(e){return e.getForWindow&&e.getForWindow(window,"_undock")},_getDockFunction:function(e){return e.getForWindow&&e.getForWindow(window,"_dock")},_getTileContainingGroup:function(e){var t,i,n=this,o=-1;for(t=0;t<this._tileCount;t++)(i=this.getChildInTile(t))&&!i.isEmpty()&&i.getChildrenInTabOrder().forEach((function(i){n._getGroupId(i)==e&&(-1===o?o=t:o!=t&&(o=-2))}));return-2===o&&(o=-1),o},_getMostRecent:function(e,t){var i,n,o,r=this,a={tile:-1},s=-1,l=this._getTabContainers();for(i=0;i<l.length;i++)l[i].getChildrenInTabOrder().forEach((function(l){n=r._properties[l.id],void 0===(o=r._selectionOrder[n.childId])&&(o=0),o>s&&(!t||n.get(N.IS_SHOWING))&&(!e||n.groupId===e||r.groupingFacet&&n[r.groupingFacet]===e)&&(s=o,a.tile=i,a.child=l)}));return a},_addToTabContainer:function(e,t,i){this.inherited(arguments);var n=this._getRegionFromTile(e);n&&(this._isUpdatingRegions=!0,i.set(N.REGION,n),this.groupingFacet&&this._updateGroupRegion(i[this.groupingFacet]),this._isUpdatingRegions=!1)},_handleChildRemove:function(e,t,i,n){var o,r,a,s,l=this;if(this._isTemporaryRemove||(delete this._selectionOrder[i.childId],i.get("isUndocking")||i.get("isDocking")||(i.set(N.IS_OPEN,!1),delete i.index)),this.inherited(arguments),!this._isTemporaryRemove&&((o=this._getGroupProperties(t,i))&&o.getForWindow&&o.setForWindow&&o.getForWindow(window,w.LAST_SELECTED)===t&&setTimeout((function(){o.getForWindow(window,w.LAST_SELECTED)===t&&o.setForWindow(window,w.LAST_SELECTED,l._getMostRecent(l._getGroupId(t,i),!0).child)}),0),!this._destroyed&&!this._beingDestroyed)){if(n){for(a=0;!s&&a<this._tileCount;a++,e++)e>=this._tileCount&&(e=0),s=this.getChildInTile(e).get(F.SHOWING_CHILD);s&&this._getProperties(s).set(N.IS_SELECTED,!0)}this._updateBackground(),this.groupingFacet&&(r=i[this.groupingFacet],this._updateGroupRegion(r),this.getDocumentCount(r)||o&&o.retainEmptySubContainer||this._removeGroupWatches(r))}this._isTemporaryRemove||!1===i.get(N.DESTROY_ON_CLOSE)||t.destroyRecursive()},isChangingTiling:function(){return this._isChangingTiling},_prepareForGridSizeChange:function(e){var t=this._getGroupCount(),i=this.getSelectedDocument(),n=this.inherited(arguments);return n.groupCount=t,n.selectedDocument=i,n.oldTileCount=this._tileCount,this._clearDocumentSelection(i),n},_reactToGridSizeChange:function(e){this.inherited(arguments),this._reselectedDocument(e.selectedDocument),this._updateBackground()},_distributeChildrenFollowingGridSizeChange:function(e){var t,i,n,o,r,a;e.childInfo.length&&e.groupCount>=this._tileCount?(t=this,i=-1,r=0,1===e.oldTileCount&&2===this._tileCount&&(a=this.getChildInTile(0).getChildrenInTabOrder()).length&&(i=0,r=a.length,n=this._getGroupId(a[r-1])),e.childInfo.forEach((function(e){e&&((o=t._getGroupId(e.widget,e.properties))!==n&&i<t._tileCount-1&&(i++,r=0,n=o),delete e.properties.index,t._addToTabContainer(i,e.widget,e.properties,void 0,!r,!0),r++)}))):this.inherited(arguments)},_prepareForMerge:function(e,t){var i=this.getSelectedDocument(),n=this.inherited(arguments)||{};return n.selectedDocument=i,this._clearDocumentSelection(i),n},_reactToMerge:function(e,t,i){this.inherited(arguments),this._reselectedDocument(i.selectedDocument)},_prepareForSplit:function(e,t){var i=this.getSelectedDocument(),n=this.inherited(arguments)||{};return n.selectedDocument=i,this._clearDocumentSelection(i),n},_reactToSplit:function(e,t,i){this.inherited(arguments),this._isSplittingForAdd||this._reselectedDocument(i.selectedDocument)},eliminateTile:function(){var e=this.getSelectedDocument();this._clearDocumentSelection(e);var t=this.inherited(arguments);return this._reselectedDocument(e),t},getSelectedDocument:function(){var e=this.selectionManager?this.selectionManager.get(R.SELECTED_CHILD):null;return e&&!this.containsDocument(e)&&(e=null),e},_clearDocumentSelection:function(e){e&&this.selectionManager&&(this.selectionManager.blockSuccession(),this.selectionManager.setSelected(e,!1),g.set("activeStack",[]),this.selectionManager.unblockSuccession())},_reselectedDocument:function(e){var t=this;e&&this.selectionManager&&this.containsDocument(e)&&setTimeout((function(){t.selectionManager.setSelected(e,!0)}),0)},_extractToSubContainer:function(e,t,i){this._getRootContainer()._isChangingTiling=!0;var n=this,o=this._getGroupId(e[0]),r=this.groupRegistry.getProperties(this.groupingFacet,o),a=this._createSubContainer(o,r),s=this._createSubContainerProperties(a,o,r);n._bindChildProperties(a,s),this._addToTabContainer(t,a,s,void 0,!0,!0);var l=[];this._getTabContainers().forEach((function(t){n._removeChildrenFromTabContainer(t,l,(function(t){return e.indexOf(t)>=0}))})),l.forEach((function(e){e.properties.index=void 0,e.properties.isInGroupTab=!0,n._transferPropertyBinding(e.widget,e.properties,n,a),a._addToTabContainer(0,e.widget,e.properties,void 0,!1,!0)})),s.set(N.IS_SHOWING,!0),a.set(H.GRID_SIZE,i),a._updateBackground(),this._clearPreMaximizeState(),this._getRootContainer()._isChangingTiling=!1,this.emit(L.STATE_CHANGED)},_createSubContainer:function(e,t){var i=this,n=new q({id:i.id+e+this._subContainerCount++,groupingFacet:t.subGroupingFacet,groupRegistry:this.groupRegistry,_containedGroupId:e,_isChildContainer:!0,tabPosition:t.subContainerTabPosition||this.tabPosition,animationEnabled:this.animationEnabled});return n.watch(H.GRID_SIZE,(function(e,o,r){i._isUpdatingSubContainerGridSize=!0,t.set(w.SUB_GRID_SIZE,r),i._isUpdatingSubContainerGridSize=!1,1!==r.w||1!==r.h||t.defaultTiling||t.constrainToSubContainer||i._eliminateSubContainer(n)})),n.on(L.CHILD_REMOVED,(function(e,o){i.emit(L.CHILD_REMOVED,e,o),n.domNode&&n.isEmpty()&&(t.retainEmptySubContainer||i._eliminateSubContainer(n)),delete i._widgets[e.id],delete i._properties[e.id]})),n.on(L.STATE_CHANGED,(function(){i.emit(L.STATE_CHANGED)})),n.watch(F.TAB_POSITION,(function(e,t){i.notifyStateWatchers(F.TAB_POSITION,t,i.get(F.TAB_POSITION))})),n},_createSubContainerProperties:function(e,t,i){var n=this,o=t+Math.random(),r=new p({title:i.title,groupId:t,groupProperties:i,childId:o,setId:o,isSubContainer:!0});return e.own(i.watch(N.TITLE,(function(e,t,i){r.title=i}))),e.own(r.watch(N.IS_SELECTED,(function(t,i,n){if(n){r.set(N.IS_SHOWING,!0);var o=e._getMostRecent();o.child&&e._getProperties(o.child).set(N.IS_SELECTED,!0)}}))),e.own(r.watch(N.TILE,(function(e,t,o){n._tileUpdateDepth++,i.set(N.TILE,o),n._tileUpdateDepth--}))),e.own(r.watch(N.IS_MAXIMIZED,(function(e,t,o){n._maximizeUpdateDepth++,i.set(N.IS_MAXIMIZED,o),n._maximizeUpdateDepth--}))),r},_addSubContainer:function(e,t,i){var n=this._createSubContainer(e,t),o=this._createSubContainerProperties(n,e,t);return t.defaultTiling?n.setState(t.defaultTiling):t.subGridSize&&(t.subGridSize.w>1||t.subGridSize.h>1)&&n.set(H.GRID_SIZE,t.subGridSize),this._bindChildProperties(n,o),this._addToTabContainer(i,n,o,void 0,!0,!0),n},_transferPropertyBinding:function(e,t,i,n){i._unbindChildProperties(e,t),n._bindChildProperties(e,t),n.groupingFacet?t.setId=t[n.groupingFacet]:delete t.setId},_eliminateSubContainer:function(e,t){this._getRootContainer()._isChangingTiling=!0;var i=this,n=[];void 0===t&&(t=this._getTileContainingChild(e)),e._getTabContainers().forEach((function(t){e._removeChildrenFromTabContainer(t,n)})),n.forEach((function(n){i._transferPropertyBinding(n.widget,n.properties,e,i),n.properties.index=void 0,n.properties.isInGroupTab=!1,i._addToTabContainer(t,n.widget,n.properties,void 0,!0,!0)}));var o=this._getProperties(e);this.getChildInTile(t).removeChild(e),this._unbindChildProperties(e,o),e.destroyRecursive(),this._updateBackground(),o.groupProperties.set(w.SUB_GRID_SIZE,void 0),this.emit(L.STATE_CHANGED),this._getRootContainer()._isChangingTiling=!1},_eliminateEmptySubContainers:function(){var e=this;this._getChildContainers().forEach((function(t){if(t._eliminateEmptySubContainers(),t.isEmpty()){var i=e._getProperties(t).groupProperties;i&&i.retainEmptySubContainer||e._eliminateSubContainer(t)}}))},_areCorrespondingRegions:function(e,t){return e===t||this._normalizeRegion(e)===this._normalizeRegion(t)},_normalizeRegion:function(e){return"top"===e?e="left":"bottom"===e&&(e="right"),e},_getRegionFromTile:function(e){var t,i=["left","right","top","bottom"];return this._tileCount<=2&&(t=this.gridSize.w>1?i[e]:this.gridSize.h>1?i[e+2]:"center"),t},_getTileFromRegion:function(e){switch(e){case"top":return 0;case"bottom":return 1;case"left":return 0;case"right":return 1}return 0},_updatePlusActions:function(e){var t,n,o,r,a,s,l,c=this,d=this._getRootContainer();if(d&&this.showSingleDocumentTab){if(r=[],(t=e.get(F.SHOWING_CHILD))&&d.groupingFacet&&(n=e.getChildProperties(t)[d.groupingFacet],(o=this.groupRegistry.getProperties(d.groupingFacet,n))&&!o._disablePlusAction&&(o.plusAction?r.push(o.plusAction):o.plusActions&&(r=r.concat(o.plusActions)))),r.length>0||!t){var u=r.length>0;this.groupRegistry.getIds(d.groupingFacet).forEach((function(e){c._isChildContainer&&e!==c._containedGroupId||(o=c.groupRegistry.getProperties(d.groupingFacet,e))&&!o._disablePlusAction&&(o.plusAction?o.isDefault&&!u?r.splice(0,0,o.plusAction):r.push(o.plusAction):o.plusActions&&(r=o.isDefault&&!u?o.plusActions.slice().concat(r):r.concat(o.plusActions)))}))}for(a=0;a<r.length;a++)(s=i.clone(r[a])).callback=i.partial((function(t){for(l=c;l._isChildContainer;)l._getParentContainer()._targetSubContainer=l,l=l._getParentContainer();l.endStateRestore(),c._targetTile=c.getTileContaining(e),t.callback.apply(null,Array.prototype.slice.call(arguments,1))}),r[a]),r[a]=s;e.set(F.PLUS_ACTIONS,r)}},_updateMaximizeButton:function(e){var t=B.getOwningTabContainer(e);if(t){var i=t.getUpperRightOverlay();i&&(this._isRestoringFromMaximize||!this._isMaximizing&&M.canMaximizeGlobally(e)?(a.replace(i,"maximizeButton","restoreButton"),r.set(i,"title",z.maximize)):(this._isMaximizing||!this._isRestoringFromMaximize&&M.canRestoreGlobally(e))&&(a.replace(i,"restoreButton","maximizeButton"),r.set(i,"title",z.restore)))}},_updateBackground:function(){this.isEmpty()&&1==this._tileCount?a.add(this.domNode,"empty"):a.remove(this.domNode,"empty")},_updateRegions:function(){var e,t,i,n,o,r=this,a={};if(this._tileCount<=2){for(this._isUpdatingRegions=!0,e=0;e<this._tileCount;e++)i=this._getRegionFromTile(e),(t=this.getChildInTile(e))&&!t.isEmpty()&&t.getChildrenInTabOrder().forEach((function(e){(n=r._getProperties(e)).set(N.REGION,i),r.groupingFacet&&(o=n[r.groupingFacet])&&(a[o]?i!==a[o]&&(a[o]="__MIXED__"):a[o]=i)}));Object.keys(a).forEach((function(e){"__MIXED__"===(i=a[e])?delete r._lastRegionForGroup[e]:"center"!==i&&(r._lastRegionForGroup[e]=i)})),this._isUpdatingRegions=!1}},_updateGroupRegion:function(e){var t,i;this._closingGroupId!==e&&2==this._tileCount&&((t=this._getTileContainingGroup(e))>=0?(i=this._getRegionFromTile(t),this._lastRegionForGroup[e]=i):this.getDocumentCount(e)&&delete this._lastRegionForGroup[e])},_getPreferredRegion:function(e){return this._lastRegionForGroup[e]||this.groupRegistry.getProperties(this.groupingFacet,e).defaultRegion||"left"},_updateSelectedGroup:function(e){e!==this._selectedGroupId&&(this._selectedGroupId&&this._getGroupTabs(this._selectedGroupId).forEach((function(e){a.remove(e.domNode,"selectedGroup")})),e&&this._getGroupTabs(e).forEach((function(e){a.add(e.domNode,"selectedGroup")})),this._selectedGroupId=e)},_getGroupTabs:function(e){var t,i,n=this,o=this.getGrandChildren((function(t,i){return n._getGroupId(t,i)===e})),r=[];for(i=0;i<o.length;i++)(t=B.getOwningTabContainer(o[i]).getTabForChild(o[i]))&&r.push(t);return r},layout:function(){this.inherited(arguments),this._updateRecentDocumentSizes(),this._updateChildInnerBounds()},_updateChildInnerBounds:function(){var e=this._getChildInfoMap();for(var t in e){var i=e[t];i.properties&&i.properties.updateInnerBounds&&i.properties.updateInnerBounds()}},_updateRecentDocumentSizes:function(){var e=this._getRootContainer(),t=D.getAncestorOfClass(this,S);t&&(t.isResizingViaDrag()||t.isAnimating())||e&&a.contains(e.domNode,"hideAllChildren")||this._getTabContainers().forEach((function(e){var t=e.get(F.SHOWING_CHILD);if(t){var i=l.getMarginBox(t.domNode);e.getChildrenInTabOrder().forEach((function(t){if(!t.isInstanceOf(q)){var n=e.getChildProperties(t);n.__recentWidth=i.w,n.__recentHeight=i.h}}))}}))},emit:function(e,t,i){(e===L.CHILD_ADDED||e===L.CHILD_REMOVED)&&i&&i.isSubContainer||this.inherited(arguments)},getProperties:function(e){return this._getProperties(e)}});return q.TAB_POSITION=F.TAB_POSITION,q.GRID_SIZE=H.GRID_SIZE,q.ROW_WEIGHTS=H.ROW_WEIGHTS,q.COLUMN_WEIGHTS=H.COLUMN_WEIGHTS,q.TILE_COVERAGE=H.TILE_COVERAGE,q.LAST_SELECTED=w.LAST_SELECTED,q.DOCUMENT_COUNT=w.DOCUMENT_COUNT,q.PLACE_HOLDER_TEXT="placeHolderText",q.ARRANGEMENT="arrangement",q.NO_SPLIT=0,q.LEFT_RIGHT_SPLIT=1,q.TOP_BOTTOM_SPLIT=2,q.CUSTOM_TILING=3,q.getEnclosingContainer=function(e){for(var t=B.getOwningTabContainer(e);t&&!t.isInstanceOf(q);)t=t.getParent();return t},q.validateState=function(e){var t=V.validateState(e);if(t.isValid&&e.nestings)for(var i=0;i<e.nestings.length&&(t=q.validateState(e.nestings[i])).isValid;i++);return t},q}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(344),i(1717),i(488),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e([n],{Fixed:void 0,Dynamic:void 0,constructor:function(t){e.safeMixin(this,t),this.title||(this.title=this.collectiveLabel),this.collectiveLabel||(this.collectiveLabel=this.title),r.assert(this.title,"Neither title nor collectiveLabel specified for document group"),delete this.Fixed,delete this.Dynamic},setForWindow:function(e,t,i){this.inherited(arguments),this.set(t,i)},set:function(e,t){"string"==typeof e&&this[e]===t||this.inherited(arguments)}});return a.DOCUMENT_COUNT="documentCount",a.IS_MAXIMIZED=i.IS_MAXIMIZED,a.IS_OPEN=i.IS_OPEN,a.LAST_SELECTED="lastSelected",a.SUB_GRID_SIZE="subGridSize",a.TILE=i.TILE,a.SHRINK_TABS_TO_FIT=o.SHRINK_TABS_TO_FIT,a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i(224),i(203),i(227),i(228),i(217),i(213),i(223),i(204),i(206),i(245),i(242),i(279),i(277),i(1049),i(385)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return d("dijit-legacy-requires")&&g(0,(function(){e(["dijit/MenuItem","dijit/PopupMenuItem","dijit/CheckedMenuItem","dijit/MenuSeparator"])})),i("dijit.Menu",f,{constructor:function(){this._bindings=[]},targetNodeIds:[],selector:"",contextMenuForWindow:!1,leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(this.ownerDocumentBody):t.forEach(this.targetNodeIds,this.bindDomNode,this),this.inherited(arguments)},_iframeContentWindow:function(e){return h.get(this._iframeContentDocument(e))||this._iframeContentDocument(e).__parent__||e.name&&document.frames[e.name]||null},_iframeContentDocument:function(e){return e.contentDocument||e.contentWindow&&e.contentWindow.document||e.name&&document.frames[e.name]&&document.frames[e.name].document||null},bindDomNode:function(e){var t;if("iframe"==(e=n.byId(e,this.ownerDocument)).tagName.toLowerCase()){var i=e,r=this._iframeContentWindow(i);t=u.body(r.document)}else t=e==u.body(this.ownerDocument)?this.ownerDocument.documentElement:e;var a={node:e,iframe:i};o.set(e,"_dijitMenu"+this.id,this._bindings.push(a));var d=l.hitch(this,(function(e){var t=this.selector,n=t?function(e){return c.selector(t,e)}:function(e){return e},o=this;return[c(e,n(this.leftClickToOpen?"click":"contextmenu"),(function(e){e.stopPropagation(),e.preventDefault(),(new Date).getTime()<o._lastKeyDown+500||o._scheduleOpen(this,i,{x:e.pageX,y:e.pageY},e.target)})),c(e,n("keydown"),(function(e){(93==e.keyCode||e.shiftKey&&e.keyCode==s.F10||o.leftClickToOpen&&e.keyCode==s.SPACE)&&(e.stopPropagation(),e.preventDefault(),o._scheduleOpen(this,i,null,e.target),o._lastKeyDown=(new Date).getTime())}))]}));a.connects=t?d(t):[],i&&(a.onloadHandler=l.hitch(this,(function(){var e=this._iframeContentWindow(i),t=u.body(e.document);a.connects=d(t)})),i.addEventListener?i.addEventListener("load",a.onloadHandler,!1):i.attachEvent("onload",a.onloadHandler))},unBindDomNode:function(e){var t;try{t=n.byId(e,this.ownerDocument)}catch(e){return}var i="_dijitMenu"+this.id;if(t&&o.has(t,i)){for(var r,a=o.get(t,i)-1,s=this._bindings[a];r=s.connects.pop();)r.remove();var l=s.iframe;l&&(l.removeEventListener?l.removeEventListener("load",s.onloadHandler,!1):l.detachEvent("onload",s.onloadHandler)),o.remove(t,i),delete this._bindings[a]}},_scheduleOpen:function(e,t,i,n){this._openTimer||(this._openTimer=this.defer((function(){delete this._openTimer,this._openMyself({target:n,delegatedTarget:e,iframe:t,coords:i})}),1))},_openMyself:function(e){var t=e.target,i=e.iframe,o=e.coords,s=!o;if(this.currentTarget=e.delegatedTarget,o){if(i){var l=r.position(i,!0),c=this._iframeContentWindow(i),u=r.docScroll(c.document),h=a.getComputedStyle(i),f=a.toPixelValue,g=(d("ie")&&d("quirks")?0:f(i,h.paddingLeft))+(d("ie")&&d("quirks")?f(i,h.borderLeftWidth):0),m=(d("ie")&&d("quirks")?0:f(i,h.paddingTop))+(d("ie")&&d("quirks")?f(i,h.borderTopWidth):0);o.x+=l.x+g-u.x,o.y+=l.y+m-u.y}}else(o=r.position(t,!0)).x+=10,o.y+=10;var _=this,v=this._focusManager.get("prevNode"),b=this._focusManager.get("curNode"),y=!b||n.isDescendant(b,this.domNode)?v:b;function C(){_.refocus&&y&&y.focus(),p.close(_)}p.open({popup:this,x:o.x,y:o.y,onExecute:C,onCancel:C,orient:this.isLeftToRight()?"L":"R"}),this.focus(),s||this.defer((function(){this._cleanUp(!0)})),this._onBlur=function(){this.inherited("_onBlur",arguments),p.close(this)}},destroy:function(){t.forEach(this._bindings,(function(e){e&&this.unBindDomNode(e.node)}),this),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(2866),i(1718)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.DropDownMenu",n,{templateString:i,baseClass:"dijitMenu",_onUpArrow:function(){this.focusPrev()},_onDownArrow:function(){this.focusNext()},_onRightArrow:function(e){this._moveToPopup(e),e.stopPropagation(),e.preventDefault()},_onLeftArrow:function(e){this.parentMenu?this.parentMenu._isMenuBar?this.parentMenu.focusPrev():this.onCancel(!1):(e.stopPropagation(),e.preventDefault())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(344),i(774)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{addPanel:function(e,t){},removePanel:function(e,t){},getPanels:function(){return[]},getPanelProperties:function(){return[]},getPanelCount:function(){return 0},isEmpty:function(){return 0===this.getPanelCount()},isContainerCollapsed:function(){var e=this.getParent(),t=this.region;return!!(e&&t&&e.isCollapsed(t))},isContainerCollapsing:function(){var e=this.getParent(),t=this.region;return!!(e&&t&&e.isCollapsing(t))},isOrWasContainerCollapsed:function(e){return this.isContainerCollapsed()||this.region===e.region&&e.wasCollapsed},reCollapseContainer:function(e){if(!this.isContainerCollapsed()){var t=this.getParent(),i=t.animationEnabled;t.animationEnabled=!1,t.setFreeDimension(this.region,e.freeDimension),t.collapse(this.region),t.animationEnabled=i}},collapseChange:function(e){var t=this;if(!e&&this.collapsedWidget&&this.collapsedWidget.collapseAllChildrenImmediately(),e&&this._started){var i=this.getParent().getNonCollapsedFreeDimension(this.region);this.getPanelProperties().forEach((function(e){"left"===t.region||"right"===t.region?e.__recentWidth=i:e.__recentHeight=i}))}},hideOnTopPanels:function(){this.isContainerCollapsed()&&this._buttonBar&&this._buttonBar.collapseAllChildrenImmediately()},destroyRecursive:function(){this._buttonBar&&this._buttonBar.destroyRecursive(),this.inherited(arguments)},getDragInBox:function(){var e=t.position(this.isContainerCollapsed()?this.collapsedWidget.domNode:this.domNode);return e.l=e.x,e.t=e.y,e},dragIn:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={};return{loadFile:function(t){if(!e[t])return e[t]=!0,new Promise((e,i)=>{var n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.onload=()=>{e()},n.href=t,document.querySelector("head").append(n)})},loadFiles:function(e){return Promise.all(e.map(e=>this.loadFile(e)))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2883),i(2887),i(516),i(219),i(517),i(2922),i(2924),i(1732),i(1760),i(2930),i(1761),i(705),i(565),i(1762)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){n=n.default,r=r.default,(p=p.default).loadDefinition(JSON.parse(f));var g=new new e([u],{constructor:function(){this._viewModelManagerCache={}},getViewModelManager:function(e){var t=e.channelPrefix;return this._viewModelManagerCache.hasOwnProperty(t)?this._viewModelManagerCache[t]:this._createNewViewModelManager(e)},_createNewViewModelManager:function(e){var o=e.channelPrefix,r=new n({inChannel:o+"/MF0ViewModelManagerClient",outChannel:o+"/MF0ViewModelManagerServer"}),l=new mf.zero.Model;let c,u;e.preventSync||({syncModelPromise:c,modelSynchronizer:u}=this._syncModel(r,l));var h=new t,p=void 0;e.hasOwnProperty("commitStrategy")&&(p=e.commitStrategy);var f=void 0;f=e.hasOwnProperty("apiFactories")&&e.apiFactories?e.apiFactories:[];var g=h.getCommitStrategy(p),m=new i(g),_=new s,v=new d,b=new a(l,r,u,m,_,v,f);c&&this._handleSyncModelCompletion(c,b),this._viewModelManagerCache[o]=b;var y=b.addEventListener("destroyed",function(e){e.target;y.remove(),delete this._viewModelManagerCache[o]}.bind(this)),C=void 0;if(e.hasOwnProperty("plugins"))for(var T in C=e.plugins)C.hasOwnProperty(T)&&b.installPlugin(T,b);return b},_syncModel:function(e,t){o.isRunning()||o.start();var i=new r(t,e,void 0,void 0,!0);return o.subscribe(e.inChannel,(function(t){e.receive(t.data)}),e).then((function(){e._started=!0})),i.start(),{syncModelPromise:i.fetchModel(),modelSynchronizer:i}},_handleSyncModelCompletion:function(e,t){e.then((function(){t._mf0ChangeReportListener._isServerHandshakeCompleted=!0,h.fireSyncCompleted(t)}))}});return g.CommitStrategyTypes=l,g}),e,t),e.exports=o},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){(function(t){e.exports=function e(t,i,n){function o(a,s){if(!i[a]){if(!t[a]){if(r)return r(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[a]={exports:{}};t[a][0].call(c.exports,(function(e){var i=t[a][1][e];return o(i||e)}),c,c.exports,e,t,i,n)}return i[a].exports}for(var r=!1,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,t,i){var n=e("./v1"),o=e("./v4"),r=o;r.v1=n,r.v4=o,t.exports=r},{"./v1":4,"./v4":5}],2:[function(e,t,i){for(var n=[],o=0;o<256;++o)n[o]=(o+256).toString(16).substr(1);t.exports=function(e,t){var i=t||0,o=n;return o[e[i++]]+o[e[i++]]+o[e[i++]]+o[e[i++]]+"-"+o[e[i++]]+o[e[i++]]+"-"+o[e[i++]]+o[e[i++]]+"-"+o[e[i++]]+o[e[i++]]+"-"+o[e[i++]]+o[e[i++]]+o[e[i++]]+o[e[i++]]+o[e[i++]]+o[e[i++]]}},{}],3:[function(e,i,n){(function(e){var t,n=e.crypto||e.msCrypto;if(n&&n.getRandomValues){var o=new Uint8Array(16);t=function(){return n.getRandomValues(o),o}}if(!t){var r=new Array(16);t=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}i.exports=t}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,i){var n=e("./lib/rng"),o=e("./lib/bytesToUuid"),r=n(),a=[1|r[0],r[1],r[2],r[3],r[4],r[5]],s=16383&(r[6]<<8|r[7]),l=0,c=0;t.exports=function(e,t,i){var n=t&&i||0,r=t||[],d=void 0!==(e=e||{}).clockseq?e.clockseq:s,u=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:c+1,p=u-l+(h-c)/1e4;if(p<0&&void 0===e.clockseq&&(d=d+1&16383),(p<0||u>l)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=u,c=h,s=d;var f=(1e4*(268435455&(u+=122192928e5))+h)%4294967296;r[n++]=f>>>24&255,r[n++]=f>>>16&255,r[n++]=f>>>8&255,r[n++]=255&f;var g=u/4294967296*1e4&268435455;r[n++]=g>>>8&255,r[n++]=255&g,r[n++]=g>>>24&15|16,r[n++]=g>>>16&255,r[n++]=d>>>8|128,r[n++]=255&d;for(var m=e.node||a,_=0;_<6;++_)r[n+_]=m[_];return t||o(r)}},{"./lib/bytesToUuid":2,"./lib/rng":3}],5:[function(e,t,i){var n=e("./lib/rng"),o=e("./lib/bytesToUuid");t.exports=function(e,t,i){var r=t&&i||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[r+s]=a[s];return t||o(a)}},{"./lib/bytesToUuid":2,"./lib/rng":3}]},{},[1])(1)}).call(this,i(1053))},function(e,t,i){var n,o;n=[t,i(293),i(309),i(777)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(t),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),l=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._owner=t,this._property=i,this._collection=new Map}return s(e,[{key:"toString",value:function(){var e={},t=!0,i=!1,n=void 0;try{for(var o,r=this._collection[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;e[a[0]]=a[1]}}catch(e){i=!0,n=e}finally{try{!t&&r.return&&r.return()}finally{if(i)throw n}}return JSON.stringify(e)}},{key:"loadFromString",value:function(e){var t=!0,i=!1,n=void 0;try{for(var o,r=Object.entries(JSON.parse(e))[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;this._collection.set(a[0],a[1])}}catch(e){i=!0,n=e}finally{try{!t&&r.return&&r.return()}finally{if(i)throw n}}}},{key:"at",value:function(e){return this._collection.get(e)}},{key:"set",value:function(e){this._basicSet(e)}},{key:"find",value:function(e){var t=!0,i=!1,n=void 0;try{for(var o,r=this._collection[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;if(a[1]===e)return a[0]}}catch(e){i=!0,n=e}finally{try{!t&&r.return&&r.return()}finally{if(i)throw n}}}},{key:"has",value:function(e){return this._collection.has(e)}},{key:"genericAdd",value:function(e){this.insert(e)}},{key:"genericRemove",value:function(e){this.eraseValue(e)}},{key:"insert",value:function(e){o.default.isUndefined(e)||o.default.isUndefined(e[0])||o.default.isUndefined(this.at(e[0]))&&this._basicAdd(e)}},{key:"eraseValue",value:function(e){o.default.isUndefined(e)||this.erase(this.find(e))}},{key:"erase",value:function(e){return o.default.isUndefined(e)||!this._collection.has(e)?0:((0,n.modifying)(this),this._collection.delete(e),1)}},{key:"size",value:function(){return this._collection.size}},{key:"isEmpty",value:function(){return 0===this.size()}},{key:"clear",value:function(){var e=this;this._collection.forEach((function(t,i){return e.erase(i)}))}},{key:"forEach",value:function(e){this._collection.forEach(e)}},{key:Symbol.iterator,value:function(){return this._collection[Symbol.iterator]()}},{key:"_basicAdd",value:function(e){var t=e[0],i=e[1];this._collection.get(t)&&r.default.throwErr("UniquenessConstraint"),(0,n.modifying)(this),this._collection.set(t,i)}},{key:"_basicSet",value:function(e){var t=e[0],i=e[1];(0,n.modifying)(this),this._collection.set(t,i)}},{key:"_basicRemove",value:function(e){(0,n.modifying)(this);var t=e[0];this._collection.delete(t)}},{key:"_basicClear",value:function(){(0,n.modifying)(this),this._collection.clear()}},{key:"_copyContents",value:function(e){(0,n.modifying)(this),this._collection=new Map(e)}},{key:"_clone",value:function(){return new Map(this._collection)}}]),e}();e.default=l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(611)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isChanged=void 0,e.setModified=function(e,t){if(t){var i=void 0;return o.default.isString(t)?(i=e._changedProperties.has(t),e._changedProperties.add(t)):(i=e.extensionChanges.has(t.uuid))||e.extensionChanges.set(t.uuid,null),i}},e.isExtensionChanged=function(e,t){var i=e.model.getExtension(e.metaclass,t);return i&&i.isValid&&e.extensionChanges.has(i.uuid)};var n,o=(n=t)&&n.__esModule?n:{default:n};var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function(){function e(t,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.uuid=t,this.model=i,this.metaclass=n,this._changedProperties=new Set,this.isCreated=!1,this.isDestroyed=!1,this.extensionChanges=new Map}return r(e,[{key:"isEmpty",value:function(){return!this.isCreated&&!this.isDestroyed&&0===this._changedProperties.size&&0===this.extensionChanges.size}},{key:"isChanged",value:function(e){return!!e&&(!!this.metaclass.isA(e.owningType)&&s(this,e.name))}},{key:"revertUnchanged",value:function(e){return!this.isEmpty()}},{key:"getChangedProperties",value:function(){var e=this;return o.default.filter(this.metaclass.getAllAttributes(),(function(t){return s(e,t.name)}))}},{key:"getChangedExtensions",value:function(){var e=[],t=(0,i.getMetaRegistryModel)();return this.extensionChanges.forEach((function(i,n){var o=t.findElement(n);o&&e.push(o)})),e}},{key:"clearModified",value:function(e){this._changedProperties.delete(e)}}]),e}();function s(e,t){return e._changedProperties.has(t)}e.default=a,e.isChanged=s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(611)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeListener=function(e,t){-1===e._removedListeners.indexOf(t)&&e._removedListeners.push(t)},e.finalize=function(e){e.isDone||(e._changesProhibited=!1,e.isDone=!0,(0,t.transactionEnded)(e.model))}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(1741),i(1057),i(2897),i(1056),i(778),i(610)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notifyModifyingListeners=function(e){var t=void 0;c.default.forEach(e._listeners,(function(i){-1===e._removedListeners.indexOf(i)&&i.isModifier&&(t&&!e._haveChanges||(t=b(e),e._haveChanges=!1),t.isEmpty()||i.modifyOnCommit(t))}))},e.validateTransactionWithListeners=function(e){var t=void 0;return c.default.every(e._listeners,(function(i){if(-1!==e._removedListeners.indexOf(i)||!i.isValidator)return!0;t||(t=b(e));try{if(!t.isEmpty()&&!i.validateOnCommit(t))return!1}catch(e){return!1}return!0}))},e.notifyTransactionCommitted=function(e,t){var i=void 0;c.default.forEach(e._listeners,(function(n){-1===e._removedListeners.indexOf(n)&&n.isObserver&&(i||(i=b(e,t)),n.transactionCommitted(i))}))},e.createReport=b,e.emitEvents=function(e){c.default.forEach(e._deferredEvents,(function(e){try{e.invoker()}catch(e){}}))};var c=g(t),d=g(i),u=g(n),h=g(r),p=g(a),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(l);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var _=function(e){function t(e,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o._delta={},o._listeners=i,o._revertUnchanged=!1,o._deferredEvents=[],o.isDeep=!1,o.span=e.span.createChild("DeepTransaction"),o.span.addContext(f.info,"origin",n),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),m(t,[{key:"rollBack",value:function(){var e=this;this._changesProhibited=!0;try{if(!this._haveChanges)return mf.zero.TransactionResult.Reverted;var t=void 0;c.default.forEach(this._listeners,(function(i){-1===e._removedListeners.indexOf(i)&&i.isObserver&&(t||(t=b(e)),i.transactionCanceled(!1,t))}))}finally{(0,o.finalize)(this),this.model.transactionEffectsComplete()}return mf.zero.TransactionResult.CanceledNoRevert}},{key:"elementCreated",value:function(e){var t=v(this,e);if(t){if(this._delta[t]){var i=this.span.createChild("error");i.addContext(f.error,"conflictingUuid",t),i.addContext(f.error,"existingElement",this._delta[t]),i.addContext(f.error,"newElement",e),i.log(f.error,"UUID Conflict"),d.default.throwErr("UUIDConflict")}var n=new p.default(e.uuid,e.getModel(),e.getMetaClass());n.isCreated=!0,this._delta[t]=n}}},{key:"elementDestroying",value:function(e){var t=v(this,e);t&&(this._delta[t]||(this._delta[t]=(0,s.createStorage)(e)),this._delta[t].isDestroyed=!0,this._deletedElements[t]=e)}},{key:"elementModifying",value:function(e,t){if(t){var i=v(this,e);if(i){this._delta[i]||(this._delta[i]=(0,s.createStorage)(e));var n=this._delta[i];n.isCreated||n.isDestroyed||(0,a.setModified)(n,t)}}}},{key:"abandon",value:function(){this._listeners=[],this._deferredEvents=[],this.commit()}},{key:"eventEmitted",value:function(e){this._rollbackInProgress||(this._changesProhibited&&d.default.throwErr("ChangesProhibited"),this._deferredEvents.push(e))}}]),t}(u.default);function v(e,t){if(!c.default.isEmpty(e._listeners)||e._callback)return e._changesProhibited&&d.default.throwErr("ChangesProhibited"),!e._haveChanges&&e._callback&&e._callback(),e._haveChanges=!0,t.uuid}function b(e,t){var i=new h.default(e.model,e._delta,t,e._deferredEvents,e._revertUnchanged,e.origin,e.isDeep);return c.default.forEach(e._delta,(function(t,n){var o=t.isDestroyed?e._deletedElements[n]:e.model.findElement(n);i.processElement(o)})),i}e.default=_}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(566),i(1290),i(1291),i(1734),i(1735),i(1736),i(396),i(1295),i(564),i(1055)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isStructuredType=S,e.isPrimitiveType=I,e.makeGetter=function(e,t){var i="_"+t;return e.subsets?(r=g.default.get(e.fqn.slice(0,e.fqn.length-t.length-1)),a=e.hasCustomSubsetsFilter?r[t+"SubsetsFilter"]:function(t){return t.isInstOf(e.type)},s=B(e,!0),l=V(e.subsets.upper)?function(e){if(e)return[e]}:function(e){return e.getAllValues()},e.isSparse?V(e.upper)?function(){void 0===this[i]&&p.default.bind(s,this)();var t=p.default.filter(l(this[e.subsets.name]),a);if(t.length>0)return t[0]}:function(){return void 0===this[i]&&p.default.bind(s,this)(),this[i]._filter=a,this[i]}:V(e.upper)?function(){var t=p.default.filter(l(this[e.subsets.name]),a);if(t.length>0)return t[0]}:function(){return this[i]._filter=a,this[i]}):e.isDerived?(o="get"+A(t),function(){if(x(this),!this[o])throw new Error("Getter "+o+" not found");if(!(this[o]instanceof Function))throw new Error("Getter "+o+" not callable");return this[o]()}):H(e)?(n=g.default.getMetaElement(e.opposite.fqn))?function(){x(this);var e=(0,u.basicContainer)(this);if(e&&this.containerFeature===n)return e}:function(){x(this);var t=(0,u.basicContainer)(this);if(void 0===n&&(n=g.default.getMetaElement(e.opposite.fqn)),t&&this.containerFeature===n)return t}:function(){if(e.isSparse){var t=F(e,!0);return function(){x(this);var e=this[i];return void 0===e?(p.default.bind(t,this)(),this[i]):e}}return function(){return x(this),this[i]}}();var n;var o;var r,a,s,l},e.makeSetter=function(e,t,i){var n="_"+i,o=t.lower>="1"&&t.type!==C.default.JsonValue?function(e){null===e&&f.default.throwErr("EmptyValue",i)}:function(){},r=t.isSetOnce?function(e,t){p.default.isUndefined(e)||f.default.throwErr("CannotSetReadOnlyProperty",i),t&&f.default.throwErr("SealedDatatype")}:function(e,t){t&&f.default.throwErr("SealedDatatype")},a=(c="aboutToSet"+A(i),t.preconditionCheck?function(e,t){e[c]||f.default.throwErr("SetFunction",c),!1===e[c](t)&&f.default.throwErr("InvalidValue")}:function(){}),s=(l="didSet"+A(i),t.postconditionCheck?function(e,t){e[l]||f.default.throwErr("SetFunction",l),e[l](t)}:function(){});var l;var c;if(!V(t.upper))return function(){f.default.throwErr("NoSetterForCollections")};var d=function(e,t){var i=[];return p.default.forEach(e.properties,(function(e){O(t,e)&&i.push(e)})),i}(e,t),h=I(t.type,t.isPrimitive),m=t.isDataType,_=t.isEnumeration,v=H(t),b=G(t.fqn,t.isComposite),y=t.opposite;return t.subsets?V(t.subsets.upper)?function(e){this[t.subsets.name]=e}:function(){return f.default.throwErr("NoSetterForSubsets")}:t.isDerived?function(){var e="set"+A(i);return function(t){this[e](t)}}():0===d.length?h?m?p.default.partial((function(e,t){t!==this[n]&&(r(this[n],this.__isSealed),o(t),a(this,t),(0,u.notifyModifying)(this,i),t?(t.getMetaClass().qualifiedName!==e&&f.default.throwErr("NoDataTypeSlicing"),this[n]=t,this[n].__isSealed=!0):this[n]=t,s(this,t))}),t.type):_?function(e){if(e!==this[n]){r(this[n],this.__isSealed),o(e),a(this,e),(0,u.notifyModifying)(this,i);var l=void 0;(l=e instanceof Object&&e.getTypeName()===t.type?e:p.default.getObject(t.type).getItem(e))||p.default.isNull(e)?this[n]=l:f.default.throwErr("InvalidValue"),s(this,e)}}:function(e){e!==this[n]&&(r(this[n],this.__isSealed),o(e),a(this,e),(0,u.notifyModifying)(this,i),this[n]=e,s(this,e))}:y?v?function(e){if(e!==this[n]){r(this[n]),P(t),a(this,e),(0,u.checkCircularContainment)(this,e),(0,u.notifyModifying)(this,i),(0,u.isTopLevel)(this)||(0,u.makeUncontained)(this);var o=g.default.getMetaElement(t.opposite.fqn);e&&(0,u.inverseAdd)(e,this,o),(0,u.basicSetContainer)(this,e,o,i),s(this,e)}}:function(e){if(e!==this[n]){r(this[n]),P(t),a(this,e),(0,u.notifyModifying)(this,i);var o=g.default.getMetaElement(t.opposite.fqn);this[n]&&(0,u.inverseRemove)(this[n],this,o),e&&(0,u.inverseAdd)(e,this,o),this[n]=e,s(this,e)}}:b?function(e){e!==this[n]&&(r(this[n]),P(t),a(this,e),(0,u.notifyModifying)(this,i),this[n]=e,e&&(0,u.setContainedByThis)(this,e,g.default.getMetaElement(t.fqn)),s(this,e))}:function(e){e!==this[n]&&(r(this[n]),P(t),a(this,e),(0,u.notifyModifying)(this,i),this[n]=e,s(this,e))}:h?m?p.default.partial((function(e,t,l){l!==this[n]&&(r(this[n],this.__isSealed),o(l),a(this,l),N.call(this,e,l),D(this,e),(0,u.notifyModifying)(this,i),l.getMetaClass().qualifiedName!==t&&f.default.throwErr("NoDataTypeSlicing"),this[n]=l,this[n].__isSealed=!0,M(this,e),s(this,l))}),d,t.type):p.default.partial((function(e,t){t!==this[n]&&(r(this[n],this.__isSealed),o(t),a(this,t),N.call(this,e,t),D(this,e),(0,u.notifyModifying)(this,i),this[n]=t,M(this,e),s(this,t))}),d):y?v?p.default.partial((function(e,o){if(o!==this[n]){r(this[n]),p.default.bind(N,this)(e,o),P(t),a(this,o),(0,u.checkCircularContainment)(this,o),(0,u.notifyModifying)(this,i),(0,u.isTopLevel)(this)||(0,u.makeUncontained)(this),D(this,e);var l=g.default.getMetaElement(t.opposite.fqn);o&&(0,u.inverseAdd)(o,this,l),(0,u.basicSetContainer)(this,o,l,i),M(this,e),s(this,o)}}),d):p.default.partial((function(e,o){if(o!==this[n]){r(this[n]),p.default.bind(N,this)(e,o),P(t),a(this,o),(0,u.notifyModifying)(this,i),D(this,e);var l=g.default.getMetaElement(t.opposite.fqn);this[n]&&(0,u.inverseRemove)(this[n],this,l),this[n]=o,o&&(0,u.inverseAdd)(o,this,l),M(this,e),s(this,o)}}),d):b?p.default.partial((function(e,o){o!==this[n]&&(r(this[n]),p.default.bind(N,this)(e,o),P(t),a(this,o),(0,u.notifyModifying)(this,i),D(this,e),this[n]=o,o&&(0,u.setContainedByThis)(this,o,g.default.getMetaElement(t.fqn)),M(this,e),s(this,o))}),d):p.default.partial((function(e,o){o!==this[n]&&(r(this[n]),p.default.bind(N,this)(e,o),P(t),a(this,o),(0,u.notifyModifying)(this,i),D(this,e),this[n]=o,M(this,e),s(this,o))}),d)},e.makePropertyInitializer=F,e.makeSubsettedPropertyInitializer=B,e.isKeyIn=function(e,t){return p.default.some(t.properties,p.default.partial(O,e))},e.isSingleValued=V,e.isOptional=j,e.isDataType=function(e){return w(e,C.default.DataType)},e.isEnumeration=U,e.isAssociation=W,e.isSingleValuedAssociation=function(e,t){return W(e)&&V(t)},e.isMultiValuedAssociation=function(e,t){return W(e)&&!V(t)};var p=E(t),f=E(i),g=E(n),m=E(o),_=E(r),v=E(a),b=E(s),y=E(l),C=E(c),T=E(h);function E(e){return e&&e.__esModule?e:{default:e}}function S(e){return e&&e.getMetaClass&&e.getMetaClass()}function w(e,t){var i=S(g.default.getType(e));return i&&i.qualifiedName===t}function I(e,t){return e||f.default.throwErr("NoQualifiedName"),(0,d.isEmbeddedPrimitiveType)(e)||t||w(e,C.default.PrimitiveType)}function A(e){return e.charAt(0).toUpperCase()+e.slice(1)}function x(e){!1===e.isValid&&f.default.throwErr("InvalidObject",e.uuid,e.getMetaClass().qualifiedName)}function N(e,t){var i=this;p.default.forEach(e,(function(e){var n=e.opposite;n.isQualificationUnique&&(V(e.upper)?i[e.name]&&i[e.name][n.name][t]&&f.default.throwErr("UniquenessConstraint"):i[e.name].forEach((function(e){e&&e[n.name].at(t)&&f.default.throwErr("UniquenessConstraint")})))}))}function L(e,t,i){p.default.forEach(i,(function(i){var n=g.default.getMetaElement(i.opposite.fqn);V(i.upper)?e[i.name]&&t(e[i.name],e,n):e[i.name].forEach((function(i){return t(i,e,n)}))}))}function D(e,t){L(e,u.inverseRemove,t)}function M(e,t){L(e,u.inverseAdd,t)}function P(e,t){if(e.opposite){var i=e.opposite;if(i.isQualificationUnique&&t){var n=i.qualifiedBy,o=this[n.name];j(n.lower)?W(n.type)?t[i.name][o.uuid]&&f.default.throwErr("UniquenessConstraint"):o&&!t[i.name][o]||f.default.throwErr("UniquenessConstraint"):t[i.name][o]&&f.default.throwErr("UniquenessConstraint")}}}function O(e,t){return t.opposite&&t.opposite.qualifiedBy&&t.opposite.qualifiedBy.fqn===e.fqn}function R(e,t,i){switch(e){case C.default.Boolean:return i?t||!1:t;case C.default.Integer:case C.default.Integer8:case C.default.Integer16:case C.default.Integer64:case C.default.UInteger8:case C.default.UInteger16:case C.default.UInteger64:case C.default.Real:case C.default.UnlimitedNatural:return i?t||0:t;case C.default.String:case C.default.StdString:return i?t||"":t;case C.default.JsonValue:return i?t||null:t;case C.default.UUID:return i?t?"random"===t?p.default.generateRandomUuid():t:"00000000-0000-0000-0000-000000000000":t;default:if(U(e)){var n=p.default.getObject(e);return t&&(p.default.isString(t)&&!p.default.isUndefined(n[t])||f.default.throwErr("UnknownEnumeration",e+"."+t),t=n[t]),i?t||n.getDefaultValue():t}if(t||i){var o=g.default.get(e);return o?t?new o(t):new o:t||{}}}}function k(e,t,i){return p.default.forEach(i,(function(i){return e._basicAdd(R(t,i,!0))})),e}function F(e,t){if(e.isDerived&&e.isReadOnly)return function(){};var i="_"+e.name;if(e.isSparse&&!0!==t)return function(){this[i]=void 0};var n=I(e.type,e.isPrimitive);if(V(e.upper)){if(n){var o=!j(e.lower);return e.isDataType?function(){this[i]=R(e.type,e.defaultValue,o),this[i]&&(this[i].__isSealed=!0)}:e.type===C.default.StringToStringMap?function(){var t=g.default.getMetaElement(e.fqn);this[i]=new T.default(this,t)}:function(){this[i]=R(e.type,e.defaultValue,o)}}return function(){this[i]=void 0}}if(e.qualifiedBy){var r=function(t){var i=t[e.qualifiedBy.name],n=t.getMetaClass().getPropertyByName(e.qualifiedBy.name);return n&&n.isAssociation()&&(i=i?i.uuid:""),p.default.isUndefined(i)&&f.default.throwErr("UniquenessConstraint"),i};return e.isQualificationUnique?function(){var t=g.default.getMetaElement(e.fqn),n=e.opposite&&g.default.getMetaElement(e.opposite.fqn);this[i]=new v.default(r,this,t,n)}:function(){var t=g.default.getMetaElement(e.fqn),n=e.opposite&&g.default.getMetaElement(e.opposite.fqn);this[i]=new b.default(r,this,t,n)}}return e.isOrdered?n?function(){var t=g.default.getMetaElement(e.fqn),n=e.opposite&&g.default.getMetaElement(e.opposite.fqn);this[i]=new _.default(this,e.isUnique,t,n),k(this[i],e.type,e.defaultValue)}:function(){var t=g.default.getMetaElement(e.fqn),n=e.opposite&&g.default.getMetaElement(e.opposite.fqn);this[i]=new _.default(this,e.isUnique,t,n)}:n?function(){var t=g.default.getMetaElement(e.fqn),n=e.opposite&&g.default.getMetaElement(e.opposite.fqn);this[i]=new m.default(this,t,n),k(this[i],e.type,e.defaultValue)}:function(){var t=g.default.getMetaElement(e.fqn),n=e.opposite&&g.default.getMetaElement(e.opposite.fqn);this[i]=new m.default(this,t,n)}}function B(e,t){var i="_"+e.name;return e.isSparse&&!0!==t?function(){this[i]=void 0}:V(e.upper)?function(){}:function(){this[i]=new y.default(this[e.subsets.name],this,(function(t){return t.isInstOf(e.type)}))}}function H(e){return W(e.type)&&e.opposite&&G(e.opposite.type,e.opposite.isComposite)}function V(e){return"*"!==e&&(!(e=p.default.isNumber(e)?e:Number.parseInt(e))||1===e)}function j(e){return!(e=p.default.isNumber(e)?e:Number.parseInt(e))||0===e}function U(e){return w(e,C.default.Enum)}function W(e){var t=g.default.getType(e);return!t||t._isInstOfClass()}function G(e,t){return W(e)&&t}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{removeMessage:new e({type:"string",defaultValue:"",notInAction:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{dndEnabled:new e({type:"boolean",notInAction:!0,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{showDescription:new e({type:"boolean",defaultValue:!0,notInAction:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206)],o=i.dj.d(n,(function(e,t){return e(null,{value:"",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwTextInputValueMixin"),this._setValueAttr(this.get("value")),this._stopChangeEventBubbling()},_setValueAttr:function(e){this.setValueInDom(e),this._set("value",e)},_stopChangeEventBubbling:function(){this.own(t(this.inputNode,"change",(function(e){e.stopPropagation()})))},setValueInDom:function(e){void 0!==this.inputNode&&(this.inputNode.value=e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_triggerTypingEvent:function(e,t){e!==t&&this.emit("typing",{mwEventData:{currentContent:e,previousContent:t}})},_qeTyping:function(e,t){this.inputNode.value=e,this._triggerTypingEvent(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(203),i(3030),i(1783),i(1788)],o=i.dj.d(n,(function(e,t,i,n,o){return t("dijit.layout.TabContainer",i,{useMenu:!0,useSlider:!0,controllerWidget:"",_makeController:function(t){var i=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout");return new("string"==typeof this.controllerWidget?e.getObject(this.controllerWidget):this.controllerWidget)({id:this.id+"_tablist",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,class:i,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},t)},postMixInProperties:function(){this.inherited(arguments),this.controllerWidget||(this.controllerWidget="top"!=this.tabPosition&&"bottom"!=this.tabPosition||this.nested?n:o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(225),i(224),i(204),i(210),i(211),i(217),i(228),i(213)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=function(e){return 1==e.length&&"string"==typeof e[0]},d=function(e){var t=e.parentNode;t&&t.removeChild(e)},u=t.NodeList,h=u._adaptWithCondition,p=u._adaptAsForEach,f=u._adaptAsMap;function g(e){return function(t,i,n){return 2==arguments.length?e["string"==typeof i?"get":"set"](t,i):e.set(t,i,n)}}return n.extend(u,{_normalize:function(t,i){var o=!0===t.parse;if("string"==typeof t.template){var a=t.templateFunc||e.string&&e.string.substitute;t=a?a(t.template,t):t}var s=typeof t;return"string"==s||"number"==s?t=11==(t=r.toDom(t,i&&i.ownerDocument)).nodeType?n._toArray(t.childNodes):[t]:n.isArrayLike(t)?n.isArray(t)||(t=n._toArray(t)):t=[t],o&&(t._runParse=!0),t},_cloneNode:function(e){return e.cloneNode(!0)},_place:function(t,i,n,o){if(1==i.nodeType||"only"!=n)for(var a,s=i,l=t.length,c=l-1;c>=0;c--){var d=o?this._cloneNode(t[c]):t[c];if(t._runParse&&e.parser&&e.parser.parse)for(a||(a=s.ownerDocument.createElement("div")),a.appendChild(d),e.parser.parse(a),d=a.firstChild;a.firstChild;)a.removeChild(a.firstChild);c==l-1?r.place(d,s,n):s.parentNode.insertBefore(d,s),s=d}},position:f(a.position),attr:h(g(s),c),style:h(g(l),c),addClass:p(o.add),removeClass:p(o.remove),toggleClass:p(o.toggle),replaceClass:p(o.replace),empty:p(r.empty),removeAttr:p(s.remove),marginBox:f(a.getMarginBox),place:function(e,i){var n=t(e)[0];return this.forEach((function(e){r.place(e,n,i)}))},orphan:function(e){return(e?t._filterResult(this,e):this).forEach(d)},adopt:function(e,i){return t(e).place(this[0],i)._stash(this)},query:function(e){if(!e)return this;var i=new u;return this.map((function(n){t(e,n).forEach((function(e){void 0!==e&&i.push(e)}))})),i._stash(this)},filter:function(e){var n=arguments,o=this,r=0;if("string"==typeof e){if(o=t._filterResult(this,n[0]),1==n.length)return o._stash(this);r=1}return this._wrap(i.filter(o,n[r],n[r+1]),this)},addContent:function(e,t){e=this._normalize(e,this[0]);for(var i,n=0;i=this[n];n++)e.length?this._place(e,i,t,n>0):r.empty(i);return this}}),u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(316),i(351),i(1286),i(421),i(353),i(335),i(259),i(3078)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(c.validate([t,i,n,o,r,a,s,l]),{baseClass:"mwWidget mwMenuHeader",templateString:d})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(377)],o=i.dj.d(n,(function(e,t){return{_currentMnemonicsState:void 0,_toolstrip:void 0,NULL_NULL:1,NULL_CONTROL:2,NULL_TAB:3,CONTROL_TAB:4,TAB_TAB:5,getCurrentMnemonicsState:function(){return this._currentMnemonicsState},setCurrentMnemonicsState:function(e,t){this._currentMnemonicsState=e,(t=void 0===t||t)&&this._manageToolstripFocus(e)},setToolstrip:function(e){this._toolstrip=e},_manageToolstripFocus:function(i){i===this.NULL_NULL?t.refuseFocus(this._toolstrip.domNode):t.temporaryFocus(this._toolstrip.domNode),e.toggle(document.body,"displayFocus",i!==this.NULL_NULL)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(245)],o=i.dj.d(n,(function(e,t){return e(null,{postCreate:function(){this.inherited(arguments),t("mac")||this.domNode.classList.add("mwScrollbarMixin")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(653),i(893),i(894)],o=i.dj.d(n,(function(e,t,i,n){var o=e(null,{_supportedValues:["left","top"],_setIconAlignmentAttr:function(){this.inherited(arguments),this.set("arrowMode",this.get("arrowMode"))}});return o._dependencies=[{mixin:t,orderDependent:!0},{mixin:i,orderDependent:!1},{mixin:n,orderDependent:!1}],o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(353),i(343),i(791)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e(null,{_updateTextInDOM:function(e){this.inherited(arguments),this._placeTextAndResize(e)},_placeTextAndResize:function(e){var i=this._getPeerAndPosition();t.place(this.textNode,i.peer,i.position),this._placeTextInNode(e,this.lastTextLineNode),this.set("width",this.get("width")),this.set("height",this.get("height"))},_getPeerAndPosition:function(){var e={};return this._isInline()?(e.peer=this.arrowNode,e.position="before"):(e.peer=this.iconNode,e.position="after"),e},_getSplitTextAtLastNewLineCharacter:function(e){var t={};if(this._isInline()){var i=e.lastIndexOf("\n");i>=0?(t.mainText=e.substring(0,i),t.lastTextLine=e.substring(i+1,e.length)):"left"===this.get("iconAlignment")?(t.mainText="",t.lastTextLine=e):(t.mainText=e,t.lastTextLine="")}else t.mainText=e,t.lastTextLine="";return t},_isInline:function(){return"inline"===this.get("arrowMode")||"auto"===this.get("arrowMode")&&"top"===this.get("iconAlignment")},_getTextForDOM:function(e,t){e=this.inherited(arguments);var i=this._getSplitTextAtLastNewLineCharacter(e);return t===this.textNode?i.mainText:t===this.lastTextLineNode?i.lastTextLine:e}});return r._dependencies=[{mixin:i,orderDependent:!0},{mixin:n,orderDependent:!1},{mixin:o,orderDependent:!1}],r}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="contentWrapperNode" class="mwContentWrapperNode"\n ><div data-dojo-attach-point="focusNode" class="mwFocusNode" role="button" aria-haspopup="true"\n aria-expanded="false"\n ><div data-dojo-attach-point="buttonNode" class="mwButtonNode"\n ><div data-dojo-attach-point="buttonAlignmentNode" class="mwButtonAlignmentNode"></div\n ><div data-dojo-attach-point="buttonContainerNode" class="mwButtonContainerNode"\n ><div data-dojo-attach-point="iconNode" class="mwIconNode"></div\n ><div data-dojo-attach-point="textNode" class="mwTextNode mwBlockTextNode"\n ><div data-dojo-attach-point="textLine" class="mwTextContentNode"></div\n ></div\n ></div\n ></div\n ><div data-dojo-attach-point="dropDownNode" class="mwDropDownNode"\n ><div data-dojo-attach-point="dropDownAlignmentNode" class="mwDropDownAlignmentNode"></div\n ><div data-dojo-attach-point="dropDownContainerNode" class="mwDropDownContainerNode"\n ><div data-dojo-attach-point="inlineTextNode" class="mwTextNode mwInlineTextNode"\n ><div data-dojo-attach-point="inlineTextLine" class="mwTextContentNode"></div\n ></div\n ><div data-dojo-attach-point="arrowNode" class="mwArrowNode"\n ><div data-dojo-attach-point="lastTextLineNode" class="mwLastTextLineNode"\n ><div data-dojo-attach-point="lastTextLine" class="mwTextContentNode"></div\n ></div\n ><div data-dojo-attach-point="arrowIconNode" class="mwArrowIconNode"></div\n ></div\n ></div\n ></div\n ></div\n></div>'},function(e,t,i){var n,o;n=[i(203),i(518),i(711),i(791)],o=i.dj.d(n,(function(e,t,i,n){var o=e(null,{_addTextContentClass:function(){},_getTextForDOM:function(e,t){var i,n,o,r=this._getTextNodes();return t!==r.inlineTextElement&&t!==r.lastTextLineElement?e:((o=e.lastIndexOf("\n"))>-1?(i=e.substring(0,o),n=e.substring(o+1,e.length)):(i=e,n=""),t===r.inlineTextElement?i:t===r.lastTextLineElement?n:void 0)},_placeTextInNode:function(e){this._getTextNodes().forEach(function(t){var i=this._getTextForDOM(e,t);this._updateDataTextContent(i,t,!0),t!==this.lastTextLine||i?t===this.lastTextLine&&this.lastTextLineNode.classList.remove("mwNoText"):this.lastTextLineNode.classList.add("mwNoText")}.bind(this))},_getTextNodes:function(){var e=[this.textLine,this.inlineTextLine,this.lastTextLine];return e.textElement=e[0],e.inlineTextElement=e[1],e.lastTextLineElement=e[2],e}});return o._dependencies=[{mixin:t,orderDependent:!0},{mixin:i,orderDependent:!1},{mixin:n,orderDependent:!1}],o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t;return e(null,{_preventRestoreFocus:!1,postCreate:function(){t=this,this.inherited(arguments),this.domNode.addEventListener("restorefocus",this._handleRestoreFocus,!0),this.own({remove:function(){t&&t.domNode&&t._handleRestoreFocus&&t.domNode.removeEventListener("restorefocus",t._handleRestoreFocus,!0)}}),this.set("preventRestoreFocus",this.get("preventRestoreFocus"))},_handleRestoreFocus:function(e){t.get("preventRestoreFocus")&&(e.preventDefault(),e.stopImmediatePropagation())},_getPreventRestoreFocusAttr:function(){return this._preventRestoreFocus},_setPreventRestoreFocusAttr:function(e){if("boolean"!=typeof e)throw new Error("'preventRestoreFocus' property expected a boolean value.");this._set("_preventRestoreFocus",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(225),i(224),i(1326),i(1066)],o=i.dj.d(n,(function(e,t,i){var n=t.NodeList,o=n.prototype;return o.connect=n._adaptAsForEach((function(){return e.connect.apply(this,arguments)})),o.coords=n._adaptAsMap(e.coords),n.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"],i.forEach(n.events,(function(e){var t="on"+e;o[t]=function(e,i){return this.connect(t,e,i)}})),e.NodeList=n,n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_shouldUncheckWidget:function(e){return e.get("buttonGroup")===this.get("buttonGroup")&&e!==this&&e.get("checked")&&(!e.get("actionId")||e.get("actionId")!==this.get("actionId"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3135),i(3136),i(3137),i(3138)],o=i.dj.d(n,(function(e,t){return t(e,"mw-colorpicker/l10n/nls/ColorPickerResources",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(225),i(206),i(223),i(245),i(215),i(216),i(316),i(230),i(312),i(351),i(330),i(352),i(343),i(335),i(433),i(409),i(421),i(259),i(247),i(3170)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){var T=e(c,{constructor:function(e){this.widget=e,this._touch=r("ios"),this.own(n(e.domNode,"click",this._handleClick.bind(this)),n(e.domNode,"keydown",this._handleKeyDown.bind(this))),this._focusedIndex=this.widget._selectedIndices[0]||1},_handleClick:function(e){if(e.target.classList.contains("mwListItem")){var t=Number(e.target.getAttribute("data-mw-index")),i=this.widget._selectedIndices.indexOf(t);this._blurItem(),this._focusedIndex=t,this._focusItem();var n=this._getNewSelectedIndexOnClick(e,t,i);this._setSelectedItems(n)}},_handleKeyDown:function(e){var t=this._getNewSelectedIndexOnKeyDown(e);-1!==t&&(this._setSelectedItems(t),this.widget.scrollToIndex(t[0]),this._focusItem())},_setSelectedItems:function(e){if(-1!==e){var t=[],i=this.widget.get("value");e.forEach((function(e){t.push(this.widget._indexValueMap[e])}),this),this.widget.set("value",t),this.widget._triggerChangeEvent("value",i,t)}},_stopEventPropagation:function(e){e.stopPropagation(),e.preventDefault()},_focusItem:function(){this.widget.domNode.querySelector(`[data-mw-index="${this._focusedIndex}"]`).classList.add("mwListItemFocused")},_blurItem:function(){this.widget.domNode.querySelector(`[data-mw-index="${this._focusedIndex}"]`).classList.remove("mwListItemFocused")}}),E=e(T,{_getNewSelectedIndexOnClick:function(e,t,i){var n=[t];return i>=0&&(n=e.ctrlKey||e.metaKey||this._touch?[]:-1),n},_getNewSelectedIndexOnKeyDown:function(e){if(0===this.widget.items.length)return-1;var t=this.widget.items.length,i=-1;switch(e.keyCode){case o.UP_ARROW:this._focusedIndex>1&&(this._blurItem(),this._focusedIndex-=1,i=[this._focusedIndex]),this._stopEventPropagation(e);break;case o.DOWN_ARROW:this._focusedIndex<t&&(this._blurItem(),this._focusedIndex+=1,i=[this._focusedIndex]),this._stopEventPropagation(e);break;case o.SPACE:i=this.widget._selectedIndices[0]?[]:[this._focusedIndex],this._stopEventPropagation(e);break;default:i=-1}return i}}),S=e(T,{constructor:function(){this._anchorIndex=this.widget._selectedIndices[0]||1},_getNewSelectedIndexOnKeyDown:function(e){if(0===this.widget.items.length)return-1;var t=this.widget.items.length,i=-1,n=function(e){return e.ctrlKey?(this._focusItem(),this.widget.scrollToIndex(this._focusedIndex),-1):e.shiftKey?this._getRangeOfIndices(this._focusedIndex):(this._anchorIndex=this._focusedIndex,[this._focusedIndex])}.bind(this);switch(e.keyCode){case 65:(e.ctrlKey||e.metaKey)&&(i=Array.from(this.widget.items.keys()).map((function(e){return e+1}),this),this._anchorIndex=this._focusedIndex),this._stopEventPropagation(e);break;case o.DOWN_ARROW:this._focusedIndex<t&&(this._blurItem(),this._focusedIndex+=1,i=n(e)),this._stopEventPropagation(e);break;case o.UP_ARROW:this._focusedIndex>1&&(this._blurItem(),this._focusedIndex-=1,i=n(e)),this._stopEventPropagation(e);break;case o.SPACE:e.ctrlKey&&(-1!==(i=this.widget._selectedIndices).indexOf(this._focusedIndex)?i.splice(i.indexOf(this._focusedIndex),1):i.push(this._focusedIndex),this._anchorIndex=this._focusedIndex),this._stopEventPropagation(e);break;default:return-1}return i},_getNewSelectedIndexOnClick:function(e,t,i){var n,o=[t];return i>=0?e.shiftKey?o=this._getRangeOfIndices(t):(e.ctrlKey||e.metaKey||this._touch?(o=this.widget._selectedIndices.slice(0)).splice(i,1):1===this.widget._selectedIndices.length&&(o=-1),n=!1):e.shiftKey?o=this._getRangeOfIndices(t):(n=!1,(e.ctrlKey||e.metaKey||this._touch)&&(o=this.widget._selectedIndices.slice(0)).push(t)),!1===n&&(this._anchorIndex=t),o},_getRangeOfIndices:function(e){var t,i=[],n=this._anchorIndex;if(e<=n)for(t=e;t<=n;t+=1)i.push(t);else for(t=n;t<=e;t+=1)i.push(t);return i}});return e(b.validate([a,s,l,u,h,p,f,g,m,_,v]),{templateString:C,baseClass:"mwWidget mwListBox",selectionMode:"single",enableHorizontalScroll:!1,_listeners:null,constructor:function(){this._indexValueMap={},this._valueIndexMap={},this.items=[],this.value=[],this._selectedIndices=[]},scrollToValue:function(e){var t=this._valueIndexMap[e];this.scrollToIndex(t)},scrollToIndex:function(e){var t=this._getItemNodes(),i=this.enableHorizontalScroll?this.domNode.offsetHeight-this.domNode.clientHeight:0,n=t.filter((function(t){return Number(t.getAttribute("data-mw-index"))===e}),this)[0];if(n){var o=this.domNode;n.offsetTop+n.offsetHeight>o.offsetHeight+o.scrollTop-i?this.domNode.scrollTop=n.offsetTop+n.offsetHeight-this.domNode.offsetHeight+i:n.offsetTop<o.scrollTop&&(this.domNode.scrollTop=n.offsetTop)}},postCreate:function(){this.inherited(arguments),this.set("items",this.get("items")),this.set("value",this.get("value")),this.enableHorizontalScroll||this._createMoveListeners(),this._selectionStrategy=new this._selectionStrategyModule(this),this.focusNode.addEventListener("focus",function(e){this.items.length>0&&(this._selectedIndices[0]?this._selectionStrategy._focusedIndex=this._selectedIndices[0]:("multiple"===this.selectionMode&&(this._selectionStrategy._anchorIndex=1),this._selectionStrategy._focusedIndex=1),this._focusedByClickOnListItem||this._selectionStrategy._focusItem())}.bind(this)),this.focusNode.addEventListener("mousedown",function(e){this._focusedByClickOnListItem=e.target.classList.contains("mwListItem")}.bind(this)),this.focusNode.addEventListener("blur",function(){this.items.length>0&&!this._beingDestroyed&&this._selectionStrategy._blurItem(),this._focusedByClickOnListItem=!1}.bind(this))},_createMoveListeners:function(){this._listeners=new Array,this._listeners.push(this._addListener(this.containerNode,"mouseover",function(e){var t=this._getEscapedToolTipString(e);t&&t.length>0&&d.show(t,e.srcElement)}.bind(this))),this._listeners.push(this._addListener(this.containerNode,"mouseout",function(e){d.hide(e.srcElement)}.bind(this)))},_addListener:function(e,t,i){return e.addEventListener(t,i),{remove:function(){e.removeEventListener(t,i)}}},_removeMoveListeners:function(){this._listeners&&(this._listeners.forEach((function(e){e.remove()})),this._listeners=null)},_getEscapedToolTipString:function(e){var t="",i=e.srcElement.getAttribute("data-mw-tooltiptext");return null!==i&&(t=y.escapeHtml(i)),t},startup:function(){this.inherited(arguments),this._updateTooltipForClippedItems()},_setSelectionModeAttr:function(e){if(0===e.toLowerCase().indexOf("single"))this._selectionStrategyModule=E;else{if(0!==e.toLowerCase().indexOf("multiple"))throw new Error("Selection Mode should be one of: single, multiple");this._selectionStrategyModule=S}this._created&&(this._selectionStrategy.destroy(),this._selectionStrategy=new this._selectionStrategyModule(this)),this._set("selectionMode",e)},_setItemsAttr:function(e){this._validateItemsArray(e);var t=dojo.clone(e),i=this._getItemsListAndInitInternalDs(t);this._updateDom(i),this._created&&this.set("value",[]),this._set("items",t),this._updateTooltipForClippedItems()},_setWidthAttr:function(){this.inherited(arguments),this._updateTooltipForClippedItems()},_setHeightAttr:function(){this.inherited(arguments),this._updateTooltipForClippedItems()},_validateItemsArray:function(e){var t='The "items" must be an array of objects, where each object should consist of a label and a value property. Like: [ {label: "Item 1", value: 1}, {label: "Item 2", value: 2}, {label: "Item 3", value: 3}, {label: "Item 4", value: 4} ]';if(!Array.isArray(e))throw new Error(t);e.forEach((function(e){if(void 0===e.label||void 0===e.value)throw new Error(t)}))},_setValueAttr:function(e){this._validateValueArray(e),this._set("value",e);var t=[];e.forEach((function(e){t.push(this._valueIndexMap[e])}),this),this._setSelectedIndex(t)},_setEnableHorizontalScrollAttr:function(e){this._removeMoveListeners(),e?this.domNode.classList.add("mwHorizontallyScrollable"):(this._createMoveListeners(),this.domNode.classList.remove("mwHorizontallyScrollable")),this._set("enableHorizontalScroll",e),this._updateTooltipForClippedItems()},_validateValueArray:function(e){if(!Array.isArray(e))throw new Error("'value' property expects an array.");if("single"===this.get("selectionMode")&&e.length>1)throw new Error("'value' property must be a single element array in single selection mode.");e.forEach((function(e){if(!this.items.some((function(t){return t.value===e})))throw new Error("'value' must be a subset of the items' values.")}),this)},_setSelectedIndex:function(e){var t=this._getItemNodes();t.forEach((function(e){e.classList.remove("mwListItemSelected")})),this._selectedIndices=e,0!==e.length&&t.forEach((function(t){var i=Number(t.getAttribute("data-mw-index"));e.forEach((function(e){e===i&&t.classList.add("mwListItemSelected")}))}))},_getItemsListAndInitInternalDs:function(e){var t,i=[],n=e.length;if(this._indexValueMap={},this._valueIndexMap={},n>0)for(t=0;t<n;t+=1){var o=t+1;i[t]={index:o,label:e[t].label,value:e[t].value},this._indexValueMap[o]=e[t].value,this._valueIndexMap[e[t].value]=o}else i=[];return i},_updateDom:function(e){var i=this.get("enableHorizontalScroll");i&&this.domNode.classList.remove("mwHorizontallyScrollable"),t.empty(this.containerNode);var n="mwListItem";r("ios")&&(n=n.concat(" ","mwListItemIOS")),e.length>0&&(e.forEach((function(e){t.create("li",{textContent:e.label,"data-mw-index":e.index,"data-mw-tooltiptext":"",class:n},this.containerNode)}),this),i&&this.domNode.classList.add("mwHorizontallyScrollable"))},_updateTooltipForClippedItems:function(){var e=this._getItemNodes(),t=this.enableHorizontalScroll;e.forEach((function(e){var i=e.offsetWidth<e.scrollWidth;!t&&i?e.setAttribute("data-mw-tooltiptext",e.textContent):e.setAttribute("data-mw-tooltiptext","")}))},_getIndexes:function(){var e=this._getItemNodes(),t=[];return e.forEach((function(e){t.push(Number(e.getAttribute("data-mw-index")))})),t},_getItemNodes:function(){return i("li",this.containerNode)},_qeSelectItemsByLabel:function(e){var t=this.get("items").filter((function(t){return e.indexOf(t.label)>-1})).map((function(e){return e.value}));this.set("value",t)},_qeSelectItemsByIndex:function(e){var t=this.get("items").filter((function(t,i){return e.indexOf(i)>-1})).map((function(e){return e.value}));this.set("value",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(245),i(1784),i(3186)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.form._FormValueWidget",[i,n],{_layoutHackIE7:function(){if(7==t("ie"))for(var e=this.domNode,i=e.parentNode,n=e.firstChild||e,o=n.style.filter,r=this;i&&0==i.clientHeight;)!function(){var e=r.connect(i,"onscroll",(function(){r.disconnect(e),n.style.filter=(new Date).getMilliseconds(),r.defer((function(){n.style.filter=o}))}))}(),i=i.parentNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(231),i(292)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(e){this._contextManagerImpl=e.contextManagerImpl,this._uiBuilder=e.uiBuilder||n.getInstance(),this._handles=[],this._handles.push(this._contextManagerImpl.watch("currentContext",t.hitch(this,this._currentContextChangedCallback))),this._handles.push(this._contextManagerImpl.watch("secondaryContext",t.hitch(this,this._secondaryContextChangedCallback)))},_currentContextChangedCallback:function(e,t,i){!this._contextManagerImpl.isForceUpdateEnabled()&&(i===t||i&&JSON.stringify(t)===JSON.stringify(i))||this._update(i,this._contextManagerImpl.secondaryContext)},_secondaryContextChangedCallback:function(e,t,i){!this._contextManagerImpl.isForceUpdateEnabled()&&(i===t||i&&JSON.stringify(t)===JSON.stringify(i))||this._update(this._contextManagerImpl.currentContext,i)},_update:function(e,t){},cleanup:function(){this._handles.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(206),i(229)],o=i.dj.d(n,(function(e,t){var i=.1,n=.1,o={},r={},a=!1,s=function(e){if(function(e){return e===Object(e)}(e))for(let t in e)return!0;return!1},l={applyDefaultBounds:function(e,t){void 0===e.x&&(e.x=i,(i+=.015)>.5&&(i=.1)),void 0===e.y&&(e.y=n,(n+=.02)>.5&&(n=.1)),(void 0===e.w||e.w<0)&&(e.w=t?.667:.8),(void 0===e.h||e.h<0)&&(e.h=.8)},convertBoundsToPixels:function(e){e.x>0&&e.x<1&&(e.x=Math.floor(e.x*window.screen.width)),e.y>0&&e.y<1&&(e.y=Math.floor(e.y*window.screen.height)),e.w>0&&e.w<1&&(e.w=Math.floor(e.w*window.screen.width)),e.h>0&&e.h<1&&(e.h=Math.floor(e.h*window.screen.height))},addWindowBoundsListener:function(i,n,c){var d=t.generateUuid();if(i.cefclient)a||(i.cefclient.handleWindowResized&&(r.originalwindowResizedHandler=i.cefclient.handleWindowResized),i.cefclient.handleWindowResized=function(e){if(e=i.cefclient.getOuterPosition().toString(),s(r))for(let t in r)r[t](e)},a=!0),r[d]=e=>{var t=e.split(","),o={x:parseInt(t[0]),y:parseInt(t[1]),w:parseInt(t[2]),h:parseInt(t[3])};void 0!==c&&c!==l.TOP_LEFT_ORIGIN||(o=this.convertOrigin(i,o));var r=t.length>=5&&parseInt(t[4])>0;n(o,r)},o[d]={windowResizedHandler:r[d]};else{var u,h,p;u=e(i,"resize",()=>{var e=this.getWindowBounds(i);c===l.BOTTOM_LEFT_ORIGIN&&(e=this.convertOrigin(i,e)),n(e,!1)});var f=this.getWindowBounds(i),g=setInterval(()=>{if(i.closed)clearInterval(g);else{var e=this.getWindowBounds(i);e.x===f.x&&e.y===f.y||(f.x=e.x,f.y=e.y,c===l.BOTTOM_LEFT_ORIGIN&&(e=this.convertOrigin(i,e)),n(e,!1))}},250);h=e(i,"load",()=>{p=e(i,"unload",()=>{clearInterval(g),p&&p.remove&&p.remove()})}),o[d]={onListeners:[u,h],intervalIds:[g]}}return d},removeWindowBoundsListener:function(e){if(e in o){const t=o[e];t.intervalIds&&t.intervalIds.length>0&&t.intervalIds.forEach(e=>{clearInterval(e)}),t.onListeners&&t.onListeners.length>0&&t.onListeners.forEach(e=>{e&&e.remove&&e.remove()}),t.windowResizedHandler&&delete r[e],delete o[e]}},setWindowBounds:function(e,t,i){(e.cefclient&&i!==l.BOTTOM_LEFT_ORIGIN||!e.cefclient&&i===l.BOTTOM_LEFT_ORIGIN)&&(t=this.convertOrigin(e,t)),"IFRAME"===e.nodeName||(e.cefclient?e.cefclient.sendMessage("setOuterPosition",[t.x,t.y,t.w,t.h]):(e.resizeTo(1,1),e.moveTo(t.x,t.y),e.resizeTo(t.w,t.h)))},getWindowBounds:function(e,t){let i={};return e.cefclient?(boundsArray=e.cefclient.getOuterPosition(),i={x:boundsArray[0],y:boundsArray[1],w:boundsArray[2],h:boundsArray[3]},t!==l.BOTTOM_LEFT_ORIGIN&&(i=this.convertOrigin(e,i))):(i={x:"number"==typeof e.screenX?e.screenX:"number"==typeof e.screenLeft?e.screenLeft:0,y:"number"==typeof e.screenY?e.screenY:"number"==typeof e.screenTop?e.screenTop:0,w:e.outerWidth,h:e.outerHeight},t===l.BOTTOM_LEFT_ORIGIN&&(i=this.convertOrigin(e,i))),i},convertOrigin:function(e,t){let i=Object.assign({},t);return i.y=e.screen.height-i.y-i.h,i},bringToFront:function(e){e.cefclient?e.cefclient.sendMessage("bringToFront"):e.focus()},BOTTOM_LEFT_ORIGIN:"bottomLeftOrigin",TOP_LEFT_ORIGIN:"topLeftOrigin"};return l}),e,t),e.exports=o},function(e,t){e.exports='{\n "dependsOn": [\n "wraService"\n ],\n "provides": [\n "wraLogin"\n ],\n "modulePath": {\n "amd": "MOTW/matlabOnlineServer/wraLogin/index"\n }\n}'},function(e,t,i){var n,o;n=[i(203),i(214)],o=i.dj.d(n,(function(e,t){return e(null,{own:function(){this.__handles__||(this.__cleanupHandle__=t.before(this,"destroy",this._destroyAllHandles.bind(this)),this.__handles__=[]);for(var e=0;e<arguments.length;e++){var i=arguments[e];if(this.__handles__.push(i),i.then){var n=this._removeHandle.bind(this,i);i.then(n,n)}}return arguments},destroyHandles:function(e){e.forEach(this.destroyHandle,this)},destroyHandle:function(e){this._removeHandle(e),this._destroyHandle(e)},_removeHandle:function(e){if(this.__handles__){var t=this.__handles__.indexOf(e);-1!==t&&(this.__handles__.splice(t,1),0===this.__handles__.length&&(delete this.__handles__,this.__cleanupHandle__.remove(),delete this.__cleanupHandle__))}},_destroyAllHandles:function(){this.__handles__&&(this.__handles__.forEach(this._destroyHandle,this),delete this.__handles__,this.__cleanupHandle__.remove(),delete this.__cleanupHandle__)},_destroyHandle:function(e){if(e.then&&e.cancel)e.cancel();else if(e.destroyRecursive)e.destroyRecursive();else if(e.destroy)e.destroy();else{if(!e.remove)throw new Error("Can't find a valid method on the handle for destroying. See AbstractDestroyable for details.");e.remove()}},destroy:function(){this._destroyed=!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(3443)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.internaldocument","rtc.view.decoration","rtc.position.controller","rtc.tokenhighlighting.notifier"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3451),i(3452),i(3453),i(3454)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/execution",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3455),i(3456),i(3457),i(3458)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/rtcDebug",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3478),i(3479),i(3480),i(3481)],o=i.dj.d(n,(function(e,t){return t(e,"cajsservice/resources/codeanalysis/jsapi/nls/jsapi_catalog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){var e={InteractiveCommandLine:"InteractiveCommandLine",Swing:"Swing",ComplexSwing:"ComplexSwing",LocalClient:"LocalClient",WebWindow:"WebWindow",ModalDialogs:"ModalDialogs",Debugging:"Debugging"};return e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_getTopForMiddleAlignment:function(e,t){var i=e-t;return Math.floor(i/2)},getCenteredTop:function(e,t,i){var n=e.getPreciseLineHeight(t+1);return this._getTopForMiddleAlignment(n,i)},setTopForCenteredAlignment:function(e,t,i,n){n=n||0;var o=this.getCenteredTop(t,i,n);e.style.top=o+"px"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(577)],o=i.dj.d(n,(function(e,t){return e(null,{type:null,primitiveProperties:[],nodeProperties:[],constructor:function(e,t){this.startLine=e,this.endLine=t},getMutation:function(){return t.createFromEvent(this,t.MUTATION_TYPE.INPLACE)},serialize:function(e){const t={};return e.writeIntoStates(t,this,["type","startLine","endLine"]),e.writeIntoStates(t,this,this.primitiveProperties,this.nodeProperties),this.isUndoRedo&&(t.isUndoRedo=!0),t},deserialize:function(e,t){t.loadFromStates(e,this,["startLine","endLine"]),t.loadFromStates(e,this,this.primitiveProperties,this.nodeProperties),e.isUndoRedo&&(this.isUndoRedo=!0)},destroy:function(){this.startLine=-1,this.endLine=-1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(472),i(453),i(718)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(null,{constructor:function(e){e=e||{},n.copyCommonAttributes(e,this)},layout:function(){throw new Error("layout method for class '"+this.className+"'' not defined")},isDisplaystyle:function(){return this.hasOwnProperty("displaystyle")?this.displaystyle:!!this.parent&&this.parent.isDisplaystyle()},exportMathML:function(e){var n="";!0===this.inline&&(n=' display="inline"'),!1===this.inline&&(n=' display="block"');var o="";-1===e.attribBlackList.indexOf(i.XMLNSMWMMLX_PREFIX)&&(o=" "+i.XMLNSMWMMLX);var r=this._exportMathML(e);if(e.annotations){var a="";Object.keys(e.annotations).forEach((function(t){var i=e.annotations[t];i&&(a+='<annotation encoding="'+t+'">'+i+"</annotation>")})),a&&(r="<semantics>"+r+a+"</semantics>")}return"<math "+t.MATHML_XMLNS+o+n+">"+r+"</math>"},exportLaTeX:function(e){return this._exportLaTeX(e)},_exportMathML:function(e){throw new Error("Unimplemented abstract method _exportMathML")},_exportLaTeX:function(e){throw new Error("Unimplemented abstract method _exportLaTeX")},_mathvariantIsItalic:function(e){return-1!==(e=e||"").indexOf("italic")},isItalicText:function(){return!1},isVerticalDelimiter:function(){return!1},isIdentifier:function(){return!1},getAccent:function(){return null},_setParent:function(e,t){e&&(e.parent=t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(580),i(494),i(472)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(n,{constructor:function(e){e=e||{},this.className="MathRow",this.TeXSpacing=e.TeXSpacing},_layoutStretchyDelimiters:function(e,t){var i,n=this.children,o=e.children,r=e.ascent(),a=e.descent(),s=!1;for(i=0;i<n.length;i+=1)n[i].isVerticalDelimiter()&&(s=!0,o[i].resizeAndCenterDelimiter(t,r,a));return s},_exportMathML:function(e){var t=r.startTag(e,"mrow",this);return this.children.forEach((function(i){t+=i._exportMathML(e)})),t+=r.endTag("mrow")},_exportLaTeX:function(e){var t,n=i.mixin({},e,{openParens:0,addBraces:o.NEVER_ADD_BRACES});this.class&&-1!==this.class.indexOf("symIdentBold")&&(n.boldIdents=!0);var r="";if(this.children.forEach((function(e){r+=o.exportChild(e,n)})),n.openParens>0)for(t=0;t<n.openParens;t+=1)r+="\\right.";else if(n.openParens<0)for(t=0;t<-n.openParens;t+=1)r="\\left."+r;return r},isItalicText:function(e){var t=this.children&&1===this.children.length&&this.children[0];return t&&t.isItalicText(e)},getAccent:function(){var e=this.children&&1===this.children.length&&this.children[0];return e?e.getAccent():null},layout:function(t){var n=t.layoutChildren(e.map(this.children,i.hitch(this,(function(e){if(e.baseIsItalic=this.baseIsItalic,e.accentType=this.accentType,e.parent!==this)throw new Error("Missing or wrong parent in equation node.");return e})))),o=t.parseBoxes("h{*}",n);if(o.subLeftShift=0,o.supRightShift=0,o.supDownShift=0,o._largeOp=!1,n.forEach((function(e){o.supDownShift=Math.max(e.supDownShift||0,o.supDownShift)})),void 0!==this.TeXSpacing&&(o.spacing=this.TeXSpacing),1===n.length){var r=n[0];o.subLeftShift=Math.max(r.subLeftShift||0,o.subLeftShift),o.supRightShift=Math.max(r.supRightShift||0,o.supRightShift),r.spacing&&(o.spacing=Math.max(r.spacing,o.spacing||0)),o._largeOp=r._largeOp}return o.leftShift=this.leftShift||0,o.rightShift=this.rightShift||0,o.computeMetrics(),o.computeRowGaps(t.renderer,t.scriptlevel>0),this._layoutStretchyDelimiters(o,t)&&o.computeMetrics(),o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1094)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){e=e||{},this.children=e.children||[]},addChild:function(e){e&&this.children.push(e)},traverse:function(e){var t,i=this.children;for(t=0;t<i.length;t+=1)e(i[t])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(523)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e){e=e||{},this._ascent=0,this._descent=0,this._cssAscent=0,this._cssDescent=0,this._accentHeight=0,this._belowXheight=!1,this._downShift=0,this.spacing=e.spacing||i.ORD,this.skip=0,this.templateParts=null},computeMetrics:function(){},isStretchyAccentBox:function(){return!1},isStretchySymbolBox:function(){return!1},accentBox:function(){return null},hasLargeOpSymbolBox:function(){return!1},setItalicCorrection:function(){},rightItalicCorrection:function(){return 0},leftItalicCorrection:function(){return 0},needsGapBefore:function(){return!1},needsGapBehind:function(){return!1},startsWithDelimiter:function(){return this.isDelimiterBox()},endsWithDelimiter:function(){return this.isDelimiterBox()},isDelimiterBox:function(){return!1},height:function(){return this._ascent+this._descent},belowXheight:function(){return this._belowXheight},setBelowXheight:function(e){this._belowXheight=e},downShift:function(){return this._downShift},setDownShift:function(e){this._downShift=e},accentHeight:function(){return this._accentHeight},setMetrics:function(e){["ascent","descent","cssAscent","cssDescent"].map(t.hitch(this,(function(t){e.hasOwnProperty(t)&&(this["_"+t]=e[t])})))},setAccentHeight:function(e){this._accentHeight=e},setAscent:function(e){var t=this._ascent+this._descent;this._ascent=e,this._descent=t-e},ascent:function(){return this._ascent},cssAscent:function(){return this._cssAscent},setDescent:function(e){var t=this._ascent+this._descent;this._descent=e,this._ascent=t-e},descent:function(){return this._descent},cssDescent:function(){return this._cssDescent},setWidth:function(e){this._width=e},width:function(){return this._width},setLeft:function(e){this._left=e},left:function(){return this._left},centerAt:function(e){var t=this.height();this._ascent=t/2+e,this._descent=t/2-e},findAlignmentPoint:function(e,t){return null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(274),i(333),i(470),i(1096)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(null,{constructor:function(e){this._visitor=e,this._range=null,this._commonAncestors=null,this._enteredNodes=null,this._indexCache=null},traverseRange:function(e,t){this._range=e,this._buildCommonAncestors(t),this._doTreeWalk()},_buildCommonAncestors:function(e){this._commonAncestors=t.getCommonAncestors(this._range.getStartPosition().getNode(),this._range.getEndPosition().getNode()),!e&&i.rangeIsInsideOneTextContainer(this._range)||(this._commonAncestors=this._commonAncestors.slice(0,1))},_doTreeWalk:function(){var e=this._range.getStartPosition().getNode(),t=!1;for(this._enteredNodes=[],this._enterAncestors(e);e;){if(t=this._enterNode(e),e===this._range.getEndPosition().getNode()){this._leaveRemainingNodes();break}if(!t&&e.firstChild&&e.firstChild())e=e.firstChild();else{for(;!this._getNextSibling(e)&&!e.isRootNode();)this._leaveNode(e),e=e.parent;this._leaveNode(e),(e=this._getNextSibling(e))&&this._visitor.traverseSibling(e)}}},_getNextSibling:function(e){if(e.isRootContainer()){var t=this._indexCache||{};return e===e.parent.children[t.nextIdx]?(this._indexCache.node=e,this._indexCache.nextIdx++):e!==t.node&&(this._indexCache={node:e,nextIdx:e.parent.children.indexOf(e)+1}),e.parent.children[this._indexCache.nextIdx]}return e.nextSibling()},_enterAncestors:function(e){(e=e.parent)&&this._commonAncestors.indexOf(e)<0&&(this._enterAncestors(e),this._enterNode(e))},_leaveRemainingNodes:function(){for(;this._enteredNodes.length>0;)this._leaveNode(this._enteredNodes[0])},_enterNode:function(e){if(e.isInstanceOf(n))return this._enteredNodes.unshift(e),this._visitor.enterInnerNode(e);if(e.isInstanceOf(o)){var t,i=0,r=!1;e===this._range.getStartPosition().getNode()&&(r=!0,i=this._range.getStartPosition().getOffset()),e===this._range.getEndPosition().getNode()?(r=!0,t=this._range.getEndPosition().getOffset()):t=e.maxOffset(),r&&i===t||this._visitor.visitLeafNode(e,i,t)}},_leaveNode:function(e){e.isInstanceOf(n)&&(this._enteredNodes.shift(),this._visitor.leaveInnerNode(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(573)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},className:"LeafNode",text:"",getText:function(){return this.text},getCodeText:function(){return""},getPlainText:function(e,t){return this.getText().slice(e,t)},getTextForPositioning:function(){return this.text},isTextNode:function(){return!0},canHaveCursorAtStart:function(){for(var e=this;e&&!e.isTextContainerNode();)e=e.parent;return e.startNode()===this},maxOffset:function(){return 0},isEmpty:function(){return 0===this.maxOffset},startNode:function(){return this},endNode:function(){return this},atParagraphStart:function(){return 0===this.posInNode&&this.textContainer()&&this.textContainer().startNode()===this.node},offsetInContainer:function(e){return(e=e||this.rootContainer())._childOffset(this)},lineBorderOffset:function(e,t){var i;return i=e>0?this.maxOffset():0,this.getPositionFromOffset(i)},movePositionRight:function(e){var t=e.getOffset();if(t<this.maxOffset())return this.getPositionFromOffset(t+1);var i=this.nextNode();return i&&(i.canHaveCursorAtStart()||!i.isEmpty()||(i=i.nextNode()))?i.canHaveCursorAtStart()?i.startPosition():i.movePositionRight(i.startPosition()):null},movePositionLeft:function(e){var t,i=e.getOffset();return i>1?this.getPositionFromOffset(i-1):1===i?this.canHaveCursorAtStart()?this.startPosition():(t=this.prevNode())?t.getPositionFromOffset(t.maxOffset()):null:(t=this.prevNode())?this.canHaveCursorAtStart()?t.endPosition():t.movePositionLeft(t.endPosition()):null},isSplittable:function(e){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{priority:function(){throw new Error("Unimplemented API: MW.rtc.plugins.tooltip.HoverableTooltipPlugin.priority")},getTooltipContent:function(e,t,i){throw new Error("Unimplemented API: MW.rtc.plugins.tooltip.HoverableTooltipPlugin.getTooltipContent")},onTooltipClose:function(){},cleanupTooltipContent:function(){}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(407)],o=i.dj.d(n,(function(e){var t=e.getSystemInfo(),i=t.PLATFORM.toUpperCase(),n=t.BROWSER.toUpperCase(),o=i.includes("WIN"),r=i.includes("MAC"),a=i.includes("MAC"),s=i.includes("MAC")&&n.includes("SAFARI");return Object.freeze({showsNotAllowedPointerOnInvalidDnD:o,supportsAltKeyForCopy:r,notSupportNativeElementAvatarOveride:s,isMac:a})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3645)],o=i.dj.d(n,(function(e,t){return t(e,"mw-navigationbar/l10n/nls/navigationBar",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211)],o=i.dj.d(n,(function(e){return{_CODE_FORMAT_CLASS:"codeFormat",styleAsCode:function(t){return e.create("span",{class:this._CODE_FORMAT_CLASS,textContent:t}).outerHTML}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{getText:function(){return this._data.text},getSymbolTableIndex:function(){return this._data.symbolTableIndex}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(282),i(1342),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{_USE_ES6_MAP:!1,constructor:function(e){this._map=this._USE_ES6_MAP?i.createMap():new n,e.forEach(this.register,this)},register:function(e){this._register(e,!1)},registerOverwrite:function(e){this._register(e,!0)},_register:function(e,t){o.assert(e.getApplicableNodeClass,"rtc/core/NodeMap: Must implement getApplicableNodeClass method");var i=e.getApplicableNodeClass(),n=i.prototype.className;o.assert(t||!this._map.has(i),"rtc/core/NodeMap: Can only have one mapping for "+n+"; Overwriting"),this._map.set(i,e)},forEach:function(e,t){this._map.forEach(e,t)},get:function(e){var t=e.constructor;return this.getByConstructor(t)},getByConstructor:function(e){for(var t=null;e&&!t;)t=this._map.get(e),e=e.superclass?e.superclass.constructor:null;return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1917)],o=i.dj.d(n,(function(e,t){var i=e(null,{_relationshipIdCounter:0,constructor:function(e,i){this._partUri=e,this._contentType=i,this._opcPartRelationship=new t},setContent:function(e){this._content=e},getContent:function(){return this._content},getContentType:function(){return this._contentType},getPartURI:function(){return this._partUri},createRelationship:function(e,t,i){return this._opcPartRelationship.createRelationship(e,t,i)},getAllRelationships:function(){return this._opcPartRelationship},getRelationship:function(e){return this._opcPartRelationship.getRelationship(e)}});return i.toJson=function(e){return{partUri:e._partUri,contentType:e._contentType,content:e._content,relationship:t.toJson(e._opcPartRelationship)}},i.fromJson=function(e){var n=new i(e.partUri,e.contentType);return n.setContent(e.content),e.relationship&&(n._opcPartRelationship=t.fromJson(e.relationship)),n},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1919)],o=i.dj.d(n,(function(e,t){return e(t,{className:"TextProportionalFontNode",parentTop:function(){return 0},parentLeft:function(){return 0},insertText:function(e,t){void 0===t&&(t=this.text.length),t<0&&(t=this.text.length+t),this.text=this.text.substring(0,t)+e+this.text.substring(t)},deleteText:function(e,t){e=e||0,void 0===t&&(t=this.text.length),e<0&&(e+=t),this.text=this.text.substring(0,e)+this.text.substring(t)},replaceText:function(e,t,i){t=t||0,void 0===i&&(i=this.text.length),this.deleteText(t,i),this.insertText(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{executeRequest:function(e){throw new Error("Unimplemented method: executeRequest")},getType:function(){throw new Error("Unimplemented method: getType")},interrupt:function(e){throw new Error("Unimplemented method: interrupt")},onRequestComplete:function(e){},initializeRequest:function(e){return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_findHistory:[],_replaceHistory:[],_replaceStripOpen:!1,_matchCaseHistory:!1,_wholeWordHistory:!1,_isFileReadOnly:!1,_lastSearchedText:"",_lastMatchCase:!1,_lastWholeWord:!1,_isResizable:!1,_activeDocId:null,_MAX_HISTORY_LIMIT:20,_stripWidth:"450px",_focusedInputBox:"findInput",_findDeadEnd:19999,getOpenedState:function(){return this._isOpened},setOpenedState:function(e){this._isOpened=e},getActiveDocId:function(){return this._activeDocId},setActiveDocId:function(e){this._activeDocId=e},getFindHistory:function(){return this._findHistory},getReplaceHistory:function(){return this._replaceHistory},refillFindHistory:function(e){this._findHistory=e},refillReplaceHistory:function(e){this._replaceHistory=e},setFindHistory:function(e){this._setHistoryList(e,this._findHistory)},getFindText:function(){return this._getLatestText(this._findHistory)},setReplaceHistory:function(e){this._setHistoryList(e,this._replaceHistory)},getReplaceText:function(){return this._getLatestText(this._replaceHistory)},setReplaceStripMode:function(e){this._replaceStripOpen=e},getReplaceStripMode:function(){return this._replaceStripOpen},setStripWidth:function(e){this._stripWidth=e},getStripWidth:function(){return this._stripWidth},setMatchCaseChecked:function(e){this._matchCaseHistory=e},getMatchCaseChecked:function(){return this._matchCaseHistory},setWholeWordChecked:function(e){this._wholeWordHistory=e},getWholeWordChecked:function(){return this._wholeWordHistory},setReadOnlyFileStatus:function(e){this._isFileReadOnly=e},getReadOnlyFileStatus:function(){return this._isFileReadOnly},setResizable:function(e){this._isResizable=e},getResizable:function(){return this._isResizable},setLastSearchOptions:function(e,t,i){this._lastSearchedText=e,this._lastMatchCase=t,this._lastWholeWord=i},getLastSearchOptions:function(){return{text:this._lastSearchedText,caseSensitive:this._lastMatchCase,wholeWords:this._lastWholeWord}},getFindMenuItems:function(){return this._getHistoryMenuItems(this._findHistory)},getReplaceMenuItems:function(){return this._getHistoryMenuItems(this._replaceHistory)},cleanFindHistory:function(){this._findHistory=[]},cleanReplaceHistory:function(){this._replaceHistory=[]},getFocusedInputBox:function(){return this._focusedInputBox},setFocusedInputBox:function(e){this._focusedInputBox=e},_getLatestText:function(e){return 0===e.length?"":e[0]},_getHistoryMenuItems:function(e){var t,i=[];return e.forEach((function(e){e&&i.length<this._MAX_HISTORY_LIMIT&&(t={label:e,value:e},i.push(t))}),this),i},_setHistoryList:function(e,t){if(t.some((function(t){return e===t}))){var i=t.indexOf(e);t.splice(i,1)}t.length>this._MAX_HISTORY_LIMIT&&t.pop(),t.unshift(e)},getFirstNonBlankText:function(e){if(e){for(var t=e.split("\n");t.length>1&&""===t[0];)t.splice(0,1);return t[0]}return""},refillHistory:function(e){e.find.length&&this.refillFindHistory(e.find),e.replace&&e.replace.length&&this.refillReplaceHistory(e.replace)},getFindDeadEnd:function(){return this._findDeadEnd}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(364)],o=i.dj.d(n,(function(e){return{COALESCING_TYPE:{COMBINE_INLINE_ONLY:"combineInlineOnly"},getCoalescingType:function(e){return 0===e.length?null:e[0].getEventCoalescingType()},coalesce:function(e,t,i,n){if(0===t.length)return null;var o=null;switch(i){case this.COALESCING_TYPE.COMBINE_INLINE_ONLY:o=this._coalesceByCombingInlineOnlyEvents(e,t,n);break;default:throw new Error("Invalid coalescing type!")}return o},_coalesceByCombingInlineOnlyEvents:function(e,t,i){return this._areAllEventsSingleLineEvent(t)?(t.forEach((function(t){this._addEventWithCombiningInlineOnlyEvents(t,e,i)}),this),e):null},_addEventWithCombiningInlineOnlyEvents:function(e,t,i){var n=e.startLine,o=t[t.length-1];if(o){var r=o.startLine,a=o.endLine;if(Math.abs(n-r)<=1||Math.abs(n-a)<=1){var s=this._getStartEndLineOfEvents([o,e]);o.type?t[t.length-1]=this._createDocumentEvent(s.startLine,s.endLine,i):(o.startLine=s.startLine,o.endLine=s.endLine)}else t.push(this._createDocumentEvent(n,n,i))}else t.push(this._createDocumentEvent(n,n,i))},_areAllEventsSingleLineEvent:function(e){return e.every((function(e){return e.startLine===e.endLine}))},_getStartEndLineOfEvents:function(e){var t=1/0,i=-1/0;return e.forEach((function(e){t=Math.min(t,e.startLine),i=Math.max(i,e.endLine)})),{startLine:t,endLine:i}},_createDocumentEvent:function(t,i,n){var o=e.create(t,i);return n&&(o.isUndoRedo=!0),o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(222),i(270),i(207),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=t([r,n],{constructor:function(t,n,o,r){this._internalDocument=t,this._documentInfo=n,this._sectionModel=o,this._dataService=r,this._sections=[],this._handles=[],this._handles.push(e.after(this._dataService,"onSectionLocationUpdate",i.hitch(this,this._updateModel),!0))},onUpdateModel:function(e,t){},getSections:function(){return this._sections},destroy:function(){this._handles.forEach((function(e){e.remove()})),this._handles=[]},_updateModel:function(e,t){var i=!1;if(!t){var n;this._sections.forEach((function(e){e.startNode=null,e.endNode=null})),this._sections=[];var o=this._internalDocument.getMaxLineNumber()-1;for((0===e.length||e.length>0&&e[0].startLine>0)&&(this._sections.push({startNode:this._internalDocument.getLineNode(0),endNode:this._internalDocument.getLineNode(o)}),i=0===e.length),n=0;n<e.length;n+=1){var r=e[n],a=r.startLine,s=r.endLine;this._sections.push({startNode:this._internalDocument.getLineNode(a),endNode:this._internalDocument.getLineNode(s)})}var l=0;for(n=1;n<this._sections.length;n+=1)this._internalDocument.getLineNumber(this._sections[n].endNode)>this._internalDocument.getLineNumber(this._sections[l].endNode)&&(l=n);if(this._sections.length>0&&this._internalDocument.getLineNumber(this._sections[l].endNode)<o){var c=this._sections[l];this._sections[l]={startNode:c.startNode,endNode:this._internalDocument.getLineNode(o)}}this._sectionModel.resetSectionsWithAttribute(this._sections,"implicitSection",{0:i}),this.onUpdateModel(e,t),this._sectionModel.onSectionsChanged()}}});return s.hasSectionTitle=function(e){var t=!0;return e.match(/^\s*%%(\s|$)/)||(t=!1),t},s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(4052),i(207)],o=i.dj.d(n,(function(e,t,i,n){let o=0,r=null;const a=function(){r=null},s="matlab",l=e([n],{constructor:function(){o++},destroy:function(){this.inherited(arguments),o--,0===o&&a()},getContextSensitiveHelp:function(e){return e=e.map(e=>e.toLowerCase()),(null===r&&(r=new i(s,!0)),r).mapTopic(e)}});return l.getCshHtml=function(e){const i=new t,n=new XMLHttpRequest;return n.onreadystatechange=function(){4===this.readyState&&(200===this.status?i.resolve(this.responseText):i.reject("Failed request for CSH HTML with code: "+this.status))},n.open("GET",e,!0),n.send(),i.promise},l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(216),i(203),i(210),i(318),i(206),i(4061)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i([e,t],{templateString:a,constructor:function(e){this._message=e.message,this._className=e.className,this._iconCssClasses=e.iconCssClasses||[]},postCreate:function(){this.inherited(arguments),this.tooltipContentNode.innerHTML.trim()||(this.tooltipContentNode.innerHTML=this._message.getMessage()),this.tooltipContentNode.setAttribute("data-testid",this._className),n.add(this.tooltipContentNode,this._className)},setNewDomNode:function(e){this.tooltipContentNode=e,this.domNode=e,this.postCreate()},getIconDomNode:function(){const e=document.createElement("div");return this._iconCssClasses.forEach(t=>{e.classList.add(t)}),e},getIconCssClass:function(){return this._iconCssClasses},getMessageTextDomNode:function(){const e=document.createElement("div");return e.innerHTML=this._message.getMessage(),e},hideDivider:function(){this.shouldHideDivider=!0},_emitResizeEvent:function(){r.emit(this.tooltipContentNode,"onResized",{bubbles:!0,cancelable:!0});const e=this.getExtendedHelpAreaDomNode().parentElement;r.emit(e,"onResized",{bubbles:!0,cancelable:!0})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(233),i(232),i(715),i(726)],o=i.dj.d(n,(function(e,t,i,n,o){return{writeToFileFromPicker:function(t,i,n,r){var a={};return a.fileName=i,a.title=n||"Save",a.filter=r||".txt",o.showSaveFileDialog(a).then(function(i){var n;return 0!==i.filterIndex&&(n=this.writeToFile(i.path,i.name,t).then((function(e){return i.path+i.name}),(function(t){(new e).reject(t)}))),n}.bind(this))},writeToFile:function(n,o,r){var a=new e;return i.sendMessage({CreateFile:{file:{content:r,fileInfo:t.createFileInfoObject(n,o,!1)},updateIfExists:!0}},a,"WriteFileToPreferenceDirectory"),a.promise},readFromFileFromPicker:function(e,t){var i={};return i.fileName=e||"",i.filter=t||".txt",i.title="Open",o.showOpenFileDialog(i).then(function(e){if(null===e){var t={exist:!1};return t}var i=e.path,n=e.name;return this._readFileHelper(i,n).then((function(e){var t={};return t.file=i+n,t.data=e,t.exist=!0,t}),(function(e){var t={exist:!1};return t}))}.bind(this))},readFromFile:function(e,t){return this._readFileHelper(e,t).then((function(e){var t={};return t.data=e,t.exist=!0,t}),(function(e){var t={exist:!1};return t}))},_readFileHelper:function(n,o){var r=new e;return i.sendMessage({OpenFile:{path:t.createFilePath(n,o)}},r,"ReadFileFromPreferenceDirectory"),r.promise},getPreferenceDirectory:function(){return n.getPreferenceDirectoryPath().then((function(e){return e}))},doFilesExist:function(e){var t=[];return e.forEach(function(e){var i=this.getFileNameAndPath(e);t.push(this._readFileHelper(i.path,i.name).then((function(e){return!0}),(function(e){return!1})))}.bind(this)),t},getFileNameAndPath:function(e){var t={},i=e.lastIndexOf(this.fileSeparator);return t.path=e.substring(0,i+1),t.name=e.substring(i+1,e.length),t},checkFileSeparator:function(e){-1!==e.search(/^[a-z]:/i)||-1!==e.search(/^\\\\/i)?this.fileSeparator="\\":this.fileSeparator="/"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{CONTEXT_SWITCHED:1,CONTEXT_RESET:2,LEAVING_RANGE:3,SILENT_RESET:4}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{isDisplayed:function(e){},show:function(e){},close:function(){},closeInnerViews:function(){},update:function(){},sendEvent:function(e){},isViewApplicable:function(e){},canWidgetBeReused:function(){return!1},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211)],o=i.dj.d(n,e=>({moveKeyCapture(e,t,i){const n=e.getCoordinateForPosition(t.getCursorPosition()),o=e.getNodeBox(t.getNode());o&&o.parentNode&&(this.moveKeyCaptureToNode(i,n.y,n.x,o.parentNode),i.keyCapture.focus())},moveKeyCaptureToNode(t,i,n,o){e.place(t.keyCapture,o),t.keyCapture.style.top=i+"px",t.keyCapture.style.left=n+"px"},getLineColumnFromSelection(e,t){const i=t.anchorNode.parentNode,n=e.getCoordinateForDomNode(i),o=e.getLineColumnFromCoordinate(n),r=t.focusNode.parentNode,a=e.getCoordinateForDomNode(r),s=e.getLineColumnFromCoordinate(a);return{startLine:o.line,endLine:s.line,startColumn:o.column+t.anchorOffset,endColumn:s.column+t.focusOffset}},setRTCSelection(e,t,i){const n=i.ownerDocument.getSelection(),o=this.getLineColumnFromSelection(e,n);t.hasSelection()&&t.isFileEndSelected()||t.setSelectionLineColumn(o.startLine,o.startColumn,o.endLine,o.endColumn)},drawNativeSelection(e,t,i,n,o){const r=e.getNodeBox(t),a=e.getNodeBox(i),s=window.getSelection(),l=document.createRange(),c=this.getSelectionNode(r,n),d=this.getSelectionNode(a,o);l.setStart(c.node,c.result),l.setEnd(d.node,d.result),s.removeAllRanges(),s.addRange(l)},getSelectionNode(e,t){let i,n;if(e.childNodes&&1===e.childNodes.length)return{node:this.getTextFromContainer(e),result:t};for(let o=0;o<e.childNodes.length;o++){if(n=this.getTextFromContainer(e.childNodes[o]),0===t){i=t;break}if(!(e.childNodes[o].textContent.length<t)){i=t;break}i=t-=e.childNodes[o].textContent.length}return{node:n,result:i}},getTextFromContainer(e){for(;e.childNodes[0];)e=e.childNodes[0];return e}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{CONFIGURE_CONTROL:"rtc_configure_live_control",RESET:"rtc_reset_control",REMOVE_CONTROL:"rtc_remove_control",CONVERT_TO_CODE:"rtc_convert_to_code"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(249),i(260),i(577),i(663)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e(o,{type:t.FORMAT_CHANGE_EVENT,primitiveProperties:["oldFormat","newFormat"],constructor:function(e,t,i,n){this.oldFormat=i,this.newFormat=n},getMutation:function(){return n.createFromEvent(this,n.MUTATION_TYPE.INPLACE)},getUndoEvent:function(){return new r(this.startLine,this.endLine,this.newFormat,this.oldFormat)}});return{create:function(e,n,o,a){return i.assertValidLines(e,n,t.FORMAT_CHANGE_EVENT),new r(e,n,o,a)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_MAX_VARIABLE_LENGTH:64,isSameVariableLocation:function(e,t){return!(!e||!t)&&(e.getStartLineColumn().line===t.getStartLineColumn().line&&e.getEndLineColumn().line===t.getEndLineColumn().line&&e.getStartLineColumn().column===t.getStartLineColumn().column)},isSameWordAndVariable:function(e,t){return!!this.isSameWordAndVariableLocation(e,t)&&e.text===t.text},isSameWordAndVariableLocation:function(e,t){return!(!e||!t)&&(e.startLineCol.line===t.getStartLineColumn().line&&e.endLineCol.line===t.getEndLineColumn().line&&e.startLineCol.column===t.getStartLineColumn().column)},getUpdatedVariableStructure:function(e){return e?{endLineCol:{column:e.endColumn,line:e.endLine},startLineCol:{column:e.startColumn,line:e.startLine},text:e.text}:null},selectionSpansOutsideVariable:function(e,t){if(!e.hasSelection())return!1;if(!t)return!0;var i=e.getSelectionLineColumn(),n=t.startLineCol.line;if(i.start.line-1!==n||i.end.line-1!==n)return!0;var o=i.start.column,r=i.end.column;if(o>r){var a=o;o=r,r=a}return o-1<t.startLineCol.column||r-1>t.endLineCol.column},isVariableLengthInvalid:function(e){return e.text.length>=this._MAX_VARIABLE_LENGTH}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{HORIZONTAL_POSITION:{LEFT:1,CENTER:2,RIGHT:3,NEAREST:10,CUSTOM:15},VERTICAL_POSITION:{TOP:1,CENTER:2,BOTTOM:3,NEAREST:10,CUSTOM:15}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(237),i(620),i(475),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_OPEN_CHAR:void 0,_CLOSE_CHAR:void 0,_ALLOWED_CHAR_AFTER_CURSOR:void 0,_isTriggerTypeExpected:function(e){return e.type===o.INSERT_TEXT&&e.text===this._OPEN_CHAR},_isTriggerPositionExpected:function(e){var i=e.triggerPos.getNode();return t.isCodeContainer(i)&&this._isCursorPositionApplicable(e)&&this._isLineValidForPairInsert(e)},_isCursorPositionApplicable:function(e){var t=e.cursorPos.getLineColumn().line,i=e.cursorPos.getLineColumn().column;if(i-=1,(t-=1)<0||i<0)return!1;if(this._matlabTokenManager.isInComment(t,i-1))return!1;if(this._matlabTokenManager.isInString(t,i-1))return!1;if(r.isInCommandDualSyntax(t,i-1,this._matlabTokenManager))return!1;for(var n=r.getTextAtLineColumnForFormatting(this._internalDocument,t,i,1),o=0;o<this._ALLOWED_CHAR_AFTER_CURSOR.length;o+=1)if(n===this._ALLOWED_CHAR_AFTER_CURSOR[o])return!0;return!1},_isLineValidForPairInsert:function(e){var t=e.cursorPos.getLineColumn().line;return!(this._OPEN_CHAR!==this._CLOSE_CHAR&&!r.areThereMoreOpenCharactersThanClosingOnLine(this._internalDocument,this._matlabTokenManager,t,this._OPEN_CHAR,this._CLOSE_CHAR))},_findAndRecordTarget:function(e){return!0},format:function(e){var t=e.cursorPos.getLineColumn().line,i=e.cursorPos.getLineColumn().column;this._document.insertText(this._CLOSE_CHAR,t,e.cursorPos.getLineColumn().column),e.cursor.setLineColumn(t,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(237),i(305),i(1119)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_UNALLOWED_CHAR_BEFORE_CURSOR:[")","}","]","."],_WORD_REGEX:/\w/,_NON_WORD_REGEX:/[^\\w=({[,;\s]/,_isTriggerPositionExpected:function(e){var i=e.triggerPos.getNode();return t.isCodeContainer(i)&&this._isCursorPositionApplicable(e)&&this._checkAllowedCharsBeforeCursor(e)},_checkAllowedCharsBeforeCursor:function(e){var t=e.cursorPos.getLineColumn().line,i=e.cursorPos.getLineColumn().column;if(i-=1,(t-=1)<0||i<0)return!1;if(i<2)return!0;for(var o=n.getTextAtLineColumnForFormatting(this._internalDocument,t,i-2,1),r=0;r<this._UNALLOWED_CHAR_BEFORE_CURSOR.length;r+=1)if(o===this._UNALLOWED_CHAR_BEFORE_CURSOR[r])return!1;var a=o.search(this._WORD_REGEX);return 0!==a&&0!==(a=o.search(this._NON_WORD_REGEX))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(237),i(620),i(475)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_TARGET_REGEXP:void 0,_TRIGGER_CHAR:void 0,_APPLY_ONLY_STANDALONE_SEGMENT:!0,_isTriggerTypeExpected:function(e){return e.type===n.INSERT_TEXT&&e.text===this._TRIGGER_CHAR},_findAndRecordTarget:function(e){var t=this._getTextRangeForFormatting(e.cursorPos);return!!t&&(e.target=t,!0)},format:function(e){var t=this._document.startBlockEdit();return e=this._format(e),this._document.endBlockEdit(t),e},_format:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.smartformatting.InlineSmartFormatter._format")},_getTextRangeForFormatting:function(e){var i=t.getTextRangeFromLeftToPosition(e);if(!i)return null;var n=e.getLineColumn().column,o=i.startPos.getLineColumn().column,r=i.text.substr(0,n-o),a=this._getOffsetOfTargetString(r);return a<0?null:{line:e.getLineColumn().line,left:o+a,right:n,text:r.slice(a)}},_getOffsetOfTargetString:function(e){var t=e.search(this._TARGET_REGEXP);return t<0?t:this._APPLY_ONLY_STANDALONE_SEGMENT&&!this._isAtStartOfSegment(e,t)?-1:t},_isAtStartOfSegment:function(e,t){return""===e.charAt(t-1).replace(" ","")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(4430),i(4431),i(4432),i(4433)],o=i.dj.d(n,(function(e,t){return t(e,"l10n/nls/template",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return class{constructor(e){this._linesChanged=e}getFirstLineNumber(){return this._linesChanged[0]}getLastLineNumber(){return this._linesChanged[this._linesChanged.length-1]}getAllRetokenizedLines(){return this._linesChanged}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={},t={},i={};return{addEntryWithUniqueId:function(t,n){e[t]=n,i[t]&&(i[t].forEach((function(e){e()})),delete i[t])},addEntryWithAppIdentifier:function(e,i){t[e]=i},removeEntryWithUniqueId:function(t){let i=e[t];return delete e[t],i},removeEntryWithAppIdentifier:function(e){let i=t[e];return delete t[e],i},getAllEntriesWithUniqueId:function(){return e},getAllEntriesWithAppIdentifier:function(){return t},getEntryWithUniqueId:function(t){return e[t]},getEntryWithAppIdentifier:function(e){return t[e]},addCallback:function(e,t){i[t]?i[t].push(e):i[t]=[e]}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{isAncestorNode:function(e,t){for(var i=!1;t;){if(t===e){i=!0;break}t=t.parentNode}return i},addDomListener:function(e,t,i,n){return e.addEventListener(t,i,n),{remove:function(){e.removeEventListener(t,i,n)}}},preventDefault:function(e){e.preventDefault()},stopPropagation:function(e){e.stopPropagation()}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{isWithinTimeout:function(e,t,i){return Math.abs(e-t)<i},getTimestamp:function(e){return e._softTimestamp?e._softTimestamp:e.timestamp}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return function(e,t){var i=null,n=function(){i&&window.clearTimeout(i),i=null};return{start:function(){n(),i=window.setTimeout(e,t)},clear:n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){const e={INTERNAL_REPRESENTATION:"\n",CR:"\r",LF:"\n",CRLF:"\r\n"},t={"\r":"CR","\n":"LF","\r\n":"CRLF"},i={getDefaultLineEndingForBrowser:()=>navigator.appVersion.includes("Win")?e.CRLF:e.LF,getTypeForTextValue:t=>e[t],getTextValueForType:e=>t[e]};return Object.freeze({Regex:{INTERNAL_NEWLINE:/\n/g,ANY_NEWLINE:/\r\n|\r|\n/g},Types:e,Utilities:i})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LINENODE_WRAPPER_CLASS:"inlineWrapper",ROOTNODE_CLASS:"rootNode",RIGHT_MARGIN_WIDTH:32}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(469)],o=i.dj.d(n,(function(e){return{OPERATION:{LAYOUT:"layout",UPDATE:"update",REMOVE:"remove"},getLayoutOperationsFromNodeChangeEvent:function(t,i){var n=[];switch(t.type){case e.INSERT_NODE:n=this._handleInsertNode(t);break;case e.DELETE_NODE:n=this._handleDeleteNode(t);break;case e.UPDATE_ATTRIBUTES:case e.INSERT_TEXT:case e.DELETE_TEXT:n=this._handleUpdateNode(t);break;case e.MERGE_NODE:n=this._handleMergeNode(t);break;case e.SPLIT_NODE:n=this._handleSplitNode(t,i)}return n},_handleInsertNode:function(e){return e.newNodes.map(this._createLayoutOperation,this)},_handleDeleteNode:function(e){return e.nodes.map(this._createRemoveOperation,this)},_handleUpdateNode:function(e){return[this._createUpdateOperation(e.node)]},_handleMergeNode:function(e){var t=[];return e.node!==e.newNode&&(t.push(this._createRemoveOperation(e.node)),t.push(this._createUpdateOperation(e.newNode))),t},_handleSplitNode:function(e,t){var i=[];return e.node!==e.newNode&&(t.getNodeBox(e.node)?i.push(this._createUpdateOperation(e.node)):i.push(this._createLayoutOperation(e.node)),e.newNode&&i.push(this._createLayoutOperation(e.newNode))),i},_createLayoutOperation:function(e){return{type:this.OPERATION.LAYOUT,node:e}},_createUpdateOperation:function(e){return{type:this.OPERATION.UPDATE,node:e}},_createRemoveOperation:function(e){return{type:this.OPERATION.REMOVE,node:e}},isLayoutOperation:function(e){return e.type===this.OPERATION.LAYOUT},isUpdateOperation:function(e){return e.type===this.OPERATION.UPDATE},isRemoveOperation:function(e){return e.type===this.OPERATION.REMOVE},isInModel:function(e){return!!e.rootContainer()},isInView:function(e,t,i){var n=i.getNodeBox(e);return n&&t.contains(n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(4644),i(4645),i(4646),i(4647)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/embeddedOutputs",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(2038),i(356),i(217),i(213),i(223),i(204),i(245),i(572),i(713),i(225),i(257),i(206),i(712),i(238),i(896),i(411),i(1079),i(272),i(4739)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){var C=t("dijit.form._SliderMover",d,{onMouseMove:function(e){var t=this.widget,i=t._abspos;i||(i=t._abspos=o.position(t.sliderBarContainer,!0),t._setPixelValue_=s.hitch(t,"_setPixelValue"),t._isReversed_=t._isReversed());var n=e[t._mousePixelCoord]-i[t._startingPixelCoord];t._setPixelValue_(t._isReversed_?i[t._pixelCount]-n:n,i[t._pixelCount],!1)},destroy:function(e){d.prototype.destroy.apply(this,arguments);var t=this.widget;t._abspos=null,t._setValueAttr(t.value,!0)}}),T=t("dijit.form.HorizontalSlider",[v,b],{templateString:y,value:0,showButtons:!0,minimum:0,maximum:100,discreteValues:1/0,pageIncrement:2,clickSelect:!0,slideDuration:f.defaultDuration,_setIdAttr:"",_setNameAttr:"valueNode",baseClass:"dijitSlider",cssStateNodes:{incrementButton:"dijitSliderIncrementButton",decrementButton:"dijitSliderDecrementButton",focusNode:"dijitSliderThumb"},_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyUp:function(e){this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey||this._setValueAttr(this.value,!0)},_onKeyDown:function(e){if(!(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey)){switch(e.keyCode){case a.HOME:this._setValueAttr(this.minimum,!1);break;case a.END:this._setValueAttr(this.maximum,!1);break;case this._descending||this.isLeftToRight()?a.RIGHT_ARROW:a.LEFT_ARROW:case!1===this._descending?a.DOWN_ARROW:a.UP_ARROW:case!1===this._descending?a.PAGE_DOWN:a.PAGE_UP:this.increment(e);break;case this._descending||this.isLeftToRight()?a.LEFT_ARROW:a.RIGHT_ARROW:case!1===this._descending?a.UP_ARROW:a.DOWN_ARROW:case!1===this._descending?a.PAGE_UP:a.PAGE_DOWN:this.decrement(e);break;default:return}e.stopPropagation(),e.preventDefault()}},_onHandleClick:function(e){this.disabled||this.readOnly||(l("ie")||g.focus(this.sliderHandle),e.stopPropagation(),e.preventDefault())},_isReversed:function(){return!this.isLeftToRight()},_onBarClick:function(e){if(!this.disabled&&!this.readOnly&&this.clickSelect){g.focus(this.sliderHandle),e.stopPropagation(),e.preventDefault();var t=o.position(this.sliderBarContainer,!0),i=e[this._mousePixelCoord]-t[this._startingPixelCoord];this._setPixelValue(this._isReversed()?t[this._pixelCount]-i:i,t[this._pixelCount],!0),this._movable.onMouseDown(e)}},_setPixelValue:function(e,t,i){if(!this.disabled&&!this.readOnly){var n=this.discreteValues;(n<=1||n==1/0)&&(n=t);var o=t/--n,r=Math.round(e/o);this._setValueAttr(Math.max(Math.min((this.maximum-this.minimum)*r/n+this.minimum,this.maximum),this.minimum),i)}},_setValueAttr:function(e,t){this._set("value",e),this.valueNode.value=e,this.focusNode.setAttribute("aria-valuenow",e),this.inherited(arguments);var i=this.maximum>this.minimum?(e-this.minimum)/(this.maximum-this.minimum):0,o=!1===this._descending?this.remainingBar:this.progressBar,r=!1===this._descending?this.progressBar:this.remainingBar;if(this._inProgressAnim&&"stopped"!=this._inProgressAnim.status&&this._inProgressAnim.stop(!0),t&&this.slideDuration>0&&o.style[this._progressPixelSize]){var a=this,s={},l=parseFloat(o.style[this._progressPixelSize]),c=this.slideDuration*(i-l/100);if(0==c)return;c<0&&(c=0-c),s[this._progressPixelSize]={start:l,end:100*i,units:"%"},this._inProgressAnim=n.animateProperty({node:o,duration:c,onAnimate:function(e){r.style[a._progressPixelSize]=100-parseFloat(e[a._progressPixelSize])+"%"},onEnd:function(){delete a._inProgressAnim},properties:s}),this._inProgressAnim.play()}else o.style[this._progressPixelSize]=100*i+"%",r.style[this._progressPixelSize]=100*(1-i)+"%"},_bumpValue:function(e,t){if(!(this.disabled||this.readOnly||this.maximum<=this.minimum)){var i=r.getComputedStyle(this.sliderBarContainer),n=o.getContentBox(this.sliderBarContainer,i),a=this.discreteValues;(a<=1||a==1/0)&&(a=n[this._pixelCount]),a--;var s=Math.round((this.value-this.minimum)*a/(this.maximum-this.minimum))+e;s<0&&(s=0),s>a&&(s=a),s=s*(this.maximum-this.minimum)/a+this.minimum,this._setValueAttr(s,t)}},_onClkBumper:function(e){this.disabled||this.readOnly||!this.clickSelect||this._setValueAttr(e,!0)},_onClkIncBumper:function(){this._onClkBumper(!1===this._descending?this.minimum:this.maximum)},_onClkDecBumper:function(){this._onClkBumper(!1===this._descending?this.maximum:this.minimum)},decrement:function(e){this._bumpValue(e.keyCode==a.PAGE_DOWN?-this.pageIncrement:-1)},increment:function(e){this._bumpValue(e.keyCode==a.PAGE_UP?this.pageIncrement:1)},_mouseWheeled:function(e){this.focused&&(e.stopPropagation(),e.preventDefault(),this._bumpValue(e.wheelDelta<0?-1:1,!0))},startup:function(){this._started||(e.forEach(this.getChildren(),(function(e){this[e.container]!=this.containerNode&&this[e.container].appendChild(e.domNode)}),this),this.inherited(arguments))},_typematicCallback:function(e,t,i){-1==e?this._setValueAttr(this.value,!0):this[t==(this._descending?this.incrementButton:this.decrementButton)?"decrement":"increment"](i)},buildRendering:function(){this.inherited(arguments),this.showButtons&&(this.incrementButton.style.display="",this.decrementButton.style.display="");var e=u('label[for="'+this.id+'"]');e.length&&(e[0].id||(e[0].id=this.id+"_label"),this.focusNode.setAttribute("aria-labelledby",e[0].id)),this.focusNode.setAttribute("aria-valuemin",this.minimum),this.focusNode.setAttribute("aria-valuemax",this.maximum)},postCreate:function(){this.inherited(arguments),this.showButtons&&this.own(m.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500),m.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500)),this.own(p(this.domNode,h.wheel,s.hitch(this,"_mouseWheeled")));var e=t(C,{widget:this});this._movable=new c(this.sliderHandle,{mover:e}),this._layoutHackIE7()},destroy:function(){this._movable.destroy(),this._inProgressAnim&&"stopped"!=this._inProgressAnim.status&&this._inProgressAnim.stop(!0),this.inherited(arguments)}});return T._Mover=C,T}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return function(e,t){var i=!0;return function(){i&&(i=!1,e.apply(this,arguments),setTimeout((function(){i=!0}),t))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(225),i(210)],o=i.dj.d(n,(function(e,t){return{updateEllipsesVisibility:function(t,i,n,o,r){var a=e(".horizontalEllipsis",t)[0],s=this._showHideEllipsis(a,i,o),l=e(".verticalEllipsis",t)[0];return{verticalChanged:this._showHideEllipsis(l,n,r),horizontalChanged:s}},_showHideEllipsis:function(e,i,n){var o=t.contains(e,"hide");return i>n?(this._show(e),o):(this._hide(e),!o)},_show:function(e){t.remove(e,"hide")},_hide:function(e){t.add(e,"hide")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211)],o=i.dj.d(n,(function(e,t){return{_singleCharWidth:null,getNumericCharacterWidth:function(){if(null===this._singleCharWidth){var e=t.create("span",{className:"rtePane"}),i=t.create("span",{innerHTML:"1234567890",className:"eoOutputWrapper"});t.place(i,e),t.place(e,document.body),this._singleCharWidth=i.getBoundingClientRect().width/10,t.destroy(e)}return this._singleCharWidth}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(438),i(348)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_VARIABLENAMEELEMENT_CLASS:".variableNameElement",_VALUESUMMARYCSS_CLASS:".headerElementClickToInteract",handleVariableNameElement:function(e,n){var o=t(this._VARIABLENAMEELEMENT_CLASS,e);if(0===o.length)return null;var r=o[0],a=r,s=t(this._VALUESUMMARYCSS_CLASS,r);s.length>0&&(a=s[0]);var l=a.childNodes[0].textContent;if(n.appendChild(document.createTextNode(l)),a.childNodes.length>=2){var c=a.childNodes[1].textContent,d=i.createEmphasizeElement();d.textContent=c,n.appendChild(d)}return a}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(209)],o=i.dj.d(n,(function(e,t,i){return t([],{_TEXTNODE_NAME:"#text",constructor:function(e){this._nodeExporters={},e.forEach((function(e){this._registerExportPlugin(e)}),this)},_registerExportPlugin:function(e){e.getApplicableDomNodeClasses().forEach((function(t){i.assert(!this._nodeExporters[t],"Writer for type '"+t+"'' already exists."),this._nodeExporters[t]=e}),this)},_getWriterForNode:function(t){var i=null;return e.some(t.classList,(function(e){return i=this._nodeExporters[e]}),this),i},reset:function(){for(var e in this._nodeExporters)this._nodeExporters.hasOwnProperty(e)&&this._nodeExporters[e].reset()},export:function(e,t,i){this._traverseElement(e,t,i)},_traverseElement:function(e,t,i){for(var n=e,o=!1;n&&(n.nodeName===this._TEXTNODE_NAME?(this._enterTextNode(t,n,i),o=!1):o=this._enterNode(t,n,i),n!==this._endNode);)if(o||!n.firstChild)if(n.nextSibling)n.nodeName!==this._TEXTNODE_NAME&&this._leaveNode(t,n,i),n=n.nextSibling;else{for(;!n.nextSibling&&(this._leaveNode(t,n,i),null!==(n=n.parentNode)&&n!==e););this._leaveNode(t,n,i),n=n.nextSibling}else n=n.firstChild},_enterNode:function(e,t,i){var n=this._getWriterForNode(t);return!!n&&n.enter(e,t,i)},_leaveNode:function(e,t,i){var n=this._getWriterForNode(t);n&&n.leave(e,t,i)},_enterTextNode:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(499),i(283)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e){this._liveAppViewStateManager=e,this._liveAppLines=[]},getApplicableNodeClass:function(){return i},reset:function(e){var t=n.getLiveAppLines(e.range);0!==t.length&&(this._liveAppViewStateManager.startExport(t),this._liveAppLines=t)},finalize:function(){0!==this._liveAppLines.length&&(this._liveAppViewStateManager.endExport(this._liveAppLines),this._liveAppLines=[])},enter:function(e,t,i){return!0}})}),e,t),e.exports=o},function(e,t,i){e.exports={VALUE_CHANGING:"ValueChanging",VALUE_CHANGED:"ValueChanged"}},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{hasSurroundingDoubleQuotes:function(e){return e&&e.length>1&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)},hasSurroundingSingleQuotes:function(e){return e&&e.length>1&&"'"===e.charAt(0)&&"'"===e.charAt(e.length-1)},wrapValueWithDoubleQuotes:function(e){return'"'+e+'"'},wrapValueWithSingleQuotes:function(e){return"'"+e+"'"},removeSurroundingQuotes:function(e){return this.hasSurroundingQuotes(e)&&(e=e.slice(1,-1)),e},hasSurroundingQuotes:function(e){return this.hasSurroundingDoubleQuotes(e)||this.hasSurroundingSingleQuotes(e)},convertToMatlabString:function(e,t){if(t){var i=t,n=this.getEscapedQuote(t);e=this._modifyValueAtQuotes(e,i,n)}return e},getEscapedQuote:function(e){return"'"===e?"''":'""'},_modifyValueAtQuotes:function(e,t,i){e=this.removeSurroundingQuotes(e);var n=new RegExp(t,"g");return e=e.replace(n,i)},_addSurroundingQuotesToValue:function(e,t){return e="'"===t?this.wrapValueWithSingleQuotes(e):this.wrapValueWithDoubleQuotes(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(947)],o=i.dj.d(n,(function(e,t){return e(null,{_setupControlConfigPanel:function(){this._setupWorkspaceDropdown(this._DEFAULT_PROPERTY)},_setupWorkspaceDropdown:function(e){let i=t.getPropertyEditor(this.configPanel.domNode,e);i&&i.set("filteringCallback",this._filteringCallback)},_getPropertyContent:function(){let e={};return this._configurableProperties.forEach((function(t){e[t]=this._getIndividualPropertyContent(t)}),this),e},_getIndividualPropertyContent:function(e){return this._userEnteredPropertyData[e]||this._propertyToDisplayInConfigPanel(e)},_propertyToDisplayInConfigPanel:function(e){let t=this._getVariableLinkedToProperty(e),i=t||this.get(e);return i="boolean"==typeof i?i.toString():i,i},_getVariableLinkedToProperty:function(e){return e===this._DEFAULT_PROPERTY?this.get("defaultValueLinkedVariable"):null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216)],o=i.dj.d(n,(function(e,t,i){return e([t,i],{templateString:'<div class="mwRuleContainer mwRuleContainerH"></div>',count:3,container:"containerNode",ruleStyle:"",_positionPrefix:'<div class="mwRuleMark mwRuleMarkH" style="left:',_positionSuffix:"%;width:1px;margin-left:-1px;",_suffix:'"></div>',ticks:null,minimum:0,maximum:100,_isHorizontal:!0,isAddQeIdForTickBased:!0,_qeIdSuffix:"id=",_genHTML:function(e,t){var i="";return this.isAddQeIdForTickBased&&this.ticks&&(i='"'+this._qeIdSuffix+'"'+this.class+"_"+this.ticks[t]),this._positionPrefix+e+this._positionSuffix+this.ruleStyle+i+this._suffix},buildRendering:function(){this.inherited(arguments);var e,t="";if(this.ticks){var i=this.maximum-this.minimum;for(e=0;e<this.count;e++)t+=this._genHTML((this.ticks[e]-this.minimum)/i*100,e)}else{t=this._genHTML(0,0);var n=100/(this.count-1);for(e=1;e<this.count-1;e++)t+=this._genHTML(n*e,e);t+=this._genHTML(100,this.count-1)}this.domNode.innerHTML=t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(500),i(686)],o=i.dj.d(n,(function(e,t,i){return e(i,{_SEARCH_BIDIRECTION:0,_SEARCH_UPWARD:1,_SEARCH_DOWNWARD:2,constructor:function(e){},getClosestRect:function(e,i,n){var o,r,a,s;if(this._viewModel.isPaginated()){var l=this._viewModel.getNodeBox(e),c=l.firstChild,d=l.lastChild;o=e.children.indexOf(this._viewModel.getNodeFromDomNode(c)),r=e.children.indexOf(this._viewModel.getNodeFromDomNode(d))}else o=0,r=e.children.length-1;for(;o<=r;){var u=Math.floor((o+r)/2),h=this._getClosestRectFrom(e,u,n,this._SEARCH_BIDIRECTION);if(!h)return null;if(t.isCoordinateAboveRect(i,h))r=u-1;else{if(!t.isCoordinateBelowRect(i,h))break;o=u+1}}this._viewModel.isPaginated()||o>r&&(a=this._getClosestRectFrom(e,r,n,this._SEARCH_UPWARD),s=this._getClosestRectFrom(e,o,n,this._SEARCH_DOWNWARD),a&&s&&(h=this._chooseUpOrDownRect(i,a,s)));return h},_chooseUpOrDownRect:function(e,i,n){return t.getClosestYDistanceToRect(e,i)<t.getClosestYDistanceToRect(e,n)?i:n},_getClosestRectFrom:function(e,t,i,n){for(var o=0,r=e.children.length;o<r;){if([this._SEARCH_UPWARD,this._SEARCH_BIDIRECTION].indexOf(n)>=0){var a=this._getRectForChildNode(e,t-o,i);if(a)return a}if([this._SEARCH_DOWNWARD,this._SEARCH_BIDIRECTION].indexOf(n)>=0){var s=this._getRectForChildNode(e,t+o,i);if(s)return s}var l=t-(o+=1)<0,c=t+o>e.children.length-1;if(n===this._SEARCH_UPWARD&&l||n===this._SEARCH_DOWNWARD&&c||n===this._SEARCH_BIDIRECTION&&l&&c)break}return null},_getRectForChildNode:function(e,t,i){var n=e.children[t];return n?i(n)[0]:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(249),i(260),i(577),i(663),i(403)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e(o,{type:t.INSERT_BREAK_EVENT,primitiveProperties:["line","column"],constructor:function(e,i,n){this.type=t.INSERT_BREAK_EVENT,this.line=e,this.column=n},getMutation:function(){return n.createFromEvent(this,n.MUTATION_TYPE.INSERTION)},getUndoEvent:function(){return r.create(this.startLine,this.endLine,-1)}});return{create:function(e,n,o){return i.assertValidLines(e,n,t.INSERT_BREAK_EVENT),new a(e,n,o)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1401),i(2096)],o=i.dj.d(n,(function(e,t,i){return e("dijit.form.ComboBox",[t,i],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(209),i(270),i(334),i(500),i(686)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{constructor:function(e){},getPositionFromCoordinate:function(e,t){var i=this._getClientRects(t);if(!r.isCoordinateWithinRects(e,i))return null;var o=this.getDomNode(t),a=this._getOffsetFromCoordinate(o,e);return a?new n(t,a.offset,a.isRightAligned):null},_getClientRects:function(e){var t=[],i=this.getDomNode(e);if(!i)return t;if(i.textContent){var n=this._rangeConverter.getNodeContentsRange(i);t=r.getClientRectsByRange(n)}else{var o=this._rangeConverter.getNodeRange(i);o&&(t=r.getClientRectsByRange([o]))}return t},_getSubClientRects:function(e){return this.getClientRects(e)},_getOffsetFromCoordinate:function(e,t){var i=this._rangeConverter.createIndexMap(e),n=i.length;if(!n)return{offset:0};for(var o,a=0,s=n-1,l=0;a<=s;)if(l=Math.floor((a+s)/2),o=this._getRectAt(e,l,i),r.isCoordinateAboveOrLeftOfRect(t,o))s=l-1;else{if(!r.isCoordinateBelowOrRightOfRect(t,o))break;a=l+1}a>s&&(t.x>o.right&&t.y<o.top?l=s:t.x<o.left&&t.y>o.bottom&&(l=a),o=this._getRectAt(e,l,i)||o),r.isCoordinateAtRightHalfOfRect(t,o)&&(l+=1);var c=!1,d=this._getRectAt(e,l,i);return d&&d.top>o.top&&(c=!0),{offset:l,isRightAligned:c,indexMap:i}},_getRectAt:function(e,t,i){var n=this._rangeConverter.getCharRange(e,t,!1,i);return n?this._selectedRectFromRange(n):null},_selectedRectFromRange:function(e,i){var n=e.getClientRects();if(0===n.length)return null;var o,r=n[0];o=this._isWebkitVersion(538.1)?1:t("chrome")?.1:0;for(var a=0;a<n.length;a+=1)if(n[a].width>o){r=n[a];break}return r},_isWebkitVersion:function(e){return!t("chrome")&&t("webkit")===e},getCoordinateFromPosition:function(e){var t=e.getOffset();if(t<0)return null;var i=e.getNode(),n=this.getDomNode(i);if(!n||!n.children)return null;var o=this.isRightAligned(e);o&&(t-=1);var r=this._rangeConverter.getCharRange(n,t,o)||this._rangeConverter.getNodeRange(n);return r?this._getCoordinateFromRangeByRects(n,r,o):null},isRightAligned:function(e){var t=e.getNode(),i=e.getOffset();return 0!==i&&(e.isRightAligned()||i===t.maxOffset())},_getCoordinateFromRangeByRects:function(e,t,i){var n=this._selectedRectFromRange(t,i);if(null===n)return n;var o=n.top,a=n.left,s=n.right,l=n.width,c=n.height,d=e.parentNode.getBoundingClientRect();o<d.top&&(o=d.top,c=Math.min(c,d.height));var u=r.convertFromClientToOffset({x:a,y:o},this._viewModel);return{x:u.x,y:u.y,height:c,width:l,pageX:i?s:a}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(630),i(5697),i(1486),i(6414),i(304),i(484)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([a],{createWidget:function(e,a,s,l){var c=new o(a);c.domNode.classList.add("figureContentPane");var d=c.FigureManager;if(this._figureManager=d,a.host&&"UIContainer"===a.host)this._properties=s,s.updateSizeWhenHidden=!0,d.registerServerMessageListener(this.handleServerPropertyChange.bind(this)),s.watch(r.IS_OPEN,(function(t,i,n){console.log("IS_OPEN changed from "+i+" to "+n),"isOpen"!==t||!0!==i||!1!==n||s.panelId&&!s.isRemoving||!1===s.destroyOnClose&&!e.isClosing()||d.viewKilled()})),s.watch(r.IS_SHOWING,(function(e,t,i){console.log("IS_SHOWING changed from "+t+" to "+i),t!==i&&d.propertyChanged({property:"Visible",value:i})})),s.watch(r.TITLE,(function(e,t,i){console.log("TITLE changed from "+t+" to "+i),t!==i&&d.propertyChanged({property:"Title",value:i})}));else{if(!e||!a||!s)throw new Error("All three parameters to createWidget are required.");d.registerServerMessageListener(s.bind(e))}var u=t[a.syncModel].getViewModelManager(a.channel,!1);new i({channel:a.channel,viewModelManager:u,applicationManifest:n,rootWidget:c,environment:{divFigureServerMsgHandler:d}});if(d.subscribe(),void 0!==l){try{l.appendChild(c.domNode),c.startup()}catch(e){throw new Error("Unable to add widget to given div and start it up: "+e)}d.widgetAddedToDom()}return c},getCssFiles:function(){return["/toolbox/matlab/uitools/uifigureappjs/release/index-css.css"]},handleServerPropertyChange:function(e){if(!this._properties)throw new Error("Properties must be defined before handleServerPropertyChange() is called");var t=e.data,i=t.eventType;if(console.log("handleServerPropertyChange() called"),console.log(" and message type is "+i),"windowOpen"===i);else{if("Position"===i)throw this._figureManager._position&&this._figureManager.propertyChanged({property:"Position",value:this._figureManager._position}),new Error("App/UIContainer does not support programmically setting the windowBounds property.");if("Resize"===i)throw new Error("App/UIContainer does not support dynamically setting the Resize property.");"Title"===i?this._properties.set(r.TITLE,t.value):console.warn(" *** unsupported eventType ***")}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(284),i(2126)],o=i.dj.d(n,(function(e,t,i){return e([i],{_FontAngle:function(e){this.widget.set("fontStyle",e)},_FontColor:function(e){this.widget.set("fontColor",t.toJSRGB(e))},_FontWeight:function(e){"string"==typeof e?("demi"!==e&&"light"!==e||(e="normal"),this.widget.set("fontWeight",e)):console.warn("'font-weight' property expects a literal string")},_FontName:function(e){this.widget.set("fontFamily",e)},updateWidgetFontSizeInUnits:function(e,t){this.widget.set("fontUnits",e),this.widget.set("fontSize",t)},_ForegroundColor:function(e){this.widget.set("fontColor",t.toJSRGB(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getBoundingClientRect:function(e){var t=e.getBoundingClientRect();return void 0===t.w&&(t.w=t.width),void 0===t.h&&(t.h=t.height),void 0===t.x&&(t.x=t.left),void 0===t.y&&(t.y=t.top),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(224)],o=i.dj.d(n,(function(e,t,i){return e(null,{readOnly:!1,postCreate:function(){this.inherited(arguments),this.set("readOnly",this.get("readOnly"))},_setReadOnlyAttr:function(e){this.inherited(arguments);var i=this.baseClass.split(" "),n=this._multiply(i,"Editable"),o=this._multiply(i,"NonEditable");e?(t.remove(this.domNode,n),t.add(this.domNode,o)):(t.remove(this.domNode,o),t.add(this.domNode,n)),this._set("readOnly",e)},_multiply:function(e,t){return e.concat(i.map(e,(function(e){return e+t})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(284)],o=i.dj.d(n,(function(e,t){return e(null,{_Placeholder:function(e){this.widget.set("placeholder",e)},_FontColor:function(e){this.inherited(arguments);var i=t.toJSRGB(e);this.widget.domNode.style.setProperty("--placeholder-font-color",i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(5725),i(5726),i(5727),i(5728)],o=i.dj.d(n,(function(e,t){return t(e,"visualcomponents/resources/uicomponents/core_js/nls/WidgetView",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{horizontalClipping:"right",postCreate:function(){this.inherited(arguments),this.setHorizontalClipping(this.horizontalClipping)},setHorizontalClipping:function(e){this.horizontalClipping=e,"left"===e?(this.domNode.classList.remove("vc-horizontalClippingRight"),this.domNode.classList.add("vc-horizontalClippingLeft")):(this.domNode.classList.remove("vc-horizontalClippingLeft"),this.domNode.classList.add("vc-horizontalClippingRight"))},getHorizontalClipping:function(){return this.horizontalClipping}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{horizontalAlignment:"center",setHorizontalAlignment:function(e){this.horizontalAlignment=e,this._performHorizontalAlignment(e)},_performHorizontalAlignment:function(e){this.domNode.classList.remove("vc-alignLeftHorizontal"),this.domNode.classList.remove("vc-alignRightHorizontal"),this.domNode.classList.remove("vc-alignCenterHorizontal"),"left"===e?this.domNode.classList.add("vc-alignLeftHorizontal"):"right"===e?this.domNode.classList.add("vc-alignRightHorizontal"):this.domNode.classList.add("vc-alignCenterHorizontal")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{verticalAlignment:"center",setVerticalAlignment:function(e){this.verticalAlignment=e,this._performVerticalAlignment(e)},_performVerticalAlignment:function(e){this.domNode.classList.remove("vc-alignTopVertical"),this.domNode.classList.remove("vc-alignBottomVertical"),this.domNode.classList.remove("vc-alignCenterVertical"),"top"===e?this.domNode.classList.add("vc-alignTopVertical"):"bottom"===e?this.domNode.classList.add("vc-alignBottomVertical"):this.domNode.classList.add("vc-alignCenterVertical")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2134),i(287),i(2135)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{_FirstPropertyProcessor:null,getInitializationPropertyNames:function(){var e=this.inherited(arguments),t=["WidgetMajorTicksMode","WidgetMajorTickLabelsMode","WidgetMinorTicksMode"];return e&&(t=t.concat(e)),t},doSetProperties:function(e){this.inherited(arguments);var i,r=["MajorTicks","MajorTickLabels","MinorTicks"],a={},s={};for(i=0;i<r.length;i++)a[r[i]]=this.WidgetData.getProperty(r[i]);if(a.Limits=this.WidgetData.getProperty("Limits"),n.arePropertyNamesPresent(e,["Limits","ScaleDirection"])&&(s=a),null===this._FirstPropertyProcessor||n.arePropertyNamesPresent(e,["WidgetMajorTicksMode","WidgetMajorTickLabelsMode","WidgetMinorTicksMode"])){var l={};for(i=0;i<r.length;i++)l[r[i]]=this.WidgetData.getProperty(r[i]),l["Widget"+r[i]+"Mode"]=this.WidgetData.getProperty("Widget"+r[i]+"Mode");this._FirstPropertyProcessor=this._getProcessorStrategyChain(l)}var c=this._FirstPropertyProcessor.process(e,{}),d={};for(var u in c)o.isArraysEqual(this._toArray(c[u]),this._toArray(a[u]))||(d[u]=c[u]);if(s=t.mixin(s,c),Object.keys(s).length>0){var h=(s=this._getFilteredValues(a,s)).hasOwnProperty("MajorTicks"),p=s.hasOwnProperty("MajorTickLabels"),f=s.hasOwnProperty("MinorTicks");if(h&&p)this.setMajorTicksAndLabels(s.MajorTicks,s.MajorTickLabels);else{if(h){var g=this.WidgetData.getProperty("MajorTickLabels");this.setMajorTicksAndLabels(s.MajorTicks,g)}p&&this.setMajorTickLabels(s.MajorTickLabels)}f&&this.setMinorTicks(s.MinorTicks)}Object.keys(d).length>0&&this.handleClientDrivenPropertiesChange("TicksChanged",d,d,"public")},_getTicksInLimits:function(e,t){if(!Array.isArray(e))throw new Error("Input values to _getTicksInLimits are expected to be arrays.");for(var i=[],n=0;n<e.length;n++)e[n]>=t[0]&&e[n]<=t[1]&&(i[i.length]=e[n]);return i},_getFilteredMajorTickLabels:function(e,t,i,n){if(!Array.isArray(t)||!Array.isArray(i)||!Array.isArray(n))throw new Error("Input values to _getFilteredMajorTickLabels are expected to be arrays.");var o=t.indexOf(i[0]),r=t.indexOf(i[i.length-1]);for(n=n.slice(o,r+1);n.length<i.length;)n.push("");return n},_getFilteredValues:function(e,t){var i,n,r,a,s,l,c=e.Limits;return t.hasOwnProperty("MajorTicks")?(n=t.MajorTicks,i=this._getTicksInLimits(this._toArray(n),c),t.MajorTicks=this._toArray(i)):(n=e.MajorTicks,i=this._getTicksInLimits(this._toArray(n),c),o.isArraysEqual(this._toArray(n),this._toArray(i))||(t.MajorTicks=this._toArray(i))),t.hasOwnProperty("MinorTicks")?(a=t.MinorTicks,r=this._getTicksInLimits(this._toArray(a),c),t.MinorTicks=this._toArray(r)):(a=e.MinorTicks,r=this._getTicksInLimits(this._toArray(a),c),o.isArraysEqual(this._toArray(a),this._toArray(r))||(t.MinorTicks=this._toArray(r))),t.hasOwnProperty("MajorTickLabels")?(l=t.MajorTickLabels,s=this._getFilteredMajorTickLabels(t,this._toArray(n),this._toArray(i),this._toArray(l)),t.MajorTickLabels=this._toArray(s)):(l=e.MajorTickLabels,s=this._getFilteredMajorTickLabels(t,this._toArray(n),this._toArray(i),this._toArray(l)),o.isArraysEqual(this._toArray(l),this._toArray(s))||(t.MajorTickLabels=this._toArray(s))),t},_toArray:function(e){return Array.isArray(e)||(e=[e]),e},_getProcessorStrategyChain:function(e){for(var t,i,n,o=["MajorTicks","MajorTickLabels","MinorTicks"],r=0;r<o.length;r++){var a=e["Widget"+o[r]+"Mode"];t=this.getStrategy(o[r],a),i?n.setNext(t):i=t,n=t}return i},getStrategy:function(e,t){return"manual"===t?this.getManualStrategy(e):"auto"===t?this.getAutoStrategy(e):this.getCustomStrategy(e,t)},getCustomStrategy:function(e,t){return this.getManualStrategy(e)},getAutoStrategy:function(e){var t;switch(e){case"MajorTicks":t=new i.AutoMajorTicks(this,e);break;case"MajorTickLabels":t=new i.AutoManualHybridForLabels(this,e);break;case"MinorTicks":t=new i.AutoMinorTicks(this,e);break;default:throw new Error("Valid property was expected. An unsupported workflow was attempted.")}return t},getManualStrategy:function(e){var t;switch(e){case"MinorTicks":case"MajorTicks":case"MajorTickLabels":t=new i.PassFromPeerNodeWhenPropertyChanged(this,e);break;default:throw new Error("Valid property was expected (MajorTickLabels, MajorTicks, MinorTicks). An unsupported workflow was attempted.")}return t},setMinorTicks:function(e){throw new Error("implement setMinorTicks in subclass")},setMajorTicks:function(e){throw new Error("implement setMinorTicks in subclass")},setMajorTickLabels:function(e){throw new Error("implement setMinorTicks in subclass")},calculateAutoMajorTicks:function(e,t){var i=this.getAverageLabelLength([e,t]),o=this.getTickLabelTrackLength(i),r=n.generateTicksForRange([e,t],o,i),a=this.getAverageLabelLength(r);return o=this.getTickLabelTrackLength(a),n.generateTicksForRange([e,t],o,a)},getTickLabelTrackLength:function(e){throw new Error("getTickLabelTrackLength must be implemented in a sub class")},getTickTrackLength:function(){return this.getTickLabelTrackLength(0)},setMajorTicksAndLabels:function(e,t){this.setMajorTicks(e),this.setMajorTickLabels(t)},constrainTicksToScaleLimits:function(e,t,i){var n=[],o=[];e=this._toArray(e),i=this._toArray(i);for(var r=0;r<e.length;r++)e[r]>=t[0]&&e[r]<=t[1]&&(n[n.length]=e[r],void 0!==i&&void 0!==i[r]&&(o[o.length]=i[r]));return void 0!==i?{ticks:n,labels:o}:{ticks:n}},calculateAutoMinorTicks:function(e,t,i){e=this._toArray(e);var o=this.getTickTrackLength()*this.getMinorTickTrackLengthRatio(),r=n.getDefaultScaleLineLength(this.peernode.getType());return n.autoGenerateMinorTicks(e,t,i,o,r)},getMinorTickTrackLengthRatio:function(){return 1},getAverageLabelLength:function(e){e||(e=this.WidgetData.getProperty("Limits"));var t=n.getWidgetFontStyleMap(this.WidgetData);return n.calculateAverageLabelLength(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{_setItemsOnWidget:function(e){throw new Error("This component should implement method called setItemsOnWidget")},_setSelectedIndexOnWidget:function(e){throw new Error("This component should implement method called _setSelectedIndexOnWidget")},setProperties:function(e){var t,i;if(this.inherited(arguments),this._arePropertyNamesPresent(e,["Items","ItemsDataProxy"])){var n=this.WidgetData.getProperty("Items"),o=this.WidgetData.getProperty("ItemsDataProxy");if(i=this.WidgetData.getProperty("SelectedIndex"),Array.isArray(n)||(n=[n]),void 0===o||Array.isArray(o)||(o=[o]),void 0===o||0===o.length)t=n;else{var r=Math.min(n.length,o.length);t=n.slice(0,r)}this._setItemsOnWidget(t),this._setSelectedIndexOnWidget(i)}this._arePropertyNamesPresent(e,["SelectedIndex"])&&(i=this.WidgetData.getProperty("SelectedIndex"),this._setSelectedIndexOnWidget(i))}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(239),i(315)],o=i.dj.d(n,(function(e,t){var i=[e.range().setRows(0,1/0).setColumns(0,1/0)],n=function(){return!0},o=function(e){if(isNaN(e)||e<=0)throw new Error("'value' for Nth-type dataSelectorsmust be numeric and a positive number.")},r={node:"node",rangeList:"rangeList",nthRow:"nthRow",nthColumn:"nthColumn",hierarchy:"hierarchy",all:"all"},a=[];a[t.TREE]=[r.node,r.rangeList,r.nthRow,r.nthColumn,r.hierarchy,r.all],a[t.TREETABLE]=[r.rangeList,r.nthRow,r.nthColumn],a[t.TABLE]=[r.rangeList,r.nthRow,r.nthColumn];var s={node:{validator:function(e,t){if(!e.node)throw new Error("Metadata property should contain nodeproperty to set metadata on Tree Nodes")},getRangeList:function(e){return i},makeApplyMetaDataFunction:function(e){return n}},rangeList:{validator:function(t,i){var n=i.value;if(!Array.isArray(n))throw new Error("'rangeList' must be an array");if(t.row&&!n.every(e.isRowRange))throw new Error("Cannot set row meta data on 'non-row' ranges");if(t.column&&!n.every(e.isColumnRange))throw new Error("Cannot set column meta data on 'non-column' ranges")},getRangeList:function(e){return e.value},makeApplyMetaDataFunction:function(e){return n}},nthRow:{validator:function(e,t){var i=t.value;if(e.column)throw new Error("Cannot set column meta data on 'non-column' dataSelectors");o(i)},getRangeList:function(e){return i},makeApplyMetaDataFunction:function(e){var t=e.value;return function(e,i){return e%t==0}}},nthColumn:{validator:function(e,t){var i=t.value;if(e.row)throw new Error("Cannot set row meta data on 'non-row' dataSelectors");o(i)},getRangeList:function(e){return i},makeApplyMetaDataFunction:function(e){var t=e.value;return function(e,i){return i%t==0}}},hierarchy:{validator:function(e,t){if(e.column)throw new Error("Error in hierarchy: Cannot set column meta data on hierarchy dataSelector");if("string"!=typeof t.value&&!Array.isArray(t.value))throw new Error("Error in hierarchy: Node id must be either a string or an array")},getRangeList:function(e){return i},makeApplyMetaDataFunction:function(e){return function(t){return!!t.dynamic&&(void 0!==t.dynamic.path&&(Array.isArray(e.value)?t.dynamic.path.some((function(t){return e.value.includes(t)})):t.dynamic.path.includes(e.value)))}}},all:{validator:function(e,t){if(void 0!==t.value)throw new Error("all dataselector does not take a value")},getRangeList:function(e){return i},makeApplyMetaDataFunction:function(e){return n}}};return{create:function(e,t,i){if(-1===a[i].indexOf(t.type))throw new Error("The dataSelector type "+t.type+" is not valid for "+i+" DataStore");var n=s[t.type];if(!n)throw new Error("dataSelector type is unknown: "+t.type);n.validator(e,t);var o=!1;"function"!=typeof e.cell&&"function"!=typeof e.row&&"function"!=typeof e.column||(o=!0);var r=n.getRangeList(t);return{getDataSelector:function(){return t},getMetaData:function(){return e},isDynamic:o,_getRangeList:function(){return r.slice(0)},_applyMetaDataFunction:n.makeApplyMetaDataFunction(t),dataSelector:t}},dataSelectorTypes:r}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({LEFT:"left",RIGHT:"right",NONE:"none"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(224),i(958),i(218),i(891),i(236),i(5837)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s={};function l(e){if(null==e)return null;var t=!1,i=e.match(/(''|[^'])+/g),n="'"===e.charAt(0),o=[];if(null!==i)for(var r=0;r<i.length;r++){var a=i[r];if(a){if(n)o.push("'"+a+"'");else{for(var s=0;s<"acEhHkKLmqsSvwxXzZ".length;s++){var l="acEhHkKLmqsSvwxXzZ"[s];-1!==a.indexOf(l)&&(t=!0)}o.push(a)}n=!n}else o.push(a)}return t?null:o.join("")}function c(e,t,i,n){return n.replace(/([a-z])\1*/gi,(function(i){var o,a,l=i.charAt(0),c=i.length,d=["abbr","wide","narrow"];switch(l){case"G":o=e.getFullYear()<1?"BCE":"CE";break;case"u":o=e.getFullYear(),a=!0;break;case"y":switch(o=e.getFullYear(),c){case 1:break;case 2:o=(o=String(o)).substr(o.length-2),a=!0;break;default:a=!0}break;case"Q":switch(o=Math.ceil((e.getMonth()+1)/3),c){case 1:o=t["quarters-standAlone-narrow"][o-1];break;case 2:o=r.pad(o,2);break;case 3:o=t["quarters-standAlone-abbr"][o-1];break;default:o=t["quarters-standAlone-wide"][o-1]}break;case"M":var u=e.getMonth();if(c<3||c>5)o=u+1,a=!0;else{var h=["months","format",d[c-3]].join("-");o=(o=t[h][u]).replace(".","")}break;case"W":var p=s._getWeekOfYear(e,0),f=new Date(e);f.setFullYear(e.getFullYear()),f.setDate(1),o=p-s._getWeekOfYear(f,0)+1,a=!0;break;case"d":o=e.getDate(),a=!0;break;case"D":o=s._getDayOfYear(e),a=!0;break;case"e":var g,m=e.getDay();if(c<2){o=m+1;break}if(m=e.getDay(),c<3)o=m+1,a=!0;else c<6?(g=["days","format",d[c-3]].join("-"),o=t[g][m]):6===c?(g=["days","format","short"].join("-"),o=t[g][m]):(g=["days","format","abbr"].join("-"),o=t[g][m]),o=o.replace(".","");break;default:throw new Error("mw-datepicker.utils.locale.format: invalid pattern char: "+n)}return a&&(o=r.pad(o,c)),o}))}function d(e,i,n,o){var r=function(e){return e};i=i||r,n=n||r,o=o||r;var a=e.match(/(''|[^'])+/g),s="'"===e.charAt(0);return t.forEach(a,(function(e,t){e?(a[t]=(s?n:i)(e.replace(/''/g,"'")),s=!s):a[t]=""})),o(a.join(""))}function u(e,t,i,n){return(n=o.escapeString(n)).replace(/([a-z])\1*/gi,(function(t){var i,n=t.charAt(0),o=t.length;switch(n){case"u":case"y":i="\\d{1,}";break;case"M":i=o>2&&o<6?"\\S+?":"0*1[0-2]|0*[1-9]";break;case"D":i="0*[12][0-9][0-9]|0*3[0-5][0-9]|0*36[0-6]|0*[1-9][0-9]|0*[1-9]";break;case"d":i="0*3[01]|0*[12]\\d|0*[1-9]";break;case"e":i=".+?";break;default:i=".*"}return e&&e.push(t),"("+i+")"})).replace(/[\xa0 ]/g,"[\\s\\xa0]")}s.format=function(t,i){if(null==(i=i||{})||null===l(i.datePattern))return null;var o=n.normalizeLocale(i.locale),r=i.formatLength||"short",a=s._getGregorianBundle(o),u=[],h=e.hitch(this,c,t,a,i),p=i.datePattern||a["dateFormat-"+r];return p&&u.push(d(p,h)),1===u.length?u[0]:a["dateTimeFormat-"+r].replace(/'/g,"").replace(/\{(\d+)\}/g,(function(e,t){return u[t]}))},s._parseInfo=function(t){t=t||{};var i=n.normalizeLocale(t.locale),o=s._getGregorianBundle(i),r=t.formatLength||"short",a=[];return{regexp:d(t.datePattern||o["dateFormat-"+r],e.hitch(this,u,a,o,t)),tokens:a,bundle:o}},s.parse=function(e,i){if(null==i||null===l(i.datePattern))return null;var n=/[\u200E\u200F\u202A\u202E]/g,o=s._parseInfo(i),r=o.tokens,a=o.bundle,c=new RegExp("^"+o.regexp.replace(n,"")+"$",o.strict?"":"i").exec(e&&e.replace(n,""));if(!c)return null;var d=new Date;d.setFullYear(d.getFullYear()),d.setHours(0,0,0,0);var u=["abbr","wide","narrow"],h=[d.getFullYear(),d.getMonth(),d.getDate(),0,0,0,0],p=t.every(c,(function(e,n){if(!n)return!0;var o=r[n-1],s=o.length;switch(o.charAt(0)){case"u":case"y":if(2!==s&&4!==s||1!==e.length&&2!==e.length)h[0]=e;else{var l=new Date,c=l.getFullYear().toString().substring(0,2)-0,d=100*c+(e-0);if(Math.abs(d-l.getFullYear())<50)h[0]=c.toString()+(1===e.length?"0":"")+e;else{var p=c+1,f=100*p+(e-0);if(Math.abs(f-l.getFullYear())<50)h[0]=p.toString()+(1===e.length?"0":"")+e;else{var g=c-1;h[0]=g.toString()+(1===e.length?"0":"")+e}}}break;case"M":if(s>2&&s<6){var m=a["months-format-"+u[s-3]].concat();if(i.strict||(e=e.replace(".","").toLowerCase(),m=t.map(m,(function(e){return e.replace(".","").toLowerCase()}))),-1===(e=t.indexOf(m,e)))return!1}else e--;h[1]=e;break;case"e":break;case"D":h[1]=0;case"d":h[2]=e}return!0})),f=r.join(""),g=-1!==f.indexOf("d"),m=-1!==f.indexOf("M"),_=-1!==f.indexOf("y")||-1!==f.indexOf("u"),v=-1!==f.indexOf("D");_&&(m||v||(h[1]=0),g||v||(h[2]=1)),m&&!g&&(h[2]=1);var b=new Date(h[0],h[1],h[2]);b.setFullYear(h[0]);var y=b.setHours(0,0,0,0);v||b.getDate()===parseInt(h[2])||(b.setHours(1,0,0,0),b.setDate(h[2]),y=b.valueOf());var C=b.getHours();return 0!==C&&(y-=60*C*60*1e3,b=new Date(y)),p?b.toString()===new Date("").toString()?null:v||h[1]===b.getMonth()?b:null:null};var h={};s._getGregorianBundle=function(e){if(h[e])return h[e];var t=a.getGregorianBundle(e);return h[e]=t,h[e]},s.getNames=function(e,t,i,n){var o,r=s._getGregorianBundle(n),a=[e,i,t];"standAlone"===i&&(1===(o=r[a.join("-")])[0]&&(o=void 0));a[1]="format";var l=(o||r[a.join("-")]).concat();return l.forEach((function(e,t,i){i[t]=i[t].replace(".","")})),l},s.isWeekend=function(e,t){var i={start:6,end:0},n=(e||new Date).getDay();return i.end<i.start&&(i.end+=7,n<i.start&&(n+=7)),n>=i.start&&n<=i.end},s._getDayOfYear=function(e){var t=new Date(e.getFullYear(),0,1,e.getHours());return t.setFullYear(e.getFullYear()),i.difference(t,e)+1},s._getWeekOfYear=function(e,t){1===arguments.length&&(t=0);var i=new Date(e.getFullYear(),0,1);i.setFullYear(e.getFullYear());var n=i.getDay(),o=(n-t+7)%7,r=Math.floor((s._getDayOfYear(e)+o-1)/7);return n===t&&r++,r};var p={"ar-AE":"dd/MM/yyyy","ar-BH":"dd/MM/yyyy","ar-DZ":"dd-MM-yyyy","ar-EG":"dd/MM/yyyy","ar-IQ":"dd/MM/yyyy","ar-JO":"dd/MM/yyyy","ar-KW":"dd/MM/yyyy","ar-LB":"dd/MM/yyyy","ar-LY":"dd/MM/yyyy","ar-MA":"dd-MM-yyyy","ar-OM":"dd/MM/yyyy","ar-QA":"dd/MM/yyyy","ar-SA":"dd/MM/yy","ar-SY":"dd/MM/yyyy","ar-TN":"dd-MM-yyyy","ar-YE":"dd/MM/yyyy","bs-Cyrl-BA":"d.M.yyyy","bs-Latn-BA":"d.M.yyyy","ca-ES":"dd/MM/yyyy","cs-CZ":"d.M.yyyy","da-DK":"dd-MM-yyyy","de-AT":"dd.MM.yyyy","de-CH":"dd.MM.yyyy","de-DE":"dd.MM.yyyy","de-LI":"dd.MM.yyyy","de-LU":"dd.MM.yyyy","el-GR":"d/M/yyyy","en-029":"MM/dd/yyyy","en-AU":"d/MM/yyyy","en-BZ":"dd/MM/yyyy","en-CA":"dd/MM/yyyy","en-GB":"dd/MM/yyyy","en-IE":"dd/MM/yyyy","en-IN":"dd-MM-yyyy","en-JM":"dd/MM/yyyy","en-MY":"d/M/yyyy","en-NZ":"d/MM/yyyy","en-PH":"M/d/yyyy","en-SG":"d/M/yyyy","en-TT":"dd/MM/yyyy","en-US":"M/d/yyyy","en-ZA":"yyyy/MM/dd","en-ZW":"M/d/yyyy","es-AR":"dd/MM/yyyy","es-BO":"dd/MM/yyyy","es-CL":"dd-MM-yyyy","es-CO":"dd/MM/yyyy","es-CR":"dd/MM/yyyy","es-DO":"dd/MM/yyyy","es-EC":"dd/MM/yyyy","es-ES":"dd/MM/yyyy","es-GT":"dd/MM/yyyy","es-HN":"dd/MM/yyyy","es-MX":"dd/MM/yyyy","es-NI":"dd/MM/yyyy","es-PA":"MM/dd/yyyy","es-PE":"dd/MM/yyyy","es-PR":"dd/MM/yyyy","es-PY":"dd/MM/yyyy","es-SV":"dd/MM/yyyy","es-US":"M/d/yyyy","es-UY":"dd/MM/yyyy","es-VE":"dd/MM/yyyy","fi-FI":"d.M.yyyy","fr-BE":"d/MM/yyyy","fr-CA":"yyyy-MM-dd","fr-CH":"dd.MM.yyyy","fr-FR":"dd/MM/yyyy","fr-LU":"dd/MM/yyyy","fr-MC":"dd/MM/yyyy","he-IL":"dd/MM/yyyy","hr-BA":"d.M.yyyy.","hr-HR":"d.M.yyyy","hu-HU":"yyyy. MM. dd.","it-CH":"dd.MM.yyyy","it-IT":"dd/MM/yyyy","ja-JP":"yyyy/MM/dd","ko-KR":"yyyy-MM-dd","mk-MK":"dd.MM.yyyy","nb-NO":"dd.MM.yyyy","nl-BE":"d/MM/yyyy","nl-NL":"d-M-yyyy","pl-PL":"yyyy-MM-dd","pt-BR":"d/M/yyyy","pt-PT":"dd-MM-yyyy","ro-RO":"dd.MM.yyyy","ru-RU":"dd.MM.yyyy","sk-SK":"d. M. yyyy","sl-SI":"d.M.yyyy","sr-Cyrl-BA":"d.M.yyyy","sr-Cyrl-CS":"d.M.yyyy","sr-Cyrl-ME":"d.M.yyyy","sr-Cyrl-RS":"d.M.yyyy","sr-Latn-BA":"d.M.yyyy","sr-Latn-CS":"d.M.yyyy","sr-Latn-ME":"d.M.yyyy","sr-Latn-RS":"d.M.yyyy","sv-FI":"d.M.yyyy","sv-SE":"yyyy-MM-dd","th-TH":"d/M/yyyy","tr-TR":"dd.MM.yyyy","zh-CN":"yyyy/M/d","zh-HK":"d/M/yyyy","zh-MO":"d/M/yyyy","zh-SG":"d/M/yyyy","zh-TW":"yyyy/M/d"};return s.getLocaleDateFormatInfo=function(e){var t=this.adjustLocale(e);return p[t]||null},s.getBrowserDefaultLocale=function(){var e=navigator.language||navigator.userLanguage||"en-US";return null===this.getLocaleDateFormatInfo(e)&&(e="en-US"),this.adjustLocale(e)},s.adjustLocale=function(e){var t=e.replace(/_/g,"-").split("-",3);t.length>0&&(t[0]=t[0].toLowerCase()),2===t.length?t[1]=t[1].toUpperCase():3===t.length&&(t[1]=t[1].toLowerCase(),t[1].length>0&&(t[1]=t[1][0].toUpperCase()+t[1].substring(1)),t[2]=t[2].toUpperCase());var i=t.join("-");if(2===i.length)switch(i){case"ar":i="ar-AE";break;case"bs":i="bs-Cyrl-BA";break;case"ca":i="ca-ES";break;case"cs":i="cs-CZ";break;case"da":i="da-DK";break;case"de":i="de-AT";break;case"el":i="el-GR";break;case"en":i="en-US";break;case"es":i="es-AR";break;case"fi":i="fi-FI";break;case"fr":i="fr-FR";break;case"he":i="he-IL";break;case"hr":i="hr-BA";break;case"hu":i="hu-HU";break;case"it":i="it-IT";break;case"ja":i="ja-JP";break;case"ko":i="ko-KR";break;case"mk":i="mk-MK";break;case"nb":i="nb-NO";break;case"nl":i="nl-BE";break;case"pl":i="pl-PL";break;case"pt":i="pt-BR";break;case"ro":i="ro-RO";break;case"ru":i="ru-RU";break;case"sk":i="sk-SK";break;case"sl":i="sl-SI";break;case"sr":i="sr-Cyrl-BA";break;case"sv":i="sv-FI";break;case"th":i="th-TH";break;case"tr":i="tr-TR";break;case"zh":i="zh-CN"}return i},s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(217),i(210),i(228),i(224),i(1492),i(441),i(481),i(482),i(289),i(2176),i(284),i(1497)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([s,l,c,d,u,h,f],{createView:function(){this.inherited(arguments),this._startRender(),this._createSVGDOMContainer(),this._customizeVCWidgetDOMNode(),this._endRender(),this.peernode.dispatchEventToServer("viewReady",{}),this.peernode.setProperty("isViewReady",!0),this.addMouseEventListeners(this._VCWidgetDOMNode)},createWidget:function(e){i.place(i.toDom(e),this.SVGContainer),this.SVGDocument=this.SVGContainer.children[this.SVGContainer.childElementCount-1],this.setOrientationPropertyOnContainerDomNode(),this.addDisableListener(this._VCWidgetDOMNode),this.setUpComponentOnLoad(),this.initializeComponent()},onResize:function(){},getSvgFileName:function(){throw new Error("getSvgFileName function must be implemented in a base class")},getSVGFileText:function(e){throw new Error("getSVGFileText function must be implemented in a base class")},setUpComponentOnLoad:function(){throw new Error("setUpComponentOnLoad function must be implemented in a base class")},initializeComponent:function(){var e=this.getInitializationPropertyNames();this.updateFontPropertiesFromModel(),this.setProperties(e)},getInitializationPropertyNames:function(){return["Enable","Size","Location","Tooltip","LayoutConstraints","ContextMenuID"]},setProperties:function(e){this.inherited(arguments),this.doSetProperties(e)},doSetProperties:function(e){},_Enable:function(e){var t=p.toJSBoolean(e);t?o.contains(this._VCWidgetDOMNode,"vc-hmiComponentDisabled")&&o.remove(this._VCWidgetDOMNode,"vc-hmiComponentDisabled"):o.add(this._VCWidgetDOMNode,"vc-hmiComponentDisabled"),this.setDisabled(!t)},handleInnerSizeSet:function(e){this.inherited(arguments),this.setSVGSize(e[0],e[1]),this.onResize(e)},setSVGSize:function(e,t){this.SVGDocument.style.display="none",this.SVGDocument.height.baseVal.value=parseFloat(t),this.SVGDocument.width.baseVal.value=parseFloat(e),this.SVGDocument.style.display="block"},updateComponentSize:function(e,t,i,n){this.setSVGSize(t[0],t[1])},setOrientationPropertyOnContainerDomNode:function(){var e=this.peernode.getProperty("Orientation");void 0!==e&&r.set(this._VCWidgetDOMNode,"data-orientation",e)},destroy:function(){this.removeDisableListener(this._VCWidgetDOMNode),i.destroy(this._VCWidgetDOMNode),this.inherited(arguments)},_customizeVCWidgetDOMNode:function(){o.add(this._VCWidgetDOMNode,"vc-userSelectNone")},_createSVGDOMContainer:function(){var e,t=this.getSvgFileName();this._assertPositiveSize([n.position(this._VCWidgetDOMNode).w,n.position(this._VCWidgetDOMNode).h]),e=this.baseClass?"vc-svgContainer "+this.baseClass:"vc-svgContainer",this.SVGContainer=i.create("div",{class:e},this._VCWidgetDOMNode);var o=this.getSVGFileText(t),r="_"+t,a=r+"_"+this.peernode.getId(),s=new RegExp(r,"g"),l=o.replace(s,a);this.createWidget(l)},_assertPositiveSize:function(e){if(e[0]<0)throw new Error("Expected Size (Width) to be positive, it was: "+e[0]);if(e[1]<0)throw new Error("Expected Size (Height) to be positive, it was: "+e[0])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=function(e){var t;switch(e.getType().toLowerCase()){case"matlab.ui.control.button":case"matlab.ui.control.checkbox":t=!1;break;case"matlab.ui.control.discreteknob":t=!0;break;case"matlab.ui.control.dropdown":case"matlab.ui.control.datepicker":case"matlab.ui.control.editfield":case"matlab.ui.control.gauge":case"matlab.ui.control.html":t=!0;break;case"matlab.ui.control.image":t=!1;break;case"matlab.ui.control.knob":t=!0;break;case"matlab.ui.control.label":case"matlab.ui.control.hyperlink":case"matlab.ui.control.lamp":t=!1;break;case"matlab.ui.control.lineargauge":t="horizontal"===e.getProperty("Orientation").toLowerCase();break;case"matlab.ui.control.listbox":case"matlab.ui.control.ninetydegreegauge":case"matlab.ui.control.numericeditfield":t=!0;break;case"matlab.ui.control.radiobutton":case"matlab.ui.control.rockerswitch":t=!1;break;case"matlab.ui.control.semicirculargauge":t=!0;break;case"matlab.ui.control.slider":t="horizontal"===e.getProperty("Orientation").toLowerCase();break;case"matlab.ui.control.spinner":t=!0;break;case"matlab.ui.control.statebutton":case"matlab.ui.control.switch":t=!1;break;case"matlab.ui.control.table":case"matlab.ui.control.textarea":t=!0;break;case"matlab.ui.control.togglebutton":case"matlab.ui.control.toggleswitch":t=!1;break;case"matlab.ui.container.tree":case"matlab.ui.container.checkboxtree":case"matlab.ui.control.uiaxes":case"aero.ui.control.airspeedindicator":case"aero.ui.control.altimeter":case"aero.ui.control.artificialhorizon":case"aero.ui.control.climbindicator":case"aero.ui.control.egtindicator":case"aero.ui.control.headingindicator":case"aero.ui.control.rpmindicator":case"aero.ui.control.turncoordinator":case"matlab.ui.control.internal.progressindicator":case"matlab.ui.control.internal.circularprogressindicator":t=!0;break;case"matlab.ui.container.gridlayout":t=e.getController().contentGrowsHorizontally();break;case"matlab.ui.control.internal.colorpicker":t=!1;break;default:t=!1}return t},t=function(e){var t;switch(e.getType().toLowerCase()){case"matlab.ui.control.button":case"matlab.ui.control.checkbox":t=!1;break;case"matlab.ui.control.discreteknob":t=!0;break;case"matlab.ui.control.dropdown":case"matlab.ui.control.datepicker":case"matlab.ui.control.editfield":t=!1;break;case"matlab.ui.control.gauge":case"matlab.ui.control.html":t=!0;break;case"matlab.ui.control.image":t=!1;break;case"matlab.ui.control.knob":t=!0;break;case"matlab.ui.control.label":case"matlab.ui.control.hyperlink":case"matlab.ui.control.lamp":t=!1;break;case"matlab.ui.control.lineargauge":t="horizontal"!==e.getProperty("Orientation").toLowerCase();break;case"matlab.ui.control.listbox":case"matlab.ui.control.ninetydegreegauge":t=!0;break;case"matlab.ui.control.numericeditfield":case"matlab.ui.control.radiobutton":case"matlab.ui.control.rockerswitch":t=!1;break;case"matlab.ui.control.semicirculargauge":t=!0;break;case"matlab.ui.control.slider":t="horizontal"!==e.getProperty("Orientation").toLowerCase();break;case"matlab.ui.control.spinner":case"matlab.ui.control.statebutton":case"matlab.ui.control.switch":t=!1;break;case"matlab.ui.control.table":case"matlab.ui.control.textarea":t=!0;break;case"matlab.ui.control.togglebutton":case"matlab.ui.control.toggleswitch":t=!1;break;case"matlab.ui.container.tree":case"matlab.ui.container.checkboxtree":case"matlab.ui.control.uiaxes":case"aero.ui.control.airspeedindicator":case"aero.ui.control.altimeter":case"aero.ui.control.artificialhorizon":case"aero.ui.control.climbindicator":case"aero.ui.control.egtindicator":case"aero.ui.control.headingindicator":case"aero.ui.control.rpmindicator":case"aero.ui.control.turncoordinator":t=!0;break;case"matlab.ui.control.internal.progressindicator":t=!1;break;case"matlab.ui.control.internal.circularprogressindicator":t=!0;break;case"matlab.ui.container.gridlayout":t=e.getController().contentGrowsVertically();break;case"matlab.ui.control.internal.colorpicker":t=!1;break;default:t=!1}return t};return{shouldComponentGrow:function(i,n){var o,r;if("horizontal"===n.toLowerCase()?r=e:"vertical"===n.toLowerCase()&&(r=t),i.isContainer()){o=!1;var a,s=this.getRepositionableChildren(i);for(a=0;a<s.length;a++)if(this.shouldComponentGrow(s[a],n)){o=!0;break}}else{var l=i.getPeerNode();o=void 0===l||r(l)}return o},_isChildRepositionable:function(e){var t=e.getOuterPositionInPixels();if(void 0===t)throw new Error("AutoLayout::_isChildRepositionable: at this point all children are expected to be positionable");var i=t[0],n=t[1],o=t[2],r=t[3];return i+o>=0&&n+r>=0},getRepositionableChildren:function(e){return null==e?[]:e.getPositionableChildren().filter((function(e){return this._isChildRepositionable(e)}),this)},isContainer:function(e){var t;switch(e.getType().toLowerCase()){case"matlab.ui.container.buttongroup":case"matlab.ui.container.panel":case"matlab.ui.container.tabgroup":case"matlab.ui.container.tab":case"matlab.ui.container.internal.uicontainer":t=!0;break;default:t=!1}return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{waitForCondition:function(e,t=10){return new Promise((function(i,n){!function n(){e()?i():setTimeout(n,t)}()}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(){this._ID="",this._isEnabled=!0},setID:function(e){this._ID=e},log:function(e){if(this._isEnabled){t.publish("/graphics/PubSubLogger/log",{message:this._ID+": "+e})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(211),i(212),i(244),i(964),i(2189),i(1164),i(965),i(5987),i(5988),i(5994),i(5996),i(6080),i(2191),i(6082),i(6083),i(6084),i(1526),i(554),i(6085),i(6090),i(329),i(2193),i(2194),i(2205),i(6104),i(6124),i(6125),i(215),i(216),i(230),i(6126)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M){var P=e([N,L,b],{baseClass:"GraphicsView",ViewMode:{none:0,scene:1,image:2},_viewMode:null,_View:null,_pixelScaleMonitoringToken:null,_channelID:"",_MessageServiceProxy:null,_sceneEventPublisher:null,_canvasEventPublisher:null,_imageMouseEventPublisher:null,_subscriptions:{},_interactionEnabled:!0,templateString:M,constructor:function(e){if(e&&!e.Container)throw new Error("Container argument must be passed to the GraphicsView Dijit constructor");this.target=e.Container,e.Container.containerNode&&(this.target=e.Container.containerNode),this._MessageServiceProxy=new l(e.MessageService),this.own(this._MessageServiceProxy),this._PubSubLogger=new s,this._subscriptions={},this._viewMode=this.ViewMode.none,this._CanvasACTResponder=new u({}),this.own(this._CanvasACTResponder),this._boundDispatchCommandFcn=this._dispatchCommand.bind(this),this._interactionsManager=new I(this),void 0!==e.ControlManager?this._controlManager=e.ControlManager:(this._controlManager=new w(this),this._layoutableObject=this._controlManager.getLayoutableObject()),this._controlManager.onEvent("request",function(e){var t={message:JSON.stringify(e)};this._canvasEventPublisher&&this._canvasEventPublisher.publish("controlmanagermessage",t)}.bind(this)),this._ConnectionStatus=new a,this.own(this._ConnectionStatus),this._ConnectionStatus.addReconnectEventCallback(this._MessageServiceProxy,function(){this._MessageServiceProxy.publish("/graphics/"+this._channelID+"/reconnectEvent",{})}.bind(this)),this._defineEvent("graphicscomplete"),this._defineEvent("viewchanged"),this.own(d.getInstance().onEvent("environmentchanged",function(e){this._handleEnvironmentEvent(e)}.bind(this))),this._pictureListener=null,this._RendererVersion=0},destroy:function(){this.inherited(arguments),null!==this._pixelScaleMonitoringToken&&(f.unsubscribe(this._pixelScaleMonitoringToken),this._pixelScaleMonitoringToken=null)},setPictureListener:function(e){if(this._pictureListener&&e)throw new Error("PictureListener already set.");this._pictureListener=e,this._View&&this._View.setPictureListener(e)},postCreate:function(){this.inherited(arguments),t.set(this.domNode,"width","100%"),t.set(this.domNode,"height","100%")},addToContainer:function(){this.target.contains(this.domNode)||(i.place(this.domNode,this.target,"first"),this._pixelScaleMonitoringToken=f.subscribe(this.redrawScene.bind(this)))},_setUseBinaryChannelAttr:function(e){P._getBinaryDataReceiverAndSink(this._BinaryChannelId)._fUseBinaryChannel=e},_getUseBinaryChannelAttr:function(){return P._getBinaryDataReceiverAndSink(this._BinaryChannelId)._fUseBinaryChannel},_setRendererVersionAttr:function(e){this._RendererVersion=e},_setBinaryChannelIdAttr:function(e){this._BinaryChannelId=e},_setServerIdAttr:function(e){this.setSceneChannel(e),this._PubSubLogger.setID(e),""!==e&&(this._checkWebglSupport(e,this._RendererVersion),this._handleEnvironmentEvent(d.getInstance().getViewData()))},_getServerIdAttr:function(){return this.getSceneChannel()},getControlManager:function(){return this._controlManager},getObjectPicker:function(){return this.hasOwnProperty("_objectPicker")||(this._objectPicker=new A(this),this._objectPicker.onEvent("request",function(e){var t={message:JSON.stringify(e)};this._canvasEventPublisher&&this._canvasEventPublisher.publish("objectpickermessage",t)}.bind(this))),this._objectPicker},getRectanglePicker:function(){return this.hasOwnProperty("_rectanglePicker")||(this._rectanglePicker=new x(this)),this._rectanglePicker},draw:function(){this._View.draw()},redrawScene:function(){this._View&&this._View.redraw()},getRenderer:function(){return this._View?this._View.getRenderer():void 0},setRenderer:function(e){this._View&&this._View.setRenderer(e)},_getSubscriptionKey:function(e,t){return e+t},unsubscribeChannel:function(e,t,i){var n=this._getSubscriptionKey(e,t);if(!(n in this._subscriptions))throw new Error("Unsubscribing to a non-existent key");this._subscriptions[n].destroy()},_isBinaryStreamNotConnected:function(e){return e._binaryDataReceiver.getConnectionStatus()===e._binaryDataReceiver.ConnectionStatus.none||e._binaryDataReceiver.getConnectionStatus()===e._binaryDataReceiver.ConnectionStatus.disconnected},subscribeChannel:function(e,t,i){var r=new n,a=P._getBinaryDataReceiverAndSink(this._BinaryChannelId),s=(new n).resolve();this._BinaryChannelId&&a._fUseBinaryChannel&&this._isBinaryStreamNotConnected(a)&&(s=a._binaryDataReceiver.connect(this._BinaryChannelId));var l=this._getSubscriptionKey(e,t);if(l in this._subscriptions&&!this._subscriptions[l].isDestroyed())throw new Error("Subscribing to the same key twice");var c="/graphics/"+e+"/"+t;return this._subscriptions[l]=this._MessageServiceProxy.subscribe(c,i),this.own(this._subscriptions[l]),o([s,this._subscriptions[l].Promise]).then(function(){var e=c+"/channelReady",t=P._getBinaryDataReceiverAndSink(this._BinaryChannelId)._binaryDataReceiver,i=t.getConnectionStatus(),n=t.usingFastChannel;this._MessageServiceProxy.publish(e,{binaryChannelStatus:i,useFastBinary:n}),this._sendNewViewEvent(),this.emit("attached",{}),r.resolve()}.bind(this)),r},setSceneChannel:function(e){var t=!1;if(this._channelID!==e&&(""!==this._channelID&&this.unsubscribeChannel(this._channelID,"command",this._boundDispatchCommandFcn),""!==e&&(t=!0)),this._channelID=e,!0===t){var i=function(e,t){return e?e.setChannel(t):e=new c(t,this._MessageServiceProxy),e}.bind(this);return this._sceneEventPublisher=i(this._sceneEventPublisher,"/graphics/"+this._channelID+"/scene/event"),this._canvasEventPublisher=i(this._canvasEventPublisher,"/graphics/"+this._channelID+"/hgcanvas/event"),this._imageMouseEventPublisher=i(this._imageMouseEventPublisher,"/graphics/"+this._channelID+"/SSR/events"),this.subscribeChannel(this._channelID,"command",this._boundDispatchCommandFcn)}return(new n).resolve()},_dispatchCommand:function(e){var t=e.data.cmd;if("viewMode"===t)this.setViewMode(e);else if("disconnect"===t)setTimeout(function(){this.setSceneChannel("")}.bind(this),0);else if("binarydata"===t){var i=e.data.data,n=e.data.binarystreamName;for(var o in i)i.hasOwnProperty(o)&&P._getBinaryDataReceiverAndSink(n)._binaryDataReceiver.handleBase64Data(o,i[o])}else if("serverBaselinePPI"===t)this.setServerBaselinePPI(e);else if("DepthPeelingProperties"===t)this.setDepthPeelingProperties(e);else if("WideLineProperties"===t)E.enableWideLineV2Shader=e.data.enablewidelinev2;else if("controlmanagermessage"===t)this._controlManager.handleMessage(e.data.message);else if("interactionsmanagermessage"===t)this._interactionsManager.handleMessage(e.data.message);else if("objectpickermessage"===t)this.getObjectPicker().handleMessage(e.data.message);else if(this._View){if(!e||!e.data)throw new Error("Argument cmd must have a valid data object");this._View.processCmd(e.data)}else this._PubSubLogger.log("GraphicsView._dispatchCommand dropped cmd: "+t)},findFigureAncestorNode:function(){for(var e=this._View.domNode;(e=e.parentElement)&&!e.classList.contains("figureContainerNode"););return e},getFigureAncestorNode:function(){return this._View.FigureAncestorNode},setFigureAncestorNode:function(e){this._View.FigureAncestorNode=e},setViewMode:function(e){this.addToContainer();var t=e.data.viewMode;t!==this._viewMode&&(this._viewMode!==this.ViewMode.none&&this._teardownView(),this._viewMode=t,t===this.ViewMode.scene?this._setupSceneView():t===this.ViewMode.image&&this._setupImageView(),this._View.setPictureListener(this._pictureListener),this._interactionEnabled&&this._interactionsManager.setup(),this.setFigureAncestorNode(this.findFigureAncestorNode()),this.emitEvent("viewchanged",{}))},getViewMode:function(){return this._viewMode},setServerBaselinePPI:function(e){T._ServerBaselinePPI=e.data.baselineppi},setDepthPeelingProperties:function(e){S.postprocessingeffect=e.data.postprocessingeffect},getSceneChannel:function(){return this._channelID},_setupSceneView:function(){this._View=new h({Container:this.graphicsViewNode,pubsubLogger:this._PubSubLogger,sceneEventPublisher:this._sceneEventPublisher,canvasEventPublisher:this._canvasEventPublisher}),this._View.placeAt(this.graphicsViewNode,"first"),this._View.setBinaryDataSinkCallBack(P._getBinaryDataReceiverAndSink),this._setupControllerForSceneView(),this._View.onEvent("act",function(e){this._CanvasACTResponder.update(e.data)}.bind(this)),this._View.onEvent("graphicscomplete",function(e){this.emitEvent("graphicscomplete")}.bind(this)),this._View.onEvent("textextent",function(e){e.Type="TextExtentsResult",this._MessageServiceProxy.publish("/graphics/"+this._channelID+"/scene/textextents",e)}.bind(this))},_setupImageView:function(){this._View=new p(this._channelID,this._PubSubLogger,this._canvasEventPublisher),this._View.placeAt(this.graphicsViewNode,"first"),this._View.setBinaryDataSinkCallBack(P._getBinaryDataReceiverAndSink),this._setupControllerForImageView(),this._View.onEvent("act",function(e){this._CanvasACTResponder.update(e.data)}.bind(this)),this._View.onEvent("graphicscomplete",function(e){this.emitEvent("graphicscomplete")}.bind(this))},_teardownView:function(){this._View.destroyRecursive(),this._View=null},_setupControllerForSceneView:function(){this._interactionEnabled?this._View.setController(new g(this._sceneEventPublisher,this._uiEventRecordCreator)):this._View.setController(new _)},_setupControllerForImageView:function(){this._interactionEnabled?this._View.setController(new m(this._imageMouseEventPublisher)):this._View.setController(new _)},setInteractionEnabled:function(e){e!==this._interactionEnabled&&(this._interactionEnabled=e,this._viewMode===this.ViewMode.scene?this._setupControllerForSceneView():this._viewMode===this.ViewMode.image&&this._setupControllerForImageView())},getAxesControl:function(e){return this._View?this._View.getAxesControl(e):null},getCameraControl:function(e){return this._View?this._View.getCameraControl(e):null},getCameraIDFromCameraParent:function(e){return this._View?this._View.getCameraIDFromCameraParent(e):null},getAxesExternalAPI:function(){return this._View?this._View.getAxesExternalInterface(0):new v(null)},getSceneView:function(){return this._View},getImageDataURL:function(){return this._View.getImageDataURL()},_checkWebglSupport:function(e,t){var i=r.isGLAvailable(t);this._canvasEventPublisher&&this._canvasEventPublisher.publish("WebglSupport",{Status:i})},setUIEventRecordCreator:function(e){this._uiEventRecordCreator=e},_handleEnvironmentEvent:function(e){this._canvasEventPublisher&&this._canvasEventPublisher.publish("ViewEnvironment",e.toPlainObject())},_sendNewViewEvent:function(){this._ConnectionStatus.newViewEvent(this._MessageServiceProxy,"/graphics/"+this._channelID+"/newViewEvent")},createCloneDOMNode:function(){return this._View?this._View.createCloneDOMNode():null},getLayoutableChildren:function(){return this._layoutableObject.getLayoutableChildren()},setChildAddedCallback:function(e){return this._layoutableObject.setChildAddedCallback(e)},setChildRemovedCallback:function(e){return this._layoutableObject.setChildRemovedCallback(e)},setChildReadinessCallback:function(e){return this._layoutableObject.setChildReadinessCallback(e)}});return P._getBinaryDataReceiverAndSink=function(e,t,i){if(void 0===window.GraphicsBinaryStreamData[e]){var n={_fUseBinaryChannel:!1};n._binaryDataSink=i||new C(e),n._binaryDataReceiver=t||new y,n._binaryDataReceiver.onEvent("datareceived",(function(e){n._binaryDataSink.processData(e.uri,e.data)})),window.GraphicsBinaryStreamData[e]=n}return window.GraphicsBinaryStreamData[e]},P._destroyBinaryStream=function(e){var t=e.data.binaryStreamId;void 0!==window.GraphicsBinaryStreamData[t]&&(window.GraphicsBinaryStreamData[t]._binaryDataReceiver.disconnect(),delete window.GraphicsBinaryStreamData[t])},window.GraphicsBinaryStreamData={},window.GraphicsBinaryStreamData._MessageServiceProxy=new l,window.GraphicsBinaryStreamData._binaryStreamManagementFcn=P._getBinaryDataReceiverAndSink,window.GraphicsBinaryStreamData._destroyStreamSubscription=window.GraphicsBinaryStreamData._MessageServiceProxy.subscribe("/graphics/DestroyBinaryStream",P._destroyBinaryStream),P}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(325),i(329),i(6001),i(6002),i(1356),i(406)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{TexFontsPromise:o,_mod360:function(e){return e=((e=Math.round(100*e)/100)%360+360)%360},_convertAngleHAlign:function(t){let i=e.HorizontalAlignment.left;return 90===t||270===t?i=e.HorizontalAlignment.center:t>90&&t<270&&(i=e.HorizontalAlignment.right),i},_convertAngleVAlign:function(t){let i=e.VerticalAlignment.bottom;return 0===t||180===t?i=e.VerticalAlignment.middle:t>180&&t<360&&(i=e.VerticalAlignment.top),i},calculateTextBackgroundRect:function(e,i,n,o,r){var a=r.width/2,s=r.height/2,l=i/a,c=i/s,d=e.width/a,u=e.height/s;return{x:-l-t.getHorizontalTranslation(e.width,n)/a,y:-c-t.getVerticalTranslation(e.height,o)/s,width:d+2*l,height:u+2*c}},makeTextBackgroundVertexArray:function(e,i,n){var o=r.createFloat32Array(2*this.getNumBgVerts());return o[0]=e.x,o[1]=e.y,o[2]=e.x,o[3]=e.y+e.height,o[4]=e.x+e.width,o[5]=e.y,o[6]=e.x+e.width,o[7]=e.y+e.height,t.rotate2DWithAspect(o,this.getNumBgVerts(),i,n)},getNumBgVerts:function(){return 4},getNumEdgeVerts:function(){return 24},makeTextEdgeVertexArray:function(i,n,o,a,s,l){var c=s;c<1&&(c=1);var d=c/a.width,u=c/a.height,h=i.height*(a.height/2),p=i.width*(a.width/2),f=c,g=r.createFloat32Array(2*this.getNumEdgeVerts()),m=0,_=0,v=i.x,b=i.y,y=i.x,C=i.y+i.height,T=i.x+i.width,E=i.y+i.height,S=i.x+i.width,w=i.y;g[m++]=v-d,g[m++]=b-u,g[m++]=v+d,g[m++]=b-u,g[m++]=y+d,g[m++]=C+u,g[m++]=v-d,g[m++]=b-u,g[m++]=y-d,g[m++]=C+u,g[m++]=y+d,g[m++]=C+u,g[m++]=y+d,g[m++]=C-u,g[m++]=y+d,g[m++]=C+u,g[m++]=T+d,g[m++]=E+u,g[m++]=y+d,g[m++]=C-u,g[m++]=T+d,g[m++]=E-u,g[m++]=T+d,g[m++]=E+u,g[m++]=T+d,g[m++]=E-u,g[m++]=T-d,g[m++]=E-u,g[m++]=S+d,g[m++]=w-u,g[m++]=T-d,g[m++]=E-u,g[m++]=S-d,g[m++]=w-u,g[m++]=S+d,g[m++]=w-u,g[m++]=S-d,g[m++]=w-u,g[m++]=S-d,g[m++]=w+u,g[m++]=v+d,g[m++]=b+u,g[m++]=S-d,g[m++]=w-u,g[m++]=v+d,g[m++]=b-u,g[m++]=v+d,g[m++]=b+u;var I=t.rotate2DWithAspect(g,24,n,o),A=null;if(l!==e.LineStyle.solid){var x=h+f,N=x+p,L=N+h,D=L+p-f;(A=r.createFloat32Array(24))[_++]=0,A[_++]=0,A[_++]=x,A[_++]=0,A[_++]=x,A[_++]=x,A[_++]=x,A[_++]=x,A[_++]=N,A[_++]=x,A[_++]=N,A[_++]=N,A[_++]=N,A[_++]=N,A[_++]=L,A[_++]=N,A[_++]=L,A[_++]=L,A[_++]=L,A[_++]=L,A[_++]=D,A[_++]=L,A[_++]=D,A[_++]=D}return{vertexArray:I,stippleCoords:A,lineWidth:c}},makeTextHandler:function(t,o){var r,a=null,s=/[{_^\\]/;if(t===e.TextInterpreter.none)a=new i;else if(t===e.TextInterpreter.latex)a=new n("tex");else{for(r=0;r<o.length;++r)if(o[r].match(s)){a=new n("simpletex");break}null===a&&(a=new i)}return a},calculateTextExtents:function(e,i,n,o,r){r=t.guiVertAlignToJSVertAlign(r);var a=this.makeTextHandler(i,n),s=t.computeTextLogicalBounds(n,e,o,r,a);return a.destroy(),{xmin:s.x,ymin:s.y,xmax:s.x+s.width,ymax:s.y+s.height}},calculateTextExtentsInPixels:function(e,i,n,o,r){r=t.guiVertAlignToJSVertAlign(r);var a=this.makeTextHandler(i,n),s=t.computeTextLogicalBoundsInPixels(n,e,o,r,a);return a.destroy(),{xmin:s.x,ymin:s.y,xmax:s.x+s.width,ymax:s.y+s.height}},getAlignment:function(e,t){if(e.vectorizedAlignment){let i=this._mod360(e.angleAlignment[t]);return{horizontal:this._convertAngleHAlign(i),vertical:this._convertAngleVAlign(i)}}return{horizontal:e.horizontalAlignment,vertical:e.verticalAlignment}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(365)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e,t,i){this._mat=e,this._width=t,this._height=i},getMatrix:function(){return this._mat},getWidth:function(){return this._width},getHeight:function(){return this._height},compare:function(e){return this._width===e._width&&this._height===e._height&&t.compare(this._mat,e._mat,1e-7)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(969)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(){},disable:function(){},setLimits:function(){},filterAndTransform:function(e,i,n,o,r){var a=t.filterVertexData(r.getOriginalVertexData(),e,i,o);a=t.transformData(a,n),r.setVertexData(a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{_startdata:null,execute:function(e){switch(e.name){case"dragstart":this._startdata=this.start(e);break;case"dragprogress":this.move(e,this._startdata);break;case"dragend":this.stop(e,this._startdata),this._startdata=[]}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(971)],o=i.dj.d(n,(function(e,t,i){return e([i],{getGraphicsViewChildren:function(){var e=[];return void 0!==this.widget&&void 0!==this.widget.GraphicsView&&null!==this.widget.GraphicsView&&(e=this.widget.GraphicsView.getLayoutableChildren()),void 0===e&&(e=[]),e},getAndAppendGraphicsViewChildren:function(e){var t=this.getGraphicsViewChildren();return void 0!==e&&void 0!==t&&(e=e.concat(t)),e},getPositionableChildren:function(){var e=this.inherited(arguments);return void 0===e&&(e=[]),this.getAndAppendGraphicsViewChildren(e)},getAllChildren:function(){var e=this.inherited(arguments);return void 0===e&&(e=[]),this.getAndAppendGraphicsViewChildren(e)},addChildAddedListener:function(){this.inherited(arguments),void 0!==this.widget&&void 0!==this.widget.GraphicsView?this.widget.GraphicsView.setChildAddedCallback(function(e){this.emit("containerChildAdded",e)}.bind(this)):this.own(t(this,"viewReady",function(){void 0!==this.widget&&void 0!==this.widget.GraphicsView&&this.widget.GraphicsView.setChildAddedCallback(function(e){this.emit("containerChildAdded",e)}.bind(this))}.bind(this)))},addChildRemovedListener:function(){this.inherited(arguments),void 0!==this.widget&&void 0!==this.widget.GraphicsView?this.widget.GraphicsView.setChildRemovedCallback(function(e){this.emit("containerChildRemoved",e)}.bind(this)):this.own(t(this,"viewReady",function(){void 0!==this.widget&&void 0!==this.widget.GraphicsView&&this.widget.GraphicsView.setChildRemovedCallback(function(e){this.emit("containerChildRemoved",e)}.bind(this))}.bind(this)))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{setPropertyValueFromServer:function(e,t){throw new Error("setPropertyValueFromServer() unimplemented function")},setUniqueFigureId:function(e){throw new Error("setUniqueFigureId() unimplemented function")},registerMsgFromClientHandler:function(e){throw new Error("registerMsgFromClientHandler() unimplemented function")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(2212),i(6143)],o=i.dj.d(n,(function(e,t,i,n){var o={UNASSIGNED:0,SIZE:1,SIZELOCATION:2},r={UNSET:"unset",NORMAL:"normal",MAXIMIZED:"maximized",MINIMIZED:"minimized",FULLSCREEN:"fullscreen"},a=e([t],{_winStrategyType:o.UNASSIGNED,_windowState:r.UNSET,constructor:function(){this.windowBounds={x:1,y:1,width:0,height:0},this._toolBarHeight=0,this._windowVisible=!1;var e=this._winStrategyType;if(void 0===e||e===o.UNASSIGNED)throw new Error("Unknown window bounds strategy type passed into the constructor");this._createWindowBoundsStrategy(e),this._startListeningToViewResize()},_createWindowBoundsStrategy:function(e){switch(this.boundsStrategy=null,e){case o.SIZE:this.boundsStrategy=new i;break;case o.SIZELOCATION:this.boundsStrategy=new n;break;default:throw new Error("unknown Window Bounds Strategy type")}},_startListeningToViewResize:function(){},_handleViewResize:function(e){},_storeAndNotifyOnSizeChange:function(e,t){},reSizeOnToolsAdded:function(e,t){this._toolBarHeight=t.h},reSizeOnToolsRemoved:function(e,t){this._toolBarHeight=t.h},setFigurePosition:function(e){},setWindowState:function(e){},setWindowStyle:function(e){},setResizable:function(e){},setTitle:function(e){},setVisible:function(e){this._windowVisible=e},updateWindowBounds:function(e){if(4!==e.length)throw new Error("updateWindowBounds expects a 4 vector");this.windowBounds=this.boundsStrategy.getUpdatedWindowBounds(e)},initializeWindowBoundsFromPeerNode:function(e){var t=e.getProperty("Position");t&&(t.fromClient&&(t=t.Value,e.setProperties({Position:t})),this.updateWindowBounds(t))},setMaximizeState:function(e){},_handleInitializedToFullscreen:function(){},_escapeFullscreen:function(){},_toggleFullscreen:function(){},formatAndUpdateWidgetRenderedSize:function(e,t){},_convertFromOneToZeroOrigin:function(e){return[e[0]-1,e[1]-1,e[2],e[3]]},_convertFromZeroToOneOrigin:function(e){return[e[0]+1,e[1]+1,e[2],e[3]]}});return a.WINDOW_STRATEGY_TYPE=o,a.WINDOW_STATE_TYPE=r,a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({EDITOR:"editorValue",RENDERER:"rendererValue"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return{getHighlightedTextDOM:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mw-table-highlight",n=[];return Array.isArray(t)&&t.length>0?n=this._getMatchedDOM(e,t,i):n.push(this._createNonHighlightedTextContentForDisplay(e)),n},getFieldSpecificHighlightData:function(e,t){return!(e.field!==t||!Array.isArray(e.matches))&&e.matches},_getHighlightTextArray:function(e,t){var i=[],n=0;return t.forEach((function(t){t.start>n&&i.push({value:e.substring(n,t.start),highlight:!1}),t.count=t.count||0,i.push({value:e.substring(t.start,t.start+t.count),highlight:!0,className:t.className}),n=t.start+t.count})),e.length>n&&i.push({value:e.substring(n,e.length),highlight:!1}),i},_getMatchedDOM:function(e,t,i){var n=this;return this._getHighlightTextArray(e,t).map((function(e){var o=e.value,r=e.highlight,a=e.className,s=void 0;return r?(s=n._createHighlightedTextContentForDisplay(o)).className=a||t.className||i:s=n._createNonHighlightedTextContentForDisplay(o),s}))},_createHighlightedTextContentForDisplay:function(e){var t=document.createElement("mark");return t.textContent=e,t},_createNonHighlightedTextContentForDisplay:function(e){return document.createTextNode(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239)],o=i.dj.d(n,(function(e){return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"addMetadataToCol",value:function(t,i,n,o){var r=[],a=[],s=i.getStateByKey(n);s&&(a=s.value,r=s.rangeList),a.push(o),r.push(e.range().setEntireColumns(t)),i.setState(n,a,r)}},{key:"addMetadataToRow",value:function(t,i,n,o){var r=[],a=[],s=i.getStateByKey(n);s&&(r=s.rangeList,a=s.value),a.push(o),r.push(e.range().setEntireRows(t)),i.setState(n,a,r)}},{key:"addMetadataToRange",value:function(t,i,n,o,r,a,s){var l=[],c=[],d=r.getStateByKey(a);d&&(l=d.rangeList,c=d.value),c.push(s),l.push(e.range().setRows(t,i).setColumns(n,o)),r.setState(a,c,l)}},{key:"getRangeForCell",value:function(t,i){return e.range().setRows(t,t).setColumns(i,i)}},{key:"getRangeForRow",value:function(t){return e.range().setEntireRows(t)}},{key:"getRangeForColumn",value:function(t){return e.range().setEntireColumns(t)}},{key:"getStateForKey",value:function(e,t){var i=e.getStateByKey(t);return i?{rangeList:i.rangeList,value:i.value}:{rangeList:null,value:null}}},{key:"updateDataForCell",value:function(t,i,n,o){i=Number(i),n=Number(n);var r=e.range().setRows(i,i).setColumns(n,n);t.update(r,[[o]])}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";var e=Object.freeze({ROW_LINES:"ROW_LINES",LIGHT_WEIGHT:"LIGHT_WEIGHT",STANDARD:"STANDARD"});return Object.freeze({ROW_LINES:"mw-table-gridstyle-rowlines",LIGHT_WEIGHT:"mw-table-gridstyle-lightweight",COLUMN_LINES:"mw-table-gridstyle-columnlines",STANDARD:"",public_enum:e})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(t){for(var i in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._mapping=t,t)this[i]=t[i]}return r(e,[{key:"get",value:function(e){return this._mapping[e]}}],[{key:"map",value:function(t,i){var n={};return Array.isArray(i)&&(n=i.reduce((function(e,i){return e[i[1]]=t[i[0]],e}),{})),new e(n)}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"getFirstIndexAfterReorder",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.colEndIndex,o=i.colStartIndex,r=n?n-o:0;return e>t?t:t-r}},{key:"getColRangeIndicesForView",value:function(e,t,i,n){if(!t)return{startIndex:e,endIndex:e};var o=e,r=i,a=t.colEndIndex-t.colStartIndex||0;return r=r||e+a,i-e<a&&(n===e?o=r-a:r=e+a),{startIndex:o,endIndex:r}}},{key:"isGroupColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colEndIndex,i=e.colStartIndex;return t&&t-i>0||!1}},{key:"getGroupCellAttribute",value:function(e,t){var i=e.parentId,n=e.colIndex,o=e.startCol,r=e.endCol,a=e.headerIndex;if(i){if(n===o)return"group-"+i+"-start";if(n===r)return"group-"+i+"-end";var s=t[a-1],l=t[a+1];return s&&s.parentId!==i?"group-"+i+"-start":l&&l.parentId!==i?"group-"+i+"-end":"group-"+i}}},{key:"cellInsideGroup",value:function(e){if(!("string"!=typeof e||e.length<=0)){var t=e.split("-");return Array.isArray(t)&&2===t.length?"middle":t[2]}}},{key:"headerInsideGroup",value:function(e,t){if(e.getAttribute("data-col-index"))return t&&1===t.column?"end":"start"}},{key:"columnDropValidation",value:function(t,i,n,o){t=Number(t);var r=i.targetIndex,a=i.rightTargetIndex,s=(a||r)-t;if(0===s)return!1;if(1===s)return!1;if(n&&n.colEndIndex>=0){var l=e.getColRangeIndicesForView(t,n).endIndex;if(s>0&&r<=l)return!1;if((a||r)-l==1)return!1}return!o||function(e,t){var i=e.rightTargetIndex;if("start"===t&&!i)return!0;if("end"===t&&i)return!0;return!1}(i,o)}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2241),i(976),i(429)],o=i.dj.d(n,(function(e,t,i){"use strict";var n={enableEdit:!1,topLeftRowHeaderLabel:{}},o={displayIndices:!0};return function(){function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}return r(a,null,[{key:"getRowHeaderConfig",value:function(t){var i=function(t){if(Array.isArray(t.features)&&t.features.find((function(t){return t instanceof e})))return o}(t);if(i||t.rowModel){var r=Object.assign({},n,i);return t.rowModel&&t.rowModel.rowHeaderConfig?Object.assign({},r,t.rowModel.rowHeaderConfig):r}}},{key:"getLabels",value:function(e,t,i){var n=[],o=i-t+1;if(o>0){n.length=o;for(var r=t;r<=i;r++){var a=e[0](r);if(a&&a.value&&void 0!==a.value.label){var s=a.value.label||"";n[r-t]={label:s,rowIndex:r}}}}return n}},{key:"getHeaderPaddingSize",value:function(){return 3}},{key:"getRowHeaderMaxWidth",value:function(){return i.dimensions.MAX_ROW_HEADER_WIDTH}},{key:"getSelectedRows",value:function(e,i,n){for(var o=Math.max(e.rows.start,i.rows.start),r=Math.min(e.rows.end,i.rows.end),a=o;a<=r;a+=1)n.mapping[a]=t.selection.SELECTED}},{key:"getSelectionMap",value:function(e){for(var t=e.metadata,i=void 0===t?{selections:[]}:t,n=e.viewBuffer,o=i.selections,r={count:0,mapping:[]},s=0;s<o.length;s+=1)o[s].rows.start<=n.rows.end&&o[s].rows.end>=n.rows.start&&a.getSelectedRows(o[s],n,r);return function(e){return r.mapping[e]||0}}}]),a}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};n=[i(6241),i(459),i(392),i(250)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(o,a){return function(s){var l=s.row,c=s.column,d=s.editState,u=s.eventCallback,h=s.editType,p=s.cellMetaData,f=void 0!==p&&p,g=s.columnId,m=void 0===g?"":g,_=function(){var t=e.getEditEventByType(h,"enterEditEvent");u&&u(t,{row:l,column:c})};return n.createElement(o,r({},s,{onDoubleClick:function(e){var n=void 0,o={row:l,column:c};if(e){var r=i.getCellInfo(e);n=r.isDisclosureTarget,o=r.cellInfo}if(!n){var a=void 0;return(!d||d.rowIndex!==l&&d.colIndex!==c)&&(a=_),t.emitDoubleClickEvent(u,o,a)}},enterEditMode:_,handleEditComplete:function(t){var i=t.newValue,n=void 0===i?"":i,o=t.oldValue,r={newValue:n,row:l,column:c,oldValue:o};if(f){var a=f.value;r={newValue:n,row:l,column:c,oldValue:o,node:a,columnId:m}}var s=e.getEditEventByType(h,"editCompleteEvent");u&&u(s,r)},handleEditCanceled:function(t){t&&(t.row=l,t.column=c);var i=t,n="",o="";if(f){var r=f.value;t&&(n=t.newValue,o=t.oldValue),i={newValue:n,row:l,column:c,oldValue:o,node:r,columnId:m}}var a=e.getEditEventByType(h,"editCanceledEvent");u&&(d||d>=0)&&u(a,i)},handleEditValidation:function(t){var i=e.getEditEventByType(h,"editValidationEvent");u&&u(i,t)},handleProcessEdit:function(t){var i=t.newValue,n=void 0===i?"":i,o=t.oldValue,r=e.getEditEventByType(h,"processEditEvent");u&&d&&u(r,{newValue:n,row:l,column:c,oldValue:o})},type:a}))}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1540),i(738),i(1535)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t._handleEditComplete=t._handleEditComplete.bind(t),t._handleDoubleClick=t._handleDoubleClick.bind(t),t._handleMouseEnter=t._handleMouseEnter.bind(t),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"_handleDoubleClick",value:function(e){var t=this.props,i=t.columnId,n=t.eventCallback,o=t.headerEditor,r=t.scrollNodeIntoView;if(n&&i&&o){var a=this.renderNode.getBoundingClientRect();r.scrollIntoView(a).then((function(e){e.isEditable&&n("enterColEditMode",{columnId:i})}))}}},{key:"_handleMouseEnter",value:function(e){this.props.colEditState||function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0}(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"_handleMouseEnter",this).call(this,e)}},{key:"_handleEditComplete",value:function(e){if(this._content){this._handleLeaveEdit();var t=this.props,i=t.columnId,n=t.eventCallback;n&&n("colEditComplete",{newValue:e,columnId:i,oldValue:this.props.name})}}},{key:"_handleMouseEvent",value:function(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"tableCellClick",o=Number(i.rowIndex),r=Number(i.colIndex);e.button===t.MOUSE_LEFT_BUTTON&&this.props.eventCallback&&this.props.eventCallback(n,{row:o,column:r,meta:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey})}},{key:"_handleEditCanceled",value:function(){this._content&&(this._handleLeaveEdit(),this.props.eventCallback&&this.props.eventCallback("leaveColEditMode",{}))}},{key:"_handleLeaveEdit",value:function(){if(this.renderNode){var e=this.renderNode.contains(document.activeElement)||document.activeElement===this._previousActiveElement;this._dismount(),e&&this._previousActiveElement.focus()}}},{key:"_dismount",value:function(){this._listeners.forEach((function(e){e.remove()})),this._listeners=[],this._content.destroy(),this._content=void 0}},{key:"_mountContent",value:function(){var e=this,t=this.renderNode,i=this.props,n=i.headerEditor,o=i.name,r=i.colEditState,a=this.state.headerRenderer,s=void 0,l=[];if(r){t.removeAttribute("data-title");try{s=new n(o,{}),this._content=s,this._previousActiveElement=document.activeElement}catch(e){return a}return l.push(s.on("editComplete",(function(t){e._handleEditComplete(t.newValue)}))),l.push(s.on("editCanceled",this._handleEditCanceled.bind(this))),this._listeners=l,s}return a}},{key:"_focusMe",value:function(e){this.renderNode.setAttribute("data-edit",this.props.colEditState||!1),this.props.colEditState&&(this._previousActiveElement=document.activeElement,e.setFocus())}},{key:"componentWillUnmount",value:function(){this.props.colEditState&&this.props.focusClass&&this._handleEditCanceled()}},{key:"componentDidMount",value:function(){var e=this.props.name,t=this._mountContent();this.renderNode.appendChild(t.getDomNode(e)),this._focusMe(t)}},{key:"componentDidUpdate",value:function(e){var t=this.props.name===e.name;if(e.colEditState!==this.props.colEditState||!this.props.colEditState&&!t){var n=this.props.name,o=this._mountContent(),r=!1;this.renderNode&&(r=this.renderNode.contains(document.activeElement)||document.activeElement===this._previousActiveElement),i.replaceFirstNode(this.renderNode,o.getDomNode(n),this.renderNode.firstChild),r&&this._previousActiveElement.focus(),this._focusMe(o)}}},{key:"cellType",get:function(){return"EditableColumnHeader"}},{key:"baseStyle",get:function(){return"mw-table-cell"}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(256)],o=i.dj.d(n,(function(e,t){return{clearContext:function(e){e&&t.publish(e,{clearContext:!0})},addToContext:function(e,i,n,o){if(e){var r={};n?r.subContext=i:r.mainContext=i,r.metaContext=o||null,t.publish(e,r)}},removeFromContext:function(e,i){if(e){var n={};i?n.subContext=[]:n.mainContext=[],t.publish(e,n)}}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n=[i(301),i(286),i(460),i(738)],o=i.dj.d(n,(function(e,t,i,n){"use strict";var o=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"closeMenu",value:function(e){var i=this._comboBoxMenuOpened;a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"closeMenu",this).call(this,e),i&&this.emit("menuclosed",{blur:e})}},{key:"_handleMenuClick",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_handleMenuClick",this).call(this,e),this.emit("selection",{newValue:this.value})}}]),t}(t);return function(){function t(i){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,t);var r=new e;this._emit=r.emit.bind(r),this.on=r.on.bind(r),o.items&&o.items.length||(o.items=[{value:"",label:""}]),o.getItems&&(o.items=o.getItems(o.items.slice(),i)),o.value=this._hasValue(o.items,i)?i:o.items[0].value,this.config=o,this._oldValue=o.value,this._domNode=document.createElement("div"),this._domNode.classList.add("mwTableComboBoxEditor"),this._combobox=this._createDropDown(o,this._domNode),this._detectScrollWhenOpen(),this._handlers=[this._combobox.on("menuclosed",this._handleMenuClosed.bind(this)),this._combobox.on("keydown",this._handleKeyDown.bind(this)),this._combobox.on("click",this._handleClick.bind(this)),this._combobox.on("blur",(function(){return n._handleMenuClosed({blur:!0})})),this._combobox.on("mousedown",this._handleClick.bind(this)),this._combobox.on("selection",this._handleSelection.bind(this))],this._handleMenuItemKeyDown=this._handleMenuItemKeyDown.bind(this),this._combobox.get("menu").menuItemsNode.addEventListener("keydown",this._handleMenuItemKeyDown)}return r(t,[{key:"_createDropDown",value:function(e,t){var i=e.value;delete e.value,e.value=i,e.width="100%",e.disabled=!1;var n=new o(e);return n.set("blurAfterSelection",!1),n.placeAt(t),n.startup(),n}},{key:"_createNewValue",value:function(){var e=!0;void 0===this._combobox.value&&(e=!1);var t=this._combobox,i=t.value,n=t.items;if(this.config.editable){for(var o=0,r=n.length;o<r&&i!==n[o].value;)o++;o===r&&n.push({value:i,label:i})}return{newValue:e?i:this._oldValue,oldValue:this._oldValue}}},{key:"_emitEditComplete",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.focus;t&&this._combobox.focusNode.focus(),this._emit("editComplete",this._createNewValue())}},{key:"_emitEditCanceled",value:function(){var e=this._combobox.value;this._emit("editCanceled",{newValue:e,oldValue:this._oldValue})}},{key:"_handleSelection",value:function(){this._emitEditComplete({focus:!0})}},{key:"_handleClick",value:function(e){var t="mousedown"===e.type&&e.button===n.MOUSE_RIGHT_BUTTON;if("click"===e.type||t){var i=e.target.classList.contains("mwArrowContainerNode")||e.target.classList.contains("mwArrowNode");this.config.editable&&!i||this._emitEditCanceled(),t&&e.preventDefault()}}},{key:"_detectScrollWhenOpen",value:function(){var e=this;if(!this._comboboxLocation&&this._combobox._comboBoxMenuOpened){var t=this.getDomNode().getBoundingClientRect();(t.top||t.left||t.bottom||t.right)&&(this._comboboxLocation={top:t.top,left:t.left,bottom:t.bottom,right:t.right})}else if(this._comboboxLocation&&!this._combobox._comboBoxMenuOpened)this._comboboxLocation=null;else if(this._comboboxLocation&&this._combobox._comboBoxMenuOpened){(function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.top-t.top),o=Math.abs(e.left-t.left),r=Math.abs(e.right-t.right),a=Math.abs(e.bottom-t.bottom);return n>i||o>i||r>i||a>i})(this.getDomNode().getBoundingClientRect(),this._comboboxLocation,1)&&this._combobox.closeMenu(!1)}this._detectScrollTimer=setTimeout((function(){e._detectScrollWhenOpen()}),100)}},{key:"_cancelDetectScroll",value:function(){this._comboboxLocation&&(this._comboboxLocation=null),clearTimeout(this._detectScrollTimer),this._detectScrollTimer=null}},{key:"_handleMenuClosed",value:function(e){if(e.blur){var t=this._combobox.inputNode.value,i=t,n=this._combobox._getSelectedItemFromLabel(t);n&&(i=n.value),this._combobox.value=i,this._emitEditComplete()}}},{key:"_handleKeyDown",value:function(e){switch(e.stopPropagation(),e.keyCode){case i.ESCAPE:this._emitEditCanceled();break;case i.ENTER:this._emitEditComplete({focus:!0});break;case i.PAGE_UP:case i.PAGE_DOWN:e.preventDefault()}}},{key:"_handleMenuItemKeyDown",value:function(e){e.keyCode===i.ESCAPE&&this._emitEditCanceled()}},{key:"_hasValue",value:function(e,t){for(var i=e.length,n=0;n<i;n++)if(e[n].value===t)return!0;return!1}},{key:"setFocus",value:function(){this._combobox.focusNode.focus(),this._combobox._comboBoxMenuOpened||this._combobox._openComboBoxMenu()}},{key:"hasFocus",value:function(){}},{key:"getDomNode",value:function(){return this._domNode}},{key:"destroy",value:function(){this._cancelDetectScroll(),this._handlers.forEach((function(e){return e.remove()})),this._combobox.get("menu").menuItemsNode.removeEventListener("keydown",this._handleMenuItemKeyDown),this._combobox.destroy(),this._combobox=null,this._domNode=null}},{key:"value",get:function(){return this._combobox.value},set:function(e){var t=this._combobox.items;t&&t.length&&(this.config.editable?(this._combobox.items.push({value:e,label:e}),this._combobox.value=e):this._combobox.value=this._hasValue(t,e)?e:t[0].value)}}],[{key:"config",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){function i(t){return s(this,i),l(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t,e))}return c(i,t),i}(t)}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6350)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){this.computeNewDistance=function(){throw new Error("computeNewDistance has not been defined for this edge")},this._growthPower=void 0,this._shrinkagePower=void 0,this._minimumDistance=void 0},getOldDistance:function(){return this.toVertex.getOldLocation()-this.fromVertex.getOldLocation()},getNewDistance:function(){return this.toVertex.getNewLocation()-this.fromVertex.getNewLocation()},getGrowthPriority:function(){var e;return e=this.fromVertex.isProcessed()&&this.toVertex.isProcessed()?0:this.getGrowthPower(),e=Math.max(0,e)},getShrinkagePriority:function(){var e;return e=this.fromVertex.isProcessed()&&this.toVertex.isProcessed()?0:this.getMinimumDistance(),e=Math.max(0,e)},getGrowthPower:function(){return Math.max(0,this._growthPower)},getShrinkagePower:function(){return Math.max(0,this._shrinkagePower)},getMinimumDistance:function(){var e=this._minimumDistance;return e=Math.min(e,this.getOldDistance())},isDistanceLocked:function(){throw new Error("isDistanceLocked should be implemented by the subclass")},isEquivalent:function(e){var t=this.inherited(arguments),i=e.getGrowthPower()===this.getGrowthPower(),n=e.getShrinkagePower()===this.getShrinkagePower(),o=e.getMinimumDistance()===this.getMinimumDistance();return t&&i&&n&&o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(534),i(203),i(256),i(359),i(1186),i(6429)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t("variableeditor_client.Manager",[n],{documents:[],focusedDocument:null,constructor:function(t){e.registerWidgetJSONFile("VariableEditorWidgetRegistryDefaults",r),this.focusedDocument=null,this._init(t)},_init:function(e){this.editable=!0,e&&(void 0===e.editable?this.editable=!0:this.editable=e.editable,void 0===e.ignoreUpdates?this.ignoreUpdates=!1:this.ignoreUpdates=e.ignoreUpdates,this.cssSpecifier=e.cssSpecifier||"mw_type_VariableEditorTable",this.allArgs=e,void 0===e.autoStart?this.autoStart=!0:this.autoStart=e.autoStart),this.documents=[]},openDocument:function(e,t){var i;return t=t||{},this.documents[e]?((i=this.documents[e])._updateDocumentWidget(t),i):(t.manager=t.manager||this,t.docID=t.docID||e,this.hasOwnProperty("editable")&&(t.editable=this.editable),i=this.createDocument(t),this.documents[e]=i,i)},createDocument:function(e){return new o(e)},openVariable:function(e,t,i,n){var o=this._getExistingDoc(e,"varName");o||(o=this.createDocument({manager:this,varName:e,value:i,editable:this.editable}),this._lastTempID||(this._lastTempID=1),this._lastTempID=this._lastTempID+1,o.tempID="_temp_id_"+this._lastTempID,this.documents[o.tempID]=o);var r=t||"";return this._dispatchOpenvarEvent(e,r,i,n),o},setFocusedDocument:function(e){if(!this.focusedDocument||this.focusedDocument!==e){this._setFocus(e);var t=this.channel;this.hasFocus||(t!==e.manager.channel&&(i.publish("/datatools/selectionChanged",""),t=e.manager.channel),this.updateHasFocus(!0,t,e)),this.hasFocus=!0,this.updateManagerFocus(!0,t,e)}},removeFocusedDocument:function(e,t){this.focusedDocument===e&&(t&&this._setFocus(null),this.hasFocus&&this.updateHasFocus(!1,this.channel,e),this.hasFocus=!1),this.dispatchEvent("managerFocusChanged",this,{hasFocus:this.hasFocus,onDocumentClose:t,document:e})},handleFocusedDocumentChanged:function(e){e&&this.documents?(this.documents.hasOwnProperty(e)&&this._setFocus(this.documents[e]),this.dispatchEvent("variableFocusGained",this,{doc:this.focusedDocument})):this.focusedDocument&&this.dispatchEvent("variableFocusLost",this,{doc:this.focusedDocument})},updateHasFocus:function(e,t,i){},updateManagerFocus:function(e,t,i){this.dispatchEvent("managerFocusChanged",this,{hasFocus:e,document:i})},focusTable:function(){var e=this.managerProps.FocusedDocument.FocusedDocument;this.documents[e].focusTable()},_setFocus:function(e){this.focusedDocument&&this.focusedDocument.blur(),this.focusedDocument=e,e&&this.focusedDocument.focus&&this.focusedDocument.focus(!1)},_dispatchOpenvarEvent:function(e,t,i,n){var o={type:"variableAdded",variable:e,userContext:t};i&&(o.value=i),n&&(o.workspace=n),this.dispatchEvent("variableAdded",this,o)},_getExistingDoc:function(e,t){var i,n=null,o=this.documents;if(!this.ignoreUpdates)for(i in o)if(o.hasOwnProperty(i)){var r=o[i];e===r[t]&&(n=r)}return n},closeVariable:function(e){this.documents&&this.documents[e]&&(this.documents[e].destroy(),this.removeFocusedDocument(this.documents[e],!0),delete this.documents[e])},closeAllVariables:function(){for(var e in this.documents)this.documents.hasOwnProperty(e)&&this.documents[e].destroy();this.documents=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(209),i(206),i(210),i(359),i(6426),i(278),i(693),i(981),i(534)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e("variableeditor_client.Document",[s,a],{allArgs:{},varDocID:"",userContext:"",_started:!1,views:{},DEFUALT_VIEW_ID:"DefaultView",_parentedViews:[],_UNSUPPORTED_VIEW_CONTEXT:"UnsupportedView",_viewList:[],constructor:function(e){this.allArgs={},this.userContext=e&&e.userContext?e.userContext:"",this.viewCreated={},this.views={},this._parentedViews=[],this._started=!1,e&&this.init(e)},init:function(e){this.inherited(arguments),this.allArgs=e,this.manager=e.manager,this.createViewOnInit(e);var t=this;this.own(o(this.domNode,"startup",(function(e){t.updateViews(),t._started=!0})))},createViewOnInit:function(e){if(!e.viewType){var t=e.dataAttributes||"",i=u.getWidgets(e.containerType,"",this.userContext,t);e.viewType=i.Editor}e.viewType&&this.addView(e)},addView:function(e){var i=e.viewType,n=this._getPluginsForView(i,e.dataAttributes),o={data:t.mixin({configurablePlugins:n,context:this.userContext||e.context,dataAttributes:e.dataAttributes||"",document:this},this.allArgs)};this._createView(i,o)},_createView:function(e,t){var i=this;try{var o=require(e);!function(e){if(e.prototype.isInstanceOf(d)){var o=new e(t);o.getView().then((function(e){i.viewCreated[o.viewID]=!0,i._addViewToList(o),i._viewList.push(o.getType()),i.dispatchEvent("viewCreated",i,{type:"viewCreated",document:i,viewModel:o})}))}else n.error("View Class must be a valid ViewModel")}(o)}catch(t){throw n.error("Error: "+e+" was not loaded prior to the Document creation"),t}},parentViewToDocument:function(e){e&&e.domNode?(this._parentedViews[e.viewID]||(this._parentedViews[e.viewID]=e),this.inherited(arguments),r.remove(this.domNode,this._viewList),r.add(this.domNode,e.getType()),this.dispatchEvent("viewAdded",this,{type:"viewAdded",document:this,viewModel:e})):n.warn("Please parent a valid view model")},removeView:function(e){if(this.views[e]){var t=this.views[e];t.destroyView&&t.destroyView(),t.destroy&&t.destroy(),this.removeViewFromDom(e),this.viewCreated[t.viewID]=!1,this._parentedViews[e]&&delete this._parentedViews[e],delete this.views[e],this.dispatchEvent("viewRemoved",this,{type:"viewRemoved",document:this,viewModel:t})}else n.warn("No view exists for the given View ID")},replaceView:function(e,t){n.warn("View not replaced")},updateViews:function(){var e;for(e in this.views)this.views.hasOwnProperty(e)&&this.views[e]._updateView&&this.views[e]._updateView()},focusTable:function(){this._viewModel.focusTable()},_addViewToList:function(e){var t=e.getProperty("viewID")||this.DEFUALT_VIEW_ID;this.views[t]?this.replaceView(this.views[t],e):this.views[t]=e},_getPluginsForView:function(e,t){var i=[];t=t||"";var n=u.getWidgets(this.allArgs.containerType,"",this.userContext,t);return!(i=n&&n.Plugins?n.Plugins:[]).length>0&&(i=(i=(n=u.getWidgetsByEditor(e,this.userContext)).length>0?n[0].Valueset.Plugins:[])||[]),Array.isArray(i)||(i=[i]),i},getView:function(e){var t=!1,n=new i((function(){t=!0})),o=this.views[e];if(o&&(0!==Object.keys(o).length||o.constructor!==Object)&&this.viewCreated[e])n.resolve(o);else{var r=this,a=null;this.addEventListener("viewCreated",a=function(i){i.data&&i.data.viewModel&&i.data.viewModel.viewID===e&&(r.removeEventListener("viewCreated",a),t||n.resolve(i.data.viewModel))})}return n},getViews:function(){var e,t=[];for(e in this.views)this.views.hasOwnProperty(e)&&t.push(this.views[e]);return t},getViewByType:function(e){var t=this.getViews(),i=null;return t.forEach((function(t){t.type!==e||i||(i=t)})),i},_getDataAttributes:function(){return this.dataAttributes||this.allArgs.dataAttributes||""},_updateDom:function(){var e=this._getDataAttributes();r.toggle(this.domNode,c.EMPTY_DATA_ATTRIBUTE,e.indexOf(c.EMPTY_DATA_ATTRIBUTE)>-1)},destroy:function(){var e;for(e in this.views)this.views.hasOwnProperty(e)&&this.removeView(this.views[e].getProperty("viewID"));delete this._parentedViews,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(982),i(506)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor.TableViewModel",[i],{_VIEWTYPE:"table",_TABLE_ROW_HEADER_CLASS:n.TABLE_ROW_HEADER_CLASS,_TABLE_TOP_LEFT_AFFORDANCE_CLASS:n.TABLE_TOP_LEFT_AFFORDANCE_CLASS,_STATIC_TABLE_CLASS:"staticTable",constructor:function(e){},postCreate:function(){t.add(this.domNode,this.containerType||this.data.containerType)},_updateView:function(){if(this.inherited(arguments),this._table&&this._table.domNode&&t.contains(this._table.domNode,this._STATIC_TABLE_CLASS)){var e;try{e=this.metaData.columnMetadata.reduce((function(e,t){return(t.ColumnWidth?75===t.ColumnWidth?82:t.ColumnWidth:82)+e}),0)}catch(t){e=82*this.columns+2}var i=this._hasRowHeaders()?this._getRowHeaderWidth():this._getDefaultRowHeaderWidth();this._table.domNode.style.width=e+i+"px"}},_hasRowHeaders:function(){return this.metaData.rowMetadata&&this.metaData.rowMetadata.some((function(e){return e.RowName}))},_getDefaultRowHeaderWidth:function(){return this._updateWidth(41),41},_getRowHeaderWidth:function(){let e=0;this.metaData.rowMetadata.forEach((function(t,i){var n=i.toString().length+2+t.RowName.length;e=n>e?n:e}));const t=Math.min(250,5*e+6)+1;return this._updateWidth(t),t},_updateWidth:function(e){this._setWidths(this._TABLE_ROW_HEADER_CLASS,e),this._setWidths(this._TABLE_TOP_LEFT_AFFORDANCE_CLASS,e),this._setWidths(n.TBODY_ROW_HEADER_CLASS,e)},_setWidths:function(e,t){var i=this._table.domNode.getElementsByClassName(e);i&&i[0]&&(i[0].style.minWidth=t+"px",i[0].style.maxWidth=t+"px")},handleStaticTableView:function(){t.add(this._table.domNode,this._STATIC_TABLE_CLASS)},getType:function(){return this._VIEWTYPE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1546),i(534),i(203),i(239),i(209),i(2298)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a={},s={};return i("variableeditor.data.VEMetaDataStore",[e],{_containerType:null,_userContext:"",_dataAttributes:"",_SERVER_FETCH_CONTEXT:"ServerFetchInProgress",constructor:function(e,t){this._containerType=t.containerType||"",this._userContext=t.context||"",this._dataAttributes=t.dataAttributes||"",this._loadRenderer(this._containerType,"",this._userContext),this._loadFetchInProgressRenderer(),e&&this.preLoadMetaData(e)},preLoadMetaData:function(e){if(e.tableMetadata&&(this._loadRenderersForTable(e.tableMetadata),this._tableModelProperties=e.tableMetadata),e.rowMetadata&&e.rowMetadata.length>0&&e.rowMetadata.forEach((function(e){this._rowModelProperties[e.RowNumber-1]=e}),this),e.columnMetadata&&e.columnMetadata.length>0&&(this._loadRenderersForColumns(e.columnMetadata),e.columnMetadata.forEach((function(e){this._columnModelProperties[e.ColumnNumber-1]=e}),this)),e.cellMetadata&&e.cellMetadata.length>0){var t=1/0,i=-1,o=1/0,r=-1;if(e.cellMetadata.forEach((function(e){e.forEach((function(e){var n=e.RowNumber-1,a=e.ColumnNumber-1;this._cellModelProperties[n]||(this._cellModelProperties[n]=[]),this._cellModelProperties[n][a]=e,this._loadRendererAndEditorForCell(n,a,e),t=Math.min(n,t),i=Math.max(n,i),o=Math.min(a,o),r=Math.max(a,r)}),this)}),this),t!==1/0&&-1!==t&&o!==1/0&&-1!==o){var a=[n.range().setRows(t,i).setColumns(o,r)];this._on.emit("pagedCellMetaDataChanged",{rangeList:a})}}},updateModelProperties:function(e,t){var i=JSON.parse(t);"ColumnModelProperties"===e?this._loadRenderersForColumns(i):"TableModelProperties"===e?this._loadRenderersForTable(i):"CellModelProperties"===e&&this._loadRenderersForCells(i),this.inherited(arguments)},updateDataAttributes:function(e){this._dataAttributes=e},_loadRenderersForColumns:function(e){e.forEach((function(e){var t=e.hasOwnProperty("DataAttributes")?e.DataAttributes:"";t=this.getConcatenatedDataAttributes(t);var i=e.hasOwnProperty("class")&&e.class,n=i||(this._tableModelProperties.hasOwnProperty("class")?this._tableModelProperties.class:i);n&&(this._loadRenderer(this._containerType,n,this._userContext,t),this._loadEditor(this._containerType,n,this._userContext,t))}),this)},_loadRenderersForTable:function(e){if(e.hasOwnProperty("class")){var t=e.hasOwnProperty("DataAttributes")?e.DataAttributes:"";t=this.getConcatenatedDataAttributes(t),this._loadRenderer(this._containerType,e.class,this._userContext,t),this._loadEditor(this._containerType,e.class,this._userContext,t)}},_loadRenderersForCells:function(e){e.forEach((function(t,i){e[i].forEach((function(e,t){var n=e.hasOwnProperty("DataAttributes")?e.DataAttributes:"";n=this.getConcatenatedDataAttributes(n),this._loadRendererAndEditorForCell(t,i,e,n)}),this)}),this)},getConcatenatedDataAttributes:function(e){if(this._dataAttributes){var t=this._dataAttributes.split?this._dataAttributes.split():this._dataAttributes;e=e?t.concat(e):this._dataAttributes}return e},_loadRendererAndEditorForCell:function(e,t,i,n){i.hasOwnProperty("class")&&(this._loadRenderer(this._containerType,i.class,this._userContext,n),this._loadEditor(this._containerType,i.class,this._userContext,n))},_loadRenderer:function(e,i,n,o){o=o||"";var r=t.getWidgets(e,i,n,o);r&&(r.HeaderRenderer&&this._hashRenderer(r.HeaderRenderer),r.CellRenderer&&this._hashRenderer(r.CellRenderer),r.InteractiveRenderer&&this._hashRenderer(r.InteractiveRenderer))},_loadFetchInProgressRenderer:function(){var e=t.getWidgets(this._containerType,"",this._SERVER_FETCH_CONTEXT),i=t.getWidgets("","",this._SERVER_FETCH_CONTEXT);e&&e.CellRenderer&&this._hashRenderer(e.CellRenderer),i&&i.CellRenderer&&this._hashRenderer(i.CellRenderer)},_loadEditor:function(e,i,n,o){o=o||"";var r=t.getWidgets(e,i,n,o);r&&(r.Editor&&this._hashEditor(r.Editor),r.HeaderEditor&&this._hashEditor(r.HeaderEditor))},_hashRenderer:function(e){if(e&&!a[e])try{var t=require(e);i=t,a[e]=i}catch(t){throw o.error("Error: "+e+" was not loaded prior to the VEMetaDataStore creation"),t}var i},_hashEditor:function(e){if(e&&!s[e]&&-1===e.indexOf("UnknownView"))try{var t=require(e);i=t,s[e]=i}catch(t){throw o.error("Error: "+e+" was not loaded prior to the VEMetaDataStore creation"),t}var i},getRendererConstructor:function(e){return a[e]},getEditorConstructor:function(e){return s[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(256),i(209),i(2300)],o=i.dj.d(n,(function(e,t,i,n,o){return e("rendererseditors.mwTableRenderers.RendererBase",[],{config:{},_RENDERER_CLASS:["mw-table-cell-content","datatools-custom-renderer"],constructor:function(e){this.config=e||{}},getTooltip:function(e){var t={text:""};try{e&&(t.text=this.getTooltipValue(e)||"")}catch(e){}return t},getTooltipValue:function(e){return""},getDomNode:function(e){var t=null;if(e){this.handleDataRendered();var i=this.getParsedDataValue(e);t=this.getValueDomNode(i)}else(isNaN(this.config.showLoadingIndicator)||this.config.showLoadingIndicator)&&(t=this.getLoadingRenderer());return t&&this._updateCssClass(t),t},getLoadingRenderer:function(){return o.getLoadingRenderer().getDomNode()},_updateCssClass:function(e){t.add(e,this._RENDERER_CLASS)},getValueDomNode:function(){n.warn("To be overridden by renderer")},handleDataRendered:function(){setTimeout((function(){i.publish("spinnerRendered",!0)}),300)},getParsedDataValue:function(e){return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.mwTableRenderers.RightAlignmentMixin",[],{addAlignment:function(e){t.add(e,"right")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.mwTableRenderers.CenterAlignmentMixin",[],{addAlignment:function(e){t.add(e,"center")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(983),i(2300),i(1553),i(235)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("rendererseditors.mwTableRenderers.SpanRenderer",[o,i],{_SPAN_RENDERER_CLASS:"spanCell",getTooltip:function(e){try{var t=JSON.parse(JSON.parse(e).value)}catch(e){return{text:""}}return{text:t.map(e=>e.value).toString()}},getValueDomNode:function(e){for(var t=Array.isArray(e)?e.length:0,i=this.getValueContent(e),o=i.data,a=i.isMetaData,s=document.createElement("div"),l=0;l<t;l+=1){var c=null;o[l]?((c=document.createElement("div")).textContent=r.formatString(o[l],{escapeSpace:!0}),"1"===a[l]&&(c.style.fontStyle="italic"),this.addAlignment(c),this._updateSpanCellCssClass(c)):c=n.getLoadingRenderer().getDomNode(),s.appendChild(c)}return s},getValueContent:function(e){var t=[],i=[];if(Array.isArray(e))t=e.map((function(e){return e.hasOwnProperty("value")?e.value:e})),i=e.map((function(e){return!!e.hasOwnProperty("isMetaData")&&e.isMetaData}));else if("string"==typeof e)t=(t=e.replace(/\s\s+/g," ")).split(" ");else{for(var n=[],o=0;e.hasOwnProperty(o);o+=1)n.push(e[o]);t=n.map((function(e){return e.value})),i=n.map((function(e){return e.isMetaData}))}return{data:t,isMetaData:i}},_updateCssClass:function(e){t.add(e,"spanCellParent")},_updateSpanCellCssClass:function(e){var i=this._RENDERER_CLASS.concat([this._SPAN_RENDERER_CLASS]);t.add(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(210),i(983),i(1553),i(2307)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t("rendererseditors.mwTableRenderers.TableRenderer",[o,n],{getTooltipValue:function(e){if(e){e=this.getParsedDataValue(e);var t=Array.isArray(e)&&e[0]&&e[0].value?e[0].value:e;return this.config.removeQuotes?this.removeEnclosingQuotes(t):t}},getValueDomNode:function(e){var t=document.createElement("div");this.addAlignment(t);var n=this.getValueContent(e);return t.textContent=n.data,n.isMetaData&&i.add(t,"MetaData"),t},getValueContent:function(t){var i=!1,n="";if("string"==typeof t)n=e.formatString(t,{escapeSpace:!0});else{for(var o=[],a=0;t.hasOwnProperty(a);a+=1)o.push(t[a]);n=o.map((function(t){return"1"!==t.isMetaData&&!0!==t.isMetaData||(i=!0),e.formatString(t.value,{escapeSpace:!0})})).join(),n=r.cleanUIforTextFiltering(n)}return this.config.removeQuotes&&(n=this.removeEnclosingQuotes(n)),{data:n,isMetaData:i}},removeEnclosingQuotes:function(e){if('"'===e[0]&&'"'===e[e.length-1])return e.substring(1,e.length-1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1547),i(534),i(235),i(203),i(278),i(6455),i(634),i(594)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=new a,c=s;return n("variableeditor.data.VETableConstructor",[e],{_containerType:null,_userContext:null,_dataAttributes:"",_isEditable:!1,_isTableSortable:!0,_isCheckboxEnabled:!0,_SERVER_FETCH_CONTEXT:"ServerFetchInProgress",_HEADER_PREFIX_ID:"header",constructor:function(e,t){this._containerType=t.containerType||"",this._userContext=t.context||"",this._dataAttributes=t.dataAttributes||"",this.showIndexLabelHierarchy=t.showIndexAndLabel||!1,this.fitToContainer=t.fitToContainer||!1,this.showLoadingIndicator=!!isNaN(t.showLoadingIndicator)||t.showLoadingIndicator},getCellConfig:function(e,t){var i=this.inherited(arguments);if(this._actualSize&&(t>=this._actualSize.columns.count||e>=this._actualSize.rows.count))return i.renderer=l,this._isEditable?i.editor=this.getEditor(t)||c:i.editor=void 0,i;var n=this._metaDataStore.hasCellModelProperty(e,t,"class"),o=this._metaDataStore.hasColumnModelProperty(t,"class"),a=this._metaDataStore.hasTableModelProperty("class");if(n){var s=this._metaDataStore.getCellModelProperty("class",e,t),d=this._getWidgetRegistryEntry(s,t);if(d&&d.CellRenderer){var u=this.getMetaDataStore().getRendererConstructor(d.CellRenderer);u&&(i.renderer=r.getRendererInstance(d.CellRenderer,u))}var h=this._getEditorEntry(e,t,s);h&&(i.editor=h)}n||o||a||i.renderer||(i.renderer=this._getLoadingRenderer());var p=this._metaDataStore.getCellModelProperty("editable",e,t);return!1!==p&&!1!==this._isEditable||(i.editor=null),i},createColumnConfig:function(e){var t=this.inherited(arguments);return this.showIndexAndLabel(e)&&(t.parentId=this._HEADER_PREFIX_ID+e),t},getHeaderHierarchy:function(e){var t=this.inherited(arguments),i=this._columnConfigs[e];if(i&&i.parentId){var n=e+1;o.isTypeTimeTable(this._containerType)&&(n=0===e?"":e),t.value[this._HEADER_PREFIX_ID+e]={label:n,columnId:this._HEADER_PREFIX_ID+e}}return t},showIndexAndLabel:function(e){var t=this._metaDataStore.hasTableModelProperty("ShowColumnHeaderNumbers")&&!0===this._metaDataStore.getTableModelProperty("ShowColumnHeaderNumbers"),i=this._metaDataStore.hasTableModelProperty("ShowColumnHeaderLabels")&&!0===this._metaDataStore.getTableModelProperty("ShowColumnHeaderLabels");return t&&i&&this.showIndexLabelHierarchy},getRenderer:function(e){var t;if(this._actualSize&&e>=this._actualSize.columns.count)return t=l;if(this._metaDataStore.hasColumnModelProperty(e,"renderer"))return this._metaDataStore.getColumnModelProperty("renderer",e);var i=this._metaDataStore.getCellModelPropertyValue(-1,e,"class"),n=this._getWidgetRegistryEntry(i,e);if(n&&n.CellRenderer){var o=n.CellRenderer;if("string"==typeof o){var a=this.getMetaDataStore().getRendererConstructor(o);a&&(t=r.getRendererInstance(o,a,{showLoadingIndicator:this.showLoadingIndicator}))}else"object"==typeof o&&(t=o)}return t||(t=this._getLoadingRenderer()),t},_getLoadingRenderer:function(){let e;if(this.showLoadingIndicator){let i=t.getWidgets("","",this._SERVER_FETCH_CONTEXT,""),n=this.getMetaDataStore().getRendererConstructor(i.CellRenderer);n&&(e=r.getRendererInstance(i.CellRenderer,n))}return e},getEditor:function(e){if(this._metaDataStore.hasColumnModelProperty(e,"editor"))return this._metaDataStore.getColumnModelProperty("editor",e);var t=null;if(!1!==this._metaDataStore.getCellModelPropertyValue(-1,e,"editable")&&!1!==this._isEditable){var i=this._metaDataStore.getCellModelPropertyValue(-1,e,"class");t=this._getEditorEntry(-1,e,i)}return this._actualSize&&e>=this._actualSize.columns.count&&(t=this._isEditable?t||c:void 0),t},_getEditorEntry:function(e,t,n){var o=null;if(!i.isValid(n))return o;var r=this._getWidgetRegistryEntry(n,t);if(r&&r.Editor){var a=r.Editor;if("string"==typeof a){if(o=this.getMetaDataStore().getEditorConstructor(a),this.isTypeCategorical(e,t)&&o.getComboBoxConfig){var s=this._metaDataStore.getCellModelPropertyValue(-1,t,"categories"),l=this._metaDataStore.getCellModelPropertyValue(-1,t,"isProtected"),c=!this._metaDataStore.hasTableModelProperty("showUndefined")||this._metaDataStore.getTableModelProperty("showUndefined");o=o.getComboBoxConfig(s,l,c)}}else"object"==typeof o&&(o=a)}return o},_getWidgetRegistryEntry:function(e,i){var n=this._metaDataStore.getColumnModelProperty("DataAttributes",i)||"";return n=0===n.length?"":n,n=this._metaDataStore.getConcatenatedDataAttributes(n),t.getWidgets(this._containerType,e,this._userContext,n)},isTypeCategorical:function(e,t){return"categorical"===this._metaDataStore.getCellModelPropertyValue(e,t,"class")},updateDataAttributes:function(e){this._dataAttributes=e,this._metaDataStore&&this._metaDataStore.updateDataAttributes(e)},getInteractiveRenderer:function(e){var i=this.inherited(arguments),n=this._metaDataStore.getColumnModelProperty("class",e),o=t.getWidgets(this._containerType,n,this._userContext),a=null;if(o&&o.InteractiveRenderer&&(a=this.getMetaDataStore().getRendererConstructor(o.InteractiveRenderer))){var s=r.getRendererInstance(o.InteractiveRenderer,a);i=s.getInteractiveRenderer()}return i},getColumnWidth:function(e){if(this._hasPercentWidth(e))return{value:100/this._actualSize.columns.count,unit:"%"};var t=null,i=this._metaDataStore.getColumnModelProperty("FilteredColumnWidth",e),n=this._metaDataStore.getTableModelProperty("ColumnWidth"),r=this._metaDataStore.getColumnModelProperty("ColumnWidth",e),a=this._metaDataStore.getColumnModelProperty("GroupColumnSize",e);return a=a?parseInt(a):1,i?t=i:n?t=n*a:!r||a>1?(t=o.getDefaultColumnWidth(this._containerType)*a,a>1&&r>t&&(t=r)):t=r,t},_hasPercentWidth:function(e){return this._actualSize&&this.fitToContainer&&75===this._metaDataStore.getColumnModelProperty("ColumnWidth",e)&&!this._metaDataStore.getColumnModelProperty("ColumnResized",e)},getHeaderRenderer:function(e){var i,n=this.inherited(arguments),o=this._metaDataStore.getCellModelPropertyValue(0,e,"class"),a=this._getWidgetRegistryEntry(o,e);if(a&&a.HeaderRenderer)if(i=this.getMetaDataStore().getRendererConstructor(a.HeaderRenderer))n=r.getRendererInstance(a.HeaderRenderer,i);else{var s=t.getWidgets("","",this._SERVER_FETCH_CONTEXT,"");(i=this.getMetaDataStore().getRendererConstructor(s.CellRenderer))&&(n=r.getRendererInstance(s.CellRenderer,i))}return n},getHeaderEditor:function(e){var t=this.inherited(arguments),i=this._metaDataStore.getCellModelPropertyValue(0,e,"class"),n=this._getWidgetRegistryEntry(i,e);return n&&n.HeaderEditor&&(t=this.getMetaDataStore().getEditorConstructor(n.HeaderEditor)),t},getColumnHeaderLabel:function(e){var t=this.inherited(arguments),n=this._metaDataStore.getCellModelPropertyValue(0,e,"class");if(t&&(t=i.formatString(t,{escapeSpace:!0})),!(this._actualSize&&e>=this._actualSize.columns.count&&this.showIndexAndLabel())){var o=this._getWidgetRegistryEntry(n,e);if(o&&o.HeaderRenderer&&t){var r={};r.name=t,r.columnNumber=e,r.columnWidth=this.getColumnWidth(e),r.isFiltered=this._metaDataStore.getColumnModelProperty("IsFiltered",e);var a=this._metaDataStore.getTableModelProperty("LastSorted");return r.isSorted=!!a&&a.index===e,r.sortDirection=a?a.order:"",r.colClass=n,this._metaDataStore.hasTableModelProperty("ShowHeaderIcons")&&!0===this._metaDataStore.getTableModelProperty("ShowHeaderIcons")&&(r.icon=this._metaDataStore.getColumnModelProperty("icon",e)||""),this._metaDataStore.hasTableModelProperty("ShowSparkLines")&&!0===this._metaDataStore.getTableModelProperty("ShowSparkLines")&&(r.sparkLine=this._metaDataStore.getColumnModelProperty("SparkLine",e)||"",r.sparkLineIsLinear=this._metaDataStore.getColumnModelProperty("SparkLineIsLinear",e)||"",r.sparkLineCategories=this._metaDataStore.getColumnModelProperty("SparkLineCategories",e)||""),r}return i.isValid(t)&&""!==t||(t=(e+1).toString()),t}t=""},getIsEditable:function(){return this._isEditable},setIsEditable:function(e){this._isEditable=i.getLogicalValue(e)},setTableSortable:function(e){this._isTableSortable=e},getTableSortable:function(){return this._isTableSortable},isColumnSortingEnabled:function(e){return this._metaDataStore.hasColumnModelProperty(e,"IsSortable")?this._metaDataStore.getColumnModelProperty("IsSortable",e):this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(804)],o=i.dj.d(n,(function(e){return{Files:e.NativeType.FILES,PlainText:e.NativeType.TEXT}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1197),i(278),i(235)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{LEFT_ALIGNMENT:"left",CENTER_ALIGNMENT:"center",RIGHT_ALIGNMENT:"right",JUSTIFY_ALIGNMENT:"justify",_DEFAULT_COLUMN_WIDTH:82,_TIMES_SYMBOL:"×",headerAlignment:null,options:{},constructor:function(e){this.initOptions(e)},initOptions:function(e){e=e||{},this.options=Object.assign({showEllipsis:!0,showHeaders:!0,showRowHeaders:!0,showBorders:!0,showSummaryBar:!0,lightWeightView:!1},e)},createElement:function(e){return e.headers=e.headers?e.headers.slice():[],e.rowHeaders=e.rowHeaders?e.rowHeaders.slice():[],e.data=e.data?e.data.slice():[],e.columnClass=e.columnClass?e.columnClass.slice():[],e.columnSpan=e.columnSpan?e.columnSpan.slice():[],e.columnWidth=e.columnWidth?e.columnWidth.slice():[],e.headerColors=e.headerColors?e.headerColors.slice():[],e.cellColors=e.cellColors?e.cellColors.slice():[],e.rowIndices=e.rowIndices||[],e.columnIndices=e.rowIndices||[],this._expandColumnWidthToAdjustGroupedColumns(e),this.createTable(e)},_expandColumnWidthToAdjustGroupedColumns:function(e){var t=e.columnSpan,i=e.columnWidth.slice();if(i.length>0){i.forEach((function(e,n){if(t[n]>1){var o,r=[];for(o=0;o<t[n];o+=1)r[o]=e/t[n];i[n]=r}}));var n=i.join().split(","),o=this._DEFAULT_COLUMN_WIDTH;e.columnWidth=n.map((function(e){return Math.ceil(parseInt(e))||o}))}},createTable:function(e){var t,i=this.getTotalColumnCount(e),n=null;return this.options.showHeaders&&(n=this.createTableHeader(e,i.headerCount,i.columnCount)),t=this.createTableBody(e,i.columnCount),this.constructTableWithHeader(n,t)},getTotalColumnCount:function(e){var i=e.headers.length,n=e.columnCount;return t.hasGroupedColumns(e.columnSpan)&&e.columnSpan.length>0&&(n=e.columnSpan.reduce((function(e,t){return e+t}),0)),{headerCount:i,columnCount:n}},createTableHeader:function(e,t,i){var o,r=e.headers,a=e.columnSpan;let s,l=0;e.showIndexAndLabel&&(s=n.generateArrayFromIndex(1,t),l=1);var c=this.constructColumnHeaderContainer(l+1),d=e.tableMetadata&&e.tableMetadata.CornerSpacerTitle?e.tableMetadata.CornerSpacerTitle:" ";if(r&&r.length>0){if(this.options.showRowHeaders){var u={headerData:d,headerContainer:c,isCornerSpacer:!0,headerRowIndex:l};s&&this.createRowHeader(Object.assign(Object.assign({},u),{headerRowIndex:0})),this.createRowHeader(u)}for(o=0;o<t;o+=1){var h=a.length>0?a[o]:null,p={headerData:r[o],columnSpan:h,columnCount:i,headerContainer:c,columnIndex:o,columnWidth:e.columnWidth[o],icon:e.headerIcons?e.headerIcons[o]:void 0,headerRowIndex:l};s&&this.createColumnHeader(Object.assign(Object.assign({},p),{headerData:s[o],headerRowIndex:0,icon:void 0})),this.createColumnHeader(p)}}return c},constructColumnHeaderContainer:function(){throw new Error("constructColumnHeaderContainer must be implemented")},createRowHeader:function(e){throw new Error("createRowHeader must be implemented")},createColumnHeader:function(e){throw new Error("createColumnHeader must be implemented")},createTableBody:function(e,i){var n=0,o=e.data,r=this.constructTableBodyContainer();for(t.repeatWithinArray(e.columnSpan,e.columnClass),n=0;n<o.length;n+=1){var a=o[n];if(this.options.showRowHeaders){var s=e.rowHeaders&&e.rowHeaders.length>0?e.rowHeaders[n]:null;a.unshift(this._constructRowHeader(n,s,e.rowIndices))}var l={tableRow:a,columnClass:e.columnClass,columnWidth:e.columnWidth,cellMetaData:e.cellMetaData?e.cellMetaData[n]:void 0,columnCount:i,rowNumber:n,icons:e.cellIcons?e.cellIcons[n]:void 0},c=this.createRow(l);this.addRowContainerToBody(r,c)}return r},_constructRowHeader:function(e,t,i){let n=i[e]||e;var o=String(n+1);return t&&(o+=" "+t),o},createRow:function(e){var t,i=e.tableRow,n=e.columnCount,o=this.constructRowContainer(),r=i.reduce((function(e,t){return Array.isArray(e)?e.concat(t):e}),[]);if(this.options.showRowHeaders){var a=r.shift();this.createRowHeader({headerData:a,headerContainer:o,rowIndices:e.rowIndices})}for(t=0;t<n;t+=1){var s={cellData:r[t],columnClass:e.columnClass[t],rowContainer:o,rowNumber:e.rowNumber,columnNumber:t,columnWidth:e.columnWidth[t],cellMetaData:e.cellMetaData?e.cellMetaData[t]:void 0,icon:e.icons?e.icons[t]:void 0};this.createCell(s)}return o},addRowContainerToBody:function(e,t){throw new Error("addRowContainerToBody must be implemented")},constructTableBodyContainer:function(e){throw new Error("constructTableBodyContainer must be implemented")},constructTableWithHeader:function(e,t){throw new Error("constructTableWithHeader must be implemented")},constructRowContainer:function(){throw new Error("constructRowContainer must be implemented")},createCell:function(e){throw new Error("createCell must be implemented")},createSummaryBar:function(e){throw new Error("createSummaryBar must be implemented")},getSummaryContent:function(e){return e.varSize+" "+e.varType+" "+e.metaSummary},hasHorizontalOverflow:function(){return!1},hasVerticalOverflow:function(){return!1},getHeaderAlignment:function(){return this.headerAlignment||this.CENTER_ALIGNMENT},setHeaderAlignment:function(e){[this.RIGHT_ALIGNMENT,this.LEFT_ALIGNMENT,this.CENTER_ALIGNMENT,this.JUSTIFY_ALIGNMENT].includes(e)&&(this.headerAlignment=e)},getColumnAlignmentStyle:function(e,t){var n=this.LEFT_ALIGNMENT;return t?n=this.getHeaderAlignment():"logical"===e?n=this.CENTER_ALIGNMENT:(i.isTypeNumeric(e)||i.isTypeTime(e))&&(n=this.RIGHT_ALIGNMENT),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(206),i(984),i(278)],o=i.dj.d(n,(function(e,t,i){function n(e,t){return t||(t=[...Array(e).keys()]),t}return{hasGroupedColumns:function(e){return e.some((function(e){return e>1}))},repeatWithinArray:function(e,t,i){var n=0;e.map((function(e,o){if(e>1){var r=0,a=i||""===i?i:t[n];for(r=0;r<e-1;r+=1)t.splice(n+1,0,a)}n+=e}))},getColumnMetaDataForExport:function(e,t,i){var o=[],r=[],a=[],s=[];i=n(t,i);var l=e.getMetaDataStore();i.forEach(t=>{o.push(l.getColumnModelProperty("HeaderName",t)||String(t+1)),r.push(l.getCellModelPropertyValue(null,t,"class")),a.push(l.getColumnModelProperty("GroupColumnSize",t)||1),s.push(function(e,t){var i=e.getMetaDataStore(),n=i.hasColumnModelProperty(t,"ColumnWidth"),o=i.hasColumnModelProperty(t,"ColumnResized")&&!0===i.getColumnModelProperty("ColumnResized",t),r=parseInt(i.getColumnModelProperty("ColumnWidth",t));let a=1;i.hasColumnModelProperty(t,"GroupColumnSize")&&(a=parseInt(i.getColumnModelProperty("GroupColumnSize",t)));return n?o?r:a*r:void 0}(e,t))});let c=e.getTableConstructor(),d=i.every(e=>c.showIndexAndLabel(e));if(a=a.map((function(e){return parseInt(e,10)})),0===s.length){s=a.map((function(e){return 82*e}))}return{columnHeaders:o.slice(0,t),columnSpan:a.slice(0,t),columnClass:r.slice(0,t),columnWidth:s.slice(0,t),showIndexAndLabel:d}},getTableMetaDataForExport:function(e){return e.getMetaDataStore().getTableProperties()},getCellMetaDataForExport:function(e,t,i,o,r){var a=e.getMetaDataStore(),s=[];return r=n(i,r),(o=n(t,o)).forEach(e=>{s[e]=[],r.forEach(t=>{var i={};a.hasCellModelProperty(e,t,"class")&&(i={class:a.getCellModelProperty("class",e,t)}),s[e][t]=i})}),s},getRowLabelsForExport:function(e,t,i){var o=[],r=e.getMetaDataStore();return(i=n(t,i)).forEach(e=>{r.hasRowModelProperty(e,"RowName")&&o.push(r.getRowModelProperty("RowName",e)||"")}),o},processExportData:function(e,t){if(!t)return null;try{return t.map((function(t,i){return t.map((function(t,i){return function(e,t,i,n){var o=null,r=e.getMetaDataStore();const a=parseInt(r.getColumnModelProperty("GroupColumnSize",n))||1;try{(t=JSON.parse(t)).value=JSON.parse(t.value),o=Array.isArray(t.value)?t.value.length===a?t.value.map((function(e){return e.value})):JSON.stringify(t.value):t.value}catch(e){o=Array.isArray(t)?t.length===a?t:JSON.stringify(t):"object"==typeof t&&t.hasOwnProperty("value")?t.value.toString():t.toString()}return o}(e,t,0,i)}),this)}),this)}catch(e){return null}},getHeaderIconsForExport:function(e,i,n){let o=e.getTableConstructor(),r=e.getMetaDataStore(),a=document.createElement("div");e.domNode.appendChild(a);let s=n.map(e=>{let i=o.getHeaderRenderer(e);if(i&&"rendererseditors.mwTableRenderers.IconTextRenderer"===i.declaredClass){let i=r.getCellModelPropertyValue(0,e,"class");a.classList=t.getResolvedIconForType(i);let n=getComputedStyle(a);return n.backgroundImage+" "+n.backgroundRepeat+" "+n.backgroundPosition}});return e.domNode.removeChild(a),s},getCellIconsForExport:function(e,i,n){let o=e.getTableConstructor(),r=e.getMetaDataStore(),a=document.createElement("div");e.domNode.appendChild(a);let s=i.map(i=>n.map(n=>{let s=o.getRenderer(n);if(s&&"rendererseditors.mwTableRenderers.IconTextRenderer"===s.declaredClass){let o=r.getCellModelPropertyValue(i,n,"class"),s=e.getDataStore().getLocalCellData(i,n);try{o=JSON.parse(s).class}catch(e){}if(o){a.classList=t.getResolvedIconForType(o);let e=getComputedStyle(a);return e.backgroundImage+" "+e.backgroundRepeat+" "+e.backgroundPosition}}}));return e.domNode.removeChild(a),s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(382),i(215),i(216),i(203),i(214),i(204),i(210),i(269),i(209),i(2342),i(6493),i(6498),i(1557),i(635),i(1558),i(6499)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return n("variableeditor_peer/HeaderMenus/NumericHeaderMenuMixin",[t,i,c,d,u,h],{templateString:g,_headerMenuView:null,_totalColumnCount:12,_destroyed:!1,_TEXT_FIELD_WIDTH:75,_TEXT_FIELD_HEIGHT:18,_isMenuInteractive:null,_viewDataReceived:!1,postCreate:function(){this._headerMenuView=null,this._destroyed=!1,this._viewDataReceived=!1,this.createFilteredRangeFields(this.filteredRange),this.createFigureContainer(this.filteredHistogram),this.createSelectionRangeFields(this.selectedRange),this.createIncludeMissing(this.includeMissing)},initNumericWidget:function(e){this.initializeWidget(e),this._setViewDataStatus()},initializeWidget:function(e){this._headerMenuView=e,this._handleDataChangedCallback=r.hitch(this,"_handleDataChanged"),this._headerMenuView.addEventListener("dataChanged",this._handleDataChangedCallback),this._remoteEventListener=o.after(this._headerMenuView,"handleRemoteEvent",this.handleRemoteEvent.bind(this),!0),this.initializeFigure(this.filteredHistogram,e.propertyObj)},_setViewDataStatus:function(){var t=this._headerMenuView.getDataStore(),i=t.dataSize,n=e.createRange(0,Math.min(1,i.rows.end),0,i.columns.end);try{t.getLocalRangeData(n[0]).length>0&&i.rows.count>0&&this._enableInteraction()}catch(e){l.warn(e)}},handleRemoteEvent:function(e){if("server"===e.data.source&&"error"===e.data.status&&"dataChangeStatus"===e.data.type){var t=e.data.column;this._updateSelectionRangeOnError(t)}},_handleDataChanged:function(e){this.domNode&&(e.data&&e.data.rangeList?this._enableInteraction():this._disableInteraction())},_enableInteraction:function(){this._viewDataReceived=!0;var e=this._headerMenuView.getDataStore();this._updateFilteredRangeFields(e),this._updateSelectionRangeFields(e),this._updateIncludeMissing(e),this._isInteractive(e)?this._enableFigure(this.filteredHistogram):(this._disableSelectionRangeFields(!0),this._disableFigure(this.filteredHistogram))},_disableInteraction:function(){this._resetFilteredRangeFields(),this._disableSelectionRangeFields(!0),this._resetIncludeMissing(),this._disableFigure(this.filteredHistogram)},_isInteractive:function(e){if(null==this._isMenuInteractive){var t=e.getLocalCellData(0,p.OriginalMinFullPrecision),i=e.getLocalCellData(0,p.OriginalMaxFullPrecision);t&&i&&(this._isMenuInteractive=this._formatDisplayVal(t)!==this._formatDisplayVal(i))}return this._isMenuInteractive},_updateDataStore:function(e,t){this._headerMenuView.updateDataStore(e,t),this.dispatchFilterActionToServer()},_createLabel:function(e,t,i){var n=new s({text:e});return t&&a.add(n.domNode,t),i.appendChild(n.domNode),n.startup(),n},_createTextField:function(e,t){var i={width:this._TEXT_FIELD_WIDTH,height:this._TEXT_FIELD_HEIGHT,preventBlurOnChange:!0};r.mixin(i,e);var n=this.createEditor(i);return t.appendChild(n.getDomNode()),n.startup(),n},createEditor:function(e){return new f(e)},_formatDisplayVal:function(e){var t=JSON.parse(e);return JSON.parse(t.value)[0].value.replace(/["]+/g,"")},dispatchFilterActionToServer:function(){},destroy:function(){this._destroyed||(this._headerMenuView&&(this._handleDataChangedCallback&&this._headerMenuView.removeEventListener("dataChanged",this._handleDataChangedCallback),this._remoteEventListener&&this._remoteEventListener.remove()),this.destroySelectionRange(),this.destroyIncludeMissing(),this.destroyFigureHandler(),this.destroyFilteredRange(),this.inherited(arguments),this._destroyed=!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6509),i(6510),i(6511),i(6512)],o=i.dj.d(n,(function(e,t){return t(e,"variableeditor_client/l10n/nls/CategoricalCleaner",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(206),i(235),i(1185),i(366),i(2359),i(980),i(1542),i(209),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=function(){};return e("variableeditor_peer.RemoteManager",[r],{contextMenuProvider:null,actionDataService:null,_onReadyPromise:null,constructor:function(e){this.actionDataService=null,this.contextMenuProvider=null,this.actionNameSpace="",this.contextMenuNameSpace="",this.managerProps={},this.hasFocus=!1,this.channel=e.channel,this.deletedDocIDCache=[],this.contextType=e.contextType,this._onReadyPromise=new i},serverReady:function(e,t){if(this.provider=t,Object.keys(e).length>0){var i=this;if(this.propertyObj=e,e.hasOwnProperty("children")&&e.children.forEach((function(e){i._addDocument(e)})),e.hasOwnProperty("ActionsInitialized")&&!this.actionDataService){var n=e.ActionsInitialized;this._initActionService(n,"ActAsClient")}if(e.hasOwnProperty("ContextMenuServiceNameSpace")&&!this.contextMenuProvider){var o=e.ContextMenuServiceNameSpace;this._initContextMenuService(o)}e.hasOwnProperty("HasFocus")&&(this.hasFocus=!0),e.hasOwnProperty("VECmdLineCodeGenEnabled")&&(this.allArgs.VECmdLineCodeGenEnabled=e.VECmdLineCodeGenEnabled)}t.setupManagerListeners(this),this.dispatchEvent("managerReady",this,{remoteManager:this}),u.publish(t.channel+"/remoteManagerServerReady",{}),this._onReadyPromise.resolve(!0)},onProviderReady:function(){if(this.provider&&!1===this.provider.isReady()){var e=new i;return e.reject(),e}return this._onReadyPromise},executeAction:function(e,t){this.actionDataService&&this.actionDataService.executeAction(e,t)},openDocument:function(e,t){var i=this.inherited(arguments);return this.onDocumentCreated(e),i},createDocument:function(e){return new s(e)},_addDocument:function(e){try{if(e.hasOwnProperty("docID")){var t=e.docID;if(-1===this.deletedDocIDCache.indexOf(t)){this.allArgs=o.mergeObjects(this.allArgs,{propertyObj:e,provider:this.provider,varName:e.name,varSize:e.displaySize,size:e.size,varType:e.type,secondaryStatus:e.secondaryStatus,secondaryType:e.secondaryType,containerType:e.containerType,manager:this,workspace:e.workspace});var i=e.hasOwnProperty("userContext")?e.userContext:null;if(i&&"string"==typeof i&&"{"===i.charAt(0))try{i=JSON.parse(e.userContext)}catch(e){d.error(e),d.error(e.stack)}this.documents[t]?this.documents[t].init(this.allArgs):i&&i.veTempID&&this.documents[i.veTempID]?(this.documents[t]=this.documents[i.veTempID],this.documents[t].init(this.allArgs),delete this.documents[i.veTempID]):this.documents[t]=this.createDocument(this.allArgs),this.onDocumentCreated(t)}else this.closeVariable(t,e.workspace)}else d.error("Variable Editor Remote Document missing docID properties in childAdded")}catch(e){d.error(e),d.error(e.stack)}},onDocumentCreated:function(e){this.documents[e].addEventListener(a.DOUBLE_CLICK_ON_METADATA_CELL,this._handleOpenVarOnDocumentCell.bind(this)),this.dispatchEvent("variableAdded",this,{peerDoc:this.documents[e]})},_handleOpenVarOnDocumentCell:function(e){this._dispatchOpenvarEvent(e.data.variableName,e.data.context,null,e.data.workspace)},removeDocument:function(e){var t=e.docID,i=this.documents[t];this.documents[t]&&(this.documents[t].destroy(),this.removeFocusedDocument(i,!0),delete this.documents[t],this.dispatchEvent("variableRemoved",this,{peerDoc:i}))},_dispatchOpenvarEvent:function(e,t,i,n){if(this.provider&&this.provider.isReady()){var o={type:"OpenVariable",variable:e,userContext:t};i&&(o.value=i),n&&(o.workspace=n),this.provider.dispatchEventToServer(this,o)}},handleRemoteEvent:function(e){e.data.type&&"errormsg"===e.data.type&&(e.data.message?o.displayErrorMessage(e.data.message):d.warn("VE Server error with no message."))},handlePropertySet:function(e){if(!(e.data&&e.data.newValue&&e.data.newValue.Source&&"server"!==e.data.newValue.Source)){var t,i=e.data.key;if(this.propertyObj[i]=e.data.newValue,"ActionsInitialized"!==e.data.key||this.actionDataService)if("ContextMenuServiceNameSpace"!==e.data.key||this.contextMenuProvider)if("HasFocus"===e.data.key){var n=e.data.newValue;void 0!==n.HasFocus&&(this.hasFocus=n.HasFocus,this.setManagerFocus(this.hasFocus))}else"FocusedDocument"===e.data.key?this.handleFocusedDocumentChanged(e.data.newValue):"VECmdLineCodeGenEnabled"===e.data.key&&this.updateCodeGenEnabled(e.data.newValue);else(t=e.data.newValue).ContextMenuServiceNameSpace&&(t=t.ContextMenuServiceNameSpace),this._initContextMenuService(t);else(t=e.data.newValue).ActionsInitialized&&(t=t.ActionsInitialized),this._initActionService(t,"ActAsClient"),this.contextMenuNameSpace&&this._initContextMenuService(this.contextMenuNameSpace)}},updateCodeGenEnabled:function(e){this.allArgs.VECmdLineCodeGenEnabled=e,Object.keys(this.documents).forEach((function(t){this.documents[t].updateCodeGenEnabled&&this.documents[t].updateCodeGenEnabled(e)}),this)},_initActionService:function(e,t){this.actionNameSpace=e;var i=this.provider.getActionDataServiceProvider({channel:this.actionNameSpace,manager:this});this.actionDataService=l.getInstance({namespace:this.actionNameSpace,provider:i}),this.actionDataService.getRemoteProvider()||this.actionDataService.setRemoteProvider(i)},_initContextMenuService:function(e){this.contextMenuNameSpace=e||"",e&&this.actionNameSpace&&!this.contextMenuProvider&&(this.contextMenuProvider=c.getMenuProvider({nameSpace:e,contextManagerNamespace:this.channel,contextAppID:this.allArgs.contextAppID||this.channel,actionNamespace:this.actionNameSpace,contextType:this.contextType}),this.allArgs.contextMenuProvider=this.contextMenuProvider)},setManagerFocus:function(e){this.hasFocus=e,this.dispatchEvent("managerFocusChanged",this,{peerManager:this,hasFocus:e})},updateHasFocus:function(e,t,i){this.provider&&this.provider.isReady()&&this.provider.setPropertyOnServer(this,"HasFocus",{HasFocus:e,Source:"client",Channel:t,Document:i.varName})},updateManagerFocus:function(e,t,i){this.provider&&this.provider.isReady()&&i&&this.provider.setPropertyOnServer(this,"FocusedDocument",{HasFocus:!0,Source:"client",Channel:t,Document:i.varDocID}),this.inherited(arguments)},closeVariable:function(e,t){this.onProviderReady().then(function(){var i={type:"RemoveDocument",variable:e,userContext:this.userContext,workspace:t};this.provider.dispatchEventToServer(this,i)}.bind(this),h)},closeAllVariables:function(){this.onProviderReady().then(function(){var e={type:"CloseAll",userContext:this.userContext};this.provider.dispatchEventToServer(this,e)}.bind(this),h)},destroy:function(){this.provider&&(this.provider.destroyActionDataServiceProvider(this.actionNameSpace),this.provider.destroy(this),l.deleteInstance(this.actionNameSpace))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{PREPOPULATED_ROW_COUNT:14,PREPOPULATED_COLUMN_COUNT:30,PREPOPULATED_ARRAY_ROW_COUNT:10}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(2376),i(281),i(219),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n],{_EVENT_READ_CONTENT_REQUEST_CHANNEL_PREFIX:"/mlx/service/readRequest",_EVENT_READ_CONTENT_RESPONSE_CHANNEL_PREFIX:"/mlx/service/readResponse/",_EVENT_WRITE_CONTENT_REQUEST_CHANNEL_PREFIX:"/mlx/service/writeRequest",_EVENT_WRITE_CONTENT_RESPONSE_CHANNEL_PREFIX:"/mlx/service/writeResponse/",_LOAD_SETTING_NAME:"matlab.editor.serialization.EnableUnifiedEditorCppLoad",_SAVE_SETTING_NAME:"matlab.editor.serialization.EnableUnifiedEditorCppSave",_SETTINGS_TIMEOUT:2e3,constructor:function(e,t){this._rtcId=e,this._rtcSettingService=t,this._loadDeferred=null,this._saveDeferred=null,this._cppLoadEnabled=!0,this._cppSaveEnabled=null,this._setupPlainCodeMessageServiceSubscriptions()},allowSave:function(e){return!0},load:function(e,t,n){return this._loadDeferred=new i,o.hasFileLocation({file:e})?this._loadFile(t,n):this._loadUnsavedBuffer(),this._loadDeferred.promise},save:async function(e,t){if(this._saveDeferred&&!this._saveDeferred.isFulfilled())return this._saveDeferred.promise;this._saveDeferred=new i;const n=t;return this._sendSaveRequest(n),this._saveDeferred.promise},_setupPlainCodeMessageServiceSubscriptions:function(){r.subscribe(this._EVENT_READ_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId,"_handleReadContentResponse",this),r.subscribe(this._EVENT_WRITE_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId,"_handleWriteContentResponse",this)},_teardownPlainCodeMessageServiceSubscriptions:function(){r.unsubscribe(this._EVENT_READ_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId,"_handleReadContentResponse",this),r.unsubscribe(this._EVENT_WRITE_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId,"_handleWriteContentResponse",this)},_loadFile:function(e,t){const i={filePath:e,rtcId:this._rtcId,contentType:t};this._sendLoadRequest(i)},_sendLoadRequest:function(e){this._sendRequestBasedOnSetting("_cppLoadEnabled",this._LOAD_SETTING_NAME,this._EVENT_READ_CONTENT_REQUEST_CHANNEL_PREFIX,e)},_sendRequestBasedOnSetting:function(e,t,n,o,a){if(null!==this[e]){const t=this._getChannelBasedOnSetting(n,this[e]);r.publish(t,o),a&&a.progress&&a.progress({message:"requestSentToServer"})}else{const s=new i,l=setTimeout((function(){s.resolve(!0)}),this._SETTINGS_TIMEOUT);this._rtcSettingService.getSetting(t).then((function(e){clearTimeout(l),s.resolve(e)}),(function(e){clearTimeout(l),s.resolve(!0)})),s.then(function(t){this[e]=t;const i=this._getChannelBasedOnSetting(n,this[e]);r.publish(i,o),a&&a.progress&&a.progress({message:"requestSentToServer"})}.bind(this))}},_getChannelBasedOnSetting:function(e,t){return e+(t?"_cpp":"")},_loadUnsavedBuffer:function(){this._loadDeferred.resolve({content:null})},_sendSaveRequest:function(e){this._sendRequestBasedOnSetting("_cppSaveEnabled",this._SAVE_SETTING_NAME,this._EVENT_WRITE_CONTENT_REQUEST_CHANNEL_PREFIX,e,this._saveDeferred)},_handleReadContentResponse:function(e){const t=e.data;if(t.status){const e=t.data,i=t.originalFilePath,n=t.readOnly;this._loadDeferred.resolve({content:e,originalFilePath:i,readOnly:n})}else this._loadDeferred.reject("Failed to read content")},_handleWriteContentResponse:function(e){if(!this._saveDeferred||this._saveDeferred.isFulfilled())return;const t=e.data;t.wasSuccessful?this._saveDeferred.resolve({status:!0}):(!0!==t.suppressLogging&&a.error("Error while writing file: "+t.errorMessage),this._saveDeferred.reject({status:!1,errorId:t.errorId}))},destroy:function(){this._teardownPlainCodeMessageServiceSubscriptions(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6667),i(6668),i(6669),i(6670)],o=i.dj.d(n,(function(e,t){return t(e,"plaincode_features/l10n/nls/pageSetupDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(209),i(286),i(243),i(258),i(233),i(988),i(507)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{_BOOLEAN_ITEMS:["true","false"],_RENDERER_CLASS_NAME:"mw-string-renderer",_DESCRIPTION_DIV:"descriptionField",_DESCRIPTION_TEXT:{1:s.descriptionOutputFileFormat,2:s.descriptionOutputLocation,3:s.descriptionStyleSheet,5:s.descriptionFigureCaptureMethod,6:s.descriptionImageFormat,7:s.descriptionUseNewFigure,8:s.descriptionMaxWidth,9:s.descriptionMaxHeight,10:s.descriptionShowCode,12:s.descriptionEvaluateCode,13:s.descriptionCatchError,14:s.descriptionCreateThumbnail,15:s.descriptionMaxNumberOfOutputLines},EXTENDED_SETTINGS_UI_ELEMENTS:{1:function(t,i,n){var o;o=e("windows")?["html","xml","latex","doc","ppt","pdf"]:["html","xml","latex","pdf"],this._createComboBox(o,t,i,"1",n)},2:function(e,t,i){var n=a.openFolderDialog.bind(a);this._createFileBox(e,t,"2",n,i)},3:function(e,t,i){var n=a.openFileDialog.bind(a);this._createFileBox(e,t,"3",n,i)},5:function(e,t,i){this._createComboBox(["getframe","print","entireGUIWindow","entireFigureWindow"],e,t,"5",i)},6:function(e,t,i){this._createComboBox([{label:"default",value:"default"},{label:"png",value:"png"},{label:"jpeg",value:"jpeg"},{label:"bmp",value:"bmp"},{label:"tiff",value:"tiff"}],e,t,"6",i)},7:function(e,t,i){this._createComboBox(this._BOOLEAN_ITEMS,e,t,"7",i)},8:function(e,t,i){this._createNumberField(e,t,"8",i)},9:function(e,t,i){this._createNumberField(e,t,"9",i)},10:function(e,t,i){this._createComboBox(this._BOOLEAN_ITEMS,e,t,"10",i)},12:function(e,t,i){this._createComboBox(this._BOOLEAN_ITEMS,e,t,"12",i)},13:function(e,t,i){this._createComboBox(this._BOOLEAN_ITEMS,e,t,"13",i)},14:function(e,t,i){this._createComboBox(this._BOOLEAN_ITEMS,e,t,"14",i)},15:function(e,t,i){this._createNumberField(e,t,"15",i)}},getDiffBetweenPublishOptionEqual:function(e,t){if(e===t)return[];for(var i=[],n=e.keys(),o=n.next();!o.done;)e.get(o.value)!==t.get(o.value)&&i.push(o.value),o=n.next();return i},getNameForNewConfiguration:function(e,t){var i=[];e.forEach((function(e){t.AssociatedFile===e.AssociatedFile&&i.push(e.Name)}));var n=[];if(i.forEach((function(e){var t=/_\d*/.exec(e);t=t?t[0].replace("_",""):0,n.push(t)})),1===n.length)return this.getFileNameWithoutExtensionFromPath(t.AssociatedFile);n.sort((function(e,t){return e-t}));var o=n[n.length-1];return o++,this.getFileNameWithoutExtensionFromPath(t.AssociatedFile)+"_"+o},addFileExistsInformation:function(e,t,i,n){var o=[];e.forEach((function(e){e.AssociatedFile&&o.push(e.AssociatedFile)})),a.filesExists(o,(function(t){e.forEach((function(e){if(e.AssociatedFile){var i=t[e.AssociatedFile];e.fileExist=i}})),n()}))},getFileNameFromPath:function(e){return r.nameFromPath(e)},removeFileExtension:function(e){return r.getFileNameNoExtension(e)},getFileNameWithoutExtensionFromPath:function(e){return this.removeFileExtension(this.getFileNameFromPath(e))},_createFileBox:function(e,i,r,a,l){var c=e.domNode.querySelectorAll('[data-row-id="'+r+'"]')[1];if(t.assert(c,"Required element missed: 'cell'"),document.activeElement!==c.getElementsByTagName("input")[0]&&document.activeElement!==c.getElementsByClassName("mwPushButton")[0]){for(var d="",u=c.getElementsByTagName("input")[0]?c.getElementsByTagName("input")[0].value:c.textContent,h=new o({value:u}),p=c.firstElementChild;c.firstElementChild;)c.removeChild(c.firstElementChild);h.placeAt(c),h.startup(),h.domNode.focus(),setTimeout((function(){h.domNode.querySelector("input").select()}),0),h.on("keyup",(function(e){13!==e.which&&13!==e.keyCode&&27!==e.which&&27!==e.keyCode||h.onBlur()})),h.on("blur",(function(e){setTimeout((function(){if(!f.fileBrowserEvent){d||(d=h.value),f.destroy(),h.destroy(),c.appendChild(p),i.update({id:r},{value:d}),setTimeout((function(){l()}),0);var e=c.getElementsByClassName("mwPushButton")[0];e&&e.remove(),g.innerHTML=""}}),0)}));var f=new n({text:s.browseButtonText});f.placeAt(c),f.startup(),f.on("mousedown",(function(){f.fileBrowserEvent=!0,a((function(e){0!==e.path&&(d=e.path),f.fileBrowserEvent=!1,h.onBlur()}))}));var g=document.getElementsByClassName(this._DESCRIPTION_DIV)[0];g.innerHTML=this._DESCRIPTION_TEXT[r]}},_createNumberField:function(e,i,n,r){var a=e.domNode.querySelectorAll('[data-row-id="'+n+'"]')[1];if(t.assert(a,"Required element missed: 'cell'"),document.activeElement!==a.getElementsByTagName("input")[0]){var s=a.getElementsByTagName("input")[0]?a.getElementsByTagName("input")[0].value:a.textContent,l=a.firstElementChild;a.removeChild(a.firstElementChild);var c=new o({value:s});c.placeAt(a),c.startup(),c.domNode.focus(),setTimeout((function(){c.domNode.querySelector("input").select()}),0),c.on("keyup",(function(e){13!==e.which&&13!==e.keyCode&&27!==e.which&&27!==e.keyCode||c.onBlur()})),c.on("blur",(function(){var e=c.value;c.destroy(),parseInt(e,10).toString()===e&&e>0||"Inf"===e?(a.appendChild(l),i.update({id:n},{value:e}),setTimeout((function(){r()}),0)):(a.appendChild(l),i.update({id:n},{value:s})),d.innerHTML=""}));var d=document.getElementsByClassName(this._DESCRIPTION_DIV)[0];d.innerHTML=this._DESCRIPTION_TEXT[n]}},_createComboBox:function(e,n,o,r,a){var s=n.domNode.querySelectorAll('[data-row-id="'+r+'"]')[1];if(t.assert(s,"Required element missed: 'cell'"),document.activeElement!==s.getElementsByClassName("mwComboBox")[0]){e=e[0].value?e:this._createItemMap(e);var l=s.getElementsByTagName("input")[0]?s.getElementsByTagName("input")[0].value:s.textContent,c=e.find((function(e){return e.label===l}));l=c.value;var d=s.firstElementChild;s.removeChild(s.firstElementChild);var u=new i({items:e,value:l,label:c.label});s.appendChild(u.domNode);var h=new window.MutationObserver((function(){u.active=!0,u._openComboBoxMenu(),u.domNode.focus(),h.disconnect()}));h.observe(u.domNode,{attributes:!0}),u.startup();var p=document.getElementsByClassName(this._DESCRIPTION_DIV)[0];p.innerHTML=this._DESCRIPTION_TEXT[r],u.on("change",(function(e){u.active=!1;var t=e.mwEventData.newValue;t="true"===t||"false"!==t&&t,u.closeMenu(),u.destroy(),s.appendChild(d),o.update({id:r},{value:t}),setTimeout((function(){a(),p.innerHTML=""}),0)})),u.on("blur",(function(e){u.active=!1,l="true"===l||"false"!==l&&l,u.closeMenu(),u.destroy(),s.appendChild(d),o.update({id:r},{value:l}),setTimeout((function(){a(),p.innerHTML=""}),0)}))}},_createItemMap:function(e){var t=[];return e.forEach((function(e){t.push({label:e.toString(),value:e})})),t},createNewConfiguration:function(e,t){var i=e[1].PublishOptionsBasedOn?e[0]:e[1],n={},o=this.getFileNameFromPath(t);return n.Name=this.removeFileExtension(o),n.AssociatedFile=t,n.MatlabExpression=s.matlabExpressionTemplate+n.Name,n.MostRecentlyActioned=!0,n.PublishOptionsBasedOn=i.Name,n.PublishOptions=new Map(i.PublishOptions),e.push(n),n},appendFolder:function(t,i){if(!t)return e("windows")?"\\"+i:"/"+i;if(t.endsWith("/")||t.endsWith("\\"))return t+i;var n=t.startsWith("/")?"/":"\\";return t+n+i}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239)],o=i.dj.d(n,(function(e){return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"getRangeForCell",value:function(t,i){return e.range().setRows(t,t).setColumns(i,i)}},{key:"fitRangeToBounds",value:function(t,i,n){var o={rows:{},columns:{}};return n.rows.start>t||n.columns.start>i||n.rows.end<0||n.columns.end<0?null:(o.rows.start=Math.max(Math.min(n.rows.start,t),0),o.columns.start=Math.max(Math.min(n.columns.start,i),0),o.rows.end=n.rows.end===1/0?1/0:Math.max(Math.min(n.rows.end,t),o.rows.start),o.columns.end=n.columns.end===1/0?1/0:Math.max(Math.min(n.columns.end,i),o.columns.start),e.range().setRows(o.rows.start,o.rows.end).setColumns(o.columns.start,o.columns.end))}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(337),i(2257),i(593),i(2255),i(1537),i(1538),i(977),i(6719),i(459),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,l,c,d,u,h){"use strict";var p=function(){};return l(function(l){function f(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return e.cell=h.createRef(),e._handleContextMenu=e._handleContextMenu.bind(e),e._handleDoubleClick=e._handleDoubleClick.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,l),s(f,[{key:"_handleDoubleClick",value:function(e){var t=this.props,i=t.eventCallback,n=t.rowIndex,o=t.colIndex,r=t.onDoubleClick,a=t.columnId,s=t.cellMetaData,l=s.value.id,c={row:Number(n),column:Number(o),id:l,columnId:a,evt:e,node:s.value};return r?r(c):u.emitDoubleClickEvent(i,c)}},{key:"_handleContextMenu",value:function(t){var n=this.cellType,o=this.props.tableSection||i.TABLE_CELL,r=0===n.indexOf("Editable"),a=u.isWhiteSpace(t.target,t.clientX,t.clientY);this.props.eventCallback&&(t.preventDefault(),this.props.eventCallback(e.internal.TABLE_RIGHT_CLICK,{top:t.pageY,left:t.pageX,target:{type:o,column:this.props.colIndex,id:this.props.cellMetaData.value.id,columnId:this.props.columnId,isEditable:r,isWhiteSpace:a}}))}},{key:"shouldComponentUpdate",value:function(e,i){return t.shouldCellUpdate(this.props,e,this.state,i)}},{key:"_getRendererComponent",value:function(){var e=this.props,t=e.colIndex,i=e.cellData,o=e.renderer,r=e.eventCallback,a=e.useEditorRendererDataFields,s=e.treeNodeRendererClassName,l=void 0===s?"":s,c=e.treeCellContentClassName,d=void 0===c?"":c,u=e.renderMetaData;return h.createElement(n,{value:i.value,key:"render-"+t,eventCallback:r,renderer:o,treeNodeRendererClassName:l,treeCellContentClassName:d,useEditorRendererDataFields:a,noToolTip:!0,metaData:u})}},{key:"_getEditorComponent",value:function(){var e=this.props,t=e.colIndex,i=e.cellData,n=e.handleEditComplete,r=e.handleEditCanceled,a=e.editor,s=e.eventCallback,l=e.focusClass,c=e.useEditorRendererDataFields;return h.createElement(o,{value:i.value,key:"edit-"+t,CustomEditor:a,eventCallback:s,handleEditCanceled:r,handleEditComplete:n,focusClass:l,useEditorRendererDataFields:c})}},{key:"_handleTreeCellAndTableCell",value:function(e){var t=this,i=this.props,n=i.isTreeCell,o=void 0!==n&&n,r=i.disclosureIcon,a=void 0===r?"":r,s=i.classAndStyling,l=void 0===s?"":s,c=i.triStateCheckbox,d=void 0===c?"":c;return o?h.createElement("div",{className:l.classes},h.createElement("div",{className:"treeNodeData","data-test-id":"nodeContentHandle",style:l.style},a,d,h.createElement("span",{className:"rendererEditorContainer","data-container":"true",ref:function(e){t.rendererEditorContainer=e}},this._handleEditorRendererComponent(e)))):this._handleEditorRendererComponent(e)}},{key:"_handleEditorRendererComponent",value:function(e){return e?this._getEditorComponent():this._getRendererComponent()}},{key:"_handleMouseOverFunction",value:function(e,t){var i=this.props,n=i.handleMouseOverWithRenderer,o=i.isTreeCell,r=void 0!==o&&o,a=i.editType,s=i.cellData,l=i.renderer,c=r?this.rendererEditorContainer:e.target;return t?null:n(c,a,s.value,l,this.cell.current)}},{key:"componentDidUpdate",value:function(e){if(this.props.focusClass&&(!e.focusClass||this.props.focusCached))return this.cell.current.focus()}},{key:"componentWillUnmount",value:function(){this.props.focusClass&&this.cell.current.contains(document.activeElement)&&u.setFocusCache(this.props.eventCallback)}},{key:"render",value:function(){var e=this,t=this.props,i=t.rowIndex,n=t.colIndex,o=t.cellData,s=t.cellMetaData,l=t.styleData,u=t.ariaTreeNode,f=void 0===u?{}:u,g=t.renderer,m=t.focusClass,_=t.additionalClass,v=void 0===_?[]:_,b=t.columnId,y=t.editState,C=t.onClick,T=void 0===C?p:C,E=t.isTreeCell,S=void 0!==E&&E,w=t.gutterInfo,I=t.ariaLabel;if("object"!==(void 0===l?"undefined":a(l))&&(l={}),"object"!==(void 0===o?"undefined":a(o))||!o.hasOwnProperty("isEqual"))throw new Error("cellData property requires an isEqual function.");if("object"!==(void 0===s?"undefined":a(s))||!s.hasOwnProperty("value"))throw new Error("cellMetaData property requires a value property.");var A=this.cellType,x=[this.baseStyle,m].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(v));this._cellMetaData=s.value;var N=!1;y&&y.rowIndex===i&&y.colIndex===n&&(N=!0);var L=!1;!this.props.type||"EditableTreeCell"!==this.props.type.cellType&&"EditableTableCell"!==this.props.type.cellType||(L=!0);var D=null;return m&&m.length>0&&(D="-1"),I=g.getAriaLabel?g.getAriaLabel(o.value):I,c.isStrikeThrough(o)&&x.push("mw-table-cell-strike-through"),h.createElement("td",r({ref:this.cell,style:l,role:"gridcell","aria-colindex":n,"data-row-id":s.value.id,"data-column-id":b,tabIndex:D,"aria-label":I,"aria-expanded":f.isExpanded,"aria-checked":f.check},L?{"data-edit":!!y}:null,{"data-row":i,"data-col":n,"data-cell-type":A},S?{"data-level-index":this._cellMetaData.level}:null,S?null:{onClick:T},{className:x.join(" "),onDoubleClick:this._handleDoubleClick,onContextMenu:this._handleContextMenu,onMouseOver:function(t){return e._handleMouseOverFunction(t,N)}}),w?h.createElement(d,{gutterInfo:w}):null,this._handleTreeCellAndTableCell(N))}},{key:"baseStyle",get:function(){return this.props.type&&this.props.type.baseStyle?this.props.type.baseStyle:"mw-table-cell mw-table-cell-background"}},{key:"cellType",get:function(){return this.props.type&&this.props.type.cellType?this.props.type.cellType:"TableCell"}}]),f}(h.Component))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(213),i(36),i(30),i(796),i(571)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{constructor:function(e){this._dataTag=e.tag,this._buildColorPicker(),this._grayColor="#A9A9A9"},_buildColorPicker:function(){this._dropDownPicker=new r({showAuto:!1,showNone:!1}),this._dropDownPicker.on("change",function(e){if(e.mwEventData){this._rgb=new a(e.mwEventData.newValue);var n=t(".divColor",this._dropDownButton.domNode)[0];i.set(n,"background-color",this._rgb.toHex())}}.bind(this)),this._toolTip=new o({content:this._dropDownPicker,onClose:this.toolTipOnClose.bind(this)}),this._dropDownButton=new n({label:'<div class="divColor" data-tag = '+this._dataTag+"></div>",dropDown:this._toolTip}),this._dropDownButton.domNode.addEventListener("pointerdown",function(e){3===e.which&&this._dropDownButton.closeDropDown()}.bind(this))},getDropDownButton:function(){return this._dropDownButton},getToolTip:function(){return this._toolTip},getColorPicker:function(){return this._dropDownPicker},getRGB:function(){if(this._rgb)return this._rgb.toRgb()},loadSettings:function(e){this._rgb=new a(e),this._ddPreview=t(".divColor",this._dropDownButton.domNode)[0],i.set(this._ddPreview,"background-color",this._rgb.toHex());var n=this._dropDownPicker.get("value");this._dropDownPicker.set("value",this._rgb.toHex());var o=this._dropDownPicker.get("value");this._dropDownPicker.emit("change",{mwEventData:{propertyName:"value",oldValue:n,newValue:o}})},disableDropDown:function(){i.set(this._ddPreview,"background-color",this._grayColor),this.setDropDown("disabled",!0)},enableDropDown:function(){this._rgb&&(i.set(this._ddPreview,"background-color",this._rgb.toHex()),this.setDropDown("disabled",!1))},startup:function(){this._dropDownPicker.startup()},setDropDown:function(e,t){this._dropDownButton.set(e,t)},placeDropDown:function(e){this._dropDownButton.placeAt(e)},toolTipOnClose:function(){var e=this._dropDownPicker.get("recentlyUsedColors"),t=this._dropDownPicker.get("value");e.splice(e.indexOf(t),1),e.unshift(t),this._dropDownPicker.set("recentlyUsedColors",e)},setFocus:function(){this._dropDownButton.focus()},getNode:function(){return this._dropDownButton.domNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(229),i(209),i(1574),i(6822),i(2401),i(2402),i(1576),i(993),i(1974),i(208)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(t,{"-chains-":{constructor:"manual"},constructor:function(e,t,i,n,o){this.inherited(arguments),this._pluginsBySubsystems=null,this._subsystemToRequiredPluginIds=null,this._getOrganizedSubsystemToPlugin(t,i,e),this.postProcessPluginMapping(e);var r=this._createBaseInjector(n,o);this._injector=this.getRegistryBasedDependencyInjector({baseInjector:r,registry:e}),this._cachedInjector=r},getRegistryBasedDependencyInjector:function(e){throw new Error("Unimplemented API - getRegistryBasedDependencyInjector")},postProcessPluginMapping:function(e){},getDependency:function(e){try{return this._injector.getDependency(e)}catch(n){if(!(n instanceof a))throw n;try{var t=n.getSubsystemId();return this._doLateSubsystemLoad(t),this._constructSubsystem(t),this.getDependency(e)}catch(t){if(!(t instanceof a))throw t;var i="RTC PluginResolver: Unable to getDependency for "+e+" because it has a dependency on subsystem "+n.getSubsystemId()+", which is not loaded. Attempting to load that subsystem now failed";throw t.getSubsystemId()!==n.getSubsystemId()&&(i+="when reaching other subsystem "+t.getSubsystemId()+" which is also not yet loaded"),i+=". It is suggested that you check your RTC enabled feature list.",new Error(i)}}},resolve:function(){this._createFeaturesUsingInjector()},destroy:function(){this._injector.destroy()},_createPluginsFromSubSystem:function(e){return i.unique(e).map((function(e){return this._injector.getDependency(e)}),this).filter(function(e){return e instanceof d&&this.own(u.after(e,"onDependenciesFound",this._handleInjectNewPlugins.bind(this),!0)),void 0!==e}.bind(this))},_handleInjectNewPlugins:function(e){e.forEach(function(e){this._injector._pluginRegistryManager.injectRegistry(e.id,e.path,e.isSharedPlugin)}.bind(this)),e.forEach(function(e){this.getDependency(e.id)}.bind(this)),this.onLateFeaturesAdded()},onLateFeaturesAdded:function(){},_createFeaturesUsingInjector:function(){var e,t=Object.keys(this._pluginsBySubsystems),i=0,n=function(){if(!(++i<e.length)){var t="RTC PluginResolver: Failed to construct subsystems after a large number of attempts. Most likely, there is a circular dependency among the following subsystems: "+e.toString()+".";throw e.indexOf(c.DEFAULT_SUBSYSTEM_ID)>-1&&(t+=" (Note that the subsystem "+c.DEFAULT_SUBSYSTEM_ID+" is the default subsystem, which contains all plugins that are not assigned to another subsystem.)"),new Error(t)}}.bind(this);for(e=t.slice();e.length>0;){var o=e.shift();try{this._constructSubsystem(o),i=0}catch(s){if(!(s instanceof a))throw s;e.push(o);var r=s.getSubsystemId();t.indexOf(r)<0?(this._doLateSubsystemLoad(r),e.unshift(r),i=0):n()}}},_constructSubsystem:function(e){var t=this._createPluginsFromSubSystem(this._pluginsBySubsystems[e]),i=l.getMembersId(e);this._injector.injectDependency(i,t),this._injector.getDependency(e)},_doLateSubsystemLoad:function(e){this._pluginsBySubsystems[e]=this._subsystemToRequiredPluginIds[e]||[]},_getOrganizedSubsystemToPlugin:function(e,t,i){var n=this._removeDisabledElementsFromEnabledPlugins(e,t),o=i.buildRegistryMappings(),r=o.familiesToPluginIds,a=o.pluginIdsToSubSystems,s=o.subsystemToRequiredPluginIds,l=o.subsystemControllers,c=this._explodePluginFamiliesToPluginIds(n,r);c=this._removeDisabledElementsFromEnabledPlugins(c,t);var d=this._organizePluginsIntoSubsystems(c,a),u=this._findSubsystemsWithEnabledPlugins(c,a);this._enableRequiredSubsystemPlugins(d,s),this._enableSubsystemControllers(d,u,l,t),this._pluginsBySubsystems=d,this._subsystemToRequiredPluginIds=s},_explodePluginFamiliesToPluginIds:function(e,t){var i=[];return e.forEach((function(e){t[e]?i=i.concat(t[e]):i.push(e)})),i},_organizePluginsIntoSubsystems:function(e,t){var i={};return e.forEach((function(e){var o=t[e]||[c.DEFAULT_SUBSYSTEM_ID];n.assert(o,'RTC PluginResolver: Invalid registry or feature configuration. After preprocessing, "'+e+'" was found registered (implicitly or explicitly) under a falsy subsystem ID.'),o.forEach((function(t){i[t]||(i[t]=[]),i[t].push(e)}))}),this),i},_findSubsystemsWithEnabledPlugins:function(e,t){var i={};return e.forEach((function(e){if(t[e]){var n=t[e];i[n]=!0}})),Object.keys(i)},_enableRequiredSubsystemPlugins:function(e,t){Object.keys(e).forEach((function(i){var n=t[i];n&&(e[i]=e[i].concat(n))}))},_enableSubsystemControllers:function(e,t,i,n){t.forEach((function(t){var o=i[t];if(o){var r=o.id;if(-1===n.indexOf(r))c.getSubsystemFromRegistryEntry(o).forEach((function(t){e[t]||(e[t]=[]),-1===e[t].indexOf(r)&&e[t].push(r)}))}}),this)},_removeDisabledElementsFromEnabledPlugins:function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))},_createBaseInjector:function(e,t){var i=new o;for(var n in e)e.hasOwnProperty(n)&&i.injectDependency(n,e[n]);var a=new r;return Object.keys(t).forEach((function(e){a.injectDependency(e,t[e])})),a.addInjector(i),a}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1365)],o=i.dj.d(n,(function(e,t){"use strict";return e(t,{constructor:function(){this._text=""},traverseSibling:function(e){e.parent&&e.parent.CHILD_TEXT_SEPARATOR&&(this._text+=e.parent.CHILD_TEXT_SEPARATOR)},visitLeafNode:function(e,t,i){this._text+=e.getPlainText(t,i)},getText:function(){return this._text}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1574),i(1575),i(7166),i(205),i(1576),i(2401)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(n,{constructor:function(e,t){if(!e.registry)throw"registryArguments.registry must not be null / undefined";var n=e.registry,o=e.baseInjector;this._pluginRegistryManager=n,this._cachedInjector=o||new i,this._rtcStatesTransferHandler=t,this._constructedPlugins=[]},injectDependency:function(e,t){this._cachedInjector.injectDependency(e,t)},getDependency:function(e){var t=this._cachedInjector.getDependency(e);if(void 0===t&&a.isAMembersId(e))throw new s(a.getSubsystemId(e));return void 0===t||t instanceof r?this._getPluginFromProvider(t,e):t},_getPluginFromProvider:function(e,i){if(!(!e&&!this._pluginRegistryManager.getRegistryByKey(i)))try{var n=e||this._getFirstApplicable(this._constructMatchingProviders(i));if(n){t.assert(n instanceof r,"Injected Dependency should be an instanceof PluginProvider");var a=o.getInstanceDependencies(n),l=this._constructPlugin(i,n,a,this._pluginRegistryManager.getRegistryByKey(i));if(void 0===l)throw new Error("RTC RegistryBasedDependencyInjector: The provider of "+i+" returned an undefined value from createInstance. This is no longer allowed.");return this._rtcStatesTransferHandler&&this._rtcStatesTransferHandler.restoreStates(i,l),this._cachedInjector.injectDependency(i,l),l}}catch(e){if(e instanceof s)throw e;var c="Tried to construct registry based plugin in rtc/core/_dependencyinjector/RegistryBasedDependencyInjector: "+i+" but failed with the following exception: "+e;throw t.assert(!1,c),t.assert(!1,e),new Error(c)}},_constructPlugin:function(e,t,i,n){var r;return r=0===i.length?this._constructPluginGivenNoArguments(t):o.constructPlugin(t,this._buildArgumentListGivenKeys(i)),this._constructedPlugins.unshift({provider:t,plugin:r}),r},destroy:function(){this._constructedPlugins.forEach((function(e){e.provider.destroyInstance(e.plugin)})),this._constructedPlugins=[],this._pluginRegistryManager=null,this._cachedInjector.destroy()},_isProviderApplicable:function(e){var t=!1,i=o.getIsApplicableDependencies(e),n=this._buildArgumentListGivenKeys(i);return o.isPluginApplicable(e,n)&&(t=!0),t},_buildArgumentListGivenKeys:function(e){var t=[];return e.forEach((function(e){t.push(this.getDependency(e))}),this),t},_constructPluginGivenNoArguments:function(e){return o.constructPlugin(e,[])},_constructMatchingProviders:function(e){var t=this._pluginRegistryManager.getRegistryByKey(e),i=[];if(t.forEach((function(e){try{var t=o.constructProvider(e);i.push(t)}catch(e){}})),0===i.length)throw new Error("No provider for "+e+" has been constructed!");if(1===i.length)return i;return i.sort((function(e,t){return t.priority()-e.priority()})),i},_getFirstApplicable:function(e){for(var t=0;t<e.length;t++){var i=e[t];if(this._isProviderApplicable(i))return i}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[],o=i.dj.d(n,(function(){var e=function(e){return 0===e||e>0},t=function(t,i){if(!e(t))throw new Error("Invalid start value set");if(!e(i)&&(0!==t||-1!==i))throw new Error("Invalid end value set");var n={};return Object.defineProperty(n,"start",{value:t,enumerable:!0}),Object.defineProperty(n,"end",{value:i,enumerable:!0}),Object.defineProperty(n,"count",{value:i-t+1,enumerable:!0}),n},i=function(e,t){return t.start<=e.end&&t.end>=e.start},n=function(e,t,i,n){return new s(i,n,e,t)},o=function(e,t,i,n){return new s(e,t,i,n)},s=function(){function e(i,n,o,r){a(this,e),Object.defineProperties(this,{rows:{value:t(i,n),enumerable:!0},columns:{value:t(o,r),enumerable:!0}})}return r(e,[{key:"setEntireColumns",value:function(t,i){return void 0===i&&(i=t),new e(0,1/0,t,i)}},{key:"setEntireRows",value:function(t,i){return void 0===i&&(i=t),new e(t,i,0,1/0)}},{key:"setColumns",value:function(t,i){return new e(this.rows.start,this.rows.end,t,i)}},{key:"setRows",value:function(t,i){return new e(t,i,this.columns.start,this.columns.end)}},{key:"column",get:function(){return this.columns.start===this.columns.end&&0===this.rows.start&&this.rows.end===1/0?this.columns.start:null}},{key:"row",get:function(){return this.rows.start===this.rows.end&&0===this.columns.start&&this.columns.end===1/0?this.rows.start:null}}]),e}();return Object.defineProperty(s.prototype,"row",{enumerable:!0}),Object.defineProperty(s.prototype,"column",{enumerable:!0}),function(){function e(){a(this,e)}return r(e,null,[{key:"range",value:function(){return new s(0,-1,0,-1)}},{key:"doesRangeListIntersect",value:function(t,i){for(var n=0;n<t.length;n+=1)for(var o=0;o<i.length;o+=1)if(e.doesRangeIntersect(t[n],i[o]))return!0;return!1}},{key:"doesRangeIntersect",value:function(e,t){return e.columns.start<=t.columns.end&&e.columns.end>=t.columns.start&&e.rows.start<=t.rows.end&&e.rows.end>=t.rows.start}},{key:"isRangeEqual",value:function(e,t){return e===t||e.columns.start===t.columns.start&&e.columns.end===t.columns.end&&e.rows.start===t.rows.start&&e.rows.end===t.rows.end}},{key:"isRangeInside",value:function(e,t){return e===t||e.columns.start<=t.columns.start&&e.columns.end>=t.columns.end&&e.rows.start<=t.rows.start&&e.rows.end>=t.rows.end}},{key:"isRowRange",value:function(e){return 0===e.columns.start&&e.columns.end===1/0}},{key:"isColumnRange",value:function(e){return 0===e.rows.start&&e.rows.end===1/0}},{key:"groupRangeListByRow",value:function(t){return e._groupRangeList(t,"rows")}},{key:"groupRangeListByColumn",value:function(t){return e._groupRangeList(t,"columns")}},{key:"removeRowsFromRangeList",value:function(t,i){return e._removeIntervalFromRank("rows",t,i,o)}},{key:"removeColumnsFromRangeList",value:function(t,i){return e._removeIntervalFromRank("columns",t,i,n)}},{key:"removeRangeFromRangeList",value:function(t,i){for(var n=[],o=0;o<t.length;o+=1)n=n.concat(e._removeIntersection(t[o],i));return n}},{key:"isRangeInsideRangeList",value:function(t,i){for(var n=[t],o=0;o<i.length&&n.length>0;o+=1){var r=i[o];n=e.removeRangeFromRangeList(n,r)}return 0===n.length}},{key:"_removeIntersection",value:function(t,i){var r=[{rank:"columns",secondaryRank:"rows",makeRange:n},{rank:"rows",secondaryRank:"columns",makeRange:o}],a=t,s=[];return e.doesRangeIntersect(t,i)?r.forEach((function(e){var t=e.rank,n=e.secondaryRank,o=e.makeRange,r=a[t],l=i[t],c=[a[n].start,a[n].end];r.start<l.start&&(s.push(o.apply(void 0,[r.start,l.start-1].concat(c))),a=o.apply(void 0,[l.start,r.end].concat(c))),l.end<r.end&&(s.push(o.apply(void 0,[l.end+1,r.end].concat(c))),a=o.apply(void 0,[a[t].start,l.end].concat(c)))})):s=[t],s}},{key:"_removeIntervalFromRank",value:function(e,t,n,o){var r="columns",a=[];"columns"===e&&(r="rows");for(var s=0;s<t.length;s+=1){var l=t[s],c=l[e],d=c.start,u=c.end,h=[l[r].start,l[r].end];i(l[e],n)?l[e].end<=n.end&&l[e].start>=n.start||(l[e].start>=n.start?a.push(o.apply(void 0,[n.end+1,u].concat(h))):l[e].end<=n.end?a.push(o.apply(void 0,[d,n.start-1].concat(h))):(a.push(o.apply(void 0,[d,n.start-1].concat(h))),a.push(o.apply(void 0,[n.end+1,u].concat(h))))):a.push(l)}return a}},{key:"_groupRangeList",value:function(t,i){var n=[],o={};return t.forEach((function(t){var r=e._hashRankFromRange(t,i),a=o[r];a>=0?n[a].push(t):(a=n.length,o[r]=a,n[a]=[t])})),n}},{key:"_hashRankFromRange",value:function(e,t){var i=e[t].start,n=e[t].end;return 0===e[t].count?-1:n*n+n+i}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{findIndex:function(e,t){for(var i=e.length,n=0;n<i;n+=1)if(t(e[n]))return n;return-1},find:function(e,t){for(var i=e.length,n=0;n<i;n+=1){var o=e[n];if(t(o))return o}},every:function(e,t,i){return e.every(t,i)},some:function(e,t,i){return e.some(t,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7388),i(7389),i(7390),i(7391)],o=i.dj.d(n,(function(e,t){return t(e,"javascriptpanel-ui/l10n/nls/LanguageJavaScriptPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(585),i(748)],o=i.dj.d(n,(function(e,t){return{typeMapDefaults:{keyword:t.KEYWORD,atom:t.KEYWORD,type:t.KEYWORD,string:t.STRING,"string-2":t.STRING,comment:t.COMMENT,error:t.ERROR},colorMapDefaults:function(){const i={};return i[t.KEYWORD]=new e(14,0,255),i[t.STRING]=new e(170,4,249),i[t.COMMENT]=new e(2,128,9),i[t.ERROR]=new e(255,0,0),i}()}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(203),i(227),i(206),i(221),i(749),i(52),i(7486),i(430),i(445),i(7487)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){s("mozilla","opera","webkit","ie","ie-6","ie-6-7","quirks","no-quirks","touch");var c,d;function u(e){return document.getElementById(e)}function h(e){e.className="",document.body.removeChild(e)}function p(e,t){l(document.body,e,".dgrid-scrollbar-measure");var i=e["offset"+t]-e["client"+t];return h(e),i}o.add("dom-scrollbar-width",(function(e,t,i){return p(i,"Width")})),o.add("dom-scrollbar-height",(function(e,t,i){return p(i,"Height")})),o.add("dom-rtl-scrollbar-left",(function(e,t,i){var n,r=l("div");return l(document.body,i,".dgrid-scrollbar-measure[dir=rtl]"),l(i,r),n=!!o("ie")||!!o("trident")||r.offsetLeft>=o("dom-scrollbar-width"),h(i),l(r,"!"),i.removeAttribute("dir"),n}));var f=0;var g=/ +/g;function m(e){var t=e?"."+e.replace(g,"."):"";this._class&&(t="!"+this._class.replace(g,"!")+t),l(this.domNode,t),this._class=e}function _(){return this._class}var v=o("ie")<7&&!o("quirks")?function(){var e,t,i,n;this._started&&(t=(e=document.documentElement).clientWidth,i=e.clientHeight,(n=this._prevWinDims||[])[0]===t&&n[1]===i||(this.resize(),this._prevWinDims=[t,i]))}:function(){this._started&&this.resize()};function b(){return{x:this.bodyNode.scrollLeft,y:this.bodyNode.scrollTop}}function y(e){void 0!==e.x&&(this.bodyNode.scrollLeft=e.x),void 0!==e.y&&(this.bodyNode.scrollTop=e.y)}return t(o("touch")?a:null,{tabableHeader:!1,showHeader:!1,showFooter:!1,maintainOddEven:!0,cleanAddedRules:!0,useTouchScroll:null,addUiClasses:!0,cleanEmptyObservers:!0,highlightDuration:250,postscript:function(e,t){var i=this;(this._Row=function(e,t,i){this.id=e,this.data=t,this.element=i}).prototype.remove=function(){i.removeRow(this.element)},t&&(this.srcNodeRef=t=t.nodeType?t:u(t)),this.create(e,t)},listType:"list",create:function(e,i){var n,r=this.domNode=i||l("div");e?(this.params=e,t.safeMixin(this,e),n=e.class||e.className||r.className,this._sort=e.sort||[],delete this.sort):this._sort=[],this.observers=[],this._numObservers=0,this._listeners=[],this._rowIdToObject={},this.postMixInProperties&&this.postMixInProperties(),this.id=r.id=r.id||this.id||"dgrid_"+f++,null===this.useTouchScroll&&(this.useTouchScroll=!o("dom-scrollbar-width")),this.buildRendering(),n&&m.call(this,n),this.postCreate(),delete this.srcNodeRef,this.domNode.offsetHeight&&this.startup()},buildRendering:function(){var e,t,i,a,s=this.domNode,c=this.addUiClasses,d=this;a=this.isRTL="rtl"==(document.body.dir||document.documentElement.dir||document.body.style.direction).toLowerCase(),s.className="",l(s,"[role=grid].dgrid.dgrid-"+this.listType+(c?".ui-widget":"")),e=this.headerNode=l(s,"div.dgrid-header.dgrid-header-row"+(c?".ui-widget-header":"")+(this.showHeader?"":".dgrid-header-hidden")),(o("quirks")||o("ie")<8)&&l(s,"div.dgrid-spacer"),t=this.bodyNode=l(s,"div.dgrid-scroller"),o("ff")&&(t.tabIndex=-1),this.headerScrollNode=l(s,"div.dgrid-header.dgrid-header-scroll.dgrid-scrollbar-width"+(c?".ui-widget-header":"")),i=this.footerNode=l("div.dgrid-footer"+(this.showFooter?"":".dgrid-footer-hidden")),l(s,i),a&&(s.className+=" dgrid-rtl"+(o("dom-rtl-scrollbar-left")?" dgrid-rtl-swap":"")),n(t,"scroll",(function(i){d.showHeader&&(e.scrollLeft=i.scrollLeft||t.scrollLeft),i.stopPropagation(),n.emit(s,"scroll",{scrollTarget:t})})),this.configStructure(),this.renderHeader(),this.contentNode=this.touchNode=l(this.bodyNode,"div.dgrid-content"+(c?".ui-widget-content":"")),this._listeners.push(this._resizeHandle=n(window,"resize",r.throttleDelayed(v,this)))},postCreate:o("touch")?function(){this.useTouchScroll&&this.inherited(arguments)}:function(){},startup:function(){this._started||(this.inherited(arguments),this._started=!0,this.resize(),this.set("sort",this._sort))},configStructure:function(){},resize:function(){var e=this.bodyNode,t=this.headerNode,i=this.footerNode,n=t.offsetHeight,a=this.showFooter?i.offsetHeight:0,s=o("quirks")||o("ie")<7;this.headerScrollNode.style.height=e.style.marginTop=n+"px",e.style.marginBottom=a+"px",s&&(e.style.height="",e.style.height=Math.max(this.domNode.offsetHeight-n-a,0)+"px",a&&(i.style.bottom="1px",setTimeout((function(){i.style.bottom=""}),0))),c||(c=o("dom-scrollbar-width"),d=o("dom-scrollbar-height"),o("ie")&&(c++,d++),r.addCssRule(".dgrid-scrollbar-width","width: "+c+"px"),r.addCssRule(".dgrid-scrollbar-height","height: "+d+"px"),17==c||s||(r.addCssRule(".dgrid-header-row","right: "+c+"px"),r.addCssRule(".dgrid-rtl-swap .dgrid-header-row","left: "+c+"px"))),s&&(t.style.width=e.clientWidth+"px",setTimeout((function(){t.scrollLeft=e.scrollLeft}),0))},addCssRule:function(e,t){var i=r.addCssRule(e,t);return this.cleanAddedRules&&this._listeners.push(i),i},on:function(e,t){var i=n(this.domNode,e,t);return o("dom-addeventlistener")||this._listeners.push(i),i},cleanup:function(){var e,t=this.observers;for(e in this._rowIdToObject)if(this._rowIdToObject[e]!=this.columns){var i=u(e);i&&this.removeRow(i,!0)}for(e=0;e<t.length;e++){var n=t[e];n&&n.cancel()}this.observers=[],this._numObservers=0,this.preload=null},destroy:function(){if(this._listeners){for(var e=this._listeners.length;e--;)this._listeners[e].remove();delete this._listeners}this._started=!1,this.cleanup(),l(this.domNode,"!"),this.useTouchScroll&&this.inherited(arguments)},refresh:function(){this.cleanup(),this._rowIdToObject={},this._autoId=0,this.contentNode.innerHTML="",this.scrollTo({x:0,y:0})},newRow:function(e,t,i,n,o){if(t){var r=this.insertRow(e,t,i,n,o);return l(r,".dgrid-highlight"+(this.addUiClasses?".ui-state-highlight":"")),setTimeout((function(){l(r,"!dgrid-highlight!ui-state-highlight")}),this.highlightDuration),r}},adjustRowIndices:function(e){var t=e,i=t.rowIndex;if(i>-1)do{t.rowIndex>-1&&(this.maintainOddEven&&(t.className+" ").indexOf("dgrid-row ")>-1&&l(t,"."+(i%2==1?"dgrid-row-odd":"dgrid-row-even")+"!"+(i%2==0?"dgrid-row-odd":"dgrid-row-even")),t.rowIndex=i++)}while((t=t.nextSibling)&&t.rowIndex!=i)},renderArray:function(e,t,n){var o,r,a,s=this,l=(n=n||{}).start||0,c=this.observers;if(t||(this._lastCollection=e),e.observe){s._numObservers++;var d=e.observe((function(i,l,c){var d,h,p,f;function _(){p=(p.connected||p).nextSibling}if(l>-1&&o[l]&&((d=o.splice(l,1)[0]).parentNode==r&&((h=d.nextSibling)&&l!=c&&h.rowIndex--,s.removeRow(d)),n.count--,s._processScroll&&s._processScroll()),c>-1){if(o.length?0===c?p=(p=o[c])&&m(p):(p=o[c-1])&&(p=m(p),_()):p=s._getFirstRowSibling&&s._getFirstRowSibling(r),d&&p&&d.id===p.id&&_(),p&&!p.parentNode&&(p=u(p.id)),f=t&&t.parentNode||p&&p.parentNode||s.contentNode,(d=s.newRow(i,f,p,n.start+c,n))&&(d.observerIndex=a,o.splice(c,0,d),!h||c<l)){var v=d.previousSibling;h=v&&v.rowIndex+1!=d.rowIndex&&0!=d.rowIndex?v:d}n.count++}0===l?g(1,1):l===e.length-(-1===c?0:1)&&g(0,0),l!=c&&h&&s.adjustRowIndices(h),s._onNotification(o,i,l,c)}),!0);a=c.push(d)-1}var h,p,f=document.createDocumentFragment();function g(){var t=arguments;if(a>-1)for(var i=0;i<t.length;i++){var r=t[i],l=o[r?0:o.length-1];if(l=l&&m(l)){var c=l[r?"previousSibling":"nextSibling"];if(c&&(c=s.row(c)),c&&c.element!=l){var d=r?"unshift":"push";e[d](c.data),o[d](c.element),n.count++}}}}function m(e){return!i.isDescendant(e,s.domNode)&&u(e.id)?s.row(e.id.slice(s.id.length+5)).element:e}function _(e){return(h=s.insertRow(e,f,null,l++,n)).observerIndex=a,h}function v(e){p=e.slice(0),(r=t?t.parentNode:s.contentNode)&&r.parentNode&&(r!==s.contentNode||e.length)?(r.insertBefore(f,t||null),(h=e[e.length-1])&&s.adjustRowIndices(h)):c[a]&&s.cleanEmptyObservers&&function(e){if(void 0!==a&&(c[a].cancel(),c[a]=0,s._numObservers--),e)throw e}(),o=e,d&&(d.rows=o)}if(e.map){if((o=e.map(_,console.error)).then)return e.then((function(t){return e=t,o.then((function(e){return v(e),g(1,1,0,0),p}))}))}else{o=[];for(var b=0,y=e.length;b<y;b++)o[b]=_(e[b])}return v(o),g(1,1,0,0),p},_onNotification:function(e,t,i,n){},renderHeader:function(){},_autoId:0,insertRow:function(e,t,i,n,o){var r=o.parentId,a=this.id+"-row-"+(r?r+"-":"")+(this.store&&this.store.getIdentity?this.store.getIdentity(e):this._autoId++),s=u(a),l=s&&s.previousSibling;return s&&(s===i&&(i=(i.connected||i).nextSibling),this.removeRow(s)),(s=this.renderRow(e,o)).className=(s.className||"")+" dgrid-row "+(n%2==1?"dgrid-row-odd":"dgrid-row-even")+(this.addUiClasses?" ui-state-default":""),this._rowIdToObject[s.id=a]=e,t.insertBefore(s,i||null),l&&this.adjustRowIndices(l),s.rowIndex=n,s},renderRow:function(e,t){return l("div",""+e)},removeRow:function(e,t){e=e.element||e,delete this._rowIdToObject[e.id],t||l(e,"!")},row:function(e){var t,i;if(e instanceof this._Row)return e;if(e.target&&e.target.nodeType&&(e=e.target),!e.nodeType)return"object"==typeof e?t=this.store.getIdentity(e):(t=e,e=this._rowIdToObject[this.id+"-row-"+t]),new this._Row(t,e,u(this.id+"-row-"+t));do{var n=e.id;if(i=this._rowIdToObject[n])return new this._Row(n.substring(this.id.length+5),i,e);e=e.parentNode}while(e&&e!=this.domNode)},cell:function(e){return{row:this.row(e)}},_move:function(e,t,i,n){var o,r,a;a=r=e.element,t=t||1;do{if(o=r[t<0?"previousSibling":"nextSibling"]){do{if((r=o)&&(r.className+" ").indexOf(i+" ")>-1){a=r,t+=t<0?1:-1;break}}while(o=(!n||!r.hidden)&&r[t<0?"lastChild":"firstChild"])}else if(!(r=r.parentNode)||r===this.bodyNode||r===this.headerNode)break}while(t);return a},up:function(e,t,i){return e.element||(e=this.row(e)),this.row(this._move(e,-(t||1),"dgrid-row",i))},down:function(e,t,i){return e.element||(e=this.row(e)),this.row(this._move(e,t||1,"dgrid-row",i))},scrollTo:o("touch")?function(e){return this.useTouchScroll?this.inherited(arguments):y.call(this,e)}:y,getScrollPosition:o("touch")?function(){return this.useTouchScroll?this.inherited(arguments):b.call(this)}:b,get:function(e){var t="_get"+e.charAt(0).toUpperCase()+e.slice(1);return"function"==typeof this[t]?this[t].apply(this,[].slice.call(arguments,1)):(o("dojo-built")||"function"!=typeof this[t+"Attr"]||console.warn("dgrid: Use "+t+" instead of "+t+"Attr for getting "+e),this[e])},set:function(e,t){if("object"==typeof e)for(var i in e)this.set(i,e[i]);else{var n="_set"+e.charAt(0).toUpperCase()+e.slice(1);"function"==typeof this[n]?this[n].apply(this,[].slice.call(arguments,1)):(o("dojo-built")||"function"!=typeof this[n+"Attr"]||console.warn("dgrid: Use "+n+" instead of "+n+"Attr for setting "+e),this[e]=t)}return this},_getClass:_,_setClass:m,_getClassName:_,_setClassName:m,_setSort:function(e,t){this._sort="string"!=typeof e?e:[{attribute:e,descending:t}],this.refresh(),this._lastCollection&&(e.length&&("string"!=typeof e&&(t=e[0].descending,e=e[0].attribute),this._lastCollection.sort((function(i,n){var o=i[e],r=n[e];return void 0===o&&(o=""),void 0===r&&(r=""),o==r?0:o>r==!t?1:-1}))),this.renderArray(this._lastCollection))},sort:function(t,i){e.deprecated("sort(...)",'use set("sort", ...) instead',"dgrid 0.4"),this.set("sort",t,i)},_getSort:function(){return this._sort},_setShowHeader:function(e){var t=this.headerNode;this.showHeader=e,l(t,(e?"!":".")+"dgrid-header-hidden"),this.renderHeader(),this.resize(),e&&(t.scrollLeft=this.getScrollPosition().x)},setShowHeader:function(t){e.deprecated("setShowHeader(...)",'use set("showHeader", ...) instead',"dgrid 0.4"),this.set("showHeader",t)},_setShowFooter:function(e){this.showFooter=e,l(this.footerNode,(e?"!":".")+"dgrid-footer-hidden"),this.resize()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7527),i(263),i(2492)],o=i.dj.d(n,(function(e,t,i,n){return class extends t{constructor(){super(),this.showHiddenFiles=!1,i.listenTo(["matlab","desktop","currentfolder"],"ShowHiddenFiles",e=>{this.showHiddenFiles=e.newValue,this.emit("update:showHiddenFiles",e.newValue)}),i.getSetting(["matlab","desktop","currentfolder"],"ShowHiddenFiles").then(e=>{this.showHiddenFiles=e.value,this.emit("update:showHiddenFiles",e.value)})}getHiddenEntryFilter(){return this._getFilter(n.types.HIDDEN_FILES)}_getFilter(e){return n.filters[e].bind(this)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7540),i(7541),i(7542),i(7543)],o=i.dj.d(n,(function(e,t){return t(e,"project-util-ui/l10n/gen/resources/MATLAB/project/nls/view_util",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7560),i(2499)],o=i.dj.d(n,(function(e,t){var i=new e({sharingDataService:t.getSharingDataService()});return{getSharingManager:function(){return i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7580)],o=i.dj.d(n,(function(e){var t=new e;return{getPathDataService:function(){return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(849),i(7581)],o=i.dj.d(n,(function(e,t){return{exceptions:{PROMISE_EXPIRED:"promiseExpired",PROMISE_REJECTED:"promiseRejected"},createExpiringPromise:function(i,n){var o=new e,r=!1,a=setTimeout((function(){r=!0,o.reject(new t)}),n);if(!(i instanceof Promise)){const t=i;i=new e,t.then((...e)=>i.resolve(...e),(...e)=>i.reject(...e))}return i.then((function(e){r||(clearTimeout(a),o.resolve(e))})).catch((function(e){r||(clearTimeout(a),o.reject(e))})),o},createOrderedQueue:function(){var e=this;return{queue:[],pendingPromise:void 0,stop:!1,workingOnPromise:void 0,enqueue:function(t,i){if(i){var n=e.createExpiringPromise(t,i);return n.then(()=>{}).catch((function(){})),new Promise((e,t)=>{this.queue.push({promise:n,resolve:e,reject:t}),this.dequeue()})}return new Promise((e,i)=>{this.queue.push({promise:t,resolve:e,reject:i}),this.dequeue()})},dequeue:async function(){if(this.workingOnPromise)return!1;if(this.stop)return this.queue=[],void(this.stop=!1);if(this.pendingPromise=this.queue.shift(),!this.pendingPromise)return!1;try{this.workingOnPromise=!0;const e=await this.pendingPromise.promise;this.workingOnPromise=!1,this.pendingPromise.resolve(e),this.dequeue()}catch(e){this.workingOnPromise=!1,this.pendingPromise.reject(e),this.dequeue()}return!0}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{MOTW_PREFIX:"motw.liveeditor."}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{GET_ADDONS:"motw.addOns.getAddOns",MANAGE_ADDONS:"motw.addOns.manageAddOns"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(223),i(225),i(206),i(279),i(222),i(7618)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([s],{constructor:function(e){this.iframeLayoutManager=e.iframeLayoutManager},removeWindow:function(e){this.iframeLayoutManager.remove(e),this.escapeListener&&this.escapeListener.remove()},showIframe:function(e){return this.create(e)},create:function(e){if(!e.position){var i=a.getBox(),s=i.w/1.5,c=i.h/1.5,d=Math.floor((i.w-s)/2),u=Math.floor((i.h-c)/2);e.position=[u,d,s,c]}e.peerNodeId||(e.peerNodeId="iframe_"+Math.random());var h=new l(e);if(this.iframeLayoutManager.addWidget(e,h,e.attachMouseMoveEvent),h.onClose=t.hitch(this,"removeWindow",e.peerNodeId),!1!==e.maximize&&this.enableMaximizeButton(h.layoutWidgetId,e.maximizeUrl),!0===e.closeOnEscapeKey){var p=o.NodeList();p.push(h.domNode.parentElement.parentElement.parentElement),p.push(window),this.escapeListener=r(p,"keyup",function(e){e.keyCode==n.ESCAPE&&this.removeWindow(h.peerNodeId)}.bind(this))}return h},enableMaximizeButton:function(e,t){var n=this,s=o('div[id="'+e+'"] .dojoxFloatingMaximizeIcon')[0];i.set(s,{display:"inherit",cursor:"default"}),s.classList.add("mwFloatingPopOutIcon"),r(s,"click",(function(){n.removeWindow(e),a.get(document).open(t)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7707),i(7708),i(7709),i(7710)],o=i.dj.d(n,(function(e,t){return t(e,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/upload",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1219),i(418),i(7714)],o=i.dj.d(n,(function(e,t,i){var n=new i({pathService:e.getPathDataService(),listFolderService:t.getListFolderService(),vfsAttributesService:t.getVFSAttributesService(),fileOperationsService:t.getFileOperationsService()});return{getFileDataService:function(){return n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7749),i(7750),i(7751),i(7752)],o=i.dj.d(n,(function(e,t){return t(e,"commandwindow/resources/commandwindow/nls/commandwindow",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7771)],o=i.dj.d(n,(function(e){return{DEFAULT_PROMPT:">> ",TYPEAHEAD_PROMPT:"\n",NULL_PROMPT:"",KEYBOARD_PROMPT:e.keyboardPrompt+" ",SIMEVENTS_DEBUG_PROMPT:e.simEventsDebugPrompt+" ",SF_EML_DEBUG_PROMPT:e.sfEmlDebugPrompt+" ",FAULT_STRING:e.faultString+" ",_getExecutionStatePromptStrings:function(){return{busy:this.NULL_PROMPT,pause:this.NULL_PROMPT,ready:this.DEFAULT_PROMPT,debug:this.KEYBOARD_PROMPT,keyboard:this.KEYBOARD_PROMPT,completingBlock:"",input:""}},_getAllPromptStrings:function(){return[this.DEFAULT_PROMPT,this.KEYBOARD_PROMPT,this.SIMEVENTS_DEBUG_PROMPT,this.SF_EML_DEBUG_PROMPT,this.FAULT_STRING]},_removePromptFromString:function(e){for(var t=this._getAllPromptStrings(),i=0;i<t.length;i++)if(e.substring(0,t[i].length)===t[i])return e.substring(t[i].length);return e},stripPrompts:function(e){var t=e.split(/\r\n|\n|\r/);return(t=t.map(this._removePromptFromString,this)).join("\n")},getPromptFromExecutionState:function(e){return this._getExecutionStatePromptStrings()[e]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(227),i(228),i(211),i(213),i(223),i(206),i(279),i(2537),i(7790),i(1011),i(486)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return p.deprecated({deprecated:{module:"MW/dialog/DialogDisplayUtilities"},replacement:{module:"mw-dialogs/Dialogs"},geckNumber:1471429}),t([],{constructor:function(e){e=e||{}},createModalDialogWrapper:function(e){var t;return e.dialogClass&&(e.dialogClass=i.trim(e.dialogClass)+"Box dialog"),(t=new d({title:e.title||"",id:e.id+"Dialog",style:e.style,class:(e.dialogClass||"dialog")+(e.class?" "+e.class:""),closable:e.closable,duration:1,refocus:!1!==e.refocus,autofocus:!1!==e.autofocus}))._onKey=function(){this.inherited("_onKey",arguments)},t.show=function(){var t;return e.position&&e.position.x>=0&&e.position.y>=0&&this.placeDialogAt(e.position),a.set(this.domNode,{opacity:0,display:""}),t=this.inherited("show",arguments),this.closable||a.set(this.closeButtonNode,{display:"none"}),this.dombody=document.body,this.handleBodyKeyPress=l(this.dombody,"click",i.hitch(this,this.handleFocus)),this._dialogShowPromise=t,t.then((function(){e.wrapper.closeButtonNode.setAttribute("tabindex","0")})),t},e.widget&&(e.widget.close=function(){t._dialogShowPromise&&!t._dialogShowPromise.isResolved()?t._dialogShowPromise.then((function(){t.hide()})):t.hide()}),this._addWrapperAndWidgetEvents(t,e.widget),t.set("content",e.widget),e["data-testid"]&&o.set(t.domNode,"data-testid",e["data-testid"]),t.onHide=function(){t.onClose()},t},createNonModalDialogWrapper:function(e,t,a,s){var l;return e.parentDiv=t||e.parentDiv||e.id+"floatingParentDiv",n.byId(e.parentDiv)||r.create("div",{id:e.parentDiv},document.body),e.dialogClass&&(e.dialogClass=i.trim(e.dialogClass)),(l=new u({title:e.title||"",class:e.dialogClass||"",id:s||e.id,resizable:!1!==e.resizable,dockable:!1,style:a||e.style},n.byId(e.parentDiv))).duration=500,this._addWrapperAndWidgetEvents(l,e.widget),l.set("content",e.widget),e["data-testid"]&&o.set(l.domNode,"data-testid",e["data-testid"]),l},startNonModalDialogAndAddResizeHandlers:function(e){var t;e.startup(),e.bringToTop(),e.show(),t=c.getBox(),e._moveable.mover=h,e._resizeHandle&&(e._resizeHandle.constrainMax=!0,e._resizeHandle.maxSize=t)},_addWrapperAndWidgetEvents:function(e,t){e.onClose=function(){return this.handleBodyKeyPress&&this.handleBodyKeyPress.remove(),t.onClose&&t.onClose(arguments)},e.onCancel=function(){return this.handleBodyKeyPress&&this.handleBodyKeyPress.remove(),t.onCancel&&t.onCancel(arguments)},e.onShow=function(){return t.onShow&&t.onShow(arguments)},e.onFocus=function(){return t.onFocus&&t.onFocus(arguments)},e.onBlur=function(){return t.onBlur&&t.onBlur(arguments)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{SUPPORTED_EXTENSION_PATTERN:/\.(pdf|html|htm|shtml|xml|xsl|wsdl|arxml|x3d|tex|docx|c|h|cpp|hpp|cu|cuh|java|txt|js|ts|json)$/i,SUPPORTED_FILENAME_PATTERN:/^[a-z][a-z0-9_]*\.(m|mln|mlx|pdf|html|htm|shtml|xml|xsl|wsdl|arxml|x3d|tex|docx|c|h|cpp|hpp|cu|cuh|java|txt|js|ts|json)$/i}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(228),i(328),i(216),i(255),i(258),i(243),i(233),i(299),i(1229),i(2546),i(7867),i(290),i(600)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([o,r,a],{templateString:p,idAttr:"motw-dialog-saveAs",constructor:function(e){e=e||{},this.fileDataService=e.fileDataService,this._fileUtil=c,this._placeHolder=e.placeHolder,this._startValue=e.startValue,this._location=e.fileLocation,this._saveAsNameLabel=e.saveAsNameLabel,this._numSelectedChars=e.numSelectedChars,this.okAction=e.okAction,this.cancelAction=e.cancelAction,this._localization=g},postCreate:function(){this.inherited(arguments),this.nameInputLabel.textContent=this._saveAsNameLabel},onShow:function(){this._placeHolder&&this.inputBox.set("placeholder",this._placeHolder),this.okButton.set("disabled",!0),this.inputBox.startValue=this._startValue,this._startValue&&this.inputBox.set("value",this._startValue),"number"==typeof this._numSelectedChars&&this._numSelectedChars>=0&&this._setCursorPositionAndSelection(0,this._numSelectedChars)},updateButtons:function(e){var t=e?e.mwEventData.currentContent:this.getFileName();""!==t&&this._fileNameValidator(t)?(this.okButton.set("disabled",!1),this.inputBox.set("validationState","normal"),this.inputBox.set("errorText","")):this.okButton.set("disabled",!0)},onTextKeyup:function(e){e.keyCode===dojo.keys.ENTER?this.okAction&&!this.okButton.get("disabled")&&this.okAction():e.keyCode===dojo.keys.ESCAPE&&this.cancelAction&&this.cancelAction()},getFileName:function(){return t.trim(this.inputBox.get("value"))},_setFileName:function(e){this.inputBox.set("value",e)},_setCursorPositionAndSelection:function(e,t){var i=this.inputBox.inputNode;if(i.createTextRange){var n=i.createTextRange();n.collapse(),n.moveStart("character",e),n.moveEnd("character",t),n.select()}else i.focus(),i.setSelectionRange(e,t)},onClose:function(){},_fileNameValidator:function(e){return""===(e=t.trim(e))||(c.MATLAB_EXTENSION_PATTERN.test(e)||u.SUPPORTED_EXTENSION_PATTERN.test(e)?u.SUPPORTED_FILENAME_PATTERN.test(e)?!this.fileDataService||!this.fileDataService.doesFileExistAtLocation(e,this._location)||(this.inputBox.set("validationState","error"),this.inputBox.set("errorText",f.fileOrFolderExistsError),!1):(this.inputBox.set("validationState","error"),this.inputBox.set("errorText",f.invalidMFileNameError),!1):(this.inputBox.set("validationState","error"),this.inputBox.set("errorText",f.invalidMFileExtensionError),!1))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(868),i(236),i(2550),i(290),i(262),i(7872)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{dialog:null,_versionInfo:void 0,_buildInfoJson:"webguiBuildInfo.json",getVersionInfo:function(){return void 0===this._versionInfo&&t(this._buildInfoJson,{handleAs:"json",sync:!0,timeout:2e3}).then(function(e){this._versionInfo=e}.bind(this),(function(){throw new Error("Unable to get MATLAB Version information!")})),this._versionInfo},getMATLABVersionInfo:function(){return this.getVersionInfo().matlab_version_info},getMATLABVersionString:function(){var e=this.getMATLABVersionInfo();return`${e.release} ${e.description} (${e.version})`},getBuildYear:function(){let e=this.getMATLABVersionInfo().date;return e.substring(e.length-4)},displayInfo:function(){var t=a;t=(t=(t=t.replace("$matlabVersion$",this.getMATLABVersionString())).replace("$buildInfo$",this.getMATLABVersionInfo().date)).replace("$legalInfo$",i.substitute(n.legalInfo,[this.getBuildYear()]));var o=e.create("div");o.innerHTML=t,this.dialog=r.createDialog({title:n.title,dialogType:r.MODAL,className:"motw-aboutDialog",closeOnEscape:!0,closable:!0,draggable:!0,resizable:!1,"data-test-id":"MOTW_AboutDialog",content:o})},close:function(){this.dialog&&this.dialog.domNode&&(this.dialog.close(),this.dialog=null)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7891),i(7892),i(7893),i(7894)],o=i.dj.d(n,(function(e,t){return t(e,"project-creation/resources/MATLAB/project/nls/view_creation",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1221),i(729)],o=i.dj.d(n,(function(e,t){var i={ids:{},rtcAttributes:{}};function n(t,n,o){var r=e.MOTW_PREFIX+n;i.ids[t]=r,o&&(i.rtcAttributes[t]=o)}return n("BOLD","equationeditor.format.bold",{selected:!1}),n("ITALIC","equationeditor.format.italic",{selected:!1}),t.getCommands().forEach((function(e){n("INSERT_"+e.replace(/([A-Z])/g,(function(e){return"_"+e+"_"})).toUpperCase(),"equationeditor.insert."+e)})),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2564),i(2603),i(304),i(204),i(213),i(275),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{ensureActionsLoaded:function(e){var i=e.getRootUIContainer().application.editorService;if(i&&!i.hasActionProviders(window)){var n=t.createActionProviders(i,e.actionService,i.fileDataService);i.setActionProviders(n,window)}},createEditorView:function(t,i,o,s,l){const c=t.getRootUIContainer(),d=c.application.fileDataService,u=c.application.executionService,h=c.application.editorService;let p=i.Filename;const f=i.IsUntitled&&i.IsMATLABApiRequest;f&&(p=h.untitledBufferService.getUntitledBufferFileName(s));let g=d.openedFilesDataStore.get(p);if(!g){const e=f?[]:a.locationFromPath(p),t=a.nameFromPath(p);g=a.createEmptyFileObject(e,t),d.openedFilesDataStore.put(n.mixin(g,{modifiedDate:null,savePending:!1,id:p,isUntitled:i.IsUntitled})),g.isUntitled&&(g.content=i.InitialEditorContent)}const m={id:l,file:g,fileDataService:d,executionDataService:u,debugServices:r.getInstance(),uiContainer:t,enablePluggableBackingstore:!0,documentId:o,documentType:s,title:g.fileInfo.name,closable:!0};return new e(m)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(388)],o=i.dj.d(n,(function(e){return class{static create(t){return t.create({type:e.STATUS_GROUP,tag:this.getTag(),region:"right"})}static getTag(){throw new Error("Unimplemented API: getTag")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(224),i(958),i(8223),i(218),i(891),i(236),i(8224),i.dj.m(e)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c={};function d(e,t,i,o){return o.replace(/([a-z])\1*/gi,(function(r){var s,l,d=r.charAt(0),u=r.length,h=["abbr","wide","narrow"];switch(d){case"G":s=t[u<4?"eraAbbr":"eraNames"][e.getFullYear()<0?0:1];break;case"y":switch(s=e.getFullYear(),u){case 1:break;case 2:if(!i.fullYear){s=(s=String(s)).substr(s.length-2);break}default:l=!0}break;case"Q":case"q":s=Math.ceil((e.getMonth()+1)/3),l=!0;break;case"M":case"L":var p=e.getMonth();if(u<3)s=p+1,l=!0;else{var f=["months","L"==d?"standAlone":"format",h[u-3]].join("-");s=t[f][p]}break;case"w":s=c._getWeekOfYear(e,0),l=!0;break;case"d":s=e.getDate(),l=!0;break;case"D":s=c._getDayOfYear(e),l=!0;break;case"e":case"c":var g=e.getDay();if(u<2){s=(g-n.getFirstDayOfWeek(i.locale)+8)%7;break}case"E":if(g=e.getDay(),u<3)s=g+1,l=!0;else{var m=["days","c"==d?"standAlone":"format",h[u-3]].join("-");s=t[m][g]}break;case"a":var _=e.getHours()<12?"am":"pm";s=i[_]||t["dayPeriods-format-wide-"+_];break;case"h":case"H":case"K":case"k":var v=e.getHours();switch(d){case"h":s=v%12||12;break;case"H":s=v;break;case"K":s=v%12;break;case"k":s=v||24}l=!0;break;case"m":s=e.getMinutes(),l=!0;break;case"s":s=e.getSeconds(),l=!0;break;case"S":s=Math.round(e.getMilliseconds()*Math.pow(10,u-3)),l=!0;break;case"v":case"z":if(s=c._getZone(e,!0,i))break;u=4;case"Z":var b=c._getZone(e,!1,i),y=[b<=0?"+":"-",a.pad(Math.floor(Math.abs(b)/60),2),a.pad(Math.abs(b)%60,2)];4==u&&(y.splice(0,0,"GMT"),y.splice(3,0,":")),s=y.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+o)}return l&&(s=a.pad(s,u)),s}))}function u(e,i,n,o){var r=function(e){return e};i=i||r,n=n||r,o=o||r;var a=e.match(/(''|[^'])+/g),s="'"==e.charAt(0);return t.forEach(a,(function(e,t){e?(a[t]=(s?n:i)(e.replace(/''/g,"'")),s=!s):a[t]=""})),o(a.join(""))}function h(e,t,i,n){return n=r.escapeString(n),i.strict||(n=n.replace(" a"," ?a")),n.replace(/([a-z])\1*/gi,(function(n){var o,r=n.charAt(0),a=n.length,s="",l="";switch(i.strict?(a>1&&(s="0{"+(a-1)+"}"),a>2&&(l="0{"+(a-2)+"}")):(s="0?",l="0{0,2}"),r){case"y":o="\\d{2,4}";break;case"M":case"L":o=a>2?"\\S+?":"1[0-2]|"+s+"[1-9]";break;case"D":o="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+s+"[1-9][0-9]|"+l+"[1-9]";break;case"d":o="3[01]|[12]\\d|"+s+"[1-9]";break;case"w":o="[1-4][0-9]|5[0-3]|"+s+"[1-9]";break;case"E":case"e":case"c":o=".+?";break;case"h":o="1[0-2]|"+s+"[1-9]";break;case"k":o="1[01]|"+s+"\\d";break;case"H":o="1\\d|2[0-3]|"+s+"\\d";break;case"K":o="1\\d|2[0-4]|"+s+"[1-9]";break;case"m":case"s":o="[0-5]\\d";break;case"S":o="\\d{"+a+"}";break;case"a":var c=i.am||t["dayPeriods-format-wide-am"],d=i.pm||t["dayPeriods-format-wide-pm"];o=c+"|"+d,i.strict||(c!=c.toLowerCase()&&(o+="|"+c.toLowerCase()),d!=d.toLowerCase()&&(o+="|"+d.toLowerCase()),-1!=o.indexOf(".")&&(o+="|"+o.replace(/\./g,""))),o=o.replace(/\./g,"\\.");break;default:o=".*"}return e&&e.push(n),"("+o+")"})).replace(/[\xa0 ]/g,"[\\s\\xa0]")}e.setObject(l.id.replace(/\//g,"."),c),c._getZone=function(e,t,n){return t?i.getTimezoneName(e):e.getTimezoneOffset()},c.format=function(t,i){i=i||{};var n,r=o.normalizeLocale(i.locale),a=i.formatLength||"short",s=c._getGregorianBundle(r),l=[],h=e.hitch(this,d,t,s,i);return"year"==i.selector?u(s["dateFormatItem-yyyy"]||"yyyy",h):("date"!=i.selector&&(n=i.timePattern||s["timeFormat-"+a])&&l.push(u(n,h)),"time"!=i.selector&&(n=i.datePattern||s["dateFormat-"+a])&&l.push(u(n,h)),1==l.length?l[0]:s["dateTimeFormat-"+a].replace(/\'/g,"").replace(/\{(\d+)\}/g,(function(e,t){return l[t]})))},c.regexp=function(e){return c._parseInfo(e).regexp},c._parseInfo=function(t){t=t||{};var i=o.normalizeLocale(t.locale),n=c._getGregorianBundle(i),r=t.formatLength||"short",a=t.datePattern||n["dateFormat-"+r],s=t.timePattern||n["timeFormat-"+r],l=[];return{regexp:u("date"==t.selector?a:"time"==t.selector?s:n["dateTimeFormat-"+r].replace(/\{(\d+)\}/g,(function(e,t){return[s,a][t]})),e.hitch(this,h,l,n,t)),tokens:l,bundle:n}},c.parse=function(e,n){var o=/[\u200E\u200F\u202A\u202E]/g,r=c._parseInfo(n),a=r.tokens,s=r.bundle,l=new RegExp("^"+r.regexp.replace(o,"")+"$",r.strict?"":"i").exec(e&&e.replace(o,""));if(!l)return null;var d=["abbr","wide","narrow"],u=[1970,0,1,0,0,0,0],h="",p=t.every(l,(function(e,i){if(!i)return!0;var o=a[i-1],r=o.length,l=o.charAt(0);switch(l){case"y":if(2!=r&&n.strict)u[0]=e;else if(e<100){e=Number(e);var c=""+(new Date).getFullYear(),p=100*c.substring(0,2),f=Math.min(Number(c.substring(2,4))+20,99);u[0]=e<f?p+e:p-100+e}else{if(n.strict)return!1;u[0]=e}break;case"M":case"L":if(r>2){var g=s["months-"+("L"==l?"standAlone":"format")+"-"+d[r-3]].concat();if(n.strict||(e=e.replace(".","").toLowerCase(),g=t.map(g,(function(e){return e.replace(".","").toLowerCase()}))),-1==(e=t.indexOf(g,e)))return!1}else e--;u[1]=e;break;case"E":case"e":case"c":var m=s["days-"+("c"==l?"standAlone":"format")+"-"+d[r-3]].concat();if(n.strict||(e=e.toLowerCase(),m=t.map(m,(function(e){return e.toLowerCase()}))),-1==(e=t.indexOf(m,e)))return!1;break;case"D":u[1]=0;case"d":u[2]=e;break;case"a":var _=n.am||s["dayPeriods-format-wide-am"],v=n.pm||s["dayPeriods-format-wide-pm"];if(!n.strict){var b=/\./g;e=e.replace(b,"").toLowerCase(),_=_.replace(b,"").toLowerCase(),v=v.replace(b,"").toLowerCase()}if(n.strict&&e!=_&&e!=v)return!1;h=e==v?"p":e==_?"a":"";break;case"K":24==e&&(e=0);case"h":case"H":case"k":if(e>23)return!1;u[3]=e;break;case"m":u[4]=e;break;case"s":u[5]=e;break;case"S":u[6]=e}return!0})),f=+u[3];"p"===h&&f<12?u[3]=f+12:"a"===h&&12==f&&(u[3]=0);var g=new Date(u[0],u[1],u[2],u[3],u[4],u[5],u[6]);n.strict&&g.setFullYear(u[0]);var m=a.join(""),_=-1!=m.indexOf("d"),v=-1!=m.indexOf("M");return!p||v&&g.getMonth()>u[1]||_&&g.getDate()>u[2]?null:((v&&g.getMonth()<u[1]||_&&g.getDate()<u[2])&&(g=i.add(g,"hour",1)),g)};var p=[],f={};return c.addCustomFormats=function(e,t){p.push({pkg:e,name:t}),f={}},c._getGregorianBundle=function(i){if(f[i])return f[i];var n={};return t.forEach(p,(function(t){var r=o.getLocalization(t.pkg,t.name,i);n=e.mixin(n,r)}),this),f[i]=n},c.addCustomFormats(l.id.replace(/\/date\/locale$/,".cldr"),"gregorian"),c.getNames=function(e,t,i,n){var o,r=c._getGregorianBundle(n),a=[e,i,t];"standAlone"==i&&(1==(o=r[a.join("-")])[0]&&(o=void 0));return a[1]="format",(o||r[a.join("-")]).concat()},c.isWeekend=function(e,t){var i=n.getWeekend(t),o=(e||new Date).getDay();return i.end<i.start&&(i.end+=7,o<i.start&&(o+=7)),o>=i.start&&o<=i.end},c._getDayOfYear=function(e){return i.difference(new Date(e.getFullYear(),0,1,e.getHours()),e)+1},c._getWeekOfYear=function(e,t){1==arguments.length&&(t=0);var i=new Date(e.getFullYear(),0,1).getDay(),n=(i-t+7)%7,o=Math.floor((c._getDayOfYear(e)+n-1)/7);return i==t&&o++,o},c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(1625)],o=i.dj.d(n,(function(e,t){return{determineEvalResponsiveness:function(t,i){var n,o,r,a,s,l;return o=new e,r=function(){o.resolve(!0),n()},a=function(){o.resolve(!1),n()},l="HealthCheck"+Date.now(),t.registerResponseHandler("EvalResponse:"+l,r),t.registerFaultHandler("Eval:"+l,a),s=window.setTimeout(a,i),n=function(){t.deregisterResponseHandler("EvalResponse:"+l),t.deregisterFaultHandler("Eval:"+l),window.clearTimeout(s)},t.sendMessage({Eval:[{mcode:""}]},{},l),o.promise},getStatusOfWorker:function(){var i;return i=new e,t.send({GetMatlabStatus:[{uuid:""}]}).then((function(e){switch(e.GetMatlabStatus.status){case"BUSY":i.resolve("BUSY");break;case"IDLE":i.resolve("IDLE")}})),i.promise},isUserLoggedOut:function(t,i){deferred=new e,successCallback=function(){deferred.resolve(!0),cleanup()},faultCallback=function(){deferred.resolve(!1),cleanup()},classifier="MATLABCrashCheck"+Date.now(),t.registerResponseHandler("CurrentUserResponse:"+classifier,successCallback),t.registerFaultHandler("CurrentUser:"+classifier,faultCallback),timeoutId=window.setTimeout(faultCallback,i),cleanup=function(){t.deregisterResponseHandler("CurrentUserResponse:"+classifier),t.deregisterFaultHandler("CurrentUser:"+classifier),window.clearTimeout(timeoutId)},t.sendMessage({CurrentUser:{apiVersion:"1.2"}},{},classifier)},isMATLABCrashed:function(t,i){deferred=new e,successCallback=function(){deferred.resolve(!0),cleanup()},faultCallback=function(){deferred.resolve(!1),cleanup()},classifier="UserLoggedOutCheck"+Date.now(),t.registerResponseHandler("GetCurrentComputeResourceResponse:"+classifier,successCallback),t.registerFaultHandler("GetCurrentComputeResource:"+classifier,faultCallback),timeoutId=window.setTimeout(faultCallback,i),cleanup=function(){t.deregisterResponseHandler("GetCurrentComputeResourceResponse:"+classifier),t.deregisterFaultHandler("GetCurrentComputeResource:"+classifier),window.clearTimeout(timeoutId)},t.sendMessage({GetCurrentComputeResource:{}},{},classifier)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8291),i(8292),i(8293),i(8294)],o=i.dj.d(n,(function(e,t){return t(e,"matlab_favorite_commands/l10n/nls/favcommands",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(210),i(983),i(1189)],o=i.dj.d(n,(function(e,t,i,n,o){return t("importtool_client.renderers.ImportToolRenderer",[o,n],{config:{},_DATA_TYPE_DOUBLE:"double",_DATA_TYPE_DATETIME:"datetime",_REPLACED_BY_VALUE:"isReplacedBy",_ROW_UNIMPORTABLE:"isRowExcluded",_COL_UNIMPORTABLE:"isColExcluded",_ROW_BLANK:"isRowBlank",_COL_BLANK:"isColBlank",_REPLACEMENT_HIGHLIGHTING_CLASS:"replacementHighlighting",_EXCLUSION_HIGHLIGHTING_CLASS:"exclusionHighlighting",_CELL_SELECTED_CLASS:"mw-table-cell-selected",getValueDomNode:function(t){var i,n=document.createElement("div");i=void 0!==t.value?e.formatString(t.value,{escapeSpace:!0}):t;var o=document.createElement("span");return n.appendChild(o),o.textContent=i,this.addAlignment(n),n.dataset.editValue=t.editValue,n},getParsedDataValue:function(e){return JSON.parse(e)},getTooltipValue:function(e){var t=e;try{t=JSON.parse(e).value}catch(e){}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._containers={},this._savedStates={}},getContainerStates:function(){var e={},t=this;return Object.keys(this._savedStates).forEach((function(i){e[i]=t._savedStates[i]})),Object.keys(this._containers).forEach((function(i){e[i]=t._containers[i].getState()})),e},setContainerStates:function(e){var t=this;Object.keys(e).forEach((function(i){t._containers[i]?t._containers[i].setState(e[i]):t._savedStates[i]=e[i]}))},onCreate:function(e,t,i){i&&this._savedStates[e]&&(t.setState(this._savedStates[e]),delete this._savedStates[e]),this._containers[e]=t},onDestroy:function(e,t){this._containers[e]&&(t&&(this._savedStates[e]=this._containers[e].getState()),delete this._containers[e])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(256),i(206),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){var r={},a=null,s=1,l={windowAdded:{},windowRemoved:{},noActiveWindow:{},preWindowAdd:{}};i.subscribe("/floatingPaneClosed",(function(e){u(e.window)})),i.subscribe("/floatingPaneRaised",(function(e){p(e.window)})),i.subscribe("/floatingPaneShown",(function(e){d(e.window)})),i.subscribe("/floatingPaneCreated",(function(e){c(e.window)})),i.subscribe("/floatingPaneHidden",(function(e){h(e.window)})),i.subscribe("/floatingPaneMinimized",(function(e){f(e.window)}));var c=function(e){o.assert(!r[e.id],"window should not exist"),g(e)},d=function(e){g(e)},u=function(e){m(e)},h=function(e){m(e)},p=function(e){r[e.id]&&(a=e.id,r[e.id].focus=v())},f=function(e){o.assert(r[e.id],"window should exist"),r[e.id].focus=0,_()},g=function(e){if(!r[e.id]&&(I(e),!w(e)&&!T(e))){var t=!Object.keys(r).length;r[e.id]={win:e,focus:v()},b(e),t&&C(!1)}},m=function(e){r[e.id]&&(delete r[e.id],a===e.id&&_(),y(e),Object.keys(r).length||C(!0))},_=function(){var e=S();if(e.length){var t=e.pop();a=t.id}},v=function(){var e=s;return s++,e},b=function(e){E("windowAdded",e)},y=function(e){E("windowRemoved",e)},C=function(e){E("noActiveWindow",e)},T=function(e){return Object.values(l.preWindowAdd).some((function(t){return Boolean(t(e))}))},E=function(e,t){Object.values(l[e]).forEach((function(e){e(t)}))},S=function(){var e=[],t=r;return Object.keys(t).forEach((function(i){t[i].win.isMinimized()||e.push(t[i])})),e.sort((function(e,t){return e.focus-t.focus})),e.map((function(e){return e.win}))},w=function(e){return!!e.class&&-1!==e.class.indexOf("visibilityHidden")},I=function(e){e.hasSwitchWindowWatch||(e.watch("class",(function(){r[e.id]&&w(e)?m(e):r[e.id]||w(e)||g(e)})),e.hasSwitchWindowWatch=!0)};return{getTopWindow:function(){return r[a]&&r[a].win},getOpenWindows:function(e=!1){return e?S():Object.values(r).map((function(e){return e.win}))},addCallback:function(e,t,i){o.assert(l[e],"callback type "+e+" is not supported"),o.assert("string"==typeof t,"callback needs a string id"),o.assert(!l[e][t],"callback with the same type and id exists"),l[e][t]=i},removeCallback:function(e,t){o.assert(l[e],"callback type "+e+" is not supported"),o.assert("string"==typeof t,"callback needs a string id"),delete l[e][t]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8417),i(8418),i(8419),i(8420)],o=i.dj.d(n,(function(e,t){return t(e,"mw-login/l10n/nls/app",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8475),i(8476),i(8477),i(8478)],o=i.dj.d(n,(function(e,t){return t(e,"cmlink-git-lib/l10n/gen/resources/shared_cmlink/nls/view_commit",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8528),i(8529),i(8530),i(8531)],o=i.dj.d(n,(function(e,t){return t(e,"project-labels-ui/l10n/gen/resources/MATLAB/project/nls/view_action",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8541),i(8542),i(8543),i(8544)],o=i.dj.d(n,(function(e,t){return t(e,"project-references-ui/l10n/gen/resources/MATLAB/project/nls/view_references",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(328),i(216)],o=i.dj.d(n,(function(e,t,i){return e("dijit.form.HorizontalRule",[t,i],{templateString:'<div class="dijitRuleContainer dijitRuleContainerH"></div>',count:3,container:"containerNode",ruleStyle:"",_positionPrefix:'<div class="dijitRuleMark dijitRuleMarkH" style="left:',_positionSuffix:"%;",_suffix:'"></div>',_genHTML:function(e){return this._positionPrefix+e+this._positionSuffix+this.ruleStyle+this._suffix},_isHorizontal:!0,buildRendering:function(){var e;if(this.inherited(arguments),1==this.count)e=this._genHTML(50,0);else{var t,i=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){for(e=this._genHTML(0,0),t=1;t<this.count-1;t++)e+=this._genHTML(i*t,t);e+=this._genHTML(100,this.count-1)}else{for(e=this._genHTML(100,0),t=1;t<this.count-1;t++)e+=this._genHTML(100-i*t,t);e+=this._genHTML(0,this.count-1)}}this.domNode.innerHTML=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t,i=e([],{constructor:function(e){this.styleGroups={},this.baseSelector=e},remove:function(){Object.keys(this.styleGroups).forEach((function(e){this["_"+e+"Rules"]&&(this["_"+e+"Rules"].forEach((function(e){e.remove()})),delete this["_"+e+"Rules"])}),this),this.styleGroups={}},updateStyleRules:function(e,i){var n,o=this.styleGroups[e],r=Object.keys(i),a=!1;if(o){var s=Object.keys(this.styleGroups[e]);if(s.length===r.length){for(s.sort(),r.sort(),n=0;n<s.length;n+=1)if(s[n]!==r[n]||o[r[n]]!==i[r[n]]){a=!0;break}}else a=!0}else a=!0;if(a){this.styleGroups[e]=i;var l=r.map((function(e){return t.addRule(this.baseSelector+" "+e,i[e])}),this);this["_"+e+"Rules"]&&this["_"+e+"Rules"].forEach((function(e){e.remove()})),this["_"+e+"Rules"]=l}}}),n=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(n),n=n.sheet;var o=[];return t={addRule:function(e,t){var i=o.length;o[i]=n.cssRules.length,n.insertRule(e+"{"+t+"}",o[i]);var r=this;return{remove:function(){r.removeRule(i)}}},removeRule:function(e){var t,i=o[e];if(void 0!==i)for(n.deleteRule(i),o[e]=void 0,t=e;t<o.length;t+=1)o[t]>i&&(o[t]-=1)},StyleManager:i}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(8670),i(1656),i(511),i(539),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){let l=e([i],{constructor:function(){this._ready=!1,this._profiles={}},setup:function(){new r("PeerValidationManager-Initialize").execute({functionName:"parallel.internal.ui.PeerValidationManager.initialize",nargout:2}).then(t.hitch(this,this._validationInfoAvailable))},_validationInfoAvailable:function(e){let t=new a("/parallel/profile/validation",{strategy:a.VIEWMODEL});t.hasRoot()?this._onRootSet(t.getRoot()):t.onRootSet(this._onRootSet,this),l.STAGE=e[0];const i=e[1];Object.keys(i).forEach((function(e){o[e].name=i[e]})),this._ready=!0,this.emit(l.READY,{})},isReady:function(){return this._ready},_onRootSet:function(e){a.onChildAdded(e,this._validationNodeCreated,this)},_validationNodeCreated:function(e){this._validationStarted(e),a.onPropertiesSet(e,this._validationFinished,this),a.onChildAdded(e,this._validationStageCreated,this)},_validationStarted:function(e){const t=e.getType(),i=e.getProperties(),o=new n(e,t,i.status);this._profiles[t]=o,this.emit(l.STARTED,o),o.status.terminal&&this._validationFinished(i,{},{target:e})},_validationStageCreated:function(e){a.onPropertiesSet(e,this._validationStageUpdated,this),this._validationStageUpdated(e.getProperties(),{},{target:e})},_validationStageUpdated:function(e,t,i){const n=i.target.getParent().getType(),o=this._profiles[n];o.updateStage(i.target.getProperties()),this.emit(l.UPDATED,o,i.target.getType())},_validationFinished:function(e,t,i){const n=i.target.getType(),r=this._profiles[n];o.updateStatus(r,e.status),r.status===o.Stopped&&i.target.getChildren().forEach((function(e){e.getProperty("status")===o.Running.Id&&e.setProperties({status:r.status,description:r.description||""})})),e.cancelled||this.emit(l.FINISHED,r)},validate:function(e,t){s.publish("/parallel/profile/validation/control",{profileName:e,suite:t})},cancel:function(e){this._profiles[e].setCancelled()},getProfileValidationInfo:function(e){return this._profiles[e]}});return l.READY="ready",l.STARTED="started",l.UPDATED="updated",l.FINISHED="finished",l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(222),i(8674),i(8680),i(1658),i(702),i(2665),i(511)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){class l extends t{constructor(e={}){super(),this._providers=e.providers||[new i,new n],this._providers.forEach(e=>{e.on("changed",e=>this._handleProviderSessionChanged(e.sessions))})}_handleProviderSessionChanged(e){const t=this._latest?this._latest.clone():new o;switch(e.forEach(e=>{this.latest?e.startTime>this.latest.startTime&&(this._latest=e):this._latest=e}),this.latest.state){case r.ABOUT_TO_START:this.latest.finishTime=-1,this.latest.resetClusterInfo();break;case r.CLOSED:if(this.latest.hasError()&&this.latest.getClusterInfo().hasError())break;this.latest.resetClusterInfo();break;case r.IDLE:case r.BUSY:this.latest.getClusterInfo().resetStage()}this.latest.shouldScheduleReminder(t.state)?this.emit("schedule-reminder",{delay:this.latest.computeAutoShutDownReminderInSecondsFromNow()}):this.latest.shouldCancelReminder(t.state)&&this.emit("cancel-reminder",{state:this.latest.state}),this.emit("changed",{session:this.latest,previousSession:t})}initialize(e={}){return Promise.all(this._providers.map(t=>t.initialize(e)))}get latest(){return this._latest||new o}canStart(){return[r.FAILED_TO_START,r.CLOSED].includes(this.latest.state)}canStop(){return this.latest.state===r.IDLE}extendSessionShutdownTimeout(){return new s("ParallelPoolExtend").execute({functionName:"parallel.internal.ui.PoolHelper.resetIdleTimeout",args:[this.latest.id]})}startSession(){a.runCode("parallel.internal.ui.PoolHelper.startPool"),this.latest.state=r.ABOUT_TO_START}shutdownSession(){return new s("ParallelPoolClose").execute({functionName:"parallel.internal.ui.PoolHelper.closePool",args:[this.latest.id]})}shutdownCloudCluster(e){if(!e)throw new Error("Cluster ID must be specified.");return new s("ParallelPoolKill").execute({functionName:"parallel.cluster.Cloud.hKillCluster",args:[e]})}showAnyErrors(){if(!this.latest.error)return;const e=this.latest.error.replace(/'/g,"''").replace(/\\/g,"\\\\").replace(/\n/g,"\\n");a.runCode(`error('${e}', '')`)}}let c=null;return{get:e=>(c||(c=new l(e)),c)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8681),i(8682),i(8683)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/pct/resources/parallel/web/nls/common",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(236),i(701),i(395),i(247)],o=i.dj.d(n,(function(e,t,i,n){"use strict";var o={normalizeProfileName:function(e,t){return e?!1===t?e.name||e:n.escapeHtml(e.name||e):""},getProfileString:function(n,r){var a=o.normalizeProfileName(n,r);return t.getInstance().isDefaultProfile(n)?e.substitute(i.DefaultFormat,[a]):a}};return o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(203),i(511)],o=i.dj.d(n,(function(e,t,i){"use strict";return t(null,{constructor:function(e){this.parent=e},executeCommand:function(t){if(!t)throw new Error('No arguments specified for "executeCommand".');if(!t.classifier)throw new Error('No classifier specified for "executeCommand".');if(!t.executionInfo)throw new Error('No executionInfo specified for "executeCommand".');return t.classifier=e.getUniqueId(t.classifier),new i(t.classifier,t.options).execute(t.executionInfo)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8703),i(8704),i(8705)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/pct/resources/parallel/web/nls/discover",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(231)],o=i.dj.d(n,(function(e,t,i){return e(null,{minSize:0,maxSize:1/0,layoutPriority:0,showTitle:!0,buildRendering:function(){i.add(this),this.inherited(arguments),this.domNode.setAttribute("widgetId",this.id)},startup:function(){if(!this._started){this.inherited(arguments);var e=i.getEnclosingWidget(this.domNode.parentNode);e&&e.isLayoutContainer&&this._resizeHandle.remove()}},destroyRecursive:function(){this.destroy()},destroy:function(){this.inherited(arguments),i.remove(this.id)},getChildren:function(){return[]},isLeftToRight:function(){return!this.isRTL},resize:function(e){e&&t.setMarginBox(this.domNode,e),this.inherited(arguments)},_set:function(e,t){this[e]=t},watch:function(){},getParent:function(){return i.getEnclosingWidget(this.domNode.parentNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(258),i(1664)],o=i.dj.d(n,(function(e,t,i){return e([i],{kind:"Text",editorClass:"mw-form/TextField",defaultValue:"",constructor:function(){this.editorParams={width:"100%",placeholder:this.nls.PropertyUseDefault}},_getNonDefaultValue:function(e){return e},_getNonDefaultValueForEditor:function(e){return e}})}),e,t),e.exports=o},function(e,t,i){e.exports={PARALLEL:{PROFILE:{CLOUD:"motw.parallel.profile.create.cloud",EXPORT:{SELECTED:"motw.parallel.profile.export.selected",ALL:"motw.parallel.profile.export.all"},IMPORT:"motw.parallel.profile.import",EDIT:"motw.parallel.profile.edit",DUPLICATE:"motw.parallel.profile.duplicate",DELETE:"motw.parallel.profile.delete",RENAME:"motw.parallel.profile.rename",SET_DEFAULT:"motw.parallel.profile.setDefault",DISCOVER:"motw.parallel.discover",CLOUD_CENTER:"motw.parallel.cloud.center",LICENSE_CENTER:"motw.parallel.manage.licenses",CLOUD_CONNECTIVITY:"motw.parallel.cloud.connectivity",VALIDATE:"motw.parallel.profile.validate",HELP:"motw.parallel.profile.help"}}}},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{PROPERTY_ITEM_TYPE:{SET:"property",EDITOR_GROUP:"editorgroup",GROUP:"group",SUB_GROUP:"subgroup"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(447)],o=i.dj.d(n,(function(e,t){var i=new t([255,255,255,1]),n=e("rendererseditors.utils._ColorUtils",[],{_getColorStringFromValue:function(e){return"auto"===e||"flat"===e||"none"===e||"interp"===e||"texturemap"===e?i.toCss(!0):e&&e.toCss?e.toCss(!0):new t(e).toCss(!0)},_getColorValues:function(e){var n=e;e&&e.value&&(n=e.value),n||(n=i);var o={value:i.toCss(!0),alpha:1,color:i},r=i;return"auto"===e||"flat"===e||"none"===e||"interp"===e||"texturemap"===e?o.value=e:(Array.isArray(n)?(Array.isArray(n[0])&&(n[0]=255,n[1]=255,n[2]=255,n[3]=1),r=new t(n)):r=n.toRgba&&n.toCss?n:new t(n),o.value=r.toCss(!0),o.alpha=r.a),o.color=r,o},_colorsEqual:function(e,i){var n=new t,o=new t;return!(!e&&i||e&&!i)&&("auto"===e||"flat"===e||"none"===e||"interp"===e||"texturemap"===e||"auto"===i||"flat"===i||"none"===i||"interp"===i||"texturemap"===i?e===i:(n=e&&e.toRgba&&e.toCss?e:new t(e),o=i&&i.toRgba&&i.toCss?i:new t(i),n.toCss(!0)===o.toCss(!0)))},_getJSColorValuesFromMATLABStringArray:function(e,t){var i=e;void 0===t&&(t=!0);var n=t?255:1;if(("string"==typeof e||e instanceof String)&&("["!==e.substr(0,1)&&(e="["+e+"]"),i=JSON.parse(e.replace(/, /g,",").replace(/ /g,",").replace(/\[/g,"[[").replace(/\]/g,"]]").replace(/;/g,"],["))),Array.isArray(i)){if(i.length>0&&!Array.isArray(i[0])){var o=[];o[0]=i,i=o}i=i.map((function(e){var t=e.map((function(e){return Math.round(e*n)}));return t.length>=4&&(t[3]=e[3]),t}))}return i},_getColorCommitValue:function(e){var i;if("auto"===e||"flat"===e||"none"===e||"interp"===e||"texturemap"===e)i=e;else{var n=new t(e);n.a=this._alpha,i=n.toCss(!0)}return i},_createColorGradientCss:function(e){var t="",i=this;if(e&&e.length){var n=this._getJSColorValuesFromMATLABStringArray(e).map((function(e){return i._getColorStringFromValue(e)})).join(",");t="background: -webkit-linear-gradient(left,"+n+"); /* For Safari 5.1 to 6.0 */\nbackground: -o-linear-gradient(right,"+n+"); /* For Opera 11.1 to 12.0 */\nbackground: -moz-linear-gradient(right,"+n+"); /* For Firefox 3.6 to 15 */\nbackground: linear-gradient(to right,"+n+"); /* Standard syntax */\n"}return t},_isNone:function(e){return"string"==typeof e&&"none"===e.toLowerCase()}});return n.WHITE=i,n.COLOR_AUTO="auto",n.COLOR_FLAT="flat",n.COLOR_NONE="none",n.COLOR_INTERP="interp",n.COLOR_TEXTUREMAP="texturemap",n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(211),i(223),i(206),i(235),i(367),i(1145),i(1674),i(428),i(238)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e("rendererseditors.editors.ComboBoxEditor",[s],{_comboBox:void 0,_isProtected:!1,_isOverrideMode:!1,_showUndefined:!0,_categories:[],_comboChangeListeners:void 0,_showDropDownArrow:!0,_doubleClickDuration:0,_clientValidation:!0,_oldState:null,setValue:function(e,t){var i=e;e&&e.hasOwnProperty("value")&&(i=e.value),this.inherited(arguments),this.domNode&&(this._comboBox||this._createComboBox(),this._value=""+i,this._comboBox.set("value",i),this._comboBox.set("displayedValue",i))},startup:function(){this._setReadOnly(!0)},_focus:function(){this._comboBox&&this._comboBox.focusNode&&this._comboBox.focusNode.focus&&u.curNode!==this._comboBox.focusNode&&u.focus(this._comboBox.focusNode)},setState:function(e){this.domNode&&JSON.stringify(this._oldState)!==JSON.stringify(e)&&(this._oldState=JSON.parse(JSON.stringify(e)),e&&(this._clientValidation=void 0===e.clientValidation||e.clientValidation,this._isProtected=void 0!==e.isProtected&&e.isProtected,this._showUndefined=void 0===e.showUndefined||e.showUndefined,this._categories=e.categories?e.categories:this._categories,this._showDropDownArrow=void 0!==e.showDropDownArrow?this._getPossibleBooleanFunctionValue(e.showDropDownArrow):this.isEditable(),this._createComboBox(),this._comboBox.textbox.setAttribute("data-tag",this.createDataTag("value")),this._setupDomClasses(e)),this.inherited(arguments))},_setupDomClasses:function(e){this.addCSSClasses("cellRenderer",this.domNode),this.isEditable()?this.removeCSSClasses("variableEditorNotEditable",this.domNode):this.addCSSClasses("variableEditorNotEditable",this.domNode)},getStore:function(){var e=this._categories,t=new d;if(e){for(var i=0;i<e.length;i+=1)t.put({name:e[i],id:e[i]});this._getPossibleBooleanFunctionValue(this._showUndefined,!1)&&t.put({name:"<undefined>",id:"<undefined>"})}return t},updateStore:function(e){var t=this.getStore();if(!(t.query({name:e}).length>0)){t.put({name:e,id:e});for(var i=t.query({}),n=[],o=0;o<i.length;o+=1)n[o]=i[o].name;this._updateCategories(n)}},_updateCategories:function(e){var i=this.getState(),n={isProtected:this._isProtected,showUndefined:this._showUndefined};i&&(n=t.clone(i)),n.categories=e,this.setState(n)},isInStore:function(e){return this.getStore().query({name:e}).length>0},_createComboBox:function(){var e=this._getPossibleBooleanFunctionValue(this._isProtected,!1);if(e?this._comboBox&&this._comboBox.isInstanceOf&&this._comboBox.isInstanceOf(c):this._comboBox&&this._comboBox.isInstanceOf&&this._comboBox.isInstanceOf(l))return this._comboBox.store=this.getStore(),this._comboBox.set("value",this._value),this._comboBox.set("displayedValue",this._value),void(this._showDropDownArrow?this.removeCSSClasses("noArrow",this._comboBox.domNode):this.addCSSClasses("noArrow",this._comboBox.domNode));var o="";this._comboBox&&this._comboBox.focusNode&&(o=this._comboBox.focusNode.getAttribute("style")),this._comboBox&&this._comboBox.destroyRecursive&&this._comboBox.destroyRecursive();var s=a.mergeObjects(this._allArgs,{class:"vecombobox",value:this._value,displayedValue:this._value,store:this.getStore(),autoComplete:!0,searchAttribute:"name",invalidMessage:"",missingMessage:"",readOnly:!0,commitOnBlur:null});e?(s.name="categories",this._clientValidation?this._comboBox=new c(s,"vecombobox"):this._comboBox=new l(s,"vecombobox")):this._comboBox=new l(s,"vecombobox"),this._comboBox.domNode.setAttribute("data-tag",this.createDataTag("comboboxeditor")),this.addCSSClasses(["variableEditorRenderers","cell","vecombobox"],this._comboBox.domNode),this._comboBox.focusNode.style=o;var d=t.hitch(this,"_handleKeyboardEvent");r(this._comboBox.domNode,"keypress",d),this._showDropDownArrow?this.removeCSSClasses("noArrow",this._comboBox.domNode):this.addCSSClasses("noArrow",this._comboBox.domNode),this._comboChangeListeners={},this._comboChangeListeners._onChangeListener=r.pausable(this._comboBox,"change",t.hitch(this,"_comboBoxChanged")),this._changeObjectListenersState(this._comboChangeListeners,"pause");var u=this,h=this._comboBox.openDropDown;this._comboBox.openDropDown=function(){h.apply(this),u.addCSSClasses("DropDownOpen"),u._isOverrideMode||u._selectAllText();var e=[];u._allArgs.cssSpecifier&&e.push(u._allArgs.cssSpecifier),e.push("variableEditorRenderers"),e.push("veComboBoxDropDown"),u.addCSSClasses(e,u._comboBox.dropDown.domNode);var n=i.get(u._comboBox.dropDown.domNode.parentNode,"overflow-y");u._comboBox.dropDown.domNode.parentNode&&"scroll"===n&&i.set(u._comboBox.dropDown.domNode.parentNode,"border","1px solid rgb(126, 171, 205)"),r(u._comboBox.dropDown,"close",t.hitch(this,(function(){u.removeCSSClasses("DropDownOpen")})))},this._comboBox.startup(),n.empty(this.domNode),this.domNode.appendChild(this._comboBox.domNode),this.own(this._comboBox)},_handleKeyboardEvent:function(e){if(this.isEditing()){"keypress"===e.type?this._handleKeyPress(e):"keydown"===e.type&&this._handleKeyDown(e);var i=t.mixin({editor:this},e);this.dispatchEvent(e.type,this.domNode,i),e.stopPropagation()}else this.inherited(arguments)},_handleKeyDown:function(e){var t=this._getKeyCode(e);e&&null!==t&&t===o.ESCAPE&&this.cancelEditing()},_handleKeyPress:function(e){var t=this._getKeyCode(e);e&&null!==t&&t===o.ENTER&&(this._clientValidation&&!this.isInStore(this._getUIValue())?this.cancelEditing():this.stopEditing())},_handleBlurEvent:function(e){e===this&&(this.isEditing()&&this._clientValidation&&!this.isInStore(this._getUIValue())&&this.cancelEditing(),this.inherited(arguments))},postCreate:function(){this._comboBox||this._createComboBox(),this._setReadOnly(!0),this.inherited(arguments)},stopEditing:function(){this._changeObjectListenersState(this._comboChangeListeners,"pause"),this._comboBox&&this._comboBox.closeDropDown(),this.inherited(arguments),this._showDropDownArrow?this.removeCSSClasses("noArrow",this._comboBox.domNode):this.addCSSClasses("noArrow",this._comboBox.domNode),this._setReadOnly(!0)},edit:function(){this.inherited(arguments),this.removeCSSClasses("noArrow",this._comboBox.domNode),this._setReadOnly(!1),this._comboBox.loadAndOpenDropDown(),this._comboBox.dropDown&&(this._comboChangeListeners._onDDChangeListener||(this._comboChangeListeners._onDDChangeListener=r.pausable(this._comboBox.dropDown,"change",t.hitch(this,"_comboBoxChanged"))),this._comboChangeListeners._onDDSelectListener||(this._comboChangeListeners._onDDSelectListener=r.pausable(this._comboBox.dropDown,"select",t.hitch(this,"_comboBoxChanged")))),this._changeObjectListenersState(this._comboChangeListeners,"resume")},_getDefaultState:function(){return{categories:[],showDropDownArrow:!0,showUndefined:!0,isProtected:!1}},_handleMouseUp:function(){this._comboBox.textbox.focus()},_handleMouseEvent:function(e){this._editOnSingleClick&&(e&&"mouseover"===e.type?this.removeCSSClasses("noArrow",this._comboBox.domNode):e&&"mouseout"===e.type&&(this._showDropDownArrow?this.removeCSSClasses("noArrow",this._comboBox.domNode):this.addCSSClasses("noArrow",this._comboBox.domNode))),this.inherited(arguments)},_comboBoxChanged:function(e){this.isEditing()&&(e&&e.textContent&&(e=e.textContent.trim()),this.isInStore(e)&&(this._setUIValue(e),this.updateStore(e),this.stopEditing()))},editOverride:function(e){this.isEditing()||(e&&this._comboBox&&this._comboBox.textbox&&this._comboBox.textbox?(this._isOverrideMode=!0,this._comboBox.textbox.value=e,this.edit()):(this.edit(),this._selectAllText()))},cancelEditing:function(){this.isEditing()&&this._setUIValue(this._originalValue),this.inherited(arguments)},_selectAllText:function(){this._comboBox&&this._comboBox.textbox&&this._comboBox.textbox.select&&this._comboBox.textbox.select()},_getUIValue:function(){return this._comboBox.textbox.value},_setUIValue:function(e){return this._comboBox.set("value",e)},setEditable:function(e){this.inherited(arguments),this._comboBox&&(this.isEditable()?this.removeCSSClasses(this._notEditableCSSClass,this._comboBox.textbox):this.addCSSClasses(this._notEditableCSSClass,this._comboBox.textbox))},_setReadOnly:function(e){this._comboBox&&(!0===e?this._comboBox.set("readOnly",!0):this._comboBox.set("readOnly",!1))},getStyleNode:function(e){return"backgroundColor"===e?this.domNode:this._comboBox.focusNode},hasValueChanged:function(e){var t=this._originalValue!==e&&this._editValue!==e;return this._isProtected&&this._clientValidation?t&&this.isInStore(e):t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8903)],o=i.dj.d(n,(function(e){return{getItemModuleByType:function(t){return e.module[t]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1024)],o=i.dj.d(n,(function(e,t){var i={};return{startup:function(){t.subscribe("/slonline/featureControl",(function(e){var t=e.data;t.name&&(i[t.name]=!!t.value)}))},feature:function(e){return i[e]},syncUp:function(e){e&&(e=Array.isArray(e)?e:[e]).forEach((function(e){e.name&&(i[e.name]=e.value)}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{HOME_TAB_OPEN_VARIABLE:"motwToolstrip.matlabTab.variable.openVariable",HOME_TAB_OPEN_VARIABLE_POPUP:"motwToolstrip.matlabTab.variable.openVariable.list",NEW_FROM_SELECTION:"VariableTabGroup.newFromSelection",NEW_FROM_SELECTION_POPUP:"VariableTabGroup.newFromSelectionPopup",OPEN:"VariableEditorTabGroup.Open",OPEN_POPUP:"VariableTabGroup.openPopup",SAVE:"VariableEditorTabGroup.save",PRINT:"VariableEditorTabGroup.print",PRINT_ITEM:"VariableEditorTabGroup.printItem",PRINT_SELECTION_ITEM:"VariableEditorTabGroup.printSelectionItem",PRINT_POPUP:"VariableTabGroup.printPopup",INSERT:"VariableEditorTabGroup.Insert",INSERT_FIELD:"VariableEditorTabGroup.insertField",INSERT_POPUP:"VariableEditorTabGroup.insertPopup",INSERT_COLUMN:"VariableEditorTabGroup.insertColumn",DELETE_COLUMN:"VariableEditorTabGroup.deleteColumn",DELETE:"VariableEditorTabGroup.delete",DELETE_FIELD:"VariableEditorTabGroup.deleteField",DELETE_POPUP:"VariableEditorTabGroup.deletePopup",TRANSPOSE:"VariableEditorTabGroup.transpose",SORT:"VariableEditorTabGroup.sort",BRUSHING:"VariableEditorTabGroup.brush",SORT_POPUP:"VariableEditorTabGroup.sortPopup",GO_UP:"VariableEditorTabGroup.goUp",ROW_LABEL:"VariableEditorTabGroup.rows",COLUMN_LABEL:"VariableEditorTabGroup.columns",ROW_TEXT_FIELD:"VariableEditorTabGroup.rowText",COLUMN_TEXT_FIELD:"VariableEditorTabGroup.columnText",SHOW_COMMAND:"VariableEditorTabGroup.showCommand",DISPLAY_FORMAT_LABEL:"VariableEditorTabGroup.numberDisplayFormatLabel",DISPLAY_FORMAT_COMBOBOX:"VariableEditorTabGroup.numberDisplayFormatCombobox"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(513),i(2728)],o=i.dj.d(n,(function(e,t){"use strict";return function(i,n,o){n||(n=i);var r=function(t){if("undefined"!=typeof document){var i=document.location.search;return i.search&&(i=i.slice(1).replace(/\+/g," ")),e.queryToObject(i)[t]}}(i);return void 0===r&&(r=function(e){var i=window[t.GLOBAL_CLIENT_CONFIG];if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e]}(n)),void 0===r&&(r=void 0!==o?o:""),r}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(224),i(204),i(228),i(210),i(211),i(206),i(225),i(236),i(215),i(231),i(560),i(304),i(9094),i(9095)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){var g={toIconClass:function(e){return"mlcicon-"+e},createEmbeddedContentPane:function(e){return new p(i.mixin({baseClass:"mlc-embeddedContentContainer"},e))},isWithinSelectedDocument:function(e,t){var i;if(!e.isInstanceOf(u))return!1;if(!(i="string"==typeof t?d.byId(t):t.isInstanceOf&&t.isInstanceOf(c)?t:d.byNode(t)))return!1;for(;i&&i!==e._documentContainer;){var n=e._documentContainer._getProperties(i);if(n)return n.get(h.IS_SELECTED);i=i.getParent()}return!1}};return g.addEditorOverlayMessage=function e(n,a){var c,d,u,h,p;return a=i.mixin({baseClass:"mlcMessageOverlay",title:"",content:"",closeText:"",onClose:null,animateClose:!0},a),e._activeCloses&&e._activeCloses.length&&t.some(e._activeCloses,(function(e){if(e._editorId===n.id)return e(),!0})),d=r.toDom(l.substitute(f,a)).children[0],a.closeText&&(u=s("."+a.baseClass+"-closeLink",d).on("click",(function(){if(h&&null==p)if(h.remove(),a.animateClose){var t=function(){-1!==e.activeCloses.indexOf(t)&&(e.activeCloses.splice(e.activeCloses.indexOf(t),1),p=null,o.remove(n.editorNode,"overlayActivated"),a.animateClose&&a.onClose&&a.onClose())};p=window.setTimeout(t,1e3),t._editorId=n.id,(e.activeCloses||(e.activeCloses=[])).push(t)}else o.remove(n.editorNode,"overlayActivated"),a.onClose&&a.onClose()}))),o.add(n.editorNode,a.baseClass+"-background"),c=n.addOverlayLayer(d),o.add(n.editorNode,"overlayActivated"),o.add(d,"overlayActivated"),h={remove:function(){h&&(null!=p&&window.clearTimeout(p),u&&u.remove(),c.remove(),o.replace(n.editorNode,"overlayDeactivated","overlayActivated"),h=null)}}},g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){return function(t,i,n,o){n=n||Error;var r=function(e){if(n===Error){Error.captureStackTrace&&Error.captureStackTrace(this,r);var t,o=Error.call(this,e);for(t in o)o.hasOwnProperty(t)&&(this[t]=o[t]);this.message=e,this.stack=o.stack}else n.apply(this,arguments);i&&i.apply(this,arguments)};return r.prototype=e.delegate(n.prototype,o),r.prototype.name=t,r.prototype.constructor=r,r}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1033),i(2751),i(1032),i(224),i(242),i.dj.h("dom-addeventlistener?:206")],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=null,s=[];function l(){for(var e,i=+new Date,n=0;n<s.length&&(e=s[n]);n++){var o=e.response,r=o.options;e.isCanceled&&e.isCanceled()||e.isValid&&!e.isValid(o)?(s.splice(n--,1),c._onAction&&c._onAction()):e.isReady&&e.isReady(o)?(s.splice(n--,1),e.handleResponse(o),c._onAction&&c._onAction()):e.startTime&&e.startTime+(r.timeout||0)<i&&(s.splice(n--,1),e.cancel(new t("Timeout exceeded",o)),c._onAction&&c._onAction())}c._onInFlight&&c._onInFlight(e),s.length||(clearInterval(a),a=null)}function c(e){e.response.options.timeout&&(e.startTime=+new Date),e.isFulfilled()||(s.push(e),a||(a=setInterval(l,50)),e.response.options.sync&&l())}return c.cancelAll=function(){try{n.forEach(s,(function(e){try{e.cancel(new i("All requests canceled."))}catch(e){}}))}catch(e){}},o&&r&&o.doc.attachEvent&&r(o.global,"unload",(function(){c.cancelAll()})),c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1265)],o=i.dj.d(n,(function(e){return e("RequestError",(function(e,t){this.response=t}))}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1697)],o=i.dj.d(n,(function(e){const t={objectValues:function(e){let t=[];for(let i in e)e.hasOwnProperty(i)&&t.push(e[i]);return t},makeReadOnlyProperty:function(e,t,i){Object.defineProperty(e,t,{value:i,writable:!1})},execCallbacks:function(e,i){const n=t.objectValues(e);for(let e in n)n[e](i)},currentTimeString:function(){const e=new Date;return e.toLocaleTimeString("en-US",{hour12:!1,hour:"numeric",minute:"numeric",second:"numeric"})+"."+e.getTime()%1e3},printToConsole:function(t,i,n){n===e.PRODUCTION&&"error"!==t||console[t].apply(console,i)}};return t}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(302),i(203),i(306),i(204),i(214),i(211),i(209),i(2760),i(2761)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=t([],{IFRAME_TIMEOUT:2e4,LATEST_VERSION:"1.6",REMOTE_PROXY:"/remote/proxy/",constructor:function(e){this.iframeId=e||"remoteProducer",this._version=null,this._messageId=0,this._loaded=!1,this._pendingQueue=[],this._transactions={},this._uploadTargetCallbacks={},this._checkUrl=null,this._loadTimeoutHandle=null,this._checkUrlTimeout=null,this._errorRate=0},setRemotePageHost:function(e,t,i,n){var o=this;e=this._combineUriPaths(e||"","/"),t=t||"",n=n||"",this.computeToken=i,e===this._host&&t===this._key&&n===this._proxyUrl||(this._loaded=!1,this._errorLoading=!1,this._host=e,this._key=t,this._proxyUrl=n,window.MW_USE_IFRAME_OUT_OF_MODEL?(this._version=null,this._setVersion("use_latest")):(this._version="use_latest",this._iframeProxyReplace=new l({parent:{postMessage:function(e){o._handleMessage({data:e})}}})))},_setVersion:function(e){if(e&&"use_latest"!==e||(e=this.LATEST_VERSION),!this._loaded&&e!==this._version){this._version=e;var t=this._calculateUrls(this._host,this._key,e,this._proxyUrl);this._createIframe(t)}},_calculateUrls:function(e,t,i,n){var o=this.REMOTE_PROXY+i+"/iframeProxyRelease.html",r=this.REMOTE_PROXY+i+"/CheckJsFile.js";return n&&(o=n),o=this._combineUriPaths(e,o).split("?")[0],o+=t?"?routingkey="+t:"",r=this._combineUriPaths(e,r),{fastFailUrl:r+=t?"?routingkey="+t:"?time="+(new Date).getTime(),iFrameUrl:o}},_createIframe:function(t){var i=t.fastFailUrl,n=this;this._url=t.iFrameUrl,this.remoteIframe&&r.destroy(this.remoteIframe),this.remoteIframe=r.create("iframe",{id:this.iframeId,src:this._url,width:0,height:0,style:"visibility: hidden; display: none;"}),document.body.appendChild(this.remoteIframe),this._checkUrl=null,this._checkUrlTimeout=setTimeout((function(){n._checkUrl=new s(i).then((function(){n._checkUrl=null}),(function(e){n._checkUrl=null,"cancel"!==e.dojoType&&"CancelError"!==e.name&&n._handleLoadTimeoutHitch()}))}),.15*this.IFRAME_TIMEOUT),this._loadTimeoutHandle=setTimeout((function(){n._handleLoadTimeoutHitch()}),this.IFRAME_TIMEOUT),this._messageConnection||(this._messageConnection=e.connect(window,"message",this,this._handleMessage))},_handleLoadTimeoutHitch:function(){if(this._cleanupFailureChecks(),!this._loaded)if("1.0"===this._version)this._handleLoadTimeout();else{var e=(parseFloat(this._version)-.1).toFixed(1).toString();a.info("Unable to load proxy version "+this._version+", trying "+e+"."),this._setVersion(e)}},createUploadIframeTarget:function(e,t,i){this._uploadTargetCallbacks[e]=n.hitch(i||this,t),this._postMessage("createUploadIframe;"+e)},cancelUpload:function(e){this._postMessage("cancelUpload;"+e)},getUploadIframeProxyUrlPath:function(){return this.REMOTE_PROXY+this._version+"/uploadIframeProxy.html"},sendMessage:function(e,t,n){var o,r,s,l=this;return this.computeToken&&((n=n||{}).headers=n.headers||{},n.headers.computeToken=this.computeToken),r="sendMessage;"+(o=this._getNewMessageId())+";"+t+";",r+=n?JSON.stringify(n,null,0):"{}",r+=";"+e,s={deferred:new i((function(){"1.0"===l._version?a.warn("Cancelling is not supported by the 1.0 remote proxy."):l._postMessage("abort;"+o)})),id:o},this._errorLoading?s.deferred.reject("The iFrame did not load properly: "+this._url):(this._transactions[o]=s,this._postMessage(r)),s.deferred},setLatency:function(e){this._latency=e},setErrorRate:function(e){this._errorRate=e},_postMessage:function(e){this._loaded?this._postMessageNow(e):this._pendingQueue.push(e)},_handleMessage:function(e){var t,i,n,o,r,a,s,l,c,d=!0;if(window.MW_USE_IFRAME_OUT_OF_MODEL&&(d=e.source===this.remoteIframe.contentWindow),d){if(i=e.data.indexOf(";"),!(n=e.data.substring(0,i)))throw new Error("Client unable to parse message, no action specified: "+e.data);switch(n){case"ready":this._cleanupFailureChecks(),this._loaded=!0,this._flushPending();break;case"sendMessageResponse":this._sendMessageResponse(e,i);break;case"uploadIframeMessage":t=e.data.indexOf(";",i+1),o=e.data.substring(i+1,t),r=e.data.substring(t+1,e.data.length),this._uploadTargetCallbacks[o](r);break;case"websocketOpened":this.onWebsocketOpen();break;case"websocketClosed":a=e.data.substring(i+1,e.data.length),s=JSON.parse(a),this.onWebsocketClose(s);break;case"websocketMsg":l=e.data.substring(i+1,e.data.length),c=JSON.parse(l),this.onWebsocketMsg(c);break;case"websocketError":this.onWebsocketError();break;default:throw new Error("Unknown action: "+n+", data: "+e.data)}}},_sendMessageResponse:function(e,t){var i,n,o=e.data.indexOf(";",t+1),r=e.data.indexOf(";",o+1),a=e.data.substring(t+1,o),s=e.data.substring(o+1,r),l=e.data.substring(r+1,e.data.length);if(!a||!s)throw new Error("Invalid message from remote iframe: "+e.data);if(!(i=this._transactions[a]))throw new Error("Unknown transaction id: "+a+", from remote iframe: "+e.data);if(delete this._transactions[a],!i.deferred.isCanceled()){if("success"===s){try{n=l&&JSON.parse(l)}catch(e){n=l}return n=""===n?{}:n,void i.deferred.resolve(n)}this.onError(l),i.deferred.reject(l)}},_cleanupFailureChecks:function(){this._checkUrlTimeout&&clearTimeout(this._checkUrlTimeout),this._loadTimeoutHandle&&clearTimeout(this._loadTimeoutHandle),this._checkUrl&&!this._checkUrl.isFulfilled()&&this._checkUrl.cancel("Timeout Occurred or iFrame Was Loaded before CheckUrl",!1),this._checkUrlTimeout=null,this._loadTimeoutHandle=null,this._checkUrl=null},_handleLoadTimeout:function(){var e,t,i;if(!this._loaded){for(t in e={code:"IframeLoadTimeout",description:"Iframe proxy loading failed due to an HTTP error",message:""},i=this._transactions,this._transactions={},this._pendingQueue=[],i)i.hasOwnProperty(t)&&i[t].deferred.reject("Timeout while loading the iFrame "+this._url+" at "+new Date);this._errorLoading=!0,this.onError(e)}},_postMessageNow:function(e){var t,i,n=this;function o(){if(n._errorRate>0&&Math.random()<n._errorRate&&0===e.indexOf("sendMessage;")){if(t=e.split(";",2)[1],i=n._transactions[t]){delete n._transactions[t],a.error("Generating simulated error. Request was: ",e);var o="403 Forbidden;403";n.onError(o),i.deferred.reject(o)}}else window.MW_USE_IFRAME_OUT_OF_MODEL?n.remoteIframe.contentWindow.postMessage(e,n._url):n._iframeProxyReplace.handleMessage({data:e})}this._latency?setTimeout(o,this._latency):o()},_flushPending:function(){this._pendingQueue.forEach(this._postMessageNow,this),this._pendingQueue=[]},_getNewMessageId:function(){return this._messageId+=1,this._messageId.toString()},onError:function(){},onWebsocketOpen:function(){},onWebsocketMsg:function(){},onWebsocketClose:function(){},onWebsocketError:function(){},_combineUriPaths:function(){var e=Array.prototype.slice.call(arguments),t=e.reduce((function(e,t){return 0===e.length?t:(t.length>0&&("/"===t[0]&&e.lastIndexOf("/")===e.length-1?t=t.substring(1):"/"!==t[0]&&e.lastIndexOf("/")!==e.length-1&&(e+="/")),e+t)}));return t}});return c.WebSocket=t([],{constructor:function(e){var t=this;this.proxyClient=c.WebSocket.proxyClient,this.proxyClient.computeToken&&e.indexOf("?")>=0&&(e=e+"&computeToken="+this.proxyClient.computeToken),this.proxyClient._postMessage("connectWebsocket;"+e),o.after(this.proxyClient,"onWebsocketOpen",(function(){t.onopen.apply(t,arguments)}),!0),o.after(this.proxyClient,"onWebsocketMsg",(function(){t.onmessage.apply(t,arguments)}),!0),o.after(this.proxyClient,"onWebsocketClose",(function(){t.onclose.apply(t,arguments)}),!0),o.after(this.proxyClient,"onWebsocketError",(function(){t.onerror.apply(t,arguments)}),!0)},onopen:function(){},onmessage:function(){},onclose:function(){},onerror:function(){},send:function(e){this.proxyClient._postMessage("websocketSend;"+e)},close:function(){this.proxyClient._postMessage("closeWebsocket;")}}),c}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{Eval:["CurrentFolder","ListFolder"],"Eval:Ping":[],"Eval:RunFile":["UpdateFile","CurrentFolder","ListFolder"],"Eval:MlsPublishPre":["UpdateFile"],"FEval:liveEvalInstrumentCode":[],Interrupt:[],"FEval:GetFigures":["CurrentFolder","ListFolder"],"FEval:CloseFigure":["FEval:GetFigures"],"FEval:SelectFigure":["FEval:GetFigures"],"FEval:ResetAxes":["FEval:GetFigures"],"FEval:ResizeFigure":["FEval:GetFigures"],"FEval:AxesInteraction2D":["FEval:GetFigures"],"FEval:AxesInteraction3D":["FEval:GetFigures"],CurrentUser:["ServiceRegistry"],RouterLogin:["ServiceRegistry"],CurrentFolder:["ListFolder"],MoveFile:["CurrentFolder"],Variable:[],CloseFile:["SaveSession"],UpdateFile:["SaveSession"],SaveSession:["UpdateFile"],SaveSessionState:["UpdateFile"],Logout:["CloseFile"],UpdateShare:["ListFolder"],AcquireMatlab:["ServiceRegistry"]}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(306),i(204),i(540),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(e){e=e||{},this.requestMessages=e.requestMessages||{},this.responseMessages=e.responseMessages||{},this.context=e.context,this.computeToken=e.computeToken,this.uuidClassifierMap=e.uuidClassifierMap||{},this.endPointName=e.endPointName||null,this.allowedMessages=e.allowedMessages||[],this.ignoreMessageTypes=e.ignoreMessageTypes||[],this.sendMessage=e.sendMessage},addRequestMessage:function(e,t,o){if(t){var r=n.isEndpointMessageContainerBased(this.endPointName);this.requestMessages[e]||(this.requestMessages[e]=[]),i.isArray(t)?t.forEach((function(t){this.addRequestMessage(e,t,o)}),this):r?(t.uuid=t.uuid||this._generateUuid(),o&&(this.uuidClassifierMap[t.uuid]=o),this.requestMessages[e].push(t)):this.requestMessages[e]=t,this.requestMessages=this._filterMessages(this.requestMessages)}},_filterMessages:function(e){var t={};return this.getRequestMessageTypes().forEach((function(i){(0===this.allowedMessages.length||this.allowedMessages.indexOf(i)>=0)&&(t[i]=e[i])}),this),t},getResponseMessageTypes:function(){var e,t=[];for(e in this.responseMessages)this.responseMessages.hasOwnProperty(e)&&t.push(e);return t},getRequestMessageTypes:function(){var e,t=[];for(e in this.requestMessages)this.requestMessages.hasOwnProperty(e)&&t.push(e);return t},getMessageClassifier:function(e){return e&&e.uuid&&this.uuidClassifierMap.hasOwnProperty(e.uuid)?this.uuidClassifierMap[e.uuid]:""},send:function(){this._removeEmptyMessages(),this._isEmpty(this.requestMessages)?(this.deferred=new t,this.deferred.callback()):(this.startTime=(new Date).getTime(),this.deferred=this._doSend(this._getRequest(this.requestMessages)),this.deferred.addCallback(this,this._processResponse),this.deferred.addErrback(this,this._processFault))},addIgnoreMessageType:function(e,t){var i;if(this.getRequestMessageTypes().indexOf(e)>-1)if(t)for(i in this.uuidClassifierMap)this.uuidClassifierMap.hasOwnProperty(i)&&t&&this.uuidClassifierMap[i]===t&&this.ignoreMessageTypes.push(e+":"+t);else this.ignoreMessageTypes.push(e)},_removeEmptyMessages:function(){var e;if(!this._isEmpty(this.requestMessages))for(e in this.requestMessages)this.requestMessages.hasOwnProperty(e)&&i.isArray(this.requestMessages[e])&&0===o.getArrayLength(this.requestMessages[e])&&delete this.requestMessages[e]},_isEmpty:function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0},_generateUuid:function(){return o.generateUuid()}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(420),i(209)],o=i.dj.d(n,(function(e,t){var i={deprecated:function(i){var n,o;(!!e.isDebug||!!window.showDeprecationsAsErrors)&&this._isConfigValid(i)&&(o=window.showDeprecationsAsErrors||i.deprecationLevel===this.ERROR?this.ERROR:this.WARN,n="DEPRECATED: ",i.deprecated&&(n+=i.deprecated.module,i.deprecated.method&&(n+="."+i.deprecated.method+"()"),n+="."),i.replacement&&(n+=" Use "+i.replacement.module,i.replacement.method&&(n+="."+i.replacement.method+"()"),n+=" instead."),i.removalVersion&&(n+=" Will be removed in version: "+i.removalVersion+"."),i.geckNumber&&(n+=" Please use g"+i.geckNumber+" to track latest information regarding this deprecation"),i.additionalInformation&&(n+=" "+i.additionalInformation),t[o](n))},_isConfigValid:function(e){var i=!!e.deprecated&&"object"===r(e.deprecated)&&e.deprecated.hasOwnProperty("module");return e.replacement&&(i=i&&"object"===r(e.replacement)&&e.replacement.hasOwnProperty("module")),e.geckNumber&&(i=i&&"number"==typeof e.geckNumber),i||t.error("Supplied deprecationConfig properties are not valid. Please refer to http://inside.mathworks.com/wiki/Web_Widgets_Deprecation_API for right API"),i}};return Object.defineProperties(i,{WARN:{value:"warn",enumerable:!0},ERROR:{value:"error",enumerable:!0}}),i}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(540),i(765),i(306)],o=i.dj.d(n,(function(e,t,i){return{sendPayload:function(n,o,r){var a=e.getEndPointAllowsDirectXhr(o),s=new i;return a.then((function(i){(i.status===e.DirectXhrConstants.ENABLED?function(i,n,o){var r=o&&o.headers?o.headers:null;return t.post({url:e.getRemoteUrlForEndPoint(n),contentType:"application/json",handleAs:"json",headers:r,postData:i})}(n,o,r):function(t,i,n){return e.getIframeProxyClientForEndPoint(i).sendMessage(t,e.getRemoteUrlForEndPoint(i),n)}(n,o,r)).then((function(e){s.resolve(e)}))})),s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i(420),i(210),i(213),i(221),i(605),i(242)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return o.add("highcontrast",(function(){var i=a.doc.createElement("div");try{i.style.cssText='border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;background-image: url("'+(t.blankGif||e.toUrl("./resources/blank.gif"))+'");',a.body().appendChild(i);var r=n.getComputedStyle(i),s=r.backgroundImage;return r.borderTopColor==r.borderRightColor||s&&("none"==s||"url(invalid-url:)"==s)}catch(e){return console.warn("hccss: exception detecting high-contrast mode, document is likely hidden: "+e.toString()),!1}finally{o("ie")<=8?i.outerHTML="":a.body().removeChild(i)}})),r((function(){o("highcontrast")&&i.add(a.body(),"dj_a11y")})),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(224)],o=i.dj.d(n,(function(e,t){var i={};return e.setObject("dojo.date.stamp",i),i.fromISOString=function(e,n){i._isoRegExp||(i._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var o=i._isoRegExp.exec(e),r=null;if(o){o.shift(),o[1]&&o[1]--,o[6]&&(o[6]*=1e3),n&&(n=new Date(n),t.forEach(t.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],(function(e){return n["get"+e]()})),(function(e,t){o[t]=o[t]||e}))),r=new Date(o[0]||1970,o[1]||0,o[2]||1,o[3]||0,o[4]||0,o[5]||0,o[6]||0),o[0]<100&&r.setFullYear(o[0]||1970);var a=0,s=o[7]&&o[7].charAt(0);"Z"!=s&&(a=60*(o[8]||0)+(Number(o[9])||0),"-"!=s&&(a*=-1)),s&&(a-=r.getTimezoneOffset()),a&&r.setTime(r.getTime()+6e4*a)}return r},i.toISOString=function(e,t){var i=function(e){return e<10?"0"+e:e},n=[],o=(t=t||{}).zulu?"getUTC":"get",r="";if("time"!=t.selector){var a=e[o+"FullYear"]();r=["0000".substr((a+"").length)+a,i(e[o+"Month"]()+1),i(e[o+"Date"]())].join("-")}if(n.push(r),"date"!=t.selector){var s=[i(e[o+"Hours"]()),i(e[o+"Minutes"]()),i(e[o+"Seconds"]())].join(":"),l=e[o+"Milliseconds"]();if(t.milliseconds&&(s+="."+(l<100?"0":"")+i(l)),t.zulu)s+="Z";else if("time"!=t.selector){var c=e.getTimezoneOffset(),d=Math.abs(c);s+=(c>0?"-":"+")+i(Math.floor(d/60))+":"+i(d%60)}n.push(s)}return n.join("T")},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(217),i(213),i(240),i(242),i(541),i(31)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){function s(n,a,s,l){var c=r.getEffectiveBox(n.ownerDocument);n.parentNode&&"body"==String(n.parentNode.tagName).toLowerCase()||o.body(n.ownerDocument).appendChild(n);var d=null;e.some(a,(function(e){var i=e.corner,o=e.pos,r=0,a={w:{L:c.l+c.w-o.x,R:o.x-c.l,M:c.w}[i.charAt(1)],h:{T:c.t+c.h-o.y,B:o.y-c.t,M:c.h}[i.charAt(0)]},u=n.style;if(u.left=u.right="auto",s){var h=s(n,e.aroundCorner,i,a,l);r=void 0===h?0:h}var p=n.style,f=p.display,g=p.visibility;"none"==p.display&&(p.visibility="hidden",p.display="");var m=t.position(n);p.display=f,p.visibility=g;var _={L:o.x,R:o.x-m.w,M:Math.max(c.l,Math.min(c.l+c.w,o.x+(m.w>>1))-m.w)}[i.charAt(1)],v={T:o.y,B:o.y-m.h,M:Math.max(c.t,Math.min(c.t+c.h,o.y+(m.h>>1))-m.h)}[i.charAt(0)],b=Math.max(c.l,_),y=Math.max(c.t,v),C=Math.min(c.l+c.w,_+m.w)-b,T=Math.min(c.t+c.h,v+m.h)-y;return r+=m.w-C+(m.h-T),(null==d||r<d.overflow)&&(d={corner:i,aroundCorner:e.aroundCorner,x:b,y:y,w:C,h:T,overflow:r,spaceAvailable:a}),!r})),d.overflow&&s&&s(n,d.aroundCorner,d.corner,d.spaceAvailable,l);var u=d.y,h=d.x,p=o.body(n.ownerDocument);/relative|absolute/.test(i.get(p,"position"))&&(u-=i.get(p,"marginTop"),h-=i.get(p,"marginLeft"));var f=n.style;return f.top=u+"px",f.left=h+"px",f.right="auto",d}var l={TL:"BR",TR:"BL",BL:"TR",BR:"TL"},c={at:function(t,i,n,o,r){return s(t,e.map(n,(function(e){var t={corner:e,aroundCorner:l[e],pos:{x:i.x,y:i.y}};return o&&(t.pos.x+="L"==e.charAt(1)?o.x:-o.x,t.pos.y+="T"==e.charAt(0)?o.y:-o.y),t})),r)},around:function(o,r,a,l,c){var d;if("string"==typeof r||"offsetWidth"in r||"ownerSVGElement"in r){if(d=t.position(r,!0),/^(above|below)/.test(a[0])){var u=t.getBorderExtents(r),h=r.firstChild?t.getBorderExtents(r.firstChild):{t:0,l:0,b:0,r:0},p=t.getBorderExtents(o),f=o.firstChild?t.getBorderExtents(o.firstChild):{t:0,l:0,b:0,r:0};d.y+=Math.min(u.t+h.t,p.t+f.t),d.h-=Math.min(u.t+h.t,p.t+f.t)+Math.min(u.b+h.b,p.b+f.b)}}else d=r;if(r.parentNode)for(var g="absolute"==i.getComputedStyle(r).position,m=r.parentNode;m&&1==m.nodeType&&"BODY"!=m.nodeName;){var _=t.position(m,!0),v=i.getComputedStyle(m);if(/relative|absolute/.test(v.position)&&(g=!1),!g&&/hidden|auto|scroll/.test(v.overflow)){var b=Math.min(d.y+d.h,_.y+_.h),y=Math.min(d.x+d.w,_.x+_.w);d.x=Math.max(d.x,_.x),d.y=Math.max(d.y,_.y),d.h=b-d.y,d.w=y-d.x}"absolute"==v.position&&(g=!0),m=m.parentNode}var C=d.x,T=d.y,E="w"in d?d.w:d.w=d.width,S="h"in d?d.h:(n.deprecated("place.around: dijit/place.__Rectangle: { x:"+C+", y:"+T+", height:"+d.height+", width:"+E+" } has been deprecated. Please use { x:"+C+", y:"+T+", h:"+d.height+", w:"+E+" }","","2.0"),d.h=d.height),w=[];function I(e,t){w.push({aroundCorner:e,corner:t,pos:{x:{L:C,R:C+E,M:C+(E>>1)}[e.charAt(1)],y:{T:T,B:T+S,M:T+(S>>1)}[e.charAt(0)]}})}e.forEach(a,(function(e){var t=l;switch(e){case"above-centered":I("TM","BM");break;case"below-centered":I("BM","TM");break;case"after-centered":t=!t;case"before-centered":I(t?"ML":"MR",t?"MR":"ML");break;case"after":t=!t;case"before":I(t?"TL":"TR",t?"TR":"TL"),I(t?"BL":"BR",t?"BR":"BL");break;case"below-alt":t=!t;case"below":I(t?"BL":"BR",t?"TL":"TR"),I(t?"BR":"BL",t?"TR":"TL");break;case"above-alt":t=!t;case"above":I(t?"TL":"TR",t?"BL":"BR"),I(t?"TR":"TL",t?"BR":"BL");break;default:I(e.aroundCorner,e.corner)}}));var A=s(o,w,c,{w:E,h:S});return A.aroundNodePos=d,A}};return a.place=c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2825)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){e.stateMachine=this,this.state=new t(e)},start:function(){this.state.enter()},stop:function(){this.state.exit()},_changeState:function(e,t){this.state.enter(e,t)},onEnterState:function(e){},onExitState:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=function(){this._state=0,this._callbacks=[],this._errbacks=[]};return e.prototype.then=function(e,t){return 1===this._state&&e?e():2===this._state&&t?t():(e&&this._callbacks.push(e),t&&this._errbacks.push(t)),this},e.prototype.resolve=function(){if(0===this._state){for(this._state=1;this._callbacks.length;)this._callbacks.pop()();this._callbacks=[],this._errbacks=[]}},e.prototype.reject=function(){if(0===this._state){for(this._state=2;this._errbacks.length;)this._errbacks.pop()();this._callbacks=[],this._errbacks=[]}},e.prototype.cancel=function(){0===this._state&&(this._state=3,this._callbacks=[],this._errbacks=[])},e.prototype.isCanceled=function(){return 3===this._state},e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{start:function(e){(e=e||this.manager).setSyncEnabled(!0)},stop:function(e){(e=e||this.manager).setSyncEnabled(!1)},addManagerListeners:function(e){(e=e||this.manager).addEventListener("rootSet",this.rootSetObserver,this),e.addEventListener("rootUnset",this.rootUnsetObserver,this),e.addEventListener("childMoved",this.childMovedObserver,this)},removeManagerListeners:function(e){(e=e||this.manager).removeEventListener("rootSet",this.rootSetObserver,this),e.removeEventListener("rootUnset",this.rootUnsetObserver,this),e.removeEventListener("childMoved",this.childMovedObserver,this)},addNodeListeners:function(e){e.addEventListener("childAdded",this.childAddedObserver,this),e.addEventListener("childDestroyed",this.childDestroyedObserver,this),e.addEventListener("propertySet",this.propertySetObserver,this),e.addEventListener("peerEvent",this.peerEventObserver,this)},removeNodeListeners:function(e){e.removeEventListener("childAdded",this.childAddedObserver,this),e.removeEventListener("childDestroyed",this.childDestroyedObserver,this),e.removeEventListener("propertySet",this.propertySetObserver,this),e.removeEventListener("peerEvent",this.peerEventObserver,this)},rootSetObserver:function(e){this.addNodeListeners(e.target)},rootUnsetObserver:function(e){this.removeNodeListeners(e.target)},childMovedObserver:function(e){this.onChildMove(e)},childAddedObserver:function(e){this.addNodeListeners(e.data.child),this.onChildAdd(e)},childDestroyedObserver:function(e){this.removeNodeListeners(e.data.child),this.onChildDestroy(e)},propertySetObserver:function(e){this.onPropertySet(e)},peerEventObserver:function(e){this.onPeerEvent(e)},onPeerEvent:function(e){},onChildAdd:function(e){},onChildDestroy:function(e){},onPropertySet:function(e){},onChildMove:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(343)],o=i.dj.d(n,(function(e,t){var i=["top","middle","bottom"],n={};Object.keys(i).forEach((function(e){var t;n[i[e]]="mwVerticalAlignment"+((t=i[e]).charAt(0).toUpperCase()+t.slice(1))}));var o=e(null,{verticalAlignment:"middle",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwVerticalAlignmentMixin")},_setVerticalAlignmentAttr:function(e){if(-1===i.indexOf(e))throw new Error("'Vertical alignment' property expects '' one of these values: "+i[e]);this._applyVerticalAlignmentClass(e),this._set("verticalAlignment",e)},_applyVerticalAlignmentClass:function(e){var t,i,o;t=this.get("verticalAlignment"),(i=n[t])&&this.domNode.classList.remove(i),o=n[e],this.domNode.classList.add(o)}});return o._dependencies=[{mixin:t,orderDependent:!0}],o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(343)],o=i.dj.d(n,(function(e,t,i){var n=e(null,{_paddingAndBorder:6,_setSize:function(e,t){if(this.inherited(arguments),this._started){var i="";"auto"===t||"100%"===t?(i=t,this._setSpecialSizeOnAdditionalNodes(e,"none")):(i=this._getAdjustedSize(e,t,this.domNode),this._setSpecialSizeOnAdditionalNodes(e,parseFloat(i)-this._paddingAndBorder+"px")),this.contentWrapperNode.style[e]="100%"}},_setSpecialSizeOnAdditionalNodes:function(e,t){"width"===e?this.iconAndTextContainerNode.style.maxWidth=t:"height"===e&&(this.textNode.style.maxHeight=t)}});return n._dependencies=[{mixin:i,orderDependent:!0}],n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(223),i(231),i(870)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e(null,{_lastDirection:null,postCreate:function(){this.inherited(arguments),this.own(i(this.domNode,"keydown",t.hitch(this,"_onKeyDown")),i(this.domNode,"synkeydown",t.hitch(this,"_onKeyDown")),i(this.domNode,"focusin",this._onFocusIn.bind(this)))},_onFocusIn:function(e){var t=o.getEnclosingWidget(e.target);t&&t.get("id")&&this.focusNode.setAttribute("aria-activedescendant",t.get("id")),setTimeout((function(){this._lastDirection&&(this._lastDirection=null)}),0)},_onKeyDown:function(e){e.keyCode===n.DOWN_ARROW?(this._lastDirection="down",this._handleFocusNext(e.target),e.preventDefault()):e.keyCode===n.UP_ARROW?(this._lastDirection="up",this._handleFocusPrevious(e.target),e.preventDefault()):e.keyCode===n.PAGE_UP||e.keyCode===n.HOME?(this._lastDirection="top",this._moveToFirstChild(e.target),e.preventDefault()):e.keyCode===n.PAGE_DOWN||e.keyCode===n.END?(this._lastDirection="bottom",this._moveToLastChild(e.target),e.preventDefault()):e.keyCode===n.TAB&&(e.shiftKey?(this._lastDirection="up",this._handleFocusPrevious(e.target)):(this._lastDirection="down",this._handleFocusNext(e.target)),e.preventDefault())},_handleFocusNext:function(e){(null===e||this._isActiveElement(e))&&this.focusNext(this._getTargetNode(e))},_handleFocusPrevious:function(e){(null===e||this._isActiveElement(e))&&this.focusPrevious(this._getTargetNode(e))},_moveToFirstChild:function(){this.focusFirst()},_moveToLastChild:function(){this.focusLast()},_getTargetNode:function(e){return e},_isActiveElement:function(e){return e.hasAttribute("data-composite-primary")?e.contains(document.activeElement):e===document.activeElement}});return a._dependencies=[{mixin:r,orderDependent:!1}],a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1039)],o=i.dj.d(n,(function(e,t){var i=e(null,{_closeEventData:{},onClose:function(){this._defaultContextMenuBlocker&&this.domNode&&this.domNode.removeEventListener("contextmenu",this._defaultContextMenuBlocker,!0),this.domNode&&(this.domNode.style.height=""),this._emitCloseEvent(),this._closeEventData={}},_emitCloseEvent:function(){this.emit("close",this._closeEventData)}});return i._dependencies=[{mixin:t,orderDependent:!1}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(221),i(248),i(223),i(277),i(231),i(514),i(1040),i(870)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){var u=n("touch")&&!window.PointerEvent,h=e(null,{postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwMenuFocusMixin"),this.focusNode=this.focusNode||this.domNode,this.own(i(this.domNode,"open",this._handleOpen.bind(this))),this.own(i(this.domNode,"close",this._handleClose.bind(this)))},_handleOpen:function(){this._addFocusListeners()},_handleClose:function(){this._removeFocusListeners()},_addFocusListeners:function(){var e;this.focusNode&&(this._focusNodeBlurListener=i(this.focusNode,"blur",this._handleBlur.bind(this)),this.own(this._focusNodeBlurListener),this._windowBlurListener=i(window,"blur",this._handleBlur.bind(this)),this.own(this._windowBlurListener),e=window.PointerEvent?"pointerdown":"mousedown",this._documentClickListener=i(document.body,u?o.press:e,this._handleMouseEvent.bind(this)),this.own(this._documentClickListener),this._escapeKeydownListener=i(document.body,"keydown",this._handleKeydown.bind(this)),this.own(this._escapeKeydownListener))},_removeFocusListeners:function(){this._focusNodeBlurListener&&(this._focusNodeBlurListener.remove(),delete this._focusNodeBlurListener),this._windowBlurListener&&(this._windowBlurListener.remove(),delete this._windowBlurListener),this._documentClickListener&&(this._documentClickListener.remove(),delete this._documentClickListener),this._escapeKeydownListener&&(this._escapeKeydownListener.remove(),delete this._escapeKeydownListener)},_handleBlur:function(e){setTimeout(function(){this._handlePossibleFocusChange(e)}.bind(this),0)},_handleMouseEvent:function(e){this._handlePossibleFocusChange(e)},_handleKeydown:function(e){e.keyCode===r.ESCAPE&&this._handlePossibleFocusChange(e)},_handlePossibleFocusChange:function(e){if(c.isMenuOpen(this)){var t,i,n,o=this._getGainedFocusWidgetFromEvent(e);t=this.isDescendant(o,this),i=this._isChildContextMenu(o),n=this._invokingWidget&&o===this._invokingWidget,o&&(t||i||n)||this._focusChange(o)}},_getGainedFocusWidgetFromEvent:function(e){var t=null,i=null;return(t=e instanceof FocusEvent?s.getEnclosingWidget(l.parseFocusEvent(e).gainedFocusNode):s.getEnclosingWidget(e.target)||(document.activeElement&&document.activeElement.contains(e.target)?s.getEnclosingWidget(document.activeElement):null))&&(i=t.focusNode&&t.focusNode instanceof Element?t.focusNode:t.domNode),i&&i.hasAttribute("data-composite-child")&&(t=s.getEnclosingWidget(document.getElementById(i.getAttribute("data-composite-primary-id")))),t},_isChildContextMenu:function(e){return e&&e.domNode&&[].slice.call(document.querySelectorAll(".mwToolstripPopupContextMenu, .mwToolstripPopupContextMenu *")).indexOf(e.domNode)>-1},_focusChange:function(e){if(this._closeEventData?this._closeEventData.mwEventData?this._closeEventData.mwEventData.gainedFocusWidget=e:this._closeEventData.mwEventData={gainedFocusWidget:e}:this._closeEventData={mwEventData:{gainedFocusWidget:e}},null!=e){if(!this.isInvokingWidget(e)&&!this.isDescendant(e,this)){var t=e;e&&e.domNode&&e.getParent&&e.getParent()&&(t=e.getParent()),t.invokedFromListItemTypeWidget||this.closeRequest(!1)}}else this.closeRequest(!1)},closeRequest:function(e){(null==e||[!0,!1].indexOf(e)<0)&&(e=!0),this.close&&this.close(),this._invokingWidget&&this._invokingWidget.isMenuOpen()&&this._invokingWidget.closeMenu(e),c.isMenuOpen(this)&&a.close(this)},isInvokingWidget:function(e){return null!=e&&(e instanceof HTMLElement&&(e=s.getEnclosingWidget(e)),e===this._invokingWidget)},isDescendant:function(e,t){if(null==e)return!1;e.domNode&&(e=e.domNode),null==t?t=this.domNode:t.domNode&&(t=t.domNode);return e instanceof HTMLElement&&t instanceof HTMLElement&&l.isDescendantOrInLaw(e,t,(function(e){return e.hasAttribute("dijitpopupparent")?document.getElementById(e.getAttribute("dijitpopupparent")):null}),!0)}});return h._dependencies=[{mixin:d,orderDependent:!0}],h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{maxHeight:800,_setMaxHeightAttr:function(e){if("number"!=typeof e)throw new Error("'MaxHeight' property expects a Number!");this.domNode.style.maxHeight=e+"px",this._set("maxHeight",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206)],o=i.dj.d(n,(function(e,t){return e(null,{postCreate:function(){this.inherited(arguments),this._getNonFocusableNodes().forEach((function(e){t(e,"mousedown",(function(e){e.target.classList.contains("allowDefaultActions")||e.preventDefault()}))}))},_getNonFocusableNodes:function(){return[this.domNode]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(206),i(238),i(317),i(331),i(288),i(515),i(879),i(354),i(542),i(277),i(561)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return{display:function(e,t){t&&(e._actionsMenu?e._actionsMenu.close():(d.blockSelection(e),e._actionsMenu=new i({targetNodes:[e],tag:"ActionsMenu"}),this._addMenuItems(e._actionsMenu,t),e._actionsMenu.open({target:e}),e._actionsMenu.on("close",(function(){setTimeout((function(){e._actionsMenu.destroyRecursive(),delete e._actionsMenu;var t=e.parentElement;t&&t.removeAttribute("aria-expanded")}),0),d.unblockSelection()}))))},_addMenuItems:function(t,i){var d,u,h,p,f;for(d=0;d<i.length;d++)(u=i[d])?u instanceof Array?(f=new n,this._addMenuItems(f,u.slice(1)),t.addChild(new l({text:u[0],menu:f}))):(p=function(e){return function(t){if(e.enabled||e.getEnabled&&e.getEnabled()){var i=e.setSelected&&e.getSelected,n=i?e.getSelected():e.selected,o=function(e,i){i?e.setSelected(!e.getSelected()):e.selected=!e.selected,e.callback(t)};"check"===e.itemType?o(e,i):"radio"===e.itemType?n||o(e,i):e.callback(t),c.close()}}}(u),h="check"===u.itemType?new r({text:u.text,disabled:!(u.getEnabled?u.getEnabled():u.enabled),checked:u.getSelected?u.getSelected():u.selected}):"radio"===u.itemType?new a({text:u.text,disabled:!(u.getEnabled?u.getEnabled():u.enabled),checked:u.getSelected?u.getSelected():u.selected}):new o({text:u.text,disabled:!(u.getEnabled?u.getEnabled():u.enabled)}),e(h,"click",p),t.addChild(h)):t.addChild(new s)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{UPDATE_INTERVAL:30,MOVEMENT_RATE:.5,MIN_DURATION:200,MAX_DURATION:750,computeDuration:function(e){return Math.max(this.MIN_DURATION,Math.min(this.MAX_DURATION,Math.abs(e)/this.MOVEMENT_RATE))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},transactionStarted:function(){throw new Error("Unimplemented API: transactionStarted")},transactionEnded:function(){throw new Error("Unimplemented API: transactionEnded")},manualCommit:function(){throw new Error("Unimplemented API: manualCommit")},onReadyToCommit:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(777),i(564)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(t),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var l=function(e){function t(e,i,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,new Set,e,i,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"find",value:function(e){var t=c(this,e);return(0,i.isDataType)(this)?t:t?e:void 0}},{key:"size",value:function(){return this._collection.size}},{key:"forEach",value:function(e){this._collection.forEach(e)}},{key:"genericAdd",value:function(e){this.insert(e)}},{key:"genericRemove",value:function(e){this.erase(e)}},{key:"insert",value:function(e){o.default.isUndefined(e)||c(this,e)||(this._basicAdd(e),this._opposite?(0,n.inverseAdd)(e,this._owner,this._opposite):(0,i.isComposite)(this)&&(0,n.setContainedByThis)(this._owner,e,this._property))}},{key:"erase",value:function(e){if(!o.default.isUndefined(e)){var t=c(this,e);t&&((0,i.modifying)(this),this._opposite?(0,n.inverseRemove)(e,this._owner,this._opposite):(0,i.isComposite)(this)&&(0,n.basicSetContainer)(e,null,null,null),this._collection.delete((0,i.isDataType)(this)?t:e))}}},{key:"clear",value:function(){var e=this;this._collection.forEach((function(t){return e.erase(t)}))}},{key:"getKind",value:function(){return mf.zero.CollectionKind.Set}},{key:Symbol.iterator,value:function(){return this._collection[Symbol.iterator]()}},{key:"_basicAdd",value:function(e){(0,i.modifying)(this),this._collection.add(e),(0,i.isDataType)(this)&&(e.__isSealed=!0)}},{key:"_basicRemove",value:function(e){(0,i.modifying)(this),this._collection.delete(e)}},{key:"_basicClear",value:function(){(0,i.modifying)(this),this._collection.clear()}},{key:"_copyContents",value:function(e){(0,i.modifying)(this),this._collection=new Set(e)}},{key:"_clone",value:function(){return new Set(this._collection)}}]),t}(r.default);function c(e,t){var n=e._collection;return(0,i.isDataType)(e)?o.default.find(n,i.areEqualDataTypes.bind(null,t)):n.has(t)}e.default=l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(777),i(564)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=l(t),a=l(i),s=l(n);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var d=function(e){function t(e,i,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,[],e,n,o));return r._isUnique=i,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),c(t,[{key:"erase",value:function(e){r.default.isUndefined(e)||this.splice(u(this,e))}},{key:"splice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(r.default.isLength(e)&&r.default.isLength(t)){for(var i=e+Math.min(this._collection.length-e,t),a=e;a<i;++a)(0,n.modifying)(this),this._opposite?(0,o.inverseRemove)(this._collection[a],this._owner,this._opposite):(0,n.isComposite)(this)&&(0,o.basicSetContainer)(this._collection[a],null,null,null);this._collection.splice(e,t)}}},{key:"find",value:function(e){return u(this,e)}},{key:"size",value:function(){return this._collection.length}},{key:"genericAdd",value:function(e,t){if(null!=t){var i=this.insert(e,t);-1!==i&&this.swap(i,t)}else this.push(e)}},{key:"genericRemove",value:function(e){this.erase(e)}},{key:"push",value:function(e){r.default.isUndefined(e)||this._isUnique&&this.contains(e)||(this._basicAdd(e),this._opposite?(0,o.inverseAdd)(e,this._owner,this._opposite):(0,n.isComposite)(this)&&(0,o.setContainedByThis)(this._owner,e,this._property))}},{key:"insert",value:function(e,t){if(r.default.isUndefined(e))return-1;if(this._isUnique){var i=this.find(e);if(-1!==i)return i}return(0,n.modifying)(this),this._collection.splice(t,0,e),(0,n.isDataType)(this)&&(e.__isSealed=!0),this._opposite?(0,o.inverseAdd)(e,this._owner,this._opposite):(0,n.isComposite)(this)&&(0,o.setContainedByThis)(this._owner,e,this._property),t}},{key:"pop",value:function(){this.splice(this._collection.length-1)}},{key:"contains",value:function(e){return!r.default.isUndefined(e)&&(this._opposite&&1===this._opposite.upper?e.getPropertyValue(this._opposite)===this._owner:-1!==u(this,e))}},{key:"at",value:function(e){return this._collection[e]}},{key:"set",value:function(e,t){var i=this._collection;(0,n.areEqual)(i,i[e],t)||(r.default.isUndefined(t)&&a.default.throwErr("CannotAddNonExistentObject"),this._isUnique&&this.contains(t)&&a.default.throwErr("CannotAddSecondObject"),(0,n.modifying)(this),this._opposite?((0,o.inverseAdd)(t,this._owner,this._opposite),(0,o.inverseRemove)(i[e],this._owner,this._opposite)):(0,n.isComposite)(this)?((0,o.setContainedByThis)(this._owner,t,this._property),(0,o.basicSetContainer)(i[e],null,null,null)):(0,n.isDataType)(this)&&(t.__isSealed=!0),i[e]=t)}},{key:"setAllValues",value:function(e){this._collection=e,(0,n.isDataType)(this)&&this._collection((function(e){return e.__isSealed=!0})),(0,n.modifying)(this)}},{key:"swap",value:function(e,t){(0,n.modifying)(this);var i=this._collection[e];this._collection[e]=this._collection[t],this._collection[t]=i}},{key:"front",value:function(){return this._collection[0]}},{key:"back",value:function(){return this._collection[this._collection.length-1]}},{key:"forEach",value:function(e){this._collection.forEach(e)}},{key:"clear",value:function(){for(;!this.isEmpty();)this.pop()}},{key:"getKind",value:function(){return mf.zero.CollectionKind.Sequence}},{key:Symbol.iterator,value:function(){return this._collection[Symbol.iterator]()}},{key:"_basicAdd",value:function(e){(0,n.modifying)(this),this._collection.push(e),(0,n.isDataType)(this)&&(e.__isSealed=!0)}},{key:"_basicRemove",value:function(e){var t=u(this,e);-1!==t&&((0,n.modifying)(this),this._collection.splice(t,1))}},{key:"_basicClear",value:function(){(0,n.modifying)(this),this._collection=[]}},{key:"_copyContents",value:function(e){(0,n.modifying)(this),this._collection=e.slice(0)}},{key:"_clone",value:function(){return r.default.clone(this._collection)}}]),t}(s.default);function u(e,t){return(0,n.arrIndexOf)(e._collection,t,(0,n.isDataType)(e))}e.default=d}),e,t),e.exports=o},function(e,t,i){(function(t,i){!function(t){"use strict";var n=Object.prototype.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag",s="object"==typeof e,l=t.regeneratorRuntime;if(l)s&&(e.exports=l);else{(l=t.regeneratorRuntime=s?e.exports:{}).wrap=u;var c={},d=g.prototype=p.prototype;f.prototype=d.constructor=g,g.constructor=f,g[a]=f.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(d),e},l.awrap=function(e){return{__await:e}},m(_.prototype),l.AsyncIterator=_,l.async=function(e,t,i,n){var o=new _(u(e,t,i,n));return l.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},m(d),d[r]=function(){return this},d[a]="Generator",d.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},l.values=C,y.prototype={constructor:y,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.tryEntries.forEach(b),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,n){return a.type="throw",a.arg=e,t.next=i,!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=n.call(r,"catchLoc"),l=n.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?this.next=r.finallyLoc:this.complete(a),c},complete:function(e,t){if("throw"===e.type)throw e.arg;"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=e.arg,this.next="end"):"normal"===e.type&&t&&(this.next=t)},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),b(i),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var o=n.arg;b(i)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:C(e),resultName:t,nextLoc:i},c}}}function u(e,t,i,n){var o=t&&t.prototype instanceof p?t:p,r=Object.create(o.prototype),a=new y(n||[]);return r._invoke=function(e,t,i){var n="suspendedStart";return function(o,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw r;return T()}for(;;){var a=i.delegate;if(a){if("return"===o||"throw"===o&&void 0===a.iterator[o]){i.delegate=null;var s=a.iterator.return;if(s)if("throw"===(l=h(s,a.iterator,r)).type){o="throw",r=l.arg;continue}if("return"===o)continue}var l;if("throw"===(l=h(a.iterator[o],a.iterator,r)).type){i.delegate=null,o="throw",r=l.arg;continue}if(o="next",r=void 0,!(d=l.arg).done)return n="suspendedYield",d;i[a.resultName]=d.value,i.next=a.nextLoc,i.delegate=null}if("next"===o)i.sent=i._sent=r;else if("throw"===o){if("suspendedStart"===n)throw n="completed",r;i.dispatchException(r)&&(o="next",r=void 0)}else"return"===o&&i.abrupt("return",r);if(n="executing","normal"===(l=h(e,t,i)).type){n=i.done?"completed":"suspendedYield";var d={value:l.arg,done:i.done};if(l.arg!==c)return d;i.delegate&&"next"===o&&(r=void 0)}else"throw"===l.type&&(n="completed",o="throw",r=l.arg)}}}(e,i,a),r}function h(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}function p(){}function f(){}function g(){}function m(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function _(e){function t(i,o,r,a){var s=h(e[i],e,o);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,r,a)}),(function(e){t("throw",e,r,a)})):Promise.resolve(c).then((function(e){l.value=e,r(l)}),a)}a(s.arg)}var o;"object"==typeof i&&i.domain&&(t=i.domain.bind(t)),this._invoke=function(e,i){function n(){return new Promise((function(n,o){t(e,i,n,o)}))}return o=o?o.then(n,n):n()}}function v(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function b(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function y(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function C(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,i(1053),i(2894))},function(e,t,i){var n,o;n=[t,i(566),i(611)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=(n=t)&&n.__esModule?n:{default:n};var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};e.default=r(o.default,{getMetaRegistryModel:function(){return(0,i.getMetaRegistryModel)()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(2896)],o=i.dj.d(n,(function(e,t){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleConditionalFunctionMapCache=e.SimpleFunctionMapCache=e.SimpleConditionalFunctionCache=e.SimpleFunctionCache=e.SimpleCache=e.AbstractCache=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=e.AbstractCache=function(){function e(){i(this,e)}return n(e,[{key:"get",value:function(e){throw"get method not implement"}},{key:"cache",value:function(e,t){throw"cache method not implement"}},{key:"delete",value:function(e){throw"delete method not implement"}},{key:"clear",value:function(){throw"clear method not implement"}}]),e}(),r=e.SimpleCache=function(e){function t(){i(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._cacheMap=new Map,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"get",value:function(e){return this._cacheMap.get(e)}},{key:"cache",value:function(e,t){this._cacheMap.set(e,t)}},{key:"delete",value:function(e){this._cacheMap.delete(e)}},{key:"clear",value:function(){this._cacheMap.clear()}}]),t}(o),a=e.SimpleFunctionCache=(0,t.FunctionCacheMixin)(r),s=e.SimpleConditionalFunctionCache=(0,t.ConditionalFunctionCacheMixin)(r);e.SimpleFunctionMapCache=a,e.SimpleConditionalFunctionMapCache=s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(396),i(566)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.makeFqn=h,e.processPackages=p,e.resolveType=v,e.topoSortClasses=y,e.resolveSuperclass=T,e.select=I,e.getTopoSorted=function(e){return t=y(I(e,"classes")),r.default.reduce(t,(function(e,t){return e[t.superclass]&&(t.propertiesInherited=e[t.superclass]),(t.properties||t.propertiesInherited)&&(e[t.fqn]=r.default.merge({},t.properties||{},t.propertiesInherited||{})),e}),{}),t;var t},e.resolveInfo=function(e){var t=e.family||r.default.generateRandomUuid(),i=e.modelVersion||"19700101";return{family:t,version:i,uri:e.uri||A(t,i)}},e.resolve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;"family"in e||"uri"in e||console.warn('cdSpec should at least contain "family" or "uri".');t&&d(e,t);var i=e.family||r.default.generateRandomUuid(),n=e.modelVersion||"19700101";e.uri=e.uri||A(i,n),e.primitiveTypes&&e.packages.mf&&r.default.forEach(e.primitiveTypes,r.default.partial(w,e.packages.mf.packages.zero.packages.meta));return p(e,(function(e,t,o){C(e,t,o),r.default.forEach(t.primitiveTypes,r.default.partial(w,t)),r.default.forEach(t.dataTypes,r.default.partial(w,t)),r.default.forEach(t.enumerations,r.default.partial(w,t)),t.uri=t.uri||A(i,n,t.fqn)}),C,(function(e,t,i){C(e,t,i)}),C,C,(function(e,t,i){C(e,t,i),T(e,t)}),r.default.noop,r.default.noop),p(e,r.default.noop,r.default.noop,r.default.noop,r.default.noop,r.default.noop,r.default.noop,(function(t,i,n){C(t,i,n),i.pkgName=i.pkgName.slice(0,i.pkgName.lastIndexOf(".")),E(e,i)}),(function(t,i,n){C(t,i,n),i.pkgName=i.pkgName.slice(0,i.pkgName.lastIndexOf(".")),S(e,i)})),e},e.generateUri=A,e.parseUri=function(e){var t=e.lastIndexOf("/"),i=e.substr(t+1),n=t-1,o=e.lastIndexOf("/",n),r=e.substr(o+1,n-o);return{version:i,family:r}},e.isEmbeddedPrimitiveType=x,e.setLiteralValues=function(e){var t=new Set;r.default.forEach(e.literals,(function(e,i){var n=e.value;if(void 0!==n){var o=n;r.default.isNumber(n)||(o=Number.parseInt(n),e.value=o),r.default.isNumber(o)||a.default.throwErr("ExpectedNumericValue",i),t.add(o)}}));for(var i=Object.keys(e.literals).length-t.size,n=new Set,o=0,s=0;s<i;++s){for(;t.has(o);++o);t.add(o),n.add(o)}var l=Array.from(n),c=0;return r.default.forEach(e.literals,(function(e){void 0===e.value&&(e.value=l[c++])})),Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(Array.from(t)))},e.topoSortDataDefinitions=function(e){var t=new Map,i={},n=new Map;function o(e,o){if(o&&-1!==o.indexOf(".")){var r=i[o];if(r){n.has(e)||n.set(e,[]);var a=t.get(r),s=n.get(e);e!==r&&-1===s.indexOf(a)&&s.push(a)}}}return e.forEach((function(e){var n=e.family||r.default.generateRandomUuid(),o=e.modelVersion||"19700101";t.set(e,e.uri||A(n,o)),p(e,r.default.noop,r.default.noop,(function(t,n,o){return i[h(t,o)]=e}),r.default.noop,r.default.noop,(function(t,n,o){return i[h(t,o)]=e}),r.default.noop)})),e.forEach((function(e){return p(e,r.default.noop,r.default.noop,r.default.noop,r.default.noop,r.default.noop,(function(t,i,n){return o(e,i.superclass)}),(function(t,i,n){return o(e,i.type)}))})),r.default.topSort(e,(function(e){return t.get(e)}),(function(e){return n.get(e)||[]}))};var r=c(t),a=c(i),s=c(n),l=c(o);function c(e){return e&&e.__esModule?e:{default:e}}var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function u(e,t,i){t(e,i),r.default.forEach(e.packages,(function(e,n){u(e,t,i?i+"."+n:n)}))}function h(e,t){return(e?e+".":"")+t}function p(e,t,i,n,o,a,s,l,c){u(e,(function(e,d){r.default.forEach(e.packages,r.default.partial(t,d)),r.default.forEach(e.primitiveTypes,r.default.partial(i,d)),r.default.forEach(e.dataTypes,(function(e,t){n(d,e,t),r.default.forEach(e.properties,r.default.partial(l,h(d,t)))})),r.default.forEach(e.enumerations,(function(e,t){o(d,e,t),r.default.forEach(e.literals,r.default.partial(a,h(d,t)))})),r.default.forEach(e.classes,(function(e,t){s(d,e,t),r.default.forEach(e.properties,r.default.partial(l,h(d,t))),c&&r.default.forEach(e.events,r.default.partial(c,h(d,t)))}))}))}function f(e,t,i){var n=r.default.fqnToPath(i),o=n[n.length-1],a=n.slice(0,n.length-1);return(n=r.default.map(a,(function(e){return"packages."+e}))).push(e),n.push(o),r.default.get(t,n.join("."))}function g(e,t,i,n,o){var a=["packages",t,o,i,"properties",n].join("."),l=r.default.get(e,a);return l?{result:l,visited:{}}:function(e,t,i){for(var n={};!n[t]&&t!==s.default.ModelElement;){n[t]=!0;var o=f("classes",e,t);if(!o)return{result:void 0,visited:n};if(o&&o.properties&&o.properties[i])return{result:o.properties[i],visited:n};t=o.superclass}return{result:void 0,visited:n}}(e,[t,i].join("."),n)}function m(e,t,i,n){var o=t[i];if(!r.default.isString(o))return{result:o};var s=r.default.fqnToPath(o);if(0>s.length)a.default.throwErr("NoSuchProperty",s[0]);else if(1===s.length)return t[i]=(n||t.type)+"."+s[0],m(e,t,i);var l=s[s.length-1],c=s[s.length-2];return g(e,s.slice(0,s.length-2).join(".")||t.pkgName,c,l,"classes")}function _(e,t){var i=t.qualifiedBy,n=m(e,t,"qualifiedBy"),o=t.qualifiedBy;return n&&n.result||!o?n.result:{fqn:(function(e,t){for(var i=Object.keys(t),n=0,o=i.length;n<o;++n){var r=l.default.getType(i[n]),a=r&&r.getPropertyByName(e);if(a)return a.owningType.qualifiedName}}(i,n.visited)||t.type)+"."+i,name:i}}function v(e,t){return x(t)?t:(-1===t.indexOf(".")?e+".":"")+t}function b(e,t){var i=l.default.getType(t);return i?!(!i.getMetaClass()||i.getMetaClass().qualifiedName!==s.default.Enum)||void 0:!!f("enumerations",e,t)||void 0}function y(e){return r.default.topSort(e,(function(e){return e.fqn}),(function(e){return e.superclass&&e.superclass!==s.default.ModelElement?[e.superclass]:[]}))}function C(e,t,i){t.pkgName=e||"",t.fqn=h(e,i),t.name=i}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];t.superclass=t.superclass?v(e,t.superclass):s.default.ModelElement}function E(e,t){t.type=v(t.pkgName,t.type),t.isDataType=function(e,t){var i=l.default.getType(t);return i?!(!i.getMetaClass()||i.getMetaClass().qualifiedName!==s.default.DataType)||void 0:!!f("dataTypes",e,t)||void 0}(e,t.type),t.isEnumeration=b(e,t.type),t.isPrimitive=t.isDataType||function(e,t){return x(t)||!!f("primitiveTypes",e,t)||void 0||!!b(e,t)||void 0}(e,t.type),t.isQualificationUnique=t.isQualificationUnique||void 0===t.isQualificationUnique,t.isUnique=void 0!==t.isUnique&&t.isUnique,t.qualifiedBy=_(e,t),t.opposite=function(e,t){return m(e,t,"opposite").result}(e,t),t.opposite&&!t.opposite.opposite&&(t.opposite.opposite=t),t.subsets=function(e,t){var i=t.fqn.substr(0,t.fqn.length-t.name.length-1);return m(e,t,"subsets",i).result}(e,t),t.isDerived=Boolean(t.isDerived||t.subsets)}function S(e,t){r.default.forEach(t.parameters,(function(e){e.type=v(t.pkgName,e.type)}))}function w(e,t,i){if(t.generateAttribute){e.classes||(e.classes={});var n=i+"Attribute";e.classes[n]?a.default.throwErr("AttributeClassError",n):e.classes[n]=function(e){return{superclass:s.default.Attribute,isAttributeClass:!0,properties:{value:{type:e,lower:"1",upper:"1"}}}}(i)}}function I(e,t){var i=[];return u(e,(function(e){r.default.forEach(e[t],(function(e){return i.push(e)}))})),i}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"19700101",i=arguments[2],n=i?"/"+i:"";return"http://schema.mathworks.com/mf0/"+e+"/"+t+n}function x(e){return s.default.Boolean===e||s.default.Integer===e||s.default.Integer8===e||s.default.Integer16===e||s.default.Integer64===e||s.default.UInteger8===e||s.default.UInteger16===e||s.default.UInteger64===e||s.default.Real===e||s.default.UnlimitedNatural===e||s.default.String===e||s.default.DateTime===e||s.default.UUID===e||s.default.StdString===e||s.default.Object===e||s.default.JsonValue===e||s.default.MxArray===e||s.default.StringToStringMap===e}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(1748),i(612),i(396)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=c(t),a=c(i),s=c(n),l=c(o);function c(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.setRecurseIntoCompositions(e),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),d(t,[{key:"setRecurseIntoCompositions",value:function(e){r.default.isUndefined(e)&&(e=!0),this.recurseIntoCompositions=e}},{key:"getPropertyCategory",value:function(e){var i=function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPropertyCategory",this).call(this,e);if(i.and(s.default.PrimitiveAny())){var n=e.type.qualifiedName;if(n===l.default.Integer||n===l.default.Integer8||n===l.default.Integer16||n===l.default.Integer64||n===l.default.UInteger8||n===l.default.UInteger16||n===l.default.UInteger64||n===l.default.Real||n===l.default.UnlimitedNatural||n===l.default.Boolean||n===l.default.Object||n===l.default.StringToStringMap||n===l.default.JsonValue)return e.isSingleValued()?s.default.Verbatim():s.default.VerbatimCollection()}else if(i.and(s.default.CompositionAny())&&!this.recurseIntoCompositions)return e.isSingleValued()?s.default.Association():s.default.AssociationCollection();return i}}]),t}(a.default);e.default=u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),i=Object.freeze({Definition:"Definition",Reference:"Reference"}),n=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.identifierType=t,this.identifier=i}return t(e,[{key:"getUuid",value:function(){if(this.identifierType===e.DefaultIdentifierType)return this.identifier}}],[{key:"UsageMode",get:function(){return i}},{key:"DefaultIdentifierType",get:function(){return"uuid"}},{key:"IntrinsicIdentifierType",get:function(){return"id"}}]),e}();e.default=n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";function t(e,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.length,o=i;o<n;++o)if(e[o]!==t)return o;return n}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.freeze({VersionAttr:"version",EntriesAttr:"entries",ContentAttr:"content",DynamicContentAttr:"dynamicContent",TypeAttr:"type",UuidAttr:"uuid",DefaultPackageAttr:"defaultPackage",PackagesAttr:"packageUris",SynchronizerMetadata:"mf.zero.io.JSONChangeReportSynchronizer",DefaultValuesAttr:"defaultValues",DynamicPropertyAttr:"dynamicProperty",OwnerAttr:"owner",LowerAttr:"lower",UpperAttr:"upper",UpperValueUnbounded:"*",OrderedAttr:"isOrdered",UniqueAttr:"isUnique",ValueAttr:"value",TypeSize:4,disambiguateIdAttribute:function(e){return e.length<i.TypeSize||e.substr(0,i.TypeSize)!==i.TypeAttr||t(e,"_",i.TypeSize)!==e.length?e:e+"_"},convertFromDisambiguated:function(e){return e.length<=i.TypeSize||e.substr(0,i.TypeSize)!==i.TypeAttr||t(e,"_",i.TypeSize)!==e.length?e:e.substr(0,e.length-1)}});e.default=i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{addEventListener:function(e,t,i){throw new Error("Unimplemented API: addEventListener")},hasEventListener:function(e,t,i){throw new Error("Unimplemented API: hasEventListener")},removeEventListener:function(e,t,i){throw new Error("Unimplemented API: removeEventListener")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{DEFAULT:"default",MANUAL:"manual"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{DEFAULT:"default",COMPACT:"compact"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{title:new e({type:"string",notInAction:!0,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{allowDeselectionInButtonGroup:new e({type:"boolean",defaultValue:!1,required:!1,notInAction:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{placeholderText:new e({type:"string",notInAction:!1,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{editable:new e({type:"boolean",notInAction:!1,defaultValue:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{galleryItemRowCount:new e({type:"number",notInAction:!0,defaultValue:1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{galleryItemTextLineCount:new e({type:"number",notInAction:!0,defaultValue:2,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{galleryItemWidth:new e({type:"number",notInAction:!0,defaultValue:0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{scrollToSelection:new e({type:"boolean",notInAction:!0,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{DEFAULT:"default",COMPACT:"compact"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{animation:new e({type:"object",notInAction:!0,defaultValue:{shouldAnimate:!1,startId:"",endId:""},required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{width:new e({type:"number",notInAction:!0,defaultValue:0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{width:0,_setWidthAttr:function(e){e>0&&(this.domNode.style.width=e+"px"),this._set("width",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(890),i(203),i(210),i(211),i(221),i(204),i(206),i(385),i(256),i(285),i(231),i(215),i(386)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){r("dijit-legacy-requires")&&l(0,(function(){require(["dijit/layout/StackController"])}));var f=i("dijit.layout.StackContainer",p,{doLayout:!0,persist:!1,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments),n.add(this.domNode,"dijitLayoutContainer")},postCreate:function(){this.inherited(arguments),this.own(s(this.domNode,"keydown",a.hitch(this,"_onKeyDown")))},startup:function(){if(!this._started){var i=this.getChildren();e.forEach(i,this._setupChild,this),this.persist?this.selectedChildWidget=u.byId(t(this.id+"_selectedChild")):e.some(i,(function(e){return e.selected&&(this.selectedChildWidget=e),e.selected}),this);var n=this.selectedChildWidget;!n&&i[0]&&((n=this.selectedChildWidget=i[0]).selected=!0),c.publish(this.id+"-startup",{children:i,selected:n,textDir:this.textDir}),this.inherited(arguments)}},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=!0;var e=this.selectedChildWidget;e&&this._showChild(e)}this.inherited(arguments)},_setupChild:function(e){var t=e.domNode,i=o.place("<div role='tabpanel' class='"+this.baseClass+"ChildWrapper dijitHidden'>",e.domNode,"replace"),n=e["aria-label"]||e.title||e.label;n&&i.setAttribute("aria-label",n),o.place(t,i),e._wrapper=i,this.inherited(arguments),"none"==t.style.display&&(t.style.display="block"),e.domNode.removeAttribute("title")},addChild:function(e,t){this.inherited(arguments),this._started&&(c.publish(this.id+"-addChild",e,t),this.layout(),this.selectedChildWidget||this.selectChild(e))},removeChild:function(t){var i=e.indexOf(this.getChildren(),t);if(this.inherited(arguments),o.destroy(t._wrapper),delete t._wrapper,this._started&&c.publish(this.id+"-removeChild",t),!this._descendantsBeingDestroyed){if(this.selectedChildWidget===t&&(this.selectedChildWidget=void 0,this._started)){var n=this.getChildren();n.length&&this.selectChild(n[Math.max(i-1,0)])}this._started&&this.layout()}},selectChild:function(e,i){var n;return e=u.byId(e),this.selectedChildWidget!=e&&(n=this._transition(e,this.selectedChildWidget,i),this._set("selectedChildWidget",e),c.publish(this.id+"-selectChild",e,this._focused),this.persist&&t(this.id+"_selectedChild",this.selectedChildWidget.id)),d(n||!0)},_transition:function(e,t){t&&this._hideChild(t);var i=this._showChild(e);return e.resize&&(this.doLayout?e.resize(this._containerContentBox||this._contentBox):e.resize()),i},_adjacent:function(t){var i=this.getChildren(),n=e.indexOf(i,this.selectedChildWidget);return i[(n+=t?1:i.length-1)%i.length]},forward:function(){return this.selectChild(this._adjacent(!0),!0)},back:function(){return this.selectChild(this._adjacent(!1),!0)},_onKeyDown:function(e){c.publish(this.id+"-containerKeyDown",{e:e,page:this})},layout:function(){var e=this.selectedChildWidget;e&&e.resize&&(this.doLayout?e.resize(this._containerContentBox||this._contentBox):e.resize())},_showChild:function(e){var t=this.getChildren();return e.isFirstChild=e==t[0],e.isLastChild=e==t[t.length-1],e._set("selected",!0),e._wrapper&&n.replace(e._wrapper,"dijitVisible","dijitHidden"),e._onShow&&e._onShow()||!0},_hideChild:function(e){e._set("selected",!1),e._wrapper&&n.replace(e._wrapper,"dijitHidden","dijitVisible"),e.onHide&&e.onHide()},closeChild:function(e){(!e.onClose||e.onClose(this,e))&&(this.removeChild(e),e.destroyRecursive())},destroyDescendants:function(t){this._descendantsBeingDestroyed=!0,this.selectedChildWidget=void 0,e.forEach(this.getChildren(),(function(e){t||this.removeChild(e),e.destroyRecursive(t)}),this),this._descendantsBeingDestroyed=!1}});return f.ChildWidgetProperties={selected:!1,disabled:!1,closable:!1,iconClass:"dijitNoIcon",showTitle:!0},a.extend(h,f.ChildWidgetProperties),f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(240),i(411),i(3034),i(892)],o=i.dj.d(n,(function(e,t,i,n,o){return o.deprecated({deprecated:{module:"dijit/form/ToggleButton"},replacement:{module:"mw-form/ToggleButton"},geckNumber:1352405}),e("dijit.form.ToggleButton",[i,n],{baseClass:"dijitToggleButton",setChecked:function(e){t.deprecated("setChecked("+e+") is deprecated. Use set('checked',"+e+") instead.","","2.0"),this.set("checked",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(1034),i(3080)],o=i.dj.d(n,(function(e,t,i,n,o){var r={error:o.errorIconAltText,warning:o.warningIconAltText,info:o.infoIconAltText,question:o.questionIconAltText,success:o.successIconAltText,none:""};return e([t,i],{templateString:'<div class="${baseClass}"><img class="${baseClass}Icon" src="" draggable="false" ondragstart="return false;" data-dojo-attach-point="iconNode"><div class="${baseClass}Message" data-test-id="message-node" data-dojo-attach-point="messageNode">${!message}</div></div>',baseClass:"mwIconAndMessageWidget",icon:"error",customIconAltText:"",message:"",_setIconAttr:function(e){var t="";e||(e="error"),this._set("icon",e);this.baseClass;this.iconNode.src=this._ICON_blank,this.iconNode.className="",this.iconNode.classList.add(this.baseClass+"Icon"),e.match(/^(error|warning|info|question|success|none)$/)?(this.iconNode.classList.add("mwAlertIcon32",this._getIconClassName(this.icon)),t=e):e.match(/^(data:image\/)/i)?(t="customDataURI",this.iconNode.src=e):e.match(/\./)?(t="customURI",this.iconNode.src=e):(t="customCSSClass",this.iconNode.classList.add(e)),this.iconNode.width,this.iconNode.height,this.iconNode.setAttribute("data-icon-id",t),this._setImgAltAttributeValue()},_setCustomIconAltTextAttr:function(e){this._set("customIconAltText",e),this._setImgAltAttributeValue()},_setImgAltAttributeValue:function(){var e=r[this.icon]||this.customIconAltText;this.iconNode.setAttribute("alt",e)},_getIconClassName:function(e){return"mwAlertIcon"+e.charAt(0).toUpperCase()+e.slice(1)},_setMessageAttr:function(e){this._set("message",e),"string"==typeof e&&(this.messageNode.style.whiteSpace="pre-wrap"),n.set(this.messageNode,e,{parseContent:!0})},_ICON_blank:"data:image/gif;base64,R0lGODlhAQABAJAAAP8AAAAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw=="})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(331),i(332),i(1069),i(259)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o.validate([t,i,n]),{visualFamily:"default",postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-focus","temporary"),this.domNode.classList.add("toolstrip")},_handleWidthOverflow:function(){if(this.domNode.style.maxWidth="",this._invokingWidget&&this._invokingWidget.domNode){var e=this._invokingWidget.domNode,t=this.domNode.getBoundingClientRect(),i=e.getBoundingClientRect(),n=Math.floor(Math.max(i.x,window.innerWidth-i.right));t.width>n&&(this.domNode.style.maxWidth=n-1+"px")}},_updateHeight:function(){this._handleWidthOverflow(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(353)],o=i.dj.d(n,(function(e,t){var i=e(null,{postCreate:function(){this.inherited(arguments);var e=this.id+"_textNodeLabel",t=this.id+"_inlineTextNodeLabel",i=this.id+"_lastTextLineNodeLabel";this.textNode.setAttribute("id",e),this.inlineTextNode.setAttribute("id",t),this.lastTextLineNode.setAttribute("id",i),this.buttonNode&&this.buttonNode.contains(this.textNode)?this.buttonNode.setAttribute("aria-labelledby",e):this.focusNode.setAttribute("aria-labelledby",e+" "+t+" "+i)}});return i._dependencies=[{mixin:t,orderDependent:!1}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(711)],o=i.dj.d(n,(function(e,t){var i=e(null,{_setSize:function(){}});return i._dependencies=[{mixin:t,orderDependent:!0}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(203),i(204),i(206),i(257),i(222),i(384),i(211),i(217)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c,d,u,h,p,f,g,m=["-webkit-","-moz-","-ms-",""],_=["horizontal","vertical"];return t([r,a],{containerNode:null,containerNodeWithinPopup:!1,dragOrientation:"horizontal",scrollBuffer:50,constructor:function(e){if(this.postscript(e),void 0===this.containerNode||1!==this.containerNode.nodeType)throw new Error("A containerNode needs to be provided and it should be a DOM Node!");this._currentTarget=null,this._previousPageX=0,this._previousPageY=0,this.get("containerNode").classList.add("mwDragSortContainer"),this._dragSortOverlay=s.create("div",{class:"mwDragSortContainerOverlay"},document.body),this._mouseDownListenerHandle=n(this.get("containerNode"),"mousedown",i.hitch(this,this._mouseDownListener)),this._mouseUpListenerHandle=n(window,"mouseup",i.hitch(this,this._mouseUpListener))},_setContainerNodeAttr:function(e){if(void 0===args.containerNode||1!==args.containerNode.nodeType)throw new Error("A containerNode needs to be provided and it should be a DOM Node!");this._set("containerNode",e)},_setDragOrientationAttr:function(e){if("string"!=typeof e||_.indexOf(e)<0)throw new Error("'dragOrientation' setter expected one of: ["+_.toString()+"]");this._set("dragOrientation",e)},_mouseDownListener:function(e){if(o.isLeft(e)&&(this._currentTarget=this._getAncestorWhichIsADirectChildOfContainerNode(e.target),null!==this._currentTarget&&this.get("containerNode").children.length>1)){var t=l.position(this._currentTarget);this._scrollNode||(this._scrollNode=this._getContainingScrollNode(this.containerNode)),this._scrollNodeBoundingClientRect=this._scrollNode.getBoundingClientRect(),this._mouseMoveListenerHandle=n(document.body,"mousemove",i.hitch(this,this._mouseMoveListener,{index:this._getIndexOfNode(this._currentTarget),position:t,leftOffset:e.pageX-t.x,rightOffset:t.x+t.w-e.pageX,topOffset:e.pageY-t.y,bottomOffset:t.y+t.h-e.pageY,mouseDownCoords:{x:e.pageX,y:e.pageY},startScrollLeft:this._scrollNode.scrollLeft,startScrollTop:this._scrollNode.scrollTop})),this._windowSelectStartHandle=n(window,"selectstart",(function(e){e.preventDefault()}))}},_getScrollableDirection:function(e){var t="none",i=window.getComputedStyle(e),n=["scroll","auto"].indexOf(i["overflow-x"])>-1&&e.scrollWidth>e.clientWidth,o=["scroll","auto"].indexOf(i["overflow-y"])>-1&&e.scrollHeight>e.clientHeight;return n&&o?t="both":n?t="x":o&&(t="y"),t},_getContainingScrollNode:function(e){for(var t=null;document.body.contains(e);){if("none"!==this._getScrollableDirection(e)){t=e;break}e=e.parentElement}return t||this.containerNode},_autoScrollContainer:(c=!1,d=["up","u","U","down","d","D","left","l","L","right","r","R","stop","none",null,void 0],u=0,h=0,p=null,f=null,g=function(){f=null,p&&c&&(p.scrollBy(u,h),f=window.requestAnimationFrame(g))},function(e,t,i){if(f&&window.cancelAnimationFrame(f),"none"!==this._getScrollableDirection(e))switch(p=e,d.indexOf(t)<0&&(t="down"),i&&"number"==typeof i||(i=1),t){case"stop":case"none":case null:case void 0:c=!1;break;case"left":case"l":case"L":c=!0,u=-i,h=0,f=window.requestAnimationFrame(g);break;case"right":case"r":case"R":c=!0,u=i,h=0,f=window.requestAnimationFrame(g);break;case"up":case"u":case"U":c=!0,u=0,h=-i,f=window.requestAnimationFrame(g);break;case"down":case"d":case"D":default:c=!0,u=0,h=i,f=window.requestAnimationFrame(g)}else t="stop"}),_mouseMoveListener:function(t,i){if(!(Math.abs(t.mouseDownCoords.x-i.pageX)<=5&&Math.abs(t.mouseDownCoords.y-i.pageY)<=5)){this._mouseMoveHappened=!0,this._currentTarget.classList.add("mwDragTarget"),document.body.classList.add("mwDragging"),this._adjustDraggableNodePostions(t,i);var o=this._scrollGap<0?Math.ceil(Math.abs(this._scrollGap)/5):1;if(this._scrollListenerHandle&&(this._scrollListenerHandle.remove(),delete this._scrollListenerHandle),this._scrollGap<this.scrollBuffer?(this._autoScrollContainer(this._scrollNode,this._dragDirection,o),this._scrollListenerHandle=n(this._scrollNode,"scroll",function(){this._adjustDraggableNodePostions(t,i)}.bind(this))):this._autoScrollContainer(this._scrollNode,"stop"),this._currentTarget&&this._currentTarget.firstElementChild){var r=e.getEnclosingWidget(this._currentTarget.firstElementChild);r&&(r.isMenuOpen&&r.isMenuOpen()&&r.closeMenu&&r.closeMenu(),this.containerNodeWithinPopup&&(this._parentMenuToBeFocused=r.getParent?r.getParent():null))}}},_adjustDraggableNodePostions:function(e,t){var i,n,o,r,a,s,c,d,u=l.position(this.get("containerNode")),h=l.getPadBorderExtents(this.get("containerNode"));if("horizontal"===this.get("dragOrientation")){if(i=u.x+e.leftOffset+h.l,n=u.x+u.w-e.rightOffset-h.r,this._currentPageX=t.pageX,d=this._scrollNode.scrollLeft-e.startScrollLeft,this._currentPageX<i?this._currentPageX=i:this._currentPageX>n&&(this._currentPageX=n),this._currentTarget.style.left=this._currentPageX-e.position.x-e.leftOffset+d+"px",t.pageX>this._previousPageX)this._dragDirection="r",this._scrollGap=this._scrollNodeBoundingClientRect.left+this._scrollNodeBoundingClientRect.width-t.pageX;else if(t.pageX<this._previousPageX)this._dragDirection="l",this._scrollGap=t.pageX-this._scrollNodeBoundingClientRect.left;else if(!this._dragDirection||!this._scrollGap)return;for(this._previousPageX=t.pageX,o=this._findNodesOnEitherSide(this._dragDirection),c=0;c<this.get("containerNode").children.length;c++)(r=this.get("containerNode").children[c])!==this._currentTarget&&(a=l.position(r),s=l.position(this._currentTarget),"r"===this._dragDirection?c>=e.index?s.x+s.w>=a.x+a.w/2&&this._applyTranslateX(r,-s.w):o.left.indexOf(r)>-1&&"0"!==r.getAttribute("data-translated")&&this._applyTranslateX(r,0):"l"===this._dragDirection&&(c<=e.index?s.x<=a.x+a.w/2&&this._applyTranslateX(r,s.w):o.right.indexOf(r)>-1&&"0"!==r.getAttribute("data-translated")&&this._applyTranslateX(r,0)))}else if("vertical"===this.get("dragOrientation")){if(i=u.y+e.topOffset+h.t,n=u.y+u.h-e.bottomOffset-h.b,this._currentPageY=t.pageY,d=this._scrollNode.scrollTop-e.startScrollTop,this._currentPageY<i?this._currentPageY=i:this._currentPageY>n&&(this._currentPageY=n),this._currentTarget.style.top=this._currentPageY-e.position.y-e.topOffset+d+"px",t.pageY>this._previousPageY)this._dragDirection="d",this._scrollGap=this._scrollNodeBoundingClientRect.top+this._scrollNodeBoundingClientRect.height-t.pageY;else if(t.pageY<this._previousPageY)this._dragDirection="u",this._scrollGap=t.pageY-this._scrollNodeBoundingClientRect.top;else if(!this._dragDirection||!this._scrollGap)return;for(this._previousPageY=t.pageY,o=this._findNodesAboveAndBelow(this._dragDirection),c=0;c<this.get("containerNode").children.length;c++)(r=this.get("containerNode").children[c])!==this._currentTarget&&(a=l.position(r),s=l.position(this._currentTarget),"d"===this._dragDirection?c>=e.index?s.y+s.h>=a.y+a.h/2&&this._applyTranslateY(r,-s.h):o.above.indexOf(r)>-1&&"0"!==r.getAttribute("data-translated")&&this._applyTranslateY(r,0):"u"===this._dragDirection&&(c<=e.index?s.y<=a.y+a.h/2&&this._applyTranslateY(r,s.h):o.below.indexOf(r)>-1&&"0"!==r.getAttribute("data-translated")&&this._applyTranslateY(r,0)))}},_mouseUpListener:function(){if(this._scrollListenerHandle&&(this._scrollListenerHandle.remove(),delete this._scrollListenerHandle),this._scrollNode&&this._autoScrollContainer(this._scrollNode,"stop"),this._scrollGap&&delete this._scrollGap,this._dragDirection&&delete this._dragDirection,this._mouseMoveListenerHandle&&(this._mouseMoveListenerHandle.remove(),delete this._mouseMoveListenerHandle),this._windowSelectStartHandle&&(this._windowSelectStartHandle.remove(),delete this._windowSelectStartHandle),this._currentPageX&&delete this._currentPageX,this._currentPageY&&delete this._currentPageY,this._mouseMoveHappened){if(null!==this._currentTarget){var e=this._getIndexOfNode(this._currentTarget);this._moveCurrentTargetToNewLocation(),"horizontal"===this.get("dragOrientation")?(this._currentTarget.style.left="",this._resetAllSiblingTranslateX()):(this._currentTarget.style.top="",this._resetAllSiblingTranslateY()),this._currentTarget.classList.remove("mwDragTarget"),document.body.classList.remove("mwDragging"),this.emit("nodemoved",{node:this._currentTarget,oldIndex:e,newIndex:this._getIndexOfNode(this._currentTarget)}),this._currentTarget=null,this.containerNodeWithinPopup&&this._parentMenuToBeFocused&&this._parentMenuToBeFocused.focusNode&&(this._parentMenuToBeFocused.focusNode.focus(),delete this._parentMenuToBeFocused)}this._mouseMoveHappened=!1}},_findNodesOnEitherSide:function(e){var t={left:[],right:[]},i=l.position(this.get("containerNode")),n=l.getPadBorderExtents(this.get("containerNode")),o=l.position(this._currentTarget);return o.x-i.x-n.l<=2?t.right=this._getCurrentTargetSiblings():i.x+i.w-o.x-o.w-n.l<=2?t.left=this._getCurrentTargetSiblings():this._getCurrentTargetSiblings().forEach((function(i){var n=l.position(i);("l"===e?o.x:o.x+o.w)>=n.x+n.w/2?t.left.push(i):t.right.push(i)})),t},_findNodesAboveAndBelow:function(e){var t={above:[],below:[]},i=l.position(this.get("containerNode")),n=l.getPadBorderExtents(this.get("containerNode")),o=l.position(this._currentTarget);return o.y-i.y-n.t<=2?t.below=this._getCurrentTargetSiblings():i.y+i.h-o.y-o.h-n.t<=2?t.above=this._getCurrentTargetSiblings():this._getCurrentTargetSiblings().forEach((function(i){var n=l.position(i);("u"===e?o.y:o.y+o.h)>=n.y+n.h/2?t.above.push(i):t.below.push(i)})),t},_getIndexOfNode:function(e){return Array.prototype.indexOf.call(this.get("containerNode").children,e)},_getCurrentTargetSiblings:function(){return[].slice.call(this.get("containerNode").children).filter((function(e){return e!==this._currentTarget}),this)},_getAncestorWhichIsADirectChildOfContainerNode:function(e){var t=null;if(e!==this.get("containerNode"))for(t=e;t.parentNode!==this.get("containerNode");)t=t.parentNode;return t},_moveCurrentTargetToNewLocation:function(){var e,t=null,i=l.position(this.get("containerNode")),n=l.getPadBorderExtents(this.get("containerNode")),o=l.position(this._currentTarget),r=e="horizontal"===this.get("dragOrientation")?o.x-(i.x+n.l):o.y-(i.y+n.t);this._getCurrentTargetSiblings().forEach(function(i){var n,r=l.position(i);(n="horizontal"===this.get("dragOrientation")?Math.abs(o.x-(r.x+r.w)):Math.abs(o.y-(r.y+r.h)))<e&&(t=i,e=n)}.bind(this)),e===r?s.place(this._currentTarget,this.get("containerNode"),"first"):s.place(this._currentTarget,t,"after")},_applyTranslateX:function(e,t){e.setAttribute("data-translated",t),m.forEach((function(i){e.style[i+"transform"]="translate("+t+"px, 0)"}))},_applyTranslateY:function(e,t){e.setAttribute("data-translated",t),m.forEach((function(i){e.style[i+"transform"]="translate(0, "+t+"px)"}))},_resetAllSiblingTranslateX:function(){this._getCurrentTargetSiblings().forEach((function(e){e.classList.add("mwNoTransition"),this._applyTranslateX(e,0),e.offsetHeight,e.classList.remove("mwNoTransition")}),this)},_resetAllSiblingTranslateY:function(){this._getCurrentTargetSiblings().forEach((function(e){e.classList.add("mwNoTransition"),this._applyTranslateY(e,0),e.offsetHeight,e.classList.remove("mwNoTransition")}),this)},destroy:function(){this._scrollListenerHandle&&this._scrollListenerHandle.remove(),this._mouseDownListenerHandle.remove(),this._mouseUpListenerHandle.remove(),this.get("containerNode").classList.remove("mwDragSortContainer"),s.destroy(this._dragSortOverlay)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(204),i(206),i(258),i(569)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{baseClass:"mwWidget mwTextField mwSearchTextField",_listeners:[],postCreate:function(){this.inherited(arguments),this.clearLink=t.create("div",{class:"clearTextContainerNode"},this.domNode),this.toggleSearchBoxIcon(),this.on("typing",i.hitch(this,this.toggleSearchBoxIcon)),r.isCJKLocale()&&this._listeners.push(r.addEventListener(this.inputNode,"compositionupdate",this._handleCompositionUpdate.bind(this))),this.watch("value",i.hitch(this,this.toggleSearchBoxIcon)),this.own(n(this.clearLink,"click",i.hitch(this,this._onClickClearButtonHandler)))},_handleCompositionUpdate:function(e){var t=""!==e.data;this._updateclearLink(t)},toggleSearchBoxIcon:function(){var e=""!==this.inputNode.value;this._updateclearLink(e)},_updateclearLink:function(e){e?(this.clearLink.classList.add("clearTextIconVisible"),this.clearLink.setAttribute("tabindex","0")):(this.clearLink.classList.remove("clearTextIconVisible"),this.clearLink.removeAttribute("tabindex"))},_onClickClearButtonHandler:function(){this.set("value",""),this._triggerTypingEvent(""),this.toggleSearchBoxIcon(),this.focusNode.focus()},destroy:function(){this._listeners.forEach((function(e){e.remove()})),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(238),i(377)],o=i.dj.d(n,(function(e,t,i){return e(null,{postCreate:function(){this.inherited(arguments),this.set("menuOrientation","below")},closeMenu:function(e){this.domNode.classList.contains("mwPopupMenuItem")||(i.isAvailable()?(this.get("preventRestoreFocus")||this.emit("restorefocus"),this._handleClosingPopup(e),this._setAriaExpanded()):this.inherited(arguments))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1073)],o=i.dj.d(n,(function(e,t){var i=e(null,{_setTextAttr:function(){this.inherited(arguments),this.buttonNode.removeAttribute("aria-labelledby");var e=this.get("id");if(e){var t=this.get("id")+"_textLineLabel";if(this.textLine.setAttribute("id",t),this.focusNode.setAttribute("aria-labelledby",t),"button"===this.buttonNode.getAttribute("role")){var i=this.textLine.getAttribute("data-text-content");this.buttonNode.setAttribute("aria-label",i)}}}});return i._dependencies=[{mixin:t,orderDependent:!0}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){this._wrappers={},this._childrenWidgets=[]},addChild:function(e,i){var n=t.create("div",{id:e.id+"_wrapper",class:"toolstripComponentWrapper"},this.containerNode,i);i>=0?this._childrenWidgets.splice(i,0,e):this._childrenWidgets.push(e),this.own(e),t.place(e.domNode,n),this._started&&!e._started&&e.startup(),this._wrappers[e.id]=n},removeChild:function(e){var i,n=this._wrappers[e.id];this._childrenWidgets.forEach((function(t,n){e.id===t.id&&(i=n)})),this._childrenWidgets.splice(i,1),n&&(e.domNode&&n.removeChild(e.domNode),t.destroy(n),delete this._wrappers[e.id])},getChildren:function(){return this._childrenWidgets}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(272),i(231),i(1282),i(870),i(1284),i(1286),i(1285),i(351),i(335),i(259),i(3116)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(h.validate([t,n,r,a,s,l,i,d,c,u]),{baseClass:"mwWidget mwMenuPanel",templateString:p,maxHeight:100,postCreate:function(){this.inherited(arguments);var e=function(e){return relativeNodes={},this.getParent()?(relativeNodes.parent=this.getParent(),relativeNodes.parent._lastDirection&&(relativeNodes.direction=relativeNodes.parent._lastDirection),this.getParent()._findFocusableChild?(relativeNodes.nextNode=relativeNodes.parent._findFocusableChild(this.domNode,!1,"next"),relativeNodes.previousNode=relativeNodes.parent._findFocusableChild(this.domNode,!1,"previous")):this._findFocusableChild&&this.domNode.contains(document.activeElement)?(relativeNodes.nextNode=this._findFocusableChild(document.activeElement,!1,"next"),relativeNodes.previousNode=this._findFocusableChild(document.activeElement,!1,"previous")):(relativeNodes.nextNode=this.domNode.nextElementSibling,relativeNodes.previousNode=this.domNode.previousElementSibling)):(relativeNodes.nextNode=this.domNode.nextElementSibling,relativeNodes.previousNode=this.domNode.previousElementSibling),relativeNodes.nextNode&&relativeNodes.nextNode.classList.contains("mwMenuPanel")&&0===relativeNodes.nextNode.childElementCount&&(relativeNodes.nextNode=null),relativeNodes.previousNode&&relativeNodes.previousNode.classList.contains("mwMenuPanel")&&0===relativeNodes.previousNode.childElementCount&&(relativeNodes.previousNode=null),0!==this.domNode.childElementCount&&(this._findFocusableChild?(relativeNodes.firstNode=this._findFocusableChild(this.domNode,!1,"next"),relativeNodes.lastNode=this._findFocusableChild(this.domNode,!1,"previous")):(relativeNodes.firstNode=this.domNode.firstElementChild,relativeNodes.lastNode=this.domNode.lastElementChild),relativeNodes.firstNode===this.domNode&&(relativeNodes.firstNode=null),relativeNodes.lastNode===this.domNode&&(relativeNodes.lastNode=null)),e&&e.target?relativeNodes.fromNode=e.target:relativeNodes.fromNode=document.activeElement,relativeNodes}.bind(this);this._focusHandler=function(t){var i,n,o,r,a,s,l;if(t.target===this.domNode&&this.getParent())if(n=(i=e(t)).direction,o=i.firstNode,r=i.lastNode,a=i.nextNode,s=i.previousNode,n)switch(n){case"up":r?r.focus():s?s.focus():i.parent.focus();break;case"down":o?o.focus():a?a.focus():i.parent.focus();break;case"top":o?o.focus():a?i.parent.focusNext():i.parent.focus();break;case"bottom":r?r.focus():s?i.parent.focusPrevious():i.parent.focus();break;default:o.focus()}else(l=i.fromNode)===s?o.focus():l===a?r.focus():this.getParent()._findFocusableChild()===this.domNode?o.focus():r.focus()}.bind(this),this._keyDownHandler=function(t){var i,n,o,r;this.getParent()&&(i=e(t),nextNode=i.nextNode,n=i.previousNode,o=i.firstNode,r=i.lastNode,40===t.keyCode&&t.target===r?(this.getParent()._lastDirection="down",nextNode.focus(),t.preventDefault(),t.stopImmediatePropagation()):40!==t.keyCode||this.getParent()._findFocusableChild?38===t.keyCode&&t.target===o?(this.getParent()._lastDirection="up",n.focus(),t.preventDefault(),t.stopImmediatePropagation()):38!==t.keyCode||this.getParent()._findFocusableChild?9===t.keyCode&&(t.shiftKey&&t.target===o?(this.getParent()._lastDirection="up",n.focus(),t.preventDefault(),t.stopImmediatePropagation()):t.shiftKey||t.target!==r||(this.getParent()._lastDirection="down",nextNode.focus(),t.preventDefault(),t.stopImmediatePropagation())):(n.focus(),t.preventDefault()):(nextNode.focus(),t.preventDefault()))}.bind(this),this.domNode.addEventListener("focus",this._focusHandler,!0),this.domNode.addEventListener("keydown",this._keyDownHandler,!0),this.domNode.addEventListener("synkeydown",this._keyDownHandler,!0)},closeRequest:function(e){var t=this._getParentWidget();null!=t&&t.closeRequest&&(t._closeEventData?t._closeEventData.mwEventData?t._closeEventData.mwEventData.gainedFocusWidget=null:t._closeEventData.mwEventData={gainedFocusWidget:null}:t._closeEventData={mwEventData:{gainedFocusWidget:null}},t.closeRequest(e||!1))},_focusChange:function(e){var t=this._getParentWidget();null!=t&&t._focusChange&&(t._closeEventData?t._closeEventData.mwEventData?t._closeEventData.mwEventData.gainedFocusWidget=e:t._closeEventData.mwEventData={gainedFocusWidget:e}:t._closeEventData={mwEventData:{gainedFocusWidget:e}},t._focusChange(e))},_getParentWidget:function(){return o.getEnclosingWidget(this.domNode.parentNode)},destroy:function(){this.domNode&&(this.domNode.removeEventListener("focus",this._focusHandler,!0),this.domNode.removeEventListener("keydown",this._keyDownHandler,!0),this.domNode.removeEventListener("synkeydown",this._keyDownHandler,!0)),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(227),i(213),i(228),i(1696),i(210),i(211),i(217)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e.byId=t.byId,e.isDescendant=t.isDescendant,e.setSelectable=t.setSelectable,e.getAttr=n.get,e.setAttr=n.set,e.hasAttr=n.has,e.removeAttr=n.remove,e.getNodeProp=n.getNodeProp,e.attr=function(e,t,i){return 2==arguments.length?n["string"==typeof t?"get":"set"](e,t):n.set(e,t,i)},e.hasClass=r.contains,e.addClass=r.add,e.removeClass=r.remove,e.toggleClass=r.toggle,e.replaceClass=r.replace,e._toDom=e.toDom=a.toDom,e.place=a.place,e.create=a.create,e.empty=function(e){a.empty(e)},e._destroyElement=e.destroy=function(e){a.destroy(e)},e._getPadExtents=e.getPadExtents=s.getPadExtents,e._getBorderExtents=e.getBorderExtents=s.getBorderExtents,e._getPadBorderExtents=e.getPadBorderExtents=s.getPadBorderExtents,e._getMarginExtents=e.getMarginExtents=s.getMarginExtents,e._getMarginSize=e.getMarginSize=s.getMarginSize,e._getMarginBox=e.getMarginBox=s.getMarginBox,e.setMarginBox=s.setMarginBox,e._getContentBox=e.getContentBox=s.getContentBox,e.setContentSize=s.setContentSize,e._isBodyLtr=e.isBodyLtr=s.isBodyLtr,e._docScroll=e.docScroll=s.docScroll,e._getIeDocumentElementOffset=e.getIeDocumentElementOffset=s.getIeDocumentElementOffset,e._fixIeBiDiScrollLeft=e.fixIeBiDiScrollLeft=s.fixIeBiDiScrollLeft,e.position=s.position,e.marginBox=function(e,t){return t?s.setMarginBox(e,t):s.getMarginBox(e)},e.contentBox=function(e,t){return t?s.setContentSize(e,t):s.getContentBox(e)},e.coords=function(n,o){e.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox()."),n=t.byId(n);var r=i.getComputedStyle(n),a=s.getMarginBox(n,r),l=s.position(n,o);return a.x=l.x,a.y=l.y,a},e.getProp=o.get,e.setProp=o.set,e.prop=function(e,t,i){return 2==arguments.length?o["string"==typeof t?"get":"set"](e,t):o.set(e,t,i)},e.getStyle=i.get,e.setStyle=i.set,e.getComputedStyle=i.getComputedStyle,e.__toPixelValue=e.toPixelValue=i.toPixelValue,e.style=function(e,t,n){switch(arguments.length){case 1:return i.get(e);case 2:return i["string"==typeof t?"get":"set"](e,t)}return i.set(e,t,n)},e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(245),i(242),i(217),i(213),i(279)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a={};e.setObject("dojo.dnd.autoscroll",a),a.getViewport=r.getBox,a.V_TRIGGER_AUTOSCROLL=32,a.H_TRIGGER_AUTOSCROLL=32,a.V_AUTOSCROLL_VALUE=16,a.H_AUTOSCROLL_VALUE=16;var s,l=i.doc,c=1/0,d=1/0;return a.autoScrollStart=function(e){l=e,s=r.getBox(l);var t=i.body(l).parentNode;c=Math.max(t.scrollHeight-s.h,0),d=Math.max(t.scrollWidth-s.w,0)},a.autoScroll=function(e){var t=s||r.getBox(l),n=i.body(l).parentNode,o=0,u=0;e.clientX<a.H_TRIGGER_AUTOSCROLL?o=-a.H_AUTOSCROLL_VALUE:e.clientX>t.w-a.H_TRIGGER_AUTOSCROLL&&(o=Math.min(a.H_AUTOSCROLL_VALUE,d-n.scrollLeft)),e.clientY<a.V_TRIGGER_AUTOSCROLL?u=-a.V_AUTOSCROLL_VALUE:e.clientY>t.h-a.V_TRIGGER_AUTOSCROLL&&(u=Math.min(a.V_AUTOSCROLL_VALUE,c-n.scrollTop)),window.scrollBy(o,u)},a._validNodes={div:1,p:1,td:1},a._validOverflow={auto:1,scroll:1},a.autoScrollNodes=function(e){for(var r,s,l,c,d,u,h=0,p=0,f=e.target;f;){if(1==f.nodeType&&f.tagName.toLowerCase()in a._validNodes){var g=o.getComputedStyle(f),m=g.overflow.toLowerCase()in a._validOverflow,_=g.overflowX.toLowerCase()in a._validOverflow,v=g.overflowY.toLowerCase()in a._validOverflow;if((m||_||v)&&(r=n.getContentBox(f,g),s=n.position(f,!0)),(m||_)&&(l=Math.min(a.H_TRIGGER_AUTOSCROLL,r.w/2),d=e.pageX-s.x,(t("webkit")||t("opera"))&&(d+=i.body().scrollLeft),h=0,d>0&&d<r.w&&(d<l?h=-l:d>r.w-l&&(h=l),f.scrollLeft,f.scrollLeft=f.scrollLeft+h)),(m||v)&&(c=Math.min(a.V_TRIGGER_AUTOSCROLL,r.h/2),u=e.pageY-s.y,(t("webkit")||t("opera"))&&(u+=i.body().scrollTop),p=0,u>0&&u<r.h&&(u<c?p=-c:u>r.h-c&&(p=c),f.scrollTop,f.scrollTop=f.scrollTop+p)),h||p)return}try{f=f.parentNode}catch(e){f=null}}a.autoScroll(e)},a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1329),i(449),i(435),i(466),i(570),i(518),i(711),i(1319),i(1073),i(792),i(436),i(332),i(412),i(895),i(1322),i(1074),i(545),i(370),i(519),i(710),i(793),i(1803),i(1323),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S){return e(S.validate([t,i,n,o,r,a,s,l,c,d,u,h,p,v,b,f,m,g,_,y,C,T,E]),{visualFamily:"default",minWidth:38,resize:function(){this.inherited(arguments);var e="Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&navigator.appVersion.indexOf("Edge")>-1;e&&(this._updateTextNodeWidth(),this.own(this.watch("text",this._updateTextNodeWidth)))},_updateTextNodeWidth:function(){this.textNode&&!this.textNode.classList.contains("mwEmptyNode")&&this.domNode.classList.contains("mwHorizontalOrientation")&&setTimeout(function(){this.textNode&&(this.textNode.style.width="",this.textNode.style.width=Math.ceil(parseFloat(window.getComputedStyle(this.textNode,null).width))+"px")}.bind(this),0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(215),i(360),i(307),i(216),i(351),i(654),i(1043),i(352),i(330),i(653),i(432),i(893),i(343),i(1798),i(353),i(335),i(433),i(607),i(1318),i(421),i(545),i(1070),i(894),i(1071),i(791),i(1799),i(1800),i(1801),i(1802),i(259),i(1072)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M){return e(D.validate([i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L]),{baseClass:"mwWidget mwSplitButton",templateString:M,buildRendering:function(){this.inherited(arguments),this.domNode.addEventListener("click",function(e){e.target===this.domNode&&(e.preventDefault(),e.stopImmediatePropagation(),this.isMenuOpen()&&this.closeMenu())}.bind(this),!0)},cssStateNodes:{buttonNode:"mwButtonNode",dropDownNode:"mwDropDownNode"},_qeClick:function(){t.emit(this.buttonNode,"click",{bubbles:!0,cancelable:!0,detail:{widget:this}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(790),i(466),i(519),i(897)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i,n,o],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(223),i(238),i(215),i(216),i(316),i(360),i(307),i(514),i(258),i(872),i(351),i(330),i(370),i(873),i(874),i(353),i(335),i(875),i(876),i(421),i(877),i(259),i(433),i(3161)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){return e(S.validate([r,a,s,l,c,g,_,m,v,h,p,f,b,y,C,T,E,w]),{baseClass:"mwWidget mwSharedMenuItem mwTextFieldMenuItem",templateString:I,closeOnEnter:!0,editable:!0,placeholder:"",constructor:function(){this.textField=new u({value:""}),this.own(this.textField)},_setPlaceholderAttr:function(e){this.textField.set("placeholder",e),this._set("placeholder",e)},_getPlaceholderAttr:function(e){return this.textField.get("placeholder")},_setValueAttr:function(e){this.textField.set("value",e),this._set("value",e)},_setEditableAttr:function(e){this.textField.set("editable",e),this._set("editable",e)},_setDisabledAttr:function(e){this.textField.set("disabled",e),this.inherited(arguments)},_getValueAttr:function(){return this.textField.get("value")},_getEditableAttr:function(){return this.textField.get("editable")},buildRendering:function(){this.inherited(arguments),this.textFieldWrapperNode.appendChild(this.textField.domNode),this.inputNode=this.textField.inputNode,this.inputNode.classList.add("allowDefaultActions")},postCreate:function(){this.inherited(arguments),this.textField.on("change",t.hitch(this,(function(e){this.value!==e.mwEventData.newValue&&this.set("value",e.mwEventData.newValue)}))),this.own(i(this.textField.focusNode,"change",t.hitch(this,"_onChange")),i(this.textField.focusNode,"keydown",t.hitch(this,"_onKeyDown")),i(this.domNode,"focus",t.hitch(this,"_focusGained"))),this.domNode.classList.add("mwEditableMixin"),this._setEditableAttr(this.get("editable")),this._setPlaceholderAttr(this.get("placeholder")),this.domNode.setAttribute("data-composite-primary",""),this.domNode.setAttribute("spellcheck","false"),(this.textField.focusNode||this.textField.domNode).setAttribute("data-composite-child",""),(this.textField.focusNode||this.textField.domNode).setAttribute("data-composite-primary-id",this.get("id")),this.textField.domNode.setAttribute("data-composite-child",""),this.textField.domNode.setAttribute("data-composite-primary-id",this.get("id")),this.textField.focusNode.setAttribute("aria-labelledby",this.get("id"))},startup:function(){this.inherited(arguments),this.textField.startup()},_getDomNodeForValidationClasses:function(){return this.textField.domNode},_focusGained:function(e){this.focus&&d.isFocusable(this.focusNode||this.domNode)&&this.focus()},focus:function(){var e=this.focusNode||this.domNode;e.hasAttribute("data-composite-child")&&(e=document.getElementById(e.getAttribute("data-composite-primary-id"))),d.isFocusable(e)&&o.focus(this.getFocusNode())},getFocusNode:function(){return this.textField.focusNode},_onKeyDown:function(e){if(e.keyCode===n.TAB)e.preventDefault(),e.stopPropagation(),this.emit("synkeydown",{keyCode:n.TAB,shiftKey:e.shiftKey});else if(e.keyCode===n.ESCAPE)this.textField.inputNode.value=this.get("value"),this.emit("textcancelled",{mwEventData:{text:this.get("value")}}),e.preventDefault(),e.stopPropagation(),this._requestClose(!1);else if(e.keyCode===n.ENTER){var t=this.get("value"),i=this.textField.inputNode.value;t===i?this.emit("recommit",{mwEventData:{propertyName:"value",value:i}}):(this.emit("commit",{mwEventData:{propertyName:"value",value:i}}),this.set("value",i),this.textField._triggerChangeEvent("value",t,i)),this.closeOnEnter&&!0===this.closeOnEnter&&this._requestClose(!1)}else e.keyCode!==n.HOME&&e.keyCode!==n.END||e.stopPropagation()},_handleInputNodeClick:function(){!1!==this.textField.get("editable")&&this.textField.inputNode.select()},_emitClickEvent:function(e){this.emit("click",{mwEventData:{value:this.get("value")},_dojo_click:!0}),e.target!==this.inputNode&&this.emit("itempushed")},_qeTypeOverWithEnter:function(e){this.textField._qeTypeOverWithEnter(e)},_qeTyping:function(e){this.textField._qeTyping(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(3172),i(768)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_updateDescription:function(){this.inherited(arguments),this._updateTooltip()},_setTextAttr:function(){this.inherited(arguments),this._updateTooltip()},_setShortcutAttr:function(e){this._set("shortcut",e),this._updateTooltip()},_updateTooltip:function(){var e="",t="",i="",n="",o="";this.textOverride?e=this.textOverride.replace(/\n/g," "):this.text&&(e=this.text.replace(/\n/g," ")),this.shortcut&&(t=this._getPlatformSpecificShortcutString()),this.descriptionOverride?i=this.descriptionOverride:this.description&&(i=this.description),!e&&t&&i?(e=i,i="",n=" "):e&&(t&&(n=" "),i&&(o=" - ")),this.domNode.setAttribute("title",e+n+t+o+i)},_getPlatformSpecificShortcutString:function(){return"("+n.getPlatformSpecificString(this.shortcut)+")"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(229),i(209)],o=i.dj.d(n,(function(e,t,i){let n=e([],{_supportedProperties:[],_getters:{},_setters:{},_intitialize:(e,t)=>{},_translators:{},_validators:{},_listeners:{},constructor:function(e){this._propertyWatchesMap=Object.create(null),this._windowListeners=new WeakMap,this._activeSetters=Object.create(null),this._windowListeners.set(this,Object.create(null)),this._intitialize(e),this._addListener(this.getSupportedProperties(),e&&e.details?e.details:void 0)},get:function(e,t){if(this.isSupportedProperty(e))return t=Object.assign({},t),this._getters[e].call(this,t);i.error('Invalid input values to "get".')},set:function(e,t,o){if(!this.isSupportedProperty(e)||this._validators[e]&&!this._validators[e].call(this,t))return void i.error('Invalid input values to "set".');o=Object.assign({},o);const r=this._callWatchers(e,t,o);return new Promise(async(i,a)=>{let s=!0;if(!(r||o.hasOwnProperty(n.SKIP_SETTER_DETAILS_PARAMETER)&&o[n.SKIP_SETTER_DETAILS_PARAMETER])){this._activeSetters[e]=!0;let i=await this._setters[e].call(this,t,o);delete this._activeSetters[e],this._addListener(e,o),"boolean"==typeof i&&(s=i)}s?i(!0):a(new Error('Internal error in "set".'))})},watch:function(e,o,r){if(!this.isSupportedProperty(e)||"function"!=typeof o||r&&r!==Object(r)||r&&r.hasOwnProperty(n.NAMESPACE_DETAILS_PARAMETER)&&"string"!=typeof r[n.NAMESPACE_DETAILS_PARAMETER]||r&&r.hasOwnProperty(n.CONDITION_DETAILS_PARAMETER)&&"string"!=typeof r[n.CONDITION_DETAILS_PARAMETER]&&[n.ALL_CONDITION,n.SELF_CONDITION,n.COMPLEMENT_CONDITION].indexOf(r[n.CONDITION_DETAILS_PARAMETER])>-1)return void i.error('Invalid input values to "watch".');const a=t.generateUuid();return e in this._propertyWatchesMap||(this._propertyWatchesMap[e]=Object.create(null)),o.details=Object.assign({[n.NAMESPACE_DETAILS_PARAMETER]:"globalPerWindow",[n.CONDITION_DETAILS_PARAMETER]:"all"},r),this._propertyWatchesMap[e][a]=o,{unwatch:()=>{delete this._propertyWatchesMap[e][a],Object.keys(this._propertyWatchesMap[e]).length<1&&delete this._propertyWatchesMap[e]}}},isSupportedProperty:function(e){return this.getSupportedProperties().indexOf(e)>-1},getSupportedProperties:function(){return this._supportedProperties.slice()},destroy:function(){let e=this._windowListeners.get(this);this.getSupportedProperties().forEach(t=>{e[t]&&e[t].remove()}),this._windowListeners.delete(this)},_addListener:function(e,t){if(e instanceof Array)return void e.forEach(e=>{this._addListener(e,t)});if(this.getSupportedProperties().indexOf(e)<0)return;this._removeListener(e);let i=this._windowListeners.get(this);t=Object.assign({},t),this._listeners[e]&&(i[e]=this._listeners[e].call(this,t))},_removeListener:function(e){if(e instanceof Array)return void e.forEach(e=>{this._removeListener(e)});let t=this._windowListeners.get(this);t&&t[e]&&(t[e].remove(),delete t[e])},_callWatchers:function(e,t,i){let o=0;if(e in this._propertyWatchesMap){for(let r in this._propertyWatchesMap[e]){let a=!0,s=this._propertyWatchesMap[e][r].details;switch(s[n.CONDITION_DETAILS_PARAMETER]){case"self":i[n.NAMESPACE_DETAILS_PARAMETER]!==s[n.NAMESPACE_DETAILS_PARAMETER]&&(a=!1);break;case"complement":i[n.NAMESPACE_DETAILS_PARAMETER]===s[n.NAMESPACE_DETAILS_PARAMETER]&&(a=!1)}a&&(o+=!!this._propertyWatchesMap[e][r](e,this._translators[e]?this._translators[e].call(this,t,i,s):t,s))}o=!!o}return o}});return n.CONDITION_DETAILS_PARAMETER="condition",n.NAMESPACE_DETAILS_PARAMETER="namespace",n.SKIP_SETTER_DETAILS_PARAMETER="skipSetter",n.ALL_CONDITION="all",n.SELF_CONDITION="self",n.COMPLEMENT_CONDITION="complement",n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(212),i(206),i(285),i(232),i(1051),i(304),i(798),i(467),i(1818)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d={},u={},h={};return window.DockingManager={_tabGroupFactories:[],createPackingList:function(e,t,i){var n,r,a,s,l={cssFiles:e.cssFiles||[],types:[],tabGroups:[],panels:[],documents:[],remote:{routingHost:o.getWorkerRoutingHost(),routingKey:o.getWorkerRoutingKey(),computeSessionId:o.getComputeSessionId()}};return t&&t.types&&(l.types=t.types,t.types.forEach((function(t){for(r in(n=e._getPropertiesForType(t)).set("_showGroupHeaderOverride",void 0),n.set("_disablePlusAction",void 0),n.tabGroupFactories)a=n.tabGroupFactories[r],l.tabGroups.push({tag:r,type:t,state:a.getState(),factoryPath:a.modulePath})}))),t&&t.panels&&t.panels.forEach((function(e){l.panels.push({region:e.properties.region,state:e.factory.getState(e.widget,e.properties),factoryPath:e.factory.modulePath})})),t&&t.documents&&t.documents.forEach((function(e){s=i?e.properties.isDocked:!e.properties.isDocked,l.documents.push({isDocked:s,isSelected:e.properties.isSelected,properties:e.properties===e.widget?null:e.properties,state:e.widget?e.factory.getState(e.widget,e.properties):e.state,factoryPath:e.factory.modulePath})})),l},savePackingList:function(e){var t=this._randomString(32);return t="_"+t,this._isUndocked?window.opener.DockingManager[t]=e:window.DockingManager[t]=e,t},retrievePackingList:function(e){return this._isUndocked?window.opener.DockingManager[e]:window.DockingManager[e]},discardPackingList:function(e){delete(this._isUndocked?window.opener:window).DockingManager[e]},setContainer:function(e){this._container=e},getContainer:function(){return this._container},setIsUndockedWindow:function(e){this._isUndocked=e},isUndockedWindow:function(){return!!this._isUndocked},spawnContainer:function(e,t,i,n,o,r){var a=this,l=s.openSynchronously({child:r,page:t||"/ui/webwidgets/src/js/MW/uiframework/uicontainer/undocked.html",initialData:n,closeHandler:function(e){var t=e.childWindow.DockingManager._container;t?t.destroyRecursive():a._closePackedDocuments(n),e.childWindow.DockingManager._tabGroupFactories.forEach((function(e){e.destroyWidget()}));var i=t.contentType;i&&"_singleDocument_"!==i&&d[i]&&delete d[i]}});if(!l)throw Error("Unable to create child window");return i&&"_childUI_"!==i&&"_singleDocument_"!==i&&this._setWindowForType(i,l),l},returnToOriginalContainer:function(e,t){(window.opener||window.parent).DockingManager.dockChild(t)},sendToUndockedContainer:function(e,t,i,n){if(this._windowForTypeExists(i)){var o=this._getWindowForType(i);o.DockingManager.addToContainer(o.DockingManager._container,n),o.focus()}else this.spawnContainer(e,t,i,n)},buildContainer:function(e,i){i.cssFiles&&r.loadFiles(i.cssFiles);var n=new c(i.parent.useWebpack),o=new t;if(i.containerFactoryPath)n.load([i.containerFactoryPath],(function(e){var t=(new e).createContainer({parentContainer:i.parent,contentType:"_childUI_",isDocked:i.isDocked,useWebpack:i.parent.useWebpack});u[t.id]=t.isDocked,h[t.id]=i.containerFactoryPath,o.resolve(t)}));else{var a=this.requiresToolstrip(i),s=new e(i.contentType,{title:i.title,reserveDocumentSpace:!0,showSingleDocumentTab:!0,offerDocumentMaximizeButton:!1,parentContainer:i.parent,enableQABCustomization:i.parent.enableQABCustomization,contentType:i.contentType,hasToolstrip:a,hasMnemonics:i.parent.hasMnemonics&&a,isDockable:this.isDockable(i),activeFullscreenDocument:i.activeFullscreenDocument,product:i.parent.product,scope:i.parent.scope,useWebpack:i.parent.useWebpack});this.addToContainer(s,i),o.resolve(s)}return o.promise},isDockable:function(e){var t=!0;return"_singleDocument_"===e.contentType?e.documents&&1==e.documents.length&&(t=!1!==e.documents[0].properties.isDockable):"_childUI_"!==e.contentType&&e.types&&1==e.types.length&&(t=!1!==e.parent.getDocumentTypeProperties(e.types[0]).isDockable),t},requiresToolstrip:function(e){return e.tabGroups&&e.tabGroups.length>0},addToContainer:function(e,t){var i;this._addTypesToContainer(e,t),delete t.types,t.documentContainerState&&(e._documentContainer?e._documentContainer.isEmpty()&&(i=!0,e._documentContainer.setState(t.documentContainerState)):e._documentContainerState=t.documentContainerState);var n=this._addTabGroupsToContainer(e,t);this._addPanelsToContainer(e,t);var o=this;n.then((function(){o._addDocumentsToContainer(e,t,i).then((function(){i&&e._documentContainer.endStateRestore()})).then((function(){e.parentContainer&&o._setVisibilityForUndockedWindow(t)}))}))},_setVisibilityForUndockedWindow:function(e){const{documents:t}=e;if(t.length<1)return;const i=t.filter(e=>e.properties&&!1===e.properties.get(a.IS_VISIBLE));t.length===i.length&&t[0].properties.setWindowVisibility(!1)},_closePackedDocuments:function(e){e.documents&&e.documents.forEach((function(e){e.properties.set(a.IS_OPEN,!1)}))},dockChild:function(e,t){t=t||this._container,this.addToContainer(t,e)},shouldDockUI:function(e){return!!u[e]},getUIFactoryPath:function(e){return h[e]},_addTypesToContainer:function(e,t){var i;t.types&&t.types.forEach(n=>{i=e._getPropertiesForType(n),t.contentType===n&&i.set(l.IS_DOCKED,!e.parentContainer),this.requiresToolstrip(t)||"_singleDocument_"===t.contentType||i.set("_showGroupHeaderOverride",!1),e._addDocumentType(n),"_singleDocument_"===t.contentType&&e._getPropertiesForType(n).set("_disablePlusAction",!0)}),e.parentContainer||"_singleDocument_"===t.contentType||e._getPropertiesForType(t.contentType).set("isDocked",!0)},_addTabGroupsToContainer:function(e,i){var n=this,o=new t;return i.tabGroups&&i.tabGroups.length>0?i.tabGroups.forEach((function(t){e.uiBuilder.tagToId(t.tag)?o.resolve():e.dynamicLoader.load([t.factoryPath],(function(i){var r=new i;n._tabGroupFactories.push(r),r.createWidget(e,t.state,e._getPropertiesForType(t.type)),o.resolve()}))})):o.resolve(),o.promise},_addPanelsToContainer:function(e,t){t.panels&&t.panels.length>0&&t.panels.forEach((function(i){e.dynamicLoader.load([i.factoryPath],(function(n){var o=new n,r=o.createProperties(e,i.state);t.activeFullscreenDocument&&r.setWindowingSystem({value:a.INLINE_FRAME_SYSTEM}),r.region=i.region,e.addPanel(null,r,o,i.state)}))}))},_addDocumentsToContainer:function(e,i,o){var s=new t,l=0;return i.documents&&i.documents.length>0?i.documents.forEach((function(t){e.dynamicLoader.load([t.factoryPath],(function(c){var d,u=new c;if(t.properties.region=t.region,t.properties.set("isDocked",t.isDocked),i.activeFullscreenDocument){const e=!(!t.properties.panelId&&!t.properties.isDocked);t.properties.setWindowingSystem({value:a.INLINE_FRAME_SYSTEM,options:{windowReady:e}})}t.properties.window.set("target",t.properties.isDocked?window:t.properties.__undockedWindow||window),r.loadFiles(u.getCssFiles()).then(()=>{d&&d.resize&&d.resize()}),n(u.createWidget(e,t.state,t.properties),(function(n){d=n,o||(delete t.properties.tile,delete t.properties.index),e.addDocument(n,t.properties),e.own(t.properties.watch(a.IS_SELECTED,(function(){t.properties.isDocked||window.focus()}))),++l===i.documents.length&&s.resolve()}))}))})):s.resolve(),s.promise},_setWindowForType:function(e,t){d[e]=t.name},_getWindowForType:function(e){var t=d[e];return t?s.getWindowByName(t):null},_windowForTypeExists:function(e){return!!this._getWindowForType(e)}},window.DockingManager.SINGLE_DOCUMENT_CONTENT="_singleDocument_",window.DockingManager.CHILD_UI_CONTENT="_childUI_",window.DockingManager}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return function(e){if(!e.widgetClass)throw new Error("The widgetClass object must have a widget widgetClass property");if(!e.name)throw new Error("The widgetDefinition object must have a name property");if(e.name.length<3||"mw-"!==e.name.substring(0,3))throw new Error("The widgetDefinition object must have a nameproperty starting with 'mw-'");var t=e.widgetClass;if(t._observedAttributes){var i=t._observedAttributes.slice(0);Object.defineProperty(t,"observedAttributes",{enumerable:!1,get:function(){return i}})}return customElements.define(e.name,t),function e(i){if(this instanceof e)throw new Error("Do not use 'w = new Widget()' to create a widget instance. Just use 'w = Widget()'");var n=new t;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o]);return n}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,i){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=s(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(i):o.value}})(e,t,i||e)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n=[i(3282)],o=i.dj.d(n,(function(e){var t=function(e){return e.constructor._observedAttributes||Object.prototype.hasOwnProperty.call(e,"init")},i=function(){};return function(e){function n(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),e=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?c(e):t}(this,s(n).call(this)),t(c(c(e)))&&(e._root=document.createDocumentFragment()),e}var o,d,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,e),o=n,(d=[{key:"init",value:function(){}},{key:"adoptedCallback",value:function(){t(this)||a(s(n.prototype),"adoptedCallback",this).call(this)}},{key:"attributeChangedCallback",value:function(){if(!t(this)){for(var e,i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];(e=a(s(n.prototype),"attributeChangedCallback",this)).call.apply(e,[this].concat(o))}}},{key:"disconnectedCallback",value:function(){t(this)||a(s(n.prototype),"disconnectedCallback",this).call(this)}},{key:"initialize",value:function(){t(this)||a(s(n.prototype),"initialize",this).call(this)}},{key:"connectedCallback",value:function(){t(this)?this._connectedCallbackRan||(this.init(),this.appendChild(this._root),delete this._root,this._connectedCallbackRan=!0):a(s(n.prototype),"connectedCallback",this).call(this)}},{key:"createRenderRoot",value:function(){return this}},{key:"emit",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.bubbles||!1,o=i.cancelable||!1,r=new CustomEvent(e,{detail:t||{},bubbles:n,cancelable:o});this.dispatchEvent(r)}},{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.addEventListener(e,t,n);var o=this.removeEventListener.bind(this,e,t,n);return{remove:function(){o(),o=i}}}}])&&r(o.prototype,d),u&&r(o,u),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(3283)],o=i.dj.d(n,(function(e,t){"use strict";var i=t,n=t;!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const e=HTMLElement,t=function(){return Reflect.construct(e,[],this.constructor)};window.HTMLElement=t,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}();var o,r=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())}))},s=function(e,t){var i,n,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},l=function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<i;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)n[o]=r[a];return n};window.JSCompiler_renameProperty=function(e,t){return e};var c={toAttribute:function(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},d=function(e,t){return t!==e&&(t==t||e==e)},u={attribute:!0,type:String,converter:c,reflect:!1,hasChanged:d},h=Promise.resolve(!0),p=function(e){function t(){var t=e.call(this)||this;return t._updateState=0,t._instanceProperties=void 0,t._updatePromise=h,t._hasConnectedResolver=void 0,t._changedProperties=new Map,t._reflectingProperties=void 0,t.initialize(),t}return r(t,e),Object.defineProperty(t,"observedAttributes",{get:function(){var e=this;this.finalize();var t=[];return this._classProperties.forEach((function(i,n){var o=e._attributeNameForProperty(n,i);void 0!==o&&(e._attributeToPropertyMap.set(o,n),t.push(o))})),t},enumerable:!1,configurable:!0}),t._ensureClassProperties=function(){var e=this;if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;var t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((function(t,i){return e._classProperties.set(i,t)}))}},t.createProperty=function(e,t){if(void 0===t&&(t=u),this._ensureClassProperties(),this._classProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var i="symbol"==typeof e?Symbol():"__"+e;Object.defineProperty(this.prototype,e,{get:function(){return this[i]},set:function(t){var n=this[e];this[i]=t,this._requestUpdate(e,n)},configurable:!0,enumerable:!0})}},t.finalize=function(){var e=Object.getPrototypeOf(this);if(e.hasOwnProperty("finalized")||e.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this)))for(var t=this.properties,i=0,n=l(Object.getOwnPropertyNames(t),"function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);i<n.length;i++){var o=n[i];this.createProperty(o,t[o])}},t._attributeNameForProperty=function(e,t){var i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0},t._valueHasChanged=function(e,t,i){return void 0===i&&(i=d),i(e,t)},t._propertyValueFromAttribute=function(e,t){var i=t.type,n=t.converter||c,o="function"==typeof n?n:n.fromAttribute;return o?o(e,i):e},t._propertyValueToAttribute=function(e,t){if(void 0!==t.reflect){var i=t.type,n=t.converter;return(n&&n.toAttribute||c.toAttribute)(e,i)}},t.prototype.initialize=function(){this._saveInstanceProperties(),this._requestUpdate()},t.prototype._saveInstanceProperties=function(){var e=this;this.constructor._classProperties.forEach((function(t,i){if(e.hasOwnProperty(i)){var n=e[i];delete e[i],e._instanceProperties||(e._instanceProperties=new Map),e._instanceProperties.set(i,n)}}))},t.prototype._applyInstanceProperties=function(){var e=this;this._instanceProperties.forEach((function(t,i){return e[i]=t})),this._instanceProperties=void 0},t.prototype.connectedCallback=function(){this._updateState=32|this._updateState,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)},t.prototype.disconnectedCallback=function(){},t.prototype.attributeChangedCallback=function(e,t,i){t!==i&&this._attributeToProperty(e,i)},t.prototype._propertyToAttribute=function(e,t,i){void 0===i&&(i=u);var n=this.constructor,o=n._attributeNameForProperty(e,i);if(void 0!==o){var r=n._propertyValueToAttribute(t,i);if(void 0===r)return;this._updateState=8|this._updateState,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._updateState=-9&this._updateState}},t.prototype._attributeToProperty=function(e,t){if(!(8&this._updateState)){var i=this.constructor,n=i._attributeToPropertyMap.get(e);if(void 0!==n){var o=i._classProperties.get(n)||u;this._updateState=16|this._updateState,this[n]=i._propertyValueFromAttribute(t,o),this._updateState=-17&this._updateState}}},t.prototype._requestUpdate=function(e,t){var i=!0;if(void 0!==e){var n=this.constructor,o=n._classProperties.get(e)||u;n._valueHasChanged(this[e],t,o.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==o.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,o))):i=!1}!this._hasRequestedUpdate&&i&&this._enqueueUpdate()},t.prototype.requestUpdate=function(e,t){return this._requestUpdate(e,t),this.updateComplete},t.prototype._enqueueUpdate=function(){return a(this,void 0,void 0,(function(){var e,t,i,n,o,r=this;return s(this,(function(a){switch(a.label){case 0:this._updateState=4|this._updateState,i=this._updatePromise,this._updatePromise=new Promise((function(i,n){e=i,t=n})),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,i];case 2:return a.sent(),[3,4];case 3:return a.sent(),[3,4];case 4:return this._hasConnected?[3,6]:[4,new Promise((function(e){return r._hasConnectedResolver=e}))];case 5:a.sent(),a.label=6;case 6:return a.trys.push([6,9,,10]),null==(n=this.performUpdate())?[3,8]:[4,n];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:return o=a.sent(),t(o),[3,10];case 10:return e(!this._hasRequestedUpdate),[2]}}))}))},Object.defineProperty(t.prototype,"_hasConnected",{get:function(){return 32&this._updateState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_hasRequestedUpdate",{get:function(){return 4&this._updateState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasUpdated",{get:function(){return 1&this._updateState},enumerable:!1,configurable:!0}),t.prototype.performUpdate=function(){this._instanceProperties&&this._applyInstanceProperties();var e=!1,t=this._changedProperties;try{(e=this.shouldUpdate(t))&&this.update(t)}catch(t){throw e=!1,t}finally{this._markUpdated()}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))},t.prototype._markUpdated=function(){this._changedProperties=new Map,this._updateState=-5&this._updateState},Object.defineProperty(t.prototype,"updateComplete",{get:function(){return this._getUpdateComplete()},enumerable:!1,configurable:!0}),t.prototype._getUpdateComplete=function(){return this._updatePromise},t.prototype.shouldUpdate=function(e){return!0},t.prototype.update=function(e){var t=this;void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((function(e,i){return t._propertyToAttribute(i,t[i],e)})),this._reflectingProperties=void 0)},t.prototype.updated=function(e){},t.prototype.firstUpdated=function(e){},"finalized",t.finalized=!0,t}(HTMLElement),f=function(){return(f=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var g=function(e,t,i){Object.defineProperty(t,i,e)},m=function(e,t){return{kind:"method",placement:"prototype",key:t.key,descriptor:e}},_="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),b=function(){function e(e,t){if(t!==v)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}return Object.defineProperty(e.prototype,"styleSheet",{get:function(){return void 0===this._styleSheet&&(_?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this.cssText},e}(),y=function(e){if(e instanceof b)return e.cssText;if("number"==typeof e)return e;throw new Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.")},C=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");var T=function(e){return e.flat?e.flat(1/0):function e(t,i){void 0===i&&(i=[]);for(var n=0,o=t.length;n<o;n++){var r=t[n];Array.isArray(r)?e(r,i):i.push(r)}return i}(e)},E=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return C(n,e),n.finalize=function(){e.finalize.call(this),this._styles=this.hasOwnProperty(JSCompiler_renameProperty("styles",this))?this._getUniqueStyles():this._styles||[]},n._getUniqueStyles=function(){var e=this.styles,t=[];Array.isArray(e)?T(e).reduceRight((function(e,t){return e.add(t),e}),new Set).forEach((function(e){return t.unshift(e)})):e&&t.push(e);return t},n.prototype.initialize=function(){e.prototype.initialize.call(this),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()},n.prototype.createRenderRoot=function(){return this.attachShadow({mode:"open"})},n.prototype.adoptStyles=function(){var e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?_?this.renderRoot.adoptedStyleSheets=e.map((function(e){return e.styleSheet})):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map((function(e){return e.cssText})),this.localName))},n.prototype.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)},n.prototype.update=function(i){var n=this;e.prototype.update.call(this,i);var o=this.render();o instanceof t.TemplateResult&&this.constructor.render(o,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((function(e){var t=document.createElement("style");t.textContent=e.cssText,n.renderRoot.appendChild(t)})))},n.prototype.render=function(){},n.finalized=!0,n.render=i.render,n}(p);Object.defineProperty(e,"SVGTemplateResult",{enumerable:!0,get:function(){return n.SVGTemplateResult}}),Object.defineProperty(e,"TemplateResult",{enumerable:!0,get:function(){return n.TemplateResult}}),Object.defineProperty(e,"html",{enumerable:!0,get:function(){return n.html}}),Object.defineProperty(e,"svg",{enumerable:!0,get:function(){return n.svg}}),e.CSSResult=b,e.LitElement=E,e.UpdatingElement=p,e.css=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var n=t.reduce((function(t,i,n){return t+y(i)+e[n+1]}),e[0]);return new b(n,v)},e.customElement=function(e){return function(t){return"function"==typeof t?function(e,t){return window.customElements.define(e,t),t}(e,t):function(e,t){return{kind:t.kind,elements:t.elements,finisher:function(t){window.customElements.define(e,t)}}}(e,t)}},e.defaultConverter=c,e.eventOptions=function(e){return function(t,i){return void 0!==i?function(e,t,i){Object.assign(t[i],e)}(e,t,i):function(e,t){return f(f({},t),{finisher:function(i){Object.assign(i.prototype[t.key],e)}})}(e,t)}},e.notEqual=d,e.property=function(e){return function(t,i){return void 0!==i?function(e,t,i){t.constructor.createProperty(i,e)}(e,t,i):function(e,t){return"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?f(f({},t),{finisher:function(i){i.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer:function(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher:function(i){i.createProperty(t.key,e)}}}(e,t)}},e.query=function(e){return function(t,i){var n={get:function(){return this.renderRoot.querySelector(e)},enumerable:!0,configurable:!0};return void 0!==i?g(n,t,i):m(n,t)}},e.queryAll=function(e){return function(t,i){var n={get:function(){return this.renderRoot.querySelectorAll(e)},enumerable:!0,configurable:!0};return void 0!==i?g(n,t,i):m(n,t)}},e.supportsAdoptingStyleSheets=_,e.unsafeCSS=function(e){return new b(String(e),v)},Object.defineProperty(e,"__esModule",{value:!0})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({XSMALL:"xsmall",SMALL:"small",MEDIUM:"medium",LARGE:"large",XLARGE:"xlarge"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({SPINNER:"spinner"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209)],o=i.dj.d(n,(function(e,t){var i={DEFAULT:"default",BASE:"base",CUSTOM:"custom"},n=e(null,{constructor:function(e,t){this._actionIds=e.slice(),this._type=t||i.DEFAULT},getActionIds:function(){return this._actionIds.slice()},contains:function(e){return this._actionIds.indexOf(e)>-1},addActionId:function(e){this._actionIds.push(e)},moveActionIdToFront:function(e){if(this.contains(e)){for(var i=0;i<this._actionIds.length;i++)if(e===this._actionIds[i]){this._actionIds.splice(i,1);break}this._actionIds.unshift(e)}else t.error("Cannot move actionId to front. Group does not contain given actionId: "+e)},removeActionId:function(e){for(var i=0;i<this._actionIds.length;i++)if(e===this._actionIds[i])return this.isBase()||1!==this._actionIds.length?void this._actionIds.splice(i,1):void t.error("An action group must have at least one action")},replaceActionIds:function(e){this.isBase()||0!==e.length?this._actionIds=e.slice():t.error("An action group must have at least one action")},isCustom:function(){return this._type===i.CUSTOM},isDefault:function(){return this._type===i.DEFAULT},isBase:function(){return this._type===i.BASE}});return n.TYPE=i,n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(208),i(245),i(768),i(209),i(799)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l={addLabelsForActionService:function(e){new d(e)},updateActionLabel:function(e,t,i){var n=o("mac"),r=u(i,n);r=r||"",e.updateAction(t,{shortcut:r})},_getInternalsForTesting:function(){return{synchronizers:c,_getPlatformString:u}}};const c=new Map;var d=t(e,{constructor:function(e){this._actionService=e,this._actionService.getAllActions().forEach((function(e){this._addLabelToAction(e)}),this),c.has(this._actionService)||(this.own(n.after(this._actionService,"addAction",i.hitch(this,"_addLabelToAction"),!0)),this.own(n.before(this._actionService,"removeAction",i.hitch(this,"_removeLabelFromAction"))),this.own(n.before(this._actionService,"destroy",i.hitch(this,"_handleActionServiceDestroy"))),c.set(e,this))},_addLabelToAction:function(e){var t=this._createLabel(e);t&&this._actionService.updateAction(e.id,{shortcut:t})},_createLabel:function(e){var t=null,i=!1;if(o("mac")){var n=e.platformShortcut,r=e.platformKey;n&&n.mac?t=n.mac:r&&r.mac&&(t=r.mac,i=!0)}else e.key&&(t=e.key);return u(t,i)},_removeLabelFromAction:function(e){this._actionService.updateAction(e,{shortcut:""})},_handleActionServiceDestroy:function(){var e=this._actionService.getAllActions();e&&e.forEach((function(e){this._removeLabelFromAction(e.id)}),this),c.delete(this._actionService),this.destroy()}}),u=function(e,t){if(e){var i={dontConvertCtrlToCmd:t,sortModifiers:!0};return e.split(s.SEQUENCE_SEPARATOR_REGEX).map((function(e){return r.getPlatformSpecificString(e,i)}),this).join(", ")}return null};return l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){this._elements=[],this.size=0},set:function(e,t){var i=this._getElement(e);return i?i.value=t:(this._elements.push({key:e,value:t}),this.size+=1),this},get:function(e){var t=this._getElement(e);if(t)return t.value},has:function(e){return!!this._getElement(e)},clear:function(){this._elements=[],this.size=0},delete:function(e){var t=this._findElement(e);return t>=0&&(this._elements.splice(t,1),this.size-=1,!0)},forEach:function(e,t){for(var i,n=0;n<this._elements.length;n++)i=this._elements[n],e.call(t,i.value,i.key,this)},_getElement:function(e){var t=this._findElement(e);return t>=0?this._elements[t]:null},_getElements:function(){return this._elements},_findElement:function(e){for(var t=0;t<this._elements.length;t++){if(this._elements[t].key===e)return t}return-1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(229),i(207),i(362)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_HIGHLIGHT_CSS_CLASS:"",PRIORITY:1,constructor:function(e,t){this._internalDocument=e,this._decorationTimeout=null,this._decorator=t.createDecorator(this.PRIORITY),this._decorator.registerUpdateCallback(this._updateDecorationOnLine.bind(this)),this._lastVariableInstances=[]},_updateDecorationOnLine:function(e,t){o.updateClassesByLineDecorationInfo(e,t,[this._HIGHLIGHT_CSS_CLASS],this._decorator,this._internalDocument)},onModelUpdated:function(e){},enable:function(){throw new Error("Unimplemented child class function: enable")},disable:function(){throw new Error("Unimplemented child class function: disable")},updateDecorations:function(e){this._clearTimeout(),e&&(this._isInstancesSameAsLast(e)||(0!==e.length?this._decorationTimeout=window.setTimeout(this._clearAndUpdateHighlights.bind(this,e),0):this._decorationTimeout=window.setTimeout(function(){this._clearHighlightingState()}.bind(this),0)))},_clearAndUpdateHighlights:function(e){if(this._shouldClearHighlights())this._clearHighlightingState();else{var t=this._getLineToDecorationInfoMap(e);this._updateDecorations(t),this._updateLastVariableInstances(e),this.onModelUpdated(e)}},_updateLastVariableInstances:function(e){this._lastVariableInstances=t.clone(e)},_getLineToDecorationInfoMap:function(e){const t={};return e.forEach(e=>{let i=t[e.startLine];i||(i=[],t[e.startLine]=i),i.push(e.startColumn,e.endColumn)}),t},_updateDecorations:function(e){this._decorator.updateLineRange(0,this._internalDocument.getMaxLineNumber()-1,e),this._decorator.applyChanges()},_clearDecorations:function(){this._decorator.clearAllLineRange(),this._decorator.applyChanges()},_clearHighlightingState:function(){this._clearDecorations(),this._lastVariableInstances=[],this.onModelUpdated([])},_updateHighlights:function(){throw new Error("Unimplemented API: _updateHighlights")},_shouldClearHighlights:function(){return!1},_clearTimeout:function(){this._decorationTimeout&&(window.clearTimeout(this._decorationTimeout),this._decorationTimeout=null)},_isInstancesSameAsLast:function(e){return 0===e.length&&0===this._lastVariableInstances.length||e.length===this._lastVariableInstances.length&&!e.some(e=>!this._lastVariableInstances.some(t=>this._instanceComparator(t,e)))},_instanceComparator:function(e,t){return e.startLine===t.startLine&&e.startColumn===t.startColumn&&e.endLine===t.endLine&&e.endColumn===t.endColumn},destroy:function(){this.inherited(arguments),this._clearTimeout()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(282),i(266),i(3445)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{constructor:function(e){this._range=new o(e.startPosition,e.endPosition),this._setupDescriptorMap(e.descriptorSettings)},_setupDescriptorMap:function(e){this._descriptorMap={},e&&e.length>0&&(e.forEach((function(e){var t=e.decorator,i=e.settings;this._createDescriptorForDecorator(t,i)}),this),this._recalculateDecoration())},addClass:function(e,t){this._getOrCreateAtomicDescriptor(t).addClass(e),this._recalculateDecoration()},setStyle:function(e,t,i){this._getOrCreateAtomicDescriptor(i).setStyle(e,t),this._recalculateDecoration()},addDomNode:function(e,t,i,n){this._getOrCreateAtomicDescriptor(n).addDomNode(e,t,i),this._recalculateDecoration()},removeClass:function(e,t){var i=this.getAtomicDescriptor(t);return!!i&&(i.removeClass(e),this._recalculateDecoration(),!0)},removeStyle:function(e,t){var i=this.getAtomicDescriptor(t);return!!i&&(i.removeStyle(e),this._recalculateDecoration(),!0)},removeDomNode:function(e,t){var i=this.getAtomicDescriptor(t);return!!i&&(i.removeDomNode(e),this._recalculateDecoration(),!0)},clear:function(e){return!!this._descriptorMap.hasOwnProperty(e.uid)&&(delete this._descriptorMap[e.uid],this._recalculateDecoration(),!0)},_getOrCreateAtomicDescriptor:function(e){var t=this.getAtomicDescriptor(e);return t||(t=this._createDescriptorForDecorator(e))},_createDescriptorForDecorator:function(e,t){var i=new r(t);return this._descriptorMap[e.uid]={decorator:e,descriptor:i},i},getAtomicDescriptor:function(e){var t=this._descriptorMap[e.uid];return t?t.descriptor:null},_recalculateDecoration:function(){var e=Object.keys(this._descriptorMap);if(0===e.length)this._replaceDecoration(null,null,null);else if(1===e.length){var t=this._descriptorMap[e[0]].descriptor;this._replaceDecoration(t.getStyles(),t.getClasses(),t.getDomNodes())}else{var i=this._getCombinedDecoration();this._replaceDecoration(i.styles,i.classes,i.domNodes)}},_getCombinedDecoration:function(){var e,i,n,o,r,a;return this._getSortedAtomicDescriptors().forEach((function(s){var l=s.getStyles();l&&(e?(i=i||this._cloneDecorationFromObjectMap(e),t.mixin(i,l)):e=l);var c=s.getClasses();c&&(n?(o=o||this._cloneDecorationFromObjectMap(n),t.mixin(o,c)):n=c);var d=s.getDomNodes();d&&(r?(a=a||this._cloneDecorationFromDomNodes(r),this._addDomNodes(a,d)):r=d)}),this),{styles:i||e,classes:o||n,domNodes:a||r}},_getSortedAtomicDescriptors:function(){return Object.keys(this._descriptorMap).map((function(e){return this._descriptorMap[e]}),this).sort((function(e,t){return e.decorator.priority()-t.decorator.priority()})).map((function(e){return e.descriptor}))},_cloneDecorationFromObjectMap:function(e){return JSON.parse(JSON.stringify(e))},_cloneDecorationFromDomNodes:function(e){var t=n.createMap();return this._addDomNodes(t,e),t},_addDomNodes:function(e,t){t.forEach((function(t,i){e.set(i,t)}),this)},_replaceDecoration:function(e,t,i){e&&Object.keys(e).length>0?this._styles=e:delete this._styles,t&&Object.keys(t).length>0?this._classes=t:delete this._classes,i&&i.size>0?this._domNodes=i:delete this._domNodes},merge:function(e){this.adjust(e.getEndOffset())},adjust:function(e){if(e<0)throw new Error("Invalid target offset");this._range.getEndPosition().setPosition(this.getStartNode(),e)},canMerge:function(e){return this._range.getEndPosition().isEqualTo(e.getRange().getStartPosition())&&this._hasSameDecoratorsWith(e)&&this.inherited(arguments)},_hasSameDecoratorsWith:function(e){var t=e.getDescriptorMap();if(Object.keys(this._descriptorMap).length!==Object.keys(t).length)return!1;var i=!0;return this._forEachDecoratorToDescriptor((function(e,n){t.hasOwnProperty(n.uid)||(i=!1)})),i},cloneSettings:function(){var e={},t=[];return this._forEachDecoratorToDescriptor((function(e,i){t.push({decorator:i,settings:e.cloneSettings()})})),e.descriptorSettings=t,e},_forEachDecoratorToDescriptor:function(e){Object.keys(this._descriptorMap).forEach((function(t){var i=this._descriptorMap[t];e(i.descriptor,i.decorator)}),this)},getRange:function(){return this._range},getStartNode:function(){return this._range.getStartPosition().getNode()},getStartOffset:function(){return this._range.getStartPosition().getOffset()},getEndNode:function(){return this._range.getEndPosition().getNode()},getEndOffset:function(){return this._range.getEndPosition().getOffset()},getDescriptorMap:function(){return this._descriptorMap},addChangeListener:function(e){this._range.getStartPosition().addChangeListener(e),this._range.getEndPosition().addChangeListener(e)},isDestroyed:function(){return this._destroyed},destroy:function(){this._destroyed=!0,this._range.getStartPosition().setLive(!1),this._range.getEndPosition().setLive(!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(219),i(1087),i(209)],o=i.dj.d(n,(function(e,t,i){return function(n){return n=n||e,{requestData:function(e,o,r,a,s){var l,c,d=new Promise((function(e,t){l=e,c=t}));return n.subscribe(o,(function e(s){if(n.unsubscribe(o,e,this),a(s.data))if(s.data.failure)i.error(s.data.message),c(s.data);else{var d=r(s.data);l(d)}else c(t.noData)}),this).then((function(){n.publish(e,s)})),d}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{debugContinue:function(){throw new Error("Unimplemented API: MW.rtc.plugins.debug.DebugActions.debugContinue")},debugStep:function(){throw new Error("Unimplemented API: MW.rtc.plugins.debug.DebugActions.debugStep")},debugStepIn:function(){throw new Error("Unimplemented API: MW.rtc.plugins.debug.DebugActions.debugStepIn")},debugStepOut:function(){throw new Error("Unimplemented API: MW.rtc.plugins.debug.DebugActions.debugStepOut")},debugExit:function(){throw new Error("Unimplemented API: MW.rtc.plugins.debug.DebugActions.debugExit")},debugPause:function(){throw new Error("Unimplemented API: MW.rtc.plugins.debug.DebugActions.debugPause")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(219)],o=i.dj.d(n,(function(e,t,i){return t(e,{_EVENT_MGR_NAMESPACE:"/eventmgr",constructor:function(e){this.messageService=e||i,this._mvmId=1,this._disposables=[]},_subscribe:function(e,t,i){var n=[this._EVENT_MGR_NAMESPACE,t,e].join("/");this.messageService.subscribe(n,i,this),this._disposables.push(function(){this.messageService.unsubscribe(n,i,this)}.bind(this))},_clearDisposables:function(){this._disposables.forEach((function(e){e()})),this._disposables=[]},destroy:function(){this.inherited(arguments),this._clearDisposables()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i){this._name=e,this._fullPath=t||null,this._lineNumber=i||0},getName:function(){return this._name},getFullPath:function(){return this._fullPath},getLineNumber:function(){return this._lineNumber},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(904)],o=i.dj.d(n,(function(e,t){return new t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(206),i(515),i(317),i(331),i(288),i(354),i(542),i(879),i(3579),i(451)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(d,{_MOUSE_EVT_NO_BUTTON:0,constructor:function(e){this._contextMenuModel=e},createContextMenu:function(e,t){const i=function(e){this.onOpen(this._getTargetElement(e.x-1,e.y))}.bind(this),n=function(){this._clearListeners(),this.onClose()}.bind(this),r=new o({targetNodes:[e],onOpen:function(t){e.parentNode&&e.parentNode.classList.add("layeredNode"),this._lastActiveElement=document.activeElement,this.inherited("onOpen",arguments),i(t)},onClose:function(){e.parentNode&&e.parentNode.classList.remove("layeredNode"),document.body.classList.contains("mwHasFocusManager")?this.emit("restorefocus"):this._lastActiveElement&&this._lastActiveElement.focus(),this._lastActiveElement=null,this.inherited("onClose",arguments),n()}});return this.own(this._addContextMenuListenerWithHandle(e,this._handleContextMenu.bind(this,r,t))),this._setDataTestId(r,e.hasAttribute("data-testid")?"contextMenu_"+e.getAttribute("data-testid"):"contextMenu_"+e.className),r},_handleContextMenu:function(e,t,i){i.preventDefault(),this._updateAndOpenMenu(e,t,i)&&i.stopPropagation()},_updateAndOpenMenu:function(e,t,i){const n=i.which!==this._MOUSE_EVT_NO_BUTTON?i.target:this._getTargetElement(i.x,i.y);return this.willOpen(e.targetNodes[0],n),this._contextMenuModel.updateGroupMenuItemsMap(n,t),this._resetMenu(e),!!this._buildMenu(e)&&(e.openMenu({x:i.x,y:i.y}),!this._hasParentWithAttribute(i.target,"data-reactid"))},_resetMenu:function(e){e.getChildren().forEach(e=>{e.destroyRecursive(),e.menu&&(this._resetMenu(e.menu),e.menu.destroyRecursive())})},_buildMenu:function(e){const t=this._contextMenuModel.getOrderedGroupList()||[];let i=1;const n=t.length;return this._menuItemListeners=[],t.forEach(t=>{const o=this._contextMenuModel.getMenuItemInfoForGroup(t);if(!(o instanceof Array)||0===o.length)return;let r=!1;o.forEach(t=>{if(t.label){const i=this._createMenuItem(t);e.addChild(i),r=!0}}),r&&i<n&&(e.addChild(new s),i+=1)}),e.getChildren().length>0},_getTargetElement:function(e,t){return document.elementFromPoint(e,t)},_createMenuItem:function(e){var t,o={text:e.label.replace(/<[^>]+>/g,""),shortcut:e.shortcut||"",disabled:!e.enabled,closeMenuOnClick:!0},d=u.DEFAULT;switch(e.hasOwnProperty("type")&&(d=e.type),d){case u.SEPARATOR:t=new s;break;case u.CHECKBOX:o.checked=e.selected,t=new n(o);break;case u.RADIOBUTTON:o.checked=e.selected,t=new c(o);break;case u.POPUP:o.closeMenuOnClick=!1,o.menu=new r({}),e.children.forEach(e=>{const t=this._createMenuItem(e);o.menu.addChild(t)}),o.menu.getChildren().length>0&&(o.disabled=void 0!==e.enabled&&!e.enabled),t=new l(o);break;default:t=new a(o)}return i(t.domNode,"click",e.callback),e.onFocusItemCallback&&i(t.domNode,"focus",e.onFocusItemCallback),e.onBlurItemCallback&&i(t.domNode,"blur",e.onBlurItemCallback),this._createMenuItemActionListener(t,e.id,e.actionService),this._setDataTestId(t,"contextMenu_"+e.id),t},_createMenuItemActionListener:function(e,i,n){if(!n)return;const o=t.after(n,"onActionChange",(function(t){if(t.id===i)switch(t.key){case"enabled":e.set("disabled",!t.newValue);break;case"text":e.set("text",t.newValue);break;case"selected":e.set("checked",t.newValue)}}),!0);this._menuItemListeners.push(o)},_addContextMenuListenerWithHandle:function(e,t){return e.addEventListener("contextmenu",t),{remove:function(){e.removeEventListener("contextmenu",t)}}},_hasParentWithAttribute:function(e,t){if(e.hasAttribute("closest"))return!!e.closest(t);for(;e;){if(e.hasAttribute(t))return!0;e=e.parentElement}return!1},_setDataTestId:function(e,t){e.set("data-testid",t)},_clearListeners:function(){this._menuItemListeners&&(this._menuItemListeners.forEach(e=>{e.remove()}),this._menuItemListeners=null)},destroy:function(){this.inherited(arguments),this._clearListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{generateRgbaCssString:function(e,t,i,n){return 1===n?"rgb("+[e,t,i].join(", ")+")":"rgba("+[e,t,i,n].join(", ")+")"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(212),i(209),i(314)],o=i.dj.d(n,(function(e,t,i,n){return{copyFromDocument:function(e,t,i){return!!i.hasSelection()&&this.copyFromDocumentWithPosition(e,t,i.getSelection())},copyContent:function(o,r){var a=[];a.push({flavor:n.TEXT,content:r.text}),a.push({flavor:n.COPY_FOR_COMMAND_WINDOW,content:r.text}),r.serializedObject&&a.push({flavor:n.MATLAB_RICHTEXT,content:r.serializedObject}),r.html&&a.push({flavor:n.HTML,content:r.html}),r.imageList&&a.push({flavor:n.IMAGE_LIST,content:r.imageList});var s=o.setClipboardData(a),l=new t;return s.then(e.hitch(this,(function(){l.resolve()})),(function(){i.assert(!1,"[Unsuccessful Copy] The data could not be copied successfully"),l.reject()})),l},cutFromDocument:function(e,t,n,o,r){if(!this._prepareCursorsForEditing(o,r))return!1;this.cutFromDocumentWithPosition(e,n,r,o.getSelection()).then((function(){o.emitUpdate(!0)}),(function(){i.assert(!1,"[Unsuccessful Cut] Failure in Cut due to unsuccessful delete")}))},cutFromDocumentWithPosition:function(e,t,n,o){return this.copyFromDocumentWithPosition(e,t,o).then((function(){var e=n.startBlockEdit();o.forEach((function(e){e.getStartPosition().getNode().isReadOnly()||e.getEndPosition().getNode().isReadOnly()||n.deleteText(e.getStartPosition().getLine(),e.getStartPosition().getColumn(),e.getEndPosition().getLine(),e.getEndPosition().getColumn())})),n.endBlockEdit(e)}),(function(){i.assert(!1,"[Unsuccessful Cut] Failure in Cut due to unsuccessful copy")}))},copyFromDocumentWithPosition:function(e,t,n){var o=t.convertToClipboard(n),r=e.setClipboardData(o);return r.then((function(){}),(function(){i.assert(!1,"[Unsuccessful Copy] The data could not be copied successfully")})),r},_prepareCursorsForEditing:function(e,t){var i=!1;return e.getCursors().forEach((function(e){i=t.prepareCursorSelectionForEditing(e)||i})),i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(547),i(314),i(3594)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e,n,o,r,a){this._clipboardTempDirPath=n,this._internalDocument=o,this._view=r,this._decorationViewModel=a,e.registerNodeConverter(i,t.hitch(this,"_convertToHTML"))},_convertToHTML:function(e){var t=this._createHTMLData(e),i=[];return t.htmlStr&&(i.push({flavor:n.HTML,content:t.htmlStr}),t.imageList&&t.imageList.length&&i.push({flavor:n.IMAGE_LIST,content:t.imageList})),i},_createHTMLData:function(e){this._htmlWriter||(this._htmlWriter=new o);var t=this._write(e);return{htmlStr:t.htmlStr,imageList:t.imageList}},_write:function(e){var t={};if(this._clipboardTempDirPath){var i=this._htmlWriter.writeWithImageList(this._internalDocument,e,this._clipboardTempDirPath,null,this._view,this._decorationViewModel);t.htmlStr=i.html,t.imageList=i.images}else t.htmlStr=this._htmlWriter.write(this._internalDocument,e,null,this._view,this._decorationViewModel);return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{SOLID_LINE:"solid",DASHED_LINE:"dashed",NO_LINE:"none"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{FONT_UPSCALE:1.1,FONT_ASCENT:.75,FONT_XHEIGHT:.55,FONT_DESCENT:.25}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(212),i(210),i(211),i(213),i(204),i(221),i(3596),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=!1,c=!1;function d(){if(!l){l=!0;var e,t={id:"MathEquationFontLoaderScratch",class:"MathEquation",style:{position:"absolute",right:"-1000px",top:"-1000px",whiteSpace:"pre-wrap"}},i=n.create("span",t,document.body),d=n.create("span",{id:"FontLoaderSpan"},i),h={};h.minFontSize=(o.set(d,{fontSize:"2px",lineHeight:"normal"}),d.innerHTML="M",e=parseFloat(o.getComputedStyle(d)["font-size"]),o.set(d,{fontSize:"",lineHeight:""}),n.destroy(i),e);var p=this.webfontConfig||{};r.mixin(p,{timeout:2e4});var f={active:function(){g()},fontinactive:function(e,t){a("qtwebkitbrowser")?g():function(e){u.reject(e)}(e+t)},classes:!1,timeout:p.timeout,custom:{families:["STIXGeneral-webfont:n4,i4,n7,i7","STIXSizeOneSym-webfont","STIXSizeTwoSym-webfont","STIXSizeThreeSym-webfont","STIXSizeFourSym-webfont","STIXSizeFiveSym-webfont","STIXNonUnicode-webfont","STIXVariants-webfont","mwmathextregular","mwmathext1regular","mwmathext2regular","mwmathext3regular","mwmathext4regular","mwmathext5regular"],testStrings:{"STIXGeneral-webfont:n4,i4,n7,i7":"ABCXYZuvxyz","STIXSizeOneSym-webfont":"()[]{⏟","STIXSizeTwoSym-webfont":"()[]{⏟","STIXSizeThreeSym-webfont":"()[]{⏟","STIXSizeFourSym-webfont":"()[]{⏟","STIXSizeFiveSym-webfont":"⏞⏟","STIXNonUnicode-webfont":"","STIXVariants-webfont":"′←→",mwmathextregular:"",mwmathext1regular:"()[]G",mwmathext2regular:"()[]GG",mwmathext3regular:"()[]GG",mwmathext4regular:"()[]GG",mwmathext5regular:"()[]GG"}}};s.load(f)}function g(){c||u.resolve(h),c=!0}}var u=new t;return u.loading=function(){return l},u.then((function(){}),(function(){})),e.before(u,"then",d),e.before(u,"isResolved",d),e.before(u,"isRejected",d),e.before(u,"isFulfilled",d),u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(578),i(1358),i(1862),i(1868),i(1869),i(1870),i(1871),i(1872),i(1873),i(1092),i(1874),i(1875),i(1876),i(1359),i(400),i(618)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){var _="baseline",v={lim:function(e){var t=e[1]?e[1]:"";return e[1]?"limit".concat(" ","underScript"," ",t," ",_," "):"limit".concat(" ",_," ")},sum:function(e){var t=e[1]?e[1]:"",i=e[2]?e[2]:"";return"sigmaSum".concat(" ","underScript"," ",t," ","overScript"," ",i," ",_," ")},prod:function(e){var t=e[1]?e[1]:"",i=e[2]?e[2]:"";return"product".concat(" ","underScript"," ",t," ","overScript"," ",i," ",_," ")},integral:function(e){var t=e[1],i=e[2];return t&&i?"definiteIntegral".concat(" ",t," ","to"," ",i," ",_," "):t&&!i?"definiteIntegral".concat(" ","SubScript"," ",t," ",_," "):!t&&i?"definiteIntegral".concat(" "," SuperScript"," ",i," ",_," "):"integral".concat(" ",_," ")}};function b(t){var i="";return e.some(T,(function(e){return i=e(t)})),i}function y(e){return e.children.map((function(e){if(e)return b(e)}))}function C(e){if("string"==typeof e&&isNaN(Number(e)))return e+"th";var t="string"==typeof e?Number(e.split(" ").join("")):e,i=["th","st","nd","rd"],n=t%100;return t+(i[(n-20)%10]||i[n]||i[0])}var T=[];return T.push((function(e){if(e instanceof f){var i=t.escapeHTML(e.text);return"symbol"===e.kind&&(i=g.ariaLabel(e.symbolName)),i}})),T.push((function(e){if(e instanceof d||e instanceof c)return y(e).join(" ")})),T.push((function(e){if(e instanceof o)return e.open+y(e).join(" ")+e.close})),T.push((function(e){if(e instanceof r){var t=y(e);return e.linethickness&&!e.bevelled?"StartBinomial".concat(" ",t[0]," ","choose"," ",t[1]," ","EndBinomial"," "):"StartFraction".concat(" ",t[0]," ","over"," ",t[1]," ","EndFraction"," ")}})),T.push((function(e){if(e instanceof l){var t=y(e),i="",n="";if(t[1])n=C(t[1].split(" ").join(""));return i="3"===t[1]?"CubeRoot of".concat(" ",t[0]):t[1]&&"2"!==t[1]?n.concat(" ","RootOf"," ",t[0]):"SquareRootOf".concat(" ",t[0]),"StartRoot".concat(" ",i," ","EndRoot"," ")}})),T.push((function(e){if(e instanceof a){for(var t=[],i=e.cols,n=e.rows,o=String(n).concat(" ","by"," ",String(i)),r=y(e),s=0;s<r.length;s+=i){var l=r.slice(s,s+i).map((function(e,t){return C(t+1).concat(" ","Column"," ",e)}));t.push(l)}var c=t.map((function(e,t){return C(t+1).concat(" ","Row"," ",e.join(" "))}));return"Start".concat(" ",o," ","matrix"," ",c.join(" ")," ","EndMatrix"," ")}})),T.push((function(e){if(e instanceof n)return g.ariaLabel(e.symbolName)})),T.push((function(e){if(e instanceof u){var t=y(e),i=t[0]?t[0]:"",n=i.toLowerCase();if(n in v)return v[n](t);var o=t[2],r=t[1],a=r?"SubScript".concat(" ",r," "):"",s=o?" SuperScript".concat(" ",o," "):"";return r||"2"!==o&&2!==o?r||"3"!==o&&3!==o?!r&&o?i.concat(" ","toThePowerOf"," ",o," ",_," "):r&&!o?i.concat(" ","indexOf"," ",r," ",_," "):i.concat(a,s,_," "):i.concat(" ","Cubed"," ",_," "):i.concat(" ","Squared"," ",_," ")}})),T.push((function(e){if(e instanceof s){var t=y(e),i=t[3]?"PreSubScript".concat(" ",t[3]):"",n=t[4]?"PreSuperScript".concat(" ",t[4]):"",o=t[1]?"PostSubScript".concat(" ",t[1]):"",r=t[2]?"PostSuperScript".concat(" ",t[2]):"",a=t[0]?t[0]:"";return"StartMultiScript".concat(" ",i," ",n," ",a," ",o," ",r," ","EndMultiScript"," ")}})),T.push((function(e){if(e instanceof h)return"blank".concat(" ")})),T.push((function(e){if(e instanceof p)return y(e).join(" ")})),T.push((function(e){if(e instanceof i){var t=y(e);return t[0]?t[0]:""}})),{export:function(e){var t;if(1===e.length)t=e[0];else{t=m.createNode("MathRoot");for(var i=0;i<e.length;i+=1)t.children.push(e[i])}return(b(t)||"equation").replace(/\s+/g," ").trim()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(580),i(494),i(472)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(i,{constructor:function(e){e=e||{},this.className="MathAction",this.actiontype=e.actiontype},_exportMathML:function(e){var i=o.startTag(e,"maction",this,["actiontype"]);return e=t.mixin({},e),"symunit"===this.class&&(e.mathvariant="normal"),this.children.forEach((function(t){i+=t._exportMathML(e)})),i+=o.endTag("maction")},_exportLaTeX:function(e){var i="";return this.children.length>0&&(e=t.mixin({},e),"symunit"===this.class&&(e.mathvariant="normal"),i+=n.exportChild(this.children[0],e)),i},_stripQuotes:function(e){return e.length>2&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e},layout:function(e){var t,i,n=e.layoutChildren([this.children[0]]),o=e.parseBoxes("h{1}",n);return o.computeMetrics(),"tooltip"===this.actiontype&&"MathRow"===(t=this.children[1]).className&&1===t.children.length&&"MathText"===(i=t.children[0]).className&&(o.tooltip=this._stripQuotes(i.text)),o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1091),i(400),i(472),i(911),i(718),i(578)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";return e(i,{constructor:function(e){e=e||{},this.className="MathText",this.text=e.text,this.kind=e.kind,!this.kind&&e.hasOwnProperty("data-category")&&"placeholder-atom"===e["data-category"]&&(this.kind="placeholder"),this.symbolName=e.symbolName;var t=e.hasOwnProperty("stretchy")?e.stretchy:n.isStretchyOperatorByDefault(this.symbolName);"boolean"==typeof t&&(this.stretchy=t),this.TeXSpacing=e.TeXSpacing,this.accentType=e.accentType,this.renderAsAccent=!1,this._replaceSpecialSymbolsByMathvariant()},_replaceSpecialSymbolsByMathvariant:function(){if(this.symbolName){var e="";if("scr"===this.symbolName.slice(1,4)?e="script":"opf"===this.symbolName.slice(1,4)?e="double-struck":"fr"===this.symbolName.slice(1,3)&&(e="fraktur"),e)return this.text=this.symbolName[0],this.kind="id",this.symbolName=void 0,void(this.mathvariant=e);var t=n.getSymbol(this.symbolName);t&&"normal"===t.fontStyle&&(this.mathvariant="normal")}},_exportMathML:function(e){var i="";switch((!this.mathvariant&&"code"===this.kind||"normal"===e.mathvariant)&&(this.mathvariant="normal"),this.kind){case"unknown":case"id":case"code":i=o.startTag(e,"mi",this),i+=this.text+o.endTag("mi");break;case"number":i=o.startTag(e,"mn",this),i+=this.text+o.endTag("mn");break;case"mtext":i=o.startTag(e,"mtext",this),i+=(this.text.match(/^ +$/)?this.text.replace(/ /g,"&nbsp;"):this.text)+o.endTag("mtext");break;case"symbol":var r=n.isIdentifier(this.symbolName)?"mi":"mo",a=[];this.hasOwnProperty("stretchy")&&this.stretchy!==n.isStretchyOperatorByDefault(this.symbolName)&&a.push("stretchy"),i=o.startTag(e,r,this,a),i+=o.maskSpecialCharacters(n.serializeSymbol(this.symbolName)),i+=o.endTag(r);break;case"placeholder":var s=t.mixin({},e);if(s.attribBlackList){var l=s.attribBlackList.indexOf("data-category");l&&s.attribBlackList.splice(l,1)}i=o.startTag(s,"mi",this),i+=this.text+o.endTag("mi")}return i},getContents:function(){var e=["id","parent"],t={};for(var i in this)-1===e.indexOf(i)&&this.hasOwnProperty(i)&&(t[i]=this[i]);return t},_exportLaTeX:function(e){var t="";switch(this.kind){case"id":if(-1!==r.allFunctionNames.indexOf(this.text)){t+="\\"+this.text+" ";break}t+=this.text.replace(/\u00A0/g,"\\ ");var i=1===this.text.length&&"normal"!==e.mathvariant,n=e.boldIdents||!1;if(this.mathvariant){if(-1!==this.mathvariant.indexOf("script"))return"\\mathcal{"+t+"}";if(-1!==this.mathvariant.indexOf("fraktur"))return"\\mathfrak{"+t+"}";if(-1!==this.mathvariant.indexOf("double-struck"))return"\\mathbb{"+t+"}";-1!==this.mathvariant.indexOf("bold")&&(n=!0,i=!1),-1!==this.mathvariant.indexOf("italic")&&(i=!0),-1!==this.mathvariant.indexOf("normal")&&(n=!1,i=!1)}n&&(t="\\mathbf{"+t+"}"),i?n&&(t="\\mathit{"+t+"}"):n||(t="\\mathrm{"+t+"}");break;case"unknown":t+=this.text;break;case"number":-1!==this.text.indexOf("e")?t+="\\text{"+this.text+"}":t+=this.text;break;case"code":case"mtext":if(-1!==r.allFunctionNames.indexOf(this.text))t+="\\"+this.text+" ";else{var o=this.text.replace(/[\u00A0\u2009]/g," ");o=r.replaceUnicodeBySpecialLettersName(o),t+=(o=(o=r.replaceUnicodeByCombiningCharsName(o)).split(" ").map((function(e){return e?"\\textrm{"+e+"}":""}))).join("\\;")}break;case"symbol":t+=r.commandName(this.symbolName," ")}return t},_layoutSimpleMathText:function(e,t){switch(e.text=s.escapeHTML(this.text),e.fontSizePx=t.emToPx(1),e.setBelowXheight(this._ascentBelowXHeight()),e.baseIsItalic=this.baseIsItalic,e.accentType=this.accentType,e.isItalic=!1,e.cls=this.kind,this.kind){case"unknown":case"id":e.cls="text",e.isItalic=!0;break;case"symbol":e.setSymbolBoxData(this,t)}e.computeMetrics(t)},_subsCharsFromMathvariantFonts:function(e,t){var i=e.text.split("");i=i.map((function(e){var i=e+t;return n.getSymbol(i)?n.getCharForSymbolName(i):""})),e.text=i.join("")},_setMathvariant:function(e,t){var i;this.mathvariant?i=this.mathvariant:t.mathvariant&&(i=t.mathvariant),i&&(i.match(/script/)&&this._subsCharsFromMathvariantFonts(e,"scr"),i.match(/fraktur/)&&this._subsCharsFromMathvariantFonts(e,"fr"),i.match(/double-struck/)&&this._subsCharsFromMathvariantFonts(e,"opf"),i.match(/bold/)?e.fontWeight="bold":e.fontWeight="normal",i.match(/italic/)?(e.fontStyle="italic",e.isItalic=!0):(e.fontStyle="normal",e.isItalic=!1),"monospace"===i&&"symbol"!==this.kind&&(e.cls="string",e.isItalic=!1))},isItalicText:function(e){return("symbol"===this.kind||"id"===this.kind)&&((e=this.mathvariant||e||this.fontStyle)||"id"!==this.kind||(e=a.isSingleCharIdentString(this.text)?"italic":""),this._mathvariantIsItalic(e))},_ascentBelowXHeight:function(){return"symbol"===this.kind?n.hasXHeight(this.symbolName):a.stringAscentBelowXHeight(this.text)},isIdentifier:function(){return"id"===this.kind||"symbol"===this.kind&&n.isIdentifier(this.symbolName)},getAccent:function(){return"topaccent"===this.accentType||"bottomaccent"===this.accentType||n.isAccent(this.symbolName)&&"supscript"!==this.accentType&&"subscript"!==this.accentType?this:null},layout:function(e){var t=null,i=this.symbolName;return n.isLargeOpSymbol(this)?(t=e.parseBoxes("s",[])).makeLargeOp(i,e,this.isDisplaystyle()):this.renderAsAccent&&!0===this.stretchy&&n.isStretchyAccent(i)?(t=e.parseBoxes("a",[])).makeHorizontalStretchyBox(this,e):(t=e.parseBoxes("t",[]),this.TeXSpacing&&(t.spacing=this.TeXSpacing),this._layoutSimpleMathText(t,e)),this._setMathvariant(t,e),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(802),i(618)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(){this.peg=null,this.actionMap=null,this.symbolMap=null,this.row=null,this.rows=[],this.str=""},initMaps:function(){this.peg=this.makePEG(),this.actionMap=this.makeActionMap(),this.symbolMap=this.makeSymbolMap()},makePEG:function(){throw new Error("Unimplemented abstract method makePEG")},makeActionMap:function(){throw new Error("Unimplemented abstract method makeActionMap")},makeSymbolMap:function(){throw new Error("Unimplemented abstract method makeSymbolMap")},initParser:function(){throw new Error("Unimplemented abstract method initParser")},initBaseParser:function(){this.row=null,this.rows=[],this.str=""},parse:function(e){return this.peg||this.initMaps(),this.initBaseParser(),this.initParser(),this.peg.parse(e)},pushRow:function(e){this.rows.push(this.row),this.row=e},popRow:function(){this.row=this.rows.pop()},makeEquation:function(e){var t=this.makeRoot();return e&&(this.str=e.str,this.fillRow(e.tree,t.children[0])),i.sanitizeModel(t)},makeRoot:function(e){return(e=e||{}).children=e.children||[this.makeRow()],n.createNode("MathRoot",e)},makeBrokenEquationReplacement:function(){return this.makeRoot({foundEncodingIssues:!0,children:[this.makeRow({children:[this.makeText({kind:"code",text:"�",style:"color: red"})]})]})},makeRow:function(e){return(e=e||{}).children=e.children||[],n.createNode("MathRow",e)},makeDelim:function(e){return e=e||{},n.createNode("MathDelimiter",e)},makeText:function(e){return e=e||{},n.createNode("MathText",e)},makeSymbol:function(e,t){return(t=t||{}).text=" ",t.kind="symbol",t.symbolName=e,n.createNode("MathText",t)},makeFraction:function(e){return(e=e||{}).children=e.children||[this.makeRow(),this.makeRow()],e.bevelled="true"===e.bevelled,n.createNode("MathFraction",e)},makeRadical:function(e){return(e=e||{}).children=e.children||[this.makeRow(),this.makeRow()],n.createNode("MathRadical",e)},makeFenced:function(e){return(e=e||{}).children=e.children||[this.makeRow()],n.createNode("MathFenced",e)},makeStyle:function(e){return(e=e||{}).children=e.children||[this.makeRow()],n.createNode("MathStyle",e)},makeAction:function(e){return(e=e||{}).children=e.children||[this.makeRow(),this.makeRow()],n.createNode("MathAction",e)},makeSpace:function(e){return e=e||{},n.createNode("MathSpace",e)},makeScript:function(e){return(e=e||{}).children=e.children||[this.makeRow(),this.makeRow(),this.makeRow()],n.createNode("MathScript",e)},makeMultiScript:function(e){return(e=e||{}).children=e.children||[this.makeRow()],n.createNode("MathMultiScript",e)},makeMatrix:function(e){return e.children=e.children||[],n.createNode("MathMatrix",e)},name:function(e){return this.peg.names[e.name]},slice:function(e){return this.str.slice(e.start,e.end)},push:function(e){return this.row.appendChild(e),e},pushText:function(e,t,i){var n;return(i=i||{}).text=e,i.kind=t,e||"placeholder-atom"!==i["data-category"]||(i.kind="placeholder"),n="symbol"===t?this.makeSymbol(e,i):this.makeText(i),this.push(n)},pushCode:function(e,t){return(t=t||{}).text=e,t.kind="code",this.push(this.makeText(t))},pushMtext:function(e,t){return(t=t||{}).text=e,t.kind="mtext",this.push(this.makeText(t))},pushMspace:function(e,t){return(t=t||{}).length=e,this.push(this.makeSpace(t))},pushNumber:function(e,t){return(t=t||{}).text=e,t.kind="number",this.push(this.makeText(t))},pushSymbol:function(e,t){return this.push(this.makeSymbol(e,t))},pushDelim:function(e,t){return(t=t||{}).symbolName=e,this.push(this.makeDelim(t))},unknownAction:function(){},fireAction:function(e,t){e?1===e.length?e[0].call(this,t):2===e.length?e[0].call(this,t,e[1]):3===e.length?e[0].call(this,t,e[1],e[2]):e[0].call(this,t,e[1],e[2],e[3]):this.unknownAction(t)},append:function(e){var t=this.peg.names[e.name],i=this.actionMap[t];this.fireAction(i,e)},mapSymbolName:function(e){var t=this.symbolMap[e];return t||e},consume:function(){},appendSymbol:function(e,t){var i=this.slice(e).trim();this.pushSymbol(this.mapSymbolName(i),t),this.consume(1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1093),i(523),i(400)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e){e=e||{},this.name="HorizontalStretchyBox"},computeMetrics:function(){},render:function(e){return e.renderHorizontalStretchyBox(this)},accentBox:function(){return"topaccent"===this.accentType||"bottomaccent"===this.accentType?this:null},isStretchyAccentBox:function(){return!0},makeHorizontalStretchyBox:function(e,t){var i=o.getSymbol(e.symbolName);this.symbolData=i,this.setSymbolBoxData(e),this._makeSingleSymbolBox(t,i);var n=this.children[0];return n.setSymbolBoxData(e,t),t.renderer.computeGlyphTextboxMetrics(n,i.font,t),this.setMetrics({ascent:n.ascent(),descent:n.descent()}),this.setAccentHeight(t.emToPx(i.accentHeight||1)),this},setSymbolBoxData:function(e){this.symbolName=e.symbolName,this.baseIsItalic=e.baseIsItalic,this.accentType=e.accentType},STRETCHY_SUFFIX:["","big","Big","bigg","Bigg"],_glyphForSymbol:function(e,t,i){for(var n=0,r=null,a=this.STRETCHY_SUFFIX,s=0;s<a.length;s+=1){var l=o.symbolMap[t+a[s]];if(!l)return null;var c=l&&l.width?l.width/1e3:1,d=e.emToPx(c);if(!this.isDelimiterBox()&&d+1>=i||d>i-1e-4)return r&&2*Math.abs(i-n)<Math.abs(d-i)?r:l;n=d,r=l}return null},_widestGlyphForSymbol:function(e){var t,i=this.STRETCHY_SUFFIX;for(t=i.length-1;t>=0;t-=1){var n=o.symbolMap[e+i[t]];if(n)return n}return null},resizeHorizontalStretchyBox:function(e,t){var i=null,n=o.unicodeMap[this.symbolName]||this.symbolName;(i=this._glyphForSymbol(e,n,t))?this._makeSingleSymbolBox(e,i):this._makeVariableSymbolBox(e,n,t)||(i=this._widestGlyphForSymbol(n),this._makeSingleSymbolBox(e,i))},_setMetrics:function(e,t){var i=e.emToPx(1),n=e.renderer,o=Math.ceil(i*n.fontAscent),r=t.symbolAccentHeight||1,a=t.symbolAccentDownShift||0;if("topaccent"===this.accentType)this.setMetrics({ascent:r,descent:0});else if("bottomaccent"===this.accentType){var s=t.symbolGlyphTop-a-r;this.setMetrics({ascent:r+s,descent:-s})}else this.setMetrics({ascent:o,descent:i-o});this.setAccentHeight(r),a&&this.setDownShift(a)},_makeSingleSymbolBox:function(e,t){var i=e.renderer.makeGlyphTextbox(t,e);i.accentType=this.accentType,i.computeMetrics(e),this.children=[i],this._setMetrics(e,i)},_makeVariableSymbolBox:function(e,i,n){var r=o.symbolMap,a=r[i+"_left"];if(!a)return!1;var s=r[i+"_mid"],l=r[i+"_right"],c=r[i+"_ex"],d=a.width/1e3,u=l.width/1e3,h=c.width/1e3,p=s?s.width/1e3:0,f=e.emToPx(d),g=e.emToPx(u),m=p?e.emToPx(p):0,_=e.emToPx(h),v=Math.max(0,n-(f+g+m)),b=0,y=2,C=0,T=0,E=0,S=t.hitch(this,(function(e){this.children.push(e)}));function w(t,i){var n=e.renderer.makeGlyphTextbox(t,e);return n.setLeft(Math.round(E)),n.setWidth(i),E+=i-b,n}function I(e){var t,i=0;for(i=0;i<e;i+=1)t=w(c,_),S(t)}if(!a)return!1;s?(y+=1+2*(C=Math.ceil(v/2/_)),T=2*C*_-v):(y+=C=Math.ceil(v/_),T=C*_-v),b=(Math.max(0,f+g+m-n)+T)/(y-1);var A=w(a,f);if(this.children=[A],s){I(C);var x=w(s,m);S(x),I(C)}else I(C);var N=w(l,g);return S(N),this._setMetrics(e,A),this.setWidth(n),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(1094),i(523),i(400),i(1865)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=0,s=-1,l={f:.2,j:.17,p:.1,x:.05,y:.07,"ß":.2,A:.1,B:.05,D:.05,H:.05,I:.05,J:.05,L:.05,M:.05,N:.05,R:.05,U:-.1,X:.05,Z:.05,"Ä":.1,"Ü":-.1,"β":.05,"λ":.05,"μ":.05,"ρ":.05,"χ":.1},c={d:.05,f:.2,j:.05,k:.02,r:.05,t:.03,"ß":.02,C:.1,E:.1,F:.1,H:.1,I:.1,J:.1,K:.1,L:.05,M:.1,N:.1,S:.05,T:.1,U:.1,V:.1,W:.1,X:.05,Y:.1,Z:.1,"Ü":.1,"γ":.05,"δ":.05,"ζ":.1,"θ":.05,"κ":.05,"ξ":.05,"π":.1,"σ":.05,"ϕ":.05,"ϑ":.03,"ϖ":.1,"ϛ":.05,"χ":.05,"ψ":.09};return l[r.replace("&Escr;")]=-.05,c[r.replace("&sscr;")]=-.05,c[r.replace("&zscr;")]=-.05,c[r.replace("&Kscr;")]=.05,c[r.replace("&Xscr;")]=.05,e(i,{constructor:function(e){e=e||{},this.name="MathTextBox",this.text=e.text||"",this.glyphShift=0,this.xShift=0,this.yShift=0,this.fontSize=e.fontSize||1,this.cls=e.cls||"text",this.applyItalicCorrection=!0,this.isRelation=!1,this.fontWeight=null,this.fontStyle=null,this.accentType=null,this.stretchy=!1},isStretchyAccentBox:function(){return!0===this.symbolAccentStretchy},accentBox:function(){return"topaccent"===this.accentType||"bottomaccent"===this.accentType?this:null},setItalicCorrection:function(e){this.text&&(this.applyItalicCorrection=e)},_getCharAt:function(e,t){if(!e)return"";var i,n=e.length,o=(i=t===a?e[0]:e[n-1]).charCodeAt(0);return n>1&&o>=55296&&o<=57343&&(i=t===a?e.slice(0,2):e.slice(n-2)),i},rightItalicCorrection:function(){var e,t;return"text"!==this.cls&&"symbol"!==this.cls||!this.applyItalicCorrection?0:(t=this.text,(e=this._getCharAt(t,s))&&this.isItalic&&c[e]?c[e]:0)},leftItalicCorrection:function(){var e,t;return"text"!==this.cls&&"symbol"!==this.cls||!this.applyItalicCorrection?0:(t=this.text,(e=this._getCharAt(t,a))&&this.isItalic&&l[e]?l[e]:0)},needsGapBefore:function(){return"code"===this.cls},needsGapBehind:function(){return"code"===this.cls},isDelimiterBox:function(){var e=this.cls;return e.length>5&&"extra"===e.slice(0,5)||this.symbolDelimiterType},findAlignmentPoint:function(e,t){var i;return"alignmark"===this.cls?{path:t,pos:0}:"d"===e&&"number"===this.cls?(-1===(i=this.text.indexOf("."))&&(i=this.text.length),{path:t,pos:i}):"="===e&&this.isRelation?{path:t,pos:0}:null},splitAt:function(e){var t=e.pos,i=null,n=this.text;return t===n.length?{left:this,right:null}:((i=new(0,this.constructor)(this)).text=n.slice(t),this.text=n.slice(0,t),{left:this,right:i})},setSymbolBoxData:function(e,t){var i=e.symbolName||e.text;i=o.unicodeMap[i]||i;var r=o.symbolMap[i];r?this.initalizeSymbolBoxData(r,t,e.stretchy):(this.cls="text",this.text=e.symbolName.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),this.spacing=n.ORD),void 0!==e.TeXSpacing&&(this.spacing=e.TeXSpacing)},initalizeSymbolBoxData:function(e,t,i){this.cls=e.font,this.fontStyle=e.fontStyle,this.isItalic="italic"===e.fontStyle,this.text=o.getCharForSymbol(e),this.spacing=e.spacing||n.ORD,this.subLeftShift=t.emToPx(e.subLeftShift)||0,this.supRightShift=t.emToPx(e.supRightShift)||0,this.supDownShift=t.emToPx(e.supDownShift)||0,this.symbolDelimiterType=e.delimiterType,this.symbolGlyphTop=t.emToPx(e.glyphTop/1e3)||0,this.symbolGlyphBottom=t.emToPx(e.glyphBottom/1e3)||0,this.symbolAccentDownShift=t.emToPx(e.accentDownShift/1e3)||0,this.symbolAccentHeight=t.emToPx(e.accentHeight),this.symbolGlyphTop!==this.symbolGlyphBottom&&(this.symbolAccentHeight=t.emToPx((e.glyphTop-e.glyphBottom)/1e3)||1),this.symbolAccentStretchy=e.accentStretchy&&(i||e.stretchyDefault),this.isRelation=e.relation||!1},_computeTopAccentMetrics:function(e,t){this.accentType&&-1!==this.accentType.indexOf("accent")&&(this.symbolAccentHeight?t.accentHeight=this.symbolAccentHeight:t.accentHeight=t.px*e.fontAscent,t.accentHeight=Math.max(0,t.accentHeight),this.setAccentHeight(t.accentHeight),-1!==this.accentType.indexOf("topaccent")&&(t.ascent=this.accentHeight(),t.descent=0,this.setMetrics({ascent:t.ascent,descent:t.descent})))},computeMetrics:function(e){var t=e.renderer,i=e.emToPx(1),n=Math.ceil(i*t.fontAscent),o={px:i,ascent:n,descent:i-n,accentHeight:0};"alignmark"===this.cls?this.setMetrics({ascent:0,descent:0}):(this.setMetrics({ascent:o.ascent,descent:o.descent}),this._computeTopAccentMetrics(t,o)),this.setMetrics({cssAscent:o.ascent,cssDescent:o.descent})},render:function(e){return e.renderMathTextBox(this)}})}),e,t),e.exports=o},function(e,t){e.exports=".rtePane .embeddedOutputsMatrixElement,\n.rtePane .eoOutputWrapper .matrixElement {\n min-height: 18px;\n box-sizing: border-box;\n}\n\n.rtePane .embeddedOutputsMatrixElement .matrixElement,\n.rtePane .eoOutputWrapper .matrixElement,\n.rtcDataTipElement .matrixElement {\n position: relative;\n}\n\n.rtePane .matrixElement .variableValue,\n.rtcDataTipElement .matrixElement .variableValue {\n white-space: pre;\n display: inline-block;\n vertical-align: top;\n overflow: hidden;\n}\n\n.rtePane .embeddedOutputsMatrixElement.inlineElement {\n}\n\n.rtePane .embeddedOutputsMatrixElement.inlineElement .topHeaderWrapper {\n display: none;\n}\n\n.rtePane .embeddedOutputsMatrixElement.inlineElement .veTable .body {\n padding-top: 0 !important;\n max-height: 100px;\n}\n\n.rtePane .inlineElement .matrixElement {\n max-height: 300px;\n}\n\n.rtePane .embeddedOutputsMatrixElement.rightPaneElement {\n\n}\n\n.rtePane .rightPaneElement .matrixElement,\n.rtcDataTipElement .matrixElement {\n overflow: hidden;\n padding-left: 9px;\n}\n\n.rtePane .rightPaneElement .matrixElement {\n margin-bottom: -1px;\n}\n\n.rtePane .embeddedOutputsMatrixElement .matrixElement .valueContainer,\n.rtePane .eoOutputWrapper .matrixElement .valueContainer,\n.rtcDataTipElement .matrixElement .valueContainer {\n white-space: nowrap;\n margin-bottom: 3px;\n}\n\n.rtePane .embeddedOutputsMatrixElement .matrixElement .valueContainer .horizontalEllipsis.hide,\n.rtePane .embeddedOutputsMatrixElement .matrixElement .verticalEllipsis.hide,\n.rtePane .eoOutputWrapper .matrixElement .valueContainer .horizontalEllipsis.hide,\n.rtePane .eoOutputWrapper .matrixElement .verticalEllipsis.hide,\n.rtcDataTipElement .matrixElement .valueContainer .horizontalEllipsis.hide,\n.rtcDataTipElement .matrixElement .verticalEllipsis.hide {\n display: none;\n}\n\n.embeddedOutputsVariableMatrixElement .matrixElement .valueContainer.hideEllipses .verticalEllipsis, \n.embeddedOutputsVariableMatrixElement .matrixElement .valueContainer.hideEllipses .horizontalEllipsis {\n display:none;\n}\n\n.rtePane .embeddedOutputsMatrixElement .matrixElement .valueContainer .horizontalEllipsis,\n.rtePane .eoOutputWrapper .matrixElement .valueContainer .horizontalEllipsis {\n margin-bottom: -3px;\n}\n\n.rtePane .eoOutputWrapper .embeddedOutputsVariableMatrixElement .matrixElement .valueContainer {\n cursor: default !important;\n}"},function(e,t){e.exports='/*\n * Ellipses as base64 for HTML export.\n */\n.matrixElement .horizontalEllipsis,\n.rtcDataTipElement .matrixElement .horizontalEllipsis {\n display: inline-block;\n margin-top: 3px;\n /* base64 encoded version of images-liveeditor/HEllipsis.png */\n width: 30px;\n height: 12px;\n background-repeat: no-repeat;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAJCAYAAADO1CeCAAAAJUlEQVR42mP4//8/A70xw0i29BUDFPxnAEtTW37wWDqakIa4pQDvOOG89lHX2gAAAABJRU5ErkJggg==");\n}\n\n.matrixElement .verticalEllipsis,\n.textElement .verticalEllipsis,\n.rtcDataTipElement .matrixElement .verticalEllipsis,\n.rtcDataTipElement .textElement .verticalEllipsis {\n margin-left: 35px;\n /* base64 encoded version of images-liveeditor/VEllipsis.png */\n width: 12px;\n height: 30px;\n background-repeat: no-repeat;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAZCAYAAAAIcL+IAAAALklEQVR42mP4//8/AzGYgWyFMECMwv8QddRS+P//KyimlmcGUOFoOI6GI/UVAgDnd8Dd4+NCwgAAAABJRU5ErkJggg==");\n}'},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){"use strict";return e(null,{constructor:function(){},enterInnerNode:function(e){},traverseSibling:function(e){},leaveInnerNode:function(e){},visitLeafNode:function(e,t,i){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(547),i(314),i(3616)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e,n,o,r){this._view=o,this._internalDocument=n,this._decorationViewModel=r,e.registerNodeConverter(i,t.hitch(this,"_convertToRTF"))},_convertToRTF:function(e){var t=this._createRTFString(e),i=[];return t&&i.push({flavor:n.RTF,content:t}),i},_createRTFString:function(e){return this._rtfWriter||(this._rtfWriter=new o),this._write(e)},_write:function(e){return this._rtfWriter.write(this._internalDocument,e,null,this._view,this._decorationViewModel)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(247),i(237),i(275),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return{_TOOLTIP_PADDING:20,_TOOLTIP_MAX_WIDTH:700,_TOOLTIP_MAX_HEIGHT:500,_DATATIP_TO_VIEW_RATIO:.8,getValidIdentifierTill:function(e,t,n,o){var r=i.getStringTillPosition(e,t,n);if(!r)return"";var a=e.getLineColumn().line-1,s=r.startColumn,l=r.endColumn,c=r.text;return this._isInvalidIdentifier(c,s,l,a,o)?"":c},_isInvalidIdentifier:function(e,t,i,n,r){var a=r[n],s=o.getMatchingTokenInLine(a,t,i);return!!s&&!(!o.isCommentToken(s)&&!o.isMatlabStringToken(s))},calculateTooltipDimensions:function(e,t,i){var n=e.getDomTargetPosition(),o=e.getCoordinateForNode(t),r=n.clientHeight,a=n.scrollTop,s=o.y-a,l=r-(s+o.height),c=Math.min(this._TOOLTIP_MAX_HEIGHT,this._DATATIP_TO_VIEW_RATIO*Math.max(s,l))-this._TOOLTIP_PADDING;return{width:Math.min(this._TOOLTIP_MAX_WIDTH,this._DATATIP_TO_VIEW_RATIO*i.clientWidth)-this._TOOLTIP_PADDING,height:c}},createTooltipDiv:function(t,i,n,o,r,a){var s=null;return t.getDomtarget().contains(t.getNodeBox(n))?(a||(a=this.calculateTooltipDimensions(t,n,r)),s=e.create("div",{innerHTML:this._getContentToDisplay(i),className:o,style:{"max-height":a.height+"px","max-width":a.width+"px"}})):s},_getContentToDisplay:function(e){return e.outerHTML?e.outerHTML:t.treatHtmlLikeCommandWindow(e)},getDatatipPriority:function(){return this.isDebugging()?6:4},isDebugging:function(){return n.getInstance().isDebugging}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){var e=new Map([["text/plain","__mw__dnd__native__text__"],["Files","__mw__dnd__native__files__"]]);return{dndDefaultTypeEnum:"__mw__dnd__native__default__type",getTypes:function(){return{TEXT:e.get("text/plain"),FILES:e.get("Files")}},getNativeDataTypes:function(e,t){return t?this.getNativeDataTypesGlobal(e):this.getNativeDataTypesLocal(e)},getNativeDataTypesLocal:function(t){var i=this,n=[],o=Array.from(t.types);return(o=o.filter((function(e){return e!==i.dndDefaultTypeEnum}))).forEach((function(t){e.has(t)&&n.push(e.get(t))})),n},getNativeDataTypesGlobal:function(e){var t=this;return Array.from(e.types).filter((function(e){return e!==t.dndDefaultTypeEnum}))},getNativeTextData:function(e){return e.getData("text/plain")},setNativeTextData:function(e,t){e.setData("text/plain",t)},getNativeFileData:function(e){return{items:e.items,files:e.files}},setNativeDataByType:function(e,t,i){e.setData(t,i)},getNativeDataByType:function(e,t){return e.getData(t)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1098)],o=i.dj.d(n,(function(e){return function(){function t(e,i,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._singleSelect=!1,this._validate(e,o),this._avatarContainer=this._decorateAvatar(e,o),this._updatePosition(i,n),document.body.appendChild(this._avatarContainer)}return r(t,null,[{key:"StatusEnum",get:function(){return{VALID:"VALID",INVALID:"INVALID"}}}]),r(t,[{key:"_validate",value:function(e,t){if(e instanceof Node){if(t&&isNaN(t))throw new Error("Expected: count should be of type Number");return!0}throw new Error("Expected: avatar should be of type Node")}},{key:"_decorateAvatar",value:function(t,i){var n=document.createElement("div");n.classList.add("mw-dnd-avatar"),e.showsNotAllowedPointerOnInvalidDnD&&n.classList.add("mw-dnd-pointer-not-allowed-support"),n.setAttribute("data-test-id","avatarElement");var o=(new DOMParser).parseFromString("<div class ='mw-dnd-avatar-container-1'>\n <div class='mw-dnd-avatar-container-2'>\n <div class='mw-dnd-avatar-child'> \n <div class='mw-dnd-avatar-child-content'> </div>\n </div> \n </div>\n </div>\n </div>","text/html");return n.appendChild(o.querySelector(".mw-dnd-avatar-container-1")),!i||i<=1?(n.classList.add("mw-dnd-single-select","mw-dnd-invalid-target"),this._singleSelect=!0):(n.classList.add("mw-dnd-multi-select","mw-dnd-invalid-target"),n.setAttribute("data-multi-select-count",i),this._singleSelect=!1),n.querySelector(".mw-dnd-avatar-child-content").appendChild(t),n}},{key:"enterValidDropTarget",value:function(){this._avatarContainer.classList.remove("mw-dnd-invalid-target"),this._avatarContainer.classList.add("mw-dnd-valid-target")}},{key:"leaveValidDropTarget",value:function(){this._avatarContainer.classList.remove("mw-dnd-valid-target"),this._avatarContainer.classList.add("mw-dnd-invalid-target")}},{key:"updatePosition",value:function(e,t){window.requestAnimationFrame(function(){this._updatePosition(e,t)}.bind(this))}},{key:"_updatePosition",value:function(e,t){var i=void 0;i=this._singleSelect?15:25,this._avatarContainer.style.transform="translate("+(e+i)+"px, "+(t-5)+"px)"}},{key:"remove",value:function(){document.body.removeChild(this._avatarContainer)}},{key:"avatarContainer",get:function(){return this._avatarContainer}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3638),i(3639),i(3640),i(3641)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/breadcrumbStack",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(222),i(206),i(225),i(228),i(210),i(211),i(213),i(216),i(386),i(3643),i(3644),i(3646),i(661),i(3647),i(3648),i(3650)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e([u,d,n],{templateString:h,constructor:function(e){e=e||{},this.currentLocation=e.currentLocation,this.visitedLocations=[],this._breadCrumbObjectsArray=e.metaData.breadCrumbObjectsArray,this.getChildNodes=e.getChildNodes,this.dataSource=new _,this.metaData=e.metaData,this._userActionsList=e.userActionsList,""!==this.currentLocation&&this.dataSource.addToDataList(this.currentLocation),this.hasChildren=!(!e.metaData||!e.metaData.hasChildren)&&e.metaData.hasChildren,this._breadCrumbLabelPrefix=e.breadCrumbLabelPrefix,this._overrideTooltip=e.overrideTooltip||!1},postCreate:function(e){this.inherited(arguments),this.currentLocationNode.textContent="",a.set(this.currentLocationNode,"data-tag",this.currentLocation),this._setLocationIcon(this.metaData.locationIcon),this._initializeNavigationActions(),this._initializeBreadCrumbsModule(),this.own(o(this,"rebuildLocationNode",this._handleReDisplayOfLocationNode)),this.progressIndicator=g({type:"spinner",size:"xsmall"}),this.progressIndicator.classList.add("mw-progressIndicator"),this.own(o(this.dataSource,"dataSourceMoved",t.hitch(this,(function(e){this.navigatingBackOrForward=!0,this.emit("locationChanged",e)}))))},destroy:function(){this.progressIndicator=null,this.breadCrumbsModule&&(this.breadCrumbsModule.destroy(),this.breadCrumbsModule=null),this._breadCrumbObjectsArray=this.currentLocationNode=this.dataSource=this.getChildNodes=null,this.inherited(arguments)},startup:function(){this.inherited(arguments),this.resize()},_setLocationIcon:function(e){this.iconNode.setAttribute("style","background-image: url('"+e+"')"),this.iconNode.setAttribute("title",this.currentLocation)},resizeWidget:function(e){this.resize()},_initializeNavigationActions:function(){this._actionsList=[];var e=this._getBackButtonAction(),t=this._getForwardButtonAction();if(this._actionsList.push(e),this._actionsList.push(t),this._userActionsList)for(var i=0;i<this._userActionsList.length;i++)this._actionsList.push(this._userActionsList[i]);this.actionToolbar=new f({actionsList:this._actionsList,navigationBarNode:this.navigationBarNode})},_initializeBreadCrumbsModule:function(){this.breadCrumbsModule=new p({breadCrumbObjectsArray:this._breadCrumbObjectsArray,getChildNodes:this.getChildNodes,hasChildren:this.hasChildren,breadCrumbLabelPrefix:this._breadCrumbLabelPrefix,overrideTooltip:this._overrideTooltip}),this.own(o(this.breadCrumbsModule,"locationChanged",t.hitch(this,(function(e){this.navigatingBackOrForward=!1,this.emit("locationChanged",e)})))),l.place(this.breadCrumbsModule.breadCrumbsParentNode,this.currentLocationNode)},_getBackButtonAction:function(){return new m({dataSource:this.dataSource})},_getForwardButtonAction:function(){return new v({dataSource:this.dataSource})},getCurrentLocation:function(){return this.currentLocation},setCurrentLocation:function(e,t){this.currentLocation=e,this.hasChildren=t.hasChildren,this.metaData.locationIcon=t.locationIcon;var i=this.breadCrumbsModule.buildLocationNode(t.breadCrumbObjectsArray,t.hasChildren);a.set(this.currentLocationNode,"data-tag",this.currentLocation),l.place(i,this.currentLocationNode),this._setLocationIcon(t.locationIcon),this.getChildNodes&&this.breadCrumbsModule.menu.isMenuOpen()&&this.breadCrumbsModule.closeBreadCrumbMenu(),this.navigatingBackOrForward||this.dataSource.addToDataList(e),this.navigatingBackOrForward=!1,this.dataSource.deferred&&!this.dataSource.deferred.isResolved()&&this.dataSource.deferred.resolve(e)},_handleReDisplayOfLocationNode:function(){var e=this.breadCrumbsModule.rebuildLocationNode(this.hasChildren);l.place(e,this.currentLocationNode),this.isBusy&&this.removeBusyMode()},focus:function(){this.breadCrumbsModule.focus()},isNavigatingBackOrForward:function(){return this.navigatingBackOrForward},reset:function(){this.navigatingBackOrForward=!1,this.dataSource.setOldLocationNode()},showBusyAffordance:function(){this.isBusy=!0,this._showSpinnerInIconNode()},removeBusyMode:function(){this.isBusy=!1,this._removeSpinnerInIconNode()},_showSpinnerInIconNode:function(){this._setLocationIcon(""),this.iconNode.appendChild(this.progressIndicator),this.progressIndicator.classList.remove("hide")},_removeSpinnerInIconNode:function(){this.progressIndicator&&this.progressIndicator.classList.add("hide"),this._setLocationIcon(this.metaData.locationIcon)},shouldClearEditMode:function(){return!this.isSearchInProgress},handleActiveSearchMode:function(){this.historyNode&&this.disableLocationHistoryMode()},handleOnSearchModeCancellation:function(){this.historyNode&&this.enableLocationHistoryMode()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{shouldShowUIElements:async function(e,t){const i=await this.getPrunedStackFramesFromModel(e,t);return this.shouldShowUIElementsGivenStack(t,i)},shouldShowUIElementsGivenStack:function(e,t){return!(!e.hasStack()||t.length<2)},getPrunedStackFramesFromModel:async function(e,t){const i=await this._shouldPruneStackFrames(e),n=t.getStackFrames();return i?n.slice(0,-1):n},_shouldPruneStackFrames:async function(e){return await e.isScriptFileExecuting()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this.lineNumber=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{_CLASSDEF_IDENTIFIER_NODE:"ClassdefIdentifierNode",getName:function(){return this.getClassdefIdentifierNode().getText()},getClassdefIdentifierNode:function(){return this.getChildren().filter((function(e){return e.getType()===this._CLASSDEF_IDENTIFIER_NODE}),this)[0]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372),i(1380),i(1905)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e,t){this._functionIdentifierNode=new i(this._data.functionName),this._functionInputArgumentNodes=this._convertFunctionArguments(this._data.functionInputArguments),this._functionOutputArgumentNodes=this._convertFunctionArguments(this._data.functionOutputArguments)},_convertFunctionArguments:function(e){return e.map((function(e){return new n(e)}))},getAllChildren:function(){return[].concat(this.getFunctionIdentifierNode(),this.getFunctionInputArgumentNodes(),this.getFunctionOutputArgumentNodes(),this.getChildren())},getFunctionIdentifierNode:function(){return this._functionIdentifierNode},getFunctionInputArgumentNodes:function(){return this._functionInputArgumentNodes},getFunctionOutputArgumentNodes:function(){return this._functionOutputArgumentNodes},getName:function(){return this._functionIdentifierNode.getText()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1101)],o=i.dj.d(n,(function(e,t){return e(t,{isUsedCrossFunctions:function(){return this._data.isUsedCrossFunctions},isPersistent:function(){return this._data.isPersistent},isGlobal:function(){return this._data.isGlobal}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_backingStoreMap:{},registerBackingStore:function(e,t){this._backingStoreMap[e]=t},deleteBackingStore:function(e){delete this._backingStoreMap[e]},getBackingStore:function(e){return this._backingStoreMap[e]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{destroy:function(){},getRange:function(){throw new Error("Unimplemented method: getRange")},getStartLine:function(){throw new Error("Unimplemented method: getStartLine")},getEndLine:function(){throw new Error("Unimplemented method: getEndLine")},getStartPosition:function(){throw new Error("Unimplemented method: getStartPosition")},getEndPosition:function(){throw new Error("Unimplemented method: getEndPosition")},isFolded:function(){return this._folded},setFolded:function(){this._folded=!0},setUnfolded:function(){this._folded=!1},getFoldableNodes:function(){throw new Error("Unimplemented method: getFoldableNodes")},getHiddenRange:function(){throw new Error("Unimplemented method: getHiddenRange")},containsNode:function(e){throw new Error("Unimplemented method: containsNode")},isRangeValid:function(){return this.getStartPosition().getLine()<this.getEndPosition().getLine()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(221),i(244),i(285),i(208),i(266),i(1914),i(207),i(219),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(l,{_EVENT_PRINT_REQUEST_CHANNEL_PREFIX:"/liveeditor/events/printRequest/",_EVENT_PRINT_RESPONSE_CHANNEL_PREFIX:"/liveeditor/events/printResponse/",_PRINT_SELECTION_ACTION_ID:"rtc_print_selection",constructor:function(e,i,n,o,a,s){this._rtcId=e,this._actionservice=i,this._cursor=n,this._internaldocument=o,this._htmlExporter=s,this._documentInfo=a,this.own(r.after(this._cursor,"onChange",t.hitch(this,"_updateActions"))),c.subscribe(this._EVENT_PRINT_REQUEST_CHANNEL_PREFIX+e,"_handlePrintRequest",this),i.loadActions(this._actions())},_actions:function(){return[{id:this._PRINT_SELECTION_ACTION_ID,enabled:!1,callback:t.hitch(this,"printSelection")}]},_updateActions:function(){this._actionservice.updateAction(this._PRINT_SELECTION_ACTION_ID,{enabled:this._cursor.hasSelection()})},print:function(){this._print()},printSelection:function(){this._cursor.hasSelection()&&this._print(!0)},_print:function(e){i("linux")?this._jprint(e):this._cefPrint(e)},_cefPrint:function(e){this._prePrint(e).then(function(e){this._printContent(e)}.bind(this))},_prePrint:function(e){return o(this._getExportOptions(),function(t){return t.range=e?this._cursor.getSelection():this._getFullRange(),this._htmlExporter.export(t)}.bind(this))},_printContent:function(e){var t=new s({}),i=t.ownerDocument,n=i.createElement("iframe");i.body.appendChild(n),n.contentDocument.documentElement.innerHTML=e,setTimeout((function(){n.contentWindow.print(),t.destroy()}),0)},_getExportOptions:function(){return{}},_handlePrintRequest:function(){var e=this._EVENT_PRINT_RESPONSE_CHANNEL_PREFIX+this._rtcId,t={status:!0,contentType:"none",content:""};this._prePrint().then(function(i){c.publish(e,t),setTimeout(function(){this._printContent(i)}.bind(this),0)}.bind(this))},destroy:function(){c.unsubscribe(this._EVENT_PRINT_REQUEST_CHANNEL_PREFIX+this._rtcId,"_handlePrintRequest",this)},_getFullRange:function(){var e=this._internaldocument.getFullRange();if(e){var t=e.getStartPosition();return t.setPosition(t.getNode().rootContainer(),0),new a(t,e.getEndPosition())}},_jprint:function(e){var t=0,i=-1;if(e){var n=this._cursor.getSelection(),o=n.getStartPosition();t=o.getOffset()+o.getNode().offsetInContainer(this._internaldocument.root);var r=n.getEndPosition();i=r.getOffset()+r.getNode().offsetInContainer(this._internaldocument.root)}var a=this._documentInfo.getText();this._jprintRange(a,t,i)},_jprintRange:function(e,t,i){this._javaPrint(e,"dummy.m",t,i,!0)},_javaPrint:function(e,t,i,n,o){d.sendMessage({FEval:{function:"javaMethodEDT",arguments:["printEditorText","com.mathworks.mde.liveeditor.widget.rtc.PageSettingsService",e,t,i,n,o],nargout:0,priority:1}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(650)],o=i.dj.d(n,(function(e,t){return e("dijit._DialogMixin",null,{actionBarTemplate:"",execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute(),this.execute(this.get("value"))},_getFocusItems:function(){var e=t._getTabNavigable(this.domNode);this._firstFocusItem=e.lowest||e.first||this.closeButtonNode||this.domNode,this._lastFocusItem=e.last||e.highest||this._firstFocusItem}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){this._serializersArray=e},getSerializer:function(e){var t=null;return this._serializersArray.some((function(i){i.getXMLType(e)!==e&&i.getNodeType()!==e||(t=i)}),this),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(228),i(210),i(211),i(203),i(204),i(209),i(282),i(1839),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return n(s,{constructor:function(e,i,n,o,r,a){t.add(this._gutter,"rangeMargin"),this._populateContainersMap(),this._resetDecoratorsToUpdate(),this._expansionHandler=null},_populateContainersMap:function(){this._containersMap={},this._decorators.forEach((function(t){var n=i.create("div",{class:"rangeDecoratorContainer"});e.set(n,"data-testid",t.getId()),this._gutter.appendChild(n),this._updateZIndex(t.getPriority(),n),this._containersMap[t.getId()]=n}),this)},setExpansionHandler:function(e){this._expansionHandler=e},removeExpansionHandler:function(){this._expansionHandler=null},destroy:function(){this.inherited(arguments),this._containersMap={},this._resetDecoratorsToUpdate(),this._animationRequestValue&&(window.cancelAnimationFrame(this._animationRequestValue),this._animationRequestValue=null)},_updateLater:function(e,t){this._markDecoratorAsNeedingUpdateLater(e),this._lineNumbersForUpdate=t,this._animationRequestValue||(this._animationRequestValue=requestAnimationFrame(o.hitch(this,(function(){this._animationRequestValue=null,this._updateAllPendingDecorators()}))))},_markDecoratorAsNeedingUpdateLater:function(e){e?this._decoratorsToUpdateLater.set.add(e):this._decoratorsToUpdateLater.updateAll=!0},_updateAllPendingDecorators:function(){this._decoratorsToUpdateLater.updateAll?this._updateNow(null,this._lineNumbersForUpdate):this._decorators.filter((function(e){return this._decoratorsToUpdateLater.set.has(e)}),this).forEach((function(e){this._updateNow(e,this._lineNumbersForUpdate)}),this),this._resetDecoratorsToUpdate()},_resetDecoratorsToUpdate:function(){this._decoratorsToUpdateLater={set:a.createWeakSet(),updateAll:!1}},_updateNow:function(e,t){if(this.isEnabled()&&this.isVisible()){if(t||(t=l.getZeroBasedVisibleLineNumbers(this._view)),e){var i=this._updateForDecorator(e,t);this._replaceContainer(this._gutter,e,i)}else{var n=this._copyGutter(),o=this._decorators.map((function(e){return this._updateForDecorator(e,t)}),this);this._decorators.forEach((function(e,t){this._addContainer(n,e,o[t])}),this),this._replaceGutter(n)}this.onUpdate(t)}},_addContainer:function(e,t,i){i&&(e.appendChild(i),this._containersMap[t.getId()]=i)},_replaceContainer:function(e,t,i){var n=this._containersMap[t.getId()];n&&i&&(n.parentNode?this._gutter.replaceChild(i,n):this._gutter.appendChild(i),this._containersMap[t.getId()]=i)},_updateForDecorator:function(e,t){var i=this._containersMap[e.getId()];if(!i)return null;var n=i.cloneNode(!1);return e.getRangeDescriptions(t).forEach((function(e){this._isValidDescription(e)&&this._placeDivForDescription(n,e)}),this),n},_isValidDescription:function(e){var t=this._internalDocument.getMaxLineNumber();return e.startLine>0&&e.startLine<=t&&e.endLine>0&&e.endLine<=t},_updateZIndex:function(e,t){t.style["z-index"]=e},_placeDivForDescription:function(e,t){this._updateDivDimensions(t);var i=t.div;e.appendChild(i)},_updateDivDimensions:function(e){var t=e.startLine,i=e.endLine,n=e.div,o=e.shouldExpandUp||e.shouldExpandDown,r=this._calculateDivDimensions(t,i);o&&this._expansionHandler&&(r=this._expansionHandler.calculateUpdatedDivDimensions(r,t,i,e.shouldExpandUp,e.shouldExpandDown)),this._setDimensionsForDiv(n,r)},_calculateDivDimensions:function(e,t){var i=this._internalDocument.getPositionForLineColumn(e,1),n=this._internalDocument.getPositionForLineColumn(t,1),o=l.getVerticalDimensionsBetweenPositions(i,n,this._view),r=o.height;return{top:o.top-this._view.getScrollTop(),height:r}},_setDimensionsForDiv:function(e,t){e.style.top=t.top+"px",e.style.height=t.height+"px"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(274),i(266),i(333),i(1389)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){this._range=e,this._folded=!1,this._setRangeAttributes()},destroy:function(){this._range.destroy()},getRange:function(){return this._range},getStartLine:function(){return this.getStartPosition().getLine()-1},getEndLine:function(){return this.getEndPosition().getLine()-1},getStartPosition:function(){return this._range.getStartPosition()},getEndPosition:function(){return this._range.getEndPosition()},getFoldableNodes:function(){if(!this.isRangeValid())return[];var e=this._range.getStartPosition().getNode().rootContainer().nextSibling(),i=this._range.getEndPosition().getNode().rootContainer();return t.getParagraphNodesInRange(e,i)},getHiddenRange:function(){if(!this.isRangeValid())return null;var e=this._range.getStartPosition().getNode().rootContainer().nextSibling().startPosition(),t=this._range.getEndPosition().getNode().rootContainer().endPosition();return new i(e,t)},_setRangeAttributes:function(){this._range.getStartPosition().setRightAligned(!0),this._range.getStartPosition().setLive(),this._range.getEndPosition().setLive()},containsNode:function(e){var t=e.rootContainer();return n.paragraphNodesInRange(this._range).indexOf(t)>=0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(230),i(282)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_TIMEOUT:50,constructor:function(e,t,i){this._settingsToListenTo=e,this._rtcSettingService=t,this._updateCallback=i,this._settingsChangedMap=o.createMap(),this._batchTimer=null,this._setupSettingsSubscriptions()},_setupSettingsSubscriptions:function(){this._settingsToListenTo.forEach((function(e){var t=this._rtcSettingService.listenTo(e,this._handleSettingUpdate.bind(this,e));this.own(t)}),this)},_handleSettingUpdate:function(e,t){this._clearTimer(),this._settingsChangedMap.set(e,t),this._batchTimer=setTimeout(this._publishChange.bind(this),this._TIMEOUT)},_publishChange:function(){this._updateCallback(this._settingsChangedMap),this._settingsChangedMap.clear(),this._clearTimer()},_clearTimer:function(){this._batchTimer&&(clearTimeout(this._batchTimer),this._batchTimer=null)},destroy:function(){this.inherited(arguments),this._clearTimer()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NEW_SECTION:"rtc_insert_section_markup",INSERT_SECTION_WITH_TITLE:"rtc_insert_section_title_markup",BOLD:"rtc_insert_bold_markup",ITALIC:"rtc_insert_italic_markup",MONOSPACED:"rtc_insert_monospace_markup",HYPERLINK:"rtc_insert_hyperlink_markup",INLINE_LATEX:"rtc_insert_inline_latex_markup",BULLETED_LIST:"rtc_insert_bulleted_list_markup",NUMBERED_LIST:"rtc_insert_numbered_list_markup",IMAGE:"rtc_insert_image_markup",PREFORMATTED_TEXT:"rtc_insert_preformatted_text_markup",PREFORMATTED_CODE:"rtc_insert_preformatted_code_markup",DISPLAY_LATEX:"rtc_insert_display_latex_markup",PUBLISH_AS_HTML:"publish_as_html",PUBLISH_AS_PDF:"publish_as_pdf"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(208),i(266),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t([e],{constructor:function(e,{positionController:t,startLine:a,endLine:s,startPosition:l,endPosition:c,evaluationRange:d,requestId:u=r.generateUuid(),requestType:h,isValid:p=!0}){d||(l=l||t.createLinePositionInLine(a,!1),c=c||t.createLinePositionInLine(s,!1),d=new o(l,c)),this._evaluationRange=d,this._requestId=u,this._requestType=h,this._isValid=p,this.own(n.before(e,"onDocumentReset",i.hitch(this,"_handleOnDocumentReset")))},getRequestId:function(){return this._requestId},getRequestType:function(){return this._requestType},getEvaluationRange:function(){return this._evaluationRange},_handleOnDocumentReset:function(){this._isValid=!1},isValid:function(){return this._isValid},serialize:function(){return{startLine:this._evaluationRange.getStartPosition().getLine()-1,endLine:this._evaluationRange.getEndPosition().getLine()-1,requestId:this._requestId,requestType:this._requestType,isValid:this._isValid}},destroy:function(){this._evaluationRange.destroy(),this._evaluationRange=null,this._isValid=!1,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(399)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t,i,n,o){this._actionService=e,this._keyHandler=t,this._sectionModel=i,this._executionManager=o,this._currentSectionModel=n},enable:function(){this._isEnabled=!0,this._handles=[i.after(this._currentSectionModel,"onCurrentSectionChanged",t.hitch(this,"_updateActionState")),i.after(this._sectionModel,"onAttributesUpdated",t.hitch(this,"_updateActionState")),i.after(this._actionService,"onActionChange",t.hitch(this,(function(e){"rtc_embedded_outputs_manual"===e.id&&"selected"===e.key&&this._updateActionState()})),!0),i.after(this._debugServices,"onDebugModeChanged",t.hitch(this,"_updateActionState"))],this._handles.forEach((function(e){this.own(e)}),this),this._updateActionState()},disable:function(){this._isEnabled=!1,this._removeListeners(),this._disableActions()},enableForHiddenCode:function(){this.enable()},disableForHiddenCode:function(){this.disable()},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},_disableActions:function(){this._actions.forEach((function(e){this._actionService.getAction(e.id)&&this._actionService.updateAction(e.id,{enabled:!1})}),this)},_removeActions:function(){this._actions.forEach((function(e){this._actionService.getAction(e.id)&&this._actionService.removeAction(e.id)}),this)},destroy:function(){this.inherited(arguments),this._removeListeners(),this._removeActions()}})}),e,t),e.exports=o},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,i){var n,o;n=[i(204),i(228),i(211),i(213),i(1933),i(231),i(226),i(781)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{_lastSelectedLine:"",_SECTIONS_LABEL:o.sections,_FUNCTIONS_LABEL:o.functions,_SHOW_SECTIONS_LABEL:o.showSections,_SHOW_FUNCTIONS_LABEL:o.showFunctions,_EMPTY_SECTION_PREFIX:o.section,createGoToListItem:function(t,i,n,o,r){var s=i.create({type:a.LIST_ITEM,tag:"SectionListItem"+n,text:r});return i.addEventCallback(s,e.hitch(t,(function(e){"itemPushed"===e.eventType&&t.goToDocumentLineColumn(n,o)}))),s},createGoToFunctionListItem:function(t,i,n,o,r){var s=i.create({type:a.LIST_ITEM,tag:"FunctionListItem"+n,text:r});return i.addEventCallback(s,e.hitch(t,(function(e){"itemPushed"===e.eventType&&t.goToDocumentLineColumn(n,o)}))),s},createPopupListPanel:function(e){return e.create({tag:"motwToolstrip.editorTab.navigate.goTo.goToList.goToListPanel",type:a.POPUP_LIST_PANEL,maxHeight:440})},createSectionHeader:function(e){return e.create({tag:"motwToolstrip.editorTab.navigate.goTo.goToList.sectionHeader",type:a.POPUP_LIST_HEADER,title:this._SECTIONS_LABEL})},createFunctionHeader:function(e){return e.create({tag:"motwToolstrip.editorTab.navigate.goTo.goToList.functionHeader",type:a.POPUP_LIST_HEADER,title:this._FUNCTIONS_LABEL})},createSectionToggleSwitch:function(e){var n,o=r.byId(e.tagToId("motwToolstrip.editorTab.navigate.goTo.goToList.functionHeader"));if(-1===s.indexOf(o.type)){var a=o.domNode;n=a.querySelector("td")}else n=o.domNode;var l=i.create("div",{innerHTML:this._SHOW_SECTIONS_LABEL});return t.set(l,"style","float:right; font-family:Arial; font-size:8px; margin-top:3px; margin-right:3px; color:white; cursor: pointer; padding:1px; "),i.place(l,n,"last"),-1===s.indexOf(o.type)&&a.appendChild(n),l},createFunctionToggleSwitch:function(e){var n,o=r.byId(e.tagToId("motwToolstrip.editorTab.navigate.goTo.goToList.sectionHeader"));if(-1===s.indexOf(o.type)){var a=o.domNode;n=a.querySelector("td")}else n=o.domNode;var l=i.create("div",{innerHTML:this._SHOW_FUNCTIONS_LABEL});return t.set(l,"style","float:right; font-family:Arial; font-size:8px; margin-top:3px; margin-right:3px; color:white; cursor: pointer; padding:1px; "),i.place(l,n,"last"),-1===s.indexOf(o.type)&&a.appendChild(n),l},formatSectionTitle:function(e,t){var i=e.replace(/^\s*%%/,"").trim();return 0===i.length&&(i=this._EMPTY_SECTION_PREFIX+" "+t,t+=1),[i,t]},setGotoLine:function(e){this._lastSelectedLine=e},getGotoLine:function(){return this._lastSelectedLine},setPopupStyle:function(e,t,i){var o=r.byId(e),a=r.byId(t);n.set(o.domNode,"display",i),n.set(a.domNode,"display",i)},getValidLiveEditorSectionTitle:function(e,t){var i=e.trim();return 0===i.length&&(i=this._EMPTY_SECTION_PREFIX+" "+(t+1)),i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(240),i(204),i(218),i(725),i(312),i(3940),i(1403)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=e("dijit.form.ValidationTextBox",o,{templateString:a,required:!1,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},pattern:".*",regExp:"",regExpGen:function(){},state:"",tooltipPosition:[],_deprecateRegExp:function(e,i){i!=s.prototype[e]&&(t.deprecated("ValidationTextBox id="+this.id+", set('"+e+"', ...) is deprecated. Use set('pattern', ...) instead.","","2.0"),this.set("pattern",i))},_setRegExpGenAttr:function(e){this._deprecateRegExp("regExpGen",e),this._set("regExpGen",this._computeRegexp)},_setRegExpAttr:function(e){this._deprecateRegExp("regExp",e)},_setValueAttr:function(){this.inherited(arguments),this._refreshState()},validator:function(e,t){return new RegExp("^(?:"+this._computeRegexp(t)+")"+(this.required?"":"?")+"$").test(e)&&(!this.required||!this._isEmpty(e))&&(this._isEmpty(e)||void 0!==this.parse(e,t))},_isValidSubset:function(){return 0==this.textbox.value.search(this._partialre)},isValid:function(){return this.validator(this.textbox.value,this.get("constraints"))},_isEmpty:function(e){return(this.trim?/^\s*$/:/^$/).test(e)},getErrorMessage:function(){var e="$_unset_$"==this.invalidMessage?this.messages.invalidMessage:this.invalidMessage?this.invalidMessage:this.promptMessage,t="$_unset_$"==this.missingMessage?this.messages.missingMessage:this.missingMessage?this.missingMessage:e;return this.required&&this._isEmpty(this.textbox.value)?t:e},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:!0,validate:function(e){var t="",i=this.disabled||this.isValid(e);i&&(this._maskValidSubsetError=!0);var n=this._isEmpty(this.textbox.value),o=!i&&e&&this._isValidSubset();return this._set("state",i?"":((!this._hasBeenBlurred||e)&&n||o)&&(this._maskValidSubsetError||o&&!this._hasBeenBlurred&&e)?"Incomplete":"Error"),this.focusNode.setAttribute("aria-invalid","Error"==this.state?"true":"false"),"Error"==this.state?(this._maskValidSubsetError=e&&o,t=this.getErrorMessage(e)):"Incomplete"==this.state?(t=this.getPromptMessage(e),this._maskValidSubsetError=!this._hasBeenBlurred||e):n&&(t=this.getPromptMessage(e)),this.set("message",t),i},displayMessage:function(e){e&&this.focused?r.show(e,this.domNode,this.tooltipPosition,!this.isLeftToRight()):r.hide(this.domNode)},_refreshState:function(){this._created&&this.validate(this.focused),this.inherited(arguments)},constructor:function(e){this.constraints=i.clone(this.constraints),this.baseClass+=" dijitValidationTextBox"},startup:function(){this.inherited(arguments),this._refreshState()},_setConstraintsAttr:function(e){!e.locale&&this.lang&&(e.locale=this.lang),this._set("constraints",e),this._refreshState()},_setPatternAttr:function(e){this._set("pattern",e),this._refreshState()},_computeRegexp:function(e){var t=this.pattern;if("function"==typeof t&&(t=t.call(this,e)),t!=this._lastRegExp){var i="";this._lastRegExp=t,".*"!=t&&t.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,(function(e){switch(e.charAt(0)){case"{":case"+":case"?":case"*":case"^":case"$":case"|":case"(":i+=e;break;case")":i+="|$)";break;default:i+="(?:"+e+"|$)"}}));try{"".search(i)}catch(e){i=this.pattern,console.warn("RegExp error in "+this.declaredClass+": "+this.pattern)}this._partialre="^(?:"+i+")$"}return t},postMixInProperties:function(){this.inherited(arguments),this.messages=n.getLocalization("dijit.form","validate",this.lang),this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(e){this.inherited(arguments),this._refreshState()},_setRequiredAttr:function(e){this._set("required",e),this.focusNode.setAttribute("aria-required",e),this._refreshState()},_setMessageAttr:function(e){this._set("message",e),this.displayMessage(e)},reset:function(){this._maskValidSubsetError=!0,this.inherited(arguments)},_onBlur:function(){this.displayMessage(""),this.inherited(arguments)},destroy:function(){r.hide(this.domNode),this.inherited(arguments)}});return s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(227),i(245),i(223),i(204),i(206),i(31)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=t("dijit.form._TextBoxMixin"+(n("dojo-bidi")?"_NoBidi":""),null,{trim:!1,uppercase:!1,lowercase:!1,propercase:!1,maxLength:"",selectOnClick:!1,placeHolder:"",_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(e,t,i){var n;void 0!==e&&(n=this.filter(e),"string"!=typeof i&&(i=null===n||"number"==typeof n&&isNaN(n)?"":this.filter(this.format(n,this.constraints)),0!=this.compare(n,this.filter(this.parse(i,this.constraints)))&&(i=null))),null==i||"number"==typeof i&&isNaN(i)||this.textbox.value==i||(this.textbox.value=i,this._set("displayedValue",this.get("displayedValue"))),this.inherited(arguments,[n,t])},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},_setDisplayedValueAttr:function(e){null==e?e="":"string"!=typeof e&&(e=String(e)),this.textbox.value=e,this._setValueAttr(this.get("value"),void 0),this._set("displayedValue",this.get("displayedValue"))},format:function(e){return null==e?"":e.toString?e.toString():e},parse:function(e){return e},_refreshState:function(){},onInput:function(){},_onInput:function(e){this._lastInputEventValue=this.textbox.value,this._processInput(this._lastInputProducingEvent||e),delete this._lastInputProducingEvent,this.intermediateChanges&&this._handleOnChange(this.get("value"),!1)},_processInput:function(){this._refreshState(),this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){function e(e){var t;if("keydown"==e.type&&229!=e.keyCode){switch(t=e.keyCode){case o.SHIFT:case o.ALT:case o.CTRL:case o.META:case o.CAPS_LOCK:case o.NUM_LOCK:case o.SCROLL_LOCK:return}if(!e.ctrlKey&&!e.metaKey&&!e.altKey){switch(t){case o.NUMPAD_0:case o.NUMPAD_1:case o.NUMPAD_2:case o.NUMPAD_3:case o.NUMPAD_4:case o.NUMPAD_5:case o.NUMPAD_6:case o.NUMPAD_7:case o.NUMPAD_8:case o.NUMPAD_9:case o.NUMPAD_MULTIPLY:case o.NUMPAD_PLUS:case o.NUMPAD_ENTER:case o.NUMPAD_MINUS:case o.NUMPAD_PERIOD:case o.NUMPAD_DIVIDE:return}if(t>=65&&t<=90||t>=48&&t<=57||t==o.SPACE)return;var i=!1;for(var s in o)if(o[s]===e.keyCode){i=!0;break}if(!i)return}}if((t=e.charCode>=32?String.fromCharCode(e.charCode):e.charCode)||(t=e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||e.keyCode==o.SPACE?String.fromCharCode(e.keyCode):e.keyCode),t||(t=229),"keypress"==e.type){if("string"!=typeof t)return;if((t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||" "===t)&&(e.ctrlKey||e.metaKey||e.altKey))return}var l,c={faux:!0};for(l in e)if(!/^(layer[XY]|returnValue|keyLocation)$/.test(l)){var d=e[l];"function"!=typeof d&&void 0!==d&&(c[l]=d)}if(r.mixin(c,{charOrCode:t,_wasConsumed:!1,preventDefault:function(){c._wasConsumed=!0,e.preventDefault()},stopPropagation:function(){e.stopPropagation()}}),this._lastInputProducingEvent=c,!1===this.onInput(c)&&(c.preventDefault(),c.stopPropagation()),!c._wasConsumed&&n("ie")<=9)switch(e.keyCode){case o.TAB:case o.ESCAPE:case o.DOWN_ARROW:case o.UP_ARROW:case o.LEFT_ARROW:case o.RIGHT_ARROW:break;default:if(e.keyCode==o.ENTER&&"textarea"!=this.textbox.tagName.toLowerCase())break;this.defer((function(){this.textbox.value!==this._lastInputEventValue&&a.emit(this.textbox,"input",{bubbles:!0})}))}}this.textbox.setAttribute("value",this.textbox.value),this.inherited(arguments),this.own(a(this.textbox,"keydown, keypress, paste, cut, compositionend",r.hitch(this,e)),a(this.textbox,"input",r.hitch(this,"_onInput")),a(this.domNode,"keypress",(function(e){e.stopPropagation()})))},_blankValue:"",filter:function(e){return null===e?this._blankValue:("string"!=typeof e||(this.trim&&(e=r.trim(e)),this.uppercase&&(e=e.toUpperCase()),this.lowercase&&(e=e.toLowerCase()),this.propercase&&(e=e.replace(/[^\s]+/g,(function(e){return e.substring(0,1).toUpperCase()+e.substring(1)})))),e)},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(e){this.disabled||(this._setBlurValue(),this.inherited(arguments))},_isTextSelected:function(){return this.textbox.selectionStart!=this.textbox.selectionEnd},_onFocus:function(e){this.disabled||this.readOnly||(this.selectOnClick&&"mouse"==e&&(this._selectOnClickHandle=a.once(this.domNode,"mouseup, touchend",r.hitch(this,(function(e){this._isTextSelected()||l.selectInputText(this.textbox)}))),this.own(this._selectOnClickHandle),this.defer((function(){this._selectOnClickHandle&&(this._selectOnClickHandle.remove(),this._selectOnClickHandle=null)}),500)),this.inherited(arguments),this._refreshState())},reset:function(){this.textbox.value="",this.inherited(arguments)}});return n("dojo-bidi")&&(l=t("dijit.form._TextBoxMixin",l,{_setValueAttr:function(){this.inherited(arguments),this.applyTextDir(this.focusNode)},_setDisplayedValueAttr:function(){this.inherited(arguments),this.applyTextDir(this.focusNode)},_onInput:function(){this.applyTextDir(this.focusNode),this.inherited(arguments)}})),l._setSelectionRange=s._setSelectionRange=function(e,t,i){e.setSelectionRange&&e.setSelectionRange(t,i)},l.selectInputText=s.selectInputText=function(e,t,n){e=i.byId(e),isNaN(t)&&(t=0),isNaN(n)&&(n=e.value?e.value.length:0);try{e.focus(),l._setSelectionRange(e,t,n)}catch(e){}},l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3941),i(3942),i(3943),i(3944),i(3945),i(3946),i(3947),i(3948),i(3949),i(3950),i(3951),i(3952),i(3953),i(3954),i(3955),i(3956),i(3957),i(3958),i(3959),i(3960),i(3961),i(3962),i(3963),i(3964),i(3965),i(3966),i(3967),i(3968),i(3969),i(3970),i(3971),i(3972),i(3973),i(3974),i(3975),i(3976),i(3977),i(3978),i(3979)],o=i.dj.d(n,(function(e,t){return t(e,"dijit/form/nls/validate",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(209),i(319),i(300)],o=i.dj.d(n,(function(e,t,i,n){return{write:function(e,i){t.assert(i.opcPackage,!0,"Required argument missed: 'opcPackage'");var n=e.serialize(e.root);this._writeSerializedContentToOpcPackage(n,i)},writeNodeArrayContent:function(e,t,i,n){var o=e.serializeContentArray(t);this._writeSerializedContentToOpcPackage(o,{opcPackage:i,serializers:n})},_writeSerializedContentToOpcPackage:function(e,t){var o=e.children.reduce(this._reduceByNodeType,[]),r=n.createXMLElement(i.BODY_TAG_NAME),a=this._createPart(t.opcPackage,r);this._addRelationship(t.opcPackage),o.forEach((function(e){this._createAndAppendParagraphs(r,e,t)}),this),a.setContent(this._getDocumentXML(r))},_addRelationship:function(e){e.createRelationship(i.RELATIONSHIP_TYPE,i.DOCUMENT_TARGET)},_createPart:function(e,t){return e.createPart(i.DOCUMENT_TARGET,i.DOCUMENT_CONTENT_TYPE,this._getDocumentXML(t))},_reduceByNodeType:function(e,t){var i=e[e.length-1];return i&&i[0].className===t.className?i.push(t):e.push([t]),e},_getDocumentXML:function(e){var t=n.createDocument(i.ROOT_TAG_NAME);return t.documentElement.appendChild(e),n.serializeToFormattedString(t)},_createAndAppendParagraphs:function(e,t,i){for(var n=i.serializers.getSerializer(t[0].className).write(t,i),o=n.childNodes.length;0!==o;)e.appendChild(n.childNodes[0]),o--}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(4005),i(4006),i(4007),i(4008)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/functionRefactoring",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(411),i(203),i(228),i(210),i(211),i(213),i(253),i(206),i(1110)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return t(l,{constructor:function(e){},postCreate:function(){this.inherited(arguments),n.add(this.tooltipContentNode,"extendedMessageTooltip"),this._message.hasExtendedHelp()&&(this._extendedHelpButtonDomNode=this.getExtendedHelpButtonDomNode(),this.tooltipContentNode.addEventListener("onAdjustingOrientation",this._handleAdjustingOrientation.bind(this)),this.tooltipContentNode.addEventListener("onReadyToDisplay",this._handleReadyToDisplay.bind(this))),this._extendedHelpAreaDomNode=this.getExtendedHelpAreaDomNode()},isExtendedHelpButtonEnabled:function(){return this._message.hasExtendedHelp()},getExtendedHelpAreaDomNode:function(){if(this._extendedHelpAreaDomNode)return this._extendedHelpAreaDomNode;{let e=document.createElement("div");return e.classList.add("extendedHelpArea"),e}},getExtendedHelpButtonDomNode:function(){return this._extendedHelpButtonDomNode?this._extendedHelpButtonDomNode:this._message.hasExtendedHelp()?this._createDetailsButton().domNode:this._createDimmedDetailsButton().domNode},_createDetailsButton:function(){const t=new e({label:a.detailsButtonLabel});return t.set("data-testid","extendedHelpButton"),n.add(t.domNode,"tooltipInlineButton extendedHelp"),s(t,"click",this._extendedHelpButtonClick.bind(this)),t.placeAt(this.tooltipContentNode),t},_createDimmedDetailsButton:function(){const t=new e({label:a.detailsButtonLabel});return t.set("data-testid","extendedHelpButton"),t.domNode.classList.add("tooltipInlineButton","extendedHelp","dimmedButton"),t},_handleAdjustingOrientation:function(){this._extendedHelpButtonDomNode&&this._expandExtendedHelp(!0)},_handleReadyToDisplay:function(){this._extendedHelpButtonDomNode&&this.collapseExtendedHelp()},toggleExtendedMessage:function(){this._extendedHelpButtonDomNode&&this._extendedHelpButtonClick()},_extendedHelpButtonClick:function(){n.contains(this._extendedHelpButtonDomNode,"extendedHelpExpanded")?this.collapseExtendedHelp():this._expandExtendedHelp()},_expandExtendedHelp:function(e){n.toggle(this._extendedHelpButtonDomNode,"extendedHelpExpanded",!0),this._dividerDomNode=o.create("hr"),this._extendedHelpDomNode=o.create("div",{className:"extendedHelpTextNode","data-testid":"extendedHelpDialog",role:"alert"});const t=this._extendedHelpAreaDomNode.parentElement;t&&(this._extendedHelpDomNode.style.width=t.clientWidth+"px"),e?this._extendedHelpDomNode.style.height="30em":this._message.getExtendedHelpMessage().then(this._setExtendedContent.bind(this)),this._extendedHelpAreaDomNode.appendChild(this._extendedHelpDomNode),this._extendedHelpAreaDomNode.appendChild(this._dividerDomNode),t?this.shouldHideDivider&&(this._extendedHelpAreaDomNode.removeChild(this._dividerDomNode),this._extendedHelpDomNode.style.marginBottom=0):this.tooltipContentNode.append(this._extendedHelpAreaDomNode),this._emitExpandEvent(),this._emitResizeEvent()},_setExtendedContent:function(e){this._extendedHelpDomNode&&(this._extendedHelpDomNode.style.height=null,this._extendedHelpDomNode.innerHTML=e,this._emitResizeEvent(),this._adjustExtendedHelpToFitInViewport())},_adjustExtendedHelpToFitInViewport:function(){const e=this._extendedHelpAreaDomNode.parentElement.getBoundingClientRect();let t;const i=-1*e.top+10;let n=Math.max(i,0);n=Math.min(n,this._extendedHelpDomNode.offsetHeight),n>0&&(t=this._extendedHelpDomNode.offsetHeight-n,this._extendedHelpDomNode.style.height=t+"px");const o=e.bottom-window.innerHeight+10;let r=Math.max(o,0);r=Math.min(r,this._extendedHelpDomNode.offsetHeight),r>0&&(t=this._extendedHelpDomNode.offsetHeight-r,this._extendedHelpDomNode.style.height=t+"px"),this._emitResizeEvent()},collapseExtendedHelp:function(){n.toggle(this._extendedHelpButtonDomNode,"extendedHelpExpanded",!1),o.destroy(this._extendedHelpDomNode),o.destroy(this._dividerDomNode),this._extendedHelpDomNode=null,this._dividerDomNode=null,this._emitResizeEvent()},_emitExpandEvent:function(){s.emit(this._extendedHelpAreaDomNode,"onExpand",{bubbles:!0,cancelable:!0,extendedMessageTooltipContent:this})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(4062),i(4063),i(4064),i(4065)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/messagebar",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getActions:function(){return[]},getContextMenuActions:function(){return[]},getContextMenuActionsToHide:function(e){return[]},getUpdatedActions:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1953)],o=i.dj.d(n,(function(e){return{CSSCLASSES:{ERROR:"error_squiggle_rte",WARNING:"warning_squiggle_rte",WARNING_HIGHLIGHT:"warningHighlight"},getHighestSeverity:function(e){for(var t=e.length,i=e[t-1];t--;)this.hasHigherSeverity(e[t],i)&&(i=e[t]);return i},hasHigherSeverity:function(e,t){return e.getSeverity()>t.getSeverity()||e.getSeverity()===t.getSeverity()&&Boolean(e.isFixable()&&!t.isFixable())},getDecorationForMessage:function(t,i,n){var o=[];return t.isError()?i!==e.UNDERLINE_NONE&&o.push(this.CSSCLASSES.ERROR):i!==e.UNDERLINE_ERRORS_ONLY&&i!==e.UNDERLINE_NONE&&o.push(this.CSSCLASSES.WARNING),t.isFixable()&&n&&o.push(this.CSSCLASSES.WARNING_HIGHLIGHT),o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{getLayerName:function(){throw new Error("Unimplemented API: MW.rtc.plugins.messagebar.MessageBarLayer.getLayerName")},addMessage:function(e,t,i,n,o,r){},clearLayer:function(e){},updateLayer:function(){},closeTooltip:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(4094),i(4095),i(4096),i(4097)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/tabcompletion",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(294)],o=i.dj.d(n,(function(e,t,i){return e(t,{CONTEXT_MENU_GROUP:i.SELECTIONS,constructor:function(){},updateLabelForContextMenu:function(e){},addActionsToContextMenu:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},doEvent:function(e){throw new Error("Unimplemented API: doEvent")},updateContent:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(219),i(1087),i(209)],o=i.dj.d(n,(function(e,t,i){return function(n,o){o=o||e;var r=!1,a=(n=n,{addCAEventListener:function(e,t,i,l){this.successCallback=e,this.failureCallback=t||function(e){},this.formatMethod=i,this.containsCompleteResponseFromBackend=l,r||o.subscribe(n,s,a).then((function(){r=!0}))},removeCAEventListener:function(){r&&o.unsubscribe(n,s,a),r=!1}});function s(e){if(this.containsCompleteResponseFromBackend(e.data))if(e.data.failure)i.error(e.data.message),this.failureCallback(e.data);else{var n=this.formatMethod(e.data);this.successCallback(n)}else this.failureCallback(t.noData)}return a}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(207),i(1980)],o=i.dj.d(n,(function(e,t,i){return class extends t{isStartToken(t){e.error("API Not Implemented: AbstractTokenMatcherRules.isStartToken")}isMidToken(t){e.error("API Not Implemented: AbstractTokenMatcherRules.isMidToken")}isEndToken(t){e.error("API Not Implemented: AbstractTokenMatcherRules.isEndToken")}areMatchingTokens(t,i){e.error("API Not Implemented: AbstractTokenMatcherRules.areMatchingTokens")}isMismatchAllowed(e){return!1}isTokenOfInterestForMatching(e,t){return this.areSameClassOfBlockToken(e,t)}areSameClassOfBlockToken(e,t){return!0}isMatchableToken(e){return this.getTokenTypeForMatching(e)!==i.NON_MATCHABLE_TOKEN}getTokenTypeForMatching(e){switch(!0){case this.isStartToken(e):return i.START_TOKEN;case this.isMidToken(e):return i.MID_TOKEN;case this.isEndToken(e):return i.END_TOKEN;default:return i.NON_MATCHABLE_TOKEN}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1417),i(1986)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,n,o,r){this._internalDocument=e,this._document=t,this._actionService=n,this._matlabTokenManager=o,this._matlabStateManager=r,this._smartFormattingMatcher=new i(e,o,r,this._OPEN_CHAR,this._CLOSE_CHAR),this._actionService.loadActions(this._getActions())},_checkPairDeleteIsApplicable:function(e){return!!this.inherited(arguments)&&this._smartFormattingMatcher.areTokensBalancedForPosition(e.cursorPos)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(620),i(475),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{_OPEN_CHAR:void 0,_CLOSE_CHAR:void 0,_isTriggerExpected:function(e){return this._isTriggerTypeExpected(e)&&this._isTriggerDirectionExpected(e)&&this._isTriggerPositionExpected(e)},_isTriggerDirectionExpected:function(e){return-1===e.direction},_isTriggerTypeExpected:function(e){return e.type===n.DELETE},_isTriggerPositionExpected:function(e){var i=e.triggerPos.getNode();return t.isCodeContainer(i)&&this._checkPairDeleteIsApplicable(e)},_findAndRecordTarget:function(e){return!0},format:function(e){var t=e.cursorPos;return this._document.deleteText(t.getLineColumn().line,t.getLineColumn().column-1,t.getLineColumn().line,t.getLineColumn().column+1),e},_checkPairDeleteIsApplicable:function(e){var t=e.cursorPos.getLineColumn().line-1,i=e.cursorPos.getLineColumn().column-1;if(t<0||i<=0)return!1;if(this._matlabTokenManager.isInComment(t,i-1))return!1;if(o.isInString(t,i-1,this._matlabTokenManager))return!1;if(o.isInCommandDualSyntax(t,i-1,this._matlabTokenManager))return!1;var n=o.isCharAtLineColumnForFormatting(this._internalDocument,this._OPEN_CHAR,t,i-1),r=o.isCharAtLineColumnForFormatting(this._internalDocument,this._CLOSE_CHAR,t,i);return n&&r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1419),i(1986)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,n,o,r){this._internalDocument=e,this._document=t,this._actionService=n,this._matlabTokenManager=o,this._matlabStateManager=r,this._smartFormattingMatcher=new i(e,o,r,this._OPEN_CHAR,this._CLOSE_CHAR),this._actionService.loadActions(this._getActions())},_isCursorPositionApplicable:function(e){return!!this.inherited(arguments)&&this._smartFormattingMatcher.hasOneMoreCloseThanOpenCharacter(e.cursorPos)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(237),i(620),i(475),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_OPEN_CHAR:void 0,_CLOSE_CHAR:void 0,_BLOCK_TYPES_FOR_MERGE_AND_ADVANCE:["TypingText"],_isTriggerTypeExpected:function(e){return e.type===o.INSERT_TEXT&&e.text===this._CLOSE_CHAR},_isTriggerPositionExpected:function(e){var i=e.triggerPos.getNode();return t.isCodeContainer(i)&&this._isCursorPositionApplicable(e)},_isCursorPositionApplicable:function(e){var t=e.cursorPos.getLineColumn().line,i=e.cursorPos.getLineColumn().column;return i-=1,!((t-=1)<0||i<0)&&(r.getTextAtLineColumnForFormatting(this._internalDocument,t,i,1)===this._CLOSE_CHAR&&(!this._matlabTokenManager.isInComment(t,i-1)&&(!r.isInString(t,i-1,this._matlabTokenManager)&&!r.isInCommandDualSyntax(t,i-1,this._matlabTokenManager))))},_findAndRecordTarget:function(e){return!0},format:function(e){var t=e.cursorPos.getLineColumn().line,i=e.cursorPos;this._document.startEdit().setBlockTypesForMergeAndAdvance(this._BLOCK_TYPES_FOR_MERGE_AND_ADVANCE),this._document.deleteText(i.getLineColumn().line,i.getLineColumn().column-1,i.getLineColumn().line,i.getLineColumn().column),e.cursor.setLineColumn(t,i.getLineColumn().column+1),this._document.endEdit()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1421)],o=i.dj.d(n,(function(e,t){return e(t,{_mainConverter:null,setMainConverter:function(e){this._mainConverter=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getApplicableNodeClass:function(){throw new Error("Unimplemented: getApplicableNodeClass")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(324),i(320)],o=i.dj.d(n,(function(e,t,i){return{NULL_CATEGORY_COLOR:339,BEGIN_TYPE_INDEX:127,_inTypeSection:!1,getBeginTypeColor:function(e){return e.getColorFromCategory(this.BEGIN_TYPE_INDEX)},processTokens:function(e,t,i,n){for(var o={},r=t;r<=i;r++){this._inTypeSection=!1;var a=e[r];if(a){var s=[];o[r]=s;var l={valueBuffer:"",colorString:"",start:-1,end:-1};a.forEach(e=>{var t=this._determineColorForToken(n,e),i=this._convertTokenColorToRgbString(t),o=e.getColumn(),r=e.getColumn()+e.getLength();this._isValidToken(e,t)?i===l.colorString?(l.end=r,l.valueBuffer+=e.getValue()):(this._createNewTokenAndAppend(l,s),l.start=o,l.end=r,l.colorString=i,l.valueBuffer=e.getValue()):" "===e.getValue()?(l.end=r,l.valueBuffer+=e.getValue()):(this._createNewTokenAndAppend(l,s),l={valueBuffer:"",colorString:"",start:-1,end:-1})}),this._createNewTokenAndAppend(l,s)}}return o},_isValidToken:function(e,t){return e.getLength()>0&&!(0===t.r&&0===t.g&&0===t.b)},_createNewTokenAndAppend:function(e,t){e.valueBuffer&&-1!==e.start&&-1!==e.end&&t.push(e.start||0,e.end||0,e.colorString||"")},_isInTypeSection:function(){return this._inTypeSection},_determineColorForToken:function(e,t){var n;return this._isInTypeSection()?i.doesTokenMarkEndOfTypeSection(t)?(this._inTypeSection=!1,n=e.getColorFromCategory(t.getType())):n=this.getBeginTypeColor(e):(i.isBeginTypeToken(t)&&(this._inTypeSection=!0),n=e.getColorFromCategory(t.getType())),n},_convertTokenColorToRgbString:function(e){return e=e.r||e.g||e.b?e.toString():""}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1124)],o=i.dj.d(n,(function(e){return{getAppIdentifierFromTaskID:function(t){let i=e.getEntryWithUniqueId(t);return i?i.appIdentifier:""},getTaskIDFromAppIdentifier:function(t){let i=e.getAllEntriesWithUniqueId();for(let e in i)if(i.hasOwnProperty(e)&&i[e].appIdentifier===t)return e;return""},addCallbackForAppIdentifierAvailability:function(t,i){e.getEntryWithUniqueId(i)?t():e.addCallback(t,i)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{DIRECTION_UP:"up",DIRECTION_RIGHT:"right",DIRECTION_DOWN:"down",DIRECTION_LEFT:"left",DIRECTION_NONE:"none"}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1125),i(4467),i(4468),i(4469)],o=i.dj.d(n,(function(e,t,i,n){var o=e.addDomListener,r=!!window.PointerEvent,a="ontouchstart"in window,s=r?[t]:a?[i,n]:[n],l=!r&&a,c={mousedown:!0,mousemove:!0,mouseup:!0},d={pointerdown:!0,pointermove:!0,pointerup:!0},u={touchstart:!0,touchmove:!0,touchend:!0,touchcancel:!0},h=function(e){return e&&e.type&&c[e.type]},p=function(e){return e&&e.type&&d[e.type]},f=function(e){return e&&e.type&&u[e.type]};return{isTouchEvent:f,isPointerEvent:p,isMouseEvent:h,getActiveImplementations:function(){return s},getImplementationForEvent:function(e){var o=null;return h(e)&&(o=n),p(e)&&(o=t),f(e)&&(o=i),o},addListenersToRemovable:function(e,t,i,n,r){return e.forEach((function(e){for(var a in n)if(n.hasOwnProperty(a)){var s=n[a];t.own(o(i,e[a],s,r))}})),t},updateLastTouch:function(e,t){var i=t;return f(e)&&(e._softTimestamp=Date.now(),i=e),i},isCompatibilityEvent:function(e,t){var i=!1;return t&&h(e)&&l&&(i=function(e,t){var i=e.clientX,n=e.clientY,o=Date.now();if(t._softTimestamp+1e3<=o)return!1;var r=t.changedTouches;for(var a in r)if(r.hasOwnProperty(a)&&"length"!==a){var s=r[a],l=s.clientX,c=s.clientY,d=Math.abs(i-l),u=Math.abs(n-c);if(d<=25&&u<=25)return!0}return!1}(e,t)),i}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return function(){var e=[];return{own:function(t,i){var n=t;i&&(n={remove:function(){t[i].call(t)}}),e.push(n)},remove:function(){e.forEach((function(e){e.remove()})),e=[]}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(825)],o=i.dj.d(n,(function(e){return{isActiveState:function(t){return t===e.RECOGNIZED||t===e.CANCELLED||t===e.BEGAN||t===e.PROGRESS},isEndedState:function(t){return t===e.RECOGNIZED||t===e.CANCELLED},isWaitingState:function(t){return t===e.WAITING},isInactiveState:function(t){return t===e.INACTIVE},isPossibleState:function(t){return t===e.POSSIBLE},hasBegun:function(t){return t===e.BEGAN||t===e.PROGRESS},isDisabledState:function(t){return t===e.DISABLED}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{LEFT:0,RIGHT:2}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(826),i(662)],o=i.dj.d(n,(function(e,t,i){return e(t,{groupingType:i.BASE,constructor:function(e){this._viewModel=e},getOperationsForLayout:function(e,t,i){if(this._isApplicable(t))return{nodeToPlace:e}},getOperationsForRemove:function(e,t){if(this._isApplicable(e))return{nodeToRemove:this._getDomNode(e)}},_canMergeBlocks:function(e,t){return!1},_canGroupTogether:function(e,t){return!1},_isApplicable:function(e){return e&&this._viewModel.getNodeBox(e)&&e.groupingType===this.groupingType},getRefDomNode:function(e,t,i){return this._isApplicable(t)?this.inherited(arguments):null},_hasToRedrawNeighboringBlocks:function(e){return!1},_getNodesToRedraw:function(e,t){for(var i=[],n=e,o=t?"unshift":"push",r=t?"previousSibling":"nextSibling";n&&this._canGroupTogether(e,n);)this._getDomNode(n)&&i[o](n),n=n[r]();return i},priority:function(){return 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(4543),i(4545)],o=i.dj.d(n,(function(e,t){let i=null;const n=window.MATLABMobile,o=window.webkit;return{getInstance:function(){return null===i&&(n?i=new e:o&&(i=new t)),i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NEW_FILE:"compacttoolstrip.defaultAction.new_file"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2011)],o=i.dj.d(n,(function(e,t){return e(t,{getRTCActionIdFromGlobalActionId:function(e){return e.slice(this._getPrefix().length)},getGlobalActionIdFromRTCActionId:function(e){return this._getPrefix()+e},_getPrefix:function(){throw new Error("Unimplemented: PrefixActionIdConverter._getPrefix")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(274)],o=i.dj.d(n,(function(e){return{textContainersInCursorConvertibleTo:function(t,i,n){var o=!0,r=t.getSelection();if(!r){var a=t.getNode().textContainer();return n.isNodeConvertibleTo(a,i)}var s=r.getStartPosition().getNode(),l=r.getEndPosition().getNode();return e.textContainerNodesInRangeIterator(s,l,(function(e){var t=e.textContainer();if(!n.isNodeConvertibleTo(t,i))return o=!1,!0})),o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(204),i(212)],o=i.dj.d(n,(function(e,t,i,n){return e([],{"-chains-":{destroy:"before"},constructor:function(){this._isReadyState=!1,this._promise=null,this._timeout=null},whenReady:function(e){this.isReady()?e():(this._promise||(this._promise=new n),this._promise.then(e))},isReady:function(){return this._isReadyState},markDirty:function(){this._isReadyState=!1},markClean:function(){if(this._isReadyState=!0,this._promise){var e=this._promise;this._promise=null,e.resolve(this)}this._timeout&&(clearTimeout(this._timeout),this._timeout=null)},setReadyTimeout:function(e){this._timeout=setTimeout(i.hitch(this,(function(){this._timeout=null,this.markClean()})),e)},destroy:function(){this._promise=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(206)],o=i.dj.d(n,(function(e,t){return{enableProgrammaticFocus:function(e){e.setAttribute("tabindex",-1)},disableFocus:function(e){e.removeAttribute("tabindex")},focusFirstChild:function(e){const t=this._getFocusableChildren(e);0!==t.length&&t[0].focus()},focusLastChild:function(e){const t=this._getFocusableChildren(e);0!==t.length&&t[t.length-1].focus()},installTabTrap:function(i,n,o){const r=e.create("div",{className:"topFocusTrapper",tabindex:"0"}),a=e.create("div",{className:"bottomFocusTrapper",tabindex:"0"});e.place(r,i,"before"),e.place(a,i,"after");const s=n||this.focusLastChild.bind(this,i),l=o||this.focusFirstChild.bind(this,i),c=t(r,"focus",s),d=t(a,"focus",l);return{remove:function(){c.remove(),d.remove(),r.remove(),a.remove()}}},_getFocusableChildren:function(e){const t=[];return e.querySelectorAll('a, button, input, textarea, details, select, [tabindex="0"]:not(.topFocusTrapper):not(.bottomFocusTrapper)').forEach((function(e){e.hasAttribute("disabled")||t.push(e)})),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{OUTPUT_TYPE:"variableString",CSS_TAG:"embeddedOutputsVariableStringElement"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(225),i(247),i(934),i(624),i(1439)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([r],{type:s.OUTPUT_TYPE,constructor:function(e){this._text=e.text,this._diagnosticMessageFormatter=e.diagnosticMessageFormatter;var t=o.treatHtmlLikeCommandWindow(this._text),i=this._diagnosticMessageFormatter.createWarningMessageWithStack(t);this._domElement=i.getDomNode(),a.limitTextNodeLength(this._domElement)},getCssTag:function(){return s.CSS_TAG},getDomElement:function(){return this._domElement},getSerializableData:function(){return{text:this._text}},getText:function(){return a.getText(this._text)},getHTML:function(e,t){return this._domElement.innerHTML}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{findSafeSplitLocation:function(e,t){if(0===t||t===e.length)return t;var i=e.charCodeAt(t-1);return i>=55296&&i<=56319?t-1:t},generateHash:async function(e){if(!window.crypto||!window.crypto.subtle)return null;const t=(new TextEncoder).encode(e);try{const e=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join("")}catch(e){return null}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{OUTPUT_TYPE:"warning",CSS_TAG:"embeddedOutputsWarningElement"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},getId:function(){throw new Error("API not implemented: LineTrackerInterface.getId")},getDataAtRequestTime:function(e){throw new Error("API not implemented: LineTrackerInterface.getDataAtRequestTime")},destroyTrackedData:function(e,t){throw new Error("API not implemented: LineTrackerInterface.destroyTrackedData")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){this.peg=null,this.actionMap=null,this.symbolMap=null,this.row=null,this.rows=[],this.str=""},initMaps:function(){this.peg=this.makePEG(),this.actionMap=this.makeActionMap(),this.symbolMap=this.makeSymbolMap()},parse:function(e){return this.peg||this.initMaps(),this.peg.parse(e)},pushRow:function(e){this.rows.push(this.row),this.row=e},popRow:function(){this.validateRow();var e=this.rows.pop();this.row=e},fillRow:function(e,t){this.pushRow(t),this.append(e),this.popRow()},startSubRow:function(){var e=this.row;this.pushRow(this.makeRow()),e.children.push(this.row)},endSubRow:function(){this.popRow()},makeEquation:function(e){var t=this.makeRoot();return e&&(this.str=e.str,this.fillRow(e.tree,t.children[0])),t},makeRoot:function(){return{className:"MathRoot",children:[this.makeRow()]}},makeRow:function(){return{className:"MathRow",children:[]}},makeDelim:function(e){return{className:"MathDelimiter",symbol:e}},makeText:function(e,t){return"symbol"===t?{className:"MathText",text:" ",symbolName:e,kind:t}:{className:"MathText",text:e,kind:t}},makeSymbol:function(e){return{className:"MathText",text:" ",symbolName:e,kind:"symbol"}},makeFraction:function(e){var t={className:"MathFraction",children:[this.makeRow(),this.makeRow()]};return!0===e&&(t.bevelled=e),t},makeIntegral:function(){return{className:"MathIntegral",children:[this.makeRow(),this.makeRow(),this.makeRow(),this.makeRow()]}},makeRadical:function(){return{className:"MathRadical",children:[this.makeRow(),this.makeRow()]}},makeFenced:function(e,t){return{className:"MathFenced",open:e,close:t,children:[this.makeRow()]}},makeScript:function(){return{className:"MathScript",children:[this.makeRow(),this.makeRow(),this.makeRow()]}},makeMatrix:function(e,t){return{className:"MathMatrix",rows:e,cols:t,children:[]}},name:function(e){return this.peg.names[e.name]},slice:function(e){return this.str.slice(e.start,e.end)},push:function(e){return this.row.children.push(e),e},pushText:function(e,t){var i=this.makeText(e,t);return this.push(i)},pushDelim:function(e){return this.push(this.makeDelim(e))},notLeafNode:function(e){return void 0===e||"MathText"!==e.className&&"MathDelimiter"!==e.className&&"MathRow"!==e.className},validateRow:function(){},append:function(e){var t=this.peg.names[e.name],i=this.actionMap[t];1===i.length?i[0].call(this,e):2===i.length?i[0].call(this,e,i[1]):i[0].call(this,e,i[1],i[2])},mapSymbolName:function(e){var t=this.symbolMap[e];return t||e},appendSymbol:function(e){var t=this.slice(e).trim();this.pushText(this.mapSymbolName(t),"symbol")},appendRawString:function(e,t){this.pushText(this.slice(e),t)},simplifyLastItem:function(e){var t=e.children;if(0!==t.length){var i=t[t.length-1];if("MathRow"===i.className){var n=i.children;1===n.length?(t.pop(),t.push(n.pop())):0===n.length&&t.pop()}}},appendChildren:function(e){var t,i=e.children;if(0===i.length&&e.start<e.end)this.pushText(this.slice(e),"code");else if(1===i.length)this.append(i[0]);else if(i.length>0){for(this.startSubRow(),t=0;t<i.length;t+=1)this.append(i[t]);this.endSubRow(),this.simplifyLastItem(this.row)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){},getApplicableTypes:function(){throw new Error("Unimplemented: getApplicableTypes")},reset:function(){},enter:function(e,t,i){return!1},leave:function(e,t,i){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(253)],o=i.dj.d(n,(function(e){var t=null;function i(){null===t&&((t={}).FigurePalette={configName:"FigurePalette",configElements:[{iconClass:"exportButton",action:"Action.Export",elementType:"ActionButtonElement",tooltip:e.exportLabel},{iconClass:"datacursorButton",mode:"Exploration.Datacursor",elementType:"ModeButtonElement",tooltip:e.dataCursorLabel},{iconClass:"rotateButton",mode:"Exploration.Rotate3d",elementType:"3DModeButtonElement",tooltip:e.rotateLabel},{iconClass:"panButton",mode:"Exploration.Pan",elementType:"ModeButtonElement",tooltip:e.panLabel},{iconClass:"zoomInButton",mode:"Exploration.Zoom",elementType:"ZoomModeButtonElement",direction:"in",tooltip:e.zoomInLabel},{iconClass:"zoomOutButton",mode:"Exploration.Zoom",elementType:"ZoomModeButtonElement",direction:"out",tooltip:e.zoomOutLabel},{iconClass:"restoreViewButton",action:"Action.RestoreView",elementType:"ActionButtonElement",tooltip:e.restoreViewLabel}]},t.EmptyPalette={configName:"EmptyPalette",configElements:[]},t.OutputPopoutPalette={configName:"OutputPopoutPalette",configElements:[{iconClass:"figurePopoutButton",elementType:"ActionButtonElement",tooltip:e.figurePopOutPrompt}]},t.MatrixPopoutPalette={configName:"MatrixPopoutPalette",configElements:[{iconClass:"figurePopoutButton",elementType:"ActionButtonElement",tooltip:e.variableEditorPopOutPrompt}]},t.InteractiveVariablePopoutPalette={configName:"InteractiveVariablePopoutPalette",configElements:[{iconClass:"figurePopoutButton",elementType:"ActionButtonElement",tooltip:e.variableEditorPopOutPrompt}]},t.RunScriptPalette={configName:"RunScriptPalette",configElements:[{iconClass:"runScriptInfoButton",elementType:"ActionButtonElement",tooltip:e.figureRunPrompt}]},t.ActionPalette={configName:"ActionPalette",configElements:[{iconClass:"zInButton",action:"Action.Zoom",elementType:"ActionButtonElement",direction:"in",tooltip:e.zoomInActionLabel},{iconClass:"zOutButton",action:"Action.Zoom",elementType:"ActionButtonElement",direction:"out",tooltip:e.zoomOutActionLabel},{iconClass:"restoreViewButton",action:"Action.RestoreView",elementType:"ActionButtonElement",tooltip:e.restoreViewLabel}]},t.GeoAxesPalette={configName:"GeoAxesPalette",configElements:[{iconClass:"exportButton",action:"Action.Export",elementType:"ActionButtonElement",tooltip:e.exportLabel},{iconClass:"datacursorButton",mode:"Exploration.Datacursor",elementType:"ModeButtonElement",tooltip:e.dataCursorLabel},{iconClass:"zInButton",action:"Action.Zoom",elementType:"ActionButtonElement",direction:"in",tooltip:e.zoomInActionLabel},{iconClass:"zOutButton",action:"Action.Zoom",elementType:"ActionButtonElement",direction:"out",tooltip:e.zoomOutActionLabel},{iconClass:"restoreViewButton",action:"Action.RestoreView",elementType:"ActionButtonElement",tooltip:e.restoreViewLabel}]})}return{getPalette:function(e){return i(),t[e]},registerPalette:function(e,n){i(),t[e]=n},getRegistry:function(){return i(),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2025),i(209),i(4718)],o=i.dj.d(n,(function(e,t){return{getPalette:function(i,n){var o=null;if(i&&i.configName&&i.configElements&&Array.isArray(i.configElements)){var r=i.configElements;o=new e({dataTag:i.configName,numElements:r.length}),r.forEach((function(e,i,r){!function(e,i,n){var o=null;try{var r=function(e){return"rtc/plugins/embeddedoutputs/outputhandlers/figure/floatingpalette/elements/"+e}(e);if(!r)return null;o=new(require(r))(i),n&&"function"==typeof n&&n(o)}catch(e){t.error(e)}}(e.elementType,e,(function(e){o.addElementAtIndex(e,i),o.isComplete()&&n&&"function"==typeof n&&n(o)}))})),0===r.length&&n&&"function"==typeof n&&n(o)}return o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(217),i(213),i(204),i(257),i(411),i(2027),i(2028)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([a,s,l],{isStyleSet:!1,isStateSet:!1,_mode:null,_elementEvents:{elementClicked:"elementClicked"},constructor:function(e){e&&this._init(e)},_init:function(e){e.iconClass&&(this.baseClass=e.iconClass),e.mode&&(this._mode=e.mode),e.tooltip?this.setToolTipText(e.tooltip):this.setToolTipText(this._mode.replace("Exploration.",""))},startup:function(){this.inherited(arguments),this.createToolTip(this.domNode),this.createMouseListeners(this.domNode),t.add(this.domNode,"palettebutton")},onClick:function(e){if(this.isStyleSet===this.isStateSet){this.isStateSet=!this.isStateSet,this.setStyle(this.isStateSet);var t=!1===this.isStateSet?"":this._mode;this.notify(this._elementEvents.elementClicked,{mode:t})}},setStyle:function(e){e?(t.add(this.domNode,this.baseClass+"Pressed"),this.isStyleSet=!0):(t.remove(this.domNode,this.baseClass+"Pressed"),this.isStyleSet=!1)},setState:function(e){void 0!==e.mode&&(e.mode!==this._mode?this.isStateSet=!1:this.isStateSet=!0,this.setStyle(this.isStateSet))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(206),i(217),i(213),i(204),i(257),i(223),i(225),i(246),i(725),i(681),i(221)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([d,u],{_keyboardListener:null,_isExpander:!0,START_WIDTH:128,documentMouseDownHandler:null,documentMouseUpHandler:null,eraseWhileEditing:!0,originalPosition:null,_textAlignment:"center",_MIN_WIDTH:20,_MAX_IMG_WIDTH:560,_isEditing:!1,_mouseDownTarget:null,_elementEvents:{textCommit:"textCommit",textRollback:"textRollback",textClicked:"textClicked"},constructor:function(e){e&&this._init(e)},_init:function(e){e.widgetClass&&(this.baseClass=e.widgetClass),e.placeHolderText&&(this.placeHolderText=e.placeHolderText),e.fieldType&&(this.fieldType=e.fieldType),e.customClass&&(this.customClass=e.customClass)},startup:function(){this.inherited(arguments),t.add(this.domNode,"placeholder"),o.set(this.domNode,"width",this.START_WIDTH+"px"),o.set(this.focusNode,"width",this.START_WIDTH+"px"),this.customClass&&t.add(this.domNode,this.customClass),this.createMouseListeners(this.domNode),this.createKeyboardListeners(this.domNode),this.documentMouseDownHandler=r.hitch(this,"_handleMouseDown")},setTextAlignement:function(e){this._textAlignment=e},createKeyboardListeners:function(e){this.own(i(e,"keydown",r.hitch(this,"_handleKeyboardEvent")))},createMouseListeners:function(e){this.own(i(e,"click",r.hitch(this,"_handleClickEvent"))),this.own(i(e,"input",r.hitch(this,(function(){this._isEditing||this.startEditing()})))),this.own(i(e,"contextmenu",(function(e){dojo.stopEvent(e)}))),this.own(i(e,"dragstart",(function(e){dojo.stopEvent(e)}))),this.own(i(e,"dragend",(function(e){dojo.stopEvent(e)}))),(h("trident")||h("ie")||h("edge"))&&this.own(i(e,"selectstart",(function(e){e.stopPropagation()})))},_handleClickEvent:function(e){this.focus(),this.startEditing();var t={titleWidget:this};this.notify("textClicked",t),e.stopPropagation()},_handleKeyboardEvent:function(e){switch(this._getKeyCode(e)){case s.ENTER:this.commit();break;case s.TAB:this._focusNextNode(e);break;case s.ESCAPE:this.rollback();break;default:return void this._doResize()}},_focusNextNode:function(e){e.stopPropagation();var t={textValue:this.get("value"),fieldType:this.fieldType,eventKeyCode:e.shiftKey?"SHIFTTAB":"TAB"};this.stopEditing(),this.notify("textCommit",t)},_getParentDomNodePosition:function(){return n.position(this.domNode.parentNode)},_getDomNodePosition:function(){return n.position(this.domNode)},_getFocusDomNodePosition:function(){return n.position(this.focusNode)},_setDomNodeLeftPosition:function(e){o.set(this.domNode,"left",e+"px")},_setFocusDomNodeLeftPosition:function(e){o.set(this.focusNode,"left",e+"px")},_setDomNodesWidth:function(e){o.set(this.domNode,"width",e+"px")},_setFocusDomNodesWidth:function(e){o.set(this.focusNode,"width",e+"px")},_doResize:function(){var e=this.get("value"),t=this._getStringDimsInPixels(e).width,i=1.2*(t=Math.max(t,this._MIN_WIDTH)),n=this._getParentDomNodePosition(),r=this._getWidthInFigureBounds(i);if(t>this.START_WIDTH)if(i<n.w){var a=this._getDomNodePosition();if(this.originalPosition||(this.originalPosition=a),this._setDomNodesWidth(i),this._setFocusDomNodesWidth(i),"center"===this._textAlignment)this._setDomNodeLeftPosition(this.originalPosition.x-n.x-(i-this.originalPosition.w)/2),this._setFocusDomNodeLeftPosition(this.originalPosition.x-n.x-(i-this.originalPosition.w)/2);else{var s=o.get(this.domNode,"left")-(i-r),c=o.get(this.focusNode,"left")-(i-r);this._setDomNodeLeftPosition(s<0?0:s),this._setFocusDomNodeLeftPosition(c<0?0:c)}}else{var d=Math.min(n.w,this._MAX_IMG_WIDTH),u=l("input",this.domNode);u[0]&&u[0].setSelectionRange&&u[0].setSelectionRange(0,0),this._setDomNodesWidth(d),this._setFocusDomNodesWidth(d),this._setDomNodeLeftPosition(0),this._setFocusDomNodeLeftPosition(0)}},_getWidthInFigureBounds:function(e){var t=this._getDomNodePosition(),i=this._getParentDomNodePosition();return t.x+e>i.x+i.w?i.x+i.w-t.x:e},_getStringDimsInPixels:function(e){var t=document.createElement("canvas").getContext("2d"),i=o.get(this.domNode,"fontSize"),n=o.get(this.domNode,"fontFamily"),r=o.get(this.domNode,"fontWeight");return t.font=r+" "+i+" "+n,{width:t.measureText(e).width,height:parseInt(t.font)}},commit:function(e){var t={textValue:this.get("value"),fieldType:this.fieldType,focusedWidget:e};this.stopEditing(),this.notify("textCommit",t)},rollback:function(){this.set("value","");this.notify("textRollback",{textValue:""})},startEditing:function(){this.setPromptingState(!1),this.addEventListener(window,"mousedown",this.documentMouseDownHandler),this._isEditing=!0},isEditing:function(){return this._isEditing},setPromptingState:function(e){e?(t.remove(this.domNode,"editing"),t.add(this.domNode,"placeholder"),this.setText(this.placeHolderText)):(this.isPromptingState()&&this.eraseWhileEditing&&this.setText(""),t.remove(this.domNode,"placeholder"),t.add(this.domNode,"editing")),this.eraseWhileEditing=e},isPromptingState:function(){return t.contains(this.domNode,"placeholder")},stopEditing:function(){this.removeEventListener(window,"mousedown",this.documentMouseDownHandler),this._isEditing=!1},notify:function(e,t){var i=t;i.elementEvent=e,i.textValue=t.textValue,this.emit(e,i)},_getKeyCode:function(e){return e.which?e.which:e.keyCode?e.keyCode:e.charCode?e.charCode:e.key?e.key:null},setState:function(e){},isVisible:function(){return"none"!==o.get(this.domNode,"display")},hide:function(){o.set(this.domNode,"display","none")},show:function(){o.set(this.domNode,"display","inline-block")},_handleMouseDown:function(e){e.stopPropagation();var t=dijit.getEnclosingWidget(e.target);this!==t&&this._callOnMouseUp(r.hitch(this,"commit",t))},_callOnMouseUp:function(e){var t=r.hitch(this,(function(i){this.removeEventListener(window,"mouseup",t),i.stopPropagation(),e()}));this.addEventListener(window,"mouseup",t)},setText:function(e){this.set("value",e.trim()),this._doResize(),this.START_WIDTH=o.get(this.domNode,"width")},destroy:function(){this.stopEditing(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(210),i(213),i(211),i(217),i(206),i(223),i(681),i(1448)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([d,c],{_anchorPoint:null,_endPoint:null,_mouseDownPoint:null,_pivotPoint:"end",_canvas:null,_mouseDownHandlerFcn:null,_mouseMoveHandlerFcn:null,_mouseUpHandlerFcn:null,_keyHandlerFcn:null,_isMouseMove:!1,_imageNodePosition:null,_imageNode:null,_cursorOffset:5,_Z_KEY:90,createDomNodes:function(e,t){this._imageNode=t;var i=r.create("div");return r.place(i,e),this.previewDomNodes=[i],this._canvas=r.create("canvas"),r.place(this._canvas,i),n.add(this._canvas,"scribe"),n.add(i,"scribe"),this.own(s(i,"dragstart",(function(e){dojo.stopEvent(e)}))),this.own(s(i,"dragend",(function(e){dojo.stopEvent(e)}))),i},setAnnotationEndPoints:function(e,t){this._anchorPoint=e,this._endPoint=t},addClickListener:function(e,i){this.matlabInteractionFunction=i,this._mouseMoveHandlerFcn=t.hitch(this,"_mouseMoveListener"),this._mouseUpHandlerFcn=t.hitch(this,"_mouseUpListener"),this._addMouseupWindowListener(),this._mouseDownHandlerFcn=t.hitch(this,"_mouseDownHandler"),this._addMousedownWindowListener()},_addKeyListener:function(){this._keyHandlerFcn||(this._keyHandlerFcn=t.hitch(this,"_keyHandler")),this._removeKeyListener(),document.body.addEventListener("keydown",this._keyHandlerFcn,!0)},_removeKeyListener:function(){document.body.removeEventListener("keydown",this._keyHandlerFcn,!0)},_getKeyCode:function(e){return e.which?e.which:e.keyCode?e.keyCode:e.charCode?e.charCode:e.key?e.key:null},_keyHandler:function(e){var t=this._getKeyCode(e);if(this._isPositioned())switch(t){case l.UP_ARROW:e.stopPropagation(),this._anchorPoint[1]--,this._endPoint[1]--,this.draw(this._anchorPoint,this._endPoint);break;case l.DOWN_ARROW:e.stopPropagation(),this._anchorPoint[1]++,this._endPoint[1]++,this.draw(this._anchorPoint,this._endPoint);break;case l.RIGHT_ARROW:e.stopPropagation(),this._anchorPoint[0]++,this._endPoint[0]++,this.draw(this._anchorPoint,this._endPoint);break;case l.LEFT_ARROW:e.stopPropagation(),this._anchorPoint[0]--,this._endPoint[0]--,this.draw(this._anchorPoint,this._endPoint);break;case l.ENTER:this.commit(),e.stopPropagation(),e.preventDefault();break;case l.ESCAPE:this.commit(),e.stopPropagation();break;case l.DELETE:this._resetAnnotation("delete"),e.stopPropagation();break;case this._Z_KEY:(e.ctrlKey||e.metaKey)&&(this._resetAnnotation("undo"),e.stopPropagation())}else t===l.ESCAPE&&(this._resetAnnotation(),e.stopPropagation())},_resetAnnotation:function(e){this._removeMouseupWindowListener(),this._removeMousedownWindowListener(),this._reset(),this.clearMode(e),document.body.removeEventListener("keydown",this._keyHandlerFcn,!0)},positionAffordance:function(e,t,i,n,r,s,l,c){this._imageNodePosition={w:e.w,h:e.h,x:t,y:i};var d=this.previewDomNodes[0];this._canvas.width=e.w,this._canvas.height=e.h,o.set(d,{width:e.w+"px",height:e.h+"px"}),o.set(this._canvas,{width:e.w+"px",height:e.h+"px"});var u=a.getPadExtents(n);o.set(d,{top:u.t+"px",left:u.l+"px"}),this.parentNode=n},showAffordances:function(e,t,i){if(!this.previewDomNodes||0===this.previewDomNodes.length){var n=this.createDomNodes(t,i);this.addClickListener(n,this.matlabInteractionFunction)}var o=a.position(i);this.positionAffordance(o,o.x,o.y,t),this._canvas.getContext("2d").clearRect(0,0,this._canvas.width,this._canvas.height),this._anchorPoint=null,this._endPoint=null,this.show(),document.body.removeEventListener("keydown",this._keyHandlerFcn,!0),this._addKeyListener()},_getEventPositionRelativeToCanvas:function(e){var t=this.getEventPosition(e);return t.x=t.x-this._imageNodePosition.x,t.y=t.y-this._imageNodePosition.y,t},_updateImageNodePosition:function(){var e=a.position(this._imageNode);this._imageNodePosition.y=e.y,this._imageNodePosition.x=e.x},addMouseMoveForExistingAnnotation:function(e){var t=this._getEventPositionRelativeToCanvas(e);this._mouseDownPoint=[t.x,t.y],this._isMouseMove=!1,this._addMousemoveWindowListener(),this._pivotPoint="translate"},_mouseDownHandler:function(e){dojo.stopEvent(e),this._updateImageNodePosition();var t=this._getEventPositionRelativeToCanvas(e);if(t.x<0||t.y<0||t.x>this._imageNodePosition.w||t.y>this._imageNodePosition.h)this._pivotPoint="";else if(this._isMouseMove=!1,this._anchorPoint||(this._anchorPoint=[t.x+this._cursorOffset,t.y+this._cursorOffset]),this._pivotPoint="",this._mouseDownPoint=[t.x,t.y],this._endPoint){var i=this._getClosestVertex(e);i.distance<10?(this._pivotPoint=i.vertex,this._addMousemoveWindowListener()):this._isAlignedWithLine(e)?(this._addMousemoveWindowListener(),this._pivotPoint="translate"):this.commit()}else this._addMousemoveWindowListener()},_addMouseupWindowListener:function(){this.addEventListener(window,"mouseup",this._mouseUpHandlerFcn)},_removeMouseupWindowListener:function(){this.removeEventListener(window,"mouseup",this._mouseUpHandlerFcn)},_addMousedownWindowListener:function(){this.addEventListener(document,"mousedown",this._mouseDownHandlerFcn)},_removeMousedownWindowListener:function(){this.removeEventListener(document,"mousedown",this._mouseDownHandlerFcn)},_addMousemoveWindowListener:function(){this.addEventListener(window,"mousemove",this._mouseMoveHandlerFcn)},_removeMousemoveWindowListener:function(){this.removeEventListener(window,"mousemove",this._mouseMoveHandlerFcn)},_mouseMoveListener:function(e){this._isMouseMove=!0;var t=this._getEventPositionRelativeToCanvas(e);if(this._anchorPoint&&this._anchorPoint.length>=2&&(!this._endPoint||"end"===this._pivotPoint))this.draw(this._anchorPoint,[t.x+this._cursorOffset,t.y+this._cursorOffset]);else if(this._endPoint&&this._endPoint.length>=2&&"anchor"===this._pivotPoint)this.draw([t.x+this._cursorOffset,t.y+this._cursorOffset],this._endPoint);else if("translate"===this._pivotPoint&&this._isPositioned()){var i=[t.x+this._cursorOffset-this._mouseDownPoint[0],t.y+this._cursorOffset-this._mouseDownPoint[1]];this.draw([this._anchorPoint[0]+i[0],this._anchorPoint[1]+i[1]],[this._endPoint[0]+i[0],this._endPoint[1]+i[1]])}e.stopPropagation()},_mouseUpListener:function(e){this._removeMousemoveWindowListener();var t=this._getEventPositionRelativeToCanvas(e);if(!this._isMouseMove){if(!this._endPoint)return this._rollback(),void e.stopPropagation();this._pivotPoint=""}if(this._endPoint&&"end"!==this._pivotPoint){if("anchor"===this._pivotPoint)this._anchorPoint=[t.x+this._cursorOffset,t.y+this._cursorOffset];else if("translate"===this._pivotPoint){var i=[t.x+this._cursorOffset-this._mouseDownPoint[0],t.y+this._cursorOffset-this._mouseDownPoint[1]];this._anchorPoint=[this._anchorPoint[0]+i[0],this._anchorPoint[1]+i[1]],this._endPoint=[this._endPoint[0]+i[0],this._endPoint[1]+i[1]]}}else this._endPoint=[t.x+this._cursorOffset,t.y+this._cursorOffset];(t.x>this._imageNodePosition.w||t.x<0||t.y>this._imageNodePosition.h||t.y<0)&&this.commit(),dojo.stopEvent(e)},_getAngleFromLine:function(e){var t=this._getEventPositionRelativeToCanvas(e),i=[t.x+this._cursorOffset,t.y+this._cursorOffset],n=[this._endPoint[0]-this._anchorPoint[0],this._endPoint[1]-this._anchorPoint[1]],o=[i[0]-this._anchorPoint[0],i[1]-this._anchorPoint[1]],r=[i[0]-this._endPoint[0],i[1]-this._endPoint[1]],a=o[0]*n[1]-o[1]*n[0],s=-r[0]*n[1]+r[1]*n[0],l=360/(2*Math.PI)*Math.asin(a/(Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2))*Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2))));o[0]*n[0]+o[1]*n[1]<0&&(l+=180);var c=360/(2*Math.PI)*Math.asin(s/(Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2))*Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2))));return r[0]*-n[0]+r[1]*-n[1]<0&&(c+=180),[l,c]},_isAlignedWithLine:function(e){var t=this._getAngleFromLine(e);return Math.abs(t[0])<10&&Math.abs(t[1])<90||Math.abs(t[0])<90&&Math.abs(t[1])<10},_getClosestVertex:function(e){var t=this._getEventPositionRelativeToCanvas(e),i=Math.sqrt(Math.pow(t.x+this._cursorOffset-this._anchorPoint[0],2)+Math.pow(t.y+this._cursorOffset-this._anchorPoint[1],2)),n=Math.sqrt(Math.pow(t.x+this._cursorOffset-this._endPoint[0],2)+Math.pow(t.y+this._cursorOffset-this._endPoint[1],2));return i<=n?{distance:i,vertex:"anchor"}:{distance:n,vertex:"end"}},commit:function(){if(this._removeMouseupWindowListener(),this._removeMousedownWindowListener(),this._isPositioned()){var e=[this._anchorPoint[0]/this._imageNodePosition.w,this._anchorPoint[1]/this._imageNodePosition.h,this._endPoint[0]/this._imageNodePosition.w,this._endPoint[1]/this._imageNodePosition.h];if((e[0]<0||e[0]>1)&&(e[2]<0||e[2]>1)||(e[1]<0||e[1]>1)&&(e[3]<0||e[3]>1))this._resetAnnotation("delete");else{var t={fcn:"springLoadedModeAction",args:{type:this.matlabInteractionFunction,axesIndex:-1,configurationData:{relativePosition:e},mode:this.mode}};this.emit("interaction",t),document.body.removeEventListener("keydown",this._keyHandlerFcn,!0),this._reset()}}else this._rollback()},_isPositioned:function(){return this._anchorPoint&&this._endPoint&&2==this._anchorPoint.length&&2==this._endPoint.length&&!this._anchorPoint.some((function(e){return isNaN(e)}))&&!this._endPoint.some((function(e){return isNaN(e)}))},draw:function(e,t){throw new Error("Subclasses should implement this method")},show:function(){this.previewDomNodes.forEach((function(e){o.set(e,"display","block")}))},_isVisible:function(){return this.previewDomNodes&&this.previewDomNodes.length>0&&this.previewDomNodes[0]&&"block"===o.get(this.previewDomNodes[0],"display")},_reset:function(){this._anchorPoint=[],this._endPoint=[]},_rollback:function(){this._removeMouseupWindowListener(),this._removeMousedownWindowListener(),this._reset(),this.clearMode(),document.body.removeEventListener("keydown",this._keyHandlerFcn,!0)},hide:function(e){!e&&this._isVisible()?this.commit():this._rollback(),this._removeKeyListener(),this._removeMouseupWindowListener(),this._removeMousedownWindowListener(),this._removeMousemoveWindowListener(),this.inherited(arguments)},destroy:function(){this.inherited(arguments),this._removeKeyListener(),this._removeMouseupWindowListener(),this._removeMousedownWindowListener()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(217),i(213),i(210),i(228),i(206),i(222),i(230)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([l,c],{previewDomNodes:null,parentNode:null,figureModel:null,figureView:null,mode:"",constructor:function(e,t){this.figureModel=e,this.figureView=t},createDomNodes:function(e,t,n){var o=i.create("div",{title:t},e);return r.add(o,n),o},addClickListener:function(e,i,n){s(e,"click",t.hitch(this,(function(e){var t=0;this.previewDomNodes.forEach((function(e){e&&"block"==o.get(e,"display")&&t++}));var r={fcn:"springLoadedModeAction",args:{type:i,axesIndex:n,configurationData:"",mode:this.mode,retainMode:t>=2}};t<=1&&this.hide(),this.wait(),dojo.stopEvent(e),this.emit("interaction",r)})))},showAffordances:function(e,t,i){throw new Error("Subclasses should implement this method")},positionAffordance:function(e,t,i,n,r,s,l,c){this.parentNode=n,this.previewDomNodes||(this.previewDomNodes=[]),this.previewDomNodes[s]||(this.previewDomNodes[s]=this.createDomNodes(n,c,l),this.addClickListener(this.previewDomNodes[s],r,s)),e?o.set(this.previewDomNodes[s],{position:"absolute",top:i+"px",left:t+"px",width:e.w+"px",height:e.h+"px"}):o.set(this.previewDomNodes[s],{position:"absolute",top:i+"px",left:t+"px"}),a.set(this.previewDomNodes[s],"data-tag",l+"."+r+"."+s)},show:function(){var e=this.figureModel.getModeStateData();this.previewDomNodes.forEach((function(t,i){!e||e[i]>0?o.set(t,"display","block"):o.set(t,"display","none")})),this.clearWait()},clearMode:function(e){var t={fcn:"springLoadedModeAction",args:{type:"clearMode",clearedMode:this.mode}};e&&(t.args.editType=e),this.emit("interaction",t)},isShowing:function(){return this.previewDomNodes.length>0&&this.previewDomNodes.some((function(e){return"none"!==o.get(e,"display")}))},hide:function(e){var t=this.isShowing();this.previewDomNodes.forEach((function(e){i.destroy(e)})),this.previewDomNodes=[],t&&this.clearMode()},wait:function(){this.isShowing()&&(o.set(this.parentNode,"cursor","wait"),this.previewDomNodes.forEach((function(e){o.set(e,"cursor","wait")})))},clearWait:function(){this.isShowing()&&(o.set(this.parentNode,"cursor",""),this.previewDomNodes.forEach((function(e){o.set(e,"cursor","")})))},_getStringWidthInPixels:function(e,t){var i=document.createElement("canvas").getContext("2d"),n=o.get(t,"fontSize"),r=o.get(t,"fontFamily"),a=o.get(t,"fontWeight");return i.font=a+" "+n+" "+r,i.measureText(e).width},destroy:function(){this.previewDomNodes.forEach((function(e){i.destroy(e)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(213),i(211),i(217),i(206),i(223),i(1447)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([l],{matlabInteractionFunction:"arrow",mode:"placedArrowMode",draw:function(e,t){var i=this._canvas.getContext("2d");i.clearRect(0,0,this._canvas.width,this._canvas.height),i.lineWidth=1,i.beginPath();var n=[e[0],e[1]],o=[t[0],t[1]],r=[t[0],t[1]],a=[r[0]-n[0],r[1]-n[1]],s=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2));if(a[0]=a[0]/s,a[1]=a[1]/s,r[1]-n[1]==0)var l=[0,1];else l=[1,-(r[0]-n[0])/(r[1]-n[1])];var c=Math.sqrt(l[0]*l[0]+l[1]*l[1]);l[0]=l[0]/c,l[1]=l[1]/c;o[0]=o[0]-10*a[0],o[1]=o[1]-10*a[1],i.moveTo(n[0],n[1]),i.lineTo(o[0],o[1]),i.moveTo(o[0]+5*l[0],o[1]+5*l[1]),i.lineTo(o[0]+10*a[0],o[1]+10*a[1]),i.lineTo(o[0]-5*l[0],o[1]-5*l[1]),i.fill();i.rect(n[0]-2,n[1]-2,4,4),i.rect(r[0]-2,r[1]-2,4,4),i.stroke()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(206),i(248),i(1448)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r],{_modeClearListener:null,constructor:function(e){this._modeClearListener=n.pausable(document.body,"click",t.hitch(this,"clearMode")),this._modeClearListener.pause(),this.own(this._modeClearListener)},addClickListener:function(e,t,i){this.inherited(arguments),n(e,o.press,(function(e){e.stopPropagation()}))},_keyHandler:function(e){e.keyCode===i.ESCAPE&&(this.clearMode(),e.stopPropagation())},_addKeyListener:function(){this._keyHandlerFcn||(this._keyHandlerFcn=t.hitch(this,"_keyHandler")),this._removeKeyListener(),document.body.addEventListener("keydown",this._keyHandlerFcn,!0)},_removeKeyListener:function(){document.body.removeEventListener("keydown",this._keyHandlerFcn,!0)},clearMode:function(){this.inherited(arguments),this._modeClearListener.pause(),this._removeKeyListener()},show:function(){this.inherited(arguments),this._modeClearListener.resume(),this._addKeyListener()},hide:function(e){this.inherited(arguments),this._modeClearListener.pause(),this._removeKeyListener()},destroy:function(){this.inherited(arguments),this._keyHandlerFcn&&document.body.removeEventListener("keydown",this._keyHandlerFcn,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(217),i(213),i(210),i(206),i(1450),i(682)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([s],{matlabInteractionFunction:"grid",mode:"placedGridMode",text:l.addGridText,gridIconClass:"gridIcon",tooltipText:l.addGridTooltipText,createDomNodes:function(e,t,n){var o=i.create("div",{title:t,innerHTML:"<div class='"+this.gridIconClass+"'></div><span>"+this.text+"</span>"},e);return r.add(o,n),o},showAffordances:function(e,t,i){var o=n.position(i),r=n.position(t);e.forEach((function(e,i){if(!this.figureModel.isAxesObscuredByEarlierChild(i)){var n=(e[0]+e[2]/2)*o.w+o.x-r.x,a=(1-e[1]-e[3]/2)*o.h+o.y-r.y;this.positionAffordance(null,n,a,t,this.matlabInteractionFunction,i,"placeableGhostGrid",this.tooltipText)}}),this),this.show()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(217),i(213),i(210),i(227),i(206),i(238),i(231),i(1448),i(1446)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([d],{_textInputElements:null,promptText:"",textInputElementCSSClass:"ghostLabel",_textCommitListener:null,_matlabInteractionFunction:"",createDomNodes:function(e,i,n,o,r){return this._matlabInteractionFunction=o,null===this._textInputElements&&(this._textInputElements=[]),this._textInputElements[r]=new u({widgetClass:this.textInputElementCSSClass,placeHolderText:this.promptText}),this._textInputElements[r].placeAt(e),this.own(s(this._textInputElements[r],"startEditing",t.hitch(this,(function(e){this.emit("startEditing",e)})))),this._textInputElements[r].domNode},_emitTextEditEvent:function(e,t,i,n){var o={fcn:"springLoadedModeAction",args:{type:e,axesIndex:t,configurationData:i,mode:this.mode,retainMode:n}};this.emit("interaction",o)},addClickListener:function(e,i,n){null===this._textCommitListener&&(this._textCommitListener=[]),this._textCommitListener[n]=s(c.getEnclosingWidget(e),"textcommit",t.hitch(this,(function(e){var t=!1;this._textInputElements.forEach((function(i){i===e.focusedWidget&&(t=!0,i.stopEditing())})),e.eventKeyCode&&(this._focusNextInputField(n,e.eventKeyCode),this._textInputElements.length>1&&(this._textInputElements[n].stopEditing(),t=!0)),this._textInputElements.length>=2&&""===e.textValue&&this._textInputElements[n].setPromptingState(!0),this._emitTextEditEvent(i,n,e.textValue,t)})))},_focusNextInputField:function(e,t){var i=e,n=null;switch(t){case"TAB":0===i&&(i=this._textInputElements.length),n=this._textInputElements[i-1];break;case"SHIFTTAB":i===this._textInputElements.length-1&&(i=-1),n=this._textInputElements[i+1]}null!=n&&(n.startEditing(),n.focus(),this.emit("startEditing",{}))},showAffordances:function(e,t,n){null===this._textCommitListener&&(this._textCommitListener=[]);var r=this.getLabels(),a=(r.length,this.parentNode&&"block"===o.get(this.parentNode,"display"));if(this.parentNode||(this.parentNode=i.create("div",null,t)),o.set(this.parentNode,{display:"block",position:"absolute",top:"0px",left:"0px",width:o.get(n,"width")+"px",height:o.get(n,"height")+"px"}),e.forEach((function(e,t){if(!this.figureModel.isAxesObscuredByEarlierChild(t)){var i=100*(this.positionMatrix[0][0]+this.positionMatrix[0][1]*e[0]+this.positionMatrix[0][2]*e[2]),n=100*(this.positionMatrix[1][0]+this.positionMatrix[1][1]*e[1]+this.positionMatrix[1][2]*e[3]);this.positionAffordance(null,i,n,this.parentNode,this.actionId,t),this.updateTextField(this._textInputElements[t],r[t])}}),this),this.show(),!a&&this._textInputElements.length>0){var s=this._textInputElements[this._textInputElements.length-1];s.setPromptingState(!1),s.startEditing(),s.focus(),this.emit("startEditing",{})}},updateTextField:function(e,t){a.isDescendant(l.curNode,e.domNode)||e.isEditing()?e.focus():t?(e.setPromptingState(!1),e.setText(t)):e.setPromptingState(!0)},hide:function(e){var t=this._textInputElements.filter((function(e){return e.isEditing()}));e?t.forEach((function(e){e.rollback()}),this):t.forEach((function(e){e.commit()}),this),this._textInputElements.forEach((function(e){e.destroy()})),this._textInputElements=[],i.destroy(this.parentNode),this.parentNode=null,this.inherited(arguments)},show:function(){o.set(this.parentNode,"display","block"),this.previewDomNodes.forEach((function(e,t){o.set(e,"display","block")}))},destroy:function(){null!==this._textCommitListener&&this._textCommitListener.forEach((function(e){e.remove()})),this._textInputElements.forEach((function(e){e.destroy()})),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(230),i(938)],o=i.dj.d(n,(function(e,t,i,n){return e([n,i],{constructor:function(){this.paletteRegistryId="MatrixPopoutPalette"},getPreferredLeftPosition:function(){var e=t(".variableValue",this._outputDomNode),i=0;e&&e.length>=1&&(i=e[0].offsetLeft+e[0].offsetWidth);var n=t(".veVariableName",this._outputDomNode),o=0;return n&&n.length>=1&&(o=n[0].offsetLeft+n[0].offsetWidth),Math.max(i,o)+10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(203),i(204),i(217),i(225),i(213),i(2016),i(1134)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t([a],{MARGIN_PADDING_BUFFER:30,LEFT_MARGIN_BUFFER:14,ELLIPSIS_WIDTH:32,BUFFER_SPACE_FOR_COLUMN:2,MAX_ROWS_TO_SHOW:10,_SUMMARYBAR_VIEWPORT_SPAN:"veViewportSummary",getStyleChange:function(e){var t=e.outputDiv,n=o(".valueContainer",t)[0],r=this.getAvailableWidth(t),a=parseFloat(t.getAttribute("data-width"));if(n){var s=this.getMatrixInfo(n),l=this.getTotalColumnsThatFit(r,s,n);if(this.updateViewportInfo(t,this.MAX_ROWS_TO_SHOW,l,s.totalRows,s.totalColumns),!this._hasWidthChanged(r,a))return null;var c=o(".variableValue",n)[0],d=o(".veVariableName",t)[0],u=this.getLayoutInfo(s,l);return i.mixin({},e,{availableWidth:r,totalWidth:u.totalWidth,valueContainer:n,variableValue:c,matrixInfo:s,numOfColumnsToShow:u.numOfColumnsToShow,veVariableName:d})}},getLayoutInfo:function(e,t){var i=Math.min(t,e.totalColumns);return{numOfColumnsToShow:i,totalWidth:i*e.columnWidth+this.BUFFER_SPACE_FOR_COLUMN}},applyStyleChange:function(e){return e.outputDiv.setAttribute("data-width",e.availableWidth),r.set(e.variableValue,"width",e.totalWidth+"px"),r.set(e.veVariableName,"width",e.availableWidth+"px"),{heightChanged:s.updateEllipsesVisibility(e.valueContainer,e.matrixInfo.totalColumns,e.matrixInfo.totalRows,e.numOfColumnsToShow,this.MAX_ROWS_TO_SHOW).verticalChanged,nextChange:null}},_hasWidthChanged:function(e,t){return this._hasDimensionChanged(e,t)},_hasDimensionChanged:function(e,t){return e&&0!==e&&e!==t},updateViewportInfo:function(e,t,i,n,o){var r=e.getElementsByClassName(this._SUMMARYBAR_VIEWPORT_SPAN)[0];if(r){if(n>1){var a=r.getElementsByClassName("startRow")[0];r.getElementsByClassName("endRow")[0].innerText=Math.min(parseInt(a.innerText)+(t-1),n)}if(o>1){var s=r.getElementsByClassName("startColumn")[0];r.getElementsByClassName("endColumn")[0].innerText=Math.min(parseInt(s.innerText)+(i-1),o)}}},getMatrixInfo:function(e){if(e)try{return JSON.parse(e.getAttribute("data-layout"))}catch(e){}return null},getAvailableWidth:function(e){return n.getMarginBox(e).w-this.MARGIN_PADDING_BUFFER},getTotalColumnsThatFit:function(t,i,n){if(e.contains(n,"hideEllipses")||0!=n.getElementsByClassName("horizontalEllipsis hide").length)return Math.floor(t/i.columnWidth);var o=t-(this.ELLIPSIS_WIDTH+this.LEFT_MARGIN_BUFFER);return Math.floor(o/i.columnWidth)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{OUTPUT_TYPE:"matrix",CSS_TAG:"embeddedOutputsMatrixElement"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(204),i(453),i(802),i(1863),i(1864),i(400),i(618)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";var l=/\u00A0/g;function c(i,n){var r=null;if(!i)return o();var a=t.mixin({},n,{needsSym:!1});return e.some(f,(function(e){return a.needsSym=!1,r=e(i,a),n.needsSym&&r&&!r.hasSym()&&(a.needsSym=!0,r=e(i,a)),r})),r instanceof o?r:o({code:"_",invalid:!0})}function d(e,t){return t.forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),e.sort()}function u(e,i,n,a){n=n||r.INFINITE,a=a||0;var s=t.mixin({},i);s.parentPrecedence=n;var l=p(e,s,0,[a,Math.min(e.children.length-1,a+2)]),c=l.code,d=l.hasSym;return o({code:c.trim(),idents:l.idents,precedence:n,invalid:l.invalid,hasSym:d})}function h(e,t,i,n){var r=p(e,t,i,n);return o({code:r.code,idents:r.idents,boundIdents:r.boundIdents,precedence:r.precedence,invalid:r.invalid,hasSym:r.hasSym})}function p(e,i,n,o){o=o||[];var a="",s=[],l=[],u=!1,h=!1,p=r.NOOP,f=t.mixin({},i),g=e.children.slice(n).map((function(e){var t=c(e,f);return t.addParensIfNeeded(i.parentPrecedence),a+=t.code(),s=d(s,t.idents()),l=d(l,t.boundIdents()),u=u||t.isInvalid(),h=h||t.hasSym(),p=Math.max(p,t.precedence()),f.needsSym=f.needsSym&&!h,t}));if(o.length>0){var m=!1;o.some((function(e){return g.length>e-n&&(m=m||g[e-n].hasSym()),m})),m||(f.needsSym=!0,g[o[0]-n]=c(e.children[o[0]],f),(h=g[o[0]-n].hasSym())||(g[o[1]-n]=c(e.children[o[1]],f)),a=g.map((function(e){return e.code()})).join(""))}return{code:a,codeArray:g,idents:s,boundIdents:l,precedence:p,invalid:u,hasSym:h}}var f=[];function g(e){var t={catalan:"catalan",eulergamma:"eulergamma",symtrue:"symtrue",symfalse:"symfalse",NaN:"sym(NaN)",pi:"sym(pi)"};if(t.hasOwnProperty(e)){var i=t[e];return o({code:i,hasSym:!0})}return null}f.push((function(e,t){var n=e[i.MWMMLX_TEMPLATE];if(n){var o=_[n];if(o)return o(e,t)}})),f.push((function(e,t){var n=e[i.MWMMLX_VARNAME];if(n)return t.abbreviations&&t.abbreviations[n]?t.abbreviations[n]:o({code:n,idents:[n]})})),f.push((function(e,t){if("MathRow"===e.className||"MathRoot"===e.className)return h(e,t)})),f.push((function(e,t){if("MathFenced"===e.className){var i=u(e,t);return o({code:e.open+i.code()+e.close,idents:i.idents(),invalid:i.isInvalid()})}})),f.push((function(e,t){if("MathText"===e.className){var i,n=e.kind;switch("code"===n&&/^\d+$/.test(e.text)&&(n="number"),n){case"number":return e.text.match(/^\d+$/)?parseInt(e.text,10)>Math.pow(2,32)?o({code:'sym("'+e.text+'")',hasSym:!0}):t.needsSym?o({code:"sym("+e.text+")",hasSym:!0}):o({code:e.text}):o({code:'vpa("'+e.text+'")',hasSym:!0});case"id":case"code":if(i=g(e.text))return i;if(e.text.match(/^".*"$/))return o({code:e.text.replace(l," "),invalid:!0});var r=e.text.replace(l," "),s=[];return r.trim()&&-1===m.indexOf(r)&&(s=[r]),o({code:r,idents:s});case"mtext":return o({code:e.text.replace(l," "),invalid:!0});case"symbol":return(i=g(e.symbolName))||a.serializeToMatlab(e.symbolName);case"placeholder":return o({code:"_",invalid:!0})}return o({code:"",invalid:!0})}})),f.push((function(e,t){if("MathDelimiter"===e.className)return a.serializeToMatlab(e.symbolName)}));var m=["catalan","eulergamma","acos","acosh","acot","acoth","acsc","acsch","angle","arg","asec","asech","asin","asinh","atan","atanh","chebyshevT","chebyshevU","cos","cosh","coshint","cosint","cot","coth","csc","csch","erfcinv","erfinv","fibonacci","fix","gammaln","gegenbauerC","hermiteH","imag","jacobiP","legendreP","ln","logint","max","min","real","root","sec","sech","sin","sinh","sinhint","sinint","ssinint","tan","tanh"],_={};function v(e,t){for(var i=e,n=0;n<t.length;n+=1)i=i.children[t[n]];return i}return[["integers",'"integer"'],["reals",'"real"'],["rationals",'"rational"'],["naturalnumbers",'"naturalnumber"'],["complexes",'"complex"'],["primes",'"prime"'],["exponentiale","exp(sym(1))"],["imaginaryi","sym(1i)"],["notanumber","sym(NaN)"],["true","sym(true)"],["false","sym(false)"],["unknown",'sym("unknown")'],["emptyset","sym(zeros([0, 1]))"],["pi","sym(pi)"],["infinity","sym(inf)"],["catalan","catalan"],["eulergamma","eulergamma"],["matrixEmpty","sym([])"],["matrixEmptySB","sym([])"]].forEach((function(e){_[e[0]]=function(t){return o({code:e[1],hasSym:'"'!==e[1].indexOf(0),invalid:!1})}})),_.plus=function(e,i){var n=e.children[0];if(2===n.children.length){var a=c(n.children[1],i);return o({code:"-"+a.code(),idents:a.idents(),precedence:r.PLUS,invalid:a.isInvalid(),hasSym:a.hasSym()})}var s=t.mixin({},i,{needsSym:!1}),l=n.children[0].className&&" - "===c(n.children[0],s).code();return u(n,s,r.PLUS,l?1:0)},[["eq",r.RELATION],["eqMATRIX",r.RELATION],["approx",r.RELATION],["lt",r.RELATION],["leq",r.RELATION],["neq",r.RELATION],["gt",r.RELATION],["geq",r.RELATION],["and",r.AND],["or",r.OR],["lazyand",r.AND],["lazyor",r.OR],["not",r.NOT],["seq",r.EXPRSEQ]].forEach((function(e){_[e[0]]=function(t,i){return u(t,i,e[1])}})),_.complextimes=function(e,i){var n=t.mixin({},i,{needsSym:!1}),r=c(e.children[0].children[0],n),a=r.hasSym(),s=r.code();return r.hasSym()?s=s.slice(0,-2)+'i")':(s+="i",i.needsSym&&(s='sym("'+s+'")',a=!0)),o({code:s,invalid:r.isInvalid(),hasSym:a})},[["times",r.MULT],["timescdot",r.MULT]].forEach((function(e){_[e[0]]=function(t,n){var o=t.children[0];return 3===o.children.length&&"MathText"===o.children[0].className&&"number"===o.children[0].kind&&"imaginaryi"===o.children[2][i.MWMMLX_TEMPLATE]?_.complextimes(t,n):u(t,n,e[1])}})),_.divide=function(e,t){var n,a;"divide"===e[i.MWMMLX_TEMPLATE]?(a=[0],n=[1]):(a=[0,0],n=[0,2]);var s=c(v(e,a),t);s.addParensIfNeeded(r.MULT);var l=c(v(e,n),t);l.addParensIfNeeded(r.MULT);var u=s.code()+"/"+l.code();t.needsSym&&(s.hasSym()||l.hasSym()||((s=c(v(e,a),{needsSym:!0})).addParensIfNeeded(r.MULT),u=s.code()+"/"+l.code()));var h=function(e,t){var i=RegExp(/^(\d+)$|^sym\("?(\d+)"?\)$/);if(i.test(e.code())&&i.test(t.code())){var n=i.exec(e.code())[1]||i.exec(e.code())[2],a=i.exec(t.code())[1]||i.exec(t.code())[2],s=n+"/"+a;return(n.length>5||a.length>5||s.length>10)&&(s='"'+s+'"'),o({code:"sym("+s+")",precedence:r.INFINITE,hasSym:!0})}}(s,l);return h||o({code:u,idents:d(s.idents(),l.idents()),precedence:r.MULT,invalid:s.isInvalid()||l.isInvalid(),hasSym:s.hasSym()||l.hasSym()})},_.divideLinear=_.divide,_.power=function(e,t){var i=p(e,t,0,[0,2]),n=i.codeArray[0],a=i.codeArray[2];return n.hasSym()||a.hasSym()||(n=c(e.children[0],{needsSym:!0})),a.addParensIfNeeded(r.POWER),o({code:n.code()+"^"+a.code(),idents:d(n.idents(),a.idents()),precedence:r.POWER,invalid:n.isInvalid()||a.isInvalid(),hasSym:n.hasSym()||a.hasSym()})},_.powerBigExpo=_.power,_.apply=function(e,i){var n=t.mixin({},i,{useBoundIdent:"x_1",parentPrecedence:r.NOOP}),a=p(e,n,0,[0,1]),s=e.children[1].children;"MathRow"===s[0].className&&(s=s[0].children);var l=s[1].children,c=a.codeArray[0].boundIdents(),d=a.code;if(1===c.length&&1===l.length){var u=a.idents;if(-1!==u.indexOf(c[0])){for(var h="x_",f=1;-1!==u.indexOf(h+f);)f+=1;n.useBoundIdent=h+=f,c=(a=p(e,n)).codeArray[0].boundIdents()}d="subs("+a.codeArray[0].code(),d+=', sym("'+c[0]+'"), ',d+=a.codeArray[1].code().slice(1,-1),d+=")"}return o({code:d,idents:a.idents,invalid:a.invalid,hasSym:a.hasSym})},_.applyvoid=h,_.matrix=function(e,i){var n=3===e.children.length?e.children[1]:e.children[0],r=n.rows,a=n.cols,s=!1,l=[],u=[];n.children.forEach((function(e){var n=c(e,t.mixin({},i,{needsSym:!0}));l=d(l,n.idents()),s=s||n.isInvalid(),u.push(n)}));for(var h="",p=0;p<r;p+=1){for(var f=0;f<a;f+=1)h+=u[p*a+f].code()+", ";h=h.slice(0,-2)+"; "}return h="["+h.slice(0,-2)+"]",o({code:h,idents:l,invalid:s,hasSym:!0})},_.matrixSB=_.matrix,_.matrixNB=_.matrix,_.hypergeom=function(e,i){var n="hypergeom(",r=[],a=!1,s=!1,l=t.mixin({},i);function u(e,t){var i=c(v(e,t),l);return r=d(r,i.idents()),a=a||i.isInvalid(),s=s||i.hasSym(),l.needsSym=l.needsSym&&!s,i.code()}return n+="["+u(e,[3,1,0,0])+"], ",n+="["+u(e,[3,1,3,0])+"], ",n+=u(e,[3,1,6,0]),o({code:n+=")",idents:r,invalid:a,hasSym:s})},_.meijerG=function(e,i){var n="meijerG(",r=[],a=!1,s=!1,l=t.mixin({},i);function u(e,t){var i=c(v(e,t),l);return r=d(r,i.idents()),a=a||i.isInvalid(),s=s||i.hasSym(),l.needsSym=l.needsSym&&!s,i.code()}var h,p=parseFloat(u(e,[1,2,3])),f=parseFloat(u(e,[1,1,0])),g=parseFloat(u(e,[1,2,0])),m=parseFloat(u(e,[1,1,3])),_=[],b=[],y=[],C=[];for(h=0;h<p;h+=1)_.push(u(e,[3,2,0,0,0,2*h]));for(;h<f;h+=1)b.push(u(e,[3,2,0,0,0,2*h]));for(h=0;h<g;h+=1)y.push(u(e,[3,1,0,0,0,2*h]));for(;h<m;h+=1)C.push(u(e,[3,1,0,0,0,2*h]));return n+="["+_.join(", ")+"], ",n+="["+b.join(", ")+"], ",n+="["+y.join(", ")+"], ",n+="["+C.join(", ")+"], ",n+=u(e,[5]),o({code:n+=")",idents:r,invalid:a,hasSym:s})},_.evalAt=function(e,n){var r="subs(",a=[],s=!1,l=!1,u=t.mixin({},n);function h(e,t){var i=c(v(e,t),u);return a=d(a,i.idents()),s=s||i.isInvalid(),l=l||i.hasSym(),u.needsSym=u.needsSym&&!l,i.code()}var p=[0,0];"MathFenced"===v(e,p).className&&(p=[0,0,0]),r+=h(e,p);var f=v(e,[1,0]);if("eq"===f[i.MWMMLX_TEMPLATE])r+=", "+h(f,[0,0]),r+=", "+h(f,[0,2]);else{var g=[],m=[];f=f.children[0];for(var _=0;_<f.children.length;_+=2)g.push(h(f,[_,0,0])),m.push(h(f,[_,0,2]));r+=", ["+g.join(", ")+"]",r+=", ["+m.join(", ")+"]"}return o({code:r+=")",idents:a,invalid:s,hasSym:l})},_.index=function(e,i){var n=c(e.children[0],i),r=t.mixin({},i,{needsSym:!1}),a=p(e.children[1],r);n.hasSym()||a.hasSym||(r.needsSym=!0,n=c(e.children[0],r));var s=n.code()+"("+a.code+")";return i.abbreviations&&i.abbreviations[s]?i.abbreviations[s]:o({code:s,idents:d(n.idents(),a.idents),invalid:n.isInvalid()||a.invalid,hasSym:n.hasSym()||a.hasSym})},["union","intersect"].forEach((function(e){_[e]=function(t,i){for(var n=p(t.children[0],i),r=n.codeArray,a=n.hasSym,s=!1,l=r[0].code(),c=2;c<r.length;c+=2){var d=r[c];s=s||d.isInvalid(),l=e+"("+l+", "+d.code()+")"}return o({code:l,idents:n.idents,invalid:s,hasSym:a})}})),["D","D2","D3","DN"].forEach((function(e){_[e]=function(t,i){var n=p(t,i),r=i.useBoundIdent||"x_1",a=n.codeArray,s=n.hasSym,l='sym("'+r+'")',c="";switch(e){case"D2":c=", 2";break;case"D3":c=", 3";break;case"DN":c=", "+a[2].code().slice(1,-1)}var d="diff("+a[0].code()+"("+l+"), "+l+c+")";return o({code:d,idents:n.idents,invalid:!1,hasSym:s,boundIdents:[r]})}})),_.piecewise=function(e,n){var r="piecewise(",a=[],s=!1,l=!1,u=t.mixin({},n);function h(e,t){var i=c(v(e,t),u);return a=d(a,i.idents()),s=s||i.isInvalid(),l=l||i.hasSym(),u.needsSym=u.needsSym&&!l,i.code()}var p=v(e,[1]),f=p.children.length;"piecewise4"===e[i.MWMMLX_TEMPLATE]&&(f-=2);for(var g=0;g<f;g+=2){var m=v(p,[g+1]);"placeholder"===m[i.MWMMLX_DATACATEGORY]&&(m=v(m,[0])),m.children&&2===m.children.length&&"true"!==m.children[1][i.MWMMLX_TEMPLATE]&&(r+=h(m,[1])+", "),r+=h(p,[g])+", "}return r=r.slice(0,-2)+")",o({code:r,idents:a,invalid:s,hasSym:l})},_.piecewise3=_.piecewise,_.piecewise4=_.piecewise,[["fresnelC","fresnelc"],["fresnelS","fresnels"],["dilog","dilog"],["polylog","polylog"],["gamma","gamma"],["lg","log10"],["log","log"],["igamma","igamma"],["beta","beta"],["wrightOmega","wrightOmega"],["ellipticCE","ellipticCE"],["ellipticCK","ellipticCK"],["ellipticE","ellipticE"],["ellipticK","ellipticK"],["ellipticNome","ellipticNome"]].forEach((function(e){m.push(e[1]),_[e[0]]=function(t,i){var n=h(t,i,1,[1]);return o({code:e[1]+n.code(),idents:n.idents(),invalid:n.isInvalid(),hasSym:n.hasSym()})}})),["zeta","dirac","psi","hurwitzZeta"].forEach((function(e){function i(i){_[e+i]=function(n,r){var a=[],s=[],l=!1,u=!1,h=t.mixin({},r);function p(e){var t=c(e,h);return s=d(s,t.idents()),l=l||t.isInvalid(),u=u||t.hasSym(),h.needsSym=h.needsSym&&!u,t.code()}!function(){for(var e=2;e<n.children.length-1;e+=1)a.push(p(n.children[e]))}(),"D"===i&&(i=p(v(n,[0,2,1])));var f="",g="";return"hurwitzZeta"===e?g=i?", "+i:"":f=i?i+", ":"",o({code:e+"("+f+a.join("")+g+")",idents:s,invalid:l,hasSym:u})}}m.push(e),i(""),i("1"),i("2"),i("3"),i("D")})),[["partialdiff","diff",[[2],[0,1,1]],{}],["partialdiff1","diff",[[2],[0,1,1,0],[0,1,1,2]],{}],["xor","xor",[[0,0],[0,2]],{}],["sqrt","sqrt",[[0,0]],{}],["root","nthroot",[[0,0],[1,0]],{}],["exp","exp",[[2]],{}],["binomial","nchoosek",[[1,0],[1,1]],{}],["lngamma","gammaln",[[2]],{}],["whittakerM","whittakerM",[[0,1,0],[0,1,2],[2]],{}],["whittakerW","whittakerW",[[0,1,0],[0,1,2],[2]],{}],["besselI","besseli",[[0,1,0],[1,1]],{}],["besselJ","besselj",[[0,1,0],[1,1]],{}],["besselK","besselk",[[0,1,0],[1,1]],{}],["besselY","bessely",[[0,1,0],[1,1]],{}],["besselH1","besselh",[[1,1],[1,2,1],[2,1]],{}],["besselH2","besselh",[[1,1],[1,2,1],[2,1]],{}],["lambertW","lambertw",[[0,1,0],[1,1]],{}],["ellipticCPi","ellipticCPi",[[1,1,0],[1,1,2]],{}],["ellipticE2","ellipticE",[[1,1,0],[1,1,2]],{}],["ellipticF","ellipticF",[[1,1,0],[1,1,2]],{}],["ellipticPi","ellipticPi",[[1,1,0],[1,1,2]],{}],["ellipticPi2","ellipticPi",[[1,1,0],[1,1,2],[1,1,4]],{}],["kroneckerDelta","kroneckerDelta",[[1,0],[1,2]],{}],["jacobiAM","jacobiAM",[[1,1,0],[1,1,2]],{}],["jacobiCD","jacobiCD",[[1,1,0],[1,1,2]],{}],["jacobiCN","jacobiCN",[[1,1,0],[1,1,2]],{}],["jacobiCS","jacobiCS",[[1,1,0],[1,1,2]],{}],["jacobiDC","jacobiDC",[[1,1,0],[1,1,2]],{}],["jacobiDN","jacobiDN",[[1,1,0],[1,1,2]],{}],["jacobiDS","jacobiDS",[[1,1,0],[1,1,2]],{}],["jacobiNC","jacobiNC",[[1,1,0],[1,1,2]],{}],["jacobiND","jacobiND",[[1,1,0],[1,1,2]],{}],["jacobiNS","jacobiNS",[[1,1,0],[1,1,2]],{}],["jacobiSC","jacobiSC",[[1,1,0],[1,1,2]],{}],["jacobiSD","jacobiSD",[[1,1,0],[1,1,2]],{}],["jacobiSN","jacobiSN",[[1,1,0],[1,1,2]],{}],["jacobiZeta","jacobiZeta",[[1,1,0],[1,1,2]],{}],["pochhammer","pochhammer",[[0,1],[1]],{}],["ceil","ceil",[[1]],{}],["floor","floor",[[1]],{}],["abs","abs",[[1]],{}],["unitgroup","",[[1]],{}],["norm","norm",[[1]],{additionalArguments:['"fro"']}],["infinitynorm","norm",[[0,1],[1]],{}],["onenorm","norm",[[0,1],[1]],{}],["othernorm","norm",[[0,1],[1]],{}],["definiteint","int",[[2],[4],[0,1],[0,2]],{extrasAreOptions:!0}],["definiteintpv","int",[[2],[4],[0,1],[0,2]],{extrasAreOptions:!0,additionalArguments:['"PrincipalValue"',"true"]}],["int","int",[[2],[4]],{extrasAreOptions:!0}],["definitesum","symsum",[[2],[0,1,0],[0,1,2],[0,2]],{}],["sum","symsum",[[2],[0,1]],{}],["definiteproduct","symprod",[[2],[0,1,0],[0,1,2],[0,2]],{}],["product","symprod",[[3],[0,1]],{}],["limit","limit",[[2],[0,1,0],[0,1,2]],{}],["limitRight","limit",[[2],[0,1,0],[0,1,2,0]],{additionalArguments:['"right"']}],["limitLeft","limit",[[2],[0,1,0],[0,1,2,0]],{additionalArguments:['"left"']}],["fenced","",[[1]],{}],["factorial","factorial",[[0]],{}],["determinant","det",[[1]],{}],["rem","rem",[[0],[2]],{}],["quotient","quorem",[[0],[2]],{}],["conjugate","conj",[[0,0]],{}],["piece2","",[[1]],{}],["transpose","transpose",[[0,0]],{}],["htranspose","ctranspose",[[0,0,0]],{}],["ctranspose","ctranspose",[[0,0,0]],{}],["scalarproduct","dot",[[1,0],[1,2]],{}],["vectorproduct","cross",[[0,0],[0,2]],{}],["grad","gradient",[[2],[0,1]],{addBracketsToArg:[1]}],["laplacian","laplacian",[[2],[0,1]],{addBracketsToArg:[1]}],["divergence","divergence",[[2],[0,1]],{addBracketsToArg:[1]}],["list","",[[1]],{addBracketsToArg:[0],noParens:!0}],["set","",[[1]],{addBracketsToArg:[0],noParens:!0}],["inverseMatrix","inv",[[0,0]],{}],["curl","curl",[[3],[5],[7],[0,1]],{addBracketsToArg:[[0,2],1]}],["setdiff","setdiff",[[0,0],[0,2]],{}],["timeso","kron",[[0,0],[0,2]],{}]].forEach((function(e){e[1]&&m.push(e[1]);var n=e[0],r=e[1],a=e[2],s=e[3];_[n]=function(e,n){for(var l=[],u=[],h=!1,p=!1,f=t.mixin({},n,{needsSym:!0}),g=0;g<a.length;g+=1){var m=v(e,a[g]);s.noParens||"MathFenced"!==m.className||(m=m.children[0]);var _=c(m,f),b=_.code();u=d(u,_.idents()),h=h||_.isInvalid(),p=p||_.hasSym(),f.needsSym=f.needsSym&&!p,l.push(b)}var y=e[i.MWMMLX_EXTRAS];return y&&s.extrasAreOptions&&y.split(",").forEach((function(e){l.push('"'+e.trim()+'"'),l.push("true")})),s.additionalArguments&&(l=l.concat(s.additionalArguments)),(s.addBracketsToArg||[]).forEach((function(e){"number"==typeof e?l[e]="["+l[e]+"]":l.splice(e[0],e[1]+1,"["+l.slice(e[0],e[1]+1).join(", ")+"]")})),b=l.join(", "),s.noParens||(b="("+b+")"),o({code:r+b,idents:u,invalid:h,hasSym:p})}})),m.push("symunit"),_.unit=function(e,i){var n=t.mixin({},i),r='symunit("'+c(v(e,[0]),n).code()+'")';return o({code:r,idents:[],invalid:!1,hasSym:!0})},_.unitWithTooltip=_.unit,[["in","in"],["notin","~in"]].forEach((function(e){e[1]&&m.push(e[1]);var n=e[0],r=e[1];_[n]=function(e,a){var s=[],l=!1,u=!1,h=t.mixin({},a);function p(e,t){var i=c(v(e,t),h);return s=d(s,i.idents()),l=l||i.isInvalid(),u=u||i.hasSym(),h.needsSym=h.needsSym&&!u,i.code()}var f=p(e,[0,0]);u||(h.needsSym=!0,f=p(e,[0,0]));var g=v(e,[0,2]);"MathRow"===g.className&&1===g.children.length&&(g=v(g,[0]));var m=g[i.MWMMLX_TEMPLATE]||"";switch(m){case"intervaloo":case"intervaloc":case"intervalco":case"intervalcc":var _,b=" <"+("c"===m[8]?"= ":" "),y=" <"+("c"===m[9]?"= ":" ");return _=p(e,[0,2,0,1,0])+b+f+" & "+f+y+p(e,[0,2,0,1,2]),"notin"===n&&(_="~("+_+")"),o({code:_,idents:s,invalid:l,hasSym:u})}var C=p(e,[0,2]);return o({code:r+"("+f+", "+C+")",idents:s,invalid:l,hasSym:u})}})),_.abbreviation=function(e,i){var n=t.mixin({},i);return c(v(e,[0]),n)},[["symbolicMatrixIdentity","symmatrix(eye(","))"],["symbolicMatrixOnes","symmatrix(ones(","))"],["symbolicMatrixZero","symmatrix(zero(","))"],["symbolicMatrixEmpty","symmatrix.empty(",")"]].forEach((function(e){var i=e[0],n=e[1],r=e[2];_[i]=function(e,i){var a=t.mixin({},i,{needsSym:!1}),s=c(v(e,[1]),a),l=n+s.code()+r;return o({code:l,idents:[],invalid:!1,hasSym:!0})}})),["symbolicMatrix_rxc","symbolicMatrix_1x1"].forEach((function(e){_[e]=function(e,n){const r=e[i.MWMMLX_VARNAME];if(r&&n.abbreviations&&n.abbreviations[r])return n.abbreviations[r];var a=t.mixin({},n,{needsSym:!1}),s=c(v(e,[0]),a),l=e[i.MWMMLX_EXTRAS],d='symmatrix("'+s.code()+'", ['+l.replace(",","")+"])";return o({code:d,idents:[],invalid:!1,hasSym:!0})}})),[["dividec",[0,0]," ./ ",[0,2]],["powerc",[0]," .^ ",[2,1]],["timesc",[0,0]," .* ",[0,2]]].forEach((function(e){var i=e[0],n=e[1],r=e[2],a=e[3];_[i]=function(e,i){var s=t.mixin({},i,{needsSym:!1}),l=c(v(e,n),s),d=c(v(e,a),s),u=l.code()+r+d.code();return o({code:u,idents:[],invalid:!1,hasSym:!0})}})),_.symbolicMatrixWithParameters=function(e,i){var n=t.mixin({},i,{needsSym:!1}),r=c(v(e,[0]),n),a=c(v(e,[1,1]),n),s=r.code().slice(0,-1)+", {"+a.code()+"})";return o({code:s,idents:[],invalid:!1,hasSym:!0})},["nDarray","nDarrayempty","range","intdomain","sumrootof","productrootof","Dpara","Union","imageset","intervaloo","intervaloc","intervalco","intervalcc","mean","quadraticMean","sdev","variance","median","mode","moment","tableau","table","interval","card","subset","notsubset","fnest","compose","slot","lambda","assign","seqgen","seqgen2","seqgen3","seqstep","seqstep2","seqstep3","seqin","factorial2","implies","equiv","concat","stackedStrings","row","EQS","equivMod","EQS3","comprow","funcDecl","diff","partialdiff2","piecewise2","prsubset","notprsubset","inverse","invmatrix","sep","condition","missingTemplate"].forEach((function(e){_[e]=function(e){return o({code:"_",invalid:!0})}})),{export:function(e,i){var r,a;if(i=t.mixin({},i)||{},1===e.length)r=e[0];else{r=s.createNode("MathRoot",{inline:i.inline});for(var l=0;l<e.length;l+=1)r.children.push(e[l])}try{i.needsSym=!0;var d=r;i.equation&&(d=i.equation,delete i.equation);var u=n.getAbbreviation(d);u&&(i=function(e,i){i.abbreviations={};for(var n=e.children.length-1;n>3;n-=2){let r,a,s=v(e,[n,0,0,2,0,0]);if("symbolicMatrix_rxc"===s["mwmmlx:template"]){s=v(s,[0,0]);let l=t.mixin({},i,{needsSym:!1});a=c(s,l).code(),r=c(v(e,[n,0,0,2,0,2]),l),r=o({code:"symmatrix("+r.code()+")",idents:r.idents(),invalid:r.isInvalid(),hasSym:!0})}else a=c(s,i).code(),r=c(v(e,[n,0,0,2,0,2]),i);i.abbreviations[a]=r}return i}(u,i)),a=c(r,i)}catch(e){a=o({code:"_",invalid:!0})}return a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204)],o=i.dj.d(n,(function(e,t,i){"use strict";return t(null,{constructor:function(){this._handlers=[]},add:function(e,t){var n={handler:e,priority:t||0};return this._handlers.push(n),this._handlers.sort((function(e,t){return t.priority-e.priority})),{remove:i.hitch(this,(function(){var e=this._handlers.indexOf(n);e>=0&&this._handlers.splice(e,1)}))}},fire:function(){var t=arguments;return e.some(this._handlers,(function(e){return e.handler.apply(void 0,t)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{setClipboardData:function(e){throw new Error("Unimplemented method : setClipboardData")},getClipboardData:function(){throw new Error("Unimplemented method : getClipboardData")},clearClipboardData:function(){throw new Error("Unimplemented method : clearClipboard")},getAllFlavors:function(){throw new Error("Unimplemented method : getAllFlavors")},onClipboardDataChange:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(203)],o=i.dj.d(n,(function(e,t){return t(null,{constructor:function(e,t,i){this._choice=e,this._requiredVersion=t,this._fallback=i},getChoice:function(){return this._choice},getRequiredVersion:function(){return this._requiredVersion},getFallback:function(){return this._fallback},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(4997)],o=i.dj.d(n,(function(e){return{emptyEquationEncoding:'<span class="MathEquation emptyEquation"><span class="MathRoot">'+e.emptyEquation+"</span></span>",isEmptyEquationEncoding:function(e){return e.match(/<math[^<]+<mrow[^<]+<mi [^<>]+placeholder[^<]+<\/mi><\/mrow><\/math>/)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(245),i(725)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.form.SimpleTextarea",n,{baseClass:"dijitTextBox dijitTextArea",rows:"3",cols:"20",templateString:"<textarea ${!nameAttrSetting} data-dojo-attach-point='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){!this.value&&this.srcNodeRef&&(this.value=this.srcNodeRef.value),this.inherited(arguments)},buildRendering:function(){this.inherited(arguments),i("ie")&&this.cols&&t.add(this.textbox,"dijitTextAreaCols")},filter:function(e){return e&&(e=e.replace(/\r/g,"")),this.inherited(arguments)},_onInput:function(e){if(this.maxLength){var t=parseInt(this.maxLength),n=this.textbox.value.replace(/\r/g,""),o=n.length-t;if(o>0){var r=this.textbox;if(r.selectionStart){var a=r.selectionStart,s=0;i("opera")&&(s=(this.textbox.value.substring(0,a).match(/\r/g)||[]).length),this.textbox.value=n.substring(0,a-o-s)+n.substring(a-s),r.setSelectionRange(a-o,a-o)}else if(this.ownerDocument.selection){r.focus();var l=this.ownerDocument.selection.createRange();l.moveStart("character",-o),l.text="",l.select()}}}this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(5038),i(5039),i(5040),i(5041)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/liveApps",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(244),i(649)],o=i.dj.d(n,(function(e,t,i){var n=/^(data:image\/\S+(;base64))/i,o=/(url\(\s*[^)]+\s*\))/gi,r=/^['"](.*)['"]$/,a=/^([a-zA-Z]+)\((.*)\)(.*)/gi,s=/(?:\(['"]?)(.*?)(?:['"]?\))/,l=/(\(['"]?)(.*?)(['"]?\))/;function c(e){for(var t=[],i=e.length,n=0;n<i;n++)t.push(e[n]);return t}return{domToSvgDataUri:function(t){var i=this,n=new e;if(!t||!(t.ownerDocument&&t instanceof t.ownerDocument.defaultView.HTMLElement))return n.reject("Input dom node expected");var o=function(e){var t={};if(e){var i=e.getBoundingClientRect();t.width=i.width,t.height=i.height}return t}(t);return this._getStyledClone(t).then((function(e){var t="";if(e){var r=o.width,a=o.height;t=i._convertNodeToSvgDataUri(e,r,a)}n.resolve(t)}),(function(e){n.reject(e)})),n.promise},domToPngDataUri:function(t){var i=new e;return t&&t.ownerDocument&&t instanceof t.ownerDocument.defaultView.HTMLElement?this.domToSvgDataUri(t).then(this._convertImageSrcToPngDataUri):i.reject("Input dom node expected")},_getStyledClone:function(i){var n=this,o=new e,r=[],a=this._cloneDomStructure(i,r);return this._testEvent("clonedNode",a),t(r).then((function(){var e=[],r=i.ownerDocument.defaultView;n._cloneStyles(i,a,e,r),t(e).then((function(){o.resolve(a)}),(function(e){o.reject(e)}))}),(function(e){o.reject(e)})),o.promise},_cloneDomStructure:function(t,i){var n=this,o=void 0;switch(t.tagName){case"IFRAME":var r=new Image;r.setAttribute("alt","Iframe window");var a=t.contentDocument.body,s=this.domToPngDataUri(a);i.push(s),s.then((function(e){r.setAttribute("src",e)})),o=r;break;case"CANVAS":var l=new e;i.push(l);var d=new Image;t.getContext("webgl")||t.getContext("experimental-webgl")?l.reject("WebGL canvas not supported"):(d.setAttribute("src",t.toDataURL()),l.resolve(d)),o=d;break;default:o=0===t.childNodes.length?t.cloneNode(!0):t.cloneNode(!1)}return c(t.childNodes).forEach((function(e){if(1===e.nodeType)o.appendChild(n._cloneDomStructure(e,i));else if(3===e.nodeType){""!==e.nodeValue.trim()&&o.appendChild(e.cloneNode())}})),o},_handlePseudoElements:function(e,t,i){var n=window.getComputedStyle(e,"before"),o=window.getComputedStyle(e,"after"),r=this._createPseudoElement(e,n,"before",i);r&&t.insertBefore(r,t.firstChild);var a=this._createPseudoElement(e,o,"after",i);a&&t.appendChild(a)},_createPseudoElement:function(e,t,i,n){if(t){var o=t.content;if(o&&"none"!==o&&"normal"!==o&&"moz-alt-content"!==o&&"none"!==t.display){var l=document.createElement("span");l.classList.add("pseudo_element_"+i),l.cssText=t.cssText;var c=a.exec(o),d=r.test(o);if(c&&"url"===c[1].toLowerCase()){var u=document.createElement("img"),h=s.exec(o)[1],p=c[3],f="Image alt text";if(p){var g=p.indexOf('"');g=-1===g?Number.POSITIVE_INFINITY:g;var m=p.indexOf("'");m=-1===m?Number.POSITIVE_INFINITY:m;var _=Math.min(g,m);_!==1/0&&(f=p.slice(_+1,-1))}u.setAttribute("alt",f),l.appendChild(u);var v=this._transformImageSrc(h);n.push(v),v.then((function(e){u.setAttribute("src",e)}))}else d&&l.appendChild(document.createTextNode(o.slice(1,-1)));return l}}},_cloneStyles:function(e,t,i,n){for(var o=e.children.length,r=0;r<o;r++){var a=e.children[r],s=t.children[r];this._cloneInputValue(a,s,n),this._cloneStyles(a,s,i,n)}this._copyStylingAndImgSrcAttribute(e,t,i,n)},_cloneInputValue:function(e,t,i){e instanceof i.HTMLInputElement&&"text"===e.type&&t.setAttribute("value",e.value),e instanceof i.HTMLTextAreaElement&&(t.innerHTML=e.value)},_copyStylingAndImgSrcAttribute:function(e,t,i,n){if("IMG"===e.tagName){var o=this._copyImgSrcFromSrcToDest(e,t);i.push(o)}else if("IFRAME"===e.tagName)return;this._copyStylesFromSrcToDest(e,t,i,n)},_copyImgSrcFromSrcToDest:function(e,t){var i=e.getAttribute("src");return this._transformImageSrc(i,(function(e){t.setAttribute("src",e)}))},_copyStylesFromSrcToDest:function(e,t,i,n){var o=n.getComputedStyle(e),r=t.style,a=o.cssText;a?(r.cssText=a,r.font=o.font):c(o).forEach((function(e){r.setProperty(e,o.getPropertyValue(e),o.getPropertyPriority(e))})),this._handlePseudoElements(e,t,i),this._handleScrollBars(e,o,r),this._handleScrolledElements(e,o,t);var s=this._handleBackgroundImage(r);i.push(s)},_handleScrollBars:function(e,t,i){var n=t.overflow;"auto"!==n&&"scroll"!==n||(e.scrollWidth>=e.clientWidth&&(i.width=e.offsetWidth+"px"),e.scrollHeight>=e.clientHeight&&(i.height=e.offsetHeight+"px"))},_handleScrolledElements:function(e,t,i){if(0!==e.scrollLeft||0!==e.scrollTop){var n=i,o=document.createElement("div");n.childNodes.forEach((function(e){o.appendChild(e)})),n.appendChild(o);var r=window.getComputedStyle(i);c(r).forEach((function(e){if(e.includes("padding"))return o.style.setProperty(e,r.getPropertyValue(e),r.getPropertyPriority(e)),void n.style.removeProperty(e)}));var a=parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),s=parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth);n.style.height=e.offsetHeight-a+"px",n.style.width=e.offsetWidth-s+"px",n.style.position="relative",n.style.overflow="hidden";var l=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),d=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom);o.style.overflow="visible",o.style.width=e.scrollWidth-l+"px",o.style.height=e.scrollHeight-d+"px",o.style.marginTop="-"+e.scrollTop+"px",o.style.marginLeft="-"+e.scrollLeft+"px";var u=e.offsetWidth-e.clientWidth-s,h=e.offsetHeight-e.clientHeight-a;if(u>0){var p=this._createScrollbarPlaceholder("vertical",e,u,null);n.appendChild(p)}if(h>0){var f=this._createScrollbarPlaceholder("horizontal",e,null,h);n.appendChild(f)}if(h>0&&u>0){var g=this._createScrollbarPlaceholder("corner",e,u,h);n.appendChild(g)}}},_createScrollbarPlaceholder:function(e,t,i,n){var o=document.createElement("div");switch(o.style.backgroundColor="rgb(250,250,250)",o.style.position="absolute",o.style.borderStyle="solid",o.style.borderColor="rgb(237,237,237)",e){case"vertical":o.style.height=t.clientHeight+"px",o.style.width=i-2+"px",o.style.left=t.clientWidth+"px",o.style.top="0",o.style.borderWidth="0 1px 0 1px";break;case"horizontal":o.style.width=t.clientWidth+"px",o.style.height=n-2+"px",o.style.left="0",o.style.top=t.clientHeight+"px",o.style.borderWidth="1px 0 1px 0";break;case"corner":o.style.width=i-1+"px",o.style.height=n-1+"px",o.style.left=t.clientWidth+"px",o.style.top=t.clientHeight+"px",o.style.borderWidth="0 1px 1px 0"}return o},_handleBackgroundImage:function(i){var n=this,r=new e,a=i.backgroundImage.split(o),c=[];return a.forEach((function(e,t){if(o.test(e)){var i=s.exec(e)[1],r=n._transformImageSrc(i);c.push(r),r.then((function(e){var i=a[t].replace(l,"$1"+e+"$3");a[t]=i}))}})),t(c).then((function(){i.backgroundImage=a.join(""),r.resolve()}),(function(){r.reject("Error with transforming background image url")})),r.promise},_transformImageSrc:function(t,o){var r=new e,a=n.test(t);return t&&!a?function(t){var n=new e;return i(t,{handleAs:"blob"}).then((function(e){var t=new FileReader;t.onload=function(){n.resolve(t.result)},t.onerror=function(){n.reject(t.error)},t.readAsDataURL(e)}),(function(e){n.reject(e)})),n.promise}(t).then((function(e){"function"==typeof o&&o(e),r.resolve(e)}),(function(e){r.reject(e)})):r.resolve(t),r.promise},_convertNodeToSvgDataUri:function(e,t,i){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");this._testEvent("intermediateSvg",n),n.setAttribute("width",t),n.setAttribute("height",i);var o=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");o.setAttribute("width",t),o.setAttribute("height",i),o.appendChild(e),n.appendChild(o);var r=(new XMLSerializer).serializeToString(n),a="data:image/svg+xml;base64,"+window.btoa(unescape(encodeURIComponent(r)));return this._testEvent("encodedSvg",a),a},_convertImageSrcToPngDataUri:function(t){var i=new e,n=document.createElement("canvas");document.body.appendChild(n);var o=n.getContext("2d"),r=new Image;return r.setAttribute("src",t),document.body.appendChild(r),r.onload=function(){n.width=r.width,n.height=r.height,o.drawImage(r,0,0);var e=n.toDataURL();document.body.removeChild(n),document.body.removeChild(r),i.resolve(e)},r.onerror=function(){i.reject("Image did not load")},i.promise},_testEvent:function(e,t){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(452),i(402),i(438)],o=i.dj.d(n,(function(e,t,i){return{getImageDetails:function(e,i,n){var o=e.getImageFileName(n.exampleName,i.format),r=document.createElement(t.IMAGEDATA);return r.setAttribute(t.FILEREF,n.imageLocation+o),{imageData:r,imageFileName:o}},getOuterElement:function(e,n){var o=t.INFORMALFIGURE,r=t.MEDIAOBJECT;return(e.nextSibling()||e.previousSibling())&&(o=t.GUIICON,r=t.INLINEMEDIAOBJECT),i.nestElement(n,[t.IMAGEOBJECT,r,o])},getInformalFigureGraphicElement:function(e){var n=t.INFORMALFIGURE,o=t.MEDIAOBJECT;return i.nestElement(e,[t.IMAGEOBJECT,o,n])}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NUMERIC_SLIDER_INSERT_ACTION:"rtc_insert_slider",COMBO_BOX_INSERT_ACTION:"rtc_insert_combo_box",CHECK_BOX_INSERT_ACTION:"rtc_insert_check_box",EDIT_FIELD_INSERT_ACTION:"rtc_insert_edit_field",BUTTON_INSERT_ACTION:"rtc_insert_button"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(425),i(673)],o=i.dj.d(n,(function(e,t,i){return e([t],{introducedRelease:"R2019a",defaultWidgetValue:" ",constructor:function(){this.context.type=i.BUTTON},isActionable:function(){return!0},getType:function(){return this.context.type}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(425),i(414),i(673)],o=i.dj.d(n,(function(e,t,i,n){const o=[i._CONTROL_DEFAULT_PROPERTY,i._CONTROL_DEFAULT_LINKED_VARIABLE];return e([t],{introducedRelease:"R2019a",defaultWidgetValue:!1,constructor:function(){this._dataProperties=this._dataProperties.concat(o),this.context.type=n.CHECK_BOX},getType:function(){return this.context.type}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(425),i(414),i(673)],o=i.dj.d(n,(function(e,t,i,n){const o=[i._CONTROL_ITEMS_PROPERTY,i._CONTROL_ITEM_LABELS_PROPERTY,i._CONTROL_LINKED_VARIABLE_PROPERTY,i._CONTROL_DEFAULT_PROPERTY];return e([t],{introducedRelease:"R2018a",constructor:function(){this._dataProperties=this._dataProperties.concat(o),this.context.type=n.COMBO_BOX},getType:function(){return this.context.type},shouldDeleteIfEmpty:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(425),i(414),i(673)],o=i.dj.d(n,(function(e,t,i,n){const o=[i._CONTROL_VALUE_TYPE_PROPERTY,i._CONTROL_DEFAULT_PROPERTY,i._CONTROL_DEFAULT_LINKED_VARIABLE];return e([t],{introducedRelease:"R2019a",defaultWidgetValue:'""',constructor:function(){this._dataProperties=this._dataProperties.concat(o),this.context.type=n.EDIT_FIELD},getType:function(){return this.context.type},getDataProperties:function(){return this._dataProperties}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(425),i(414),i(673)],o=i.dj.d(n,(function(e,t,i,n){const o=[i._CONTROL_MINIMUM_PROPERTY,i._CONTROL_MAXIMUM_PROPERTY,i._CONTROL_STEP_PROPERTY,i._CONTROL_EXECUTE_ON_PROPERTY,i._CONTROL_MIN_LINKED_VARIABLE,i._CONTROL_MAX_LINKED_VARIABLE,i._CONTROL_STEP_LINKED_VARIABLE,i._CONTROL_DEFAULT_LINKED_VARIABLE,i._CONTROL_DEFAULT_PROPERTY];return e([t],{introducedRelease:"R2018a",defaultWidgetValue:0,constructor:function(){this._dataProperties=this._dataProperties.concat(o),this.context.type=n.SLIDER},getType:function(){return this.context.type}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1420)],o=i.dj.d(n,(function(e,t,i){return e(i,{getEvalTextFromNode:function(e){t.error("Unimplemented: getEvalTextFromNode")}})}),e,t),e.exports=o},function(e,t,i){e.exports={CURRENT_SECTION:"Section",CURRENT_SECTION_AND_STALE_SECTIONS_ABOVE:"SectionAndStaleSectionsAbove",CURRENT_SECTION_TO_END:"SectionToEnd",ALL:"AllSections",NOTHING:"Nothing",VALUE_CHANGING:"ValueChanging",VALUE_CHANGED:"ValueChanged",STRING:"String",CHAR:"Char",DOUBLE:"Double",MATLAB_CODE:"MATLAB code"}},function(e,t,i){var n,o;n=[i(203),i(899),i(225),i(1142)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{templateString:'<div class="mwRuleContainer mwRuleContainerH mwRuleLabelsContainer mwRuleLabelsContainerH"></div>',labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:'<div class="mwRuleLabelContainer mwRuleLabelContainerH" style="left:',_positionSuffix:"%;",_labelPrefix:'"><div class="mwRuleLabel mwRuleLabelH"',_suffix:"</div></div>",_qeIdSuffix:"id=",_calcPosition:function(e){return e},_genHTML:function(e,t){var i=this._qeIdSuffix+'"'+this.class+"_"+this.labels[t]+'">';return this._positionPrefix+this._calcPosition(e)+this._positionSuffix+this.labelStyle+this._labelPrefix+i+this.labels[t]+this._suffix},getLabels:function(){var e=this.labels;if(!e.length&&this.srcNodeRef&&(e=i("> li",this.srcNodeRef).map((function(e){return String(e.innerHTML)}))),!e.length&&this.count>1)for(var n=this.minimum,o=(this.maximum-n)/(this.count-1),r=0;r<this.count;r++)e.push(r<this.numericMargin||r>=this.count-this.numericMargin?"":t.format(n,this.constraints)),n+=o;return e},postMixInProperties:function(){this.inherited(arguments),this.labels=this.getLabels(),this.count=this.labels.length}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(232),i(229),i(2082),i(2081),i(474)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n,o],{defaultValueLinkedVariable:"",_handleDefaultValueChange:function(e){if(this._userEnteredPropertyData.defaultValue=e,this._linkedVariableExists(e)){let t=i.generateUuid();return void this._getLinkedVariableValue(e,this._handleDefaultValueChangeAsync.bind(this,e,t),t)}let t=this._getValidCustomValue(e);null!==t?this._updateDefaultAfterPropertyChanges(t,this._DEFAULT_LINKED_VARIABLE_CHOICE):this._updateConfigPanelPropertyValues(this._DEFAULT_PROPERTY)},_handleDefaultValueChangeAsync:function(e,i,n){let o=n[0].results[0];if(o){let t=o.CodeValue;this._updateDefaultAfterPropertyChanges(t,e)}t.deregisterResponseHandler("FEvalResponse:"+this._WORKSPACE_INFO_REQUEST_ID+":"+i,this._handleDefaultValueChange,this)},_handleWorkspaceVariableUpdate:function(){this._updateFilteredWorkspaceVariables();const e=this._userEnteredPropertyData.defaultValue,t=e||this.get("defaultValueLinkedVariable");if(!this._isDefaultLinkedVariableChoice(t)&&this._linkedVariableExists(t)){let e=i.generateUuid();this._getLinkedVariableValue(t,this._handleLinkedVariableUpdateAsync.bind(this,e),e)}else this._updateUnlinkedDefaultAfterWorkspaceVariableUpdate(e)},_handleLinkedVariableUpdateAsync:function(e,i){let n=i[0].results[0];if(n){let e=n.CodeValue;this._updateDefaultAfterWorkspaceVariableUpdate(e)}t.deregisterResponseHandler("FEvalResponse:"+this._WORKSPACE_INFO_REQUEST_ID+":"+e,this._handleWorkspaceVariableUpdateAsync,this)},_updateDefaultAfterPropertyChanges:function(e,t){this.set("defaultValueLinkedVariable",t),this.set(this._DEFAULT_PROPERTY,e)},_updateDefaultAfterWorkspaceVariableUpdate:function(e){this.set(this._DEFAULT_PROPERTY,e),this.emit("dataupdated")},_updateUnlinkedDefaultAfterWorkspaceVariableUpdate:function(e){},_formatDefaultValueForDataType:function(e){return e},_updateFilteredWorkspaceVariables:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(312),i(203)],o=i.dj.d(n,(function(e,t){var i={"&":"&amp;","<":"&lt;",">":"&gt;"};return t(null,{buildRendering:function(){this.inherited(arguments)},postCreate:function(){this.inherited(arguments),this._widgetOuterContainer.addEventListener("mousemove",this._handleMouseMove.bind(this)),this._widgetOuterContainer.addEventListener("mouseleave",this._removeTooltip.bind(this)),this._widgetOuterContainer.addEventListener("wheel",this._removeTooltip.bind(this)),this.domNode.addEventListener("widgetmousedown",this._removeTooltip.bind(this))},setTooltipLabelToValue:function(e){e=this._getEncodedHTML(e),this._tooltipLabel='<span class ="mwLiveControlValueTooltip">'+e+"</span>"},setTooltipState:function(e){"SHOW TIMER"===e?this._showTooltip():"DORMANT"===e&&this.hideTooltip()},_handleMouseMove:function(){var e=this.shouldShowTooltip()?"SHOW TIMER":"DORMANT";this.setTooltipState(e)},_removeTooltip:function(){this.setTooltipState("DORMANT")},shouldShowTooltip:function(){return!this.get("editMode")},_showTooltip:function(){this._tooltipTimer&&clearTimeout(this._tooltipTimer),this._tooltipTimer=setTimeout(function(){e.show(this._tooltipLabel,this._widgetOuterContainer,["after","below","before","above"])}.bind(this),1e3)},hideTooltip:function(){clearTimeout(this._tooltipTimer),this._tooltipTimer=null,e.hide(this._widgetOuterContainer)},_getEncodedHTML:function(e){return e=e.toString(),Object.keys(i).forEach((function(t){var n=new RegExp(t,"g");e=e.replace(n,i[t])})),e},destroy:function(){this.hideTooltip(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2092)],o=i.dj.d(n,(function(e){return{_BAD_SCHEMES:["javascript:","data:"],_FALLBACK_SCHEME:"http:",_FALLBACK_URL:"about:blank",_PROTOCOL_NEEDS_HOST:["http:","https:","ftp:"],_SCHEMA_EXPRESSION:/^([a-z][a-z0-9+\-.]*):/,_URL_EXPRESSION:"(((\\S+):\\/\\/|(\\S+):(?!\\/)+|#)(\\S+).*)|(\\S+\\.\\S+)|(matlab:).+",sanitizeUrl:function(t){t=t.trim();var i,n={valid:!0,message:e.validURL,oldURL:t,newURL:t,schemeAdded:!1,scheme:""};this._fixSchemeInURL(n);try{i=new URL(n.newURL),-1===this._PROTOCOL_NEEDS_HOST.indexOf(i.protocol)||i.host?(n.valid=!0,n.newURL=i.href):n=this._setURLCorrupt(n),n.scheme=i.protocol}catch(e){n=this._setURLCorrupt(n)}return n.valid?(this._fixBadScheme(n),n.valid?(this._fixUncommonURL(n),!n.oldURL.endsWith("/")&&n.newURL.endsWith("/")&&(n.newURL=n.newURL.slice(0,-1)),n):n):n},_setURLCorrupt:function(t){return t.valid=!1,t.message=e.corruptURL,t.newURL=this._FALLBACK_URL+"<"+t.oldURL+">",t},addSchemeIfNeeded:function(e){return""===e||this._SCHEMA_EXPRESSION.test(e)?e:this._FALLBACK_SCHEME+"//"+e},_fixSchemeInURL:function(e){var t=this.addSchemeIfNeeded(e.newURL);return e.schemeAdded=t!==e.newURL,e.newURL=t,e.schemeAdded&&(e.scheme=this._FALLBACK_SCHEME),e},_fixBadScheme:function(t){var i=this._BAD_SCHEMES.some((function(e){return!!t.scheme.startsWith(e)}));t.valid=!i,i&&(t.newURL=this._FALLBACK_URL+"<"+t.oldURL+">",t.message=e.badScheme)},_fixUncommonURL:function(t){!!t.oldURL.match(this._URL_EXPRESSION)||(t.valid=!1,t.message=e.wrongURL)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{changeMLXFilePathExtension:function(e,t){return e.endsWith(".mlx")?e.slice(0,-4)+t:e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(919),i(390)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){this._type=i.RECEIVING_INSTRUCTION.INSERT_ALTERNATE_NODE,this._node=e},getAlternateNode:function(){return this._node}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1480),i(5413),i(892)],o=i.dj.d(n,(function(e,t,i,n){return n.deprecated({deprecated:{module:"dijit/form/RadioButton"},replacement:{module:"mw-form/RadioButton"},geckNumber:1352405}),e("dijit.form.RadioButton",[t,i],{baseClass:"dijitRadio"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i(203),i(228),i(221),i(225),i(385),i(1315),i(5411),i(5412),i(892),i(1066),i(487)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return c.deprecated({deprecated:{module:"dijit/form/Checkbox"},replacement:{module:"mw-form/Checkbox"},geckNumber:1352405}),n("dijit-legacy-requires")&&r(0,(function(){e(["dijit/form/RadioButton"])})),t("dijit.form.CheckBox",[a,s],{templateString:l,baseClass:"dijitCheckBox",_setValueAttr:function(e,t){"string"==typeof e&&(this.inherited(arguments),e=!0),this._created&&this.set("checked",e,t)},_getValueAttr:function(){return this.checked&&this._get("value")},_setIconClassAttr:null,_setNameAttr:"focusNode",postMixInProperties:function(){this.inherited(arguments),this.checkedAttrSetting=""},_fillContent:function(){},_onFocus:function(){this.id&&o("label[for='"+this.id+"']").addClass("dijitFocusedLabel"),this.inherited(arguments)},_onBlur:function(){this.id&&o("label[for='"+this.id+"']").removeClass("dijitFocusedLabel"),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(204),i(285)],o=i.dj.d(n,(function(e,t,i){var n=function(o){if(!o)return o;var r=!!o.then;function a(t){o[t]=function(){var a=arguments,s=i(o,(function(i){return Array.prototype.unshift.call(a,i),n(e[t].apply(e,a))}));if("forEach"!==t||r)return s}}return r&&(o=t.delegate(o)),a("forEach"),a("filter"),a("map"),null==o.total&&(o.total=i(o,(function(e){return e.length}))),o};return t.setObject("dojo.store.util.QueryResults",n),n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(521)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{write:function(e,t){i.assert(t.serializers,"Required argument missed: 'serializers'");var n=document.createElement(this.getXMLType());return e.children.forEach((function(e){var i=t.serializers.getSerializer(e.className);n.appendChild(i.write(e,t))}),this),n.childNodes},getXMLType:function(){return"ListItem"},getNodeType:function(){return"ListItem"},mustMerge:function(e,t){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(229),i(319),i(521),i(300)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(r,{_ALIGN_CENTER:"center",_ALIGN_LEFT:"left",_RICH_TEXT_CLASS:"RichTextNode",write:function(e,t){i.assert(t.serializers,"Required argument missed: 'serializers'");var n=document.createElement(this.getXMLType());if(Array.isArray(e)){var o=this;e.forEach((function(e){o._createAndAppendParagraph(e,n,t)}),this)}else this._createAndAppendParagraph(e,n);return n},_createAndAppendParagraph:function(e,t,i){var n=this._writeParagraph(e,i);n&&t.appendChild(n)},_writeParagraph:function(e,t){var n=a.createXMLElement(),r=a.createParagraphProperty(this.getXMLType());if(r=a.addParagraphProperty(r,o.JUSTIFCATION_TAG_NAME,e.align),n.appendChild(r),e.anchorId){var s=a.createBookmarkStart(o.BOOKMARK_PREFIX+e.anchorId,e.anchorId);n.appendChild(s)}var l=!1;if(e.children.forEach((function(e){var o=t.serializers.getSerializer(e.className);o?n.appendChild(o.write(e,t)):(l=!0,i.assert(l,!0,"Unrecognized node type:"+e.className))}),this),e.anchorId){var c=a.createBookmarkEnd(e.anchorId);n.appendChild(c)}return l&&1===n.children.length&&(n=null),n},read:function(e,t,i){var n=a.getParagraphProperty(e[0],o.JUSTIFCATION_TAG_NAME),r=this.inherited(arguments);return this._createAlignment(e,r.readObject,n,i),r},_createAlignment:function(e,t,i,n){t.forEach((function(t){i?t.align=i:this._shouldBeCentered(e,t,n)?t.align=this._ALIGN_CENTER:t.align=this._ALIGN_LEFT}),this)},_shouldBeCentered:function(e,t,i){for(var n=!1,o=t.children[0]?t.children[0].className:"",r=0;r<t.children.length;r+=1){var a=t.children[r],s=!!i.getSerializer(t.children[r].className).AUTO_CENTER_CLASS;if(a.className!==this._RICH_TEXT_CLASS&&o!==a.className&&o!==this._RICH_TEXT_CLASS)return!1;if(s)n=s;else if(a.text)if(a.text.trim().length>0)return!1}return n},getXMLType:function(){return"text"},getNodeType:function(){return"RichTextParagraphNode"},mustMerge:function(e,t){return a.getParagraphProperty(e,o.JUSTIFCATION_TAG_NAME)===a.getParagraphProperty(t,o.JUSTIFCATION_TAG_NAME)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(209),i(319),i(2108),i(300),i(1392)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{_SUPPORTED_READER_VERSIONS:["R2018a","R2018b","R2019a","R2019b"],read:function(t,o,r){var a=o.getPart(i.DOCUMENT_TARGET),s=n.processXML(a.getContent(),this._SUPPORTED_READER_VERSIONS),l=this._getAllTopItems(s.xmlDocument).reduce(e.partial(this._reduceByNodeType,r),[]),c=this._readItems(l,o,r);return this._insertNodeInDocument(c.readArray,t),!s.status},_readItems:function(e,t,i){var n=!0,r=[];return e.forEach((function(e){var a,s=this._getParagraph(e);if(s)return a=this._readParagraph(s,t,i),r=r.concat(a.readObject),void(n=n&&a.readStatus);var l=this._getSDT(e);if(l){var c=o.getSdtAttribute(l),d=i.getSerializer(c),u=this._getSDTContent(l);d&&u&&(a=d.read(u,t,i,c),r=r.concat(a.readObject),n=n&&a.readStatus)}}),this),{readStatus:n,readArray:r}},_getParagraph:function(e){return e&&e[0]&&e[0].localName===i.PARAGRAPH_TAG_NAME?e:null},_getSDT:function(e){return e&&e[0]&&e[0].localName===i.SDT_TAG?e[0]:null},_getSDTContent:function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(n.localName===i.SDT_CONTENT_TAG)return n}return null},_readParagraph:function(e,t,i){var n=!0,r=o.getAttribute(e[0]),a=i.getSerializer(r);r&&a||(a=i.getSerializer("text"),n=!1);var s=a.read(e,t,i);return s.readStatus||(n=!1),{readObject:s.readObject,readStatus:n}},_reduceByNodeType:function(e,t,i){var n=e.getSerializer(o.getAttribute(i));if(n){var r=t[t.length-1];r&&o.getAttribute(r[0])===o.getAttribute(i)&&n.mustMerge(r[0],i)?r.push(i):t.push([i])}return t},_insertNodeInDocument:function(e,t){var i={className:"RootNode",children:[]};e.forEach((function(e){i.children.push(e)})),t.deserialize(i)},_getAllTopItems:function(e){for(var t=(new window.DOMParser).parseFromString(e,"text/xml").getElementsByTagNameNS(i.NAMESPACE_URL,i.BODY_TAG_NAME)[0].childNodes,n=[],o=0;o<t.length;o++)n.push(t[o]);return n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(5698),i(5699)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,n],{render:function(e,t){this._validateIdExistence(e);var i=this._controllerMap[e];i.isInstanceOf(o)?(t.appendChild(i.widget.domNode),i.widget.startup()):t.appendChild(i.domNode)},_validateIdExistence:function(e){if(!this.exists(e))throw new Error("The 'componentId' provided does not belong to a created component!")},exists:function(e){return this._viewModelManager.hasById(e)},set:function(e,t,i){this._viewModelManager.getById(e).setProperty(t,i)},get:function(e,t){return this._viewModelManager.getById(e).getProperty(t)},getChildrenIds:function(e){return this._validateIdExistence(e),this._peerModelManager.getById(e).getChildren().map((function(e){return e.getId()}))},indexOf:function(e){var t,i=-1;return t=this._peerModelManager.getById(e),this.getParentId(e)&&(i=t.getParent().getChildIndex(t)),i},addEventCallback:function(e,i,n){var o,r;return this._validateIdExistence(e),o=this._peerModelManager.getById(e),r=function(e){delete e.data.type,i.call(n||o.getProperties(),e.data)},o.addEventListener("peerEvent",r,n),{remove:t.hitch(this,(function(){o.removeEventListener("peerEvent",r,n)}))}},addPropertySetCallback:function(e,i,n){var o,r;return this._validateIdExistence(e),o=this._peerModelManager.getById(e),r=function(e){e.originator&&"UI"===e.originator.source&&i.call(n||o.getProperties(),{property:e.data.key,oldValue:e.data.oldValue,newValue:e.data.newValue})},o.addEventListener("propertySet",r,n),{remove:t.hitch(this,(function(){o.removeEventListener("propertySet",r,n)}))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2117),i(5700),i(5976),i(6388)],o=i.dj.d(n,(function(e,t,i,n){return new e([i,t,n])}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(5701),i(2118)],o=i.dj.d(n,(function(e,t){return function(i){Object.keys(i).forEach((function(n){var o={};"common"!==n&&(i.common&&t.mergeComponentManifest(o,i.common),t.mergeComponentManifest(o,i[n]),this[n]=new e(o))}),this)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getFallBack:function(e){return"helvetica"===e.toLowerCase()?'"Helvetica Neue",Helvetica,Arial,sans-serif':"courier"===e.toLowerCase()?'"Courier New",Courier,monospace':"times"===e.toLowerCase()?'"Times New Roman",Times,serif':"monospaced"===e.toLowerCase()?'"'+e+'","Courier New",Courier,monospace':-1===e.indexOf("Helvetica Neue")||-1===e.indexOf("Helvetica")||-1===e.indexOf("Arial")||-1===e.indexOf("sans-serif")?'"'+e+'","Helvetica Neue",Helvetica,Arial,sans-serif':e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){this.ICON_ALIGNMENT_CONFIGURATION=t.mixin(this.ICON_ALIGNMENT_CONFIGURATION,{center:{className:this.CLASS_NAME_PREFIX+"Center",textNodeLocation:"after"}}),this._supportedValues.push("center")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(349)],o=i.dj.d(n,(function(e,t){return e(null,{_setWidthAttr:function(e){if(this.inherited(arguments),this.wordWrap){var i=this.getDomNodePositionInPixels();this.textNode.style.maxWidth=i.width-t.BUTTON.OVERALL_WIDTH_PADDING_TEXTNODE+"px"}else this.textNode.style.maxWidth=""},setWordWrap:function(e){this.inherited(arguments),this.set("width",this.width)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1492),i(211)],o=i.dj.d(n,(function(e,t,i){return e([t],{_setDijitHandle:function(e){this.widget=e,i.place(this.widget.domNode,this._VCWidgetDOMNode),this.widget.startup(),this.widget.scrollOnFocus&&!0===this.widget.scrollOnFocus&&this.widget.set("scrollOnFocus",!1),this._initializeDijitHandle()},_initializeDijitHandle:function(){var e=["OuterLocation","OuterSize"],t=Object.keys(this.peernode.getProperties()).filter((function(t){return e.indexOf(t)<0})),i=t.indexOf("LayoutConstraints");i>-1&&(t.splice(i,1),t.push("LayoutConstraints")),this.setProperties(t)},updateComponentSize:function(e,t,i,n){this._resizeView(t)},destroy:function(){this.widget&&"destroy"in this.widget&&"function"==typeof this.widget.destroy&&this.widget.destroy(),delete this.widget,i.destroy(this._VCWidgetDOMNode),delete this._VCWidgetDOMNode,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(224),i(213),i(211),i(284),i(1493),i(440),i(5711)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([l,s],{constructor:function(e){this.qeName=e.qeName},createView:function(e){this.inherited(arguments),e.parentDijit?this.targetDomNode=e.parentDijit.containerNode:this.targetDomNode=e.parentDomNode,this.WidgetData=this.peernode,this._createVCWidgetDOMNode(this.targetDomNode,this.dataTag,this.qeName);var t=this.peernode.getProperty("Visible");return this._updateDomVisibility(t),this.getComponentDomNode()},reParent:function(e){var t=this.getComponentDomNode();r.place(t,e)},_handlePropertiesSet:function(e){var t=e.data.newValues,i=Object.keys(t);this.setProperties(i)},_handlePeerEvent:function(e){if(this.inherited(arguments),"propertiesSetRefresh"===e.data.Name){var t=Object.keys(e.data),i=t.indexOf("Name");t.splice(i,1),this.setProperties(t)}},getComponentDomNode:function(){return this._VCWidgetDOMNode},getVCWidgetDOMNode:function(){return console.warn("getVCWidgetDOMNode is deprecated. use getComponentDomNode(). Functional behavior has not changed"),this.getComponentDomNode()},getFontConfiguration:function(){var e=this.getFontStyledDomNode();return{fontSize:o.get(e,"fontSize"),fontFamily:o.get(e,"fontFamily"),fontWeight:o.get(e,"fontWeight"),fontStyle:o.get(e,"fontStyle")}},_arePropertyNamesPresent:function(e,t){for(var i=e.join("$").toLowerCase().split("$"),n=0;n<t.length;n++)if(i.indexOf(t[n].toLowerCase())>=0)return!0;return!1},updateComponentSize:function(e,t,i,n){throw new Error("updateComponentSize() needs to be implemented by a base class")},setProperties:function(e){var t={};e.forEach((function(e){var i=this.getPeerNode().getProperty(e);t[e]=i}),this),this._setProperties(t)},_Visible:function(e){this._updateDomVisibility(e)},setComponentToPreferredSize:function(){},getFontStyledDomNode:function(){return this.getComponentDomNode().children[0]},_getVCWidgetDOMNodeClass:function(){return"vc-widget"},_createVCWidgetDOMNode:function(e,t,i){this._VCWidgetDOMNode=r.create("div",{id:i,"data-type":this.peernode.getType(),"data-tag":t,class:this._getVCWidgetDOMNodeClass()},e),this._updateWidgetDOMPosition()},_updateWidgetDOMPosition:function(){var e=this._generateWidgetPosition();void 0===this.strategy||this.strategy.allowPositionSetFromServer||(delete e.top,delete e.bottom,delete e.left,delete e.right),o.set(this.getComponentDomNode(),e)},_generateWidgetPosition:function(){var e=this.getOuterLocationInPixels(),t=this.getOuterSizeInPixels();return{left:e[0]-1+"px",bottom:e[1]-1+"px",width:t[0]+"px",height:t[1]+"px"}},_updateDomVisibility:function(e){!1===(void 0===e||a.toJSBoolean(e)||!this.peernode.hasProperty("Visible"))?i.add(this._VCWidgetDOMNode,"vc-visualComponentInvisible"):i.contains(this._VCWidgetDOMNode,"vc-visualComponentInvisible")&&i.remove(this._VCWidgetDOMNode,"vc-visualComponentInvisible")},_startRender:function(){this._renderInfo=c.startRender(this._VCWidgetDOMNode)},_endRender:function(){c.endRender(this._renderInfo),delete this._renderInfo},destroy:function(){delete this.WidgetData,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(5706),i(2124),i(2125),i(687)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n,o],{_valid:!0,constructor:function(){this._UnitsService=null,this._positionForView=void 0,this._units=null,this._positionInUnits=null},createView:function(e){this.inherited(arguments)},getUnits:function(){if(null===this._units){var e=this.getPositionPropertyFromPeerNode();this._units=e?this.getUnitsServices().getUnitsFromUnitsValue(e):"pixels"}return this._units},getPositionInUnits:function(){if(null===this._positionInUnits){var e=this.getPositionPropertyFromPeerNode();this._positionInUnits=e?this.getUnitsServices().getPositionInUnitsFromUnitsValue(e):this._getDefaultViewPosition()}return this._positionInUnits},getUnitsServices:function(){return null===this._UnitsService&&(!0===this.getPeerNode().getProperty("IsUIControl")?this._UnitsService=new a:this._UnitsService=new r),this._UnitsService},getPositionPropertyFromPeerNode:function(){return this.getPeerNode().getProperty("Position")},setPositionPropertyToPeerNode:function(e){this.getPeerNode().setProperties({Position:e})},_Position:function(e){this._setPositionInUnits(e)},_convertFromOneToZeroOrigin:function(e){return[e[0]-1,e[1]-1,e[2],e[3]]},_convertFromZeroToOneOrigin:function(e){return[e[0]+1,e[1]+1,e[2],e[3]]},_updatePositionOnServer:function(e){var t=this.getRefFrameSize(),i=this.getUnits().toLowerCase(),n=this.getUnitsServices().getValueForPeerNodeFromPixelValue(e,i,t);void 0!==n&&(this._positionInUnits=this.getUnitsServices().getPositionInUnitsFromUnitsValue(n),this.setPositionPropertyToPeerNode(n)),this.dispatchPositionChangedEvent()},_setPositionInUnits:function(e){this._units=this.getUnitsServices().getUnitsFromUnitsValue(e),this._positionInUnits=this.getUnitsServices().getPositionInUnitsFromUnitsValue(e);var t=this.getRefFrameSize(),i=this.getUnitsServices().getValueInPixelsFromUnitsValue(e,t);this.areArrayValuesDifferent(i,this._positionForView)&&(this._positionForView=i,this.revalidate())},setPositionInPixels:function(e){e===this._positionForView&&!1!==this._valid||(this._positionForView=e,this._validateSelf(),this._updatePositionOnServer(e))},_setInnerPositionInPixels:function(e){this.setPositionInPixels(e)},setOuterSize:function(e){var t=this.getCachedPixPositionForView(),i=[t[0],t[1],e[0],e[1]];this._positionForView=i,this._resizeView(e)},updatePositionOnServer:function(e){var t=this.getPeerNode();if(t.hasProperty("Size")&&t.hasProperty("Location"))this._updateSizeLocationOnServer(e);else{if(void 0===t.getProperty("Position"))throw new Error("updatePositionOnServer called on an unknown type of component");this._positionForView=e.outerPosition,this._updatePositionOnServer(e.outerPosition)}},getPositionInPixels:function(){if(void 0===this._positionForView||!1===this._valid){var e=this.getPositionPropertyFromPeerNode();if(void 0===e)return this._getDefaultViewPosition();var t=this.getRefFrameSize();return this.getUnitsServices().getValueInPixelsFromUnitsValue(e,t)}return this._positionForView},getCachedPixPositionForView:function(){var e=this._positionForView;return void 0===e&&(e=this.getPositionInPixels()),e},_getInnerPositionInPixels:function(){return this.getCachedPixPositionForView()},_getOuterPositionInPixels:function(){return this.getCachedPixPositionForView()},_getDefaultViewPosition:function(){return[0,0,1,1]},attachInsetsChangedEventListener:function(){this.own(t(this.widget.domNode,"insetschangedevent",i.hitch(this,"dispatchInsetsChangedEvent")))},dispatchInsetsChangedEvent:function(e){var t=this._getOuterPositionInPixels(),i=this.getInnerFromOuter(t,e.insets);this._dispatchChangedEventToServer("insetsChangedEvent",t,i),e.stopPropagation()},dispatchPositionChangedEvent:function(){var e=this._getOuterPositionInPixels(),t=this._getInnerPositionInPixels(),i=this.getRefFrameSize();this._dispatchChangedEventToServer("positionChangedEvent",e,t,i)},dispatchPositionChangedEventWithoutMargins:function(e){this._dispatchChangedEventToServer("positionChangedEvent",e,e)},_dispatchChangedEventToServer:function(e,t,i){var n={};if(n.OuterPosition=t,n.InnerPosition=i,t[3]<0||t[4]<0)throw new Error("_dispatchChangedEventToServer outer size is negative! ");if(i[3]<0||i[4]<0)throw new Error("_dispatchChangedEventToServer inner size is negative! ");var o=this.getRefFrameSize(),r=this.getUnitsServices().createUnitsValueEventData(n,o);this.peernode.dispatchEventToServer(e,r)},_positionView:function(e){},_resizeView:function(e){var t=this.widget;if(!t)throw new Error("Assertion: _resizeView is only supported for Controller's with a 'widget' property");this._lastSize=[t.get("width"),t.get("height")];try{t.set("width",e[0])}catch(e){t.set("width",1)}try{t.set("height",e[1])}catch(e){t.set("height",1)}this._notifyViewSizeChanged(e)},_notifyViewSizeChanged:function(e){this.emit("compViewSizeChanged",e)},validate:function(){this._validateSelf()},_validateSelf:function(){this._positionForView&&this._positionView(this._positionForView),this._valid=!0},_handleComponentInvalidated:function(e){},_revalidateParent:function(){void 0!==this.getPeerNode().isHGChildNode&&this.getPeerNode().isHGChildNode()&&!0===this.getParentController()._valid?(this.getParentController().invalidate(),this.getParentController().validate()):this.validate()},invalidate:function(){this._valid=!1},revalidate:function(){this.invalidate(),this._revalidateParent()},getInnerFromOuter:function(e,t){var i=e.slice(0);return i[0]=e[0]+t.left,i[1]=e[1]+t.bottom,i[2]=e[2]-(t.left+t.right),i[3]=e[3]-(t.bottom+t.top),i[2]<0&&(i[2]=0),i[3]<0&&(i[3]=0),i},getOuterFromInner:function(e,t){var i=[0,0,0,0];return i[0]=e[0]-t.left,i[1]=e[1]-t.bottom,i[2]=e[2]+(t.left+t.right),i[3]=e[3]+(t.bottom+t.top),i},cachePixPositionForView:function(e){this._positionForView=e},getRefFrameSize:function(){var e=this.getParentController();return e&&e.getRefFrameSizeForChild?e.getRefFrameSizeForChild():[1,1]},setOuterPositionInPixelsImpl:function(e){this.setPositionInPixels(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={};return{getMap:function(){return e},removeItem:function(t){delete e[t]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_handlePeerEvent:function(e){this.inherited(arguments),"FocusComponent"===e.data.Name&&this._handleFocusRequested()},_handleFocusRequested:function(){this.getFocusNode().focus()},getFocusNode:function(e){return this.widget.focusNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(381),i(404),i(298),i(295),i(836),i(287),i(349),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([i,n,o,r,a],{setProperties:function(e){this.inherited(arguments),e.forEach(t.hitch(this,(function(e){switch(e){case"Text":var t=s.getNewLineDelimitedText(this.WidgetData.getProperty("Text"));this.widget.set("text",t);break;case"IconURL":var i=this.WidgetData.getProperty("IconURL");i&&i.startsWith("/static/")&&(i=c.createWorkerRoutingHostUrl(i)),this.widget.set("icon",i);break;case"IconAlignment":this.widget.set("iconAlignment",this.WidgetData.getProperty("IconAlignment"));break;case"HorizontalAlignment":this.widget.set("horizontalAlignment",this.WidgetData.getProperty("HorizontalAlignment"));break;case"VerticalAlignment":var n=s.getVerticalAlignmentPropertyForWidget(this.WidgetData.getProperty("VerticalAlignment"));this.widget.set("verticalAlignment",n)}})))},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){var e,t=this.getPeerNode().getProperty("Text"),i=s.getNewLineDelimitedText(t),n=s.getWidgetFontStyleMap(this.getPeerNode()),o=[0,0],r=i.length>0,a=this.getPeerNode().getProperty("IconURL"),c=!(void 0===a||""===a),d=l.BUTTON.OVERALL_WIDTH_PADDING+l.BUTTON.OVERALL_WIDTH_PADDING_TEXTNODE;if(r){if(e=s.getTextPosition(i,n),o[0]=e.width+d,o[1]=e.height+l.BUTTON.OVERALL_HEIGHT_PADDING+l.BUTTON.OVERALL_HEIGHT_PADDING_TEXTNODE,c){var u=e.h,h=this.WidgetData.getProperty("IconAlignment");"right"===h||"left"===h?(u||(u=e.h),o[0]+=u,o[1]=Math.max(o[1],u)):"top"!==h&&"bottom"!==h||(u||(u=e.h),o[0]=Math.max(o[0],u),o[1]+=u)}}else if(c){var p=s.getTextPosition("M",n);o[0]=p.h+l.BUTTON.OVERALL_WIDTH_PADDING,o[1]=p.h+l.BUTTON.OVERALL_HEIGHT_PADDING}else e=s.getTextPosition(i,n),o[0]=e.w+d,o[1]=e.h+l.BUTTON.OVERALL_HEIGHT_PADDING+l.BUTTON.OVERALL_HEIGHT_PADDING_TEXTNODE;return[o[0],this._getFitHeight(o[1])]},_getFitHeight:function(e){var t=e;if(this.widget.wordWrap){var i,n=this.getPeerNode().getProperty("Text"),o=s.getNewLineDelimitedText(n),r=s.getWidgetFontStyleMap(this.getPeerNode());t=0;var a,c,d=o.length>0,u=this.getPeerNode().getProperty("IconURL"),h=!(void 0===u||""===u),p=l.BUTTON.OVERALL_WIDTH_PADDING+l.BUTTON.OVERALL_WIDTH_PADDING_TEXTNODE;if(d){if(h?(a=s.getTextPosition("M",r).height,c=this.getCellWidth()-(p+a)+"px"):c=this.getCellWidth()-p+"px",t=(i=s.getTextPositionWithWordWrap(o,r,c)).height+l.BUTTON.OVERALL_HEIGHT_PADDING+l.BUTTON.OVERALL_HEIGHT_PADDING_TEXTNODE,h){var f=this.WidgetData.getProperty("IconAlignment");"right"===f||"left"===f?(a||(a=i.h),t=Math.max(t,a)):"top"!==f&&"bottom"!==f||(a||(a=i.h),t[0]+=a)}}else if(h){t=s.getTextPosition("M",r).h+l.BUTTON.OVERALL_HEIGHT_PADDING}else t=(i=s.getTextPosition(o,r)).h+l.BUTTON.OVERALL_HEIGHT_PADDING+l.BUTTON.OVERALL_HEIGHT_PADDING_TEXTNODE}return t},recomputeFitHeight:function(e){this.recomputeFitSize(e)},_editPropertiesAffectingFitSize:function(e){return e.push("IconURL"),e.push("IconAlignment"),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_disabled:!1,_domNode:{},setDisabled:function(e){this._disabled=e},addDisableListener:function(e){this._domNode=e;var t=this._handleInteraction.bind(this);window.PointerEvent&&e.addEventListener("pointerdown",t,!0),e.addEventListener("mousedown",t,!0),e.addEventListener("click",t,!0)},removeDisableListener:function(e){var t=this._handleInteraction.bind(this);window.PointerEvent&&e.removeEventListener("pointerdown",t,!0),e.removeEventListener("mousedown",t,!0),e.removeEventListener("click",t,!0)},_handleInteraction:function(e){this._disabled&&this._disabledInteraction(e)},_disabledInteraction:function(e){e.stopImmediatePropagation();var t=document.createEvent("MouseEvent");t.initMouseEvent(e.type,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this._domNode.parentElement.dispatchEvent(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{disabled:!1,setEnable:function(e){this.disabled=!e,e?this.domNode.classList.remove("vc-disabled"):this.domNode.classList.add("vc-disabled")},getEnable:function(){return!this.disabled}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(247)],o=i.dj.d(n,(function(e){return{addLinkAnchorTarget:function(e){for(var t=e.querySelectorAll("a"),i=0;i<t.length;i++)t[i].setAttribute("target","_blank")},addLinkAnchorClickListeners:function(e,t){for(var i,n=e.querySelectorAll("a"),o={},r=0;r<n.length;r++){"#"===(i=n[r].getAttribute("href"))&&(i="");var a=this.shouldDisableNativeLink(i);o[n[r]]=i;var s=function(e){return a?(t._handleClick(e),e.preventDefault()):t._handleNativeLinkClick(e),!1};n[r].addEventListener("click",s,!0),n[r].addEventListener("auxclick",(function(e){return 2===e.which&&s(e),!1}),!0)}return o},getSanitizedURL:function(t){var i=document.createElement("a");return i.href=t,e.sanitizeHtmlFromJava(i.outerHTML).firstElementChild.href},blockAnchorInteractivity:function(e){for(var t=e.querySelectorAll("a"),i=0;i<t.length;i++)t[i].addEventListener("contextmenu",(function(e){return e.preventDefault(),!1}),!0),t[i].draggable=!1,t[i].addEventListener("ondragstart",(function(e){return e.preventDefault(),!1}),!0)},shouldDisableNativeLink:function(e){return this._isFigureInCEF()||e.indexOf("matlab:")>-1||0===e.length},_isFigureInCEF:function(){return window.hasOwnProperty("cefclient")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(210),i(217)],o=i.dj.d(n,(function(e,t,i){return{moveWidgetDomOffScreen:function(i){var n=null;if(!document.body)throw Error("Assertion: Requires the document to be fully loaded to render");n=e.create("div",{},document.body),t.add(n,"dijitOffScreen");var o=i.getComponentDomNode(),r=o.parentNode,a=Array.prototype.indexOf.call(o.parentNode.childNodes,o);return n.appendChild(o),function(e){r.insertBefore(e,r.children[a])}},adjustPositionMethodForScaling:function(){var e=i.position;return i.position=function(t){var i=e(t);return i.w=t.clientWidth,i.h=t.clientHeight,i},function(){i.position=e}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{validate:function(e){if(!e)throw new Error("proxyNode is required");if(!e.hasOwnProperty("id"))throw new Error("id is required for proxyNode. Path property not implimented yet.")},normalize:function(e){return this.validate(e),e}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{ERROR_CIRCULAR_REF:"ERROR_CIRCULAR_REF",ERROR_SAVE_FAILED:"ERROR_SAVE_FAILED",ERROR_VALIDATION:"ERROR_VALIDATION",ERROR_UNKNOWN:"ERROR_UNKNOWN",ERROR_NODE_NON_EXISTENT:"ERROR_NODE_NON_EXISTENT"}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(955),i(315)],o=i.dj.d(n,(function(e,t){var i=void 0,n={caseFirst:"lower",ignorePunctuation:!1,numeric:!1,sensitivity:"variant",usage:"sort"};if("undefined"!=typeof Intl&&Intl.Collator){var o=new Intl.Collator("en-US",n);i=function(e,t){return o.compare(e,t)}}else i=function(e,t){return String.prototype.localeCompare.call(e,t,"en-US",n)};var a={STRING:i,NUMERIC:function(e,t){"number"!=typeof e&&(e=parseFloat(e)),"number"!=typeof t&&(t=parseFloat(t));var i=e-t;return isNaN(i)?isNaN(e)&&isNaN(t)?0:isNaN(e)?-1:1:i}};return function(){function t(i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.columnMap=[],i?(this._sorted=!0,this._sortOptions=[{field:"label",order:e.order.ASC,compare:e.compare.STRING}]):(this._sorted=!1,this._sortOptions=[])}return r(t,[{key:"sort",value:function(e,t){if(t)throw new Error("Sort is not implimented with arbitrary options");if(!this._sorted)throw new Error("Sort is only available when sort is maintained on Tree using the 'sorted' option");t=this._sortOptions;var i=this.generateCompareFunctionFromList(t);e.sort(i)}},{key:"getInsertIndex",value:function(e,t){if(!this._sorted)throw new Error("getInsertIndex is only available when sort is maintained on Tree using the 'sorted' option");for(var i=this._sortOptions,n=this.generateCompareFunctionFromList(i),o=0,r=e.length,a=void 0,s=void 0;o<r;){if(0===(s=n(t,e[a=Math.floor((r+o)/2)])))return a;s<0?r=a:o=a+1}return o}},{key:"generateCompareFunctionFromList",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=[],n=0;n<e.length;n+=1){var o=e[n];this._validateSortOption(o,t),i.push(this._generateCompareFunctionFromItem(o))}var r=function(e,t){for(var n=0;n<i.length;n+=1){var o=i[n](e,t);if(0!==o)return o}return 0};return r}},{key:"_generateCompareFunctionFromItem",value:function(t){var i=1;t.order===e.order.DESC&&(i=-1);var n=a[t.compare],o=this._getSortField(t);return function(e,t){var r=e[o],a=t[o];if(void 0===r||void 0===a)throw new Error("A valid field must be specified");return n(r,a)*i}}},{key:"_validateSortOption",value:function(t,i){if(this._validateFieldToSort(t,i),!a[t.compare])throw new Error("A valid compare type must be specified!");if(!e.order[t.order])throw new Error("A valid sort order must be specified!")}},{key:"validateCustomSortName",value:function(t){if(e.compare[t])throw new Error(t+" is already a built-in sort type. Please provide a unique name.")}},{key:"addCustomCompare",value:function(e,t){a[e]=t}},{key:"sorted",get:function(){return this._sorted}},{key:"sortOptions",get:function(){return this._sortOptions}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{dataType:{BOOLEAN:"boolean",STRING:"string",NUMBER:"number",DEFAULT_DATA_TYPE:"string"},COLUMN_INDEX:"columnIndex",VALUE:"value",COMPARE_PROPERTY:"compare",COMPARE_TYPE:"type",DATA_TYPE:"dataType",CASE_SENSITIVE:"caseSensitive",PARAM:"param",type:{CONTAINS:"contains",STARTS_WITH:"startsWith",ENDS_WITH:"endsWith",EQUAL:"equalTo",NOT_EQUAL:"notEqualTo",LESS_THAN:"lessThan",GREATER_THAN:"greaterThan",LESS_THAN_EQUAL_TO:"lessThanEqualTo",GREATER_THAN_EQUAL_TO:"greaterThanEqualTo",FUNCTION:"function",DEFAULT_COMPARE_TYPE:"contains"},caseSensitive:{TRUE:!0,FALSE:!1,DEFAULT_CASE_SENSITIVE:!1}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return{getHighlightedTextDOM:function(e,t,i){var n,o=[];return(n=i.filter((function(e){return e.field===t}))).length>0?o=this._getMatchedDOM(e,n):o.push(this._createNonHighlightedTextContentForDisplay(e)),o},_getMatchedDOM:function(e,t){for(var i=[],n=void 0,o=void 0,r=this._createClassNameLookUp(e,t),a=0;a<r.length;){var s=void 0,l=void 0;if(0===r[a]){for(s=a;0===r[a]&&a<r.length;)a++;l=a,n=this._createNonHighlightedTextContentForDisplay(e.substring(s,l)),i.push(n)}if(a<r.length){s=a;for(var c=r[a];0!==r[a]&&a<r.length&&c===r[a];)a++;l=a,(o=this._createHighlightedTextContentForDisplay(e.substring(s,l))).className=c,i.push(o)}}return i},_createClassNameLookUp:function(e,t){for(var i=new Array(e.length).fill(0),n=function(e){var n=t[e];n.matches.forEach((function(e){for(var t=e.className||n.className||"treeHighlight",o=e.start+e.count,r=e.start;r<o;r++){var a=i[r];void 0!==a&&"treeNodeHighlightPrimary"===a||(i[r]=t)}}))},o=0;o<t.length;o++)n(o);return i},_createHighlightedTextContentForDisplay:function(e){var t=document.createElement("mark");return t.textContent=e,t},_createNonHighlightedTextContentForDisplay:function(e){return document.createTextNode(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({ACTIVE_EDIT:"ACTIVE_EDIT",ACTIVE_EDIT_IN_PROGRESS:"ACTIVE_EDIT_IN_PROGRESS",INACTIVE_EDIT_IN_PROGRESS:"EDIT_IN_PROGRESS"})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(530),i(5823)],o=i.dj.d(n,(function(e,t){var i=function(){};return function(){function n(o){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._on=new e,this._dataStore=o,this._data=[],this._pagedRangeList=[],this._pagedData=[],this._listeners=[],this._cellMetaData=[],this._rangeList=[],this._rowMetaData=[],this._columnMetaData=[],this.sort=o.sort?o.sort.bind(o):i,this.updateHeader=o.updateColumnHeader?o.updateColumnHeader.bind(o):void 0,this.setHeaders=o.__setHeaders?o.__setHeaders.bind(o):void 0,this.getHeaders=o.__getHeaders?o.__getHeaders.bind(o):void 0,this.updateRowHeader=o.updateRowHeader?o.updateRowHeader.bind(o):void 0,this.setSpanningHeaders=o.__setSpanningHeaders?o.__setSpanningHeaders.bind(o):void 0,this.getSpanningHeaders=o.__getSpanningHeaders?o.__getSpanningHeaders.bind(o):void 0;var a=o.getLocalColumnSpanningMetaData?o.getLocalColumnSpanningMetaData.bind(o):void 0,s=o.getLocalCellMetaData||function(e){},l=o.getLocalRowMetaData||function(e,t){},c=o.getLocalColumnMetaData||function(e,t){};this._pagedData=new t({getLocalCell:o.getLocalCellData.bind(o)}),this._pagedCellMetaData=new t({getLocalCell:s.bind(o)}),this._pagedRowMetaData=new t({getLocalCell:function(e,t){return l.call(o,e)}}),this._pagedColumnMetaData=new t({getLocalCell:function(e,t){return c.call(o,t)}}),void 0!==a&&(this._pagedColumnSpanningMetaData=new t({getLocalCell:function(e,t){return a(t)}})),this._listeners.push(this._dataStore.on("dataChanged",this._reactToNewData.bind(this)),this._dataStore.on("pagedRowMetaDataChanged",this._reactToNewRowMetaData.bind(this)),this._dataStore.on("pagedColumnMetaDataChanged",this._reactToNewColumnMetaData.bind(this)),this._dataStore.on("dataSizeChanged",(function(e){return r._on.emit(e.eventName,e)})))}return r(n,[{key:"managePaging",value:function(e){var t=this._destructureRangesByType(e),i=t.rowRange,n=t.columnRange,o=this._pagedData.managePaging(e).data,r=this._pagedCellMetaData.managePaging(e).data,a=this._pagedRowMetaData.managePaging(i).data,s=this._pagedColumnMetaData.managePaging(n).data,l=(void 0!==this._pagedColumnSpanningMetaData?this._pagedColumnSpanningMetaData.managePaging(n):{data:void 0}).data;this._data=o,this._cellMetaData=r,this._rangeList=e,this._rowMetaData=a,this._columnMetaData=s,this._columnSpanningMetaData=l,this._pagedRangeList=e.slice(),this._dataStore.managePaging(e),this._emitPagedDataChanged()}},{key:"_emitPagedDataChanged",value:function(){this._on.emit("pagedDataChanged",{pagedData:this._data,cellMetaData:this._cellMetaData,rowMetaData:this._rowMetaData,columnMetaData:this._columnMetaData,columnSpanningMetaData:this._columnSpanningMetaData,rangeList:this._rangeList})}},{key:"_reactToNewData",value:function(e){var t=e.rangeList,i=this._pagedData.dataArrived(t),n=i.dataChanged,o=i.data,r=this._pagedCellMetaData.dataArrived(t),a=r.dataChanged,s=r.data;(n||a)&&(this._cellMetaData=s,this._data=o,this._emitPagedDataChanged())}},{key:"_reactToNewRowMetaData",value:function(e){var t=e.rangeList,i=this._pagedRowMetaData.dataArrived(t),n=i.dataChanged,o=i.data;n&&(this._rowMetaData=o,this._emitPagedDataChanged())}},{key:"_reactToNewColumnMetaData",value:function(e){var t=e.rangeList,i=this._pagedColumnMetaData.dataArrived(t),n=i.dataChanged,o=i.data,r=void 0!==this._pagedColumnSpanningMetaData?this._pagedColumnSpanningMetaData.dataArrived(t):{metaDataChanged:void 0,data:void 0},a=r.metaDataChanged,s=r.data;n&&(this._columnMetaData=o,this._emitPagedDataChanged()),a&&(this._columnSpanningMetaData=s,this._emitPagedDataChanged())}},{key:"_destructureRangesByType",value:function(e){return{dataRange:e,rowRange:e.map((function(e){return e.setColumns(0,0)})),columnRange:e.map((function(e){return e.setRows(0,0)}))}}},{key:"on",value:function(e,t){var i=this._on.on(e,t);return this._listeners.push(i),i}},{key:"destroy",value:function(){this._listeners.forEach((function(e){return e.remove()})),this._dataStore.destroy(),this._dataStore=null,this._data=null,this._cellMetaData=null,this._rangeList=null,this._rowMetaData=null,this._columnMetaData=null,this._pagedRangeList=null,this._pagedData=null}},{key:"dataSize",get:function(){return this._dataStore.dataSize}}]),n}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(211),i(213),i(206),i(221),i(257),i(248),i(246),i(223),i(788),i(215),i(360),i(316),i(216),i(238),i(330),i(887),i(352),i(343),i(335),i(545),i(433),i(259),i(258),i(5836),i(2171),i(1160),i(5887),i(5888)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N){return e(E.validate([u,h,p,d,f,m,_,v,b,y,C,T]),{baseClass:"mwWidget mwComboBox mwDatePicker",templateString:x,description:"",disabled:!1,editable:!0,horizontalAlignment:"right",displayFormat:"",inputFormat:null,_defaultInputFormat:"",_editingInProgress:!1,_inputFormatHint:"",locale:null,placeholder:"",defaultCalendarView:null,value:null,width:150,height:22,required:!1,_ITERATION_MAX:1e3,limits:null,dateDisableCallback:null,disableWeekends:!1,disabledDates:null,autoWidth:!1,displayedValue:null,_editingcompleteReason:{DATEPICKER_BLUR:"DATEPICKER_BLUR",TEXTFIELD_ESCAPE:"TEXTFIELD_ESCAPE",TEXTFIELD_ENTER:"TEXTFIELD_ENTER"},_interactionCompleteAction:{BLUR:"BLUR",FOCUS_TEXTFIELD:"FOCUS_TEXTFIELD"},_boundWindowScrollHandler:null,constructor:function(){this._interactionCompleteBehavior=this._interactionCompleteAction.FOCUS_TEXTFIELD,this._textField=new S,this._textFieldContainerNodeMouseDownHandler=null,this.set("locale",null);var e=[new Date(0,0,1),new Date(9999,11,31)];e[0].setFullYear(0),this._set("limits",e),this._set("disabledDates",[]),this.own(this._textField),this.own(o(this._textField,"change",function(e){if(e.stopPropagation(),e.preventDefault(),!this._abortTextFieldUpdate){if(this._opened)this._elementOrDescendantIsFocused(this._calendar.domNode)&&(this._editingInProgress=!1);if(!this._opened||this._editingInProgress){var t,i=this._textField.domNode.classList.contains("mwTextFieldFocused");if("error"===this.get("validationState"))return t=i?this._formatDate(this.get("value")):this._formatDate(this.get("value"),this.get("displayFormat")),void this._revertToOldValue(t);var n=this._parseDateString(e.mwEventData.newValue),o=!i;null===n?this._valueChanged(e.mwEventData.newValue,o):I.datesDiffer(this.get("value"),n)&&this._valueChanged(n,o),i&&this._updateTextField()}else{var r=this.get("displayedValue");this._textField.set("value",r)}}}.bind(this)),o(this._textField,"typing",function(e){if(e.stopPropagation(),e.preventDefault(),e.mwEventData&&e.mwEventData.currentContent){var t=this._parseDateString(e.mwEventData.currentContent);null===t&&(t=e.mwEventData.currentContent),this._updateValidationMessage(t)}}.bind(this)),o(this._textField,"focus",function(){this._textFieldHasBeenFocused=!0,this._abortTextFieldUpdate||(this._editingInProgress=this.get("editable"),this._updateTextField())}.bind(this)),o(this._textField,"blur",function(){this._abortTextFieldUpdate||(this._editingInProgress=!1,this._updateTextField())}.bind(this))),this._boundWindowScrollHandler=this._handleWindowScroll.bind(this)},buildRendering:function(){this.inherited(arguments),this._textField.placeAt(this.textFieldContainerNode),this.inputNode=this._textField.inputNode,this.focusNode=this._textField.focusNode},startup:function(){this.inherited(arguments),this._textField.startup(),this.resize()},_onBlur:function(){this._calendar&&this._calendar._abortDatePickerBlur?this.dropDown.focus():(this.inherited(arguments),setTimeout(function(){this.emit("editingcomplete",{mwEventData:{reason:this._editingcompleteReason.DATEPICKER_BLUR}})}.bind(this),100))},_updateTextField:function(){if(null==this._hiddenRevertOverlayDiv){var e,t=this.get("value"),i=this._textField.get("value");i!==(e=null===t?i:this._formatDate(t))&&this._textField.set("value",e);var n=this._parseDateString(this._textField.get("value"));null===n&&(n=this._textField.get("value")),this._updateValidationMessage(n)}},_parseDateString:function(e){var t=this._editingInProgress?this.get("inputFormat")||this._defaultInputFormat:this.get("displayFormat");return A.parse(e,{datePattern:t,strict:!1,locale:this.get("locale")})},_formatDate:function(e,t){void 0===t&&(t=this._editingInProgress?this.get("inputFormat")||this._defaultInputFormat:this.get("displayFormat"));var i,n={datePattern:t,locale:this.get("locale")};if(""===n.datePattern||null===e)i="";else try{i=A.format(e,n)}catch(e){i=null}return i},_updateValidationMessage:function(e){var t=this.get("limits")||[null,null],i={min:t[0],max:t[1],disableWeekends:this.get("disableWeekends"),disabledDates:this.get("disabledDates"),dateDisableCallback:this.get("dateDisableCallback")},n=N.disabledDateMessage,o=N.invalidDateMessage.replace("%1",this._inputFormatHint),r=N.missingDateMessage.replace("%1",this._inputFormatHint);this.get("required")&&null===e?(this.set("errorText",r),this.set("validationState","error")):void 0!==e&&"string"==typeof e?0===e.length?this.get("required")?(this.set("errorText",r),this.set("validationState","error")):!this._editingInProgress||0===this._textField.inputNode.value.length&&this.get("placeholder")===this._inputFormatHint||this._valueChanging?this.set("validationState","normal"):(this.set("validationState","warning"),this.set("warningText",this._inputFormatHint)):(this.set("errorText",o),this.set("validationState","error")):I.isDisabledDate(e,i,this.get("locale"))?(this.set("errorText",n),this.set("validationState","error")):!this._editingInProgress||0===this._textField.inputNode.value.length&&this.get("placeholder")===this._inputFormatHint||this._valueChanging?this.set("validationState","normal"):(this.set("validationState","warning"),this.set("warningText",this._inputFormatHint))},_createCalendar:function(){this._calendar&&this._calendar.destroyRecursive();var e=this.get("displayFormat"),t=this.get("limits")||[null,null],i={min:t[0],max:t[1],datePattern:e,disableWeekends:this.get("disableWeekends"),dateDisableCallback:this.get("dateDisableCallback"),disabledDates:this.get("disabledDates"),dayOffset:0,weekendDays:[6,0]},n=this.get("value"),o=this.get("locale"),r=this._computeCurrentFocus();this._calendar=new w({id:this.domNode.id+"_popup",value:n,locale:o||A.getBrowserDefaultLocale(),currentFocus:r,constraints:i}),this._calendar.own(this._calendar.on("dateselected",function(e){this._valueChanged(e.mwEventData.newValue,!0)}.bind(this))),this._calendar.onOpen=function(){window.addEventListener("scroll",this._boundWindowScrollHandler,!0)}.bind(this),this._calendar.onClose=function(){window.removeEventListener("scroll",this._boundWindowScrollHandler,!0)}.bind(this)},_handleWindowScroll:function(e){if(this._opened&&e.srcElement!==this._calendar.domNode.parentElement&&!this.active){var t=e.srcElement===document;if(!t)for(var i=this.domNode;null!==i;){if(i===e.srcElement){t=!0;break}i=i.parentElement}t&&this.closeDropDown()}},_computeCurrentFocus:function(){var e=this.get("value"),t=this.get("defaultCalendarView"),i=I.isInvalidDate(e)?t||null:e;if(null===i){var n=this.get("limits")||[null,null];if(!n||!Array.isArray(n)||2!==n.length||I.isInvalidDate(n[0])&&I.isInvalidDate(n[1]))i=new Date;else if(I.isInvalidDate(n[0]))i=n[1];else if(I.isInvalidDate(n[1]))i=n[0];else{var o=new Date;o.setHours(0,0,0,0);var r=I.difference(o,n[0]),a=I.difference(o,n[1]);i=r>=0?n[0]:a<=0?n[1]:o}i.setHours(0,0,0,0)}return i},_addTooltipEvents:function(){this.own(o(this,a.enter,function(){document.activeElement===this._textField.focusNode&&this._placeTooltip()}.bind(this)),o(this,a.leave,function(){this.validationTooltip&&!this.domNode.classList.contains("mwDatePickerFocused")&&(this.validationTooltip.domNode.style.visibility="hidden")}.bind(this)),o(this.focusNode,"focus",function(){document.activeElement===this._textField.focusNode&&(this._placeTooltip(),this.validationTooltip&&("error"!==this.get("validationState")&&"warning"!==this.get("validationState")||this.validationTooltip.domNode.classList.add("mwValidationFocused")))}.bind(this)),o(this.focusNode,"blur",function(){this.validationTooltip&&(this.validationTooltip.domNode.classList.remove("mwValidationFocused"),this.validationTooltip.domNode.style.visibility="hidden")}.bind(this)))},_onKey:function(e){if(!this.disabled&&!this.readOnly){var t=this.dropDown;if(t&&this._opened&&!this._editingInProgress&&t.handleKey&&!1===t.handleKey(e))return e.stopPropagation(),void e.preventDefault();t&&this._opened&&e.keyCode===c.ESCAPE?(this.closeDropDown(),e.stopPropagation(),e.preventDefault()):!(!this._opened||this._opened&&this._editingInProgress)||e.keyCode!==c.DOWN_ARROW&&e.keyCode!==c.UP_ARROW?this._opened||e.keyCode!==c.ESCAPE?this._editingInProgress&&e.keyCode===c.ENTER&&setTimeout(function(){this.emit("editingcomplete",{mwEventData:{reason:this._editingcompleteReason.TEXTFIELD_ENTER}})}.bind(this),200):(this.emit("editingcomplete",{mwEventData:{reason:this._editingcompleteReason.TEXTFIELD_ESCAPE}}),e.stopPropagation(),e.preventDefault()):(this._focusDropDownOnKeyUp=!0,e.stopPropagation(),e.preventDefault())}},_onKeyUp:function(e){this._focusDropDownOnKeyUp&&(delete this._focusDropDownOnKeyUp,this._opened?this.dropDown.focus():(this.toggleDropDown(),setTimeout(function(){this.dropDown&&this.dropDown.focus()}.bind(this),200)),this._editingInProgress=!1,this._updateTextField())},_onDropDownMouseDown:function(e){if(!(e.target===this._textField.inputNode&&this._editingInProgress||this.get("disabled"))){if(null!=this._hiddenRevertOverlayDiv)return e.preventDefault(),void e.stopPropagation();if(e.target===this._textField.inputNode)this._editingInProgress=this.get("editable");else{if(e.preventDefault(),this._opened){if(e.stopPropagation(),!this._editingInProgress)return void(this._textFieldHasBeenFocused?this._overrideOnDropDownMouseDown(e):this._closeDropDownAndBlur());this._abortTextFieldUpdate=!0,setTimeout(function(){this._abortTextFieldUpdate=!1}.bind(this),200),this._overrideOnDropDownMouseDown(e);var t=this._parseDateString(this._textField.inputNode.value);return null===t&&(t=this._textField.inputNode.value),this._editingInProgress=this.get("editable"),void this._updateValidationMessage(t)}this._editingInProgress=!1}this._updateTextField(),this._overrideOnDropDownMouseDown(e)}},_overrideOnDropDownMouseDown:function(e){this.disabled||this.readOnly||(this._suppressDropDown=0!==e.button,this.own(this._dropDownMouseUpOnceListener=o.once(this.ownerDocument,s.release,this._onDropDownMouseUp.bind(this))),this._suppressDropDown||this.toggleDropDown())},_onDropDownMouseUp:function(e){this._suppressDropDown=!1,e.target===this._textField.inputNode&&this._editingInProgress||this.get("disabled")||null==this._hiddenRevertOverlayDiv&&(this.inherited(arguments),this._dropDownMouseUpOnceListener=null)},openDropDown:function(){this._opened||(this._createCalendar(),this.dropDown=this._calendar);var e=this.inherited(arguments),t=e.corner&&"BL"===e.corner,i=document.getElementById(this.id+"_dropdown");t?(this.domNode.classList.add("mwDropDownHasOpenedUpwards"),i&&i.classList.add("mwDropDownHasOpenedUpwards")):(this.domNode.classList.add("mwDropDownHasOpenedDownwards"),i&&i.classList.add("mwDropDownHasOpenedDownwards"))},closeDropDown:function(e){var t=document.getElementById(this.id+"_dropdown");t&&(this.dropDown.domNode.classList.remove("mwDropDownHasOpenedUpwards"),this.dropDown.domNode.classList.remove("mwDropDownHasOpenedDownwards")),this.domNode.classList.remove("mwDropDownHasOpenedUpwards"),this.domNode.classList.remove("mwDropDownHasOpenedDownwards");var i=this._textFieldHasBeenFocused;this.inherited(arguments),i&&document.activeElement!==this._textField.focusNode&&this._elementOrDescendantIsFocused(this.domNode)&&this._textField.focusNode.focus(),this._dropDownMouseUpOnceListener&&(this._dropDownMouseUpOnceListener.remove(),this._dropDownMouseUpOnceListener=null)},resize:function(){this._textField.domNode.parentNode.style.width="calc(100% - 22px)",this._textField.set("width","100%")},_onFocus:function(){this.inherited(arguments),this._textFieldHasBeenFocused=!1,this.disabled||this._suppressDropDown||(this._opened||this.openDropDown(),this.get("editable")||setTimeout(function(){this.dropDown&&this.dropDown.focus()}.bind(this),200))},focus:function(){this.disabled||this.focusNode.focus()},_valueChanged:function(e,t){this._valueChanging=this._interactionCompleteBehavior===this._interactionCompleteAction.BLUR;var i=this._get("value");this.set("value",e);var n=this._get("value");I.datesDiffer(i,n)&&this.emit("change",{mwEventData:{propertyName:"value",oldValue:i,newValue:n}}),t?this._closeDropDownAndBlur():this._valueChanging=!1},_closeDropDownAndBlur:function(){this._interactionCompleteBehavior===this._interactionCompleteAction.FOCUS_TEXTFIELD&&(!0===this.get("editable")?(this._elementOrDescendantIsFocused(this._calendar.domNode)||this._elementOrDescendantIsFocused(this.domNode))&&this._textField.focusNode.focus():this.focusNode.focus()),this.closeDropDown(),this._interactionCompleteBehavior===this._interactionCompleteAction.BLUR&&setTimeout(function(){this._blurDatePicker(),this._valueChanging=!1}.bind(this),100)},_blurDatePicker:function(){var e;"function"!=typeof Event||r("safari")?g._onBlurNode(this):(e=new Event("blur"),this.domNode.dispatchEvent(e))},_setDefaultCalendarViewAttr:function(e){if(I.isInvalidDate(e))this._set("defaultCalendarView",null);else{var t=I.copyDate(e);this._set("defaultCalendarView",t)}},_setRequiredAttr:function(e){this._set("required",e),this._textField.set("required",!1)},_setValueAttr:function(e){var t,i="";if(void 0!==e&&"string"==typeof e)0!==e.length&&(i=e),t=null,this._updateValidationMessage(i);else{if(I.isInvalidDate(e))t=null;else{var n=this.get("limits")||[null,null],o={min:n[0],max:n[1],disableWeekends:this.get("disableWeekends"),disabledDates:this.get("disabledDates"),dateDisableCallback:this.get("dateDisableCallback")};if(t=I.copyDate(e),I.isDisabledDate(t,o))t=null;else{var r=t.getFullYear();(r<0||r>9999)&&(t=null)}}this._updateValidationMessage(t)}if(this._calendar){var a=this._calendar.get("value");I.datesDiffer(a,t)&&this._calendar.set("value",t)}var s=i;0===s.length&&(s=this._formatDate(t)),this._textField.get("value")!==s&&this._textField.set("value",s);var l=this.get("value");I.datesDiffer(l,t)&&this._set("value",t)},_setEditableAttr:function(e){if(e)this.domNode.classList.add("mwEditableComboBox"),this.domNode.classList.remove("mwNonEditable"),this.focusNode=this._textField.focusNode,this._toggleTextField(!0),this._textField.focusNode.setAttribute("tabIndex","0"),this.menuNode=this.arrowNode,this._set("editable",!0),this.get("disabled")&&this._textField.focusNode.setAttribute("tabIndex","-1");else{this.domNode.classList.add("mwNonEditable"),this.domNode.classList.remove("mwEditableComboBox"),this.focusNode=this.domNode,this._toggleTextField(!1),this._textField.focusNode.setAttribute("tabIndex","-1"),this.menuNode=this.domNode,this._set("editable",!1);var t=window.getSelection();t&&t.focusNode&&t.focusNode.id===this._textField.domNode.id&&t.removeAllRanges()}},_toggleTextField:function(e){this._textField.set("editable",e),!0===this.get("disabled")?this._textField.set("disabled",e):this._textField.set("disabled",!e)},_setDisabledAttr:function(e){if(this.inherited(arguments),!0===e){this.closeDropDown();var t=window.getSelection();t&&t.focusNode&&t.focusNode.id===this._textField.domNode.id&&t.removeAllRanges()}if(!0===this.get("editable")&&this._textField.set("disabled",e),e)this._textField.focusNode.setAttribute("tabIndex","-1");else{var i=this._get("editable")?"0":"-1";this._textField.focusNode.setAttribute("tabIndex",i)}},_setWidthAttr:function(e){this.inherited(arguments),this.resize()},_setHeightAttr:function(e){this.inherited(arguments),this._textField.set("height",e)},_setLimitsAttr:function(e){var t=e;Array.isArray(e)&&2===e.length||(t=[new Date(0,0,1),new Date(9999,11,31)])[0].setFullYear(0),(I.isInvalidDate(t[0])||I.isInvalidDate(t[1]))&&(t=[new Date(0,0,1),new Date(9999,11,31)])[0].setFullYear(0),I.compareDates(t[0],t[1])>0&&(t=[new Date(0,0,1),new Date(9999,11,31)])[0].setFullYear(0);var i=I.copyDate(t[0]),n=I.copyDate(t[1]);this._set("limits",[i,n]),this._setValueToNullIfDisabled()},_setDisabledDatesAttr:function(e){if(e&&Array.isArray(e)){for(var t=0;t<e.length;t++){var i=e[t];if(!(i instanceof Date||Array.isArray(i)&&2===i.length&&!I.isInvalidDate(i[0])&&!I.isInvalidDate(i[1])&&-1===I.compareDates(i[0],i[1])))return void this._set("disabledDates",[]);I.isInvalidDate(i)||i.setHours(0,0,0,0)}this._set("disabledDates",dojo.clone(e)),this._setValueToNullIfDisabled()}else this._set("disabledDates",[])},_setDisableWeekendsAttr:function(e){this._set("disableWeekends",e),this._setValueToNullIfDisabled()},_setDateDisableCallbackAttr:function(e){this._set("dateDisableCallback",e),this._setValueToNullIfDisabled()},_setValueToNullIfDisabled:function(){var e=this.get("value");if(!I.isInvalidDate(e)){var t=this.get("limits")||[null,null],i={min:t[0],max:t[1],disableWeekends:this.get("disableWeekends"),disabledDates:this.get("disabledDates"),dateDisableCallback:this.get("dateDisableCallback")};I.isDisabledDate(e,i,this.get("locale"))&&this.set("value",null)}},_setPlaceholderAttr:function(e){this._textField.set("placeholder",e),this._set("placeholder",e)},_getPlaceholderAttr:function(){return this._textField.get("placeholder")},_setHorizontalAlignmentAttr:function(e){this._textField.set("horizontalAlignment",e),this._set("horizontalAlignment",e)},_setDisplayedValueAttr:function(e){},_getDisplayedValueAttr:function(){var e=this.get("value"),t=this.get("displayFormat"),i=this._formatDate(e,t);if(null===i){var n=A.getLocaleDateFormatInfo(this.get("locale"));i=this._formatDate(e,n)}return i},_setDescriptionAttr:function(e){this._set("description",e),this._textField.set("description",e)},_setDisplayFormatAttr:function(e){var t=new Date;if(null===this._formatDate(t,e)){var i=A.getLocaleDateFormatInfo(this.get("locale"));this._set("displayFormat",i)}else this._set("displayFormat",e);this._updateTextField()},_setInputFormatAttr:function(e){var t=null,i=this.get("placeholder"),n=this._get("inputFormat");if(null!==e){var o=new Date;t=this._formatDate(o,e)}if(null===e||null===t){var r=this._get("locale"),a=A.getLocaleDateFormatInfo(r);null===a&&(r=A.getBrowserDefaultLocale(),a=A.getLocaleDateFormatInfo(r)),(n&&i===this._adjustFormat(n)||i===this._adjustFormat(this._defaultInputFormat)||""===i)&&this.set("placeholder",this._adjustFormat(a)),this._set("inputFormat",null),this._inputFormatHint=this._adjustFormat(a)}else(n&&i===this._adjustFormat(n)||i===this._adjustFormat(this._defaultInputFormat)||""===i)&&this.set("placeholder",this._adjustFormat(e)),this._set("inputFormat",e),this._inputFormatHint=this._adjustFormat(e);this._updateTextField()},_adjustFormat:function(e){return e.replace(/u/g,"y").replace(/M/g,"m")},_setLocaleAttr:function(e,t){e=null===e?A.getBrowserDefaultLocale():A.adjustLocale(e);var i=A.getLocaleDateFormatInfo(e);null===i&&(e=A.getBrowserDefaultLocale(),i=A.getLocaleDateFormatInfo(e)),this._set("locale",e),t||(this.set("inputFormat",null),this.set("displayFormat",i),this._defaultInputFormat=i),this._updateTextField()},_setRevertTimeout:function(e){return e||2e3},_revertToOldValue:function(e){this._hiddenRevertOverlayDiv=i.create("div",{},this.domNode);var o=t.getBorderExtents(this.domNode);n.set(this._hiddenRevertOverlayDiv,{top:-o.t+"px",right:-o.r+"px",bottom:-o.b+"px",left:-o.l+"px",position:"absolute"}),this._hiddenRevertOverlayDiv.addEventListener("mousedown",this._stopEvent),setTimeout(function(){if(!0!==this._destroyed){var t=document.activeElement;if(t&&"INPUT"===t.tagName)for(var n=!1;null!==t.parentElement;)if((t=t.parentElement).classList.contains("mwDatePickerFocused")){n=!0;break}n||(e=this.get("displayedValue")),this._textField.set("value",e);var o=this._parseDateString(e);null===o&&(o=e),this._updateValidationMessage(o),this._hiddenRevertOverlayDiv.removeEventListener("mousedown",this._stopEvent),i.destroy(this._hiddenRevertOverlayDiv),this._hiddenRevertOverlayDiv=null}}.bind(this),this._setRevertTimeout())},_stopEvent:function(e){e.preventDefault(),e.stopPropagation()},_elementOrDescendantIsFocused:function(e){var t=!1,i=document.activeElement;if(i===e)t=!0;else for(;i&&i.parentElement;)if((i=i.parentElement)===e){t=!0;break}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(211),i(210),i(456),i(287),i(1161),i(2177),i(1156),i(959),i(960),i(2178),i(405)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([a,s,l,c,d,u],{_labelClass:"vc-gaugeMajorTickLabel",_labelDivId:"Major_Tick_Labels",_gaugeCSSClass:"vc-gaugeComponents",_labelDistanceFromHub:-13,majorTicks:[],majorTickLabels:[],minorTicks:[],setUpComponentOnLoad:function(){n.add(this.SVGContainer,this._gaugeCSSClass),this.BackgroundColorNode=this.SVGDocument.getElementById("BackgroundColorNode")},getInitializationPropertyNames:function(){var e=this.inherited(arguments),t=["Limits"];e&&(t=t.concat(e));var i=this.getInitializationFontPropertyNames();return i&&(t=t.concat(i)),t},getRelativeHubPosition:function(){var e,i=t.position(this.SVGContainer),n=this.SVGDocument.getElementById("Center");return{x:((e=t.position(n)).x+e.w/2-i.x)/i.w,y:(e.y+e.h/2-i.y)/i.h}},doSetProperties:function(e){var t=this.WidgetData.getProperty("Limits"),i=this.WidgetData.getProperty("ScaleDirection"),n=this.WidgetData.getProperty("Value"),o=this.WidgetData.getProperty("ScaleColors"),r=this.WidgetData.getProperty("ScaleColorLimits");this.inherited(arguments),this._arePropertyNamesPresent(e,["FontName","FontSize","FontAngle","FontWeight","ScaleDirection","Limits"])&&!this._arePropertyNamesPresent(e,["MajorTicks","MajorTickLabels"])&&this.alignLabels(),this._arePropertyNamesPresent(e,["ScaleColorLimits","ScaleColors","Limits","ScaleDirection"])&&this.setScaleColors(t,o,r,i),this._arePropertyNamesPresent(e,["Value","Limits","ScaleDirection"])&&this.setValue(t,n,i)},setMinorTicks:function(e){this.minorTicks=e;var t=this.WidgetData.getProperty("Limits"),i=this.WidgetData.getProperty("ScaleDirection");this.layoutMinorTicks(e,t,i)},setMajorTicks:function(e){this.isComponentInErrorState=this._isTooManyTicksPresent(this.majorTicks),!1===this.isComponentInErrorState&&(this.majorTicks=e,this._setMajorTicksAndLabels(e))},setMajorTickLabels:function(e){this.majorTickLabels=e,this._setMajorTicksAndLabels(this.majorTicks)},setMajorTicksAndLabels:function(e,t){this.majorTicks=e,this.majorTickLabels=t,this._setMajorTicksAndLabels(this.majorTicks)},getTickLabelTrackLength:function(e){return 2*Math.PI*(this.labelRadius*this.scalingFactor-e/2)*this.angularSpan/360},getMinorTickTrackLengthRatio:function(){return 1.25},alignLabels:function(){var e=this.WidgetData.getProperty("Limits"),t=this.WidgetData.getProperty("ScaleDirection")||"clockwise";if(this._isComponentInErrorState(this.majorTicks)){var i=this.getLabelsAndAngles().positions;this._drawErrorStateTicksAndLabels(this.majorTicks,this.majorTickLabels,i)}else this._repositionLabels(e,this.majorTicks,this.majorTickLabels,t)},_setMajorTicksAndLabels:function(e){this.createAndCleanUpLabelDiv(),this._removeMajorTicks();var t=this.getLabelsAndAngles(),i=t.positions;this._isComponentInErrorState(e)?this._drawErrorStateTicksAndLabels(t.ticks,t.labels,i):0!==t.ticks.length&&(this.drawTickLines(t.ticks,i,"Major_Ticks"),this._drawGaugeTickLabels(t.labels,i,t.ticks))},_drawErrorStateTicksAndLabels:function(e,t,i){var n=[e[0],e[e.length-1]],o=[t[0],t[t.length-1]],r=[i[0],i[i.length-1]];this.drawTickLines(n,r,"Major_Ticks"),this._drawGaugeTickLabels(o,r,n)},_drawGaugeTickLabels:function(e,t,i){this.positionLabels(e,t,i)},updateComponentSize:function(e,t,i,n){this.setSVGSize(t[0],t[1])},handleInnerSizeSet:function(e){this.inherited(arguments),this.updateOuterPositionForNoMarginsComponent(e)},_repositionLabels:function(e,t,i,n){var o=this.getLabelsAndAngles();this._drawGaugeTickLabels(o.labels,o.positions,o.ticks)},toColorString:function(e){if("string"==typeof e&&(console.log("Warning: Value for Scale Color of Gauge is expected to be a Number in range [0,1]. A String [0-255] was passed in. This functionality will be removed in the future. You should update anyone who calls setProperties on this gauge to use [0,1] doubles to represent color"),e=parseFloat(e)/255),void 0===e||e>1||e<0)throw new Error("Assertion: expected color to be between [0,1]");var t=Math.round(255*e).toString(16);return 1===t.length&&(t="0"+t),t},setScaleColors:function(e,t,i,n){var r=this.constrainScaleColorLimitsToScaleLimits(e,i,t);t=r.scaleColors,i=r.scaleColorLimits;var a=this.SVGDocument.getElementById("Scale_Color");o.removeChildNodes(a);for(var s=0;s<i.length;s++){var l=this.computeTickPositions(e,i[s],n),c={},d=this.centerX-this.scaleColorRadius*Math.cos(h.toRadians(l[0])),u=this.centerY-this.scaleColorRadius*Math.sin(h.toRadians(l[0])),p=this.centerX-this.scaleColorRadius*Math.cos(h.toRadians(l[1])),f=this.centerY-this.scaleColorRadius*Math.sin(h.toRadians(l[1])),g=(i[s][0]-e[0])/(e[1]-e[0])*this.angularSpan,m=(i[s][1]-e[0])/(e[1]-e[0])*this.angularSpan,_=0;Math.abs(m-g)>=180&&(_=1);var v=1;"counterclockwise"===n&&(v=0),c.d="M "+d+","+u+" A"+this.scaleColorRadius+","+this.scaleColorRadius+" 0 "+_+","+v+" "+p+","+f;var b="#"+this.toColorString(t[s][0])+this.toColorString(t[s][1])+this.toColorString(t[s][2]);c.stroke=b,c.fill="none",c["stroke-width"]=5,c.id="scaleColor_"+s,o.addNewElement(a,"path",c)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{doSetProperties:function(e){this._arePropertyNamesPresent(e,["Orientation"])?this.handleOrientationSet():this.inherited(arguments)},handleOrientationSet:function(){this._VCWidgetDOMNode.removeChild(this.SVGContainer),delete this.labelDiv,this._createSVGDOMContainer()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){return{getController:function(){return this._controller},cfDispatchEventToServer:function(e,t){this.dispatchEventToServer(e,t)},dispatchEventToServer:function(t,i){i||(i={});var n=e.clone(i);n.Name=t,this.dispatchEvent("peerEvent",this,n)},isHGTopNode:function(){return!this.getParent().isHGNode},isHGChildNode:function(){return this.getParent()&&this.getParent().isHGNode},isHGNode:!0}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(734)],o=i.dj.d(n,(function(e,t){return e([t],{fillCell:function(e){return this.setOuterSize([e[0],e[1]]),{innerSize:e,outerSize:e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(5956)],o=i.dj.d(n,(function(e,t,i){return e(null,{_Tooltip:function(e){this.widget&&void 0===this.widget.usesMWTooltip&&(this._mixinMWTooltipModule(),this.widget.usesMWTooltip=!1),this.inherited(arguments)},_mixinMWTooltipModule:function(){var e=new i;this.widget.getNewLinePlaceHolder=e.getNewLinePlaceHolder,this.widget.editTooltipText=e.editTooltipText,this.widget.createTooltip=e.createTooltip,this.widget.isMWTooltipMixin=e.isMWTooltipMixin}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{isPlainObjectSerializable:function(){return!0},toPlainObject:function(){return{}},varToPlainObject:function(e){return e&&e.isPlainObjectSerializable&&e.isPlainObjectSerializable()?e.toPlainObject():e},arrayToPlainObject:function(e){for(var t=new Array(e.length),i=0;i<e.length;i++)t[i]=this.varToPlainObject(e[i]);return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(964),i(966),i(5990)],o=i.dj.d(n,(function(e,t,i,n){var o=e([],{constructor:function(e,t,i,n,o){this._gl=e,e.getExtension("WEBGL_depth_texture"),this._numTransparentLayers=t,this._colorTextureResourceFactory=i,this._depthTextureResourceFactory=n,this._versionStrategy=o},setNumLayers:function(e){this._numTransparentLayers=e},updateResources:function(e,t){if(!o.canRunDepthPeeling())throw new Error("updateResource should only be called if depth texture extension is available");this._initFBO(),this._prevWidth&&this._prevHeight&&e===this._prevWidth&&t===this._prevHeight&&this._prevNumLayers===this._numTransparentLayers||(this._destroyTextures(),this._initTextures(this._numTransparentLayers,e,t),this._prevWidth=e,this._prevHeight=t,this._prevNumLayers=this._numTransparentLayers),this._composeTexturesCmd||(this._composeTexturesCmd=new n)},bindFBO:function(e,t){var i=this._gl;i.bindFramebuffer(i.FRAMEBUFFER,this._frameBuffer),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,e,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,t,0)},unbindFBO:function(){var e=this._gl;e.bindFramebuffer(e.FRAMEBUFFER,this._prevFBO)},bindTexture:function(e){var t=this._gl;t.activeTexture(this._textureNameToIndex[e.name]),t.bindTexture(t.TEXTURE_2D,e.texture)},getComposeTexturesCmd:function(){return this._composeTexturesCmd},getOpaqueColorTexture:function(){return this._colorTextureResourceFactory.getOpaqueColorTexture()},getTransparentColorTexture:function(e){if(e>=this._numTransparentLayers)throw new Error("currentLayer index can't be greater than total number of layers supported");return this._colorTextureResourceFactory.getTransparentColorTexture(e)},getOpaqueDepthTexture:function(){return this._depthTextureResourceFactory.getOpaqueDepthTexture()},getTransparentDepthTexture:function(e){if(e>=this._numTransparentLayers)throw new Error("currentLayer index can't be greater than total number of layers supported");return this._depthTextureResourceFactory.getTransparentDepthTexture(e)},getColorTexturesAlongWithUnit:function(){var e=[];e.push({textureUnit:this._textureNameToIndex[this.getOpaqueColorTexture().name],texture:this._colorTextureResourceFactory.getOpaqueColorTexture().texture});for(let i=this._numTransparentLayers-1;i>=0;i--){var t=this.getTransparentColorTexture(i);e.push({textureUnit:this._textureNameToIndex[t.name],texture:t.texture})}return e},getSamplerIndex:function(e){var t=this._gl;return this._textureNameToIndex[e.name]-t.TEXTURE0},_initTextures:function(e,t,i){var n=this._gl;this._textureNameToIndex={};var o={};o.index=n.TEXTURE1,this._depthTextureResourceFactory.init(this._textureNameToIndex,o,e,t,i),this._colorTextureResourceFactory.init(this._textureNameToIndex,o,e,t,i),this._currentTextureIndex=o.index},_initFBO:function(){if(!this._frameBuffer){var e=this._gl;this._prevFBO=e.getParameter(e.FRAMEBUFFER_BINDING),this._frameBuffer=e.createFramebuffer()}},_destroyTextures:function(){this._depthTextureResourceFactory.destroy(),this._colorTextureResourceFactory.destroy(),this._tailColorTexture&&(this._gl.deleteTexture(this._tailColorTexture),this._gl.deleteTexture(this._tailDepthTexture))},tailBlendingColorTexture:function(e,t){return this._tailColorTexture||(this._tailColorTexture=i.createTexture(this._gl,this._currentTextureIndex++,!1,e,t,this._versionStrategy,this._versionStrategy)),this._tailColorTexture},tailBlendingDepthTexture:function(e,t){return this._tailDepthTexture||(this._tailDepthTexture=i.createTexture(this._gl,this._currentTextureIndex++,!0,e,t)),this._tailDepthTexture}});return o.canRunDepthPeeling=function(){return 1!==t.getSystemGLInfo().VersionNumber||t.getSystemGLInfo().hasExtension("WEBGL_depth_texture")},o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._shaderOptions=[]},addShaderOption:function(e){this._shaderOptions.push(e)},getUniqueIdentifier:function(){var e="shader_";return this._shaderOptions.slice().sort((function(e,t){return e<t?-1:1})).forEach((function(t){e=e+"_"+t})),e},getSourceProviderList:function(){return this._shaderOptions}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e,t,i,n){void 0===e?(this._x1=0,this._y1=0,this._x2=0,this._y2=0):(this._x1=e,this._y1=t,this._x2=e+i,this._y2=t+n)},getXMin:function(){return this._x1},getYMin:function(){return this._y1},getXMax:function(){return this._x2},getYMax:function(){return this._y2},setDimensions:function(e,t,i,n){void 0===e?(this._x1=0,this._y1=0,this._x2=0,this._y2=0):(this._x1=e,this._y1=t,this._x2=e+i,this._y2=t+n)},getRectangle:function(){return[this._x1,this._y1,this._x2-this._x1,this._y2-this._y1]},translate:function(e,t){this._x1-=e,this._y1-=t,this._x2-=e,this._y2-=t},contains:function(e,t){return this._x1<=e&&e<=this._x2&&this._y1<=t&&t<=this._y2},rotate:function(e){var t=Math.cos(e),i=Math.sin(e),n=this._x1*t-this._y1*i,o=this._x1*i+this._y1*t,r=this._x2*t-this._y1*i,a=this._x2*i+this._y1*t,s=this._x2*t-this._y2*i,l=this._x2*i+this._y2*t,c=this._x1*t-this._y2*i,d=this._x1*i+this._y2*t;this._x1=Math.min(n,r,s,c),this._x2=Math.max(n,r,s,c),this._y1=Math.min(o,a,l,d),this._y2=Math.max(o,a,l,d)},toString:function(){var e="[";return e+=this._x1,e+=", ",e+=this._y1,e+=", ",e+=this._x2,e+=", ",e+=this._y2,e+="]"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(457),i(375),i(325),i(329),i(406),i(458)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{convertVertexToScreenSpace:function(e,t,n){var r=new i(e[t],e[t+1],e[t+2],1);return o.convertPointToScreenSpace(r,n)},distanceBetween:function(e,t){var i=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(i*i+n*n)},computeStippleCoordinates_Line:function(e,t,i,n){for(var o=r.createFloat32Array(e),a=n?e-2:e,s=n?3:0,l=0;l<a-0;l+=2){var c=l,d=l+1,u=this.convertVertexToScreenSpace(t,3*c+s,i),h=this.convertVertexToScreenSpace(t,3*d+s,i),p=this.distanceBetween(h,u);o[c]=0,o[d]=p}return o},computeStippleCoordinates_LineStrip:function(e,t,i,n,o){var a=r.createFloat32Array(e),s=i.length-1;if(!1===o)for(let e=0;e<s;e++){let o=i[e]-1,r=i[e+1]-2,s=this.convertVertexToScreenSpace(t,3*o,n),l=0;(s[0]<0||s[1]<0)&&(l=-1*this.distanceBetween([0,0,0],s)),a[o]=l;for(let e=o+1;e<=r;e++){let i=this.convertVertexToScreenSpace(t,3*e,n);l+=this.distanceBetween(i,s),a[e]=l,s=i}}else{for(let e=0;e<s;e++){let o=6*(i[e]-1-e),r=6*(i[e+1]-2)-3*(2*e+1),s=this.convertVertexToScreenSpace(t,3*o+3,n),l=0;(s[0]<0||s[1]<0)&&(l=-1*this.distanceBetween([0,0,0],s)),a[o]=l,a[o+1]=l,a[o+2]=l;for(let e=o+3;e<=r;e+=6){let i=this.convertVertexToScreenSpace(t,3*e+3,n);l+=this.distanceBetween(i,s),a[e]=l,a[e+1]=l,a[e+2]=l,e!==r&&(a[e+3]=l,a[e+4]=l,a[e+5]=l),s=i}}var l=[3,1,4,2],c=Math.min.apply(null,l),d=r.createFloat32Array(l.length),u=Math.floor((e-2)/6);for(let e=0;e<u;e++){var h=6*e,p=0;for(let e=0;e<l.length;++e){var f=h+l[e];d[p++]=a[f]}a.set(d,h+c)}}return a},calculateStippleCoordinates:function(e,t,i,n,o){return void 0===i||0===i.length?this.computeStippleCoordinates_Line(e,t,n,o):this.computeStippleCoordinates_LineStrip(e,t,i,n,o)},makeLineStipple:function(t,i,o){var r=2*o,a=0,s=0,l=0,c=0;t===n.LineStyle.solid?(a=l=4*o,s=c=0):t===n.LineStyle.dashed?i<r?(a=l=10*o,s=c=6*o):a=l=s=c=4*i:t===n.LineStyle.dotted?i<r?(a=l=1*o,s=c=3*o):a=l=s=c=i:t===n.LineStyle.dashdotted?i<r?(a=8*o,l=2*o,s=c=3*o):(a=4*i,l=2*i,s=c=i):t===n.LineStyle.none&&(a=l=0,s=c=4*o);var d=[a,s,l,c];return d=e.map(d,Math.round)},convertLineLoopsToLineStrip:function(e){if(void 0===e.stripData||e.stripData.length<2)return e;var t=e.stripData,i=[1],o=e.vertexData,a=[],s=e.colorData,l=[],c=!1,d=4;e.colorType===n.ColorType.truecolor||e.colorType===n.ColorType.truecoloralpha?e.colorBinding===n.Binding.object?(c=!1,l=s):(c=!0,d=4):e.colorType===n.ColorType.texturemapped?(c=!0,d=2):e.colorType===n.ColorType.colormapped&&(c=!0,d=1);for(let e=1;e<t.length;e++){var u=t[e-1]-1,h=t[e]-2;for(let e=u;e<=h;e++)if(a.push(o[3*e]),a.push(o[3*e+1]),a.push(o[3*e+2]),c)for(let t=0;t<d;t++)l.push(s[d*e+t]);if(a.push(o[3*u]),a.push(o[3*u+1]),a.push(o[3*u+2]),c)for(let e=0;e<d;e++)l.push(s[d*u+e]);i.push(i[e-1]+(t[e]-t[e-1])+1)}return e.vertexData=r.createFloat32Array(a),e.colorData=r.createFloat32Array(l),e.stripData=r.createFloat32Array(i),e.isLineLoop=!1,e},_pointToLineSegmentDistance:function(e,i,n,o){var r=null,a=new t(i[3*n],i[3*n+1],i[3*n+2]),s=new t(i[3*o],i[3*o+1],i[3*o+2]),l=a.getX(),c=a.getY(),d=a.getZ(),u=s.getX(),h=s.getY(),p=s.getZ(),f=((u-l)*(e.getX()-l)+(h-c)*(e.getY()-c)+(p-d)*(e.getZ()-d))/(Math.pow(u-l,2)+Math.pow(h-c,2)+Math.pow(p-d,2));f>=0&&f<=1&&(r=new t(l+f*(u-l),c+f*(h-c),d+f*(p-d)).distanceSquared(e));return r},_getNearestLineSegmentIndex:function(e,t){var i,n,o=[],r=Number.MAX_VALUE,s="LineLoop"===t.type,l=a.convertArray(t.stripdata),c=a.convertArray(t.vertexdata),d=c.length/3;if(!l.length>0){i=Math.floor(d/2);for(let t=0,a=0;t<i;t++){o[t]=[],o[t].startIndex=a,o[t].endIndex=a+1;let i=this._pointToLineSegmentDistance(e,c,o[t].startIndex,o[t].endIndex);null!==i&&i<r&&(n=o[t].startIndex,r=i),a+=2}}else{var u=l.length-1;for(let t=0,i=0;t<u;t++){var h=l[t]-1,p=l[t+1]-1;for(let t=h;t<p-1;t++){o[i]=[],o[i].startIndex=t,o[i].endIndex=t+1;let a=this._pointToLineSegmentDistance(e,c,o[i].startIndex,o[i].endIndex);null!==a&&a<r&&(n=o[i].startIndex,r=a),i+=1}if(s){o[i]=[],o[i].startIndex=o[i-1].endIndex,o[i].endIndex=o[h].startIndex;let t=this._pointToLineSegmentDistance(e,c,o[i].startIndex,o[i].endIndex);null!==t&&t<r&&(n=o[i].startIndex,r=t),i+=1}}}return n},getNearestLineSegmentPoints:function(e,t){var i=a.convertArray(t.vertexdata),n=this._getNearestLineSegmentIndex(e,t);if(void 0!==n){for(var o=new Float32Array(6),r=n+1,s=n,l=0;s<=r;s++,l+=3)o[l]=i[3*s],o[l+1]=i[3*s+1],o[l+2]=i[3*s+2];return o}}}}),e,t),e.exports=o},function(e,t,i){var n,o;function r(e,t){var i=e.lineWidth;return{hx:1/t.width,hy:1/t.height,hLWX:i/t.width,hLWY:i/t.height}}function a(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t}function s(e,t,i,n){for(var o=e.length/2,r=0;r<o;r++){var a=t([e[2*r],e[2*r+1]]);a[0]=a[0]*i,a[1]=a[1]*n,e[2*r]=a[0],e[2*r+1]=a[1]}return e}function l(e){if(0===e)return function(e){return e};var t=e*(Math.PI/180),i=[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]];return function(e){return[i[0][0]*e[0]+i[0][1]*e[1],i[1][0]*e[0]+i[1][1]*e[1]]}}n=[i(325),i(329),i(406)],o=i.dj.d(n,(function(e,t,i){return{isEdgeMarker:function(t){return t!==e.MarkerStyle.point&&!this.isFaceMarker(t)},isFaceMarker:function(t){switch(t){case e.MarkerStyle.circle:case e.MarkerStyle.square:case e.MarkerStyle.pyramid:case e.MarkerStyle.triangle:case e.MarkerStyle.left:case e.MarkerStyle.right:case e.MarkerStyle.diamond:case e.MarkerStyle.pentagram:case e.MarkerStyle.hexagram:return!0;default:return!1}},makeShape:function(t,i,n,o,r,a){var s=null;switch(i.style){case e.MarkerStyle.plus:s=this.makePlusShape(t,i,n,r);break;case e.MarkerStyle.vbar:s=this.makeVBarShape(t,i,n,r);break;case e.MarkerStyle.hbar:s=this.makeHBarShape(t,i,n,r);break;case e.MarkerStyle.point:s=this.makePointShape(t,i,n,o,r);break;case e.MarkerStyle.circle:s=this.makeCircleShape(t,i,n,o,a,r);break;case e.MarkerStyle.x:s=this.makeXShape(t,i,n,r);break;case e.MarkerStyle.asterisk:s=this.makeAsteriskShape(t,i,n,r);break;case e.MarkerStyle.square:s=this.makeSquareShape(t,i,n,a,r);break;case e.MarkerStyle.pyramid:s=this.makePyramidShape(t,i,n,a,r);break;case e.MarkerStyle.triangle:s=this.makeTriangleShape(t,i,n,a,r);break;case e.MarkerStyle.left:s=this.makeLeftShape(t,i,n,a,r);break;case e.MarkerStyle.right:s=this.makeRightShape(t,i,n,a,r);break;case e.MarkerStyle.diamond:s=this.makeDiamondShape(t,i,n,a,r);break;case e.MarkerStyle.pentagram:s=this.makePentagramShape(t,i,n,a,r);break;case e.MarkerStyle.hexagram:s=this.makeHexagramShape(t,i,n,a,r);break;default:s={drawFace:!1,drawEdge:!1}}return s},makeGeneralCrossShape:function(e,t,n,o,a){var l={};l.primType=e.TRIANGLE_STRIP,l.nVerts=0;var c=r(t,n),d=[],u=[],h=[];if(o){l.nVerts=10,u=[0,1,0,-1,0,1,0,-1,0,-1,1,0,1,0,-1,0,1,0,-1,0],d=s(d=[-1,0,-1,0,1,0,1,0,1,0,0,-1,0,-1,0,-1,0,1,0,1],a,c.hx,c.hy),u=s(u,a,c.hLWX,c.hLWY);for(var p=0;p<l.nVerts;p++)h.push(!1)}return l.coord2DData=i.createFloat32Array(d),l.coord2DOffsetData=u,l.faceColorIndicatorData=h,l},makePlusShape:function(e,t,i,n){var o=l(0);return this.makeGeneralCrossShape(e,t,i,n,o)},makeXShape:function(e,t,i,n){var o=l(45);return this.makeGeneralCrossShape(e,t,i,n,o)},makeGeneralBarShape:function(e,t,n,o,a){var l={};l.primType=e.TRIANGLE_STRIP,l.nVerts=0;var c=r(t,n),d=[],u=[],h=[];if(o){l.nVerts=4,u=[0,1,0,-1,0,1,0,-1],d=s(d=[-1,0,-1,0,1,0,1,0],a,c.hx,c.hy),u=s(u,a,c.hLWX,c.hLWY);for(var p=0;p<l.nVerts;p++)h.push(!1)}return l.coord2DData=i.createFloat32Array(d),l.coord2DOffsetData=u,l.faceColorIndicatorData=h,l},makeVBarShape:function(e,t,i,n){var o=l(90);return this.makeGeneralBarShape(e,t,i,n,o)},makeHBarShape:function(e,t,i,n){var o=l(0);return this.makeGeneralBarShape(e,t,i,n,o)},makePointShape:function(e,n,o,s,l){var c={};c.primType=e.TRIANGLE_FAN,c.nVerts=0;var d=t.getNumCircleSegments(s,.1);d+=1;var u=2*Math.PI/d,h=0,p=[],f=[],g=[];if(l){var m=r(n,o),_=new Array(2*(d+1));_[0]=0,_[1]=0;for(var v=2,b=0;b<2*Math.PI;b+=u){var y=m.hx*Math.cos(b),C=m.hy*Math.sin(b);_[v++]=y,_[v++]=C}_[v++]=_[2],_[v++]=_[3],h=_.length/2,p=i.createFloat32Array(_),f=a(_.length);for(let e=0;e<h;e++)g.push(!1);c.nVerts=h,c.coord2DData=p,c.coord2DOffsetData=f,c.faceColorIndicatorData=g}return c},makeCircleShape:function(e,n,o,s,l,c){var d={},u=r(n,o);d.primType=e.TRIANGLE_STRIP,d.nVerts=0;var h=[],p=[],f=[],g=[],m=[],_=[],v=[],b=0,y=0,C=t.getNumCircleSegments(s,.1);C+=1;var T=2*Math.PI/C;if(l){var E=new Array(2*C*2);let e=0,t=0,i=0;for(var S=0;S<2*Math.PI;S+=T){let n=u.hx*Math.cos(S),o=u.hy*Math.sin(S);E[e++]=t,E[e++]=i,E[e++]=n,E[e++]=o}E[e++]=E[0],E[e++]=E[1],E[e++]=E[2],E[e++]=E[3],b=E.length/2,h=E,p=a(E.length);for(let e=0;e<b;e++)v.push(!0)}if(c){var w=new Array(2*C*2),I=new Array(2*C*2);let e=0,t=0;for(S=0;S<2*Math.PI;S+=T){let i=u.hx*Math.cos(S),n=u.hy*Math.sin(S),o=u.hx*Math.cos(S),r=u.hy*Math.sin(S);var A=-u.hLWX*Math.cos(S),x=-u.hLWY*Math.sin(S),N=u.hLWX*Math.cos(S),L=u.hLWY*Math.sin(S);w[e++]=i,w[e++]=n,w[e++]=o,w[e++]=r,I[t++]=A,I[t++]=x,I[t++]=N,I[t++]=L}w[e++]=w[0],w[e++]=w[1],w[e++]=w[2],w[e++]=w[3],I[t++]=I[0],I[t++]=I[1],I[t++]=I[2],I[t++]=I[3],y=w.length/2,f=w,g=I;for(let e=0;e<y;e++)v.push(!1)}return d.nVerts=b+y,h.forEach((function(e){m.push(e)})),f.forEach((function(e){m.push(e)})),p.forEach((function(e){_.push(e)})),g.forEach((function(e){_.push(e)})),d.coord2DData=i.createFloat32Array(m),d.coord2DOffsetData=_,d.faceColorIndicatorData=v,d},makeAsteriskShape:function(e,t,n,o){var a={};a.primType=e.TRIANGLE_STRIP,a.nVerts=0;var s=r(t,n),l=[],c=[],d=[];if(o){a.nVerts=22;var u=.7071*s.hx,h=.7071*s.hy,p=.7071*s.hLWX,f=.7071*s.hLWY;l=[-s.hx,0,-s.hx,0,s.hx,0,s.hx,0,s.hx,0,0,-s.hy,0,-s.hy,0,-s.hy,0,s.hy,0,s.hy,0,s.hy,-u,-h,-u,-h,-u,-h,u,h,u,h,u,h,-u,h,-u,h,-u,h,u,-h,u,-h],c=[0,s.hLWY,0,-s.hLWY,0,s.hLWY,0,-s.hLWY,0,-s.hLWY,-s.hLWX,0,-s.hLWX,0,s.hLWX,0,-s.hLWX,0,s.hLWX,0,s.hLWX,0,-p,f,-p,f,p,-f,-p,f,p,-f,p,-f,-p,-f,-p,-f,p,f,-p,-f,p,f];for(var g=0;g<a.nVerts;g++)d.push(!1)}return a.coord2DData=i.createFloat32Array(l),a.coord2DOffsetData=c,a.faceColorIndicatorData=d,a},makeGeneralSquareShape:function(e,t,n,o,l,c,d){var u={},h=r(t,n),p=.78*h.hx,f=.78*h.hy,g=.7071*h.hLWX,m=.7071*h.hLWY;u.primType=e.TRIANGLE_STRIP,u.nVerts=0;var _=[],v=[],b=[],y=[],C=[],T=[],E=[],S=0,w=0;if(o){S+=4,_=[-d,-d,-1,1,1,-1,d,d],v=a(8),l&&(S++,_.push(d),_.push(d),v.push(0),v.push(0));for(let e=0;e<S;e++)E.push(!0)}if(l){w+=10,b=[-d,-d,-d,-d,-1,1,-1,1,d,d,d,d,1,-1,1,-1,-d,-d,-d,-d],y=[d,d,-d,-d,1,-1,-1,1,-d,-d,d,d,-1,1,1,-1,d,d,-d,-d],o&&(w++,b.unshift(b[0],b[1]),y.unshift(y[0],y[1]));for(let e=0;e<w;e++)E.push(!1)}return u.nVerts=S+w,_.forEach((function(e){C.push(e)})),b.forEach((function(e){C.push(e)})),v.forEach((function(e){T.push(e)})),y.forEach((function(e){T.push(e)})),C=s(C,c,p,f),T=s(T,c,g,m),u.coord2DData=i.createFloat32Array(C),u.coord2DOffsetData=T,u.faceColorIndicatorData=E,u},makeSquareShape:function(e,t,i,n,o){var r=l(0);return this.makeGeneralSquareShape(e,t,i,n,o,r,1)},makeDiamondShape:function(e,t,i,n,o){var r=l(45);return this.makeGeneralSquareShape(e,t,i,n,o,r,1.333)},makePyramidShape:function(e,t,i,n,o){return this.makeGeneralTriangleShape(e,t,i,n,o,(function(e){return e}))},makeTriangleShape:function(e,t,i,n,o){return this.makeGeneralTriangleShape(e,t,i,n,o,(function(e){return[-e[0],-e[1]]}))},makeLeftShape:function(e,t,i,n,o){return this.makeGeneralTriangleShape(e,t,i,n,o,(function(e){return[-e[1],e[0]]}))},makeRightShape:function(e,t,i,n,o){return this.makeGeneralTriangleShape(e,t,i,n,o,(function(e){return[e[1],-e[0]]}))},makeGeneralTriangleShape:function(e,t,n,o,l,c){var d={},u=r(t,n),h=[-1.154378,-.6665,1.154378,-.6665,0,1.333];h=s(h,c,u.hx,u.hy),d.primType=e.TRIANGLE_STRIP,d.nVerts=0;var p=[],f=[],g=0,m=[],_=[],v=0,b=[],y=[],C=[];if(o){g+=3,p=h,f=a(6),l&&(g++,p.push(h[0]),p.push(h[1]),f.push(0),f.push(0));for(let e=0;e<g;e++)C.push(!0)}if(l){v+=8,m=[h[0],h[1],h[0],h[1],h[2],h[3],h[2],h[3],h[4],h[5],h[4],h[5],h[0],h[1],h[0],h[1]];var T=Math.sqrt(3)/2/.5;_=s(_=[T,1,-T,-1,-T,1,T,-1,0,-2,0,2,T,1,-T,-1],c,u.hLWX,u.hLWY),o&&(v++,m.unshift(m[0],m[1]),_.unshift(_[0],_[1]));for(let e=0;e<v;e++)C.push(!1)}return p.forEach((function(e){b.push(e)})),m.forEach((function(e){b.push(e)})),f.forEach((function(e){y.push(e)})),_.forEach((function(e){y.push(e)})),d.nVerts=g+v,d.coord2DData=i.createFloat32Array(b),d.coord2DOffsetData=y,d.faceColorIndicatorData=C,d},makePentagramShape:function(e,t,n,o,c){var d={},u=r(t,n);d.primType=e.TRIANGLE_STRIP,d.nVerts=0;var h=[],p=[],f=0,g=[],m=[],_=0,v=[],b=[],y=[],C=2*Math.PI/5,T=C/2,E=Math.cos(C)/Math.cos(T),S=1/Math.cos(C),w=1/Math.cos(T);if(o){h=[0,0,Math.sin(0),Math.cos(0),Math.sin(T)*E,Math.cos(T)*E,Math.sin(T)*E,Math.cos(T)*E,Math.sin(C),Math.cos(C),0,0,Math.sin(C+T)*E,Math.cos(C+T)*E,Math.sin(2*C),Math.cos(2*C),Math.sin(2*C),Math.cos(2*C),Math.sin(2*C+T)*E,Math.cos(2*C+T)*E,0,0,Math.sin(3*C),Math.cos(3*C),Math.sin(3*C+T)*E,Math.cos(3*C+T)*E,Math.sin(3*C+T)*E,Math.cos(3*C+T)*E,Math.sin(4*C),Math.cos(4*C),0,0,Math.sin(4*C+T)*E,Math.cos(4*C+T)*E,Math.sin(0),Math.cos(0)],c&&(h.push(Math.sin(0)),h.push(Math.cos(0))),f=h.length/2,p=a((h=s(h,l(0),u.hx,u.hy)).length);for(let e=0;e<f;e++)y.push(!0)}if(c){var I=-S,A=S,x=-w,N=w,L=[],D=[],M=[];for(let e=0;e<5;e++){var P=C*e,O=C*e+T;L.push(Math.sin(P),Math.cos(P),Math.sin(P),Math.cos(P)),D.push(1,1,1,1),M.push(I,I,A,A),L.push(Math.sin(O),Math.cos(O),Math.sin(O),Math.cos(O)),D.push(E,E,E,E),M.push(x,x,N,N)}L.push(Math.sin(0),Math.cos(0),Math.sin(0),Math.cos(0)),D.push(1,1,1,1),M.push(I,I,A,A),L.forEach((function(e,t){g.push(D[t]*e)})),M.forEach((function(e,t){m.push(L[t]*e)}));var R=l(0);g=s(g,R,u.hx,u.hy),m=s(m,R,u.hLWX,u.hLWY),o&&(g.unshift(g[0],g[1]),m.unshift(m[0],m[1])),_=g.length/2;for(let e=0;e<_;e++)y.push(!1)}return h.forEach((function(e){v.push(e)})),g.forEach((function(e){v.push(e)})),p.forEach((function(e){b.push(e)})),m.forEach((function(e){b.push(e)})),d.nVerts=f+_,d.coord2DData=i.createFloat32Array(v),d.coord2DOffsetData=b,d.faceColorIndicatorData=y,d},makeHexagramShape:function(e,t,n,o,c){var d={},u=r(t,n);d.primType=e.TRIANGLE_STRIP,d.nVerts=0;var h=[],p=[],f=0,g=[],m=[],_=0,v=[],b=[],y=[],C=2*Math.PI/6,T=C/2,E=Math.cos(C)/Math.cos(T),S=1/Math.cos(C),w=1/Math.cos(T);if(o){h=[Math.sin(0),Math.cos(0),Math.sin(2*C),Math.cos(2*C),Math.sin(4*C),Math.cos(4*C),Math.sin(4*C),Math.cos(4*C),Math.sin(C),Math.cos(C),Math.sin(C),Math.cos(C),Math.sin(3*C),Math.cos(3*C),Math.sin(5*C),Math.cos(5*C)],c&&(h.push(Math.sin(5*C)),h.push(Math.cos(5*C))),f=h.length/2,p=a((h=s(h,l(0),u.hx,u.hy)).length);for(var I=0;I<f;I++)y.push(!0)}if(c){var A=-S,x=S,N=-w,L=w,D=[],M=[],P=[];for(let e=0;e<6;e++){var O=C*e,R=C*e+T;D.push(Math.sin(O),Math.cos(O),Math.sin(O),Math.cos(O)),M.push(1,1,1,1),P.push(A,A,x,x),D.push(Math.sin(R),Math.cos(R),Math.sin(R),Math.cos(R)),M.push(E,E,E,E),P.push(N,N,L,L)}D.push(Math.sin(0),Math.cos(0),Math.sin(0),Math.cos(0)),M.push(1,1,1,1),P.push(A,A,x,x),D.forEach((function(e,t){g.push(M[t]*e)})),P.forEach((function(e,t){m.push(D[t]*e)}));var k=l(0);g=s(g,k,u.hx,u.hy),m=s(m,k,u.hLWX,u.hLWY),o&&(g.unshift(g[0],g[1]),m.unshift(m[0],m[1])),_=g.length/2;for(let e=0;e<_;e++)y.push(!1)}return h.forEach((function(e){v.push(e)})),g.forEach((function(e){v.push(e)})),p.forEach((function(e){b.push(e)})),m.forEach((function(e){b.push(e)})),d.nVerts=f+_,d.coord2DData=i.createFloat32Array(v),d.coord2DOffsetData=b,d.faceColorIndicatorData=y,d},computeMarkerLOD:function(i,n){var o=1;if(n.style===e.MarkerStyle.circle||n.style===e.MarkerStyle.point)if(n.sizeBinding===e.Binding.primitive){for(var r=0,a=0;a<n.vertexData.length/3;a+=1)n.size[a]>r&&(r=n.size[a]);o=t.convertPoints2DevicePixels(i,r)}else o=t.convertPoints2DevicePixels(i,n.size[0]);return o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(631),i(325),i(406),i(365),i(375)],o=i.dj.d(n,(function(e,t,i,n,o){return{transformLightPosToWorld:function(e,i,r,a){var s=new n,l=new o(i[0],i[1],i[2],1),c=a.times(r);e===t.LightStyle.infinite?(l.setW(0),s=c.createInverseTranspose()):s.setElements(c.getElements());var d=s.transform(l);return[d.getX(),d.getY(),d.getZ()]},storeMaterialProperties:function(e){return{ambientStrength:e.ambientStrength,diffuseStrength:e.diffuseStrength,specularStrength:e.specularStrength,specularColorReflectance:e.specularColorReflectance,specularExponent:e.specularExponent}},addMaterialProperties:function(e,t){e.materialProps=this.storeMaterialProperties(t)},processNormalsData:function(e,n,o,r){var a=[];if(n===t.Binding.primitive){var s=o;a=i.createFloat32Array(3*e);var l=0,c=0,d=1;r===t.PrimitiveType.line?d=2:r===t.PrimitiveType.triangle&&(d=3);for(var u=e/d,h=0;h<u;h++)for(var p=s[c++],f=s[c++],g=s[c++],m=0;m<d;m++)a[l++]=p,a[l++]=f,a[l++]=g}else n===t.Binding.vertex&&(a=o);return a},addUniformLocations:function(t){var i={};i.modelViewMatUniformLoc=t.getUniformLocation(e.ModelViewMatrix.id),i.normalMatrixUniformLoc=t.getUniformLocation(e.NormalMatrix.id),i.eyePosUniformLoc=t.getUniformLocation(e.EyePos.id),i.materialAmbientStrengthUniformLoc=t.getUniformLocation(e.Material_AmbientStrength.id),i.materialDiffuseStrengthUniformLoc=t.getUniformLocation(e.Material_DiffuseStrength.id),i.materialSpecularStrengthUniformLoc=t.getUniformLocation(e.Material_SpecularStrength.id),i.materialSpecularColorReflectanceUniformLoc=t.getUniformLocation(e.Material_SpecularColorReflectance.id),i.materialSpecularExponentUniformLoc=t.getUniformLocation(e.Material_SpecularExponent.id),i.lightsCountUniformLoc=t.getUniformLocation(e.LightCount.id),i.lightsUniformLocs=[];for(var n=e.Light0_Style.id,o=e.Light0_Color.id,r=e.Light0_Position.id,a=0;a<8;a++)i.lightsUniformLocs[a]={styleUniformLoc:t.getUniformLocation(n+3*a),colorUniformLoc:t.getUniformLocation(o+3*a),positionUniformLoc:t.getUniformLocation(r+3*a)};return i.separateSpecularColorUniformLoc=t.getUniformLocation(e.SeparateSpecularColor.id),i.sceneAmbientLightColorUniformLoc=t.getUniformLocation(e.SceneAmbientLightColor.id),i},_determineEyePos:function(e){var t=new n;t.setElements(e.getElements()),t.invert();var i=new o(0,0,0,1),r=t.transform(i);return[r.getX(),r.getY(),r.getZ()]},_createNormalMatrix:function(e){var t=new n;t.setElements(e.getElements()),t.invert();var o=t.transpose().getElements(),r=o[0],a=o[4],s=o[8],l=o[1],c=o[5],d=o[9],u=o[2],h=o[6],p=o[10],f=i.createFloat32Array(9);return f[0]=r,f[1]=l,f[2]=u,f[3]=a,f[4]=c,f[5]=h,f[6]=s,f[7]=d,f[8]=p,f},loadDataToUniforms:function(e,t,i,n,o,r,a,s,l){var c=i.times(t),d=this._createNormalMatrix(c);e.uniformMatrix4fv(n.modelViewMatUniformLoc,!1,c.getAsFloat32Array()),e.uniformMatrix3fv(n.normalMatrixUniformLoc,!1,d);var u=this._determineEyePos(i);e.uniform3fv(n.eyePosUniformLoc,u),e.uniform1f(n.materialAmbientStrengthUniformLoc,o.ambientStrength),e.uniform1f(n.materialDiffuseStrengthUniformLoc,o.diffuseStrength),e.uniform1f(n.materialSpecularStrengthUniformLoc,o.specularStrength),e.uniform1f(n.materialSpecularColorReflectanceUniformLoc,o.specularColorReflectance),e.uniform1f(n.materialSpecularExponentUniformLoc,o.specularExponent),e.uniform1i(n.lightsCountUniformLoc,a.length);for(var h=0,p=0;p<r.length;p++){var f=r[p];if(a.indexOf(f.id)>-1){let t=n.lightsUniformLocs[h].styleUniformLoc,i=n.lightsUniformLocs[h].colorUniformLoc,o=n.lightsUniformLocs[h].positionUniformLoc;e.uniform1i(t,f.style),e.uniform3fv(i,f.color),e.uniform3fv(o,f.position),h++}}e.uniform1i(n.separateSpecularColorUniformLoc,l),e.uniform3fv(n.sceneAmbientLightColorUniformLoc,s)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._name="AlignVertexCentersShaderSourceProvider",this._geometryAVC=e},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return"#ifndef UNIFORM_VIEWPORTSIZE \n#define UNIFORM_VIEWPORTSIZE \nuniform vec2 u_ViewportSize; \n#endif \n#ifndef UNIFORM_PLOTBOX \n#define UNIFORM_PLOTBOX \nuniform vec4 u_PlotBox; \n#endif \n#ifndef UNIFORM_PCENTER \n#define UNIFORM_PCENTER \nuniform vec2 u_AVCOffset; \n#endif \n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return"#ifndef DECLARE_AVCFUNCTIONS \n#define DECLARE_AVCFUNCTIONS \nfloat filterFcn(in float v, in float low, in float high) \n{ \n float threshold = 0.01; \n if (abs(v - low) < threshold) { \n return low + 0.1; \n } \n else if (abs(v - high) < threshold) { \n return high - 0.1; \n } \n else { \n return v; \n } \n} \n \nvec4 computePixelLocation(in vec4 point, in vec2 screensize, vec4 plotBox, vec2 AVCOffset) \n{ \n vec2 offset = vec2(0.5, 0.5); \n vec2 pts = point.xy/point.w; \n vec2 xyf = vec2((pts/2.0+.5)*screensize); \n float x = filterFcn(xyf.x, plotBox.x, plotBox.z); \n float y = filterFcn(xyf.y, plotBox.y, plotBox.w); \n ivec2 xy = ivec2(int(x-0.0001), int(y-0.0001)); \n vec2 res = (vec2(xy) + offset + AVCOffset)*2.0/screensize-1.0; \n vec4 p = vec4(res*point.w, point.z, point.w); \n return p; \n} \n#endif // #ifndef DECLARE_AVCFUNCTIONS \n"},getVertexSourceCodeBlock:function(){return this._geometryAVC?" gl_Position = computePixelLocation(gl_Position, u_ViewportSize, u_PlotBox, u_AVCOffset); \n":" pos = computePixelLocation(pos, u_ViewportSize, u_PlotBox, u_AVCOffset); \n"},getVertexDeferredSourceCodeBlock:function(){return""},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.ViewportSize,e.PlotBox,e.AVCOffset]},getAttributeIDs:function(e){return[]},getStrAVCMasterFunc:function(e){return"computePixelLocation("+e+", u_ViewportSize, u_PlotBox, u_AVCOffset)"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(325),i(631),i(329),i(1518),i(1167),i(406),i(1520),i(2199)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=function(e,t,i,n,o,r){e.bindBuffer(e.ARRAY_BUFFER,t),e.enableVertexAttribArray(i),e.vertexAttribPointer(i,n,o,!1,0,r)},d=function(e,t,i){},u=function(e,t,i){void 0!==e&&(console.log("setupBuffer: location: "+e.getAttribID(t)),console.log(i))},h=function(e,t){},p=function(e,t){e._mwShader=t,console.log("Shader change"),e._mwDumpUniformsAndAttributes(t)},f=d,g=h,m=function(e,t,i,n){if(null!==t){var o=e.createBuffer();return f(n,t,i),e.bindBuffer(e.ARRAY_BUFFER,o),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW),o}return null},_=function(e,t){if(void 0===t.textureUnit)throw new Error("Texture unit must be defined");e.activeTexture(t.textureUnit),e.bindTexture(e.TEXTURE_2D,t.texture),e.uniform1i(t.textureSamplerLoc,t.textureUnit-e.TEXTURE0)},v=function(e,o,r,a){var s={};if(a){s.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,s.texture);var l=0,c=0,d=null;void 0!==a.image?(l=a.image.width,c=a.image.height,d=a.image):(l=a.dims[1],void 0===(c=a.dims[2])&&(c=1),d=new Uint8Array(a.CData));var u=1,h=1,p=l,f=c;n.isPOWOf2(l)&&n.isPOWOf2(c)||a.samplingFilter!==t.TextureSamplingFilterType.bilinear&&a.samplingFilter!==t.TextureSamplingFilterType.trilinear||(p=n.nextPOWOf2(l),f=n.nextPOWOf2(c),u=l/p,h=c/f,r=r.map((function(e,t,i){return t%2==0?e*u:e*h}))),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,p,f,0,e.RGBA,e.UNSIGNED_BYTE,null),void 0!==a.image?e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,d):e.texSubImage2D(e.TEXTURE_2D,0,0,0,l,c,e.RGBA,e.UNSIGNED_BYTE,d),function(e,i){i===t.TextureSamplingFilterType.bilinear||i===t.TextureSamplingFilterType.trilinear?(i===t.TextureSamplingFilterType.bilinear?e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST):i===t.TextureSamplingFilterType.trilinear&&e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.generateMipmap(e.TEXTURE_2D)):i===t.TextureSamplingFilterType.linear?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST))}(e,a.samplingFilter),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.bindTexture(e.TEXTURE_2D,null)}return s.texCoordLoc=o.getAttributeLocation(i.TexCoord.id),s.texCoordBuffer=m(e,s.texCoordLoc,r),s.textureSamplerLoc=o.getUniformLocation(i.Sampler2D.id),s.textureUnit=e.TEXTURE0,s},b=function(e,t,n,o){var r={};if(o){r.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,r.texture);var a=new Uint8Array(o.CData),s=o.dims[1];e.texImage2D(e.TEXTURE_2D,0,e.RGBA,s,1,0,e.RGBA,e.UNSIGNED_BYTE,a),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.bindTexture(e.TEXTURE_2D,null)}return r.texCoordLoc=t.getAttributeLocation(i.TexCoord.id),r.texCoordBuffer=m(e,r.texCoordLoc,n),r.textureSamplerLoc=t.getUniformLocation(i.Sampler2D.id),r.textureUnit=e.TEXTURE0,r};return e([],{constructor:function(){},setDebuggingMode:function(e,t){t?(e._mwUniform1i=e.uniform1i,e.uniform1i=function(e,t){var i=this._mwShader.getUniformID(e);console.log("gl.uniform1i: Location: "+i+" value: "+t),this._mwUniform1i(e,t)},e._mwUniform1f=e.uniform1f,e.uniform1f=function(e,t){var i=this._mwShader.getUniformID(e);console.log("gl.uniform1f: Location: "+i+" value: "+t),this._mwUniform1f(e,t)},e._mwUniform2f=e.uniform2f,e.uniform2f=function(e,t,i){var n=this._mwShader.getUniformID(e);console.log("gl.uniform2f: Location: "+n+" value: "+t+", "+i),this._mwUniform2f(e,t,i)},e._mwUniform3f=e.uniform3f,e.uniform3f=function(e,t,i,n){var o=this._mwShader.getUniformID(e);console.log("gl.uniform3f: Location: "+o+" value: "+t+", "+i+", "+n),this._mwUniform3f(e,t,i,n)},e._mwUniform4f=e.uniform4f,e.uniform4f=function(e,t,i,n,o){var r=this._mwShader.getUniformID(e);console.log("gl.uniform4f: Location: "+r+" value: "+t+", "+i+", "+n+", "+o),this._mwUniform4f(e,t,i,n,o)},e._mwUniform2fv=e.uniform2fv,e.uniform2fv=function(e,t){var i=this._mwShader.getUniformID(e);console.log("gl.uniform2fv: Location: "+i+" value: "+t),this._mwUniform2fv(e,t)},e._mwUniform3fv=e.uniform3fv,e.uniform3fv=function(e,t){var i=this._mwShader.getUniformID(e);console.log("gl.uniform3fv: Location: "+i+" value: "+t),this._mwUniform3fv(e,t)},e._mwUniform4fv=e.uniform4fv,e.uniform4fv=function(e,t){var i=this._mwShader.getUniformID(e);console.log("gl.uniform4fv: Location: "+i+" value: "+t),this._mwUniform4fv(e,t)},e._mwUniformMatrix4fv=e.uniformMatrix4fv,e.uniformMatrix4fv=function(e,t,i){var n=this._mwShader.getUniformID(e);-1===n&&console.log("Invalid loc?"),console.log("gl.uniformMatrix4fv: location: "+n+" transpose: "+t+" value: "+i),this._mwUniformMatrix4fv(e,t,i)},e._mwVertexAttribPointer=e.vertexAttribPointer,e.vertexAttribPointer=function(t,i,n,o,r,a){var s=this._mwShader.getAttribID(t);console.log("gl.vertexAttribPointer: location: "+s+", size: "+i+", type: "+n+", normalized: "+o+", stride: "+r+", offset: "+a),e._mwVertexAttribPointer(t,i,n,o,r,a)},e._mwVertexAttribDivisor=e.vertexAttribDivisor,e.vertexAttribDivisor=function(t,i){var n=this._mwShader.getAttribID(t);console.log("gl.vertexAttribDivisor: location: "+n+", value: "+i),e._mwVertexAttribDivisor(t,i)},e._mwDisableVertexAttribArray=e.disableVertexAttribArray,e.disableVertexAttribArray=function(t){var i=this._mwShader.getAttribID(t);console.log("gl.disableVertexArray: location: "+i),e._mwDisableVertexAttribArray(t)},e._mwDumpUniformsAndAttributes=function(t){for(var i=e.getProgramParameter(t._program,e.ACTIVE_ATTRIBUTES),n=0;n<i;++n){var o=e.getActiveAttrib(t._program,n);console.log(o)}var r=e.getProgramParameter(t._program,e.ACTIVE_UNIFORMS);for(n=0;n<r;++n){var a=e.getActiveUniform(t._program,n);console.log(a)}},f=u,g=p):void 0!==e._mwUniform1i&&(e.uniform1i=e._mwUniform1i,e._mwUniform1i=void 0,e.uniform1f=e._mwUniform1f,e._mwUniform1f=void 0,e.uniform2f=e._mwUniform2f,e._mwUniform2f=void 0,e.uniform3f=e._mwUniform3f,e._mwUniform3f=void 0,e.uniform4f=e._mwUniform4f,e._mwUniform4f=void 0,e.uniform2fv=e._mwUniform2fv,e._mwUniform2fv=void 0,e.uniform3fv=e._mwUniform3fv,e._mwUniform3fv=void 0,e.uniform4fv=e._mwUniform4fv,e._mwUniform4fv=void 0,e.uniformMatrix4fv=e._mwUniformMatrix4fv,e._mwUniformMatrix4fv=void 0,e.vertexAttribPointer=e._mwVertexAttribPointer,e._mwVertexAttribPointer=void 0,e.vertexAttribDivisor=e._mwVertexAttribDivisor,e._mwVertexAttribDivisor=void 0,e.disableVertexAttribArray=e._mwDisableVertexAttribArray,e._mwDisableVertexAttribArray=void 0,e._mwDumpUniformsAndAttributes=function(){},f=d,g=h)},ActivateShader:function(e){return{_shader:e,exec:function(e){this._shader.use(e),g(e,this._shader)}}},ApplyMatrices:function(e,t){return{_transforms:t,_mvpLoc:e.getUniformLocation(i.MVPMatrix.id),_mvpInvLoc:e.getUniformLocation(i.MVPInverseMatrix.id),exec:function(e){var t=this._transforms.getMVPTransform();if(e.uniformMatrix4fv(this._mvpLoc,!1,t.getAsFloat32Array()),void 0!==this._mvpInvLoc&&null!==this._mvpInvLoc){var i=this._transforms.getMVPInvTransform();e.uniformMatrix4fv(this._mvpInvLoc,!1,i.getAsFloat32Array())}}}},ViewportSize:function(e,t){return{_renderer:e,_viewportSizeLoc:t.getUniformLocation(i.ViewportSize.id),exec:function(e){var t=this._renderer.getViewport();e.uniform2fv(this._viewportSizeLoc,[t.width,t.height])}}},FillUniformsCB:function(e,t){return{_renderer:e,_shader:t,exec:function(e,t){this._renderer.fillUniformsCB&&this._renderer.fillUniformsCB(this._shader,e)}}},FloatUniform:function(e,t,i){return{_loc:e.getUniformLocation(t),_val:i,exec:function(e){e.uniform1f(this._loc,this._val)}}},IntUniform:function(e,t,i){return{_loc:e.getUniformLocation(t),_val:i,exec:function(e){e.uniform1i(this._loc,this._val)}}},GLDisable:function(e){return{_tag:e,exec:function(e){e.disable(this._tag)}}},Pick:function(e,t){return{_transforms:t,_pickLoc:e.getUniformLocation(i.Pick.id),_storeDepthLoc:e.getUniformLocation(i.StoreScreenSpaceDepth.id),_projMatLoc:e.getUniformLocation(i.ProjectionInverseMatrix.id),_projLoc:e.getUniformLocation(i.ProjectionMat.id),_pickColorLoc:e.getUniformLocation(i.PickColor.id),exec:function(e,t,i){if(i)if(i.isFindIntersectionPointEnabled()){e.uniform1i(this._pickLoc,0),e.uniform1i(this._storeDepthLoc,1);var o=this._transforms.getProjectionInvMatrix();e.uniformMatrix4fv(this._projMatLoc,!1,o.getAsFloat32Array());var r=this._transforms.getProjectionMatrix();e.uniformMatrix4fv(this._projLoc,!1,r.getAsFloat32Array())}else{var a=i.getCurrentPickColor();a=n.convertUint8ColorsToFloat([a[0],a[1],a[2],255]),e.uniform1i(this._pickLoc,1),e.uniform4fv(this._pickColorLoc,a),e.uniform1i(this._storeDepthLoc,0)}else e.uniform1i(this._pickLoc,0),e.uniform1i(this._storeDepthLoc,0)}}},Clip:function(e,i,n,o,r,a){return n.clipMode===t.ClipMode.scissor&&!0===i?this._ScissorClip(n):n.clipMode===t.ClipMode.planes&&!0===i?this._PlaneClip(n,r,a,o,!0):n.clipMode===t.ClipMode.polar&&!0===i?this._PolarClip(n,o):this._NoClip(e)},_ScissorClip:function(e){return{_clip:e,exec:function(e){var t=this._clip.scissorRectangle;e.enable(e.SCISSOR_TEST),e.scissor(t[0],t[1],t[2],t[3])}}},_PlaneClip:function(e,t,n,o,r){var s=[];return s.push(o.getUniformLocation(i.xMinClipPlane.id)),s.push(o.getUniformLocation(i.xMaxClipPlane.id)),s.push(o.getUniformLocation(i.yMinClipPlane.id)),s.push(o.getUniformLocation(i.yMaxClipPlane.id)),s.push(o.getUniformLocation(i.zMinClipPlane.id)),s.push(o.getUniformLocation(i.zMaxClipPlane.id)),{_renderer:n,_transforms:t,_clip:e,_is3D:r,_mvpInvLoc:r?o.getUniformLocation(i.MVPInverseMatrix.id):null,_MVMatLoc:r?o.getUniformLocation(i.ModelViewMatrix.id):null,_projMatLoc:r?o.getUniformLocation(i.ProjectionMat.id):null,_viewPortLoc:r?o.getUniformLocation(i.ViewportSize.id):null,_uniLocs:s,exec:function(e){var t;if(e.disable(e.SCISSOR_TEST),this._clip.clipPlanes.length>0)for(t=0;t<this._clip.clipPlanes.length;t+=1){var i=this._clip.clipPlanes[t];e.uniform4fv(this._uniLocs[t],a.createFloat32Array([i.getNormal().getX(),i.getNormal().getY(),i.getNormal().getZ(),i.getOffset()]))}else console.log("Error: clipPlanes.length <= 0");if(r){var n=this._transforms.getMVPInvTransform();e.uniformMatrix4fv(this._mvpInvLoc,!1,n.getAsFloat32Array());var o=this._transforms.getModelViewTransform();e.uniformMatrix4fv(this._MVMatLoc,!1,o.getAsFloat32Array());var s=this._transforms.getProjectionMatrix();e.uniformMatrix4fv(this._projMatLoc,!1,s.getAsFloat32Array());var l=this._renderer.getViewport();e.uniform2fv(this._viewPortLoc,[l.width,l.height])}}}},_PolarClip:function(e,t){return{_clip:e,_startThetaLoc:t.getUniformLocation(i.startTheta.id),_endThetaLoc:t.getUniformLocation(i.endTheta.id),_innerRadiusLoc:t.getUniformLocation(i.innerRadius.id),_outerRadiusLoc:t.getUniformLocation(i.outerRadius.id),_originLoc:t.getUniformLocation(i.polarOrigin.id),exec:function(e){e.uniform1f(this._startThetaLoc,this._clip.polarRegion.startTheta),e.uniform1f(this._endThetaLoc,this._clip.polarRegion.endTheta),e.uniform1f(this._innerRadiusLoc,this._clip.polarRegion.innerRadius),e.uniform1f(this._outerRadiusLoc,this._clip.polarRegion.outerRadius),e.uniform2fv(this._originLoc,this._clip.polarRegion.polarOrigin)}}},_NoClip:function(e){return this.GLDisable(e.SCISSOR_TEST)},AnchorPointClip:function(e,n,o,r,a,s,l){if(!0===n)if(!0===o){if(r.clipMode===t.ClipMode.scissor)return{_scissorRectLoc:a.getUniformLocation(i.ScissorRect.id),_clip:r,_renderer:l,exec:function(e,t){e.disable(e.SCISSOR_TEST);var i=this._clip.scissorRectangle;e.uniform4fv(this._scissorRectLoc,i);var n=this._renderer.getViewport(),o=[n.width,n.height];e.uniform2fv(t.viewportSizeLoc,o)}};if(r.clipMode===t.ClipMode.planes)return this._PlaneClip(r,s,l,a,!1);if(r.clipMode===t.ClipMode.polar)return this._PolarClip(r,a)}else{if(r.clipMode===t.ClipMode.scissor)return this._ScissorClip(r);if(r.clipMode===t.ClipMode.planes)return this._PlaneClip(r,s,l,a,!1);if(r.clipMode===t.ClipMode.polar)return this._PolarClip(r,a)}return this._NoClip(e)},AlignVertexCenters:function(e,n){var o=[0,0];return e.GPUVendor===t.GPUVendor.Intel&&e.platform===t.Platform.Windows&&(o=[-.5,-.5]),{_renderer:e,_AVCOffset:o,_viewportSizeLoc:n.getUniformLocation(i.ViewportSize.id),_plotBoxLoc:n.getUniformLocation(i.PlotBox.id),_AVCOffsetLoc:n.getUniformLocation(i.AVCOffset.id),exec:function(e){var t=this._renderer.getViewport(),i=this._renderer.plotBox,n={x0:i[0],y0:i[1],x1:i[2],y1:i[3]};e.uniform2f(this._viewportSizeLoc,t.width,t.height),e.uniform4f(this._plotBoxLoc,n.x0,n.y0,n.x1,n.y1),e.uniform2f(this._AVCOffsetLoc,this._AVCOffset[0],this._AVCOffset[1])}}},VertAttribData:function(e,t,i,n,o,r){var a=t.getAttributeLocation(i);return{_loc:a,_size:n,_type:o,_bffr:m(e,a,r,t),exec:function(e){c(e,this._bffr,this._loc,this._size,this._type,0)}}},VertAttribReset:function(e,t){return{_loc:e.getAttributeLocation(t),exec:function(e){e.disableVertexAttribArray(this._loc)}}},DynamicVertAttribData:function(e,t,i,n,o){return{_loc:e.getAttributeLocation(t),_size:i,_type:n,_dataPtr:o,exec:function(e,t){let i=m(e,this._loc,t.dataStore[this._dataPtr]);c(e,i,this._loc,this._size,this._type,0)}}},VertexData:function(e,t,n){return this.VertAttribData(e,t,i.Position.id,3,e.FLOAT,n)},VertexDataWideLine:function(e,t,n){var o=t.getAttributeLocation(i.PrevPos.id),r=t.getAttributeLocation(i.Position.id);return{_prevPosLoc:o,_posLoc:r,_nextPosLoc:t.getAttributeLocation(i.NextPos.id),_bffr:m(e,r,n,t),exec:function(e){c(e,this._bffr,this._prevPosLoc,3,e.FLOAT,0),c(e,this._bffr,this._posLoc,3,e.FLOAT,12),c(e,this._bffr,this._nextPosLoc,3,e.FLOAT,24)}}},VertexDataWideLineV2:function(e,t,n){var o=t.getAttributeLocation(i.PrevToPrevPos.id),r=t.getAttributeLocation(i.PrevPos.id),a=t.getAttributeLocation(i.Position.id);return{_prevPrevPosLoc:o,_prevPosLoc:r,_posLoc:a,_nextPosLoc:t.getAttributeLocation(i.NextPos.id),_nextNextPosLoc:t.getAttributeLocation(i.NextToNextPos.id),_bffr:m(e,a,n,t),exec:function(e){c(e,this._bffr,this._prevPrevPosLoc,3,e.FLOAT,0),c(e,this._bffr,this._prevPosLoc,3,e.FLOAT,12),c(e,this._bffr,this._posLoc,3,e.FLOAT,24),c(e,this._bffr,this._nextPosLoc,3,e.FLOAT,36),c(e,this._bffr,this._nextNextPosLoc,3,e.FLOAT,48)}}},ParallelAttribData:function(e,t,i,n,o,r,a){var s=t.getAttributeLocation(i);return{_loc:s,_bffr:m(e,s,a,t),_divisor:r,_numElements:n,_type:o,exec:function(e){c(e,this._bffr,this._loc,this._numElements,this._type,0),e.vertexAttribDivisor(this._loc,this._divisor)}}},ParallelAttribDataReset:function(e,t){return{_loc:e.getAttributeLocation(t),exec:function(e){e.vertexAttribDivisor(this._loc,0)}}},CustomCmd:function(e,t){return{_func:e,_args:t,exec:function(e,t,i){this._func(e,t,i,this._args)}}},ColorData:function(e,i,n,o,r,a){return n.colorType===t.ColorType.truecolor||n.colorType===t.ColorType.truecoloralpha?o===t.Binding.vertex?this._RGBColorDataPerVertex(e,i,r,a):this._RGBColorDataUniform(e,i,r,a):n.colorType===t.ColorType.texturemapped?this._ColorDataTexture(e,i,r,n,a):n.colorType===t.ColorType.colormapped?this._ColorDataColormapped(e,i,r,n,a):void 0},_RGBColorDataPerVertex:function(e,t,n,o){var r=t.getAttributeLocation(i.Color.id);return{_colorLoc:r,_colorBuffer:m(e,r,n),_alphaMultiplierLoc:t.getUniformLocation(i.AlphaMultiplier.id),_states:o,exec:function(e){c(e,this._colorBuffer,this._colorLoc,4,e.FLOAT,0),e.uniform1f(this._alphaMultiplierLoc,this._states.alphaMultiplier)}}},_RGBColorDataUniform:function(e,t,n,o){return{_colorLoc:t.getUniformLocation(i.Color.id),_colorData:n,_states:o,_alphaMultiplierLoc:t.getUniformLocation(i.AlphaMultiplier.id),exec:function(e){e.uniform4fv(this._colorLoc,this._colorData),e.uniform1f(this._alphaMultiplierLoc,this._states.alphaMultiplier)}}},_ColorDataTexture:function(e,t,n,o,r){return{tex:v(e,t,n,o.texture),name:"ColorDataTextureCmd",_states:r,_alphaMultiplierLoc:t.getUniformLocation(i.AlphaMultiplier.id),exec:function(e){c(e,this.tex.texCoordBuffer,this.tex.texCoordLoc,2,e.FLOAT,0),_(e,this.tex),e.uniform1f(this._alphaMultiplierLoc,this._states.alphaMultiplier)}}},_ColorDataColormapped:function(e,t,n,o,r){return{_tex:b(e,t,n,o.texture),_states:r,_alphaMultiplierLoc:t.getUniformLocation(i.AlphaMultiplier.id),exec:function(e){c(e,this._tex.texCoordBuffer,this._tex.texCoordLoc,1,e.FLOAT,0),_(e,this._tex),e.uniform1f(this._alphaMultiplierLoc,this._states.alphaMultiplier)}}},AlphaMultiplier:function(e,t){return{_states:t,_alphaMultiplierLoc:e.getUniformLocation(i.AlphaMultiplier.id),exec:function(e){e.uniform1f(this._alphaMultiplierLoc,this._states.alphaMultiplier)}}},PolygonOffset:function(e,t){if(void 0!==t&&t.hasOwnProperty("faceOffsetBias")&&t.hasOwnProperty("faceOffsetFactor")){return{_polygonOffsetUnits:10*t.faceOffsetBias/1e-4,_polygonOffsetFactor:t.faceOffsetFactor,exec:function(e){e.polygonOffset(this._polygonOffsetFactor,this._polygonOffsetUnits),e.enable(e.POLYGON_OFFSET_FILL)}}}return this.GLDisable(e.POLYGON_OFFSET_FILL)},Lighting:function(e,n,o,r,a,l,d,u,h,p){var f=0;o===t.ColorType.texturemapped&&(f=1);let g=s.processNormalsData(r,u,h,a);var _=n.getAttributeLocation(i.Normal.id);return{_transforms:l,_lights:d,_materialProperties:p,_normalsData:g,_normalsAttribLoc:_,_normalsBuffer:m(e,_,g),_uniforms:s.addUniformLocations(n),_separateSpecular:f,exec:function(e){s.loadDataToUniforms(e,this._transforms.getModelTransform(),this._transforms.getViewTransform(),this._uniforms,this._materialProperties,this._lights.getLights(),this._lights.getActiveLights(),this._lights.getSceneAmbientLightColor(),this._separateSpecular),c(e,this._normalsBuffer,this._normalsAttribLoc,3,e.FLOAT,0)}}},StippleData:function(e,t,n,a,s,l,d,u,h,p){var f=t.getAttributeLocation(i.StippleCoord.id),g=t.getUniformLocation(i.StipplePattern.id);return{_shader:t,_nVertices:u,_vertexData:n,_stripData:a,_isWideLines:p,_stippleCoordLoc:f,_stippleCoordsBuffer:void 0,_stippleUniformLoc:g,_stipplePattern:o.makeLineStipple(s,l,d),_transforms:h,_viewCache:void 0,exec:function(e){var t=new r(this._transforms.getMVPTransform(),e.canvas.width,e.canvas.height);if(void 0===this._viewCache||!1===t.compare(this._viewCache)){var i=o.calculateStippleCoordinates(this._nVertices,this._vertexData,this._stripData,t,this._isWideLines);this._stippleCoordsBuffer=m(e,this._stippleCoordLoc,i,this._shader),this._viewCache=t}c(e,this._stippleCoordsBuffer,this._stippleCoordLoc,1,e.FLOAT,0),e.uniform4fv(this._stippleUniformLoc,this._stipplePattern)}}},DrawStrips:function(e,t){return{_type:t,_stripData:e,exec:function(e){var t,i=this._stripData[0];for(t=0;t<this._stripData.length-1;t+=1){var n=this._stripData[t+1];e.drawArrays(this._type,i-1,n-i),i=n}}}},Draw:function(e,t,i){return{_type:e,_stride:t,_nVertices:i,exec:function(e){for(var t=0;t<this._nVertices;t+=this._stride)e.drawArrays(this._type,t,this._stride)}}},DrawTextBackground:function(e,t,n,o){return{_anchorLoc:e.getUniformLocation(t),_renderer:n,_textUtils:o,exec:function(t,n){let o=this._renderer.getViewport(),r=o.width/o.height;for(var a=0;a<n.txtCache.length;a+=1){var s=n.txtCache[a];if(void 0!==s){var l=n.backgroundCache[a];t.uniform3fv(this._anchorLoc,s.vertexData);let d=this._textUtils.calculateTextBackgroundRect(l.logicalBounds,n.margin,l.horizontalAlignment,l.verticalAlignment,o),u=this._textUtils.makeTextBackgroundVertexArray(d,l.angle,r),h=e.getAttributeLocation(i.Coord2D.id),p=m(t,h,u,e);c(t,p,h,2,t.FLOAT,0),t.drawArrays(t.TRIANGLE_STRIP,0,4)}}}}},DrawTextEdge:function(e,n,o,r,a,s){var l;return l=o===t.LineStyle.solid?{handle:function(e,t){}}:{_edgeStippleUniformLoc:e.getUniformLocation(i.StipplePattern.id),_edgeStippleCoordLoc:e.getAttributeLocation(i.StippleCoord.id),_edgeStipplePattern:r,_shader:e,handle:function(e,t){e.uniform4fv(this._edgeStippleUniformLoc,this._edgeStipplePattern);let i=m(e,this._edgeStippleCoordLoc,t,this._shader);c(e,i,this._edgeStippleCoordLoc,1,e.FLOAT,0)}},{_anchorLoc:e.getUniformLocation(n),_renderer:a,_textUtils:s,_lineStyleHandler:l,exec:function(t,n){let o=this._renderer.getViewport(),r=o.width/o.height;for(var a=0;a<n.txtCache.length;a+=1){var s=n.txtCache[a];if(void 0!==s){var l=n.edgeCache[a];t.uniform3fv(this._anchorLoc,s.vertexData);let d=this._textUtils.calculateTextBackgroundRect(l.logicalBounds,n.margin,l.horizontalAlignment,l.verticalAlignment,o),u=this._textUtils.makeTextEdgeVertexArray(d,l.angle,r,o,l.lineWidth,l.lineStyle),h=e.getAttributeLocation(i.Coord2D.id),p=m(t,h,u.vertexArray);c(t,p,h,2,t.FLOAT,0),this._lineStyleHandler.handle(t,u.stippleCoords),t.drawArrays(t.TRIANGLES,0,u.vertexArray.length/2)}}}}},DrawText:function(e,t,n){return{_anchorLoc:e.getUniformLocation(t),_renderer:n,_viewportSizeLoc:e.getUniformLocation(i.ViewportSize.id),exec:function(e,t){var i,n=this._renderer.getViewport();for(e.uniform2fv(this._viewportSizeLoc,[n.width,n.height]),i=0;i<t.nVertices;i+=1){var o=t.txtCache[i];void 0!==o&&(e.uniform3fv(this._anchorLoc,o.vertexData),c(e,o.texCoordBuffer,o.texCoordLoc,2,e.FLOAT,0),c(e,o.coord2DBuffer,o.coord2DLoc,2,e.FLOAT,0),_(e,o),e.drawArrays(e.TRIANGLE_STRIP,0,4))}}}},DrawParallel:function(e,t,i){return{_primType:e,_numShapeVerts:t,_numVerts:i,exec:function(e){e.drawArraysInstanced(this._primType,0,this._numShapeVerts,this._numVerts)}}},DrawMarkers:function(e,t,o,r,a,s,c,d,u,h,p,f,g,m){return{_shader:e,_numVerts:t,_anchorLoc:e.getUniformLocation(o),_anchorData:r,_scaleLoc:e.getUniformLocation(a),_scaleData:s,_drawFace:c,_faceColorLoc:e.getUniformLocation(d),_faceColorData:u,_numFaceColors:h,_drawEdge:p,_edgeColorLoc:e.getUniformLocation(f),_edgeColorData:g,_numEdgeColors:m,_pickColorLoc:e.getUniformLocation(i.PickColor.id),_pickColorMapper:new l,_breakLimit:n.getMarkerDataBreakLimitForPicking(),exec:function(e,t,i){let o,r,a,s,l,c=0;i&&(l=i.getCurrentPickColor(),c=this._pickColorMapper.getIndexForColor(l[0],l[1],l[2]));for(var d=0;d<this._numVerts;d++){if(e.uniform3fv(this._anchorLoc,this._anchorData[d].vertexData),e.uniform1f(this._scaleLoc,this._scaleData[d]),this._drawFace&&(o=d%this._numFaceColors*4,r=this._faceColorData.slice(o,o+4),e.uniform4fv(this._faceColorLoc,r)),this._drawEdge&&(a=d%this._numEdgeColors*4,s=this._edgeColorData.slice(a,a+4),e.uniform4fv(this._edgeColorLoc,s)),d%this._breakLimit==0&&i){let t=this._pickColorMapper.getColorForIndex(c+d/this._breakLimit),i=n.convertUint8ColorsToFloat([t[0],t[1],t[2],255]);e.uniform4fv(this._pickColorLoc,i)}e.drawArrays(t.dataStore.primType,0,t.dataStore.numShapeVerts)}}}},DrawWideLineStripV2:function(e){return{_numStripVertices:e,exec:function(e){var t=e.isEnabled(e.BLEND);t||e.enable(e.BLEND);for(var i=0,n=0;n<this._numStripVertices.length;n++){var o=this._numStripVertices[n];e.drawArrays(e.TRIANGLE_STRIP,i,o),i+=o}t||e.disable(e.BLEND)}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(457),i(375)],o=i.dj.d(n,(function(e,t,i){var n=e([],{constructor:function(e,i,n){var o,r,a;if(void 0===n)if(i instanceof t){let t=e;o=i,a=Math.sqrt(o.getX()*o.getX()+o.getY()*o.getY()+o.getZ()*o.getZ()),this._nx=o.getX()/a,this._ny=o.getY()/a,this._nz=o.getZ()/a,this._off=this._nx*t.getX()+this._ny*t.getY()+this._nz*t.getZ()}else o=e,r=i,a=Math.sqrt(o.getX()*o.getX()+o.getY()*o.getY()+o.getZ()*o.getZ()),this._nx=o.getX()/a,this._ny=o.getY()/a,this._nz=o.getZ()/a,this._off=r/a;else{var s=new t(i.getX()-e.getX(),i.getY()-e.getY(),i.getZ()-e.getZ()),l=new t(n.getX()-e.getX(),n.getY()-e.getY(),n.getZ()-e.getZ());o=new t(s.getY()*l.getZ()-s.getZ()*l.getY(),s.getZ()*l.getX()-s.getX()*l.getZ(),s.getX()*l.getY()-s.getY()*l.getX()),a=Math.sqrt(o.getX()*o.getX()+o.getY()*o.getY()+o.getZ()*o.getZ()),this._nx=o.getX()/a,this._ny=o.getY()/a,this._nz=o.getZ()/a,this._off=this._nx*e.getX()+this._ny*e.getY()+this._nz*e.getZ()}},getNormal:function(){return new t(this._nx,this._ny,this._nz)},getOffset:function(){return this._off},distance:function(e){return this._nx*e.getX()+this._ny*e.getY()+this._nz*e.getZ()-this._off},offset:function(e){return new n(this.getNormal(),this._off+e)},nearestPointOnPlane:function(e){var i=this.getNormal(),n=-this._off,o=e,r=o.getX()*i.getX()+o.getY()*i.getY()+o.getZ()*i.getZ(),a=new t((r+n)*i.getX(),(r+n)*i.getY(),(r+n)*i.getZ());return new t(o.getX()-a.getX(),o.getY()-a.getY(),o.getZ()-a.getZ())},negate:function(){return new n(new t(-this._nx,-this._ny,-this._nz),-this._off)},evaluate:function(e){return this._nx*e.getX()+this._ny*e.getY()+this._nz*e.getZ()-this._off*e.getW()}});return n.transform=function(e,o){var r=new i(o.getNormal().getX(),o.getNormal().getY(),o.getNormal().getZ(),-o.getOffset()),a=e.createInverseTranspose().transform(r);return new n(new t(a.getX(),a.getY(),a.getZ()),-a.getW())},n.transformProvidedInverse=function(e,o){var r=new i(o.getNormal().getX(),o.getNormal().getY(),o.getNormal().getZ(),-o.getOffset()),a=e.transpose().transform(r);return new n(new t(a.getX(),a.getY(),a.getZ()),-a.getW())},n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2201),i(458)],o=i.dj.d(n,(function(e,t,i){return e([t],{fNode:null,fNodeVD:null,fNodeSD:null,constructor:function(e){null!==e&&(this.fNode=e,this.fNodeVD=i.convertArray(e.vertexdata),this.fNodeSD=e.string)},disable:function(){delete this.fNode.vertexdata,this.fNode.clean=!1,this.fNode.string=[]},reset:function(){this.fNode.vertexdata={data:this.fNodeVD},this.fNode.clean=!1,this.fNode.string=this.fNodeSD},accept:function(e){e(this)},setVertexData:function(e){this.fNode.vertexdata={data:e},delete this.fNode._cachedBoundingBox,this.fNode.clean=!1,delete this.fNode.stripdata},getOriginalVertexData:function(){return this.fNodeVD},getOriginalStringData:function(){return this.fNodeSD},setStringData:function(e){this.fNode.string=e,this.fNode.clean=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2201)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){},disable:function(){},reset:function(){},accept:function(){},setVertexData:function(){},getOriginalVertexData:function(){},getOriginalStringData:function(){},setStringData:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(325)],o=i.dj.d(n,(function(e,t){return e([],{_sceneView:null,constructor:function(e){this._sceneView=e},isValid:function(){return null!==this._sceneView.getAxesControl()},getTextProperties:function(e){if(null!==this._sceneView){var i=this._sceneView.getContainerDimensions(t.PixelUnitType.csspixel);switch(e){case"Title":return this._sceneView.getAxesControl().getTitleProperties(i.w,i.h);case"XLabel":return this._sceneView.getAxesControl().getXLabelProperties(i.w,i.h);case"YLabel":return this._sceneView.getAxesControl().getYLabelProperties(i.w,i.h);case"ZLabel":return this._sceneView.getAxesControl().getZLabelProperties(i.w,i.h)}}return null},worldToViewCoords:function(e,i){if(null!==this._sceneView){var n=i;return n||(n=this._sceneView.getContainerDimensions(t.PixelUnitType.csspixel)),this._sceneView.getAxesControl().dsWorldToView(e,n.w,n.h)}return[]},is2D:function(){return this._sceneView.getAxesControl().is2D()},setLimits:function(e,t,i,n,o,r){this._sceneView.getAxesControl().setLimits(e,t,i,n,o,r)},getCurrentLimits:function(){return this._sceneView.getAxesControl().getCurrentLimits()},getNDCToDSTransform:function(){return this._sceneView.getAxesControl().getNDCToDSTransform()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return{currentPromise:null,_promiseNumber:0,fire:function(e,t,i,n){var o=this.zoomAxisAroundPoint([n[0],n[1]],e.getX(),t),r=this.zoomAxisAroundPoint([n[2],n[3]],e.getY(),t),a=[n[4],n[5]];return i||(a=this.zoomAxisAroundPoint([n[4],n[5]],e.getZ(),t)),[o[0],o[1],r[0],r[1],a[0],a[1]]},zoomAxisAroundPoint:function(e,t,i){return[t-(t-e[0])/i,t+(e[1]-t)/i]},fixAspectRatio:function(e,t,i){if("auto"===i)return e;let n=e,o=t[1]-t[0],r=t[3]-t[2],a=o/r,s=e[1]-e[0],l=e[3]-e[2];if(l/r>s/o&&(e[2]!==t[2]||e[3]!==t[3])||e[0]===t[0]&&e[1]===t[1]){let t=(s-l*a)/2;n[0]=e[0]+t,n[1]=e[1]-t}else{let t=(l-s/a)/2;n[2]=e[2]+t,n[3]=e[3]-t}return n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return{currentPromise:null,_promiseNumber:0,boundLimitsOnAxis:function(e,t,i){if(null==t[0]||null==t[1])return e;let n=Math.abs(e[1]-e[0]),o=e.slice(),r=1e-5*n;return e[0]-t[0]<=r&&(o[0]=t[0],i&&(o[1]=Math.min(o[0]+n,t[1]))),t[1]-o[1]<=r&&(o[1]=t[1],i&&(o[0]=Math.max(o[1]-n,t[0]),o[0]<t[0]&&(o[0]=t[0]))),o},isWithinLimits:function(e,t){let i=1e-5*Math.abs(t[1]-t[0]);return t[0]<=e[0]+i&&t[1]+i>=e[1]},isLimitsWithinBounds:function(e,t,i){return i?this.isWithinLimits(e.slice(0,2),t.slice(0,2))&&this.isWithinLimits(e.slice(2,4),t.slice(2,4)):this.isWithinLimits(e.slice(0,2),t.slice(0,2))&&this.isWithinLimits(e.slice(2,4),t.slice(2,4))&&this.isWithinLimits(e.slice(4,6),t.slice(4,6))},boundLimits:function(e,t,i,n,o){if(!this.isLimitsWithinBounds(e,i,n))return t;var r,a,s=this.boundLimitsOnAxis(t.slice(0,2),i.slice(0,2),o);return t[2]>t[3]?(r=this.boundLimitsOnAxis(t.slice(2,4).reverse(),i.slice(2,4),o)).reverse():r=this.boundLimitsOnAxis(t.slice(2,4),i.slice(2,4),o),a=n?t.slice(4,6):this.boundLimitsOnAxis(t.slice(4,6),i.slice(4,6),o),s.concat(r).concat(a)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(505)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i,n){},enable:function(){this.inherited(arguments),this.sendServerSideMessage("Entered")},disable:function(){this.inherited(arguments),this.sendServerSideMessage("Exited")},execute:function(e){this.sendServerSideMessage("Exited")},sendServerSideMessage:function(e){var t={name:"enterexit",actionData:{name:e}};this._control.process(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(206)],o=i.dj.d(n,(function(e,t,i){return e(null,{x:"auto",y:"auto",_setYAttr:function(e){this.domNode&&("auto"===e||""===e?t.set(this.domNode,{bottom:e}):t.set(this.domNode,{bottom:e+"px"})),this._set("y",e)},_setXAttr:function(e){this.domNode&&("auto"===e||""===e?t.set(this.domNode,{left:e}):t.set(this.domNode,{left:e+"px"})),this._set("x",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1174),i(2231)],o=i.dj.d(n,(function(e,t){"use strict";var i=function(){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._getlabelNode=this._getlabelNode.bind(this),this._alignment=t.DEFAULT,e&&e.alignment&&(this._alignment=e.alignment),this.iconAction=!0}return r(i,[{key:"getTooltip",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=void 0;return e&&e.label&&(t={text:e.label}),t}},{key:"getDomNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments[1],n=document.createDocumentFragment(),o=document.createElement("span");o.className="mw-icon-label-renderer";var r=e&&e.hasOwnProperty("label"),a=void 0;if((a=e&&e.iconUri?e.iconUri:e)&&a.length>0){var s=document.createElement("img");s.className="mw-data-icon-renderer",r||this._alignment===t.DEFAULT||(this._alignment===t.CENTER?s.className="mw-data-icon-renderer-center":this._alignment===t.LEFT?s.className="mw-data-icon-renderer-left":this._alignment===t.RIGHT&&(s.className="mw-data-icon-renderer-right")),s.setAttribute("data-test-id","icon1"),e&&e.a11y&&e.a11y.iconDescription&&s.setAttribute("alt",e.a11y.iconDescription),s.setAttribute("src",encodeURI(a)),o.appendChild(s)}if(r){var l=i&&i.searchHighlight&&i.searchHighlight.matches?i.searchHighlight.matches:null,c=this._getlabelNode(e.label,l);c&&o.appendChild(c)}return n.appendChild(o),n}},{key:"handleAction",value:function(e){return!0}},{key:"_createLabelElement",value:function(){return document.createElement("span")}},{key:"_getlabelNode",value:function(t,i){var n=void 0;if(t){var o=t.toString();if((n=this._createLabelElement()).setAttribute("data-region",!0),i)n.setAttribute("data-test-id","highlightLabel"),e.getHighlightedTextDOM(o,i).forEach((function(e){e.setAttribute&&e.setAttribute("data-region",!0),n.appendChild(e)}));else n.textContent=o.trim(),n.setAttribute("data-test-id","label1")}return n}}]),i}();return i.ALIGNMENT=t,i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({TOP:"TOP",BOTTOM:"BOTTOM",LEFT:"LEFT",RIGHT:"RIGHT",ACTIVE:"ACTIVE",FULCRUM:"FULCRUM",ROW:"ROW",COLUMN:"COLUMN"})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(204)],o=i.dj.d(n,(function(e){return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"mergeEnums",value:function(t,i){for(var n in i)t.hasOwnProperty(n)?e.mixin(t[n],i[n]):t[n]=i[n];return t}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(976),i(459),i(1535),i(977),i(327),i(593),i(1532),i(6235),i(2255),i(6236),i(1537),i(1538),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,s,l,c,d,u,h,p,f){"use strict";var g=function(){},m={0:"",1:"mw-table-active-selection-right-border",2:"mw-table-cell-selected",3:"",4:"",6:"mw-table-cell-selected mw-table-cell-active-range",7:"mw-table-cell-selected mw-table-cell-active-range mw-table-active-selection-right-border"},_={cells:function(){return function(){return 0}}},v=function(t){return t&e.selection.SELECTED},b=function(t){return t&e.selection.ACTIVE_SELECTED};return function(e){function p(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(p.__proto__||Object.getPrototypeOf(p)).call(this));return e.cell=f.createRef(),e._handleDoubleClick=e._handleDoubleClick.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(p,e),a(p,[{key:"_handleDoubleClick",value:function(){var e=this.props,i=e.eventCallback,n=e.rowIndex,o=e.colIndex,r=e.onDoubleClick;if(r)return r();var a={row:Number(n),column:Number(o)};return t.emitDoubleClickEvent(i,a)}},{key:"_handleMouseOverFunction",value:function(e,t){if(!t){var i=this.props,n=i.handleMouseOver,o=i.cellData,r=i.renderer;n(e.target,"tableCell",o.value,r,this.cell.current)}}},{key:"componentDidUpdate",value:function(e){if(this.props.focusClass&&(!e.focusClass||this.props.focusCached))return this.cell.current.focus()}},{key:"componentWillUnmount",value:function(){this.props.focusClass&&this.cell.current.contains(document.activeElement)&&t.setFocusCache(this.props.eventCallback)}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,i=t.selectionMap,n=void 0===i?_:i,r=t.colIndex,a=t.rowIndex,s=t.additionalClass,l=t.focused,c=void 0===l?{}:l,d=e.focused||c,u=e.selectionMap||_,h=[a+1,r].join(","),p=n.cells(a)(r),f=n.cells(a+1)(r),g=u.cells(a)(r),m=u.cells(a+1)(r),v=u.cells(a-1)(r),b=n.cells(a-1)(r);if(d[h]!==c[h])return!0;if(v!==b)return!0;if(p!==g||f!==m)return!0;if(JSON.stringify(this.props.editState)!==JSON.stringify(e.editState))return!0;if(this.props.editValidation!==e.editValidation)return!0;if(this.props.editProcessing!==e.editProcessing)return!0;if(this.props.focusCached!==e.focusCached)return!0;if(!o.classNameArrayEqual(s,e.additionalClass))return!0;if(this.props.focusClass!==e.focusClass)return!0;if(this.props.renderer!==e.renderer||this.props.editor!==e.editor)return!0;var y=this.props.styleData||{},C=e.styleData||{},T=y.minWidth!==C.minWidth||y.maxWidth!==C.maxWidth||y.height!==C.height||y.width!==C.width;return!this.props.cellData.isEqual(e.cellData)||T}},{key:"_getRenderComponent",value:function(e){return!e||e.constructor&&"DefaultRenderer"===e.constructor.name?u:d}},{key:"_getResizeSelectionAffordance",value:function(e,t,i,n){var o=null,r=null;return e.resizeSelection&&(t&&n&&(o=c.createComponent(e,l.TOP)),i&&n&&(r=c.createComponent(e,l.BOTTOM))),{resizeSelectionAffordanceTop:o,resizeSelectionAffordanceBottom:r}}},{key:"render",value:function(){var e=this,o=this.props,a=o.rowIndex,l=o.colIndex,c=o.cellData,d=o.styleData,u=o.focusClass,p=o.selectionMap,y=void 0===p?_:p,C=o.focused,T=void 0===C?{}:C,E=o.renderMetaData,S=o.groupAttr,w=o.additionalClass,I=o.handleEditComplete,A=o.handleEditCanceled,x=o.handleEditValidation,N=o.handleProcessEdit,L=o.editState,D=o.renderer,M=o.editor,P=o.editProcessing,O=o.onClick,R=void 0===O?g:O,k=o.eventCallback,F=o.useEditorRendererDataFields;if("object"!==(void 0===d?"undefined":r(d))&&(d={}),"object"!==(void 0===c?"undefined":r(c))||!c.hasOwnProperty("isEqual"))throw new Error("cellData property requires an isEqual function.");var B=y.cells(a)(l),H=this._getRenderComponent(D),V=m[B],j=["mw-table-cell-clean-focus",i.getBaseStyle(this.props),u,V,w],U=i.getCellType(this.props),W=y.cells(a-1)(l),G=y.cells(a+1)(l),z=[a+1,l].join(","),q=b(B),K=v(B),X=b(W),Y=v(G),Q=b(G),$=q&&!X,J=K^Y||q^Q||q&&!Y;$&&j.push("mw-table-selection-top-edge"),J&&j.push("mw-table-selection-bottom-edge"),T[z]&&j.push("mw-table-focus-edge"),n.isStrikeThrough(c)&&j.push("mw-table-cell-strike-through");var Z=!1;L&&L.rowIndex===a&&L.colIndex===l&&(Z=!0);var ee=u?"-1":null,te=D&&D.getAriaLabel?D.getAriaLabel(c.value):null,ie=this._getResizeSelectionAffordance(this.props,$,J,q),ne=ie.resizeSelectionAffordanceTop,oe=ie.resizeSelectionAffordanceBottom;return f.createElement("td",{ref:this.cell,style:d,role:"gridcell","data-row":a,"aria-colindex":l,"data-edit":!!L,"data-col":l,"data-cell-type":U,tabIndex:ee,"aria-label":te,"group-attr":S,onClick:R,onDoubleClick:this._handleDoubleClick,onContextMenu:function(i){return t.handleContextmenu(i,e.props,s.TABLE_CELL)},onMouseOver:function(t){return e._handleMouseOverFunction(t,Z)},className:j.join(" ")},null!==ne&&ne,Z?f.createElement(h,{value:c.value,CustomEditor:M,eventCallback:k,handleEditCanceled:A,handleEditComplete:I,handleEditValidation:x,handleProcessEdit:N,editProcessing:P,useEditorRendererDataFields:F}):f.createElement(H,{value:c.value,eventCallback:k,metaData:E,noToolTip:!0,renderer:D,useEditorRendererDataFields:F}),null!==oe&&oe)}}]),p}(f.Component)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){function e(e,t,i,n){var o=i.style.display;i.style.display="none",e.insertBefore(t,n),setTimeout((function(){i.parentNode&&(i.parentNode.removeChild(i),"none"===i.style.display&&(i.style.display=o))}),0)}return{shouldCellUpdate:function(e,t,i,n){return e.editState!==t.editState||(e.focusClass!==t.focusClass||(e.renderer!==t.renderer||e.interactiveRenderer!==t.interactiveRenderer||e.editor!==t.editor||!e.cellData.isEqual(t.cellData)))},replaceFirstNode:function(t,i,n){e(t,i,n,t.firstChild)},replaceLastNode:function(t,i,n){e(t,i,n,null)},getCellType:function(e){return e.type&&e.type.cellType?e.type.cellType:"TableCell"},getBaseStyle:function(e){return e.type&&e.type.baseStyle?e.type.baseStyle:"mw-table-cell mw-table-cell-background"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(271),i(267),i(459),i(250)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(o){var r=function(i,n,r){o(e.protected.NODE_NOTIFY,{publisherFn:function(){return{node:i,id:n,content:r}},publisherId:t.protected.publisher.CELL_ENTER,noRender:!0})};return n.useEffect((function(){return function(){o(e.protected.NODE_NOTIFY,{publisherFn:function(){return!0},publisherId:t.publisher.TOOLTIP_DISMISS,noRender:!0})}}),[]),{setTooltip:r,setTooltipWhenOverflow:function(e,t,n){if(i.isElementOverflow(e))return r(e,t,n)},handleMouseOverWithRenderer:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments[4];e=i.getTargetNode(t,e,a,o);var s=o.showTooltip||i.isElementOverflow(e);if(a=a||e,o.getTooltip&&o.getTooltip(n)&&o.getTooltip(n).text&&(n=o.getTooltip(n).text),s)return r(a,t,n)}}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(594),i(459),i(1173),i(841),i(327),i(6238),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,s,l){"use strict";var c=null;return l.memo((function(o){var a=o.CustomEditor,h=o.editProcessing,p=o.handleEditComplete,f=o.handleEditCanceled,g=o.handleEditValidation,m=o.handleProcessEdit,_=o.eventCallback,v=o.useEditorRendererDataFields,b=o.value,y=l.useRef(),C=n().getDisplayValue(b,i.EDITOR,v),T=l.useState(C),E=r(T,1)[0],S=l.useState(!1),w=r(S,2),I=w[0],A=w[1],x=[],N=function(t){c||(c=function(t,i){return new(i||e)(t,{})}(t,a),y.current.appendChild(c.getDomNode(t)),x.push(c.on("editComplete",(function(e){return d(e,L,y.current)}))),x.push(c.on("editCanceled",(function(e){return d(e,f,y.current)}))),x.push(c.on("editValidation",(function(e){return g(e)}))),x.push(c.on("processEdit",(function(e){return m(e)}))),c.setFocus())},L=function(e){var t=n().getValueToSave(b,e.newValue,i.EDITOR,v),o=t.oldValue,r=t.valueToSave;return e.oldValue=o,e.newValue=r,p(e)};return l.useEffect((function(){return N(C),function(){x&&x.forEach((function(e){return e.remove()})),y.current.contains(document.activeElement)&&t.setFocusCache(_),c&&c.destroy&&c.destroy(),c=null}}),[]),l.useEffect((function(){E!==C&&f()}),[C]),l.useEffect((function(){var e=c&&c.update,t=h&&h.validationResult,i=h&&!h.validationResult;A(!!i),e&&t&&function(e,t){var i=e.validationResult,n=e.newValue;i.validatedData=n,t.update(e.oldValue,{validationResult:i})}(h,c)}),[h]),l.createElement(l.Fragment,null,l.createElement(s,{loading:I}),l.createElement("span",{className:I?"mw-table-indicator-hide":"",ref:y,onMouseDown:u}))}),(function(e,t){var i=void 0;return i="object"===a(e.editProcessing)&&"object"===a(t.editProcessing)?Object.entries(e.editProcessing).toString()===Object.entries(t.editProcessing).toString():e.editProcessing===t.editProcessing,e.value===t.value&&i}));function d(e,t,i){!function(e){return e.contains(document.activeElement)||!1}(i)?o.toPromise().then((function(){return t(e)})):t(e)}function u(e){e.stopPropagation()}}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};n=[i(1536),i(250)],o=i.dj.d(n,(function(e,t){"use strict";return function(i){return function(n){var o=n.eventCallback,a=e(o),s=a.setTooltip,l=a.setTooltipWhenOverflow,c=a.handleMouseOverWithRenderer;return t.createElement(i,r({},n,{getTooltip:function(e,t,i){return s(e,t,i)},getTooltipWhenOverflow:l,handleMouseOverWithRenderer:c}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return function(e,t){var i=!1,n=0,o=void 0,r=-1;function a(t){i=!0,r=window.setTimeout((function(){e.apply(null,o),n=Date.now(),i=!1}),t)}function s(){o=arguments;var s=t-(Date.now()-n);s<=0||s>t?(e.apply(null,arguments),n=Date.now(),window.clearTimeout(r),i=!1):i||a(s)}return s.cancel=function(){clearTimeout(r),i=!1,o=void 0,r=-1},s}}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(271),i(267),i(978),i(593),i(6253),i(6254),i(6255),i(6257),i(976),i(6258),i(459),i(1535),i(1178),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,s,l,c,d,u,h,p,f,g){var m,_=function(e,t){var i=t.headerRenderer;return i&&"function"==typeof i.getDomNode?{headerRenderer:i}:{}},v=((m={})[d.selection.SELECTED]="mw-table-header-col-selected",m),b=function(){return g.createElement("div",{className:"mwTableHeaderAffordancePlaceholder"})};return function(d){function m(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(m.__proto__||Object.getPrototypeOf(m)).call(this));t._handleMouseEnter=t._handleMouseEnter.bind(t),t._handleMouseDown=t._handleMouseDown.bind(t);var i=_(0,e).headerRenderer;return t.state={headerRenderer:i||new o},t._handleContextmenu=t._handleContextmenu.bind(t),t.handleDragState=t.handleDragState.bind(t),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(m,d),a(m,[{key:"componentDidMount",value:function(){this.renderNode.appendChild(this.state.headerRenderer.getDomNode(this.props.name))}},{key:"componentWillReceiveProps",value:function(e){e.headerRenderer!==this.state.headerRenderer&&this.setState(_)}},{key:"componentDidUpdate",value:function(e,t){this.state.headerRenderer===t.headerRenderer&&this.props.name===e.name||p.replaceFirstNode(this.renderNode,this.state.headerRenderer.getDomNode(this.props.name),this.renderNode.firstChild)}},{key:"_handleMouseEnter",value:function(i){var n=this,o=this.renderNode.firstChild,r=this.props.colIndex,a=this.props.name;!this.state.dragInProgress&&this.state.headerRenderer.getTooltip&&o.offsetWidth<o.scrollWidth&&this.props.eventCallback(e.protected.NODE_NOTIFY,{publisherFn:function(){return{node:i.target,id:"colHeader"+r,content:n.state.headerRenderer.getTooltip(a).text,className:"mw-table-header-column"}},publisherId:t.protected.publisher.CELL_ENTER,noRender:!0})}},{key:"_handleContextmenu",value:function(e){var t=this.props,i=t.eventCallback,o=t.rowIndex,r=t.colIndex,a=t.colIndexEnd,s={type:n.COLUMN_HEADER,rowIndex:o,colIndex:r,colEnd:a};return h.eventCallbackForContextMenu(e,i,s)}},{key:"_handleDoubleClick",value:function(){}},{key:"_handleMouseDown",value:function(t){if(!h.isSyntheticRightClick(t)){var i=this.props,n=i.colIndex,o=i.headerMeta,r=i.colIndexEnd,a=i.range,s=void 0===a?{}:a;if(!(n<0||(l=t.target)&&"mwTableSortAffordance"===l.className)){var l,c=f.isGroupColumn(o),d=f.getColRangeIndicesForView(n,o,r,s.start);this.props.eventCallback(e.protected.COL_HEADER_CLICK,{column:d.startIndex,columnEnd:d.endIndex,groupedSelection:c,meta:t.metaKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey})}}}},{key:"handleDragState",value:function(e){this.setState({dragInProgress:e})}},{key:"_makeDragIcon",value:function(){var e=this.props.setAvatar;return g.createElement(u,{avatarDefaultLabel:this.props.name,setAvatar:e,dropType:"column",colIndex:this.props.colIndex,columnId:this.props.columnId,headerMeta:this.props.headerMeta,scrollNode:this.props.scrollNodeIntoView.getScrollNode(),eventCallback:this.props.eventCallback,onDragAction:this.handleDragState})}},{key:"render",value:function(){for(var e=this,t=this.props,n=t.cellEditState,o=t.styleData,a=t.colEditState,d=t.colIndex,u=t.headerMeta,h=t.range,p=void 0===h?{}:h,m=t.colIndexEnd,_=t.columnId,y=t.dragColumns,C=t.colSelectionMap,T=void 0===C?function(){return 0}:C,E=[],S=["mw-table-header-column","mw-table-flex-container"],w=0,I=!0,A=d;A<=m;A+=1)if((w=T(A))<=0){I=!1;break}I&&S.push(function(e){return v[e]||""}(w)),"object"!==(void 0===o?"undefined":r(o))&&(o={position:"relative"});var x=0===d?"mw-table-no-left-border":"mw-table-left-border";S.push(x),E.push(function(e){var t=e.eventCallback,i=e.colMenuAffordance,n=e.sorted,o=e.colIndex,r=e.headerMeta,a=void 0===r?{}:r,s=e.colIndexEnd,l=e.range,d=void 0===l?{}:l,u=a.headerMenu,h=f.getColRangeIndicesForView(o,a,s,d.start);if(i&&u)return g.createElement(c,{key:"menu."+h.startIndex,colIndex:h.startIndex,colStartIndex:h.startIndex,colEndIndex:h.endIndex,eventCallback:t,sorted:n})}(this.props)||function(e){var t=e.headerMeta,i=void 0===t?{}:t,n=e.eventCallback,o=e.sortable,r=e.colIndex,a=e.sorted,s=e.colStartIndex,c=e.colEndIndex,d=e.cellEditState,u=i.sortType;if(o&&u)return g.createElement(l,{key:"sort."+r,sortClass:"mwTableSortAffordance",colIndex:r,colStartIndex:s,cellEditState:d,colEndIndex:c,eventCallback:n,sortType:u,sorted:a})}(this.props)),E.push(function(e){var t=e.colResize,i=e.eventCallback,n=e.logicalColWidth,o=e.colIndex,r=e.headerMeta,a=e.colIndexEnd,l=e.range,c=void 0===l?{}:l;if(t){var d=f.getColRangeIndicesForView(o,r,a,c.start);return g.createElement(s,{key:"resize."+d.startIndex,colIndex:d.startIndex,colIndexEnd:d.endIndex,eventCallback:i,colWidth:n})}return g.createElement(b,{key:"resize."+o+"."+a})}(this.props));var N=[];y&&N.push(this._makeDragIcon());var L=f.getColRangeIndicesForView(d,u,m,p.start),D=n?"true":"false";return g.createElement("th",{"data-col-index":L.startIndex,"data-col-index-end":L.endIndex,"data-edit-state":a,"cell-edit-state":D,"data-column-id":_,style:o,onMouseDown:this._handleMouseDown,onContextMenu:this._handleContextmenu,className:S.join(" ")},N,g.createElement("div",{className:"mw-table-header-label-container"},g.createElement("div",{ref:function(t){e.renderNode=t},"data-test-id":i.HEADER_LABEL,onMouseEnter:this._handleMouseEnter,onDoubleClick:this._handleDoubleClick,className:"mw-table-header-label"})),E)}}]),m}(g.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};n=[i(459),i(250)],o=i.dj.d(n,(function(e,t){"use strict";return function(i,n){return function(o){var a=o.eventCallback,s=o.rowIndex,l=o.colIndex,c=o.colEnd,d=!!o.handleEditComplete;return t.createElement(i,r({},o,{onContextMenu:function(t){var i={type:n,colEnd:c,rowIndex:s,colIndex:l,isEditable:d};return e.eventCallbackForContextMenu(t,a,i)}}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6293),i(6300)],o=i.dj.d(n,(function(e,t){var i={},n={};return{getMenuProvider:function(o){var r=o&&o.nameSpace?o.nameSpace:"",a=null;return r&&!i.hasOwnProperty(r)&&((a=new t(o)).createContextMenu(),n[r]=new e(o,a),i[r]=a),i[r]},destroyMenuProvider:function(e){i[e]&&(i[e].destroy(),delete i[e]),n[e]&&(n[e].destroy(),delete n[e])}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(219),i(318)],o=i.dj.d(n,(function(e,t,i,n){return e("datatoolsservices.CmdLineCodePublishService",[],{executionService:[],context:"",enabled:!1,codeObj:[],constructor:function(e){this.executionService=e.executionService,this.context=e.context,e.enabled&&(this.enabled=e.enabled),n.subscribe("/DataToolsCodePubChannel/"+this.context,"_publishCode",this)},unregister:function(){n.unsubscribe("/DataToolsCodePubChannel/"+this.context,"_publishCode",this)},_publishCode:function(e){if(e&&e.data){var n=JSON.parse(e.data);if(this.codeObj=n,this.executionService){if(this.executionService._setExecutionState)var o=i.after(this.executionService,"_setExecutionState",t.hitch(this,(function(e,t){if(e&&"ready"===e){o.remove();var i=this.executionService.historyStore.items.length;if(i>0&&this.executionService.historyStore.items[i-1].isError){var n=this.executionService.historyStore.items[i-1].value.trim().split("\n"),r=this.codeObj.errorFcn.replace("%1$s",n[n.length-1]);this.executionService.executionEval(r)}else this.codeObj.postExecutionCode&&(this._executeCode(this.codeObj.postExecutionCode,!0),delete this.codeObj.postExecutionCode)}})),!0);if(n.code)if(Array.isArray(n.code))for(var r=0;r<n.code.length;r+=1)this._executeCode(n.code[r]);else this._executeCode(n.code)}}},_executeCode:function(e,t){this.enabled&&!0!==t?this.executionService.authoringEval(e):this.executionService.executionEval(e)},setEnabled:function(e){this.enabled=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(326),i(691),i(634),i(6311),i(6312),i(6313),i(6314),i(6315),i(594)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d={DefaultRenderer:new n,UITableLeftAlignedRenderer:new o,UITableRightAlignedRenderer:new r,UITableCenterAlignedRenderer:new s,CheckboxRenderer:new i({isChecked:function(e){return"1"===e},getValueForAction:function(e){var t;return"0"===e?t="1":"1"===e&&(t="0"),{oldValue:e,newValue:t}}})},u={DefaultEditor:c,UITableRightAlignedEditor:a,UITableCenterAlignedEditor:l};return{registerRenderers:function(e){Object.keys(d).forEach((function(t){e.registerRenderer(t,d[t])}))},registerEditors:function(e){Object.keys(u).forEach((function(t){e.registerEditor(t,u[t])}))},getRendererReference:function(e){return d[e]},getEditorReference:function(e){return u[e]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(382),i(1546),i(1547),i(530),i(239),i(350),i(209),i(203),i(212),i(204),i(230),i(315),i(468)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=0,g=0;return l("datatoolsservices.Data.RemoteDataStore",[u],{constructor:function(e,a){this._dataBuffer=[],this._bufferedColumnConfig=[],this._pendingRangeList=[],this._alreadyRequestedRangeList=[],this._pendingMetaDataRangeList=[],this._alreadyRequestedMetaDataRangeList=[],this._on=new o,this._dataRequestTimer=null,this._setViewportTimer=null,this._metaDataRequestTimer=null,this._dataProvider=e,this.dataSize=r.range(),this._actualSize=r.range(),this._lastServerRangeRequested=r.range(),this._currentViewRange=r.range(),this._previousSize=void 0,this._dataBuffer=[],this._promiseBuffer=[],this._colHeaderPromises=[],this._rowHeaderPromises=[],this._counter=0,this._columnConfigs=[],this._metaDataStore=new i,this._tableConstructor=a,this._DataToolsRangeUtils=t,this._defaultTableConstructor=!1,this._serverFetchCompleteTimer=null,this._infiniteGridRowBuffer=0,this._infiniteGridColumnBuffer=0,a?this._metaDataStore=a.getMetaDataStore():(this._defaultTableConstructor=!0,this._tableConstructor=new n(this._metaDataStore)),this._fetchDataCallCounterForSpinner=0,this._setupMetaDataStoreListeners(),this._setupTableConstructorListeners(),this.inititalizeDataProvider(this._dataProvider)},__getHeaders:function(){return this._bufferedColumnConfig.length>0?this._bufferedColumnConfig:void 0},__setHeaders:function(e){this._bufferedColumnConfig=Array.isArray(e)&&e.length>0?e:this._bufferedColumnConfig},_clearBufferOnSizeChangedIfNeeded:function(e,t){e&&t&&(e.rows.end>t.rows.end||e.columns.end>t.columns.end)&&this._clearBuffer({rangeList:r.removeRangeFromRangeList([e],t),serverViewPortRange:void 0})},sizeHandler:function(e){if(e&&e.size){var t=this._actualSize;if(!r.isRangeEqual(t,e.size)){var i=this._actualSize;this._previousSize=this._actualSize,this._actualSize=e.size,this.dataSize=this._actualSize,this._infiniteGridRowBuffer>0&&(this.dataSize=r.range(),this.dataSize=this.dataSize.setRows(0,this._actualSize.rows.end+this._infiniteGridRowBuffer),this.dataSize=this.dataSize.setColumns(0,this._actualSize.columns.end+this._infiniteGridColumnBuffer)),this._clearBufferOnSizeChangedIfNeeded(i,e.size);try{this._pendingRangeList=[],this._alreadyRequestedRangeList=[],this._pendingMetaDataRangeList=[],this._alreadyRequestedMetaDataRangeList=[],this._tableConstructor&&this._tableConstructor.setSize&&this._tableConstructor.setSize(this.dataSize,this._actualSize),this._metaDataStore.clipMetaDataBufferToSize(this._actualSize,this.dataSize),this._on.emit("dataSizeChanged",{dataSize:this.dataSize,actualSize:this._actualSize})}catch(e){console.log(e)}}}},getLocalColumnSpanningMetaData:function(e){},fetchBufferData:function(e,t){var i=r.range().setRows(e.start,e.end).setColumns(t.start,t.end);this.managePaging([i])},inititalizeDataProvider:function(e){e&&(this._dataProvider=e,this.removeDataProviderListeners(),this._dataSizeChangedListener=e.on("dataSizeChanged",d.hitch(this,"_handleOnEvent","sizeHandler")),this._serverSetDataListener=e.on("dataChanged",d.hitch(this,"_handleOnEvent","_handleServerSetData")),this._metaDataChangedListener=e.on("metaDataChanged",d.hitch(this,"_handleOnEvent","_handleMetaDataChanged")),this._clearBufferListener=e.on("clearBuffer",d.hitch(this,"_handleOnEvent","_clearBuffer")),this._clearMetaDataBufferListener=e.on("clearMetaDataBuffer",d.hitch(this,"_handleOnEvent","_clearMetaDataBuffer")),this._dataProvider.bind(),this._fetchExistingData())},_fetchExistingData:function(){this._dataProvider.getSize().then(d.hitch(this,"sizeHandler"))},_handleOnEvent:function(e,t){this[e](t)},_clearBuffer:function(e){if(this._currentViewRange){var t,i;if(e.serverViewPortRange&&r.isRangeEqual(this._currentViewRange,e.serverViewPortRange))try{(t=this.getLocalRangeData(this._currentViewRange))&&t.length>0&&(i=[],t.forEach((function(e){i.push(e)})))}catch(e){}this._dataBuffer=this._removeRangesFromDataBuffer(this._dataBuffer,e.rangeList),i&&(this._dataBuffer=this._setRangeData(this._dataBuffer,this._currentViewRange,i))}else this._dataBuffer=this._removeRangesFromDataBuffer(this._dataBuffer,e.rangeList)},_removeRangesFromDataBuffer:function(e,t){if(e&&t){for(var i=e.slice(0),n=0;n<t.length;n+=1)i=this._removeSingleRangeFromDataBuffer(i,t[n]);return i}return e},_removeSingleRangeFromDataBuffer:function(e,t){for(var i=e.slice(0),n=[];i.length>0;){var o=i.pop(),a=o.range;if(r.doesRangeIntersect(a,t))for(var s=o.data,l=r.removeRangeFromRangeList([a],t),c=0;c<l.length;c+=1){for(var d=l[c],u=[],h=d.rows.start;h<=d.rows.end;h+=1){u[h-d.rows.start]=[];for(var p=d.columns.start;p<=d.columns.end;p+=1)u[h-d.rows.start][p-d.columns.start]=s[h-a.rows.start][p-a.columns.start]}n.push({range:d,data:u})}else n.push(o)}return n},_clearMetaDataBuffer:function(e){this._metaDataStore.clearModelProperties(e.metaDataType,e.rows,e.columns)},_rangeToArray:function(e,t){for(var i=[],n=e;n<=t;n+=1)i.push(n);return i},_handleMetaDataChanged:function(e){p.mark("RDS_Metadata_Received_From_Server_"+g),p.measure("RDS_Metadata_Fetch","RDS_Metadata_Requested_From_Server_"+g,"RDS_Metadata_Received_From_Server_"+g);var t=this._metaDataStore;if(e&&e.metaData&&e.type)try{if(t.clearModelProperties(e.type,this._rangeToArray(e.fullStartRow,e.fullEndRow),this._rangeToArray(e.fullStartColumn,e.fullEndColumn)),t.updateModelProperties(e.type,e.metaData),e.range&&this._alreadyRequestedMetaDataRangeList.length>0)for(let t=0;t<this._alreadyRequestedMetaDataRangeList.length;t+=1)if(r.isRangeEqual(this._alreadyRequestedMetaDataRangeList[t],e.range)){this._alreadyRequestedMetaDataRangeList.splice(t,1);break}}catch(e){console.log(e)}},_clearDataBufferIfNeeded:function(e){e&&e.partialData.range&&e.fullRange&&!r.isRangeEqual(e.fullRange,e.partialData.range)&&this._clearBuffer({rangeList:r.removeRangeFromRangeList([e.fullRange],e.partialData.range),serverViewPortRange:e.partialData.range})},_handleServerSetData:function(e){e&&e.partialData&&e.partialData.range&&(p.mark("RDS_Data_Received_From_Server_"+f),p.measure("RDS_Data_Fetch","RDS_Data_Requested_From_Server_"+f,"RDS_Data_Received_From_Server_"+f),this._clearDataBufferIfNeeded(e),this.updateData(e.partialData.data,e.partialData.range),this._dispatchServerFetchCompletedEvent(0))},_setupTableConstructorListeners:function(){this._tableConstructor&&this._tableConstructor.on&&(this._configurationChangedListener=this._tableConstructor.on("configurationChanged",d.hitch(this,"_handleConfigurationChanged")))},_handleConfigurationChanged:function(e){if(e&&e.configType&&e.configType.length>1&&e.range){var t=e.configType.toLowerCase().charAt(0).toUpperCase()+e.configType.toLowerCase().slice(1);t="paged"+t+"MetaDataChanged";try{this._on.emit(t,{rangeList:[e.range]})}catch(e){console.log(e)}}},_setupMetaDataStoreListeners:function(){if(this._metaDataStore&&this._metaDataStore.after){var e=this;this._MDSmetaDataChangedListener=this._metaDataStore.after(void 0,(function(t,i){try{e._on.emit(t,i);var n=e._actualSize||r.range().setRows(0,1/0).setColumns(0,1/0);e._emitDataChanged(n,"metadata")}catch(e){console.log(e)}})),this._clientTableMetaDataChangedListener=this._metaDataStore.on("clientTableMetaDataChanged",(function(t){var i=t.name,n=t.value;try{e._dataProvider.setMetaData("TableModelProperty",i,n)}catch(e){console.log(e)}}))}},sendViewportToServer:function(e){this._setViewportTimer&&clearTimeout(this._setViewportTimer);var t=this;this._setViewportTimer=setTimeout((function(){t._dataProvider.setViewportRange(e),t._on.emit("viewportUpdated",{viewportRange:e})}),200)},fetchDataFromServer:function(e){f+=1,p.mark("RDS_Data_Requested_From_Server_"+f),this._dataProvider.getData(e).then(d.hitch(this,"_handleServerSetData"))},fetchMetaDataFromServer:function(e){g+=1,p.mark("RDS_Metadata_Requested_From_Server_"+g),this._dataProvider.getMetaData(e).then(d.hitch(this,"_handleMetaDataChanged")),this._previousSize=void 0},_queueFilteredRanges:function(t,i,n,o,r){var a=this;a[o]&&clearTimeout(a[o]);var s=a._DataToolsRangeUtils.getUnbufferedRanges(a[i],t);if(s&&s.length>0){var l=a._DataToolsRangeUtils.getUnbufferedRanges(a[n],s);if(l){l.forEach((function(e){a[n].push(e)}));var c=a._DataToolsRangeUtils.consolidateRanges(a[n]);a[n].length=0,c.forEach((function(e){a[n].push(e)}))}}function d(){for(var t=0;t<a[n].length;t+=1){var o=a[n][t];if(o&&e.isValid(o.rows.count)&&e.isValid(o.columns.count)&&r)try{r(o)}catch(e){console.log("Exception trying to exeute queue callback:",e)}}a[i]=a[n],a[n]=[]}const u=a[i].length>0?200:0;0===a[i].length&&a[n].length>0?(p.mark("RDS_First_Data_Request"),d()):a[o]=setTimeout((function(){p.mark("RDS_Subsequent_Data_Request"),d()}),u)},managePaging:function(e){p.mark("RDSManagePaging");let t=e;Array.isArray(e)&&e.length>0&&(t=e[0]);const i=this._previousSize?this._previousSize:this._actualSize;r.isRangeEqual(this._currentViewRange,t)&&r.isRangeEqual(i,this._actualSize)||(this._currentViewRange=t,this.sendViewportToServer(this._currentViewRange));const n=this._adjustPagedRangesForInfiniteGrid(e);n&&n.length>0&&(this.setMetaDataBuffer(n),this.setDataBuffer(n)),this._adjustInfiniteGrid()},_adjustPagedRangesForInfiniteGrid:function(e){const t=this._actualSize;return e.reduce((function(e,i){if(i.rows.start<=t.rows.end&&i.columns.start<=t.columns.end){let n=i.setRows(i.rows.start,Math.min(i.rows.end,t.rows.end));n=n.setColumns(n.columns.start,Math.min(n.columns.end,t.columns.end)),e.push(n)}else(0===t.rows.count&&i.columns.start<=i.columns.end||0===t.columns.count&&i.rows.start<=i.rows.end)&&e.push(i);return e}),[])},_adjustInfiniteGrid:function(){if(this._currentViewRange&&this._infiniteGridRowBuffer>0){var e=!1;this._currentViewRange.rows.end>=this.dataSize.rows.end-20&&(this.dataSize=this.dataSize.setRows(0,this.dataSize.rows.end+this._infiniteGridRowBuffer),e=!0),this._currentViewRange.columns.end>=this.dataSize.columns.end-20&&(this.dataSize=this.dataSize.setColumns(0,this.dataSize.columns.end+this._infiniteGridColumnBuffer),e=!0),e&&this._on.emit("dataSizeChanged",{dataSize:this.dataSize})}},enableInfinitGrid:function(e,t){void 0===e&&(e=100),void 0===t&&(t=100),this._infiniteGridRowBuffer=e,this._infiniteGridColumnBuffer=t,this.dataSize=this._actualSize,this._infiniteGridRowBuffer>0&&(this.dataSize=r.range(),this.dataSize=this.dataSize.setRows(0,this._actualSize.rows.end+this._infiniteGridRowBuffer),this.dataSize=this.dataSize.setColumns(0,this._actualSize.columns.end+this._infiniteGridColumnBuffer)),this._tableConstructor&&this._tableConstructor.setSize&&this._tableConstructor.setSize(this.dataSize,this._actualSize),this._on.emit("dataSizeChanged",{dataSize:this.dataSize})},disableInfinitGrid:function(){this.enableInfinitGrid(0,0)},setDataBuffer:function(e){for(var t=this._dataBuffer.map((function(e){return e.range})),i=e.slice(0),n=0;n<t.length;n+=1)i=r.removeRangeFromRangeList(i,t[n]);if(i&&i.length>0){var o=this;this._queueFilteredRanges(i,"_alreadyRequestedRangeList","_pendingRangeList","_dataRequestTimer",(function(e){r.doesRangeIntersect(e,o._actualSize)&&(e=(e=e.setRows(e.rows.start,Math.min(e.rows.end,o._actualSize.rows.end))).setColumns(e.columns.start,Math.min(e.columns.end,o._actualSize.columns.end)),o._dispatchServerFetchInProgressEvent(),o.fetchDataFromServer(e),o._lastServerRangeRequested=e)}))}},setMetaDataBuffer:function(e){var t=[],i=this;e.forEach((function(e){var n=i._metaDataStore.hasModelPropertyRange(e);n.haveAllProps||(0===n.missingRange.rows.count&&(n.missingRange=n.missingRange.setRows(e.rows.start,e.rows.end)),0===n.missingRange.columns.count&&(n.missingRange=n.missingRange.setColumns(e.columns.start,e.columns.end)),t.push(n.missingRange))})),t.length>0&&this._queueFilteredRanges(t,"_alreadyRequestedMetaDataRangeList","_pendingMetaDataRangeList","_metaDataRequestTimer",(function(e){var t=i._actualSize,n=0===t.rows.count&&e.columns.start<=t.columns.end||0===t.columns.count&&e.rows.start<=t.rows.end;(r.doesRangeIntersect(e,t)||n)&&i.fetchMetaDataFromServer(e)}))},_dispatchServerFetchInProgressEvent:function(){this._actualSize.rows.count<=0||(this._fetchDataCallCounterForSpinner>1?this._on.emit("serverFetchInProgress",{}):this._fetchDataCallCounterForSpinner++)},_dispatchServerFetchCompletedEvent:function(e){this._serverFetchCompleteTimer&&clearTimeout(this._serverFetchCompleteTimer),void 0===e&&(e=50);var t=this;function i(){try{t._on.emit("serverFetchComplete",{}),t._serverFetchCompleteTimer=null}catch(e){console.log(e)}}e>0?this._serverFetchCompleteTimer=setTimeout((function(){i()}),e):i()},getLocalRowMetaData:function(e){if(this._tableConstructor)return this._tableConstructor.getRowConfig(e)},getLocalColumnMetaData:function(e){if(this._tableConstructor)return this._tableConstructor.getColumnConfig(e)},getLocalCellData:function(e,t,i){if(this._dataBuffer)for(var n=0;n<this._dataBuffer.length;n+=1){var o=this._dataBuffer[n].range,r=this._dataBuffer[n].data;if(o.rows.start<=e&&o.rows.end>=e&&o.columns.start<=t&&o.columns.end>=t)return i||this._dispatchServerFetchCompletedEvent(),r[e-o.rows.start][t-o.columns.start]}if(e>=this._actualSize.rows.count||t>=this._actualSize.columns.count)return""},getLocalCellMetaData:function(e,t){if(this._tableConstructor&&this._tableConstructor.getCellConfig)return this._tableConstructor.getCellConfig(e,t)},getLocalRangeData:function(e){var t=this._dataBuffer.map((function(e){return e.range})),i=[],n=this;if(this._DataToolsRangeUtils.rangeIsSinglePoint(e)){var o=!1;t.forEach((function(t){n._DataToolsRangeUtils.rangeHasPoint(t,e.rows.start,e.rows.end)&&(o=!0)})),o||(i=e)}else i=this._DataToolsRangeUtils.getUnbufferedRanges(t,[e]);if(i&&i.length>0)throw new Error("Data does not exist in buffer");for(var r=[],a=e.rows.start;a<=e.rows.end;a+=1){r[a]=[];for(var s=e.columns.start;s<=e.columns.end;s+=1)r[a][s]=this.getLocalCellData(a,s,!0)}return r},_getLocalRangeDataZeroBased:function(e){for(var t=this.getLocalRangeData(e),i=[],n=e.rows.start;n<=e.rows.end;n+=1){for(var o=[],r=e.columns.start;r<=e.columns.end;r+=1)o.push(t[n][r]);i.push(o)}return i},getMetaData:function(e){var t=[],i=new c((function(){})),n=this;return e.forEach((function(e){var i=n._metaDataStore.hasModelPropertyRange(e);i.haveAllProps||(0===i.missingRange.rows.count&&(i.missingRange=i.missingRange.setRows(e.rows.start,e.rows.end)),0===i.missingRange.columns.count&&(i.missingRange=i.missingRange.setColumns(e.columns.start,e.columns.end)),t.push(i.missingRange))})),t&&t.length>0?this._dataProvider.getMetaData(e[0]).then((function(e){n._handleMetaDataChanged(e);var t=[];t[0]=e,i.resolve(t)})):i.resolve(e[0]),i},getViewPortData:function(){var e=new c((function(){})),t=this;return this._dataProvider.getSize().then((function(i){var n=new c((function(){})),o=new c((function(){}));if(i.size&&0===i.size.rows.count)n.resolve(!0);else if(t._isAlreadyRequested(t._pendingRangeList,t._alreadyRequestedRangeList,t.getViewPortSize()))var r=t.on("dataChanged",(function(e){n.resolve(!0),r.remove()}));else t.getData([t.getViewPortSize()]).then((function(){n.resolve(!0)}));if(i.size&&0===i.size.columns.count)o.resolve(!0);else if(t._isAlreadyRequested(t._pendingMetaDataRangeList,t._alreadyRequestedMetaDataRangeList,t.getViewPortSize()))var a=t._dataProvider.on("metaDataChanged",(function(e){o.resolve(!0),a.remove()}));else t.getMetaData([t.getViewPortSize()]).then((function(){o.resolve(!0)}));n.then((function(){o.then((function(){e.resolve(!0)}))}))})),e},_isAlreadyRequested:function(e,t,i){return(e.length>0||t.length>0)&&r.doesRangeListIntersect([i],e.concat(t))},getData:function(e){var t=this,i=new c((function(){}));if(!e)return null;var n=this._dataBuffer.map((function(e){return e.range})),o=e;if(1===e.length&&this._DataToolsRangeUtils.rangeIsSinglePoint(e[0])){for(var a=!1,s=0;s<n.length&&!(a=a||n.length>0&&r.isRangeInside(n[s],e[0]));s+=1);a&&(o=[])}else o=this._DataToolsRangeUtils.getUnbufferedRanges(n,e);var l=[];if(o&&o.length>0)r.isRangeInside(this._actualSize,e[0])?this._dataProvider.getData(e[0]).then((function(e){t._handleServerSetData(e),(l=[]).push(e.partialData.data),i.resolve(l)})):((l=[])[e[0].rows.start]=[],l[e[0].rows.start][e[0].columns.start]="",i.resolve([l]));else{l=[];for(var d=0;d<e.length;d+=1)l[d]=this.getLocalRangeData(e[d]);i.resolve(l)}return i},getZeroBasedRangeData:function(e){var t=[];try{t=this._getLocalRangeDataZeroBased(e)}catch(e){s.error(e)}return t},getViewPortSize:function(){return this._currentViewRange},add:function(e,t){},remove:function(e){},sort:function(e){this._on.emit("columnSorted",{columnIndex:[e[0].columnIndex],order:e[0].order})},replaceAll:function(e){var t=0,i=0;e&&(t=e.length,e[0]&&(i=e[0].length)),this._lastServerRangeRequested=r.range().setRows(0,t).setColumns(0,i),this._dataBuffer=e},_setRangeData:function(e,t,i){var n=e?e.map((function(e){return e.range})):[],o=this,a=[];if(!t)return e;if(n&&n.length>0){o._DataToolsRangeUtils.getMinimumRanges(n,t).forEach((function(n){for(var s=[],l=n.rows.start;l<=n.rows.end;l+=1){var c=n.rows.start;s[l-c]=[]}for(var d=0;d<e.length;d+=1){var u=e[d].range,h=e[d].data;if(o._DataToolsRangeUtils.isStrictIntersection(u,n)||r.isRangeInside(n,u))for(l=n.rows.start;l<=n.rows.end;l+=1)for(var p=n.columns.start;p<=n.columns.end;p+=1){c=n.rows.start;var f=n.columns.start,g=u.rows.start,m=u.columns.start;o._DataToolsRangeUtils.rangeHasPoint(u,l,p)&&(s[l-c][p-f]=h[l-g][p-m])}}if(o._DataToolsRangeUtils.isStrictIntersection(t,n)||r.isRangeInside(n,t))for(l=n.rows.start;l<=n.rows.end;l+=1)for(p=n.columns.start;p<=n.columns.end;p+=1)o._DataToolsRangeUtils.rangeHasPoint(t,l,p)&&(c=n.rows.start,f=n.columns.start,g=t.rows.start,m=t.columns.start,i&&i[l-g]&&void 0!==i[l-g][p-m]?s[l-c][p-f]=i[l-g][p-m]:s[l-c][p-f]=void 0);a.push({range:n,data:s,lastUpdate:Date.now()})}));for(var s=0;s<this._alreadyRequestedRangeList.length;s+=1){var l=this._alreadyRequestedRangeList[s];if(r.isRangeEqual(l,t)){this._alreadyRequestedRangeList.splice(s,1);break}}}else a.push({range:t,data:i,lastUpdate:Date.now()});return a},_removeEmitDataChangedTimer:function(e,t){for(var i=-1,n=0;n<this._dataChangedEmitTimers.length;n++){var o=this._dataChangedEmitTimers[n];if(r.isRangeEqual(e,o.range)&&(!t||t===o.source)){clearTimeout(o.timer),i=n;break}}-1!==i&&this._dataChangedEmitTimers.splice(i,1)},_emitDataChanged:function(e,t){var i=this;this._dataChangedEmitTimers?this._removeEmitDataChangedTimer(e,t):this._dataChangedEmitTimers=[],this._dataChangedEmitTimers.push({range:e,timer:setTimeout((function(){try{i._on.emit("dataChanged",{rangeList:[e],source:t})}catch(e){console.log(e)}i._removeEmitDataChangedTimer(e,t)}),10),source:t})},updateData:function(e,t){this._dataBuffer=this._setRangeData(this._dataBuffer,t,e),this._infiniteGridRowBuffer>0&&(r.doesRangeIntersect(this._currentViewRange,t)||r.isRangeInside(this._currentViewRange,t))&&(t=this._currentViewRange),this._emitDataChanged(t)},updateHeader:function(e){},update:function(e,t){if(e.rows.count!==t.length)throw new Error("Range rows count "+e.rows.count+" does not match data.length for update");var i=!1;if(!r.isRangeInside(this._actualSize,e)){if(!(this._infiniteGridRowBuffer>0))throw new Error("Range exceeds dataSize for update");i=!0}for(var n=0;n<t.length;n+=1)if(t[n].length!==e.columns.count)throw new Error("data["+n+"] needs to contain "+e.columns.count+" columns of data for update");var o=this,a=this._getLocalRangeDataZeroBased(e);i||(this._dataBuffer=this._setRangeData(this._dataBuffer,e,t));var s=new c;return this._dataProvider.setData(e,t).then((function(t){t&&t.status?"success"===t.status||(t.status,o.updateData(a,e)):(console.log("Unknown Status Returned",t),o.updateData(a,e))})),s.resolve({}),s},getDataProviderChannel:function(){return this._dataProvider.channel},updateColumnHeader:function(e){this._on.emit("columnHeaderUpdated",{columnIndex:e.id,value:e.value});var t=new c;return t.resolve({}),t},updateRowHeader:function(e,t){this._on.emit("rowHeaderUpdated",{rowIndex:e.rowIndex,value:t.value});var i=new c;return i.resolve({}),i},removeDataProviderListeners:function(){this._dataSizeChangedListener&&(delete this._dataSizeChangedListener,this._dataSizeChangedListener=void 0),this._serverSetDataListener&&(delete this._serverSetDataListener,this._serverSetDataListener=void 0),this._metaDataChangedListener&&(delete this._metaDataChangedListener,this._metaDataChangedListener=void 0),this._clearBufferListener&&(this._clearBufferListener.remove(),this._clearBufferListener=void 0),this._clearMetaDataBufferListener&&(this._clearMetaDataBufferListener.remove(),this._clearMetaDataBufferListener=void 0)},destroy:function(){this.removeDataProviderListeners(),this._dataProvider&&this._dataProvider.destroy&&this._dataProvider.destroy(),this._MDSmetaDataChangedListener&&(this._MDSmetaDataChangedListener.remove(),this._MDSmetaDataChangedListener=void 0),this._clientTableMetaDataChangedListener&&(this._clientTableMetaDataChangedListener.remove(),this._clientTableMetaDataChangedListener=void 0),this._configurationChangedListener&&(this._configurationChangedListener.remove(),this._configurationChangedListener=void 0),this._defaultTableConstructor&&(this._metaDataStore&&this._metaDataStore.destroy&&this._metaDataStore.destroy(),this._tableConstructor&&this._tableConstructor.destroy&&this._tableConstructor.destroy()),this._serverFetchCompleteTimer&&clearTimeout(this._serverFetchCompleteTimer),this._setViewportTimer&&clearTimeout(this._setViewportTimer),this._dataRequestTimer&&clearTimeout(this._dataRequestTimer),this._metaDataRequestTimer&&clearTimeout(this._metaDataRequestTimer),this._serverFetchCompleteTimer=null,this._setViewportTimer=null,this._dataRequestTimer=null,this._metaDataRequestTimer=null},on:function(e,t){return this._on.on(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(209),i(530),i(239),i(235),i(230)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";return e("datatoolsservices.Data.MetaDataStore",[a],{constructor:function(){this._tableModelProperties=[],this._columnModelProperties=[],this._rowModelProperties=[],this._cellModelProperties=[],this._on=new n},updateModelProperties:function(e,t){var i=JSON.parse(t),n=this;if("TableModelProperties"===e)this._tableModelProperties=i,this._emitTableMetaDataChanged();else if("ColumnModelProperties"===e){if(i.length>0){i.forEach((function(e){n._columnModelProperties[e.ColumnNumber-1]=e}));var o=i[0].ColumnNumber-1,r=i[i.length-1].ColumnNumber-1;this._emitColumnMetaDataChanged(o,r)}}else if("RowModelProperties"===e){if(i.length>0){i.forEach((function(e){n._rowModelProperties[e.RowNumber-1]=e}));var a=i[0].RowNumber-1,s=i[i.length-1].RowNumber-1;a>-1&&s>-1&&this._emitRowMetaDataChanged(a,s)}}else if("CellModelProperties"===e){a=1/0,s=-1,o=1/0,r=-1,i.forEach((function(e,t){e.forEach((function(e,t){var i=e.RowNumber-1,l=e.ColumnNumber-1;n._cellModelProperties[i]||(n._cellModelProperties[i]=[]),n._cellModelProperties[i][l]=e,a=Math.min(i,a),s=Math.max(i,s),o=Math.min(l,o),r=Math.max(l,r)}))})),a!==1/0&&o!==1/0&&a>-1&&o>-1&&this._emitCellMetaDataChanged(a,s,o,r)}},_emitTableMetaDataChanged:function(){try{var e=[o.range().setRows(0,1/0).setColumns(0,1/0)];this._on.emit("pagedTableMetaDataChanged",{rangeList:e}),this._emitColumnMetaDataChanged(e[0].columns.start,e[0].columns.end)}catch(e){console.log(e)}},_emitClientTableMetaDataChanged:function(e,t){try{var i=[o.range().setRows(0,1/0).setColumns(0,1/0)];this._on.emit("clientTableMetaDataChanged",{name:e,value:t}),this._emitColumnMetaDataChanged(i[0].columns.start,i[0].columns.end)}catch(e){console.log(e)}},_emitColumnMetaDataChanged:function(e,t){try{var i=[o.range().setRows(0,1/0).setColumns(e,t)];this._on.emit("pagedColumnMetaDataChanged",{rangeList:i})}catch(e){console.log(e)}},_emitRowMetaDataChanged:function(e,t){try{var i=[o.range().setColumns(0,1/0).setRows(e,t)];this._on.emit("pagedRowMetaDataChanged",{rangeList:i})}catch(e){console.log(e)}},_emitCellMetaDataChanged:function(e,t,i,n){try{var r=[o.range().setRows(e,t).setColumns(i,n)];this._on.emit("pagedCellMetaDataChanged",{rangeList:r})}catch(e){console.log(e)}},clipMetaDataBufferToSize:function(e,t){var i=e.rows.count,n=e.columns.count,o=this._rowModelProperties.length,r=this._columnModelProperties.length,a=o-i,s=r-n;if(this._rowModelProperties=this._rowModelProperties.slice(0,i),this._columnModelProperties=this._columnModelProperties.slice(0,n),this._cellModelProperties=this._cellModelProperties.slice(0,i),this._cellModelProperties.length>0)for(var l=0;l<i;l+=1)Array.isArray(this._cellModelProperties[l])&&(this._cellModelProperties[l]=this._cellModelProperties[l].slice(0,n));a>0&&i<t.rows.count&&this._emitRowMetaDataChanged(o-a,o),s>0&&n<t.columns.count&&this._emitColumnMetaDataChanged(r-s,r)},clearModelProperties:function(e,t,i){var n=this;if("TableModelProperties"===e)n._tableModelProperties={};else if("ColumnModelProperties"===e)i.length>0&&i.forEach((function(e){n._columnModelProperties[e]=void 0}));else if("RowModelProperties"===e)t.length>0&&t.forEach((function(e){n._rowModelProperties[e]=void 0}));else if("CellModelProperties"===e)if(Array.isArray(t))t.forEach((function(e){if(Array.isArray(i))i.forEach((function(t){var i=e,o=t;n._cellModelProperties[i]||(n._cellModelProperties[i]=[]),n._cellModelProperties[i][o]=void 0}));else{var t=e,o=i||0;n._cellModelProperties[t]||(n._cellModelProperties[t]=[]),n._cellModelProperties[t][o]=void 0}}));else if(Array.isArray(i))i.forEach((function(e){var i=t,o=e;n._cellModelProperties[i]||(n._cellModelProperties[i]=[]),n._cellModelProperties[i][o]=void 0}));else{var o=t,r=i||0;n._cellModelProperties[o]||(n._cellModelProperties[o]=[]),n._cellModelProperties[o][r]=void 0}},hasModelPropertyRange:function(e){if(!(e&&this._columnModelProperties&&this._cellModelProperties&&this._rowModelProperties))return!1;for(var t,i,n,r,a=!0,s=e.rows.start;s<=e.rows.end;s+=1){var l=Array.isArray(this._rowModelProperties)&&void 0!==this._rowModelProperties[s];a=a&&l,l||void 0!==t||(t=s),l||(i=s)}for(var c=e.columns.start;c<=e.columns.end;c+=1){var d=Array.isArray(this._columnModelProperties)&&void 0!==this._columnModelProperties[c];a=a&&d,d||void 0!==n||(n=c),d||(r=c)}for(s=e.rows.start;s<=e.rows.end;s+=1)for(c=e.columns.start;c<=e.columns.end;c+=1){var u=Array.isArray(this._cellModelProperties)&&void 0!==this._cellModelProperties[s],h=l&&Array.isArray(this._cellModelProperties[s])&&void 0!==this._cellModelProperties[s][c],p=u&&h;a=a&&p,p||((void 0===t||t>s)&&(t=s),i=s,(void 0===n||n>c)&&(n=c),r=e.columns.end)}var f=o.range();return a||(void 0!==t&&(f=f.setRows(t,i)),void 0!==n&&(f=f.setColumns(n,r))),{haveAllProps:a,missingRange:f}},getModelProperty:function(e,t,i,n){return"TableModelProperty"===e&&this._tableModelProperties?this._tableModelProperties[t]:"ColumnModelProperty"===e&&this._columnModelProperties&&this._columnModelProperties[n]?this._columnModelProperties[n][t]:"RowModelProperty"===e&&this._rowModelProperties&&this._rowModelProperties[i]?this._rowModelProperties[i][t]:"CellModelProperty"===e&&this._cellModelProperties&&this._cellModelProperties[i]&&this._cellModelProperties[i][n]?this._cellModelProperties[i][n][t]:void 0},getTableModelProperty:function(e){return this.getModelProperty("TableModelProperty",e)},setTableModelProperty:function(e,t){this._tableModelProperties.hasOwnProperty(e)&&i.warn("Property being overridden"),e?(this._tableModelProperties[e]=t,this._emitClientTableMetaDataChanged(e,t)):i.warn("Please provide a valid property name")},getColumnModelProperty:function(e,t){return this.getModelProperty("ColumnModelProperty",e,void 0,t)},getRowModelProperty:function(e,t){return this.getModelProperty("RowModelProperty",e,t,void 0)},getCellModelProperty:function(e,t,i){return this.getModelProperty("CellModelProperty",e,t,i)},hasTableModelProperty:function(e){return this._tableModelProperties&&this._tableModelProperties.hasOwnProperty(e)},hasRowModelProperty:function(e,t){return this._rowModelProperties&&this._rowModelProperties[e]&&this._rowModelProperties[e].hasOwnProperty(t)},hasColumnModelProperty:function(e,t){return this._columnModelProperties&&this._columnModelProperties[e]&&this._columnModelProperties[e].hasOwnProperty(t)},hasCellModelProperty:function(e,t,i){return this._cellModelProperties&&this._cellModelProperties[e]&&this._cellModelProperties[e][t]&&this._cellModelProperties[e][t].hasOwnProperty(i)},getCellModelPropertyValue:function(e,t,i,n,o){return n&&n.hasOwnProperty(i)?n[i]:this.hasCellModelProperty(e,t,i)?this._cellModelProperties[e][t][i]:this.hasColumnModelProperty(t,i)?this._columnModelProperties[t][i]:this.hasRowModelProperty(e,i)?this._rowModelProperties[e][i]:this.hasTableModelProperty(i)?this._tableModelProperties[i]:void 0!==o?o:void 0},getCellProperties:function(e,t){var i={};return this._cellModelProperties&&this._cellModelProperties[e]&&this._cellModelProperties[e][t]&&(i=r.mergeObjects(i,this._cellModelProperties[e][t])),i},getColumnProperties:function(e){var t={};return this._columnModelProperties&&this._columnModelProperties[e]&&(t=r.mergeObjects(t,this._columnModelProperties[e])),t},getRowProperties:function(e){var t={};return this._rowModelProperties&&this._rowModelProperties[e]&&(t=r.mergeObjects(t,this._rowModelProperties[e])),t},getTableProperties:function(){var e={};return this._tableModelProperties&&(e=r.mergeObjects(e,this._tableModelProperties)),e},setColumnProperties:function(e,t){var i={};this._columnModelProperties&&this._columnModelProperties[e]&&(i=r.mergeObjects(i,t),this._columnModelProperties[e]=i)},on:function(e,t){return this._on.on(e,t)},after:function(e,i){return t.after(this._on,"emit",(function(t,n){if(t===e||!e)try{i(t,n)}catch(e){console.log(e)}}),!0)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(239),i(235),i(530),i(203),i(230)],o=i.dj.d(n,(function(e,t,i,n,o){return n("datatoolsservices.Data.TableConstructor",[o],{constructor:function(e){this._columnConfigs=[],this._on=new i,this._metaDataStore=e,this._counter=0,this._setupMetaDataStoreListeners()},_setupMetaDataStoreListeners:function(){if(this._metaDataStore){this._mdsColumnListener=this._metaDataStore.on("pagedColumnMetaDataChanged",this._handlePagedColumnMetaDataChanged.bind(this)),this._mdsTableListener=this._metaDataStore.on("pagedTableMetaDataChanged",this._handlePagedTableMetaDataChanged.bind(this))}},_handlePagedColumnMetaDataChanged:function(e){this._invalidateColumnConfigCache()},_handlePagedTableMetaDataChanged:function(e){this._invalidateColumnConfigCache()},getMetaDataStore:function(){return this._metaDataStore},getHeaderHierarchy:function(e){return{value:{}}},getCellConfig:function(e,t){var i={},n=this.getCellStyles(e,t),o=this.getAdditionalCellProperties(e,t);const r=this.getRendererConfig(e,t,n);return this._metaDataStore&&this._metaDataStore.getCellProperties&&(i={style:n}),o&&(i.custom=o),r&&(i.rendererConfig=r),i},getCellStyles:function(e,i){var n=this._metaDataStore.getTableModelProperty("style"),o=this._metaDataStore.getRowModelProperty("style",e),r=this._metaDataStore.getColumnModelProperty("style",i),a=this._metaDataStore.getCellModelPropertyValue(e,i,"style",{},{}),s=t.mergeObjects(n,o);return s=t.mergeObjects(s,r),s=t.mergeObjects(s,a)},getAdditionalCellProperties:function(e,t){return this._metaDataStore.getCellProperties(e,t)},getRendererConfig:function(e,t,i){return i},getRowConfig:function(e){var t=this.getRowLabel(e),i=this.getRowStyles(e),n=this.getAdditionalRowProperties(e),o={label:t,style:i};return n&&(o.custom=n),o},getRowLabel:function(e){var t=this._metaDataStore.getRowModelProperty("RowName",e);return null===t?void 0:t},getRowStyles:function(e){var i=this._metaDataStore.getTableModelProperty("style"),n=this._metaDataStore.getRowModelProperty("style",e);return t.mergeObjects(i,n)},getAdditionalRowProperties:function(e){return this._metaDataStore.getRowProperties(e)},getColumnConfig:function(e){return this._columnConfigs&&this._columnConfigs[e]||this._updateColumnConfig(e),this._columnConfigs[e]},_constructColumnConfiguration:function(e){var t=this.getColumnHeaderLabel(e),i=this.isColumnSortingEnabled(e),n=this.getSortType(e,i),o=this.isHeaderMenuEnabled(e),r=this.getColumnWidth(e),a=this.getRenderer(e),s=this.getHeaderRenderer(e),l=this.getHeaderEditor(e),c=this.getColumnID(e),d=this.getColumnIndex(e),u=this.getEditor(e),h=this.getInteractiveRenderer(e),p=this.getHideable(e),f=this.getHidden(e),g=this.getColumnStyles(e),m=this.getAdditionalColumnProperties(e),_={label:t,dataIndex:d,width:"object"==typeof r?r:{value:r||75,unit:"px"},sortType:n,headerMenu:o,renderer:a,headerRenderer:s,headerEditor:l,editor:u,interactiveRenderer:h,hideable:p,hidden:f,style:g,columnId:c};return m&&(_.custom=m),_},getColumnStyles:function(e){var i=this._metaDataStore.getTableModelProperty("style"),n=this._metaDataStore.getColumnModelProperty("style",e);return t.mergeObjects(i,n)},getAdditionalColumnProperties:function(e){return this._metaDataStore.getColumnProperties(e)},getEditor:function(e){},getInteractiveRenderer:function(e){},isHeaderMenuEnabled:function(e){return this.isTableSortable()&&this.getColumnSortable(e)},isColumnSortingEnabled:function(e){return!1},getHideable:function(e){return!1},getHidden:function(e){return!1},isTableSortable:function(){return!0},getColumnIndex:function(e){return e},getColumnHeaderLabel:function(e){return!this._metaDataStore.hasTableModelProperty("ShowColumnHeaderLabels")||this._metaDataStore.getTableModelProperty("ShowColumnHeaderLabels")?this._metaDataStore.getColumnModelProperty("HeaderName",e)||"":void 0},getColumnSortable:function(e){return this._metaDataStore.getColumnModelProperty("IsSortable",e)},getSortType:function(e,t){return!0===t?"NUMERIC":void 0},getColumnWidth:function(e){return 75},getRenderer:function(e){},getHeaderRenderer:function(e){},getHeaderEditor:function(e){},getColumnID:function(e){return e+1},_invalidateColumnConfigCache:function(){for(var e=this._columnConfigs.length-1;e>=0;e-=1)delete this._columnConfigs[e],this._columnConfigs[e]=void 0},_updateColumnConfigRange:function(e,t){for(var i=e;i<=t;i+=1)this._updateColumnConfig(i)},_updateColumnConfig:function(e){this._columnConfigs||(this._columnConfigs=[]),this._columnConfigs[e]&&(delete this._columnConfigs[e].renderer,delete this._columnConfigs[e]),this._columnConfigs[e]=this.createColumnConfig(e)},createColumnConfig:function(e){return this._constructColumnConfiguration(e)},getColumnModelConfig:function(e){return{dataTestId:this._counter++,columnModel:{columnConfig:e}}},_emitConfigurationChanged:function(e,t){var i={configType:e,range:t};this._invalidateColumnConfigCache(),this._on.emit("configurationChanged",i)},getColumnConfigForRange:function(e){var t,i=[];if(e){for(t=e.columns.start;t<=e.columns.end;t+=1)i.push(this.getColumnConfig(t));return this.getColumnModelConfig(i)}},setSize:function(e,t){this._size=e,this._actualSize=t},destroy:function(){this._mdsColumnListener&&this._mdsColumnListener.remove(),this._mdsTableListener&&this._mdsTableListener.remove()},on:function(e,t){return this._on.on(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2282),i(530),i(203),i(204),i(212),i(239),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i("datatoolsservices.Data.PubSubDataProvider",[e],{constructor:function(e,t,i){this._size=null,this.viewProps=i,e&&this.inititalizeMessageService(e)},inititalizeMessageService:function(e){this.channel=e,a.start(),a.subscribe(e,"_martialServerMessage",this),this.getSize()},bind:function(){this._notifyOfExisitingProperties()},_martialServerMessage:function(e){switch(e.data.eventType){case 2:this._handleServerSetData(e);break;case 1:this.sizeHandler(e);break;case 9:this._handleSetDataStatus(e);break;case 3:case 4:case 5:case 6:this._handleServerMetaDataSet(e)}},_handleSetDataStatus:function(e){var t=e.data.status,i=e.data,n=e.data.row,o=n,a=e.data.column,s=a;try{var l={status:t,range:r.range().setRows(n,o).setColumns(a,s),data:i};this._setDataPromiseBuffer.length>0?this._setDataPromiseBuffer=this._flushRequestPromiseBuffer(this._setDataPromiseBuffer,l):this._on.emit("dataChangeStatus",l)}catch(e){console.log(e)}},_notifyOfExisitingProperties:function(){},_handleServerSetData:function(e){if(e&&e.data){var t=this._getParsedData(e.data),i=Math.max(e.data.startRow,0),n=Math.max(e.data.startRow+e.data.rowCount-1||0,-1),o=Math.max(e.data.startColumn,0),a=Math.max(e.data.startColumn+e.data.columnCount-1||0,-1),s=Math.max(e.data.fullStartRow,0),l=Math.max(e.data.fullEndRow,0),c=Math.max(e.data.fullStartColumn,0),d=Math.max(e.data.fullEndColumn,0);try{var u={fullRange:r.range().setRows(s,l).setColumns(c,d),partialData:{range:r.range().setRows(i,n).setColumns(o,a),data:t}};this._getDataPromiseBuffer.length>0?this._getDataPromiseBuffer=this._flushRequestPromiseBuffer(this._getDataPromiseBuffer,u):this._on.emit("dataChanged",u)}catch(e){console.log(e)}}},_handleServerMetaDataSet:function(e){try{var t={type:e.data.metaDataType,metaData:e.data.properties,startRow:e.data.startRow,endRow:e.data.endRow,startColumn:e.data.startColumn,endColumn:e.data.endColumn,fullStartRow:e.data.fullStartRow,fullEndRow:e.data.fullEndRow,fullStartColumn:e.data.fullStartColumn,fullEndColumn:e.data.fullEndColumn};this._getMetaDataPromiseBuffer.length>0?this._flushMetaDataQueue(t):this._on.emit("metaDataChanged",t)}catch(e){console.log(e)}},_getParsedData:function(e){var t,i=e.startRow||0,n=e.endRow||0,o=e.startColumn||0,r=e.endColumn||0,a=e.partialData||null,s=n-i+1,l=r-o+1;try{t=this._adjustArraysFromServerEncode(a,s,l)}catch(e){return null}return t},_adjustArraysFromServerEncode:function(e,t,i){var n=JSON.parse(e),o=[];if(t<=1&&i<=1)return o[0]=[],o[0][0]=JSON.parse(n),o;if(t>1)o=i>1?n.map((function(e){return e.map((function(e){return JSON.parse(e)}))})):n.map((function(e){return[JSON.parse(e)]}));else if(i>1){var r=n.map((function(e){return JSON.parse(e)}));(o=[])[0]=r}return o},_flushMetaDataQueue:function(e,t){this._getMetaDataPromiseBuffer.length>0&&(this._getMetaDataPromiseBuffer=this._flushRequestPromiseBuffer(this._getMetaDataPromiseBuffer,e))},sizeHandler:function(e){if(e&&e.data){var t=e.data,i=r.range().setRows(0,t.rowCount-1).setColumns(0,t.columnCount-1);this.dataSize=i}if(this.dataSize)try{var n={size:this.dataSize};this._getSizePromiseBuffer.length>0?this._getSizePromiseBuffer=this._flushRequestPromiseBuffer(this._getSizePromiseBuffer,n):this._on.emit("dataSizeChanged",n)}catch(e){console.log(e)}},getSize:function(){var e=this.inherited(arguments);return this.dataSize&&(this.dataSize.rows.count>0||this.dataSize.columns.count>0)?this.sizeHandler():this._getSizePromiseBuffer.length<2&&a.publish(this.channel,{eventType:13}),e},setData:function(e,t){var i=this.inherited(arguments),n=t[0][0];try{a.publish(this.channel,{eventType:12,data:n,row:e.rows.start+1,column:e.columns.start+1})}catch(e){console.log(e)}return i},getData:function(e){var t=this.inherited(arguments);return a.publish(this.channel,{eventType:11,startRow:e.rows.start,endRow:e.rows.end,startColumn:e.columns.start,endColumn:e.columns.end}),t},setViewportRange:function(e){a.publish(this.channel,{eventType:10,startRow:e.rows.start,endRow:e.rows.end,startColumn:e.columns.start,endColumn:e.columns.end})},getMetaData:function(e){var t=this.inherited(arguments);return e||(e=r.range()),a.publish(this.channel,{eventType:14,startRow:e.rows.start,endRow:e.rows.end,startColumn:e.columns.start,endColumn:e.columns.end}),t},setMetaData:function(e,t,i){var n=this._getEventTypeForMetaData(e);a.publish(this.channel,{eventType:n,property:t,value:i})},_getEventTypeForMetaData:function(e){return"TableModelProperty"===e?15:"ColumnModelProperty"===e?16:"RowModelProperty"===e?17:"CellModelProperty"===e?18:void 0},destroy:function(){a.unsubscribe(this.channel,"_martialServerMessage",this)},on:function(e,t){return this._on.on(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(595),i(301),i(842)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{emits:["selectionChanged"],constructor:function(e){this.adaptor=e.adaptor,this._attachEventListeners(),e.adaptor.selectHeaders=!0,e.adaptor.applyToCells=!0},_attachEventListeners:function(){var e=this._handleSelectionChanged.bind(this),t=n.event;this.adaptor.on(t.COLUMN_SELECTION,e),this.adaptor.on(t.RANGE_SELECTION,e)},_handleSelectionChanged:function(e){var t=this._getRangeToSelect(e);this._emitSelectionChanged(t)},_emitSelectionChanged:function(e){this._isEqual(e,this.adaptor.getSelection())||(this.adaptor.setSelection(e),this.emit("selectionChanged",{rangeList:this.adaptor.getSelection()}))},_isEqual:function(e,i){if(e.length!==i.length)return!1;var n,o=i;for(n=0;n<e.length;n++)o=t.removeRangeFromRangeList(o,e[n]);if(0!==o.length)return!1;for(o=e,n=0;n<i.length;n++)o=t.removeRangeFromRangeList(o,i[n]);return 0===o.length},_getRangeToSelect:function(e){throw new Error("The fucnton _getRangeToSelect should be implemented by sub-classes.")},_hasCtrlModifier:function(e){return e.ctrlKey||e.metaKey},_getColumnRange:function(e){return t.range().setEntireColumns(e.start,e.end)},getSelection:function(){return this.adaptor.getSelection()},setSelection:function(e){this.adaptor.setSelection(e)},exposedAPI:function(){return{setSelection:this.setSelection.bind(this),getSelection:this.getSelection.bind(this)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(256),i(377),i(736),i(961),i(6332),i(737)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=Object.freeze({getScrollableContentSize:function(){try{var e=this.getBoundingBox()}catch(e){return{width:0,height:0,right:0,top:0}}return{width:e.right,height:e.top,right:e.right,top:e.top}}}),d=Object.freeze({getScrollableContentSize:function(){var e=this.getBoundingBox(),t=this.getProperty("Padding")||[0,0,0,0],i=Math.floor(e.right-e.left+t[0]+t[2]),n=Math.floor(e.top-e.bottom+t[1]+t[3]);return{width:i,height:n,top:n,right:i}}});return e([s],{_scrollingEnabled:!1,_verticalOffset:0,_scrollbarWidth:0,_horizontalScrollRequired:!1,_verticalScrollRequired:!1,_scrollableViewportLocation:null,_ignoreScrollEvents:0,constructor:function(e){void 0!==e.viewState&&"design"===e.viewState.getViewMode()&&(this.isDesignMode=!0),this.getPeerNode().addEventListener("peerEvent",this._onPeerEvent,this)},destroy:function(){this.scrollTimer&&(clearTimeout(this.scrollTimer),delete this.scrollTimer),this.getPeerNode().removeEventListener("peerEvent",this._onPeerEvent,this),this._clearSignals(),this.inherited(arguments)},_clearSignals:function(){this._signals&&(this._signals.forEach((function(e){e.remove()})),this._signals=null)},createView:function(){this._createScrollableContentStrategy(),this.inherited(arguments)},useTopDownScrollableContentStrategy:function(){return!1},constructScrollableContentStrategy:function(e){return e},_createScrollableContentStrategy:function(){this.useTopDownScrollableContentStrategy()?t.mixin(this,this.constructScrollableContentStrategy(d)):t.mixin(this,this.constructScrollableContentStrategy(c))},_getScrollbarWidth:function(){return this._scrollbarWidth||(this._scrollbarWidth=a.getScrollbarWidth()),this._scrollbarWidth},_onBoundingBoxChanged:function(e){this._isScrollingEnabled()&&this.updateScrollableArea()},emitContainerResizeControllerEvent:function(e,t){this._isScrollingEnabled()?this._getLayoutManager()?this.updateScrollableArea().then(function(){e.emit(l.CONTAINER_RESIZE_EVENT_NAME,[t[0]-(this._verticalScrollRequired?this._getScrollbarWidth():0),t[1]-(this._horizontalScrollRequired?this._getScrollbarWidth():0)])}.bind(this)):this.updateScrollableArea().then((function(){e.emit(l.CONTAINER_RESIZE_EVENT_NAME,t)})):this.inherited(arguments)},_onPeerEvent:function(e){"scrollTo"===e.data.Name||"scrollTo"===e.data.type?this._scrollTo(e.data.Target):"positionChangedEvent"===e.data.Name&&this._isScrollingEnabled()&&this._sendScrollLocationToServer("scrollLocationChangedEvent")},_scrollTo:function(e){this._updatingScrollableArea?this._updatingScrollableArea.then(this._scrollTo.bind(this,e)):(console.assert(this._ignoreScrollEvents>=0),this._ignoreScrollEvents++,this.widget.scrollTo(e).then(function(e){this._defaultScrollableViewportLocation&&(delete this._defaultScrollableViewportLocation,this._scrollableViewportLocation=this._browserScrollLocationToMatlabPixels(e)),this._ignoreScrollEvents--,this._sendScrollLocationToServer("scrollLocationChangedEvent",{ScrollToResolved:!0})}.bind(this),function(){this._ignoreScrollEvents--}.bind(this)))},_browserScrollLocationToMatlabPixels:function(e){return[e[0]+1,this._verticalOffset-e[1]+1]},_matlabScrollLocationToBrowser:function(e){return[e[0]-1,this._verticalOffset-e[1]+1]},_sendScrollLocationToServer:function(e,t){var i=this.getPeerNode();if(i){e=e||"scrollLocationChangedEvent";var n=t&&t.ScrollToResolved||!1,o=this._browserScrollLocationToMatlabPixels(this.widget.getScrollLocation());i.dispatchEventToServer(e,{ScrollLocation:o,ScrollToResolved:n})}},_isScrollingEnabled:function(){return this._scrollingEnabled},enableScrolling:function(e){e=Object.assign({noAutoUpdateScrollableArea:!1},e||{}),this._scrollingEnabled=!0,this._defaultScrollableViewportLocation=!0,e.noAutoUpdateScrollableArea||(console.assert(!this._signals,"Should not have any event subscriptions at this point"),this._signals=[i(this,"containerBoundingBoxChanged",this._onBoundingBoxChanged.bind(this))]),o.preventScroll(this.widget.domNode),this.widget.set("Scrollable",!0),this.widget.set("topDownLayout",this.useTopDownScrollableContentStrategy()),this.updateScrollableArea(),this.startChangingChanged({eventSource:this.widget.getScrollableNode(),eventName:"scroll",changingCallback:function(){this._ignoreScrollEvents||this._sendScrollLocationToServer("scrollLocationChangingEvent")}.bind(this),changedCallback:function(){this._ignoreScrollEvents||this._sendScrollLocationToServer("scrollLocationChangedEvent")}.bind(this)})},disableScrolling:function(){this._scrollingEnabled=!1,this._horizontalScrollRequired=!1,this._verticalScrollRequired=!1,this._updateVerticalOffset(),this._setScrollableViewportLocation([1,1],{force:!0}),o.allowScroll(this.widget.domNode),this.widget.set("Scrollable",!1),this._clearSignals(),delete this._defaultScrollableViewportLocation,this.stopChangingChanged({eventSource:this.widget.getScrollableNode(),eventName:"scroll"}),this.widget.set("scrollbarRequired",{horizontal:!1,vertical:!1}),this.widget.set("scrollbarSizes",{horizontal:0,vertical:0}),this.widget.updateDomNodes(),this.emit("scrollableStateChanged",{horizontalScrollbarInset:0,verticalScrollbarInset:0})},_Scrollable:function(e){"on"===e||!0===e?this.enableScrolling():this.disableScrolling()},updateScrollableArea:function(){return this._updatingScrollableArea||(this._updatingScrollableArea=new Promise(function(e,t){clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(function(){null!==this.getPeerNode()&&(this._doUpdateScrollableArea(),this._sendScrollLocationToServer()),this._updatingScrollableArea=null,e()}.bind(this),r.THROTTLE_DELAY)}.bind(this))),this._updatingScrollableArea},_expandContentSize:function(e,i,n){i=i||this._getInnerPositionInPixels(),n=n||this._determineScrollbarVisibility();var o=0,r=0;return this.isDesignMode||(o=n.horizontal?this._getScrollbarWidth():0,r=n.vertical?this._getScrollbarWidth():0),t.mixin({},e,{width:Math.max(i[2]-r,e.width),height:Math.max(i[3]-o,e.height)})},_doUpdateScrollableArea:function(){var e=this._getInnerPositionInPixels(),t=this.getScrollableContentSize(),i=this._determineScrollbarVisibility(e),o=this._expandContentSize(t,e,i);if(t.width>e[2]){var r=e[2]-Math.floor(e[2]);o.width+=r}if(t.height>e[3]){var a=e[3]-Math.floor(e[3]);o.height+=a}this.widget.set("contentSize",o);var s=i.horizontal?this._getScrollbarWidth():0,l=i.vertical?this._getScrollbarWidth():0;this.widget.set("parentInnerPosition",[e[0],e[1],e[2]-l,e[3]-s]),this._horizontalScrollRequired===i.horizontal&&this._verticalScrollRequired===i.vertical||(this._horizontalScrollRequired=i.horizontal,this._verticalScrollRequired=i.vertical,this.widget.set("scrollbarRequired",i),this.widget.set("scrollbarSizes",{horizontal:s,vertical:l}),this.emit("scrollableStateChanged",{horizontalScrollbarInset:s,verticalScrollbarInset:l}),n.publish("ScrollableController/scrollableStateChanged",this,{contentSize:o})),this._updateVerticalOffset(),this.widget.updateDomNodes();var c=this.getPeerNode();c&&c.dispatchEventToServer("scrollContentsSizeChangedEvent",{ContentsSize:o,VerticalScrollbarInset:l,HorizontalScrollbarInset:s})},_determineScrollbarVisibility:function(e){if(!this._isScrollingEnabled())return{horizontal:!1,vertical:!1};var t=(e=e||this._getInnerPositionInPixels())[3],i=e[2],n=this.getScrollableContentSize(),o=this._getScrollbarWidth(),r=n.width>i,a=!1;return(a=r?n.height>t-o:n.height>t)&&!r&&(r=n.width>i-o),{horizontal:r,vertical:a}},_updateVerticalOffset:function(){var e=this._getInnerPositionInPixels()[3],t=this._horizontalScrollRequired?-this._getScrollbarWidth():0,i=Math.max(this.getBoundingBox().top-e,t);this._horizontalScrollRequired&&(i+=this._getScrollbarWidth()),this._verticalOffset=i},_clampScrollableViewportLocation:function(e){var t=this._getInnerPositionInPixels(),i=this._expandContentSize(this.getScrollableContentSize(),t,{horizontal:!1,vertical:!1});return[Math.min(e[0],i.width-t[2]+(this._verticalScrollRequired?this._getScrollbarWidth():0)+1),Math.min(e[1],i.height-t[3]+(this._horizontalScrollRequired?this._getScrollbarWidth():0)+1)]},_setScrollableViewportLocation:function(e,t){console.assert(this._ignoreScrollEvents>=0),this._ignoreScrollEvents++;var i=this._clampScrollableViewportLocation(e);return this._applyScrollableViewportLocation(i,t).then(function(){this._scrollableViewportLocation=i,i[0]===e[0]&&i[1]===e[1]||this._sendScrollLocationToServer(),this._ignoreScrollEvents--}.bind(this),function(){this._ignoreScrollEvents--}.bind(this))},_ScrollableViewportLocation:function(e){if(this._isScrollingEnabled()&&(!this._defaultScrollableViewportLocation||1!==e[0]||1!==e[1])){if(!this._updatingScrollableArea)return delete this._defaultScrollableViewportLocation,this._setScrollableViewportLocation(e);this._updatingScrollableArea.then(this._ScrollableViewportLocation.bind(this,e))}},_applyScrollableViewportLocation:function(e,t){var i=void 0!==t&&void 0!==t.force&&t.force,n=this._matlabScrollLocationToBrowser(e),o={};return(this._horizontalScrollRequired||i)&&(o.scrollLeft=n[0]),(this._verticalScrollRequired||i)&&(o.scrollTop=n[1]),this.widget.setScrollLocation(o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(6367)],o=i.dj.d(n,(e,t)=>{let i=["blur","click","contextmenu","dblclick","focus","input","keydown","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerup","touchend","touchmove","touchstart","wheel"];function n(e){if(e.target!==window)return function(e){return!e.hasOwnProperty("UITest")&&!0===e.isTrusted}(e)&&a(e.target)?(e.preventDefault(),void e.stopPropagation()):void e.target.id}class o{constructor(e,t){this._Messenger=e,this._figDiv=t,this._tooltipCSS=document.createElement("style"),this._tooltipCSS.innerHTML="[mw-tooltip = 'show'] { pointer-events: none; }"}enable(){o.isLocked(this._figDiv)||this._doFigLock(),this._Messenger.fulfill()}disable(){o.isLocked(this._figDiv)?(this._doFigUnlock(),this._Messenger.fulfill()):this._Messenger.fulfill()}elementFromPoint(e,t){let i;if(document.body.appendChild(this._tooltipCSS),o.isLocked(this._figDiv)){let n=r(this._figDiv);n.style.display="none",i=document.elementFromPoint(e,t),n.style.display=""}else i=document.elementFromPoint(e,t);return document.body.removeChild(this._tooltipCSS),i}_doFigLock(){let o=e.place("<div id='UITest_GlassPane' tabindex='1'></div>",this._figDiv),r=t.FigureIsLocked.replace("${0}","matlab.uitest.unlock");e.place("<div id='UITest_banner'>"+r+"</div>",o),i.forEach((function(e){window.addEventListener(e,n,!0)})),o.focus()}_doFigUnlock(){let e=r(this._figDiv);i.forEach((function(e){window.removeEventListener(e,n,!0)})),e.parentNode.removeChild(e)}}let r=function(e){return e.querySelector("#UITest_GlassPane")},a=function(e){if(void 0===e.getBoundingClientRect)return!1;let t=e.getBoundingClientRect(),i=t.left+t.width/2,n=t.top+t.height/2,o=document.elementFromPoint(i,n);return null!==o&&(o.hasAttribute("id")&&"UITest_GlassPane"===o.id)};return o.isLocked=function(e){return!!r(e)||a(e)},o},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1187),i(986)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_peer.RemoteTableViewModel",[t,i],{ROW_HEIGHT:22,constructor:function(e){this._tableStarted=!1},createTable:function(e){this.inherited(arguments)},_setRowHeight:function(){},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1189)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.mwTableRenderers.TableRendererBase",[t],{getParsedDataValue:function(e){try{var t=JSON.parse(e).value;return JSON.parse(t)}catch(t){return{value:e}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.renderers._VEEditorConverterMixin",[],{_converter:null,setEditorConverter:function(e){null!=e&&(this._converter=t.hitch(this,e))},convert:function(e){var t=e;return null!==this._converter&&(t=this._converter(e)),t},addSingleQuotesConverter:function(e){return"'"+e+"'"},datetimeConverter:function(e){var t=e;return null!=e&&""!==e||(t="NaT"),this.addSingleQuotesConverter(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(204),i(239),i(382),i(326),i(393),i(2322)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("variableeditor_client/Plugins/RowBasedSelection",[a,s],{_attachSetSelectionOnView:function(){this.inherited(arguments),this._view.allowSelectionRange=!1},_onViewSetSelection:function(e,t){var i=[];e.forEach((function(e){t.forEach((function(t){i.push(n.range().setRows(e.start,e.end).setColumns(t.start,t.end))}))})),this._view._table.setSelection(i)},_onTableSetSelection:function(){var e=this._view._table.getSelection();if(this._handleSelectionChanged(),e&&e.length>0){var t=e[0].rows.start,i=e[0].columns.start;this._view._table.setCellFocus([n.range().setRows(t,t).setColumns(i,i)])}},_handleSelectionChanged:function(){},getSelection:function(){if(this._view._table)return this._view._table.getSelection()},clearSelection:function(){if(this._view._table&&this._view._dataStore){var e=this.getSelectionRangeObject({startRow:0,endRow:-1,startColumn:0,endColumn:1});this._view._table.setSelection(e)}},setSelection:function(e){var t=this.getSelectionRangeObject(e);this._view._table&&this._view._table.setSelection(t)},getSelectionRangeObject:function(e){return o.createRange(e.startRow,e.endRow,e.startColumn,e.endColumn)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(206),i(273),i(262)],o=i.dj.d(n,(function(e,t,i,n,o){return e("variableeditor_peer/DialogCreationUtils",[],{_dialog:null,createDialog:function(e){if(!this._dialog){var i=e.dialogText||"",r=e.dialogContentClass,a=e.dialogClass,s=e.dialogTitle||"dialog",l=e.dialogTestID,c=document.createElement("div");c.innerText=i,t.add(c,r),this._dialog=o.createDialog({title:s,className:a,dialogType:o.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,"data-test-id":l,content:c,buttons:[{type:n.TYPE.DO_IT,label:e.OKButtonTitle,"data-test-id":"OkButton"},n.CANCEL]}),this._addDialogListeners()}},_addDialogListeners:function(){var e=this;this._dialog.addButtonEventListener(n.CANCEL,(function(){e.handleCancelButtonClick()})),this._dialog.addButtonEventListener(n.TYPE.DO_IT,(function(){e.handleOKButtonClick()}));var t=i(this._dialog.domNode,"close",(function(){t.remove(),e.destroy()}))},handleCancelButtonClick:function(){this.destroy()},handleOKButtonClick:function(){this.destroy()},destroy:function(){this._dialog&&(this._dialog.destroy(),this._dialog=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(210),i(278),i(635),i(987)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("variableeditor_peer/HeaderMenus/SelectionRangeMixin",[],{_SELECTION_MIN_ID:"SelectedRangeMin",_SELECTION_MAX_ID:"SelectedRangeMax",_SELECTED_MIN_RANGE_CLASS:"SelectedMinRange",_SELECTED_MAX_RANGE_CLASS:"SelectedMaxRange",_EDITED_CLASS:"edited",_MIN_TEXT_ENABLED_CLASS:"MinEnabled",_MAX_TEXT_ENABLED_CLASS:"MaxEnabled",_TEXT_WIDTH:104,_TEXT_HEIGHT:22,_aspectHandles:[],_selectedMinTooltip:a.selectedMinValTooltip,_selectedMaxTooltip:a.selectedMaxValTooltip,constructor:function(){this._aspectHandles=[],this._selectionMinRangeText=null,this._selectionMaxRangeText=null},createSelectionRangeFields:function(e){this._selectionMinRangeText=this._createTextField({classList:this._SELECTED_MIN_RANGE_CLASS,selectionProp:this._SELECTION_MIN_ID,width:this._TEXT_WIDTH,height:this._TEXT_HEIGHT},e),this._selectionMaxRangeText=this._createTextField({classList:this._SELECTED_MAX_RANGE_CLASS,selectionProp:this._SELECTION_MAX_ID,width:this._TEXT_WIDTH,height:this._TEXT_HEIGHT},e),this._aspectHandles.push(i.after(this._selectionMinRangeText,"valueChanged",t.hitch(this,"_handleTextFieldChanged",this._selectionMinRangeText))),this._aspectHandles.push(i.after(this._selectionMaxRangeText,"valueChanged",t.hitch(this,"_handleTextFieldChanged",this._selectionMaxRangeText))),this._disableSelectionRangeFields(!0)},_handleTextFieldChanged:function(e,t,i){var n=e.args.selectionProp,o=r[n],a={rows:{start:0,end:0,count:1},columns:{start:o,end:o,count:1}},s=i[0].newValue||e.args.previousValue;this._updateDataStore(a,[[s]])},_updateSelectionRangeFields:function(e){var t=e.getLocalCellData(0,r.rangeMinDispVal),i=e.getLocalCellData(0,r.rangeMaxDispVal),n=e.getLocalCellData(0,r.SelectedRangeMinFullPrecision),a=e.getLocalCellData(0,r.SelectedRangeMaxFullPrecision);if(t){this._setOriginalValue(this._selectionMinRangeText,r.OriginalMinFullPrecision,e),this._setOriginalValue(this._selectionMaxRangeText,r.OriginalMaxFullPrecision,e);var s=this._formatDisplayVal(t),l=this._formatDisplayVal(i),c=this._formatDisplayVal(n),d=this._formatDisplayVal(a),u=o.formatNumeric(s),h=o.formatNumeric(l);this._selectionMinRangeText.args.previousValue===s&&u===this._selectionMinRangeText.getValue("value")||this._updateSelectionRange(u,c,s,this._selectionMinRangeText,this._MIN_TEXT_ENABLED_CLASS),this._selectionMaxRangeText.args.previousValue===l&&h===this._selectionMaxRangeText.getValue("value")||this._updateSelectionRange(h,d,l,this._selectionMaxRangeText,this._MAX_TEXT_ENABLED_CLASS),this._disableSelectionRangeFields(!1),this._updateTextBoxToolTips()}},_updateTextBoxToolTips:function(){this._selectionMinRangeText.setValue("title",this._selectedMinTooltip),this._selectionMaxRangeText.setValue("title",this._selectedMaxTooltip)},_setOriginalValue:function(e,t,i){if(!e.originalValue){var n=i.getLocalCellData(0,t);n=this._formatDisplayVal(n),e.originalValue="Inf"===n||"-Inf"===n?n:parseFloat(n).toString()}},_updateSelectionRange:function(e,t,i,n,o){t="Inf"===t||"-Inf"===t?t:parseFloat(t).toString(),n.setArgs({previousValue:i,previousEditValue:t}),n.setValue("value",e),n.setValue("editValue",t),n.setValue("class",o)},_disableSelectionRangeFields:function(e){this._selectionMaxRangeText.setValue("disabled",e),this._selectionMinRangeText.setValue("disabled",e)},_updateSelectionRangeOnError:function(e){var t=e===r.SelectedRangeMin?this._selectionMinRangeText:this._selectionMaxRangeText,i=o.formatNumeric(t.args.previousValue),n=t.args.previousEditValue;t.setValue("value",i),t.setValue("editValue",n)},destroySelectionRange:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._selectionMinRangeText.destroy(),this._selectionMaxRangeText.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(214),i(206),i(204),i(210),i(258),i(278)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t(null,{_editing:!1,value:"",editValue:"",previousValue:"",previousEditValue:"",originalValue:null,_TEXT_BOX_CLASSNAME:"veTextField",_TEXT_BOX_FOCUS_CLASS:"veFocus",_EDITED_CLASS:"edited",constructor:function(e){this.args=e,this.width=e.width||"auto",this.height=e.height||"auto",this.textField=null,this.preventBlurOnChange=e.preventBlurOnChange||!1,this._init()},setArgs:function(e){Object.keys(e).length>0&&o.mixin(this.args,e)},_init:function(){this.textField=this.createTextField(this.width,this.height),this._initListeners(),this.args.classList&&r.add(this.textField.domNode,this.args.classList),r.add(this.textField.domNode,this._TEXT_BOX_CLASSNAME)},createTextField:function(e,t){return new a({width:e,height:t})},handleDrag:function(e){e.preventDefault()},handleMouseDown:function(e){var t=this.textField,i=this.getValue("editValue");t.inputNode.value=i,this._editing||(t.inputNode.select(),e.preventDefault())},handleMouseUp:function(e){this._editing||(e.preventDefault(),this._editing=!0)},handleFocus:function(e){r.add(this.textField.domNode,this._TEXT_BOX_FOCUS_CLASS)},handleBlur:function(){var t=this.textField,i=this.value||this.getValue("value");s.isIELikeBrowser()&&e.clearAllSelection(t.inputNode),t.inputNode.value=i,this._editing=!1,r.remove(this.textField.domNode,this._TEXT_BOX_FOCUS_CLASS)},getDomNode:function(){return this.textField.domNode},_initListeners:function(){this._mouseDownListener=this.textField.on("mousedown",o.hitch(this,"handleMouseDown")),this._mouseUpListener=this.textField.on("mouseup",o.hitch(this,"handleMouseUp")),this._dragStartListener=this.textField.on("dragstart",o.hitch(this,"handleDrag")),this._onFocusListener=i.after(this.textField,"onFocus",o.hitch(this,"handleFocus")),this._onBlurListener=i.after(this.textField,"onBlur",o.hitch(this,"handleBlur")),this._onChangeListener=this.textField.on("change",o.hitch(this,"handleChange"))},handleChange:function(e){this.preventBlurOnChange&&e.stopPropagation();var t=e.mwEventData;this.getValue("editValue")!==t.newValue&&this.args.previousValue!==t.newValue&&this.valueChanged(e.mwEventData)},valueChanged:function(e){this.value=e.newValue},startup:function(){this.textField.startup()},setValue:function(e,t){this.textField.set(e,t),this[e]=t,"editValue"===e&&this._handleEditState()},_handleEditState:function(){r.toggle(this.textField.domNode,this._EDITED_CLASS,this.editValue!==this.originalValue)},getValue:function(e){return this.textField.get(e)},destroy:function(){this.textField.destroy(),this._mouseDownListener.remove(),this._mouseUpListener.remove(),this._dragStartListener.remove(),this._onBlurListener.remove(),this._onFocusListener.remove(),this._onChangeListener.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={};return{getCharacterWidthForMonoSpace:function(t){if(!e[t.fontFamily]){var i=document.createElement("span");document.body.appendChild(i),i.style.fontFamily=t.fontFamily,i.style.fontSize=t.fontSize,i.textContent="a",e[t.fontFamily]=i.getBoundingClientRect().width,document.body.removeChild(i)}return e[t.fontFamily]}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(530),i(204),i(239),i(219),i(350),i(382),i(1548),i(2281),i(6531),i(1545),i(369),i(359),i(203),i(212),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return n.start(),h("variableeditor_peer.MixedDataStoreWrapper",[u],{_dataStore:null,_viewModel:null,_currentRange:i.range(),_colHeaderPromises:[],_rowHeaderPromises:[],_initialDataRowCount:null,_initialDataColumnCount:null,dataSize:i.range(),_tableConstructor:null,_MDSmetaDataChangedListener:null,dataStoreChannel:null,_bufferedColumnConfig:[],_enableInfiniteGrid:!1,constructor:function(t,i,n,r){this._on=new e,this._MDSmetaDataChangedListener=null,this._tableConstructor=i,Array.isArray(t)&&t.length>0&&(this._initialDataRowCount=t.length,this._initialDataColumnCount=t[0].length),this._dataStore=o.create(t,{type:f.TABLE}),this._bindDataStoreMethods(!1,n,r),this._bufferedColumnConfig=[]},__setSpanningHeaders:()=>{},__getSpanningHeaders:()=>{},__getHeaders:function(){return this._dataStore&&this._dataStore.__getHeaders?this._dataStore.__getHeaders():this._bufferedColumnConfig},__setHeaders:function(e){this._dataStore&&this._dataStore.__setHeaders?this._dataStore.__setHeaders(e):this._bufferedColumnConfig=e},setViewModel:function(e,t,n){this.dataStoreChannel=this._getChannelForDS(e,n);var o=this.createDataStore(n),r=this._dataStore;this._dataStore=o;var a,s=this.dataSize;e.hasOwnProperty("Size")?(a=e.Size,s=i.range().setRows(0,a.rowCount-1).setColumns(0,a.columnCount-1)):e.peerNode&&e.peerNode.hasProperty("Size")&&(a=e.getProperty("Size"),s=i.range().setRows(0,a.rowCount-1).setColumns(0,a.columnCount-1)),this._MDSmetaDataChangedListener&&this._MDSmetaDataChangedListener.remove(),this._bindDataStoreMethods(!0),this._initSize(o,s);var l=new(this._chooseDataStoreForView(n))(this.dataStoreChannel,t,e.propertyObj);this._dataStore.inititalizeDataProvider(l),this._initialDataRowCount&&this._initialDataColumnCount&&this._initialDataRowCount>0&&this._initialDataColumnCount>0&&this._restoreDataFromCurrentDataStore(r),this._bufferedColumnConfig.length>0&&this._dataStore.__setHeaders(this._bufferedColumnConfig),this._viewModel=e,o.enableInfiniteGrid&&this._enableInfiniteGrid&&o.enableInfiniteGrid()},_getChannelForDS:function(e,t){if(!t)return e.provider&&e.provider.channel||e.peerNode.getRoot().getProperty("Channel");if(e.provider&&e.provider.channel){if(e.peerDocument&&e.peerDocument.varDocID)return e.provider.channel+"_"+e.peerDocument.varDocID;if(e.allArgs.peerDocument&&e.allArgs.peerDocument.varDocID)return e.provider.channel+"_"+e.allArgs.peerDocument.varDocID}},_chooseDataStoreForView:function(e){return e?a:l},_restoreDataFromCurrentDataStore:function(e){var t=r.createRange(0,this._initialDataRowCount-1,0,this._initialDataColumnCount-1),i=this;e.getData(t).then((function(e){Array.isArray(e)&&e[0]&&e[0].length>0&&i._dataStore.updateData(e[0],e[0].range)}))},createDataStore:function(e){return e?new s(void 0,this._tableConstructor):new c(void 0,this._tableConstructor)},getDataStore:function(){return this._dataStore},_initSize:function(e,t){var i=e.dataSize;0===i.rows.count&&0===i.columns.count&&(this.dataSize=t,e.dataSize=t,e._actualSize=t,this._on.emit("dataSizeChanged",e.dataSize))},sizeHandler:function(){this._dataStore&&this._dataStore.sizeHandler&&this._dataStore.sizeHandler()},_bindDataStoreMethods:function(e,n,o){var r=this,a=this._dataStore;this.managePaging=function(e){r._currentRange=e,r._dataStore.managePaging&&r._dataStore.managePaging(e)},this.updateColumnHeader=function(e){if(r._dataStore.updateColumnHeader)return r._dataStore.updateColumnHeader(e);var t=new p;return t.resolve({}),t},this.updateRowHeader=function(e,t){if(r._dataStore.updateRowHeader)return r._dataStore.updateRowHeader(e,t);var i=new p;return i.resolve({}),i},this.getLocalCellData=function(e,t){if(r._dataStore.getLocalCellData)return r._dataStore.getLocalCellData(e,t)},this.getLocalCellMetaData=e?function(e,t){if(r._dataStore.getLocalCellMetaData)return r._dataStore.getLocalCellMetaData(e,t)}:function(e,t){return r._tableConstructor.getCellConfig(e,t)},this.getLocalColumnMetaData=e?function(e){if(r._dataStore.getLocalColumnMetaData)return r._dataStore.getLocalColumnMetaData(e)}:function(e){return r._tableConstructor.getColumnConfig(e)},this.getLocalRowMetaData=e?function(e){if(r._dataStore.getLocalRowMetaData)return r._dataStore.getLocalRowMetaData(e)}:function(e){return r._tableConstructor.getRowConfig(e)},this.getData=t.hitch(a,"getData"),this.add=t.hitch(a,"add"),this.replaceAll=t.hitch(a,"replaceAll"),this.getLocalColumnSpanningMetaData=function(e){return r._tableConstructor.getHeaderHierarchy(e)},a.update?this.update=t.hitch(a,"update"):this.update=function(){},a.on("dataChanged",t.hitch(this,"_reEmit")),a.on("dataSizeChanged",t.hitch(this,"_reEmit")),a.on("pagedColumnMetaDataChanged",t.hitch(this,"_reEmit")),a.on("pagedRowMetaDataChanged",t.hitch(this,"_reEmit")),a.dataSize&&(a.dataSize.rows.count<n||a.dataSize.columns.count<o)?this.dataSize=i.range().setRows(0,n-1).setColumns(0,o-1):a.dataSize&&a.dataSize.rows&&a.dataSize.rows.count>0&&a.dataSize.columns&&a.dataSize.columns.count>0&&(this.dataSize=a.dataSize)},_reEmit:function(e){var t=e.eventName;if(t&&this._on._events[t]){var n=this.dataSize;this.dataSize=this._dataStore.dataSize,"dataSizeChanged"!==t||i.isRangeEqual(n,this.dataSize)?"dataSizeChanged"!==t&&this._on.emit(t,e):this._on.emit(t,e)}},on:function(e,t){return this._on.on(e,t)},getRowHeaders:function(e){var t=new p((function(){}));return this._dataStore.hasOwnProperty("getRowHeaders")?this._dataStore.getRowHeaders(e):(this._rowData&&this._rowData.rowConfig?t.resolve(this._rowData.rowConfig):this._rowHeaderPromises.push(t),t)},sort:function(e){this._dataStore.sort(e)},_updateColumnHeaders:function(){var e=this;this._colHeaderPromises&&this._dataStore.getColumnHeaders().then((function(t){for(;e._colHeaderPromises.length>0;){var i=e._colHeaderPromises.pop();i.isResolved()||i.resolve(t)}}))},_updateRowHeaders:function(){var e=this;this._rowHeaderPromises&&this._dataStore.getRowHeaders().then((function(t){for(;e._rowHeaderPromises.length>0;){var i=e._rowHeaderPromises.pop();i.isResolved()||i.resolve(t)}}))},updateHeader:function(e){},enableInfiniteGrid:function(){this._enableInfiniteGrid=!0,this._dataStore&&this._dataStore.enableInfinitGrid&&this._dataStore.enableInfinitGrid()},disableInfiniteGrid:function(){this._enableInfiniteGrid=!1,this._dataStore&&this._dataStore.disableInfiniteGrid&&this._dataStore.disableInfiniteGrid()},remove:function(e){},destroy:function(){this._dataStore&&this._dataStore.destroy&&this._dataStore.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(256),i(229)],o=i.dj.d(n,(function(e,t,i){return e("datatoolsservices.ContextMenuService.ContextUpdateManager",[],{constructor:function(e){this.defaultContextId=e.defaultContextId||"",this.contextChannel=e.contextUpdateChannel||"",this.managerChannel=e.managerChannel||"",this.contextManager=e.contextManagerInstance||null,this.currentContext=[],this.contextType=e.contextType,this.init()},init:function(){this._setUpContextWatch(),this.contextManager&&t.subscribe(this.contextChannel,function(e){e.subContext&&this._updateSubContext(e),e.clearContext&&this.isCurrentContext()&&(this.setCurrentContext([]),this.currentContext=[])}.bind(this))},_setUpContextWatch:function(){if(this.contextManager){var e=this,t=this.defaultContextId;this.contextManager.watch(this.contextType,(function(n,o,r){var a=r.appId;n!==e.contextType||!a||a!==t||o&&i.arrayEquals(o.contextIdList,r.contextIdList)||e.setCurrentContext(e.currentContext.slice())}))}},setCurrentContext:function(e,t){var i=this.defaultContextId;e&&this.contextManager&&this.contextManager.set&&this.contextManager.set(this.contextType,{appId:i,contextIdList:e,metaContext:t})},isCurrentContext:function(){let e=this.contextManager?this.contextManager.get(this.contextType):null;return e&&e.appId===this.defaultContextId},_updateSubContext:function(e){e.subContext.length>0?(this.currentContext=e.subContext,this.setCurrentContext(e.subContext,e.metaContext)):this.setCurrentContext(this.currentContext)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2360),i(235),i(2361),i(630),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("variableeditor_peer.MF0ViewModelVEProvider",[i,o],{mf0ViewModelManager:null,_FACTORY_CLASS:"variableeditor_peer/MF0ViewModelManagerFactory",_PEERMODEL_MANAGER_CHANNEL:"/VariableEditorManager",_VIEWMODEL_MANAGER_CHANNEL:"/VariableEditorVMManager",_init:function(e){this.args=e,a.subscribe(e.channel+"/variableEditorServerInitialized","serverInitialized",this),a.publish(e.channel+"/queryInitStatus",{})},_createViewModelManager:function(e){var t=this;this.channel=e.channel||this._VIEWMODEL_MANAGER_CHANNEL,e&&(this.messageService=e.messageService,this.channelPrefix=e.channel||this._VIEWMODEL_MANAGER_CHANNEL);var i=r.CPPMF0ViewModel;this.mf0ViewModelManager=i.getViewModelManager(this.channel),this.mf0ViewModelManager.addEventListener("rootSet",function(e){e.data.root.addEventListener("destroyed",function(){this.mf0ViewModelManager.destroy()}.bind(this))}.bind(this)),this.mf0ViewModelManager.addEventListener("rootSet",(function(i){t._isReady=!0;var n=t.getPropertyObject(i.target);n._peerNode=i.target,e.manager.serverReady(n,t),i.data.root.dispatchEvent("CreateManager",i.data.root,{})}))},setupManagerListeners:function(e){var t=this,i=e.propertyObj._peerNode;i.addEventListener("childAdded",(function(i){var n=t.getPropertyObject(i.data.child);n._peerNode=i.data.child,e._addDocument(n)})),i.addEventListener("childRemoved",(function(i){var n=t.getPropertyObject(i.data.child);e.removeDocument(n)})),i.addEventListener("peerEvent",(function(t){e.handleRemoteEvent(t)})),i.addEventListener("propertySet",(function(t){e.handlePropertySet(t)}))},setupDocumentListeners:function(e){var t=this,i=e.propertyObj._peerNode;i.addEventListener("childAdded",(function(i){var n=t.getPropertyObject(i.data.child);n._peerNode=i.data.child,e._handleViewAdded(n)})),i.addEventListener("childRemoved",(function(i){var n=t.getPropertyObject(i.data.child);e._handleChildRemoved(n)})),i.addEventListener("peerEvent",(function(t){e.handleRemoteEvent(t)})),i.addEventListener("propertySet",(function(t){e.handlePropertySet(t)}))},setupViewListeners:function(e){var t=e.propertyObj._peerNode;t.addEventListener("propertySet",(function(t){e.handlePropertySet(t)})),t.addEventListener("peerEvent",(function(t){e.handleRemoteEvent(t)}))},serverInitialized:function(e){this._createViewModelManager(this.args),a.unsubscribe(this.channel+"/variableEditorServerInitialized","serverInitialized",this)},getPropertyObject:function(e){var t=e.getProperties();return e.getChildren().length>0&&(t.children=e.getChildren()),t},getViewObject:function(e){return e.getProperties()},isReady:function(){return this._isReady},dispatchEventToServer:function(e,t){var i={};(i=e.propertyObj._peerNode)&&i.dispatchEvent("peerEvent",i,t)},setPropertyOnServer:function(e,t,i){var n={};(n=e.propertyObj._peerNode)&&(i.Source="Client",n.setProperty(t,i),e.propertyObj.propertyName=i)},getRoot:function(){return this.mf0ViewModelManager.getRoot()},getUIDForObject:function(e){return e.propertyObj._peerNode._id},_stop:function(){a.publish(this.channel+"/DeleteManager",{}),this._isReady=!1},destroy:function(e){this.inherited(arguments),this._stop();var t=e;t.channel=this.channel}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(214),i(212),i(211),i(210),i(206),i(225),i(231),i(6543),i(2362),i(1564),i(6544),i(716),i(935),i(679),i(477),i(527),i(247),i(239),i(209),i(667),i(1185),i(2363),i(278),i(6545),i(6546),i(506),i(2339),i(366),i(693),i(596),i(1565)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P){return e([g,d,I,M],{_TABLEVIEW_ROW_COUNT:9,_TABLEVIEW_COLUMN_COUNT:7,_TABLEVIEW_EXPORT_ROW_COUNT:100,_TABLEVIEW_EXPORT_COLUMN_COUNT:100,_TABLE_TYPE:"table",_TIME_TABLE_TYPE:"timetable",_TIMES_SYMBOL:"×",_VERTICAL_ELLIPSIS_UC:"⋮",_MIDLINE_HORIZONTAL_ELLIPSIS_UC:"⋯",_CONTEXT:"liveeditor",_PREVIEW_CONTEXT:"preview",_POPOUT_CONTEXT:"popout",_SAVE_LOAD_CONTEXT:"saveload",_CLIENT_ONLY_CONTEXT:"ClientOnly",_SAVELOAD_METADATA_FIELDS:["ColumnWidth"],_CODEGEN_MINWIDTH:200,_MAX_COLUMNS_SAVED:30,type:"interactiveVariable",_STRING_DISPLAY_PLUGIN:"STRING_DISPLAY",_OVERLAY_PREPOPULATED_DATA:"overlayPrepopulatedData",_VALUESUMMARYCSS:"headerElementClickToInteract",constructor:function(e){this._data=e.data,this._outputMetaData=e.outputMetaData,this._editorId=e.editorId,this._documentView=e.view,this._stateHandler=e.stateHandler,this._interactiveVariablePopoutHandler=e.interactiveVariablePopoutHandler,this._outputChangeNotifier=e.outputChangeNotifier,this._cursorController=e.cursorController,this._currentoutputservice=e.currentOutputService,this._codeGenFactory=e.CodeGenFactory,this._ve_channel=this._data.ve_channel,this._focusService=e.focusService,this._outputsModel=e.outputsModel,this._document=e.document,this._codePublishService=null,this._outputViewID="",this.currentSize={},this._aspectHandles=[],this._showSummaryBar=!0,this._outputInitialized=!1,this._gestureHandlerInitialized=!1,this._serverInitialized=!1,this._clickListenerAdded=!1,this._valueSummaryMouseDownListener=null,this._valueSummaryMouseClickListener=null,this._varDoc=null,this._varView=null,this._initializeVariableOutput(e)},_initializeVariableOutput:function(e){if(this._data.name=this._data.name||"",this._data.header=this._data.header||"",this._data.value&&this._data.value.slice&&(this._valueStringData=this._data.value.slice()),this._populateVarSize(),this._populateVarType(),(!w.isValid(this._data.rows)||!w.isValid(this._data.columns))&&this._data.varSize){var t=w.getDimsFromVarSize(this._data.varSize);this._data.rows=t.rows,this._data.columns=t.columns}this._data.columnWidths||(this._data.columnWidths=[]),this._MAX_COLUMNS_SAVED=Math.min(this._data.columns,this._MAX_COLUMNS_SAVED),this._setOutputContext(),this._isSaveLoad()?(this._data.isSortable=[],this._data.isFilterable=[]):(this._embeddedOutputsView=e.embeddedOutputsView,this._aspectHandles.push(n.after(this._currentoutputservice,"onOutputSelected",i.hitch(this,"_handleOutputSelectionChanges"),!0)),e.data.metadata&&(this._data.groupedColumns=u.getGroupedColumnsFromServerData(e.data.metadata))),this._createVariableDocument(),this._domElement=this._createDomElement(),this._promptController=this._createPromptController(),this._setPromptControllerTarget(),this.setCurrentSize(0,this._data.rows-1,0,this._data.columns-1)},_populateVarSize:function(){var e=null;if(this._data.header){var t=document.createElement("div");t.innerHTML=this._data.header,e=t.firstChild.textContent.split(" ")[0],t.remove()}!e&&this._data.rows&&this._data.columns&&(e=this._data.rows+"×"+this._data.columns),this._data.varSize=e||this._data.varSize},_populateVarType:function(){if(!this._data.varType){var e=this._data.type||this._data.subtype;!e&&this._data.header&&(e=this._data.header.match(/>(.*)</))&&0!==e.length&&(e=e[1].trim()),this._data.varType=e}},_addValueSummaryListeners:function(){var e=this._domElement.getElementsByClassName(this._VALUESUMMARYCSS)[0];e&&(this._valueSummaryMouseDownListener=s(e,"mousedown",i.hitch(this,"_handleMouseEventsOnValueSummary")),this._valueSummaryMouseClickListener=s(e,"click",i.hitch(this,"_handleMouseEventsOnValueSummary")))},_handleMouseEventsOnValueSummary:function(e){this._varView&&this._varView._table&&(this._varView._table.focus(),e.stopPropagation(),e.preventDefault())},_setOutputContext:function(){var e=this._CONTEXT;this.setContext(e),this._data.isPreview?this.setSubContext(this._PREVIEW_CONTEXT):this._isSaveLoad()&&this.setSubContext(this._SAVE_LOAD_CONTEXT)},_handleOutputSelectionChanges:function(e){e.focusedOutput===this&&!0!==this._focused?this._handleOutputFocused(e):e.focusedOutput!==this&&!0===this._focused&&this._handleOutputBlurred(e)},_handleOutputFocused:function(){this._focused=!0,this._addValueSummaryListeners()},_handleOutputBlurred:function(){this._focused=!1,this._removeValueSummaryListeners()},_handleOutputFocusChanged:function(){},_createVariableDocument:function(){this._varDoc=this.createInteractiveVariableDocument()},getCssTag:function(){return this._CSS_TAG},getDomElement:function(){return this._domElement},getClientDocument:function(){return this._varDoc.domNode},getSerializableData:function(){var e,t={header:this._data.header,name:this._data.name,varSize:this._data.varSize||this._data.rows+this._TIMES_SYMBOL+this._data.columns,rows:this._data.rows,columns:this._data.columns,varType:this._data.varType||this._data.subtype,value:this._valueStringData||this._data.value,type:this._data.subtype||this._data.type},i=this._data.savedData||this._data.savedPrepopulatedData;(i&&(t.savedData=i),this._data.metadata&&(t.metadata=this._data.metadata),this._data.truncationInfo&&(t.truncationInfo=this._data.truncationInfo),this._data.exponent&&"1"!==this._data.exponent&&(t.exponent=this._data.exponent),"logical"!==this._data.type&&(t.subtype=this._data.subtype),w.isTypeNumeric(this._data.type))?this._data.prepopulatedData&&(e=1===this._data.rows||1===this._data.columns?[JSON.parse(this._data.prepopulatedData)]:[JSON.parse(this._data.prepopulatedData)[0]],t.prepopulatedData=JSON.stringify(e)):this._data.columnWidth&&(t.columnWidth=this._data.columnWidth);if(Array.isArray(t.metadata)&&(t.metadata={}),w.isTypeTable(this._data.subtype)&&!this._isSaveLoad()){var n,o=[];for(n=0;n<this._data.columnClass.length;n+=1)o[n]={GroupColumnSize:this._data.groupedColumns[n],class:this._data.columnClass[n],HeaderName:this._data.columnHeaderLabels[n],ColumnWidth:this._data.columnWidths[n]};if(t.metadata.ColumnModelProperties=JSON.stringify(o),(!this._data.metadata.RowModelProperties||this._data.metadata.RowModelProperties&&0===this._data.metadata.RowModelProperties.length)&&this._data.rowHeaderLabels){var r,a=[];for(r=0;r<this._data.rowHeaderLabels.length;r+=1)a[r]={RowName:this._data.rowHeaderLabels[r]};t.metadata.RowModelProperties=JSON.stringify(a)}}return t},_updateCssClass:function(e){var t=this;e.getView?e.getView(this._outputViewID).then((function(i){var n=i.getDataStore();if(n){var o=n.dataSize;o&&o.rows&&o.rows.count>=t._TABLEVIEW_ROW_COUNT&&a.add(e.domNode,"constrictHeight")}else C.warn("Data Store was empty, could not update CSS on document")})):e.data&&e.data.length>=t._TABLEVIEW_ROW_COUNT&&a.add(e.domNode,"constrictHeight")},_attachListeners:function(e){var t=this;e.getView(this._outputViewID).then((function(e){t._varView=e,t._attachListenersOnView(e),t._documentView&&t._documentView.onResize&&(t._onResizeListener=n.after(t._documentView,"onResize",(function(e){t._varView&&t._varView.resize&&t._varView.resize(),t._codeGenerator&&t.checkToHideCodegen()})))})),this._stateHandler&&t._stateHandler.attachListener(this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED,i.hitch(this,"_handleEvaluationStart"))},_attachListenersOnView:function(e){var t=[L.SIZE_CHANGED,L.VIEW_RENDERED,L.DATA_CHANGED,L.COLUMN_META_DATA_CHANGED];this.initListenersOnView(e,t),this._outputChangeNotifier&&this._aspectHandles.push(n.after(e,"onViewStateChanged",i.hitch(this,"_handleViewStateChanged"),!0));var o=this;this._aspectHandles.push(n.before(e,"handleContextMenuRequested",(function(e){o._cursorController.clearSelection(),o._focusService.setBlur()})))},_handleViewRendered:function(e){if(!this._outputInitialized){var t=this._varView;this._initializeCodePublishing(t.provider.getUIDForObject(t)),this._prefetchDataForExport(t),this._outputInitialized=!0,this.removeListener(L.VIEW_RENDERED,this.viewRenderingCompleteListener),delete this.viewRenderingCompleteListener}},_handleDataChanged:function(e){var t=e.data.rangeList[0],i=this._varView.getDataStore().getViewPortSize();!this._serverInitialized&&y.isRangeInside(t,i)&&(this._serverInitialized=!0,this._removeOverlay()),this._handleDataChangedForExport(t)},_handleSizeChanged:function(e){var t=e.data.dataSize;this.setCurrentSize(t.rows.start,t.rows.end,t.columns.start,t.columns.end)},_handleColumnMetaDataChanged:function(e){var t=e.data;if(this._shouldSaveLoadUpdate(t)){var i=t.rangeList[0],n=i.columns.start,o=Math.min(i.columns.end,this._MAX_COLUMNS_SAVED-1),r={columns:{start:n,end:o,count:o-n+1}};this._updateColumnWidths(r)}this._serverInitialized||(this._serverInitialized=!0,this._removeOverlay())},_handleViewStateChanged:function(e){N.VIEW_STATE_CHANGE_EVENTS.indexOf(e.type)>-1&&this._outputChangeNotifier.outputChanged()},_handleEvaluationStart:function(){this._varView&&this._varView.blurView&&this._varView.blurView()},checkToHideCodegen:function(){var e=this._domElement.offsetWidth;this._CODEGEN_MINWIDTH>=e&&e>0?this._codeGenerator.disable():this._codeGenerator.enable()},_addGestureHandler:function(){var e=this._varView;if(e&&e._table){var t=this.getDomElement();this._gestureDetector=this._getGestureDetectorInstance(t),this._addGestureHandlerForDownEvent()}},_addGestureHandlerForDownEvent:function(){this._gestureDetector.add(v.tapmove({options:{numTaps:0},callbacks:{began:i.hitch(this,(function(e){e.srcEvent.stopPropagation()}))}}))},_initializeCodePublishing:function(e){if(null===this._codePublishService){this._codePublishService=new A({executionService:this,context:e,document:this._document})}},_getGestureDetectorInstance:function(e){return new _(e)},setCurrentSize:function(e,t,i,n){this.currentSize.rows={start:e,end:t},this.currentSize.columns={start:i,end:n}},_createPromptController:function(){return this._outputMetaData&&this._outputMetaData.evaluationId&&m.LOADED_FROM_DISK_EVALUATION_ID===this._outputMetaData.evaluationId?this._createRunScriptPromptController():this._applyPromptController()},_createRunScriptPromptController:function(){return new p},_createPromptControllerInstance:function(){return new h},_applyPromptController:function(){var e=this._createPromptControllerInstance();return e.addInteractionListener(i.hitch(this,"_openCallback")),e},_openCallback:function(){var e=this._getPopoutCreationArgs();this._interactiveVariablePopoutHandler.launchPopout(e)},_getPopoutCreationArgs:function(e){return{docid:this._data.doc_id}},_shouldSaveLoadUpdate:function(e){return e.rangeList&&e.rangeList[0]&&e.rangeList[0].columns.start<this._MAX_COLUMNS_SAVED},startup:function(){var e=this;this.onOutputReady().then((function(){s.emit(e.getClientDocument(),"startup",{bubbles:!0,cancelable:!0})}))},onOutputReady:function(e){var t=e||this._varDoc,i=new o;return t.getView(this._outputViewID).then((function(){i.resolve(!0)})),i},_preventEventHandlingOnTable:function(){if(!this._clickListenerAdded){var e=l(x.TABLE_COMPONENT_QUERY_CLASS,this._varView._table.domNode);if(e[0]&&e[0].firstChild){var t=this;e[0].firstChild.addEventListener("click",(function(e){a.contains(e.target,x.TABLE_HEADER_MENU_AFFORDANCE)||(e.stopPropagation(),t._currentoutputservice.requestFocus(t))}))}this._clickListenerAdded=!0}},_initializeGestureHandler:function(){this._gestureHandlerInitialized||(this._addGestureHandler(),this._gestureHandlerInitialized=!0)},getTableData:function(){var e=[],t=this._getExportObject(),i=t.headers?t.headers.slice():[],n=t.data?t.data.slice():[],o=t.rowHeaders?t.rowHeaders.slice():[],r=t.columnSpan?t.columnSpan.slice():[],a=t.headerColors?t.headerColors.slice():[],s=t.cellColors?t.cellColors.slice():[],l=t.columnCount,c=this._getColumnCount(r,l);if(i.length>0){var d=t.tableMetadata&&t.tableMetadata.CornerSpacerTitle?t.tableMetadata.CornerSpacerTitle:" ";i.unshift(d),e.push(i)}return n.forEach((function(e,t){var i=this._getRowHeaderLabel(o,t);e.unshift(i)}),this),r.unshift(1),{data:e=e.concat(n),colSpan:r,columnCount:c,headerColors:a,cellColors:s}},getColumnColors:function(){},_getRowHeaderLabel:function(e,t){var i=String(t+1);return e.length>0&&e[t]&&(i+=" "+e[t]),i},_getColumnCount:function(e,t){var i=t+1;return e&&e.forEach((function(e){e>1&&(i+=e-1)})),i},getVariableType:function(){return this._varDoc.varType},isTabularOutput:function(){return w.isTypeTable(this._data.subtype)||w.isRichTabularView(this._data.subtype,this._data.dataAttributes)},_getValueString:function(){return this._data.value||""},_isSaveLoadUseCase:function(){return this._outputMetaData&&this._outputMetaData.evaluationId&&m.LOADED_FROM_DISK_EVALUATION_ID===this._outputMetaData.evaluationId},_createName:function(e){return b.treatHtmlLikeCommandWindow(e)+" = "},_createText:function(e){var t;return"\n"!==e.substr(-1)&&(e+="\n"),t=T.normalizeNewlines(e),t=b.treatHtmlLikeCommandWindow(t)},_createDomElement:function(){var e=r.create("div");return r.place(this._varDoc.domNode,e),this._updateNodeStyles(e),e},_updateNodeStyles:function(){},createInteractiveVariableDocument:function(){var e=null;return this._outputViewID="__1",this._isSaveLoad()?(e=this._loadDataFromSavedObject(),this.onOutputReady(e).then(function(){this._varView=e.getViewByType(D.VARIABLE_VIEW_TYPE),e.parentViewToDocument(this._varView)}.bind(this))):(e=this.buildInteractiveVariableDocument(),this._data.context&&this._data.context===this._CLIENT_ONLY_CONTEXT||this._addOverlay(e),this._attachListeners(e)),e&&this._updateCssClass(e),e},_addOverlay:function(e){var t=r.create("div",{className:this._OVERLAY_PREPOPULATED_DATA}),i=e?e.domNode:this._varDoc.domNode;i&&i.insertBefore(t,i.firstChild)},_removeOverlay:function(){this._varDoc.domNode&&0!==this._varDoc.domNode.getElementsByClassName(this._OVERLAY_PREPOPULATED_DATA).length&&this._varDoc.domNode.removeChild(this._varDoc.domNode.getElementsByClassName(this._OVERLAY_PREPOPULATED_DATA)[0])},_getPromptControllerTargetNode:function(){return this._varDoc.domNode},_setPromptControllerTarget:function(){var e=this._getPromptControllerTargetNode();e&&this._promptController&&this._promptController.setTarget(e)},_loadDataFromSavedObject:function(){var e=this._getManagerInstance({editable:!1}),t=u._constructMetaDataForSaveLoad(this._data),i=this._data.savedData?this._data.savedData:this._data.savedPrepopulatedData?this._data.savedPrepopulatedData:[],n=this._getDataForSaveLoad(i),o=this._data.varType||this._data.subtype||this._data.type;Array.isArray(n[0])||(n=[n]);var r={data:n,metaData:t,varName:this._data.name,varSize:this._data.varSize,varType:o,containerType:this._data.subtype||o,userContext:this.getContext(),viewID:this._outputViewID,dataAttributes:this._data.dataAttributes||""},a=r.rowData&&0!==r.rowData.length?r.rowData:r.metaData&&r.metaData.rowMetadata?r.metaData.rowMetadata:null;if(a){var s=a.filter((function(e){return e&&(e.label||e.RowName)}));w.isTypeTimeTable(r.varType)&&s.length>0&&(r=u.adjustRowTimesForLegacyTimeTables(r))}return e.openDocument("",r)},_getDataForSaveLoad:function(e){return u.constructDataForSaveLoad(e)},_isSaveLoad:function(){return this._outputMetaData&&this._outputMetaData.evaluationId&&m.LOADED_FROM_DISK_EVALUATION_ID===this._outputMetaData.evaluationId},_getManagerInstance:function(e){return new E(e)},buildInteractiveVariableDocument:function(){var e=this._createSaveLoadData(),t=this._getManager({channel:this._data.ve_channel,editable:!1});return this._getInteractiveDocument(t,this._data.varSize,this._data.varType,e.data,e.metaData,this.getSummaryBarStatus())},_createSaveLoadData:function(){var e=this.getPrepopulatedData();return this._createSaveObjectWithPrepopulatedData(e),e},getPrepopulatedData:function(){return u.getPrepopulatedData(this._data)},_getInteractiveDocument:function(e,t,i,n,o,r){var a=this,s=e.openDocument(this._data.doc_id,{varDocID:this._data.doc_id,workspace:this._data.workspace||"base",varName:this._data.name,varSize:t,rows:this._data.rows,columns:this._data.columns,varType:i,containerType:this._data.subtype||i,data:n,metaData:o,viewType:this._data.viewType,showSummaryBar:r,userContext:this.getContext(),viewID:this._outputViewID,dataAttributes:this._data.dataAttributes||null});return s.getView(this._outputViewID).then((function(e){s.parentViewToDocument(e),a._varView=e})),s},getSummaryBarStatus:function(){return this._showSummaryBar},_createSaveObjectWithPrepopulatedData:function(e){if(e&&e.data.length>0){var t=e.metaData,i=t?t.columnMetadata:null,n=t?t.rowMetadata:null;if(e.data){var o=u.shapeDataForSaveLoad(this._data,i);this._data.savedPrepopulatedData=JSON.stringify(o)}i&&(this._data.savedPrepopulatedColumnHeaderInfo=JSON.stringify(i)),n&&(this._data.savedPrepopulatedRowHeaderInfo=JSON.stringify(n))}},_updateColumnWidths:function(e){for(var t=this._varView.getMetaDataStore(),i=this._varView.getTableConstructor(),n=e.columns.start;n<e.columns.count;n+=1){var o=t.hasColumnModelProperty(n,"GroupColumnSize")?parseInt(t.getColumnModelProperty("GroupColumnSize",n)):1,r=i.getColumnWidth(n);r&&r!==w.getDefaultColumnWidth()*o&&(this._data.columnWidths[n]=r)}},_cleanRowModelProps:function(e){var t=!0;try{e.RowModelProperties=JSON.parse(e.RowModelProperties),e.RowModelProperties.forEach((function(e){var i;for(i in delete e.RowNumber,e)e.hasOwnProperty(i)&&(t=!1)})),t?delete e.RowModelProperties:e.RowModelProperties=JSON.stringify(e.RowModelProperties)}catch(e){C.warn("Data was not in JSON format")}},_getManager:function(e){return S.createManager(e)},_createCodeGenWidget:function(e){this._codeGenerator=this._codeGenFactory.createEditorCodeGenerator(),this._codeGenerator.setCodeGenDependencies({output:e,outputPositions:[],overrideInlinePosition:!0}),this._codeGenerator.setEnablementCondition(i.hitch(this,"_isCodeUpdateAllowed"),P.disableUpdateCodeTooltip)},showCodeInOutput:function(e){var t=P.disableUpdateCodeTooltip;this._isCodeUpdateAllowed()||this._codeGenerator.disableUpdateCodeBtn(t),this._codeGenerator.setGeneratedCode(e);var i=this._codeGenerator.attach(this._domElement.firstElementChild),n=this._codeGenerator;i&&i.then((function(e){n.updateCodeArea(),""===n._generatedCode[0]&&n.detach(),n._embeddedOutputsView.outputChanged()}))},_isCodeUpdateAllowed:function(){if(null===this.codeLinePositions)return!1;var e=this.codeLinePositions[this.codeLinePositions.length-1];return 1===this._outputsModel.getOutputsForPosition(e).length},_removeValueSummaryListeners:function(){this._valueSummaryMouseDownListener&&(this._valueSummaryMouseDownListener.remove(),this._valueSummaryMouseDownListener=null),this._valueSummaryMouseClickListener&&(this._valueSummaryMouseClickListener.remove(),this._valueSummaryMouseClickListener=null)},destroy:function(){this._gestureDetector&&this._gestureDetector.destroy(),this._onResizeListener&&this._onResizeListener.remove(),this._codeGenerator&&this._codeGenerator.destroy(),this._removeValueSummaryListeners(),this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[],this._selectionChangedListener&&this._selectionChangedListener.remove();var e,t=this._data?this._data.ve_channel:this._ve_channel;t&&(e=this._getManager({channel:t,editable:!1})),e&&this._data&&(e.documents&&e.documents[this._data.doc_id]&&e.documents[this._data.doc_id].destroy?(e.documents[this._data.doc_id].destroy(),delete e.documents[this._data.doc_id]):e.deletedDocIDCache.push(this._data.doc_id)),this.inherited(arguments),this._varView&&(this._varView=null),this._varDoc._destroyed&&(this._varDoc=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(225),i(506),i(938)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r],{_SUMMARY_BAR_CONTAINER_CLASS:".summaryBarContainer",constructor:function(){this.paletteRegistryId="InteractiveVariablePopoutPalette"},getPreferredLeftPosition:function(){var e=o.TABLE_COMPONENT_QUERY_CLASS,t=n(e,this._outputDomNode),i=0;if(t&&t.length>=1){var r=t[0].firstChild;i=r.offsetLeft+r.offsetWidth;var a=n(this._SUMMARY_BAR_CONTAINER_CLASS,this._outputDomNode);if(a&&a.length>0){var s=a[0].offsetLeft+a[0].offsetWidth;i=Math.max(i,s)}}return i},_handleMouseEnter:function(){this.inherited(arguments),this.isInline(this._outputDomNode)||(this._palette.domNode.style.top="1px")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6548),i(6549),i(6550),i(6551)],o=i.dj.d(n,(function(e,t){return t(e,"livecode_features/l10n/nls/interactiveVariableOutput",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(291)],o=i.dj.d(n,(function(e,t){let i=null;function n(){return null===i&&(i=t.getMVM()),i}function o(){return(""+Math.random()).replace(".","").slice(1,10)}return{getWorkspaceNames:function(e,t){return void 0!==t?this._getWSBDisplay(n(),"name"+t,e,"name"):this._getWSBDisplay(n(),"name"+o(),e,"name")},getWorkspaceDisplay:function(e,t){return void 0!==t?this._getWSBDisplay(n(),"default"+t,e):this._getWSBDisplay(n(),"default"+o(),e)},getWorkspaceDisplayCols:function(e,t,i){return void 0!==i?this._getWSBDisplay(n(),"columns"+i,e,t):this._getWSBDisplay(n(),"columns"+o(),e,t)},_getWSBDisplay:function(t,i,n,o){let r,a=new e,s=n||"base";r=void 0!==o?[s].concat(o):[s];let l=this;return t.feval("matlab.internal.datatoolsservices.getWorkspaceDisplay",1,r).then((function(e){l._handleEvalResponse(e,a)}),(function(e){l._handleEvalError(e,a)})),a.promise},_handleEvalError:function(e,t){t.reject(e.getMsg())},_handleEvalResponse:function(e,t){if(1===e.length){let i;if(i=e[0].mwdata?e[0].mwdata:e[0],void 0===i)i=[];else if(!Array.isArray(i)){let e=Object.keys(i),t=[];"0"!==e[0]?(e.map((function(e){Array.isArray(i[e])||(i[e]=[i[e]]);let n=i[e].length;for(let o=0;o<n;o+=1)o>=t.length&&t.push({}),i[e][o].mwdata?t[o][e]=i[e][o].mwdata[0]:t[o][e]=i[e][o]})),i=t):i=[i]}t.resolve(i)}else Array.isArray(e)?t.reject("Error: Expected 1 result message back, received: "+e.length):t.reject("Error: Unexpected result")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2095),i(695),i(6666),i(487)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.Fieldset",i,{baseClass:"dijitFieldset",title:"",open:!0,templateString:n,postCreate:function(){if(!this.title){var e=t("legend",this.containerNode);e.length&&(this.set("title",e[0].innerHTML),e[0].parentNode.removeChild(e[0]))}this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="containerNode">\n\n</div>'},function(e,t,i){var n,o;n=[i(218),i(220),i(6791),i(6792),i(6793),i(6794)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/ProgrammingToolsPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={activeConfig:"ActiveSettings",allConfigs:"ConfigsList",enableErrorWarningMessages:"EnableIntegratedMessages",modifiedSettings:"ModifiedDefaultSettings",pathToSetting:["matlab","codeanalyzer"],underlining:"UnderlineOption",activeConfigurationFile:"ActiveConfigurationFile"}},function(e,t,i){var n,o;n=[i(6796),i(991),i(223),i(350),i(315),i(317),i(450),i(331),i(288),i(847),i(531),i(922),i.dj.c(e.i),i(1109),i(6797)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return{_ERROR_ICON:h.toUrl("../../images/error.png"),_WARNING_ICON:h.toUrl("../../images/warning.png"),VALID_DATA:!0,createTree:function(t){var i=e();this._promiseWithTreeData=i.getMsgChecks(),this._promiseWithTreeData.then(function(e){this._addTreeNodes(e),this._messageIdUrlMap={},this.dataStore=n.create(this.treeData,Object.assign({},{type:o.TREE})),this._renderer=new f,this._getMessageIdUrlMap().then(this._updateNodeWithUrlField.bind(this));var i=function(e){return void 0===e.isExpandable||e.isExpandable?{}:{interactiveRenderer:this._renderer}}.bind(this),r=this.dataStore.createMetaDataRule({node:i},{type:"node"});this.dataStore.addMetaDataRule("interactive_render",r);var a={dataTestId:"myTree",plugins:[d.PLUGINS.MultipleNodeSelection,d.PLUGINS.Search,d.PLUGINS.Filter,d.PLUGINS.ContextMenu,d.PLUGINS.ScrollSync]};this.treeWidget=new d(this.dataStore,a),this.treeWidget.expandAll(),t.appendChild(this.treeWidget.domNode),this.treeStartUp(),this.treeWidget.on("contextMenu",function(e){this._addContextMenu(e)}.bind(this)),this.treeWidget.on("editCompleted",function(e){if(this.dataStore.update(null,{id:e.nodeId},{checked:e.newValue.checked}),e.newValue.defaultEnabled===e.newValue.checked||this._isIncluded(e.nodeId)){if(this.dataStore.update(null,{id:e.nodeId},{modified:!1}),this._isIncluded(e.nodeId)){var t=this._getNodeIndex(e.nodeId);this._updatedNodes.splice(t,1)}}else this.dataStore.update(null,{id:e.nodeId},{modified:!0}),this._updatedNodes.push({id:e.nodeId,value:e.newValue.checked});this.eventToUpdateLabel()}.bind(this)),this.treeWidget.on("scrollViewChanged",function(e){this._renderer.handleTreeScroll()}.bind(this))}.bind(this))},_addContextMenu:function(e){var i=new l({tag:t.contextMenuEnable,text:t.contextMenuEnable}),n=new l({tag:t.contextMenuDisable,text:t.contextMenuDisable}),o=new l({tag:t.contextMenuExpandAll,text:t.contextMenuExpandAll}),a=new l({tag:t.contextMenuCollapseAll,text:t.contextMenuCollapseAll}),s=new r({tag:"CodeAnalyzerTreeContextMenu"});s.addChild(i),s.addChild(n),s.addChild(o),s.addChild(a),s.openMenu({x:e.left,y:e.top});var c=this.treeWidget.getSelection();i.set("disabled",!0),n.set("disabled",!0);for(var d=0;d<c.length;d++)this.dataStore.getNode(c[d]).then((function(e){null!==e.node.data.parent&&(i.set("disabled",!1),n.set("disabled",!1),d=c.length)}));i.domNode.addEventListener("click",function(){this._enableDisableButtonActions(!0)}.bind(this)),n.domNode.addEventListener("click",function(){this._enableDisableButtonActions(!1)}.bind(this)),o.domNode.addEventListener("click",function(){this.treeWidget.expandAll(),i.set("disabled",!1),n.set("disabled",!1)}.bind(this)),a.domNode.addEventListener("click",function(){this.treeWidget.collapseAll(),i.set("disabled",!0),n.set("disabled",!0)}.bind(this)),s.on("close",function(){s.destroy(),this.treeWidget.focus()}.bind(this))},_enableDisableButtonActions:function(e){for(var t=this.treeWidget.getSelection(),i=0;i<t.length;i++)this.dataStore.update(null,t[i],{checked:e}),this.dataStore.getNode(t[i]).then(function(t){e?this.dataStore.update(null,{id:t.node.id},{modified:!t.node.data.defaultEnabled}):this.dataStore.update(null,{id:t.node.id},{modified:t.node.data.defaultEnabled}),e!==t.node.data.defaultEnabled?this._updatedNodes.push({id:t.node.id,value:e}):this._isIncluded(t.node.id)&&this._updatedNodes.splice(this._getNodeIndex(t.node.id),1)}.bind(this))},_getMessageIdUrlMap:function(){const e=this.treeData.map(e=>e.id),t=e.map(e=>"mlint_"+e);return(new p).getContextSensitiveHelp(t).then(t=>{e.reduce((e,i,n)=>(e[i]=t[n],e),this._messageIdUrlMap)})},_updateNodeWithUrlField:function(){this.treeData.forEach(e=>{const t=this._messageIdUrlMap[e.id];t&&this.dataStore.update(null,{id:e.id},{extendedHelpUrl:t})})},treeStartUp:function(){void 0!==this.treeWidget&&this.treeWidget.startup()},resizeTree:function(){void 0!==this.treeWidget&&this.treeWidget.resize()},_isIncluded:function(e){return this._updatedNodes.filter((function(t){return t.id===e})).length>0},_getNodeIndex:function(e){for(var t=-1,i=0;i<this._updatedNodes.length;i++)if(this._updatedNodes[i].id===e){t=i;break}return t},eventToUpdateLabel:function(){},destroy:function(){this._showAllFilter.destroy(),this._showModifiedMessagesFilter.destroy(),this._renderer&&this._renderer.removeMessageNodeListeners()},createFilters:function(){this._searchTextField=new c({placeholder:t.searchTextFieldMsg}),this._searchTextField.set("width","100%"),this._searchTextField.set("value",""),this._searchTextField.on("typing",function(e,t){this.applyFilter(e.mwEventData.currentContent)}.bind(this));var e=new s({}),i=new a({text:"",menu:e});return this._showAllFilter=new l({tag:t.showAllFilter,text:t.showAllFilter}),this._showModifiedMessagesFilter=new l({tag:t.showModifiedMessagesFilter,text:t.showModifiedMessagesFilter}),e.addChild(this._showAllFilter),e.addChild(this._showModifiedMessagesFilter),this._showAllFilter.on("click",function(){this.treeWidget.clearFilter(),this._searchTextField.set("value","")}.bind(this)),this._showModifiedMessagesFilter.on("click",function(){var e=this._searchTextField.inputNode.value;e.includes(" modified:true ")||(e=e?e+" modified:true ":" modified:true "),this._searchTextField.set("value",e),this.applyFilter(e)}.bind(this)),this._searchTextField.inputNode.addEventListener("keyup",function(e){this._stopPropagationOfEnter(e)}.bind(this)),this._searchTextField.inputNode.addEventListener("keydown",function(e){this._stopPropagationOfEnter(e)}.bind(this)),{searchTextField:this._searchTextField,searchFilterDropDown:i}},_stopPropagationOfEnter:function(e){e.keyCode===i.ENTER&&(e.stopPropagation(),e.stopImmediatePropagation())},_addTreeNodes:function(e){var t=e.getCategories();t.sort((function(e,t){return e.categoryMessage>t.categoryMessage?1:-1})),this.treeData=[];for(var i=0;i<t.length;i++){var n=e.getMessagesForCategory(t[i].tag);n.sort((function(e,t){return e.message.toLowerCase()>t.message.toLowerCase()?1:-1})),n.length>0&&this.treeData.push({id:t[i].tag,label:t[i].categoryMessage,parent:null});for(var o=0;o<n.length;o++){var r={id:n[o].tag,label:n[o].message,parent:t[i].tag,parentLabel:t[i].categoryMessage,severity:n[o].severity,defaultEnabled:n[o].defaultEnabled,modified:!1,checked:n[o].defaultEnabled};e.isError(n[o].severity)?r.iconUri=this._ERROR_ICON:r.iconUri=this._WARNING_ICON,this._isIncluded(n[o].tag)&&(r.checked=!n[o].defaultEnabled,r.modified=!0),this.treeData.push(r)}}},_updateShowModifiedMessages:function(e){var t=e.split(":");if(t[1])return!!"true".includes(t[1])||!"false".includes(t[1])&&void 0},_updateFilterArray:function(e){var t=[];return t.push({field:"label",value:e}),t.push({field:"id",value:e}),t.push({field:"parent",value:e}),t.push({field:"parentLabel",value:e}),t},applyFilter:function(e){if(e=e||this._searchTextField.inputNode.value){var t,i=[];if(e.includes('"'))for(var n=e.split('"'),o=0;o<n.length;o++)if(o%2==0){var r=this._parseSearchText(n[o]);i=i.concat(r.allFilters),t=r.showModified}else n[o]&&i.push(this._updateFilterArray(n[o]));else{r=this._parseSearchText(e);i=i.concat(r.allFilters),t=r.showModified}this.treeWidget.scrollTo(d.FIRST_NODE);var a=[];for(o=0;o<i.length;o++)a.push({or:i[o]});"boolean"==typeof t&&a.push({field:"modified",value:t});var s={and:a};this.dataStore.filter(s,{displayChildren:!0});var l={or:a};this.treeWidget.search(l)}else this.treeWidget.clearFilter(),this._searchTextField.set("value","")},_parseSearchText:function(e){var t,i=[],n={};if(e.includes(" "))for(var o=e.split(" "),r=0;r<o.length;r++)!o[r].includes(":")&&o[r]?i.push(this._updateFilterArray(o[r])):o[r]&&(t=this._updateShowModifiedMessages(o[r]));else e.includes(":")?t=this._updateShowModifiedMessages(e):e&&i.push(this._updateFilterArray(e));return n.allFilters=i,n.showModified=t,n},checkConfigAndUpdateTree:function(e){null!==e?(this.VALID_DATA=!0,this.updateTree(e)):this.VALID_DATA=!1},updateTree:function(e){this.updateTreeIdValues(!1),this._updatedNodes=e,this.updateTreeIdValues(!0)},updateTreeIdValues:function(e){for(var t=0;t<this._updatedNodes.length;t++)e?this.dataStore.update(null,{id:this._updatedNodes[t].id},{checked:this._updatedNodes[t].value}):this.dataStore.update(null,{id:this._updatedNodes[t].id},{checked:!this._updatedNodes[t].value}),this.dataStore.update(null,{id:this._updatedNodes[t].id},{modified:e})},updateModifiedNodes:function(e){this._updatedNodes=e},writeInfile:function(e,t,i){let n=this.getCurrentTreeConfig();u.updateConfig(e,t,n,i)},getCurrentTreeConfig:function(){return this._updatedNodes}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(492),i(6817),i(6818),i(1573)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e(null,{constructor:function(e){this._states=e},hasStatesToTransfer:function(){return!!this._states},getHandlerForCore:function(){const e=this.getCoreStates();return e?this._createHandler(e):null},getHandlerForView:function(e){const t=this.getViewStates();return t&&t[e]?this._createHandler(t[e]):null},getCoreStates:function(){return this._states?this._states.core:null},getViewStates:function(){return this._states?this._states.view:null},_createHandler:function(e){return this._deserializeHelper||(this._restoreQueues={primaryViewReady:[],allViewsReady:[]},this._deserializeHelper=new n(this._restoreQueues,this._states.nodeDescription)),new s(e,this._deserializeHelper)},notifyRtcStarted:function(){this._restoreQueues&&(r.flushQueue(this._restoreQueues.primaryViewReady),r.flushQueue(this._restoreQueues.allViewsReady))},serialize:function(e,t){const i=e.getCorePluginResolver().getDependency("rtc.internaldocument"),n=new o(i),r=e.serialize(n);return{core:r,view:t.serialize(n,r),nodeDescription:JSON.parse(JSON.stringify(n.getNodeDescription()))}},destroy:function(){delete this._states,delete this._restoreQueues,delete this._deserializeHelper}}),s=e(null,{constructor:function(e,t){this._states=e,this._deserializeHelper=t},restoreStates:function(e,t){if(!r.isSerializablePlugin(t))return;const i=this._getStates(e);i&&t.deserializePlugin(i,this._deserializeHelper)},_getStates:function(e){return this._states?this._states[e]:null},destroy:function(){delete this._states}});return a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(492)],o=i.dj.d(n,(function(e){return{getPluginIdToInstanceMap:function(e){return e._cachedInjector._cachedDependancies._dependencyCache},serializePlugins:function(e,t,i){var n={};return Object.keys(t).forEach((function(o){if(!i||!i.hasOwnProperty(o)){var r=t[o];if(this.isSerializablePlugin(r))r.serializePlugin(e)&&(n[o]=r.serializePlugin(e))}}),this),n},isSerializablePlugin:function(t){return t&&t.isInstanceOf&&t.isInstanceOf(e)},flushQueue:function(e){0!==e.length&&(e.forEach((function(e){e()})),e.length=0)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1575)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){this._dependencyCache={}},injectDependency:function(e,t){this._dependencyCache[e]=t},getDependency:function(e){return this._dependencyCache[e]},destroy:function(){this._dependencyCache={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getDependency:function(e){throw new Error("Unimplemented API: MW.rtc.core._dependencyinjector.DependencyInjector.getDependency")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_MEMBERS_ID_PREFIX:"_subsystem_members",isAMembersId:function(e){return e.substring(0,this._MEMBERS_ID_PREFIX.length)===this._MEMBERS_ID_PREFIX},getMembersId:function(e){return this._MEMBERS_ID_PREFIX+e},getSubsystemId:function(e){return e.substring(this._MEMBERS_ID_PREFIX.length)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1578)],o=i.dj.d(n,(function(e,t){return e(t,{_initializeRecursiveConverter:function(e){this._createConverterMap(e),this._setAsMainConverter(e)},_setAsMainConverter:function(e){e.forEach((function(e){e.setMainConverter(this)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1102)],o=i.dj.d(n,(function(e,t){return e(null,{_createConverterMap:function(e){this._nodeMap=new t(e)},_getConverter:function(e){return this._nodeMap.get(e)},_getConverterByConstructor:function(e){return this._nodeMap.getByConstructor(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(237),i(314),i(664)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._cursor=e},getType:function(){return i.TEXT},convertFromMimeData:function(e){return t.textToContent(e,this._cursor.getNode())},priority:function(){return 10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(1945),i(234),i(2425),i(925),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(n,{constructor:function(e){this._functionService=e,this.own(i.after(this._functionService,"onUpdate",t.hitch(this,"_handleFunctionUpdate"))),this._updatedValidFunctionInfo=[]},onValidFunctionsChange:function(e){},getFunctionInfoOfDesiredFunctions:function(){throw"Unimplemented API in AbstractFunctionNotifier"},_handleFunctionUpdate:function(){this._functionService.hasSyntaxError()||this._validFunctionsHandler()},_validFunctionsHandler:function(){var e=this.getFunctionInfoOfDesiredFunctions(),t={};e.length>0?(this._updatedValidFunctionInfo.length<1?t.type=s.VALID_FUNCTIONS_ADDED:this._hasFunctionsChanged(e)?t.type=s.VALID_FUNCTIONS_CHANGED:t.type=s.FUNCTIONS_ON_VALID_DOCUMENT_CHANGE,this._updatedValidFunctionInfo=e,t.validFunctions=this._updatedValidFunctionInfo,this.onValidFunctionsChange(t)):this._updatedValidFunctionInfo.length>0&&(this._updatedValidFunctionInfo=[],t={type:s.VALID_FUNCTIONS_REMOVED},this.onValidFunctionsChange(t))},_hasFunctionsChanged:function(e){return!l.arrayEquals(e,this._updatedValidFunctionInfo,t.hitch(a,"functionComparator"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7091)],o=i.dj.d(n,(function(e){return class{constructor(e,t){this._code=e,this._tokens=t}getTokenAtColumn(e){for(let t=0,i=this._tokens.length;t<i;t+=2){const i=this._tokens[t-2]||0,n=this._tokens[t];if(e>=i&&e<=n-1)return this.getToken(t/2)}return null}getToken(t){const i=2*t,n=this._tokens[i];if(void 0===n)return null;const o=this._tokens[i+1],r=0===i?0:this._tokens[i-2],a=n-r,s=this._code.substr(r,a);return new e(t,o,r,a,s)}getType(e){return this._tokens[2*e+1]}getValue(e){const t=this.getColumn(e),i=this.getLength(e);return this.getCode().substr(t,i)}getLength(e){return this._tokens[2*e]-this.getColumn(e)}getColumn(e){return 0===e?0:this._tokens[2*e-2]}getCode(){return this._code}getTokenData(){return this._tokens}getNumTokens(){return this._tokens.length/2}equals(e){if(!e)return!1;const t=e.getCode(),i=e.getTokenData();return this._tokens.length===i.length&&this._code===t&&!this._tokens.some((function(e,t){return e!==i[t]}))}forEach(e){for(let t=0,i=this.getNumTokens();t<i;t++){e(this.getToken(t),t)}}map(e){const t=[];for(let i=0,n=this.getNumTokens();i<n;i++){const n=this.getToken(i);t.push(e(n,i))}return t}some(e){for(let t=0,i=this.getNumTokens();t<i;t++){if(e(this.getToken(t),t))return!0}return!1}someFromLast(e){for(let t=this.getNumTokens()-1;t>=0;t--){if(e(this.getToken(t),t))return!0}return!1}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){class e{constructor(e,t){this.line=e,this.column=t}}class t{constructor(e,t){this._token=e,this._line=t}getToken(){return this._token}equals(e){return e&&this.getLine()===e.getLine()&&this._token.equals(e.getToken())}getIndex(){return this._token.getIndex()}getType(){return this._token.getType()}getLine(){return this._line}getColumn(){return this._token.getColumn()}getLength(){return this._token.getLength()}getValue(){return this._token.getValue()}getPositionInfo(){return new e(this.getLine(),this.getColumn())}static createToken(e,i){return e?new t(e,i):null}}return t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(209),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return t(o,{constructor:function(){},onIdleBusyStatusChange:function(e){},isBusy:function(){n.error("AbstractBusyIdleService.isBusy Unimplemented")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{onHover:function(e,t){},onHoverAway:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(207),i(282),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(){this._settingValueMap=n.createMap(),this._settingIdToCallbackMap=n.createMap()},listenTo:function(e,t){var i={settingId:e,callback:t},n=this._settingIdToCallbackMap,o={_removed:!1,remove:function(){if(!this._removed){var t=n.get(e),o=t.indexOf(i);t.splice(o,1),this._removed=!0}}};return this._addListener(e,i),o},_addListener:function(e,t){var i=this._settingIdToCallbackMap.get(e);i?i.push(t):(i=[t],this._settingIdToCallbackMap.set(e,i))},get:function(e,t){return this._settingValueMap.has(e)?this._settingValueMap.get(e):t},listenToSettingChange:function(e,t){return this.listenTo(e,t)},getSetting:function(e){var i=new t,n=this.get(e);return void 0!==n?i.resolve(n):i.reject("Setting not found: "+e),i.promise},setSetting:function(e,i){this._setValueToCache(e,i);var n=new t;return n.resolve(!0),n.promise},_setValueToCache:function(e,t){var i=this._settingValueMap.get(e);this._areValuesEqual(i,t)||(this._settingValueMap.set(e,this._freezeValue(t)),this._settingChanged(e,t))},_areValuesEqual:function(e,t){return JSON.stringify(e)===JSON.stringify(t)},_settingChanged:function(e,t){var i=this._settingIdToCallbackMap.get(e);i&&i.slice().forEach((function(i){try{i.callback(t)}catch(t){o.error("Error executing '"+e+"' listener callback. "+t.stack)}}))},_freezeValue:function(e){return Object.freeze(e)},clearAllValues:function(){this._settingValueMap.clear()},destroy:function(){this.inherited(arguments),this.clearAllValues(),this._settingIdToCallbackMap.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(747)],o=i.dj.d(n,(function(e,t){return{_cachedFontNames:null,_cachedFontNameItems:null,_CONTEXT:document.createElement("canvas").getContext("2d"),_cachedBaseFontMetrics:null,plainLabel:t.plain,boldLabel:t.bold,italicLabel:t.italic,boldItalicLabel:t.boldItalic,_MONOSPACE:"monospace",_SERIF:"serif",_SANSSERIF:"sans-serif",getFontNames:function(){return null===this._cachedFontNames&&(this._cachedFontNames=this._createFontNames()),this._cachedFontNames},getStandardFontSizeItems:function(){return[8,9,10,12,14,18,24,36,48].map((function(e){return{label:String(e),value:String(e)}}))},getStandardFontNameItems:function(){return null===this._cachedFontNameItems&&(this._cachedFontNameItems=this.getFontNames().map((function(e){return{label:e,value:e}}))),this._cachedFontNameItems},getStandardFontStyleItems:function(){return[{label:this.plainLabel,value:0},{label:this.boldLabel,value:1},{label:this.italicLabel,value:2},{label:this.boldItalicLabel,value:3}]},isFontRenderable:function(e){return!![this._MONOSPACE,this._SERIF,this._SANSSERIF].includes(e)||(!this._areMeasuresEqual(this._measureFont(this._CONTEXT,e+", "+this._SANSSERIF),this._getBaseFontMetrics().SANSSERIF)||!this._areMeasuresEqual(this._measureFont(this._CONTEXT,e+", "+this._SERIF),this._getBaseFontMetrics().SERIF)||!this._areMeasuresEqual(this._measureFont(this._CONTEXT,e+", "+this._MONOSPACE),this._getBaseFontMetrics().MONOSPACE))},_createFontNames:function(){return this._getStandardFonts(function(){if(e("windows"))return"windows";if(e("linux"))return"linux";if(e("mac"))return"mac";return""}()).filter((function(e){return this.isFontRenderable(e)}),this).sort((function(e,t){var i=e.toUpperCase(),n=t.toUpperCase();return i<n?-1:i>n?1:0}))},_getBaseFontMetrics:function(){return null===this._cachedBaseFontMetrics&&(this._cachedBaseFontMetrics={SANSSERIF:this._measureFont(this._CONTEXT,this._SANSSERIF),SERIF:this._measureFont(this._CONTEXT,this._SERIF),MONOSPACE:this._measureFont(this._CONTEXT,this._MONOSPACE)}),this._cachedBaseFontMetrics},_measureFont:function(e,t){return e.font="100pt "+t,e.measureText("mmmmmmmmmmmlllllggggghhhhh1234567890")},_areMeasuresEqual:function(e,t){var i=e.width===t.width;return i&&e.fontBoundingBoxAscent&&t.fontBoundingBoxAscent&&(i=e.fontBoundingBoxAscent===t.fontBoundingBoxAscent),i&&e.fontBoundingBoxDescent&&t.fontBoundingBoxDescent&&(i=e.fontBoundingBoxDescent===t.fontBoundingBoxDescent),i},_getStandardFonts:function(e){var t=this._getUniversalFonts(),i=[];switch(e){case"windows":i=this._getWindowsFonts();break;case"linux":i=this._getLinuxFonts();break;case"mac":i=this._getMacFonts();break;default:i=(i=(i=this._getWindowsFonts()).concat(this._getLinuxFonts())).concat(this._getMacFonts())}return t.concat(i)},_getUniversalFonts:function(){return["Arial","Times New Roman","Arial Black","Courier New","Verdana","Comic Sans MS","Courier","Trebuchet MS","Georgia","Impact","Arial Narrow","Helvetica","Times","Terminal"]},_getWindowsFonts:function(){return["Tahoma","Century Gothic","MS Sans Serif","Lucida Console","Garamond","Lucida Sans Unicode","Bookman Old Style","Book Antiqua","Microsoft Sans Serif","Palatino Linotype","Monotype Corsiva","Haettenschweiler","Modern","Franklin Gothic Medium","Script","Consolas"]},_getMacFonts:function(){return["Geneva","Monaco","Skia","Apple Chancery","Hoefler Text","Optima","Futura","Lucida Grande","Helvetica Neue","ppppppHerculanum","Papyrus","Baskerville","Gill Sans","Didot","Arial Rounded MT Bold","Brush Script MT","Zapfino","Copperplate","Marker Felt","American Typewriter","Big Caslon","y.n.w.u.a.y","Zapf Humanist 601 Demi BT","Zapf Humanist 601 Ultra BT","SWF!T_v01","UniversS 45 Light","UniversS 47 Condensed Light","UniversS 55 Roman","UniversS Euro 45 Light","SWF!T_v02","A.C.M.E. Secret Agent","Geometric Slabserif 703 Extra Bold BT","Humanist 777 Black BT","Humanist 777 Light BT","Alpha Silouettes 3","Alpha-Silouettes 2","Business/Industrial Regular","Cochin","ESRI Environmental & Icons","ESRI Oil, Gas, & Water","ESRI Transportation & Civic","ESRI Transportation & Municipal","Garamond Narrow Bold:001.022","Garamond Narrow Italic:001.022","Garamond Narrow Plain:001.022","German Blackletters, 15th c.","hooge 05_54","Humanist 521 Extra Bold BT","Humanist 521 Light BT","Humanist 521 Ultra Bold BT","Humanist 777 BT","Chicago","Osaka","Palatino","Charcoal","Andale Mono","New York","Univers 45 Light","Univers 57 Condensed","Helvetica 35 Thin","Helvetica 45 Light","Helvetica 55 Roman","Helvetica 65 Medium","Helvetica 95 Black","Gothic 13","Helvetica 85 Heavy","Gadget","Warren 1","week (sRB)","Zartz!","Trade Gothic Bold Condensed No.20","Trade Gothic Condensed No.18","Aldine 401 BT","hooge 05_53","Orator 10 Pitch BT","Orator 15 Pitch BT","Aldine 721 BT","Aldine 721 Light BT","Geometric Slabserif 703 Bold BT","Hemi Head 426","Misbehavin'","Papyrus LET Plain:1.0","Scriptina - Alternates","Broken 15","Day Roman - Expert","Helvetica 25 Ultra Light","Helvetica 75 Bold Outline","L'Elf Noir du Mal Normal","Techno","Textile","Capitals","Sand"]},_getLinuxFonts:function(){return["Utopia","Lucidatypewriter","New Century Schoolbook","Lucida","Lucidabright","Charter","Fixed","Nimbus Mono L","Nimbus Roman No9 L","Nimbus Sans L","Century Schoolbook L","ClearlyU","Helvetica-Narrow-BoldOblique"]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7207),i(7208),i(7209),i(7210)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/LanguageMATLABPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7278),i(7279),i(7280),i(7281)],o=i.dj.d(n,(function(e,t){return t(e,"cpanel-ui/l10n/nls/LanguageCLikePanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(585),i(997)],o=i.dj.d(n,(function(e,t){return{typeMapDefaults:{keyword:t.KEYWORD,"variable-3":t.KEYWORD,atom:t.KEYWORD,string:t.STRING,"string-2":t.CHARACTER,comment:t.COMMENT,meta:t.PREPROCESSOR,invalid_operator:t.BAD_CHARACTER,invalid_number:t.BAD_CHARACTER,invalid_character:t.BAD_CHARACTER,invalid_comment_end:t.BAD_CHARACTER,invalid_backslash:t.BAD_CHARACTER,incomplete_hex_number:t.BAD_CHARACTER,incomplete_bin_number:t.BAD_CHARACTER},colorMapDefaults:function(){const i={};return i[t.KEYWORD]=new e(14,0,255),i[t.STRING]=new e(170,4,249),i[t.CHARACTER]=new e(255,64,255),i[t.COMMENT]=new e(2,128,9),i[t.PREPROCESSOR]=new e(178,140,0),i[t.BAD_CHARACTER]=new e(255,0,0),i}()}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(7299)],o=i.dj.d(n,(e,t)=>class extends e{createInstance(){return new t(...arguments)}priority(){return 10}},e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{KEYWORD:"keyword",STRING:"string",COMMENT:"comment",CHARACTER:"character",ERROR:"bad character"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7348),i(7349),i(7350),i(7351)],o=i.dj.d(n,(function(e,t){return t(e,"xmlpanel-ui/l10n/nls/LanguageXmlPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(585),i(1e3)],o=i.dj.d(n,(function(e,t){return{typeMapDefaults:{"xml error":t.ERROR,"xml attribute":t.ATTRIBUTE_NAME,"xml string":t.ATTRIBUTE_VALUE,"xml doctype":t.DOCTYPE_DECLARATION,"xml meta":t.PROCESSING_INSTRUCTION,"xml tag":t.TAG,"xml tag bracket":t.TAG,"xml operator":t.OPERATOR,"xml comment":t.COMMENT,"xml character":t.CHARACTER,"xml atom":t.CDATA_SECTION},colorMapDefaults:function(){const i={};return i[t.ERROR]=new e(255,0,0),i[t.ATTRIBUTE_NAME]=new e(196,0,0),i[t.ATTRIBUTE_VALUE]=new e(170,4,249),i[t.DOCTYPE_DECLARATION]=new e(0,0,124),i[t.PROCESSING_INSTRUCTION]=new e(0,0,124),i[t.TAG]=new e(14,0,255),i[t.OPERATOR]=new e(178,140,0),i[t.COMMENT]=new e(2,128,9),i[t.CHARACTER]=new e(196,0,0),i[t.CDATA_SECTION]=new e(124,98,0),i}()}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return function(e){e.defineMode("javascript",(function(t,i){var n,o,r=t.indentUnit,a=i.statementIndent,s=i.jsonld,l=i.json||s,c=i.typescript,d=i.wordCharacters||/[\w$\xa1-\uffff]/,u=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),i=e("keyword b"),n=e("keyword c"),o=e("keyword d"),r=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:i,do:i,try:i,finally:i,return:o,break:o,continue:o,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:r,typeof:r,instanceof:r,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),h=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function f(e,t,i){return n=e,o=i,t}function g(e,t){var i,n=e.next();if('"'==n||"'"==n)return t.tokenize=(i=n,function(e,t){var n,o=!1;if(s&&"@"==e.peek()&&e.match(p))return t.tokenize=g,f("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=i||o);)o=!o&&"\\"==n;return o||(t.tokenize=g),f("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return f("number","number");if("."==n&&e.match(".."))return f("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return f(n);if("="==n&&e.eat(">"))return f("=>","operator");if("0"==n&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return f("number","number");if(/\d/.test(n))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),f("number","number");if("/"==n)return e.eat("*")?(t.tokenize=m,m(e,t)):e.eat("/")?(e.skipToEnd(),f("comment","comment")):ze(e,t,1)?(function(e){for(var t,i=!1,n=!1;null!=(t=e.next());){if(!i){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}i=!i&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),f("regexp","string-2")):(e.eat("="),f("operator","operator",e.current()));if("`"==n)return t.tokenize=_,_(e,t);if("#"==n)return e.skipToEnd(),f("error","error");if(h.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),f("operator","operator",e.current());if(d.test(n)){e.eatWhile(d);var o=e.current();if("."!=t.lastType){if(u.propertyIsEnumerable(o)){var r=u[o];return f(r.type,r.style,o)}if("async"==o&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return f("async","keyword",o)}return f("variable","variable",o)}}function m(e,t){for(var i,n=!1;i=e.next();){if("/"==i&&n){t.tokenize=g;break}n="*"==i}return f("comment","comment")}function _(e,t){for(var i,n=!1;null!=(i=e.next());){if(!n&&("`"==i||"$"==i&&e.eat("{"))){t.tokenize=g;break}n=!n&&"\\"==i}return f("quasi","string-2",e.current())}function v(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var i=e.string.indexOf("=>",e.start);if(!(i<0)){if(c){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,i));n&&(i=n.index)}for(var o=0,r=!1,a=i-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!o){++a;break}if(0==--o){"("==s&&(r=!0);break}}else if(l>=3&&l<6)++o;else if(d.test(s))r=!0;else{if(/["'\/]/.test(s))return;if(r&&!o){++a;break}}}r&&!o&&(t.fatArrowAt=a)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function y(e,t,i,n,o,r){this.indented=e,this.column=t,this.type=i,this.prev=o,this.info=r,null!=n&&(this.align=n)}function C(e,t){for(var i=e.localVars;i;i=i.next)if(i.name==t)return!0;for(var n=e.context;n;n=n.prev)for(i=n.vars;i;i=i.next)if(i.name==t)return!0}var T={state:null,column:null,marked:null,cc:null};function E(){for(var e=arguments.length-1;e>=0;e--)T.cc.push(arguments[e])}function S(){return E.apply(null,arguments),!0}function w(e,t){for(var i=t;i;i=i.next)if(i.name==e)return!0;return!1}function I(e){var t=T.state;if(T.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=function e(t,i){if(i){if(i.block){var n=e(t,i.prev);return n?n==i.prev?i:new x(n,i.vars,!0):null}return w(t,i.vars)?i:new x(i.prev,new N(t,i.vars),!1)}return null}(e,t.context);if(null!=n)return void(t.context=n)}else if(!w(e,t.localVars))return void(t.localVars=new N(e,t.localVars));i.globalVars&&!w(e,t.globalVars)&&(t.globalVars=new N(e,t.globalVars))}function A(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function x(e,t,i){this.prev=e,this.vars=t,this.block=i}function N(e,t){this.name=e,this.next=t}var L=new N("this",new N("arguments",null));function D(){T.state.context=new x(T.state.context,T.state.localVars,!1),T.state.localVars=L}function M(){T.state.context=new x(T.state.context,T.state.localVars,!0),T.state.localVars=null}function P(){T.state.localVars=T.state.context.vars,T.state.context=T.state.context.prev}function O(e,t){var i=function(){var i=T.state,n=i.indented;if("stat"==i.lexical.type)n=i.lexical.indented;else for(var o=i.lexical;o&&")"==o.type&&o.align;o=o.prev)n=o.indented;i.lexical=new y(n,T.stream.column(),e,null,i.lexical,t)};return i.lex=!0,i}function R(){var e=T.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function k(e){return function t(i){return i==e?S():";"==e||"}"==i||")"==i||"]"==i?E():S(t)}}function F(e,t){return"var"==e?S(O("vardef",t),_e,k(";"),R):"keyword a"==e?S(O("form"),j,F,R):"keyword b"==e?S(O("form"),F,R):"keyword d"==e?T.stream.match(/^\s*$/,!1)?S():S(O("stat"),W,k(";"),R):"debugger"==e?S(k(";")):"{"==e?S(O("}"),M,re,R,P):";"==e?S():"if"==e?("else"==T.state.lexical.info&&T.state.cc[T.state.cc.length-1]==R&&T.state.cc.pop()(),S(O("form"),j,F,R,Te)):"function"==e?S(xe):"for"==e?S(O("form"),Ee,F,R):"class"==e||c&&"interface"==t?(T.marked="keyword",S(O("form"),De,R)):"variable"==e?c&&"declare"==t?(T.marked="keyword",S(F)):c&&("module"==t||"enum"==t||"type"==t)&&T.stream.match(/^\s*\w/,!1)?(T.marked="keyword","enum"==t?S(We):"type"==t?S(ce,k("operator"),ce,k(";")):S(O("form"),ve,k("{"),O("}"),re,R,R)):c&&"namespace"==t?(T.marked="keyword",S(O("form"),H,re,R)):c&&"abstract"==t?(T.marked="keyword",S(F)):S(O("stat"),J):"switch"==e?S(O("form"),j,k("{"),O("}","switch"),M,re,R,R,P):"case"==e?S(H,k(":")):"default"==e?S(k(":")):"catch"==e?S(O("form"),D,B,F,R,P):"export"==e?S(O("stat"),Re,R):"import"==e?S(O("stat"),Fe,R):"async"==e?S(F):"@"==t?S(H,F):E(O("stat"),H,k(";"),R)}function B(e){if("("==e)return S(Ne,k(")"))}function H(e,t){return U(e,t,!1)}function V(e,t){return U(e,t,!0)}function j(e){return"("!=e?E():S(O(")"),H,k(")"),R)}function U(e,t,i){if(T.state.fatArrowAt==T.stream.start){var n=i?Y:X;if("("==e)return S(D,O(")"),ne(Ne,")"),R,k("=>"),n,P);if("variable"==e)return E(D,ve,k("=>"),n,P)}var o=i?z:G;return b.hasOwnProperty(e)?S(o):"function"==e?S(xe,o):"class"==e||c&&"interface"==t?(T.marked="keyword",S(O("form"),Le,R)):"keyword c"==e||"async"==e?S(i?V:H):"("==e?S(O(")"),W,k(")"),R,o):"operator"==e||"spread"==e?S(i?V:H):"["==e?S(O("]"),Ue,R,o):"{"==e?oe(ee,"}",null,o):"quasi"==e?E(q,o):"new"==e?S(function(e){return function(t){return"."==t?S(e?$:Q):"variable"==t&&c?S(fe,e?z:G):E(e?V:H)}}(i)):"import"==e?S(H):S()}function W(e){return e.match(/[;\}\)\],]/)?E():E(H)}function G(e,t){return","==e?S(H):z(e,t,!1)}function z(e,t,i){var n=0==i?G:z,o=0==i?H:V;return"=>"==e?S(D,i?Y:X,P):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?S(n):c&&"<"==t&&T.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?S(O(">"),ne(ce,">"),R,n):"?"==t?S(H,k(":"),o):S(o):"quasi"==e?E(q,n):";"!=e?"("==e?oe(V,")","call",n):"."==e?S(Z,n):"["==e?S(O("]"),W,k("]"),R,n):c&&"as"==t?(T.marked="keyword",S(ce,n)):"regexp"==e?(T.state.lastType=T.marked="operator",T.stream.backUp(T.stream.pos-T.stream.start-1),S(o)):void 0:void 0}function q(e,t){return"quasi"!=e?E():"${"!=t.slice(t.length-2)?S(q):S(H,K)}function K(e){if("}"==e)return T.marked="string-2",T.state.tokenize=_,S(q)}function X(e){return v(T.stream,T.state),E("{"==e?F:H)}function Y(e){return v(T.stream,T.state),E("{"==e?F:V)}function Q(e,t){if("target"==t)return T.marked="keyword",S(G)}function $(e,t){if("target"==t)return T.marked="keyword",S(z)}function J(e){return":"==e?S(R,F):E(G,k(";"),R)}function Z(e){if("variable"==e)return T.marked="property",S()}function ee(e,t){return"async"==e?(T.marked="property",S(ee)):"variable"==e||"keyword"==T.style?(T.marked="property","get"==t||"set"==t?S(te):(c&&T.state.fatArrowAt==T.stream.start&&(i=T.stream.match(/^\s*:\s*/,!1))&&(T.state.fatArrowAt=T.stream.pos+i[0].length),S(ie))):"number"==e||"string"==e?(T.marked=s?"property":T.style+" property",S(ie)):"jsonld-keyword"==e?S(ie):c&&A(t)?(T.marked="keyword",S(ee)):"["==e?S(H,ae,k("]"),ie):"spread"==e?S(V,ie):"*"==t?(T.marked="keyword",S(ee)):":"==e?E(ie):void 0;var i}function te(e){return"variable"!=e?E(ie):(T.marked="property",S(xe))}function ie(e){return":"==e?S(V):"("==e?E(xe):void 0}function ne(e,t,i){function n(o,r){if(i?i.indexOf(o)>-1:","==o){var a=T.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),S((function(i,n){return i==t||n==t?E():E(e)}),n)}return o==t||r==t?S():S(k(t))}return function(i,o){return i==t||o==t?S():E(e,n)}}function oe(e,t,i){for(var n=3;n<arguments.length;n++)T.cc.push(arguments[n]);return S(O(t,i),ne(e,t),R)}function re(e){return"}"==e?S():E(F,re)}function ae(e,t){if(c){if(":"==e)return S(ce);if("?"==t)return S(ae)}}function se(e){if(c&&":"==e)return T.stream.match(/^\s*\w+\s+is\b/,!1)?S(H,le,ce):S(ce)}function le(e,t){if("is"==t)return T.marked="keyword",S()}function ce(e,t){return"keyof"==t||"typeof"==t?(T.marked="keyword",S("keyof"==t?ce:V)):"variable"==e||"void"==t?(T.marked="type",S(pe)):"string"==e||"number"==e||"atom"==e?S(pe):"["==e?S(O("]"),ne(ce,"]",","),R,pe):"{"==e?S(O("}"),ne(ue,"}",",;"),R,pe):"("==e?S(ne(he,")"),de):"<"==e?S(ne(ce,">"),ce):void 0}function de(e){if("=>"==e)return S(ce)}function ue(e,t){return"variable"==e||"keyword"==T.style?(T.marked="property",S(ue)):"?"==t?S(ue):":"==e?S(ce):"["==e?S(H,ae,k("]"),ue):void 0}function he(e,t){return"variable"==e&&T.stream.match(/^\s*[?:]/,!1)||"?"==t?S(he):":"==e?S(ce):E(ce)}function pe(e,t){return"<"==t?S(O(">"),ne(ce,">"),R,pe):"|"==t||"."==e||"&"==t?S(ce):"["==e?S(k("]"),pe):"extends"==t||"implements"==t?(T.marked="keyword",S(ce)):void 0}function fe(e,t){if("<"==t)return S(O(">"),ne(ce,">"),R,pe)}function ge(){return E(ce,me)}function me(e,t){if("="==t)return S(ce)}function _e(e,t){return"enum"==t?(T.marked="keyword",S(We)):E(ve,ae,ye,Ce)}function ve(e,t){return c&&A(t)?(T.marked="keyword",S(ve)):"variable"==e?(I(t),S()):"spread"==e?S(ve):"["==e?oe(ve,"]"):"{"==e?oe(be,"}"):void 0}function be(e,t){return"variable"!=e||T.stream.match(/^\s*:/,!1)?("variable"==e&&(T.marked="property"),"spread"==e?S(ve):"}"==e?E():S(k(":"),ve,ye)):(I(t),S(ye))}function ye(e,t){if("="==t)return S(V)}function Ce(e){if(","==e)return S(_e)}function Te(e,t){if("keyword b"==e&&"else"==t)return S(O("form","else"),F,R)}function Ee(e,t){return"await"==t?S(Ee):"("==e?S(O(")"),Se,k(")"),R):void 0}function Se(e){return"var"==e?S(_e,k(";"),Ie):";"==e?S(Ie):"variable"==e?S(we):E(H,k(";"),Ie)}function we(e,t){return"in"==t||"of"==t?(T.marked="keyword",S(H)):S(G,Ie)}function Ie(e,t){return";"==e?S(Ae):"in"==t||"of"==t?(T.marked="keyword",S(H)):E(H,k(";"),Ae)}function Ae(e){")"!=e&&S(H)}function xe(e,t){return"*"==t?(T.marked="keyword",S(xe)):"variable"==e?(I(t),S(xe)):"("==e?S(D,O(")"),ne(Ne,")"),R,se,F,P):c&&"<"==t?S(O(">"),ne(ge,">"),R,xe):void 0}function Ne(e,t){return"@"==t&&S(H,Ne),"spread"==e?S(Ne):c&&A(t)?(T.marked="keyword",S(Ne)):E(ve,ae,ye)}function Le(e,t){return"variable"==e?De(e,t):Me(e,t)}function De(e,t){if("variable"==e)return I(t),S(Me)}function Me(e,t){return"<"==t?S(O(">"),ne(ge,">"),R,Me):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(T.marked="keyword"),S(c?ce:H,Me)):"{"==e?S(O("}"),Pe,R):void 0}function Pe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&A(t))&&T.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(T.marked="keyword",S(Pe)):"variable"==e||"keyword"==T.style?(T.marked="property",S(c?Oe:xe,Pe)):"["==e?S(H,ae,k("]"),c?Oe:xe,Pe):"*"==t?(T.marked="keyword",S(Pe)):";"==e?S(Pe):"}"==e?S():"@"==t?S(H,Pe):void 0}function Oe(e,t){return"?"==t?S(Oe):":"==e?S(ce,ye):"="==t?S(V):E(xe)}function Re(e,t){return"*"==t?(T.marked="keyword",S(je,k(";"))):"default"==t?(T.marked="keyword",S(H,k(";"))):"{"==e?S(ne(ke,"}"),je,k(";")):E(F)}function ke(e,t){return"as"==t?(T.marked="keyword",S(k("variable"))):"variable"==e?E(V,ke):void 0}function Fe(e){return"string"==e?S():"("==e?E(H):E(Be,He,je)}function Be(e,t){return"{"==e?oe(Be,"}"):("variable"==e&&I(t),"*"==t&&(T.marked="keyword"),S(Ve))}function He(e){if(","==e)return S(Be,He)}function Ve(e,t){if("as"==t)return T.marked="keyword",S(Be)}function je(e,t){if("from"==t)return T.marked="keyword",S(H)}function Ue(e){return"]"==e?S():E(ne(V,"]"))}function We(){return E(O("form"),ve,k("{"),O("}"),ne(Ge,"}"),R,R)}function Ge(){return E(ve,ye)}function ze(e,t,i){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(i||0)))}return P.lex=!0,R.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new y((e||0)-r,0,"block",!1),localVars:i.localVars,context:i.localVars&&new x(null,null,!1),indented:e||0};return i.globalVars&&"object"==typeof i.globalVars&&(t.globalVars=i.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),v(e,t)),t.tokenize!=m&&e.eatSpace())return null;var i=t.tokenize(e,t);return"comment"==n?i:(t.lastType="operator"!=n||"++"!=o&&"--"!=o?n:"incdec",function(e,t,i,n,o){var r=e.cc;for(T.state=e,T.stream=o,T.marked=null,T.cc=r,T.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((r.length?r.pop():l?H:F)(i,n)){for(;r.length&&r[r.length-1].lex;)r.pop()();return T.marked?T.marked:"variable"==i&&C(e,n)?"variable-2":t}}}(t,i,n,o,e))},indent:function(t,n){if(t.tokenize==m)return e.Pass;if(t.tokenize!=g)return 0;var o,s=n&&n.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var d=t.cc[c];if(d==R)l=l.prev;else if(d!=Te)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(o=t.cc[t.cc.length-1])&&(o==G||o==z)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var u=l.type,p=s==u;return"vardef"==u?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==u&&"{"==s?l.indented:"form"==u?l.indented+r:"stat"==u?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?a||r:0):"switch"!=l.info||p||0==i.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:r):l.indented+(/^(?:case|default)\b/.test(n)?r:2*r)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:ze,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=H&&t!=V||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}}),e,t),e.exports=o},function(e,t){e.exports='<div class="languageJavaScriptPrefs preferencePanelContent">\n <fieldset>\n <legend>${syntaxHighlightingLabel}</legend>\n </fieldset>\n <div data-dojo-attach-point="enableSyntaxHighlightingNode"></div>\n <fieldset class="syntaxColors">\n <div class="leftAlignedColors">\n <div class="javaScriptKeywords">\n <div class="container">\n <div class="content">${keywordsLabel}</div>\n <div class="widget" data-dojo-attach-point=\'keywordsNode\'></div>\n </div>\n </div>\n <div class="javaScriptComments">\n <div class="container">\n <div class="content">${commentsLabel}</div>\n <div class="widget" data-dojo-attach-point=\'commentsNode\'></div>\n </div>\n </div>\n </div>\n <div class="rightAlignedColors">\n <div class="javaScriptStrings">\n <div class="container">\n <div class="content">${stringsLabel}</div>\n <div class="widget" data-dojo-attach-point=\'stringsNode\'></div>\n </div>\n </div>\n <div class="javaScriptError">\n <div class="container">\n <div class="content">${badCharactersLabel}</div>\n <div class="widget" data-dojo-attach-point=\'errorNode\'></div>\n </div>\n </div>\n </div>\n </fieldset>\n <div class="previewPanel" data-dojo-attach-point="syntaxHighlightRTCNode" id="previewPanel"></div>\n <div class="space"></div>\n <fieldset class="indenting">\n <legend>${smartIndetingLabel}</legend>\n <div data-dojo-attach-point="smartIndentingNode" class="smartIndent"></div>\n </fieldset>\n <fieldset data-dojo-attach-point="fileExtensions">\n <div class="FileExtensionsNode">\n <div class="FileExtensions JavaScriptFileExtenions" data-dojo-attach-point="myTreeContainer">\n </div>\n <div class="buttonsNode">\n <div data-dojo-attach-point="addButtonNode"></div>\n <div data-dojo-attach-point="removeButtonNode"></div>\n </div>\n </div>\n </fieldset>\n <div class="restore" data-dojo-attach-point="restoreDefaultsNode"></div>\n</div>'},function(e,t){e.exports="// Replace 'foo' with 'bar'\nlet replaceFoo = (str) => {\n str.replace(/foo/, 'bar')\n} #"},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{settingKeys:{KEYWORD:"KeywordColor",STRING:"StringsColor",COMMENT:"CommentColor",ERROR:"ErrorColor"},pickerTags:{KEYWORD:"keywordsPreview",STRING:"stringsPreview",COMMENT:"commentsPreview",ERROR:"errorPreview"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getRegistry:function(){return[{id:"rtc.settings.colorsservice",path:"panel-utilities-js/PreviewSettingsServiceProvider"},{id:"rtc.settings.LanguageJavaScriptPanelSyntaxHighlighterProvider",path:"javascriptpanel-ui/LanguageJavaScriptPanelSyntaxHighlighterProvider"}]},getEnabledList:function(){return["rtc.settings.service","rtc.settings.colorsservice","rtc.settings.LanguageJavaScriptPanelSyntaxHighlighterProvider","settings.matlabsynchronizer","language.common.syntaxhighlighter.colors","language.javascript.syntaxhighlighter.colorcontributor","javascript.tokenizer"]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(821),i(1214)],o=i.dj.d(n,(function(e,t,i){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors"]}}createInstance(){return new t(i.colorMapDefaults,i.typeMapDefaults,...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{Token:Object.freeze(JSON.parse('{"AND":1,"ANDAND":2,"ANNOTATIONS":3,"ASSERT":4,"BANG":5,"BRANCHES":6,"BREAK":7,"CASE":8,"CATCH":9,"CHAR":10,"COLON":11,"COMMA":12,"COMMENT":13,"COMPONENT":14,"COMPONENTS":15,"CONNECT":16,"CONNECTIONS":17,"CONTINUE":18,"CTRANSPOSE":19,"DEFINITIONS":20,"DER":21,"DOMAIN":22,"DOT":23,"DOTDOTDOT":24,"ELSE":25,"ELSEIF":26,"ELSEWHEN":27,"END":28,"ENDCOMMENT":29,"ENTRY":30,"EQ":31,"EQUALEQUAL":32,"EQUALS":33,"EQUALSFINAL":34,"EQUATION":35,"EQUATIONS":36,"EVENTS":37,"FOR":38,"FUNCTION":39,"GE":40,"GLOBAL":41,"GT":42,"IF":43,"IMPORT":44,"IN":45,"INITIAL":46,"INPUTS":47,"INTERMEDIATES":48,"LB":49,"LC":50,"LDIVIDE":51,"LE":52,"LET":53,"LP":54,"LT":55,"MINUS":56,"MLDIVIDE":57,"MODE":58,"MODECHART":59,"MODECHARTS":60,"MODES":61,"MPOWER":62,"MRDIVIDE":63,"MTIMES":64,"NE":65,"NODES":66,"NOT":67,"NOTEQUAL":68,"OR":69,"OROR":70,"OTHERWISE":71,"OUTPUTS":72,"PARAMETERS":73,"PERSISTENT":74,"PLUS":75,"POWER":76,"PRE":77,"QUESTION":78,"RB":79,"RC":80,"RDIVIDE":81,"RETURN":82,"RP":83,"SEMICOLON":84,"STARTCOMMENT":85,"STR":86,"SWITCH":87,"THROUGHS":88,"TIME":89,"TIMES":90,"TRANSITIONS":91,"TRANSPOSE":92,"TRY":93,"VARIABLES":94,"WHEN":95,"WHILE":96}')),TokenMap:Object.freeze(JSON.parse('{"1":{"String":"&","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"2":{"String":"&&","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"3":{"String":"annotations","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"4":{"String":"assert","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"5":{"String":"!","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"6":{"String":"branches","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"7":{"String":"break","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"8":{"String":"case","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"9":{"String":"catch","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"10":{"String":"\'","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"11":{"String":":","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"12":{"String":",","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"13":{"String":"%","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"14":{"String":"component","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"15":{"String":"components","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"16":{"String":"connect","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"17":{"String":"connections","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"18":{"String":"continue","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"19":{"String":"\'","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"20":{"String":"definitions","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"21":{"String":"der","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"22":{"String":"domain","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"23":{"String":".","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"24":{"String":"...","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"25":{"String":"else","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"26":{"String":"elseif","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"27":{"String":"elsewhen","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"28":{"String":"end","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"29":{"String":"%}","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"30":{"String":"entry","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"31":{"String":"==","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"32":{"String":"==","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"33":{"String":"=","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"34":{"String":":=","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"35":{"String":"equation","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"36":{"String":"equations","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"37":{"String":"events","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"38":{"String":"for","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"39":{"String":"function","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"40":{"String":">=","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"41":{"String":"global","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"42":{"String":">","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"43":{"String":"if","Tags":"keyword","End":"end","Mid":["elseif","else"],"TagChoices":["keyword","operator"]},"44":{"String":"import","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"45":{"String":"in","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"46":{"String":"initial","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"47":{"String":"inputs","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"48":{"String":"intermediates","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"49":{"String":"[","Tags":[],"End":"]","Mid":[],"TagChoices":["keyword","operator"]},"50":{"String":"{","Tags":[],"End":"}","Mid":[],"TagChoices":["keyword","operator"]},"51":{"String":".\\\\","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"52":{"String":"<=","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"53":{"String":"let","Tags":"keyword","End":"end","Mid":"in","TagChoices":["keyword","operator"]},"54":{"String":"(","Tags":[],"End":")","Mid":[],"TagChoices":["keyword","operator"]},"55":{"String":"<","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"56":{"String":"-","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"57":{"String":"\\\\","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"58":{"String":"mode","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"59":{"String":"modechart","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"60":{"String":"modecharts","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"61":{"String":"modes","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"62":{"String":"^","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"63":{"String":"/","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"64":{"String":"*","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"65":{"String":"~=","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"66":{"String":"nodes","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"67":{"String":"~","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"68":{"String":"~=","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"69":{"String":"|","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"70":{"String":"||","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"71":{"String":"otherwise","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"72":{"String":"outputs","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"73":{"String":"parameters","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"74":{"String":"persistent","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"75":{"String":"+","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"76":{"String":".^","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"77":{"String":"pre","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"78":{"String":"?","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"79":{"String":"]","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"80":{"String":"}","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"81":{"String":"./","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"82":{"String":"return","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"83":{"String":")","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"84":{"String":";","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"85":{"String":"%{","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"86":{"String":"\\"","Tags":[],"End":null,"Mid":[],"TagChoices":["keyword","operator"]},"87":{"String":"switch","Tags":"keyword","End":"end","Mid":["case","otherwise"],"TagChoices":["keyword","operator"]},"88":{"String":"throughs","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"89":{"String":"time","Tags":"keyword","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"90":{"String":".*","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"91":{"String":"transitions","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"92":{"String":".\'","Tags":"operator","End":null,"Mid":[],"TagChoices":["keyword","operator"]},"93":{"String":"try","Tags":"keyword","End":"end","Mid":"catch","TagChoices":["keyword","operator"]},"94":{"String":"variables","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]},"95":{"String":"when","Tags":"keyword","End":"end","Mid":["elsewhen","else"],"TagChoices":["keyword","operator"]},"96":{"String":"while","Tags":"keyword","End":"end","Mid":[],"TagChoices":["keyword","operator"]}}'))}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(210),i(225),i(213),i(222),i(221),i(206),i(223),i(246),i(7482),i(216),i(215),i(312),i(650),i(238),i(7483),i(750),i(851),i(697),i(7498),i(7505),i(233),i(477),i(317),i(2488),i(7508),i(2489),i(7509),i(7513),i(1603),i(7515),i(7516),i(306),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R){var k=!1,F=function(e){var t,i,o;function r(e){for(var t in e.types)if("Files"===e.types[t])return!0;return!1}e.fileBrowserContainer.ondragstart=function(e){r(e.dataTransfer)&&e.preventDefault()},e.fileBrowserContainer.ondragenter=function(a){e.grid.clearSelection();var s=e.grid.row(a),l=s&&s.element;if(o!==l&&(t&&n.remove(t,"highlightDropTargetRow"),r(a.dataTransfer))){a.preventDefault();var c=function(t){var i=t;return i&&!i.isDirectory&&(i=e.grid.store.get(i.parent)),i}(s&&s.data);if(function(t,i){return!!(t&&t.isDirectory&&E.isWritable(t)&&t!==e.grid.getCurrentFolderInfo()&&(i.contains("dgrid-cell-data")||i.contains("iconOverlay")))}(c,a.target.classList)){var d=e.grid.row(E.pathFromFileInfo(c)),u=d.element;n.add(u,"highlightDropTargetRow"),t=u,i=d,o=l}else t=null,i=null,o=null}},e.fileBrowserContainer.ondragleave=function(e){e.preventDefault(),!e.relatedTarget&&t&&n.remove(t,"highlightDropTargetRow"),e.dataTransfer.dropEffect="none"},e.fileBrowserContainer.ondragover=function(e){r(e.dataTransfer)&&(e.preventDefault(),e.dataTransfer.dropEffect="copy")},e.fileBrowserContainer.ondragend=function(e){e.preventDefault()},e.fileBrowserContainer.ondrop=function(o){var r;o.preventDefault(),setTimeout((function(){t&&n.remove(t,"highlightDropTargetRow")}),500),r=i?i.data.path:E.pathFromFileInfo(e.fileService.getCurrentFolderInfo()),e.emit("fileBrowserDropEvent",o,r)}};return e([p,h,P,a],{templateString:u,idAttr:"data-tag",collapseIcon:"collapseIcon",expandIcon:"expandIcon",constructor:function(e){e=e||{},this.fileBrowserId=e.fileBrowserId||"file-browser-"+R.generateUuid(),this.fileService=e.fileService,this._actionManager=e.actionManager,this.columnRegistry=e.columnRegistry,this.allowDnD=e.allowDnD,this.keybindings=e.keybindings,this.contextMenuEnabled=e.contextMenuEnabled,this.contextMenuBuilder=e.contextMenuBuilder,this.layoutConfiguration=e.layoutConfiguration,this._keyboardActionsManager=new A},postCreate:function(){var n,r,a,c,d,u;if(this.inherited(arguments),this.layoutConfiguration&&(this.layoutConfiguration.SortColumn&&(r=this.layoutConfiguration.SortColumn.value),this.layoutConfiguration.SortDescending&&(a=this.layoutConfiguration.SortDescending.value),this.layoutConfiguration.ColumnOrder&&(c=this.layoutConfiguration.ColumnOrder.value),this.layoutConfiguration.ColumnSizes&&(d=this.layoutConfiguration.ColumnSizes.value),this.layoutConfiguration.VisibleColumns&&(u=this.layoutConfiguration.VisibleColumns.value)),this.tooltip=new f({connectId:this.currentFolderNode,position:["above","after"]}),!D.getFBCompareFunction()){var h=this.columnRegistry.getColumn(r)?r:"name",p=a||!1,g=this.columnRegistry.getCompareFunction(h,p);D.setFBSortProperties(g,h,p)}if(c){n=c.reduce(function(e,t,i){if(this.columnRegistry.getColumn(t)){var n=this.columnRegistry.getColumn(t);d&&(n.width=d[i]),u&&(n.hidden=-1===u.indexOf(t)),e.push(n)}return e}.bind(this),[]);var m=this.columnRegistry.getColumns().map((function(e){return e.field})),E=n.map((function(e){return e.field})),A=m.reduce((function(e,t,i){return-1===E.indexOf(t)&&e.push(i),e}),[]);A.forEach(function(e){n.splice(e,0,this.columnRegistry.getColumn(m[e]))}.bind(this))}var P,O=function(e,t){var i,n=e.connected;if(n){var r=o(">.dgrid-row",n);r.length>0&&(i=r[0].observerIndex),void 0!==i&&this.grid.observers[i].remove()}}.bind(this),R={},k=this._triggerRenderRow=function(e){R[e.path]=e,P||(P=setTimeout(function(){P=null,this.emit("renderRow",R),R={}}.bind(this),0))}.bind(this);this.own(this.grid=e([b,v,y,_,C,T,L,M])({minRowsPerPage:1e3,sort:D.getFBCompareFunction(),store:this.fileService.fileStore.store,columns:n||this.columnRegistry.getColumns(),selectionMode:"custom",allowSelectAll:!0,deselectOnRefresh:!1,cellNavigation:!1,dndConstructor:N,allowSelect:this._handleRowSelection,dndParams:{allowNested:!0,skipForm:!0,isSource:this.allowDnD}},this.dgridContainer),i.before(this.grid,"removeRow",O,!0),i.after(this.grid,"expand",t.hitch(this,this.onExpandOrCollapse),!0),i.after(this.grid.dndSource,"onFilesDrop",t.hitch(this,"onFilesDrop"),!0),i.after(this.grid,"renderRow",t.hitch(this,this.handleScreenReader),!1),i.after(this.grid,"renderRow",k,!0),i.after(this.grid,"removeRow",(function(e){e.dispatchEvent(new CustomEvent("removeRow"))}),!0));var B=this.getStore();if("function"==typeof B.on&&this.own(l(B,"sort-disabled",function(){this._compareFn=D.getFBCompareFunction(),this.grid.domNode.contains(document.activeElement)&&(this._selectionOnSortDisabled={fileInfos:this.getSelectedFileInfos(),filePaths:this.getSelectedFilePaths(),focus:this.grid._focusedNode&&this.grid.row(this.grid._focusedNode)})}.bind(this)),l(B,"sort-enabled",function(){l.once(this.grid,"dgrid-refresh-complete",function(){var e=function(){B.emit("sort-complete")};if(!this._selectionOnSortDisabled)return e();if(this._selectionOnSortDisabled.fileInfos.length>0){var t=this._selectionOnSortDisabled,i=[],n=[];this._selectionOnSortDisabled.filePaths.forEach((function(e,o){B.query({path:e}).length>0&&(i.push(t.fileInfos[o]),n.push(t.filePaths[o]))})),this.onSelectionChange(i,n)}var o=this._selectionOnSortDisabled.focus;if((delete this._selectionOnSortDisabled,o&&o.data)&&this.getStore().query({path:o.data.path}).length>0){var r=this.grid.on("dgrid-cellfocusin",(function(){r.remove(),e()}));return void this.focus(o.data)}e()}.bind(this)),this.grid.set("sort",this._compareFn),delete this._compareFn}.bind(this))),this.contextMenuEnabled){var H=new I;H.createContextMenu(this)}else this.contextMenuBuilder&&this.contextMenuBuilder.createContextMenu(this);if(this.own(this.grid.headerContextMenu=new w({targetNodes:["#"+this.grid.id+" .dgrid-header"]})),x.buildContextMenu(this.grid.headerContextMenu,this.columnRegistry,this.grid,t.hitch(this,this.updateColumnVisible)),this.own(i.after(this.fileService,"onMove",t.hitch(this,this._handleMoveFile),!0),i.after(this.fileService,"onRename",t.hitch(this,this._handleRenameFile),!0)),this.grid.on("dgrid-editor-show",t.hitch(this,this._initializeEditor)),this.grid.on("dgrid-editor-hide",t.hitch(this,this._hideEditor)),this.setupFBEvents(this),s("ios")){var V=new S(this.grid.domNode),j=this;V.events.doubleTap.addEventHandler((function(e){j._handleRowDoubleClick(e)}))}if(F(this),this.hiddenFileInputForUpload.onchange=t.hitch(this,this._handleFileInputChange,this.hiddenFileInputForUpload,this.uploadForm),this._keyboardActionsManager.setNavigationKeyBindings(this,this._actionManager),this._actionManager.on("actions-updated",t.hitch(this,(function(e){this._keyboardActionsManager.updateActionsKeyBindings(e,this.keybindings,this)}))),this.layoutConfiguration&&"function"==typeof this.layoutConfiguration.on){var U=function(){this.setQueryFilterCriteria(this.getQueryFilterCriteria())}.bind(this),W=this.layoutConfiguration.on("update:showHiddenFiles",U);this.on("destroyed",(function(){W.remove()}))}},_handleRowSelection:function(e){if(e)return!function(e){return!(!e.data||"group"!==e.data.type)}(e)},updateColumnVisible:function(e,t){this.grid.toggleColumnHiddenState(e,!t);for(var i=this.grid.headerContextMenu.getChildren(),n=0;n<i.length;n++){var o=i[n];if(o.id===e){o.set("checked",t);break}}this.emit("columnstatechange",{columnId:e,makeVisible:t})},_handleFileInputChange:function(e,t){this.onFileInputChange(e,t)},startupFB:function(){this.grid.startup()},renameFile:function(e){var t=E.pathFromFileInfo(e[0]),i=this.grid.row(t),n=this.grid.cell(i,this.columnRegistry.getColumn("name").id);l.emit(n.element,"renameEvent",{});var o=this,r=new O,a=this.grid.on("dgrid-datachange",(function(e){e.preventDefault();var t={fileInfo:o.grid.row(e).data,newName:e.value};r.resolve(t),a.remove()})),s=this.grid.on("dgrid-editor-hide",(function(t){r.isResolved()||r.resolve({fileInfo:e[0],newName:e[0].name}),a.remove(),s.remove()}));return r.promise},_initializeEditor:function(e){var i=e.cell.element,n=e.column,o={alreadyHooked:!0};n.renderCell(n.grid.row(i).data,e.grid._activeValue,i,e.grid._activeOptions?t.delegate(o,e.grid._activeOptions):o);var r=i.childNodes,a=r[1].getElementsByClassName("fileIcon")[0],s=r[1].getElementsByClassName("iconOverlay")[0],c=r[1].getElementsByClassName("dgrid-cell-data")[0],d=window.getComputedStyle(c).paddingLeft,u=e.editor.domNode;u.style.width=i.offsetWidth-a.offsetWidth-s.offsetWidth-parseFloat(d)-parseFloat(r[1].style.marginLeft)+"px",u.style.position="relative",u.style.top="-"+window.getComputedStyle(i)["padding-top"],u.style.right="-"+window.getComputedStyle(i)["padding-right"],c.parentNode.removeChild(c),e.grid.row(e).element.style.backgroundColor="gray",u.style.height="20px",l(u,"click, dblclick, contextmenu",(function(e){e.stopPropagation()}));var h=this.grid.row(e).data,p=h.name,f=-1===p.lastIndexOf(".")||h.isDirectory?p.length:p.lastIndexOf("."),g=e.editor.textbox;if(g.style.height=u.style.height,g.createTextRange){e.preventDefault();var m=g.createTextRange();m.collapse(),m.moveStart("character",0),m.moveEnd("character",f),m.select()}else g.setSelectionRange(0,f);this.emit("filebrowser-editor-show",e)},_handleFileNameChanged:function(e){e.preventDefault(),this.onFileNameChanged(this.grid.row(e).data,e.value)},resize:function(e){var t=this.domNode.getElementsByClassName("dijitValidationTextBox");1===t.length&&(this._resizeHappened=!0,dijit.getEnclosingWidget(t[0]).focusNode.blur());r.set(this.domNode,{height:e.h.toString()+"px",width:e.w.toString()+"px"}),r.set(this.dgridContainer,{height:e.h.toString()+"px",width:e.w.toString()+"px"}),this.grid.resize()},changeCurrentFolder:function(e){this.grid.setCurrentFolderInfo(e);var t=this.getQueryFilterCriteria();t&&"function"==typeof t.discard&&t.discard();var i=this._getCurrentFolderQuery(e);this.setQueryFilterCriteria(i),this.grid.clearSelection(),this.onSelectionChange(this.grid.getSelectedFileInfos(),this.grid.getSelectedFilePaths()),k&&(this.grid._focusedNode=null,this.grid.focus(),this.setShouldGiveFocusBackToDgrid(!1))},_getCurrentFolderQuery:function(e){var t=E.pathFromFileInfo(e),i=void 0;return this.layoutConfiguration&&"function"==typeof this.layoutConfiguration.getHiddenEntryFilter&&(i=this.layoutConfiguration.getHiddenEntryFilter()),function(e){if(e.parent!==t)return!1;var n=!0;return i&&(n=i(e)),n}.bind(this)},setShouldGiveFocusBackToDgrid:function(e){k=e},_getColumnSet:function(e){for(var t={},i=0;i<e.length;i++)t[e[i]]=!0;return t},updateCompareFunction:function(e,t){var i=this.columnRegistry.getCompareFunction(e,t);D.setFBSortProperties(i,e,t),this.grid.set("sort",i)},getCurrentSortAttributes:function(){return D.getFBSortArray()[0]},_handleMoveFile:function(e){var t,i=E.pathFromFileInfo(e),n=E.getParentPath(i);t=this.grid._expanded[n]||n===E.pathFromFileInfo(this.fileService.getCurrentFolderInfo())?i:n,this.grid.clearRemovedFocus(),this.grid.focus(this.grid.row(t).element)},_handleRenameFile:function(e){this.grid.clearRemovedFocus(),this.grid.focus(this.grid.row(E.pathFromFileInfo(e)).element)},onSelectionChange:function(e,t){},onDoubleClick:function(e){},onFilesDrop:function(e,t,i){},onFileNameChanged:function(e,t){},onExpandOrCollapse:function(e){var t=this.grid.row(e).id,i=this.grid.row(e).data,n=this.grid.row(e).element;if(i&&!i.isGroupHeader){var o=!!this.grid._expanded[t];o?n.setAttribute("aria-expanded","true"):n.setAttribute("aria-expanded","false"),this.fileService.onExpandOrCollapse&&this.fileService.onExpandOrCollapse(t,o,this.fileBrowserId)}e.data&&e.data.isDirectory&&this.columnRegistry.getColumn("name").setNodeClassName(e,this.grid._expanded[e.id])},_hideEditor:function(e){e.grid.row(e).element.style.removeProperty("background-color"),this.emit("filebrowser-editor-hide",e)},onFocus:function(){n.remove(this.domNode,"fileBrowser2-blur")},_isAnyDialogOpen:function(){return this._resizeHappened||this._contextMenuVisible||0!==document.getElementsByClassName("calloutContent").length},onBlur:function(){this._isAnyDialogOpen()||(this.removeFocusAndSelection(),this.setShouldGiveFocusBackToDgrid(!1)),this._resizeHappened=!1,this._contextMenuVisible=!1},handleScreenReader:function(e,t){var i=this.grid.getCurrentFolderPath(),n=t[0];"\\"===i[i.length-1]&&(i=i.slice(0,i.length-1));var o=n.separator;"\\"===o&&(o="\\\\");var r=new RegExp(o,"g"),a=(n.path.slice(i.length).match(r)||[]).length;return e.setAttribute("aria-level",a),!!this.grid._expanded[n.path]?e.setAttribute("aria-expanded","true"):e.setAttribute("aria-expanded","false"),e},clearView:function(){return this.changeCurrentFolder(E.fileInfoFromPath("@!#!!@#!@#@!#"))},destroy:function(){this.inherited(arguments),this.emit("destroyed")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){var t=["ms","O","Moz","Webkit"];function i(e,i){var n,o=e.style;if(i in o)return!0;for(i=i.slice(0,1).toUpperCase()+i.slice(1),n=t.length;n--;)if(t[n]+i in o)return t[n];return!1}return e.add("css-transitions",(function(e,t,n){return i(n,"transitionProperty")})),e.add("css-transforms",(function(e,t,n){return i(n,"transform")})),e.add("css-transforms3d",(function(e,t,n){return i(n,"perspective")})),e.add("transitionend",(function(){var t=e("css-transitions");return!!t&&(!0===t?"transitionend":{ms:"MSTransitionEnd",O:"oTransitionEnd",Moz:"transitionend",Webkit:"webkitTransitionEnd"}[t])})),e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=e(null,{setFBSortProperties:function(e,t,i){this._compareFunction=e,this._fbSort=[{attribute:t,descending:i}]},getFBCompareFunction:function(){return this._compareFunction},getFBSortArray:function(){return this._fbSort},isFBSortDescending:function(){return this._fbSort[0].descending}});if(!i)var i=new t;return i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_columnsMap:null,constructor:function(){this._columnsMap=[]},addColumn:function(e){this._columnsMap.push(e.column)},getColumns:function(){return this._columnsMap},getColumn:function(e){return this.getColumns().filter((function(t){return t.field===e}))[0]},getCompareFunction:function(e,t){var i=this.getColumn(e);if(i.sort){return function(e,n){return i.sort(e,n)*(t?-1:1)}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(206),i(508),i(1004),i(7529),i(1401),i(2493),i(852),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([],{constructor:function(e){(e=e||{}).sharingManager&&(this._sharingManager=e.sharingManager,this._sharingManager.sharingService&&n(this._sharingManager.sharingService,"updatedShareInfo",t.hitch(this,this._handleUpdateShareInfo),!0)),e.fileIconProvider&&(this._fileIconProvider=e.fileIconProvider),this.column=a(r({id:e.id||"nameColumn",_sharingManager:e.sharingManager,_fileIconProvider:e.fileIconProvider,label:o.name,field:"name",renderHeaderCell:function(e){var t=document.createElement("div");t.className="columnHeaderLabel";var i=document.createTextNode(o.name);t.appendChild(i),e.appendChild(t)},renderCell:function(e,t,n,o){var r,a,s=document.createElement("span");s.className="dgrid-cell-data","group"!==e.type&&((r=document.createElement("span")).id="fileIcon-"+e.path.replace(":",""),r.className="fileIcon ",this._fileIconProvider&&!e.isDirectory?this._fileIconProvider.getIconData(e).then(function(t){t.iconClass?e.isDirectory?r.className+=l.getIconClass(e,this.grid._expanded[e.path]):r.className+=t.iconClass:r.style.backgroundImage="url('"+t.iconData+"')"}.bind(this)):r.className+=l.getIconClass(e,this.grid._expanded[d.pathFromFileInfo(e)]),(a=document.createElement("span")).className="iconOverlay ",r.appendChild(a));var c=document.createTextNode(e.name);s.appendChild(c),"group"===e.type&&i.add(s,"group");var u=l.getInfoLabel(e);if(u){var h=document.createElement("span");h.className="infoLabel",h.innerText=u,s.appendChild(h)}if(this._sharingManager&&e.isDirectory&&!e.isGroupHeader)if(this._sharingManager.sharingService){var p=this._sharingManager.sharingService.getShareInfo(d.pathFromFileInfo(e));!p.pending&&p.consumers.items.length>0&&i.add(a,"folderShared")}else e.isDirectory&&this._sharingManager.sharingDataService.getSharingInfo(e).then(function(e){e.isShared&&i.add(a,"folderShared")}.bind(this));return{celldata:s,icon:r}},shouldExpand:function(e,t,i){return"group"===e.data.type||i},canEdit:function(e){return e&&!e.isGroupHeader},expandOn:".dgrid-expando-icon:click",editor:s,editorArgs:{style:"float:right;",trim:!0,required:!0},editOn:"renameEvent",sortable:!0,sort:function(e,t){return e.isDirectory||t.isDirectory?c.separateFoldersFromFiles(e,t):c.caseSensitiveStringComparator(e.name,t.name)},unhidable:!0,reorderable:!1,setSharedOverlayIcon:l.setSharedOverlayIcon,setNodeClassName:function(e,t){var i=l.getIconNodeFromRow(e);i&&i.hasOwnProperty("className")&&(i.className=l.getIconClass(e.data,t))}}))},_handleUpdateShareInfo:function(e){var t=e.shareInfo,i=e.path,n=this.column.grid.row(i);n&&(t.consumers.items.length>0?this.column.setSharedOverlayIcon(!0,n):this.column.setSharedOverlayIcon(!1,n))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(508),i(2494),i(2495),i(852),i(7530)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{constructor:function(e){e=e||{},this.column={id:e.id||"sizeColumn",label:t.size,renderHeaderCell:function(e){var i=document.createElement("div");i.className="columnHeaderLabel";var n=document.createTextNode(t.size);i.appendChild(n),e.appendChild(i)},field:"size",renderCell:function(e,t,o,r){var a=document.createElement("span");if(a.className="dgrid-cell-data",n.isNumeric(e.size)){var s=document.createTextNode(i.convert(e));a.appendChild(s)}return a},sortable:!0,sort:function(e,t){return e.isDirectory||t.isDirectory?o.separateFoldersFromFiles(e,t):e.size===t.size?o.caseSensitiveStringComparator(e.name,t.name):e.size-t.size},hidden:!0,groupable:!0,groupingAction:new r}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(508),i(852),i(2495),i(7531),i(7532),i(2496)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{constructor:function(e){e=e||{},this.column={id:e.id||"dateModifiedColumn",label:t.dateModified,renderHeaderCell:function(e){var i=document.createElement("div");i.className="columnHeaderLabel";var n=document.createTextNode(t.dateModified);i.appendChild(n),e.appendChild(i)},field:"modifiedUtc",sortable:!0,renderCell:function(e,t,i,o){var r=document.createElement("span");if(r.className="dgrid-cell-data",n.isNumeric(e.modifiedUtc)){var s=document.createTextNode(a.formatDate(e.modifiedUtc));r.appendChild(s)}return r},sort:function(e,t){var n=new Date(e.modifiedUtc),r=new Date(t.modifiedUtc);return e.isDirectory||t.isDirectory?o.separateFoldersFromFiles(e,t):n===r?i.caseSensitiveStringComparator(e.name,t.name):o.compareDate(n,r)},hidden:!0,groupable:!0,groupingAction:new r}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(508),i(236),i(852),i(7533)],o=i.dj.d(n,(function(e,t,i,n,o){function r(e){var t=-1!==e.name.lastIndexOf(".")?e.name.lastIndexOf(".")+1:e.name.length;return e.name.substring(t,e.name.length)}return e([],{constructor:function(e){e=e||{},this.column={id:e.id||"typeColumn",label:t.type,renderHeaderCell:function(e){var i=document.createElement("div");i.className="columnHeaderLabel";var n=document.createTextNode(t.type);i.appendChild(n),e.appendChild(i)},field:"type",sortable:!0,renderCell:function(e,n,o,a){var s=document.createElement("span");if(s.className="dgrid-cell-data",!e.isGroupHeader){var l=document.createTextNode(function(e){return e.isDirectory?t.defaultFolderType:e.type?e.type:i.substitute(t.defaultFileType,[r(e).toUpperCase()])}(e));s.appendChild(l)}return s},sort:function(e,t){return e.isDirectory||t.isDirectory?n.separateFoldersFromFiles(e,t):e.type===t.type?n.caseSensitiveStringComparator(e.name,t.name):n.caseSensitiveStringComparator(e.type,t.type)},hidden:!0,groupable:!0,groupingAction:new o}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(219),i(229),i(849)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{constructor:function(e){this._channel=""},openDirectory:async function(e){return this._validateDialogOptions(e,!0),this._deferred=new o,this._channel="/filechooser/apis/openFolderDialog",await i.subscribe(this._channel+"/result",this._fetchUserSelection,this),i.publish(this._channel+"/open",{location:e.initialPath,dialogName:e.dialogName}),this._deferred},openFile:async function(e){return this._validateDialogOptions(e,!1),this._deferred=new o,this._channel="/filechooser/apis/openFileDialog",await i.subscribe(this._channel+"/result",this._fetchUserSelection,this),i.publish(this._channel+"/open",{location:e.initialPath,dialogName:e.dialogName,filters:e.filters}),this._deferred},saveFile:async function(e){return this._validateDialogOptions(e,!1),this._deferred=new o,this._channel="/filechooser/apis/saveFileDialog",await i.subscribe(this._channel+"/result",this._fetchUserSelection,this),i.publish(this._channel+"/open",{location:e.initialPath,dialogName:e.dialogName,filters:e.filters}),this._deferred},_fetchUserSelection:function(e){let{data:{result:t}}=e;Number.isInteger(t)&&(t=String.fromCharCode(t)),this._deferred.resolve(t),i.unsubscribe(this._channel+"/result",this._fetchUserSelection,this)},_validateDialogOptions:function(e,t){if(e&&e.dialogName&&"string"==typeof e.dialogName&&e.initialPath&&"string"==typeof e.initialPath){if(t)return;if(e.filters&&Array.isArray(e.filters)&&e.filters.length>0){let t=e.filters.filter((function(e){let t=[];return!Array.isArray(e.patterns)||(t=e.patterns.filter((function(e){return"string"!=typeof e})),"string"!=typeof e.label||t.length>0)}));if(t.length>0)throw new Error("These filters are not in the correct format."+JSON.stringify(t));return}throw new Error("Filter is not provided in the correct format."+JSON.stringify(e.filters))}throw new Error("Unrecognizable DialogOptions object type"+JSON.stringify(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7565),i(7566),i(7567),i(7568)],o=i.dj.d(n,(function(e,t){return t(e,"sharing_actions/resources/MATLABDrive/nls/desktop",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7575),i(7576),i(7577),i(7578)],o=i.dj.d(n,(function(e,t){return t(e,"matlabdrive_js/resources/MATLABDrive/nls/desktop",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(232)],o=i.dj.d(n,(function(e,t){return{_started:!1,_moduleList:[],initialize:function(e){"string"==typeof e?this._moduleList.push(e):this._moduleList=this._moduleList.concat(e),this._moduleList.length>=30&&this.flush()},flush:function(){this._started&&this._moduleList.length>0&&(t.sendMessage({ClientModulesStarted:{modules:this._moduleList}}),this._moduleList=[])},start:function(){this._started=!0,this._recurringFlushInterval=setInterval(e.hitch(this,this.flush),1e3)},stop:function(){this.flush(),clearInterval(this._recurringFlushInterval),this._recurringFlushInterval=null,this._started=!1}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(204),i(213),i(221),i(206),i(258),i(286),i(233),i(2491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([t],{DEFAULT_FILE_NAME:"Untitled",FILES_ONLY:0,DIRECTORIES_ONLY:1,constructor:function(e){this._filters=e.filters,this._fileMustExist=!!e.fileMustExist,this._fileTypeFilterMustExist=e.fileTypeFilterMustExist||!1,this._saveAsFileName=e.saveAsFileName,this._fileName=new a({width:"100%",value:this._saveAsFileName||this.DEFAULT_FILE_NAME}),this._okButtonDisabledInValidation=!1},postCreate:function(){this.inherited(arguments),this._fileName.set("disabled",!0),this._fileName.placeAt(this.fileNameNode),this.own(r(this._fileName,"change",function(e){this._fileNameValidator(e.mwEventData.newValue)}.bind(this)),r(this._fileName,"focus",function(){setTimeout(function(){this._fileName.focusNode.select()}.bind(this),0)}.bind(this)));var e=this._filters.map((function(e,t){return{label:e.label,ext:e.patterns?e.patterns.join("|"):"*",selected:!!e.selected,value:t+1}})),t=e.filter((function(e){if(e.selected)return e}));this._selectionMode!==this.DIRECTORIES_ONLY&&t.length>0?(this._fileTypeFilter=new s({width:"100%",items:e,placeholder:"Select a value",value:t[0].value}),this._selectedFilter.value=t[0].ext,this._selectedFilter.index=t[0].index,this._fileMustExist||(this._updateFileNameValue(t[0].ext),this._fileNameValidator(this._fileName.get("value")))):this._fileTypeFilter=new s({items:e,placeholder:"Select a value"}),this._fileTypeFilter.set("disabled",!0),this._fileTypeFilter.placeAt(this.fileTypeNode),this._selectionMode===this.DIRECTORIES_ONLY||this._fileMustExist||(n.set(this.fileNameWithLabelNode,{display:"block"}),this._fileName.set("disabled",!1)),this._selectionMode!==this.DIRECTORIES_ONLY&&this._fileTypeFilterMustExist&&(n.set(this.fileTypeWithLabelNode,{display:"block"}),this._fileTypeFilter.set("disabled",!1)),this.own(r(this._fileTypeFilter,"change",function(t){this._selectedFilter.index=t.mwEventData.newValue,this.setFilters(e[t.mwEventData.newValue-1].ext),this._fileMustExist||(this._updateFileNameValue(e[t.mwEventData.newValue-1].ext),this._fileNameValidator(this._fileName.get("value")))}.bind(this)))},startup:function(){this.resize(),this._fileName.startup(),this._fileTypeFilter.startup()},resize:function(){var e={};this._fileMustExist?this._fileTypeFilterMustExist&&(e.w=425,e.h=465):(e.w=425,e.h=475),e.w&&e.h&&(n.set(this.domNode,"width",e.w+"px"),n.set(this.domNode,"height",e.h+"px"))},onFocus:function(){this._fileMustExist||setTimeout(function(){this._fileName.focusNode.focus(),this._fileName.focusNode.select()}.bind(this),0)},_enableOkButton:function(e,t){this._selectionMode===this.DIRECTORIES_ONLY?this._enableOkButtonForDirectories(e,t):this._fileMustExist?this._enableOkButtonForFiles(e,t):this._enableOkButtonForFilesAndDirectories(e,t)},_enableOkButtonForFiles:function(e,t){if(e.length>0){for(var i=!1,n=0;n<e.length;n++)e[n].isDirectory&&(i=!0);i?this._okButton.set("disabled",!0):this._okButton.set("disabled",!1)}else this._okButton.set("disabled",!0)},_enableOkButtonForFilesAndDirectories:function(e,t){1===e.length?(this._shouldSetName(e[0])&&this._fileName.set("value",e[0].name),this._okButton.set("disabled",!1)):this._okButton.set("disabled",!0)},_shouldSetName:function(e){var t=!1;return this._selectionMode===this.FILES_ONLY?t=e&&!e.isDirectory:this._selectionMode===this.DIRECTORIES_ONLY&&(t=e),t},_emitOkButtonClickedEvent:function(){var e,t=this.fileBrowser.grid.getSelectedFileInfos();e=this._selectionMode===this.DIRECTORIES_ONLY?t[0].location.replace(/\/$/,""):t[0].isDirectory?t[0].path:t[0].location.replace(/\/$/,"");var i=this._fileMustExist?t[0].name:this._fileName.get("value"),n=this._selectedFilter.index;this.emit("okButtonClicked",{selectedNode:t,fileName:i,targetLocation:e,fileTypeFilterIndex:n})},_updateFileNameValue:function(e){var t,i,n,o,r=this._fileName.get("value");i=r.lastIndexOf("."),e.indexOf("|*.")>0?-1!==i&&(o=r.substring(i,r.length),e.indexOf(o)<0?this._fileName.set("value",r.substring(0,i)):(n=r.lastIndexOf(o),this._fileName.set("value",r.substring(0,n)+o))):(t="*.*"===e?"":e.split("*")[1],n=r.lastIndexOf(t),-1===i?this._fileName.set("value",r+t):n>=0?this._fileName.set("value",r.substring(0,n)+t):(r=r.substring(0,i),this._fileName.set("value",r+t)))},_fileNameValidator:function(e){var t=!0;return""!==(e=i.trim(e))?(l.MATLAB_EXTENSION_PATTERN.test(e)&&(t&&e.length>63&&(this._fileName.invalidMessage=c.mFileNameLengthError,t=!1),t&&!l.MATLAB_FILENAME_PATTERN.test(e)&&(this._fileName.invalidMessage=c.invalidMFileNameError,t=!1)),t&&e.length>128?(this._fileName.invalidMessage=c.fileNameLengthError,t=!1):t&&!l.isValidFileName(e)&&(this._fileName.invalidMessage=c.invalidFileNameError,t=!1),l.isWritable(this.fileService.currentWorkingFolder)||(this._fileName.invalidMessage=c.currentFolderIsReadOnly,t=!1),this._selectionMode===this.DIRECTORIES_ONLY&&(t=!0)):(t=!1,this._fileName.invalidMessage=c.blankFileNameError),t?(this._fileName.set("validationState","normal"),this._okButtonDisabledInValidation&&this._okButton.set("disabled",!1)):(this._fileName.set("validationState","error"),this._fileName.set("errorText",this._fileName.invalidMessage),this._okButton.get("disabled")||(this._okButton.set("disabled",!0),this._okButtonDisabledInValidation=!0)),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{START_UP_SOURCE_CONTROL:"StartSourceControlIntegration",STATUS_ICONS:"StatusIcons",STATUS_CACHE:"StatusCache",REMOVE_SOURCECONTROL:"RemoveSourcecontrol",STATUS_TOOLTIPS:"StatusTooltips"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(233)],o=i.dj.d(n,(function(e){return{validateFileName:function(t,i){switch(e.getFileSeparator(i)){case"\\":{const e=/^\./,i=/^(aux|nul|prn|con|lpt[0-9]|com[0-9])(\.|$)/i;return/^[^\\/:*?"<>|]+$/.test(t)&&!(e.test(t)||i.test(t))}case"/":return!RegExp("/").test(t)}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){const e=Object.freeze({CWD:"CWD",EXPANDED:"EXPANDED",OPEN_FILE:"OPEN_FILE"});return class t{static createWatchReason(e,...t){let i=[e];for(const e of t)i.push(e);return i.join("::")}static cwdWatchReason(...i){return t.createWatchReason(e.CWD,...i)}static expandedWatchReason(...i){return t.createWatchReason(e.EXPANDED,...i)}static openFileWatchReason(i,...n){return t.createWatchReason(e.OPEN_FILE,i,...n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(345)],o=i.dj.d(n,(function(e,t,i){const n=i.default;return e([t],{fCache:null,fListener:null,fModel:null,fEntriesProperty:null,fNameProperty:null,constructor:function(e){this.fCache=e,this.fModel=e.getModel(),this.fListener=new n,this.fEntriesProperty=e.getMetaClass().getPropertyByName("entries"),this.fNameProperty=e.getMetaClass().getPropertyByName("name")},isActive:function(){return""!==this.getName()},start:function(){this.fListener.transactionCommitted=this._update.bind(this),this.fModel.addShallowListener(this.fListener)},stop:function(){this.fModel.removeListener(this.fListener)},getStatus:function(e){const t=this.fCache.isValid?this.fCache.entries.at(e):null;return t?t.status:"UNKNOWN"},forEach:function(e){this.fCache.isValid&&this.fCache.entries.forEach(e)},getName:function(){return this.fCache.name},getRoot:function(){return this.fCache.root},_update:function(e){e.isChanged(this.fCache,this.fNameProperty)&&this.emit(this.events.NAME_REFRESH,{}),e.isChanged(this.fCache,this.fEntriesProperty)&&(this.emit(this.events._L1_CACHE_REFRESH,{}),this.emit(this.events.CACHE_REFRESH,{}))},events:{CACHE_REFRESH:"refresh",_L1_CACHE_REFRESH:"l1Refresh",NAME_REFRESH:"nameRefresh"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{isFileChanged:function(e,t){return e.modifiedUtc!==t.modifiedUtc||e.name!==t.name||e.size!==t.size||e.type!==t.type||e.hasChildren!==t.hasChildren}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(852)],o=i.dj.d(n,(function(e){return{sort:function(t,i){return t.isDirectory||i.isDirectory?e.separateFoldersFromFiles(t,i):e.caseSensitiveStringComparator(t.name,i.name)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(244),i(209),i(292),i(263),i(7784),i(7801),i(2540),i(2541),i(7802),i(857)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=null,f=["matlab","desktop","commandhistory"],g=e([i],{constructor:function(){this._commandHistoryPopupWidget=null,this._commandHistoryDockedWidget=null,this._commandHistoryPrefs=null,this._uiBuilder=r.getInstance(),this._settingsService=a,this._listeners=[]},setup:function(e){this._actionService=e.actionService,this._executionService=e.executionService,this._actionIdConstants=e.actionIdConstants,this._commandHistoryDataService=u.getInstance({executionService:e.executionService,sessionService:e.sessionService}),c.setup({commandHistoryDataService:this._commandHistoryDataService,settingsService:this._settingsService}),this._toolstripPopupMenuItemId=this._uiBuilder.tagToId("motwToolstrip.matlabTab.environment.layout.list.commandHistory.list.popup"),this._toolstripDockedMenuItemId=this._uiBuilder.tagToId("motwToolstrip.matlabTab.environment.layout.list.commandHistory.list.docked"),this._toolstripClosedMenuItemId=this._uiBuilder.tagToId("motwToolstrip.matlabTab.environment.layout.list.commandHistory.list.closed"),this._toolstripClearCommandHistoryItemId=this._uiBuilder.tagToId("motwToolstrip.matlabTab.code.clearCommands.list.clearCommandHistory"),this._attachPropertySetCallbacksForToolstrip(),this._attachSettingsChangedListeners()},start:function(){this._fetchInitialCommandHistoryPreferences().then(function(e){switch(this._commandHistoryDataService.loadDataFromBackend().then(function(){this._commandHistoryDataService.saveBuffer(),this._commandHistoryDataService.copyDataFromPreviousSessions(),this._commandHistoryDataService.copyDataFromBuffer(),this._commandHistoryDataService.setupListenersOnExecutionService(),this._commandHistoryDataService.insertTimestampAtEnd()}.bind(this)),this._registerActions(),this._setCommandHistoryToolstripPreferences(),e.displayMode){case"popup":this._startCommandHistoryPopup();break;case"docked":this._startCommandHistoryClosed(),this._startCommandHistoryDocked();break;case"closed":this._startCommandHistoryClosed()}}.bind(this))},_setCommandHistoryToolstripPreferences:function(){"closed"===this._commandHistoryPrefs.displayMode?(this._uiBuilder.set(this._toolstripClosedMenuItemId,"selected",!0),this._uiBuilder.set(this._toolstripPopupMenuItemId,"selected",!1),this._uiBuilder.set(this._toolstripDockedMenuItemId,"selected",!1)):"popup"===this._commandHistoryPrefs.displayMode?(this._uiBuilder.set(this._toolstripClosedMenuItemId,"selected",!1),this._uiBuilder.set(this._toolstripPopupMenuItemId,"selected",!0),this._uiBuilder.set(this._toolstripDockedMenuItemId,"selected",!1)):(this._uiBuilder.set(this._toolstripClosedMenuItemId,"selected",!1),this._uiBuilder.set(this._toolstripPopupMenuItemId,"selected",!1),this._uiBuilder.set(this._toolstripDockedMenuItemId,"selected",!0))},_fetchInitialCommandHistoryPreferences:function(){var e=new t;return n([this._settingsService.getSetting(f,"MatchCase"),this._settingsService.getSetting(f,"MatchAnywhere"),this._settingsService.getSetting(f,"FilterMatches"),this._settingsService.getSetting(f,"DisplayMode")]).then(function(t){this._commandHistoryPrefs={matchCase:t[0].value,matchAnywhere:t[1].value,filterMatches:t[2].value,displayMode:t[3].value},e.resolve(this._commandHistoryPrefs)}.bind(this)),e},checkPreferencesAndStart:function(e){switch(e.displayMode){case"popup":"docked"===this._commandHistoryPrefs.displayMode?(this._stopCommandHistoryDocked(),this._stopCommandHistoryClosed(),this._startCommandHistoryPopup()):"closed"===this._commandHistoryPrefs.displayMode&&(this._stopCommandHistoryClosed(),this._startCommandHistoryPopup());break;case"docked":"popup"===this._commandHistoryPrefs.displayMode?(this._stopCommandHistoryPopup(),this._startCommandHistoryClosed(),this._startCommandHistoryDocked()):"closed"===this._commandHistoryPrefs.displayMode&&this._startCommandHistoryDocked();break;case"closed":"popup"===this._commandHistoryPrefs.displayMode?(this._stopCommandHistoryPopup(),this._startCommandHistoryClosed()):"docked"===this._commandHistoryPrefs.displayMode&&this._stopCommandHistoryDocked()}},_startCommandHistoryDocked:function(){this._createDockedWidget(),this.emit("startCommandHistoryDocked",this._commandHistoryDockedWidget)},_startCommandHistoryPopup:function(){this._createPopupWidget(),this.emit("startCommandHistoryPopup",this._commandHistoryPopupWidget)},_startCommandHistoryClosed:function(){this.emit("startCommandHistoryClosed")},_stopCommandHistoryClosed:function(){this.emit("stopCommandHistoryClosed")},_stopCommandHistoryPopup:function(){this.emit("stopCommandHistoryPopup",this._commandHistoryPopupWidget),this._destroyPopupWidget()},_stopCommandHistoryDocked:function(){this.emit("stopCommandHistoryDocked",this._commandHistoryDockedWidget),this._destroyDockedWidget()},_attachSettingsChangedListeners:function(){this._listeners.push(this._settingsService.listenTo(f,"MatchCase",function(e){this._commandHistoryPrefs.matchCase=e.newValue,this._updatePreferences()}.bind(this)),this._settingsService.listenTo(f,"MatchAnywhere",function(e){this._commandHistoryPrefs.matchAnywhere=e.newValue,this._updatePreferences()}.bind(this)),this._settingsService.listenTo(f,"FilterMatches",function(e){this._commandHistoryPrefs.filterMatches=e.newValue,this._updatePreferences()}.bind(this)),this._settingsService.listenTo(f,"DisplayMode",function(e){var t={};Object.assign(t,this._commandHistoryPrefs),t.displayMode=e.newValue,this.checkPreferencesAndStart(t),this._commandHistoryPrefs.displayMode=e.newValue,this._updatePreferences(),this._setCommandHistoryToolstripPreferences()}.bind(this)))},_registerActions:function(){c.generateActions(this._commandHistoryPrefs),c.getActions().forEach(function(e){e&&this._actionService.addAction(e)}.bind(this))},_updateActions:function(){c.generateActions(this._commandHistoryPrefs),c.getActions().forEach(function(e){e&&this._actionService.updateAction(e.id,e)}.bind(this))},getActionIds:function(){return c.getActionIds()},_createPopupWidget:function(){this._commandHistoryPopupWidget=new s({executionService:this._executionService,actionService:this._actionService,commandHistoryPrefs:this._commandHistoryPrefs,commandHistoryStore:d.getInstance(),actionIdConstants:this._actionIdConstants,commandHistoryDataService:this._commandHistoryDataService})},_createDockedWidget:function(){this._commandHistoryDockedWidget=new l({executionService:this._executionService,actionService:this._actionService,commandHistoryPrefs:this._commandHistoryPrefs,commandHistoryStore:d.getInstance(),actionIdConstants:this._actionIdConstants,commandHistoryDataService:this._commandHistoryDataService})},_destroyPopupWidget:function(){this._commandHistoryPopupWidget.destroy(),this._commandHistoryPopupWidget=null},_destroyDockedWidget:function(){this._commandHistoryDockedWidget.destroy(),this._commandHistoryDockedWidget=null},_updatePreferences:function(){null!==this._commandHistoryPopupWidget&&this._commandHistoryPopupWidget.updatePreferences(this._commandHistoryPrefs),null!==this._commandHistoryDockedWidget&&this._commandHistoryDockedWidget.updatePreferences(this._commandHistoryPrefs),this._updateActions()},_attachPropertySetCallbacksForToolstrip:function(){this._listeners.push(this._uiBuilder.addPropertySetCallback(this._toolstripPopupMenuItemId,function(e){"selected"===e.property&&"popup"!==this._commandHistoryPrefs.displayMode&&this._settingsService.setSetting(f,"DisplayMode","popup")}.bind(this)),this._uiBuilder.addPropertySetCallback(this._toolstripDockedMenuItemId,function(e){"selected"===e.property&&"docked"!==this._commandHistoryPrefs.displayMode&&this._settingsService.setSetting(f,"DisplayMode","docked")}.bind(this)),this._uiBuilder.addPropertySetCallback(this._toolstripClosedMenuItemId,function(e){"selected"===e.property&&"closed"!==this._commandHistoryPrefs.displayMode&&this._settingsService.setSetting(f,"DisplayMode","closed")}.bind(this)),this._uiBuilder.addEventCallback(this._toolstripClearCommandHistoryItemId,(function(e){"itemPushed"===e.eventType&&c.clearCommandHistory.bind(c)()})))},destroy:function(){this._listeners.forEach((function(e){e.remove()})),this._commandHistoryDockedWidget&&this._destroyDockedWidget(),this._commandHistoryPopupWidget&&this._destroyPopupWidget(),this._commandHistoryDataService&&this._commandHistoryDataService.destroy()}});return{getInstance:function(e){return null==p&&(p=new g(e)),p}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7863)],o=i.dj.d(n,(function(e,t){return t(e,"liveeditor/l10n/nls/matlabunit",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7873),i(7874),i(7875),i(7876)],o=i.dj.d(n,(function(e,t){return t(e,"matlab_preferences/l10n/nls/preferencePanel",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7900),i(7901),i(7902),i(7903)],o=i.dj.d(n,(function(e,t){return t(e,"clone/resources/shared_cmlink/nls/view_clone",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7911),i(7912),i(7913),i(7914)],o=i.dj.d(n,(function(e,t){return t(e,"mw-feedback-dialog/l10n/nls/feedbackDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(244),i(232)],o=i.dj.d(n,(function(e,t,i){function n(t,n,o){var r,a,s,l=new e;return r=function(e){var i=e[0];i.isFault=i.messageFaults&&i.messageFaults.length>0,l.resolve(i),s(t,n,o)},a=function(e){e.isFault=!0,l.resolve(e),s(t,n,o)},i.registerResponseHandler(t+":"+o,r),i.registerFaultHandler(n+":"+o,a),s=function(e,t,n){i.deregisterResponseHandler(e+":"+n),i.deregisterFaultHandler(t+":"+n)},l.promise}return{send:function(o){var r=new e,a=Date.now(),s={};for(var l in o)o.hasOwnProperty(l)&&(s[l]=n(l+"Response",l,a));return i.sendMessage(o,{},a),t(s).then((function(e){r.resolve(e)})),r.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(649),i(247)],o=i.dj.d(n,(function(e,t,i){var n=i.parseQueryString(),o=n.configOverride?decodeURIComponent(n.configOverride):"defaults.json?"+Date.now(),r=new e;return t(o,{handleAs:"json",failOk:!0,method:"GET",timeout:1e4}).then((function(e){r.resolve(e||{})}),(function(e){r.resolve({})})),{promise:r.promise}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{setPropertyValueFromServer:function(e,t){throw new Error("setPropertyValueFromServer() unimplemented function")},handleEventFromServer:function(e,t){throw new Error("handleEventFromServer() unimplemented function")},registerMsgFromClientHandler:function(e){throw new Error("registerMsgFromClientHandler() unimplemented function")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(536)],o=i.dj.d(n,(function(e,t){return{tag:"motwToolstrip.figureToolstripTabGroup2",type:e.TAB_GROUP,children:[{tag:"motwToolstrip.figureToolstripTab2",type:e.TAB,title:t.figure,mnemonic:"E",children:[{tag:"motwToolstrip.figureToolstripTab2.File",type:e.SECTION,title:t.fileTabTitle,children:[{tag:"motwToolstrip.figureToolstripTab2.File.New",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.File.New.NewMenu",type:e.DROP_DOWN_BUTTON,actionId:"",popupTag:"motwToolstrip.figureToolstripTab2.File.New.NewMenu.NewList",textOverride:t.openTab,description:"Open new figure",iconOverride:"open_24",quickAccessIcon:"open_16",mnemonic:"N"}]},{tag:"motwToolstrip.figureToolstripTab2.File.Save",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.File.Save.SaveMenu",type:e.DROP_DOWN_BUTTON,actionId:"",popupTag:"motwToolstrip.figureToolstripTab2.File.Save.SaveMenu.SaveList",textOverride:t.save,description:"Save figure",iconOverride:"save_24",quickAccessIcon:"save_16",mnemonic:"S"}]}]},{tag:"motwToolstrip.figureToolstripTab2.annotations2",type:e.SECTION,title:t.annotationsSectionTitle,children:[{tag:"motwToolstrip.figureToolstripTab2.annotations.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.annotations.gallery2",type:e.GALLERY,galleryPopupTag:"motwToolstrip.figureToolstripTab2.annotations.galleryPopup2",minColumnCount:1,maxColumnCount:12,hideDisabledItems:!0}]}]},{tag:"motwToolstrip.figureToolstripTab2.tools",type:e.SECTION,title:t.toolsTabTitle,children:[{tag:"motwToolstrip.figureToolstripTab2.tools.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.tools.fitting",type:e.PUSH_BUTTON,actionId:"motw.embeddedfigures.basicfit",text:t.fitting,icon:"basicFitIcon",quickAccessIcon:"basicFitIcon"},{tag:"motwToolstrip.figureToolstripTab2.tools.stats",type:e.PUSH_BUTTON,actionId:"motw.embeddedfigures.datastats",text:t.statistics,icon:"statsIcon",quickAccessIcon:"statsIcon"},{tag:"motwToolstrip.figureToolstripTab2.tools.linkedplot",type:e.TOGGLE_BUTTON,actionId:"motw.embeddedfigures.linkedplot",text:t.linkplot,description:t.linkplotdescription,icon:"dataLinkIcon",quickAccessIcon:"dataLinkIcon"}]},{tag:"motwToolstrip.figureToolstripTab2.tools.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.tools.colormapeditor",type:e.PUSH_BUTTON,actionId:"motw.embeddedfigures.colormapeditor",text:t.colorMap,icon:"colormapIcon",quickAccessIcon:"colormapIcon"},{tag:"motwToolstrip.figureToolstripTab2.tools.cameratoolbar",type:e.PUSH_BUTTON,actionId:"motw.embeddedfigures.camera",textOverride:t.camera,iconOverride:"cameraIcon",quickAccessIcon:"cameraIcon"}]}]},{tag:"motwToolstrip.figureToolstripTab2.edit",type:e.SECTION,title:t.editTabTitle,children:[{tag:"motwToolstrip.figureToolstripTab2.edit.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.edit.plotedit",actionId:"motw.embeddedfigures.plotedit",type:e.TOGGLE_BUTTON,text:t.plotEdit,icon:"plotEditIcon",quickAccessIcon:"plotEditIcon_16"}]},{tag:"motwToolstrip.figureToolstripTab2.edit.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.edit.inspect",actionId:"motw.embeddedfigures.inspector",type:e.PUSH_BUTTON,text:t.inspector,icon:"inspectorIcon",quickAccessIcon:"inspectorIcon_16"}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(536),i(567)],o=i.dj.d(n,(function(e,t,i){return{tag:"motwToolstrip.cameraToolbarToolstripTabGroup2",type:e.TAB_GROUP,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2",type:e.TAB,title:"Camera",mnemonic:"E",children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.CameraToolbar",type:e.SECTION,title:"CAMERA TOOLBAR",children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.column1",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.orbit",actionId:"motw.embeddedfigures.camera.orbit",type:e.TOGGLE_BUTTON,description:"Orbit Camera",textOverride:i.DO_NOT_DISPLAY,icon:"orbitIcon",quickAccessIcon:"orbitIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column2",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.setmodeguipan",actionId:"motw.embeddedfigures.camera.pan",type:e.TOGGLE_BUTTON,description:"Pan/Tilt Camera",textOverride:i.DO_NOT_DISPLAY,icon:"setmodeguipanIcon",quickAccessIcon:"setmodeguipanIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column3",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.setmodeguidollyhv",actionId:"motw.embeddedfigures.camera.dollyhv",type:e.TOGGLE_BUTTON,description:"Move Camera Horizontally/Vertically",textOverride:i.DO_NOT_DISPLAY,icon:"setmodeguidollyhvIcon",quickAccessIcon:"setmodeguidollyhvIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column4",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.setmodeguidollyfb",actionId:"motw.embeddedfigures.camera.dollyfb",type:e.TOGGLE_BUTTON,description:"Move Camera Forward/Back",textOverride:i.DO_NOT_DISPLAY,icon:"setmodeguidollyfbIcon",quickAccessIcon:"setmodeguidollyfbIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column5",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.setmodeguizoom",actionId:"motw.embeddedfigures.camera.zoom",type:e.TOGGLE_BUTTON,description:"Zoom Camera",textOverride:i.DO_NOT_DISPLAY,icon:"setmodeguizoomIcon",quickAccessIcon:"setmodeguizoomIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column6",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.setmodeguiroll",actionId:"motw.embeddedfigures.camera.roll",type:e.TOGGLE_BUTTON,description:"Roll Camera",textOverride:i.DO_NOT_DISPLAY,icon:"setmodeguirollIcon",quickAccessIcon:"setmodeguirollIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column7",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.setcoordsysx",actionId:"motw.embeddedfigures.camera.resetx",type:e.PUSH_BUTTON,description:"Principal Axis X",textOverride:i.DO_NOT_DISPLAY,icon:"setcoordsysxIcon",quickAccessIcon:"setcoordsysxIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column8",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.setcoordsysy",type:e.PUSH_BUTTON,actionId:"motw.embeddedfigures.camera.resety",description:"Principal Axis Y",textOverride:i.DO_NOT_DISPLAY,icon:"setcoordsysyIcon",quickAccessIcon:"setcoordsysyIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column9",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.setcoordsysz",actionId:"motw.embeddedfigures.camera.resetz",type:e.PUSH_BUTTON,description:"Principal Axis Z",textOverride:i.DO_NOT_DISPLAY,icon:"setcoordsyszIcon",quickAccessIcon:"setcoordsyszIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column10",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.setcoordsysnone",actionId:"motw.embeddedfigures.camera.resetnone",type:e.PUSH_BUTTON,description:"No Principal Axis",textOverride:i.DO_NOT_DISPLAY,icon:"setcoordsysnoneIcon",quickAccessIcon:"setcoordsysnoneIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column11",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.togglescenelight",actionId:"motw.embeddedfigure.camera.togglescenelight",type:e.PUSH_BUTTON,description:"Toggle Scene Light",textOverride:i.DO_NOT_DISPLAY,icon:"togglescenelightIcon",quickAccessIcon:"togglescenelightIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column12",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.orthographic",actionId:"motw.embeddedfigures.camera.orthographic",type:e.PUSH_BUTTON,description:"Orthographic Projection",textOverride:i.DO_NOT_DISPLAY,icon:"orthographicIcon",quickAccessIcon:"orthographicIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column13",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.perspective",actionId:"motw.embeddedfigures.camera.perspective",type:e.PUSH_BUTTON,description:"Perspective Projection",textOverride:i.DO_NOT_DISPLAY,icon:"perspectiveIcon",quickAccessIcon:"perspectiveIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column14",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.resetcameraandscenelight",actionId:"motw.embeddedfigures.camera.resetcameralight",type:e.PUSH_BUTTON,description:"Reset Camera and Scene Light",textOverride:i.DO_NOT_DISPLAY,icon:"resetcameraandscenelightIcon",quickAccessIcon:"resetcameraandscenelightIcon"}]}]},{tag:"motwToolstrip.cameraToolbarToolstripTab2.column15",type:e.COLUMN,horizontalAlignment:"center",children:[{type:e.PANEL,children:[{tag:"motwToolstrip.cameraToolbarToolstripTab2.stopmoving",actionId:"motw.embeddedfigures.camera.stop",type:e.PUSH_BUTTON,description:"Stop Camera/Light Motion",textOverride:i.DO_NOT_DISPLAY,icon:"stopmovingIcon",quickAccessIcon:"stopmovingIcon"}]}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(291),i(297),i(536),i(484),i(304),i(355),i(657),i(7966),i(1013),i(1631),i(7967),i(2561),i(232),i(219),i(226),i(299)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e([r],{toolstripChannel:"/figure/toolstrip/contexts",modulePath:"MOTW/modules/divfigure/ui/FigureToolstripFactory",defaultTabGroup:"motwToolstrip.defaultFigureToolstripTabGroup",listHandler:"FEvalListBuilder",cameraToolbarContext:"motwToolstrip.cameraContext",listMap:[],gridMap:[],textFieldMap:[],spinnerMap:[],toggleMap:[],axesTabTag:"motwToolstrip.figureToolstripExploreTab",listCreated:!1,docTypes:[],constructor:function(e){this.inherited(arguments),this.imports=e,this.docTypes.defaultfigure=!0,this.docTypes.embeddedfigure=!0,this.docTypes.figure=!0,this.imports&&this.imports.uiContainer&&(this._uiContainer=this.imports.uiContainer),this.imports&&this.imports.executionService&&(this._executionService=this.imports.executionService),this.imports&&this.imports.layoutService&&(this._layoutService=this.imports.layoutService),this._buildActionMapping(),f.registerResponseHandler("FEvalResponse:"+this.listHandler,this._createListResponse,this)},createWidget:function(e,i,n){i=i||{},this._uiContainer=e||this.imports.uiContainer,this._executionService=i.executionService||this.imports.executionService,this._layoutService=i.layoutService||this.imports.layoutService;var o=this._uiContainer.uiBuilder;this._manager=new c({uiBuilder:o,executionService:i.executionService||this.imports.executionService,actionService:e.actionService}),d.loadActions({executionService:i.executionService||this.imports.executionService,actionService:e.actionService}),this._buildPopupsAndTabGroups(),this._createGridSelector("insertaxes"),this._createTextField("XMin"),this._createTextField("YMin"),this._createTextField("ZMin"),this._createTextField("XMax"),this._createTextField("YMax"),this._createTextField("ZMax"),this._createSpinner("all.lineWidth"),this._createToggle("legend"),this._createToggle("colorbar"),this._addQAB(),this.setupTabFocusListener(),this._uiContainer.on(s.CHILD_ADDED,t.hitch(this,(function(e){if("document"===e.childType&&this.isFigureDocument(e.properties.documentType)){e.properties.isDocked||this._uiContainer.set("isToolstripCollapsed",!0),this.listCreated||(this._createList("font"),this._createList("XScale"),this._createList("YScale"),this._createList("ZScale"),this.listCreated=!0);var i=this.getChannelFromEvent(e);if(""!==i){var n="matlab.graphics.internal.FigureToolstripManager.createMggId('"+i+"');";this.executeCallback(n),g.subscribe(this.toolstripChannel+i,t.hitch(this,this._updateToolstripContext)),this.setDefaultContext(i)}e.properties.watch(a.IS_SELECTED,t.hitch(this,(function(e,t,i){if(!0===i){this.executeCallback("matlab.graphics.internal.FigureToolstripManager.highlightgca")}}))),this.executeCallback("matlab.graphics.internal.FigureToolstripManager.updategcf")}})))},_buildPopupsAndTabGroups:function(){this._uiContainer.createPopupsFromConfig(u),this._uiContainer.addTabGroupFromConfig(h,this.defaultTabGroup)},isFigureDocument:function(e){let t=this.docTypes[e];return null==t&&(t=!1),t},getChannelFromEvent:function(e){var t="";return e.properties.channel?t=e.properties.channel:e.widget.content.data&&e.widget.content.data.channel?t=e.widget.content.data.channel:e.widget.content.id&&(t=e.widget.content.id),t},setupTabFocusListener:function(){var e=this._uiContainer.toolstrip;this._uiContainer.uiBuilder.addPropertySetCallback(e.id,t.hitch(this,(function(e){if("selectedTab"===e.property&&this._uiContainer.uiBuilder.tagToId(this.axesTabTag)===e.newValue){this.executeCallback("matlab.graphics.internal.FigureToolstripManager.tabSelectionCallback")}})))},getState:function(){var e=this.imports;return e.executionService||(e.executionService=this._executionService),e},_buildActionMapping:function(){this.listMap.font="motwToolstrip.figureToolstripTab2.style.font",this.listMap.XScale="motwToolstrip.figureToolstripExploreTab.scale.XScale",this.listMap.YScale="motwToolstrip.figureToolstripExploreTab.scale.YScale",this.listMap.ZScale="motwToolstrip.figureToolstripExploreTab.scale.ZScale",this.gridMap.insertaxes="motwToolstrip.figureToolstripTab2.insert.axes",this.textFieldMap.XMin="motwToolstrip.figureToolstripExploreTab.limits.XMin",this.textFieldMap.YMin="motwToolstrip.figureToolstripExploreTab.limits.YMin",this.textFieldMap.ZMin="motwToolstrip.figureToolstripExploreTab.limits.ZMin",this.textFieldMap.XMax="motwToolstrip.figureToolstripExploreTab.limits.XMax",this.textFieldMap.YMax="motwToolstrip.figureToolstripExploreTab.limits.YMax",this.textFieldMap.ZMax="motwToolstrip.figureToolstripExploreTab.limits.ZMax",this.spinnerMap["all.lineWidth"]="motwToolstrip.figureToolstripTab2.all.line.width",this.toggleMap.legend="motwToolstrip.figureToolstripTab2.insert.legend",this.toggleMap.colorbar="motwToolstrip.figureToolstripTab2.insert.colorbar"},_createToggle:function(e){var i=this._uiContainer.uiBuilder,n=i.tagToId(this.toggleMap[e]);i.addPropertySetCallback(n,t.hitch(this,(function(t){if("selected"===t.property){var i="matlab.graphics.internal.FigureToolstripManager.textChangeCallback('motw.embeddedfigures."+e+"', "+t.newValue+")";this.executeCallback(i)}})))},_createSpinner:function(e){var i=this._uiContainer.uiBuilder,n=i.tagToId(this.spinnerMap[e]);i.addPropertySetCallback(n,t.hitch(this,(function(t){if("value"===t.property){i.set(n,"enabled",!1);var o="matlab.graphics.internal.FigureToolstripManager.textChangeCallback('motw.embeddedfigures."+e+"', "+t.newValue+")";this.executeCallback(o)}})))},_createGridSelector:function(e){var i=this._uiContainer.uiBuilder,n=i.tagToId(this.gridMap[e]);i.addPropertySetCallback(n,t.hitch(this,(function(t){if("selection"===t.property){var i="matlab.graphics.internal.FigureToolstripManager.gridChangeCallback('motw.embeddedfigures."+e+"', "+t.newValue.row+", "+t.newValue.column+")";this.executeCallback(i)}})))},_createTextField:function(e){var i=this._uiContainer.uiBuilder,n=i.tagToId(this.textFieldMap[e]);i.addPropertySetCallback(n,t.hitch(this,(function(t){if("text"===t.property){var i="matlab.graphics.internal.FigureToolstripManager.textChangeCallback('motw.embeddedfigures."+e+"', '"+t.newValue+"')";this.executeCallback(i)}})))},_createList:function(e){f.sendMessage({FEval:{function:"matlab.graphics.internal.FigureToolstripManager.generateList",arguments:[e],nargout:2}},{},"FEvalListBuilder")},_createListResponse:function(e,i){var n=this._uiContainer.uiBuilder,r="",a=[];e&&e[0]&&(a=e[0].results[0],r=e[0].results[1]);var s=n.tagToId(this.listMap[r]);s&&(a.length>0&&n.set(s,"items",a),n.addPropertySetCallback(s,t.hitch(this,(function(e){if("selectedItem"===e.property){var t=n.get(s,"items").find((function(t){return t.value===e.newValue}));if(null==t)n.set(s,"validationState","error"),n.set(s,"errorText",o.fontError);else{n.set(s,"validationState","normal"),n.set(s,"enabled",!1);var i="matlab.graphics.internal.FigureToolstripManager.listChangeCallback('motw.embeddedfigures."+r+"', '"+e.newValue+"')";this.executeCallback(i)}}}))))},_addQAB:function(){var e=this._uiContainer.uiBuilder,t=this._uiContainer,i=e.tagToId(this.defaultTabGroup),n=e.get(i,"QAGroupId");"motw"===t.id||t.isDocked?(t._contextManager.register("QuickAccessAction",{appId:t.appId,contextId:"global",quickAccessControlTag:"motwToolstrip.qab.globalQAGroup.undo",actionId:"motw.embeddedfigures.undo1"}),t._contextManager.register("QuickAccessAction",{appId:t.appId,contextId:"global",quickAccessControlTag:"motwToolstrip.qab.globalQAGroup.redo",actionId:"motw.embeddedfigures.redo1"})):(e.create({tag:"qabFigUndo",enabled:!1,type:m.QAB_PUSH_BUTTON,actionId:"motw.embeddedfigures.undo1",parentId:n,isInQAB:!0,quickAccessIcon:"undo_16",iconOverride:"undo_16",description:"Undo"}),e.create({tag:"qabFigRedo",enabled:!1,type:m.QAB_PUSH_BUTTON,actionId:"motw.embeddedfigures.redo1",parentId:n,isInQAB:!0,quickAccessIcon:"redo_16",iconOverride:"redo_16",description:"Redo"}))},setDefaultContext:function(e){var t={data:{eventType:"ContextualToolstrip",ToolstripContextId:"motwToolstrip.defaultContext",FigureId:e,Action:"select"}};this._updateToolstripContext(t)},_updateToolstripContext:function(e){let i=e.data.FigureId,n=[e.data.ToolstripContextId];this._uiContainer.getDocuments().forEach(t.hitch(this,(function(o){if(this.isFigureDocument(o.properties.documentType)){let r=this.getChannelFromEvent(o);if(i===r){let i=o.properties.get(a.ACTIVE_CONTEXTS)||[];"hide"===e.data.Action?i.forEach(t.hitch(this,(function(t){t===e.data.ToolstripContextId&&(t===this.cameraToolbarContext&&o.properties.set(a.IS_SELECTED,!0),i=i.filter(e=>!e.includes("motwToolstrip")),i=i.concat("motwToolstrip.defaultContext"),o.properties.set(a.ACTIVE_CONTEXTS,i))}))):(n.some(t.hitch(this,(function(e){return e===this.cameraToolbarContext})))&&o.properties.set(a.IS_SELECTED,!0),i=i.filter(e=>!e.includes("motwToolstrip")),i=i.concat(e.data.ToolstripContextId),o.properties.set(a.ACTIVE_CONTEXTS,i),n.forEach(t.hitch(this,(function(e){e===this.cameraToolbarContext&&this._uiContainer.set("selectedToolstripTab",{tag:"motwToolstrip.cameraTab"})}))))}}})))},executeCallback:function(e){i.getMVM().eval(e,new n).then((function(e){}),(function(e){}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(226),i(536)],o=i.dj.d(n,(function(e,t,i,n){return{popups:[{tag:"motwToolstrip.figureToolstripTab2.File.New.NewMenu.NewList",type:i.POPUP_LIST,children:[{tag:"motwToolstrip.figureToolstripTab2.File.New.NewMenu.NewList.newFigure",actionId:"motw.embeddedfigures.newfigure",type:i.LIST_ITEM,text:n.newFigure,quickAccessIcon:"new_16"},{tag:"motwToolstrip.figureToolstripTab2.File.New.NewMenu.NewList.openFigure",actionId:"motw.embeddedfigures.openfigure",type:i.LIST_ITEM,text:n.openTab,quickAccessIcon:"open_16"},{tag:"motwToolstrip.figureToolstripTab2.File.New.NewMenu.NewList.closeFigure",actionId:"motw.embeddedfigures.closefigure",type:i.LIST_ITEM,text:n.closeTab,quickAccessIcon:"close_16"},{tag:"motwToolstrip.figureToolstripTab2.File.New.NewMenu.NewList.separator",type:i.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.figureToolstripTab2.File.New.NewMenu.NewList.clearfigure",actionId:"motw.embeddedfigures.clearfigure",type:i.LIST_ITEM,text:n.clearFigure,quickAccessIcon:"clear_16"}]},{tag:"motwToolstrip.figureToolstripTab2.File.Save.SaveMenu.SaveList",type:i.POPUP_LIST,children:[{tag:"motwToolstrip.figureToolstripTab2.File.Save.SaveMenu.SaveList.save",actionId:"motw.embeddedfigures.savefigure",type:i.LIST_ITEM,text:n.save,icon:"save_dirty_16",quickAccessIcon:"save_dirty_16"},{tag:"motwToolstrip.figureToolstripTab2.File.Save.SaveMenu.SaveList.saveAs",actionId:"motw.embeddedfigures.saveasfigure",type:i.LIST_ITEM,text:n.saveAs,icon:"save_as_16",quickAccessIcon:"save_as_16"}]},{tag:"motwToolstrip.figureToolstripTab2.File.Print.PrintMenu.PrintList",type:i.POPUP_LIST,children:[{tag:"motwToolstrip.figureToolstripTab2.File.Print.PrintMenu.PrintList.options",actionId:"",type:i.LIST_ITEM,text:n.printPreview}]},{tag:"motwToolstrip.figureToolstripExploreTab.axes.gridlines.gridList",type:i.POPUP_LIST,children:[{tag:"motwToolstrip.figureToolstripExploreTab.axes.gridlines.gridList.x",actionId:"motw.embeddedfigures.xgrid",type:i.LIST_ITEM,text:n.gridX},{tag:"motwToolstrip.figureToolstripExploreTab.axes.gridlines.gridList.y",actionId:"motw.embeddedfigures.ygrid",type:i.LIST_ITEM,text:n.gridY},{tag:"motwToolstrip.figureToolstripExploreTab.axes.gridlines.gridList.xy",actionId:"motw.embeddedfigures.grid",type:i.LIST_ITEM,text:n.gridXY},{tag:"motwToolstrip.figureToolstripExploreTab.axes.gridlines.gridList.off",actionId:"motw.embeddedfigures.removegrid",type:i.LIST_ITEM,text:n.gridOff}]},{tag:"motwToolstrip.figureToolstripExploreTab.scale.scaleList",type:i.POPUP_LIST,children:[{tag:"motwToolstrip.figureToolstripExploreTab.scale.scaleList.linear",type:i.LIST_ITEM,text:n.linear},{tag:"motwToolstrip.figureToolstripExploreTab.scale.scaleList.log",type:i.LIST_ITEM,text:n.log}]},{tag:"motwToolstrip.figureToolstripTab2.File.Options.OptionsMenu.OptionsList",type:i.POPUP_LIST,children:[{tag:"motwToolstrip.figureToolstripTab2.Options.OptionsMenu.OptionsList.SaveOptions",type:i.LIST_ITEM,text:n.saveOptions},{tag:"motw.embeddedfigures.saveasfigure",type:i.LIST_ITEM,text:n.exportOptions},{tag:"motwToolstrip.figureToolstripTab2.File.Options.OptionsMenu.OptionsList.PrintOptions",type:i.LIST_ITEM,text:n.printOptions}]},{tag:"motwToolstrip.figureToolstripTab2.File.Export.ExportMenu.ExportList",type:i.POPUP_LIST,children:[{tag:"motwToolstrip.figureToolstripTab2.File.Export.ExportMenu.ExportList.ExportPNG",type:i.LIST_ITEM,actionId:"motw.embeddedfigures.exportPNG",text:n.exportPNG,icon:"export_16"},{tag:"motwToolstrip.figureToolstripTab2.File.Export.ExportMenu.ExportList.ExportPDF",type:i.LIST_ITEM,actionId:"motw.embeddedfigures.exportPDF",text:n.exportPDF,icon:"export_16"}]},{tag:"motwToolstrip.figureToolstripTab2.insert.titleLabel.titleLabelList",type:i.POPUP_LIST,children:[{tag:"motwToolstrip.figureToolstripTab2.insert.titleLabel.titleLabelList.Title",type:i.LIST_ITEM,actionId:"motw.embeddedfigures.title",textOverride:n.title,descriptionOverride:n.titleDescription,iconOverride:"galleryTitle"},{tag:"motwToolstrip.figureToolstripTab2.insert.titleLabel.titleLabelList.XLabel",type:i.LIST_ITEM,actionId:"motw.embeddedfigures.xlabel",textOverride:n.xlabel,descriptionOverride:n.xlabelDescription,iconOverride:"galleryXLabel"},{tag:"motwToolstrip.figureToolstripTab2.insert.titleLabel.titleLabelList.YLabel",type:i.LIST_ITEM,actionId:"motw.embeddedfigures.ylabel",textOverride:n.ylabel,descriptionOverride:n.ylabelDescription,iconOverride:"galleryYLabel"}]},{tag:"motwToolstrip.plotEditTab.annotations.annotationsList",type:i.POPUP_LIST,children:[{tag:"motwToolstrip.plotEditTab.annotations.textArrow",type:i.LIST_ITEM,text:n.textArrow,description:n.textArrowDescription,actionId:"motw.embeddedfigures.annotations.textarrow",icon:"galleryTextArrow"},{tag:"motwToolstrip.plotEditTab.annotations.arrow",type:i.LIST_ITEM,text:n.arrow,description:n.arrowDescription,actionId:"motw.embeddedfigures.annotations.arrow",icon:"galleryArrow"},{tag:"motwToolstrip.plotEditTab.annotations.doublearrow",type:i.LIST_ITEM,text:n.doubleArrow,description:n.doubleArrowDescription,actionId:"motw.embeddedfigures.annotations.doublearrow",icon:"galleryDoubleArrow"},{tag:"motwToolstrip.plotEditTab.annotations.line",type:i.LIST_ITEM,text:n.line,description:n.lineDescription,actionId:"motw.embeddedfigures.annotations.line",icon:"galleryLine"}]},{tag:"motwToolstrip.plotEditTab.lineStyle.lineStyleList",type:i.POPUP_LIST,children:[{tag:"motwToolstrip.plotEditTab.lineStyle.solid",type:i.LIST_ITEM,text:n.solid,description:n.solid,actionId:"motw.embeddedfigures.lineStyle.solid"},{tag:"motwToolstrip.plotEditTab.lineStyle.dashed",type:i.LIST_ITEM,text:n.dashed,description:n.dashed,actionId:"motw.embeddedfigures.lineStyle.dashed"},{tag:"motwToolstrip.plotEditTab.lineStyle.dotted",type:i.LIST_ITEM,text:n.dotted,description:n.dotted,actionId:"motw.embeddedfigures.lineStyle.dotted"},{tag:"motwToolstrip.plotEditTab.lineStyle.dashdot",type:i.LIST_ITEM,text:n.dashdot,description:n.dashdot,actionId:"motw.embeddedfigures.lineStyle.dashdot"},{tag:"motwToolstrip.plotEditTab.lineStyle.none",type:i.LIST_ITEM,text:n.noStyle,description:n.noStyle,actionId:"motw.embeddedfigures.lineStyle.none"}]},{tag:"motwToolstrip.figureToolstripExploreTab.tools.galleryPopup",type:i.GALLERY_POPUP,galleryItemTextLineCount:2,favoritesEnabled:!1,children:[{tag:"motwToolstrip.figureToolstripExploreTab.tools.category",type:i.GALLERY_CATEGORY,title:n.toolsGallery,children:[{tag:"motwToolstrip.figureToolstripExploreTab.tools.BasicFit",type:i.GALLERY_ITEM,actionId:"motw.embeddedfigures.basicfit",textOverride:n.fitting,descriptionOverride:n.fittingDescription,iconOverride:"basicFitGalleryIcon"},{tag:"motwToolstrip.figureToolstripExploreTab.tools.Stats",type:i.GALLERY_ITEM,actionId:"motw.embeddedfigures.datastats",textOverride:n.statistics,descriptionOverride:n.statisticsDescription,iconOverride:"statsGalleryIcon"},{tag:"motwToolstrip.figureToolstripExploreTab.link.linkData",type:i.GALLERY_ITEM,actionId:"motw.embeddedfigures.datalink",textOverride:n.linkData,descriptionOverride:n.linkDataDescription,iconOverride:"dataLinkGalleryIcon"},{tag:"motwToolstrip.figureToolstripExploreTab.tools.Camera",type:i.GALLERY_ITEM,actionId:"motw.embeddedfigures.camera",textOverride:n.camera,descriptionOverride:n.cameraDescription,iconOverride:"cameraGalleryIcon"}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{ADD_GRID:"motw.liveeditor.figure.grid",ADD_XGRID:"motw.liveeditor.figure.xgrid",ADD_YGRID:"motw.liveeditor.figure.ygrid",ADD_COLORBAR:"motw.liveeditor.figure.colorbar",ADD_LEGEND:"motw.liveeditor.figure.legend",ADD_TITLE:"motw.liveeditor.figure.title",ADD_XLABEL:"motw.liveeditor.figure.xlabel",ADD_YLABEL:"motw.liveeditor.figure.ylabel",REMOVE_GRID:"motw.liveeditor.figure.cleargrid",REMOVE_COLORBAR:"motw.liveeditor.figure.clearcolorbar",REMOVE_LEGEND:"motw.liveeditor.figure.clearlegend",ADD_LINE:"motw.liveeditor.figure.line",ADD_ARROW:"motw.liveeditor.figure.arrow",ADD_DOUBLE_ARROW:"motw.liveeditor.figure.doublearrow",ADD_TEXT_ARROW:"motw.liveeditor.figure.textarrow"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(291),i(297),i(536),i(232),i(355),i(484),i(1013),i(7968)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([s],{modulePath:"MOTW/modules/divfigure/ui/PlotEditTabGroupFactory",listHandler:"FEvalEditListBuilder",listMap:[],colorMap:[],spinnerMap:[],listCreated:!1,docTypes:[],constructor:function(e){this.inherited(arguments),this.imports=e,this.docTypes.defaultfigure=!0,this.docTypes.embeddedfigure=!0,this.docTypes.figure=!0,this.imports&&this.imports.uiContainer&&(this._uiContainer=this.imports.uiContainer),this.imports&&this.imports.executionService&&(this._executionService=this.imports.executionService),this._buildActionMapping(),r.registerResponseHandler("FEvalResponse:"+this.listHandler,this._createListResponse,this)},createWidget:function(e,i,n){i=i||{},this._uiContainer=e||this.imports.uiContainer,this._executionService=i.executionService||this.imports.executionService,l.loadActions({executionService:i.executionService||this.imports.executionService,actionService:e.actionService}),e.addTabGroupFromConfig(c,"motwToolstrip.plotEditTabGroup"),this._createSpinner("fontSize"),this._createSpinner("lineWidth"),this._createColorPicker("text.fontColor"),this._createColorPicker("backgroundColor"),this._createColorPicker("edgeColor"),this._uiContainer.on(a.CHILD_ADDED,t.hitch(this,(function(e){"document"===e.childType&&this.isFigureDocument(e.properties.documentType)&&(this.listCreated||(this._createList("text.font"),this.listCreated=!0))})))},isFigureDocument:function(e){return isFigureType=this.docTypes[e],void 0!==isFigureType&&null!==isFigureType||(isFigureType=!1),isFigureType},_buildActionMapping:function(){this.listMap["text.font"]="motwToolstrip.plotEditTab.text.font",this.colorMap["text.fontColor"]="motwToolstrip.plotEditTab.text.fontColor",this.colorMap.backgroundColor="motwToolstrip.plotEditTab.color.backgroundColor",this.colorMap.edgeColor="motwToolstrip.plotEditTab.color.edgeColor",this.spinnerMap.fontSize="motwToolstrip.plotEditTab.text.fontSize",this.spinnerMap.lineWidth="motwToolstrip.plotEditTab.line.width"},_createList:function(e){r.sendMessage({FEval:{function:"matlab.graphics.internal.FigureToolstripManager.generateList",arguments:[e],nargout:2}},{},"FEvalEditListBuilder")},_createListResponse:function(e,i){var n=this._uiContainer.uiBuilder,r="",a=[];e&&e[0]&&(a=e[0].results[0],r=e[0].results[1]);var s=n.tagToId(this.listMap[r]);s&&(a.length>0&&n.set(s,"items",a),n.addPropertySetCallback(s,t.hitch(this,(function(e){if("selectedItem"==e.property){var t=n.get(s,"items").find((function(t){return t.value===e.newValue}));if(null==t)n.set(s,"validationState","error"),n.set(s,"errorText",o.fontError);else{n.set(s,"validationState","normal"),n.set(s,"enabled",!1);var i="matlab.graphics.internal.FigureToolstripManager.listChangeCallback('motw.embeddedfigures.plotedit."+r+"', '"+e.newValue+"')";this.executeCallback(i)}}}))))},_createColorPicker:function(e){var i=this._uiContainer.uiBuilder,n=i.tagToId(this.colorMap[e]),o=t.hitch(this,(function(t){var i="matlab.graphics.internal.FigureToolstripManager.listChangeCallback('motw.embeddedfigures.plotedit."+e+"', '"+t.newValue+"')";this.executeCallback(i)}));i.addEventCallback(n,o),i.addPropertySetCallback(n,o)},_createSpinner:function(e){var i=this._uiContainer.uiBuilder,n=i.tagToId(this.spinnerMap[e]);i.addPropertySetCallback(n,t.hitch(this,(function(t){if("value"==t.property){i.set(n,"enabled",!1);var o="matlab.graphics.internal.FigureToolstripManager.textChangeCallback('motw.embeddedfigures.plotedit."+e+"', "+t.newValue+")";this.executeCallback(o)}})))},getState:function(){var e=this.imports;return e.executionService||(e.executionService=this._executionService),e},executeCallback:function(e){i.getMVM().eval(e,new n).then((function(e){}),(function(e){}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(232),i(484),i(1013),i(7969)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{modulePath:"MOTW/modules/divfigure/ui/CameraTabGroupFactory",constructor:function(e){this.inherited(arguments),this.imports=e,this.imports&&this.imports.uiContainer&&(this._uiContainer=this.imports.uiContainer)},createWidget:function(e,t,i){t=t||{},this._uiContainer=e,n.loadActions({executionService:t.executionService||this.imports.executionService,actionService:e.actionService||this.imports.uiContainer}),e.addTabGroupFromConfig(o,"motwToolstrip.cameraTabGroup")},getState:function(){var e=this.imports;return e.executionService||(e.executionService=this._executionService),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7981),i(7982),i(7983),i(7984)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/equationeditor",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8060)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._actionService=e},updateActionCallback:function(e){this._actionService.updateAction(this._getRunActionId(),{callback:e})},updateActionEnabledState:function(e){this._actionService.updateAction(this._getRunActionId(),{enabled:e})},_getRunActionId:function(){throw new Error("Unimplemented API: _getRunActionId")},getRunButtonShortCut:function(){return this._actionService.getAction(this._getRunActionId()).shortcut||""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8069),i(8070),i(8071),i(8072)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/runConfigurations",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(1637),i(434)],o=i.dj.d(n,(function(e,t,i){return{createPopupPanel:function(e){return e.create({type:i.POPUP_LIST_PANEL,maxHeight:2e3})},createItemWithContextMenu:function(e,n,o){return e.create({type:i.LIST_ITEM_WITH_TEXTFIELD,label:t.run,text:n,editable:o,editOption:!0,editOptionMessage:"Edit",removable:!0,removeMessage:"Delete",closePopupOnClick:!0})},createItemWithoutContextMenu:function(e,n){return e.create({type:i.LIST_ITEM_WITH_TEXTFIELD,label:t.run,text:n,editable:!1})},getWidgetById:function(t){return e.byId(t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{loadContent:function(e){throw new Error("Unimplemented API: loadContent")},getContent:function(){throw new Error("Unimplemented API: getContent")},getContentType:function(){throw new Error("Unimplemented API: getContentType")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8121)],o=i.dj.d(n,(function(e){var t=null;return null===t&&(t=new e),t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(8129)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.cursor","rtc.document","rtc.linenumberservice","rtc.editortabservice","rtc.internal.language","matlab.languageanalysis.filestructureservice","rtc.code.matlabfiletype","rtc.backingstore"]}},createInstance:function(e,t,i,o,r,a,s,l){return new n(e,t,i,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(233),i(1643)],o=i.dj.d(n,(function(e,t,i){class n{constructor(e){this._editorService=e}getActiveFile(){return this._getFilePath(this._editorService.getActiveEditor())}isMLXFile(){return"liveCodeFile"===this._editorService.getActiveEditor().documentType}onActiveFileChanged(e){}_onActiveFileChange(e,t){t&&t.file&&t.file.id===e.file.id||this.onActiveFileChanged(this._getFilePath(e))}_getFilePath(e){return t.pathFromFileInfo(e.getFile().fileInfo)}async getActiveFileInfoForToolstrip(){const e=this.getActiveFile();let t=await i.FEval(2,"matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip",e),n=t[0];return t[1]?n:void 0}}let o;return{_impl:n,getInstance:t=>(o||(o=new n(t),e.after(t,"onActiveEditor",o._onActiveFileChange.bind(o),!0)),o)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(363)],o=i.dj.d(n,(function(e){return{FEval:(t,i,...n)=>e.getInstance().feval(i,t,n)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1432)],o=i.dj.d(n,(function(e,t){var i=e(t,{constructor:function(){},_getPrefix:function(){return"motw."}});return{_instance:null,getInstance:function(){return this._instance?this._instance:new i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(363)],o=i.dj.d(n,(function(e){return{FEval:(t,i,...n)=>e.getInstance().feval(i,t,n)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(233),i(281),i(1645)],o=i.dj.d(n,(function(e,t,i,n){class o{constructor(e){this._editorService=e}getActiveFilePath(){return this._getFilePath(this._editorService.getActiveEditor())}getActiveFileText(){return this._editorService.getActiveEditor().getText()}onActiveFileChanged(e){}_onActiveFileChange(e,t){t&&t.file&&t.file.id===e.file.id||this.onActiveFileChanged(this._getFilePath(e))}_getFilePath(e){return i.getLongName(e.widget.getBackingStore())}isActiveFileUntitled(){return this._editorService.getActiveEditor().getFile().isUntitled}async isSystemObject(){const e=this.getActiveFilePath(),t=this.getActiveFileText();return(await n.FEval(5,"internal.matlab.desktop.editor.getSystemObjectInfo",e,t))[0]}isUnsupportedFile(e){return!(this.isActiveFileUntitled()||t.isPlainCodeFile(e))}}let r;return{_impl:o,getInstance:t=>(r||(r=new o(t),e.after(t,"onActiveEditor",r._onActiveFileChange.bind(r),!0)),r)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(804)],o=i.dj.d(n,(function(e,t){return e("datatoolsservices.DragAndDropHandler",[],{constructor:function(e){if(!e)throw new Error("Expected a valid drag and drop config");this.config=e},startup:function(){this.createContext(),this.config.dragDropSourceConfig&&this.createDragSource(),this.config.dragDropTargetConfig&&this.createDropTarget()},createContext:function(){var e=!!this.config.hasOwnProperty("handleDynamicDragSources")&&this.config.handleDynamicDragSources;this.context=t.createContext({context:this.config.context||document.body,handleDynamicDragSources:e})},createDragSource:function(){var e=this.config.dragDropSourceConfig;this.context&&this.context.createDragSource({dragSource:e.dragSource,lifecycle:{start:function(t,i){e.dragFlavor&&e.dragData&&t.setDataByType(e.dragFlavor,e.dragData),e.dragAvatar&&t.setAvatar(e.dragAvatar),e.customSrcStartHandler&&e.customSrcStartHandler(t,i)},end:function(t,i){e.customSrcEndHandler&&e.customSrcEndHandler(t,i)}}})},createDropTarget:function(){var e=this.config.dragDropTargetConfig;this.context&&this.context.createDropTarget({dropTarget:e.dropTarget,allowGlobal:!!e.allowGlobal&&e.allowGlobal,lifecycle:{enter:function(t,i){return!!t.getDataTypes().some((function(t){return e.acceptedFlavor===t}))&&(!e.customTargetEnterHandler||e.customTargetEnterHandler(i))},hover:function(t,i){e.customTargetHoverHandler&&e.customTargetHoverHandler(i)},leave:function(t,i){e.customTargetLeaveHandler&&e.customTargetLeaveHandler(i)},drop:function(t,i){var n=t.getDataByType(e.acceptedFlavor),o=t.getXYCoordinates();e.customTargetDropHandler&&e.customTargetDropHandler(n,i,o)}}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(890)],o=i.dj.d(n,(function(e){var t,i,n=(t=window.location.search.indexOf("endpoint")>=0?"-"+window.location.search.split("endpoint=")[1]:"",i=-1!==t.indexOf("dev")?"-dev":-1!==t.indexOf("test")?"-test":t,{urlParam:t,embeddedLoginDomainSuffix:i});return{ssoCookieName:"mwa_profile"+(n.urlParam?n.urlParam.replace("-","_"):""),ssoCookieNamev2:"mwa"+(n.urlParam?n.urlParam.replace("-","_"):""),allowedDomain:".mathworks.com",productPage:"https://www.mathworks.com/products/matlab-online.html",licenseCenter:"https://www-REPLACE-.mathworks.com/licensecenter/licenses/add_for_doc?uri="+window.location.href+"&name=MATLAB Online",logoutRoute:"https://www-REPLACE-.mathworks.com/login/logout?uri="+window.location.href,extractMwaEnvironment:function(){return n},redirect:function(e){this.isDomainAllowed()?window.location.href=this._getLogoutURL(e):window.location.href=window.location.href},getLicenseCenterURL:function(){return this.licenseCenter.replace("-REPLACE-",n.urlParam)},_getLogoutURL:function(e){return 1==e.signOut?this.logoutRoute.replace("-REPLACE-",n.urlParam):e.redirectURL?e.redirectURL:this.productPage},isDomainAllowed:function(){return window.location.href.indexOf(this.allowedDomain)>1},doesUserHaveMWSession:function(){return!!e(this.ssoCookieName)||!!e(this.ssoCookieNamev2)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(204)],o=i.dj.d(n,(function(e,t){var i=[{id:"SelectionChanged",enabled:!0},{id:"VariableNamesRowChanged",enabled:!0},{id:"OutputVariableNameChanged",enabled:!0},{id:"OutputVariableTypeChanged",enabled:!0},{id:"GenerateScript",enabled:!0},{id:"ImportData",enabled:!0},{id:"GenerateLiveScript",enabled:!0},{id:"GenerateFunction",enabled:!0},{id:"TabDelimiterChanged",enabled:!0},{id:"CommaDelimiterChanged",enabled:!0},{id:"SpaceDelimiterChanged",enabled:!0},{id:"SemicolonDelimiterChanged",enabled:!0},{id:"CustomDelimiterChanged",enabled:!0},{id:"ConsecutiveDelimiterRuleChanged",enabled:!0},{id:"PeriodDecimalSeparatorChanged",enabled:!0},{id:"CommaDecimalSeparatorChanged",enabled:!0},{id:"AddUnimportableRule",enabled:!0},{id:"RemoveUnimportableRule",enabled:!0},{id:"UnimportableCellRuleSelected",enabled:!0},{id:"ValidVariableNamesChanged",enabled:!0},{id:"ModifyUnimportableRule",enabled:!0},{id:"AllowAllCharacters",enabled:!0},{id:"LimitCharacters",enabled:!0},{id:"IncludesVariableNamesRowChanged",enabled:!0},{id:"UseTimesFromColumn",enabled:!0},{id:"GenerateTimes",enabled:!0},{id:"RowTimesColumnChanged",enabled:!0},{id:"ConfigureRowTimes",enabled:!0}];return{getActions:function(){return i},updateActions:function(e,t){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{UNDO:"motw.qab.undoPlaceHolder",REDO:"motw.qab.redoPlaceHolder"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(8560)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e){e=e||{},this.manager=e.manager,this.ORIGINATOR=e.originator},create:function(e){var i,n={id:e.getId(),type:e.getType(),parentId:e.hasParent()?e.getParent().getId():""},o=e.getProperties();for(i in o)o.hasOwnProperty(i)&&(n[i]=this.convertProperty(e,i));return n.hasOwnProperty("id")&&n.hasOwnProperty("type")&&n.hasOwnProperty("parentId")||(n=null,t.log.error("Illegal Widget Creation: Must provide id/parentId/Type")),n},update:function(e,t,i,n,o){var r={};n.forEach((function(t){r[t]=this.convertProperty(e,t)}),this),t.setMultipleValues(i,r,o)},remove:function(e){},convertProperty:function(e,t){return e.getProperty(t)},handleEvent:function(e,t,i){if(this.manager.hasById(e)){var n=this.manager.getById(e);n.dispatchEvent("peerEvent",n,t,i?this.ORIGINATOR:void 0)}},setProperties:function(e,t,i){this.manager.hasById(e)&&this.manager.getById(e).setProperties(t,i?this.ORIGINATOR:void 0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(221)],o=i.dj.d(n,(function(e,t,i,n){return e([],{_createOrUpdateIcon:function(e,o,r){r=r||"icon",this._centeringHelper||(this._centeringHelper=i.create("span",{class:"iconCenteringHelper"},e,"first")),o[r]&&e&&(this._canvas?(this._clear(),this._canvas.width=o[r].width,this._canvas.height=o[r].height):(this._canvas=i.create("canvas",{width:o[r].width,height:o[r].height},this._centeringHelper,"after"),this._context=this._canvas.getContext("2d")),o.icon instanceof Image?this._context.drawImage(o[r],0,0):(n("trident")&&(this._context.fillStyle="rgba(0,0,0,0.01)",this._context.fillRect(0,0,this._canvas.width,this._canvas.height)),this._context.putImageData(o[r],0,0)),o.position&&o.position.height<15?t.add(e,"smallIcon"):t.remove(e,"smallIcon"))},hasIcon:function(){return this._canvas},_clear:function(){this._context.beginPath(),this._context.clearRect(0,0,this._canvas.width,this._canvas.height),this._context.closePath()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(761),i(2653)],o=i.dj.d(n,(function(e,t,i,n,o){var r;function a(){var e=document.createElement("div");return e.setAttribute("class","verticalSpacer"),e}function s(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function l(e){var t=n.getTextStyleDashes(e||{});return t.display=e&&!1===e.visible?"none":void 0,function(e){var t,i="";for(t in e)e.hasOwnProperty(t)&&e[t]&&(i+=t+":"+e[t]+";");return i}(t)}return r={default:{getColumnStyles:l,create:function(e,t){var i=document.createElement("div");i.setAttribute("class","plainText");var n=document.createElement("span");return n.appendChild(document.createTextNode(t||"")),i.appendChild(n),i.appendChild(a()),e&&e.background&&i.setAttribute("style","background: rgba("+e.background.join(", ")+")"),i},update:function(e,t,i){if("div"!==e.nodeName.toLowerCase()||!e.getAttribute("class")||"plainText"!==e.getAttribute("class"))return this.create(t,i);e.firstElementChild.firstChild.nodeValue=i}},html:{getColumnStyles:l,create:function(e,t){var i=document.createElement("div");return i.innerHTML=t,i.setAttribute("class","htmlCell"),i.appendChild(a()),e&&e.background&&i.setAttribute("style","background: rgba("+e.background.join(", ")+")"),i},update:function(e,t,i){if("div"!==e.nodeName.toLowerCase()||!e.getAttribute("class")||"htmlCell"!==e.getAttribute("class"))return this.create(t,i);e.innerHTML=i}},checkbox:{getColumnStyles:l,create:function(e,t){var i=document.createElement("input");return this.update(i,e,t),i},update:function(e,t,i){if("input"!==e.nodeName.toLowerCase())return this.create(t,i);e.type="checkbox",!0===i||"true"===i?(e.setAttribute("checked",""),e.checked=!0):(e.removeAttribute("checked"),e.checked=!1),e.disabled=void 0!==t.enabled&&!t.enabled},getCellValue:function(e){if("input"===e.nodeName.toLowerCase()&&"checkbox"===e.type)return e.checked?e.setAttribute("checked",""):e.removeAttribute("checked"),!!e.checked}},radio:{getColumnStyles:l,create:function(e,t){var i=document.createElement("input");return this.update(i,e,t),i},update:function(e,t,i){if("input"!==e.nodeName.toLowerCase())return this.create(t,i);e.type="radio",!0===i||"true"===i?(e.setAttribute("checked",""),e.checked=!0):(e.removeAttribute("checked"),e.checked=!1),e.disabled=void 0!==t.enabled&&!t.enabled},getCellValue:function(e){if("input"===e.nodeName.toLowerCase()&&"radio"===e.type)return e.checked?e.setAttribute("checked",""):e.removeAttribute("checked"),!!e.checked}},text:{getColumnStyles:l,create:function(e,t){var i=document.createElement("input");return this.update(i,e,t),i},update:function(e,t,i){if("input"!==e.nodeName.toLowerCase())return this.create(t,i);e.type="text",e.value=i,!1===t.enabled?e.setAttribute("readonly",""):e.removeAttribute("readonly")},getCellValue:function(e){if("input"===e.nodeName.toLowerCase()&&"text"===e.type)return e.value}},numeric:{getColumnStyles:l,create:function(e,t){var i=document.createElement("input");return this.update(i,e,t),i},update:function(e,t,i){if("input"!==e.nodeName.toLowerCase())return this.create(t,i);e.type="text",e.value=i,!1===t.enabled?e.setAttribute("readonly",""):e.removeAttribute("readonly")},getCellValue:function(e){if("input"===e.nodeName.toLowerCase()&&"text"===e.type)return e.value}},color:{getColumnStyles:l,create:function(e,t){var i=document.createElement("input");return this.update(i,e,t),i},update:function(e,t,i){if("input"!==e.nodeName.toLowerCase())return this.create(t,i);e.type="text",e.value="["+i[0].toFixed(3)+", "+i[1].toFixed(3)+", "+i[2].toFixed(3)+"]",!1===t.enabled?e.setAttribute("readonly",""):e.removeAttribute("readonly")},getCellValue:function(e){if("input"===e.nodeName.toLowerCase()&&"text"===e.type){var t=e.value.replace(/[\s\[\]]*/g,"").split(",");return[parseFloat(t[0]),parseFloat(t[1]),parseFloat(t[2])]}}},list:{getColumnStyles:l,create:function(e,t){var i=document.createElement("select");return this.update(i,e,t),i},update:function(e,t,i){if("select"!==e.nodeName.toLowerCase())return this.create(t,i);this._addOptions(e,t,i),e.disabled=void 0!==t.enabled&&!t.enabled},getCellValue:function(e,t,i){if("select"===e.nodeName.toLowerCase()){var n=i.listValues[e.selectedIndex];return this._addOptions(e,i,n),n}},_addOptions:function(e,t,i){var n,o,r,a=!1;if(t.listValues.length===e.children.length){for(n=0;n<t.listValues.length;n+=1)if((r=e.children[n]).value!==t.listValues[n]||r.hasAttribute("selected")!==(r.value===i)){a=!0;break}if(!a)return}for(s(e),n=0;n<t.listValues.length;n+=1)o=t.listValues[n],(r=document.createElement("option")).value=o,r.text=o,i===o&&r.setAttribute("selected",""),e.add(r)}},label:{getColumnStyles:l,create:function(e,t){var i=document.createElement("div");return i.setAttribute("class","label"),this.update(i,e,t),i},update:function(e,t,i){if("div"!==e.nodeName.toLowerCase()||"label"!==e.getAttribute("class"))return this.create(t,i);i.background?e.setAttribute("style","background: rgb("+i.background.join(",")+")"):t.background&&e.setAttribute("style","background: rgba("+t.background.join(", ")+")"),s(e),i.icon&&e.appendChild(i.icon.cloneNode());var n=document.createElement("label");"string"==typeof i.value?this._setLabel(n,i.value):"string"==typeof i&&this._setLabel(n,i),e.appendChild(n),e.appendChild(a())},_setLabel:function(e,t){var i=t.trim();0!==i.toLowerCase().indexOf("<html>")||o.containsLinks(i)?e.appendChild(document.createTextNode(t)):i.toLowerCase().indexOf("</html>")===i.length-7?e.innerHTML=i.substring(6,i.length-7):e.innerHTML=i.substring(6,i.length)}},expand:{create:function(e,t){var i=document.createElement("div");i.setAttribute("class","expand");var n=document.createElement("div"),o=document.createElement("div");return i.appendChild(n),i.appendChild(o),this.update(i,e,t),i},update:function(e,t,i){if("div"!==e.nodeName.toLowerCase()||"expand"!==e.getAttribute("class"))return this.create(t,i);var n=e.firstChild,o=n.nextElementSibling;if(s(n),s(o),i.expandable){var r=document.createElement("button");i.expanded&&r.setAttribute("class","expanded"),n.appendChild(r)}var a,l="";for(a=0;a<i.depth;a+=1)l+=" ";o.appendChild(document.createTextNode(l+i.text))}},prop:{create:function(e,t){var i=document.createElement("div");i.setAttribute("class","prop");var n=document.createElement("div"),o=document.createElement("div"),r=document.createElement("div");return i.appendChild(n),i.appendChild(o),i.appendChild(r),this.update(i,e,t),i},update:function(e,t,i){if("div"!==e.nodeName.toLowerCase()||"prop"!==e.getAttribute("class"))return this.create(t,i);var n=e.firstChild,o=n.nextElementSibling,r=o.nextElementSibling;s(n),s(o),s(r),this["_"+i.leftType](n,"left",i),this["_"+i.middleType](o,"middle",i),this["_"+i.rightType](r,"right",i)},getCellValue:function(e,i,n,o){if(o&&"text"===o.middleType){var r=t.clone(o);return r.middleText=i.value,r}},_label:function(e,t,i){if(i[t+"Text"]){var n=document.createTextNode(i[t+"Text"]);e.appendChild(n)}this._appendIcon(e,i[t+"Icon"])},_text:function(e,t,i){var n=document.createElement("input");n.type="text",n.value=i[t+"Text"],e.appendChild(n)},_button:function(e,t,i){var n=document.createElement("button");i[t+"Text"]&&n.appendChild(document.createTextNode(i[t+"Text"])),this._appendIcon(n,i[t+"Icon"]),e.appendChild(n)},_dropdown:function(e,t,i){var n=document.createElement("button");i[t+"Text"]&&n.appendChild(document.createTextNode(i[t+"Text"])),this._appendIcon(n,i[t+"Icon"]),e.appendChild(n)},_space:function(){},_appendIcon:function(e,t){"string"==typeof t?e.setAttribute("class",t+"Icon"):t instanceof Image&&e.appendChild(t.cloneNode())}},cell:{create:function(e,t){var i,n=t&&t.renderer&&t.renderer.type;return i=n&&r[n]?r[n].create(t.renderer,t.value):r.default.create(t.renderer,t.value),this._updateNode(i,t.renderer),i},update:function(e,t,i){var n,o=i&&i.renderer&&i.renderer.type;if(o&&r[o])if(r[o].update){if(!(n=r[o].update(e,i.renderer,i.value)))return void this._updateNode(e,i.renderer)}else n=r[o].create(i.renderer,i.value);else n=r.default.create(i.renderer,i.value);return this._updateNode(n,i.renderer),n},getCellValue:function(e,i,n,o){var a=o.renderer.type;if(a&&r[a]&&r[a].getCellValue){var s=t.clone(o);return s.value=r[a].getCellValue(e,i,o.renderer,o.value),s}},_updateNode:function(e,t){var i=t&&t.type;i&&r[i].getColumnStyles?e.setAttribute("style",r[i].getColumnStyles(t)):r.default.getColumnStyles&&e.setAttribute("style",r.default.getColumnStyles(t))}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(899),i(225),i(204),i(1246)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e("dijit.form.HorizontalRuleLabels",r,{templateString:'<div class="dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH"></div>',labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:'<div class="dijitRuleLabelContainer dijitRuleLabelContainerH" style="left:',_labelPrefix:'"><div class="dijitRuleLabel dijitRuleLabelH">',_suffix:"</div></div>",_calcPosition:function(e){return e},_genHTML:function(e,t){var i=this.labels[t];return this._positionPrefix+this._calcPosition(e)+this._positionSuffix+this.labelStyle+this._genDirectionHTML(i)+this._labelPrefix+i+this._suffix},_genDirectionHTML:function(e){return""},getLabels:function(){var e=this.labels;if(!e.length&&this.srcNodeRef&&(e=n("> li",this.srcNodeRef).map((function(e){return String(e.innerHTML)}))),!e.length&&this.count>1){e=[];for(var t=this.minimum,o=(this.maximum-t)/(this.count-1),r=0;r<this.count;r++)e.push(r<this.numericMargin||r>=this.count-this.numericMargin?"":i.format(t,this.constraints)),t+=o}return e},postMixInProperties:function(){this.inherited(arguments),this.labels=this.getLabels(),this.count=this.labels.length}});return t("dojo-bidi")&&a.extend({_setTextDirAttr:function(e){this.textDir!=e&&(this._set("textDir",e),n(".dijitRuleLabelContainer",this.domNode).forEach(o.hitch(this,(function(e){e.style.direction=this.getTextDir(e.innerText||e.textContent||"")}))))},_genDirectionHTML:function(e){return this.textDir?"direction:"+this.getTextDir(e)+";":""}}),a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{_updateButton:function(e){this.inherited(arguments),this.button.set("checked",!!e.selected)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={NotRun:{iconClass:"profileValidationStatusNotRun",terminal:!1,name:void 0},Failed:{iconClass:"profileValidationStatusFailed",terminal:!0},Skipped:{iconClass:"profileValidationStatusSkipped",terminal:!0},Passed:{iconClass:"profileValidationStatusPassed",terminal:!0},Stopped:{iconClass:"profileValidationStatusStopped",terminal:!0},Running:{iconClass:"profileValidationStatusRunning",terminal:!1}};return Object.keys(e).forEach((function(t){e[t].Id=t})),e.updateStatus=function(t,i){i&&(t.status="string"==typeof i?e[i]:i)},e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8673)],o=i.dj.d(n,(function(e){"use strict";var t={profileExecutor:null},i={currentProfileExecutor:function(i){return i?t.profileExecutor=i:t.profileExecutor||(t.profileExecutor=new e),t.profileExecutor}};return i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8675),i(702),i(763)],o=i.dj.d(n,(function(e,t,i){const n=i.getLogger();return class{constructor(e=null){this.autoShutDownReminderInSeconds=120,this.profileName=null,this.state=null,this.error=null,this.idleShutdownTimeout=null,this.clusterType=null,this.startTime=this.finishTime=-1,this.resetClusterInfo(),e&&this.update(e)}isCloudSession(){return"Cloud"===this.clusterType}isCloudClusterStopping(){return this.cluster.shuttingDown}isStarting(){return[t.ABOUT_TO_START,t.STARTING].includes(this.state)}hasProfileName(){return!!this.profileName}hasError(){return!!this.error}update(e){n.debug("Session update: "+JSON.stringify(e));const i=this.cluster;Object.assign(this,e),this.cluster=i,this.state&&this.state!==t.CLOSED&&Object.assign(this.cluster,e.cluster),this.hasError()&&!this.cluster.isErrorStage()&&this.cluster.resetStage()}clone(){const e=Object.assign({},this);return e.cluster=Object.assign({},this.cluster),e}_getRemainingSecondsBeforeShutdown(){if(this.state!==t.IDLE)return-1;if(this.idleShutdownTimeout>Number.MAX_SAFE_INTEGER)return 1/0;const e=(new Date).getTime()-this.sessionIdleAt,i=this.idleShutdownTimeout-e/1e3;return i<0?0:i}refreshTimingInformation(){var e,t;this.skipAutomaticTimingRefresh||(this.remainingSecondsBeforeShutdown=this._getRemainingSecondsBeforeShutdown(),this.runningDuration=(e=this.startTime,t=this.finishTime,e<0?0:t<0?(new Date).getTime()-e:t-e))}resetClusterInfo(){this.cluster=new e}getClusterInfo(){return this.cluster}computeAutoShutDownReminderInSecondsFromNow(){return this.idleShutdownTimeout<0?-1:this.remainingSecondsBeforeShutdown<this.autoShutDownReminderInSeconds?0:this.idleShutdownTimeout-this.autoShutDownReminderInSeconds+1}shouldScheduleReminder(e){return this.state===t.IDLE&&e!==t.IDLE&&this.idleShutdownTimeout>0}shouldCancelReminder(e){return[t.BUSY,t.CLOSED].includes(this.state)&&!!e}shouldRestartOnClusterChange(){return this.restartOnClusterChange&&[t.STARTING,t.BUSY,t.IDLE].includes(this.state)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1252),i(8695),i(8696),i(511),i(8697)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";const a=Object.freeze({dialog:i,session:r,flow:n}),s=e([t],{constructor:function(){for(const[e,t]of Object.entries(a))this[e]=new t(this)},openLicenseCenter:function(){return this.executeCommand({classifier:"PCT_OpenLicenseCenter",executionInfo:{functionName:"parallel.internal.cloud.openLicenseCenter"}})},openCloudCenter:function(){return this.executeCommand({classifier:"PCT_OpenCloudCenter",executionInfo:{functionName:"parallel.internal.cloud.openCloudCenter"}})},createCloudCluster:function(){return this.executeCommand({classifier:"PCT_CreateCloudCluster",executionInfo:{functionName:"parallel.internal.cloud.createCloudCluster"}})}});let l;return{getInstance:function(){return l||(l=new s),l}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(230),i(511)],o=i.dj.d(n,(function(e,t,i,n){"use strict";const o=e([t,i],{initialize:function(){return Promise.resolve()},discover:function(){throw new Error("DiscoveryManager is abstract.")},cancel:function(){throw new Error("DiscoveryManager is abstract.")},isRunning:function(){throw new Error("DiscoveryManager is abstract.")},createProfile:function(e){return new n("DiscoveryController_Discover").execute({functionName:"parallel.internal.ui.DiscoveryManager.createProfile",args:[e],nargout:1})},onClusterFound:function(e){this.emit(o.CLUSTER_FOUND,e)},onDiscoveryFailed:function(e){this.emit(o.DISCOVERY_FAILED,{errorMessage:e})},onDiscoveryComplete:function(){this.emit(o.DISCOVERY_COMPLETE)}});return o.CLUSTER_FOUND="clusterFound",o.DISCOVERY_COMPLETE="complete",o.DISCOVERY_FAILED="failed",o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(255),i(276),i(203),i(1253)],o=i.dj.d(n,(function(e,t,i,n,o){return n([i,e,t],{baseClass:"discoveryWizardPane",nls:o,buttons:{},notifyCancelled:function(){return 1},getView:function(){return this.getParent().getParent()},onPaneActivated:function(){},onPaneDeactivated:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(225),i(204),i(227),i(211),i(217),i(221),i(749),i(430),i(1326),i(2490)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){function d(e,t,i,n,o){for(var r=1;r<t;r++)e[i+r][n]=o}function u(e){for(var t=e.length,i=t,n=e[0].length,o=new Array(t);t--;)o[t]=new Array(n);var r={};for(t=0;t<i;t++)for(var a=o[t],s=e[t],l=0,c=0;l<n;l++){var u,h=s[c];if(void 0===a[l]){if(a[l]=h.id,h.rowSpan&&h.rowSpan>1&&d(o,h.rowSpan,t,l,h.id),t>0&&h.colSpan&&h.colSpan>1)for(u=1;u<h.colSpan;u++)a[++l]=h.id,h.rowSpan&&h.rowSpan>1&&d(o,h.rowSpan,t,l,h.id);r[h.id]=e[0][l].id,c++}}return r}function h(e,i,n,o,r){if(!(n<=0)){var a,s,c=e.columns[i];if(c)return a={grid:e,columnId:i,width:n,bubbles:!0,cancelable:!0},o&&(a.parentType=o),!e._resizedColumns||t.emit(e.headerNode,"dgrid-columnresize",a)?("auto"===n?delete c.width:(c.width=n,n+="px"),(s=e._columnSizes[i])?s.set("width",n):s=l.addCssRule("#"+l.escapeCssIdentifier(e.domNode.id)+" .dgrid-column-"+l.escapeCssIdentifier(i,"-"),"width: "+n+";"),e._columnSizes[i]=s,!1!==r&&e.resize(),!0):void 0}}var p,f,g=0,m=function(){p=c("div.dgrid-column-resizer"),f=r.create("div",{className:"dgrid-resize-guard"})},_=function(){c(p,"!"),r.destroy(f),p=f=null},v=function(e){var t=a.position(e.domNode,!0);p.style.top=t.y+"px",p.style.height=t.h+"px",c(document.body,p),e.domNode.appendChild(f)},b=function(e){p.style.left=e+"px"},y=function(){p.parentNode.removeChild(p),f.parentNode.removeChild(f)};return e(null,{resizeNode:null,minWidth:40,adjustLastColumn:!0,_resizedColumns:!1,buildRendering:function(){this.inherited(arguments),g++||m()},destroy:function(){for(var e in this.inherited(arguments),this._columnSizes)this._columnSizes[e].remove();--g||_()},resizeColumnWidth:function(e,t){return h(this,e,t)},configStructure:function(){var e,t=this._oldColumnSizes=n.mixin({},this._columnSizes);for(e in this._resizedColumns=!1,this._columnSizes={},this.inherited(arguments),t)e in this._columnSizes||t[e].remove();delete this._oldColumnSizes},_configColumn:function(e){this.inherited(arguments);var t,i=e.id;"width"in e&&((t=this._oldColumnSizes[i])?t.set("width",e.width+"px"):t=l.addCssRule("#"+l.escapeCssIdentifier(this.domNode.id)+" .dgrid-column-"+l.escapeCssIdentifier(i,"-"),"width: "+e.width+"px;"),this._columnSizes[i]=t)},renderHeader:function(){this.inherited(arguments);var e,o=this;if(this.columnSets&&this.columnSets.length)for(var r=this.columnSets.length;r--;)e=n.mixin(e||{},u(this.columnSets[r]));else this.subRows&&this.subRows.length>1&&(e=u(this.subRows));for(var a=i(".dgrid-cell",o.headerNode),d=a.length;d--;){var h=a[d],p=h.columnId,f=o.columns[p],g=h.childNodes;if(f&&!1!==f.resizable){var m=c("div.dgrid-resize-header-container");for(h.contents=m;g.length>0;)c(m,g[0]);c(h,m,"div.dgrid-resize-handle.resizeNode-"+l.escapeCssIdentifier(p,"-")).columnId=e&&e[p]||p}}o.mouseMoveListen||(t(o.headerNode,".dgrid-resize-handle:mousedown"+(s("touch")?",.dgrid-resize-handle:touchstart":""),(function(e){o._resizeMouseDown(e,this),o.mouseMoveListen.resume(),o.mouseUpListen.resume()})),o._listeners.push(o.mouseMoveListen=t.pausable(document,"mousemove"+(s("touch")?",touchmove":""),l.throttleDelayed((function(e){o._updateResizerPosition(e)})))),o._listeners.push(o.mouseUpListen=t.pausable(document,"mouseup"+(s("touch")?",touchend":""),(function(e){o._resizeMouseUp(e),o.mouseMoveListen.pause(),o.mouseUpListen.pause()}))),o.mouseMoveListen.pause(),o.mouseUpListen.pause())},_resizeMouseDown:function(e,t){e.preventDefault(),o.setSelectable(this.domNode,!1),this._startX=this._getResizeMouseLocation(e),this._targetCell=i(".dgrid-column-"+l.escapeCssIdentifier(t.columnId,"-"),this.headerNode)[0],this._updateResizerPosition(e),v(this)},_resizeMouseUp:function(e){var t,n,r,a=this._columnSizes;this.adjustLastColumn&&(r=this.headerNode.clientWidth-1),this._resizedColumns||(t=i(".dgrid-cell",this.headerNode),this.columnSets&&this.columnSets.length?t=t.filter((function(e){return"0"==e.columnId.split("-")[0]&&!(e.columnId in a)})):this.subRows&&this.subRows.length>1&&(t=t.filter((function(e){return"0"==e.columnId.charAt(0)&&!(e.columnId in a)}))),n=t.map((function(e){return e.offsetWidth})),t.forEach((function(e,t){h(this,e.columnId,n[t],null,!1)}),this),this._resizedColumns=!0),o.setSelectable(this.domNode,!0);var s=this._targetCell,c=this._getResizeMouseLocation(e)-this._startX,d=s.offsetWidth+c,u=this._getResizedColumnWidths(),p=u.totalWidth,f=u.lastColId,g=i(".dgrid-column-"+l.escapeCssIdentifier(f,"-"),this.headerNode)[0].offsetWidth;d<this.minWidth&&(d=this.minWidth),h(this,s.columnId,d,e.type)&&s.columnId!=f&&this.adjustLastColumn&&(p+c<r?h(this,f,"auto",e.type):g-c<=this.minWidth&&h(this,f,this.minWidth,e.type)),y(),delete this._startX,delete this._targetCell},_updateResizerPosition:function(e){if(this._targetCell){var t=this._getResizeMouseLocation(e),i=t-this._startX,n=this._targetCell.offsetWidth,o=t;n+i<this.minWidth&&(o=this._startX-(n-this.minWidth)),b(o)}},_getResizeMouseLocation:function(e){var t=0;return e.pageX?t=e.pageX:e.clientX&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),t},_getResizedColumnWidths:function(){var e=0,t=i((this.columnSets?".dgrid-column-set-cell ":"")+"tr:first-child .dgrid-cell",this.headerNode),n=t.length;if(!n)return{};for(var o=t[n-1].columnId;n--;)e+=t[n].offsetWidth;return{totalWidth:e,lastColId:o}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(286),i(1664)],o=i.dj.d(n,(function(e,t,i){return e([i],{kind:"DropDown",editorClass:"mw-form/ComboBox",defaultValue:"*default*",constructor:function(e={}){if(this.editorParams={width:"100%",items:[{label:this.nls.PropertyUseDefault,value:this.defaultValue}]},e.items)this.editorParams.items.push(...e.items);else if(Array.isArray(e.property.info.constraint.inputs)){const t=e.property.info.constraint.inputs.map(e=>({label:e,value:e}));this.editorParams.items.push(...t)}},_getNonDefaultValue:function(e){return e},_getNonDefaultValueForEditor:function(e){return e.toString()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(255),i(203),i(204),i(236),i(648),i(462),i(1019),i(2670),i(395),i(8722)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return i([l,e,t],{purpose:"Editor",templateString:d,nls:c,postMixInProperties:function(){this.inherited(arguments),this.defaultValueDisplay=o.substitute(c.PropertyDefaultValueEditFormat,[this.property.info.defaultValue]),this.defaultValuePresence=this.property.info.defaultValue?"Present":"Absent"},postCreate:function(){this.inherited(arguments),this.editorParams&&r.forEachValue(this.editorParams,(function(e,t){this.editor.set(t,e)}),this),this.property.info.constraint.inputs.subtexts&&this.property.info.constraint.inputs.subtexts.forEach((function(e){a.div.withContents(e).withClass(this.baseClass+"Note").withParent(this.notes).withPosition("last").create()}),this),this.editor.on("change",n.hitch(this,"_handleEditorChanged")),this.editorEvents&&r.forEachValue(this.editorEvents,(function(e,t){this.editor.on(t,n.hitch(this,e))}),this),this.restore()},_handleEditorChanged:function(e){"value"===e.mwEventData.propertyName&&this._handleEditorValueChanged({value:e.mwEventData.newValue,oldValue:e.mwEventData.oldValue})},_handleEditorValueChanged:function(e){},_isNonDefaultValueModified:function(e,t){return e!==t},isModified:function(){var e=this.getValue(),t=s.isDefault(e),i=!this.property.isSet();return(!t||!i)&&(!(!t&&!i)||this._isNonDefaultValueModified(this.property.value,e))},save:function(){var e;this.isModified()&&(e=this.getValue(),s.isDefault(e)?this.property.unsetValue():this.property.setValue(e),this.emit("saved",{property:this.property,value:e}))},restore:function(){this.editor.set("value",this._getValueToDisplay(this.property.value))},_propertyChanged:function(){a.isVisible(this)||this.restore()},isValid:function(){return"normal"===this.editor.get("validationState")},_getNonDefaultValue:function(e){throw new Error("_getNonDefaultValue is abstract.")},_getNonDefaultValueForEditor:function(e){throw new Error("_getNonDefaultValueForEditor is abstract.")},getValue:function(){var e=this.editor.get("value");return this.isDefaultValue(e)?s.DEFAULT:this._getNonDefaultValue(e)},_getValueToDisplay:function(e){return s.isDefault(e)?this.defaultValue:this._getNonDefaultValueForEditor(e)},isDefaultValue:function(e){return e===this.defaultValue}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(462)],o=i.dj.d(n,(function(e,t){return e(null,{visible:!0,postCreate:function(){this.inherited(arguments),this._setVisibleAttr(this.get("visible"))},_setVisibleAttr:function(e){t.display(this,e),this._set("visible",e)},show:function(){this.set("visible",!0)},hide:function(){this.set("visible",!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(209),i(511)],o=i.dj.d(n,(function(e,t,i){"use strict";function n(n,o){var r=new e;if(o=o||{},!n)throw new Error("No function name specified for showFileDialog.");return new i("MATLAB_"+n).execute({functionName:n,args:[o.filter||"*.*",o.title||"",o.fileName||""],nargout:3}).then((function(e){e&&e[0]&&e[0].length>0?r.resolve({name:e[0],path:e[1],filterIndex:e[2]}):r.resolve(null)}),(function(e){t.error(e),r.reject(e)})),r}return{showOpenFileDialog:function(e){return n("uigetfile",e)},showSaveFileDialog:function(e){return n("uiputfile",e)},showOpenFolderDialog:function(n){return function(n){var o=[],r=new e;return(n=n||{}).initialDir&&o.push("InitialPathName",n.initialDir),n.title&&o.push("Title",n.title),new i("MATLAB_openFolder").execute({functionName:"parallel.internal.ui.showFolderDialog",args:o,nargout:1}).then((function(e){e&&e[0]&&e[0].length>0?r.resolve({name:e[0]}):r.resolve(null)}),(function(e){t.error(e),r.reject(e)})),r}(n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2673)],o=i.dj.d(n,(function(e,t){return e([t],{kind:"Simple",refresh:function(){var e=this._getDisplayValue();this.domNode.textContent=e,this.domNode.title=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1256),i(2674),i(395)],o=i.dj.d(n,(function(e,t,i,n){"use strict";const o={importAction:{id:t.PARALLEL.PROFILE.IMPORT,text:n.ActionsImportActionText,description:n.ActionsImportActionDescription,callback:"_handleImportClicked"},edit:{id:t.PARALLEL.PROFILE.EDIT,text:n.ActionsEditText,description:n.ActionsEditDescription,icon:"parallel_profile_edit",callback:"_handleEditClicked"},cloud:{id:t.PARALLEL.PROFILE.CLOUD,text:n.ActionsCreateCloudText,description:n.ActionsCreateCloudDescription,icon:"parallel_profile_create_cloud",callback:"_handleCreateCloudClicked"},duplicate:{id:t.PARALLEL.PROFILE.DUPLICATE,text:n.ActionsDuplicateText,description:n.ActionsDuplicateDescription,icon:"parallel_profile_duplicate",callback:"_handleDuplicateClicked"},deleteAction:{id:t.PARALLEL.PROFILE.DELETE,text:n.ActionsDeleteActionText,description:n.ActionsDeleteActionDescription,icon:"parallel_profile_delete",callback:"_handleDeleteClicked"},rename:{id:t.PARALLEL.PROFILE.RENAME,text:n.ActionsRenameText,description:n.ActionsRenameDescription,icon:"parallel_profile_rename",callback:"_handleRenameClicked"},setDefault:{id:t.PARALLEL.PROFILE.SET_DEFAULT,text:n.ActionsSetDefaultText,description:n.ActionsSetDefaultDescription,icon:"parallel_profile_set_default",callback:"_handleSetDefaultClicked"},cloudCenter:{id:t.PARALLEL.PROFILE.CLOUD_CENTER,text:n.ActionsCloudCenterText,description:n.ActionsCloudCenterDescription,icon:"parallel_profile_cloud_center",callback:"_handleCloudCenterClicked"},licenseCenter:{id:t.PARALLEL.PROFILE.LICENSE_CENTER,text:n.ActionsManageLicenseText,description:n.ActionsManageLicenseDescription,icon:"parallel_profile_manage_licenses",callback:"_handleManageLicenseClicked"},cloudConnectivity:{id:t.PARALLEL.PROFILE.CLOUD_CONNECTIVITY,text:n.ActionsCloudConnectivityText,description:n.ActionsCloudConnectivityDescription,icon:"parallel_profile_cloud_connectivity",callback:"_handleTestCloudConnectivityClicked"},validate:{id:t.PARALLEL.PROFILE.VALIDATE,text:n.ActionsValidateText,description:n.ActionsValidateDescription,icon:"parallel_profile_validate",callback:"_handleValidateClicked"},help:{id:t.PARALLEL.PROFILE.HELP,text:n.ActionsHelpText,description:n.ActionsHelpDescription,icon:"parallel_profile_help",callback:"_handleHelpClicked"},exportActions:{selected:{id:t.PARALLEL.PROFILE.EXPORT.SELECTED,text:n.ActionsExportActionSelectedText,description:n.ActionsExportActionDescription,callback:"_handleExportClicked"},all:{id:t.PARALLEL.PROFILE.EXPORT.ALL,text:n.ActionsExportActionAllText,description:n.ActionsExportActionDescription,callback:"_handleExportAllClicked"}}},r=e([i],{constructor:function(){this.initialize(o)}});return r.actions=o,r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210)],o=i.dj.d(n,(function(e,t){return e(null,{_setStatusAttr:function(e){t.replace(this.domNode,`${this.baseClass}Status${e}`,`${this.baseClass}Status${this.get("status")}`),this._set("status",e)},_setStatusLabelAttr:function(e){this.statusNode.textContent=e,this._set("statusLabel",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(210),i(1671),i(1258),i(463),i(8812)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=e("rendererseditors.renderers.ColorOrderRenderer",[n,o,r],{_rangeZeroToOne:!0,constructor:function(e){this.templateString=a,this._rangeZeroToOne=!e||this._getPossibleBooleanFunctionValue(e.rangeZeroToOne,!0),e&&(this._allArgs=e,this.init(e))},postCreate:function(){this.inherited(arguments),this._updateDomColors()},_createColorDivs:function(e,n){if(e&&n)for(var o=this._getJSColorValuesFromMATLABStringArray(e,this._rangeZeroToOne),r=100/o.length,a=0;a<o.length;a+=1){var s=this._getColorStringFromValue(o[a]),l="width: "+r.toPrecision(4).toString()+"%;background: "+s+";",c=t.create("div",{style:l,innerHTML:"."});i.add(c,"colorDiv"),t.place(c,n,"last")}},_updateDomColors:function(){if(this.domNode&&this._value){var e=this.domNode,i=this._getAttachNode("colorSwatch");e.removeChild(i),t.empty(i),this._createColorDivs(this._value,i),t.place(i,e,"last")}},setValue:function(e){var t=this._value;JSON.stringify(e)!==JSON.stringify(t)&&(this.inherited(arguments),this.domNode&&this._updateDomColors())},_setReadOnly:function(){}});return s.COLOR_SWATCH_ATTACH_POINT="colorSwatch",s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(257),i(223),i(210),i(238),i(215),i(740),i(844),i(235),i(209),i(359)],o=i.dj.d(n,(function(e,t,n,o,r,a,s,l,c,d,u,h,p){return e("rendererseditors.renderers._RendererBase",[l,p],{_editable:!1,_editOnSingleClick:!1,_editOnKeyPress:!0,_editor:void 0,_inPlaceEditor:void 0,_value:void 0,_editValue:void 0,_state:void 0,_mouseListeners:{},_keyboardListeners:{},_allArgs:{},_lastEditTimeStamp:(new Date).getTime(),_clickCount:0,_doubleClickTimer:void 0,_doubleClickDuration:300,_editorListenersPaused:!1,_rendererBlurListeners:null,constructor:function(e){this._editable=!1,this._editOnSingleClick=!1,this._editOnKeyPress=!0,this._editor=void 0,this._inPlaceEditor=void 0,this._value=void 0,this._editValue=void 0,this._state=void 0,this._mouseListeners={},this._keyboardListeners={},this._allArgs=t.mixin({},e),this._lastEditTimeStamp=(new Date).getTime(),this._clickCount=0,e&&this.init(e)},init:function(e){e&&(this.setEditable(void 0!==e.editable&&this._getPossibleBooleanFunctionValue(e.editable,!1)),this.setEditOnSingleClick(void 0!==e.editOnSingleClick&&this._getPossibleBooleanFunctionValue(e.editOnSingleClick,!1)),this.setEditOnKeyPress(void 0===e.editOnKeyPress||this._getPossibleBooleanFunctionValue(e.editOnKeyPress,!0)),this.setValue(e.value),this.setEditValue(e.editValue),this.setState(e.state),this.setInPlaceEditor(e.inPlaceEditor),this.setEditor(e.editor))},postCreate:function(){this._setupKeyboardListeners(),this._setupMouseListeners(),void 0!==this._allArgs.value&&this.setValue(this._allArgs.value),void 0!==this._allArgs.state&&this.setState(this._allArgs.state),void 0!==this._allArgs.cssSpecifier&&this.addCSSClasses(this._allArgs.cssSpecifier)},destroy:function(){this._removeListeners(),this._editor&&void 0===this._editor._destroyed&&(this._editor.destroy(),this._editor=null),this._renderer=null,this._inPlaceEditor=null,this._rendererBlurListeners&&this._rendererBlurListeners.widgetBlur&&(this._rendererBlurListeners.widgetBlur.remove(),delete this._rendererBlurListeners.widgetBlur,this._rendererBlurListeners=null,delete this._rendererBlurListeners),this.inherited(arguments)},_setupRendererBlurListeners:function(){var e=t.hitch(this,"_handleRendererBlurEvent");this._rendererBlurListeners={widgetBlur:n.pausable(s,"widget-blur",e)}},_handleRendererBlurEvent:function(e){e===this&&(this._clickCount=0,this._rendererBlurListeners&&this._rendererBlurListeners.widgetBlur&&(this._rendererBlurListeners.widgetBlur.remove(),this._rendererBlurListeners=null))},_setupMouseListeners:function(){this._changeObjectListenersState(this._mouseListeners,"remove");var e=t.hitch(this,"_handleMouseEvent");this._mouseListeners.mousedown=n.pausable(this.domNode,"mousedown",e),this._mouseListeners.mouseup=n.pausable(this.domNode,"mouseup",e),this._mouseListeners.click=n.pausable(this.domNode,"click",e),this._mouseListeners.dblclick=n.pausable(this.domNode,"dblclick",e),this._mouseListeners.mousemove=n.pausable(this.domNode,"mousemove",e),this._mouseListeners.mouseover=n.pausable(this.domNode,"mouseover",e),this._mouseListeners.mouseout=n.pausable(this.domNode,"mouseout",e),this._mouseListeners.mouseenter=n.pausable(this.domNode,"mouseenter",e),this._mouseListeners.mouseleave=n.pausable(this.domNode,o.leave,e)},_handleMouseEvent:function(e){var i=e;if(i.renderer=this,this.dispatchEvent(e.type,this,i),"dblclick"===e.type&&(e.metaKey||e.ctrlKey||(this._doubleClickTimer&&(clearTimeout(this._doubleClickTimer),this._doubleClickTimer=void 0),this._edit(),this._clickCount=0)),"mouseup"===e.type&&(this._setupRendererBlurListeners(),this._editOnSingleClick||this._inPlaceEditor!==this||this._focus()),this.isEditable()){if("mouseup"===e.type){if(this._handleMouseUp)return void(this._editOnSingleClick||this._inPlaceEditor!==this||this._handleMouseUp());e.stopPropagation()}if("click"===e.type){this._clickCount=this._clickCount+1;var n=t.hitch(this,this._delayedInPlaceEdit);this._editOnSingleClick?void 0===this._doubleClickTimer&&(e.metaKey||e.ctrlKey||(this._doubleClickTimer=setTimeout(n,this._doubleClickDuration))):void 0===this._doubleClickTimer&&2===this._clickCount&&(e.metaKey||e.ctrlKey||(this._doubleClickTimer=setTimeout(n,this._doubleClickDuration))),e.stopPropagation()}"mousedown"!==e.type&&"dblclick"!==e.type||e.stopPropagation()}},_delayedInPlaceEdit:function(){this._inPlaceEdit(),this._doubleClickTimer=void 0,this._clickCount=0},_edit:function(){var e=(new Date).getTime()-this._lastEditTimeStamp>=this._doubleClickDuration;!this._editor||!this._editor.edit||this.isEditing()&&e?this._inPlaceEdit():(this._editor!==this&&(this._editor.setValue(this._value),this._editor.setEditValue(this._editValue),this._editor.setState(this._state)),this._editor.edit(),this._lastEditTimeStamp=(new Date).getTime())},edit:function(){this._inPlaceEditor?this._inPlaceEdit():this._edit()},stopEditing:function(){this.isEditing()&&(this._inPlaceEditor&&this._inPlaceEditor.stopEditing&&this._inPlaceEditor.stopEditing(),this._editor&&this._editor.stopEditing&&this._editor.stopEditing())},cancelEditing:function(){this.isEditing()&&(this._inPlaceEditor&&this._inPlaceEditor.cancelEditing&&this._inPlaceEditor.cancelEditing(),this._editor&&this._editor.cancelEditing&&this._editor.cancelEditing())},_inPlaceEdit:function(){this.isEditable()&&this._inPlaceEditor&&this._inPlaceEditor.edit&&!this.isEditing()&&(this._inPlaceEditor!==this&&(this._editorListenersPaused=!0,this._inPlaceEditor.setValue(this._value),this._inPlaceEditor.setEditValue(this._editValue),this._inPlaceEditor.setState(this._state),this._editorListenersPaused=!1),this._lastEditTimeStamp=(new Date).getTime(),this._inPlaceEditor.edit())},_setupKeyboardListeners:function(){this._changeObjectListenersState(this._keyboardListeners,"remove");var e=t.hitch(this,"_handleKeyboardEvent");this._keyboardListeners.keypress=n.pausable(this.domNode,"keypress",e),this._keyboardListeners.keydown=n.pausable(this.domNode,"keydown",e)},_handleKeyboardEvent:function(e){var t=e;if(t.renderer=this,this.dispatchEvent(e.type,this,t),this.isEditable()&&"keypress"===e.type&&this._isValidKeyPressEvent(e)&&this.isEditOnKeyPress()){var i=this._getKeyCode(e);this._inPlaceEditor&&this._inPlaceEditor.editOverride&&null!==i&&i!==r.ENTER&&(this._inPlaceEditor.editOverride(this._getStringForEvent(e)),e.preventDefault())}8===this._getKeyCode(e)&&e.preventDefault()},_setupEventListeners:function(e){this.addEventListener&&(this.addEventListener("valueChanged",t.hitch(e,e.onValueChanged)),this.addEventListener("editingStarted",t.hitch(e,e.onEditingStarted)),this.addEventListener("editingStopped",t.hitch(e,e.onEditingStopped)),this.addEventListener("mousedown",t.hitch(e,e.onMouseDown)),this.addEventListener("mouseenter",t.hitch(e,e.onMouseEnter)),this.addEventListener("mouseup",t.hitch(e,e.onMouseUp)))},setEditable:function(e){this._editable=e},_getPossibleBooleanFunctionValue:function(e,t){return"function"==typeof e?e.call(this,this._state,this._value):(void 0===t&&(t=!0),u.getLogicalValue(e,t))},isEditable:function(){return this._getPossibleBooleanFunctionValue(this._editable)},setEditOnSingleClick:function(e){this._editOnSingleClick=e},isEditOnSingleClick:function(){return this._getPossibleBooleanFunctionValue(this._editOnSingleClick)},setEditOnKeyPress:function(e){this._editOnKeyPress=e},isEditOnKeyPress:function(){return this._getPossibleBooleanFunctionValue(this._editOnKeyPress)},setEditor:function(e,t){var i=this;e!==this?this._createEditor(e,"_editor",(function(e){i._editor=e.editor,i._setupEditorListeners("_editor"),t&&"function"==typeof t&&t({renderer:e.renderer,editor:e.editor})})):this._editor=this},getEditor:function(){return this._editor},setInPlaceEditor:function(e,t){var i=this;e!==this?""!==e&&null!=e?this._createEditor(e,"_inPlaceEditor",(function(e){i._inPlaceEditor=e.editor,i._setupEditorListeners("_inPlaceEditor"),t&&"function"==typeof t&&t({renderer:e.renderer,inPlaceEditor:e.editor})})):this._setReadOnly&&this._setReadOnly(!0):this._inPlaceEditor=this},getInPlaceEditor:function(){return this._inPlaceEditor},_createEditor:function(e,n,o){if(e&&"string"==typeof e){var r=this;try{Promise.resolve().then((function(){var a=[require(e,null,!1)];Promise.all(i.dj.w(a)).then(function(e){return function(e){try{if(r.isInstanceOf(e))return r[n]=r,void(r._renderer=r);var i=r[n];if(i&&i.isInstanceOf(e))return i.setValue(r._value),i.setEditValue(r._editValue),void i.setState(r._state);var a=new e(t.mixin(r._allArgs,{renderer:r,value:r.getValue(),state:r._state,inPlaceEditor:void 0,editor:void 0}));a.startup&&a.startup(),r.own(a),r._createEditor(a,n,o)}catch(e){h.error(e)}}.apply(null,i.dj.u(e))}.bind(this))})).catch(i.oe)}catch(e){h.error(e)}}else o&&"function"==typeof o&&o({renderer:this,editor:e})},_setupEditorListeners:function(e){var i=this[e];i&&(i.addEventListener("valueChanged",t.hitch(this,"_editorValueChanged")),i.addEventListener("stateChanged",t.hitch(this,"_editorStateChanged")),i.addEventListener("editingStarted",t.hitch(this,"_handleEditorEditingStarted")),i.addEventListener("editingStopped",t.hitch(this,"_handleEditorEditingStopped")),i.addEventListener("editingCanceled",t.hitch(this,"_handleEditorEditingCanceled")))},_handleEditorEditingStarted:function(e){var i=t.mixin(e.data,{renderer:this});this.dispatchEvent("editingStarted",this,i),this._changeObjectListenersState(this._mouseListeners,"pause"),this._changeObjectListenersState(this._keyboardListeners,"pause")},_handleEditorEditingStopped:function(e){var i=t.mixin(e.data,{renderer:this});this.dispatchEvent("editingStopped",this,i),this._clickCount=0,this._changeObjectListenersState(this._mouseListeners,"resume"),this._changeObjectListenersState(this._keyboardListeners,"resume")},_handleEditorEditingCanceled:function(e){var i=t.mixin(e.data,{renderer:this});this.dispatchEvent("editingCanceled",this,i),this._changeObjectListenersState(this._mouseListeners,"resume"),this._changeObjectListenersState(this._keyboardListeners,"resume")},_editorValueChanged:function(e){this._editorListenersPaused||this.setValue(e.data.newValue)},_editorStateChanged:function(e){this._editorListenersPaused||this.setState(e.data.newState)},setValue:function(e,t,i){if(!u.compareValues(this._value,e)){void 0===t&&(t="client");var n=this._value;this._originalValue=n,this._value=e,this._originalEditValue=this._editValue,this._editValue=e,this._inPlaceEditor&&this._inPlaceEditor!==this&&this._inPlaceEditor.setValue&&this._inPlaceEditor.setValue(e),this.dispatchEvent("valueChanged",this,{renderer:this,oldValue:n,newValue:e,source:t})}},getValue:function(){return this._value},hasValueChanged:function(e){return this._originalValue!==e&&this._editValue!==e},setEditValue:function(e,t){if(JSON.stringify(this._editValue)!==JSON.stringify(e)){var i=this._editValue;this._editValue=e,void 0===t&&(t="client"),this._inPlaceEditor&&this._inPlaceEditor!==this&&this._inPlaceEditor.setEditValue&&this._inPlaceEditor.setEditValue(e),this.dispatchEvent("editValueChanged",this,{renderer:this,oldValue:i,newValue:e,source:t})}},getEditValue:function(){return this._editValue},setState:function(e,t){if(JSON.stringify(this._state)!==JSON.stringify(e)){var i=this.getState();this._state=e,this._inPlaceEditor&&this._inPlaceEditor!==this&&this._inPlaceEditor.setState&&this._inPlaceEditor.setState(e),this._editor&&this._editor!==this&&this._editor.setState&&this._editor.setState(e),void 0===t&&(t="client"),this.dispatchEvent("stateChanged",this,{renderer:this,oldState:i,newState:e,source:t})}},getState:function(){return void 0===this._state&&(this._state=this._getDefaultState()),this._state},_pauseListeners:function(){this._changeListenerState("pause")},_resumeListeners:function(){this._changeListenerState("resume")},_removeListeners:function(){this._changeListenerState("remove"),this._mouseListeners={},this._keyboardListeners={}},_changeListenerState:function(e){e&&"string"==typeof e&&(this._changeObjectListenersState(this._mouseListeners,e),this._changeObjectListenersState(this._keyboardListeners,e))},_changeObjectListenersState:function(e,t){if(e)for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];n&&n[t]&&n[t]()}},_applyCssClass:function(e,t,i,n){var o=void 0===e?"object":e;if(o=u.getClassNameForIconList(o),n||(n=this.domNode),this.removeCSSClasses(c.ClassArray,n),t)this.addCSSClasses(d.MGG_CELL,n),this.addCSSClasses(d.TEMPORARY,n);else if(this.addCSSClasses(d.VE_RENDERERS,n),i){if(c.IconTypeMap.hasOwnProperty(o))u.addToClassList(n,c.IconTypeMap[o]);else{u.addToClassList(n,c.IconTypeMap.object)}this.addCSSClasses("icon",n)}else this.addCSSClasses(d.MGG_CELL,n),this.addCSSClasses(c.ClassTypeMap[o],n)},createDataTag:function(){return u.concatenateDataTagStrings("datatools.variableeditor","views","renderers",arguments)},_isValidKeyPressEvent:function(e){var t=this._getKeyCode(e);return!(t>64&&t<91&&(e.ctrlKey||e.metaKey))&&(t>32&&t<127||32===t||13===t||t!==r.CTRL&&t!==r.META)},_getKeyCode:function(e){return e.which?e.which:e.keyCode?e.keyCode:e.charCode?e.charCode:e.key?e.key:null},_getStringForEvent:function(e){var t=this._getKeyCode(e);222===e.which&&0===e.charCode&&(t=39);var i=String.fromCharCode(t);return i=i.trim(),e.shiftKey||(i=i.toLocaleLowerCase()),i},addCSSClasses:function(e,t){e&&(t||(t=this.domNode),a.add(t,e))},removeCSSClasses:function(e,t){e&&(t||(t=this.domNode),a.remove(t,e))},replaceCSSClasses:function(e,t,i){i||(i=this.domNode),e&&this.removeCSSClasses(e,i),t&&this.addCSSClasses(t,i)},_getDefaultState:function(){return{}},isEditing:function(){var e=this.isEditable(),t=this._editor&&this._editor.isEditing&&this._editor.isEditing(),i=this._inPlaceEditor&&this._inPlaceEditor.isEditing&&this._inPlaceEditor.isEditing();return e&&(t||i)},_setReadOnly:function(e){console.log("_setReadOnly Function must be overridden in "+this.declaredClass)},getStyleNode:function(e){return this.domNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(235),i(8814),i(8815)],o=i.dj.d(n,(function(e,t,i,n){return e("rendererseditors.renderers._VERendererMixin",[i,n],{_setRendererProperties:function(e,i,n){if(!e.isInvalidCache){var o=this.getCellIndices(e),r=o.row,a=o.column;if(this.setRow&&this.setRow(r),this.setColumn&&this.setColumn(a),this.setToolTipText&&this.setToolTipText(i.getCellPropertyValue(r,a,"tooltip",e),n),this.updateCellStyles&&this.updateCellStyles(r,a,e,i),this.setEditable&&this.setEditable(t.getLogicalValue(i.getCellPropertyValue(r,a,"Editable",e))),this.setRemoveQuotes&&this.setRemoveQuotes(i.getCellPropertyValue(r,a,"RemoveQuotedStrings",e)),this.setEditorConverter&&this.setEditorConverter(i.getCellPropertyValue(r,a,"EditorConverter",e)),this.setValue&&this.setValue(i.getCellPropertyValue(r,a,"value",e),n),this.setEditValue&&this.setEditValue(i.getCellPropertyValue(r,a,"editValue",e),n),this.getState){var s=this.populateRendererState(r,a,e,i);this.setState(s)}this.setInPlaceEditor&&this.setInPlaceEditor(i.getCellPropertyValue(r,a,"inplaceeditor",e)),this.setEditor&&this.setEditor(i.getCellPropertyValue(r,a,"editor",e))}},populateRendererState:function(e,t,i,n){var o=this.getState();if(void 0!==o)for(var r in o)o[r]=n.getCellPropertyValue(e,t,r,i);else o={};return o.dataType=n.getCellPropertyValue(e,t,"class",i),o},getCellIndices:function(e){var t=-1,i=-1;return e&&void 0!==e.row&&(t=parseInt(e.row)),e&&void 0!==e.col&&(i=parseInt(e.col)),{row:t,column:i}},_setupDOMRowCol:function(e){var i=e.row,n=e.column;this.domNode&&i>=0&&n>=0&&(this.domNode.setAttribute("data-row",i),this.domNode.setAttribute("data-col",n),t.addToClassList(this.domNode,"row_"+i),t.addToClassList(this.domNode,"col_"+n))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(571),i(447),i(367),i(1258),i(2685),i(2683),i(463),i(235),i(8835)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d=e([n,o,s],{templateString:c,_colorStyleOptions:[],COLOR_AUTO:"auto",COLOR_NONE:"none",COLOR_FLAT:"flat",COLOR_INTERP:"interp",COLOR_TEXTUREMAP:"texturemap",_hasStyle:!1,_hasAlpha:!1,_inputBox:null,_alpha:1,_valueIsAdjusting:!1,_rangeZeroToOne:!0,_doubleClickDuration:0,_inputValueChangeListener:void 0,constructor:function(){this._colorDropDown=null,this._colorTextBox=null,this._configValue(),this._createColorDropDown(),this._createColorTextBox()},postCreate:function(){this.inherited(arguments),this._colorDropDown.startup(),this._colorTextBox.startup(),this._colorTextBox.placeAt(this.domNode),this._colorDropDown.placeAt(this.domNode),this._addListnersToComponents()},_configValue:function(){this._allArgs&&this._allArgs.state&&this._allArgs.state.showStyle&&!0===this._allArgs.state.showStyle&&this._allArgs.state.styleOptions&&Array.isArray(this._allArgs.state.styleOptions)&&this._allArgs.state.styleOptions.length>0&&(this._colorStyleOptions=this._allArgs.state.styleOptions.slice())},_createColorDropDown:function(){var e={color:this._allArgs.value,colorStyleOptions:this._colorStyleOptions};this._colorDropDown=new a(e),this.own(this._colorDropDown)},_createColorTextBox:function(){var e=this._allArgs;e.inPlaceEditor=void 0,this._colorTextBox=new r(e),this._colorTextBox.setEditable(!0);var t=this._colorTextBox._isInvalidColor;this._colorTextBox._isInvalidColor=function(e){return this._isStyle(e)?!this._isValidStyle(e):"string"==typeof e&&"3 double"===e.slice(-8)||t.apply(this._colorTextBox,arguments)}.bind(this),this.own(this._colorTextBox)},_isValidStyle:function(e){var t=!1;return this._colorStyleOptions.indexOf(this.COLOR_AUTO)>-1&&(t=t||this._isAuto(e)),this._colorStyleOptions.indexOf(this.COLOR_NONE)>-1&&(t=t||this._isNone(e)),this._colorStyleOptions.indexOf(this.COLOR_FLAT)>-1&&(t=t||this._isFlat(e)),this._colorStyleOptions.indexOf(this.COLOR_INTERP)>-1&&(t=t||this._isInterp(e)),this._colorStyleOptions.indexOf(this.COLOR_TEXTUREMAP)>-1&&(t=t||this._isTextureMap(e)),t},_isStyle:function(e){return this._isNone(e)||this._isAuto(e)||this._isFlat(e)||this._isInterp(e)||this._isTextureMap(e)},_addListnersToComponents:function(){this._colorDropDown.on("color-changed",this._handleColorDropDownValueChange.bind(this)),this._colorDropDown.on("dropdownclick",this._handleDropDownClick.bind(this)),this._colorTextBox.addEventListener("editingStarted",this._reDispatchEvent.bind(this)),this._colorTextBox.addEventListener("editingStopped",this._reDispatchEvent.bind(this)),this._colorTextBox.addEventListener("valueChanged",this._handleTextBoxValueChange.bind(this)),this._colorTextBox.addEventListener("valueAdjusting",this._handleTextBoxValueChange.bind(this))},_handleDropDownClick:function(e){this.dispatchEvent("editingStarted",this,{})},_handleColorDropDownValueChange:function(e){var i=null;i=this._isNone(e.newColorValue)?this.COLOR_NONE:this._isAuto(e.newColorValue)?this.COLOR_AUTO:this._isFlat(e.newColorValue)?this.COLOR_FLAT:this._isInterp(e.newColorValue)?this.COLOR_INTERP:this._isTextureMap(e.newColorValue)?this.COLOR_TEXTUREMAP:new t(e.newColorValue).toCss(),this._colorsEqual(this._value,i)||(this._colorChanged(i),this._colorTextBox.setValue(this._value))},_reDispatchEvent:function(e){this.dispatchEvent(e.type,this,e.data)},_handleTextBoxValueChange:function(e){var n=null;if(n=this._isNone(e.data.newValue)?this.COLOR_NONE:this._isAuto(e.data.newValue)?this.COLOR_AUTO:this._isFlat(e.data.newValue)?this.COLOR_FLAT:this._isInterp(e.data.newValue)?this.COLOR_INTERP:this._isTextureMap(e.data.newValue)?this.COLOR_TEXTUREMAP:new t(e.data.newValue).toCss(),!this._colorsEqual(this._value,n)&&(this._editing=!1,this._colorChanged(n),this._colorDropDown.set("color",n),this._colorDropDown._colorEditor&&this._colorDropDown._colorEditor.colorPicker&&!this._isStyle(n))){var o=this._colorDropDown._colorEditor.colorPicker.get("recentlyUsedColors"),r=new i(n).toHex();o.splice(o.indexOf(r),1),o.unshift(r),this._colorDropDown._colorEditor.colorPicker.set("recentlyUsedColors",o)}},setValue:function(e,t,i){this._setUIValue(e,t,i)},getValue:function(){return this._getUIValue()},_setUIValue:function(e){var i=null;"string"==typeof e&&"3 double"===e.slice(-8)?(this._value=e,this._editValue=e,this._colorDropDown&&this._colorDropDown.set("color","rgb(245, 245, 245)"),this._colorTextBox&&this._colorTextBox.setValue(e)):(this._isNone(e)?(this._value=this.COLOR_NONE,this._editValue=this.COLOR_NONE):this._isAuto(e)?(this._value=this.COLOR_AUTO,this._editValue=this.COLOR_AUTO):this._isFlat(e)?(this._value=this.COLOR_FLAT,this._editValue=this.COLOR_FLAT):this._isInterp(e)?(this._value=this.COLOR_INTERP,this._editValue=this.COLOR_INTERP):this._isTextureMap(e)?(this._value=this.COLOR_TEXTUREMAP,this._editValue=this.COLOR_TEXTUREMAP):(i=new t(e),this._value=i.toCss(),this._editValue=i.toCss()),this._colorDropDown&&this._colorDropDown.set("color",this._value),this._colorTextBox&&this._colorTextBox.setValue(this._value))},_getUIValue:function(){return this._value},_isNone:function(e){return"string"==typeof e&&e.toLowerCase()===this.COLOR_NONE},_isAuto:function(e){return"string"==typeof e&&e.toLowerCase()===this.COLOR_AUTO},_isFlat:function(e){return"string"==typeof e&&e.toLowerCase()===this.COLOR_FLAT},_isInterp:function(e){return"string"==typeof e&&e.toLowerCase()===this.COLOR_INTERP},_isTextureMap:function(e){return"string"==typeof e&&e.toLowerCase()===this.COLOR_TEXTUREMAP},_colorChanged:function(e){var t=this._value;this._value=e,this._editValue=e,this._commitNewValue(e,t)},setState:function(e){this.inherited(arguments),void 0!==e.isMetaData&&this._colorTextBox&&this._colorTextBox._inputBox&&this._colorTextBox._inputBox._state&&(this._colorTextBox._inputBox._state.isMetaData=l.getLogicalValue(e.isMetaData,!1))},_commitNewValue:function(e,t){this.stopEditing(),this.dispatchEvent("valueChanged",this,{editor:this,oldValue:t,newValue:e})},_setReadOnly:function(){}});return d.CSS_SELECTOR="colorEditorWithTextBox",d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(285),i(1936),i(2096)],o=i.dj.d(n,(function(e,t,i,n,o){return e("dijit.form.FilteringSelect",[n,o],{required:!0,_lastDisplayedValue:"",_isValidSubset:function(){return this._opened},isValid:function(){return!!this.item||!this.required&&""==this.get("displayedValue")},_refreshState:function(){this.searchTimer||this.inherited(arguments)},_callbackSetLabel:function(e,t,i,n){t&&t[this.searchAttr]!==this._lastQuery||!t&&e.length&&this.store.getIdentity(e[0])!=this._lastQuery||(e.length?this.set("item",e[0],n):this.set("value","",n||void 0===n&&!this.focused,this.textbox.value,null))},_openResultList:function(e,t,i){t[this.searchAttr]===this._lastQuery&&(this.inherited(arguments),void 0===this.item&&this.validate(!0))},_getValueAttr:function(){return this.valueNode.value},_getValueField:function(){return"value"},_setValueAttr:function(e,n,o,r){if(this._onChangeActive||(n=null),void 0===r){if((null===e||""===e)&&(e="",!t.isString(o)))return void this._setDisplayedValueAttr(o||"",n);var a=this;this._lastQuery=e,i(this.store.get(e),(function(e){a._callbackSetLabel(e?[e]:[],void 0,void 0,n)}))}else this.valueNode.value=e,this.inherited(arguments,[e,n,o,r])},_setItemAttr:function(e,t,i){this.inherited(arguments),this._lastDisplayedValue=this.textbox.value},_getDisplayQueryString:function(e){return e.replace(/([\\\*\?])/g,"\\$1")},_setDisplayedValueAttr:function(e,n){if(null==e&&(e=""),!this._created){if(!("displayedValue"in this.params))return;n=!1}if(this.store){this.closeDropDown();var o,r=t.clone(this.query),a=this._getDisplayQueryString(e);this.store._oldAPI?o=a:(o=this._patternToRegExp(a)).toString=function(){return a},this._lastQuery=r[this.searchAttr]=o,this.textbox.value=e,this._lastDisplayedValue=e,this._set("displayedValue",e);var s=this,l={queryOptions:{ignoreCase:this.ignoreCase,deep:!0}};t.mixin(l,this.fetchProperties),this._fetchHandle=this.store.query(r,l),i(this._fetchHandle,(function(e){s._fetchHandle=null,s._callbackSetLabel(e||[],r,l,n)}),(function(e){s._fetchHandle=null,s._cancelingQuery||console.error("dijit.form.FilteringSelect: "+e.toString())}))}},undo:function(){this.set("displayedValue",this._lastDisplayedValue)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(210),i(228),i(223),i(206),i(213),i(215),i(216),i(272),i(1003),i(750),i(697),i(8844),i(243),i(8845)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([l,c,d,f],{templateString:m,constructor:function(e){this.tableData=e.tableData,this.dgridColumnconfig=e.dgridColumnConfig,this._scrollPosition=null},_setTableDataAttr:function(e){var t=this._getSelectedRow(this);this.grid.clearSelection(),this.grid.refresh(),this.grid.renderArray(e),this._selectRowAfterTableRefresh(t,e.length)},buildRendering:function(){this.inherited(arguments);var t=e([u,h,p]);this.grid=new t({columns:this.dgridColumnconfig,selectionMode:"single",cellNavigation:!0,class:"vc-pe-editableTable",deselectOnRefresh:!1}),this.own(this.grid),i.place(this.grid.domNode,this.dgridContainerNode),o.set(this.grid.domNode,"tabIndex",0),this.addRowButtonWidget=new g({width:this.ADD_DELETE_BUTTON_WIDTH,height:this.ADD_DELETE_BUTTON_HEIGHT,icon:"plusIcon",class:"vc-pe-addDeleteRowStatesTearawayButtons"}),this.own(this.addRowButtonWidget),i.place(this.addRowButtonWidget.domNode,this.addRemoveButtonContainerNode),this.deleteRowButtonWidget=new g({width:this.ADD_DELETE_BUTTON_WIDTH,height:this.ADD_DELETE_BUTTON_HEIGHT,icon:"muinusIcon",class:"vc-pe-addDeleteRowStatesTearawayButtons"}),this.own(this.deleteRowButtonWidget),i.place(this.deleteRowButtonWidget.domNode,this.addRemoveButtonContainerNode)},postCreate:function(){this.inherited(arguments),this.addRowButtonWidget.on("click",this._handlePlusButtonClick.bind(this)),this.deleteRowButtonWidget.on("click",this._handleDeleteButtonClick.bind(this)),this.grid.on("dgrid-datachange",t.hitch(this,(function(e){this._onDgridDataModified(e.cell.column.id,e.cell.row.id,e.value)}))),this.grid.on(".dgrid-row:keypress",t.hitch(this,this._onUserEntryInDgridCell)),this.grid.on(".dgrid-row:dblclick",t.hitch(this,this._onDblClickInDgridCell)),this.grid.on("dgrid-select",t.hitch(this,(function(e){this.emit("table-row-select",{row:e.rows[0]})}))),this.grid.on("dgrid-deselect",t.hitch(this,(function(){this.emit("table-row-deselect",{})})))},startup:function(){this.inherited(arguments)},_handlePlusButtonClick:function(){var e=this.getSelectedRow();this.emit("add-button-click",{currentSelectedRow:e})},_handleDeleteButtonClick:function(){var e=this.getSelectedRow();this.emit("delete-button-click",{currentSelectedRow:e})},_onDgridDataModified:function(e,t,i){t=parseInt(t),this._scrollPosition=this.grid.getScrollPosition(),this.emit("table-edit",{columnId:e,rowId:t,value:i})},getSelectedRow:function(){var e=-1,t=Object.keys(this.grid.selection);if(1===t.length)e=t.map(Number)[0];else if(t.length>1)throw new Error("Muliple selection not supported");return e},selectRow:function(e,t){if(!(e>=0))throw new Error("Negative value for rowToSelect is not allowed");if(this.grid.clearSelection(),this.grid.select(e),!0===t)this._scrollPosition&&this.grid.scrollTo(this._scrollPosition);else{var i=this.grid.row(e).element;if(i){var n={y:i.offsetTop};this.grid.scrollTo(n)}}},getRowToSelectPostAddition:function(e,t){return t-1},getRowToSelectPostDeletion:function(e,t){return 0===t?-1:e>0?e-1:0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(213),i(230)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{startup:function(){this.started=!0,this.table.startup()},_reloadTable:function(){this.table.set("tableData",this._getTableData())},_initializeView:function(){this._setupListenersOnView(),this._setupListenersOnModel(),this._updateAddButtonState(),this._updateDeleteButtonState()},_setupListenersOnView:function(){this.own(this.table.on("add-button-click",this._onAddBtnClick.bind(this)),this.table.on("delete-button-click",this._onDeleteBtnClick.bind(this)),this.table.on("table-edit",this._onTableEdit.bind(this)),this.table.on("table-row-select",this._updateDeleteButtonState.bind(this)),this.table.on("table-row-deselect",this._updateDeleteButtonState.bind(this)))},_setupListenersOnModel:function(){this._modelUpdateListener=i.pausable(this.model,"modelUpdated",this._handleModelUpdate.bind(this)),this.own(this._modelUpdateListener)},_handleModelUpdate:function(e){this.emit("tableupdated",{mwEventData:e.eventData})},_onAddBtnClick:function(e){var t=this.model.getComponentProperty(this.propNameInModelToGetAllItems).length,i=this.table.getRowToSelectPostAddition(e.currentSelectedRow,t);this.table.selectRow(i),this._updateAddButtonState()},_onDeleteBtnClick:function(e){var t=this.model.getComponentProperty(this.propNameInModelToGetAllItems).length,i=this.table.getRowToSelectPostDeletion(e.currentSelectedRow,t);i>=0&&this.table.selectRow(i),this._updateDeleteButtonState()},_updateAddButtonState:function(){if(this.model.minimumStates!==this.model.maximumStates){var e=this.model.getComponentProperty(this.propNameInModelToGetAllItems).length<this.model.maximumStates;this.table.addRowButtonWidget.set("disabled",!e)}else n.set(this.table.addRowButtonWidget.domNode,"display","none")},_updateDeleteButtonState:function(){if(this.model.minimumStates!==this.model.maximumStates){var e=this.model.getComponentProperty(this.propNameInModelToGetAllItems).length>this.model.minimumStates,t=this.table.getSelectedRow(),i=e&&t>=0;this.table.deleteRowButtonWidget.set("disabled",!i)}else n.set(this.table.deleteRowButtonWidget.domNode,"display","none")},_getTableData:function(){},_onTableEdit:function(e){this.table.selectRow(e.rowId,!0)},setTableEnabledState:function(e){this.table.set("disabled",!e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(413),i(259)],o=i.dj.d(n,(function(e,t,i){return e(i.validate([t]),{width:"100%",height:60,_validateSizeInput:function(e){"string"==typeof e&&"%"===e.charAt(e.length-1)||this.inherited(arguments)},_getAdjustedSize:function(e,t,i){return"width"!==e&&"height"!==e||"string"!=typeof t?this.inherited(arguments):"%"===t.charAt(t.length-1)?t:void 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(651),i(385),i(211),i(210),i(215),i(216),i(359),i(235),i(764),i(8901),i(8922)],o=i.dj.d(n,(function(e,t,n,o,r,a,s,l,c,d,u,h,p){var f=e("inspector_client.widget.InspectorWidget",[s,l,c],{application:"default",inspectorId:"/default_Inspector",dataTagRoot:"datatools",cssSpecifier:"propertyInspector",templateString:p,propertySheet:null,allArgs:{},_previousIO:void 0,constructor:function(e){e||(e={}),this.application=e.application||"default",this.inspectorId=e.inspectorId||"/"+this.application+"_Inspector",this.dataTagRoot="datatools",this.cssSpecifier=e.cssSpecifier||e.application||"propertyInspector",this.propertySheet=null,this.allArgs=d.mergeObjects(void 0!==e.otherArgs?e.otherArgs:e,{application:this.application,inspectorId:this.inspectorId}),this._previousIO=void 0,this.widgetName=e.widgetName||"default",this.showGroups=void 0===e.showGroups||e.showGroups},postCreate:function(){a.add(this.domNode,this.application),this.domNode&&!this.domNode.hasAttribute("data-tag")&&this.domNode.setAttribute("data-tag",d.concatenateDataTagStrings(this.dataTagRoot,"inspector",this.widgetName)),this.domNode&&this.cssSpecifier&&!a.contains(this.domNode,this.cssSpecifier)&&a.add(this.domNode,this.cssSpecifier)},inspect:function(e,t){if(e){var i=e;e.isInstanceOf&&e.isInstanceOf(u)||(i=this._createInspectorObjectFromObjects(e)),this._previousIO=i,this._asyncCreatePropertySheet(i,t)}},_createInspectorObjectFromObjects:function(e){var t=d.mergeObjects(this.allArgs,{objects:e});return!t.propertySheet&&this.propertySheet&&(t.propertySheet=this.propertySheet),new u(t)},_asyncCreatePropertySheet:function(e,t){if(e&&e.template){var n=this;Promise.resolve().then((function(){var o=[require("dojo/text!"+e.template,null,!1),i(318)];Promise.all(i.dj.w(o)).then(function(o){return function(i){n.domNode&&r.empty(n.domNode),n._destroyCurrentPropertySheet();var o=d.mergeObjects(n.allArgs,{template:i,inspectorObject:e,_showgroups:n.showGroups});n.propertySheet=new h(o),r.place(n.propertySheet.domNode,n.domNode,"last"),n.propertySheet.addEventListener("propertyValueChanged","_redispatchEvent",n),n.propertySheet.addEventListener("editingStarted","_redispatchEvent",n),n.propertySheet.addEventListener("editingStopped","_redispatchEvent",n),n.propertySheet.addEventListener("propertySelected","_redispatchEvent",n),n.propertySheet.addEventListener("propertyDeselected","_redispatchEvent",n),n.propertySheet.addEventListener("viewPosition","_redispatchEvent",n),n.propertySheet.addEventListener("actionEventOccured","_redispatchEvent",n),n.propertySheet.startup(),t&&t(n.propertySheet)}.apply(null,i.dj.u(o))}.bind(this))})).catch(i.oe)}},_destroyCurrentPropertySheet:function(){this.propertySheet&&this.propertySheet.destroy&&(this.propertySheet.hasEventListener("propertyValueChanged","_redispatchEvent",this)&&(this.propertySheet.removeEventListener("propertyValueChanged","_redispatchEvent",this),this.propertySheet.removeEventListener("editingStarted","_redispatchEvent",this),this.propertySheet.removeEventListener("editingStopped","_redispatchEvent",this),this.propertySheet.removeEventListener("propertySelected","_redispatchEvent",this),this.propertySheet.removeEventListener("propertyDeselected","_redispatchEvent",this),this.propertySheet.removeEventListener("viewPosition","_redispatchEvent",this),this.propertySheet.removeEventListener("actionEventOccured","_redispatchEvent",this)),this.propertySheet.destroy())},_redispatchEvent:function(e,t){if(e&&e.data){e.type&&"propertyValueChanged"===e.type&&this._updatePropertyValueFromRichEditor(e),t||(t={});var i=d.mergeObjects(e.data,t);i=d.mergeObjects(i,{application:this.application,inspectorId:this.inspectorId,widgetName:this.widgetName});try{this.dispatchEvent(e.type,this,i)}catch(e){}}},_updatePropertyValueFromRichEditor:function(e){if(e.data&&e.data.propertyName&&e.data.newValue&&e.data.needUpdateInPlaceEditor&&!0===e.data.needUpdateInPlaceEditor){var t=d.mergeObjects({value:e.data.newValue,editValue:e.data.newValue,needUpdateInPlaceEditor:!0});this.updatePropertyValue(e.data.propertyName,t)}},updatePropertyValueAndState:function(e,t,i){this.propertySheet&&this.propertySheet.updatePropertyValueAndState(e,t,i)},updatePropertyValue:function(e,t){this.propertySheet&&this.propertySheet.updatePropertyValue(e,t)},updatePropertyState:function(e,t){this.propertySheet&&this.propertySheet.updatePropertyState(e,t)},closeAlldropDowns:function(){this.propertySheet&&this.propertySheet.closeAlldropDowns()},getCurrentPropertyValue:function(e){if(this.propertySheet)return this.propertySheet.getCurrentPropertyValue(e)},getGroupExpansionStates:function(){if(this.propertySheet)return this.propertySheet.getGroupExpansionStates()},destroy:function(){try{this.dispatchEvent("inspectorDestroyed",this,{application:this.application,inspectorId:this.inspectorId,inspector:this})}catch(e){}this.inherited(arguments)}});return f.MULTIPLE_PROPERTIES_COMBINATION_MODE=h.MULTIPLE_PROPERTIES_COMBINATION_MODE,f.MULTIPLE_VALUES_COMBINATION_MODE=h.MULTIPLE_VALUES_COMBINATION_MODE,f.DEFAULT_INSPECTOR_APPLICATION="default",f.DEFAULT_INSPECTOR_CHANNEL="/default_Inspector",f.DEFAULT_INSPECTOR_CSS_SPECIFIER="propertyInspector",f.DEFAULT_DATATOOLS_DATATAG_ROOT="datatools",f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(222),i(211),i(213),i(210),i(204),i(212),i(215),i(216),i(255),i(695),i(8904),i(1680),i(2695)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e("inspector_client.objectbrowser.ObjectBrowser",[l,c,d,i],{templateString:h,_breadcrumbs:null,_treeObjectBrowser:null,constructor:function(e){e&&e.breadCrumbsData&&(this._breadCrumbsData=e.breadCrumbsData),this._treeArgs={},e&&e.lookAheadNodeBuffer&&(this._treeArgs.lookAheadNodeBuffer=e.lookAheadNodeBuffer),e&&e.treeData&&(this._treeArgs.treeData=e.treeData),e&&e.treeContextMenu&&(this._treeArgs.treeContextMenu=e.treeContextMenu),e&&e.treeNodeRenderer&&(this._treeArgs.treeNodeRenderer=e.treeNodeRenderer),e&&e.treeEditor&&(this._treeArgs.treeEditor=e.treeEditor),e&&e.designTimeEventsConfig&&(this._treeArgs.designTimeEventsConfig=e.designTimeEventsConfig),e&&e.htmlDnD&&(this._treeArgs.htmlDnD=e.htmlDnD),e&&e.deleteActionConfig&&(this._treeArgs.deleteActionConfig=e.deleteActionConfig)},postCreate:function(){this.inherited(arguments),this._initBreadcrumbs(),this._initTreeObjectBorwser(),this._isCollapsed()&&r.add(this.treebrowserplaceholder,"invisibleNode"),this.own(t(this.expander,"mousedown",this._handleMouseDownExpandCollapse.bind(this)))},refresh:function(e){var t=!0,i=!0;e.breadCrumbsData?(this._breadCrumbsData=e.breadCrumbsData,this._isValidData(this._breadCrumbsData)?(this._breadcrumbs?this._breadcrumbs.refreshData(this._breadCrumbsData):this._initBreadcrumbs(),this._isCollapsed()&&this._emitLayout(25)):(this.destroyBreadcrumbs(),i=!1)):i=!1,e.treeData?(this._treeArgs.treeData=e.treeData,this._isValidData(this._treeArgs.treeData)?(this._treeObjectBrowser?this._treeObjectBrowser.refreshData(this._treeArgs.treeData):this._initTreeObjectBorwser(),this._isCollapsed()||this._emitLayout(this._getTreeHeightInPixles())):(this.destroyTreeBrowser(),t=!1)):t=!1,i||t||this._emitLayout(0)},showTree:function(e){this._treeObjectBrowser&&this._treeObjectBrowser._treeWidget&&(this._isCollapsed()&&(r.remove(this.expander,"collpasedImage"),r.add(this.breadcrumbsplaceholder,"invisibleNode"),r.remove(this.treebrowserplaceholder,"invisibleNode"),e||this._treeObjectBrowser._treeWidget.focus(),o.set(this.expander,"display","none"),this._emitLayout(this._getTreeHeightInPixles())),this._treeObjectBrowser._treeWidget.resize())},showBreadcrumbs:function(){this._isCollapsed()||(r.add(this.expander,"collpasedImage"),r.remove(this.breadcrumbsplaceholder,"invisibleNode"),r.add(this.treebrowserplaceholder,"invisibleNode"),o.set(this.expander,"display","block"))},_getTreeHeightInPixles:function(){return 21*this._treeObjectBrowser.getNumberOfNodes()},_emitLayout:function(e){this.emit("layoutChange",{newHeight:e})},_handleMouseDownExpandCollapse:function(e){e.stopPropagation(),e.preventDefault(),this._toggleChildren()},_toggleChildren:function(){this._isCollapsed()?this._treeObjectBrowser&&(this.showTree(),this._treeObjectBrowser.scrollToCurrentSelection()):(this.showBreadcrumbs(),this._emitLayout(25))},_initBreadcrumbs:function(){this._breadCrumbsData&&(this._breadcrumbs&&this._breadcrumbs.destroy(),this._createBreadCrumbsWidget(this._breadCrumbsData),this.own(this._breadcrumbs.on("selectionChanged",this._handleBreadcrumbsSelectionChanged.bind(this))),this._breadcrumbs.startup(),n.place(this._breadcrumbs.domNode,this.breadcrumbsplaceholder),this._isCollapsed()||r.add(this.breadcrumbsplaceholder,"invisibleNode"))},_initTreeObjectBorwser:function(){this._treeArgs.treeData&&(this._treeObjectBrowser&&this._treeObjectBrowser.destroy(),this._createTreeWidget(this._treeArgs),this._treeObjectBrowser.startup(),n.place(this._treeObjectBrowser.domNode,this.treebrowserplaceholder),this.own(this._treeObjectBrowser.on("treeAction",this._handleTreeActionEvent.bind(this))),this.own(this._treeObjectBrowser.on("expanded",this._handleTreeExpansionEvent.bind(this))),this.own(this._treeObjectBrowser.on("parented",this._handleTreeParentedEvent.bind(this))),this.own(this._treeObjectBrowser._treeWidget.on("collapsed",this._handleTreeCollapsedEvent.bind(this))))},_handleTreeParentedEvent:function(){this._isCollapsed()||this._emitLayout(this._getTreeHeightInPixles())},_handleTreeCollapsedEvent:function(e){var t=e.nodeId;this._treeObjectBrowser._treeDataModel.getFirstNode().then(a.hitch(this,(function(e){t===e[0][0][0].id&&(this._treeObjectBrowser._treeWidget.expand([{id:e[0][0][0].id}]),this.showBreadcrumbs(),this._emitLayout(25))})))},_handleTreeExpansionEvent:function(){this._emitLayout(this._getTreeHeightInPixles())},_isCollapsed:function(){return r.contains(this.expander,"collpasedImage")},_createBreadCrumbsWidget:function(e){this._breadcrumbs=new p(e)},_createTreeWidget:function(e){this._treeObjectBrowser=new f(e)},_handleBreadcrumbsSelectionChanged:function(e){var t={data:{actionType:"objectSelectionChanged",selectionCriteria:"index",objectToSelect:e.ancestorId}};this.emit("actionEvent",t)},_handleTreeActionEvent:function(e){this.emit("actionEvent",{data:e}),"deleteActionCompleted"===e.actionType&&(this._isCollapsed()||this._emitLayout(this._getTreeHeightInPixles()))},destroyTreeBrowser:function(){this._treeObjectBrowser&&(this._treeObjectBrowser.destroy(),this._treeObjectBrowser=null)},destroyBreadcrumbs:function(){this._breadcrumbs&&(this._breadcrumbs.destroy(),this._breadcrumbs=null)},getTreeObjectBrowser:function(){return this._treeObjectBrowser},_isValidData:function(e){return Array.isArray(e)&&e.length>0},addTreeNode:function(e,t,i){var n=new s;return this._treeObjectBrowser.getDataModel().addNode(e,t,i).then(a.hitch(this,(function(){n.resolve(),this._isCollapsed()||this._emitLayout(this._getTreeHeightInPixles())}))).then((function(){n.reject()})),n},deleteTreeNode:function(e){var t=new s;return this._treeObjectBrowser.getDataModel().deleteNode(e).then(a.hitch(this,(function(){t.resolve(),this._isCollapsed()||this._emitLayout(this._getTreeHeightInPixles())}))).then((function(){t.reject()})),t},updateTreeNodeData:function(e,t,i){var n=new s;return this._treeObjectBrowser.getDataModel().updateNodeData(e,t,i).then(a.hitch(this,(function(){n.resolve()}))).then((function(){n.reject()})),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(211),i(8905),i(222),i(215),i(216),i(255),i(1371)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([a,s,r],{templateString:o,_breadCrumbsMetaData:null,_navigationBarWidget:null,constructor:function(e){this._setMetaData(e)},postCreate:function(){this.inherited(arguments),this._initNavigationBar()},refreshData:function(e){JSON.stringify(this._breadCrumbsMetaData.metaData.breadCrumbObjectsArray)!==JSON.stringify(e)&&(this._setMetaData(e),this._navigationBarWidget.setCurrentLocation(this._breadCrumbsMetaData.currentLocation,this._breadCrumbsMetaData.metaData))},_setMetaData:function(e){this._breadCrumbsMetaData={currentLocation:"",metaData:{hasChildren:!1,locationIcon:"",breadCrumbObjectsArray:e}}},_initNavigationBar:function(){this._navigationBarWidget=new c(this._breadCrumbsMetaData),this._navigationBarWidget.startup(),this.own(this._navigationBarWidget),n.place(this._navigationBarWidget.domNode,this.navigationbarContainerNode),this.own(t(this._navigationBarWidget,"locationChanged",this._handleLocationChange.bind(this)))},_handleLocationChange:function(e){"0"!==e&&this.emit("selectionChanged",{ancestorId:e})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{MF0GenericObjectClassName:"viewmodel.internal.zml.GenericObject",MF0PropertyObjectClassName:"viewmodel.internal.zml.Property",MF0EventDataObjectClassName:"viewmodel.internal.zml.GenericEventData",PropertyChangeListenerEventNamePrefix:"viewmodel_internal_propertySetListener_",HandshakeEventName:"viewmodel_sync_setup_handshake"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8966)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/sharing",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(232)],o=i.dj.d(n,(function(e,t,i){return e(null,{_CLASSIFIER:"FEvalSimulinkOnline",constructor:function(e){this._CLASSIFIER=e,i.registerResponseHandler("FEvalResponse:"+this._CLASSIFIER,this._handleEvalResponse,this),i.registerFaultHandler("FEval:"+this._CLASSIFIER,this._handleEvalError,this)},feval:function(e,n,o){var r=new t;return i.sendMessage({FEval:{function:e,dequeMode:"ppe",arguments:n,nargout:o}},r,this._CLASSIFIER),r.promise},_handleEvalError:function(e,t){t.reject(e),this._cleanUp()},_handleEvalResponse:function(e,t){var i=e,n=t;if(1===i.length)i[0].isError?n.reject(i):n.resolve(i);else{var o="Error: Expected 1 result message back, received: "+e.length;n.reject(o)}this._cleanUp()},_cleanUp:function(){i.deregisterResponseHandler("FEvalResponse:"+this._CLASSIFIER),i.deregisterFaultHandler("FEval:"+this._CLASSIFIER)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{dirty:!1,dirtyhilite:!0,_setDirtyAttr:function(e){if(this.dirty!==e){this._set("dirty",e);var t=!0,i=this.inputNode;this.checkable&&(t=!1,i=this.checkBoxRadioIconNode),i&&(this.dirtyhilite?(i.classList.add("dasDirtyHilite"),t&&i.parentNode&&i.parentNode.classList.add("dasDirtyHilite"),e?(i.classList.add("dasDirtyState"),t&&i.parentNode&&i.parentNode.classList.add("dasDirtyState")):(i.classList.remove("dasDirtyState"),t&&i.parentNode&&i.parentNode.classList.remove("dasDirtyState"))):(i.classList.remove("dasDirtyHilite"),t&&i.parentNode&&i.parentNode.classList.remove("dasDirtyHilite")))}},_setDirtyhiliteAttr:function(e){this.dirtyhilite!==e&&(this._set("dirtyhilite",e),this.dirty=!this.dirty,this.set("dirty",!this.dirty))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(9058)],o=i.dj.d(n,(function(e){var t;return{getActionService:function(i){return t||(t=new e(i))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{importFiles:"IMPORTFILES",importFolder:"IMPORTFOLDER",runSuite:"RUNSUITE",runTest:"RUNTEST",rerunFailed:"RERUNFAILEDTESTS",debugTest:"DEBUGTEST",openFile:"OPENFILE",openTest:"OPENTEST"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({ENTER:13,SPACE:32,TAB:9,SHIFT:16,ESCAPE:27})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({HOVER:"hover",FOCUS:"focus",CLICK:"click"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(224),i(212),i(221),i(410),i(227),i(211),i(213),i(899),i(206),i(245),i(236),i(1133),i(209),i(2728),i(9084),i(9085),i(9086),i(1263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){"use strict";var y=!1!==b("TestClient","SystemTest",!1),C=m===g.MODE_DEBUG,T=!y&&!C,E="true"===b("debugInit","debugInit").toLowerCase(),S="waitingForDebuggerOverlay",w=!1;function I(e,i,n){T||(n&&n.length>0&&(i=t.replace(i,n)),f[e](i))}var A={log:{info:function(e){var t;if(arguments.length>1){t=new Array(arguments.length-1);for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i]}I("info",e,t)},debug:function(e){var t;if(arguments.length>1){t=new Array(arguments.length-1);for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i]}I("debug",e,t)},warn:function(e){var t;if(arguments.length>1){t=new Array(arguments.length-1);for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i]}I("warn",e,t)},error:function(e){var t;if(arguments.length>1){t=new Array(arguments.length-1);for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i]}I("error",e,t)}},dehole:function(e,t){return arguments.length>1?(Array.isArray(t)||(t=Array.prototype.slice.call(arguments,1)),h.substitute.call(h,e,t)):e},pseudoSetFromStrings:function(){var e={};return i.forEach(arguments,(function(t){if("string"!=typeof t)throw new Error("pseudoSetFromStrings only supports homogeneous string arrays");e[t]=!0})),e},isObject:function(e){return e===Object(e)&&!(e instanceof Array)},hasAllProperties:function(e){for(var t=1;t<arguments.length;t++)if(!e.hasOwnProperty(arguments[t]))return!1;return!0},assert:function(e,i){if(T||e)return!0;if(!T&&!e)return!1;var n="Assertion failed";if(arguments.length>2){for(var o=new Array(arguments.length-2),r=2;r<arguments.length;r++)o[r-2]=arguments[r];n+=":\n\t"+t.replace(i,o)}else 2===arguments.length&&(n=i);throw new Error(n)},withAbstractMethods:function(e,t){return Object.keys(t).forEach((function(i){"function"==typeof t[i]&&"constructor"!==i&&"postscript"!==i&&(t[i]=A.abstractMethod(e,i))})),t},abstractMethod:function e(i,n,o){var r=t.replace("Method '{0}' from '{1}' not implemented",[n,i]),a=function(){if(!T)throw new Error(r);f.warn(r)};return o?(o[n]=a,{abstractMethod:e}):a},validateAgainstInterface:function(e,i,n){Array.isArray(n)||(n=Array.prototype.slice.call(arguments,2)),n.forEach((function(n){if("function"!=typeof e[n])throw new Error(t.replace("{0} must have a method named '{1}'",[i,n]))}))},toRegexLiteral:function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},instantiate:function(e){var t=new Array(arguments.length);t[0]=null;for(var i=1;i<arguments.length;i++)t[i]=arguments[i];var n=e.bind.apply(e,t);return new n},isReleaseMode:function(){return T},isTestMode:function(){return y},isDebugMode:function(){return C},isPauseBeforeInit:function(){return E&&!w},getGlobalClientConfig:function(e){return t.getObject(e?g.GLOBAL_CLIENT_CONFIG+"."+e:g.GLOBAL_CLIENT_CONFIG)}};function x(e,t){return e.start!==t.start?e.start-t.start:e.end-t.end}return A.pauseBeforeInit=t.hitch(A,(function(e){var i=new n;if(!this.isPauseBeforeInit())return i.resolve(),i.promise;w=!0,e||(e=function(){});var o=_("cef")?15:30,r=Date.now();return function n(){var u=Date.now();try{a.byId(S)&&l.set(S,"display","none"),e()}catch(e){d(),i.reject(e)}var h=Date.now();if(h-u<50){var p=1e3*o-(h-r);if(p>0)return function(e){s.place(t.replace("<div id='{0}' class='mlc-debug-pause-overlay mlc-debug-pause-content'></div>",[S]),document.body),a.byId(S).innerHTML=t.replace("Waiting for {0}, continuing in {1} seconds...",["debugger",c.format(e/1e3,{places:0})]),l.set(S,"display","")}(p),void setTimeout(n,Math.min(p,1e3));if(_("cef"))try{return window.cefclient.sendMessage("openDevTools"),o=6,r=Date.now(),void n()}catch(e){}}d(),i.resolve()}(),i.promise;function d(){s.destroy(S)}})),A.assertInstanceOf=function(e,t,i,n,o){t||(t=e.toString()),n||(n=e.constructor.name),o&&null==e||A.assert("function"==typeof e.isInstanceOf&&e.isInstanceOf(i)||e instanceof i,"'{0}' is not an instance of '{1}'",t,n)},A.assertHasProperties=function(e,t,i){if(i||(i="Object"),Array.isArray(t))for(var n=1;n<t.length;n++)A.assert(Object.prototype.hasOwnProperty.call(e,t[n]),"{0} should have a property named '{1}'",i,t[n]);else A.assert(Object.prototype.hasOwnProperty.call(e,t),"{0} should have a property named '{1}'",i,t)},A.valuesToArray=function(e,t){return(t||Object.keys(e)).map((function(t){return e[t]}))},A.deepFreeze=function(e){return Object.getOwnPropertyNames(e).forEach((function(t){var i=e[t];null!==i&&"object"==typeof i&&Object.freeze(i)})),Object.freeze(e)},A.toHash=function(e,t){t||(t="id");var i=Object.create(null);return e.forEach((function(e){var n=typeof e[t];if(A.assert("string"===n||"number"===n),i[e[t]])throw new Error("Multiple items with id of '"+e[t]+"'");i[e[t]]=e})),i},A.asSet=function(e){var t=Object.create(null);return Array.isArray(e)||(e=Array.prototype.slice.call(arguments)),e.forEach((function(e){t[e]=!0})),t},A.loadGenericScript=function(e){var t=s.create("script",{type:"text/javascript"}),i=u("ie"),o=new n;return d.once(t,i?"readystatechange":"load",(function(){i&&"loaded"!==t.readyState&&"complete"!==t.readyState||o.resolve()})),t.src=e,s.place(t,document.body),o.promise},A.computeClassStyle=function(e,t,i){var n,o=s.create("div",{style:"display:none;"},document.body),r=s.create(i||"div",{className:Array.isArray(e)?e.join(" "):e},o),a=l.getComputedStyle(r);return n=t?Array.isArray(t)?t.reduce((function(e,t){return e[t]=a[t],e}),{}):a[t]:Array.prototype.reduce.call(a,(function(e,t){return e[t]=a[t],e}),{}),s.destroy(o),n},A.safeThrottle=function(e,t,i){var n,o=!1,r=!1,a=p((function(){o=!1,null!=n&&(clearTimeout(n),n=null),r=!0,e.call(i)}),t),s=function(){null!=n&&(clearTimeout(n),n=null),r=!1,a(),r||(n=setTimeout((function(){o||e.call(i)}),t))};return s.clear=function(){o=!0},s},A.animationDebounce=function(e,t){var i,n;return i="function"==typeof window.requestAnimationFrame?function(i){null!=n&&window.cancelAnimationFrame(n),n=window.requestAnimationFrame((function(){n=null,e.apply(t,i)}))}:function(i){n&&(n.cancelled=!0);var o=r((function(){o.cancelled||(n=null,e.apply(t,i))}));n=o},function(){i(arguments.length>0?Array.prototype.slice.call(arguments):[])}},A.deepEquals=function(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("object"===typeof e){if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)){if(e.length===t.length)for(var i=0;i<e.length;i++)if(!A.deepEquals(e[i],t[i]))return!1;return!0}if(null===e||null===t)return null===e!==t===null;var n=e?Object.keys(e):[],o=t?Object.keys(t):[];return A.deepEquals(n,o)&&Object.keys(e).every((function(i){return A.deepEquals(e[i],t[i])}))}},A.stripHtml=function e(t){(e._cachedDiv=e._cachedDiv||document.createElement("div")).innerHTML=t;const i=e._cachedDiv.textContent;return e._cachedDiv.innerHTML="",i},A.addCapturingEventListener=function(e,i,n,o){return"string"==typeof e&&(o=n,n=i,i=e,e=document.body),n=null!=o?t.hitch(o,n):n,e.addEventListener(i,n,!0),{remove:function(){e.removeEventListener(i,n,!0)}}},A.numericSort=function(e,t){return Array.prototype.sort.call(e,t?A.numericSort.descending:A.numericSort.ascending)},A.numericSort.ascending=function(e,t){return e-t},A.numericSort.descending=function(e,t){return t-e},A.trimTextSnippet=function(e,t,i){for(var n,o=/(\r\n|\r|\n)/g,r=0,a=Math.min(e.length,t);null!==(n=o.exec(e));){if(n.index>=t){a=t;break}if(a=n.index,++r>=i)break}return a!==e.length?e.substring(0,a).trim():e},A.setWithPromise=function(e,t,i){var o=new n;if(e.get(t)===i)o.resolve();else var r=e.watch(t,(function(){r.remove(),o.resolve()}));return e.set.apply(e,Array.prototype.slice.call(arguments,1)),o.promise},A.withPrivateSetters=function(e,i){return Array.prototype.forEach.call(i,(function(i){var n=t.replace("{0} has private set acccess",[i]);e[i+"Setter"]=t.hitch(null,(function(){throw new Error(n)}))})),e},A.sortAndMergeIntervals=function(e){return(e||[]).sort(x).reduce((function(e,t){var i=e[e.length-1];return t.start>=0&&t.end>=0&&t.start<=t.end&&(i&&v.prototype.overlaps.call(t,i)?e[e.length-1]=new v(Math.min(i.start,t.start),Math.max(i.end,t.end)):e.push(t)),e}),[])},A}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(206),i(203),i(222),i(2733)],o=i.dj.d(n,(function(e,t,i,n,o){return i([n],{constructor:function(e){this.winId=e.winId,this._registration={listeners:[]}},hasFocus:!1,isVisible:!1,_addWindowListeners:function(){var e=this;this._registration.listeners.push(t(this,this.EVENTS.FOCUSLOST,(function(){e.hasFocus=!1}))),this._registration.listeners.push(t(this,this.EVENTS.FOCUSGAINED,(function(){e.hasFocus=!0}))),this._registration.listeners.push(t(this,this.EVENTS.VISIBILITYCHANGED,(function(t){e.isVisible=t.isVisible}))),this._registration.listeners.push(t(this,this.EVENTS.MATLABWINDOWEXITED,(function(){e._registration.listeners.forEach((function(e){try{e.remove()}catch(e){}}))})))},EVENTS:o.EVENTS,_fakeAsync:function(t){var i=new e,n=t||{};return n.winId=this.winId,i.resolve(n),i.promise},show:function(e){},close:function(e){},bringToFront:function(e){},hide:function(e){},setPosition:function(e){},setResizable:function(e){},setMinSize:function(e){},setMaxSize:function(e){},maximize:function(e){},minimize:function(e){},fullscreen:function(e){},setURL:function(e){},getURL:function(e){},setTitle:function(e){},getPosition:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_HEADER_WRAPPER_CLASS:"import-tool-header-wrapper",_EXCEL_HEADER_CLASS:"excel-header",_HEADER_NAME_CLASS:"header-name",_DATA_TYPE_CLASS:"data-type"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(9164),i(740),i(235)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{pseudoStyleForFirstColumnHeaderCell:"content: ''; position: absolute; width: 3px; left: 32px; background-color: rgb(192, 192, 192); height: 36px;",_updateHeaderStyles:function(){var e=n.getLogicalValue(this.getTableModelProperty("ShowColumnHeaderNumbers"),!0),t=n.getLogicalValue(this.getTableModelProperty("ShowColumnHeaderLabels"),!0),i=this.getTableModelProperty("ShowHeaderIcons"),o="content: ''; position: absolute; width: 3px; left: 32px; background-color: rgb(192, 192, 192); ";if(this.inherited(arguments),this.dataModel){var r="22px;";e&&t?r="36px;":void 0!==i&&(r="30px;"),this.pseudoStyleForFirstColumnHeaderCell=o+"height: "+r,this.styleManager.updateStyleRules("columnHeader",{".row.dataWidth.spacer":"height: "+r}),this.styleManager.updateStyleRules("cornerSpaceHeader",{".inline.row.cornerSpacer.rowHeaderColumn.rowHeadersWrapper.topRowHeaderWrapper":"height: "+r});var a=this._isHorizontalScrollBarShown()?this.scrollbarWidth:0,s=n.getLogicalValue(this.getTableModelProperty("ShowColumnHeaders"),!0)?r:"0px";this.styleManager.updateStyleRules("rows",{".body":"padding-top: "+s+"margin-top: -"+r,".body .rowHeadersWrapper":"padding-bottom: "+a+"px;"})}},_updateCornerSpacerLabel:function(e){var t=this.getTableModelProperty("CornerSpacerTitle");if(void 0!==t){var i=document.createElement("div");n.addToClassList(i,"cornerSpacer rowHeaderColumn topRowHeaderWrapper label");var o=document.createElement("span");o.appendChild(document.createTextNode(t)),i.appendChild(o),e.insertBefore(i,e.firstChild)}else{if(void 0!==e.firstChild.className)if(0!==(e=document.getElementsByClassName("cornerSpacer rowHeaderColumn topRowHeaderWrapper label")).length)for(var r=0;r<e.length;r++)e[r].parentNode.removeChild(e[r].parentNode.firstChild)}},_addHeaderIconCSS:function(e,t){n.addToClassList(t,"icon");var o=i.IconTypeMap.hasOwnProperty(e)?i.IconTypeMap[e]:i.IconTypeMap.object;t.className.match(/iconVariableEditor([a-zA-Z]+)/)?t.className=t.className.replace(/iconVariableEditor([a-zA-Z]+)/,o):n.addToClassList(t,"variableEditorRenderers "+o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(236),i(204),i(235),i(367),i(211),i(276),i(376),i(463),i(1672),i(1031),i(9169),i(210)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e("variableeditor.views.table._HeadersBase",[a,o,l],{_inputBoxIndex:null,_inputBoxLabel:null,labelValue:null,indexValue:null,CHANNEL_DuplicateRowHeader:"ErrorDuplicateRowHeader",CHANNEL_DuplicateColumnHeader:"ErrorDuplicateColumnHeader",HEADER_INDEX_ATTACH_POINT:"headerIndex",HEADER_LABEL_ATTACH_POINT:"headerLabel",HEADER_BREAK_ATTACH_POINT:"lineBreak",constructor:function(e){this.templateString=u,this.editable=!1,e&&(this._allArgs=e,this.init(e))},init:function(e){this._allArgs=i.mixin({},e),this.templateString=e.templateString?e.templateString:u,this.editable=e.editable||!1,this.showLabels=e.showLabels||!1,this.showIndices=!e.showIndices||e.showIndices,this.editOnKeyPress=e.editOnKeyPress||!1,this.editOnSingleClick=e.editOnSingleClick||!1,this.labelValue=e.labelValue?e.labelValue:"",this.indexValue=e.indexValue?e.indexValue:""},setLabelValue:function(e){this._inputBoxLabel.setValue(e),this._inputBoxLabel.setEditValue(e),this._inputBoxLabel.value=e,this.labelValue=e,this._inputBoxLabel.domNode.querySelector("input").setAttribute("value",this._inputBoxLabel.domNode.querySelector("input").value)},setIndexValue:function(e){this._inputBoxIndex.setValue(e),this._inputBoxIndex.value=e,this.indexValue=e},setIndexProperty:function(e){this._inputBoxIndex.index=e,this._inputBoxLabel.index=e},setNodeDisplay:function(e,t){var i=this._getAttachNode(e);if(i){var n=t?"":"none";i.style.display=n}e===this.HEADER_INDEX_ATTACH_POINT?this.showIndices=t:e===this.HEADER_LABEL_ATTACH_POINT&&(this.showLabels=t)},_isValidHeaderName:function(e){return e.length>0},_handleError:function(e){var i=this._inputBoxLabel,o=i._value;i._revert(),e?n.displayErrorMessage(e):n.displayErrorMessage(t.substitute(d.duplicateVariableNames,{varName:"'"+o+"'"}))},postCreate:function(){this._setupInputBoxIndex(),this._setupInputBoxLabel()},_setupInputBoxIndex:function(){var t=this._getAttachNode(this.HEADER_INDEX_ATTACH_POINT);t&&(this._inputBoxIndex=new s({value:this.indexValue,index:parseInt(this.indexValue)-1}),e.safeMixin(this._inputBoxIndex,new c),this._inputBoxIndex.addCSSClasses("NonEditableHeader"),r.place(this._inputBoxIndex.domNode,t,"last"),h.add(this.domNode,"header_"+this.indexValue))},_setupInputBoxLabel:function(){var t=this._getAttachNode(this.HEADER_LABEL_ATTACH_POINT);t&&(this._inputBoxLabel=new s({value:this.labelValue,editable:this.editable,editOnKeyPress:this.editOnKeyPress,editOnSingleClick:this.editOnSingleClick,index:parseInt(this.indexValue)-1}),e.safeMixin(this._inputBoxLabel,new c),this._setEditable(this._inputBoxLabel,this.editable),r.place(this._inputBoxLabel.domNode,t,"last"))},_setEditable:function(e,t){e.setEditable(t),e._commitOnBlur=t,t?(e.setInPlaceEditor(e),e.removeCSSClasses("NonEditableHeader"),e.addCSSClasses("EditableHeader")):(e.setInPlaceEditor(""),e.removeCSSClasses("EditableHeader"),e.addCSSClasses("NonEditableHeader"))},_setReadOnly:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("variableeditor.views.table.BlockSelection",null,{source:"server",selectedRows:[],selectedColumns:[],indexedRows:!1,indexedColumns:!1,constructor:function(e){this.selectedRows=[],this.selectedColumns=[],e?(e.selectedRows&&(this.selectedRows=Array.isArray(e.selectedRows)?e.selectedRows:JSON.parse(e.selectedRows)),e.selectedColumns&&(this.selectedColumns=Array.isArray(e.selectedColumns)?e.selectedColumns:JSON.parse(e.selectedColumns)),e.source&&(this.source=e.source),void 0!==e.indexedRows&&(this.indexedRows=e.indexedRows),void 0!==e.indexedColumns&&(this.indexedColumns=e.indexedColumns)):(this.selectedRows=[],this.selectedColumns=[])},setIndexedRows:function(e){this.indexedRows=e},containsColumn:function(e){return this.selectedColumns.some((function(t){return t.start<=e&&t.end>=e}))},containsRow:function(e){return this.selectedRows.some((function(t){return t.start<=e&&t.end>=e}))},getRowCount:function(){var e=0;return this.selectedRows.forEach((function(t){e=e+t.end-t.start+1})),e},flipRowCount:function(e){this.selectedRows.forEach((function(t){var i=t.end,n=t.start;t.end=e-1-n,t.start=e-1-i}))},getColumnCount:function(){var e=0;return this.selectedColumns.forEach((function(t){e=e+t.end-t.start+1})),e},isEmpty:function(){return 0===this.getColumnCount()||0===this.getRowCount()},containsCell:function(e,t){return this.containsColumn(t)&&this.containsRow(e)},getOverlappingCells:function(e,t,i,n){var o,r,a=[];for(o=e;o<=t;o+=1)for(r=i;r<=n;r+=1)this.containsCell(o,r)&&a.push([o,r]);return a},clone:function(){var e=dojo.clone(this);return e.selectedRows=[],e.selectedColumns=[],this.selectedRows.forEach(dojo.hitch(this,(function(t){e.selectedRows.push({start:t.start,end:t.end})}))),this.selectedColumns.forEach(dojo.hitch(this,(function(t){e.selectedColumns.push({start:t.start,end:t.end})}))),e.source=this.source,e},createSourcedCopy:function(e){var t=this.clone();return t.source=e,t},add:function(e,t,i,n){var o,r;if(e>t&&(o=e,e=t,t=o),i>n&&(o=i,i=n,n=o),this.indexedRows)for(r=e;r<=t;r+=1)this.selectedRows.push({start:r,end:r});else this.selectedRows.push({start:e,end:t});this.selectedColumns.push({start:i,end:n}),this.reconcile()},addCell:function(e,t){this.selectedRows.push({start:e,end:e}),this.selectedColumns.push({start:t,end:t}),this.reconcile()},removeCell:function(e,t){var i=this.containsColumn(t)&&1===this.getColumnCount(),n=this.containsRow(e)&&1===this.getRowCount();i&&!n?this.removeRows(e,e):!i&&n?this.removeColumns(t,t):this.remove(e,e,t,t),this.reconcile()},getLeadCell:function(){return this.isEmpty()?null:[this.selectedRows[this.selectedRows.length-1].end,this.selectedColumns[this.selectedColumns.length-1].end]},getFirstCellFromLastRow:function(){return this.isEmpty()?null:[this.selectedRows[this.selectedRows.length-1].end,this.selectedColumns[this.selectedColumns.length-1].start]},getLastSelectedRow:function(){return this.isEmpty()?-1:this.selectedRows[this.selectedRows.length-1].end},matchingSelection:function(e){if(e.selectedRows.length!==this.selectedRows.length)return!1;if(e.selectedColumns.length!==this.selectedColumns.length)return!1;var t,i;for(t=0;t<this.selectedRows.length;t+=1){if(this.selectedRows[t].start!==e.selectedRows[t].start)return!1;if(this.selectedRows[t].end!==e.selectedRows[t].end)return!1}for(i=0;i<this.selectedColumns.length;i+=1){if(this.selectedColumns[i].start!==e.selectedColumns[i].start)return!1;if(this.selectedColumns[i].end!==e.selectedColumns[i].end)return!1}return!0},removeRows:function(e,t){var i=[],n=[];this.selectedRows.forEach((function(o){e<=o.start&&t>=o.end?i.push(o):e>o.start&&t<o.end?(i.push(o),n.push({start:o.start,end:e-1}),n.push({start:t+1,end:o.end})):e<=o.start&&t>=o.start?o.start=t+1:e<=o.end&&t>=o.end&&(o.end=e-1)})),i.forEach(dojo.hitch(this,(function(e){var t=this.selectedRows.indexOf(e);t>=0&&this.selectedRows.splice(t,1)}))),n.forEach(dojo.hitch(this,(function(e){this.selectedRows.push(e)}))),this.reconcile()},removeColumns:function(e,t){var i=[],n=[];this.selectedColumns.forEach((function(o){e<=o.start&&t>=o.end?i.push(o):e>o.start&&t<o.end?(i.push(o),n.push({start:o.start,end:e-1}),n.push({start:t+1,end:o.end})):e<=o.start&&t>=o.start?o.start=t+1:e<=o.end&&t>=o.end&&(o.end=e-1)})),i.forEach(dojo.hitch(this,(function(e){var t=this.selectedColumns.indexOf(e);t>=0&&this.selectedColumns.splice(t,1)}))),n.forEach(dojo.hitch(this,(function(e){this.selectedColumns.push(e)}))),this.reconcile()},remove:function(e,t,i,n){this.removeRows(e,t),this.removeColumns(i,n)},_isInterectingRows:function(e){var t,i=this.selectedRows.slice();i.sort((function(e,t){return e.start-t.start}));var n=1;for(e&&(n=0),t=1;t<i.length;t+=1)if(i[t].start<=i[t-1].end+n)return!0;return!1},_isInterectingColumns:function(e){var t,i=this.selectedColumns.slice();i.sort((function(e,t){return e.start-t.start}));var n=1;for(e&&(n=0),t=1;t<i.length;t+=1)if(i[t].start<=i[t-1].end+n)return!0;return!1},reconcile:function(){var e,t=this._isInterectingColumns(this.indexedColumns),i=this._isInterectingRows(this.indexedRows);if(t||i){if(i){this.selectedRows.sort(dojo.hitch(this,(function(e,t){return e.start-t.start})));var n=[this.selectedRows[0]];for(e=1;e<this.selectedRows.length;e+=1)!this.indexedRows&&this.selectedRows[e].start<=n[n.length-1].end+1||this.indexedRows&&this.selectedRows[e].start===n[n.length-1].start&&this.selectedRows[e].end===n[n.length-1].end?n[n.length-1].end=Math.max(this.selectedRows[e].end,n[n.length-1].end):n.push(this.selectedRows[e]);this.selectedRows=n}if(t){this.selectedColumns.sort(dojo.hitch(this,(function(e,t){return e.start-t.start})));var o=[this.selectedColumns[0]];for(e=1;e<this.selectedColumns.length;e+=1)this.selectedColumns[e].start<=o[o.length-1].end+1?o[o.length-1].end=this.selectedColumns[e].end>=o[o.length-1].end?this.selectedColumns[e].end:o[o.length-1].end:o.push(this.selectedColumns[e]);this.selectedColumns=o}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(236),i(210),i(206),i(231),i(1692),i(235),i(1031),i(219),i(2742),i(1693)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([a],{ms:c.messageService,CHANNEL_DuplicateColumnHeader:"ErrorDuplicateColumnHeader",subscriptionCallback:null,subscription:null,pauseValueChangedListener:!1,COLUMN_HEADER_CHANNEL:"/VEColumnHeaderName",_createColumnNode:function(e){var t=new u({templateString:d,editable:s.getLogicalValue(this.getTableModelProperty("EditableColumnHeaderLabels"),!1),showLabels:s.getLogicalValue(this.getTableModelProperty("ShowColumnHeaderLabels"),!0),showIndices:s.getLogicalValue(this.getTableModelProperty("ShowColumnHeaderNumbers"),!0)||s.getLogicalValue(this.getTableModelProperty("ShowCustomColumnHeaderNumbers"),!1),labelValue:void 0!==e.label?e.label:void 0===this.getColumnModelProperty(parseInt(e.labelIndex)-1,"HeaderName")?"":this.getColumnModelProperty(parseInt(e.labelIndex)-1,"HeaderName"),indexValue:e.labelIndex});return e.icon&&this.getTableModelProperty("ShowHeaderIcons")&&this._addHeaderIconCSS(e.icon,t._inputBoxLabel.domNode),t.setNodeDisplay(t.HEADER_INDEX_ATTACH_POINT,t.showIndices),t.setNodeDisplay(t.HEADER_LABEL_ATTACH_POINT,t.showLabels),t._inputBoxLabel.isEditable()&&this._attachColumnHeaderListeners(t),t.startup(),t.domNode},_attachColumnHeaderListeners:function(e){var i=this;e._inputBoxLabel.addEventListener("valueChanged",t.hitch(i,"_columnValueChanged",e)),e._inputBoxLabel.addEventListener("mousedown",t.hitch(i,"_columnMouseDown")),e._inputBoxLabel.addEventListener("mouseup",t.hitch(i,"_columnMouseUp")),e._inputBoxLabel.addEventListener("click",t.hitch(i,"_columnMouseClick")),e._inputBoxLabel.addEventListener("mousemove",t.hitch(i,"_columnMouseMove",e._inputBoxLabel)),e._inputBoxLabel.addEventListener("editingStarted",t.hitch(i,"_columnEditingStarted")),e._inputBoxLabel.addEventListener("editingStopped",t.hitch(i,"_columnEditingStopped")),this.own(o(e._inputBoxLabel._renderer.domNode,"keydown",t.hitch(i,(function(t){e._inputBoxLabel.isEditing()||13===t.keyCode||i._onTableHeaderKeyDown(t)}))))},_removeColumnHeaderListeners:function(e){},_updateColumnNode:function(e,t){var i=r.getEnclosingWidget(e);n.replace(e,"header_"+t.labelIndex,"header_"+i.indexValue),this._updateColumnNumber(i,t),this._updateColumnLabel(i,t),t.icon&&this.getTableModelProperty("ShowHeaderIcons")&&this._addHeaderIconCSS(t.icon,i._inputBoxLabel.domNode);var o=this._getColumnDataTag(t);e.dataset.columnHeaderName=o},_updateColumnNumber:function(e,t){t.labelIndex&&(s.getLogicalValue(this.getTableModelProperty("ShowColumnHeaderNumbers"),!0)||s.getLogicalValue(this.getTableModelProperty("ShowCustomColumnHeaderNumbers"),!1))?(e.setIndexProperty(parseInt(t.labelIndex)-1),this.pauseValueChangedListener=!0,e.setIndexValue(t.labelIndex),e.setNodeDisplay(e.HEADER_INDEX_ATTACH_POINT,!0),this.pauseValueChangedListener=!1,t.label&&s.getLogicalValue(this.getTableModelProperty("ShowColumnHeaderLabels"),!0)?e.setNodeDisplay(e.HEADER_BREAK_ATTACH_POINT,!0):e.setNodeDisplay(e.HEADER_BREAK_ATTACH_POINT,!1)):(e.setNodeDisplay(e.HEADER_INDEX_ATTACH_POINT,!1),e.setNodeDisplay(e.HEADER_BREAK_ATTACH_POINT,!1))},_updateColumnLabel:function(e,t){t.label&&s.getLogicalValue(this.getTableModelProperty("ShowColumnHeaderLabels"),!0)?(this._updateHeaderEditablity(e),this.pauseValueChangedListener=!0,e.setLabelValue(t.label),e.setNodeDisplay(e.HEADER_LABEL_ATTACH_POINT,!0),this.pauseValueChangedListener=!1):(e.setNodeDisplay(e.HEADER_LABEL_ATTACH_POINT,!1),e.setNodeDisplay(e.HEADER_BREAK_ATTACH_POINT,!1))},_updateHeaderEditablity:function(e){e._inputBoxLabel.isEditable()!==s.getLogicalValue(this.getTableModelProperty("EditableColumnHeaderLabels"),!1)&&(e._setEditable(e._inputBoxLabel,s.getLogicalValue(this.getTableModelProperty("EditableColumnHeaderLabels"),!1)),e._inputBoxLabel.isEditable()?this._attachColumnHeaderListeners(e):this._removeColumnHeaderListeners(e))},_getColumnDataTag:function(e){return e.label},_columnValueChanged:function(e,t){if(!0!==this.pauseValueChangedListener){this._isValidColumnHeaderName(e,t.data.newValue)&&this.setColumnModelProperty(e._inputBoxLabel.index,"HeaderName",t.data.newValue)}},_handleColumnHeaderError:function(e,t){var i=r.getEnclosingWidget(e.domNode.parentElement);this.setColumnModelProperty(e.index,"HeaderName",e._originalValue),i&&i._handleError(t)},_isValidHeaderSyntax:function(e){return/^[a-zA-Z][a-zA-Z0-9_]*$/.test(e)},_isValidColumnHeaderName:function(e,t){var n=e._inputBoxLabel,o=this.getTableModelProperty("ShowHeaderIcons");return!!(t.length>0&&t.length<=64&&(!o||e._isValidHeaderName(t)&&this._isValidHeaderSyntax(t)))||(n.cancelEditing(n),s.displayErrorMessage(i.substitute(l.invalidHeaderName,{varName:"'"+t+"'"})),!1)},_columnMouseDown:function(e){this._onColumnMouseDown(e.data),this._onHeaderColumnMouseDown(e.data,!1)},_columnMouseUp:function(e){this._onHeaderColumnMouseUp(e.data),this._onWindowMouseUp(e.data,!1),void 0!==this._resizingColumn&&this._onColumnMouseUp(e.data),e.data.stopPropagation()},_columnMouseClick:function(e){this._onHeaderClick(e.data),e.data.stopPropagation()},_columnMouseMove:function(e,t){void 0!==this._resizingColumn&&this._onColumnMouseMove(t.data),void 0!==this._selectingColumn&&(e.isEditing()?this._onColumnHeaderSelection(t.data,!1):this._onColumnHeaderSelection(t.data))},_columnEditingStarted:function(e){this.mouseDownColumnHandler.pause()},_columnEditingStopped:function(e){this.mouseDownColumnHandler.resume()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(240),i(245),i(204),i(227),i(213),i(211),i(302)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l={},c=1,d=t._scopeName+"attrid";i.add("dom-textContent",(function(e,t,i){return"textContent"in i})),e.names={class:"className",for:"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"},e.get=function(t,n){t=o.byId(t);var r=n.toLowerCase(),a=e.names[r]||n;return"textContent"!=a||i("dom-textContent")?t[a]:function e(t){for(var i,n="",o=t.childNodes,r=0;i=o[r];r++)8!=i.nodeType&&(1==i.nodeType?n+=e(i):n+=i.nodeValue);return n}(t)},e.set=function(t,u,h){t=o.byId(t);var p=arguments.length;if(2==p&&"string"!=typeof u){for(var f in u)e.set(t,f,u[f]);return t}var g=u.toLowerCase(),m=e.names[g]||u;if("style"==m&&"string"!=typeof h)return r.set(t,h),t;if("innerHTML"==m)return i("ie")&&t.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}?(a.empty(t),t.appendChild(a.toDom(h,t.ownerDocument))):t[m]=h,t;if("textContent"==m&&!i("dom-textContent"))return a.empty(t),t.appendChild(t.ownerDocument.createTextNode(h)),t;if(n.isFunction(h)){var _=t[d];_||(_=c++,t[d]=_),l[_]||(l[_]={});var v=l[_][m];if(v)s.disconnect(v);else try{delete t[m]}catch(e){}return h?l[_][m]=s.connect(t,m,h):t[m]=null,t}return t[m]=h,t}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){const e={DEVELOPMENT:"DEVELOPMENT",PRODUCTION:"PRODUCTION"};return Object.freeze(e),e}),e,t),e.exports=o},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__.dj.m(module),__webpack_require__(1266),__webpack_require__(1033),__webpack_require__(240),__webpack_require__(224),__webpack_require__(204),__webpack_require__(206),__webpack_require__(227),__webpack_require__(211),__webpack_require__(221),__webpack_require__(242)],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(module,watch,util,kernel,array,lang,on,dom,domConstruct,has,win){has.add("script-readystatechange",(function(e,t){return void 0!==t.createElement("script").onreadystatechange&&(void 0===e.opera||"[object Opera]"!==e.opera.toString())}));var mid=module.id.replace(/[\/\.\-]/g,"_"),counter=0,loadEvent=has("script-readystatechange")?"readystatechange":"load",readyRegExp=/complete|loaded/,callbacks=kernel.global[mid+"_callbacks"]={},deadScripts=[];function attach(e,t,i){var n=i||win.doc,o=n.createElement("script");return o.type="text/javascript",o.src=t,o.id=e,o.async=!0,o.charset="utf-8",n.getElementsByTagName("head")[0].appendChild(o)}function remove(e,t,i){domConstruct.destroy(dom.byId(e,t)),callbacks[e]&&(i?callbacks[e]=function(){delete callbacks[e]}:delete callbacks[e])}function _addDeadScript(e){var t=e.response.options,i=t.ioArgs?t.ioArgs.frameDoc:t.frameDoc;deadScripts.push({id:e.id,frameDoc:i}),t.ioArgs&&(t.ioArgs.frameDoc=null),t.frameDoc=null}function canceler(e,t){e.canDelete&&script._remove(e.id,t.options.frameDoc,!0)}function isValid(e){return deadScripts&&deadScripts.length&&(array.forEach(deadScripts,(function(e){script._remove(e.id,e.frameDoc),e.frameDoc=null})),deadScripts=[]),!e.options.jsonp||!e.data}function isReadyScript(e){return!!this.scriptLoaded}function isReadyCheckString(response){var checkString=response.options.checkString;return checkString&&eval("typeof("+checkString+') !== "undefined"')}function handleResponse(e,t){this.canDelete&&_addDeadScript(this),t?this.reject(t):this.resolve(e)}function script(e,t,i){var n=util.parseArgs(e,util.deepCopy({},t));e=n.url,t=n.options;var o=util.deferred(n,canceler,isValid,t.jsonp?null:t.checkString?isReadyCheckString:isReadyScript,handleResponse);(lang.mixin(o,{id:mid+counter++,canDelete:!1}),t.jsonp)&&(new RegExp("[?&]"+t.jsonp+"=").test(e)||(e+=(~e.indexOf("?")?"&":"?")+t.jsonp+"="+(t.frameDoc?"parent.":"")+mid+"_callbacks."+o.id),o.canDelete=!0,callbacks[o.id]=function(e){n.data=e,o.handleResponse(n)});if(util.notify&&util.notify.emit("send",n,o.promise.cancel),!t.canAttach||t.canAttach(o)){var r=script._attach(o.id,e,t.frameDoc);if(!t.jsonp&&!t.checkString)var a=on(r,loadEvent,(function(e){("load"===e.type||readyRegExp.test(r.readyState))&&(a.remove(),o.scriptLoaded=e)}))}return on.once(r,"error",(function(e){o.reject(e),script._remove(o.id,t.frameDoc,!0)})),watch(o),i?o:o.promise}return script.get=script,script._attach=attach,script._remove=remove,script._callbacksProperty=mid+"_callbacks",script}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},function(e,t,i){var n,o;n=[i(242),i(203),i(206),i(223),i(214)],o=i.dj.d(n,(function(e,t,i,n,o){function r(t){var o=t||e.body();i(o,"keydown",(function(e){var t=e.target;e.keyCode===n.BACKSPACE&&"INPUT"!==t.tagName.toUpperCase()&&"TEXTAREA"!==t.tagName.toUpperCase()&&e.preventDefault()}))}var a=t([],{constructor:function(){o.after(this,"postCreate",(function(){r(this.domNode)}))}});return a.disableBackspaceOnNonEditableFields=function(e){r(e)},a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(217),i(204),i(605),i(245),i(242)],o=i.dj.d(n,(function(e,t,i,n,o){var r=o.doc.documentElement,a=n("ie"),s=n("trident"),l=n("opera"),c=Math.floor,d=n("ff"),u=e.boxModel.replace(/-/,""),h={dj_quirks:n("quirks"),dj_opera:l,dj_khtml:n("khtml"),dj_webkit:n("webkit"),dj_safari:n("safari"),dj_chrome:n("chrome"),dj_edge:n("edge"),dj_gecko:n("mozilla"),dj_ios:n("ios"),dj_android:n("android")};a&&(h.dj_ie=!0,h["dj_ie"+c(a)]=!0,h.dj_iequirks=n("quirks")),s&&(h.dj_trident=!0,h["dj_trident"+c(s)]=!0),d&&(h["dj_ff"+c(d)]=!0),h["dj_"+u]=!0;var p="";for(var f in h)h[f]&&(p+=f+" ");return r.className=t.trim(r.className+" "+p),i((function(){if(!e.isBodyLtr()){var i="dj_rtl dijitRtl "+p.replace(/ /g,"-rtl ");r.className=t.trim(r.className+" "+i+"dj_rtl dijitRtl "+p.replace(/ /g,"-rtl "))}})),n}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){this.org=this.org||{};var e=this.org;return e.cometd={},e.cometd.JSON={},e.cometd.JSON.toJSON=e.cometd.JSON.fromJSON=function(e){throw"Abstract"},e.cometd.Utils={},e.cometd.Utils.isString=function(e){return null!=e&&("string"==typeof e||e instanceof String)},e.cometd.Utils.isArray=function(e){return null!=e&&e instanceof Array},e.cometd.Utils.inArray=function(e,t){for(var i=0;i<t.length;++i)if(e===t[i])return i;return-1},e.cometd.Utils.setTimeout=function(e,t,i){return window.setTimeout((function(){try{t()}catch(i){e._debug("Exception invoking timed function",t,i)}}),i)},e.cometd.Utils.clearTimeout=function(e){window.clearTimeout(e)},e.cometd.TransportRegistry=function(){var e=[],t={};this.getTransportTypes=function(){return e.slice(0)},this.findTransportTypes=function(i,n,o){for(var r=[],a=0;a<e.length;++a){var s=e[a];!0===t[s].accept(i,n,o)&&r.push(s)}return r},this.negotiateTransport=function(i,n,o,r){for(var a=0;a<e.length;++a)for(var s=e[a],l=0;l<i.length;++l)if(s===i[l]){var c=t[s];if(!0===c.accept(n,o,r))return c}return null},this.add=function(i,n,o){for(var r=!1,a=0;a<e.length;++a)if(e[a]===i){r=!0;break}return r||("number"!=typeof o?e.push(i):e.splice(o,0,i),t[i]=n),!r},this.find=function(i){for(var n=0;n<e.length;++n)if(e[n]===i)return t[i];return null},this.remove=function(i){for(var n=0;n<e.length;++n)if(e[n]===i){e.splice(n,1);var o=t[i];return delete t[i],o}return null},this.clear=function(){e=[],t={}},this.reset=function(){for(var i=0;i<e.length;++i)t[e[i]].reset()}},e.cometd.Transport=function(){var t,i;this.registered=function(e,n){t=e,i=n},this.unregistered=function(){t=null,i=null},this._debug=function(){i._debug.apply(i,arguments)},this._mixin=function(){return i._mixin.apply(i,arguments)},this.getConfiguration=function(){return i.getConfiguration()},this.getAdvice=function(){return i.getAdvice()},this.setTimeout=function(t,n){return e.cometd.Utils.setTimeout(i,t,n)},this.clearTimeout=function(t){e.cometd.Utils.clearTimeout(t)},this.convertToMessages=function(t){if(e.cometd.Utils.isString(t))try{return e.cometd.JSON.fromJSON(t)}catch(e){throw this._debug("Could not convert to JSON the following string",'"'+t+'"'),e}if(e.cometd.Utils.isArray(t))return t;if(null==t)return[];if(t instanceof Object)return[t];throw"Conversion Error "+t+", typeof "+typeof t},this.accept=function(e,t,i){throw"Abstract"},this.getType=function(){return t},this.send=function(e,t){throw"Abstract"},this.reset=function(){this._debug("Transport",t,"reset")},this.abort=function(){this._debug("Transport",t,"aborted")},this.toString=function(){return this.getType()}},e.cometd.Transport.derive=function(e){function t(){}return t.prototype=e,new t},e.cometd.RequestTransport=function(){var t=new e.cometd.Transport,i=e.cometd.Transport.derive(t),n=0,o=null,r=[],a=[];function s(e){for(;a.length>0;){var t=a[0],i=t[0],n=t[1];if(i.url!==e.url||i.sync!==e.sync)break;a.shift(),e.messages=e.messages.concat(i.messages),this._debug("Coalesced",i.messages.length,"messages from request",n.id)}}function l(e,t){if(this.transportSend(e,t),t.expired=!1,!e.sync){var i=this.getConfiguration().maxNetworkDelay,n=i;!0===t.metaConnect&&(n+=this.getAdvice().timeout),this._debug("Transport",this.getType(),"waiting at most",n,"ms for the response, maxNetworkDelay",i);var o=this;t.timeout=this.setTimeout((function(){t.expired=!0,t.xhr&&t.xhr.abort();var i="Request "+t.id+" of transport "+o.getType()+" exceeded "+n+" ms max network delay";o._debug(i),o.complete(t,!1,t.metaConnect),e.onFailure(t.xhr,e.messages,"timeout",i)}),n)}}function c(e){var t=++n,i={id:t,metaConnect:!1};r.length<this.getConfiguration().maxConnections-1?(r.push(i),l.call(this,e,i)):(this._debug("Transport",this.getType(),"queueing request",t,"envelope",e),a.push([e,i]))}function d(e){var t=e.id;if(this._debug("Transport",this.getType(),"metaConnect complete, request",t),null!==o&&o.id!==t)throw"Longpoll request mismatch, completing request "+t;o=null}function u(t,i){var n=e.cometd.Utils.inArray(t,r);if(n>=0&&r.splice(n,1),a.length>0){var o=a.shift(),l=o[0],d=o[1];if(this._debug("Transport dequeued request",d.id),i)this.getConfiguration().autoBatch&&s.call(this,l),c.call(this,l),this._debug("Transport completed request",t.id,l);else{var u=this;this.setTimeout((function(){u.complete(d,!1,d.metaConnect),l.onFailure(d.xhr,l.messages,"error","Previous request failed")}),0)}}}function h(e){if(null!==o)throw"Concurrent metaConnect requests not allowed, request id="+o.id+" not yet completed";var t=++n;this._debug("Transport",this.getType(),"metaConnect send, request",t,"envelope",e);var i={id:t,metaConnect:!0};l.call(this,e,i),o=i}return i.complete=function(e,t,i){i?d.call(this,e):u.call(this,e,t)},i.transportSend=function(e,t){throw"Abstract"},i.transportSuccess=function(e,t,i){t.expired||(this.clearTimeout(t.timeout),this.complete(t,!0,t.metaConnect),i&&i.length>0?e.onSuccess(i):e.onFailure(t.xhr,e.messages,"Empty HTTP response"))},i.transportFailure=function(e,t,i,n){t.expired||(this.clearTimeout(t.timeout),this.complete(t,!1,t.metaConnect),e.onFailure(t.xhr,e.messages,i,n))},i.send=function(e,t){t?h.call(this,e):c.call(this,e)},i.abort=function(){t.abort();for(var e=0;e<r.length;++e){var i=r[e];this._debug("Aborting request",i),i.xhr&&i.xhr.abort()}o&&(this._debug("Aborting metaConnect request",o),o.xhr&&o.xhr.abort()),this.reset()},i.reset=function(){t.reset(),o=null,r=[],a=[]},i},e.cometd.LongPollingTransport=function(){var t=new e.cometd.RequestTransport,i=e.cometd.Transport.derive(t),n=!0;return i.accept=function(e,t,i){return n||!t},i.xhrSend=function(e){throw"Abstract"},i.transportSend=function(t,i){this._debug("Transport",this.getType(),"sending request",i.id,"envelope",t);var o=this;try{var r=!0;i.xhr=this.xhrSend({transport:this,url:t.url,sync:t.sync,headers:this.getConfiguration().requestHeaders,body:e.cometd.JSON.toJSON(t.messages),onSuccess:function(e){o._debug("Transport",o.getType(),"received response",e);var r=!1;try{var a=o.convertToMessages(e);0===a.length?(n=!1,o.transportFailure(t,i,"no response",null)):(r=!0,o.transportSuccess(t,i,a))}catch(e){o._debug(e),r||(n=!1,o.transportFailure(t,i,"bad response",e))}},onError:function(e,a){n=!1,r?o.setTimeout((function(){o.transportFailure(t,i,e,a)}),0):o.transportFailure(t,i,e,a)}}),r=!1}catch(e){n=!1,this.setTimeout((function(){o.transportFailure(t,i,"error",e)}),0)}},i.reset=function(){t.reset(),n=!0},i},e.cometd.CallbackPollingTransport=function(){var t=new e.cometd.RequestTransport,i=e.cometd.Transport.derive(t);return i.accept=function(e,t,i){return!0},i.jsonpSend=function(e){throw"Abstract"},i.transportSend=function(t,i){for(var n=this,o=0,r=t.messages.length,a=[];r>0;){var s=e.cometd.JSON.toJSON(t.messages.slice(o,o+r)),l=t.url.length+encodeURI(s).length;if(l>2e3){if(1===r){var c="Bayeux message too big ("+l+" bytes, max is 2000) for transport "+this.getType();return void this.setTimeout((function(){n.transportFailure(t,i,"error",c)}),0)}--r}else a.push(r),o+=r,r=t.messages.length-o}var d=t;if(a.length>1){var u=0,h=a[0];this._debug("Transport",this.getType(),"split",t.messages.length,"messages into",a.join(" + ")),(d=this._mixin(!1,{},t)).messages=t.messages.slice(u,h),d.onSuccess=t.onSuccess,d.onFailure=t.onFailure;for(var p=1;p<a.length;++p){var f=this._mixin(!1,{},t);u=h,h+=a[p],f.messages=t.messages.slice(u,h),f.onSuccess=t.onSuccess,f.onFailure=t.onFailure,this.send(f,i.metaConnect)}}this._debug("Transport",this.getType(),"sending request",i.id,"envelope",d);try{var g=!0;this.jsonpSend({transport:this,url:d.url,sync:d.sync,headers:this.getConfiguration().requestHeaders,body:e.cometd.JSON.toJSON(d.messages),onSuccess:function(e){var t=!1;try{var o=n.convertToMessages(e);0===o.length?n.transportFailure(d,i,"no response"):(t=!0,n.transportSuccess(d,i,o))}catch(e){n._debug(e),t||n.transportFailure(d,i,"bad response",e)}},onError:function(e,t){g?n.setTimeout((function(){n.transportFailure(d,i,e,t)}),0):n.transportFailure(d,i,e,t)}}),g=!1}catch(e){this.setTimeout((function(){n.transportFailure(d,i,"error",e)}),0)}},i},e.cometd.WebSocketTransport=function(){var t,i,n=new e.cometd.Transport,o=e.cometd.Transport.derive(n),r=!0,a=!1,s={},l={},c=null,d=!1,u=!1;function h(){var i=t.getURL().replace(/^http/,"ws");this._debug("Transport",this.getType(),"connecting to URL",i);var n=this,o=null,r=t.getConfiguration().connectTimeout;r>0&&(o=this.setTimeout((function(){o=null,d||(n._debug("Transport",n.getType(),"timed out while connecting to URL",i,":",r,"ms"),n.onClose(1002,"Connect Timeout"))}),r));var a=new e.cometd.WebSocket(i),s=function(e){var t=e?e.code:1e3,i=e?e.reason:void 0;n._debug("WebSocket closed",t,"/",i,a),o&&(n.clearTimeout(o),o=null),a===c?n.onClose(t,i):n._debug("Ignoring close event, WebSocket",c)};a.onopen=function(){n._debug("WebSocket opened",a),o&&(n.clearTimeout(o),o=null),a===c?n.onOpen():n._debug("Ignoring open event, WebSocket",c)},a.onclose=s,a.onerror=function(){s({code:1002})},a.onmessage=function(e){n._debug("WebSocket message",e,a),a===c?n.onMessage(e):n._debug("Ignoring message event, WebSocket",c)},c=a,this._debug("Transport",this.getType(),"configured callbacks on",a)}function p(t,i){var n=e.cometd.JSON.toJSON(t.messages);c.send(n),this._debug("Transport",this.getType(),"sent",t,"metaConnect =",i);var o=this.getConfiguration().maxNetworkDelay,r=o;i&&(r+=this.getAdvice().timeout,u=!0);for(var a=[],s=0;s<t.messages.length;++s){var d=t.messages[s];if(d.id){a.push(d.id);var h=c;l[d.id]=this.setTimeout((function(){h&&h.close(1e3,"Timeout")}),r)}}this._debug("Transport",this.getType(),"waiting at most",r,"ms for messages",a,"maxNetworkDelay",o,", timeouts:",l)}function f(e,t){try{null===c?h.call(this):d&&p.call(this,e,t)}catch(t){var i=c;this.setTimeout((function(){e.onFailure(i,e.messages,"error",t)}),0)}}return o.onOpen=function(){for(var e in this._debug("Transport",this.getType(),"opened",c),d=!0,a=!0,this._debug("Sending pending messages",s),s){var t=s[e],n=t[0],o=t[1];i=n.onSuccess,p.call(this,n,o)}},o.onMessage=function(t){this._debug("Transport",this.getType(),"received websocket message",t,c);for(var n=!1,o=this.convertToMessages(t.data),r=[],a=0;a<o.length;++a){var d=o[a];if((/^\/meta\//.test(d.channel)||void 0===d.data)&&d.id){r.push(d.id);var h=l[d.id];h&&(this.clearTimeout(h),delete l[d.id],this._debug("Transport",this.getType(),"removed timeout for message",d.id,", timeouts",l))}"/meta/connect"===d.channel&&(u=!1),"/meta/disconnect"!==d.channel||u||(n=!0)}for(var p=!1,f=0;f<r.length;++f){var g=r[f];for(var m in s){var _=m.split(","),v=e.cometd.Utils.inArray(g,_);if(v>=0){p=!0,_.splice(v,1);var b=s[m][0],y=s[m][1];delete s[m],_.length>0&&(s[_.join(",")]=[b,y]);break}}}p&&this._debug("Transport",this.getType(),"removed envelope, envelopes",s),i.call(this,o),n&&c.close(1e3,"Disconnect")},o.onClose=function(e,t){for(var i in this._debug("Transport",this.getType(),"closed",e,t,c),r=a,l)this.clearTimeout(l[i]);for(var n in l={},s){var o=s[n][0];s[n][1]&&(u=!1),o.onFailure(c,o.messages,"closed "+e+"/"+t)}s={},null!==c&&d&&c.close(1e3,"Close"),d=!1,c=null},o.registered=function(e,i){n.registered(e,i),t=i},o.accept=function(i,n,o){return r&&!!e.cometd.WebSocket&&!1!==t.websocketEnabled},o.send=function(e,t){this._debug("Transport",this.getType(),"sending",e,"metaConnect =",t);for(var i=[],n=0;n<e.messages.length;++n){var o=e.messages[n];o.id&&i.push(o.id)}s[i.join(",")]=[e,t],this._debug("Transport",this.getType(),"stored envelope, envelopes",s),f.call(this,e,t)},o.abort=function(){if(n.abort(),null!==c)try{c.close(1001)}catch(e){this._debug(e)}this.reset()},o.reset=function(){n.reset(),null!==c&&d&&c.close(1e3,"Reset"),r=!0,a=!1,l={},s={},c=null,d=!1,i=null},o},e.cometd.Cometd=function(t){var i,n,o,r,a=this,s=t||"default",l=!1,c=new e.cometd.TransportRegistry,d="disconnected",u=0,h=null,p=0,f=[],g=!1,m={},_=0,v=null,b=[],y={},C={},T=!1,E=!1,S={connectTimeout:0,maxConnections:2,backoffIncrement:1e3,maxBackoff:6e4,logLevel:"info",reverseIncomingExtensions:!0,maxNetworkDelay:1e4,requestHeaders:{},appendMessageTypeToURL:!0,autoBatch:!1,advice:{timeout:6e4,interval:0,reconnect:"retry"}};function w(t){return e.cometd.Utils.isString(t)}function I(e){return null!=e&&"function"==typeof e}function A(e,t){if(window.console){var i=window.console[e];I(i)&&i.apply(window.console,t)}}function x(e){if(a._debug("Configuring cometd object with",e),w(e)&&(e={url:e}),e||(e={}),!(S=a._mixin(!1,S,e)).url)throw"Missing required configuration parameter 'url' specifying the Bayeux server URL";var t=/(^https?:\/\/)?(((\[[^\]]+\])|([^:\/\?#]+))(:(\d+))?)?([^\?#]*)(.*)?/.exec(S.url),i=t[2],n=t[8],o=t[9];if(l=a._isCrossDomain(i),S.appendMessageTypeToURL)if(void 0!==o&&o.length>0)a._info("Appending message type to URI "+n+o+" is not supported, disabling 'appendMessageTypeToURL' configuration"),S.appendMessageTypeToURL=!1;else{var r=n.split("/"),s=r.length-1;n.match(/\/$/)&&(s-=1),r[s].indexOf(".")>=0&&(a._info("Appending message type to URI "+n+" is not supported, disabling 'appendMessageTypeToURL' configuration"),S.appendMessageTypeToURL=!1)}}function N(){for(var e in m)for(var t=m[e],i=t.length-1;i>=0;--i){var n=t[i];n&&!n.listener&&(t.splice(i,1),a._debug("Removed subscription",n,"for channel",e))}}function L(e){d!==e&&(a._debug("Status",d,"->",e),d=e)}function D(){return"disconnecting"===d||"disconnected"===d}function M(e,t,i,n,o){try{return t.call(e,n)}catch(e){a._debug("Exception during execution of extension",i,e);var r=a.onExtensionException;if(I(r)){a._debug("Invoking extension exception callback",i,e);try{r.call(a,e,i,o,n)}catch(e){a._info("Exception during execution of exception callback in extension",i,e)}}return n}}function P(e){for(var t=0;t<b.length&&null!=e;++t){var i=b[t],n=i.extension.outgoing;if(I(n)){var o=M(i.extension,n,i.name,e,!0);e=void 0===o?e:o}}return e}function O(e,t){var i=m[e];if(i&&i.length>0)for(var n=i.length-1;n>=0;--n){var o=i[n];try{o.callback.call(o.scope,t)}catch(e){a._debug("Exception during notification",o,t,e);var r=a.onListenerException;if(I(r)){a._debug("Invoking listener exception callback",o,e);try{r.call(a,e,o.handle,o.listener,t)}catch(e){a._info("Exception during execution of listener callback",o,e)}}}}}function R(e,t){O(e,t);for(var i=e.split("/"),n=i.length-1,o=n;o>0;--o){var r=i.slice(0,o).join("/")+"/*";o===n&&O(r,t),O(r+="*",t)}}function k(){null!==v&&e.cometd.Utils.clearTimeout(v),v=null}function F(t){k();var i=y.interval+_;a._debug("Function scheduled in",i,"ms, interval =",y.interval,"backoff =",_,t),v=e.cometd.Utils.setTimeout(a,t,i)}function B(e,t,n,s){for(var l=0;l<t.length;++l){var c=t[l];c.id=""+ ++u,h&&(c.clientId=h);var d=void 0;I(c._callback)&&(d=c._callback,delete c._callback),null!=(c=P(c))?(t[l]=c,d&&(C[c.id]=d)):t.splice(l--,1)}if(0!==t.length){var p=S.url;S.appendMessageTypeToURL&&(p.match(/\/$/)||(p+="/"),s&&(p+=s));var f={url:p,sync:e,messages:t,onSuccess:function(e){try{o.call(a,e)}catch(e){a._debug("Exception during handling of messages",e)}},onFailure:function(e,t,i,n){try{r.call(a,e,t,i,n)}catch(e){a._debug("Exception during handling of failure",e)}}};a._debug("Send",f),i.send(f,n)}}function H(e){p>0||!0===g?f.push(e):B(!1,[e],!1)}function V(){_=0}function j(){_<S.maxBackoff&&(_+=S.backoffIncrement)}function U(){var e=f;f=[],e.length>0&&B(!1,e,!1)}function W(){L("connecting"),F((function(){!function(){if(!D()){var e={channel:"/meta/connect",connectionType:i.getType()};E||(e.advice={timeout:0}),L("connecting"),a._debug("Connect sent",e),B(!1,[e],!0,"connect"),L("connected")}}()}))}function G(e){e&&(y=a._mixin(!1,{},S.advice,e),a._debug("New advice",y))}function z(e){k(),e&&i.abort(),h=null,L("disconnected"),p=0,V(),f.length>0&&(r.call(a,void 0,f,"error","Disconnected"),f=[])}function q(e){h=null,N(),D()?(c.reset(),G(S.advice)):G(a._mixin(!1,y,{reconnect:"retry"})),p=0,g=!0,n=e;var t=c.findTransportTypes("1.0",l,S.url),o={version:"1.0",minimumVersion:"0.9",channel:"/meta/handshake",supportedConnectionTypes:t,advice:{timeout:y.timeout,interval:y.interval}},r=a._mixin(!1,{},n,o);i=c.negotiateTransport(t,"1.0",l,S.url),a._debug("Initial transport is",i.getType()),L("handshaking"),a._debug("Handshake sent",r),B(!1,[r],!1,"handshake")}function K(){L("handshaking"),g=!0,F((function(){q(n)}))}function X(e){R("/meta/handshake",e),R("/meta/unsuccessful",e),!D()&&"none"!==y.reconnect?(j(),K()):z(!1)}function Y(e,t){X({successful:!1,failure:!0,channel:"/meta/handshake",request:t,xhr:e,advice:{reconnect:"retry",interval:_}})}function Q(e){R("/meta/connect",e),R("/meta/unsuccessful",e);var t=D()?"none":y.reconnect;switch(t){case"retry":W(),j();break;case"handshake":c.reset(),V(),K();break;case"none":z(!1);break;default:throw"Unrecognized advice action"+t}}function $(e,t){E=!1,Q({successful:!1,failure:!0,channel:"/meta/connect",request:t,xhr:e,advice:{reconnect:"retry",interval:_}})}function J(e){z(!0),R("/meta/disconnect",e),R("/meta/unsuccessful",e)}function Z(e,t){J({successful:!1,failure:!0,channel:"/meta/disconnect",request:t,xhr:e,advice:{reconnect:"none",interval:0}})}function ee(e){R("/meta/subscribe",e),R("/meta/unsuccessful",e)}function te(e,t){ee({successful:!1,failure:!0,channel:"/meta/subscribe",request:t,xhr:e,advice:{reconnect:"none",interval:0}})}function ie(e){R("/meta/unsubscribe",e),R("/meta/unsuccessful",e)}function ne(e,t){ie({successful:!1,failure:!0,channel:"/meta/unsubscribe",request:t,xhr:e,advice:{reconnect:"none",interval:0}})}function oe(e){var t=C[e.id];I(t)&&(delete C[e.id],t.call(a,e))}function re(e){oe(e),R("/meta/publish",e),R("/meta/unsuccessful",e)}function ae(e,t){re({successful:!1,failure:!0,channel:t.channel,request:t,xhr:e,advice:{reconnect:"none",interval:0}})}function se(e){if(null!=(e=function(e){for(var t=0;t<b.length&&null!=e;++t){var i=S.reverseIncomingExtensions?b.length-1-t:t,n=b[i],o=n.extension.incoming;if(I(o)){var r=M(n.extension,o,n.name,e,!1);e=void 0===r?e:r}}return e}(e)))switch(G(e.advice),e.channel){case"/meta/handshake":!function(e){if(e.successful){h=e.clientId;var t=c.negotiateTransport(e.supportedConnectionTypes,e.version,l,S.url);if(null===t)throw"Could not negotiate transport with server; client "+c.findTransportTypes(e.version,l,S.url)+", server "+e.supportedConnectionTypes;i!==t&&(a._debug("Transport",i,"->",t),i=t),g=!1,U(),e.reestablish=T,T=!0,R("/meta/handshake",e);var n=D()?"none":y.reconnect;switch(n){case"retry":V(),W();break;case"none":z(!1);break;default:throw"Unrecognized advice action "+n}}else X(e)}(e);break;case"/meta/connect":!function(e){if(E=e.successful){R("/meta/connect",e);var t=D()?"none":y.reconnect;switch(t){case"retry":V(),W();break;case"none":z(!1);break;default:throw"Unrecognized advice action "+t}}else Q(e)}(e);break;case"/meta/disconnect":!function(e){e.successful?(z(!1),R("/meta/disconnect",e)):J(e)}(e);break;case"/meta/subscribe":!function(e){e.successful?R("/meta/subscribe",e):ee(e)}(e);break;case"/meta/unsubscribe":!function(e){e.successful?R("/meta/unsubscribe",e):ie(e)}(e);break;default:!function(e){void 0===e.successful?void 0!==e.data&&null!==e.data?R(e.channel,e):a._debug("Unknown message",e):e.successful?(oe(e),R("/meta/publish",e)):re(e)}(e)}}function le(e){var t=m[e];if(t)for(var i=0;i<t.length;++i)if(t[i])return!0;return!1}function ce(e,t){var i={scope:e,method:t};if(I(e))i.scope=void 0,i.method=e;else if(w(t)){if(!e)throw"Invalid scope "+e;if(i.method=e[t],!I(i.method))throw"Invalid callback "+t+" for scope "+e}else if(!I(t))throw"Invalid callback "+t;return i}function de(e,t,i,n){var o=ce(t,i);a._debug("Adding listener on",e,"with scope",o.scope,"and callback",o.method);var r={channel:e,scope:o.scope,callback:o.method,listener:n},s=m[e];s||((s=[]).subscriptionCounter=0,m[e]=s),s.push(r);var l=s.subscriptionCounter;return s.subscriptionCounter=s.subscriptionCounter+1,r.id=l,r.handle=[e,l],a._debug("Added listener",r,"for channel",e,"having id =",l),r.handle}this._mixin=function(e,t,i){for(var n=t||{},o=2;o<arguments.length;++o){var r=arguments[o];if(null!=r)for(var a in r){var s=r[a],l=n[a];if(s!==t&&void 0!==s)if(e&&"object"==typeof s&&null!==s)if(s instanceof Array)n[a]=this._mixin(e,l instanceof Array?l:[],s);else{var c="object"!=typeof l||l instanceof Array?{}:l;n[a]=this._mixin(e,c,s)}else n[a]=s}}return n},this._warn=function(){A("warn",arguments)},this._info=function(){"warn"!==S.logLevel&&A("info",arguments)},this._debug=function(){"debug"===S.logLevel&&A("debug",arguments)},this._isCrossDomain=function(e){return e&&e!==window.location.host},this.send=H,this.receive=se,o=function(e){a._debug("Received",e);for(var t=0;t<e.length;++t){se(e[t])}},r=function(e,t,i,n){a._debug("handleFailure",e,t,i,n);for(var o=0;o<t.length;++o){var r=t[o];switch(r.channel){case"/meta/handshake":Y(e,r);break;case"/meta/connect":$(e,r);break;case"/meta/disconnect":Z(e,r);break;case"/meta/subscribe":te(e,r);break;case"/meta/unsubscribe":ne(e,r);break;default:ae(e,r)}}},this.registerTransport=function(e,t,i){var n=c.add(e,t,i);return n&&(this._debug("Registered transport",e),I(t.registered)&&t.registered(e,this)),n},this.getTransportTypes=function(){return c.getTransportTypes()},this.unregisterTransport=function(e){var t=c.remove(e);return null!==t&&(this._debug("Unregistered transport",e),I(t.unregistered)&&t.unregistered()),t},this.unregisterTransports=function(){c.clear()},this.findTransport=function(e){return c.find(e)},this.configure=function(e){x.call(this,e)},this.init=function(e,t){this.configure(e),this.handshake(t)},this.handshake=function(e){L("disconnected"),T=!1,q(e)},this.disconnect=function(e,t){if(!D()){void 0===t&&"boolean"!=typeof e&&(t=e,e=!1);var i=this._mixin(!1,{},t,{channel:"/meta/disconnect"});L("disconnecting"),B(!0===e,[i],!1,"disconnect")}},this.startBatch=function(){++p},this.endBatch=function(){!function(){if(--p<0)throw"Calls to startBatch() and endBatch() are not paired";0!==p||D()||g||U()}()},this.batch=function(e,t){var i=ce(e,t);this.startBatch();try{i.method.call(i.scope),this.endBatch()}catch(e){throw this._debug("Exception during execution of batch",e),this.endBatch(),e}},this.addListener=function(e,t,i){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!w(e))throw"Illegal argument type: channel must be a string";return de(e,t,i,!0)},this.removeListener=function(t){if(!e.cometd.Utils.isArray(t))throw"Invalid argument: expected subscription, not "+t;!function(e){var t,i=m[e[0]];i.length>0&&-1!==(t=function(e,t){for(var i=0;i<e.length;){if(e[i].id===t)return i;i+=1}return-1}(i,e[1]))&&(i.splice(t,1),a._debug("Removed listener",e))}(t)},this.clearListeners=function(){m={}},this.subscribe=function(e,t,i,n){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!w(e))throw"Illegal argument type: channel must be a string";if(D())throw"Illegal state: already disconnected";I(t)&&(n=i,i=t,t=void 0);var o=!le(e),r=de(e,t,i,!1);if(o){var a={channel:"/meta/subscribe",subscription:e},s=this._mixin(!1,{},n,a);H(s)}return r},this.unsubscribe=function(e,t){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(D())throw"Illegal state: already disconnected";this.removeListener(e);var i=e[0];if(!le(i)){var n={channel:"/meta/unsubscribe",subscription:i},o=this._mixin(!1,{},t,n);H(o)}},this.clearSubscriptions=function(){N()},this.publish=function(e,t,i,n){if(arguments.length<1)throw"Illegal arguments number: required 1, got "+arguments.length;if(!w(e))throw"Illegal argument type: channel must be a string";if(D())throw"Illegal state: already disconnected";I(t)?(n=t,t=i={}):I(i)&&(n=i,i={});var o={channel:e,data:t,_callback:n},r=this._mixin(!1,{},i,o);H(r)},this.getStatus=function(){return d},this.isDisconnected=D,this.setBackoffIncrement=function(e){S.backoffIncrement=e},this.getBackoffIncrement=function(){return S.backoffIncrement},this.getBackoffPeriod=function(){return _},this.setLogLevel=function(e){S.logLevel=e},this.registerExtension=function(e,t){if(arguments.length<2)throw"Illegal arguments number: required 2, got "+arguments.length;if(!w(e))throw"Illegal argument type: extension name must be a string";for(var i=!1,n=0;n<b.length;++n){var o=b[n];if(o.name===e){i=!0;break}}return i?(this._info("Could not register extension with name",e,"since another extension with the same name already exists"),!1):(b.push({name:e,extension:t}),this._debug("Registered extension",e),I(t.registered)&&t.registered(e,this),!0)},this.unregisterExtension=function(e){if(!w(e))throw"Illegal argument type: extension name must be a string";for(var t=!1,i=0;i<b.length;++i){var n=b[i];if(n.name===e){b.splice(i,1),t=!0,this._debug("Unregistered extension",e);var o=n.extension;I(o.unregistered)&&o.unregistered();break}}return t},this.getExtension=function(e){for(var t=0;t<b.length;++t){var i=b[t];if(i.name===e)return i.extension}return null},this.getName=function(){return s},this.getClientId=function(){return h},this.getURL=function(){return S.url},this.getTransport=function(){return i},this.getConfiguration=function(){return this._mixin(!0,{},S)},this.getAdvice=function(){return this._mixin(!0,{},y)},e.cometd.WebSocket=window.WebSocket,e.cometd.WebSocket||(e.cometd.WebSocket=window.MozWebSocket)},e.cometd}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{UNKNOWN:"unknown",LONG_POLLING:"long-polling",WEBSOCKET:"websocket"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(212),i(209),i(2824),i(1702)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([r],{logSubscriptions:!1,constructor:function(){this.batching=!0,this.typeSerializers=[],this.typeDeserializers={},this.channelSubscriptions={}},setDelegate:function(e){this.inherited("setDelegate",arguments),i.after(this._delegate,"onMessage",t.hitch(this,this.handleMessage),!0)},publish:function(e,t){if(this.isConnected()||"resubscribing"===this._currentState){let i=this._queuePublish(e,this.serialize(t));return this._deferProcessQueue(),i}return this._queuePublish(e,this.serialize(t))},subscribe:function(e,t,i){if(this.logSubscriptions&&o.info("MessageService subscribe: "+e,t,i),this._addHandler(this.channelSubscriptions,e,t,i),this.isConnected()||"resubscribing"===this._currentState){let n=this._queueSubscribe(e,t,i);return this._deferProcessQueue(),n}return this._queueSubscribe(e,t,i)},unsubscribe:function(e,t,i){if(this.logSubscriptions&&o.info("MessageService unsubscribe: "+e,t,i),this._removeHandler(this.channelSubscriptions,e,t,i)){if(this._removeQueuedMatchingSubscribe(e,t,i))return(new n).resolve();if(this.isConnected()||"resubscribing"===this._currentState){let n=this._queueUnsubscribe(e,t,i);return this._deferProcessQueue(),n}return(new n).resolve()}return o.error("Not subscribed to channel: "+e+", can't unsubscribe."),(new n).reject("Not subscribed to channel: "+e+", can't unsubscribe.")},flush:function(){if(!this.isConnected())throw new Error("Can only manually flush the queue when connected.");this._processQueue()},setLatency:function(e){this._delegate&&this._delegate.doSetLatency&&this._delegate.doSetLatency(e)},setErrorRate:function(e){this._delegate&&this._delegate.doSetErrorRate&&this._delegate.doSetErrorRate(e)},getTransport:function(){return this._delegate&&this._delegate.getTransport?this._delegate.getTransport():a.UNKNOWN},_enterDisconnected:function(){this.inherited("_enterDisconnected",arguments),this._queuedOps=[]},_enterConnecting:function(){this.inherited("_enterConnecting",arguments),Object.keys(this.channelSubscriptions).forEach((function(e){e.subscribed=!1}))},_enterConnected:function(){this.inherited("_enterConnected",arguments),this._processQueue()},_enterDisconnecting:function(){this._processQueue(),this.inherited("_enterDisconnecting",arguments)},_queuePublish:function(e,t){let i=new n;return this._queuedOps.push({type:"publish",channel:e,data:t,deferred:i}),i.promise},_queueSubscribe:function(e,t,i){let o=new n;return this._queuedOps.push({type:"subscribe",channel:e,handler:t,scope:i,deferred:o}),o.promise},_removeQueuedMatchingSubscribe:function(e,t,i){let n;for(let o=this._queuedOps.length-1;o>=0;o-=1)if(n=this._queuedOps[o],"subscribe"===n.type&&n.channel===e&&n.handler===t&&n.scope===i){this._queuedOps.splice(o,1);let e=this._delegate&&this._delegate.delegateConnected();return this.isConnected()&&e&&n.deferred.resolve(),!0}},_queueUnsubscribe:function(e,t,i){let o=new n;return this._queuedOps.push({type:"unsubscribe",channel:e,handler:t,scope:i,deferred:o}),o.promise},_processQueue:function(){let e=this._delegate&&this._delegate.delegateConnected();if(!(this.isConnected()&&e)&&"disconnecting"!==this._currentState)return;this._delegate.doStartBatch();let t=this._queuedOps;this._queuedOps=[],t.forEach((function(e){let t;"publish"===e.type?t=this._delegate.doPublish(e.channel,e.data):"subscribe"===e.type?t=this._doSubscribe(e.channel,e.handler,e.scope):"unsubscribe"===e.type&&(t=this._doUnsubscribe(e.channel,e.handler,e.scope)),t.then(e.deferred.resolve,e.deferred.reject)}),this),this._delegate.doEndBatch()},_deferProcessQueue:function(){if(this.batching&&!this._deferredTimeout){let e=this;this._deferredTimeout=setTimeout((function(){e._deferredTimeout=!1,e._processQueue()}),0)}else this.batching||this._processQueue()},_doSubscribe:function(e){if(this.channelSubscriptions[e].subscribed)return(new n).resolve();{let t=this._delegate.doSubscribe(e);return this.channelSubscriptions[e].subscribed=!0,t}},_doUnsubscribe:function(e){return this.channelSubscriptions[e]?(new n).resolve():this._delegate.doUnsubscribe(e)},handleMessage:function(e){let t;if(e&&e.channel){e.data&&(e.data=this.deserialize(e.data));let i=e.channel.split("/");for(t=1;t<=i.length;t+=1)this._callHandlers(this.channelSubscriptions,i.slice(0,t).concat("**").join("/"),e);this._callHandlers(this.channelSubscriptions,i.slice(0,i.length-1).concat("*").join("/"),e),this._callHandlers(this.channelSubscriptions,i.concat("*").join("/"),e),this._callHandlers(this.channelSubscriptions,e.channel,e)}},registerMessageHandler:function(e,t,i){o.error("registerMessageHandler is not supported any more.")},deregisterMessageHandler:function(e,t,i){o.error("deregisterMessageHandler is not supported any more.")},registerTypeSerializer:function(e,t,i){this.typeSerializers.push({typeMatcher:e,type:t,serializer:i})},registerTypeDeserializer:function(e,t){this.typeDeserializers[e]=t},serialize:function(e){return t.isArray(e)?this._serializeArray(e):e instanceof Number||e instanceof Boolean||t.isString(e)?e:this._serializeObject(e)},deserialize:function(e){return t.isArray(e)?this._deserializeArray(e):e instanceof Number||e instanceof Boolean||t.isString(e)?e:this._deserializeObject(e)},_addHandler:function(e,t,i,n){let r,a;n=n||this,"string"!=typeof i||"function"==typeof n[i]?(r=e[t],r||(r=[],e[t]=r),a={channel:t,handler:i,scope:n},r.push(a),r.sort((function(e){return e.exclusive?-1:0}))):o.warn("Not adding invalid handler: "+i)},_removeHandler:function(e,t,i,n){let o;n=n||this,o=e[t];let r=this._getHandlerIndex(o,{handler:i,scope:n});return r>=0&&o.splice(r,1),o&&0!==o.length||delete e[t],r>=0},_callHandlers:function(e,t,i){let n,r;if(e.hasOwnProperty(t))for(n=e[t],r=0;r<n.length;r+=1)try{"string"==typeof n[r].handler?n[r].scope[n[r].handler].call(n[r].scope,i):n[r].handler.call(n[r].scope,i)}catch(e){let n=2;o.error("Error while executing message handler on channel: "+t+", message: "+JSON.stringify(i,null,n)+", error: ",e)}},_getHandlerIndex:function(e,t){if(!e)return-1;let i;for(i=0;i<e.length;i+=1)if(t.handler===e[i].handler&&t.scope===e[i].scope)return i;return-1},_serializeObject:function(e){let t,i;for(i=0;i<this.typeSerializers.length;i+=1){let t=this.typeSerializers[i];if(t.typeMatcher(e))return{__type__:t.type,__value__:t.serializer.call(this,e)}}if(e instanceof window.Image)return e;for(t in e)e.hasOwnProperty(t)&&(e[t]=this.serialize(e[t]));return e},_serializeArray:function(e){let t,i=e.length;for(t=0;t<i;t+=1)e[t]=this.serialize(e[t]);return e},_deserializeObject:function(e){let t;if(null==e)return null;if(e.hasOwnProperty("__type__")&&e.hasOwnProperty("__value__"))try{return this.typeDeserializers[e.__type__].call(this,e.__value__)}catch(t){o.error("Error while trying to deserialize: ",e,"Error: ",t)}for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(e[t]=this.deserialize(e[t]));return e},_deserializeArray:function(e){let t,i=e.length;for(t=0;t<i;t+=1)e[t]=this.deserialize(e[t]);return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(209),i(229),i(219),i(2832),i(1706),i(1707)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c;return(c=e(null,{_MAX_RETRIES:3,constructor:function(e,s,c,d,u){this.namespace=e,this.manager=s,this.messageService=c||r.messageService,l.setupSerializers(this.messageService),this._originator={},this.messageCount=0,this.syncEnabled={},this.isClient=void 0===d||!!d,this.clientId="string"==typeof u?u:o.generateUuid(),this.imageDifferencer=new a(this._originator),this._queue=[],this._onConnectedHandler=i.after(this.messageService,"onConnected",t.hitch(this,this._handleConnected)),this._onNotConnectedHandler=i.after(this.messageService,"onNotConnected",t.hitch(this,this._handleNotConnected)),this.messageService.isConnected()?this._handleConnected():this._handleNotConnected();try{this.addManagerListeners(),this.addMessageSubscriptions()}catch(e){n.error("Not able to create peer synchronizer: "+e)}},remove:function(){this._handleNotConnected(),this.removeMessageSubscriptions(),this.removeManagerListeners(),this._onConnectedHandler.remove(),this._onNotConnectedHandler.remove()},_handleNotConnected:function(){this.log("Not connected"),this._connected=!1,this._handshook=!1},_handleConnected:function(){this.log("Connected"),this._connected=!0,this._startHandshake()},_startHandshake:function(){this.log("Starting handshake");var e=this.createNewMessage();e.clientId=this.clientId,e.syncEnabled=this.manager.isSyncEnabled(),this.publish(this.getChannel("getStatus"),e)},_handshakeComplete:function(){this.log("Handshake complete"),this._handshook=!0,this._processQueue()},_processQueue:function(){var e=this._queue;this._queue=[],this.log("Processing queue",e),e.forEach((function(e){this.publish(e.channel,e.message)}),this)},shouldSync:function(e){return this.manager.isSyncEnabled()&&(!e||e.originator!==this._originator)},isReady:function(){return this._connected&&this._handshook},syncChangedObserver:function(){this.syncEnabled[this.clientId]=this.manager.isSyncEnabled(),this.manager.isSyncEnabled()?(this.addSyncMessageSubscriptions(),this.addSyncManagerListeners(),this._connected&&this._startHandshake()):(this.removeSyncMessageSubscriptions(),this.removeSyncManagerListeners(),this._handshook=!1)},getStatusSubscriber:function(e){this.log("getStatusSubscriber",e);var t=this.createNewMessage();t.syncEnabled=this.manager.isSyncEnabled(),t.clientId=this.clientId,this.publish(this.getChannel("status"),t),this.statusSubscriber(e)},statusSubscriber:function(e){this.log("Status received",e),this.syncEnabled[e.data.clientId]=e.data.syncEnabled,this.isClient&&this.manager.isSyncEnabled()&&this.publish(this.getChannel("getFullUpdate"),this.createNewMessage())},getFullUpdateSubscriber:function(){if(this.log("getFullUpdate requested"),this.manager.isSyncEnabled()){var e=this.createNewMessage();this.manager.hasRoot()&&(e.root=this.convertNodesRecursive(this.manager.getRoot(),0)),this.publish(this.getChannel("fullUpdate"),e),this._handshakeComplete()}},fullUpdateSubscriber:function(e){if(this.log("fullUpdate received",e),this.shouldSync())try{var t=e.data.root;t?(!this.manager.hasRoot()||t.id===this.manager.getRoot().getId()&&t.type===this.manager.getRoot().getType()||this.manager.getRoot().destroy(this._originator),this._handshakeComplete(),this.manager.hasRoot()||this.manager.setRootWithId(t.id,t.type,t.properties,this._originator),this.updateNodeRecursive(this.manager.getRoot(),t)):this.manager.hasRoot()?(this.manager.getRoot().destroy(this._originator),this._handshakeComplete()):this._handshakeComplete()}catch(t){this._error("Error while trying to do a full update.",e,t)}},rootSetObserver:function(e){if(this.addNodeListeners(e.target),this.shouldSync(e)&&this.isReady()){var t=this.createNewMessage();t.target=this.convertNode(e.target),this.publish(this.getChannel(e.type),t)}},rootSetSubscriber:function(e){if(this.log("rootSetSubscriber",e),this.shouldSync())try{var t=e.data.target;this.manager.hasRoot()&&this.manager.getRoot().destroy(this._originator);var i=this.manager.setRootWithId(t.id,t.type,t.properties,this._originator);this.updateNodeRecursive(i,t)}catch(t){this._error("Error setting new root.",e,t)}},rootDestroyedObserver:function(e){if(this.shouldSync(e)&&this.isReady()){var t=this.createNewMessage();t.targetId=e.target.getId(),this.publish(this.getChannel(e.type),t)}},rootDestroyedSubscriber:function(e){if(this.log("rootDestroyedSubscriber",e),this.shouldSync())try{this.manager.hasRoot()&&this.manager.getRoot().getId()===e.data.targetId?this.manager.getRoot().destroy(this._originator):this._error("Tried to unset the wrong root.",e)}catch(t){this._error("Error destroying root.",e,t)}},childMovedObserver:function(e){if(this.shouldSync(e)&&this.isReady()){var t=this.createNewMessage();t.targetId=e.target.getId(),t.oldParentId=e.data.oldParent.getId(),t.oldIndex=e.data.oldIndex,t.newParentId=e.data.newParent.getId(),t.newIndex=e.data.newIndex,this.publish(this.getChannel(e.type),t)}},childMovedSubscriber:function(e){if(this.log("childMovedSubscriber",e),this.shouldSync())try{var t=e.data,i=this.manager.getById(t.targetId),n=this.manager.getById(t.newParentId);this.manager.move(i,n,t.newIndex,this._originator)}catch(t){this._error("Error while trying to move.",e,t)}},childAddedObserver:function(e){var t=e.data.child;if(this.addNodeListeners(t),this.shouldSync(e)&&this.isReady()){var i=this.createNewMessage();i.parentId=e.target.getId(),i.child=this.convertNode(t),i.index=e.data.index,this.publish(this.getChannel("subTreeAdded"),i)}},subTreeAddedSubscriber:function(e){if(this.log("subTreeAddedSubscriber",e),this.shouldSync())try{var t=e.data.child,i=this.manager.getById(e.data.parentId).addChildWithId(t.id,t.type,t.properties,e.data.index,this._originator);this.updateNodeRecursive(i,t)}catch(t){this._error("Error while trying to add a subtree of nodes.",e,t)}},childDetachedObserver:function(e){if(this.shouldSync(e)&&this.isReady()){var t=this.createNewMessage();t.childId=e.data.child.getId(),this.publish(this.getChannel(e.type),t)}},childDetachedSubscriber:function(e){if(this.log("childDetachedSubscriber",e),this.shouldSync())try{this.manager.getById(e.data.childId).detach(this._originator)}catch(t){this._error("Error while trying to detach.",e,t)}},childReattachedObserver:function(e){if(this.shouldSync(e)&&this.isReady()){var t=this.createNewMessage();t.childId=e.data.child.getId(),t.index=e.data.index,this.publish(this.getChannel(e.type),t)}},childReattachedSubscriber:function(e){if(this.log("childReattachedSubscriber",e),this.shouldSync())try{var t=e.data;this.manager.getById(t.childId).reattach(t.index,this._originator)}catch(t){this._error("Error while trying to reattach.",e,t)}},subTreeDestroyedObserver:function(e){var t=e.data.child;if(this.removeNodeListenersRecursive(t),this.shouldSync(e)&&this.isReady()){var i=this.createNewMessage();i.childId=t.getId(),this.publish(this.getChannel(e.type),i)}},subTreeDestroyedSubscriber:function(e){if(this.log("subTreeDestroyedSubscriber",e),this.shouldSync())try{var t=e.data.childId;this.manager.getById(t).destroy(this._originator)}catch(t){this._error("Error while trying to destroy subtree.",e,t)}},propertiesSetObserver:function(e){if(this.shouldSync(e)&&this.isReady()&&!this.isClient){var t,i=[],n=this.createNewMessage();n.targetId=e.target.getId();var r=e.data.newValues,a=e.data.oldValues;for(t in r)if(r.hasOwnProperty(t)&&o.isImageData(r[t])){var s=a[t];if(s&&o.isImageData(s)){i.push(t);var l=this.createNewMessage();l.targetId=e.target.getId(),l.key=t,l.newValue=this.imageDifferencer.computeImageDataDifferences(s,r[t]),this.publish(this.getChannel("imageUpdate"),n)}}i.forEach((function(t){delete e.data.newValues[t]})),n.properties=e.data.newValues,this.publish(this.getChannel(e.type),n)}},propertiesSetSubscriber:function(e){if(this.log("propertiesSetSubscriber",e),this.shouldSync()||this.isClient)try{var t,i=e.data,n=i.targetId,o=this.manager.getById(n);for(t in i.properties)i.properties.hasOwnProperty(t)&&(i.properties[t]instanceof Image?this.imageDifferencer.updatePropertyWithImage(o,t,i.properties[t]):(o.setProperty(t,i.properties[t],this._originator),this._updateNodePagedData(o)))}catch(t){this._error("Error while trying to update properties.",e,t)}},imageUpdateSubscriber:function(e){if(this.log("imageUpdateSubscriber",e),this.shouldSync())try{var t=e.data,i=t.targetId,n=this.manager.getById(i),o=t.newValue,r=t.key;this.imageDifferencer.applyImageDifferences(n,r,o)}catch(t){this._error("Error while trying to update images.",e,t)}},propertiesUnsetObserver:function(e){if(this.shouldSync(e)&&this.isReady()){var t,i=this.createNewMessage();for(t in i.targetId=e.target.getId(),i.keys=[],e.data.oldValues)e.data.oldValues.hasOwnProperty(t)&&i.keys.push(t);this.publish(this.getChannel(e.type),i)}},propertiesUnsetSubscriber:function(e){if(this.log("propertiesUnsetSubscriber",e),this.shouldSync())try{var t=e.data,i=t.targetId;this.manager.getById(i).unsetProperties(t.keys,this._originator)}catch(t){this._error("Error while trying to unset properties.",e,t)}},peerEventObserver:function(e){var t=this.createNewMessage();t.targetId=e.target.getId(),t.data=e.data;var i=this.getChannel(e.type);this.shouldSync(e)&&(this.isReady()?this.publish(i,t):this._queue.push({channel:i,message:t}))},peerEventSubscriber:function(e){if(this.log("peerEventSubscriber",e),this.shouldSync())try{var t=e.data,i=t.targetId,n=this.manager.getById(i);n.dispatchEvent("peerEvent",n,t.data,this._originator)}catch(t){this._error("Error while trying dispatch a peer event.",e,t)}},publish:function(e,t,i){this.log("Publishing message",e,t);var o=this.messageService.publish(e,t),r=this;i=void 0===i?this._MAX_RETRIES:i,o.then(void 0,(function(){i>0?(n.warn("Error sending message (will retry "+i+"): ",e,t),r.publish(e,t,i-1)):r._error("Error sending message, retry didn't work.",e,t)}))},getChannel:function(e){return"/peermodel"+this.namespace+"/"+e},createNewMessage:function(){return this.messageCount+=1,{message:this.messageCount}},log:function(){if(this.namespace===c.debugNamespace){var e=Array.prototype.slice.call(arguments);e=["PeerSynchronizer ("+this.namespace+")"].concat(e),n.info.apply(n,e)}},convertNodesRecursive:function(e,t){var i,n=this.convertNode(e,t),o=[],r=e.getChildren();for(i=0;i<r.length;i+=1)o.push(this.convertNodesRecursive(r[i],i));return n.children=o,n},convertNode:function(e,t){return t=t||0,{id:e.getId(),type:e.getType(),index:t,properties:e.getProperties()}},updateNodeRecursive:function(e,t){for(var i,n,o,r,a,s=e?[e]:[],l=t?[t]:[];l.length>0;){if(e=s.pop(),t=l.pop(),i=this._getFilteredPropertyKeys(t.properties),!e._handled)for(e._handled=!0,n=e.getProperties(),a=(o=Object.keys(n)).length,r=0;r<a;r+=1)i.filtered[o[r]]=n[o[r]];e.replaceProperties(i.filtered,this._originator),this._updateNodePagedData(e,n),this._updateNodeImageProperties(e,t.properties,i.images),this._destroyOldChildren(e,t),this._addNewChildren(e,t),this._updateChildIndices(e,t),s=s.concat(e.getChildren()),t.children&&(l=l.concat(t.children))}},_destroyOldChildren:function(e,t){var i,n=e.getChildren();for(i=0;i<n.length;i+=1)this._dataHasChild(t,n[i])||n[i].destroy(this._originator)},_addNewChildren:function(e,t){var i,n,o;if(t.children)for(i=0;i<t.children.length;i+=1)n=t.children[i],e.hasChild(n.id)||(o=this._getFilteredPropertyKeys(n.properties),e.addChildWithId(n.id,n.type,o.filtered,i,this._originator))},_updateChildIndices:function(e,t){var i,n,o;if(t.children)for(i=0;i<t.children.length;i+=1)n=t.children[i],o=e.getChild(n.id),e.getChildIndex(o)!==i&&this.manager.move(o,e,i,this._originator)},_dataHasChild:function(e,t){var i;if(e.children)for(i=0;i<e.children.length;i+=1)if(e.children[i].id===t.getId()&&e.children[i].type===t.getType())return!0;return!1},_error:function(e,t,i){n.error(e,t,i),this.manager.isSyncEnabled()&&this.isClient&&this.publish(this.getChannel("getFullUpdate"),this.createNewMessage())},_getFilteredPropertyKeys:function(e){var t,i={},n=[];for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(e[t]instanceof Image?n.push(t):i[t]=e[t]);return{filtered:i,images:n}},_updateNodePagedData:function(e,t){var i;for(i in t||(t=e.getProperties()),t)t.hasOwnProperty(i)&&t[i]instanceof s&&t[i].setPeerNode(e,i)},_updateNodeImageProperties:function(e,t,i){var n;for(n=0;n<i.length;n+=1)this.imageDifferencer.updatePropertyWithImage(e,i[n],t[i[n]])},addMessageSubscriptions:function(){this._messageSubscribed||(this._onConnectedSub=i.after(this.messageService,"onReconnected",t.hitch(this,"syncChangedObserver")),this.messageService.subscribe(this.getChannel("getStatus"),"getStatusSubscriber",this),this._messageSubscribed=!0),this.manager.isSyncEnabled()&&this.addSyncMessageSubscriptions()},removeMessageSubscriptions:function(){this._messageSubscribed&&(this._onConnectedSub.remove(),this.messageService.unsubscribe(this.getChannel("getStatus"),"getStatusSubscriber",this),this._messageSubscribed=!1),this.removeSyncMessageSubscriptions()},syncMessageChannels:["status","getFullUpdate","fullUpdate","rootSet","rootDestroyed","childMoved","childDetached","childReattached","subTreeAdded","subTreeDestroyed","propertiesSet","propertiesUnset","imageUpdate","peerEvent"],addSyncMessageSubscriptions:function(){this._syncMessageSubscribed||(this.log("addSyncMessageSubscriptions"),this.syncMessageChannels.forEach((function(e){this.messageService.subscribe(this.getChannel(e),e+"Subscriber",this)}),this),this._syncMessageSubscribed=!0)},removeSyncMessageSubscriptions:function(){this._syncMessageSubscribed&&(this.log("removeSyncMessageSubscriptions"),this.syncMessageChannels.forEach((function(e){this.messageService.unsubscribe(this.getChannel(e),e+"Subscriber",this)}),this),this._syncMessageSubscribed=!1)},addManagerListeners:function(){this._managerListeners||(this.manager.addSyncEventListener("syncChanged","syncChangedObserver",this),this._managerListeners=!0),this.manager.isSyncEnabled()&&this.addSyncManagerListeners()},removeManagerListeners:function(){this._managerListeners&&(this.manager.removeSyncEventListener("syncChanged","syncChangedObserver",this),this._managerListeners=!1),this.removeSyncManagerListeners()},addSyncManagerListeners:function(){this._syncManagerListeners||(this.manager.addSyncEventListener("rootSet","rootSetObserver",this),this.manager.addSyncEventListener("rootDestroyed","rootDestroyedObserver",this),this.manager.addSyncEventListener("childMoved","childMovedObserver",this),this.manager.hasRoot()&&this.addNodeListenersRecursive(this.manager.getRoot()),this._syncManagerListeners=!0)},removeSyncManagerListeners:function(){this._syncManagerListeners&&(this.manager.removeSyncEventListener("rootSet","rootSetObserver",this),this.manager.removeSyncEventListener("rootDestroyed","rootDestroyedObserver",this),this.manager.removeSyncEventListener("childMoved","childMovedObserver",this),this.manager.hasRoot()&&this.removeNodeListenersRecursive(this.manager.getRoot()),this._syncManagerListeners=!1)},nodeEvents:["childAdded","subTreeDestroyed","childDetached","childReattached","propertiesSet","propertiesUnset","peerEvent","partialUpdate"],addNodeListeners:function(e){this.nodeEvents.forEach((function(t){e.addSyncEventListener(t,t+"Observer",this)}),this)},removeNodeListeners:function(e){this.nodeEvents.forEach((function(t){e.removeSyncEventListener(t,t+"Observer",this)}),this)},addNodeListenersRecursive:function(e){var t;this.addNodeListeners(e);var i=e.getChildren();for(t=0;t<i.length;t+=1)this.addNodeListenersRecursive(i[t])},removeNodeListenersRecursive:function(e){var t;this.removeNodeListeners(e);var i=e.getChildren();for(t=0;t<i.length;t+=1)this.removeNodeListenersRecursive(i[t])}})).debugNamespace="/change this to debug something",c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1278)],o=i.dj.d(n,(function(e){var t=function(t){var i;for(e.apply(this),this._successes=0,this._total=t.length,i=0;i<this._total;i+=1)t[i].then(this._callback.bind(this),this.reject.bind(this))};return(t.prototype=new e).constructor=t,t.prototype._callback=function(){this._successes+=1,this._successes===this._total&&this.resolve()},t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){e=e||{},this._peerNode=e.peerNode,this._propertyKey=e.propertyKey,this._partialData=e.partialData||[],this._rowCount=e.rowCount||0,this._columnCount=e.columnCount||0,this._currentStartRow=e.currentStartRow||0,this._currentEndRow=e.currentEndRow||0,this._currentStartCol=e.currentStartCol||0,this._currentEndCol=e.currentEndCol||0,this._queuedOperations=[]},setPeerNode:function(e,t){var i;for(this._peerNode=e,this._propertyKey=t,i=0;i<this._queuedOperations.length;i+=1)this._queuedOperations[i].apply(this);this._queuedOperations=[]},getPartialData:function(){return this._partialData},getRowCount:function(){return this._rowCount},getColumnCount:function(){return this._columnCount},getCurrentStartRow:function(){return this._currentStartRow>=0?this._currentStartRow:0},getCurrentEndRow:function(){return this.getCurrentStartRow()+this._partialData.length},getCurrentStartCol:function(){return this._currentStartCol>=0?this._currentStartCol:0},getCurrentEndCol:function(){return this._partialData.length>0?Array.isArray(this._partialData[0])?this.getCurrentStartCol()+this._partialData[0].length:1:this._currentEndCol>=0?this._currentEndCol:0},changeData:function(e,t,i){if(this._peerNode){var n,o;for(n=0;n<i.length;n+=1){var r=this._partialData[e-this._currentStartRow+n],a=i[n];for(o=0;o<a.length;o+=1)r[t-this._currentStartCol+o]=a[o]}var s=this;setTimeout((function(){s._peerNode.dispatchEvent("peerEvent",s._peerNode,{type:"changeData",key:s._propertyKey,startRow:e,startCol:t,newData:i})}),0)}else this._queuedOperations.push((function(){this.changeData(e,t,i)}))},updatePartialData:function(e,t,i,n){e===this._currentStartRow&&i===this._currentStartCol&&t===this._currentEndRow&&n===this._currentEndCol||(this._peerNode?(void 0!==i&&void 0!==n||(i=-1,n=-1),this._peerNode.dispatchEvent("peerEvent",this._peerNode,{type:"partialUpdate",key:this._propertyKey,startRow:e,startCol:i,endRow:t,endCol:n})):this._queuedOperations.push((function(){this.updatePartialData(e,t,i,n)})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(229),i(1706)],o=i.dj.d(n,(function(e,t){var i={imageSerializer:function(e){return this._serializerCanvas||(this._serializerCanvas=document.createElement("canvas"),this._serializerContext=this._serializerCanvas.getContext("2d")),this._serializerCanvas.width===e.width&&this._serializerCanvas.height===e.height||(this._serializerCanvas.width=e.width,this._serializerCanvas.height=e.height),this._serializerContext.putImageData(e,0,0),this._serializerCanvas.toDataURL()},imageDeserializer:function(e){var t=new Image;return t.src=e,t},pagedDataSerializer:function(e){return{rowCount:e.getRowCount(),columnCount:e.getColumnCount(),currentStartRow:e.getCurrentStartRow(),currentEndRow:e.getCurrentEndRow(),currentStartCol:e.getCurrentStartCol(),currentEndCol:e.getCurrentEndCol(),partialData:e.getPartialData()}},pagedDataDeserializer:function(e){var n=i.messageService.deserialize(e);return new t(n)},setupSerializers:function(n){i.messageService=n,n._peerModelSerializersSetup||(n.registerTypeSerializer(e.isImageData,"image",i.imageSerializer),n.registerTypeDeserializer("image",i.imageDeserializer),n.registerTypeSerializer((function(e){return e instanceof t}),"pagedData",i.pagedDataSerializer),n.registerTypeDeserializer("pagedData",i.pagedDataDeserializer)),n._peerModelSerializersSetup=!0}};return i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(767)],o=i.dj.d(n,(function(e){return{Cut:[e.SYSCTRL,e.X],Copy:[e.SYSCTRL,e.C],Paste:[e.SYSCTRL,e.V],Undo:[e.SYSCTRL,e.Z],Redo:[e.SYSCTRL,e.Y]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(245),i(767),i(2838)],o=i.dj.d(n,(function(e,t,i){var n={};return n[t.SYSCTRL]={macString:"⌘",otherPlatformsString:"Ctrl"},n[t.COMMAND]={macString:"⌘",otherPlatformsString:""},n[t.BACKSPACE]={macString:"⌫",otherPlatformsString:i.BACKSPACE},n[t.TAB]={macString:"⇥",otherPlatformsString:i.TAB},n[t.CLEAR]={macString:"⌧",otherPlatformsString:i.CLEAR},n[t.ENTER]={macString:"⏎",otherPlatformsString:i.ENTER},n[t.SHIFT]={macString:"⇧",otherPlatformsString:i.SHIFT},n[t.CTRL]={macString:"⌃",otherPlatformsString:i.CTRL},n[t.ALT]={macString:"⌥",otherPlatformsString:i.ALT},n[t.PAUSE_BREAK]={macString:i.PAUSE_BREAK,otherPlatformsString:i.PAUSE_BREAK},n[t.CAPS_LOCK]={macString:"⇪",otherPlatformsString:i.CAPS_LOCK},n[t.ESCAPE]={macString:"⎋",otherPlatformsString:i.ESCAPE},n[t.SPACE]={macString:"␣",otherPlatformsString:i.SPACE},n[t.PAGE_UP]={macString:"⏎",otherPlatformsString:i.PAGE_UP},n[t.PAGE_DOWN]={macString:"↑",otherPlatformsString:i.PAGE_DOWN},n[t.END]={macString:"↘",otherPlatformsString:i.END},n[t.HOME]={macString:"↖",otherPlatformsString:i.HOME},n[t.LEFT_ARROW]={macString:"←",otherPlatformsString:i.LEFT},n[t.UP_ARROW]={macString:"↑",otherPlatformsString:i.UP},n[t.RIGHT_ARROW]={macString:"→",otherPlatformsString:i.RIGHT},n[t.DOWN_ARROW]={macString:"↓",otherPlatformsString:i.DOWN},n[t.INSERT]={macString:i.INSERT,otherPlatformsString:i.INSERT},n[t.DELETE]={macString:"⌦",otherPlatformsString:i.DELETE},n[t.LEFT_WINDOWS]={macString:"",otherPlatformsString:i.LEFT+" "+i.WINDOWS},n[t.RIGHT_WINDOWS]={macString:"",otherPlatformsString:i.RIGHT+" "+i.WINDOWS},n[t.NUMPAD_MULTIPLY]={macString:"⌨ *",otherPlatformsString:i.NUM_PAD+" *"},n[t.NUMPAD_PLUS]={macString:"⌨ +",otherPlatformsString:i.NUM_PAD+" +"},n[t.NUMPAD_MINUS]={macString:"⌨ -",otherPlatformsString:i.NUM_PAD+" -"},n[t.NUMPAD_PERIOD]={macString:"⌨ .",otherPlatformsString:i.NUM_PAD+" ."},n[t.NUMPAD_DIVIDE]={macString:"⌨ /",otherPlatformsString:i.NUM_PAD+" /"},n[t.NUM_LOCK]={macString:i.NUM_LOCK,otherPlatformsString:i.NUM_LOCK},n[t.SCROLL_LOCK]={macString:i.SCROLL_LOCK,otherPlatformsString:i.SCROLL_LOCK},n[t.DASH]={macString:"-",otherPlatformsString:"-"},n[t.EQUALS]={macString:"=",otherPlatformsString:"="},n[t.OPEN_BRACKET]={macString:"[",otherPlatformsString:"["},n[t.CLOSE_BRACKET]={macString:"]",otherPlatformsString:"]"},n[t.COMMA]={macString:",",otherPlatformsString:","},n[t.PERIOD]={macString:".",otherPlatformsString:"."},n[t.FORWARD_SLASH]={macString:"/",otherPlatformsString:"/"},n[t.BACKWARD_SLASH]={macString:"\\",otherPlatformsString:"\\"},n[t.SINGLE_QUOTE]={macString:"'",otherPlatformsString:"'"},n[t.SEMI_COLON]={macString:";",otherPlatformsString:";"},n[t.BACK_TICK]={macString:"`",otherPlatformsString:"`"},{getString:function(t){var i=t.map((function(t){var i=n[t],o="";return t>=48&&t<=57||t>=65&&t<=90?o=String.fromCharCode(t):t>=96&&t<=105?o=[o=e("mac")?"⌨":"NumPad",t-96].join(" "):t>=112&&t<=126?o="F"+(t-111):(i?(i.macString||(console.warn("This keyCode "+t+" doesn't have a corresponding 'macString' defined!"),i.macString=""),i.otherPlatformsString||(console.warn("This keyCode "+t+" doesn't have a corresponding 'otherPlatformsString' defined!"),i.otherPlatformsString="")):(console.warn("This keyCode "+t+" doesn't have a corresponding shortcutString map entry defined!"),i={macString:"",otherPlatformsString:""}),o=e("mac")?i.macString:i.otherPlatformsString),o}));return e("mac")?i.join(""):i.join("+")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(245),i(246),i(225),i(204),i(206),i(230),i(606),i(1037)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(a,{constructor:function(e){this._listeners=[],this._keyBindings=e,this._attachListeners(),this.BINDING_EXECUTION_STATUS={BINDING_NOT_FOUND:0,BINDING_EXECUTION_SUCCESSFUL:1,EXECUTION_INVALID_FOR_BINDING:2}},_attachListeners:function(){this.own(r(document,"keydown",o.hitch(this,"onKeyDown")))},_removeListeners:function(){this._listeners.forEach((function(e){e.remove()}))},onKeyDown:function(e){var t=this._lookupBinding(e);return t?this._executeBindingForDomNode(t,e.target,e)?this.BINDING_EXECUTION_STATUS.BINDING_EXECUTION_SUCCESSFUL:this.BINDING_EXECUTION_STATUS.EXECUTION_INVALID_FOR_BINDING:this.BINDING_EXECUTION_STATUS.BINDING_NOT_FOUND},_lookupBinding:function(e){var i=[e.ctrlKey,e.shiftKey,e.altKey,e.metaKey],n=void 0,o=navigator.userAgent.toLowerCase();n=t("mac")?l.Mac:o.indexOf("windows")>-1?l.Windows:o.indexOf("linux")>-1?l.Linux:l.Unspecified;var r=s.generateKeySequenceIdentifier(i,e.keyCode,n),a=this._keyBindings.getBindingFromKeySequenceIdentifier(r);return void 0===a&&(r=s.generateKeySequenceIdentifier(i,e.keyCode,l.Unspecified),a=this._keyBindings.getBindingFromKeySequenceIdentifier(r)),void 0===a?null:a},_executeBindingForDomNode:function(e,t,i){if(!t)return!1;var n=e.getActionInfoForNode(t);return n?(e.executeAction(n.actionId),n.preventDefault&&i.preventDefault(),n.stopPropagation||this._executeBindingForDomNode(e,t.parentElement,i),!0):(this._executeBindingForDomNode(e,t.parentElement,i),!1)},getMatchingSelector:function(e,t){var i;return e.some((function(e){t.matches(e)&&(i=e)})),i}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="focusNode" tabindex="0" role="menu" data-focus="temporary"></div>\n'},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{showIcon:!0,postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwShowIconMixin")},_setShowIconAttr:function(e){if("boolean"!=typeof e)throw new Error("'showIcon' property expects a Boolean!");e?this.domNode.classList.remove("mwHideIcon"):this.domNode.classList.add("mwHideIcon"),this._set("showIcon",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217)],o=i.dj.d(n,(function(e,t){return e(null,{_setWidthAttr:function(){if(this.inherited(arguments),this._started)if("auto"===this.get("width"))this.textNode.style.width="auto";else if("100%"===this.get("width"))this.textNode.style.width="100%";else{var e=t.position(this.checkBoxRadioIconNode),i=t.getMarginExtents(this.textNode),n=e.w+i.l;this.textNode.style.width=this.width-n+"px"}}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="focusNode" aria-checked="false"\n ><div class="mwTextAndDescriptionContainerNode" data-dojo-attach-point="textAndDescriptionContainerNode"\n ><div data-dojo-attach-point="textNode" class=\'mwTextNode\'></div\n ><div data-dojo-attach-point="descriptionNode" class=\'mwDescriptionNode\'></div\n ></div\n ><div class="mwShortcutKeyNode" data-dojo-attach-point="shortcutKeyNode"></div\n ><div class="mwOverlayNode"></div\n></div>\n'},function(e,t,i){var n,o;n=[i(203),i(227),i(210),i(217),i(213),i(386),i(387),i(1045)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([r],{showTitleBar:!0,postCreate:function(){this.inherited(arguments),i.add(this.domNode,"titledPane"),this.showTitleBar&&(this.titleBar||(this.titleBar=new s({id:this.contentWidget.id+"TitledPaneTitleBar",properties:this.contentProperties,title:this.title}),this._createdTitleBar=!0),o.set(this.titleBar.domNode,"position","absolute"),this.addChild(this.titleBar)),o.set(this.contentWidget.domNode,"position","absolute"),this.addChild(this.contentWidget)},destroy:function(){this.removeChild(this.contentWidget),this.showTitleBar&&!this._createdTitleBar&&this.removeChild(this.titleBar),this.inherited(arguments)},resize:function(){this.inherited(arguments),this.contentProperties&&this.contentProperties.updateInnerBounds&&this.contentProperties.updateInnerBounds()},layout:function(){if(this._started&&this.domNode){this.computedStyle||(this.computedStyle=o.getComputedStyle(this.domNode));var e=n.getContentBox(this.domNode,this.computedStyle);if(e&&0!==e.h){if(this.showTitleBar){var t={l:0,t:0,w:e.w,h:s.getPreferredHeight()};n.setMarginBox(this.titleBar.domNode,t),e.t+=t.h,e.h-=t.h}a.setSize(this.contentWidget,e)}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(227),i(228),i(210),i(213),i(221),i(257),i(206),i(248),i(216),i(215),i(344),i(355),i(387),i(2857)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([u,d],{templateString:g,buildRendering:function(){var e=this;this.inherited(arguments),this._setLabelAttr(this.label),this._setToolTipAttr(this.toolTip),this._setEnabledAttr(this.enabled),!this.closable&&this.closeNode&&r.set(this.closeNode,{display:"none"}),i.setSelectable(this.domNode,!1),f.preventFocus(this.domNode,!0),l(this.domNode,c.press,(function(t){t.target===e.closeNode?e.isCloseArmed=!0:e.isArmed=!0,e.releaseConnection=l(e.ownerDocument,c.release,(function(){e.isCloseArmed=!1,e.isArmed=!1,e.releaseConnection.remove()}))})),l(this.domNode,c.release,(function(t){s.isRight(t)||(s.isMiddle(t)?(e.isArmed||e.isCloseArmed)&&e.closable&&!a("ie")&&e.emit(p.CLOSE,e):t.target===e.closeNode?e.isCloseArmed&&e.emit(p.CLOSE,e):e.isArmed&&!1!==e.enabled&&(e.set("checked",!0),!1!==e.properties.isSelectable&&e.properties.set(h.IS_SELECTED,!0)))})),this.checked&&o.add(this.domNode,"checkedTab")},disarm:function(){this.isArmed=!1},_setLabelAttr:function(e){this.labelNode&&(this.labelNode.textContent=e),this._set("label",e)},_getLabelAttr:function(){return this.labelNode?this.labelNode.textContent:""},_setToolTipAttr:function(e){e?n.set(this.domNode,"title",e):n.remove(this.domNode,"title"),this._set("toolTip",e)},_setCheckedAttr:function(e){this.checked===e&&this._started||(this._set("checked",e),e?o.add(this.domNode,"checkedTab"):o.remove(this.domNode,"checkedTab"),"tab"===this.domNode.getAttribute("role")&&this.domNode.setAttribute("aria-selected",e))},_setClosableAttr:function(e){this.closable===e&&this._started||(this._set("closable",e),this.closeNode&&r.set(this.closeNode,{display:e?"inline":"none"}))},_setEnabledAttr:function(e){this.enabled===e&&this._started||(this._set("enabled",e),e?o.remove(this.domNode,"disabled"):o.add(this.domNode,"disabled"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(384)],o=i.dj.d(n,(function(e,t){return e([t],{setForWindow:function(e,t,i){this.set(this._composeKey(e,t),i)},getForWindow:function(e,t){return this.get(this._composeKey(e,t))},watchForWindow:function(e,t,i){return this.watch(this._composeKey(e,t),i)},_composeKey:function(e,t){return(e.name||"")+t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(227),i(228),i(210),i(204),i(257),i(206),i(279),i(487),i(231),i(328),i(316),i(1719),i(216)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return t("dijit._MenuBase",[u,f,p,h],{selected:null,_setSelectedAttr:function(e){this.selected!=e&&(this.selected&&(this.selected._setSelected(!1),this._onChildDeselect(this.selected)),e&&e._setSelected(!0),this._set("selected",e))},activated:!1,_setActivatedAttr:function(e){o.toggle(this.domNode,"dijitMenuActive",e),o.toggle(this.domNode,"dijitMenuPassive",!e),this._set("activated",e)},parentMenu:null,popupDelay:500,passivePopupDelay:1/0,autoFocus:!1,childSelector:function(e){var t=d.byNode(e);return e.parentNode==this.containerNode&&t&&t.focus},postCreate:function(){var e=this,t="string"==typeof this.childSelector?this.childSelector:r.hitch(this,"childSelector");this.own(s(this.containerNode,s.selector(t,a.enter),(function(){e.onItemHover(d.byNode(this))})),s(this.containerNode,s.selector(t,a.leave),(function(){e.onItemUnhover(d.byNode(this))})),s(this.containerNode,s.selector(t,c),(function(t){e.onItemClick(d.byNode(this),t),t.stopPropagation()})),s(this.containerNode,s.selector(t,"focusin"),(function(){e._onItemFocus(d.byNode(this))}))),this.inherited(arguments)},onKeyboardSearch:function(e,t,i,n){this.inherited(arguments),e&&(-1==n||e.popup&&1==n)&&this.onItemClick(e,t)},_keyboardSearchCompare:function(e,t){return e.shortcutKey?t==e.shortcutKey.toLowerCase()?-1:0:this.inherited(arguments)?1:0},onExecute:function(){},onCancel:function(){},_moveToPopup:function(e){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled)this.onItemClick(this.focusedChild,e);else{var t=this._getTopMenu();t&&t._isMenuBar&&t.focusNext()}},_onPopupHover:function(){this.set("selected",this.currentPopupItem),this._stopPendingCloseTimer()},onItemHover:function(e){this.activated?(this.set("selected",e),!e.popup||e.disabled||this.hover_timer||(this.hover_timer=this.defer((function(){this._openItemPopup(e)}),this.popupDelay))):this.passivePopupDelay<1/0&&(this.passive_hover_timer&&this.passive_hover_timer.remove(),this.passive_hover_timer=this.defer((function(){this.onItemClick(e,{type:"click"})}),this.passivePopupDelay)),this._hoveredChild=e,e._set("hovering",!0)},_onChildDeselect:function(e){this._stopPopupTimer(),this.currentPopupItem==e&&(this._stopPendingCloseTimer(),this._pendingClose_timer=this.defer((function(){this._pendingClose_timer=null,this.currentPopupItem=null,e._closePopup()}),this.popupDelay))},onItemUnhover:function(e){this._hoveredChild==e&&(this._hoveredChild=null),this.passive_hover_timer&&(this.passive_hover_timer.remove(),this.passive_hover_timer=null),e._set("hovering",!1)},_stopPopupTimer:function(){this.hover_timer&&(this.hover_timer=this.hover_timer.remove())},_stopPendingCloseTimer:function(){this._pendingClose_timer&&(this._pendingClose_timer=this._pendingClose_timer.remove())},_getTopMenu:function(){for(var e=this;e.parentMenu;e=e.parentMenu);return e},onItemClick:function(e,t){if(this.passive_hover_timer&&this.passive_hover_timer.remove(),this.focusChild(e),e.disabled)return!1;if(e.popup){this.set("selected",e),this.set("activated",!0);var i=/^key/.test(t._origType||t.type)||0==t.clientX&&0==t.clientY;this._openItemPopup(e,i)}else this.onExecute(),e._onClick?e._onClick(t):e.onClick(t)},_openItemPopup:function(e,t){if(e!=this.currentPopupItem){this.currentPopupItem&&(this._stopPendingCloseTimer(),this.currentPopupItem._closePopup()),this._stopPopupTimer();var i=e.popup;i.parentMenu=this,this.own(this._mouseoverHandle=s.once(i.domNode,"mouseover",r.hitch(this,"_onPopupHover")));var n=this;e._openPopup({parent:this,orient:this._orient||["after","before"],onCancel:function(){t&&n.focusChild(e),n._cleanUp()},onExecute:r.hitch(this,"_cleanUp",!0),onClose:function(){n._mouseoverHandle&&(n._mouseoverHandle.remove(),delete n._mouseoverHandle)}},t),this.currentPopupItem=e}},onOpen:function(){this.isShowingNow=!0,this.set("activated",!0)},onClose:function(){this.set("activated",!1),this.set("selected",null),this.isShowingNow=!1,this.parentMenu=null},_closeChild:function(){this._stopPopupTimer(),this.currentPopupItem&&(this.focused&&(n.set(this.selected.focusNode,"tabIndex",this.tabIndex),this.selected.focusNode.focus()),this.currentPopupItem._closePopup(),this.currentPopupItem=null)},_onItemFocus:function(e){this._hoveredChild&&this._hoveredChild!=e&&this.onItemUnhover(this._hoveredChild),this.set("selected",e)},_onBlur:function(){this._cleanUp(!0),this.inherited(arguments)},_cleanUp:function(e){this._closeChild(),void 0===this.isShowingNow&&this.set("activated",!1),e&&this.set("selected",null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(228),i(240),i(223),i(204),i(231),i(272),i(307),i(1720)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return t("dijit._KeyNavContainer",[l,c,s],{connectKeyNavHandlers:function(t,i){var n=this._keyNavCodes={},a=r.hitch(this,"focusPrev"),s=r.hitch(this,"focusNext");e.forEach(t,(function(e){n[e]=a})),e.forEach(i,(function(e){n[e]=s})),n[o.HOME]=r.hitch(this,"focusFirstChild"),n[o.END]=r.hitch(this,"focusLastChild")},startupKeyNavChildren:function(){n.deprecated("startupKeyNavChildren() call no longer needed","","2.0")},startup:function(){this.inherited(arguments),e.forEach(this.getChildren(),r.hitch(this,"_startupChild"))},addChild:function(e,t){this.inherited(arguments),this._startupChild(e)},_startupChild:function(e){e.set("tabIndex","-1")},_getFirst:function(){var e=this.getChildren();return e.length?e[0]:null},_getLast:function(){var e=this.getChildren();return e.length?e[e.length-1]:null},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),!0)},childSelector:function(e){return(e=a.byNode(e))&&e.getParent()==this}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(228),i(223),i(204),i(206),i(231),i(307)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t("dijit._KeyNavMixin",s,{tabIndex:"0",childSelector:null,postCreate:function(){if(this.inherited(arguments),i.set(this.domNode,"tabIndex",this.tabIndex),!this._keyNavCodes){var e=this._keyNavCodes={};e[n.HOME]=o.hitch(this,"focusFirstChild"),e[n.END]=o.hitch(this,"focusLastChild"),e[this.isLeftToRight()?n.LEFT_ARROW:n.RIGHT_ARROW]=o.hitch(this,"_onLeftArrow"),e[this.isLeftToRight()?n.RIGHT_ARROW:n.LEFT_ARROW]=o.hitch(this,"_onRightArrow"),e[n.UP_ARROW]=o.hitch(this,"_onUpArrow"),e[n.DOWN_ARROW]=o.hitch(this,"_onDownArrow")}var t=this,s="string"==typeof this.childSelector?this.childSelector:o.hitch(this,"childSelector");this.own(r(this.domNode,"keypress",o.hitch(this,"_onContainerKeypress")),r(this.domNode,"keydown",o.hitch(this,"_onContainerKeydown")),r(this.domNode,"focus",o.hitch(this,"_onContainerFocus")),r(this.containerNode,r.selector(s,"focusin"),(function(e){t._onChildFocus(a.getEnclosingWidget(this),e)})))},_onLeftArrow:function(){},_onRightArrow:function(){},_onUpArrow:function(){},_onDownArrow:function(){},focus:function(){this.focusFirstChild()},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild())},focusLastChild:function(){this.focusChild(this._getLastFocusableChild())},focusChild:function(e,t){e&&(this.focusedChild&&e!==this.focusedChild&&this._onChildBlur(this.focusedChild),e.set("tabIndex",this.tabIndex),e.focus(t?"end":"start"))},_onContainerFocus:function(e){e.target!==this.domNode||this.focusedChild||this.focus()},_onFocus:function(){i.set(this.domNode,"tabIndex","-1"),this.inherited(arguments)},_onBlur:function(e){i.set(this.domNode,"tabIndex",this.tabIndex),this.focusedChild&&(this.focusedChild.set("tabIndex","-1"),this.lastFocusedChild=this.focusedChild,this._set("focusedChild",null)),this.inherited(arguments)},_onChildFocus:function(e){e&&e!=this.focusedChild&&(this.focusedChild&&!this.focusedChild._destroyed&&this.focusedChild.set("tabIndex","-1"),e.set("tabIndex",this.tabIndex),this.lastFocused=e,this._set("focusedChild",e))},_searchString:"",multiCharSearchDuration:1e3,onKeyboardSearch:function(e,t,i,n){e&&this.focusChild(e)},_keyboardSearchCompare:function(e,t){var i=e.domNode,n=(e.label||(i.focusNode?i.focusNode.label:"")||i.innerText||i.textContent||"").replace(/^\s+/,"").substr(0,t.length).toLowerCase();return t.length&&n==t?-1:0},_onContainerKeydown:function(e){var t=this._keyNavCodes[e.keyCode];t?(t(e,this.focusedChild),e.stopPropagation(),e.preventDefault(),this._searchString=""):e.keyCode==n.SPACE&&this._searchTimer&&!(e.ctrlKey||e.altKey||e.metaKey)&&(e.stopImmediatePropagation(),e.preventDefault(),this._keyboardSearch(e," "))},_onContainerKeypress:function(e){e.charCode<=n.SPACE||e.ctrlKey||e.altKey||e.metaKey||(e.preventDefault(),e.stopPropagation(),this._keyboardSearch(e,String.fromCharCode(e.charCode).toLowerCase()))},_keyboardSearch:function(e,t){var i,n=null,r=0;o.hitch(this,(function(){this._searchTimer&&this._searchTimer.remove(),this._searchString+=t;var e=/^(.)\1*$/.test(this._searchString)?1:this._searchString.length;i=this._searchString.substr(0,e),this._searchTimer=this.defer((function(){this._searchTimer=null,this._searchString=""}),this.multiCharSearchDuration);var o=this.focusedChild||null;if(1!=e&&o||(o=this._getNextFocusableChild(o,1))){var a=o;do{var s=this._keyboardSearchCompare(o,i);if(s&&0==r++&&(n=o),-1==s){r=-1;break}o=this._getNextFocusableChild(o,1)}while(o&&o!=a)}}))(),this.onKeyboardSearch(n,e,i,r)},_onChildBlur:function(){},_getNextFocusableChild:function(e,t){var i=e;do{if(e)e=this._getNext(e,t);else if(!(e=this[t>0?"_getFirst":"_getLast"]()))break;if(null!=e&&e!=i&&e.isFocusable())return e}while(e!=i);return null},_getFirst:function(){return null},_getLast:function(){return null},_getNext:function(e,t){if(e)for(e=e.domNode;e;)if((e=e[t<0?"previousSibling":"nextSibling"])&&"getAttribute"in e){var i=a.byNode(e);if(i)return i}return null}})}),e,t),e.exports=o},function(e,t,n){var o,r;o=[n(203),n(246),n(204),n(210),n(213),n(221),n(223),n(216),n(215),n(1044),n(344),n(355),n(1716)],r=n.dj.d(o,(function(e,t,n,o,r,a,s,l,c,d,u,h,p){var f=e([d],{tabOpening:"bottom",setGap:5,tabClass:p,postMixInProperties:function(){this.inherited(arguments),this.entryExitEdge=this.tabOpening},buildRendering:function(){this.inherited(arguments),o.add(this.domNode,"tabBar")},addTab:function(e,t,i,r,a,l){var c,d=[],p=this,f=new this.tabClass({id:this.id+"_"+e.id,label:t.title,toolTip:t.description,closable:t.closable,enabled:!1!==t.isEnabled,widget:e,properties:t,checked:t.get(u.IS_SHOWING)});o.add(f.domNode,this._getClassForOpening(this.tabOpening)),t.get(u.IS_SELECTED)&&o.add(f.domNode,"selected"),t.setId&&o.add(f.domNode,"mwSetMember"),this.selectionHighlightingEnabled&&d.push(t.watch(u.IS_SELECTED,(function(e,t,i){i?o.add(f.domNode,"selected"):o.remove(f.domNode,"selected")}))),d.push(f.watch("checked",(function(){t.set(u.IS_SHOWING,f.get("checked"))}))),f.on(h.CLOSE,(function(e){p.emit(h.CLOSE,{widget:e.widget,properties:e.properties})})),f.closable&&f.on("keyup",n.hitch(f,(function(e){e.keyCode===s.DELETE&&p.emit(h.CLOSE,{widget:f.widget,properties:f.properties})}))),f.domNode.addEventListener("focus",(function(){f.domNode.classList.add("tabFocused")})),f.domNode.addEventListener("blur",(function(){f.domNode.classList.remove("tabFocused")})),d.push(t.watch(u.IS_SHOWING,(function(e,t,i){f.set("checked",i)}))),d.push(t.watch(u.TITLE,(function(e,t,i){f.set("label",i)}))),d.push(t.watch(u.DESCRIPTION,(function(e,t,i){f.set("toolTip",i)}))),d.push(t.watch(u.INDEX,(function(e,t,i){i?o.remove(f.domNode,"firstTab"):o.add(f.domNode,"firstTab"),i===p._buttonInfo.length-1?o.add(f.domNode,"lastTab"):o.remove(f.domNode,"lastTab")}))),d.push(t.watch(u.IS_ENABLED,(function(e,t,i){f.set("enabled",i)}))),l?this.dragIn(f,t,l.mousePoint||l.index):this.addButton(f,t,!0,i,r,a),i=this._indexFromProperties(t),this._buttonInfo[i].unbindChildProperties=function(){d.forEach((function(e){e.remove()}))},i===(c=this._buttonInfo.length)-1&&c>1&&o.remove(this._buttonInfo[c-2].button.domNode,"lastTab"),f.domNode.tabIndex=-1,f.domNode.setAttribute("aria-controls",e.id),e.domNode.removeAttribute("aria-label"),e.domNode.setAttribute("aria-labelledby",f.id),e.domNode.setAttribute("role","tabpanel region"),this.domNode.getAttribute("role")||this.domNode.setAttribute("role","tablist"),f.domNode.setAttribute("role","tab"),f.domNode.setAttribute("aria-selected",f.checked);const g=f.labelNode?f.labelNode:f.titleNode;if(f.id&&g){const e=f.id+"_title";g.setAttribute("id",e),f.domNode.setAttribute("aria-labelledby",e)}return f},removeTab:function(e,t){var i,n,o;if((i=this._indexFromProperties(e))>=0)return n=this._buttonInfo[i],o=n.button,n.unbindChildProperties(),this.removeButton(o,(function(){o.destroyRecursive()}),t),o},getTabForProperties:function(e){var t,i=this._indexFromProperties(e);return i>=0&&(t=this._buttonInfo[i].button),t},_computeLayout:function(){if(this.inherited(arguments)){var e;for(i=0;i<this._buttonInfo.length;i++)switch(e=this._buttonInfo[i].targetBox,this.tabOpening){case"bottom":e.h+=a("ie")?1.5:1;break;case"top":e.t-=1,e.h+=1;break;case"right":e.w+=1;break;case"left":e.l-=1,e.w+=1}return!0}return!1},_createPrototypeButton:function(){var e=new p({id:this.id+"prototype",label:"prototype"});return r.set(e.iconNode,{position:"static"}),r.set(e.labelNode,{position:"static"}),r.set(e.closeNode,{position:"static"}),e},_configurePrototypeButton:function(e,t){e.set("label",t.get("label")+"###"),e.set("closable",t.get("closable"))},_setTabOpeningAttr:function(e){var t,i,n;if(e!=this.tabOpening)for(t=this._getClassForOpening(this.tabOpening),i=this._getClassForOpening(e),this._set("tabOpening",e),this.entryExitEdge=e,n=0;n<this._buttonInfo.length;n++)o.replace(this._buttonInfo[n].button.domNode,i,t)},_getClassForOpening:function(e){return e+"Open"},_beginButtonDrag:function(e,i){i.target!==e.button.closeNode?this.inherited(arguments):t.stop(i)},_isTruncated:function(e){return this.inherited(arguments)||"vertical"===this.orientation&&e.currentBox.w<e.preferredSize.w},getButtonInfo:function(){return this._buttonInfo},focus:function(){for(var e=0;e<this._buttonInfo.length;e++)if(this._buttonInfo[e].button&&this._buttonInfo[e].button.checked&&this._buttonInfo[e].button.domNode)return void this._buttonInfo[e].button.domNode.focus()}});return f.TAB_OPENING="tabOpening",f}),e,t),e.exports=r},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){var i=e([t],{constructor:function(){this._groups={}},register:function(e,t,n){this._groups[e]||(this._groups[e]={}),t&&(this._groups[e][t]=n,n.groupId=t,this.emit(i.PROPERTIES_ADDED,e,t,n))},unregister:function(e,t){this._groups[e]&&(t?(this.emit(i.PROPERTIES_REMOVED,e,t,this._groups[e][t]),delete this._groups[e][t]):delete this._groups[e])},getFacets:function(){return Object.keys(this._groups)},getIds:function(e){return this._groups[e]?Object.keys(this._groups[e]):[]},getProperties:function(e,t){return this._groups[e]||this.register(e),t?this._groups[e][t]:this._groups[e]},getGroupPropertiesFromDocumentProperties:function(e,t){if(this._groups[e]&&t[e])return this._groups[e][t[e]]}});return i.PROPERTIES_ADDED="propertiesAdded",i.PROPERTIES_REMOVED="propertiesRemoved",i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(488),i(1724)],o=i.dj.d(n,(function(e,t,i){return e([t,i],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(386),i(1725),i(881),i(344),i(488)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=e([n],{borrowChild:function(e){var i=this._getWidgetFromProperties(e);return i&&(i._lendingTabContainer=this,this._superRemoveChild(i),i!==this.get(a.SHOWING_CHILD)&&t.set(i.domNode,{visibility:"visible"})),i},returnChild:function(e){var i=this._getWidgetFromProperties(e);i&&(this._superAddChild(i),i===this.get(a.SHOWING_CHILD)?e.set(r.IS_SHOWING,o.isShowingGlobally(this)):t.set(i.domNode,{visibility:"hidden"}),delete i._lendingTabContainer)},_getWidgetFromProperties:function(e){var t;for(t=0;t<this._tabInfo.length;t++)if(this._tabInfo[t].properties===e)return this._tabInfo[t].widget;return null},_superAddChild:function(e){i.prototype.addChild.apply(this,[e])},_superRemoveChild:function(e){i.prototype.removeChild.apply(this,[e])}});return s.getOwningTabContainer=function(e){var t=e.getParent();return t&&t.isInstanceOf(a)?t:e._lendingTabContainer},s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{borrowChild:function(e){},returnChild:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(356),i(242),i(227),i(210),i(211),i(217),i(213),i(222),i(257),i(206),i(248),i(386),i(655),i(344),i(355),i(387),i(656),i(561),i(775),i(774),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){var S=e([f,d,b,C,T],{gridSize:{w:1,h:1},indexing:"rowMajor",minCellHeight:16,minCellWidth:16,offerSplitterRemoveButtons:!0,baseClass:"tileContainer",buildRendering:function(){this.inherited(arguments),a.add(this.domNode,"mwLayoutContainer"),a.add(this.domNode,"mwTileContainer")},postCreate:function(){this.inherited(arguments),this._createSplitters()},startup:function(){if(!this._started){var e=this;this.getChildren().forEach((function(t){e._setupChild(t)})),this.inherited(arguments)}},addWithProperties:function(e,t){this._addChildInfo({widget:e,properties:t}),this.addChild(e)},addChild:function(e){var t=this._childInfoFromDomId(e.id);t||(t={widget:e,properties:e},this._addChildInfo(t)),this.inherited(arguments),this.layout(),this.emit(_.CHILD_ADDED,t.widget,t.properties)},removeChild:function(e){return this.removeChildInTile(this._tileFromDomId(e.id))},removeChildInTile:function(e,t){var i;if(void 0===t&&(t=!0),e>=0){var n=this._children[e];n&&(this._superRemoveChild(n.widget),this._children[e]=null,t&&this.layout(),this.emit(_.CHILD_REMOVED,n.widget,n.properties),v.restoreStyle(n.widget),i=n.widget)}return i},removeAll:function(e){var t,i;for(t=0;t<this._tileCount;t++)this._children[t]&&(i=this._children[t].widget,this.removeChildInTile(t),e&&i.destroyRecursive())},getChildInTile:function(e){if(e<0||e>=this._children.length)return null;var t=this._children[this._convertToInternalTile(e)];return t?t.widget:null},isTileEmpty:function(e){return!this.getChildInTile(e)},getTileContaining:function(e){return this._convertToExternalTile(this._getTileContainingInternal(e))},getChildrenInTileOrder:function(){var e,t=[];for(e=0;e<this._tileCount;e++)this._children[e]&&this._children[e].widget&&t.push(this._children[e].widget);return t},_initGrid:function(){var e,t,i;for(this._tileCount=this.gridSize.w*this.gridSize.h,this._children=[],this._children.length=this._tileCount,this._tileCellBox=[],this._tileCellBox.length=this._tileCount,this._tileInCell=[],this._tileInCell.length=this.gridSize.h,i=0,e=0;e<this.gridSize.h;e++)for(this._tileInCell[e]=[],this._tileInCell[e].length=this.gridSize.w,t=0;t<this.gridSize.w;t++,i++)this._tileInCell[e][t]=i,this._tileCellBox[i]={l:t,t:e,w:1,h:1};this._rowTop=[],this._rowTop.length=this.gridSize.h+1,this._columnLeft=[],this._columnLeft.length=this.gridSize.w+1,this._rowWeight=this._getDefaultWeights(this.gridSize.h),this._columnWeight=this._getDefaultWeights(this.gridSize.w)},_getDefaultWeights:function(e){var t,i,n=[];for(n.length=e,t=1/e,i=0;i<e;i++)n[i]=t;return n},_createSplitters:function(){var e,t,n,o,c,d,f,g=this;for(this._horizontalSplitters=[],this._horizontalSplitters.length=this.gridSize.h-1,e=0;e<this.gridSize.h-1;e++)for(this._horizontalSplitters[e]=[],this._horizontalSplitters[e].length=this.gridSize.w,t=0;t<this.gridSize.w;t++)n=s.create("div",{id:this.id+"HorizontalSplitter"+e+"_"+t},this.domNode),this._horizontalSplitters[e][t]=n,a.add(n,"splitterH"),a.add(n,"removable"),r.setSelectable(n,!1),v.preventFocus(n,!0),v.preventDefaultContextMenu(n),o=s.create("div",{id:this.id+"HorizontalLine"+e+"_"+t},n),a.add(o,"splitterLineH"),r.setSelectable(o,!1),v.preventFocus(o,!0),d=i.hitch(this,"_beginHorizontalSplitterDrag",e),h(n,p.press,d),h(o,p.press,d),this.offerSplitterRemoveButtons&&(c=s.create("div",{id:this.id+"HorizontalDot"+e+"_"+t},o),a.add(c,"dot"),r.setSelectable(c,!1),v.preventFocus(c,!0),f=i.partial((function(e,t,i,n){var o=l.position(e).x;n.pageX>=o-4&&n.pageX<=o+5&&g._showRemoveSplitButton(e,t,i,"horizontal",n)}),c,e,t),h(c,u.enter,i.hitch(this,"_showRemoveSplitButton",c,e,t,"horizontal")),h(n,"mousemove",f),h(o,"mousemove",f));for(this._verticalSplitters=[],this._verticalSplitters.length=this.gridSize.w-1,t=0;t<this.gridSize.w-1;t++)for(this._verticalSplitters[t]=[],this._verticalSplitters[t].length=this.gridSize.h,e=0;e<this.gridSize.h;e++)n=s.create("div",{id:this.id+"VerticalSplitter"+e+"_"+t},this.domNode),this._verticalSplitters[t][e]=n,a.add(n,"splitterV"),a.add(n,"removable"),r.setSelectable(n,!1),v.preventFocus(n,!0),v.preventDefaultContextMenu(n),o=s.create("div",{id:this.id+"VerticalLine"+e+"_"+t},n),a.add(o,"splitterLineV"),r.setSelectable(o,!1),v.preventFocus(o,!0),d=i.hitch(this,"_beginVerticalSplitterDrag",t),h(n,p.press,d),h(o,p.press,d),this.offerSplitterRemoveButtons&&(c=s.create("div",{id:this.id+"VerticalDot"+e+"_"+t},o),a.add(c,"dot"),r.setSelectable(c,!1),v.preventFocus(c,!0),f=i.partial((function(e,t,i,n){var o=l.position(e).y;n.pageY>=o-4&&n.pageY<=o+5&&g._showRemoveSplitButton(e,t,i,"vertical",n)}),c,e,t),h(c,u.enter,i.hitch(this,"_showRemoveSplitButton",c,e,t,"vertical")),h(n,"mousemove",f),h(o,"mousemove",f))},_destroySplitters:function(){var e,t;for(e=0;e<this._horizontalSplitters.length;e++)for(t=0;t<this._horizontalSplitters[e].length;t++)s.destroy(this._horizontalSplitters[e][t]);for(t=0;t<this._verticalSplitters.length;t++)for(e=0;e<this._verticalSplitters[t].length;e++)s.destroy(this._verticalSplitters[t][e])},_refreshSplitters:function(){this._destroySplitters(),this._createSplitters()},_redistributeChildren:function(e){var t,i,n;if(e.length!==this._children.length)for(t=0,i=0;i<e.length;i++)e[i]&&(t<this._children.length?(this._children[t]=e[i],t++):(n=e[i]).widget.domNode&&n.widget.getParent()&&(this._superRemoveChild(n.widget),this.emit(_.CHILD_REMOVED,n.widget,n.properties),v.restoreStyle(n.widget)));else this._children=e},_showRemoveSplitButton:function(e,t,i,n,c){var d,f,m=this;if(!c.buttons){if(this._removeSplitButton){if(this._removeSplitButton._dot===e)return;this._removeSplitButton._cleanup()}var _=s.create("div",{id:this.id+"RemoveSplitterButton"},o.body());_._dot=e,a.add(_,"removeSplitterButton"),r.setSelectable(_,!1),v.preventFocus(_,!0),(d=l.position(e)).l=d.x-6,d.t=d.y-6,d.w=14,d.h=14,l.setMarginBox(_,d),_._cleanup=function(){m._removeSplitButton&&(s.destroy(_),f.forEach((function(e){e.remove()})),delete m._removeSplitButton)},f=[h(_,u.leave,(function(){setTimeout((function(){_._cleanup()}),0)})),h(_,p.press,(function(e){_._cleanup(),"horizontal"===n?m.mergeTopBottom(t,i):m.mergeLeftRight(t,i),v.stopEvent(e)})),h(this.ownerDocument,p.move,(function(e){g.boxContains(d,e.pageX,e.pageY)||_._cleanup()}))],this._removeSplitButton=_}},_addChildInfo:function(e){this._bindChildProperties(e.widget,e.properties);var t=e.properties.tile;t=void 0===t?this._findFirstEmptyTile():this._convertToInternalTile(t),E.assert(t>=0&&t<this._tileCount,"Cannot add child in tile "+t),this._children[t]=e,e.properties.set(m.TILE,t)},_setupChild:function(e){this.inherited(arguments),c.set(e.domNode,"position","absolute")},_bindChildProperties:function(e,t){},_findFirstEmptyTile:function(){var e;for(e=0;e<this._tileCount&&this._children[e];e++);return e},_childInfoFromDomId:function(e){var t=this._tileFromDomId(e);return t>=0?this._children[t]:null},_tileFromDomId:function(e){var t;for(t=0;t<this._tileCount&&(!this._children[t]||this._children[t].widget.id!==e);t++);return t<this._tileCount?t:-1},resize:function(){this.computedStyle||(this.computedStyle=c.getComputedStyle(this.domNode)),this.inherited(arguments)},layout:function(){var e,t,i,n,o,r,a,s,c;if(this._started&&this.domNode&&(e=l.getContentBox(this.domNode,this.computedStyle))&&0!==e.h){if(this._referenceHeight!==e.h){for(this._referenceHeight=e.h,t=e.h-(this.gridSize.h-1)*this._getVisibleSplitterThickness(),this._rowTop[0]=e.t,n=0;n<this.gridSize.h-1;n=r)r=n+1,this._rowTop[r]=this._rowTop[n]+Math.round(this._rowWeight[n]*t);this._rowTop[this.gridSize.h]=e.t+e.h}if(this._referenceWidth!==e.w){for(this._referenceWidth=e.w,i=e.w-(this.gridSize.w-1)*this._getVisibleSplitterThickness(),this._columnLeft[0]=e.l,o=0;o<this.gridSize.w-1;o=a)a=o+1,this._columnLeft[a]=this._columnLeft[o]+Math.round(this._columnWeight[o]*i);this._columnLeft[this.gridSize.w]=e.l+e.w}for(s={l:0,t:0,w:0,h:this._getSplitterThickness()},n=0;n<this.gridSize.h-1;n++)for(s.t=this._rowTop[n+1]-this._getPreSplitterOverlap(),o=0;o<this.gridSize.w;o++)s.l=this._columnLeft[o],s.w=this._columnLeft[o+1]-s.l+1,l.setMarginBox(this._horizontalSplitters[n][o],s);for(s.w=this._getSplitterThickness(),o=0;o<this.gridSize.w-1;o++)for(s.l=this._columnLeft[o+1]-this._getPreSplitterOverlap(),n=0;n<this.gridSize.h;n++)s.t=this._rowTop[n],s.h=this._rowTop[n+1]-s.t+1,l.setMarginBox(this._verticalSplitters[o][n],s);for(c=0;c<this._tileCount;c++)this._children[c]&&v.setSize(this._children[c].widget,this.getTilePixelBox(c))}},_getSplitterThickness:function(){return this._splitterThickness||this._measureSplitters(),this._splitterThickness||8},_getVisibleSplitterThickness:function(){return this._visibleSplitterThickness||this._measureSplitters(),this._visibleSplitterThickness||1},_getPreSplitterOverlap:function(){return this._preSplitterOverlap||this._measureSplitters(),this._preSplitterOverlap||2},_measureSplitters:function(){var e;this._horizontalSplitters.length?(e=this._horizontalSplitters[0][0],this._splitterThickness=Math.round(c.get(e,"height")),this._visibleSplitterThickness=Math.round(c.get(e.firstChild,"height")),this._preSplitterOverlap=Math.round(c.get(e,"padding-top"))):this._verticalSplitters.length&&(e=this._verticalSplitters[0][0],this._splitterThickness=Math.round(c.get(e,"width")),this._visibleSplitterThickness=Math.round(c.get(e.firstChild,"width")),this._preSplitterOverlap=Math.round(c.get(e,"padding-left")))},getTilePixelBox:function(e){var t=this._tileCellBox[e],i=t.l+t.w,n=t.t+t.h,o=this._columnLeft[t.l],r=this._columnLeft[i],a=this._rowTop[t.t],s=this._rowTop[n];return i<this.gridSize.w&&(r-=this._getVisibleSplitterThickness()),n<this.gridSize.h&&(s-=this._getVisibleSplitterThickness()),{l:o,t:a,w:r-o,h:s-a}},_getCellFromPoint:function(e,t){var i={row:this._getRowFromY(t),column:this._getColumnFromX(e)};return i.row<0||i.column<0?null:i},_getRowFromY:function(e){var t;for(t=-1;t<this.gridSize.h;t++)if(e<this._rowTop[t+1])return t;return-1},_getColumnFromX:function(e){var t;for(t=-1;t<this.gridSize.w;t++)if(e<this._columnLeft[t+1])return t;return-1},_getTileContainingInternal:function(e){var t;for(t=0;t<this._tileCount&&this._children[t].widget!==e;t++);return t===this._tileCount?-1:t},_convertToInternalTile:function(e){return"columnMajor"===this.indexing&&e>=0?this._convertToColumnMajor(e):e},_convertToExternalTile:function(e){return"columnMajor"===this.indexing&&e>=0?this._convertToRowMajor(e):e},_convertToColumnMajor:function(e){return this._columnMajorTile||this._computeTileConversionTables(),this._columnMajorTile[e]},_convertToRowMajor:function(e){return this._rowMajorTile||this._computeTileConversionTables(),this._rowMajorTile[e]},_computeTileConversionTables:function(){var e,t,i,n,o;for(this._columnMajorTile=[],this._columnMajorTile.length=this._tileCount,this._rowMajorTile=[],this._rowMajorTile.length=this._tileCount,e=0;e<this._tileCount;e++)this._columnMajorTile[e]=-1,this._rowMajorTile[e]=-1;for(n=0,i=0;i<this.gridSize.w;i++)for(t=0;t<this.gridSize.h;t++)o=this._tileInCell[t][i],this._columnMajorTile[o]<0&&(this._columnMajorTile[o]=n,this._rowMajorTile[n]=o,n++)},_clearTileConversionTables:function(){delete this._columnMajorTile,delete this._rowMajorTile},_beginHorizontalSplitterDrag:function(e,t){u.isLeft(t)&&!this._splitterDragInfo&&(this._splitterDragInfo={splitterIndex:e,startY:t.pageY,initialPosition:this._rowTop[e+1],localLowerLimit:this._getSplitterTopLocalLowerLimit(e,this._rowTop),localUpperLimit:this._getSplitterTopLocalUpperLimit(e,this._rowTop),globalLowerLimit:this._getSplitterTopGlobalLowerLimit(e),globalUpperLimit:this._getSplitterTopGlobalUpperLimit(e),connections:[h(this.ownerDocument,p.move,i.hitch(this,"_continueHorizontalSplitterDrag")),h(this.ownerDocument,p.release,i.hitch(this,"_endSplitterDrag"))]},y.blockUntilRelease(this.domNode)),v.stopEvent(t)},_continueHorizontalSplitterDrag:function(e){var t=this._splitterDragInfo,i=!!e.ctrlKey,n=e.pageY-t.startY;this._rowTop[t.splitterIndex+1]=this._enforceDragLimits(t.initialPosition+n,t,i),i&&(this._scaleCells(t.splitterIndex,this.gridSize.h,this._rowTop,this._rowWeight),t.localLowerLimit=this._getSplitterTopLocalLowerLimit(t.splitterIndex,this._rowTop),t.localUpperLimit=this._getSplitterTopLocalUpperLimit(t.splitterIndex,this._rowTop)),this.layout()},_endSplitterDrag:function(){this._splitterDragInfo.connections.forEach((function(e){e.remove()})),delete this._splitterDragInfo,this._updateWeights(),this.emit(_.STATE_CHANGED)},_beginVerticalSplitterDrag:function(e,t){u.isLeft(t)&&!this._splitterDragInfo&&(this._splitterDragInfo={splitterIndex:e,startX:t.pageX,initialPosition:this._columnLeft[e+1],localLowerLimit:this._getSplitterLeftLocalLowerLimit(e,this._columnLeft),localUpperLimit:this._getSplitterLeftLocalUpperLimit(e,this._columnLeft),globalLowerLimit:this._getSplitterLeftGlobalLowerLimit(e),globalUpperLimit:this._getSplitterLeftGlobalUpperLimit(e),connections:[h(this.ownerDocument,p.move,i.hitch(this,"_continueVerticalSplitterDrag")),h(this.ownerDocument,p.release,i.hitch(this,"_endSplitterDrag"))]},y.blockUntilRelease(this.domNode)),v.stopEvent(t)},_continueVerticalSplitterDrag:function(e){var t=this._splitterDragInfo,i=!!e.ctrlKey,n=e.pageX-t.startX;this._columnLeft[t.splitterIndex+1]=this._enforceDragLimits(t.initialPosition+n,t,i),i&&(this._scaleCells(t.splitterIndex,this.gridSize.w,this._columnLeft,this._columnWeight),t.localLowerLimit=this._getSplitterLeftLocalLowerLimit(t.splitterIndex,this._columnLeft),t.localUpperLimit=this._getSplitterLeftLocalUpperLimit(t.splitterIndex,this._columnLeft)),this.layout()},_enforceDragLimits:function(e,t,i){return i?e<t.globalLowerLimit?e=t.globalLowerLimit:e>t.globalUpperLimit&&(e=t.globalUpperLimit):e<t.localLowerLimit?e=t.localLowerLimit:e>t.localUpperLimit&&(e=t.localUpperLimit),e},_scaleCells:function(e,t,i,n){var o,r,a,s;if((r=[]).length=t,e>0){for(o=i[e+1]-i[0],a=0,s=0;s<e+1;s++)r[s]=n[s]*o,a+=n[s];for(s=0;s<e;s++)i[s+1]=i[s]+r[s]/a}if(e<t-2){for(o=i[t]-i[e+1],a=0,s=e+1;s<t;s++)r[s]=n[s]*o,a+=n[s];for(s=e+1;s<t;s++)i[s+1]=i[s]+r[s]/a}},_setGridSizeAttr:function(e){var t=this._tileCount;if(!t||this.gridSize.w!==e.w||this.gridSize.h!==e.h){var n,o;this._isSettingGridSize=!0,t&&(o=this._prepareForGridSizeChange(e),n=this._children);var r=this.gridSize;this.gridSize=i.clone(e),this._initGrid(),t&&(this._clearTileConversionTables(),this._refreshSplitters(),this._redistributeChildren(n),this._reactToGridSizeChange(o)),this._referenceHeight=0,this._referenceWidth=0,this.layout(),this._queueGridSizeChangeNotification(r,e),this._flushPendingNotifications(),this._isSettingGridSize=!1}},_getTileCountAttr:function(){return this._tileCount},getTileCellBox:function(e){return this._tileCellBox[this._convertToInternalTile(e)]},getAdjacency:function(e,t){var i=this._tileCellBox[e],n=this._tileCellBox[t];if(e<t){if(i.l+i.w===n.l)return"left";if(i.t+i.h===n.t)return"top"}else if(e>t){if(n.l+n.w===i.l)return"right";if(n.t+n.h===i.t)return"bottom"}return""},_setColumnWeightsAttr:function(e){var t,i=0;for(t=0;t<Math.min(e.length,this.gridSize.w-1)&&i<1;t++)this._columnWeight[t]=e[t],i+=e[t];for(var n=this.gridSize.w-t,o=Math.max(1-i,0)/n;t<this.gridSize.w;t++)this._columnWeight[t]=o;this._referenceWidth=0,this.layout(),this.notifyStateWatchers("columnWeights",[],this._columnWeight)},_getColumnWeightsAttr:function(){return this._columnWeight.slice(0,this.gridSize.w)},_setRowWeightsAttr:function(e){var t,i=0;for(t=0;t<Math.min(e.length,this.gridSize.h-1)&&i<1;t++)this._rowWeight[t]=e[t],i+=e[t];for(var n=this.gridSize.h-t,o=Math.max(1-i,0)/n;t<this.gridSize.h;t++)this._rowWeight[t]=o;this._referenceHeight=0,this.layout(),this.notifyStateWatchers("rowWeights",[],this._rowWeight)},_getRowWeightsAttr:function(){return this._rowWeight.slice(0,this.gridSize.h)},setColumnSpan:function(e,t,i){this._checkSpanParameters(e,t,i);var n,o,r,a,s,l,c,d,u,h=this,p=this._tileInCell[e][t],f=this._convertToExternalTile(p),g=this._convertToExternalTile(p+1),m=this._tileCellBox[p];if(m.w!==i){if(m.w<i){for(m.l+i>this.gridSize.w&&(i=this.gridSize.w-m.l),o=!0,t=m.l+m.w;t<m.l+i&&o;)n=this._tileInCell[m.t][t],o=this._tileCellBox[n].h===m.h,t+=this._tileCellBox[n].w;if(!o)return;for(r=i-m.w,a=[],n=p+1;r>0;n++)(c=this._tileCellBox[n].w)<=r?(r-=c,a.push(n)):(this._tileCellBox[n].l+=r,this._tileCellBox[n].w-=r,r=0);if(s=a.length,m.w=i,this._recordOccupyingTile(m,p),s>0){for(l=this._prepareForMerge(p,a),a.forEach((function(e){h.removeChildInTile(e,!1)})),n=p+1;n<this._tileCount-s;n++)this._children[n]=this._children[n+s],this._tileCellBox[n]=this._tileCellBox[n+s],this._recordOccupyingTile(this._tileCellBox[n],n);this._tileCount-=s}this._coalesceColumn(m.l),s>0&&(this._reactToMerge(p,a,l),this.emit("tiles_merged",f,g),this._pendingStateChangeNotification=!0)}else{for(d=p+1,u=m.w-i,m.w=i,n=this._tileCount-1;n>=d;n--)this._children[n+1]=this._children[n],this._tileCellBox[n+1]=this._tileCellBox[n],this._recordOccupyingTile(this._tileCellBox[n+1],n+1);this._tileCellBox[d]={l:m.l+i,t:m.t,w:u,h:m.h},this._recordOccupyingTile(this._tileCellBox[d],d),this._tileCount++,this.emit("tile_split",f,"vertical"),this._pendingStateChangeNotification=!0}this._updateSplitterVisibility(),this.layout(),this._flushPendingNotifications()}},setRowSpan:function(e,t,i){this._checkSpanParameters(e,t,i);var n,o,r,a,s,l,c,d,u,h,p,f=this,g=this._tileInCell[e][t],m=this._convertToExternalTile(g),_=this._tileCellBox[g];if(_.h!==i){if(_.h<i){for(_.t+i>this.gridSize.h&&(i=this.gridSize.h-_.t),o=!0,e=_.t+_.h;e<_.t+i&&o;)n=this._tileInCell[e][_.l],o=this._tileCellBox[n].w===_.w,e+=this._tileCellBox[n].h;if(!o)return;for(r=i-_.h,(a=[]).length=r,c=-1,s=0,e=_.t+_.h;e<_.t+i;)n=this._tileInCell[e][_.l],(u=this._tileCellBox[n].h)<=r?(r-=u,0===s&&(c=this._convertToExternalTile(n)),a[s++]=n):(this._tileCellBox[n].t+=r,this._tileCellBox[n].h-=r,r=0),e+=this._tileCellBox[n].h;if(_.h=i,this._recordOccupyingTile(_,g),s>0){for(d=this._prepareForMerge(g,a),a.forEach((function(e){f.removeChildInTile(e,!1)})),n=g+1,l=0;n<this._tileCount-s;n++)l<s&&n+l===a[l]&&l++,this._children[n]=this._children[n+l],this._tileCellBox[n]=this._tileCellBox[n+l],this._recordOccupyingTile(this._tileCellBox[n],n);this._tileCount-=s}this._coalesceRow(_.t),s>0&&(this._reactToMerge(g,a,d),this.emit("tiles_merged",m,c),this._pendingStateChangeNotification=!0)}else{for(h=this._tileInCell[_.t+i][_.l+_.w],p=_.h-i,_.h=i,n=this._tileCount-1;n>=h;n--)this._children[n+1]=this._children[n],this._tileCellBox[n+1]=this._tileCellBox[n],this._recordOccupyingTile(this._tileCellBox[n+1],n+1);this._tileCellBox[h]={l:_.l,t:_.t+i,w:_.w,h:p},this._recordOccupyingTile(this._tileCellBox[h],h),this._tileCount++,this.emit("tile_split",m,"horizontal"),this._pendingStateChangeNotification=!0}this._updateSplitterVisibility(),this.layout(),this._flushPendingNotifications()}},_checkSpanParameters:function(e,t,i){E.assert(e<this.gridSize.h,"Row = "+e+" exceeds grid height = "+this.gridSize.h),E.assert(t<this.gridSize.w,"Column = "+t+" exceeds grid width = "+this.gridSize.w),E.assert(i>=1,"Span = "+i+" must be at least 1")},eliminateTile:function(e,t){e=this._convertToInternalTile(e),t=this._convertToInternalTile(t);var i,n,o,r,a,s,l,c,d,u=["east","south","west","north"],h=this._tileCellBox[e];if(t>=0&&((i=this._tileCellBox[t]).l+i.w<=h.l?n="west":i.t+i.h<=h.t?n="north":i.l>=h.l+h.w?n="east":i.t>=h.t+h.h&&(n="south"),n)){for(o=n,s=0;u[s]!==n;s++)r=u[s],u[s]=o,o=r;u[s]=o}for(s=0;s<u.length&&!a;s++)switch(u[s]){case"north":if(h.t>0){var p=this._tileInCell[h.t-1][h.l];if(this._tileCellBox[p].l!==h.l)break;p=this._tileInCell[h.t-1][h.l+h.w-1];var f=this._tileCellBox[p];if(f.l+f.w===h.l+h.w){for(a="north",l=h.l;l<h.l+h.w;l++)this._tileInCell[h.t][l]===e&&(p=this._tileInCell[h.t-1][l],(f=this._tileCellBox[p]).h+=h.h,this._recordOccupyingTile(f,p));this._coalesceRow(h.t-1)}}break;case"south":if(h.t+h.h<this.gridSize.h){var g=this._tileInCell[h.t+h.h][h.l];if(this._tileCellBox[g].l!==h.l)break;g=this._tileInCell[h.t+h.h][h.l+h.w-1];var m=this._tileCellBox[g];if(m.l+m.w===h.l+h.w){for(a="south",l=h.l;l<h.l+h.w;l++)this._tileInCell[h.t][l]===e&&(g=this._tileInCell[h.t+h.h][l],(m=this._tileCellBox[g]).t-=h.h,m.h+=h.h,this._recordOccupyingTile(m,g));this._coalesceRow(h.t)}}break;case"east":if(h.l+h.w<this.gridSize.w){var _=this._tileInCell[h.t][h.l+h.w];if(this._tileCellBox[_].t!==h.t)break;_=this._tileInCell[h.t+h.h-1][h.l+h.w];var v=this._tileCellBox[_];if(v.t+v.h===h.t+h.h){for(a="east",c=h.t;c<h.t+h.h;c++)this._tileInCell[c][h.l]===e&&(_=this._tileInCell[c][h.l+h.w],(v=this._tileCellBox[_]).l-=h.w,v.w+=h.w,this._recordOccupyingTile(v,_));this._coalesceColumn(h.l)}}break;case"west":if(h.l>0){var b=this._tileInCell[h.t][h.l-1];if(this._tileCellBox[b].t!==h.t)break;b=this._tileInCell[h.t+h.h-1][h.l-1];var y=this._tileCellBox[b];if(y.t+y.h===h.t+h.h){for(a="west",c=h.t;c<h.t+h.h;c++)this._tileInCell[c][h.l]===e&&(b=this._tileInCell[c][h.l-1],(y=this._tileCellBox[b]).w+=h.w,this._recordOccupyingTile(y,b));this._coalesceColumn(h.l-1)}}}if(a){d=this._children[e],this._tileCount--,e<t?(this._children[e]=this._children[t],this._tileCellBox[e]=this._tileCellBox[t],this._recordOccupyingTile(this._tileCellBox[e],e)):this._children[e]=null;var C=new Map,T=0,E=this._tileInCell.map(e=>e.slice()),S=[...this._children],w=[...this._tileCellBox];for(c=0;c<E.length;c++)for(l=0;l<E[c].length;l++)this._tileInCell[c][l]in C?E[c][l]=C[this._tileInCell[c][l]]:(C[this._tileInCell[c][l]]=T,E[c][l]=T,T++);var I=new Set;for(c=0;c<E.length;c++)for(l=0;l<E[c].length;l++){var A=this._tileInCell[c][l],x=E[c][l];x===A||A in I||(I.add(A),this._children[x]=S[A],this._tileCellBox[x]=w[A],this._recordOccupyingTile(this._tileCellBox[x],x))}this._children[this._tileCount]=d,d&&this.removeChildInTile(this._tileCount,!1),this._updateSplitterVisibility(),this.layout(),this._flushPendingNotifications()}return d?d.widget:null},mergeTopBottom:function(e,t){var i,n,o,r=this._tileInCell[e][t],a=this._tileInCell[e+1][t],s=this._convertToExternalTile(r),l=this._convertToExternalTile(a);!this._children[a]||this._children[r]&&!this._children[a].properties.get(m.IS_SELECTED)?(i=r,n=a):(i=a,n=r),o=this._prepareForMerge(i,[n]),this._mergeTiles(i,n),this._coalesceRow(e),this._updateSplitterVisibility(),this._reactToMerge(i,[n],o),this.layout(),this.emit("tiles_merged",s,l),this._pendingStateChangeNotification=!0,this._flushPendingNotifications()},mergeLeftRight:function(e,t){var i,n,o,r=this._tileInCell[e][t],a=this._tileInCell[e][t+1],s=this._convertToExternalTile(r),l=this._convertToExternalTile(a);!this._children[a]||this._children[r]&&!this._children[a].properties.get(m.IS_SELECTED)?(i=r,n=a):(i=a,n=r),o=this._prepareForMerge(i,[n]),this._mergeTiles(i,n),this._coalesceColumn(t),this._updateSplitterVisibility(),this._reactToMerge(i,[n],o),this.layout(),this.emit("tiles_merged",s,l),this._pendingStateChangeNotification=!0,this._flushPendingNotifications()},splitTopBottom:function(e,t){var n,o,r,a,s=this._tileInCell[e][t],l=this._convertToExternalTile(s),c=this._tileCellBox[s],d=i.clone(c),u=this._prepareForSplit(s,"vertical");if(c.h>1)d.t=e>c.t?e:e+1,c.h=d.t-c.t,d.h-=c.h;else{n=!0,d.t=e+1,d.h=1;var h={w:this.gridSize.w,h:this.gridSize.h+1},p=[];p.length=h.h;var f=[];for(f.length=h.h+1,o=0;o<=e;o++)p[o]=this._tileInCell[o],f[o]=this._rowTop[o];p[o]=[],p[o].length=this.gridSize.w;var g=-1,m=-1;for(r=0;r<this.gridSize.w;r++)(a=this._tileInCell[o-1][r])!==s&&a!==g&&this._tileCellBox[a].h++,p[o][r]=a,g=a,r<t&&(m=a);for(f[o]=this._rowTop[o-1]+this._rowTop[o]>>1,a=m+1;a<this._tileCount;a++)a!==s&&this._tileCellBox[a].t>e&&this._tileCellBox[a].t++;for(o++;o<h.h;o++)p[o]=this._tileInCell[o-1],f[o]=this._rowTop[o-1];f[h.h]=this._rowTop[this.gridSize.h];var _=this.gridSize;this.gridSize=h,this._tileInCell=p,this._rowTop=f,this._rowWeight=[],this._rowWeight.length=this.gridSize.h,this._clearTileConversionTables(),this._refreshSplitters(),this._updateWeights(),this._queueGridSizeChangeNotification(_,h)}this._insertTile(d),n||this._coalesceRow(e),this._updateSplitterVisibility(),this._reactToSplit(s,"vertical",u),this.layout(),this.emit("tile_split",l,"horizontal"),this._pendingStateChangeNotification=!0,this._flushPendingNotifications()},splitLeftRight:function(e,t){var n,o,r,a,s=this._tileInCell[e][t],l=this._convertToExternalTile(s),c=this._tileCellBox[s],d=i.clone(c),u=this._prepareForSplit(s,"horizontal");if(c.w>1)d.l=t>c.l?t:t+1,c.w=d.l-c.l,d.w-=c.w;else{n=!0,d.l=t+1,d.w=1;var h={w:this.gridSize.w+1,h:this.gridSize.h},p=-1;for(o=0;o<this.gridSize.h;o++){var f=[];for(f.length=h.w,r=0;r<=t;r++)f[r]=this._tileInCell[o][r];a=this._tileInCell[o][r-1],f[r]=a,a!==s&&a!==p&&(this._tileCellBox[a].w++,p=a);var g=a;for(r++;r<h.w;r++)a=this._tileInCell[o][r-1],f[r]=a,a!==g&&this._tileCellBox[a].t===o&&this._tileCellBox[a].l++,g=a;this._tileInCell[o]=f}var m=[];for(m.length=h.w+1,r=0;r<=t;r++)m[r]=this._columnLeft[r];for(m[r]=this._columnLeft[r-1]+this._columnLeft[r]>>1,r++;r<=h.w;r++)m[r]=this._columnLeft[r-1];this._columnLeft=m,this._columnWeight=[],this._columnWeight.length=h.w;var _=this.gridSize;this.gridSize=h,this._clearTileConversionTables(),this._refreshSplitters(),this._updateWeights(),this._queueGridSizeChangeNotification(_,h)}this._insertTile(d),n||this._coalesceColumn(t),this._updateSplitterVisibility(),this._reactToSplit(s,"horizontal",u),this.layout(),this.emit("tile_split",l,"vertical"),this._pendingStateChangeNotification=!0,this._flushPendingNotifications()},_insertTile:function(e){var t=this.gridSize.w*this.gridSize.h,i=[];i.length=t;var n=[];n.length=t;var o=-1,r=-1;e.l>0&&(o=this._tileInCell[e.t][e.l-1]),e.t>0&&(r=this._tileInCell[e.t-1][this.gridSize.w-1]);var a,s=o>r?o:r;for(a=0;a<=s;a++)i[a]=this._children[a],n[a]=this._tileCellBox[a];for(n[a]=e,this._recordOccupyingTile(e,a);a<this._tileCount;a++)i[a+1]=this._children[a],n[a+1]=this._tileCellBox[a],this._recordOccupyingTile(this._tileCellBox[a],a+1);this._tileCellBox=n,this._children=i,this._tileCount++},_mergeTiles:function(e,t){this._children[t]&&this.removeChildInTile(t,!1);var i,n=t<e?t:e;for(this._tileCellBox[n]=g.unionBox(this._tileCellBox[t],this._tileCellBox[e]),this._recordOccupyingTile(this._tileCellBox[n],n),this._children[n]=this._children[e],this._tileCount--,i=t>e?t:e;i<this._tileCount;i++)this._children[i]=this._children[i+1],this._tileCellBox[i]=this._tileCellBox[i+1],this._recordOccupyingTile(this._tileCellBox[i],i);this._children[this._tileCount]=null},_coalesceRow:function(e){var t,i,n,o=this._tileInCell[e][0],r=this._tileCellBox[o].t,a=r+this._tileCellBox[o].h,s=a-r;for(t=1;t<this.gridSize.w&&s>1;t++)o=this._tileInCell[e][t],(i=this._tileCellBox[o].t)>r&&(r=i),(n=i+this._tileCellBox[o].h)<a&&(a=n),s=a-r;if(s>1){var l=-1;for(t=0;t<this.gridSize.w;t++)(o=this._tileInCell[r][t])!==l&&(this._tileCellBox[o].h-=s-1,l=o);var c={w:this.gridSize.w,h:this.gridSize.h-s+1},d=[];d.length=c.h;var u=[];for(u.length=c.h+1,e=0;e<=r;e++)d[e]=this._tileInCell[e],u[e]=this._rowTop[e];var h=[];for(h.length=c.w,t=0;t<h.length;t++)h[t]=-1;for(;e<c.h;e++){d[e]=this._tileInCell[e+s-1],u[e]=this._rowTop[e+s-1];var p=-1;for(t=0;t<this.gridSize.w;t++)(o=d[e][t])!==p&&o!==h[t]&&o!==this._tileInCell[r][t]&&(this._tileCellBox[o].t-=s-1,p=o,h[t]=o)}u[c.h]=this._rowTop[this.gridSize.h];var f=this.gridSize;this.gridSize=c,this._tileInCell=d,this._rowTop=u,this._clearTileConversionTables(),this._refreshSplitters(),this._updateWeights(),this._queueGridSizeChangeNotification(f,c)}},_coalesceColumn:function(e){var t,i,n,o=this._tileInCell[0][e],r=this._tileCellBox[o].l,a=r+this._tileCellBox[o].w,s=a-r;for(t=1;t<this.gridSize.h&&s>1;t++)o=this._tileInCell[t][e],(i=this._tileCellBox[o].l)>r&&(r=i),(n=i+this._tileCellBox[o].w)<a&&(a=n),s=a-r;if(s>1){var l=-1;for(t=0;t<this.gridSize.h;t++)(o=this._tileInCell[t][r])!==l&&(this._tileCellBox[o].w-=s-1,l=o);var c={w:this.gridSize.w-s+1,h:this.gridSize.h},d=[];for(d.length=c.w+1,e=0;e<=r;e++)d[e]=this._columnLeft[e];for(;e<=c.w;e++)d[e]=this._columnLeft[e+s-1];this._columnLeft=d;var u=[];for(u.length=c.w,e=r;e<u.length;e++)u[e]=-1;for(t=0;t<this.gridSize.h;t++){var h=[];for(h.length=c.w,e=0;e<=r;e++)h[e]=this._tileInCell[t][e];for(var p=-1;e<c.w;e++)h[e]=this._tileInCell[t][e+s-1],(o=h[e])!==p&&o!==u[e]&&o!==this._tileInCell[t][r]&&(this._tileCellBox[o].l-=s-1,u[e]=o,p=o);this._tileInCell[t]=h}var f=this.gridSize;this.gridSize=c,this._clearTileConversionTables(),this._refreshSplitters(),this._updateWeights(),this._queueGridSizeChangeNotification(f,c)}},_recordOccupyingTile:function(e,t){this._recordTileInCell(this._tileInCell,e,t),this._clearTileConversionTables()},_recordTileInCell:function(e,t,i){var n,o,r=t.t+t.h,a=t.l+t.w;for(n=t.t;n<r;n++)for(o=t.l;o<a;o++)e[n][o]=i},_updateWeights:function(){var e,t,i=this._getVisibleSplitterThickness(),n=this._rowTop[this.gridSize.h]-this._rowTop[0]-(this.gridSize.h-1)*i,o=this._columnLeft[this.gridSize.w]-this._columnLeft[0]-(this.gridSize.w-1)*i;if(n>0)for(e=0;e<this.gridSize.h;e++)this._rowWeight[e]=(this._rowTop[e+1]-this._rowTop[e]-(e?i:0))/n;else this._rowWeight=this._getDefaultWeights(this.gridSize.h);if(o>0)for(t=0;t<this.gridSize.w;t++)this._columnWeight[t]=(this._columnLeft[t+1]-this._columnLeft[t]-(t?i:0))/o;else this._columnWeight=this._getDefaultWeights(this.gridSize.w);this.notifyStateWatchers("rowWeights",[],this.get("rowWeights")),this.notifyStateWatchers("columnWeights",[],this.get("columnWeights"))},_updateSplitterVisibility:function(){var e,t,i,n,o,r,s;for(e=0;e<this.gridSize.h;e++)for(i=this._tileInCell[e][0],t=1;t<this.gridSize.w;t++)o=this._tileInCell[e][t],s=this._verticalSplitters[t-1][e],o===i?c.set(s,{visibility:"hidden"}):(c.set(s,{visibility:"visible"}),n=this._tileCellBox[i],r=this._tileCellBox[o],n.t!==r.t||n.h!==r.h||1!==r.h&&e!==r.t+Math.floor((r.h-1)/2)?a.remove(s,"removable"):(a.add(s,"removable"),0==(1&r.h)?a.add(s,"shiftDot"):a.remove(s,"shiftDot")),i=o);for(t=0;t<this.gridSize.w;t++)for(i=this._tileInCell[0][t],e=1;e<this.gridSize.h;e++)o=this._tileInCell[e][t],s=this._horizontalSplitters[e-1][t],o===i?c.set(s,{visibility:"hidden"}):(c.set(s,{visibility:"visible"}),n=this._tileCellBox[i],r=this._tileCellBox[o],n.l!==r.l||n.w!==r.w||1!==r.w&&t!==r.l+Math.floor((r.w-1)/2)?a.remove(s,"removable"):(a.add(s,"removable"),0==(1&r.w)?a.add(s,"shiftDot"):a.remove(s,"shiftDot")),i=o)},_getSplitterTopLocalUpperLimit:function(e,t){var i,n,o,r,a,s,l,c=t[this.gridSize.h];for(i=e+1,n=0;n<this.gridSize.w;n++,r=o)(o=this._tileInCell[i][n])!==r&&this._tileCellBox[o].t===i&&(a=this._tileCellBox[o].h,s=void 0,this._children[o]&&(s=this._children[o].properties.minimumHeight),void 0===s&&(s=this.minCellHeight*a),(l=t[i+a]-s)<c&&(c=l));return c},_getSplitterTopGlobalUpperLimit:function(e){var t,i=[];for(i.length=this.gridSize.h+1,i[this.gridSize.h]=this._rowTop[this.gridSize.h],t=this.gridSize.h-2;t>=e;t--)i[t+1]=this._getSplitterTopLocalUpperLimit(t,i);return i[e+1]},_getSplitterTopLocalLowerLimit:function(e,t){var i,n,o,r,a,s,l,c=t[0];for(i=e,n=0;n<this.gridSize.w;n++,r=o)(o=this._tileInCell[i][n])!==r&&(a=this._tileCellBox[o].h,this._tileCellBox[o].t+a-1===i&&(s=void 0,this._children[o]&&(s=this._children[o].properties.minimumHeight),void 0===s&&(s=this.minCellHeight*a),(l=t[i-a+1]+s)>c&&(c=l)));return c},_getSplitterTopGlobalLowerLimit:function(e){var t,i=[];for(i.length=this.gridSize.h+1,i[0]=this._rowTop[0],t=0;t<=e;t++)i[t+1]=this._getSplitterTopLocalLowerLimit(t,i);return i[e+1]},_getSplitterLeftLocalUpperLimit:function(e,t){var i,n,o,r,a,s,l,c=t[this.gridSize.w];for(n=e+1,i=0;i<this.gridSize.h;i++,r=o)(o=this._tileInCell[i][n])!==r&&this._tileCellBox[o].l===n&&(a=this._tileCellBox[o].w,s=void 0,this._children[o]&&(s=this._children[o].properties.minimumWidth),void 0===s&&(s=this.minCellWidth*a),(l=t[n+a]-s)<c&&(c=l));return c},_getSplitterLeftGlobalUpperLimit:function(e){var t,i=[];for(i.length=this.gridSize.w+1,i[this.gridSize.w]=this._columnLeft[this.gridSize.w],t=this.gridSize.w-2;t>=e;t--)i[t+1]=this._getSplitterLeftLocalUpperLimit(t,i);return i[e+1]},_getSplitterLeftLocalLowerLimit:function(e,t){var i,n,o,r,a,s,l,c=t[0];for(n=e,i=0;i<this.gridSize.h;i++,r=o)(o=this._tileInCell[i][n])!==r&&(a=this._tileCellBox[o].w,this._tileCellBox[o].l+a-1===n&&(s=void 0,this._children[o]&&(s=this._children[o].properties.minimumWidth),void 0===s&&(s=this.minCellWidth*a),(l=t[n-a+1]+s)>c&&(c=l)));return c},_getSplitterLeftGlobalLowerLimit:function(e){var t,i=[];for(i.length=this.gridSize.w+1,i[0]=this._columnLeft[0],t=0;t<=e;t++)i[t+1]=this._getSplitterLeftLocalLowerLimit(t,i);return i[e+1]},_superRemoveChild:function(e){f.prototype.removeChild.apply(this,[e])},getState:function(){return{gridDimensions:this.gridSize,tileCount:this._tileCount,tileCoverage:this._getTileCoverageAttr(),referenceWidth:this._referenceWidth||0,referenceHeight:this._referenceHeight||0,columnWeights:this._columnWeight.slice(0,this.gridSize.w),rowWeights:this._rowWeight.slice(0,this.gridSize.h),columnLeft:this._columnLeft.slice(0),rowTop:this._rowTop.slice(0)}},setState:function(e){var t,n,o,r,a;if(this.gridSize=e.gridDimensions||e.gridSize||{w:1,h:1},this._tileCount=e.tileCount||(e.tileCoverage?this._getTileCountFromTileCoverage(e.tileCoverage):this.gridSize.w*this.gridSize.h),this._referenceWidth=e.referenceWidth,this._referenceHeight=e.referenceHeight,this._columnWeight=this._assignWeights(this.gridSize.w,e.columnWeights),this._rowWeight=this._assignWeights(this.gridSize.h,e.rowWeights),e.columnLeft?this._columnLeft=e.columnLeft.slice(0):(this._columnLeft=[],this._columnLeft.length=this.gridSize.w+1,this._referenceWidth=0),e.rowTop?this._rowTop=e.rowTop.slice(0):(this._rowTop=[],this._rowTop.length=this.gridSize.h+1,this._referenceHeight=0),e.tileCellBox){for(this._tileCellBox=[],this._tileCellBox.length=e.tileCellBox.length,o=0;o<e.tileCellBox.length;o++)this._tileCellBox[o]=i.clone(e.tileCellBox[o]);for(this._tileInCell=this._allocateTileInCell(this.gridSize),o=0;o<this._tileCount;o++)this._recordTileInCell(this._tileInCell,this._tileCellBox[o],o)}else{if(e.tileCoverage)for(this._tileInCell=[],this._tileInCell.length=this.gridSize.h,r=0;r<this.gridSize.h;r++)this._tileInCell[r]=e.tileCoverage[r].slice(0,this.gridSize.w);else for(this._tileInCell=this._allocateTileInCell(this.gridSize),r=0,o=0;r<this.gridSize.h;r++)for(a=0;a<this.gridSize.w;a++,o++)this._tileInCell[r][a]=o;this._tileCellBox=this._getTileCellBoxesFromTileInCell(this._tileInCell)}for(t=this._children,this._children=[],this._children.length=this._tileCount,n=Math.min(t.length,this._children.length),o=0;o<n;o++)this._children[o]=t[o];for(;o<t.length;o++)if(t[o]){var s=t[o];this._superRemoveChild(s.widget),this.emit(_.CHILD_REMOVED,s.widget,s.properties),v.restoreStyle(s.widget)}this._clearTileConversionTables(),this._refreshSplitters(),this._updateSplitterVisibility(),this.layout()},_getTileCountFromTileCoverage:function(e){if("number"==typeof e)return e;var t=[].concat.apply([],e);return new Set(t).size},_assignWeights:function(e,t){var i,n,o=[];o.length=e;var r=0,a=0;for(i=0;i<e;i++)t&&t.length>i?o[i]=t[i]:o[i]=-1,o[i]>=0?r+=o[i]:a++;if(r>1&&(n=1/r,r=1),a>0||n){var s=a>0?(1-r)/a:0;for(i=0;i<e;i++)o[i]<0?o[i]=s:n&&(o[i]+=n)}return o},_allocateTileInCell:function(e){var t,i=[];for(i.length=e.h,t=0;t<e.h;t++)i[t]=[],i[t].length=e.w;return i},_setTileCoverageAttr:function(e){if(!this._areCoveragesEqual(e,this._tileInCell)){var t=this._convertTileCoverageToState(e),i=S.validateState(t);if(i.isValid){this._isSettingTileCoverage=!0;var n=this._prepareForGridSizeChange(t.gridDimensions),o=this._children;this.setState(t),this._redistributeChildren(o),this._reactToGridSizeChange(n),this.notifyStateWatchers("tileCoverage",{},this._tileInCell),this._isSettingTileCoverage=!1}else E.error(i.failureMessage)}},_getTileCoverageAttr:function(){var e,t=[];for(t.length=this._tileInCell.length,e=0;e<this._tileInCell.length;e++)t[e]=this._tileInCell[e].slice(0,this.gridSize.w);return t},_areCoveragesEqual:function(e,t){if(e.length!==t.length)return!1;var i,n;for(i=0;i<e.length;i++){if(e[i].length!==t[i].length)return!1;for(n=0;n<e[i].length;n++)if(e[i][n]!==t[i][n])return!1}return!0},_convertTileCoverageToState:function(e){var t={gridDimensions:{h:e.length,w:e[0].length},tileCoverage:e};return t.tileCount=this._getTileCellBoxesFromTileInCell(e).length,t},_getTileCellBoxesFromTileInCell:function(e){var t,i,n,o,r,a,s,l=[];for(t=0;t<e.length;t++)for(i=0;i<e[t].length;i++)if((n=e[t][i])>=l.length){for(o=t+1,s=1;o<e.length&&e[o][i]===n;o++,s++);for(r=i+1,a=1;r<e[t].length&&e[t][r]===n;r++,a++);l.push({l:i,t:t,w:a,h:s})}return l},_getTileInCellFromTileCellBoxes:function(e,t){for(var i=this._allocateTileInCell(e),n=0;n<this._tileCount;n++)this._recordTileInCell(i,t[n],n);return i},_queueGridSizeChangeNotification:function(e,t){e.w===t.w&&e.h===t.h||(this._pendingGridSizeNotification={oldSize:e,newSize:t})},_flushPendingNotifications:function(){var e,t=this;this._pendingGridSizeNotification&&(this.notifyStateWatchers("gridSize",this._pendingGridSizeNotification.oldSize,this._pendingGridSizeNotification.newSize),this.notifyStateWatchers("tileCoverage",{},this._tileInCell),delete this._pendingGridSizeNotification,e=!0),(this._pendingStateChangeNotification||e)&&(delete this._pendingStateChangeNotification,setTimeout((function(){t.emit(_.STATE_CHANGED),t.notifyStateWatchers("tileCoverage",{},t._tileInCell)}),0))},_prepareForGridSizeChange:function(e){},_reactToGridSizeChange:function(e){},_prepareForMerge:function(e,t){},_reactToMerge:function(e,t,i){},_prepareForSplit:function(e,t){},_reactToSplit:function(e,t,i){}});return S.GRID_SIZE="gridSize",S.ROW_WEIGHTS="rowWeights",S.COLUMN_WEIGHTS="columnWeights",S.TILE_COVERAGE="tileCoverage",S.ROW_MAJOR="rowMajor",S.COLUMN_MAJOR="columnMajor",S.VERTICAL="vertical",S.HORIZONTAL="horizontal",S.TILE_SPLIT="tile_split",S.TILES_MERGED="tiles_merged",S.areStatesSimilar=function(e,t){if(e.gridSize.w!==t.gridSize.w||e.gridSize.h!==t.gridSize.h||e.tileCount!==t.tileCount)return!1;var i,n,o;for(i=0;i<e.tileCount;i++)if(!g.areBoxesEqual(e.tileCellBox[i],t.tileCellBox[i]))return!1;for(o=0;o<e.columnWeights;o++)if(Math.abs(e.columnWeights[o]-t.columnWeights[o])>.005)return!1;for(n=0;n<e.rowWeights.length;n++)if(Math.abs(e.rowWeights[n]-t.rowWeights[n])>.005)return!1;return!0},S.validateState=function(e){var t={isValid:!0},i=e.gridDimensions||e.gridSize;if(e.tileCount<=0)return t.isValid=!1,t.failureMessage="tile count must be > 0",t;if(e.tileCount>i.w*i.h)return t.isValid=!1,t.failureMessage="tileCount must not exceed cell count",t;if(e.columnLeft&&e.columnLeft.length!=i.w+1)return t.isValid=!1,t.failureMessage="columnLeft must include entry for each column plus 1",t;if(e.rowTop&&e.rowTop.length!=i.h+1)return t.isValid=!1,t.failureMessage="rowTop must include entry for each row plus 1",t;if(e.tileCoverage){if(e.tileCoverage.length!=i.h)return t.isValid=!1,t.failureMessage="tileCoverage dimensions must match grid dimensions",t;for(var n=0;n<e.tileCoverage.length;n++){if(e.tileCoverage[n].length!=i.w)return t.isValid=!1,t.failureMessage="tileCoverage dimensions must match grid dimensions",t;for(var o=0;o<e.tileCoverage[n].length;o++){var r=e.tileCoverage[n][o];if(r<0||r>=e.tileCount)return t.isValid=!1,t.failureMessage="tileCoverage value not in range 0 - (tileCount - 1)",t}}}return t},S}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(212)],o=i.dj.d(n,(function(e){return function(t){var i=new e,n=0;return function e(){if(n===t.length)i.resolve();else{var o=t[n++]();o&&"function"==typeof o.then?o.then((function(){e()}),(function(){i.reject()})):o?e():i.reject()}}(),i.promise}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(227),i(222),i(223),i(206),i(248),i(215)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=e([l,o],{maxRows:5,maxColumns:5,occupancy:0,fillOrder:"rowMajor",_highlightedRows:0,_highlightedColumns:0,_lastSelectedRows:0,_lastSelectedColumns:0,buildRendering:function(){this.inherited(arguments),this.domNode.classList.add("gridPicker"),this.domNode.setAttribute("tabindex",0),this._createGrid()},postCreate:function(){this.inherited(arguments),this.domNode.addEventListener("mousemove",this._highlightSelection.bind(this),!0),this.domNode.addEventListener("click",this._commitSelection.bind(this)),this.domNode.addEventListener("mouseleave",this._clearHighlighting.bind(this))},getLastSelectedRowCount:function(){return this._lastSelectedRows},getLastSelectedColumnCount:function(){return this._lastSelectedColumns},navigate:function(e){var t=!1,i=!1;switch(0!==this._highlightedRows&&0!==this._highlightedColumns&&(t=!0),e.keyCode){case r.DOWN_ARROW:t?this.highlightCells(this._highlightedRows,this._highlightedColumns-1):this.highlightCells(0,0),i=!0;break;case r.UP_ARROW:t&&this.highlightCells(this._highlightedRows-2,this._highlightedColumns-1),i=!0;break;case r.RIGHT_ARROW:t&&this.highlightCells(this._highlightedRows-1,this._highlightedColumns),i=!0;break;case r.LEFT_ARROW:t&&this.highlightCells(this._highlightedRows-1,this._highlightedColumns-2),i=!0;break;case r.ENTER:this._commitSelection(),this._clearHighlighting(),i=!0;break;case r.TAB:t?this._highlightedColumns<this.maxColumns?this.highlightCells(this._highlightedRows-1,this._highlightedColumns):this._highlightedRows<this.maxRows&&this.highlightCells(this._highlightedRows,0):this.highlightCells(0,0),i=!0;break;case r.ESCAPE:this._clearHighlighting()}return i},highlightCells:function(e,t){var i,n,o=0;if(void 0!==e&&void 0!==t)if(this._highlightedRows=e+1,this._highlightedColumns=t+1,"rowMajor"===this.fillOrder)for(i=0;i<this.maxRows;i++)for(n=0;n<this.maxColumns;n++)i<=e&&n<=t?(this._cells[i][n].classList.add("selected"),o<this.occupancy?this._cells[i][n].classList.add("occupied"):this._cells[i][n].classList.remove("occupied"),o++):this._cells[i][n].classList.remove("selected");else for(n=0;n<this.maxColumns;n++)for(i=0;i<this.maxRows;i++)i<=e&&n<=t?(this._cells[i][n].classList.add("selected"),o<this.occupancy?this._cells[i][n].classList.add("occupied"):this._cells[i][n].classList.remove("occupied"),o++):this._cells[i][n].classList.remove("selected")},_createGrid:function(){var e,t,i;for(this._cells=[],this._cells.length=this.maxRows,e=0;e<this.maxRows;e++){for(this._cells[e]=[],this._cells[e].length=this.maxColumns,t=0;t<this.maxColumns;t++)(i=document.createElement("button")).setAttribute("id",this.id+"Cell"+e+"_"+t),i.setAttribute("tabindex","0"),this.domNode.appendChild(i),i.classList.add("cell"),i.row=e,i.col=t,this._cells[e][t]=i;if(e<this.maxRows){var n=document.createElement("br");this.domNode.appendChild(n)}}},_highlightSelection:function(e){var t=e.target.row,i=e.target.col;this.highlightCells(t,i)},_clearHighlighting:function(){var e,t;for(e=0;e<this._highlightedRows;e++)for(t=0;t<this._highlightedColumns;t++)this._cells[e][t].classList.remove("selected");this._highlightedRows=0,this._highlightedColumns=0},_commitSelection:function(){this._lastSelectedRows=this._highlightedRows,this._lastSelectedColumns=this._highlightedColumns,this.emit("gridSelectionChanged",{rows:this._lastSelectedRows,columns:this._lastSelectedColumns})},startup:function(){this.inherited(arguments)},destroy:function(){this.domNode.removeEventListener("mousemove",this._highlightSelection.bind(this),!0),this.domNode.removeEventListener("click",this._commitSelection.bind(this)),this.domNode.removeEventListener("mouseleave",this._clearHighlighting.bind(this)),this.inherited(arguments)}});return c.ROW_MAJOR="rowMajor",c.COLUMN_MAJOR="columnMajor",c.SELECTION_CHANGED="gridSelectionChanged",c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1046),i(355),i(562)],o=i.dj.d(n,(function(e,t,i,n){var o=e(null,{constructor:function(t){e.safeMixin(this,t),this.enabled=!1,this.selected=!1,this.text=n[t.id.replace("layout.","")+"Label"]}}),r=["layout.noSplit","layout.leftRightSplit","layout.topBottomSplit"],a=["layout.tabsToTop","layout.tabsToBottom","layout.tabsToLeft","layout.tabsToRight"],s=e(null,{constructor:function(e){var i,n=this;this.actionService=e,this.actions=[];var o=[t.NO_SPLIT,t.LEFT_RIGHT_SPLIT,t.TOP_BOTTOM_SPLIT];for(i=0;i<r.length;i+=1)this.actions.push(this._createSplitAction(r[i],o[i]));var s=["top","bottom","left","right"];for(i=0;i<a.length;i+=1)this.actions.push(this._createTabPositionAction(a[i],s[i]));this.actionService.loadActions(this.actions),this.actions.forEach((function(e){n.actionService.addActionChangeCallback(e.id,(function(t){"selected"===t.property&&(t.newValue&&!n._respondingToWatch?n.actionService.executeAction(e.id):e.updateSelection())}))}))},setContainer:function(e){var n=this;e?(this._documentContainer=e,e.on(i.CHILD_ADDED,(function(){n._updateSplitActionEnables()})),e.on(i.CHILD_REMOVED,(function(){n._updateSplitActionEnables()})),e.watch(t.ARRANGEMENT,(function(){n._respondingToWatch=!0,n._updateSplitActionSelections(),n._respondingToWatch=!1})),e.watch(t.TAB_POSITION,(function(){n._respondingToWatch=!0,n._updatePositionActionSelections(),n._respondingToWatch=!1}))):this._documentContainer&&(n._documentContainer=null),this._updateSplitActionSelections(),this._updateSplitActionEnables(),this._updatePositionActionEnables(),this._updatePositionActionSelections()},_createSplitAction:function(e,i){var n=this;return new o({id:e,callback:function(){n._documentContainer&&n._documentContainer.set(t.ARRANGEMENT,i)},updateSelection:function(){var e=!1;n._documentContainer&&(e=n._documentContainer.get(t.ARRANGEMENT)===i),n.actionService.updateAction(this.id,{selected:e})}})},_createTabPositionAction:function(e,i){var n=this,r=new o({id:e,callback:function(){n._documentContainer&&(n._documentContainer.set(t.TAB_POSITION,i),r.updateSelection())},updateSelection:function(){n._documentContainer&&n.actionService.updateAction(this.id,{selected:n._documentContainer.get(t.TAB_POSITION)===i})}});return r},_updateSplitActionEnables:function(){var e={enabled:!!this._documentContainer&&this._documentContainer.getDocumentCount()>=2};this.actionService.updateAction("layout.noSplit",{enabled:!!this._documentContainer}),this.actionService.updateAction("layout.leftRightSplit",e),this.actionService.updateAction("layout.topBottomSplit",e)},_updateSplitActionSelections:function(){var e;for(e=0;e<3;e+=1)this.actions[e].updateSelection()},_updatePositionActionEnables:function(){var e=this,t={enabled:!!this._documentContainer};a.forEach((function(i){e.actionService.updateAction(i,t)}))},_updatePositionActionSelections:function(){var e;for(e=3;e<this.actions.length;e+=1)this.actions[e].updateSelection()}});return s.NO_SPLIT="layout.noSplit",s.LEFT_RIGHT_SPLIT="layout.leftRightSplit",s.TOP_BOTTOM_SPLIT="layout.topBottomSplit",s.TABS_TO_TOP="layout.tabsToTop",s.TABS_TO_BOTTOM="layout.tabsToBottom",s.TABS_TO_LEFT="layout.tabsToLeft",s.TABS_TO_RIGHT="layout.tabsToRight",s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(221),i(257),i(206),i(384),i(248),i(228),i(210),i(217),i(213),i(231),i(276),i(464),i(2874),i(655),i(344),i(355),i(387),i(882),i(1050),i(2875),i(656),i(773),i(2876),i(775),i(562)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A){var x=e([T],{constructor:function(e){this._ArrangeableBorderContainer=e},_continueDrag:function(e){var t,i,n,o,r,a,s=d.position(this._ArrangeableBorderContainer.domNode);if(s.l=s.x,s.t=s.y,this._ArrangeableBorderContainer.getChildInRegion("top")&&(n=this._ArrangeableBorderContainer.getFreeDimension("top"),s.t+=n,s.h-=n),e.pageX>=s.l&&e.pageX<=s.l+s.w&&e.pageY>=s.t&&e.pageY<=s.t+s.h){switch(o=r=s.w/8,a=s.h/8,this._originInfo.region){case"left":o=Math.min(o,this._originInfo.containerSize.w);break;case"right":r=Math.min(r,this._originInfo.containerSize.w);break;case"bottom":a=Math.min(a,this._originInfo.containerSize.h)}!this._ArrangeableBorderContainer._getPanelContainerInRegion("left")&&e.pageX<s.l+o?t="left":!this._ArrangeableBorderContainer._getPanelContainerInRegion("right")&&e.pageX>s.l+s.w-r?t="right":!this._ArrangeableBorderContainer._getPanelContainerInRegion("bottom")&&e.pageY>s.t+s.h-a&&e.pageX>s.l+this._ArrangeableBorderContainer.getFreeDimension("left")&&e.pageX<s.l+s.w-this._ArrangeableBorderContainer.getFreeDimension("right")&&(t="bottom")}t&&this._isDragInPermitted(this._originInfo,t)&&(this._originInfo.region===t&&(i=this._originInfo.container),i||(i=this._ArrangeableBorderContainer._createPanelContainer(t)),this._ArrangeableBorderContainer._addPanelContainer(i,t,this._originInfo.widget)),this.inherited(arguments)},_endDrag:function(){var e=this._originInfo.widget;this.inherited(arguments);var t=this._ArrangeableBorderContainer._getPanelContainerAncestor(e);e.properties&&t&&e.properties.set(_.REGION,t.region)},_positionPanel:function(e){var t,i,n=d.position(this._ArrangeableBorderContainer.domNode);e.t<n.y?e.t=n.y:(t=n.y+n.h-20,e.t>t&&(e.t=t)),e.l<n.x?e.l=n.x:(i=n.x+n.w-20,e.l>i&&(e.l=i)),this.inherited(arguments)},_clearOriginInfo:function(){this._originInfo.container.isEmpty()&&this._ArrangeableBorderContainer._destroyPanelContainer(this._originInfo.container),this.inherited(arguments)},_isDragInPermitted:function(e,t){return!("bottom"===t&&!this._ArrangeableBorderContainer._hasCenterChild())&&this.inherited(arguments)}}),N={left:"isLeftCollapsed",right:"isRightCollapsed",bottom:"isBottomCollapsed"},L={left:"leftWidth",right:"rightWidth",bottom:"bottomHeight"},D=e([f,I],{FixedProperties:void 0,design:"sidebar",enableOnTopExpand:!0,supportFooter:!0,DynamicProperties:void 0,constructor:function(){this._panelDragger=new x(this),this._pendingPanelIdToRegionMap={},this._requestedDimension={}},postMixInProperties:function(){this.inherited(arguments),this.selectionManager||(this.selectionManager=new S),this.selectionManager.registerContainer(this)},buildRendering:function(){this.inherited(arguments),c.add(this.domNode,"movableBorderContainer"),c.add(this.domNode,"mainContainer")},addWithProperties:function(e,t){var i=t.region;this._isInternalAdd||"center"===i||"top"===i?this.inherited(arguments):(e.region=i,this._bindPanelProperties(e,t),this.addChild(e))},addChild:function(e){var t,i,n,o,r,a=e.region;if(this._isInternalAdd||"center"===a||"top"===a)return this.inherited(arguments),void this._updateBottomContainer();if(this._bindPanelProperties(e,e),e.properties.panelId||(e.properties.panelId=e.layoutId),this.isRestoringState()){for(t=["left","right","bottom"],i=0;i<t.length&&!o;i+=1)(n=this._getPanelContainerInRegion(t[i]))&&n.isExpecting(e.properties.panelId)&&(this._addToPanelContainer(n,e),o=!0,e.properties.set(_.REGION,t[i]));if(o)return}(r=this._pendingPanelIdToRegionMap[e.properties.panelId])&&(a=r,delete this._pendingPanelIdToRegionMap[e.properties.panelId]),this._addToBorder(e,a)},removeChild:function(e){var t=e.region;this._isInternalRemove||"center"===t||"top"===t?(this.inherited(arguments),this._updateBottomContainer()):(this._getPanelContainerAncestor(e).removePanel(e,e.properties),e._unbindPanelProperties&&e._unbindPanelProperties())},removeAllPanels:function(e){var t=this;["left","right","bottom"].forEach((function(i){var n=t._getPanelContainerInRegion(i);n&&(n.removeAll(e),t._removePanelContainer(i))}))},setFooter:function(e){var t=this.getChildInRegion("bottom");t&&t.isInstanceOf(g)?t.setFooter(e):e?this._addFooterToBottom(e):this._removeFooterFromBottom()},getFooter:function(){var e=this.getChildInRegion("bottom");return e?e.getFooter():null},getState:function(e){var t=e?{}:this.inherited(arguments),n=this;return["left","right","bottom"].forEach((function(o){var r=n._getPanelContainerInRegion(o);r&&(t[o]||(t[o]={}),i.mixin(t[o],r.getState(e)),e&&n._containsOnly(r,e)&&(t[o].border=n._getBorderState(n._borderInfo[o])),n.get(N[o])&&(t[o].isCollapsed=!0))})),t},setState:function(e,t,i){var n,o,r,a,s=this,l=[];n=[],this._isInSetState=!0,["left","right","bottom"].forEach((function(o){if(r=s._getPanelContainerInRegion(o))r.getPanels().forEach((function(a){var c=a.properties||a;l.push(c.panelId),i||c.setId!==t||e[o]&&s._stateIncludes(o,e[o],c.panelId)||(a.originalRegion=o,n.push(a),r.removePanel(a,c))})),!e[o]&&r.isEmpty()&&(s._removePanelContainer(o),r=null);else if(e[o]){var a=e[o].children||e[o].panels;a&&a.length>0&&(r=s._createPanelContainer(o),s._addPanelContainer(r,o))}r&&e[o]&&r.setState(e[o],t)})),n.length>0&&(o=[],n.forEach((function(t){var i=!1,n=t.properties||t;["left","right","bottom"].forEach((function(o){e[o]&&s._stateIncludes(o,e[o],n.panelId)&&(s._addToPanelContainer(s._getPanelContainerInRegion(o),t),n.set(_.REGION,o),i=!0)})),i||o.push(t)})),o.forEach((function(e){(e.properties||e).set(_.IS_OPEN,!1)})),n.forEach((function(e){delete e.originalRegion}))),t?(a=d.getContentBox(this.domNode,this.computedStyle),["left","right","bottom"].forEach((function(t){if(e[t]&&e[t].border&&("bottom"===t?s._restoreBorderState(t,e[t].border,e.referenceHeight===a.h,e.referenceHeight):s._restoreBorderState(t,e[t].border,e.referenceWidth===a.w,e.referenceWidth)),e[t]&&e[t].isCollapsed){var i=s.animationEnabled;s.animationEnabled=!1,s.set(N[t],!0),s.animationEnabled=i}}))):this.inherited(arguments),["left","right","bottom"].forEach((function(t){if(e[t]){var i=e[t].children||e[t].panels;i&&i.forEach((function(e){var i=e.id||e.panelId;l.indexOf(i)<0&&(s._pendingPanelIdToRegionMap[i]=t)}))}})),this._isInSetState=!1},isRestoringState:function(){var e=!1;if(this.inherited(arguments))e=!0;else{var t,i=this;["left","right","bottom"].forEach((function(n){(t=i._getPanelContainerInRegion(n))&&t.isInstanceOf(E)&&t.isRestoringState()&&(e=!0)}))}return e},endStateRestore:function(){var e=this;["left","right","bottom"].forEach((function(t){var i=e._getPanelContainerInRegion(t);i&&i.isEmpty()&&e._removePanelContainer(t)}))},revealChild:function(e){this.enableOnTopExpand&&this.isCollapsed(e.region)||this.inherited(arguments)},getOccupiedBorders:function(){var e=this,t=[];return["left","right","bottom"].forEach((function(i){e.getChildInRegion(i)&&t.push(i)})),t},_addToBorder:function(e,t){var i=this._getPanelContainerInRegion(t);i||(i=this._createPanelContainer(t),this._addPanelContainer(i,t,e),this.emit("regioncontainercreated",{region:t})),this._addToPanelContainer(i,e)},_addToPanelContainer:function(e,t){e.addPanel(t,t.properties),this.isCollapsed(e.region)||t.properties.set(_.IS_SHOWING,!0)},_bindCenterProperties:function(e){this.inherited(arguments);var t=this;if(e.watch&&e.set&&e.get){var i=e.watch(_.IS_COLLAPSED,(function(e,i,n){n?t._detectPanelMaximize():["left","right","bottom"].forEach((function(e){var i=t._getPanelContainerInRegion(e);i&&i.getPanelProperties().forEach((function(e){t._clearIsMaximized(e)}))}))})),n=this._unbindCenterProperties;this._unbindCenterProperties=function(){n&&n(),i.remove()}}},_bindPanelProperties:function(e,t){var i=this;if(!e._unbindPanelProperties&&t.watch&&t.set&&t.get){e.properties=t;var n=[];n.push(t.watch(_.IS_OPEN,(function(n,o,r){if(!r&&(e._unbindPanelProperties(),t.region)){var a=i.getFreeDimension(t.region);"left"===t.region||"right"===t.region?t.__lastWidth=a:t.__lastHeight=a}}))),n.push(t.watch(_.REGION,(function(n,o,r){var a=i._getPanelContainerAncestor(e);a.region!==r&&(a.removePanel(e,t),null!=t.index&&delete t.index,i._addToBorder(e,r)),i._getPanelContainerInRegion(r).getPanelProperties().forEach((function(e){i._clearIsMaximized(e)}))}))),n.push(t.watch(_.IS_COLLAPSED,(function(e,n,o){if(o)i._clearIsMaximized(t),i._detectPanelMaximize();else if(!i._panelDragger._originInfo||i._panelDragger._originInfo.properties!==t){var r=i._getPanelContainerInRegion(t.region);r&&r.getPanelProperties().forEach((function(e){e!==t&&i._clearIsMaximized(e)}))}}))),n.push(t.watch(_.IS_MAXIMIZED,(function(n,o,r){i._started&&(r?(["left","right","bottom"].forEach((function(e){if(t.region!==e){var n=i._getPanelContainerInRegion(e);n&&(n.hideOnTopPanels(),n.getPanelProperties().forEach((function(e){if(e.get(_.IS_MAXIMIZED)){var t=b.isAnimationEnabled();b.disableLayoutAnimation(),e.set(_.IS_MAXIMIZED,!1),t&&b.enableLayoutAnimation()}})))}})),y.maximizeGlobally(e)):i._clearingMaximized||y.restoreGlobally(e))}))),e._unbindPanelProperties=function(){n.forEach((function(e){e.remove()})),delete e.properties,delete e._unbindPanelProperties}}this.supportFooter||(t._globalActionsSupplier={getActions:function(){actions=[];var t=i._getPanelContainerAncestor(e);if(t){var n=t.region,o=t.isContainerCollapsed(),r={enabled:!0,callback:function(){i.set(N[n],!o)}};r.text="bottom"===n?o?A.expandBottomPanel:A.collapseBottomPanel:o?A.expandSidePanel:A.collapseSidePanel,actions.push(r)}return actions}})},_createPanelContainer:function(e){var t="bottom"===e?this._createBottomContainer():this._createSideContainer(e);this._panelDragger.attach(t);var i=this;return t.on(v.CHILD_ADDED,(function(n,o){t!==i.getChildInRegion(e)&&i._addPanelContainer(t,e),t.getPanelProperties().forEach((function(e){e!==o&&i._clearIsMaximized(e)})),i.emit(v.CHILD_ADDED,n,o)})),t.on(v.CHILD_REMOVED,(function(n,o){!i._isInSetState&&t.isEmpty()&&i._removePanelContainer(e),i.emit(v.CHILD_REMOVED,n,o)})),t.on(v.STATE_CHANGED,(function(){i.emit(v.STATE_CHANGED)})),this.enableOnTopExpand&&(t.on(v.EXPAND_ALL,(function(){i.set(N[e],!1)})),t.on(v.COLLAPSE_ALL,(function(){i.set(N[e],!0)}))),t},_createSideContainer:function(e){return new w({id:this.id+e+"SideContainer",region:e,enableOnTopExpand:this.enableOnTopExpand,panelSetTitles:this.panelSetTitles,animationEnabled:this.animationEnabled,borderOptions:this.borderOptions?this.borderOptions[e]:null,reserveSpaceForTabs:!!this.supportFooter})},_createBottomContainer:function(){return new g({id:this.id+"BottomContainer",hasNeighborAbove:this._hasCenterChild(),enableOnTopExpand:this.enableOnTopExpand,animationEnabled:this.animationEnabled,borderOptions:this.borderOptions?this.borderOptions.bottom:null,supportFooter:this.supportFooter})},_getPanelContainerAncestor:function(e){for(var t=e.getParent();t;){if(t.isInstanceOf(C))return t;if(t.parentBar)return this.getChildInRegion(t.parentBar.region);t=t.getParent()}return null},_setIsLeftCollapsedAttr:function(e){this._setIsRegionCollapsed("left",e)},_getIsLeftCollapsedAttr:function(){return this._getIsRegionCollapsed("left")},_setIsRightCollapsedAttr:function(e){this._setIsRegionCollapsed("right",e)},_getIsRightCollapsedAttr:function(){return this._getIsRegionCollapsed("right")},_setIsBottomCollapsedAttr:function(e){this._setIsRegionCollapsed("bottom",e)},_getIsBottomCollapsedAttr:function(){return this._getIsRegionCollapsed("bottom")},_setIsRegionCollapsed:function(e,t){var i=this._borderInfo[e];i&&i.properties&&i.properties.set(_.IS_COLLAPSED,t)},_getIsRegionCollapsed:function(e){var t=this._borderInfo[e];return!(!t||!t.properties)&&t.properties.get(_.IS_COLLAPSED)},_setLeftWidthAttr:function(e){this._setRegionDimension("left",e)},_getLeftWidthAttr:function(){return this._getRegionDimension("left")},_setRightWidthAttr:function(e){this._setRegionDimension("right",e)},_getRightWidthAttr:function(){return this._getRegionDimension("right")},_setBottomHeightAttr:function(e){this._setRegionDimension("bottom",e)},_getBottomHeightAttr:function(){return this._getRegionDimension("bottom")},_setRegionDimension:function(e,t){this._requestedDimension[e]=t,this.getChildInRegion(e)&&this.setFreeDimension(e,this._convertToAbsoluteDimension(e,t))},_getRegionDimension:function(e){return this.getChildInRegion(e)?this.getFreeDimension(e):this._requestedDimension[e]},_clearIsMaximized:function(e){e.get(_.IS_MAXIMIZED)&&(this._clearingMaximized=!0,e.set(_.IS_MAXIMIZED,!1),this._clearingMaximized=!1)},_detectPanelMaximize:function(){if(this.isCollapsed("center")){var e,t,i=["left","right","bottom"];for(t=0;t<i.length;t++)if(!this.isCollapsed(i[t])){if(e)return;e=i[t]}if(e){if("bottom"===e)this._getPanelContainerInRegion(e).getPanelProperties().forEach((function(e){e.get(_.IS_SHOWING)&&(n=e)}));else{var n,o=this._getPanelContainerInRegion(e).getPanelProperties();for(t=0;t<o.length;t++)if(!o[t].get(_.IS_COLLAPSED)){if(n)return;n=o[t]}}if(n&&!n.get(_.IS_MAXIMIZED)){this._clearingMaximized=!0,n.set(_.IS_MAXIMIZED,!0);var r=this._borderInfo[e];r.isExpanded=!0,r.regionsCollapsedUponExpand=null,this._clearingMaximized=!1}}}},_convertToAbsoluteDimension:function(e,t){if(t<1){var i=d.getContentBox(this.domNode,this.computedStyle);"left"===e||"right"===e?i.w>0&&(t=Math.floor(t*i.w)):i.h>0&&(t=Math.floor(t*i.h))}return t},_addPanelContainer:function(e,t,n){var o,r=this;"bottom"===t&&(o=this._removeFooterFromBottom())&&e.setFooter(o);var s=e.isContainerCollapsed(),l=new a({region:t,hasSplitter:!0,isResizable:!0,isCollapsible:!0,isProportional:!0,minSize:120});this.borderOptions&&this.borderOptions[t]&&i.mixin(l,this.borderOptions[t]);var c=this._requestedDimension[t];if(!c&&n&&(c="left"===t||"right"===t?n.properties.__lastWidth||n.properties.preferredWidth:n.properties.__lastHeight||n.properties.preferredHeight),c&&c>0&&c<1&&(l.proportion=c),l.watch(_.IS_COLLAPSED,(function(i,n,o){r.notifyStateWatchers(N[t],n,o),e.collapseChange(o),r._handleRegionCollapseChange(t,o)})),l.watch("freeDimension",(function(e,i,n){r.notifyStateWatchers(L[t],i,n)})),this._isInternalAdd=!0,this.addWithProperties(e,l),this._isInternalAdd=!1,void 0!==c){if(n&&c<=0){var d=m.measure(n.domNode,this.domNode);c="left"===t||"right"===t?d.w:side.h}c>=1&&this.setFreeDimension(t,c)}s&&this.collapse(t)},_removePanelContainer:function(e){var t,i=this._getPanelContainerInRegion(e);i&&(this._isInternalRemove=!0,this.removeChild(i),this._isInternalRemove=!1,"bottom"===e&&(t=i.getFooter())&&(i.setFooter(null),this._addFooterToBottom(t)),this._panelDragger._originInfo&&this._panelDragger._originInfo.container===i||this._destroyPanelContainer(i))},_destroyPanelContainer:function(e){e.destroyRecursive(),e.collapsedWidget&&e.collapsedWidget.destroyRecursive()},hasPanelInRegion:function(e){var t=this._getPanelContainerInRegion(e);return t&&t.getPanelCount()>0},_getPanelContainerInRegion:function(e){var t=this.getChildInRegion(e);return t&&t.isInstanceOf(C)?t:null},_hasCenterChild:function(){return!!this.getChildInRegion("center")},_handleRegionCollapseChange:function(e,t){var i=this;t?(this._getPanelContainerInRegion(e).getPanelProperties().forEach((function(e){i._clearIsMaximized(e)})),i._detectPanelMaximize()):["left","right","bottom"].forEach((function(t){if(e!==t){var n=i._getPanelContainerInRegion(t);n&&n.getPanelProperties().forEach((function(e){i._clearIsMaximized(e)}))}}))},_updateBottomContainer:function(){var e=this._getPanelContainerInRegion("bottom");e&&e.set("hasNeighborAbove",this._hasCenterChild())},_addFooterToBottom:function(e){var t=new p({id:this.id+"FooterContainer"});c.add(t.domNode,"footerContainer"),u.set(t.domNode,{height:"22px"}),t.addChild(e),t.getFooter=function(){return e},this._isInternalAdd=!0,this.addWithProperties(t,{region:"bottom",hasSplitter:!1,isResizable:!1}),this._isInternalAdd=!1},_removeFooterFromBottom:function(){var e,t=this.getChildInRegion("bottom");return t&&(this._isInternalRemove=!0,this.removeChild(t),this._isInternalRemove=!1,e=t.getChildren()[0],t.removeChild(e),t.destroyRecursive()),e},_stateIncludes:function(e,t,i){return"bottom"===e?g.stateIncludes(t,i):w.stateIncludes(t,i)},_containsOnly:function(e,t){var i,n=e.getPanels();for(i=0;i<n.length;i++)if(!n[i].properties||n[i].properties.setId!==t)return!1;return!0}});return D.IS_LEFT_COLLAPSED="isLeftCollapsed",D.IS_RIGHT_COLLAPSED="isRightCollapsed",D.IS_BOTTOM_COLLAPSED="isBottomCollapsed",D.LEFT_WIDTH="leftWidth",D.RIGHT_WIDTH="rightWidth",D.BOTTOM_HEIGHT="bottomHeight",D.REGION_IS_COLLAPSED={left:"isLeftCollapsed",right:"isRightCollapsed",bottom:"isBottomCollapsed"},D.stateIncludes=function(e,t){return e.left&&w.stateIncludes(e.left,t)||e.right&&w.stateIncludes(e.right,t)||e.bottom&&g.stateIncludes(e.bottom,t)},D}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(272),i(216),i(215),i(231),i(361),i(377),i(2880)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([n,t,i,r],{templateString:s,postCreate:function(){a.refuseFocus(this.domNode)},addChild:function(e){arguments[1]=void 0,this.inherited(arguments),this._blockPlacement||this._placeChild(e,e.index,e.region)},addToLeft:function(e,t){this._addWithoutPlacing(e),this._placeChild(e,t,"left")},addToRight:function(e,t){this._addWithoutPlacing(e),this._placeChild(e,t,"right")},_addWithoutPlacing:function(e){this._blockPlacement=!0,this.addChild(e),this._blockPlacement=!1},_placeChild:function(e,t,i){"right"===i?e.placeAt(this.rightNode,t>0?t:"first"):e.placeAt(this.leftNode,t)},removeChild:function(e,t,i){e||(void 0===t&&(t="right"===i?0:this.leftNode.children.length-1),e=this._getChildAt(i,t)),this.inherited(arguments)},removeFromLeft:function(e){this.removeChild(null,e,"left")},removeFromRight:function(e){this.removeChild(null,e,"right")},_getChildAt:function(e,t){var i,n="right"===e?this.rightNode:this.leftNode;return n.children.length>t&&(i=o.byNode(n.children[t])),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{AlwaysCommit:"auto",BatchCommit:"batch",ManualCommit:"manual"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t(e,null,[{key:"assert",value:function(t,i){Boolean(i[0])||((i=Array.prototype.slice.call(i)).shift(),e.throwError(t,i))}},{key:"throwError",value:function(t,i){var n=i[0];n||e.throwError("InternalAssertion"),(i=Array.prototype.slice.call(i)).shift();var o=t?t[n]:void 0,r=o?o.replace(/\$\{(\d+)\}/g,(function(e,t){return i[t]})):n+i,a=new Error(r);throw a.messageID=n,console.error("Err: "+r),a}}]),e}();e.default=i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(777),i(564)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=l(t),a=l(i),s=l(n);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var d=function(e){function t(e,i,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,new Map,i,n,o));return r._keyGetter=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),c(t,[{key:"at",value:function(e){return this._collection.get(e)}},{key:"find",value:function(e){var t=this._keyGetter(e);if((0,n.areEqual)(this,this._collection.get(t),e))return t}},{key:"genericAdd",value:function(e){this.insert(e)}},{key:"genericRemove",value:function(e){this.eraseValue(e)}},{key:"insert",value:function(e){r.default.isUndefined(e)||void 0===this.find(e)&&(this._basicAdd(e),this._opposite?(0,o.inverseAdd)(e,this._owner,this._opposite):(0,n.isComposite)(this)&&(0,o.setContainedByThis)(this._owner,e,this._property))}},{key:"eraseValue",value:function(e){r.default.isUndefined(e)||this.erase(this.find(e))}},{key:"erase",value:function(e){if(r.default.isUndefined(e)||!this._collection.has(e))return 0;(0,n.modifying)(this);var t=this._collection.get(e);return this._opposite?(0,o.inverseRemove)(t,this._owner,this._opposite):(0,n.isComposite)(this)&&(0,o.basicSetContainer)(t,null,null,null),this._collection.delete(e),1}},{key:"size",value:function(){return this._collection.size}},{key:"clear",value:function(){var e=this;this._collection.forEach((function(t,i){return e.erase(i)}))}},{key:"forEach",value:function(e){this._collection.forEach(e)}},{key:"getKind",value:function(){return mf.zero.CollectionKind.Map}},{key:Symbol.iterator,value:function(){return this._collection[Symbol.iterator]()}},{key:"_basicAdd",value:function(e){var t=this._keyGetter(e);this._collection.get(t)&&a.default.throwErr("UniquenessConstraint"),(0,n.modifying)(this),this._collection.set(t,e),(0,n.isDataType)(this)&&(e.__isSealed=!0)}},{key:"_basicRemove",value:function(e){(0,n.modifying)(this);var t=this._keyGetter(e);this._collection.delete(t)}},{key:"_basicClear",value:function(){(0,n.modifying)(this),this._collection.clear()}},{key:"_copyContents",value:function(e){(0,n.modifying)(this),this._collection=new Map(e)}},{key:"_clone",value:function(){return new Map(this._collection)}}]),t}(s.default);e.default=d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(777),i(564)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(t),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var l=function(e){function t(e,i,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,new Map,i,n,o));return r._keyGetter=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"find",value:function(e){var t=this._keyGetter(e),n=this._collection.get(t);if(o.default.isArray(n)){var r=(0,i.arrIndexOf)(n,e,(0,i.isDataType)(this));if(-1!==r)return{key:t,idx:r}}}},{key:"genericAdd",value:function(e){this.insert(e)}},{key:"genericRemove",value:function(e){this.eraseValue(e)}},{key:"insert",value:function(e){o.default.isUndefined(e)||(this.find(e)||(this._basicAdd(e),this._opposite?(0,n.inverseAdd)(e,this._owner,this._opposite):(0,i.isComposite)(this)&&(0,n.setContainedByThis)(this._owner,e,this._property)))}},{key:"eraseValue",value:function(e){o.default.isUndefined(e)||this.erase(this.find(e))}},{key:"erase",value:function(e){if(o.default.isUndefined(e)||!this._collection.has(e.key)||o.default.isUndefined(this._collection.get(e.key)[e.idx]))return 0;(0,i.modifying)(this);var t=this._collection.get(e.key)[e.idx];return this._opposite?(0,n.inverseRemove)(t,this._owner,this._opposite):(0,i.isComposite)(this)&&(0,n.basicSetContainer)(t,null,null,null),this._collection.get(e.key).splice(e.idx,1),1}},{key:"size",value:function(){var e=0;return this._collection.forEach((function(t){e+=t.length})),e}},{key:"clear",value:function(){var e=this;this._collection.forEach((function(t,i){t.forEach((function(t,n){return e.erase({key:i,idx:n})}))}))}},{key:"equal_range",value:function(e){return o.default.clone(this._collection.get(e))}},{key:"forEach",value:function(e){!function(e,t){e.forEach((function(i,n){i.forEach((function(i,o){t(i,{key:n,idx:o},e)}))}))}(this._collection,e)}},{key:"getKind",value:function(){return mf.zero.CollectionKind.Multimap}},{key:Symbol.iterator,value:function(){var e=this,t=this._collection.keys(),i=void 0,n=void 0,o=void 0,r=void 0;return{next:function(){return(r>=o||!r)&&(i=t.next(),n=i.value?e._collection.get(i.value):[],o=n.length,r=0),{value:[i.value,n[r++]],done:i.done}}}}},{key:"_basicAdd",value:function(e){(0,i.modifying)(this);var t=this._keyGetter(e);(0,i.isDataType)(this)&&(e.__isSealed=!0),this._collection.has(t)?this._collection.get(t).push(e):this._collection.set(t,[e])}},{key:"_basicRemove",value:function(e){(0,i.modifying)(this);var t=this._keyGetter(e),n=this._collection.get(t)||[],o=(0,i.arrIndexOf)(n,e,(0,i.isDataType)(this));-1!==o&&n.splice(o,1)}},{key:"_basicClear",value:function(){(0,i.modifying)(this),this._collection.clear()}},{key:"_copyContents",value:function(e){(0,i.modifying)(this);var t=this._collection;t.clear(),e.forEach((function(e,i){return t.set(i,o.default.clone(e))}))}},{key:"_clone",value:function(){var e=new Map;return this._collection.forEach((function(t,i){return e.set(i,o.default.clone(t))})),e}}]),t}(r.default);e.default=l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(309),i(777)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(t),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var s=function(e){function t(e,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return o._filter=n||function(){return!0},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"insert",value:function(e){this._filter&&!this._filter(e)&&n.default.throwErr("CannotAddIncompatibleObjectSubset"),mf.zero.CollectionKind.Sequence===this._collection.getKind()?this._collection.push(e):this._collection.insert(e)}},{key:"genericAdd",value:function(e){this.insert(e)}},{key:"genericRemove",value:function(e){this.erase(e)}},{key:"find",value:function(e){if(!this._filter||this._filter(e))return this._collection.find(e)}},{key:"erase",value:function(e){this._filter(e)&&(mf.zero.CollectionKind.Map===this._collection.getKind()||mf.zero.CollectionKind.Multimap===this._collection.getKind()?this._collection.eraseValue(e):this._collection.erase(e))}},{key:"clear",value:function(){var e=this;this.forEach((function(t){return e.erase(t)}))}},{key:"_basicClear",value:function(){this.clear()}},{key:"size",value:function(){return this.getAllValues().length}},{key:"getKind",value:function(){return mf.zero.CollectionKind.SubsettedElementSet}},{key:"forEach",value:function(e){var t=this;this._collection.forEach((function(i){t._filter(i)&&e(i)}))}},{key:"copyContents",value:function(e){}},{key:Symbol.iterator,value:function(){return this._collection[Symbol.iterator]()}}]),t}(o.default);e.default=s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(610)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(t);function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=/^probe@/,a={none:i.none,all:i.all,parameter:i.parameter,debug:i.debug,info:i.info,event:i.event,entryexit:i.scope_entry|i.scope_exit|i.return_value,warning:i.warning,error:i.error,critical:i.critical,fatal:i.fatal},s=function(){function e(t){n(this,e),this.settings=[];var i=t[0];if(i===t[t.length-1]&&("'"!==i&&'"'!==i||(t=t.replace(new RegExp("^"+i),"").replace(new RegExp(i+"$"),""))),t.length>0){var o=t.split(";"),s=!0,c=!1,d=void 0;try{for(var u,h=o[Symbol.iterator]();!(s=(u=h.next()).done);s=!0){var p=u.value,f=p.split("=");if(2!==f.length)throw new Error("Bad log spec: "+p);var g=f[0],m=f[1].split(","),_=0,v=!0,b=!1,y=void 0;try{for(var C,T=m[Symbol.iterator]();!(v=(C=T.next()).done);v=!0){var E=C.value;if(!r.test(E)){if(void 0===a[E])throw new Error("Bad channel setting: "+E);_|=a[E]}}}catch(e){b=!0,y=e}finally{try{!v&&T.return&&T.return()}finally{if(b)throw y}}this.settings.push(new l(g,_))}}catch(e){c=!0,d=e}finally{try{!s&&h.return&&h.return()}finally{if(c)throw d}}this.settings.reverse()}}return o(e,[{key:"getVerbosity",value:function(e){var t=this.settings.find((function(t){return t.test(e)}));return void 0===t?i.none:t.verbosity}}]),e}(),l=function(){function e(t,i){n(this,e),"^"!==t[0]&&(t="^"+t),"$"!==t[t.length-1]&&(t+="$"),this._regex=new RegExp(t),this._verbosity=i}return o(e,[{key:"test",value:function(e){return this._regex.test(e)}},{key:"verbosity",get:function(){return this._verbosity}}]),e}();e.default=s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(1739)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s(t),r=s(i),a=s(n);function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.setUuid(e),i.isValid=!0,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"setUuid",value:function(e){this.uuid=e||o.default.generateRandomUuid()}},{key:"_invalidate",value:function(){this.isValid=!1}},{key:"getModel",value:function(){r.default.throwErr("Implement")}}],[{key:"setInvalidateCallback",value:function(e){t.callback||(t.callback=e)}}]),t}(a.default);e.default=c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1740)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=(i=t)&&i.__esModule?i:{default:i};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"hasPropertyValue",value:function(e){var t=this["_"+e.name];return e.isSingleValued()?t:t&&!t.isEmpty()}},{key:"getPropertyValue",value:function(e){return e&&e._isInstOfExtension()&&this.getMetaClass().isA(e.owner.owningClass)?this.getExtension(e.name):this[e.name]}},{key:"setPropertyValue",value:function(e,t){e&&e._isInstOfExtension()?this.getMetaClass().isA(e.owner.owningClass)&&this.setExtension(e.name,t):this[e.name]=t}}]),t}(n.default);e.default=s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mixIn=function(e,t){o(e,t.global),t.__init&&"function"==typeof t.__init&&(void 0===e.prototype._mixInits&&(e.prototype._mixInits=[]),e.prototype._mixInits.push(t.__init));return o(e.prototype,n.default.omit(t,["global","__init"]))};var i,n=(i=t)&&i.__esModule?i:{default:i};var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};e.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=this.__proto__._mixInits;if(void 0!==t){var i=!0,n=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(i=(r=a.next()).done);i=!0){r.value.call(this)}}catch(e){n=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw o}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1057),i(1058)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._rollbackInProgress=!1,this._changesProhibited=!1,this._haveChanges=!1,this._isRollbackOnly=!1,this.isDone=!1,this.model=t,this.origin=i,this._removedListeners=[],this._deletedElements={},this._callback=null}return n(e,[{key:"isRollBackOnly",value:function(){return this._isRollbackOnly}},{key:"addFirstChangeCallback",value:function(e){this._callback=e}},{key:"commit",value:function(e){if(this.isDone)return mf.zero.TransactionResult.Ignored;if(this._isRollbackOnly)return this.rollBack();var n=void 0;try{if((0,i.notifyModifyingListeners)(this),this._changesProhibited=!0,n=this.model.freeze(),!(0,i.validateTransactionWithListeners)(this))return this._haveChanges=!0,n.destroy(),this.rollBack()}finally{(0,t.finalize)(this)}return n.destroy(),(0,i.notifyTransactionCommitted)(this,e),(0,i.emitEvents)(this),this.model.transactionEffectsComplete(),mf.zero.TransactionResult.Committed}},{key:"cancel",value:function(){if(!this.isDone)try{this.rollBack()}catch(e){}}},{key:"abandon",value:function(){}}]),e}();e.default=o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(1057),i(1058),i(611),i(885),i(1056),i(778),i(610)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var d=f(t),u=f(i),h=f(o),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(c);function f(e){return e&&e.__esModule?e:{default:e}}var g=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var m=function(e){function t(e,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n));return o._revertUnchanged=e.isDetectAndRevertUnchangedProperties(),o.isDeep=!0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),g(t,[{key:"elementCreated",value:function(e){var t=_(this,e);if(t){if(this._delta.hasOwnProperty(t)){var i=this.span.createChild("error");i.addContext(p.error,"conflictingUuid",t),i.addContext(p.error,"existingElement",this._delta[t]),i.addContext(p.error,"newElement",e),i.log(p.error,"UUID Conflict"),u.default.throwErr("UUIDConflict")}var n=(0,l.createStorage)(e);n.isCreated=!0,this._delta[t]=n}}},{key:"elementDestroying",value:function(e){var t=_(this,e);t&&(this._delta[t]||(this._delta[t]=(0,l.createStorage)(e)),this._delta[t].isDestroyed=!0,this._deletedElements[t]=e)}},{key:"elementModifying",value:function(e,t){if(t){var i=_(this,e);if(i){this._delta[i]||(this._delta[i]=(0,l.createStorage)(e));var n=this._delta[i];if(!n.isCreated)(0,s.setModified)(n,t)||(0,l.copyValue)(e,n,t)}}}},{key:"rollBack",value:function(){var e=this;this._changesProhibited=!0;try{if(!this._haveChanges)return mf.zero.TransactionResult.Reverted;var t=void 0;d.default.isEmpty(this._listeners)||(t=(0,o.createReport)(this)),this._rollbackInProgress=!0,d.default.forEach(this._deletedElements,(function(t){e._delta[t.uuid].isCreated||(0,r.resurrectElement)(e.model,t)})),d.default.forEach(this._delta,(function(t,i){var n=e.model.findElement(i);t.isCreated?t.isDestroyed||(n||u.default.throwErr("FailedToRollback"),(0,a.remove)(e.model,n),n._invalidate()):(n||u.default.throwErr("FailedToRollback"),(0,l.copyStateFromStorage)(n,t))})),d.default.forEach(this._listeners,(function(i){-1===e._removedListeners.indexOf(i)&&i.isObserver&&i.transactionCanceled(!0,t)}))}finally{(0,n.finalize)(this),this.model.transactionEffectsComplete()}return mf.zero.TransactionResult.Reverted}}]),t}(h.default);function _(e,t){if(!e._rollbackInProgress)return e._changesProhibited&&u.default.throwErr("ChangesProhibited"),!e._haveChanges&&e._callback&&e._callback(),e._haveChanges=!0,t.uuid}e.default=m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1741)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=(i=t)&&i.__esModule?i:{default:i};var o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.model,e.origin));return i._topLevelTransaction=e,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"isRollBackOnly",value:function(){return this._topLevelTransaction.isRollBackOnly()}},{key:"commit",value:function(){return this.isDone=!0,mf.zero.TransactionResult.Ignored}},{key:"rollBack",value:function(){if(this.isDone)return mf.zero.TransactionResult.Ignored;var e=this._topLevelTransaction;return e.isDone||(e._isRollbackOnly=!0),mf.zero.TransactionResult.Ignored}},{key:"eventEmitted",value:function(){var e;this.isDone||(e=this._topLevelTransaction).eventEmitted.apply(e,arguments)}}]),t}(n.default);e.default=r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={family:"meta",modelVersion:"20170713",packages:{mf:{packages:{zero:{classes:{ModelElement:{},Model:{}},primitiveTypes:{SynchronizationChannel:{},PacketTransport:{},MFModel:{}},enumerations:{TransactionResult:{literals:{Ignored:{},Committed:{},Reverted:{},CanceledNoRevert:{}}},CollectionKind:{literals:{Map:{},Multimap:{},Sequence:{},Set:{},SubsettedElementSet:{}}},ValueFlags:{literals:{OptionalPrimitive:{},Single:{},Sequence:{},Set:{},UnorderedSet:{},Map:{},UnorderedMap:{},MultiMap:{},UnorderedMultiMap:{},CustomMap:{}}}},packages:{io:{enumerations:{SyncMode:{literals:{Regular:{},Force:{}}}}},meta:{enumerations:{Language:{literals:{Unknown:{value:0},CPlusPlus:{value:1},JavaScript:{value:2}}}},dataTypes:{ExtensionPrototype:{properties:{isOrdered:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1},isUnique:{type:"Boolean",lower:"1",upper:"1",defaultValue:!0},lower:{type:"UnlimitedNatural",lower:"1",upper:"1",defaultValue:0},upper:{type:"UnlimitedNatural",lower:"1",upper:"1",defaultValue:1},name:{type:"String",lower:"1",upper:"1"},typeName:{type:"String",lower:"1",upper:"1"}}},TransactionOrigin:{properties:{model:{type:"UUID",lower:"1",upper:"1",isOrdered:!0},language:{type:"Language",lower:"1",upper:"1",isOrdered:!0,defaultValue:"Unknown"},transactionId:{type:"UUID",lower:"1",upper:"1",isOrdered:!0},synchronizer:{type:"UUID",lower:"0",upper:"1",isOrdered:!0},transactionOrdinal:{type:"Integer",lower:"1",upper:"1",isOrdered:!0,isUnique:!0},transactionFactory:{type:"UUID",lower:"1",upper:"1",isOrdered:!0,isUnique:!0}}}},classes:{NamedElement:{properties:{name:{type:"String",lower:"1",upper:"1",defaultValue:""}}},Type:{properties:{owningPackage:{type:"Package",lower:"0",upper:"1"},qualifiedName:{type:"String",lower:"1",upper:"1",isDerived:!0,isReadOnly:!0}},superclass:"NamedElement"},TypedElement:{properties:{type:{type:"Type",lower:"1",upper:"1"},lower:{type:"UnlimitedNatural",lower:"1",upper:"1",defaultValue:0},upper:{type:"UnlimitedNatural",lower:"1",upper:"1",defaultValue:1}},superclass:"NamedElement"},Package:{properties:{uri:{type:"String",lower:"1",upper:"1"},ownedTypes:{type:"Type",lower:"0",upper:"*",opposite:"owningPackage",isComposite:!0,isSparse:!0,qualifiedBy:"name"},parentPackage:{type:"Package",lower:"0",upper:"1"},nestedPackages:{type:"Package",lower:"0",upper:"*",opposite:"parentPackage",isComposite:!0,isSparse:!0,qualifiedBy:"name"},qualifiedName:{type:"String",lower:"1",upper:"1",isDerived:!0,isReadOnly:!0},enumerations:{type:"Enum",lower:"0",upper:"*",subsets:"ownedTypes",isReadOnly:!0},classes:{type:"Class",lower:"0",upper:"*",subsets:"ownedTypes",isReadOnly:!0},dataTypes:{type:"DataType",lower:"0",upper:"*",subsets:"ownedTypes",isReadOnly:!0},primitiveTypes:{type:"PrimitiveType",lower:"0",upper:"*",subsets:"ownedTypes",isReadOnly:!0}},superclass:"NamedElement"},StructuredType:{properties:{superclass:{type:"StructuredType",lower:"0",upper:"1"},ownedAttributes:{type:"Property",lower:"0",upper:"*",opposite:"owningType",isComposite:!0,isSparse:!0,qualifiedBy:"name"},ownedOperations:{type:"Operation",lower:"0",upper:"*",opposite:"owningType",isComposite:!0,isSparse:!0,qualifiedBy:"name"}},superclass:"Type"},Operation:{properties:{argument:{type:"Argument",lower:"0",upper:"*",opposite:"operation",isUnique:!1,isOrdered:!0},owningType:{type:"StructuredType",lower:"0",upper:"1"}},superclass:"TypedElement"},Argument:{properties:{operation:{type:"Operation",lower:"1",upper:"1"}},superclass:"TypedElement"},Extension:{superclass:"Property",properties:{owner:{type:"DynamicExtensions",lower:"1",upper:"1",opposite:"extensions"}}},DynamicExtensions:{properties:{modelID:{type:"UUID",lower:"1",upper:"1"},extensions:{type:"Extension",lower:"0",upper:"*",isComposite:!0,qualifiedBy:"name"},owningClass:{type:"Class",lower:"1",upper:"1",opposite:"extensions"}}},Class:{superclass:"StructuredType",properties:{predestroyCheck:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1,isTransient:!0},extensions:{type:"DynamicExtensions",lower:"0",upper:"*",isComposite:!0,qualifiedBy:"modelID",isSparse:!0},isAbstract:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1}}},Property:{properties:{isTransient:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1},isDerived:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1},isComposite:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1},isOrdered:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1},isUnique:{type:"Boolean",lower:"1",upper:"1",defaultValue:!0},isSetOnce:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1},isReadOnly:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1},isSparse:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1},isQualificationUnique:{type:"Boolean",lower:"1",upper:"1",defaultValue:!0},hasCustomSubsetsFilter:{type:"Boolean",lower:"1",upper:"1",defaultValue:!1},owningType:{type:"StructuredType",lower:"0",upper:"1"},opposite:{type:"Property",lower:"0",upper:"1"},qualifiedBy:{type:"Property",lower:"0",upper:"1"},subsets:{type:"Property",lower:"0",upper:"1"}},superclass:"TypedElement"},Enum:{properties:{literals:{type:"EnumLiteral",lower:"0",upper:"*",opposite:"parentEnum",isComposite:!0,isSparse:!0,qualifiedBy:"name"}},superclass:"Type"},EnumLiteral:{properties:{value:{type:"Integer",lower:"1",upper:"1"},parentEnum:{type:"Enum",lower:"0",upper:"1"}},superclass:"NamedElement"},PrimitiveType:{superclass:"Type"},DataType:{superclass:"StructuredType"},Attribute:{isAbstract:!0,properties:{key:{type:"String",lower:"1",upper:"1"},type:{type:"Type",lower:"0",upper:"1",isDerived:!0},owner:{type:"AttributeMap",lower:"0",upper:"1",opposite:"attributes"}}},AttributeMap:{properties:{owner:{type:"mf.zero.ModelElement",lower:"0",upper:"1",isDerived:!0,isReadOnly:!0},attributes:{type:"Attribute",lower:"0",upper:"*",isComposite:!0,isSparse:!0,qualifiedBy:"key"}}}}}}}}}},primitiveTypes:{Boolean:{generateAttribute:!0},String:{generateAttribute:!0},StdString:{generateAttribute:!0},Integer:{generateAttribute:!0},Integer8:{generateAttribute:!0},Integer16:{generateAttribute:!0},Integer64:{generateAttribute:!0},UInteger8:{generateAttribute:!0},UInteger16:{generateAttribute:!0},UInteger64:{generateAttribute:!0},Real:{generateAttribute:!0},UnlimitedNatural:{generateAttribute:!0},DateTime:{generateAttribute:!0},UUID:{generateAttribute:!0},Object:{generateAttribute:!0},JsonValue:{generateAttribute:!0},MxArray:{generateAttribute:!1},StringToStringMap:{generateAttribute:!1}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(2910)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(t),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.type=e,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"serializeOptionalValue",value:function(e){if(!n.default.isUndefined(e))return this._doSerializeValue(e)}},{key:"serializeValue",value:function(e){return this._doSerializeValue(e)}},{key:"parseValue",value:function(e,t){return this._doParseValue(e,t)}},{key:"parseOptionalValue",value:function(e,t){return this._doParseValue(e,t)}},{key:"_doSerializeValue",value:function(e){}},{key:"_doParseValue",value:function(e){}}]),t}(o.default);e.default=s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1058),i(1742),i(1743),i(885)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=l(t),a=l(i),s=l(n);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),d=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._model=t,this._origin=i}return c(e,[{key:"beginTransaction",value:function(e){return(0,o.beginTransaction)(this._model,e,this._origin,s.default,a.default,r.default)}},{key:"beginRevertibleTransaction",value:function(){return this.beginTransaction(!0)}}]),e}();e.default=d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(2912)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=(i=t)&&i.__esModule?i:{default:i};var o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var r=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.out=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"accept",value:function(e){this.out=e.visitIntermediateFormat()}}]),t}(n.default);e.default=r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(612),i(396)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s(t),r=s(i),a=s(n);function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),c=Object.freeze({ForceTransient:"ForceTransient",ForcePersisted:"ForcePersisted",Default:"Default"}),d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.transientOverride={}}return l(e,[{key:"setTransientPropertyStatus",value:function(t,i){switch(i){case e.TransientStatus.ForcePersisted:this.transientOverride[t.uuid]=!1;break;case e.TransientStatus.ForceTransient:this.transientOverride[t.uuid]=!0;break;case e.TransientStatus.Default:delete this.transientOverride[t.uuid]}}},{key:"isPropertyTransient",value:function(e){var t=this.transientOverride[e.uuid];return!o.default.isUndefined(t)&&t||e.isTransient}},{key:"getPropertyCategory",value:function(e){return!e||e.isDerived||!e.type||e.opposite&&e.opposite.isComposite||this.isPropertyTransient(e)?r.default.Unknown():e.type._isInstOfClass()?e.isComposite?e.isSingleValued()?r.default.Composition():r.default.CompositionCollection():e.isSingleValued()?r.default.Association():r.default.AssociationCollection():e.type._isInstOfDataType()?e.isSingleValued()?r.default.Datatype():r.default.DatatypeCollection():e.isSingleValued()?r.default.Primitive():r.default.PrimitiveCollection()}},{key:"getProperties",value:function(e,t){var i=this,n=[],o=void 0;for(o=e;o&&o.qualifiedName!==a.default.ModelElement;o=o.superclass)o.ownedAttributes.forEach((function(e){i.getPropertyCategory(e).isA(t)&&n.push(e)}));return n}}],[{key:"TransientStatus",get:function(){return c}}]),e}();e.default=d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(2915),i(2916),i(1750),i(612),i(1296),i(1751),i(1298),i(396),i(1733)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSONEventProcessor=void 0;var u=C(t),h=C(i),p=C(n),f=C(o),g=C(r),m=C(a),_=C(s),v=C(l),b=C(c),y=C(d);function C(e){return e&&e.__esModule?e:{default:e}}var T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var S=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function w(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function I(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var A=e.JSONEventProcessor=function(e){function t(){E(this,t);var e=w(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.stack=[],e.isPrettyPrint=!1,e}return I(t,e),S(t,[{key:"preprocess",value:function(e){}},{key:"postprocess",value:function(e){var t=function(e){function t(e,i){E(this,t);var n=w(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.value=e,n.isPrettyPrint=i,n}return I(t,e),S(t,[{key:"visitString",value:function(){return this.isPrettyPrint?JSON.stringify(this.value,null,2):JSON.stringify(this.value)}},{key:"visitIntermediateFormat",value:function(){return this.value}}]),t}(f.default);e.visitOutput(new t(this.stack[0]))}},{key:"startDocument",value:function(e,t){this.stack=[];var i={};i[v.default.VersionAttr]=e,u.default.isEmpty(t)||(i[v.default.DefaultPackageAttr]=t),this.stack.push(i),this.stack.push([])}},{key:"endDocument",value:function(){this.stack[0][v.default.EntriesAttr]=this.stack[1],this.stack.pop()}},{key:"startRegisteredPackages",value:function(){this.stack[0][v.default.PackagesAttr]=[]}},{key:"writeRegisteredPackage",value:function(e,t){this.stack[0][v.default.PackagesAttr].push(t)}},{key:"startObject",value:function(e,t,i,n){var o={};(o[v.default.TypeAttr]=t,u.default.isEmpty(i)||u.default.isEmpty(n))||(o[v.default.disambiguateIdAttribute(i)]=n);var r=u.default.last(this.stack);return null===r?(this.stack.pop(),this.stack.push(o)):r.push(o),this.stack.push({}),[g.default.All().bitMinus(g.default.Composition()),g.default.Composition()]}},{key:"endObject",value:function(e,t,i,n){var o=this.stack.pop(),r=u.default.last(this.stack),a=u.default.isArray(r)?u.default.last(r):r;u.default.has(a,v.default.ContentAttr)?a[v.default.DynamicContentAttr]=o:a[v.default.ContentAttr]=o}},{key:"valueToJson",value:function(e,t){if(t.name===b.default.StringToStringMap){var i="object"===T(e.added)&&"object"===T(e.removed),n=!!e.toString&&!!e.loadFromString;if(i||n||y.default.throwErr("CorruptInput"),i&&n&&y.default.throwErr("CorruptInput"),i)return e;if(n)return JSON.parse(e.toString())}return e}},{key:"writePrimitiveValue",value:function(e,t){u.default.last(this.stack)[e]=t}},{key:"writeEmptyPrimitiveValue",value:function(e){u.default.last(this.stack)[e]=null}},{key:"startPrimitiveEntryValues",value:function(e){this.startProperty(e)}},{key:"writePrimitiveEntryValue",value:function(e,t){u.default.last(this.stack).push(t)}},{key:"endPrimitiveEntryValues",value:function(e){this.endProperty(e)}},{key:"writeVerbatimValue",value:function(e,t,i){u.default.isUndefined(t)||(u.default.last(this.stack)[e]=this.valueToJson(t,i))}},{key:"startVerbatimEntryValues",value:function(e){this.startProperty(e)}},{key:"writeVerbatimEntryValue",value:function(e,t,i){u.default.last(this.stack).push(this.valueToJson(t,i))}},{key:"endVerbatimEntryValues",value:function(e){this.endProperty(e)}},{key:"writeEmptyDatatype",value:function(e,t){}},{key:"startDatatype",value:function(e,t){var i={};i[v.default.TypeAttr]=t,null===u.default.last(this.stack)?(this.stack.pop(),this.stack.push(i)):u.default.last(this.stack).push(i),this.stack.push({})}},{key:"endDatatype",value:function(e,t){var i=this.stack.pop(),n=u.default.last(this.stack);u.default.isArray(n)?u.default.last(n)[v.default.ContentAttr]=i:u.default.last(this.stack)[v.default.ContentAttr]=i}},{key:"writeReferenceValue",value:function(e,t,i,n){var o={};(o[v.default.TypeAttr]=t,u.default.isEmpty(i)||u.default.isEmpty(n))||(o[v.default.disambiguateIdAttribute(i)]=n);u.default.last(this.stack)[e]=o}},{key:"writeEmptyReferenceValue",value:function(e){u.default.last(this.stack)[e]=null}},{key:"startReferenceEntryValues",value:function(e){this.startProperty(e)}},{key:"writeReferenceEntryValue",value:function(e,t,i,n){var o={};(o[v.default.TypeAttr]=t,u.default.isEmpty(i)||u.default.isEmpty(n))||(o[v.default.disambiguateIdAttribute(i)]=n);u.default.last(this.stack).push(o)}},{key:"endReferenceEntryValues",value:function(e){this.endProperty(e)}},{key:"startContainment",value:function(e,t){t?this.stack.push([]):this.stack.push(null)}},{key:"endContainment",value:function(e,t){var i=this.stack.pop();u.default.last(this.stack)[e]=i}},{key:"startDatatypeValues",value:function(e,t){t?this.stack.push([]):this.stack.push(null)}},{key:"endDatatypeValues",value:function(e,t){var i=this.stack.pop();u.default.last(this.stack)[e]=i}},{key:"startProperty",value:function(e){this.stack.push([])}},{key:"endProperty",value:function(e){var t=this.stack.pop();u.default.last(this.stack)[e]=t}},{key:"startDynamicExtensions",value:function(){this.stack[0][v.default.DefaultValuesAttr]=[]}},{key:"writePrimitiveDynamicExtension",value:function(e,t,i){var n=this._createDynamicPropertyRepresentation(e,t);n[v.default.ValueAttr]=i,this.stack[0][v.default.DefaultValuesAttr].push(n)}},{key:"writeEmptyDynamicExtension",value:function(e,t){var i=this._createDynamicPropertyRepresentation(e,t);i[v.default.ValueAttr]=null,this.stack[0][v.default.DefaultValuesAttr].push(i)}},{key:"writeImplicitlyEmptyDynamicExtension",value:function(e,t){var i=this._createDynamicPropertyRepresentation(e,t);this.stack[0][v.default.DefaultValuesAttr].push(i)}},{key:"writeVerbatimDynamicExtension",value:function(e,t,i,n){i||this.writeEmptyDynamicExtension(e,t);var o=this._createDynamicPropertyRepresentation(e,t);o[v.default.ValueAttr]=this.valueToJson(i,n),this.stack[0][v.default.DefaultValuesAttr].push(o)}},{key:"startDataTypeDynamicExtension",value:function(e,t){var i=this._createDynamicPropertyRepresentation(e,t);i[v.default.TypeAttr]=t.typeName,this.stack.push(i),this.stack.push([])}},{key:"endDataTypeDynamicExtension",value:function(e,t){var i=this.stack.pop(),n=this.stack.pop(),o={};o[v.default.TypeAttr]=t.typeName,o[v.default.ContentAttr]=i,n[v.default.ValueAttr]=o,this.stack[0][v.default.DefaultValuesAttr].push(n)}},{key:"startDynamicOverrides",value:function(){var e=this.stack.pop(),t=u.default.last(this.stack);u.default.isArray(t)?u.default.last(t)[v.default.ContentAttr]=e:t[v.default.ContentAttr]=e,this.stack.push({})}},{key:"_createDynamicPropertyRepresentation",value:function(e,t){var i={};return i[v.default.DynamicPropertyAttr]=t.name,i[v.default.OwnerAttr]=e,i[v.default.TypeAttr]=t.typeName,t.upper>1?(i[v.default.UpperAttr]=v.default.UpperValueUnbounded,i[v.default.OrderedAttr]=t.isOrdered,i[v.default.UniqueAttr]=t.isUnique):i[v.default.LowerAttr]=t.lower,i}}]),t}(p.default),x=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new m.default,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new _.default("1.0");return E(this,t),w(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,new A))}return I(t,e),S(t,[{key:"isPrettyPrint",value:function(){return this.output.isPrettyPrint}},{key:"setPrettyPrint",value:function(e){this.output.isPrettyPrint=e}}]),t}(h.default);e.default=x}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t(e,[{key:"visitString",value:function(){}},{key:"visitIntermediateFormat",value:function(){}}]),e}();e.default=i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(780),i(1297),i(396)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=u(t),s=u(i),l=u(n),c=u(o),d=u(r);function u(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),f=function(){function e(){h(this,e),this.currentId=0,this.mapping={}}return p(e,[{key:"get",value:function(e,t){var i=this.mapping[e.uuid];return i||(i=this.mapping[e.uuid]=++this.currentId),new c.default(c.default.IntrinsicIdentifierType,i.toString())}}]),e}(),g=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";h(this,e),this.version=t,this.customFlavors={},this.unqualifiedPackage="",this.knownPackages={},this.customIdProviders={},this.shouldSerializeExtensions=!0,this.elementFilter=void 0}return p(e,[{key:"getMetaTypeName",value:function(e){var t=e.owningPackage;if(!t)return e.name;var i=t.qualifiedName;return i===this.unqualifiedPackage?e.name:i+"."+e.name}},{key:"getMetaPropertyName",value:function(e){return e?e.name:""}},{key:"setPropertySerializerFlavor",value:function(e,t){this.customFlavors[e]=t}},{key:"formatPrimitiveValue",value:function(e,t){var i=this.getPrimitiveValueSerializer(e);return i?e.isOptional()&&e.isSingleValued()?i.serializeOptionalValue(t):i.serializeValue(t):""}},{key:"formatElementId",value:function(e,t){if(!e)return new c.default;if(!a.default.isEmpty(this.customIdProviders)&&e)for(var i=e.getMetaClass();i&&i._isInstOfClass();i=i.superclass){var n=this.customIdProviders[i.qualifiedName];if(n)return a.default.isFunction(n)?n(e,t):n.get(e,t);if(i.qualifiedName===d.default.ModelElement)break}return _(e,t)}},{key:"getPackageName",value:function(e){return e?e.qualifiedName:""}},{key:"getContainingPackageUri",value:function(e){for(var t=e.owningPackage;t;t=t.parentPackage)if(!a.default.isEmpty(t.uri))return t.uri}},{key:"setUnqualifiedPackage",value:function(e){this.unqualifiedPackage=e}},{key:"registerPackage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.knownPackages[e]=a.default.isEmpty(t)?e.uri:t}},{key:"unregisterPackage",value:function(e){delete this.knownPackages[e]}},{key:"unregisterAllPackages",value:function(){this.knownPackages={}}},{key:"getPackageUri",value:function(e){return this.knownPackages[e]||e.uri}},{key:"processRegisteredPackages",value:function(e){var t=this;a.default.forEach(this.knownPackages,(function(i,n){return e(t.getPackageName(n),i)}))}},{key:"registerCustomProvider",value:function(e,t){m(this,e,(function(e,i){return t(e,i)}))}},{key:"registerIdProperty",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments[2],o=mf.zero.meta.Class.metaClass;e||s.default.throwErr("InvalidSerializeIdentification",n?n.getMetaClass().qualifiedName:"?");var r=n||e.owningType;"1"==e.upper&&"1"==e.lower&&e.owningType&&e.owningType.getMetaClass().isA(o)&&e.type&&!e.type.getMetaClass().isA(o)&&this.getPrimitiveValueSerializer(e)||s.default.throwErr("InvalidSerializeIdentification",e.name+", "+r.qualifiedName),m(this,r,(function(n,o){if(i&&o===c.default.UsageMode.Definition)return new c.default;var r=t.getPrimitiveValueSerializer(e).serializeValue(n.getPropertyValue(e));return new c.default(t.getMetaPropertyName(e),r)}))}},{key:"registerSequenceBasedId",value:function(){m(this,mf.zero.ModelElement.metaClass,new f)}},{key:"useElementIdentifiers",value:function(e){m(this,mf.zero.ModelElement.metaClass,(function(t,i){var n=t.identifier();if(a.default.isEmpty(n)){if(e)return _(t,i);if(i!==c.default.UsageMode.Reference)return new c.default;s.default.throwErr("InvalidSerializeIdentification",t.getMetaClass().qualifiedName)}return new c.default(c.default.IntrinsicIdentifierType,n)}))}},{key:"getPrimitiveValueSerializer",value:function(e){if(e&&e.type){var t=this.customFlavors[e.type],i=l.default.getPropertySerializer(e.type,t);return i||(i=l.default.getDefaultPrimitiveSerializer()),i}}},{key:"shallSerializeElement",value:function(e,t){return!this.elementFilter||this.elementFilter(e,t)}},{key:"customizePropertyValue",value:function(e,t,i){s.default.throwErr("InvalidPropertyValueCustomizer")}}]),e}();function m(e,t,i){e.customIdProviders[t.qualifiedName]=i}function _(e,t){return new c.default(c.default.DefaultIdentifierType,e.uuid)}e.default=g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(2917),i(612),i(396)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s(t),r=s(i),a=s(n);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),c(t,[{key:"enableMetaPropertyCategoryCaching",value:function(){this.propertyCategoryCache={}}},{key:"getMetaPropertyCategory",value:function(e,i){var n=e.uuid+"_"+i,o=this.propertyCategoryCache;function s(e){return o&&(o[n]=e),e}var l=o&&o[n];if(l)return l;var c=function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getMetaPropertyCategory",this).call(this,e,i);if(c.and(r.default.PrimitiveAny())){var d=this.getMetaProperty(e,i),u=d.type.qualifiedName;if(u===a.default.Integer||u===a.default.Integer8||u===a.default.Integer16||u===a.default.Integer64||u===a.default.UInteger8||u===a.default.UInteger16||u===a.default.UInteger64||u===a.default.Real||u===a.default.UnlimitedNatural||u===a.default.Boolean||u===a.default.Object||u===a.default.StringToStringMap||u===a.default.JsonValue)return s(1==d.upper?r.default.Verbatim():r.default.VerbatimCollection())}return s(c)}},{key:"getExtensionCategory",value:function(e){var t=e.type.qualifiedName;return t===a.default.Integer||t===a.default.Integer8||t===a.default.Integer16||t===a.default.Integer64||t===a.default.UInteger8||t===a.default.UInteger16||t===a.default.UInteger64||t===a.default.Real||t===a.default.UnlimitedNatural||t===a.default.Boolean||t===a.default.Object||t===a.default.StringToStringMap||t===a.default.JsonValue?1==e.upper?r.default.Verbatim():r.default.VerbatimCollection():this.getDefaultPropertyCategory(e)}}]),t}(o.default);e.default=u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(1752),i(612),i(2918),i(1754),i(1298),i(396),i(1055)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var d=v(t),u=v(i),h=v(n),p=v(o),f=v(r),g=v(a),m=v(s),_=v(l);v(c);function v(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var E=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),S=function(){function e(t){T(this,e),this.processor=t}return E(e,[{key:"destroy",value:function(){this.processor.parseCompleted()}},{key:"processElement",value:function(e,t){var i=this._parseIdentification(e);if(this.processor.push(i.type,i.idType,i.id)){if(this._processElementContent(e[m.default.ContentAttr]),e.hasOwnProperty(m.default.DynamicContentAttr)){var n=e[m.default.DynamicContentAttr];this.processor.startDynamicContent(),this._processElementContent(n)}this.processor.pop(t)}}},{key:"_processElementContent",value:function(e){var t=this,i=void 0,n=e?Object.entries(e):[],o=!0,r=!1,a=void 0;try{for(var s,l=function(){var e=C(s.value,2),n=e[0],o=e[1],r=t.processor.getPropertyCategory(n);if(r.isCollection()&&t.processor.clearValues(n),r.and(p.default.CompositionAny()))0!==(i=t._makeArray(o)).length||r.isCollection()||t.processor.clearValues(n),i.forEach((function(e){t.processElement(e,n)}));else if(r.and(p.default.AssociationAny()))0!==(i=t._makeArray(o)).length||r.isCollection()||t.processor.clearValues(n),i.forEach((function(e){var i=t._parseIdentification(e);t.processor.addDeferredReference(i.type,n,i.idType,i.id)}));else if(r.and(p.default.DatatypeAny()))0===(i=t._makeArray(o)).length&&r.and(p.default.Datatype())&&t.processor.setEmptyValue(n),i.forEach((function(e){t.processElement(e,n)}));else if(r.and(p.default.VerbatimAny())){if(t.processor.getPropertyType(n).name===_.default.StringToStringMap)if("object"===(void 0===o?"undefined":y(o))){var a=o.added,l=o.removed;"object"===(void 0===a?"undefined":y(a))&&"object"===(void 0===l?"undefined":y(l))?t._processVerbatim(o,n):t.processor.setValue(n,o)}else u.default.throwErr("CorruptInput");else r.isCollection()?(i=t._makeArray(o)).forEach((function(e){t._processVerbatim(e,n)})):t._isTagValueEmpty(o)?t.processor.setEmptyValue(n):t._processVerbatim(o,n)}else r.and(p.default.PrimitiveAny())&&(0===(i=t._makeArray(o)).length&&r.and(p.default.Primitive())&&t.processor.setEmptyValue(n),i.forEach((function(e){t.processor.setValue(n,e)})))},c=n[Symbol.iterator]();!(o=(s=c.next()).done);o=!0)l()}catch(e){r=!0,a=e}finally{try{!o&&c.return&&c.return()}finally{if(r)throw a}}}},{key:"stringAtKey",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(i&&!e.hasOwnProperty(t))return"";var n=e[t];if(d.default.isString(n))return n;u.default.throwErr("CorruptInput")}},{key:"_isTagValueEmpty",value:function(e){return d.default.isUndefined(e)||null===e}},{key:"_makeArray",value:function(e){return d.default.isUndefined(e)||null===e?[]:d.default.isArray(e)?e:[e]}},{key:"_processVerbatim",value:function(e,t){var i=void 0;if(d.default.isBoolean(e))i=e?"true":"false";else if(d.default.isNumber(e))i=e.toString();else{if(!d.default.isString(e))return void this.processor.setVerbatimValue(t,e);i=e}this.processor.setValue(t,i)}},{key:"_parseIdentification",value:function(e){var t={};if(d.default.isObject(e)){for(var i=d.default.keys(e),n=i.length,o=0;o<n;++o)if(i[o]===m.default.ContentAttr||i[o]===m.default.DynamicContentAttr);else{if(i[o]!==m.default.TypeAttr){t.idType=m.default.convertFromDisambiguated(i[o]),t.id=e[i[o]];break}t.type=e[i[o]]}d.default.isEmpty(t.type)&&(t.type=this.stringAtKey(e,m.default.TypeAttr))}return t}},{key:"processDefaultValue",value:function(e){var t=new mf.zero.meta.ExtensionPrototype({name:this.stringAtKey(e,m.default.DynamicPropertyAttr),typeName:this.stringAtKey(e,m.default.TypeAttr)}),i=this.stringAtKey(e,m.default.OwnerAttr),n=e[m.default.UpperAttr];if(d.default.isUndefined(n)){var o=e[m.default.LowerAttr];o&&(t.upper=1,t.lower=o)}else{t.upper="*";var r=e[m.default.OrderedAttr];d.default.isUndefined(r)||(t.isOrdered=r);var a=e[m.default.UniqueAttr];d.default.isUndefined(a)||(t.isUnique=a)}var s=e[m.default.ValueAttr];if(d.default.isUndefined(s))this.processor.registerExtensionValue(i,t);else{var l=this.processor.customizer.getMetaClass(t.typeName);if(null===s)this.processor.registerExtension(i,t,null);else if(l.qualifiedName===_.default.Object||l.qualifiedName===_.default.JsonValue)this.processor.registerExtension(i,t,null);else if(l._isInstOfDataType())this.processElement(s,""),this.processor.registerExtensionWithLastParsedItem(i,t);else{var c=void 0;d.default.isBoolean(s)?c=s?"true":"false":d.default.isNumber(s)?c=s.toString():d.default.isString(s)&&(c=s),this.processor.registerExtension(i,t,c)}}}}]),e}(),w=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new h.default,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new g.default;return T(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),E(t,[{key:"parseString",value:function(e){this.parseVerbatim(JSON.parse(e))}},{key:"parseVerbatim",value:function(e,t){e.hasOwnProperty(m.default.VersionAttr)&&e.hasOwnProperty(m.default.EntriesAttr)||u.default.throwErr("CorruptInput");var i=new S(this.processor);if(this.processor.setVersion(i.stringAtKey(e,m.default.VersionAttr),t),e.hasOwnProperty(m.default.DefaultPackageAttr)&&this.processor.customizer.setUnqualifiedPackage(i.stringAtKey(e,m.default.DefaultPackageAttr)),e.hasOwnProperty(m.default.DefaultValuesAttr)){var n=e[m.default.DefaultValuesAttr];d.default.isArray(n)?n.forEach((function(e){return i.processDefaultValue(e)})):u.default.throwErr("CorruptInput")}var o=e[m.default.EntriesAttr];d.default.isArray(o)||(i.destroy(),u.default.throwErr("CorruptInput")),o.forEach((function(e){i.processElement(e,"")})),this.processor.processDeferred(),i.destroy()}},{key:"parseVerbatimEntries",value:function(e,t){var i={};i[m.default.VersionAttr]=t||"1.0",i[m.default.EntriesAttr]=e,this.parseVerbatim(i)}}]),t}(f.default);e.default=w}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(565),i(396)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(t),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function l(e){return e.identifierType+"_"+e.identifier}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];a(this,e),this.remapUuids=t,this.remappings={}}return s(e,[{key:"clearRemappings",value:function(){this.remappings={}}},{key:"instantiate",value:function(e,t,i){if(e._isInstOfDataType())return new(n.default.get(e.qualifiedName));var o=void 0;if(this.remapUuids||(o=i.getUuid()),!o){var r=e.instantiate(t);return this.remappings[l(i)]=r.uuid,r}return e.instantiate(t,o)}},{key:"clearObjectValue",value:function(e,t){e.getPropertyValue(t).clear()}},{key:"setValue",value:function(e,t,i,n){1==t.upper?t.type.name===o.default.StringToStringMap?e[t.name]._copyContents(Object.entries(i)):e.setPropertyValue(t,i):e.getPropertyValue(t).genericAdd(i,0===n?null:n)}},{key:"findReference",value:function(e,t){var i=this.remappings[l(t)];return i?e.findElement(i):e.findElement(t.getUuid())}}]),e}();e.default=c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(565),i(396),i(1059)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createPrimitiveValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new u(e,t,i?mf.zero.ValueFlags.Single:mf.zero.ValueFlags.OptionalPrimitive)},e.isValue=function(e){return e instanceof u};var a=d(t),s=d(i),l=d(n),c=d(o);function d(e){return e&&e.__esModule?e:{default:e}}var u=function e(t,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=t,null===i&&(a.default.isString(t)?i=c.default.String:a.default.isBoolean(t)?i=c.default.Boolean:(0,r.isStructuredType)(t)?i=t.getMetaClass().qualifiedName:s.default.throwErr("UnspecifiedType")),this.actualType=l.default.getType(i),this.valueFlags=n}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){},hasRoot:function(){throw new Error("Unimplemented API: hasRoot")},setRoot:function(e){throw new Error("Unimplemented API: setRoot")},hasById:function(e){throw new Error("Unimplemented API: hasById")},getById:function(e){throw new Error("Unimplemented API: getById")},getByType:function(e,t){throw new Error("Unimplemented API: getByType")},getByProperty:function(e,t,i){throw new Error("Unimplemented API: getByProperty")},move:function(e,t,i){throw new Error("Unimplemented API: move")},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1299)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){this._listeners={}},addEventListener:function(e,t,i){return this._addEventListener(this._listeners,e,t,i)},_addEventListener:function(e,t,i,n){n=n||this,e[t]=e[t]||[];var o={scope:n,callback:i},r={remove:function(){this.removeEventListener(t,i,n)}.bind(this)};return this._getEventListenerIndex(e,t,i,n)<0&&e[t].push(o),r},hasEventListener:function(e,t,i){return this._getEventListenerIndex(this._listeners,e,t,i)>=0},removeEventListener:function(e,t,i){this._removeEventListener(this._listeners,e,t,i)},_removeEventListener:function(e,t,i,n){n=n||this;var o=this._getEventListenerIndex(e,t,i,n);if(!(o>=0))throw new Error("Listener does not exist");e[t].splice(o,1)},_getEventListenerIndex:function(e,t,i,n){n=n||this;var o,r=e[t];if(r){var a=r.length;for(o=0;o<a;o+=1)if(r[o].scope===n&&r[o].callback===i)return o}return-1},notifyEventListeners:function(e,t,i,n){this._notifyEventListeners(this._listeners,e,t,i,n)},_notifyEventListeners:function(e,i,n,o,r){if(void 0!==o&&(o instanceof Array||"string"==typeof o||null===o||"number"==typeof o||"boolean"==typeof o))throw new Error("Invalid event data, must be object");var a,s=e[i];if(s){var l=(s=s.slice(0)).length;for(a=0;a<l;a+=1)try{var c={type:i,target:n||this,data:o||{},originator:r.metadata,srcLang:r.origin};"string"==typeof s[a].callback?s[a].scope[s[a].callback].call(s[a].scope,c):s[a].callback.call(s[a].scope,c)}catch(e){t.error("Error while dispatching event handler of type: "+i+", message: "+e)}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this._viewModelManager=e},getViewModelManager:function(){return this._viewModelManager},destroy:function(){this._viewModelManager=null,this.inherited(arguments)},hasChild:function(e){throw new Error("Unimplemented API: hasChild")},addChild:function(e,t,i,n){throw new Error("Unimplemented API: addChild")},addChildWithId:function(e,t,i,n,o){throw new Error("Unimplemented API: addChildWithId")},getChild:function(e){throw new Error("Unimplemented API: getChild")},getChildIndex:function(e){return this._getChildIndexThroughViewModel(e)},hasDescendant:function(e){throw new Error("Unimplemented API: hasDescendant")},getDescendant:function(e){throw new Error("Unimplemented API: getDescendant")},hasProperty:function(e){throw new Error("Unimplemented API: hasProperty")},setProperties:function(e){throw new Error("Unimplemented API: setProperties")},setProperty:function(e,t){throw new Error("Unimplemented API: setProperty")},getProperties:function(){throw new Error("Unimplemented API: getProperties")},getProperty:function(e){throw new Error("Unimplemented API: getProperty")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1299)],o=i.dj.d(n,(function(e,t){return e(t,{dispatchEvent:function(e,t,i,n){throw new Error("Unimplemented API: dispatchEvent")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{MoveEvent:"moveEvent"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){},getViewModelManager:function(e){throw new Error("Unimplemented API: getViewModelManager")}})}),e,t),e.exports=o},function(e,t){e.exports='{\n "family" : "viewmodel_viewmodel_zml",\n "modelVersion" : "R2020a",\n "packages" : {\n "viewmodel" : {\n "packages" : {\n "internal" : {\n "packages" : {\n "zml" : {\n "dataTypes" : {\n "GenericEventData" : {\n "properties" : {\n "EventName" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "EventData" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "Metadata" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true }\n }\n },\n "ViewModelBackingEventData" : {\n "properties" : {\n "EventName" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "EventData" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "Metadata" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true }\n }\n }\n },\n "classes" : {\n "GenericObject" : {\n "properties" : {\n "Type" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "properties" : { "type" : "Property","lower" : "0","upper" : "*", "opposite" : "genericObject", "qualifiedBy" : "Name", "isComposite" : true, "isOrdered" : true, "isUnique" : true },\n "Children" : { "type" : "GenericObject","lower" : "0","upper" : "*", "isOrdered" : true, "isUnique" : false },\n "Parent" : { "type" : "GenericObject","lower" : "0","upper" : "1", "isOrdered" : true, "isUnique" : true }\n },\n \n \n "events": {\n "genericEvent": {\n "parameters": [ {\n "name": "event", \n "type": "GenericEventData", \n "lower": "1",\n "upper" : "1"\n }\n ]\n }\n },\n "isAbstract":false\n },\n "Property" : {\n "properties" : {\n "Name" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "Value" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "genericObject" : { "type" : "GenericObject","lower" : "0","upper" : "1", "opposite" : "properties", "isOrdered" : true, "isUnique" : true }\n },\n \n \n \n "isAbstract":false\n },\n "ViewModelBackingElement" : {\n "properties" : {\n "Type" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "properties" : { "type" : "StringToStringMap","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "Children" : { "type" : "ViewModelBackingElement","lower" : "0","upper" : "*", "isOrdered" : true, "isUnique" : false },\n "Parent" : { "type" : "ViewModelBackingElement","lower" : "0","upper" : "1", "isOrdered" : true, "isUnique" : true }\n },\n \n \n "events": {\n "viewModelBackingEvent": {\n "parameters": [ {\n "name": "eventData", \n "type": "ViewModelBackingEventData", \n "lower": "1",\n "upper" : "1"\n }\n ]\n }\n },\n "isAbstract":false\n }\n }\n }\n }\n }\n }\n }\n }\n}\n'},function(e,t,i){var n,o;n=[i(204),i(2933),i(2935),i(2936),i(2937),i(2938),i(2939),i(2941),i(2942),i(2943),i(2944),i(1764),i(1765),i(2945),i(2946),i(2947),i(2948),i(2953),i(2954),i(2955),i(2956),i(2957),i(2958),i(2959),i(2960),i(2962),i(2963),i(2964),i(2965),i(2966),i(2967),i(2968),i(1771),i(2969),i(2970),i(2971),i(2972),i(1775),i(2973),i(2974),i(2975),i(2976),i(2980),i(2982),i(2983),i(2985),i(2986),i(2987),i(2988),i(2989),i(2990),i(2991),i(2995),i(2996),i(2997),i(2998),i(2999),i(3001),i(3002),i(3004)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U,W,G,z,q,K,X,Y,Q,$,J,Z,ee,te,ie,ne,oe,re){var ae={},se=Array.prototype.slice.call(arguments);return se.forEach((function(t,i){i>0&&e.mixin(ae,t)})),ae}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(465),i(423),i(543),i(338),i(448),i(310),i(321),i(346),i(303),i(322),i(311),i(397)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m={};return m[t.PUSH_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f,g),m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(465),i(423),i(543),i(338),i(448),i(310),i(321),i(346),i(303),i(322),i(311),i(397),i(613),i(706),i(1303)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b={};return b[t.TOGGLE_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v),b}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{dropDownAlwaysEnabled:new e({type:"boolean",shouldBeFlipped:!1,notInAction:!1,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{DEFAULT:"default",MANUAL:"manual"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{AUTO:"auto",MANUAL:"manual"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{items:new e({type:"Array",notInAction:!1,defaultValue:[],required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{compact:new e({type:"boolean",notInAction:!0,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(338),i(1305),i(310),i(321),i(346),i(303),i(322),i(311),i(1304),i(489),i(490),i(491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m={};return m[t.TEXT_FIELD]=e.mixin({},{},i,n,o,r,a,s,l,c,d,u,h,p,f,g),m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{value:new e({notInAction:!1,type:"number",defaultValue:5,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{minimum:new e({type:"number",notInAction:!1,defaultValue:-20,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{maximum:new e({type:"number",notInAction:!1,defaultValue:20,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(338),i(310),i(321),i(346),i(303),i(322),i(311),i(465)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h={};return h[t.LABEL]=e.mixin({},i,n,o,r,a,s,l,c,d,u),h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{qabEligible:new e({type:"boolean",notInAction:!0,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1310),i(254)],o=i.dj.d(n,(function(e,t){return{listViewDisplayDensity:new t({type:"string",notInAction:!0,defaultValue:e.DEFAULT,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{optionsEnabled:new e({type:"boolean",notInAction:!0,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{ownsFooter:new e({type:"boolean",notInAction:!0,defaultValue:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{useQuickAccessIcon:new e({type:"boolean",notInAction:!0,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226)],o=i.dj.d(n,(function(e){var t={};return t[e.PUSH_BUTTON]=e.QAB_PUSH_BUTTON,t[e.DROP_DOWN_BUTTON]=e.QAB_DROP_DOWN_BUTTON,t[e.SPLIT_BUTTON]=e.QAB_SPLIT_BUTTON,t[e.TOGGLE_BUTTON]=e.QAB_TOGGLE_BUTTON,t[e.TOGGLE_SPLIT_BUTTON]=e.QAB_TOGGLE_SPLIT_BUTTON,t[e.GALLERY_ITEM]=e.QAB_PUSH_BUTTON,t[e.GALLERY_CATEGORY]=e.QAB_GALLERY_CATEGORY_BUTTON,t[e.TOGGLE_GALLERY_ITEM]=e.QAB_TOGGLE_BUTTON,t[e.LIST_ITEM]=e.QAB_PUSH_BUTTON,t[e.LIST_ITEM_WITH_POPUP]=e.QAB_DROP_DOWN_BUTTON,t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(307),i(888),i(409),i(1064),i(889)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([n,o,r,a],{constructor:function(){this._preventTypingEventForKeys=[i.UP_ARROW,i.DOWN_ARROW,i.RIGHT_ARROW,i.LEFT_ARROW,i.PAGE_DOWN,i.PAGE_UP,i.HOME,i.END,i.ESCAPE,i.CAPS_LOCK,16,17,18,92]},_addKeysThatPreventTypingEvent:function(e){if(!Array.isArray(e))throw"Input to _addKeysThatPreventTypingEvent was not an array";this._preventTypingEventForKeys=this._preventTypingEventForKeys.concat(e)},postCreate:function(){this.inherited(arguments),this.on("keyup",this._onKeyUp.bind(this)),this.on("drop",this._onDrop.bind(this))},_onDrop:function(e){setTimeout(function(){this._handleNewTextInput()}.bind(this),0)},_onKeyUp:function(e){this._preventTypingEventForKeys.indexOf(e.keyCode)>=0||this._handleNewTextInput()},_handleNewTextInput:function(){var e=this.inputNode.value;this._triggerTypingEvent(e,this._previousTextInputValue),this._previousTextInputValue=this.inputNode.value},_setValueAttr:function(){this.inherited(arguments),void 0!==this.inputNode&&(this._previousTextInputValue=this.inputNode.value)},_onBlur:function(){var e,t,i;e=this.inputNode.value,t=this.get("value");var n=this.getParent();if(null!=n&&void 0!==n.get("validationState")&&null!=n.get("validationState")&&"normal"===n.get("validationState")&&void 0!==n.valuePrecision&&null!=n.valuePrecision){var o=s.isEmpty(t)?t:s.convertValueToNumber(t).toFixed(n.valuePrecision),r=s.isEmpty(e)?t:s.convertValueToNumber(e).toFixed(n.valuePrecision);n.get("editable")&&o!==r&&(this._set("value",e),this._previousTextInputValue=e,t!==(i=this.get("value"))&&this._triggerChangeEvent("value",t,i))}else this._set("value",e),this._previousTextInputValue=e,t!==(i=this.get("value"))&&this._triggerChangeEvent("value",t,i);this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(228),i(210),i(221),i(218),i(204),i(3032),i(231),i(1048),i(609),i(3035),i(1787)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=e("dijit.layout._TabButton"+(o("dojo-bidi")?"_NoBidi":""),s.StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:u,_setNameAttr:"focusNode",scrollOnFocus:!1,buildRendering:function(){this.inherited(arguments),t.setSelectable(this.containerNode,!1)},startup:function(){this.inherited(arguments);var e=this.domNode;this.defer((function(){e.className=e.className}),1)},_setCloseButtonAttr:function(e){if(this._set("closeButton",e),n.toggle(this.domNode,"dijitClosable",e),this.closeNode.style.display=e?"":"none",e){var t=r.getLocalization("dijit","common");this.closeNode&&i.set(this.closeNode,"title",t.itemClose)}},_setDisabledAttr:function(e){if(this.inherited(arguments),this.closeNode)if(e)i.remove(this.closeNode,"title");else{var t=r.getLocalization("dijit","common");i.set(this.closeNode,"title",t.itemClose)}},_setLabelAttr:function(e){this.inherited(arguments),this.showLabel||this.params.title||(this.iconNode.alt=a.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});o("dojo-bidi")&&(h=e("dijit.layout._TabButton",h,{_setLabelAttr:function(e){this.inherited(arguments),this.applyTextDir(this.iconNode,this.iconNode.alt)}}));var p=e("dijit.layout.TabController",s,{baseClass:"dijitTabController",templateString:"<div role='tablist' data-dojo-attach-event='onkeydown:onkeydown'></div>",tabPosition:"top",buttonWidget:h,buttonWidgetCloseClass:"dijitTabCloseButton",postCreate:function(){this.inherited(arguments);var e=new c({id:this.id+"_Menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,targetNodeIds:[this.domNode],selector:function(e){return n.contains(e,"dijitClosable")&&!n.contains(e,"dijitTabDisabled")}});this.own(e);var t=r.getLocalization("dijit","common"),i=this;e.addChild(new d({label:t.itemClose,ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,onClick:function(e){var t=l.byNode(this.getParent().currentTarget);i.onCloseButtonClick(t.page)}}))}});return p.TabButton=h,p}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(245),i(240),i(385),i(328),i(316),i(216),i(1785)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t("dijit-legacy-requires")&&n(0,(function(){require(["dijit/form/_FormValueWidget"])})),e("dijit.form._FormWidget",[o,a,r,s],{setDisabled:function(e){i.deprecated("setDisabled("+e+") is deprecated. Use set('disabled',"+e+") instead.","","2.0"),this.set("disabled",e)},setValue:function(e){i.deprecated("dijit.form._FormWidget:setValue("+e+") is deprecated. Use set('value',"+e+") instead.","","2.0"),this.set("value",e)},getValue:function(){return i.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0"),this.get("value")},postMixInProperties:function(){this.nameAttrSetting=this.name&&!t("msapp")?'name="'+this.name.replace(/"/g,"&quot;")+'"':"",this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(228),i(213),i(204),i(257),i(206),i(245),i(279),i(650)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return t("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text","aria-label":"focusNode",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,_setIdAttr:"focusNode",_setDisabledAttr:function(t){if(this._set("disabled",t),/^(button|input|select|textarea|optgroup|option|fieldset)$/i.test(this.focusNode.tagName)?i.set(this.focusNode,"disabled",t):this.focusNode.setAttribute("aria-disabled",t?"true":"false"),this.valueNode&&i.set(this.valueNode,"disabled",t),t){this._set("hovering",!1),this._set("active",!1);var n="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"_setTabIndexAttr"in this?this._setTabIndexAttr:"focusNode";e.forEach(o.isArray(n)?n:[n],(function(e){var t=this[e];s("webkit")||c.hasDefaultTabStop(t)?t.setAttribute("tabIndex","-1"):t.removeAttribute("tabIndex")}),this)}else""!=this.tabIndex&&this.set("tabIndex",this.tabIndex)},_onFocus:function(e){if("mouse"==e&&this.isFocusable())var t=this.own(a(this.focusNode,"focus",(function(){n.remove(),t.remove()})))[0],i=s("pointer-events")?"pointerup":s("MSPointer")?"MSPointerUp":s("touch-events")?"touchend, mouseup":"mouseup",n=this.own(a(this.ownerDocumentBody,i,o.hitch(this,(function(e){n.remove(),t.remove(),this.focused&&("touchend"==e.type?this.defer("focus"):this.focus())}))))[0];this.scrollOnFocus&&this.defer((function(){l.scrollIntoView(this.domNode)})),this.inherited(arguments)},isFocusable:function(){return!this.disabled&&this.focusNode&&"none"!=n.get(this.domNode,"display")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(e){}},compare:function(e,t){return"number"==typeof e&&"number"==typeof t?isNaN(e)&&isNaN(t)?0:e-t:e>t?1:e<t?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(e,t){null!=this._lastValueReported||null!==t&&this._onChangeActive||(this._resetValue=this._lastValueReported=e),this._pendingOnChange=this._pendingOnChange||typeof e!=typeof this._lastValueReported||0!=this.compare(e,this._lastValueReported),(this.intermediateChanges||t||void 0===t)&&this._pendingOnChange&&(this._lastValueReported=e,this._pendingOnChange=!1,this._onChangeActive&&(this._onChangeHandle&&this._onChangeHandle.remove(),this._onChangeHandle=this.defer((function(){this._onChangeHandle=null,this.onChange(e)}))))},create:function(){this.inherited(arguments),this._onChangeActive=!0},destroy:function(){this._onChangeHandle&&(this._onChangeHandle.remove(),this.onChange(this._lastValueReported)),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(221),i(231)],o=i.dj.d(n,(function(e,t,i,n){var o=e("dijit.form._ButtonMixin"+(i("dojo-bidi")?"_NoBidi":""),null,{label:"",type:"button",__onClick:function(e){return e.stopPropagation(),e.preventDefault(),this.disabled||this.valueNode.click(e),!1},_onClick:function(e){if(this.disabled)return e.stopPropagation(),e.preventDefault(),!1;!1===this.onClick(e)&&e.preventDefault();var t=e.defaultPrevented;if(!t&&"submit"==this.type&&!(this.valueNode||this.focusNode).form)for(var i=this.domNode;i.parentNode;i=i.parentNode){var o=n.byNode(i);if(o&&"function"==typeof o._onSubmit){o._onSubmit(e),e.preventDefault(),t=!0;break}}return!t},postCreate:function(){this.inherited(arguments),t.setSelectable(this.focusNode,!1)},onClick:function(){return!0},_setLabelAttr:function(e){this._set("label",e),(this.containerNode||this.focusNode).innerHTML=e,this.onLabelSet()},onLabelSet:function(){}});return i("dojo-bidi")&&(o=e("dijit.form._ButtonMixin",o,{onLabelSet:function(){this.inherited(arguments);var e=this.containerNode||this.focusNode;this.applyTextDir(e)}})),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3036),i(3037),i(3038),i(3039),i(3040),i(3041),i(3042),i(3043),i(3044),i(3045),i(3046),i(3047),i(3048),i(3049),i(3050),i(3051),i(3052),i(3053),i(3054),i(3055),i(3056),i(3057),i(3058),i(3059),i(3060),i(3061),i(3062),i(3063),i(3064),i(3065),i(3066),i(3067),i(3068),i(3069),i(3070),i(3071),i(3072),i(3073),i(3074)],o=i.dj.d(n,(function(e,t){return t(e,"dijit/nls/common",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(210),i(217),i(213),i(356),i(204),i(206),i(225),i(245),i(231),i(3075),i(3076),i(1783),i(866),i(255),i(1048),i(609),i(411),i(788),i(1066),i(487)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){var y=t("dijit.layout.ScrollingTabController",[p,g],{baseClass:"dijitTabController dijitScrollingTabController",templateString:u,useMenu:!0,useSlider:!0,tabStripClass:"",_minScroll:5,_setClassAttr:{node:"containerNode",type:"class"},buildRendering:function(){this.inherited(arguments);var e=this.domNode;this.scrollNode=this.tablistWrapper,this._initButtons(),this.tabStripClass||(this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None",i.add(e,"tabStrip-disabled")),i.add(this.tablistWrapper,this.tabStripClass)},onStartup:function(){this.inherited(arguments),o.set(this.domNode,"visibility",""),this._postStartup=!0,this.own(s(this.containerNode,"attrmodified-label, attrmodified-iconclass",a.hitch(this,(function(e){this._dim&&this.resize(this._dim)}))))},onAddChild:function(e,t){this.inherited(arguments),o.set(this.containerNode,"width",o.get(this.containerNode,"width")+200+"px")},onRemoveChild:function(e,t){var i=this.pane2button(e.id);this._selectedTab===i.domNode&&(this._selectedTab=null),this.inherited(arguments)},_initButtons:function(){this._btnWidth=0,this._buttons=l("> .tabStripButton",this.domNode).filter((function(e){return this.useMenu&&e==this._menuBtn.domNode||this.useSlider&&(e==this._rightBtn.domNode||e==this._leftBtn.domNode)?(this._btnWidth+=n.getMarginSize(e).w,!0):(o.set(e,"display","none"),!1)}),this)},_getTabsWidth:function(){var e=this.getChildren();if(e.length){var t=e[this.isLeftToRight()?0:e.length-1].domNode,i=e[this.isLeftToRight()?e.length-1:0].domNode;return i.offsetLeft+i.offsetWidth-t.offsetLeft}return 0},_enableBtn:function(e){var t=this._getTabsWidth();return e=e||o.get(this.scrollNode,"width"),t>0&&e<t},resize:function(e){this._dim=e,this.scrollNode.style.height="auto";var t=this._contentBox=f.marginBox2contentBox(this.domNode,{h:0,w:e.w});t.h=this.scrollNode.offsetHeight,n.setContentSize(this.domNode,t);var i=this._enableBtn(this._contentBox.w);return this._buttons.style("display",i?"":"none"),this._leftBtn.region="left",this._rightBtn.region="right",this._menuBtn.region=this.isLeftToRight()?"right":"left",f.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,region:"center"}]),this._selectedTab&&(this._anim&&"playing"==this._anim.status()&&this._anim.stop(),this.scrollNode.scrollLeft=this._convertToScrollLeft(this._getScrollForSelectedTab())),this._setButtonClass(this._getScroll()),this._postResize=!0,{h:this._contentBox.h,w:e.w}},_getScroll:function(){return this.isLeftToRight()||c("ie")<8||c("trident")&&c("quirks")||c("webkit")?this.scrollNode.scrollLeft:o.get(this.containerNode,"width")-o.get(this.scrollNode,"width")+(c("trident")||c("edge")?-1:1)*this.scrollNode.scrollLeft},_convertToScrollLeft:function(e){if(this.isLeftToRight()||c("ie")<8||c("trident")&&c("quirks")||c("webkit"))return e;var t=o.get(this.containerNode,"width")-o.get(this.scrollNode,"width");return(c("trident")||c("edge")?-1:1)*(e-t)},onSelectChild:function(e,t){var i=this.pane2button(e.id);if(i){var n=i.domNode;if(n!=this._selectedTab&&(this._selectedTab=n,this._postResize)){var r=this._getScroll();if(r>n.offsetLeft||r+o.get(this.scrollNode,"width")<n.offsetLeft+o.get(n,"width")){var a=this.createSmoothScroll();t&&(a.onEnd=function(){i.focus()}),a.play()}else t&&i.focus()}this.inherited(arguments)}},_getScrollBounds:function(){var e=this.getChildren(),t=o.get(this.scrollNode,"width"),i=o.get(this.containerNode,"width")-t,n=this._getTabsWidth();if(e.length&&n>t)return{min:this.isLeftToRight()?0:e[e.length-1].domNode.offsetLeft,max:this.isLeftToRight()?e[e.length-1].domNode.offsetLeft+e[e.length-1].domNode.offsetWidth-t:i};var r=this.isLeftToRight()?0:i;return{min:r,max:r}},_getScrollForSelectedTab:function(){this.scrollNode;var e=this._selectedTab,t=o.get(this.scrollNode,"width"),i=this._getScrollBounds(),n=e.offsetLeft+o.get(e,"width")/2-t/2;return n=Math.min(Math.max(n,i.min),i.max)},createSmoothScroll:function(e){if(arguments.length>0){var t=this._getScrollBounds();e=Math.min(Math.max(e,t.min),t.max)}else e=this._getScrollForSelectedTab();this._anim&&"playing"==this._anim.status()&&this._anim.stop();var i=this,n=this.scrollNode,o=new r.Animation({beforeBegin:function(){this.curve&&delete this.curve;var t=n.scrollLeft,a=i._convertToScrollLeft(e);o.curve=new r._Line(t,a)},onAnimate:function(e){n.scrollLeft=e}});return this._anim=o,this._setButtonClass(e),o},_getBtnNode:function(e){for(var t=e.target;t&&!i.contains(t,"tabStripButton");)t=t.parentNode;return t},doSlideRight:function(e){this.doSlide(1,this._getBtnNode(e))},doSlideLeft:function(e){this.doSlide(-1,this._getBtnNode(e))},doSlide:function(e,t){if(!t||!i.contains(t,"dijitTabDisabled")){var n=.75*o.get(this.scrollNode,"width")*e,r=this._getScroll()+n;this._setButtonClass(r),this.createSmoothScroll(r).play()}},_setButtonClass:function(e){var t=this._getScrollBounds();this._leftBtn.set("disabled",e<=t.min),this._rightBtn.set("disabled",e>=t.max)}}),C=t("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:h,tabIndex:"",isFocusable:function(){return!1}});return t("dijit.layout._ScrollingTabControllerButton",[v,C]),t("dijit.layout._ScrollingTabControllerMenuButton",[v,b,C],{containerId:"",tabIndex:"-1",isLoaded:function(){return!1},loadDropDown:function(t){this.dropDown=new m({id:this.containerId+"_menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir});var i=d.byId(this.containerId);e.forEach(i.getChildren(),(function(e){var t=new _({id:e.id+"_stcMi",label:e.title,iconClass:e.iconClass,disabled:e.disabled,ownerDocument:this.ownerDocument,dir:e.dir,lang:e.lang,textDir:e.textDir||i.textDir,onClick:function(){i.selectChild(e)}});this.dropDown.addChild(t)}),this),t()},closeDropDown:function(e){this.inherited(arguments),this.dropDown&&(this._popupStateNode.removeAttribute("aria-owns"),this.dropDown.destroyRecursive(),delete this.dropDown)}}),y}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({DIALOG:"dialog",ALERT_DIALOG:"alertdialog"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(277),i(1791),i(659)],o=i.dj.d(n,(function(e,t,i,n,o){var r=function(e,t){return!!(e&&t&&e instanceof Element)&&e[e.msMatchesSelector?"msMatchesSelector":"matches"](t)};return e([n],{postCreate:function(){this.inherited(arguments),this._setFocusType(),this.domNode.classList.add("galleryPopup"),this._handleCloseButtonClick=function(){i.close(this)}.bind(this),this.closeButtonNode.setAttribute("tabindex","0"),this.own(t(this.closeButtonNode,"focus",this._handleCloseButtonFocus.bind(this))),this.own(t(this.closeButtonNode,"blur",this._handleCloseButtonBlur.bind(this))),t(this.closeButtonNode,"click",this._handleCloseButtonClick),this._handleFocusChange=function(e){r(e.target,".mwToolstripPopupContextMenu, .mwToolstripPopupContextMenu *")||e.target.hasAttribute("dijitpopupparent")&&r(e.target.firstChild,".mwToolstripPopupContextMenu, .mwToolstripPopupContextMenu *")||(e.target&&e.target instanceof Element&&this.domNode&&this.domNode.parentElement&&"none"!==this.domNode.parentElement.style.display&&!this.domNode.contains(e.target)&&this.domNode!==e.target&&(this._invokingWidget?this._invokingWidget.domNode&&!this._invokingWidget.domNode.contains(e.target)&&i.close(this):i.close(this)),this._handleWindowBlur(e))}.bind(this),this._handleWindowBlur=function(e){e.target!==window&&e.target!==document.documentElement||i.close(this)}.bind(this),this.domNode.style.display="none",document.body.appendChild(this.domNode)},_handleCloseButtonFocus:function(){this.closeButtonWrapper&&this.closeButtonWrapper.classList.add("mwCloseButtonFocused")},_handleCloseButtonBlur:function(){this.closeButtonWrapper&&this.closeButtonWrapper.classList.remove("mwCloseButtonFocused")},_setFocusType:function(){this.domNode.setAttribute("data-focus","temporary")},_calculateSelfMaxHeight:function(){var e=window.innerHeight-this.domNode.getBoundingClientRect().top;this.domNode.style.maxHeight=e+"px"},_calculateSelfMaxWidth:function(){var e=this.domNode.getBoundingClientRect().x||0,t=window.innerWidth-e;this.domNode.style.maxWidth=t+"px"},_resizeContainerNode:function(e){var t=e*this.galleryItemWidth+8+20;this.domNode.style.width=t+"px"},_setColumnMajorLayoutAttr:function(e){if(this.get("columnMajorLayout")!==e)throw new Error("'columnMajorLayout' property can only be set one time during widget creation using a config file or uiBuilder API to create Gallery Popup. It's value cannot be changed later.")},_setColumnCountAttr:function(e){if("number"!=typeof e||e<0)throw new Error("'columnCount' property expects a positive integer number!");this._set("columnCount",e)},beforeOpen:function(){var e;this._invokingGallery||(e=this.get("columnCount")||7,this._resizeContainerNode(e))},updateColumnMajorLayout:function(){if(this._started&&this.displayState===o.ICON){this.domNode.classList.add("columnMajorLayout");var e,t=this.getChildren();t&&t.length>0&&0!==(e=this.get("columnCount"))&&(t.forEach(function(t){this._addColumnMajorLayoutStylesToCategory(t,e)}.bind(this)),this._favCategoryWidget&&this._addColumnMajorLayoutStylesToCategory(this._favCategoryWidget,e))}},_addColumnMajorLayoutStylesToCategory:function(e,t){var i=this._getNumberOfVisibleCategoryChildren(e);i>0&&this._setGridTemplateRowsAndColumnsOnCategory(e,i,t)},_getNumberOfVisibleCategoryChildren:function(e){var t=e.getChildren(),i=0;return t.forEach((function(e){e.domNode&&!e.domNode.classList.contains("hideFromView")&&(i+=1)})),i},_setGridTemplateRowsAndColumnsOnCategory:function(e,t,i){var n=Math.ceil(t/i);e.containerNode.style.gridTemplateColumns="repeat("+i+", 1fr)",e.containerNode.style.gridTemplateRows="repeat("+n+", 1fr)"},_isInPopup:function(){return!0},refreshGallery:function(){this._invokingGallery&&this._invokingGallery.refresh&&this._invokingGallery.refresh()},onOpen:function(){this.inherited(arguments),this.isShowingNow=!0,this.domNode.parentNode.classList.add("galleryPopupWrapper"),this.domNode.parentNode.style.height="auto",this._calculateSelfMaxWidth(),this._calculateSelfMaxHeight(),this._checkForPopupListInFooter(),this._toggleDisplay(this.noSearchMatchNode,!1),setTimeout(function(){this.focus(),setTimeout(function(){document.addEventListener("mousedown",this._handleFocusChange,!0),document.addEventListener("pointerdown",this._handleFocusChange,!0),window.addEventListener("blur",this._handleWindowBlur),this.globalListenersCreated=!0}.bind(this),0)}.bind(this),10),!this._invokingGallery&&this.get("columnMajorLayout")&&this.updateColumnMajorLayout(),this.emit("open")},onClose:function(){this.inherited(arguments),this.isShowingNow=!1,this._resetSearchBoxValue(),document.removeEventListener("mousedown",this._handleFocusChange),document.removeEventListener("pointerdown",this._handleFocusChange),window.removeEventListener("blur",this._handleWindowBlur),delete this.globalListenersCreated,this.emit("restorefocus")},destroy:function(){this.inherited(arguments),this.globalListenersCreated&&window.removeEventListener("blur",this._handleWindowBlur)},onExecute:function(){},_qeCloseClick:function(){this._handleCloseButtonClick()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(223),i(214),i(1320),i(231),i(215),i(216),i(272),i(544),i(3100),i(258),i(446),i(243),i(1321),i(209),i(659),i(3101),i(361),i(1792),i(1793),i(1310),i(226),i(569)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){function S(e){return e.charAt(0).toUpperCase()+e.slice(1)}var w=e(null,{constructor:function(e){e=e||{},g.assert(e.id,"An id is required for a filter!"),g.assert(e.checkerFunction,"A checker function is required for a filter!"),this.id=e.id,this.disabled=!!e.disabled,this.checkerFunction=e.checkerFunction}});return e([a,s,l,v,b,y,_],{templateString:d,showHeader:!0,dndEnabled:!1,ownsFooter:!0,_listeners:[],constructor:function(){this.searchBox=new f({value:""}),this.searchBox._setWidthAttr=function(){},this.own(this.searchBox),this._searchBoxValue="",this._buildAndAddFilters()},buildRendering:function(){this.inherited(arguments),this.searchBox.placeAt(this.searchTextFieldContainerNode)},postCreate:function(){this.domNode.classList.add("galleryPanel"),this.domNode.classList.add("displayFocus"),this.inherited(arguments),this._setFocusType(),this._createSearchBoxAndButtons(),this.own(n.after(this,"addChild",function(e,t,i){e.set("displayState",this.displayState),e.set("reorderCategory",this.reorderCategory),e.set("galleryItemRowCount",this.galleryItemRowCount),e.set("galleryPopupId",this.id),i&&"UI"===i.source?this.galleryStateChanged():this.refreshGallery&&this.refreshGallery(),this._createDndSource()}.bind(this),!0)),this.own(n.after(this,"removeChild",function(e,t){this._moving?delete this._moving:t&&"UI"===t.source?this.galleryStateChanged():this.refreshGallery&&this.refreshGallery()}.bind(this),!0)),this.noSearchMatchNode.style.display="none",this.noSearchMatchNode.textContent=c.noSearchMatchNode,this._startupHeaderWidgets(),this._listeners.push(E.addEventListener(this.domNode,"keydown",this._keyDownHandler.bind(this))),this.categoryContainer.setAttribute("tabindex","-1")},_keyDownHandler:function(e){if(e.keyCode===i.TAB){var t=this.header.querySelector("[tabindex='0']"),n=this._getLastFocusableElement();t&&n&&(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault())),this._isInPopup()&&e.stopImmediatePropagation()}},_isInPopup:function(){return!1},_getLastFocusableElement:function(){var e=this.footerContainer.querySelectorAll("[tabindex='0']");if((e=Array.prototype.slice.call(e))&&e.length>0)return e[e.length-1];var t=this.domNode.querySelectorAll(".Category:not(.hideFromView)");if((t=Array.prototype.slice.call(t))&&t.length>0){var i=t[t.length-1],n=i.querySelectorAll(".mwGalleryItem:not(.hideFromView) [tabindex='0']");if((n=Array.prototype.slice.call(n))&&n.length>0)return this.get("favoritesEnabled")?n[n.length-1]:n[n.length-2];var o=i.querySelector(".moveBottomButton"),r=i.querySelector(".moveTopButton");return o&&"none"!==window.getComputedStyle(o).display?o:r&&"none"!==window.getComputedStyle(r).display?r:i.querySelector(".titleNode")}var a=this.header.querySelectorAll("[tabindex='0']");return a&&a.length>0?a[a.length-1]:void 0},_setFocusType:function(){this.domNode.setAttribute("data-focus","permanent")},_buildAndAddFilters:function(){var e=this;this.galleryItemFilters={},this.galleryItemFilters.search=new w({id:"search",checkerFunction:function(t){var i,n;i=e._searchBoxValue;var o=t.get("text").replace(/\n/g," ");return n=new RegExp(e._escapeRegExp(i),"i"),""===i||n.test(o)||n.test(t.get("description"))||n.test(t.getParent().get("title"))}}),this.galleryItemFilters.onlyShowEnabled=new w({id:"onlyShowEnabled",disabled:!0,checkerFunction:function(e){return!1===e.get("disabled")}})},_checkForPopupListInFooter:function(){var e;this.footerContainer&&this.footerContainer.querySelectorAll(".toolstripPopupList").length>0&&(e=this.footerContainer.querySelector(".toolstripPopupList").getAttribute("widgetid"),r.byId(e).onOpen())},_setIsolatedCategoryIdAttr:function(e){(null===e||this._getAllChildren(!0).find(t=>t.id===e))&&this._set("isolatedCategoryId",e),this.enforceFilters()},_getAllChildren:function(e){var t=this.getChildren();return this._favCategoryWidget&&e&&t.push(this._favCategoryWidget),t},enforceFilters:function(){var e,t,i=!!(t=this._getAllChildren(!0)).find(e=>e.id===this.isolatedCategoryId);i?(this._destroyDndSource(),this._preShowcaseShowFooterValue=this.get("showFooter"),this.set("showFooter",!1)):(this.isolatedCategoryId&&this.set("isolatedCategoryId",null),this._createDndSource(),this.set("showFooter",this._preShowcaseShowFooterValue||!0),delete this._preShowcaseShowFooterValue),t.forEach((function(t){(e=t.getChildren()).forEach((function(e){e.domNode.classList.remove("hideFromView"),Object.keys(this.galleryItemFilters).forEach((function(t){var i=this.galleryItemFilters[t];i.disabled||i.checkerFunction(e)||e.domNode.classList.add("hideFromView")}),this)}),this),i?(t.id===this.isolatedCategoryId?t.domNode.classList.remove("hideFromView"):t.domNode.classList.add("hideFromView"),t.reorderCat=t.reorderCategory,t.set("reorderCategory",!1)):(e.length<1&&t.hideWhenEmpty||(this._searchBoxValue.length>0||e.length>0)&&t.domNode.querySelectorAll(".hideFromView").length>=e.length?t.domNode.classList.add("hideFromView"):t.domNode.classList.remove("hideFromView"),t.set("reorderCategory",!("reorderCat"in t)||t.reorderCat),delete t.reorderCat)}),this),!this._invokingGallery&&this.get("columnMajorLayout")&&this.updateColumnMajorLayout&&this.updateColumnMajorLayout(),this._toggleDisplay(this.noSearchMatchNode,this.domNode.querySelectorAll(".Category.hideFromView").length===t.length)},_setReorderCategoryAttr:function(e){if("boolean"!=typeof e)throw new Error("Expected input value for 'reorderCategory' to be a boolean value.");this._set("reorderCategory",e)},_setFavoritesEnabledAttr:function(e){if("boolean"!=typeof e)throw new Error("Expected input value for 'favoritesEnabled' to be a boolean value.");!0===e?(this.domNode.classList.add("favoritesEnabled"),this.domNode.classList.remove("favoritesDisabled")):(this.domNode.classList.add("favoritesDisabled"),this.domNode.classList.remove("favoritesEnabled")),this._set("favoritesEnabled",e)},_setShowHeaderAttr:function(e){if("boolean"!=typeof e)throw new Error("Expected input value for 'showHeader' to be a boolean value.");!1===e?(this.header.style.display="none",this.header.classList.remove("margin")):!0===e&&(this.header.style.display=null,this.header.classList.add("margin")),this._set("showHeader",e)},_setShowFooterAttr:function(e){if("boolean"!=typeof e)throw new Error('Expected input value for "showFooter" to be a boolean value.');e?this.footerContainer.classList.remove("hideFromView"):this.footerContainer.classList.add("hideFromView"),this._set("showFooter",e)},_setHideDisabledItemsAttr:function(e){1==e?(this.galleryItemFilters.onlyShowEnabled.disabled=!1,this.enforceFilters()):(this.galleryItemFilters.onlyShowEnabled.disabled=!0,this.enforceFilters()),this._favCategoryWidget&&this._favCategoryWidget.showHideCategory(),this._set("hideDisabledItems",e)},_setDisplayStateAttr:function(e){var t=this.categoryContainer;t.style.overflowY="hidden",this.domNode.classList.remove(m.ICON),this.domNode.classList.remove(m.LIST),this.domNode.classList.add(e),this._set("displayState",e),this._favCategoryWidget&&this._favCategoryWidget.set("displayState",e),this.getChildren().forEach((function(t){t.set("displayState",e)})),this._updateToggleButtons(),this.updateColumnMajorLayout&&!this._invokingGallery&&this.get("columnMajorLayout")&&!this.domNode.classList.contains("columnMajorLayout")&&this.updateColumnMajorLayout(),setTimeout((function(){t.style.overflowY="auto"}),0)},_setDndEnabledAttr:function(e){if("boolean"!=typeof e)throw new Error("Expected input value to be of type 'boolean'.");this._set("dndEnabled",e),e?this._createDndSource():this._destroyDndSource()},_setListViewDisplayDensityAttr:function(e){var t=!1;Object.keys(C).forEach(function(i){this.domNode.classList.remove("mw"+S(i)+"ListViewDisplayDensity"),e===C[i]&&(t=!0)}.bind(this)),t&&this._set("listViewDisplayDensity",e),this.domNode.classList.add("mw"+S(this.get("listViewDisplayDensity"))+"ListViewDisplayDensity")},_createDndSource:function(){this.dndEnabled&&(this._destroyDndSource(),this._dragSorter=new o({containerNode:this.containerNode,dragOrientation:"vertical"}),this._dragSorterListener=this._dragSorter.on("nodemoved",this._onContainerDropHandler.bind(this)))},_destroyDndSource:function(){this._dragSorter&&(this._dragSorterListener.remove(),delete this._dragSorterListener,this._dragSorter.destroy(),delete this._dragSorter)},_onContainerDropHandler:function(e){var t=r.getEnclosingWidget(e.node);t.categoryMoved({action:"Drop",itemId:t.id,newIndex:e.newIndex,originator:{source:"UI"}},{widget:t,sourceData:this.containerNode,targetWidget:this})},_updateToggleButtons:function(){this.displayState===m.ICON?this.iconViewButton&&!this.iconViewButton.checked&&this.iconViewButton.set("checked",!0):this.listViewButton&&!this.listViewButton.checked&&this.listViewButton.set("checked",!0)},_setFooterIdAttr:function(e){var t;if(this.footerId&&e!==this.footerId){if(this.ownsFooter)(t=r.byId(this.footerId))&&t.destroyRecursive();else for(;this.footerContainer.firstChild;)this.footerContainer.firstChild.remove();this._set("footerId","")}(t=r.byId(e))?(0===t.getChildren().length&&this.set("showFooter",!1),this.footerContainer.appendChild(t.domNode),t.startup(),this.set("showFooter",!0)):this.set("showFooter",!1),this._set("footerId",e)},_setFavCategoryIdAttr:function(e){var t=r.byId(e);t&&(this._favCategoryWidget=t,0===t.getChildren().length&&t.domNode.classList.add("hideFromView"),t.set("isFavoriteCategory",!0),t.set("galleryPopupId",this.id),this.favCategoryContainer.appendChild(t.domNode),this.own(t),t.set("displayState",this.displayState)),this._set("favCategoryId",e)},_setPlaceholderTextAttr:function(e){this.searchBox.set("placeholder",e)},_getPlaceholderTextAttr:function(){return this.searchBox.getAttribute("placeholder")},_setWidthAttr:function(e){if(["number","string"].indexOf(typeof e)<0)throw new Error("Expected a numeric or string value");if("number"==typeof e)e=e<=0?0:e+"px";else if("auto"!==e&&!/[0-9]+.?([0-9]+)?(px|rem|em|%)$/.test(e))throw new Error("Expected a valid CSS descriptor value");this.domNode.style.width=e},_getWidthAttr:function(){var e=this.domNode.style.width;return e?"auto":e},_setHeightAttr:function(e){if(["number","string"].indexOf(typeof e)<0)throw new Error("Expected a numeric or string value");if("number"==typeof e)e=e<=0?0:e+"px";else if("auto"!==e&&!/[0-9]+.?([0-9]+)?(px|rem|em|%)$/.test(e))throw new Error("Expected a valid CSS descriptor value");this.domNode.style.height=e},_getHeightAttr:function(){var e=this.domNode.style.height;return e?"auto":e},_toggleDisplay:function(e,t){e.style.display=t?"block":"none"},_handleSearchKeyDown:function(e){e.keyCode===i.ESCAPE&&""!==e.target.value&&(this._resetSearchBoxValue(),this.searchBox.toggleSearchBoxIcon(),e.stopPropagation())},_handleSearchBoxTyping:function(e){this._searchBoxValue=e.mwEventData.currentContent,this.enforceFilters()},_handleCompositionUpdate:function(e){this._searchBoxValue=e.data,this.enforceFilters()},_createSearchBoxAndButtons:function(){var e=this;this.searchBox.on("typing",this._handleSearchBoxTyping.bind(this)),E.isCJKLocale()&&this._listeners.push(E.addEventListener(this.searchBox.inputNode,"compositionupdate",this._handleCompositionUpdate.bind(this))),this.searchBox.on("keydown",this._handleSearchKeyDown.bind(this)),this.listViewButton=new h({icon:"icon_view_list_16",tag:"listViewButton",buttonGroup:"galleryPopupView_"+this.id,description:c.listView}),this.own(this.listViewButton),this.listViewButton.placeAt(this.listViewButtonContainerNode),this.listViewButton.on("click",function(e){e.clientX>0&&e.clientY>0&&this.focus()}.bind(this)),this.iconViewButton=new h({icon:"icon_view_icon_16",tag:"iconViewButton",buttonGroup:"galleryPopupView_"+this.id,checked:!0,description:c.iconView}),this.own(this.iconViewButton),this.iconViewButton.placeAt(this.iconViewButtonContainerNode),this.iconViewButton.on("click",function(e){e.clientX>0&&e.clientY>0&&this.focus()}.bind(this)),this.listViewButton.on("change",(function(t){"checked"===t.mwEventData.propertyName&&!0===t.mwEventData.newValue&&e.set("displayState",m.LIST)})),this.iconViewButton.on("change",(function(t){"checked"===t.mwEventData.propertyName&&!0===t.mwEventData.newValue&&e.set("displayState",m.ICON)})),this._updateToggleButtons()},_resetSearchBoxValue:function(){this.searchBox.set("value",""),this._searchBoxValue="",this.enforceFilters()},focus:function(){this.searchBox&&this.searchBox.focusNode&&this.searchBox.focusNode.focus&&this.searchBox.focusNode.focus()},_startupHeaderWidgets:function(){this.searchBox.startup(),this.listViewButton.startup(),this.iconViewButton.startup()},galleryStateChanged:function(){},_escapeRegExp:function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},destroy:function(){this._destroyDndSource(),this._listeners.forEach((function(e){e.remove()})),this.set("footerId",""),this.inherited(arguments)},_qeTyping:function(e){this.searchBox._qeTyping(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210)],o=i.dj.d(n,(function(e,t){return e(null,{_setGalleryItemRowCountAttr:function(e){t.remove(this.domNode,"oneRow"),t.remove(this.domNode,"twoRow"),t.remove(this.domNode,"threeRow"),1===e?t.add(this.domNode,"oneRow"):2===e?t.add(this.domNode,"twoRow"):3===e&&t.add(this.domNode,"threeRow"),this._set("galleryItemRowCount",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210)],o=i.dj.d(n,(function(e,t){return e(null,{_setGalleryItemTextLineCountAttr:function(e){t.remove(this.domNode,"zeroLine"),t.remove(this.domNode,"oneLine"),t.remove(this.domNode,"twoLine"),0===e?t.add(this.domNode,"zeroLine"):1===e?t.add(this.domNode,"oneLine"):2===e&&t.add(this.domNode,"twoLine"),this._set("galleryItemTextLineCount",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{VERTICAL:"Vertical",HORIZONTAL:"Horizontal"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(242),i(227),i(228),i(210),i(211),i(1274),i(225)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("dojo.dnd.Avatar",null,{constructor:function(e){this.manager=e,this.construct()},construct:function(){var e,t=r.create("table",{class:"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),i=this.manager.source,o=r.create("tbody",null,t),s=r.create("tr",null,o),l=r.create("td",null,s),c=Math.min(5,this.manager.nodes.length),d=0;for(a("highcontrast")&&r.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},l),r.create("span",{innerHTML:i.generateText?this._generateText():""},l),n.set(s,{class:"dojoDndAvatarHeader",style:{opacity:.9}});d<c;++d){if(i.creator)e=i._normalizedCreator(i.getItem(this.manager.nodes[d].id).data,"avatar").node;else if("tr"==(e=this.manager.nodes[d].cloneNode(!0)).tagName.toLowerCase()){var u=r.create("table");r.create("tbody",null,u).appendChild(e),e=u}e.id="",s=r.create("tr",null,o),(l=r.create("td",null,s)).appendChild(e),n.set(s,{class:"dojoDndAvatarItem",style:{opacity:(9-d)/10}})}this.node=t},destroy:function(){r.destroy(this.node),this.node=!1},update:function(){if(o.toggle(this.node,"dojoDndAvatarCanDrop",this.manager.canDropFlag),a("highcontrast")){var e=i.byId("a11yIcon"),t="+";this.manager.canDropFlag&&!this.manager.copy?t="< ":this.manager.canDropFlag||this.manager.copy?this.manager.canDropFlag||(t="x"):t="o",e.innerHTML=t}s("tr.dojoDndAvatarHeader td span"+(a("highcontrast")?" span":""),this.node).forEach((function(e){e.innerHTML=this.manager.source.generateText?this._generateText():""}),this)},_generateText:function(){return this.manager.nodes.length.toString()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(795),i(229)],o=i.dj.d(n,(function(e,t,i,n){var o={},r=function(e){var t=-1;Object.keys(o).some((function(i,n,r){return o[i].dndSource===e&&(t=i,!0)}));return t};t.around(i.manager(),"makeAvatar",(function(e){return function(){var t,n=i.manager();return!1===Object.keys(o).some((function(e,i,r){return o[e].dndSource===n.source&&(t=o[e].makeAvatarFunc.call(n),!0)}))&&(t=e.call(n)),t}}));return{registerMakeAvatar:function(e,t){var i=function(e){var t=r(e);return-1===t&&(t=n.generateUuid()),t}(e);o[i]={dndSource:e,makeAvatarFunc:t}},unregisterMakeAvatar:function(e){var t=r(e);-1!==t&&delete o[t]},destroy:function(e){e&&e.remove()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(243),i(449),i(435),i(792),i(711),i(332),i(466),i(570),i(412),i(518),i(436),i(370),i(519),i(710),i(793),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e(m.validate([t,i,n,o,r,a,s,l,c,d,u,h,p,f,g]),{visualFamily:"default",_setOrientationAttr:function(e){this.inherited(arguments),"Horizontal"===e?this.set("HorizontalAlignment","left"):this.set("HorizontalAlignment","center")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(330)],o=i.dj.d(n,(function(e,t,i){var n=function(e){if(("object"!=typeof e||e.constructor!==Array)&&e.length>0&&e[0].constructor!==HTMLDivElement)throw new Error("'tabIndexNodes' property expects an array of DOM nodes as input.")},o=e(null,{tabIndexNodes:[],addTabIndexNodes:function(e){n(e),this.set("tabIndexNodes",this.get("tabIndexNodes").concat(e))},removeTabIndexNodes:function(e){n(e);var t,i,o,r=this.get("tabIndexNodes");e.forEach((function(e){-1===(o=r.indexOf(e))?(t=r,i=[]):(t=r.slice(0,o),i=r.slice(o+1,o+1+(r.length-o))),r=t.concat(i),e.removeAttribute("tabIndex")})),this.set("tabIndexNodes",r)},_setTabIndexNodesAttr:function(e){n(e),this._set("tabIndexNodes",e),this._updateTabIndices()},_setDisabledAttr:function(e){this.inherited(arguments),this._updateTabIndices()},_updateTabIndices:function(){this.get("tabIndexNodes").forEach(t.hitch(this,(function(e){this._setTabIndexOnNode(e)})))}});return o._dependencies=[{mixin:i,orderDependent:!0}],o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(330),i(432),i(353),i(894),i(1070),i(791)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=e(null,{dropDownNeverDisabled:!1,mnemonicKeyNavDirectionNodes:[],postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwDropDownNeverDisabledMixin"),this.set("dropDownNeverDisabled",this.get("dropDownNeverDisabled")),this._buttonNodeInteractionHandler=this._buttonNodeInteractionHandler.bind(this),this._addDisableListener(this.buttonNode,this._buttonNodeInteractionHandler),this.mnemonicKeyNavDirectionNodes.push(this.buttonNode),this.buttonNode.setAttribute("role","button")},destroy:function(){this.domNode&&this._removeDisableListener(this.buttonNode,this._buttonNodeInteractionHandler),this.inherited(arguments)},_buttonNodeInteractionHandler:function(e){this.get("disabled")&&this.get("dropDownNeverDisabled")&&this._disabledInteraction(e)},_disableInteractionHandler:function(e){this.get("disabled")&&(this.get("dropDownNeverDisabled")||this._disabledInteraction(e))},_setDropDownNeverDisabledAttr:function(e){if("boolean"!=typeof e)throw new Error("'dropDownNeverDisabled' property expects a boolean!");this._set("dropDownNeverDisabled",e),e?this.domNode.classList.add("mwDropDownNeverDisabledTrue"):this.domNode.classList.remove("mwDropDownNeverDisabledTrue"),this._setAriaDisabled(),this._setTabIndexOnNode(this.focusNode)},_setTabIndexOnNode:function(e){this.get("disabled")?(this.buttonNode.removeAttribute("tabIndex"),this.get("dropDownNeverDisabled")?e.setAttribute("tabIndex","0"):e.removeAttribute("tabIndex")):(e.setAttribute("tabIndex","0"),this.buttonNode.setAttribute("tabIndex","0"))}});return l._dependencies=[{mixin:i,orderDependent:!0},{mixin:n,orderDependent:!0},{mixin:o,orderDependent:!0},{mixin:r,orderDependent:!0},{mixin:a,orderDependent:!0},{mixin:s,orderDependent:!0}],l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(211),i(206),i(514),i(1040),i(654)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=e(null,{buildRendering:function(){this.inherited(arguments),n.place(this.buttonNode,this.focusNode,"before")},_onMouseClick:function(e){this.inherited(arguments),i.isDescendant(e.target,this.buttonNode)&&this.isMenuOpen()&&this.closeMenu(!1)}});return l._dependencies=[{mixin:s,orderDependent:!0}],l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(206),i(514)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{postCreate:function(){this.inherited(arguments),this.own(n(this.buttonNode,"focus",t.hitch(this,"_handleFocus")),n(this.buttonNode,"blur",t.hitch(this,"_handleBlur")),n(this.focusNode,"focus",t.hitch(this,"_handleFocus")),n(this.focusNode,"blur",t.hitch(this,"_handleBlur")),n(this.buttonNode,"keydown",t.hitch(this,"_handleKeyDown")),n(this.focusNode,"keydown",t.hitch(this,"_handleKeyDown")))},_handleKeyDown:function(e){switch(e.keyCode){case i.DOWN_ARROW:"Vertical"===this.get("orientation")&&e.target.classList.contains("mwButtonNode")&&this.focusNode.focus();break;case i.UP_ARROW:"Vertical"===this.get("orientation")&&e.target.classList.contains("mwFocusNode")&&this.buttonNode.focus();break;case i.RIGHT_ARROW:"Horizontal"===this.get("orientation")&&e.target.classList.contains("mwButtonNode")&&this.focusNode.focus();break;case i.LEFT_ARROW:"Horizontal"===this.get("orientation")&&e.target.classList.contains("mwFocusNode")&&this.buttonNode.focus()}},_handleFocus:function(e){this.baseClass.split(" ").forEach(t.hitch(this,(function(e){o.toggleClass(this.domNode,e+"Focused",!0)}))),o.toggleClass(e.target,"mwNodeFocused",!0)},_handleBlur:function(e){this.baseClass.split(" ").forEach(t.hitch(this,(function(e){o.toggleClass(this.domNode,e+"Focused",!1)}))),o.toggleClass(e.target,"mwNodeFocused",!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getTitleNodes:function(){return[this.buttonNode,this.focusNode]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getTitleNodes:function(){return[this.buttonNode,this.focusNode]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(446),i(449),i(435),i(792),i(711),i(518),i(436),i(1076),i(332),i(412),i(370),i(466),i(519),i(570),i(710),i(793),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e(_.validate([t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m]),{visualFamily:"default",_setOrientationAttr:function(e){this.inherited(arguments),"Horizontal"===e?this.set("HorizontalAlignment","left"):this.set("HorizontalAlignment","center")},_qeSetChecked:function(e){this.set("checked",e,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({AUTO:"auto",NONE:"none",FLAT:"flat",INTERP:"interp",TEXTUREMAP:"texturemap"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3155),i(449),i(435),i(466),i(570),i(518),i(711),i(1319),i(1073),i(792),i(436),i(332),i(412),i(895),i(1322),i(1074),i(545),i(370),i(519),i(710),i(793),i(1803),i(1323),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S){return e(S.validate([t,i,n,a,s,l,c,d,u,o,r,h,p,v,b,f,g,m,_,y,C,T,E]),{visualFamily:"default",minWidth:38,resize:function(){this.inherited(arguments);var e="Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&navigator.appVersion.indexOf("Edge")>-1;e&&(this._updateTextNodeWidth(),this.own(this.watch("text",this._updateTextNodeWidth)))},_updateTextNodeWidth:function(){this.textNode&&!this.textNode.classList.contains("mwEmptyNode")&&this.domNode.classList.contains("mwHorizontalOrientation")&&setTimeout(function(){this.textNode&&(this.textNode.style.width="",this.textNode.style.width=Math.ceil(parseFloat(window.getComputedStyle(this.textNode,null).width))+"px")}.bind(this),0)},_qeSetChecked:function(e){this.set("checked",e,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(781)],o=i.dj.d(n,(function(e,t,i){var n,o,r,a,s={};return o={enabled:"disabled"},n=e.mixin({text:"label"},o),r=e.mixin({text:"label",showText:"showLabel",shortcut:"accelKey"},o),a=e.mixin({popupId:"menuId",hasDynamicPopup:"hasDynamicMenu"},o),s[t.PUSH_BUTTON]=-1===i.indexOf(t.PUSH_BUTTON)?n:o,s[t.TOGGLE_BUTTON]=e.mixin({selected:"checked"},-1===i.indexOf(t.TOGGLE_BUTTON)?n:o,-1===i.indexOf(t.TOGGLE_BUTTON)?{}:{buttonGroupName:"buttonGroup"}),s[t.TOGGLE_SPLIT_BUTTON]=e.mixin({selected:"checked"},-1===i.indexOf(t.TOGGLE_SPLIT_BUTTON)?o:a,-1===i.indexOf(t.TOGGLE_SPLIT_BUTTON)?{}:{buttonGroupName:"buttonGroup"},-1===i.indexOf(t.TOGGLE_SPLIT_BUTTON)?{}:{dropDownAlwaysEnabled:"dropDownNeverDisabled"}),s[t.DROP_DOWN_BUTTON]=-1===i.indexOf(t.DROP_DOWN_BUTTON)?n:a,s[t.SPLIT_BUTTON]=e.mixin({},-1===i.indexOf(t.SPLIT_BUTTON)?n:a,-1===i.indexOf(t.SPLIT_BUTTON)?{}:{dropDownAlwaysEnabled:"dropDownNeverDisabled"}),s[t.COLOR_PICKER_BUTTON]=o,s[t.GRID_PICKER_BUTTON]=o,s[t.SPLIT_BUTTON_WITH_DISABLE_OVERRIDE]=n,s[t.LIST_ITEM]=e.mixin({},-1===i.indexOf(t.LIST_ITEM)?r:o,-1===i.indexOf(t.LIST_ITEM)?{}:{closePopupOnClick:"closeMenuOnClick"}),s[t.LIST_ITEM_WITH_CHECKBOX]=e.mixin({selected:"checked"},-1===i.indexOf(t.LIST_ITEM_WITH_CHECKBOX)?r:o,-1===i.indexOf(t.LIST_ITEM_WITH_CHECKBOX)?{}:{closePopupOnClick:"closeMenuOnClick"}),s[t.LIST_ITEM_WITH_RADIO_BUTTON]=e.mixin({selected:"checked"},-1===i.indexOf(t.LIST_ITEM_WITH_RADIO_BUTTON)?r:o,-1===i.indexOf(t.LIST_ITEM_WITH_RADIO_BUTTON)?{}:{closePopupOnClick:"closeMenuOnClick",buttonGroupName:"buttonGroup"}),s[t.LIST_ITEM_WITH_TEXTFIELD]=e.mixin(-1===i.indexOf(t.LIST_ITEM_WITH_TEXTFIELD)?{editable:"readOnly"}:{placeholderText:"placeholder"},{text:"value"},{closePopupOnClick:"closeMenuOnClick"},o),s[t.LIST_ITEM_WITH_POPUP]=-1===i.indexOf(t.LIST_ITEM_WITH_POPUP)?r:a,s[t.POPUP_LIST_HEADER]=e.mixin({title:-1===i.indexOf(t.POPUP_LIST_HEADER)?"label":"text"}),s[t.SPINNER]=e.mixin({minorStepSize:-1===i.indexOf(t.SPINNER)?"smallDelta":"step",majorStepSize:-1===i.indexOf(t.SPINNER)?"largeDelta":"step"},-1===i.indexOf(t.SPINNER)?{editable:"readOnly"}:{},o),s[t.TEXT_FIELD]=e.mixin({text:"value"},-1===i.indexOf(t.TEXT_FIELD)?{placeholderText:"placeHolder_asdfasdf",editable:"readOnly"}:{placeholderText:"placeholder"},o),s[t.TEXT_AREA]=e.mixin({text:"value"},-1===i.indexOf(t.TEXT_AREA)?{editable:"readOnly"}:{},o),s[t.RADIO_BUTTON]=e.mixin(-1===i.indexOf(t.RADIO_BUTTON)?{text:"label"}:{buttonGroupName:"buttonGroup"},{selected:"checked"},o),s[t.LABEL]=e.mixin({},o),s[t.CHECK_BOX]=e.mixin(-1===i.indexOf(t.CHECK_BOX)?{text:"label"}:{},{selected:"checked"},o),s[t.COMBO_BOX]=e.mixin(-1===i.indexOf(t.COMBO_BOX)?{editable:"readOnly"}:{selectedItem:"value",placeholderText:"placeholder"},o),s[t.LIST]=e.mixin(-1===i.indexOf(t.LIST)?{}:{selectedItems:"value"},o),s[t.HORIZONTAL_SLIDER]=o,s[t.GALLERY]=o,s[t.GALLERY_ITEM]=o,s[t.TOGGLE_GALLERY_ITEM]=e.mixin({selected:"checked",buttonGroupName:"buttonGroup"},o),s[t.QAB_PUSH_BUTTON]=s[t.PUSH_BUTTON],s[t.QAB_DROP_DOWN_BUTTON]=s[t.DROP_DOWN_BUTTON],s[t.QAB_FLOATING_PANE_DOCK]=n,s[t.QAB_SPLIT_BUTTON]=s[t.SPLIT_BUTTON],s[t.QAB_TOGGLE_BUTTON]=s[t.TOGGLE_BUTTON],s[t.QAB_TOGGLE_SPLIT_BUTTON]=s[t.TOGGLE_SPLIT_BUTTON],s[t.QAB_GALLERY_CATEGORY_BUTTON]=s[t.QAB_DROP_DOWN_BUTTON],Object.keys(s).forEach((function(e){Object.keys(s[e]).forEach((function(t){s[e][s[e][t]]=t}))})),s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(288),i(466),i(570),i(332),i(412),i(436),i(1809),i(519),i(789),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(d.validate([t,i,n,o,r,a,s,l,c]),{visualFamily:"default",_setRemovableAttr:function(e){if(this.inherited(arguments),e){this.domNode.classList.add("removableTrue"),this._removeNode=document.createElement("div"),this._removeNode.classList.add("mwRemoveNode");var t=document.createElement("div");t.classList.add("clear_all"),this._removeNode.appendChild(t),this.domNode.appendChild(this._removeNode),this._handleKeyupForRemove=function(e){46===e.keyCode&&(this._emitRemoveEvent(),e.stopPropagation())}.bind(this),this.domNode.addEventListener("keyup",this._handleKeyupForRemove),this._removeNode.addEventListener("click",this._handleRemoveNodeClick.bind(this)),this._removeNode.addEventListener("mouseup",this._handleRemoveNodeMouseup),this.eligibleForParentAdditionToQAB=!0}else this._removeNode&&(this.domNode.classList.remove("removableTrue"),this.domNode.removeChild(this._removeNode),this._removeNode=null,this.domNode.removeEventListener("keyup",this._handleKeyupForRemove),this.eligibleForParentAdditionToQAB=!1);this._set("removable",e)},_handleRemoveNodeClick:function(e){this._emitRemoveEvent(),e.stopPropagation()},_handleRemoveNodeMouseup:function(e){e.stopPropagation()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(432)],o=i.dj.d(n,(function(e,t){var i=e(null,{useQuickAccessIcon:!1,postCreate:function(){this.inherited(arguments),this.set("useQuickAccessIcon",this.get("useQuickAccessIcon"))},_setUseQuickAccessIconAttr:function(e){if("boolean"!=typeof e)throw new Error("'useQuickAccessIcon' property expects a boolean!");this._set("useQuickAccessIcon",e),e?this.set("iconProp","quickAccessIcon"):this.set("iconProp","icon")}});return i._dependencies=[{mixin:t,orderDependent:!1}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_setCompactAttr:function(e){var t=!0===e?42:66;this.get("height")!==t&&this.set("height",t),this._set("compact",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(257),i(217),i(211),i(206),i(242),i(3171)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(null,{_createValidationtooltip:function(){this.validationTooltip||(this.validationTooltip=new s({}),this.own(this.validationTooltip),o.place(this.validationTooltip.domNode,a.body()),this._addTooltipEvents())},_setErrorTextAttr:function(e){this.validationTooltip&&(this.validationTooltip.textNode.textContent=e),this._set("errorText",e)},_setWarningTextAttr:function(e){this.validationTooltip&&(this.validationTooltip.textNode.textContent=e),this._set("warningText",e)},_setValidationStateAttr:function(e){var i=!1,n=!1;"error"===e.toLowerCase()?(n=!0,this._createValidationtooltip(),this.validationTooltip.textNode.textContent=this.errorText):"warning"===e.toLowerCase()&&(i=!0,this._createValidationtooltip(),this.validationTooltip.textNode.textContent=this.warningText),this.validationTooltip&&(t.toggle(this._getDomNodeForValidationClasses(),"has-error",n),t.toggle(this.validationTooltip.domNode,"error-tooltip",n),t.toggle(this.validationTooltip.domNode,"warning-tooltip",i),this.validationTooltip.domNode.style.visibility="hidden"),this._set("validationState",e)},_flipDomOrder:function(e){var t=e.children[0],i=e.children[1];o.place(t,o.place(i,e),"after"),o.place(i.children[0],o.place(i.children[1],i),"after")},_tooltipOrientation:function(){return t.contains(this.validationTooltip.domNode,"dijitTooltipLeft")?"left":"right"},_getDomNodeForValidationClasses:function(){return this.domNode},_getFocusWidget:function(){return this},_placeTooltip:function(){if(this.validationTooltip&&("error"===this.validationState||"warning"===this.validationState)){var e,i,o,r,s,l,c,d,u,h,p=n.position(this.domNode),f=!1;e=p.x,i=p.y,o=p.w,"error"===this.validationState?(t.add(this._getDomNodeForValidationClasses(),"has-error"),this.validationTooltip.textNode.textContent=this.errorText,t.add(this.validationTooltip.domNode,"error-tooltip")):"warning"===this.validationState&&(this.validationTooltip.textNode.textContent=this.warningText,t.add(this.validationTooltip.domNode,"warning-tooltip")),this.validationTooltip.domNode.style.visibility="visible",c=n.position(this.validationTooltip.domNode).h/2,s=n.position(this.domNode).h/2,l=this.validationTooltip.domNode,d=n.position(a.body()).w,e+o+(r=this._calculateTooltipWidth())>d?(f=!0,u=e-r+"px",h=i+s-c+document.body.scrollTop+"px",t.contains(l.children[0],"tooltipConnector")&&this._flipDomOrder(l)):(u=e+o+"px",h=i+s-c+document.body.scrollTop+"px"),t.toggle(this.validationTooltip.domNode,"tooltipLeft",f),t.toggle(this.validationTooltip.domNode,"tooltipRight",!f),this.validationTooltip.domNode.style.left=u,this.validationTooltip.domNode.style.top=h}},_calculateTooltipWidth:function(){t.add(this.validationTooltip.domNode,"tooltipLeft");var e=n.position(this.validationTooltip.domNode).w;return t.remove(this.validationTooltip.domNode,"tooltipLeft"),e},_addTooltipEvents:function(){var e=this;this.own(r(this,i.enter,(function(){e._placeTooltip()})),r(this,i.leave,(function(){e.validationTooltip&&(e.validationTooltip.domNode.style.visibility="hidden")})),r(this._getFocusWidget(),"focus",(function(){e._placeTooltip(),e.validationTooltip&&("error"!==e.get("validationState")&&"warning"!==e.get("validationState")||t.add(e.validationTooltip.domNode,"validationFocused"))})),r(this._getFocusWidget(),"blur",(function(){e.validationTooltip&&(t.remove(e.validationTooltip.domNode,"validationFocused"),e.validationTooltip.domNode.style.visibility="hidden")})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(328),i(216)],o=i.dj.d(n,(function(e,t,i){return e("dijit.form.HorizontalRule",[t,i],{templateString:'<div class="dijitRuleContainer dijitRuleContainerH"></div>',count:3,container:"containerNode",ruleStyle:"",_positionPrefix:'<div class="dijitRuleMark dijitRuleMarkH" style="left:',_positionSuffix:"%;",_suffix:'"></div>',ticks:null,minimum:0,maximum:100,_isHorizontal:!0,isAddQeIdForTickBased:!0,_qeIdSuffix:"id=",_genHTML:function(e,t){var i="";return this.isAddQeIdForTickBased&&this.ticks&&(i='"'+this._qeIdSuffix+'"'+this.class+"_"+this.ticks[t]),this._positionPrefix+e+this._positionSuffix+this.ruleStyle+i+this._suffix},buildRendering:function(){this.inherited(arguments);var e,t,i,n="";if(this.ticks)for(t=this.maximum-this.minimum,e=0;e<this.count;e+=1)n+=this._genHTML((this.ticks[e]-this.minimum)/t*100,e);else{for(n=this._genHTML(0,0),i=100/(this.count-1),e=1;e<this.count-1;e+=1)n+=this._genHTML(i*e,e);n+=this._genHTML(100,this.count-1)}this.domNode.innerHTML=n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(211),i(240),i(242),i(223),i(206),i(257),i(248),i(277),i(215),i(316),i(216),i(544),i(3234),i(659),i(3235),i(226),i(432),i(1332),i(361),i(409),i(330),i(607),i(785),i(3236),i(435),i(789),i(466),i(519),i(570),i(1814),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P){return e(P.validate([u,h,p,b,y,C,T,E,S,I,A,x,N,L,D]),{baseClass:"mwWidget mwGalleryItem",templateString:g,galleryItemRowCount:1,constructor:function(e){e=e||{},this.disabled=!!e.disabled,this._favButtonClickConnection=null,this._handleFavButtonClick=t.hitch(this,(function(){var e=this.getParent();if(this.favButtonPushed(),e){var t=e.getParent();t&&!t._invokingGallery&&t.get("columnMajorLayout")&&t.updateColumnMajorLayout&&t.updateColumnMajorLayout()}}))},postCreate:function(){var e=this;this.own(s(this.itemWrapperNode,"click",(function(){e.disabled||e.itemPushed()}))),this._disabledNode=this.focusNode,this.inherited(arguments),this.attachFavButtonClickHandler(),this._updateFavoriteButtonTitle(),this.own(s(this.favButtonNode,"keydown",this._handleKeyDown.bind(this))),this.own(this._mouseOverListener=s(this.domNode,"mouseover",this._buildOptionsButtonIfOptionsEnabled.bind(this)),this._focusInListener=s(this.domNode,"focusin",this._buildOptionsButtonIfOptionsEnabled.bind(this)))},_handleKeyDown:function(e){e.keyCode!==a.ENTER&&e.keyCode!==a.SPACE||this._handleFavButtonKeyPress(e)},_handleFavButtonKeyPress:function(e){var t=this.getParent();if(t&&t.isFavoriteCategory){var i=t.getChildren();if(i){var n=i.indexOf(this),o=i[n+1];if(o)0===o.focusNode.tabIndex?o.focusNode.focus():o.favButtonNode.focus();else{var r=t.getParent();if(r){var a=r.getChildren();if(a){var l=a[0];l&&l.titleNode&&l.titleNode.focus()}}}}}this.get("disabled")&&s.emit(this.favButtonNode,"click",{bubbles:!0,cancelable:!0,mwEventData:{keyCode:e.keyCode},_dojo_click:!0})},_setIsFavoriteAttr:function(e){e?this.domNode.classList.add("isFavorite"):this.domNode.classList.remove("isFavorite"),this._set("isFavorite",e),this._updateFavoriteButtonTitle()},_updateFavoriteButtonTitle:function(){this.get("isFavorite")?this.favButtonNode.title=f.favStarRemove:this.favButtonNode.title=f.favStarAdd},_buildOptionsButtonIfOptionsEnabled:function(){this.domNode.matches(".mwOptionsEnabled *")&&(this._optionsButton||(this._optionsButton=new M({}),this._optionsButton.placeAt(this.optionsNode),this._optionsButton.startup())),this._mouseOverListener.remove(),this._focusInListener.remove()},_setDisplayStateAttr:function(e){var t=this.getParent(),i=t&&t.getParent();i&&i.get("type")===v.GALLERY_POPUP&&i.get("displayState")!==e||(this._set("displayState",e),this._updateItemDimensions(),this._updateText(),"DATA_URI"===this._getIconType(this.icon)&&this._updateIconNodeSize())},_updateItemDimensions:function(){this.displayState===m.LIST?this.domNode.style.width="auto":this._getPropertyFromAncestor("galleryItemWidth")?this.domNode.style.width=this._getPropertyFromAncestor("galleryItemWidth")+"px":this.domNode.style.width=""},attachFavButtonClickHandler:function(){this._favButtonClickConnection=s(this.favButtonNode,"click",this._handleFavButtonClick)},detachFavButtonClickHandler:function(){this._favButtonClickConnection&&(this._favButtonClickConnection.remove(),this._favButtonClickConnection=null)},_setTextAttr:function(e){this._set("text",e),this._updateText()},_setTextOverrideAttr:function(e){this._set("textOverride",e),this._updateText()},_updateText:function(){var e;if(this.textOverride?e=this.textOverride:this.text&&(e=this.text),e){if(this.displayState===m.LIST&&(e=e.replace(/\n/g," ")),"ja-jp"===o.locale&&this.displayState===m.ICON){/[A-Za-z]+/.test(e)||(e=e.replace(/\n/g,""))}this.labelNode.textContent=e,this._updateTooltip()}},_getLocation:function(){var e=this.getParent(),t=!1;if(e)switch(e.type){case v.GALLERY_CATEGORY:t=_.CATEGORY;break;case v.GALLERY_FAVORITE_CATEGORY:t=_.FAVORITES;break;case v.GALLERY:t=_.GALLERY}return t},_getPropertyFromAncestor:function(e){var t=!1,i=this._getLocation();return i===_.GALLERY?t=this.getParent()[e]:i!==_.CATEGORY&&i!==_.FAVORITES||this.getParent().getParent()&&(t=this.getParent().getParent()[e]),t},itemPushed:function(){!1!==this.get("closePopupOnClick")&&d.close()},favButtonPushed:function(){},_setIconAttr:function(e){this.inherited(arguments),this.iconNode.classList.remove("dijitInline"),"DATA_URI"===this._getIconType(e)&&this._updateIconNodeSize()},_updateIconNodeSize:function(){var e,t,o,r;this.icon&&1===this._getPropertyFromAncestor("galleryItemRowCount")&&(r=this.iconNode,e=n.create("img",{src:this.icon.replace(/"/g,"").replace(/url\(|\)$/gi,"")}),t=this._getPropertyFromAncestor("galleryItemWidth"),i.after(e,"onload",(function(){o=e.width>t-4?t-4:e.width,r.style.width=o+"px",r.style.height=e.height+"px"})))},_updateDOM:function(){var e;this._removeOldIcon(),e=""!==this.iconOverride?this.iconOverride:this.iconProp&&"icon"!==this.iconProp&&this[this.iconProp]?this[this.iconProp]:this.get("galleryItemRowCount")>1&&""!==this.quickAccessIcon?this.quickAccessIcon:this.icon,this._applyNewIcon(e)},_setGalleryItemRowCountAttr:function(e){this._set("galleryItemRowCount",e),this._updateDOM()},isEligibleForQab:function(){return this._getPropertyFromAncestor("qabEligible")},galleryStateChanged:function(e){var t=this.getParent();t&&t.galleryStateChanged&&t.galleryStateChanged(e)},_qeClick:function(){this.itemPushed()},_qeFavoriteClick:function(){this._handleFavButtonClick()},_qeOptionsButtonBuilt:function(){return Boolean(this._optionsButton)},_qeOptionsButtonClick:function(){this._optionsButton.domNode.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(243)],o=i.dj.d(n,(function(e,t){return e(t,{target:null,icon:"mwActionMenuIcon",text:"",description:"Options",baseClass:"mwWidget mwPushButton mwContextMenuButton",constructor:function(e){e=e||{},this.set("target",e.target||null)},buildRendering:function(){this.inherited(arguments),this.domNode.classList.add("mwContextMenuButton")},postCreate:function(){this.inherited(arguments),this.own(this.on("click",this._handleLeftClick.bind(this)),this.on("contextmenu",this._handleRightClick.bind(this)))},_setTargetAttr:function(e){if(e&&!(e instanceof EventTarget))throw new Error("'target' property expects an EventTarget!");this._set("target",e)},_handleLeftClick:function(e){this._dispatchContextMenuEvent(e,this.domNode)},_handleRightClick:function(e){e.mwEventData||(e.preventDefault(),e.stopPropagation(),this._dispatchContextMenuEvent(e))},_dispatchContextMenuEvent:function(e,t){var i=new MouseEvent("contextmenu",e);i.mwEventData={},t&&(i.mwEventData.around=t),(this.target||this.domNode.parentElement).dispatchEvent(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1333),i(3258),i(3259)],o=i.dj.d(n,(function(e,t,i,n){let o=window.cefclient?new i:new n;let r=e([t],{_supportedProperties:["bounds","innerBounds","maximized","minimized","fullscreen","restore","resizable","isModal","isVisible","alwaysOnTop","isActive"],_getters:{bounds:function(e){return o.getBounds(e.window||window)},innerBounds:function(e){return o.getInnerBounds(e.window||window)},maximized:function(e){return o.getMaximized(e.window||window)},minimized:function(e){return o.getMinimized(e.window||window)},fullscreen:function(e){return o.getFullscreen(e.window||window)},restore:function(e){return o.getRestored(e.window||window)},resizable:function(e){return o.getResizable(e.window||window)},isModal:function(e){return o.getIsModal(e.window||window)},isVisible:function(e){return o.getIsVisible(e.window||window)},alwaysOnTop:function(e){return o.getAlwaysOnTop(e.window||window)}},_setters:{bounds:function(e,t){o.setBounds(e,t.window||window)},innerBounds:function(e,t){o.setInnerBounds(e,t.window||window)},maximized:function(e,t){o.setMaximized(e,t.window||window)},minimized:function(e,t){o.setMinimized(e,t.window||window)},fullscreen:function(e,t){o.setFullscreen(e,t.window||window)},restore:function(e,t){e&&(o.setMaximized(!e,t.window||window),o.setMinimized(!e,t.window||window),o.setFullscreen(!e,t.window||window))},resizable:function(e,t){o.setResizable(e,t.window||window)},isModal:function(e,t){o.setIsModal(e,t.window||window)},isVisible:function(e,t){o.setIsVisible(e,t.window||window)},alwaysOnTop:function(e,t){o.setAlwaysOnTop(e,t.window||window)}},_validators:{bounds:function(e){return!!(e&&e.hasOwnProperty("x")&&e.hasOwnProperty("y")&&e.hasOwnProperty("w")&&e.hasOwnProperty("h"))},innerBounds:function(e){return!!(e&&e.hasOwnProperty("x")&&e.hasOwnProperty("y")&&e.hasOwnProperty("w")&&e.hasOwnProperty("h"))},maximized:function(e){return"boolean"==typeof e},minimized:function(e){return"boolean"==typeof e},fullscreen:function(e){return"boolean"==typeof e},restore:function(e){return"boolean"==typeof e},resizable:function(e){return"boolean"==typeof e},isModal:function(e){return"boolean"==typeof e},isVisible:function(e){return"boolean"==typeof e},alwaysOnTop:function(e){return"boolean"==typeof e}},_listeners:{bounds:function(e){const t=o.addPropertyChangeListener((t,i)=>{"bounds"!==t||this._activeSetters.bounds||this._callWatchers("bounds",i,Object.assign({},e,{skipSetter:!0}))},e.window||window);return{remove:()=>{t.remove()}}},innerBounds:function(e){const t=o.addPropertyChangeListener((t,i)=>{"innerBounds"!==t||this._activeSetters.innerBounds||this._callWatchers("innerBounds",i,Object.assign({},e,{skipSetter:!0}))},e.window||window);return{remove:()=>{t.remove()}}},maximized:function(e){const t=o.addPropertyChangeListener((t,i)=>{"maximized"!==t||this._activeSetters.maximized||this._callWatchers("maximized",i,Object.assign({},e,{skipSetter:!0}))},e.window||window);return{remove:()=>{t.remove()}}},minimized:function(e){const t=o.addPropertyChangeListener((t,i)=>{"minimized"!==t||this._activeSetters.minimized||this._callWatchers("minimized",i,Object.assign({},e,{skipSetter:!0}))},e.window||window);return{remove:()=>{t.remove()}}},fullscreen:function(e){const t=o.addPropertyChangeListener((t,i)=>{"fullscreen"!==t||this._activeSetters.fullscreen||this._callWatchers("fullscreen",i,Object.assign({},e,{skipSetter:!0}))},e.window||window);return{remove:()=>{t.remove()}}},isVisible:function(e){const t=o.addPropertyChangeListener((t,i)=>{"isVisible"!==t||this._activeSetters.isVisible||this._callWatchers("isVisible",i,Object.assign({},e,{skipSetter:!0}))},e.window||window);return{remove:()=>{t.remove()}}},isActive:function(e){const t=o.addPropertyChangeListener((t,i)=>{"isActive"!==t||this._activeSetters.isActive||this._callWatchers("isActive",i,Object.assign({},e,{skipSetter:!0}))},e.window||window);return{remove:()=>{t.remove()}}}},bringToFront:function(e){o.bringToFront(e.window||window)}});return r.BOUNDS_PROPERTY="bounds",r.INNER_BOUNDS_PROPERTY="innerBounds",r.MAXIMIZED_PROPERTY="maximized",r.MINIMIZED_PROPERTY="minimized",r.FULLSCREEN_PROPERTY="fullscreen",r.RESTORE_PROPERTY="restore",r.RESIZABLE_PROPERTY="resizable",r.MODAL_PROPERTY="isModal",r.VISIBLE_PROPERTY="isVisible",r.ALWAYS_ON_TOP_PROPERTY="alwaysOnTop",r.IS_ACTIVE_PROPERTY="isActive",r.WINDOW_PARAMETER="window",r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(229)],o=i.dj.d(n,(function(e,t){let i=new WeakMap,n=e([],{getBounds:function(e){throw new Error("This method must be overridden by a subclass.")},setBounds:async function(e,t){throw new Error("This method must be overridden by a subclass.")},getInnerBounds:function(e){throw new Error("This method must be overridden by a subclass.")},setInnerBounds:async function(e,t){throw new Error("This method must be overridden by a subclass.")},getMaximized:function(e){throw new Error("This method must be overridden by a subclass.")},setMaximized:async function(e,t){throw new Error("This method must be overridden by a subclass.")},getMinimized:function(e){throw new Error("This method must be overridden by a subclass.")},setMinimized:async function(e,t){throw new Error("This method must be overridden by a subclass.")},getFullscreen:function(e){throw new Error("This method must be overridden by a subclass.")},setFullscreen:async function(e,t){throw new Error("This method must be overridden by a subclass.")},getRestored:function(e){throw new Error("This method must be overridden by a subclass.")},setRestored:async function(e,t){throw new Error("This method must be overridden by a subclass.")},getResizable:function(e){throw new Error("This method must be overridden by a subclass.")},setResizable:async function(e,t){throw new Error("This method must be overridden by a subclass.")},getIsModal:function(e){throw new Error("This method must be overridden by a subclass.")},setIsModal:async function(e,t){throw new Error("This method must be overridden by a subclass.")},getIsVisible:function(e){throw new Error("This method must be overridden by a subclass.")},setIsVisible:async function(e,t){throw new Error("This method must be overridden by a subclass.")},getAlwaysOnTop:function(e){throw new Error("This method must be overridden by a subclass.")},setAlwaysOnTop:async function(e,t){throw new Error("This method must be overridden by a subclass.")},bringToFront:async function(e){throw new Error("This method must be overridden by a subclass.")},_addStateChangeListener:function(e){return{remove:()=>{}}},_stateChangeListener:new WeakMap,addPropertyChangeListener:function(e,n){n=n||window;const o=t.generateUuid();return i.has(n)||i.set(n,{}),i.get(n)[o]=e,this._stateChangeListener.has(n)||this._stateChangeListener.set(n,this._addStateChangeListener(n)),{remove:()=>{delete i.get(n)[o],Object.keys(i.get(n)).length<1&&this._stateChangeListener.has(n)&&(this._stateChangeListener.get(n).remove(),this._stateChangeListener.delete(n))}}},_emitPropertyChangeEvent:function(e,t,n){Object.keys(i.get(n)).forEach(o=>{i.get(n)[o](e,t)})},destroy:function(){Object.keys(this._stateChangeListener).length>0&&(Object.keys(this._stateChangeListener).forEach(e=>{this._stateChangeListener.get(e).remove(),this._stateChangeListener.delete(e)}),this._stateChangeListener=new WeakMap)}});return n.BOUNDS_PROPERTY="bounds",n.INNER_BOUNDS_PROPERTY="innerBounds",n.MAXIMIZED_PROPERTY="maximized",n.MINIMIZED_PROPERTY="minimized",n.FULLSCREEN_PROPERTY="fullscreen",n.RESTORE_PROPERTY="restore",n.RESIZABLE_PROPERTY="resizable",n.MODAL_PROPERTY="isModal",n.VISIBLE_PROPERTY="isVisible",n.ALWAYS_ON_TOP_PROPERTY="alwaysOnTop",n.IS_ACTIVE_PROPERTY="isActive",n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1333),i(1815),i(569)],o=i.dj.d(n,(function(e,t,i,n){const o="origin",r="target",a="maximized",s="minimized",l="fullscreen",c="normal",d="bottomLeft",u="topLeft",h={[a]:a,[s]:s,[l]:l,[i.RESTORE_PROPERTY]:c};let p=e([t],{_windowDriver:null,_origin:null,_target:null,_isReady:null,_supportedProperties:["state","bounds","innerBounds","resizable",o,r,"isModal","isVisible","alwaysOnTop","isActive"],_intitialize:function(e){this._origin=e&&e[o]?e[o]:u,this._target=e&&e[r]?e[r]:window,this._isReady=!e||!e.hasOwnProperty("windowReady")||e.windowReady,this._isReady||(this._pendingPropertiesQueue=[]),this._target.name&&(this.name=this._target.name),this._windowDriver=new i({details:{[i.WINDOW_PARAMETER]:this._target}}),e&&e.bounds&&this._callSetter("bounds",e.bounds),e&&e.innerBounds&&this._callSetter("innerBounds",e.innerBounds),e&&e.resizable&&this._callSetter("resizable",e.resizable),e&&e.state&&this._callSetter("state",e.state),e&&void 0!==e.isModal&&this._callSetter("isModal",e.isModal),e&&void 0!==e.isVisible&&this._callSetter("isVisible",e.isVisible),e&&void 0!==e.alwaysOnTop&&this._callSetter("alwaysOnTop",e.alwaysOnTop)},_getters:{state:function(){return this._get(i.MAXIMIZED_PROPERTY)?a:this._get(i.MINIMIZED_PROPERTY)?s:this._get(i.FULLSCREEN_PROPERTY)?l:c},bounds:function(){return this._callTranslator("bounds",this._get(i.BOUNDS_PROPERTY),{[o]:u},{[o]:this._origin})},innerBounds:function(){return this._callTranslator("innerBounds",this._get(i.INNER_BOUNDS_PROPERTY),{[o]:u},{[o]:this._origin})},resizable:function(){return this._get(i.RESIZABLE_PROPERTY)},[o]:function(){return this._origin},[r]:function(){return this._target},isModal:function(){return this._get(i.MODAL_PROPERTY)},isVisible:function(){return this._get(i.VISIBLE_PROPERTY)},alwaysOnTop:function(){return this._get(i.ALWAYS_ON_TOP_PROPERTY)}},_setters:{state:function(e){switch(e){case a:return this._set(i.MAXIMIZED_PROPERTY,!0);case s:return this._set(i.MINIMIZED_PROPERTY,!0);case l:return this._set(i.FULLSCREEN_PROPERTY,!0);case c:default:return this._set(i.RESTORE_PROPERTY,!0)}},bounds:function(e){return this._set(i.BOUNDS_PROPERTY,this._callTranslator("bounds",e,{[o]:this._origin},{[o]:u}))},innerBounds:function(e){return this._set(i.INNER_BOUNDS_PROPERTY,this._callTranslator("innerBounds",e,{[o]:this._origin},{[o]:u}))},resizable:function(e){return this._set(i.RESIZABLE_PROPERTY,e)},[o]:function(e){this._origin=e},[r]:function(e){this._target=e,this.name=this._target.name,this._windowDriver._addListener(Object.keys(this._windowDriver._listeners),{[i.WINDOW_PARAMETER]:this._target}),this._addListener(Object.keys(this._listeners),{[i.WINDOW_PARAMETER]:this._target})},isModal:function(e){return this._set(i.MODAL_PROPERTY,e)},isVisible:function(e){return this._set(i.VISIBLE_PROPERTY,e)},alwaysOnTop:function(e){return this._set(i.ALWAYS_ON_TOP_PROPERTY,e)}},_validators:{state:function(e){return[a,s,l,c].indexOf(e)>-1},bounds:function(e){return n.hasProperties(e,["x","y","w","h"])},innerBounds:function(e){return n.hasProperties(e,["x","y","w","h"])},resizable:function(e){return"boolean"==typeof e},[o]:function(e){return[u,d].indexOf(e)>-1},[r]:function(e){return!!(e&&e.document&&e.location&&e.alert&&e.setInterval)},isModal:function(e){return"boolean"==typeof e},isVisible:function(e){return"boolean"==typeof e},alwaysOnTop:function(e){return"boolean"==typeof e}},_listeners:{state:function(){const e=(e,t)=>{t&&!this._activeSetters.state&&this._callWatchers("state",h[e],{skipSetter:!0})},t=this._watch(i.MAXIMIZED_PROPERTY,e),n=this._watch(i.MINIMIZED_PROPERTY,e),o=this._watch(i.FULLSCREEN_PROPERTY,e),r=this._watch(i.RESTORE_PROPERTY,e);return{remove:function(){t.unwatch(),n.unwatch(),o.unwatch(),r.unwatch()}}},bounds:function(e){const t=this._watch(i.BOUNDS_PROPERTY,(e,t)=>{this._activeSetters.bounds||this.set(e,this._callTranslator("bounds",t,{[o]:u},{[o]:this._origin}),{skipSetter:!0})}),n=()=>{t.unwatch()};return e&&e.returnObject?(e.returnObject.remove=n,e.returnObject):{remove:()=>{n()}}},innerBounds:function(e){const t=this._watch(i.INNER_BOUNDS_PROPERTY,(e,t)=>{this._activeSetters.innerBounds||this.set(e,this._callTranslator("innerBounds",t,{[o]:u},{[o]:this._origin}),{skipSetter:!0})}),n=()=>{t.unwatch()};return e&&e.returnObject?(e.returnObject.remove=n,e.returnObject):{remove:()=>{n()}}},isVisible:function(){const e=this._watch(i.VISIBLE_PROPERTY,(e,t)=>{this._activeSetters.isVisible||this._callWatchers("isVisible",t,{skipSetter:!0})});return{remove:()=>e.unwatch()}},isActive:function(){const e=this._watch(i.IS_ACTIVE_PROPERTY,(e,t)=>{this._activeSetters.isActive||this._callWatchers("isActive",t,{skipSetter:!0})});return{remove:function(){e.unwatch()}}}},_translators:{bounds:function(e,t,i){if(t&&i&&t.origin&&i.origin&&t.origin!==i.origin){let t=Object.assign({},e);return t.y=this._target.screen.height-t.y-t.h,t}return e},innerBounds:function(e,t,i){if(t&&i&&t.origin&&i.origin&&t.origin!==i.origin){let t=Object.assign({},e);return t.y=this._target.screen.height-t.y-t.h,t}return e}},bringToFront:function(){if(this._isReady)return this._windowDriver.bringToFront({[i.WINDOW_PARAMETER]:this._target});this._addToPendingPropertiesQueue({propertyName:"bringToFront",isMethod:!0})},getPendingValue:function(e){if(!this._pendingPropertiesQueue)return;const t=this._pendingPropertiesQueue.find(t=>t.propertyName===e);return t?t.value:void 0},_get:function(e){return this._windowDriver.get(e,{[i.WINDOW_PARAMETER]:this._target})},_set:function(e,t){if(this._isReady)return this._windowDriver.set(e,t,{[i.WINDOW_PARAMETER]:this._target});this._addToPendingPropertiesQueue({propertyName:e,value:t})},_watch:function(e,t){return this._windowDriver.watch(e,t,{[i.WINDOW_PARAMETER]:this._target})},_callTranslator:function(e,t,i,n){return this._translators[e].call(this,t,i,n)},_callSetter:function(e,t){this._setters[e].call(this,t)},_addToPendingPropertiesQueue:function(e){this._pendingPropertiesQueue||(this._pendingPropertiesQueue=[]);const t=this._pendingPropertiesQueue.findIndex(t=>t.propertyName===e.propertyName);t>-1?this._pendingPropertiesQueue[t]=e:this._pendingPropertiesQueue.push(e)},_applyPendingProperties:function(){this._isReady=!0,this._pendingPropertiesQueue.forEach(e=>{const{propertyName:t,value:i,isMethod:n}=e;n?this[t](i):this._set(t,i)}),delete this._pendingPropertiesQueue}});p.STATE_PROPERTY="state",p.BOUNDS_PROPERTY="bounds",p.INNER_BOUNDS_PROPERTY="innerBounds",p.RESIZABLE_PROPERTY="resizable",p.ORIGIN_PROPERTY=o,p.TARGET_PROPERTY=r,p.MODAL_PROPERTY="isModal",p.VISIBLE_PROPERTY="isVisible",p.ALWAYS_ON_TOP_PROPERTY="alwaysOnTop",p.IS_ACTIVE_PROPERTY="isActive",p.MAXIMIZED_STATE=a,p.MINIMIZED_STATE=s,p.FULLSCREEN_STATE=l,p.NORMAL_STATE=c,p.BOTTOM_LEFT_ORIGIN=d,p.TOP_LEFT_ORIGIN=u;const f=new p;return p.get=f.get.bind(f),p.set=function(e,t,i){f.isSupportedProperty(e)&&[o,r].indexOf(e)<0&&f.get(e,t,i)},p.watch=f.watch.bind(f),p}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(546)],o=i.dj.d(n,(function(e,t,i){function n(e,i){t.error("An error was thrown while dynamically loading paths",i),t.error(e)}return e(null,{constructor:function(e){this._useWebpack=!!e},load:function(e,t,i){try{this._useWebpack?this.loadModules(e,t,i):this.loadPackages(e,t)}catch(o){n(o,{useWebpack:this._useWebpack,paths:e,callback:t,exports:i})}},loadModules:function(e,t,o){const r=new i;if(o&&e.length!==o.length)throw new Error('There must be an equal number of "exports" as "paths" provided');const a=function(e=[],t=[]){return Array.from(Array(Math.max(t.length,e.length)),(i,n)=>[e[n],t[n]])}(e,o).map(e=>function(e,t=[]){const i=function(e,t){const i=e.split("/"),n=i.pop(),o=i.join("/");return 0==t.length&&(t=[n]),{pluginLocation:o,pluginName:n,provides:t}}(e,t);return{dependsOn:[],provides:i.provides,modulePath:{amd:i.pluginName+"/index"},bundle:{location:`${i.pluginLocation}/release/bundle.mwBundle.${i.pluginName}.js`},debugDependencies:{[i.pluginName]:`${i.pluginLocation}/${i.pluginName}`}}}(e[0],e[1])),s=r.register(a);r.loadExports(s).then(e=>{const i=Object.values(e.exports);t.apply(this,i)},i=>{n(i,{useWebpack:this._useWebpack,paths:e,callback:t,exports:o})})},loadPackages:function(e,t){require(e,t)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(901)],o=i.dj.d(n,(function(e){return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return a(t,null,[{key:"validateInput",value:function(i,n){var o=[];if(!Array.isArray(i))throw new Error("Input should be an array of objects");for(var r=0;r<i.length;r++){var a=i[r];t.validateModuleDef(a),a.bundle&&t.validateBundle(a.bundle),e.isKeyInObject(n.pathToDependenciesMap,a.modulePath)||o.push(a)}return o}},{key:"validateModuleDef",value:function(i){if("object"!==(void 0===i?"undefined":r(i)))throw new Error("The module definition is not an object");if(!i.modulePath)throw new Error("The modulePath is not defined");if(!i.modulePath.amd)throw new Error("The modulePath's amd name is not defined");if(!i.provides||0===i.provides.length)throw new Error("Atleast one service should be exported by the module");if(t.hasUndefined(i.provides))throw new Error("A service provided by "+i.modulePath.amd+" is undefined.Please check the 'provides' property.");if(i.dependsOn=i.dependsOn||[],t.hasUndefined(i.dependsOn))throw new Error("A service depended by "+i.modulePath.amd+" is undefined.Please check the 'dependsOn' property.");i.provides.forEach((function(t){if(e.isElementInArray(t,i.dependsOn))throw new Error("A module cannot depend on a serviceprovided by self")}))}},{key:"validateBundle",value:function(e,t){if("object"!==(void 0===e?"undefined":r(e)))throw new Error("The bundle described by "+t+" is not an Object.");if(!e.location&&"string"!=typeof e.location)throw new Error("The bundle.location described by "+t+" is not an string.")}},{key:"hasUndefined",value:function(e){return e.indexOf(void 0)>=0}},{key:"validateExports",value:function(e,t){var i={isValid:!1,validExports:[],invalidExports:[],validationMessage:"Cannot continue loading."};if(!Array.isArray(e))return i.isValid=!1,i.validationMessage="Required exports to load is not an array.",i;e.length>t.length&&(i.isValid=!1,i.validationMessage="Number of exports requested to load exceeds registered valid exports.");var n=t.map((function(e){return e.name}));return e.map((function(e){return e.name})).forEach((function(e){n.indexOf(e)<0?i.invalidExports.push(e):i.validExports.push(e)})),i.validExports.length===e.length&&(i.isValid=!0),i}},{key:"isGraphValid",value:function(t){return 0!==t.graphNodes.length&&!e.isElementInArray("undefined",t.graphNodes)&&!t.hasCyclicDependency}},{key:"isExportsValid",value:function(t,i,n){var o=[];for(var r in n.exportsToPathMap)n.exportsToPathMap[r]===t&&o.push(r);if(0===Object.keys(i.exports).length)return 0===o.length;for(var a in i.exports)if(n.exportsToPathMap[a]&&n.exportsToPathMap[a]!==t&&o.push(a),!e.isElementInArray(a,o))return!1;return e.getIntersection(Object.keys(i.exports),o).length===o.length}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{save:function(e,t,i){throw new Error("not implemented")},flush:function(){throw new Error("not implemented")},retrieve:function(e){throw new Error("not implemented")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){var i=e([],{postscript:function(e){e&&t.mixin(this,e)},toPeer:function(e){return e},fromPeer:function(e){return e}});return i.ForceArray=new i({fromPeer:function(e){return e&&!Array.isArray(e)&&(e=[e]),e}}),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";const e={};return class{static getViewInstance(){return!!(this.type&&e[this.type]&&e[this.type].call&&e[this.type].apply)?new e[this.type](this):null}static setView(t,i){t&&i&&(e[t]=i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return class{getView(){}getProgress(){}update(e,t){}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1337)],o=i.dj.d(n,(function(e){return e.svg}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(232)],o=i.dj.d(n,(function(e){return{registerResponseHandlers:function(t){e.registerResponseHandler(t+"Response",(function(e,i){1===e.length?e[0].isError?i.reject(e[0]):i.resolve(e[0]):i.reject("Error while sending "+t+" message: "+e)}),this),e.registerFaultHandler(t,(function(e,t){t.reject(e)}),this)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(546)],o=i.dj.d(n,(function(e){var t=function(e){var t=[];return e.forEach((function(e){t.push({name:e})})),t};return{getInstance:function(i){return this._instance||(this._instance=new e,this._instance.convertServicesToExportNames=t),this._instance},destroy:function(){this._instance&&(this._instance=null)}}}),e,t),e.exports=o},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "wraService",\n "workerReady",\n "userReady",\n "matlabView",\n "obsoleteView",\n "busyIndicator",\n "faultHandlerModule",\n "uiLifecycle",\n "manifestHandler",\n "postMessageProtocol",\n "moduleLoader",\n "wraLogin"\n ],\n "provides": [\n "bootstrapService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/bootstrapService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "actionService",\n "workerReady",\n "manifestHandler"\n ],\n "provides": [\n "workerActionDisabler"\n ],\n "modulePath": {\n "amd": "MOTW/modules/workerActionDisabler/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "actionService",\n "manifestHandler"\n ],\n "provides": [\n "openWithLogger"\n ],\n "modulePath": {\n "amd": "MOTW/modules/openWithEventLogger/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "uiConfigService",\n "uiLifecycle",\n "heartbeatService",\n "busyIndicator"\n ],\n "provides": [\n "wraService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/guestUserWraService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "wraService"\n ],\n "provides": [\n "sharingService",\n "sharingManager"\n ],\n "modulePath": {\n "amd": "MOTW/matlabOnlineServer/sharingService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": [\n "discoveryService"\n ],\n "modulePath": {\n "amd": "MOTW/matlabOnlineServer/discoveryService/index"\n }\n}'},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{KEY_LOCATION_UNKNOWN:0,VK_UNDEFINED:0,KEY_LOCATION_STANDARD:1,KEY_LOCATION_LEFT:2,KEY_LOCATION_RIGHT:3,VK_CANCEL:3,KEY_LOCATION_NUMPAD:4,VK_BACK_SPACE:8,VK_TAB:9,VK_ENTER:10,VK_CLEAR:12,VK_SHIFT:16,VK_CONTROL:17,VK_ALT:18,VK_PAUSE:19,VK_CAPS_LOCK:20,VK_KANA:21,VK_FINAL:24,VK_KANJI:25,VK_ESCAPE:27,VK_CONVERT:28,VK_NONCONVERT:29,VK_ACCEPT:30,VK_MODECHANGE:31,VK_SPACE:32,VK_PAGE_UP:33,VK_PAGE_DOWN:34,VK_END:35,VK_HOME:36,VK_LEFT:37,VK_UP:38,VK_RIGHT:39,VK_DOWN:40,VK_COMMA:44,VK_MINUS:45,VK_PERIOD:46,VK_SLASH:47,VK_0:48,VK_1:49,VK_2:50,VK_3:51,VK_4:52,VK_5:53,VK_6:54,VK_7:55,VK_8:56,VK_9:57,VK_SEMICOLON:59,VK_EQUALS:61,VK_A:65,VK_B:66,VK_C:67,VK_D:68,VK_E:69,VK_F:70,VK_G:71,VK_H:72,VK_I:73,VK_J:74,VK_K:75,VK_L:76,VK_M:77,VK_N:78,VK_O:79,VK_P:80,VK_Q:81,VK_R:82,VK_S:83,VK_T:84,VK_U:85,VK_V:86,VK_W:87,VK_X:88,VK_Y:89,VK_Z:90,VK_OPEN_BRACKET:91,VK_BACK_SLASH:92,VK_CLOSE_BRACKET:93,VK_NUMPAD0:96,VK_NUMPAD1:97,VK_NUMPAD2:98,VK_NUMPAD3:99,VK_NUMPAD4:100,VK_NUMPAD5:101,VK_NUMPAD6:102,VK_NUMPAD7:103,VK_NUMPAD8:104,VK_NUMPAD9:105,VK_MULTIPLY:106,VK_ADD:107,VK_SEPARATER:108,VK_SEPARATOR:108,VK_SUBTRACT:109,VK_DECIMAL:110,VK_DIVIDE:111,VK_F1:112,VK_F2:113,VK_F3:114,VK_F4:115,VK_F5:116,VK_F6:117,VK_F7:118,VK_F8:119,VK_F9:120,VK_F10:121,VK_F11:122,VK_F12:123,VK_DELETE:127,VK_DEAD_GRAVE:128,VK_DEAD_ACUTE:129,VK_DEAD_CIRCUMFLEX:130,VK_DEAD_TILDE:131,VK_DEAD_MACRON:132,VK_DEAD_BREVE:133,VK_DEAD_ABOVEDOT:134,VK_DEAD_DIAERESIS:135,VK_DEAD_ABOVERING:136,VK_DEAD_DOUBLEACUTE:137,VK_DEAD_CARON:138,VK_DEAD_CEDILLA:139,VK_DEAD_OGONEK:140,VK_DEAD_IOTA:141,VK_DEAD_VOICED_SOUND:142,VK_DEAD_SEMIVOICED_SOUND:143,VK_NUM_LOCK:144,VK_SCROLL_LOCK:145,VK_AMPERSAND:150,VK_ASTERISK:151,VK_QUOTEDBL:152,VK_LESS:153,VK_PRINTSCREEN:154,VK_INSERT:155,VK_HELP:156,VK_META:157,VK_GREATER:160,VK_BRACELEFT:161,VK_BRACERIGHT:162,VK_BACK_QUOTE:192,VK_QUOTE:222,VK_KP_UP:224,VK_KP_DOWN:225,VK_KP_LEFT:226,VK_KP_RIGHT:227,VK_ALPHANUMERIC:240,VK_KATAKANA:241,VK_HIRAGANA:242,VK_FULL_WIDTH:243,VK_HALF_WIDTH:244,VK_ROMAN_CHARACTERS:245,VK_ALL_CANDIDATES:256,VK_PREVIOUS_CANDIDATE:257,VK_CODE_INPUT:258,VK_JAPANESE_KATAKANA:259,VK_JAPANESE_HIRAGANA:260,VK_JAPANESE_ROMAN:261,VK_KANA_LOCK:262,VK_INPUT_METHOD_ON_OFF:263,KEY_FIRST:400,KEY_TYPED:400,KEY_PRESSED:401,KEY_LAST:402,KEY_RELEASED:402,VK_AT:512,VK_COLON:513,VK_CIRCUMFLEX:514,VK_DOLLAR:515,VK_EURO_SIGN:516,VK_EXCLAMATION_MARK:517,VK_INVERTED_EXCLAMATION_MARK:518,VK_LEFT_PARENTHESIS:519,VK_NUMBER_SIGN:520,VK_PLUS:521,VK_RIGHT_PARENTHESIS:522,VK_UNDERSCORE:523,VK_WINDOWS:524,VK_CONTEXT_MENU:525,VK_F13:61440,VK_F14:61441,VK_F15:61442,VK_F16:61443,VK_F17:61444,VK_F18:61445,VK_F19:61446,VK_F20:61447,VK_F21:61448,VK_F22:61449,VK_F23:61450,VK_F24:61451,VK_COMPOSE:65312,VK_BEGIN:65368,VK_ALT_GRAPH:65406,VK_STOP:65480,VK_AGAIN:65481,VK_PROPS:65482,VK_UNDO:65483,VK_COPY:65485,VK_PASTE:65487,VK_FIND:65488,VK_CUT:65489,CHAR_UNDEFINED:65535}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{constructFunctionSyntax:function(e,t,i){var n="";return 1===t.length?n+=t[0]+" = ":t.length>1&&(n+="["+t.join(", ")+"] = "),n+=e,i.length>0&&(n+="("+i.join(", ")+")"),n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1836),i(229)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this.uniqueId=e||i.generateUuid()},getUniqueId:function(){return this.uniqueId},hasLocationOnDisk:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getStorageData:function(){return""},getUniqueId:function(){throw new Error("Unimplemented API: MW.rtc.datamodel.BackingStore.getUniqueId")},onLoadComplete:function(){},onLocationUpdated:function(e){},hasLocationOnDisk:function(){throw new Error("Unimplemented API: MW.rtc.datamodel.BackingStore.hasLocationOnDisk")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3446)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.cursor","rtc.cursorcontroller","rtc.actionservice","rtc.view","rtc.backingstore","rtc.service.documentloaded","rtc.document.changenotifier","rtc.id"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(210),i(205),i(908)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.internaldocument","rtc.focusservice","rtc.margin.bookmarks.icon","rtc.navigate.bookmarks","margin.shared.decorations"]}},createInstance:function(e,t,n,r,a,s){var l=[r].concat(s),c=new o(e,t,n,l,-10,null);return i.add(c.getMarginElement(),"bookmarksMargin"),a.setMargin(c),c}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(228),i(211),i(213),i(221),i(257),i(206),i(203),i(204),i(208),i(716),i(3461),i(399)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return a([d,u],{_UPDATE_SYNCHRONOUSLY:!1,constructor:function(e,i,n,o,r,a){this._view=e,this._internalDocument=i,this._decorators=o,this._priority=r,this._focusService=n,this._isEnabled=!0,this._showMargin=!0,this._setContextMenuContributor(a,o),this._gutter=t.create("div",{className:"plainText margin"}),this._mouseListeners=[],this._configureMargin(),this._updateWidth()},destroy:function(){this.inherited(arguments),this._isEnabled=!1,this._clearMargin()},enableForHiddenCode:function(){this._isEnabled||(this._isEnabled=!0,this._restartListenersAndMargin())},disableForHiddenCode:function(){this._isEnabled&&(this._isEnabled=!1,this._clearMargin())},hideMargin:function(){this._showMargin&&(this._showMargin=!1,this._width=0,this._gutter.style.width=this._width+"px",this._gutter.style.display="none",this._clearMargin(),this.onWidthChange())},showMargin:function(){this._showMargin||(this._showMargin=!0,this._gutter.style.display="",this._restartListenersAndMargin())},_clearMargin:function(){this._clearMouseListeners(),t.empty(this._gutter),this._contextMenuContributor&&this._contextMenuContributor.setGutter(null)},_restartListenersAndMargin:function(){this.isEnabled()&&this.isVisible()&&this._configureMouseEvents(),this.update(),this._updateWidth()},isEnabled:function(){return this._isEnabled},isVisible:function(){return this._showMargin},update:function(e,t){this._UPDATE_SYNCHRONOUSLY?this._updateNow(e,t):this._updateLater(e,t)},_updateNow:function(e,t){throw new Error("Unimplemented API: DecoratableMargin._updateNow")},_updateLater:function(e,t){throw new Error("Unimplemented API: DecoratableMargin._updateLater")},priority:function(){return this._priority},getWidth:function(){return this._width},getHorizontalPadding:function(){return i.get(this.getMarginElement(),"padding-left")},onWidthChange:function(){},getMarginElement:function(){return this._gutter},_setContextMenuContributor:function(e,t){this._contextMenuContributor=e||null,this._contextMenuContributor||t.forEach((function(e){var t=e.getContextMenuContributor();t&&(this._contextMenuContributor=t)}),this)},_configureMargin:function(){this._width=0,this._gutter.style.width=this._width+"px",this._decorators.forEach((function(e){this.own(l.after(e,"onUpdate",s.hitch(this,"update",e))),this.own(l.after(e,"onWidthChange",s.hitch(this,"_updateWidth")))}),this),this._configureMouseEvents()},_clearMouseListeners:function(){this._mouseListeners.forEach((function(e){e.remove()})),this._mouseListeners=[]},_configureMouseEvents:function(){this._clearMouseListeners(),this._mouseListeners=[r(this._gutter,"mousemove",s.hitch(this,this._handleMouseMove)),r(this._gutter,"mouseout",s.hitch(this,this._handleMouseLeave)),r(this._gutter,"mousedown",s.hitch(this,this._handleMouseDown)),r(this._gutter,"mouseup",s.hitch(this,this._handleMouseUp)),r(this._gutter,"click",s.hitch(this,this._handleMouseClick)),r(this._gutter,c.MOUSEWHEEL,s.hitch(this,this._handleMouseWheel))]},_getLineNumberFromMousePosition:function(e){var t=this._view.getCoordinateFromEvent(this._view.fixEvent(e));return this._view.getLineFromCoordinate(t)-1},_handleMouseLeave:function(e){this._decorators.forEach((function(t){t.handleMouseLeave(e,this._getLineNumberFromMousePosition(e))}),this)},_handleMouseMove:function(e){this._decorators.forEach((function(t){t.handleMouseMove(e,this._getLineNumberFromMousePosition(e))}),this)},_handleMouseDown:function(e){this._contextMenuContributor&&this._contextMenuContributor.setMenuLine(this._getLineNumberFromMousePosition(e)),this._isMacContextMenuEvent(e)||(this._decorators.forEach((function(t){t.handleMouseDown(e,this._getLineNumberFromMousePosition(e))}),this),n("edge")&&this._focusService.setBlur())},_handleMouseUp:function(e){(n("edge")||n("trident")||n("ie"))&&o.isRight(e)&&this._contextMenuContributor||this._isMacContextMenuEvent(e)||this._decorators.forEach((function(t){t.handleMouseUp(e,this._getLineNumberFromMousePosition(e))}),this)},_handleMouseClick:function(e){this._isMacContextMenuEvent(e)||this._decorators.forEach((function(t){t.handleMouseClick(e,this._getLineNumberFromMousePosition(e))}),this)},_handleMouseWheel:function(e){this._decorators.forEach((function(t){t.handleMouseWheel(e)}),this)},_isMacContextMenuEvent:function(e){return n("mac")&&e.ctrlKey},_updateWidth:function(){if(this._showMargin){var e=0;this._decorators.forEach((function(t){var i=t.getWidth();i>e&&(e=i)}),this),this._width!==e&&(this._width=e,this._gutter.style.width=this._width+"px",this.onWidthChange())}},_copyGutter:function(){return this._gutter.cloneNode(!1)},_replaceGutter:function(e){this._gutter.parentElement&&this._gutter.parentElement.replaceChild(e,this._gutter),this._gutter=e,this._configureMouseEvents(),this._contextMenuContributor&&this._contextMenuContributor.setGutter(this._gutter)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3462)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.navigate.bookmarks","rtc.contextmenu.bookmarkscontributor","rtc.linenumberdecorator.stylers"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{handleMouseDown:function(e,t){},handleMouseUp:function(e,t){},handleMouseClick:function(e,t){},handleMouseLeave:function(e,t){},handleMouseMove:function(e,t){},handleMouseWheel:function(e){},onUpdate:function(){},onWidthChange:function(){},getWidth:function(){throw new Error("Unimplemented API: MW.rtc.margin.AbstractMarginDecorator.getWidth")},getContextMenuContributor:function(){return null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3463),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.navigate.bookmarks","rtc.actionservice"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(616)],o=i.dj.d(n,(function(e,t){return e(t,{setMenuLine:function(e){throw new Error("Unimplemented API: setMenuLine")},setGutter:function(e){throw new Error("Unimplemented API: setGutter")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3471),i(3472),i(3473),i(3474)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/conditionalBreakpointDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(3488)],o=i.dj.d(n,(function(e,t){var i=e(null,{constructor:function(e,n,o,r,a,s){this._status=e,this._msg=n,this._id=o,this._functionName=r,this._frames=[],this._causes=[],a&&a.forEach((function(e){this._frames.push(new t(e.file,e.func,e.line))}),this),s&&s.forEach((function(e){this._causes.push(new i(e.status,e.msg,e.id,e.functionName,e.frames,e.causes))}),this)},getID:function(){return this._id},getMsg:function(){return this._msg},getExecutionStatus:function(){return this._status},getFunctionName:function(){return this._functionName},getStackFrames:function(){return this._frames},getCauses:function(){return this._causes}});return i}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(516),i(517),i(3494),i(3495)],o=i.dj.d(n,(function(e,t,i,n){return{_cache:null,getCache:function(){return null===this._cache&&(this._cache=this._initCache()),this._cache},_initCache:function(){e=e.default,t=t.default;var o=new mf.zero.Model;o.addShallowListener(new i);var r=new e({inChannel:"/mvm/cache",outChannel:"/mvm/cache"});return r.start().then((function(){var e=new t(o,r);return e.fetchDataDefinition("http://schema.mathworks.com/mf0/mvm_cache_model/R2020a").then((function(){return n.registerSerializer(),e.fetchModel().then((function(){return e.start(),o}))}))})).then((function(e){var t;return e.getModel().topLevelElements.forEach((function(e){"MVMCache"===e.getMetaClass().name&&(t=e)})),t}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{onBreakpointAdded:function(e){},onBreakpointRemoved:function(e){},onAllBreakpointsCleared:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getSourceBreakpoints:function(e){throw new Error("Unimplemented API - AbstractBreakpointService.getSourceBreakpoints")},setBreakpoint:function(e,t){throw new Error("Unimplemented API - AbstractBreakpointService.setBreakpoint")},clearBreakpoint:function(e,t){throw new Error("Unimplemented API - AbstractBreakpointService.clearBreakpoint")},clearAllBreakpoints:function(e){throw new Error("Unimplemented API - AbstractBreakpointService.clearAllBreakpoints")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},onStackChanged:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{BREAKPOINT_ADD_REQUEST:"/editor/breakpoints/addBreakpointsRequest",BREAKPOINT_REMOVE_REQUEST:"/editor/breakpoints/removeBreakpointsRequest",GET_BREAKPOINTS_REQUEST:"/editor/breakpoints/getBreakpoints",CLEAR_ALL_BREAKPOINTS_REQUEST:"/editor/breakpoints/clearBreakpoints",SYNCHRONIZE_BREAKPOINTS_REQUEST:"/editor/breakpoints/syncBreakpoints",BREAKPOINT_ADDED:"/editor/breakpoint/breakpointsAdded",BREAKPOINT_REMOVED:"/editor/breakpoint/breakpointsRemoved",BREAKPOINTS_CLEARED:"/editor/breakpoint/breakpointsCleared",BREAKPOINTS_FILE_REFRESHED:"/editor/breakpoint/breakpointsFileRefreshed",BREAKPOINTS_ERRORED:"/editor/breakpoint/breakpointsErrored"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(203),i(207)],o=i.dj.d(n,(function(e,t,i){return t(i,{constructor:function(e,t){this._breakpointDataModel=e,this._breakpointDirtyService=t},buildTooltipString:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.breakpoint.AbstractBreakpointStyler.getTooltipText")},allowPartialBreakpoints:function(){throw new Error("Unimplemented API: MW.rtc.plugins.breakpoint.AbstractBreakpointStyler.allowPartialBreakpoints")},adjustAlignment:function(e,t,i){},applyStyle:function(t,i,n){var o=[];if(this._shouldShowPartialBreakpoint(n)){e.add(t,"intermediateBreakpoint"),o.push("intermediateBreakpoint")}else{e.add(t,"breakpoint"),o.push("breakpoint")}if(this._showOutOfSyncBreakpoints()){e.add(t,"outOfSync"),o.push("outOfSync")}else if(this._showConditionalBreakpoint(i)){e.add(t,"conditionalBreakpoint"),o.push("conditionalBreakpoint")}else{e.add(t,"regularBreakpoint"),o.push("regularBreakpoint")}if(i&&!i.isEnabled){this._applyDisabledStyle(t,"disabled"),o.push("disabled")}this._addTestTag(t,o,i.zeroBasedLineNumber)},_shouldShowPartialBreakpoint:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.breakpoint.AbstractBreakpointStyler._shouldShowPartialBreakpoint")},_showOutOfSyncBreakpoints:function(){return this._breakpointDirtyService.areBreakpointsDirty()},_showConditionalBreakpoint:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.breakpoint.AbstractBreakpointStyler._showConditionalBreakpoint")},_applyDisabledStyle:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.breakpoint.AbstractBreakpointStyler._applyDisabledStyle")},_addTestTag:function(e,t,i){var n=i;t&&t.length>0?n=n+"_"+t.join("_"):n+="_invalid",e.setAttribute("data-testid",n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3522)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["debug.breakpointmodel","debug.breakpointdirtyservice","rtc.view","rtc.linenumberservice","rtc.internaldocument"]}},createInstance:function(e,t,i,o,r){return new n(e,t,i,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({WARNING:"warning",ERROR:"error"})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){"use strict";return new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._tooltipDepot=new WeakMap}return r(e,[{key:"clear",value:function(){this._tooltipDepot=new WeakMap}},{key:"delete",value:function(e){return this._tooltipDepot.delete(e)}},{key:"get",value:function(e){return this._tooltipDepot.get(e)}},{key:"has",value:function(e){return this._tooltipDepot.has(e)}},{key:"set",value:function(e,t){return this._tooltipDepot.set(e,t),this}}]),e}())}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({SHOW:"show",HIDE:"hide",WAITING:"waiting",IDLE:"idle",CURRENT_ACTIVE_ELEMENT:"activeElement"})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(229)],o=i.dj.d(n,(function(e,t){"use strict";return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"getCoordsWrtPage",value:function(e){var t=e.getBoundingClientRect();return{top:t.top+pageYOffset,left:t.left+pageXOffset}}},{key:"isElement",value:function(e){return e instanceof Element||e instanceof HTMLElement}},{key:"removeChildNodes",value:function(e){for(;e.lastChild;)e.removeChild(e.lastChild)}},{key:"getBrowserVerticalScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.clientWidth}},{key:"getBrowserHorizontalScrollbarHeight",value:function(){return window.innerHeight-document.documentElement.clientHeight}},{key:"getScrollbarWidth",value:function(e){return e.offsetWidth-e.clientWidth}},{key:"getScrollbarHeight",value:function(e){return e.offsetHeight-e.clientHeight}},{key:"setTooltipPrivateEventProp",value:function(e,t,i){e[t]&&e[t][i]||(e[t]={},e[t][i]="true")}},{key:"getTooltipPrivateEventProp",value:function(e,t,i){return!(!e[t]||!e[t][i])}},{key:"generateUuid",value:function(){return e.generateUuid()}},{key:"getElementZindex",value:function(e){return getComputedStyle(e).getPropertyValue("z-index")}},{key:"getEffectiveZindex",value:function(e){for(var i=0,n=void 0,o=!0;e&&t.isElement(e);)"auto"!==(n=t.getElementZindex(e))&&(n=parseInt(n,10))>i&&(o=!1,i=n),e=e.parentNode;return o?"auto":i}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(249)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(){this._areBreakpointsDirty=!1},breakpointDirtyStateChanged:function(e){},areBreakpointsDirty:function(){return this._areBreakpointsDirty},breakpointsRefreshed:function(e){},breakpointsErrored:function(){},breakpointPositionUpdated:function(){},_filterDocumentEvents:function(e){return e.filter((function(e){return!(e.type===i.READONLY_STATE_CHANGE_EVENT)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){},createButton:function(e,i,n){return t.create("div",{class:e.join(" "),innerHTML:i,onclick:n,onmousedown:this._stopPropagation,onpointerdown:this._stopPropagation})},_stopPropagation:function(e){e.stopPropagation()},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(294)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_GROUP_ORDER:o,constructor:function(e,t){this._actionService=e,this._externalActionDataService=t,this._groupMenuItemsMap={},this._invalidGroupList=[]},updateGroupMenuItemsMap:function(e,t){return this._groupMenuItemsMap={},t.forEach((function(t){var i=t.contributeToContextMenu(e);this._addToMap(i)}),this),this.getOrderedGroupList().length>0},_addToMap:function(e){Object.keys(e).forEach((function(t){this._groupMenuItemsMap[t]||(this._groupMenuItemsMap[t]=[]);var i=this._groupMenuItemsMap[t];this._groupMenuItemsMap[t]=i.concat(e[t])}),this)},getGroups:function(){throw new Error("Unimplemented API: getGroups")},getOrderedGroupList:function(){var e=this._getValidGroupMenuItemsMap(),t=Object.keys(e),i=[];Object.keys(o).forEach((function(e){i.push(o[e])})),t.sort((function(e,t){return i.indexOf(e)-i.indexOf(t)}));var n=[];return t.forEach((function(e){this.getMenuItemInfoForGroup(e).length>0&&n.push(e)}),this),n},getMenuItemInfoForGroup:function(e){return this._getMenuItemInfos(this._getValidGroupMenuItemsMap()[e])},_getMenuItemInfos:function(e){if(!e||e.length<1)return[];var i=[];return e.forEach((function(e){const n=this._getMenuItemInfo(e);t.mixin(e,n),i.push(e)}),this),this._sortMenuItemInfos(i)},_getValidGroupMenuItemsMap:function(){var e=t.clone(this._groupMenuItemsMap);return this._invalidGroupList.forEach((function(t){delete e[t]})),e},_getMenuItemInfo:function(e){let i={};const n=e.actionId,o=this._getActionInfo(n);if(o){const r=o.action,a=r.text;if(void 0===a)return i;i={id:n,actionService:o.actionService,label:a,shortcut:r.shortcut,callback:t.hitch(o.actionService,"executeAction",n,{actionOrigin:"javascriptContextMenu"}),enabled:r.enabled,selected:r.selected||!!e.selected}}return e.children&&(i.children=this._getMenuItemInfos(e.children)),i},_getActionInfo:function(e){let t=this._actionService.getAction(e);return t?{action:t,actionService:this._actionService}:(t=this._externalActionDataService.getAction(e),t?{action:t,actionService:this._externalActionDataService}:null)},_sortMenuItemInfos:function(e){return e.sort((function(e,t){return t.priority-e.priority}))},hideGroup:function(e){this._invalidGroupList.push(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(228),i(210),i(211),i(213),i(1861)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=null;function s(e,i){return{dataURL:e.toDataURL(i),width:e.width,height:e.height,verticalAlign:parseFloat(t.get(e,"data-eqn-vertical-align"))}}function l(t,i,s){d(t);var l=t,u=null;if(0===t.clientHeight){var h=o.getComputedStyle(t);u=c({fontSize:h.fontSize,fontStyle:h.fontStyle,fontWeight:h.fontWeight,fontFamily:h.fontFamily,fontVariant:h.fontVariant,color:h.color}),(l=e.clone(t))["data-eqn-height"]=t["data-eqn-height"],l["data-eqn-vertical-align"]=t["data-eqn-vertical-align"],n.place(l,u)}a||(a=new r);var p=a.renderToCanvas(l,i,s);return u&&n.destroy(u),p}function c(t){var i={style:e.mixin({display:"inline-block",position:"absolute",right:"-10000px",bottom:"-10000px",fontSize:"14px",whiteSpace:"pre-wrap"},t)};return n.create("span",i,document.body)}function d(e){if(!e||!i.contains(e,"MathEquation"))throw new Error("MathEquation expected!")}return{getImageObject:s,createOffScreenSpan:c,exportDomnodeToCanvas:l,exportDomnodeToImageURL:function(e,t,o,r){d(e);var a=l(e,t,r),c=s(a,o),u=function(e){var t,n,o;if(e&&1===e.children.length&&(t=e.children[0]),t&&1===t.children.length&&(n=t.children[0]),n&&1===n.children.length&&(o=n.children[0]),o&&o.children&&1===o.children.length&&(o=o.children[0]),o&&i.contains(o,"MathTextBox"))return o}(e);return u&&(c.simpleEquation=u),n.destroy(a),c}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(210),i(211),i(217),i(213),i(1354),i(1355),i(3595)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(null,{constructor:function(){this._eqRectStack=[]},renderToCanvas:function(e,r,a){r=r||1,a=a||1/0;var s=o.position(e.children[0],!0),l=Math.round(r*s.h);this._canvasHeight=Math.min(l,4500);var c,d=Math.round(r*s.w);if(this._canvasWidth=Math.min(d,4500,a),i.contains(e,"emptyEquation"))c=this._renderEmptyEquation(e,this._canvasWidth,r);else{var u=(c=n.create("canvas",{width:this._canvasWidth,height:this._canvasHeight})).getContext("2d");this.renderToContext(e,r,u);var h=e["data-eqn-vertical-align"]||0;t.set(c,"data-eqn-vertical-align",h),c.style.verticalAlign=h}return i.add(c,"MathEquationCanvas"),c},_renderEmptyEquation:function(e,i,o){var a=e.children[0],l=r.getComputedStyle(a),c=e.clientHeight*o,d=n.create("canvas",{width:i,height:c}),u=d.getContext("2d"),h=-parseFloat(l.fontSize)*s.FONT_DESCENT;return t.set(d,"data-eqn-vertical-align",h),d.style.verticalAlign=h,u.save(),u.imageSmoothingEnabled=!1,u.scale(o,o),u.fillStyle=l.color,u.font=l.fontStyle+" "+l.fontVariant+" "+l.fontWeight+" "+l.fontSize+" "+l.fontFamily,u.fillText(a.textContent,0,parseFloat(l.fontSize)*s.FONT_ASCENT),u.restore(),d},renderToContext:function(e,t,i){t=t||1,this._eqRect=o.position(e,!0),this.ctx=i,this.ctx.imageSmoothingEnabled=!1,this.ctx.scale(t,t),this.ctx.textBaseline="top",this._renderElement(e),this.ctx=[]},_saveContext:function(){var e=this._eqRect;this._eqRectStack.push({x:e.x,h:e.h,y:e.y,w:e.w}),this.ctx.save()},_restoreContext:function(){this._eqRect=this._eqRectStack.pop(),this.ctx.restore()},_renderElement:function(e){var t=r.getComputedStyle(e);this._saveContext();var i=parseFloat(t.borderTopWidth);i&&(this._eqRect.y-=i);var n=this._positionInEquation(e,t);if(n.x>this._canvasWidth||n.y>this._canvasHeight)this._restoreContext();else{this._applyElementStyleToCanvas(t,n);for(var o=e.childNodes,a=0;a<o.length;a+=1){var s=o[a];switch(s.nodeType){case e.ELEMENT_NODE:this._renderElement(s);break;case e.TEXT_NODE:if("hidden"===t.visibility)break;this._renderText(s,n.x,n.y)}}this._restoreContext()}},_renderText:function(e,t,i){this.ctx.fillText(e.textContent,t,i)},_drawBorderLine:function(e,t,i,n,o){var r=this.ctx;(n===a.SOLID_LINE||n===a.DASHED_LINE)&&o>0&&(r.save(),r.beginPath(),r.moveTo(e.x,e.y),r.lineTo(t.x,t.y),n===a.DASHED_LINE&&r.setLineDash([2*o]),r.strokeStyle=i,r.lineWidth=o,r.stroke(),r.restore())},_drawBorders:function(e,t){this._drawBorderLine({x:e.x,y:e.y+e.h},{x:e.x+e.w,y:e.y+e.h},t.borderBottomColor,t.borderBottomStyle,parseFloat(t.borderBottomWidth)),this._drawBorderLine({x:e.x,y:e.y},{x:e.x,y:e.y+e.h},t.borderLeftColor,t.borderLeftStyle,parseFloat(t.borderLeftWidth)),this._drawBorderLine({x:e.x,y:e.y},{x:e.x+e.w,y:e.y},t.borderTopColor,t.borderTopStyle,parseFloat(t.borderTopWidth)),this._drawBorderLine({x:e.x+e.w,y:e.y},{x:e.x+e.w,y:e.y+e.h},t.borderRightColor,t.borderRightStyle,parseFloat(t.borderRightWidth))},_needsExtraSpanForrMeasurement:function(e){return!!i.contains(e,"MathTextBox")&&(-1!==e.className.indexOf("extra")||-1!==e.className.indexOf("symbol")||-1!==e.className.indexOf("stixsize")||-1!==e.className.indexOf("stixvariants")||-1!==e.className.indexOf("accent"))},_positionInEquation:function(e,t){var n,a,s,c,d=e,u=0;return n=(t=t||r.getComputedStyle(e)).paddingLeft||"0px",a=e.innerHTML,this._needsExtraSpanForrMeasurement(e)&&(e.innerHTML="<span>"+e.innerHTML+"</span>",d=e.firstElementChild),s=o.position(d,!0),i.contains(e,"MathTextBox")&&(u=l.getGlyphShift(e,s,t)),c={x:s.x-this._eqRect.x,h:s.h,y:s.y-this._eqRect.y+u,w:s.w},a!==e.innerHTML?e.innerHTML=a:c.x+=parseFloat(n),c},_applyElementStyleToCanvas:function(e,t){return this.ctx.fillStyle=e.color,this.ctx.font=e.fontStyle+" "+e.fontVariant+" "+e.fontWeight+" "+e.fontSize+" "+e.fontFamily,"visible"===e.visibility&&this._drawBorders(t,e),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(523),i(1091),i(400),i(472),i(911)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(i,{constructor:function(e){e=e||{},this.className="MathDelimiter",this.symbolName=e.symbolName,this.TeXSpacing=e.TeXSpacing,this.minsize=e.minsize,this.maxsize=e.maxsize,e.hasOwnProperty("stretchy")&&(this.stretchy=e.stretchy)},_exportMathML:function(e){var t=["minsize","maxsize"];n.isStretchyAccent(this.symbolName)&&!n.isStretchyOperatorByDefault(this.symbolName)&&t.push("stretchy");var i=o.startTag(e,"mo",this,t);return i+=o.maskSpecialCharacters(n.serializeSymbol(this.symbolName)),i+=o.endTag("mo")},_exportLaTeX:function(e){var i="",o={1.2:"big",1.8:"Big",2.4:"bigg",3:"Bigg"};return n.isStretchyOperatorByDefault(this.symbolName)&&(n.isOpeningDelimiter(this.symbolName)||n.isSeparator(this.symbolName)&&0===e.openParens?(this.minsize&&this.minsize===this.maxsize&&o[this.minsize]?i+="\\"+o[this.minsize]+(this.TeXSpacing===t.OPEN?"l":""):i+="\\left",e.openParens+=1):(n.isClosingDelimiter(this.symbolName)||n.isSeparator(this.symbolName)&&e.openParens>0)&&(this.minsize&&this.minsize===this.maxsize&&o[this.minsize]?i+="\\"+o[this.minsize]+(this.TeXSpacing===t.CLOSE?"r":""):i+="\\right",e.openParens-=1)),i+=r.commandName(this.symbolName," ")},_layoutStretchyBox:function(e,t){var i=e.mathAxis();return t.setSymbolBoxData(this,i),t},_layoutHorizontalStretchyBox:function(e,t){return t.setSymbolBoxData(this),t},isVerticalDelimiter:function(){return!n.isStretchyAccent(this.symbolName)},getAccent:function(){return n.isAccent(this.symbolName)?this:null},layout:function(e){return n.isStretchyAccent(this.symbolName)?this._layoutHorizontalStretchyBox(e,e.parseBoxes("a")):this._layoutStretchyBox(e,e.parseBoxes("s"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1864)],o=i.dj.d(n,(function(e,t){"use strict";return e(null,{constructor:function(e){e=e||{},this._code=e.code||"",this._precedence=e.precedence||t.INFINITE,this._idents=e.idents||[],this._boundIdents=e.boundIdents||[],this._hasSym=e.hasSym||this._idents.length>0,this._invalid=e.invalid||!1},addParensIfNeeded:function(e){return e===t.INFINITE||e>=this._precedence&&(this._code="("+this._code+")",this._precedence=t.INFINITE),this},code:function(){return this._code},idents:function(){return this._idents},boundIdents:function(){return this._boundIdents},precedence:function(){return this._precedence},hasSym:function(){return this._hasSym},isInvalid:function(){return this._invalid}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NOOP:0,STMTSEQ:10,EXPRSEQ:20,EVALAT:30,ASSUMING:40,EQUIV:50,IMPLIES:75,OR:100,XOR:150,AND:200,NOT:300,SEQGEN:300,RELATION:400,RANGE:500,UNION:600,MINUS:700,INTERSECT:800,INTERVAL:850,MOD:900,PLUS:1e3,MULT:1100,FCONCAT:1100,FNEST:1100,POWER:1200,FACT:1300,CONCAT:1700,INDEX:1800,PRIME:1900,SLOT:2e3,STMT:3e3,INFINITE:1e6}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={"&AElig;":"Æ","&AMP;":"&","&Aacute;":"Á","&Abreve;":"Ă","&Acirc;":"Â","&Acy;":"А","&Afr;":"𝔄","&Agrave;":"À","&Alpha;":"Α","&Amacr;":"Ā","&And;":"⩓","&Aogon;":"Ą","&Aopf;":"𝔸","&ApplyFunction;":"⁡","&Aring;":"Å","&Ascr;":"𝒜","&Assign;":"≔","&Atilde;":"Ã","&Auml;":"Ä","&Backslash;":"∖","&Barv;":"⫧","&Barwed;":"⌆","&Bcy;":"Б","&Because;":"∵","&Bernoullis;":"ℬ","&Beta;":"Β","&Bfr;":"𝔅","&Bopf;":"𝔹","&Breve;":"˘","&Bscr;":"ℬ","&Bumpeq;":"≎","&CHcy;":"Ч","&COPY;":"©","&Cacute;":"Ć","&Cap;":"⋒","&CapitalDifferentialD;":"ⅅ","&Cayleys;":"ℭ","&Ccaron;":"Č","&Ccedil;":"Ç","&Ccirc;":"Ĉ","&Cconint;":"∰","&Cdot;":"Ċ","&Cedilla;":"¸","&CenterDot;":"·","&Cfr;":"ℭ","&Chi;":"Χ","&CircleDot;":"⊙","&CircleMinus;":"⊖","&CirclePlus;":"⊕","&CircleTimes;":"⊗","&ClockwiseContourIntegral;":"∲","&CloseCurlyDoubleQuote;":"”","&CloseCurlyQuote;":"’","&Colon;":"∷","&Colone;":"⩴","&Congruent;":"≡","&Conint;":"∯","&ContourIntegral;":"∮","&Copf;":"ℂ","&Coproduct;":"∐","&CounterClockwiseContourIntegral;":"∳","&Cross;":"⨯","&Cscr;":"𝒞","&Cup;":"⋓","&CupCap;":"≍","&DD;":"ⅅ","&DDotrahd;":"⤑","&DJcy;":"Ђ","&DScy;":"Ѕ","&DZcy;":"Џ","&Dagger;":"‡","&Darr;":"↡","&Dashv;":"⫤","&Dcaron;":"Ď","&Dcy;":"Д","&Del;":"∇","&Delta;":"Δ","&Dfr;":"𝔇","&DiacriticalAcute;":"´","&DiacriticalDot;":"˙","&DiacriticalDoubleAcute;":"˝","&DiacriticalGrave;":"`","&DiacriticalTilde;":"˜","&Diamond;":"⋄","&DifferentialD;":"ⅆ","&Dopf;":"𝔻","&Dot;":"¨","&DotDot;":" ⃜","&DotEqual;":"≐","&DoubleContourIntegral;":"∯","&DoubleDot;":"¨","&DoubleDownArrow;":"⇓","&DoubleLeftArrow;":"⇐","&DoubleLeftRightArrow;":"⇔","&DoubleLeftTee;":"⫤","&DoubleLongLeftArrow;":"⟸","&DoubleLongLeftRightArrow;":"⟺","&DoubleLongRightArrow;":"⟹","&DoubleRightArrow;":"⇒","&DoubleRightTee;":"⊨","&DoubleUpArrow;":"⇑","&DoubleUpDownArrow;":"⇕","&DoubleVerticalBar;":"∥","&DownArrow;":"↓","&DownArrowBar;":"⤓","&DownArrowUpArrow;":"⇵","&DownBreve;":" ̑","&DownLeftRightVector;":"⥐","&DownLeftTeeVector;":"⥞","&DownLeftVector;":"↽","&DownLeftVectorBar;":"⥖","&DownRightTeeVector;":"⥟","&DownRightVector;":"⇁","&DownRightVectorBar;":"⥗","&DownTee;":"⊤","&DownTeeArrow;":"↧","&Downarrow;":"⇓","&Dscr;":"𝒟","&Dstrok;":"Đ","&ENG;":"Ŋ","&ETH;":"Ð","&Eacute;":"É","&Ecaron;":"Ě","&Ecirc;":"Ê","&Ecy;":"Э","&Edot;":"Ė","&Efr;":"𝔈","&Egrave;":"È","&Element;":"∈","&Emacr;":"Ē","&EmptySmallSquare;":"◻","&EmptyVerySmallSquare;":"▫","&Eogon;":"Ę","&Eopf;":"𝔼","&Epsilon;":"Ε","&Equal;":"⩵","&EqualTilde;":"≂","&Equilibrium;":"⇌","&Escr;":"ℰ","&Esim;":"⩳","&Eta;":"Η","&Euml;":"Ë","&Exists;":"∃","&ExponentialE;":"ⅇ","&Fcy;":"Ф","&Ffr;":"𝔉","&FilledSmallSquare;":"◼","&FilledVerySmallSquare;":"▪","&Fopf;":"𝔽","&ForAll;":"∀","&Fouriertrf;":"ℱ","&Fscr;":"ℱ","&GJcy;":"Ѓ","&GT;":">","&Gamma;":"Γ","&Gammad;":"Ϝ","&Gbreve;":"Ğ","&Gcedil;":"Ģ","&Gcirc;":"Ĝ","&Gcy;":"Г","&Gdot;":"Ġ","&Gfr;":"𝔊","&Gg;":"⋙","&Gopf;":"𝔾","&GreaterEqual;":"≥","&GreaterEqualLess;":"⋛","&GreaterFullEqual;":"≧","&GreaterGreater;":"⪢","&GreaterLess;":"≷","&GreaterSlantEqual;":"⩾","&GreaterTilde;":"≳","&Gscr;":"𝒢","&Gt;":"≫","&HARDcy;":"Ъ","&Hacek;":"ˇ","&Hat;":"^","&Hcirc;":"Ĥ","&Hfr;":"ℌ","&HilbertSpace;":"ℋ","&Hopf;":"ℍ","&HorizontalLine;":"─","&Hscr;":"ℋ","&Hstrok;":"Ħ","&HumpDownHump;":"≎","&HumpEqual;":"≏","&IEcy;":"Е","&IJlig;":"IJ","&IOcy;":"Ё","&Iacute;":"Í","&Icirc;":"Î","&Icy;":"И","&Idot;":"İ","&Ifr;":"ℑ","&Igrave;":"Ì","&Im;":"ℑ","&Imacr;":"Ī","&ImaginaryI;":"ⅈ","&Implies;":"⇒","&Int;":"∬","&Integral;":"∫","&Intersection;":"⋂","&InvisibleComma;":"⁣","&InvisibleTimes;":"⁢","&Iogon;":"Į","&Iopf;":"𝕀","&Iota;":"Ι","&Iscr;":"ℐ","&Itilde;":"Ĩ","&Iukcy;":"І","&Iuml;":"Ï","&Jcirc;":"Ĵ","&Jcy;":"Й","&Jfr;":"𝔍","&Jopf;":"𝕁","&Jscr;":"𝒥","&Jsercy;":"Ј","&Jukcy;":"Є","&KHcy;":"Х","&KJcy;":"Ќ","&Kappa;":"Κ","&Kcedil;":"Ķ","&Kcy;":"К","&Kfr;":"𝔎","&Kopf;":"𝕂","&Kscr;":"𝒦","&LJcy;":"Љ","&LT;":"<","&Lacute;":"Ĺ","&Lambda;":"Λ","&Lang;":"⟪","&Laplacetrf;":"ℒ","&Larr;":"↞","&Lcaron;":"Ľ","&Lcedil;":"Ļ","&Lcy;":"Л","&LeftAngleBracket;":"⟨","&LeftArrow;":"←","&LeftArrowBar;":"⇤","&LeftArrowRightArrow;":"⇆","&LeftCeiling;":"⌈","&LeftDoubleBracket;":"⟦","&LeftDownTeeVector;":"⥡","&LeftDownVector;":"⇃","&LeftDownVectorBar;":"⥙","&LeftFloor;":"⌊","&LeftRightArrow;":"↔","&LeftRightVector;":"⥎","&LeftTee;":"⊣","&LeftTeeArrow;":"↤","&LeftTeeVector;":"⥚","&LeftTriangle;":"⊲","&LeftTriangleBar;":"⧏","&LeftTriangleEqual;":"⊴","&LeftUpDownVector;":"⥑","&LeftUpTeeVector;":"⥠","&LeftUpVector;":"↿","&LeftUpVectorBar;":"⥘","&LeftVector;":"↼","&LeftVectorBar;":"⥒","&Leftarrow;":"⇐","&Leftrightarrow;":"⇔","&LessEqualGreater;":"⋚","&LessFullEqual;":"≦","&LessGreater;":"≶","&LessLess;":"⪡","&LessSlantEqual;":"⩽","&LessTilde;":"≲","&Lfr;":"𝔏","&Ll;":"⋘","&Lleftarrow;":"⇚","&Lmidot;":"Ŀ","&LongLeftArrow;":"⟵","&LongLeftRightArrow;":"⟷","&LongRightArrow;":"⟶","&Longleftarrow;":"⟸","&Longleftrightarrow;":"⟺","&Longrightarrow;":"⟹","&Lopf;":"𝕃","&LowerLeftArrow;":"↙","&LowerRightArrow;":"↘","&Lscr;":"ℒ","&Lsh;":"↰","&Lstrok;":"Ł","&Lt;":"≪","&Map;":"⤅","&Mcy;":"М","&MediumSpace;":" ","&Mellintrf;":"ℳ","&Mfr;":"𝔐","&MinusPlus;":"∓","&Mopf;":"𝕄","&Mscr;":"ℳ","&Mu;":"Μ","&NJcy;":"Њ","&Nacute;":"Ń","&Ncaron;":"Ň","&Ncedil;":"Ņ","&Ncy;":"Н","&NegativeMediumSpace;":"​","&NegativeThickSpace;":"​","&NegativeThinSpace;":"​","&NegativeVeryThinSpace;":"​","&NestedGreaterGreater;":"≫","&NestedLessLess;":"≪","&NewLine;":"\n","&Nfr;":"𝔑","&NoBreak;":"⁠","&NonBreakingSpace;":" ","&Nopf;":"ℕ","&Not;":"⫬","&NotCongruent;":"≢","&NotCupCap;":"≭","&NotDoubleVerticalBar;":"∦","&NotElement;":"∉","&NotEqual;":"≠","&NotEqualTilde;":"≂̸","&NotExists;":"∄","&NotGreater;":"≯","&NotGreaterEqual;":"≱","&NotGreaterFullEqual;":"≧̸","&NotGreaterGreater;":"≫̸","&NotGreaterLess;":"≹","&NotGreaterSlantEqual;":"⩾̸","&NotGreaterTilde;":"≵","&NotHumpDownHump;":"≎̸","&NotHumpEqual;":"≏̸","&NotLeftTriangle;":"⋪","&NotLeftTriangleBar;":"⧏̸","&NotLeftTriangleEqual;":"⋬","&NotLess;":"≮","&NotLessEqual;":"≰","&NotLessGreater;":"≸","&NotLessLess;":"≪̸","&NotLessSlantEqual;":"⩽̸","&NotLessTilde;":"≴","&NotNestedGreaterGreater;":"⪢̸","&NotNestedLessLess;":"⪡̸","&NotPrecedes;":"⊀","&NotPrecedesEqual;":"⪯̸","&NotPrecedesSlantEqual;":"⋠","&NotReverseElement;":"∌","&NotRightTriangle;":"⋫","&NotRightTriangleBar;":"⧐̸","&NotRightTriangleEqual;":"⋭","&NotSquareSubset;":"⊏̸","&NotSquareSubsetEqual;":"⋢","&NotSquareSuperset;":"⊐̸","&NotSquareSupersetEqual;":"⋣","&NotSubset;":"⊂⃒","&NotSubsetEqual;":"⊈","&NotSucceeds;":"⊁","&NotSucceedsEqual;":"⪰̸","&NotSucceedsSlantEqual;":"⋡","&NotSucceedsTilde;":"≿̸","&NotSuperset;":"⊃⃒","&NotSupersetEqual;":"⊉","&NotTilde;":"≁","&NotTildeEqual;":"≄","&NotTildeFullEqual;":"≇","&NotTildeTilde;":"≉","&NotVerticalBar;":"∤","&Nscr;":"𝒩","&Ntilde;":"Ñ","&Nu;":"Ν","&OElig;":"Œ","&Oacute;":"Ó","&Ocirc;":"Ô","&Ocy;":"О","&Odblac;":"Ő","&Ofr;":"𝔒","&Ograve;":"Ò","&Omacr;":"Ō","&Omega;":"Ω","&Omicron;":"Ο","&Oopf;":"𝕆","&OpenCurlyDoubleQuote;":"“","&OpenCurlyQuote;":"‘","&Or;":"⩔","&Oscr;":"𝒪","&Oslash;":"Ø","&Otilde;":"Õ","&Otimes;":"⨷","&Ouml;":"Ö","&OverBar;":"‾","&OverBrace;":"⏞","&OverBracket;":"⎴","&OverParenthesis;":"⏜","&PartialD;":"∂","&Pcy;":"П","&Pfr;":"𝔓","&Phi;":"Φ","&Pi;":"Π","&PlusMinus;":"±","&Poincareplane;":"ℌ","&Popf;":"ℙ","&Pr;":"⪻","&Precedes;":"≺","&PrecedesEqual;":"⪯","&PrecedesSlantEqual;":"≼","&PrecedesTilde;":"≾","&Prime;":"″","&Product;":"∏","&Proportion;":"∷","&Proportional;":"∝","&Pscr;":"𝒫","&Psi;":"Ψ","&QUOT;":'"',"&Qfr;":"𝔔","&Qopf;":"ℚ","&Qscr;":"𝒬","&RBarr;":"⤐","&REG;":"®","&Racute;":"Ŕ","&Rang;":"⟫","&Rarr;":"↠","&Rarrtl;":"⤖","&Rcaron;":"Ř","&Rcedil;":"Ŗ","&Rcy;":"Р","&Re;":"ℜ","&ReverseElement;":"∋","&ReverseEquilibrium;":"⇋","&ReverseUpEquilibrium;":"⥯","&Rfr;":"ℜ","&Rho;":"Ρ","&RightAngleBracket;":"⟩","&RightArrow;":"→","&RightArrowBar;":"⇥","&RightArrowLeftArrow;":"⇄","&RightCeiling;":"⌉","&RightDoubleBracket;":"⟧","&RightDownTeeVector;":"⥝","&RightDownVector;":"⇂","&RightDownVectorBar;":"⥕","&RightFloor;":"⌋","&RightTee;":"⊢","&RightTeeArrow;":"↦","&RightTeeVector;":"⥛","&RightTriangle;":"⊳","&RightTriangleBar;":"⧐","&RightTriangleEqual;":"⊵","&RightUpDownVector;":"⥏","&RightUpTeeVector;":"⥜","&RightUpVector;":"↾","&RightUpVectorBar;":"⥔","&RightVector;":"⇀","&RightVectorBar;":"⥓","&Rightarrow;":"⇒","&Ropf;":"ℝ","&RoundImplies;":"⥰","&Rrightarrow;":"⇛","&Rscr;":"ℛ","&Rsh;":"↱","&RuleDelayed;":"⧴","&SHCHcy;":"Щ","&SHcy;":"Ш","&SOFTcy;":"Ь","&Sacute;":"Ś","&Sc;":"⪼","&Scaron;":"Š","&Scedil;":"Ş","&Scirc;":"Ŝ","&Scy;":"С","&Sfr;":"𝔖","&ShortDownArrow;":"↓","&ShortLeftArrow;":"←","&ShortRightArrow;":"→","&ShortUpArrow;":"↑","&Sigma;":"Σ","&SmallCircle;":"∘","&Sopf;":"𝕊","&Sqrt;":"√","&Square;":"□","&SquareIntersection;":"⊓","&SquareSubset;":"⊏","&SquareSubsetEqual;":"⊑","&SquareSuperset;":"⊐","&SquareSupersetEqual;":"⊒","&SquareUnion;":"⊔","&Sscr;":"𝒮","&Star;":"⋆","&Sub;":"⋐","&Subset;":"⋐","&SubsetEqual;":"⊆","&Succeeds;":"≻","&SucceedsEqual;":"⪰","&SucceedsSlantEqual;":"≽","&SucceedsTilde;":"≿","&SuchThat;":"∋","&Sum;":"∑","&Sup;":"⋑","&Superset;":"⊃","&SupersetEqual;":"⊇","&Supset;":"⋑","&THORN;":"Þ","&TRADE;":"™","&TSHcy;":"Ћ","&TScy;":"Ц","&Tab;":"\t","&Tau;":"Τ","&Tcaron;":"Ť","&Tcedil;":"Ţ","&Tcy;":"Т","&Tfr;":"𝔗","&Therefore;":"∴","&Theta;":"Θ","&ThickSpace;":"  ","&ThinSpace;":" ","&Tilde;":"∼","&TildeEqual;":"≃","&TildeFullEqual;":"≅","&TildeTilde;":"≈","&Topf;":"𝕋","&TripleDot;":" ⃛","&Tscr;":"𝒯","&Tstrok;":"Ŧ","&Uacute;":"Ú","&Uarr;":"↟","&Uarrocir;":"⥉","&Ubrcy;":"Ў","&Ubreve;":"Ŭ","&Ucirc;":"Û","&Ucy;":"У","&Udblac;":"Ű","&Ufr;":"𝔘","&Ugrave;":"Ù","&Umacr;":"Ū","&UnderBar;":"_","&UnderBrace;":"⏟","&UnderBracket;":"⎵","&UnderParenthesis;":"⏝","&Union;":"⋃","&UnionPlus;":"⊎","&Uogon;":"Ų","&Uopf;":"𝕌","&UpArrow;":"↑","&UpArrowBar;":"⤒","&UpArrowDownArrow;":"⇅","&UpDownArrow;":"↕","&UpEquilibrium;":"⥮","&UpTee;":"⊥","&UpTeeArrow;":"↥","&Uparrow;":"⇑","&Updownarrow;":"⇕","&UpperLeftArrow;":"↖","&UpperRightArrow;":"↗","&Upsi;":"ϒ","&Upsilon;":"Υ","&Uring;":"Ů","&Uscr;":"𝒰","&Utilde;":"Ũ","&Uuml;":"Ü","&VDash;":"⊫","&Vbar;":"⫫","&Vcy;":"В","&Vdash;":"⊩","&Vdashl;":"⫦","&Vee;":"⋁","&Verbar;":"‖","&Vert;":"‖","&VerticalBar;":"∣","&VerticalLine;":"|","&VerticalSeparator;":"❘","&VerticalTilde;":"≀","&VeryThinSpace;":" ","&Vfr;":"𝔙","&Vopf;":"𝕍","&Vscr;":"𝒱","&Vvdash;":"⊪","&Wcirc;":"Ŵ","&Wedge;":"⋀","&Wfr;":"𝔚","&Wopf;":"𝕎","&Wscr;":"𝒲","&Xfr;":"𝔛","&Xi;":"Ξ","&Xopf;":"𝕏","&Xscr;":"𝒳","&YAcy;":"Я","&YIcy;":"Ї","&YUcy;":"Ю","&Yacute;":"Ý","&Ycirc;":"Ŷ","&Ycy;":"Ы","&Yfr;":"𝔜","&Yopf;":"𝕐","&Yscr;":"𝒴","&Yuml;":"Ÿ","&ZHcy;":"Ж","&Zacute;":"Ź","&Zcaron;":"Ž","&Zcy;":"З","&Zdot;":"Ż","&ZeroWidthSpace;":"​","&Zeta;":"Ζ","&Zfr;":"ℨ","&Zopf;":"ℤ","&Zscr;":"𝒵","&aacute;":"á","&abreve;":"ă","&ac;":"∾","&acE;":"∾̳","&acd;":"∿","&acirc;":"â","&acute;":"´","&acy;":"а","&aelig;":"æ","&af;":"⁡","&afr;":"𝔞","&agrave;":"à","&alefsym;":"ℵ","&aleph;":"ℵ","&alpha;":"α","&amacr;":"ā","&amalg;":"⨿","&and;":"∧","&andand;":"⩕","&andd;":"⩜","&andslope;":"⩘","&andv;":"⩚","&ang;":"∠","&ange;":"⦤","&angle;":"∠","&angmsd;":"∡","&angmsdaa;":"⦨","&angmsdab;":"⦩","&angmsdac;":"⦪","&angmsdad;":"⦫","&angmsdae;":"⦬","&angmsdaf;":"⦭","&angmsdag;":"⦮","&angmsdah;":"⦯","&angrt;":"∟","&angrtvb;":"⊾","&angrtvbd;":"⦝","&angsph;":"∢","&angst;":"Å","&angzarr;":"⍼","&aogon;":"ą","&aopf;":"𝕒","&ap;":"≈","&apE;":"⩰","&apacir;":"⩯","&ape;":"≊","&apid;":"≋","&apos;":"'","&approx;":"≈","&approxeq;":"≊","&aring;":"å","&ascr;":"𝒶","&ast;":"*","&asymp;":"≈","&asympeq;":"≍","&atilde;":"ã","&auml;":"ä","&awconint;":"∳","&awint;":"⨑","&bNot;":"⫭","&backcong;":"≌","&backepsilon;":"϶","&backprime;":"‵","&backsim;":"∽","&backsimeq;":"⋍","&barvee;":"⊽","&barwed;":"⌅","&barwedge;":"⌅","&bbrk;":"⎵","&bbrktbrk;":"⎶","&bcong;":"≌","&bcy;":"б","&bdquo;":"„","&becaus;":"∵","&because;":"∵","&bemptyv;":"⦰","&bepsi;":"϶","&bernou;":"ℬ","&beta;":"β","&beth;":"ℶ","&between;":"≬","&bfr;":"𝔟","&bigcap;":"⋂","&bigcirc;":"◯","&bigcup;":"⋃","&bigodot;":"⨀","&bigoplus;":"⨁","&bigotimes;":"⨂","&bigsqcup;":"⨆","&bigstar;":"★","&bigtriangledown;":"▽","&bigtriangleup;":"△","&biguplus;":"⨄","&bigvee;":"⋁","&bigwedge;":"⋀","&bkarow;":"⤍","&blacklozenge;":"⧫","&blacksquare;":"▪","&blacktriangle;":"▴","&blacktriangledown;":"▾","&blacktriangleleft;":"◂","&blacktriangleright;":"▸","&blank;":"␣","&blk12;":"▒","&blk14;":"░","&blk34;":"▓","&block;":"█","&bne;":"=⃥","&bnequiv;":"≡⃥","&bnot;":"⌐","&bopf;":"𝕓","&bot;":"⊥","&bottom;":"⊥","&bowtie;":"⋈","&boxDL;":"╗","&boxDR;":"╔","&boxDl;":"╖","&boxDr;":"╓","&boxH;":"═","&boxHD;":"╦","&boxHU;":"╩","&boxHd;":"╤","&boxHu;":"╧","&boxUL;":"╝","&boxUR;":"╚","&boxUl;":"╜","&boxUr;":"╙","&boxV;":"║","&boxVH;":"╬","&boxVL;":"╣","&boxVR;":"╠","&boxVh;":"╫","&boxVl;":"╢","&boxVr;":"╟","&boxbox;":"⧉","&boxdL;":"╕","&boxdR;":"╒","&boxdl;":"┐","&boxdr;":"┌","&boxh;":"─","&boxhD;":"╥","&boxhU;":"╨","&boxhd;":"┬","&boxhu;":"┴","&boxminus;":"⊟","&boxplus;":"⊞","&boxtimes;":"⊠","&boxuL;":"╛","&boxuR;":"╘","&boxul;":"┘","&boxur;":"└","&boxv;":"│","&boxvH;":"╪","&boxvL;":"╡","&boxvR;":"╞","&boxvh;":"┼","&boxvl;":"┤","&boxvr;":"├","&bprime;":"‵","&breve;":"˘","&brvbar;":"¦","&bscr;":"𝒷","&bsemi;":"⁏","&bsim;":"∽","&bsime;":"⋍","&bsol;":"\\","&bsolb;":"⧅","&bsolhsub;":"⟈","&bull;":"•","&bullet;":"•","&bump;":"≎","&bumpE;":"⪮","&bumpe;":"≏","&bumpeq;":"≏","&cacute;":"ć","&cap;":"∩","&capand;":"⩄","&capbrcup;":"⩉","&capcap;":"⩋","&capcup;":"⩇","&capdot;":"⩀","&caps;":"∩︀","&caret;":"⁁","&caron;":"ˇ","&ccaps;":"⩍","&ccaron;":"č","&ccedil;":"ç","&ccirc;":"ĉ","&ccups;":"⩌","&ccupssm;":"⩐","&cdot;":"ċ","&cedil;":"¸","&cemptyv;":"⦲","&cent;":"¢","&centerdot;":"·","&cfr;":"𝔠","&chcy;":"ч","&check;":"✓","&checkmark;":"✓","&chi;":"χ","&cir;":"○","&cirE;":"⧃","&circ;":"ˆ","&circeq;":"≗","&circlearrowleft;":"↺","&circlearrowright;":"↻","&circledR;":"®","&circledS;":"Ⓢ","&circledast;":"⊛","&circledcirc;":"⊚","&circleddash;":"⊝","&cire;":"≗","&cirfnint;":"⨐","&cirmid;":"⫯","&cirscir;":"⧂","&clubs;":"♣","&clubsuit;":"♣","&colon;":":","&colone;":"≔","&coloneq;":"≔","&comma;":",","&commat;":"@","&comp;":"∁","&compfn;":"∘","&complement;":"∁","&complexes;":"ℂ","&cong;":"≅","&congdot;":"⩭","&conint;":"∮","&copf;":"𝕔","&coprod;":"∐","&copy;":"©","&copysr;":"℗","&crarr;":"↵","&cross;":"✗","&cscr;":"𝒸","&csub;":"⫏","&csube;":"⫑","&csup;":"⫐","&csupe;":"⫒","&ctdot;":"⋯","&cudarrl;":"⤸","&cudarrr;":"⤵","&cuepr;":"⋞","&cuesc;":"⋟","&cularr;":"↶","&cularrp;":"⤽","&cup;":"∪","&cupbrcap;":"⩈","&cupcap;":"⩆","&cupcup;":"⩊","&cupdot;":"⊍","&cupor;":"⩅","&cups;":"∪︀","&curarr;":"↷","&curarrm;":"⤼","&curlyeqprec;":"⋞","&curlyeqsucc;":"⋟","&curlyvee;":"⋎","&curlywedge;":"⋏","&curren;":"¤","&curvearrowleft;":"↶","&curvearrowright;":"↷","&cuvee;":"⋎","&cuwed;":"⋏","&cwconint;":"∲","&cwint;":"∱","&cylcty;":"⌭","&dArr;":"⇓","&dHar;":"⥥","&dagger;":"†","&daleth;":"ℸ","&darr;":"↓","&dash;":"‐","&dashv;":"⊣","&dbkarow;":"⤏","&dblac;":"˝","&dcaron;":"ď","&dcy;":"д","&dd;":"ⅆ","&ddagger;":"‡","&ddarr;":"⇊","&ddotseq;":"⩷","&deg;":"°","&delta;":"δ","&demptyv;":"⦱","&dfisht;":"⥿","&dfr;":"𝔡","&dharl;":"⇃","&dharr;":"⇂","&diam;":"⋄","&diamond;":"⋄","&diamondsuit;":"♦","&diams;":"♦","&die;":"¨","&digamma;":"ϝ","&disin;":"⋲","&div;":"÷","&divide;":"÷","&divideontimes;":"⋇","&divonx;":"⋇","&djcy;":"ђ","&dlcorn;":"⌞","&dlcrop;":"⌍","&dollar;":"$","&dopf;":"𝕕","&dot;":"˙","&doteq;":"≐","&doteqdot;":"≑","&dotminus;":"∸","&dotplus;":"∔","&dotsquare;":"⊡","&doublebarwedge;":"⌆","&downarrow;":"↓","&downdownarrows;":"⇊","&downharpoonleft;":"⇃","&downharpoonright;":"⇂","&drbkarow;":"⤐","&drcorn;":"⌟","&drcrop;":"⌌","&dscr;":"𝒹","&dscy;":"ѕ","&dsol;":"⧶","&dstrok;":"đ","&dtdot;":"⋱","&dtri;":"▿","&dtrif;":"▾","&duarr;":"⇵","&duhar;":"⥯","&dwangle;":"⦦","&dzcy;":"џ","&dzigrarr;":"⟿","&eDDot;":"⩷","&eDot;":"≑","&eacute;":"é","&easter;":"⩮","&ecaron;":"ě","&ecir;":"≖","&ecirc;":"ê","&ecolon;":"≕","&ecy;":"э","&edot;":"ė","&ee;":"ⅇ","&efDot;":"≒","&efr;":"𝔢","&eg;":"⪚","&egrave;":"è","&egs;":"⪖","&egsdot;":"⪘","&el;":"⪙","&elinters;":"⏧","&ell;":"ℓ","&els;":"⪕","&elsdot;":"⪗","&emacr;":"ē","&empty;":"∅","&emptyset;":"∅","&emptyv;":"∅","&emsp;":" ","&emsp13;":" ","&emsp14;":" ","&eng;":"ŋ","&ensp;":" ","&eogon;":"ę","&eopf;":"𝕖","&epar;":"⋕","&eparsl;":"⧣","&eplus;":"⩱","&epsi;":"ε","&epsilon;":"ε","&epsiv;":"ϵ","&eqcirc;":"≖","&eqcolon;":"≕","&eqsim;":"≂","&eqslantgtr;":"⪖","&eqslantless;":"⪕","&equals;":"=","&equest;":"≟","&equiv;":"≡","&equivDD;":"⩸","&eqvparsl;":"⧥","&erDot;":"≓","&erarr;":"⥱","&escr;":"ℯ","&esdot;":"≐","&esim;":"≂","&eta;":"η","&eth;":"ð","&euml;":"ë","&euro;":"€","&excl;":"!","&exist;":"∃","&expectation;":"ℰ","&exponentiale;":"ⅇ","&fallingdotseq;":"≒","&fcy;":"ф","&female;":"♀","&ffilig;":"ffi","&fflig;":"ff","&ffllig;":"ffl","&ffr;":"𝔣","&filig;":"fi","&fjlig;":"fj","&flat;":"♭","&fllig;":"fl","&fltns;":"▱","&fnof;":"ƒ","&fopf;":"𝕗","&forall;":"∀","&fork;":"⋔","&forkv;":"⫙","&fpartint;":"⨍","&frac12;":"½","&frac13;":"⅓","&frac14;":"¼","&frac15;":"⅕","&frac16;":"⅙","&frac18;":"⅛","&frac23;":"⅔","&frac25;":"⅖","&frac34;":"¾","&frac35;":"⅗","&frac38;":"⅜","&frac45;":"⅘","&frac56;":"⅚","&frac58;":"⅝","&frac78;":"⅞","&frasl;":"⁄","&frown;":"⌢","&fscr;":"𝒻","&gE;":"≧","&gEl;":"⪌","&gacute;":"ǵ","&gamma;":"γ","&gammad;":"ϝ","&gap;":"⪆","&gbreve;":"ğ","&gcirc;":"ĝ","&gcy;":"г","&gdot;":"ġ","&ge;":"≥","&gel;":"⋛","&geq;":"≥","&geqq;":"≧","&geqslant;":"⩾","&ges;":"⩾","&gescc;":"⪩","&gesdot;":"⪀","&gesdoto;":"⪂","&gesdotol;":"⪄","&gesl;":"⋛︀","&gesles;":"⪔","&gfr;":"𝔤","&gg;":"≫","&ggg;":"⋙","&gimel;":"ℷ","&gjcy;":"ѓ","&gl;":"≷","&glE;":"⪒","&gla;":"⪥","&glj;":"⪤","&gnE;":"≩","&gnap;":"⪊","&gnapprox;":"⪊","&gne;":"⪈","&gneq;":"⪈","&gneqq;":"≩","&gnsim;":"⋧","&gopf;":"𝕘","&grave;":"`","&gscr;":"ℊ","&gsim;":"≳","&gsime;":"⪎","&gsiml;":"⪐","&gt;":">","&gtcc;":"⪧","&gtcir;":"⩺","&gtdot;":"⋗","&gtlPar;":"⦕","&gtquest;":"⩼","&gtrapprox;":"⪆","&gtrarr;":"⥸","&gtrdot;":"⋗","&gtreqless;":"⋛","&gtreqqless;":"⪌","&gtrless;":"≷","&gtrsim;":"≳","&gvertneqq;":"≩︀","&gvnE;":"≩︀","&hArr;":"⇔","&hairsp;":" ","&half;":"½","&hamilt;":"ℋ","&hardcy;":"ъ","&harr;":"↔","&harrcir;":"⥈","&harrw;":"↭","&hbar;":"ℏ","&hcirc;":"ĥ","&hearts;":"♥","&heartsuit;":"♥","&hellip;":"…","&hercon;":"⊹","&hfr;":"𝔥","&hksearow;":"⤥","&hkswarow;":"⤦","&hoarr;":"⇿","&homtht;":"∻","&hookleftarrow;":"↩","&hookrightarrow;":"↪","&hopf;":"𝕙","&horbar;":"―","&hscr;":"𝒽","&hslash;":"ℏ","&hstrok;":"ħ","&hybull;":"⁃","&hyphen;":"‐","&iacute;":"í","&ic;":"⁣","&icirc;":"î","&icy;":"и","&iecy;":"е","&iexcl;":"¡","&iff;":"⇔","&ifr;":"𝔦","&igrave;":"ì","&ii;":"ⅈ","&iiiint;":"⨌","&iiint;":"∭","&iinfin;":"⧜","&iiota;":"℩","&ijlig;":"ij","&imacr;":"ī","&image;":"ℑ","&imagline;":"ℐ","&imagpart;":"ℑ","&imath;":"ı","&imof;":"⊷","&imped;":"Ƶ","&in;":"∈","&incare;":"℅","&infin;":"∞","&infintie;":"⧝","&inodot;":"ı","&int;":"∫","&intcal;":"⊺","&integers;":"ℤ","&intercal;":"⊺","&intlarhk;":"⨗","&intprod;":"⨼","&iocy;":"ё","&iogon;":"į","&iopf;":"𝕚","&iota;":"ι","&iprod;":"⨼","&iquest;":"¿","&iscr;":"𝒾","&isin;":"∈","&isinE;":"⋹","&isindot;":"⋵","&isins;":"⋴","&isinsv;":"⋳","&isinv;":"∈","&it;":"⁢","&itilde;":"ĩ","&iukcy;":"і","&iuml;":"ï","&jcirc;":"ĵ","&jcy;":"й","&jfr;":"𝔧","&jmath;":"ȷ","&jopf;":"𝕛","&jscr;":"𝒿","&jsercy;":"ј","&jukcy;":"є","&kappa;":"κ","&kappav;":"ϰ","&kcedil;":"ķ","&kcy;":"к","&kfr;":"𝔨","&kgreen;":"ĸ","&khcy;":"х","&kjcy;":"ќ","&kopf;":"𝕜","&kscr;":"𝓀","&lAarr;":"⇚","&lArr;":"⇐","&lAtail;":"⤛","&lBarr;":"⤎","&lE;":"≦","&lEg;":"⪋","&lHar;":"⥢","&lacute;":"ĺ","&laemptyv;":"⦴","&lagran;":"ℒ","&lambda;":"λ","&lang;":"⟨","&langd;":"⦑","&langle;":"⟨","&lap;":"⪅","&laquo;":"«","&larr;":"←","&larrb;":"⇤","&larrbfs;":"⤟","&larrfs;":"⤝","&larrhk;":"↩","&larrlp;":"↫","&larrpl;":"⤹","&larrsim;":"⥳","&larrtl;":"↢","&lat;":"⪫","&latail;":"⤙","&late;":"⪭","&lates;":"⪭︀","&lbarr;":"⤌","&lbbrk;":"❲","&lbrace;":"{","&lbrack;":"[","&lbrke;":"⦋","&lbrksld;":"⦏","&lbrkslu;":"⦍","&lcaron;":"ľ","&lcedil;":"ļ","&lceil;":"⌈","&lcub;":"{","&lcy;":"л","&ldca;":"⤶","&ldquo;":"“","&ldquor;":"„","&ldrdhar;":"⥧","&ldrushar;":"⥋","&ldsh;":"↲","&le;":"≤","&leftarrow;":"←","&leftarrowtail;":"↢","&leftharpoondown;":"↽","&leftharpoonup;":"↼","&leftleftarrows;":"⇇","&leftrightarrow;":"↔","&leftrightarrows;":"⇆","&leftrightharpoons;":"⇋","&leftrightsquigarrow;":"↭","&leftthreetimes;":"⋋","&leg;":"⋚","&leq;":"≤","&leqq;":"≦","&leqslant;":"⩽","&les;":"⩽","&lescc;":"⪨","&lesdot;":"⩿","&lesdoto;":"⪁","&lesdotor;":"⪃","&lesg;":"⋚︀","&lesges;":"⪓","&lessapprox;":"⪅","&lessdot;":"⋖","&lesseqgtr;":"⋚","&lesseqqgtr;":"⪋","&lessgtr;":"≶","&lesssim;":"≲","&lfisht;":"⥼","&lfloor;":"⌊","&lfr;":"𝔩","&lg;":"≶","&lgE;":"⪑","&lhard;":"↽","&lharu;":"↼","&lharul;":"⥪","&lhblk;":"▄","&ljcy;":"љ","&ll;":"≪","&llarr;":"⇇","&llcorner;":"⌞","&llhard;":"⥫","&lltri;":"◺","&lmidot;":"ŀ","&lmoust;":"⎰","&lmoustache;":"⎰","&lnE;":"≨","&lnap;":"⪉","&lnapprox;":"⪉","&lne;":"⪇","&lneq;":"⪇","&lneqq;":"≨","&lnsim;":"⋦","&loang;":"⟬","&loarr;":"⇽","&lobrk;":"⟦","&longleftarrow;":"⟵","&longleftrightarrow;":"⟷","&longmapsto;":"⟼","&longrightarrow;":"⟶","&looparrowleft;":"↫","&looparrowright;":"↬","&lopar;":"⦅","&lopf;":"𝕝","&loplus;":"⨭","&lotimes;":"⨴","&lowast;":"∗","&lowbar;":"_","&loz;":"◊","&lozenge;":"◊","&lozf;":"⧫","&lpar;":"(","&lparlt;":"⦓","&lrarr;":"⇆","&lrcorner;":"⌟","&lrhar;":"⇋","&lrhard;":"⥭","&lrm;":"‎","&lrtri;":"⊿","&lsaquo;":"‹","&lscr;":"𝓁","&lsh;":"↰","&lsim;":"≲","&lsime;":"⪍","&lsimg;":"⪏","&lsqb;":"[","&lsquo;":"‘","&lsquor;":"‚","&lstrok;":"ł","&ltcc;":"⪦","&ltcir;":"⩹","&ltdot;":"⋖","&lthree;":"⋋","&ltimes;":"⋉","&ltlarr;":"⥶","&ltquest;":"⩻","&ltrPar;":"⦖","&ltri;":"◃","&ltrie;":"⊴","&ltrif;":"◂","&lurdshar;":"⥊","&luruhar;":"⥦","&lvertneqq;":"≨︀","&lvnE;":"≨︀","&mDDot;":"∺","&macr;":"¯","&male;":"♂","&malt;":"✠","&maltese;":"✠","&map;":"↦","&mapsto;":"↦","&mapstodown;":"↧","&mapstoleft;":"↤","&mapstoup;":"↥","&marker;":"▮","&mcomma;":"⨩","&mcy;":"м","&mdash;":"—","&measuredangle;":"∡","&mfr;":"𝔪","&mho;":"℧","&micro;":"µ","&mid;":"∣","&midast;":"*","&midcir;":"⫰","&middot;":"·","&minus;":"−","&minusb;":"⊟","&minusd;":"∸","&minusdu;":"⨪","&mlcp;":"⫛","&mldr;":"…","&mnplus;":"∓","&models;":"⊧","&mopf;":"𝕞","&mp;":"∓","&mscr;":"𝓂","&mstpos;":"∾","&mu;":"μ","&multimap;":"⊸","&mumap;":"⊸","&nGg;":"⋙̸","&nGt;":"≫⃒","&nGtv;":"≫̸","&nLeftarrow;":"⇍","&nLeftrightarrow;":"⇎","&nLl;":"⋘̸","&nLt;":"≪⃒","&nLtv;":"≪̸","&nRightarrow;":"⇏","&nVDash;":"⊯","&nVdash;":"⊮","&nabla;":"∇","&nacute;":"ń","&nang;":"∠⃒","&nap;":"≉","&napE;":"⩰̸","&napid;":"≋̸","&napos;":"ʼn","&napprox;":"≉","&natur;":"♮","&natural;":"♮","&naturals;":"ℕ","&nbsp;":" ","&nbump;":"≎̸","&nbumpe;":"≏̸","&ncap;":"⩃","&ncaron;":"ň","&ncedil;":"ņ","&ncong;":"≇","&ncongdot;":"⩭̸","&ncup;":"⩂","&ncy;":"н","&ndash;":"–","&ne;":"≠","&neArr;":"⇗","&nearhk;":"⤤","&nearr;":"↗","&nearrow;":"↗","&nedot;":"≐̸","&nequiv;":"≢","&nesear;":"⤨","&nesim;":"≂̸","&nexist;":"∄","&nexists;":"∄","&nfr;":"𝔫","&ngE;":"≧̸","&nge;":"≱","&ngeq;":"≱","&ngeqq;":"≧̸","&ngeqslant;":"⩾̸","&nges;":"⩾̸","&ngsim;":"≵","&ngt;":"≯","&ngtr;":"≯","&nhArr;":"⇎","&nharr;":"↮","&nhpar;":"⫲","&ni;":"∋","&nis;":"⋼","&nisd;":"⋺","&niv;":"∋","&njcy;":"њ","&nlArr;":"⇍","&nlE;":"≦̸","&nlarr;":"↚","&nldr;":"‥","&nle;":"≰","&nleftarrow;":"↚","&nleftrightarrow;":"↮","&nleq;":"≰","&nleqq;":"≦̸","&nleqslant;":"⩽̸","&nles;":"⩽̸","&nless;":"≮","&nlsim;":"≴","&nlt;":"≮","&nltri;":"⋪","&nltrie;":"⋬","&nmid;":"∤","&nopf;":"𝕟","&not;":"¬","&notin;":"∉","&notinE;":"⋹̸","&notindot;":"⋵̸","&notinva;":"∉","&notinvb;":"⋷","&notinvc;":"⋶","&notni;":"∌","&notniva;":"∌","&notnivb;":"⋾","&notnivc;":"⋽","&npar;":"∦","&nparallel;":"∦","&nparsl;":"⫽⃥","&npart;":"∂̸","&npolint;":"⨔","&npr;":"⊀","&nprcue;":"⋠","&npre;":"⪯̸","&nprec;":"⊀","&npreceq;":"⪯̸","&nrArr;":"⇏","&nrarr;":"↛","&nrarrc;":"⤳̸","&nrarrw;":"↝̸","&nrightarrow;":"↛","&nrtri;":"⋫","&nrtrie;":"⋭","&nsc;":"⊁","&nsccue;":"⋡","&nsce;":"⪰̸","&nscr;":"𝓃","&nshortmid;":"∤","&nshortparallel;":"∦","&nsim;":"≁","&nsime;":"≄","&nsimeq;":"≄","&nsmid;":"∤","&nspar;":"∦","&nsqsube;":"⋢","&nsqsupe;":"⋣","&nsub;":"⊄","&nsubE;":"⫅̸","&nsube;":"⊈","&nsubset;":"⊂⃒","&nsubseteq;":"⊈","&nsubseteqq;":"⫅̸","&nsucc;":"⊁","&nsucceq;":"⪰̸","&nsup;":"⊅","&nsupE;":"⫆̸","&nsupe;":"⊉","&nsupset;":"⊃⃒","&nsupseteq;":"⊉","&nsupseteqq;":"⫆̸","&ntgl;":"≹","&ntilde;":"ñ","&ntlg;":"≸","&ntriangleleft;":"⋪","&ntrianglelefteq;":"⋬","&ntriangleright;":"⋫","&ntrianglerighteq;":"⋭","&nu;":"ν","&num;":"#","&numero;":"№","&numsp;":" ","&nvDash;":"⊭","&nvHarr;":"⤄","&nvap;":"≍⃒","&nvdash;":"⊬","&nvge;":"≥⃒","&nvgt;":">⃒","&nvinfin;":"⧞","&nvlArr;":"⤂","&nvle;":"≤⃒","&nvlt;":"<⃒","&nvltrie;":"⊴⃒","&nvrArr;":"⤃","&nvrtrie;":"⊵⃒","&nvsim;":"∼⃒","&nwArr;":"⇖","&nwarhk;":"⤣","&nwarr;":"↖","&nwarrow;":"↖","&nwnear;":"⤧","&oS;":"Ⓢ","&oacute;":"ó","&oast;":"⊛","&ocir;":"⊚","&ocirc;":"ô","&ocy;":"о","&odash;":"⊝","&odblac;":"ő","&odiv;":"⨸","&odot;":"⊙","&odsold;":"⦼","&oelig;":"œ","&ofcir;":"⦿","&ofr;":"𝔬","&ogon;":"˛","&ograve;":"ò","&ogt;":"⧁","&ohbar;":"⦵","&ohm;":"Ω","&oint;":"∮","&olarr;":"↺","&olcir;":"⦾","&olcross;":"⦻","&oline;":"‾","&olt;":"⧀","&omacr;":"ō","&omega;":"ω","&omicron;":"ο","&omid;":"⦶","&ominus;":"⊖","&oopf;":"𝕠","&opar;":"⦷","&operp;":"⦹","&oplus;":"⊕","&or;":"∨","&orarr;":"↻","&ord;":"⩝","&order;":"ℴ","&orderof;":"ℴ","&ordf;":"ª","&ordm;":"º","&origof;":"⊶","&oror;":"⩖","&orslope;":"⩗","&orv;":"⩛","&oscr;":"ℴ","&oslash;":"ø","&osol;":"⊘","&otilde;":"õ","&otimes;":"⊗","&otimesas;":"⨶","&ouml;":"ö","&ovbar;":"⌽","&par;":"∥","&para;":"¶","&parallel;":"∥","&parsim;":"⫳","&parsl;":"⫽","&part;":"∂","&pcy;":"п","&percnt;":"%","&period;":".","&permil;":"‰","&perp;":"⊥","&pertenk;":"‱","&pfr;":"𝔭","&phi;":"φ","&phiv;":"ϕ","&phmmat;":"ℳ","&phone;":"☎","&pi;":"π","&pitchfork;":"⋔","&piv;":"ϖ","&planck;":"ℏ","&planckh;":"ℎ","&plankv;":"ℏ","&plus;":"+","&plusacir;":"⨣","&plusb;":"⊞","&pluscir;":"⨢","&plusdo;":"∔","&plusdu;":"⨥","&pluse;":"⩲","&plusmn;":"±","&plussim;":"⨦","&plustwo;":"⨧","&pm;":"±","&pointint;":"⨕","&popf;":"𝕡","&pound;":"£","&pr;":"≺","&prE;":"⪳","&prap;":"⪷","&prcue;":"≼","&pre;":"⪯","&prec;":"≺","&precapprox;":"⪷","&preccurlyeq;":"≼","&preceq;":"⪯","&precnapprox;":"⪹","&precneqq;":"⪵","&precnsim;":"⋨","&precsim;":"≾","&prime;":"′","&primes;":"ℙ","&prnE;":"⪵","&prnap;":"⪹","&prnsim;":"⋨","&prod;":"∏","&profalar;":"⌮","&profline;":"⌒","&profsurf;":"⌓","&prop;":"∝","&propto;":"∝","&prsim;":"≾","&prurel;":"⊰","&pscr;":"𝓅","&psi;":"ψ","&puncsp;":" ","&qfr;":"𝔮","&qint;":"⨌","&qopf;":"𝕢","&qprime;":"⁗","&qscr;":"𝓆","&quaternions;":"ℍ","&quatint;":"⨖","&quest;":"?","&questeq;":"≟","&rAarr;":"⇛","&rArr;":"⇒","&rAtail;":"⤜","&rBarr;":"⤏","&rHar;":"⥤","&race;":"∽̱","&racute;":"ŕ","&radic;":"√","&raemptyv;":"⦳","&rang;":"⟩","&rangd;":"⦒","&range;":"⦥","&rangle;":"⟩","&raquo;":"»","&rarr;":"→","&rarrap;":"⥵","&rarrb;":"⇥","&rarrbfs;":"⤠","&rarrc;":"⤳","&rarrfs;":"⤞","&rarrhk;":"↪","&rarrlp;":"↬","&rarrpl;":"⥅","&rarrsim;":"⥴","&rarrtl;":"↣","&rarrw;":"↝","&ratail;":"⤚","&ratio;":"∶","&rationals;":"ℚ","&rbarr;":"⤍","&rbbrk;":"❳","&rbrace;":"}","&rbrack;":"]","&rbrke;":"⦌","&rbrksld;":"⦎","&rbrkslu;":"⦐","&rcaron;":"ř","&rcedil;":"ŗ","&rceil;":"⌉","&rcub;":"}","&rcy;":"р","&rdca;":"⤷","&rdldhar;":"⥩","&rdquo;":"”","&rdquor;":"”","&rdsh;":"↳","&real;":"ℜ","&realine;":"ℛ","&realpart;":"ℜ","&reals;":"ℝ","&rect;":"▭","&reg;":"®","&rfisht;":"⥽","&rfloor;":"⌋","&rfr;":"𝔯","&rhard;":"⇁","&rharu;":"⇀","&rharul;":"⥬","&rho;":"ρ","&rhov;":"ϱ","&rightarrow;":"→","&rightarrowtail;":"↣","&rightharpoondown;":"⇁","&rightharpoonup;":"⇀","&rightleftarrows;":"⇄","&rightleftharpoons;":"⇌","&rightrightarrows;":"⇉","&rightsquigarrow;":"↝","&rightthreetimes;":"⋌","&ring;":"˚","&risingdotseq;":"≓","&rlarr;":"⇄","&rlhar;":"⇌","&rlm;":"‏","&rmoust;":"⎱","&rmoustache;":"⎱","&rnmid;":"⫮","&roang;":"⟭","&roarr;":"⇾","&robrk;":"⟧","&ropar;":"⦆","&ropf;":"𝕣","&roplus;":"⨮","&rotimes;":"⨵","&rpar;":")","&rpargt;":"⦔","&rppolint;":"⨒","&rrarr;":"⇉","&rsaquo;":"›","&rscr;":"𝓇","&rsh;":"↱","&rsqb;":"]","&rsquo;":"’","&rsquor;":"’","&rthree;":"⋌","&rtimes;":"⋊","&rtri;":"▹","&rtrie;":"⊵","&rtrif;":"▸","&rtriltri;":"⧎","&ruluhar;":"⥨","&rx;":"℞","&sacute;":"ś","&sbquo;":"‚","&sc;":"≻","&scE;":"⪴","&scap;":"⪸","&scaron;":"š","&sccue;":"≽","&sce;":"⪰","&scedil;":"ş","&scirc;":"ŝ","&scnE;":"⪶","&scnap;":"⪺","&scnsim;":"⋩","&scpolint;":"⨓","&scsim;":"≿","&scy;":"с","&sdot;":"⋅","&sdotb;":"⊡","&sdote;":"⩦","&seArr;":"⇘","&searhk;":"⤥","&searr;":"↘","&searrow;":"↘","&sect;":"§","&semi;":";","&seswar;":"⤩","&setminus;":"∖","&setmn;":"∖","&sext;":"✶","&sfr;":"𝔰","&sfrown;":"⌢","&sharp;":"♯","&shchcy;":"щ","&shcy;":"ш","&shortmid;":"∣","&shortparallel;":"∥","&shy;":"­","&sigma;":"σ","&sigmaf;":"ς","&sigmav;":"ς","&sim;":"∼","&simdot;":"⩪","&sime;":"≃","&simeq;":"≃","&simg;":"⪞","&simgE;":"⪠","&siml;":"⪝","&simlE;":"⪟","&simne;":"≆","&simplus;":"⨤","&simrarr;":"⥲","&slarr;":"←","&smallsetminus;":"∖","&smashp;":"⨳","&smeparsl;":"⧤","&smid;":"∣","&smile;":"⌣","&smt;":"⪪","&smte;":"⪬","&smtes;":"⪬︀","&softcy;":"ь","&sol;":"/","&solb;":"⧄","&solbar;":"⌿","&sopf;":"𝕤","&spades;":"♠","&spadesuit;":"♠","&spar;":"∥","&sqcap;":"⊓","&sqcaps;":"⊓︀","&sqcup;":"⊔","&sqcups;":"⊔︀","&sqsub;":"⊏","&sqsube;":"⊑","&sqsubset;":"⊏","&sqsubseteq;":"⊑","&sqsup;":"⊐","&sqsupe;":"⊒","&sqsupset;":"⊐","&sqsupseteq;":"⊒","&squ;":"□","&square;":"□","&squarf;":"▪","&squf;":"▪","&srarr;":"→","&sscr;":"𝓈","&ssetmn;":"∖","&ssmile;":"⌣","&sstarf;":"⋆","&star;":"☆","&starf;":"★","&straightepsilon;":"ϵ","&straightphi;":"ϕ","&strns;":"¯","&sub;":"⊂","&subE;":"⫅","&subdot;":"⪽","&sube;":"⊆","&subedot;":"⫃","&submult;":"⫁","&subnE;":"⫋","&subne;":"⊊","&subplus;":"⪿","&subrarr;":"⥹","&subset;":"⊂","&subseteq;":"⊆","&subseteqq;":"⫅","&subsetneq;":"⊊","&subsetneqq;":"⫋","&subsim;":"⫇","&subsub;":"⫕","&subsup;":"⫓","&succ;":"≻","&succapprox;":"⪸","&succcurlyeq;":"≽","&succeq;":"⪰","&succnapprox;":"⪺","&succneqq;":"⪶","&succnsim;":"⋩","&succsim;":"≿","&sum;":"∑","&sung;":"♪","&sup;":"⊃","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&supE;":"⫆","&supdot;":"⪾","&supdsub;":"⫘","&supe;":"⊇","&supedot;":"⫄","&suphsol;":"⟉","&suphsub;":"⫗","&suplarr;":"⥻","&supmult;":"⫂","&supnE;":"⫌","&supne;":"⊋","&supplus;":"⫀","&supset;":"⊃","&supseteq;":"⊇","&supseteqq;":"⫆","&supsetneq;":"⊋","&supsetneqq;":"⫌","&supsim;":"⫈","&supsub;":"⫔","&supsup;":"⫖","&swArr;":"⇙","&swarhk;":"⤦","&swarr;":"↙","&swarrow;":"↙","&swnwar;":"⤪","&szlig;":"ß","&target;":"⌖","&tau;":"τ","&tbrk;":"⎴","&tcaron;":"ť","&tcedil;":"ţ","&tcy;":"т","&tdot;":" ⃛","&telrec;":"⌕","&tfr;":"𝔱","&there4;":"∴","&therefore;":"∴","&theta;":"θ","&thetasym;":"ϑ","&thetav;":"ϑ","&thickapprox;":"≈","&thicksim;":"∼","&thinsp;":" ","&thkap;":"≈","&thksim;":"∼","&thorn;":"þ","&tilde;":"˜","&times;":"×","&timesb;":"⊠","&timesbar;":"⨱","&timesd;":"⨰","&tint;":"∭","&toea;":"⤨","&top;":"⊤","&topbot;":"⌶","&topcir;":"⫱","&topf;":"𝕥","&topfork;":"⫚","&tosa;":"⤩","&tprime;":"‴","&trade;":"™","&triangle;":"▵","&triangledown;":"▿","&triangleleft;":"◃","&trianglelefteq;":"⊴","&triangleq;":"≜","&triangleright;":"▹","&trianglerighteq;":"⊵","&tridot;":"◬","&trie;":"≜","&triminus;":"⨺","&triplus;":"⨹","&trisb;":"⧍","&tritime;":"⨻","&trpezium;":"⏢","&tscr;":"𝓉","&tscy;":"ц","&tshcy;":"ћ","&tstrok;":"ŧ","&twixt;":"≬","&twoheadleftarrow;":"↞","&twoheadrightarrow;":"↠","&uArr;":"⇑","&uHar;":"⥣","&uacute;":"ú","&uarr;":"↑","&ubrcy;":"ў","&ubreve;":"ŭ","&ucirc;":"û","&ucy;":"у","&udarr;":"⇅","&udblac;":"ű","&udhar;":"⥮","&ufisht;":"⥾","&ufr;":"𝔲","&ugrave;":"ù","&uharl;":"↿","&uharr;":"↾","&uhblk;":"▀","&ulcorn;":"⌜","&ulcorner;":"⌜","&ulcrop;":"⌏","&ultri;":"◸","&umacr;":"ū","&uml;":"¨","&uogon;":"ų","&uopf;":"𝕦","&uparrow;":"↑","&updownarrow;":"↕","&upharpoonleft;":"↿","&upharpoonright;":"↾","&uplus;":"⊎","&upsi;":"υ","&upsih;":"ϒ","&upsilon;":"υ","&upuparrows;":"⇈","&urcorn;":"⌝","&urcorner;":"⌝","&urcrop;":"⌎","&uring;":"ů","&urtri;":"◹","&uscr;":"𝓊","&utdot;":"⋰","&utilde;":"ũ","&utri;":"▵","&utrif;":"▴","&uuarr;":"⇈","&uuml;":"ü","&uwangle;":"⦧","&vArr;":"⇕","&vBar;":"⫨","&vBarv;":"⫩","&vDash;":"⊨","&vangrt;":"⦜","&varepsilon;":"ϵ","&varkappa;":"ϰ","&varnothing;":"∅","&varphi;":"ϕ","&varpi;":"ϖ","&varpropto;":"∝","&varr;":"↕","&varrho;":"ϱ","&varsigma;":"ς","&varsubsetneq;":"⊊︀","&varsubsetneqq;":"⫋︀","&varsupsetneq;":"⊋︀","&varsupsetneqq;":"⫌︀","&vartheta;":"ϑ","&vartriangleleft;":"⊲","&vartriangleright;":"⊳","&vcy;":"в","&vdash;":"⊢","&vee;":"∨","&veebar;":"⊻","&veeeq;":"≚","&vellip;":"⋮","&verbar;":"|","&vert;":"|","&vfr;":"𝔳","&vltri;":"⊲","&vnsub;":"⊂⃒","&vnsup;":"⊃⃒","&vopf;":"𝕧","&vprop;":"∝","&vrtri;":"⊳","&vscr;":"𝓋","&vsubnE;":"⫋︀","&vsubne;":"⊊︀","&vsupnE;":"⫌︀","&vsupne;":"⊋︀","&vzigzag;":"⦚","&wcirc;":"ŵ","&wedbar;":"⩟","&wedge;":"∧","&wedgeq;":"≙","&weierp;":"℘","&wfr;":"𝔴","&wopf;":"𝕨","&wp;":"℘","&wr;":"≀","&wreath;":"≀","&wscr;":"𝓌","&xcap;":"⋂","&xcirc;":"◯","&xcup;":"⋃","&xdtri;":"▽","&xfr;":"𝔵","&xhArr;":"⟺","&xharr;":"⟷","&xi;":"ξ","&xlArr;":"⟸","&xlarr;":"⟵","&xmap;":"⟼","&xnis;":"⋻","&xodot;":"⨀","&xopf;":"𝕩","&xoplus;":"⨁","&xotime;":"⨂","&xrArr;":"⟹","&xrarr;":"⟶","&xscr;":"𝓍","&xsqcup;":"⨆","&xuplus;":"⨄","&xutri;":"△","&xvee;":"⋁","&xwedge;":"⋀","&yacute;":"ý","&yacy;":"я","&ycirc;":"ŷ","&ycy;":"ы","&yen;":"¥","&yfr;":"𝔶","&yicy;":"ї","&yopf;":"𝕪","&yscr;":"𝓎","&yucy;":"ю","&yuml;":"ÿ","&zacute;":"ź","&zcaron;":"ž","&zcy;":"з","&zdot;":"ż","&zeetrf;":"ℨ","&zeta;":"ζ","&zfr;":"𝔷","&zhcy;":"ж","&zigrarr;":"⇝","&zopf;":"𝕫","&zscr;":"𝓏","&zwj;":"‍","&zwnj;":"‌"};return{_entities:function(){return e},replace:function(t){return t.replace(/(&\w+;)/g,(function(t){return e[t]||t}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){e.add("linux",(function(){return window.navigator.platform.match(/linux/i)})),e.add("win",(function(){return window.navigator.platform.match(/win32|win64/i)})),e.add("qtwebkitbrowser",(function(){return window.navigator.userAgent.toLowerCase().indexOf("matlab")>=0}))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=["aa","AA","ae","AE","aleph","alpha","amalg","angle","approx","ast","asymp","backslash","beta","bigcap","bigcup","biguplus","bigvee","bigwedge","bigodot","bigoplus","bigotimes","bigsqcup","bigtriangleup","bigtriangledown","bigcirc","bot","bowtie","bullet","cap","cdot","cdotp","cdots","chi","circ","colon","cong","cup","dagger","ddagger","dashv","ddots","delta","Delta","diamond","div","doteq","dots","downarrow","Downarrow","ell","emptyset","equiv","epsilon","eta","exists","forall","Gamma","gamma","ge","geq","gets","gg","gt","hbar","hookleftarrow","hookrightarrow","i","iff","Im","imath","in","infty","int","intbar","intop","iota","j","jmath","kappa","l","L","lambda","Lambda","land","langle","lbrace","lbrack","llbracket","lceil","ldotp","ldots","le","leq","leadsto","leftarrow","Leftarrow","leftrightarrow","Leftrightarrow","leftharpoondown","leftharpoonup","lfloor","ll","lnot","longleftarrow","Longleftarrow","longleftrightarrow","Longleftrightarrow","longmapsto","longrightarrow","Longrightarrow","lor","lt","mapsto","mid","models","mp","mu","nabla","ne","neq","neg","nearrow","nwarrow","ni","notin","nu","o","O","odot","oe","OE","oint","omega","Omega","omicron","ominus","oplus","otimes","oslash","owns","parallel","partial","perp","pi","Pi","phi","Phi","psi","Psi","pm","prec","preceq","prime","propto","prod","rangle","rbrace","rbrack","rrbracket","rceil","Re","rfloor","rho","rightarrow","Rightarrow","rightharpoondown","rightharpoonup","rightleftharpoons","s","sigma","searrow","setminus","Sigma","sim","simeq","sqcap","sqcup","sqsubseteq","sqsupseteq","ss","star","subset","subseteq","succ","succeq","sum","supset","supseteq","surd","swarrow","tau","theta","therefore","Theta","times","to","top","triangle","triangleq","triangleleft","triangleright","uplus","upsilon","Upsilon","uparrow","Uparrow","updownarrow","Updownarrow","varepsilon","varphi","varpi","varrho","varsigma","vartheta","vdash","vdots","vee","vert","Vert","wedge","wp","wr","xi","Xi","zeta"],t={};return e.forEach((function(e){t[e]=!0}),e),t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(580),i(523),i(494),i(472)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e){e=e||{},this.className="MathFenced",this.open=e.open||"(",this.close=e.close||")"},_exportMathML:function(e){var t=o.startTag(e,"mfenced",this,["open","close"]);return this.children.forEach((function(i){t+=i._exportMathML(e)})),t+=o.endTag("mfenced")},_exportLaTeX:function(e){var t=this.open?this.open:".";t="{"===t?"\\{":t;var i=this.close?this.close:".";i="}"===i?"\\}":i;var o="{\\left"+t,r=e.addBraces;return e.openParens=0,e.addBraces=n.NEVER_ADD_BRACES,this.children.forEach((function(t){o+=n.exportChild(t,e)})),o+="\\right"+i+"}",e.addBraces=r,o},layout:function(e){var t=e.layoutChildren(this.children),n=t[0],o=e.parseBoxes("h{s1s}",t),r=o.templateParts,a=r[1],s=r[2];return a.setSymbolName(this.open),a.resizeAndCenterDelimiter(e,n.ascent(),n.descent()),s.setSymbolName(this.close),s.resizeAndCenterDelimiter(e,n.ascent(),n.descent()),e.computeTemplateMetrics(r),o.spacing=i.NEST,a.spacing=i.OPEN,s.spacing=i.CLOSE,o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(580),i(523),i(494),i(472)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e){e=e||{},this.className="MathFraction",this.bevelled=e.bevelled||!1,this.linethickness=e.hasOwnProperty("linethickness")?e.linethickness:""},_exportMathML:function(e){var t=[];this.bevelled&&t.push("bevelled"),""!==this.linethickness&&t.push("linethickness");var i=o.startTag(e,"mfrac",this,t);return this.children.forEach((function(t){i+=t._exportMathML(e)})),i+=o.endTag("mfrac")},_exportLaTeX:function(e){var t=e.addBraces;e.addBraces=n.ALWAYS_ADD_BRACES;var i="",o=n.exportChild(this.children[0],e),r=n.exportChild(this.children[1],e);return i=""!==this.linethickness&&0===parseFloat(this.linethickness)?"{"+o+"\\atop"+r+"}":"\\frac"+o+r,e.addBraces=t,i},_layoutRegularFraction:function(e,t){var n,o=t.mathAxis(),r=t.barHeight(),a=t.parseBoxes("v{1wrw2}",e),s=a.templateParts,l=parseFloat(this.linethickness);return isNaN(l)&&(l=r),s[1].length=r,s[3].length=r,s[2].thickness=l,s[0].alignment="c",t.computeTemplateMetrics(s),n=e[0].height()+o-r,a.setAscent(n),a.spacing=i.INNER,a},_placeFractionBar:function(e,t,i,n,o){e.setSymbolName("/"),e.resizeAndCenterDelimiter(t,i*(2/3),n*(2/3)),e.setAscent(e.height()/3+o),e.setWidth(t.emToPx(.1)),e.setLeft(-Math.floor((e.precomputedWidth-e.width())/1.5))},_layoutBevelledFraction:function(e,t){var i=t.parseBoxes("h{v{1}v{s}v{2}}",e),n=i.templateParts,o=n[1],r=n[2],a=n[3],s=n[4],l=t.mathAxis()/2,c=e[0].height(),d=e[1].height();return this._placeFractionBar(n[3],t,c,d,l),o.computeMetrics(),o.setDescent(0),r.computeMetrics(),r.setAscent(a.ascent()),s.computeMetrics(),s.setAscent(0),i.computeMetrics(),i},layout:function(e){var t=e.layoutChildren(this.children);return this.bevelled?this._layoutBevelledFraction(t,e):this._layoutRegularFraction(t,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1354),i(580),i(472),i(494)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e){this.className="MathMatrix",this.rows=e.rows,this.cols=e.cols,e.frame?(this.frameTop=e.frame,this.frameRight=e.frame,this.frameBottom=e.frame,this.frameLeft=e.frame,this.frame=e.frame):(this.frameTop=e.frameTop?t.SOLID_LINE:t.NO_LINE,this.frameRight=e.frameRight?t.SOLID_LINE:t.NO_LINE,this.frameBottom=e.frameBottom?t.SOLID_LINE:t.NO_LINE,this.frameLeft=e.frameLeft?t.SOLID_LINE:t.NO_LINE),this.colspec=e.colspec||"c",this.columnlines=e.columnlines&&e.columnlines.length?e.columnlines:[t.NO_LINE],this.rowlines=e.rowlines&&e.rowlines.length?e.rowlines:[t.NO_LINE]},setRowLines:function(e){this.rowlines=e},setFrame:function(e,i,n,o){this.frameTop=e?t.SOLID_LINE:t.NO_LINE,this.frameRight=i?t.SOLID_LINE:t.NO_LINE,this.frameBottom=n?t.SOLID_LINE:t.NO_LINE,this.frameLeft=o?t.SOLID_LINE:t.NO_LINE,o&&e&&i&&n&&(this.frame=t.SOLID_LINE)},_exportMathML:function(e){var i=[],o=this.colspec,r=!1;if(""!==o){for(var a="",s=0;s<o.length;s+=1)switch(o.charAt(s)){case"a":case"c":a+=" center";break;case"l":a+=" left";break;case"r":a+=" right";break;case"d":a+=" decimalpoint",r=!0}a=a.slice(1),r?(this.groupalign=a,i.push("groupalign")):(this.columnalign=a,i.push("columnalign"))}this.frame&&i.push("frame"),(this.rowlines.length>1||this.rowlines.length&&this.rowlines[0]!==t.NO_LINE)&&i.push("rowlines"),(this.columnlines.length>1||this.columnlines.length&&this.columnlines[0]!==t.NO_LINE)&&i.push("columnlines");for(var l=n.startTag(e,"mtable",this,i),c=0;c<this.rows;c+=1){l+=n.startTag(e,"mtr",this);for(var d=0;d<this.cols;d+=1)l+=n.startTag(e,"mtd",this),l+=this.children[c*this.cols+d]._exportMathML(e),l+=n.endTag("mtd");l+=n.endTag("mtr")}return l+=n.endTag("mtable")},_canSplit:function(e,t){var i=-1,n=[e,""];if("d"===t)i=e.indexOf(".");else if("a"===t){var o,r,a;o=e.indexOf("="),r=e.indexOf("<"),a=e.indexOf(">"),i=Math.max(o,r,a),i=o>-1&&o<i?o:i,i=r>-1&&r<i?r:i,i=a>-1&&a<i?a:i}return-1!==i&&(n=[e.slice(0,i),e.slice(i)]),n},_fillLinesAttribute:function(e,t){if(e.length<t){var i=e[e.length-1],n=new Array(t+1-e.length);n=n.map((function(){return i})),e=e.concat(n)}return e},_exportChildrenToLaTeX:function(e){var i,n,r,a=new Array(this.rows),s=new Array(this.cols),l=this.colspec||"c";if(l.length<this.cols){var c=l[l.length-1];l+=new Array(this.cols-l.length+1).join(c)}for(i=0;i<this.cols;i+=1)s[i]="a"===l[i]||"d"===l[i];for(n=0;n<this.rows;n+=1)for(a[n]=new Array(this.cols),i=0;i<this.cols;i+=1)r=[o.exportChild(this.children[n*this.cols+i],e)],s[i]&&(r=this._canSplit(r[0],l[i]),s[i]&=""!==r[1]),a[n][i]=r;l=l.split("");var d=this._fillLinesAttribute(this.columnlines,this.cols-1);for(i=0;i<this.cols;i+=1)"a"===l[i]||"d"===l[i]?s[i]?l[i]="rl":l[i]="c":d[i]===t.SOLID_LINE&&(l[i]+="|");return{entries:a,colNeedsSplit:s,colspec:l.join("")}},_exportLaTeX:function(e){var i,n,o=e.addBraces;e.addBraces="never";var r=this._exportChildrenToLaTeX(e);(this.frameLeft===t.SOLID_LINE||this.frame===t.DASHED_LINE)&&(r.colspec="|"+r.colspec),(this.frameRight===t.SOLID_LINE||this.frame===t.DASHED_LINE)&&(r.colspec+="|");var a=this.frameTop===t.SOLID_LINE||this.frame===t.DASHED_LINE,s="\\begin{array}{"+r.colspec+"}\n";a&&(s+="\\hline\n");var l=this._fillLinesAttribute(this.rowlines,this.rows-1);for(n=0;n<this.rows;n+=1){for(n&&l[n-1]===t.SOLID_LINE&&(s+="\\hline\n"),i=0;i<this.cols;i+=1)r.colNeedsSplit[i]?s+=r.entries[n][i].join("\\kern -0.8em&"):s+=r.entries[n][i].join(""),s+=i<this.cols-1?" & ":"";s+=n<this.rows-1?"\\\\\n":"\n"}return(this.frameBottom===t.SOLID_LINE||this.frame===t.DASHED_LINE)&&(s=s.slice(0,-1)+"\\\\\n\\hline\n"),s+="\\end{array}",e.addBraces=o,s},_initColSpec:function(e){var t,i,n=this.colspec||"c";return n.length<e&&(t=n.charAt(n.length-1),i=e-n.length+1,n+=new Array(i).join(t)),n},_initWorkData:function(e,i,n,o){var r,a,s=o.renderer,l={rowAscent:[],rowDescent:[],columnspacing:Math.ceil(o.emToPx(.8)),rowspacing:Math.ceil(o.emToPx(.4)),horizontalFramespacing:Math.ceil(o.emToPx(.4)),verticalFramespacing:Math.ceil(o.emToPx(.5*s.fontXHeight)),barHeight:o.barHeight()},c=l.rowspacing/2,d=this.frameTop===t.NO_LINE?0:l.verticalFramespacing,u=this.frameBottom===t.NO_LINE?0:l.verticalFramespacing;for(r=n-1;r>=0;r-=1)a=0===r?d:c,l.rowAscent[r]=Math.ceil(o.emToPx(s.fontAscent)+a),a=r===n-1?u:c,l.rowDescent[r]=Math.ceil(o.emToPx(s.fontDescent)+a);return l},_setColumnAlignment:function(e,t,i,n,o){var r,a=this._initColSpec(i);for(r=0;r<t.length;r+=1)t[r]=this._setOneColumnAlignment(e,t[r],n,a.charAt(r),o)},_setOneColumnAlignment:function(e,t,i,n,o){var r,a=null;if("l"===n||"r"===n||"c"===n)return t.alignment=n,t;if(1===i)return t;if("d"!==n&&"a"!==n&&""!==n)throw new Error("unknown alignment "+n);return(a=this._splitColumn(e,t,i,n,o))?((r=o.parseBoxes("h{*}",a)).computeMetrics(),r):t},_getSplitInfo:function(e,t,i){var n,o,r=[];for(n=0;n<i;n+=1){if(!(o=e.children[n].findAlignmentPoint(t,[])))return null;r.push(o)}return r},_newTableEntryBox:function(e,t){return e.parseBoxes("h{wv{}1w}",[t])},_splitColumn:function(e,t,i,n,o){var r,a,s,l,c,d,u="d",h=[];if("a"===n&&(u="="),!(r=this._getSplitInfo(t,u,i)))return null;for(a=0;a<i;a+=1)s=t.children[a],r[a]&&(c=s.splitAt(r[a]),l=this._newTableEntryBox(o,c.right)),h.push(l);return d=o.parseBoxes("v{*}",h),this._setOneColumnEntrySizes(e,0,[d],1,i,!0),d.computeMetrics(),t.alignment="r",d.alignment="l",[t,d]},_computeEntrySizes:function(e,i,n,o){var r,a,s,l,c,d=this.frameTop===t.NO_LINE?0:e.verticalFramespacing,u=this.frameBottom===t.NO_LINE?0:e.verticalFramespacing,h=e.rowspacing/2;for(a=n-1;a>=0;a-=1)for(s=i[a].children,r=o-1;r>=0;r-=1)l=s[r].children[2],c=0===r?d:h,e.rowAscent[r]=Math.max(e.rowAscent[r],Math.ceil(l.ascent()+c)),c=r===o-1?u:h,e.rowDescent[r]=Math.max(e.rowDescent[r],Math.ceil(l.descent()+c))},_setOneColumnEntrySizes:function(e,i,n,o,r,a){var s,l,c,d=n[i],u=a?0:e.columnspacing/2,h=this.frameLeft!==t.NO_LINE?e.horizontalFramespacing:0,p=this.frameRight!==t.NO_LINE?e.horizontalFramespacing:0,f=this._fillLinesAttribute(this.columnlines,this.cols-1);for(s=r-1;s>=0;s-=1)(c=(l=d.children[s]).templateParts)[1].length=0===i?h:u,c[1].computeMetrics(),c[2].setMetrics({ascent:e.rowAscent[s],descent:e.rowDescent[s]}),c[3].length=i===o-1?p:u,c[3].computeMetrics(),f&&f[i]!==t.NO_LINE&&(l.borderRightWidth=e.barHeight,l.borderRightStyle=f[i]),l.computeMetrics();d.computeMetrics()},_setEntrySizes:function(e,t,i,n){var o;for(o=0;o<i;o+=1)this._setOneColumnEntrySizes(e,o,t,i,n)},_addFrame:function(e,i){!this.frame||this.frameTop===t.NO_LINE&&this.frameRight===t.NO_LINE&&this.frameBottom===t.NO_LINE&&this.frameLeft===t.NO_LINE||(e.borderStyle=this.frameTop+" "+this.frameRight+" "+this.frameBottom+" "+this.frameLeft,e.borderWidth=i.barHeight())},_setTableData:function(e,t){var i=e.children[0].children,n=i.length,o=i[0].children.length,r=this._initWorkData(i,n,o,t);this._computeEntrySizes(r,i,n,o),this._setEntrySizes(r,i,n,o),this._setColumnAlignment(r,i,n,o,t),this._addFrame(e,t),e.children[0].computeMetrics(),e.computeMetrics()},_insertRowLines:function(e,i){var n,o,r,a,s=e.children[0].children;a=i.barHeight();var l=this._fillLinesAttribute(this.rowlines,this.rows-1);for(o=0;o<this.cols;o+=1)for(n=this.rows-1;n>0;n-=1)l[n-1]===t.SOLID_LINE&&((r=i.parseBoxes("r",null)).thickness=a,r.computeMetrics(),s[o].children.splice(n,0,r));e.children[0].computeMetrics(),e.computeMetrics()},_makeTableBox:function(e,t,i){var n,o,r,a,s=[];for(o=this.cols-1;o>=0;o-=1){for(r=[],n=this.rows-1;n>=0;n-=1)a=t[n*this.cols+o],r[n]=this._newTableEntryBox(i,a);s[o]=i.parseBoxes("v{*}",r)}return i.parseBoxes("v{h{*}}",s)},layout:function(e){var t=this.children,i=e.layoutChildren(this.children),n=this._makeTableBox(t,i,e);return this.children.length>0&&(this._setTableData(n,e),this._insertRowLines(n,e),this.rows>1&&n.centerAt(e.mathAxis())),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(580),i(494),i(472)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e){this.className="MathMultiScript",e=e||{},this.numPostPairs=e.numPostPairs||0},_exportChildToMathML:function(e,t){return t?t._exportMathML(e):n.emptyTag("none")},_exportMathML:function(e){var t,i=n.startTag(e,"mmultiscripts",this),o=this.children,r=this.numPostPairs,a=Math.floor((o.length-1-2*r)/2);for(i+=this._exportChildToMathML(e,o[0]),t=1;t<2*r+1;t+=1)i+=this._exportChildToMathML(e,o[t]);if(a)for(i+=n.emptyTag("mprescripts"),t=2*r+1;t<o.length;t+=1)i+=this._exportChildToMathML(e,o[t]);return i+=n.endTag("mmultiscripts")},_exportChildrenToLaTeX:function(e,t,n,o){var r=null!==t?i.exportChild(t,e):"{}",a=i.exportChild(n,e),s=i.exportChild(o,e);return r+=s?"^"+s:"",r+=a?"_"+a:""},_exportLaTeX:function(e){var t,i="",n=this.children,o=this.numPostPairs;if(Math.floor((n.length-1-2*o)/2))for(t=2*o+1;t<n.length;t+=2)i+=this._exportChildrenToLaTeX(e,null,n[t],n[t+1]);if(o)for(i+=this._exportChildrenToLaTeX(e,n[0],n[1],n[2]),t=3;t<2*o+1;t+=2)i+=this._exportChildrenToLaTeX(e,null,n[t],n[t+1]);else i+=this._exportChildrenToLaTeX(e,n[0],null,null);return i},_makeOneMultiScriptBox:function(e,t,i,n){var o;return(o=!!t&&!!i?e.parseBoxes("v{2w1}",[t,i]):e.parseBoxes("v{21}",[t,i])).alignment=n,o},_makeMultiScriptBoxes:function(e,t,i,n){var o,r=1,a=[];for(a[i]=e[0],o=0;o<n;o+=1,r+=2)a[i+1+o]=this._makeOneMultiScriptBox(t,e[r],e[r+1],"l");for(o=0;o<i;o+=1,r+=2)a[o]=this._makeOneMultiScriptBox(t,e[r],e[r+1],"r");return t.parseBoxes("h{*}",a)},_fillSizesAndScripts:function(e,t,i,n,o){var r,a,s=1+2*i;for(r=0;r<t+i;r+=1)n.push(-1),n.push(1),r===t&&(s=1,o.push(0)),a=0,e[s]&&(a=2),e[s+1]&&(a+=1),o.push(a),s+=2},layout:function(e){var t,i,n=this.children,o=this.numPostPairs,r=Math.floor((n.length-1-2*o)/2),a=[0],s=[];return this._fillSizesAndScripts(n,r,o,a,s),t=e.layoutChildren(n,{sizes:a}),(i=this._makeMultiScriptBoxes(t,e,r,o)).setMultiScriptData(e,r,s),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(580),i(523),i(494),i(472)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e){e=e||{},this.className="MathRadical"},_exportMathML:function(e){var t=this.children[1],i=null===t||t.children&&0===t.children.length,n=i?"msqrt":"mroot",r=o.startTag(e,n,this);return r+=this.children[0]._exportMathML(e),i||(r+=this.children[1]._exportMathML(e)),r+=o.endTag(n)},_exportLaTeX:function(e){var t=e.addBraces,i=this.children[1],o="\\sqrt";return null===i||i.children&&0===i.children.length||(e.addBraces=n.NEVER_ADD_BRACES,o+="["+n.exportChild(this.children[1],e)+"]"),e.addBraces=n.ALWAYS_ADD_BRACES,o+=n.exportChild(this.children[0],e),e.addBraces=t,o},_layoutSqrt:function(e,t){var n=e.parseBoxes("h{v{s}v{rw1}}",t),o=n.templateParts,r=e.barHeight(),a=t[0],s=0,l=o[s+=1],c=o[s+=1],d=o[s+=1],u=s;o[s+=1].thickness=r;var h=a.ascent()+2*r;c.setSymbolName("radical"),c.alignment="r",c.resizeStretchBox(e,h,a.descent()-e.emToPx(e.renderer.fontDescent));var p=o[s+=1];return p.length=r,e.computeTemplateMetrics(o,u),d.setAscent(a.ascent()+p.length+r),d.computeMetrics(),l.computeMetrics(),l.setAscent(d.ascent()),n.computeMetrics(),n.spacing=i.INNER,n},_layoutNthRoot:function(e,t){var n,o,r,a,s,l,c,d,u,h,p,f,g,m,_=t[0],v=e.emToPx(1),b=e.barHeight(),y=b,C=_.ascent()+b+y,T=0;return a=(r=(o=e.parseBoxes("h{v{h{2w}wv{s}}v{rw1}}",t)).templateParts)[T+=1],(g=r[T+=1]).computeMetrics(),(p=r[T+=1]).horizontal=!0,p.length=v/4,p.computeMetrics(),f=r[T+=1],(h=r[T+=1]).alignment="r",s=r[T+=1],l=r[T+=1],m=T,c=r[T+=1],d=r[T+=1],c.thickness=y,s.setSymbolName("radical"),s.alignment="r",s.resizeStretchBox(e,C,_.descent()),u=s.height()-b-y-_.height(),d.length=b+u/2,e.computeTemplateMetrics(r,m),s.setAscent(l.height()-u/2),h.computeMetrics(),n=h.height()/2<g.height()?-h.height()/2:h.height()/3,n=-2*y,f.length=-n,f.computeMetrics(),a.computeMetrics(),a.setAscent(l.ascent()+g.height()-n),o.computeMetrics(),o.spacing=i.INNER,o},layout:function(e){var t=e.layoutChildren(this.children,{sizes:[0,1]}),i=t[1];return 0===i.ascent()&&0===i.descent()?this._layoutSqrt(e,t):this._layoutNthRoot(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(580),i(494)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){e=e||{},this.className="MathRoot",this.inline=e.inline,this.foundEncodingIssues=e.foundEncodingIssues},_exportMathML:function(e){var t="";return this.children.forEach((function(i){t+=i._exportMathML(e)})),t},_exportLaTeX:function(e){var t="";return e.addBraces=i.NEVER_ADD_BRACES,this.children.forEach((function(n){t+=i.exportChild(n,e)})),t},isDisplaystyle:function(){var e=!1;return!0!==this.inline&&!1!==this.inline||(e=!this.inline),!0!==this._displaystyle&&!1!==this._displaystyle||(e=this._displaystyle),e},layout:function(e){var t;return this._displaystyle=!1,!0!==this.inline&&!1!==this.inline||(this._displaystyle=!this.inline),!0!==e.displaystyle&&!1!==e.displaystyle||(this._displaystyle=e.displaystyle),t=e.layoutChildren(this.children),e.parseBoxes("h{*}",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(580),i(400),i(494),i(472),i(802),i(911)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(t,{constructor:function(e){e=e||{},this.className="MathScript",this.limitStyle=e.limitStyle||"auto";var t=e.accent;this.accent=!0===t||!1===t?t:"auto",t=e.accentunder,this.accentunder=!0===t||!1===t?t:"auto"},_exportMathML:function(e){var t="m",i=[],n=this.children[0],r=this.children[1],a=this.children[2];this.isStacked()?(t+=r?"under":"",t+=a?"over":"","auto"!==this.accent&&i.push("accent"),"auto"!==this.accentunder&&i.push("accentunder")):(t+=r?"sub":"",t+=a?"sup":"");var s="";return"m"===t?n._exportMathML(e):(s=o.startTag(e,t,this,i),s+=n._exportMathML(e),r&&(s+=r._exportMathML(e)),a&&(s+=a._exportMathML(e)),s+=o.endTag(t))},isStacked:function(){var e=this.children[0],t=this.children[1],i=this.children[2],n="auto"===this.limitStyle&&this.isDisplaystyle()&&this._movableLimits(e),o="stack"===this.limitStyle||n,r=i&&i.getAccent()||t&&t.getAccent();return o||r},_exportLaTeX:function(e){var t=e.addBraces,i=this.children[0],o=this.children[1];o&&o.children&&0===o.children.length&&(o=null);var r=o&&o.getAccent(),s=this.children[2];s&&s.children&&0===s.children.length&&(s=null);var l=s&&s.getAccent(),c=this.isStacked();e.addBraces=n.ADD_BRACES_WHERE_NEEDED;var d=n.exportChild(i,e),u=d.match(/^{(\\[A-Za-z]+) }$/),h=!(u&&-1!==a.allFunctionNames.indexOf(u[1].slice(1))),p=n.exportChild(o,e),f=n.exportChild(s,e);if(c&&h){if(u&&(d=u[0].replace(" ","")),d.length<=1&&(d="{"+d+"}"),o){p.length<=1&&(p="{"+p+"}");var g={macron:"\\underline",underbrace:"\\underbrace"};d=r&&this.accentunder&&g.hasOwnProperty(r.symbolName)?g[r.symbolName]+d:"\\underset"+p+d,d=s?"{"+d+"}":d}if(s){f.length<=1&&(f="{"+f+"}");var m={macron:"\\bar",overbrace:"\\overbrace",circumflex:"\\hat",breve:"\\breve",grave:"\\grave",dotabove:"\\dot",caron:"\\check",acute:"\\acute",sim:"\\tilde",rightarrow:"\\vec",diaresis:"\\ddot",tripledot:"\\dddot",dotdot:"\\ddddot"};l&&l.stretchy&&(m.circumflex="\\widehat",m.sim="\\widetilde",m.macron="\\overline",m.leftarrow="\\overleftarrow",m.rightarrow="\\overrightarrow",m.leftrightarrow="\\overleftrightarrow"),d=l&&this.accent&&m.hasOwnProperty(l.symbolName)?m[l.symbolName]+d:"\\overset"+f+d}}else u&&(d=u[1]),d+=p&&"{}"!==p?"_"+p:"","'"!==f&&"′"!==f||(f="{"+f+"}"),d+=f&&"{}"!==f?"^"+f:"";return e.addBraces=t,d+" "},_makeNoLimitsScriptBoxes:function(e,t){var i,n=r.isNonEmptyRow(this.children[1]),o=r.isNonEmptyRow(this.children[2]);return(i=n&&o?t.parseBoxes("h{1v{3w2}}",e):t.parseBoxes("h{1v{23}}",e)).templateParts[1].alignment="l",i},_movableLimits:function(e){var t,n,o;if(e.movableLimits)return!0;if((t=e.children)&&1===t.length){if((n=t[0]).movableLimits)return!0;if(n.symbolName&&(o=i.getSymbol(n.symbolName))&&o.movableLimits)return!0}return!1},isItalicText:function(e){var t=this.children[0];return!0===this.accent&&t.isItalicText(e)},layout:function(e){var t=this.children[0],i=!1,n=this.accentunder,o=this.accent,a=this.children[1];"auto"===n&&(n=a&&null!==a.getAccent());var s=this.children[2];"auto"===o&&(o=s&&null!==s.getAccent());var l=[0,n?0:-1,o?0:1];t&&1===t.children.length&&(i=t.children[0].isItalicText(e.mathvariant));var c=e.layoutChildren(this.children,{length:1,sizes:l}),d=c[0],u=0,h=0;d&&(u=d.subLeftShift+(i?d.rightItalicCorrection()/2:0),h=d.supRightShift),s&&(s.baseIsItalic=i,s.rightShift=o?0:h,s.accentType=o?"topaccent":"supscript"),a&&(a.baseIsItalic=i,a.leftShift=n?0:u,a.accentType=n?"bottomaccent":"subscript"),c=e.layoutChildren(this.children,{startIdx:1,sizes:l,boxes:c});var p,f=r.isNonEmptyRow(a),g=r.isNonEmptyRow(s);return this.isStacked()?(p=f?g?e.parseBoxes("v{3w1w2}",c):e.parseBoxes("v{1w2}",c):e.parseBoxes("v{3w1}",c)).setLimitsScriptData(e,c,f,n,g,o):(p=this._makeNoLimitsScriptBoxes(c,e)).setNoLimitsScriptData(e,c),1===c[0].children.length&&(p.spacing=c[0].children[0].spacing),p.setBelowXheight(d&&d.belowXheight()&&!s),p}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1091),i(472)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){e=e||{},this.className="MathSpace",this.length=e.length||0,this.width=this.length+"em"},_exportMathML:function(e){var t=i.startTag(e,"mspace",this,["width"]);return t+=i.endTag("mspace")},_exportLaTeX:function(e){var t="",i=18*this.length;if(i<0)for(;i<-3;)t+="\\!",i+=3;else{[[9,"~"],[5,"\\;"],[4,"\\:"],[3,"\\,"]].forEach((function(e){for(;i>=e[0];)t+=e[1],i-=e[0]}))}return t},layout:function(e){var t=e.parseBoxes("w",[]);return t.length=e.emToPx(this.length),t.horizontal=!0,t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(580),i(494),i(472)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e){e=e||{},this.className="MathStyle",this.scriptlevel=e.scriptlevel,this.displaystyle=e.displaystyle,e.mathsize&&"pt"===e.mathsize.slice(-2)&&(this.mathsize=e.mathsize)},_exportMathML:function(e){var t=o.startTag(e,"mstyle",this,["scriptlevel","displaystyle","mathsize"]);return this.children.forEach((function(i){t+=i._exportMathML(e)})),t+=o.endTag("mstyle")},_exportLaTeX:function(e){var i="",o=e;return this.mathvariant&&(o=t.mixin({},e,{mathvariant:this.mathvariant})),this.children.forEach((function(e){i+=n.exportChild(e,o)})),i},isItalicText:function(e){var t;return t=this.children&&1===this.children.length&&this.children[0],(!(e=this.mathvariant||e)||this._mathvariantIsItalic(e))&&t&&t.isItalicText(e)},layout:function(e){var t=e.applyStyleAttributes(this),i=e.layoutChildren(this.children),n=e.parseBoxes("h{*}",i);return n.computeMetrics(),e.applyStyleAttributes(t),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(245)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(null,{constructor:function(){window.DOMParser&&(this._parser=new window.DOMParser),this._IEparser=null,!this._parser&&t("ie")&&(this._IEparser=new window.ActiveXObject("Microsoft.XMLDOM"),this._IEparser.async=!1)},parseString:function(e){var t;try{this._parser?(t=this._parser.parseFromString(e,"application/xml"))&&t.getElementsByTagName("parsererror").length>0&&(t=null):t=this._parseUsingIE(e)}catch(e){t=null}return t},_parseUsingIE:function(e){var t=null,i=this._IEparser;return i&&(i.loadXML(e),t=i),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(578)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t,i){this.rules=t,this.names=e,this.root=i},_myStrcmp:function(e,i,n,o,r){var a,s="";if(n+r>i)return!1;for(e=e.substring(n,n+r),a=0;a<r;a+=1)s+=t.fromCodePoint(o[a]);return e===s},recordRule:function(e,t,i,n,o,r,a){var s=a.length;e[i-1]=0===t&&1===s?a:[{name:n,start:o,end:r,children:a}]},joinRecords:function(e,t){var i,n=e.length;0===n&&console.log("empty record list"),i=e.pop(),n>1&&i.length>0&&t&&(e[n-2]=e[n-2].concat(i))},pretty:function(e,t,i,n){var o,r,a,s;if(n=n||"long",o=i=i||"",e&&e.children)if(r=e.children,o+="short"===n?"(":""+this.names[e.name],"long"===n&&((s=t.substring(e.start,e.end).replace(/\n/g,"\\n")).length>25&&(s=s.substring(0,10)+"..."+s.substring(-10)),o+=" '"+s+"'\n"),0===r.length&&"short"===n)o+=" "+e.start.toString()+" "+e.end.toString()+")";else{for(a=0;a<r.length;a+=1)o+="long"===n?this.pretty(r[a],t,i+" ",n):" "+this.pretty(r[a],t,i,n);o+="short"===n?")":""}return o},parse:function(e){var i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y=this.rules,C=this.root,T=e.length,E=0,S=0,w=[],I=[],A=[],x=[],N=!0,L=[],D=0;for(I.push(0,0,C),x.push(L),n=(i=y[C]).length;I.length>0;){if((D+=1)>1e6)return console.log("Failed to parse LaTeX string "+e),null;if(r=I.length,S>=n)r>3&&(n=(i=y[I[r-4]]).length,S=I[r-2],o=w.pop(),N||(E=o),this.joinRecords(x,N)),I.pop(),I.pop(),I.pop(),r=I.length;else switch(o=0,a=i[S]){case 0:w.push(E),x.push(L),S+=1;break;case 1:o=w.pop(),N||(E=o),this.joinRecords(x,N),S+=1;break;case 2:s=i[S+1]-1,S+=2,n=(i=y[s]).length,w.push(E),x.push(L),I.push(E,S,s),S=0;break;case 3:l=i[S+1],(N=this._myStrcmp(e,T,E,i.slice(S+2),l))&&(E+=l),S+=l+2;break;case 4:o=w.pop(),N||(E=o),this.joinRecords(x,N),N=!0,S+=1;break;case 5:N&&w[w.length-2]>0?(S+=i[S+1],w[w.length-1]=E):N?(S+=i[S+1],w[w.length-1]=E,w[w.length-2]=1,this.joinRecords(x,N),x.push(L)):(S+=2,E=w[w.length-1],N=w[w.length-2]>0,w.pop(),w.pop(),this.joinRecords(x,N));break;case 6:this.joinRecords(x,N),N?(S+=i[S+1],w[w.length-1]=E,x.push(L)):(S+=2,E=w.pop(),N=!0);break;case 7:case 8:7===a&&(N=!N),E=w.pop(),this.joinRecords(x,!1),S+=1;break;case 9:w.push(0),S+=1;break;case 10:this.joinRecords(x,N),N?(S+=2,x.push(L)):(E=w.pop(),S+=i[S+1]);break;case 11:this.joinRecords(x,N),N?(w.pop(),S+=i[S+1]):(S+=2,x.push(L));break;case 12:case 15:E>=T?N=!1:(c=t.fromCodePoint(i[S+1]),N=e[E]===c),N&&(E+=1),S+=2;break;case 13:N&&(d=i[S+1],u=I[I.length-1],h=0,w.length>0&&(h=w[w.length-1]),f=x[(p=x.length)-1],this.recordRule(x,d,p,u,h,E,f)),S+=2;break;case 14:N=!0,S+=1;break;case 16:case 17:if(g=S+2,S+=2+2*(l=i[S+1]),E>=T)N=!1;else{for(m=e.charCodeAt(E),N=!1;l&&!N;)l-=1,_=i[g],v=i[g+=1],g+=1,N=m>=_&&m<=v;17===a&&(N=!N)}N&&(E+=1);break;case 18:N?(A.push(e),b=w[w.length-1],e=e.substring(b),T=E-b,E=0,S+=2):(S+=3+i[S+1],E=w.pop(),this.joinRecords(x,N));break;case 19:o=w.pop(),E===T&&N?(E=o,N=!1):(E=o+T,N=!0),T=(e=A.pop()).length,this.joinRecords(x,!1),S+=1;break;case 21:(N=E<T)&&(E+=1),S+=1;break;case 26:N=E===T,S+=1;break;default:console.log("not done "+String(a))}}return N&&x.length>0&&x[0].length>0?{tree:x[0][0],str:e}:{tree:null,str:e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1880),i(1093)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){this.name="HBox",this._largeOp=!1},render:function(e){return e.renderHBox(this)},accentBox:function(){return 1===this.children.length&&this.children[0]?this.children[0].accentBox():null},hasLargeOpSymbolBox:function(){return this._largeOp},rightItalicCorrection:function(){var e=this.children;return e.length&&e[e.length-1].rightItalicCorrection()},leftItalicCorrection:function(){var e=this.children;return e.length&&e[0].leftItalicCorrection()},needsGapBefore:function(){var e=this.children;return e.length&&e[0].needsGapBefore()},needsGapBehind:function(){var e=this.children;return e.length&&e[e.length-1].needsGapBehind()},startsWithDelimiter:function(){var e=this.children;return e.length&&e[0].startsWithDelimiter()},endsWithDelimiter:function(){var e=this.children;return e.length&&e[e.length-1].endsWithDelimiter()},computeRowGaps:function(e,t){var i=0,n=this.children;if(n.length>0)for(e.computeGap(null,n[0],t),i=0;i<n.length-1;i+=1)e.computeGap(n[i],n[i+1],t)},findAlignmentPoint:function(e,t){var i,n,o,r,a=this.children;for(t.push(0),r=t.length-1,i=0;i<a.length;i+=1)if((n=a[i])&&(t[r]=i,null!==(o=n.findAlignmentPoint(e,t))))return o;return t.pop(),null},splitAt:function(e,t){var i,n,o,r;return 1===arguments.length&&(t=0),i=e.path[t],o=(n=this.children)[i].splitAt(e,t+1),(r=new(0,this.constructor)(this)).setMetrics({ascent:this.ascent(),descent:this.descent()}),r.children=n.slice(i),r.children[0]=o.right,n[i]=o.left,this.children=n.slice(0,i+1),o.right=r,o.left=this,o},computeMetrics:function(){var e,t,i,n=this.children,o=0;if(n.length>0){e=n[0].ascent(),t=n[0].descent();var r=n[0].belowXheight();for(o=1;o<n.length;o+=1)i=n[o],e=Math.max(e,i.ascent()),t=Math.max(t,i.descent()),r&=i.belowXheight();this.setMetrics({ascent:e,descent:t}),this.setBelowXheight(r)}},setItalicCorrection:function(e){var t=this.children;if(0!==t.length){var i=t[t.length-1];i&&i.setItalicCorrection(e)}},_setScriptVBox:function(e,i,n,o,r){var a=e.renderer,s=e.emToPx(1),l=s*a.fontAscent,c=s*a.fontXHeight,d=s*a.fontDescent,u=!!o,h=!!r,p=i.ascent()||l,f=i.descent()||d,g=i.hasLargeOpSymbolBox(),m=0,_=c,v=.6*c,b=l-c,y=v,C=0;if(h){r.superscript=!0;var T=t.hasAccent(i);(p>Math.ceil(l)&&!T||g)&&(_/=2),T&&(_*=1.3),m=p-r.descent()-_,m=Math.max(m,b)-(r.supDownShift||0)}u&&(o.subscript=!0,(f>Math.ceil(d)||g)&&(v=-v/2),C=-f+o.ascent()+v,C=Math.min(C,y));var E=0;if(h&&u){C>m&&(C=m),E=m-C;var S=n.children[1];S.length=E,S.computeMetrics()}var w=0;w=h?m+r.height():C,n.computeMetrics(),n.setAscent(w)},setNoLimitsScriptData:function(e,t){var i,n,o=this.children[1],r=t[0],a=t[1],s=t[2];this._setScriptVBox(e,r,o,a,s),i=!!a,n=!!s,r.setItalicCorrection(!i||n),this.computeMetrics()},setMultiScriptData:function(e,t,i){var n,o,r,a,s,l,c=this.children,d=c[t];for(n=0;n<c.length;n+=1)n!==t&&(r=(o=c[n]).children,a=null,s=null,1!==(l=i[n])&&3!==l||(a=r[0]),2===l?s=r[0]:3===l&&(s=r[2]),this._setScriptVBox(e,d,o,s,a));this.computeMetrics()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(1361)],o=i.dj.d(n,(function(e,t){function i(e){return e&&-1!==e.name.indexOf("HBox")&&e.children&&1===e.children.length?e.children[0]:null}return{hasAccent:function e(t){if(t&&-1!==t.name.indexOf("HBox")&&t.children&&1===t.children.length)return e(t.children[0]);if(!t||-1===t.name.indexOf("VBox"))return null;var n=i(t.children[0]);return n&&"topaccent"===n.accentType},getAccentBox:i,getHorizontalStretchyAccentBox:function(e){if(!e||-1===e.name.indexOf("HBox")||!e.children||1!==e.children.length)return null;var i=e.children[0];return i instanceof t?i:null}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1093),i(523),i(400)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(){this.name="StretchyBox",this.minsize="shortfall",this.maxsize=0,this.alignment="c",this.subLeftShift=0,this.supRightShift=0,this._largeOp=!1},computeMetrics:function(){},render:function(e){return e.renderStretchyBox(this)},isStretchySymbolBox:function(){return!0},hasLargeOpSymbolBox:function(){return this._largeOp},isDelimiterBox:function(){return"open"===this.delimiterType||"close"===this.delimiterType},makeLargeOp:function(e,t,i){var r=o.lookupLargeOp(e,i);this.symbolData=r,this._makeSingleSymbolBox(t,r);var a=this.children[0];return this._largeOp=!0,t.renderer.computeGlyphTextboxMetrics(a,r.font,t),this.setMetrics({ascent:a.ascent(),descent:a.descent()}),this.precomputedWidth=t.emToPx(r.width/1e3)||0,this.subLeftShift=t.emToPx(r.subLeftShift)||0,this.supRightShift=t.emToPx(r.supRightShift)||0,this.spacing=r.spacing||n.ORD,this.centerAt(t.mathAxis()),this},setSymbolName:function(e){this.symbolName=e},setSymbolBoxData:function(e,t){var i=e.symbolName,n=o.getSymbol(i);n&&(this.symbolName=i,n.delimiterType&&(this.delimiterType=n.delimiterType),n.spacing&&(this.spacing=n.spacing),e.TeXSpacing&&(this.spacing=e.TeXSpacing),e.minsize>0&&(this.minsize=e.minsize,this.setMetrics({ascent:this.minsize}),this.centerAt(t)),e.maxsize>0&&(this.maxsize=e.maxsize))},resizeAndCenterDelimiter:function(e,t,i){var n=(t-i)/2;this.resizeStretchBox(e,t,i,this.minsize,this.maxsize)&&this.centerAt(n)},STRETCHY_SUFFIX:["","big","Big","bigg","Bigg"],_glyphForSymbol:function(e,t,i){for(var n,r=0,a=null,s=this.STRETCHY_SUFFIX,l=0;l<s.length;l+=1){if(!(n=o.symbolMap[t+s[l]]))return 1.5*r>=i?a:null;var c=n&&n.size?n.size:1,d=e.emToPx(c);if(!this.isDelimiterBox()&&d+1>=i||d>i-1e-4)return a&&2*Math.abs(i-r)<Math.abs(d-i)?a:n;r=d,a=n}return null},_tallestGlyphForSymbol:function(e){var t=this.STRETCHY_SUFFIX;return o.symbolMap[e+t[t.length-1]]},resizeStretchBox:function(e,t,i,n,r){var a=t+i,s=null,l=!0,c=o.symbolMap,d=o.unicodeMap;"shortfall"===n?a=Math.max(.901*a,a-e.emToPx(.5)):n>0&&(a=Math.max(a,e.emToPx(n))),r>0&&(a=Math.min(a,e.emToPx(r)));var u=d[this.symbolName]||this.symbolName;return c[u]||(u="ZeroWidthSpace"),a<=e.emToPx(3)&&!this.isDelimiterBox()&&(i=Math.max(i-e.emToPx(2.25*e.renderer.fontDescent),0)),(s=this._glyphForSymbol(e,u,a))?(this._makeSingleSymbolBox(e,s),l=s.size>1):this._makeVariableSymbolBox(e,u,t,i)||(s=this._tallestGlyphForSymbol(u),this._makeSingleSymbolBox(e,s)),l},_makeSingleSymbolBox:function(e,t){var i=e.renderer.makeGlyphTextbox(t,e);this.children=[i],this.setMetrics({ascent:i.ascent(),descent:i.descent()}),this.precomputedWidth=e.emToPx(t.width/1e3)||0},_makeVariableSymbolBox:function(e,i,n,r){var a=n+r,s=o.symbolMap,l=s[i+"tp"];if(!l)return!1;var c=0,d=0,u=s[i+"mid"],h=s[i+"bt"],p=s[i+"ex"],f=l.size,g=h.size,m=p.size,_=u?u.size:0,v=e.emToPx(f),b=e.emToPx(g),y=_?e.emToPx(_):0,C=e.emToPx(m),T=Math.max(0,a-(v+b+y)),E=0,S=2,w=0,I=0,A=t.hitch(this,(function(e){this.children.push(e)}));function x(t,i){var n=e.renderer.makeGlyphTextbox(t,e);return i=i||!1,n.xShift=c,n.glyphShift+=d,i||n.setMetrics({descent:n.descent()-E,cssDescent:n.cssDescent()-E}),n}function N(e){var t,i=0;for(i=0;i<e;i+=1)t=x(p),A(t)}if(!l)return!1;l.yOffset&&(d=e.emToPx(l.yOffset/1e3)),l.xOffset&&(c=l.xOffset/1e3,"c"===this.alignment&&(c/=2)),u?(S+=1+2*(w=Math.ceil(T/2/C)),I=2*w*C-T):(S+=w=Math.ceil(T/C),I=w*C-T),E=(Math.max(0,v+b+y-a)+I)/(S-1);var L=x(l);if(this.children=[L],u){N(w);var D=x(u);A(D),N(w)}else N(w);var M=x(h,!0);return A(M),this.setMetrics({ascent:0,descent:a}),this.precomputedWidth=e.emToPx(l.width/1e3)||0,!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(1094)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){e=e||{},this.name="WhiteSpaceBox",this.length=e.length||0,this.horizontal=!1},computeMetrics:function(){this.setMetrics({ascent:this.horizontal?0:this.length})},render:function(e){var i=e.makeDomNode(this);return this.horizontal?t.set(i,{display:"inline-block",position:"relative",marginLeft:e.toGrid(this.length)}):t.set(i,{display:"none"}),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(210),i(209),i(379),i(313),i(362)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(null,{constructor:function(e){e=e||{},this._inheritedStyles=["text-align","line-height","min-height","white-space","color","font-family","font-style","font-size","font-weight","text-decoration","white-space"],this._nonInheritedStyles=["margin-left","margin-top","margin-bottom","margin-right"]},switchToInlineView:function(e){var t="rtc_inline_view_no_animation",i=e.getAction(t);return!(!i||!i.enabled)&&(e.executeAction(t),!0)},write:function(e,t,i,n,o){return this._internalDocument=e,this._embeddedOutputsView=i,this._view=n,this._decorationViewModel=o,this._reset(),t?this._writeSelection(t):this._write()},_writeSelection:function(e){this._reset();var t=o.trimSelectionForMultipleContainer(e);return this._startNode=this._view.getNodeBox(t.getStartPosition().getNode()),this._startPosInNode=t.getStartPosition().getOffset(),this._endNode=this._view.getNodeBox(t.getEndPosition().getNode()),this._endPosInNode=t.getEndPosition().getOffset(),t.fileEndSelected()?this._handleFileEndSelection(t.getEndPosition().getNode()):0!==r.comparePositions(t.getEndPosition(),e.getEndPosition())?this._extendSelectionForNonDocumentNodes(t.getEndPosition().getNode().rootContainer()):0!==r.comparePositions(t.getStartPosition(),e.getStartPosition())&&this._extendSelectionForNonDocumentNodes(t.getStartPosition().getNode().rootContainer(),!0),this._target="clipboard",this._write()},_extendSelectionForNonDocumentNodes:function(e,t){if(this._view.getNodeBox(e)){var i=t?this._view.getNodeBox(e).previousElementSibling:this._view.getNodeBox(e).nextElementSibling;if(i&&!i.rteNode){for(var n=i;n;)(n=t?i.firstChild:i.lastChild)&&(i=n);i&&(t?(this._startNode=i,this._startPosInNode=0):(this._endNode=i,this._endPosInNode=this._endNode.length))}}},_handleFileEndSelection:function(e){var t=this._view.getNodeBox(e.rootContainer()),i=t?t.nextElementSibling:null;i&&(this._endNode=i,this._endPosInNode=1)},_reset:function(){this._startNode=null,this._startPosInNode=-1,this._endNode=null,this._endPosInNode=-1,this._target=""},_write:function(){return this._writeBody(),this._writeOpening()+this._body+this._writeClosing()},_writeOpening:function(){return""},_writeClosing:function(){return""},_startNodeElement:function(e){return n.assert("Subclasses must override _startNodeElement."),!1},_endNodeElement:function(e){n.assert("Subclasses must override _endNodeElement.")},_writeBody:function(){this._body="",this._parseTree()},_enterNode:function(e){return!this._isRootNode(e)&&(e===this._endNode&&0===this._endPosInNode||e===this._startNode&&this._startPosInNode===(e.rteNode?e.rteNode.maxOffset():1)?void 0:this._startNodeElement(e))},_leaveNode:function(e){this._isRootNode(e)||this._endNodeElement(e)},_enterTextNode:function(){},_enterAllParents:function(e){var t=this._getParentNode(e);this._isRootNode(e)||this._isRootNode(t)||(this._enterAllParents(t),this._enterNode(t))},_leaveAllParents:function(e){this._isRootNode(e)||(this._leaveNode(e),this._leaveAllParents(this._getParentNode(e)))},_parseTree:function(){var e=this._startNode||this._view.getNodeBox(this._internalDocument.root);this._enterAllParents(e);for(var t=!1;e;){if("#text"===e.nodeName?(this._enterTextNode(e),t=!1):t=this._enterNode(e),e===this._endNode){this._leaveAllParents(e);break}if(t||!this._getFirstChild(e)){var n=this._getNextSibling(e);if(n)"#text"!==e.nodeName&&this._leaveNode(e),e=n;else{for(;!this._getNextSibling(e)&&!i.contains(e,"rootNode");)this._leaveNode(e),e=this._getParentNode(e);if(this._isRootNode(e))break;this._leaveNode(e),e=this._getNextSibling(e)}}else e=this._getFirstChild(e)}},_isRootNode:function(e){return i.contains(e,"rootNode")},_writeTextNode:function(t){var n,o=0,r=0;n=this._view.getDomtarget().contains(t)?t.childNodes:this._getTextNodeWithSyntaxHighlighting(t).childNodes,e.some(n,(function(e){if(!i.contains(e,"textContainer")){if(r=(o=r)+this._getNodeText(e).length,this._startNode===t)if(this._startPosInNode>=o&&this._startPosInNode<=r)o=this._startPosInNode;else if(this._startPosInNode>r)return!1;if(this._endNode===t)if(this._endPosInNode>=o&&this._endPosInNode<=r)r=this._endPosInNode;else if(r>=this._endPosInNode)return!0;var n=this._getNodeText(t).substring(o,r);this._writeChildNodeForTextNode(n,e)}}),this)},_getTextNodeWithSyntaxHighlighting:function(e){const t=e.rteNode,i=a.getSyntaxHighlightingForExport(t,this._decorationViewModel);if(i){e=e.cloneNode();const n=document.createElement("span");n.classList.add("textWrapper"),a.createViewForTextNode(t.getCodeText(),i,n,e)}return e},_getNodeText:function(e){return e.textContent},_writeChildNodeForTextNode:function(e,t){},_getParentNode:function(e){var t=e.parentNode;if(!t){var i=e.rteNode.parent;t=i&&this._view.getNodeBox(i)}return t},_getFirstChild:function(e){var t=e.firstChild,i=e.rteNode;if(!t&&i){var n=i.firstChild&&i.firstChild();t=n&&this._view.getNodeBox(n)}return t},_getNextSibling:function(e){var t=e.nextSibling;if(this._isRootNode(this._getParentNode(e)))for(var i=e.rteNode;!t&&i;)t=(i=i.nextSibling())&&this._view.getNodeBox(i);return t},_isNodeInDOM:function(e){return this._view.getDomtarget().contains(e)}})}),e,t),e.exports=o},function(e,t){e.exports="/* Styling that is common to warnings and errors is in diagnosticOutput.css */\n\n.rtePane .embeddedOutputsErrorElement {\n min-height: 18px;\n max-height: 550px;\n}\n\n.rtePane .embeddedOutputsErrorElement .diagnosticMessage-errorType {\n overflow: auto;\n}\n\n.rtePane .embeddedOutputsErrorElement.inlineElement {\n\n}\n\n.rtePane .embeddedOutputsErrorElement.rightPaneElement {\n\n}\n"},function(e,t){e.exports=".rtePane .embeddedOutputsVariableTableElement .ClientViewDiv table tr {\n height: 22px;\n white-space: nowrap;\n}\n\n.rtePane .embeddedOutputsVariableTableElement .ClientViewDiv table tr td,\n.rtePane .embeddedOutputsVariableTableElement .ClientViewDiv table tr th {\n background-color:white;\n text-overflow: ellipsis;\n font-family: 'Arial', sans-serif;\n font-size: 12px;\n overflow : hidden;\n}\n\n.rtePane .embeddedOutputsVariableTableElement .ClientViewDiv table tr span {\n text-overflow: ellipsis;\n padding: 3px;\n}\n.rtePane .embeddedOutputsVariableTableElement .ClientViewDiv table tr th { \n color: rgba(0,0,0,0.5);\n padding: 3px;\n font-size: 9px;\n}"},function(e,t){e.exports=".rtePane .embeddedOutputsTextElement,\n.rtePane .embeddedOutputsVariableStringElement {\n white-space: pre;\n word-wrap: initial;\n min-height: 18px;\n max-height: 550px;\n}\n\n.rtePane .embeddedOutputsTextElement .textElement,\n.rtePane .embeddedOutputsVariableStringElement .textElement {\n overflow: auto;\n}\n\n.rtePane .textElement,\n.rtcDataTipElement .textElement {\n padding-top: 3px;\n}\n\n.rtePane .embeddedOutputsTextElement.inlineElement,\n.rtePane .embeddedOutputsVariableStringElement.inlineElement {\n\n}\n\n.rtePane .inlineElement .textElement {\n\n}\n\n.rtePane .embeddedOutputsTextElement.rightPaneElement,\n.rtePane .embeddedOutputsVariableStringElement.rightPaneElement {\n min-height: 16px;\n}\n\n.rtePane .rightPaneElement .textElement {\n padding-top: 2px;\n padding-left: 9px;\n}\n"},function(e,t){e.exports=".rtePane .embeddedOutputsVariableElement {\n white-space: pre-wrap;\n word-wrap: break-word;\n min-height: 18px;\n max-height: 250px;\n overflow: auto;\n}\n\n.rtePane .variableElement {\n\n}\n\n.rtePane .embeddedOutputsVariableElement.inlineElement {\n\n}\n\n.rtePane .inlineElement .variableElement {\n\n}\n\n.rtePane .embeddedOutputsVariableElement.rightPaneElement {\n min-height: 16px;\n}\n\n.rtePane .rightPaneElement .variableElement {\n padding-top: 2px;\n padding-left: 9px;\n}\n\n.variableNameElement {\n margin-bottom: 3px;\n display: inline-block;\n}"},function(e,t){e.exports="/* Styling that is common to warnings and errors is in diagnosticOutput.css */\n\n.rtePane .embeddedOutputsWarningElement {\n min-height: 18px;\n max-height: 550px;\n}\n\n.rtePane .embeddedOutputsWarningElement .diagnosticMessage-warningType {\n overflow: auto;\n}\n\n.rtePane .embeddedOutputsWarningElement.inlineElement {\n\n}\n\n.rtePane .embeddedOutputsWarningElement.rightPaneElement {\n\n}"},function(e,t){e.exports='/* Copyright 2015-2019 The MathWorks, Inc. */\n/* In this file, styles are not scoped to rtcContainer since they could be in the Dojo Tooltip */\n\n.diagnosticMessage-wrapper {\n font-family: Menlo, Monaco, Consolas, "Courier New", monospace;\n font-size: 12px;\n}\n\n.diagnosticMessage-wrapper.diagnosticMessage-warningType {\n color: rgb(255,100,0);\n}\n\n.diagnosticMessage-wrapper.diagnosticMessage-warningType a {\n color: rgb(255,100,0);\n text-decoration: underline;\n}\n\n.diagnosticMessage-wrapper.diagnosticMessage-errorType {\n color: rgb(230,0,0);\n}\n\n.diagnosticMessage-wrapper.diagnosticMessage-errorType a {\n color: rgb(230,0,0);\n text-decoration: underline;\n}\n\n.diagnosticMessage-wrapper .diagnosticMessage-messagePart,\n.diagnosticMessage-wrapper .diagnosticMessage-causePart {\n white-space: pre-wrap;\n}\n\n.diagnosticMessage-wrapper .diagnosticMessage-stackPart {\n white-space: pre;\n}\n'},function(e,t,i){var n,o;n=[i(203),i(237),i(1365)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(i,{constructor:function(){this._content=[],this._contentStack=[]},enterInnerNode:function(e){this._contentStack.push(this._content),this._content=[]},visitLeafNode:function(e,t,i){var n=e.serialize(!0);n.text=n.text.substring(t,i),this._content.push(n)},leaveInnerNode:function(e){var i=e.serialize(!0);i.children=this._content,this._content=this._contentStack.pop(),0===i.children.length&&t.isTextLevelContainer(e)||this._content.push(i)},getSerialized:function(){return this._content}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return{getFormattedChars:function(e){var t="",i=0,n="",o=0;for(i=0;i<e.length;i+=1){switch(n=e[i],o=e.charCodeAt(i),n){case"\\":n="\\\\";break;case"{":n="\\{";break;case"}":n="\\}";break;case"\n":n="\\line "}t+=o<127?n:"\\u"+o+"?"}return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(234),i(275),i(1097),i(1367)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{_CANCEL_REASON:"DatatipCancel",_NO_TOOLTIP:void 0,_DATATIP_CSS_CLASS:"datatipCSSClass",constructor:function(e,t,i,o){this._editorDataService=e,this._internalDocument=t,this._document=i,this._matlabTokenManager=o,this._debugServices=n.getInstance(),this._latestPromise=null},setEnabled:function(e){const t=this._shouldShowDataTips;return this._shouldShowDataTips=e,t},priority:function(){return r.getDatatipPriority()},getTooltipContent:function(e,t){return this._isValidTargetNode(e)?this._getWordUnderCursor(t):null},_getWordUnderCursor:function(e){var t=this._matlabTokenManager.getTokens();return r.getValidIdentifierTill(e,this._document,this._internalDocument,t)},_requestDatatipWhileDebugging:function(e,i,n){var o=t.hitch(this,"_updateDataTip",i,n),r=t.hitch(this,"_errorCallback",n);return this._debugServices.getDatatipPromise(e,o,r)},_requestDatatip:function(e,i,n,o){var r=t.hitch(this,"_updateDataTip",n,o),a=t.hitch(this,"_errorCallback",o);return this._datatipRequester.requestDatatip(e,i,r,a)},_isValidTargetNode:function(e){return i.isCodeContainer(e.parent)},cleanupTooltipContent:function(e){this._latestPromise&&(this._latestPromise.cancel(e||this._CANCEL_REASON),this._latestPromise=null)},destroy:function(){this.inherited(arguments),this.cleanupTooltipContent("Destroying")}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._events={}}return r(e,[{key:"on",value:function(e,t){var i=this;this._events[e]||(this._events[e]=[]),this._events[e].push(t);var n={remove:function(){var o=i._events[e].indexOf(t);i._events[e].splice(o,1),n.remove=function(){return null}}};return n}},{key:"emit",value:function(e,t){var i=this._events[e],n=Object.getOwnPropertyNames(t),o={};o.eventName=e,n.forEach((function(e){o[e]=t[e]}));var r;(r=i)&&r.forEach((function(e){e(o)}))}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1893),i(1368),i(3629),i(1895),i(1098),i(3630)],o=i.dj.d(n,(function(e,t,i,n,o,a){return function(){function s(t,i,n,o,r,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),this._on=new e,this._isDragStartedInContext=o,this._listeners=[],this._getDragSources=i,this._getDropTargets=n,this._dragEnterLeaveCounterMap=new WeakMap,this._getDropStatus=r,this._getDragOperations=a,this._removeDragSourceListeners=this._attachDragSourceEvents(t,["dragstart"]),this._removeDropTargetListeners=this._attachDropTargetEvents(t,["dragenter","drop","dragover","dragleave"])}return r(s,[{key:"destroy",value:function(){this._listeners.forEach((function(e){e.remove()})),this._removeDragSourceListeners(),this._removeDropTargetListeners()}},{key:"_attachDragEndEvent",value:function(e){this._dragEndRemoveListener=this._attachDragSourceEvents(e,["dragend"])}},{key:"_removeDragEndEvent",value:function(){this._dragEndRemoveListener()}},{key:"_attachDragSourceEvents",value:function(e,t){var o=this,r=t.map((function(e){return o.handleEventsEnum[e]})),a=i.pipe(n.addHandlersForEvents,n.addListeners,n.removeListenerHandler),s={attachDragEndEvent:this._attachDragEndEvent.bind(this),removeDragEndEvent:this._removeDragEndEvent.bind(this)};return a({html5DnDEvents:t,handleEvents:r,on:this._on,domNode:e,getDragSources:this._getDragSources,handleDragEndListener:s})}},{key:"_attachDropTargetEvents",value:function(e,t){var o=this,r=t.map((function(e){return o.handleEventsEnum[e]}));return i.pipe(n.addHandlersForEvents,n.addListeners,n.removeListenerHandler)({html5DnDEvents:t,handleEvents:r,on:this._on,domNode:e,getDropTargets:this._getDropTargets,dragEnterLeaveCounterMap:this._dragEnterLeaveCounterMap,isDragStartedInContext:this._isDragStartedInContext,getDropStatus:this._getDropStatus,getDragOperations:this._getDragOperations})}},{key:"_handleDragEnter",value:function(e){var i=e.event,o=e.domNode,r=e.on,a=e.getDropTargets,l=e.dragEnterLeaveCounterMap,c=e.isDragStartedInContext,d=e.getDropStatus,u=e.getDragOperations,h=n.validateDrag({getDropTargets:a,event:i,isDragStartedInContext:c,contextDOM:o});if(h){i.dataTransfer.dropEffect=n.getDropEffect(i,d,u),i.preventDefault();var p=h.matchedDragElement,f=h.matchedParentDOM;if(l.has(f)){var g=l.get(f);g++,l.set(f,g)}else l.set(f,1),r.emit("dragEnter",{type:"dragEnter",dropEffect:i.dataTransfer.dropEffect,dropTarget:p,target:f,getNativeDataByType:n.createNativeDataByType(i),nativeTypes:s.TYPES,getNativeDataTypes:function(){return t.getNativeDataTypes(i.dataTransfer,p.allowGlobal)},xCoord:i.pageX,yCoord:i.pageY,getDropOperation:function(){return n.getDropOperationFromDropEffect(i.dataTransfer.dropEffect)}})}}},{key:"_handleDragLeave",value:function(e){var i=e.event,o=e.domNode,r=e.on,a=e.getDropTargets,l=e.dragEnterLeaveCounterMap,c=e.isDragStartedInContext,d=e.getDropStatus,u=e.getDragOperations,h=n.validateDrag({getDropTargets:a,event:i,isDragStartedInContext:c,contextDOM:o});if(h){i.preventDefault();var p=h.matchedDragElement,f=h.matchedParentDOM;i.dataTransfer.dropEffect=n.getDropEffect(i,d,u);var g=l.get(f);g>1?(g--,l.set(f,g)):(l.delete(f),r.emit("dragLeave",{type:"dragLeave",xCoord:i.pageX,yCoord:i.pageY,dropEffect:i.dataTransfer.dropEffect,dropTarget:p,target:f,getNativeDataByType:n.createNativeDataByType(i),getNativeDataTypes:function(){return t.getNativeDataTypes(i.dataTransfer,p.allowGlobal)},nativeTypes:s.TYPES,getDropOperation:function(){return n.getDropOperationFromDropEffect(i.dataTransfer.dropEffect)}}))}}},{key:"_handleDrop",value:function(e){var i=e.event,o=e.domNode,r=e.on,a=e.getDropTargets,l=e.dragEnterLeaveCounterMap,c=e.isDragStartedInContext,d=e.getDropStatus,u=e.getDragOperations,h=n.validateDrag({getDropTargets:a,event:i,isDragStartedInContext:c,contextDOM:o});if(h){i.preventDefault();var p=h.matchedDragElement,f=h.matchedParentDOM;i.dataTransfer.dropEffect=n.getDropEffect(i,d,u),l.delete(f),r.emit("drop",{type:"drop",xCoord:i.pageX,yCoord:i.pageY,dropEffect:i.dataTransfer.dropEffect,dropTarget:p,target:f,getNativeDataByType:n.createNativeDataByType(i),getNativeDataTypes:function(){return t.getNativeDataTypes(i.dataTransfer,p.allowGlobal)},nativeTypes:s.TYPES,getDropOperation:function(){return n.getDropOperationFromDropEffect(i.dataTransfer.dropEffect)}})}}},{key:"_handleDragOver",value:function(e){new a(e).handleDragOver()}},{key:"_handleDragStart",value:function(e){var i=e.event,o=e.on,r=e.getDragSources,a=e.handleDragEndListener,l=r(),c=n.matchDragSourceFromEvent(i,l);if(c){var d=c.matchedDragElement,u=c.matchedParentDOM;i.dataTransfer.setData(t.dndDefaultTypeEnum,""),a.attachDragEndEvent(u,o,l),o.emit("dragStart",{type:"dragStart",dragSource:d,target:u,xCoord:i.pageX,yCoord:i.pageY,setNativeDataByType:function(e,n){switch(e){case s.TYPES.TEXT:t.setNativeTextData(i.dataTransfer,n);break;default:d.allowGlobal&&t.setNativeDataByType(i.dataTransfer,e,n)}},getNativeDataTypes:function(){return t.getNativeDataTypes(i.dataTransfer,d.allowGlobal)},getNativeDataByType:n.createNativeDataByType(i),setValidDragItem:function(e){e?i.dataTransfer.effectAllowed="all":(i.dataTransfer.effectAllowed="none",i.preventDefault())},canSetNativeAvatar:!!i.dataTransfer.setDragImage,setEmptyNativeAvatar:function(){var e=document.createElement("div");e.classList.add("mw-dnd-empty-avatar"),e.appendChild(document.createTextNode(" ")),document.body.appendChild(e),i.dataTransfer.setDragImage(e,0,0),setTimeout((function(){document.body.removeChild(e)}),0)},nativeTypes:s.TYPES,getDropOperation:function(){return n.getDropOperationFromDropEffect(i.dataTransfer.dropEffect)}}),n.stopPropagationforDojoDnDParent(i)}}},{key:"_handleDragEnd",value:function(e){var i=e.event,o=e.on,r=e.getDragSources,a=e.handleDragEndListener,l=r(),c=n.matchDragSourceFromEvent(i,l);if(c){var d=c.matchedDragElement,u=c.matchedParentDOM;d&&(a.removeDragEndEvent(),o.emit("dragEnd",{type:"dragEnd",dragSource:d,xCoord:i.pageX,yCoord:i.pageY,target:u,getNativeDataByType:n.createNativeDataByType(i),nativeTypes:s.TYPES,getNativeDataTypes:function(){return t.getNativeDataTypes(i.dataTransfer,d.allowGlobal)},getDropOperation:function(){return n.getDropOperationFromDropEffect(i.dataTransfer.dropEffect)}}))}}},{key:"handleDynamicDragSources",value:function(){this._getDragSources().length>0&&this._getDragSources().forEach(this.setDraggableAttribute,this)}},{key:"setDraggableAttribute",value:function(e){switch(e.type){case"SELECTOR":this._setDraggableAttribute(e.selector);break;case"DOM":e.domNode.setAttribute("draggable",!0),this._setDraggableAttrChildren(e.domNode)}}},{key:"removeDraggableAttribute",value:function(e){switch(e.type){case"SELECTOR":this._removeDraggableAttribute(e.selector);break;case"DOM":e.domNode.removeAttribute("draggable"),this._removeDraggableAttrChildren(e.domNode)}}},{key:"_setDraggableAttributeToNodeList",value:function(e){for(var t=0;t<e.length;t++){e[t].setAttribute("draggable",!0)}}},{key:"_removeDraggableAttributeToNodeList",value:function(e){for(var t=0;t<e.length;t++){e[t].removeAttribute("draggable")}}},{key:"_setDraggableAttribute",value:function(e){for(var t=document.querySelectorAll(e),i=0;i<t.length;i++){var n=t[i];n.setAttribute("draggable",!0),this._setDraggableAttrChildren(n)}}},{key:"_setDraggableAttrChildren",value:function(e){if(o.notSupportNativeElementAvatarOveride){var t=e.querySelectorAll("img");this._setDraggableAttributeToNodeList(t);var i=e.querySelectorAll("a");this._setDraggableAttributeToNodeList(i)}}},{key:"_removeDraggableAttribute",value:function(e){for(var t=document.querySelectorAll(e),i=0;i<t.length;i++){var n=t[i];n.removeAttribute("draggable"),this._removeDraggableAttrChildren(n)}}},{key:"_removeDraggableAttrChildren",value:function(e){if(o.notSupportNativeElementAvatarOveride){var t=e.querySelectorAll("img");this._removeDraggableAttributeToNodeList(t);var i=e.querySelectorAll("a");this._removeDraggableAttributeToNodeList(i)}}},{key:"on",value:function(e,t){var i=this._on.on(e,t);return this._listeners.push(i),i}},{key:"handleEventsEnum",get:function(){return{dragstart:this._handleDragStart,dragend:this._handleDragEnd,dragenter:this._handleDragEnter,dragover:this._handleDragOver,drop:this._handleDrop,dragleave:this._handleDragLeave}}}],[{key:"TYPES",get:function(){return t.getTypes()}}]),s}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}n=[i(1368),i(1369),i(1098),i(1896)],o=i.dj.d(n,(function(e,t,i,n){var o={get TYPES(){return e.getTypes()},createNativeDataByType:function(t){var i,n=(r(i={},o.TYPES.TEXT,e.getNativeTextData),r(i,o.TYPES.FILES,e.getNativeFileData),i);return function(i){return n[i]?n[i](t.dataTransfer):e.getNativeDataByType(t.dataTransfer,i)}},traverseAndMatchDragElements:function(e,t,i,n){for(var r=void 0,a=0;a<n.length;a++){var s=n[a];if((r=o.matchDOMtoDragElements(i,s))||s===t)return r}},matchDOMtoDragElements:function(e,t){for(var i=void 0,n=void 0,r=!1,a=0;a<e.length;a++){var s=e[a];o.reachedConfiguredDOM(s,t)&&(i=s,n=t,r=!0)}if(r)return{matchedDragElement:i,matchedParentDOM:n}},reachedConfiguredDOM:function(e,t){return{SELECTOR:function(){return o.anySelectorMatched(t,[e.selector])},DOM:function(){return t&&t===e.domNode}}[e.type]()},anySelectorMatched:function(e,t){return!(!e||!e.matches)&&t.some((function(t){return e.matches(t)}))},addHandlersForEvents:function(e){var t=e.handleEvents,i=e.html5DnDEvents,n=e.domNode;return{handlers:t.map((function(t){return function(i){e.event=i,t(e)}})),html5DnDEvents:i,domNode:n}},reduceDragOperations:function(e,t){if(0===t.length)return e;var i=[];return e.includes(n.COPY)&&t.includes(n.COPY)&&i.push(n.COPY),e.includes(n.MOVE)&&t.includes(n.MOVE)&&i.push(n.MOVE),e.includes(n.LINK)&&t.includes(n.LINK)&&i.push(n.LINK),i},containsModifierKeys:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.reduce((function(e,t){return e||t}),!1)},supportsAltKeyForCopy:function(){return i.supportsAltKeyForCopy},getEffectBasedOnPlatform:function(e,t){var i=e.isAltKey,n=e.isCtrlKey;function r(e){var t=o.supportsAltKeyForCopy();return t&&i||!t&&n?"copy":e}var a={copy:function(){return"copy"},move:function(){return"move"},copyMove:function(){return r("copyMove")},all:function(){return r("all")},uninitialized:function(){return r("uninitialized")}};return a[t]?a[t]():t},getDropEffect:function(e,i,n){return i()===t.StatusEnum.VALID?o.calculateDropEffect(e,n):"none"},calculateDropEffect:function(e,t){var i=e.dataTransfer,r=i.effectAllowed,a=i.dropEffect;if("uninitialized"===r&&"none"!==a)return a;var s=t();s.includes(n.ALL)&&(s=[n.COPY,n.MOVE]);var l=e.altKey,c=e.ctrlKey;if(o.containsModifierKeys(l,c)){var d={isAltKey:l,isCtrlKey:c};r=o.getEffectBasedOnPlatform(d,r)}var u=o.getDragOperationsFromEffectsAllowed(r);return(s=o.reduceDragOperations(u,s)).includes(n.MOVE)?"move":s.includes(n.COPY)?"copy":"none"},addListeners:function(e){var t=e.handlers,i=e.html5DnDEvents,n=e.domNode;return i.forEach((function(e,i){switch(e){case"dragover":document.addEventListener(e,t[i]);break;default:n.addEventListener(e,t[i])}})),{handlers:t,html5DnDEvents:i,domNode:n}},isTargetPresentInContext:function(e,t){return e.contains(t.target)},removeListenerHandler:function(e){var t=e.handlers,i=e.html5DnDEvents,n=e.domNode;return function(){t.forEach((function(e,t){var o=i[t];switch(o){case"dragover":document.removeEventListener(o,e);break;default:n.removeEventListener(o,e)}}))}},validateDrag:function(e){var t=e.getDropTargets,i=e.event,n=e.isDragStartedInContext,r=e.contextDOM;if(o.isTargetPresentInContext(r,i)){var a=t();return o.containsAllowGlobalDropTargets(a)?o._validateAllowGlobal({event:i,contextDOM:r,dropTargets:a,isDragStartedInContext:n}):o._validateWithoutAllowGlobal({event:i,contextDOM:r,dropTargets:a,isDragStartedInContext:n})}},_validateAllowGlobal:function(t){var i=t.event,n=t.contextDOM,r=t.dropTargets,a=t.isDragStartedInContext;if(0!==e.getNativeDataTypesGlobal(i.dataTransfer).length||a()){var s=o.matchDragElements({event:i,contextDOM:n,dragElements:r});if(s){if(!s.matchedDragElement.allowGlobal&&!a())if(0===e.getNativeDataTypesLocal(i.dataTransfer).length)return;return s}}},matchDragSourceFromEvent:function(e,t){return o.matchDragElements({event:e,contextDOM:e.currentTarget,dragElements:t})},_validateWithoutAllowGlobal:function(t){var i=t.event,n=t.contextDOM,r=t.dropTargets,a=t.isDragStartedInContext,s=e.getNativeDataTypesLocal(i.dataTransfer);if(a()||0!==s.length){var l=o.matchDragElements({event:i,contextDOM:n,dragElements:r});if(l)return l}},matchDragElements:function(e){var t=e.event,i=e.contextDOM,n=e.dragElements,r=o.getComposedPath(t);return o.traverseAndMatchDragElements(t.target,i,n,r)},getDragOperationsFromEffectsAllowed:function(e){return{copy:[n.COPY],move:[n.MOVE],link:[n.LINK],copyLink:[n.COPY,n.LINK],copyMove:[n.MOVE,n.COPY],linkMove:[n.MOVE,n.LINK],all:[n.MOVE,n.COPY,n.LINK],uninitialized:[n.MOVE,n.COPY,n.LINK],none:[n.NONE]}[e]||[]},getDropOperationFromDropEffect:function(e){return{copy:n.COPY,move:n.MOVE,link:n.LINK,none:n.NONE}[e]},containsAllowGlobalDropTargets:function(e){return e.some((function(e){return e.allowGlobal}))},getComposedPath:function(e){if(e.composedPath)return e.composedPath();var t=[],i=e.target;for(t.push(i);i.parentNode;)i=i.parentNode,t.push(i);return t.concat(window)},stopPropagationforDojoDnDParent:function(e){var t=[".dojoDndContainer",".dojoDndSource",".dojoDndTarget"];o.getComposedPath(e).some((function(e){return o.anySelectorMatched(e,t)}))&&e.stopPropagation()}};return o}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({COPY:"COPY",MOVE:"MOVE",LINK:"LINK",ALL:"ALL",NONE:"NONE"})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"getXYCoordinates",value:function(e){var t=e.xCoord,i=e.yCoord,n=e.target.getBoundingClientRect();return{xOffset:t-n.left,yOffset:i-n.top}}},{key:"getRow",value:function(){return e.getRegion.apply(e,arguments)}},{key:"getColumn",value:function(){return e.getRegion.apply(e,arguments)}},{key:"getRegion",value:function(t,i,n){i=e._convertPixelsPercentagesToNumbers(i,n),i=e._convertStrAutoToNumbers(i,n);var o=e._getRegionLimits(i);return e._calcRegionIndex(o,t,n)}},{key:"_convertPixelsPercentagesToNumbers",value:function(e,t){return e.split(" ").map((function(e){return e.includes("px")?parseInt(e):e.includes("%")?parseInt(e)*t/100:e})).join(" ")}},{key:"_convertStrAutoToNumbers",value:function(t,i){var n=t.split(" "),o=n.filter((function(e){return"auto"===e}));if(0===o.length)return n.map((function(e){return Number(e)}));var r=i-e._sumOfRegions(n),a=0;return r>0&&(a=r/o.length),n.map((function(e){return isNaN(e)?a:Number(e)}))}},{key:"_sumOfRegions",value:function(e){return e.reduce((function(e,t){return isNaN(t)||(e+=Number(t)),e}),0)}},{key:"_calcRegionIndex",value:function(t,i,n){return i<n?e._calcCoordWithInSize(t,i):e._calcCoordExceedsSize(t,n)}},{key:"_calcCoordWithInSize",value:function(t,i){var n=e._getMaxRegionsData(t),o=n.maxRegionsSize,r=n.maxRegionsIndex;if(!(i<o))return r+1;for(var a=0;a<=r;a++)if(i<t[a])return a}},{key:"_calcCoordExceedsSize",value:function(t,i){var n=e._getMaxRegionsData(t),o=n.maxRegionsSize,r=n.maxRegionsIndex;return o<i?r+1:r}},{key:"_getMaxRegionsData",value:function(e){var t=e.length-1;return{maxRegionsSize:e[t],maxRegionsIndex:t}}},{key:"_getRegionLimits",value:function(e){var t=0;return e.map((function(e){return t+=e}))}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1369)],o=i.dj.d(n,(function(e){var t=void 0;return function(){function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i)}return r(i,null,[{key:"createAvatar",value:function(i,n,o){t||(t=new e(i,n.xCoord,n.yCoord,o))}},{key:"clearAvatar",value:function(){t=null}},{key:"customAvatar",get:function(){return t}},{key:"isAvatarPresent",get:function(){return!!t}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(236),i(209),i(719),i(1100)],o=i.dj.d(n,(function(e,t,i,n){return{_FUNCTION_NAME_REGEX:/[A-Za-z0-9_]+$/,_FUNCTION_HANDLE_REGEX:/^@\(/,buildDescriptionString:function(t,i,n){if(this._FUNCTION_HANDLE_REGEX.test(t))return i;var o=this._buildShortFunctionName(t);return e.substitute(n,{0:o})},_buildShortFunctionName:function(e){var i=e.match(this._FUNCTION_NAME_REGEX);if(null===i)return t.error("Couldn't extract function name from: "+e),"";var o=i[0];return n.styleAsCode(o)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(275)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._debugDDUXLogger=e,this._debugServices=i.getInstance(),this._persistentStackModel=t},doWorkspaceChange:function(e,t){this._debugDDUXLogger.logEvent("dbupdown",t);var i=e-this._persistentStackModel.getActiveWorkspaceIndex();0!==i&&this._debugServices.dbUpDown(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{stackFrameHasValidLineNumber:function(e){return 0===e.getLineNumber()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1348)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i,n,o,r){this._name=e,this._fullPath=t,this._lineNumber=i,this._isExecutionPoint=n,this._isActiveWorkspace=o,this._isLeavingFrame=r},isExecutionPoint:function(){return this._isExecutionPoint},isActiveWorkspace:function(){return this._isActiveWorkspace},isLeavingFrame:function(){return this._isLeavingFrame}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getActiveWorkspaceFrame:function(e){for(var t=0;t<e.length;t+=1){var i=e[t];if(i.isActiveWorkspace())return i}return null},getExecutionPointFrame:function(e){for(var t=0;t<e.length;t+=1){var i=e[t];if(i.isExecutionPoint())return i}return null}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(281)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t,n,o,r,a){this._backingStore=e,this._breakpointDataModel=t,this._breakpointDecorator=n,this._breakpointContextMenuContributor=o,this._breakpointActions=r,this._breakpointLiveModel=a,this._debugActionsEnabled=!0,this._backingStore.onLocationUpdated&&this.own(i.after(this._backingStore,"onLocationUpdated",this._handleFilePathUpdated.bind(this)))},_handleFilePathUpdated:function(){o.hasFileLocation(this._backingStore)?this._enableDebugActions():this._disableDebugActions()},_disableDebugActions:function(){this._debugActionsEnabled&&(this._debugActionsEnabled=!1,this._breakpointDataModel.disable(),this._breakpointLiveModel.disable(),this._breakpointDecorator.disable(),this._breakpointContextMenuContributor.disableToggleBreakpointActions(),this._breakpointActions.disableFileBreakpointActions())},_enableDebugActions:function(){this._debugActionsEnabled||(this._debugActionsEnabled=!0,this._breakpointDataModel.enable(),this._breakpointLiveModel.enable(),this._breakpointLiveModel.refreshLiveStatus(),this._breakpointDecorator.enable(),this._breakpointContextMenuContributor.enableToggleBreakpointActions(),this._breakpointActions.enableFileBreakpointActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1101)],o=i.dj.d(n,(function(e,t){return e(t,{isUsedCrossFunctions:function(){return this._data.isUsedCrossFunctions},isPersistent:function(){return this._data.isPersistent},isGlobal:function(){return this._data.isGlobal},isAssignment:function(){return this._data.isAssignment}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(236),i(1086),i(308),i(241),i(1907)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{SETTING_GROUP:["matlab","confirmationdialogs"],SETTING_NAME:"EditorPromptBeforeExitingDebugMode",FULL_SETTING:"matlab.confirmationdialogs.EditorPromptBeforeExitingDebugMode",createAndShowPrompt:function(a,s,l,c){var d=e.create("div"),u=e.create("div");u.textContent=a&&a.length>0?t.substitute(i.debugSaveSingleFileDialogText,[a]):i.debugSaveMultipleFilesDialogText;var h=new n({text:i.debugSaveDialogCheckBoxMessage,class:"confirmationDialogCheckBox"});d.appendChild(u),d.appendChild(e.create("br")),d.appendChild(h.domNode);var p=r.createConfirmDialogOptions(this._confirmDialogCallback.bind(this,s,l,c));o.displayConfirmDialog(i.debugSaveDialogTitle,d,p)},_confirmDialogCallback:function(e,t,i,n,o){switch(n){case r.RESPONSE_TYPE_ENUM.CANCEL:t();break;case r.RESPONSE_TYPE_ENUM.ACCEPT:o&&i(),e()}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(225),i(206),i(568),i(231)],o=i.dj.d(n,(function(e,t,i,n){return{RESPONSE_TYPE_ENUM:{ACCEPT:1,CANCEL:2},createConfirmDialogOptions:function(o){return{icon:"warning",buttonText:[i.ok,i.cancel],defaultAcceptButton:this.RESPONSE_TYPE_ENUM.ACCEPT,defaultCancelButton:this.RESPONSE_TYPE_ENUM.CANCEL,closeCallback:function(i){var r=!1;if(i.response===this.RESPONSE_TYPE_ENUM.ACCEPT){var a=e(".mwConfirmDialog .confirmationDialogCheckBox")[0],s=n.getEnclosingWidget(a);s&&(r=s.get("checked"))}o(i.response,r),t.emit(document.body,"restorefocus",{bubbles:!0})}.bind(this)}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(207),i(907),i(1388),i(914)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i,n],{constructor:function(e,t,i,n){this._rtcId=t,this._backingstoreContentContributor=n,this._saveLoadContributor=i,this._encoding="UTF-8",this._loadDeferred=null,this._saveDeferred=null,this._wasPreviouslyLoaded=!1,o.registerBackingStore(this._rtcId,this)},getFilePath:function(){return this.getAbsoluteFilePath()},load:async function(){this._loadDeferred=new t;try{const e=this._backingstoreContentContributor.getContentType(),t=await this._saveLoadContributor.load(this.file,this.getAbsoluteFilePath(),e);await this._backingstoreContentContributor.loadContent(t),this.onLoadComplete(),this.onLoadCompleted(),this._processReload(),this._loadDeferred.resolve(!0)}catch(e){this.onLoadFailed(e),this._loadDeferred.reject({exception:e})}return this._loadDeferred.promise},save:async function(e){if(this._isSaveAlreadyOccurring())return this._saveDeferred.promise;this._saveDeferred=new t;try{await this._presave(),this.onBeforeSave();const t=await this.createContentBundle(e);if(this.onContentReadyToSave(t),!this._saveLoadContributor.allowSave()){throw{errorId:r.NOT_SUPPORTED_FILE_TYPE}}{const e=this.getAbsoluteFilePath(),i=await this._saveLoadContributor.save(t.filePath,t);e!==t.filePath&&this._updateFilePath(t.filePath),this.onSaveCompleted(),this._saveDeferred.resolve(i)}}catch(e){this._handleExceptionDuringSave(e)}return this._saveDeferred.promise},onLoadCompleted:function(){},onReloadCompleted:function(){},onLoadFailed:function(e){},onBeforeSave:function(){},onContentReadyToSave:function(e){},onSaveCompleted:function(){},onSaveFailed:function(e){},_processReload:function(){this._wasPreviouslyLoaded?this.onReloadCompleted():this._wasPreviouslyLoaded=!0},_isSaveAlreadyOccurring:function(){return this._saveDeferred&&!this._saveDeferred.isFulfilled()},_presave:async function(){},createContentBundle:async function(e){const t=await this._backingstoreContentContributor.getContent(),i=this._backingstoreContentContributor.getContentType();return{rtcId:this._rtcId,contentType:i,content:t,filePath:e||this.getAbsoluteFilePath(),encoding:this._encoding}},_handleExceptionDuringSave:function(e){const t=e&&e.errorId;"save_cancelled"===t?this._handleSaveCancelled(t):this._handleFailureDuringSave(t)},_handleFailureDuringSave:function(e){this.onSaveFailed(e),this._saveDeferred.reject({status:!1,errorId:e})},_handleSaveCancelled:function(e){this._saveDeferred.cancel({status:!1,errorId:e})},destroy:function(){this.inherited(arguments),null===this._loadDeferred||this._loadDeferred.isFulfilled()||this._loadDeferred.cancel(!1),null===this._saveDeferred||this._saveDeferred.isFulfilled()||this._saveDeferred.cancel({status:!1,errorId:"PluginDestroyed"}),o.deleteBackingStore(this._rtcId)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1890),i(401),i(803),i(1095)],o=i.dj.d(n,(function(e,t,i,n){return{serializeSelection:function(t){var n=new e;return new i(n).traverseSelection(t),n.getSerialized()},serializeRange:function(t){var i=new e;return new n(i).traverseRange(t,!0),i.getSerialized()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3717)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.executionservice.statehandler","rtc.internaldocument","rtc.focusservice","rtc.domnode","rtc.margin","rtc.view","rtc.preferences.service","rtc.backingstore","rtc.executionservice.linenumbertracker","rtc.cursorcontroller","rtc.execution.executiondatamanager","rtc.readybusyindicator.contributors","rtc.domnode.external","rtc.isprimaryview"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(213),i(204)],o=i.dj.d(n,(function(e,t){return{_ONE_SECOND:1e3,_ANIMATION_FRAMERATE:30,_ANIMATION_FRAMERATE_THROTTLED:10,_SHOULD_THROTTLE_PREFERENCE:"LiveEditorEmbeddedOutputsThrottleFrameRate",constructor:function(){},destroy:function(){},getAnimationFrameRate:function(e){return e.getValue(this._SHOULD_THROTTLE_PREFERENCE,!1)?this._ANIMATION_FRAMERATE_THROTTLED:this._ANIMATION_FRAMERATE},startOpacityAnimation:function(e,i,n,o,r){var a=this.getAnimationFrameRate(e);o=o||0,r=r||1;var s=this._ONE_SECOND/a,l=n/s,c=0,d=1;return setInterval(t.hitch(this,(function(){var e=c/l;e>1||e<0?d*=-1:this._setAnimationPercent(e,i,o,r),c+=d})),s)},_setAnimationPercent:function(t,i,n,o){e.set(i,{opacity:o-(o-n)*t})},stopAnimation:function(e){null!==e&&clearInterval(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){},onEditorExecutionStart:function(){},onEditorExecutionEnd:function(){},isInitialized:function(){return!0},isEditorExecuting:function(){return!1},isScriptFileExecuting:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(282)],o=i.dj.d(n,(function(e,t){var i=e(null,{constructor:function(e){this.obj=e,this.children=[],this.parent=null,e||(this._startLine=0,this._endLine=1/0)},add:function(e){this.children.push(e),e.parent=this},getStartLine:function(){return void 0===this._startLine&&(this._startLine=this.obj.getStartLine()),this._startLine},getEndLine:function(){return void 0===this._endLine&&(this._endLine=this.obj.getEndLine()),this._endLine}});return e(null,{constructor:function(e){this.set(e)},set:function(e){if(e){this._root=new i(null);for(var t=(e=this._sortByStartLine(e)).length,n=this._root,o=0;o<t;o++)for(var r=new i(e[o]);n;){if(r.getStartLine()>=n.getStartLine()&&r.getEndLine()<=n.getEndLine()){n.add(r),n=r;break}n=n.parent}}},getTopLevelRanges:function(){return this._root.children},find:function(e,t){for(var i=this._root,n=i;i&&(n=(i=this._searchByLine(e,i))||n,!t););return n?n.obj:null},findAll:function(e){for(var i=t.createSet(),n=this._root;n;)n=this._searchByLine(e,n),n&&(n.obj.isLeaf=!n.children.length,i.add(n.obj));return i},_searchByLine:function(e,t){var i=t.children.length;if(!i)return null;for(var n=null,o=0,r=i-1;o<=r;){var a=Math.floor((o+r)/2),s=t.children[a];if(e>=s.getStartLine()&&e<=s.getEndLine()){n=s;break}e<s.getStartLine()?r=a-1:o=a+1}return n},_sortByStartLine:function(e){return e=e.slice().sort((function(e,t){return e.getStartLine()-t.getStartLine()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i(224),i(214),i(203),i(212),i(227),i(210),i(217),i(213),i(356),i(218),i(223),i(204),i(206),i(385),i(245),i(279),i(572),i(3730),i(238),i(712),i(328),i(216),i(316),i(1915),i(1391),i(3731),i(276),i(866),i(3732),i(487),i(1787)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N){var L=new o;function D(){}L.resolve(!0);var M=n("dijit._DialogBase"+(g("dojo-bidi")?"_NoBidi":""),[T,S,w,E],{templateString:N,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:!1,duration:y.defaultDuration,refocus:!0,autofocus:!0,_firstFocusItem:null,_lastFocusItem:null,draggable:!0,_setDraggableAttr:function(e){this._set("draggable",e)},maxRatio:.9,closable:!0,_setClosableAttr:function(e){this.closeButtonNode.style.display=e?"":"none",this._set("closable",e)},postMixInProperties:function(){var e=d.getLocalization("dijit","common");h.mixin(this,e),this.inherited(arguments)},postCreate:function(){l.set(this.domNode,{display:"none",position:"absolute"}),this.ownerDocumentBody.appendChild(this.domNode),this.inherited(arguments),i.after(this,"onExecute",h.hitch(this,"hide"),!0),i.after(this,"onCancel",h.hitch(this,"hide"),!0),this._modalconnects=[]},onLoad:function(){this.resize(),this._position(),this.autofocus&&O.isTop(this)&&(this._getFocusItems(),b.focus(this._firstFocusItem)),this.inherited(arguments)},focus:function(){this._getFocusItems(),b.focus(this._firstFocusItem)},_endDrag:function(){var e=s.position(this.domNode),t=m.getBox(this.ownerDocument);e.y=Math.min(Math.max(e.y,0),t.h-e.h),e.x=Math.min(Math.max(e.x,0),t.w-e.w),this._relativePosition=e,this._position()},_setup:function(){var e=this.domNode;this.titleBar&&this.draggable?(this._moveable=new(6==g("ie")?v:_)(e,{handle:this.titleBar}),i.after(this._moveable,"onMoveStop",h.hitch(this,"_endDrag"),!0)):a.add(e,"dijitDialogFixed"),this.underlayAttrs={dialogId:this.id,class:t.map(this.class.split(/\s/),(function(e){return e+"_underlay"})).join(" "),_onKeyDown:h.hitch(this,"_onKey"),ownerDocument:this.ownerDocument}},_size:function(){this.resize()},_position:function(){if(!a.contains(this.ownerDocumentBody,"dojoMove")){var e=this.domNode,t=m.getBox(this.ownerDocument),i=this._relativePosition,n=s.position(e),o=Math.floor(t.l+(i?Math.min(i.x,t.w-n.w):(t.w-n.w)/2)),r=Math.floor(t.t+(i?Math.min(i.y,t.h-n.h):(t.h-n.h)/2));l.set(e,{left:o+"px",top:r+"px"})}},_onKey:function(e){if(e.keyCode==u.TAB){this._getFocusItems();var t=e.target;this._firstFocusItem==this._lastFocusItem?(e.stopPropagation(),e.preventDefault()):t==this._firstFocusItem&&e.shiftKey?(b.focus(this._lastFocusItem),e.stopPropagation(),e.preventDefault()):t!=this._lastFocusItem||e.shiftKey||(b.focus(this._firstFocusItem),e.stopPropagation(),e.preventDefault())}else this.closable&&e.keyCode==u.ESCAPE&&(this.onCancel(),e.stopPropagation(),e.preventDefault())},show:function(){if(this.open)return L.promise;this._started||this.startup(),this._alreadyInitialized||(this._setup(),this._alreadyInitialized=!0),this._fadeOutDeferred&&(this._fadeOutDeferred.cancel(),O.hide(this));var e,t=m.get(this.ownerDocument);this._modalconnects.push(p(t,"scroll",h.hitch(this,"resize",null))),this._modalconnects.push(p(this.domNode,"keydown",h.hitch(this,"_onKey"))),l.set(this.domNode,{opacity:0,display:""}),this._set("open",!0),this._onShow(),this.resize(),this._position(),this._fadeInDeferred=new o(h.hitch(this,(function(){e.stop(),delete this._fadeInDeferred}))),this._fadeInDeferred.then(void 0,D);var i=this._fadeInDeferred.promise;return e=c.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:h.hitch(this,(function(){O.show(this,this.underlayAttrs)})),onEnd:h.hitch(this,(function(){this.autofocus&&O.isTop(this)&&(this._getFocusItems(),b.focus(this._firstFocusItem)),this._fadeInDeferred.resolve(!0),delete this._fadeInDeferred}))}).play(),i},hide:function(){if(!this._alreadyInitialized||!this.open)return L.promise;var e;this._fadeInDeferred&&this._fadeInDeferred.cancel(),this._fadeOutDeferred=new o(h.hitch(this,(function(){e.stop(),delete this._fadeOutDeferred}))),this._fadeOutDeferred.then(void 0,D),this._fadeOutDeferred.then(h.hitch(this,"onHide"));var t,i=this._fadeOutDeferred.promise;for(e=c.fadeOut({node:this.domNode,duration:this.duration,onEnd:h.hitch(this,(function(){this.domNode.style.display="none",O.hide(this),this._fadeOutDeferred.resolve(!0),delete this._fadeOutDeferred}))}).play(),this._scrollConnected&&(this._scrollConnected=!1);t=this._modalconnects.pop();)t.remove();return this._relativePosition&&delete this._relativePosition,this._set("open",!1),i},resize:function(e){if("none"!=this.domNode.style.display){if(this._checkIfSingleChild(),!e){this._shrunk&&(this._singleChild&&void 0!==this._singleChildOriginalStyle&&(this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle,delete this._singleChildOriginalStyle),t.forEach([this.domNode,this.containerNode,this.titleBar,this.actionBarNode],(function(e){e&&l.set(e,{position:"static",width:"auto",height:"auto"})})),this.domNode.style.position="absolute");var i=m.getBox(this.ownerDocument);i.w*=this.maxRatio,i.h*=this.maxRatio;var n=s.position(this.domNode);n.w>=i.w||n.h>=i.h?(e={w:Math.min(n.w,i.w),h:Math.min(n.h,i.h)},this._shrunk=!0):this._shrunk=!1}if(e){s.setMarginBox(this.domNode,e);var o=[];this.titleBar&&o.push({domNode:this.titleBar,region:"top"}),this.actionBarNode&&o.push({domNode:this.actionBarNode,region:"bottom"});var r={domNode:this.containerNode,region:"center"};o.push(r);var a=x.marginBox2contentBox(this.domNode,e);if(x.layoutChildren(this.domNode,a,o),this._singleChild){var c=x.marginBox2contentBox(this.containerNode,r);this._singleChild.resize({w:c.w,h:c.h})}else this.containerNode.style.overflow="auto",this._layoutChildren()}else this._layoutChildren();g("touch")||e||this._position()}},_layoutChildren:function(){t.forEach(this.getChildren(),(function(e){e.resize&&e.resize()}))},destroy:function(){var e;for(this._fadeInDeferred&&this._fadeInDeferred.cancel(),this._fadeOutDeferred&&this._fadeOutDeferred.cancel(),this._moveable&&this._moveable.destroy();e=this._modalconnects.pop();)e.remove();O.hide(this),this.inherited(arguments)}});g("dojo-bidi")&&(M=n("dijit._DialogBase",M,{_setTitleAttr:function(e){this._set("title",e),this.titleNode.innerHTML=e,this.applyTextDir(this.titleNode)},_setTextDirAttr:function(e){this._created&&this.textDir!=e&&(this._set("textDir",e),this.set("title",this.title))}}));var P=n("dijit.Dialog",[A,M],{});P._DialogBase=M;var O=P._DialogLevelManager={_beginZIndex:950,show:function(e,t){R[R.length-1].focus=b.curNode;var i=R[R.length-1].dialog?R[R.length-1].zIndex+2:P._DialogLevelManager._beginZIndex;l.set(e.domNode,"zIndex",i),I.show(t,i-1),R.push({dialog:e,underlayAttrs:t,zIndex:i})},hide:function(e){if(R[R.length-1].dialog==e){R.pop();var i=R[R.length-1];if(1==R.length?I.hide():I.show(i.underlayAttrs,i.zIndex-1),e.refocus){var n=i.focus;if(!i.dialog||n&&r.isDescendant(n,i.dialog.domNode)||(i.dialog._getFocusItems(),n=i.dialog._firstFocusItem),n)try{n.focus()}catch(e){}}}else{var o=t.indexOf(t.map(R,(function(e){return e.dialog})),e);-1!=o&&R.splice(o,1)}},isTop:function(e){return R[R.length-1].dialog==e}},R=P._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return b.watch("curNode",(function(e,t,i){var n=R[R.length-1].dialog;if(i&&n&&!n._fadeOutDeferred&&i.ownerDocument==n.ownerDocument){do{if(i==n.domNode||a.contains(i,"dijitPopup"))return}while(i=i.parentNode);n.focus()}})),g("dijit-legacy-requires")&&f(0,(function(){e(["dijit/TooltipDialog"])})),P}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(240),i(204),i(206),i(279)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t("dijit.form._FormMixin",null,{state:"",_getDescendantFormWidgets:function(t){var i=[];return e.forEach(t||this.getChildren(),(function(e){"value"in e?i.push(e):i=i.concat(this._getDescendantFormWidgets(e.getChildren()))}),this),i},reset:function(){e.forEach(this._getDescendantFormWidgets(),(function(e){e.reset&&e.reset()}))},validate:function(){var t=!1;return e.every(e.map(this._getDescendantFormWidgets(),(function(e){e._hasBeenBlurred=!0;var i=e.disabled||!e.validate||e.validate();return i||t||(r.scrollIntoView(e.containerNode||e.domNode),e.focus(),t=!0),i})),(function(e){return e}))},setValues:function(e){return i.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0"),this.set("value",e)},_setValueAttr:function(t){var i={};for(var o in e.forEach(this._getDescendantFormWidgets(),(function(e){e.name&&(i[e.name]||(i[e.name]=[])).push(e)})),i)if(i.hasOwnProperty(o)){var r=i[o],a=n.getObject(o,!1,t);void 0!==a&&(a=[].concat(a),"boolean"==typeof r[0].checked?e.forEach(r,(function(t){t.set("value",-1!=e.indexOf(a,t._get("value")))})):r[0].multiple?r[0].set("value",a):e.forEach(r,(function(e,t){e.set("value",a[t])})))}},getValues:function(){return i.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0"),this.get("value")},_getValueAttr:function(){var t={};return e.forEach(this._getDescendantFormWidgets(),(function(e){var i=e.name;if(i&&!e.disabled){var o=e.get("value");if("boolean"==typeof e.checked)if(/Radio/.test(e.declaredClass))!1!==o?n.setObject(i,o,t):void 0===(o=n.getObject(i,!1,t))&&n.setObject(i,null,t);else{var r=n.getObject(i,!1,t);r||(r=[],n.setObject(i,r,t)),!1!==o&&r.push(o)}else{var a=n.getObject(i,!1,t);void 0!==a?n.isArray(a)?a.push(o):n.setObject(i,[a,o],t):n.setObject(i,o,t)}}})),t},isValid:function(){return""==this.state},onValidStateChange:function(){},_getState:function(){var t=e.map(this._descendants,(function(e){return e.get("state")||""}));return e.indexOf(t,"Error")>=0?"Error":e.indexOf(t,"Incomplete")>=0?"Incomplete":""},disconnectChildren:function(){},connectChildren:function(t){this._descendants=this._getDescendantFormWidgets(),e.forEach(this._descendants,(function(e){e._started||e.startup()})),t||this._onChildChange()},_onChildChange:function(e){e&&"state"!=e&&"disabled"!=e||this._set("state",this._getState()),e&&"value"!=e&&"disabled"!=e&&"checked"!=e||(this._onChangeDelayTimer&&this._onChangeDelayTimer.remove(),this._onChangeDelayTimer=this.defer((function(){delete this._onChangeDelayTimer,this._set("value",this.get("value"))}),10))},startup:function(){this.inherited(arguments),this._descendants=this._getDescendantFormWidgets(),this.value=this.get("value"),this.state=this._getState();var e=this;this.own(o(this.containerNode,"attrmodified-state, attrmodified-disabled, attrmodified-value, attrmodified-checked",(function(t){t.target!=e.domNode&&e._onChildChange(t.type.replace("attrmodified-",""))}))),this.watch("state",(function(e,t,i){this.onValidStateChange(""==i)}))},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._rtcSettingService=e},getSettings:function(e){t.assert("The getSettings function must be overridden.")},getValue:function(e,t,i){var n=this._rtcSettingService.get(e+i);return this._rtcSettingService.get(e+t+"."+i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3754)],o=i.dj.d(n,(function(e,t){var i=e(null,{_baseRelationshipId:"rId",constructor:function(){this._relationshipIdCounter=0,this._opcRelationshipCollection={}},createRelationship:function(e,i,n){this._relationshipIdCounter+=1;var o=this._baseRelationshipId+this._relationshipIdCounter;return this._opcRelationshipCollection[o]=new t(o,e,i,n),o},getRelationship:function(e){return this._opcRelationshipCollection[e]},getRelationshipCollection:function(){return this._opcRelationshipCollection}});return i.toJson=function(e){var i=[];for(var n in e._opcRelationshipCollection){var o=e._opcRelationshipCollection[n];i.push(t.toJson(o))}return 0===i.length?null:i},i.fromJson=function(e){var n=i.createInstance();return e.forEach((function(e){n._opcRelationshipCollection[e.relationshipId]=t.fromJson(e)})),n},i.createInstance=function(){return new i},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(244),i(573),i(666),i(229),i(721)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{_DOCTYPE:'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n',_CONTENTDIV_CLASS:"rtcContent",constructor:function(e,t){this._view=t},getFormat:function(){return"html"},_defineExportDocument:function(){return{addToBody:t.hitch(this,"_addToBody"),addToHead:t.hitch(this,"_addToHead"),addCSSToStyle:t.hitch(this,"_addStyleToCss"),getAttributesForStyle:t.hitch(this,"_getAttributesForStyle")}},reset:function(){this._contentParts=[],this._headParts=[],this._styleParts=[],this._contentFragment="",this._numOfStyles=0,this._styles={},this._uniqueId=r.generateUuid()},_addToBody:function(e){"string"!=typeof e?(this._contentParts.push(this._contentFragment),this._contentFragment="",this._contentParts.push(e)):this._contentFragment+=e},_addToHead:function(e){this._headParts.push(e)},_addStyleToCss:function(e){this._styleParts.push(e.trim())},_getAttributesForStyle:function(e,t){var i=e instanceof n?a.getDomNode(e,this._view):e,o=a.getStyleValuesForDomNode(i,t);return"inline"===this._context.styles?" style = '"+o.replace(/'/g,"&quot;")+"'":" class = '"+this._getClassForStyle(o)+"'"},_processResults:function(e){this._contentParts.push(this._contentFragment);var t=i(this._contentParts).then(function(e){return"<div class = "+this._CONTENTDIV_CLASS+">"+e.join("")+"</div>"}.bind(this));if(e.returnBodyFragment)return t;e.pageMargin&&this._addStyleToCss("@Page {margin: 18px;}"),this._addToHead(this._buildStyle(this._styleParts));var n=i(this._headParts).then(function(t){return this._buildHead(t,e)}.bind(this));return i({head:n,content:t}).then(function(t){return this._buildFullHTML(t,e)}.bind(this))},_buildStyle:function(e,t){return'<style type="text/css">.'+this._CONTENTDIV_CLASS+" { padding: 30px; } "+this._styleParts.join("\n")+"</style>"},_buildHead:function(e,t){var i="<head>";return i+='<meta http-equiv="Content-Type" content="text/html; charset=utf-8">',i+='<meta http-equiv="X-UA-Compatible" content="IE=edge,IE=9,chrome=1">',i+='<meta name="generator" content="MATLAB',t.MATLABRelease&&(i+=" "+t.MATLABRelease),i+='">',i+=e.join(""),i+="</head>"},_buildBody:function(e,t){var i="<body";return i+=">",i+=e.content,i+="</body>"},_buildFullHTML:function(e,t){return this._DOCTYPE+"<html>"+e.head+this._buildBody(e,t)+"</html>"},_getClassForStyle:function(e){var t,i;for(i in this._styles)this._styles[i]===e&&(t=i);t||(t="S"+("clipboard"===this._context.target?this._uniqueId:"")+this._numOfStyles,this._numOfStyles+=1,this._styles[t]=e,this._addStyleToCss("."+t+" { "+e+" }\n"));return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(224),i(210),i(213),i(1096),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{constructor:function(e){this.text=e.text||"",this.color=e.color||null,e.readOnly&&(this.readOnly=e.readOnly)},className:"TextNode",maxOffset:function(){return this.text.length},isEmpty:function(){return null===this.text||""===this.text},_styleAttributes:["color"],hasStyleAttribute:function(e){return this._styleAttributes.indexOf(e)>=0},getStyleAttribute:function(e){return this[e]},getStyleAttributes:function(){var e,t={};for(e=0;e<this._styleAttributes.length;e+=1){var i=this._styleAttributes[e];t[i]=this.getStyleAttribute(i)}return t},setStyleAttributes:function(e){var t;for(t in e)e.hasOwnProperty(t)&&this.setStyleAttribute(t,e[t])},setStyleAttribute:function(e,t){this.hasStyleAttribute(e)&&(this[e]=t)},compareStyleAttributes:function(e){var t;for(t=0;t<this._styleAttributes.length;t+=1){var i=this._styleAttributes[t];if(this[i]!==e[i]&&(this[i]||e[i]))return!1}return!0},addClass:function(e){this.cssClass||(this.cssClass=""),this.cssClass=r.unionOfWordSets(this.cssClass,e,!0)},removeClass:function(e){this.cssClass&&(this.cssClass=r.differenceOfWordSets(this.cssClass,e,!0),0===this.cssClass.length&&delete this.cssClass)},_serializeAttributes:function(e){e.text=this.text,void 0!==this.color&&null!==this.color&&(e.color=this.color),void 0!==this.cssClass&&null!==this.cssClass&&(e.cssClass=this.cssClass)},isSplittable:function(e){return 0!==e&&e!==this.maxOffset()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t){this._foldingController=e,this._foldingModel=t,this._foldCandidates=[]},_addFoldCandidates:function(e){e.forEach((function(e){this._foldCandidates.push(e)}),this),this._foldingModel.addFoldCandidates(e)},_removeFoldCandidates:function(e){e.forEach((function(e){this._foldCandidates.splice(this._foldCandidates.indexOf(e),1)}),this),this._foldingModel.removeFoldCandidates(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i,n,o,r){this.name=e,this.priority=t,this.fileExtensions=i||[],this.mimeType=n||"",this.aliasLanguage=o||e,this.description=r||e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(811),i(913)],o=i.dj.d(n,(function(e,t,i){return e(t,{_ACTION_ID:"rtc_debug_step_out",constructor:function(e,t,i,n,o,r,a){this._debugServices=e,this._documentDebugServices=t,this._codeBlockLocationService=i,this._lineNumberService=n,this._executionRangeUtilities=o,this._lineNumberTracker=r,this._stateHandler=a},getActionId:function(){return this._ACTION_ID},getRange:function(){if(!this._debugServices.isDebugging)return this._INVALID_RANGE;var e=this._documentDebugServices.getExecutionPoint();if(!e||null===e.getLineNumber())return this._INVALID_RANGE;if(this._stateHandler.isRunningRequestInvalid())return this._INVALID_RANGE;var t=e.getLineNumber(),i=this._lineNumberTracker.getNewLineNumberFromOldLineNumber(t-1);return this._buildRangeForLine(i)},willEnterDebugMode:function(){var e=this._documentDebugServices.getExecutionPoint();if(!e||null===e.getLineNumber())return!1;var t=e.getLineNumber();return null!==this._codeBlockLocationService.getInnermostBlockOfType(t,i.FUNCTION_DEFINITION)},willStartExecution:function(){return!1},_buildRangeForLine:function(e){var t,n=this._lineNumberService.getCodeLineNumberFromLineNumber(e),o=e+1,r=this._codeBlockLocationService.getInnermostLoop(n);r&&(o=this._lineNumberService.getLineNumberFromCodeLineNumber(r.startLine)+1);var a=this._codeBlockLocationService.getInnermostBlockOfType(n,i.FUNCTION_DEFINITION);if(a)t=this._lineNumberService.getLineNumberFromCodeLineNumber(a.endLine)+1;else{t=this._executionRangeUtilities.getFinalLineOfMainScope();var s=this._stateHandler.getEvaluationRange();if(s){var l=s.getEndPosition().getLine();t>l&&(t=l)}}return this._executionRangeUtilities.buildRange(o,t,!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(266),i(371),i(811)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(r,{_NO_LINE:-1,constructor:function(e,t,i,n,o){this._debugServices=e,this._documentDebugServices=t,this._lineNumberService=i,this._executionRangeUtilities=n,this._codeBlockLocationService=o},getActionId:function(){return o.RUN_TO_LINE_ACTION_ID},getRange:function(e){if(void 0===e||void 0===e.lineNumber)return this._INVALID_RANGE;var t=this._lineNumberService.getLineNumberFromCodeLineNumber(e.lineNumber)+1;if(!this._debugServices.isDebugging)return this._buildRangeOutsideDebugMode(t);var i=this._documentDebugServices.getExecutionPoint();if(!i||null===i.getLineNumber())return this._INVALID_RANGE;var n=i.getLineNumber(),o=this._expandCurrentLineIfNeeded(n);return this._buildRangeWhileDebugging(o,t)},willEnterDebugMode:function(){return!0},_buildRangeOutsideDebugMode:function(e){return this._executionRangeUtilities.buildRange(1,e)},_buildRangeWhileDebugging:function(e,t){var i=this._lineNumberService.getLineNumberFromCodeLineNumber(e)+1;return this._executionRangeUtilities.buildRange(i,t)},_expandCurrentLineIfNeeded:function(e){var t=this._codeBlockLocationService.getInnermostLoop(e);return t?t.startLine:e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(266),i(371),i(811)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_SECTION_NUMBER_PAYLOAD_PROPERTY:"sectionNumber",constructor:function(e,t,i){this._sectionModel=e,this._currentSectionModel=t,this._executionRangeUtilities=i},getActionId:function(){return i.RUN_SECTION},getRange:function(e){var t=this._currentSectionModel.getCurrentSection();if(e&&e.hasOwnProperty(this._SECTION_NUMBER_PAYLOAD_PROPERTY)){var i=e[this._SECTION_NUMBER_PAYLOAD_PROPERTY];t=this._sectionModel.getSection(i)}if(!t)return this._INVALID_RANGE;var n=t.start,o=t.end,r=n.getLine(),a=o.getLine();return this._executionRangeUtilities.buildRange(r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t,n,o){this._cursor=e,this._stateHandler=t,this._codeChangeService=n,this._executionManager=o,this._aspectHandles=[],this._onCodeRegionChangeHandle=null,this._priorCursorLine=1,this._isDirty=!1,this.own(i.after(this._stateHandler,"onStateChanged",this._handleStateChanged.bind(this),!0)),this._isEnabled=!1,this.disable()},_handleStateChanged:function(e){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED&&this._clean()},destroy:function(){this.inherited(arguments),this.disable()},enable:function(){this._isEnabled||(this._isEnabled=!0,this._onCodeRegionChangeHandle=i.after(this._codeChangeService,"onCodeChanged",t.hitch(this,"_setDirty")),this._onCursorChangeHandle=i.after(this._cursor,"onChange",t.hitch(this,"_runIfDirtyAndLineChange")))},_clean:function(){this._isDirty=!1},_runIfDirtyAndLineChange:function(){var e=this._cursor.getLineColumn().line,t=e!==this._priorCursorLine;this._priorCursorLine=e,this._isDirty&&t&&this._evalNow()},disable:function(){this._isEnabled&&(this._isEnabled=!1,this._onCodeRegionChangeHandle.remove(),this._onCodeRegionChangeHandle=null,this._onCursorChangeHandle.remove(),this._onCursorChangeHandle=null,this._executionManager.interrupt())},_setDirty:function(){this._isDirty=!0},_evalNow:function(){this._isDirty=!1,this._executionManager.executeAllSections()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_LIVE_EVAL_DELAY:200,constructor:function(e,t){this._codeChangeService=e,this._executionManager=t,this._aspectHandles=[],this._fullEval=!1,this._liveAspectHandle=null,this._isEnabled=!1},destroy:function(){this.disable()},enable:function(){this._isEnabled||(this._isEnabled=!0,this._liveAspectHandle=i.after(this._codeChangeService,"onCodeChanged",t.hitch(this,"_resetTimer")),this._executionManager.executeAllSections())},disable:function(){this._isEnabled&&(this._isEnabled=!1,this._liveAspectHandle.remove(),this._liveAspectHandle=null,clearTimeout(this._updateTimer),this._executionManager.interrupt())},_resetTimer:function(){this._updateTimer&&(clearTimeout(this._updateTimer),this._updateTimer=null),this._updateTimer=setTimeout(t.hitch(this,"_evalNow"),this._LIVE_EVAL_DELAY)},_evalNow:function(){clearTimeout(this._updateTimer),this._updateTimer=null,this._executionManager.executeAllSections()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(253),i(207),i(294),i(275),i(371),i(581),i(251),i(1398)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(d,{_CONTEXT_MENU_GROUP:r.CODE_SECTIONS,constructor:function(e,i,o,r,l,c){this._actionService=e,this._sectionModel=o,this._currentSectionModel=r,this._executionManager=l,this._debugServices=a.getInstance(),this._contextMenuContributor=c,this._actions=[{id:s.RUN_SECTION,enabled:!0,text:n.runSectionLabel,key:"ctrl_enter",platformKey:{mac:"meta_enter"},callback:t.hitch(this,"_runSection")},{id:s.RUN_SECTION_ADVANCE,enabled:!0,text:n.runSectionAndAdvanceLabel,key:"ctrl_shift_enter",platformKey:{mac:"meta_shift_enter"},callback:t.hitch(this,"_runSectionAdvance")},{id:s.RUN_SECTION_END,enabled:!0,text:n.runSectionToEndLabel,callback:t.hitch(this,"_runSectionEnd")},{id:s.RUN_SECTION_ALL,enabled:!0,callback:t.hitch(this,"_runSectionAll")}],this._actionService.loadActions(this._actions),this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,s.RUN_SECTION),this._isEnabled=!1},_runSectionAll:function(){var e=this._actionService.getAction(s.RUN_SECTION_ALL);return!(!e||!e.enabled)&&(this._executionManager.executeAllSections(!0,!0),!0)},_runSectionEnd:function(){var e=this._actionService.getAction(s.RUN_SECTION_END);return!(!e||!e.enabled)&&(this._executionManager.executeCurrentSection(!0,!1),!0)},_runSection:function(){var e=this._actionService.getAction(s.RUN_SECTION);return!(!e||!e.enabled)&&(this._executionManager.executeCurrentSection(!1,!1),!0)},_runSectionAdvance:function(){var e=this._actionService.getAction(s.RUN_SECTION);return!(!e||!e.enabled)&&(this._executionManager.executeCurrentSection(!1,!0),this._actionService.executeAction(c.SECTIONS.NEXT_SECTION_ACTION),!0)},_updateActionState:function(){var e=this._getUpdatedActionEnablement();this._actionService.updateAction(s.RUN_SECTION,{enabled:e}),this._actionService.updateAction(s.RUN_SECTION_ADVANCE,{enabled:e}),this._actionService.updateAction(s.RUN_SECTION_END,{enabled:e}),this._actionService.updateAction(s.RUN_SECTION_ALL,{enabled:e})},_getUpdatedActionEnablement:function(){var e=this._actionService.getAction("rtc_embedded_outputs_manual"),t=e&&e.selected;return this._isInLocalFunctionSection()&&(t=!1),t},_isInLocalFunctionSection:function(){var e=this._currentSectionModel.getCurrentSection();return e&&e[l.LOCAL_FUNCTION_ATTRIBUTE]&&e[l.LOCAL_FUNCTION_ATTRIBUTE].length>0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(208),i(234),i(249),i(237),i(274),i(270),i(401),i(379),i(294),i(251),i(253)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){const f=/^\s*/;return e(i,{constructor:function(e,i,o,r,a){this._document=e,this._cursorController=i,this._actionService=o,this._contextMenuContributor=r,this._internalDocument=a,this._shouldFormatEntireDocument=!1,this._actions=[{id:h.FORMAT_CODE.SMART_INDENT_ACTION,enabled:!0,text:p.smartIndentLabel,key:"ctrl_i",platformKey:{mac:"meta_i"},callback:this._handleSmartIndent.bind(this)},{id:h.FORMAT_CODE.SMART_INDENT_ALL_ACTION,enabled:!0,callback:this._handleSmartIndentAll.bind(this)}],this._actionService.loadActions(this._actions),this._contextMenuContributor.addActionToMap(u.DEFAULT,h.FORMAT_CODE.SMART_INDENT_ACTION),this.own(n.after(this._cursorController,"onUpdate",t.hitch(this,"_updateActionState"))),this.own(n.after(this._document,"onChange",t.hitch(this,"_updateActionsOnDocumentChange"),!0))},setIndentingMode:function(e){this._shouldFormatEntireDocument=e},_handleSmartIndent:function(e){if(!this._actionService.getAction(h.FORMAT_CODE.SMART_INDENT_ACTION).enabled)return!1;e=e||{};const{startLine:t,endLine:i}=this._getLineRangeToFormat(e);return e=this._setFormatOptDefaults(e,t,i),this._doFormat(e),!0},_handleSmartIndentAll:function(e){return!!this._actionService.getAction(h.FORMAT_CODE.SMART_INDENT_ALL_ACTION).enabled&&(e=this._setFormatOptDefaults(e,0,this._internalDocument.getMaxLineNumber()-1),this._doFormat(e),!0)},_setFormatOptDefaults:function(e,t,i){const n=e||{};return n.startLine=t,n.endLine=i,n.trimWhitespace=void 0===e.trimWhitespace||e.trimWhitespace,n},_getLineRangeToFormat:function(e){if(void 0!==e.startLine&&void 0!==e.endLine)return{startLine:e.startLine,endLine:e.endLine};if(this._cursorController.hasSelection()){let e=this._cursorController.getCursor().getSelection();return e=d.trimTrailingLineBreak(e),{startLine:e.getStartPosition().getLine()-1,endLine:e.getEndPosition().getLine()-1}}if(!this._shouldFormatEntireDocument){const e=this._cursorController.getCursor().getLineColumn().line-1;return{startLine:e,endLine:e}}return{startLine:0,endLine:this._internalDocument.getMaxLineNumber()-1}},_doFormat:function(e){if(this._cursorController.getCursor().hasSelection()){const t=this._getSelectionInfo();this._formatLines(e),this._adjustSelection(t)}else this._formatLines(e)},_getSelectionInfo:function(){const e=this._cursorController.getCursor().getSelection(),{line:t,column:i}=e.getStartPosition().getLineColumn(),{line:n,column:o}=e.getEndPosition().getLineColumn();return{start:{line:t,column:i,inWhitespace:i<=this._document.getLineText(t).match(f)[0].length},end:{line:n,column:o,inWhitespace:o<=this._document.getLineText(n).match(f)[0].length},isReversed:e.isReversed(),fileEndSelected:e.fileEndSelected()}},_adjustSelection:function(e){const t=this._document.getLineText(e.start.line).match(f)[0].length,i=this._document.getLineText(e.end.line).match(f)[0].length;let n=!1;const o=this._getSelectionInfo();if(e.start.inWhitespace&&e.start.column<=t&&(o.start.column=e.start.column,n=!0),e.end.inWhitespace&&e.end.column<=i&&(o.end.column=e.end.column,n=!0),n){const t=this._internalDocument.getPositionForLineColumn(o.start.line,o.start.column),i=this._internalDocument.getPositionForLineColumn(o.end.line,o.end.column),n=new c(t,i,e.isReversed,e.fileEndSelected);this._cursorController.getCursor().setSelection(n)}},_formatLines:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.language.common.smartindenting.AbstractSmartIndenting._formatLines")},_updateActionsOnDocumentChange:function(e){e&&t.isArray(e)&&e.some((function(e){if(e.type===r.READONLY_STATE_CHANGE_EVENT)return this._updateActionState(),!0}),this)},_updateActionState:function(){this._actionService.updateAction(h.FORMAT_CODE.SMART_INDENT_ACTION,{enabled:this._isWritableCodeInSelection()&&!this._isCursorReadOnly()})},_isWritableCodeInSelection:function(){var e=this._cursorController.getCursor();if(e.hasSelection()){var t=e.getSelection();return o.isWritableCodeInNodeRange(t.getStartPosition().getNode(),t.getEndPosition().getNode())}return o.isWritableCodeInNodeRange(e.getNode(),e.getNode())},_isCursorReadOnly:function(){var e=this._cursorController.getCursor(),t=e.getSelection();if(t){var i=t.getStartPosition().getNode(),n=t.getEndPosition().getNode(),o=s.getParagraphNodesInRange(i,n);return 0===a.getWritableChunksInRange(this._internalDocument,o).length}return e.isCursorReadOnly()},destroy:function(){this.inherited(arguments),this._actions.forEach((function(e){this._actionService.removeAction(e.id)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3934),i(3935),i(3936),i(3937)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/gotoDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(218),i(236),i(899),i(1935)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=function(e){e=e||{};var t,n=i.getLocalization("dojo.cldr","number",i.normalizeLocale(e.locale)),o=e.pattern?e.pattern:n[(e.type||"decimal")+"Format"];return t="number"==typeof e.places?e.places:"string"==typeof e.places&&e.places.length>0?e.places.replace(/.*,/,""):-1!=o.indexOf(".")?o.split(".")[1].replace(/[^#0]/g,"").length:0,{sep:n.decimal,places:t}},s=e("dijit.form.NumberTextBoxMixin",null,{pattern:function(e){return"("+(this.focused&&this.editOptions?this._regExpGenerator(t.delegate(e,this.editOptions))+"|":"")+this._regExpGenerator(e)+")"},value:NaN,editOptions:{pattern:"#.######"},_formatter:o.format,_regExpGenerator:o.regexp,_decimalInfo:a(),postMixInProperties:function(){this.inherited(arguments),this._set("type","text")},_setConstraintsAttr:function(e){var t="number"==typeof e.places?e.places:0;t&&t++,"number"!=typeof e.max&&(e.max=9*Math.pow(10,15-t)),"number"!=typeof e.min&&(e.min=-9*Math.pow(10,15-t)),this.inherited(arguments,[e]),this.focusNode&&this.focusNode.value&&!isNaN(this.value)&&this.set("value",this.value),this._decimalInfo=a(e)},_onFocus:function(){if(!this.disabled&&!this.readOnly){var e=this.get("value");if("number"==typeof e&&!isNaN(e)){var t=this.format(e,this.constraints);void 0!==t&&(this.textbox.value=t)}this.inherited(arguments)}},format:function(e,i){var n=String(e);return"number"!=typeof e?n:isNaN(e)?"":"rangeCheck"in this&&this.rangeCheck(e,i)||!1===i.exponent||!/\de[-+]?\d/i.test(n)?(this.editOptions&&this.focused&&(i=t.mixin({},i,this.editOptions)),this._formatter(e,i)):n},_parser:o.parse,parse:function(e,i){var n=t.mixin({},i,this.editOptions&&this.focused?this.editOptions:{});if(this.focused&&null!=n.places){var o=n.places,r="number"==typeof o?o:Number(o.split(",").pop());n.places="0,"+r}var a=this._parser(e,n);return this.editOptions&&this.focused&&isNaN(a)&&(a=this._parser(e,i)),a},_getDisplayedValueAttr:function(){var e=this.inherited(arguments);return isNaN(e)?this.textbox.value:e},filter:function(e){return null==e||"string"==typeof e&&""==e?NaN:("number"!=typeof e||isNaN(e)||0==e||(e=o.round(e,this._decimalInfo.places)),this.inherited(arguments,[e]))},serialize:function(e,t){return"number"!=typeof e||isNaN(e)?"":this.inherited(arguments)},_setBlurValue:function(){var e=t.hitch(t.delegate(this,{focused:!0}),"get")("value");this._setValueAttr(e,!0)},_setValueAttr:function(e,t,i){void 0!==e&&void 0===i&&(i=String(e),"number"==typeof e?isNaN(e)?i="":("rangeCheck"in this&&this.rangeCheck(e,this.constraints)||!1===this.constraints.exponent||!/\de[-+]?\d/i.test(i))&&(i=void 0):e?e=void 0:(i="",e=NaN)),this.inherited(arguments,[e,t,i])},_getValueAttr:function(){var e=this.inherited(arguments);if(!isNaN(e)||""===this.textbox.value)return e;if(!1!==this.constraints.exponent&&/\de[-+]?\d/i.test(this.textbox.value)&&new RegExp("^"+o._realNumberRegexp(t.delegate(this.constraints))+"$").test(this.textbox.value)){var i=Number(this.textbox.value);return isNaN(i)?void 0:i}},isValid:function(e){if(!this.focused||this._isEmpty(this.textbox.value))return this.inherited(arguments);var t=this.get("value");return!(isNaN(t)||!this.rangeCheck(t,this.constraints))&&(!(!1===this.constraints.exponent||!/\de[-+]?\d/i.test(this.textbox.value))||this.inherited(arguments))},_isValidSubset:function(){var e="number"==typeof this.constraints.min,t="number"==typeof this.constraints.max,i=this.get("value");if(isNaN(i)||!e&&!t)return this.inherited(arguments);var o=0|i,r=i<0,a=-1!=this.textbox.value.indexOf(this._decimalInfo.sep),s=this.maxLength||20,l=s-this.textbox.value.length,c=a?this.textbox.value.split(this._decimalInfo.sep)[1].replace(/[^0-9]/g,""):"",d=a?o+"."+c:o+"",u=n.rep("9",l),h=i,p=i;return r?h=Number(d+u):p=Number(d+u),!(e&&p<this.constraints.min||t&&h>this.constraints.max)}}),l=e("dijit.form.NumberTextBox",[r,s],{baseClass:"dijitTextBox dijitNumberTextBox"});return l.Mixin=s,l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(218),i(1936),i(1403)],o=i.dj.d(n,(function(e,t,i){return e("dijit.form.RangeBoundTextBox",i,{rangeMessage:"",rangeCheck:function(e,t){return(!("min"in t)||this.compare(e,t.min)>=0)&&(!("max"in t)||this.compare(e,t.max)<=0)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var e=this.get("value");if(null==e)return!1;var t=!1;if("min"in this.constraints){var i=this.constraints.min;t=this.compare(e,"number"==typeof i&&i>=0&&0!=e?0:i)<0}if(!t&&"max"in this.constraints){var n=this.constraints.max;t=this.compare(e,"number"!=typeof n||n>0?n:0)>0}return t},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange()},isValid:function(e){return this.inherited(arguments)&&(this._isEmpty(this.textbox.value)&&!this.required||this.isInRange(e))},getErrorMessage:function(e){var t=this.get("value");return null==t||""===t||"number"==typeof t&&isNaN(t)||this.isInRange(e)?this.inherited(arguments):this.rangeMessage},postMixInProperties:function(){this.inherited(arguments),this.rangeMessage||(this.messages=t.getLocalization("dijit.form","validate",this.lang),this.rangeMessage=this.messages.rangeMessage)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(245),i(211),i(1401)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.form.MappedTextBox",n,{postMixInProperties:function(){this.inherited(arguments),this.nameAttrSetting=""},_setNameAttr:"valueNode",serialize:function(e){return e.toString?e.toString():""},toString:function(){var e=this.filter(this.get("value"));return null!=e?"string"==typeof e?e:this.serialize(e,this.constraints):""},validate:function(){return this.valueNode.value=this.toString(),this.inherited(arguments)},buildRendering:function(){this.inherited(arguments),this.valueNode=i.place("<input type='hidden'"+(this.name&&!t("msapp")?' name="'+this.name.replace(/"/g,"&quot;")+'"':"")+"/>",this.textbox,"after")},reset:function(){this.valueNode.value="",this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._fragmentStartNodes=[],this._enabled=!1},onDocumentFragmentsUpdated:function(){},getDocumentFragmentStartNodes:function(){return this._fragmentStartNodes},enable:function(){this._enabled=!0,this._update()},_update:function(){throw new Error("Unimplemented API: DocumentFragmentContributor._update")},disable:function(){this._enabled=!1,this._fragmentStartNodes=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(219),i(207),i(549),i(1404),i(333)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{_FEATURE_ID:"matlab.refactor.function",_END_STRING:"end",_GET_FUNCTION_NAME_REQUEST_PREFIX:"/refactoring/function/getFunctionNameRequest/",_GET_FUNCTION_NAME_RESPONSE_PREFIX:"/refactoring/function/getFunctionNameResponse/",_WRITE_FILE_REQUEST:"/mlx/service/writeRequest",_WRITE_FILE_RESPONSE_PREFIX:"/mlx/service/writeResponse/",constructor:function(e,t,n,o,r){this._internalDocument=e,this._mExporter=n,this._serializers=o,this._rtcId=r,this._messageService=i,t.request(this._FEATURE_ID,{}).then((function(){}),(function(){})),this._setupSubscriptions(),this._getFileNamePromise=null,this._writeFilePromise=null},_setupSubscriptions:function(){this._messageService.subscribe(this._GET_FUNCTION_NAME_RESPONSE_PREFIX+this._rtcId,"_handleGetFunctionNameResponse",this),this._messageService.subscribe(this._WRITE_FILE_RESPONSE_PREFIX+this._rtcId,"_handleWriteFileResponse",this)},promptForFile:function(e){return null!==this._getFileNamePromise&&this._getFileNamePromise.reject(),this._getFileNamePromise=new t,this._messageService.publish(this._GET_FUNCTION_NAME_REQUEST_PREFIX+this._rtcId,{fileTypes:e}),this._getFileNamePromise},_handleGetFunctionNameResponse:function(e){var t=e.data;this._getFileNamePromise&&(this._getFileNamePromise.resolve(t),this._getFileNamePromise=null)},saveToMLXFile:function(e,i){this._cancelWriteFilePromise(),this._writeFilePromise=new t;var n=this._createFunctionOpcPackage(i),r=o.toJson(n);return this._messageService.publish(this._WRITE_FILE_REQUEST,{rtcId:this._rtcId,content:r,contentType:"text/xml",filePath:e}),this._writeFilePromise},_handleWriteFileResponse:function(e){var t=e.data;null!==this._writeFilePromise&&(this._writeFilePromise.resolve({success:t.wasSuccessful}),this._writeFilePromise=null)},saveToMFile:function(e,i){this._cancelWriteFilePromise(),this._writeFilePromise=new t;var n=i.selection;return this._mExporter.export({range:n}).then(function(t){var n=i.getFunctionSignatureString()+"\n"+t+"\nend";this._messageService.publish(this._WRITE_FILE_REQUEST,{rtcId:this._rtcId,content:n,contentType:"text",filePath:e})}.bind(this)),this._writeFilePromise},_cancelWriteFilePromise:function(){null!==this._writeFilePromise&&this._writeFilePromise.reject()},_createFunctionOpcPackage:function(e){var t=a.paragraphNodesInRange(e.selection),i=this._internalDocument.createContainerForType("code").container,n=this._internalDocument.createNode(i.getDefaultChild());n.insertText(e.getFunctionSignatureString(),0),i.addChild(n),t.unshift(i);var s=this._internalDocument.createContainerForType("code").container,l=this._internalDocument.createNode(s.getDefaultChild());l.insertText(this._END_STRING,0),s.addChild(l),t.push(s);var c=new o;return r.writeNodeArrayContent(this._internalDocument,t,c,this._serializers),c},destroy:function(){this.inherited(arguments),null!==this._getFileNamePromise&&this._getFileNamePromise.reject(),null!==this._writeFilePromise&&this._writeFilePromise.reject(),this._messageService.unsubscribe(this._GET_FUNCTION_NAME_RESPONSE_PREFIX+this._rtcId,"_handleGetFunctionNameResponse",this),this._messageService.unsubscribe(this._WRITE_FILE_RESPONSE_PREFIX+this._rtcId,"_handleWriteFileResponse",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1405),i(241),i(208),i(234),i(249),i(260),i(497),i(403),i(313),i(379),i(389),i(294),i(1941),i(1942),i(399)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e(g,{_REFACTOR_ACTION_ID:null,_CONTEXT_MENU_TEXT:null,_ACTION_SHORTCUT:"",_FUNCTION_REFACTOR_BLOCK_TYPE:"FunctionRefactorEditBlock",constructor:function(e,t,i,o,r,a,s,l,c,d,u,h){this._actionService=e,this._document=t,this._internalDocument=i,this._cursorController=o,this._functionValidator=r,this._contextMenuContributor=a,this._errorNotifier=s,this._indentUtilities=l,this._refactoringConfig=c,this._lineNumberService=d,this._fileType=u,this._refactoringServiceWrapper=h,this._initializeActions(),this._setupListeners(),this.own(n.after(this._internalDocument,"readOnlyChanged",this._handleReadOnlyChange.bind(this),!0)),this.own(n.after(this._fileType,"onFileTypeChange",this._handleFileTypeChange.bind(this)))},enableForHiddenCode:function(){this._updateActionEnablement(!0)},disableForHiddenCode:function(){this._updateActionEnablement(!1)},_initializeActions:function(){this._actions=[{id:this._REFACTOR_ACTION_ID,key:this._ACTION_SHORTCUT,text:this._CONTEXT_MENU_TEXT,enabled:!0,callback:this._validateRefactoring.bind(this)}],this._actionService.loadActions(this._actions),this._contextMenuContributor.addActionToMap(h.REFACTORING,this._REFACTOR_ACTION_ID)},_setupListeners:function(){this._handles=[],this._handles.push(n.after(this._cursorController,"onUpdate",this._handleCursorUpdate.bind(this))),this._handles.forEach((function(e){this.own(e)}),this)},_handleReadOnlyChange:function(e){e?this._updateActionEnablement(!1):this._updateActionEnablement(!0)},_handleFileTypeChange:function(){this._fileType.isClass()?this._updateActionEnablement(!1):this._updateActionEnablement(!0)},_updateActionEnablement:function(e){this._actions.forEach((function(t){this._actionService.updateAction(t.id,{enabled:e})}),this),e?this._setupListeners():this._removeListeners()},_handleCursorUpdate:function(){if(this._errorNotifier.isErrorNotificationVisible()){var e=this._getCursor();(this._errorTooltipPosition&&0!==c.comparePositions(e.getCursorPosition(),this._errorTooltipPosition)||e.isHidden())&&(this._errorNotifier.closeTooltip(),this._errorTooltipPosition=null)}},_validateRefactoring:function(){var e=f.getSelection(this._cursorController);return this._startMonitoringDocumentChanges(),this._functionValidator.validateDocumentState().then(function(t){t?this._showError(t):(this._selectionToRefactor=f.getAdjustedSelectionRangeToRefactor(e),this._doRefactor())}.bind(this)),!0},_showError:function(e){var t=this._cursorController.getCursor().getCursorPosition();this._errorTooltipPosition=this._internalDocument.getPositionForLineColumn(t.getLine(),t.getColumn());var i=p.getErrorMessageForCondition(e);this._errorNotifier.showError(t,i)},_showAnalysisError:function(e){var t=this._cursorController.getCursor().getCursorPosition();this._errorTooltipPosition=this._internalDocument.getPositionForLineColumn(t.getLine(),t.getColumn()),this._errorNotifier.showError(t,e.messageText)},_showDocumentModifiedError:function(e){i.displayAlertDialog(e,t.documentModified,{modal:!0})},_startMonitoringDocumentChanges:function(){this._documentChanged=!1,this._docChangeListener=n.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChange.bind(this),!0)},_cleanupRefactoringListeners:function(){this._docChangeListener&&(this._docChangeListener.remove(),this._docChangeListener=null)},_handleDocumentChange:function(e){var t=!1;e.forEach((function(e){e.type!==r.READONLY_STATE_CHANGE_EVENT&&(t=!0)})),this._documentChanged=t,this._cleanupRefactoringListeners()},_hasDocumentBeenModified:function(){return this._documentChanged},_doRefactor:function(){throw new Error("Unimplemented API: MW.rtc.plugins.refactor.function.AbstractFunctionRefactor._doRefactor")},_createRefactoringRequestRegion:function(){var e=this._selectionToRefactor.getStartPosition(),t=e.getLine()-1,i=this._lineNumberService.getCodeLineNumberFromLineNumber(t),n=e.getColumn();-1===i&&(i=this._lineNumberService.getCodeLineNumberAtOrAfterLineNumber(t),n=1);var o=this._selectionToRefactor.getEndPosition(),r=o.getLine()-1,a=this._lineNumberService.getCodeLineNumberFromLineNumber(r),s=o.getColumn();return-1===a&&(a=this._lineNumberService.getCodeLineNumberAtOrBeforeLineNumber(r),s=this._document.getLineLength(this._lineNumberService.getLineNumberFromCodeLineNumber(a)+1)+1),{startLine:i,startColumn:n,endLine:a,endColumn:s}},_insertCallSite:function(e,t,i,n){var o=this._document.createPositionAtLineColumn(e-1,t-1);n&&(i+="\n"),this._document.setReadOnlyLine(o.getLine(),!1),this._insertCode(i,o),this._indentUtilities.format(o.getLine()-1),o.destroy()},_replaceLineWithCode:function(e,t){var i=t.getNode().rootContainer(),n=t.getLine(),o=this._internalDocument.createContainerForType("code").container,r=this._internalDocument.createNode(o.getDefaultChild());r.text=e,o.addChild(r);var c=this._document.startBlockEdit(this._FUNCTION_REFACTOR_BLOCK_TYPE),d=this._internalDocument.insertAtPosition(o,t).events;c.appendRedoEvents(d),c.appendUndoEvents(a.translateEventsForUndo(d)),this._internalDocument.deleteNode(i,{node:o,offset:0}),d=[s.create(n,n)],c.appendUndoEvents([l.create(n,n,0)]),c.appendRedoEvents(d),this._internalDocument.emitDocumentEvents(d),this._document.endBlockEdit(c)},_insertCode:function(e,t){var i=o.isCodeContainer(t.getNode());if(!i&&0===t.getNode().getText().length){var n=t.getNode().rootContainer();this._internalDocument.convertParagraph("code",n)}(i=o.isCodeContainer(t.getNode()))?this._document.insertText(e,t.getLine(),t.getColumn()):this._replaceLineWithCode(e,t)},_getCursor:function(){return this._cursorController.getCursors()[0]},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},destroy:function(){this.inherited(arguments),this._removeListeners(),this._errorTooltipPosition=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(249),i(260),i(577),i(663)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e(o,{type:t.LINES_CHANGED,primitiveProperties:["toStartLine","toEndLine"],constructor:function(e,t,i,n){this.toStartLine=i,this.toEndLine=n},getMutation:function(){return n.create(this.startLine,this.endLine,this.toStartLine,this.toEndLine)},getUndoEvent:function(){return new r(this.toStartLine,this.toEndLine,this.startLine,this.endLine)}});return{create:function(e,n,o,a){return i.assertValidLines(o,a,t.LINES_CHANGED),new r(e,n,o,a)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1405)],o=i.dj.d(n,(function(e){return{ERROR_CONDITIONS:{NO_SELECTION:1,NO_CODE_SELECTED:2,SYNTAX_ERROR:3,READ_ONLY_SELECTION:4,COLUMN_SELECTION:5,FULL_LINE_NOT_SELECTED:6,LINE_CONTINUATION:7,WITHIN_BLOCK_STATEMENT:8,LOCAL_FUNCTION_SELECTED:9,CLASS_FILE:10,GLOBAL_VARIABLE:11,WITHIN_BLOCK_COMMENT:12},getErrorMessageForCondition:function(t){var i=null;switch(t){case this.ERROR_CONDITIONS.NO_SELECTION:i=e.noSelection;break;case this.ERROR_CONDITIONS.NO_CODE_SELECTED:i=e.noCodeSelected;break;case this.ERROR_CONDITIONS.SYNTAX_ERROR:i=e.syntaxError;break;case this.ERROR_CONDITIONS.READ_ONLY_SELECTION:i=e.readOnlySelection;break;case this.ERROR_CONDITIONS.COLUMN_SELECTION:i=e.columnSelection;break;case this.ERROR_CONDITIONS.FULL_LINE_NOT_SELECTED:i=e.partialLineSelected;break;case this.ERROR_CONDITIONS.LINE_CONTINUATION:i=e.lineContinuation;break;case this.ERROR_CONDITIONS.WITHIN_BLOCK_STATEMENT:i=e.insideBlockStatement;break;case this.ERROR_CONDITIONS.LOCAL_FUNCTION_SELECTED:i=e.localFunctionSelection;break;case this.ERROR_CONDITIONS.CLASS_FILE:i=e.classFile;break;case this.ERROR_CONDITIONS.GLOBAL_VARIABLE:i=e.globalVariable;break;case this.ERROR_CONDITIONS.WITHIN_BLOCK_COMMENT:i=e.insideBlockComment}return i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(281),i(810),i(266),i(233)],o=i.dj.d(n,(function(e,t,i,n){return{_DEFAULT_FUNCTION_NAME:"untitled",generateNewUntitledFunctionName:function(i,o){var r=this._DEFAULT_FUNCTION_NAME,a=i.getVariableData(),s=Object.keys(a);if(e.hasFileLocation(o)){var l=o.getFileName();l=n.getFileNameNoExtension(l),s.push(l)}return t.generateUniqueName(r,s)},getSelection:function(e){return e.hasSelection()?e.getSelection()[0]:null},getAdjustedSelectionRangeToRefactor:function(e){var t=this.adjustSelectionForTripleClickSelection(e),n=t.getStartPosition();n=n.getNode().rootContainer().startPosition();var o=t.getEndPosition();return o=o.getNode().rootContainer().endPosition(),new i(n,o)},adjustSelectionForTripleClickSelection:function(e){var t=e.getEndPosition();if(1===t.getColumn()){var n=t.getNode().prevNode();n&&(t=n.endPosition())}return new i(e.getStartPosition(),t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1834)],o=i.dj.d(n,(function(e,t){return e(null,{_FUNCTION_KEYWORD:"function",constructor:function(e,t,i,n,o){this.functionName=e,this.qualifiedFunctionName=t,this.functionInputs=i,this.functionOutputs=n,this.selection=o},getFunctionSignatureString:function(){var e=this._FUNCTION_KEYWORD+" ";return e+=t.constructFunctionSyntax(this.functionName,this.functionOutputs,this.functionInputs)},getCallSiteString:function(){return t.constructFunctionSyntax(this.qualifiedFunctionName,this.functionOutputs,this.functionInputs)+";"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{flattenFunctionDeclaration:function(e){return e.getNestedFunctionDeclarations().reduce(function(e,t){return e.concat(this.flattenFunctionDeclaration(t))}.bind(this),[e])},getLastDeclaredLocalFunction:function(e){var t=null;return e.forEach((function(e){(!t||e.getStartLine()>t.getStartLine())&&(t=e)})),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(204),i(212)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e){this._synchronizables=e.map((function(e){return{isWaitingForUpdate:!1,synchronizable:e}})),this._allReadyPromise=null},whenAllReady:function(e){this._areAllReady()?e():(this._allReadyPromise||(this._allReadyPromise=new n),this._allReadyPromise.then(e),this._addWhenReadyCallbacks())},_areAllReady:function(){return 0===this._getAllDirty().length},_getAllDirty:function(){return this._synchronizables.filter((function(e){return!e.synchronizable.isReady()}))},_getAllNeedingUpdate:function(){return this._getAllDirty().filter((function(e){return!e.isWaitingForUpdate}))},_addWhenReadyCallbacks:function(){this._getAllNeedingUpdate().forEach((function(e){e.isWaitingForUpdate=!0,e.synchronizable.whenReady(i.hitch(this,this._handleSynchronizableBecomingClean,e))}),this)},_handleSynchronizableBecomingClean:function(e){if(e.isWaitingForUpdate=!1,this._areAllReady()){if(this._allReadyPromise){var t=this._allReadyPromise;this._allReadyPromise=null,t.resolve()}}else this._addWhenReadyCallbacks()},destroy:function(){this._synchronizables=[],this._allReadyPromise&&this._allReadyPromise.reject(),this._allReadyPromise=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(919),i(390)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){this._type=i.RECEIVING_INSTRUCTION.INSERT_IF_COMPATIBLE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(210),i(211),i(213),i(206),i(215),i(277),i(30),i(437),i(373)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([s],{_STALE_CLASS:"alertPlugin-isStale",_HAS_TOOLTIP_CLASS:"alertPlugin-hasTooltip",_MOUSE_DOWN_EVENT:window.PointerEvent?"pointerdown":"mousedown",_MOUSE_UP_EVENT:window.PointerEvent?"pointerup":"mouseup",statics:{onAlertBecameActive:function(e){}},constructor:function(e){this._message="",this._tooltip=null,this._isTooltipVisible=!1,this._view=e.view,this._position=e.position,this._tooltipPosition=["after-centered","below","below-alt","below-centered","above","above-alt","above-centered"],this._mouseListeners=[],this._tooltipListeners=[],this._blockedMouseDown=!1},startup:function(){this.inherited(arguments)},destroy:function(){this._removeMouseListeners(),this._removeTooltipAndListeners(),this.inherited(arguments)},getType:function(){throw new Error("Unimplemented API: MW.rtc.plugins.language.matlab.alert.AlertWidgetBase.getType")},setMessage:function(e){this._message=e,this._removeMouseListeners(),this._removeTooltipAndListeners(),this._isTooltipEnabled()&&(this._addMouseListeners(),n.add(this.domNode,this._HAS_TOOLTIP_CLASS),this._updateTooltipVisibility())},getMessage:function(){return this._message},_showMessage:function(){this._tooltip||this._initializeTooltips(),this._tooltip.connectorNode.style.top="",this._tooltip.connectorNode.style.left="",l.open({parent:this,popup:this._tooltip,around:this.domNode,orient:this._tooltipPosition,maxHeight:1/0,onClose:t.hitch(this,"_onTooltipClose")}),this._adjustTooltipZIndex("99"),this._tooltip.set("data-testid","alertPluginTooltip_visible"),this._payload.isActive=!0,this._isTooltipVisible=!0,this.statics.onAlertBecameActive(this)},_hideMessage:function(e){if(this._tooltip){var t=this._payload.isActive;l.close(this._tooltip),this._tooltip.set("data-testid","alertPluginTooltip_hidden"),e&&(this._payload.isActive=t)}},_onTooltipClose:function(){this._payload.isActive=!1,this._isTooltipVisible=!1},setStaleness:function(e){e=e||!1,n.toggle(this.domNode,this._STALE_CLASS,e)},onMouseDown:function(e){e.stopPropagation(),this._blockedMouseDown=!0},onMouseUp:function(e){this._blockedMouseDown&&(e.stopPropagation(),this._payload.isActive=!this._payload.isActive,this._updateTooltipVisibility()),this._blockedMouseDown=!1},onWindowMouseUp:function(){this._blockedMouseDown=!1},_handleOtherAlertBecameActive:function(e){e!==this&&(this._payload.isActive=!1)},_wrapMessage:function(e){var t={className:"alertPlugin-alertMessage",innerHTML:e};return o.create("div",t)},_isTooltipEnabled:function(){return this._message&&this._message.length>0},_initializeTooltips:function(){this._tooltip=new c({class:[d.TOOLTIP_CLASS,d.TOOLTIP_DIALOG_CLASS],content:this._wrapMessage(this._message)}),l.moveOffScreen(this._tooltip),this._addTooltipListeners()},_addMouseListeners:function(){this._mouseListeners=[a(this.domNode,this._MOUSE_DOWN_EVENT,t.hitch(this,"onMouseDown")),a(this.domNode,this._MOUSE_UP_EVENT,t.hitch(this,"onMouseUp")),a(window,this._MOUSE_UP_EVENT,t.hitch(this,"onWindowMouseUp"))]},_removeMouseListeners:function(){this._mouseListeners.forEach((function(e){e.remove()})),this._mouseListeners=[]},_addTooltipListeners:function(){this._tooltipListeners=[i.after(this._view,"onViewUpdated",t.hitch(this,"_updateTooltipVisibilityOnViewChange"),!0),i.after(this._position,"onChange",t.hitch(this,"_updateTooltipVisibility")),i.after(this.statics,"onAlertBecameActive",t.hitch(this,"_handleOtherAlertBecameActive"),!0)]},_removeTooltipAndListeners:function(){null!==this._tooltip&&(this._tooltipListeners.forEach((function(e){e.remove()})),this._tooltipListeners=[],this._hideMessage(!0),this._tooltip.destroy(),this._tooltip=null),n.remove(this.domNode,this._HAS_TOOLTIP_CLASS)},_updateTooltipVisibility:function(){if(this._isTooltipEnabled()){if(this._payload.isActive){var e=this._position.getLineColumn();if(this._view.isLineInView(e.line))return void this._showMessage()}this._hideMessage(!0)}},_updateTooltipVisibilityOnViewChange:function(e){(u.hasScrollEvent(e)||u.hasSizingEvent(e))&&this._updateTooltipVisibility()},_adjustTooltipZIndex:function(e){for(var t=this._tooltip.domNode;t&&!n.contains(t,"dijitTooltipDialogPopup");)t=t.parentNode;r.set(t,"zIndex",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(207)],o=i.dj.d(n,(e,t)=>class extends t{constructor(e){super(),this._document=e}performIndentOnLine(t){e.error("Unimplemented API: performIndentOnLine")}performSnapIndentOnLine(t,i,n){e.error("Unimplemented API: performSnapIndentOnLine")}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(333),i(1950)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._messageTag=e.tag,this._severity=e.severity,this._range=e.range,this._autoFixMessage=e.fix?e.fix.fixMessage:"",this._autoFixChanges=e.fix?e.fix.fixChanges:[],this._allowFixAll=!!e.fix&&e.fix.allowFixAll,this._fixTag=e.fix?e.fix.fixTag:"",this._isError=e.metadata.isError,this._isWarning=e.metadata.isWarning,this._isSuppressible=e.metadata.isSuppressible,this._ignoreReadOnlyState=e.ignoreReadOnlyState||!1,this._cachedStartOffset=this.getStartPosition().getOffset(),this._cachedEndOffset=this.getEndPosition().getOffset()},getMessage:function(){return this.inherited(arguments)},getExtendedHelpMessage:function(){return this.inherited(arguments)},getMessageTag:function(){return this._messageTag},getSeverity:function(){return this._severity},getRange:function(){return this._range},getStartPosition:function(){return this._range.getStartPosition()},getEndPosition:function(){return this._range.getEndPosition()},getStartLine:function(){return this._range.getStartPosition().getLine()-1},getStartColumn:function(){return this._range.getStartPosition().getColumn()-1},getEndColumn:function(){return this._range.getEndPosition().getColumn()-1},isRangeValid:function(){return!(!this.getStartPosition().isValid()||!this.getEndPosition().isValid())&&(this._cachedStartOffset===this.getStartPosition().getOffset()&&this._cachedEndOffset===this.getEndPosition().getOffset())},isFixable:function(){return Boolean(!this.isReadOnly()&&this._autoFixChanges&&this._autoFixMessage)},getAutoFixMessage:function(){return this.isReadOnly()?null:this._autoFixMessage},getAutoFixChanges:function(){return this.isReadOnly()?null:this._autoFixChanges},allowFixAll:function(){return this.isFixable()&&this._allowFixAll},getFixTag:function(){return this._fixTag},isReadOnly:function(){return!this._ignoreReadOnlyState&&t.isRangeReadOnly(this.getRange())},isError:function(){return this._isError},isWarning:function(){return this._isWarning},getIconCssClasses:function(){let e=["severityStatusButton"];return this.isWarning()?e.push("statusWarning"):this.isError()&&e.push("statusError"),e},isSuppressible:function(){return this._isSuppressible},destroy:function(){this.inherited(arguments),this._range.destroy(),this._autoFixChanges.forEach((function(e){e.range.destroy()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(1109)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e){this._message=e.message,this._extendedHelpUrl=e.extendedHelpUrl},getMessage:function(){return this._message},hasExtendedHelp:function(){return Boolean(this._extendedHelpUrl)},getExtendedHelpMessage:function(){const e=new t;return this._extendedHelpUrl?i.getCshHtml(this._extendedHelpUrl).then(t=>{e.resolve(t)}):e.reject("No URL or HTML provided"),e.promise}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1952),i(921),i(571),i(229),i(208),i(207),i(1953)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(s,{_DISPLAY_ENABLED:"matlab.codeanalyzer.EnableIntegratedMessages",_UNDERLINE_OPTION:"matlab.codeanalyzer.UnderlineOption",_SYNTAX_ERROR_SETTING_ID:"matlab.colors.SyntaxErrorColor",_WARNINGS_SETTING_ID:"matlab.colors.programmingtools.CodeAnalyzerWarningColor",_AUTOFIX_HIGHLIGHT_CHECKBOX_SETTING_ID:"matlab.colors.programmingtools.HighlightAutofixes",_AUTOFIX_HIGHLIGHT_COLOR_SETTING_ID:"matlab.colors.programmingtools.AutofixHighlightColor",constructor:function(e,t,i,n){this._settingService=e,this._codeAnalyzerEnableState=i,this._globalStyleChanger=n,this._squiggleId=t,this._errorStylesheet=null,this._warningStylesheet=null,this._prevErrorValue=[],this._prevWarningsValue=[],this._prevAutofixValue=[],this._autoFixHighlightEnabled=!0,this._underlineMode=l.UNDERLINE_ALL,this._setInitialPreferences(),this.own(this._settingService.listenTo(this._DISPLAY_ENABLED,this._setEnabled.bind(this),!0)),this.own(this._settingService.listenTo(this._UNDERLINE_OPTION,this._setUnderlineMode.bind(this),!0)),this._initializeColorPreferences(),this.own(this._settingService.listenTo(this._SYNTAX_ERROR_SETTING_ID,this._handleErrorColorPreferenceChange.bind(this))),this.own(this._settingService.listenTo(this._WARNINGS_SETTING_ID,this._handleWarningsColorPreferenceChange.bind(this))),this.own(this._settingService.listenTo(this._AUTOFIX_HIGHLIGHT_CHECKBOX_SETTING_ID,this._autoFixPreferenceChange.bind(this))),this.own(this._settingService.listenTo(this._AUTOFIX_HIGHLIGHT_COLOR_SETTING_ID,this._handleAutoFixColorChange.bind(this)))},onColorChange:function(){},_initializeColorPreferences:function(){var e=this._settingService.get(this._SYNTAX_ERROR_SETTING_ID,[255,0,0]),t=this._settingService.get(this._WARNINGS_SETTING_ID,[255,148,0]),i=this._settingService.get(this._AUTOFIX_HIGHLIGHT_COLOR_SETTING_ID,[238,225,180]);this._handleWarningsColorPreferenceChange(t),this._handleErrorColorPreferenceChange(e),this._handleAutoFixColorChange(i)},_handleErrorColorPreferenceChange:function(e){if(!r.arrayEquals(e,this._prevErrorValue)){this._prevErrorValue=e;var n=new o(e).toHex(),a=t.replace(i,{color:n});this._setSvgStyle(a,".error_squiggle_rte"+this._squiggleId),this.onColorChange()}},_handleWarningsColorPreferenceChange:function(e){if(!r.arrayEquals(e,this._prevWarningsValue)){this._prevWarningsValue=e;var n=new o(e).toHex(),a=t.replace(i,{color:n});this._setWarningSvgStyle(a,".warning_squiggle_rte"+this._squiggleId),this.onColorChange()}},_autoFixPreferenceChange:function(e){if(this._autoFixHighlightEnabled!==e){if(this._autoFixHighlightEnabled=e,!0===e){var t=this._settingService.get(this._AUTOFIX_HIGHLIGHT_COLOR_SETTING_ID,[238,225,180]);this._handleAutoFixColorChange(t)}this.onColorChange()}},_handleAutoFixColorChange:function(e){if(!r.arrayEquals(e,this._prevAutofixValue)){this._prevAutofixValue=e;var t="rgb("+e.join(",")+")";this._globalStyleChanger.insertOrReplaceRule(".warningHighlight"+this._squiggleId,[{name:"background-color",value:t}]),this.onColorChange()}},_setSvgStyle:function(e,t){var i=window.btoa(e);this._errorStylesheet||(this._errorStylesheet=document.createElement("style"),document.body.appendChild(this._errorStylesheet)),this._errorStylesheet.innerHTML=t+"{background-image: url(data:image/svg+xml;base64,"+i+");background-repeat: repeat-x; background-position-x: left;background-position-y: 100%;}"},_setWarningSvgStyle:function(e,t){var i=window.btoa(e);this._warningStylesheet||(this._warningStylesheet=document.createElement("style"),document.body.appendChild(this._warningStylesheet)),this._warningStylesheet.innerHTML=t+"{background-image: url(data:image/svg+xml;base64,"+i+");background-repeat: repeat-x; background-position-x: left;background-position-y: 100%;}"},isAutofixHighlightEnabled:function(){return this._autoFixHighlightEnabled},_setEnabled:function(e){this._codeAnalyzerEnableState.setEnabled(e)},getUnderlineMode:function(){return this._underlineMode},_setUnderlineMode:function(e){this._underlineMode=e,this.onUnderlineModeChange()},onUnderlineModeChange:function(){},_setInitialPreferences:function(){var e=this._settingService.get(this._AUTOFIX_HIGHLIGHT_CHECKBOX_SETTING_ID,!0);this._autoFixPreferenceChange(e);var t=this._settingService.get(this._DISPLAY_ENABLED,!0);this._setEnabled(t);var i=this._settingService.get(this._UNDERLINE_OPTION,l.UNDERLINE_ALL);this._setUnderlineMode(i)},destroy:function(){this.inherited(arguments),this._errorStylesheet&&this._errorStylesheet.remove(),this._warningStylesheet&&this._warningStylesheet.remove()}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 1" style="enable-background:new 0 0 30 1;" height="15" width="450" xml:space="preserve"><pattern id="zigzag" viewBox="0 0 27 30" height="1.2" width="0.3" patternUnits="userSpaceOnUse"><polygon class="st0" points="0,55 0,49 14,33 28,49 28,55 14,39 " fill="{color}"></polygon></pattern><rect fill="url(#zigzag)" x="0" y="0.2" width="100%" height="1.5"></rect></svg>'},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{UNDERLINE_NONE:0,UNDERLINE_ERRORS_ONLY:1,UNDERLINE_ALL:2}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(253),i(1406),i(1955)],o=i.dj.d(n,(function(e,t,i,n){return e([i,n],{_DATA_TEST_ID:"autoFixButton",constructor:function(e){this._buttonLabel=t.fixButtonLabel,this._buttonCallback=function(){e.callback(e.message.getAutoFixChanges())},this._shouldCreateButton=e.callback}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(411),i(203),i(206),i(1110)],o=i.dj.d(n,(function(e,t,i,n){return t(n,{_DATA_TEST_ID:"tooltipButton",_BUTTON_CLASS_LIST:["tooltipInlineButton","actionButton"],constructor:function(e){this._buttonLabel=e.buttonLabel,this._buttonCallback=e.callback,this._shouldCreateButton=void 0===e.shouldCreateButton||Boolean(e.shouldCreateButton)},postCreate:function(){this.inherited(arguments),this._shouldCreateButton&&(this._button=this.getButton())},_createButton:function(){const t=new e({label:this._buttonLabel});return t.set("data-testid",this._DATA_TEST_ID),i(t,"click",function(){this._buttonCallback()}.bind(this)),this._BUTTON_CLASS_LIST.forEach((function(e){t.domNode.classList.add(e)})),t.placeAt(this.tooltipContentNode),t},getButtonDomNode:function(){return this.getButton().domNode},getButton:function(){return this._button?this._button:this._shouldCreateButton?this._createButton():this._createDimmedButton()},_createDimmedButton:function(){const t=new e({label:this._buttonLabel});return this._BUTTON_CLASS_LIST.forEach((function(e){t.domNode.classList.add(e)})),t.domNode.classList.add("dimmedButton"),t},isButtonEnabled:function(){return this._shouldCreateButton}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(1407),i(1955),i(1406),i(1110)],o=i.dj.d(n,(function(e,t,i,n,o){return{getDomNode:function(e,t,i){const n=this._getCssGridConfiguration(e,t),o=this._getCssGridColumnNumber(n),r=e.length,a=this._createCssGridDomNode(o,r);return this._addTooltipContentsToGrid(e,n,a,i),a},_createCssGridDomNode:function(t,i){const n=e.create("div",{id:"cssGridTooltip",class:"gridContainer"});let o="";for(let e=0;e<t;e++)o+="auto ";return n.style.gridTemplateColumns=o,i>1&&n.classList.add("multiLineTooltip"),n},_addTooltipContentsToGrid:function(e,t,o,r){const a="1/"+(this._getCssGridColumnNumber(t)+1),s=[];let l=!1;for(let c=0;c<e.length;c++){const d=e[c].tooltipContent,u=e[c].lineNumber,h=d.isInstanceOf(i),p=d.isInstanceOf(n);c===e.length-1&&d.hideDivider();const f=d.getIconDomNode();f.classList.add("gridItem"),f.classList.add("gridIcon");let g=this._getPlaceHolderDomNode();t.hasLineNumberColumn&&(g=this._getLineDomNode(u,r),g.classList.add("gridItem"),g.classList.add("gridText"));const m=d.getMessageTextDomNode();m.classList.add("gridItem"),m.classList.add("gridText");let _=this._getPlaceHolderDomNode();t.hasButtonColumn&&h&&(_=d.getButtonDomNode(),_.classList.add("gridItem"));let v,b=this._getPlaceHolderDomNode();t.hasExtendedHelpButtonColumn&&p&&(b=d.getExtendedHelpButtonDomNode(),b.classList.add("gridItem"),v=d.getExtendedHelpAreaDomNode(),v.classList.add("gridItem"),v.classList.add("extendedHelpArea"),v.style.gridColumn=a,d.isExtendedHelpButtonEnabled()&&(s.push(d),l=!0)),this._layout(t,o,f,g,m,b,_,v)}l&&(o.classList.add("extendedMessageTooltip"),o.addEventListener("onExpand",function(e){this._collapseExpandedDetailsButtons(e,s)}.bind(this)))},_layout:function(e,t,i,n,o,r,a,s){e.hasIconColumn&&t.appendChild(i),e.hasLineNumberColumn&&t.appendChild(n),e.hasMessageTextColumn&&t.appendChild(o),e.hasExtendedHelpButtonColumn&&t.appendChild(r),e.hasButtonColumn&&t.appendChild(a),s&&t.appendChild(s)},_getCssGridConfiguration:function(e,t){let r=!1,a=t,s=!1,l=!1,c=!1;for(let t=0;t<e.length;t++){const a=e[t].tooltipContent,d=a.isInstanceOf(o),u=a.isInstanceOf(i),h=a.isInstanceOf(n);d&&(s=!0),d&&a.getIconCssClass()&&(r=!0),u&&a.isButtonEnabled()&&(c=!0),h&&a.isExtendedHelpButtonEnabled()&&(l=!0)}return{hasIconColumn:r,hasLineNumberColumn:a,hasMessageTextColumn:s,hasExtendedHelpButtonColumn:l,hasButtonColumn:c}},_getCssGridColumnNumber:function(e){let t=0;return e.hasIconColumn&&t++,e.hasLineNumberColumn&&t++,e.hasMessageTextColumn&&t++,e.hasExtendedHelpButtonColumn&&t++,e.hasButtonColumn&&t++,t},_getPlaceHolderDomNode:function(){const e=document.createElement("div");return e.classList.add("gridItem"),e},_getLineDomNode:function(e,i){const n=i.getCodeLineNumberFromLineNumber(e),o=document.createElement("div");return o.innerHTML=t.line+" "+n+": ",o},_collapseExpandedDetailsButtons:function(e,t){for(let i=0;i<t.length;i++){const n=t[i];e.extendedMessageTooltipContent!==n&&n.collapseExtendedHelp()}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(206),i(208),i(4070),i(4071)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(e,{constructor:function(e,t,s){this._tooltipView=new a(e),this.own(this._tooltipView),this._tooltipEventHandler=new r(e,s),this.own(this._tooltipEventHandler),this.own(o.after(this._tooltipEventHandler,"onTooltip",i.hitch(this,"_onTooltip"),!0)),this.own(o.after(this._tooltipEventHandler,"onHideTooltip",i.hitch(this,"hideTooltip"),!0)),this.own(o.after(t,"onDocumentChanged",i.hitch(this,"clearTooltip"))),this.own(o.after(t,"onDocumentReset",i.hitch(this,"clearTooltip"))),this._isMouseInTooltip=!1;var l=this._tooltipView.getDomNode();l.onmouseenter=i.hitch(this,"_handleMouseEnter",!0),l.onmouseleave=i.hitch(this,"_handleMouseLeave",!1),this.own(n(l,"dragenter",i.hitch(this,"clearTooltip"))),this.own(n(l,"dragover",i.hitch(this,"clearTooltip")))},onTooltip:function(e,t){},_onTooltip:function(e,t){!e.rteNode&&e.parentNode&&e.parentNode.rteNode&&(e=e.parentNode),this.onTooltip(e.rteNode||null,t)},showTooltip:function(){this._tooltipView.show.apply(this._tooltipView,arguments)},hideTooltip:function(){this._tooltipView.hide(),this._isMouseInTooltip=!1,this.onHide()},isShowing:function(){return this._tooltipView.isShowing()},onHide:function(){},clearTooltip:function(){this._tooltipEventHandler.clear(),this.hideTooltip()},_handleMouseEnter:function(){this._isMouseInTooltip=!0,this.onMouseEnter()},onMouseEnter:function(){},_handleMouseLeave:function(){this._isMouseInTooltip=!1,this.onMouseLeave()},onMouseLeave:function(){},isMouseInTooltip:function(){return this._isMouseInTooltip}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){let e=null;return{openFileInEditor:(...t)=>((()=>{if(null===e)throw new Error("No Editor Application Implementation is Installed")})(),e.openFileInEditor(...t)),installImplementation:function(t){e=t},releaseImplementation:function(){e=null}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TEMPORARY_INFO:4,ERROR:3,WARNING:2,INFO:1}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1961),i(814)],o=i.dj.d(n,(function(e,t){var i={};return i[t.FILE_NAME]=e,i[t.FOLDER_NAME]=e,i[t.COMPLETION]=e,i[t.SCALAR]=e,i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(1411),i(223),i(550)],o=i.dj.d(n,(function(e,t,i,n,o){var r="mwCompletion",a="mwCompletion__choiceContainer__choice",s=a+"--hover",l=a+"--selected",c=a+"__text",d=a+"__purpose",u=[s,l];function h(e,t){var i,n=null,o=e.parentNode.children,r=o.length,a=null;for(i=0;i<r;i+=1)if(o[i]===e){a=i;break}return null!==a&&(n=t>0?o[Math.min(r-1,a+t)]:o[Math.max(0,a+t)]),n}function p(e,t){return e.hasAttribute("data-completion")?e:e===t?null:p(e.parentNode,t)}var f=t(e,{baseClass:"mwCompletion",presenting:!1,attachedAt:"none",value:"",numberOfViewableChoices:5,constructor:function(){this.choices=[],this._updateChoiceCssClass(s)},buildRendering:function(){this.inherited(arguments),this._completionContainer=o.buildNode("div",{className:"choiceContainer",parent:this.domNode},r)},postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-focus","refuse"),this._mouseMoveCallback=this._handleMouseMove.bind(this),this._wheelCallback=this._handleMouseWheel.bind(this),this._mouseDownCallback=this._handleMouseDown.bind(this),this._mouseUpCallback=this._handleMouseUp.bind(this),this.domNode.addEventListener("mousemove",this._mouseMoveCallback),this.domNode.addEventListener("mousedown",this._mouseDownCallback),this.domNode.addEventListener("mouseup",this._mouseUpCallback),this._completionContainer.addEventListener("wheel",this._wheelCallback)},_handleMouseMove:function(e){var t,i,n=e.target;this._isVisibleChoiceNode(n)&&(t=n.classList.contains(a)?n:n.parentNode,this._isChoiceInHoveredState(t)||(i=t.getAttribute("data-completion"),this._updateChoiceCssClass(s),this._updateChoiceIndex(t),this.set("value",i)),this._hideExistingTooltip(),(n.classList.contains(d)||n.classList.contains(c))&&this._createTooltip(n))},_handleMouseDown:function(e){this._choiceIntendedToComplete=p(e.target,this.domNode)},_handleMouseUp:function(e){var t=p(e.target,this.domNode);if(null!==t&&t===this._choiceIntendedToComplete){var i=t.getAttribute("data-completion");this._triggerChangeEvent(i,i)}},_hideExistingTooltip:function(){var e=this.domNode.querySelector("."+d+"--showTooltip");e&&e.classList.remove(d+"--showTooltip");var t=this.domNode.querySelector("."+c+"--showTooltip");t&&t.classList.remove(c+"--showTooltip")},_createTooltip:function(e){if(e.offsetWidth<e.scrollWidth){var t,i,n,a,l,u=e.classList.contains(d)?d:c,h=e.classList.contains(d)?"purposeTooltip":"choiceTooltip";e.classList.add(u+"--showTooltip"),0===e.children.length?(i=e.textContent,t=o.buildNode("span",{className:h,text:i,parent:e},r)):t=e.children[0],n=this.domNode.querySelector("."+s),a=this._completionContainer.getBoundingClientRect().top,l=n.getBoundingClientRect().top-a,t.style.top=l+"px"}},_handleMouseWheel:function(e){this._hideExistingTooltip(),e.stopPropagation()},_triggerChangeEvent:function(e,t){this.emit("change",{mwEventData:{propertyName:"value",oldValue:e,newValue:t}})},_triggerSelectEvent:function(e,t){this.emit("select",{mwEventData:{propertyName:"value",oldValue:e,newValue:t}})},_removeChoiceClasses:function(e){u.forEach((function(t){e.classList.remove(t)}))},_updateChoiceCssClass:function(e){-1!==u.indexOf(e)&&(this._choiceClass=e)},_updateChoiceIndex:function(e){this._currentChoiceIndex=e.getAttribute("data-completionIndex")},_setValueAttr:function(e){if(void 0===e)throw new Error("Invalid Value. Value can only be a string");var t=this._removeOldChoice(this.get("value")),i=t?t.getAttribute("data-completion"):"";if(""===e)this._triggerSelectEvent(i,"");else{var n=this._getCurrentChoiceNode(e);if(n){n.classList.add(this._choiceClass);var o=n.getAttribute("data-completion");this._triggerSelectEvent(i,o),function(e,t){var i=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=i.top<n.top,r=i.bottom>n.bottom;o?t.scrollTop-=n.top-i.top:r&&(t.scrollTop+=i.bottom-n.bottom)}(n,this._completionContainer)}}this._set("value",e)},_removeOldChoice:function(e){for(var t=this._completionContainer.children.length,i=0;i<t;i++){var n=this._completionContainer.children[i];if(n.getAttribute("data-completion")===e&&(this._isChoiceInHoveredState(n)||this._isChoiceInSelectedState(n)))return this._removeChoiceClasses(n),n}return null},_setPresentingAttr:function(e){e?this.domNode.classList.add("mwCompletion--presenting"):this.domNode.classList.remove("mwCompletion--presenting"),this._set("presenting",e)},_setAttachedAtAttr:function(e){-1!==["none","top","bottom"].indexOf(e)&&(this.domNode.classList.remove("mwCompletion--top"),this.domNode.classList.remove("mwCompletion--bottom"),"top"===e?this.domNode.classList.add("mwCompletion--top"):"bottom"===e&&this.domNode.classList.add("mwCompletion--bottom"),this._set("attachedAt",e))},_setNumberOfChoicesAttr:function(){throw new Error("numberOfChoices is a read-only property!")},_getNumberOfChoicesAttr:function(){return this.domNode.querySelectorAll("."+a).length},_setValueOfFirstChoiceAttr:function(){throw new Error("valueOfFirstChoice is a read-only property!")},_getValueOfFirstChoiceAttr:function(){var e=this.getFirstChoiceNode(),t=null;return e&&(t=e.getAttribute("data-completion")),t},_setAlignmentXOffsetAttr:function(){throw new Error("alignmentXOffset is a read-only property!")},_getAlignmentXOffsetAttr:function(){var e=this.getFirstChoiceNode(),t=0;if(e){var i=e.querySelector("."+c);if(i)t=i.getBoundingClientRect().left-this.domNode.getBoundingClientRect().left}return t},_setWidthAttr:function(){throw new Error("width is a read-only property!")},_getWidthAttr:function(){return this.domNode.getBoundingClientRect().width},repositionWidget:function(){},_setMinHeightAttr:function(){throw new Error("minHeight is a read-only property!")},_getMinHeightAttr:function(){return o.getMinHeightOfCompletion()},_setAvailableHeightAttr:function(e){var t=this.get("numberOfChoices"),i=Math.min(t,2),n=Math.min(t,5),r=i;if(!(e<o.getHeightForChoices(i))){for(;o.getHeightForChoices(r+1)<e&&r+1<=n;)r++;this.set("numberOfViewableChoices",r),this._completionContainer.style.height=o.getHeightForChoices(r)+"px"}},_setChoicesAttr:function(e){for(;this.getFirstChoiceNode();)this._completionContainer.removeChild(this.getFirstChoiceNode());var t=!0;e.forEach((function(e,n){if(!e.completion||0!==e.completion.indexOf("LiveEditorEvaluationHelperE")){var a=o.buildNode("div",{className:"choice",parent:this._completionContainer},r);e.purpose||"variable"!==e.matchType||(e.message=i.userMessageForVariable),this.renderItem(a,e)||(t=!1),a.setAttribute("data-completion",e.completion),a.setAttribute("data-completionIndex",n)}}),this),t?this.domNode.classList.add("mwCompletion--hideIcons"):this.domNode.classList.remove("mwCompletion--hideIcons"),this.domNode.style.display=0===e.length?"none":null,this._set("choices",e)},renderItem:function(e,t){var i=!0;t.matchType&&"unknown"!==t.matchType&&("mFile"===t.matchType?t.matchType="function":"pathItem"===t.matchType&&(t.matchType="filename"),i=!1),t.separated&&e.classList.add("mwCompletion__choiceContainer__choice--separated"),o.buildNode("div",{className:"icon",parent:e},r).classList.add(r+"__icon--"+t.matchType);var n=t.hasOwnProperty("displayString")?t.displayString:t.completion,a=o.buildNode("div",{className:"text",text:n,parent:e},r),s=t.purpose||t.message,l="purpose";return!t.purpose&&t.message&&(l="message"),o.buildNode("div",{className:l,text:s,parent:e},r),s||(a.style.width="auto"),i},navigate:function(e){var t,i,o=this._getCurrentChoiceNode(this.get("value")),r=this.getFirstChoiceNode(),a=!1;switch(e.keyCode){case n.DOWN_ARROW:t=o?function(e){var t;return e.nextSibling&&(t=e.nextSibling),t}(o):r,a=!0;break;case n.UP_ARROW:o&&(t=function(e){var t;return e.previousSibling&&(t=e.previousSibling),t}(o),a=!0);break;case n.HOME:t=o?r:t;break;case n.END:t=o?this._completionContainer.lastChild:t;break;case n.PAGE_DOWN:var c=this.get("numberOfViewableChoices");t=o?h(o,c):t;break;case n.PAGE_UP:c=this.get("numberOfViewableChoices");t=o?h(o,-c):t;break;case n.TAB:var d=o||r;this._triggerChangeEvent(this.get("value"),d.getAttribute("data-completion")),a=!0;break;case n.ENTER:o&&(this._triggerChangeEvent(this.get("value"),this.get("value")),a=!0);break;case n.ESCAPE:o&&(this.set("value",""),a=!0)}return void 0!==t&&(i=t.getAttribute("data-completion"),a=!0,this._updateChoiceCssClass(l),this._updateChoiceIndex(t),this.set("value",i),this._updateChoiceCssClass(s)),a},_getCurrentChoiceNode:function(e){if(""===e)return null;for(var t=this._completionContainer.children.length,i=0;i<t;i++){var n=this._completionContainer.children[i],o=n.getAttribute("data-completion"),r=n.getAttribute("data-completionIndex");if(this._currentChoiceIndex?r===this._currentChoiceIndex:o===e)return n}return null},_isChoiceInHoveredState:function(e){return e.classList.contains(s)},_isChoiceInSelectedState:function(e){return e.classList.contains(l)},getFirstChoiceNode:function(){return this._completionContainer.firstChild},_isVisibleChoiceNode:function(e){var t=e.classList;if(t.contains(r)||t.contains("mwCompletion__choiceContainer"))return!1;var i=this._completionContainer.getBoundingClientRect().bottom;return e.getBoundingClientRect().top<i},updateChoiceNodeIndex:function(e,t){var i=this._completionContainer.children[e];this._completionContainer.insertBefore(i,this._completionContainer.children[t])},startup:function(){this.inherited(arguments)},destroy:function(){this.domNode.removeEventListener("mousemove",this._mouseMoveCallback),this.domNode.removeEventListener("mousedown",this._mouseDownCallback),this.domNode.removeEventListener("mouseup",this._mouseUpCallback),this._completionContainer.removeEventListener("wheel",this._wheelCallback),this.inherited(arguments)}});return f.BASE_CLASS=r,f.CHOICE_CLASS=a,f.SELECTED_CHOICE_CLASS=l,f.HOVER_SELECTED_CHOICE_CLASS=s,f.CHOICE_TEXT_CLASS=c,f.CHOICE_TOOLTIP_CLASS="mwCompletion__choiceContainer__choice__text__choiceTooltip",f.PURPOSE_CLASS=d,f.MESSAGE_CLASS="mwCompletion__choiceContainer__choice__message",f.PURPOSE_TOOLTIP_CLASS="mwCompletion__choiceContainer__choice__purpose__purposeTooltip",f.SEPARATED_CHOICE_CLASS="mwCompletion__choiceContainer__choice--separated",f.HIDE_ICON_CLASS="mwCompletion--hideIcons",f.PRESENTING_CLASS="mwCompletion--presenting",f.BOTTOM_ATTACHED_CLASS="mwCompletion--bottom",f.TOP_ATTACHED_CLASS="mwCompletion--top",f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(923),i(234),i(379),i(229)],o=i.dj.d(n,(function(e,t,i,n){return{doSmartTab:function(t,i,n){if(!this._shouldDoSmartTab(t))return!1;var o=n.getTabSize(),r=e.getTextBeforeCursor(t,i,!0),a=n.getLengthCompensatingTabs(r),s=this._getDelta(a,o),l=a+s,c=t.getLineColumn();return n.isTabKeyInsertSpaces()?this._doSmartTabWhenTabKeyInsertsSpaces(c,s,i,n):this._doSmartTabWhenTabInsertsTabCharacter(t,c,i,n,l,r),!0},_doSmartTabWhenTabKeyInsertsSpaces:function(e,t,i,o){var r=o.getWhitespaceStringOfLength(t),a=i.getLineText(e.line);n.isWhitespace(a)?i.replaceText(r,e.line,e.column,e.line,a.length+1):i.insertTextAtCurrentPosition(r)},_doSmartTabWhenTabInsertsTabCharacter:function(e,t,i,o,r,a){var s=a.replace(/\s+$/,""),l=s.length,c=a.substring(l,t.column-1),d=i.getLineText(t.line);if((-1!==c.indexOf(o.getSpaceCharacter())||n.isWhitespace(d))&&this._shouldMergeSpacesToTab(e)){var u=o.getLengthCompensatingTabs(s),h=o.getTabSize(),p=r-Math.floor(u/h)*h,f=o.getWhitespaceStringOfLength(p),g=n.isWhitespace(d)?d.length+1:t.column;i.replaceText(f,t.line,l+1,t.line,g)}else i.insertTextAtCurrentPosition(o.getTabCharacter())},_shouldDoSmartTab:function(e){var n=e.getSelection();if(!n)return!0;var o=n.getStartPosition().getNode(),r=n.getEndPosition().getNode();return t.isCodeRange(o,r)&&!i.isMultiLineSelection(e)},_getDelta:function(e,t){return t-e%t},_shouldMergeSpacesToTab:function(e){for(var t=e.getNode().rootContainer().startNode();t;){if(!t.isTextNode()&&n.isWhitespace(t.getText()))return!1;t=t.nextNode()}return!0}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4130)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},getApplicableWidgetType:function(){return"completion"},isChoiceApplicable:function(e){throw new Error("Unimplemented method: isChoiceApplicable")},complete:function(e,t,i,n){throw new Error("Unimplemented method: handle")},showSuggestionsForMatch:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(671),i(4136),i(1965),i(815),i(584)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_CONTAINER_NAME:"mwAutoCompletionFunctionAssistant",_CONTAINER_CSS:"mwAutoCompletionContainer mwAutoCompletionFunctionAssistant",_FLIPPED_OFFSET:5,_SIGNATURE_CHANGE_EVENT:"signatureChange",constructor:function(e,t,n,o,r,a,s,l,c,d){this._rtcView=e,this._contextManager=t,this._parentContainer=n,this._uiViewEventBus=o,this._shadowTextView=r,this._tooltipService=a,this._cursor=s.getCursors()[0],this._highlightView=new i(e,l,c,d),this._initialize(),this._continueShowingWidget=!1},isDisplayed:function(e){var t=this.inherited(arguments);return e&&(t=t&&(!this._widget||this._widget.get("showWidgets"))),t},update:function(){var e=this._contextManager.getContext(),i=e.activity===t.COMPLETE;if(i){var n=e.metaData.getNextBounds(e.position);if(n)return void this._uiViewEventBus.onSelectBounds(n)}this.isDisplayed()&&(this._continueShowingWidget=!0),this._isActivityForAutomatic(e.activity)||this.close(),this._highlightView.close(),i&&this._shadowTextView.close(),this.inherited(arguments),this._widget&&(this._widget.set("showWidgets",!i),this._widget.set("showSignatures",!1))},_shouldShowView:function(){var e=this._contextManager.getContext();if(!e)return!1;if(!this._cursor.hasSelection()||this.isDisplayed())return!0;var t=e.metaData;return 1!==t.getNumberOfSignatures()||1!==t.getNumberOfPresentingSignatureArguments()||"none"!==t.getPresentingArgument().widgetType},show:function(e){var t=this._contextManager.getContext();return!!t&&(this._shouldShowView()||this._contextManager.setContextTabMode(!0),this._showFunctionAssistantView(t,e))},_showFunctionAssistantView:function(e,i){const n=e.widget,o=r.getSelectedCompletion(n);if(this._updateShowWidgetsProperty(n,e,o,i),i||this._isActivityForAutomatic(e.activity)||e.isWidgetReUsed&&this._continueShowingWidget){if(!this._show(i))return!1;this._continueShowingWidget=!1}return!(e.activity===t.COMPLETE)&&this.isDisplayed()&&(this._shadowTextView.show(o),this._contextManager.setContextDoNotShowShadowTextView(!1)),!0},_updateShowWidgetsProperty:function(e,t,i,n){1===r.getNumberOfChoices(e)&&i===t.code&&e.set("showWidgets",!1),""!==e.get("value")||e.get("valueOfFirstChoice")!==t.code||this._cursor.hasSelection()||(n||t.manual?e.set("showWidgets",!0):e.set("showWidgets",!1))},_isActivityForAutomatic:function(e){return e!==t.SILENT_UPDATE&&e!==t.CURSOR_SELECTION},_registerEventHandlers:function(e){this.inherited(arguments),e.on("argument-over",this._handleWidgetArgumentOver.bind(this)),e.on("argument-out",this._handleWidgetArgumentOut.bind(this)),e.on("argument-change",this._handleWidgetArgumentChange.bind(this)),e.on("help",this._handleWidgetHelp.bind(this))},_handleWidgetArgumentOver:function(e){var t=e.mwEventData.bounds;if(t){var i=this._contextManager.getContext();if(!i.isStale){var n=o.getLineColumnForOffsetBounds(t,i.metaData.getCursorPosition(),i.position),r={start:{line:n.startLine,column:n.startColumn},end:{line:n.endLine,column:n.endColumn}};this._highlightView.show(r)}}},_handleWidgetArgumentOut:function(){this._highlightView.show()},_handleWidgetArgumentChange:function(e){var t=e.mwEventData.newValue.toString();this.showShadowTextIfAllowed(t)},handleWidgetChange:function(e,t){var i=t.mwEventData;if(i.type!==this._SIGNATURE_CHANGE_EVENT)this.inherited(arguments);else{var n=r.getSelectedCompletion(e);this.showShadowTextIfAllowed(n)}},_handleWidgetHelp:function(){this._uiViewEventBus.onRequestHelp()},isViewApplicable:function(e){return r.isFunctionAssistantWidget(e)},canWidgetBeReused:function(){return!0},close:function(e){e?this._widget.set("showWidgets",!1):this.inherited(arguments)},closeInnerViews:function(){this._highlightView.close()},destroy:function(){this.inherited(arguments),this._highlightView.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(223),i(1113),i(671),i(584)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{_CONTAINER_NAME:null,_CONTAINER_CSS:null,_BOTTOM_MAX_HEIGHT:200,_BOTTOM_OFFSET:5,_FLIPPED_OFFSET:0,_INVALID_MATCH_TYPES_FOR_REPOSITION:["filename","folder","literal"],_ALLOWED_DISTANCE_BETWEEN_ARGS:100,_initialize:function(){var e=this._createContainer();e.addEventListener("mousedown",(function(e){e.preventDefault()})),this._parentContainer&&i.place(e,this._parentContainer),this._container=e},isDisplayed:function(){return"none"!==this._container.style.display},update:function(){var e=this._contextManager.getContext(),t=e.widget;t!==this.getWidget()&&(this._destroyWidget(),this.setWidget(t)),t.set("data",e.metaData.getData())},getWidget:function(){return this._widget},setWidget:function(e){e!==this.getWidget()&&this._registerEventHandlers(e),this._widget=e},_registerEventHandlers:function(e){e.on("size-change",t.hitch(this,"reposition")),e.on("change",t.hitch(this,"handleWidgetChange",e)),e.on("select",t.hitch(this,"_handleWidgetSelect"))},handleWidgetChange:function(e,t){var i=t.mwEventData.newValue.toString();this._uiViewEventBus.onCompleteText(i)},_handleWidgetSelect:function(e){var t=e.mwEventData.newValue.toString();this.showShadowTextIfAllowed(t)},showShadowTextIfAllowed:function(e){!this._cursor.hasSelection()&&this.isDisplayed()&&this._shadowTextView.show(e)},shouldShowView:function(){return!0},show:function(e){return this._show(e)},_show:function(e){if(this._widget){this._ensureTooltipRemoved();var i=this._contextManager.getContext(),n=e||i&&i.activity===r.ACTIVE_REQUEST?this._tooltipService.PRIORITY.ON_DEMAND:this._tooltipService.PRIORITY.AUTO;return this._tooltipServiceHandle=this._tooltipService.requestTooltip(t.hitch(this,"_showCallback"),t.hitch(this,"_closeCallback"),n),!!this._tooltipServiceHandle}},_showCallback:function(){this._showContainer(),this._showWidget(),this.reposition()},_closeCallback:function(){this.close()},close:function(){return this._contextManager.getContext()||(this._widget=null),this._ensureTooltipRemoved(),!!this.isDisplayed()&&(this._closeContainer(),this.closeInnerViews(),!0)},_ensureTooltipRemoved:function(){this._tooltipServiceHandle&&(this._tooltipServiceHandle.remove(),this._tooltipServiceHandle=null)},sendEvent:function(e){return!!e.hasOwnProperty("keyCode")&&this._handleKeyEvent(e)},_handleKeyEvent:function(e){return e.keyCode===n.TAB?this._handleTabKey(e):e.keyCode===n.F1&&(e.metaKey||e.ctrlKey)?this._handleCtrlF1Key():this.getWidget().navigate(e)},_handleTabKey:function(e){var t=this._contextManager.getContext();return this.isDisplayed(!0)?(this.getWidget().navigate(e)||this.close(),!0):!!t.metaData.hasSuggestion()&&this.show(!0)},_handleCtrlF1Key:function(){return this.isDisplayed()?this.close():this.show(!0)},reposition:function(){var e=this._contextManager.getContext();if(e){var t=this._getCoordinateForPosition(e);this._reposition(t.x,t.y)}},_reposition:function(e,t){this._container.style.left=e+"px",this._container.style.top=t+"px",this._widget.repositionWidget()},_showWidget:function(){this._widget.placeAt(this._container),this._widget.startup()},_getCoordinateForPosition:function(e){var t=this._rtcView.getCoordinateForLineColumn(this._getLineNumberForPositioning(e),this._getColumnNumberForPositioning(e));return{x:this._getXCoordinateForWidget(t,e),y:this._getYCoordinateForWidget(t)}},_getLineNumberForPositioning:function(e){return e.position.getLineColumn().line},_getColumnNumberForPositioning:function(e){var t=e.position.getNode().rootContainer().maxOffset()+1,i=e.leftMostBounds.left;this._shouldUpdateColumnForDotNotation(e)&&(i=i+e.metaData.getData().value.lastIndexOf(".")+1);return Math.min(i,t)},_shouldUpdateColumnForDotNotation:function(e){var t=a.getCompletionChoices(e.widget);if(!t||0===t.length)return!1;for(var i=0;i<t.length;i++){var n=t[i];if(!n.displayString)return!1;if(this._INVALID_MATCH_TYPES_FOR_REPOSITION.indexOf(n.matchType)>=0)return!1;if(-1===n.completion.indexOf("."))return!1}return!0},_getXCoordinateForWidget:function(e,t){var i=e.pageX-this._widget.get("alignmentXOffset"),n=window.innerWidth;i=this._realignWidgetToMatchArgsIfNeeded(t,e,i);var o=this._widget.get("width");i+o>n&&(i=n-o);var r=this._parentContainer.getBoundingClientRect().left;return Math.max(r,i,0)},_realignWidgetToMatchArgsIfNeeded:function(e,t,i){if(e.currentBounds.left>this._cursor.getLineColumn().column)return i;var n=this._widget.get("currentArgumentAlignmentXOffset"),o=n+this._widget.get("currentArgumentWidth"),r=this._widget.get("signatureContainerWidth");if(0===r)return i;i=Math.max(i,0);var a=this._rtcView.getCoordinateForLineColumn(this._getLineNumberForPositioning(e),e.currentBounds.left),s=a.pageX>i+r,l=o+t.pageX<a.pageX,c=a.pageX-o-t.pageX>this._ALLOWED_DISTANCE_BETWEEN_ARGS;return s&&l&&c?a.pageX-n:i},_getYCoordinateForWidget:function(e){var t=this._rtcView.getDomtarget().getBoundingClientRect().top,i=this._rtcView.getDomTargetPosition().scrollTop,n=e.y+t-i,o=n+e.height+this._BOTTOM_OFFSET,r=n-this._BOTTOM_OFFSET,a=window.innerHeight-n-e.height-this._BOTTOM_OFFSET,s=this._widget.get("minHeight");return a<s&&r>=s?(this._widget.set("availableHeight",r),this._widget.set("position","top"),o=n-(this._widget.domNode.clientHeight+this._FLIPPED_OFFSET)):(this._widget.set("availableHeight",a),this._widget.set("position","bottom")),o},_showContainer:function(){this._container.style.display=""},_closeContainer:function(){this._container.style.display="none"},_clearContainer:function(){i.empty(this._container)},_createContainer:function(){return i.create("div",{className:this._CONTAINER_CSS,style:"display: none","data-testid":this._CONTAINER_NAME})},_destroyWidget:function(){this._widget&&this._widget.domNode&&!this._contextManager.isWidgetHeld(this._widget)&&(this._widget.destroy(),this._widget=null),this._closeContainer(),this._clearContainer()},destroy:function(){this.inherited(arguments),this._destroyWidget()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(237),i(1113),i(815),i(727),i(584)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{_SHADOWTEXT_CSS:"mwAutoCompletionShadowText",_SINGLE_QUOTE:"'",_DOUBLE_QUOTE:'"',constructor:function(e,t,i,n){this._cursor=e.getCursors()[0],this._document=t,this._contextManager=i,this._shadowTextService=n,this._shadowTextAfterCursorHandle=null,this._shadowTextBeforeCursorHandle=null},isDisplayed:function(){return null!==this._shadowTextAfterCursorHandle},show:function(e){var t=this._contextManager.getContext();return!(!t||this._contextManager.isContextDoNotShowShadowTextView())&&(this._destroy(),!!this._cursor.position.isEqualTo(t.position)&&(!!e&&(0!==a.getNumberOfChoices(t.widget)&&this._createShadowTextViews(t,e))))},_createShadowTextViews:function(e,t){var i=e.position.getLineColumn().column-e.currentBounds.left,n=this._modifyUserTextIfNeeded(e),o=this._getShadowTextAfterCursor(n,i,t);if(!o)return!1;this._shadowTextAfterCursorHandle=this._createView(o.text,o.position);var r=this._getShadowTextBeforeCursor(n,i,t);return!r||(this._shadowTextBeforeCursorHandle=this._createView(r.text,r.position),!0)},_getShadowTextAfterCursor:function(e,t,i){var n=this._getShadowTextInfo(e,t,i);if(n.leftTextMatch&&t++,(n.leftMatch||n.leftTextMatch)&&n.rightMatch){var o=i.length-n.right.length,r=i.slice(t,o);if(!r)return null;var a=this._cursor.getLineColumn();return{text:r,position:this._document.createPositionAtLineColumn(a.line-1,a.column-1,!0)}}return null},_modifyUserTextIfNeeded:function(e){var t=e.code,i=e.currentBounds,n=i.left-1,r=i.right-1,a=e.metaData.getPresentingArgument().bounds,s=(a=o.getLineColumnForOffsetBounds(a,e.metaData.getCursorPosition(),this._cursor.position)).startColumn-1,l=a.endColumn-1;return s!==n&&(t=t.substring(n-s)),l!==r&&(t=t.substring(0,t.length-(l-r))),t},_getShadowTextBeforeCursor:function(e,t,i){var n=this._getShadowTextInfo(e,t,i);if(n.leftTextMatch&&n.rightMatch){var o=this._cursor.getLineColumn(),r=this._document.createPositionAtLineColumn(o.line-1,o.column-1-e.length,!0);return{text:i.charAt(0),position:r}}return null},_getShadowTextInfo:function(e,t,i){var n=e.substr(0,t),o=e.substr(t,e.length),r=this._isRightTextAllowed(o),a=i.toLowerCase().indexOf(n.toLowerCase()),s=i.charAt(0);return{left:n,right:o,rightMatch:r,leftMatch:0===a,leftTextMatch:1===a&&("'"===s||'"'===s)}},_createView:function(e,i){var n=i.getLineColumn(),o={text:e,cssClass:this._SHADOWTEXT_CSS,updateCallback:t.hitch(this,"_handleServiceUpdate",n,e),position:i};return this._shadowTextService.requestTextAtPosition(o)},_handleServiceUpdate:function(e,t,n){var o=e,r=n.position.getLineColumn(),a=r.column-o.column,s=i.getTextRangeFromLeftToPosition(n.position),l=s?s.text:"",c=a?l.substr(-a):"",d=t.substr(0,a);r.column<o.column||c!==d||0!==a&&a===t.length?n.remove():n.update(t.substring(a))},_isRightTextAllowed:function(e){return""===e||r.isTextAllowedAfterCursor(e)},close:function(){this._destroy()},destroy:function(){this.inherited(arguments),this._destroy()},_destroy:function(){this._shadowTextBeforeCursorHandle&&(this._shadowTextBeforeCursorHandle.remove(),this._shadowTextBeforeCursorHandle=null),this._shadowTextAfterCursorHandle&&(this._shadowTextAfterCursorHandle.remove(),this._shadowTextAfterCursorHandle=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(1965),i(671),i(584),i(727)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(i,{_CONTAINER_NAME:"mwAutoCompletionSuggestion",_CONTAINER_CSS:"mwAutoCompletionContainer mwAutoCompletionSuggestion",_FLIPPED_OFFSET:5,_WIDGET_TYPE:"completion",constructor:function(e,i,n,o,r,a,s,l,c,d){this._rtcView=e,this._cursor=i.getCursors()[0],this._contextManager=n,this._parentContainer=o,this._uiViewEventBus=r,this._shadowTextView=a,this._tooltipService=s,this._document=l,this._internalDocument=c,this._customizers=d,this._initialize(),this.own(t.after(this._cursor,"onChange",this._handleCursorChange.bind(this))),this.own(t.after(c,"onDocumentChanged",this._handleDocumentChange.bind(this))),this._lastCursorPosition=null,this._currentCursorPosition=null,this._lastNumberOfLines=null,this._currentNumberOfLines=null},_handleCursorChange:function(){this._lastCursorPosition=this._lastCursorPosition?this._currentCursorPosition:this._cursor.getLineColumn(),this._currentCursorPosition=this._cursor.getLineColumn()},_handleDocumentChange:function(){this._lastNumberOfLines=this._lastNumberOfLines?this._currentNumberOfLines:this._internalDocument.getMaxLineNumber(),this._currentNumberOfLines=this._internalDocument.getMaxLineNumber()},update:function(){this.inherited(arguments);var e=this._contextManager.getContext(),t=o.getNumberOfChoices(e.widget);(t<=0||!this._isActivityAllowed(e.activity))&&this.close(),(0===t||this._cursor.hasSelection())&&this._shadowTextView.close()},show:function(e){var t=this._contextManager.getContext();if(!this._shouldShowView(t,e))return!1;if(!this._show(e))return!1;var i=t.widget;this.customizeChoicesDomnodeOrder(i);var n=o.getSelectedCompletion(i);return this._shadowTextView.show(n),!0},_shouldShowView:function(e,t){if(""===e.code)return!1;var i=e.widget;if(!t&&!e.manual&&""===i.get("value")&&i.get("valueOfFirstChoice")===e.code){var r=!1;if(this._customizers.some((function(e){e.showSuggestionsForMatch(i.get("choices"))&&(r=!0)})),!r)return!1}return!this._cursor.hasSelection()&&(0!==o.getNumberOfChoices(e.widget)&&(!!this._isCursorAtValidPositionForCompletions(e)&&(!(!t&&!this._isActivityAllowed(e.activity))&&(!(!t&&e.activity!==n.ACTIVE_REQUEST&&this._lastCursorPosition.line>this._currentCursorPosition.line)&&(!(this._lastCursorPosition.line===this._currentCursorPosition.line&&this._lastCursorPosition.column===this._currentCursorPosition.column&&this._lastNumberOfLines>this._currentNumberOfLines)&&!this._codeAfterCursorAndNoCodeBeforeCursor(e))))))},_isCursorAtValidPositionForCompletions:function(e){var t=e.metaData,i=this._cursor.getLineColumn(),n=i.line,o=i.column,a=t.getLeftMostBounds(e.position).right,s=this._document.getTextCharacters(n-1,o-1,1);return o===a||o===a-1&&r.isTextAllowedAfterCursor(s)},_isActivityAllowed:function(e){return e!==n.COMPLETE&&e!==n.SILENT_UPDATE&&e!==n.CURSOR_SELECTION},_codeAfterCursorAndNoCodeBeforeCursor:function(e){if(""!==e.code)return!1;var t=e.position.getLineColumn(),i=this._document.getLineText(t.line);return""===i.substring(0,t.column-1).trim()&&""!==i.substring(t.column-1).trim()},isViewApplicable:function(e){return o.isSuggestionWidget(e)},customizeChoicesDomnodeOrder:function(e){o.getCustomizersOfWidgetType(this._customizers,this._WIDGET_TYPE).forEach((function(t){t.customizeChoicesDomnodeOrder(e)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(253),i(451),i(251),i(1412)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{constructor:function(e,o,a,s,l){this._document=e,this._cursor=o,this._actionService=a,this._executionService=s,this._contextMenuContributor=l,this.own(i.after(this._cursor,"onChange",t.hitch(this,this._updateActionState)));var c=[{id:r.EVALUATE_SELECTION.EVALUATE_SELECTION_ACTION,key:"f9",shortcut:n.evaluateSelectionShortcut,platformKey:{mac:"shift_f7"},enabled:!1,text:n.evaluateSelectionLabel,callback:t.hitch(this,"_evaluateSelectionCallback")}];this._actionService.loadActions(c),this.addActionsToContextMenu()},addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this.CONTEXT_MENU_GROUP,{actionId:r.EVALUATE_SELECTION.EVALUATE_SELECTION_ACTION,priority:3,type:o.DEFAULT})},_evaluateSelectionCallback:function(){return!!this._actionService.getAction(r.EVALUATE_SELECTION.EVALUATE_SELECTION_ACTION).enabled&&this.evaluateSelection()},evaluateSelection:function(){var e=this.getSelection();return!(!this._executionService||!e)&&(this._executionService.streamingEval?this._executionService.authoringEval(e,this._executionService.streamingEval):this._executionService.authoringEval(e),!0)},getSelection:function(){if(!this._cursor.hasSelection())return"";var e=this._cursor.getSelectionLineColumn();return e.start.line===e.end.line?this._cursor.selectedText():this._document.getCodeTextForRange(this._cursor.getSelection())},_updateActionState:function(){var e=this._cursor.hasSelection();this._actionService.updateAction(r.EVALUATE_SELECTION.EVALUATE_SELECTION_ACTION,{enabled:e})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(206),i(248),i(234),i(451),i(378),i(251),i(253),i(233),i(726),i(1412)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(h,{_OPEN_MATLAB_FUNCTION:"matlab.codetools.internal.edit.editRelativeNameOrOpen",constructor:function(e,i,n,o,r,a,s,d,u,h){this._internalDocument=e,this._cursor=i,this._actionService=n,this._executionService=o,this._contextualSelectionUtility=r,this._contextMenuContributor=a,this._rtcView=s,this._lineNumberService=d,this._identifierService=u,this._backingStore=h;var p=[{id:l.OPEN_SELECTION.OPEN_SELECTION_ACTION,key:"ctrl_d",shortcut:"Ctrl+D",platformKey:{mac:"meta_shift_d"},enabled:!0,text:c.openSelectionLabel,callback:t.hitch(this,"_openSelectionCallback")}];this._actionService.loadActions(p),this.addActionsToContextMenu()},addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this.CONTEXT_MENU_GROUP,{actionId:l.OPEN_SELECTION.OPEN_SELECTION_ACTION,priority:2,type:a.DEFAULT})},_openSelectionCallback:function(){return!!this._actionService.getAction(l.OPEN_SELECTION.OPEN_SELECTION_ACTION).enabled&&this.openSelection()},updateLabelForContextMenu:function(e){var t=this._contextualSelectionUtility.getUpdatedLabel(e,c.openSelectionLabel,c.openLabel,c.openLabelTruncated);this._actionService.updateAction(l.OPEN_SELECTION.OPEN_SELECTION_ACTION,{text:t})},shouldLookUpIdentifierData:function(){return s.isMatlabCodeFileOrBuffer(this._backingStore)},openSelection:function(){var e=this._contextualSelectionUtility.getTextInformation();if(!e)return!1;if(!this.shouldLookUpIdentifierData())return this._openFile(e.text),!0;const t=e.text,i=this._backingStore.getFileLocation?this._backingStore.getFileLocation():"",n=d.normalizeLocation(i+"private")+t,o=this._doesFileExist(n);return this._identifierService.whenReady(function(){var i=this._getIdentifierData(e);if(i&&i.declarationPosition&&!i.isVariable){var r=i.declarationPosition.declarationStartLine,a=this._lineNumberService.getLineNumberFromCodeLineNumber(r)+1,s=i.declarationPosition.declarationStartColumn;return this._cursor.setLineColumn(a,s,!1),this.onGotoFunctionDefinition(),this._rtcView.isLineInView(a,!0)||this._rtcView.scrollNearestVisibleLineToPercent(a,50),!0}o.then(e=>{e?this._openFile(n):this._openFile(t)})}.bind(this)),!0},onGotoFunctionDefinition:function(){},_getIdentifierData:function(e){var t=e.text,i=t,n=this._lineNumberService.getCodeLineNumberFromLineNumber(e.startLine-1),o=e.startColumn;if(!this._cursor.hasSelection()){var r=t.split(".");i=r[r.length-1],r.length>1&&(o+=t.lastIndexOf(".")+1)}return this._identifierService.getIdentifierDefinition(n,o,i)},_doesFileExist:function(e){const t=u.isFile(e+".m"),i=u.isFile(e+".mlx");return Promise.all([t,i]).then(e=>e.some(e=>e[0]))},_openFile:function(e){e=r.getMATLABStringFromCodeText(e);const t=r.getMATLABStringFromCodeText(this._backingStore.getUniqueId());this._executionService.executionEval("try \n"+this._OPEN_MATLAB_FUNCTION+"("+e+", "+t+"); \ncatch \ntry \nedit("+e+"); \ncatch e \nerrordlg(e.message); \nend; \nend;")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(924),i(1971),i(1972),i(1973),i(4151)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e,t,i){this._wrapFromStartOfLineSetting=e,this._maxColumnWidth=t,this._startNode=i,this._content=[],this._addContentFromLineNode(i),this._lineCache=new r},sectionShouldGrow:function(e){throw new Error("Unimplemented API: sectionShouldGrow")},growSection:function(e){this._addContentFromLineNode(e)},_addContentFromLineNode:function(e){var t=[];e.children.forEach(function(e){this._isContentOpaqueNode(e)?t.push(e):t.push(e.getText())}.bind(this)),this._content.push(t)},generateWrapEvents:function(e,t){return this._cacheStartLine(),this._wrapEvents=[],this._generateEventsToCombineLines(),this._generateEventsToWrapContent(e,t),this._wrapEvents},_cacheStartLine:function(){var e=this._startNode.startPosition().getLine();this._lineCache.setStartLine(e)},_getPrefixRegex:function(){throw new Error("Unimplemented API: _getPrefixRegex")},_generateEventsToWrapContent:function(e,t){throw new Error("Unimplemented API: _generateEventsToWrapContent")},_isEdgeOfDelimiter:function(e){throw new Error("Unimplemented API: _isEdgeOfDelimiter")},_handleDelimiterEdge:function(e,t,i){throw new Error("Unimplemented API: _handleDelimiterEdge")},_calculateMaxContentLength:function(){throw new Error("Unimplemented API: _calculateMaxContentLength")},getStartLine:function(){return this._lineCache.getStartLine()},getEndLine:function(){return this._lineCache.getEndLine()},_updateSubcontentCache:function(e,t,i){var n=e.slice(t,i);return this._cachedSubcontentWidth=n.length,this._cachedSubcontentColumns=n.length,n},_generateEventsToCombineLines:function(){var e,t=1,i=this._lineCache.getStartLine(),n="",o=this._getPrefixRegex(),r=0,a=!0;if(this._content.forEach((function(s,l){if(a=!1,e=this._lineCache.getStartLine()+l,1===s.length&&this._isEdgeOfDelimiter(s[0]))return this._removeWhitespaceFromEndOfLine(i,r,t,l-1),this._handleDelimiterEdge(s[0],++i,l),i=e+1,t=1,r=0,a=!0,void(n="");r=s.reduce(function(e,t){return e+this._calculateSubContentColumns(t)}.bind(this),0),this._removePrefixAndLineBreak(s,o,n,i,t,e,void 0,l),t=this._getUpdatedStartColumn(s,r),i=e,n=" "}),this),!a){var s=this._content.length-1;this._removeWhitespaceFromEndOfLine(i,r,t,s)}this._wrapEvents=this._wrapEvents.reverse(),this._wrapEvents.forEach(function(e){e.updateContent(this._content)}.bind(this))},_getUpdatedStartColumn:function(e,t){var i=0,n=e[e.length-1];this._isContentOpaqueNode(n)||(i=n.match(/\s*$/)[0].length);return t-i+1},_removePrefixAndLineBreak:function(e,t,i,o,r,a,s,l){var c=e[0];if(this._isContentOpaqueNode(c))s=1;else{var d=c.match(t);d&&(s=d[0].length+1)}var u=new n(i,o,r,a,s,l,0);this._wrapEvents.push(u)},_removeWhitespaceFromEndOfLine:function(e,t,n,o){if(!(t<n)){var r=t+1,a=this._content[o].length-1,s=new i(e,n,e,r,o,a);this._wrapEvents.push(s)}},_wrapContentLine:function(e,t,i){var n=new o(this._prefix,this._lineCache.getLine(),1);this._wrapEvents.push(n);var r="\n"+this._prefix,a=this._calculateMaxContentLength();e.forEach((function(e){this._wrapSubcontent(t,i,r,a,e)}),this),this._lineCache.update(1,0,0,0)},_wrapSubcontent:function(e,t,i,n,o){if(this._cachedSubcontentWidth=this._calculateSubContentWidth(e,t,o),this._cachedSubcontentColumns=this._calculateSubContentColumns(o),0!==this._cachedSubcontentWidth||0!==this._cachedSubcontentColumns){for(this._lineCache.getWidth()>=n&&(o=this._handleCachedLineAlreadyFull(i,o));this._lineCache.getWidth()+this._cachedSubcontentWidth>n;){if(!this._isSubcontentSplittable(o))return void this._wrapNonSplittableSubcontent(i);o=this._wrapSplittableSubcontent(i,n,o)}this._handleFullSubcontentFitsOnCurrentLine(o)}},_handleCachedLineAlreadyFull:function(e,t){var i=this._getBeginningWhitespaceLength(t);i>0&&(t=this._updateSubcontentCache(t,i));var n=this._createReplaceEvent(e,this._lineCache.getColumn(),this._lineCache.getWhitespaceLength(),i);this._wrapEvents.push(n);var o=this._getEndingWhitespaceLength(t);return o>0&&(t=this._updateSubcontentCache(t,0,t.length-o)),this._lineCache.update(1,0,0,o),t},_handleFullSubcontentFitsOnCurrentLine:function(e){var t=this._getEndingWhitespaceLength(e),i=this._lineCache.getWidth()+this._cachedSubcontentWidth,n=this._lineCache.getColumn()+this._cachedSubcontentColumns;this._lineCache.update(0,i,n,t)},_wrapNonSplittableSubcontent:function(e){var t=0;if(this._lineCache.getWidth()>0){var i=this._createReplaceEvent(e,this._lineCache.getColumn(),this._lineCache.getWhitespaceLength(),0);this._wrapEvents.push(i),t=1}this._lineCache.update(t,this._cachedSubcontentWidth,this._cachedSubcontentColumns,0)},_wrapSplittableSubcontent:function(e,t,i){var n=new RegExp("^.{1,"+(t-this._lineCache.getWidth())+"}(?:\\s+|$)"),o=i.match(n);return o?this._wrapPartialSubcontentOntoCurrentLine(e,o[0],i):this._wrapSubcontentOntoOwnLine(e,i)},_wrapPartialSubcontentOntoCurrentLine:function(e,t,i){var n=this._lineCache.getColumn()+t.length,o=this._getEndingWhitespaceLength(t),r=this._createReplaceEvent(e,n,o,0);return this._wrapEvents.push(r),i=this._updateSubcontentCache(i,t.length),this._lineCache.update(1,0,0,0),i},_wrapSubcontentOntoOwnLine:function(e,t){return this._lineCache.getWidth()>0?this._wrapSubcontentOntoNextLine(e,t):this._wrapSubcontentAtAnyWhitespace(e,t)},_wrapSubcontentOntoNextLine:function(e,t){var i=this._createReplaceEvent(e,this._lineCache.getColumn(),this._lineCache.getWhitespaceLength(),0);this._wrapEvents.push(i);var n=this._getEndingWhitespaceLength(t);return this._lineCache.update(1,0,0,n),this._updateSubcontentCache(t,0,t.length-n)},_wrapSubcontentAtAnyWhitespace:function(e,t){var i=t.match(/\s+/),n=i.index,o=i[0].length,r=this._createReplaceEvent(e,n,0,o);return this._wrapEvents.push(r),t=this._updateSubcontentCache(t,n+o),this._lineCache.update(1,0,0,0),t},_getEndingWhitespaceLength:function(e){if(this._isContentOpaqueNode(e))return 0;var t=e.match(/\s+$/);return t?t[0].length:0},_getBeginningWhitespaceLength:function(e){if(this._isContentOpaqueNode(e))return 0;var t=e.match(/^\s+/);return t?t[0].length:0},_calculateSubContentWidth:function(e,t,i){if(this._isContentOpaqueNode(i)){var n=e.getNodeBox(i),o=i.getWidth(n),r=t.getNumericCharacterWidth();return Math.ceil(o/r)}return i.length},_calculateSubContentColumns:function(e){return this._isContentOpaqueNode(e)?e.getText().length:e.length},_isSubcontentSplittable:function(e){return!this._isContentOpaqueNode(e)&&null!==e.match(/\s/g)},_createReplaceEvent:function(e,t,i,o){var r=this._prefix.length+1,a=t-i+r,s=t+o+r,l=this._lineCache.getLine();return new n(e,l,a,l,s)},_isContentOpaqueNode:function(e){return e.isOpaqueNode&&e.isOpaqueNode()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1413)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i,n,o,r){this._startLine=e,this._endLine=i,this._startColumn=t,this._endColumn=n,this._lineIndex=o,this._nodeIndex=r},doEvent:function(e){e.deleteText(this._startLine,this._startColumn,this._endLine,this._endColumn)},updateContent:function(e){var t=e[this._lineIndex][this._nodeIndex].slice(0,this._startColumn-1),i=e[this._lineIndex][this._nodeIndex].slice(this._endColumn-1);e[this._lineIndex][this._nodeIndex]=t+i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1413)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i,n,o,r,a){this._text=e,this._startLine=t,this._endLine=n,this._startColumn=i,this._endColumn=o,this._lineIndex=r,this._nodeIndex=a},doEvent:function(e){e.replaceText(this._text,this._startLine,this._startColumn,this._endLine,this._endColumn)},updateContent:function(e){if(void 0!==this._lineIndex&&void 0!==this._nodeIndex){var t,i="string"==typeof e[this._lineIndex][this._nodeIndex];if(i&&(t=e[this._lineIndex][this._nodeIndex].slice(this._endColumn-1),e[this._lineIndex][this._nodeIndex]=t),0!==this._lineIndex){var n=e[this._lineIndex-1],o=n.length-1,r=n[o],a="string"==typeof r;if(this._startLine!==this._endLine)if(a){var s=this._getColumnCountForPreviousItemsOnLine(n,o),l=this._startColumn-s-1;t=r.slice(0,l)+this._text,e[this._lineIndex-1][o]=t}else i?(t=this._text+e[this._lineIndex][this._nodeIndex],e[this._lineIndex][this._nodeIndex]=t):e[this._lineIndex].push(this._text);a&&i&&1===e[this._lineIndex-1].length&&1===e[this._lineIndex].length?e[this._lineIndex-1]=[e[this._lineIndex-1]+e[this._lineIndex]]:e[this._lineIndex-1]=e[this._lineIndex-1].concat(e[this._lineIndex]),e[this._lineIndex]=[]}}},_getColumnCountForPreviousItemsOnLine:function(e,t){var i=0;return e.forEach((function(e,n){n>=t||("string"==typeof e?i+=e.length:e.getText&&(i+=e.getText().length))})),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1413)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i){this._text=e,this._line=t,this._column=i},doEvent:function(e){this._text.length>0&&e.insertText(this._text,this._line,this._column)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},onDependenciesFound:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(247)],o=i.dj.d(n,(function(e){return{isLocalClient:function(){var t=e.parseUrl();return!("localhost"!==t.hostname&&"127.0.0.1"!==t.hostname)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(454)],o=i.dj.d(n,(function(e){return{TEXT:e.DEFAULT_SUPPORTED_LANGUAGES.TEXT,MATLAB:e.DEFAULT_SUPPORTED_LANGUAGES.MATLAB,C:"C",CPP:"CPP",JAVA:"JAVA",JAVASCRIPT:"JavaScript",TYPESCRIPT:"TypeScript",JSON:"JSON",XML:"XML",HTML:"HTML"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(581)],o=i.dj.d(n,(function(e){return{getFirstLocalFunction:function(t){var i=null;return t.some((function(t){var n=t[e.LOCAL_FUNCTION_ATTRIBUTE];if(n&&n.length>0)return i=n[0],!0})),i},hasLocalFunction:function(t){return t&&t[e.LOCAL_FUNCTION_ATTRIBUTE]&&t[e.LOCAL_FUNCTION_ATTRIBUTE].length>0}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(209),i(207),i(925)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{constructor:function(e,n,o){this._document=e,this._sectionModel=n,this._functionNotifier=o,this.own(i.after(this._functionNotifier,"onValidFunctionsChange",t.hitch(this,"_handleFunctionChange"),!0)),this.own(i.before(this._sectionModel,"onModelUpdated",t.hitch(this,"_setAttributesForSectionsOnReset"))),this._functionsData=null},getSectionAttribute:function(){throw"Unimplemented API in AbstractFunctionSectionAttributeContributor"},_handleFunctionChange:function(e){if(e){var t=this._getFunctionsFromEvent(e);this._initializeFunctionData(t),this._setAttributesForSections(this._functionsData)}},_getFunctionsFromEvent:function(e){var t;switch(e.type){case r.VALID_FUNCTIONS_REMOVED:t=null;break;case r.VALID_FUNCTIONS_ADDED:case r.VALID_FUNCTIONS_CHANGED:case r.FUNCTIONS_ON_VALID_DOCUMENT_CHANGE:t=e.validFunctions}return t},_initializeFunctionData:function(e){this._functionsData&&(this._functionsData.forEach((function(e){n.assert(e.position,"Must have position!"),this._document.deletePosition(e.position)}),this),this._functionsData=null),e&&(e.forEach((function(e){e.position=this._document.createLinePositionInLine(e.getStartLine()-1)}),this),this._functionsData=e)},_setAttributesForSections:function(e){this._sectionModel.setAttribute(this.getSectionAttribute(),this._getFunctionMap(e))},_setAttributesForSectionsOnReset:function(){this._sectionModel.setAttributeOnReset(this.getSectionAttribute(),this._getFunctionMap(this._functionsData))},_getFunctionMap:function(e){var t={};return e&&e.forEach((function(e){var i=this._sectionModel.getSectionNumberForLine(e.getStartLine()-1);t[i]?t[i].push(e):t[i]=[e]}),this),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(270),i(251),i(399)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_NEXT_ACTION_ID:n.SECTIONS.NEXT_SECTION_ACTION,_PREVIOUS_ACTION_ID:n.SECTIONS.PREVIOUS_SECTION_ACTION,constructor:function(e,t,i){this._cursorController=e,this._actionService=t,this._view=i,this._handles=[],this._actions=[];var n=this._actionService.getAction(this._NEXT_ACTION_ID);n||(n={id:this._NEXT_ACTION_ID,enabled:!1,key:"ctrl_down",platformKey:{mac:"meta_down"},callback:function(){return!1}.bind(this)},this._actionService.addAction(n)),this._actions.push(n);var o=this._actionService.getAction(this._PREVIOUS_ACTION_ID);o||(o={id:this._PREVIOUS_ACTION_ID,enabled:!1,key:"ctrl_up",platformKey:{mac:"meta_up"},callback:function(){return!1}.bind(this)},this._actionService.addAction(o)),this._actions.push(o)},enable:function(){this._updateActionCallbacks(),this._updateActionState(),this._addListeners()},disable:function(){this._teardown()},enableForHiddenCode:function(){this.enable()},disableForHiddenCode:function(){this.disable()},_updateActionCallbacks:function(){this._actionService.updateAction(this._NEXT_ACTION_ID,{callback:this._nextCallback.bind(this)}),this._actionService.updateAction(this._PREVIOUS_ACTION_ID,{callback:this._previousCallback.bind(this)})},_updateActionState:function(){throw new Error("Unimplemented API: _updateActionState")},_addListeners:function(){throw new Error("Unimplemented API: _addListeners")},_teardown:function(){this._actions.forEach((function(e){this._actionService.updateAction(e.id,{enabled:!1})}),this),this._removeListeners()},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},_nextCallback:function(){if(this._actionService.getAction(this._NEXT_ACTION_ID).enabled)return this._moveToNext()},_previousCallback:function(){if(this._actionService.getAction(this._PREVIOUS_ACTION_ID).enabled)return this._moveToPrevious()},_moveToPrevious:function(){throw new Error("Unimplemented API: _moveToPrevious")},_moveToNext:function(){throw new Error("Unimplemented API: _moveToNext")},destroy:function(){this.inherited(arguments),this._teardown()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NON_MATCHABLE_TOKEN:1,START_TOKEN:2,MID_TOKEN:3,END_TOKEN:4}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(207),i(1351)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_HIGHLIGHT_OPACITY:1,_HIGHLIGHT_CSS_CLASS:[],_HIGHLIGHT_COLOR:"",_HIGHLIGHT_CHECKBOX:"",_CLASS_SELECTORS:"",constructor:function(e,i,n,o){this._internalDocument=e,this._settingService=i,this._highlighting=n,this._globalStyleChanger=o,this.promise=new t,this._listenToSettingChange()},_listenToSettingChange:function(){this.own(this._settingService.listenToSettingChange(this._HIGHLIGHT_COLOR,this.updateColor.bind(this))),this.own(this._settingService.listenToSettingChange(this._HIGHLIGHT_CHECKBOX,this.onCheckBoxChange.bind(this))),this._settingService.getSetting(this._HIGHLIGHT_CHECKBOX).then(function(e){this.checkBoxEnabled=e,this._settingService.getSetting(this._HIGHLIGHT_COLOR).then(function(e){this.highlightColor=e,this.promise.resolve(),this.highlightRgbColor=this.getRgbColor(this.highlightColor),this.onCheckBoxChange(this.checkBoxEnabled)}.bind(this),(function(e){}))}.bind(this),(function(e){}))},onCheckBoxChange:function(e){this.checkBoxEnabled=e,void 0!==this.checkBoxEnabled&&void 0!==this.highlightColor&&this.promise.resolve(),this.promise.then(function(){this.checkBoxEnabled?this._update():this._remove()}.bind(this))},updateColor:function(e){this.highlightColor=e,this.highlightRgbColor=this.getRgbColor(e),void 0!==this.checkBoxEnabled&&void 0!==this.highlightColor&&this.promise.resolve(),this.promise.then(function(){this.checkBoxEnabled&&this._update()}.bind(this))},_update:function(){this.updateDynamicStyleSheet(this._getCSSRules()),this._highlighting.enable(this._HIGHLIGHT_CSS_CLASS)},_remove:function(){this._highlighting.disable()},updateCSSClasses:function(e,t){this._HIGHLIGHT_CSS_CLASS=e,this._CLASS_SELECTORS=t},updateDynamicStyleSheet:function(e){this._globalStyleChanger.insertOrReplaceRule(this._CLASS_SELECTORS,e)},getRgbColor:function(e){return n.generateRgbaCssString(e[0],e[1],e[2],this._HIGHLIGHT_OPACITY)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(234),i(237),i(1117)],o=i.dj.d(n,(function(e,t,i){return{getPossibleVariableAtCursorPosition:function(n,o){if(!e.isCodeContainer(o.position.getNode()))return null;var r=t.getWordAtPosition(n,o.position);return r?i.selectionSpansOutsideVariable(o,r)?null:r:null}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i){this.startLineCol=e,this.endLineCol=t,this.startPos=null,this.endPos=null,this.text=i,this.isAssignment=!1,this.otherInstances=[]},addOtherInstance:function(e,t,i,n){this.otherInstances.push({startPos:null,endPos:null,startLine:e,startColumn:t,endLine:i,endColumn:n})},getStartLineColumn:function(){if(this.startPos){var e=this.startPos.getLineColumn();return{line:e.line-1,column:e.column-1}}return this.startLineCol},getEndLineColumn:function(){if(this.endPos){var e=this.endPos.getLineColumn();return{line:e.line-1,column:e.column-1}}return this.endLineCol},getAllInstances:function(){var e=this.getStartLineColumn(),t=this.getEndLineColumn(),i=[{startLine:e.line,startColumn:e.column,endLine:t.line,endColumn:t.column}];return this.otherInstances.forEach(function(e){i.push({startLine:e.startLine,startColumn:e.startColumn,endLine:e.endLine,endColumn:e.endColumn})}.bind(this)),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{hideTooltip:function(){},showTooltip:function(){},hideTooltipAfterTimeout:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1118)],o=i.dj.d(n,(function(e,t){return e(null,{_DEFAULT_HORIZONTAL_ALIGNMENT:t.HORIZONTAL_POSITION.CENTER,_DEFAULT_VERTICAL_ALIGNMENT:t.VERTICAL_POSITION.TOP,_DEFAULT_CUSTOM_X:0,_DEFAULT_CUSTOM_Y:0,_DEFAULT_COLUMN_OFFSET:0,_DEFAULT_LINE_OFFSET:0,_DEFAULT_X_OFFSET:0,_DEFAULT_Y_OFFSET:0,constructor:function(e,t,i,n,o,r,a,s){this.horizontalAlignment=e||this._DEFAULT_HORIZONTAL_ALIGNMENT,this.verticalAlignment=t||this._DEFAULT_VERTICAL_ALIGNMENT,this.x=i||this._DEFAULT_CUSTOM_X,this.y=n||this._DEFAULT_CUSTOM_Y,this.columnOffset=o||this._DEFAULT_COLUMN_OFFSET,this.lineOffset=r||this._DEFAULT_LINE_OFFSET,this.xOffset=a||this._DEFAULT_X_OFFSET,this.yOffset=s||this._DEFAULT_Y_OFFSET}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(209),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e,t,i,n,o){this._internalDocument=e,this._matlabTokenManager=t,this._matlabStateManager=i,this._openCharacter=n,this._closeCharacter=o},areTokensBalancedForPosition:function(e){var t=e.getLineColumn().column-1,i=e.getLineColumn().line-1,n=this._matlabTokenManager.getTokenOnLineColumn(i,t),o=this._matlabTokenManager.getTokenOnLineColumn(i,t-1),r=this._findStartToken(o),a=this._findEndToken(n);return this._areTokensBalanced(r,a)},hasOneMoreCloseThanOpenCharacter:function(e){var t=e.getLineColumn().column-1,i=e.getLineColumn().line-1,n=this._matlabTokenManager.getTokenOnLineColumn(i,t),o=this._matlabTokenManager.getTokenOnLineColumn(i,t-1),r=this._findStartToken(o),a=this._findEndToken(n);return this._hasOneMoreCloseThanOpenCharacter(r,a)},_areTokensBalanced:function(e,t){var i=this._getUnmatchedCharacterCounts(e,t);return 0===i.unmatchedCloseCharacters&&0===i.unmatchedOpenCharacters},_hasOneMoreCloseThanOpenCharacter:function(e,t){var i=this._getUnmatchedCharacterCounts(e,t);return 1===i.unmatchedCloseCharacters&&0===i.unmatchedOpenCharacters},_getUnmatchedCharacterCounts:function(e,t){n.assert(null!==e,"Start token cannot be null"),n.assert(null!==t,"End token cannot be null");for(var i=e.getLine(),o=e.getColumn(),r=t.getLine(),a=t.getColumn()+t.getLength(),s=[],l=0,c=i;c<=r;){var d=this._internalDocument.getLineNode(c).getTextForPositioning(),u=0;for(c===i&&(u=o);u<d.length&&(this._matlabTokenManager.isInString(c,u)||(d[u]===this._openCharacter?s.push(d[u]):d[u]===this._closeCharacter&&(0===s.length?l+=1:s.pop()),c!==r||u!==a));u++);c+=1}return{unmatchedCloseCharacters:l,unmatchedOpenCharacters:s.length}},_findStartToken:function(e){const t=this._matlabTokenManager.iterateTokens(e,null,!0);for(;t&&t.next();){if(!t.hasNext())return t.clone();if(t.isAtStartOfLine()&&!this._matlabStateManager.hasLineContinuation(t.getLine()-1))return t.clone()}return e},_findEndToken:function(e){const t=this._matlabTokenManager.iterateTokens(e,null,!1);for(;t&&t.next();){if(!t.hasNext())return t.clone();if(r.isDotDotDotToken(t))t.skipLine();else if(t.isAtEndOfLine())return t.clone()}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(324)],o=i.dj.d(n,(function(e){function t(e,t){return e+t}var i=[null,"FUNCTION","NESTED","IF","SWITCH","TRY","WHILE","FOR","END","ELSE","ELSEIF","BREAK","RETURN","PARFOR",null,"GLOBAL","PERSISTENT",null,null,null,"CATCH","CONTINUE","CASE","OTHERWISE",null,"CLASSDEF",null,null,"PROPERTIES",null,"METHODS","EVENTS","ENUMERATION","SPMD","PARSECTION","SECTION",null,null,null,null,"ID","EEND","INT","FLOAT","STRING","DUAL","BANG","QUEST",null,null,"SEMI","COMMA","LP","RP","LB","RB","LC","RC","FEEND",null,"TRANS","DOTTRANS","NOT","AT","DOLLAR","BACKQUOTE","DOUBLEQUOTE",null,null,null,"PLUS","MINUS","MUL","DIV","LDIV","EXP","COLON",null,null,null,"DOT","DOTMUL","DOTDIV","DOTLDIV","DOTEXP","AND","OR","ANDAND","OROR","LT","GT","LE","GE","EQ","NE","EQUALS","CNE","ARROW",null,null,"EOL","SEOL","CEOL","IEOL",null,"COMMENT","BLKSTART","BLKCOM","BLKEND","CPAD","PRAGMA","DOTDOTDOT","DOTDOT","DEEP_NEST","DEEP_STMT",null,"WHITE",null,"NEGERR","SEMERR","EOLERR","UNTERM","BADCHAR","DEEP_PAREN","FP_ERR","RES_ERR","DEEP_COM","BEGIN_TYPE","END_TYPE","STRING_LITERAL","UNTERM_STRING_LITERAL","ARGUMENTS_BLOCK","HEX","BINARY","HB_ERR","LAST_TOKEN"];function n(e,n){return e=t(e,function(e){return i[127&e]}(n)),e=t(e," ("),e=t(e=function(e,t){return e+t}(e,n>>8),") ")}var o=0,r=1,a=2,s=3,l=4,c=5,d=6,u=7,h=8,p=9,f=10,g=0,m=1,_=2,v=3;return function(){function t(){return{cstate:0,lstate:0,indent:0,infun:0,npars:0,ncoms:0,ldsv:0,atlp:0,contin:0,elist:0,haveends:0,funchaveends:0,begin:1,spare:0,stack:0,valParseState:-1,fcnLineParseState:-1}}function i(e,t){e.cstate=t.cstate,e.lstate=t.lstate,e.indent=t.indent,e.infun=t.infun,e.npars=t.npars,e.ncoms=t.ncoms,e.ldsv=t.ldsv,e.atlp=t.atlp,e.contin=t.contin,e.elist=t.elist,e.haveends=t.haveends,e.funchaveends=t.funchaveends,e.begin=t.begin,e.spare=t.spare,e.stack=t.stack,e.valParseState=t.valParseState,e.fcnLineParseState=t.fcnLineParseState}var b=0,y=0,C=0,T=null,E=null,S=0,w=0,I={cstate:0,lstate:0,indent:0,infun:0,npars:0,ncoms:0,ldsv:0,atlp:0,contin:0,elist:0,haveends:0,funchaveends:0,begin:1,spare:0,stack:0,valParseState:-1,fcnLineParseState:-1};function A(e){e.lstate=0,e.cstate=0,e.atlp=e.contin=e.elist=e.haveends=e.funchaveends=0,e.indent=e.infun=0,e.npars=e.ncoms=e.stack=0,e.begin=1,e.ldsv=0,e.spare=0,e.fcnLineParseState=g}var x=[29,0,0,0,0,0,0,0,0,31,27,27,27,27,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,0,0,31,32,36,30,34,29,19,24,4,5,13,11,26,12,18,14,2,2,2,2,2,2,2,2,2,2,17,25,21,28,22,33,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,8,15,9,16,3,35,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,6,20,7,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function N(){return I.npars&&(1<<I.npars)-1!==I.stack}function L(e){return e>=y?27:-128&(t=T.charCodeAt(e))?0:x[t];var t}function D(){for(;27!==L(b);++b);}function M(){for(;27!==L(b);++b);if(b+1<y){var e=T[b],t=T[b+1];("\n"===e&&"\r"===t||"\r"===e&&"\n"===t)&&++b}b<y&&++b}function P(e,t,i,n){if(3===arguments.length&&(n=0),e.length+n<i)return 0;for(;i>0;--i)if(e.charCodeAt(n+i-1)!==t.charCodeAt(i-1))return 0;return 1}function O(){return 2===I.cstate||4===I.cstate&&I.valParseState!==f}function R(t,i,n,o,r){switch(t=t.slice(i),n){case 2:if(P(t,"if",2))return e.TOKENS.IF;break;case 3:if(P(t,"for",3))return e.TOKENS.FOR;if(P(t,"end",3))return e.TOKENS.END;if(P(t,"try",3))return e.TOKENS.TRY;break;case 4:if(P(t,"case",4))return e.TOKENS.CASE;if(P(t,"else",4))return e.TOKENS.ELSE;if(P(t,"spmd",4))return e.TOKENS.SPMD;break;case 5:if(P(t,"catch",5))return e.TOKENS.CATCH;if(P(t,"while",5))return e.TOKENS.WHILE;if(P(t,"break",5))return e.TOKENS.BREAK;break;case 6:if(P(t,"elseif",6))return e.TOKENS.ELSEIF;if(P(t,"switch",6))return e.TOKENS.SWITCH;if(P(t,"global",6))return e.TOKENS.GLOBAL;if(P(t,"return",6))return e.TOKENS.RETURN;if(o&&P(t,"events",6))return e.TOKENS.EVENTS;if(P(t,"parfor",6))return e.TOKENS.PARFOR;break;case 7:if(o&&P(t,"methods",7))return e.TOKENS.METHODS;break;case 8:if(P(t,"function",8))return e.TOKENS.FUNCTION;if(P(t,"continue",8))return e.TOKENS.CONTINUE;if(P(t,"classdef",8))return e.TOKENS.CLASSDEF;break;case 9:if(P(t,"otherwise",9))return e.TOKENS.OTHERWISE;if(r&&P(t,"arguments",9))return e.TOKENS.ARGUMENTS_BLOCK;break;case 10:if(P(t,"persistent",10))return e.TOKENS.PERSISTENT;if(o&&P(t,"properties",10))return e.TOKENS.PROPERTIES;break;case 11:if(o&&P(t,"enumeration",11))return e.TOKENS.ENUMERATION}return e.TOKENS.ID}function k(t,i){var n=b===C?e.TOKENS.IEOL:e.TOKENS.EOL;return I.npars?1&I.stack?(t[i]=U(e.TOKENS.SEOL),1):(t[i+0]=0|e.TOKENS.EOLERR,t[i+1]=b-C<<8|n,2):(t[i]=b-C<<8|n,1)}function F(){if(30===L(C+1)){var t;for(t=2;31===L(C+t);++t);return 1===L(C+t)?e.TOKENS.PRAGMA:e.TOKENS.COMMENT}return e.TOKENS.COMMENT}function B(t,i){var n=0;return C=b,b+=3,t[i+n++]=b-C<<8|e.TOKENS.DOTDOTDOT,C=b,D(),C!=b&&(t[i+n++]=b-C<<8|e.TOKENS.COMMENT,C=b),M(),t[i+n++]=b-C<<8|e.TOKENS.CEOL,n}function H(t,i){var n,o,r;if(r=function(t,i){switch(L(b)){case 31:for(++b;31===L(b);++b);return t[i]=b-C<<8|e.TOKENS.WHITE,1;case 29:return D(),t[i]=b-C<<8|F(),C=b,M(),k(t,i+1)+1;case 18:return 18===L(b+1)&&18===L(b+2)?B(t,i):0;case 27:return M(),k(t,i);case 25:return++b,t[i]=b-C<<8|e.TOKENS.SEMI,I.lstate=0,1;case 26:return++b,t[i]=b-C<<8|e.TOKENS.COMMA,I.lstate=0,1;default:return 0}}(t,i))return r;for(n=0,o=0;b<y;++b){switch(L(b)){case 24:if(n)continue;if(1===o){if(!(b+1>=y||24!==L(b+1))){++b;continue}o=0}else o=1;continue;case 4:case 8:case 6:o||++n;continue;case 5:case 9:case 7:o||--n;continue;case 31:if(o||n)continue;break;case 25:if(o)continue;break;case 27:break;case 29:if(o)continue;break;case 18:if(o)continue;if(18===L(b+1)&&18===L(b+2))break;continue;case 26:if(o||n)continue;break;default:continue}break}if(o&&!n)t[i]=b-C<<8|e.TOKENS.UNTERM;else{if(2===I.ldsv&&1===L(C)){var a;for(a=C+1;a<b&&(1===L(a)||2===L(a)||3===L(a));++a);if(a===b)return t[i]=b-C<<8|e.TOKENS.ID,1}t[i]=b-C<<8|e.TOKENS.DUAL}return 1}function V(){if(b>=y)return 0;switch(L(b)){case 11:case 12:return 31===L(b+1)?0:1;case 23:return 28===L(b+1)?0:1;case 18:return 2===L(b+1)?1:0;case 1:case 2:case 3:case 4:case 8:case 6:case 24:case 36:case 10:case 33:return 1;default:return 0}}function j(e,t){return t<<8|e}function U(e){return j(e,b-C)}function W(e,t,i){return e[t]=U(i),1}function G(e){return 255&e}function z(e){return e>>8}function q(){for(;b<y&&(1===L(b)||2===L(b)||3===L(b));)++b;return 7!==I.lstate?R(T+C,C,b-C,O(),I.fcnLineParseState===_):e.TOKENS.ID}function K(){return 4===I.cstate||I.fcnLineParseState===v}function X(t,i){var n,l;if(b>=y)return w&&!I.begin?(C=b=y,k(t,i)):0;if(C=b,I.begin&&(l=function(t,i){var n=b;if(C=b,b>=y)return 0;for(;31==L(n);)++n;if(0!==I.ncoms){var o=e.TOKENS.BLKCOM;return 29!==L(n)||6!==L(n+1)&&7!==L(n+1)||!ne(n+2)||(o=6===L(n+1)?I.ncoms>=7?e.TOKENS.DEEP_COM:e.TOKENS.BLKSTART:e.TOKENS.BLKEND),M(),t[i]=b-C<<8|o,1}if(27===L(n))return 0;if(29===L(n))return 29!==L(n+1)||27!==L(n+2)&&31!==L(n+2)?6===L(n+1)&&ne(n+2)?(M(),t[i]=b-C<<8|e.TOKENS.BLKSTART,1):0:(D(),t[i]=b-C<<8|e.TOKENS.CPAD,1);return 0}(t,i)))return l;if(K()){var g=function(t,i){var n=L(b);if(I.valParseState===r||I.valParseState===s){if(1!==n&&4!==n&&6!==n&&31!==n&&18!==n)return I.valParseState=f,0}else if(I.valParseState===d){if(1!==n&&6!==n&&31!==n&&18!==n)return t[i+0]=j(e.TOKENS.END_TYPE,0),1}else if(I.valParseState===u){if(1!==n&&6!==n&&31!==n&&18!==n)return t[i+0]=j(e.TOKENS.END_TYPE,0),1}else if(I.valParseState===h&&6!==n&&31!==n&&18!==n)return t[i+0]=j(e.TOKENS.END_TYPE,0),1;switch(n){case 29:return I.valParseState!==o&&I.valParseState!==f?(t[i+0]=j(e.TOKENS.END_TYPE,0),1):0;case 31:return I.valParseState===u&&(I.valParseState=h),0;case 27:return I.valParseState!==o&&I.valParseState!==f?(t[i+0]=j(e.TOKENS.END_TYPE,0),1):0;case 1:return I.valParseState===r||I.valParseState===s?(l=q())===e.TOKENS.ID?(t[i+0]=j(e.TOKENS.BEGIN_TYPE,0),t[i+1]=j(e.TOKENS.ID,b-C),2):(I.valParseState=f,t[i+0]=j(l,b-C),1):I.valParseState===u?(l=q())===e.TOKENS.ID?(t[i+0]=j(e.TOKENS.ID,b-C),1):(t[i+0]=j(e.TOKENS.END_TYPE,0),t[i+1]=j(l,b-C),2):I.valParseState===h?(l=q(),t[i+0]=j(e.TOKENS.END_TYPE,0),2):I.valParseState===p&&1==I.npars?(l=q())===e.TOKENS.ID?(t[i+0]=j(e.TOKENS.ID,b-C),1):(t[i+0]=j(e.TOKENS.END_TYPE,0),t[i+1]=j(l,b-C),2):0;var l;case 18:return I.valParseState===u?1===L(b+1)?(++b,t[i+0]=j(e.TOKENS.DOT,b-C),1):18===L(b+1)&&18===L(b+2)?(I.valParseState=h,0):(t[i+0]=j(e.TOKENS.END_TYPE,0),1):0;case 28:switch(I.valParseState){case o:case a:case f:case c:case p:return 0;default:return t[i+0]=j(e.TOKENS.END_TYPE,0),1}case 26:switch(I.valParseState){case h:case d:case u:return t[i+0]=j(e.TOKENS.END_TYPE,0),1;default:return 0}case 25:switch(I.valParseState){case h:case d:case u:return t[i+0]=j(e.TOKENS.END_TYPE,0),1;default:return 0}case 4:return I.valParseState===r||I.valParseState===s||I.valParseState===a?(t[i+0]=j(e.TOKENS.BEGIN_TYPE,0),1):I.valParseState===h||I.valParseState===u?(t[i+0]=j(e.TOKENS.END_TYPE,0),1):0;case 6:return I.valParseState===u?(I.valParseState=h,0):I.valParseState===r||I.valParseState===s?(t[i+0]=j(e.TOKENS.BEGIN_TYPE,0),1):0;case 5:return 0===I.npars&&I.valParseState!==o&&I.valParseState!==a&&I.valParseState!==f?(t[i+0]=j(e.TOKENS.END_TYPE,0),1):1===I.npars&&I.valParseState===c?(++b,t[i+0]=U(e.TOKENS.RP),1):0;case 7:if(0===I.npars){if(I.valParseState!==o&&I.valParseState!==a&&I.valParseState!==f)return t[i+0]=j(e.TOKENS.END_TYPE,0),1}else if(1===I.npars&&I.valParseState===p)return++b,t[i+0]=U(e.TOKENS.RC),t[i+1]=j(e.TOKENS.END_TYPE,0),2;return 0;case 33:if(I.valParseState==a)return I.valParseState=f,0;default:return 0}}(t,i);if(g>0)return g}else if(1===I.lstate)return H(t,i);if(1===I.begin&&1&I.stack&&I.contin&&(3===I.lstate||2===I.lstate)&&V())return b>C?(t[i+0]=b-C<<8|e.TOKENS.WHITE,C=b,t[i+1]=b-C<<8|e.TOKENS.COMMA,2):(t[i]=b-C<<8|e.TOKENS.COMMA,1);switch(L(b)){case 37:return b=y,t[i]=b-C<<8|e.TOKENS.WHITE,1;case 31:for(++b;31==L(b);++b);return 1&I.stack&&(3==I.lstate||2==I.lstate)&&V()?(t[i+0]=b-C<<8|e.TOKENS.WHITE,C=b,t[i+1]=b-C<<8|e.TOKENS.COMMA,2):(t[i]=b-C<<8|e.TOKENS.WHITE,1);case 27:return M(),k(t,i);case 1:for(l=b+1;l<y&&(1==L(l)||2==L(l)||3==L(l));++l);if(b=l,(n=7==I.lstate?e.TOKENS.ID:R(T,C,b-C,O(),I.fcnLineParseState===_))==e.TOKENS.ID||n==e.TOKENS.END&&(N()||6==I.lstate))return n==e.TOKENS.END&&(n=N()?e.TOKENS.EEND:e.TOKENS.FEEND),t[i]=b-C<<8|n,1;switch(n){case e.TOKENS.FUNCTION:(I.infun&&(I.haveends||!I.begin)||2==I.cstate||3==I.cstate)&&(n=e.TOKENS.NESTED);break;case e.TOKENS.TRY:case e.TOKENS.METHODS:case e.TOKENS.PROPERTIES:case e.TOKENS.EVENTS:case e.TOKENS.ENUMERATION:case e.TOKENS.IF:case e.TOKENS.WHILE:case e.TOKENS.FOR:case e.TOKENS.PARFOR:case e.TOKENS.SWITCH:case e.TOKENS.SPMD:case e.TOKENS.PARSECTION:case e.TOKENS.SECTION:}return I.npars?(t[i+0]=0|e.TOKENS.RES_ERR,t[i+1]=b-C<<8|n,2):(t[i]=b-C<<8|n,1);case 2:if("0"===T[b]&&1===L(b+1)){if("x"===T[b+1]||"X"===T[b+1])return b+=2,W(n=function(){let t=0;for(;b<y&&$(T[b]);)++t,++b;if(1===L(b)&&!J(T[b])||18===L(b)&&!Q())return ee(),e.TOKENS.HB_ERR;if(!Z(4*t))return ee(),e.TOKENS.HB_ERR;if(t>16||0===t)return e.TOKENS.HB_ERR;return e.TOKENS.HEX}()),t[i]=b-C<<8|n,1;if("b"===T[b+1]||"B"===T[b+1])return b+=2,W(n=function(){let t=0;for(;b<y&&(i=T[b],"0"===i||"1"===i);)++t,++b;var i;if(2===L(b)||18===L(b)&&!Q()||1===L(b)&&!J(T[b]))return ee(),e.TOKENS.HB_ERR;if(!Z(t))return ee(),e.TOKENS.HB_ERR;if(t>64||0===t)return e.TOKENS.HB_ERR;return e.TOKENS.BINARY}()),t[i]=b-C<<8|n,1}for(++b;2==L(b);++b);return 18!==L(b)||Q()||(++b,W(n=Y())),1==L(b)?(n=Y(),t[i]=b-C<<8|n,1):(t[i]=b-C<<8|e.TOKENS.INT,1);case 18:if(18==L(b+1)&&18==L(b+2))return B(t,i);switch(L(++b)){case 2:return n=Y(),t[i]=b-C<<8|n,1;case 13:return++b,t[i]=b-C<<8|e.TOKENS.DOTMUL,1;case 14:return++b,t[i]=b-C<<8|e.TOKENS.DOTDIV,1;case 15:return++b,t[i]=b-C<<8|e.TOKENS.DOTLDIV,1;case 16:return++b,t[i]=b-C<<8|e.TOKENS.DOTEXP,1;case 24:return++b,t[i]=b-C<<8|e.TOKENS.DOTTRANS,1;case 18:return++b,t[i]=b-C<<8|e.TOKENS.DOTDOT,1;default:return t[i]=b-C<<8|e.TOKENS.DOT,1}case 29:return!T[C]&&C>=y-1?(y=C,0):(D(),t[i]=b-C<<8|F(),C=b,M(),1+k(t,i+1));case 23:return 28==L(++b)?(++b,t[i]=b-C<<8|e.TOKENS.NE,1):(t[i]=b-C<<8|e.TOKENS.NOT,1);case 28:return 28==L(++b)?(++b,t[i]=b-C<<8|e.TOKENS.EQ,1):(t[i]=b-C<<8|e.TOKENS.EQUALS,1);case 21:return 28==L(++b)?(++b,t[i]=b-C<<8|e.TOKENS.LE,1):(t[i]=b-C<<8|e.TOKENS.LT,1);case 22:return 28==L(++b)?(++b,t[i]=b-C<<8|e.TOKENS.GE,1):(t[i]=b-C<<8|e.TOKENS.GT,1);case 19:return 19==L(++b)?(++b,t[i]=b-C<<8|e.TOKENS.ANDAND,1):(t[i]=b-C<<8|e.TOKENS.AND,1);case 20:return 20==L(++b)?(++b,t[i]=b-C<<8|e.TOKENS.OROR,1):(t[i]=b-C<<8|e.TOKENS.OR,1);case 26:return++b,t[i]=b-C<<8|e.TOKENS.COMMA,1;case 25:return++b,!I.npars||1&I.stack?(t[i]=b-C<<8|e.TOKENS.SEMI,1):(t[i+0]=0|e.TOKENS.SEMERR,t[i+1]=b-C<<8|e.TOKENS.SEMI,2);case 17:return++b,t[i]=b-C<<8|e.TOKENS.COLON,1;case 4:return++b,32==I.npars?(t[i+0]=0|e.TOKENS.DEEP_PAREN,t[i+1]=b-C<<8|e.TOKENS.LP,2):(t[i]=b-C<<8|e.TOKENS.LP,1);case 6:return++b,32==I.npars?(t[i+0]=0|e.TOKENS.DEEP_PAREN,t[i+1]=b-C<<8|e.TOKENS.LC,2):(t[i]=b-C<<8|e.TOKENS.LC,1);case 8:return++b,32==I.npars?(t[i+0]=0|e.TOKENS.DEEP_PAREN,t[i+1]=b-C<<8|e.TOKENS.LB,2):(t[i]=b-C<<8|e.TOKENS.LB,1);case 5:return++b,0==I.npars?(t[i+0]=0|e.TOKENS.NEGERR,t[i+1]=b-C<<8|e.TOKENS.RP,2):(t[i]=b-C<<8|e.TOKENS.RP,1);case 9:return++b,0==I.npars?(t[i+0]=0|e.TOKENS.NEGERR,t[i+1]=b-C<<8|e.TOKENS.RB,2):(t[i]=b-C<<8|e.TOKENS.RB,1);case 7:return++b,0==I.npars?(t[i+0]=0|e.TOKENS.NEGERR,t[i+1]=b-C<<8|e.TOKENS.RC,2):(t[i]=b-C<<8|e.TOKENS.RC,1);case 33:return++b,t[i]=b-C<<8|e.TOKENS.QUEST,1;case 30:return++b,t[i]=b-C<<8|e.TOKENS.SHARP,1;case 34:return++b,t[i]=b-C<<8|e.TOKENS.DOLLAR,1;case 35:return++b,t[i]=b-C<<8|e.TOKENS.BACKQUOTE,1;case 10:return++b,t[i]=b-C<<8|e.TOKENS.AT,1;case 11:return++b,t[i]=b-C<<8|e.TOKENS.PLUS,1;case 12:return++b,t[i]=b-C<<8|e.TOKENS.MINUS,1;case 13:return++b,t[i]=b-C<<8|e.TOKENS.MUL,1;case 14:return++b,t[i]=b-C<<8|e.TOKENS.DIV,1;case 15:return++b,t[i]=b-C<<8|e.TOKENS.LDIV,1;case 16:return++b,t[i]=b-C<<8|e.TOKENS.EXP,1;case 24:if(b>0&&4!=I.lstate&&6!=I.lstate)switch(L(b-1)){case 5:if(I.atlp)break;case 1:case 2:case 3:case 18:case 7:case 9:case 24:case 36:return++b,t[i]=b-C<<8|e.TOKENS.TRANS,1}for(++b;27!=L(b);++b)if(24==L(b)){if(24==L(b+1)){++b;continue}return++b,t[i]=b-C<<8|e.TOKENS.STRING,1}return t[i]=b-C<<8|e.TOKENS.UNTERM,1;case 36:for(++b;27!=L(b);++b)if(36==L(b)){if(36==L(b+1)){++b;continue}return++b,t[i]=b-C<<8|e.TOKENS.STRING_LITERAL,1}return t[i]=b-C<<8|e.TOKENS.UNTERM_STRING_LITERAL,1;case 32:return 0!=I.lstate&&28==L(b+1)?(b+=2,t[i]=b-C<<8|e.TOKENS.CNE,1):(D(),t[i+0]=b-C<<8|e.TOKENS.BANG,C=b,M(),1+k(t,i+1));case 3:case 0:for(++b;;){switch(L(b)){case 3:case 0:++b;continue}break}return t[i]=b-C<<8|e.TOKENS.BADCHAR,1;default:return++b,t[i]=b-C<<8|e.TOKENS.BADCHAR,1}}function Y(){for(;b<y&&2==L(b);++b);if(b<y&&1==L(b))switch(T.charAt(b)){case"d":case"D":case"e":case"E":if(++b>=y)return e.TOKENS.FP_ERR;if((11==L(b)||12==L(b))&&++b>=y)return e.TOKENS.FP_ERR;if(2!=L(b))return e.TOKENS.FP_ERR;for(;b<y&&2==L(b);)++b}return b<y&&1==L(b)&&("i"==T.charAt(b)||"j"==T.charAt(b))&&++b,e.TOKENS.FLOAT}function Q(){if(18===L(b))switch(L(b+1)){case 13:case 14:case 15:case 16:case 24:return!0}return!1}function $(e){return e>="a"&&e<="f"||(e>="A"&&e<="F"||e>="0"&&e<="9")}function J(e){return"u"===e||"s"===e||"U"===e||"S"===e}function Z(e){if(1!==L(b))return!0;if(!J(T[b]))return!0;return b++,!!function(e){if(2!==L(b))return!1;if("8"===T[b])return 2!==L(++b)&&e<=8;if(2!==L(b+1))return!1;if("1"===T[b]&&"6"===T[b+1])return 2!==L(b+=2)&&e<=16;if("3"===T[b]&&"2"===T[b+1])return 2!==L(b+=2)&&e<=32;if("6"===T[b]&&"4"===T[b+1])return 2!==L(b+=2)&&e<=64;return!1}(e)||(ee(),!1)}function ee(){for(;2===L(b)||1===L(b);++b);if(18===L(b)&&!Q())for(++b;2===L(b)||1===L(b);++b);}function te(e){if(31==L(e)){for(;31==L(e);)++e;switch(L(e)){case 18:return 18==L(e+1)&&18==L(e+2)||2==L(e+1)?2:1;case 26:case 25:case 27:case 5:case 7:case 9:case 29:case 19:case 20:case 21:case 22:case 28:case 17:case 13:case 14:case 15:case 10:case 16:return 1;default:return 2}}return 1}function ie(t,i){var n=i>>8;switch(I.begin=0,K()&&function(t){switch(G(t)){case e.TOKENS.EOL:case e.TOKENS.IEOL:I.valParseState===f&&(I.valParseState=o);break;case e.TOKENS.BEGIN_TYPE:I.valParseState=l;break;case e.TOKENS.END_TYPE:I.valParseState=f;break;case e.TOKENS.ID:I.valParseState===o?I.valParseState=r:I.valParseState===a?I.valParseState=s:I.valParseState!==d&&I.valParseState!==l||(I.valParseState=u);break;case e.TOKENS.DOT:I.valParseState===r&&(I.valParseState=a);break;case e.TOKENS.COMMA:I.valParseState===f&&0===I.npars&&(I.valParseState=o);break;case e.TOKENS.SEMI:I.valParseState===f&&(0!==I.npars&&1&I.stack||(I.valParseState=o));break;case e.TOKENS.RP:1===I.npars&&I.valParseState===c&&(I.valParseState=d);break;case e.TOKENS.LP:I.valParseState===l&&(I.valParseState=c);break;case e.TOKENS.LC:I.valParseState!==h&&I.valParseState!==d&&I.valParseState!==l||(I.valParseState=p)}}(i),function(t){switch(G(t)){case e.TOKENS.WHITE:case e.TOKENS.COMMENT:case e.TOKENS.PRAGMA:case e.TOKENS.CPAD:case e.TOKENS.BLKCOM:case e.TOKENS.BLKSTART:case e.TOKENS.BLKEND:break;case e.TOKENS.FUNCTION:case e.TOKENS.NESTED:I.fcnLineParseState=m;break;case e.TOKENS.EOL:I.fcnLineParseState===m&&(I.fcnLineParseState=_);break;case e.TOKENS.COMMA:case e.TOKENS.SEMI:0===I.npars&&I.fcnLineParseState===m&&(I.fcnLineParseState=_);break;case e.TOKENS.ARGUMENTS_BLOCK:I.fcnLineParseState=v;break;case e.TOKENS.END:I.fcnLineParseState===v?I.fcnLineParseState=_:I.fcnLineParseState===_&&(I.fcnLineParseState=g);break;default:I.fcnLineParseState===_&&(I.fcnLineParseState=g)}}(i),G(i)){case e.TOKENS.COMMENT:case e.TOKENS.DOTDOTDOT:break;case e.TOKENS.BLKSTART:case e.TOKENS.BLKCOM:case e.TOKENS.BLKEND:I.begin=1;break;case e.TOKENS.EOL:case e.TOKENS.IEOL:I.begin=1,I.contin=0;break;case e.TOKENS.SEOL:case e.TOKENS.CEOL:I.contin=1,I.begin=1;break;case e.TOKENS.LP:5==I.lstate&&(I.atlp=1);case e.TOKENS.ID:case e.TOKENS.EEND:case e.TOKENS.FEEND:5==I.lstate&&(I.lstate=4);case e.TOKENS.COMMA:default:I.contin=0}if(0==I.cstate)switch(G(i)){case e.TOKENS.WHITE:case e.TOKENS.COMMENT:case e.TOKENS.BLKSTART:case e.TOKENS.BLKCOM:case e.TOKENS.BLKEND:case e.TOKENS.DOTDOTDOT:case e.TOKENS.EOL:case e.TOKENS.IEOL:case e.TOKENS.CEOL:break;case e.TOKENS.CLASSDEF:I.cstate=2;break;default:I.cstate=1}switch(G(i)){case e.TOKENS.ID:case e.TOKENS.EEND:case e.TOKENS.FEEND:switch(I.lstate){case 1:case 8:return;case 0:return function(e,t,i){var n,o=e.slice(t),r=["pi","eps","nan","NaN","inf","Inf","i","j","ans"],a=[2,3,3,3,3,3,1,1,3];if(0===o.length)return 1;for(n=0;n<r.length;++n)if(i==a[n]&&P(o,r[n],i))return 1;return 0}(T,b-(i>>8),i>>8)?void(I.lstate=2):void(I.lstate=function(e,t){var i,n=0,o=0,r=0,a=!1;if(31!=L(b))return 2;for(i=b;31==L(i);++i);if(i>=y)return 2;switch(L(i)){case 18:if(18==L(i+1)&&18==L(i+2))return 2;switch(L(i+1)){case 2:return 1;case 31:break;case 16:case 13:case 14:case 15:case 24:case 4:return te(i+2);case 1:break;default:return 1}break;case 28:if(28==L(i+1))return te(i+2);case 4:case 5:return 2;case 27:case 25:case 26:case 29:return 2;case 6:break;case 19:return 19==L(i+1)?te(i+2):te(i+1);case 20:return 20==L(i+1)?te(i+2):te(i+1);case 23:return 28==L(i+1)?te(i+2):1;case 21:case 22:case 32:return 28==L(i+1)?te(i+2):te(i+1);case 17:case 11:case 12:case 13:case 14:case 15:case 16:case 10:return te(i+1);case 8:if(a||1==I.ldsv)return 4;default:return 1}for(r=o=n=0;i<y;++i){switch(L(i)){case 28:if(!o&&!r&&28!=L(i+1))return n?1:2;continue;case 26:if(!o&&!r&&!n)break;continue;case 18:if(18==L(i+1)&&18==L(i+2))break;continue;case 25:if(!o||!r||!n)break;continue;case 29:if(!o&&!r)break;continue;case 27:break;case 24:o^=1;continue;case 36:r^=1;continue;case 4:case 6:case 8:o||r||++n;continue;case 5:case 7:case 9:o||r||--n;continue;default:continue}break}return 1}());case 7:case 4:case 6:return void(I.lstate=2);case 3:case 2:if(I.npars||I.elist||2==I.cstate)return}return;case e.TOKENS.TRY:++I.indent;case e.TOKENS.ELSE:case e.TOKENS.OTHERWISE:case e.TOKENS.CATCH:case e.TOKENS.RETURN:case e.TOKENS.BREAK:case e.TOKENS.CONTINUE:I.npars=0,I.stack=0,I.lstate=0;break;case e.TOKENS.FUNCTION:I.npars=0,I.stack=0,I.indent=1,2===I.cstate&&(I.cstate=3,I.indent=3),I.infun=I.indent,I.lstate=4;break;case e.TOKENS.NESTED:I.npars=0,I.stack=0,I.indent<7&&(I.infun=++I.indent),2===I.cstate&&(I.cstate=3,I.indent=3),I.haveends=1,I.lstate=4;break;case e.TOKENS.END:if(I.npars=0,I.stack=0,I.indent>0&&--I.indent,3===I.cstate&&2===I.indent||4===I.cstate){I.cstate=2,I.lstate=4;break}2===I.cstate&&0===I.indent&&(I.cstate=1,I.infun=0),I.indent<I.infun&&(I.haveends=1,I.funchaveends=1,--I.infun),I.lstate=0;break;case e.TOKENS.PROPERTIES:I.cstate=4;case e.TOKENS.ARGUMENTS_BLOCK:I.valParseState=o;case e.TOKENS.METHODS:case e.TOKENS.EVENTS:case e.TOKENS.ENUMERATION:I.npars=0,I.stack=0,++I.indent,I.lstate=4;break;case e.TOKENS.IF:case e.TOKENS.WHILE:case e.TOKENS.FOR:case e.TOKENS.PARFOR:case e.TOKENS.SPMD:case e.TOKENS.PARSECTION:case e.TOKENS.SECTION:case e.TOKENS.SWITCH:++I.indent;case e.TOKENS.ELSEIF:case e.TOKENS.CASE:I.npars=0,I.stack=0,I.lstate=4;break;case e.TOKENS.GLOBAL:case e.TOKENS.PERSISTENT:I.npars=0,I.stack=0,I.elist=1,I.lstate=4;break;case e.TOKENS.BLKSTART:I.ncoms<7&&++I.ncoms;break;case e.TOKENS.BLKEND:I.ncoms>0&&--I.ncoms;break;case e.TOKENS.COMMA:I.npars?I.lstate=4:(I.ldsv=0,I.stack=0,I.lstate=2===I.cstate?4:0),I.elist=0;break;case e.TOKENS.SEMI:4===I.cstate&&I.valParseState===f&&(I.npars&&1&I.stack||(I.valParseState=o)),I.npars?1&I.stack?I.lstate=4:(I.elist=0,I.npars=0,I.stack=0,I.ldsv=0,I.lstate=2===I.cstate?4:0):(I.ldsv=0,I.stack=0,I.lstate=2===I.cstate?4:0);break;case e.TOKENS.RB:I.npars>0&&(I.npars--,I.stack>>=1),1===I.ldsv&&0===I.npars?(I.lstate=1,I.ldsv=2):I.lstate=3;break;case e.TOKENS.RC:I.npars>0&&(I.npars--,I.stack>>=1),I.lstate=2;break;case e.TOKENS.RP:I.npars>0&&(I.npars--,I.stack>>=1),I.lstate=2,I.atlp&&(I.lstate=4,I.atlp=0);break;case e.TOKENS.LP:I.npars<32&&(I.npars++,I.stack<<=1),I.lstate=4;break;case e.TOKENS.LB:I.npars<32&&(I.npars++,I.stack<<=1,I.stack|=1),I.lstate=4;break;case e.TOKENS.LC:I.npars<32&&(I.npars++,I.stack<<=1,2!==I.lstate&&(I.stack|=1)),I.lstate=4;break;case e.TOKENS.COMMENT:case e.TOKENS.WHITE:case e.TOKENS.PRAGMA:case e.TOKENS.CPAD:case e.TOKENS.DOTDOTDOT:switch(I.lstate){case 2:case 3:if(I.npars||I.elist||2==I.cstate)return;switch(L(b)){case 1:case 2:case 24:case 36:case 8:case 23:I.lstate=0;break;case 18:2===L(b+1)&&(I.lstate=0)}}break;case e.TOKENS.AT:switch(I.lstate){case 2:case 3:I.elist=1;break;default:I.lstate=5}break;case e.TOKENS.PLUS:case e.TOKENS.MINUS:case e.TOKENS.MUL:case e.TOKENS.DIV:case e.TOKENS.LDIV:case e.TOKENS.EXP:case e.TOKENS.COLON:case e.TOKENS.AND:case e.TOKENS.ANDAND:case e.TOKENS.OR:case e.TOKENS.OROR:case e.TOKENS.NOT:case e.TOKENS.LT:case e.TOKENS.LE:case e.TOKENS.GT:case e.TOKENS.GE:case e.TOKENS.EQ:case e.TOKENS.NE:case e.TOKENS.CNE:case e.TOKENS.DOTMUL:case e.TOKENS.DOTDIV:case e.TOKENS.DOTLDIV:case e.TOKENS.DOTEXP:I.lstate=4;break;case e.TOKENS.EQUALS:I.lstate=6,I.elist=0;break;case e.TOKENS.DOTTRANS:case e.TOKENS.FLOAT:case e.TOKENS.INT:case e.TOKENS.HEX:case e.TOKENS.BINARY:case e.TOKENS.STRING:case e.TOKENS.STRING_LITERAL:case e.TOKENS.TRANS:I.lstate=3;break;case e.TOKENS.DOT:I.lstate=7;break;case e.TOKENS.SEOL:I.elist=0,I.lstate=4;break;case e.TOKENS.EOL:case e.TOKENS.IEOL:I.elist=0,I.npars=0,I.stack=0,I.ldsv=0,I.lstate=2===I.cstate?4:0;break;case e.TOKENS.CEOL:I.contin=1;break;case e.TOKENS.BANG:I.lstate=0;break;case e.TOKENS.SEMERR:case e.TOKENS.EOLERR:I.stack=0,I.npars=0,I.elist=0,I.lstate=0;break;case e.TOKENS.NEGERR:I.stack=0,I.npars=0,I.elist=0,I.lstate=3;break;case e.TOKENS.DEEP_PAREN:case e.TOKENS.DEEP_COM:case e.TOKENS.DEEP_NEST:case e.TOKENS.DEEP_STMT:I.stack=0,I.npars=0,I.elist=0,I.lstate=4;break;case e.TOKENS.RES_ERR:case e.TOKENS.FP_ERR:case e.TOKENS.HB_ERR:case e.TOKENS.UNTERM:case e.TOKENS.UNTERM_STRING_LITERAL:case e.TOKENS.BADCHAR:case e.TOKENS.SHARP:case e.TOKENS.DOLLAR:case e.TOKENS.BACKQUOTE:I.lstate=3;break;case e.TOKENS.CLASSDEF:I.cstate=2,I.lstate=4,I.indent=1,I.haveends=1,I.funchaveends=1;break;case e.TOKENS.BLKCOM:break;case e.TOKENS.DUAL:1===I.ldsv&&"-"!==t[n+0]&&(I.ldsv=2)}}function ne(e){for(;e<y;++e){if(27===L(e))return b=27===L(e+1)&&"\r"===T.charAt(e)?e+1:e,1;if(31!==L(e))return 0}return b=y,1}function oe(t,i){switch(0===I.lstate&&0===S&&(S=1),ie(t,i),G(i)){case e.TOKENS.COMMENT:case e.TOKENS.BLKSTART:case e.TOKENS.BLKCOM:case e.TOKENS.BLKEND:case e.TOKENS.WHITE:case e.TOKENS.DOTDOTDOT:case e.TOKENS.CPAD:case e.TOKENS.PRAGMA:case e.TOKENS.EOL:case e.TOKENS.SEOL:case e.TOKENS.IEOL:case e.TOKENS.CEOL:break;case e.TOKENS.FUNCTION:case e.TOKENS.NESTED:case e.TOKENS.CLASSDEF:case e.TOKENS.UNTERM:case e.TOKENS.UNTERM_STRING_LITERAL:case e.TOKENS.DEEP_PAREN:case e.TOKENS.DEEP_COM:case e.TOKENS.DEEP_NEST:case e.TOKENS.DEEP_STMT:case e.TOKENS.FP_ERR:case e.TOKENS.RES_ERR:case e.TOKENS.SEMERR:case e.TOKENS.EOLERR:case e.TOKENS.NEGERR:case e.TOKENS.SHARP:case e.TOKENS.DOLLAR:case e.TOKENS.BACKQUOTE:S=3;break;default:1===S&&(S=2)}}return{lex_line:function(t,n,l,c,d){S=0,i(I,l),b=0,y=d,C=0,w=!0;var u,h,p,g=0;if(E=T=c,0===d){for(h=k(t,0),u=0;u<h;++u)oe(E,t[u]);return{numTokens:h,newState:I,isExecutable:2===S}}if(p=K()&&I.valParseState!==o&&I.valParseState!==r&&I.valParseState!==a&&I.valParseState!==s&&I.valParseState!==f){if(!(n>3))return{numTokens:-1,newState:l,isExecutable:2===S};t[0]=j(e.TOKENS.BEGIN_TYPE,0),g=1}for(;g<n-3&&(h=X(t,g));)for(u=0;u<h;++u,++g)oe(E,t[g]),G(t[g])===e.TOKENS.FEEND&&(t[g+u]=j(e.TOKENS.EEND,z(t[g+u])));if(g>=n-3&&!I.begin)return{numTokens:-1,newState:l,isExecutable:2===S};if(p&&g>1&&G(t[1])===e.TOKENS.WHITE){var m=t[0];t[0]=t[1],t[1]=m}return{numTokens:g,newState:I,isExecutable:2===S}},lex_file:function(t,n,o,r,a){var s,l,c;for(S=0,i(I,o),b=0,y=a,w=!1,C=0,E=T=r,s=0;s<n-3&&(c=X(t,s));s+=c)for(l=0;l<c;++l)oe(E,t[s+l]),(127&t[s+l])===e.TOKENS.FEEND&&(t[s+l]=t[s+l]>>8<<8|e.TOKENS.EEND);return{isExecutable:2===S,newState:I}},make_lex_state:t,copy_lex_state:i,dump_token:n,set_state:function(e){i(I,e)},initialize:function(e,t,i){A(I={cstate:0,lstate:0,indent:0,infun:0,npars:0,ncoms:0,ldsv:0,atlp:0,contin:0,elist:0,haveends:0,funchaveends:0,begin:1,spare:0,stack:0,valParseState:-1,fcnLineParseState:-1}),E=T=e,b=0,y=t,0,0,w=i,S=0},initialize_state:A,in_block_comment:function(e){return e||(e=I),e.ncoms>0},are_states_equal:function(e,t){return e.lstate!==t.lstate||e.cstate!==t.cstate||e.indent!==t.indent||e.contin!==t.contin||e.atlp!==t.atlp||e.begin!==t.begin||e.infun!==t.infun||e.ldsv!==t.ldsv||e.ncoms!==t.ncoms||e.elist!==t.elist||e.npars!==t.npars||e.stack!==t.stack||e.haveends!==t.haveends||e.fcnLineParseState!==t.fcnLineParseState?0:1},is_contin:function(e){return e.contin},nesting:function(e,t){var i=[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4];if(t){for(var n=0,o=e.stack;0!==o;)n+=i[15&o],o>>=4;t[0]=e.infun,t[1]=e.indent,t[2]=n,t[3]=e.contin}return e.haveends}}}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(237),i(720),i(320),i(728),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(r,{_TRIGGER_POS_REQ_CHAR:void 0,_CURSOR_POS_REQ_CHAR:void 0,_TRIGGER_POS_REQ_CHAR_ESC_CHAR:void 0,_QUOTE_TYPE:void 0,_isTriggerPositionExpected:function(e){var i=e.triggerPos.getNode(),o=e.triggerPos.getLineColumn().line-1,r=e.triggerPos.getLineColumn().column-1;if(o<0||r<=0)return!1;var s=e.cursorPos.getLineColumn().line-1;return t.isCodeContainer(i)&&!a.isNonCodeLineInBetweenForSplitRule(this._internalDocument,o,s)&&a.isCursorPositionApplicableForSplitRule(e.cursorPos)&&this._checkUntermString(o,r-1,this._matlabTokenManager,n.getLatestNumberOfWhiteSpaces(),e.cursor)},_checkUntermString:function(e,t,i,n,o){var r=a.isInMatlabUntermString(e,t,i,this._QUOTE_TYPE);return r||0!==n?r:this._checkEscapeCharCondition(e,t,i,o)},_checkEscapeCharCondition:function(e,t,i,n){var r,s=a.getTextAtLineColumnForFormatting(this._internalDocument,e,t,1),l=n.getLineColumn(),c=l.line-1,d=l.column-1,u=a.getTextAtLineColumnForFormatting(this._internalDocument,c,d,1);if(s===(r="single"===this._QUOTE_TYPE?a.SINGLE_QUOTE_CLOSE_CHAR:a.DOUBLE_QUOTE_CLOSE_CHAR)&&u===r){var h=i.getTokenOnLineColumn(e,t);return o.isMatlabStringToken(h)}},_findAndRecordTarget:function(e){return!0},format:function(e){if(!this._document.isReadOnly()&&!e.cursor.isCursorReadOnly()){for(var t=e.triggerPos.getLineColumn(),i=t.line,o=t.column,r=e.cursorPos.getLineColumn().line,a=e.cursorPos.getLineColumn().column,s=n.getLatestNumberOfWhiteSpaces(),l=n.getLatestIndentLevel(),c=this._CURSOR_POS_REQ_CHAR,d=0;d<s;d+=1)c+=" ";var u=this._cacheDataForQuoteTypeSpecificFormat(e);this._checkEscapeCharCondition(i-1,o-2,this._matlabTokenManager,e.cursor)?(this._document.insertText(this._TRIGGER_POS_REQ_CHAR_ESC_CHAR,i,o),l>0&&this._document.deleteText(r,1,r,a+1)):(this._document.insertText(this._TRIGGER_POS_REQ_CHAR,i,o),this._document.deleteText(r,1,r,a),this._document.insertText(c,r,1)),this._formatQuoteTypeSpecific(u),e.cursor.setLineColumn(r,2),e.cursor.onUpdate()}},postFormat:function(e){if(n.isAutoIndentEnabled()){var t=e.cursorPos.getLine();this._indentUtilities.format(t-1)}},_formatQuoteTypeSpecific:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.smartformatting.SplitStringSmartFormatter._formatQuoteTypeSpecific")},_cacheDataForQuoteTypeSpecificFormat:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{_ACTION_ID_PREFIX:"rtc_smartformatting",_ACTION_ON_SUFFIX:"_on",_ACTION_OFF_SUFFIX:"_off",_MASTER_SETTING:null,_SETTING_TO_ACTION_MAP:null,constructor:function(e,t){this._rtcSettingService=e,this._actionService=t,this._setupSettingListeners(),this._setInitialActionStatesBasedOnSettings()},_setupSettingListeners:function(){this.own(this._rtcSettingService.listenToSettingChange(this._MASTER_SETTING,this._handleMasterSettingChange.bind(this))),Object.keys(this._SETTING_TO_ACTION_MAP).forEach((function(e){this.own(this._rtcSettingService.listenToSettingChange(e,this._handleSettingChange.bind(this,e)))}),this)},_handleMasterSettingChange:function(e){Object.keys(this._SETTING_TO_ACTION_MAP).forEach((function(t){var i=this._rtcSettingService.getSetting(t),n=this._SETTING_TO_ACTION_MAP[t];i.then(function(t){this._executeActionsToToggleFeature(n,e,t)}.bind(this),function(t){this._executeActionsToToggleFeature(n,e,!0)}.bind(this))}),this)},_handleSettingChange:function(e,t){var i=this._SETTING_TO_ACTION_MAP[e];this._rtcSettingService.getSetting(this._MASTER_SETTING).then(function(e){this._executeActionsToToggleFeature(i,e,t)}.bind(this),function(e){this._executeActionsToToggleFeature(i,!0,t)}.bind(this))},_executeActionsToToggleFeature:function(e,t,i){var n=t&&i?this._ACTION_ON_SUFFIX:this._ACTION_OFF_SUFFIX;e.forEach((function(e){var t=this._ACTION_ID_PREFIX+e+n;this._actionService.executeAction(t)}),this)},_setInitialActionStatesBasedOnSettings:function(){this._rtcSettingService.getSetting(this._MASTER_SETTING).then(function(e){this._setInitialActionBasedOnMasterSetting(e)}.bind(this),function(e){this._setInitialActionBasedOnMasterSetting(!0)}.bind(this))},_setInitialActionBasedOnMasterSetting:function(e){Object.keys(this._SETTING_TO_ACTION_MAP).forEach((function(t){this._rtcSettingService.getSetting(t).then(function(i){this._executeEnablementAction(t,e,i)}.bind(this),function(i){this._executeEnablementAction(t,e,!0)}.bind(this))}),this)},_executeEnablementAction:function(e,t,i){var n=t&&i?this._ACTION_ON_SUFFIX:this._ACTION_OFF_SUFFIX;this._SETTING_TO_ACTION_MAP[e].forEach((function(e){var t=this._ACTION_ID_PREFIX+e+n;this._actionService.executeAction(t)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(210),i(211),i(203),i(204),i(253),i(807),i(808)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return n(a,{_WIDTH:8,constructor:function(t,i,n,r,a,s){this._sectionModel=t,this._staleSectionModel=i,this._sectionDecoratorUtilities=n,this._currentExecutionLineModel=r,this._lineNumberService=a,this._staleSections=[],this.own(e.after(this._staleSectionModel,"onModelUpdated",o.hitch(this,"_handleStalenessModelUpdate"),!0)),this.own(e.after(this._sectionModel,"onModelUpdated",o.hitch(this,"_emitUpdate"))),this.own(e.after(s,"onFileTypeChange",o.hitch(this,"_emitUpdate"))),this.own(e.after(this._currentExecutionLineModel,"onCurrentLineChanged",o.hitch(this,"_emitUpdate"))),this.onUpdate()},getRangeDescriptions:function(e){var t=[];return this._sectionDecoratorUtilities.getSectionNumbersInView(e).forEach((function(e){var i=this._getDescriptionForSectionNumber(e);i&&t.push(i)}),this),t},_getDescriptionForSectionNumber:function(e){if(this._staleSectionModel.isSectionStale(e)){var n=i.create("div");this._sectionDecoratorUtilities.addDataTestTag(n,e),t.add(n,this._getDecorationClassesForStaleSection(e));var o=this._sectionModel.getSection(e),r=o.start.getLine(),a=o.end.getLine();if(r>0&&a>0)return new s(n,r,a,this,!0,!0)}return null},_emitUpdate:function(){this.onUpdate()},_handleStalenessModelUpdate:function(e){var t=!1,i=this._sectionModel.getSections(),n=this._staleSections;n.length!==i.length?(t=!0,this._updateStaleSections()):e?t=this._handleCodeChanged(e):(this._updateStaleSections(),t=n.some((function(e,t){return e!==this._staleSections[t]}),this)),t&&this.onUpdate()},_handleCodeChanged:function(e){var t=!1;return e.forEach(function(e){var i=this._staleSectionModel.isSectionStale(e);i!==this._staleSections[e]&&(t=!0,this._staleSections[e]=i)}.bind(this)),t},_updateStaleSections:function(){var e=this._sectionModel.getSections();this._staleSections=e.map((function(e,t){return this._staleSectionModel.isSectionStale(t)}),this)},getWidth:function(){return this._WIDTH},_getDecorationClassesForStaleSection:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(257),i(203)],o=i.dj.d(n,(function(e,t){return t(null,{constructor:function(e,t,i,n,o,r){this._actionService=e,this._cursorController=t,this._sectionModel=i,this._currentSectionModel=n,this._staleSectionModel=o,this._fileTypeService=r},canBeEvaluated:function(e){var t=this._currentSectionModel.getCurrentSectionNumber()===e,i=!!this._sectionModel.getSection(e).localFunctions,n=this._fileTypeService.isFunction()||this._fileTypeService.isClass();return(t||!!this._staleSectionModel.isSectionStale(e))&&!(i||n)},handleMouseClick:function(t,i){if(e.isLeft(t)){var n=this.canBeEvaluated(i);this._currentSectionModel.getCurrentSectionNumber()===i||this._cursorController.setCursorToEvent(t),n&&this._actionService.executeAction("rtc_run_section",{actionOrigin:"statusActionBar"})}},handleMouseDown:function(e,t){e.stopPropagation()},handleMouseUp:function(e,t){e.stopPropagation()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{_FEATURE_ID:"rtc.dataservice.sections",_EDITOR_ID:"editorId",_SECTIONS:"sections",_LABEL:"label",_LINE:"line",_COLUMN:"column",constructor:function(e,t,i){this._editorId=e,this._editorDataService=t,this._fileType=i},_sendSectionsResponse:function(){if(this._fileType.getFileType()!==this._fileType.FILE_TYPE.Unknown){var e={};e[this._SECTIONS]=this._getSections(),e[this._EDITOR_ID]=this._editorId,this._editorDataService.request(this._FEATURE_ID,e)}},_getSections:function(){throw new Error("Unimplemented API: _getSections")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(573),i(4421)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{getApplicableNodeClass:function(){return i},pack:function(e){e.serialize()},unpack:function(e){t.error("Unimplemented: unpack")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1421)],o=i.dj.d(n,(function(e,t,i){return e(i,{getPositionFromCoordinate:function(e,i){t.error("Unimplemented: getPositionFromCoordinate")},getCoordinateFromPosition:function(e){t.error("Unimplemented: getCoordinateFromPosition")},getDelegatedPositionForCoordinate:function(e){},getDomNode:function(e){t.error("Unimplemented: getDomNode")},getClientRects:function(e){var t=this._getClientRects(e);return t.forEach((function(t){t.associatedNode=e}),this),t},_getClientRects:function(e){return[]},getClosestRect:function(e,i,n){t.error("Unimplemented: getClosestRect")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(585)],o=i.dj.d(n,(function(e){return{DEFAULT_TEXT_COLOR:new e(0,0,0)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(234),i(1123),i(1422),i(1997)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{constructor:function(e,t,i,n,o,r){this._internalDocument=t,this._documentInfo=i,this._syntaxHighlightingColors=r,this._viewReadyService=n,this._tokenManager=o,this._aspectHandles=[],this.enable()},enable:function(){this._isEnabled||(this._enableListeners(),this._recolorDocument(),this._isEnabled=!0)},disable:function(){this._isEnabled&&(this._isEnabled=!1,this._disableListeners(),this._clearAllHighlighting())},destroy:function(){this.inherited(arguments),this._disableListeners()},_handleViewReady:function(){this._isEnabled?this.enable():this.disable()},_handleColorsUpdated:function(){this._recolorDocument()},_handleTokensUpdated:function(e){this._highlightTokens(e)},_enableListeners:function(){this._aspectHandles.push(i.after(this._viewReadyService,"onViewReady",t.hitch(this,"_handleViewReady"))),this._aspectHandles.push(i.after(this._syntaxHighlightingColors,"onColorsUpdated",t.hitch(this,"_handleColorsUpdated"))),this._aspectHandles.push(i.after(this._tokenManager,"onTokensUpdated",t.hitch(this,"_handleTokensUpdated"),!0))},_disableListeners:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]},_recolorDocument:function(){for(var e=new Array(this._internalDocument.getMaxLineNumber()),t=0;t<e.length;t++)e[t]=t;this._highlightTokens(new o(e))},_highlightTokens:function(e){if(this._isNoCodeInDocument())return;const t=this._getLineToDecorationInfoMap(e.getFirstLineNumber(),e.getLastLineNumber()),i=e.getAllRetokenizedLines();for(let e=0;e<i.length;e++){const n=i[e],o=t[n];this._shouldDecorateLine(n,o)&&this._decorator.updateLineRange(n,n,t)}this._decorator.applyChanges()},_isNoCodeInDocument:function(){return this._internalDocument.getMaxLineNumber()<=1&&!this._documentInfo.getCodeText()},_shouldDecorateLine:function(e,t){return t&&n.isCodeContainer(this._internalDocument.getLineNode(e))},_getLineToDecorationInfoMap:function(e,t){return r.processTokens(this._tokenManager.getTokens(),e,t,this._syntaxHighlightingColors)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(362)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._decoration=e,this._decorator=e.createDecorator(null,null,i.DECORATOR_ID.SYNTAX_HIGHLIGHTING,!1),this._decorator.registerUpdateCallback(this._updateDecorationOnLine.bind(this))},_updateDecorationOnLine:function(e,t){i.updateStylesByLineDecorationInfo(e,t,"color",this._decorator,this._internalDocument)},_clearAllHighlighting:function(){this._decorator.clearAllLineRange(),this._decorator.applyChanges()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{ERROR:"error",COMMENT:"comment",STRING:"string",TYPE_SECTION:"type sections",KEYWORD:"keyword",UNTERMINATED_STRING:"invalid",SYSTEM_COMMAND:"system",PLAIN_TEXT:"plain text"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(207),i(1395),i(585),i(1998),i(2e3)],o=i.dj.d(n,(e,t,i,n,o)=>class extends e{constructor(e,i){super(),this._syntaxHighlightingColors=e,this._settingsService=i;const n=Object.values(o);this._readInitialValues(n),this._batchsub=new t(n,this._settingsService,this._handleSettingsChanged.bind(this)),this.own(this._batchsub)}_readInitialValues(e){const t=new Map,i=e.map(e=>{const i=this._settingsService.getSetting(e);return i.then(i=>{t.set(e,i)},e=>{}),i});Promise.all(i).then(()=>{this._setColorsFromMap(t)},e=>{})}_handleSettingsChanged(e){this._setColorsFromMap(e)}_setColorsFromMap(e){this._syntaxHighlightingColors.pauseEvents();const t=e.keys();let i=t.next();for(;!i.done;){const n=i.value,o=this._getSyntaxTypeBySettingKey(n);this._setColor(o,e.get(n)),i=t.next()}this._syntaxHighlightingColors.unpauseEvents()}_getSyntaxTypeBySettingKey(e){switch(e){case o.COMMENT_COLOR:return n.COMMENT;case o.STRING_COLOR:return n.STRING;case o.SYSTEM_COMMAND_COLOR:return n.SYSTEM_COMMAND;case o.KEYWORD_COLOR:return n.KEYWORD;case o.VALIDATION_SECTION_COLOR:return n.TYPE_SECTION;case o.UNTERMINATED_STRING_COLOR:return n.UNTERMINATED_STRING;case o.SYNTAX_ERROR_COLOR:return n.ERROR;default:throw new Error("Unknown setting key")}}_setColor(e,t){const n=new i(t[0],t[1],t[2]);this._syntaxHighlightingColors.setColorForType(e,n)}},e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{COMMENT_COLOR:"matlab.colors.CommentColor",STRING_COLOR:"matlab.colors.StringColor",SYSTEM_COMMAND_COLOR:"matlab.colors.SystemCommandColor",KEYWORD_COLOR:"matlab.colors.KeywordColor",VALIDATION_SECTION_COLOR:"matlab.colors.ValidationSectionColor",UNTERMINATED_STRING_COLOR:"matlab.colors.UnterminatedStringColor",SYNTAX_ERROR_COLOR:"matlab.colors.SyntaxErrorColor"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{isPrimary:function(e){return e.isPrimary||1===e.pointerId||0===e.button||"Touch"===e.constructor.name},getXY:function(e){return{x:e.clientX,y:e.clientY}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(824),i(1126),i(2001)],o=i.dj.d(n,(function(e,t,i){var n=i.getXY,o=t.getTimestamp,r=e.getCenter,a=e.getAngle,s=e.getSpread,l=e.computeDistance,c=e.computeDirection;return{calculateProperties:function(e,t){var i=e.map(n);return{center:r(i),angle:a(i),spread:s(i),timestamp:o(t)}},compareProperties:function(e,t,i){t||(t=e),i||(i=t);var n=e.timestamp-i.timestamp,o=l(i.center,e.center);return{center:{current:e.center,initial:t.center,previous:i.center,delta:l(t.center,e.center),velocity:{x:o.x/n,y:o.y/n},direction:c(i.center,e.center)},angle:{current:e.angle,initial:t.angle,previous:i.angle,delta:e.angle-t.angle,velocity:(e.angle-i.angle)/n},spread:{current:e.spread,initial:t.spread,previous:i.spread,delta:e.spread-t.spread,velocity:(e.spread-i.spread)/n},timestamp:{current:e.timestamp,initial:t.timestamp,previous:i.timestamp,delta:e.timestamp-t.timestamp}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(204),i(1127),i(586),i(526),i(675),i(824),i(1126)],o=i.dj.d(n,(function(e,t,i,n,o,a,s){var l=a.arePointsWithinRadius,c=s.isWithinTimeout,d=o.getCenterPoint,u=o.getTimestamp,h=o.createTimeout;return function(){function i(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.options=e.mixin({numTaps:1,maxRadius:1,maxTouchRadius:20,maxHold:250,tapDelay:250},t||{}),this.observable=n(),this.reset()}return r(i,[{key:"setOptions",value:function(t){this.options=e.mixin(this.options,t||{}),this.reset()}},{key:"_emitTimeout",value:function(){this.observable.emit(h())}},{key:"onDown",value:function(e){this.resetTimers(),this.holdTimer.start(),this.latestDown=e,this._checkUpToDownDelay(),this._checkUpToDownDistance()}},{key:"onUp",value:function(e){this.resetTimers(),this.eventTimer.start(),this.latestUp=e,this._updateTapCount()}},{key:"_isActivePress",value:function(){var e=this.latestDown&&this.latestUp,t=!!this.latestDown;return e?u(this.latestUp)>u(this.latestDown):t}},{key:"_checkUpToDownDelay",value:function(){this.validUpToDownDelay=!0,0===this.tapCount||c(u(this.latestUp),u(this.latestDown),this.options.tapDelay)||(this.validUpToDownDelay=!1)}},{key:"_checkUpToDownDistance",value:function(){this.validUpToDownDistance=!0,0===this.tapCount||l(d(this.latestUp),d(this.latestDown),this.latestDown&&this.latestDown.srcEvent&&"touch"===this.latestDown.srcEvent.pointerType?this.options.maxTouchRadius:this.options.maxRadius)||(this.validUpToDownDistance=!1)}},{key:"_updateTapCount",value:function(){var e=this._isActivePress(),t=l(d(this.latestDown),d(this.latestUp),this.latestDown&&this.latestDown.srcEvent&&"touch"===this.latestDown.srcEvent.pointerType?this.options.maxTouchRadius:this.options.maxRadius),i=c(u(this.latestDown),u(this.latestUp),this.options.maxHold),n=!1!==this.validUpToDownDelay&&!1!==this.validUpToDownDistance;e&&t&&i&&n&&this.tapCount++}},{key:"isTap",value:function(){var e=!1!==this.validUpToDownDelay&&!1!==this.validUpToDownDistance;return this.tapCount===this.options.numTaps&&e}},{key:"isEarlyTap",value:function(){var e=this._isActivePress(),t=this.tapCount<this.options.numTaps;return e&&t}},{key:"getTapCount",value:function(){return this.tapCount}},{key:"resetTimers",value:function(){this.holdTimer&&this.holdTimer.clear(),this.eventTimer&&this.eventTimer.clear()}},{key:"reset",value:function(){this.tapCount=0,this.latestDown=null,this.latestUp=null,this.resetTimers(),this.holdTimer=new t(this._emitTimeout.bind(this),this.options.maxHold),this.eventTimer=new t(this._emitTimeout.bind(this),this.options.tapDelay)}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(221),i(206),i(249)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e,i,n,r,a,s){this._cursor=e,this._document=i,this._internalDocument=n,this._keyhandler=r,this._keyCapture=this._keyhandler.keyCapture,this._shadowtextservice=a,this._view=s,this._handlers=[],this._handlers.push(o(this._keyCapture,"compositionstart",t.hitch(this,"_handleCompositionstart"))),this._handlers.push(o(this._keyCapture,"compositionend",t.hitch(this,"_handleCompositionend"))),this._IMEnodeHandle=null,this._currentText=""},destroy:function(){this._handlers.forEach((function(e){e.remove()})),this._handlers=[]},_handleServiceUpdate:function(e){e.update(this._currentText)},_inputHandlerIME:function(e){this._currentText=e,this._IMEnodeHandle.update(e)},onCompositionstart:function(){},onAfterCompositionend:function(){},_handleCompositionstart:function(e){if(this.onCompositionstart(),this._cursor.isCursorReadOnly())this._keyCapture.value="";else{var o=["ArrowRight","ArrowLeft","Tab"];n("mac")&&n("ff")&&o.push(""),n("mac")&&!n("safari")&&-1!==o.indexOf(this._keyhandler.lastKeyDown())&&this._document.deleteTextAtCurrentPosition(r.BACKWARD_DELETE),this._cursor.hasSelection()&&this._document.deleteTextAtCurrentPosition(r.FORWARD_DELETE),this._keyhandler.setInputHandler(t.hitch(this,"_inputHandlerIME")),this._currentText="";var a={text:"",cssClass:"composingInIME",updateCallback:t.hitch(this,"_handleServiceUpdate"),caretRightAligned:!0};this._IMEnodeHandle=this._shadowtextservice.requestTextAfterCursor(a);var s=i.getComputedStyle(this._view.getNodeBox(this._cursor.getNode()));i.set(this._keyCapture,"fontSize",s.fontSize),this._keyhandler.onAfterCompositionstart()}},_handleCompositionend:function(e){this._IMEnodeHandle&&(this._IMEnodeHandle.remove(),this._IMEnodeHandle=null),this._currentText="",this._keyhandler.setDefaultInputHandler(),this._keyhandler.handleInput(e,!0),this.onAfterCompositionend()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(229),i(207),i(282),i(234),i(260),i(274),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(n,{constructor:function(e,t,n,o,r,a,s,l,c,d){this._rtcView=e,this._cursorController=t,this._cursor=this._cursorController.getCursors()[0],this._internalDocument=n,this._document=o,this._hiddenNodeModel=r,this._hiddenStateHolder=a,this._pluginDisabler=s,this._documentEventCache=d,this._handles=[],this._addListeners(),this._featureId=i.generateUuid(),this._exceptionNodesList=[],this._readOnlyStateCache={},this._ignoreDocChangeEvent=!1},_addListeners:function(){this._handles.push(t.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0)),this._handles.forEach((function(e){this.own(e)}),this)},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},_handleDocumentChanged:function(e){if(0!==this._hideCounter&&!this._ignoreDocChangeEvent){var t=this._documentEventCache.finalLineRangeFromEvents();if(t){var i=this.getLineDetails(t.startLine,t.endLine);if(i){this._hideOrShowNodes(i,this._exceptionNodesList,!0);var n=this._getReadOnlyStateChangeLines(e);this._setLineReadOnly(i,n),this._cursorController.onUpdate(!1,!0),this._hiddenStateHolder.setHiddenState(!0)}}}},_hideOrShowNodes:function(e,t,i){var n=!1;e.lineNodes.forEach((function(o,r){e.hiddenNodeIndicators&&e.hiddenNodeIndicators[r]?o.children.forEach((function(e){this._shouldHideNode(e,t,i)&&(this._hiddenNodeModel.setHidden(e,this._featureId),n=!0)}),this):o.children.forEach((function(e){this._hiddenNodeModel.setVisible(e,this._featureId),n=!0}),this),n&&this._rtcView.layoutNode(o)}),this),this._rtcView.onLayoutChange()},_getReadOnlyStateChangeLines:function(e){var t=[];return e.forEach((function(e){if("readOnlyStateChange"===e.type)for(var i=e.startLine;i<=e.endLine;i++)t.push(i)})),t},hide:function(e,t){this._hideCounter++,this._hiddenStateHolder.setHiddenState(!0),this._addToExceptionNodesList(e);var i=this.getLineDetails(0,this._internalDocument.getMaxLineNumber()-1);i&&(this._hideNodes(i,e),this._setLineReadOnly(i)),this._setAdditionalNodesToReadOnly(t,!0),this._pluginDisabler&&this._pluginDisabler.disablePlugins(),this._cursorController.onUpdate(!1,!0),this._cursorController.areCursorsReadOnly()&&this._setCursorAtNearestVisiblePosition()},_hideNodes:function(e,t,i){e.lineNodes.forEach((function(n,o){e.hiddenNodeIndicators&&!e.hiddenNodeIndicators[o]||(n.children.forEach((function(e){this._shouldHideNode(e,t,i)&&this._hiddenNodeModel.setHidden(e,this._featureId)}),this),this._rtcView.layoutNode(n))}),this),this._rtcView.onLayoutChange()},show:function(e){if(this._hideCounter--,0===this._hideCounter){this._hiddenStateHolder.setHiddenState(!1);var t=this.getLineDetails(0,this._internalDocument.getMaxLineNumber()-1);this._showNodes(t),this._resetLineReadOnly(t),this._setAdditionalNodesToReadOnly(e,!1),this._pluginDisabler&&this._pluginDisabler.enablePlugins(),this._cursorController.onUpdate(!1,!0),this._readOnlyStateCache={}}else this._hideCounter<0&&(this._hideCounter=0)},_showNodes:function(e){this._hiddenNodeModel.setAllVisible(this._featureId),e&&(e.lineNodes.forEach((function(e){this._rtcView.layoutNode(e)}),this),this._rtcView.onLayoutChange())},getLineDetails:function(){throw new Error("Unimplemented API: setLineDetails")},_shouldHideNode:function(e,t,i){return(!i||!this._hiddenNodeModel.isHidden(e))&&(!t||!s.isNodeInstanceOfNodes(e,t))},_setLineReadOnly:function(e,t){var i=this._internalDocument.startBlockEdit();e.lineNumbers.forEach((function(i,n){var o=e.lineNodes[n];this._updateReadOnlyCache(o,i,t),this._document.setReadOnlyLine(i+1,!0);var r=this._readOnlyStateCache[o.uid];r||(this._readOnlyStateCache[o.uid]={node:o,setToReadOnly:!0}),(r=this._readOnlyStateCache[o.uid]).setToReadOnly||r.alreadyReadOnly||(r.setToReadOnly=!0)}),this),this._ignoreDocChangeEvent=!0,this._internalDocument.endBlockEdit(i),this._ignoreDocChangeEvent=!1},_resetLineReadOnly:function(e){if(e||0!==Object.keys(this._readOnlyStateCache).length){var t=this._internalDocument.startBlockEdit();e&&e.lineNumbers.forEach((function(t,i){this._readOnlyStateCache[e.lineNodes[i].uid]&&this._readOnlyStateCache[e.lineNodes[i].uid].alreadyReadOnly||(this._document.setReadOnlyLine(t+1,!1),delete this._readOnlyStateCache[e.lineNodes[i].uid])}),this),Object.keys(this._readOnlyStateCache).forEach((function(e){this._readOnlyStateCache[e].setToReadOnly&&!this._readOnlyStateCache[e].alreadyReadOnly&&(this._readOnlyStateCache[e].node.readOnly=!1)}),this),this._ignoreDocChangeEvent=!0,this._internalDocument.endBlockEdit(t),this._ignoreDocChangeEvent=!1}},_updateReadOnlyCache:function(e,t,i){var n=e.isReadOnly(),o=this._readOnlyStateCache[e.uid];!n||i&&-1===i.indexOf(t)||(o?this._readOnlyStateCache[e.uid].alreadyReadOnly=!0:this._readOnlyStateCache[e.uid]={node:e,alreadyReadOnly:!0}),!n&&o&&(this._readOnlyStateCache[e.uid].alreadyReadOnly=!1)},_addToExceptionNodesList:function(e){this._exceptionNodesList=this._exceptionNodesList.concat(e),this._exceptionNodesList=this._exceptionNodesList.filter((function(e,t){return this._exceptionNodesList.indexOf(e)===t}),this)},_setAdditionalNodesToReadOnly:function(e,t){if(e&&0!==e.length){var i=this._internalDocument.getLineNode(0),n=this._internalDocument.getLineNode(this._internalDocument.getMaxLineNumber()-1);s.siblingNodesInRangeIterator(i,n,(function(i){e.forEach((function(e){i instanceof e&&(i.readOnly=t)}))}))}},_setCursorAtNearestVisiblePosition:function(){var e=this._cursor.getNode();if(this._hiddenNodeModel.isHidden(e)&&!this._setCursorAtNearestVisibleNode(e)){var t=e.rootContainer(),i=t;do{i=l.getVisibleRootContainerAbove(i,this._rtcView)}while(i&&i.children&&0===i.children.length);if(!i||i===t){i=t;do{i=l.getVisibleRootContainerBelow(i,this._rtcView)}while(i&&i.children&&0===i.children.length)}i&&i!==t?this._setCursorAtNearestNextSibling(i.startNode()):this._cursorController.hide()}},_setCursorAtNearestVisibleNode:function(e){var t=e.rootContainer();return!(!this._rtcView.getNodeBox(t)||!this._setCursorAtNearestPreviousSibling(e.previousSibling())&&!this._setCursorAtNearestNextSibling(e.nextSibling()))},_setCursorAtNearestPreviousSibling:function(e){for(;e;){if(!this._hiddenNodeModel.isHidden(e))return this._cursorController.setPositions([e.endPosition()]),!0;e=e.previousSibling()}return!1},_setCursorAtNearestNextSibling:function(e){for(;e;){if(!this._hiddenNodeModel.isHidden(e))return this._cursorController.setPositions([e.startPosition()]),!0;e=e.nextSibling()}return!1},destroy:function(){this.inherited(arguments),this._exceptionNodesList=[],this._readOnlyStateCache={},this._removeListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{shouldHideInHideCodeView:function(e){throw new Error("Unimplemented")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._hiddenState=!1},getHiddenState:function(){return this._hiddenState},setHiddenState:function(e){this._hiddenState=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i){this._hideService=t,this._view=e,this._hidden=!1},_hideShow:function(){return this._hidden?this._hideService.show():this._hideService.hide(),this._hidden=!this._hidden,!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4544)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){this._messageAPI=e},sendRTCLoadedMessage(){this.sendGenericMessage(t.rtcLoaded())},sendContentLoadedMessage(){this.sendGenericMessage(t.contentLoaded())},sendMessageServiceStartedMessage(){this.sendGenericMessage(t.messageServiceStarted())},sendGenericMessage(e){throw new Error("Unimplemented API: sendGenericMessage(message)")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{RUN_ALL:"compacttoolstrip.liveeditor.rtc_run",STOP:"compacttoolstrip.liveeditor.rtc_stop_execution",RUN_SECTION:"compacttoolstrip.liveeditor.rtc_run_section",INSERT_TEXT:"compacttoolstrip.liveeditor.rtc_insert_text",HEADING_TEXT:"compacttoolstrip.liveeditor.rtc_paraformat_heading",BOLD_TEXT:"compacttoolstrip.liveeditor.rtc_toggle_bold",ITALIC_TEXT:"compacttoolstrip.liveeditor.rtc_toggle_italic",UNDERLINE_TEXT:"compacttoolstrip.liveeditor.rtc_toggle_underline",MONOSPACE_TEXT:"compacttoolstrip.liveeditor.rtc_toggle_monospace",UNORDERED_LIST:"compacttoolstrip.liveeditor.rtc_unordered_list",ORDERED_LIST:"compacttoolstrip.liveeditor.rtc_ordered_list",ALIGN_LEFT:"compacttoolstrip.liveeditor.rtc_align_left",ALIGN_CENTER:"compacttoolstrip.liveeditor.rtc_align_center",ALIGN_RIGHT:"compacttoolstrip.liveeditor.rtc_align_right",INSERT_CODE:"compacttoolstrip.liveeditor.rtc_insert_code",COMMENT:"compacttoolstrip.liveeditor.rtc_comment",UNCOMMENT:"compacttoolstrip.liveeditor.rtc_uncomment",INDENT:"compacttoolstrip.liveeditor.rtc_indent",UNINDENT:"compacttoolstrip.liveeditor.rtc_unindent",SECTION_BREAK:"compacttoolstrip.liveeditor.rtc_insert_sectionbreak"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{getGlobalActionIdFromRTCActionId:function(e){return e},getRTCActionIdFromGlobalActionId:function(e){return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(1975)],o=i.dj.d(n,(function(e,t,i){var n=[255,255,255],o=[0,0,0];return e(t,{constructor:function(e,t){this._rtcSettingService=e,this._globalStyleChanger=t,this._useSystemColor=!1,this._isLocalClient=i.isLocalClient(),this._registerSettings()},_registerSettings:function(){this._isLocalClient&&(this._rtcSettingService.getSetting("matlab.colors.UseSystemColor",!0).then(this._handleSystemColorChanged.bind(this),(function(e){})),this.own(this._rtcSettingService.listenToSettingChange("matlab.colors.UseSystemColor",this._handleSystemColorChanged.bind(this)))),this._rtcSettingService.getSetting("matlab.colors.BackgroundColor").then(this._handleBackgroundColorChanged.bind(this),(function(e){})),this._rtcSettingService.getSetting("matlab.colors.ForegroundColor").then(this._handleForegroundColorChanged.bind(this),(function(e){})),this.own(this._rtcSettingService.listenToSettingChange("matlab.colors.BackgroundColor",this._handleBackgroundColorChanged.bind(this)),this._rtcSettingService.listenToSettingChange("matlab.colors.ForegroundColor",this._handleForegroundColorChanged.bind(this)))},_handleBackgroundColorChanged:function(e){this._backgroundColor=e,this._useSystemColor||this._updateBackgroundColor(e)},_handleForegroundColorChanged:function(e){this._foregroundColor=e,this._useSystemColor||this._updateForegroundColor(e)},_handleSystemColorChanged:function(e){this._useSystemColor=e,this._useSystemColor?(this._updateBackgroundColor(n),this._updateForegroundColor(o)):(this._updateBackgroundColor(this._backgroundColor),this._updateForegroundColor(this._foregroundColor))},_getRGBString:function(e){return"rgb("+e.join(",")+")"},_updateBackgroundColor:function(e){if(e){var t=[{name:"--rtc-bg-color",value:this._getRGBString(e)}];this._globalStyleChanger.insertOrReplaceRule("",t)}},_updateForegroundColor:function(e){if(e){var t=[{name:"--rtc-fg-color",value:this._getRGBString(e)}];this._globalStyleChanger.insertOrReplaceRule("",t)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},handleOutputClick:function(e,t,i){throw new Error("Unimplemented method")},getOutputsAssociatedWithCursor:function(e,t){throw new Error("Unimplemented method")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1105),i(203),i(204),i(208),i(623)],o=i.dj.d(n,(function(e,t,i,n,o){return t([e],{_REQUEST_TYPE:"Default",constructor:function(e,t,o,r,a,s,l){this._editorId=e,this._outputsModel=t,this._stateHandler=o,this._embeddedOutputsDataService=r,this._executionDataService=a,this._sectionModel=s,this._internalDocument=l,this._regionsEvalFinished=!1,this._outputStreamingFinished=!1,this._currentlyRunningEvaluationResult=null,this._lastOutputBatchId=null,this._currentlyRunningRequest=null,this._aspectHandles=[],this._aspectHandles.push(n.after(this._executionDataService,"onEvalComplete",i.hitch(this,"_handleEvalCompleted"),!0)),this._aspectHandles.push(n.after(this._executionDataService,"onSectionEvalComplete",i.hitch(this,"_handleSectionEvalCompleted"),!0)),this._aspectHandles.push(n.after(this._executionDataService,"onRegionEvalStarted",i.hitch(this,"_handleRegionEvalStarted"),!0)),this._aspectHandles.push(n.after(this._embeddedOutputsDataService,"onOutputsStreamingFinished",i.hitch(this,"_handleOutputStreamingFinished"),!0))},executeRequest:function(e){this._startRequest(e),this._executionDataService.executeRequest(e)},getType:function(){return this._REQUEST_TYPE},interrupt:function(e){this._executionDataService.interrupt(e)},_startRequest:function(e){this._currentlyRunningRequest=e;var t={evaluationRange:e.getEvaluationRange(),evaluationId:e.getRequestId(),request:e};this._stateHandler.stateChanged(this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED,t),this._embeddedOutputsDataService.handleStartOfEvaluation(e)},forceExecutionComplete:function(e){this._currentlyRunningRequest&&(this._handleOutputStreamingFinished(),this._regionsEvalFinished=!0,this._currentlyRunningEvaluationResult={didRunToCompletion:!1,errorType:"",errorLine:0},this._lastOutputBatchId=e,this._finishCurrentRequestIfComplete())},_handleEvalCompleted:function(e){this._currentlyRunningRequest&&(this._regionsEvalFinished=!0,this._currentlyRunningEvaluationResult={didRunToCompletion:e.data.didRunToCompletion,errorType:e.data.errorType,errorLine:e.data.errorLine,lastOutputBatchId:e.data.lastOutputBatchId},this._lastOutputBatchId=e.data.lastOutputBatchId,this._finishCurrentRequestIfComplete())},_handleOutputStreamingFinished:function(e){this._currentlyRunningRequest&&(this._outputStreamingFinished=!0,void 0!==e&&(this._lastOutputBatchId=e),this._finishCurrentRequestIfComplete())},_finishCurrentRequestIfComplete:function(){this._regionsEvalFinished&&this._outputStreamingFinished&&this._currentlyRunningRequest&&this._handleRequestCompleted()},_handleRequestCompleted:function(){var e=this._getFinalResponseState();this._stateHandler.stateChanged(this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE,e),this._embeddedOutputsDataService.handleEndOfEvaluation(this._currentlyRunningRequest,e.errorType),this._executionDataService&&this._executionDataService.handleEndOfEvaluation(),this._currentlyRunningRequest=null,this._currentlyRunningEvaluationResult=null,this._lastOutputBatchId=null,this._regionsEvalFinished=!1,this._outputStreamingFinished=!1,this.onRequestComplete()},_getFinalResponseState:function(){var e=this._currentlyRunningEvaluationResult.didRunToCompletion,t=this._currentlyRunningEvaluationResult.errorType,i=this._lastOutputBatchId;if(!this._currentlyRunningRequest)throw new Error("Received message to finish request, but there is no currently running request");return{didRunToCompletion:e,errorType:t,requestedEvaluationRange:this._currentlyRunningRequest.getEvaluationRange(),lastOutputBatchId:i}},_handleSectionEvalCompleted:function(e){this._currentlyRunningRequest&&(this._embeddedOutputsDataService.flushOutputs(),this._stateHandler.stateChanged(this._stateHandler.CHANGE_TYPE_ENUM.SECTION_EVAL_COMPLETE,e))},_handleRegionEvalStarted:function(e){this._currentlyRunningRequest&&this._stateHandler.stateChanged(this._stateHandler.CHANGE_TYPE_ENUM.REGION_EVAL_STARTED,e)},initializeRequest:function(e){var t=e.getEvaluationRange();return e.setExecutableRegions(o.updateAndGetExecutableRegionsForRange(this._internalDocument,this._sectionModel,this._outputsModel,t.getStartPosition(),t.getEndPosition())),e},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(217),i(206),i(2016),i(4648)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([r,a],{_MARGIN_PADDING_BUFFER:30,_SCROLLBAR_THICKNESS:11,_MAX_SCROLLABLE_HEIGHT:250,_OVERFLOW_THRESHOLD:3,_UPDATE_PHASE:{GET_HEIGHT:"getheight",APPLY_HEIGHT:"applyheight",GET_OVERFLOW:"getoverflow",APPLY_OVERFLOW:"applyoverflow",GET_SCROLL_POSITION:"getscrollpos",APPLY_SCROLL_POSITION:"applyscrollpos"},getStyleChange:function(e,i){switch(i||(i=n),e.changeType||this._UPDATE_PHASE.GET_HEIGHT){case this._UPDATE_PHASE.GET_HEIGHT:var o=this._readDomInfo(e.outputDiv,i);return o?t.mixin({},e,o,{changeType:this._UPDATE_PHASE.APPLY_HEIGHT}):null;case this._UPDATE_PHASE.GET_OVERFLOW:return t.mixin({},e,{changeType:this._UPDATE_PHASE.APPLY_OVERFLOW,isOverflown:this._isOutputOverflown(e)});case this._UPDATE_PHASE.GET_SCROLL_POSITION:return t.mixin({},e,{changeType:this._UPDATE_PHASE.APPLY_SCROLL_POSITION})}},applyStyleChange:function(e){switch(e.changeType){case this._UPDATE_PHASE.APPLY_HEIGHT:return this._changeHeight(e),e.hasHeightChange|=e.hadHorizontalOverflow!==e.hasHorizontalOverflow,{heightChanged:e.hasHeightChange,nextChange:t.mixin({},e,{changeType:this._UPDATE_PHASE.GET_OVERFLOW})};case this._UPDATE_PHASE.APPLY_OVERFLOW:return this._setOverflowState(e),{heightChanged:e.hasHeightChange,nextChange:t.mixin({},e,{changeType:this._UPDATE_PHASE.GET_SCROLL_POSITION})};case this._UPDATE_PHASE.APPLY_SCROLL_POSITION:return this._makeScrollPositionChange(e),{heightChanged:e.hasHeightChange,nextChange:null}}return{heightChanged:!1,nextChange:null}},_readDomInfo:function(e,t){var i=this._getOutputContent(e),n=t.getMarginBox(i).w-this._MARGIN_PADDING_BUFFER,o=parseFloat(i.getAttribute("data-width")),r=i.scrollHeight,a=parseFloat(i.getAttribute("data-height")),s="true"===i.getAttribute("data-hasHorizontalOverflow"),l=parseFloat(e.getAttribute("data-scroll-top"))||0,c=parseFloat(e.getAttribute("data-scroll-left"))||0,d=Math.max(0,i.scrollHeight-i.clientHeight),u=Math.max(0,i.scrollWidth-i.clientWidth),h=Math.min(d,l),p=Math.min(u,c),f=this._hasWidthChanged(n,o),g=this._hasHeightChanged(r,a);return f||g||this._hasScrollPositionChanged(i.scrollTop,h)||this._hasScrollPositionChanged(i.scrollLeft,p)?{scrollArea:i,availableWidth:n,isElementGrowable:this._isElementGrowable(i),scrollHeight:i.scrollHeight,scrollTop:h,scrollLeft:p,hasHeightChange:g,hadHorizontalOverflow:s,hasHorizontalOverflow:this._hasHorizontalOverflow(i)}:null},_isElementGrowable:function(e){return e.scrollHeight<2*this._MAX_SCROLLABLE_HEIGHT&&e.scrollHeight>this._MAX_SCROLLABLE_HEIGHT},_hasWidthChanged:function(e,t){return this._hasDimensionChanged(e,t)},_hasHeightChanged:function(e,t){return this._hasDimensionChanged(e,t)},_hasDimensionChanged:function(e,t){return!!isNaN(t)||e&&0!==e&&Math.abs(e-t)>this._OVERFLOW_THRESHOLD},_hasScrollPositionChanged:function(e,t){return t!==e},_changeHeight:function(e){e.scrollArea.setAttribute("data-width",e.availableWidth),e.scrollArea.setAttribute("data-height",e.scrollHeight),e.scrollArea.setAttribute("data-hasHorizontalOverflow",e.hasHorizontalOverflow);var t=e.isElementGrowable?e.scrollHeight:this._MAX_SCROLLABLE_HEIGHT;e.scrollArea.style.maxHeight=t+this._SCROLLBAR_THICKNESS+"px"},_setOverflowState:function(e){e.isOverflown?i.add(e.outputDiv,"scrollableOutput"):i.remove(e.outputDiv,"scrollableOutput")},_makeScrollPositionChange:function(e){e.isOverflown?(e.scrollArea.scrollTop=e.scrollTop,e.scrollArea.scrollLeft=e.scrollLeft,this._addListenersIfNeeded(e.scrollArea,e.outputDiv)):this._removeListeners(e.scrollArea)},_isOutputOverflown:function(e){var t=e.scrollArea;return this._hasVerticalOverflow(t)||this._hasHorizontalOverflow(t)},_hasVerticalOverflow:function(e){return e.scrollHeight-e.getBoundingClientRect().height>this._OVERFLOW_THRESHOLD},_hasHorizontalOverflow:function(e){return e.scrollWidth-e.getBoundingClientRect().width>this._OVERFLOW_THRESHOLD},_getOutputContent:function(e){return e.querySelector(".eoOutputContent")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){},getStyleChange:function(e){},applyStyleChange:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(455),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{_EVAL_COMPLETE:"/embeddedOutputs/regionsComplete/",_REGION_EVAL_STARTED_NAMESPACE:"/liveEval/regionEvaluating/",_SECTION_EVAL_COMPLETED_NAMESPACE:"/liveEval/sectionEvaled/",_EVAL_COMPLETED_NAMESPACE:"/liveEval/regionsEvaled/",constructor:function(e,i,n){this._editorId=e,this._internalDocument=i,this._regionEvaluator=n,this._evalCompleteNamespace=this._EVAL_COMPLETE+this._editorId,this._messageService=t.getInstance(),this._messageService.subscribe(this._REGION_EVAL_STARTED_NAMESPACE+this._editorId,"_handleRegionEvalStarted",this),this._messageService.subscribe(this._EVAL_COMPLETED_NAMESPACE+this._editorId,"_handleEvalCompleted",this),this._messageService.subscribe(this._SECTION_EVAL_COMPLETED_NAMESPACE+this._editorId,"_handleSectionEvalCompleted",this)},executeRequest:function(e){this._regionEvaluator.executeRequest(e)},interrupt:function(e){this._regionEvaluator.interrupt(e.getRequestId())},handleEndOfEvaluation:function(){this._messageService.publish(this._evalCompleteNamespace)},onEvalComplete:function(e){},onTraditionalEvalComplete:function(e){},onSectionEvalComplete:function(e){},onRegionEvalStarted:function(e){},_handleSectionEvalCompleted:function(e){var t=e.data;this.onSectionEvalComplete(t)},_handleRegionEvalStarted:function(e){var t=e.data;this.onRegionEvalStarted(t)},_handleEvalCompleted:function(e){this.onEvalComplete(e)},destroy:function(){this._messageService.unsubscribe(this._REGION_EVAL_STARTED_NAMESPACE+this._editorId,"_handleRegionEvalStarted",this),this._messageService.unsubscribe(this._EVAL_COMPLETED_NAMESPACE+this._editorId,"_handleEvalCompleted",this),this._messageService.unsubscribe(this._SECTION_EVAL_COMPLETED_NAMESPACE+this._editorId,"_handleSectionEvalCompleted",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4660)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.model","rtc.code.sections.model","rtc.code.sections.stale.model","rtc.document","rtc.internaldocument","rtc.clipboard","rtc.focusservice","rtc.cursor","rtc.executionservice.statehandler","rtc.embeddedoutputs","rtc.cursorcontroller","rtc.embeddedoutputs.codegencontributors","matlab.code.variables.service"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p){var f={};return f.embeddedOutputsModel=e,f.sectionModel=t,f.staleSectionModel=n,f.document=o,f.internalDocument=r,f.clipboard=a,f.focusService=s,f.cursor=l,f.stateHandler=c,f.embeddedOutputsView=d.getEmbeddedOutputsView(),f.cursorController=u,f.codeGenContributors=h,f.variableService=p,new i(f)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(680)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(i,{_codeGen:null,_clientEventArgs:null,constructor:function(e,t){this._codeGen=e,this._clientEventArgs=t},execute:function(){this._codeGen.detach()},unexecute:function(){this._codeGen.containerNode&&this._codeGen.attach(this._clientEventArgs.imgNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t){this.code=e,this.uid=t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(495),i(1442)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(){},getApplicableTypes:function(){return["variable","variableElement","variableString","matrix","text","error","warning"]},getEnvironment:function(){return"matlaboutput"},enter:function(e,i,n){e.addToBody(t.getEscapedOutputText(i.getText())+"\n")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(225),i(247),i(934),i(624),i(619)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([r],{type:s.OUTPUT_TYPE,constructor:function(e){this._data=e.data,this._diagnosticMessageFormatter=e.diagnosticMessageFormatter,this._lineNumberTracker=e.lineNumberTracker,this._errorType=s.RUNTIME_ERROR_TYPE,this._data.errorType===s.SYNTAX_ERROR_TYPE&&(this._errorType=s.SYNTAX_ERROR_TYPE);var t=o.treatHtmlLikeCommandWindow(this._data.text),i=this._diagnosticMessageFormatter.createErrorMessageWithStack(t);this._domElement=i.getDomNode(),a.limitTextNodeLength(this._domElement),this._data.stackLineNumber&&(this.stackLineNumber=this._lineNumberTracker.createPositionFromOldLineNumber(this._data.stackLineNumber-1),this.identifier=this._data.identifier)},getCssTag:function(){return s.CSS_TAG},getDomElement:function(){return this._domElement},getSerializableData:function(){return{text:this._removeScrollToLinks(this._data.text),errorType:this._errorType}},getText:function(){return a.getText(this._data.text)},getHTML:function(e,t){var o=this._domElement.cloneNode(!0);return n(".doNotExport",o).forEach((function(e){i.destroy(e)})),o.innerHTML},_removeScrollToLinks:function(e){var t=new RegExp("<a href=\"matlab:opentoline\\('(?:[^\\/\\\\]*?\\.mlx)', (?:[0-9]+), (?:[0-9]+)\\)\">([^<]*?)<\\/a>","g"),i=new RegExp('<a href="matlab:opentoline\\(\'(?:[^\\/\\\\]*?\\.mlx)\', (?:[0-9]+), (?:[0-9]+)\\)" style="font-weight:bold">([^<]*?)<\\/a>',"g");return e=(e=e.replace(t,"$1")).replace(i,"<strong>$1</strong>")},getErrorType:function(){return this._errorType}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222)],o=i.dj.d(n,(function(e,t,i){return e([i],{editorId:null,figureId:null,lineNumbers:null,_CHANNEL_PREFIX:"/liveeditor/figure/",_is2D:null,_axesPositions:null,_chartType:null,_mode:null,_modeStateData:null,_zoomDirection:null,_currentTarget:null,_interactionData:null,_backgroundColor:null,_isPZREnabled:null,_isSubplotCase:null,_isSubplot3D:null,_titles:null,_xlabels:null,_ylabels:null,_yLabelPositions:null,_xLabelPositions:null,_titlePositions:null,_legendPositions:null,_isXlabelSupported:null,_isYlabelSupported:null,_isXGridSupported:null,_isYGridSupported:null,_isGridSupported:null,_isTitleSupported:null,_isColorbarSupported:null,_isLegendSupported:null,_annotationPositions:null,_annotationTextPositions:null,_enableToolstrip:null,_enableMOLToolstrip:null,_enableAxesToolbar:null,_figureToolstripEnablementCallback:null,_undoRedoData:null,constructor:function(e){t.mixin(this,e)},setEnableToolstrip:function(e){this._enableToolstrip=new Boolean(e)},getEnableToolstrip:function(){var e=!this._figureToolstripEnablementCallback||this._figureToolstripEnablementCallback();return this._enableToolstrip.valueOf()&&e},setFigureToolstripEnablementCallback:function(e){this._figureToolstripEnablementCallback=e},setEnableAxesToolbar:function(e){this._enableAxesToolbar=e},getAxesToolbarEnabled:function(){return this._enableAxesToolbar},getUndoRedoData:function(){return this._undoRedoData},setUndoRedoData:function(e){this._undoRedoData=e},setEnableMOLToolstrip:function(e){this._enableMOLToolstrip=new Boolean(e)},getEnableMOLToolstrip:function(){var e=!this._figureToolstripEnablementCallback||this._figureToolstripEnablementCallback();return this._enableMOLToolstrip.valueOf()&&e},getIsSubplotCase:function(){return new Boolean(this._isSubplotCase)},getIsPZREnabled:function(){return this._isPZREnabled},getInteractionChannel:function(){return this._CHANNEL_PREFIX+this.figureId},getRefreshChannel:function(){return this._CHANNEL_PREFIX+this.figureId+"/refresh"},getModelessChannel:function(){return this._CHANNEL_PREFIX+this.figureId+"/modeless"},getMode:function(){return this._mode},getModeStateData:function(){return this._modeStateData},getZoomDirection:function(){return this._zoomDirection},getIs2D:function(){return this._is2D},getIsSubplot3D:function(){return this._isSubplot3D},getAxesPositions:function(){return this._axesPositions},getChartType:function(){return this._chartType},getVisibleAxesPositions:function(){var e=[];return this._axesPositions&&this._axesPositions.forEach((function(t,i){this.isAxesObscuredByEarlierChild(i)||e.push(t)}),this),e},isAxesObscuredByEarlierChild:function(e){var t=this._axesPositions[e];if(0==e)return!1;for(var i=0;i<e;i++){var n=[Math.max(this._axesPositions[i][0],t[0]),Math.max(this._axesPositions[i][1],t[1])],o=[Math.min(this._axesPositions[i][0]+this._axesPositions[i][2],t[0]+t[2]),Math.min(this._axesPositions[i][1]+this._axesPositions[i][3],t[1]+t[3])],r=o[0]-n[0],a=o[1]-n[1];if(r>0&&a>0&&t[2]>0&&t[3]>0&&r*a/(t[2]*t[3])>.9)return!0}return!1},getTitles:function(){return this._titles},getXLabels:function(){return this._xlabels},getYLabels:function(){return this._ylabels},getBackgroundColor:function(){return this._backgroundColor},setMode:function(e){this._mode=e},setModeStateData:function(e){this._modeStateData=e},setZoomDirection:function(e){this._zoomDirection=e},setIs2D:function(e){this._is2D=e,this._updateIsSubplot3D(e)},_updateIsSubplot3D:function(e){this.getIsSubplot3D()||Array.isArray(e)&&e.forEach((function(e){e||(this._isSubplot3D=!0)}),this)},setBackgroundColor:function(e){this._backgroundColor=e},setInteractionData:function(e){this._interactionData=e},getInteractionData:function(){return this._interactionData},setAxesPositions:function(e){var t=this._axesPositions;this._axesPositions=e,this.emit("AxesPositionUpdated",{originalAxesPositions:t,newAxesPositions:this._axesPositions})},setTitles:function(e){this._titles=e},setXLabels:function(e){this._xlabels=e},setYLabels:function(e){this._ylabels=e},setIsPZREnabled:function(e){this._isPZREnabled=e},setIsSubplotCase:function(e){this._isSubplotCase=e},getXLabelPositions:function(){return this._xLabelPositions},getYLabelPositions:function(){return this._yLabelPositions},getTitlePositions:function(){return this._titlePositions},setXLabelPositions:function(e){this._xLabelPositions=e},setYLabelPositions:function(e){this._yLabelPositions=e},setTitlePositions:function(e){this._titlePositions=e},getAnnotationPositions:function(){return this._annotationPositions},setAnnotationPositions:function(e){this._annotationPositions=e},getAnnotationTextPositions:function(){return this._annotationTextPositions},setAnnotationTextPositions:function(e){this._annotationTextPositions=e},setChartType:function(e){this._chartType=e},setFigureModelState:function(e){this.setMode(e.iMode),this.setModeStateData(e.iModeStateData),this.setZoomDirection(e.iZoomDirection),this.setIs2D(e.iIs2D),this.setAxesPositions(e.iAxesPositions),this.setChartType(e.iChartType),this.setLegendPositions(e.iLegendPositions),this.setBackgroundColor(e.iBackgroundColor),this.setIsSubplotCase(e.iIsSubplotCase),this.setIsPZREnabled(e.iIsPZREnabled),this.setTitles(e.iTitles),this.setXLabels(e.iXLabels),this.setYLabels(e.iYLabels),this.setTitlePositions(e.iTitlePositions),this.setXLabelPositions(e.iXLabelPositions),this.setYLabelPositions(e.iYLabelPositions),this.setAnnotationPositions(e.iAnnotationPositions),this.setAnnotationTextPositions(e.iAnnotationTextPositions),this.setEnableToolstrip(e.iEnableFigureToolstrip),this.setEnableMOLToolstrip(e.iEnableMOLFigureToolstrip),this.setEnableAxesToolbar(e.iEnableAxesToolbar),this.setUndoRedoData(null),this._isColorbarSupported=new Boolean(e.iIsColorbarSupported),this._isTitleSupported=new Boolean(e.iIsTitleSupported),this._isLegendSupported=new Boolean(e.iIsLegendSupported),this._isXGridSupported=new Boolean(e.iIsXGridSupported),this._isGridSupported=new Boolean(e.iIsGridSupported),this._isYGridSupported=new Boolean(e.iIsYGridSupported),this._isYlabelSupported=new Boolean(e.iIsYlabelSupported),this._isXlabelSupported=new Boolean(e.iIsXlabelSupported)},getLegendPositions:function(){return this._legendPositions},setLegendPositions:function(e){this._legendPositions=e},getMouseEventData:function(e,t,i){var n=this,o=n.getAnnotationTextPositions();if(Array.isArray(o)&&o.forEach((function(i){var n=t.isInsideLabel(e,t,i);n.isInside&&(e.isInsideTextAnnotation=n.isInside)})),!e.isInsideTextAnnotation){var r=n.getAnnotationPositions();Array.isArray(r)&&r.forEach((function(i){var n=t.isInsideAnnotations(e,i);n.isInside&&(e.isInsideAnnotation=n.isInside)}))}return this.getAxesPositions()&&this.getAxesPositions().some((function(o,r){if(!e.isInsideTextAnnotation&&!e.isInsideAnnotation){var a=t.isInsideLabel(e,t,n.getTitlePositions()[r]);a.isInside&&(e.isInsideTitle=a.isInside,e.labelAxesIndex=r);var s=t.isInsideLabel(e,t,n.getXLabelPositions()[r]);s.isInside&&(e.isInsideXLabel=s.isInside,e.labelAxesIndex=r);var l=t.isInsideLabel(e,t,n.getYLabelPositions()[r]);l.isInside&&(e.isInsideYLabel=l.isInside,e.labelAxesIndex=r);var c=t.isInsideLabel(e,t,n.getLegendPositions()[r]);c.isInside&&(e.isInsideLegend=c.isInside,e.labelAxesIndex=r)}var d=t.isInsideAxes(o,e,i);if(e.MouseOverAxes=d,e.MouseOverAxes.Index=-1,d.isInside)return e.MouseOverAxes.Index=r,void 0!==n.getChartType()&&null!==n.getChartType()&&Array.isArray(n.getChartType())&&(e.isMouseOverChart="axes"!==n.getChartType()[e.MouseOverAxes.Index].toLowerCase()),e})),e},getFigureProperties:function(e){if(!this._axesPositions&&!e)return null;if(e&&!this._enableToolstrip)return null;return{editorId:this.editorId,figureId:this.figureId,lineNumbers:this.lineNumbers,axesPositions:this.getVisibleAxesPositions(),enableToolstrip:this.getEnableToolstrip(),enableAxesToolbar:this.getAxesToolbarEnabled(),enableMOLToolstrip:this.getEnableMOLToolstrip(),embeddedFigures:e,supportedActions:{xlabel:this._isXlabelSupported,ylabel:this._isYlabelSupported,grid:this._isGridSupported,xgrid:this._isXGridSupported,ygrid:this._isYGridSupported,legend:this._isLegendSupported,colorbar:this._isColorbarSupported,title:this._isTitleSupported,subplot:this.getIsSubplotCase()}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(211),i(225),i(213),i(938)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r,t],{constructor:function(){this.paletteRegistryId="RunScriptPalette"},getPreferredLeftPosition:function(){var e=n(".figureImage",this._outputDomNode);return e[0].offsetLeft+e[0].offsetWidth},_setupPaletteListeners:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(217),i(213),i(204),i(222),i(206),i(257),i(215),i(216),i(211),i(2026)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([l,r,c],{baseClass:"figurefloatingpalette",templateString:u,elements:null,_mouseEnterListener:null,_mouseLeaveListener:null,constructor:function(e){if(this.inherited(arguments),!e||!e.dataTag)throw new Error("dataTag must be passed to the Palette constructor");this.dataTag=e.dataTag,e.numElements?this.createDefaultElements(e.numElements):this.elements=[]},createDefaultElements:function(e){null===this.elements&&(this.elements=[]);for(var t=0;t<e;t+=1)this.elements[t]=void 0},isComplete:function(){var e=!0;return this.elements.forEach((function(t){e=e&&void 0!==t}),this),e},addElement:function(e){this.addElementAtIndex(e,this.elements.length)},addElementAtIndex:function(e,t){null===this.elements&&(this.elements=[]),this.elements[t]=e,this._setupElementListener(e)},postCreate:function(){this.inherited(arguments),this._initMouseListeners()},startup:function(){this.inherited(arguments),this.elements.forEach((function(e){void 0!==e&&(e.startup(),d.place(e.domNode,this.containerNode))}),this)},_setupElementListener:function(e){var t=e.getElementEvents(),i=e;for(var n in t)i.on(n,o.hitch(this,"notify"))},_initMouseListeners:function(){this._mouseEnterListener=a.pausable(this.containerNode,s.enter,o.hitch(this,(function(e){this.fadeIn()}))),this._mouseLeaveListener=a.pausable(this.containerNode,s.leave,o.hitch(this,(function(e){this.isValidLeaveEvent(e)&&this.fadeOut()})))},fadeIn:function(){t.remove(this.containerNode,"fadeout"),t.add(this.containerNode,"fadein")},fadeOut:function(){this.elements.forEach((function(e){e.hideTooltip()})),t.remove(this.containerNode,"fadein"),t.add(this.containerNode,"fadeout")},disable:function(){t.add(this.containerNode,"disabled")},enable:function(){t.remove(this.containerNode,"disabled")},setStyles:function(e){e&&void 0!==e.backgroundColor?n.set(this.containerNode,"background-color",e.backgroundColor):n.set(this.containerNode,"background-color","white")},setState:function(e){this.setStyles(e),this.elements.forEach((function(t){t.setState(e)}),this)},notify:function(e){this.emit(e.elementEvent,e)},destroy:function(){this.inherited(arguments),this.elements.forEach((function(e){e.destroy()}),this),this.elements=[]},isValidLeaveEvent:function(e){var t=!0;return this.elements.forEach((function(i){i.isValidLeaveEvent(e)||(t=!1)})),t}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point=\'containerNode\' class="${baseClass} figureWidget" data-tag="${dataTag}"></div >\n'},function(e,t,i){var n,o;n=[i(203),i(222),i(206),i(248),i(246)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{_elementEvents:{elementClicked:"elementClicked"},_mouseDownListener_I:null,_mouseUpListener_I:null,_mouseClickListener_I:null,setState:function(e){},notify:function(e,t,i){var n=t;n.elementEvent=e,n.mode=t.mode,n.direction=i,this.emit(e,n)},getElementEvents:function(){return this._elementEvents},createMouseListeners:function(e){this._mouseUpListener_I=i(e,n.release,(function(e){o.stop(e)})),this._mouseDownListener_I=i(e,n.press,(function(e){o.stop(e)})),this._mouseClickListener_I=i(e,"click",(function(e){o.stop(e)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(312),i(437)],o=i.dj.d(n,(function(e,t,i,n){return e([],{_tooltipWidget:null,_toolTipLabel:null,setToolTipText:function(e){this._toolTipLabel=e,this._tooltipWidget&&(this._tooltipWidget.label=this._toolTipLabel)},createToolTip:function(e){this._tooltipWidget=new i({class:n.TOOLTIP_CLASS,connectId:[e],label:this._toolTipLabel,hideDelay:100,position:["below","after","before","above"]})},hideTooltip:function(){i.hide(this.domNode)},setPosition:function(e){this._tooltipWidget.position=e},isValidLeaveEvent:function(e){return!(e.relatedTarget&&t.contains(e.relatedTarget,"dijitTooltipConnector"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(222)],o=i.dj.d(n,(function(e,t,i){return e([i],{_palette:null,_paletteListener:null,getView:function(){},notify:function(e,t){this.emit(e,t)},_handleMouseLeave:function(e){this._palette&&this._palette.isValidLeaveEvent(e)&&this.setVisible(!1)},_handleMouseEnter:function(e){},_handleMouseClick:function(e){},_handleMouseMove:function(e){},setVisible:function(e){this._palette&&(e?this._palette.fadeIn():this._palette.fadeOut())},disablePalette:function(){this._palette&&this._palette.disable()},enablePalette:function(){this._palette&&this._palette.enable()},isInline:function(e){for(var i=e.parentNode;i&&i!==document;){if(t.contains(i,"inlineWrapper"))return!0;i=i.parentNode}return!1},destroyView:function(){this._palette&&(this._palette.destroy(),this._palette=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(213),i(211),i(217),i(206),i(223),i(1447)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([l],{matlabInteractionFunction:"line",mode:"placedLineMode",draw:function(e,t){var i=this._canvas.getContext("2d");i.clearRect(0,0,this._canvas.width,this._canvas.height),i.lineWidth=1,i.beginPath();var n=[e[0],e[1]],o=[t[0],t[1]];i.moveTo(n[0],n[1]),i.lineTo(o[0],o[1]);i.rect(n[0]-2,n[1]-2,4,4),i.rect(o[0]-2,o[1]-2,4,4),i.stroke()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(213),i(211),i(217),i(206),i(223),i(1447)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([l],{matlabInteractionFunction:"doublearrow",mode:"placedDoubleArrowMode",draw:function(e,t){var i=this._canvas.getContext("2d");i.clearRect(0,0,this._canvas.width,this._canvas.height),i.lineWidth=1,i.beginPath();var n=[e[0],e[1]],o=[t[0],t[1]],r=[t[0],t[1]],a=[e[0],e[1]],s=[r[0]-n[0],r[1]-n[1]],l=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2));if(s[0]=s[0]/l,s[1]=s[1]/l,r[1]-n[1]==0)var c=[0,1];else c=[1,-(r[0]-n[0])/(r[1]-n[1])];var d=Math.sqrt(c[0]*c[0]+c[1]*c[1]);c[0]=c[0]/d,c[1]=c[1]/d;o[0]=o[0]-10*s[0],o[1]=o[1]-10*s[1],n[0]=n[0]+10*s[0],n[1]=n[1]+10*s[1],i.moveTo(n[0],n[1]),i.lineTo(o[0],o[1]),i.moveTo(o[0]+5*c[0],o[1]+5*c[1]),i.lineTo(o[0]+10*s[0],o[1]+10*s[1]),i.lineTo(o[0]-5*c[0],o[1]-5*c[1]),i.fill(),i.moveTo(n[0]+5*c[0],n[1]+5*c[1]),i.lineTo(n[0]-10*s[0],n[1]-10*s[1]),i.lineTo(n[0]-5*c[0],n[1]-5*c[1]),i.fill();i.rect(a[0]-2,a[1]-2,4,4),i.rect(r[0]-2,r[1]-2,4,4),i.stroke()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(213),i(211),i(217),i(206),i(248),i(223),i(238),i(1449)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([d],{matlabInteractionFunction:"textarrow",mode:"placedTextArrowMode",_textField:null,_textFocusListener:null,_mouseDownOnText:!1,_VERTICAL_GAP:3,createDomNodes:function(e,r){var l=this.inherited(arguments);return this._textField=o.create("input"),n.set(this._textField,"visibility","hidden"),o.place(this._textField,l),i.add(this._textField,"textArrowText"),this.own(a(this._textField,s.press,(function(e){e.stopPropagation()}))),this.own(a(this._textField,s.release,(function(e){e.stopPropagation()}))),this.own(a(this._textField,"click",(function(e){e.stopPropagation()}))),this.own(a(this._textField,"keydown",t.hitch(this,"doResize"))),this.own(a(this._textField,"contextmenu",(function(e){dojo.stopEvent(e)}))),this.createFocusTextListener(),l},createFocusTextListener:function(){this._textFocusListener=t.hitch(this,"_documentMouseClickHandler"),document.body.addEventListener("click",this._textFocusListener,!0)},_mouseUpListener:function(e){this._mouseDownOnText?this._mouseDownOnText=!1:this.inherited(arguments)},_mouseMoveListener:function(e){this._mouseDownOnText||this.inherited(arguments)},_mouseDownHandler:function(e){e.target!==this._textField?this.inherited(arguments):this._mouseDownOnText=!0},_keyHandler:function(e){c.curNode===this._textField?l.ENTER===this._getKeyCode(e)&&(this.commit(),e.stopPropagation(),e.preventDefault()):this.inherited(arguments)},_documentMouseClickHandler:function(e){this._textField.focus(),this.removeTextFocusListener(),e.stopPropagation(),this.emit("startEditing",e)},showAffordances:function(e,t,i){this.inherited(arguments),this._textField.value="",n.set(this._textField,"visibility","hidden"),n.set(this._textField,"width","")},draw:function(e,t){if(this.inherited(arguments),e&&e.length>=2&&t&&t.length>=2){var i=this._imageNodePosition;e[1]>t[1]?(n.set(this._textField,"top",e[1]+this._VERTICAL_GAP+"px"),n.set(this._textField,"bottom","")):(n.set(this._textField,"bottom",i.h-e[1]+this._VERTICAL_GAP+"px"),n.set(this._textField,"top","")),n.set(this._textField,"right",i.w-e[0]+"px"),n.set(this._textField,"visibility","visible")}else n.set(this._textField,"visibility","hidden")},commit:function(){if(this._isPositioned()){var e=[this._anchorPoint[0]/this._imageNodePosition.w,this._anchorPoint[1]/this._imageNodePosition.h,this._endPoint[0]/this._imageNodePosition.w,this._endPoint[1]/this._imageNodePosition.h];if((e[0]<0||e[0]>1)&&(e[2]<0||e[2]>1)||(e[1]<0||e[1]>1)&&(e[3]<0||e[3]>1))this._resetAnnotation("delete");else{var t={fcn:"springLoadedModeAction",args:{type:this.matlabInteractionFunction,axesIndex:-1,configurationData:{relativePosition:e,text:this._textField.value},mode:this.mode}};this._textField.blur(),this.emit("interaction",t),document.body.removeEventListener("keydown",this._keyHandlerFcn,!0),this._reset()}}else this._rollback()},doResize:function(e){var t=this._textField.value,i=1.2*this._getStringWidthInPixels(t,this._textField),o=r.position(this._textField);i>o.w&&o.x-(i-o.w)>this._imageNodePosition.x&&n.set(this._textField,"width",i+"px")},hide:function(e){this.removeTextFocusListener(),this.inherited(arguments)},destroy:function(){this.removeTextFocusListener(),this.inherited(arguments)},removeTextFocusListener:function(){document.body.removeEventListener("click",this._textFocusListener,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(213),i(211)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_domNode:null,_anchorPoint:null,_parentNode:null,_constraintLine:null,_top:0,_left:0,useConstraint:!0,color:"#0099ff",_CONSTRAINT_VIEW_THRESHOLD:15,_CENTER_OF_ROI:6,constructor:function(e){this._domNode=n.create("div"),t.add(this._domNode,"figuremoderoi"),t.add(this._domNode,"figureWidget"),this._setParentNode(e),this._createConstraintLine(),this.setColor(this.color)},_createConstraintLine:function(){this._constraintLine=n.create("div"),t.add(this._constraintLine,"constraintLine constraintLineHorizontal constraintLineVertical"),n.place(this._constraintLine,this._domNode)},setAnchorPoint:function(e,t){this._anchorPoint=[e,t]},resetAnchorPoint:function(){this._anchorPoint=null},hide:function(){t.remove(this._domNode,"roiShow"),t.add(this._domNode,"roiHidden")},setUseConstraint:function(e){this.useConstraint=e},drawROI:function(e,t){if(this._anchorPoint){var n=e-this._anchorPoint[0],o=this._anchorPoint[0]-this._left,r=t-this._anchorPoint[1],a=this._anchorPoint[1]-this._top,s=Math.abs(r),l=Math.abs(n),c=this.useConstraint&&this._isRectangleShortAndFat(s,l),d=this.useConstraint&&this._isRectangleThinAndTall(s,l);r<0&&!c&&(a+=r),n<0&&!d&&(o+=n);var u=i.get(this._domNode,"border-width");i.set(this._domNode,{height:s+"px",width:l+"px",left:o-u+"px",top:a-u+"px"}),this.useConstraint&&(this._clearConstraintClasses(),this._drawConstraintROI(s,l)),this._show()}},_isRectangleShortAndFat:function(e,t){return e<this._CONSTRAINT_VIEW_THRESHOLD&&t>this._CONSTRAINT_VIEW_THRESHOLD},_isRectangleThinAndTall:function(e,t){return t<this._CONSTRAINT_VIEW_THRESHOLD&&e>this._CONSTRAINT_VIEW_THRESHOLD},_drawConstraintROI:function(e,n){if(this._isRectangleShortAndFat(e,n)){var o=i.get(this._domNode,"top");i.set(this._domNode,{height:this._CONSTRAINT_VIEW_THRESHOLD+"px",top:o-this._CENTER_OF_ROI+"px"}),t.add(this._domNode,"roiHorizontal")}else if(this._isRectangleThinAndTall(e,n)){var r=i.get(this._domNode,"left");i.set(this._domNode,{width:this._CONSTRAINT_VIEW_THRESHOLD+"px",left:r-this._CENTER_OF_ROI+"px"}),t.add(this._domNode,"roiVertical")}},setColor:function(e){i.set(this._domNode,{borderColor:e})},setTopLeft:function(e,t){this._top=e,this._left=t},_setParentNode:function(e){n.place(this._domNode,e),this._parentNode=e},_clearConstraintClasses:function(){t.remove(this._domNode,"roiHorizontal"),t.remove(this._domNode,"roiVertical")},_show:function(){t.remove(this._domNode,"roiHidden"),t.add(this._domNode,"roiShow")},destroy:function(){this._domNode&&n.destroy(this._domNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(206),i(230),i(2029),i(2035)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([r,i,o,a],{_currentTarget:null,constructor:function(e){this._setFigureProperties(e),this._figureModel&&this.own(n(this._figureModel,"AxesPositionUpdated",t.hitch(this,(function(e){this._handleAxesPositionUpdate(e)}))))},setState:function(e){this._figureModel=e;var t=this.getState(e);this._palette&&this._palette.setState(t)},getState:function(e){return e},_setupPaletteListeners:function(){},_setPalettePosition:function(e){},_handleAxesPositionUpdate:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217)],o=i.dj.d(n,(function(e,t){return e([],{_figureModel:null,_figureView:null,_MIN_TOP:3,_MAX_TOP:13,_setFigureProperties:function(e){e&&e.figureView&&e.figureModel&&(this._figureView=e.figureView,this._figureModel=e.figureModel)},_getAxesPlotBox:function(e){return this._figureView.getAxesPlotBox(e)},_getTopAxesPlotBox:function(){var e,t=this._figureModel.getVisibleAxesPositions();return t&&0!==t.length?e=t[0]:t=[e=[0,0,1,1]],t.forEach((function(t){t[1]>=e[1]&&(e=t)})),this._getAxesPlotBox(e)},getElementBounds:function(e){var i=t.position(e);return{width:i.w,height:i.h,left:i.x,top:i.y}},getTopForAxesRef:function(e){null==e&&(e=this._getTopAxesPlotBox());var t=this.getElementBounds(this._figureView.getDomNode());return e.yLow-t.top},getRightForAxesRef:function(e){null==e&&(e=this._getTopAxesPlotBox());var t=this.getElementBounds(this._figureView.getDomNode()),i=t.left+t.width,n=i-e.xHigh,o=e.xHigh-t.left;return n<16&&(o-=16,n<0&&(o-=e.xHigh-i)),o},getBottomForAxesRef:function(e){null==e&&(e=this._getTopAxesPlotBox());var t=this.getElementBounds(this._figureView.getDomNode());return e.yHigh-(t.top+t.height)},getTopForElement:function(e,t){},getLeftForElement:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(221),i(211),i(213),i(210),i(1443),i(1444),i(206),i(222),i(2034)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([d,c],{getView:function(){if(!this._palette){var e="OutputPopoutPalette";i("touchdevice")&&(e="EmptyPalette");var n=a.getPalette(e);s.getPalette(n,t.hitch(this,(function(e){this._palette=e,this._palette.startup(),this._setupPaletteListeners()})))}return this._palette},_setupPaletteListeners:function(){this._paletteListener||(this._paletteListener=this._palette.on("elementClicked",t.hitch(this,(function(e){var t={fcn:"launchFigure",args:{editorId:this._figureModel.editorId}};this.notify("interaction",t)}))))},_handleMouseMove:function(e){},_handleMouseClick:function(e){this._handleMouseEnter(e)},_handleMouseEnter:function(e){this._palette||(this._palette=this.getView(),n.place(this._palette.domNode,this._figureView.getWrapperNode())),this._setPalettePosition(),this.setVisible(!0)},getTopForElement:function(e,t){var i=this.getTopForAxesRef(e),n=this.getElementBounds(t).height;return i-n<this._MIN_TOP?this._MIN_TOP:i-n},getLeftForElement:function(e,t){var i=this.getElementBounds(t);return this._figureView.getDomNode().offsetLeft+this.getElementBounds(this._figureView.getDomNode()).width-i.width},_setPalettePosition:function(e){if(this._figureView.isFigureEmbedded){var t=this._figureView.getPosition();e={xLow:t.x,xHigh:t.w,yLow:t.y,yHigh:t.h}}var i=this.getTopForElement(e,this._palette.domNode),n=this.getLeftForElement(e,this._palette.domNode);this.isInline(this._figureView.getWrapperNode())?o.set(this._palette.domNode,{position:"absolute",left:n+"px",right:"",top:i+"px"}):o.set(this._palette.domNode,{position:"absolute",left:"",right:"1px",top:i+"px"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(217),i(213),i(204),i(222),i(206),i(257),i(215),i(216),i(211),i(2026),i(2035),i(227),i(225),i(1132),i(302),i(246),i(450),i(331),i(288),i(248),i(312),i(253),i(243)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S){return e([l,r,c,h],{baseClass:"playbackcontrols",dataTag:"playbackcontrols",templateString:u,_figureView:null,_figureModel:null,_slider:null,_dropDownBtn:null,_hasCreatedPlaybackControls:!1,_parentDiv:[],constructor:function(e){this.inherited(arguments)},_createPlayPauseBtns:function(){if(this._playButtons)this._playButtons.forEach((function(e){n.set(e,{visibility:"visible"})}));else{this._playButtons=[];var e=this,t=d.create("div",{class:"playbackButtonsDiv"});n.set(this.containerNode,{"max-width":"100%","align-items":"center"}),["playButton","pauseButton"].forEach((function(i,o){e._playButtons[o]=d.create("span",{className:i}),d.place(e._playButtons[o],t),"playButton"===i&&(a(e._playButtons[o],C.press,(function(t){e._figureView._replayAnimationFrames(t),_.stop(t)})),a(e._playButtons[o],s.enter,(function(){T.show(E.animationsPlayControl,e._playButtons[o])})),a(e._playButtons[o],s.leave,(function(){T.hide(e._playButtons[o])}))),"pauseButton"===i&&(n.set(e._playButtons[o],{display:"none"}),a(e._playButtons[o],C.press,(function(t){e._figureView._pauseAnimation(t),_.stop(t)})),a(e._playButtons[o],s.enter,(function(){T.show(E.animationsPauseControl,e._playButtons[o])})),a(e._playButtons[o],s.leave,(function(){T.hide(e._playButtons[o])})))})),d.place(e.containerNode,e._figureView.getWrapperNode()),d.place(e._parentDiv,e.containerNode),d.place(t,e._parentDiv)}a(e.containerNode,C.press,(function(e){_.stop(e)})),dojo.connect(e.containerNode,"onkeydown",(function(e){9==e.keyCode&&_.stop(e)}))},_createMenuItems:function(e,t){var i=this,n=new y({text:"2.0x",class:"MenuItem2x"});e.addChild(n);var o=new y({text:"1.5x",class:"MenuItem15x"});e.addChild(o);var r=new y({text:"1.0x (60fps)",class:"MenuItem1x"});e.addChild(r);var a=new y({text:"0.5x",class:"MenuItem05x"});e.addChild(a);var s=new y({text:"0.2x",class:"MenuItem02x"});e.addChild(s),n.on("click",(function(e){t.set("text","2.0x"),i._figureView.changeAnimationSpeed(2)})),o.on("click",(function(e){t.set("text","1.5x"),i._figureView.changeAnimationSpeed(1.5)})),r.on("click",(function(e){t.set("text","1.0x"),i._figureView.changeAnimationSpeed(1)})),a.on("click",(function(e){t.set("text","0.5x"),i._figureView.changeAnimationSpeed(.5)})),s.on("click",(function(e){t.set("text","0.2x"),i._figureView.changeAnimationSpeed(.2)}))},_createDropUpMenu:function(){var e=new b({});this._dropDownBtn=new v({text:"1.0x",name:"speedButton",menu:e,height:22,class:"speedButton dijitUpArrowButton",hasDynamicMenu:!0});var t=this._dropDownBtn;this._createMenuItems(e,t),t.startup(),dojo.addClass(t.buttonNode,"dropDownBtn");var i=d.create("div",{class:"playbackMenuDiv"});d.place(i,this._parentDiv),d.place(t.domNode,i),a(i,s.enter,(function(){T.show(E.animationsSpeedControl,i)})),a(i,s.leave,(function(){T.hide(i)})),a(t.domNode,C.press,(function(i){t.set("menu",e),t.showMenu(),_.stop(i)}))},_createHorizontalSlider:function(){var e=this,t=this._figureView.totalNumberOfAnimationFrames();this._slider=new g({name:"slider",value:t,class:"playbackSlider",minimum:0,maximum:t,discreteValues:t+1,intermediateChanges:!0,style:"width:100%;",showButtons:!1,onChange:function(t){e._figureView.onSliderChange(this,t)}},"slider");var i=d.create("div",{class:"playbackSliderDiv"});d.place(i,e._parentDiv),d.place(this._slider.domNode,i)},getMaxSliderValue:function(){return this._slider.maximum},_createExportBtn:function(){this._exportButtons=[];var e=this,t=d.create("div",{class:"exportButtonsDiv"});d.place(t,this._parentDiv);var i=new S({icon:"exportAnimationButton",height:22,width:22});i.placeAt(t),i.startup(),a(i,C.press,(function(t){e._figureView.exportAnimations(),_.stop(t)})),a(t,s.enter,(function(){T.show(E.animationsExportAnimation,t)})),a(t,s.leave,(function(){T.hide(t)}))},createPlaybackControls:function(){this._parentDiv=d.create("div",{class:"playbackParentDiv"}),this._createPlayPauseBtns(),this._createHorizontalSlider(),this._createDropUpMenu(),this._createExportBtn(),this._setPlaybackPosition(),this._hasCreatedPlaybackControls=!0},changeSliderValue:function(e){this._slider.set("value",e)},destroyPlaybackControls:function(){this._hasCreatedPlaybackControls=!1,this._dropDownBtn.destroy(),this._dropDownBtn.menu.destroy(),this._slider.destroy(),dojo.destroy(this.containerNode)},hidePlaybackControls:function(){this._hasCreatedPlaybackControls&&n.set(this.containerNode,{visibility:"hidden"})},displayPlaybackControls:function(){this._hasCreatedPlaybackControls&&n.set(this.containerNode,{visibility:"visible"})},hasCreatedPlaybackControls:function(){return this._hasCreatedPlaybackControls},setFigureViewAndModel:function(e,t){this._figureView=e,this._figureModel=t},_getLeftForElement:function(){var e=this.getAxesPlotBox([.13,.11,.775,.815]).xLow,t=this.getElementBounds(this._figureView.getWrapperNode()).left;return!(e-t<0)&&e-t},getAxesPlotBox:function(e){var t=this._figureView.getPosition(),i=t.h-(e[1]+e[3])*t.h+t.y,n=t.h-e[1]*t.h+t.y,o=(e[0]+e[2])*t.w+t.x;return{xLow:e[0]*t.w+t.x,xHigh:o,yLow:i,yHigh:n}},setPlaybackLeftPosition:function(){var e=this._getLeftForElement();e>10&&(e-=10),e/=16,n.set(this._parentDiv,{marginLeft:e+"em"})},_setPlaybackPosition:function(){n.set(this.containerNode,{position:"relative",bottom:"15px",display:"flex"}),this.setPlaybackLeftPosition()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(660),i(713),i(572)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e("dojo.dnd.move.constrainedMoveable",r,{constraints:function(){},within:!1,constructor:function(e,t){t||(t={}),this.constraints=t.constraints,this.within=t.within},onFirstMove:function(e){var i=this.constraintBox=this.constraints.call(this,e);if(i.r=i.l+i.w,i.b=i.t+i.h,this.within){var n=t.getMarginSize(e.node);i.r-=n.w,i.b-=n.h}},onMove:function(e,t){var i=this.constraintBox,n=e.node.style;this.onMoving(e,t),t.l=t.l<i.l?i.l:i.r<t.l?i.r:t.l,t.t=t.t<i.t?i.t:i.b<t.t?i.b:t.t,n.left=t.l+"px",n.top=t.t+"px",this.onMoved(e,t)}});return{constrainedMoveable:a,boxConstrainedMoveable:e("dojo.dnd.move.boxConstrainedMoveable",a,{box:{},constructor:function(e,t){var i=t&&t.box;this.constraints=function(){return i}}}),parentConstrainedMoveable:e("dojo.dnd.move.parentConstrainedMoveable",a,{area:"content",constructor:function(e,n){var o=n&&n.area;this.constraints=function(){var e=this.node.parentNode,n=i.getComputedStyle(e),r=t.getMarginBox(e,n);if("margin"==o)return r;var a=t.getMarginExtents(e,n);return r.l+=a.l,r.t+=a.t,r.w-=a.w,r.h-=a.h,"border"==o?r:(a=t.getBorderExtents(e,n),r.l+=a.l,r.t+=a.t,r.w-=a.w,r.h-=a.h,"padding"==o||(a=t.getPadExtents(e,n),r.l+=a.l,r.t+=a.t,r.w-=a.w,r.h-=a.h),r)}}})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_figureModel:null,_figureView:null,_codeGen:null,_undoRedoManager:null,_TOOLSTRIP_INTERACTION:"ToolstripInteraction",constructor:function(e){this._figureView=e.figureView,this._figureModel=e.figureModel,this._codeGen=e.codeGenerator},setUndoRedoManager:function(e){this._undoRedoManager=e},setState:function(e){this._figureModel=e,this._figureModel.getInteractionData()&&""!==this._figureModel.getInteractionData().iAtomicActionID&&this._updateFigureForToolStripAction()},_updateFigureForToolStripAction:function(){var e=this._figureModel.getInteractionData().iAtomicActionID;this._addToolStripActionToUndoRedo(e)},_addToolStripActionToUndoRedo:function(e){var t={actionID:e,interactionType:this._TOOLSTRIP_INTERACTION,codeGenState:{attachCodeGenOnUndo:!1,attachCodeGenOnRedo:!1}};this._codeGen&&this._codeGen.isCodeGenAttached()&&(t.codeGenState.attachCodeGenOnUndo=!0),""!==this._figureModel._interactionData.iCode&&(t.codeGenState.attachCodeGenOnRedo=!0),this._undoRedoManager.insertInteractionsForUndoRedo(this._figureModel,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4740),i(2019)],o=i.dj.d(n,(function(e,t,i){return e(null,{_document:null,_UNDOREDO_CALLBACK:"undoRedoInteractionCallback",_FIGURE_INTERACTION_EVENT:"FigureInteractionEvent",_CODEGEN_INTERACTION:"CodeGenInteraction",constructor:function(e){this._document=e.document},insertInteractionsForUndoRedo:function(e,n){var o=this;this._document.undoable((function(r){n.interactionType===o._CODEGEN_INTERACTION?r.appendCommand(new i(e,o._UNDOREDO_CALLBACK,n)):r.appendCommand(new t(e,o._UNDOREDO_CALLBACK,n))}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{_isServerBusy:!1,_eventQueue:null,constructor:function(){this._eventQueue=[]},destroy:function(){this.clearEventQueue()},setIsServerBusy:function(e){this._isServerBusy=e},getIsServerBusy:function(){return this._isServerBusy},_processPendingEvent:function(){if(this._eventQueue.length>0){var e=this._eventQueue.shift();this.setIsServerBusy(!0),e.callback(e.event)}},_addEventToQueue:function(e,t){var i=this._eventQueue.length;if(i>0){var n=this._eventQueue[i-1].event;switch(t.type){case"pointermove":case"mousemove":"pointermove"!==n.type&&"mousemove"!==n.type||this._eventQueue.pop();break;case"pointerup":case"mouseup":break;default:this.clearEventQueue()}}this._eventQueue.push({event:t,callback:e})},clearEventQueue:function(){this._eventQueue.length>0&&(this._eventQueue.length=0)},processEvent:function(e,t){this._addEventToQueue(e,t),this.getIsServerBusy()||this._processPendingEvent()},processNextPendingEvent:function(){this.setIsServerBusy(!1),this._processPendingEvent()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(211),i(679),i(935),i(1453),i(4762),i(1454),i(939),i(1134),i(247),i(229),i(1135),i(2042),i(1455),i(830)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([r],{_REGEX_FOR_EXPONENT:/1.0e\+\d+ \*/,type:g.OUTPUT_TYPE,constructor:function(e){this._data=t.clone(e.data),this._outputMetaData=e.outputMetaData,this._snapshotManager=e.snapshotManager,this._outputMetaData.createPromptController?this._promptController=this._createPromptController():this._promptController=null,this._domElement=this._createDomElement(),this._styler=new l(this)},destroy:function(){this._data.id&&this._snapshotManager.removeVariableSnapshot(this._data.id),this._promptController&&this._promptController.destroy(),this.inherited(arguments)},getCssTag:function(){return g.CSS_TAG},getDomElement:function(){return this._domElement},getSerializableData:function(){var e={};return e.name=this._data.name,e.value=this._data.value,e.rows=this._data.rows,e.columns=this._data.columns,e.type=this._data.type,this._data.id&&(e.id=this._data.id),this._data.header&&(e.header=this._data.header),e},getText:function(){return m.createName(this._data.name)+"\n"+this._data.value},getHTML:function(e,t){var i=u.treatHtmlLikeCommandWindow(m.createName(this._data.name)),n=u.treatHtmlLikeCommandWindow(this._data.value),o="";return this._data.header&&(o=m.createHeader(this._data.header).textContent),"<pre>"+i+o+"\n"+n+"</pre>"},_createPromptController:function(){if(o.isLoadedFromDisk(this._outputMetaData.evaluationId))return new s;var e=new a;return e.addInteractionListener(t.hitch(this._snapshotManager,"openVariableSnapshot",this._data.id)),e},_createDomElement:function(){var e=n.create("div",{className:"matrixElement veSpecifier"}),t=m.createNameAndSummary(this._data.name,this._data.rows,this._data.columns,this._data.type,this._data.header);e.appendChild(t.summary);var i=m.createMatrixValue(this._data,this._REGEX_FOR_EXPONENT,this._outputMetaData).container;return e.appendChild(i),this._promptController&&this._promptController.setTarget(e),e},getStyler:function(){return this._styler}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(225),i(348),i(357),i(426)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{MAX_CHARACTERS:80,_MAX_ROWS:10,_SUMMARY_FONT_FAMILY:"'Consolas', sans-serif",_STYLES:["font-family","font-size"],constructor:function(e){this._view=e},getApplicableDomNodeClasses:function(){return["embeddedOutputsMatrixElement"]},enter:function(e,t,i){var n=this.createElement(e,t,i);return e.appendElement(n),!0},createElement:function(e,i,n){var a=r.createFOElementWithStyles(o.BLOCK,i,this._STYLES,this._view);return a.setAttribute("white-space","pre"),Array.prototype.forEach.apply(i.firstChild.children,[function(e){var i;if(t.contains(e,"valueContainer")){var n=JSON.parse(e.dataset.layout);i=this._getChoppedData(n,this._getValue(e))}else t.contains(e,"veVariableName")?i=this._getNameAndSummary(e):t.contains(e,"veScalingFactor")&&(i=this._getScalingFactor(e));i&&a.appendChild(i)},this]),a},_getValue:function(e){return e.textContent},_getScalingFactor:function(e){return document.createTextNode("")},_getNameElement:function(e){return e.firstChild},_getNameAndSummary:function(e){var t=this._getNameElement(e),i=this._createMetaSummaryInfo(e),n=r.createFOElement(o.BLOCK);return n.appendChild(document.createTextNode(t.textContent)),i&&n.appendChild(i),n},_createMetaSummaryInfo:function(e){var t=e.lastChild.textContent;if(""===t)return null;var i=r.createFOElement(o.INLINE);return i.setAttribute("font-style","italic"),i.textContent=t,i},_getChoppedData:function(e,t){var i=this._getAmountOfDataToShow(e,t),n=i.totalCharactersInRow,a=i.totalCharacters;this._styleHeader(n);var s,l=r.createFOElement(o.BLOCK);return t.split("\n").forEach((function(e,t){e&&((s=r.createFOElement(o.BLOCK)).appendChild(document.createTextNode(e.substring(0,a))),this._addHorizontalEllipsis(t,n,s),l.appendChild(s))}),this),this._addVerticalEllipsis(e.totalRows,l),l},_styleHeader:function(e){},_getAmountOfDataToShow:function(e){var t=e.charsPerColumn,i=e.totalColumns,n=e.totalColumns*e.charsPerColumn,o=Math.floor(this.MAX_CHARACTERS/t);return{totalCharactersInRow:n,totalCharacters:Math.min(o,i)*t}},_showEllipsis:function(){return!0},_addHorizontalEllipsis:function(e,t,i){0===e&&t>this.MAX_CHARACTERS&&this._showEllipsis()&&i.appendChild(r.createHorizontalEllipsisElement())},_addVerticalEllipsis:function(e,t){if(e>this._MAX_ROWS&&this._showEllipsis()){var i=r.createVerticalEllipsisElement();t.appendChild(i)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(214)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return t(null,{constructor:function(e,t){t=t||{},this._actionService=e,this._localActions={},this._accessParentActions=t.accessParentActions||!1,this._attached=!0,this._handles=[],this._handles.push(n.after(this._actionService,"onActionChange",i.hitch(this,"_handleActionChange"),!0)),this._previousActions={}},_handleActionChange:function(e){this._attached&&this._localActions[e.id]&&this._localActions[e.id][e.key]!==e.newValue&&(this._localActions[e.id][e.key]=e.newValue,this.onRemoteActionChange(e))},onRemoteActionChange:function(e){},addAction:function(e){this._localActions[e.id]=e,this._attached&&this._actionService.addAction(e)},executeAction:function(e,t){if(this._attached)return this._actionService.executeAction(e,t)},getAction:function(e){return this._localActions[e]?this._localActions[e]:this._actionService.getAction(e)},updateAction:function(e,t){this._localActions[e]=i.mixin(this._localActions[e],t),this._attached&&this._actionService.updateAction(e,t)},getAllActions:function(){if(!this._accessParentActions)return this._getAllLocalActions();var e=this._actionService.getAllActions();return this._attached||(e=e.concat(this._getAllLocalActions())),e},_getAllLocalActions:function(){return e.map(Object.keys(this._localActions),this.getAction.bind(this))},loadActions:function(e){e.forEach(this.addAction,this)},attach:function(){this._attached||(this._attached=!0,Object.keys(this._localActions).forEach((function(e){var t=this._actionService.getAction(e);t?(this._previousActions[e]=i.mixin({},t),this._actionService.updateAction(e,this._localActions[e])):this._actionService.addAction(this._localActions[e])}),this))},detach:function(){this._attached&&(this._attached=!1,Object.keys(this._localActions).forEach((function(e){this._previousActions[e]?(this._actionService.updateAction(e,this._previousActions[e]),delete this._previousActions[e]):this._actionService.removeAction(e)}),this))},destroy:function(){this._attached&&this.detach(),this._handles.forEach((function(e){e.remove()})),this._handles=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(214),i(211),i(368),i(4778),i(4861),i(589),i(1859),i(1350),i(2057)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){"use strict";return t(null,{constructor:function(t){t=t||{};var n=i.mixin({"external.clipboardtempdirpath":void 0},t.inject);n["external.actionservice"]=n["external.actionservice"]?n["external.actionservice"]:new r,n["external.contextmenumodel"]=n["external.contextmenumodel"]||new c(n["external.actionservice"]),n["external.contextmenugenerator"]=n["external.contextmenugenerator"]||new d(n["external.contextmenumodel"]),n["external.contextmenucontributor"]=n["external.contextmenucontributor"]||new u,n["external.clipboard"]=n["external.clipboard"]||l.getInternalClipboard();var o=a;t.registry&&(o=o.concat(t.registry));var h=["api","actions","action.cursor","action.delete","action.undoredo","controller.editmanager","controller.caret","controller.focus","controller.contextmenu","controller.mouse","copypaste","model.equation","view.highlightactiverow","view.movekeycaptureonfocus","view.renderer","view.keyhandler","view.rootnode"];t.enable&&(h=h.concat(t.enable)),t.disable&&(h=e.filter(h,(function(e){return t.disable.indexOf(e)<0}))),this._pluginService=new s({registry:o,inject:n,enable:h,disable:t.disable})},placeAt:function(e,t){var i=this._pluginService.get("view.rootnode");return o.place(i,e,t),this._pluginService.get("view.renderer").redraw()},focus:function(){this._pluginService.get("controller.focus").focus()},get:function(e){return this._pluginService.get("api.attributes").get(e)},getEquation:function(){return this._pluginService.get("api.equation")},getCursor:function(){return this._pluginService.get("api.cursor")},set:function(e,t){return this._pluginService.get("api.attributes").set(e,t)},destroy:function(){this._pluginService.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(588),i(4779),i(268)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(null,{pluginId:"action.caret",pluginFamily:"actions",pluginDependencies:["controller.caret","controller.cursor","external.actionservice","model.equation","view.caret","view.helper"],constructor:function(e,i,n,o,r,a){this._caretController=e,this._cursorController=i,this._equation=o,this._caret=r,this._viewHelper=a;var s=[{id:"equationeditor.up",enabled:!0,keyPriority:1,key:"up",callback:t.hitch(this,"_handleUp",!1)},{id:"equationeditor.selectup",enabled:!0,keyPriority:1,key:"shift_up",callback:t.hitch(this,"_handleUp",!0)},{id:"equationeditor.down",enabled:!0,keyPriority:1,key:"down",callback:t.hitch(this,"_handleDown",!1)},{id:"equationeditor.selectdown",enabled:!0,keyPriority:1,key:"shift_down",callback:t.hitch(this,"_handleDown",!0)}];n.loadActions(s)},_handleUp:function(e){var r=this._caret.getGeometry();if(void 0===r.x||void 0===r.y)return!1;var a=this._cursorController.getPosition(),s=this._equation.getById(a.id),l=o.findStructure(s);if(l){var c=this["_handleUp"+l.structure.className];if(c){var d=c.call(this,l.structure,l.path);if(d)return this._cursorController.setPosition(d,e),!0}}var u=n.search(1,Math.floor(r.y),t.hitch(this,(function(e){var t=this._caretController.getPositionFromXY(r.x,r.y-e);return t&&!i.positionsEqual(t,a)&&t})));return u&&this._cursorController.setPosition(u.value,e),!!u},_handleUpMathScript:function(e,t){if(e.children[2]){var i=o.categorizeNode(e.children[2]);return 0===t[0]&&i===o.CATEGORY.PLACEHOLDER_ROW?{id:e.children[2].id,offset:0}:void 0}},_handleUpMathFraction:function(e,t){if(1===t[0]){if(o.categorizeNode(e.children[0])!==o.CATEGORY.PLACEHOLDER_ROW)return;var i=this._caret.getGeometry(),n=this._viewHelper.getNodeGeometry(e.children[1]);if(i.x>n.relativeX+n.w-4)return{id:e.children[0].id,offset:e.children[0].children.length};if(i.x<n.relativeX+4)return{id:e.children[0].id,offset:0}}},_handleDown:function(e){var r=this._caret.getGeometry();if(void 0===r.x||void 0===r.y)return!1;var a=this._cursorController.getPosition(),s=this._equation.getById(a.id),l=o.findStructure(s);if(l){var c=this["_handleDown"+l.structure.className];if(c){var d=c.call(this,l.structure,l.path);if(d)return this._cursorController.setPosition(d,e),!0}}var u=n.search(Math.ceil(r.y+r.h+1),this._viewHelper.getRootGeometry().h,t.hitch(this,(function(e){var t=this._caretController.getPositionFromXY(r.x,e);return t&&!i.positionsEqual(t,a)&&t})));return u&&this._cursorController.setPosition(u.value,e),!!u},_handleDownMathFraction:function(e,t){if(0===t[0]){if(o.categorizeNode(e.children[1])!==o.CATEGORY.PLACEHOLDER_ROW)return;var i=this._caret.getGeometry(),n=this._viewHelper.getNodeGeometry(e.children[0]);if(i.x>n.relativeX+n.w-4)return{id:e.children[1].id,offset:e.children[1].children.length};if(i.x<n.relativeX+4)return{id:e.children[1].id,offset:0}}},_handleDownMathScript:function(e,t){var i=o.categorizeNode(e.children[0]);if(2===t[0]&&i===o.CATEGORY.PLACEHOLDER_ROW){var n=this._caret.getGeometry(),r=this._viewHelper.getNodeGeometry(e.children[2]);if(n.x<r.relativeX+r.w/2)return{id:e.children[0].id,offset:-1};var a=this._equation.getParentAndIndex(e);return{id:a.parent.id,offset:a.index+1}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(268)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(null,{constructur:function(){},visit:function(e,i){return this._callbacks=t.mixin({atom:function(){},placeholder:function(){},row:function(){}},i),this._visitedCounter=0,this._recurseTree(e)},visitedCounter:function(){return this._visitedCounter},parentCategory:function(){return this._parentCategory},getNextSibling:function(){return this._currentParent.children[this._currentParentIndex+1]},_recurseTree:function(e){var t,n,o=i.categorizeNode(e);for(n=0;e.children&&n<e.children.length;n+=1){this._currentParent=e,this._currentParentIndex=n,this._parentCategory=o;var r=e.children[n];if(null!==r){if("placeholder"===this._parentCategory&&(void 0===(t=this._callbacks.row(e,n))&&this._placeHolderCanContainCursorAt(e,n)&&(t=this._callbacks.placeholder(e,n),this._visitedCounter+=1),void 0!==t))return t;var a=i.categorizeNode(r);if("atom"===a){if(void 0!==(t=this._callbacks.atom(r)))return t;if(this._visitedCounter+=this._atomLength(r),this._visitedCounter+=1,n<e.children.length-1){var s=this.getNextSibling();if(null===s)continue;"atom"===i.categorizeNode(s)&&(this._visitedCounter-=1)}}else if("placeholder-atom"===a){if(void 0!==(t=this._callbacks.atom(r)))return t;this._visitedCounter+=1}else if("static"===a);else if(void 0!==(t=this._recurseTree(r)))return t}}if("placeholder"===o){if(void 0!==(t=this._callbacks.row(e,e.children.length)))return t;0===e.children.length?(t=this._callbacks.placeholder(e,0),this._visitedCounter+=1):this._placeHolderCanContainCursorAt(e,e.children.length)&&(t=this._callbacks.placeholder(e,e.children.length),this._visitedCounter+=1)}return t},_atomLength:function(e){return"symbol"===e.kind?1:e.text.length},_placeHolderCanContainCursorAt:function(e,t){var n;if(t===e.children.length)return n=e.children[t-1],"structure"===i.categorizeNode(n);if(n=e.children[t],"structure"!==i.categorizeNode(n))return!1;if(0===t)return!0;var o=e.children[t-1];return"structure"===i.categorizeNode(o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(588),i(268)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return t(null,{pluginId:"action.cursor",pluginDependencies:["controller.cursor","controller.selection","external.actionservice","model.equation"],constructor:function(e,t,n,o){this._cursorController=e,this._selectionController=t,this._equation=o;var r=[{id:"equationeditor.left",enabled:!0,key:"left",keyPriority:1,callback:i.hitch(this,"_handleLinearMove",-1)},{id:"equationeditor.selectleft",enabled:!0,key:"shift_left",keyPriority:1,callback:i.hitch(this,"_handleLinearMove",-1,!0)},{id:"equationeditor.jumpleft",enabled:!0,key:"ctrl_left",keyPriority:1,callback:i.hitch(this,"_handleJump",-1)},{id:"equationeditor.selectjumpleft",enabled:!0,key:"ctrl_shift_left",keyPriority:1,callback:i.hitch(this,"_handleJump",-1,!0)},{id:"equationeditor.right",enabled:!0,key:"right",keyPriority:1,callback:i.hitch(this,"_handleLinearMove",1)},{id:"equationeditor.selectright",enabled:!0,key:"shift_right",keyPriority:1,callback:i.hitch(this,"_handleLinearMove",1,!0)},{id:"equationeditor.jumpright",enabled:!0,key:"ctrl_right",keyPriority:1,callback:i.hitch(this,"_handleJump",1)},{id:"equationeditor.selectjumpright",enabled:!0,key:"ctrl_shift_right",keyPriority:1,callback:i.hitch(this,"_handleJump",1,!0)},{id:"equationeditor.home",enabled:!0,key:"home",platformKey:{mac:"meta_left"},keyPriority:1,callback:i.hitch(this,"_searchRowSide",-1,!1)},{id:"equationeditor.selefthome",enabled:!0,key:"shift_home",platformKey:{mac:"meta__shift_left"},keyPriority:1,callback:i.hitch(this,"_searchRowSide",-1,!0)},{id:"equationeditor.end",enabled:!0,key:"end",platformKey:{mac:"meta_right"},keyPriority:1,callback:i.hitch(this,"_searchRowSide",1,!1)},{id:"equationeditor.selectend",enabled:!0,key:"shift_end",platformKey:{mac:"meta_shift_right"},keyPriority:1,callback:i.hitch(this,"_searchRowSide",1,!0)},{id:"equationeditor.selectall",enabled:!0,key:"ctrl_a",platformKey:{mac:"meta_a"},keyPriority:1,callback:i.hitch(this,"_selectAll")}];n.loadActions(r)},_handleJump:function(e,t){for(var i=this._cursorController.getPosition(),n=this._equation.getById(i.id),r=i.offset;n;){var a=o.categorizeNode(n);if("placeholder"===a){var s=r+e;if(s>=0&&s<=n.children.length)return this._cursorController.setPosition({id:n.id,offset:s},t),!0}var l="atom"===a&&n.text.length===r,c="atom"===a&&0===r,d=this._equation.getParentAndIndex(n);if(!d)return;n=d.parent,r=d.index,l?r+=1:c||-1!==e||(r+=1)}},_selectAll:function(){var e;this._cursorController.hasSelection()&&(e=this._selectionController.getSelectionSpan()),this._cursorController.setLogical(0);var t=this._cursorController.availableCursorPositions()-1;if(this._cursorController.setLogical(t,!0),e){var i=this._selectionController.getSelectionSpan();return i.node!==e.node||i.left!==e.left||i.right!==e.right}return!0},_handleLinearMove:function(e,t){if(this._cursorController.hasSelection()){var i=this._selectionController.getSelectionSpan();if(!t)return this._cursorController.setPosition({id:i.id,offset:-1===e?i.left:i.right}),!0;if(1===e===i.reversed)return this._shrinkSelection(e),!0}var n=this._cursorController.getLogical();return this._cursorController.setLogical(n+e,t),-1===e?n>0:n<this._cursorController.availableCursorPositions()-1},_shrinkSelection:function(e){var t=this._selectionController.getSelectionShrinkPosition();this._cursorController.setPosition(t,!0)},_searchRowSide:function(e,t){for(var i=this._cursorController.getPosition(),r=i.node,a=-1===e?0:n.nodeLength(r),s=i.offset===a;r;){if("placeholder"===o.categorizeNode(r)){if(!s)return this._cursorController.setPosition({id:r.id,offset:-1===e?0:-1},t),!0;s=!1}var l=this._equation.getParentAndIndex(r);if(!l)break;s&&(a=-1===e?0:l.parent.children.length-1,s=s&&l.index===a),r=l.parent}this._cursorController.setLogical(-1===e?0:this._cursorController.availableCursorPositions()-1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(4781),i(4782),i(4783),i(4784)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/equationEditorActions",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(217),i(213),i(225),i(268)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";function r(i,o){var r=n("*[id='"+i.id+"']",o);if(0!==r.length){var a=function(t,i){if(t.children.length>0||0===t.childNodes.length)return function(t,i){if(0===i)return 0===t.childNodes.length?s(t):s(t.firstElementChild);var n=t.childNodes[i-1];if(!n)return;var o=e.place("<span>&#x200b;</span>",n,"after"),r=s(o);return e.destroy(o),r}(t,i);if(0===i)return s(t);var n=t;t=n.cloneNode(),n.parentNode.replaceChild(t,n),t.innerHTML="";var o=e.create("span",{textContent:n.textContent.substr(0,i)},t);e.create("span",{textContent:n.textContent.substr(i)},t);var r=s(o,!0);return t.parentNode.replaceChild(n,t),t=n,r}(r[0],i.offset);if(a){var l=t.position(o,!0);a.x-=l.x,a.y-=l.y}return a}}function a(e,i){var o=n("*[id='"+e.id+"']",i);if(0!==o.length){var r=s(o[0]),a=t.position(i,!0);return r.x-=a.x,r.y-=a.y,r}}function s(e,n){var o=e,r=!1;0===e.childNodes.length&&(r=!0,e=o.cloneNode(),o.parentNode.replaceChild(e,o),e.innerHTML="&nbsp;");var a=t.position(e,!0);r&&(e.parentNode.replaceChild(o,e),e=o);var s=i.getComputedStyle(e);return a.x+=parseInt(s.paddingLeft,10),a.w-=parseInt(s.paddingLeft,10),r&&(a.w=0),a.w+=parseInt(s.marginLeft,10),a.x-=parseInt(s.marginLeft,10),{x:a.x+(n?a.w:0),y:a.y,w:a.w,h:a.h,height:a.h}}return{coordinatesFromNode:a,coordinatesFromPosition:r,coordinatesFromSelection:function(e,t){var i=e.node;if("atom"===o.categorizeNode(i)){var n=r({id:e.id,offset:e.left},t)||{x:0,y:0,height:0},s=r({id:e.id,offset:e.right},t)||{x:0,y:0,height:0},l=Math.min(n.x,s.x),c=Math.min(n.y,s.y),d=Math.max(n.height,s.height);return{x:l,y:c,w:Math.max(n.x,s.x)-l,h:d}}for(var u,h=i.children,p=[],f=[],g=[],m=[],_=e.left;_<e.right&&_<h.length;_+=1)u=a(h[_],t),p.push(u.x),g.push(u.x+u.w),f.push(u.y),m.push(u.y+u.h);return(u={x:Math.min.apply(void 0,p),y:Math.min.apply(void 0,f)}).w=Math.max.apply(void 0,g)-u.x,u.h=Math.max.apply(void 0,m)-u.y,u}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(588),i(268)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return t(null,{pluginId:"controller.selection",pluginDependencies:["model.cursor","model.equation"],constructor:function(e,t){this._cursor=e,this._equation=t},getSelectionStartLogical:function(){if(this._cursor.hasSelection()){var e=this.getSelectionSpan(),t={id:e.id,offset:e.reversed?e.right:e.left};return n.logicalFromPosition(t,this._equation.getRoot())}},getSelectionLogical:function(){if(this._cursor.hasSelection()){var e=this.getSelectionSpan();return{left:n.logicalFromPosition({id:e.id,offset:e.left},this._equation.getRoot()),right:n.logicalFromPosition({id:e.id,offset:e.right},this._equation.getRoot()),reversed:e.reversed}}},hasSelection:function(){return this._cursor.hasSelection()},iterateSelection:function(e){var t=this.getSelectionSpan(),n={};n="atom"===o.categorizeNode(t.node)?[t.node]:t.node.children.slice(t.left,t.right),this._equation.iterate(i.mixin({},e,{start:n}))},getSelectionSpan:function(){var e=this._cursor.getSelection();return this.getSpan(e[0],e[1])},getSelectionShrinkPosition:function(){var e=this._cursor.getSelection(),t=e[0],i=e[1],r=this._analyzeAncestors(t,i),a=o.categorizeNode(r.lastCommon.node);if("placeholder"===a||"atom"===a){var s=r.lastCommon.minLeftOffset,l=r.lastCommon.minRightOffset,c=r.length,d=r.lastCommonIndex===c-1||r.lastCommonIndex===c-2&&r[c-1].leftOffset===r[c-1].rightOffset;if(s<l-1||d)return{id:r.lastCommon.id,offset:r.reversed?s+1:l-1}}for(var u=r.lastCommonIndex;u+1<r.length&&(u+=1,"atom"!==(a=o.categorizeNode(r[u].node))&&"placeholder"!==a););return{id:r[u].id,offset:r.reversed?0:n.nodeLength(r[u].node)}},getSpan:function(e,t){if(e.id===t.id)return{id:e.id,left:Math.min(e.offset,t.offset),right:Math.max(e.offset,t.offset),reversed:e.offset>t.offset,node:this._equation.getById(e.id)};for(var i=this._analyzeAncestors(e,t),n=i.lastCommonIndex,r=i.lastCommonIndex;n>=0;){var a=o.categorizeNode(i[n].node);if("atom"===a||"placeholder"===a){r=n;break}n-=1}return{id:i[r].id,left:i[r].minLeftOffset,node:i[r].node,right:i[r].minRightOffset,reversed:i.reversed}},_analyzeAncestors:function(e,t){for(var i=this._getAncestors(e),n=this._getAncestors(t),o=0;o<i.length&&o<n.length&&i[o].id===n[o].id;)i[o].minLeftOffset=Math.min(i[o].leftOffset,n[o].leftOffset),i[o].minRightOffset=Math.max(i[o].rightOffset,n[o].rightOffset),o+=1;var r=o-1,a={lastCommonIndex:r,lastCommon:i[r],length:i.length,reversed:i[r].leftOffset>n[r].leftOffset||i[r].rightOffset>n[r].rightOffset};return i.forEach((function(e,t){a[t]=e})),a},_getAncestors:function(e){for(var t=this._equation.getById(e.id),i=e.offset,n=e.offset,o=[];t;){o.unshift({id:t.id,leftOffset:i,rightOffset:n,node:t});var r=this._equation.getParentAndIndex(t);if(!r)break;var a="MathText"===t.className&&i===t.text.length,s="MathText"===t.className&&0===i;t=r.parent,i=r.index,n=r.index+1,a?i=n:s&&(n=i)}return o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(211),i(213),i(245),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{constructor:function(e,o,a,s){this._rtcView=o,this._cursorController=a,this._focusNotifier=s,this._layer=n.create("span",{class:"cursorGroup"}),this._permanentLayer=document.createElement("span"),this._permanentLayer.className="cursor",r("mac")&&"function"==typeof window.cefQuery&&this._permanentLayer.classList.add("mac"),this._layer.appendChild(this._permanentLayer),this._rtcView.addLayer(this._layer),this._paddingLeft=this._rtcView.paddingLeft,this._layers=[],this._blinkAllTimer=null,this._hidden=!1,this._pendingBatchUpdate=!1,this.own(i.after(e,"onUpdate",t.hitch(this,"_handleCursorViewUpdate"))),this.own(i.after(e,"onScrollCursorIntoView",t.hitch(this,"_handleScrollIntoView"))),this._focusNotifier&&(this.own(i.after(this._focusNotifier,"onFocus",t.hitch(this,"_handleFocusNotifierChange",!0))),this.own(i.after(this._focusNotifier,"onBlur",t.hitch(this,"_handleFocusNotifierChange",!1))),this._hasReceivedInitialFocus=!1)},_handleCursorViewUpdate:function(){this._layout()},_handleFocusNotifierChange:function(e){this._hasReceivedInitialFocus=this._hasReceivedInitialFocus||e,this._layout()},_isFocused:function(){return!this._focusNotifier||!this._hasReceivedInitialFocus||this._focusNotifier.hasFocus()},_handleScrollIntoView:function(){this._cursorController.hasMultipleCursors()&&this._isAnyCursorInView()||this._rtcView.scrollPositionIntoView(this._cursorController.getScrollIntoViewPosition(),0)},_isAnyCursorInView:function(){return this._cursorController.getCursors().some((function(e){return this._rtcView.isPositionInView(e.getCursorPosition())}),this)},getBox:function(){return this._permanentLayer},_hide:function(e){o.set(e,{visibility:"hidden"}),this._hidden=!0},_layout:function(){this._pendingBatchUpdate=!0,this._layers=[],this._cursorController.getCursors().forEach((function(e,t){var i;i=0===t?this._permanentLayer:this._addCursorLayer();var n=this._rtcView.getCoordinateForPosition(e.position);if(this.updateCaretGeometry(i,n),e.isSelectionHidden()||e.isHidden()||!this._rtcView.isValidCoordinate(n))this._hide(i);else{this._hidden=!1,this._isFocused()?i.removeAttribute("blurred"):i.setAttribute("blurred","");var o=e.getNode(),r=o&&!o.isReadOnly();i.style.visible=!0,i.style.visibility="visible",r?i.removeAttribute("inactive"):i.setAttribute("inactive","")}}),this),this._isFocused()?this._blinkAll():this._stopBlinking(),this._updateLayer(),this._pendingBatchUpdate=!1,this.emitLayerUpdate()},updateCaretGeometry:function(e,t){var i=(t.x||this._paddingLeft)+"px",n=t.y+"px";e.style.left=i,e.style.top=n;var o=Math.round(t.height)+"px";e.style.height=o,this.emitLayerUpdate()},emitLayerUpdate:function(){this._pendingBatchUpdate||this.onLayerUpdated()},onLayerUpdated:function(){},_stopBlinking:function(){this._blinkAllTimer&&(clearTimeout(this._blinkAllTimer),this._blinkAllTimer=null)},_blinkAll:function(){this._stopBlinking(),this._blinkAllTimer=setTimeout(t.hitch(this,this._blink),600)},_blink:function(){this._hidden||(this._layers.forEach((function(e){"hidden"===o.get(e,"visibility")?o.set(e,"visibility","visible"):e.hasAttribute("inactive")||o.set(e,"visibility","hidden")}),this),"hidden"===o.get(this._permanentLayer,"visibility")?o.set(this._permanentLayer,"visibility","visible"):this._permanentLayer.hasAttribute("inactive")||o.set(this._permanentLayer,"visibility","hidden"),this._blinkAllTimer=setTimeout(t.hitch(this,this._blink),600))},_updateLayer:function(){if(0!==this._layers.length||1!==this._layer.childElementCount){var e=this._layer.cloneNode(!1);e.appendChild(this._permanentLayer),this._layers.forEach((function(t){e.appendChild(t)})),this._rtcView.switchLayer(e,this._layer),this._layer=e}},_addCursorLayer:function(){var e=document.createElement("span");return e.className="cursor",this._layers.push(e),e},destroy:function(){this.inherited(arguments),clearTimeout(this._blinkAllTimer)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._actionService=e,this._actionIdToActionServiceMap={}},addActionService:function(e,t){if(t){if(this._actionIdToActionServiceMap[e])throw new Error("ActionIds must be unique");this._actionIdToActionServiceMap[e]=t}},removeActionService:function(e){delete this._actionIdToActionServiceMap[e]},getActionService:function(e){return this._actionIdToActionServiceMap[e]||this._actionService}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(229),i(207),i(1340)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_SORT_A_BEFORE_B:-1,_SORT_A_AFTER_B:1,_SORT_A_SAME_AS_B:0,constructor:function(e){this._alternateActionServiceSupport=e,this._keyBindingMap={}},onBindingChanged:function(e,t,i){},onDefaultsChanged:function(){},addBinding:function(e,t){var i=this._getActionIdsForKeyStroke(e);this._addActionGroupToKeyStroke(t,e),this._emitEventsIfNecessary(e,i,t)},removeBinding:function(e){var i=this._findKeyBindingForActionGroup(e);if(i){var n=this.getDefaultActionGroupForKeyStroke(i);if(e.isBase()&&n)t.error("Tried to remove a base action group, but a default still exists.");else{var o=this._getActionIdsForKeyStroke(i);this._removeActionGroupFromKeyBinding(e,i),this._emitEventsIfNecessary(i,o,e)}}},resetToDefaults:function(){Object.keys(this._keyBindingMap).forEach((function(e){var t=this._getActionIdsForKeyStroke(e),i=this.getActionGroupsForKeyStroke(e);(i=i.slice()).forEach((function(t){(t.isCustom()||t.isBase())&&this._removeActionGroupFromKeyBinding(t,e)}),this),this._emitOnBindingChangedEventIfNecessary(e,t)}),this)},addActionIdToActionGroup:function(e,t){var i=this._findKeyBindingForActionGroup(e),n=this._getActionIdsForKeyStroke(i);n.some((function(e){return e===t}))||(e.addActionId(t),this._prioritizeActionGroups(i),this._emitEventsIfNecessary(i,n,e))},removeActionIdFromActionGroup:function(e,t){if(1!==e.getActionIds().length||e.isBase()){var i=this._findKeyBindingForActionGroup(e),n=this._getActionIdsForKeyStroke(i);e.removeActionId(t),this._prioritizeActionGroups(i),this._emitEventsIfNecessary(i,n,e)}else this.removeBinding(e)},replaceActionIdsInActionGroup:function(e,i){if(e.isBase()||0!==i.length){var n=this._findKeyBindingForActionGroup(e),o=this._getActionIdsForKeyStroke(n);e.replaceActionIds(i),this._prioritizeActionGroups(n),this._emitEventsIfNecessary(n,o,e)}else t.error("Tried to replace an actionGroup's actions with an empty set of action IDs.")},moveActionIdToFrontOfActionGroup:function(e,t){if(e.isDefault()){var i=this._findKeyBindingForActionGroup(e),n=this._getActionIdsForKeyStroke(i);n.some((function(e){return e===t}))&&(e.moveActionIdToFront(t),this._prioritizeActionGroups(i),this._emitEventsIfNecessary(i,n,e))}},getActionGroupsContainingAction:function(e){var t=[];return Object.keys(this._keyBindingMap).forEach((function(i){var n=this.getMatchingActionGroup(i,e);n&&t.push(n)}),this),t},getMatchingActionGroup:function(e,t){var i=(this._keyBindingMap[e]||[]).filter((function(e){return e.contains(t)}),this);if(i.length>2)throw new Error("An action is registered to too many actionGroups.");if(!(2!==i.length||i[0].isBase()&&i[1].isDefault()))throw new Error("An action is registered twice, but the group types are wrong.");return i[0]},getActionGroupsForKeyStroke:function(e){return this._keyBindingMap[e]||[]},getDefaultActionGroupForKeyStroke:function(e){var i=this.getActionGroupsForKeyStroke(e);return i=i.filter((function(e){return e.isDefault()})),t.assert(i.length<=1,"Expecting no more than one action group"),i[0]},getBaseActionGroupForKeyStroke:function(e){var i=this.getActionGroupsForKeyStroke(e);return i=i.filter((function(e){return e.isBase()})),t.assert(i.length<=1,"Expecting no more than one action group"),i[0]},getActiveKeyBindings:function(){return Object.keys(this._keyBindingMap)},getEnabledCallbacksForKeyBinding:function(e){return this.getEnabledActionsForKeyBinding(e).map((function(e){return e.callback}))},getEnabledActionsForKeyBinding:function(e){return this._keyBindingMap[e]?this._getActionIdsForKeyStroke(e).map((function(e){return this._alternateActionServiceSupport.getActionService(e).getAction(e)}),this).filter((function(e){return e.enabled})):[]},doesKeyBindingHaveActions:function(e){return!!this._keyBindingMap[e]&&this._getActionIdsForKeyStroke(e).length>0},_addActionGroupToKeyStroke:function(e,t){this._keyBindingMap[t]||(this._keyBindingMap[t]=[]),this._keyBindingMap[t].push(e),this._prioritizeActionGroups(t)},_removeActionGroupFromKeyBinding:function(e,t){var i=this._keyBindingMap[t].indexOf(e);this._keyBindingMap[t].splice(i,1),0===this._keyBindingMap[t].length&&delete this._keyBindingMap[t]},_findKeyBindingForActionGroup:function(e){for(var t=Object.keys(this._keyBindingMap),i=0;i<t.length;i++){var n=t[i];if(-1!==this._keyBindingMap[n].indexOf(e))return n}return null},_prioritizeActionGroups:function(e){this._keyBindingMap[e].sort(function(e,t){if(e.isCustom()&&!t.isCustom()||e.isBase()&&t.isDefault())return this._SORT_A_BEFORE_B;if(e.isDefault()&&!t.isDefault()||e.isBase()&&t.isCustom())return this._SORT_A_AFTER_B;var i=this._getActionIdForSort(e).toLowerCase(),n=this._getActionIdForSort(t).toLowerCase();return i<n?this._SORT_A_BEFORE_B:i>n?this._SORT_A_AFTER_B:this._SORT_A_SAME_AS_B}.bind(this))},_getActionIdForSort:function(e){var t=e.getActionIds();return t[t.length-1]},_getWinningActionGroup:function(e){var t=this._keyBindingMap[e];return t?t[0]:null},_getActionIdsForKeyStroke:function(e){var t=this._getWinningActionGroup(e);return t?t.getActionIds():[]},_emitEventsIfNecessary:function(e,t,i){this._emitOnBindingChangedEventIfNecessary(e,t),this._emitOnDefaultsChangedEventIfNecessary(i)},_emitOnBindingChangedEventIfNecessary:function(e,t){var n=this._getActionIdsForKeyStroke(e);i.arrayEquals(t,n)||this.onBindingChanged(e,t,n)},_emitOnDefaultsChangedEventIfNecessary:function(e){e.isDefault()&&this.onDefaultsChanged()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(246),i(204),i(208),i(211),i(210),i(221),i(206),i(209),i(229),i(207),i(1340),i(615),i(799),i(249)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m=0,_=1,v=2,b="ctrl_c",y="ctrl_x",C="ctrl_v",T="ctrl_insert",E="shift_delete",S="shift_insert",w="meta_c",I="meta_x",A="meta_v";return t([u],{_NON_ACTION_PREFIX:"Non-action-",constructor:function(e,t,i,c,d,u){this._document=e,this._actionService=t,this._shortcutsModel=c,this._alternateActionServiceSupport=d,this._multistrokeShortcuts=u,this._selectedText=" ",this._browserCutCopyPasteRequired=!1,this.keyCapture=r.create("textarea",{class:"keyCapture",value:"",autocapitalize:"off",autocomplete:"off",autocorrect:"off",spellcheck:!1});var h=this.keyCapture.style;s("webkit")?h.borderColor="#FFFFFF":(h.border="none",h.borderWidth="0px"),s("ios")&&a.add(this.keyCapture,"ios"),(s("trident")||s("ie")||s("edge"))&&a.add(this.keyCapture,"ie"),this.own(l(this.keyCapture,"keydown",n.hitch(this,"_handleKeyDown"))),this.own(l(this.keyCapture,"keyup",n.hitch(this,"_handleKeyUp"))),this.own(l(this.keyCapture,"input",n.hitch(this,"handleInput"))),this.own(l(this.keyCapture,"focus",n.hitch(this,"onFocus"))),this.own(l(this.keyCapture,"blur",n.hitch(this,"onBlur"))),this.setDefaultInputHandler(),this._actionServices=[this._actionService],this._addBindingsFromActionService(),this.own(o.after(this._actionService,"addAction",n.hitch(this,"_handleAddAction"),!0)),this.own(o.before(this._actionService,"removeAction",n.hitch(this,"_handleRemoveAction"))),this._addActionChangeListener(this._actionService),this._inputAlreadyHandled=!1,this._previousInput="",this._lastKeyDownBeforeKeyUp="",this.place(i)},place:function(e){r.place(this.keyCapture,e)},prepareKeyCapture:function(e){this._inputHandlerIsInInteraction()||(e?(this.setKeyCaptureValue(this._selectedText),this._selectKeyCaptureContent()):this.setKeyCaptureValue(""))},onAfterCompositionstart:function(){},hasFocus:function(){return document.activeElement===this.keyCapture},blur:function(){this.keyCapture.blur()},focus:function(){this.keyCapture.focus()},onFocus:function(e){s("ie")&&this._selectKeyCaptureContent()},enableBrowserCopyPaste:function(e){this._browserCutCopyPasteRequired=!0;var t=this;Object.keys(e).forEach((function(i){t.listenTo(i,e[i])}))},listenTo:function(e,t){this.own(l(this.keyCapture,e,t))},onBlur:function(e){this._multistrokeShortcuts.cancelCurrentSequence()},_selectKeyCaptureContent:function(){if(this.keyCapture.setSelectionRange)try{this.keyCapture.setSelectionRange(0,this.keyCapture.value.length),this.hasFocus()||this.focus()}catch(e){}else try{this.keyCapture.select()}catch(e){}},setInputHandler:function(e){this._inputHandler=e},setDefaultInputHandler:function(){this.setInputHandler(this._inputHandlerText)},_inputHandlerIsInInteraction:function(){return this._inputHandler!==this._inputHandlerText},_inputHandlerText:function(e,t){this.setKeyCaptureValue(""),!s("mac")||s("safari")||this._lastKeyDownBeforeKeyUp||t||this._document.deleteTextAtCurrentPosition(g.BACKWARD_DELETE),this._document.insertTextAtCurrentPosition(e),this.onTextInput(e)},onTextInput:function(e){},handleInput:function(e,t){if("historyUndo"!==(e=e||{}).inputType&&"historyRedo"!==e.inputType){var i=this.keyCapture.value;""===this.keyCapture.value&&e.data&&(i=e.data);var n=this._inputAlreadyHandled&&i===this._previousInput;t?(this._inputAlreadyHandled=!0,this._previousInput=i):(this._inputAlreadyHandled=!1,this._previousInput=""),n||(i.length>1&&(i.slice(0,this._selectedText.length)===this._selectedText?i=i.slice(this._selectedText.length):i.slice(1)===this._selectedText&&(i=i.slice(0,1))),i&&this._inputHandler(i,t))}},_checkForBrowserCcpShortcuts:function(e){if(s("mac"))switch(e){case I:case w:case A:return this._browserCutCopyPasteRequired;default:return!1}switch(e){case y:case E:case b:case T:case C:case S:return this._browserCutCopyPasteRequired;default:return!1}},_handleKeyBindingEvent:function(e,t,n){switch(t=this._checkForBrowserCcpShortcuts(n)&&this._browserCutCopyPasteRequired?_:t){case m:return void i.stop(e);case _:return;case v:return void e.preventDefault();default:c.error("Key event is not handled")}},_handleKeyDown:function(e){if(this._lastKeyDownBeforeKeyUp=e.code||String.fromCharCode(e.keyCode),!this._inputHandlerIsInInteraction()){this.onKeyDownBegin();var t=p.getKeyStrokeFromEvent(e);if(this.checkForActionAndUpdateMultistrokeState(e)){if(this._handleKeyBindingEvent(e,m,t),this._multistrokeShortcuts.getState()===f.STATUS_ENUM.COMPLETE_MATCH){e.target!==this.keyCapture&&this.focus();var i=this._multistrokeShortcuts.getCompleteSequence(),n=this._shortcutsModel.getEnabledActionsForKeyBinding(i);p.executeActions(n)}this.setInputHandler(this._inputHandlerText),this.onKeyDownEnd()}}},processKey:function(e){return this._handleKeyDown(e)},checkForActionAndUpdateMultistrokeState:function(e){var t=p.getKeyStrokeFromEvent(e);return!(t.indexOf(p.UNKNOWN_KEY)>-1)&&this._multistrokeShortcuts.applyKeyStroke(t)!==f.STATUS_ENUM.INVALID_START_OF_SEQUENCE},lastKeyDown:function(){return this._lastKeyDownBeforeKeyUp},_handleKeyUp:function(){this._lastKeyDownBeforeKeyUp=""},onKeyDownBegin:function(){},onKeyDownEnd:function(){},_resolvePlatformKey:function(e,t){var i;if(t)for(i in t)if(t.hasOwnProperty(i)&&s(i))return t[i];return e},_addBindingsFromActionService:function(){this._actionService.getAllActions().forEach((function(e){this._addBinding(e.key,e.platformKey,e.id)}),this)},_handleAddAction:function(e){this._addBinding(e.key,e.platformKey,e.id)},_handleRemoveAction:function(e){this._shortcutsModel.getActionGroupsContainingAction(e).forEach((function(t){t.isDefault()&&this._shortcutsModel.removeActionIdFromActionGroup(t,e)}),this),this._alternateActionServiceSupport.removeActionService(e)},_addActionChangeListener:function(e){this.own(o.after(e,"onActionChange",n.hitch(this,"_handleOnActionChange",e),!0))},_handleOnActionChange:function(e,t){if("key"===t.key||"platformKey"===t.key){var i=t.oldValue,n=t.newValue,o=t.id,r=e.getAction(o),a="platformKey"===t.key;if(!this._didResolvedKeyChange(a,i,r))return;if(-1===this._shortcutsModel.getActiveKeyBindings().indexOf(i))return;this.removeBinding({key:i},o),this.addBinding({key:n},o,e)}},_didResolvedKeyChange:function(e,t,i){var n=e?t:i.platformKey,o=e?i.key:t;return this._resolvePlatformKey(o,n)===t},addBinding:function(e,t,i){if("string"!=typeof t)throw new Error("Function signature has changed. Caller needs to be updated.");this._addActionService(i,t),this._addBinding(e.key,e.platformKey,t)},removeBinding:function(e,t){var i=this._resolvePlatformKey(e.key,e.platformKey);if(i){this._alternateActionServiceSupport.removeActionService(t);var n=this._shortcutsModel.getDefaultActionGroupForKeyStroke(i);n&&this._shortcutsModel.removeActionIdFromActionGroup(n,t)}},_addBinding:function(e,t,i){var n=this._resolvePlatformKey(e,t);if(n){var o=this._shortcutsModel.getDefaultActionGroupForKeyStroke(n);o?this._shortcutsModel.addActionIdToActionGroup(o,i):(o=new h([i]),this._shortcutsModel.addBinding(n,o))}},_addActionService:function(e,t){e!==this._actionService&&(e&&-1===this._actionServices.indexOf(e)&&(this._addActionChangeListener(e),this._actionServices.push(e)),this._alternateActionServiceSupport.addActionService(t,e))},setSelectedText:function(e){this._selectedText=e},getDefaultSelectionIndicator:function(){return" "},resetSelectedText:function(){this._selectedText=" "},setKeyCaptureValue:function(e){this.keyCapture.value=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(209),i(207),i(799)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{constructor:function(e){this._keyboardShortcutsModel=e,this._sequenceToStrokesMap={},this._currentStrokes=[],this._state=r.STATUS_ENUM.INVALID_START_OF_SEQUENCE,this.own(i.after(this._keyboardShortcutsModel,"onBindingChanged",t.hitch(this,"_handleOnBindingChanged"),!0))},cancelCurrentSequence:function(){this._currentStrokes=[],this._state=r.STATUS_ENUM.INVALID_START_OF_SEQUENCE},getCompleteSequence:function(){return this._state!==r.STATUS_ENUM.COMPLETE_MATCH?(n.error("The current shortcut sequence should be complete."),""):this._getShortcutSequence()},getPotentialSequences:function(){return this._state!==r.STATUS_ENUM.PARTIAL_MATCH?(n.error("The current shortcut sequence should be in progress."),[]):Object.keys(this._sequenceToStrokesMap).filter((function(e){var t=this._sequenceToStrokesMap[e];return this._isPartialMatch(this._currentStrokes,t)}),this)},applyKeyStroke:function(e){if(this._shouldStartNewSequence()){if(this._currentStrokes=[],1===e.length)return this._state=r.STATUS_ENUM.INVALID_START_OF_SEQUENCE,this._state;if(this._keyboardShortcutsModel.doesKeyBindingHaveActions(e))return this._currentStrokes=[e],this._state=r.STATUS_ENUM.COMPLETE_MATCH,this._state}return this._currentStrokes.push(e),this._isFullMatch()?this._state=r.STATUS_ENUM.COMPLETE_MATCH:this._isStartOfMultiStroke()?this._state=r.STATUS_ENUM.PARTIAL_MATCH:1===this._currentStrokes.length?this._state=r.STATUS_ENUM.INVALID_START_OF_SEQUENCE:this._state=r.STATUS_ENUM.INVALID_MIDDLE_OF_SEQUENCE,this._state},getState:function(){return this._state},_shouldStartNewSequence:function(){return this._state!==r.STATUS_ENUM.PARTIAL_MATCH},_getShortcutSequence:function(){return this._currentStrokes.join(r.SEQUENCE_SEPARATOR)},_isStartOfMultiStroke:function(){return Object.keys(this._sequenceToStrokesMap).some((function(e){var t=this._sequenceToStrokesMap[e];return this._isPartialMatch(this._currentStrokes,t)}),this)},_isPartialMatch:function(e,t){return e.every((function(e,i){return e===t[i]}))},_isFullMatch:function(){var e=this._getShortcutSequence();return void 0!==this._sequenceToStrokesMap[e]},_handleOnBindingChanged:function(e,t,i){if(0===i.length&&delete this._sequenceToStrokesMap[e],0===t.length){var n=e.split(r.SEQUENCE_SEPARATOR_REGEX);n.length>1&&(this._sequenceToStrokesMap[e]=n)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(616)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._enabled=!0},contributeToContextMenu:function(){return this._enabled?this.inherited(arguments):{}},enable:function(){this._enabled=!0},disable:function(){this._enabled=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{OUTPUT_TYPE:"symbolic",CSS_TAG:"embeddedOutputsSymbolicElement"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{OUTPUT_TYPE:"text",CSS_TAG:"embeddedOutputsTextElement"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(356),i(204),i(208),i(212),i(211),i(213),i(614),i(257),i(477),i(527),i(1428),i(234),i(249),i(260),i(237),i(469),i(2061),i(2062),i(2063)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){return e(v,{_NODES_ARE_IN_ORDER:1,constructor:function(e,t,i,s,l,c,d,u){this._view=e,this._cursor=t,this._internalDocument=i,this._outputsModel=s,this._syntaxErrorHandler=l,this._focusService=c,this._hiddenNodeModel=u,this._outputDivs={},this._gestureDetector=null,this._deletedNodes=[],this._gestureDeferred=new r,this._lineMap={},this._cacheDiv=a.create("div"),this.own(o.after(this._internalDocument,"onNodeChange",n.hitch(this,"_onNodeChange"),!0)),this.own(o.after(this._internalDocument,"onDocumentChanged",n.hitch(this,"_handleOnDocumentChanged"),!0)),this.own(o.after(this._internalDocument,"onDocumentReset",n.hitch(this,"_handleOnDocumentReset")))},setup:function(e){this._viewModel=e},enable:function(e){this._gestureDeferred.then(n.hitch(this,(function(){this._enableGestureHandling()}))),this._enabled=!0},disable:function(){this._disableGestureHandling(),this._removeOutputs(),this._enabled=!1},_onNodeChange:function(e){var t;if(e.type===_.MERGE_NODE){var i=e.node,n=e.newNode;if((t=this.getOutputsForNode(i))&&t.length>0){this._cacheOutputs(t);var o=this.getOutputsForNode(n);o=m.nodesInOrder(i,n)===this._NODES_ARE_IN_ORDER?t.concat(o):o.concat(t),this._outputDivs[n.uid]=o,this._outputDivs[i.uid]=null}}e.type===_.SPLIT_NODE&&1===e.lineStartOrEnd&&(t=this.getOutputsForNode(e.node))&&t.length>0&&(this._outputDivs[e.newNode.uid]=t,this._outputDivs[e.node.uid]=null),e.type===_.DELETE_NODE&&e.nodes.forEach(e=>{(t=this.getOutputsForNode(e))&&t.length>0&&this._deletedNodes.push(e)})},getOutputsForNode:function(e){return this.isEnabled()&&this._outputDivs[e.uid]||[]},_cacheOutputs:function(e){for(var t=0;t<e.length;t+=1)this.cacheOutput(e[t])},cacheOutput:function(e){a.place(e,this._cacheDiv)},_handleOnDocumentChanged:function(e){if(this._deletedNodes.length>0)return this._deletedNodes=[],void this.layout(!1);g.hasEventType(e,f.FORMAT_CHANGE_EVENT)&&this.layout(!1)},_handleOnDocumentReset:function(){this._enabled&&(this._disableGestureHandling(),this._enableGestureHandling())},_disableGestureHandling:function(){this._gestureDetector&&(this._gestureDetector.destroy(),this._gestureDetector=null)},_enableGestureHandling:function(){this._gestureDetector||(this._gestureDetector=new d(this._view.getNodeBox(this._internalDocument.root)),this._addGestureHandlers(this._gestureDetector))},_addGestureHandlers:function(e){e.add([u.tapmove({options:{numTaps:0,button:h.RIGHT},callbacks:{began:n.hitch(this,(function(e,i){var n=e.srcEvent;null!==this._viewModel.getOutputWrapperFromElement(n.target)&&"mouse"===n.pointerType&&(t.stop(n),this.onOutputClicked(n.target,!0))}))}}),u.tapmove({options:{numTaps:0,button:h.LEFT},callbacks:{began:n.hitch(this,(function(e,i){var n=e.srcEvent;null!==this._viewModel.getOutputWrapperFromElement(n.target)&&"A"===n.target.tagName&&"mouse"===n.pointerType&&t.stop(n)}))}})])},layout:function(e,t,i){this.isEnabled()&&(this._updateLineMap(),this._updateOutputs(e,t),this._view.onLayoutChange(),this.redrawRTCView(i))},_updateLineMap:function(){this._lineMap={},this._outputsModel.getRegions().forEach((function(e){var t=y.findLastLineNode(e.code.regionPositions);t&&e.code.regionPositions.forEach((function(e){var i=e.getNode();this._lineMap[i.uid]=t}),this)}),this)},_updateOutputs:function(e,t){var i=this._updateOutputMap(),n=y.getLineNodesToUpdate(t,i,this._outputDivs,this._internalDocument);n.forEach((function(e){var t=this._view.getNodeBox(e),i=b.isFullyHidden(this._hiddenNodeModel,e,this.getOutputsForNode(e));t&&i||!t&&!i?this._view.layoutNode(e):this._view.refreshNode(e)}),this),e&&this._fadeInOutputs(n)},_updateOutputMap:function(){var e={};return Object.keys(this._outputDivs).forEach((function(t){e[t]=this._outputDivs[t]}),this),this._outputDivs=this._buildOutputMap(),e},createOutputDivsFromOutputs:function(){var e=a.create("div",{className:"inlineElement eoOutputWrapper"});return e.addEventListener("click",n.hitch(this,(function(e){this.onOutputClicked(e.target)}))),e.addEventListener("mouseup",n.hitch(this,"_handleMouseUp")),e},_handleMouseUp:function(e){c.isMiddle(e)&&this._focusService.setFocus()},startupOutputsForNode:function(e){var t=this.getOutputsForNode(e);this._viewModel.startupOutputsForOutputDivs(t)},startup:function(){this._gestureDeferred.resolve(),this.inherited(arguments)},_buildOutputMap:function(){var e={},t=0;return this._viewModel.getOutputDivs().forEach((function(i){var n=this._findNodeToDisplayOutput(i);if(n){var o="output_"+t;i.setAttribute("data-testid",o),t++,e[n.uid]||(e[n.uid]=[]),e[n.uid].push(i)}}),this),e},_findNodeToDisplayOutput:function(e){var t,i=this._viewModel.getOutputFromOutputDiv(e);if(this._syntaxErrorHandler.isSyntaxError(i))return t=i.codeLinePositions[i.codeLinePositions.length-1].getNode(),p.isCodeContainer(t,!0)?t:null;for(var n=i.codeLinePositions.length-1;n>=0;n--){t=i.codeLinePositions[n].getNode();var o=this._lineMap[t.uid];if(o)return o}return null},_fadeInOutputs:function(e){var t=this._getOutputsToAnimateByLines(e);t.forEach((function(e){s.set(e,"opacity","0")}));var n=t.map((function(e){return i.fadeIn({node:e})}),this);l.combine(n).play()},_getOutputsToAnimateByLines:function(e){var t=[];return e.forEach((function(e){var i=this.getOutputsForNode(e);t=t.concat(this._getOutputsToAnimateByElements(i))}),this),t},_getOutputsToAnimateByElements:function(e){var t=this._getAnimationBuffer();return e.filter((function(e){return!this._view.isElementOutOfView(e,t)}),this)},_getAnimationBuffer:function(){var e=this._view.getDomTargetPosition();return{left:0,right:0,top:e.clientHeight/2,bottom:e.clientHeight/2}},_removeOutputs:function(){for(var e=p.getCodeLineNodes(this._internalDocument),t=0;t<e.length;t+=1){var i=e[t];this.getOutputsForNode(i).length&&this._clearOutput(i)}},_clearOutput:function(e){this._outputDivs[e.uid]=null,this._view.layoutNode(e)},destroy:function(){this._removeOutputs(!1),this._view.onLayoutChange(this._cursor.position),this._disableGestureHandling(),a.destroy(this._cacheDiv),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{ACTION_ID:"actionId",ACTION_ID_NO_ANIMATION:"actionIdNoAnimation",BUTTON_CSS_CLASS:"buttonClass",DATATEST_ID:"dataTestId",TOOLTIP_MESSAGE:"tooltipMessage",constructor:function(e,t){this._rtcView=e,this._cursor=t},setup:function(){},destroy:function(){this.inherited(arguments)},enable:function(){throw new Error("Unimplemented API: enable")},disable:function(){throw new Error("Unimplemented API: disable")},isEnabled:function(){return this._enabled},startup:function(){},onOutputClicked:function(e,t){},onOutputContextMenuClose:function(e){},getName:function(){throw new Error("Unimplemented API: getName")},layout:function(){throw new Error("Unimplemented API: layout")},outputStyleChanged:function(e,t,i){this.redrawRTCView(!1)},redrawRTCView:function(e){var t=e?this._cursor.position:null;this._rtcView.onLayoutChange(t)},disableView:function(){},getFallbackView:function(){throw new Error("Unimplemented API: getFallbackView")},getRequiresRelease:function(){return""},isEnableable:function(){return!0},shouldUpdateNodeGroupingName:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{isFullyHidden:function(e,t,i){return e.isHidden(t)||this._areAllChildNodesHidden(e,t)&&0===i.length},configureLineBoxForViewState:function(e,t,i){this._areAllChildNodesHidden(e,t)&&(i.style.display="none")},_areAllChildNodesHidden:function(e,t){return!t.children.some((function(t){return!e.isHidden(t)}),this)},updateNodeGroupingName:function(e,t,i,n){if(i.setGroupingName(),e.shouldUpdateNodeGroupingName()){var o=this._getVisibleChildNodes(t,i),r=o.length,a=n.length;if(0!==r||0!==a)if(0!==r||1!==a)if(1!==r||0!==a){if(0===r&&a>1){for(var s=!1,l=1;l<a&&(s=n[l].className===n[l-1].className);l++);if(s)return void i.setGroupingName(n[0].className)}if(r>1&&0===a){var c=!1;for(l=1;l<r&&(c=this._canChildNodeBeFlowed(o[l])&&this._canChildNodeBeFlowed(o[l-1])&&o[l].getType()===o[l-1].getType());l++);if(c)return void i.setGroupingName(o[0].className+o[0].getType())}i.setGroupingName("noflow")}else this._canChildNodeBeFlowed(o[0])?i.setGroupingName(o[0].className+o[0].getType()):i.setGroupingName("noflow");else i.setGroupingName(n[0].className);else i.previousSibling()?i.setGroupingName(i.previousSibling().groupingName,!0):i.setGroupingName(i.uid)}},_getVisibleChildNodes:function(e,t){return t.children.filter((function(t){return!e.isHidden(t)}))},_canChildNodeBeFlowed:function(e){return!!e.getType}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(234)],o=i.dj.d(n,(function(e){return{findLastLineNode:function(t){for(var i=t.length-1;i>=0;i--){var n=t[i].getNode();if(e.isCodeContainer(n,!0))return n}return null},getLineNodesToUpdate:function(t,i,n,o){return e.getCodeLineNodes(o).filter((function(e){return t&&this._hasVisibleOutputs(e,n)||this._areOutputsForLineDifferent(e,i,n)}),this)},_hasVisibleOutputs:function(e,t){return(t[e.uid]||[]).length>0},_areOutputsForLineDifferent:function(e,t,i){var n=e.uid,o=t[n]||[],r=i[n]||[];return o.length!==r.length||!o.every((function(e,t){return e===r[t]}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(323),i(2065),i(2062)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{constructor:function(e,t,i,n){this._hiddenNodeModel=t,this._currentView=i,this._view=n},getApplicableNodeClass:function(){return n},createDomNode:function(e,t){this._cacheOutput(t);var i=this._getOutputDivs(t);return r.updateNodeGroupingName(this._currentView,this._hiddenNodeModel,t,i),r.isFullyHidden(this._hiddenNodeModel,t,i)?(e.removeAndDisconnectNode(t),null):this.layout(e,t)},layout:function(e,t){var n=this._getOutputDivs(t),o=e.layoutInto(t,"div",{class:this._getCSSStyle(e,t)});r.configureLineBoxForViewState(this._hiddenNodeModel,t,o);var a=i.create("div",{class:"inlineWrapper"});if(i.place(o,a,"last"),n&&n.length>0){var s=this._getOutputBox(n);a=this._updateOutputs(a,s)}return r.updateNodeGroupingName(this._currentView,this._hiddenNodeModel,t,n),a},refresh:function(e,i,n){this._cacheOutput(i),this.inherited(arguments);var o=n.parentElement,a=this._getOutputDivs(i);if(a&&a.length>0){var s=this._getOutputBox(a),l=this._isElementOutputParagraph(o.lastChild);this._updateOutputs(o,s,l)}else t.remove(o,"outputs");return r.updateNodeGroupingName(this._currentView,this._hiddenNodeModel,i,a),null},postLayout:function(e){this._currentView.startupOutputsForNode(e)},_cacheOutput:function(e){var t=this._view.getNodeBox(e);if(t&&t.parentElement){var i=this._getLastChildOfParent(t);this._isElementOutputParagraph(i)&&this._currentView.cacheOutput(i)}},_getLastChildOfParent:function(e){return e.parentElement.lastChild},_isElementOutputParagraph:function(e){return e.className.indexOf("outputParagraph")>=0},_getOutputDivs:function(e){return this._currentView.getOutputsForNode(e)},_getOutputBox:function(e){var t,n=i.create("div",{class:"outputParagraph"});for(t=0;t<e.length;t+=1){var o=e[t];i.place(o,n,"last")}return n},_updateOutputs:function(e,n,o){return t.add(e,"outputs"),o?e.replaceChild(n,e.lastChild):i.place(n,e,"last"),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(266),i(323),i(391)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t){this._layerViewModel=e,this._hiddenNodeModel=t},getApplicableNodeClass:function(){return i},layout:function(e,t){return e.layoutInto(t,"div",{class:this._getCSSStyle(e,t)})},refresh:function(e,t,i){return i.className=this._getCSSStyle(e,t),null},_getCSSStyle:function(e,i){var n="lineNode mwRichTextComponentLine",o=new t(i.startPosition(),i.endPosition()),r=this._layerViewModel.getLayerDecoratorsLineNodeCSSForRange(o);return r.length>0&&(n+=" "+r),e.fixedSize&&(n+=" plainTextFixedSize"),i.readOnly&&(n+=" readonly"),i.cssClass&&(n+=" "+i.cssClass),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{canUpdateCode:function(e){throw new Error("canUpdateCode must be overridden")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(211),i(210),i(257),i(270),i(2061)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(s,{constructor:function(e,n,o,r,a,s,l,c,d,u,h,p,f,g,m){this._rtcView=e,this._cursor=n,this._cursorView=o,this._focusService=r,this._actionService=a,this._contextMenuGenerator=s,this._stateHandler=l,this._internalDocument=c,this._cursorController=d,this._parentBorderContainer=u,this._viewModel=h,this._splitterPositionController=p,this._rightPanel=f,this._currentElementManager=g,this._nodeRangeRetriever=m,this._rightClickedOutput=null,this._isInDom=!1,this.own(i.after(s,"willOpen",t.hitch(this,"_handleContextMenuOpen"),!0)),this.own(i.after(s,"onClose",t.hitch(this,"_handleContextMenuClose"))),this.own(i.after(this._nodeRangeRetriever,"onNodeRangeUpdated",t.hitch(this,"_handleNodeRangeUpdated"))),this._enabled=!1},setup:function(e,i){this._scrollableOutputStyler=i,this._outputScrollPane=this._rightPanel.getScrollPane(),this._outputScrollPane.addEventListener("click",t.hitch(this,"_setFocus")),this._outputScrollPane.addEventListener("mouseup",t.hitch(this,"_handleMouseUp")),this._outputScrollPane.addEventListener("mousedown",t.hitch(this,"_handleMouseDown"))},enable:function(e){this._currentElementManager.enable(),this._splitterPositionController.enable();var t=this._rightPanel.show(e);return this._enabled=!0,t},disable:function(e){this._currentElementManager.disable(),this._splitterPositionController.disable();var t=this._rightPanel.hide(e);return this._enabled=!1,t},_setFocus:function(e){var t=this._viewModel.getOutputWrapperFromElement(e.target);if(t){var i=this._viewModel.getOutputFromOutputDiv(t);"figure"===i.type&&i._figureProxy&&i._figureProxy.figureView.isFigureEmbedded?this._cursorController.show(!0,!1):this._focusService.setFocus()}else this._focusService.setFocus()},createOutputDivsFromOutputs:function(e){var i=n.create("div",{className:"rightPaneElement eoOutputWrapper"}),o=e[e.length-1],r=t.hitch(this,"_handleClick",o);return i.addEventListener("click",r),i},_handleClick:function(e,t){if(!t.target||"A"!==t.target.tagName){var i=t.currentTarget;this._moveCursorToOutputAndEmitEvent(e,i)}},_moveCursorToOutputAndEmitEvent:function(e,t,i=!1){this.onOutputClicked(t,i)},_handleMouseUp:function(e){r.isMiddle(e)&&this._focusService.setFocus()},_handleMouseDown:function(){this._rightClickedOutput&&this._emitContextMenuCloseEvent()},_handleContextMenuOpen:function(e,t){var i=this._viewModel.getOutputWrapperFromElement(t);if(i){var n=this._viewModel.getOutputFromOutputDiv(i);if(n){this._rightClickedOutput=i;var o=n.codeLinePositions[n.codeLinePositions.length-1];this._moveCursorToOutputAndEmitEvent(o,i,!0)}}},_handleContextMenuClose:function(){this._rightClickedOutput&&this._emitContextMenuCloseEvent()},_emitContextMenuCloseEvent:function(){this._rightClickedOutput&&(this.onOutputContextMenuClose(),this._rightClickedOutput=null)},_handleNodeRangeUpdated:function(){this._enabled&&this.layout(!1,!1,!1)},layout:function(e,t,i){if(!t){var n=this._createOutputPane(),o=this._getOutputDivsForOutputPane();this._addOutputsToOutputPane(o,n),this._rightPanel.replaceContent(n),this._postProcessOutputs(o),this.redrawRTCView(i)}},_createOutputPane:function(){return n.create("span",{className:"outputContentPane"})},_getOutputDivsForOutputPane:function(){var e=this._nodeRangeRetriever.getNodeRange();return e?this._viewModel.getOutputDivsForRange(e.start,e.end):this._viewModel.getOutputDivs()},_addOutputsToOutputPane:function(e,t){e.forEach((function(e,i){var o="output_"+i;e.setAttribute("data-testid",o),n.place(e,t,"last")}),this)},_postProcessOutputs:function(e){this._isInDom&&this._viewModel.startupOutputsForOutputDivs(e)},startup:function(){if(!this._isInDom){this._isInDom=!0;var e=this._getOutputDivsForOutputPane();this._postProcessOutputs(e)}this.inherited(arguments)},disableView:function(){this.disable(),this._outputScrollPane=null},destroy:function(){this._rightPanel.hide(),this._outputScrollPane=null,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{getComponents:function(){throw new Error("Unimplemented method : getComponents")}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="liveAppInlineWidget" tabindex="-1">\n <div class="liveAppToolButtons" data-dojo-attach-point="toolButtonsContainer">\n <div class="liveAppToolButton liveAppAutorunButtonContainer" data-dojo-attach-point="autorunButtonContainer"></div><div class="liveAppToolButton liveAppHelpButtonContainer" data-dojo-attach-point="helpButtonContainer"></div><div class="liveAppToolButton liveAppOptionsMenuButtonContainer" data-dojo-attach-point="optionsMenuButtonContainer"></div>\n </div>\n <div class="liveAppSummary" data-dojo-attach-point="summaryContainer">\n <div class="liveAppSummaryName" data-dojo-attach-point="appName"></div>\n <div class="liveAppSummaryDescription" data-dojo-attach-point="appDescription">\n <span class="liveAppSummaryVariables" data-dojo-attach-point="appVariables"><span class="liveAppSummaryVariablesList liveAppCodeStyle" data-dojo-attach-point="appVariablesList"></span></span><span class="liveAppSummaryOperation" data-dojo-attach-point="appOperation"></span>\n </div>\n </div>\n <div class="liveAppUIFigure" data-dojo-attach-point="uifigureContainer"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(215)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._initialized=!1},isInitialized:function(){return this._initialized},initialize:function(){this._initialized=!0},resize:function(){},hide:function(){},show:function(){},isHidden:function(){return!1},isEventFromInnerControl:function(e){return!1},findTabbableElements:function(){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(2069),i(339),i(730)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return n([t,e,i],{templateString:o,constructor:function(e){this._configureBusyIndicator()},_configureBusyIndicator:function(){this._busyIndicator=new r(r.SIZE.SMALL)},updateView:function(){},setActive:function(e){e?this.domNode.classList.add("active"):this.domNode.classList.remove("active")},setBusy:function(e){e?(this.domNode.classList.add("initializing"),this._busyIndicator.set("target",this.domNode),this._busyIndicator.show()):(this.domNode.classList.remove("initializing"),this._busyIndicator.hide())},isBusy:function(){return this.domNode.classList.contains("initializing")},setDisabled:function(e){e?this.domNode.classList.add("disabled"):this.domNode.classList.remove("disabled")},focus:function(){this.domNode.focus()},resize:function(){},addDownHandler:function(e,t){this.own(a.addEventListenerWithHandle(this.domNode,a.DOWN_EVENT,e,t))},addKeydownHandler:function(e){this.on("keydown",e)},isEventFromInnerControl:function(e){return!1},findTabbableElements:function(){return[]},close:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},preventSwitchingViewForDocChange:function(){return!1},preventSwitchingViewForCursorChange:function(){return!1},requireSwitchingViewForDocChange:function(){return!1},priority:function(){throw new Error("Unimplemented API: HideCodeView.switchviewrules.priority")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(731),i(822)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(919),i(390)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e,t){if(!e||!e.isValid())throw new Error("MW.rtc.plugins.insertionrules.receivinginstructions.UseTopLevelRuleAtPosition: Invalid position");if(void 0!==t&&t!==i.RELATION.BEFORE&&t!==i.RELATION.AFTER)throw new Error("MW.rtc.plugins.insertionrules.receivinginstructions.UseTopLevelRuleAtPosition: Invalid preferred relation to position");this._type=i.RECEIVING_INSTRUCTION.USE_TOP_LEVEL_RULE_AT_POSITION,this._position=e,this._preferredRelationToPosition=t},getPosition:function(){return this._position},getPreferredRelationToPosition:function(){return this._preferredRelationToPosition}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(270),i(500),i(944),i(822)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e){},getApplicableNodeClass:function(){return o},getCoordinateFromPosition:function(e){var t=e.getNode(),i=e.getOffset(),n=this._getCoordinateFromDomNode(t.getWidget().domNode,i);return this._getCoordinateForInlineNode(e,n)},_getCoordinateForInlineNode:function(e,t){return t.height+=1,0===e.getOffset()&&(t.x-=1,t.pageX-=1),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(822),i(391)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t){this._liveAppViewModel=e,this._hiddenNodeModel=t},getApplicableNodeClass:function(){return t},layout:function(e,t){var i=e.layoutInto(t,"div");return i=this._liveAppViewModel.createInlineDomNode(t,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(5145)],o=i.dj.d(n,(function(e){var t=null;return{getInstance:function(){return null===t&&(t=new e),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{getWorkspaceDropdownWidget:function(){throw new Error("Unimplemented API: getWorkspaceDropdownWidget")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(414),i(496)],o=i.dj.d(n,(function(e,t){return{createContextFromWidget:function(t,i){let n={};return n.data=e.getData(i,t.getDataProperties()),t.getType()&&(n.type=t.getType()),n},shouldUpdate:function(e,t,i){if(e.getText()!==i)return!0;var n=this.createContextFromWidget(e,t);return!e.isContextEqualTo(n)},getUndoRedoBlockType:function(e){return e.shouldDeleteIfEmpty()&&" "===e.getText()?t.AUTO:null}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(1140),i(501)],o=i.dj.d(n,(function(e,t,i){var n={SINGLE:"'",DOUBLE:'"',NONE:""},o=e.mixin(i,{findValueToSet:function(e,t){var i=!1;if(0===e.length)t="";else if(e.forEach((function(e){e.value===t&&(i=!0)})),!i)return e[0].value;return t},createItemsToSet:function(e){var t=[];return e.forEach((function(e,i){e&&t.push({label:e,value:e})})),t},getItemLabels:function(e){return e.map((function(e){return e.label}))},getItemValues:function(e){return e.map((function(e){return e.value}))},getItemForNode:function(e,t,i){for(var n=e.getChildren(),o=null,r=0;r<n.length;r++)if(n[r].contains(i)){o=t[r];break}return o},generateTargetElements:function(e,t,i,n,o){i=this._handleEmptyTargetValue(i);var r=t.length,a=i.length;return r===a?i:i=r>a?this._addTargetElements(e,t,n,i,o):this._deleteTargetElements(e,t,i)},getLinkedVariableValuesAccessCode:function(e,t){return t.map((t,i)=>e+"("+(i+1)+")")},_handleEmptyTargetValue:function(e){return 1!==e.length||e[0]?e:[]},_modifyTargetValue:function(e,t,i){return"itemLabels"===e?t=this.modifyItems(t):"codeItems"===e&&(t=this._modifyCodeItems(t,i)),t},modifyItems:function(e){(t.hasSurroundingDoubleQuotes(e)||t.hasSurroundingSingleQuotes(e))&&(e=i.hasDelimiter(e)?e:e.substr(1,e.length-2));return e},_modifyCodeItems:function(e,i){return(t.hasSurroundingDoubleQuotes(e)||t.hasSurroundingSingleQuotes(e))&&this._hasValidPairOfQuotes(e,i)||(e=t.convertToMatlabString(e,i),i&&(e=i===n.DOUBLE?t.wrapValueWithDoubleQuotes(e):t.wrapValueWithSingleQuotes(e))),e},_hasValidPairOfQuotes:function(e,t){var i=new RegExp(t,"g"),n=e.match(i);return!n||n.length/2%2!=0},_deleteTargetElements:function(e,t,i){var n=[];if(t.forEach((function(t){var i=e.indexOf(t);n.push(i)})),-1!==n.indexOf(-1)){var o=t.length,r=e.length;i.splice(o,r-o+1)}else i=i.filter((function(e,t){return-1!==n.indexOf(t)}));return i},_findNewElementsAddedToSource:function(e,t){var i=[];return t.forEach((function(n,o){if(-1===e.indexOf(n)){var r={};r.index=o,r.value=t[o],i.push(r)}})),i},_addTargetElements:function(e,t,i,n,o){var r=this._findNewElementsAddedToSource(e,t),a=e.filter((function(e){return-1===t.indexOf(e)}));if(a.length===e.length)r=r.slice(n.length);else if(0!==a.length){var s=a.map((function(t){return e.indexOf(t)}));r=r.filter((function(e){var t=e.index;return-1===s.indexOf(t)}))}return r.forEach((function(e){var t=e.index,r=e.value;r=this._modifyTargetValue(i,r,o),n.splice(t,0,r)}),this),n},getQuoteTypeFromItemValues:function(e){if(0===this._handleEmptyTargetValue(e).length)return n.DOUBLE;var i=e.filter((function(e){return t.hasSurroundingSingleQuotes(e)})),o=e.filter((function(e){return!t.hasSurroundingQuotes(e)})).length===e.length,r=i.length===e.length;return o?n.NONE:r?n.SINGLE:n.DOUBLE}});return o.QUOTE_TYPES=n,o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(232)],o=i.dj.d(n,(function(e,t,i){const n=/(^[0-9]+)[^0-9]([0-9]+$)/;return e(null,{_WORKSPACE_INFO_REQUEST_ID:"GetWhos",_DEFAULT_LINKED_VARIABLE_CHOICE:"",_setWorkspaceVariablesAttr:function(e){e=this._getFilteredWorkspaceVariables(e),this._set("workspaceVariables",e),this._handleWorkspaceVariableUpdate()},_getFilteredWorkspaceVariables:function(e){return e.filter(e=>this._filteringCallback(e))},_linkedVariableExists:function(e){let t=this.get("workspaceVariables");return!!t&&t.some(t=>t.Name===e)},_isDefaultLinkedVariableChoice:function(e){return e===this._DEFAULT_LINKED_VARIABLE_CHOICE},_getLinkedVariableValue:function(e,t,n){let o=this.get("workspaceVariables");o.some(r=>{if(r.Name===e){let r={FEval:{function:"matlab.internal.codingui.getWorkspaceVariableDetails",arguments:[o,e],nargout:1}};return i.registerResponseHandler("FEvalResponse:"+this._WORKSPACE_INFO_REQUEST_ID+":"+n,t,this),i.sendMessage(r,{},this._WORKSPACE_INFO_REQUEST_ID+":"+n),!0}})},_isVariableOfType:function(e,t){return e.Class===t},_isVariableValueNaN:function(e){return!!this._isVariableOfType(e,"double")&&"NaN"===e.Value},_isVariableDetailSummary:function(e){return e.IsSummary},_getVariableSizeDimensions:function(e){let t=e.Size.split(n);return{row:parseFloat(t[1]),col:parseFloat(t[2])}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(501),i(215)],o=i.dj.d(n,(function(e,t,i){return e(null,{_isInDefaultState:!0,_DEFAULT_PROPERTY:"defaultValue",_setDefaultValueAttr:function(e){if((e=this._getValidDefaultValue(e))!==this.get("defaultValue")){if(this._set("defaultValue",e),this.configPanel&&this.configPanel.domNode){let e=this._getPropertyContent();t.updateConfigPanelPropertyValue(this.configPanel,"defaultValue",e.defaultValue)}this._isInDefaultState&&this._setControlValueToDefault(e)}},_updateDefaultState:function(){this.value!==this.defaultValue&&(this._isInDefaultState=!1)},_setInitialDefaultValue:function(){null==this.get("defaultValue")&&this.set("defaultValue",this.get("value"))},_setInitialDefaultState:function(){this._isInDefaultState=this.value===this.defaultValue},_getValidCustomValue:function(e){return e},_handleDefaultValueChange:function(e){this._userEnteredPropertyData.defaultValue=e;let t=this._getValidCustomValue(e);null!==t?e=t:(e=this.get("defaultValue"),this._updateConfigPanelPropertyValues("defaultValue")),this.set("defaultValue",e)},_updateConfigPanelPropertyValues:function(e){let i=this._propertyToDisplayInConfigPanel(e);this._userEnteredPropertyData[e]=i,t.updateConfigPanelPropertyValue(this.configPanel,e,i)},_getValidDefaultValue:function(e){return e},_setControlValueToDefault:function(e){this.set("value",e)},_handlePropertyChange:function(e,t){"defaultValue"===e?this._handleDefaultValueChange(t):this.set(e,t)},restoreDefaultValue:function(){let e=this.get("defaultValue"),t=this.get("value");this._setControlValueToDefault(e),this._isInDefaultState=!0,t!==e&&this.childWidget._triggerChangeEvent("value",t,e)},isControlResetAllowed:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(217),i(225),i(2084),i(1142),i(1473),i(486)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(o,{baseClass:"mwWidget mwSlider mwHorizontalSlider",disabled:!1,width:200,height:3,value:0,majorTicks:[],minorTicks:[],majorTickLabels:[],minimum:0,maximum:100,_mousePixelCoord:"clientX",_pixelCount:"w",_startingPixelCoord:"x",_thumbPositionParam1:"width",_thumbPositionParam2:"left",_isScaleDirectionReverse:!1,orientation:"horizontal",getRuleConstructor:function(){return r},getRuleLabelConstructor:function(){return a},_setWidthAttr:function(e){this.inherited(arguments),t.set(this.containerNode,{width:e+"px"})},_updateVisual:function(){this.width>0&&this.height>0?(t.set(this.sliderTrackNode,{display:"block"}),t.set(this.containerNode,{display:"block"})):(t.set(this.sliderTrackNode,{display:"none"}),t.set(this.containerNode,{display:"none"}))},postCreate:function(){this.inherited(arguments),this.own(this.watch("width",this._adjustThumbPosition.bind(this)))},startup:function(){this.inherited(arguments),this.resize();var e={deprecated:{module:"mw-slider/HorizontalSlider"},removalVersion:"R2022b",replacement:{module:"mw-slider/Slider"},geckNumber:2463450,deprecationLevel:s.WARN};s.deprecated(e)},resize:function(){this._adjustLabelContainerPositioning(),this.inherited(arguments)},_setMajorTickLabelsAttr:function(e){this.inherited(arguments),this._adjustLabelContainerPositioning()},_adjustLabelContainerPositioning:function(){window.requestAnimationFrame(this._centerLabelsAndComputePreferredSize.bind(this))},_centerLabelsAndComputePreferredSize:function(){this.majorTickLabelDijit&&(n(".mwRuleLabelContainerH",this.majorTickLabelDijit.domNode).forEach((function(e){var n=i.position(e).w/2*-1;t.set(e,"margin-left",n+"px")})),this.sliderThumbNode&&this.computePreferredSize())},_computePreferredWidth:function(){var e,t,n=i.position(this.sliderTrackNode),o=Math.min(n.x-this.sliderThumbSize.w/2,this.sliderThumbSize.x),r=Math.max(n.x+n.w+this.sliderThumbSize.w/2,this.sliderThumbSize.x+this.sliderThumbSize.w);return this._majorTickLabelsPosition=this._computePreferredSizeOfMajorTickLabels(),null!==this._majorTickLabelsPosition?(e=Math.min(this._majorTickLabelsPosition.x,o),t=Math.max(this._majorTickLabelsPosition.x+this._majorTickLabelsPosition.w,r)):(e=o,t=r),t-e},_computePreferredX:function(){var e=this._adjustTrackAndContainerOffset();return this.location[0]-e},_computePreferredHeight:function(){var e,t=this._getDomNodeOfWidgetAtEnd(),n=this.sliderThumbSize.y;return t?(null!==this.majorTickLabelDijit&&t===this.majorTickLabelDijit.domNode?this._bottomWidgetPosition=null!==this._majorTickLabelsPosition?this._majorTickLabelsPosition:this._computePreferredSizeOfMajorTickLabels():this._bottomWidgetPosition=i.position(t),e=this._bottomWidgetPosition.y+this._bottomWidgetPosition.h):e=this.sliderThumbSize.y+this.sliderThumbSize.h,e-n},_computePreferredY:function(){var e,t=i.position(this.sliderTrackNode);return this._bottomWidgetPosition?(e=this._bottomWidgetPosition.y-t.y-t.h+this._bottomWidgetPosition.h,this._bottomWidgetPosition=null):e=this.sliderThumbSize.h/3,this.location[1]-e},_computePreferredSizeOfMajorTickLabels:function(){var e=null;if(this.majorTickLabelDijit){var t=n(".mwRuleLabel",this.majorTickLabelDijit.domNode),o=[],r=-1*Number.MAX_VALUE,a=0,s=Number.MAX_VALUE;t.forEach((function(e){var t=i.position(e);t.y>r&&(r=t.y),t.x<s&&(s=t.x),t.h>a&&(a=t.h),o.push(t.x+t.w)})),e={w:Math.max.apply(null,o)-s,h:a,y:r,x:s}}return e},_adjustTrackAndContainerOffset:function(){var e=n(".mwRuleLabel",this.containerNode),o=i.position(this.sliderTrackNode),r=Math.max(this.sliderThumbSize.w/2,o.x-this.sliderThumbSize.x);if(0!==e.length){for(var a=[],s=0;s<e.length;s++){var l=e[s];a[s]=i.position(l).x}var c=Math.min.apply(null,a);c<Math.min(o.x-this.sliderThumbSize.w/2,this.sliderThumbSize.x)&&(r=o.x-c)}return t.set(this.sliderTrackNode,{left:r+"px"}),t.set(this.containerNode,{left:r+"px"}),r},getTickLabelTrackLength:function(e){return i.position(this.sliderTrackNode).w}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(213),i(217),i(246),i(572),i(713),i(660),i(248),i(221),i(238),i(215),i(316),i(216),i(307),i(272),i(5228),i(330),i(335),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){var C=e(y.validate([h,p,f,m,v,b,g]),{baseClass:"mwWidget mwSlider",templateString:_,sliderTrackNode:null,sliderThumbNode:null,value:0,maximum:100,minimum:0,THUMB_WIDTH:11,majorTickDijit:null,majorTickLabelDijit:null,minorTickDijit:null,_majorTickLabelsPosition:null,constructor:function(){this.location=[100,100],this.preferredSize={width:0,height:0,left:0,bottom:0},this.minorTicks=[0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100],this.majorTicks=[0,20,40,60,80,100],this.majorTickLabels=["0","20","40","60","80","100"]},_setHeightAttr:function(e){n.set(this.sliderTrackNode,{height:e+"px"}),this._set("height",e),this._updateVisual()},_setWidthAttr:function(e){n.set(this.sliderTrackNode,{width:e+"px"}),this._set("width",e),this._updateVisual()},_updateVisual:function(){},_setOuterWidthAttr:function(e){n.set(this.domNode,{width:e+"px"})},_setOuterHeightAttr:function(e){n.set(this.domNode,{height:e+"px"})},_setLocationAttr:function(e){this._set("location",e)},_setPixelValue:function(e,t){if(!this.disabled&&!this.readOnly){var i=(this.maximum-this.minimum)*(e/t)+this.minimum;i=Math.min(i,this.maximum),i=Math.max(i,this.minimum),this._setValueAttr(i,!0)}},_setValueAttr:function(e,t){t||(this._valueBeforeChange=e),this._set("value",e),this.valueNode.value=e},_setMinimumAttr:function(e){this._set("minimum",e),this._setMajorTicksAttr(this.get("majorTicks")),this._setMinorTicksAttr(this.get("minorTicks")),this._setMajorTickLabelsAttr(this.get("majorTickLabels")),this._updateVisual()},_setMaximumAttr:function(e){this._set("maximum",e),this._setMajorTicksAttr(this.get("majorTicks")),this._setMinorTicksAttr(this.get("minorTicks")),this._setMajorTickLabelsAttr(this.get("majorTickLabels")),this._updateVisual()},_setMajorTicksAttr:function(e){if(this.majorTickDijit&&(this.majorTickDijit.destroy(),this.majorTickDijit=null),this._set("majorTicks",e),e.length>0){var t=this.getRuleConstructor();this.majorTickDijit=new t({class:"mwMajorTickMarks",ticks:this.majorTicks,minimum:this.minimum,maximum:this.maximum,count:this.majorTicks?this.majorTicks.length:3}),this.majorTickDijit.placeAt(this.containerNode)}},_setMinorTicksAttr:function(e){if(this.minorTickDijit&&(this.minorTickDijit.destroy(),this.minorTickDijit=null),this._set("minorTicks",e),e.length>0){var t=this.getRuleConstructor();this.minorTickDijit=new t({class:"mwMinorTickMarks",count:this.minorTicks?this.minorTicks.length:3,ticks:this.minorTicks,minimum:this.minimum,maximum:this.maximum}),this.minorTickDijit.placeAt(this.containerNode)}},_setMajorTickLabelsAttr:function(e){if(this.majorTickLabelDijit&&(this.majorTickLabelDijit.destroy(),this.majorTickLabelDijit=null),this._set("majorTickLabels",e),e.length>0&&e.join("").trim().length>0){var t=this.getRuleLabelConstructor();this.majorTickLabelDijit=new t({class:"mwMajorTickLabels",minimum:this.minimum,maximum:this.maximum,labels:this.majorTickLabels,count:this.majorTickLabels.length,ticks:this.majorTicks}),this.majorTickLabelDijit.placeAt(this.containerNode)}},_onSliderMouseDown:function(e){this.disabled||this.readOnly||void 0!==e.button&&0!==e.button||e.ctrlKey&&d("mac")||(this._sliderTrackDimensions=o.position(this.sliderTrackNode),this._snapValueToTarget(this,e),this._thumbMoveable.onMouseDown(e))},_emitChangeEvent:function(){var e=this.get("value");this._valueBeforeChange!==e&&(this.emit("change",{mwEventData:{propertyName:"value",oldValue:this._valueBeforeChange,newValue:e}}),this._valueBeforeChange=e)},_snapValueToTarget:function(e,t){var i,n,o=t.target;if(this._snapToMajorTick(o))i=this._findChildNode(o),n=e.majorTicks[i],e.set("value",n,!0);else if(this._snapToMajorTickLabel(o))i=this._findChildNode(o.parentNode),n=e.majorTicks[i],e.set("value",n,!0);else if(e._snapToMinorTick(o)){i=this._findChildNode(o);var r=e.minorTicks[i];e.set("value",r,!0)}else{var a=this._sliderTrackDimensions,s=t[e._mousePixelCoord]-a[e._startingPixelCoord];e._isScaleDirectionReverse&&(s=a[e._pixelCount]-s),e._setPixelValue(s,a[e._pixelCount])}},_snapToMajorTick:function(e){return-1!==e.id.indexOf("MajorTickMarks")},_snapToMajorTickLabel:function(e){return-1!==e.id.indexOf("MajorTickLabels")},_snapToMinorTick:function(e){return-1!==e.id.indexOf("MinorTickMarks")},postCreate:function(){this.inherited(arguments);var t=e(C._SliderThumbMover,{widget:this});this._thumbMoveable=new C._SliderThumbMoveable(this.sliderThumbNode,{mover:t}),this.own(this.watch("value",i.hitch(this,"_adjustThumbPosition")),this.watch("minimum",i.hitch(this,"_adjustThumbPosition")),this.watch("maximum",i.hitch(this,"_adjustThumbPosition"))),this._adjustThumbPosition(),this._valueBeforeChange=this.get("value")},resize:function(){this.inherited(arguments),this.computePreferredSize()},_adjustThumbPosition:function(){var e,t=!1,i=100*((this.value-this.minimum)/(this.maximum-this.minimum)-this.THUMB_WIDTH/this[this._thumbPositionParam1]/2);if(this.value<this.minimum){var o=-this.THUMB_WIDTH/this[this._thumbPositionParam1]*100;e=Math.max(o,i),t=!0}else if(this.value>this.maximum){e=Math.min(100,i),t=!0}else e=i;var r=[];r[this._thumbPositionParam2]=e+"%",n.set(this.sliderThumbNode,r),t&&this.computePreferredSize()},computePreferredSize:function(){var e,t;this.sliderThumbSize=o.position(this.sliderThumbNode),t=this._computePreferredWidth(),e=this._computePreferredX();var i={width:t,height:this._computePreferredHeight(),left:e,bottom:this._computePreferredY()};this.set("outerWidth",i.width),this.set("outerHeight",i.height),this.set("preferredSize",i)},_getDomNodeOfWidgetAtEnd:function(){var e;return this.majorTickLabelDijit?e=this.majorTickLabelDijit.domNode:this.majorTickDijit?e=this.majorTickDijit.domNode:this.minorTickDijit&&(e=this.minorTickDijit.domNode),e},_findChildNode:function(e){for(var t=e.parentNode.childNodes,i=0;i<t.length;i++)if(t.item(i)===e)return i;return-1}});return C._SliderThumbMoveable=e(a,{onMouseDown:function(e){if(this.node.focus(),void 0===e.button||0===e.button){if(this.skip&&l.isFormElement(e))return;this.delay?(this.events.push(t(this.handle,c.move,i.hitch(this,"onMouseMove")),t(this.handle.ownerDocument,c.release,i.hitch(this,"onMouseUp"))),this._lastX=e.pageX,this._lastY=e.pageY):this.onDragDetected(e)}}}),C._SliderThumbMover=e(s,{onMouseMove:function(e){var t=this.widget,i=t._sliderTrackDimensions;i||(i=t._sliderTrackDimensions=o.position(t.sliderTrackNode)),t._snapValueToTarget(t,e),this._wasDragged=!0,t.emit("mousedragging")},onMouseUp:function(e){var t=this.widget,i=t._sliderTrackDimensions;i||(i=t._sliderTrackDimensions=o.position(t.sliderTrackNode)),t._snapValueToTarget(t,e),t._emitChangeEvent(),this._wasDragged?(t.emit("mousedragreleased"),this._wasDragged=!1):t.emit("mouseclicked"),this.inherited(arguments)},destroy:function(){var e=this.widget;e._sliderTrackDimensions=null,this.inherited(arguments)}}),C}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(474),i(501)],o=i.dj.d(n,(function(e,t,i){function n(e,t){var i=0,n=o(e),r=o(t);return n&&r?i=Math.max(r,n):(n||r)&&(i=n||r),i}function o(e){var t=1,i=0,n=e;for(e=Math.round(n*t)/t;e!==n;)t*=10,i++,e=Math.round(n*t)/t;return i>17?17:i}return e.mixin(t,i,{findValidSliderValue:function(e,t,i,n){var o=Math.round((e-t)/n),r=(e=o*n+t)>i?o-1:o;return(r=e<t?o+1:r)!==o&&(e=r*n+t),e},findSuitableStepSize:function(e,t,i,n){var r;if(n){var a=t-i,s=this._getMaxLength(a);r=Math.pow(10,s-1)/10}else{var l=o(e);r=1/Math.pow(10,l)}return 0===r&&(r=1),r},checkForNonEmptyDoubleValue:function(e){if(void 0===e)return!1;var t=new RegExp("^[-+]?([0-9]*.?[0-9]+|[0-9]+.?[0-9]*)([eE][-+]?[0-9]+)?$|^$");return this.isScalarWidgetType(e.toString())&&t.test(e)},findSuitablePrecision:n,findMaxCharactersToReserve:function(e,t,i,o){var r=n(i,o),a=0,s=0;if(i%1!=0){var l=e-i;l=parseFloat(l.toFixed(r)),a=this._getMaxLength(l);var c=t+i;c=parseFloat(c.toFixed(r)),s=this._getMaxLength(c)}var d=e?this._getMaxLength(e):0,u=t?this._getMaxLength(t):0,h=this._getMaxLength(o),p=this._getMaxLength(i);return Math.max(u,s,d,a,h,p)},_getMaxLength:function(e){var t=(e=e.toString()).length;if(-1!==e.indexOf("e")){var i=e.split("e")[0].split(".");if(i[1])t=t-i[1].length+17;else t+=18}return t},getFloatValueOrDefault:function(e,t){return this.isScalarWidgetType(e.toString())?parseFloat(e):t},getLimitLabel:function(e){return String(e).replace(".","").length>10?e.toExponential(2):e},areLimitsValid:function(e,t){return[e,t]=this._getInputLimitsOrDefaults(e,t),e<=t},isStepValid:function(e,t,i){[e,t]=this._getInputLimitsOrDefaults(e,t);let n=Math.abs(t-e);return i>0&&i<=n},isDefaultValid:function(e,t,i){return[e,t]=this._getInputLimitsOrDefaults(e,t),i===this.getSliderValueForLimits(i,e,t)},_getInputLimitsOrDefaults:function(e,t){return[e=""!==e?e:this.get("minimum"),t=""!==t?t:this.get("maximum")]},getSliderValueForLimits:function(e,t,i){return e<t?e=t:e>i&&(e=i),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(223)],o=i.dj.d(n,(function(e){return{isHandledByTextField:function(t){var i=!1;switch(t.keyCode){case 65:case 67:case 86:case 88:case 89:case 90:(t.ctrlKey||t.metaKey)&&(i=!0);break;case e.HOME:case e.END:case e.BACKSPACE:case e.DELETE:case e.UP_ARROW:case e.DOWN_ARROW:i=!0}return i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(626),i(474),i(1140),i(501)],o=i.dj.d(n,(function(e,t,i,n,o){var r=t.ERROR_FOR_DOUBLE_TYPE,a=t.TEXT_PLACEHOLDER,s=t.DOUBLE_PLACEHOLDER,l=t.CODE_PLACEHOLDER,c={STRING:"String",CHAR:"Char",DOUBLE:"Double",MATLAB_CODE:"MATLAB code"},d={};return d[c.STRING]=a,d[c.CHAR]=a,d[c.DOUBLE]=s,d[c.MATLAB_CODE]=l,e.mixin(o,{determineValueType:function(e){var t;return this.isScalarValue(e)?t=c.DOUBLE:this.isCharValue(e)?t=c.CHAR:this.isStringValue(e)?t=c.STRING:""!==e&&(t=c.MATLAB_CODE),t},isScalarValue:function(e){return i.isScalarWidgetType(e.toString())},isCharValue:function(e){return n.hasSurroundingSingleQuotes(e)},isStringValue:function(e){return n.hasSurroundingDoubleQuotes(e)},isDoubleValueType:function(e){return e===c.DOUBLE},modifyValueForValueType:function(e,t){switch(t){case c.DOUBLE:case c.MATLAB_CODE:e=n.removeSurroundingQuotes(e);break;case c.STRING:n.hasSurroundingSingleQuotes(e)&&(e=n.removeSurroundingQuotes(e)),e=this._modifyValueWhenEqualToWhitespace(e),e=n.wrapValueWithDoubleQuotes(e);break;case c.CHAR:n.hasSurroundingDoubleQuotes(e)&&(e=n.removeSurroundingQuotes(e)),e=this._modifyValueWhenEqualToWhitespace(e),e=n.wrapValueWithSingleQuotes(e)}return e},_modifyValueWhenEqualToWhitespace:function(e){return this.isValueEqualToWhitespace(e)?"":e},isValueEqualToWhitespace:function(e){return" "===e},displayErrorForDoubleType:function(e){e.set("validationState","error"),e.set("errorText",r)},removeError:function(e){e.set("validationState","normal")},hasErrorState:function(e){return"error"===e.get("validationState")},getPlaceholder:function(e){return d[e]},getSurroundingQuote:function(e){return e===c.CHAR?"'":'"'},getDefaultValueType:function(){return c.STRING},isValidValueType:function(e){return Object.keys(c).some((function(t){return e===c[t]}))},getFormattedValue:function(e,t){return this._isStringOrCharValueType(t)?e=this.convertToMatlabString(e,t):this.isDoubleValueType(t)&&"number"!=typeof e&&(e=e&&this.isScalarValue(e)?parseFloat(e):e),e},convertToMatlabString:function(e,t){if(!n.hasSurroundingQuotes(e)){var i=this.getSurroundingQuote(t);e=n.convertToMatlabString(e,i),e=n._addSurroundingQuotesToValue(e,i)}return e},getFormattedValueForDisplay:function(e,t){if(this._isStringOrCharValueType(t)){var i=t===c.CHAR?"''":'""',o=t===c.CHAR?"'":'"';e=n._modifyValueAtQuotes(e,i,o)}return e.toString()},_isStringOrCharValueType:function(e){return e===c.STRING||e===c.CHAR},setReadOnlyAttribute:function(e,t){e.readOnly=t},getReadOnlyAttribute:function(e){return e.readOnly}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(678),i(5266),i(5268),i(5270),i(5272),i(5274),i(5276),i(5278),i(5280),i(5282),i(5284),i(5286),i(5288),i(5289),i(5291),i(5293),i(5295),i(5297),i(5299),i(5300),i(5302),i(5304),i(5306),i(5308),i(5310),i(5312),i(5315),i(5317),i(5319),i(5321),i(5323),i(5325),i(5327),i(5329),i(5335),i(5344),i(5346),i(5348),i(5355),i(5357),i(5359),i(5361),i(5363),i(5365),i(5367),i(5369),i(5371),i(5373),i(5375),i(5377),i(5379),i(5381),i(5384),i(5386),i(5394),i(5396),i(5398),i(5400),i(5402),i(5463),i(5465),i(5467),i(5469),i(5471),i(5473),i(5475),i(5477),i(5479),i(5481),i(5483),i(5484),i(5486),i(5488),i(5490),i(5492),i(5494),i(5496),i(5498),i(5500),i(5502),i(5504),i(5506),i(5508),i(5510),i(5512),i(5514),i(5516),i(5518),i(5520),i(5522),i(5523),i(5525),i(5527),i(5529),i(5531),i(5532),i(5534),i(5536),i(5538),i(5540),i(5542),i(5544),i(5546),i(2099),i(5549),i(5551),i(5553),i(5555),i(5557),i(5559),i(5561),i(5563),i(5565),i(5567),i(5569),i(2099),i(5571),i(5573),i(5575),i(5577),i(5578),i(5580),i(5582),i(5585),i(5587),i(5589),i(5591),i(5592),i(5594),i(5595),i(5597),i(5599),i(5601),i(5603),i(5605),i(5606),i(5608),i(5609),i(5613),i(5615),i(5617),i(5619),i(5621),i(5623),i(5625),i(5627),i(5629),i(5631),i(5633),i(5635),i(5637),i(5639),i(5640),i(5642),i(5644),i(5646),i(5648),i(5650),i(5652),i(5654),i(5656),i(5658),i(5660),i(5662),i(5664),i(5665)],o=i.dj.d(n,(function(e){return new e("RichTextPluginRegistry",[{id:"rtc.richtext.codeexample",family:"rtc.richtext.codeexample",path:"rtc/plugins/codeexample/CodeExampleProvider"},{id:"rtc.richtext.codeexample.tooltip",family:"rtc.richtext.codeexample",path:"rtc/plugins/codeexample/CodeExampleTooltipPreviewProvider",subsystem:"rtc.tooltippreview"},{id:"rtc.richtext.codeexample.block.contentconverter",path:"rtc/plugins/codeexample/model/CodeExampleBlockNodeContentConverterProvider",family:"rtc.richtext.codeexample",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.codeexample.block.layouter",path:"rtc/plugins/codeexample/view/CodeExampleBlockLayouterProvider",family:"rtc.richtext.codeexample",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.richtext.codeexample.coordinateconverter",path:"rtc/plugins/codeexample/view/CodeExampleBlockCoordinateConverterProvider",family:"rtc.richtext.codeexample",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.richtext.codeexample.block.insertionrules",path:"rtc/plugins/codeexample/CodeExampleBlockInsertionRulesProvider",family:"rtc.richtext.codeexample",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.richtext.codeexample.line.contentconverter",path:"rtc/plugins/codeexample/model/CodeExampleLineNodeContentConverterProvider",family:"rtc.richtext.codeexample",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.codeexample.line.layouter",path:"rtc/plugins/codeexample/view/CodeExampleLineLayouterProvider",family:"rtc.richtext.codeexample",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.richtext.codeexample.line.insertionrules",path:"rtc/plugins/codeexample/CodeExampleLineInsertionRulesProvider",family:"rtc.richtext.codeexample",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.richtext.codeexample.matlab.syntaxhighlighter",path:"rtc/plugins/codeexample/syntaxhighlighter/matlab/SyntaxHighlighterProvider",family:"rtc.richtext.codeexample"},{id:"rtc.serializers.containers.codeexample.blockcontainer",path:"rtc/model/io/serializers/providers/containers/CodeExampleBlockContainerSerializerProvider",subsystem:"rtc.serializer",family:"rtc.richtext.codeexample"},{id:"rtc.serializers.containers.codeexample.linecontainer",path:"rtc/model/io/serializers/providers/containers/CodeExampleLineContainerSerializerProvider",subsystem:"rtc.serializer",family:"rtc.richtext.codeexample"},{id:"rtc.richtext.codeexample.block.keyhandler",path:"rtc/plugins/codeexample/CodeExampleBlockKeyHandlerProvider",family:"rtc.richtext.codeexample"},{id:"rtc.codeexamplemimeincodeconverter",path:"rtc/plugins/cutcopypaste/mime/CodeExampleMimeInCodeConverterProvider",subsystem:"rtc.cutcopypaste.mimeconverters",family:"rtc.richtext.codeexample"},{id:"rtc.codemimeincodeexampleconverter",path:"rtc/plugins/cutcopypaste/mime/CodeMimeInCodeExampleConverterProvider",subsystem:"rtc.cutcopypaste.mimeconverters",family:"rtc.richtext.codeexample"},{id:"rtc.export.docbookxml.codeexampleblock",path:"rtc/plugins/codeexample/export/CodeExampleBlock2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext.codeexample"},{id:"rtc.export.docx.codeexampleblock",path:"rtc/plugins/codeexample/export/CodeExampleBlock2DOCXProvider",subsystem:"rtc.export.docxwriters",family:"rtc.richtext.codeexample"},{id:"rtc.export.docx.codeexampleline",path:"rtc/plugins/codeexample/export/CodeExampleLineDocxSerializerProvider",subsystem:"rtc.export.docxwriters.serializers",family:"rtc.richtext.codeexample"},{id:"rtc.export.helptext.codeexampleblock",path:"rtc/plugins/codeexample/export/CodeExampleBlock2HelpTextProvider",subsystem:"rtc.export.helptextwriters",family:"rtc.richtext.codeexample"},{id:"rtc.export.html.codeexampleblock",path:"rtc/plugins/codeexample/export/CodeExampleBlock2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"rtc.richtext.codeexample"},{id:"rtc.export.latex.codeexampleblock",path:"rtc/plugins/codeexample/export/CodeExampleBlock2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"rtc.richtext.codeexample"},{id:"rtc.export.xslfo.codeexampleblock",path:"rtc/plugins/codeexample/export/CodeExampleBlock2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext.codeexample"},{id:"rtc.export.xslfo.codeexampleline",path:"rtc/plugins/codeexample/export/CodeExampleLine2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext.codeexample"},{id:"rtc.export.m.codeexampleblock",path:"rtc/plugins/codeexample/export/CodeExampleBlock2MProvider",subsystem:"rtc.export.mwriters",family:"rtc.richtext.codeexample"},{id:"rtc.richtext.equationcontroller",family:"equationrenderer",path:"rtc/plugins/equations/equationcontroller/EquationControllerProvider"},{id:"rtc.tooltippreview.equation",path:"rtc/plugins/equations/equationcontroller/EquationTooltipPreviewProvider",family:"equationrenderer",subsystem:"rtc.tooltippreview"},{id:"rtc.richtext.equations.htmlhandler",family:"equationrenderer",path:"rtc/plugins/equations/equationcontroller/HTMLEquationHandlerProvider"},{id:"rtc.richtext.equations.contentconverter",path:"rtc/plugins/equations/equationcontroller/nodes/EquationNodeContentConverterProvider",family:"equationrenderer",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.equations.coordinateconverter",path:"rtc/plugins/equations/equationcontroller/view/EquationCoordinateConverterProvider",family:"equationrenderer",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.richtext.equations.layouter",path:"rtc/plugins/equations/equationcontroller/view/EquationLayouterProvider",family:"equationrenderer",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.equations.manager",path:"rtc/plugins/equations/equationeditor/EquationEditorManagerProvider"},{id:"rtc.serializers.nodes.equation",path:"rtc/model/io/serializers/providers/nodes/EquationSerializerProvider",subsystem:"rtc.serializer",family:"equationrenderer"},{id:"rtc.richtext.hyperlink",family:"rtc.richtext.hyperlink",path:"rtc/plugins/hyperlink/HyperlinkProvider"},{id:"rtc.richtext.hyperlinkeditor",family:"rtc.richtext.hyperlink",path:"rtc/plugins/hyperlink/HyperlinkEditorProvider"},{id:"rtc.richtext.hyperlink.htmlhyperlinkhandler",family:"rtc.richtext.hyperlink",path:"rtc/plugins/hyperlink/HTMLHyperlinkElementHandlerProvider"},{id:"rtc.richtext.hyperlink.mimeconverter",family:"rtc.richtext.hyperlink",path:"rtc/plugins/hyperlink/HyperlinkMIMEConverterProvider"},{id:"rtc.richtext.hyperlink.tooltip",family:"rtc.richtext.hyperlink",path:"rtc/plugins/hyperlink/HyperlinkTooltipProvider",subsystem:"hoverabletooltip"},{id:"rtc.richtext.hyperlink.coordinateconverter",path:"rtc/plugins/hyperlink/view/HyperlinkCoordinateConverterProvider",family:"rtc.richtext.hyperlink",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.richtext.hyperlink.contentconverter",path:"rtc/plugins/hyperlink/model/HyperlinkNodeContentConverterProvider",family:"rtc.richtext.hyperlink",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.hyperlink.insertionrules",path:"rtc/plugins/hyperlink/HyperlinkInsertionRulesProvider",family:"rtc.richtext.hyperlink",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.richtext.hyperlink.layouter",path:"rtc/plugins/hyperlink/view/HyperlinkLayouterProvider",family:"rtc.richtext.hyperlink",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.export.docbookxml.hyperlink",path:"rtc/plugins/hyperlink/export/Hyperlink2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext.hyperlink"},{id:"rtc.export.xslfo.hyperlink",path:"rtc/plugins/hyperlink/export/Hyperlink2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext.hyperlink"},{id:"rtc.export.docx.hyperlink",path:"rtc/plugins/hyperlink/export/HyperlinkDocxSerializerProvider",subsystem:"rtc.export.docxwriters.serializers",family:"rtc.richtext.hyperlink"},{id:"rtc.export.latex.hyperlink",path:"rtc/plugins/hyperlink/export/Hyperlink2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"rtc.richtext.hyperlink"},{id:"rtc.export.html.hyperlink",path:"rtc/plugins/hyperlink/export/Hyperlink2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"rtc.richtext.hyperlink"},{id:"rtc.export.m.hyperlink",path:"rtc/plugins/hyperlink/export/Hyperlink2MProvider",subsystem:"rtc.export.mwriters",family:"rtc.richtext.hyperlink"},{id:"rtc.export.helptext.hyperlink",path:"rtc/plugins/hyperlink/export/Hyperlink2HelpTextProvider",subsystem:"rtc.export.helptextwriters",family:"rtc.richtext.hyperlink"},{id:"rtc.serializers.containers.hyperlinkcontainer",path:"rtc/model/io/serializers/providers/containers/HyperlinkContainerSerializerProvider",subsystem:"rtc.serializer",family:"rtc.richtext.hyperlink"},{id:"rtc.internalhyperlinkservice",path:"rtc/plugins/internalhyperlinkservice/InternalHyperlinkServiceProvider",family:"rtc.richtext.hyperlink"},{id:"rtc.richtext.anchor",path:"rtc/plugins/internalhyperlinkservice/AnchorProvider",family:"rtc.richtext.hyperlink"},{id:"rtc.richtext.images.htmlhandler",path:"rtc/plugins/images/HTMLImageElementHandlerProvider",family:"rtc.richtext.images"},{id:"rtc.richtext.images",path:"rtc/plugins/images/ImagesProvider",family:"rtc.richtext.images"},{id:"rtc.tooltippreview.images",path:"rtc/plugins/images/ImagesTooltipPreviewProvider",family:"rtc.richtext.images",subsystem:"rtc.tooltippreview"},{id:"rtc.richtext.images.imagemimeconverter",path:"rtc/plugins/images/ImageMimeConverterProvider",family:"rtc.richtext.images",subsystem:"rtc.cutcopypaste.mimeconverters"},{id:"rtc.richtext.images.imagenodeconverter",family:"rtc.richtext.images",path:"rtc/plugins/images/ImageNodeConverterProvider"},{id:"rtc.richtext.images.contentconverter",path:"rtc/plugins/images/model/ImageNodeContentConverterProvider",family:"rtc.richtext.images",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.images.coordinateconverter",path:"rtc/plugins/images/view/ImageCoordinateConverterProvider",family:"rtc.richtext.images",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.richtext.images.layouter",path:"rtc/plugins/images/view/ImageLayouterProvider",family:"rtc.richtext.images",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.richtext.images.edit",path:"rtc/plugins/images/EditImageProvider"},{id:"rtc.richtext.insertimage",path:"rtc/plugins/images/InsertImageProvider"},{id:"rtc.richtext.resizeimage",path:"rtc/plugins/images/InlineResizeImageProvider",family:"rtc.richtext.resizeimage"},{id:"rtc.serializers.nodes.image",path:"rtc/model/io/serializers/providers/nodes/ImageSerializerProvider",subsystem:"rtc.serializer",family:"rtc.richtext.images"},{id:"rtc.export.helptext.image",path:"rtc/plugins/images/export/Image2HelpTextProvider",subsystem:"rtc.export.helptextwriters",family:"rtc.richtext.images"},{id:"rtc.export.html.image",path:"rtc/plugins/images/export/Image2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"rtc.richtext.images"},{id:"rtc.export.latex.image",path:"rtc/plugins/images/export/Image2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"rtc.richtext.images"},{id:"rtc.export.docx.image",path:"rtc/plugins/images/export/ImageDocxSerializerProvider",subsystem:"rtc.export.docxwriters.serializers",family:"rtc.richtext.images"},{id:"rtc.export.xslfo.image",path:"rtc/plugins/images/export/Image2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext.images"},{id:"rtc.export.docbookxml.image",path:"rtc/plugins/images/export/Image2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext.images"},{id:"rtc.richtext.resizer",path:"rtc/plugins/resizer/ResizerProvider",family:"rtc.richtext.resizeimage"},{id:"rtc.richtext.lists",family:"rtc.richtext.lists",path:"rtc/plugins/lists/ListsProvider"},{id:"rtc.richtext.lists.htmllisthandler",family:"rtc.richtext.lists",path:"rtc/plugins/lists/HTMLListElementHandlerProvider"},{id:"rtc.richtext.lists.htmlwordstylelist",family:"rtc.richtext.lists",path:"rtc/plugins/lists/HTMLWordStyleListHandlerProvider"},{id:"rtc.richtext.list.coordinateconverter",path:"rtc/plugins/lists/view/ListParagraphCoordinateConverterProvider",family:"rtc.richtext.lists",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.richtext.list.listparagraph.contentconverter",path:"rtc/plugins/lists/model/ListParagraphContentConverterProvider",family:"rtc.richtext.lists",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.list.listparagraph.insertionrules",path:"rtc/plugins/lists/ListParagraphInsertionRulesProvider",family:"rtc.richtext.lists",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.richtext.list.listparagraph.layouter",path:"rtc/plugins/lists/view/ListParagraphLayouterProvider",family:"rtc.richtext.lists",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.richtext.list.listitem.contentconverter",path:"rtc/plugins/lists/model/ListItemContentConverterProvider",family:"rtc.richtext.lists",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.list.listitem.insertionrules",path:"rtc/plugins/lists/ListItemInsertionRulesProvider",family:"rtc.richtext.lists",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.richtext.list.listitem.layouter",path:"rtc/plugins/lists/view/ListItemLayouterProvider",family:"rtc.richtext.lists",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.serializers.containers.listcontainer",path:"rtc/model/io/serializers/providers/containers/ListContainerSerializerProvider",subsystem:"rtc.serializer",family:"rtc.richtext.lists"},{id:"rtc.serializers.containers.listitemcontainer",path:"rtc/model/io/serializers/providers/containers/ListItemContainerSerializerProvider",subsystem:"rtc.serializer",family:"rtc.richtext.lists"},{id:"rtc.export.helptext.listparagraph",path:"rtc/plugins/lists/export/ListParagraph2HelpTextProvider",subsystem:"rtc.export.helptextwriters",family:"rtc.richtext.lists"},{id:"rtc.export.m.listitem",path:"rtc/plugins/lists/export/ListItem2MProvider",subsystem:"rtc.export.mwriters",family:"rtc.richtext.lists"},{id:"rtc.export.html.listparagraph",path:"rtc/plugins/lists/export/ListParagraph2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"rtc.richtext.lists"},{id:"rtc.export.html.listitem",path:"rtc/plugins/lists/export/ListItem2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"rtc.richtext.lists"},{id:"rtc.export.latex.listparagraph",path:"rtc/plugins/lists/export/ListParagraph2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"rtc.richtext.lists"},{id:"rtc.export.latex.listitem",path:"rtc/plugins/lists/export/ListItem2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"rtc.richtext.lists"},{id:"rtc.export.docbookxml.listparagraph",path:"rtc/plugins/lists/export/ListParagraph2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext.lists"},{id:"rtc.export.docbookxml.listitem",path:"rtc/plugins/lists/export/ListItem2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext.lists"},{id:"rtc.export.xslfo.listparagraph",path:"rtc/plugins/lists/export/ListParagraph2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext.lists"},{id:"rtc.export.xslfo.listitem",path:"rtc/plugins/lists/export/ListItem2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext.lists"},{id:"rtc.export.docx.listparagraph",path:"rtc/plugins/lists/export/ListParagraph2DOCXProvider",subsystem:"rtc.export.docxwriters",family:"rtc.richtext.lists"},{id:"rtc.export.docx.listitem",path:"rtc/plugins/lists/export/ListItemDocxSerializerProvider",subsystem:"rtc.export.docxwriters.serializers",family:"rtc.richtext.lists"},{id:"rtc.tooltippreview.richtext",path:"rtc/plugins/richtext/RichTextTooltipPreviewProvider",family:"rtc.richtext",subsystem:"rtc.tooltippreview"},{id:"rtc.richtext",path:"rtc/plugins/richtext/RichTextProvider",family:"rtc.richtext"},{id:"rtc.richtext.shortcuts",path:"rtc/plugins/richtext/RichTextShortcutsProvider",family:"rtc.richtext"},{id:"rtc.richtext.matlabjsonmimeconverter",path:"rtc/plugins/richtext/MatlabJSONMimeConverterProvider",family:"rtc.richtext",subsystem:"rtc.cutcopypaste.mimeconverters"},{id:"rtc.richtext.htmlhandler",path:"rtc/plugins/richtext/HTMLRichTextElementHandlerProvider",family:"rtc.richtext"},{id:"rtc.richtext.coordinateconverter",path:"rtc/plugins/richtext/view/RichTextCoordinateConverterProvider",family:"rtc.richtext",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.richtext.rangeconverter",path:"rtc/plugins/richtext/view/RichTextRangeConverterProvider",family:"rtc.richtext",subsystem:"rtc.view.rangeconverter.converter"},{id:"rtc.richtext.richtextparagraph.contentconverter",path:"rtc/plugins/richtext/nodes/inner/RichTextParagraphNodeContentConverterProvider",family:"rtc.richtext",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.richtextparagraph.insertionrules",path:"rtc/plugins/richtext/RichTextParagraphInsertionRulesProvider",family:"rtc.richtext",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.richtext.richtextparagraph.layouter",path:"rtc/plugins/richtext/view/RichTextParagraphLayouterProvider",family:"rtc.richtext",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.richtext.heading.contentconverter",path:"rtc/plugins/richtext/nodes/inner/HeadingNodeContentConverterProvider",family:"rtc.richtext",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.heading.layouter",path:"rtc/plugins/richtext/view/HeadingLayouterProvider",family:"rtc.richtext",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.richtext.richtextnode.contentconverter",path:"rtc/plugins/richtext/nodes/leaf/RichTextNodeContentConverterProvider",family:"rtc.richtext",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.richtextnode.insertionrules",path:"rtc/plugins/richtext/RichTextNodeInsertionRulesProvider",family:"rtc.richtext",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.richtext.richtextnode.layouter",path:"rtc/plugins/richtext/view/RichTextLayouterProvider",family:"rtc.richtext",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.export.docbookxml.paragraphnode",path:"rtc/plugins/richtext/export/RichTextParagraphNode2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext"},{id:"rtc.export.docbookxml.headingnode",path:"rtc/plugins/richtext/export/HeadingNode2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext"},{id:"rtc.export.docbookxml.richtextnode",path:"rtc/plugins/richtext/export/RichTextNode2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext"},{id:"rtc.export.docbookxml.plaintextnode",path:"rtc/plugins/export/docbookxml/PlainTextNode2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext"},{id:"rtc.export.xslfo.plaintextnode",path:"rtc/plugins/export/xslfo/PlainTextNode2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext"},{id:"rtc.export.xslfo.paragraphnode",path:"rtc/plugins/richtext/export/RichTextParagraphNode2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext"},{id:"rtc.export.xslfo.headingnode",path:"rtc/plugins/richtext/export/HeadingNode2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext"},{id:"rtc.export.xslfo.richtextnode",path:"rtc/plugins/richtext/export/RichTextNode2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext"},{id:"rtc.export.docx.paragraphnode",path:"rtc/plugins/richtext/export/RichTextParagraphNode2DOCXProvider",subsystem:"rtc.export.docxwriters",family:"rtc.richtext"},{id:"rtc.export.docx.headingnode",path:"rtc/plugins/richtext/export/HeadingNode2DOCXProvider",subsystem:"rtc.export.docxwriters",family:"rtc.richtext"},{id:"rtc.export.docx.plaintextnode",path:"rtc/plugins/export/docx/PlainTextDocxSerializerProvider",subsystem:"rtc.export.docxwriters.serializers",family:"rtc.richtext"},{id:"rtc.export.docx.serializers.richtextnode",path:"rtc/plugins/richtext/export/RichTextDocxSerializerProvider",subsystem:"rtc.export.docxwriters.serializers",family:"rtc.richtext"},{id:"rtc.export.latex.paragraphnode",path:"rtc/plugins/richtext/export/RichTextParagraphNode2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"rtc.richtext"},{id:"rtc.export.latex.richtextnode",path:"rtc/plugins/richtext/export/RichTextNode2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"rtc.richtext"},{id:"rtc.export.latex.headingnode",path:"rtc/plugins/richtext/export/HeadingNode2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"rtc.richtext"},{id:"rtc.serializers.nodes.richtext",path:"rtc/model/io/serializers/providers/nodes/RichTextSerializerProvider",subsystem:"rtc.serializer",family:"rtc.richtext"},{id:"rtc.export.html.paragraphnode",path:"rtc/plugins/richtext/export/RichTextParagraphNode2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"rtc.richtext"},{id:"rtc.export.html.headingnode",path:"rtc/plugins/richtext/export/HeadingNode2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"rtc.richtext"},{id:"rtc.export.html.richtextnode",path:"rtc/plugins/richtext/export/RichTextNode2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"rtc.richtext"},{id:"rtc.export.m.paragraphnode",path:"rtc/plugins/richtext/export/RichTextParagraphNode2MProvider",subsystem:"rtc.export.mwriters",family:"rtc.richtext"},{id:"rtc.export.m.headingnode",path:"rtc/plugins/richtext/export/HeadingNode2MProvider",subsystem:"rtc.export.mwriters",family:"rtc.richtext"},{id:"rtc.export.m.richtextnode",path:"rtc/plugins/richtext/export/RichTextNode2MProvider",subsystem:"rtc.export.mwriters",family:"rtc.richtext"},{id:"rtc.export.helptext.paragraphnode",path:"rtc/plugins/richtext/export/RichTextParagraphNode2HelpTextProvider",subsystem:"rtc.export.helptextwriters",family:"rtc.richtext"},{id:"rtc.export.helptext.richtextnode",path:"rtc/plugins/richtext/export/RichTextNode2HelpTextProvider",subsystem:"rtc.export.helptextwriters",family:"rtc.richtext"},{id:"rtc.serializers.containers.headingcontainer",path:"rtc/model/io/serializers/providers/containers/HeadingContainerSerializerProvider",subsystem:"rtc.serializer",family:"rtc.richtext"},{id:"rtc.serializers.containers.richtextcontainer",path:"rtc/model/io/serializers/providers/containers/RichTextContainerSerializerProvider",subsystem:"rtc.serializer",family:"rtc.richtext"},{id:"rtc.export.docbookxml.tableofcontentscontainer",path:"rtc/plugins/tableofcontents/export/TableOfContentsContainer2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.docbookxml.tableofcontentsheading",path:"rtc/plugins/tableofcontents/export/TableOfContentsHeadingNode2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.docbookxml.tableofcontentslist",path:"rtc/plugins/tableofcontents/export/TableOfContentsList2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.richtext.tableofcontents.coordinateconverter.heading",path:"rtc/plugins/tableofcontents/view/TableOfContentsHeadingNodeCoordinateConverterProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.richtext.tableofcontents.coordinateconverter.list",path:"rtc/plugins/tableofcontents/view/TableOfContentsListCoordinateConverterProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.richtext.tableofcontents.coordinateconverter.container",path:"rtc/plugins/tableofcontents/view/TableOfContentsContainerCoordinateConverterProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.richtext.tableofcontents",family:"rtc.richtext.tableofcontents",path:"rtc/plugins/tableofcontents/TableOfContentsProvider"},{id:"rtc.richtext.tableofcontents.layouter",path:"rtc/plugins/tableofcontents/view/TableOfContentsLayouterProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.richtext.tableofcontentsheading.layouter",path:"rtc/plugins/tableofcontents/view/TableOfContentsHeadingNodeLayouterProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.richtext.tableofcontentscontainer.layouter",path:"rtc/plugins/tableofcontents/view/TableOfContentsContainerLayouterProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.richtext.tableofcontents.insertionrules",path:"rtc/plugins/tableofcontents/TableOfContentsContainerInsertionRulesProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.richtext.tableofcontentscontainer.contentconverter",path:"rtc/plugins/tableofcontents/model/TableOfContentsContainerContentConverterProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.tableofcontentsheading.contentconverter",path:"rtc/plugins/tableofcontents/model/TableOfContentsHeadingNodeContentConverterProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.richtext.tableofcontentsheading.nodeconversionrules",path:"rtc/plugins/tableofcontents/TableOfContentsHeadingNodeConversionRulesProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.nodeconversionrule"},{id:"rtc.richtext.tableofcontentslist.nodeconversionrules",path:"rtc/plugins/tableofcontents/TableOfContentsListConversionRulesProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.nodeconversionrule"},{id:"rtc.richtext.tableofcontents.contentconverter",path:"rtc/plugins/tableofcontents/model/TableOfContentsListContentConverterProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.export.helptext.tableofcontentscontainer",path:"rtc/plugins/tableofcontents/export/TableOfContentsContainer2HelpTextProvider",subsystem:"rtc.export.helptextwriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.m.tableofcontentscontainer",path:"rtc/plugins/tableofcontents/export/TableOfContentsContainer2MProvider",subsystem:"rtc.export.mwriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.html.tableofcontentscontainer",path:"rtc/plugins/tableofcontents/export/TableOfContentsContainer2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.latex.tableofcontentscontainer",path:"rtc/plugins/tableofcontents/export/TableOfContentsContainer2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.docx.tableofcontentscontainer",path:"rtc/plugins/tableofcontents/export/TableOfContentsContainer2DOCXProvider",subsystem:"rtc.export.docxwriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.docx.tableofcontentsheadingnode",path:"rtc/plugins/tableofcontents/export/TableOfContentsHeadingDocxSerializerProvider",subsystem:"rtc.export.docxwriters.serializers",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.docx.tableofcontentslist",path:"rtc/plugins/tableofcontents/export/TableOfContentsListDocxSerializerProvider",subsystem:"rtc.export.docxwriters.serializers",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.xslfo.tableofcontentscontainer",path:"rtc/plugins/tableofcontents/export/TableOfContentsContainer2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.xslfo.tableofcontentsheading",path:"rtc/plugins/tableofcontents/export/TableOfContentsHeadingNode2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.export.xslfo.tableofcontentslist",path:"rtc/plugins/tableofcontents/export/TableOfContentsList2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.richtext.tableofcontents"},{id:"rtc.serializers.containers.tableofcontentscontainer",path:"rtc/model/io/serializers/providers/containers/TableOfContentsContainerSerializerProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.serializer"},{id:"rtc.serializers.containers.tableofcontentsheading",path:"rtc/model/io/serializers/providers/containers/TableOfContentsHeadingSerializerProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.serializer"},{id:"rtc.serializers.containers.tableofcontentslist",path:"rtc/model/io/serializers/providers/containers/TableOfContentsListSerializerProvider",family:"rtc.richtext.tableofcontents",subsystem:"rtc.serializer"}])}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(237),i(826)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getOperationsForLayout:function(e,t,i){return{nodeToPlace:e}},getOperationsForRemove:function(e,t){return{nodeToRemove:this._getDomNode(e)}},priority:function(){return 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(209),i(319),i(521),i(300),i(524),i(362)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(r,{_CHILD_TYPE:"PlainTextNode",constructor:function(e){this._decorationviewmodel=e},write:function(e,t){n.assert(t.serializers,"Required argument missed: 'serializers'");var o=document.createElement(this.getXMLType());return e.forEach((function(e){var n=a.createXMLElement(),r=a.createParagraphProperty(this.getXMLType());n.appendChild(r),e.children.forEach((function(e){var o=t.serializers.getSerializer(e.className);if(t.codeDecoration)for(var r=i.create(s.SPAN),a=l.getSyntaxHighlightingForExport(e.node,this._decorationviewmodel),c=l.createViewForTextNode(e.text,a,r),d=0;d<c.childNodes.length;d++)n.appendChild(o.write(c.childNodes[d]));else n.appendChild(o.write(e))}),this),o.appendChild(n)}),this),o},read:function(e,t,i){var n=i.getSerializer(this._CHILD_TYPE).read([e]);return{readObject:n.readObject.map((function(e){return{className:this.getNodeType(),children:[e]}}),this),readStatus:n.readStatus}},getXMLType:function(){return"CodeExampleLine"},getNodeType:function(){return"CodeExampleLineNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(949)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t,i){this._targetValidation(t),this._href=e,this._target=t,this._anchor=i},getReference:function(){return this._href},getTarget:function(){return this._target},getAnchor:function(){return this._anchor},setReference:function(e){this._href=e},setTarget:function(e){this._targetValidation(e),this._target=e},setAnchor:function(e){this._anchor=e},isWebTarget:function(){return!!this._href&&!this._anchor&&this._target===t.TARGET.WEB},isInternalTarget:function(){return!!this._anchor&&this._target===t.TARGET.INTERNAL},isExternalFileTarget:function(){return!!this._href&&this._target===t.TARGET.FILE},isExternalDeepFileTarget:function(){return!!this._href&&!!this._anchor&&this._target===t.TARGET.FILE},isMatlabCommand:function(){return!!this._href&&!this._anchor&&this._target===t.TARGET.MATLAB},_targetValidation:function(e){if(!Object.entries(t.TARGET).some((function(t){return t[1]===e})))throw new Error("Unknown hyperlink target : The target type does not exist.")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(5331),i(5332),i(5333),i(5334)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/hyperlinkDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(5351),i(5352),i(5353),i(5354)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/toolTipPreview",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(5389),i(5390),i(5391),i(5392)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/editImage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(225),i(220),i(485)],o=i.dj.d(n,(function(e,t){return t(e,"css2",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(240),i(204),i(1481),i(5414),i(5418),i(788),i(5462)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e("dijit.form.ComboBoxMixin",[s,r],{dropDownClass:a,hasDownArrow:!0,templateString:l,baseClass:"dijitTextBox dijitComboBox",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},_setHasDownArrowAttr:function(e){this._set("hasDownArrow",e),this._buttonNode.style.display=e?"":"none"},_showResultList:function(){this.displayMessage(""),this.inherited(arguments)},_setStoreAttr:function(e){e.get||n.mixin(e,{_oldAPI:!0,get:function(e){var i=new t;return this.fetchItemByIdentity({identity:e,onItem:function(e){i.resolve(e)},onError:function(e){i.reject(e)}}),i.promise},query:function(e,i){var r=new t((function(){a.abort&&a.abort()}));r.total=new t;var a=this.fetch(n.mixin({query:e,onBegin:function(e){r.total.resolve(e)},onComplete:function(e){r.resolve(e)},onError:function(e){r.reject(e)}},i));return o(r)}}),this._set("store",e)},postMixInProperties:function(){var e=this.params.store||this.store;if(e&&this._setStoreAttr(e),this.inherited(arguments),!this.params.store&&this.store&&!this.store._oldAPI){var t=this.declaredClass;n.mixin(this.store,{getValue:function(e,n){return i.deprecated(t+".store.getValue(item, attr) is deprecated for builtin store. Use item.attr directly","","2.0"),e[n]},getLabel:function(e){return i.deprecated(t+".store.getLabel(item) is deprecated for builtin store. Use item.label directly","","2.0"),e.name},fetch:function(e){i.deprecated(t+".store.fetch() is deprecated for builtin store.","Use store.query()","2.0");require(["dojo/data/ObjectStore"],n.hitch(this,(function(t){new t({objectStore:this}).fetch(e)})))}})}},buildRendering:function(){this.inherited(arguments),this.focusNode.setAttribute("aria-autocomplete",this.autoComplete?"both":"list")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(319),i(574),i(300)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{_RELATIONSHIP_TARGET:"/media/",_PART_NAME:"image",_PART_TYPE:"image",_IMAGE_SOURCE:"imgSrc",AUTO_CENTER_CLASS:!0,write:function(e,t){i.assert(t.opcPackage,"Required argument missed: 'opcPackage'");var o=document.createElement(this.getXMLType()),a=r.createCustomXMLTag(this.getXMLType()),s=r.createXMLElement(n.CUSTOM_XML_PROPERTY);s=this._writeAttribute(s,n.HEIGHT_ATTRIBUTE_NAME,e.height),s=this._writeAttribute(s,n.WIDTH_ATTRIBUTE_NAME,e.width),s=this._writeAttribute(s,n.VERTICALALIGN_ATTRIBUTE_NAME,e.verticalAlign),s=this._writeAttribute(s,n.ALTTEXT_ATTRIBUTE_NAME,e.altText);var l=this._createRelationship(e,t.opcPackage);return s.appendChild(l),a.appendChild(s),o.appendChild(a),o.childNodes[0]},_writeAttribute:function(e,t,i){var n=r.createCustomXMLAttribute(t,i);return e.appendChild(n),e},_createRelationship:function(e,t){var i=r.getImageExtension(e.imgSrc),o=t.getPartURI(this._RELATIONSHIP_TARGET,this._PART_NAME,i),a=this._findDuplicates(e,t);if(a)s=this._getRelationshipIdFromPart(a,t);else{var s=this._createPartRelationship(t.getPart(n.DOCUMENT_TARGET),o),l=this._PART_TYPE+"/"+i;this._createPart(o,l,t).setContent(e.imgSrc),e.relationshipId=s}return r.createCustomXMLAttribute(n.RELATIONSHIP_ID_TAG_NAME,s)},_findDuplicates:function(e,t){var i=null;return t.getParts().forEach((function(t){t.getContent()&&t.getContent()===e.imgSrc&&(i=t)})),i},_getRelationshipIdFromPart:function(e,t,i){var o=(i=i||t.getPart(n.DOCUMENT_TARGET)).getAllRelationships().getRelationshipCollection();for(var r in o)if(o[r].getTarget()===e.getPartURI())return r},_createPart:function(e,t,i){return i.createPart(e,t)},_createPartRelationship:function(e,t){return e.createRelationship(n.IMAGE_RELATIONSHIP_TYPE,t)},read:function(e,t){for(var i={className:this.getNodeType()},o=e.getElementsByTagNameNS(n.NAMESPACE_URL,n.CUSTOM_XML_PROPERTY)[0].getElementsByTagNameNS(n.NAMESPACE_URL,n.CUSTOM_XML_ATTRIBUTE),r=0;r<o.length;r++){var a=o[r].getAttributeNS(n.NAMESPACE_URL,n.NAME_TAG),s=o[r].getAttributeNS(n.NAMESPACE_URL,n.CUSTOM_XML_VALUE_TAG);a===n.RELATIONSHIP_ID_TAG_NAME&&(a=this._IMAGE_SOURCE,s=this._readImagePart(t,s)),i[a]=s}return{readObject:i,readStatus:!0}},_readImagePart:function(e,t){var i=e.getPart(n.DOCUMENT_TARGET).getRelationship(t).getTarget();return e.getPart(i).getContent()},getXMLType:function(){return"image"},getNodeType:function(){return"ImageNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(347)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5548)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_SPECIAL_CHARS:[[/\$/g,"\\$"],[/%/g,"\\%"],[/\{/g,"\\{"],[/}/g,"\\}"],[/_/g,"\\_"],[/#/g,"\\#"],[/&/g,"\\&"],[/</g,"\\textless{}","<"],[/>/g,"\\textgreater{}",">"],[/~/g,"\\textasciitilde{}","\\~"],[/\^/g,"\\textasciicircum{}","^"]],_ESCAPE_BACKSLASH:[/\\/g,"\\textbackslash{}","\\\\"],escapeSpecialCharacters:function(e,t){if(""===e)return"";var i=e.split(this._ESCAPE_BACKSLASH[0]);i=i.map((function(e){return this._SPECIAL_CHARS.forEach((function(i){var n=t&&i[2]?i[2]:i[1];e=e.replace(i[0],n)}),this),e}),this);var n=t?this._ESCAPE_BACKSLASH[2]:this._ESCAPE_BACKSLASH[1];return e=i.join(n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(319),i(574),i(300),i(524),i(916)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{write:function(e,t){var n=o.createXMLElement(i.RUN_OF_TEXT_TAG_NAME),r=o.createXMLElement(i.RUN_OF_TEXT_PROPERTY_TAG_NAME),a=!1;for(var s in e)if(e.hasOwnProperty(s)&&"className"!==s&&"text"!==s&&(a=!0,e[s])){var l=this._createRunProperty(s,t);l&&r.appendChild(l)}var c=o.createXMLElement(i.TEXT_TAG_NAME),d=document.createTextNode(e.text);return c.appendChild(d),a&&n.appendChild(r),n.appendChild(c),n},read:function(e){return this._createObjectFromRun(e)},_createObjectFromRun:function(e){var t=!0,i={},n=o.getTextFromRun(e),r=this._getPropertyFromRun(e);return 0!==r.length&&r.forEach((function(e){"unrecognized"===e?t=!1:i[e]=!0})),i.className=this.getNodeType(),i.text=n,{readObject:i,readStatus:t}},_getPropertyFromRun:function(e){var t,n=[],o=e.getElementsByTagNameNS(i.NAMESPACE_URL,i.RUN_OF_TEXT_PROPERTY_TAG_NAME);if(o.length>0)for(t=0;t<o[0].childNodes.length;t+=1){var r=o[0].childNodes[t];r.localName===i.BOLD_TAG_NAME?n.push("bold"):r.localName===i.ITALIC_TAG_NAME?n.push("italic"):r.localName===i.UNDERLINE_TAG_NAME?n.push("underline"):r.localName===i.RUN_OF_FONT?r.attributes[0]&&r.attributes[0].localName===i.FONT_TYPE_TAG&&r.attributes[0].nodeValue===i.MONOSPACE_TAG&&n.push("monospace"):n.push("unrecognized")}return n},_createRunProperty:function(e,t){switch(e){case"bold":return o.createXMLElement(i.BOLD_TAG_NAME);case"italic":return o.createXMLElement(i.ITALIC_TAG_NAME);case"underline":var n=o.createXMLElement(i.UNDERLINE_TAG_NAME);return t.singleUnderline&&n.setAttribute(r.VALUE_TAG,r.SINGLE),n;case"monospace":if(t.monospaceFont){var s=a.createOXmlElement(r.ROW_FONTS_TAG);return s.setAttribute(r.ASCII_TAG,r.FONT_MONOSPACE),s}var l=o.createXMLElement(i.RUN_OF_FONT),c=i.NAMESPACE_TAG+":"+i.FONT_TYPE_TAG;return l.setAttributeNS(i.NAMESPACE_URL,c,i.MONOSPACE_TAG),l;default:return null}},getXMLType:function(){return"RichTextNode"},getNodeType:function(){return"RichTextNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(334),i(5584)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_PLACEHOLDER_CLASS:"textContainer",constructor:function(e){this._viewModel=e},getRangeFromPosition:function(e,t){var i,n=e.getNode(),o=e.getOffset(),r=n.maxOffset();t=t||this._getDomNode(n);var a=o;if(0===r)i=t.firstChild||t,a=0;else{var s,l=this.createIndexMap(t);o===r?(i=(s=l[o-1]).textNode,a=s.localIndex+1):(i=(s=l[o]).textNode,a=s.localIndex)}return this._getRangeStartEnd(i,a,i,a)},getContainerForPosition:function(e,t){var n=this.getRangeFromPosition(e,t);return n?i.isDomTextNode(n.startContainer)?this._getOrInsertNewContainerAroundText(e,n):this._getOrInsertNewContainerWhenEmptyText(e,t):null},_getOrInsertNewContainerAroundText:function(e,i){var n,o=i.startContainer,r=o.parentNode,a=r.previousSibling,s=r.nextSibling;if(0===i.startOffset)n=this._isViewOnlyContainer(a)?a:this._insertNewContainerInto(r,"before");else if(e.getOffset()>0&&e.isAtRightEdge())n=this._isViewOnlyContainer(s)?s:this._insertNewContainerInto(r,"after");else{var l=o.splitText(i.startOffset),c=r,d=c.cloneNode(!1);t.place(l,d),t.place(d,c,"after"),n=this._insertNewContainerInto(c,"after")}return n},_getOrInsertNewContainerWhenEmptyText:function(e,t){var i=e.getNode();return t=t||this._getDomNode(i),this._isViewOnlyContainer(t.firstChild)?t.firstChild:this._insertNewContainerInto(t,"first")},_insertNewContainerInto:function(e,i){var n=this._createContainer();return t.place(n,e,i),n},_isViewOnlyContainer:function(e){return e&&e.className===this._PLACEHOLDER_CLASS},_createContainer:function(){return t.create("span",{class:this._PLACEHOLDER_CLASS})},getNodeRange:function(e){var t=document.createRange();try{t.selectNode(e)}catch(e){return null}return t},getNodeContentsRange:function(e){for(var t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,this._filterTextNodes.bind(this),!1);i.nextNode();){var n=i.currentNode;try{var o=document.createRange();o.selectNodeContents(n),t.push(o)}catch(e){}}return t},getCharRange:function(e,t,i,n){var o=(n=n||this.createIndexMap(e))[t];if(!o)return null;var r=o.textNode,a=o.localIndex,s=o.textNode,l=o.localIndex+1;if(!i&&t>0){var c=n[t-1],d=c.textNode;this._hasViewOnlyElementBetweenTextNodes(d,r)&&(r=c.textNode,a=c.localIndex+1)}return this._getRangeStartEnd(r,a,s,l)},_hasViewOnlyElementBetweenTextNodes:function(e,t){if(e===t)return!1;var i=t.parentNode.previousSibling;return this._isViewOnlyContainer(i)&&i.textContent.length>0},createIndexMap:function(e){for(var t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,this._filterTextNodes.bind(this));i.nextNode();)for(var n=i.currentNode,o=0;o<n.textContent.length;o+=1)t.push({textNode:n,localIndex:o});return t},_filterTextNodes:function(e){return i.isDomTextNode(e)&&""!==e.nodeValue?NodeFilter.FILTER_ACCEPT:this._isViewOnlyContainer(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_SKIP},_getRangeStartEnd:function(e,t,i,n){var o=document.createRange();try{o.setStart(e,t),o.setEnd(i,n)}catch(e){return null}return o},_getDomNode:function(e){return this._viewModel.getNodeBox(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2104),i(380)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._decorationViewModel=e},getApplicableNodeClass:function(){return i},_getStyle:function(e){var t="";return e.color&&(e.color.hasOwnProperty("r")&&e.color.hasOwnProperty("g")&&e.color.hasOwnProperty("b")?t+="color: rgb("+e.color.r+","+e.color.g+","+e.color.b+");":t+="color: "+e.color+";"),e.bold&&(t+="font-weight: bold;"),e.italic&&(t+="font-style: italic;"),e.underline&&(t+="text-decoration: underline;"),e.monospace&&(t+='font-family: Menlo, Monaco, Consolas, "Courier New", monospace;'),e.size&&(t+="font-size: "+e.size+";"),e.font&&(t+="font-family: "+e.font+";"),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(389),i(391),i(362)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_TEXT_OUTER_CSS:"textBox",_TEXT_INNER_CSS:"textWrapper",constructor:function(e,t){this._decorationViewModel=e,this._hiddenNodeModel=t},getApplicableNodeClass:function(){return i},layout:function(e,t){var i=e.layoutInto(t,"span",{class:this._TEXT_OUTER_CSS});return i.hasChildNodes()||this._render(e,t,i),i},refresh:function(e,t,i,n){return this._render(e,t,n),n},_render:function(e,i,n){var r=i.getText(),a=this._decorationViewModel.getDecoration(i),s=t.create("span",this._getAttributes(i));o.createViewForTextNode(r,a,s,n),a.forEach((function(t){var o=t.domNodes;o&&o.forEach((function(t,o){i===t.rtcPosition.getNode()&&e.insertDomNode(o,t.rtcPosition,t.domPlacement,n)}),this)}),this)},_getAttributes:function(e){var t={},i=this._getClass(e);i&&(t.class=i);var n=this._getStyle(e);return n&&(t.style=n),t},_getClass:function(e){var t=this._TEXT_INNER_CSS;return e.cssClass&&(t+=" "+e.cssClass),t},_getStyle:function(e){return""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1483),i(300)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{write:function(e,t){return this._writeParagraph(e,t)},read:function(e,t,i){return this._readParagraph(e,t,i)},getNodeType:function(){return"TableOfContentsHeadingNode"},getXMLType:function(){return"TOCHeading"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1483),i(300)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{write:function(e,t){return this._writeParagraph(e,t)},read:function(e,t,i){return this._readParagraph(e,t,i)},getNodeType:function(){return"TableOfContentsList"},getXMLType:function(){return"TOC1"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(212),i(285),i(233),i(209),i(219),i(207),i(1430),i(281),i(549),i(1484),i(1404),i(2109)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e(l,{_EVENT_CHANNEL_PREFIX:"/liveeditor/events/",_EVENT_GET_CONTENT_REQUEST_CHANNEL_PREFIX:"/liveeditor/events/getContentRequest/",_EVENT_GET_CONTENT_RESPONSE_CHANNEL_PREFIX:"/liveeditor/events/getContentResponse/",_EVENT_SET_CONTENT_REQUEST_CHANNEL_PREFIX:"/liveeditor/events/setContentRequest/",_EVENT_SET_CONTENT_RESPONSE_CHANNEL_PREFIX:"/liveeditor/events/setContentResponse/",_EVENT_DEFER_LOAD_UNTIL_VIEWPORT_READY_PREFIX:"/liveeditor/events/deferLoadUntilViewPortReady/",_EVENT_LOAD_DOCUMENT_CHANNEL_PREFIX:"/liveeditor/events/loadDocument/",_EVENT_LOAD_UNTITLED_DOCUMENT_CHANNEL_PREFIX:"/liveeditor/events/loadUntitledDocument/",_EVENT_WRITE_CONTENT_REQUEST_CHANNEL_PREFIX:"/mlx/service/writeRequest",_EVENT_WRITE_CONTENT_RESPONSE_CHANNEL_PREFIX:"/mlx/service/writeResponse/",_EVENT_READ_CONTENT_REQUEST_CHANNEL_PREFIX:"/mlx/service/readRequest",_EVENT_READ_CONTENT_RESPONSE_CHANNEL_PREFIX:"/mlx/service/readResponse/",_EVENT_JAVA_SERVICE_REQUEST_CHANNEL_PREFIX:"/mlx/service/javaServiceRequest",_EVENT_JAVA_SERVICE_RESPONSE_CHANNEL_PREFIX:"/mlx/service/javaServiceResponse/",_EVENT_SAVE_DOCUMENT_COMPLETED_CHANNEL_PREFIX:"/liveeditor/events/saveDocumentCompleted/",_OUTPUT_LOCATION:"/matlab/output.xml",_OUTPUT_FORMAT:"text/xml",_OUTPUT_RELATIONSHIP_TYPE:"http://schemas.mathworks.com/matlab/code/2013/relationships/output",DEFER_SET_CONTENT_UNTIL_VIEWPORT_OPENED_SETTING:"deferSetContentUntilViewportOpened",_LOAD_SETTING_NAME:"matlab.editor.serialization.EnableLiveEditorCppLoad",_SAVE_SETTING_NAME:"matlab.editor.serialization.EnableLiveEditorCppSave",_SETTINGS_TIMEOUT:2e3,constructor:function(e,o,r,a,l,d,u,h,p,f,g,m,_){this._rtcId=e,this._internalDocument=o,this._viewportService=r,this._actionService=a,this._backingStore=l,this._requestedLoadContent=!1,this._serializers=d,this._fileType=u,this._rtcSettingService=f,this._documentationService=g,this._deferContentLoadUntilViewPortReady=!1,this._cppLoadEnabled=!0,this._cppSaveEnabled=null,this._templateType=h,this._templateService=p,this._templateName=null,this._touchService=m,this._matlabMobileBridge=c.getInstance(),this._addActions(),this._settingsListenerDeferred=new n,this._setupSettingsListener(),s.subscribe(this._EVENT_GET_CONTENT_REQUEST_CHANNEL_PREFIX+e,"_handleGetContentRequest",this),s.subscribe(this._EVENT_SET_CONTENT_REQUEST_CHANNEL_PREFIX+e,"_handleSetContentRequest",this),s.subscribe(this._EVENT_WRITE_CONTENT_RESPONSE_CHANNEL_PREFIX+e,"_handleWriteContentResponse",this),s.subscribe(this._EVENT_READ_CONTENT_RESPONSE_CHANNEL_PREFIX+e,"_handleReadContentResponse",this),s.subscribe(this._EVENT_DEFER_LOAD_UNTIL_VIEWPORT_READY_PREFIX+e,"_handleContentLoadWhenViewPortIsReady",this),s.subscribe(this._EVENT_LOAD_DOCUMENT_CHANNEL_PREFIX+e,"_handleLoadDocumentEvent",this),s.subscribe(this._EVENT_LOAD_UNTITLED_DOCUMENT_CHANNEL_PREFIX+e,"_handleLoadUntitledDocumentEvent",this),s.subscribe(this._EVENT_SAVE_DOCUMENT_COMPLETED_CHANNEL_PREFIX+e,"_handleNotifySaveCompletedEvent",this),this._isFileTypeSupported=!0,this.own(i.after(this._fileType,"onSupportedFileTypeChange",t.hitch(this,"_handleSupportedFileTypeChange"),!0)),this._backingStore._save=t.hitch(this,this._save),this._backingStore._load=t.hitch(this,this._load),this._backingStore.getLoadPromise=this.getLoadPromise.bind(this),this._loaddeferred=new n,this._savedeferred=null,this._viewportService.whenViewportOpened(function(){this._fireEvent("viewport_opened")}.bind(this)),this.own(i.after(_,"onDocumentRendered",this._fireEvent.bind(this,"rendering_complete")))},_handleNotifySaveCompletedEvent:function(e){this._backingStore.onSaveCompleted()},_handleWriteContentResponse:function(e){this._savedeferred&&!this._savedeferred.isFulfilled()&&(e.data.wasSuccessful?(this._sendMobileSaveEventIfApplicable(!0),this._backingStore.onSaveCompleted(),this._savedeferred.resolve({status:!0})):(this._backingStore.onSaveFailed(e.data.errorId),this._sendMobileSaveEventIfApplicable(!1,e.data.errorId),this._savedeferred.reject({status:!1,errorId:e.data.errorId})),this._savedeferred=null)},hasTemplateType:function(){return!!this._templateType},applyTemplate:function(){this._templateService.applyTemplate(this._templateType,this._templateName),this._templateType=""},setTemplateName:function(e){this._templateName=r.getFileNameNoExtension(e)},_handleReadContentResponse:function(e){if(e.data.status){try{this.hasTemplateType()?(this.applyTemplate(),this._save(this._backingStore.getAbsoluteFilePath())):this._shouldDeferContentLoadUntilViewportOpened()?this._viewportService.whenViewportOpened(function(){setTimeout(function(){this._loadContent(e.data)}.bind(this),0)}.bind(this)):this._loadContent(e.data)}catch(e){a.error("Error while loading the document or output:"+e)}this._sendMobileLoadEventIfApplicable(!0,e),this._backingStore.onHandleFileInfo&&this._backingStore.onHandleFileInfo({originalFilePath:e.data.originalFilePath,fileIsReadOnly:!!e.data.readOnly}),this._loaddeferred.resolve(!0)}else this._fireLoadingErrorEvent(e.data.exception),this._sendMobileLoadEventIfApplicable(!1,e),this._loaddeferred.reject(!1)},_loadContent:function(e){this._loadDocumentAndOutput(e),this._fireLoadingCompleteEvent()},_sendMobileLoadEventIfApplicable:function(e,t){if(this._touchService.isTouchDevice())if(e)window.switchModeToInline(),this._matlabMobileBridge.sendGenericMessage({message:"CONTENT_LOADED",details:""});else{var i={details:t.data.exception,message:"LOAD_ERROR_INVALID"};this._matlabMobileBridge.sendGenericMessage(i)}},_sendMobileSaveEventIfApplicable:function(e,t){this._touchService.isTouchDevice()&&(e?this._matlabMobileBridge.sendGenericMessage({message:"CONTENT_SAVED",details:""}):this._matlabMobileBridge.sendGenericMessage({message:"SAVE_ERROR",details:""}))},onLoadFutureVersion:function(){},save:function(e){return this._save(e)},_saveCallback:function(){return this.save(),!0},_save:function(e){if(e&&"string"==typeof e)return this._savedeferred&&!this._savedeferred.isFulfilled()||(this._savedeferred=new n,this._isFileTypeSupported?this._handleGetMLXContentRequest().then(function(t){var i={status:!0,rtcId:this._rtcId,exception:null,contentType:"text/xml",content:t,filePath:e};this._sendSaveRequest(i)}.bind(this)):(this._backingStore.onSaveFailed("notASupportedFileError"),this._savedeferred.reject({status:!1,errorId:"notASupportedFileError"}))),this._savedeferred.promise;this._fireEvent("save")},_sendSaveRequest:function(e){this._sendRequestBasedOnSetting("_cppSaveEnabled",this._SAVE_SETTING_NAME,this._EVENT_WRITE_CONTENT_REQUEST_CHANNEL_PREFIX,e,this._savedeferred)},getLoadPromise:function(){return this._loaddeferred.promise},load:function(e){return this._load(e)},sendLoadRequest:function(e){var t={filePath:e,rtcId:this._rtcId,contentType:"text/xml"},i=this._getChannelBasedOnSetting(this._EVENT_READ_CONTENT_REQUEST_CHANNEL_PREFIX,this._cppLoadEnabled);s.publish(i,t)},_setupSettingsListener:function(){s.subscribe(this._EVENT_JAVA_SERVICE_RESPONSE_CHANNEL_PREFIX+this._rtcId,"_handleJavaServiceResponse",this);var e={rtcId:this._rtcId};s.publish(this._EVENT_JAVA_SERVICE_REQUEST_CHANNEL_PREFIX,e),this._settingsTimeout=setTimeout(function(){this._defaultSettingValue=!1,this._settingsListenerDeferred.resolve()}.bind(this),this._SETTINGS_TIMEOUT)},_handleJavaServiceResponse:function(){clearTimeout(this._settingsTimeout),this._defaultSettingValue=!0,this._settingsListenerDeferred.resolve()},_sendRequestBasedOnSetting:function(e,t,i,n,r){o(this._settingsListenerDeferred,function(){this[e]=this._rtcSettingService.get(t,!this._defaultSettingValue);var o=this._getChannelBasedOnSetting(i,this[e]);s.publish(o,n),r&&r.progress&&r.progress({message:"requestSentToServer"})}.bind(this))},_getChannelBasedOnSetting:function(e,t){return e+(t?"_cpp":"")},_handleLoadDocumentEvent:function(e){this.sendLoadRequest(e.data)},_handleLoadUntitledDocumentEvent:function(){this._fireLoadingCompleteEvent(),this._loaddeferred.resolve(!0)},_load:function(e){return e&&d.hasFileLocation(this._backingStore)?(""!==this._templateType&&this.setTemplateName(r.nameFromPath(e)),this.sendLoadRequest(e)):(this._fireLoadingCompleteEvent(),this._loaddeferred.resolve(!0)),this._loaddeferred.promise},_fireLoadingCompleteEvent:function(){this._fireEvent("loading_complete").then((function(){}),t.hitch(this,(function(){this._fireEvent("loading_complete")}))),this._backingStore.onLoadComplete()},_fireLoadingErrorEvent:function(e){var i={exception:e};this._fireEvent("loading_error",i).then((function(){}),t.hitch(this,(function(){this._fireEvent("loading_error",i)})))},_addActions:function(){var e=[{id:"save",enabled:!0,key:"ctrl_s",platformKey:{mac:"meta_s"},callback:t.hitch(this,"_saveCallback")}];this._actionService.loadActions(e)},_handleGetContentRequest:function(e){var t=e.data,i=t.contentType,n=t.additionalArguments,r={status:!0,exception:null,contentType:i,content:null};try{var a=this._handleGetMLXContentRequest();r.content=a}catch(e){r.exception=e.stack,r.status=!1}var l=this._EVENT_GET_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId;o(a,function(e){r.content=e,"docx"===i&&n.Destination?this._handleDOCXExport(n.Destination,r,l):s.publish(l,r)}.bind(this),(function(e){r.exception=e.stack,r.status=!1,r.content=null,s.publish(l,r)}))},_handleDOCXExport:function(e,t,i){t.filePath=e,t.rtcId=this._rtcId,t.contentType="text/xml",this._savedeferred=new n,this._sendRequestBasedOnSetting("_cppSaveEnabled",this._SAVE_SETTING_NAME,this._EVENT_WRITE_CONTENT_REQUEST_CHANNEL_PREFIX,t,this._savedeferred),this._savedeferred.then((function(){s.publish(i,t)}),(function(e){t.exception=e.stack,t.status=!1,s.publish(i,t)}))},getPartialMLXContentOpcPackage:function(){var e=new u;return p.write(this._internalDocument,{opcPackage:e,serializers:this._serializers}),e},getMLXContentOpcPackage:function(){var e=this.getPartialMLXContentOpcPackage();return f.write(this._documentationService,this._fileType,e).then((function(){return e}))},_handleGetMLXContentRequest:function(){return this.getMLXContentOpcPackage().then((function(e){return u.toJson(e)}))},loadDocumentAndOutputFromOpcPackage:function(e){h.read(this._internalDocument,e,this._serializers)||this.onLoadFutureVersion()},_loadDocumentAndOutput:function(e){this.loadDocumentAndOutputFromOpcPackage(u.fromJson(e))},_handleSetContentRequest:function(e){var t=e.data;this._handleContentLoadWhenViewPortIsReady(e),this._shouldDeferContentLoadUntilViewportOpened()?this._viewportService.whenViewportOpened(function(){this._processContentJson(t.opcPackage)}.bind(this)):this._processContentJson(t.opcPackage)},_processContentJson:function(e){var t=!1,i={status:!0,exception:null};try{this._loadDocumentAndOutput(e)}catch(e){i.exception=e.stack,i.status=!1,t=!0}s.publish(this._EVENT_SET_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId,i),t?this._fireLoadingErrorEvent(i.exception):this._fireLoadingCompleteEvent()},_fireEvent:function(e,t){var i={eventName:e,eventData:t};return s.publish(this._EVENT_CHANNEL_PREFIX+this._rtcId,i)},_handleContentLoadWhenViewPortIsReady:function(e){this._deferContentLoadUntilViewPortReady=e.data.deferSetContentUntilViewportOpened},_shouldDeferContentLoadUntilViewportOpened:function(){return this._deferContentLoadUntilViewPortReady||this._rtcSettingService.get(this.DEFER_SET_CONTENT_UNTIL_VIEWPORT_OPENED_SETTING)},_handleSupportedFileTypeChange:function(e){this._isFileTypeSupported=e},destroy:function(){this.inherited(arguments),null!==this._loaddeferred&&this._loaddeferred.cancel(!1),null!==this._savedeferred&&this._savedeferred.cancel({status:!1,errorId:"PluginDestroyed"}),s.unsubscribe(this._EVENT_GET_CONTENT_REQUEST_CHANNEL_PREFIX+this._rtcId,"_handleGetContentRequest",this),s.unsubscribe(this._EVENT_SET_CONTENT_REQUEST_CHANNEL_PREFIX+this._rtcId,"_handleSetContentRequest",this),s.unsubscribe(this._EVENT_WRITE_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId,"_handleWriteContentResponse",this),s.unsubscribe(this._EVENT_READ_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId,"_handleReadContentResponse",this),s.unsubscribe(this._EVENT_DEFER_LOAD_UNTIL_VIEWPORT_READY_PREFIX+this._rtcId,"_handleContentLoadWhenViewPortIsReady",this),s.unsubscribe(this._EVENT_LOAD_DOCUMENT_CHANNEL_PREFIX+this._rtcId,"_handleLoadDocumentEvent",this),s.unsubscribe(this._EVENT_LOAD_UNTITLED_DOCUMENT_CHANNEL_PREFIX+this._rtcId,"_handleLoadUntitledDocumentEvent",this),s.unsubscribe(this._EVENT_JAVA_SERVICE_RESPONSE_CHANNEL_PREFIX+this._rtcId,"_handleJavaServiceResponse",this),s.unsubscribe(this._EVENT_SAVE_DOCUMENT_COMPLETED_CHANNEL_PREFIX+this._rtcId,"_handleNotifySaveCompletedEvent",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(319)],o=i.dj.d(n,(function(e){return{_supportedVersions:[],_showCompatibilityBanner:!1,processXML:function(e,t){this._showCompatibilityBanner=!1,this._supportedVersions=t,this._latestMatlabVersion=this._getLatestMatlabVersion(t);var i=this._getXMLDocumentObject(e);this._processDocument(i);var n=(new window.XMLSerializer).serializeToString(i);return/Edge/.test(navigator.userAgent)&&i.childNodes[0]&&(n=i.childNodes[0].outerHTML),{xmlDocument:n,status:this._showCompatibilityBanner}},_getLatestMatlabVersion:function(e){return 0===e.length?"":(e.sort(),e.reverse(),e[0])},_getXMLDocumentObject:function(e){return(new window.DOMParser).parseFromString(e,"text/xml")},_processDocument:function(e){var t=this._processNode(e.childNodes[0]);return e.replaceChild(t,e.childNodes[0]),e},_processNode:function(e){var t,i=document.createDocumentFragment(),n=[];if(this._isAlternateContentNode(e)){this._showCompatibilityBannerIfApplicable(e);var o=this._getCompatibleNode(e);o&&(n=o.childNodes),t=i}else n=e.childNodes,t=e.cloneNode(!1),i.appendChild(t);return[].forEach.call(n,(function(e){var i=this._processNode(e);this._appendChildren(t,i.childNodes)}),this),i},_isAlternateContentNode:function(t){return t.nodeName===e.ALTERNATECONTENT_TAG_WITH_NAMESPACE},_showCompatibilityBannerIfApplicable:function(e){this._showCompatibilityBanner||this._getHighestChoiceNodeVersion(e)>this._latestMatlabVersion&&(this._showCompatibilityBanner=!0)},_appendChildren:function(e,t){[].forEach.call(t,(function(t){e.appendChild(t.cloneNode(!0))}),this)},_getHighestChoiceNodeVersion:function(t){var i="";return this._getAllChildNodesOfType(t,e.CHOICE_TAG_WITH_NAMESPACE).forEach((function(e){var t=this._getChoiceNodeVersion(e);t>i&&(i=t)}),this),i},_getCompatibleNode:function(t){var i=null,n="";return this._getAllChildNodesOfType(t,e.CHOICE_TAG_WITH_NAMESPACE).forEach((function(e){var t=this._getChoiceNodeVersion(e);-1!==this._supportedVersions.indexOf(t)&&t>n&&(i=e,n=t)}),this),i||this._getFallbackNode(t)},_getAllChildNodesOfType:function(e,t){var i=[];return[].forEach.call(e.childNodes,(function(e){e.nodeName===t&&i.push(e)})),i},_getFallbackNode:function(t){var i=this._getAllChildNodesOfType(t,e.FALLBACK_TAG_WITH_NAMESPACE);return 0===i.length?null:i[0]},_getChoiceNodeVersion:function(t){return t.getAttribute(e.REQUIRES_ATTRIBUTE_NAME)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(300)],o=i.dj.d(n,(function(e,t){return{_DOCUMENTATION_LOCATION:"/documentation/doc.xml",_DOCUMENTATION_FORMAT:"text/xml",_DOCUMENTATION_RELATIONSHIP_TYPE:"http://schemas.mathworks.com/matlab/code/2013/relationships/documentation",_DOCUMENTATION_TAG:"documentation",_FUNCTION:"function",_CLASSDEF:"classdef",_NAME:"title",_SYNTAXES:"syntaxes",_SYNTAX:"syntax",_SYNTAX_DESCRIPTION:"syntax_description",_PURPOSE:"purpose",_DESCRIPTION:"description",_DESCRIPTION_TEXT:"descriptionText",_PROPERTIES:"properties",_PROPERTY:"property",_METHODS:"methods",_METHOD:"method",_CLASS_NAME:"class_name",_RELEASE_TAG:"release",_RELEASE:"21a",write:function(i,n,o){var r=new e;return n.isFunction()?(i.getFileDocumentation().then(function(e){var i=this._getDocumentationForFile(e,n),a=t.serializeToFormattedString(i);this._writeToOpcPackage(a,o),r.resolve()}.bind(this),(function(){r.resolve()})),r.promise):r.resolve()},_getDocumentationForFile:function(e,i){var n=t.createDocument(this._DOCUMENTATION_TAG);n.documentElement.setAttribute(this._RELEASE_TAG,this._RELEASE);var o=i.isFunction()?this._FUNCTION:this._CLASSDEF;e.topLevelDoc.purpose=e.topLevelDoc.purposeText;var r=this._populateContainerForElement(e.topLevelDoc,o);if(i.isClass()){var a=this._createSyntaxDescriptionBlock(e.constructorDoc),s=this._createPropertiesBlock(e.propertiesDoc),l=this._createMethodsBlock(e.methodsDoc);r.appendChild(a),r.appendChild(s),r.appendChild(l)}return n.documentElement.appendChild(r),n},_createSyntaxesBlock:function(e){var t=this._getContainer(this._SYNTAXES),i=this._getContainerForText(e,this._SYNTAX);return t.appendChild(i),t},_createSyntaxDescriptionBlock:function(e){return this._populateContainerForElement(e,this._SYNTAX_DESCRIPTION)},_createPropertiesBlock:function(e){var t=this._getContainer(this._PROPERTIES);return e.forEach((function(e){e.purpose=e.purposeText;var i=this._populateContainerForElement(e,this._PROPERTY);t.appendChild(i)}),this),t},_createMethodsBlock:function(e){var t=this._getContainer(this._METHODS);return e.forEach((function(e){e.purpose=e.purposeText;var i=this._populateContainerForElement(e,this._METHOD),n=this._getContainerForText(e.className,this._CLASS_NAME);i.appendChild(n),t.appendChild(i)}),this),t},_populateContainerForElement:function(e,t){var i=this._getContainer(t);if(e.name){var n=this._getContainerForText(e.name,this._NAME);i.appendChild(n)}if(e.syntax){var o=this._createSyntaxesBlock(e.syntax);i.appendChild(o)}var r=this._getContainerForText(e.purpose,this._PURPOSE);i.appendChild(r);var a=this._getContainerForText(e.description,this._DESCRIPTION);i.appendChild(a);var s=this._getContainerForText(e.descriptionText,this._DESCRIPTION_TEXT);return i.appendChild(s),i},_getContainerForText:function(e,t){var i=document.createElementNS(null,t),n=document.createTextNode(e);return i.appendChild(n),i},_getContainer:function(e){return document.createElementNS(null,e)},_writeToOpcPackage:function(e,t){t.createPart(this._DOCUMENTATION_LOCATION,this._DOCUMENTATION_FORMAT).setContent(e),t.createRelationship(this._DOCUMENTATION_RELATIONSHIP_TYPE,this._DOCUMENTATION_LOCATION)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(209),i(319),i(300),i(1459),i(2111)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{_wrapperCreated:!1,_FORWARD_COMPATIBILITY_RELEASE:"R2019a",write:function(e){try{var i=e.save();if(!i)return null;var o=n.createDocument(r.lookup.OUTPUT_ROOT_TAG_NAME);for(var a in i)if(i.hasOwnProperty(a)){var s=document.createElementNS(null,a);s=this._writeElement(s,i[a]),o.documentElement.appendChild(s)}return n.serializeToFormattedString(o)}catch(e){return t.assert(!1,"Exception occurred while writing output object. Outputs will not be saved:"+e),null}},_createArrayElement:function(e,t){var i;e.setAttribute(r.lookup.TYPE_ATTRIBUTE_NAME,r.lookup.ARRAY);for(var n=0;n<t.length;n++)i=document.createElementNS(null,r.lookup.ELEMENT_TAG_NAME),e.appendChild(i),this._writeElement(i,t[n])},_createObjectElement:function(e,t){var i;for(var n in e)if(e.hasOwnProperty(n)){i=document.createElementNS(null,n);var o=this._writeElement(i,e[n]);t.appendChild(o)}},_createTextElement:function(e,t){if(e.tagName===r.lookup.META_DATA_TAG_NAME)e.setAttribute(r.lookup.VALUE,t);else{var i=document.createTextNode(t);e.appendChild(i)}},_createCompatibilityBlockElement:function(e,t){if(this._wrapperCreated)return this._createAlternateContent(e.tagName,t);this._wrapperCreated=!0;var i=e.tagName,n=this._createWrapperChoiceElement(i,t),o=this._createWrapperFallbackElement(i,t);return this._wrapperCreated=!1,this._createWrapperAlternateContent(n,o)},_writeElement:function(e,t){return t instanceof o?this._createCompatibilityBlockElement(e,t):(Array.isArray(t)?this._createArrayElement(e,t):this._isObject(t)?this._createObjectElement(t,e):this._createTextElement(e,t),e)},_isObject:function(e){return e&&"object"==typeof e},_createWrapperChoiceElement:function(e,t){var o=this._createAlternateContent(e,t),r=n.createAlternateContentXMLElementNS(i.MCNAMESPACE_TAG,i.CHOICE_TAG);return r.setAttribute(i.REQUIRES_ATTRIBUTE_NAME,this._FORWARD_COMPATIBILITY_RELEASE),r.appendChild(o),r},_createWrapperFallbackElement:function(e,t){var o=this._extractElements(t),r=n.createAlternateContentXMLElementNS(i.MCNAMESPACE_TAG,i.FALLBACK_TAG),a=document.createElementNS(null,e);return r.appendChild(a),this._writeElement(a,o),r},_createWrapperAlternateContent:function(e,t){var o=n.createAlternateContentXMLElementNS(i.MCNAMESPACE_TAG,i.ALTERNATECONTENT_TAG);return o.appendChild(e),o.appendChild(t),o},_createAlternateContent:function(e,t){var o=t.getRequiredVersion(),r=t.getChoice(),a=t.getFallback(),s=n.createAlternateContentXMLElementNS(i.MCNAMESPACE_TAG,i.ALTERNATECONTENT_TAG),l=n.createAlternateContentXMLElementNS(i.MCNAMESPACE_TAG,i.CHOICE_TAG);l.setAttribute(i.REQUIRES_ATTRIBUTE_NAME,o),s.appendChild(l);var c=document.createElementNS(null,e);l.appendChild(c),this._writeElement(c,r);var d=n.createAlternateContentXMLElementNS(i.MCNAMESPACE_TAG,i.FALLBACK_TAG);s.appendChild(d);var u=document.createElementNS(null,e);return d.appendChild(u),this._writeElement(u,a),s},_extractElements:function(e){if(e instanceof o)return this._extractElements(e.getFallback());if(Array.isArray(e))return e.map((function(e){return this._extractElements(e)}),this);if(this._isObject(e)){var t={};return Object.keys(e).forEach((function(i){t[i]=this._extractElements(e[i])}),this),t}return e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{lookup:{OUTPUT_ROOT_TAG_NAME:"embeddedOutputs",ELEMENT_TAG_NAME:"element",TYPE_ATTRIBUTE_NAME:"type",META_DATA_TAG_NAME:"metaData",REGION_TAG_NAME:"region",VALUE:"value",ARRAY:"array",NAMESPACE_TAG:"mc",MARKUP_COMPATIBILITY_NAMESPACE:"http://schemas.openxmlformats.org/markup-compatibility/2006",ALTERNATE_CONTENT_TAG:"AlternateContent",CHOICE_TAG:"Choice",REQUIRE_TAG:"Requires",MATLAB_VERSION_R2016B:"R2016b",FALLBACK_TAG:"Fallback"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(211),i(209),i(2108),i(2111)],o=i.dj.d(n,(function(e,t,i,n,o){return{_ELEMENT_NODE:1,_TEXT_NODE:3,_SUPPORTED_READER_VERSIONS:["R2019a","R2019b"],read:function(e,t){try{var r=n.processXML(t.output,this._SUPPORTED_READER_VERSIONS),a=(new window.DOMParser).parseFromString(r.xmlDocument,"text/xml").getElementsByTagName(o.lookup.OUTPUT_ROOT_TAG_NAME)[0],s=this._visitNode(a);return e.load(s),!r.status}catch(e){return i.assert(!1,"Exception occurred while reading output object. Outputs will not be loaded:"+e),!0}},_visitLeafNode:function(e){return this._getValue(e)},_visitNonLeafNode:function(e){return this._isArrayNode(e)?this._getArrayObject(e):this._getObject(e)},_visitNode:function(e){return this._isLeafNode(e)?this._visitLeafNode(e):this._visitNonLeafNode(e)},_getArrayObject:function(e){for(var t=[],i=0;i<e.childNodes.length;i++){var n=this._visitNode(e.childNodes[i]);t.push(n)}return t},_getObject:function(e){if(!e.hasChildNodes())return"";for(var t={},i=0;i<e.childNodes.length;i++){var n=this._visitNode(e.childNodes[i]),o=e.childNodes[i].nodeName;this._isArrayElement(o)?t=n:t.hasOwnProperty(o)?console.log("Duplicate Entry Found, Ignoring this property:"+o):t[o]=n}return t},_getValue:function(e){return void 0!==e.childNodes[1]?e.textContent:e.childNodes[0].nodeValue},_isLeafNode:function(e){return e.childNodes[0]&&e.childNodes[0].nodeType===this._TEXT_NODE},_isArrayNode:function(e){return 1===e.attributes.length&&e.attributes[0].nodeValue===o.lookup.ARRAY},_isObjectNode:function(e){return e.childNodes[0].nodeType==this._ELEMENT_NODE},_isArrayElement:function(e){return e===o.lookup.ELEMENT_TAG_NAME}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(207)],o=i.dj.d(n,(function(e,t,i){return t(i,{constructor:function(){this._isScript=!0},isFileTypeScript:function(){return this._isScript},onScriptFileTypeChange:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(204),i(207),i(827),i(2115)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(n,{_HYPERLINK_TARGET:"http://www.mathworks.com/help/matlab/release-notes.html",_HYPERLINK_ID:"forwardCompatibilityBannerHyperlink",constructor:function(t,n,o,r,a,s,l){this._featureInterface=o,this._document=n,this._rtcDomNodeExternal=r,this._focusService=a,this._bannerManager=s,this._hyperlinkService=l,this.own(e.after(t,"onLoadFutureVersion",i.hitch(this,"_showForwardCompatibilityBanner")))},_showForwardCompatibilityBanner:function(){this._banner=new o({bannerText:r.forwardCompatibleNotification,buttons:[{text:"Edit",callback:i.hitch(this,this._makeDocumentEditable,this._document)}],closable:!1,parent:this._bannerManager.getTopBannerContainer(),type:"top",resizer:this._featureInterface.resize,focusService:this._focusService,sibling:this._rtcDomNodeExternal}),this._bannerManager.registerBanner(this._banner,this._rtcDomNodeExternal),this._attachListenerToBannerHyperlink(),this._document.setReadOnly(!0)},_makeDocumentEditable:function(e){e.setReadOnly(!1),this._banner.closeBanner(),this._bannerManager.deregisterBanner(this._banner,this._rtcDomNodeExternal),this._banner=null,this._focusService.setFocus()},_attachListenerToBannerHyperlink:function(){document.getElementById(this._HYPERLINK_ID).onclick=this._onHyperlinkClick.bind(this)},_onHyperlinkClick:function(){this._hyperlinkService.openUrl(this._HYPERLINK_TARGET)},destroy:function(){this._banner&&(this._banner.closeBanner(),this._bannerManager.deregisterBanner(this._banner,this._rtcDomNodeExternal))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(5684),i(5685),i(5686),i(5687)],o=i.dj.d(n,(function(e,t){return t(e,"livecode_features/l10n/nls/liveeditor",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={ROOT:"root",ORPHAN_ROOT:"orphan_root"}},function(e,t,i){var n,o;n=[i(203),i(2118)],o=i.dj.d(n,(function(e,t){return function(i){i.forEach((function(e){Object.keys(e).forEach((function(i){this[i]=this[i]||{},t.mergeComponentManifest(this[i],e[i])}),this)}),this),Object.keys(this).forEach((function(t){["view","controller"].forEach((function(i){this[t][i]=e(this[t][i],{})}),this)}),this)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){return{mergeComponentManifest:function(t,i){t.model=t.model||{},i.model&&(Array.isArray(i.model)?i.model.forEach((function(i){t.model=e.mixin(t.model,i)})):t.model=e.mixin(t.model,i.model)),["view","controller","properties","events"].forEach((function(e){t[e]=t[e]||[],i[e]&&(Array.isArray(i[e])?t[e]=t[e].concat(i[e]):t[e].push(i[e]))}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=e([],{getControllerById:function(e){},addControllerToChannelMap:function(e,t){},deleteControllerFromChannelMap:function(e){}}),i=e([],{constructor:function(e){this._controllerCache={},this._channel=e},addControllerToChannelMap:function(e,t){this._controllerCache[e]=t},deleteControllerFromChannelMap:function(e){delete this._controllerCache[e]},getControllerById:function(e){if(this._controllerCache.hasOwnProperty(e))return this._controllerCache[e];throw new Error("No controller handle exist for given channel :",this._channel," and id :",e)}});return t.clearInstances=function(){t._instances={}},t.clearInstances(),t.getInstance=function(e){if(!this._instances[e]){var t=new i(e);this._instances[e]={service:t}}return this._instances[e].service},t.cleanup=function(e){t._instances[e]&&delete t._instances[e]},t.Impl=i,t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){if("string"!=typeof(e=e||{}).name||0===e.name.length)throw new Error("A valid 'name' needs to be provided for an event!");if(this.name=e.name,void 0!==e.viewName&&("string"!=typeof e.viewName||0===e.viewName.length))throw new Error("If a 'viewName' is provided it should be a non-zero length string!");this.viewName=e.viewName?e.viewName:e.name,this.belongsToAction=!!e.belongsToAction}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._controller=e},handleSizeSet:function(e){},handleLocationSet:function(e){},updateOuterPositionForNoMarginsComponent:function(e){},getController:function(){return this._controller},getPeerNode:function(){return this.getController().getPeerNode()},getInnerSizeInPixels:function(){return this.getPeerNode().getProperty("Size")},getInnerLocationInPixels:function(){return this.getPeerNode().getProperty("Location")},getOuterSizeInPixels:function(){return this.getPeerNode().getProperty("OuterSize")},getOuterLocationInPixels:function(){return this.getPeerNode().getProperty("OuterLocation")},getInsets:function(){return this.getController().getInsets()},getRefFrameSize:function(){return this.getController().getRefFrameSize()},getOuterFromInner:function(e,t){return this.getController().getOuterFromInner(e,t)},getInnerFromOuter:function(e,t){return this.getController().getInnerFromOuter(e,t)},handleInnerLocationSet:function(e){this.getController().handleInnerLocationSet(e)},handleInnerSizeSet:function(e){this.getController().handleInnerSizeSet(e)},updateInsets:function(){this.getController().updateInsets()},revalidate:function(){this.getController().revalidate()},areArrayValuesDifferent:function(e,t){return this.getController().areArrayValuesDifferent(e,t)},setPositionPropertiesInPixels:function(e){var t,i=["Size","Location","OuterSize","OuterLocation"],n=Object.keys(e),o={},r=this.getController().getPeerNode();for(t=0;t<n.length;t++){if(-1===i.indexOf(n[t]))throw new Error("Expected properties from the list: "+i);var a=r.getProperty(n[t]),s=e[n[t]],l="_handle"+n[t]+"Set";if(r[l]){var c=r[l](s);c.isResolved()&&(s=c.Value)}void 0!==a&&a[0]===s[0]&&a[1]===s[1]||(o[n[t]]=s)}Object.keys(o).length>0&&(this.getController().handleClientDrivenPropertiesChange("SizeLocationChanged",o,o,"public"),void 0===o.OuterLocation&&void 0===o.OuterSize||this.updateInsets())},setSizeLocationInPixels:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2121),i(687)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){this._unitsService=new i,this._sizeForView=[0,0],this._locationForView=[0,0],this._outerSizeForView=[0,0],this._outerLocationForView=[0,0],this._units="pixels"},getUnitsServices:function(){return this._unitsService},getUnits:function(){return this._units},getInnerSizeInPixels:function(){var e=this.getPeerNode().getProperty("Size");return this._convertSizeToPixels(e)},getInnerLocationInPixels:function(){var e=this.getPeerNode().getProperty("Location");return this._convertLocationToPixels(e)},getOuterSizeInPixels:function(){var e=this.getPeerNode().getProperty("OuterSize"),t=this.getRefFrameSize();return this.getUnitsServices().getSizeOrLocationInPixelsFromUnitsValue(e,t)},getOuterLocationInPixels:function(){var e=this.getPeerNode().getProperty("OuterLocation");return this._convertLocationToPixels(e)},handleSizeSet:function(e){if(!e.Value)throw new Error("UIControlPositionStrategy expects input to be a struct. Input = ",e);this.setSizeInUnits(e)},handleLocationSet:function(e){var t=this.getUnitsServices().getUnitsFromUnitsValue(e);this._units=t;var i=this.getInsets(),n=this.getRefFrameSize(),o=this.getUnitsServices().getValueInPixelsFromUnitsValue(e,n).slice(0,2),r=this._convertLocationFromOneToZeroOrigin(o);if(this.areArrayValuesDifferent(r,this._locationForView)){this._locationForView=r;var a=this.getInnerSizeInPixels(),s=o.concat(a),l=this.getOuterFromInner(s,i),c=this.getUnitsServices().getLocationForPeerNodeFromPixelValue(l,t,n);this.setPositionPropertiesInUnits({OuterLocation:c}),this.handleInnerLocationSet(o),this.revalidate()}},updateOuterPositionForNoMarginsComponent:function(e){var t=this.getInnerLocationInPixels();"normalized"===this._units&&(t=this._convertLocationFromOneToZeroOrigin(t));var i=this.getRefFrameSize(),n=this._units,o=this.getUnitsServices().getSizeOrLocationForPeerNodeFromSizeOrLocationValue(e,n,i),r=this.getUnitsServices().getSizeOrLocationForPeerNodeFromSizeOrLocationValue(t,n,i);this.setPositionPropertiesInUnits({OuterSize:o,OuterLocation:r})},handleSizeLocationFromLayoutManager:function(e){var t=this._outerSizeForView,i=this._outerLocationForView;"pixels"===this.getUnits()&&(e=this._convertFromZeroToOneOrigin(e));var n=[i[0],i[1],t[0],t[1]];if(!this.areArrayValuesDifferent(n,e))return null;var o=this.getRefFrameSize(),r=this.getInnerFromOuter(e,this.getInsets()),a=this.getUnitsServices().getSizeForPeerNodeFromPixelValue(e,this._units,o),s=this.getUnitsServices().getLocationForPeerNodeFromPixelValue(e,this._units,o),l=this.getUnitsServices().getSizeForPeerNodeFromPixelValue(r,this._units,o),c=this.getUnitsServices().getLocationForPeerNodeFromPixelValue(r,this._units,o);return this.setPositionPropertiesInUnits({OuterSize:a,OuterLocation:s}),this._outerSizeForView=[e[2],e[3]],this._outerLocationForView=[e[0],e[1]],{Size:l,Location:c,PixelPosition:r}},setSizeLocationInPixels:function(e){var t=this.handleSizeLocationFromLayoutManager(e);if(null!==t){var i=this._sizeForView,n=this._locationForView,o=[n[0],n[1],i[0],i[1]];if(this.areArrayValuesDifferent(o,t.PixelPosition)){var r=t.Size,a=t.Location;this.handleSizeSet(r),this.handleLocationSet(a)}this.getController()._updateWidgetDOMPosition()}},setSizeInUnits:function(e){this._units=this.getUnitsServices().getUnitsFromUnitsValue(e),this._sizeInUnits=this.getUnitsServices().getPositionInUnitsFromUnitsValue(e);var t=this.getRefFrameSize(),i=this.getUnitsServices().getSizeOrLocationInPixelsFromUnitsValue(e,t);this.areArrayValuesDifferent(i,this._sizeForView)&&(this._sizeForView=i,this.handleInnerSizeSet(i),this.revalidate())},setPositionPropertiesInPixels:function(e){for(var t=Object.keys(e),i=["Size","Location","OuterSize","OuterLocation"],n=0;n<t.length;n++){if(-1===i.indexOf(t[n]))throw new Error("Expected properties from the list: "+i);var o=e[t[n]],r=this.getUnitsServices().getSizeOrLocationForPeerNodeFromSizeOrLocationValue(o,this.getUnits(),this.getRefFrameSize());e[t[n]]=r}this.setPositionPropertiesInUnits(e)},setPositionPropertiesInUnits:function(e){var t,i=["Size","Location","OuterSize","OuterLocation"],n=Object.keys(e),o={},r=this.getPeerNode(),a=this.getUnitsServices();for(t=0;t<n.length;t++){if(-1===i.indexOf(n[t]))throw new Error("Expected properties from the list: "+i);var s=a.getPositionInUnitsFromUnitsValue(r.getProperty(n[t])),l=e[n[t]],c="_handle"+n[t]+"Set";if(r[c]){var d=r[c](l);d.isResolved()&&(l=d.Value)}void 0!==s&&s[0]===l[0]&&s[1]===l[1]||(o[n[t]]=l)}Object.keys(o).length>0&&(this.getController().handleClientDrivenPropertiesChange("SizeLocationChanged",o,o,"public"),void 0===o.OuterLocation&&void 0===o.OuterSize||this.updateInsets())},_convertSizeToPixels:function(e){var t=this.getRefFrameSize();return this.getUnitsServices().getSizeOrLocationInPixelsFromUnitsValue(e,t)},_convertLocationToPixels:function(e){var t=this._convertSizeToPixels(e);return"normalized"===this.getUnits()&&(t=this._convertLocationFromZeroToOneOrigin(t)),t},_convertLocationFromZeroToOneOrigin:function(e){var t=e.slice();return t[0]+=1,t[1]+=1,t},_convertLocationFromOneToZeroOrigin:function(e){var t=e.slice();return t[0]-=1,t[1]-=1,t},_convertFromZeroToOneOrigin:function(e){return[e[0]+1,e[1]+1,e[2],e[3]]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_calculateConversionRatios:function(e,t,i){var n=e.toLowerCase(),o=t.toLowerCase();if(void 0===i){if("normalized"===n||"normalized"===o)throw new Error("UnitsService: Reference frame is requried to convert from Normalized units to Pixels.");i=[1,1]}var r=1,a=1,s={Value:1,Operation:function(e,t){return e*t}},l={Value:1,Operation:function(e,t){return e*t}};if("pixels"===n);else if("inches"===n)r=96,a=96;else if("normalized"===n)r=i[0],a=i[1];else if("points"===n)r=96/72,a=96/72;else{if("centimeters"!==n)throw new Error("Source units are not supported.");r=96/2.54,a=96/2.54}if("pixels"===o);else if("inches"===o)r/=96,a/=96;else if("points"===o)r=72*r/96,a=72*a/96;else if("centimeters"===o)r=2.54*r/96,a=2.54*a/96;else{if("normalized"!==o)throw new Error("Target units are not supported.");0===i[0]?r=void 0:(r=i[0]/r,s.Operation=function(e,t){return e/t}),0===i[1]?a=void 0:(a=i[1]/a,l.Operation=function(e,t){return e/t})}if(void 0!==r&&void 0!==a)return s.Value=r,l.Value=a,[s,l]},convertPosition:function(e,t,i,n){var o=this._calculateConversionRatios(e,t,n);if(void 0!==o){var r=o[0].Value,a=o[0].Operation,s=o[1].Value,l=o[1].Operation;return[a(i[0],r),l(i[1],s),a(i[2],r),l(i[3],s)]}},convertFontSize:function(e,t,i,n){var o=this._calculateConversionRatios(e,t,n);if(void 0!==o){var r=o[1].Value;return(0,o[1].Operation)(i,r)}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204)],o=i.dj.d(n,(function(e,t,i){return e([],{isPositionPropertyChanging:function(e,t){var i=e.oldValues[t],n=e.newValues[t];if((void 0===i||""===i)&&void 0!==n)return!0;if(Array.isArray(i)&&!Array.isArray(n))return!0;var o=this.getRefFrameSize();return n=this.getUnitsServices().getValueInPixelsFromUnitsValue(n,o),i=this.getUnitsServices().getValueInPixelsFromUnitsValue(i,o),this.areArrayValuesDifferent(i,n)},areArrayValuesDifferent:function(e,t){if(!e||!t)return!0;if(!Array.isArray(e)||!Array.isArray(t))throw new Error("areArrayValuesEqual expects the old and new property values to be arrays");if(e.length!==t.length)throw new Error("the two values are arrays of different length");var i,n=!1;for(i=0;i<t.length;i++)if(Math.abs(e[i]-t[i])>1e-5){n=!0;break}return n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(687)],o=i.dj.d(n,(function(e,t){return e([t],{getValueInPixelsFromUnitsValue:function(e,t){return this._validateInput(e),e},getValueForPeerNodeFromPixelValue:function(e,t,i){return e},getSizeForPeerNodeFromPixelValue:function(e,t,i){return e.slice(2,4)},getLocationForPeerNodeFromPixelValue:function(e,t,i){return e.slice(0,2)},getSizeOrLocationForPeerNodeFromSizeOrLocationValue:function(e,t,i){return e},getPositionInUnitsFromUnitsValue:function(e){return this._validateInput(e),e},getSizeOrLocationInPixelsFromUnitsValue:function(e,t){return this._validateInput(e),e},getUnitsFromUnitsValue:function(e){return this._validateInput(e),"pixels"},_validateInput:function(e){if(void 0!==e.Value)throw new Error("UnitsServicePixels does not expect the input to be a struct. Input = ",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5712)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(){this._compSize=[0,0],this._cssFontSize=0,this._cssFontUnits="px"},_FontSize:function(e){this.updateFontSizeOnWidget(e)},updateFontSizeOnWidget:function(e){var i=t.getCSSFontUnits(e),n=t.getFontSizeValue(e,this._compSize);this._cssFontSize===n&&this._cssFontUnits===i||(this._cssFontSize=n,this._cssFontUnits=i,this.updateWidgetFontSizeInUnits(i,n))},_onComponentViewSizeChanged:function(e){this._compSize=e;var t=this._getPeerNodeFontSizeValue();t&&this.updateFontSizeOnWidget(t)},_getPeerNodeFontSizeValue:function(){return this.getPeerNode().getProperty("FontSize")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={};return{getMap:function(){return e},removeItem:function(t){delete e[t]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{type:"radio",postCreate:function(){this.inherited(arguments),this.on("change",t.hitch(this,(function(){this.emit("button-selection-change",{detail:{isSelected:this.get("checked")}})})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(217),i(211),i(349),i(837),i(287)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(null,{width:100,height:20,preferredSize:{},constructor:function(){this.preferredSize={}},OVERALL_HEIGHT_PADDING:0,OVERALL_WIDTH_PADDING:0,_setWidthAttr:function(e){var t;"100%"===e?(t="calc(100% - "+this.OVERALL_WIDTH_PADDING+"px)",i.set(this.domNode,{width:t})):(t=this._getWidthSansVisualEffects(e),i.set(this.domNode,{width:t+"px"}),t>=e&&(e=t)),this._set("width",e)},_setHeightAttr:function(e){var t;"100%"===e?(t="calc(100% - "+this.OVERALL_HEIGHT_PADDING+"px)",i.set(this.domNode,{height:t})):(t=this._getHeightSansVisualEffects(e),i.set(this.domNode,{height:t+"px"}),t>=e&&(e=t)),this._set("height",e)},_getWidthSansVisualEffects:function(e){var t=e-this.OVERALL_WIDTH_PADDING;return t<0&&(t=this.OVERALL_WIDTH_PADDING),t},_getHeightSansVisualEffects:function(e){var t=e-this.OVERALL_HEIGHT_PADDING;return t<0&&(t=this.OVERALL_HEIGHT_PADDING),t},_getPreferredSize:function(e,t,i){var n,o=this.get("fontStyle")+" "+this.get("fontWeight")+" "+this.get("fontSize")+"px "+this.get("fontFamily");n=0===i.textContent.length?".":i.textContent;var r=s.getTextPosition(n,o),a=Math.max(r.h,t);return{width:Math.max(r.w,e),height:a}},calculateInputPreferredSize:function(e){return a.calculateInputPreferredSize(e,r.TEXT_BOX.OVERALL_HEIGHT_BORDER,r.TEXT_BOX.OVERALL_WIDTH_PADDING)},calculateSpanPreferredSize:function(e){var t=r.SPAN.MINIMUM_WIDTH,i=r.SPAN.MINIMUM_HEIGHT;return this._getPreferredSize(t,i,e)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{sanitizeHtmlForUILabelInterpreter:function(e,t,i){return function(n){var o=function(e,t){var i=String.prototype.trim.call(t),n=i.indexOf(":");return n<0&&e.relative[i.charAt(0)]||e[i.substring(0,n)+":"]?i:"#"},r=function(n){var r;n.nodeType===window.Node.ELEMENT_NODE?e[n.tagName]?(r=document.createElement(n.tagName),function(e,i){for(var n=[],r=0;r<e.length;r+=1){var a=e[r];if(i.hasAttribute(a)){var s=i.getAttribute(a),l="";l=t[a]?o(t[a],s):s,n.push({key:a,value:l})}}return n}(e[n.tagName],n).forEach((function(e){r.setAttribute(e.key,e.value)})),function(e,t,i){if(t.style)for(var n=0;n<e.length;n+=1){var o=e[n],r=i.style[o];void 0!==t.style[o]&&(t.style[o]=r)}}(i,r,n)):r=document.createDocumentFragment():r=n.nodeType===window.Node.TEXT_NODE?document.createTextNode(n.textContent):document.createDocumentFragment();return r},a=function(e,t){t||(t=0);var i=document.createDocumentFragment();if(t>150||!e)return i;for(var n=e.firstChild;n;n=n.nextSibling){var o=r(n);n.nodeType===window.Node.ELEMENT_NODE&&o.appendChild(a(n,t+1)),i.appendChild(o)}return i},s=(new DOMParser).parseFromString(n,"text/html");return s.body?a(s.body):document.createDocumentFragment()}}({A:["target","href","title"],ABBR:["title"],ADDRESS:[],ARTICLE:[],ASIDE:[],B:[],BDI:["dir"],BDO:["dir"],BIG:[],BLOCKQUOTE:["cite"],BR:[],CAPTION:[],CENTER:[],CITE:[],CODE:[],COL:["align","valign","span","width"],COLGROUP:["align","valign","span","width"],DD:[],DEL:["datetime"],DETAILS:["open"],DL:[],DT:[],EM:[],FONT:["color","size","face"],FOOTER:[],H1:[],H2:[],H3:[],H4:[],H5:[],H6:[],HEADER:[],HR:[],I:[],IMG:["src","alt","title","width","height"],INS:["datetime"],LI:[],MARK:[],OL:[],P:[],PRE:[],S:[],STRIKE:[],SECTION:[],SMALL:[],SUB:[],SUP:[],STRONG:[],TABLE:["width","border","align","valign"],TBODY:["align","valign"],TD:["width","rowspan","colspan","align","valign"],TFOOT:["align","valign"],TH:["width","rowspan","colspan","align","valign"],THEAD:["align","valign"],TR:["rowspan","align","valign"],TT:[],U:[],UL:[]},{href:{"http:":!0,"https:":!0,"mailto:":!0,"matlab:":!0,relative:{"#":!0,"/":!0}},src:{"http:":!0,"https:":!0,"mailto:":!0,relative:{"#":!0,"/":!0}}},["autocapitalize","backgroundColor","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","color","direction","fontFamily","fontSize","fontStyle","fontWeight","height","hidden","lang","lineHeight","margin","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","minHeight","minWidth","overflow","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","rtl","textAlign","textAnchor","textDecoration","textIndent","textOverflow","textShadow","textTransform","title","translate","whiteSpace","width"])}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(665),i(1149),i(479),i(504),i(358),i(374),i(289),i(590),i(1154),i(1155),i(1153),i(343),i(215),i(1498)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([p,r,n,o,a,s,l,c,d,u,h,f],{backgroundColor:"rgba(0, 0, 0, 0)",domNode:null,equationNode:null,text:"",equationFontsLoaded:!1,equationsRendered:!1,renderer:void 0,constructor:function(){this.domNode=document.createElement("div"),this.domNode.classList.add("vc-latexlabel"),this.renderer=t.renderTeX,t.loadFonts(),t.waitForEquations().then(function(){this.equationFontsLoaded=!0}.bind(this))},buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode},_setWidthAttr:function(){this.inherited(arguments)},_setFontSizeAttr:function(e){this.inherited(arguments),this.setText(this.text)},setText:async function(e){let t,i=document.createElement("div");this.equationNode?this.domNode.replaceChild(i,this.equationNode):this.domNode.appendChild(i),this.equationNode=i,this.equationsRendered=!1,Array.isArray(e)||(e=[e]),this.text=e;let n=[],o=[];const r=this.renderer;for(t=0;t<e.length;++t)n.push(document.createElement("div")),this.equationNode.appendChild(n[t]),o.push(r(e[t],n[t]));await Promise.all(o),this.equationsRendered=!0,this.equationNode.classList.add("mwAlignmentNode"),this.textNode=this.equationNode},computeFitSize:function(e,n,o){if(this.equationsRendered){var r=i.getBoundingClientRect(this.equationNode);return[r.width+e,r.height+e]}return t.waitForEquations().then((function(){n.recomputeFitSize()})),o||[0,0]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1142)],o=i.dj.d(n,(function(e,t){return e(t,{templateString:'<div class="mwRuleContainer mwRuleContainerV"></div>',_positionPrefix:'<div class="mwRuleMark mwRuleMarkV" style="bottom:',_positionSuffix:"%;height:1px;margin-bottom:-1px;",_isHorizontal:!1})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1473)],o=i.dj.d(n,(function(e,t){return e(t,{templateString:'<div class="mwRuleContainer mwRuleContainerV mwRuleLabelsContainer mwRuleLabelsContainerV"></div>',_positionPrefix:'<div class="mwRuleLabelContainer mwRuleLabelContainerV" style="top:',_labelPrefix:'"><span class="mwRuleLabel mwRuleLabelV"',_calcPosition:function(e){return 100-e},_isHorizontal:!1})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(287)],o=i.dj.d(n,(function(e,t){var i=e([],{_Next:null,widget:null,constructor:function(e,t){this.widget=e,this.propertyToProcess=t},setNext:function(e){this._Next=e},process:function(e,t){return t=this._doProcess(e,t),this._Next?this._Next.process(e,t):t}}),n=e(i,{_doProcess:function(e,i){if("MinorTicks"!==this.propertyToProcess)throw new Error("This Module is only intended to calculate MinorTicks.");if(i.hasOwnProperty("MajorTicks")||t.arePropertyNamesPresent(e,["WidgetMinorTicksMode","Limits","MinorTicksMode"])||this.widget.hasInnerSizeChanged(e)){var n=this.widget.peernode.getProperty("Limits"),o=i.MajorTicks;o||(o=this.widget.peernode.getProperty("MajorTicks"));var r=this.widget.calculateAutoMinorTicks(o,n[0],n[1]);i[this.propertyToProcess]=r}return i}}),o=e(i,{_doProcess:function(e,i){if("MajorTickLabels"!==this.propertyToProcess)throw new Error("This Module is only intended to calculate MajorTickLabels.");var n;if(i.hasOwnProperty("MajorTicks"))n=t.autoGenerateMajorTickLabels(i.MajorTicks),i.MajorTickLabels=n;else if(t.arePropertyNamesPresent(e,["WidgetMajorTickLabelsMode","MajorTickLabelsMode"])){var o=this.widget.peernode.getProperty("MajorTicks");n=t.autoGenerateMajorTickLabels(o),i.MajorTickLabels=n}return i}}),r=e(o,{_doProcess:function(e,i){if("MajorTickLabels"!==this.propertyToProcess)throw new Error("This Module is only intended to calculate MajorTickLabels.");if(!i.hasOwnProperty("MajorTicks")&&t.arePropertyNamesPresent(e,["MajorTickLabels"])){var n=this.widget.peernode.getProperty("MajorTickLabels");i.MajorTickLabels=n}else i=this.inherited(arguments);return i}}),a=e(i,{_doProcess:function(e,i){if("MajorTicks"!==this.propertyToProcess)throw new Error("This Module is only intended to calculate MajorTicks.");var n,o,r;if("manual"===this.widget.peernode.getProperty("MajorTickLabelsMode")?(o=["WidgetMajorTicksMode","Limits"],r=t.arePropertyNamesPresent(e,o)):(o=["WidgetMajorTicksMode","MajorTicksMode","MajorTickLabelsMode","Limits","FontSize","FontWeight","FontName","FontAngle"],r=t.arePropertyNamesPresent(e,o)||this.widget.hasInnerSizeChanged(e)),r){var a=this.widget.peernode.getProperty("Limits");n=this.widget.calculateAutoMajorTicks(a[0],a[1]),i[this.propertyToProcess]=n}return i}});return{AbstractStrategy:i,PassFromPeerNodeWhenPropertyChanged:e(i,{_doProcess:function(e,i){var n="Widget"+this.propertyToProcess+"Mode";return t.arePropertyNamesPresent(e,[this.propertyToProcess,n])&&(i[this.propertyToProcess]=this.widget.peernode.getProperty(this.propertyToProcess)),i}}),AutoMajorTicks:a,CreateLabelsForEveryMajorTick:o,AutoManualHybridForLabels:r,AutoMinorTicks:n}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{isNumber:function(e){var t=/[a-d|f-z]+/i.test(e);return!(isNaN(parseFloat(e))||!isFinite(e)||t)},isTextEqualToValueAsText:function(e,t){for(var i=0;i<t.length;i++)if(e[i]!==t[i].toString())return!1;return!0},isArraysEqual:function(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0},isArrayEqualsOneOfSet:function(e,t){if(t&&Array.isArray(t)&&!Array.isArray(t[0]))return this.isArraysEqual(e.sort(),t.sort());for(var i=0;i<t.length;i++)if(this.isArrayEqualsOneOfSet(e,t[i]))return!0;return!1},isNonEmptyString:function(e){return("string"==typeof e||e instanceof String)&&e.trim().length>0},trimSpacesInString:function(e){return e.trim()},getDiffBetweenArrays:function(e,t){return e.filter((function(e){return!(t.indexOf(e)>-1)}))},doesLimitsContainIntegers:function(e,t,i,n){var o=!1;"Inf"===e||"Inf"===t?o=!0:null!==this.findValidIntegerClosestToLowerLimit(e,t,i,n)&&(o=!0);return o},findValidIntegerClosestToLowerLimit:function(e,t,i,n){var o=Math.ceil(e),r=null;return this.isValueWithinLimits(o,e,t,i,n)?r=o:o===e&&!i&&this.isValueWithinLimits(e+1,e,t,i,n)&&(r=e+1),r},isValueWithinLimits:function(e,t,i,n,o){var r=!0;return r=n?r&&e>=t:r&&e>t,r=o?r&&e<=i:r&&e<i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(230),i(350),i(5777),i(381),i(404),i(480),i(298),i(295),i(287),i(349),i(1497),i(284),i(1494),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([i,r,a,s,l,c,h],{ALL_NODES:"all",_nodeIdMap:{},_currentHorizontalClippingRuleName:null,_numMetaDataRules:0,constructor:function(){this.peernode.getProperty("TreeEvents")||this.peernode.setProperty("TreeEvents",[])},_processTreeEvents:function(e){e&&e.forEach(function(e){e&&e.length>0&&(e=JSON.parse(e),e=this._makeArray(e),this._performTreeActions(e))}.bind(this))},handleViewInDom:function(){this.inherited(arguments),this.widget.treeWidget.resize()},handleInnerSizeSet:function(e){this.inherited(arguments),this.widget.handleSizeUpdate()},_handleContextMenuChangeOnChild:function(e){var t=this._mergeTreeNodeMetaDataFields({},e);if(-1!==Object.keys(t).indexOf("contextMenuID")){var i=this.fixScalarNodeId(t.id);this._nodeIdMap[i]=t.contextMenuID}},_handleContextMenuChildRemoved:function(e){var t=this._mergeTreeNodeMetaDataFields({},e);-1!==Object.keys(t).indexOf("id")&&(this.fixScalarNodeId(t.id),delete this._nodeIdMap[t.id])},_mergeTreeNodeMetaDataFields:function(e,t){var i={label:"label",Text:"label",iconUri:"iconUri",IconURL:"iconUri",contextMenuID:"contextMenuID",ContextMenuID:"contextMenuID",parent:"parent",id:"id"};for(var n in t)-1!==Object.keys(i).indexOf(n)&&(e[i[n]]=t[n]);return-1!==Object.keys(e).indexOf("label")&&(e.label=this.preprocessNodeText(e.label)),-1!==Object.keys(e).indexOf("id")&&(e.id=this.fixScalarNodeId(e.id)),-1!==Object.keys(e).indexOf("parent")&&(e.parent=this.fixParentNodeId(e.parent)),e},preprocessNodeText:function(e){return e.replace(/(?:\r\n|\r|\n)+/g,"")},_handleTreePeerEvent:function(e){if("editTreeContent"===e.data.Name){var t=JSON.parse(e.data.TreeEvents);t=this._makeArray(t),this._performTreeActions(t),this._appendToTreeEvents(e.data.TreeEvents)}},_appendToTreeEvents:function(e){var t=this.peernode.getProperty("TreeEvents"),i=(t=this._makeArray(t)).map(e=>e);i.push(e);this.peernode.setProperty("TreeEvents",i,null,!0)},_performScroll:function(e){e&&(e=this.fixScalarNodeId(e),this.widget.scrollTo(e))},_performExpandCollapseAction:function(e,t,i){if(t=this._makeArray(t),"expand"===e){for(var n=0;n<t.length;n++)this.dataStore.expandTo(t[n]);this.dataStore.expand(t)}else"collapse"===e&&this.dataStore.collapse(t);if(i===this.ALL_NODES)for(var o=0;o<t.length;o++)this.dataStore.getChildNodes(t[o],{isRecursive:"true"}).then(function(t){t.forEach(function(t){this._performExpandCollapseAction(e,t.node)}.bind(this))}.bind(this))},_performTreeActions:function(e){if(e.length>0)for(var t,i,n,o,r,a,s=0;s<e.length;s++)if(t=e[s].Name,n=e[s].Data,"scroll"===t){var l=n.Target;this._performScroll(l)}else if("expand"===t||"collapse"===t){i=this._makeArray(n.Nodes),a=[];for(var c=0;c<i.length;c++)a.push(this._mergeTreeNodeMetaDataFields({},{id:i[c]}));var d=n.Flag;this._performExpandCollapseAction(t,a,d)}else if("nodeAdd"===t){n=this._makeArray(n);for(var u=0;u<n.length;u++)o={id:this.fixParentNodeId(n[u].parent)},r=n[u],r=this._mergeTreeNodeMetaDataFields({},r),this.dataStore.add(o,r),this._handleContextMenuChangeOnChild(r)}else if("nodeRemove"===t){this.dataStore.remove(null,n,{keepChildren:!1}),this._handleContextMenuChildRemoved(n)}else if("nodeMove"===t)if(o={id:this.fixParentNodeId(n.parent)},r={id:this.fixScalarNodeId(n.id)},n.options){var h=this.fixNodeMoveOptions(n.options);this.dataStore.move(null,r,o,h)}else this.dataStore.move(null,r,o);else"nodeEdit"===t&&(n=this._mergeTreeNodeMetaDataFields({},n),this.dataStore.update(null,{id:this.fixScalarNodeId(n.id)},n),this._handleContextMenuChangeOnChild(n))},_resetTreeWidget:function(e){this.removeDisableListener(this.widget.domNode),this.widget.destroy(),this.widget=null,this._initAndCreateTree(e),this._SelectedNodes(this.peernode.getProperty("SelectedNodes"))},_initAndCreateTree:function(e){if(!e){this.dataStore=null;var t=this._getDataStoreOptions();this.dataStore=n.create([],Object.assign(t,{type:g.TREE}))}var i={dataStore:this.dataStore,options:{dataTestId:"myTree",Multiselect:this.peernode.getProperty("Multiselect"),Editable:this.peernode.getProperty("Editable"),HorizontalClipping:this.peernode.getProperty("HorizontalClipping")}},r=new o(i);if(this._setDijitHandle(r),!e){var a=this.peernode.getProperty("TreeEvents");this._processTreeEvents(a)}this.addDisableListener(r.domNode),this._addViewListeners()},_getDataStoreOptions:function(){return{}},fixScalarNodeId:function(e){return this._makeScalar(e)},fixParentNodeId:function(e){return"#"===(e=this._makeScalar(e))&&(e=null),e},fixNodeMoveOptions:function(e){if(e.node&&e.place)return{node:{id:this.fixScalarNodeId(e.node)},place:e.place}},_makeScalar:function(e){return Array.isArray(e)&&(e=e[0]),e},_makeArray:function(e){return Array.isArray(e)||(e=[e]),e},createView:function(){this.inherited(arguments),this._initAndCreateTree(),this.own(t(this.peernode,"peerEvent",this._handleTreePeerEvent.bind(this))),this.fireViewReadyEvent()},_SelectedNodes:function(e){e=this._makeArray(e);for(var t=[],i=0;i<e.length;i++)t.push({id:e[i]});this.widget.setSelection(t)},_StyleConfigurationStorage:function(e){for(var t=1;t<=this._numMetaDataRules;t++)this.dataStore.removeMetaDataRule(t.toString());if(this._numMetaDataRules=0,void 0!==e.Style){var i=e;for(Array.isArray(i.Target)||(i.Target=[i.Target],i.Style=[i.Style]),t=0;t<i.Target.length;t++){var n=i.Target[t],o=i.TargetIndex[t],r=this._matlabStyleToJSStyle(i.Style[t]);this._addMetaDataRule(n,o,r)}}},_addMetaDataRule:function(e,t,i){var n=this.dataStore.createMetaDataRule({node:function(n){var o=n.level+1;return"tree"===e||"level"===e&&(o===t||t.includes&&t.includes(o))||"node"===e&&(n.id===t||t.includes&&t.includes(n.id))?{style:i}:void 0}},{type:"node"});this._numMetaDataRules++,this.dataStore.addMetaDataRule(this._numMetaDataRules.toString(),n)},_matlabStyleToJSStyle:function(e){var t={};return e.BackgroundColor&&e.BackgroundColor.length&&(t.backgroundColor=p.toJSRGB(e.BackgroundColor)),e.FontColor&&e.FontColor.length&&(t.color=p.toJSRGB(e.FontColor)),e.FontAngle&&(t.fontStyle=e.FontAngle),e.FontWeight&&(t.fontWeight=e.FontWeight),e.FontName&&(t.fontFamily=e.FontName),t},_Multiselect:function(e){var t=p.toJSBoolean(e);this.widget&&this.widget.multiselect!==t&&this._resetTreeWidget(this.dataStore)},_Editable:function(e){var t=p.toJSBoolean(e);this.widget&&this.widget.editable!==t&&this._resetTreeWidget(this.dataStore)},_HorizontalClipping:function(e){this.widget&&this.widget.horizontalClipping!==e&&this._resetTreeWidget(this.dataStore)},setProperties:function(e){this.inherited(arguments)},_handleSelectionChanged:function(e){var t={SelectedNodes:e.nodeIds};this.handleUserInteraction("SelectionChanged",t,t)},_handleNodeExpanded:function(e){var t={Node:e.nodeId};this.handleUserInteraction("NodeExpanded",t)},_handleNodeCollapsed:function(e){var t={Node:e.nodeId};this.handleUserInteraction("NodeCollapsed",t)},_handleNodeTextChanged:function(e){var t={Node:e.nodeId,Text:e.newValue.label};this.handleUserInteraction("NodeTextChanged",t,t)},_handleContextMenu:function(e){var t=e.target.nodeId,i=f.getMap()[this._nodeIdMap[t]];if(i){var n=i.getController().widget,o=this.widget.treeWidget;n.openMenu({x:e.left,y:e.top}),n.on("close",(function(){n.closeMenu(),o.focus()}))}},_getContextMenuTargets:function(){return[this.widget.domNode.children[0]]},_addViewListeners:function(){this.widget.treeWidget.on("selectionChanged",this._handleSelectionChanged.bind(this)),this.widget.treeWidget.on("expanded",this._handleNodeExpanded.bind(this)),this.widget.treeWidget.on("collapsed",this._handleNodeCollapsed.bind(this)),this.widget.treeWidget.on("contextMenu",this._handleContextMenu.bind(this)),"on"!==this.peernode.getProperty("Editable")&&!0!==this.peernode.getProperty("Editable")||this.widget.treeWidget.on("editCompleted",this._handleNodeTextChanged.bind(this)),this.inherited(arguments)},_computeMinimumSize:function(){return[120,200]},_Enable:function(e){this.inherited(arguments);var t=p.toJSBoolean(e);this.setDisabled(!t)},_getComponentSpecificMouseEventInformation:function(e){return{node:this._findNodeId(e.target)}},_findNodeId:function(e){for(var t=[];e&&"treeitem"!==e.getAttribute("role")&&!e.classList.contains(this.widget.baseClass);)e=e.parentNode;return e&&"treeitem"===e.getAttribute("role")&&(t=e.getAttribute("data-test-id")),t},setComponentToPreferredSize:function(){},_computeFitSize:function(){var e=d.getWidgetFontStyleMap(this.getPeerNode()),t=d.getTextPosition("WWWWWWWWWWWWWWW",e),i=Math.max(t.h+u.TREE.TREENODE_OVERALL_VERTICAL_PADDING,u.TREE.TREENODE_MINIMUM_HEIGHT);return[t.w+u.TREE.TREENODE_INDENTATION+u.TREE.BORDER_WIDTH,10*i+u.TREE.BORDER_HEIGHT]}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(212),i(530),i(239),i(5757),i(5758),i(1501),i(1502),i(954),i(688),i(2140),i(1158),i(5768),i(2141),i(1504),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,l,c,d,u,h,p,f,g,m,_){var v=function(t){var i=new e;setTimeout((function(){return t(i.resolve,i.reject)}),0),this.then=i.promise.then},b={CHILD:"child",ROOT:"root",ANCESTOR:"ancestor",SIBLING:"sibling"};Object.freeze(b);var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.id=t.id,e.level=t.level,e.isExpanded=t.isExpanded,e.isExpandable=t.isExpandable,e.groupRow=t.groupRow,e.check=t.check,e.highlight=t.highlight,C(e,t)},C=function(e,t){e.hasOwnProperty("path")||Object.defineProperty(e,"path",{get:function(){return t.path}})},T=function(){function e(t,i,n,o,r,a,l,c){s(this,e),this.id=t,this._path=o,this.level=n,this.isExpandable=a,this.isExpanded=r,this.data=i,null!==l&&(this.check=l),c&&(this.groupRow=c)}return a(e,[{key:"path",get:function(){if(!this._fullPath){for(var e=new Array(this.level),t=this._path,i=this.level;i>=0;i-=1)e[i]=t.id,t=t.parent;this._fullPath=e}return this._fullPath}}]),e}();return function(){function E(e){var o=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,E),this._type=r.type,this._on=new t,this._listeners=[],this._dataSize=i.range(),this._expandCollapseToggle=new n({allExpanded:r.allExpanded}),this.replaceAll(e,r),this._metaDataRules=new h,this._expandCollapseState={filtering:!1},this._listeners.push(this._metaDataRules.on("metaDataChanged",(function(e){for(var t=[],n=[],r=0;r<e.rangeList.length;r+=1){var a=e.rangeList[r];if(i.isRowRange(a)){var s=a.setColumns(0,0);n.push(s)}if(i.isColumnRange(a)){var l=a.setRows(0,0);t.push(l)}}t.length>0&&o._emitPagedColumnMetaDataChanged(t),n.length>0&&o._emitPagedRowMetaDataChanged(n),o._type===_.TREE?o._dataChanged(e.rangeList):o._emitDataChanged(e.rangeList)})))}return a(E,[{key:"addMetaDataRule",value:function(e,t){this._metaDataRules.add(e,t)}},{key:"removeMetaDataRule",value:function(e){this._metaDataRules.remove(e)}},{key:"createMetaDataRule",value:function(e,t){if(!t)throw new Error("dataselector is missing");return e.node&&(e.row=e.node,t||(t={type:p.dataSelectorTypes.node})),"hierarchy"===t.type&&(e.node&&(e.row=e.node),Array.isArray(t.value)||(t.value=[t.value])),p.create(e,t,this._type)}},{key:"replaceAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.isCheckboxTree&&(this.updateChecked=this._updateChecked,this.getCheckNodes=this._getCheckNodes,this._isCheckboxTree=!0),this._internalDataStore=new o(e,{getParentId:t.getParentId,setParentId:t.setParentId,getId:t.getId,isExpanded:this._isExpanded.bind(this),createTreeNode:this._createTreeNode.bind(this),sorted:t.sorted,isCheckboxTree:this._isCheckboxTree,getCheck:t.getCheck,setCheck:t.setCheck,type:this._type}),this._dataSave=t.dataSave||{},this._getParentId=this._internalDataStore.getParentId.bind(this._internalDataStore),this._flattenedTree=[],this._flatten=this._internalDataStore.flatten.bind(this._internalDataStore),this._flattenedTree=this._flatten(),this._updateDataSize(),this._dataChanged([i.range().setRows(0,1/0).setColumns(0,0)])}},{key:"managePaging",value:function(e){}},{key:"_calculateDataSize",value:function(){return i.range().setRows(0,this._flattenedTree.length-1).setColumns(0,0)}},{key:"_updateDataSize",value:function(){var e=this,t=this._calculateDataSize();i.isRangeEqual(t,this.dataSize)||(this._dataSize=t,setTimeout((function(){e._lastEmitDataSize&&i.isRangeEqual(e._lastEmitDataSize,e.dataSize)||(e._on.emit("dataSizeChanged",{dataSize:e.dataSize}),e._lastEmitDataSize=e.dataSize)}),0))}},{key:"getLocalRowMetaData",value:function(e){var t=this._flattenedTree[e],i=this._getRowMetaData(e),n={};return t&&C(n,t),y(i,t),Object.assign(n,i),n}},{key:"_getRowMetaData",value:function(e){var t=this._flattenedTree[e],i={};return t&&y(i,t),this._metaDataRules.getRowMetaData({rowIndex:e,dynamic:i})}},{key:"getLocalColumnMetaData",value:function(e){return this._metaDataRules.getColumnMetaData({columnIndex:e,dynamic:{}})}},{key:"getLocalCellMetaData",value:function(e,t){var i=this.getLocalCellData(e,t),n=null,o=void 0;if(void 0!==i){var r=this._flattenedTree[e];r&&(o=this._internalDataStore._isGrouping?this._internalDataStore._getParentIdForGrouping(r.data):this._internalDataStore.getParentId(r.data)),n={value:i,parentId:o},r&&y(n,r)}return this._metaDataRules.getCellMetaData({rowIndex:e,columnIndex:t,dynamic:n})}},{key:"getLocalCellData",value:function(e){return this._flattenedTree[e]}},{key:"getData",value:function(e){var t=this,n=e.slice();return new v((function(e,o){var r=[];n.forEach((function(e,n){if(i.isRangeInside(t.dataSize,e)){var a=e.rows.start,s=e.rows.end,l=e.columns.start,c=e.columns.end,d=t._getCellBlock(a,s,l,c);d.range=e,r[n]=d}else o(new Error("Range exceeds data size"))})),e(r)}))}},{key:"_getCellBlock",value:function(e,t,i,n){for(var o=[],r=e;r<=t;r+=1){for(var a=[],s=i;s<=n;s+=1)a[s]=this.getLocalCellData(r,s);o[r]=a}return o}},{key:"_calculateNodePath",value:function(e){var t=this._internalDataStore.getAncestorIds(e);return t.reverse(),t.push(e),t}},{key:"_createTreeNode",value:function(e,t,i,n,o,r,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:void 0,l=this._isCheckboxTree?a:null,c=new T(e,t,i,n,o,r,l,s);return c}},{key:"_isExpanded",value:function(e){return this._expandCollapseToggle.isExpanded(e)}},{key:"expandAll",value:function(){var e=this._expandCollapseToggle.expandAll();return this._updateTreeData(e),new v((function(e){setTimeout(e,0)}))}},{key:"collapseAll",value:function(){var e=this._expandCollapseToggle.collapseAll();return this._updateTreeData(e),new v((function(e){setTimeout(e,0)}))}},{key:"expand",value:function(e){if(!Array.isArray(e))throw new Error("'expand' expected an array in proxyNodeList.");var t=this._expandCollapseToggle.expand(e);return this._updateTreeData(t),new v((function(e){setTimeout(e,0)}))}},{key:"collapse",value:function(e){if(!Array.isArray(e))throw new Error("'collapse' expected an array in proxyNodeList.");var t=this._expandCollapseToggle.collapse(e);return this._updateTreeData(t),new v((function(e){setTimeout(e,0)}))}},{key:"sort",value:function(e){if(e&&e.length){var t=this._internalDataStore.runSort(e,this.dataSize);return this._updateTreeData(t),new v((function(e){setTimeout(e,0)}))}}},{key:"registerSortType",value:function(e){var t=e.name,i=e.compareFn;if(!t||"string"!=typeof t||!i||"function"!=typeof i)throw new Error("A valid compare type name and comparator function must be specified");if(-1!==t.indexOf("."))throw new Error("The name of sort type cannot contain a period.");return this._internalDataStore.registerCustomSort(t,i),t}},{key:"expandTo",value:function(e){var t=this;e=l.normalize(e);var i=this._internalDataStore.getAncestorIds(e.id,!0).map((function(e){return{id:e}}));return this.expand(i).then((function(){return t.getNode(e)}))}},{key:"add",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{place:"last"};e=l.normalize(e),i.node&&(i.node=l.normalize(i.node));var n={parentId:e.id,node:t,options:i};return this._doSaveOperation(this._dataSave.beforeAdd,this._add,n)}},{key:"_add",value:function(e){var t=this._internalDataStore.add(e.parentId,e.node,e.options);t.changedIds=this._getCheckBoxTreeChangedIds(t),this._updateTreeData(t)}},{key:"_getCheckBoxTreeChangedIds",value:function(e){var t=this;if(e.changeOccurred&&this._isCheckboxTree){var i=new Set;return e.changedIds.forEach((function(e){t._internalDataStore.getAncestorIds(e).forEach((function(e){i.add(e)}))})),e.changedIds.concat(Array.from(i))}return e.changedIds}},{key:"remove",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{keepChildren:!1};t=l.normalize(t);var n=this._internalDataStore.getAncestorIds(t.id),o={parentId:n.length>0?n[0]:null,removeId:t.id,options:i};return this._doSaveOperation(this._dataSave.beforeRemove,this._remove,o)}},{key:"_remove",value:function(e){var t=this._isExpanded(e.parentId),i=this._internalDataStore.remove(e.parentId,e.removeId,e.options);t&&(i.changedIds?i.changedIds.push(e.parentId):i.changedIds=[e.parentId],i.changedIds=this._getCheckBoxTreeChangedIds(i)),this._updateTreeData(i)}},{key:"move",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{place:"last"};i=l.normalize(i),t=l.normalize(t),n.node&&(n.node=l.normalize(n.node));var o=this._internalDataStore.getAncestorIds(t.id),r={parentId:o.length>0?o[0]:null,newParentId:i.id,nodeToMoveId:t.id,options:n};return this._doSaveOperation(this._dataSave.beforeMove,this._move,r)}},{key:"_move",value:function(e){var t=this._isExpanded(e.parentId),i=this._isExpanded(e.newParentId),n=void 0;(n=this._internalDataStore.move(e.parentId,e.nodeToMoveId,e.newParentId,e.options)).changeOccurred&&(t&&(n.changedIds?n.changedIds.push(e.parentId):n.changedIds=[e.parentId]),i&&(n.changedIds?n.changedIds.push(e.newParentId):n.changedIds=[e.newParentId]),n.changedIds=this._getCheckBoxTreeChangedIds(n),this._updateTreeData(n))}},{key:"update",value:function(e,t,i){t=l.normalize(t);var n=this._internalDataStore.getAncestorIds(t.id),o={parentId:n.length>0?n[0]:null,updateId:t.id,fieldsToMerge:i};return this._doSaveOperation(this._dataSave.beforeUpdate,this._update,o)}},{key:"_update",value:function(e){var t=this._internalDataStore.update(e.parentId,e.updateId,e.fieldsToMerge);t.changedIds=this._getCheckBoxTreeChangedIds(t),this._updateTreeData(t)}},{key:"_doSaveOperation",value:function(t,i,n){var o=this,r=void 0;if(t)r=t.call(this,n);else{var a=new e;a.resolve({}),r=a.promise}return r.then((function(e){try{i.call(o,n)}catch(e){throw e.reason=c[e.reason]||c.ERROR_UNKNOWN,e.custom=e.custom||{},e.success=!1,e}return{message:e.message||"",reason:"",custom:e.custom||{},success:!0}}),(function(e){var t=new Error(e.message||"");throw t.reason=c[e.reason]||c.ERROR_UNKNOWN,t.custom=e.custom||{},t.success=!1,t}))}},{key:"getNode",value:function(e,t){var i=this;return e=l.normalize(e),new Promise((function(n,o){var r=d.findIndex(i._flattenedTree,(function(t){return e.id===t.id})),a=null;if(t){if(f.isValidCriteria(t)){var s=r>=0?i._queryMetaData(r,t):null;n(a=null!=s?{index:s,node:i._flattenedTree[s]}:null)}o(new Error("invalid options criteria"))}else r>=0&&(a={index:r,node:i._flattenedTree[r]}),n(a)}))}},{key:"getParentNode",value:function(e){var t=this;return e=l.normalize(e),this.getNode(e).then((function(e){if(e){var i=void 0,n=t._internalDataStore.getAncestorIds(e.node.id,!0);return n.length>0&&(i=n[0]),t.getNode({id:i})}return new v((function(e){return e(null)}))}))}},{key:"filter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{displayChildren:!1};this._expandCollapseState.filtering||(this._expandCollapseState=this._expandCollapseToggle.getState(),this._expandCollapseState.filtering=!0);var i=this._internalDataStore.normalizeFilterCriteria(e),n=this._internalDataStore.filterTreeNode(i,t);return this._updateTreeData(n),new v((function(e){setTimeout(e,0)}))}},{key:"clearFilter",value:function(){if(this._expandCollapseState.filtering){var e=this._internalDataStore.clearFilter();this._expandCollapseToggle.setState(this._expandCollapseState),this._expandCollapseState.filtering=!1,this._updateTreeData(e)}return new v((function(e){setTimeout(e,0)}))}},{key:"search",value:function(e){var t={field:"",value:""};if(!e||!(e.field||e.and||e.or))throw new Error("Invalid Search Criteria");t=e;var i=this._internalDataStore.searchTreeNodes(t);return this._updateTreeData(i),new v((function(e){setTimeout(e,0)}))}},{key:"clearSearch",value:function(){var e=this._internalDataStore.clearSearch();return this._updateTreeData(e),new v((function(e){setTimeout(e,0)}))}},{key:"_updateChecked",value:function(e,t){var i=this._internalDataStore.updateChecked(e,t);return this._updateTreeData(i),new v((function(e){setTimeout(e,0)}))}},{key:"_getCheckNodes",value:function(){var e=this._internalDataStore.getCheckNodes();return new v((function(t){setTimeout((function(){t(e)}),0)}))}},{key:"getChildNodes",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=l.normalize(e);var n={type:"child"};n.isRecursive=i.isRecursive||!1;var o=Object.getOwnPropertyNames(i).length,a="isRecursive"in i;return("object"!==(void 0===i?"undefined":r(i))||o>1||o&&!a)&&console.warn("Invalid parameters passed, please see Tree data Store JSDoc for correct configuration"),n.node=i.node||{},new Promise((function(i){i(t._query(e,n))}))}},{key:"_updateTreeData",value:function(e){if(e.changeOccurred){var t=this._flattenedTree;this._flattenedTree=this._flatten(),this._updateDataSize();var n=-1;if(e.updateAll)n=0;else{var o=new u;e.changedIds.forEach((function(e){o.set(e,!0)}));var r,a;r=d.findIndex(t,(function(e){return o.get(e.id)})),a=d.findIndex(this._flattenedTree,(function(e){return o.get(e.id)})),n=r>=0&&a>=0?Math.min(r,a):Math.max(r,a)}n>=0&&this._dataChanged([i.range().setRows(n,1/0).setColumns(0,this.dataSize.columns.end)])}}},{key:"_dataChanged",value:function(e){this._on.emit("dataChanged",{rangeList:e});var t=this._internalDataStore.getMetaDataRanges();i.doesRangeListIntersect(e,t)&&this._emitPagedRowMetaDataChanged(e.map((function(e){return e.setColumns(0,0)})))}},{key:"_emitPagedColumnMetaDataChanged",value:function(e){this._on.emit("pagedColumnMetaDataChanged",{rangeList:e})}},{key:"_emitPagedRowMetaDataChanged",value:function(e){this._on.emit("pagedRowMetaDataChanged",{rangeList:e})}},{key:"on",value:function(e,t){var i=this._on.on(e,t);return this._listeners.push(i),i}},{key:"destroy",value:function(){this._listeners.forEach((function(e){return e.remove()})),this._metaDataRules=null,this._internalDataStore=null,this._flattenedTree=null}},{key:"_query",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.id,n=[];return n=t.isRecursive?this._getRecursiveDataItems(i):this._getNodes(i)[b.CHILD](),Object.getOwnPropertyNames(t.node).length&&(n=this._filterDataItems(t.node,n)),n}},{key:"_queryMetaData",value:function(e,t){var i=void 0,n=void 0,o=void 0,r=this._flattenedTree.length,a=t.range&&t.range.rows&&t.range.rows.start?t.range.rows.start:0,s=t.range&&t.range.rows&&t.range.rows.end?t.range.rows.end:r-1,l=a<0?0:a,c=s>r-1?r-1:s,d=t.queryCriteria,u=d&&d.compare&&d.compare.dataType?d.compare.dataType:m.dataType.DEFAULT_DATA_TYPE,h=d.metadata.field,p=d.metadata.value,_=f.getValueByType(u,p),v=void 0,b=!1;switch(t.position){case g.POSITION.NEXT:if(e>=c)return null;o=e+(i=1);break;case g.POSITION.PREVIOUS:if(e<=l)return null;o=e+(i=-1);break;case g.POSITION.FIRST:i=1,o=l;break;case g.POSITION.LAST:i=-1,o=c}for(n=o;!b;)n=o,o+=i,v=this.getLocalRowMetaData(n)[h],b=f.getValueByType(u,v)===_||(n<l||n>c);return n<l||n>s?null:n}},{key:"_getNodes",value:function(e){var t=this._internalDataStore,i=this._flattenedTree;return{child:t.getChildNodes.bind(t,e,i),sibling:t.getSiblingNodes.bind(t,e,i),root:t.getRootNodes.bind(t,e,i),ancestor:t.getAncestorNodes.bind(t,e,i)}}},{key:"_getRecursiveDataItems",value:function(e){for(var t=this._getNodes(e).child(),i=[],n=[{arr:t}];n.length>0;){for(var o=n[0].arr,r=0;r<o.length;r++){i.push(o[r]);var a=o[r].node.id;(t=this._getNodes(a).child()).length&&n.push({arr:t})}n.shift()}return i}},{key:"_filterDataItems",value:function(e,t){throw new Error("This configuration is not supported")}},{key:"dataSize",get:function(){return this._dataSize}},{key:"isCheckboxTree",get:function(){return!!this._isCheckboxTree&&!0===this._isCheckboxTree}}]),E}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(688),i(954),i(1502),i(5761),i(5762),i(5763),i(956),i(5764),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,s,l,c,d){var u=i.ERROR_CIRCULAR_REF,h=i.ERROR_MODE_NON_EXISTENT,p={TREE:o,TREETABLE:s};return function(){function i(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,i),this._data=t||[],this.type=o.type;var r=p[this.type];this._sort=new r(o.sorted),this._sort.sorted&&this._sort.sort(this._data),this._isExpanded=o.isExpanded,this.getParentId=function(e){return e.parent},o.getParentId&&(this.getParentId=o.getParentId),this.setParentId=function(e,t){e.parent=t},o.setParentId&&(this.setParentId=o.setParentId),this.getId=function(e){return e.id},o.getId&&(this.getId=o.getId),this.getCheck=function(e){return e.check},o.getCheck&&(this.getCheck=o.getCheck),this.setCheck=function(e,t){e.check=!0===t},o.setCheck&&(this.setCheck=o.setCheck),this.isCheckboxTree=o.isCheckboxTree,this._columnMap=o.columnMap,this._isSearching=!1,this._treeNodeIdCache=new e,this._treeRootId=null,this._getCheckedState=function(e){return!1},this.isCheckboxTree&&(this._getCheckedState=this._getCheckStatus),this._createTreeNode=function(e,t,i){var r=n.getId(e),a=n._isExpandable(r),s=n._getCheckedState(r);return o.createTreeNode(r,e,t,i,a&&n._isExpanded(r),a,s,n._getGroupRow(r))},this._indexCache=new c(this._data,{getId:this.getId}),this._createParentCache()}return r(i,[{key:"_getGroupRow",value:function(e){return this._groupRowIdCache&&this._groupRowIdCache.get(e)?this._groupRowIdCache.get(e):void 0}},{key:"setGrouping",value:function(t){var i=this;this._isGrouping=!0,this._setGrouping=function(){var n=t(),o=n.groupingData,r=n.groupRowMeta,a=n.getParentIdForGrouping;i._groupRowIdCache=new e,Object.keys(r).forEach((function(e){i._groupRowIdCache.set(e,r[e])})),i._getParentIdForGrouping=a,i._createParentCache(o,a)},this._updateResults()}},{key:"getNumColumns",value:function(){return this._data.length>0&&this._data[0].length||this.defaultColumnCount}},{key:"getCell",value:function(e,t){return e[t]}},{key:"setCell",value:function(e,t,i){e[t]=i}},{key:"getMetaDataRanges",value:function(){return this._metaDataRanges}},{key:"_hasChild",value:function(e){var i=this;return t.findIndex(this._data,(function(t){return i.getParentId(t)===e}))>=0}},{key:"_isExpandable",value:function(e){var t=this._parentCache.get(e);return!!(t&&t.length>0)}},{key:"_updateParentCacheNode",value:function(e,i){var n=this,o=this._parentCache.get(e);if(!o||0===o.length)return void 0===i.index&&(i.index=this._getIndexById(this.getId(i.node))),void this._parentCache.set(e,[i]);var r=void 0,a=o.length-1,s=void 0,l=void 0,c=void 0;if(void 0!==i.index?(r=i.index,s=o[a].index,l=o[0].index,c=function(e){return e.index>i.index}):(r=this._getIndexById(this.getId(i.node)),s=this._getIndexById(this.getId(o[a].node)),l=this._getIndexById(this.getId(o[0].node)),c=function(e){return n._getIndexById(n.getId(e.node))>r},i.index=r),s<r)o.push(i);else if(l>r)o.unshift(i);else{var d=t.findIndex(o,c);o.splice(d,0,i)}}},{key:"_createChildIndexValue",value:function(e,t){return void 0!==t?{node:e,index:t}:{node:e}}},{key:"_createParentCache",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._parentCache=new e,this._rootNodes=[],n=n||this._isGrouping||void 0!==i,t=t||this._data;for(var o=i||this.getParentId,r=t.length,a=0;a<r;a++){var s=t[a],l=o(s);n?this._updateParentCacheNode(l,this._createChildIndexValue(s,a)):this._updateParentCacheNode(l,this._createChildIndexValue(s))}}},{key:"clearFilter",value:function(){var e={};return this._isFiltering?(this._isFiltering=!1,e=this._filter.clearFilter()):e.changeOccured=!1,e}},{key:"registerCustomSort",value:function(e,t){this._sort.validateCustomSortName(e),this._sort.addCustomCompare(e,t)}},{key:"searchTreeNodes",value:function(e){this._search=new n(e,{getId:this.getId,_type:this.type}),this._isSearching=!0;for(var t=0;t<this._data.length;t+=1){var i=this._data[t];this._search.searchNodeForMatches(i)}var o={changeOccurred:!0,updateAll:!0};return o}},{key:"clearSearch",value:function(){var e={};return this._isSearching?(this._isSearching=!1,e.changeOccurred=!0,e.updateAll=!0):e.changeOccurred=!1,e}},{key:"_updateResults",value:function(){var e=!1;if(this._isGrouping&&(this._setGrouping(),e=!0),this._isFiltering){var t=this._filter.getFilterCriteria();this.filterTreeNode(t,this._filterOptions),e=!0}if(this._isSearching){var i=this._search.getSearchCriteria();this.searchTreeNodes(i),e=!0}return e}},{key:"_reCreateParentCacheInGrouping",value:function(){this._isGrouping&&this._createParentCache()}},{key:"_setNodePositionForFilter",value:function(e,t){for(var i=0;i<e.length;i++){var n=e[i],o=this._isGrouping?this._getParentIdForGrouping(n.data):this.getParentId(n.data);o=o||"__root__node__",n.nodePosition={nodeIndex:t[o].currentIdx,noOfNodes:t[o].childrenCount},t[o].currentIdx++}}},{key:"flatten",value:function(e){e&&this._createParentCache(this._data);var t=this._createTreeNode,i=[],n=this._parentCache.get(this._treeRootId),o={};if(n){for(var r=[{arr:n,lastIndex:0,path:{id:this._treeRootId,parent:null}}];r.length>0;){for(var a=r.length-1,s=r[a].lastIndex,l=r[a].arr,c=s,d=l.length,u=r[a].path;c<d;c++){var h={parent:u},p=t(l[c].node,a,h);h.id=p.id;var f=p.id,g=p.isExpanded,m=!0;if(this._isFiltering){if(m=!1,this._filter.isFiltered(f)){var _=this._isGrouping?this._getParentIdForGrouping(p.data):this.getParentId(p.data);o[_=_||"__root__node__"]?o[_].childrenCount++:o[_]={childrenCount:1,currentIdx:1},i.push(p),m=!0}}else p.nodePosition={nodeIndex:c+1,noOfNodes:d},i.push(p);if(this._isSearching&&this._search.isNodeAMatch(p)&&(p.highlight=this._search.getMatchesFromCache(p)),m&&g&&this._parentCache.has(f)||e&&this._parentCache.has(f)){r.push({arr:this._parentCache.get(f),lastIndex:0,path:h}),r[a].lastIndex=c+1;break}}c===l.length&&r.pop()}this._isFiltering&&this._setNodePositionForFilter(i,o)}return i}},{key:"_getIndexById",value:function(e){return this._indexCache.getIndex(e)}},{key:"_getNodeById",value:function(e){for(var t=0;t<this._data.length;t+=1){var i=this._data[t];if(this.getId(i)===e)return i}return null}},{key:"getNodesByIds",value:function(t){var i=this;if(0===t.length)return[];if(1===t.length)return[this._getNodeById(t[0])];for(var n=new e,o=0;o<t.length;o+=1){var r=t[o];n.set(r,!0)}return this._data.filter((function(e){return n.has(i.getId(e))}))}},{key:"_cacheParents",value:function(t){var i=new e,n=this.getParentId;t&&this._isGrouping&&(n=this._getParentIdForGrouping);for(var o=0;o<this._data.length;o+=1){var r=this.getId(this._data[o]),a=n(this._data[o]);i.set(r,a)}return i}},{key:"getAncestorIds",value:function(e,t){var i=this,n=void 0;n=this._cacheParents(t);for(var o=function(e){var o=void 0;return n.has(e)?o=n.get(e):t&&i._isGrouping&&(o=i._getParentIdForGrouping(null,e)),o},r=[],a=o(e);a&&a!==this._treeRootId;)r.push(a),a=o(a);return r}},{key:"getChildIndiciesByParent",value:function(e){var t=this._parentCache.get(e);if(t){for(var i=[],n=t.length,o=0;o<n;o++){var r=t[o].node;i.push({index:this._getIndexById(this.getId(r)),node:r})}return i}return[]}},{key:"_calcPlacementIndex",value:function(e,i,n){var o=this;if(this._sort.sorted)return this._sort.getInsertIndex(this._data,i);var r=n.place,a=this._data.length;if("first"===r)a=0;else if("last"===r)a=this._data.length;else if(n.node){var s,l;s=n.node.id;var c=!1;if(l=this.getChildIndiciesByParent(e)){var d=t.find(l,(function(e){return s===o.getId(e.node)}));d&&(a=d.index,c=!0)}if(!c){var u=this._getIndexById(s);u>=0&&(a=u,c=!0)}c&&"after"===r&&(a+=1)}return a}},{key:"add",value:function(e,t,i){this._reCreateParentCacheInGrouping(),this.setParentId(t,e);var n=this._calcPlacementIndex(e,t,i),o=this._isExpandable(e);this._data.splice(n,0,t),this._indexCache.setNode(this.getId(t),n,{index:n,node:t}),this._updateParentCacheNode(e,this._createChildIndexValue(t));var r=[this.getId(t)];return o!==this._isExpandable(e)&&r.push(e),{changeOccurred:!0,changedIds:r,updateAll:this._updateResults()}}},{key:"remove",value:function(e,t,i){var n=this;this._reCreateParentCacheInGrouping();var o=this._getIndexById(t);if(o<0)return{changeOccurred:!1};var r=this._isExpandable(e),a=void 0;if(i.keepChildren){this.getChildIndiciesByParent(t).forEach((function(t){n.setParentId(t.node,e),n._updateParentCacheNode(e,{node:t.node})})),a=[o]}else{var s=[];!function e(t){if(0!==t.length){var i=[];t.forEach((function(e){var t=n.getId(e.node);i=i.concat(n.getChildIndiciesByParent(t))})),s=s.concat(i),e(i)}}([this._createChildIndexValue(this._data[o])]),(a=s.map((function(e){return e.index}))).push(o),a.sort((function(e,t){return t-e}))}for(var l=[],c=0;c<a.length;c+=1){var d=a[c],u=this._data[d];l.push(this.getId(u)),this._removeParentCacheNode(this.getParentId(u),{node:u}),this._indexCache.removeNode(this.getId(u),d),this._data.splice(d,1)}return r!==this._isExpandable(e)&&l.push(e),{changeOccurred:!0,changedIds:l,updateAll:this._updateResults()}}},{key:"_getNodesByParent",value:function(e,t){var i=this,n=[],o=[];if(0===this.getChildIndiciesByParent(e).length&&e===this._treeRootId)return{leafNodeIds:n,parentNodeIds:o};return function e(r){var a=i.getChildIndiciesByParent(r);if(0!==a.length){t&&r&&o.push(r);for(var s=0;s<a.length;s++){var l=a[s];e(i.getId(l.node))}}else n.push(r)}(e),{leafNodeIds:n,parentNodeIds:o}}},{key:"getChildNodes",value:function(e,i){var n=this,o=this.getChildIndiciesByParent(e),r=null,a=[];return 0===o.length?[]:(o.forEach((function(e){var o=t.findIndex(i,(function(t){return e.node.id===t.id}));if(o>=0)r={index:o,node:i[o]};else{var s=n._createTreeNode(e.node,null);r={index:null,node:{id:s.id,isExpandable:s.isExpandable,isExpanded:s.isExpanded,level:s.level,data:s.data}}}a.push(r)})),a)}},{key:"getSiblingNodes",value:function(e){throw new Error("This configuration is not suported")}},{key:"getRootNodes",value:function(e){throw new Error("This configuration is not suported")}},{key:"getAncestorNodes",value:function(e){throw new Error("This configuration is not suported")}},{key:"_removeParentCacheNode",value:function(e,i){var n=this,o=this._parentCache.get(e);if(o){var r=this._getIndexById(this.getId(i.node)),a=t.findIndex(o,(function(e){return n._getIndexById(n.getId(e.node))===r}));o.splice(a,1)}}},{key:"move",value:function(e,t,i,n){this._reCreateParentCacheInGrouping();var o=this._getIndexById(t);if(o<0)return{changeOccurred:!1};if(i&&!this._indexCache.hasIndex(i)){var r=new Error("New parent Id does not exists");throw r.reason=h,r}if(this.getAncestorIds(i).indexOf(t)>=0||t===i){var a=new Error("Move caused a circular reference");throw a.reason=u,a}var s=this._calcPlacementIndex(i,this._data[o],n),l=this._isExpandable(i),c=this._isExpandable(e),d=this._data[o];o>=0&&s>=0&&o!==s?(this._removeParentCacheNode(e,{node:d}),this._indexCache.removeNode(t,o),this._data.splice(o,1),o<s&&(s-=1),this._data.splice(s,0,d),this._indexCache.setNode(t,s,{index:s,node:d}),this._updateParentCacheNode(i,{node:d})):o===s&&(this._removeParentCacheNode(e,{node:d}),this._updateParentCacheNode(i,{node:d})),this.setParentId(d,i);var p=[t];return c!==this._isExpandable(e)&&p.push(e),l!==this._isExpandable(i)&&p.push(i),{changeOccurred:!0,changedIds:p,updateAll:this._updateResults()}}},{key:"update",value:function(e,t,i){var n=this._getIndexById(t);if(n<0)return{changeOccurred:!1,changedIds:[],updateAll:!1};var o=this._data[n];for(var r in i)o[r]=i[r];if(this._sort.sorted){var a=this.getParentId(o);this._removeParentCacheNode(a,{node:o}),this._indexCache.removeNode(t,n),this._data.splice(n,1);var s=this._calcPlacementIndex(a,o,{});this._data.splice(s,0,o),this._indexCache.setNode(t,s,{index:s,node:o}),this._updateParentCacheNode(a,{node:o})}return{changeOccurred:!0,changedIds:[t],updateAll:this._updateResults()}}},{key:"updateChecked",value:function(e,t){var i=e.id;if(this._getIndexById(i)<0)return{changeOccurred:!1,changedIds:[],updateAll:!1};var n=this._getNodesByParent(i,!0),o=n.leafNodeIds,r=n.parentNodeIds;0===o.length&&o.push(i);var a=this._updateCheckedNodes(o,t),s=a.recalc,l=a.changedIds,c=this.getAncestorIds(i);return r.length>0&&(l=l.concat(r)),c.length>0&&(l=l.concat(c)),{changeOccurred:s,changedIds:s?l:[],updateAll:!1}}},{key:"_getNodeInfo",value:function(e){var t=this._getIndexById(e);return this._data[t]}},{key:"_updateCheckedNodes",value:function(e,t){for(var i=[],n=!1,o=0;o<e.length;o++){var r=e[o],a=this._getNodeInfo(r);this.getCheck(a)!==t&&(n=!0,this.setCheck(a,t),i.push(r))}return{recalc:n,changedIds:i}}},{key:"getCheckNodes",value:function(){for(var e=[],t=this._getNodesByParent(this._treeRootId,!0),i=t.leafNodeIds,n=t.parentNodeIds,o=0;o<i.length;o++){var r=i[o];this._getCheckStatusById(r)&&e.push(r)}for(var a=0;a<n.length;a++){var s=n[a],l=this._getNodesByParent(s).leafNodeIds;this._isEveryLeafNodeChecked(l)&&e.push(s)}return{checkTrueNodes:e}}},{key:"_getCheckStatusById",value:function(e){var t=this._getNodeInfo(e);return this.getCheck(t)}},{key:"_isEveryLeafNodeChecked",value:function(e){return t.every(e,(function(e){return this._getCheckStatusById(e)}),this)}},{key:"_getCheckStatus",value:function(e){var t=this._getNodesByParent(e).leafNodeIds;return 0===t.length?this._getCheckStatusById(e):!!this._isEveryLeafNodeChecked(t)||!!this._atleastOneleafNodeChecked(t)&&"mixed"}},{key:"_atleastOneleafNodeChecked",value:function(e){return t.some(e,(function(e){return this._getCheckStatusById(e)}),this)}}]),i}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(688)],o=i.dj.d(n,(function(e){return function(){function t(i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._filteredNodesCache=new e,this._filterCriteria=i,this._ancestorIds=[],this._getId=n.getId,this._getParentId=n.getParentId,this._treeRootId=n.treeRootId}return r(t,[{key:"_checkComposite",value:function(e){return e.and||e.or}},{key:"isFiltered",value:function(e){return this._filteredNodesCache.has(e)}},{key:"clearFilteredNodes",value:function(){this._filteredNodesCache=new e}},{key:"addAncestorsToFilter",value:function(e){e!==this._treeRootId&&(this.isFiltered(e)||this._ancestorIds.push(e))}},{key:"clearFilter",value:function(){this.clearFilteredNodes();var e={changeOccurred:!0,updateAll:!0};return e}},{key:"addtoFilterCache",value:function(e){this._filteredNodesCache.set(e,!0)}},{key:"removeNodeFromFilter",value:function(e){this._filteredNodesCache.remove(e)}},{key:"getAncestorIds",value:function(){return this._ancestorIds}},{key:"clearAncestorIds",value:function(){this._ancestorIds=[]}},{key:"getFilterCriteria",value:function(){return this._filterCriteria}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1158),i(5766),i(5767),i(530)],o=i.dj.d(n,(function(e,t,i,n){var o=void 0;Object.assign&&(o=function(e,t){return Object.assign({},e,t)});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._metaData={},this._metaDataOrder=new t,this._hierarchicalMetaDataOrder=new i,this._dynamicMetaDataOrder=new t,this._hierarchicalDynamicMetaDataOrder=new i,this._clearCache(),this._on=new n}return r(e,[{key:"on",value:function(e,t){return this._on.on(e,t)}},{key:"_clearCache",value:function(){this._cacheRuleResult={},this._cacheRuleResult.cell={},this._cacheRuleResult.row={},this._cacheRuleResult.column={}}},{key:"add",value:function(e,t){if(e.indexOf("|")>0||e.indexOf("*")>0||e.indexOf("$")>0)throw new Error('"|", "*", and "$" are invalid in metadata rule names');this.addBuiltIn(e,t)}},{key:"addBuiltIn",value:function(e,t){if("function"!=typeof t._getRangeList||"function"!=typeof t.getMetaData)throw new Error("A metaDataRule must be created using 'create' before trying to add it");var i=this._metaData[e],n=[];i&&(n=this._getOrderedRules(i).remove(e));var o=t._getRangeList();this._metaData[e]=t;var r=t.getMetaData();r.cell=r.cell||{},r.row=r.row||{},r.column=r.column||{};var a={name:e,rangeList:o,metaData:r,isDynamic:t.isDynamic,applyMetaDataFunction:t._applyMetaDataFunction,dataSelector:t.dataSelector};this._getOrderedRules(t).add(a),this._clearCache(),this._raiseChangeEvent(n.concat(o))}},{key:"_getOrderedRules",value:function(e){return this._isHierarchicalRule(e)?e.isDynamic?this._hierarchicalDynamicMetaDataOrder:this._hierarchicalMetaDataOrder:e.isDynamic?this._dynamicMetaDataOrder:this._metaDataOrder}},{key:"remove",value:function(e){if(e.indexOf("|")>-1||e.indexOf("*")>-1||e.indexOf("$")>-1)throw new Error('"|", "*", and "$" are invalid in metadata rule names');this.removeBuiltIn(e)}},{key:"removeBuiltIn",value:function(e){var t=this._metaData[e];if(!t)throw new Error("'"+e+"' does not exist");this._clearCache();var i=this._getOrderedRules(t).remove(e);delete this._metaData[e],this._raiseChangeEvent(i)}},{key:"get",value:function(e){if(!this._metaData[e])throw new Error("'"+e+"' does not exist");return this._metaData[e]}},{key:"_raiseChangeEvent",value:function(e){this._on.emit("metaDataChanged",{rangeList:e})}},{key:"getCellMetaData",value:function(e){var t={rows:{start:e.rowIndex,end:e.rowIndex,count:1},columns:{start:e.columnIndex,end:e.columnIndex,count:1}};return e.dynamic&&(e.dynamic.columnIndex=e.columnIndex,e.dynamic.rowIndex=e.rowIndex),this._getMetaData(t,"cell",e)}},{key:"getRowMetaData",value:function(e){var t={rows:{start:e.rowIndex,end:e.rowIndex,count:1},columns:{start:0,end:0,count:1}};return e.dynamic&&(e.dynamic.rowIndex=e.rowIndex),this._getMetaData(t,"row",e)}},{key:"getColumnMetaData",value:function(e){var t={rows:{start:0,end:0,count:1},columns:{start:e.columnIndex,end:e.columnIndex,count:1}};return e.dynamic&&(e.dynamic.columnIndex=e.columnIndex),this._getMetaData(t,"column",e)}},{key:"_getMetaData",value:function(e,t,i){var n=this._metaDataOrder.getRulesForRange(e);Array.prototype.push.apply(n,this._hierarchicalMetaDataOrder.getRulesForRange(i)),Array.prototype.push.apply(n,this._dynamicMetaDataOrder.getRulesForRange(e)),Array.prototype.push.apply(n,this._hierarchicalDynamicMetaDataOrder.getRulesForRange(i));var o={},r=this._cacheRuleResult[t],a=void 0,s=void 0,l=void 0,c=void 0,d=void 0;for(d=0;d<n.length&&(a=r[s=(c=n[d]).name]);d+=1)o=a["|RESULT|"],r=r[s];for(var u=!0,h=d;h<n.length;h+=1){if(s=(c=n[h]).name,l=c.metaData[t],c.isDynamic&&"function"==typeof l){if(!i.dynamic)continue;l=Object.assign({},l(i.dynamic)),u=!1}o=this._combineMetaData(o,l),u&&(r[s]={},r[s]["|RESULT|"]=o,r=r[s])}return o}},{key:"_combineMetaData",value:function(e,t){var i=null;(e.style||t.style)&&(i=o(e.style||{},t.style||{}));var n=o(e,t);return i&&(n.style=i),n}},{key:"_isHierarchicalRule",value:function(e){return"hierarchy"===e.dataSelector.type}}]),e}();return a.create=e.create,a.dataSelectorTypes=e.dataSelectorTypes,a}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{POSITION:{FIRST:"first",LAST:"last",NEXT:"next",PREVIOUS:"previous"}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(530),i(239),i(956),i(5769),i(1502),i(5770),i(2144),i(5771),i(2140),i(1158),i(212),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,l,c,d,u,h,p,f){var g=function(e){var t=new p;setTimeout((function(){return e(t.resolve,t.reject)}),0),this.then=t.promise.then};return function(){function f(i){var o=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,f),this._on=new e,this._listeners=[],this._type=r.type,this._metaDataRules=new u,this._dataSave=r.dataSave||{},this._dataSize=t.range(),this._sort=new n({}),this.replaceAll(i,r),this._filtering=!1,this._searching=!1,this._listeners.push(this._metaDataRules.on("metaDataChanged",(function(e){for(var i=[],n=[],r=0;r<e.rangeList.length;r+=1){var a=e.rangeList[r];if(t.isRowRange(a)){var s=a.setColumns(0,0);n.push(s)}if(t.isColumnRange(a)){var l=a.setRows(0,0);i.push(l)}}i.length>0&&o._emitPagedColumnMetaDataChanged(i),n.length>0&&o._emitPagedRowMetaDataChanged(n),o._dataChanged(e.rangeList)})))}return r(f,[{key:"addMetaDataRule",value:function(e,t){this._metaDataRules.add(e,t)}},{key:"removeMetaDataRule",value:function(e){this._metaDataRules.remove(e)}},{key:"createMetaDataRule",value:function(e,t){return h.create(e,t,this._type)}},{key:"managePaging",value:function(e){}},{key:"_addRowLabelRules",value:function(e){var i=this,n=t.range().setColumns(0,1/0).setRows(0,1/0),o=this.createMetaDataRule.bind(this)({row:function(e){var t=i.getLocalCellData(e.rowIndex,i._rowLabelIndex);return{label:t?t.value:void 0}}},{type:"rangeList",value:[n]});this._metaDataRules.addBuiltIn("$setRowLabels",o)}},{key:"_updateDataSize",value:function(){var e=f._calcTableSize(this._data,this._defaultColumnCount);e.rows.count===this._dataSize.rows.count&&e.columns.count===this._dataSize.columns.count||(this._dataSize=e,this._on.emit("dataSizeChanged",{dataSize:e}))}},{key:"getLocalCellData",value:function(e,t){var i=this._data[e];if(i)return i[t]}},{key:"getLocalRowMetaData",value:function(e){var t=this._gatherRowForMetaData(e),i=void 0,n=null;if(void 0!==t){try{i=this._getId(t)}catch(e){}n={id:i}}var o=this._metaDataRules.getRowMetaData({rowIndex:e,dynamic:n});return o.id=i,o}},{key:"getLocalColumnMetaData",value:function(e){return this._metaDataRules.getColumnMetaData({columnIndex:e,dynamic:{}})}},{key:"updateColumnHeader",value:function(e){var t=e.id,i=e.value;return this._headers.updateHeader({id:t,value:i}),new g((function(e){setTimeout(e,0)}))}},{key:"updateRowHeader",value:function(e,i){var n=this,o=e.rowIndex,r=i.value;return new g((function(e,i){try{var a=t.range().setRows(o,o).setColumns(n._rowLabelIndex,n._rowLabelIndex);e(n.update(a,[[{value:r}]]))}catch(e){i(e)}}))}},{key:"getLocalColumnSpanningMetaData",value:function(e){return{value:this._headers.getHeaderHierarchy(e)}}},{key:"getLocalCellMetaData",value:function(e,t){var i=this.getLocalCellData(e,t),n=null;if(void 0!==i){var o=this._gatherRowForMetaData(e);n={id:this._getId(o),value:i}}return this._metaDataRules.getCellMetaData({rowIndex:e,columnIndex:t,dynamic:n})}},{key:"_emitPagedColumnMetaDataChanged",value:function(e){this._on.emit("pagedColumnMetaDataChanged",{rangeList:e})}},{key:"_emitPagedRowMetaDataChanged",value:function(e){this._on.emit("pagedRowMetaDataChanged",{rangeList:e})}},{key:"getIndex",value:function(e){var t=this;return new g((function(i,n){for(var o=0;o<t._data.length;o+=1){var r=t._gatherRowForMetaData(o);e.id===t._getId(r)&&i({index:o})}i({index:null})}))}},{key:"getData",value:function(e){var i=this,n=e.slice();return new g((function(e,o){var r=[];n.forEach((function(e,n){if(e.columns.end===1/0&&(e=e.setColumns(e.columns.start,i.dataSize.columns.end)),e.rows.end===1/0&&(e=e.setRows(e.rows.start,i.dataSize.rows.end)),t.isRangeInside(i.dataSize,e)){var a=e.rows.start,s=e.rows.end,l=e.columns.start,c=e.columns.end,d=i._getCellBlock(a,s,l,c);d.range=e,r[n]=d}else o(new Error("Range exceeds data size"))})),e(r)}))}},{key:"_gatherRowForMetaData",value:function(e){for(var t=[],i=0;i<this._metaDataColumns.length;i+=1){var n=this._metaDataColumns[i];t[n]=this.getLocalCellData(e,n)}return t}},{key:"_getCellBlock",value:function(e,t,i,n){for(var o=[],r=e;r<=t;r+=1){for(var a=[],s=i;s<=n;s+=1)a[s]=this.getLocalCellData(r,s);o[r]=a}return o}},{key:"add",value:function(e,t){if(this._filtering)throw new Error("Data cannot be added in filter mode. Clear filter before adding data.");var i={};if(e.rows.start===e.rows.end&&0===e.columns.start&&e.columns.end===1/0){if(e.rows.start>this._dataSize.rows.count||e.rows.start<0)throw new Error("Index "+e.rows.start+" is out of range for add");for(var n=0;n<t.length;n+=1)if(t[n].length!==this._dataSize.columns.count)throw new Error("data["+n+"] needs to contain "+this._dataSize.columns.count+" columns of data for add");i.addOrRemoveRows=!0}else{if(e.columns.start!==e.columns.end||0!==e.rows.start||e.rows.end!==1/0)throw new Error("Could not determine add type for given range");if(e.columns.start>this._dataSize.columns.count||e.columns.start<0)throw new Error("Index "+e.columns.start+" is out of range for add");var o=null;if(t.length!==this._dataSize.rows.count&&this._dataSize.rows.count>0)throw new Error("data needs to contain "+this._dataSize.rows.count+" rows of data for add");for(var r=0;r<t.length;r+=1)if(null===o)o=t[r].length;else if(o!==t[r].length)throw new Error("The data["+r+"] needs to contain the same number of columns ("+o+") as the first row for add");i.addOrRemoveColumns=!0}var a={range:e,data:t};return this._doSaveOperation(this._dataSave.beforeAdd,this._add,a,i)}},{key:"_add",value:function(e){var i,n=e.range,o=e.data,r=e.addOrRemoveRows,s=e.addOrRemoveColumns,l=void 0;if(r)(i=this._data).splice.apply(i,[n.rows.start,0].concat(a(o))),l=t.range().setRows(n.rows.start,1/0).setColumns(0,1/0);else if(s){for(var c=0;c<o.length;c+=1){var d=this._data[c];d?d.splice.apply(d,[n.columns.start,0].concat(a(o[c]))):this._data[c]=o[c]}l=t.range().setRows(0,1/0).setColumns(n.columns.start,1/0)}this._updateDataSize(),this._dataChanged([l])}},{key:"_doSaveOperation",value:function(e,t,i,n){var r=this,a=void 0;if(e)a=e.call(this,i);else{var s=new p;s.resolve({}),a=s.promise}return a.then((function(e){try{Object.assign(i,n),t.call(r,i)}catch(e){throw e.reason=o[e.reason]||o.ERROR_UNKNOWN,e.custom=e.custom||{},e.success=!1,e}return{message:e.message||"",reason:"",custom:e.custom||{},success:!0}}),(function(e){var t=new Error(e.message||"");throw t.reason=o[e.reason]||o.ERROR_UNKNOWN,t.custom=e.custom||{},t.success=!1,t}))}},{key:"update",value:function(e,i){if(e.rows.count!==i.length)throw new Error("Range rows count "+e.rows.count+" does not match data.length for update");if(!t.isRangeInside(this.dataSize,e))throw new Error("Range exceeds dataSize for update");for(var n=0;n<i.length;n+=1)if(i[n].length!==e.columns.count)throw new Error("data["+n+"] needs to contain "+e.columns.count+" columns of data for update");var o={range:e,data:i};return this._doSaveOperation(this._dataSave.beforeUpdate,this._update,o)}},{key:"_update",value:function(e){for(var t=e.range,i=e.data,n=0,o=t.rows.start;o<=t.rows.end;o+=1){var r=this._data[o];r.splice.apply(r,[t.columns.start,t.columns.count].concat(a(i[n]))),n+=1}this._dataChanged([t]),this._filtering&&this.filter(this._filter.getFilterCriteria())}},{key:"remove",value:function(e){if(this._filtering)throw new Error("Data cannot be removed in filter mode. Clear filter before deleting data.");var t={};if(0===e.columns.start&&e.columns.end===1/0){if(e.rows.start>=this._dataSize.rows.count||e.rows.start<0)throw new Error("Index "+e.rows.start+" is out of range for remove");t.addOrRemoveRows=!0}else{if(0!==e.rows.start||e.rows.end!==1/0)throw new Error("Could not determine remove type for given range");if(t.addOrRemoveColumns=!0,e.columns.start>=this._dataSize.columns.count||e.columns.start<0)throw new Error("Index "+e.columns.start+" is out of range for remove")}var i={range:e};return this._doSaveOperation(this._dataSave.beforeRemove,this._remove,i,t)}},{key:"_remove",value:function(e){var i=e.range,n=e.addOrRemoveRows,o=e.addOrRemoveColumns,r=void 0;if(n)this._data.splice(i.rows.start,i.rows.count),r=t.range().setRows(i.rows.start,1/0).setColumns(0,1/0);else if(o){for(var a=0;a<this._dataSize.rows.count;a+=1)this._data[a].splice(i.columns.start,i.columns.count);r=t.range().setRows(0,1/0).setColumns(i.columns.start,1/0)}this._updateDataSize(),this._dataChanged([r])}},{key:"replaceAll",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._data=e||[],this._defaultColumnCount=n.defaultColumnCount,0!==this._defaultColumnCount&&!(this._defaultColumnCount>0)&&this._data.length>0&&(this._defaultColumnCount=this._data[0].length||0),this._metaDataColumns=n.metaDataColumns||this._metaDataColumns||[],n.getId){if(0===this._metaDataColumns.length)throw new Error("Must specify at least one column to derive the value of getId");this._getId=n.getId}else this._getId||(this._getId=function(){});n.rowLabelIndex&&n.rowLabelIndex>=0&&(this._rowLabelIndex=n.rowLabelIndex,this._metaDataColumns.push(this._rowLabelIndex),this._addRowLabelRules(n)),this._metaDataRanges=i.columnArray(this._metaDataColumns),this._updateDataSize(),this._dataChanged([t.range().setRows(0,1/0).setColumns(0,1/0)]),this._filtering&&(this._filter.setUnfilteredData(this._data),this._filter.filter())}},{key:"sort",value:function(e){if(e&&e.length&&!(this.dataSize.rows.count<2)){if(this._runSort(e),this._filtering){var i=this._filter.getUnfilteredData();i.sort(this._sort.generateCompareFunctionFromList(e,this.dataSize)),this._filter.setUnfilteredData(i)}this._dataChanged([t.range().setRows(0,1/0).setColumns(0,1/0)])}}},{key:"_runSort",value:function(e){this._data.sort(this._sort.generateCompareFunctionFromList(e,this.dataSize))}},{key:"registerSortType",value:function(e){var t=e.name,i=e.compareFn;if(!t||"string"!=typeof t||!i||"function"!=typeof i)throw new Error("A valid compare type name and comparator function must be specified");if(-1!==t.indexOf("."))throw new Error("The name of sort type cannot contain a period.");return this._registerCustomSort(t,i),t}},{key:"_registerCustomSort",value:function(e,t){this._sort.validateCustomSortName(e),this._sort.addCustomCompare(e,t)}},{key:"_dataChanged",value:function(e){this._on.emit("dataChanged",{rangeList:e}),t.doesRangeListIntersect(e,this._metaDataRanges)&&this._emitPagedRowMetaDataChanged(e.map((function(e){return e.setColumns(0,0)})))}},{key:"filter",value:function(e){return this._filtering&&(this._data=this._filter.getUnfilteredData()),this._filtering=!0,this._filter=new l(e,{data:this._data}),this._filter.filter(),this._data=this._filter.getFilteredData(),this._dataChanged([t.range().setRows(0,1/0).setColumns(0,1/0)]),this._updateDataSize(),new g((function(e){setTimeout(e,0)}))}},{key:"search",value:function(e){if(this._search=new c(e,this.createMetaDataRule,{type:this._type}),this._search.isCriteriaValid()){var t=this._search.createRule();this._addSearchResults(t),this._searching=!0}}},{key:"clearFilter",value:function(){return this._filtering&&(this._data=this._filter.getUnfilteredData(),this._dataChanged([t.range().setRows(0,1/0).setColumns(0,1/0)]),this._updateDataSize(),this._filtering=!1),new g((function(e){setTimeout(e,0)}))}},{key:"clearSearch",value:function(){this._searching&&(this._removeSearchResults(),this._searching=!1)}},{key:"__setHeaders",value:function(e){this._headers?this._headers.setHeaders(e):this._headers=new d(e)}},{key:"__getHeaders",value:function(){return this._headers.getHeaders()}},{key:"__setSpanningHeaders",value:function(e){this._headers&&this._headers.setSpanningHeaders(e)}},{key:"__getSpanningHeaders",value:function(){return this._headers.getSpanningHeaders()}},{key:"_addSearchResults",value:function(e){this._metaDataRules.addBuiltIn("$Search",e)}},{key:"_removeSearchResults",value:function(){this._metaDataRules.removeBuiltIn("$Search")}},{key:"destroy",value:function(){for(var e=0;e<this._listeners.length;e+=1)this._listeners[e].remove()}},{key:"on",value:function(e,t){return this._on.on(e,t)}},{key:"dataSize",get:function(){return this._dataSize}}],[{key:"_calcTableSize",value:function(e,i){var n=function(e){return e?{start:0,end:e.length-1}:{start:0,end:-1}},o=t.range(),r=n(e);return r=(o=o.setRows(r.start,r.end)).rows.count>0?n(e[0]):n({length:i||0}),o=o.setColumns(r.start,r.end)}}]),f}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(1504)],o=i.dj.d(n,(function(e){var t=function(t,i,n){var o=!1;switch(n){case e.type.EQUAL:o=t===i;break;case e.type.NOT_EQUAL:o=t!==i;break;case e.type.GREATER_THAN:o=t>i;break;case e.type.GREATER_THAN_EQUAL_TO:o=t>=i;break;case e.type.LESS_THAN:o=t<i;break;case e.type.LESS_THAN_EQUAL_TO:o=t<=i}return o},i=function(i,n,r){var a=x(r),s=m(r);if(a===e.type.FUNCTION){var c=!1,d=_(r);if(p(d))try{c=d(i,n)}catch(e){c=!1}return c}if(s===e.dataType.NUMBER)return function(e,i,n){var o=e,r=i;return"string"==typeof e&&(o=Number(e)),"string"==typeof i&&(r=Number(i)),t(o,r,n)}(i,n,a);if(s===e.dataType.BOOLEAN)return function(e,i,n){var o=Boolean(e),r=Boolean(i);return t(o,r,n)}(i,n,a);if(s===e.dataType.STRING){var u=l(r),h=o(i,n,u);return t(h.cellString,h.findString,a)}return!1},n=function(e){return""===e},o=function(e,t,i){var n=e.toString(),o=t.toString();return i||(n=n.toLowerCase(),o=o.toLowerCase()),{cellString:n,findString:o}},a=function(e,t,i){var n=o(e,t,i);return n.cellString.startsWith(n.findString)},s=function(e,t,i){var n=o(e,t,i);return n.cellString.endsWith(n.findString)},l=function(t){var i=t[e.COMPARE_PROPERTY];return i&&i.hasOwnProperty(e.CASE_SENSITIVE)?i[e.CASE_SENSITIVE]:e.caseSensitive.DEFAULT_CASE_SENSITIVE},c=function(t){var i=!1;return t!==e.type.STARTS_WITH&&t!==e.type.ENDS_WITH&&t!==e.type.CONTAINS||(i=!0),i},d=function(e){var t=!0;return null==e&&(t=!1),t},u=function(t){var i=!0;switch(t){case e.type.CONTAINS:case e.type.STARTS_WITH:case e.type.ENDS_WITH:case e.type.EQUAL:case e.type.NOT_EQUAL:case e.type.GREATER_THAN:case e.type.GREATER_THAN_EQUAL_TO:case e.type.LESS_THAN:case e.type.LESS_THAN_EQUAL_TO:case e.type.FUNCTION:break;default:i=!1}return i},h=function(e){var t=!0;return"string"!==e&&"number"!==e&&"boolean"!==e&&(t=!1),t},p=function(e){var t=!0;return e||(t=!1),e&&"function"!=typeof e&&(t=!1),t},f=function(t){var i=!0,n=t?t[e.COMPARE_PROPERTY]:null;if(n){var o=n[e.COMPARE_TYPE];o&&!u(o)&&(i=!1);var r=n[e.DATA_TYPE];r&&!h(r)&&(i=!1);var a=n[e.PARAM];o&&o===e.type.FUNCTION&&!p(a)&&(i=!1);var s=n[e.CASE_SENSITIVE];s&&"boolean"!=typeof s&&(i=!1)}return i},g=function(e){var t=!1;return e&&(e.and||e.or||e.exclude)&&(t=!0),t},m=function(t){var i=e.dataType.DEFAULT_DATA_TYPE,n=x(t);if(!c(n)){var o=t[e.COMPARE_PROPERTY];o&&o.hasOwnProperty(e.DATA_TYPE)&&(i=o[e.DATA_TYPE],h(i)||(i=e.dataType.DEFAULT_DATA_TYPE))}return i},_=function(t){var i=null,n=t[e.COMPARE_PROPERTY];return n&&n.hasOwnProperty(e.PARAM)&&(i=n[e.PARAM]),i},v=function(e,t){var i={start:e,count:t};return void 0===e&&(e=0),(void 0===t||t<1)&&(t=0),i},b=function(t){t.hasOwnProperty(e.COMPARE_PROPERTY)||(t[e.COMPARE_PROPERTY]={})},y=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0!==t.length||!i)&&T(e,t,!0)},C=function(e,t){var i=!1;return t.and?i=function(e,t){return T(e,t,!1)}(e,t.and):t.or&&(i=y(e,t.or)),t.exclude&&(i=function(e,t,i){if(i&&(t.or||t.and)||!t.and&&!t.or)return!y(e,t.exclude,!0)}(e,t,i)),i},T=function(t,i,n){for(var o,r=!0,a=0;a<i.length;a+=1){if((o=i[a])&&o.hasOwnProperty(e.VALUE)&&o.hasOwnProperty(e.COLUMN_INDEX)){var s=t[I(i[a])];r=E(s,i[a])}else r=!g(i[a])||C(t,i[a]);if(r===n)return n}return r},E=function(t,r){var u=S(t,w(r)),h=A(r),p=x(r);if(!d(h))return!0;if(!d(u))return!1;if(!f(r))return!0;if(n(h))return n(u);if(!c(p))return i(u,h,r);var g=l(r);return p===e.type.CONTAINS?function(e,t,i){var n=o(e,t,i);return-1!==n.cellString.indexOf(n.findString)}(u,h,g):p===e.type.STARTS_WITH?a(u,h,g):p===e.type.ENDS_WITH&&s(u,h,g)},S=function(e,t){var i=e;if(e&&"object"===(void 0===e?"undefined":r(e)))if(t){for(var n=i,o=t.split("."),a=0;a<o.length;a+=1){n=n[o[a]]}i=null===n?null:n}else i=null;else e&&t&&(i=null);return i},w=function(e){return e?e.field:null},I=function(e){return e?e.columnIndex:null},A=function(e){return e?e.value:null},x=function(t){var i=e.type.DEFAULT_COMPARE_TYPE,n=t?t[e.COMPARE_PROPERTY]:null;if(n&&n.hasOwnProperty(e.COMPARE_TYPE)){var o=n[e.COMPARE_TYPE];u(o)&&(i=o)}return i};return{searchColumn:function(t,r){var u=S(t,w(r)),h=A(r),p=x(r),g=[];if(!d(h)||!d(u))return g;if(!f(r))return g;if(n(h))return n(u)&&g.push(v(0,0)),g;if(!c(p))return i(u,h,r)&&g.push(function(e){var t=e.toString().length;return(void 0===t||t<1)&&(t=0),v(0,t)}(u)),g;var m=l(r);return p===e.type.CONTAINS?function(e,t,i){for(var n=o(e,t,i),r=[],a=n.cellString.indexOf(n.findString);-1!==a;)r.push(v(a,n.findString.length)),a=n.cellString.indexOf(n.findString,a+n.findString.length);return r}(u,h,m):p===e.type.STARTS_WITH?function(e,t,i){var n=[],r=o(e,t,i);return a(r.cellString,r.findString,i)&&n.push(v(0,r.findString.length)),n}(u,h,m):p===e.type.ENDS_WITH?function(e,t,i){var n=[],r=o(e,t,i);if(s(r.cellString,r.findString,i)){var a=r.cellString.length-r.findString.length;n.push(v(a,r.findString.length))}return n}(u,h,m):g},filterRow:function(e,t){return g(t)?C(e,t):T(e,[t],!1)},isValid:function(e){var t=A(e),i=I(e);return!!d(t)&&("number"==typeof i&&Math.floor(i)===i&&!!f(e))},getField:w,getColumn:I,getValue:A,getCellValue:S,getCompareType:x,setCompareType:function(t,i){b(t),t[e.COMPARE_PROPERTY][e.COMPARE_TYPE]=i},setCompareDataType:function(t,i){b(t),t[e.COMPARE_PROPERTY][e.DATA_TYPE]=i},setCaseSensitive:function(t,i){b(t),t[e.COMPARE_PROPERTY][e.CASE_SENSITIVE]=i},setCompareParam:function(t,i){b(t),t[e.COMPARE_PROPERTY][e.PARAM]=i}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(2143)],o=i.dj.d(n,(function(e,t){var i=function(e,t){var i={};return e.length&&(i={searchHighlight:{matches:e}},t&&(i.searchHighlight.field=t)),i};return function(){function n(e,t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._criteria=e,this._createRuleFn=t,this._type=i.type}return r(n,[{key:"isCriteriaValid",value:function(){return t.isValid(this._criteria)}},{key:"createRule",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._criteria;return this._createRuleFn({cell:function(e){var o=t.searchColumn(e.value,n);return i(o,t.getField(n))}},{type:"rangeList",value:[e.range().setColumns(t.getColumn(n),t.getColumn(n)).setRows(0,1/0)]})}}]),n}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2138),i(688),i(5774)],o=i.dj.d(n,(function(e,t,i){return function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n._isFiltering=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"clearGrouping",value:function(){this._isGrouping=!1,this._groupRowIdCache=null,this._createParentCache(this._data,void 0,!0)}},{key:"filterTreeNode",value:function(e){var t=this.getParentId;this._isGrouping&&(t=this._getParentIdForGrouping),this._filter=new i(e,{getId:this.getId,getParentId:t,treeRootId:this._treeRootId,columnMap:this._columnMap,treeNodeIdCache:this._treeNodeIdCache});for(var n=0;n<this._data.length;n+=1){var o=this._data[n];this._treeNodeIdCache.set(this.getId(o),o),this._filter.isFilterMatch(o)&&this._filter.addAncestorsToFilter(o)}this._filter.includeFilteredAncestors(),this._filter.clearAncestorIds(),this._isFiltering=!0;var r={changeOccurred:!0,updateAll:!0};return r}},{key:"normalizeFilterCriteria",value:function(e){return e&&(e.columnIndex||0===e.columnIndex||e.and||e.or)?e:{columnIndex:"",value:""}}},{key:"runSort",value:function(e,t){return this._sort.columnMap=this._columnMap,this._data.sort(this._sort.generateCompareFunctionFromList(e,t)),this._indexCache._reindex(),this._isGrouping?this._setGrouping():this._createParentCache(this._data,void 0,!0),{changeOccurred:!0,updateAll:!0}}},{key:"treeRootId",get:function(){return this._treeRootId}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(250),i(2147),i(5778),i(532),i(5779),i(239),i(591),i(2148),i(5780),i(2149),i(2161),i(336)],o=i.dj.d(n,(function(e,t,i,n,o,s,l,c,d,u,h,p){var f=function(){return{value:{}}};return function(){function e(t,n){var o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments[3];a(this,e),this._viewModel=t,this._viewEventHandler=new i,this._rootDom=n,this._listeners=[],r.designTimeEventsConfig?this._EVENTS_CONFIG=d:this._EVENTS_CONFIG=c;var l={disclosureNode:{},treeNode:{},tree:{},interactive_renderer:{}};l.disclosureNode._disclosureMouseDownHandler=function(e){return o._handleDisclosureNodeLeftMouseDownEvent(e,(function(e){return o._handleDisclosureMouseDown(e)}))},l.treeNode._nodeMouseDownHandler=function(e){return o._handleMouseDownEvents(e,(function(e,t){return o._handleNodeMouseDown(e,t)}))},l.treeNode._nodeClickHandler=function(e){return o._handleNodeClick(e)},l.treeNode._nodeDblClickHandler=function(e){return o._handleNodeDoubleClick(e)},l.treeNode._nodeHoverHandler=function(e){return o._handleHoverToggle(e)},l.tree._keyDownHandler=function(e){return o._handleKeyDown(e)},l.tree._keyUpHandler=function(e){return o._handleKeyUp(e)},l.tree._scrollHandler=function(e){return o._handleScroll(e)},l.tree._focusHandler=function(e){return o._handleFocus(e)},l.tree._containerMountHandler=function(e){return o._handleContainerMount(e)},l.tree._containerUpdateHandler=function(){return o._handleContainerUpdate()},l.tree._blurHandler=function(e){return o._handleBlur(e)},l.tree._contextMenuHandler=function(e){return o._handleContextMenu(e)},l.tree._setTreeNodeHeightHandler=function(e){return o.setTreeNodeHeightAndHandleViewPortUpdate(e)},l.tree._setTreeWidthProperty=function(e){return o.setTreeWidthProperty(e)},l.interactive_renderer=function(e,t){return o._handleInteractiveRendererEvent(e,t)},this.handlers=l,this._handlePluginEvents(s),this.treeBuilder=this.createTreeBuilder(r,s)}return r(e,[{key:"_handlePluginEvents",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=u.getEventListenersForPlugins(t);i.forEach((function(t){e.handlers[t.nameSpace]=e.handlers[t.nameSpace]?e.handlers[t.nameSpace]:{},e.handlers[t.nameSpace][t.handlerName]=function(i){e._viewEventHandler.handleEvent(t.eventName,i,(function(){t.eventHandler(e._viewModel,i),t.shouldRender&&e.render()}))}}))}},{key:"_handleContextMenu",value:function(e){var t=!1,i=!e.buttons&&!e.button;navigator.userAgent.indexOf("Edge")>-1&&(t=!0),i||t&&e.shiftKey?this._handleScrollForFocusedNode():this._handleRightClick(e)}},{key:"createTreeBuilder",value:function(e,t){return new h(this._viewModel,this.handlers,e,t)}},{key:"_handleFocus",value:function(e){this._viewModel.setState("ContainerFocused",!0),this._viewModel.deleteState("NodeHover"),this.render()}},{key:"_handleContainerMount",value:function(e){this._viewModel.setState("treeContainerNode",e.treeContainerNode);var t={treeContainerNode:e.treeContainerNode,mwTreeNode:e.mwTreeNode};this._viewEventHandler.handleEvent("containerMount",t,(function(){}))}},{key:"_handleContainerUpdate",value:function(e){var t=this._viewModel.getStateByKey("treeContainerNode");(t=t?t.value:null)&&(this._viewModel.viewPort.size.width=t.clientWidth),this._viewEventHandler.handleEvent("containerUpdate",null,(function(){}))}},{key:"_handleBlur",value:function(e){this._viewModel.deleteState("ContainerFocused"),this.render()}},{key:"_handleHoverToggle",value:function(e){this._viewModel.setState("NodeHover",e),this.render()}},{key:"_hasVerticalScrollBar",value:function(e){return!(e.clientWidth===e.offsetWidth)}},{key:"_hasHorizontalScrollBar",value:function(e){return!(e.clientHeight===e.offsetHeight)}},{key:"_handleScroll",value:function(e){var t=this,i={clientHeight:e.currentTarget.clientHeight,scrollTop:e.currentTarget.scrollTop,scrollLeft:e.currentTarget.scrollLeft,clientWidth:e.currentTarget.clientWidth,scrollWidth:e.currentTarget.scrollWidth,scrollHeight:e.currentTarget.scrollHeight};this._hasVerticalScrollBar(e.currentTarget)&&!this.treeBuilder.isTruncated()&&this.setTreeWidthProperty(i.scrollWidth),this._hasHorizontalScrollBar(e.currentTarget)&&!this.treeBuilder.isTruncated()&&(this._viewModel.viewPort.size.height=i.clientHeight);var n=this._viewModel.getStateByKey("shouldScrollOnKeyPressed");n&&n.value&&this._viewEventHandler.handleEvent("treeScrollOnKeyPressed",i,(function(){}));var o=this._viewModel.viewPort.size.height!==i.clientHeight||Math.round(this._viewModel.viewPort.size.top)!==Math.round(i.scrollTop),r=this._viewModel.viewPort.size.width!==i.clientWidth||Math.round(this._viewModel.viewPort.size.left)!==Math.round(i.scrollLeft);(o||r)&&this._viewEventHandler.handleEvent("treeScroll",i,(function(){l.updateDataBuffer(t._viewModel)}))}},{key:"_handleRightClick",value:function(e){for(var t=this,i=e.target,n=(i.tagName,i);!i.classList.contains("treeNode");)if("BODY"===(i=i.parentNode).tagName){n=null;break}var o={},r=void 0,a={};if(n){var s=i.attributes["data-row-index"].nodeValue;r=this._data(parseInt(s))(0).value,a=this._metadata(s).value,o={type:"TREENODE",nodeId:r.id}}else o={type:"TREE"};var l={top:e.pageY,left:e.pageX,node:r,metadata:a,emitTarget:o},c=!a.noMouseInteraction&&this._EVENTS_CONFIG.contextMenuClick;c&&this._viewEventHandler.handleEvent(c,l,(function(){t.render()}))}},{key:"isFocusedNodeInTheView",value:function(){var e=this._rootDom.querySelector(".treeNode.focused"),t=this._rootDom.querySelector(".focused").getBoundingClientRect();if(e){var i=e.getBoundingClientRect();return!(i.top>t.bottom||i.bottom<t.top)}return!1}},{key:"_handleScrollForFocusedNode",value:function(){var e=this,t=this._EVENTS_CONFIG.keyDownshiftF10,i=this._rootDom.querySelector(".treeNode.focused"),n={};if(i){var o=i.attributes["data-row-index"].nodeValue;n=this._metadata(o).value}var r=this._rootDom.querySelector(".focused").getBoundingClientRect(),a={focusedDomNodePosition:i&&i.getBoundingClientRect(),treeContainerPosition:r,metadata:n};t&&this._viewEventHandler.handleEvent(t,a,(function(){e.render()}))}},{key:"registerEventCallback",value:function(e,t){this._viewEventHandler.registerEventListeners(e,t)}},{key:"setTreeNodeHeightAndHandleViewPortUpdate",value:function(e){this._viewModel.setState("nodeHeightInPx",e),l.calculateAndUpdateViewPort(this._viewModel,this._viewModel.viewPort.size)}},{key:"setTreeWidthProperty",value:function(e){var t=this._viewModel.getStateByKey("treeWidth");(t=t?t.value:null)<e&&this._viewModel.setState("treeWidth",e)}},{key:"_handleKeyDown",value:function(e){var t=this,i={keyCode:e.keyCode,metaKey:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey};switch(i.keyCode){case n.ARROW_UP:case n.ARROW_DOWN:case n.PAGE_UP:case n.PAGE_DOWN:case n.ARROW_RIGHT:case n.ARROW_LEFT:case n.SPACE:case n.HOME:case n.END:e.preventDefault();var o=e.ctrlKey||e.metaKey?this._EVENTS_CONFIG.keyDownMetaNavigation:e.shiftKey?this._EVENTS_CONFIG.keyDownRangeNavigation:this._EVENTS_CONFIG.keyDownNavigation;if(!o)return;this.viewModelUpdateInProgress=!0,this._viewEventHandler.handleEvent(o,i,(function(){t.viewModelUpdateInProgress=!1;var e=t._viewModel.getStateByKey("nodeHeightInPx").value,i=t._viewModel.getStateByKey("shouldScroll");i&&i.value&&(t._viewModel.viewPort.size.top=t._viewModel.viewPort.rangeList[0].rows.start*e,t._viewModel.deleteState("shouldScroll")),t._viewModel.setState("forceContainerFocus",!0),t.render()}));break;case n.DELETE:case n.BACKSPACE:if(e.preventDefault(),e.ctrlKey||e.metaKey||e.shiftKey)return;this._handleDelete(i)}}},{key:"_handleKeyUp",value:function(e){var t={keyCode:e.keyCode,metaKey:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey};switch(t.keyCode){case n.SPACE:e.preventDefault();var i=t.ctrlKey||t.metaKey||t.shiftKey||t.altKey?null:this._EVENTS_CONFIG.keyUp;if(!i)return;this._viewEventHandler.handleEvent(i,t,(function(){}))}}},{key:"_handleDelete",value:function(e){var t=this;this._viewEventHandler.handleEvent(this._EVENTS_CONFIG.deleteAction,e,(function(){t.render()}))}},{key:"_handleNodeDoubleClick",value:function(e){var t=this,i=e.target.attributes["data-disclosure-id"],n=this._EVENTS_CONFIG.dblClick,o=e.currentTarget.parentNode.attributes["data-row-index"].nodeValue,r=this._metadata?this._metadata:function(e){return{value:{}}};if(r=r(o).value,!i&&n){var a={node:this._data(parseInt(o))(0).value,metadata:r};this._viewEventHandler.handleEvent(n,a,(function(){t.render()}))}}},{key:"_handleDisclosureNodeLeftMouseDownEvent",value:function(e,t){e.button===o.MOUSE_LEFT_BUTTON&&t(e)}},{key:"_handleMouseDownEvents",value:function(e,t){var i=this._EVENTS_CONFIG.nodeMouseDown,n=this._EVENTS_CONFIG.rightClick;e.button===o.MOUSE_LEFT_BUTTON?t(e,i):n&&e.button===o.MOUSE_RIGHT_BUTTON&&t(e,n)}},{key:"_handleDisclosureMouseDown",value:function(e){e.stopPropagation();var t=e.target.attributes["data-row-index"].nodeValue,i={node:this._data(parseInt(t))(0).value,nodeIndex:parseInt(t)};this._viewEventHandler.handleEvent("treeDisclosureMouseDown",i,(function(){}))}},{key:"_handleNodeMouseDown",value:function(e,t){var i=this,n=e.currentTarget.attributes["data-row-index"].nodeValue,o={node:this._data(parseInt(n))(0).value,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,nodeIndex:parseInt(n)};this._viewEventHandler.handleEvent(t,o,(function(){i._viewModel.deleteState("NodeHover"),i.render()}))}},{key:"_handleNodeClick",value:function(e){var t=this;if(!e.target.attributes["data-disclosure-id"]){var i=e.currentTarget.attributes["data-row-index"].nodeValue,n={node:this._data(parseInt(i))(0).value,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,nodeIndex:parseInt(i)};this._viewEventHandler.handleEvent("treeNodeMouseClick",n,(function(){t._viewModel.deleteState("NodeHover"),t.render()}))}}},{key:"_handleInteractiveRendererEvent",value:function(e,t){this._viewEventHandler.handleEvent(e,t,(function(){}))}},{key:"initialize",value:function(){var e=this,t=this._viewModel.getStateByKey("nodeHeightInPx").value,i=Math.floor(this._rootDom.clientHeight/t);this._viewModel.viewPort={size:{left:0,top:0,width:this._rootDom.clientWidth,height:this._rootDom.clientHeight},rangeList:[s.range().setRows(0,i-1).setColumns(0,0)]};var n=this._viewModel.on("updateView",(function(){e.render()})),o=this._viewModel.on("viewDataChanged",(function(t){var i=t.viewData,n=t.rowMetaData||[f];e._viewModel.setState("currentViewPortData",i[0]),e._viewModel.setState("currentViewPortMetaData",n[0]),e.render(i[0],n[0])})),r=this._viewModel.on("dataSizeChanged",(function(t){e._viewModel.deleteState("treeWidth"),e.render()}));this._listeners.push(n),this._listeners.push(o),this._listeners.push(r),l.updateDataBuffer(this._viewModel,!0)}},{key:"resize",value:function(e,t){var i,n;i=e||this._rootDom.clientHeight,n=t||this._rootDom.clientWidth,this._viewModel.viewPort.size.width=n,this._viewModel.viewPort.size.height=i,l.calculateAndUpdateViewPort(this._viewModel,this._viewModel.viewPort.size),l.updateDataBuffer(this._viewModel),this.render()}},{key:"scrollTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},i={node:e};this._emitProgrammaticScrollEvt(i,t)}},{key:"scrollToPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},i={position:e};this._emitProgrammaticScrollEvt(i,t)}},{key:"getScrollComponentDimensions",value:function(){return{scrollHeight:this._rootDom.childNodes[0].scrollHeight,scrollWidth:this._rootDom.childNodes[0].scrollWidth,scrollTop:this._rootDom.childNodes[0].scrollTop,scrollLeft:this._rootDom.childNodes[0].scrollLeft,clientWidth:this._rootDom.childNodes[0].clientWidth,clientHeight:this._rootDom.childNodes[0].clientHeight}}},{key:"executeAction",value:function(e){switch(e){case"DELETE":this._handleDelete()}}},{key:"_emitProgrammaticScrollEvt",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this.viewModelUpdateInProgress=!0,this._viewEventHandler.handleEvent("treeProgrammaticScroll",e,(function(){t.viewModelUpdateInProgress=!1,l.isViewPortRangeInDataBuffer(t._viewModel)?t.render():l.updateDataBuffer(t._viewModel),i()}))}},{key:"scrollToIndex",value:function(e){var t={nodeIndex:e};this._emitProgrammaticScrollEvt(t)}},{key:"render",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;if(e&&(this._data=e,this._metadata=i),!this.viewModelUpdateInProgress){var n=this.treeBuilder.buildTree(this._data,this._metadata);t.render(n,this._rootDom)}}},{key:"destroy",value:function(){this._listeners.forEach((function(e){e.remove()})),t.unmountComponentAtNode(this._rootDom)}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";e.exports=function(e){function t(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){if(io)for(var e in no){var i=no[e],o=io.indexOf(e);if(!(-1<o))throw Error(t(96,e));if(!oo[o]){if(!i.extractEvents)throw Error(t(97,e));for(var r in oo[o]=i,o=i.eventTypes){var a=void 0,s=o[r],l=i,c=r;if(ro.hasOwnProperty(c))throw Error(t(99,c));ro[c]=s;var d=s.phasedRegistrationNames;if(d){for(a in d)d.hasOwnProperty(a)&&n(d[a],l,c);a=!0}else s.registrationName?(n(s.registrationName,l,c),a=!0):a=!1;if(!a)throw Error(t(98,r,e))}}}}function n(e,i,n){if(ao[e])throw Error(t(100,e));ao[e]=i,so[e]=i.eventTypes[n].dependencies}function o(e,t,i,n,o,r,a,s,l){co=!1,uo=null,lo.apply(fo,arguments)}function r(e,i,n){var r=e.type||"unknown-event";e.currentTarget=_o(n),function(e,i,n,r,a,s,l,c,d){if(o.apply(this,arguments),co){if(!co)throw Error(t(198));var u=uo;co=!1,uo=null,ho||(ho=!0,po=u)}}(r,i,void 0,e),e.currentTarget=null}function a(e,i){if(null==i)throw Error(t(30));return null==e?i:Array.isArray(e)?Array.isArray(i)?(e.push.apply(e,i),e):(e.push(i),e):Array.isArray(i)?[e].concat(i):[e,i]}function s(e,t,i){Array.isArray(e)?e.forEach(t,i):e&&t.call(i,e)}function l(e){if(null!==e&&(vo=a(vo,e)),e=vo,vo=null,e){if(s(e,bo),vo)throw Error(t(95));if(ho)throw e=po,ho=!1,po=null,e}}function c(e,i){var n=e.stateNode;if(!n)return null;var o=go(n);if(!o)return null;n=o[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(t(231,i,typeof n));return n}function d(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Fo&&e[Fo]||e["@@iterator"])?e:null}function u(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Io:return"Fragment";case wo:return"Portal";case xo:return"Profiler";case Ao:return"StrictMode";case Po:return"Suspense";case Oo:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Lo:return"Context.Consumer";case No:return"Context.Provider";case Mo:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Ro:return u(e.type);case ko:if(e=1===e._status?e._result:null)return u(e)}return null}function h(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var i="";break e;default:var n=e._debugOwner,o=e._debugSource,r=u(e.type);i=null,n&&(i=u(n.type)),n=r,r="",o?r=" (at "+o.fileName.replace(To,"")+":"+o.lineNumber+")":i&&(r=" (created by "+i+")"),i="\n in "+(n||"Unknown")+r}t+=i,e=e.return}while(e);return t}function p(e){if(e=mo(e)){if("function"!=typeof Vo)throw Error(t(280));var i=go(e.stateNode);Vo(e.stateNode,e.type,i)}}function f(e){jo?Uo?Uo.push(e):Uo=[e]:jo=e}function g(){if(jo){var e=jo,t=Uo;if(Uo=jo=null,p(e),t)for(e=0;e<t.length;e++)p(t[e])}}function m(){null===jo&&null===Uo||(zo(),g())}function _(e,t,i,n,o,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=r}function v(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function b(e,t,i,n){var o=pr.hasOwnProperty(t)?pr[t]:null;(null!==o?0===o.type:!n&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,i,n){if(null==t||function(e,t,i,n){if(null!==i&&0===i.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==i?!i.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,i,n))return!0;if(n)return!1;if(null!==i)switch(i.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,i,o,n)&&(i=null),n||null===o?function(e){return!!dr.call(hr,e)||!dr.call(ur,e)&&(cr.test(e)?hr[e]=!0:(ur[e]=!0,!1))}(t)&&(null===i?e.removeAttribute(t):e.setAttribute(t,""+i)):o.mustUseProperty?e[o.propertyName]=null===i?3!==o.type&&"":i:(t=o.attributeName,n=o.attributeNamespace,null===i?e.removeAttribute(t):(i=3===(o=o.type)||4===o&&!0===i?"":""+i,n?e.setAttributeNS(n,t,i):e.setAttribute(t,i))))}function y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function C(e){e._valueTracker||(e._valueTracker=function(e){var t=y(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==i&&"function"==typeof i.get&&"function"==typeof i.set){var o=i.get,r=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,r.call(this,e)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function T(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),n="";return e&&(n=y(e)?e.checked?"true":"false":e.value),(e=n)!==i&&(t.setValue(e),!0)}function E(e,t){var i=t.checked;return Ho({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=i?i:e._wrapperState.initialChecked})}function S(e,t){var i=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;i=v(null!=t.value?t.value:i),e._wrapperState={initialChecked:n,initialValue:i,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function w(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function I(e,t){w(e,t);var i=v(t.value),n=t.type;if(null!=i)"number"===n?(0===i&&""===e.value||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?x(e,t.type,i):t.hasOwnProperty("defaultValue")&&x(e,t.type,v(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function A(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}""!==(i=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==i&&(e.name=i)}function x(e,t,i){"number"===t&&e.ownerDocument.activeElement===e||(null==i?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}function N(t,i){return t=Ho({children:void 0},i),(i=function(t){var i="";return e.Children.forEach(t,(function(e){null!=e&&(i+=e)})),i}(i.children))&&(t.children=i),t}function L(e,t,i,n){if(e=e.options,t){t={};for(var o=0;o<i.length;o++)t["$"+i[o]]=!0;for(i=0;i<e.length;i++)o=t.hasOwnProperty("$"+e[i].value),e[i].selected!==o&&(e[i].selected=o),o&&n&&(e[i].defaultSelected=!0)}else{for(i=""+v(i),t=null,o=0;o<e.length;o++){if(e[o].value===i)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function D(e,i){if(null!=i.dangerouslySetInnerHTML)throw Error(t(91));return Ho({},i,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function M(e,i){var n=i.value;if(null==n){if(n=i.defaultValue,null!=(i=i.children)){if(null!=n)throw Error(t(92));if(Array.isArray(i)){if(!(1>=i.length))throw Error(t(93));i=i[0]}n=i}null==n&&(n="")}e._wrapperState={initialValue:v(n)}}function P(e,t){var i=v(t.value),n=v(t.defaultValue);null!=i&&((i=""+i)!==e.value&&(e.value=i),null==t.defaultValue&&e.defaultValue!==i&&(e.defaultValue=i)),null!=n&&(e.defaultValue=""+n)}function O(e,t){(t=e.textContent)===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function R(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function k(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?R(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function F(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}function B(e){if(Cr[e])return Cr[e];if(!yr[e])return e;var t,i=yr[e];for(t in i)if(i.hasOwnProperty(t)&&t in Tr)return Cr[e]=i[t];return e}function H(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(i=t.return),e=t.return}while(e)}return 3===t.tag?i:null}function V(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function j(e){if(H(e)!==e)throw Error(t(188))}function U(e){if(!(e=function(e){var i=e.alternate;if(!i){if(null===(i=H(e)))throw Error(t(188));return i!==e?null:e}for(var n=e,o=i;;){var r=n.return;if(null===r)break;var a=r.alternate;if(null===a){if(null!==(o=r.return)){n=o;continue}break}if(r.child===a.child){for(a=r.child;a;){if(a===n)return j(r),e;if(a===o)return j(r),i;a=a.sibling}throw Error(t(188))}if(n.return!==o.return)n=r,o=a;else{for(var s=!1,l=r.child;l;){if(l===n){s=!0,n=r,o=a;break}if(l===o){s=!0,o=r,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,o=r;break}if(l===o){s=!0,o=a,n=r;break}l=l.sibling}if(!s)throw Error(t(189))}}if(n.alternate!==o)throw Error(t(190))}if(3!==n.tag)throw Error(t(188));return n.stateNode.current===n?e:i}(e)))return null;for(var i=e;;){if(5===i.tag||6===i.tag)return i;if(i.child)i.child.return=i,i=i.child;else{if(i===e)break;for(;!i.sibling;){if(!i.return||i.return===e)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}}return null}function W(e,t,i,n){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|i,nativeEvent:n}}function G(e,t){switch(e){case"focus":case"blur":Lr=null;break;case"dragenter":case"dragleave":Dr=null;break;case"mouseover":case"mouseout":Mr=null;break;case"pointerover":case"pointerout":Pr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Or.delete(t.pointerId)}}function z(e,t,i,n,o){return null===e||e.nativeEvent!==o?(e=W(t,i,n,o),null!==t&&null!==(t=je(t))&&Cc(t),e):(e.eventSystemFlags|=n,e)}function q(e){var t=Ve(e.target);if(null!==t){var i=H(t);if(null!==i)if(13===(t=i.tag)){if(null!==(t=V(i)))return e.blockedOn=t,void tr(e.priority,(function(){Tc(i)}))}else if(3===t&&i.stateNode.hydrate)return void(e.blockedOn=3===i.tag?i.stateNode.containerInfo:null)}e.blockedOn=null}function K(e){if(null!==e.blockedOn)return!1;var t=Ce(e.topLevelType,e.eventSystemFlags,e.nativeEvent);if(null!==t){var i=je(t);return null!==i&&Cc(i),e.blockedOn=t,!1}return!0}function X(e,t,i){K(e)&&i.delete(t)}function Y(){for(xr=!1;0<Nr.length;){var e=Nr[0];if(null!==e.blockedOn){null!==(e=je(e.blockedOn))&&yc(e);break}var t=Ce(e.topLevelType,e.eventSystemFlags,e.nativeEvent);null!==t?e.blockedOn=t:Nr.shift()}null!==Lr&&K(Lr)&&(Lr=null),null!==Dr&&K(Dr)&&(Dr=null),null!==Mr&&K(Mr)&&(Mr=null),Pr.forEach(X),Or.forEach(X)}function Q(e,t){e.blockedOn===t&&(e.blockedOn=null,xr||(xr=!0,Jo(ar,Y)))}function $(e){if(0<Nr.length){Q(Nr[0],e);for(var t=1;t<Nr.length;t++){var i=Nr[t];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==Lr&&Q(Lr,e),null!==Dr&&Q(Dr,e),null!==Mr&&Q(Mr,e),t=function(t){return Q(t,e)},Pr.forEach(t),Or.forEach(t),t=0;t<Rr.length;t++)(i=Rr[t]).blockedOn===e&&(i.blockedOn=null);for(;0<Rr.length&&null===(t=Rr[0]).blockedOn;)q(t),null===t.blockedOn&&Rr.shift()}function J(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Z(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function ee(e,t,i){(t=c(e,i.dispatchConfig.phasedRegistrationNames[t]))&&(i._dispatchListeners=a(i._dispatchListeners,t),i._dispatchInstances=a(i._dispatchInstances,e))}function te(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,i=[];t;)i.push(t),t=Z(t);for(t=i.length;0<t--;)ee(i[t],"captured",e);for(t=0;t<i.length;t++)ee(i[t],"bubbled",e)}}function ie(e,t,i){e&&i&&i.dispatchConfig.registrationName&&(t=c(e,i.dispatchConfig.registrationName))&&(i._dispatchListeners=a(i._dispatchListeners,t),i._dispatchInstances=a(i._dispatchInstances,e))}function ne(e){e&&e.dispatchConfig.registrationName&&ie(e._targetInst,null,e)}function oe(e){s(e,te)}function re(){return!0}function ae(){return!1}function se(e,t,i,n){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=i,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(i):"target"===o?this.target=n:this[o]=i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?re:ae,this.isPropagationStopped=ae,this}function le(e,t,i,n){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,i,n),o}return new this(e,t,i,n)}function ce(e){if(!(e instanceof this))throw Error(t(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function de(e){e.eventPool=[],e.getPooled=le,e.release=ce}function ue(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function he(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Gr[e])&&!!t[e]}function pe(e){return he}function fe(e){var t=e.targetInst,i=t;do{if(!i){e.ancestors.push(i);break}var n=i;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=i.tag)&&6!==t||e.ancestors.push(i),i=Ve(n)}while(i);for(i=0;i<e.ancestors.length;i++){t=e.ancestors[i];var o=J(e.nativeEvent);n=e.topLevelType;for(var r=e.nativeEvent,s=e.eventSystemFlags,c=null,d=0;d<oo.length;d++){var u=oo[d];u&&(u=u.extractEvents(n,t,r,o,s))&&(c=a(c,u))}l(c)}}function ge(e,t){me(t,e,!1)}function me(e,t,i){switch(ga(t)){case 0:var n=_e.bind(null,t,1);break;case 1:n=ve.bind(null,t,1);break;default:n=ye.bind(null,t,1)}i?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function _e(e,t,i){Ko||zo();var n=ye,o=Ko;Ko=!0;try{Go(n,e,t,i)}finally{(Ko=o)||m()}}function ve(e,t,i){fa(pa,ye.bind(null,e,t,i))}function be(e,t,i,n){if(_a.length){var o=_a.pop();o.topLevelType=e,o.eventSystemFlags=t,o.nativeEvent=i,o.targetInst=n,e=o}else e={topLevelType:e,eventSystemFlags:t,nativeEvent:i,targetInst:n,ancestors:[]};try{if(t=fe,i=e,Xo)t(i,void 0);else{Xo=!0;try{qo(t,i,void 0)}finally{Xo=!1,m()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,_a.length<ma&&_a.push(e)}}function ye(e,t,i){if(va)if(0<Nr.length&&-1<kr.indexOf(e))e=W(null,e,t,i),Nr.push(e);else{var n=Ce(e,t,i);null===n?G(e,i):-1<kr.indexOf(e)?(e=W(n,e,t,i),Nr.push(e)):function(e,t,i,n){switch(t){case"focus":return Lr=z(Lr,e,t,i,n),!0;case"dragenter":return Dr=z(Dr,e,t,i,n),!0;case"mouseover":return Mr=z(Mr,e,t,i,n),!0;case"pointerover":var o=n.pointerId;return Pr.set(o,z(Pr.get(o)||null,e,t,i,n)),!0;case"gotpointercapture":return o=n.pointerId,Or.set(o,z(Or.get(o)||null,e,t,i,n)),!0}return!1}(n,e,t,i)||(G(e,i),be(e,t,i,null))}}function Ce(e,t,i){var n=J(i);if(null!==(n=Ve(n))){var o=H(n);if(null===o)n=null;else{var r=o.tag;if(13===r){if(null!==(n=V(o)))return n;n=null}else if(3===r){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}return be(e,t,i,n),null}function Te(e){if(!Bo)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Ee(e){var t=ba.get(e);return void 0===t&&(t=new Set,ba.set(e,t)),t}function Se(e,t,i){if(!i.has(e)){switch(e){case"scroll":me(t,"scroll",!0);break;case"focus":case"blur":me(t,"focus",!0),me(t,"blur",!0),i.add("blur"),i.add("focus");break;case"cancel":case"close":Te(e)&&me(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ar.indexOf(e)&&ge(e,t)}i.add(e)}}function we(e,t,i){return null==t||"boolean"==typeof t||""===t?"":i||"number"!=typeof t||0===t||ya.hasOwnProperty(e)&&ya[e]?(""+t).trim():t+"px"}function Ie(e,t){for(var i in e=e.style,t)if(t.hasOwnProperty(i)){var n=0===i.indexOf("--"),o=we(i,t[i],n);"float"===i&&(i="cssFloat"),n?e.setProperty(i,o):e[i]=o}}function Ae(e,i){if(i){if(Ta[e]&&(null!=i.children||null!=i.dangerouslySetInnerHTML))throw Error(t(137,e,""));if(null!=i.dangerouslySetInnerHTML){if(null!=i.children)throw Error(t(60));if("object"!=typeof i.dangerouslySetInnerHTML||!("__html"in i.dangerouslySetInnerHTML))throw Error(t(61))}if(null!=i.style&&"object"!=typeof i.style)throw Error(t(62,""))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ne(e,t){var i=Ee(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=so[t];for(var n=0;n<t.length;n++)Se(t[n],e,i)}function Le(){}function De(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Me(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pe(e,t){var i,n=Me(e);for(e=0;n;){if(3===n.nodeType){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Me(n)}}function Oe(){for(var e=window,t=De();t instanceof e.HTMLIFrameElement;){try{var i="string"==typeof t.contentWindow.location.href}catch(e){i=!1}if(!i)break;t=De((e=t.contentWindow).document)}return t}function Re(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ke(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Fe(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function Be(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function He(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===vr){var i=e.data;if(i===Ea||i===Ia||i===wa){if(0===t)return e;t--}else i===Sa&&t++}e=e.previousSibling}return null}function Ve(e){var t=e[Ma];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Oa]||i[Ma]){if(i=t.alternate,null!==t.child||null!==i&&null!==i.child)for(e=He(e);null!==e;){if(i=e[Ma])return i;e=He(e)}return t}i=(e=i).parentNode}return null}function je(e){return!(e=e[Ma]||e[Oa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ue(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(t(33))}function We(e){return e[Pa]||null}function Ge(){if(Fa)return Fa;var e,t,i=ka,n=i.length,o="value"in Ra?Ra.value:Ra.textContent,r=o.length;for(e=0;e<n&&i[e]===o[e];e++);var a=n-e;for(t=1;t<=a&&i[n-t]===o[r-t];t++);return Fa=o.slice(e,1<t?1-t:void 0)}function ze(e,t){switch(e){case"keyup":return-1!==Va.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function qe(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function Ke(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Qa[e.type]:"textarea"===t}function Xe(e,t,i){return(e=se.getPooled($a.change,e,t,i)).type="change",f(i),oe(e),e}function Ye(e){l(e)}function Qe(e){if(T(Ue(e)))return e}function $e(e,t){if("change"===e)return t}function Je(){Ja&&(Ja.detachEvent("onpropertychange",Ze),Za=Ja=null)}function Ze(e){if("value"===e.propertyName&&Qe(Za))if(e=Xe(Za,e,J(e)),Ko)l(e);else{Ko=!0;try{Wo(Ye,e)}finally{Ko=!1,m()}}}function et(e,t,i){"focus"===e?(Je(),Za=i,(Ja=t).attachEvent("onpropertychange",Ze)):"blur"===e&&Je()}function tt(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qe(Za)}function it(e,t){if("click"===e)return Qe(t)}function nt(e,t){if("input"===e||"change"===e)return Qe(t)}function ot(e,t){if(rs(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(n=0;n<i.length;n++)if(!as.call(t,i[n])||!rs(e[i[n]],t[i[n]]))return!1;return!0}function rt(e,t){var i=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return hs||null==cs||cs!==De(i)?null:(i="selectionStart"in(i=cs)&&Re(i)?{start:i.selectionStart,end:i.selectionEnd}:{anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},us&&ot(us,i)?null:(us=i,(e=se.getPooled(ls.select,ds,e,t)).type="select",e.target=cs,oe(e),e))}function at(e,t){0>gs||(e.current=fs[gs],fs[gs]=null,gs--)}function st(e,t,i){gs++,fs[gs]=e.current,e.current=t}function lt(e,t){var i=e.type.contextTypes;if(!i)return ms;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,r={};for(o in i)r[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function ct(e){return null!=(e=e.childContextTypes)}function dt(e){at(vs),at(_s)}function ut(e){at(vs),at(_s)}function ht(e,i,n){if(_s.current!==ms)throw Error(t(168));st(_s,i),st(vs,n)}function pt(e,i,n){var o=e.stateNode;if(e=i.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var r in o=o.getChildContext())if(!(r in e))throw Error(t(108,u(i)||"Unknown",r));return Ho({},n,{},o)}function ft(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||ms,bs=_s.current,st(_s,t),st(vs,vs.current),!0}function gt(e,i,n){var o=e.stateNode;if(!o)throw Error(t(169));n?(i=pt(e,i,bs),o.__reactInternalMemoizedMergedChildContext=i,at(vs),at(_s),st(_s,i)):at(vs),st(vs,n)}function mt(){switch(Es()){case Ss:return 99;case ws:return 98;case Is:return 97;case As:return 96;case xs:return 95;default:throw Error(t(332))}}function _t(e){switch(e){case 99:return Ss;case 98:return ws;case 97:return Is;case 96:return As;case 95:return xs;default:throw Error(t(332))}}function vt(e,t){return e=_t(e),ys(e,t)}function bt(e,t,i){return e=_t(e),Cs(e,t,i)}function yt(e){return null===Ms?(Ms=[e],Ps=Cs(Ss,Tt)):Ms.push(e),Ns}function Ct(){if(null!==Ps){var e=Ps;Ps=null,Ts(e)}Tt()}function Tt(){if(!Os&&null!==Ms){Os=!0;var e=0;try{var t=Ms;vt(99,(function(){for(;e<t.length;e++){var i=t[e];do{i=i(!0)}while(null!==i)}})),Ms=null}catch(t){throw null!==Ms&&(Ms=Ms.slice(e+1)),Cs(Ss,Ct),t}finally{Os=!1}}}function Et(e,t,i){return 1073741821-(1+((1073741821-e+t/10)/(i/=10)|0))*i}function St(e,t){if(e&&e.defaultProps)for(var i in t=Ho({},t),e=e.defaultProps)void 0===t[i]&&(t[i]=e[i]);return t}function wt(){js=Vs=Hs=null}function It(e,t){var i=e.type._context;st(Bs,i._currentValue),i._currentValue=t}function At(e){var t=Bs.current;at(Bs),e.type._context._currentValue=t}function xt(e,t){for(;null!==e;){var i=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==i&&i.childExpirationTime<t&&(i.childExpirationTime=t);else{if(!(null!==i&&i.childExpirationTime<t))break;i.childExpirationTime=t}e=e.return}}function Nt(e,t){Hs=e,js=Vs=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Sl=!0),e.firstContext=null)}function Lt(e,i){if(js!==e&&!1!==i&&0!==i)if("number"==typeof i&&1073741823!==i||(js=e,i=1073741823),i={context:e,observedBits:i,next:null},null===Vs){if(null===Hs)throw Error(t(308));Vs=i,Hs.dependencies={expirationTime:0,firstContext:i,responders:null}}else Vs=Vs.next=i;return e._currentValue}function Dt(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Mt(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Pt(e,t){return{expirationTime:e,suspenseConfig:t,tag:Us,payload:null,callback:null,next:null,nextEffect:null}}function Ot(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Rt(e,t){var i=e.alternate;if(null===i){var n=e.updateQueue,o=null;null===n&&(n=e.updateQueue=Dt(e.memoizedState))}else n=e.updateQueue,o=i.updateQueue,null===n?null===o?(n=e.updateQueue=Dt(e.memoizedState),o=i.updateQueue=Dt(i.memoizedState)):n=e.updateQueue=Mt(o):null===o&&(o=i.updateQueue=Mt(n));null===o||n===o?Ot(n,t):null===n.lastUpdate||null===o.lastUpdate?(Ot(n,t),Ot(o,t)):(Ot(n,t),o.lastUpdate=t)}function kt(e,t){var i=e.updateQueue;null===(i=null===i?e.updateQueue=Dt(e.memoizedState):Ft(e,i)).lastCapturedUpdate?i.firstCapturedUpdate=i.lastCapturedUpdate=t:(i.lastCapturedUpdate.next=t,i.lastCapturedUpdate=t)}function Ft(e,t){var i=e.alternate;return null!==i&&t===i.updateQueue&&(t=e.updateQueue=Mt(t)),t}function Bt(e,t,i,n,o,r){switch(i.tag){case 1:return"function"==typeof(e=i.payload)?e.call(r,n,o):e;case 3:e.effectTag=-4097&e.effectTag|64;case Us:if(null==(o="function"==typeof(e=i.payload)?e.call(r,n,o):e))break;return Ho({},n,o);case Ws:Gs=!0}return n}function Ht(e,t,i,n,o){Gs=!1;for(var r=(t=Ft(e,t)).baseState,a=null,s=0,l=t.firstUpdate,c=r;null!==l;){var d=l.expirationTime;d<o?(null===a&&(a=l,r=c),s<d&&(s=d)):(bn(d,l.suspenseConfig),c=Bt(e,0,l,c,i,n),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(d=null,l=t.firstCapturedUpdate;null!==l;){var u=l.expirationTime;u<o?(null===d&&(d=l,null===a&&(r=c)),s<u&&(s=u)):(c=Bt(e,0,l,c,i,n),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===d?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===d&&(r=c),t.baseState=r,t.firstUpdate=a,t.firstCapturedUpdate=d,yn(s),e.expirationTime=s,e.memoizedState=c}function Vt(e,t,i,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),jt(t.firstEffect,i),t.firstEffect=t.lastEffect=null,jt(t.firstCapturedEffect,i),t.firstCapturedEffect=t.lastCapturedEffect=null}function jt(e,i){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var o=i;if("function"!=typeof n)throw Error(t(191,n));n.call(o)}e=e.nextEffect}}function Ut(e,t,i,n){i=null==(i=i(n,t=e.memoizedState))?t:Ho({},t,i),e.memoizedState=i,null!==(n=e.updateQueue)&&0===e.expirationTime&&(n.baseState=i)}function Wt(e,t,i,n,o,r,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,r,a):!(t.prototype&&t.prototype.isPureReactComponent&&ot(i,n)&&ot(o,r))}function Gt(e,t,i,n){var o=!1;n=ms;var r=t.contextType;return"object"==typeof r&&null!==r?r=Lt(r):(n=ct(t)?bs:_s.current,r=(o=null!=(o=t.contextTypes))?lt(e,n):ms),t=new t(i,r),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ks,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=r),t}function zt(e,t,i,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(i,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(i,n),t.state!==e&&Ks.enqueueReplaceState(t,t.state,null)}function qt(e,t,i,n){var o=e.stateNode;o.props=i,o.state=e.memoizedState,o.refs=qs;var r=t.contextType;"object"==typeof r&&null!==r?o.context=Lt(r):(r=ct(t)?bs:_s.current,o.context=lt(e,r)),null!==(r=e.updateQueue)&&(Ht(e,r,i,o,n),o.state=e.memoizedState),"function"==typeof(r=t.getDerivedStateFromProps)&&(Ut(e,t,r,i),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ks.enqueueReplaceState(o,o.state,null),null!==(r=e.updateQueue)&&(Ht(e,r,i,o,n),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}function Kt(e,i,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(t(309));var o=n.stateNode}if(!o)throw Error(t(147,e));var r=""+e;return null!==i&&null!==i.ref&&"function"==typeof i.ref&&i.ref._stringRef===r?i.ref:((i=function(e){var t=o.refs;t===qs&&(t=o.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,i)}if("string"!=typeof e)throw Error(t(284));if(!n._owner)throw Error(t(290,e))}return e}function Xt(e,i){if("textarea"!==e.type)throw Error(t(31,"[object Object]"===Object.prototype.toString.call(i)?"object with keys {"+Object.keys(i).join(", ")+"}":i,""))}function Yt(e){function i(t,i){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=i,t.lastEffect=i):t.firstEffect=t.lastEffect=i,i.nextEffect=null,i.effectTag=8}}function n(t,n){if(!e)return null;for(;null!==n;)i(t,n),n=n.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t,i){return(e=Fn(e,t,i)).index=0,e.sibling=null,e}function a(t,i,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<i?(t.effectTag=2,i):n:(t.effectTag=2,i):i}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,i,n){return null===t||6!==t.tag?((t=Vn(i,e.mode,n)).return=e,t):((t=r(t,i,n)).return=e,t)}function c(e,t,i,n){return null!==t&&t.elementType===i.type?((n=r(t,i.props,n)).ref=Kt(e,t,i),n.return=e,n):((n=Bn(i.type,i.key,i.props,null,e.mode,n)).ref=Kt(e,t,i),n.return=e,n)}function u(e,t,i,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==i.containerInfo||t.stateNode.implementation!==i.implementation?((t=jn(i,e.mode,n)).return=e,t):((t=r(t,i.children||[],n)).return=e,t)}function h(e,t,i,n,o){return null===t||7!==t.tag?((t=Hn(i,e.mode,n,o)).return=e,t):((t=r(t,i,n)).return=e,t)}function p(e,t,i){if("string"==typeof t||"number"==typeof t)return(t=Vn(""+t,e.mode,i)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case So:return(i=Bn(t.type,t.key,t.props,null,e.mode,i)).ref=Kt(e,null,t),i.return=e,i;case wo:return(t=jn(t,e.mode,i)).return=e,t}if(Xs(t)||d(t))return(t=Hn(t,e.mode,i,null)).return=e,t;Xt(e,t)}return null}function f(e,t,i,n){var o=null!==t?t.key:null;if("string"==typeof i||"number"==typeof i)return null!==o?null:l(e,t,""+i,n);if("object"==typeof i&&null!==i){switch(i.$$typeof){case So:return i.key===o?i.type===Io?h(e,t,i.props.children,n,o):c(e,t,i,n):null;case wo:return i.key===o?u(e,t,i,n):null}if(Xs(i)||d(i))return null!==o?null:h(e,t,i,n,null);Xt(e,i)}return null}function g(e,t,i,n,o){if("string"==typeof n||"number"==typeof n)return l(t,e=e.get(i)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case So:return e=e.get(null===n.key?i:n.key)||null,n.type===Io?h(t,e,n.props.children,o,n.key):c(t,e,n,o);case wo:return u(t,e=e.get(null===n.key?i:n.key)||null,n,o)}if(Xs(n)||d(n))return h(t,e=e.get(i)||null,n,o,null);Xt(t,n)}return null}function m(t,r,s,l){for(var c=null,d=null,u=r,h=r=0,m=null;null!==u&&h<s.length;h++){u.index>h?(m=u,u=null):m=u.sibling;var _=f(t,u,s[h],l);if(null===_){null===u&&(u=m);break}e&&u&&null===_.alternate&&i(t,u),r=a(_,r,h),null===d?c=_:d.sibling=_,d=_,u=m}if(h===s.length)return n(t,u),c;if(null===u){for(;h<s.length;h++)null!==(u=p(t,s[h],l))&&(r=a(u,r,h),null===d?c=u:d.sibling=u,d=u);return c}for(u=o(t,u);h<s.length;h++)null!==(m=g(u,t,h,s[h],l))&&(e&&null!==m.alternate&&u.delete(null===m.key?h:m.key),r=a(m,r,h),null===d?c=m:d.sibling=m,d=m);return e&&u.forEach((function(e){return i(t,e)})),c}function _(r,s,l,c){var u=d(l);if("function"!=typeof u)throw Error(t(150));if(null==(l=u.call(l)))throw Error(t(151));for(var h=u=null,m=s,_=s=0,v=null,b=l.next();null!==m&&!b.done;_++,b=l.next()){m.index>_?(v=m,m=null):v=m.sibling;var y=f(r,m,b.value,c);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&i(r,m),s=a(y,s,_),null===h?u=y:h.sibling=y,h=y,m=v}if(b.done)return n(r,m),u;if(null===m){for(;!b.done;_++,b=l.next())null!==(b=p(r,b.value,c))&&(s=a(b,s,_),null===h?u=b:h.sibling=b,h=b);return u}for(m=o(r,m);!b.done;_++,b=l.next())null!==(b=g(m,r,_,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?_:b.key),s=a(b,s,_),null===h?u=b:h.sibling=b,h=b);return e&&m.forEach((function(e){return i(r,e)})),u}return function(e,o,a,l){var c="object"==typeof a&&null!==a&&a.type===Io&&null===a.key;c&&(a=a.props.children);var u="object"==typeof a&&null!==a;if(u)switch(a.$$typeof){case So:e:{for(u=a.key,c=o;null!==c;){if(c.key===u){if(7===c.tag?a.type===Io:c.elementType===a.type){n(e,c.sibling),(o=r(c,a.type===Io?a.props.children:a.props,l)).ref=Kt(e,c,a),o.return=e,e=o;break e}n(e,c);break}i(e,c),c=c.sibling}a.type===Io?((o=Hn(a.props.children,e.mode,l,a.key)).return=e,e=o):((l=Bn(a.type,a.key,a.props,null,e.mode,l)).ref=Kt(e,o,a),l.return=e,e=l)}return s(e);case wo:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),(o=r(o,a.children||[],l)).return=e,e=o;break e}n(e,o);break}i(e,o),o=o.sibling}(o=jn(a,e.mode,l)).return=e,e=o}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,a,l)).return=e,e=o):(n(e,o),(o=Vn(a,e.mode,l)).return=e,e=o),s(e);if(Xs(a))return m(e,o,a,l);if(d(a))return _(e,o,a,l);if(u&&Xt(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(t(152,e.displayName||e.name||"Component"))}return n(e,o)}}function Qt(e){if(e===$s)throw Error(t(174));return e}function $t(e,t){st(el,t),st(Zs,e),st(Js,$s);var i=t.nodeType;switch(i){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:k(null,"");break;default:t=k(t=(i=i===vr?t.parentNode:t).namespaceURI||null,i=i.tagName)}at(Js),st(Js,t)}function Jt(e){at(Js),at(Zs),at(el)}function Zt(e){Qt(el.current);var t=Qt(Js.current),i=k(t,e.type);t!==i&&(st(Zs,e),st(Js,i))}function ei(e){Zs.current===e&&(at(Js),at(Zs))}function ti(e){for(var t=e;null!==t;){if(13===t.tag){var i=t.memoizedState;if(null!==i&&(null===(i=i.dehydrated)||i.data===wa||i.data===Ia))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ii(e,t){return{responder:e,props:t}}function ni(){throw Error(t(321))}function oi(e,t){if(null===t)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!rs(e[i],t[i]))return!1;return!0}function ri(e,i,n,o,r,a){if(ol=a,rl=i,sl=null!==e?e.memoizedState:null,il.current=null===sl?vl:bl,i=n(o,r),fl){do{fl=!1,ml+=1,sl=null!==e?e.memoizedState:null,dl=ll,hl=cl=al=null,il.current=bl,i=n(o,r)}while(fl);gl=null,ml=0}if(il.current=_l,(e=rl).memoizedState=ll,e.expirationTime=ul,e.updateQueue=hl,e.effectTag|=pl,e=null!==al&&null!==al.next,ol=0,dl=cl=ll=sl=al=rl=null,ul=0,hl=null,pl=0,e)throw Error(t(300));return i}function ai(){il.current=_l,ol=0,dl=cl=ll=sl=al=rl=null,ul=0,hl=null,pl=0,fl=!1,gl=null,ml=0}function si(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===cl?ll=cl=e:cl=cl.next=e,cl}function li(){if(null!==dl)dl=(cl=dl).next,sl=null!==(al=sl)?al.next:null;else{if(null===sl)throw Error(t(310));var e={memoizedState:(al=sl).memoizedState,baseState:al.baseState,queue:al.queue,baseUpdate:al.baseUpdate,next:null};cl=null===cl?ll=e:cl.next=e,sl=al.next}return cl}function ci(e,t){return"function"==typeof t?t(e):t}function di(e,i,n){if(null===(n=(i=li()).queue))throw Error(t(311));if(n.lastRenderedReducer=e,0<ml){var o=n.dispatch;if(null!==gl){var r=gl.get(n);if(void 0!==r){gl.delete(n);var a=i.memoizedState;do{a=e(a,r.action),r=r.next}while(null!==r);return rs(a,i.memoizedState)||(Sl=!0),i.memoizedState=a,i.baseUpdate===n.last&&(i.baseState=a),n.lastRenderedState=a,[a,o]}}return[i.memoizedState,o]}o=n.last;var s=i.baseUpdate;if(a=i.baseState,null!==s?(null!==o&&(o.next=null),o=s.next):o=null!==o?o.next:null,null!==o){var l=r=null,c=o,d=!1;do{var u=c.expirationTime;u<ol?(d||(d=!0,l=s,r=a),u>ul&&yn(ul=u)):(bn(u,c.suspenseConfig),a=c.eagerReducer===e?c.eagerState:e(a,c.action)),s=c,c=c.next}while(null!==c&&c!==o);d||(l=s,r=a),rs(a,i.memoizedState)||(Sl=!0),i.memoizedState=a,i.baseUpdate=l,i.baseState=r,n.lastRenderedState=a}return[i.memoizedState,n.dispatch]}function ui(e){var t=si();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e}).dispatch=Ti.bind(null,rl,e),[t.memoizedState,e]}function hi(e){return di(ci,e)}function pi(e,t,i,n){return e={tag:e,create:t,destroy:i,deps:n,next:null},null===hl?(hl={lastEffect:null}).lastEffect=e.next=e:null===(t=hl.lastEffect)?hl.lastEffect=e.next=e:(i=t.next,t.next=e,e.next=i,hl.lastEffect=e),e}function fi(e,t,i,n){var o=si();pl|=e,o.memoizedState=pi(t,i,void 0,void 0===n?null:n)}function gi(e,t,i,n){var o=li();n=void 0===n?null:n;var r=void 0;if(null!==al){var a=al.memoizedState;if(r=a.destroy,null!==n&&oi(n,a.deps))return void pi(0,i,r,n)}pl|=e,o.memoizedState=pi(t,i,r,n)}function mi(e,t){return fi(516,192,e,t)}function _i(e,t){return gi(516,192,e,t)}function vi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function bi(e,t){}function yi(e,t){return si().memoizedState=[e,void 0===t?null:t],e}function Ci(e,t){var i=li();t=void 0===t?null:t;var n=i.memoizedState;return null!==n&&null!==t&&oi(t,n[1])?n[0]:(i.memoizedState=[e,t],e)}function Ti(e,i,n){if(!(25>ml))throw Error(t(301));var o=e.alternate;if(e===rl||null!==o&&o===rl)if(fl=!0,e={expirationTime:ol,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===gl&&(gl=new Map),void 0===(n=gl.get(i)))gl.set(i,e);else{for(i=n;null!==i.next;)i=i.next;i.next=e}else{var r=sn(),a=zs.suspense;a={expirationTime:r=ln(r,e,a),suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var s=i.last;if(null===s)a.next=a;else{var l=s.next;null!==l&&(a.next=l),s.next=a}if(i.last=a,0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=i.lastRenderedReducer))try{var c=i.lastRenderedState,d=o(c,n);if(a.eagerReducer=o,a.eagerState=d,rs(d,c))return}catch(e){}gc(e,r)}}function Ei(e,t){var i=bc(5,null,null,0);i.elementType="DELETED",i.type="DELETED",i.stateNode=t,i.return=e,i.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=i,e.lastEffect=i):e.firstEffect=e.lastEffect=i}function Si(e,t){switch(e.tag){case 5:var i=e.type;return null!==(t=1!==t.nodeType||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function wi(e){if(Tl){var t=Cl;if(t){var i=t;if(!Si(e,t)){if(!(t=Be(i.nextSibling))||!Si(e,t))return e.effectTag=-1025&e.effectTag|2,Tl=!1,void(yl=e);Ei(yl,i)}yl=e,Cl=Be(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Tl=!1,yl=e}}function Ii(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;yl=e}function Ai(e){if(e!==yl)return!1;if(!Tl)return Ii(e),Tl=!0,!1;var i=e.type;if(5!==e.tag||"head"!==i&&"body"!==i&&!Fe(i,e.memoizedProps))for(i=Cl;i;)Ei(e,i),i=Be(i.nextSibling);if(Ii(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(t(317));e:{for(e=e.nextSibling,i=0;e;){if(e.nodeType===vr){var n=e.data;if(n===Sa){if(0===i){Cl=Be(e.nextSibling);break e}i--}else n!==Ea&&n!==Ia&&n!==wa||i++}e=e.nextSibling}Cl=null}}else Cl=yl?Be(e.stateNode.nextSibling):null;return!0}function xi(){Cl=yl=null,Tl=!1}function Ni(e,t,i,n){t.child=null===e?Qs(t,null,i,n):Ys(t,e.child,i,n)}function Li(e,t,i,n,o){i=i.render;var r=t.ref;return Nt(t,o),n=ri(e,t,i,n,r,o),null===e||Sl?(t.effectTag|=1,Ni(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ui(e,t,o))}function Di(e,t,i,n,o,r){if(null===e){var a=i.type;return"function"!=typeof a||kn(a)||void 0!==a.defaultProps||null!==i.compare||void 0!==i.defaultProps?((e=Bn(i.type,null,n,null,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Mi(e,t,a,n,o,r))}return a=e.child,o<r&&(o=a.memoizedProps,(i=null!==(i=i.compare)?i:ot)(o,n)&&e.ref===t.ref)?Ui(e,t,r):(t.effectTag|=1,(e=Fn(a,n,r)).ref=t.ref,e.return=t,t.child=e)}function Mi(e,t,i,n,o,r){return null!==e&&ot(e.memoizedProps,n)&&e.ref===t.ref&&(Sl=!1,o<r)?Ui(e,t,r):Oi(e,t,i,n,r)}function Pi(e,t){var i=t.ref;(null===e&&null!==i||null!==e&&e.ref!==i)&&(t.effectTag|=128)}function Oi(e,t,i,n,o){var r=ct(i)?bs:_s.current;return r=lt(t,r),Nt(t,o),i=ri(e,t,i,n,r,o),null===e||Sl?(t.effectTag|=1,Ni(e,t,i,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ui(e,t,o))}function Ri(e,t,i,n,o){if(ct(i)){var r=!0;ft(t)}else r=!1;if(Nt(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Gt(t,i,n,o),qt(t,i,n,o),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=i.contextType;c="object"==typeof c&&null!==c?Lt(c):lt(t,c=ct(i)?bs:_s.current);var d=i.getDerivedStateFromProps,u="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate;u||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==c)&&zt(t,a,n,c),Gs=!1;var h=t.memoizedState;l=a.state=h;var p=t.updateQueue;null!==p&&(Ht(t,p,n,a,o),l=t.memoizedState),s!==n||h!==l||vs.current||Gs?("function"==typeof d&&(Ut(t,i,d,n),l=t.memoizedState),(s=Gs||Wt(t,i,s,n,h,l,c))?(u||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),n=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:St(t.type,s),l=a.context,c="object"==typeof(c=i.contextType)&&null!==c?Lt(c):lt(t,c=ct(i)?bs:_s.current),(u="function"==typeof(d=i.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==c)&&zt(t,a,n,c),Gs=!1,l=t.memoizedState,h=a.state=l,null!==(p=t.updateQueue)&&(Ht(t,p,n,a,o),h=t.memoizedState),s!==n||l!==h||vs.current||Gs?("function"==typeof d&&(Ut(t,i,d,n),h=t.memoizedState),(d=Gs||Wt(t,i,s,n,l,h,c))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,h,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=h),a.props=n,a.state=h,a.context=c,n=d):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),n=!1);return ki(e,t,i,n,r,o)}function ki(e,t,i,n,o,r){Pi(e,t);var a=0!=(64&t.effectTag);if(!n&&!a)return o&&gt(t,i,!1),Ui(e,t,r);n=t.stateNode,El.current=t;var s=a&&"function"!=typeof i.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&a?(t.child=Ys(t,e.child,null,r),t.child=Ys(t,null,s,r)):Ni(e,t,s,r),t.memoizedState=n.state,o&&gt(t,i,!0),t.child}function Fi(e){var t=e.stateNode;t.pendingContext?ht(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ht(0,t.context,!1),$t(e,t.containerInfo)}function Bi(e,t,i){var n,o=t.mode,r=t.pendingProps,a=tl.current,s=!1;if((n=0!=(64&t.effectTag))||(n=0!=(2&a)&&(null===e||null!==e.memoizedState)),n?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===r.fallback||!0===r.unstable_avoidThisFallback||(a|=1),st(tl,1&a),null===e){if(void 0!==r.fallback&&wi(t),s){if(s=r.fallback,(r=Hn(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,r.child=e;null!==e;)e.return=r,e=e.sibling;return(i=Hn(s,o,i,null)).return=t,r.sibling=i,t.memoizedState=wl,t.child=r,i}return o=r.children,t.memoizedState=null,t.child=Qs(t,null,o,i)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(r=r.fallback,(i=Fn(e,e.pendingProps,0)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(i.child=s;null!==s;)s.return=i,s=s.sibling;return(o=Fn(o,r,o.expirationTime)).return=t,i.sibling=o,i.childExpirationTime=0,t.memoizedState=wl,t.child=i,o}return i=Ys(t,e.child,r.children,i),t.memoizedState=null,t.child=i}if(e=e.child,s){if(s=r.fallback,(r=Hn(null,o,0,null)).return=t,r.child=e,null!==e&&(e.return=r),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,r.child=e;null!==e;)e.return=r,e=e.sibling;return(i=Hn(s,o,i,null)).return=t,r.sibling=i,i.effectTag|=2,r.childExpirationTime=0,t.memoizedState=wl,t.child=r,i}return t.memoizedState=null,t.child=Ys(t,e,r.children,i)}function Hi(e,t){e.expirationTime<t&&(e.expirationTime=t);var i=e.alternate;null!==i&&i.expirationTime<t&&(i.expirationTime=t),xt(e.return,t)}function Vi(e,t,i,n,o,r){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,last:n,tail:i,tailExpiration:0,tailMode:o,lastEffect:r}:(a.isBackwards=t,a.rendering=null,a.last=n,a.tail=i,a.tailExpiration=0,a.tailMode=o,a.lastEffect=r)}function ji(e,t,i){var n=t.pendingProps,o=n.revealOrder,r=n.tail;if(Ni(e,t,n.children,i),0!=(2&(n=tl.current)))n=1&n|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hi(e,i);else if(19===e.tag)Hi(e,i);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(st(tl,n),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(i=t.child,o=null;null!==i;)null!==(e=i.alternate)&&null===ti(e)&&(o=i),i=i.sibling;null===(i=o)?(o=t.child,t.child=null):(o=i.sibling,i.sibling=null),Vi(t,!1,o,i,r,t.lastEffect);break;case"backwards":for(i=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ti(e)){t.child=o;break}e=o.sibling,o.sibling=i,i=o,o=e}Vi(t,!0,i,null,r,t.lastEffect);break;case"together":Vi(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ui(e,i,n){null!==e&&(i.dependencies=e.dependencies);var o=i.expirationTime;if(0!==o&&yn(o),i.childExpirationTime<n)return null;if(null!==e&&i.child!==e.child)throw Error(t(153));if(null!==i.child){for(n=Fn(e=i.child,e.pendingProps,e.expirationTime),i.child=n,n.return=i;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fn(e,e.pendingProps,e.expirationTime)).return=i;n.sibling=null}return i.child}function Wi(e){e.effectTag|=4}function Gi(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;null!==t;)null!==t.alternate&&(i=t),t=t.sibling;null===i?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var n=null;null!==i;)null!==i.alternate&&(n=i),i=i.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function zi(e,i){switch(e.tag){case 1:return ct(e.type)&&dt(),4096&(i=e.effectTag)?(e.effectTag=-4097&i|64,e):null;case 3:if(Jt(),ut(),0!=(64&(i=e.effectTag)))throw Error(t(285));return e.effectTag=-4097&i|64,e;case 5:return ei(e),null;case 13:return at(tl),4096&(i=e.effectTag)?(e.effectTag=-4097&i|64,e):null;case 19:return at(tl),null;case 4:return Jt(),null;case 10:return At(e),null;default:return null}}function qi(e,t){return{value:e,source:t,stack:h(t)}}function Ki(e,t){var i=t.source,n=t.stack;null===n&&null!==i&&(n=h(i)),null!==i&&u(i.type),t=t.value,null!==e&&1===e.tag&&u(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function Xi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Mn(e,t)}else t.current=null}function Yi(e,i){switch(i.tag){case 0:case 11:case 15:Qi(2,0,i);break;case 1:if(256&i.effectTag&&null!==e){var n=e.memoizedProps,o=e.memoizedState;i=(e=i.stateNode).getSnapshotBeforeUpdate(i.elementType===i.type?n:St(i.type,n),o),e.__reactInternalSnapshotBeforeUpdate=i}break;case 3:case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}function Qi(e,t,i){if(null!==(i=null!==(i=i.updateQueue)?i.lastEffect:null)){var n=i=i.next;do{if(0!=(n.tag&e)){var o=n.destroy;n.destroy=void 0,void 0!==o&&o()}0!=(n.tag&t)&&(o=n.create,n.destroy=o()),n=n.next}while(n!==i)}}function $i(e,t,i){switch("function"==typeof vc&&vc(t),t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;vt(97<i?97:i,(function(){var e=n;do{var i=e.destroy;if(void 0!==i){var o=t;try{i()}catch(e){Mn(o,e)}}e=e.next}while(e!==n)}))}break;case 1:Xi(t),"function"==typeof(i=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Mn(e,t)}}(t,i);break;case 5:Xi(t);break;case 4:tn(e,t,i)}}function Ji(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,null!==t&&Ji(t)}function Zi(e){return 5===e.tag||3===e.tag||4===e.tag}function en(e){e:{for(var i=e.return;null!==i;){if(Zi(i)){var n=i;break e}i=i.return}throw Error(t(160))}switch(i=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:i=i.containerInfo,o=!0;break;default:throw Error(t(161))}16&n.effectTag&&(br(i,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Zi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var r=e;;){var a=5===r.tag||6===r.tag;if(a){var s=a?r.stateNode:r.stateNode.instance;if(n)if(o){var l=s;s=n,(a=i).nodeType===vr?a.parentNode.insertBefore(l,s):a.insertBefore(l,s)}else i.insertBefore(s,n);else o?((l=i).nodeType===vr?(a=l.parentNode).insertBefore(s,l):(a=l).appendChild(s),null!=(l=l._reactRootContainer)||null!==a.onclick||(a.onclick=Le)):i.appendChild(s)}else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function tn(e,i,n){for(var o,r,a=i,s=!1;;){if(!s){s=a.return;e:for(;;){if(null===s)throw Error(t(160));switch(o=s.stateNode,s.tag){case 5:r=!1;break e;case 3:case 4:o=o.containerInfo,r=!0;break e}s=s.return}s=!0}if(5===a.tag||6===a.tag){e:for(var l=e,c=a,d=n,u=c;;)if($i(l,u,d),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===c)break;for(;null===u.sibling;){if(null===u.return||u.return===c)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=o,c=a.stateNode,l.nodeType===vr?l.parentNode.removeChild(c):l.removeChild(c)):o.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){o=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if($i(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===i)break;for(;null===a.sibling;){if(null===a.return||a.return===i)return;4===(a=a.return).tag&&(s=!1)}a.sibling.return=a.return,a=a.sibling}}function nn(e,i){switch(i.tag){case 0:case 11:case 14:case 15:Qi(4,8,i);break;case 1:break;case 5:var n=i.stateNode;if(null!=n){var o=i.memoizedProps,r=null!==e?e.memoizedProps:o;e=i.type;var a=i.updateQueue;if(i.updateQueue=null,null!==a){for(n[Pa]=o,"input"===e&&"radio"===o.type&&null!=o.name&&w(n,o),xe(e,r),i=xe(e,o),r=0;r<a.length;r+=2){var s=a[r],l=a[r+1];"style"===s?Ie(n,l):"dangerouslySetInnerHTML"===s?_r(n,l):"children"===s?br(n,l):b(n,s,l,i)}switch(e){case"input":I(n,o);break;case"textarea":P(n,o);break;case"select":i=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(e=o.value)?L(n,!!o.multiple,e,!1):i!==!!o.multiple&&(null!=o.defaultValue?L(n,!!o.multiple,o.defaultValue,!0):L(n,!!o.multiple,o.multiple?[]:"",!1))}}}break;case 6:if(null===i.stateNode)throw Error(t(162));i.stateNode.nodeValue=i.memoizedProps;break;case 3:(i=i.stateNode).hydrate&&(i.hydrate=!1,$(i.containerInfo));break;case 12:break;case 13:if(n=i,null===i.memoizedState?o=!1:(o=!0,n=i.child,ic=ks()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,o?"function"==typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,r=null!=(r=e.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,a.style.display=we("display",r));else if(6===e.tag)e.stateNode.nodeValue=o?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(a=e.child.sibling).return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}on(i);break;case 19:on(i);break;case 17:case 20:case 21:break;default:throw Error(t(163))}}function on(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var i=e.stateNode;null===i&&(i=e.stateNode=new Ll),t.forEach((function(t){var n=On.bind(null,e,t);i.has(t)||(i.add(t),t.then(n,n))}))}}function rn(e,t,i){(i=Pt(i,null)).tag=3,i.payload={element:null};var n=t.value;return i.callback=function(){rc||(rc=!0,ac=n),Ki(e,t)},i}function an(e,t,i){(i=Pt(i,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;i.payload=function(){return Ki(e,t),n(o)}}var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(i.callback=function(){"function"!=typeof n&&(null===sc?sc=new Set([this]):sc.add(this),Ki(e,t));var i=t.stack;this.componentDidCatch(t.value,{componentStack:null!==i?i:""})}),i}function sn(){return(zl&(Fl|Bl))!==Rl?1073741821-(ks()/10|0):0!==fc?fc:fc=1073741821-(ks()/10|0)}function ln(e,i,n){if(0==(2&(i=i.mode)))return 1073741823;var o=mt();if(0==(4&i))return 99===o?1073741823:1073741822;if((zl&Fl)!==Rl)return Xl;if(null!==n)e=Et(e,0|n.timeoutMs||5e3,250);else switch(o){case 99:e=1073741823;break;case 98:e=Et(e,150,100);break;case 97:case 96:e=Et(e,5e3,250);break;case 95:e=2;break;default:throw Error(t(326))}return null!==ql&&e===Xl&&--e,e}function cn(e,t){e.expirationTime<t&&(e.expirationTime=t);var i=e.alternate;null!==i&&i.expirationTime<t&&(i.expirationTime=t);var n=e.return,o=null;if(null===n&&3===e.tag)o=e.stateNode;else for(;null!==n;){if(i=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==i&&i.childExpirationTime<t&&(i.childExpirationTime=t),null===n.return&&3===n.tag){o=n.stateNode;break}n=n.return}return null!==o&&(ql===o&&(yn(t),Yl===Wl&&Gn(o,Xl)),zn(o,t)),o}function dn(e){var t=e.lastExpiredTime;return 0!==t?t:Wn(e,t=e.firstPendingTime)?(t=e.lastPingedTime)>(e=e.nextKnownPendingLevel)?t:e:t}function un(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=yt(pn.bind(null,e));else{var t=dn(e),i=e.callbackNode;if(0===t)null!==i&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=sn();if(n=1073741823===t?99:1===t||2===t?95:0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==i){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=n)return;i!==Ns&&Ts(i)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?yt(pn.bind(null,e)):bt(n,hn.bind(null,e),{timeout:10*(1073741821-t)-ks()}),e.callbackNode=t}}}function hn(e,i){if(fc=0,i)return qn(e,i=sn()),un(e),null;var n=dn(e);if(0!==n){if(i=e.callbackNode,(zl&(Fl|Bl))!==Rl)throw Error(t(327));if(Nn(),e===ql&&n===Xl||mn(e,n),null!==Kl){var o=zl;zl|=Fl;for(var r=vn(e);;)try{Tn();break}catch(t){_n(e,t)}if(wt(),zl=o,Pl.current=r,Yl===Vl)throw i=Ql,mn(e,n),Gn(e,n),un(e),i;if(null===Kl)switch(r=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=Yl,ql=null,o){case Hl:case Vl:throw Error(t(345));case jl:qn(e,2<n?2:n);break;case Ul:if(Gn(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=wn(r)),1073741823===$l&&10<(r=ic+nc-ks())){if(tc){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,mn(e,n);break}}if(0!==(a=dn(e))&&a!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=Na(In.bind(null,e),r);break}In(e);break;case Wl:if(Gn(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=wn(r)),tc&&(0===(r=e.lastPingedTime)||r>=n)){e.lastPingedTime=n,mn(e,n);break}if(0!==(r=dn(e))&&r!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==Jl?o=10*(1073741821-Jl)-ks():1073741823===$l?o=0:(o=10*(1073741821-$l)-5e3,0>(o=(r=ks())-o)&&(o=0),(n=10*(1073741821-n)-r)<(o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Ml(o/1960))-o)&&(o=n)),10<o){e.timeoutHandle=Na(In.bind(null,e),o);break}In(e);break;case Gl:if(1073741823!==$l&&null!==Zl){a=$l;var s=Zl;if(0>=(o=0|s.busyMinDurationMs)?o=0:(r=0|s.busyDelayMs,o=(a=ks()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)))<=r?0:r+o-a),10<o){Gn(e,n),e.timeoutHandle=Na(In.bind(null,e),o);break}}In(e);break;default:throw Error(t(329))}if(un(e),e.callbackNode===i)return hn.bind(null,e)}}return null}function pn(e){var i=e.lastExpiredTime;if(i=0!==i?i:1073741823,e.finishedExpirationTime===i)In(e);else{if((zl&(Fl|Bl))!==Rl)throw Error(t(327));if(Nn(),e===ql&&i===Xl||mn(e,i),null!==Kl){var n=zl;zl|=Fl;for(var o=vn(e);;)try{Cn();break}catch(t){_n(e,t)}if(wt(),zl=n,Pl.current=o,Yl===Vl)throw n=Ql,mn(e,i),Gn(e,i),un(e),n;if(null!==Kl)throw Error(t(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=i,ql=null,In(e),un(e)}}return null}function fn(e,t){var i=zl;zl|=1;try{return e(t)}finally{(zl=i)===Rl&&Ct()}}function gn(e,t){var i=zl;zl&=-2,zl|=kl;try{return e(t)}finally{(zl=i)===Rl&&Ct()}}function mn(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var i=e.timeoutHandle;if(-1!==i&&(e.timeoutHandle=-1,La(i)),null!==Kl)for(i=Kl.return;null!==i;){var n=i;switch(n.tag){case 1:var o=n.type.childContextTypes;null!=o&&dt();break;case 3:Jt(),ut();break;case 5:ei(n);break;case 4:Jt();break;case 13:case 19:at(tl);break;case 10:At(n)}i=i.return}ql=e,Kl=Fn(e.current,null,t),Xl=t,Yl=Hl,Ql=null,Jl=$l=1073741823,Zl=null,ec=0,tc=!1}function _n(e,t){for(;;){try{if(wt(),ai(),null===Kl||null===Kl.return)return Yl=Vl,Ql=t,null;e:{var i=e,n=Kl.return,o=Kl,r=t;if(t=Xl,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==r&&"object"==typeof r&&"function"==typeof r.then){var a=r,s=0!=(1&tl.current),l=n;do{var c;if(c=13===l.tag){var d=l.memoizedState;if(null!==d)c=null!==d.dehydrated;else{var p=l.memoizedProps;c=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!s)}}if(c){var f=l.updateQueue;if(null===f){var g=new Set;g.add(a),l.updateQueue=g}else f.add(a);if(0==(2&l.mode)){if(l.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var m=Pt(1073741823,null);m.tag=Ws,Rt(o,m)}o.expirationTime=1073741823;break e}r=void 0,o=t;var _=i.pingCache;if(null===_?(_=i.pingCache=new Dl,r=new Set,_.set(a,r)):void 0===(r=_.get(a))&&(r=new Set,_.set(a,r)),!r.has(o)){r.add(o);var v=Pn.bind(null,i,a,o);a.then(v,v)}l.effectTag|=4096,l.expirationTime=t;break e}l=l.return}while(null!==l);r=Error((u(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+h(o))}Yl!==Gl&&(Yl=jl),r=qi(r,o),l=n;do{switch(l.tag){case 3:a=r,l.effectTag|=4096,l.expirationTime=t,kt(l,rn(l,a,t));break e;case 1:a=r;var b=l.type,y=l.stateNode;if(0==(64&l.effectTag)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===sc||!sc.has(y)))){l.effectTag|=4096,l.expirationTime=t,kt(l,an(l,a,t));break e}}l=l.return}while(null!==l)}Kl=Sn(Kl)}catch(e){t=e;continue}break}}function vn(e){return e=Pl.current,Pl.current=_l,null===e?_l:e}function bn(e,t){e<$l&&2<e&&($l=e),null!==t&&e<Jl&&2<e&&(Jl=e,Zl=t)}function yn(e){e>ec&&(ec=e)}function Cn(){for(;null!==Kl;)Kl=En(Kl)}function Tn(){for(;null!==Kl&&!Ls();)Kl=En(Kl)}function En(e){var t=mc(e.alternate,e,Xl);return e.memoizedProps=e.pendingProps,null===t&&(t=Sn(e)),Ol.current=null,t}function Sn(e){Kl=e;do{var i=Kl.alternate;if(e=Kl.return,0==(2048&Kl.effectTag)){e:{var n=i,o=Xl,r=(i=Kl).pendingProps;switch(i.tag){case 2:case 16:break;case 15:case 0:break;case 1:ct(i.type)&&dt();break;case 3:Jt(),ut(),(r=i.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===n||null===n.child)&&Ai(i)&&Wi(i),Al(i);break;case 5:ei(i);var a=Qt(el.current);if(o=i.type,null!==n&&null!=i.stateNode)xl(n,i,o,r,a),n.ref!==i.ref&&(i.effectTag|=128);else if(r){var s=Qt(Js.current);if(Ai(i)){n=(r=i).stateNode;var l=r.type;switch(s=r.memoizedProps,n[Ma]=r,n[Pa]=s,o=void 0,l){case"iframe":case"object":case"embed":ge("load",n);break;case"video":case"audio":for(var c=0;c<Ar.length;c++)ge(Ar[c],n);break;case"source":ge("error",n);break;case"img":case"image":case"link":ge("error",n),ge("load",n);break;case"form":ge("reset",n),ge("submit",n);break;case"details":ge("toggle",n);break;case"input":S(n,s),ge("invalid",n),Ne(a,"onChange");break;case"select":n._wrapperState={wasMultiple:!!s.multiple},ge("invalid",n),Ne(a,"onChange");break;case"textarea":M(n,s),ge("invalid",n),Ne(a,"onChange")}for(o in Ae(l,s),c=null,s)if(s.hasOwnProperty(o)){var d=s[o];"children"===o?"string"==typeof d?n.textContent!==d&&(c=["children",d]):"number"==typeof d&&n.textContent!==""+d&&(c=["children",""+d]):ao.hasOwnProperty(o)&&null!=d&&Ne(a,o)}switch(l){case"input":C(n),A(n,s,!0);break;case"textarea":C(n),O(n,s);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(n.onclick=Le)}a=c,r.updateQueue=a,(r=null!==a)&&Wi(i)}else{l=i,n=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===s&&(s=R(o)),"http://www.w3.org/1999/xhtml"===s?"script"===o?((n=n.createElement("div")).innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):"string"==typeof r.is?n=n.createElement(o,{is:r.is}):(n=n.createElement(o),"select"===o&&(s=n,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):n=n.createElementNS(s,o),n[Ma]=l,n[Pa]=r,Il(n,i,!1,!1),i.stateNode=n;var u=xe(o,r);switch(o){case"iframe":case"object":case"embed":ge("load",n),l=r;break;case"video":case"audio":for(l=0;l<Ar.length;l++)ge(Ar[l],n);l=r;break;case"source":ge("error",n),l=r;break;case"img":case"image":case"link":ge("error",n),ge("load",n),l=r;break;case"form":ge("reset",n),ge("submit",n),l=r;break;case"details":ge("toggle",n),l=r;break;case"input":S(n,r),l=E(n,r),ge("invalid",n),Ne(a,"onChange");break;case"option":l=N(n,r);break;case"select":n._wrapperState={wasMultiple:!!r.multiple},l=Ho({},r,{value:void 0}),ge("invalid",n),Ne(a,"onChange");break;case"textarea":M(n,r),l=D(n,r),ge("invalid",n),Ne(a,"onChange");break;default:l=r}Ae(o,l),s=void 0,c=o,d=n;var h=l;for(s in h)if(h.hasOwnProperty(s)){var p=h[s];"style"===s?Ie(d,p):"dangerouslySetInnerHTML"===s?null!=(p=p?p.__html:void 0)&&_r(d,p):"children"===s?"string"==typeof p?("textarea"!==c||""!==p)&&br(d,p):"number"==typeof p&&br(d,""+p):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(ao.hasOwnProperty(s)?null!=p&&Ne(a,s):null!=p&&b(d,s,p,u))}switch(o){case"input":C(n),A(n,r,!1);break;case"textarea":C(n),O(n,r);break;case"option":null!=r.value&&n.setAttribute("value",""+v(r.value));break;case"select":a=n,n=r,a.multiple=!!n.multiple,null!=(l=n.value)?L(a,!!n.multiple,l,!1):null!=n.defaultValue&&L(a,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof l.onClick&&(n.onclick=Le)}ke(o,r)&&Wi(i)}null!==i.ref&&(i.effectTag|=128)}else if(null===i.stateNode)throw Error(t(166));break;case 6:if(n&&null!=i.stateNode)Nl(n,i,n.memoizedProps,r);else{if("string"!=typeof r&&null===i.stateNode)throw Error(t(166));o=Qt(el.current),Qt(Js.current),Ai(i)?(a=(r=i).stateNode,o=r.memoizedProps,a[Ma]=r,(r=a.nodeValue!==o)&&Wi(i)):(a=i,(r=(9===o.nodeType?o:o.ownerDocument).createTextNode(r))[Ma]=a,i.stateNode=r)}break;case 11:break;case 13:if(at(tl),r=i.memoizedState,0!=(64&i.effectTag)){i.expirationTime=o;break e}r=null!==r,a=!1,null===n?void 0!==i.memoizedProps.fallback&&Ai(i):(a=null!==(o=n.memoizedState),r||null===o||null!==(o=n.child.sibling)&&(null!==(l=i.firstEffect)?(i.firstEffect=o,o.nextEffect=l):(i.firstEffect=i.lastEffect=o,o.nextEffect=null),o.effectTag=8)),r&&!a&&0!=(2&i.mode)&&(null===n&&!0!==i.memoizedProps.unstable_avoidThisFallback||0!=(1&tl.current)?Yl===Hl&&(Yl=Ul):(Yl!==Hl&&Yl!==Ul||(Yl=Wl),0!==ec&&null!==ql&&(Gn(ql,Xl),zn(ql,ec)))),(r||a)&&(i.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Jt(),Al(i);break;case 10:At(i);break;case 9:case 14:break;case 17:ct(i.type)&&dt();break;case 19:if(at(tl),null===(r=i.memoizedState))break;if(a=0!=(64&i.effectTag),null===(l=r.rendering)){if(a)Gi(r,!1);else if(Yl!==Hl||null!==n&&0!=(64&n.effectTag))for(n=i.child;null!==n;){if(null!==(l=ti(n))){for(i.effectTag|=64,Gi(r,!1),null!==(a=l.updateQueue)&&(i.updateQueue=a,i.effectTag|=4),null===r.lastEffect&&(i.firstEffect=null),i.lastEffect=r.lastEffect,r=o,a=i.child;null!==a;)n=r,(o=a).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(l=o.alternate)?(o.childExpirationTime=0,o.expirationTime=n,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=l.childExpirationTime,o.expirationTime=l.expirationTime,o.child=l.child,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,n=l.dependencies,o.dependencies=null===n?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders}),a=a.sibling;st(tl,1&tl.current|2),i=i.child;break e}n=n.sibling}}else{if(!a)if(null!==(n=ti(l))){if(i.effectTag|=64,a=!0,null!==(o=n.updateQueue)&&(i.updateQueue=o,i.effectTag|=4),Gi(r,!0),null===r.tail&&"hidden"===r.tailMode){null!==(i=i.lastEffect=r.lastEffect)&&(i.nextEffect=null);break}}else ks()>r.tailExpiration&&1<o&&(i.effectTag|=64,a=!0,Gi(r,!1),i.expirationTime=i.childExpirationTime=o-1);r.isBackwards?(l.sibling=i.child,i.child=l):(null!==(o=r.last)?o.sibling=l:i.child=l,r.last=l)}if(null!==r.tail){0===r.tailExpiration&&(r.tailExpiration=ks()+500),o=r.tail,r.rendering=o,r.tail=o.sibling,r.lastEffect=i.lastEffect,o.sibling=null,r=tl.current,st(tl,r=a?1&r|2:1&r),i=o;break e}break;case 20:case 21:break;default:throw Error(t(156,i.tag))}i=null}if(r=Kl,1===Xl||1!==r.childExpirationTime){for(a=0,o=r.child;null!==o;)(n=o.expirationTime)>a&&(a=n),(l=o.childExpirationTime)>a&&(a=l),o=o.sibling;r.childExpirationTime=a}if(null!==i)return i;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Kl.firstEffect),null!==Kl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Kl.firstEffect),e.lastEffect=Kl.lastEffect),1<Kl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Kl:e.firstEffect=Kl,e.lastEffect=Kl))}else{if(null!==(i=zi(Kl,Xl)))return i.effectTag&=2047,i;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(i=Kl.sibling))return i;Kl=e}while(null!==Kl);return Yl===Hl&&(Yl=Gl),null}function wn(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function In(e){var t=mt();return vt(99,An.bind(null,e,t)),null}function An(e,i){if(Nn(),(zl&(Fl|Bl))!==Rl)throw Error(t(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(t(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=wn(n);if(e.firstPendingTime=r,o<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:o<=e.firstSuspendedTime&&(e.firstSuspendedTime=o-1),o<=e.lastPingedTime&&(e.lastPingedTime=0),o<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ql&&(Kl=ql=null,Xl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var a=zl;zl|=Bl,Ol.current=null,Aa=va;var s=Oe();if(Re(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var d=c.anchorOffset,u=c.focusNode;c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var h=0,p=-1,f=-1,g=0,m=0,_=s,v=null;t:for(;;){for(var b;_!==l||0!==d&&3!==_.nodeType||(p=h+d),_!==u||0!==c&&3!==_.nodeType||(f=h+c),3===_.nodeType&&(h+=_.nodeValue.length),null!==(b=_.firstChild);)v=_,_=b;for(;;){if(_===s)break t;if(v===l&&++g===d&&(p=h),v===u&&++m===c&&(f=h),null!==(b=_.nextSibling))break;v=(_=v).parentNode}_=b}l=-1===p||-1===f?null:{start:p,end:f}}else l=null}l=l||{start:0,end:0}}else l=null;xa={focusedElem:s,selectionRange:l},va=!1,oc=r;do{try{xn()}catch(e){if(null===oc)throw Error(t(330));Mn(oc,e),oc=oc.nextEffect}}while(null!==oc);oc=r;do{try{for(s=e,l=i;null!==oc;){var y=oc.effectTag;if(16&y&&br(oc.stateNode,""),128&y){var C=oc.alternate;if(null!==C){var T=C.ref;null!==T&&("function"==typeof T?T(null):T.current=null)}}switch(1038&y){case 2:en(oc),oc.effectTag&=-3;break;case 6:en(oc),oc.effectTag&=-3,nn(oc.alternate,oc);break;case 1024:oc.effectTag&=-1025;break;case 1028:oc.effectTag&=-1025,nn(oc.alternate,oc);break;case 4:nn(oc.alternate,oc);break;case 8:tn(s,d=oc,l),Ji(d)}oc=oc.nextEffect}}catch(e){if(null===oc)throw Error(t(330));Mn(oc,e),oc=oc.nextEffect}}while(null!==oc);if(T=xa,C=Oe(),y=T.focusedElem,l=T.selectionRange,C!==y&&y&&y.ownerDocument&&function e(t,i){return!(!t||!i)&&(t===i||(!t||3!==t.nodeType)&&(i&&3===i.nodeType?e(t,i.parentNode):"contains"in t?t.contains(i):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(i))))}(y.ownerDocument.documentElement,y)){null!==l&&Re(y)&&(C=l.start,void 0===(T=l.end)&&(T=C),"selectionStart"in y?(y.selectionStart=C,y.selectionEnd=Math.min(T,y.value.length)):(T=(C=y.ownerDocument||document)&&C.defaultView||window).getSelection&&(T=T.getSelection(),d=y.textContent.length,s=Math.min(l.start,d),l=void 0===l.end?s:Math.min(l.end,d),!T.extend&&s>l&&(d=l,l=s,s=d),d=Pe(y,s),u=Pe(y,l),d&&u&&(1!==T.rangeCount||T.anchorNode!==d.node||T.anchorOffset!==d.offset||T.focusNode!==u.node||T.focusOffset!==u.offset)&&((C=C.createRange()).setStart(d.node,d.offset),T.removeAllRanges(),s>l?(T.addRange(C),T.extend(u.node,u.offset)):(C.setEnd(u.node,u.offset),T.addRange(C))))),C=[];for(T=y;T=T.parentNode;)1===T.nodeType&&C.push({element:T,left:T.scrollLeft,top:T.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<C.length;y++)(T=C[y]).element.scrollLeft=T.left,T.element.scrollTop=T.top}xa=null,va=!!Aa,Aa=null,e.current=n,oc=r;do{try{for(y=o;null!==oc;){var E=oc.effectTag;if(36&E){var S=oc.alternate;switch(T=y,(C=oc).tag){case 0:case 11:case 15:Qi(16,32,C);break;case 1:var w=C.stateNode;if(4&C.effectTag)if(null===S)w.componentDidMount();else{var I=C.elementType===C.type?S.memoizedProps:St(C.type,S.memoizedProps);w.componentDidUpdate(I,S.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var A=C.updateQueue;null!==A&&Vt(0,A,w);break;case 3:var x=C.updateQueue;if(null!==x){if(s=null,null!==C.child)switch(C.child.tag){case 5:s=C.child.stateNode;break;case 1:s=C.child.stateNode}Vt(0,x,s)}break;case 5:var N=C.stateNode;null===S&&4&C.effectTag&&ke(C.type,C.memoizedProps)&&N.focus();break;case 6:case 4:case 12:break;case 13:if(null===C.memoizedState){var L=C.alternate;if(null!==L){var D=L.memoizedState;if(null!==D){var M=D.dehydrated;null!==M&&$(M)}}}break;case 19:case 17:case 20:case 21:break;default:throw Error(t(163))}}if(128&E){C=void 0;var P=oc.ref;if(null!==P){var O=oc.stateNode;switch(oc.tag){case 5:C=O;break;default:C=O}"function"==typeof P?P(C):P.current=C}}oc=oc.nextEffect}}catch(e){if(null===oc)throw Error(t(330));Mn(oc,e),oc=oc.nextEffect}}while(null!==oc);oc=null,Ds(),zl=a}else e.current=n;if(lc)lc=!1,cc=e,dc=i;else for(oc=r;null!==oc;)i=oc.nextEffect,oc.nextEffect=null,oc=i;if(0===(i=e.firstPendingTime)&&(sc=null),1073741823===i?e===pc?hc++:(hc=0,pc=e):hc=0,"function"==typeof _c&&_c(n.stateNode,o),un(e),rc)throw rc=!1,e=ac,ac=null,e;return(zl&kl)!==Rl||Ct(),null}function xn(){for(;null!==oc;){var e=oc.effectTag;0!=(256&e)&&Yi(oc.alternate,oc),0==(512&e)||lc||(lc=!0,bt(97,(function(){return Nn(),null}))),oc=oc.nextEffect}}function Nn(){if(90!==dc){var e=97<dc?97:dc;return dc=90,vt(e,Ln)}}function Ln(){if(null===cc)return!1;var e=cc;if(cc=null,(zl&(Fl|Bl))!==Rl)throw Error(t(331));var i=zl;for(zl|=Bl,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:Qi(128,0,n),Qi(0,64,n)}}catch(i){if(null===e)throw Error(t(330));Mn(e,i)}n=e.nextEffect,e.nextEffect=null,e=n}return zl=i,Ct(),!0}function Dn(e,t,i){Rt(e,t=rn(e,t=qi(i,t),1073741823)),null!==(e=cn(e,1073741823))&&un(e)}function Mn(e,t){if(3===e.tag)Dn(e,e,t);else for(var i=e.return;null!==i;){if(3===i.tag){Dn(i,e,t);break}if(1===i.tag){var n=i.stateNode;if("function"==typeof i.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===sc||!sc.has(n))){Rt(i,e=an(i,e=qi(t,e),1073741823)),null!==(i=cn(i,1073741823))&&un(i);break}}i=i.return}}function Pn(e,t,i){var n=e.pingCache;null!==n&&n.delete(t),ql===e&&Xl===i?Yl===Wl||Yl===Ul&&1073741823===$l&&ks()-ic<nc?mn(e,Xl):tc=!0:Wn(e,i)&&(0!==(t=e.lastPingedTime)&&t<i||(e.lastPingedTime=i,e.finishedExpirationTime===i&&(e.finishedExpirationTime=0,e.finishedWork=null),un(e)))}function On(e,t){var i=e.stateNode;null!==i&&i.delete(t),0==(t=0)&&(t=ln(t=sn(),e,null)),null!==(e=cn(e,t))&&un(e)}function Rn(e,t,i,n){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function kn(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fn(e,t,i){return null===(i=e.alternate)?((i=bc(e.tag,t,e.key,e.mode)).elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.effectTag=0,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null),i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Bn(e,i,n,o,r,a){var s=2;if(o=e,"function"==typeof e)kn(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case Io:return Hn(n.children,r,a,i);case Do:s=8,r|=7;break;case Ao:s=8,r|=1;break;case xo:return(e=bc(12,n,i,8|r)).elementType=xo,e.type=xo,e.expirationTime=a,e;case Po:return(e=bc(13,n,i,r)).type=Po,e.elementType=Po,e.expirationTime=a,e;case Oo:return(e=bc(19,n,i,r)).elementType=Oo,e.expirationTime=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case No:s=10;break e;case Lo:s=9;break e;case Mo:s=11;break e;case Ro:s=14;break e;case ko:s=16,o=null;break e}throw Error(t(130,null==e?e:typeof e,""))}return(i=bc(s,n,i,r)).elementType=e,i.type=o,i.expirationTime=a,i}function Hn(e,t,i,n){return(e=bc(7,e,n,t)).expirationTime=i,e}function Vn(e,t,i){return(e=bc(6,e,null,t)).expirationTime=i,e}function jn(e,t,i){return(t=bc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Un(e,t,i){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=i,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Wn(e,t){var i=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==i&&i>=t&&e<=t}function Gn(e,t){var i=e.firstSuspendedTime,n=e.lastSuspendedTime;i<t&&(e.firstSuspendedTime=t),(n>t||0===i)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function zn(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var i=e.firstSuspendedTime;0!==i&&(t>=i?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function qn(e,t){var i=e.lastExpiredTime;(0===i||i>t)&&(e.lastExpiredTime=t)}function Kn(e,i,n,o){var r=i.current,a=sn(),s=zs.suspense;a=ln(a,r,s);e:if(n){t:{if(H(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(t(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ct(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(t(171))}if(1===n.tag){var c=n.type;if(ct(c)){n=pt(n,c,l);break e}}n=l}else n=ms;return null===i.context?i.context=n:i.pendingContext=n,(i=Pt(a,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(i.callback=o),Rt(r,i),gc(r,a),a}function Xn(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Yn(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Qn(e,t){Yn(e,t),(e=e.alternate)&&Yn(e,t)}function $n(e,t,i){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:wo,key:null==n?null:""+n,children:e,containerInfo:t,implementation:i}}function Jn(e,t,i){var n=new Un(e,t,i=null!=i&&!0===i.hydrate),o=bc(3,null,null,2===t?7:1===t?3:0);n.current=o,o.stateNode=n,e[Oa]=n.current,i&&0!==t&&function(e){var t=Ee(e);kr.forEach((function(i){Se(i,e,t)})),Fr.forEach((function(i){Se(i,e,t)}))}(9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function Zn(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(e.nodeType!==vr||" react-mount-point-unstable "!==e.nodeValue))}function eo(e,t,i,n,o){var r=i._reactRootContainer;if(r){var a=r._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=Xn(a);s.call(e)}}Kn(t,a,e,o)}else{if(r=i._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var i;i=e.lastChild;)e.removeChild(i);return new Jn(e,0,t?{hydrate:!0}:void 0)}(i,n),a=r._internalRoot,"function"==typeof o){var l=o;o=function(){var e=Xn(a);l.call(e)}}gn((function(){Kn(t,a,e,o)}))}return Xn(a)}function to(e,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zn(i))throw Error(t(200));return $n(e,i,null,n)}if(!e)throw Error(t(227));var io=null,no={},oo=[],ro={},ao={},so={},lo=function(e,t,i,n,o,r,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(i,c)}catch(e){this.onError(e)}},co=!1,uo=null,ho=!1,po=null,fo={onError:function(e){co=!0,uo=e}},go=null,mo=null,_o=null,vo=null,bo=function(e){if(e){var t=e._dispatchListeners,i=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)r(e,t[n],i[n]);else t&&r(e,t,i);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}},yo={injectEventPluginOrder:function(e){if(io)throw Error(t(101));io=Array.prototype.slice.call(e),i()},injectEventPluginsByName:function(e){var n,o=!1;for(n in e)if(e.hasOwnProperty(n)){var r=e[n];if(!no.hasOwnProperty(n)||no[n]!==r){if(no[n])throw Error(t(102,n));no[n]=r,o=!0}}o&&i()}},Co=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Co.hasOwnProperty("ReactCurrentDispatcher")||(Co.ReactCurrentDispatcher={current:null}),Co.hasOwnProperty("ReactCurrentBatchConfig")||(Co.ReactCurrentBatchConfig={suspense:null});var To=/^(.*)[\\\/]/,Eo="function"==typeof Symbol&&Symbol.for,So=Eo?Symbol.for("react.element"):60103,wo=Eo?Symbol.for("react.portal"):60106,Io=Eo?Symbol.for("react.fragment"):60107,Ao=Eo?Symbol.for("react.strict_mode"):60108,xo=Eo?Symbol.for("react.profiler"):60114,No=Eo?Symbol.for("react.provider"):60109,Lo=Eo?Symbol.for("react.context"):60110,Do=Eo?Symbol.for("react.concurrent_mode"):60111,Mo=Eo?Symbol.for("react.forward_ref"):60112,Po=Eo?Symbol.for("react.suspense"):60113,Oo=Eo?Symbol.for("react.suspense_list"):60120,Ro=Eo?Symbol.for("react.memo"):60115,ko=Eo?Symbol.for("react.lazy"):60116;Eo&&Symbol.for("react.fundamental"),Eo&&Symbol.for("react.responder"),Eo&&Symbol.for("react.scope");var Fo="function"==typeof Symbol&&Symbol.iterator,Bo=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ho=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,Vo=null,jo=null,Uo=null,Wo=function(e,t){return e(t)},Go=function(e,t,i,n){return e(t,i,n)},zo=function(){},qo=Wo,Ko=!1,Xo=!1,Yo=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler,Qo=Yo.unstable_cancelCallback,$o=Yo.unstable_now,Jo=Yo.unstable_scheduleCallback,Zo=Yo.unstable_shouldYield,er=Yo.unstable_requestPaint,tr=Yo.unstable_runWithPriority,ir=Yo.unstable_next,nr=Yo.unstable_getCurrentPriorityLevel,or=Yo.unstable_ImmediatePriority,rr=Yo.unstable_UserBlockingPriority,ar=Yo.unstable_NormalPriority,sr=Yo.unstable_LowPriority,lr=Yo.unstable_IdlePriority;new Map;var cr=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,dr=Object.prototype.hasOwnProperty,ur={},hr={},pr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){pr[e]=new _(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];pr[t]=new _(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){pr[e]=new _(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){pr[e]=new _(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){pr[e]=new _(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){pr[e]=new _(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){pr[e]=new _(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){pr[e]=new _(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){pr[e]=new _(e,5,!1,e.toLowerCase(),null,!1)}));var fr=/[\-:]([a-z])/g,gr=function(e){return e[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(fr,gr);pr[t]=new _(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(fr,gr);pr[t]=new _(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(fr,gr);pr[t]=new _(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){pr[e]=new _(e,1,!1,e.toLowerCase(),null,!1)})),pr.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){pr[e]=new _(e,1,!1,e.toLowerCase(),null,!0)}));var mr,_r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,i,n,o){MSApp.execUnsafeLocalFunction((function(){return e(t,i)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((mr=mr||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=mr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}})),vr=8,br=function(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&3===i.nodeType)return void(i.nodeValue=t)}e.textContent=t},yr={animationend:F("Animation","AnimationEnd"),animationiteration:F("Animation","AnimationIteration"),animationstart:F("Animation","AnimationStart"),transitionend:F("Transition","TransitionEnd")},Cr={},Tr={};Bo&&(Tr=document.createElement("div").style,"AnimationEvent"in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),"TransitionEvent"in window||delete yr.transitionend.transition);var Er=B("animationend"),Sr=B("animationiteration"),wr=B("animationstart"),Ir=B("transitionend"),Ar="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xr=!1,Nr=[],Lr=null,Dr=null,Mr=null,Pr=new Map,Or=new Map,Rr=[],kr="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Fr="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");Ho(se.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=re)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=re)},persist:function(){this.isPersistent=re},isPersistent:ae,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ae,this._dispatchInstances=this._dispatchListeners=null}}),se.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},se.extend=function(e){function t(){return i.apply(this,arguments)}var i=this,n=function(){};return n.prototype=i.prototype,n=new n,Ho(n,t.prototype),t.prototype=n,t.prototype.constructor=t,t.Interface=Ho({},i.Interface,e),t.extend=i.extend,de(t),t},de(se);for(var Br=se.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Hr=se.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vr=se.extend({view:null,detail:null}),jr=Vr.extend({relatedTarget:null}),Ur={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Gr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},zr=Vr.extend({key:function(e){if(e.key){var t=Ur[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ue(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Wr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:pe,charCode:function(e){return"keypress"===e.type?ue(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ue(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),qr=0,Kr=0,Xr=!1,Yr=!1,Qr=Vr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:pe,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=qr;return qr=e.screenX,Xr?"mousemove"===e.type?e.screenX-t:0:(Xr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Kr;return Kr=e.screenY,Yr?"mousemove"===e.type?e.screenY-t:0:(Yr=!0,0)}}),$r=Qr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Jr=Qr.extend({dataTransfer:null}),Zr=Vr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:pe}),ea=se.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ta=Qr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ia=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[Er,"animationEnd",2],[Sr,"animationIteration",2],[wr,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Ir,"transitionEnd",2],["waiting","waiting",2]],na={},oa={},ra=0;ra<ia.length;ra++){var aa=ia[ra],sa=aa[0],la=aa[1],ca=aa[2],da="on"+(la[0].toUpperCase()+la.slice(1)),ua={phasedRegistrationNames:{bubbled:da,captured:da+"Capture"},dependencies:[sa],eventPriority:ca};na[la]=ua,oa[sa]=ua}var ha={eventTypes:na,getEventPriority:function(e){return void 0!==(e=oa[e])?e.eventPriority:2},extractEvents:function(e,t,i,n,o){if(!(o=oa[e]))return null;switch(e){case"keypress":if(0===ue(i))return null;case"keydown":case"keyup":e=zr;break;case"blur":case"focus":e=jr;break;case"click":if(2===i.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Qr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=Jr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=Zr;break;case Er:case Sr:case wr:e=Br;break;case Ir:e=ea;break;case"scroll":e=Vr;break;case"wheel":e=ta;break;case"copy":case"cut":case"paste":e=Hr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=$r;break;default:e=se}return oe(t=e.getPooled(o,t,i,n)),t}},pa=rr,fa=tr,ga=ha.getEventPriority,ma=10,_a=[],va=!0,ba=new("function"==typeof WeakMap?WeakMap:Map),ya={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ca=["Webkit","ms","Moz","O"];Object.keys(ya).forEach((function(e){Ca.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ya[t]=ya[e]}))}));var Ta=Ho({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Ea="$",Sa="/$",wa="$?",Ia="$!",Aa=null,xa=null,Na="function"==typeof setTimeout?setTimeout:void 0,La="function"==typeof clearTimeout?clearTimeout:void 0,Da=Math.random().toString(36).slice(2),Ma="__reactInternalInstance$"+Da,Pa="__reactEventHandlers$"+Da,Oa="__reactContainere$"+Da,Ra=null,ka=null,Fa=null,Ba=se.extend({data:null}),Ha=se.extend({data:null}),Va=[9,13,27,32],ja=Bo&&"CompositionEvent"in window,Ua=null;Bo&&"documentMode"in document&&(Ua=document.documentMode);var Wa=Bo&&"TextEvent"in window&&!Ua,Ga=Bo&&(!ja||Ua&&8<Ua&&11>=Ua),za=String.fromCharCode(32),qa={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ka=!1,Xa=!1,Ya={eventTypes:qa,extractEvents:function(e,t,i,n,o){var r;if(ja)e:{switch(e){case"compositionstart":var a=qa.compositionStart;break e;case"compositionend":a=qa.compositionEnd;break e;case"compositionupdate":a=qa.compositionUpdate;break e}a=void 0}else Xa?ze(e,i)&&(a=qa.compositionEnd):"keydown"===e&&229===i.keyCode&&(a=qa.compositionStart);return a?(Ga&&"ko"!==i.locale&&(Xa||a!==qa.compositionStart?a===qa.compositionEnd&&Xa&&(r=Ge()):(ka="value"in(Ra=n)?Ra.value:Ra.textContent,Xa=!0)),o=Ba.getPooled(a,t,i,n),(r||null!==(r=qe(i)))&&(o.data=r),oe(o),r=o):r=null,(e=Wa?function(e,t){switch(e){case"compositionend":return qe(t);case"keypress":return 32!==t.which?null:(Ka=!0,za);case"textInput":return(e=t.data)===za&&Ka?null:e;default:return null}}(e,i):function(e,t){if(Xa)return"compositionend"===e||!ja&&ze(e,t)?(e=Ge(),Fa=ka=Ra=null,Xa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ga&&"ko"!==t.locale?null:t.data;default:return null}}(e,i))?((t=Ha.getPooled(qa.beforeInput,t,i,n)).data=e,oe(t)):t=null,null===r?t:null===t?r:[r,t]}},Qa={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},$a={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},Ja=null,Za=null,es=!1;Bo&&(es=Te("input")&&(!document.documentMode||9<document.documentMode));var ts,is={eventTypes:$a,_isInputEventSupported:es,extractEvents:function(e,t,i,n,o){var r=(o=t?Ue(t):window).nodeName&&o.nodeName.toLowerCase();if("select"===r||"input"===r&&"file"===o.type)var a=$e;else if(Ke(o))if(es)a=nt;else{a=tt;var s=et}else(r=o.nodeName)&&"input"===r.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=it);if(a&&(a=a(e,t)))return Xe(a,i,n);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&x(o,"number",o.value)}},ns={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},os={eventTypes:ns,extractEvents:function(e,t,i,n,o){var r="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(r&&0==(32&o)&&(i.relatedTarget||i.fromElement)||!a&&!r)return null;if(o=n.window===n?n:(o=n.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=t,null!==(t=(t=i.relatedTarget||i.toElement)?Ve(t):null)&&(t!==(r=H(t))||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Qr,l=ns.mouseLeave,c=ns.mouseEnter,d="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=$r,l=ns.pointerLeave,c=ns.pointerEnter,d="pointer");if(e=null==a?o:Ue(a),o=null==t?o:Ue(t),(l=s.getPooled(l,a,i,n)).type=d+"leave",l.target=e,l.relatedTarget=o,(n=s.getPooled(c,t,i,n)).type=d+"enter",n.target=o,n.relatedTarget=e,d=t,(s=a)&&d)e:{for(e=d,a=0,t=c=s;t;t=Z(t))a++;for(t=0,o=e;o;o=Z(o))t++;for(;0<a-t;)c=Z(c),a--;for(;0<t-a;)e=Z(e),t--;for(;a--;){if(c===e||c===e.alternate)break e;c=Z(c),e=Z(e)}c=null}else c=null;for(e=c,c=[];s&&s!==e&&(null===(a=s.alternate)||a!==e);)c.push(s),s=Z(s);for(s=[];d&&d!==e&&(null===(a=d.alternate)||a!==e);)s.push(d),d=Z(d);for(d=0;d<c.length;d++)ie(c[d],"bubbled",l);for(d=s.length;0<d--;)ie(s[d],"captured",n);return i===ts?(ts=null,[l]):(ts=i,[l,n])}},rs="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},as=Object.prototype.hasOwnProperty,ss=Bo&&"documentMode"in document&&11>=document.documentMode,ls={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},cs=null,ds=null,us=null,hs=!1,ps={eventTypes:ls,extractEvents:function(e,t,i,n,o){var r;if(!(r=!(o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument))){e:{o=Ee(o),r=so.onSelect;for(var a=0;a<r.length;a++)if(!o.has(r[a])){o=!1;break e}o=!0}r=!o}if(r)return null;switch(o=t?Ue(t):window,e){case"focus":(Ke(o)||"true"===o.contentEditable)&&(cs=o,ds=t,us=null);break;case"blur":us=ds=cs=null;break;case"mousedown":hs=!0;break;case"contextmenu":case"mouseup":case"dragend":return hs=!1,rt(i,n);case"selectionchange":if(ss)break;case"keydown":case"keyup":return rt(i,n)}return null}};yo.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),go=We,mo=je,_o=Ue,yo.injectEventPluginsByName({SimpleEventPlugin:ha,EnterLeaveEventPlugin:os,ChangeEventPlugin:is,SelectEventPlugin:ps,BeforeInputEventPlugin:Ya}),new Set;var fs=[],gs=-1,ms={},_s={current:ms},vs={current:!1},bs=ms,ys=tr,Cs=Jo,Ts=Qo,Es=nr,Ss=or,ws=rr,Is=ar,As=sr,xs=lr,Ns={},Ls=Zo,Ds=void 0!==er?er:function(){},Ms=null,Ps=null,Os=!1,Rs=$o(),ks=1e4>Rs?$o:function(){return $o()-Rs},Fs=3,Bs={current:null},Hs=null,Vs=null,js=null,Us=0,Ws=2,Gs=!1,zs=Co.ReactCurrentBatchConfig,qs=(new e.Component).refs,Ks={isMounted:function(e){return!!(e=e._reactInternalFiber)&&H(e)===e},enqueueSetState:function(e,t,i){e=e._reactInternalFiber;var n=sn(),o=zs.suspense;(o=Pt(n=ln(n,e,o),o)).payload=t,null!=i&&(o.callback=i),Rt(e,o),gc(e,n)},enqueueReplaceState:function(e,t,i){e=e._reactInternalFiber;var n=sn(),o=zs.suspense;(o=Pt(n=ln(n,e,o),o)).tag=1,o.payload=t,null!=i&&(o.callback=i),Rt(e,o),gc(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var i=sn(),n=zs.suspense;(n=Pt(i=ln(i,e,n),n)).tag=Ws,null!=t&&(n.callback=t),Rt(e,n),gc(e,i)}},Xs=Array.isArray,Ys=Yt(!0),Qs=Yt(!1),$s={},Js={current:$s},Zs={current:$s},el={current:$s},tl={current:0},il=Co.ReactCurrentDispatcher,nl=Co.ReactCurrentBatchConfig,ol=0,rl=null,al=null,sl=null,ll=null,cl=null,dl=null,ul=0,hl=null,pl=0,fl=!1,gl=null,ml=0,_l={readContext:Lt,useCallback:ni,useContext:ni,useEffect:ni,useImperativeHandle:ni,useLayoutEffect:ni,useMemo:ni,useReducer:ni,useRef:ni,useState:ni,useDebugValue:ni,useResponder:ni,useDeferredValue:ni,useTransition:ni},vl={readContext:Lt,useCallback:yi,useContext:Lt,useEffect:mi,useImperativeHandle:function(e,t,i){return i=null!=i?i.concat([e]):null,fi(4,36,vi.bind(null,t,e),i)},useLayoutEffect:function(e,t){return fi(4,36,e,t)},useMemo:function(e,t){var i=si();return t=void 0===t?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var n=si();return t=void 0!==i?i(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ti.bind(null,rl,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},si().memoizedState=e},useState:ui,useDebugValue:bi,useResponder:ii,useDeferredValue:function(e,t){var i=ui(e),n=i[0],o=i[1];return mi((function(){ir((function(){var i=nl.suspense;nl.suspense=void 0===t?null:t;try{o(e)}finally{nl.suspense=i}}))}),[e,t]),n},useTransition:function(e){var t=ui(!1),i=t[0],n=t[1];return[yi((function(t){n(!0),ir((function(){var i=nl.suspense;nl.suspense=void 0===e?null:e;try{n(!1),t()}finally{nl.suspense=i}}))}),[e,i]),i]}},bl={readContext:Lt,useCallback:Ci,useContext:Lt,useEffect:_i,useImperativeHandle:function(e,t,i){return i=null!=i?i.concat([e]):null,gi(4,36,vi.bind(null,t,e),i)},useLayoutEffect:function(e,t){return gi(4,36,e,t)},useMemo:function(e,t){var i=li();t=void 0===t?null:t;var n=i.memoizedState;return null!==n&&null!==t&&oi(t,n[1])?n[0]:(e=e(),i.memoizedState=[e,t],e)},useReducer:di,useRef:function(e){return li().memoizedState},useState:hi,useDebugValue:bi,useResponder:ii,useDeferredValue:function(e,t){var i=hi(e),n=i[0],o=i[1];return _i((function(){ir((function(){var i=nl.suspense;nl.suspense=void 0===t?null:t;try{o(e)}finally{nl.suspense=i}}))}),[e,t]),n},useTransition:function(e){var t=hi(!1),i=t[0],n=t[1];return[Ci((function(t){n(!0),ir((function(){var i=nl.suspense;nl.suspense=void 0===e?null:e;try{n(!1),t()}finally{nl.suspense=i}}))}),[e,i]),i]}},yl=null,Cl=null,Tl=!1,El=Co.ReactCurrentOwner,Sl=!1,wl={dehydrated:null,retryTime:0},Il=function(e,t,i,n){for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)e.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Al=function(e){},xl=function(e,t,i,n,o){var r=e.memoizedProps;if(r!==n){var a,s,l=t.stateNode;switch(Qt(Js.current),e=null,i){case"input":r=E(l,r),n=E(l,n),e=[];break;case"option":r=N(l,r),n=N(l,n),e=[];break;case"select":r=Ho({},r,{value:void 0}),n=Ho({},n,{value:void 0}),e=[];break;case"textarea":r=D(l,r),n=D(l,n),e=[];break;default:"function"!=typeof r.onClick&&"function"==typeof n.onClick&&(l.onclick=Le)}for(a in Ae(i,n),i=null,r)if(!n.hasOwnProperty(a)&&r.hasOwnProperty(a)&&null!=r[a])if("style"===a)for(s in l=r[a])l.hasOwnProperty(s)&&(i||(i={}),i[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(ao.hasOwnProperty(a)?e||(e=[]):(e=e||[]).push(a,null));for(a in n){var c=n[a];if(l=null!=r?r[a]:void 0,n.hasOwnProperty(a)&&c!==l&&(null!=c||null!=l))if("style"===a)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(i||(i={}),i[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(i||(i={}),i[s]=c[s])}else i||(e||(e=[]),e.push(a,i)),i=c;else"dangerouslySetInnerHTML"===a?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(a,""+c)):"children"===a?l===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(a,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(ao.hasOwnProperty(a)?(null!=c&&Ne(o,a),e||l===c||(e=[])):(e=e||[]).push(a,c))}i&&(e=e||[]).push("style",i),o=e,(t.updateQueue=o)&&Wi(t)}},Nl=function(e,t,i,n){i!==n&&Wi(t)},Ll="function"==typeof WeakSet?WeakSet:Set,Dl="function"==typeof WeakMap?WeakMap:Map,Ml=Math.ceil,Pl=Co.ReactCurrentDispatcher,Ol=Co.ReactCurrentOwner,Rl=0,kl=8,Fl=16,Bl=32,Hl=0,Vl=1,jl=2,Ul=3,Wl=4,Gl=5,zl=Rl,ql=null,Kl=null,Xl=0,Yl=Hl,Ql=null,$l=1073741823,Jl=1073741823,Zl=null,ec=0,tc=!1,ic=0,nc=500,oc=null,rc=!1,ac=null,sc=null,lc=!1,cc=null,dc=90,uc=null,hc=0,pc=null,fc=0,gc=function(e,i){if(50<hc)throw hc=0,pc=null,Error(t(185));if(null!==(e=cn(e,i))){var n=mt();1073741823===i?(zl&kl)!==Rl&&(zl&(Fl|Bl))===Rl?pn(e):(un(e),zl===Rl&&Ct()):un(e),(4&zl)===Rl||98!==n&&99!==n||(null===uc?uc=new Map([[e,i]]):(void 0===(n=uc.get(e))||n>i)&&uc.set(e,i))}},mc=function(e,i,n){var o=i.expirationTime;if(null!==e){var r=i.pendingProps;if(e.memoizedProps!==r||vs.current)Sl=!0;else{if(o<n){switch(Sl=!1,i.tag){case 3:Fi(i),xi();break;case 5:if(Zt(i),4&i.mode&&1!==n&&r.hidden)return i.expirationTime=i.childExpirationTime=1,null;break;case 1:ct(i.type)&&ft(i);break;case 4:$t(i,i.stateNode.containerInfo);break;case 10:It(i,i.memoizedProps.value);break;case 13:if(null!==i.memoizedState)return 0!==(o=i.child.childExpirationTime)&&o>=n?Bi(e,i,n):(st(tl,1&tl.current),null!==(i=Ui(e,i,n))?i.sibling:null);st(tl,1&tl.current);break;case 19:if(o=i.childExpirationTime>=n,0!=(64&e.effectTag)){if(o)return ji(e,i,n);i.effectTag|=64}if(null!==(r=i.memoizedState)&&(r.rendering=null,r.tail=null),st(tl,tl.current),!o)return null}return Ui(e,i,n)}Sl=!1}}else Sl=!1;switch(i.expirationTime=0,i.tag){case 2:if(o=i.type,null!==e&&(e.alternate=null,i.alternate=null,i.effectTag|=2),e=i.pendingProps,r=lt(i,_s.current),Nt(i,n),r=ri(null,i,o,e,r,n),i.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(i.tag=1,ai(),ct(o)){var a=!0;ft(i)}else a=!1;i.memoizedState=null!==r.state&&void 0!==r.state?r.state:null;var s=o.getDerivedStateFromProps;"function"==typeof s&&Ut(i,o,s,e),r.updater=Ks,i.stateNode=r,r._reactInternalFiber=i,qt(i,o,e,n),i=ki(null,i,o,!0,a,n)}else i.tag=0,Ni(null,i,r,n),i=i.child;return i;case 16:if(r=i.elementType,null!==e&&(e.alternate=null,i.alternate=null,i.effectTag|=2),e=i.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(r),1!==r._status)throw r._result;switch(r=r._result,i.type=r,a=i.tag=function(e){if("function"==typeof e)return kn(e)?1:0;if(null!=e){if((e=e.$$typeof)===Mo)return 11;if(e===Ro)return 14}return 2}(r),e=St(r,e),a){case 0:i=Oi(null,i,r,e,n);break;case 1:i=Ri(null,i,r,e,n);break;case 11:i=Li(null,i,r,e,n);break;case 14:i=Di(null,i,r,St(r.type,e),o,n);break;default:throw Error(t(306,r,""))}return i;case 0:return o=i.type,r=i.pendingProps,Oi(e,i,o,r=i.elementType===o?r:St(o,r),n);case 1:return o=i.type,r=i.pendingProps,Ri(e,i,o,r=i.elementType===o?r:St(o,r),n);case 3:if(Fi(i),null===(o=i.updateQueue))throw Error(t(282));if(r=null!==(r=i.memoizedState)?r.element:null,Ht(i,o,i.pendingProps,null,n),(o=i.memoizedState.element)===r)xi(),i=Ui(e,i,n);else{if((r=i.stateNode.hydrate)&&(Cl=Be(i.stateNode.containerInfo.firstChild),yl=i,r=Tl=!0),r)for(n=Qs(i,null,o,n),i.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ni(e,i,o,n),xi();i=i.child}return i;case 5:return Zt(i),null===e&&wi(i),o=i.type,r=i.pendingProps,a=null!==e?e.memoizedProps:null,s=r.children,Fe(o,r)?s=null:null!==a&&Fe(o,a)&&(i.effectTag|=16),Pi(e,i),4&i.mode&&1!==n&&r.hidden?(i.expirationTime=i.childExpirationTime=1,i=null):(Ni(e,i,s,n),i=i.child),i;case 6:return null===e&&wi(i),null;case 13:return Bi(e,i,n);case 4:return $t(i,i.stateNode.containerInfo),o=i.pendingProps,null===e?i.child=Ys(i,null,o,n):Ni(e,i,o,n),i.child;case 11:return o=i.type,r=i.pendingProps,Li(e,i,o,r=i.elementType===o?r:St(o,r),n);case 7:return Ni(e,i,i.pendingProps,n),i.child;case 8:case 12:return Ni(e,i,i.pendingProps.children,n),i.child;case 10:e:{if(o=i.type._context,r=i.pendingProps,s=i.memoizedProps,It(i,a=r.value),null!==s){var l=s.value;if(0==(a=rs(l,a)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,a):1073741823))){if(s.children===r.children&&!vs.current){i=Ui(e,i,n);break e}}else for(null!==(l=i.child)&&(l.return=i);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var d=c.firstContext;null!==d;){if(d.context===o&&0!=(d.observedBits&a)){1===l.tag&&((d=Pt(n,null)).tag=Ws,Rt(l,d)),l.expirationTime<n&&(l.expirationTime=n),null!==(d=l.alternate)&&d.expirationTime<n&&(d.expirationTime=n),xt(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}d=d.next}}else s=10===l.tag&&l.type===i.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===i){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}}Ni(e,i,r.children,n),i=i.child}return i;case 9:return r=i.type,o=(a=i.pendingProps).children,Nt(i,n),o=o(r=Lt(r,a.unstable_observedBits)),i.effectTag|=1,Ni(e,i,o,n),i.child;case 14:return a=St(r=i.type,i.pendingProps),Di(e,i,r,a=St(r.type,a),o,n);case 15:return Mi(e,i,i.type,i.pendingProps,o,n);case 17:return o=i.type,r=i.pendingProps,r=i.elementType===o?r:St(o,r),null!==e&&(e.alternate=null,i.alternate=null,i.effectTag|=2),i.tag=1,ct(o)?(e=!0,ft(i)):e=!1,Nt(i,n),Gt(i,o,r,n),qt(i,o,r,n),ki(null,i,o,!0,e,n);case 19:return ji(e,i,n)}throw Error(t(156,i.tag))},_c=null,vc=null,bc=function(e,t,i,n){return new Rn(e,t,i,n)},yc=function(e){if(13===e.tag){var t=Et(sn(),150,100);gc(e,t),Qn(e,t)}},Cc=function(e){if(13===e.tag){sn();var t=Fs++;gc(e,t),Qn(e,t)}},Tc=function(e){if(13===e.tag){var t=sn();t=ln(t,e,null),gc(e,t),Qn(e,t)}};Vo=function(e,i,n){switch(i){case"input":if(I(e,n),i=n.name,"radio"===n.type&&null!=i){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<n.length;i++){var o=n[i];if(o!==e&&o.form===e.form){var r=We(o);if(!r)throw Error(t(90));T(o),I(o,r)}}}break;case"textarea":P(e,n);break;case"select":null!=(i=n.value)&&L(e,!!n.multiple,i,!1)}},Jn.prototype.render=function(e,t){Kn(e,this._internalRoot,null,void 0===t?null:t)},Jn.prototype.unmount=function(e){Kn(null,this._internalRoot,null,void 0===e?null:e)},function(e,t,i,n){Wo=e,Go=function(e,t,i,n){var o=zl;zl|=4;try{return vt(98,e.bind(null,t,i,n))}finally{(zl=o)===Rl&&Ct()}},zo=function(){(zl&(1|Fl|Bl))===Rl&&(function(){if(null!==uc){var e=uc;uc=null,e.forEach((function(e,t){qn(t,e),un(t)})),Ct()}}(),Nn())},qo=function(e,t){var i=zl;zl|=2;try{return e(t)}finally{(zl=i)===Rl&&Ct()}}}(fn);var Ec={createPortal:to,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var i=e._reactInternalFiber;if(void 0===i){if("function"==typeof e.render)throw Error(t(188));throw Error(t(268,Object.keys(e)))}return e=null===(e=U(i))?null:e.stateNode},hydrate:function(e,i,n){if(!Zn(i))throw Error(t(200));return eo(null,e,i,!0,n)},render:function(e,i,n){if(!Zn(i))throw Error(t(200));return eo(null,e,i,!1,n)},unstable_renderSubtreeIntoContainer:function(e,i,n,o){if(!Zn(n))throw Error(t(200));if(null==e||void 0===e._reactInternalFiber)throw Error(t(38));return eo(e,i,n,!1,o)},unmountComponentAtNode:function(e){if(!Zn(e))throw Error(t(40));return!!e._reactRootContainer&&(gn((function(){eo(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return to.apply(void 0,arguments)},unstable_batchedUpdates:fn,flushSync:function(e,i){if((zl&(Fl|Bl))!==Rl)throw Error(t(187));var n=zl;zl|=1;try{return vt(99,e.bind(null,i))}finally{zl=n,Ct()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[je,Ue,We,yo.injectEventPluginsByName,ro,oe,function(e){s(e,ne)},f,g,ye,l,Nn,{current:!1}]}};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var i=t.inject(e);_c=function(e,n){try{t.onCommitFiberRoot(i,e,void 0,64==(64&e.current.effectTag))}catch(e){}},vc=function(e){try{t.onCommitFiberUnmount(i,e)}catch(e){}}}catch(e){}}(Ho({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Co.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=U(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Ve,bundleType:0,version:"16.11.0",rendererPackageName:"react-dom"});var Sc={default:Ec},wc=Sc&&Ec||Sc;return wc.default||wc}(i(250))},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({rightClick:"",contextMenuClick:"treeContextMenu",keyDownshiftF10:"treeContextMenuShiftF10",dblClick:"treeExpandCollapse",keyDownNavigation:"treeNavigation",keyUp:"keyUpToggleCheckedState",keyDownMetaNavigation:"treeNavigation",keyDownRangeNavigation:"treeNavigation",keyDownAlphaNum:"",keyDownF2:"treeNodeEditKeyPress",keyDownEnter:"treeNodeEditKeyPress",keyDown:"treeKeyPress",nodeMouseDown:"treeNodeMouseDown",treeMouseDown:"treeMouseDown",nodeMouseDownFocused:"treeNodeEditMouseEvent",deleteAction:"deleteActionEvent",nodeDoubleClicked:"treeNodeDoubleClicked",interactiveClick:"interactiveClick"})}),e,t),e.exports=o},function(e,t,i){var n,o;function r(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}n=[i(5781),i(2151),i(2160),i(2153),i(250)],o=i.dj.d(n,(function(e,t,i,n,o){var a=Object.freeze({TREE:"TREE",TREENODE:"TREENODE",TREENODE_CONTENT:"TREENODE_CONTENT",TREENODE_EDITOR:"TREENODE_EDITOR",TREENODE_RENDERER:"TREENODE_RENDERER",TREENODE_BEFORE_CONTENT:"TREENODE_BEFORE_CONTENT",TREENODE_AFTER_CONTENT:"TREENODE_AFTER_CONTENT"}),s=Object.freeze({CheckboxTree:t.INTERNAL.CheckboxTree,HTMLDnD:i,DnD:n}),l=function(e,t){return t.activeEditNode&&t.activeEditNode.node.id===e.value.id?{}:{draggable:!0}},c=Object.freeze({CheckboxTree:[{viewComponentPlacement:a.TREENODE_BEFORE_CONTENT,viewComponentBuilder:function(t,i,n,r){return o.createElement(e,{node:t,metadata:r,checkedHandler:i.checkboxTree.checkBoxHandler,config:n})},viewComponentEventListener:[{nameSpace:"checkboxTree",handlerName:"checkBoxHandler",eventName:"checkBoxClicked",shouldRender:!0,eventHandler:function(e){}}],viewComponentProperties:{width:19}}],HTMLDnD:[{viewComponentPlacement:a.TREENODE_CONTENT,viewComponentAttributes:l,viewComponentEventListener:[]}],DnD:[{viewComponentPlacement:a.TREENODE,viewComponentAttributes:l,viewComponentEventListener:[]}]});return{_getNameForPlugin:function(e){return Object.keys(s).filter((function(t){return s[t]===e}))[0]},_getViewComponentForPlugin:function(e){var t=this._getNameForPlugin(e);return t?c[t]:[]},getEventListenersForPlugins:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!Array.isArray(t))return[];var i=[];return t.forEach((function(t){e._getViewComponentForPlugin(t).forEach((function(e){i.push.apply(i,r(e.viewComponentEventListener))}))})),i},getPluginBuilderAndProperties:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments[1],n=[];return Array.isArray(t)?(t.forEach((function(t){e._getViewComponentForPlugin(t).forEach((function(e){e.viewComponentPlacement===i&&n.push({builder:e.viewComponentBuilder,properties:e.viewComponentProperties})}))})),n):[]},getComponentAttributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!Array.isArray(e))return{};var r={};return e.forEach((function(e){i._getViewComponentForPlugin(e).forEach((function(e){e.viewComponentPlacement===t&&(r=e.viewComponentAttributes(n,o))}))})),r},getDOMListeners:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this,i=arguments[1],n=arguments[2],o=[],r={};return Array.isArray(e)?(e.forEach((function(e){t._getViewComponentForPlugin(e).forEach((function(e){e.viewComponentPlacement===i&&(o=e.viewComponentEventListener)}))})),o.forEach((function(e){r[e.DOMEventToListen]=n[e.nameSpace][e.handlerName]})),r):{}},VIEW_COMPONENTS:a}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1335),i(1336),i(5782),i(5783),i(5784)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e({name:"mw-tristate-checkbox",widgetClass:class extends t{static get properties(){return{checked:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},"data-test-id":{type:String,reflect:!0}}}set checked(e){e=!0===e||e===n.TRUE||!1!=!!e&&e!==n.FALSE&&(e===n.MIXED?n.MIXED:e),this._validate(e,"checked"),!1===e?this.removeAttribute("checked"):this.setAttribute("checked",e),this.setAttribute("aria-checked",e)}get checked(){let e=this.getAttribute("checked");return!!e&&(e===n.TRUE||e!==n.FALSE&&"mixed")}set disabled(e){this._validate(e,"disabled"),e?(this.setAttribute("disabled",""),this.removeAttribute("tabIndex"),this.setAttribute("aria-disabled",!0)):(this.removeAttribute("disabled"),this.setAttribute("tabIndex",0),this.removeAttribute("aria-disabled"))}get disabled(){return this.hasAttribute("disabled")}set dataTestId(e){this._validate(e,"dataTestId"),e?this.setAttribute("data-test-id",e):this.removeAttribute("data-test-id")}get dataTestId(){return this.getAttribute("data-test-id")}_validate(e,t){switch(t){case"disabled":if("boolean"!=typeof e)throw new Error("Value of "+t+" property should be boolean");break;case"checked":if(e!==n.MIXED&&!0!==e&&!1!==e)throw new Error("Value of "+t+" property should be either a boolean or 'mixed'");break;case"dataTestId":if("string"!=typeof e&&null!==e)throw new Error("Value of "+t+" property should be a string or null")}}_toggleCheck(e){if(this.disabled)return;const t=this.checked;this.checked="mixed"===t||!t;const i={propertyName:"checked",oldValue:t,newValue:this.checked};this.emit("change",i,{bubbles:!0})}_handleClick(e){this._toggleCheck(e)}_handleKeyDown(e){switch(e.keyCode){case i.SPACE:case i.ENTER:e.preventDefault(),this._toggleCheck(e)}}connectedCallback(){super.connectedCallback();this.disabled||(this.setAttribute("tabIndex",0),this.clickInstance=this.on("click",this._handleClick),this.keyDownInstance=this.on("keydown",this._handleKeyDown)),this.setAttribute("aria-checked",this.checked)}render(){return this.hasAttribute("role")||this.setAttribute("role","checkbox"),o()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeyDown),this.removeEventListener("click",this._handleClick)}emits(){}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(5785),i(5787),i(2153),i(5791),i(5793),i(2158),i(5795),i(5797),i(5799),i(5800)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){"use strict";return Object.freeze({AVAILABLE:{Focus:r,Filter:[n,a],Search:a,DragAndDrop:i,ContextMenu:t,ScrollSync:c,SingleNodeSelection:[r,s],MultipleNodeSelection:[r,l],DesignTimeMultipleNodeSelection:[o,l]},INTERNAL:{CheckboxTree:e},COMPATIBLE:[[e,s]],INCOMPATIBLE:[[s,l],[e,l]],getPluginsBasedOnDSConfiguration:function(t){var i=[];return t&&t.isCheckboxTree&&i.push(e),i}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){"use strict";return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"getSelectedNodes",value:function(e){var t=void 0,i=e.getStateByKey("selected");if(i&&(t=i.rangeList[0]),t&&t.length){var n=t.map((function(e){return{id:e.id}}));if(n.length>0)return n}return[]}},{key:"isNodeAlreadySelected",value:function(t,i){return e.getSelectedNodes(t).some((function(e){return i.id===e.id}))}},{key:"setContextMenuFocus",value:function(e,t){e.setState("contextMenuFocus",t)}},{key:"removeContextMenuFocus",value:function(e){e.deleteState("contextMenuFocus")}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2154),i(336),i(2156),i(838),i(5790),i(2157),i(957)],o=i.dj.d(n,(function(e,t,i,n,o,a,s){return function(t){function l(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this));return t.adaptor=e,t.isReorderingEnabled=t.adaptor.isReorderingEnabled(),t.previousTargetDom=null,t.autoExpandTimer=null,t.dragEnterRow=null,t.isValidDrop=!0,t.adaptor.on("registerDnDSource",(function(e){return t._registerDnDSource(e)})),t.adaptor.on("moveFailed",(function(e){return t._emitDropFailed(e)})),t.adaptor.on("moveCompleted",(function(e){return t._emitDropCompleted(e)})),t.autoExpandTime=1e3,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,t),r(l,[{key:"_registerDnDSource",value:function(t){this.dndService=new e(t.treeContainerNode,this._getDnDHandlers(),this.adaptor.isNodeLabelTruncated())}},{key:"_getDnDHandlers",value:function(){var e={dragSources:{type:s.TYPE_TREENODE,handleDragStart:this._handleDragStart.bind(this),handleDragEnd:this._handleDragEnd.bind(this)},dropTargets:{handleDrop:this._handleDrop.bind(this),handleDragEnter:this._handleDragEnter.bind(this),handleDragHover:this._handleDragHover.bind(this),handleDragLeave:this._handleDragLeave.bind(this)}};return this.isReorderingEnabled&&(e.dropTargets={handleDrop:this._handleDropOnReordering.bind(this),handleDragEnter:this._handleDragEnterReordering.bind(this),handleDragHover:this._handleDragHoverOnReordering.bind(this),handleDragLeave:this._handleDragLeaveOnReordering.bind(this)},e.rowDivision={TYPE_TREE_NODE_DIVISION:a.ROW_DIVISION.TYPE_TREE_NODE_DIVISION,TYPE_TREE_DIVISION:a.ROW_DIVISION.TYPE_TREE_DIVISION}),e}},{key:"_handleDragStart",value:function(e){var t=e.dragItem,i=e.domNode,n=i.classList.contains("selected"),o=this._getDragSourceInfo([i]);if(!this.canSourceDrag(o)||this.adaptor.getEditState()||!n)return!1;t.setDataByType(s.TYPE_TREENODE,o),t.setDragOperations&&t.setDragOperations(this.dndService.MOVE);var r=document.createElement("div");r.classList.add("mw-tree-dnd-avatar");var a=o[0].data.label,l=document.createElement("div");return l.classList.add("mw-tree-avatar-label"),l.appendChild(document.createTextNode(a)),r.appendChild(l),t.setAvatar(r,o.length),this.adaptor.setDragState(!0,o),this.adaptor.updateView(),!0}},{key:"autoExpandOnHover",value:function(e){var t=this;this.previousTargetDom!==e&&(this.previousTargetDom=e,this.clearTimeoutForAutoExpand(),this.autoExpandTimer=window.setTimeout((function(){t.adaptor.expandNode(e)}),this.autoExpandTime))}},{key:"clearTimeoutForAutoExpand",value:function(){window.clearTimeout(this.autoExpandTimer)}},{key:"_handleDragEnter",value:function(e){return this._handleDragAndDropValidation(e)}},{key:"_handleDragEnterReordering",value:function(e){var t=e.position.row;return this.dragEnterRow=t,t===a.REPARENT?this.isValidDrop=this._handleDragAndDropValidation(e):(this.previousTargetDom=null,this.isValidDrop=this._handleReorderingValidation(e),e.isValidReorder=this.isValidDrop,o.handleReorderingLine(e)),this.isValidDrop}},{key:"_handleDragAndDropValidation",value:function(e){var t=e.domNode,i=e.dragItem,n=e.type;if(!i.getDataTypes().includes(s.TYPE_TREENODE))return!1;var o=i.getDataByType(s.TYPE_TREENODE),r=this._getTargetInfo(t,n);return!(!this.canTargetAcceptSource(r,o,n)||this.isDraggedItemInTheNodePath(r,o,n))}},{key:"_handleReorderingValidation",value:function(e){var t=e.domNode,i=e.dragItem,n=e.type,o=e.position,r={};if(!i.getDataTypes().includes(s.TYPE_TREENODE))return!1;var l=this._getTargetInfo(t,n),c=i.getDataByType(s.TYPE_TREENODE),d=l.path&&l.path.length;return d>1?(r.id=l.path[d-2],r.path=l.path.slice(0,d-1)):(r.id=null,r.path=[]),o.row===a.INSERT_BELOW&&l.isExpandable&&l.isExpanded&&(r.id=l.id),!(!this.canTargetAcceptSource(r,c,n)||this.isDraggedItemInTheNodePath(r,c,n))}},{key:"_handleDragHover",value:function(e){var t=e.domNode,i=e.type,n=this._getTargetInfo(t,i);this.autoExpandOnHover(n),this._handleReparentingOnHover(e)}},{key:"_handleDragHoverOnReordering",value:function(e){var t=e.domNode,i=e.type,n=e.position,o=this._getTargetInfo(t,i);n.row===a.REPARENT&&(this.autoExpandOnHover(o),this._handleReparentingOnHover(e))}},{key:"_handleReparentingOnHover",value:function(e){var t=e.domNode,i=e.type,o=this._getTargetInfo(t,i),r=this.adaptor.getDragHoverState();i!==s.TYPE_TREENODE||r&&r.id===o.id||(this.adaptor.setDragHoverState(o),t.classList.add(n.TREENODE_DRAG_HOVER[0]))}},{key:"_handleDragEnd",value:function(e){e.domNode.classList.remove(n.DRAGGED_NODE_CLASS),this.adaptor.setDragState(!1),this.adaptor.updateView()}},{key:"_handleDragLeave",value:function(e){var t=e.domNode,i=e.type;this.clearTimeoutForAutoExpand(),this.previousTargetDom=null;var o=this.adaptor.getDragHoverState();o&&o.id&&i===s.TYPE_TREENODE&&(this.adaptor.setDragHoverState({}),t.classList.remove(n.TREENODE_DRAG_HOVER[0]))}},{key:"_handleDragLeaveOnReordering",value:function(e){var t=e.domNode,i=e.type,r=this.adaptor.getDragHoverState(),l=this.dragEnterRow===a.INSERT_BELOW,c=this.dragEnterRow===a.INSERT_ABOVE,d=e.position.row===a.REPARENT,u=!((l||c)&&d);d&&(this.clearTimeoutForAutoExpand(),this.previousTargetDom=null),u&&o.removeInsertionLine(t),r&&r.id&&i===s.TYPE_TREENODE&&(this.adaptor.setDragHoverState({}),t.classList.remove(n.TREENODE_DRAG_HOVER[0]))}},{key:"_getTargetInfo",value:function(e,t){return e&&t===s.TYPE_TREENODE?this.adaptor.getCurrentViewPortData()(parseInt(e.getAttribute("data-row-index")))(0).value:{id:null}}},{key:"_handleDrop",value:function(e){this._handleDropOnReparenting(e)}},{key:"_handleDropOnReordering",value:function(e){var t=e.domNode;e.position.row!==a.REPARENT?(o.handleReorderNode(e,this.adaptor),this.adaptor.updateView(),o.removeInsertionLine(t)):this._handleDropOnReparenting(e)}},{key:"_handleDropOnReparenting",value:function(e){this.clearTimeoutForAutoExpand();var t=e.domNode,i=e.dragItem,o=e.type,r=this._getTargetInfo(t,o),a=i.getDataByType(s.TYPE_TREENODE);if(this.adaptor.setDragHoverState({}),t.classList.remove(n.TREENODE_DRAG_HOVER[0]),o===s.TYPE_TREE){return this.adaptor.moveTreeNodes(a,r,{place:"last"}),void this.adaptor.updateView()}this.adaptor.moveTreeNodes(a,r),this.adaptor.updateView()}},{key:"_getDragSourceInfo",value:function(e){var t=this.adaptor.getCurrentViewPortData(),i=this.adaptor.getCurrentSelection(),n=[],o=void 0;return e.forEach((function(e){o=parseInt(e.getAttribute("data-row-index")),n.push(t(o)(0).value)})),n.push.apply(n,function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(i)),n.filter((function(e,t){return e.id!==n[0].id||0===t}))}},{key:"_emitDropCompleted",value:function(e){this.emit("dropCompleted",e)}},{key:"_emitDropFailed",value:function(e){this.emit("dropFailed",e)}},{key:"exposedAPI",value:function(){return{}}},{key:"canSourceDrag",value:function(e){var t={nodeIds:e.map((function(e){return e.id})),type:s.TYPE_TREENODE};return!this.adaptor.getDragAndDropConfig().canDrag||this.adaptor.getDragAndDropConfig().canDrag(t)}},{key:"canTargetAcceptSource",value:function(e,t,i){var n={nodeIds:t.map((function(e){return e.id})),type:s.TYPE_TREENODE},o=e.id,r=void 0;return i===s.TYPE_TREE?r={type:s.TYPE_TREE}:i===s.TYPE_TREENODE&&(r={nodeId:o,type:s.TYPE_TREENODE}),!this.adaptor.getDragAndDropConfig().canDrop||this.adaptor.getDragAndDropConfig().canDrop(n,r)}},{key:"isDraggedItemInTheNodePath",value:function(e,t,i){return i!==s.TYPE_TREE&&t.some((function(t){return e.path.includes(t.id)}))}},{key:"destroy",value:function(){this.dndService&&this.dndService.destroy()}},{key:"emits",get:function(){return["dropFailed","dropCompleted"]}}],[{key:"adaptor",get:function(){return i}}]),l}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(804),i(5789),i(2155),i(838),i(957)],o=i.dj.d(n,(function(e,t,i,n,o){return function(){function a(t,i,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this._context=e.createContext({context:t}),this._dragSources=[],this._dropTargets=[],this._handlers=i,this._isTruncated=r,this._treeContainer=t,i&&i.dragSources&&this._createDragSource("."+n[i.dragSources.type][0],i.dragSources),i&&i.dropTargets&&(this._createDropTarget("."+n[o.TYPE_TREENODE][0],o.TYPE_TREENODE,i),this._createDropTarget(t,o.TYPE_TREE,i))}return r(a,[{key:"destroy",value:function(){this._context.destroy()}},{key:"_createDragSource",value:function(e,t){var i=this._createDragLifecycle(t),n=this._context.createDragSource({dragSource:e,lifecycle:i});this._dragSources.push(n)}},{key:"_createDragLifecycle",value:function(e){var t=this,i={};if(!e.handleDragStart)throw new Error("Exception : handleDragStart handler is required");return i.start=function(i,n){return!t._draggedOnDisclosureIcon(n,i.getXYCoordinates())&&e.handleDragStart({dragItem:i,domNode:n})},e.handleDragEnd&&(i.end=function(t,i){return e.handleDragEnd({dragItem:t,domNode:i})}),i}},{key:"_createDropTarget",value:function(e,t,i){var n={dropTarget:e,lifecycle:this._createDropLifeycle(i.dropTargets,t)};t===o.TYPE_TREENODE&&i.rowDivision&&(n.rowRegions=i.rowDivision.TYPE_TREE_NODE_DIVISION),t===o.TYPE_TREE&&i.rowDivision&&(n.rowRegions=i.rowDivision.TYPE_TREE_DIVISION);var r=this._context.createDropTarget(n);this._dropTargets.push(r)}},{key:"_createDropLifeycle",value:function(e,n){var o=this,r={};if(!e.handleDragEnter)throw new Error("Exception : handleDragEnter handler is required");if(r.enter=function(t,i,r){return(i!==o._treeContainer||!o._isInScrollBarRegion(i,t.getXYCoordinates()))&&e.handleDragEnter({dragItem:t,domNode:i,type:n,position:r})},!e.handleDrop)throw new Error("Exception : handleDrop handler is required");return r.drop=function(t,i,o){e.handleDrop({dragItem:t,domNode:i,type:n,position:o})},r.hover=function(r,a,s){if(i.noAutoScrollSupport&&window.requestAnimationFrame((function(){t.scroll(a,o._treeContainer,r.getXYCoordinates(),o._isTruncated)})),e.handleDragHover)return e.handleDragHover({dragItem:r,domNode:a,type:n,position:s})},e.handleDragLeave&&(r.leave=function(t,i,o){e.handleDragLeave({dragItem:t,domNode:i,type:n,position:o})}),r}},{key:"_draggedOnDisclosureIcon",value:function(e,t){var i=e.querySelector(".disclosureIcon");if(!i)return!1;var n=i.getBoundingClientRect(),o=n.left,r=n.right,a=n.bottom,s=n.top,l=e.getBoundingClientRect(),c=l.left,d=l.top,u=c+t.xOffset,h=d+t.yOffset;return u>=o&&u<=r&&h>=s&&h<=a}},{key:"_isInScrollBarRegion",value:function(e,t){return e.clientWidth<=t.xOffset||e.clientHeight<=t.yOffset}},{key:"MOVE",get:function(){return this._context.MOVE}}]),a}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){return{shouldHoverBeDisabled:!e("chrome")&&e("webkit")<602,isSeparateUserSelectRequired:e("trident"),containsActiveNodeLostIssue:e("trident"),noAutoScrollSupport:!!e("safari")}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(957)],o=i.dj.d(n,(function(e,t){var i="TREENODE",n="TREE";return function(e){function o(e,t,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));r.viewState=e,r.dataStore=i,r.dragAndDropConfig=n.dragAndDropConfig,r.view=t,r.viewState.setState("dnd",!0),r._options=n;var a={containerMount:function(e){r.emit("registerDnDSource",e)},containerUpdate:function(){return r.emit("syncDnDSource")}};return r.viewState.on("selected",(function(e){return r.emit("selectionChanged")})),t&&t.registerEventCallback(a),r.setDnDEndsState({}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),r(o,[{key:"updateView",value:function(){this.viewState.setState("updateView",!0)}},{key:"getCurrentViewPortData",value:function(){return this.viewState.getStateByKey("currentViewPortData").value}},{key:"getDragAndDropConfig",value:function(){return this.dragAndDropConfig||{}}},{key:"getSelectionData",value:function(){var e=this,t=this.getCurrentViewPortData(),i=this.getCurrentSelection();i=i?i.slice(0):[];var n=[],o=t.range.rows.start,r=t.range.rows.end;return new Promise((function(a,s){for(var l=function(e){if(t(e)(0)&&t(e)(0).value){var o=i.findIndex((function(i){return i.id===t(e)(0).value.id}));o>-1&&(n.push(t(e)(0).value.data),i.splice(o,1))}},c=o;c<=r&&i.length>0;c++)l(c);if(0===i.length)a(n);else{var d=[];i.forEach((function(t){d.push(e.dataStore.getNode(t).then((function(e){e&&e.node&&n.push(e.node.data)})))})),Promise.all(d).then((function(){a(n)}))}}))}},{key:"isReorderingEnabled",value:function(){return this.dragAndDropConfig&&this.dragAndDropConfig.mode===t.MODE.REORDER}},{key:"isReparentingOnlyEnabled",value:function(){return this.dragAndDropConfig&&this.dragAndDropConfig.mode===t.MODE.REPARENT}},{key:"isNodeLabelTruncated",value:function(){return this._options&&this._options.textTruncation&&"none"!==this._options.textTruncation}},{key:"getCurrentSelection",value:function(){var e=[],t=this.viewState.getStateByKey("selected");return t&&(e=t.rangeList[0]),e}},{key:"_isNodeInDragList",value:function(e,t){return e.some((function(e){return e.id===t.id}))}},{key:"_emitMoveEvents",value:function(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a={};null===o.id?a.type=n:a={nodeId:o.id,type:i},r.source=t,r.target=a,this.emit(e,r)}},{key:"_moveSuccessful",value:function(e,t){var n=this,o={nodeIds:e,type:i};return this._emitMoveEvents("moveCompleted",o,t),this.dataStore.getNode({id:t.id}).then((function(e){e&&e.node&&!e.node.isExpanded&&n.viewState.setState("potentialNextKeyboardActiveNode",e.node)}))}},{key:"moveTreeNodes",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{place:"first"},r=[],a=[],s=[],l=[],c=function(e,t,i){if(t)s.push(e);else{var n=l.find((function(e){return e.error.reason===i.reason}));n||(n={nodeIds:[],error:{reason:i.reason,message:i.message}},l.push(n)),n.nodeIds.push(e)}};return new Promise((function(d,u){e.forEach((function(i){var s=n.dataStore.getParentNode({id:i.id}).then((function(r){var s=r?r.node:{id:null};if(!(null!==s&&n._isNodeInDragList(e,s))){var l=n.dataStore.move({id:s.id},{id:i.id},{id:t.id},o).then(c.bind(n,i.id,!0),c.bind(n,i.id,!1));a.push(l)}}));r.push(s)})),Promise.all(r).then((function(){Promise.all(a).then((function(){l.forEach((function(e){var o={nodeIds:e.nodeIds,type:i};n._emitMoveEvents("moveFailed",o,t,{error:e.error})})),0!==s.length?n._moveSuccessful(s,t).then((function(){d({movedNodes:s,failedReasons:l})})):d({movedNodes:s,failedReasons:l})}))}))}))}},{key:"expandNode",value:function(e){this.dataStore.expand([{id:e.id}])}},{key:"setDragState",value:function(e,t){this.viewState.setState("mouseEnterNode",null),this.viewState.setState("isInDragging",e,t)}},{key:"setDragHoverState",value:function(e){this.viewState.setState("dragHovered",e)}},{key:"getDragHoverState",value:function(){return this.viewState.getStateByKey("dragHovered")&&this.viewState.getStateByKey("dragHovered").value}},{key:"getDragState",value:function(){return this.viewState.getStateByKey("isInDragging")&&this.viewState.getStateByKey("isInDragging").value}},{key:"setDnDEndsState",value:function(e){this.viewState.setState("dndEnds",e)}},{key:"getEditState",value:function(){return this.viewState.getStateByKey("isInEditing")&&this.viewState.getStateByKey("isInEditing").value}}],[{key:"toString",value:function(){return"DnDAdaptor"}}]),o}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({INSERT_ABOVE:0,INSERT_BELOW:2,REPARENT:1,ROW_DIVISION:{TYPE_TREE_NODE_DIVISION:"5 auto 5",TYPE_TREE_DIVISION:"0 auto 0"}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(5794)],o=i.dj.d(n,(function(e,t){return function(e){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t.adaptor=e,t.adaptor.on("nodeFocusClick",(function(e){return t._nodeClicked(e)})),t.adaptor.on("nodeFocusKeyPress",(function(e){return t._keyPressed(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"focus",value:function(){this.adaptor.setContainerFocus()}},{key:"setNodeFocus",value:function(e){if(e&&!e.id)throw new Error("Expected: treeNode object with id property. Usage: setNodeFocus({id: 'node1'}) to set node focus,setNodeFocus() to empty focus");this.adaptor.setKeyboardActiveState(e),this.adaptor.setFocusedState(e,!0)}},{key:"_nodeClicked",value:function(e){var t=e.ctrlKey||e.metaKey;e.altKey||e.shiftKey&&t||this.adaptor.setFocusedState(e.node)}},{key:"_keyPressed",value:function(e){this.adaptor.setFocusedState(e.currentKeyboardActiveNode)}},{key:"exposedAPI",value:function(){return{focus:this.focus.bind(this),setNodeFocus:this.setNodeFocus.bind(this)}}},{key:"destroy",value:function(){}},{key:"emits",get:function(){return[]}}],[{key:"adaptor",get:function(){return t}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(336),i(591),i(5798)],o=i.dj.d(n,(function(e,t,i){var n=function(){function e(){a(this,e)}return r(e,[{key:"processAndEmitEvt",value:function(e,t){t(e)}},{key:"updateBoundaryNode",value:function(e){}},{key:"getContiguousSelectionRange",value:function(e){}}]),e}();return function(e){function o(e,t,i){a(this,o);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));r.viewState=e,r._view=t,r._dataStore=i,r.selectionModelDelegate=new n;var s={treeNodeMouseDown:function(e){return r._processAndEmitEvt(e,"nodeSelectionMouseDown")},treeNodeMouseClick:function(e){e.node&&r._processAndEmitEvt(e,"nodeSelectionClick")},treeNavigation:function(e){return r._processAndEmitKeyPress(e)},treeContextMenuSelection:function(e){e.node&&r._processAndEmitEvt(e,"nodeSelectionContextMenu")}};return t&&t.registerEventCallback(s),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),r(o,[{key:"setRangeSelectionModel",value:function(){this.selectionModelDelegate=new i(this.viewState,this._view,this._dataStore)}},{key:"_isNodeAlreadySelected",value:function(e,t){return e.some((function(e){return e.id===t.id}))}},{key:"_processAndEmitEvt",value:function(e,t){var i=this,n=e;return n.currentSelection=this.getSelectionState(),n.isNodeAlreadySelected=this._isNodeAlreadySelected(n.currentSelection,n.node),this.selectionModelDelegate.processAndEmitEvt(n,(function(e){i.emit(t,e)}))}},{key:"_processAndEmitKeyPress",value:function(e){var t=this,i=e;i.currentSelection=this.getSelectionState();var n=this.viewState.getStateByKey("keyboardActive"),o=this.viewState.getStateByKey("keyboardActiveIndex");return n=n?n.value:null,o=o?o.value:null,i.currentKeyboardActiveNode=n,i.nodeIndex=o,this.selectionModelDelegate.processAndEmitEvt(i,(function(e){t.emit("nodeSelectionKeyPress",e)}))}},{key:"_getNodeIndexInCurrentSelection",value:function(e,t){for(var i=0;i<e.length;i++)if(e[i].id===t.id)return i;return-1}},{key:"_addToSelectionIfNotSelected",value:function(e,t){if(!e.some((function(e){return e.id===t.id}))){var i=e.slice(0,e.length);i.push(t),this.setSelectionState(i)}}},{key:"_toggleSelection",value:function(e,t){e=e||[];var i=this._getNodeIndexInCurrentSelection(e,t),n=[];Array.isArray(e)&&(n=e.slice(0,e.length)),i>-1?n.splice(i,1):n.push({id:t.id}),this.setSelectionState(n)}},{key:"setIndividualSelection",value:function(e,t){this.selectionModelDelegate.updateBoundaryNode(e),this.setSelectionState([e.node]),t(this.getSelectionState())}},{key:"setDiscontiguousSelection",value:function(e,t){this.selectionModelDelegate.updateBoundaryNode(e),e.isMetaKeyPressed?this._toggleSelection(this.getSelectionState(),e.node):this._addToSelectionIfNotSelected(this.getSelectionState(),e.node),t(this.getSelectionState())}},{key:"setContiguousSelection",value:function(e,t){var i=this.selectionModelDelegate.getContiguousSelectionRange(e.nodeIndex);i?this._setRangeSelection(i.start,i.end,t):t(this.getSelectionState())}},{key:"_getSelectionForNodesInViewBuffer",value:function(e,t,i){for(var n=[],o=t;o<=i;o++)n.push({id:e(o)(0).value.id});return n}},{key:"_setRangeSelection",value:function(e,i,n){var o=this,r=this.viewState.viewBuffer.rangeList[0].rows,a=r.start,s=r.end,l=e>=a&&i<=s,c=this.viewState.getStateByKey("currentViewPortData").value,d=void 0;if(l)d=this._getSelectionForNodesInViewBuffer(c,e,i),this.setSelectionState(d),n(d);else{var u=e>=a?e:a,h=i<=s?i:s;d=this._getSelectionForNodesInViewBuffer(c,u,h),this.setSelectionState(d);var p=t.getRangeListForRange(this.viewState,e,i);this._dataStore.getData(p).then((function(e){d=[],e[0].forEach((function(e){return d.push({id:e[0].id})})),o.setSelectionState(d),n(d)}))}}},{key:"setSelectionState",value:function(e,t,i){var n=this.viewState;Array.isArray(e)&&e.length?n.setState("selected",!0,[e]):n.setState("selected",!1,[]),i&&n.setState("updateView",!0)}},{key:"getSelectionState",value:function(){var e=void 0,t=this.viewState.getStateByKey("selected");if(t&&(e=t.rangeList[0]),e&&e.length){var i=e.map((function(e){return{id:e.id}}));if(i.length>0)return i}return[]}}],[{key:"toString",value:function(){return"SelectionAdaptor"}}]),o}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2156),i(2154),i(804)],o=i.dj.d(n,(function(e,t,i){return function(){function n(e){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.adaptor=e,this.selectedData="",this.adaptor.on("registerDnDSource",(function(e){return t._registerDnDSource(e)})),this.adaptor.on("selectionChanged",(function(e){return t._updateSelectionData(e)}))}return r(n,[{key:"_updateSelectionData",value:function(e){var t=this;this.adaptor.getSelectionData().then((function(e){t.selectedData=e.reduce((function(e,t){return e?e+", "+t.label:t.label}),null)}))}},{key:"_registerDnDSource",value:function(e){this.dndService=new t(e.treeContainerNode,{dragSources:{type:"TREENODE_CONTENT",handleDragStart:this._handleDragStart.bind(this),handleDragEnd:this._handleDragEnd.bind(this)}},this.adaptor.isNodeLabelTruncated())}},{key:"_handleDragStart",value:function(e){return e.dragItem.setDataByType(i.NativeType.TEXT,this.selectedData),this.adaptor.updateView(),!0}},{key:"_handleDragEnd",value:function(){this.adaptor.updateView()}},{key:"exposedAPI",value:function(){return{}}},{key:"destroy",value:function(){this.dndService&&this.dndService.destroy()}},{key:"emits",get:function(){return[]}}],[{key:"adaptor",get:function(){return e}}]),n}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(5802),i(5803),i(5805),i(5806),i(5807),i(2149),i(5808),i(2165),i(5810),i(838),i(591),i(1159),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c,d,u,h,p){var f={data:null,domId:null};return function(){function g(e,t,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),this._viewModel=e,this.dataTestId=i.dataTestId,this.handlers=t,this.renderer=i.renderer?i.renderer:s,this._numberOfGutters=function(e){var t=function(e){if(void 0!==e){if("number"!=typeof e)return!1;if(!Number.isInteger(e))return!1;if(e<=0)return!1}return!0}(e);if(!t)throw new Error("Error: Invalid numberOfGutters option, numberOfGutters should be a natural number");return t}(i.numberOfGutters)?i.numberOfGutters:0,this._truncation=i&&i.textTruncation&&(i.textTruncation===h.LEFT||i.textTruncation===h.RIGHT||i.textTruncation===h.NONE)?i.textTruncation:h.NONE,this._configuredPlugins=n,this.CheckboxTreeFlag=!1;for(var o=this._configuredPlugins?this._configuredPlugins.length:0,r=0;r<o;r++){if("CheckboxTree"===(this._configuredPlugins[r].name?this._configuredPlugins[r].name:void 0)){this.CheckboxTreeFlag=!0;break}}this.handleHoverAction=this._handleHoverAction.bind(this),this._dataTipRef=p.createRef()}return r(g,[{key:"_getScrollTopValue",value:function(e){var t=this._viewModel.getStateByKey("scrollTopCalc");if(t&&e){var i=t.value(e);return this._viewModel.viewPort.size.top=i,this._viewModel.deleteState("scrollTopCalc"),i}return this._viewModel.viewPort.size.top}},{key:"_getConsumedNodeWidth",value:function(e,t){var i=e;return t.forEach((function(e){e&&(i+=e.width?e.width:0)})),i}},{key:"_getUpdatedTreeProps",value:function(){var e=this,t={},i=this._viewModel.getStateByKey("nodeHeightInPx");t.treeNodeHeight=i?i.value:0,t.treeHeight=this._viewModel.dataSize.rows.count>=0?this._viewModel.dataSize.rows.count*t.treeNodeHeight:0,t.treeWidth=this._viewModel.getStateByKey("treeWidth"),t.treeWidth=t.treeWidth?t.treeWidth.value:null,t.translateY=this._viewModel.viewBuffer.rangeList[0].rows.start*t.treeNodeHeight,t.forceContainerFocus=this._viewModel.getStateByKey("forceContainerFocus"),t.forceContainerFocus=t.forceContainerFocus?t.forceContainerFocus.value:null,this._viewModel.deleteState("forceContainerFocus"),t.viewHeight=this._viewModel.viewPort.size.height,t.scrollTopFunc=function(t){return e._getScrollTopValue(t)};var n=this._viewModel.getStateByKey("ContainerFocused"),o="mw-tree-scroll-component";(n=n&&n.value)?o+=" focused":o="mw-tree-scroll-component";var r=this._viewModel.getStateByKey("hideScrollBars");return(r=r&&r.value)&&(o+=" hideScrollBars"),t.containerClass=""+o,t.scrollLeft=this._viewModel.viewPort.size.left,this._updateFocusedNodeID(),t}},{key:"_updateFocusedNodeID",value:function(){var e=this._viewModel.getStateByKey("focused")?this._viewModel.getStateByKey("focused").value:null;e!==f.data&&(f.data=e,f.domId="treeNode_"+u.generateUuid())}},{key:"isTruncated",value:function(){return this._truncation&&this._truncation!==h.NONE}},{key:"buildTree",value:function(e,t){var i=this,o=this._getUpdatedTreeProps(),r=[],a="tree",s=this._viewModel.getStateByKey("isInDragging");s&&s.value&&(a+=" mw-tree-drag-in-progress",o.isDraggingStarted=!0);var l=void 0,c=this._viewModel.getStateByKey("NodeHover");if(this.isTruncated()&&c&&(l=c.value),e)for(var d=e.range.rows.start,u=e.range.rows.end,h=d;h<=u&&e(h)(0).value;h++){var g=t(h).value;r.push(this.buildTreeNode(e(h)(0),h,o,g))}var m=void 0;if(this.isTruncated()){var _=this._isPointerOnNode(l);m=this.buildDataTip(l,_)}return p.createElement(n,{classes:a,dataTestId:this.dataTestId,translateY:o.translateY,viewHeight:o.viewHeight,bodyHeight:o.treeHeight,treeNodeHeight:o.treeNodeHeight,isTruncationSet:this.isTruncated(),nodeHoverInfo:l,scrollHandler:this.handlers.tree._scrollHandler,scrollTopFunc:o.scrollTopFunc,scrollLeft:o.scrollLeft,setTreeNodeProperty:this.handlers.tree._setTreeNodeHeightHandler,setTreeWidth:this.handlers.tree._setTreeWidthProperty,width:o.treeWidth,containerClass:o.containerClass,focusedNodeID:f.domId,forceContainerFocus:o.forceContainerFocus,focusHandler:this.handlers.tree._focusHandler,containerMountHandler:this.handlers.tree._containerMountHandler,containerUpdateHandler:this.handlers.tree._containerUpdateHandler,blurHandler:this.handlers.tree._blurHandler,contextMenuHandler:this.handlers.tree._contextMenuHandler,keyHandler:this.handlers.tree._keyDownHandler,keyUpHandler:this.handlers.tree._keyUpHandler,ref:function(e){return i.containerNodeRef=e},dataTip:m},r)}},{key:"buildContentNode",value:function(e,t,i,n){var o={content:null,additionalDataAttributes:{}};return o.content=this.buildRenderer(e,n),o}},{key:"buildPluginComponents",value:function(e,t,i,n,o){var r=[],s=[];return o.empty||a.getPluginBuilderAndProperties(this._configuredPlugins,n).forEach((function(n){r.push(n.builder(e,i,t,o)),s.push(n.properties)})),{components:r,properties:s}}},{key:"_handleHoverAction",value:function(e){if(this.isTruncated()){var t={nodeData:e.nodeData,nodeRef:e.nodeRef,truncation:this._truncation,hoverMode:e.hoverMode,relatedTargetNode:e.relatedTargetNode,mouseUpHandler:this.handlers.treeNode._nodeMouseUpHandler,mouseDownHandler:this.handlers.treeNode._nodeMouseDownHandler,dblClickHandler:this.handlers.treeNode._nodeDblClickHandler,clickHandler:this.handlers.treeNode._nodeClickHandler};this.handlers.treeNode._nodeHoverHandler(t)}}},{key:"_isPointerOnNode",value:function(e){var t=!1,i=this._dataTipRef.current;if(i&&e)if(e.hoverMode)t=!0;else{var n=e.relatedTarget;t=n&&n.nodeName&&i.contains(n)}return t}},{key:"buildDataTip",value:function(e,t){if(this.containerNodeRef){var n=this.containerNodeRef.myContainerDiv;return p.createElement(i,{containerElm:n,tipRef:this._dataTipRef,showDataTip:t,treeNodeInfo:e})}}},{key:"buildTreeNode",value:function(e,i,n,o){var r=e.value,s=this._getStylingAndClasses(r,o);o.nodeReadOnly=s.classes.includes("readonly");var l=this.buildDisclosureNode(r,i,o);n.nodeIndentation=s.nodeDataIndentation;var c=this.buildPluginComponents(e,n,this.handlers,a.VIEW_COMPONENTS.TREENODE_BEFORE_CONTENT,o),d=a.getComponentAttributes(this._configuredPlugins,a.VIEW_COMPONENTS.TREENODE,e,n),u=this._getConsumedNodeWidth(n.nodeIndentation,c.properties),h=this.buildContentNode(e,n,u,o),g=h.content,m=f.data&&f.data.id===r.id?f.domId:null;return p.createElement(t,{key:r.data.id,classes:s.classes,rowIndex:i,node:r,additionalDataAttributes:h.additionalDataAttributes,componentsBeforeContent:c.components,content:h.content,renderer:g,nodeDomID:m,disclosureNode:l,hoverAction:this.handleHoverAction,nodeMouseUp:this.handlers.treeNode._nodeMouseUpHandler,nodeMouseDown:this.handlers.treeNode._nodeMouseDownHandler,nodeDblClick:this.handlers.treeNode._nodeDblClickHandler,nodeClick:this.handlers.treeNode._nodeClickHandler,additionalAttributes:d,treeNodeStyle:s.style,numberOfGutters:this._numberOfGutters,noMouseInteraction:o.noMouseInteraction,isDraggingStarted:n.isDraggingStarted})}},{key:"buildRenderer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t&&t.interactiveRenderer?t.interactiveRenderer:this.renderer;if(t.interactiveRenderer instanceof l&&this.CheckboxTreeFlag)throw new Error("Checkbox Tree and Tree with Checkbox Renderer are not allowed together!");var n=e.value,r=t.empty;if(!r){var s=this.handlers.interactive_renderer,c=a.getComponentAttributes(this._configuredPlugins,a.VIEW_COMPONENTS.TREENODE_CONTENT,n),d=a.getDOMListeners(this._configuredPlugins,a.VIEW_COMPONENTS.TREENODE_CONTENT,this.handlers);return p.createElement(o,{renderer:i,additionalAttributes:c,additionalListeners:d,interactiveCallback:s,config:t,truncation:this._truncation,node:e})}}},{key:"buildDisclosureNode",value:function(t,i,n){var o=void 0;if(!(n&&n.empty)){if(t.isExpandable){var r=["disclosureIcon"];t.isExpanded?r.push("collapse"):r.push("expand"),r=r.join(" "),o=p.createElement(e,{classes:r,node:t,noMouseInteraction:n.noMouseInteraction,disclosureMouseDown:this.handlers.disclosureNode._disclosureMouseDownHandler,rowIndex:i})}return o}}},{key:"_getStylingAndClasses",value:function(e,t){var i,n,o,r,a,s,l,u=this,h=c.compose((function(e){return{classes:e.classes,style:e.nodeStyle,nodeDataIndentation:e.nodeDataIndentation}}),(function(e){var i=e.classes,n=e.node,o=e.nodeStyle,r=e.nodeDataIndentation;return t&&t.empty&&n.isExpandable?(o.treeNodeData.marginLeft+=18,i.push("parentNode")):n.isExpandable?(r+=18,i.push("parentNode")):(i.push("leafNode"),o.treeNodeData.marginLeft+=18,r+=18),{classes:i,node:n,nodeStyle:o,nodeDataIndentation:r}}),(l=u._viewModel.getStateByKey("isInDragging"),function(t){var i=t.classes,n=t.nodeStyle,o=t.nodeDataIndentation;if(l&&l.rangeList&&l.rangeList.length>0){var r=(l=l.rangeList).some((function(t){return e.id===t.id})),a=l[0];r&&i.push("dragged-node"),a.id===e.id&&(n.treeNodeData.marginLeft=n.treeNodeData.marginLeft+1)}return{classes:i,nodeStyle:n,node:e,nodeDataIndentation:o}}),(a=u._viewModel.getStateByKey("contextMenuFocus")?null:u._viewModel.getStateByKey("focused"),o="ContainerFocused",s=(r=u._viewModel.getStateByKey(o))?r.value:null,function(e){var t=e.classes,i=e.node,n=e.nodeStyle,o=e.nodeDataIndentation;if(a&&a.value){a=a.value;var r=i.id===a.id;r&&s&&(n.treeNodeData.marginLeft=n.treeNodeData.marginLeft-1),r&&t.push("focused")}return{classes:t,nodeStyle:n,node:i,nodeDataIndentation:o}}),(n=u._viewModel.getStateByKey("contextMenuFocus"),function(e){var t=e.node,i=e.classes,o=e.nodeStyle,r=e.nodeDataIndentation;return n&&n.value&&n.value.some((function(e){return e.id===t.id}))&&(o.treeNodeData.marginLeft=o.treeNodeData.marginLeft-1,i.push("contextFocus")),{classes:i,node:t,nodeStyle:o,nodeDataIndentation:r}}),(i=u._viewModel.getStateByKey("selected"),function(t){var n=t.classes,o=t.nodeStyle,r=t.nodeDataIndentation;return i&&i.rangeList&&i.rangeList.length>0&&(i=i.rangeList[0]).some((function(t){return e.id===t.id}))&&n.push("selected"),{classes:n,nodeStyle:o,node:e,nodeDataIndentation:r}}),function(){function e(e,t,i){i&&(e[t]=i)}return function(i){var n=i.classes,o=i.nodeStyle,r=i.nodeDataIndentation,a=t&&t.readonly,s=t&&t.empty,l=t&&t.noMouseInteraction;if(a&&n.push(d.READ_ONLY_NODE_CLASS),s&&n.push(d.EMPTY_NODE_CLASS),l&&n.push(d.NON_INTERACTIVE_NODE_CLASS),t.style){var c=t.style,u=c.backgroundColor,h=c.color,p=c.fontWeight,f=c.fontStyle,g=c.fontFamily;o.treeNode={},e(o.treeNode,"backgroundColor",u),e(o.treeNode,"color",h),e(o.treeNode,"fontWeight",p),e(o.treeNode,"fontStyle",f),e(o.treeNode,"fontFamily",g)}var m=t.gutterColors;return!0===t.strikeThrough&&n.push(d.TREENODE_STRIKETHROUGH),e(o,"gutterColors",m),{classes:n,nodeStyle:o,nodeDataIndentation:r}}}()),p=d.TREENODE;this._numberOfGutters>0&&p.push(d.TREENODE_GUTTER);var f={treeNodeData:{marginLeft:18*e.level}};return h({classes:p,nodeStyle:f,nodeDataIndentation:f.treeNodeData.marginLeft})}},{key:"_updateScrollLeftIfNeccessary",value:function(e){var t=this._viewModel.viewPort.size.width,i=this._viewModel.viewPort.size.left,n=void 0;n=e>.5*(i+t)?e-.5*(i+t):e<i&&e>t?e:0,this._viewModel.viewPort.size.left=n}}]),g}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({treeContainer:"tree",treeNodeItem:"treeitem"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({nodeHeight:22,lookAheadNodeBuffer:10})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({INTERACTIVE_RENDERER_CLICK:"interactiveClick",KEYUP_TOGGLE_CHECKED_STATE:"keyUpToggleCheckedState",KEY_PRESS:"keyDown",DOUBLE_CLICKED:"doubleClicked",EDIT_COMPLETED:"editCompleted"})}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(5809),i(1505),i(2166),i(1159)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=e=e||{},i=t.isChecked,n=t.getValueForAction,r=t.getA11yProperties;this._checkboxDefaultClasses=["mwDefaultVisualFamily","mwEnabled","mwWidget","mwCheckBox","mw-data-checkbox-renderer"],this._checkboxCheckedClasses=["mwCheckBoxChecked"],i&&(this._isChecked=i),n&&(this.getValueForAction=n),r&&(this._getA11yProperties=r)}return a(o,[{key:"_isChecked",value:function(e){return!(!e||!0!==e.checked)}},{key:"getDomNode",value:function(e,t){var i=document.createElement("div"),n=document.createElement("span"),o=document.createElement("div"),r=document.createElement("div"),a=this._isChecked(e);if(n.className=this._checkboxDefaultClasses.join(" "),a&&n.classList.add(this._checkboxCheckedClasses),e&&e.a11y&&e.a11y.checkboxDescription)o.setAttribute("aria-label",e.a11y.checkboxDescription);else if(this._getA11yProperties){var s=this._getA11yProperties(e);s&&s.checkboxDescription&&o.setAttribute("aria-label",s.checkboxDescription)}o.setAttribute("role","checkbox"),t&&(t.readonly||t.noMouseInteraction)?(o.setAttribute("disabled",""),o.setAttribute("aria-disabled",!0),o.removeAttribute("tabindex"),o.setAttribute("aria-checked",a),o.setAttribute("data-clickable",!1),r.setAttribute("data-clickable",!1)):(o.setAttribute("aria-checked",a),o.setAttribute("data-clickable",!0),r.setAttribute("data-clickable",!0)),o.className="mwCheckBoxRadioIconNode",r.className="mwCheckBoxRadioIconInner",o.appendChild(r),n.appendChild(o),void 0===t.isExpandable||t.isExpandable||i.appendChild(n);var l=e.iconUri,c=void 0;l&&((c=document.createElement("span")).setAttribute("data-test-id","icon1"),c.className="treeNodeIcon",c.style.backgroundImage="url('"+encodeURI(l)+"')",i.appendChild(c));var d=this._getLabelDOMNode(e,t);return i.appendChild(d),i.className="mw-tree-renderer",i}},{key:"_getLabelDOMNode",value:function(e,i){var o,r=document.createElement("div"),a=e.label,s=["treeNodeText"];if(i&&i.truncation!==n.NONE){s.push("mw-tree-node-truncation"),i.truncation===n.LEFT&&(s.push("mw-tree-node-left-truncation"),a="‎"+e.label+"‎");var l=void 0!==i.isExpandable&&!i.isExpandable,c=!!e.iconUri,d="calc(100% - "+(l&&c?46:l&&!c?21:!l&&c?25:4)+"px)";r.style.width=d}((o=r.classList).add.apply(o,s),r.setAttribute("data-test-id","label"),r.setAttribute("data-region",!0),i&&Array.isArray(i.highlight))?t.getHighlightedTextDOM(e.label,"label",i.highlight).forEach((function(e){e.setAttribute&&e.setAttribute("data-region",!0),r.appendChild(e)})):r.textContent=a;return r}},{key:"getValueForAction",value:function(t){var i=e.shallowCopy(t);return e.isTypeObject(i)&&(i.checked=!i.checked),{oldValue:t,newValue:i}}},{key:"handleAction",value:function(e,t){var n={};switch(t&&"object"===(void 0===t?"undefined":r(t))||(t={}),t.actionName){case i.CLICK:var o=t.target;o&&"true"===o.getAttribute("data-clickable")&&(n=this.getValueForAction(e));break;case i.KEY_PRESS:n=this.getValueForAction(e);break;default:n={}}return n.hasOwnProperty("newValue")&&this._isChecked(e)!==this._isChecked(n.newValue)?n.hasChanged=!0:n={hasChanged:!1},n}}]),o}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({CLICK:"click",KEY_PRESS:"keypress"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({DATA_UPDATE_SUCCESS:"DATA_UPDATE_SUCCESS",DATA_UPDATE_FAILURE:"DATA_UPDATE_FAILURE"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({ACTIVE_NODE:"keyboardActive",POTENTIAL_ACTIVE_NODE:"potentialNextKeyboardActiveNode"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({ACTIONS:{DELETE:"DELETE"}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(5830)],o=i.dj.d(n,(function(e,t){"use strict";return function(e){function i(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e=e||{},o._config=n,o._oldValue=t._shallowCloneObject(e),o._newValue=t._shallowCloneObject(e),o._constructDom(o._newValue),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"_getTextField",value:function(){return this._textField}},{key:"_getInputNode",value:function(){return this._textField}}],[{key:"config",value:function(e){return t.config(e,this._createInstance)}},{key:"_createInstance",value:function(e,t){return new i(e,t)}}]),r(i,[{key:"_constructDom",value:function(e){var i=document.createElement("div");i.className="treeNodeIconEditor";var n=void 0,o=e.iconUri;o&&((n=document.createElement("span")).className="treeNodeIcon",n.setAttribute("data-test-id","icon1"),n.style.backgroundImage="url('"+encodeURI(o)+"')",i.appendChild(n));var r=this._textField=document.createElement("input");r.input="text",r.setAttribute("data-editor",!0),r.spellcheck=!1,r.value=e.label,r.size=e.label.length||1,r.tabIndex=0,r.className="mwTreeTextEditor",i.appendChild(r),this._domNode=i,t.decorateEditor(this)}},{key:"_configureListeners",value:function(e){var t=this;e.forEach((function(e){t._getInputNode().addEventListener(e.event,e.handler)})),this._eventsHandlers=e}},{key:"_emitEditCompleteEvent",value:function(e,t){this.emit("editComplete",{newValue:e,oldValue:t,hasValueChanged:t.label!==e.label})}},{key:"_emitEditCanceledEvent",value:function(e,t){this.emit("editCanceled",{newValue:e,oldValue:t})}},{key:"_handleTextChange",value:function(e){}},{key:"_validateAndCompleteEdit",value:function(){this._newValue.label=this._textField.value.trim(),this._newValue.label||this._config&&this._config.acceptEmptyLabel?this._emitEditCompleteEvent(this._newValue,this._oldValue):this._emitEditCanceledEvent(this._newValue,this._oldValue)}},{key:"setFocus",value:function(){this._textField.focus(),this._textField.setSelectionRange(this._textField.value.length,this._textField.value.length)}},{key:"getDomNode",value:function(e){return this._domNode}},{key:"commitValue",value:function(){this._validateAndCompleteEdit()}},{key:"destroy",value:function(){var e=this;this._textField&&(this._eventsHandlers.forEach((function(t){e._getInputNode().removeEventListener(t.event,t.handler)})),delete this._textField),delete this._domNode}},{key:"value",get:function(){return this._newValue.label=this._textField.value,this._newValue},set:function(e){this._textField.value=e.label}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(958),i(1160)],o=i.dj.d(n,(function(e,t,i){return{isInvalidDate:function(e){var t=new Date("");return!e||isNaN(e)||"object"!=typeof e||e.toString()===t||!(e instanceof Date)},getFirstDayOfWeek:function(e){return 0},isWeekend:function(e,t,n){if(null==n)return i.isWeekend(e,t||i.getBrowserDefaultLocale());for(var o=e.getDay(),r=n[0]%7;r!==n[1]%7;r=(r+1)%7)if(o===r)return!0;return o===r},difference:function(e,i){return t.difference(e,i,"day")},isDisabledDate:function(e,t,n){if(void 0===t||"object"!=typeof t)return!1;if(this.isInvalidDate(e))return!1;var o=e.getFullYear();if(o<0||o>9999)return!0;if(t.disableWeekends&&i.isWeekend(e,n||i.getBrowserDefaultLocale()))return!0;if(t.disabledDates&&Array.isArray(t.disabledDates))for(var r=0;r<t.disabledDates.length;r++){var a=t.disabledDates[r];if(!this.isInvalidDate(a)&&0===this.compareDates(e,a))return!0;if(Array.isArray(a)&&2===a.length&&!this.isInvalidDate(a[0])&&!this.isInvalidDate(a[1])){var s={min:a[0],max:a[1]};if(this._rangeCheck(e,s))return!0}}return!(!t.dateDisableCallback||!t.dateDisableCallback(e))||!this._rangeCheck(e,t)},_rangeCheck:function(e,t){return!("min"in t&&t.min instanceof Date&&!(this.compareDates(e,t.min)>=0)||"max"in t&&t.max instanceof Date&&!(this.compareDates(e,t.max)<=0))},compareDates:function(e,i){return null===e||null===i?-1:t.compare(e,i,"date")},datesDiffer:function(e,t){return null===e&&null!==t||null!==e&&null===t||0!==this.compareDates(e,t)&&!(null===e&&null===t)},copyDate:function(e){if(null===e)return null;if(this.isInvalidDate(e))return new Date("");var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setFullYear(e.getFullYear());var i=t.setHours(0,0,0,0);t.getDate()!==parseInt(e.getDate())&&(t.setHours(1,0,0,0),t.setDate(e.getDate()),i=t.valueOf());var n=t.getHours();return 0!==n&&(i-=60*n*60*1e3,t=new Date(i)),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(1316),i(374),i(289),i(1154),i(1155),i(2129),i(330)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAYAAACI7Fo9AAAYxElEQVR42u2dWVrbSNuGewlZQpaQJbCEHP6HWQJLoJMwz3MCIUwhQCBg5hkM2MbGMyQ57s7VG/j6+87r11tWySUhGUuWrMHPwd0Yg+nY1u169KrqrT86/nz/SqENABBZXvyh/CeuwAAAkaUNogPQYqKXEHEAiAztVqLHGWN/AADCjyo7RAcAogMAIDoAAKIDACA6AACiAwAgOgAAogMAIDoAEB2iAwDRAQAQHQAA0QEAEB0AANEBABAdAADRAYDoEB0AiA4AgOgAAIgOAIDoAACIDgCA6F6/UC+kZvgdEtp+VnidAEQP54vzWmHhz7ed/9Sz1Y36ewsKbyA+gOjBfkFeqnL/V5Z4+sMsW13bYIfHJ+z07IJdxq/Z2cUV/3594zv/+bvObqP8JP1LHGgAogcrmi+IF4OkXVvfYPGbBMsXS6xYfmAl4uGRU378obtNFEpldpNIsS8rq0bpITyA6AGJ6P8Kwbd39rjcXGJVZnFbSC3z8IO+/lRv/+TQh8L+4THr7ukXsZ4SQjsOOgDR/XkBtFGcojkJbim0KrJ8W+bRcPvx508+yq9vbMqjewzn7wCiNzeq8+fa3duvRO6kYZT+yUdpndCPPw1y/5IE/6XJbXab/n7/wLAY3R8hO4DoTZBclY0Nj4yzXKFoOkLLEldH6V+SyPTVcPun9e1svsAmpz9CdgDRm/SkY6KSXnp4sIzdVqP0Y83bv3T3V/6e+js/KlH+48wcZAcQ3eMn3CFGcpKultA6uX8aJdbfloWWPzgeTVJCoVhmY+NTWkUeByKA6B48Waqs5/JFW7HberT+aS03P6f/UfkqCnhqDSB9n9Uq8lT1x8EIILp7T/Y3PbeLq7iD2P3LepR+lL5KUpelr+WH6ldxqe784kq88P8iwgOI7mJkn19cbih2V/ghjdZWQj9WbkvX4Tl84s0jn4BDpw6f55fEiz+CAxJA9MafKJ8Qk80VGo7dOiShdVKXBQ9c6mJJfC3z2yQ5kUjeybPoMHsOQPQGnuQbPiFmfcO12G0ptCR2QRKaCnAETcjRKFRYXPoi3oAOHJQAojt/kiV6Tql0xrXYfZ/Ls+Rdhl3fJvl8+PPLOF/kcnF1rXx/yyfI0M/vs3lNaLpez8kX+TV1jpIw6G+I1W84KAFEd74ajY2OTTYcu0laWrQipK4Xkv9WieiZbI5/QHCUv5Xh5HgFfmJqWrwJr3BgAojuMLZ/395xHLtJSBql7chtBY3+6UyWy01f7zL3nG8bW4jvAKI3umjlWhGsZJBZ+2p6Hl3mMZse54bgMpQIKBlQtE/epVkylWanZ5cMDT8ARHf+BPnz0VW7iwaptXPo6nk0jbZ2I7pdLuM3XHji+jbBq++0nBUHJoDo9p8gGxoeM612i8KYsThGo6yXghtHdzotuLq+5dNy6d+LAxNAdAei0+IVs2r3PadSGLtXC2N0XbtZkldlrxTsxiamcD0dQHSnok9Nzxiq3TmN9H2l6k3cJlNNl1xmbn5ReyNwcAKIblP0yamPOqHlavdd+p5fX0+k7jw/J4foAKJ7KPrE5AdNaEKudic4dzw6+yk5QckD19IBRHco+sjohCY0nYPfclJqxTvJq99+S06gGAcgegPTX9++66pIfZvk003pUhZdH6fJK1TtDoLkhFifjgMTQHSHbaMOjk641FfK6H2pQnHd7/NywdHJGSbMAIjewBNsp+ezvLLKG06Q2EGRW2bt2ybWpQOI3sATfEXPh65RB01ui0Ic2koBiO7wSfIWUvsHx4EVHdNfAUR3qY0UXacOouQrX9fRERZAdBee5AvR/ZWKXkETXeoGi6mvAKK7sVw1aKP64vIKqu0Aors8qvMGkbHd/cBcUkNjSADRPbrURpsdBiHCi5lw6CoDILpHE2jocpafks/Mftb2X8OBCCC6BxFe7KTql+yiyk6X0xDZAUT3dhLNv37ILpaiqpJjlRqA6E2Q/T9iZ1Wvz9np74vZb5AcQHSfYjxVv2m+uReSb27F5GvlvyE5gOj+XHYbES8Cje4kphuC05RbaQ47UwuB2DUVQHQ/XwgxugvhqWjmJNJTMpAaPYpRHItVAEQP0AvyRhZeSE9FNBKYRnuxOIa+0vd0P/3cILcQ/A0ONADRg12sG6GNDw3y1kT9/QWM4ACih+9Foo0aX6ur4DrUc+24irjvNa6JA4gOAIDoADg4cM1AqoLoIMQH6mu19vG7jjrJf9XTq3aID9FBOGojHWK6snwVhBYF0ZUOI/QzaXKSPH+hDaJDdBC8SUwdysj8PzFrkSYeiZmL1KqbWndTj37ajIN69vNW3gqiwy/1HKCmHgbp4606wkN0EMTLmr+F4DRKn55fcJlp3zyxf30taDNN2nJLbM5BHxAG4dshOkQHPk5WEgcjTT6i0fl5uUsS5tLTyC/adkkdfRZaaToyRAdBORA7xCi+8X3bQnBroa3IE8USy+YLfCsuivTUYUg0/WgV2SE6CMxITpKfKyPvc6O0pdCq1LW4y2TZ8el5y8kO0UEQLptxyWnTS7eEJvQfGMp9KhTnT88vW0p2iA58Lbyp17z59tVWsdup0LUfU+Tn7UL2qG+eAdGB700/TpQoXY/URqFzdQhtRsEgu1SRb4foALh74PHj7PvWjmujtJnQhSf3l3WQ7Lv7h3I1vg2iA+DOQcc7+nyaW3hyiSzf4ChtJbQe/ePonF1sWx3VzrwQHfhSYR8aGWP32bzHQpdNR3hOiShr3GXu5Q69kSvOQXTQ9OLb+84elkpnGo7dToSWMf4Nmn0ndQlagOgAOJu/zqe2XlzFXYvdeqHrl7ogI/2eoRLfDtEBcFB8i+3suR67nQht/fiSsTj3GqIDYKP4Nr+w7JnQTqS2IpvPs2+bW5HabAOig6YV32i+uZex202iVpyD6KApxbe0Io7XsdttEsk7uTgXg+gA1Ci+XcVvmha73eFBg5bKSsW5DogOgP7AKtFxtM2Lb8EX2uznRbU4t3dwFPriHEQHXhxUC5Xi21JAhK4tddGA8XFUW9iK7Ya6OAfRgYfFt2KghS7WfGyFogqtY6cONWEtzkF04Ha/N0bFt0w253vstiN0VWqTD4Ry5XHUh07aHTcG0UGrFt94W+brm4RHUrsp9IOl0LUeTx1ow1icg+jAFcTa8t29g8DFbjOhn5O6aPF4Ks5RKyqpOPcGooOWKr7ROWxQY7ddoY0fCpW/8xDa4hxEB64U30bHJvk68iDH7mIdo7wstPnjKmTuc1pxTp0v8AKig0gX37p7+9XiW7Bj93NCm0tt/thi+YEl7zJycS4O0UGki29xqfgW9Nhda5S2Epqwesxl/Fouzo1AdBDJ4tv+wVHoYnetUbr2455+IFBxjtawB704B9GB8+Lb0kpoY3etUbrWCC//m8XviQaTQS7OQXRg94Bp14pvymgW5tj95PFlsw+jeh77wBtMrnxdD2xxDqID2wdLV08frzqHNnY3ILTV5UL6WSp9H9jiHEQH9R4oLytry2nrpNvIxG57Uj//GGowGcTdXyA6qKvCLopve/tHLsfusu+x2+rav/2RvbL8NojFOYgO6i6+fVlZjWzstit0rcfw4tzeAZPEegXRQSiKb9MfZiu93hqM3XYvXzmJ3U6Ediq1dYPJglyc+9fv4hxEB88eHH0DgyzNi2/Rjt2OorpuopD+daE17KI4R6c+EB0EuPjWw65vky0Tu5+T2kzoYo3fp+Lc8Mi478U5iA5qFt/2D49bLnbrp/LWJ7TxscbdX6Stmd9AdBCo4tvK6rqDUfohErG7XqGLznZ/eQXRgd+Sd2jFt0KppWN3rVHa9u4vOX+LcxAdyAfDa3rve/up+JZF7HZ795f0PZuZ/exLg0mIDrS15VR8e/e+m13fJkIYu8uexG7HFINVnIPoQFd8Ozw+8UXoIMfuZ4Uu2vg9Bdr9RSrOtUN00CzRY/Ser65vIHY3KrRBauPONLRbTa7wZPeXNogOmlJ8+zgzJy07Rex2Q+jqFlTy7rGV+2hZ6+rahryG/SVEB54W3waGRth9No/Y7UBoIXWhhtQFiz3haWvmZhXnIDqKb+w2mXJR6GjH7rwDoZ/sB6/eR9zqt2ZegOj2mha2qYsxOiTam3EuFLbi2/HpGWK3K0KXawotS2/EsDVzO0R/vr94THoytYiFdftbN4tv3za+O5o11kqxu16hCzqhraU2g5a1el2cC73oJLgyOv0jngRdtqDzHpqFtLkV06Bm+7SSSLqsIXp7tbVq8Y0OsFaK3QWXY7ddoU0pVMhk82xd+eD1qsFkaEVXI7o2gpPEsd19dnV9yycl0M6XMnQf/YwWGJD40qSFQPfj9mJXlWrxDbG70djtRGod0s9oWevc/KInxblQii6fY9K5DcWeVDrD38Tn1knTNUwSn86LSHhphC+Fbc9rp8W3m0TS/1G6FI3YXbfQBbOfFTXouCQSKV1xLtayosuSU/ykqqWTNdL05pLwRydnciGkFOFdVeg0hT9fxO6S90IXawttRPwunU5dXF27vjVzGEWnkZd9ViIOvUCNdTKp7Ix5en4ZyM6dLr5m/D3d2NxG7PYodtuVOsd/bg4dk9QHQCrOvW4p0cU66YnJD1JMb7yTSUHdVieMG9zX8ZqN0HOa/TSvK74hdrsfu+0KXQvqm/9t073iXGhEF4WkweFRlssXXe9kQp+ihuYAr6NUfKvsdtrE2F1qzdhtm7z1/bSsVWzN3GhxLhSii+15qZBE0wa96mRCsn/b3ArVBvf1FN9Sd5nWjd2F5sbumkLna9xvQSKVlnd/iUVWdHl73qv4jedrpOkSh1ufokEovp2dXzYpdpcRu2uN0s8InbW8v2DcmrkjkqKLCvt2bM+TTiZmv5dI3rnyKep/8W2r9WJ3IRixu5bQWQuhraCVbkfHZw2dVgZadFF8+zS30PROJob5xyPhK7599nWxRqvHbidCPyFXvU01lu/bO45PKwMrulx8qzYpbN4aaTpQDZ+ib8JSfOsfHFZGgQJidwBit12hn9wvIRfn7G7NHEjRRfGNtuelJoXerZGuPbebXtyt2G4oinNywZImArkfu8uI3Y2O0jkLqXP1QR/eNHPOydbMgRPdWHzzuzURfdAEeYN76TX7j1Z8Q+wOVOx2KnWVvA7DzLmRUIouim87uweuNOIvurBYI6m/xBG4iUTiNaNlp4jdwYzdToS2gs7X7Z5WBkp0UXybX1gOXCcT2n8siMU58ZrNzM4hdgc8dtsVmpO1ln1H3Zq5ntPKwIguCknjE1PaVM1igDqZ5NVpskEqzsnFNzroELs9jN05j6XO1rhfJSNB31Nxrt7TykCILgpJfIeQTNbV2O3m3G5643YCssG9XLCkmW+I3eGI3Zq4NoTW35fTUW9xznfRRfGNqsWXV9eB72RiKM75ssG9XLCk4htid7hid31CP5XaivhN4tnTSl9Fl9eW7+zuh6aTCTW58HODe/GabW3vIHaHNHY7EZpWtFlBS61rzZzzW3ReSFpcWglJJ5NqkcvHPbS02YKI3eGO3U6lFqQlaI2GYebcy0CIrrZfZmPjU42vk/ahET/9m5u9wb0ovg0Nj/EDDLE7/LHbrtB06lhF/z1dBhY954z++iK6+J9S8a267DTonUyeTjKhA46Kc83Y4F4U3zq7e/kb+pzUecTu0MTu+oQ23JeRvqrQqG64DNzhm+gUKcQ66YvL69Cskba6Jk1vkKE499KL10wU307PLhG7IxW76xTaRGpB2oBhMk1b00WXi2+xnb1A7H/lxiQTLze4l1+z71sxxG6no3Q22LFbE9WG0Hc67jVSyvEoesSLK0PNFp0Xkpa/fA3U/lduTDKhFspeFOeqxbd5xO4oxG4HQteS+gnpCtQdWQw+qtPNEV0U36ixY045CIIQu92eZHJ2cenqHlriNRsZneAHphutiVoldmdCGrvtCm0kJWG4vr7gueji04SmaoqNFtyI3UFbrJF7Wpxra/Q16+kb4B1vELtbI3Y7lbpKRsfh0al8PHonulx8o95XUe9kQgfR2rfNhtawi8aOb991sZPTc8TuFovd9Qn9VGoddxWouaR0vu6N6HIhae/g0IXYXQrFkkp6oUUlXpW93U5cVx/D9g+OELtbNHbbFdpIUoImd41PTHsqOj8v+PJ1LfRrpO1Wu+l6pnTZjYRPqBNeXtTYFTYhfp/W4yN2t3bsdiL1UyqbjBoWY024JrooJE1/mOUHWRhit9uTTEh22uHVsHOrqILKaD+j3z05O0fsRux2JDQnpSLdpj333nf2aHsMuiK6rvjGl1CGJ3a7ffmK3gTqKEvC0+UOqQqqQffRz+hTl95oxG6XZo1FIHbXJbUst0LChGNFdBpElNTojui6mW9X1y3ZyeTJfbypX5pdxm/4/HgjdD/9nCRC7A527E75ELt1QtchtRk0oo+NT7LOrt7GRZeLb/uHR6GO3V5dviKB5IOMy43Y7brQUYrddoSmRhQaySpHJ6dsdGxSxPeGRY/RY7+urvu67azb+1+h2o3Y7Wfstis1cWvg8PiUT7xqWHRaKUOP+zgzxw/IqMRuVLsRu/2O3XaENieliH7Cz9EbEp06WtBj+gaG1M0DLGaOeSV0PlyzxhC7EbvtCm1Hah2JCodHiujDY85Fl2dx8ZlvIYjdQWnEj9iN2N3IKG0mNHFjwoEi+tDwKN/Jx7boxplvnq6RjmLsziJ2I3bbFLoOqfUkOfuHx2xwyLnovPi28nUNsRuxG7G7odjdqNBVqTVuq9BVsIHBEfuii+Lbh4+f+EGJ2I3YHYrYnQpf7LYj9LUFewdHfGKWLdGNxTfEbsRuxG57o7QjoeuU+ikJ+6LLxTf6A4jdiN2I3SlfRmkzoQXUdEJmd/+Q9fUPMfL2WdHl4htdl0PsRuxG7PZD6NpSP+WWi97bN1i36Lz4tra+idjt1yh9j9jdarG7fqErUuu4rrC7d8B6egeeF71afJvlB7C/sTuP2I3Y3TKx247QxJUJtDKSNhupKbpWfKMNF5Q3HrG7ebE7jdjd8rHbrtRm0DLpmqLLxTf6w4jdAYzdae9jdxKxO3CjtCnxG41LCRK9q7vPfD26XHw7ODpG7G5K7L5H7EbsbkhqM7Z39vhadCvR45Xi2wZid8vF7jRidw2pHQnt8ihdm2sNagBDotOCFjPR/6ksO/3ED2TEbsTuUAodgdhtR2grtmK7fLKMmehazzevY/c9YjdiN2K3a1JXiWuQ6GohThM9R9/QME//iFaK3bh8hdgdxNhtR2iCmpEa+b69I0ZzTfS/yPzFpS+I3YjdiN0BFtpKaj1XHFPRaSNEKsBFPXbfIXYjdocgdtcntJC6+r3caXhzKya3GF/4o7dv8Pf8wjJbXfsWzEb8iN3OYncSsTussdtqlLaS2gwT0QcU0Ze46IjdiN2I3f7HbjtC2xL98/wS+7r6DbE7ZIs1ELvrl/oyRLHbDZ6I3tNLoi/y3uyI3Yjdvgsd8djtttC2RJ/7vMj7wNUvdQ6xG7Ebsduj2O2h6Avsy8oatp2NXOxOInaHMHZ7JvqnuXlF9FXrURprpH1rxI/Y3Xqx2zPRZz99ZstfVlurEX8EY/c1YnckYrdHovf/npmdU0T/itgdwEb8iN1uCh2PnNC2RV9a/orYjdiN2B1V0bt7+n/T0tSl5RXEbsRuxO6oi06LWhC7EbudCY3YHXDRJ7jo1Ol1YfELYjdiNy5fRVP0di769IcZRgtbmh27E4jdkRUasTuAok9NS6IjdiN2I3ZHT/Su7r6/J6c+MlrYgtjtb+y+QuwG3or+gdHClpaJ3beI3X6skQZ+it7V+zd1mKGFLYjdiN0YpSM7ovf+PT4xzT7NLSB2I3ZD6KiK3tlFok8xWtiC2I3YDSIs+tj4FKOFLYjdiN0gwqKPjk1WREfsRuwG0RV9ZHSC0cIWxG7EbhBh0YdHxtnHmTnEbsRuEFXR33f2qKJ/QiN+xG4QTdH/j4s+NDzGaGELYjdiN4ik6G1c9MGhUTb9YRaxG7EbRFv0EUYLWxC7ITSIqOjv3nf/PTA4wmhhC2I3YjeIsOj9A8Oq6IjdGKVBZEXv6x9itLAFsRsHCIiw6L19g4wWtiB2AxBp0Qe46M2K3d61JsIoDYCp6G/fdf3V09vPaGELYjcAERa9u6ef0cIWxG4AIir6n287/+rq7mO0sAWxG4AIi97Z1SuJjtgNQCRFf9/Zw2hhC2I3ABEW/d37bkYLW9CIH4AWEB2xG4CIiq7856+377oYrWDDKA1AhEVXRnVGC1sgNAARFp2+oYUteIEAgOgAAIgOAAiy6D/oG5oGixcIgOiKXoLoAEB0AABEBwBAdABA01nf+A7RAYg6i8srEB0AiA4AgOgAAIgOAIDoAACIDgCA6AAAiA4AgOgAQHSIDgBEBwBEQnRqEEldZqIMfZgB/3jf1cNosxDgPdTZ2VR0AEBk4aJ/VvvGtQI/1A824A9phThoOq/+YIwBACLO/wNKvAHOw9w6sQAAAABJRU5ErkJggg==";return e([i,n,o,r,a,s,l],{backgroundColor:"rgba(0, 0, 0, 0)",baseClass:"vc-image",icon:"none",scalemethod:"fit",constructor:function(){},postCreate:function(){this.inherited(arguments)},buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode,this.focusNode=this.domNode,this.iconNode.onload=function(){void 0!==this.iconNode&&(this.originalIconWidth=this.iconNode.naturalWidth,this.originalIconHeight=this.iconNode.naturalHeight,this._styleIconNode())}.bind(this)},_setIconAttr:function(e){0===e.length&&(arguments[0]=c),this.inherited(arguments),this._styleIconNode()},_setWidthAttr:function(e){this.inherited(arguments),this._styleIconNode()},_setHeightAttr:function(e){this.inherited(arguments),this._styleIconNode()},setTooltip:function(e){this.inherited(arguments),this.tooltipHandle&&(this.iconNode.alt=this.processTooltipValue(e))},_setScalemethodAttr:function(e){this._set("scalemethod",e),this._styleIconNode()},_styleIconNode:function(){this.iconNode.classList.remove("vc-imageFitsWidth"),this.iconNode.classList.remove("vc-imageFitsHeight"),this.iconNode.classList.remove("vc-imageCannotShrink"),"fill"!==this.scalemethod&&"none"!==this.scalemethod&&"scaleup"!==this.scalemethod||this.iconNode.classList.add("vc-imageCannotShrink"),this.iconNode.style.top="",this.iconNode.style.left="";var e=this._shouldAddImageStyle();if(this.iconNode.width,this.iconNode.height,e){var t=this.iconNode.naturalWidth/this.iconNode.naturalHeight>=this.width/this.height,i=!t,n="stretch"===this.scalemethod||"scaledown"===this.scalemethod&&t||"scaleup"===this.scalemethod&&t||"fit"===this.scalemethod&&t||"fill"===this.scalemethod&&!t,o="stretch"===this.scalemethod||"scaledown"===this.scalemethod&&i||"scaleup"===this.scalemethod&&i||"fit"===this.scalemethod&&i||"fill"===this.scalemethod&&!i;n&&this.iconNode.classList.add("vc-imageFitsWidth"),o&&this.iconNode.classList.add("vc-imageFitsHeight")}if("fill"===this.scalemethod)if(n){var r=(this.height-this.iconNode.height)/2;this.iconNode.style.top=r+"px",this.iconNode.style.left="0px"}else{var a=(this.width-this.iconNode.width)/2;this.iconNode.style.top="0px",this.iconNode.style.left=a+"px"}},_shouldAddImageStyle:function(){var e=!0;return"none"===this.scalemethod?e=!1:"scaledown"===this.scalemethod?this.width>=this.iconNode.naturalWidth&&this.height>=this.iconNode.naturalHeight&&(e=!1):"scaleup"===this.scalemethod&&(this.width<=this.iconNode.naturalWidth||this.height<=this.iconNode.naturalHeight)&&(e=!1),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1491),i(441),i(298),i(295),i(482),i(2174),i(284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([t,i,n,o,r,a],{setProperties:function(e){this.inherited(arguments)},_Value:function(e){this.widget.setValue(Math.round(100*e))},_Indeterminate:function(e){var t=s.toJSBoolean(e);this.widget.setIndeterminate(t)},_ProgressColor:function(e){var t=s.toHexColorCode(e);this.widget.setProgressColor(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(284)],o=i.dj.d(n,(function(e,t){return e(null,{_Enable:function(e){var i=!t.toJSBoolean(e);this.widget.setDisabled(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return class{static getHoverColor(e){let t=this.toRGBArray(e);const i=3*(t[0]+t[1]+t[2])/5440+103/1088;t=t.map(e=>e+(255-e)*i);const n=t[0]+t[1]+t[2];return n<105&&(t=t.map(e=>e+e/n*(105-n))),this.toRGBString(t)}static getActiveColor(e){let t=this.toRGBArray(e);const i=(t[0]+t[1]+t[2])*(-29/107100)+2033/7140;return t=t.map(e=>e*(1-i)),this.toRGBString(t)}static toRGBArray(e){let t;if(this.isHexColorCode(e))t=this.hexToRGB(e);else{t=e.replace(/[^\d,.]/g,"").split(",").map(e=>parseFloat(e))}return t}static toRGBString(e){return"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")"}static hexToRGB(e){let t=e.slice(1);if(3===t.length){let e=t.split("");t=e.map(e=>e+e).join("")}const i=parseInt(t,16);return[i>>16,i>>8&255,255&i]}static isHexColorCode(e){return/^#([0-9A-Fa-f]{3}){1,2}$/i.test(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(447)],o=i.dj.d(n,(function(e,t){return e([],{createView:function(){this.inherited(arguments),this.domNode=this._VCWidgetDOMNode,Object.defineProperty(this,"widget",{configurable:!0,get:function(){return this}.bind(this)})},set:function(e,t){var i="_set"+e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()+"Attr";"function"==typeof this[i]&&this[i].bind(this)(t)},_set:function(e,t){this[e]=t},get:function(e){var t="_get"+e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()+"Attr";if("function"==typeof this[t])return this[t].bind(this)()},destroy:function(){delete this.widget,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(211),i(405),i(456),i(287)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{_labelClass:"vc-radialLabel",_labelIdPrefix:"Label_",_defaultSVGWidth:null,scalingFactor:1,handleInnerSizeSet:function(e){this.setScalingFactor(this.getScalingFactor(e)),this.inherited(arguments)},setScalingFactor:function(e){this.scalingFactor=e},getScalingFactor:function(e){return e[0]/this._defaultSVGWidth},createAndCleanUpLabelDiv:function(){void 0===this.labelDiv?this.labelDiv=i.create("div",{id:this._labelDivId},this.SVGContainer,"first"):o.removeChildNodes(this.labelDiv);var e=this.getRelativeHubPosition(),t=e.x,n=e.y;this.labelDiv.style.bottom=100*(1-n)+"%",this.labelDiv.style.left=100*t+"%",this.labelDiv.style.width=100*this.labelRadius/this._defaultSVGWidth+"%",this.labelDiv.style.height=100*this.labelRadius/this._defaultSVGHeight+"%",this.labelDiv.style.position="absolute"},positionLabels:function(e,t){for(var i,n,o=r.getWidgetFontStyleMap(this.WidgetData),a=0;a<=e.length-1;a++){var s=t[a];void 0===(i=this._getLabelAtIndex(a))?(i=this._createLabelAnchor(),n=this._createLabelElement(e[a],i)):n=i.childNodes[0];var l=this.calculateRadialPosition(s,100);this.positionLabelAnchor(i,l);var c=r.getTextPosition(e[a],o),d=this.fineTuneLabelPositions(s,c,0,0);d.right&&(n.style.right=d.right),d.bottom&&(n.style.bottom=d.bottom),n.style.left=d.left,n.style.top=d.top}},positionLabelAnchor:function(e,t){e.style.left=t.x+"%",e.style.bottom=t.y+"%"},calculateRadialPosition:function(e,t){return t||(t=1),{x:t*Math.cos(n.toRadians(e+180)),y:t*Math.sin(n.toRadians(e))}},_createLabelAnchor:function(){return i.create("div",{class:"vc-radialMarker"},this.labelDiv,"last")},_createLabelElement:function(e,t){var n=i.create("span",{class:this._labelClass,id:this._labelIdPrefix+e},t,"last");return n.textContent=e,n},_getLabelAtIndex:function(e){return this.labelDiv.childNodes[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(284)],o=i.dj.d(n,(function(e,t){return e([],{initializeComponent:function(){this.inherited(arguments);var e=this.WidgetData.getProperty("BackgroundColor");void 0!==e&&this._BackgroundColor(e)},_BackgroundColor:function(e){var i=t.toHexColorCode(e);this._applyBackgroundColor(i)},_applyBackgroundColor:function(e){this.BackgroundColorNode.setAttribute("fill",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(217),i(213),i(210),i(284),i(5924),i(5925),i(289)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([s,l],{NEEDLE_PEGGING_OFFSET:5,CONTAINER_NODE_OFFSET:20,OUTER_OUTLINE_NODE_WIDTH_OFFSET:2,OUTER_OUTLINE_NODE_HEIGHT_OFFSET:2,INNER_OUTLINE_NODE_WIDTH_OFFSET:2,linearGaugeContainer:null,containerNode:null,ticksAndLabelsContainer:null,needleContainer:null,scaleColorContainer:null,outerOutline:null,innerOutline:null,majorTickWidget:null,majorTickLabelWidget:null,minorTickWidget:null,needleElement:null,needleOffset:void 0,componentSize:[],majorTicks:[],majorTickLabels:[],minorTicks:[],scaleLimitsArray:[],value:-1,scaleColorLimitsArray:[],scaleColorsArray:[],isComponentInErrorState:!1,majorTickLimit:150,parentNode:null,constructor:function(e){this.parentNode=e,this.linearGaugeContainer=t.toDom(a),t.place(this.linearGaugeContainer,e),this.getContainerHandles()},_isTooManyTicksPresent:function(e){return e.length>this.majorTickLimit},setEnable:function(e){r.toJSBoolean(e)?o.contains(this.parentNode,"vc-hmiComponentDisabled")&&o.remove(this.parentNode,"vc-hmiComponentDisabled"):o.add(this.parentNode,"vc-hmiComponentDisabled")},setScaleLimits:function(e){this.scaleLimitsArray=e},setMajorTicksAndLabels:function(e,t){this.majorTicks=e,this.majorTickLabels=t,this.isComponentInErrorState=this._isTooManyTicksPresent(e),!1===this.isComponentInErrorState?(this.removeTooManyTicksError(),this.drawMajorTicks(e),this.drawMajorTickLabels(t)):!0===this.isComponentInErrorState&&this.handleComponentInErrorState(e,t)},setMajorTickLabels:function(e){this.majorTickLabels=e,!0===this.isComponentInErrorState&&(e=[e[0],e[e.length-1]]),this.drawMajorTickLabels(e)},setMajorTicks:function(e){this.majorTicks=e,this.isComponentInErrorState=this._isTooManyTicksPresent(e),!1===this.isComponentInErrorState?(this.removeTooManyTicksError(),this.drawNeedle(this.value),this.drawMajorTicks(e)):!0===this.isComponentInErrorState&&this.handleComponentInErrorState(e,this.majorTickLabels)},getMajorTicks:function(){return this.majorTicks},getMajorTickLabels:function(){return this.majorTickLabels},setMinorTicks:function(e){this.minorTicks=e,!1===this.isComponentInErrorState&&this.drawMinorTicks(this.minorTicks)},getMinorTicks:function(){return this.minorTicks},setValue:function(e){!1===this.isComponentInErrorState&&(this.value=e,this.drawNeedle(e))},getValue:function(){return this.value},setScaleColorsAndScaleColorLimits:function(e,t){!1===this.isComponentInErrorState&&(this.scaleColorsArray=e,this.scaleColorLimitsArray=t,this.drawScaleColors(e,t))},setSize:function(e){this.setContainerSizes(e),!1===this.isComponentInErrorState&&this.repositionNeedle(this.needleOffset),this.componentSize=e},getSize:function(){return this.componentSize},getContainerHandles:function(){this.inherited(arguments),this.containerNode=this.linearGaugeContainer.getElementsByClassName("vc-containerNode")[0],this.innerOutlineNode=this.linearGaugeContainer.getElementsByClassName("vc-linearGaugeInnerOutline")[0],this.outerOutlineNode=this.linearGaugeContainer.getElementsByClassName("vc-linearGaugeOuterOutline")[0],this.ticksAndLabelsContainerNode=this.containerNode.getElementsByClassName("vc-linearGaugeRulerAndLabelContainer")[0],this.needleContainerNode=this.containerNode.getElementsByClassName("vc-linearGaugeNeedleContainer")[0],this.scaleColorContainerNode=this.containerNode.getElementsByClassName("vc-linearGaugeScaleColorContainer")[0]},computePreferredSize:function(){throw new Error("computePreferredSize must be implemented in a subclass.")},destroy:function(){t.destroy(this.linearGaugeContainer),this.ticksAndLabelsContainerNode=null,this.needleContainerNode=null,this.scaleColorContainerNode=null,this.outerOutlineNode=null,this.innerOutlineNode=null,this.linearGaugeContainer=null},drawMajorTicks:function(e){if(!this.majorTickWidget||(this.majorTickWidget.destroy(),this.majorTickWidget=null,0!==e.length)){var t=this.RuleConstructor;this.majorTickWidget=new t({class:"vc-linearGaugeMajorTickMarks",ticks:e,minimum:this.scaleLimitsArray[0],maximum:this.scaleLimitsArray[1],count:e.length}),this.majorTickWidget.placeAt(this.ticksAndLabelsContainerNode)}},removeMajorTicks:function(){this.majorTickWidget&&(this.majorTickWidget.destroy(),this.majorTickWidget=null)},drawMinorTicks:function(e){if(!this.minorTickWidget||(this.minorTickWidget.destroy(),this.minorTickWidget=null,0!==e.length)){var t=this.RuleConstructor;this.minorTickWidget=new t({class:"vc-linearGaugeMinorTickMarks",ticks:e,minimum:this.scaleLimitsArray[0],maximum:this.scaleLimitsArray[1],count:e.length}),this.minorTickWidget.placeAt(this.ticksAndLabelsContainerNode)}},removeMinorTicks:function(){this.minorTickWidget&&(this.minorTickWidget.destroy(),this.minorTickWidget=null)},drawMajorTickLabels:function(e){this.majorTickLabelWidget&&(this.majorTickLabelWidget.destroy(),this.majorTickLabelWidget=null);var t=this.RuleLabelConstructor;this.majorTickLabelWidget=new t({class:"vc-linearGaugeMajorTickLabels",labels:e,minimum:this.scaleLimitsArray[0],maximum:this.scaleLimitsArray[1],count:e.length,ticks:this.majorTickWidget.ticks}),this.majorTickLabelWidget.placeAt(this.ticksAndLabelsContainerNode)},removeMajorTickLabels:function(){this.majorTickLabelWidget&&(this.majorTickLabelWidget.destroy(),this.majorTickLabelWidget=null)},drawNeedle:function(e){var i=this.scaleLimitsArray[1]-this.scaleLimitsArray[0];this.needleOffset=void 0,this.needleElement=this.needleContainerNode.getElementsByClassName("vc-linearGaugeNeedle")[0],this.needleElement||(this.needleElement=t.create("div",{class:"vc-linearGaugeNeedle"},this.needleContainerNode,"only")),e>=this.scaleLimitsArray[0]&&e<=this.scaleLimitsArray[1]?this.needleOffset=(e-this.scaleLimitsArray[0])/i*100+"%":e<this.scaleLimitsArray[0]&&(this.needleOffset="-5px"),this.repositionNeedle(this.needleOffset)},removeNeedle:function(){t.empty(this.needleContainerNode),this.needleElement&&(this.needleElement=null)},drawTooManyTicksErrorLabel:function(){t.create("div",{class:"vc-linearGaugeTooManyTicksError",innerHTML:"Too many ticks"},this.ticksAndLabelsContainerNode,"last")},removeTooManyTicksError:function(){var e=this.ticksAndLabelsContainerNode.getElementsByClassName("vc-linearGaugeTooManyTicksError")[0];e&&t.destroy(e)},drawScaleColors:function(e,i){if(t.empty(this.scaleColorContainerNode),0!==e.length&&0!==i.length)for(var n=0;n<i.length;n++){var o=t.create("div",{class:"vc-linearGaugeScaleColor"},this.scaleColorContainerNode),r=(i[n][0]-this.scaleLimitsArray[0])/(this.scaleLimitsArray[1]-this.scaleLimitsArray[0])*100,a=(i[n][1]-i[n][0])/(this.scaleLimitsArray[1]-this.scaleLimitsArray[0])*100;this.styleScaleColor(o,e[n],r,a)}},handleComponentInErrorState:function(e,t){this.ticksAndLabelsContainerNode.getElementsByClassName("vc-linearGaugeTooManyTicksError")[0]||(this.removeMajorTicks(),this.removeMinorTicks(),this.removeMajorTickLabels(),this.removeNeedle(),this.removeTooManyTicksError(),this.drawTooManyTicksErrorLabel());var i=[e[0],e[e.length-1]],n=[t[0],t[t.length-1]];this.drawMajorTicks(i),this.drawMajorTickLabels(n)},setFontStyleOnMajorTickLabelsContainer:function(e){this.majorTickLabelWidget&&n.set(this.majorTickLabelWidget.domNode,{color:r.toJSRGB(e.fontColor),"font-family":e.fontName,"font-size":e.fontSize+"px","font-weight":e.fontWeight,"font-style":e.fontAngle})},setBackgroundColor:function(e){n.set(this.linearGaugeContainer,{"background-color":e})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(217),i(211),i(213),i(1161),i(2177),i(5932),i(405),i(456),i(2135),i(287),i(298)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([a,s,l,p],{scalingFactor:1,_NEEDLE_DELAY:250,_INTERACTION_ANGLE_TOLERANCE:10,_labelDistanceFromHub:17,setupCommonKnobDefaults:function(){this._addMouseListeners()},_addMouseListeners:function(){this.mouseDownEventListener=t(this._VCWidgetDOMNode,"mousedown",i.hitch(this,"_onMouseDown"))},updateComponentSize:function(e,t,i,o){this.scalingFactor=this.getScalingFactor(t),this._doResizeAndAlign(t,e,i,o);var r=n.position(this.SVGDocument.getElementById("Center"));this._assertPositiveSize([r.w,r.height]);var a=n.position(this.SVGContainer);this.repositionOuterArtComponents(t,r,a)},handleInnerSizeSet:function(e){this.inherited(arguments);var t=this.getOuterLocationInPixels(),i=this.getInnerLocationInPixels();this._doResizeAndAlign(e,i,t)},getScalingFactor:function(e){return e[0]/2/this._defaultHubRadius},getMinorTickTrackLengthRatio:function(){return.8},_doResizeAndAlign:function(e,t,i,n){this.scaledRadius=this.scalingFactor*this.radius;var o=this.scalingFactor*this._defaultSVGWidth,r=this.scalingFactor*this._defaultSVGHeight;this.setSVGSize(o,r),this._alignSVGContainer(e,t,i,n)},_alignSVGContainer:function(e,t,i,n){var o=t[0]-this._defaultHubLeftOffset*this.scalingFactor-i[0],a=n||this._calculateOuterSize(),s=this.scalingFactor*this._defaultHubBottomOffset,l=t[1]-s-i[1],c=this.scalingFactor*this._defaultSVGWidth,d=this.scalingFactor*this._defaultSVGHeight,u=a[1]-d-l;r.set(this.SVGContainer,{top:u+"px",left:o+"px",width:c+"px",height:d+"px"})},repositionOuterArtComponents:function(e,t,i){},_calculateOuterPosition:function(e,t,i,n,o,r,a){var s=r-o,l=n-i,c=t[0]-(a.x+a.w/2-i-this.scaledRadius),d=t[1]-(r-(a.y+a.h/2)-this.scaledRadius);return this._assertPositiveSize([l,s]),{Size:e,Location:t,OuterLocation:[c,d],OuterSize:[l,s]}},setNewPositions:function(e,t){var i=this.getInnerLocationInPixels(),n=this.getInnerSizeInPixels(),o=this._calculateOuterPosition(n,i,e.minimumX,e.maximumX,e.minimumY,e.maximumY,t),r=this._removeUnchangedProperties(o);this._isObjectEmpty(r)||(this._alignSVGContainer(o.Size,o.Location,o.OuterLocation),this.setPositionPropertiesInPixels(r))},fineTuneLabelPositions:function(e,t,i,n,o){var r="unset",a="unset",s="unset",l="unset";return e>-90&&e<90?r="0px":a=90===e?-t.w/2+"px":"0px",e>-90&&e<0||e>180&&e<270?s=-.25*t.h+"px":0===e||180===e?s=-.5*t.h+"px":l=-.25*t.h+"px",{left:a,right:r,top:s,bottom:l}},_calculateOuterSize:function(){var e=this._calculateContainerDomPosition(),t=e.maximumY-e.minimumY;return[e.maximumX-e.minimumX,t]},_calculateContainerDomPosition:function(){return this.labelDiv&&this.labelDiv.childNodes&&this.labelDiv.childNodes.length>0?this._calculateContainerWithLabelsDomPosition():this._calculateContainerWithNoLabelsDomPosition()},_calculateContainerWithNoLabelsDomPosition:function(){var e=n.position(this.SVGDocument.getElementById("Center"));return{minimumX:e.x-this.scaledRadius,maximumX:e.x+this.scaledRadius,minimumY:e.y-this.scaledRadius,maximumY:e.y+this.scaledRadius}},_calculateContainerWithLabelsDomPosition:function(){for(var e=n.position(this.SVGContainer),t=e.x,i=e.x+e.w,o=e.y,r=e.y+e.h+this._defaultHubBottomOffset,a=this.labelDiv.childNodes,s=0;s<=a.length-1;s++){var l=n.position(a[s].children[0]);t=Math.min(t,l.x),i=Math.max(i,l.x+l.w),o=Math.min(o,l.y),r=Math.max(r,l.y+l.h)}return{minimumX:t,maximumX:i,minimumY:o,maximumY:r}},_removeUnchangedProperties:function(e){var t=i.clone(e),n=this.getInnerSizeInPixels(),o=this.getOuterSizeInPixels(),r=this.getInnerLocationInPixels(),a=this.getOuterLocationInPixels();return u.isArraysEqual(n,t.Size)&&delete t.Size,u.isArraysEqual(r,t.Location)&&delete t.Location,u.isArraysEqual(o,t.OuterSize)&&delete t.OuterSize,u.isArraysEqual(a,t.OuterLocation)&&delete t.OuterLocation,t},_isObjectEmpty:function(e){return 0===Object.keys(e).length},getNeedleRotationAngle:function(){var e=this.SVGDocument.getElementById("Needle");return 0===e.transform.baseVal.numberOfItems?0:e.transform.baseVal.getItem(0).angle},rotateNeedle:function(e){if(isNaN(e)||"number"!=typeof e)throw new Error("Error with rotateNeedle: Wrong typeof Input Argument. rotateNeedle expects Numeric Data as input.");var t="rotate("+e+","+this.centerX+","+this.centerY+")";this.SVGDocument.getElementById("Needle").setAttribute("transform",t)},_onMouseDown:function(e){if(!this.handledRightClickMouseEvent(e)){var o=this.SVGDocument.getElementById("Center"),r=n.position(o,!0),a=r.x+r.w/2,s=r.y+r.h/2,l=this._getMinRadiusContainingAllLabels(e,a,s),d=e.pageX-a,u=e.pageY-s,h=Math.sqrt(d*d+u*u);if(h>l)return!1;var p=this.SVGDocument.getElementById("InnerHitRadiusLine");if(!(h<n.position(p,!0).w)){var f=this.getAngleRelativeToHub(e),g=this.getMinMaxAngles();if(c.isOutOfRange(f,g.minAngle,g.maxAngle))if(this.mouseIsOnALabelOnTheLeft&&this.mouseIsOnALabelOnTheRight)e.pageX<=a?this.mouseIsOnALabelOnTheRight=!1:this.mouseIsOnALabelOnTheLeft=!1;else if(this.mouseIsOnALabelOnTheLeft)f=g.minAngle;else if(this.mouseIsOnALabelOnTheRight)f=g.maxAngle;else{if(c.isOutOfRange(f,g.minAngle,g.maxAngle,this._INTERACTION_ANGLE_TOLERANCE))return;f=this._constrainAngleToBounds(f,g.minAngle,g.maxAngle)}if(!this.globalMouseMoveEventListener){this.needleAngleOnMouseDown=this.getNeedleRotationAngle();var m=e.pageX,_=e.pageY;this.globalMouseMoveEventListener=t(document,"mousemove",i.hitch(this,(function(e){e.pageX===m&&e.pageY===_||this._onMouseMove(e)}))),this.globalMouseUpEventListener=t(document,"mouseup",i.hitch(this,"_onMouseUp"))}this.previousMousePointerAngle=f,this.isMouseDownInDeadSpace=!1,this.mouseMoveDetected=!1;var v=this;this.timeoutIdForDelayMouseDownNeedleSnap=setTimeout((function(){this.timeoutIdForDelayMouseDownNeedleSnap&&v.rotateNeedle(f)}),this._NEEDLE_DELAY)}}},_onMouseMove:function(e){clearTimeout(this.timeoutIdForDelayMouseDownNeedleSnap),this.timeoutIdForDelayMouseDownNeedleSnap=null,this.mouseMoveDetected=!0;var t=this.getAngleRelativeToHub(e);if("html"!==e.target.nodeName.toLowerCase()){var i,n=this.getMinMaxAngles(),o=c.isOutOfRange(t,n.minAngle,n.maxAngle,this._INTERACTION_ANGLE_TOLERANCE);if(i=o?this.getNeedleRotationAngle():this._constrainAngleToBounds(t,n.minAngle,n.maxAngle),!this.isMouseDownInDeadSpace&&o)return c.isCloserToUpperLimit(i,n.minAngle,n.maxAngle)?(this.enteredDeadSpaceNearUpperLimit=!0,this.rotateNeedle(n.maxAngle)):(this.enteredDeadSpaceNearUpperLimit=!1,this.rotateNeedle(n.minAngle)),this.mouseMoving(e),this.isMouseDownInDeadSpace=!0,void(this.previousMousePointerAngle=t);if(this.isMouseDownInDeadSpace&&!o)if(this.enteredDeadSpaceNearUpperLimit){if(!((this.previousMousePointerAngle>n.maxAngle||this.previousMousePointerAngle<n.minAngle)&&t>n.minAngle+this.angularSpan/2&&t<=n.maxAngle))return void(this.previousMousePointerAngle=t)}else if(!((this.previousMousePointerAngle>n.maxAngle||this.previousMousePointerAngle<n.minAngle)&&t>=n.minAngle&&t<n.minAngle+this.angularSpan/2))return void(this.previousMousePointerAngle=t);this.isMouseDownInDeadSpace=o,o||(this.rotateNeedle(i),this.mouseMoving(e)),this.previousMousePointerAngle=t}else this.terminateMouseInteraction(this.needleAngleOnMouseDown)},_onMouseUp:function(e){if(void 0!==this.globalMouseMoveEventListener&&!this.handledRightClickMouseEvent(e)){clearTimeout(this.timeoutIdForDelayMouseDownNeedleSnap),this.timeoutIdForDelayMouseDownNeedleSnap=null;var t=this.getAngleRelativeToHub(e),i=this.getMinMaxAngles();t=this._constrainAngleToBounds(t,i.minAngle,i.maxAngle),this.mouseMoveDetected?this.mouseMoved(e,t):this.mouseClicked(e,t),this._cleanUpAfterMouseInteraction()}},mouseMoved:function(e,t){throw new Error("mouseMoved function must be implemented in a base class")},mouseClicked:function(e,t){throw new Error("mouseClicked function must be implemented in a base class")},handledRightClickMouseEvent:function(e){return 2===e.button&&(this.mouseClicked({target:{tagName:"Invalid"}},this.getNeedleRotationAngle()),this.globalMouseMoveEventListener&&this._cleanUpAfterMouseInteraction(),!0)},terminateMouseInteraction:function(e){this.rotateNeedle(e),this._cleanUpAfterMouseInteraction()},_cleanUpAfterMouseInteraction:function(){this.globalMouseMoveEventListener.remove(),delete this.globalMouseMoveEventListener,this.globalMouseUpEventListener.remove(),delete this.globalMouseUpEventListener,delete this.previousMousePointerAngle,delete this.mouseMoveDetected,delete this.timeoutIdForDelayMouseDownNeedleSnap,delete this.isMouseDownInDeadSpace,delete this.mouseIsOnALabelOnTheLeft,delete this.mouseIsOnALabelOnTheRight,delete this.needleAngleOnMouseDown},_constrainAngleToBounds:function(e,t,i){var n=c.toPositiveAngle(e);c.isOutOfRange(n,t,i)&&(n=c.isCloserToUpperLimit(n,t,i)?i:t);return n},getAngleRelativeToHub:function(e){var t=this.SVGDocument.getElementById("Center"),i=n.position(t);this._assertPositiveSize([i.w,i.height]);var o=i.x+i.w/2,r=i.y+i.h/2;return c.getSlope(o,r,e,this.angleCalculateFactor)},_getMinRadiusContainingAllLabels:function(e,t,i){this.mouseIsOnALabelOnTheLeft=!1,this.mouseIsOnALabelOnTheRight=!1;for(var o=0,r=0;r<this.labelDiv.childNodes.length;r++){var a=this.labelDiv.childNodes[r].childNodes[0],s=n.position(a,!0),l=s.x-t,c=s.y-i;o=Math.max(o,Math.sqrt(l*l+c*c)),l=s.x+s.w-t,c=s.y-i,o=Math.max(o,Math.sqrt(l*l+c*c)),l=s.x-t,c=s.y+s.h-i,o=Math.max(o,Math.sqrt(l*l+c*c)),l=s.x+s.w-t,c=s.y+s.h-i,o=Math.max(o,Math.sqrt(l*l+c*c)),e.pageX<=s.x+s.w&&e.pageX>=s.x&&e.pageY>=s.y&&e.pageY<=s.y+s.h&&(r<=(this.labelDiv.childNodes.length-1)/2?this.mouseIsOnALabelOnTheLeft=!0:this.mouseIsOnALabelOnTheRight=!0)}return o},_computeMinimumSize:function(){return[60,60]},_getTwoLargestLengths:function(e){var t;if(0===e.length)return[0,0];if(1===e.length)return[t=Math.max(0,e[0]),t];t=Math.max.apply(null,e);var i=e.indexOf(t);e[i]=-1/0;var n=Math.max.apply(null,e);return e[i]=t,[Math.max(0,t),Math.max(0,n)]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(284),i(2182)],o=i.dj.d(n,(function(e,t,i){return e([i],{setUpComponentOnLoad:function(){this.onState=this.SVGDocument.getElementById("On_State"),this.offState=this.SVGDocument.getElementById("Off_State"),this._updateDomVisibility(),this.inherited(arguments)},onMouseUp:function(e){if(this.mouseMoved){if(this.currentState!==this.getCurrentState()){var t={SelectedIndex:this.getCurrentState()};this.handleUserInteraction("StateChanged",t,t)}}else this.onMouseClicked(e);this.inherited(arguments)},setValueOff:function(){this.onState.setAttribute("visibility","hidden"),this.offState.setAttribute("visibility","visible")},setValueOn:function(){this.onState.setAttribute("visibility","visible"),this.offState.setAttribute("visibility","hidden")},getCurrentState:function(){return"visible"===this.SVGDocument.getElementById("Off_State").getAttribute("visibility")?this.OFF_STATE_INDEX:this.ON_STATE_INDEX},_updateDomVisibility:function(){this.inherited(arguments);var e=this.peernode.getProperty("Visible"),i=t.toJSBoolean(e),n=i||!this.peernode.hasProperty("Visible");this.onState&&this.offState&&(!1===n?(this.onState.setAttribute("display","none"),this.offState.setAttribute("display","none")):(this.onState.setAttribute("display","inline"),this.offState.setAttribute("display","inline")))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(213),i(211),i(217),i(204),i(1161),i(1157),i(960),i(5937),i(1510),i(298),i(295),i(287)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([a,s,l,c,d,u,h],{labelArtPadding:6,OFF_STATE_INDEX:1,ON_STATE_INDEX:2,doSetProperties:function(e){if(this.inherited(arguments),this._arePropertyNamesPresent(e,["FontName","FontSize","FontAngle","FontWeight"])){var t=this.getInnerSizeInPixels();this.drawLabels(t,!0)}},_setItemsOnWidget:function(e){var t=this.getInnerSizeInPixels();this.drawLabels(t,!0)},_setSelectedIndexOnWidget:function(e){this.setValue(e)},setValue:function(e){if(void 0!==e)switch(e){case this.OFF_STATE_INDEX:this.setValueOff();break;case this.ON_STATE_INDEX:this.setValueOn();break;default:throw new Error("selected state is out of bounds: "+e)}},handleInnerSizeSet:function(e){this.inherited(arguments);var t=this.getOuterLocationInPixels(),i=this.getInnerLocationInPixels();this.onSizeChange(e,i,t,!0)},setUpComponentOnLoad:function(){this.addMouseListeners(),this.createLabelElements()},getInitializationPropertyNames:function(){var e=this.inherited(arguments),t=["Items","SelectedIndex"];e&&(t=t.concat(e));var i=this.getInitializationFontPropertyNames();return i&&(t=t.concat(i)),t},drawLabels:function(e,t){var n=this.WidgetData.getProperty("Items");this.offLabel.textContent=n[0],this.onLabel.textContent=n[1],e[0]>0&&e[1]>0?(i.set(this.offLabel,{display:"block"}),i.set(this.onLabel,{display:"block"})):(i.set(this.offLabel,{display:"none"}),i.set(this.onLabel,{display:"none"})),this.offLabelWidth=o.position(this.offLabel).w,this.onLabelWidth=o.position(this.onLabel).w,this.labelHeight=Math.max(o.position(this.onLabel).h,o.position(this.offLabel).h),this.positionLabels(e,t)},onSizeChange:function(e,t,i,n){this.setSVGSize(e[0],e[1]),this.alignSVGContainer(e,t,i),void 0!==this.onLabelWidth&&void 0!==this.offLabelWidth&&this.drawLabels(e,n)},updateComponentSize:function(e,t,i,n){this.onSizeChange(t,e,i,!1)},positionLabels:function(e,t){var n;if("horizontal"===this.WidgetData.getProperty("Orientation"))n=e[0]+this.labelArtPadding,i.set(this.offLabel,{right:n+"px",bottom:(e[1]-this.labelHeight)/2+"px"}),i.set(this.onLabel,{left:n+"px",bottom:(e[1]-this.labelHeight)/2+"px"});else{var o=-(this.offLabelWidth-e[0])/2;i.set(this.offLabel,{top:e[1]+this.labelArtPadding+"px",left:o+"px"});var r=-(this.onLabelWidth-e[0])/2;i.set(this.onLabel,{bottom:e[1]+this.labelArtPadding+"px",left:r+"px"})}t&&this.setNewPositions(e)},setNewPositions:function(e){var t=this.calculateNewPositions(e);this.hasPositionChanged(t)&&(this.setPositionPropertiesInPixels(t),this.alignSVGContainer(t.Size,t.Location,t.OuterLocation))},hasPositionChanged:function(e){var t=this.getOuterLocationInPixels(),i=this.getOuterSizeInPixels();return!(t[0]===e.OuterLocation[0]&&t[1]===e.OuterLocation[1]&&i[0]===e.OuterSize[0]&&i[1]===e.OuterSize[1])},alignSVGContainer:function(e,t,n){var o,r=this.WidgetData.getProperty("Orientation");o="horizontal"!==r&&0===this.onLabelWidth?0:"horizontal"!==r&&0===this.offLabelWidth?this.labelHeight+this.labelArtPadding:Math.max(0,t[1]-n[1]),i.set(this.SVGContainer,{top:o+"px",left:Math.max(0,t[0]-n[0])+"px",width:e[0]+"px",height:e[1]+"px"})},calculateNewPositions:function(e){var t=o.position(this.offLabel),i=o.position(this.onLabel),n=t.w,r=i.w;void 0===e&&(e=this.getInnerSizeInPixels());var a,s,l,c,d=this.getInnerLocationInPixels(),u=this.labelArtPadding,h=this.labelArtPadding,p=o.position(this.SVGContainer);if(0===n&&(u=0),0===r&&(h=0),"horizontal"===this.WidgetData.getProperty("Orientation")){a=n+u+e[0]+r+h,s=Math.max(e[1],i.h,t.h),l=d[0]-u-n;var f=p.y+p.h,g=Math.max(i.y+i.h,t.y+t.h,p.y+p.h)-f;c=d[1]-g}else a=Math.max(n,r,e[0]),s=t.h+u+e[1]+h+i.h,l=d[0]-(a-e[0])/2,c=d[1]-u-t.h;return{Size:e,Location:d,OuterSize:[Math.ceil(a),Math.ceil(s)],OuterLocation:[l,c]}},createLabelElements:function(){this.offLabel=n.create("span",{id:"OffLabel",class:"switchLabel"},this.SVGContainer,"first"),this.onLabel=n.create("span",{id:"OnLabel",class:"switchLabel"},this.SVGContainer,"first")},handleOrientationSet:function(){void 0!==this.mouseDownEventListener&&(this.mouseDownEventListener.remove(),delete this.mouseDownEventListener),this.inherited(arguments)},addMouseListeners:function(){this.mouseDownEventListener=t(this._VCWidgetDOMNode,"mousedown",r.hitch(this,"onMouseDown"))},onMouseDown:function(e){this.mouseDownPosition={clientX:e.clientX,clientY:e.clientY},this.mouseLastPosition={clientX:e.clientX,clientY:e.clientY},this.mouseGestureDistance=0,0===e.button&&(this.globalMouseMoveEventListener=t(document,"mousemove",r.hitch(this,"onMouseMove")),this.globalMouseUpEventListener=t(document,"mouseup",r.hitch(this,"onMouseUp")),this.mouseMoved=!1,this.currentState=this.getCurrentState())},onMouseMove:function(e){if(null!==this.mouseDownPosition&&(e.clientX!==this.mouseDownPosition.clientX||e.clientY!==this.mouseDownPosition.clientY)){var t=Math.sqrt(Math.pow(this.mouseLastPosition.clientX-e.clientX,2)+Math.pow(this.mouseLastPosition.clientY-e.clientY,2));if(this.mouseGestureDistance=this.mouseGestureDistance+t,this.mouseLastPosition={clientX:e.clientX,clientY:e.clientY},this.mouseMoved=!0,"html"===e.target.nodeName.toLowerCase())return void this.terminateMouseInteraction();this.shouldToggleState("move",e)&&this.toggleState()}},onMouseClicked:function(e){if(this.shouldToggleState("click",e)){this.toggleState();var t={SelectedIndex:this.getCurrentState()};this.handleUserInteraction("StateChanged",t,t)}},onMouseUp:function(e){this.cleanUpAfterMouseInteraction(),this.mouseDownPosition=null},toggleState:function(){this.getCurrentState()===this.OFF_STATE_INDEX?this.setValue(this.ON_STATE_INDEX):this.setValue(this.OFF_STATE_INDEX)},shouldToggleState:function(e,t){var i=o.position(this.SVGDocument.getElementById("Body"));return"horizontal"===this.WidgetData.getProperty("Orientation")?this.shouldToggleHorizontalSwitch(e,t.clientX,i.x,i.w):this.shouldToggleVerticalSwitch(e,t.clientY,i.y,i.h)},shouldToggleHorizontalSwitch:function(e,t,i,n){var o=this.getCurrentState()===this.OFF_STATE_INDEX,r=i+n/2,a=!1;return i<t&&t<i+n&&"click"===e?a=!0:o?t>=r&&(a=!0):t<=r&&(a=!0),a},shouldToggleVerticalSwitch:function(e,t,i,n){var o=this.getCurrentState()===this.OFF_STATE_INDEX,r=i+n/2,a=!1;return i<t&&t<i+n&&"click"===e?a=!0:o?t<=r&&(a=!0):t>=r&&(a=!0),a},terminateMouseInteraction:function(){this.setValue(this.currentState),this.cleanUpAfterMouseInteraction()},cleanUpAfterMouseInteraction:function(){delete this.currentState,delete this.mouseMoved,void 0!==this.globalMouseMoveEventListener&&(this.globalMouseMoveEventListener.remove(),delete this.globalMouseMoveEventListener),void 0!==this.globalMouseUpEventListener&&(this.globalMouseUpEventListener.remove(),delete this.globalMouseUpEventListener)},_computeMinimumSize:function(){var e=this.getPeerNode().getProperty("Orientation");return this._getDefaultSize(e)},_getDefaultSize:function(e){return"horizontal"===e.toLowerCase()?[45,20]:[20,45]},_computeFitSize:function(){var e=this.getPeerNode().getProperty("Orientation"),t=this._getDefaultSize(e),i=p.getWidgetFontStyleMap(this.getPeerNode()),n=this.getPeerNode().getProperty("Items"),o=p.getTextPosition(n[0],i),r=p.getTextPosition(n[1],i),a=t[0],s=t[1];return"horizontal"===e.toLowerCase()?(a=a+o.w+this.labelArtPadding+this.labelArtPadding+r.w,s=Math.max(s,o.h,r.h)):(a=Math.max(a,o.w,r.w),s=s+o.h+this.labelArtPadding+this.labelArtPadding+r.h),[a,s]},_editPropertiesAffectingFitSize:function(e){return e.push("Items"),e},destroy:function(){void 0!==this.mouseDownEventListener&&(this.mouseDownEventListener.remove(),delete this.mouseDownEventListener),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{OFF_STATE_INDEX:1,ON_STATE_INDEX:2,setThumbTrackElements:function(e,t){this.thumbElement=e,this.trackElement=t},setValueOff:function(){this.thumbElement.setAttribute("transform","translate(0,0)")},setValueOn:function(){this.setThumbTranslate(this.maxTranslate)},getCurrentState:function(){throw new Error("getCurrentState should be implemented by subclasses")},centerThumbOnMousePoint:function(e){throw new Error("centerThumbOnMousePoint should be implemented by subclasses")},setThumbTranslate:function(e){throw new Error("setThumbTranslate should be implemented by subclasses")},getThumbTranslate:function(){throw new Error("getThumbTranslate should be implemented by subclasses")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5948)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){this.setEventDispatcher(new t(this))},_RegisteredEvents:function(e){this.eventDispatcher.registerEvents(this.peernode.getProperty("RegisteredEvents"))},tag3:"ctor from gbt component framework"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{TOLERANCE_FOR_CHARTS:20,TOLERANCE_FOR_NON_CHARTS:5,_IamPositionable:!0,constructor:function(){},yesIAmPositionable:function(){return this._IamPositionable},getActivePositionInPixels:function(){throw new Error("getActivePositionInPixels must be implemented by the concrete subclass")},getOuterPositionInPixels:function(){throw new Error("getOuterPositionInPixels must be implemented by the concrete subclass")},setOuterPositionInPixels:function(e){throw new Error("setOuterPositionInPixels must be implemented by the concrete subclass")},getInnerPositionInPixels:function(){throw new Error("getInnerPositionInPixels must be implemented by the concrete subclass")},setActivePositionInPixels:function(e,t){throw new Error("setActivePositionInPixels must be implemented by the concrete subclass")},getId:function(){throw new Error("getId must be implemented by the concrete subclass")},getDebugId:function(){return this.getId()},attachModelSidePositionChangeListener:function(){},shouldInsetsResize:function(){return{horizontal:!1,vertical:!1}},getMinimumInsets:function(){return{horizontal:{left:0,right:0},vertical:{top:0,bottom:0}}},isContainer:function(){return!1},getNeighborMarginTolerance:function(){return this.TOLERANCE_FOR_NON_CHARTS},getProperty:function(e){},validateComponent:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(734)],o=i.dj.d(n,(function(e,t){return e([t],{fillCell:function(e){var t=this.getTopLevelNode();t.style.width="auto",t.style.height="auto";return this.setOuterSize(["100%","100%"]),{innerSize:e,outerSize:e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(734)],o=i.dj.d(n,(function(e,t){return e([t],{fillCell:function(e){var t=this._calculateMaxSize(e);return this.setInnerSize(t),{innerSize:t,outerSize:t}},_calculateMaxSize:function(e){var t=this.getAspectRatioLimits();return this._isFixedWidth()?[this.widget.width,e[1]]:this._isFixedHeight()?[e[0],this.widget.height]:this.calculateMaxSizeGivenAspectRatio(e,t)},calculateMaxSizeGivenAspectRatio:function(e,t){var i,n,o,r,a,s=e[0],l=e[1];return i=0===l?1/0:s/l,"Inf"===(n=t[0])&&(n=1/0),"Inf"===(o=t[1])&&(o=1/0),i>=n&&i<=o?(r=s,a=l):i<n?a=(r=s)/n:i>o&&(r=(a=l)*o),[r,a]},getAspectRatioLimits:function(){return this.peernode.getProperty("AspectRatioLimits")},getIsSizeFixed:function(){return this.peernode.getProperty("IsSizeFixed")},_isFixedHeight:function(){var e=this.getIsSizeFixed();return e&&!e[0]&&e[1]},_isFixedWidth:function(){var e=this.getIsSizeFixed();return e&&e[0]&&!e[1]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5957)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){},uihover:function(e,t){e._Messenger.reject("MATLAB:uiautomation:Driver:GestureNotSupported","uihover")},uipress:function(e,t){e._Messenger.reject("MATLAB:uiautomation:Driver:GestureNotSupported","uipress")},uidrag:function(e,t){e._Messenger.reject("MATLAB:uiautomation:Driver:GestureNotSupported","uidrag")},uitype:function(e,t){e._Messenger.reject("MATLAB:uiautomation:Driver:GestureNotSupported","uitype")},uicontextmenu:function(e,t){e._Messenger.reject("MATLAB:uiautomation:Driver:GestureNotSupported","uicontextmenu")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(214)],o=i.dj.d(n,(function(e,t,i){return t([e],{constructor:function(){},newViewEvent:function(e,t){e.publish(t,{})},addReconnectEventCallback:function(e,t){this.own(i.after(e,"onReconnected",(function(){t()})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(406)],o=i.dj.d(n,(function(e){return{base64ToArrayBuffer:function(e){let t=window.atob(e),i=t.length,n=new Uint8Array(i);for(let e=0;e<i;e++)n[e]=t.charCodeAt(e);return n.buffer}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){var i=e([t],{_running:!1,_devicePixelRatio:1,_timerID:null,_windowInterface:window,startTimer:function(){this._devicePixelRatio=this._windowInterface.devicePixelRatio;this._timerID=this._windowInterface.setInterval(function(){var e=this._windowInterface.devicePixelRatio;this._devicePixelRatio!==e&&(this._devicePixelRatio=e,this.emit("pixelScaleChanged",{}))}.bind(this),100),this._running=!0},stopTimer:function(){this._windowInterface.clearInterval(this._timerID),this._running=!1}});return{_pixelScaleMonitorHelper:new i,_numSubscribers:0,subscribe:function(e){return!1===this._pixelScaleMonitorHelper._running&&this._pixelScaleMonitorHelper.startTimer(),this._numSubscribers++,this._pixelScaleMonitorHelper.on("pixelScaleChanged",e)},unsubscribe:function(e){this._numSubscribers--,e.remove(),0===this._numSubscribers&&this._pixelScaleMonitorHelper.stopTimer()},reset:function(){this._pixelScaleMonitorHelper=new i,this._numSubscribers=0}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(964),i(325),i(365),i(457),i(375),i(5998),i(631),i(458),i(329),i(1518),i(1166),i(1519),i(1167),i(2193),i(406),i(967),i(6003),i(1520),i(6004),i(2195),i(6042),i(2200),i(6046),i(1522),i(6047),i(6048)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){return e("graphics.MWSG.WebGLRenderer",[],{constructor:function(e,t){this._canvas=e,this._transforms=new w,this._lights=new I,this.back_renderList=[],this.middle_opaque_renderList=[],this.middle_transparent_renderList=[],this.front_renderList=[],this.pipelineCmds=new S,this.shouldRunTransparencyPass=!1,this._drawn_count=0,this._total_count=0,this._clip={},this._clip.clipPlanes=[],this._clip.clipMode=i.ClipMode.none,this._clip.scissorRectangle=[],this.plotBox=[],this._clip.polarRegion={},this._capturedTexture=null,this.drawViewport={x:0,y:0,width:e.width,height:e.height},this.pickViewport={x:0,y:0,width:4,height:4},this.pickLocation={x:0,y:0},this.traversalMode=i.RenderTraversalMode.draw,this.DPI=c.FindDPI(),this.platform=c.getPlatform(),this.GPUVendor=i.GPUVendor.Other,this.MAX_TEXT_DIM=4096,this._initContext(t),this._states={alphaMultiplier:1}},captureCurrentImage:function(){var e=this.getWebGLContext(),t=this.getViewport(),i=e.createTexture();return e.bindTexture(e.TEXTURE_2D,i),e.texImage2D(e.TEXTURE_2D,0,e.RGB,t.width,t.height,0,e.RGB,e.UNSIGNED_BYTE,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.copyTexImage2D(e.TEXTURE_2D,0,e.RGB,t.x,t.y,t.width,t.height,0),e.bindTexture(e.TEXTURE_2D,null),this._capturedTexture=i,!0},clearCapturedImage:function(){return this._capturedTexture&&(this.getWebGLContext().deleteTexture(this._capturedTexture),this._capturedTexture=null),!0},hasCapturedImage:function(){return!!this._capturedTexture},drawCapturedImage:function(){return!!this._capturedTexture&&(this.drawTextures([this._capturedTexture],!1,!1),!0)},addLight:function(e){this._lights.addLight(e)},getLights:function(){return this._lights.getLights()},setActiveLights:function(e){this._lights.setActiveLights(e)},getActiveLights:function(e){return this._lights.getActiveLights()},getSceneAmbientLightColor:function(){return this._lights.getSceneAmbientLightColor()},removeAllLights:function(){this._lights.removeAllLights()},setTraversalMode:function(e){this.traversalMode=e},setAlphaMultiplier:function(e){this._states.alphaMultiplier=e},checkContext:function(){return!(void 0===this._context||null===this._context)},getVisibleCanvasContext:function(){return this._contextHandler?this._contextHandler._ctx:null},_initContext:function(e){this._contextHandler=t.createContextHandler(this._canvas,e,!1);var i=this._contextHandler.context;this._context=i,i&&(i.checkGLError=function(){var e=(i=this).getError();if(e!==i.NO_ERROR){var t="GL Error: "+e;throw document.body.appendChild(document.createTextNode(t)),t}},this.pipelineCmds.setDebuggingMode(i,!1),this.GPUVendor=c.getVendor(i),this.WebGLVersion=c.getVersion(i),this._versionStrategy=null,this._webglheaderStrategy=null,this.WebGLVersion>=2?(this._versionStrategy=new C(this),this._webglheaderStrategy=new E(this)):(this._versionStrategy=new y(this),this._webglheaderStrategy=new T(this)),i.clearColor(1,1,1,1),i.clearDepth(1),i.enable(i.DEPTH_TEST),i.depthFunc(i.LEQUAL),i.checkGLError(),i.enable(i.BLEND),i.blendFunc(i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA),i.frontFace(i.CW))},beginDraw:function(){this._drawn_count=0,this._total_count=0},beginDrawCamera:function(){},endDrawCamera:function(){this._drawn_count+=this.back_renderList.length+this.middle_opaque_renderList.length+this.middle_transparent_renderList.length+this.front_renderList.length,this.back_renderList=[],this.middle_opaque_renderList=[],this.middle_transparent_renderList=[],this.front_renderList=[],this.shouldRunTransparencyPass=!1},endDraw:function(e){var t=this._context;e&&t.finish(),this._contextHandler.swap()},getWebGLContext:function(){return this._context},getWebGLVersionStrategy:function(){return this._versionStrategy},setClearColor:function(e){this.clearColor=e.slice(0);var t=1/255;this.clearColor[0]*=t,this.clearColor[1]*=t,this.clearColor[2]*=t,this.clearColor[3]*=t},isDrawingBufferAvailable:function(){var e=this._context;if(!e)return!1;var t=this.getViewport();return this._contextHandler.updateSize(),e.viewport(t.x,t.y,t.width,t.height),!(e.drawingBufferWidth<t.width||e.drawingBufferHeight<t.height)},clearDraw:function(e){var t=this._context,i=this.getViewport();t.viewport(i.x,i.y,i.width,i.height),t.disable(t.SCISSOR_TEST),void 0!==e?t.clearColor(e[0],e[1],e[2],e[3]):t.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)},clearDepth:function(){var e=this._context;e.clear(e.DEPTH_BUFFER_BIT)},addTexture1D:function(e,t,i,n){var o=e.createTexture();e.bindTexture(e.TEXTURE_2D,o);var r=new Uint8Array(t),a=i[1];return e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,1,0,e.RGBA,e.UNSIGNED_BYTE,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.bindTexture(e.TEXTURE_2D,null),o},_expandDataForWideLine:function(e,t){var n=0;e.colorBinding===i.Binding.vertex&&(n=4),e.colorType===i.ColorType.colormapped&&(n=1),e.colorType===i.ColorType.texturemapped&&(n=2),n=e.colorData&&e.colorData.length&&e.colorData.length/n===e.nVertices?n:0;var o=3;o=e.normalsData&&e.normalsData.length&&e.normalsData.length/o===e.nVertices?o:0;var r;return(r=t?f.expandDataV2(e.stripData,e.vertexData,3):f.expandData(e.stripData,e.vertexData,3,e.colorData,n,e.normalsData,o,3,e.isLineLoop)).nVertices=r.vertexData.length/3,r},_addTextureToDrawCache:function(e,t,n,o){n.colorType===i.ColorType.truecolor||n.colorType===i.ColorType.truecoloralpha?t.colorBinding===i.Binding.vertex?(t.colorLoc=o.getAttributeLocation(s.Color.id),t.colorBuffer=this._setupBuffer(e,t.colorLoc,t.colorData)):t.colorLoc=o.getUniformLocation(s.Color.id):t.colorType===i.ColorType.texturemapped?this._add2DTextureToDrawCache(e,o,t,t.colorData,n.texture):t.colorType===i.ColorType.colormapped&&this._add1DTextureToDrawCache(e,o,t,t.colorData,n.texture)},_addLightingToDrawCache:function(e,t,i,n){v.addMaterialProperties(t,i),t.normalsAttribLoc=n.getAttributeLocation(s.Normal.id),t.normalsBuffer=this._setupBuffer(e,t.normalsAttribLoc,t.normalsData),t.LightingUniforms=v.addUniformLocations(n)},_textureShaderUtil:function(e,t){t.colorType===i.ColorType.truecolor||t.colorType===i.ColorType.truecoloralpha?t.colorBinding===i.Binding.vertex?this._useAttribBuffer(e,t.colorBuffer,t.colorLoc,4,e.FLOAT):e.uniform4fv(t.colorLoc,t.colorData):t.colorType===i.ColorType.texturemapped?(this._useAttribBuffer(e,t.texCoordBuffer,t.texCoordLoc,2,e.FLOAT),this._bindTextureUnitWithSamplerLoc(t)):t.colorType===i.ColorType.colormapped&&(this._useAttribBuffer(e,t.texCoordBuffer,t.texCoordLoc,1,e.FLOAT),this._bindTextureUnitWithSamplerLoc(t))},_lightingShaderUtil:function(e,t){var n=0;t.colorType===i.ColorType.texturemapped&&(n=1),v.loadDataToUniforms(e,this.getModelTransform(),this.getViewTransform(),t.LightingUniforms,t.materialProps,this.getLights(),this.getActiveLights(),this.getSceneAmbientLightColor(),n),this._useAttribBuffer(e,t.normalsBuffer,t.normalsAttribLoc,3,e.FLOAT)},_drawWideLines:function(e,t,i){if(i===e.TRIANGLES)e.drawArrays(i,0,t.nVertices-2);else{if(i!==e.TRIANGLE_STRIP)throw new Error("Wide lines can be drawn using triangle or triangle strip");if(t.useWideLineV2){var n=e.isEnabled(e.BLEND);n||e.enable(e.BLEND);for(var o=0,r=0;r<t.numStripVertices.length;r++){var a=t.numStripVertices[r];e.drawArrays(i,o,a),o+=a}n||e.disable(e.BLEND)}else for(r=0;r<t.nVertices-2;r+=6)e.drawArrays(i,r,6)}},_setAVCForDrawCache:function(e){e.AVC_uniLoc=[],e.viewportSizeLoc=e.shader.getUniformLocation(s.ViewportSize.id),e.AVC_uniLoc.push(e.viewportSizeLoc),e.uPlotBox=e.shader.getUniformLocation(s.PlotBox.id),e.AVC_uniLoc.push(e.uPlotBox),e.uAVCOffset=e.shader.getUniformLocation(s.AVCOffset.id),e.AVC_uniLoc.push(e.uAVCOffset)},setAlignVertexCenters:function(e,t,n){if(e.hasOwnProperty("AVC_uniLoc")){var o=this._context;o.uniform2f(e.AVC_uniLoc[0],t.width,t.height),o.uniform4f(e.AVC_uniLoc[1],n.x0,n.y0,n.x1,n.y1);var r=[0,0];this.GPUVendor===i.GPUVendor.Intel&&this.platform===i.Platform.Windows&&(r=[-.5,-.5]),o.uniform2f(e.AVC_uniLoc[2],r[0],r[1])}},_applyMatrices:function(e){var t=this._context,i=this.computedMVPTransform(),n=e.getUniformLocation(s.MVPMatrix.id);t.uniformMatrix4fv(n,!1,i.getAsFloat32Array());var o=e.getUniformLocation(s.MVPInverseMatrix.id);if(null!=o){var r=this.getMVPInvTransform();t.uniformMatrix4fv(o,!1,r.getAsFloat32Array())}return i},_applyClipPlanes:function(e){var t,i=this._context,n=[];if(e.uXMinClipPlaneLoc=e.getUniformLocation(s.xMinClipPlane.id),n.push(e.uXMinClipPlaneLoc),e.uXMaxClipPlaneLoc=e.getUniformLocation(s.xMaxClipPlane.id),n.push(e.uXMaxClipPlaneLoc),e.uYMinClipPlaneLoc=e.getUniformLocation(s.yMinClipPlane.id),n.push(e.uYMinClipPlaneLoc),e.uYMaxClipPlaneLoc=e.getUniformLocation(s.yMaxClipPlane.id),n.push(e.uYMaxClipPlaneLoc),e.uZMinClipPlaneLoc=e.getUniformLocation(s.zMinClipPlane.id),n.push(e.uZMinClipPlaneLoc),e.uZMaxClipPlaneLoc=e.getUniformLocation(s.zMaxClipPlane.id),n.push(e.uZMaxClipPlaneLoc),this._clip.clipPlanes.length>0)for(t=0;t<this._clip.clipPlanes.length;t+=1){var o=this._clip.clipPlanes[t];i.uniform4fv(n[t],g.createFloat32Array([o.getNormal().getX(),o.getNormal().getY(),o.getNormal().getZ(),o.getOffset()]))}else console.log("Error: clipPlanes.length <= 0");var r=e.getUniformLocation(s.MVPInverseMatrix.id),a=this.getMVPInvTransform();i.uniformMatrix4fv(r,!1,a.getAsFloat32Array());var l=this.getModelViewTransform(),c=e.getUniformLocation(s.ModelViewMatrix.id);i.uniformMatrix4fv(c,!1,l.getAsFloat32Array());var d=this.getProjectionMatrix(),u=e.getUniformLocation(s.ProjectionMat.id);i.uniformMatrix4fv(u,!1,d.getAsFloat32Array());var h=this.getViewport(),p=e.getUniformLocation(s.ViewportSize.id);i.uniform2fv(p,[h.width,h.height])},_applyPolarClip:function(e){let t=this._context,i=e.getUniformLocation(s.startTheta.id),n=e.getUniformLocation(s.endTheta.id),o=e.getUniformLocation(s.innerRadius.id),r=e.getUniformLocation(s.outerRadius.id),a=e.getUniformLocation(s.polarOrigin.id),l=this._clip.polarRegion;t.uniform1f(i,l.startTheta),t.uniform1f(n,l.endTheta),t.uniform1f(o,l.innerRadius),t.uniform1f(r,l.outerRadius),t.uniform2fv(a,l.polarOrigin)},applyScissorRect:function(e){var t=this._context;e.uScissorRectLoc=e.getUniformLocation(s.ScissorRect.id);var i=this._clip.scissorRectangle;t.uniform4fv(e.uScissorRectLoc,i)},getTransforms:function(){return this._transforms},setModelTransform:function(e){this._transforms.setModelTransform(e)},getModelTransform:function(){return this._transforms.getModelTransform()},setViewTransform:function(e){this._transforms.setViewTransform(e)},getViewTransform:function(){return this._transforms.getViewTransform()},getViewInvTransform:function(){return this._transforms.getViewInvTransform()},getModelViewTransform:function(){return this._transforms.getModelViewTransform()},computedMVPTransform:function(){return this._transforms.getMVPTransform()},getModelViewInvTransform:function(){return this._transforms.getModelViewInvTransform()},getMVPInvTransform:function(){return this._transforms.getMVPInvTransform()},setProjectionMatrix:function(e){this._transforms.setProjectionMatrix(e)},getProjectionMatrix:function(){return this._transforms.getProjectionMatrix()},getProjectionInvMatrix:function(){return this._transforms.getProjectionInvMatrix()},setDrawViewport:function(e,t,i,n){this.drawViewport={x:e,y:t,width:i,height:n},this.clearCapturedImage()},getDrawViewport:function(){return this.drawViewport},setPickSize:function(e,t){this.pickViewport={x:0,y:0,width:e,height:t}},setPlotBox:function(e){this.plotBox=e},getPickViewport:function(){return this.pickViewport},setPickLocation:function(e,t){this.pickLocation={x:e,y:t}},getPickLocation:function(){return this.pickLocation},getViewport:function(){return this.traversalMode===i.RenderTraversalMode.pick?this.pickViewport:this.drawViewport},getPickMatrix:function(){var e=this.getDrawViewport(),t=this.getPickViewport(),i=this.getPickLocation(),o=e.width/t.width,r=e.height/t.height,a=n.createScale(o,r,1),s=e.width/2,l=e.height/2,c=(s-i.x)/s,d=(l-i.y)/l,u=n.createTranslation(c,d,0);return a.times(u)},transformProjectionMatrixForPass:function(e){return this.traversalMode===i.RenderTraversalMode.pick?this.getPickMatrix().times(e):e},untransformProjectionMatrixForPass:function(e){if(this.traversalMode===i.RenderTraversalMode.pick){var t=this.getPickMatrix();return t.invert(),t.times(e)}return e},setDPI:function(e){this.DPI=e},getDPI:function(){return this.DPI},setPixelScale:function(e){this.pixelScale=e},getPixelScale:function(){return this.pixelScale},setDepthSort:function(e){var t=this._context;e?(t.enable(t.DEPTH_TEST),t.depthFunc(t.LEQUAL)):t.disable(t.DEPTH_TEST)},_isDepthTestEnabled:function(){var e=this._context;return e.isEnabled(e.DEPTH_TEST)},_is2dView:function(){for(var e=this.getViewTransform().getElements(),t=[1,2,4,6,8,9],i=0;i<t.length;i++)if(0!==e[t[i]])return!1;return!0},_clipUtil:function(e,t,n,o){if(e._clip.clipMode===i.ClipMode.scissor&&!0===o){var r=e._clip.scissorRectangle;t.enable(t.SCISSOR_TEST),t.scissor(r[0],r[1],r[2],r[3])}else e._clip.clipMode===i.ClipMode.planes&&!0===o?(t.disable(t.SCISSOR_TEST),this._applyClipPlanes(n)):e._clip.clipMode===i.ClipMode.polar&&!0===o?this._applyPolarClip(n):t.disable(t.SCISSOR_TEST)},_setPickProperties:function(e,t,i){t.use(e);var n=t.getUniformLocation(s.Pick.id),o=t.getUniformLocation(s.StoreScreenSpaceDepth.id);if(e.uniform1i(n,0),e.uniform1i(o,0),i)if(i.isFindIntersectionPointEnabled()){e.uniform1i(o,1);var r=this.getProjectionInvMatrix(),a=t.getUniformLocation(s.ProjectionInverseMatrix.id);e.uniformMatrix4fv(a,!1,r.getAsFloat32Array());var l=this.getProjectionMatrix(),d=t.getUniformLocation(s.ProjectionMat.id);e.uniformMatrix4fv(d,!1,l.getAsFloat32Array())}else{e.uniform1i(n,1);var u=t.getUniformLocation(s.PickColor.id),h=i.getCurrentPickColor();e.uniform4fv(u,c.convertUint8ColorsToFloat([h[0],h[1],h[2],255]))}},getLineCapsShaderConfig:function(e,t){var n={};return n.lineWidth=e.lineWidth,n.isWideLines=n.lineWidth>1,n.useStippleShader=e.lineStyle!==i.LineStyle.solid,n.isLineLoop=e.isLineLoop,n.isTransparentObject=e.isTransparentObject,n.colorType=e.colorType,n.clipping=e.clipping,n.colorBinding=e.colorBinding,n.useShaderClipping=n.clipping&&(this._clip.clipMode===i.ClipMode.planes||this._clip.clipMode===i.ClipMode.polar),n.needsPolarClipping=this._clip.clipMode===i.ClipMode.polar,n.needsFragCoordClipping=e.needsFragCoordClipping,n.applyLighting=e.applyLighting,t.getLineCapsOrJoinsShaderConfiguration(n,!0)},getLineJoinsShaderConfig:function(e,t){var n={};return n.lineWidth=e.lineWidth,n.isWideLines=n.lineWidth>1,n.useStippleShader=e.lineStyle!==i.LineStyle.solid,n.isLineLoop=e.isLineLoop,n.isTransparentObject=e.isTransparentObject,n.colorType=e.colorType,n.colorBinding=e.colorBinding,n.clipping=e.clipping,n.alignVertexCenters=!1,n.useShaderClipping=n.clipping&&(this._clip.clipMode===i.ClipMode.planes||this._clip.clipMode===i.ClipMode.polar),n.needsPolarClipping=this._clip.clipMode===i.ClipMode.polar,n.needsFragCoordClipping=e.needsFragCoordClipping,n.applyLighting=e.applyLighting,t.getLineCapsOrJoinsShaderConfiguration(n,!1)},_wideLineUsePerformantVersion:function(e){return this.WebGLVersion>=2&&this.traversalMode!==i.RenderTraversalMode.pick&&!this._isDepthTestEnabled()&&this._is2dView()&&f.shouldRunPerformantVersion(e)&&!e.needsFragCoordClipping&&e.stripData.length>0},getLineShaderConfig:function(e,t){var n={},o=this._wideLineUsePerformantVersion(e);return void 0!==e&&void 0!==e.stripData?(n.isLineStrip=!0,n.isLineLoop=e.isLineLoop,n.useStippleShader=e.lineStyle!==i.LineStyle.solid,n.isLineLoop&&n.useStippleShader&&(e=d.convertLineLoopsToLineStrip(e),n.useStippleShader.isLineLoop=!1)):(n.isLineStrip=!1,n.useStippleShader=e.lineStyle!==i.LineStyle.solid),n.drawLineJoins=!1,n.lineWidth=e.lineWidth,n.isWideLines=n.lineWidth>1,n.useWideLineV2=o,n.drawLineCaps=n.isWideLines&&void 0!==e.lineCap&&e.lineCap!==i.LineCap.none,n.alignVertexCenters=!1===n.isWideLines&&e.alignVertexCenters,n.isTransparentObject=e.isTransparentObject,n.colorType=e.colorType,n.colorBinding=e.colorBinding,n.clipping=e.clipping,n.useShaderClipping=n.clipping&&(this._clip.clipMode===i.ClipMode.planes||this._clip.clipMode===i.ClipMode.polar),n.needsPolarClipping=this._clip.clipMode===i.ClipMode.polar,n.needsFragCoordClipping=e.needsFragCoordClipping,n.applyLighting=e.applyLighting,t.getLineShaderConfiguration(n)},_convertDiscreteToPerVertexData:function(e,t,i,n){var o,r=g.createFloat32Array(i*n),a=e,s=0,l=0;for(o=0;o<t;o+=1){var c=a[l++],d=a[l++],u=a[l++],h=a[l++];r[s++]=c,r[s++]=d,r[s++]=u,r[s++]=h,r[s++]=c,r[s++]=d,r[s++]=u,r[s++]=h}return r},makeWideLinePipeline:function(e,t,n,o,r,a,l,c){var d=this._context,u=t.pipeline,h=t.shader,p=this._wideLineUsePerformantVersion(e),f={colorBinding:a,colorType:e.colorType,colorData:r,normalsData:l,normalBinding:c,nVertices:t.nVertices,stripData:e.stripData,vertexData:e.vertexData,isLineLoop:o},g=this._expandDataForWideLine(f,p),m=g.vertexData;void 0!==g.colorData&&(r=g.colorData),void 0!==g.normalsData&&(l=g.normalsData),void 0!==g.nVertices&&(t.nVertices=g.nVertices),void 0!==h.getAttributeLocation(s.StippleCoord.id)&&void 0!==h.getUniformLocation(s.StipplePattern.id)&&u.push(this.pipelineCmds.StippleData(d,h,m,e.stripData,e.lineStyle,e.lineWidth,this.getPixelScale(),t.nVertices,this._transforms,!0)),u.push(this.pipelineCmds.FloatUniform(h,s.LineWidth.id,e.lineWidth)),p?(u.push(this.pipelineCmds.VertexDataWideLineV2(d,h,m)),u.push(this.pipelineCmds.VertAttribData(d,h,s.VertexIndex.id,1,d.FLOAT,g.vertexIndices))):u.push(this.pipelineCmds.VertexDataWideLine(d,h,m)),void 0!==e.colorType&&u.push(this.pipelineCmds.ColorData(d,h,e,a,r,this._states)),e.applyLighting&&u.push(this.pipelineCmds.Lighting(d,h,e.colorType,t.nVertices,i.PrimitiveType.line,this._transforms,this._lights,c,l,v.storeMaterialProperties(e))),u.push(this.pipelineCmds.VertAttribData(d,h,s.PosToAccess.id,1,d.FLOAT,g.directionRequiredToExtrudeInShader)),n||o?p?u.push(this.pipelineCmds.DrawWideLineStripV2(g.numStripVertices)):u.push(this.pipelineCmds.Draw(d.TRIANGLE_STRIP,6,t.nVertices-2)):u.push(this.pipelineCmds.Draw(d.TRIANGLES,t.nVertices-2,1))},makeLineDrawCache:function(e,t){var n={},o=void 0!==e&&void 0!==e.stripData&&e.stripData.length>0,r=!!o&&e.isLineLoop;if(e.colorBinding===i.Binding.primitive&&o)return n;n.pipeline=[];var a=this._context;n.shader=this._getShader(a,t);var l=n.shader;n.nVertices=e.vertexData.length/3,e.isLineLoop&&e.lineStyle!==i.LineStyle.solid&&((e=d.convertLineLoopsToLineStrip(e)).isLineLoop=!1);var u=e.colorBinding,h=e.colorData;if((e.colorType===i.ColorType.truecolor||e.colorType===i.ColorType.truecoloralpha)&&(h=c.convertUint8ColorsToFloat(e.colorData),(u=e.colorBinding)===i.Binding.primitive)){u=i.Binding.vertex;var p=e.vertexData.length/3,f=Math.floor(p/2);h=this._convertDiscreteToPerVertexData(h,f,p,4)}var g=n.pipeline;g.push(this.pipelineCmds.ActivateShader(l)),g.push(this.pipelineCmds.ApplyMatrices(l,this._transforms)),g.push(this.pipelineCmds.Clip(a,e.clipping,this._clip,l,this._transforms,this)),g.push(this.pipelineCmds.ViewportSize(this,l)),g.push(this.pipelineCmds.FillUniformsCB(this,l)),g.push(this.pipelineCmds.GLDisable(a.POLYGON_OFFSET_FILL)),g.push(this.pipelineCmds.Pick(l,this._transforms)),n.isLineStrip=o;var m=e.lineWidth>1;if(m)this.makeWideLinePipeline(e,n,o,r,h,u,e.normalsData,e.normalBinding);else if(void 0!==l.getAttributeLocation(s.StippleCoord.id)&&void 0!==l.getUniformLocation(s.StipplePattern.id)&&g.push(this.pipelineCmds.StippleData(a,l,e.vertexData,e.stripData,e.lineStyle,e.lineWidth,this.getPixelScale(),n.nVertices,this._transforms,!1)),e.alignVertexCenters&&g.push(this.pipelineCmds.AlignVertexCenters(this,l)),g.push(this.pipelineCmds.VertexData(a,l,e.vertexData)),void 0!==e.colorType&&g.push(this.pipelineCmds.ColorData(a,l,e,u,h,this._states)),e.applyLighting&&g.push(this.pipelineCmds.Lighting(a,l,e.colorType,n.nVertices,i.PrimitiveType.line,this._transforms,this._lights,e.normalBinding,e.normalsData,v.storeMaterialProperties(e))),o||r){var _=r?a.LINE_LOOP:a.LINE_STRIP;g.push(this.pipelineCmds.DrawStrips(e.stripData,_))}else g.push(this.pipelineCmds.Draw(a.LINES,n.nVertices,1));return n.drawLineJoins=!(this._wideLineUsePerformantVersion(e)||!o)&&m,n.drawLineCaps=m&&void 0!==e.lineCap&&e.lineCap!==i.LineCap.none&&!1===r,n},_bindTextureUnitWithSamplerLoc:function(e){var t=this._context;if(void 0===e.textureUnit)throw new Error("Texture unit must be defined");t.activeTexture(e.textureUnit),t.bindTexture(t.TEXTURE_2D,e.texture),t.uniform1i(e.textureSamplerLoc,e.textureUnit-t.TEXTURE0)},makeLineJoinsDrawCache:function(e,t){var n,o=this._context;if(e.colorBinding===i.Binding.primitive)return{};!0===e.applyLighting&&(n=v.processNormalsData(e.vertexData.length/3,e.normalBinding,e.normalsData,i.PrimitiveType.line));var r={};r.lineWidth=e.lineWidth,r.isWideLines=r.lineWidth>1,r.useStippleShader=e.lineStyle!==i.LineStyle.solid,r.isLineLoop=e.isLineLoop,r.isTransparentObject=e.isTransparentObject,r.colorType=e.colorType,r.clipping=e.clipping,r.alignVertexCenters=!1,r.useShaderClipping=r.clipping&&this._clip.clipMode===i.ClipMode.planes,r.applyLighting=e.applyLighting,r.shader=this._getShader(o,t);var a=r.shader;if(r.actualVertexData=e.vertexData,r.joinStyleLoc=a.getUniformLocation(s.JoinStyle.id),r.segmentsPerJoinLoc=a.getUniformLocation(s.SegmentsPerJoin.id),r.lineWidthLoc=a.getUniformLocation(s.LineWidth.id),r.viewportSizeLoc=a.getUniformLocation(s.ViewportSize.id),r.lineJoin=e.lineJoin,r.isWideLines){var l=f.getWideLineJoinData(e,n);r.numVerticesPerJoin=l.numVerticesPerJoin,r.joinsVertexData=l.joinsVertexData,r.joinsNextVertexData=l.nextVertexData,r.joinsPrevVertexData=l.prevVertexData,r.joinsVertexIndices=l.vertexIndexData,r.colorData=l.colorData?l.colorData:e.colorData,r.normalsData=l.normalsData}else r.colorData=e.colorData,r.normalsData=n;return this._addPositionToDrawCacheForWideLineJoins(o,a,r),r.stippleUniformLoc=a.getUniformLocation(s.StipplePattern.id),r.stippleCoordLoc=a.getAttributeLocation(s.StippleCoord.id),r.stipplePattern=d.makeLineStipple(e.lineStyle,r.lineWidth,this.getPixelScale()),r.alphaMultiplierUniformLoc=a.getUniformLocation(s.AlphaMultiplier.id),r.stripData=e.stripData,e.colorType===i.ColorType.truecolor||e.colorType===i.ColorType.truecoloralpha?(r.colorBinding=e.colorBinding,r.colorData=c.convertUint8ColorsToFloat(r.colorData),r.colorBinding===i.Binding.object?r.colorLoc=a.getUniformLocation(s.Color.id):(r.colorLoc=a.getAttributeLocation(s.Color.id),r.colorBuffer=this._setupBuffer(o,r.colorLoc,r.colorData))):r.colorType===i.ColorType.texturemapped?this._add2DTextureToDrawCache(o,a,r,r.colorData,e.texture):r.colorType===i.ColorType.colormapped&&this._add1DTextureToDrawCache(o,a,r,r.colorData,e.texture),!0===r.applyLighting&&(v.addMaterialProperties(r,e),r.normalsAttribLoc=a.getAttributeLocation(s.Normal.id),r.normalsBuffer=this._setupBuffer(o,r.normalsAttribLoc,r.normalsData),r.LightingUniforms=v.addUniformLocations(a)),r},drawLineJoins:function(e,t){if(!0===e.isWideLines){var n=this._context,o=e.shader;o.use(n);var r=this._applyMatrices(o),a=new p(r,n.canvas.width,n.canvas.height);this._clipUtil(this,n,o,e.clipping);var s=this.getViewport();if(n.uniform2fv(e.viewportSizeLoc,[s.width,s.height]),n.uniform1f(e.alphaMultiplierUniformLoc,this._states.alphaMultiplier),this.fillUniformsCB&&this.fillUniformsCB(o,n),n.disable(n.POLYGON_OFFSET_FILL),this._setPickProperties(n,o,t),void 0!==e.stippleCoordLoc&&(void 0===e.viewCache||!1===a.compare(e.viewCache))){var l=f.addLineJoinsStippleCoords(e.joinsVertexData.length/3,e.actualVertexData,e.stripData,e.numVerticesPerJoin,a);e.stippleCoordsBuffer=this._setupBuffer(n,e.stippleCoordLoc,l),e.viewCache=a}this._useAttribBuffer(n,e.posBuffer,e.posLoc,3,n.FLOAT),this._useAttribBuffer(n,e.joinsVertexIndexBuffer,e.joinsVertexIndexLoc,1,n.FLOAT),this._useAttribBuffer(n,e.nextPosBuffer,e.nextPosLoc,3,n.FLOAT),this._useAttribBuffer(n,e.prevPosBuffer,e.prevPosLoc,3,n.FLOAT),n.uniform1i(e.joinStyleLoc,e.lineJoin),n.uniform1i(e.segmentsPerJoinLoc,e.numVerticesPerJoin-2),n.uniform1f(e.lineWidthLoc,e.lineWidth),void 0!==e.stippleUniformLoc&&void 0!==e.stippleCoordLoc&&(this._useAttribBuffer(n,e.stippleCoordsBuffer,e.stippleCoordLoc,1,n.FLOAT),n.uniform4fv(e.stippleUniformLoc,e.stipplePattern)),e.colorType===i.ColorType.truecolor||e.colorType===i.ColorType.truecoloralpha?e.colorBinding===i.Binding.vertex?this._useAttribBuffer(n,e.colorBuffer,e.colorLoc,4,n.FLOAT):n.uniform4fv(e.colorLoc,e.colorData):e.colorType===i.ColorType.texturemapped?(this._useAttribBuffer(n,e.texCoordBuffer,e.texCoordLoc,2,n.FLOAT),this._bindTextureUnitWithSamplerLoc(e)):e.colorType===i.ColorType.colormapped&&(this._useAttribBuffer(n,e.texCoordBuffer,e.texCoordLoc,1,n.FLOAT),this._bindTextureUnitWithSamplerLoc(e));for(var c=0;c<e.joinsVertexData.length/3;c+=e.numVerticesPerJoin)n.drawArrays(n.TRIANGLE_FAN,c,e.numVerticesPerJoin)}},makeLineCapsDrawCache:function(e,t,n){var o={},r=this._context;o.lineWidth=e.lineWidth,o.isWideLines=o.lineWidth>1,o.useStippleShader=e.lineStyle!==i.LineStyle.solid,o.isLineLoop=e.isLineLoop,o.isForLineStrip=t,o.isTransparentObject=e.isTransparentObject,o.colorType=e.colorType,o.clipping=e.clipping,o.useShaderClipping=o.clipping&&this._clip.clipMode===i.ClipMode.planes,o.applyLighting=!1,o.shader=this._getShader(r,n);var a=o.shader;if(o.capStyleLoc=a.getUniformLocation(s.CapStyle.id),o.segmentsPerCapLoc=a.getUniformLocation(s.SegmentsPerCap.id),o.lineWidthLoc=a.getUniformLocation(s.LineWidth.id),o.viewportSizeLoc=a.getUniformLocation(s.ViewportSize.id),o.lineCap=e.lineCap,o.numVerticesPerCap=f.vertexCountPerCap(o.lineCap),!0===t)o.stripData=e.stripData,o.capsVertexData=f.addWideLineCapsVertexData(e.stripData,e.vertexData,o.numVerticesPerCap);else{var l=e.vertexData.length/3;o.capsVertexData=g.createFloat32Array(l*o.numVerticesPerCap*3);for(var u=0;u<l;u+=2){var h=f.addWideLineCapsVertexData([1,3],e.vertexData.slice(3*u,3*(u+2)),o.numVerticesPerCap);o.capsVertexData.set(h,u*o.numVerticesPerCap*3)}}if(o.actualVertexData=e.vertexData,o.stippleUniformLoc=a.getUniformLocation(s.StipplePattern.id),o.stippleCoordLoc=a.getAttributeLocation(s.StippleCoord.id),o.stipplePattern=d.makeLineStipple(e.lineStyle,o.lineWidth,this.getPixelScale()),o.alphaMultiplierUniformLoc=a.getUniformLocation(s.AlphaMultiplier.id),!0===t){var p=f.addWideLineCapsUnitVectorData(e.stripData,e.vertexData,o.numVerticesPerCap);o.capsVertexIndices=p[0],o.capsUnitDistPoints=p[1]}else for(l=e.vertexData.length/3,o.capsVertexIndices=g.createFloat32Array(l*o.numVerticesPerCap),o.capsUnitDistPoints=g.createFloat32Array(l*o.numVerticesPerCap*3),u=0;u<l;u+=2){var m=f.addWideLineCapsUnitVectorData([1,3],e.vertexData.slice(3*u,3*(u+2)),o.numVerticesPerCap),_=m[0],v=m[1];o.capsVertexIndices.set(_,u*o.numVerticesPerCap),o.capsUnitDistPoints.set(v,u*o.numVerticesPerCap*3)}if(this._addPositionToDrawCache(r,a,o,o.capsVertexData),e.colorType===i.ColorType.truecolor||e.colorType===i.ColorType.truecoloralpha)if(o.colorBinding=e.colorBinding,o.colorData=c.convertUint8ColorsToFloat(e.colorData),o.colorBinding===i.Binding.object)o.colorLoc=a.getUniformLocation(s.Color.id);else{if(o.colorLoc=a.getAttributeLocation(s.Color.id),o.colorBinding=i.Binding.vertex,!0===o.isWideLines)if(!0===t)o.colorData=f.addWideLineCapsPerVertexColorData(e.stripData,o.colorData,o.numVerticesPerCap,4);else{var b=o.colorData.length/4,y=g.createFloat32Array(2*b*o.numVerticesPerCap*4);for(u=0;u<b;u++){var C=f.addWideLineCapsPerVertexColorData([1,3],o.colorData.slice(4*u,4*(u+1)),o.numVerticesPerCap,4);y.set(C,2*u*o.numVerticesPerCap*4)}o.colorData=y}o.colorBuffer=this._setupBuffer(r,o.colorLoc,o.colorData)}else o.colorType===i.ColorType.texturemapped?this._add2DTextureToDrawCache(r,a,o,e.colorData,e.texture):o.colorType===i.ColorType.colormapped&&(o.colorData=f.addWideLineCapsPerVertexColorData(e.stripData,e.colorData,o.numVerticesPerCap,1),this._add1DTextureToDrawCache(r,a,o,o.colorData,e.texture));return o},drawLineCaps:function(e,t){if(!0===e.isWideLines){var n=this._context,r=e.shader;r.use(n);var a=this._applyMatrices(r),l=new p(a,n.canvas.width,n.canvas.height),c=this.getViewport();if(n.uniform2fv(e.viewportSizeLoc,[c.width,c.height]),this.fillUniformsCB&&this.fillUniformsCB(r,n),n.disable(n.POLYGON_OFFSET_FILL),this._setPickProperties(n,r,t),this._clipUtil(this,n,r,e.clipping),void 0!==e.stippleCoordLoc&&(void 0===e.viewCache||!1===l.compare(e.viewCache))){var d=null;if(!0===e.isForLineStrip)d=f.addLineCapsStippleCoords(e.stripData,e.actualVertexData,e.numVerticesPerCap,l);else{var u=e.actualVertexData.length/3;d=g.createFloat32Array(u*e.numVerticesPerCap);for(var h=0;h<u;h+=2){var m=f.addLineCapsStippleCoords(void 0,e.actualVertexData.slice(3*h,3*(h+2)),e.numVerticesPerCap,l);d.set(m,h*e.numVerticesPerCap)}}e.stippleCoordsBuffer=this._setupBuffer(n,e.stippleCoordLoc,d),e.viewCache=l}if(this._useAttribBuffer(n,e.posBuffer,e.posLoc,3,n.FLOAT),e.capsVertexIndexLoc=r.getAttributeLocation(s.VertexIndex.id),e.capsVertexIndexBuffer=this._setupBuffer(n,e.capsVertexIndexLoc,e.capsVertexIndices),this._useAttribBuffer(n,e.capsVertexIndexBuffer,e.capsVertexIndexLoc,1,n.FLOAT),e.capsUnitDistPointLoc=r.getAttributeLocation(s.UnitDistPoint.id),e.capsUnitDistPointBuffer=this._setupBuffer(n,e.capsUnitDistPointLoc,e.capsUnitDistPoints),this._useAttribBuffer(n,e.capsUnitDistPointBuffer,e.capsUnitDistPointLoc,3,n.FLOAT),n.uniform1i(e.capStyleLoc,e.lineCap),n.uniform1i(e.segmentsPerCapLoc,e.numVerticesPerCap-2),n.uniform1f(e.lineWidthLoc,e.lineWidth),n.uniform1f(e.alphaMultiplierUniformLoc,this._states.alphaMultiplier),void 0!==e.stippleUniformLoc&&void 0!==e.stippleCoordLoc&&(this._useAttribBuffer(n,e.stippleCoordsBuffer,e.stippleCoordLoc,1,n.FLOAT),n.uniform4fv(e.stippleUniformLoc,e.stipplePattern)),e.colorType===i.ColorType.truecolor||e.colorType===i.ColorType.truecoloralpha?e.colorBinding===i.Binding.vertex?this._useAttribBuffer(n,e.colorBuffer,e.colorLoc,4,n.FLOAT):n.uniform4fv(e.colorLoc,e.colorData):e.colorType===i.ColorType.texturemapped?(this._useAttribBuffer(n,e.texCoordBuffer,e.texCoordLoc,2,n.FLOAT),this._bindTextureUnitWithSamplerLoc(e)):e.colorType===i.ColorType.colormapped&&(this._useAttribBuffer(n,e.texCoordBuffer,e.texCoordLoc,1,n.FLOAT),this._bindTextureUnitWithSamplerLoc(e)),!0===e.isForLineStrip)for(h=0;h<e.capsVertexData.length/3;h+=e.numVerticesPerCap)n.drawArrays(n.TRIANGLE_FAN,h,e.numVerticesPerCap);else for(u=e.actualVertexData.length/3,h=0;h<u;h++){if(h>0&&h<u-1){var _=new o(e.actualVertexData[3*h],e.actualVertexData[3*h+1],e.actualVertexData[3*h+2]),v=new o(e.actualVertexData[(h+1)%u*3],e.actualVertexData[(h+1)%u*3+1],e.actualVertexData[(h+1)%u*3+2]);if(!0===_.isSameAs(v))continue}else if(0===h){_=new o(e.actualVertexData[3*h],e.actualVertexData[3*h+1],e.actualVertexData[3*h+2]);var b=new o(e.actualVertexData[3*(u-1)],e.actualVertexData[3*(u-1)+1],e.actualVertexData[3*(u-1)+2]);if(!0===_.isSameAs(b))continue}n.drawArrays(n.TRIANGLE_FAN,h*e.numVerticesPerCap,e.numVerticesPerCap)}}},drawLines:function(e,t){this._drawPipeline(e,t)},getTriangleShaderConfig:function(e,t){var n={};return n.isTransparentObject=e.isTransparentObject,n.colorType=e.colorType,n.colorBinding=e.colorBinding,n.clipping=e.clipping,n.useShaderClipping=n.clipping&&(this._clip.clipMode===i.ClipMode.planes||this._clip.clipMode===i.ClipMode.polar),n.needsPolarClipping=this._clip.clipMode===i.ClipMode.polar,n.needsFragCoordClipping=e.needsFragCoordClipping,n.applyLighting=e.applyLighting,n.twoSidedLighting=e.twoSidedLighting,t.getTriangleShaderConfiguration(n)},makeTriangleDrawCache:function(e,t){return void 0!==e&&void 0!==e.stripData?this.makeTriangleStripDrawCache(e,t):this._makeDescreetTriangleDrawCache(e,t)},_makeDescreetTriangleDrawCache:function(e,t){var n={},o=this._context;n.shader=this._getShader(o,t);var r=n.shader;n.nVertices=e.vertexData.length/3;var a=e.colorData,s=e.colorBinding;if(e.colorType===i.ColorType.truecolor||e.colorType===i.ColorType.truecoloralpha){a=c.convertUint8ColorsToFloat(e.colorData);var l=[];if(s===i.Binding.primitive){s=i.Binding.vertex,l=g.createFloat32Array(4*n.nVertices);var d,u=a,h=0,p=0,f=n.nVertices/3;for(d=0;d<f;d+=1){var m=u[p++],_=u[p++],b=u[p++],y=u[p++];l[h++]=m,l[h++]=_,l[h++]=b,l[h++]=y,l[h++]=m,l[h++]=_,l[h++]=b,l[h++]=y,l[h++]=m,l[h++]=_,l[h++]=b,l[h++]=y}a=l}}var C=[];return C.push(this.pipelineCmds.ActivateShader(r)),C.push(this.pipelineCmds.ApplyMatrices(r,this._transforms)),C.push(this.pipelineCmds.Clip(o,e.clipping,this._clip,r,this._transforms,this)),C.push(this.pipelineCmds.PolygonOffset(o,e)),C.push(this.pipelineCmds.FillUniformsCB(this,r)),C.push(this.pipelineCmds.Pick(r,this._transforms)),C.push(this.pipelineCmds.VertexData(o,r,e.vertexData)),C.push(this.pipelineCmds.ColorData(o,r,e,s,a,this._states)),e.applyLighting&&C.push(this.pipelineCmds.Lighting(o,r,n.colorType,n.nVertices,i.PrimitiveType.triangle,this._transforms,this._lights,e.normalBinding,e.normalsData,v.storeMaterialProperties(e))),C.push(this.pipelineCmds.Draw(o.TRIANGLES,n.nVertices,n.nVertices)),n.pipeline=C,n},drawTriangles:function(e,t){this._drawPipeline(e,t)},makeTriangleStripDrawCache:function(e,t){var n={};if(e.colorBinding===i.Binding.primitive)return n;var o=this._context;n.shader=this._getShader(o,t);var r=n.shader;n.nVertices=e.vertexData.length/3;var a=e.colorData;e.colorType!==i.ColorType.truecolor&&e.colorType!==i.ColorType.truecoloralpha||(a=c.convertUint8ColorsToFloat(e.colorData));var s=[];return s.push(this.pipelineCmds.ActivateShader(r)),s.push(this.pipelineCmds.ApplyMatrices(r,this._transforms)),s.push(this.pipelineCmds.Clip(o,e.clipping,this._clip,r,this._transforms,this)),s.push(this.pipelineCmds.PolygonOffset(o,e)),s.push(this.pipelineCmds.FillUniformsCB(this,r)),s.push(this.pipelineCmds.Pick(r,this._transforms,this)),s.push(this.pipelineCmds.VertexData(o,r,e.vertexData)),s.push(this.pipelineCmds.ColorData(o,r,e,e.colorBinding,a,this._states)),e.applyLighting&&s.push(this.pipelineCmds.Lighting(o,r,n.colorType,n.nVertices,i.PrimitiveType.triangle,this._transforms,this._lights,e.normalBinding,e.normalsData,v.storeMaterialProperties(e))),s.push(this.pipelineCmds.DrawStrips(e.stripData,o.TRIANGLE_STRIP)),n.pipeline=s,n},_drawPipeline:function(e,t){var n=e;this.traversalMode===i.RenderTraversalMode.pick&&(void 0!==e.pickCache?n=e.pickCache:void 0!==e.pickCacheFcn&&(e.pickCache=e.pickCacheFcn(this._context,e),n=e.pickCache));var o=this._context;n.pipeline.forEach((function(e,i){e.exec(o,n,t)}))},drawTriangleStrip:function(e,t){this._drawPipeline(e)},_makeTextBackgroundCache:function(e,t,i,n,o,r,a,l){var c={angle:n,logicalBounds:i,margin:o,horizontalAlignment:r,verticalAlignment:a};return c.alphaMultiplierUniformLoc=t.getUniformLocation(s.AlphaMultiplier.id),c},_makeTextEdgeCache:function(e,t,i,n,o,r,a,l,c){var d={logicalBounds:i,horizontalAlignment:n,verticalAlignment:o,angle:r,lineWidth:l,lineStyle:c};return d.alphaMultiplierUniformLoc=t.getUniformLocation(s.AlphaMultiplier.id),d},getTextBackgroundShaderConfig:function(e,t){var n=e.colortype===i.ColorType.truecolor,o=i.ClipMode.none;return e.clipping&&(o=this._clip.clipMode),t.getScreenSpaceConstantColorShader(o,!1,!1,e.anchorPointClipping,n)},getTextEdgeShaderConfig:function(e,t){var n=e.colortype===i.ColorType.truecolor,o=i.ClipMode.none;return e.clipping&&(o=this._clip.clipMode),t.getScreenSpaceConstantColorShader(o,e.lineStyle!==i.LineStyle.solid,!1,e.anchorPointClipping,n)},getTextShaderConfig:function(e,t){var n=e.colortype===i.ColorType.truecolor,o=!1,r=i.ClipMode.none;return e.clipping&&((r=this._clip.clipMode)!==i.ClipMode.planes||e.anchorPointClipping||(o=!0)),t.getScreenSpaceImageShader(r,o,!1,!1,n)},makeTextDrawCache:function(e,t,n,o){var a={},l=this._context,h=this.getViewport();a.alignVertexCenters=!1,a.clipping=e.clipping,a.anchorPointClipping=e.anchorPointClipping;var p=e.vertexData.length/3;a.nVertices=p,a.txtCache=new Array(p);var f="rgba("+e.colorData[0]+","+e.colorData[1]+","+e.colorData[2]+","+e.colorData[3]/255+")";a.margin=e.margin;var m=[];if(a.drawBackground=e.hasOwnProperty("background"),a.drawBackground){a.backgroundCache=new Array(p);var _=this._getShader(l,n);a.backgroundShader=_,m.push(this.pipelineCmds.ActivateShader(_)),m.push(this.pipelineCmds.Pick(_,this._transforms)),m.push(this.pipelineCmds.ApplyMatrices(_,this._transforms)),m.push(this.pipelineCmds.Clip(l,e.clipping,this._clip,_,this._transforms,this));var v={colorType:i.ColorType.truecoloralpha};m.push(this.pipelineCmds.ColorData(l,_,v,i.Binding.primitive,c.convertUint8ColorsToFloat(e.background),this._states));let t=g.createFloat32Array(8);t.fill(0),m.push(this.pipelineCmds.VertAttribData(l,_,s.Coord2DOffset.id,2,l.FLOAT,t)),m.push(this.pipelineCmds.FloatUniform(_,s.Scale.id,1)),m.push(this.pipelineCmds.FillUniformsCB(this,_)),m.push(this.pipelineCmds.DrawTextBackground(_,s.Anchor.id,this,u))}if(a.drawEdge=e.hasOwnProperty("edgeColor"),a.drawEdge){a.lineWidth=e.lineWidth,a.edgeCache=new Array(p);var b=this._getShader(l,o);a.edgeShader=b,m.push(this.pipelineCmds.ActivateShader(b)),m.push(this.pipelineCmds.Pick(b,this._transforms)),m.push(this.pipelineCmds.ApplyMatrices(b,this._transforms)),m.push(this.pipelineCmds.Clip(l,e.clipping,this._clip,b,this._transforms,this));var y={colorType:i.ColorType.truecoloralpha};m.push(this.pipelineCmds.ColorData(l,b,y,i.Binding.primitive,c.convertUint8ColorsToFloat(e.edgeColor),this._states)),m.push(this.pipelineCmds.FloatUniform(b,s.Scale.id,1)),m.push(this.pipelineCmds.IntUniform(b,s.ClosedLoopEdge.id,0));var C=e.lineStyle!==i.LineStyle.solid?d.makeLineStipple(e.lineStyle,a.lineWidth,this.getPixelScale()):null;let t=g.createFloat32Array(u.getNumEdgeVerts());t.fill(0),m.push(this.pipelineCmds.VertAttribData(l,b,s.Coord2DOffset.id,2,l.FLOAT,t)),m.push(this.pipelineCmds.FillUniformsCB(this,b)),m.push(this.pipelineCmds.DrawTextEdge(b,s.Anchor.id,e.lineStyle,C,this,u)),a.edgeColorLoc=b.getUniformLocation(s.Color.id)}var T,E=this._getShader(l,t);for(a.shader=E,m.push(this.pipelineCmds.ActivateShader(E)),m.push(this.pipelineCmds.ApplyMatrices(E,this._transforms)),!0===a.alignVertexCenters&&m.push(this.pipelineCmds.AlignVertexCenters(this,E)),m.push(this.pipelineCmds.Clip(l,e.clipping,this._clip,E,this._transforms,this)),m.push(this.pipelineCmds.FillUniformsCB(this,E)),m.push(this.pipelineCmds.Pick(E,this._transforms)),m.push(this.pipelineCmds.AlphaMultiplier(E,this._states)),m.push(this.pipelineCmds.DrawText(E,s.Anchor.id,this)),a.pipeline=m,a.viewdependent=!1,T=0;T<p;T+=1){var S={},w=1;let t=u.getAlignment(e,T);if(1===p&&e.string.length>1)for(var I=1;I<e.string.length;I+=1)w+=1;var A=e.string.slice(T,T+w);if(function(e){var t,i=!0;for(t=0;t<e.length;t++)if(0!==e[t].length){i=!1;break}return i}(A))a.txtCache[T]=void 0;else{var x=3*T,N=e.vertexData,L=u.makeTextHandler(e.interpreter,A),D=this._makeTextBuffer(A,f,w,e,t,new r(N[x],N[x+1],N[x+2],1),L);if(L.destroy(),null!==D){!0===D.cropped&&(a.viewdependent=!0),S.textureData=D.textureData;var M=D.pixelBounds,P=g.createFloat32Array(8);if(P[0]=M.x,P[1]=M.y,P[2]=M.x,P[3]=M.y+M.height,P[4]=M.x+M.width,P[5]=M.y,P[6]=M.x+M.width,P[7]=M.y+M.height,this._addCoord2DToDrawCache(l,E,S,P),S.vertexData=g.createFloat32Array([N[x],N[x+1],N[x+2]]),this._add2DTextureToDrawCache(l,E,S,g.createFloat32Array([0,1,0,0,1,1,1,0]),S.textureData),a.txtCache[T]=S,a.drawBackground||a.drawEdge){var O=e.rotation*(Math.PI/180),R=D.logicalBounds;a.drawBackground&&(a.backgroundCache[T]=this._makeTextBackgroundCache(l,a.backgroundShader,R,O,a.margin,t.horizontal,t.vertical,h)),a.drawEdge&&(a.edgeCache[T]=this._makeTextEdgeCache(l,a.edgeShader,R,t.horizontal,t.vertical,O,h,a.lineWidth,a.lineStyle))}}else a.txtCache[T]=void 0,a.viewdependent=!0}}return a},_makeTextBufferCropped:function(e,t,n,o,r,a,s,l,d,u){var h=this.getViewport(),f=c.getPixelBounds(n.width,n.height,d.horizontal,d.vertical,l.rotation),g=this.computedMVPTransform(),m=new p(g,h.width,h.height),_=c.convertPointToScreenSpace(u,m),v={x:f.x+Math.round(_[0]),y:f.y+Math.round(_[1]),width:f.width,height:f.height},b=c.intersectBounds(v,h);if(void 0===b)return null;(this.textCanvas.width<h.width||this.textCanvas.height<h.height)&&(this.textCanvas.width=h.width,this.textCanvas.height=h.height,this.textContext=this.textCanvas.getContext("2d"),(t=this.textContext).font=r,t.textAlign=c.getHorizontalAlignment(d.horizontal),t.textBaseline="bottom"),t.save(),t.clearRect(0,0,h.width,h.height),t.translate(_[0],h.height-_[1]),t.rotate(-l.rotation*Math.PI/180);var y=c.getVerticalTranslation(n.height,d.vertical);t.translate(0,y),t.fillStyle=a,e.drawStrings(o,s,t,l,n.width,n.height);var C={},T={};T.dims=[4,b.width,b.height];var E=t.getImageData(b.x,h.height-b.y-b.height,b.width,b.height);return T.CData=E.data,T.colorType=i.TextureColorType.truecoloralpha,C.textureData=T,C.pixelBounds={x:b.x-Math.round(_[0]),y:b.y-Math.round(_[1]),width:b.width,height:b.height},C.logicalBounds=n,C.cropped=!0,t.restore(),C},_makeTextBufferNormal:function(e,t,n,o,r,a,s,l,d){var u=c.getPixelBounds(n.width,n.height,d.horizontal,d.vertical,l.rotation),h=c.getVerticalTranslation(n.height,d.vertical);(this.textCanvas.width<2*u.width||this.textCanvas.height<2*u.height)&&(this.textCanvas.width=2*u.width,this.textCanvas.height=2*u.height,this.textContext=this.textCanvas.getContext("2d"),(t=this.textContext).font=r,t.textAlign=c.getHorizontalAlignment(d.horizontal),t.textBaseline="bottom");var p=this.textCanvas.width,f=this.textCanvas.height;t.save(),t.clearRect(0,0,p,f),t.translate(p/2,f/2),t.rotate(-l.rotation*Math.PI/180),t.translate(0,h),t.fillStyle=a,e.drawStrings(o,s,t,l,n.width,n.height);var g={},m={};m.dims=[4,u.width,u.height];var _=t.getImageData(p/2+u.x,f/2-u.y-u.height,u.width,u.height);return m.CData=_.data,m.colorType=i.TextureColorType.truecoloralpha,g.textureData=m,g.pixelBounds=u,g.logicalBounds=n,g.cropped=!1,t.restore(),g},_makeTextBuffer:function(e,t,i,n,o,r,a){var s=l.makeFont(n.font,this.getDPI());this.textContext||(this.textCanvas=document.getElementById("txtCanvas"),null===this.textCanvas&&(this.textCanvas=document.createElement("canvas"),this.textCanvas.width=500,this.textCanvas.height=500,this.textCanvas.id="txtCanvas"),this.textContext=this.textCanvas.getContext("2d"));var d=this.textContext;d.font=s,d.textAlign=c.getHorizontalAlignment(o.horizontal),d.textBaseline="bottom";var u=c.convertPoints2DevicePixels(this,n.font.size),h=a.computeSize(n,e,i,t,d,u);return null===h?null:h.width>this.MAX_TEXT_DIM||h.height>this.MAX_TEXT_DIM?this._makeTextBufferCropped(a,d,h,e,s,t,i,n,o,r):this._makeTextBufferNormal(a,d,h,e,s,t,i,n,o)},drawText:function(e,t){var i=this._context,n=i.isEnabled(i.BLEND);n||i.enable(i.BLEND),this._drawPipeline(e,t),n||i.disable(i.BLEND)},needsPickCache:function(e){return e.hasOwnProperty("edgeColor")&&!e.hasOwnProperty("faceColor")&&h.isFaceMarker(e.style)},getMarkerShaderConfig:function(e,t){var n=!e.isTransparentObject,o=i.ClipMode.none;return e.clipping&&(o=this._clip.clipMode),this._versionStrategy.getMarkerShaderConfig(n,o,e.anchorPointClipping,t)},makeMarkerDrawCache:function(e,t){var i={};i.style=e.style,i.nVertices=e.vertexData.length/3,i.clipping=e.clipping;var n=e.clipping,o=e.anchorPointClipping;i.alignVertexCenters=!0;var r=this._context;i.isWideEdge=e.lineWidth>1,i.isTransparentObject=e.isTransparentObject;var a=this._getShader(r,t);i.shader=a;var l=[];l.push(this.pipelineCmds.ActivateShader(a)),l.push(this.pipelineCmds.ApplyMatrices(a,this._transforms)),l.push(this.pipelineCmds.FillUniformsCB(this,a)),l.push(this.pipelineCmds.Pick(a,this._transforms)),i.alignVertexCenters&&l.push(this.pipelineCmds.AlignVertexCenters(this,a)),i.closedLoopEdgeLoc=a.getUniformLocation(s.ClosedLoopEdge.id);var c=h.isFaceMarker(e.style)?1:0;l.push(this.pipelineCmds.IntUniform(a,s.ClosedLoopEdge.id,c));var d=void 0!==e&&e.hasOwnProperty("faceColor"),u=void 0!==e&&e.hasOwnProperty("edgeColor"),p=h.makeShape(r,e,this.getViewport(),h.computeMarkerLOD(this,e),u,d);return i.primType=p.primType,i.numShapeVerts=p.nVerts,l.push(this.pipelineCmds.AlphaMultiplier(a,this._states)),l.push(this.pipelineCmds.AnchorPointClip(r,n,o,this._clip,a,this._transforms,this)),i.pipeline=l,this._versionStrategy.makeMarkerDrawCache(e,t,a,r,p,d,u,i),i},drawMarkers:function(e,t){this._drawPipeline(e,t)},_getShader:function(e,t){var i=t.getUniqueIdentifier();if(void 0===this._contextHandler.shader_list[i]){var n=a.createShader(t,this._versionStrategy.shaderOptions.providerOpts,this._webglheaderStrategy);n.load(e),this._contextHandler.shader_list[i]=n}return this._contextHandler.shader_list[i]},_setupBuffer:function(e,t,i){if(null!==t){var n=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,n),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW),n}return null},_setupIndexBuffer:function(e,t){var i=e.createBuffer();return e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,i),e.bufferData(e.ELEMENT_ARRAY_BUFFER,t,e.STATIC_DRAW),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null),i},_useAttribBuffer:function(e,t,i,n,o,r){e.bindBuffer(e.ARRAY_BUFFER,t),e.enableVertexAttribArray(i),void 0===r&&(r=0),e.vertexAttribPointer(i,n,o,!1,0,r)},_addPositionToDrawCache:function(e,t,i,n){i.posLoc=t.getAttributeLocation(s.Position.id),i.posBuffer=this._setupBuffer(e,i.posLoc,n)},_addPositionToDrawCacheForWideLine:function(e,t,i){i.posLoc=t.getAttributeLocation(s.Position.id),i.prevPosLoc=t.getAttributeLocation(s.PrevPos.id),i.prevprevPosLoc=t.getAttributeLocation(s.PrevToPrevPos.id),i.nextPosLoc=t.getAttributeLocation(s.NextPos.id),i.nextnextPosLoc=t.getAttributeLocation(s.NextToNextPos.id),-1!==i.posLoc&&-1!==i.prevPosLoc&&-1!==i.nextPosLoc&&(i.posBuffer=this._setupBuffer(e,i.posLoc,i.vertexData)),i.posToAccessLoc=t.getAttributeLocation(s.PosToAccess.id),-1!==i.posToAccessLoc&&(i.posToAccessLocBuffer=this._setupBuffer(e,i.posToAccessLoc,i.directionRequiredToExtrudeInShader)),i.vertexIndexLoc=t.getAttributeLocation(s.VertexIndex.id),i.vertexIndexLoc&&i.vertexIndices&&(i.vertexIndexLocBuffer=this._setupBuffer(e,i.vertexIndexLoc,i.vertexIndices))},_addPositionToDrawCacheForWideLineJoins:function(e,t,i){i.posLoc=t.getAttributeLocation(s.Position.id),i.prevPosLoc=t.getAttributeLocation(s.PrevPos.id),i.nextPosLoc=t.getAttributeLocation(s.NextPos.id),i.joinsVertexIndexLoc=t.getAttributeLocation(s.VertexIndex.id),-1!==i.posLoc&&(i.posBuffer=this._setupBuffer(e,i.posLoc,i.joinsVertexData)),-1!==i.prevPosLoc&&(i.prevPosBuffer=this._setupBuffer(e,i.prevPosLoc,i.joinsPrevVertexData)),-1!==i.nextPosLoc&&(i.nextPosBuffer=this._setupBuffer(e,i.nextPosLoc,i.joinsNextVertexData)),-1!==i.joinsVertexIndexLoc&&(i.joinsVertexIndexBuffer=this._setupBuffer(e,i.joinsVertexIndexLoc,i.joinsVertexIndices))},_addAnchorPointsToDrawCache:function(e,t,i,n){i.anchorLoc=t.getAttributeLocation(s.Anchor.id),i.anchorBuffer=this._setupBuffer(e,i.anchorLoc,n)},_addScaleToDrawCache:function(e,t,i,n){i.scaleLoc=t.getAttributeLocation(s.Scale.id),i.scaleBuffer=this._setupBuffer(e,i.scaleLoc,n)},_addColorToDrawCache:function(e,t,i,n){i.colorLoc=t.getAttributeLocation(s.Color.id),i.colorBuffer=this._setupBuffer(e,i.colorLoc,n)},_addFaceColorsAsAttributeToDrawCache:function(e,t,i,n){i.faceColorLoc=t.getAttributeLocation(s.FaceColor.id),i.faceColorBuffer=this._setupBuffer(e,i.faceColorLoc,n),i.drawFace=!0},_addEdgeColorsAsAttributeToDrawCache:function(e,t,i,n){i.edgeColorLoc=t.getAttributeLocation(s.EdgeColor.id),i.edgeColorBuffer=this._setupBuffer(e,i.edgeColorLoc,n),i.drawEdge=!0},_addFaceColorAsUniformToDrawCache:function(e,t,i,n){i.faceColorLoc=t.getUniformLocation(s.FaceColor.id),i.faceColor=n,i.drawFace=!0},_addEdgeColorAsUniformToDrawCache:function(e,t,i,n){i.edgeColorLoc=t.getUniformLocation(s.EdgeColor.id),i.edgeColor=n,i.drawEdge=!0},_addFaceColorIndicatorsToDrawCache:function(e,t,i,n){i.faceColorIndicatorLoc=t.getAttributeLocation(s.FaceColorIndicator.id),i.faceColorIndicatorBuffer=this._setupBuffer(e,i.faceColorIndicatorLoc,n)},_addCoord2DToDrawCache:function(e,t,i,n){i.coord2DLoc=t.getAttributeLocation(s.Coord2D.id),i.coord2DBuffer=this._setupBuffer(e,i.coord2DLoc,n)},_addCoord2DOffsetToDrawCache:function(e,t,i,n){i.coord2DOffsetLoc=t.getAttributeLocation(s.Coord2DOffset.id),i.coord2DOffsetBuffer=this._setupBuffer(e,i.coord2DOffsetLoc,g.createFloat32Array(n))},_applyTextureSamplingFilter:function(e,t){t===i.TextureSamplingFilterType.bilinear||t===i.TextureSamplingFilterType.trilinear?(t===i.TextureSamplingFilterType.bilinear?e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST):t===i.TextureSamplingFilterType.trilinear&&e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.generateMipmap(e.TEXTURE_2D)):t===i.TextureSamplingFilterType.linear?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST))},_add2DTextureToDrawCache:function(e,t,n,o,r){if(r){n.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,n.texture);var a=0,l=0,d=null;void 0!==r.image?(a=r.image.width,l=r.image.height,d=r.image):(a=r.dims[1],void 0===(l=r.dims[2])&&(l=1),d=new Uint8Array(r.CData));var u=1,h=1,p=a,f=l;c.isPOWOf2(a)&&c.isPOWOf2(l)||r.samplingFilter!==i.TextureSamplingFilterType.bilinear&&r.samplingFilter!==i.TextureSamplingFilterType.trilinear||(p=c.nextPOWOf2(a),f=c.nextPOWOf2(l),u=a/p,h=l/f,o=o.map((function(e,t,i){return t%2==0?e*u:e*h}))),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,p,f,0,e.RGBA,e.UNSIGNED_BYTE,null),void 0!==r.image?e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,d):e.texSubImage2D(e.TEXTURE_2D,0,0,0,a,l,e.RGBA,e.UNSIGNED_BYTE,d),this._applyTextureSamplingFilter(e,r.samplingFilter),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.bindTexture(e.TEXTURE_2D,null)}n.texCoordLoc=t.getAttributeLocation(s.TexCoord.id),n.texCoordBuffer=this._setupBuffer(e,n.texCoordLoc,o),n.textureSamplerLoc=t.getUniformLocation(s.Sampler2D.id),n.textureUnit=e.TEXTURE0},_add1DTextureToDrawCache:function(e,t,i,n,o){o&&(i.texture=this.addTexture1D(e,o.CData,o.dims,o.colorType)),i.texCoordLoc=t.getAttributeLocation(s.TexCoord.id),i.texCoordBuffer=this._setupBuffer(e,i.texCoordLoc,n),i.textureSamplerLoc=t.getUniformLocation(s.Sampler2D.id),i.textureUnit=e.TEXTURE0},setClipMode:function(e){this._clip.clipMode=e},setClipPlanes:function(e){void 0!==e&&e.length>0?this._clip.clipPlanes=e:this._clip.clipPlanes=[]},setScissorRectangle:function(e){if(void 0!==e&&4===e.length){if(this.traversalMode===i.RenderTraversalMode.pick){var t=e[0]-this.pickLocation.x,n=e[1]-this.pickLocation.y;t+e[2]<0||n+e[3]<0?this._clip.scissorRectangle=[0,0,0,0]:this._clip.scissorRectangle=[t,n,e[2],e[3]]}else this._clip.scissorRectangle=e.slice(0);var o=this.getViewport(),r={left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height},a={left:this._clip.scissorRectangle[0],top:this._clip.scissorRectangle[1],right:this._clip.scissorRectangle[0]+this._clip.scissorRectangle[2],bottom:this._clip.scissorRectangle[1]+this._clip.scissorRectangle[3]};c.doRectanglesIntersect(r,a)||(this._clip.scissorRectangle=[0,0,0,0])}else this._clip.scissorRectangle=[]},setPolarRegion:function(e){void 0!==e.startTheta&&void 0!==e.endTheta&&void 0!==e.innerRadius&&void 0!==e.outerRadius&&void 0!==e.polarOrigin?this._clip.polarRegion={startTheta:e.startTheta,endTheta:e.endTheta,innerRadius:e.innerRadius,outerRadius:e.outerRadius,polarOrigin:e.polarOrigin}:this._clip.polarRegion={}},clearRenderLists:function(){this.back_renderList=[],this.middle_opaque_renderList=[],this.middle_transparent_renderList=[],this.front_renderList=[]},drawCamera:function(e,t){this.fillUniformsCB=void 0;var i=e.depthsort;this.plotBox=e.plotBox,this._depthPeeler||(this._depthPeeler=new b),this._depthPeeler.canDraw(this)&&i&&!0===this.shouldRunTransparencyPass?this._depthPeeler.draw(this,this.front_renderList,this.middle_opaque_renderList,this.middle_transparent_renderList,this.back_renderList,t):this._defaultRenderingPass(t,i)},_defaultRenderingPass:function(e,t){this._drawPassShaderConfigFcns||(this._drawPassShaderConfigFcns=new m);var i=this._context;i.depthMask(!0),i.enable(i.DEPTH_TEST),i.depthFunc(i.LEQUAL),this.clearDepth(),i.disable(i.DEPTH_TEST),i.depthMask(!1),i.enable(i.BLEND),e(this.back_renderList,this,this._drawPassShaderConfigFcns),t?(i.enable(i.DEPTH_TEST),i.depthMask(!0),i.disable(i.BLEND),e(this.middle_opaque_renderList,this,this._drawPassShaderConfigFcns),i.depthMask(!1),i.enable(i.BLEND),e(this.middle_transparent_renderList,this,this._drawPassShaderConfigFcns),i.disable(i.DEPTH_TEST),i.depthMask(!1)):e(this.middle_opaque_renderList,this,this._drawPassShaderConfigFcns),e(this.front_renderList,this,this._drawPassShaderConfigFcns)},appendRenderNode:function(e,t,n){n===i.Layer.middle?e.traversalMode===i.RenderTraversalMode.draw&&t.stateset.depthSort&&(t.node.isTransparentObject||1!==t.stateset.alphaMultiplier)?(e.middle_transparent_renderList.push(t),"Text"!==t.node.type&&(e.shouldRunTransparencyPass=!0)):e.middle_opaque_renderList.push(t):n===i.Layer.front?e.front_renderList.push(t):n===i.Layer.back&&e.back_renderList.push(t)},drawTextures:function(e,t,o,r){this.setModelTransform(new n),this.setProjectionMatrix(new n),this.setViewTransform(new n);var a=this.getDrawViewport(),s=e.length,l=r||e.length,c=Math.ceil(s/l),d=a.width/l,u=a.height/c,h=0,p=0;if(t){var f=this._context;f.enable(f.BLEND),f.blendFunc(f.SRC_ALPHA,f.ONE_MINUS_SRC_ALPHA)}var m=new _;e.forEach(function(e,t){h===l&&(h=0,p++);var n=o&&o[t],r=this._context,a=this.getDrawViewport();r.viewport(a.x+d*h,a.y+u*p,d,u),h++;var s={};s.vertexData=g.createFloat32Array([-1,-1,0,-1,1,0,1,-1,0,1,1,0]),s.stripData=g.createFloat32Array([1,5]),s.colorData=g.createFloat32Array([0,0,0,1,1,0,1,1]),s.colorBinding=i.Binding.vertex,s.colorType=i.ColorType.texturemapped,s.clipping=!1,s.texture=null;var c={};c.isDepthTexture=n;var f,_=m.getTriangleShaderConfig(c),v=this.makeTriangleDrawCache(s,_);v.pipeline.forEach((function(e,t){e.hasOwnProperty("name")&&"ColorDataTextureCmd"===e.name&&(f=e)})),f.tex.texture=e,this.drawTriangles(v)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(457),i(375),i(329),i(325),i(406)],o=i.dj.d(n,(function(e,t,i,n,o){return{_getNumStripsWithMinimumVertices:function(e,t){for(var i=e.length-1,n=0,o=0,r=0;r<i;++r){var a=e[r+1]-e[r];a<t||(++n,o+=a)}return[n,o]},_VertexDataErrorChecking:function(e,t,i){if(null==t)throw new Error("data is not defined");if(i<0||i>4)throw new Error("bytes per vertex is not in the proper range");if(t.length/i<2)throw new Error("At least the data for two vertex should be passed");if(!(void 0!==e)&&t.length%i!=0)throw new Error("data length must be divisible by # of components")},_generateDataForNoStripCase:function(e,t,n,r,a,s,l){var c,d,u,h,p=e.length/t,f=2*Math.floor(p/2)*l+2,g=f*t,m=o.createFloat32Array(g),_=1*t,v=r>0,b=s>0;v&&(c=o.createFloat32Array(f*r),d=0),b&&(u=o.createFloat32Array(f*s),h=0);for(var y=o.createFloat32Array(f),C=0,T=0;T<p-1;T+=2)for(var E=T*t,S=(T+1)*t,w=T*r,I=(T+1)*r,A=T*s,x=(T+1)*s,N=0;N<l;N++)_=i.copyVertex(e,E,m,_,t,1),_=i.copyVertex(e,S,m,_,t,1),v&&(d=i.copyVertex(n,w,c,d,r,1),d=i.copyVertex(n,I,c,d,r,1)),b&&(h=i.copyVertex(a,A,u,h,s,1),h=i.copyVertex(a,x,u,h,s,1)),0===N?(y[C++]=1,y[C++]=2):1===N?(y[C++]=-1,y[C++]=2):2===N&&(y[C++]=-1,y[C++]=-2);var L={};return L.vertexData=m,L.colorData=c,L.normalsData=u,L.directionRequiredToExtrudeInShader=y,L},shouldRunPerformantVersion:function(e){return this.enableWideLineV2Shader&&e.stripData&&e.lineStyle===n.LineStyle.solid&&e.colorBinding===n.Binding.object&&e.lineJoin===n.LineJoin.round&&e.lineWidth>1&&e.lineWidth<50&&!e.isLineLoop},expandDataV2:function(e,t,n){if(this._VertexDataErrorChecking(e,t,n),void 0!==e&&e.length>0){for(var r=e.length-1,a=2*this._getNumStripsWithMinimumVertices(e,2)[1]+4,s=a*n,l=o.createFloat32Array(s),c=2*n,d=o.createFloat32Array(a),u=o.createFloat32Array(a),h=0,p=0,f=[],g=0;g<r;++g){var m=0,_=e[g]-1,v=e[g+1]-1-_;if(!(v<2)){for(var b=0,y=0;y<v;++y){var C=(_+y)*n;if(0!==y){var T=C-3;if(Math.abs(t[T]-t[C])<1e-7&&Math.abs(t[T+1]-t[C+1])<1e-7&&Math.abs(t[T+2]-t[C+2])<1e-7){b++;continue}}c=i.copyVertex(t,C,l,c,n,2),0===y?(d[h++]=1,d[h++]=-1):y===v-1?(d[h++]=3,d[h++]=-3):(d[h++]=4,d[h++]=-4),u[p++]=m++,u[p++]=m++}f.push(2*(v-b))}}i.copyVertex(l,3*n,l,0,n,2),i.copyVertex(l,l.length-3*n,l,l.length-2*n,n,2);var E={};return E.vertexData=l,E.directionRequiredToExtrudeInShader=d,E.vertexIndices=u,E.numStripVertices=f,E}},expandData:function(e,t,n,r,a,s,l,c,d){if(this._VertexDataErrorChecking(e,t,n),!(void 0!==e&&e.length>0))return this._generateDataForNoStripCase(t,n,r,a,s,l,c);var u,h,p,f,g=a>0,m=l>0,_=e.length-1,v=this._getNumStripsWithMinimumVertices(e,2),b=v[0],y=v[1],C=!0===d?y+b:y,T=(C+(C-2*b))*c+2,E=T*n,S=o.createFloat32Array(E),w=1*n;g&&(u=o.createFloat32Array(T*a),h=0),m&&(p=o.createFloat32Array(T*l),f=0);for(var I=o.createFloat32Array(T),A=0,x=[],N=0;N<_;++N){var L=e[N]-1,D=e[N+1]-1-L;if(!(D<2)){for(var M=0;M<D;++M){var P=(L+M)*n,O=(L+M+1)*n,R=(L+M)*a,k=(L+M+1)*a,F=(L+M)*l,B=(L+M+1)*l;if(M===D-1&&(!0===d?(O=L*n,k=L*a,B=L*l):O=-1),O>=0){var H=1;for(let e=0;e<c;e++)w=i.copyVertex(t,P,S,w,n,H),w=i.copyVertex(t,O,S,w,n,H),g&&(h=i.copyVertex(r,R,u,h,a,H),h=i.copyVertex(r,k,u,h,a,H)),m&&(f=i.copyVertex(s,F,p,f,l,H),f=i.copyVertex(s,B,p,f,l,H)),0===e?(I[A++]=1,I[A++]=2):1===e?(I[A++]=0,I[A++]=0):2===e&&(I[A++]=-1,I[A++]=-2)}}x.push(D*H)}}var V={};return V.vertexData=S,V.colorData=u,V.normalsData=p,V.directionRequiredToExtrudeInShader=I,V.numStripVertices=x,V},_getNextUnitVector:function(t,i,n,o,r,a,s){if(0===n)throw new Error("increment must be nonzero");if(Math.abs(n)>a-r)throw new Error("increment is larger than difference between endInd and stInd");var l=new e(t[3*i],t[3*i+1],t[3*i+2]);function c(e){var t=e+n;return!0===o&&(t<r?t=t-r+a:t>=a&&(t=t-a+r)),t}for(var d=new e(0,0,0),u=c(i);0===d.length()&&(o?u!==i:u>r-1&&u<a);){var h=new e(t[3*u],t[3*u+1],t[3*u+2]);if(d=n<0?new e(l.getX()-h.getX(),l.getY()-h.getY(),l.getZ()-h.getZ()):new e(h.getX()-l.getX(),h.getY()-l.getY(),h.getZ()-l.getZ()),!1===s)break;u=c(u)}return d.normalize()},_calculateNumberOfJoins:function(e,t){for(var i=e.length-1,n=0,o=0;o<i;++o)e[o+1]-e[o]<2||(n+=e[o+1]-e[o]-2,n+=t?2:0);return n},getWideLineJoinData:function(e,t){var i,r=e.stripData,a=e.vertexData,s=this.vertexCountPerJoin(e.lineJoin),l=e.isLineLoop,c=!1,d=0,u=t?3:0;e.colorType===n.ColorType.truecolor||e.colorType===n.ColorType.truecoloralpha?e.colorBinding!==n.Binding.object&&(c=!0,d=4,i=e.colorData):e.colorType===n.ColorType.colormapped&&(c=!0,d=1,i=e.colorData);var h=r.length-1,p=this._calculateNumberOfJoins(r,l)*s,f=o.createFloat32Array(3*p),g=o.createFloat32Array(3*p),m=o.createFloat32Array(3*p),_=t?o.createFloat32Array(p*u):void 0,v=c?o.createFloat32Array(p*d):e.colorData,b=o.createFloat32Array(p),y=0,C=0,T=0,E=0,S=0,w=0,I=Math.max.apply(null,[3,u,d,1]);function A(e,n,o){for(var r=0;r<s;r++)for(var l=3*e,c=3*n,h=3*o,p=e*d,A=e*u,x=0;x<I;++x)x<3&&(f[y++]=a[l+x],g[C++]=a[c+x],m[T++]=a[h+x]),x<u&&(_[w++]=t[A+x]),x<d&&(v[S++]=i[p+x]),x<1&&(b[E++]=r)}for(var x=0;x<h;x++){for(var N=r[x];N<r[x+1]-2;N++)A(N,N+1,N-1);!0===l&&(A(r[x+1]-2,r[x]-1,r[x+1]-3),A(r[x]-1,r[x],r[x+1]-2))}var L={};return L.numVerticesPerJoin=s,L.joinsVertexData=f,L.nextVertexData=g,L.prevVertexData=m,L.vertexIndexData=b,L.colorData=v,L.normalsData=_,L},addWideLineStripJoinsPerVertexColorData:function(e,t,i,n,r,a){var s=e.length-1,l=this._calculateNumberOfJoins(e,a)*n*r,c=o.createFloat32Array(l),d=0;function u(e){for(var i=0;i<n;i++)for(var o=e*r,a=0;a<r;a++)c[d++]=t[o+a]}for(var h=0;h<s;h++)for(var p=e[h];p<e[h+1]-2;p++)u(p),!0===a&&(u(e[h+1]-2),u(e[h]-1));return c},addLineJoinsStippleCoords:function(e,n,r,a,s){var l=o.createFloat32Array(e),c=r.length-1;for(let e=0;e<c;e++){var d=r[e]-1,u=r[e+1]-2,h=d,p=new t(n[3*h],n[3*h+1],n[3*h+2],1),f=i.convertPointToScreenSpace(p,s),g=0;for(let e=d+1;e<=u;e++){let o=new t(n[3*e],n[3*e+1],n[3*e+2],1);var m=i.convertPointToScreenSpace(o,s),_=m[0]-f[0],v=m[1]-f[1];g+=Math.sqrt(_*_+v*v);for(let t=(e-1)*a;t<e*a;t++)l[t]=g;f=m}}return l},vertexCountPerJoin:function(e){return e===n.LineJoin.chamfer?3:e===n.LineJoin.miter?4:e===n.LineJoin.round?8:0},addWideLineCapsVertexData:function(e,t,i){for(var n=e.length-1,r=2*i*n,a=o.createFloat32Array(3*r),s=0,l=0;l<n;++l)for(var c=0;c<2;c++)for(var d=c*(e[l+1]-e[l]-1)+e[l]-1,u=0;u<i;u++)a[s++]=t[3*d],a[s++]=t[3*d+1],a[s++]=t[3*d+2];return a},addWideLineCapsPerVertexColorData:function(e,t,i,n){for(var r=e.length-1,a=2*i*r,s=o.createFloat32Array(a*n),l=0,c=0;c<r;++c)for(var d=0;d<2;d++)for(var u=e[c+1]-e[c],h=t.length===n?0:d*(u-1)+e[c]-1,p=0;p<i;p++)for(var f=0;f<n;f++)s[l++]=t[n*h+f];return s},addWideLineCapsUnitVectorData:function(t,i,n){for(var r=t.length-1,a=2*n*r,s=o.createFloat32Array(3*a),l=o.createFloat32Array(a),c=0;c<r;++c){var d=t[c]-1,u=d+1,h=new e(i[3*d],i[3*d+1],i[3*d+2]),p=new e(i[3*u],i[3*u+1],i[3*u+2]),f=t[c+1]-2,g=f-1,m=new e(i[3*f],i[3*f+1],i[3*f+2]),_=new e(i[3*g],i[3*g+1],i[3*g+2]),v=new e(p.getX()-h.getX(),p.getY()-h.getY(),p.getZ()-h.getZ()),b=v.length();v.scalarMult(1/b);var y=new e(_.getX()-m.getX(),_.getY()-m.getY(),_.getZ()-m.getZ()),C=y.length();y.scalarMult(1/C);for(var T=0;T<n;T++)s[3*c*2*n+3*n*0+3*T]=h.getX()+v.getX(),s[3*c*2*n+3*n*0+3*T+1]=h.getY()+v.getY(),s[3*c*2*n+3*n*0+3*T+2]=h.getZ()+v.getZ(),l[2*c*n+0*n+T]=T,s[3*c*2*n+3*n*1+3*T]=m.getX()+y.getX(),s[3*c*2*n+3*n*1+3*T+1]=m.getY()+y.getY(),s[3*c*2*n+3*n*1+3*T+2]=m.getZ()+y.getZ(),l[2*c*n+1*n+T]=T}return[l,s]},addLineCapsStippleCoords:function(e,n,r,a){void 0===e&&(e=[1,3]);for(var s=e.length-1,l=2*r,c=o.createFloat32Array(l*s),d=0;d<s;d++){for(var u=6*(e[d]-1-d),h=6*(e[d+1]-2)-3*(2*d+1),p=new t(n[3*u],n[3*u+1],n[3*u+2],1),f=i.convertPointToScreenSpace(p,a),g=0,m=u+3;m<=h;m+=6){var _=new t(n[3*m],n[3*m+1],n[3*m+2],1),v=i.convertPointToScreenSpace(_,a),b=v[0]-f[0],y=v[1]-f[1];g+=Math.sqrt(b*b+y*y),f=v}for(var C=d*l,T=C+l,E=C;E<T;E++)c[E]=Math.floor(E/(r+d*l))*g}return c},vertexCountPerCap:function(e){return e===n.LineCap.square?6:e===n.LineCap.round?10:0}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211)],o=i.dj.d(n,(function(e){return{PostProcessingEffect:function(){return this.hasOwnProperty("postprocessingeffect")?this.postprocessingeffect:"none"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2196),i(631),i(1519),i(325),i(1522),i(329),i(406)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("graphics.MWSG.Webgl10Strategy",[],{constructor:function(e){this._renderer=e,this.shaderOptions=new t,this._pipelineCmds=new r},createDepthTexture:function(e,t,i){e.texImage2D(e.TEXTURE_2D,0,e.DEPTH_COMPONENT,t,i,0,e.DEPTH_COMPONENT,e.UNSIGNED_INT,null)},_makePickCacheIfNeeded:function(e,t,i,o,r){let a;if(this._renderer.needsPickCache(e)){a={},a.shader=r.shader;var s=[];r.pipeline.forEach((function(e,t){s.push(e)})),a.pipeline=s,e.faceColor=[255,255,255,255];var l=n.makeShape(t,e,this._renderer.getViewport(),n.computeMarkerLOD(this._renderer,e),!0,!0);a.primType=l.primType,a.numShapeVerts=l.nVerts,a.nVertices=r.nVertices,this._makeMarkerPipeline(e,t,l,i,o,!0,!0,a)}r.pickCache=a},_makeMarkerPipeline:function(e,t,o,r,l,c,d,u){var h=u.pipeline;u.dataStore={};let p=function(e,t,i,o){let r=n.makeShape(e,o,this._renderer.getViewport(),n.computeMarkerLOD(this._renderer,o),c,d);t.dataStore.faceColorIndicatorData=s.createFloat32Array(r.faceColorIndicatorData),t.dataStore.coord2DData=r.coord2DData,t.dataStore.coord2DOffsetData=s.createFloat32Array(r.coord2DOffsetData),t.dataStore.numShapeVerts=r.nVerts,t.dataStore.primType=r.primType}.bind(this),f=this._pipelineCmds.CustomCmd(p,e);h.push(f),h.push(this._pipelineCmds.DynamicVertAttribData(u.shader,i.FaceColorIndicator.id,1,t.FLOAT,"faceColorIndicatorData")),h.push(this._pipelineCmds.DynamicVertAttribData(u.shader,i.Coord2D.id,2,t.FLOAT,"coord2DData")),h.push(this._pipelineCmds.DynamicVertAttribData(u.shader,i.Coord2DOffset.id,2,t.FLOAT,"coord2DOffsetData")),u.lineWidth=e.lineWidth,u.style=e.style;var g=1,m=1,_=[],v=[];d&&(g=(_=a.convertUint8ColorsToFloat(e.faceColor)).length/4),c&&(m=(v=a.convertUint8ColorsToFloat(e.edgeColor)).length/4),h.push(this._pipelineCmds.DrawMarkers(u.shader,u.nVertices,i.Anchor.id,r,i.Scale.id,l,d,i.FaceColor.id,_,g,c,i.EdgeColor.id,v,m))},getMarkerShaderConfig:function(e,t,i,n){return n.getScreenSpaceMarkerUniformColorShader(t,!1,!0,i,e)},makeMarkerDrawCache:function(e,t,i,n,r,l,c,d){var u=new Array(d.nVertices);for(let t=0;t<d.nVertices;t+=1){var h={},p=3*t,f=e.vertexData;h.vertexData=f.slice(p,p+3),u[t]=h}var g=new Array(d.nVertices);if(e.sizeBinding===o.Binding.primitive)for(let t=0;t<d.nVertices;t++)g[t]=a.convertPoints2DevicePixels(this._renderer,e.size[t]);else{var m=a.convertPoints2DevicePixels(this._renderer,e.size[0]);for(let e=0;e<d.nVertices;e++)g[e]=m}var _=s.createFloat32Array(g);this._makePickCacheIfNeeded(e,n,u,_,d),this._makeMarkerPipeline(e,n,r,u,_,c,l,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6013),i(6014),i(6015),i(6016),i(6017),i(6018),i(6019),i(6020),i(6021),i(6022),i(6023),i(6024),i(6025),i(6026),i(2197),i(6027),i(6028),i(6029),i(6030),i(6031),i(6032),i(6033),i(1521),i(6034),i(6035),i(6036),i(6037),i(6038),i(6039),i(968),i(6040),i(6041)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M){return e("graphics.MWSG.shader.WebGL10ShaderOpts",[L],{constructor:function(){this.providerOpts={},this.providerOpts[this.Ids.clip]=new l,this.providerOpts[this.Ids.polarClip]=new c,this.providerOpts[this.Ids.fragCoordForClip]=new t,this.providerOpts[this.Ids.clipPos]=new i,this.providerOpts[this.Ids.clipPosModelSpace]=new n,this.providerOpts[this.Ids.pos]=new o,this.providerOpts[this.Ids.widelinesPos]=new r,this.providerOpts[this.Ids.widelinesPosV2]=new a,this.providerOpts[this.Ids.widelinesClipPosV2]=new s,this.providerOpts[this.Ids.stipple]=new d,this.providerOpts[this.Ids.texture1d]=new u,this.providerOpts[this.Ids.texture2d]=new h,this.providerOpts[this.Ids.depthtexture2d]=new p,this.providerOpts[this.Ids.vertexColorsOpaque]=new f(!0),this.providerOpts[this.Ids.vertexColorsAlpha]=new f(!1),this.providerOpts[this.Ids.markerColorsOpaque]=new m(!0),this.providerOpts[this.Ids.markerColorsAlpha]=new m(!1),this.providerOpts[this.Ids.anchorptPos]=new _(!1),this.providerOpts[this.Ids.anchorptPosAVC]=new _(!0),this.providerOpts[this.Ids.anchorptPosAVC]=new _(!0),this.providerOpts[this.Ids.anchorpt_3DBoxClip]=new v,this.providerOpts[this.Ids.anchorpt_ScissorClip]=new b,this.providerOpts[this.Ids.anchorpt_PolarClip]=new y,this.providerOpts[this.Ids.constColorOpaque]=new C(!0),this.providerOpts[this.Ids.constColorAlpha]=new C(!1),this.providerOpts[this.Ids.imagePos]=new T,this.providerOpts[this.Ids.avc]=new E(!0),this.providerOpts[this.Ids.linejoinsPos]=new S,this.providerOpts[this.Ids.linecapsPos]=new w,this.providerOpts[this.Ids.pick]=new I,this.providerOpts[this.Ids.renderScreenSpaceDepth]=new A,this.providerOpts[this.Ids.discardFragUsingOneDepthTexture]=new x,this.providerOpts[this.Ids.discardFragUsingTwoDepthTexture]=new x(!0),this.providerOpts[this.Ids.lighting_TwoSided]=new N(!0),this.providerOpts[this.Ids.lighting_OneSided]=new N(!1),this.providerOpts[this.Ids.FXAA]=new D,this.providerOpts[this.Ids.AlphaMultiplier]=new M}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._name="MarkerVertexColorShaderSourceProvider",this._isOpaque=e},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE float a_FaceColorIndicator; \n ATTRIBUTE vec4 a_FaceColor; \n ATTRIBUTE vec4 a_EdgeColor; \n"},getVertexSourceVaryingDeclarationBlock:function(){return" VARYING vec4 v_Color; \n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return this._isOpaque?" if(a_FaceColorIndicator == 1.0) { // If face color is to be used \n v_Color = vec4(a_FaceColor[0], a_FaceColor[1], a_FaceColor[2], 1.0); \n } else { // if edge color is to be used \n v_Color = vec4(a_EdgeColor[0], a_EdgeColor[1], a_EdgeColor[2], 1.0); \n } ":" if(a_FaceColorIndicator == 1.0) { // If face color is to be used \n v_Color = a_FaceColor; \n } else { // If edge color is to be used \n v_Color = a_EdgeColor; \n } "},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return" VARYING vec4 v_Color; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return" OUTCOLOR = v_Color; \n"},getUniformIDs:function(e){return[]},getAttributeIDs:function(e){return[e.FaceColorIndicator,e.FaceColor,e.EdgeColor]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{encodeFloatToColor:function(e){if(e<=0||e>=1)throw new Error("This function expects a float strictly in range of 0 & 1 (excluding 0.0 & 1.0) to encode float into rgba successfully");var t=16777216*e,i=65536*e,n=256*e,o=1*e;return t-=Math.floor(t),i-=Math.floor(i),n-=Math.floor(n),o-=Math.floor(o),o-=(n-=(i-=(t-=0*t)/256)/256)/256,t=256*t/255,i=256*i/255,n=256*n/255,o=256*o/255,[Math.floor(255*t),Math.floor(255*i),Math.floor(255*n),Math.floor(255*o)]},encodeFloatToColorGLSL:function(){return"vec4 encodeDepth(float depth) {\n const vec4 bitShift = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0);\n const vec4 bitMask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0);\n vec4 rgbaDepth = fract(depth * bitShift);\n rgbaDepth -= rgbaDepth.xxyz * bitMask;\n return rgbaDepth;\n}\n"},decodeColorToFloat:function(e,t,i,n){var o=[e/256,t/256,i/256,n/256],r=[1/16777216,1/65536,1/256,1];return o[0]*r[0]+o[1]*r[1]+o[2]*r[2]+o[3]*r[3]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(457)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(){this.rangeMax=16777215},getColorForIndex:function(e){if(e>0)return[e>>16&255,e>>8&255,255&e];throw new Error("Color Index must be greater than 0, 0 is considered as invalid index")},getIndexForColor:function(e,t,i){var n=-1;return(e>0||t>0||i>0)&&(n=65536*e+256*t+i),n},getMaxAndPixelIndexFromColorArray:function(e){for(var t=-1,i=-1,n=0;n<e.length;n+=4){var o=e[n],r=e[n+1],a=e[n+2],s=this.getIndexForColor(o,r,a);s>t&&(t=s,i=n)}return{hitIndex:t,pickedPixelIndex:i}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("graphics.MWSG.Webgl10ShaderHeaderStrategy",[],{constructor:function(){},getVertexShaderHeader:function(){return"#define VARYING varying \n#define CENTROID \n#define ATTRIBUTE attribute \n"},getFragmentShaderHeader:function(){return"#ifdef GL_ES \n precision highp float; \n#endif \n#define CENTROID \n#define OUTCOLOR gl_FragColor \n#define VARYING varying \n"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){},disable:function(){},reset:function(){},accept:function(){},setVertexData:function(){},getOriginalVertexData:function(){},getOriginalStringData:function(){},setStringData:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(2203)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e){this.modifier=0},install:function(e){this.inherited(arguments),this.target=null,this._MouseDownHandler=t(e.domNode,"mousedown",this._handleMouseDown.bind(this)),this._MouseUpHandler=t(document,"mouseup",this._handleMouseUp.bind(this)),this._MouseMoveHandler=t(e.domNode,"mousemove",this._handleMouseMove.bind(this)),this._ContextMenuHandler=t(e.domNode,"contextmenu",this._handleContextMenu.bind(this))},uninstall:function(){this.inherited(arguments),this.lastClick=null,this.target=null,this.lastClickX=null,this.lastClickY=null,this.lastButton=null,this._MouseDownHandler.remove(),this._MouseDownHandler=null,this._MouseUpHandler.remove(),this._MouseUpHandler=null,this._MouseMoveHandler.remove(),this._MouseMoveHandler=null,this._ContextMenuHandler.remove(),this._ContextMenuHandler=null},doContextMenu:function(e){},doMouseDown:function(e){},doMouseUp:function(e){},doMouseMove:function(e){},_updateEvent:function(e){this.modifier=0;var t=2,i=1,n=4;this.modifier=e.shiftKey?this.modifier|t:this.modifier,this.modifier=e.ctrlKey?this.modifier|i:this.modifier,this.modifier=e.altKey?this.modifier|n:this.modifier,e.doubleClick=e.detail>=2,e.modifier=this.modifier},_handleMouseDown:function(e){2===e.button?e.popupTrigger=!0:e.popupTrigger=!1,this.target=e.target,this._updateEvent(e),this.doMouseDown(e)},_handleMouseUp:function(e){this.target===this._View.getTargetNode()&&(e.modifier=this.modifier,this.doMouseUp(e)),this.target=null},_handleMouseMove:function(e){e.modifier=this.modifier,this.doMouseMove(e)},_handleContextMenu:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{_View:null,constructor:function(e){},install:function(e){if(void 0===e)throw new Error("Controller installation requires a view");this._View=e},uninstall:function(){this._View=null},getView:function(){return this._View}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(204),i(214),i(209),i(6086),i(6087)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a;(a=e([],{logLifeCycle:!1,constructor:function(){this._streams={},this._nextStreamId=-1},createStream:function(e,t,i){if(!this._hasStream(e)){this.logLifeCycle&&n.info("Creating new stream: "+e),this._nextStreamId+=2;var r=i||this._createDelegate(e),s=new o.Impl(e,this._nextStreamId,this,r,t);if(a.enableCefBinaryStream&&window.cefclient&&window.cefclient.createChannel)s=new o.CefImpl(e,this,s);this._streams[e]=s}return this._streams[e]},_hasStream:function(e){return this._streams.hasOwnProperty(e)},_removeStream:function(e){return!!this._hasStream(e)&&(this.logLifeCycle&&n.info("Removing stream: "+e),delete this._streams[e],!0)},_createDelegate:function(e){return new r(e,this._nextStreamId)}})).enableCefBinaryStream=!0,location.search.indexOf("cefbinarystream=off")>=0&&(a.enableCefBinaryStream=!1);var s=new a;return{factory:s,createStream:t.hitch(s,"createStream")}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(244),i(554),i(735),i(6092),i(6096),i(6097),i(6100),i(2206),i(2207),i(6103)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([n],{constructor:function(e){this._controls={},this._unfullFilledRequestPromises={},this._gview=e,this._defineEvent("request"),this._layoutableChildren=new u},getLayoutableObject:function(){return this._layoutableChildren},handleMessage:function(e){if(void 0!==e.cmd){let t;switch(e.cmd){case"response":let i=e.requestToken,n=this._unfullFilledRequestPromises[i];void 0!==n&&(delete this._unfullFilledRequestPromises[i],n.resolve(e));break;case"registration":let o=e.type;t=e.peerID;let r=e.layoutable;this._controls[t]=this._createControl(o,t,r),this._controls[t].setRequestHandlerCallback(this._requestCallback.bind(this)),this._addLayoutableChild(t),this._executePostCreateOps(t);break;case"targetsChanged":t=e.peerID,this._controls[t]&&this._targetsChangedResponse(t);break;case"linkControls":let a=e.controls,s=e.constrain;for(let t=0;t<a.length;t++)this._controls[a[t]]&&"axes"===e.type&&this._setLinkedControls(this._controls[a[t]],a,s);break;case"modelSidePositionChanged":t=e.peerID,this._controls[t]&&this._controls[t].positionHasChanged();break;case"modelSideLayoutChanged":t=e.peerID,this._controls[t]&&this._controls[t].layoutHasChanged();break;case"modelSideTextEditingChanged":t=e.peerID,this._controls[t]&&("on"===e.value?this._controls[t].executeTextEditing():"off"===e.value&&this._controls[t].cleanUp());break;case"removal":t=e.peerID,this._controls[t]&&(this._removeLayoutableChild(t),this._removeControl(t));break;case"process":t=e.peerID,this._controls[t]&&this._controls[t].processMessage(e);break;case"requestTestMessage":this._requestCallback({name:"testRequest",data:73});break;case"testResponse":73===e.data&&this.emitEvent("request",{name:"testRequestDone"})}}},_setLinkedControls:function(e,t,i){let n=[];for(let i=0;i<t.length;i++){let o=t[i];e._axesPeerID!==o&&n.push(this._controls[o])}e.setLinkedControl(n,i)},_addLayoutableChild:function(e){void 0!==this._controls[e].isLayoutable&&this._controls[e].isLayoutable()&&this._layoutableChildren.addChild(this._controls[e])},_removeLayoutableChild:function(e){void 0!==this._controls[e].isLayoutable&&this._controls[e].isLayoutable()&&this._layoutableChildren.removeChild(this._controls[e])},_executePostCreateOps:function(e){this._controls[e].postCreate()},_removeControl:function(e){this._controls[e].cleanUp(),delete this._controls[e]},_targetsChangedResponse:function(e){this._controls[e].clearCache()},_createControl:function(e,t,i){var n=new o(t,this._gview);switch(e){case"axes":n=new r(t,this._gview,i);break;case"layoutable":n=new d(t,this._gview,i);break;case"gridlayoutable":n=new c(t,this._gview,i);break;case"text":n=new a(t,this._gview);break;case"DataTipHoverMarker":n=new s(t,this._gview);break;case"AxesToolbar":n=new l(t,this._gview)}return n},_nextRequestTokenID:function(){return void 0===this._nextRequestTokenID.id?this._nextRequestTokenID.id=0:this._nextRequestTokenID.id++,this._nextRequestTokenID.id},_requestCallback:function(e){var i=this._nextRequestTokenID(),n=new t;return this._unfullFilledRequestPromises[i]=n,e.requestToken=i,this.emitEvent("request",e),n},findControl:function(e){var t=e;return void 0===this._controls[t]?null:this._controls[t]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(2207),i(2208),i(6093),i(295)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i,o,r],{constructor:function(e,t,i){this._requestHandler=null,this._peerID=e,this._gview=t,this._layoutable=i,this._gridController=null,this._cachedOuterPositionInGrid=null},setRequestHandlerCallback:function(e){this.inherited(arguments),this._requestHandler=e},getLayoutDeferred:function(){var e={name:"getLayoutConstraints",peerID:this._peerID},i=this._requestHandler(e),n=new t;return i.then(function(e){var t=e.data.Layout;this._layoutCache=t,n.resolve(this._layoutCache),this.setLayoutConstraints(t)}.bind(this)),n},getAllDeferred:function(){var e=this.getPositionDeferred(),t=this.getLayoutDeferred();return e.concat(t)},layoutHasChanged:function(){void 0!==[this._layoutCache][0]&&this.getLayoutDeferred().then(function(e){this._layoutCache=e,this.setLayoutConstraints(e),null!==this._gridController&&this._gridController.handleLayoutPropertySet()}.bind(this))},getOuterPositionInPixels:function(){return null!==this._cachedOuterPositionInGrid?this._cachedOuterPositionInGrid:this.inherited(arguments)},cacheAndSetActivePositionInPixels:function(e,t){this._cachedOuterPositionInGrid=e.positionInGrid,this.setActivePositionInPixels(e.positionForServer,t)},_computeFitSize:function(){return[400,300]},setGridController:function(e){this._gridController=e},getGridWidget:function(){return this._gview.getParent()},getLayoutConstraints:function(){return this._layoutCache},getGridController:function(){return this._gridController},needsServerSideUpdate:function(){return!1},getTopLevelNode:function(){return document.createElement("div")},clearCache:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(212),i(554),i(244),i(735),i(2208),i(2185),i(298)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([t,n,r,s,l],{constructor:function(e,t,i){this._requestHandler=null,this._peerID=e,this._defineEvent("positionAltered"),this._defineEvent("activePositionChanged"),this._gview=t,this._layoutable=i,this._intervalID=null,this._viewDimensions=null},isLayoutable:function(){return this._layoutable},setRequestHandlerCallback:function(e){this.inherited(arguments),this._requestHandler=e},setOuterPositionInPixels:function(e){var t=a.convertFromZeroToOneOrigin(e);this._outerPositionCache=t;var i={name:"setOuterPosition",data:t,refFrameDim:this._viewDimensions,peerID:this._peerID};this._requestHandler(i)},setActivePositionInPixels:function(e,t){this._viewDimensions=t,this.setOuterPositionInPixels(e)},getOuterPositionInPixels:function(){var e=[0,0,0,0];return void 0!==this._outerPositionCache&&(e=a.convertFromOneToZeroOrigin(this._outerPositionCache)),e},getOuterPositionDeferred:function(){var e={name:"getOuterPosition",peerID:this._peerID},t=this._requestHandler(e),n=new i;return t.then(function(e){var t=this._outerPositionCache;this._outerPositionCache=e.data.OuterPosition,n.resolve({oldValue:t,newValue:this._outerPositionCache})}.bind(this)),n},getActivePositionInPixels:function(){return this.getOuterPositionInPixels()},getInnerPositionInPixels:function(){var e=[0,0,0,0];return void 0!==this._innerPositionCache&&(e=a.convertFromOneToZeroOrigin(this._innerPositionCache)),e},getInnerPositionDeferred:function(){var e={name:"getInnerPosition",peerID:this._peerID},t=this._requestHandler(e),n=new i;return t.then(function(e){var t=this._innerPositionCache;this._innerPositionCache=e.data.InnerPosition,n.resolve({oldValue:t,newValue:this._innerPositionCache})}.bind(this)),n},getPositionDeferred:function(){return[this.getOuterPositionDeferred(),this.getInnerPositionDeferred()]},getAllDeferred:function(){return this.getPositionDeferred()},setPositionChangedCallback:function(e){this.onEvent("positionAltered",e)},attachModelSidePositionChangeListener:function(){this.setPositionChangedCallback(function(e){this.emit("modelSidePositionChanged",e)}.bind(this))},positionHasChanged:function(){var e=[this._outerPositionCache,this._innerPositionCache];if(void 0!==e[0]&&void 0!==e[1]){var t=this.getPositionDeferred();o(t).then(function(e){var t={oldValues:{OuterPosition:e[0].oldValue,InnerPosition:e[1].oldValue},newValues:{OuterPosition:e[0].newValue,InnerPosition:e[1].newValue}};this.emitEvent("positionAltered",t)}.bind(this))}},clearCache:function(){this.inherited(arguments)},getNeighborMarginTolerance:function(){return this.TOLERANCE_FOR_CHARTS},getId:function(){return this._peerID},getPeerNode:function(){},_computeMinimumSize:function(){return[200,200]},validate:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{comparePositionValues:function(e,t){for(var i=!1,n=0;n<4;n++)if(Math.abs(e[n]-t[n])>.01)return i=!0;return i},convertFromOneToZeroOrigin:function(e){return[e[0]-1,e[1]-1,e[2],e[3]]},convertFromZeroToOneOrigin:function(e){return[e[0]+1,e[1]+1,e[2],e[3]]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(203),i(212)],o=i.dj.d(n,(function(e,t,i){return{setTimeoutCallback:function(e,t){void 0===this.setLimitsTimeoutID&&(this.setLimitsTimeoutID=null),void 0!==e.uiTest&&!0===e.uiTest?t():(window.clearTimeout(this.setLimitsTimeoutID),this.setLimitsTimeoutID=window.setTimeout((function(){t()}),200))},getBoundingRectangles:function(e){var t={},i=e._controlManager._controls;if(i)for(var n in i)"function"==typeof i[n].getBoundingRectangle&&(t[n]=i[n].getBoundingRectangle());return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e,t){this._obj=e,this._registeredEvents={},this.registerEvents(t)},reset:function(){this._registeredEvents={}},registerEvents:function(e){"string"==typeof e&&(e=[e]),e.forEach((function(e){this._registeredEvents[e]||(this._registeredEvents[e]={IsBusy:!1,PendingEvent:null})}),this)},getRegisteredEvents:function(){return Object.keys(this._registeredEvents)},coalesceEvent:function(e,t){if(!this._registeredEvents[t])return this.getRegisteredEvents().forEach((function(e){this._registeredEvents[e].IsBusy=!1,null!==this._registeredEvents[e].PendingEvent&&this._dispatchPendingEvent(e)}),this),void this._obj.dispatchEvent(e);this._registeredEvents[t].IsBusy?this._storeEvent(e,t):(this._registeredEvents[t].IsBusy=!0,this._obj.dispatchEvent(e))},_storeEvent:function(e,t){this._registeredEvents[t].PendingEvent=null,this._registeredEvents[t].PendingEvent=e},flushEvent:function(e){e&&this._registeredEvents[e]&&(null===this._registeredEvents[e].PendingEvent?this._registeredEvents[e].IsBusy=!1:this._dispatchPendingEvent(e))},_dispatchPendingEvent:function(e){var t=this._registeredEvents[e].PendingEvent;this._registeredEvents[e].PendingEvent=null,this._obj.dispatchEvent(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1493)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){},_positionView:function(e){e&&(void 0===this.strategy||this.strategy.allowPositionSetFromServer?(this.widget.set("x",e[0]),this.widget.set("y",e[1])):(this.widget.set("x",""),this.widget.set("y","")),this._resizeView([e[2],e[3]]))},_Size:function(){},_Location:function(){},_OuterSize:function(){},_OuterLocation:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){},getUpdatedWindowBounds:function(e){return{x:1,y:1,width:e[2],height:e[3]}},getHeightWithToolsBar:function(e,t){return e+t},getPositionWithToolBar:function(e,t,i){var n=this.getHeightWithToolsBar(e.height,i);return[e.x,e.y,e.width,n]},getPositionWithoutToolBar:function(e,t){return[e.x,e.y,e.width,e.height]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{setPropertyValueFromClient:function(e,t){throw new Error("setPropertyValueFromClient() unimplemented function")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{parseFilterValue:function(e){for(var t=[],i=0;i<e.length;i++){var n=e[i];if("*.*"===n||"*"===n)t[i]=["*.*"];else{var o=n;-1!==n.indexOf(";")?(o=n.split(";")).forEach((function(e,t,i){""===e||"*.*"===e?i.splice(t,1):i[t]="."+e.split(".").pop().toLowerCase()})):o="."+n.split(".").pop().toLowerCase(),t[i]="string"!=typeof o?o:[o]}}return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6163),i(6164),i(6166)],o=i.dj.d(n,(function(e,t,i){return{createMessageWidget:function(e,t){var i=new(this._getInterpreterWidget(t))(t);return i.setMessage(e),i},createMessageWidgetAsync:async function(e,t){var i=new(this._getInterpreterWidget(t))(t);return await i.setMessage(e),i},_getInterpreterWidget:function(n){let o;switch(n){case"latex":case"tex":o=t;break;case"html":o=e;break;default:o=i}return o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(441),i(1148),i(287),i(1500),i(2217),i(687),i(284),i(2218)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([a,i,n],{constructor:function(){this._UnitsService=new s,this.own(t(this,"compViewSizeChanged",this._onComponentViewSizeChanged.bind(this)))},createView:function(e){if(this.peernode.isInDesignTime){var t=r.adjustPositionMethodForScaling();this.inherited(arguments),t()}else this.inherited(arguments);this._addDisabledFocusListener()},_Enable:function(e){var t=l.toJSBoolean(e);this.widget.set("disabled",!t)},_addDisabledFocusListener:function(){this._focusListener=this.widget._handleFocus.bind(this.widget),this.widget.containerNode.addEventListener("focus",this._focusListener,!0)},_removeDisabledFocusListener:function(){this.widget.containerNode.removeEventListener("focus",this._focusListener,!0)},validateMouseEventTarget:function(e){return this.widget.get("disabled")?e===this.widget.disableNode||e===this.widget.domNode:e===this.widget.containerNode||e===this.widget.titleNode||e===this.widget.titleUnderlineNode||e===this.widget.domNode},_Title:function(e){Array.isArray(e)&&(e=e[0]),this.widget.set("title",e)},_TitlePosition:function(e){"lefttop"===e?this.widget.set("titlePosition","left"):"righttop"===e?this.widget.set("titlePosition","right"):"centertop"===e&&this.widget.set("titlePosition","center")},_getBorderVisibleBasedOnSize:function(e,t){return!(e<=2*this.widget.getBorderWidth()||t<=2*this.widget.getBorderWidth())},_BorderVisibility:function(e){if(e){var t=this.getPositionInPixels();e=this._getBorderVisibleBasedOnSize(t[2],t[3])}this.widget.set("isBorderVisible",e)},_updateBorderVisibility:function(e){var t=this._getBorderVisibleBasedOnSize(e[0],e[1]);t&&(t=this.peernode.getProperty("BorderVisibility")),this.widget.set("isBorderVisible",t)},_resizeView:function(e){this._updateBorderVisibility(e),this.inherited(arguments)},_computeFitSize:function(){var e=this.computeContentFitSize(),t=this.getPeerNode().getProperty("Title");if(Array.isArray(t)&&(t=t[0]),""!==t){var i=o.getWidgetFontStyleMap(this.getPeerNode()),n=o.getTextPosition(t,i);e[0]=Math.max(n.w,e[0]),e[1]+=n.h+this.widget.getUnderlineThickness();var r=this.widget.getTitleNodePaddingSize();e[0]+=r[0],e[1]+=r[1]}return this.getPeerNode().getProperty("BorderVisibility")&&(e[0]+=2*this.widget.getBorderWidth(),e[1]+=2*this.widget.getBorderWidth()),e},_editPropertiesAffectingFitSize:function(e){return e.concat(["Title","BorderVisibility"])},_getContextMenuTargets:function(){return[this.widget.containerNode,this.widget.titleNode,this.widget.disableNode]},destroy:function(){this._removeDisabledFocusListener(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(230),i(480),i(440),i(962),i(1170),i(737),i(482),i(404),i(592),i(298),i(295),i(840),i(481),i(687),i(2218)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([o,n,i,r,a,s,l,c,d,u,h,p,f],{constructor:function(){this._UnitsService=new g},createView:function(e){this.inherited(arguments),this.widget=new m({dataTag:this.getPeerNodeId(),isBorderVisible:!1,title:""}),e.parentDijit?e.parentDijit.addChild(this.widget):t.place(this.widget.domNode,e.parentDomNode),this.widget.startup(),this.attachInsetsChangedEventListener(),this.startEmittingCommonResizeEvent(),this._setProperties(this.getPeerNode().getProperties()),this.widget._updateInsetsAndInnerSize(),this.addMouseEventListeners(this.widget.domNode),this.emit("viewReady")},destroy:function(){this.stopEmittingCommonResizeEvent(),this.inherited(arguments)},handleViewInDom:function(){this.inherited(arguments),this.widget._updateInsetsAndInnerSize()},_getInnerPositionInPixels:function(){var e=this.widget._getInsets(),t=this._getOuterPositionInPixels();return this.getInnerFromOuter(t,e)},_setInnerPositionInPixels:function(e){var t=this.widget._getInsets(),i=this.getOuterFromInner(e,t);this.setPositionInPixels(i)},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){return this.computeContentFitSize()},_getContextMenuTargets:function(){return[this.widget.containerNode]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(217),i(213),i(204),i(963),i(215),i(272),i(216),i(442),i(6176),i(343),i(1530),i(358),i(374),i(289),i(970),i(6177)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e([r,a,l,s,c,d,u,h,p,f,g,m],{baseClass:"gbtWidget gbtPanel",templateString:_,title:"Panel",titlePosition:"left",width:260,height:221,innerWidth:260,innerHeight:221,_sideMargin:1,_topMargin:1,_insetsChanged:!1,isBorderVisible:!0,preferredSize:{},constructor:function(e){this.dataTag=e.dataTag,this.peerNode=e.peerNode},postCreate:function(){this.inherited(arguments),this._updateInsetsAndInnerSize(),this.own(this.watch("title",o.hitch(this,this._updateInsetsAndInnerSize)),this.watch("width",o.hitch(this,this._updateInnerSize)),this.watch("height",o.hitch(this,this._updateInnerSize)),this.watch("isBorderVisible",o.hitch(this,this._updateInsetsAndInnerSize)),this.watch("fontSize",o.hitch(this,this._updateInsetsAndInnerSize)),this.watch("fontWeight",o.hitch(this,this._updateInsetsAndInnerSize)),this.watch("fontFamily",o.hitch(this,this._updateInsetsAndInnerSize)),this.watch("fontStyle",o.hitch(this,this._updateInsetsAndInnerSize)))},_updateInnerSize:function(){this._setContainerNodeWidth(this.width),this._setContainerNodeHeight(this.height)},_updateInsets:function(){var e=this._topMargin,t=this._sideMargin;if(this.get("isBorderVisible")?(this._sideMargin=1,this._topMargin=1):(this._sideMargin=0,this._topMargin=0),this.get("title").length>0){var n=i.position(this.titleAreaNode);this._topMargin=this._topMargin+n.h+1}else this._topMargin=this._sideMargin;t===this._sideMargin&&e===this._topMargin||(this._insetsChanged=!0)},_updateInsetsAndInnerSize:function(){this._updateInsets(),this._updateInnerSize(),this._notifyInsetsChanged()},_notifyInsetsChanged:function(){if(!1!==this._insetsChanged){var e=this._getInsets();this._insetsChanged=!1;var t={insets:e};this.emit("insetschangedevent",t)}},_getInsets:function(){return{left:this._sideMargin,right:this._sideMargin,top:this._topMargin,bottom:this._sideMargin}},_setIsBorderVisibleAttr:function(e){e?t.add(this.domNode,"gbtPanelBorder"):t.remove(this.domNode,"gbtPanelBorder"),this._set("isBorderVisible",e)},_setTitlePositionAttr:function(e){n.set(this.titleNode,{"text-align":e}),this._set("titlePosition",e)},_setWidthAttr:function(e){e>0?this._setSize("width",e):(n.set(this.domNode,{width:"0px"}),this._set("width",0))},_setHeightAttr:function(e){e>0?this._setSize("height",e):(n.set(this.domNode,{height:"0px"}),this._set("height",0))},_setDisabledAttr:function(e){this._set("disabled",e),e?this.disableNode.classList.add("gbtPanelDisabled"):this.disableNode.classList.remove("gbtPanelDisabled")},_handleFocus:function(e){this.get("disabled")&&(this.disableFocusNode.focus(),e.stopPropagation())},getTooltipNode:function(){return this.panelWrapperNode},_setContainerNodeWidth:function(e){var t=e-2*this._sideMargin;t>0?(n.set(this.scrollableNode,{width:t+"px"}),this._set("innerWidth",t),this._setWidthAttr(e)):(n.set(this.scrollableNode,{width:"0px"}),n.set(this.domNode,{width:e+"px"}),this._set("innerWidth",0))},_setContainerNodeHeight:function(e){var t=e-(this._sideMargin+this._topMargin);t>0?(n.set(this.scrollableNode,{height:t+"px"}),this._set("innerHeight",t),this._setHeightAttr(e)):(n.set(this.scrollableNode,{height:"0px"}),n.set(this.domNode,{height:e+"px"}),this._set("innerHeight",0))},_getNodeToApplyFontProperties:function(){return this.titleNode},_formatNumber:function(e,t){return Number(e.toFixed(t||2))},getBorderWidth:function(){return 1},getUnderlineThickness:function(){return 1},getTitleNodePaddingSize:function(){return[6,4]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(360),i(316),i(307),i(216),i(238),i(210),i(213),i(257),i(223),i(206),i(227),i(204),i(331),i(450),i(442),i(2220),i(2221),i(289),i(259),i(1072)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){return e(y.validate([t,i,n,o,g,m,_,v,b,r]),{type:"MenuBarItem",baseClass:"mwWidget mwDropDownButton gbtMenuBarItem",templateString:C,foregroundcolor:"rgb(0, 0, 0)",constructor:function(e){if(!e||!e.dataTag)throw new Error("dataTag must be passed to the Figure constructor");this.dataTag=e.dataTag},postCreate:function(){this.inherited(arguments);var e=new f({});this._set("menu",e),l.set(this.dropDownNode,"display","none"),s.add(this.domNode,"gbtWidget"),s.add(this.get("menu").domNode,"gbtWidget");var t=this;this.own(u(this.domNode,c.enter,this._mouseEnter.bind(t)),u(this.domNode,c.leave,this._mouseLeave.bind(t)),u(this.menu.domNode,"keydown",this._keyDownMenu.bind(t)),u(this.focusNode,"blur",this._focusLost.bind(t)))},_getVisibilityDomClassName:function(){return"gbtHideMenu"},_focusLost:function(e){},openMenu:function(){this.inherited(arguments),this._mouseEnter(),s.add(this.buttonNode,"gbtMenuPressed"),this.emit("menuopened")},closeMenu:function(e){this.inherited(arguments),s.remove(this.buttonNode,"gbtMenuPressed")},toggleMenu:function(e){e=(e=e||this.menuNode).domNode||e,h.isDescendant(e,this.menuNode)&&(this.isMenuOpen()&&0===this.get("menu").getChildren().length||(this.isMenuOpen()?this.closeMenu(!0):this.openMenu()))},_onKeyDown:function(e){this.inherited(arguments),e.keyCode===d.RIGHT_ARROW?this._navigateRight():e.keyCode===d.LEFT_ARROW&&this._navigateLeft()},_keyDownMenu:function(e){e.keyCode===d.RIGHT_ARROW?this._getChildMenuOpenState(this.get("menu").getChildren())||this._navigateRight():e.keyCode===d.LEFT_ARROW?this._getChildMenuOpenState(this.get("menu").getChildren())||this._navigateLeft():!0===this.isMenuOpen()&&this.scanMnemonics(e.keyCode)},_navigateRight:function(){for(var e=this.getNextSibling();e&&e.disabled;)e=e.getNextSibling();e&&!e.disabled&&(this.isMenuOpen()&&(this.closeMenu(!1),e.openMenu()),a.focus(e.focusNode))},_navigateLeft:function(){for(var e=this.getPreviousSibling();e&&e.disabled;)e=e.getPreviousSibling();e&&!e.disabled&&(this.isMenuOpen()&&(this.closeMenu(!1),e.openMenu()),a.focus(e.focusNode))},_getChildMenuOpenState:function(e){var t;for(t=0;t<e.length;t++)if(s.contains(e[t].domNode,"mwWidgetFocused")&&"PopupMenuItem"===e[t].type)return!0;return!1},_mouseEnter:function(e){for(var t=this,i=!1;t.getPreviousSibling();)t=t.getPreviousSibling(),!this.disabled&&t.isMenuOpen()&&(i=!0,t.closeMenu(!1));for(t=this;t.getNextSibling();)t=t.getNextSibling(),!this.disabled&&t.isMenuOpen()&&(i=!0,t.closeMenu(!1));i&&!this.disabled&&this.openMenu(),a.focus(this.focusNode)},_mouseLeave:function(e){!1===this.isMenuOpen()&&a.curNode.blur()},fireEvent:function(e){"CheckBoxMenuItem"===e.type?(e.emit("menuopened",{}),this.closeMenu()):e.focus()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(238),i(210)],o=i.dj.d(n,(function(e,t,i){return e(null,{getVisibilityStatus:function(e){var t=0;for(t=0;t<e.length;t++)if(e[t].get("visibility"))return!0;return!1},handleChildVisibility:function(e){0===e.length||!1===this.getVisibilityStatus(e)?(i.add(this.get("menu").domNode,"gbtHideMenu"),t.focus(this.focusNode)):i.remove(this.get("menu").domNode,"gbtHideMenu")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{scanMnemonics:function(e){var t=this.menu.getChildren(),i=0;for(i=0;i<t.length;i++){var n=t[i],o=n.value,r="";if(o.lastIndexOf("&")>-1)if(-1!==(r=this._findMnemonicKey(o)))if(String.fromCharCode(e)===r){this.fireEvent(n);break}}},_findMnemonicKey:function(e){var t,i=e.split("&");for(t=1;t<i.length;t++){var n=i[t].charAt(0);if(""!==n&&" "!==n&&"&"!==n)return n.toUpperCase()}return-1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(213),i(515),i(442),i(289),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a.validate([n,o,r]),{closeMenuOnClick:!0,type:"CheckBoxMenuItem",postCreate:function(){this.inherited(arguments),t.add(this.domNode,"gbtWidget")},_onClick:function(){this.emit("menuopened")},_setCheckedAttr:function(e){this.inherited(arguments),this.checkBox.set("checked",e),this.get("closeMenuOnClick")&&(e?(i.set(this.checkBox.focusNode.firstChild,"visibility","visible"),t.add(this.checkBox.domNode,"mwSpecialCheckBoxIcon"),t.remove(this.checkBox.domNode,"mwNoCheckBoxIcon")):(i.set(this.checkBox.focusNode.firstChild,"visibility","hidden"),t.add(this.checkBox.domNode,"mwNoCheckBoxIcon"),t.remove(this.checkBox.domNode,"mwSpecialCheckBoxIcon")))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(204),i(206),i(210),i(277),i(331),i(654),i(542),i(442),i(2220),i(2221),i(289),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(p.validate([s,c,d,u,h,l]),{type:"PopupMenuItem",postCreate:function(){this.inherited(arguments);var e=new a({});this._set("menu",e),o.add(this.get("menu").domNode,"gbtWidget"),t.set(this.focusNode,"padding-left","34px"),this.own(n(this.menu.domNode,"keydown",i.hitch(this,"_keyDownMenu")))},_getVisibilityDomClassName:function(){return"gbtHideMenu"},openMenu:function(){this.inherited(arguments),this.handleChildVisibility(this.get("menu").getChildren())},_onKeyDown:function(e){this.inherited(arguments),!0===this.isMenuOpen()&&this.scanMnemonics(e.keyCode)},_keyDownMenu:function(e){!0===this.isMenuOpen()&&this.scanMnemonics(e.keyCode)},fireEvent:function(e){"CheckBoxMenuItem"===e.type?(e.emit("menuopened",{}),r.close()):e.focus()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(342),i(703),i(368)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(){},createActionDataService:function(e){var t=new n;return e.getController().setActionService(t),t},hasAction:function(e){return null!==this.actionDataService.getAction(e)},deleteShortcutBinding:function(e,n,o){var r=n.shortcut[n.shortcut.length-1],a=i.getInstance(this.actionDataService),s=a.getBinding([t.Keys[o],t.Keys[r]]);a.removeBinding(s),this.actionDataService.removeAction(e),this.actionDataService.removeActionCallback(e)},hasBinding:function(e){var t=this.actionDataService.getAllActions();if(null!==t){var i=0;for(i=0;t.length>i;i+=1)if(t[i].shortcut[t[i].shortcut.length-1]===e)return!0}return!1},validValue:function(e){return""!==e&&void 0!==t.Keys[e]},addBinding:function(e,n,o){this.actionDataService.addAction(e),i.getInstance(this.actionDataService).getBinding([t.Keys[n],t.Keys[o]]).setAction(this.figure.domNode,e.id)},updateBinding:function(e,t){var i=this.actionDataService.getAction(e);this.hasAction(e)&&this.deleteShortcutBinding(e,i,t)},deleteBinding:function(e){var t="";"CheckBoxMenuItem"===this.menuType?(t=e+"shortcut",this.updateBinding(t,"SYSCTRL")):"MenuBarItem"===this.menuType&&(t=e+"MnemonicMBI",this.updateBinding(t,"ALT"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(440),i(592),i(441),i(284),i(6191),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAABx0lEQVQ4jZVSMWsiQRQe18WVlWgG4bBRFs72QHuRN40oiCTZFZGDI2gX2COtYB1S3mGTJjFNUCTV/QE7Sy1sAjYBBZdrLIQ1ccNOeAsrupGL98Hw+N6875s3M89XqVS+LxaL2/V6LQUCgVdKab3b7T6QAyGgOB6PS51Oh2BEfqjYAQDw+XzOERiRA4DCOSfeBQApb07AtpvNJjEMg2BE3u/3n70HMcZAluVHb16IxWLadDp9rVarBCPyD20SQlBsmuZXxpiynfdhG59BVdULURRb6XRaGA6Hv3u93uWmg0+0DizLutJ1XchkMsQ0zR87V/hQ7UGxWLxWFCWEYly2bYcZY6m9BrjBGDvf4seWZV3WajXRzWWzWT+l9KfLxW2DSCRyL0nSt1Kp9Mu27RtK6ZdEIiGlUpsDiaZpZDAYnBFCak7C/U8AgEKh8LZcLvloNOK6rls4E5PJhHuhaZrlzsTGoFwuP7Xb7Z1Sd8C8aLVaXFXVPxsDADhB173Ve4Bd5XK5F2cS8RqhUOiuXq/vvMe/kEwmSTgc9jPGTvzj8fgiGAyeNhoN36EGzvcJgjCbzagvn8//lWX5KBqNvvyPwWq1Eg3D8L8Dy884U4Lmn1cAAAAASUVORK5CYII=";return e([t,i,n],{destroy:function(){this.inherited(arguments),this._previousState&&delete this._previousState,this._toolSeparator&&this.getParentController().widget.removeChild(this._toolSeparator),this.getParentController().widget.removeChild(this.widget)},_IconView:function(e){""===e?(e=s,this.peernode.getProperty("CDataView")&&""!==this.peernode.getProperty("CDataView")&&(e=this.peernode.getProperty("CDataView"))):e&&e.startsWith("/static/")&&(e=a.createWorkerRoutingHostUrl(e)),this.widget.set("icon",e)},_CDataView:function(e){""===e&&(e=s),""===this.peernode.getProperty("IconView")&&this.widget.set("icon",e)},_Enable:function(e){"on"===e||!0===e?this.widget.set("disabled",!1):this.widget.set("disabled",!0)},_Separator:function(e){"on"===e||!0===e?(this._toolSeparator=new r({}),this.widget.domNode.classList.add("gbtToolWithSeparator"),this._toolSeparator.setVisibility(o.toJSBoolean(this.widget.visibility)),this.widget.isInOverflow()&&this._toolSeparator.addOverflowClass(),this.widget.getParent()&&this._toolSeparator.placeAt(this.widget.getParent(),this.widget.getIndexInParent()),this._toolSeparator.startup()):this._toolSeparator&&(this.getParentController().widget.removeChild(this._toolSeparator),this.widget.domNode.classList.remove("gbtToolWithSeparator"))},_Visible:function(e){this.widget.setVisibility(o.toJSBoolean(e)),this._toolSeparator&&this._toolSeparator.setVisibility(o.toJSBoolean(e))},_ToolClicked:function(e){this.handleUserInteraction("ToolClicked",{})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(442),i(289)],o=i.dj.d(n,(function(e,t,i,n){return e([i,n],{width:22,height:22,_getVisibilityDomClassName:function(){return"gbtHideTool"},isInOverflow:function(){return t.contains(this.domNode,"gbtOverflowTool")},addOverflowClass:function(){t.add(this.domNode,"gbtOverflowTool")},removeOverflowClass:function(){t.remove(this.domNode,"gbtOverflowTool")}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}n=[i(271),i(267)],o=i.dj.d(n,(function(e,t){return function(){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=e.viewModel;this._vm=n,this._vm.setState(t.ROW_HEADER_NODE,{offsetWidth:0}),this._publishNode={},this._subscribeNode={}}return r(i,[{key:"exposedAPI",value:function(){return{}}},{key:"eventList",value:function(){var t,i=this;return a(t={},e.internal.NODE_PUBLISH,(function(e){return i._nodePublish(e.event)})),a(t,e.internal.NODE_SUBSCRIBE,(function(e){return i._nodeSubscribe(e.event)})),a(t,e.internal.NODE_UNSUBSCRIBE,(function(e){return i._nodeUnsubscribe(e.event)})),a(t,e.protected.NODE_NOTIFY,(function(e){return i._notifyChannel(e.event)})),a(t,e.protected.FORCE_LAYOUT,this._notifyAll.bind(this)),t}},{key:"_nodePublish",value:function(e){var t=e.publisherFn,i=e.publisherId;this._publishNode[i]=t}},{key:"_nodeSubscribe",value:function(e){var t=e.subscriberFn,i=e.subscriberId,n=e.subscribeTo;this._subscribeNode[i]={subscriberFn:t,publisherId:n}}},{key:"_nodeUnsubscribe",value:function(e){var t=e.subscriberId;delete this._subscribeNode[t]}},{key:"_notifyChannel",value:function(e){var t=e.publisherFn,i=a({},e.publisherId,t());this._notifySubscribers(i)}},{key:"_notifyAll",value:function(){var e=this,t={};Object.keys(this._publishNode).forEach((function(i){var n=e._publishNode[i];t[i]=n()})),this._notifySubscribers(t)}},{key:"_notifySubscribers",value:function(e){var t=this;Object.keys(this._subscribeNode).forEach((function(i){if(t._subscribeNode[i]){var n=t._subscribeNode[i],o=n.subscriberFn,r=n.publisherId;e.hasOwnProperty(r)&&o(e[r])}}))}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(690),i(2229),i(271),i(429),i(972)],o=i.dj.d(n,(function(e,t,i,n,o){return function(){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),this._viewPortList=e.viewPortList,this.viewModel=e.viewModel,this._geomObject={scrollLeft:0,translateX:0},this._scrollLeft=0,this._size=new o(this.viewModel),this._headerRects=function(){return{}},this._rowCellRects=function(){return{}}}return a(s,[{key:"exposedAPI",value:function(){return{}}},{key:"eventList",value:function(){var e=this,t={};return t[i.internal.TABLE_SCROLL]=function(t){return e._handler(t.event)},t[i.internal.COMPUTE_TRANSLATEX]=function(t){return e._getTranslateX(t.event)},t[i.internal.TABLE_WIDTH]=function(t){return e._updateGeomObject(t.event)},t[i.protected.HEADER_RECTS]=function(t){return e._setHeaderNodes(t)},t[i.protected.ROW_CELL_RECTS]=function(t){return e._setRowCellRects(t)},t}},{key:"_setHeaderNodes",value:function(e){this._headerRects=e.event.children}},{key:"_setRowCellRects",value:function(e){this._rowCellRects=e.event.children}},{key:"_rowCellRectsHeaderFallback",value:function(e){var t=this._rowCellRects(e);return 0===Object.keys(t).length&&void 0!==e.row&&void 0===e.col?this._headerRects():t}},{key:"_calcMaxWidth",value:function(e,t){for(var i=this._viewPortList[0].getWidth(),n=0,o=Object.keys(e).sort((function(e,t){return e-t})),r=void 0,a=o.length-1;a>=0&&!((n+=e[r=o[a]].width)>i);a-=1);var s=(n-i)/e[r=Math.max(r,0)].width,l=r,c=Math.floor(this._size.COL_WIDTH*(s+l));return[c+i,c]}},{key:"_allColumnsInView",value:function(e){var t=this.viewModel.dataSize.columns.count,i=this.viewModel.viewBuffer.rangeList[0],n=this.viewModel.getColumnHeaders().length||t;if(i.columns.count===n)return this._geomObject.translateX=0,e.result=this._geomObject,this._geomObject.translateX}},{key:"_scrollExceedsTableWidth",value:function(e){this._updateGeomObject(e);var t=this._geomObject,i=t.maxScroll,n=t.physicalWidth,o=t.childClientWidth;if(this._scrollLeft>=i)return this._geomObject.translateX=n-o,this._geomObject.translateX}},{key:"_setPostUpdate",value:function(e){var t=this,i=this.viewModel.getStateByKey("LastScrollColumnFn").value,n=this._viewPortList[0].getFirstBufferedRow(),o=i(this._rowCellRectsHeaderFallback({row:n}));o!==e?setTimeout((function(){t.viewModel.deleteState("LastScrollColumn"),t.viewModel.deleteState("LastScrollColumnFn"),t._viewPortList[0].setScrollLeftPx(o,!0)}),0):(this.viewModel.deleteState("LastScrollColumn"),this.viewModel.deleteState("LastScrollColumnFn"))}},{key:"_keyboardScrollTranslateX",value:function(e){var t=this._viewPortList[0].getWidth(),i=this._viewPortList[0].getScrollLeft(),n=0,o=this.viewModel.getStateByKey("LastScrollColumn"),r=this._viewPortList[0].getFirstBufferedRow();if(o)for(var a=o.value,s=this._rowCellRectsHeaderFallback({row:r}),l=Object.keys(s),c=0;c<l.length;c+=1){var d=l[c];if(n+=s[d].width,Number(d)===a){this._setPostUpdate(i);var u=Math.min(i-n+t-1,i);return this._geomObject.translateX=u,e.result=this._geomObject,this._geomObject.translateX}}}},{key:"_computeTranslateX",value:function(e){for(var t=this._viewPortList[0].getFirstBufferedRow(),i=this._rowCellRectsHeaderFallback({row:t}),n=Object.keys(i).sort((function(e,t){return e-t})),o=this._geomObject,r=o.physScrollX,a=o.scrollWidth,s=o.scrollXPos,l=o.bufferedColCount,c=0,d=0;d<l;d+=1){var u=n[d];i[u]&&(c+=i[u].width-this._size.COL_WIDTH)}var h=a/this._size.COL_WIDTH-1,p=r%this._size.COL_WIDTH;return this._geomObject.translateX=Math.floor(s-c-h*p),e.result=this._geomObject,this._geomObject.translateX}},{key:"_getTranslateX",value:function(e){return e.result=this._geomObject,0===this._allColumnsInView(e)?this._geomObject.translateX:this._scrollExceedsTableWidth(e)||this._keyboardScrollTranslateX(e)||this._computeTranslateX(e)}},{key:"_updateGeomObject",value:function(e){var i=e.headerThead,o=this.viewModel.viewBuffer.rangeList,a=o[0].columns.start,s=this._size.COL_WIDTH*a,l=this._viewPortList[0].getLastBufferedColumn(),c=this.viewModel.dataSize.columns.count,d=this.viewModel.dataSize.columns.count-1,u=Math.min(d,t.calculateFirstVisible(this._size.COL_WIDTH,this._scrollLeft)),h=d*this._size.COL_WIDTH,p=this._viewPortList[0].getWidth(),f=this.viewModel.getColumnHeaders().length||c;if(o[0].columns.count!==f){var g=Math.min(Math.max(0,u-a),l),m=1/0,_=0,v=Math.floor((h-p)/this._size.COL_WIDTH),b=this._viewPortList[0].getFirstBufferedRow(),y=this._rowCellRectsHeaderFallback({row:b});if(v-n.buffers.COL_OVERSCAN<=a&&l===d){var C=this._calcMaxWidth(y,a),T=r(C,2),E=T[0];m=T[1],_=Math.floor(E)}this._geomObject={maxScroll:m,physicalWidth:_,childClientWidth:i.offsetWidth,scrollXPos:s,bufferedColCount:g,scrollWidth:(y[u]?y[u]:y[a]).width,physScrollX:this._scrollLeft,translateX:this._geomObject.translateX}}else{var S=this._viewPortList[0].getFirstBufferedRow(),w=this._rowCellRectsHeaderFallback({row:S}),I=Object.keys(w),A=0;if(I.length>0){for(var x=w[I[0]].left,N=w[I[0]].right,L=0;L<I.length;L+=1){var D=I[L];w[D].left<x&&(x=w[D].left),w[D].right>N&&(N=w[D].right)}A=N-x}this._geomObject.physicalWidth=A}e.result=this._geomObject}},{key:"_handler",value:function(t){var i=this.viewModel.viewPort;i.rangeList[0]=this._viewPortList[0].getViewPort(),this._scrollLeft=t.target.scrollLeft,this.viewModel.viewPort=i,e.renderUpdate(this.viewModel,this._viewPortList[0].getBufferedViewPort())}}]),s}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(429)],o=i.dj.d(n,(function(e){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"calculateRangeEnd",value:function(e,t,i){return Number(t)+Math.ceil(i/e)}},{key:"calcVisible",value:function(e,t){return Number(e)+Number(t)-1}},{key:"calculateFirstVisible",value:function(e,t){return Math.max(0,Math.floor(t/e))}},{key:"sum",value:function(e,t){return Number(e)+Number(t)}},{key:"roundedDivision",value:function(e,t){return Math.floor(t/e)}},{key:"calculateMaxFirstVisible",value:function(e,t){return Math.max(0,e-t)}},{key:"min2",value:function(e,t){return Math.min(e,t)}},{key:"max2",value:function(e,t){return Math.max(e,t)}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(690),i(267),i(271)],o=i.dj.d(n,(function(e,t,i){return function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.viewModel=e.viewModel,this._viewPortList=e.viewPortList}return r(t,[{key:"eventList",value:function(){var e=this,t={};return t[i.internal.TABLE_RESIZE]=function(t){return e.handleResize(t.event)},t[i.internal.TABLE_MOUNT]=function(t){return e.handleInit(t.event)},t}},{key:"handleInit",value:function(e){var t=e.table;this._viewPortList[0].setContainer(t)}},{key:"_getContainerWidth",value:function(e){if(e)return e.clientWidth}},{key:"handleResize",value:function(t){var i=this._getContainerWidth(t.container),n=this.viewModel.viewPort;n.rangeList[0]=this._viewPortList[0].getViewPort(i),this.viewModel.viewPort=n,e.renderUpdate(this.viewModel,this._viewPortList[0].getBufferedViewPort(i))}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({LEFT:"left",RIGHT:"right",CENTER:"center",DEFAULT:"default"})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(267),i(271),i(327),i(739),i(6203)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return function(){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),this._viewModel=e.viewModel,this._baseColumnConfig=Object.create(this._viewModel.getColumnHeaders()),this._orderedColumnConfig=Object.create(this._baseColumnConfig),this._computedHeaderWidths=[],this._customMapping=this._getMapping(),this.setColumnConfig(this.getColumnConfig()),this.columnReorder=this.columnReorder.bind(this)}return a(s,[{key:"eventList",value:function(){var e=this,i={};return i[t.protected.COL_HEADER_MOUNT]=function(t){return e._storePixelWidths(t.event)},i[t.protected.COL_RESIZE]=function(t){return e._swapPercentsForPixels(t.event)},i}},{key:"exposedAPI",value:function(){return{getColumnConfig:this.getColumnConfig.bind(this),setColumnConfig:this.setColumnConfig.bind(this)}}},{key:"columnReorder",value:function(e){var t=this.getColumnConfig(),i=e.columnId,n=e.targetIndex,o={columnId:i},r=this._viewModel.getSpanningHeaders(),a=this._indexLookupById(i,r),s=this._columnParentLookup(n,r),l=r?r[i]:void 0,c={index:n,targetParent:s},d=void 0;if(a&&a.length>0?(o.colIndexs=a,o.sourceParent=l,d=t.moveByParentColumnId(o,c)):d=t.moveColumn(o,c),!d)throw new Error("The move failed for column "+i+".");this.setColumnConfig(t)}},{key:"_indexLookupById",value:function(e,t){if(t){var n=t[e];if(n)return i.rangeArray(n.colStartIndex,n.colEndIndex)}}},{key:"_columnParentLookup",value:function(e,t){var i=this._baseColumnConfig[e];if(i&&i.parentId)return t[i.parentId]}},{key:"_columnsNotPaged",value:function(e){var t=e.length||this._viewModel.dataSize.columns.end;return n.notEnoughColumnsToPage(t)}},{key:"_storePixelWidths",value:function(e){var t=e.width,i=e.column,n=this._viewModel.getColumnHeaders();if(this._columnsNotPaged(n)){var o=i;n[i]&&(o=this._customMapping[n[i].columnId]),this._computedHeaderWidths[o]=t}}},{key:"_swapPercentsForPixels",value:function(){var e=this,t=this._viewModel.getColumnHeaders();this._columnsNotPaged(t)&&this._baseColumnConfig.forEach((function(t,i){t.width={value:e._computedHeaderWidths[i],unit:"px"}})),this.setColumnConfig(this.getColumnConfig()),this._swapPercentsForPixels=function(){return!0},this._storePixelWidths=function(){return!0}}},{key:"_removeHiddenColumns",value:function(){for(var e=Object.create(this._orderedColumnConfig),t=0;t<e.length;t+=1){var i=void 0===e[t].hideable||e[t].hideable;e[t].hidden&&i&&e.length>1&&(e.splice(t,1),t-=1)}return this._autoFillMissingPercentageWidth(e),e}},{key:"_autoFillMissingPercentageWidth",value:function(e){var t=n.validateColPct(e),i=r(t,2),o=i[0],a=i[1];if(a>-1){var s=Object.create(e[a]);Object.keys(e[a]).forEach((function(t){s[t]=e[a][t]})),s.width={value:s.width.value+o,unit:"%"},e[a]=s}}},{key:"_mergeBaseItem",value:function(e,t){var i={};return Object.keys(e).forEach((function(t){i[t]=e[t]})),Object.keys(t).forEach((function(e){i[e]=t[e]})),i}},{key:"_moveColumns",value:function(e){var t=this;e.forEach((function(e){var i=t._orderedColumnConfig.indexOf(e.item);t._orderedColumnConfig.splice(i,1),t._orderedColumnConfig.splice(e.toIndex,0,e.item)}))}},{key:"_getMapping",value:function(){var e=[],t=Object.create(e);return this._baseColumnConfig.forEach((function(i,n){var o=n.toString();e.push(n),o!==i.columnId&&(t[i.columnId]=n)})),t}},{key:"getColumnConfig",value:function(){return o(this._baseColumnConfig,this._customMapping)}},{key:"setColumnConfig",value:function(t){var i=this;Object.keys(t).forEach((function(e){var o=i._customMapping[e],r=i._mergeBaseItem(i._baseColumnConfig[e],t[e]);if(!n.parseHeaderConfig(r,o))throw new Error("Column Configuration is not valid for column with id: "+e+", label: "+(r||{}).label);i._baseColumnConfig[e]=r})),this._moveColumns(t._moves),this._customMapping=this._getMapping(),this._viewModel.setColumnHeaders(this._removeHiddenColumns()),this._viewModel.setState(e.protected.COLUMN_CONFIG,!0)}},{key:"emits",get:function(){return[]}}]),s}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301)],o=i.dj.d(n,(function(e){return function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"editCell",value:function(e){this._editController.editCell(e)}},{key:"exposedAPI",value:function(){return{_editCell:this.editCell.bind(this)}}},{key:"eventList",value:function(){return[this._editController.eventList(),this._interactiveController.eventList()]}},{key:"emitEditCompleted",value:function(e){this.emit("editCompleted",e)}},{key:"emitEditCanceled",value:function(e){this.emit("editCanceled",e)}},{key:"emitIconAction",value:function(e){this.emit("iconAction",e)}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6209),i(6213),i(6214),i(2237),i(2238),i(2239),i(2241),i(2242),i(6219),i(2244),i(2245),i(2249),i(2250),i(6229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){"use strict";return Object.freeze({AVAILABLE:{CellFocus:[e,u],SingleRowSelection:[t,u],MultiRowSelection:[i,e,u],CellSelection:[n,i,e,u],ColumnResize:o,IndividualColumnSort:r,RowHeaders:a,DragAndDrop:s,Search:c,Clipboard:d,HeaderMenu:l},INCOMPATIBLE:[[n,i,t]],CONTROLLERS:[[u,h]],EXPERIMENTAL_ADAPTORS:{SizingAdaptor:p}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[],o=i.dj.d(n,(function(){var e=function(){function e(){a(this,e)}return r(e,null,[{key:"chain",value:function(t){return e}},{key:"therefore",value:function(e,t){return e}}]),e}(),t=function(){function e(){a(this,e)}return r(e,null,[{key:"Something",value:function(e,t){return{chain:function(i){return e.maybe(i(t))},therefore:function(e,i){return i(t)}}}}]),e}();return function(){function i(){a(this,i)}return r(i,null,[{key:"maybe",value:function(n){return null==n?e:t.Something(i,n)}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(301),i(327),i(632),i(267),i(271),i(460)],o=i.dj.d(n,(function(e,t,i,n,o,a,s){"use strict";return function(){function l(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var i=new t;this._emit=i.emit.bind(i),this.on=i.on.bind(i),this.viewModel=e.viewModel,this.viewModel.setState(o.SELECT_ROW_HEADERS,!0),this._events={}}return r(l,[{key:"_setPivot",value:function(t){var r=i.curry(n.fitRangeToBounds)(this.viewModel.dataSize.rows.end,this.viewModel.dataSize.columns.end)(e.range().setRows(t.rows.start,t.rows.start).setColumns(t.columns.start,t.columns.start));r&&this.viewModel.setState(o.protected.PIVOT,null,[r])}},{key:"_getSelectedRangeList",value:function(){var e=this.viewModel.getStateByKey(o.protected.SELECTED);return e?e.rangeList:[]}},{key:"_getFittedRange",value:function(e){var t=i.curry(n.fitRangeToBounds)(this.viewModel.dataSize.rows.end,this.viewModel.dataSize.columns.end);return e.map(t).filter((function(e){return null!=e}))}},{key:"setContiguousRows",value:function(t){var i=this.viewModel.getStateByKey(o.protected.PIVOT),n=this.viewModel.getStateByKey(o.protected.FOCUSED),r=void 0;r=i?i.rangeList[0]:n?n.rangeList[0]:e.range().setRows(0,0).setColumns(0,0);var a=Math.min(r.rows.start,t.rows.start),s=Math.max(r.rows.start,t.rows.start),l=[e.range().setEntireRows(a,s)];this.viewModel.setState(o.protected.SELECTED,null,this._getFittedRange(l))}},{key:"setIndividualRow",value:function(t){var i=e.range().setEntireRows(t.rows.start,t.rows.start);this._setPivot(t),this.setSelectionState([i])}},{key:"setDiscontiguousRow",value:function(t){this._setPivot(t);var i=e.range().setEntireRows(t.rows.start,t.rows.start),n=this._getSelectedRangeList().concat(),o=this.isRowSelected(i);if(o>-1){var r=this.splitRange(n[o],i);n.splice(o,1),n=n.concat(r)}else n.push(i);this.setSelectionState(n)}},{key:"splitRange",value:function(t,i){var n=void 0,o=void 0,r=[];return t.rows.start===t.rows.end?[]:t.rows.start===i.rows.start?(n=i.rows.start+1,o=t.rows.end,r.push(e.range().setEntireRows(n,o)),r):t.rows.end===i.rows.start?(o=i.rows.end-1,n=t.rows.start,r.push(e.range().setEntireRows(n,o)),r):(r.push(e.range().setEntireRows(t.rows.start,i.rows.start-1)),r.push(e.range().setEntireRows(i.rows.end+1,t.rows.end)),r)}},{key:"isRowSelected",value:function(e){var t=e.rows.start,n=e.rows.end,o=this._getSelectedRangeList(),r=-1;return i.find(o,(function(e){return r++,e.rows.start<=t&&e.rows.end>=n}))?r:-1}},{key:"eventList",value:function(){var e=this,t={};return t[a.protected.TABLE_CELL_CLICK]=function(t){return e._emit(a.protected.CELL_SELECTION_CLICK,t.event)},t[a.protected.TABLE_KEY_PRESS]=function(t){return e._processAndEmitKeyPress(t)},t[a.protected.TABLE_DBL_CLICK]=function(t){return e._handleDoubleClick(t)},t[a.protected.ROW_SELECTION_CLICK]=function(t){return e._emit(a.protected.CELL_SELECTION_CLICK,t.event)},t}},{key:"_processAndEmitKeyPress",value:function(e){var t=e.event,i=t,o=n.getActiveCell(this.viewModel);this._pivot=o,i.modifiers=t,i.dataSize={},i.viewPort={},i.dataSize=e.dataSize,i.viewPort=e.viewPort.rangeList[0],o&&o.rows&&(i.row=o.rows.start),this._emit(a.protected.CELL_SELECTION_KEY,i),t.keyCode===s.ENTER&&this._emit(a.protected.TABLE_SELECTED_ACTION,{selectedRange:this.getSelectionState()})}},{key:"_handleDoubleClick",value:function(e){this._emit(a.protected.TABLE_SELECTED_ACTION,{selectedRange:this.getSelectionState()})}},{key:"setSelectionState",value:function(e){this.viewModel.setState(o.protected.SELECTED,null,this._getFittedRange(e))}},{key:"getSelectionState",value:function(){var e=this.viewModel.getStateByKey(o.protected.SELECTED);return e?e.rangeList:null}}]),l}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(301),i(842),i(271)],o=i.dj.d(n,(function(e,t,i,n){"use strict";var o=function(e){return e.ctrlKey||e.metaKey};return function(t){function a(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));n.adaptor=t.adaptor,n.previousFulcrum=e.range(),n.previousRangeList=[];var o=i.event;return t.adaptor.on(o.RANGE_SELECTION,(function(e){return n._handleKeySelection(e)})),t.adaptor.on(o.COLUMN_SELECTION,(function(e){return n._handleColumnSelection(e)})),t.adaptor.on(o.ROW_SELECTION,(function(e){return n._handleRowSelection(e)})),t.adaptor.on(o.SELECT_ALL,(function(e){return n._handleSelectAll(e)})),t.adaptor.selectHeaders=!0,t.adaptor.applyToCells=!0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,t),r(a,[{key:"_handleSelectedAction",value:function(e){this.emit("selectedAction",e)}},{key:"emits",get:function(){return[n.exposed.SELECTION_CHANGED,"selectedAction"]}}]),r(a,[{key:"_handleSelectAll",value:function(t){var i=e.range().setEntireColumns(0,1/0);this._updateSelection(t,i)}},{key:"_handleColumnSelection",value:function(t){var i=t.activeCell,n=t.fulcrum,r=i.columns.start,a=Math.min(n.columns.start,r),s=Math.max(n.columns.end,r);t.groupedSelection||!o(t)&&t.shiftKey||(s=a=Math.min(i.columns.start,r));var l=Math.min(a,s),c=Math.max(a,s),d=e.range().setEntireColumns(l,c);this._updateSelection(t,d)}},{key:"_handleRowSelection",value:function(t){var i=t.activeCell,n=t.fulcrum,r=i.rows.start,a=Math.min(n.rows.start,r),s=Math.max(n.rows.end,r);!o(t)&&t.shiftKey||(s=a=Math.min(i.rows.start,r));var l=Math.min(a,s),c=Math.max(a,s),d=e.range().setEntireRows(l,c);this._updateSelection(t,d)}},{key:"_handleKeySelection",value:function(t){var i=t.fulcrum,n=t.activeCell,r=void 0;if(o(t)||t.shiftKey){if(!o(t)&&t.shiftKey){var a=Math.min(i.rows.start,n.rows.start),s=Math.max(i.rows.end,n.rows.end),l=Math.min(i.columns.start,n.columns.start),c=Math.max(i.columns.end,n.columns.end),d=Math.min(l,c),u=Math.max(l,c),h=Math.min(a,s),p=Math.max(a,s);r=e.range().setRows(h,p).setColumns(d,u)}else if(o(t))return void this.adaptor.setSelection(this.adaptor.getSelection())}else r=e.range().setRows(n.rows.start,n.rows.start).setColumns(n.columns.start,n.columns.start);this._updateSelection(t,r)}},{key:"_updateSelection",value:function(e,t){if(e.resizeSelectionInProgress){var i=e.fulcrum;this.previousFulcrum=i,this._modifyActiveRange(t)}else if(o(e)&&e.shiftKey){var n=this.adaptor.getSelection();this.adaptor.setSelection(n)}else!o(e)&&e.shiftKey?this._additiveUpdate(e,t):o(e)?this._discreteAdditiveUpdate(t,e):this._newSelection(t,e)}},{key:"_discreteAdditiveUpdate",value:function(t,i){var n=i.fulcrum,o=this.adaptor.getSelection();e.isRangeInsideRangeList(t,o)?this.adaptor.setSelection(o,{activeRange:t}):(this.previousRangeList=o.slice(),(o=e.removeRangeFromRangeList(o,t)).push(t),this.previousFulcrum=n,this.adaptor.setSelection(o,{activeRange:t}),this.emit("selectionChanged",{rangeList:this.adaptor.getSelection()}))}},{key:"_newSelection",value:function(t,i){var n=i.fulcrum,o=this.adaptor.getSelection(),r=1===o.length&&e.isRangeEqual(t,o[0]);this.adaptor.setSelection([t],{activeRange:t}),this.previousRange=t,this.previousRangeList=[],this.previousFulcrum=n,r||this.emit("selectionChanged",{rangeList:this.adaptor.getSelection()})}},{key:"_additiveUpdate",value:function(t,i){var n=t.fulcrum;e.isRangeEqual(this.previousFulcrum,n)||n.rows.end===1/0&&this.previousFulcrum.columns.end===1/0||n.columns.end===1/0&&this.previousFulcrum.rows.end===1/0?this._modifyActiveRange(i):this._startNewActiveRange(i),this.previousRange=i,this.previousFulcrum=n}},{key:"_startNewActiveRange",value:function(t){var i=this.adaptor.getSelection();this.previousRangeList=i;var n=e.isRangeInsideRangeList(t,i);(i=e.removeRangeFromRangeList(i,t)).push(t),this.adaptor.setSelection(i,{activeRange:t}),n||this.emit("selectionChanged",{rangeList:this.adaptor.getSelection()})}},{key:"_modifyActiveRange",value:function(t){var i=this.adaptor.getSelection(),n=this.adaptor.getSelection();e.isRangeInsideRangeList(t,this.previousRangeList)?(this.adaptor.setSelection(this.previousRangeList,{activeRange:t}),e.isRangeInsideRangeList(this.previousRange,this.previousRangeList)||this.emit("selectionChanged",{rangeList:this.adaptor.getSelection()})):((i=e.removeRangeFromRangeList(this.previousRangeList,t)).push(t),this.adaptor.setSelection(i,{activeRange:t}),e.isRangeInsideRangeList(this.previousRange,i)&&e.isRangeInsideRangeList(t,n)||this.emit("selectionChanged",{rangeList:this.adaptor.getSelection()}))}},{key:"setSelection",value:function(t){if(Array.isArray(t)){for(var i=[],n=t.slice(),o=n.shift();o;)i.push(o),o=(n=e.removeRangeFromRangeList(n,o)).shift();return this.adaptor.setSelection(i),i}}},{key:"getSelection",value:function(){return this.adaptor.getSelection()}},{key:"exposedAPI",value:function(){return{setSelection:this.setSelection.bind(this),getSelection:this.getSelection.bind(this)}}}],[{key:"adaptor",get:function(){return i}}]),a}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(6215),i(271)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(i.protected.COL_RESIZE,(function(e){return t._handleResize(e)})),e.adaptor.on(i.internal.COL_RESIZE_DONE,(function(e){return t._handleResizeDone(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"exposedAPI",value:function(){return{}}},{key:"_handleResize",value:function(e){this.adaptor.setColumnResize(e)}},{key:"_handleResizeDone",value:function(e){this.emit(i.exposed.COLUMN_RESIZED,e)}},{key:"listensOn",get:function(){return[i.protected.COL_RESIZE]}},{key:"emits",get:function(){return[i.exposed.COLUMN_RESIZED]}}],[{key:"adaptor",get:function(){return t}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(2240),i(271),i(327),i(955)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(i.protected.TABLE_COLUMN_SORT,(function(e){return t._handleSort(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"exposedAPI",value:function(){return{setSortIndicator:this.setSortIndicator.bind(this)}}},{key:"_handleSort",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.order,i=e.column,n=e.type;t&&i>=0&&n&&this.adaptor.sortColumn({columnIndex:i,order:t,compare:n})}},{key:"setSortIndicator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.adaptor.setSortIndicator(e)}},{key:"emits",get:function(){return[]}}],[{key:"adaptor",get:function(){return t}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(327),i(301),i(271),i(267)],o=i.dj.d(n,(function(e,t,i,n,o){return function(t){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t._viewModel=e.viewModel,t._viewModel.setState(o.protected.SORTABLE,!0),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,t),r(i,[{key:"eventList",value:function(){var e=this,t={};return t[n.protected.SORT_AFFORDANCE_CLICKED]=function(t){return e.emit(n.protected.TABLE_COLUMN_SORT,t.event)},t[n.internal.COLUMN_REORDERED]=function(){return e._removeColumnSortState()},t}},{key:"sortColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,i=e.order;isNaN(t)||t<0||!i||(this.setSortIndicator(e),this._viewModel.sort([e]))}},{key:"_removeColumnSortState",value:function(){var e=this._viewModel.getStateByKey(o.protected.SORTED);if(e&&e.rangeList){var t=e.rangeList[0].columns.start;this._viewModel.deleteColumnMetaData(o.protected.SORTED,t)}}},{key:"_addColumnSortState",value:function(t,i){var n={order:i},r=e.range().setEntireColumns(t);this._viewModel.setColumnMetaData(o.protected.SORTED,n,t),this._viewModel.setState(o.protected.SORTED,i,[r])}},{key:"setSortIndicator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,i=e.order;t=Number(t),0===Object.keys(e).length?(this._removeColumnSortState(),this._viewModel.deleteState(o.protected.SORTED)):!isNaN(t)&&t>=0&&i&&(this._removeColumnSortState(),this._addColumnSortState(t,i))}}]),i}(i)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(6216)],o=i.dj.d(n,(function(e){"use strict";return function(){function t(e,i){a(this,t),this.adaptor=e.adaptor,this.adaptor.setConfig(i)}return r(t,[{key:"exposedAPI",value:function(){return{}}},{key:"emits",get:function(){return[]}}],[{key:"config",value:function(e){return function(t){function i(t){return a(this,i),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,t),i}(t)}},{key:"adaptor",get:function(){return e}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(6217),i(271)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(i.exposed.DROP_COMPLETED,(function(e){return t._emitDropEvent(i.exposed.DROP_COMPLETED,e)})),e.adaptor.on(i.exposed.DROP_FAILED,(function(e){return t._emitDropEvent(i.exposed.DROP_FAILED,e)})),e.adaptor.on(i.exposed.DROP_IN_PROGRESS,(function(e){return t._emitDropEvent(i.exposed.DROP_IN_PROGRESS,e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"_emitDropEvent",value:function(e,t){this.emit(e,t)}},{key:"exposedAPI",value:function(){return{}}},{key:"emits",get:function(){return[i.exposed.DROP_IN_PROGRESS,i.exposed.DROP_COMPLETED,i.exposed.DROP_FAILED]}},{key:"treeTableEmits",get:function(){return[i.exposed.DROP_COMPLETED,i.exposed.DROP_FAILED]}}],[{key:"adaptor",get:function(){return t}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(593),i(267),i(633),i(392)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return new(function(){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._dataStore=null,this._viewModel=null,this._defaultType=i.TREETABLE_DEFAULT_TYPE}return r(o,[{key:"setConfig",value:function(e){this._dataStore=e.dataStore,this._viewModel=e.viewModel}},{key:"expandNode",value:function(e){this._dataStore.expand([{id:e.id}])}},{key:"getCurrentRowMetaData",value:function(e){var i={};return null===e?(i.path=[],i):this._viewModel.getStateByKey(t.protected.ROW_METADATA).value[0](e)._dataMetaData.metaData}},{key:"isInternalDrag",value:function(){var e=this._viewModel.getStateByKey(t.dragInProgress).value,i=e?e.dragItem:null;return!(!i||!i.getDataTypes().includes(this._defaultType))}},{key:"putData",value:function(e){var t=e.proxyNodes,i=e.target,n={place:"first"};return"TREETABLE"===i.type&&(n.place="last"),this.moveData(t,i,n)}},{key:"_isNodeInDragList",value:function(e,t){return e.some((function(e){return e===t.id}))}},{key:"_finishDataUpdate",value:function(t){var i=t.resolve,o=t.movedNodeIds,r=t.failedReasons,a=t.target,s=[],l={type:a.type};null!==a.proxyNode.id&&(l.proxyNode=a.proxyNode),a=l,r.forEach((function(t){var i=n.createProxyNodesWithIds(t.ids);s.push({source:{proxyNodes:i,type:e.TREETABLE_ROW},target:a,error:t.error})}));var c=void 0;0!==o.length&&(c={source:{proxyNodes:n.createProxyNodesWithIds(o),type:e.TREETABLE_ROW},target:a}),i({dropSuccessInfo:c,dropFailInfo:s})}},{key:"_saveNodeInfo",value:function(e,t){var i=e.movedNodeIds,n=e.failedReasons,o=e.nodeId;if(e.isSuccess)i.push(o);else{var r=n.find((function(e){return e.error.reason===t.reason}));r||(r={ids:[],error:{reason:t.reason,message:t.message}},n.push(r)),r.ids.push(o)}}},{key:"moveData",value:function(e,t,i){var o=this,r=[],a=[],s=[],l=[],c=n.getIdsFromProxyNodes(e);return new Promise((function(e,n){c.forEach((function(e){var n=o._dataStore.getParentNode({id:e}).then((function(n){var r=n?n.node:{id:null};if(!(null!==r&&o._isNodeInDragList(c,r))){var d=o._dataStore.move({id:e},{id:t.proxyNode.id},i).then(o._saveNodeInfo.bind(o,{nodeId:e,isSuccess:!0,movedNodeIds:s,failedReasons:l}),o._saveNodeInfo.bind(o,{nodeId:e,isSuccess:!1,movedNodeIds:s,failedReasons:l}));a.push(d)}}));r.push(n)})),Promise.all(r).then((function(){Promise.all(a).then((function(){o._finishDataUpdate({resolve:e,movedNodeIds:s,failedReasons:l,target:t})}))}))}))}}]),o}())}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(6221)],o=i.dj.d(n,(function(e){"use strict";return function(){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.adaptor=e.adaptor,this.adaptor.setConfig(i)}return r(t,[{key:"exposedAPI",value:function(){return{}}},{key:"emits",get:function(){return[]}}],[{key:"adaptor",get:function(){return e}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(6222)],o=i.dj.d(n,(function(e,t){"use strict";return function(e){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t.adaptor=e.adaptor,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"emits",get:function(){return[]}}]),r(i,[{key:"cut",value:function(){return this.adaptor.cut()}},{key:"copy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.adaptor.copy(e)}},{key:"paste",value:function(){return this.adaptor.paste()}},{key:"exposedAPI",value:function(){return{cut:this.cut.bind(this),copy:this.copy.bind(this),paste:this.paste.bind(this)}}}],[{key:"adaptor",get:function(){return t}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return{createTextBox:function(){let e=document.createElement("textarea");const t=e.style;return t.position="fixed",t.top=t.opacity="0",t.left="-999px",e.setAttribute("aria-hidden","true"),e.value=" ",document.body.appendChild(e),e},addEventListener:function(e,t,i,n={}){return e.addEventListener(t,i,n),()=>{e.removeEventListener(t,i,n)}},copy:function(e){const t=document.activeElement;e.select(),e.focus(),e.setSelectionRange(0,e.value.length);let i=document.execCommand("copy");return t&&t.focus(),i},destroy:function(e){e.remove()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return{COPY_COMMAND_FAILED:"COPY_COMMAND_FAILED",COPY_COMMAND_SUCCESS:"COPY_COMMAND_SUCCESS",CLIPBOARD_ACCESS_ERROR:"CLIPBOARD_ACCESS_ERROR",CLIPBOARD_ACCESS_SUCCESS:"CLIPBOARD_ACCESS_SUCCESS"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return{validateArguments(e,t,i){if(e.length<t)throw new Error(`Expected : ${i} expects two arguments, but ${e.length} arguments were passed`)},validateFunctionType(e,t){if("function"!=typeof e)throw new Error(`Expected : ${t} should be of type function`)},validateForWriteReturnType(e,t){if(!(e instanceof t))throw new Error("Expected : clipboard.write argument should return object of type "+t.name)},validateConfig(e,t){if(!e)throw new Error(`Expected : clipboard.${t} expects object`);if(!e.restrictedAccess)throw new Error("Expected : config should have restrictedAccess function as a key");let i="restrictedAccess";if(this.validateFunctionType(e.restrictedAccess,i),!e.fullAccess)throw new Error("Expected : config should have fullAccess function as a key");i="fullAccess",this.validateFunctionType(e.fullAccess,i),e.onSuccess&&this.validateFunctionType(e.onSuccess,"onSuccess"),e.onFailure&&this.validateFunctionType(e.onFailure,"onFailure")}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1175),i(327),i(973),i(6228),i(1177),i(460),i(267),i(271),i(392)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c){"use strict";return function(){function c(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var t=e.viewModel;this._viewModel=t,this._logicalViewPort=e.viewPortList[0],this._activeCell=new n(e),this._handler={},this._handler[a.PAGE_UP]=this._handlePageUp.bind(this),this._handler[a.PAGE_DOWN]=this._handlePageDown.bind(this),this._handler[a.END]=this._handleEnd.bind(this),this._handler[a.HOME]=this._handleHome.bind(this),this._handler[a.ARROW_LEFT]=this._handleArrowLeft.bind(this),this._handler[a.ARROW_UP]=this._handleArrowUp.bind(this),this._handler[a.ARROW_RIGHT]=this._handleArrowRight.bind(this),this._handler[a.ARROW_DOWN]=this._handleArrowDown.bind(this),this._rowRects=function(){return{}},this._headerRects=function(){return{}},this._rowCellRects=function(){return{}},this.cellNav=new i(t)}return r(c,[{key:"exposedAPI",value:function(){return{scrollTo:this.scrollTo.bind(this)}}},{key:"eventList",value:function(){var e=this,t={};return t[l.protected.TABLE_CELL_CLICK]=function(t){return e._rowClicked(t.event)},t[l.protected.TABLE_KEY_PRESS]=function(t){return e._processAndEmitKeyPress(t)},t[l.protected.HEADER_RECTS]=function(t){return e._setHeaderRects(t)},t[l.protected.ROW_RECTS]=function(t){return e._setRowRects(t)},t[l.protected.ROW_CELL_RECTS]=function(t){return e._setRowCellRects(t)},t}},{key:"_rowCellRectsHeaderFallback",value:function(e){var t=this._rowCellRects(e);return 0===Object.keys(t).length&&void 0!==e.row&&void 0===e.col?this._headerRects():t}},{key:"scrollTo",value:function(e){var i=this;return t.convertSyncFunctionToPromise((function(){return function(){if(!e||!Object.keys(e).length)throw new Error("The usage of Cell Range argument - "+e+" is not correct in scrollTo API. Please check JSDoc to see the correct usage.");if(e.rows){var t=Math.min(i._viewModel.dataSize.rows.count-1,e.rows.start);if(e.rows&&e.rows.count>0){var n=i.cellNav.getScrollTopPosition(t);i._logicalViewPort.setScrollTopPx(n)}if(e.columns&&e.columns.count>0){var o=Math.min(i._viewModel.dataSize.columns.count-1,e.columns.start),r=i.cellNav.getScrollLeftPosition(o,i._rowCellRectsHeaderFallback({row:t}));i._logicalViewPort.setScrollLeftPx(r)}}}()}))}},{key:"_setRowRects",value:function(e){this._rowRects=e.event.children}},{key:"_setHeaderRects",value:function(e){this._headerRects=e.event.children}},{key:"_setRowCellRects",value:function(e){this._rowCellRects=e.event.children}},{key:"_hasModifier",value:function(e){return!1}},{key:"_getActiveState",value:function(){return this._viewModel.getStateByKey(s.protected.ACTIVE_CELL)||void 0}},{key:"_processAndEmitKeyPress",value:function(e){var t=e.event,i={keyCode:t.keyCode};i.modifiers=t,i.dataSize={},i.viewPort={},i.dataSize=e.dataSize,i.viewPort=e.viewPort.rangeList[0],i.viewModel=this._viewModel,i.headerRects=this._headerRects,i.rowCellRects=this._rowCellRects,i.currentState=this._getActiveState(),this._keyPressed(i)}},{key:"_rowClicked",value:function(t){var i=e.getRangeForCell(t.row,t.column);this._viewModel.setState(s.protected.ACTIVE_CELL,null,[i])}},{key:"_getLastRowPositionForHeight",value:function(){var e=this._logicalViewPort.getHeight();return t.curry(this.cellNav.getScrollBottomPosition)(e)}},{key:"_getRightColPositionForWidth",value:function(){var e=this._logicalViewPort.getWidth();return t.curry(this.cellNav.getScrollRightPosition)(e)}},{key:"_getScrollRect",value:function(){var e=this._logicalViewPort.getBoundingRect(),t=e.height-this._logicalViewPort.getHeight(),i=e.width-this._logicalViewPort.getWidth();return{top:e.top,left:e.left,bottom:e.bottom-t,right:e.right-i}}},{key:"_handleVertical",value:function(e,t,i){var n=this.cellNav.getCurrent(e,"rows"),r=Math.max(0,this.cellNav.getCurrent(e,"columns")),a=t(n),s=this._getScrollRect(),l=this._logicalViewPort.getWidth(),c=null,d=this.cellNav.getColPosition(r,s,l,this._rowCellRectsHeaderFallback({row:n})),u=this._rowRects()[a]||{},h=o.map(u,[["top","prev"],["bottom","next"]]),p=o.map(s,[["top","prev"],["bottom","next"]]);return this.cellNav.isInRange(p,h)||(c=i(a)),this.cellNav.setCellMeta(c,d,a,r)}},{key:"_handlePageUp",value:function(e){var i=t.curry(this.cellNav.decrement)(e.dataSize.rows.start,e.viewPort.rows.count);return this._handleVertical(e,i,this.cellNav.getScrollTopPosition)}},{key:"_handlePageDown",value:function(e){var i=t.curry(this.cellNav.increment)(e.dataSize.rows.end,e.viewPort.rows.count);return this._handleVertical(e,i,this._getLastRowPositionForHeight())}},{key:"_handleArrowUp",value:function(e){var i=t.curry(this.cellNav.decrement)(e.dataSize.rows.start,1);return this._handleVertical(e,i,this.cellNav.getScrollTopPosition)}},{key:"_handleArrowDown",value:function(e){var i=t.curry(this.cellNav.increment)(e.dataSize.rows.end,1);return this._handleVertical(e,i,this._getLastRowPositionForHeight())}},{key:"_hasCtrlModifier",value:function(e){return!!e.modifiers&&e.modifiers.ctrlKey}},{key:"_hasCmdModifier",value:function(e){if(e.modifiers)return e.modifiers.meta||e.modifiers.metaKey}},{key:"_handleHome",value:function(e){if(this._hasCtrlModifier(e))return this._handleCtrlHomeEnd(e,!1);if(!this._hasCmdModifier(e)){return this._handleHorizontal(e,(function(){return 0}),this.cellNav.getScrollLeftPosition)}}},{key:"_handleEnd",value:function(e){if(this._hasCtrlModifier(e))return this._handleCtrlHomeEnd(e,!0);if(!this._hasCmdModifier(e)){var t=this._handleHorizontal(e,(function(){return e.dataSize.columns.end}),this._getRightColPositionForWidth());return t.leftScrollFn=this._logicalViewPort.setScrollRightPx,t}}},{key:"_handleCtrlHomeEnd",value:function(e,i){var n=Math.max(0,this.cellNav.getCurrent(e,"rows")),r=e.dataSize.columns.start,a=e.dataSize.rows.start;!0===i&&(r=e.dataSize.columns.end,a=e.dataSize.rows.end);var s=this._rowCellRectsHeaderFallback({row:n})[r]||{},l=this._rowRects()[a]||{},c=this._getScrollRect(),d=this._logicalViewPort.getWidth(),u=o.map(s,[["left","prev"],["right","next"]]),h=o.map(l,[["top","prev"],["bottom","next"]]),p=o.map(c,[["left","prev"],["right","next"]]),f=null,g=null;this.cellNav.isInRange(p,u)||(f=this.cellNav.getScrollRightPosition(d,r,c)),this.cellNav.isInRange(p,h)||(g=this.cellNav.getScrollTopPosition(a));var m=this.cellNav.setCellMeta(g,f,a,r);return m.scrollInPixels.scrollFn=t.curry(this._getRightColPositionForWidth())(r),m.leftScrollFn=this._logicalViewPort.setScrollRightPx,m}},{key:"_handleHorizontal",value:function(e,i,n){var r=Math.max(0,this.cellNav.getCurrent(e,"rows")),a=this.cellNav.getCurrent(e,"columns"),s=i(a),l=this._rowCellRectsHeaderFallback({row:r}),c=l[s]||{},d=this._getScrollRect(),u=o.map(c,[["left","prev"],["right","next"]]),h=o.map(d,[["left","prev"],["right","next"]]),p=null,f=this._rowCellRectsHeaderFallback({row:r,col:a}),g=this.cellNav.getRowPosition(d,f,r,this._logicalViewPort.getHeight());this.cellNav.isInRange(h,u)||(p=n(s,l));var m=this.cellNav.setCellMeta(g,p,r,s);return m.scrollInPixels.scrollFn=t.curry(n)(s),m}},{key:"_handleArrowLeft",value:function(e){var i=t.curry(this.cellNav.decrement)(e.dataSize.columns.start,1),n=this._handleHorizontal(e,i,this.cellNav.getScrollLeftPosition);return n.leftScrollFn=this._logicalViewPort.setScrollLeftPx,n}},{key:"_handleArrowRight",value:function(e){var i=t.curry(this.cellNav.increment)(e.dataSize.columns.end,1),n=this._getRightColPositionForWidth(),o=this._handleHorizontal(e,i,n);return o.leftScrollFn=this._logicalViewPort.setScrollRightPx,o}},{key:"_keyPressed",value:function(e){if(!this._hasModifier(e)){var t=this._handler[e.keyCode];if(t){var i=t(e);i.leftScrollFn=i.leftScrollFn||this._logicalViewPort.setScrollLeftPx,i.topScrollFn=this._logicalViewPort.setScrollTopPx,this._activeCell.setActiveCell(i)}}}}]),c}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(2249)],o=i.dj.d(n,(function(e){"use strict";return function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"_hasModifier",value:function(e){var t=e.modifiers,i=t.ctrlKey,n=t.shiftKey,o=t.altKey,r=t.meta;return i||n||o||r}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({ASYNC:"async",SYNC:"sync"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return{AVAILABLE:{COLUMNS:"columns",ROWS:"rows"}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(6230),i(6231),i(6233),i(267),i(239)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return function(){function a(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this._stateCategoryIndex={},this._stateRangeIndex=new e,this._events={},this._columnDataMapper=new t,this._rowDataMapper=new t,this._dataModel=n,this._viewColumnRange=n,this._rowMetaData=new i({rankType:"row",dataViewMapper:this._rowDataMapper}),this._columnMetaData=new i({rankType:"column",dataViewMapper:this._columnDataMapper}),this._columnSpanningMetaData=new i({rankType:"column",dataViewMapper:this._columnDataMapper}),this._ownedListeners=[],this.setColumnHeaders([]),this._manageDataModelPaging=this._dataModel.managePaging.bind(this._dataModel),this._addOwnListeners(this._dataModel.on("pagedDataChanged",this._handlePagedDataChanged.bind(this))),this._addOwnListeners(this._dataModel.on("dataSizeChanged",this._emitDataSizeChanged.bind(this)))}return r(a,[{key:"viewRangeListToDataRangeList",value:function(e){var t=e.slice(0);return this._columnDataMapper.viewToModelRangeMapping(t)}},{key:"setRowMetaData",value:function(e,t,i){this._rowMetaData.setViewMetaData(e,t,i),this._emitViewDataChanged()}},{key:"deleteRowMetaData",value:function(e,t){this._rowMetaData.deleteViewMetaData(e,t),this._emitViewDataChanged()}},{key:"setColumnMetaData",value:function(e,t,i){this._columnMetaData.setViewMetaData(e,t,i),this._emitViewDataChanged()}},{key:"deleteColumnMetaData",value:function(e,t){this._columnMetaData.deleteViewMetaData(e,t),this._emitViewDataChanged()}},{key:"setRenderType",value:function(e){var t={type:e};this._emit("renderTypeChanged",t)}},{key:"getStateForCustomEvent",value:function(){return{isEditing:!!this.getStateByKey(n.protected.EDIT_STATE)}}},{key:"_emitDataSizeChanged",value:function(){this._emit("dataSizeChanged",{dataSize:this.dataSize})}},{key:"_handlePagedDataChanged",value:function(e){var t=this.getStateByKey("viewBuffer");t&&(this._viewData=this._columnDataMapper.modelToViewDataMapping(e.pagedData,e.cellMetaData,t.rangeList),this._rowMetaData.setRangeList(t.rangeList),this._columnMetaData.setRangeList(t.rangeList),this._columnMetaData.setDataMetaData(e.columnMetaData),this._rowMetaData.setDataMetaData(e.rowMetaData),this._columnSpanningMetaData=e.columnSpanningMetaData,this._emitViewDataChanged())}},{key:"_emitViewDataChanged",value:function(){var e=this.getStateByKey("viewBuffer");if(e){var t=this._columnMetaData.getUnifiedMetaData(),i=this._rowMetaData.getUnifiedMetaData(),o=this._columnMetaData.getMetaDataRangeList(),r=this._rowMetaData.getMetaDataRangeList();if(this._viewData&&this._viewData.length===o.length&&this._viewData.length===r.length){for(var a=0;a<this._viewData.length;a+=1){var s=this._viewData[a].range,l=o[a],c=r[a];if(s.columns.start!==l.columns.start||s.columns.end!==l.columns.end||s.rows.start!==c.rows.start||s.rows.end!==c.rows.end)return}this.setState(n.protected.VIEW_DATA,this._viewData),this.setState(n.protected.ROW_METADATA,i),this._emit("viewDataChanged",{viewData:this._viewData,columnMetaData:t,rowMetaData:i,rangeList:e.rangeList,columnSpanningMetaData:this._columnSpanningMetaData})}}}},{key:"sort",value:function(e){for(var t=[],i=0;i<e.length;i+=1){var n=e[i];if(n.columnIndex<this.dataSize.columns.start||n.columnIndex>this.dataSize.columns.end)throw new Error("columnIndex is out of bounds");var o={columnIndex:this._columnDataMapper.viewToDataIndex(n.columnIndex),order:n.order,compare:n.compare};t.push(o)}this._dataModel.sort(t)}},{key:"setColumnHeaders",value:function(e){if(!e||0===e.length){if(this._columnDataMapper.viewColumnIndexToDataIndex=[],this._viewColumnRange=this._dataModel,this._dataModel.setHeaders)this._dataModel.setHeaders(e);else{var t=[o.range().setColumns(0,-1).setRows(0,1/0)];this.setState("columnHeaders",[],t)}return this._columnMetaData.setViewHeaders([]),void this._emitDataSizeChanged()}var i=[o.range().setColumns(0,e.length-1).setRows(0,1/0)];this._viewColumnRange={dataSize:i[0]},this._columnDataMapper.viewColumnIndexToDataIndex=e.map((function(e){return e.dataIndex})),this._columnMetaData.setViewHeaders(e),this._dataModel.setHeaders?this._dataModel.setHeaders(e):this.setState("columnHeaders",e,i)}},{key:"setRowHeaderConfig",value:function(e){this._rowHeaderConfig=e;var t=!(!e||!e.displayIndices),i=!(!e||!e.displayRowLabel);this.setState(n.DISPLAY_ROW_HEADER_INDICES,t),this.setState(n.displayRowHeader,i);var o=e&&e.rowHeaderWidth||0;this.setState(n.rowHeaderWidth,o)}},{key:"getRowHeaderConfig",value:function(){return this._rowHeaderConfig}},{key:"setSpanningHeaders",value:function(e){this._dataModel.setSpanningHeaders&&this._dataModel.setSpanningHeaders(e)}},{key:"getSpanningHeaders",value:function(){return this._dataModel.getSpanningHeaders?this._dataModel.getSpanningHeaders():{}}},{key:"updateHeader",value:function(e){return this._dataModel.updateHeader(e)}},{key:"updateRowHeader",value:function(e,t){return this._dataModel.updateRowHeader(e,t)}},{key:"getColumnHeaders",value:function(){return this._dataModel.getHeaders?this._dataModel.getHeaders()||[]:this.getStateByKey("columnHeaders").value}},{key:"setState",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(["all","keys"].indexOf(e)>=0)throw new Error("The key '"+e+"' is reserved, and cannot be used to setState");var o=n.slice(),r={value:t,rangeList:o,pointerList:[]};this._deleteState(e),this._stateCategoryIndex[e]=r,o.forEach((function(t){var n=i._stateRangeIndex.insert(t,e);r.pointerList.push(n)})),this._emit(e,this.getStateByKey(e))}},{key:"deleteState",value:function(e){this._deleteState(e),this._emit(e)}},{key:"_deleteState",value:function(e){var t=this;if(this._stateCategoryIndex[e]){var i=this._stateCategoryIndex[e];delete this._stateCategoryIndex[e],i.pointerList.forEach((function(e){t._stateRangeIndex.remove(e)}))}}},{key:"getStateByKey",value:function(e){var t=this._stateCategoryIndex[e];return t?{value:t.value,rangeList:t.rangeList.slice()}:null}},{key:"getStateByRangeList",value:function(e){var t=this,i={keys:[]};return e.forEach((function(e){t._stateRangeIndex.forEach((function(n){var r=n.key,a=n.value;i[a]||o.doesRangeIntersect(e,r)&&(i[a]=t.getStateByKey(a),i[a].firstMatch=r,i.keys.push(a))}))})),i}},{key:"on",value:function(e,t){var i=this;this._events[e]||(this._events[e]=[]),this._events[e].push(t);var n={remove:function(){var o=i._events[e].indexOf(t);i._events[e].splice(o,1),n.remove=function(){return null}}};return n}},{key:"_addOwnListeners",value:function(e){this._ownedListeners.push(e)}},{key:"_removeOwnListeners",value:function(){this._ownedListeners.forEach((function(e){return e.remove()}))}},{key:"destroy",value:function(){this._removeOwnListeners(),this._dataModel=null,this._events={}}},{key:"_emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._events.all,n=this._events[e],o=Object.getOwnPropertyNames(t),r={};o.forEach((function(e){r[e]=t[e]})),r.eventName=e;var a=function(e){e&&e.forEach((function(e){e(r)}))};a(n),a(i)}},{key:"_viewColumnRange",set:function(e){this._viewColumnObject=e},get:function(){return this._viewColumnObject.dataSize.columns}},{key:"viewBuffer",set:function(e){var t=e.size,i=e.rangeList.slice(),n=this._columnDataMapper.viewToModelRangeMapping(i);this.setState("viewBuffer",t,i),this._manageDataModelPaging(n)},get:function(){var e=this.getStateByKey("viewBuffer");return{size:e.value,rangeList:e.rangeList}}},{key:"viewPort",set:function(e){var t=e.size,i=e.rangeList;this.setState("viewPort",t,i)},get:function(){var e=this.getStateByKey("viewPort");return{size:e.value,rangeList:e.rangeList}}},{key:"dataSize",get:function(){var e=o.range();return e=(e=e.setColumns(this._viewColumnRange.start,this._viewColumnRange.end)).setRows(this._dataModel.dataSize.rows.start,this._dataModel.dataSize.rows.end)}}]),a}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(6234),i(2259),i(2260),i(2261),i(6243),i(267),i(739),i(6284),i(6285),i(327)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c,d){"use strict";return function(){function u(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u)}return r(u,null,[{key:"setViewModel",value:function(o,r,s,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},d=new o(s),u=new r(d);u.setState("lookAheadRowBuffer",3),u.viewPort={size:{left:0,top:0,width:0,height:0},rangeList:[l.range().setRows(0,11).setColumns(0,5)]};var h=c.CellComponent,p=c.RowComponent,f=c.TBodyComponent,g=c.TooltipComponent,m=c.widgetType;return u.setState(a.protected.component.CELL,h||e),u.setState(a.protected.component.ROW,p||t),u.setState(a.protected.component.TBODY,f||i),u.setState(a.protected.WIDGET_TYPE,m||"Table"),u.setState(a.protected.component.TOOLTIP,g||n),u}},{key:"initializeTableView",value:function(e,t,i,n,r){var a=new l(e),d=[new c({viewPortItem:e.viewPort.rangeList[0],viewModel:e,dataSize:a})],u={viewModel:e,dataStore:t,viewPortList:d,dataSize:a,options:r};s.parseViewModelWithConfig({viewModel:e,dataSize:a,columnModel:r.columnModel,attributes:r.attributes});var h=Object.keys(i).map((function(e){return new i[e](u)})),p=new o({viewModel:e,options:r,viewPortList:d,dataStore:t,controllers:h,pluginEnum:n});return p.initializeTable(),p}},{key:"mixinFacade",value:function(e,t,i){i=i||"exposedAPI",t.forEach((function(t){if(t[0][i]){var n=t[0][i]();for(var o in n){e[o]=n[o];var r=Object.getOwnPropertyDescriptor(n,o);(r.set||r.get)&&Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))}}}))}},{key:"facadeListeners",value:function(e,t,i){i=i||"emits",t.forEach((function(t){t[0][i]&&t[0][i].forEach((function(i){e._eventMap[i]=t[0]}))}))}},{key:"registerRenderer",value:function(e,t,i,n){return d.curry(u._updateRegistration)("renderer")(e,t,i,n)}},{key:"registerEditor",value:function(e,t,i,n){return d.curry(u._updateRegistration)("editor")(e,t,i,n)}},{key:"setupRegistration",value:function(e,t){e._registrationMap={renderer:{},editor:{}},t.setState(a.REGISTRATION,e._registrationMap)}},{key:"_updateRegistration",value:function(e){return function(t,i,n,o){t._registrationMap[e][n]=o,i.setState(a.REGISTRATION,t._registrationMap)}}}]),u}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2256),i(977),i(250)],o=i.dj.d(n,(function(e,t,i){return i.memo(e,(function(e,i){var n=t.isDeepEqual(e.value,i.value),o=t.isDeepEqual(e.metaData,i.metaData),r=e.useEditorRendererDataFields===i.useEditorRendererDataFields,a=e.renderer===i.renderer;return n&&o&&r&&a}))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1536),i(2257),i(1173),i(841),i(250)],o=i.dj.d(n,(function(e,t,i,n,o){return function(r){var a=o.useRef(),s=r.renderer,l=r.eventCallback,c=r.metaData,d=r.treeNodeRendererClassName,u=void 0===d?"":d,h=r.noToolTip,p=void 0!==h&&h,f=r.treeCellContentClassName,g=void 0===f?"":f,m=r.useEditorRendererDataFields,_=r.value,v=e(l).handleMouseOverWithRenderer,b=n().getDisplayValue(_,i.RENDERER,m),y=p?function(){}:function(e){return v(e.target,"customRender",b,s)};return o.useLayoutEffect((function(){var e=function(e,t,i,n){if(e){var o=e.getDomNode(i,n);return t&&(o.className=t),o}return null}(s,g,b,c);e&&a.current&&!a.current.firstChild?a.current.appendChild(e):e&&a.current&&a.current.firstChild&&t.replaceFirstNode(a.current,e,a.current.firstChild)}),[b,s,c]),o.createElement("span",{className:u,ref:a,onMouseOver:y})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(392)],o=i.dj.d(n,(function(e){var t=[],i=window.requestAnimationFrame,n=!1;function o(e,o,r,a){var s=r.style.display;r.style.display="none",e.insertBefore(o,a),t.push({node:r,display:s}),n||(n=!0,i((function(){n=!1;for(var e=0;e<t.length;e+=1){var i=t[e],o=i.node,r=i.display;o.parentNode&&(o.parentNode.removeChild(o),"none"===o.style.display&&(o.style.display=r))}t=[]})))}return{shouldCellUpdate:function(t,i,n,o){if(JSON.stringify(t.editState)!==JSON.stringify(i.editState))return!0;if(t.focusClass!==i.focusClass)return!0;if(JSON.stringify(t.additionalClass)!==JSON.stringify(i.additionalClass))return!0;if(t.renderer!==i.renderer||t.interactiveRenderer!==i.interactiveRenderer||t.editor!==i.editor)return!0;var r=t.cellData.isEqual(i.cellData),a=t.styleData!==i.styleData;t.styleData instanceof Object&&i.styleData instanceof Object&&(a=!e.shallowEqual(t.styleData,i.styleData));var s=t.cellMetaData.isEqual(i.cellMetaData);return!r||!s||a},replaceFirstNode:function(e,t,i){o(e,t,i,e.firstChild)},replaceLastNode:function(e,t,i){o(e,t,i,null)}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};n=[i(271),i(977),i(250)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(n,o){return function(a){var s=a.eventCallback,l=a.renderer,c=a.cellData,d=a.colIndex,u=a.rowIndex,h=a.cellMetaData,p=void 0!==h&&h;return i.createElement(n,r({},a,{onMouseDown:function(e){return function(e){e.target.hasAttribute("data-clickable")&&e.stopPropagation()}(e)},onClick:function(i){return function(i,n,o,r,a,s,l){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:e.internal.INTERACTIVE_CELL_CLICK,d={},u=r.handleAction({value:n.value,target:i.target});if(l){var h=t.hasModifierKey(i);if(h)return;var p=l.value;u=r.handleAction(n.value,{actionName:"click",target:i.target}),d={node:p,row:a||0,column:s||0,oldValue:u.oldValue,newValue:u.newValue,metaData:n.metaData},u.hasChanged&&o(c,d)}else u&&(d={row:a,column:s,oldValue:u.oldValue,newValue:u.newValue},o(c,d))}(i,c,s,l,u,d,p)},onDoubleClick:function(){},type:o}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(633),i(979),i(1178),i(250)],o=i.dj.d(n,(function(e,t,i,n){"use strict";var o={0:"",1:"mw-table-row-selected"};return function(r){var a=n.useContext(t).dndEnabled,s=r.selectionMap,l=void 0===s?{rows:function(){return 0}}:s,c=r.rowIndex,d=r.className,u=[];a&&l.rows(c)&&u.push(e.SOURCE_SELECTOR);var h=function(e,t){for(var o=e.rowIndex,r=e.data,a=e.focused,s=void 0===a?{}:a,l=e.getEditor,c=e.getRenderer,d=e.getInteractiveRenderer,u=e.setInteractiveRenderer,h=e.customProps,p=e.eventCallback,f=e.headers,g=e.startCol,m=e.endCol,_=e.logicalRowHeight,v=e.focusCached,b=e.component,y=e.editState,C=e.selectionMap,T=e.resizeSelection,E=e.editValidation,S=e.editProcessing,w=e.registration,I=e.displaySearch,A=e.numberOfGutters,x=e.checkboxTreetable,N=e.useEditorRendererDataFields,L=[],D=g;D<=m;D++){var M=D-g,P=f[M]?f[M]:{},O=P?P.styleData:{},R=void 0;if(P.parentId){var k={parentId:P.parentId,colIndex:D,startCol:g,endCol:m,headerIndex:M};R=i.getGroupCellAttribute(k,f)}var F={minWidth:O.minWidth,maxWidth:O.maxWidth,width:O.width,height:_+"px"};L.push(n.createElement(b.cell,{key:D,styleData:F,rowIndex:o,colIndex:D,additionalClass:t,data:r,focused:s,focusCached:v,getEditor:l,getRenderer:c,displaySearch:I,getInteractiveRenderer:d,setInteractiveRenderer:u,editValidation:E,editProcessing:S,customProps:h,eventCallback:p,editState:y,groupAttr:R,selectionMap:C,registration:w,numberOfGutters:A,checkboxTreetable:x,useEditorRendererDataFields:N,resizeSelection:T}))}return L}(r,u),p=function(e,t,i){var n=["mw-table-row"];return n.push(o[e.rows(t)]),i&&n.push(i),n}(l,c,d);return n.createElement("tr",{role:"row","aria-rowindex":c,"data-test-id":c,"data-row-index":c,className:p.join(" ")},h)}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(250),i(239),i(271),i(267),i(738),i(976),i(459),i(632),i(6242)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c){"use strict";var d=function(e,t,i){for(var n=Math.max(e.rows.start,t.rows.start),o=Math.min(e.rows.end,t.rows.end),r=n;r<=o;r+=1)i[r]=1},u=function(e,t,i){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.selection.SELECTED,o=Math.max(e.rows.start,t.rows.start),r=Math.min(e.rows.end,t.rows.end),s=Math.max(e.columns.start,t.columns.start),l=Math.min(e.columns.end,t.columns.end),c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+n},d=l;d>=s;d-=1){for(var u=i[d]||[],h=o;h<=r;h+=1)u[h]=c(u[h]);i[d]=u}},h=function(e){for(var i=e.metadata,o=void 0===i?{selections:[],activeRange:null}:i,r=e.viewBuffer,s=o.selections,l=o.selectionType,c=o.activeRange||t.range(),h=[],p=[],f=0;f<s.length;f+=1)t.doesRangeIntersect(r,s[f])&&(l===n.SELECT_CELLS?u(s[f],r,h):d(s[f],r,p));return u(c,r,h,a.selection.ACTIVE_SELECTED),function(e,t,i){for(var n=Math.max(e.rows.start,t.rows.start),o=Math.min(e.rows.end,t.rows.end),r=Math.min(e.columns.end,t.columns.end),s=i[r]||[],l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+a.selection.ACTIVE_RIGHT_BORDER},c=n;c<=o;c+=1)s[c]=l(s[c]);i[r]=s}(c,r,h),{cellMap:h,cells:function(e){return function(t){return(h[t]||[])[e]||0}},rows:function(e){return p[e]||0}}};return function(t){function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return e.state={triggerEditState:!1,waitForMouseUp:!1},e._handleMouseDown=e._handleMouseDown.bind(e),e._handleMouseEvent=e._handleMouseEvent.bind(e),e._handleFocusOnly=e._handleFocusOnly.bind(e),e._handleClick=e._handleClick.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,t),r(a,[{key:"_makeRowElements",value:function(){for(var t=this.props,i=t.data,n=t.focused,o=void 0===n?{}:n,r=t.getEditor,a=t.getRenderer,s=t.getInteractiveRenderer,l=t.resizeSelection,c=t.setInteractiveRenderer,d=t.customProps,u=t.eventCallback,p=t.headers,f=t.startCol,g=t.endCol,m=t.logicalRowHeight,_=t.component,v=t.startRow,b=t.endRow,y=t.selectionMapFn,C=t.editState,T=t.editValidation,E=t.tableHasFocus,S=t.editProcessing,w=t.getKeyOnRowComponentFn,I=t.metadata,A=t.registration,x=t.displaySearch,N=t.numberOfGutters,L=t.checkboxTreetable,D=t.useEditorRendererDataFields,M=[],P=(y||h)(this.props),O=v;O<=b;O+=1){var R=w?w(d,O):O;M.push(e.createElement(_.row,{key:R,rowIndex:O,selectionMap:P,data:i,editState:C,editValidation:T,editProcessing:S,focusCached:E,focused:o,getEditor:r,getRenderer:a,displaySearch:x,getInteractiveRenderer:s,setInteractiveRenderer:c,customProps:d,eventCallback:u,component:_,startCol:f,endCol:g,headers:p,activeRange:I.activeRange,logicalRowHeight:m,registration:A,numberOfGutters:N,checkboxTreetable:L,useEditorRendererDataFields:D,resizeSelection:l}))}return M}},{key:"_setTranslateX",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e+"px",i="translateX("+t+")";this.tbodyRef.style.transform=i,this.tbodyRef.style.webkitTransform=i,this.tbodyRef.style.width="calc(100% + "+-e+"px)"}},{key:"_getRowRects",value:function(){for(var e=this.tbodyRef.childNodes,t={},i=0;i<e.length;i+=1)t[e[i].getAttribute("data-row-index")]=e[i].getBoundingClientRect();return t}},{key:"_getRowCellRects",value:function(e){var t=e.row,i=e.col,n="[data-row]",o="[data-col]",r="";if(void 0!==t&&void 0!==i)n='[data-row="'+t+'"]',o='[data-col="'+i+'"]',r="";else if(void 0!==t)n='[data-row="'+t+'"]',r="data-col";else{if(void 0===i)throw new Error("You must specify either a row, column, or both");o='[data-col="'+i+'"]',r="data-row"}var a=this.tbodyRef.querySelectorAll("tr "+n+o);if(a.length&&a[0].parentElement.classList.contains("mw-treetable-group-row"))return e.row=e.row+1,this._getRowCellRects(e);for(var s={},l=0;l<a.length;l+=1){var c=a[l];""!==r?s[c.getAttribute(r)]=c.getBoundingClientRect():s=c.getBoundingClientRect()}return s}},{key:"_handleMouseDown",value:function(e,t){var i=t.rowIndex,n=t.colIndex,o=p(t);if(this._setTriggerEditState(o,e),l.isCellInRanges(this.props.metadata.selections,i,n))return this.setState({waitForMouseUp:o}),void this._handleFocusOnly(t);switch(t.cellType){case"TableCell":case"EditableTableCell":this._handleMouseEvent(e,t);break;case"InteractiveTableCell":e.target.hasAttribute("data-clickable")||this._handleMouseEvent(e,t)}}},{key:"_setTriggerEditState",value:function(e,t){var i=this.props,n=i.focused,o=void 0===n?{}:n,r=i.editState,a=i.editProcessing,s=o[e],l=r[e],c=!a,d=!1;s&&!l&&!t.shiftKey&&c&&(d=e),this.setState({triggerEditState:d})}},{key:"_handleFocusOnly",value:function(e){var t={row:e.rowIndex,column:e.colIndex};this.props.eventCallback(i.protected.TABLE_CELL_FOCUS,t)}},{key:"_handleMouseEvent",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"tableCellClick",n=Number(t.rowIndex),r=Number(t.colIndex);e.button===o.MOUSE_LEFT_BUTTON&&this.props.eventCallback&&this.props.eventCallback(i,{row:n,column:r,meta:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey})}},{key:"_handleClick",value:function(e,t){var i=p(t);switch(t.cellType){case"TableCell":case"InteractiveTableCell":break;case"EditableTableCell":this.state.triggerEditState===i&&this._handleMouseEvent(e,t,"enterEditMode")}}},{key:"_handleMouseUp",value:function(e,t){if(this.state.waitForMouseUp){var i=p(t);this.state.waitForMouseUp===i&&(this.setState({waitForMouseUp:!1}),this._handleMouseEvent(e,t))}}},{key:"componentDidMount",value:function(){this.props.eventCallback(i.internal.NODE_SUBSCRIBE,{subscriberFn:this._setTranslateX.bind(this),subscriberId:n.subscriber.TBODY_TRANSFORM,subscribeTo:n.publisher.HEADER_TRANSX,noRender:!0}),this.props.eventCallback(i.protected.ROW_RECTS,{children:this._getRowRects.bind(this),noRender:!0}),this.props.eventCallback(i.protected.ROW_CELL_RECTS,{children:this._getRowCellRects.bind(this),noRender:!0}),this.props.getKeyOnRowComponentFn&&!this.props.eventsToHandle||(this._eventDelegator=new c(this.tbodyRef),this._eventDelegator.delegateEvents(this.props.eventsToHandle||{click:this._handleClick,doubleClick:function(){},mousedown:this._handleMouseDown,mouseup:this._handleMouseUp.bind(this)}))}},{key:"componentWillUnmount",value:function(){this._eventDelegator&&this._eventDelegator.destroyEvents()}},{key:"render",value:function(){var t=this,i=this.props,n=i.translateY,o=i.translateX,r=i.columnClass,a=i.editValidation,s="translateX("+o+"px)",l={transform:s,WebkitTransform:s,top:n+"px"},c="mw-table-tbody "+r;c=a&&a.error?c.concat(" errorState"):c.replace(/ errorState/g,"");var d=this._makeRowElements();return e.createElement("tbody",{ref:function(e){t.tbodyRef=e},className:c,style:l},d)}}]),a}(e.Component);function p(e){return[e.rowIndex,e.colIndex].join(",")}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(271),i(267),i(429),i(250)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(o){function l(){return a(this,l),s(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,o),r(l,[{key:"_dismissTooltip",value:function(i){i.node;var n=i.id;this.props.eventCallback(e.protected.NODE_NOTIFY,{publisherFn:function(){return!0},publisherId:t.publisher.TOOLTIP_DISMISS+n,noRender:!0})}},{key:"_addListeners",value:function(e){var t=e.node,i=e.id,n=this;function o(){t.removeEventListener("mouseleave",o),t.removeEventListener("wheel",o),t.removeEventListener("click",o),n._dismissTooltip({node:t,id:i})}return t.addEventListener("wheel",o),t.addEventListener("click",o),t.addEventListener("mouseleave",o),o}},{key:"_getTipData",value:function(e){var t=e.node,i=e.content,n=e.id,o=t.getBoundingClientRect(),r=window.getComputedStyle(t);return{id:n,node:t,top:o.top,left:o.left+1,right:o.right,width:o.width,textDecoration:r.textDecorationLine||"none",backgroundColor:r.backgroundColor||"rgb(255, 255, 255)",content:i}}},{key:"_unsetPosition",value:function(){this.myTooltip.removeAttribute("style"),this.props.eventCallback(e.internal.NODE_UNSUBSCRIBE,{subscriberId:t.subscriber.TOOLTIP_LEAVE,noRender:!0})}},{key:"_subscribeToDismissal",value:function(i){var n=i.id,o=void 0===n?"":n,r=i.node,a=this._addListeners({id:o,node:r});this.props.eventCallback(e.internal.NODE_SUBSCRIBE,{subscriberFn:this._unsetPosition.bind(this),subscriberId:t.subscriber.TOOLTIP_LEAVE,subscribeTo:t.publisher.TOOLTIP_DISMISS+o,noRender:!0}),this.props.eventCallback(e.internal.NODE_SUBSCRIBE,{subscriberFn:a,subscriberId:t.subscriber.TOOLTIP_GLOBAL_LEAVE,subscribeTo:t.publisher.TOOLTIP_DISMISS,noRender:!0})}},{key:"_setPosition",value:function(e){this.myTooltip.style.top=e.top+"px",this.myTooltip.style.visibility="visible",this.myTooltip.style.textDecoration=e.textDecoration,this.myTooltip.firstChild.style.maxWidth=Math.max(i.dimensions.TOOLTIP_MIN_WIDTH,e.width)+"px",this.myTooltip.firstChild.style.backgroundColor=e.backgroundColor,this.myTooltip.firstChild.textContent=e.content;var t=(this.props.adjustLeftFn||l._setAdjustLeft)(e,this.myTooltip);this.myTooltip.style.left=Math.max(0,t)+"px"}},{key:"componentDidMount",value:function(){var i=this;this.props.eventCallback(e.internal.NODE_SUBSCRIBE,{subscriberFn:function(e){var t=i._getTipData(e);t.content.length>0&&(i._setPosition(t),i._subscribeToDismissal(t))},subscriberId:t.subscriber.TOOLTIP_ENTER,subscribeTo:t.protected.publisher.CELL_ENTER,noRender:!0})}},{key:"render",value:function(){var e=this;return n.createElement("div",{className:"mw-table-tooltip-wrapper",ref:function(t){e.myTooltip=t}},n.createElement("div",{"data-test-id":"mw-table-tooltip",className:"mw-table-tooltip"}))}}],[{key:"_setAdjustLeft",value:function(e,t){var i=e.node.querySelectorAll("[checkbox-label=true]")[0];if(i){var n=i.getBoundingClientRect().left,o=e.node.getBoundingClientRect().right;return o<n&&(n=o),n}return e.left+Math.min(0,document.documentElement.clientWidth-(e.left+t.clientWidth))}}]),l}(n.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}n=[i(250),i(271),i(267),i(738),i(2263),i(1540),i(6262),i(6264),i(1181),i(2267),i(976)],o=i.dj.d(n,(function(e,t,i,n,o,s,l,c,d,u,h){var p=function(e,t,i){for(var n=Math.max(e.columns.start,t.columns.start),o=Math.min(e.columns.end,t.columns.end),r=n;r<=o;r+=1)i.mapping[r]=h.selection.SELECTED},f=function(t,i,n){var o,r=t.label,l=t.styleData,c=t.headerRenderer,h=t.headerEditor,p=t.columnId,f=n.eventCallback,g=n.logicalColWidth,m=n.colResize,_=n.colMenuAffordance,v=n.dragColumns,b=n.sorted,y=void 0===b?[]:b,C=n.sortable,T=n.colEditState,E=n.cellEditState,S=n.scrollNodeIntoView,w=n.groupedColumnHeaders,I=n.setAvatar;l=l||{};var A=(y[t._index]||{}).order,x=h?d:s;return w&&(x=u),e.createElement(x,(a(o={headerEditor:h,headerMeta:t,headerRenderer:c,key:t._index,logicalColWidth:g,setAvatar:I,colIndex:t._index,colIndexEnd:t._index,styleData:l,eventCallback:f,colSelectionMap:i,sorted:A,colResize:m,colMenuAffordance:_,sortable:C},"setAvatar",I),a(o,"name",r),a(o,"columnId",p),a(o,"scrollNodeIntoView",S),a(o,"cellEditState",E),a(o,"colEditState",T===p),a(o,"dragColumns",v),o))},g=function(e){for(var t=e.headers,i=e.spanningColumnHeaders,n=void 0===i?{}:i,o=[],r=function(e){for(var t=e.metadata,i=void 0===t?{selections:[]}:t,n=e.viewBuffer,o=i.selections||[],r={count:0,mapping:[]},a=0;a<o.length;a+=1)o[a].columns.start<=n.columns.end&&o[a].columns.end>=n.columns.start&&p(o[a],n,r);return function(e){return r.mapping[e]||0}}(e),a=void 0,s=0;s<t.length;s+=1)o.push(f(t[s],r,e));return Object.keys(n).length&&(a=l.makeColumnHeaderGroup(n,o,e)),a||o};return function(a){function s(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return e._headerRow={affordanceWidth:0},e._geomObject={scrollLeft:0,translateX:0},e._handleMouseDown=e._handleMouseDown.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,a),r(s,[{key:"_getHeaderRects",value:function(){for(var e=this.theadRef.childNodes[0].querySelectorAll("[data-col-index]"),t={},i=0;i<e.length;i+=1)for(var n=e[i].getAttribute("data-col-index"),o=e[i].getAttribute("data-col-index-end"),r=e[i].getBoundingClientRect(),a=parseInt(n,10),s=parseInt(o,10),l=a;l<=s;l+=1)t[l]=r;return t}},{key:"_clientWidth",value:function(e){return e>0?e+"px":"100%"}},{key:"_publishMinHeight",value:function(){var e=this,t=this.tableRef.offsetHeight;return function(){return t=Math.min(t,e.tableRef.offsetHeight)}}},{key:"_setComputedWidth",value:function(){var e=0,t=this.tableRef,i=this.props.tableAffordanceWidth||0,n=this.headerRef.parentNode;if(this.props.displayRowHeader&&(e=this.headerRef.childNodes[0].offsetWidth),"100%"===this.props.flexWidth)n.style.maxWidth="none";else if(t.scrollWidth>0){var o=t.scrollWidth+e+i;n.style.maxWidth=o+"px"}}},{key:"_setAffordanceWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._headerRow.affordanceWidth=e;var t=this.headerRef.childNodes;0===e?(t[t.length-1].style.width="0px",t[t.length-1].classList.remove("mw-table-top-right-affordance")):(t[t.length-1].style.width=e+"px",t[t.length-1].classList.add("mw-table-top-right-affordance")),this._setComputedWidth()}},{key:"componentDidUpdate",value:function(){this._setComputedWidth()}},{key:"_getGeomObject",value:function(e){var t={flexWidth:this.props.flexWidth,headerList:this.theadRef.childNodes[0].querySelectorAll("[data-col-index]"),headerThead:this.theadRef,noRender:!0};this.props.eventCallback(e,t),this._geomObject=t.result||this._geomObject}},{key:"_getTableWidth",value:function(){return"100%"===this.props.flexWidth?0:(this._getGeomObject(t.internal.TABLE_WIDTH),this._geomObject.physicalWidth||0)}},{key:"_getHeaderRowWidth",value:function(){if(this._getGeomObject(t.internal.TABLE_WIDTH),this._geomObject.physicalWidth>=0)return this.colHeaderContainer.scrollWidth-this.colHeaderContainer.clientWidth>2||0===this.colHeaderContainer.scrollWidth?this._geomObject.physicalWidth:"100%";var e=void 0;if(this.colHeaderContainer.scrollWidth-this.colHeaderContainer.clientWidth>2)e=this.colHeaderContainer.scrollWidth-2;else{if("100%"===this.props.flexWidth)return"100%";e=this.colHeaderContainer.clientWidth}return e||0}},{key:"_getTranslateX",value:function(){return this._getGeomObject(t.internal.COMPUTE_TRANSLATEX),this._geomObject.translateX}},{key:"_setScrollLeft",value:function(e){this._geomObject.scrollLeft!==e&&(this.colHeaderContainer.scrollLeft=e,this._geomObject.scrollLeft=e)}},{key:"_setTranslateX",value:function(e){var t="translateX("+e+"px)";this.theadRef.style.transform=t,this.theadRef.style.webkitTransform=t}},{key:"_setTableWidth",value:function(e){e>0?(this.tableRef.style.width=e+"px",this.tableRef.style.minWidth=e+"px",this.tableRef.style.maxWidth=e+"px"):"100%"===e&&(this.tableRef.style.width=this.props.flexWidth,this.tableRef.style.minWidth=this.props.flexWidth,this.tableRef.style.maxWidth=this.props.flexWidth)}},{key:"_handleMouseDown",value:function(e){var t=function e(t){return"TH"===t.tagName.toUpperCase()?t:t.parentNode?e(t.parentNode):null}(e.target);t&&t.classList.contains("mw-table-header-column")&&!t.classList.contains("mw-table-spanning-column-header")&&e.button===n.MOUSE_LEFT_BUTTON&&o.addTrackingTo(this.colHeaderContainer.getBoundingClientRect(),this.props.eventCallback,{colsOnly:!0})}},{key:"componentDidMount",value:function(){var e=this,n=this.props.scrollNodeIntoView;(void 0===n?{}:n).container=this.colHeaderContainer,this.props.eventCallback(t.internal.NODE_SUBSCRIBE,{subscriberFn:this._setAffordanceWidth.bind(this),subscriberId:i.subscriber.HEADER_RIGHT_AFFORDANCE,subscribeTo:i.publisher.SCROLL_BAR_WIDTH,noRender:!0}),this.props.setDnDNode&&this.props.setDnDNode(this.headerRef.parentElement),this.props.eventCallback(t.internal.NODE_SUBSCRIBE,{subscriberFn:function(t){e.headerRef.style.minHeight=t+"px"},subscriberId:i.subscriber.HEADER_MIN_HEIGHT,subscribeTo:i.publisher.HEADER_ROW_HEIGHT,noRender:!0}),this.props.eventCallback(t.internal.NODE_PUBLISH,{publisherFn:this._getTranslateX.bind(this),publisherId:i.publisher.HEADER_TRANSX,noRender:!0}),this.props.eventCallback(t.internal.NODE_PUBLISH,{publisherFn:this._getHeaderRowWidth.bind(this),publisherId:i.publisher.HEADER_ROW_WIDTH,noRender:!0}),this.props.eventCallback(t.internal.NODE_PUBLISH,{publisherFn:this._getTableWidth.bind(this),publisherId:i.publisher.CALCULATED_TABLE_WIDTH,noRender:!0}),this.props.eventCallback(t.internal.NODE_PUBLISH,{publisherFn:this._publishMinHeight().bind(this),publisherId:i.publisher.HEADER_ROW_HEIGHT,noRender:!0}),this.props.eventCallback(t.internal.NODE_SUBSCRIBE,{subscriberFn:this._setTranslateX.bind(this),subscriberId:i.subscriber.HEADER_TRANSFORMX,subscribeTo:i.publisher.HEADER_TRANSX,noRender:!0}),this.props.eventCallback(t.internal.NODE_SUBSCRIBE,{subscriberFn:this._setScrollLeft.bind(this),subscriberId:i.subscriber.HEADER_SCROLL_LEFT,subscribeTo:i.publisher.SCROLL_COMPONENT_LEFT,noRender:!0}),this.props.eventCallback(t.internal.NODE_SUBSCRIBE,{subscriberFn:this._setTableWidth.bind(this),subscriberId:i.subscriber.HEADER_WIDTH,subscribeTo:i.publisher.HEADER_ROW_WIDTH,noRender:!0}),this.props.eventCallback(t.protected.HEADER_RECTS,{children:this._getHeaderRects.bind(this),noRender:!0}),this._setComputedWidth()}},{key:"render",value:function(){var t=this,i=this.props,n=i.trans3dHeader,o=i.flexWidth,r=i.topLeftRowHeaderLabel,a=i.displayRowHeader,s=i.columnClass,l=i.eventCallback,d=g(this.props),u={WebkitTransform:n,MozTransform:n,msTransform:n,OTransform:n,transform:n,minWidth:o=o||"0px",maxWidth:o,width:o},h=s+" .mw-table-header-thead";return e.createElement("div",{ref:function(e){t.headerRef=e},className:"mw-table-flex-container mw-table-header-wrapper"},a&&e.createElement(c,{topLeftRowHeader:r,eventCallback:l}),e.createElement("div",{className:"mw-table-flex-dynamic-item",onMouseDown:this._handleMouseDown,ref:function(e){t.colHeaderContainer=e}},e.createElement("table",{ref:function(e){t.tableRef=e},style:u,className:"mw-table-header"},e.createElement("thead",{ref:function(e){t.theadRef=e},className:h},e.createElement("tr",{style:{display:"flex",width:"100%"},className:"mw-table-header-row"},d)))),e.createElement("div",null))}}]),s}(e.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(271),i(267),i(1177),i(1539)],o=i.dj.d(n,(function(e,t,i,n){"use strict";var o=function(e){e.preventDefault()},a=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,n=Math.max(0,Math.ceil((t.position-e.maxBorder)/5)<<1)||Math.min(0,Math.ceil((t.position-e.minBorder)/5)<<1);return n<0?(n=Math.min(-1*i,n))<-30?-200:n:n>0?(n=Math.max(i,n))>30?200:n:0};return function(){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),this._containerRect=e.containerRect,this._callback=e.callback,this._rowsOnly=e.options.rowsOnly,this._colsOnly=e.options.colsOnly,this._destroyed=!1,document.addEventListener("selectstart",o,{capture:!0}),this._throttledMoveHandler=n(this._handleMouseMove.bind(this),1e3/30),this._throttledTracking=n(this._trackingUpdate.bind(this),1e3/30),this._destroy=this._destroy.bind(this),this._scrollX=i.map(this._containerRect,[["left","minBorder"],["right","maxBorder"]]),this._scrollY=i.map(this._containerRect,[["top","minBorder"],["bottom","maxBorder"]]),document.addEventListener("mousemove",this._throttledMoveHandler),document.addEventListener("mouseup",this._destroy),window.addEventListener("blur",this._destroy),this._removeByOtherDnD()}return r(s,[{key:"_removeByOtherDnD",value:function(){this._callback(e.internal.NODE_SUBSCRIBE,{subscriberFn:this._destroy,subscriberId:t.subscriber.DND_START,subscribeTo:t.protected.publisher.DND_IN_ACTION,noRender:!0})}},{key:"_handleMouseMove",value:function(e){if(!this._destroyed){var t=i.map(e,[["clientY","position"]]),n=i.map(e,[["clientX","position"]]);this._pointer={x:e.clientX,y:e.clientY},this._yDelta=a(this._scrollY,t),this._xDelta=a(this._scrollX,n,10),this._colsOnly&&(this._yDelta=0),this._rowsOnly&&(this._xDelta=0),window.clearInterval(this._prevInterval),0!==this._xDelta||0!==this._yDelta?this._prevInterval=window.setInterval(this._requestScroll(e),1e3/60):this._throttledTracking(e)}}},{key:"_requestScroll",value:function(t){var i=this,n=t.ctrlKey,o=t.shiftKey,r=t.metaKey;return function(){return i._callback(e.protected.DOCUMENT_MOUSE_MOVE_INTERVAL,{yDelta:i._yDelta,xDelta:i._xDelta,pointer:i._pointer,rowsOnly:i._rowsOnly,colsOnly:i._colsOnly,containerRect:i._containerRect,ctrlKey:n,shiftKey:o,metaKey:r})}}},{key:"_destroy",value:function(){document.removeEventListener("selectstart",o,{capture:!0}),window.clearInterval(this._prevInterval),this._prevInterval=null,document.removeEventListener("mousemove",this._throttledMoveHandler),document.removeEventListener("mouseup",this._destroy),window.removeEventListener("blur",this._destroy),this._destroyed=!0,0===this._xDelta&&0===this._yDelta||this._callback(e.protected.DOCUMENT_MOUSE_UP,{yDelta:this._yDelta,xDelta:this._xDelta,containerRect:this._containerRect,callback:this._callback})}},{key:"_trackingUpdate",value:function(t){var i=t.ctrlKey,n=t.shiftKey,o=t.metaKey;this._callback(e.protected.DATA_AREA_MOUSE_MOVE,{rowsOnly:this._rowsOnly,colsOnly:this._colsOnly,pointer:this._pointer,shiftKey:n,ctrlKey:i,metaKey:o})}}],[{key:"addTrackingTo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new s({containerRect:e,callback:t,options:i})}}]),s}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1178),i(271),i(267),i(633)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(){function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a)}return r(a,null,[{key:"getColumnHeaderTarget",value:function(e){return{dropTarget:n.TARGET_SELECTOR_TABLE_HEADER,columnRegions:n.COLUMN_REGIONS,lifecycle:e}}},{key:"setDropPosition",value:function(e,n){n(t.protected.NODE_NOTIFY,{publisherFn:function(){return e},publisherId:i.protected.publisher.DND_IN_ACTION,noRender:!0})}},{key:"getTableCellTarget",value:function(e){return{dropTarget:n.TARGET_SELECTOR_TABLE_BODY,columnRegions:n.COLUMN_REGIONS,lifecycle:e}}},{key:"getInsertionLineTarget",value:function(e){return{dropTarget:".mw-table-insertion-line",lifecycle:e}}},{key:"getTargetValidation",value:function(t,i,n,o){return function(r,s,l){var c=function(n,r,s){var l=a.getColIndexFromTargetNode(n,r,s),c=l.rightTargetIndex||l.targetIndex;c>t&&(c-=1);var d=e.cellInsideGroup(r.getAttribute("group-attr")),u=e.headerInsideGroup(r,s),h=d||u,p=e.columnDropValidation(t,l,i,h);return o({index:c,valid:p}),p}(r,s,l),d=a.dropHover(r,s,l),u=c?"mw-table-vertical-line":"mw-table-vertical-line-invalid";return Object.assign(d,{lineClass:u}),a.setDropPosition(d,n),c}}},{key:"dropHover",value:function(e,t,i){var n=t.getBoundingClientRect().left;return o(i)&&(n=t.getBoundingClientRect().right),{left:n}}},{key:"getColIndexFromTargetNode",value:function(e,t,i){var n=Number(t.getAttribute("data-col-index")),r=Number(t.getAttribute("data-col-index-end")),a=Number(t.getAttribute("data-col"));return{targetIndex:a||n,rightTargetIndex:o(i)?(a||r)+1:void 0}}},{key:"setDataByType",value:function(e,t,i){var n=i.columnDnDSourceData;n.data.dragSourceType&&(t=n.data.dragSourceType),e.setDataByType(t,n.data.value)}}]),a}();function o(e){return e&&1===e.column}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(804),i(977),i(2264),i(6259),i(271),i(267),i(633)],o=i.dj.d(n,(function(e,t,i,n,o,a,s){"use strict";var l="."+s.SOURCE_SELECTOR,c=void 0;return function(){function d(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d)}return r(d,null,[{key:"createDnDContext",value:function(t){return e.createContext({context:t})}},{key:"setRowDndUtils",value:function(e){c=e}},{key:"startDnD",value:function(t,n){var o=d.createDnDContext(t);return function(t,n,o){var r=o.getData,a=o.allowGlobal,s=void 0!==a&&a,l=o.getAvatar,d=o.startAction,u=o.endAction;t.createDragSource({allowGlobal:s,dragSource:n,lifecycle:{start:function(t,n){var a=function(e){var t=r();t.domNode=e;var i="row";t.columnDnDSourceData&&(i="column");return{data:t,currentDndInProgress:i}}(n),s=a.data,u=a.currentDndInProgress,h=e.NativeType.TEXT,p=o.canDrag;if(Object.keys(s).length>0){switch(u){case"column":i.setDataByType(t,h,s);break;case"row":var f=c(),g=f.setDataByType;if(!(0,f.isDragValid)(n,t))return!1;if(g(t,h,s),p&&!p({dataTransferItem:t}))return!1}var m=function(e,t,i){var n=void 0,o=function(e){var t=e.dndSourceDataToDropOutside,i=e.internalRowDndSourceData,n=e.columnDnDSourceData,o=1;n?o=n.count:(t&&(o=t.count),i&&(o=i.count));return o}(t),r=function(e){var t=e.dndSourceDataToDropOutside;return t?t.data:void 0}(t);if(l){n=l({dataTransferItem:i,count:o,data:r}).node}return{avatarNode:n=n||document.createTextNode(e.textContent),count:o}}(n,s,t);return function(e,t,i){e.setAvatar(t,i)}(t,m.avatarNode,m.count),d({dragItem:t}),!0}return!1},end:function(e,i){c&&c().removeDnDStyle(i,{dropCompleted:!0}),u(),t.destroy()}}})}(o,l,n),document.addEventListener("mouseup",(function(){return d.clearDnDContext(o)})),o}},{key:"addDnDContextTarget",value:function(e,t,i){var n=t.dropTarget,o=t.columnRegions,r=t.lifecycle,a=t.allowGlobal;return n&&(r=d.lifecycleDecorator(r,i),e.createDropTarget({allowGlobal:a,dropTarget:n,columnRegions:o,lifecycle:r})),e}},{key:"addRowDnDTarget",value:function(e,t,i){return(0,c(t).createDropTarget)().map((function(t){d.addDnDContextTarget(e,t,i)})),e}},{key:"getDragScroll",value:function(e){if(t.isSafari()){return function(t,i){window.requestAnimationFrame((function(){n.scroll(i,e,t.getXYCoordinates())}))}}}},{key:"lifecycleAddOn",value:function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return function(){var t=this,n=arguments;i.forEach((function(e){e&&e.apply(t,n)}));var o=e?e.apply(this,arguments):void 0;return o}}},{key:"lifecycleDecorator",value:function(e,t){var i=d.getDragScroll(t);return e.hover=d.lifecycleAddOn(e.hover,i),e}},{key:"debounceCheckForDragOut",value:function(e,t,i){return function(){e.currentDndLifeCycle=t,e.checktimer&&clearTimeout(e.checktimer),e.checktimer=setTimeout((function(){return d.removeInsertionLineOnLastTarget(e,i)}),300)}}},{key:"removeInsertionLineOnLastTarget",value:function(e,t){e.currentDndLifeCycle===s.targetLifeCycle.LEAVE&&t(o.protected.NODE_NOTIFY,{publisherFn:function(){return{}},publisherId:a.protected.publisher.DND_IN_ACTION,noRender:!0})}},{key:"clearDnDContext",value:function(e){return e.destroy()}}]),d}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(271),i(267),i(2265),i(979),i(6260),i(6261),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";return function(s){var l=a.useContext(n).dndNode,c=void 0,d=function(i){s(e.protected.NODE_NOTIFY,{publisherFn:function(){return i},publisherId:t.protected.publisher.DND_IN_ACTION,noRender:!0})};return{startDragSource:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments[3],a=arguments[4],c=function(t){return s(e.internal.DRAG_STARTED,t)},u=function(){d({}),s(e.protected.DRAG_END)},h={getData:t,allowGlobal:o,getAvatar:n,startAction:c,endAction:u,canDrag:r,widgetType:a};return i.startDnD(l,h)},setDropTarget:function(e,t,n){var o=t.targetList;return o?(o.map((function(t){i.addDnDContextTarget(e,t,n)})),e):i.addRowDnDTarget(e,t,n)},setRowDropTarget:function(e,t,n){return i.addRowDnDTarget(e,t,n)},setRowDndUtils:function(e){c=o,"TreeTable"===e&&(c=r),i.setRowDndUtils(c)},changeDragData:function(e,t){c().changeDragData(e,t)}}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(271),i(267),i(1181),i(250)],o=i.dj.d(n,(function(e,t,i,n){return function(i){function n(){return a(this,n),s(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),r(n,[{key:"_handleMouseEnter",value:function(i){var n=this,o=this.renderNode.firstChild,r=this.props,a=r.id,s=r.name;this.state.headerRenderer.getTooltip&&o.offsetWidth<o.scrollWidth&&this.props.eventCallback(e.protected.NODE_NOTIFY,{publisherFn:function(){return{node:i.target,id:"groupedHeader"+a,content:n.state.headerRenderer.getTooltip(s).text,className:"mw-table-header-column"}},publisherId:t.protected.publisher.CELL_ENTER,noRender:!0})}}]),n}(i)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){"use strict";return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"getRoleByWidgetType",value:function(e){return{Table:"grid",TreeTable:"grid"}[e]}},{key:"getTreeNode",value:function(e){var t=e.check,i=e.isExpandable,n=e.isExpanded,o={};return i&&(o.isExpanded=n),o.check=t,o}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(271),i(267),i(738),i(6268),i(2263),i(327),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,a,s){"use strict";return function(l){function c(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return t.handleScroll=t.handleScroll.bind(t),t.handleWheel=t.handleWheel.bind(t),t._handleMouseDown=t._handleMouseDown.bind(t),t._handleMouseDownCapture=t._handleMouseDownCapture.bind(t),t._handleRowHeaderMouseDown=t._handleRowHeaderMouseDown.bind(t),t.setTabIndex=t.setTabIndex.bind(t),t._scrollDims={},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,l),r(c,[{key:"_setRowHeaderScroll",value:function(){this.props.rowHeader&&(this.rowHeader.childNodes[0].scrollTop=this.scrollNode.scrollTop)}},{key:"_getDnDSourceData",value:function(){return{dndSourceDataToDropOutside:this.props.dndSourceData,internalRowDndSourceData:this.props.internalRowDndSourceData}}},{key:"handleWheel",value:function(e){}},{key:"_handleMouseDownCapture",value:function(){this.scrollNode.removeAttribute("tabIndex")}},{key:"_handleMouseDown",value:function(e){e.button===i.MOUSE_LEFT_BUTTON&&e.target!==this.scrollNode?o.addTrackingTo(this.scrollNode.getBoundingClientRect(),this.props.eventCallback):o.addTrackingTo(this.scrollNode.getBoundingClientRect(),(function(){return 0}));var t=this.props.dragRows||this.props.reorderRows||this.props.reparentRows,n=this.props.reparentRows||this.props.reorderRows;if(t){var r=this.props.createDnDSource(this._getDnDSourceData.bind(this));n&&this.props.createDnDTarget(r,this.scrollNode)}}},{key:"_handleRowHeaderMouseDown",value:function(e){var t=this;e.button===i.MOUSE_LEFT_BUTTON&&o.addTrackingTo(this.rowHeaderColumn.getBoundingClientRect(),this.props.eventCallback,{rowsOnly:!0}),this.props.dragRows&&a.toPromise().then((function(){return t.props.createDnDSource(t._getDnDSourceData.bind(t))}))}},{key:"setTabIndex",value:function(e){this.scrollNode.setAttribute("tabIndex","-1")}},{key:"handleScroll",value:function(t){if(this.scrollNode===t.target){var i={noRender:!0,target:{scrollTop:t.target.scrollTop,scrollLeft:t.target.scrollLeft}};this.props.eventCallback&&(this._setRowHeaderScroll(),this.props.eventCallback(e.internal.TABLE_SCROLL,i))}}},{key:"_getScrollAffordanceWidth",value:function(e){var t=this.scrollNode.offsetWidth-this.scrollNode.clientWidth;return t>0?(this._scrollDims.scrollbarWidth=this._scrollDims.scrollbarWidth||t,this.myScrollComponent.classList.remove("mw-table-has-hidden-vertical-scrollbar"),this._scrollDims.scrollbarWidth):this.scrollNode.scrollHeight>this.scrollNode.offsetHeight?(this.myScrollComponent.classList.add("mw-table-has-hidden-vertical-scrollbar"),0):(this.myScrollComponent.classList.remove("mw-table-has-hidden-vertical-scrollbar"),0)}},{key:"_getScrollAffordanceHeight",value:function(){var e=this.scrollNode.offsetHeight-this.scrollNode.clientHeight;return e>0?(this.myScrollComponent.classList.add("mw-table-has-horizontal-scroll"),this.myScrollComponent.classList.remove("mw-table-has-hidden-horizontal-scrollbar"),this._scrollDims.scrollbarHeight=this._scrollDims.scrollbarHeight||e,this._scrollDims.scrollbarHeight):this.scrollNode.scrollWidth>this.scrollNode.offsetWidth?(this.myScrollComponent.classList.remove("mw-table-has-horizontal-scroll"),this.myScrollComponent.classList.add("mw-table-has-hidden-horizontal-scrollbar"),0):(this.myScrollComponent.classList.remove("mw-table-has-horizontal-scroll"),this.myScrollComponent.classList.remove("mw-table-has-hidden-horizontal-scrollbar"),0)}},{key:"_setScrollAffordanceHeight",value:function(e){var t=this.rowHeader.childNodes[1];e>0?t.classList.add("mw-table-bottom-left-affordance"):t.classList.remove("mw-table-bottom-left-affordance"),t.style.height=e+"px"}},{key:"_getScrollLeft",value:function(){return this.scrollNode.scrollLeft}},{key:"componentDidMount",value:function(){var i=this,n=this.props.scrollNodeIntoView;(void 0===n?{}:n).scrollNode=this.scrollNode,this.props.eventCallback(e.internal.NODE_PUBLISH,{publisherFn:this._getScrollAffordanceHeight.bind(this),publisherId:t.publisher.SCROLL_BAR_HEIGHT,noRender:!0}),this.props.setDnDNode&&this.props.setDnDNode(this.myScrollComponent.parentElement),this.rowHeader&&(this.props.eventCallback(e.internal.NODE_SUBSCRIBE,{subscriberFn:function(e){i.rowHeader.style.maxWidth=e+"px",i.rowHeader.style.minWidth=e+"px"},subscribeTo:t.publisher.ROW_HEADER,subscriberId:t.subscriber.ROW_HEADER_PARENT,noRender:!0}),this.props.eventCallback(e.internal.NODE_SUBSCRIBE,{subscriberFn:this._setScrollAffordanceHeight.bind(this),subscribeTo:t.publisher.SCROLL_BAR_HEIGHT,subscriberId:t.subscriber.TABLE_BOTTOM_LEFT_AFFORDANCE,noRender:!0})),this.props.eventCallback(e.internal.NODE_PUBLISH,{publisherFn:this._getScrollLeft.bind(this),publisherId:t.publisher.SCROLL_COMPONENT_LEFT,noRender:!0}),this.props.eventCallback(e.internal.NODE_PUBLISH,{publisherFn:this._getScrollAffordanceWidth.bind(this),publisherId:t.publisher.SCROLL_BAR_WIDTH,noRender:!0}),this.props.eventCallback(e.internal.TABLE_MOUNT,{table:this.scrollNode})}},{key:"render",value:function(){var e=this,t=this.props,i=t.table,o=t.rowHeader,r=t.rowHeaderWidth,a={};r&&(a={width:r+"px"});var l=void 0;o&&(l=s.createElement(n,null,s.createElement("div",{className:"mw-table-row-header-container",onMouseDown:this._handleRowHeaderMouseDown,style:a,ref:function(t){e.rowHeader=t}},s.createElement("div",{ref:function(t){e.rowHeaderColumn=t},className:"mw-table-row-header-scrolling-div"},o),s.createElement("div",null))));return s.createElement("div",{ref:function(t){e.myScrollComponent=t},className:["mw-table-flex-container","mw-table-scroll-container"].join(" ")},l,s.createElement("div",{className:"mw-table-inner-wrapper mw-scrolling-div","data-test-id":"scrollNode",tabIndex:"-1",onMouseDownCapture:this._handleMouseDownCapture,onMouseDown:this._handleMouseDown,onMouseUp:this.setTabIndex,onMouseLeave:this.setTabIndex,onScroll:this.handleScroll,onWheel:this.handleWheel,ref:function(t){e.scrollNode=t}},i))}}]),c}(s.Component)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(250)],o=i.dj.d(n,(function(e){var t=e.createContext({});return t.displayName="HeaderContext",t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6274),i(1541),i(593),i(2272)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return n(t(e,i.ROW_HEADER))}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n=[i(271),i(633),i(979),i(459),i(250)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";var s={2:"mw-table-header-row-selected "};return function(e){return function(c){var d=c.eventCallback,u=c.rowIndex,h=c.rowSelectionMap,p=c.additionalClass,f=void 0===p?[]:p,g=o.useContext(i).dndEnabled,m=o.useState(!1),_=a(m,2),v=_[0],b=_[1];f.push(function(e,i,n){var o=i(e),r=s[o];r&&n&&(r+=" "+t.SOURCE_SELECTOR);return r||""}(u,h,g));return o.createElement(e,r({},c,{onMouseDown:function(e){if(!n.isSyntheticRightClick(e)){if(!h(u))return l(e,d,u);b(!0)}},onMouseUp:function(e){if(v)return b(!1),l(e,d,u)},additionalClass:f}))}};function l(t,i,n){var o={row:n,meta:t.metaKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey};return i(e.protected.ROW_SELECTION_CLICK,o)}}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n=[i(979),i(2266),i(250)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(n){return function(o){var s=i.useContext(e),l=s.setDnDEnabled,c=s.dndNode,d=s.setDndNode,u=i.useState([]),h=a(u,2),p=h[0],f=h[1],g=i.useState(null),m=a(g,2),_=m[0],v=m[1],b=i.useState(null),y=a(b,2),C=y[0],T=y[1],E=o.canDrag,S=o.canDrop,w=o.dragAndDrop,I=o.metadata,A=o.setDragData,x=o.setAvatar,N=o.eventCallback,L=o.reorderRows,D=o.reparentRows,M=o.widgetType,P=t(N),O=P.startDragSource,R=P.setRowDropTarget,k=P.changeDragData,F=P.setRowDndUtils;return i.useEffect((function(){l(w),F(M)})),i.useEffect((function(){k(I,{reorderRows:L,reparentRows:D,setDragData:A,selections:p,setSelections:f,setDndSourceData:v,setinternalRowDndSourceData:T})}),[I]),i.createElement(n,r({},o,{createDnDSource:function(e){return O(e,x,!!A,E,M)},createDnDTarget:function(e,t){var i=void 0;L?i="reorderRows":D&&(i="reparentRows");return R(e,{dndType:i,canDrag:E,canDrop:S,widgetType:M,eventCallback:N},t)},dndSourceData:_,internalRowDndSourceData:C,setDnDNode:function(e){c||d(e)}}))}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=this.map.bind(this),this.chain=this.chain.bind(this),this.run=this.run.bind(this),"function"!=typeof t)throw new Error("IO Monad requires a function");this.effect=t}return r(e,[{key:"map",value:function(t){var i=this;return new e((function(){return t(i.effect())}))}},{key:"chain",value:function(e){return e(this.effect())}},{key:"run",value:function(){return this.effect()}}],[{key:"of",value:function(t){return new e((function(){return t}))}},{key:"from",value:function(t){return new e(t)}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(302),i(369),i(652),i(232),i(980),i(6292),i(1542),i(6302),i(6308),i(483),i(235),i(256),i(209)],o=i.dj.d(n,(function(e,t,n,o,r,a,s,l,c,d,u,h,p,f){var g="";return e("variableeditor.ClientPeerManager",[o.Impl],{contextMenuProvider:null,actionDataService:null,constructor:function(e){this.channel="/LegacyVariableEditorManager",this.editable=!0,this.cssSpecifier="mw_type_VariableEditorTable",this.defaultContextId="variable",this.contextMenuProvider=null,e&&(this.messageService=e.messageService,this.executionService=e.executionService,this.helpDataService=e.helpDataService,this.channel=e.channel||"/LegacyVariableEditorManager",void 0===e.editable?this.editable=!0:this.editable=e.editable,void 0===e.ignoreUpdates?this.ignoreUpdates=!1:this.ignoreUpdates=e.ignoreUpdates,this.cssSpecifier=e.cssSpecifier||"mw_type_VariableEditorTable",this.allArgs=e,void 0===e.autoStart?this.autoStart=!0:this.autoStart=e.autoStart),this.topicBase="/ML/"+this.channel,this.allArgs.topicBase=this.topicBase,this.contextUpdateChannel=this.allArgs.contextUpdateChannel=this.topicBase+"/ContextUpdate",this.contextId=this.allArgs.contextId="VariableEditor",t.subscribe("/nonModalDialogClose",this,"purgeAll"),this.manager=n.getInstance(this.channel),this.peerDocuments=[],this.variableListeners=[],this.hasFocus=!1,this.focusedDocument=null,this.actionDataService=null,this.contextUpdateManager=null,this.actionNameSpace="",this.contextNameSpace="",this.managerListeners=[],this._init()},_addDocument:function(e){try{if(e.hasProperty("docID")){this.contextUpdateManager||(this.contextUpdateManager=new d({defaultContextId:this.defaultContextId,contextId:this.contextId,contextUpdateChannel:this.contextUpdateChannel,managerChannel:this.channel})),this.allArgs=h.mergeObjects(this.allArgs,{documentNode:e,rootNode:e&&e.getRoot?e.getRoot():void 0,clientPeerManager:this});var t=e.hasProperty("userContext")?e.getProperty("userContext"):null;if(t&&"string"==typeof t&&"{"===t.charAt(0))try{t=JSON.parse(e.getProperty("userContext"))}catch(e){f.error(e),f.error(e.stack)}e.getProperty("docID")&&this.peerDocuments[e.getProperty("docID")]?this.peerDocuments[e.getProperty("docID")].init(this.allArgs):t&&t.veTempID&&this.peerDocuments[t.veTempID]?(this.peerDocuments[e.getProperty("docID")]=this.peerDocuments[t.veTempID],this.peerDocuments[e.getProperty("docID")].init(this.allArgs),delete this.peerDocuments[t.veTempID]):this.peerDocuments[e.getProperty("docID")]=new c(this.allArgs),this.dispatchEvent("variableAdded",this,{peerDoc:this.peerDocuments[e.getProperty("docID")]})}else f.error("Variable Editor Peer Document missing docID properties in childAdded")}catch(e){f.error(e),f.error(e.stack)}},_init:function(){var e=this;this.manager.addEventListener("rootSet",(function(t){var i=t.target;if(e.dispatchEvent("managerReady",e,{peerManager:e}),i.addEventListener("childAdded",(function(t){e._addDocument(t.data.child)})),i.getChildren&&i.getChildren().length>0)for(var n=0;n<i.getChildren().length;n+=1){var o=i.getChildren()[n];e._addDocument(o)}i.addEventListener("childRemoved",(function(t){if(t.data.child.hasProperty("docID")){var i=t.data.child.getProperty("docID"),n=e.peerDocuments[i];delete e.peerDocuments[i],e.dispatchEvent("variableRemoved",e,{peerDoc:n})}else f.error("Variable Editor Peer Document missing docID properties in childRemoved")})),i.addEventListener("peerEvent",(function(e){e.data.type&&"errormsg"===e.data.type&&(e.data.message?h.displayErrorMessage(e.data.message):f.warn("VE Server error with no message."))})),i.addEventListener("propertySet",(function(t){e._handlePropertySet(t)}),i),e._initializeExistingProperties(i),e._initializeServices(i)}))},_initializeServices:function(){this._initActionDataService(),this._initContextMenuService()},_initActionDataService:function(e){var t=this.getRoot().getProperty("ActionDataServiceNameSpace"),i=t?t.ActionDataServiceNameSpace:"";if(i&&!this.actionDataService){this.actionNameSpace=i;var n=new s({namespace:this.actionNameSpace,mode:"ActAsClient"});this.actionDataService=a.getInstance({namespace:this.actionNameSpace,provider:n}),this.allArgs.actionDataService=this.actionDataService,this.actionDataServiceAdded()}},_initContextMenuService:function(e){var t=(e=this.getRoot()).getProperty("ContextMenuServiceNameSpace"),i=t?t.ContextMenuServiceNameSpace:"";if(i){var n=e.getProperty("ActionDataServiceNameSpace"),o=n?n.ActionDataServiceNameSpace:"";this.contextMenuProvider=l.getMenuProvider({nameSpace:i,contextManagerNamespace:this.channel,contextAppID:this.channel,actionNamespace:o})}},_initializeExistingProperties:function(e){e.hasProperty("HasFocus")&&(this.hasFocus=!0)},getRoot:function(){return this.manager.getRoot()},actionDataServiceAdded:function(){},_handlePropertySet:function(e){if(!(e.data&&e.data.newValue&&e.data.newValue.Source&&"server"!==e.data.newValue.Source)){if("ActionDataServiceNameSpace"!==e.data.key||this.actionDataService)if("ContextMenuServiceNameSpace"!==e.data.key||this.contextMenuProvider){if("HasFocus"===e.data.key){var t=e.data.newValue;void 0!==t.HasFocus&&(this.hasFocus=t.HasFocus,this.dispatchEvent("managerFocusChanged",this,{peerManager:this,hasFocus:this.hasFocus}))}else if("FocusedDocument"===e.data.key){var i,n=e.data.newValue.FocusedDocument;if(n&&this.peerDocuments){for(i in this.peerDocuments)if(this.peerDocuments.hasOwnProperty(i)&&this.peerDocuments[i].varDocID===n){this.focusedDocument=this.peerDocuments[i];break}this.dispatchEvent("variableFocusGained",this,{peerDoc:this.focusedDocument})}else this.focusedDocument&&this.dispatchEvent("variableFocusLost",this,{peerDoc:this.focusedDocument}),this.focusedDocument=null}}else{var o=e.data.newValue;o.ContextMenuServiceNameSpace&&(o=o.ContextMenuServiceNameSpace),this._initContextMenuService()}else{var r=e.data.newValue;r.ActionDataServiceNameSpace&&(r=r.ActionDataServiceNameSpace),this._initActionDataService()}this.hasFocus&&this.focusedDocument&&this.focusedDocument.focus&&this.focusedDocument.focus({src:"manager"})}},setFocusedDocument:function(e){this.focusedDocument=e,this.hasFocus||(g!==e.clientPeerManager.channel&&(p.publish("/datatools/selectionChanged",""),g=e.clientPeerManager.channel),this.manager.getRoot().setProperty("HasFocus",{HasFocus:!0,Source:"client",Channel:this.manager.channel,Document:e.varName})),this.manager.getRoot().setProperty("FocusedDocument",{HasFocus:!0,Source:"client",Channel:this.manager.channel,Document:e.varDocID}),this.hasFocus=!0,this.dispatchEvent("managerFocusChanged",this,{peerManager:this,hasFocus:!0})},removeFocusedDocument:function(e){this.focusedDocument===e&&(this.focusedDocument=[],this.hasFocus&&this.manager.getRoot().setProperty("HasFocus",{HasFocus:!1,Source:"client",Channel:this.manager.channel,Document:e.varName}),this.hasFocus=!1,this.dispatchEvent("managerFocusChanged",this,{peerManager:this,hasFocus:!1}))},openDocument:function(e,t){if(u.logDebug("VE: Open Document"),this.peerDocuments[e])return this.peerDocuments[e];var i;return i=new c(t),this.peerDocuments[e]=i,i},openVariable:function(e,t,i,n){u.logDebug("VE: Open Variable");var o=null;if(!this.ignoreUpdates)for(var a in this.peerDocuments)if(this.peerDocuments.hasOwnProperty(a)){var s=this.peerDocuments[a];e===s.varName&&(o=s)}o||((o=new c).varName=e,this._lastTempID||(this._lastTempID=1),this._lastTempID=this._lastTempID+1,o.tempID="_temp_id_"+this._lastTempID,this.peerDocuments[o.tempID]=o);var l=t||{};l.veTempID=o.tempID;this.manager.getRoot();var d={type:"OpenVariable",variable:e,userContext:l};i&&(d.value=i),n&&(d.workspace=n);var h="openvar('"+e.replace(/'/g,"''")+"');";return r.sendMessage({FEval:{function:"internal.matlab.datatoolsservices.executeCmd",arguments:[h],dequeMode:"ppe"}},{}),o},closeVariable:function(e){u.logDebug("VE: Close Variable");var t=this.manager.getRoot();t.dispatchEvent("peerEvent",t,{type:"RemoveDocument",variable:e,userContext:this.userContext})},closeAllVariables:function(){u.logDebug("VE: Close All Variables");var e=this.manager.getRoot();e.dispatchEvent("peerEvent",e,{type:"CloseAll",userContext:this.userContext})},purgeAll:function(){this.closeFcn()},start:function(){this.manager.setSyncEnabled(!0)},stop:function(){this.manager.setSyncEnabled(!1);var e=this.manager.getRoot();e&&e.destroy&&e.destroy()},destroy:function(){this.inherited(arguments),a.deleteInstance(this.actionNameSpace),this.actionDataService=null,this.contextMenuProvider&&l.destroyMenuProvider(this.contextMenuProvider.namespace);var e=this;Promise.resolve().then((function(){var t=[i(35)];Promise.all(i.dj.w(t)).then(function(t){return function(t){t.deleteManager(e)}.apply(null,i.dj.u(t))}.bind(this))})).catch(i.oe)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6288),i(6289),i(6290),i(6291)],o=i.dj.d(n,(function(e,t){return t(e,"datatoolsservices/l10n/nls/datatoolsservices",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("datatoolsservices.ActionService.Remote.PeerActionProvider",[],{_actionNode:null,constructor:function(e){this._actionNode=e,this._initListeners()},_initListeners:function(){this._actionNode.addEventListener("peerEvent",this._handlePeerEvent.bind(this)),this._actionNode.addEventListener("propertySet",this._handlePropertySet.bind(this))},_handlePeerEvent:function(e){e.data&&"executionStatus"===e.data.type&&"server"===e.data.source&&this.onActionExecutionStatusChange(e.data)},_handlePropertySet:function(e){var t=e.target,i=e.data.newValue;"object"==typeof i&&i.hasOwnProperty("value")&&(i=i.value),this.onActionChanged({actionID:t.getProperty("id"),key:e.data.key,oldValue:e.data.oldValue,newValue:i,originator:e.originator})},onActionExecutionStatusChange:function(e){},onActionChanged:function(e){},executeAction:function(e){this._actionNode.dispatchEvent("peerEvent",this._actionNode,e)},updateProperties:function(e){Object.keys(e).length>0&&(Object.keys(e).forEach((function(t){var i={source:"client",value:e[t]};e[t]=i})),this._actionNode.setProperties(e,"client"))},destroy:function(){this._actionNode.destroy(),this._actionNode=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(6294),i(2279),i(6296),i(6297),i(6298),i(331),i(354),i(232),i(576),i(471),i.dj.c(e.i)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e("datatoolsservices.ContextMenuService.ContextMenuBuilder",[i],{_imageUrl:h.toUrl("../images"),CUSTOM_CONTEXT_MENU_RESOURCE_FILE:"DDTCustomContextMenuRegistration",constructor:function(e){this._contextMenuMap={},this._contextMap={},this.namespace=e.nameSpace,this._customContextMenuData=[],this._catalogEntries={}},constructMenuItems:function(e){this.isReady().then(()=>{e&&Object.keys(e).length>0&&(this._contextMap[this.namespace]={},e.Attributes&&e.Attributes.hasOwnProperty("IconPath")&&(this._imageUrl=e.Attributes.IconPath),this.parseMenuItems(e)),this._customContextMenuData.length>0&&this._customContextMenuData.forEach(function(e){this.parseMenuItems(e)}.bind(this))})},loadCustomMenuItems:function(){var e=d.getRegistrationFramework(),t={registered:function(e){e.resourcesFileContents&&(this.i18nCustomContextMenuData(e.resourcesFileContents),this.parseMenuItems(e.resourcesFileContents))}.bind(this),enabled:function(e){e.resourcesFileContents&&(this.i18nCustomContextMenuData(e.resourcesFileContents),this.parseMenuItems(e.resourcesFileContents))}.bind(this)},i={resourceName:this.CUSTOM_CONTEXT_MENU_RESOURCE_FILE};e.subscribe(t,i).then(function(e){e.resourcesFilesData&&e.resourcesFilesData.length>0&&e.resourcesFilesData.forEach(function(e){var t=e.resourcesFileContents;this.i18nCustomContextMenuData(t),this._customContextMenuData.push(t)}.bind(this))}.bind(this))},getMenuMap:function(){return this._contextMap},getDetailedMenuMap:function(){return this._contextMenuMap},parseMenuItems:function(e){var t=this,i=e.Children;Array.isArray(i)||(i=[i]),i.forEach((function(i){var n=i.Name,o=e.Attributes.ID,r=i.Attributes.ID,a=t._getContextMenuFromParent(o);if("Action"===n){var s=t._constructSubMenuItem(i,e);s&&a.push(s)}else if("ActionGroup"===n)t._createActionGroupItem(o,a,i),t.parseMenuItems(i);else if("Context"===n){t._contextMap[t.namespace][r]=Object.assign(i.Attributes,{ContextMenuItems:[]}),t.parseMenuItems(i)}else"MenuSeparator"===n&&t._createMenuSeparator(o,a)}))},i18nCustomContextMenuData:function(e){if(e.hasOwnProperty("messageIdGroup")){var t=e.messageIdGroup;this._catalogEntries=Object.assign(this._catalogEntries,t)}},_createMenuSeparator:function(e,t){var i=new l({tag:"ContextMenuSeparator"}),n=this._contextMenuMap[e];if(n&&n.popUpMenu){var o=n.popUpMenu.menu;this._isValidPosForSeparator(o.getChildren())&&o.addChild(i)}else this._isValidPosForSeparator(t)&&t.push(i)},_isValidPosForSeparator:function(e){return!(e.length>0)||"ContextMenuSeparator"!==e[e.length-1].Tag},_createActionGroupItem:function(e,t,i){var n=i.Attributes,o=n.ID,r=this._contextMenuMap[e]?this._contextMenuMap[e].popUpMenu:null;if(this._contextMenuMap[o]={menuItems:t,popUpMenu:r},n.hasOwnProperty("Expanded")&&!n.Expanded){r=this._createPopUpMenuItem(i,e);var a=this._contextMenuMap[e];a&&a.popUpMenu?a.popUpMenu.menu.addChild(r):t.push(r)}},_createPopUpMenuItem:function(e){var t=this._getMenuAttributes(e),i=new s({}),n=new r({featureId:t.menuId,text:t.displayName,action:t.menuAction,menu:i,icon:t.icon||"",groupID:t.groupID});return this._contextMenuMap[t.menuId].popUpMenu=n,n},_getContextMenuFromParent:function(e){var t=this._contextMap[this.namespace];if(t){if(t[e])return t[e].ContextMenuItems;if(this._contextMenuMap[e]&&this._contextMenuMap[e].menuItems)return this._contextMenuMap[e].menuItems}},_constructSubMenuItem:function(e,t){var i=this._getMenuAttributes(e);i.displayName="CustomContextMenuAction"===i.menuId?this._catalogEntries[i.menuItemID]:i.displayName;var n=t.Attributes.ID,o=this._createMenu(i);if(!this._contextMenuMap[n]||!this._contextMenuMap[n].popUpMenu)return o;this._contextMenuMap[n].popUpMenu.menu.addChild(o)},_getMenuAttributes:function(e){var t=e.Attributes.ID,i=e.Attributes.DisplayName||t,n=Object.assign({menuId:t,displayName:i,isChecked:e.Attributes.Checked||!1,isDefault:!0===e.Attributes.default||void 0,groupID:e.Attributes.groupID||void 0,menuItemID:e.Attributes.menuID},this.inherited(arguments));return e.Attributes.hasOwnProperty("Shortcut")&&(n.shortcut=e.Attributes.Shortcut),e.Attributes.hasOwnProperty("icon")&&(n.icon=e.Attributes.icon),e.Attributes.hasOwnProperty("matlabFn")&&(n.matlabFn=e.Attributes.matlabFn),n},_createMenu:function(e){var t,i=Object.assign({featureId:e.menuId,text:e.displayName},e);return t=e.isChecked?new o(i):e.matlabFn?new a(i):new n(i),this._contextMenuMap[e.menuId]=t,t},destroy:function(){Object.keys(this._contextMenuMap).forEach((function(e){var t=this._contextMenuMap[e];t&&t.destroy&&t.destroy()}),this),this._contextMenuMap={},this._contextMap={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2280),i(203),i(288)],o=i.dj.d(n,(function(e,t,i){return t("datatoolsservices.ContextMenuService.ActionMenuItem",[i,e],{_MENU_ENABLED_PROP_NAME:"MenuActionEnabled",_addActionListeners:function(){this.inherited(arguments),this.action.addEventListener("onMenuActionEnabledChange",this.onMenuActionEnabledChange.bind(this))},onMenuActionEnabledChange:function(e){var t=JSON.parse(e.target.newValue);this.onMenuActionEnabledStateChanged(t,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(235),i(203),i(204)],o=i.dj.d(n,(function(e,t,i,n){return i("datatoolsservices.ContextMenuService.ActionMenuItemBase",[],{constructor:function(e){this.allArgs=e,this.menuItemID=this.allArgs.menuItemID,(e.menuItemID||e.menuId)&&(this.tag=this.menuItemID||e.menuId)},postCreate:function(e){this.inherited(arguments),this.action&&(this.on("click",n.hitch(this,"_executeMenuAction")),this._addActionListeners(),this.disabled=!this.action.getProperty("enabled"),this._updateMenuEnabledState()),this.allArgs.shortcut&&this.set("shortcut",this.allArgs.shortcut),this._setStateClass()},_updateMenuEnabledState:function(){if(this.action.hasProperty(this._MENU_ENABLED_PROP_NAME)){var e=JSON.parse(this.action.getProperty(this._MENU_ENABLED_PROP_NAME));this.disabled=!!e.hasOwnProperty(this.menuItemID)&&!e[this.menuItemID]}},_addActionListeners:function(){this.action.addEventListener("onenabledChange",this.onActionEnabledChange.bind(this))},onMenuActionEnabledStateChanged:function(e,t){e.hasOwnProperty(this.menuItemID)&&(this.disabled=!e[this.menuItemID],this._setStateClass(),this._onEnabledStateChanged&&this._onEnabledStateChanged(t))},onActionEnabledChange:function(e){this.disabled=!e.target.newValue,this._setStateClass(),this._onEnabledStateChanged&&this._onEnabledStateChanged(e)},_executeMenuAction:function(t){var i=e.getEnclosingWidget(t.target);if(i&&i.featureId){var n=this._getActionCallbackParams(t);n?this.action.execute(n):this.action.execute()}},_getActionCallbackParams:function(e){return{menuID:this.menuItemID}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1545),i(1548)],o=i.dj.d(n,(function(e,t,i){return e("datatoolsservices.Data.PubSubDataStore",[t],{"-chains-":{constructor:"manual"},constructor:function(e,t){var n=new i(e),o=this.getInherited(arguments);o.call(this,n,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(530),i(203),i(212),i(230)],o=i.dj.d(n,(function(e,t,i,n){return t("datatoolsservices.Data.RemoteDataProvider",[n],{constructor:function(){this._on=new e,this._getDataPromiseBuffer=[],this._getMetaDataPromiseBuffer=[],this._getSizePromiseBuffer=[],this._setDataPromiseBuffer=[]},getSize:function(){var e=new i((function(){}));return this._getSizePromiseBuffer.push({promise:e}),e},getData:function(e){if(e){var t=new i((function(){}));return this._getDataPromiseBuffer.push({promise:t,startRow:e.rows.start,endRow:e.rows.end,startColumn:e.columns.start,endColumn:e.columns.end}),t}},setViewportRange:function(e){throw new Error("Unimplemented exception")},getMetaData:function(e){var t=new i((function(){}));return this._getMetaDataPromiseBuffer.push({promise:t,range:e}),t},_flushRequestPromiseBuffer:function(e,t,i){var n=[];if(e)for(;e.length>0;){var o=e.pop();void 0===i||i(o,t)?(o.range&&"object"==typeof t&&(t.range=o.range),o.promise.resolve(t)):n.push(o)}return n},setData:function(e,t){if(e){var n=new i((function(){}));return this._setDataPromiseBuffer.push({promise:n,data:t,startRow:e.rows.start,endRow:e.rows.end,startColumn:e.columns.start,endColumn:e.columns.end}),n}},on:function(e,t){return this._on.on(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(230),i(736),i(961),i(2284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n],{constructor:function(){this.own(t(this,"viewReady",this._doSetup))},_doSetup:function(){var e=this.getPeerNode().getProperty("AutoResizeChildren");this.setLayoutManager(e),this.own(t(this.getPeerNode(),"propertiesSet",i.hitch(this,(function(e){e.data.newValues.hasOwnProperty("Visible")&&this.isVisible()&&this.flushNewSizeCache()})))),this.own(t(this,"containerClientAreaSizeChanged",o.throttle(this.handleSizeChanged,o.THROTTLE_DELAY,{leading:!0,trailing:!0}).bind(this))),this.own(t(this,"containerChildAdded",function(e){this.handleChildAdded(e)}.bind(this))),this.own(t(this,"containerChildRemoved",function(e){void 0!==this._listOfChildrenNotReady[e._peerID]&&delete this._listOfChildrenNotReady[e._peerID],this.handleChildRemoved(e)}.bind(this))),this.own(t(this,"containerChildReadiness",function(e){!1===e.state?this._listOfChildrenNotReady[e.peerID]=e.state:(this._listOfChildrenNotReady.hasOwnProperty(e.peerID)&&delete this._listOfChildrenNotReady[e.peerID],this.areChildComponentsReady()&&this.flushNewSizeCache())}.bind(this))),this.addChildReadinessListener(),this._newSizeCache=null,this._listOfChildrenNotReady={}},_AutoResizeChildren:function(e){this.setLayoutManager(e)},areChildComponentsReady:function(){return 0===Object.keys(this._listOfChildrenNotReady).length},addChildReadinessListener:function(){},setLayoutManager:function(e){if(this._isViewInDom()){var t=this.getAutoResizeLayoutType(e);this.layoutManager=a.createLayout(this,t)}},getLayoutManager:function(){return this.layoutManager},_isViewInDom:function(){return document.body.contains(this.widget.domNode)},handleViewInDom:function(){if(this.inherited(arguments),void 0===this.layoutManager){var e=this.getPeerNode().getProperty("AutoResizeChildren");this._setProperties({AutoResizeChildren:e})}},isContainerReadyForResize:function(){return this.isVisible()&&this.areChildComponentsReady()},handleSizeChanged:function(e){void 0!==this.getPeerNode()&&void 0!==e[0]&&void 0!==e[1]&&void 0!==this.layoutManager&&(this.isContainerReadyForResize()?this.layoutManager.handleSizeChanged(e):this._newSizeCache=e)},handleChildAdded:function(e){r.isChildPositionable(e)&&(this._attachListenersForChild(e),void 0!==this.layoutManager&&this.layoutManager.handleChildAdded(e))},handleChildRemoved:function(e){r.isChildPositionable(e)&&void 0!==this.layoutManager&&this.layoutManager.handleChildRemoved(e)},_attachListenersForChild:function(e){this.own(t(e,"modelSidePositionChanged",function(e){void 0!==this.layoutManager&&this.layoutManager.handleChildPropertyChanged(e)}.bind(this)))},getAutoResizeLayoutType:function(e){return"on"===e||!0===e?"AutoLayout":"Default"},flushNewSizeCache:function(){null!==this._newSizeCache&&(this.layoutManager.handleSizeChanged(this._newSizeCache),this._newSizeCache=null)},isVisible:function(){var e=this.getPeerNode().getProperty("Visible");return"on"===e||!0===e},destroy:function(){void 0!==this.layoutManager&&this.layoutManager.destroy(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6341),i(6359),t],o=i.dj.d(n,(function(e,t,i){i.createLayout=function(i,n){var o;switch(n){case"AutoLayout":o=new e(i);break;default:o=new t(i)}return o}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){this.controller=e,this._hasContentChanged=!1},getRepositionableChildren:function(){return null},handleSizeChanged:function(e){throw new Error("handleSizeChanged must be implemented by the concrete subclass")},handleChildAdded:function(e){this._markContentChanged()},handleChildRemoved:function(e){this._markContentChanged()},handleChildPropertyChanged:function(e){if(!e.newValues)throw new Error("eventData for handleChildPropertyChanged expected to have field newValues");var t=["OuterSize","OuterLocation"],i=Object.keys(e.newValues);(i=i.filter((function(e){return-1===t.indexOf(e)}))).length>0&&this._markContentChanged()},_markContentChanged:function(){this._hasContentChanged=!0;for(var e=this.controller.getPeerNode().getParent();e&&e.getController;){if(void 0!==e.getController().layoutManager){e.getController().layoutManager._markContentChanged();break}e=e.getParent()}},hasContentChanged:function(){return this._hasContentChanged},resetContentChanged:function(){this._hasContentChanged=!1},doValidateContainer:function(){this.controller.getNonGraphicsPositionableChildren().forEach((function(e){var t=e.getOuterPositionInPixels();e.setOuterPositionInPixels(t)}),this)},destroy:function(){delete this.controller}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(741)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){this._graph=e,this._relocatedVerticesOrder=[],this._verticesToRelocate=Object.keys(e.vertices)},relocateVertices:function(e){if(0!==e){this._graph.resetVertices(),this._graph.startVertex.setNewLocation(this._graph.startVertex.getOldLocation()),this._graph.endVertex.setNewLocation(this._graph.endVertex.getOldLocation()+e);var t,i,n,o=this._verticesToRelocate.indexOf(this._graph.startVertex.id);if(this._verticesToRelocate.splice(o,1),o=this._verticesToRelocate.indexOf(this._graph.endVertex.id),this._verticesToRelocate.splice(o,1),0===this._relocatedVerticesOrder.length)this._determineNewLocationFunctions();else for(t=0;t<this._relocatedVerticesOrder.length;t++)i=this._relocatedVerticesOrder[t],(n=this._graph.vertices[i]).setNewLocation(n.computeNewLocation())}else this._graph.revertVerticesToInitial()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6345),i(741)],o=i.dj.d(n,(function(e,t,i){var n=function(){var e={};return Object.keys(this.graph.vertices).forEach((function(t){e[t]={cumMeasure:Number.NEGATIVE_INFINITY,previousVertex:null,edgeToPreviousVertex:null,hasRelocatedVertices:!1}}),this),e[this.graph.startVertex.id].cumMeasure=0,e},o=function(e){var t;if(e[this.graph.endVertex.id].cumMeasure>0){t=[];for(var i,n=this.graph.endVertex;n.id!==this.graph.startVertex.id;)i=e[n.id].edgeToPreviousVertex,t.splice(0,0,i),n=e[n.id].previousVertex}else t=null;return t},r=function(e,t,n,o,a){if(0!==e.neighbors.forwardEdges.length){var s=e.neighbors.forwardEdges;void 0!==a&&s.sort(a),s.forEach((function(s){var l=s.toVertex,c=t[e.id].cumMeasure+n(s),d=t[e.id].hasRelocatedVertices||l.getType()===i.COMPONENT&&l.isProcessed(),u=t[l.id].hasRelocatedVertices,h=t[l.id].cumMeasure;o(h,u,c,d)&&(t[l.id].cumMeasure=c,t[l.id].previousVertex=e,t[l.id].edgeToPreviousVertex=s,t[l.id].hasRelocatedVertices=d,r(l,t,n,o,a))}),this)}};return e([t],{constructor:function(e,t){this._nextPath=null,this._measureFcn=t},_getPathWithLargestMeasureAndRelocatedVertices:function(){var e=n.bind(this)(),t=function(e,t){var i=this.graph.vertices[e.toVertex.id],n=this.graph.vertices[t.toVertex.id];return i.isProcessed()&&!n.isProcessed()?-1:!i.isProcessed()&&n.isProcessed()?1:0}.bind(this);return r(this.graph.startVertex,e,this._measureFcn,(function(e,t,i,n){return e===Number.NEGATIVE_INFINITY||n&&!t&&i>0||n===t&&i>e}),t),o.bind(this)(e)},_getPathWithLargestMeasureOnly:function(){var e=n.bind(this)();return r(this.graph.startVertex,e,this._measureFcn,(function(e,t,i,n){return i>e})),o.bind(this)(e)},hasNext:function(){var e=this._getPathWithLargestMeasureAndRelocatedVertices();if(null!==e)this._nextPath=e;else{var t=this._getPathWithLargestMeasureOnly();this._nextPath=null!==t?t:null}return null!==this._nextPath},getNext:function(){return this._nextPath}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6355),i(741)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(){},getSizeIndex:function(){throw new Error("getSizeIndex must be implemented by the subclass")},createContainerVertices:function(e,t){throw new Error("createContainerVertices must be implemented by the subclass")},createComponentVertices:function(e,t){throw new Error("createComponentVertices must be implemented by the subclass")},inDirectNeighborhood:function(e,t,i){throw new Error("inDirectNeighborhoodFcn must be implemented by the subclass")},_createVertex:function(e){return new t(e)},createSeparatorVertices:function(e,t){var n=[],o=this._getComponentProjection(e,t);return this._getSegmentsOfOnes(o).forEach((function(e){var t=Math.round((e[0]+e[1])/2),o=this._createVertex({oldLocation:t,type:i.SEPARATOR,id:"separator"});n.push(o)}),this),n},_getComponentProjection:function(e,t){throw new Error("_getComponentProjection must be implemented by the subclass")},_getSegmentsOfOnes:function(e){var t,i,n=[];e.push(0);var o,r=!1;for(o=0;o<e.length;o++)e[o]&&!r?(t=o,r=!0):!e[o]&&r&&(i=o-1,r=!1,n.push([t,i]));return n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(230),i(2283)],o=i.dj.d(n,(function(e,t,i,n){return e([i,n],{addChildReadinessListener:function(){this.inherited(arguments),void 0!==this.widget&&void 0!==this.widget.GraphicsView?this.widget.GraphicsView.setChildReadinessCallback(function(e){this.emit("containerChildReadiness",e)}.bind(this)):this.own(t(this,"viewReady",function(){void 0!==this.widget&&void 0!==this.widget.GraphicsView&&this.widget.GraphicsView.setChildReadinessCallback(function(e){this.emit("containerChildReadiness",e)}.bind(this))}.bind(this)))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e(null,{pollForViewReady:function(){return Promise.resolve()},interact:async function(e,i,n,o){this._gv.uiTest=!0;const r=new Event("touchstart");Object.assign(r,{changedTouches:[],pageX:o.x||0,pageY:o.y||0});const a=new t;let s;switch(this._gv.uitestPromise=a,this._gv.domNode.dispatchEvent(r),await a,delete this._gv.uitestPromise,delete this._gv.uiTest,e){case"uihover":case"uipress":case"uidoublepress":s=[o];break;case"uiscroll":s=[n.scrolloptions,o];break;case"uidrag":s=[n.dragpath]}await i[e](this._gv.domNode,...s)},_ds2px:function(e){let t=this._gv.domNode.getBoundingClientRect();if(null==this._axesControl)return[e[0],t.height-e[1]];let i={w:t.width,h:t.height};return this._axesControl.dsWorldToView(e,i.w,i.h)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1163)],o=i.dj.d(n,(function(e,t){return e(null,{uipress:function(e){let i=this.widget.domNode;if(this.widget.isInOverflow()){let n=this._peerNode.getParent().getController().widget.dropdownBtn;n.toggleMenu(),t.waitForCondition((function(){return function(e){return e.isMenuOpen()}(n)}),30).then((function(){i.scrollIntoView(),e.uipress(i).then((function(){n.closeMenu()}))}))}else e.uipress(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(845),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e([n,i],{FILE_TYPE:{Unset:-1,ScriptFile:0,FunctionFile:1,ClassDefinitionFile:2,Unknown:3},constructor:function(e,i,n){this._internalDocument=e,this._fileStructureService=n,this._fileType=this.FILE_TYPE.Unset,this._isFileTypeSupported=null,this.initializeSynchronizable(i),this.own(t.after(this._fileStructureService,"onDataUpdated",this._updateFileType.bind(this)))},isFunction:function(){return this.getFileType()===this.FILE_TYPE.FunctionFile},isClass:function(){return this.getFileType()===this.FILE_TYPE.ClassDefinitionFile},isScript:function(){return this.getFileType()===this.FILE_TYPE.ScriptFile||this.getFileType()===this.FILE_TYPE.Unknown},isUnset:function(){return this.getFileType()===this.FILE_TYPE.Unset},getFileType:function(){return this._fileType},onFileTypeChange:function(e,t){},onSupportedFileTypeChange:function(e,t){},_updateFileType:function(){var e=this._fileType,t=this._fileStructureService.getFileType();this._fileType=this._getEnumValue(t),this._fileType!==e&&this.onFileTypeChange(this._fileType,e),this._internalDocument.getState()===this._fileStructureService.getDocumentState()&&this.markClean()},_getEnumValue:function(e){switch(e){case"ClassdefFile":return this.FILE_TYPE.ClassDefinitionFile;default:return this.FILE_TYPE[e]}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(534),i(6425),i(1563),i(553),i(587),i(529),i(624),i(2363),i(2018),i(6552)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return c.start(),e([r],{constructor:function(e,t,i,o,r,a,s,l,c,d,u){this._editorId=e,this._ve_channel=null,this._view=t,this._currentOutputService=i,this._interactiveVariablePopoutHandler=new n(e),this._embeddedOutputsView=o.getEmbeddedOutputsView(),this._codeGenFactory=r,this._outputsModel=a,this._document=s,this._stateHandler=l,this._outputChangeNotifier=c,this._cursorController=d,this._focusService=u,this._setupWidgetRegistry()},_setupWidgetRegistry:function(){i.registerWidgetJSONFile("LiveEditorWidgetRegistryDefaults",u)},getOutputFromData:function(e,t){this._cleanData(e),this._ve_channel=e.ve_channel,this._ve_channel&&this._interactiveVariablePopoutHandler.initialize(this._ve_channel);var i=this._getVariableArgs(e,t),n=this._createVariableOutput(i);return new a(s.ADD_OUTPUT,n)},_createVariableOutput:function(e){return new o(e)},_getVariableArgs:function(e,t){return{data:e,outputMetaData:t,editorId:this._editorId,view:this._view,currentOutputService:this._currentOutputService,embeddedOutputsView:this._embeddedOutputsView,interactiveVariablePopoutHandler:this._interactiveVariablePopoutHandler,outputChangeNotifier:this._outputChangeNotifier,CodeGenFactory:this._codeGenFactory,outputsModel:this._outputsModel,document:this._document,stateHandler:this._stateHandler,cursorController:this._cursorController,focusService:this._focusService}},_getManager:function(e){return c.createManager(e)},_cleanData:function(e){e.value=l.removeControlCharacters(e.value)},destroy:function(){if(this._ve_channel){var e=c.createManager({channel:this._ve_channel,editable:!1});e&&e.destroy()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2295),i(369),i(209),i(232),i(256),i(2297),i(2358)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s,l=0,c={debug:!1,setDebug:function(e){this.debug=e},logDebug:function(e){this.debug&&console.log(e)},runFactoryInitInMATLAB:function(e,t,o){try{var r="VariableEditorUtilsResponse_"+(l+=1);t&&n.registerResponseHandler("EvalResponse:"+r,t,this),o&&n.registerFaultHandler("Eval:"+r,o,this),n.sendMessage({Eval:{mcode:e}},{},r)}catch(e){i.error(e),i.trace(e.stack)}}},d={},u=[],h=!1,p=0;function f(){if(!s){(s=a.createManager({channel:"/VariableEditorManager"})).addEventListener("rootSet",(function(e){c.logDebug("VE: Factory Root Set");var t=e.target,i=t.getProperty("Debug");void 0!==i&&c.setDebug(i.Debug),t.addEventListener("propertySet",(function(e){e.data&&e.data.key&&"Managers"===e.data.key?c.logDebug("VE: Factory Managers Updated"):e.data&&e.data.key&&"Debug"===e.data.key&&c.setDebug(e.data.newValue.Debug)})),t.addEventListener("peerEvent",(function(e){e.data.type&&"FactoryInitialized"===e.data.type?(c.logDebug("VE: Factory Initialized"),g()):e.data.type&&"ManagerCreated"===e.data.type?e.data.Channel&&d[e.data.Channel]&&d[e.data.Channel].start&&d[e.data.Channel].autoStart&&(d[e.data.Channel].start(),c.logDebug("VE: Factory Auto Starting Manager ("+e.data.Channel+")")):e.data.type&&"log"===e.data.type?e.data.message&&c.logDebug("VE: Server Log ("+e.data.message+")"):e.data.type&&"DeleteManager"===e.data.type&&"client"!==e.data.origin&&e.data.channel&&d[e.data.channel]&&(a.deleteManager(d[e.data.channel]),m(d[e.data.channel],!0))})),o.subscribe("variableeditor_client/isDebug",(function(e){var i=t.getProperty("Debug");e&&void 0!==e.Debug&&i&&e.Debug!==i.Debug&&t.setProperty("Debug",{Debug:e.Debug,Source:"client"})})),t&&t.getProperty("Initialized")&&t.getProperty("Initialized").Initialized&&g()}))}return s}function g(){s&&s.allArgs.provider&&s.allArgs.provider.getRoot()&&(u.forEach((function(e,t,i){var n=s.getRoot();c.logDebug("VE: Factory Create Manager From Queue ("+e.channel+")"),n.dispatchEvent("peerEvent",n,e)})),u=[])}function m(e,i){if(!e&&e.channel)return null;var n=f();i||function(e,t){t||(t=f());var i=t.getRoot();i?i.dispatchEvent("peerEvent",i,{type:"DeleteManager",channel:e,origin:"client"}):u.push({type:"DeleteManager",channel:e})}(e.channel,n);var o=e.channel;for(var r in d[e.channel]=null,d)r===e.channel&&d.hasOwnProperty(r)&&delete d[r];t.cleanup(o)}function _(e){if(!e)return null;var t=f();return e.manager&&(t=e.manager),function(e,t,i){var n;i||(i=f()),(n=i.getRoot())?n.dispatchEvent("peerEvent",n,{type:"CreateManager",channel:e,ignoreUpdates:t||!1}):u.push({type:"CreateManager",channel:e,ignoreUpdates:t||!1})}(e.channel,e.ignoreUpdates||!1,t),e.provider}function v(e){e&&!e.isError&&(h=!0)}return{createNewManager:function(e){return f(),e.channel||(p+=1,e.channel="/VE_"+p),d&&d[e.channel]&&!e.forceNewManager||(d[e.channel]=_(e)),d[e.channel]},createManager:function(e){return a.createManager(e)},deleteManager:m,start:function(e){e?c.runFactoryInitInMATLAB("internal.matlab.variableeditor.peer.MF0VMManagerFactory.startup",v):h=!0,f()},isStarted:function(){return h}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(256),i(1185),i(369),i(6430),i(278),i(980),i(235),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e("variableeditor_peer.PeerManager",[n],{peerModelManager:null,_FACTORY_CLASS:"variableeditor_peer/PeerManagerFactory",_PEERMODEL_MANAGER_CHANNEL:"/VariableEditorManager",managerProps:{},hasFocus:!1,constructor:function(e){this.actionDataService=null,this.actionNameSpace="",this.managerProps={},this.hasFocus=!1,this.focusedDocument=null,this.deletedDocIDCache=[]},_addDocument:function(e){try{if(e.hasProperty("docID")){var t=e.getProperty("docID");if(-1===this.deletedDocIDCache.indexOf(t)){this.allArgs=l.mergeObjects(this.allArgs,{documentNode:e,rootNode:e&&e.getRoot?e.getRoot():void 0,varName:e.getProperty("name"),varSize:e.getProperty("displaySize"),size:e.getProperty("size"),varType:e.getProperty("type"),containerType:e.getProperty("containerType"),manager:this});var i=e.hasProperty("userContext")?e.getProperty("userContext"):null;if(i&&"string"==typeof i&&"{"===i.charAt(0))try{i=JSON.parse(e.getProperty("userContext"))}catch(e){c.error(e),c.error(e.stack)}this.documents[t]?this.documents[t].init(this.allArgs):i&&i.veTempID&&this.documents[i.veTempID]?(this.documents[t]=this.documents[i.veTempID],this.documents[t].init(this.allArgs),delete this.documents[i.veTempID]):this.documents[t]=this._createDocument(this.allArgs),this.dispatchEvent("variableAdded",this,{peerDoc:this.documents[t]})}else this.closeVariable(t,e._properties.workspace)}else c.error("Variable Editor Peer Document missing docID properties in childAdded")}catch(e){c.error(e),c.error(e.stack)}},_createPeerModelManager:function(e){this.channel=this._PEERMODEL_MANAGER_CHANNEL,e&&(this.messageService=e.messageService,this.channel=e.channel||this._PEERMODEL_MANAGER_CHANNEL),this.peerModelManager=o.getInstance(this.channel)},_setupPeerModelManagerListeners:function(){var e=this;this.peerModelManager.addEventListener("rootSet",(function(t){var i=t.target;if(e._initProperties(i),i.addEventListener("childAdded",(function(t){e._addDocument(t.data.child)})),i.getChildren&&i.getChildren().length>0){var n=0;for(n=0;n<i.getChildren().length;n+=1){var o=i.getChildren()[n];e._addDocument(o)}}if(i.addEventListener("childRemoved",(function(t){if(t.data.child.hasProperty("docID")){var i=t.data.child.getProperty("docID"),n=e.documents[i];e._removeDocument(i),e.dispatchEvent("variableRemoved",e,{peerDoc:n})}else c.error("Variable Editor Peer Document missing docID properties in childRemoved")})),i.addEventListener("peerEvent",(function(t){e._handlePeerEvent(t)})),i.addEventListener("propertySet",(function(t){e._handlePropertySet(t)}),i),i.hasProperty("ActionsInitialized")&&!e.actionDataService){var r=i.getProperty("ActionsInitialized");e._initActionService(r.ActionsInitialized,"ActAsClient")}e.dispatchEvent("managerReady",e,{peerManager:e}),e._initializeExistingProperties(i)}))},_initializeExistingProperties:function(e){e.hasProperty("HasFocus")&&(this.hasFocus=!0),e.hasProperty("VECmdLineCodeGenEnabled")&&(this.allArgs.VECmdLineCodeGenEnabled=e.getProperty("VECmdLineCodeGenEnabled"))},_removeDocument:function(e){this.documents[e]&&(this.documents[e].destroy(),delete this.documents[e])},_initProperties:function(e){var i=e.getProperties();Object.keys(i).length>0&&t.mixin(this.managerProps,i)},_handlePeerEvent:function(e){e.data.type&&"errormsg"===e.data.type&&(e.data.message?l.displayErrorMessage(e.data.message):c.warn("VE Server error with no message."))},_init:function(e){this.inherited(arguments),this._createPeerModelManager(e),this._setupPeerModelManagerListeners()},getRoot:function(){return this.peerModelManager.getRoot()},hasRoot:function(){return this.peerModelManager.hasRoot()},_initActionService:function(e,t){this.actionNameSpace=e,this.actionDataService=s.getInstance({namespace:e,mode:t})},executeAction:function(e,t){this.actionDataService.executeAction(e,t)},_handlePropertySet:function(e){if(!(e.data&&e.data.newValue&&e.data.newValue.Source&&"server"!==e.data.newValue.Source))if("ActionsInitialized"!==e.data.key||this.actionDataService)if("HasFocus"===e.data.key){var t=e.data.newValue;void 0!==t.HasFocus&&(this.hasFocus=t.HasFocus,this.dispatchEvent("managerFocusChanged",this,{peerManager:this,hasFocus:this.hasFocus}))}else if("FocusedDocument"===e.data.key){var i,n=e.data.newValue.FocusedDocument;if(n&&this.documents){for(i in this.documents)if(this.documents.hasOwnProperty(i)&&this.documents[i].varDocID===n){this.focusedDocument=this.documents[i];break}this.dispatchEvent("variableFocusGained",this,{peerDoc:this.focusedDocument})}else this.focusedDocument&&this.dispatchEvent("variableFocusLost",this,{peerDoc:this.focusedDocument}),this.focusedDocument=null}else"VECmdLineCodeGenEnabled"===e.data.key&&(this.allArgs.VECmdLineCodeGenEnabled=e.data.newValue,Object.keys(this.documents).forEach((function(t){this.documents[t].updateCodeGenEnabled&&this.documents[t].updateCodeGenEnabled(e.data.newValue)}),this));else{var o=e.data.newValue;o.ActionsInitialized&&(o=o.ActionsInitialized),this._initActionService(o,"ActAsClient")}},setFocusedDocument:function(e){this.focusedDocument=e;var t=this.channel;this.hasFocus||(t!==e.manager.channel&&(i.publish("/datatools/selectionChanged",""),t=e.manager.channel),this.hasRoot()&&this.peerModelManager.getRoot().setProperty("HasFocus",{HasFocus:!0,Source:"client",Channel:t,Document:e.varName})),this.hasRoot()&&this.peerModelManager.getRoot().setProperty("FocusedDocument",{HasFocus:!0,Source:"client",Channel:t,Document:e.varDocID}),this.hasFocus=!0,this.dispatchEvent("managerFocusChanged",this,{peerManager:this,hasFocus:!0})},removeFocusedDocument:function(e){this.focusedDocument===e&&(this.focusedDocument=[],this.hasFocus&&this.hasRoot()&&this.peerModelManager.getRoot().setProperty("HasFocus",{HasFocus:!1,Source:"client",Channel:this.channel,Document:e.varName}),this.hasFocus=!1,this.dispatchEvent("managerFocusChanged",this,{peerManager:this,hasFocus:!1}))},setManagerFocus:function(e){e&&!this.hasFocus?(this.hasFocus=!0,this.getRoot().setProperty("HasFocus",{HasFocus:!0,Source:"client",Channel:this.channel})):!e&&this.hasFocus&&(this.hasFocus=!1,this.getRoot().setProperty("HasFocus",{HasFocus:!1,Source:"client",Channel:this.channel}))},openDocument:function(e,t){var i=null;return this.documents[e]?((i=this.documents[e])._updateDocumentWidget(t),i):(t||(t={}),t.manager||(t.manager=this),i=this._createDocument(t),this.documents[e]=i,i)},openVariable:function(e,t,i,n){var o=this._getExistingDoc(e,"varName");if(!o){var r=t||"";this._dispatchOpenvarEvent(e,r,i,n)}return o},_createDocument:function(e){return new r(e)},_dispatchOpenvarEvent:function(e,t,i,n){var o=this.peerModelManager.getRoot(),r={type:"OpenVariable",variable:e,userContext:t};i&&(r.value=i),n&&(r.workspace=n),o&&o.dispatchEvent("peerEvent",o,r)},closeVariable:function(e,t){var i=this.peerModelManager.getRoot();i&&i.dispatchEvent("peerEvent",i,{type:"RemoveDocument",variable:e,userContext:this.userContext,workspace:t})},closeVariableByID:function(e,t){var i=this.peerModelManager.getRoot();i&&i.dispatchEvent("peerEvent",i,{type:"RemoveDocument",docID:e,userContext:this.userContext,workspace:t})},closeAllVariables:function(){var e=this.peerModelManager.getRoot();e&&e.dispatchEvent("peerEvent",e,{type:"CloseAll",userContext:this.userContext})},purgeAll:function(){this.closeFcn()},start:function(){this.peerModelManager.setSyncEnabled(!0)},stop:function(){this.peerModelManager.setSyncEnabled(!1);var e=this.peerModelManager.getRoot();e&&e.destroy&&e.destroy(),o.cleanup(this.channel)},destroy:function(){this.inherited(arguments),this.stop();var e=this,t=require(e._FACTORY_CLASS),i=function(t){t.deleteManager(e)};i(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1543),i(203)],o=i.dj.d(n,(function(e,t){return t("variableeditor_peer.CodePublishingMixin",[],{_startupService:!1,_enableCodePublishing:!1,cmdLineCodePublishSvc:{},_codePublishChannel:null,_codeGenEnabledProp:"VECmdLineCodeGenEnabled",_codePublishingKey:null,init:function(e){this.cmdLineCodePublishSvc={},this._startupService=!(!e||!e.enableCodePublishing)&&e.enableCodePublishing,this.inherited(arguments),this._codePublishChannel=this._getCodePublishingChannel(e.manager||this.manager),this._startupService&&this.updateCodeGenEnabled(e[this._codeGenEnabledProp])},updateCodeGenEnabled:function(e){if(e!==this._enableCodePublishing&&(this._enableCodePublishing=e,this._codePublishingKey)){var t=this.cmdLineCodePublishSvc[this._codePublishingKey];t&&t.setEnabled(this._enableCodePublishing)}},addView:function(e){this._codePublishingKey=this.propertyObj&&this.propertyObj.hasOwnProperty("name")?this.propertyObj.name:e.varName,this.addCodePublishHandle()},removeView:function(){this.inherited(arguments),this._codePublishingKey&&this.cmdLineCodePublishSvc[this._codePublishingKey]&&this.removeCodePublishHandle()},addCodePublishHandle:function(){if(this._startupService&&!this.cmdLineCodePublishSvc[this._codePublishingKey]){var t=this._codePublishChannel.replace("/","");this.cmdLineCodePublishSvc[this._codePublishingKey]=new e({executionService:this.executionService,context:t+"/"+this._codePublishingKey,enabled:this._enableCodePublishing})}},removeCodePublishHandle:function(){this.cmdLineCodePublishSvc[this._codePublishingKey].unregister(),delete this.cmdLineCodePublishSvc[this._codePublishingKey],this._codePublishingKey=""},handlePropertySet:function(e){this.inherited(arguments),e.data&&"name"===e.data.key&&this.cmdLineCodePublishSvc.hasOwnProperty(e.data.oldValue)&&(this.removeCodePublishHandle(),this._codePublishingKey=e.data.newValue,this.addCodePublishHandle())},_getCodePublishingChannel:function(e){return e&&e.propertyObj&&e.propertyObj.hasOwnProperty("Channel")?e.propertyObj.Channel:""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1552),i(986),i(2354),i(6533),i(2355),i(6535),i(6536),i(6537),i(6540),i(2340),i(2341),i(2347)],o=i.dj.d(n,(function(e){return e("variableeditor_peer.ViewManifest",[],{constructor:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6432),i(2299),i(2301),i(743),i(2302),i(6438),i(6439),i(2303),i(6440),i(1192),i(6441),i(6442),i(2305),i(6443),i(1193),i(2308),i(6444),i(6445),i(6447),i(2309),i(6448),i(2311),i(2313),i(6449),i(2315),i(2316),i(6450),i(6451),i(6452),i(6453),i(6454)],o=i.dj.d(n,(function(){}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(1553)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.DataBarsSpanRenderer",[i],{getValueDomNode:function(e){e=this.getValueContent(e);var i=this.getValueNode(e),n=this.getDataBar(e),o=document.createElement("div");return o.appendChild(n),o.appendChild(i),t.add(o,"spanCellParent"),o},getValueContent:function(e){return e[0].value},getDataBar:function(e){var i=document.createElement("div");t.add(i,["spanCell","dataBarParentNode"]);var n=document.createElement("div");t.add(n,"dataBarNode");var o=this.config.totalCount,r=parseInt(e),a=Math.ceil(r/o*100);return a=a>0?Math.max(2,a):a,n.style.width=a+"%",i.appendChild(n),i},getValueNode:function(e){var i=document.createElement("div");return i.textContent=e,t.add(i,"spanCell categoryCounts"),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2301)],o=i.dj.d(n,(function(e){var t=null;return{getLoadingRenderer:function(){return t||(t=new e),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(6433)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.LoadingRenderer",[],{constructor:function(e){this.config=e},getTooltip:function(e){return{text:""}},getDomNode:function(e){var n=document.createElement("div");return t.add(n,["loadingRenderer","mw-table-cell-content"]),n.textContent=i.loading,n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1190),i(743)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.RightAlignedTextRenderer",[i,t],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1190),i(1192)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.RightAlignedSpanRenderer",[i,t],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("rendererseditors.mwTableRenderers.PlainTextSpanParserMixin",[],{getParsedDataValue:function(e){try{return JSON.parse(e)}catch(t){return e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1189),i(210)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.TableHeaderRenderer",[t],{config:{},_CUSTOM_RENDERER_CLASS:"CustomTableHeaderRenderer",_CUSTOM_ICON_CLASS:"customIcon",_LABEL_NODE_CLASS:"labelNode",_HIGHLIGHT_HEADER_CLASS:"HighlightHeader",_SPARKLINE_CLASS:"sparkLine",_SPARKLINE_SCROLL_POSITION_CLASS:"sparkLineScrollPosition",_SPARKLINE_ISLINEAR_CLASS:"linearSparkLine",getValueDomNode:function(e){var t=document.createElement("div");i.add(t,this._CUSTOM_RENDERER_CLASS),e.colClass&&i.add(t,e.colClass),this._createIconNode(t);var n=document.createElement("span");n.textContent=e.hasOwnProperty("name")?e.name:e,i.add(n,this._LABEL_NODE_CLASS),t.appendChild(n),(e.isFiltered||e.isSorted)&&(e.isFiltered&&(t.dataset.filtered=!0),e.isSorted&&(t.dataset.sortDirection=e.sortDirection)),e.hasOwnProperty("sparkLine")&&this._createSparkLineNode(t,e.sparkLine,e.sparkLineIsLinear,e.sparkLineCategories,e.columnNumber,e.columnWidth);var o=e.showHeaderHighlight||!1;return i.toggle(t,this._HIGHLIGHT_HEADER_CLASS,o),t},_createIconNode:function(e){var t=document.createElement("div");i.add(t,this._CUSTOM_ICON_CLASS),e.appendChild(t)},_createSparkLineNode:function(e,t,n,o,r,a){var s=document.createElement("div");i.add(s,this._SPARKLINE_CLASS);var l="sparkLineMap"+r,c=!1;if(n){var d=document.createElement("div");i.add(d,this._SPARKLINE_SCROLL_POSITION_CLASS),s.appendChild(d)}else if(o&&o.length){c=!0;var u=document.createElement("map");u.setAttribute("name",l);for(var h=(a-6-7)/o.length,p=0;p<o.length;p+=1){var f=document.createElement("area"),g=Math.round(h*p)+",0,"+Math.round(h*(p+1))+",32";f.setAttribute("shape","rect"),f.setAttribute("coords",g),f.setAttribute("alt",o[p]),f.setAttribute("title",o[p]),u.appendChild(f)}s.appendChild(u)}var m=document.createElement("img");m.src=t,c&&m.setAttribute("usemap","#"+l),n&&i.add(m,this._SPARKLINE_ISLINEAR_CLASS),s.appendChild(m),e.appendChild(s)},getTooltipValue:function(e){if(e.name)return e.name}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(984)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.IconDisplayMixin",[],{getValueDomNode:function(e){var n=this.inherited(arguments),o=this._getColumnClass(e);return i.applyCssClassForVarType(o,!1,!0,n),t.add(n,"IconTextRenderer"),n},_getColumnClass:function(e){return e.class||"char"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{cleanUIforTextFiltering:function(e){return-1!==e.indexOf(String.fromCharCode(31))&&(e=(e=e.replace(new RegExp(String.fromCharCode(31),"g"),"")).replace(/"/g,"")),e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1190),i(1193)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.RightAlignedTableRenderer",[i,t],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(743),i(2310)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.PlainTextRenderer",[t,i],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("rendererseditors.mwTableRenderers.PlainTextParserMixin",[],{getParsedDataValue:function(e){return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(2312),i(301),i(235)],o=i.dj.d(n,(function(e,t,i,n,o){var r=null;return e("rendererseditors.mwTableEditors.TableEditor",[i],{inputNode:null,constructor:function(e){var t=this.parseValue(e),i=new n;r=i.emit.bind(i),this.inputNode=document.createElement("input"),this.inputNode.oldValue=t,this.on=i.on.bind(i),this.inputNode.value=t||"",this.inputNode.addEventListener("blur",this.commitOnBlur),this.inputNode.addEventListener("keydown",this.handleKeyDown)},parseValue:function(e){try{var t=JSON.parse(e).value,i=JSON.parse(t)}catch(t){i=e}return i},commitOnBlur:function(e){r("editComplete",{newValue:this.value,oldValue:this.oldValue[0].value})},handleKeyDown:function(e){switch(e.stopPropagation(),e.keyCode){case 27:r("editCanceled");break;case 13:t=this.value,i=this.oldValue,""===t||t===i[0].value?r("editCanceled"):(t=o.formatString(t,{escapeSpace:!0}),r("editComplete",{newValue:t,oldValue:i[0].value}))}var t,i},getDomNode:function(e){var t=this.parseValue(e)[0].value;return t=t.substring(1,t.length-1),this.inputNode.value=o.formatString(t,{escapeSpace:!0}),this.inputNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(301)],o=i.dj.d(n,(function(e,t,i){var n=null;return e("rendererseditors.mwTableEditors.EditorBase",[],{config:{},inputNode:null,_handleBlurCallback:null,_handleKeydownCallback:null,_EDITOR_TABLE_CLASS:[],constructor:function(e){this.config=e;var t=new i;n=t.emit.bind(t),this.on=t.on.bind(t),this._EDITOR_TABLE_CLASS.push("mwTableTextEditor"),this.createDomNode()},createDomNode:function(){this.inputNode=document.createElement("input"),t.add(this.inputNode,this._EDITOR_TABLE_CLASS),this._handleBlurCallback=this.handleBlur.bind(this),this._handleKeydownCallback=this.handleKeyDown.bind(this),this.inputNode.addEventListener("blur",this._handleBlurCallback),this.inputNode.addEventListener("keydown",this._handleKeydownCallback)},emitCompleteEvent:function(e){n("editComplete",e)},emitCanceledEvent:function(){n("editCanceled")},handleBlur:function(e){},handleKeyDown:function(e){switch(this.stopEventPropagation(e),e.key){case"Escape":this.handleEscapeKey(e);break;case"Tab":this.handleTabKey(e);break;case"Enter":this.handleEnterKey(e);break;default:this.handleOtherKey(e)}},stopEventPropagation:function(e){e.stopPropagation()},handleEscapeKey:function(e){},handleTabKey:function(e){},handleEnterKey:function(e){},handleOtherKey:function(e){},getTooltip:function(e){return e},getDomNode:function(e){return this.inputNode.value=this.getInputNodeValue(e),this.inputNode.oldValue=this.inputNode.value,this.inputNode},getInputNodeValue:function(e){return e},setFocus:function(){this.inputNode.setSelectionRange(0,this.inputNode.value.length),this.inputNode.focus()},destroy:function(){this.inputNode.removeEventListener("blur",this._handleBlurCallback),this.inputNode.removeEventListener("keydown",this._handleKeydownCallback),this.inputNode=void 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(985)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.mwTableEditors.NumericEditor",[t],{_EDITOR_TABLE_CLASS:["mwTableNumericEditor"],validateAndComplete:function(e,t){e===t?this.emitCanceledEvent():this.emitCompleteEvent({newValue:e,oldValue:t})},getInputNodeValue:function(e){return this.isMetaData(e)?"":this.getParsedEditorValue(e,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(985)],o=i.dj.d(n,(function(e,t,i){return t("rendererseditors.mwTableEditors.TableTextEditorBase",[i],{_EDITOR_TABLE_CLASS:["mwTableTableTextEditorBase"],isMetaData:function(e){var t=this._getJSONValue(e);return!!t.hasOwnProperty("isMetaData")&&t.isMetaData},getParsedEditorValue:function(t,i){var n=this._getJSONValue(t),o=n.editValue||n.value;return void 0===o&&(o=""),i?o:e.formatString(o)},_getJSONValue:function(e){try{var t=JSON.parse(e).value,i=JSON.parse(t)}catch(t){i=e}return Array.isArray(i)?i[0]:i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(985)],o=i.dj.d(n,(function(e,t,i){return t("rendererseditors.mwTableEditors.StringEditor",[i],{_EDITOR_TABLE_CLASS:["mwTableStringEditor"],validateAndComplete:function(e,t){e===t?this.emitCanceledEvent():this.emitCompleteEvent({newValue:e,oldValue:t})},handleTabKey:function(e){e.preventDefault(),this.handleTextFormatting("tab")},handleEnterKey:function(e){e.altKey?this.handleAltEnter():this.inherited(arguments)},handleAltEnter:function(){this.handleTextFormatting("newLine")},handleTextFormatting:function(t){var i=this._getCursorPosition(),n=e.handleFormatting(i,this.inputNode.value,t);this.inputNode.value=e.formatString(n),e.selectRange(this.inputNode,i[0]+1,i[0]+1)},_getCursorPosition:function(){return[e.getSelectionStart(this.inputNode),e.getSelectionEnd(this.inputNode)]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(2315)],o=i.dj.d(n,(function(e,t,i){return t("rendererseditors.mwTableEditors.CharEditor",[i],{_EDITOR_TABLE_CLASS:["mwTableCharEditor"],setFocus:function(){var e=this.inputNode.value,t=e.length;/^('|").*('|")$/.test(e)?(this.inputNode.setSelectionRange(1,t-1),this.inputNode.focus()):this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2318)],o=i.dj.d(n,(function(e,t){return e("variableeditor_client.ViewPluginMixin",[],{createView:function(e){this.pluginsEnabled=[],this._plugins=this._getPlugins(e),this._addViewPlugins()},_getPlugins:function(e){return e&&e.data&&e.data.configurablePlugins?e.data.configurablePlugins:[]},getFeatureMap:function(){return t},_addViewPlugins:function(){let e=this.getFeatureMap();this._plugins.forEach((function(t){"features"===t.name&&t.featureList.forEach((function(t){e[t]&&(this.pluginsEnabled[t]=new e[t](this))}),this)}),this)},getPluginByName:function(e){return this.pluginsEnabled[e]||null},_isPluginOn:function(e){return this._plugins.some((function(t){return"features"===t.name&&t.featureList.some((function(t){return t===e}))}))},_updateViewPlugins:function(e){let t=this,i=this.getFeatureMap();e.map((function(e){if("features"===e.name){let n=e.featureList;for(let e in t.pluginsEnabled)if(t.pluginsEnabled.hasOwnProperty(e)&&n.indexOf(e)<0){let i=t.getPluginByName(e);i.destroy&&i.destroy(),delete t.pluginsEnabled[e]}n.map((function(e){t.getPluginByName(e)||(t.pluginsEnabled[e]=new i[e](t))}))}}))},destroyView:function(){for(let e in this.pluginsEnabled)this.pluginsEnabled.hasOwnProperty(e)&&this.pluginsEnabled[e]&&this.pluginsEnabled[e].destroy&&this.pluginsEnabled[e].destroy();this.pluginsEnabled=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6456),i(2319),i(6457),i(2320),i(2321),i(2323),i(2324),i(6460),i(6461),i(2325),i(2326),i(6462),i(2327),i(2328),i(2329),i(6463),i(6464),i(6465),i(6466),i(6467),i(2330),i(6475),i(6476),i(6477)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){return{COLUMN_RESIZE:t,MULTI_ROW_SELECTION:o,SINGLE_ROW_SELECTION:r,HEADER_MENU:n,ROW_HEADERS:s,COLUMN_SORT:i,CELL_FOCUS:e,PLAID_SELECTION:a,LIGHT_WEIGHT_VIEW:l,CUSTOM_ROW_HEIGHT:c,CORNER_SPACER_TEXT:d,DOUBLE_CLICK_HANDLER:u,VIEW_CONTEXT_HANDLER:h,CONTEXT_BASED_SELECTION:p,CONTEXT_BASED_PLAID_SELECTION:f,TABLE_CONTEXT_BASED_PLAID_SELECTION:g,ARRAY_VIEW_CONTEXT_HANDLER:m,INFINITE_GRID:_,DRAG_AND_DROP:v,SPARKLINE_SCROLL_POSITION:b,PRINT:y,DOM_PRINT:C,PERCENTAGE_COLUMN_WIDTH:T,BRUSHING:E}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(326),i(393)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_client/Plugins/ColumnResize",[i],{PLUGIN_NAME:"COLUMN_RESIZE",constructor:function(e){this._initializePlugin(e,t.FEATURE.ColumnResize)},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(230),i(326),i(393)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("variableeditor_client/Plugins/HeaderMenu",[r],{PLUGIN_NAME:"HEADER_MENU",constructor:function(e){this._initializePlugin(e,o.FEATURE.HeaderMenu);var t=this;this._view.addEventListener("tableCreated",(function(e){t._init()}))},_init:function(){var e=this._view;this._view.own(e._table.on("headerMenuRequested",(function(t){e.initHeaderMenu(t),e.headerMenuRequested(t)})))},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(326),i(1555)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_client.Plugins.MultiRowSelection",[i],{PLUGIN_FEATURE:t.FEATURE.MultiRowSelection,PLUGIN_NAME:"MULTI_ROW_SELECTION"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214)],o=i.dj.d(n,(function(e,t){return e(null,{_setSelectionListener:null,constructor:function(e){this._setSelectionListener=null,this._initializePlugin(e,this.PLUGIN_FEATURE),this._initListeners()},_initListeners:function(){var e,i=this;this._view.addEventListener("tableCreated",e=function(){i._setSelectionListener=t.after(i._view._table,"setSelection",i._onTableSetSelection.bind(i),!0),i._attachSetSelectionOnView(),i._view.removeEventListener("tableCreated",e)})},_attachSetSelectionOnView:function(){this._view.setSelection=this._onViewSetSelection.bind(this)},_onViewSetSelection:function(){throw new Error("Need to override _onViewSetSelection")},_onTableSetSelection:function(){throw new Error("Need to override _onTableSetSelection")},destroy:function(){this._setSelectionListener&&this._setSelectionListener.remove(),this._setSelectionListener=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(326),i(1555)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_client.Plugins.SingleRowSelection",[i],{PLUGIN_FEATURE:t.FEATURE.SingleRowSelection,PLUGIN_NAME:"SINGLE_ROW_SELECTION"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(239),i(6458),i(393),i(2322)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("variableeditor_client/Plugins/TablePlaidSelection",[o,r],{PLUGIN_NAME:"PLAID_SELECTION",_setSelectionListener:null,PLUGIN_FEATURE:n,constructor:function(e){},_onViewSetSelection:function(e,t){var i={selectedRows:e,selectedColumns:t};this._view._table.setSelection(i)},_onTableSetSelection:function(){var e=this._view._table.getSelection(),t=this._view.getPluginByName("CELL_FOCUS");if(t&&e.selectedRows.length>0&&e.selectedColumns.length>0&&this._view.isTableStarted()){var i=e.selectedRows[0].start,n=e.selectedColumns[0].start;t.setCellFocus({startRow:i,endRow:i,startColumn:n,endColumn:n})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(393)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_client.Plugins.CustomRowHeight",[i],{PLUGIN_NAME:"CUSTOM_ROW_HEIGHT",_rowHeight:null,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME},setRowHeight:function(e){this._view._table&&(this._view._table.setRowHeight(e),this._rowHeight=e)},getRowHeight:function(){return this._rowHeight}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(210),i(393),i(506)],o=i.dj.d(n,(function(e,t,i,n,o){return e("variableeditor_client/Plugins/ColumnSort",[n],{PLUGIN_NAME:"CORNER_SPACER_TEXT",CORNER_SPACER_CLASS:"CornerSpacerText",_cornerSpacerText:"",_tableHeaderFontFamily:"Arial, Helvetica, sans-serif",_tableHeaderFontSize:"9px",CORNER_SPACER_PROP:"CornerSpacerTitle",constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._cornerSpacerText="",this._initListener=this._init.bind(this),this._updateViewListener=t.after(this._view,"_updateView",this._initListener)},_addSelectAllListener:function(){this._view._table.domNode.getElementsByClassName(o.TABLE_TOP_LEFT_AFFORDANCE_CLASS)[0].addEventListener("click",this._doSelectAllAction.bind(this)),this._selectAllListenerAdded=!0},_doSelectAllAction:function(){if(this._view&&this._view._table&&this._view.getDataStore()){var e=this._view,t=e._table,i=e.getDataStore();t.setSelection&&t.setSelection({selectedRows:[{start:0,end:i.dataSize.rows.count}],selectedColumns:[{start:0,end:i.dataSize.columns.count}]})}},_init:function(){if(this._view._tableStarted){var e=this._view.getMetaDataStore();e.hasTableModelProperty(this.CORNER_SPACER_PROP)&&this.setCornerSpacerText(e.getTableModelProperty(this.CORNER_SPACER_PROP)),this._addSelectAllListener()}},setCornerSpacerText:function(e){var t=this._view._table.domNode;if(this._cornerSpacerText!==e){var n=t.getElementsByClassName(o.TABLE_TOP_LEFT_AFFORDANCE_CLASS)[0];if(n){var r=document.createElement("div"),a=document.createElement("span");a.textContent=e,r.appendChild(a),i.add(r,this.CORNER_SPACER_CLASS),n.appendChild(r),r.style.fontFamily=this._tableHeaderFontFamily,r.style.fontSize=this._tableHeaderFontSize}this._cornerSpacerText=e}},destroy:function(){(this._updateViewListener&&this._updateViewListener.remove(),this._selectAllListenerAdded&&this._view&&this._view._table&&this._view._table.domNode)&&this._view._table.domNode.getElementsByClassName(o.TABLE_TOP_LEFT_AFFORDANCE_CLASS)[0].removeEventListener("click",this._doSelectAllAction.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(1182),i(506),i(846)],o=i.dj.d(n,(function(e,t,i,n,o){return e("variableeditor_client.plugins.ViewContextHandler",[],{PLUGIN_NAME:"VIEW_CONTEXT_HANDLER",_tableHeaderDom:null,_tableDataDom:null,_tableRowHeaderDom:null,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this.contextId=this._view.allArgs.contextId,this.contextUpdateChannel=this._view.allArgs.contextUpdateChannel,this._rightClickListener=null,this._tableHeaderDom=null,this._tableDataDom=null,this._tableRowHeaderDom=null,this._init()},_init:function(){this._document=this._view.allArgs.peerDocument||this._view.allArgs.document,this._document&&(this._viewCreatedCallback=this._handleViewCreated.bind(this),this._view.addEventListener("viewReady",this._viewCreatedCallback),this._documentContextSwitchCallback=this._handleContextSwitchOnDocument.bind(this),this._document.domNode.addEventListener("mousedown",this._documentContextSwitchCallback),this._document.summaryBar&&(this._summaryBar=this._document.summaryBar,this._summarybarContextSwitchCallback=this._handleContextSwitchOnSummaryBar.bind(this),this._summaryBar.domNode.addEventListener("mousedown",this._summarybarContextSwitchCallback)))},_handleViewCreated:function(){var e=this;this._tableDataDom=this._view.domNode.getElementsByClassName(n.TABLE_DATA_NODE_CLASS)[0],this._tableHeaderDom=this._view.domNode.getElementsByClassName(n.TABLE_HEADER_CLASS)[0],this._tableRowHeaderDom=this._view.domNode.getElementsByClassName(n.TABLE_ROW_HEADER_CLASS)[0],this._tableScrollerDom=this._view.domNode.getElementsByClassName(n.TABLE_SCROLLING_NODE)[0],this._view.own(this._view._table.on("contextMenu",(function(t){e._handleRightClickOnTable(t)})))},rePublishContext:function(e){e.target&&this._handleRightClickOnTable(e)},_handleRightClickOnTable:function(e){var t=e.viewRange,i=[],n=this._getKeyboardContext(e);if(n){var o=this._view.getSelection();o&&o.length>0?this._getDataGridContext(i):this._updateEmptySpaceContext(i)}else-1===t.rows.end?this._getColumnContext(i):-1===t.columns.end?this._getRowContext(i):this._getDataGridContext(i);this.publishContext(this._fetchCurrentContext(i),!0,n)},_handleContextSwitchOnDocument:function(e){var t=[],i=!0;this._isOutsideSummaryBar(e.target)&&(this._tableDataDom&&this._tableDataDom.contains(e.target)?this._getDataGridContext(t):this._tableHeaderDom&&this._tableHeaderDom.contains(e.target)?this._getColumnContext(t):this._tableRowHeaderDom&&this._tableRowHeaderDom.contains(e.target)?this._getRowContext(t):i=this._getEmptySpaceContext(t,e),i&&this.publishContext(this._fetchCurrentContext(t),!0))},_isOutsideSummaryBar:function(e){return!!e.type||(!this._document.summaryBar||this._document.summaryBar&&!this._document.summaryBar.domNode.contains(e))},_getColumnContext:function(e){e.push(o.HEADER_CONTEXT,o.COLUMN_CONTEXT)},_getRowContext:function(e){e.push(o.HEADER_CONTEXT,o.ROW_CONTEXT)},_getDataGridContext:function(e){e.push(o.DATA_GRID_CONTEXT,o.BODY_CONTEXT)},_getKeyboardContext:function(e){var t;return e.target&&e.target.type===o.TABLE_KEYBOARD_CONTEXT&&(t=o.KEYBOARD_CONTEXT),t},_getEmptySpaceContext:function(e,t){var i=this._tableScrollerDom.offsetHeight,n=this._tableScrollerDom.clientHeight;return!(i-n>0&&t.offsetY>=n&&t.offsetY<=i)&&(this._updateEmptySpaceContext(e),!0)},_updateEmptySpaceContext:function(e){e.push(o.EMPTY_SPACE_CONTEXT,o.BODY_CONTEXT)},_fetchCurrentContext:function(e){var t=this._getViewContext(e),i=Array.isArray(t)?t:[t],n=t?i.concat(e):[].concat(e);return[this.contextId].concat(n)},_getViewContext:function(){return this._view.getContextAttributes()},_handleContextSwitchOnSummaryBar:function(e){this.publishContext(this._fetchCurrentContext("SummaryBar"),!0)},publishContext:function(e,t,n){t=t||!1,i.addToContext(this.contextUpdateChannel,e,t,n)},clearContext:function(){i.clearContext(this.contextUpdateChannel)},destroy:function(){this._viewCreatedCallback&&(this._view.removeEventListener("viewReady",this._viewCreatedCallback),this._viewCreatedCallback=null),this._documentContextSwitchCallback&&this._document.domNode.removeEventListener("mousedown",this._documentContextSwitchCallback),this._summarybarContextSwitchCallback&&this._summaryBar.domNode&&this._summaryBar.domNode.removeEventListener("mousedown",this._summarybarContextSwitchCallback),this._documentContextSwitchCallback=null,this._summarybarContextSwitchCallback=null,this._tableDataDom&&(this._tableDataDom=null),this._tableHeaderDom&&(this._tableHeaderDom=null),this._tableRowHeaderDom&&(this._tableRowHeaderDom=null),this._tableScrollerDom&&(this._tableScrollerDom=null),this.clearContext()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(256),i(382),i(239),i(846)],o=i.dj.d(n,(function(e,t,i,n,o){return e("variableeditor_client.plugins.ContextBasedSelection",[],{PLUGIN_NAME:"CONTEXT_BASED_SELECTION",constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this.contextUpdateChannel=this._view.allArgs.contextUpdateChannel,this.addContextListeners(),this._view.addEventListener("tableCreated",this._handleTableCreated.bind(this))},_handleTableCreated:function(){this._view.own(this._view._table.on("contextMenu",function(e){this._updateSelectionOnRightClick(e)}.bind(this)))},_updateSelectionOnRightClick:function(e){var t=this._view._table.getSelection();t&&this._hasIntersection(t,e.dataRange)||-1===e.dataRange.rows.end||(this._view._table.setSelection([e.dataRange]),this._view._table.setCellFocus([e.dataRange]))},_hasIntersection:function(e,t){return e.some((function(e){return n.doesRangeIntersect(e,t)}))},addContextListeners:function(){this._contextSubscriptionHandle=t.subscribe(this.contextUpdateChannel,this._handleContextSwitch.bind(this))},_handleContextSwitch:function(e){(e.subContext||[]).indexOf(o.EMPTY_SPACE_CONTEXT)>-1&&this._view._table&&(this.clearSelection(),this.clearCellFocus())},clearSelection:function(){var e=this._view._table;if(e&&e.setSelection){var t=e.getSelection();t&&t.length>0&&e.setSelection(i.createRange(0,-1,0,-1))}},clearCellFocus:function(){var e=this._view._table;e&&e.setCellFocus&&e.setCellFocus([])},destroy:function(){this._contextSubscriptionHandle&&(this._contextSubscriptionHandle.remove(),this._contextSubscriptionHandle=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2328),i(744),i(278),i(846)],o=i.dj.d(n,(function(e,t,i,n,o){return e("variableeditor_client.plugins.ContextBasedPlaidSelection",[t],{PLUGIN_NAME:"CONTEXT_BASED_PLAID_SELECTION",_handleTableCreated:function(){this.inherited(arguments);var e=this._handleSelectionChanged.bind(this);this._selectionChangedHandle=this._view._table.on("selectionChanged",e)},_handleSelectionChanged:function(){var e=this._view.getContextAttributes();if(e.indexOf("struct")>-1&&e.indexOf("isRowOrColumnVector")>-1){var t=this._view.getSelection(),i=t&&this._isNumericSelection(t)?o.STRUCT_NUMERIC_CONTEXT:"";this._view.provider.setPropertyOnServer(this._view,"SelectionSubset",i)}},_isNumericSelection:function(e){var t=this._view.getMetaDataStore(),o=this._view.getDataStore();return e.selectedColumns.every((function(r){for(var a=!0,s=r.start;s<=r.end;s+=1){var l=t.getColumnModelProperty("class",s);if((a=a&&n.isTypeNumeric(l))||void 0!==l&&"mixed"!==l||i.isColumnSelection(e,o.dataSize.rows.count)||(a=e.selectedRows.every((function(e){for(var i=!0,o=e.start;o<=e.end;o+=1)i=i&&n.isTypeNumeric(t.getCellModelProperty("class",o,s));return i}))),!a)break}return a}))},_updateSelectionOnRightClick:function(e){var t=this._view._table.getSelection();if((!e.target||e.target.type!==o.TABLE_KEYBOARD_CONTEXT)&&this._isValidSelection(e)){var i=e.dataRange.columns.end,n=e.dataRange.rows.end,r=this._hasIntersection(t.selectedRows,n),a=this._hasIntersection(t.selectedColumns,i);if(!(r&&a||(a&&-1===n||r&&-1===i))){var s={start:Math.max(n,0),end:-1===n?1/0:n},l={start:Math.max(i,0),end:-1===i?1/0:i};this._view._table.setSelection({selectedRows:[s],selectedColumns:[l]}),this._view._table.setCellFocus([e.dataRange]),this._republishContexts(e)}}},_republishContexts:function(e){var t=this._view.getPluginByName("ARRAY_VIEW_CONTEXT_HANDLER");t&&t.rePublishContext(e)},_isValidSelection:function(e){return!(e.target&&"COLUMN_HEADER"===e.target.type&&-1===e.dataRange.columns.end)},_hasIntersection:function(e,t){return e.some((function(e){return t>=e.start&&t<=e.end}))},clearSelection:function(){var e=this._view._table;if(e&&e.setSelection){var t=e.getSelection();if(t&&(t.selectedRows.length>0||t.selectedColumns.length>0)){e.setSelection({selectedRows:[],selectedColumns:[]})}}},destroy:function(){this.inherited(arguments),this._selectionChangedHandle&&this._selectionChangedHandle.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(214),i(236),i(393),i(744),i(2331),i(1197),i(6469),i(6470),i(2333),i(239)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){const h=()=>{};return t("variableeditor_client/Plugins/print/Print",[o],{PLUGIN_NAME:"PRINT",_ELEMENT_NODE:1,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._aspectHandles=[],this._initPrintAction()},_initPrintAction:function(){let e=this;this.getActionDataService().then(t=>{this._getPrintAction().then(i=>{e._view.manager.onPrint||(e._view.manager.onPrint=h),e._initPrintPlugin(),i.getProperty("callback")||t.updateAction("PrintAction",{callback:e._view.manager.onPrint})},()=>{})})},getActionDataService:function(){let e=this._view;return new Promise((t,n)=>{let o=this._view.manager.actionDataService;if(o&&t(o),!o){let n=i.after(e.manager,"_initActionService",()=>{t(e.manager.actionDataService),n&&n.remove()})}})},_getPrintAction:function(){let e=this._view.manager.actionDataService;return new Promise((t,i)=>{e||i(new Error("No ActionDataService Found"));let n=e.getAction("PrintAction");n?t(n):e.addEventListener("actionAdded",(function(i){"PrintAction"===i.data.actionID&&t(e.getAction("PrintAction"))}))})},_initPrintPlugin:function(){const e=this;this._aspectHandles.push(i.after(this._view.manager,"onPrint",(function(t){if(e._view.isFocused()){let i;"PrintSelection"===t.menuID&&(i=e._getSelectionRangeList()),e.handlePrint(i)}}),!0))},handlePrint:function(e){let t=this;e||(e=[t._view.getDataStore()._actualSize]),this.getDomForPrint(e).then(e=>{t._printContent(e)})},_getSelectionRangeList:function(){let e=this._view.getSelection(),t=this._view.getDataStore()._actualSize;if(e.selectedRows&&e.selectedColumns){const i=(e,t)=>{e.forEach((i,n)=>{const o=i.start,r=Math.min(i.end,t.end);e[n]={start:o,end:r,count:r-o+1}})};return i(e.selectedRows,t.rows),i(e.selectedColumns,t.columns),r.convertPlaidSelectionToRange(e)}return e.map(e=>u.range().setRows(e.rows.start,Math.min(t.rows.end,e.rows.end)).setColumns(e.columns.start,Math.min(t.columns.end,e.columns.end)))},getDomForPrint:function(e){let t=this;return new Promise((i,n)=>{t.getDataDomForPrint(e).then(e=>{const t=new DOMParser;let n=t.parseFromString(l,"text/html");n.querySelector("head").appendChild(t.parseFromString(this._buildStyles(),"text/html").querySelector("style"));let o=n.querySelector("#printTableCell");e.forEach(e=>o.appendChild(e)),this._getPrintHeader(n.querySelector("#printTableHeader")),i(n.documentElement.outerHTML)})})},getDataDomForPrint:function(t){let i={showSummaryBar:!1};this._view.getPluginByName("LIGHT_WEIGHT_VIEW")&&(i=Object.assign(i,{showRowHeaders:!1,lightWeightView:!0}));const n=new a(i);i.lightWeightView&&n.setHeaderAlignment(n.LEFT_ALIGNMENT);const o=this,r=this._view.getDataStore(),l=r.getData(t),c=r.getMetaData(t);let d=[];return new Promise((i,r)=>{Promise.all([l,c]).then(r=>{let a=[];r=r[0];let l=[],c=[];t.forEach((function(t,i){let n=r[i];for(let e=t.rows.start;e<=t.rows.end;e+=1)if(a[e])for(let i=t.columns.start;i<=t.columns.end;i+=1)a[e][i]=n[e][i];else a[e]=n[e];l=l.concat(e.generateArrayFromIndex(t.rows.start,t.rows.count)),c=c.concat(e.generateArrayFromIndex(t.columns.start,t.columns.count))})),l=e.sortNumeric(e.removeDuplicates(l)),c=e.sortNumeric(e.removeDuplicates(c));const u=l.length,h=c.length;let p=s.getColumnMetaDataForExport(o._view,h,c),f=s.getCellMetaDataForExport(o._view,u,h,l,c),g=s.getTableMetaDataForExport(o._view),m=s.getRowLabelsForExport(o._view,u,l),_=s.getHeaderIconsForExport(o._view,h,c),v=s.getCellIconsForExport(o._view,l,c);a=a.filter(e=>void 0!==e),a.map((e,t)=>{a[t]=e.filter(e=>void 0!==e)});let b=a,y=this._getColumnsPerPage(p.columnWidth),C=0;d=y.map(e=>{let t=b.splice(0,-1);b.forEach((i,n)=>{t[n]=i.slice(C,e+1)});let i={data:s.processExportData(o._view,t),rowCount:u,columnCount:Math.min(h,e-C+1),headers:p.columnHeaders.slice(C,e+1),columnClass:p.columnClass.slice(C,e+1),columnSpan:p.columnSpan.slice(C,e+1),columnWidth:p.columnWidth.slice(C,e+1),showIndexAndLabel:p.showIndexAndLabel,cellMetaData:f,tableMetaData:g,rowHeaders:m,rowIndices:l,colIndices:c,headerIcons:_,cellIcons:v};return C+=e-C+1,n.createElement(i)}),i(d)})})},_getColumnsPerPage:function(e){let t=[];return e.reduce((e,i,n,o)=>(e+(i=i||75)>750&&(t.push(n-1),e=0),n===o.length-1&&t.push(n),e+i),0),t},_getPrintHeader:function(e){let t,i=e.querySelector("#leftHeaderContent");t=this._view.printTitle?this._view.printTitle:n.substitute(d.variablePrintHeader,{0:this._view.getProperty("name")}),i.textContent=t+"\n";const o=new Date;i.textContent+=o.toLocaleDateString(navigator.language,{month:"long",day:"numeric",year:"numeric"}),e.querySelector("#rightHeader").textContent+=o.toLocaleTimeString()},_buildStyles:function(){return"<style type='text/css'>"+c+"</style>"},_printContent:function(e){let t=document.createElement("iframe");t.onload=()=>{t.contentDocument.documentElement.innerHTML=e,setTimeout((function(){t.contentWindow.print(),document.body.removeChild(t)}),0)},document.body.appendChild(t)},destroy:function(){this._aspectHandles.forEach(e=>e.remove()),this._aspectHandles=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(6468)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e){this.initOptions(e)},createColumnHeader:function(e){var i=this.inherited(arguments);return e.columnSpan>1&&t.set(i,"colSpan",Math.min(e.columnCount,e.columnSpan)),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_INITIAL_WIDTH:30,_MAX_ROWHEADER_WIDTH:250,_ROWHEADER_FONT_CHAR_WIDTH:7.5,getTotalColumnCount:function(e){var t=e.columnSpan.reduce((function(e,t){return e+t}),0)+1,i=this._rowHeaderWidth(e),n=e.availableWidth-i,o=!1,r=e.columnWidth.slice(),a=0,s=0,l=0,c=0;e.columnSpan.forEach((function(e,t){if(c+=r.splice(0,e).reduce((function(e,t){return e+t})),!o&&c>n&&(o=!0,a=Math.max(t,1),l=s,0===t)){var i=c/e;l=Math.max(Math.floor(n/i),1)}s+=e})),0===l&&(l=s,a=e.columnSpan.length);var d=Math.min(Math.max(l,1),t-1);return{headerCount:a,columnCount:d,addHorizontalEllipsis:t>d+1}},_rowHeaderWidth:function(e){var t=this._INITIAL_WIDTH;return e.rowHeaders&&e.rowHeaders.forEach((function(e){t=Math.min(this._MAX_ROWHEADER_WIDTH,Math.max(t,this._ROWHEADER_FONT_CHAR_WIDTH*e.length))}),this),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6471),i(6472),i(6473),i(6474)],o=i.dj.d(n,(function(e,t){return t(e,"variableeditor_client/l10n/nls/VariableEditorStrings",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(981),i(359),i(206)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor_peer.RemoteViewModel",[t],{allArgs:{},viewObj:null,varName:null,init:function(e){this.allArgs={},this.viewObj=null,this.varName=null,e&&(this.propertyObj=e.propertyObj,this.varName=e.varName,this.allArgs=e,this.viewID=this.propertyObj&&this.propertyObj.hasOwnProperty("viewID")?this.propertyObj.viewID:e.viewID||this.viewID)},_getPlugins:function(e){return e.configurablePlugins||[]},setViewObject:function(e){this.viewObj=e},destroy:function(){this.viewObj=null,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2318),i(278),i(6478),i(2336),i(6484),i(6485),i(6486),i(2340),i(2341),i(2347),i(6518),i(6519),i(6520),i(6521),i(6522),i(6523),i(6524),i(2350),i(6525),i(6526),i(6527),i(6528),i(6529),i(6530)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){var S=e,w={DATA_TYPE_CONVERSION:n,CONTEXT_MENU:i,STRING_DISPLAY:o,COLUMN_RESIZE_PAGED:r,COLUMN_REORDER:a,SORT:s,COLUMN_FILTER:l,CLEAN_CATEGORIES:c,PEER_PLAID_SELECTION:d,PEER_CUSTOM_ROW_HEIGHT:u,CHAR_WIDTH_CALC:h,PEER_CORNER_SPACER_TEXT:p,COPY:f,SELECTION_CONTEXT:g,EDIT_HANDLER:m,COLUMN_HEADER_EDITING:_,ROW_HEADER_EDITING:v,COLUMN_HEADER_EDITING_WITH_VALIDATION:b,REMOTE_MULTI_ROW_SELECTION:y,REMOTE_SINGLE_ROW_SELECTION:C,HEADER_CONTEXT_MENU:T,CONTEXT_SERVICE_DATA_TYPE_CONVERSION:E};return t.mergeObjects(w,S)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(210),i(312),i(238),i(236),i(2337),i(317),i(542),i(288),i(354),i(241),i(984),i(278),i(235),i(2338),i(1556),i(694),i(6483)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){var y=JSON.parse(b),C=["dd:hh:mm:ss","hh:mm:ss","mm:ss","hh:mm"],T=v.RevertFilterDialogText,E=v.RevertFilterDialogTitle;return e("variableeditor_peer.plugins.DataTypeConversion",[m],{PLUGIN_NAME:"DATA_TYPE_CONVERSION",ACTION_NAME:"ConvertToDataTypeAction",constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._DTConversionCallback=null,this._handleActionExecutionCallback=null,this._handleDataTypeMenuCommitListener=null,this._aspectHandles=[],this._initCallback=this._init.bind(this),this._view.addEventListener("tableCreated",this._initCallback)},_init:function(){this._createDataTypeMenuManager(),this._dialogCreationUtils=new _;var e=this._view.getPluginByName("CONTEXT_MENU");this._convertSingleItem=new c({featureID:this.name}),e.addMenuItem(this._convertSingleItem),this._DTConversionCallback=this._handleDTConversionMenuRequested.bind(this),this._aspectHandles.push(i.after(this._view,"handleContextMenuRequested",this._DTConversionCallback))},_createDataTypeMenuManager:function(){this._dataTypeMenuManager=new s;var e=this._handleDataTypeMenuCommit.bind(this);this._handleDataTypeMenuCommitListener=this._dataTypeMenuManager.on("commit",e)},_handleDTConversionMenuRequested:function(e,t){var i=t[0];this._convertToAction||(this._convertToAction=this._view.getActionById(this.ACTION_NAME),this._convertToAction&&(this._handleActionExecutionCallback=this._handleActionExecutionStatus.bind(this),this._convertToAction.addEventListener("actionStatusChanged",this._handleActionExecutionCallback)));var n=i.dataRange.columns.end;this.isConversionValid(n)&&this._handleConversionMenuUpdate(n,this._convertSingleItem)},_handleConversionMenuUpdate:function(e,t){var i=this._view.getMetaDataStore().getColumnModelProperty("class",e),n=f.getColumnClassForDisplay(i),o=a.substitute(v.dataTypeConversionText,{0:n});t.set("text",o),this.addToMenuManager({columnIndex:e,columnClass:i},t)},addToMenuManager:function(e,t){var i=this._getDataTypeList(e.columnClass);if(i){this._handleFormatSpecificTypes(i),i.forEach((function(e){var t=f.getColumnClassForDisplay(e.dataType);e.icon=p.getClassTypeForDatatype(t)})),this._dataTypeMenuManager.setDataTypeList(i);var n={selectedIndex:e.columnIndex};this._dataTypeMenuManager.addMenuTo(t,null,n)}},_isFullyFiltererdTable:function(){return 0===this._view.getDataStore().dataSize.rows.count},_handleActionExecutionStatus:function(e){var t=e.data;if("error"===t.status){var i=t.message;h.displayAlertDialog(v.errorDuringDataTypeConversionTitleText,i)}},_handleDataTypeMenuCommit:function(e){n.contains(document.activeElement,"customOptionInputText")&&document.activeElement.blur();var t={dataType:e.dataType,dataTypeOption:e.dataTypeOption,selectedColumn:e.context.selectedIndex},i=this._view.getMetaDataStore();i.getTableModelProperty("IsFiltered")&&"UIVariableEditor"!==i._userContext?this._createRevertFilteringDialog(t):this._dispatchDataTypeConversionAction(t)},_createRevertFilteringDialog:function(e){this._dialogCreationUtils||(this._dialogCreationUtils=new _);var n=this._view.getMetaDataStore(),o=n.getColumnModelProperty("HeaderName",e.selectedColumn);e.columnClass=n.getColumnModelProperty("class",e.selectedColumn),f.isTypeNumericFiltering(e.columnClass)?e.isNumericFiltering=!0:f.isTypeTextFiltering(e.columnClass)&&(e.isTextFiltering=!0);var r={dialogText:a.substitute(T,{0:this._view.varName,1:v.ConvertingText,2:o}),dialogContentClass:"RevertFilterDialog",dialogClass:"RevertFilterDialog",dialogTestID:"RevertFilterDataTestID",dialogTitle:E,OKButtonTitle:v.OkButtonConvert};this._dialogCreationUtils.createDialog(r),this._revertDialogListener=i.before(this._dialogCreationUtils,"handleOKButtonClick",t.hitch(this,"_handleRevertFilteringDialogOK",e)),this._removeAllDialogListeners=i.before(this._dialogCreationUtils,"destroy",t.hitch(this,"_removeRevertDialogListener"))},_removeRevertDialogListener:function(){this._revertDialogListener&&this._revertDialogListener.remove(),this._removeAllDialogListeners.remove()},_dispatchDataTypeConversionAction:function(e){this._view._dispatchActionToServer(this.ACTION_NAME,e,!0),this._view.viewContentChanged()},_handleRevertFilteringDialogOK:function(e){e.revertFilters=!0,this._dispatchDataTypeConversionAction(e)},_handleFormatSpecificTypes:function(e){e.forEach((function(e){if("datetime"===e.dataType){var t=g.isUSLocale()?s.DEFAULT_US_DATETIME_FORMATS:s.DEFAULT_NON_US_DATETIME_FORMATS;e.defaultOptions=t,e.expandDefaults=4,e.customOptions=!0,e.customHelp="<b>"+v.CustomDateTimeInputFormatTooltip+"</b>",e.placeholder=v.promptToEnterACustomDateTimeFormatText}else"duration"===e.dataType&&(e.defaultOptions=C,e.expandDefaults=4)}))},_getDataTypeList:function(e){var t=null;return y.forEach((function(i){i.dataType===e&&(t=i.conversionTypes)})),t},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._handleDataTypeMenuCommitListener&&this._handleDataTypeMenuCommitListener.remove(),this._convertSingleItem&&this._convertSingleItem.destroyRecursive(),this._revertDialogListener&&this._revertDialogListener.remove(),this._removeAllDialogListeners&&this._removeAllDialogListeners.remove(),this._handleActionExecutionCallback&&(this._convertToAction.removeEventListener("actionStatusChanged",this._handleActionExecutionCallback),this._handleActionExecutionCallback=null),this._initCallback&&this._view.removeEventListener("tableCreated",this._initCallback)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(206),i(217),i(213),i(222),i(317),i(288),i(542),i(331),i(354),i(1331),i(312),i(277),i(30),i(232),i(2276)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){var v=["dd-MMM-yyyy HH:mm:ss","dd-MMM-yyyy","MM/dd/yy HH:mm:ss","MM/dd/yyyy HH:mm:ss","MM/dd/yyyy hh:mm:ss a","MM/dd/yyyy","MM/dd/yy","MM/dd","HH:mm:ss","hh:mm:ss a","HH:mm","hh:mm a","dd-MMM-yyyy HH:mm","dd-MMM-yy","MM/dd/yyyy HH:mm","yyyy-MM-dd"],b=v.map((function(e){return e.replace(/MM\/dd/g,"dd/MM")})),y=e("datatoolsservices.DataTypeMenuManager",[a],{dataTypeList:void 0,_dataTypeList:void 0,_selected:void 0,_context:void 0,_menus:[],constructor:function(e,t,i){this.setDataTypeList(e||[],t,i)},getDataTypeList:function(){return t.clone(this._dataTypeList)},setDataTypeList:function(e,i,n){n=n||[],i=i||[],this.dataTypeList=t.clone(e).filter((function(e){return-1!==i.indexOf(e.dataType)&&(e.disabled=!0),-1===n.indexOf(e.dataType)}))},openMenu:function(e,t,i,n){this._prepareForNewMenu(t,i,n);var o=this._createMenu(s);o._removeRightClickEventListener(),this._focusSelectedDataTypeOnOpen(o),o.openMenu(e)},openMenuAndAddContent:function(e,t,i,n,o,r){this._prepareForNewMenu(t,i,n);var a=this._createMenu(s);a._removeRightClickEventListener(),void 0!==o&&(a.addChild(o),this.addMenuTo(o,t,r,!0)),this._focusSelectedDataTypeOnOpen(a),a.openMenu(e)},addMenuTo:function(e,i,n,o){this._prepareForNewMenu(i,n,o);var r=this._createMenu(d);t.getObject("_closeEventData.mwEventData.gainedFocusWidget._destroyed",!1,r)&&(r._closeEventData.mwEventData.gainedFocusWidget=null);var a=e.closeMenu;r.own(e.on("open",(function(){e.closeMenu=function(){},setTimeout((function(){e.closeMenu=a}))})));for(var s=e;s.getParentWidget&&s.getParentWidget();)s=s.getParentWidget();s=s.closeMenu?s:e,r.closeMenu=function(){s.closeMenu()},this._focusSelectedDataTypeOnOpen(e,s),e.menu=r},destroy:function(){this._destroyMenuInstances()},_prepareForNewMenu:function(e,i,n){n||this._destroyMenuInstances(),this._dataTypeList=t.clone(this.dataTypeList),this._selected=e||{},this._setContext(i)},_destroyMenuInstances:function(){this._menus.forEach((function(e){e.destroyRecursive()})),this._menus=[]},_setContext:function(e){this._context=e||{};var t=this._dataTypeList.filter((function(e){return e.customOptions}));e&&"allDataTypes"in e&&"allDataTypeOptions"in e?t.forEach(function(t){this._updateCustomOptions(t,e)}.bind(this)):t.forEach((function(e){e.customOptions=[]}))},_updateCustomOptions:function(e,t){var i=t.allDataTypeOptions.filter((function(i,n){return i&&n!==t.index&&t.allDataTypes[n]===e.dataType}));e.customOptions=[],t.allDataTypeOptions.forEach((function(n,o){n&&t.allDataTypes[o]===e.dataType&&-1!==i.indexOf(n)&&-1===e.defaultOptions.indexOf(n)&&-1===e.customOptions.indexOf(n)&&e.customOptions.push(n)}))},_createMenu:function(e){var t=new e({class:"dataTypeMenu",_dataTypeMenuData:{dataTypeList:this._dataTypeList,previous:this._selected,context:this._context},tag:"dataTypeMenu"});return this._menus.unshift(t),this._dataTypeList.forEach(function(e){this._createMenuItem(t,e)}.bind(this)),t.startup(),t},_createMenuItem:function(e,t){var i,n={text:t.displayType||t.dataType,dataType:t.dataType,disabled:t.disabled||!1,tag:t.dataType,icon:t.icon||""};return this._selected&&this._selected.dataType&&this._selected.dataTypeOption&&t.dataType===this._selected.dataType&&(n.text=n.text+" ("+this._selected.dataTypeOption+")",this._selected.revertAfterText&&(this._selected="")),t.defaultOptions||t.customOptions?((i=new c(n)).menu=this._createSubmenu(t),i.own(i.menu)):(i=new l(n),this._setupCommitListener(i,t),t.tooltipDialog?this._createHelpTooltipDialog(i,t.tooltipDialog):this._createMenuItemTooltip(i,t)),e.addChild(i),i},_createMenuItemTooltip:function(e,t){if(t.displayType.toLowerCase()!==t.dataType.toLowerCase()){this._setupTooltipFunctions(e,(function(){p.show(t.dataType,e.domNode)}),(function(){p.hide(e.domNode)}))}},_createSubmenu:function(e){var t=new d({class:"dataTypeMenu submenu"}),i=this;if(e.defaultOptions){var n=this._getNumberOfDefaultsToShow(e),o=this._getReorderedDefaults(e,n),r=this._getSplitDefaults(o,n);if(r.shown.forEach((function(n){i._createSubmenuItem(t,e,n)})),r.hidden.length){var a=r.hidden.map((function(t){return i._createSubmenuItem(null,e,t)}));this._createMoreOptionsItem(t,a)}}return e.defaultOptions&&e.customOptions&&t.addChild(new u),e.customOptions&&(e.customOptions.forEach((function(n){i._createSubmenuItem(t,e,n)})),this._createCustomOptionInput(t,e)),t},_createSubmenuItem:function(e,t,i){var n=new l({text:i.value||i,dataType:t.dataType,dataTypeOption:i});return e&&e.addChild(n),this._setupCommitListener(n,t),n},_createCustomOptionInput:function(e,t){var n=new h({class:"customOptionInput",value:this._getInputValue(t),dataType:t.dataType,placeholder:t.placeholder||_.dataTypeMenuCustomInputPlaceholder});return i.add(n.inputNode,"customOptionInputText"),e&&e.addChild(n),this._setupCommitListener(n,t),this._createHelpTooltipDialog(n,t.customHelp),n},_createMoreOptionsItem:function(e,t){var i=new l({class:"moreOptionsItem",text:"+ "+t.length+" more",closeMenuOnClick:!1});e.addChild(i),i.own(i.on("click",(function(){var n=e.getIndexOfChild(i);e.focus(),e.removeChild(i),i.destroyRecursive(),t.forEach((function(t,i){e.addChild(t,n+i)})),t[0].focus(),e.onOpen(),setTimeout((function(){t[0].focus()}))})))},_createHelpTooltipDialog:function(e,t){if(t){var i=new g({class:"dataTypeMenuCustomHelp",content:t});e.own(i);this._setupCommandLinks(i),this._setupTooltipFunctions(e,(function(){f.open({parent:e,popup:i,around:e.domNode,orient:["after-centered","before-centered","below","below-centered","below-alt"]})}),(function(){f.close(i)}),500)}},_setupCommandLinks:function(e){for(var t=this._menus[0],i=e.domNode.querySelectorAll('[href^="matlab:"]'),o=0;o<i.length;o++)!function(i){var o=i.getAttribute("href").replace("matlab:","");e.own(n(i,"click",(function(){m.sendMessage({Eval:{mcode:o}},{},"EvalDataTypeMenuHelpCommand"),t.closeMenu()}))),i.setAttribute("href","#")}(i[o])},_setupTooltipFunctions:function(e,t,i,o){var r=!1;e.own(e.on("focus",(function(){r=setTimeout(t,o||400)})),e.on("blur",(function(){clearTimeout(r),i()})),n(window,"blur",(function(){e.focused&&n.once(e,"focus",(function(){clearTimeout(r)}))})))},_setupCommitListener:function(e){var t,i=this,n=this._menus[0];e.closeMenuOnClick?t=e.on("click",(function(){i._commit(n,e.dataType,e.dataTypeOption)})):e.editable&&(t=e.on(["commit","recommit"],(function(t){i._commit(n,e.dataType,t.mwEventData.value)}))),t&&e.own(t)},_focusSelectedDataTypeOnOpen:function(e,t){t=t||e;var i=this,n=this._menus[0].getChildren().filter((function(e){return e.dataType===i._selected.dataType}))[0];if(this._focusItemOnOpen(e,n,t),n&&n.menu){var o=n.menu.getChildren().filter((function(e){return e.text&&e.text===i._selected.dataTypeOption||e.value&&e.value===i._selected.dataTypeOption}))[0];this._focusItemOnOpen(n,o,t)}},_focusItemOnOpen:function(e,i,n){i&&this._menus[0].own(e.on("open",(function(){setTimeout((function(){(e.focused||e.hovering)&&e.isMenuOpen()&&(i.focus(),t.setObject("_closeEventData.mwEventData.gainedFocusWidget",n,i))}))})))},_commit:function(e,t,i){var n=e._dataTypeMenuData;this.emit("commit",{dataType:t,dataTypeOption:i,displayType:this._getTypeItem(n.dataTypeList,t).displayType,previous:n.selected,context:n.context})},_getTypeItem:function(e,t){return e.filter((function(e){return e.dataType===t}))[0]},_getInputValue:function(e){var t=e.dataType===this._selected.dataType,i=e.customOptions.concat(e.defaultOptions||[]);return t&&-1===i.indexOf(this._selected.dataTypeOption)&&this._selected.dataTypeOption||""},_getNumberOfDefaultsToShow:function(e){return!0===e.expandDefaults?e.defaultOptions.length:e.expandDefaults||1},_getReorderedDefaults:function(e,t){var i=e.defaultOptions.slice();if(e.dataType===this._selected.dataType){var n=i.indexOf(this._selected.dataTypeOption);if(-1!==n&&n>t-1){var o=i.splice(n,1)[0];i.splice(t-1,0,o)}}return i},_getSplitDefaults:function(e,t){return{shown:e.slice(0,t),hidden:e.slice(t)}}});return y.DEFAULT_US_DATETIME_FORMATS=v,y.DEFAULT_NON_US_DATETIME_FORMATS=b,y}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{isConversionValid:function(e){var t=!0;return("timetable"===this._view.varType&&e<=0||e<0||this.isEmptyTable()||this.isColumnConvertible(e))&&(t=!1),t},isEmptyTable:function(){return 0===this._view.getDataStore().dataSize.rows.count},isColumnConvertible:function(e){var t=this._view.getMetaDataStore().getColumnModelProperty("IsSortable",e);return void 0===t&&(t=!0),!t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{COLUMN_RESIZED:"ColumnResized",VIEW_STATE_CHANGE_EVENTS:["ColumnResized"],VIEW_RENDERING:"renderingInProgress",VIEW_RENDERED:"renderingComplete",SIZE_CHANGED:"dataSizeChanged",DATA_CHANGED:"dataChanged",TABLE_META_DATA_CHANGED:"pagedTableMetaDataChanged",COLUMN_META_DATA_CHANGED:"pagedColumnMetaDataChanged",ROW_META_DATA_CHANGED:"pagedRowMetaDataChanged",CELL_META_DATA_CHANGED:"pagedCellMetaDataChanged"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(210),i(206),i(204),i(230),i(278),i(694)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t("variableeditor_peer/Plugins/Sort",[],{CODE_PUBLISHING_SORT_ACTION:"SortAction",NON_CODE_PUBLISHING_SORT_ACTION:"NewSortAction",PLUGIN_NAME:"SORT",constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME},addSortOptions:function(e,t){var i=this._view.getMetaDataStore().getColumnModelProperty("class",t.columnIndex);this._addSortDescButton(e,t,i),this._addSortAscButton(e,t,i)},_addSortAscButton:function(e,t,n){var o=this,r=e,a=this.sortMenuUtils(n,"ascend");i.add(a.domNode,"sort-button"),r.addChild(a);var s=a.on("click",(function(){var e=o._view.enableCodePublishing?o.CODE_PUBLISHING_SORT_ACTION:o.NON_CODE_PUBLISHING_SORT_ACTION;o._view._dispatchActionToServer(e,{index:t.columnIndex,order:"ASC",menuID:"SortAscending"},!0),r.close()}));r.own(s)},_addSortDescButton:function(e,t,n){var o=this,r=e,a=this.sortMenuUtils(n,"descend");i.add(a.domNode,"sort-button"),r.addChild(a);var s=a.on("click",(function(){var e=o._view.enableCodePublishing?o.CODE_PUBLISHING_SORT_ACTION:o.NON_CODE_PUBLISHING_SORT_ACTION;o._view._dispatchActionToServer(e,{index:t.columnIndex,order:"DESC",menuID:"SortDescending"},!0),r.close()}));r.own(s)},sortMenuUtils:function(e,t){var i,n,o=s.numSortTextAsc,r=s.numSortTextDesc,l=s.dtSortTextAsc,c=s.strSortTextAsc,d=s.strSortTextDesc,u=s.dtSortTextDesc;return"ascend"===t?(i=a.isTypeText(e)?c:a.isTypeTime(e)?l:o,n="sortAscendingIcon"):(i=a.isTypeText(e)?d:a.isTypeTime(e)?u:r,n="sortDescendingIcon"),this._view.createMenuItem(i,n)},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(382),i(214),i(203),i(210),i(206),i(204),i(212),i(236),i(230),i(2320),i(278),i(1556),i(354),i(847),i(269),i(1325),i(366),i(693),i(635),i(1198),i(2343),i(2346),i(694),i(987)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){return i("variableeditor_peer/Plugins/ColumnFilter",[],{PLUGIN_NAME:"COLUMN_FILTER",INITFILTER_ACTION:"InitializeFilterAction",SEARCH_ACTION:"SearchFilterAction",SELECT_ALL_ACTION:"SelectAllAction",CLEAR_ALL_ACTION:"ClearAllAction",EDIT_CHECKBOX_ACTION:"EditCheckboxAction",EDIT_TEXTBOX_ACTION:"EditTextboxAction",NUMROWS_FOR_HEIGHT_CONSTRICT:10,_filteredRowCount:0,_totalRowCount:0,_SELECTION_SUMMARY_HEIGHT:"22px",_filteredCountLabel:E.FilteredCountText,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._embeddedTableDoc={}},addFilterOptions:function(e,t){var i=this._view.getMetaDataStore(),n=i.getColumnModelProperty("class",t.columnIndex),o=i.getColumnModelProperty("HeaderName",t.columnIndex);this.createFilteringUIForDataType(e,o,n,t)},_initFilterManager:function(e){var t=!0,i=this._view,n=this;if(!i._filterManager){var o=require("variableeditor_peer/VEFactory"),a=function(e){var o="/VE/filter"+i.peerDocument.propertyObj.docID;i._filterManager=e.createManager({channel:o,ignoreUpdates:!1,showSummaryBar:!1}),i.managerReadyCallback=r.hitch(n,"handlePropertySetOnMgr"),i._filterManager.addEventListener("managerReady",i.managerReadyCallback),i._dialogCreationUtils=new u,t=!1};a(o),this._embeddedTableDoc={}}this.isFilteringEnabled(e.columnIndex)&&!this._embeddedTableDoc[e.columnIndex]&&(t&&(a=function(e){var t="/VE/filter"+i.peerDocument.propertyObj.docID;i._filterManager=e.createManager({channel:t,ignoreUpdates:!1,showSummaryBar:!1,forceNewManager:!1})})(o=require("variableeditor_peer/VEFactory")),i._dispatchActionToServer(n.INITFILTER_ACTION,{index:e.columnIndex},null))},createFilteringUIForDataType:function(e,t,i,n){d.isTypeTextFiltering(i)?this._createTableFilteringDialog(e,t,i,n):d.isTypeNumericFiltering(i)&&this._createNumericFilteringDialog(e,t,i,n)},createLabel:function(e){return new f({text:e})},_createNumericFilteringDialog:function(i,o,r,a){n.add(i.domNode,"NumericFilterContextMenu");var s=this._createFilteringWidgetForDataType(r,o),l=this,c=a.columnIndex;this._view.own(t.before(s,"dispatchFilterActionToServer",(function(){l._view._dispatchActionToServer(l.EDIT_TEXTBOX_ACTION,{index:c},!0)}))),i.addChild(s),this.createEmbeddedTable(o,a).then((function(t){if(l._view._isContextMenuAlive[a.columnIndex]&&!s._beingDestroyed){l._embeddedTableDoc[a.columnIndex]=t;var i=l._view._filterViews[t.varDocID];s.initNumericWidget(i);var n=i.getDataStore(),o=Number(t.varSize.split(/[^0-9]/)[1])-1,r=e.createRange(0,1,0,o);n.managePaging(r)}})),this._createFooterSummary(i,r),this._view.openMenu(i,a)},_createFilteringWidgetForDataType:function(e,t){return"datetime"===e?new y({columnName:t,columnClass:e}):"duration"===e?new C({columnName:t,columnClass:e}):new b({columnName:t,columnClass:e})},_createTableFilteringDialog:function(e,i,o,r){n.add(e.domNode,"sortFilterContextMenu"),e.addChild(new h),this.createSearchBox(e,i,r),this.createSelectAndClearAllLabels(e,i,r);var a=this;this.createEmbeddedTable(i,r).then((function(i){var n=a._view._filterViews[i.varDocID];i.own(t.after(n.getDataStore(),"update",(function(){a._view._dispatchActionToServer(a.EDIT_CHECKBOX_ACTION,{index:r.columnIndex,userAction:"SingleCheckbox"},!0)}))),a._initViewForTable(i),e.addChild(i),a._createFooterSummary(e,o),a._embeddedTableDoc[r.columnIndex]=i;var s=null;n.addEventListener(m.COLUMN_META_DATA_CHANGED,s=function(){n.getMetaDataStore().getColumnModelProperty("FilteredColumnWidth",0)&&(n.resize(),d.forceRedraw(i.domNode),n.removeEventListener(m.COLUMN_META_DATA_CHANGED,s))}),a._view.openMenu(e,r)}))},_initViewForTable:function(e){var t=this._view._filterViews[e.varDocID];t._setColumnWidth({columnWidth:35}),t.getCurrentSize().rows.count>this.NUMROWS_FOR_HEIGHT_CONSTRICT?n.add(e.domNode,"constrictHeight"):n.remove(e.domNode,"constrictHeight"),t._updateView()},createSearchBox:function(e,t,i){var o=this,r=this.createSearchTextField(i);n.add(r.domNode,"search-textfield"),e.addChild(r);var a=r.on("typing",(function(e){var n=o._embeddedTableDoc[i.columnIndex],r=o._view._filterViews[n.varDocID];o._view._dispatchActionToServer(o.SEARCH_ACTION,{varName:t,searchText:e.mwEventData},!1),r.resize()}));e.own(a)},createSearchTextField:function(e){return new p({closeMenuOnClick:!1})},createSelectAndClearAllLabels:function(e,t,i){var o=this,r=i.columnIndex,a=new g;n.add(a.domNode,"SelectionControls"),e.addChild(a);var s=this.createLabel(E.SelectAll);n.add(s.domNode,"select-all-label"),a.addChild(s);var l=s.on("click",(function(){o._handleSelectAll(r)}));e.own(l);var c=this.createLabel(E.ClearAll);n.add(c.domNode,"clear-all-label"),a.addChild(c);var d=c.on("click",(function(){o._handleClearAll(r)}));e.own(d)},_handleClearAll:function(e){this._view._dispatchActionToServer(this.EDIT_CHECKBOX_ACTION,{index:e,userAction:"ClearAll"},!0)},_handleSelectAll:function(e){this._view._dispatchActionToServer(this.EDIT_CHECKBOX_ACTION,{index:e,userAction:"SelectAll"},!0)},_handleFilteredDataSummaryChange:function(e){this._totalRowCount=e.OriginalRowCount,this._filteredRowCount=e.FilteredRowCount,this._selectionFooter&&this._selectionFooter.domNode&&this._updateSelectionFooterSummary()},_updateSelectionFooterSummary:function(){var e=s.substitute(this._filteredCountLabel,{0:this._filteredRowCount,1:this._totalRowCount});this._selectionFooter.textNode.textContent=e},_createFooterSummary:function(e,t){this._selectionFooter=this._createSelectionSummary();var i=this._createFooterColumnType(t);e.addChild(this._selectionFooter),e.addChild(i)},_createSelectionSummary:function(){var e=s.substitute(this._filteredCountLabel,{0:this._filteredRowCount,1:this._totalRowCount}),t=this.createLabel(e);return t.domNode.style.height=this._SELECTION_SUMMARY_HEIGHT,t.startup(),n.add(t.domNode,_.FILTER_SUMMARY_CLASS),t},_createFooterColumnType:function(e){var t=d.getColumnClassForDisplay(e),i=this.createLabel(t);return i.startup(),n.add(i.domNode,_.COLUMN_NAME_CLASS),i},isFilteringEnabled:function(e){return this._view.getMetaDataStore().getColumnModelProperty("IsFilterable",e)},handlePropertySetOnMgr:function(){var e=this._view._filterManager;this._removeEventListener=t.after(e,"removeDocument",this.handleChildRemovedOnManager.bind(this),!0),e.propertyObj.hasOwnProperty("FilterDataSummary")&&this._handleFilteredDataSummaryChange(e.propertyObj.FilterDataSummary),this._remotePropertySetListener=t.after(e,"handlePropertySet",this.handlePropertySetOnRoot.bind(this),!0),this._view._filterManager.removeEventListener("managerReady",this._view.managerReadyCallback)},handlePropertySetOnRoot:function(e){"FilterDataSummary"===e.data.key&&this._handleFilteredDataSummaryChange(e.data.newValue)},handleChildRemovedOnManager:function(e){var t=e.docID,i=this._getIndexForHashedDocuments(t);parseInt(i)>-1&&(this._embeddedTableDoc[i]={},this._view._filterViews[t]={},delete this._embeddedTableDoc[i],delete this._view._filterViews[t])},_getIndexForHashedDocuments:function(e){var t=-1;for(var i in this._embeddedTableDoc){if(this._embeddedTableDoc.hasOwnProperty(i))this._embeddedTableDoc[i].varDocID===e&&(t=i)}return t},createEmbeddedTable:function(e,t){var i=null,o=null,r=new a,s=this._view,l=Object.keys(s._filterManager.documents).filter((function(t){return e===s._filterManager.documents[t].varName})).map((function(e){return s._filterManager.documents[e]}));return l.length>0?r.resolve(l[0]):s._filterManager.addEventListener("variableAdded",i=function(e){l[0]=e.data.peerDoc,n.add(l[0].domNode,"embeddedTable"),s._filterManager.removeEventListener("variableAdded",i);var t=function(e){if(e){var t=e.viewID;l[0].getView(t).then((function(e){l[0].parentViewToDocument(e),s._filterViews[l[0].varDocID]=e,e.setSortable(!1),r.resolve(l[0])}))}},a=l[0].getViews();a.length>0?t(a[0]):l[0].addEventListener("viewCreated",o=function(e){e.data&&e.data.viewModel&&(t(e.data.viewModel),l[0].removeEventListener("viewCreated",o))})}),r},dispatchSearchAction:function(e){this._view._dispatchActionToServer(this.SEARCH_ACTION,{varName:e,searchText:{currentContent:""}},!1)},destroy:function(){if(this._view._filterManager){this._removeEventListener&&this._removeEventListener.remove(),this._remotePropertySetListener&&this._remotePropertySetListener.remove(),this._view._filterManager.destroy();var e=this;!function(t){t.deleteManager(e._view._filterManager)}(require("variableeditor_peer/VEFactory"))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(236),i(278),i(635),i(987)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("variableeditor_peer/HeaderMenus/FilteredRangeMixin",[],{_minVal:"",_maxVal:"",_minValOriginal:"",_maxValOriginal:"",_MIN_LABEL_CLASS:"MinLabel",_MAX_LABEL_CLASS:"MaxLabel",_defaultMissingNotation:"NaN",_minLabelText:r.MinVal,_maxLabelText:r.MaxVal,_minLabelTooltip:r.minValTooltip,_maxLabelTooltip:r.maxValTooltip,createFilteredRangeFields:function(e){this._updateMinMaxValues(this._minValOriginal,this._maxValOriginal),this._minRangeLabel=this._createLabel(this._minVal,this._MIN_LABEL_CLASS,e),this._maxRangeLabel=this._createLabel(this._maxVal,this._MAX_LABEL_CLASS,e)},_updateToolTips:function(){this._minRangeLabel.domNode.title=this._minLabelTooltip,this._maxRangeLabel.domNode.title=this._maxLabelTooltip},_updateFilteredRangeFields:function(e){var t=e.getLocalCellData(0,o.FilteredMinDispVal),i=e.getLocalCellData(0,o.FilteredMaxDispVal);if(t&&i){this._minValOriginal=this._formatDisplayVal(t),this._maxValOriginal=this._formatDisplayVal(i);var r=n.formatNumeric(this._minValOriginal),a=n.formatNumeric(this._maxValOriginal);this._updateMinMaxValues(r,a),this._minRangeLabel.textNode.textContent=this._minVal,this._maxRangeLabel.textNode.textContent=this._maxVal,this._updateToolTips()}},_resetFilteredRangeFields:function(){this._updateMinMaxValues(this._defaultMissingNotation,this._defaultMissingNotation),this._minRangeLabel.textNode.textContent=this._minVal,this._maxRangeLabel.textNode.textContent=this._maxVal},_updateMinMaxValues:function(e,t){this._minVal=i.substitute(this._minLabelText,{0:e.toString()}),this._maxVal=i.substitute(this._maxLabelText,{0:t.toString()})},destroyFilteredRange:function(){this._minRangeLabel.destroy(),this._maxRangeLabel.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1198),i(2344),i(6500),i(6501),i(2345),i(6503)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("variableeditor_peer/HeaderMenus/DateTimeHeaderMenuMixin",[i,n,o,a],{templateString:s,initializeWidget:function(){this.inherited(arguments),this.initValidationMixin(this._selectionMinRangeText.timePicker.textField,this._selectionMaxRangeText.timePicker.textField)},createEditor:function(e){return new r(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2342),i(635)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_peer/HeaderMenus/DateTimeFilteredRangeMixin",[t],{_DATE_TIME_MULTILINE_CLASS:"Multiline",_updateFilteredRangeFields:function(e){var t=e.getLocalCellData(0,i.FilteredMinDispVal),n=e.getLocalCellData(0,i.FilteredMaxDispVal),o=e.getLocalCellData(0,i.ShowTimeComponent);if(o=o?Number(this._formatDisplayVal(o)):0,t&&n){this._minValOriginal=this._formatDisplayVal(t),this._maxValOriginal=this._formatDisplayVal(n);var r=this._minValOriginal,a=this._maxValOriginal;this._updateMinMaxValues(r,a),this._minRangeLabel.textNode.textContent=this._minVal,this._maxRangeLabel.textNode.textContent=this._maxVal,o&&this.filteredRange.classList.add(this._DATE_TIME_MULTILINE_CLASS),this._updateToolTips()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(433)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor_peer/HeaderMenus/ValidationMixin",[n],{initValidationMixin:function(){this.origDomNode=this.domNode,this.widgetArray=Array.prototype.slice.call(arguments)},_addTooltipEvents:function(){this.widgetArray.forEach((function(e){this.addTooltipEventsForWidget(e)}),this)},addTooltipEventsForWidget:function(e){this.own(i.after(e,"onFocus",function(){this.domNode=e.domNode,this._placeTooltip(e.domNode),this.validationTooltip&&("error"!==this.get("validationState")&&"warning"!==this.get("validationState")||this.validationTooltip.domNode.classList.add("mwValidationFocused"))}.bind(this)),i.after(e,"onBlur",function(){this.domNode=this.origDomNode,this.validationTooltip&&(this.validationTooltip.domNode.classList.remove("mwValidationFocused"),this.validationTooltip.domNode.style.visibility="hidden")}.bind(this)))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(1198),i(6504),i(6505),i(2345)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("variableeditor_peer/HeaderMenus/DurationHeaderMenuMixin",[n,o,r,a],{initNumericWidget:function(){this.inherited(arguments),this.initValidationMixin(this._selectionMinRangeText.textField,this._selectionMaxRangeText.textField)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(210),i(206),i(204),i(230),i(354),i(278),i(2348),i(2308),i(1193),i(2311),i(2299),i(6513),i(694),i(1199)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return t("variableeditor_peer/Plugins/CleanCategories",[],{EDIT_CATEGORIES_MENU:p.EditCategoriesMenu,EDIT_CATEGORIES_ICON_CLASS:"editCategoriesIcon",PLUGIN_NAME:"CLEAN_CATEGORIES",constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME},createCategoricalCleaningMenuItem:function(e,t){var i=this._view.getMetaDataStore().getColumnModelProperty("HeaderName",t.columnIndex),n=this;e.addChild(new a);var o=this._view.createMenuItem(this.EDIT_CATEGORIES_MENU,this.EDIT_CATEGORIES_ICON_CLASS);e.addChild(o);var r=o.on("click",(function(){n.handleClickEvent(e,i)}));e.own(r)},handleClickEvent:function(e,t){},openCategoricalCleaner:function(e,t){o.mixin(t,{columnModel:this.getDefaultColumnConfig(),rendererConfigInfo:{totalCount:this.getRowInfoForDataBars()}});var i=new l(t);return e.close(),i},getDefaultColumnConfig:function(){return{columnConfig:[{label:g.order_columnName,dataIndex:0,width:{value:20,unit:"%"},sortType:"NUMERIC",renderer:new c},{label:g.categories_columnName,dataIndex:1,width:{value:50,unit:"%"},sortType:"NUMERIC",renderer:new d({removeQuotes:!0}),editor:s.getCustomEditor()},{label:g.counts_columnName,dataIndex:2,width:{value:30,unit:"%"},sortType:"NUMERIC",renderer:new h({totalCount:this.getRowInfoForDataBars()})}]}},getRowInfoForDataBars:function(){return this._view.getDataStore().dataSize.rows.count}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(211),i(210),i(203),i(206),i(214),i(204),i(273),i(6506),i(506),i(278),i(366),i(596),i(219),i(1199)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return n("variableeditor_peer.CategoricalCleaner.RemoteCategoricalCleanerWidget",[l,h,e],{EDIT_CATEGORIES_ACTION:"EditCategoriesAction",NEW_CATEGORY_NAME:"<<New Category>>",ORDER_COLUMN:0,CATEGORIES_COLUMN:1,COUNTS_COLUMN:2,TOTAL_COLUMN_COUNT:3,SELECTION_PLUGIN:"MULTI_ROW_SELECTION",CELL_FOCUS_PLUGIN:"CELL_FOCUS",constructor:function(e){e&&(this.outputDocID=e.documentID,this.outputView=e.outputView,this.mergeToNew=!1)},_init:function(e){var t=this;!function(i){t.manager=i.createManager({channel:e.channel,outputView:e.outputView,ignoreUpdates:!1,showSummaryBar:!1,columnWidth:10,columnModel:e.columnModel,editable:!0,forceNewManager:!0}),t._dispatchEditCategoriesAction(e.outputView,e.columnName,e.revertFilters)}(require("variableeditor_peer/VEFactory")),this._addVariableAddedListener()},_dispatchEditCategoriesAction:function(e,t,i){e._dispatchActionToServer(this.EDIT_CATEGORIES_ACTION,{columnName:t,revertFilters:i})},_addVariableAddedListener:function(){this.manager.addEventListener("variableAdded",a.hitch(this,"_handleDocumentAdded"))},_getOutputRowCount:function(){return this.outputView.getDataStore().dataSize.rows.count},_handleDocumentAdded:function(e){var t=e.data.peerDoc;this._updateDataBarsRenderer(t),t.addEventListener("viewCreated",a.hitch(this,"_handleViewCreated"))},_updateDataBarsRenderer:function(e){this._getDataBarsRenderer(e).config.totalCount=this._getOutputRowCount()},_getDataBarsRenderer:function(e){return e.allArgs.columnModel.columnConfig[2].renderer},_handleViewCreated:function(e){this._categoriesView=e.data.viewModel,this._categoriesView.peerDocument.parentViewToDocument(this._categoriesView),o.emit(this._categoriesView.peerDocument.domNode,"startup",{bubbles:!0,cancelable:!0}),this.manager.outputRowCount=this._getOutputRowCount(),this._createDialog({categories:this._categoriesView.domNode}),this._handleDialogClose(),this._addUndefinedCountListeners(),this.addResizeListeners(this._categoriesView),this._addSelectionListeners(),this._addEditListeners(),this._addActionListeners(),this._selectionEventListener=r.after(this._categoriesView,"handlePropertySet",this._handleServerSelectionEvent.bind(this),!0);var t=[u.SIZE_CHANGED,u.DATA_CHANGED];this.initListenersOnView(this._categoriesView,t);var i=this._categoriesView.getDataStore();this._columnSortedListener=i.on("columnSorted",a.hitch(this,this._handleColumnSort))},_handleDialogClose:function(){var e=this;this.own(o(this.dialog.domNode,"close",(function(){e._destroyManager()})))},_handleDataChanged:function(e){(this._updateSelectionStateOnDataChange(),this._lastSortedColumn)&&this._categoriesView._table.setSortIndicator({order:this._lastSortedColumn.order,columnIndex:this._lastSortedColumn.index});if(this._categoriesView.getMetaDataStore().getTableModelProperty("isOrdinal")){var t=e.data.rangeList[0],i=this._categoriesView.getDataStore().getLocalRangeData(t);(!i||Array.isArray(i)&&0===i.length)&&this._updateUIForEmptyOrdinalData()}},_handleSizeChanged:function(e){this._categoriesView.getMetaDataStore().getTableModelProperty("isOrdinal")&&0===e.data.dataSize.rows.count&&this._updateUIForEmptyOrdinalData()},_updateUIForEmptyOrdinalData:function(){this.contentAreaWidget.updateAddActionState(!0)},_addActionListeners:function(){var e=this;this.own(o(this.contentAreaWidget.addCategoriesNode,"addAction",(function(t){e._categoriesView._dispatchActionToServer("AddCategoriesAction",{outputDocumentID:e.outputDocID},!0),e.scrollToBottom=!0}))),this.own(o(this.contentAreaWidget.removeCategoriesNode,"removeAction",(function(t){var i=e.selectionPlugin.getSelection();e._categoriesView._dispatchActionToServer("RemoveCategoriesAction",{selection:i,outputDocumentID:e.outputDocID},!0),e._updateSelectionStateOnInteraction()}))),this.own(o(this.contentAreaWidget.mergeCategoriesNode,"mergeAction",(function(t){var i=e.selectionPlugin.getSelection();if(e._isValidMerge(i)){var n=t.mwEventData.value;t.mwEventData.value===f.mergeToNewItem&&(n="<New Category>"),e._categoriesView._dispatchActionToServer("MergeCategoriesAction",{selection:i,mergedCategory:n,outputDocumentID:e.outputDocID},!0);var o=e._categoriesView._dataStore.on("serverFetchComplete",(function(){e.mergeToNew=!0,e.mergeToNewSelection=i,e._categoriesView.editCell(e._categoriesView._dataStore._currentViewRange.rows.count-1,1),o.remove()}))}}))),this.own(o(this.contentAreaWidget.searchFieldNode,"searchAction",(function(t){e._currSearchText=t.mwEventData.currentContent,e._categoriesView._dispatchActionToServer("SearchCategoriesAction",{searchText:t.mwEventData.currentContent,outputDocumentID:e.outputDocID},!0),e._updateSelectionStateOnInteraction()})))},_addUndefinedCountListeners:function(){this._updateUndefinedCount({}),this._categoriesView.addEventListener("pagedTableMetaDataChanged",a.hitch(this,"_updateUndefinedCount"))},_updateUndefinedCount:function(e){var t=this._categoriesView.getMetaDataStore().getTableModelProperty("UndefinedCount");void 0!==t&&(this.contentAreaWidget.undefinedCategoriesValueNode.innerText=t)},_isValidMerge:function(e){return!(1===e.length&&1===e[0].rows.count)},_addSelectionListeners:function(){this.selectionPlugin=this._categoriesView.getPluginByName(this.SELECTION_PLUGIN),this.focusPlugin=this._categoriesView.getPluginByName(this.CELL_FOCUS_PLUGIN);var e=this._categoriesView._table,t=this;e.on("selectionChanged",(function(e){t._notifyContentWidget(e.rangeList)}))},_notifyServerOfSelection:function(){var e=this.selectionPlugin.getSelection(),t=this;this._requestTimerOnSelection&&clearTimeout(this._requestTimerOnSelection),this._requestTimerOnSelection=setTimeout((function(){t._categoriesView._dispatchActionToServer("SelectionChangedAction",{outputDocumentID:t.outputDocID,selection:e},!1)}),200)},_updateSelectionStateOnInteraction:function(){this.selectionPlugin.clearSelection(),this._notifyContentWidget(this.selectionPlugin.getSelection())},_handleServerSelectionEvent:function(e){if("Selection"===e.data.key){var t=e.data.newValue;t=t.selectedRows;try{t=JSON.parse(t)}catch(e){}if(t.length>0){var i=t[0].start,n={startRow:i,endRow:i,startColumn:0,endColumn:this.TOTAL_COLUMN_COUNT};this._setSelection(n);var o=this._categoriesView.ROW_HEIGHT*i;this._setScrollPosition(o);var r={startRow:i,endRow:i,startColumn:this.CATEGORIES_COLUMN,endColumn:this.CATEGORIES_COLUMN};this.focusPlugin.setCellFocus(r)}}},_updateSelectionStateOnDataChange:function(){if(this._notifyContentWidget(this.selectionPlugin.getSelection()),this.scrollToBottom){var e=this._categoriesView.getDataStore().dataSize.rows.count,t=this._categoriesView.ROW_HEIGHT*e;this._setScrollPosition(t),this.scrollToBottom=!1}},_setSelection:function(e){this.selectionPlugin.setSelection(e),this._notifyContentWidget(this.selectionPlugin.getSelection())},_setScrollPosition:function(e){var t=this._categoriesView.domNode.getElementsByClassName(c.TABLE_SCROLLING_NODE)[0];t&&(t.scrollTop=e)},_notifyContentWidget:function(e){var t=this._getSelectedCategoriesFromDataStore(e);this.contentAreaWidget.categoriesViewNode&&o.emit(this.contentAreaWidget.categoriesViewNode,"SelectionChanged",{selection:t})},_getSelectedCategoriesFromDataStore:function(e){var t=[],i=this;return e&&e.forEach((function(e){for(var n=i._categoriesView.getDataStore(),o=e.rows.start;o<=e.rows.end;o++){var r=n.getLocalCellData(o,i.CATEGORIES_COLUMN);if(r){var a=this.getParsedValue(r);t.push(a[0].value)}}}),this),t},getParsedValue:function(e){try{return d.parseTableJSONData(e)}catch(t){return[{value:e}]}},_addEditListeners:function(){var e=this._categoriesView._table,t=this;e.on("editCompleted",(function(e){t._handleEditCompleted(e)}))},_handleEditCompleted:function(e){var t=e.newValue,i=this.getParsedValue(e.oldValue)[0].value;if('"'===i[0]&&(i=i.substring(1,i.length-1)),i!==t){var n=parseInt(JSON.parse(e.oldValue).row),o=parseInt(JSON.parse(e.oldValue).col),r=this.selectionPlugin.getSelectionRangeObject({startRow:n,endRow:n,startColumn:o,endColumn:o}),a=n!==this.selectionPlugin.getSelection()[0].rows.start;this._categoriesView._dispatchActionToServer("RenameCategoriesAction",{outputDocumentID:this.outputDocID,selection:r,selectionChangedAfterRename:a,newValue:t,oldValue:i,mergeToNew:this.mergeToNew,mergeToNewSelection:this.mergeToNewSelection},!0),this.mergeToNew=!1,this.mergeToNewSelection=[]}this._updateSearchStateIfRequired(t)},_updateSearchStateIfRequired:function(e){if(this._currSearchText){var t=this._currSearchText.toLowerCase();-1===e.toLowerCase().indexOf(t)&&(this.contentAreaWidget._searchField._setValueAttr(""),this._currSearchText="",this.contentAreaWidget.updateAddActionState(!1))}},_handleColumnSort:function(e){var t=this.selectionPlugin.getSelection();this._categoriesView._dispatchActionToServer("SortActionCategorical",{index:e.columnIndex[0],order:e.order,selection:t},!0),this._lastSortedColumn={index:e.columnIndex,order:e.order},!t||1===t.length&&1===t[0].rows.count||(this._updateSelectionStateOnInteraction(),this.focusPlugin.clearCellFocus())},applyAndClose:function(){this._categoriesView._dispatchActionToServer("ApplyAction",{outputDocumentID:this.outputDocID},!1),this.destroyWidget(!0)},_destroyManager:function(){this.manager.closeAllVariables(),this.manager.destroy();var e=this;!function(t){t.deleteManager(e.manager)}(require("variableeditor_peer/VEFactory"))},destroyWidget:function(e){this.inherited(arguments),this.destroy(),this._columnSortedListener&&this._columnSortedListener.remove(),this._selectionEventListener&&this._selectionEventListener.remove(),e||this._destroyManager()},destroy:function(){this.inherited(arguments)},_getTable:function(){return this._categoriesView._table}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(382),i(744),i(366),i(203),i(214)],o=i.dj.d(n,(function(e,t,i,n,o){return n("variableeditor_peer.plugins.RemoteSelectionBase",[],{_SERVER_PING_TIMEOUT:250,_requestQueued:!1,constructor:function(e){this._serverSelectionTimeout=null,this._requestQueued=!1,this._initSelectionChangedListenerFn=this._initSelectionChangedListeners.bind(this),e.addEventListener("tableCreated",this._initSelectionChangedListenerFn),this._initPropertySetListeners(e),this._initServerReadyListeners(e)},_initSelectionChangedListeners:function(){var e=this._handleSelectionChanged.bind(this);this._selectionChangedHandle=this._view._table.on("selectionChanged",e)},_initPropertySetListeners:function(e){this._remotePropertySetListener=o.after(e,"handlePropertySet",this.handlePropertySet.bind(this),!0)},_initServerReadyListeners:function(e){e.provider||(this._aspectHandle=o.after(e,"serverReady",this._handleServerReady.bind(this)))},_handleServerReady:function(){this._requestQueued&&this._handleSelectionChanged(),this._aspectHandle&&this._aspectHandle.remove()},handlePropertySet:function(e){if(this._isValidSelectionEvent(e)){var n=e.data.newValue,o=JSON.parse(n.selectedRows),r=JSON.parse(n.selectedColumns);t.populateRangeCount(o),t.populateRangeCount(r);var a={selectedRows:o,selectedColumns:r};this.setSelection(a,n.selectionSource||n.source)}"rowRange"!==e.data.key&&"colRange"!==e.data.key||this._view.dispatchEvent(i.SELECTION_RANGE_CHANGED,this._view,e.data)},setSelection:function(e,t){this._view._table.setSelection(e,t),0===e.selectedRows.length&&0===e.selectedColumns.length&&this._view._table.setCellFocus([])},_isValidSelectionEvent:function(e){var t=e.data.newValue;return"Selection"===e.data.key&&!(t.source&&"client"===t.source||t.selectionSource&&"client"===t.selectionSource)},_handleSelectionChanged:function(e){e=e||{},this._serverSelectionTimeout&&clearTimeout(this._serverSelectionTimeout);var t=this;"server"!==e.originator&&(this._serverSelectionTimeout=setTimeout((function(){if(t._view.provider){const e=t._getCurrentSelection();e&&e.selectedRows&&(e.selectedRows=JSON.stringify(e.selectedRows)),e&&e.selectedColumns&&(e.selectedColumns=JSON.stringify(e.selectedColumns)),t._view.provider.setPropertyOnServer(t._view,"Selection",e),t._requestQueued=!1}else t._requestQueued=!0;t._serverSelectionTimeout=null}),this._SERVER_PING_TIMEOUT)),this._view.dispatchEvent&&this._view.dispatchEvent(i.SELECTION_CHANGED,this._view,{rangeList:e,originator:e.originator})},_getCurrentSelection:function(){return this._view._table.getSelection()},destroy:function(){this._serverSelectionTimeout&&(clearTimeout(this._serverSelectionTimeout),this._serverSelectionTimeout=null),this._initSelectionChangedListenerFn&&this._view.removeEventListener("tableCreated",this._initSelectionChangedListenerFn),this._selectionChangedHandle&&this._selectionChangedHandle.remove(),this._remotePropertySetListener&&this._remotePropertySetListener.remove(),this._aspectHandle&&this._aspectHandle.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2351)],o=i.dj.d(n,(function(e,t){return e([t],{PLUGIN_NAME:"COLUMN_HEADER_EDITING",HEADER_EVENT_NAME:"columnHeaderUpdated",ERROR_HANDLER_NAME:"ErrorDuplicateColumnHeader",MODEL_PROPERTY_NAME:"ColumnModelProperty",_getModelPropertyValue:function(e){return{column:e.columnIndex-1,property:"HeaderName",value:e.value}},_handleRevert:function(e){var t=this._view.getMetaDataStore().getColumnModelProperty("HeaderName",e.data.index),i={columnIndex:e.data.index+1,value:t};this._handleHeaderUpdate(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(235),i(209),i(393),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{_aspectHandle:null,_remoteEventListener:null,_headerUpdatedListener:null,_errorHandlerListener:null,_channel:null,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._remoteEventListener=null,this._headerUpdatedListener=null,this._view.provider?this._handleServerReady(null,[this._view.provider]):this._aspectHandle=t.after(this._view,"serverReady",this._handleServerReady.bind(this))},_handleServerReady:function(){var e=this._view.getDataStore();this._channel=e.getDataProviderChannel(),this._headerUpdatedListener=e.on(this.HEADER_EVENT_NAME,this._handleHeaderUpdate.bind(this)),this._remoteEventListener=t.after(this._view,"handleRemoteEvent",this._handleRemoteEvent.bind(this),!0),this._errorHandlerListener=r.subscribe(this._channel+"/"+this.ERROR_HANDLER_NAME,"_handleRemoteEvent",this)},_handleHeaderUpdate:function(e){this._view.provider.setPropertyOnServer(this._view,this.MODEL_PROPERTY_NAME,this._getModelPropertyValue(e))},_handleRemoteEvent:function(e){"server"===e.data.source&&"error"===e.data.status&&e.data.type===this.ERROR_HANDLER_NAME&&e.data.message&&(i.displayErrorMessage(e.data.message),this._handleRevert(e))},_handleRevert:function(e){this._handleHeaderUpdate(e)},_getModelPropertyValue:function(e){n.error("_getModelPropertyValue is unimplemented")},destroy:function(){this._headerUpdatedListener&&this._headerUpdatedListener.remove(),this._remoteEventListener&&this._remoteEventListener.remove(),this._errorHandlerListener&&this._channel&&r.unsubscribe(this._channel+"/"+this.ERROR_HANDLER_NAME,"_handleRemoteEvent",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1555),i(239),i(382),i(2349)],o=i.dj.d(n,(function(e,t,i,n,o){return e("variableeditor_peer/Plugins/RemoteRowBasedSelection",[t,o],{_remoteSelection:null,_SERVER_PING_TIMEOUT:0,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._remoteSelection=null},_getCurrentSelection:function(){var e=this.getSelection(),t={selectedRows:[],selectedColumns:[],source:"client"},i=this._view.getDataStore();return e.forEach((function(e){t.selectedRows.push({start:e.rows.start,end:e.rows.end}),t.selectedColumns.push({start:e.columns.start,end:Math.min(e.columns.end,i.dataSize.columns.end)})})),t},_onTableSetSelection:function(e){var t=this._view._table.getSelection();this._remoteSelection&&t&&t.length===this._remoteSelection.length&&this._remoteSelection.every((function(e){return t.some((function(t){return i.isRangeEqual(t,e)}))}))||this.inherited(arguments)},setSelection:function(e){var t=null,n=e.selectedRows.map((function(e){return t=t||e.start,i.range().setEntireRows(e.start,e.end)}));this._remoteSelection=n,this._view._table.setSelection(n);var o=this._view._table.getFocusedCell(),r=this._view._table.getSelection();if(r&&0!==r.length){if(o.hasOwnProperty("row")){var a=i.range().setRows(o.row,o.row).setColumns(o.column,o.column);i.doesRangeListIntersect(this._view._table.getSelection(),[a])||this._view._table.setCellFocus([i.range().setRows(t,t).setColumns(o.column,o.column)])}}else this._view._table.setCellFocus([])},destroy:function(){this._remoteSelection=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(382),i(203),i(204),i(206),i(214),i(210),i(212),i(236),i(209),i(317),i(288),i(1325),i(273),i(262),i(847),i(269),i(354),i(278),i(693),i(366),i(2348),i(1556),i(635),i(1198),i(2343),i(2346),i(987),i(694)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A){return t("variableeditor_peer/HeaderMenuMixin",[],{REVERT_FILTER_TEXT:A.RevertFilterDialogText,REVERT_FILTER_DIALOG_TITLE:A.RevertFilterDialogTitle,REVERT_FILTER_CLASS:"RevertFilterDialog",REVERT_FILTER_DATA_TEST_ID:"RevertFilterDataTestID",_isContextMenuAlive:{},_filterViews:{},_viewContentChanged:!1,EDIT_CHECKBOX_ACTION:"EditCheckboxAction",EDIT_TEXTBOX_ACTION:"EditTextboxAction",SORT_ACTION:"NewSortAction",SORT_PLUGIN:"SORT",FILTER_PLUGIN:"COLUMN_FILTER",CLEAN_CATEGORIES_PLUGIN_NAME:"CLEAN_CATEGORIES",constructor:function(){this._isContextMenuAlive={},this._filterViews={},this._aspectHandles=[]},initHeaderMenu:function(e){var t=this.getPluginByName(this.FILTER_PLUGIN);t&&t._initFilterManager(e)},headerMenuRequested:function(e){var t=this.getMetaDataStore(),i=t.getColumnModelProperty("class",e.columnIndex),n=t.getColumnModelProperty("HeaderName",e.columnIndex),r=this,a=this.createContextMenu();return this._isContextMenuAlive[e.columnIndex]=!0,a.own(a.on("close",(function(){r._isPluginOn(r.FILTER_PLUGIN)&&r.isFilteringEnabled(e.columnIndex)&&(r.getPluginByName(r.FILTER_PLUGIN).dispatchSearchAction(n),a.removeChild(a.getChildren().filter((function(e){return e.hasOwnProperty("varDocID")}))[0]));r._isContextMenuAlive[e.columnIndex]=!1,r._viewContentChanged&&r.viewContentChanged(),a.destroyRecursive()}))),a&&a.own(o.before(this,"blurView",(function(){a.close()}))),this._addDataPreprocessingPlugins(a,e,i,n),a},_addDataPreprocessingPlugins:function(e,t,i,n){this._addSorting(e,t),this._addCategoricalCleaning(e,t,i),this._addFiltering(e,t)},_addSorting:function(e,t){var i=this.getPluginByName(this.SORT_PLUGIN);i&&i.addSortOptions(e,t)},_addCategoricalCleaning:function(e,t){var i=this.getMetaDataStore().getColumnModelProperty("class",t.columnIndex);if(_.isCategorical(i)){var n=this.getPluginByName(this.CLEAN_CATEGORIES_PLUGIN_NAME);if(n){n.createCategoricalCleaningMenuItem(e,t);var o=this;n.handleClickEvent=function(e,i){o.revertFiltering(e,t)}}}},_addFiltering:function(e,t){var i=this.getPluginByName(this.FILTER_PLUGIN);if(i&&this.isFilteringEnabled(t.columnIndex)){i.addFilterOptions(e,t);var n=this;this._filteringReadyCallback=function(e){n.openMenu(e.data.container,e.data.filterInfo)},this._filteringReadyListener=this.addEventListener("filteringReady",this._filteringReadyCallback)}else this.openMenu(e,t)},revertFiltering:function(e,t){var i=this.getMetaDataStore(),n=i.getColumnModelProperty("class",t.columnIndex),o=i.getColumnModelProperty("HeaderName",t.columnIndex);this._isPluginOn(this.FILTER_PLUGIN)&&this._tableIsFiltered()?this._createRevertFilteringDialog(e,o,t,n):this._openCategoricalCleaner(e,o)},_tableIsFiltered:function(){return this.getMetaDataStore().getTableModelProperty("IsFiltered")},isFilteringEnabled:function(e){return this.getMetaDataStore().getColumnModelProperty("IsFilterable",e)},createContextMenu:function(){return new c({targetNodes:[".mwTableHeaderMenuAffordance"]})},_createRevertFilteringDialog:function(e,t,n,r){this._dialogCreationUtils||(this._dialogCreationUtils=new C);var a={dialogText:s.substitute(this.REVERT_FILTER_TEXT,{0:this.varName,1:A.CleaningText,2:t}),dialogContentClass:this.REVERT_FILTER_CLASS,dialogClass:this.REVERT_FILTER_CLASS,dialogTestID:this.REVERT_FILTER_DATA_TEST_ID,dialogTitle:s.substitute(this.REVERT_FILTER_DIALOG_TITLE),OKButtonTitle:A.OkButtonClean};this._dialogCreationUtils.createDialog(a),this._revertDialogListener=o.before(this._dialogCreationUtils,"handleOKButtonClick",i.hitch(this,"_handleRevertFilteringDialogOK",e,t,n)),this._removeAllDialogListeners=o.before(this._dialogCreationUtils,"destroy",i.hitch(this,"_removeRevertDialogListener"))},_removeRevertDialogListener:function(){this._revertDialogListener&&this._revertDialogListener.remove(),this._removeAllDialogListeners.remove()},_handleRevertFilteringDialogOK:function(e,t,i){this._openCategoricalCleaner(e,t)},_openCategoricalCleaner:function(e,t){var i=this.getPluginByName(this.CLEAN_CATEGORIES_PLUGIN_NAME);if(i){var n={channel:this.allArgs.manager.provider.channel+"/categoricalCleaner",columnName:t,outputView:this,documentID:this.peerDocument.varDocID,revertFilters:!0};i.openCategoricalCleaner(e,n)}},createMenuItem:function(e,t){return new d({text:e,icon:t,closeMenuOnClick:!1})},_dispatchActionToServer:function(e){!this._filterManager||e!==this.EDIT_TEXTBOX_ACTION&&e!==this.EDIT_CHECKBOX_ACTION&&e!==this.SORT_ACTION||(this._viewContentChanged=!0)},destroy:function(){this._dialogCreationUtils&&this._dialogCreationUtils.destroy(),this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[],this._revertDialogListener&&this._revertDialogListener.remove(),this._removeAllDialogListeners&&this._removeAllDialogListeners.remove(),this._filteringReadyListener&&(this.removeEventListener("FilteringReady",this._filteringReadyCallback),this._filteringReadyListener=[])},openMenu:function(e,t){var i=t.left,n=t.top+this._MENU_OFFSET;e.open({x:i,y:n})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6532),i(986)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_peer.RemoteStructViewModel",[t,i],{SCALAR_STRUCT_SORT_ACTION:"StructSortAction",serverReady:function(){this.inherited(arguments);var e=this.getDataStore();this._columnSortedListener=e.on("columnSorted",this._handleColumnSorted.bind(this))},_handleColumnSorted:function(e){this._dispatchActionToServer(this.SCALAR_STRUCT_SORT_ACTION,{index:e.columnIndex[0],order:e.order},!0)},destroy:function(){this.inherited(arguments),this._columnSortedListener&&this._columnSortedListener.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(206),i(209),i(982),i(1188),i(1194),i(6534),i(2335),i(278),i(326),i(366),i(301),i(2353),i(1560),i(742)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e("variableeditor_peer.PeerArrayViewModel",[r,l,f],{_dataStore:null,_ROW_HEIGHT:14,UNDO_ACTION:"UndoAction",REDO_ACTION:"RedoAction",_MENU_OFFSET:8,_plugins:null,_viewHandlers:[],_dataStoreWrapper:null,_initProperties:function(){this.inherited(arguments),this._viewHandlers=[],this._dataStoreWrapper=null},createTable:function(e){e.rows=e.rows?e.rows:e.size?e.size[0]:e.rows,e.columns=e.columns?e.columns:e.size?e.size[1]:e.columns,this.manager=e.manager,this._plugins=e.configurablePlugins||[],this.getDataStore(e),this._createTableWithFeatures(this._dataStoreWrapper,e),this._setColumnWidth(e)},viewStateChanged:function(e){this.onViewStateChanged(e)},onViewStateChanged:function(e){},_setColumnWidth:function(e){var t=null;e.columnWidth?(t=e.columnWidth,this.peerNode&&this.peerNode.setProperty("TableModelProperty",{property:"ColumnWidth",value:t})):t=this.getMetaDataStore().getTableModelProperty("ColumnWidth");t&&(this._table.setColumnWidth(t),this.resize())},_createTableWithFeatures:function(e,t){this._addViewPlugins();var n={features:this.tableFeaturesEnabled};Object.keys(this.tableAttributes).length>0&&(n.attributes=this.tableAttributes),this._setColumnModel(n,t);var o=new u(e,n);this._table=o,i.add(o.domNode,["toggleOverflowCss","mwTable"]),this.peerNode&&this._setServerIntializedOnDomNode(),this.dispatchEvent("tableCreated",this,{view:this})},handleContextMenuRequested:function(e){},getColumnModel:function(e){var t={columnModel:{columnConfig:[]}};if(this.peerNode&&this.peerNode.hasProperty("Size")){var i,n=this.peerNode.getProperty("Size");for(i=1;i<n.columnCount;i+=1)t.columnModel.columnConfig.push({label:this.ColumnModelProperties[i]&&this.ColumnModelProperties[i].HeaderName||i.toString(),dataIndex:i,width:{value:d.getDefaultColumnWidth(),unit:"px"}})}return t},getDataStore:function(e){if(!this._dataStore){var t,i,n=null,o={};e&&e.data&&(n=e.data),this.createTableConstructor(e.metaData,{containerType:e.containerType,context:e.context,dataAttributes:e.dataAttributes}),this.allArgs&&this.allArgs.varSize&&(o=d.getDimsFromVarSize(this.allArgs.varSize)),e&&e.rows?t=e.rows:d.isValid(o.rows)&&(t=o.rows),e&&e.columns?i=e.columns:o.columns&&(i=o.columns),this._dataStoreWrapper=this._createMixedDataStore(n,this._tableConstructor,t,i),this._dataStore=this._dataStoreWrapper.getDataStore(),this.peerNode&&this._setDataStorePeerNode()}return this._dataStore},getPeerNodeID:function(){if(this.peerNode)return this.peerNode._id},updateDataStore:function(e,t){this._dataStore.update(e,t)},fetchFromDataStore:function(e){if(this._dataStore)return this._dataStore.getLocalRangeData(e)},_createMixedDataStore:function(e,t,i,n){return new g(e,t,i,n)},blurView:function(){},getFeatureMap:function(){return c},_dispatchActionToServer:function(e,t,i){var n=this.peerDocument.varDocID;this.manager.executeAction(e,{actionInfo:t,docID:n}),this.inherited(arguments)},getActionById:function(e){var t=null;return this.manager.actionDataService?t=this.manager.actionDataService.getAction(e):o.warn("Manager's ActionDataService not initialized"),t},viewContentChanged:function(){},undo:function(){this._dispatchActionToServer(this.UNDO_ACTION,null,!0)},redo:function(){this._dispatchActionToServer(this.REDO_ACTION,null,!0)},_setServerIntializedOnDomNode:function(){var e=this.getDataStore(),t=this;e.getViewPortData&&e.getViewPortData().then((function(){t._table&&t._table.domNode&&(t.dispatchEvent(h.SERVER_INITIALIZED),i.add(t._table.domNode,["serverInitialized"]))}))},_setDataStorePeerNode:function(){var e=this,t=this._tableConstructor.getMetaDataStore(),i=t.on("pagedTableMetaDataChanged",(function(t){e.dispatchEvent(h.TABLE_META_DATA_CHANGED,e,{rangeList:t.rangeList}),e._setColumnWidth(e.allArgs)}));this._viewHandlers.push(i);var n=t.on("pagedColumnMetaDataChanged",(function(t){e.dispatchEvent(h.COLUMN_META_DATA_CHANGED,e,{rangeList:t.rangeList})}));this._viewHandlers.push(n);var o=t.on("pagedRowMetaDataChanged",(function(t){e.dispatchEvent(h.ROW_META_DATA_CHANGED,e,{rangeList:t.rangeList})}));this._viewHandlers.push(o);var r=t.on("pagedCellMetaDataChanged",(function(t){e.dispatchEvent(h.CELL_META_DATA_CHANGED,e,{rangeList:t.rangeList})}));this._viewHandlers.push(r),this._dataStoreWrapper.setViewModel(this,this.peerNode.getId()),this._dataStore=this._dataStoreWrapper.getDataStore();var a=this._dataStore.on("serverFetchInProgress",(function(){e.dispatchEvent(h.VIEW_RENDERING,e,{})}));this._viewHandlers.push(a);var s=this._dataStore.on("serverFetchComplete",(function(){e.dispatchEvent(h.VIEW_RENDERED,e,{})}));this._viewHandlers.push(s);var l=this._dataStore.on("dataSizeChanged",(function(t){e.dispatchEvent(h.SIZE_CHANGED,e,{dataSize:t.dataSize})}));this._viewHandlers.push(l);var c=this._dataStore.on("dataChanged",(function(t){!t||t.source&&"data"!==t.source||(e.dispatchEvent(h.DATA_CHANGED,e,{rangeList:t.rangeList}),e._updateLastRangeDataTag(t))}));this._viewHandlers.push(c),this._setServerIntializedOnDomNode()},setPeerNode:function(e){this.inherited(arguments),this.peerNode=e,this._setDataStorePeerNode()},_updateLastRangeDataTag:function(e){this._table&&this._table.domNode&&this._table.domNode.dataset&&(this._table.domNode.dataset.lastUpdatedRange=JSON.stringify(e.rangeList))},getParsedData:function(e){var t=e.startRow||0,i=e.startRow+e.rowCount-1||0,n=e.startColumn||0,o=e.startColumn+e.columnCount-1||0;return d.getParsedData(e.data,i-t+1,o-n+1)},setSortable:function(e){this._tableConstructor.setTableSortable(e)},destroy:function(){this.inherited(arguments),this._dataStoreWrapper&&(this._dataStoreWrapper.destroy(),this._dataStoreWrapper=null),this._viewHandlers.forEach((function(e){e&&e.remove&&e.remove()})),this._viewHandlers=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(212),i(981),i(2317)],o=i.dj.d(n,(function(e,t,i,n,o){return t("variableeditor_client.UnsupportedView",[n,o,e],{_UNSUPPORTED_VIEW_TEXT:"",_viewDom:null,_type:"Unsupported",allowSelectionRange:!1,init:function(){},createView:function(e){this.manager=e.manager,this._viewDom=document.createElement("div"),this._viewDom.textContent=this._UNSUPPORTED_VIEW_TEXT,this.inherited(arguments)},getView:function(){var e=new i((function(){}));return this._viewDom||this.createView(),e.resolve(this._viewDom),e},getProperty:function(e){return this[e]||this.allArgs[e]||null},getType:function(){return this._type},getViewType:function(){return this._type},destroyView:function(){this._viewDom&&(this._viewDom.remove(),this._viewDom=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(215),i(219),i(232),i(227),i(206),i(210),i(211),i(225),i(513),i(506),i(534),i(6538),i(6539)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([i],{_SCALING_FACTOR:"10",_MULTIPLIER:" ×",_SCALING_FACTOR_HEIGHT:17,_WRAPPER_SELECTOR_CLASS:".popoutWrapper",_UIVARIABLEEDITOR_CHANNEL:"/UIVariableEditor",constructor:function(e){this.manager=null,this._containerBuilt=!1,this.workspace=e&&e.workspace?e.workspace:"base"},postCreate:function(){this.init()},init:function(){var e=this;!function(t){var i=n.messageService,o=e;i.start(),t.start(!0);var r=e.getQueryParams();e.channel=r&&r.channel?r.channel:e.channel,e.channel&&"/"!==e.channel.charAt(0)&&(e.channel="/"+e.channel),e.docID=r&&r.docId?r.docId:e.docID,e.workspace=r&&r.workspace?r.workspace:e.workspace;var a=!1,l=!1;if(o.channel&&o.channel.includes(o._UIVARIABLEEDITOR_CHANNEL)){h.registerWidgetJSONFile("UIVariableEditorWidgetRegistryDefaults",f),l=a=r&&r.summaryBarVisible&&"on"===r.summaryBarVisible;var c={};c.channel=o.channel,c.defaultContextId="variable",c.contextType="currentContext",e.contextMenuService=new p(c)}var d=t.createManager({messageService:i,channel:e.channel,ignoreUpdates:!1,editable:!0,cssSpecifier:"singleVariableVE",resizeBehaviour:"window",showSummaryBar:a,showSummaryIcons:l,workspace:e.workspace,contextId:"VariableEditor",contextUpdateChannel:e.contextMenuService?e.contextMenuService.contextUpdateChannel:null,contextType:e.contextMenuService?e.contextMenuService.contextType:null,contextAppID:e.contextMenuService?e.contextMenuService.defaultContextId:null});e.manager=d,d.addEventListener("variableAdded",(function(t){var i=t.data.peerDoc;e.docID&&i.varDocID===e.docID&&(i.addEventListener("viewCreated",(function(t){var n=t.data.viewModel;i.parentViewToDocument(n),n.setSortable&&n.setSortable(!1),o._emitStartup(i),n&&n.propertyObj&&n.propertyObj.hasOwnProperty("ScalingFactor")&&(s.add(n.domNode,"WithScalingFactor"),e._handleScalingFactor(n),e._resizeDocument(i))})),o._constructContainer(i.varDocID,i.domNode))})),e._updateSortState(d),d.addEventListener("variableRemoved",(function(t){t.data.peerDoc&&e.destroyWidget(t.data.peerDoc)}))}(require("variableeditor_peer/PeerManagerFactory"))},_updateSortState:function(e){var t,i=e.documents[this.docID];if(i)for(t in i.views)i.views.hasOwnProperty(t)&&i.views[t].setSortable(!1)},_handleScalingFactor:function(e){var t=e.propertyObj.ScalingFactor;this._appendScalingFactor(t,e)},_resizeDocument:function(e){e.resize&&e.resize()},_appendScalingFactor:function(e,t){var i=this._constructElement("veScalingFactor",this._SCALING_FACTOR,"block"),n=this._constructElement("scaleExponent",e),o=this._constructElement("multiply",this._MULTIPLIER);i.appendChild(n),i.appendChild(o),this._addScalingFactorToDom(i,t)},_addScalingFactorToDom:function(e,t){var i=t._table.domNode.getElementsByClassName(u.TABLE_TOP_LEFT_AFFORDANCE_CLASS)[0];i&&i.appendChild(e)},_constructElement:function(e,t,i){var n="block"===i?"div":"span",o=document.createElement(n);return s.add(o,e),o.innerText=t,o},destroyWidget:function(e){e.varDocID===this.docID&&this&&this.domNode&&this.destroy()},_emitStartup:function(e){a.emit(e.domNode,"startup",{bubbles:!0,cancelable:!0})},_constructContainer:function(e,t){if(!this._containerBuilt){var i=l.create("div",{style:"overflow: hidden; left: 0px; top: 0px; height: 100%; width: 100%; display: inline-block;",id:"variable_div_"+e});s.add(i,"popoutWrapper"),l.place(t,i,"last"),l.place(i,this.domNode,"last");var n=r.byId("PopOutHandlerBody");n&&l.place(i,n,"last"),this._containerBuilt=!0}},getQueryParams:function(){var e={};try{e=d.queryToObject(decodeURIComponent(window.location.search.slice(1)))}catch(e){}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1200),i(1562),i(219)],o=i.dj.d(n,(function(e,t,i){var n={},o=0;return{createManager:function(i){return n&&n[i.channel]&&!i.forceNewManager||(i.channel||(o+=1,i.channel="/VE_"+o),n[i.channel]=new e(i),i.provider=new t({channel:i.channel,manager:n[i.channel]})),n[i.channel]},deleteManager:function(e){var t=e.channel;if(t)for(var i in n[t].destroy(),n)i===t&&n.hasOwnProperty(i)&&delete n[i]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(534),i(203),i(204),i(206),i(210),i(278),i(6541),i(2296),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return t("variableeditor_peer.RemoteDocument",[a,s],{_childAddedListener:null,_childRemovedListener:null,_DataRenderingOnViewCompleteListeners:{},rows:null,columns:null,class:"document",constructor:function(){},init:function(e){this.inherited(arguments),e.provider&&e.provider.isReady()&&(this.propertyObj=e.propertyObj,e.provider.setupDocumentListeners(this),this.provider=e.provider,e.propertyObj.hasOwnProperty("children")>0&&this.initViews())},initViews:function(){var e=this;e.propertyObj.hasOwnProperty("children")&&e.propertyObj.children.forEach((function(t){var i=e.provider.getPropertyObject(t);e.addView({propertyObj:i})}))},_handleViewAdded:function(e){var t=e.viewID;this._viewAlreadyExists(t)?this.views[t].serverReady(e,this.provider):this.addView(i.mixin(this.allArgs,{propertyObj:e}));void 0!==t&&this.views[t]&&this._initializeListenersOnView(this.views[t])},addView:function(t){var n=this.propertyObj,o=n&&n.hasOwnProperty("name")?n.name:t.varName,r=n&&n.hasOwnProperty("containerType")?n.containerType:t.containerType,a=this._getDataAttributes()||t.dataAttributes||"";this._updateDom(),this.userContext=n&&n.hasOwnProperty("userContext")&&n.userContext?n.userContext:t.userContext||this.userContext;var s=e.getWidgets(r,"",this.userContext,a),l=t.propertyObj,c=s&&s.Editor?s.Editor:void 0;c||(c=(s=e.getWidgets("","",this._UNSUPPORTED_VIEW_CONTEXT)).Editor);var d=this._getPluginsForView(c,a);if(d.length>0){var u=this._getDisabledPlugins(n);if(u){var h=d[0].featureList,p=h.filter((function(e){return!u.includes(e)}));d[0].featureList=p}this.dynamicPlugins&&(d[0].featureList=d[0].featureList.concat(this.dynamicPlugins))}var f=i.mixin({varName:o,propertyObj:l,peerDocument:this,configurablePlugins:d,context:this.userContext,dataAttributes:a},this.allArgs);this.rows=f.rows=f.rows||(f.size?f.size[0]:f.rows),this.columns=f.columns=f.columns||(f.size?f.size[1]:f.columns),f.context=this.userContext||f.context,this._createView(c,f),this.inherited(arguments)},_getDisabledPlugins:function(e){var t;if(e&&e.hasOwnProperty("DisabledPlugins")?t=e.DisabledPlugins:this.DisabledPlugins&&(t=this.DisabledPlugins),t)return Array.isArray(t)?t:[t]},_getDataAttributes:function(){var e=this.propertyObj&&this.propertyObj.hasOwnProperty("dataAttributes")?this.propertyObj.dataAttributes:"";return e&&(e=JSON.parse(e),Array.isArray(e)||(e=[e]),e=0===e.length?"":e),e||this.allArgs.dataAttributes||""},parentViewToDocument:function(e){try{this.allArgs=r.mergeObjects(this.allArgs,{provider:e.provider,varName:e.varName}),e.init(this.allArgs),this._parentedViews[e.viewID]=e,this.resize(),this.inherited(arguments)}catch(e){l.error(e)}},removeView:function(e){var t=this.views[e];t?(this.inherited(arguments),this.dispatchEvent("viewRemoved",this,{peerDoc:this,peerView:this.views[e]})):l.warn("No view exists for the given View ID")},replaceView:function(e,t){l.warn("View not replaced")},getViewByType:function(e){var t=this.getViews(),i=null;return t.forEach((function(t){!i&&t.propertyObj&&t.propertyObj.hasOwnProperty("type")&&t.propertyObj.type===e&&(i=t)})),i||this.inherited(arguments)},close:function(){if(this.manager&&(this.manager.removeFocusedDocument(this),this.provider.isReady())){var e={type:"RemoveDocument",variable:this.varName,workspace:this.propertyObj.workspace};this.provider.dispatchEventToServer(this,e)}},_initializeListenersOnView:function(e){this.inherited(arguments)},_handleChildRemoved:function(e){var t=e.hasOwnProperty("viewID")?e.viewID:void 0;void 0!==t&&this.removeView(t)},handlePropertySet:function(e){if(!(e.data&&e.data.newValue&&e.data.newValue.Source&&"server"!==e.data.newValue.Source)){var t=e.data.key,i=e.data.newValue;"name"===t&&(t="varName",this.getViews().forEach((function(e){e[t]=e.allArgs[t]=i}))),this.propertyObj[t]=i,this.allArgs.hasOwnProperty(t)&&(this[t]=this.allArgs[t]=this.propertyObj[t]),this.inherited(arguments)}},handleRemoteEvent:function(e){},_viewAlreadyExists:function(e){return!!this.views[e]},destroy:function(){this._destroyed||(this.inherited(arguments),this.manager.closeVariable(this.varDocID,this.workspace))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(235)],o=i.dj.d(n,(function(e,t){return e("variableeditor_peer.RemoteProvider",[],{constructor:function(e){this._init(e)},_init:function(e){},getPropertyObject:function(e){},setupProviderListeners:function(e){},setupManagerListeners:function(e){},setupDocumentListeners:function(e){},setupViewListeners:function(e){},dispatchEventToServer:function(e,t){},setPropertyOnServer:function(e,t,i){},getUIDForObject:function(e){},isReady:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6542)],o=i.dj.d(n,(function(e,t){var i={};return e("variableeditor_peer.ServiceProviderMixin",[],{getActionDataServiceProvider:function(e){var n=e.channel||"/Actions/DefaultNameSpace";if(!i[n]){var o=new t(e);i[n]=o}return i[n]},destroyActionDataServiceProvider:function(e){i.hasOwnProperty(e)&&(i[e].destroy(),delete i[e])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(209),i(1135),i(830),i(1201),i(278)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=o.PREPOPULATED_ROW_COUNT,s=o.PREPOPULATED_COLUMN_COUNT;function l(e,i,n,o){var a=[];try{a=JSON.parse(e),Array.isArray(a)||(a=[a]),o||(a=r.cleanJSONDataFromServer(a,i,n));for(var s=0;s<i;s+=1)for(var l=0;l<n;l+=1){var c=a[s][l];try{var d=JSON.parse(c);d.row=s,d.col=l,a[s][l]=JSON.stringify(d)}catch(e){a[s][l]=c}}}catch(i){t.warn("Something went wrong while parsing JSON"),a=e}return a}function c(e){var t=[];return e.forEach((function(e,i){t[i]=[],e.forEach((function(e,n){e.RowNumber=i+1,e.ColumnNumber=n+1,t[i][n]=e}))})),t}function d(e){var t=e.ColumnModelProperties;try{return t?(t=JSON.parse(t)).map((function(e){return parseInt(e.GroupColumnSize)})):null}catch(e){}}function u(e,t){var i=Math.ceil(7.4*e.length+38),n=r.getDefaultColumnWidth();return i>n*t?i:n*t}function h(e){return e.map((function(e,t,i){return t===i.length-1?0:i[t+1]-i[t]}))}return{getPrepopulatedData:function(e){var t={columnInfo:[],data:[]},i=Math.min(a,e.rows),n=r.isTypeTimeTable(e.varType)?31:s,o=Math.min(n,e.columns),p={};return p.columnMetadata=function(e,t){var i=[],n=[];e&&e.metadata&&r.isTypeTable(e.subtype)&&(n=e.metadata instanceof Array?h(e.metadata):d(e.metadata));var o=e.prepopulatedMetaData?JSON.parse(e.prepopulatedMetaData):[],a=o.ColumnMetaData&&o.ColumnMetaData.length>0?o.ColumnMetaData:[];e.columnClass=e.columnClass&&(Array.isArray(e.columnClass)?e.columnClass:[e.columnClass]),e.isFilterable=e.isFilterable&&(Array.isArray(e.isFilterable)?e.isFilterable:[e.isFilterable]),e.isSortable=e.isSortable&&(Array.isArray(e.isSortable)?e.isSortable:[e.isSortable]);for(var s=0;s<t;s+=1){var l=e.columnHeaderLabels?e.columnHeaderLabels[s]:a[s]&&a[s].columnHeaderLabels||"",c=!!e.isFilterable&&e.isFilterable[s],p=!!e.isSortable&&e.isSortable[s],f=e.columnClass?e.columnClass[s]:a[s]&&a[s].columnClass||"";var g={ColumnNumber:s+1,ColumnWidth:(()=>a[s]&&a[s].columnWidth?a[s].columnWidth:u(l,n[s]||1))(),GroupColumnSize:n[s],HeaderName:l,IsFilterable:c,IsSortable:p};f&&(g.class=f),parseInt(n[s])>1&&(g.DataAttributes="GroupedColumn"),"timetable"===e.subtype&&0===s&&(g.backgroundColor="#F5F5F5"),i.push(g)}return i}(e,o),p.cellMetadata=function(e,t,i){var n=e.prepopulatedMetaData?JSON.parse(e.prepopulatedMetaData):[];return c(n.CellMetaData&&n.CellMetaData.length>0?JSON.parse(n.CellMetaData):[])}(e),p.rowMetadata=function(e,t){for(var i=[],n=e.rowHeaderLabels||[],o=0;o<t;o+=1){var r={RowName:n[o]||void 0,RowNumber:o+1};i.push(r)}return i}(e,i),p.tableMetadata=function(e){var t=e.prepopulatedMetaData?JSON.parse(e.prepopulatedMetaData):{},i=t.TableMetaData?t.TableMetaData:{};return r.mergeObjects({ShowColumnHeaderLabels:!0,ShowRowHeaderLabels:!0,ShowRowHeaderNumbers:!0,editable:!1},i)}(e),t.data=l(e.prepopulatedData,i,o),t.metaData=p,t},_constructMetaDataForSaveLoad:function(e){var t={},i=[],n=e.metadata;return e&&n&&r.isTypeTable(e.subtype)&&(i=n instanceof Array?h(n):d(n)),n&&(t.columnMetadata=function(e,t,i){var n=[];if(t.ColumnModelProperties)(n=(n=JSON.parse(t.ColumnModelProperties)).filter((function(e){var t=e.HeaderName?e.HeaderName:e.columnHeaderLabels;return r.isValid(t)}))).forEach((function(t,n){t.ColumnNumber=n+1;var o=t.HeaderName?t.HeaderName:e.columnHeaderLabels[n];t.ColumnWidth=t.ColumnWidth||u(o,i[n]),t.GroupColumnSize=t.GroupColumnSize||i[n],t.DataAttributes=parseInt(t.GroupColumnSize)>1?"GroupedColumn":"","timetable"===e.subtype&&0===n&&(t.backgroundColor="#F5F5F5")}));else for(var a=Math.min(e.columns,o.PREPOPULATED_COLUMN_COUNT),s=0;s<a;s+=1)n.push({ColumnNumber:s+1});return n}(e,n,i),t.rowMetadata=function(e,t){var i=[];if(t.RowModelProperties)(i=JSON.parse(t.RowModelProperties)).forEach((function(e,t){e.RowNumber=t+1}));else for(var n=Math.min(e.rows,o.PREPOPULATED_ROW_COUNT),r=0;r<n;r+=1)i.push({RowNumber:r+1});return i}(e,n),t.tableMetadata=function(e,t){return t.TableModelProperties?JSON.parse(t.TableModelProperties):{}}(0,n),t.cellMetadata=function(e,t){if(t.CellModelProperties)return c(JSON.parse(t.CellModelProperties))}(0,n)),t},_constructData:l,getColumnWidth:function(e){var t=e.value,i=this.getFirstDataEntryFromJSON(e);return this.computeColumnWidth(t,i,e.subtype)},computeColumnWidth:function(e,t,n){var o=e.search(/\S/),r=1;return"logical"!==n&&(r=t.value.trim().length),Math.ceil((o+r)*i.getNumericCharacterWidth())},getFirstDataEntryFromJSON:function(e){var t=e.prepopulatedData?e.prepopulatedData:e.savedData;return t=JSON.parse(t),1===e.rows||1===e.columns?JSON.parse(t[0].value):JSON.parse(t[0][0].value)},getColumnWidthFromValueString:function(e,t){var n=this.getDataLengthFromValueString(e,t);return Math.ceil(n*i.getNumericCharacterWidth())},getDataLengthFromValueString:function(e,t){if("logical"===e.type)return e.value.search(/\S/)+1;var i="complex"===e.type;return n.getCharsPerElement(t,e.exponent,i)},getGroupedColumnsFromMetaDataJSON:d,getColumnModelPropsFromMetaDataJSON:function(e){return JSON.parse(e.ColumnModelProperties)},getPropValueFromModelProps:function(e,t){try{return e?JSON.parse(e).map((function(e){return e[t]})):null}catch(e){}},getGroupedColumnsFromServerData:h,getDefaultColumnConfig:function(e){try{for(var t={columnModel:{columnConfig:[]}},i=e.columnWidth?e.columnWidth:r.getDefaultColumnWidth(e.subtype),n=0;n<e.columns;n++)t.columnModel.columnConfig.push({label:(n+1).toString(),dataIndex:n,width:{value:i,unit:"px"}});return t}catch(e){}},getFormattedHtmlText:function(t,i){var n=i?"div":"span";return e.create(n,{style:{color:"rgb(179, 179, 179)","font-family":"'Consolas', sans-serif","font-size":"12px"},textContent:t})},getRowConfig:function(e){return e.map((function(e){return{label:e}}))},getHeaderLabelsFromColumnConfigObject:function(e){return e.columnModel.columnConfig.map((function(e){return e.label}))},getColumnClassesFromColumnConfigObject:function(e){return e.columnModel.columnConfig.map((function(e){return e.renderer.config.colClass}))},getColumnSpanFromColumnConfigObject:function(e){return e.columnModel.columnConfig.map((function(e){return e.renderer&&e.renderer.config&&e.renderer.config.numCells?e.renderer.config.numCells:1}))},getColumnWidthFromColumnConfigObject:function(e){return e.columnModel.columnConfig.map((function(e){return e.width.value}))},getRowHeaderLabelsFromRowConfigObject:function(e){return e.map((function(e){return e.label}))},getDefaultColumnWidth:u,adjustRowTimesForLegacyTimeTables:function(e){var t=e.metaData,i=t.rowMetadata.map((function(e){var t=e.RowName;return delete e.RowName,t}));e.data.forEach((function(e,t){e.unshift(JSON.stringify({value:JSON.stringify([{value:i[t]}])}))}));var n={ColumnNumber:1,HeaderName:"Time",class:"datetime"};return t.columnMetadata.forEach((function(e,t){e.ColumnNumber+=1})),t.columnMetadata.unshift(n),e},shapeDataForSaveLoad:function(e,t){var i=Math.min(a,e.rows),n=r.isTypeTimeTable(e.varType)?31:s,o=Math.min(n,e.columns);return r.getParsedData(JSON.parse(e.prepopulatedData),i,o,t)},constructDataForSaveLoad:function(e){var t=[];let i=e;Array.isArray(e)||(i=JSON.parse(e));for(var n=0;n<i.length;n+=1){var o=i[n];t[n]=[];for(var r=0;r<o.length;r+=1){var a=o[r],s={value:JSON.stringify(a)};s.row=n,s.col=r,t[n][r]=JSON.stringify(s)}}return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2295),i(369),i(209),i(232),i(256),i(2297),i(2358)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s,l=0,c={debug:!1,setDebug:function(e){this.debug=e},logDebug:function(e){this.debug&&console.log(e)},runFactoryInitInMATLAB:function(e,t,o){try{var r="VariableEditorUtilsResponse_"+(l+=1);t&&n.registerResponseHandler("EvalResponse:"+r,t,this),o&&n.registerFaultHandler("Eval:"+r,o,this),n.sendMessage({Eval:{mcode:e}},{},r)}catch(e){i.error(e),i.trace(e.stack)}}},d={},u=[],h=!1,p=0;function f(){return s||((s=t.getInstance("/VariableEditorManager")).addEventListener("rootSet",(function(e){c.logDebug("VE: Factory Root Set");var t=e.target,i=t.getProperty("Debug");void 0!==i&&c.setDebug(i.Debug),t.addEventListener("propertySet",(function(e){e.data&&e.data.key&&"Managers"===e.data.key?c.logDebug("VE: Factory Managers Updated"):e.data&&e.data.key&&"Debug"===e.data.key&&c.setDebug(e.data.newValue.Debug)})),t.addEventListener("peerEvent",(function(e){e.data.type&&"FactoryInitialized"===e.data.type?(c.logDebug("VE: Factory Initialized"),g()):e.data.type&&"ManagerCreated"===e.data.type?e.data.Channel&&d[e.data.Channel]&&d[e.data.Channel].start&&d[e.data.Channel].autoStart&&(d[e.data.Channel].start(),c.logDebug("VE: Factory Auto Starting Manager ("+e.data.Channel+")")):e.data.type&&"log"===e.data.type?e.data.message&&c.logDebug("VE: Server Log ("+e.data.message+")"):e.data.type&&"DeleteManager"===e.data.type&&"client"!==e.data.origin&&e.data.channel&&d[e.data.channel]&&(a.deleteManager(d[e.data.channel]),m(d[e.data.channel],!0))})),o.subscribe("variableeditor_client/isDebug",(function(e){var i=t.getProperty("Debug");e&&void 0!==e.Debug&&i&&e.Debug!==i.Debug&&t.setProperty("Debug",{Debug:e.Debug,Source:"client"})})),t&&t.getProperty("Initialized")&&t.getProperty("Initialized").Initialized&&g()})),s.setSyncEnabled(!0)),s}function g(){s&&s.getRoot()&&(u.forEach((function(e,t,i){var n=s.getRoot();c.logDebug("VE: Factory Create Manager From Queue ("+e.channel+")"),n.dispatchEvent("peerEvent",n,e)})),u=[])}function m(e,i){if(!e&&e.channel)return null;var n=f();i||function(e,t){t||(t=f());var i=t.getRoot();i?i.dispatchEvent("peerEvent",i,{type:"DeleteManager",channel:e,origin:"client"}):u.push({type:"DeleteManager",channel:e})}(e.channel,n);var o=e.channel;for(var r in d[e.channel]=null,d)r===e.channel&&d.hasOwnProperty(r)&&delete d[r];t.cleanup(o)}function _(e){if(!e)return null;var t=f();return e.manager&&(t=e.manager),function(e,t,i){i||(i=f());var n=i.getRoot();n?n.dispatchEvent("peerEvent",n,{type:"CreateManager",channel:e,ignoreUpdates:t||!1}):u.push({type:"CreateManager",channel:e,ignoreUpdates:t||!1})}(e.channel,e.ignoreUpdates||!1,t),e.provider}function v(e){e&&!e.isError&&(h=!0,g())}return{createNewManager:function(e){return f(),e.channel||(p+=1,e.channel="/VE_"+p),d&&d[e.channel]&&!e.forceNewManager||(d[e.channel]=_(e)),d[e.channel]},createManager:function(e){return a.createManager(e)},deleteManager:m,start:function(e){e?c.runFactoryInitInMATLAB("internal.matlab.variableeditor.peer.PeerManagerFactory.startup",v):h=!0,f()},isStarted:function(){return h}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(382),i(203),i(204),i(210),i(211),i(225),i(236),i(214),i(1565),i(1201),i(6553),i(2331),i(6555),i(6558),i(1563),i(2175),i(278)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return t([f],{_CSS_TAG:"embeddedOutputsVariableTableElement",_TIMEOUT_FOR_FETCH:300,_PLAINTEXT_ROW_START:0,_PLAINTEXT_ROW_END:10,_PLAINTEXT_COLUMN_START:0,_PLAINTEXT_COLUMN_END:50,_ROW_TRUNCATION_LIMIT:16,_plainString:"",_table_docbook_feature_on:!1,_SUMMARY_BAR_CLASS:"summaryBar",_focused:!1,startup:function(){this.inherited(arguments),this.onOutputReady().then(function(){this._initializeGestureHandler(),this._isSaveLoad()||this._preventEventHandlingOnTable()}.bind(this))},_attachListeners:function(e){this.inherited(arguments);var t=this,i=this._varView;this._outputsModel&&(t._onWidthChangeListener=s.after(t._outputsModel,"onModelUpdated",(function(){i&&i.resize&&i.resize()})))},_handleOutputSelectionChanges:function(e){this.inherited(arguments),!1===this._focused&&this._varView&&this._varView.blurView&&this._varView.blurView()},_getInteractiveDocument:function(e,t,i,n,o,r){var a=this.inherited(arguments);return this._data.isPreview&&a.handleStaticView(),a},_prefetchDataForExport:function(e){this.inherited(arguments),this._fetchPlainTextString()},_handleViewRendered:function(t){if(!this._outputInitialized&&this._varView){var i=this._varView.getDataStore(),n=i.dataSize,o=e.createRange(0,Math.min(n.rows.end,c.PREPOPULATED_ROW_COUNT-1),0,Math.min(n.columns.end,c.PREPOPULATED_COLUMN_COUNT-1));i.fetchMetaDataFromServer(o[0])}this.inherited(arguments)},_getValueString:function(){var e=this._plainString||this.inherited(arguments);return e&&!this._tableHasContent()&&(e=e.split("\n").slice(0,2).join("\n")),e},_fetchPlainTextString:function(){if(this._varView&&this._varDoc.domNode){var t=this._PLAINTEXT_ROW_START,i=this.currentSize.rows?this.currentSize.rows.end:this._data.rows-1,n=this.currentSize.columns?this.currentSize.columns.end:this._data.columns-1,o=Math.min(i,this._PLAINTEXT_ROW_END-1),r=this._PLAINTEXT_COLUMN_START,a=Math.min(n,this._PLAINTEXT_COLUMN_END-1),s=e.createRange(t,o,r,a),l=this._varView.getPluginByName(this._STRING_DISPLAY_PLUGIN);this._varDoc.domNode.dataset.updatePlainTextString=!1;var c=this;l&&l.requestStringData(s[0]).then((function(e){c._plainString=e.data,c._varDoc&&c._varDoc.domNode&&(c._varDoc.domNode.dataset.updatePlainTextString=!0)}))}},getText:function(){var e=this._getValueString(),t=this._createText(e),i=-1!==t.search("\n")?"\n":"",n=o.create("div",{innerHTML:t}),r=this._getTableTruncationMessage();return this._createName(this._data.name)+i+n.textContent+r},_getTableTruncationMessage:function(){var e="";if(this._plainString&&this._tableHasContent()){var t=this.currentSize.columns?this.currentSize.columns.end:this._data.columns,i=this.currentSize.rows?this.currentSize.rows.end:this._data.rows,n=t>this._PLAINTEXT_COLUMN_END,o=i>this._PLAINTEXT_ROW_END;n&&o?e+="\n"+l.copyPlainTextTruncationInfo+a.substitute(l.copyPlainTextRowsAndColumns,{0:this._PLAINTEXT_ROW_END,1:this._PLAINTEXT_COLUMN_END}):o?e+="\n"+l.copyPlainTextTruncationInfo+a.substitute(l.copyPlainTextOnlyRows,{0:this._PLAINTEXT_ROW_END}):n&&(e+="\n"+l.copyPlainTextTruncationInfo+a.substitute(l.copyPlainTextOnlyColumns,{0:this._PLAINTEXT_COLUMN_END}))}return e},getPdfContent:function(e,t,i){var n=this._getExportObject(i);return(new h).createElement(n,i)},getRTFContent:function(){var e=this._getExportObject();return(new p).createElement(e)},_createDomElement:function(){var e=this.inherited(arguments);return n.add(e,"tableElement"),e},getHTML:function(e,t){var i=this._getExportObject();return(new u).createElement(i).outerHTML},getHTMLContent:function(e,t){t=t||{};var i=this._getExportObject(t),n=this._varDoc.domNode.cloneNode(!0),a=new u,s=a.createElement(i),l=r(".mwTable",n),c=s.getElementsByTagName("table")[0];let d=n.querySelector(".ClientViewDiv");if(d&&(d.style.width="100%",d.style.overflow="auto"),a.hasHorizontalOverflow()){var h=document.createElement("th");h.innerText="⋯",c.firstChild.firstChild.appendChild(h)}var p=i.currentSize.rows.end+1;if(i.rowCount<p){var f=document.createElement("tr"),g=document.createElement("th");g.innerText="⋮",f.appendChild(g),c.lastChild.appendChild(f)}return l&&l.length>0&&o.place(c,l[0],"replace"),this._handleSummaryBarForExport(n,s),n},_handleSummaryBarForExport:function(e,t){var i=e.getElementsByClassName(this._SUMMARY_BAR_CLASS),n=t.getElementsByClassName(this._SUMMARY_BAR_CLASS);i&&i.length>0&&o.place(n[0],i[0],"replace")},getMetaSummary:function(){return this._varDoc._getMetaSummary()},getDocbookContent:function(){var e=this._varDoc,t=e.varSize,i=e.varType,n=null;if(this._table_docbook_feature_on){var r=this._getExportObject();n=(new d).createElement(r)}else{var a=this._createText(this._valueStringData);t=this._data.varSize||t,this._data.subtype&&(i=this._data.subtype);var s=m.getDimsFromVarSize(t),l=this._hasVerticalTruncation(s);if(this._hasHorizontalTruncation()){var c=a.indexOf("\n");a=a.substr(0,c)+" "+this._MIDLINE_HORIZONTAL_ELLIPSIS_UC+a.substr(c)}l&&(a+=" "+this._VERTICAL_ELLIPSIS_UC+"\n");var u=(-1!==a.search("\n")?"\n":"")+o.create("div",{innerHTML:a}).textContent;n=document.createTextNode(u+"\n")}return{varName:e.varName,varSize:t,varType:i,header:this._data.header,docBookXML:n}},_hasVerticalTruncation:function(e){return e.rows>this._ROW_TRUNCATION_LIMIT},_hasHorizontalTruncation:function(){return this._data.truncationInfo&&this._data.truncationInfo.wasTruncatedMidLine||!1},setDocBookForTablesOn:function(e){this._table_docbook_feature_on=e},_getHeaderColors:function(e,t){var i=[],n=this._data.subtype===this._TIME_TABLE_TYPE,o=this._getColorForTTColumn();if(n)for(var r=0;r<t;r+=1)i[r]=o;return i},_getColorForTTColumn:function(){var e=[];if(this._data.subtype===this._TIME_TABLE_TYPE){var t=this._domElement.querySelector('td[data-col="0"] .mw-table-cell-content');if(t){var i=window.getComputedStyle(t).getPropertyValue("--timetabletime-bg-color");if(i)try{e=g.toRGBArray(i.trim())}catch(e){console.log(e)}}}return e},_getCellColors:function(e,t,i,n){for(var o=[],r=this._data.subtype===this._TIME_TABLE_TYPE,a=this._getColorForTTColumn(),s=e;s-e<t;s+=1){o[s-e]=[];for(var l=i;l-i<n;l+=1)o[s-e][l-i]=r&&l-i==0&&a?a:void 0}return o},destroy:function(){this._onWidthChangeListener&&this._onWidthChangeListener.remove(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1459)],o=i.dj.d(n,(function(e,t){return e([],{_REQUIRED_VERSION:"R2019b",_REQUIRES_19b_FIELDS:["type","subtype"],getSerializableData:function(){var e=this.inherited(arguments);this._data.dataAttributes&&(e.dataAttributes=this._data.dataAttributes);var i={};return this._REQUIRES_19b_FIELDS.forEach((function(n){i[n]=new t(e[n],this._REQUIRED_VERSION,"")}),this),Object.keys(e).forEach((function(t){void 0===i[t]&&(i[t]=e[t])})),this._cleanData(i),i},_cleanData:function(e){var t=JSON.parse(e.savedData),i=[];t.forEach((function(e,t){i[t]=[],e.forEach((function(e,n){var o={value:""};this._getJSONData(e,o),i[t][n]=JSON.stringify(o)}),this)}),this),e.savedData=JSON.stringify(i)},_getJSONData:function(e,t){var i=JSON.parse(e);t.value=i.value,i.isMetaData&&(t.isMetaData=i.isMetaData)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(382),i(203),i(210),i(239),i(1201),i(506)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(null,{_INTERACTIVEVIEW_CLASSNAME:"ClientDocument",_INTERACTIVE_SCROLLDIV:r.TABLE_SCROLLING_NODE,ROW_HEIGHT_PLUGIN:"CUSTOM_ROW_HEIGHT",ROW_HEIGHT:18,_INTERACTIVE_MATRIX_CLASSNAME:"InteractiveMatrix",constructor:function(e){this.interactiveVarDoc=null,this._interactiveScrollTop=0,this._interactiveScrollLeft=0,this._data=e.data||{}},createInteractiveDocument:function(e){this.interactiveVarDoc=e.createInteractiveVariableDocument()},getInteractiveDocument:function(e,t,n,o,a,s,l,c){l=l||this.columnWidth,a.tableMetadata.ColumnWidth=l,this._outputViewID="__1";var d={varName:this._data.name,varSize:t,varType:n,data:o,metaData:a,containerType:n,viewType:this._data.viewType,showSummaryBar:s,rows:this._data.rows,columns:this._data.columns,viewID:this._outputViewID,userContext:c,dataAttributes:this._data.dataAttributes||null},u=e.openDocument(this._data.doc_id,d);i.add(u.domNode,this._INTERACTIVE_MATRIX_CLASSNAME);var h=this;return u.getView(this._outputViewID).then((function(e){h._initializeView(u,e,l),h._initializeDataStore(o)})),u.domNode.addEventListener("click",(function(e){i.contains(e.target,r.TABLE_HEADER_MENU_AFFORDANCE)||e.stopPropagation()})),u},_initializeView:function(e,t,i){(t.getPluginByName(this.ROW_HEIGHT_PLUGIN).setRowHeight(this.ROW_HEIGHT),e.parentViewToDocument(t),this._varView=t,i)&&(this._varView.getMetaDataStore().setTableModelProperty("ColumnWidth",i),t._setColumnWidth({columnWidth:i}))},_initializeDataStore:function(e){var t=this._varView.getDataStore(),i=Math.min(t.dataSize.rows.count,o.PREPOPULATED_ARRAY_ROW_COUNT),r=Math.min(t.dataSize.columns.count,o.PREPOPULATED_COLUMN_COUNT),a=n.range().setRows(0,i-1).setColumns(0,r-1);t.updateData&&t.updateData(e,a)},_saveDocumentPosition:function(){if(this.interactiveVarDoc&&this.interactiveVarDoc.domNode){var e=this.interactiveVarDoc.domNode.getElementsByClassName(this._INTERACTIVE_SCROLLDIV)[0];e&&(this._interactiveScrollTop=e.scrollTop,this._interactiveScrollLeft=e.scrollLeft)}},_updateDocumentPosition:function(){if(this.interactiveVarDoc&&this.interactiveVarDoc.domNode){var e=this.interactiveVarDoc.domNode.getElementsByClassName(this._INTERACTIVE_SCROLLDIV)[0];e&&(e.scrollTop=this._interactiveScrollTop,e.scrollLeft=this._interactiveScrollLeft)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(210),i(211),i(2043),i(357),i(426)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t([o],{_MATRIX_ELEMENT_CLASS:"matrixElement",_VALUE_SUMMARY_CLASS:"veVariableValueSummary",_VIEWPORT_SUMMARY_CLASS:"veViewportSummary",_SCALE_EXPONENT_CLASS:"scaleExponent",_SCALING_FACTOR:"10",_VERTICAL_ALIGN_ATTR_VAL:"super",_SUPERSCRIPT_FONT_SIZE:"8pt",_MULTIPLIER_FONT_STYLE:"12pt",_SUMMARY_COLOR:"rgb(179, 179, 179)",_HIDE_CLASS:"hide",_LEADER_ATTRIBUTE_VAL:"space",_SUMMARY_FONT_FAMILY:"'Consolas', sans-serif",_MULTIPLIER_CLASS:"multiply",_MARGIN_RIGHT_VAL:"146pt",_HEADER_WRAPPER_CSS:"headerElementClickToInteract",constructor:function(e){this._data=e.data||"",this._ellipsisShown=!0,this._hideViewPort=e.hideViewPortSummary},_getValue:function(e){return this._data||e.textContent},_createMetaSummaryInfo:function(e){var t=e.getElementsByClassName(this._VALUE_SUMMARY_CLASS)[0],i=a.createFOElement(r.INLINE);return i.setAttribute("color",this._SUMMARY_COLOR),i.setAttribute("font-family",this._SUMMARY_FONT_FAMILY),i.appendChild(document.createTextNode(t.textContent)),i},_getNameAndSummary:function(t){var n=this.inherited(arguments),o=t.getElementsByClassName(this._VIEWPORT_SUMMARY_CLASS);if(o.length>0&&!i.contains(o[0],this._HIDE_CLASS)&&!this._hideViewPort){this._summaryBlockElement=n;var s=o[0].children,l=a.createFOElement(r.INLINE);e.forEach(s,(function(e){this._constructInlineElement(l,e.textContent,{color:this._SUMMARY_COLOR})}),this);var c=a.createFOElement(r.LEADER);c.setAttribute("leader-pattern",this._LEADER_ATTRIBUTE_VAL),n.appendChild(c),n.appendChild(l),this._ellipsisShown=!1}return n},_getNameElement:function(e){var t=e.getElementsByClassName(this._HEADER_WRAPPER_CSS)[0];if(t)return t.firstChild},_getScalingFactor:function(e){var t=a.createFOElement(r.BLOCK);if(i.contains(e,this._HIDE_CLASS))t.appendChild(document.createTextNode(""));else{var n={},o={};this._constructInlineElement(t,this._SCALING_FACTOR);var s=e.getElementsByClassName(this._SCALE_EXPONENT_CLASS)[0];n["vertical-align"]=this._VERTICAL_ALIGN_ATTR_VAL,n["font-size"]=this._SUPERSCRIPT_FONT_SIZE,this._constructInlineElement(t,s.textContent,n);var l=e.getElementsByClassName(this._MULTIPLIER_CLASS)[0];o["font-size"]=this._MULTIPLIER_FONT_STYLE,this._constructInlineElement(t,l.textContent,o)}return t},_showEllipsis:function(){return this._ellipsisShown},_styleHeader:function(e){e>this.MAX_CHARACTERS&&!this._ellipsisShown&&(this._summaryBlockElement.setAttribute("text-align-last","justify"),this._summaryBlockElement.setAttribute("margin-right",this._MARGIN_RIGHT_VAL))},_constructInlineElement:function(e,t,i){var n=a.createFOElement(r.INLINE),o=document.createTextNode(t);i&&Object.keys(i).forEach((function(e){n.setAttribute(e,i[e])})),n.appendChild(o),e.appendChild(n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(225),i(1134),i(830),i(1454),i(1453)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{_STATICVIEW_CLASSNAME:"valueContainer",_REGEX_FOR_EXPONENT:/1.0e\+\d+ \*/,_DEFAULT_MAX_COLUMNS:50,_MAX_ROWS:10,constructor:function(e){this._initialStaticView=null,this._currentStaticView=null,this._data=e.data,this._outputMetaData=e.outputMetaData,this._variableValue="",this._initialStaticText="",this.columnWidth=e.columnWidth},createStaticDocument:function(){var e=this._createValueElement();return this._variableValue=e.value.textContent,this._initialStaticView={domNode:e.container},this._initialStaticText=e.value.textContent,e.container},_createValueElement:function(){return o.createMatrixValue(this._data,this._REGEX_FOR_EXPONENT,this._outputMetaData,this.columnWidth)},addMatrixStyler:function(){this._createStyler()},getStyler:function(){return this._styler},_createStyler:function(){this._styler=new r(this)},updateViewportInfo:function(e,t){var i=this._getValueContainerInfo(e,t);e.updateViewportInfo(t,this._MAX_ROWS,i.totalColumnsThatFit,i.matrixInfo.totalRows,i.matrixInfo.totalColumns)},displayEllipsisIfRequired:function(e,t){var i=this._getValueContainerInfo(e,t),o=Math.min(i.totalColumnsThatFit,i.matrixInfo.totalColumns);n.updateEllipsesVisibility(i.valueContainer,i.matrixInfo.totalColumns,i.matrixInfo.totalRows,o,this._MAX_ROWS)},startup:function(e){this._data.isPreview&&this._updateStaticWidth(e)},_getValueContainerInfo:function(e,t){var i=this._initialStaticView.domNode,n=e.getAvailableWidth(t);this._data.isPreview&&(n=this._outputMetaData.maxDimensions.width);var o=e.getMatrixInfo(i),r=e.getTotalColumnsThatFit(n,o,i);return this._outputMetaData.maxColumns&&(r=Math.min(r,this._outputMetaData.maxColumns)),{valueContainer:i,availableWidth:n,matrixInfo:o,totalColumnsThatFit:r,bufferColumnSpace:e.BUFFER_SPACE_FOR_COLUMN}},getTotalColumnWidth:function(e,t){var i=this._getValueContainerInfo(e,t);return Math.min(i.totalColumnsThatFit,i.matrixInfo.totalColumns)*i.matrixInfo.columnWidth+i.bufferColumnSpace},updateWidths:function(e,t){i(".veVariableName",t)[0].style.width=this._styler.getAvailableWidth(t.parentElement).toString()+"px",i(".variableValue",e)[0].style.width=this.getTotalColumnWidth(this._styler,t.parentElement)+"px"},_updateStaticWidth:function(e){var t=this._initialStaticView.domNode,n=this._getValueContainerInfo(this._styler,e),o=this._styler.getLayoutInfo(n.matrixInfo,n.totalColumnsThatFit);i(".variableValue",t)[0].style.width=o.totalWidth+"px"},_updateCurrentStaticView:function(e){this._currentStaticView||(this._currentStaticView={domNode:this._initialStaticView.domNode.cloneNode(!0)}),this._currentStaticView.domNode.getElementsByClassName("variableValue")[0].textContent=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(2362),i(209),i(1135),i(830),i(278)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{getPrepopulatedData:function(e,i){var n={columnInfo:[],data:[]},o=Math.min(10,e.rows),a=Math.min(30,e.columns),s=i?e.savedData:e.prepopulatedData;return n.data=function(e,i,n,o){return t._constructData(e,i,n,o)}(s,o,a,i),n.metaData=function(e,t,i){var n={};return n.columnMetadata=function(e,t){for(var i=[],n=0;n<t;n+=1){var o={ColumnNumber:n+1,ColumnWidth:e.columnWidth?e.columnWidth:r.getDefaultColumnWidth(e.subtype),label:(n+1).toString()};i.push(o)}return i}(e,i),n.cellMetadata=[],n.rowMetadata=[],n.tableMetadata=function(e){return{class:e.subtype}}(e),n}(e,0,a),n},getColumnWidth:function(e){var t=e.value,i=this.getFirstDataEntryFromJSON(e);return this.computeColumnWidth(t,i,e.subtype)},computeColumnWidth:function(e,t,i){var o=e.search(/\S/),r=1;return"logical"!==i&&(r=t.value.trim().length),Math.ceil((o+r)*n.getNumericCharacterWidth())},getFirstDataEntryFromJSON:function(e){var t=e.prepopulatedData?e.prepopulatedData:e.savedData;return t=JSON.parse(t),1===e.rows||1===e.columns?JSON.parse(t[0].value):JSON.parse(t[0][0].value)},getColumnWidthFromValueString:function(e,t){var i=this.getDataLengthFromValueString(e,t);return Math.ceil(i*n.getNumericCharacterWidth())},getDataLengthFromValueString:function(e,t){if("logical"===e.type)return e.value.search(/\S/)+1;var i="complex"===e.type;return o.getCharsPerElement(t,e.exponent,i)},getFormattedHtmlText:function(t,i){var n=i?"div":"span";return e.create(n,{style:{color:"rgb(179, 179, 179)","font-family":"'Consolas', sans-serif","font-size":"12px"},textContent:t})},getDefaultColumnWidth:function(e,t){var i=Math.ceil(5.9*e.length+38),n=r.getDefaultColumnWidth();return i>n*t?i:n*t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(382),i(203),i(211),i(210),i(213),i(204),i(212),i(206),i(217),i(225),i(236),i(2366),i(1565),i(1563),i(2368),i(2367),i(2369),i(2371),i(6583),i(247),i(939),i(830),i(278)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){return t([p],{_STATICVIEW_CLASSNAME:"valueContainer",_INTERACTIVEVIEW_CLASSNAME:"ClientDocument",_FOCUSEDOUTPUT_CLASSNAME:"focusedInteractiveOutput",_CSS_TAG:"embeddedOutputsVariableMatrixElement",_INTERACTIVE_SCROLLDIV:"mw-scrolling-div",_SUMMARYBAR_VIEWPORT_SPAN:"veViewportSummary",_VARIABLE_NAME_CLASS:"veVariableName",_COLUMN_WIDTH:82,_HIDE_ELLIPSES:"hideEllipses",LOGICAL_TYPE:"logical",_FOCUSED_CLASS:"focused",_VALUE_SUMMARY_CLASS:"veVariableValueSummary",_MULTIPLIER:" ×",_VARIABLE_VALUE_CLASS:".valueContainer .variableValue",_ROW_TITLE_TEXT:" "+h.rowTitleText+" ",_COLUMN_TITLE_TEXT:" "+h.columnTitleText+" ",_VIEWPORT_SEP:":",_SPACER_HTML:"&nbsp;&nbsp;&nbsp;&nbsp;",_VIEWPORT_TEXT_SEPARATOR:" |",_hideViewPortForExport:!1,_PT_CHAR_FACTOR:6,_VARIABLE_VALUE:"variableValue",constructor:function(e){this._scrolledStartColumn=0,this._scrolledStartRow=0},_createVariableDocument:function(){this._data.prepopulatedData?this.columnWidth=m.getColumnWidth(this._data):this.columnWidth=m.getColumnWidthFromValueString(this._data,this._valueStringData),this._data.columnWidth&&delete this._data.columnWidth,this._staticMatrixOutput=new f({data:this._data,outputMetaData:this._outputMetaData,columnWidth:this.columnWidth});var e=this._staticMatrixOutput.createStaticDocument();this._varDoc={domNode:e},this._isSaveLoad()||this._data.isPreview||(this._interactiveMatrixOutput=new u({data:this._data}))},_getPromptControllerTargetNode:function(){return this.getDomElement()},_createRunScriptPromptController:function(){return new v},getPrepopulatedData:function(){return m.getPrepopulatedData(this._data)},_parseValueDataString:function(e){var t=(e=e.split("\n"))[0].trim();return e.splice(0,2),{data:e.join("\n"),exponent:t}},_createDomElement:function(){var e=this.inherited(arguments);return n.add(e,"matrixElement veSpecifier"),this._isSaveLoad()&&n.add(e,"saveLoad"),this._prependHeaders(e),this._staticMatrixOutput.addMatrixStyler(),this._displayEllipsesIfRequired(e),e},_prependHeaders:function(e){this._prependSummaryBar(e)},_createPromptControllerInstance:function(){return new _},_createViewportSummary:function(){var e=document.createElement("span");n.add(e,this._SUMMARYBAR_VIEWPORT_SPAN),n.add(e,"hide"),this._viewportSummaryDisplayed=!1;var t=document.createElement("span");t.innerText=this._ROW_TITLE_TEXT;var i=document.createElement("span");n.add(i,"startRow"),i.innerText=1;var o=document.createElement("span");n.add(o,"endRow");var r=document.createElement("span");r.innerText=" |";var a=document.createElement("span");a.innerText=this._COLUMN_TITLE_TEXT;var s=document.createElement("span");n.add(s,"startColumn"),s.innerText=1;var l=document.createElement("span");n.add(l,"endColumn");var c=document.createElement("span");c.innerText=this._VIEWPORT_SEP;var d=document.createElement("span");return d.innerText=this._VIEWPORT_SEP,1!==this._data.rows&&(e.appendChild(t),e.appendChild(i),e.appendChild(c),e.appendChild(o)),1!==this._data.rows&&1!==this._data.columns&&e.appendChild(r),1!==this._data.columns&&(e.appendChild(a),e.appendChild(s),e.appendChild(d),e.appendChild(l)),e},_addOverlay:function(e){},_removeOverlay:function(e){},_prependSummaryBar:function(e){var t=this._createNameAndSummary(),i=this._createViewportSummary();this._addHeaderElement(t),t.summary.appendChild(i),this._modifyExistingSummary(t),this._metaSummaryInfo=t.metaSummary.textContent,e.insertBefore(t.summary,e.firstElementChild)},_createNameAndSummary:function(){return C.createNameAndSummary(this._data.name,this._data.rows,this._data.columns,this._data.subtype,this._data.header)},_addHeaderElement:function(e){var t=document.createElement("div");for(n.add(t,this._VALUESUMMARYCSS);e.summary.childNodes.length>0;)t.appendChild(e.summary.childNodes[0]);e.summary.appendChild(t)},_modifyExistingSummary:function(){},getSummaryInfo:function(){return{metaSummary:this._metaSummaryInfo||""}},getSummaryBarStatus:function(){return!1},_openCallback:function(){this._interactiveMatrixOutput.interactiveVarDoc||this._interactiveMatrixOutput.createInteractiveDocument(this),this.inherited(arguments)},_applyPromptController:function(){var e=1===this._data.rows&&1===this._data.columns,t=null;return this._data.subtype===this.LOGICAL_TYPE&&e||(t=this.inherited(arguments)),t},_getPopoutCreationArgs:function(){var e=this.inherited(arguments),t=this.getSummaryInfo(),i=this._data.name+" = "+t.metaSummary;return r.mixin(e,{title:i})},_getDataFromBuffer:function(){},_prefetchDataForExport:function(){},_handleOutputFocused:function(e){this.inherited(arguments);var t=e.focusedOutput;this._updateInteractiveViewDoc(t)},_handleOutputBlurred:function(e){this.inherited(arguments),this._interactiveMatrixOutput._saveDocumentPosition(),this._varView&&this._updateStaticViewDoc()},_updateInteractiveViewDoc:function(e){e._interactiveMatrixOutput.interactiveVarDoc||this._interactiveMatrixOutput.createInteractiveDocument(e),this._resetViewportSummary(),this._updateCssOnDomElement(!0);var t=e._getUpdatedDom(e._interactiveMatrixOutput.interactiveVarDoc,this._STATICVIEW_CLASSNAME,this._INTERACTIVEVIEW_CLASSNAME);this._interactiveMatrixOutput._updateDocumentPosition(e._interactiveScrollTop,e._interactiveScrollLeft);var i=this;this._varDoc.getView(this._outputViewID).then((function(e){i._handleRefreshOnOutputChange(t)}))},_updateCssOnDomElement:function(e){var t=this.getDomElement();e?n.add(t,this._FOCUSED_CLASS):n.remove(t,this._FOCUSED_CLASS)},_shouldRecomputeStaticString:function(){return this._outputScrolled||this._isOutputScrolled()},_updateStaticViewDoc:function(){this._scrolledStartRow=1,this._scrolledStartColumn=1,this._shouldRecomputeStaticString()?this._fetchPlainTextString():this._updateStaticString();var e=this._getUpdatedDom(this._staticMatrixOutput._initialStaticView,this._INTERACTIVEVIEW_CLASSNAME,this._STATICVIEW_CLASSNAME);(this._viewportSummaryDisplayed||1!==this._getStartRow()||1!==this._scrolledStartColumn)&&(this._displayViewportSummary(this._getStartRow(),this._scrolledStartColumn),this._hideEllipsis()),e&&this._staticMatrixOutput.updateWidths(e,this.getDomElement()),this._updateCssOnDomElement(!1),this._handleRefreshOnOutputChange(e),this._staticMatrixOutput.updateViewportInfo(this._staticMatrixOutput._styler,this.getDomElement())},_updateStaticString:function(){this._currentStaticView=null,this._staticMatrixOutput._variableValue=this._staticMatrixOutput._initialStaticText,this._hideViewPortForExport=!1},_fetchPlainTextString:function(){this._hideViewPortForExport=!0;var t=this.columnWidth||this._COLUMN_WIDTH,i=this._interactiveMatrixOutput.ROW_HEIGHT;this._scrolledStartRow=Math.min(this._data.rows,Math.floor(this._interactiveMatrixOutput._interactiveScrollTop/i)+1),this._scrolledStartColumn=Math.min(this._data.columns,Math.floor(this._interactiveMatrixOutput._interactiveScrollLeft/t)+1);var n=this._getStartRow()-1,o=this._scrolledStartColumn-1,r=e.createRange(n,n+9,o,o+9),a=this._varView.getPluginByName(this._STRING_DISPLAY_PLUGIN),s=this;a.requestStringData(r[0]).then((function(e){s._handleStringDisplayReceived(e)}))},_handleStringDisplayReceived:function(e){var t=e.data;if(this._interactiveMatrixOutput){t=this._processStringData(t[0]);var i=this.columnWidth,n=this._interactiveMatrixOutput._varView.getDataStore().getLocalCellData(e.startRow,e.startColumn);n&&(i=m.computeColumnWidth(t,JSON.parse(n),this._data.subtype));var o=this.getDomElement().getElementsByClassName(this._STATICVIEW_CLASSNAME)[0];C.updateLayoutInfo(i,this._data.columns,this._data.rows,C.getCharsPerElement(t,null),o),this._staticMatrixOutput.updateViewportInfo(this._staticMatrixOutput._styler,this.getDomElement())}this._updateDOMWithStringData(t),this._hideViewPortForExport=!1},_updateDOMWithStringData:function(e){this._staticMatrixOutput._updateCurrentStaticView(e),this._staticMatrixOutput._variableValue=e;var t=this._domElement;i.place(this._staticMatrixOutput._currentStaticView.domNode,t.getElementsByClassName(this._STATICVIEW_CLASSNAME)[0],"replace"),this._varDoc=this._staticMatrixOutput._currentStaticView,this._varDoc.domNode.dataset.currentViewRange="startRow:"+this._getStartRow()+"|startColumn:"+this._scrolledStartColumn},_processStringData:function(e){return e},_getStartRow:function(){this._scrolledStartRow;return this._data.rows>10?Math.min(this._scrolledStartRow+9,this._data.rows)-9:1},_displayEllipsesIfRequired:function(e){arguments.length>0?this._staticMatrixOutput.displayEllipsisIfRequired(this._staticMatrixOutput._styler,e):this._staticMatrixOutput.displayEllipsisIfRequired(this._staticMatrixOutput._styler,this.getDomElement())},_isOutputScrolled:function(){return this._outputScrolled=0!==this._interactiveMatrixOutput._interactiveScrollTop||0!==this._interactiveMatrixOutput._interactiveScrollLeft,this._outputScrolled},_displayViewportSummary:function(e,t){var i=this.getDomElement().getElementsByClassName(this._SUMMARYBAR_VIEWPORT_SPAN)[0];(n.remove(i,"hide"),this._data.rows>1)&&(i.getElementsByClassName("startRow")[0].innerText=e);this._data.columns>1&&(i.getElementsByClassName("startColumn")[0].innerText=t);this._viewportSummaryDisplayed=!0},_hideEllipsis:function(){var e=this.getDomElement().getElementsByClassName(this._STATICVIEW_CLASSNAME)[0];e&&n.add(e,this._HIDE_ELLIPSES)},_resetViewportSummary:function(){var e=this.getDomElement().getElementsByClassName(this._SUMMARYBAR_VIEWPORT_SPAN)[0];n.add(e,"hide")},_getInteractiveDocument:function(e,t,i,n,o,r){var a=this._interactiveMatrixOutput.getInteractiveDocument(e,t,i,n,o,r,this.columnWidth,this.getContext());this._varDoc=a;var s=this;return a.getView(this._outputViewID).then((function(e){s._varView=e})),a},_getUpdatedDom:function(e,t,i){return this._varDoc=e,this._updateDom(t,i,e)},_handleRefreshOnOutputChange:function(e){this._refreshOutput(e),this._refreshPromptControllerPosition()},_refreshOutput:function(e){e&&(s.emit(e,"startup",{bubbles:!0,cancelable:!0}),this._initializeGestureHandler(),this._embeddedOutputsView.outputChanged())},onOutputReady:function(){var e=new a;return e.resolve(!0),e},startup:function(){this.inherited(arguments);var e=this.getDomElement();if(this._focused){var t=this._staticMatrixOutput.createStaticDocument();this._staticMatrixOutput._currentStaticView?this._staticMatrixOutput._currentStaticView={domNode:t}:this._staticMatrixOutput._initialStaticView={domNode:t},t&&this._staticMatrixOutput.updateWidths(t,e)}this._staticMatrixOutput.startup(e)},_updateDom:function(e,t,i){var o=this.getDomElement();if(o&&o.getElementsByClassName(e).length>0){o.removeChild(o.getElementsByClassName(e)[0]),o.appendChild(i.domNode);var r=o.getElementsByClassName(t)[0];return n.add(r,this._FOCUSEDOUTPUT_CLASSNAME),r}return null},_refreshPromptControllerPosition:function(){this._promptController&&this._promptController.updatePalettePosition()},getFocusedView:function(){return this._focused?this._interactiveMatrixOutput:this._staticMatrixOutput},getVariableType:function(){return""},getSize:function(){return{rows:this._data.rows,columns:this._data.columns}},getText:function(e){e=e||{};var t=this._getValueForExport(e),n=this._createText(t),o=-1!==n.search("\n")?"\n":"",r="";return!1!==e.showHeaderSummary&&(r=this._getHeaderSummaryForTextExport()+o),r+i.create("div",{innerHTML:n}).textContent},_getHeaderSummaryForTextExport:function(){var e=this._createName(this._data.name),t=this.getSummaryInfo(),i=this._getViewportForExport();return e+(t.metaSummary+" "+i)},getHTML:function(){var e=this._getHeaderSummaryForHTMLExport(),t=this._getValueForExport();return"<pre>"+e+b.treatHtmlLikeCommandWindow(t)+"</pre>"},_getHeaderSummaryForHTMLExport:function(){return b.treatHtmlLikeCommandWindow(C.createName(this._data.name))+this._getHeaderInfo()+"\n"},_getHeaderInfo:function(){var e="",t=this.getSummaryInfo();t.metaSummary&&(e=m.getFormattedHtmlText(t.metaSummary).outerHTML);var i=this._getViewportForExport();if(i){var n=m.getFormattedHtmlText(i);e+=this._SPACER_HTML+n.outerHTML}return e},_getValueForExport:function(){return(this._hideViewPortForExport?this._staticMatrixOutput._initialStaticText:this._staticMatrixOutput._variableValue)||this._data.value},_getViewportForExport:function(){var e=c("."+this._SUMMARYBAR_VIEWPORT_SPAN,this.getDomElement()),t="";if(e&&e.length>0&&!n.contains(e[0],"hide")&&!this._hideViewPortForExport){var i="",o=e[0].getElementsByClassName("endRow"),r=e[0].getElementsByClassName("endColumn");o.length>0&&(t+=d.substitute(h.viewPortRowText,{0:this._getStartRow(),1:o[0].textContent}),i=this._VIEWPORT_TEXT_SEPARATOR),r.length>0&&(t+=i+d.substitute(h.viewPortColumnText,{0:this._scrolledStartColumn,1:r[0].textContent}))}return t},getPdfContent:function(e,t,i){return new g({data:this._getValueForExport(),hideViewPortSummary:this._hideViewPortForExport}).createElement(e,t,i)},getHTMLContent:function(e,t){t=t||{};var i=e.cloneNode(!0);return this._cleanHeaderDomForHTML(i),t.availableWidth&&this._handleFormattingForContainedWidth(t,i),i},_handleFormattingForContainedWidth:function(e,t){var i=Math.round(e.availableWidth/this._PT_CHAR_FACTOR),n=t.getElementsByClassName(this._STATICVIEW_CLASSNAME)[0],o=JSON.parse(n.dataset.layout),r=this._getChoppedData(o,this._getTextValueForExport(n),i),a=n.getElementsByClassName(this._VARIABLE_VALUE)[0].style;r.style.fontStyle=a.fontStyle,r.style.color=a.color,r.style.fontSize=a.fontSize,t.getElementsByClassName(this._VARIABLE_VALUE)[0].innerHTML=r.innerHTML},_getTextValueForExport:function(e){return e.textContent},_cleanHeaderDomForHTML:function(e){if(!this._destroyDom(this._SUMMARYBAR_VIEWPORT_SPAN,e,this._hideViewPortForExport)){var t=c("."+this._VALUE_SUMMARY_CLASS,e)[0];t&&(t.innerHTML+=this._SPACER_HTML)}},_getChoppedData:function(e,t,i){var n,o=this._getAmountOfDataToShow(e,i,t),r=o.totalCharactersInRow,a=o.totalCharacters,s=document.createElement("div");return t.split("\n").forEach((function(e,t){if(e){n=document.createElement("div");var o=document.createElement("pre");o.innerText=e.substring(0,a),n.appendChild(o),this._addHorizontalEllipsis(t,r,o,i),s.appendChild(n)}}),this),this._addVerticalEllipsis(e.totalRows,s),s},_getAmountOfDataToShow:function(e,t){var i=e.charsPerColumn,n=e.totalColumns,o=e.totalColumns*e.charsPerColumn,r=Math.floor(t/i);return{totalCharactersInRow:o,totalCharacters:Math.min(r,n)*i}},_addHorizontalEllipsis:function(e,t,i,n){if(0===e&&t>n){var o=document.createTextNode(" ⋯");i.appendChild(o)}},_addVerticalEllipsis:function(e,t){if(e>10){var i=document.createElement("pre"),n=document.createTextNode(" ⋮");i.appendChild(n),t.appendChild(i)}},_destroyDom:function(e,t,o){var r=c("."+e,t);return!!(r&&r.length>0&&(o||n.contains(r[0],"hide")))&&(i.destroy(r[0]),!0)},getStyler:function(){return this._focused?null:this._staticMatrixOutput.getStyler()},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(230),i(1564),i(938)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n,o,i],{constructor:function(){this.paletteRegistryId="MatrixPopoutPalette"},getPreferredLeftPosition:function(){var e=this.inherited(arguments);if(0===e){var i=t(".variableValue",this._outputDomNode);i&&i.length>=1&&(e=i[0].offsetLeft+i[0].offsetWidth)}var n=t(".veVariableName",this._outputDomNode),o=0;return n&&n.length>=1&&(o=n[0].offsetLeft+n[0].offsetWidth),Math.max(e,o)+10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(203),i(214),i(207),i(249)],o=i.dj.d(n,(function(e,t,i,n,o){return t(n,{constructor:function(t,n,o){this._fileModificationNotifier=t,this._document=n,this._internalDocument=o,this.own(i.after(this._internalDocument,"onDocumentChanged",e.hitch(this,"setFileDirty"),!0))},setFileDirty:function(e){this._document.isReadOnly()||e&&this._areEventsReadOnly(e)||this._fileModificationNotifier.setModified()},_areEventsReadOnly:function(e){for(var t=0;t<e.length;t++)if(e[t].type!==o.READONLY_STATE_CHANGE_EVENT)return!1;return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,n){this._actionService=e,this._dataTipPlugin=t,this._matlabSettingService=n;var o=[{id:this._getDataTipActionId(),enabled:!0,selected:!1,callback:this._handleActionExecution.bind(this)}];this._actionService.loadActions(o),this.own(this._matlabSettingService.listenTo(this._getSettingGroup(),this._getSettingName(),function(e){this._handleSettingsUpdated(e.newValue)}.bind(this))),this._matlabSettingService.getSetting(this._getSettingGroup(),this._getSettingName()).then(function(e){this._handleSettingsUpdated(e.value)}.bind(this)),this.own(i.after(this._actionService,"onActionChange",this._handleActionChange.bind(this),!0))},_handleSettingsUpdated:function(e){this._actionService.getAction(this._getDataTipActionId()).selected!==e&&this._actionService.updateAction(this._getDataTipActionId(),{selected:e}),this._dataTipPlugin.setEnabled(e)},_handleActionExecution:function(e){var t=this._actionService.getAction(this._getDataTipActionId()).selected;this._matlabSettingService.setSetting(this._getSettingGroup(),this._getSettingName(),t),this._dataTipPlugin.setEnabled(t)},_handleActionChange:function(e){if("selected"===e.key&&e.id===this._getDataTipActionId()){var t=e.newValue;this._matlabSettingService.setSetting(this._getSettingGroup(),this._getSettingName(),t),this._dataTipPlugin.setEnabled(t)}},_getDataTipActionId:function(){throw new Error("Unimplemented API: BaseDataTipPreference:_getDataTipActionId")},_getSettingGroup:function(){throw new Error("Unimplemented API: BaseDataTipPreference:_getSettingGroup")},_getSettingName:function(){throw new Error("Unimplemented API: BaseDataTipPreference:_getSettingName")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(6600),i(219),i(1912)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_START_CHANNEL:"/execution/startingEvaluation/",_END_CHANNEL:"/execution/endingEvaluation/",_EXECUTION_EVENT_CHANNEL:"/editor/is-editor-executing",_IS_EDITOR_EXECUTION_KEY:"editorIsExecuting",_FILE_TYPE_KEY:"executingFileType",_SCRIPT_FILE:"ScriptFile",constructor:function(e,t,o,r){this._fileTypeService=e,this._editorEventNotifier=t,this._rtcId=o,this._messageService=r||n,this._isEditorExecuting=!1,this._executionFileType=null,this._initializationPromise=new i,this._messageService.subscribe(this._START_CHANNEL+this._rtcId,"_handleExecutionStartEvent",this),this._messageService.subscribe(this._END_CHANNEL+this._rtcId,"_handleExecutionEndEvent",this),this._messageService.subscribe(this._EXECUTION_EVENT_CHANNEL,"_handleEditorExecutionEvent",this),this._editorEventNotifier.request(this._EXECUTION_EVENT_CHANNEL)},_handleEditorExecutionEvent:function(e){this._ensureInitialized(),0!==Object.keys(e.data).length&&(this._isEditorExecuting=e.data[this._IS_EDITOR_EXECUTION_KEY],this._executionFileType=e.data[this._FILE_TYPE_KEY]||null,this._emitEvent())},_ensureInitialized:function(){this._initializationPromise.isFulfilled||this._initializationPromise.resolve(!0)},_emitEvent:function(){this._isEditorExecuting?this.onEditorExecutionStart():this.onEditorExecutionEnd()},_handleExecutionStartEvent:function(){this._ensureInitialized(),this._isEditorExecuting=!0,this._executionFileType=this._getExecutionFileType(),this._publishEventData()},_handleExecutionEndEvent:function(){this._ensureInitialized(),this._isEditorExecuting=!1,this._executionFileType=null,this._publishEventData()},_getExecutionFileType:function(){return this._fileTypeService.isScript()?this._SCRIPT_FILE:null},_publishEventData:function(){var e=this._createDataMap();this._editorEventNotifier.publish(this._EXECUTION_EVENT_CHANNEL,e,!0)},_createDataMap:function(){var e={};return e[this._IS_EDITOR_EXECUTION_KEY]=this._isEditorExecuting,e[this._FILE_TYPE_KEY]=this._executionFileType,e},executionStarted:function(){this._handleExecutionStartEvent()},executionCompleted:function(){this._handleExecutionEndEvent()},onEditorExecutionStart:function(){},onEditorExecutionEnd:function(){},isEditorExecuting:async function(){return await this._initializationPromise,this._isEditorExecuting},isScriptFileExecuting:async function(){return await this._initializationPromise,this._executionFileType===this._SCRIPT_FILE},destroy:function(){this.inherited(arguments),this._initializationPromise.isFulfilled||(this._initializationPromise.catch((function(e){})),this._initializationPromise.reject("Destroying")),this._initializationPromise=null,this._messageService.unsubscribe(this._START_CHANNEL+this._rtcId,"_handleExecutionStartEvent",this),this._messageService.unsubscribe(this._END_CHANNEL+this._rtcId,"_handleExecutionEndEvent",this),this._messageService.unsubscribe(this._EXECUTION_EVENT_CHANNEL,"_handleEditorExecutionEvent",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(210),i(211),i(411),i(6610),i(827)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{templateString:r,postCreate:function(){this.currentBannerHeight=0,this._shouldResize=!0,this._createBanner(),this._placeBanner(),this._setFocusBehavior()},_createBanner:function(){if(this.bannerTitleNode.innerHTML=this.params.bannerTitle,this.bannerTextNode.innerHTML=this.params.bannerText,this.params.textMaxWidth&&(this.bannerTextNode.style.maxWidth=this.params.textMaxWidth),this.params.bannerLink){var e=n.create("a",{className:"announcementBannerLink"});e.innerHTML=this.params.bannerLink.text,this.own(t(e,"click",function(){this.params.bannerLink.callback()}.bind(this))),this.bannerLinkNode.appendChild(e)}else this.bannerLinkNode.style.visibility="hidden";if(this.params.bannerButton){var r=n.create("div",{className:"announcementBannerButton"}),a=new o({label:this.params.bannerButton.text});this.own(t(a,"click",function(){this.params.bannerButton.callback()}.bind(this))),a.placeAt(r),this.bannerButtonNode.appendChild(r)}else this.bannerButtonNode.style.visibility="hidden";i.add(this.bannerIconContainerNode,this.params.bannerIcon),i.add(this.bannerIconNode,this.params.bannerIcon)},_onCloseButtonPressed:function(){this.closeBanner(),this.params.onCloseButtonPressed&&this.params.onCloseButtonPressed()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{allowSave:function(e){return!0},load:function(e,t,i){throw new Error("Unimplemented API: load")},save:function(e,t){throw new Error("Unimplemented API: save")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6654)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.domnode.external","rtc.featureinterface","rtc.code.matlabfiletype","rtc.view","rtc.code.sections.model","rtc.hyperlinkservice","rtc.executionservice","rtc.document","rtc.focusservice","rtc.bannermanager","rtc.service.documentloaded"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6675)],o=i.dj.d(n,(function(e,t,i){var n=0,o={};return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.backingstore","rtc.id"]}},createInstance:function(e,t,r){return n+=1,new i(e,t,r,o)},destroyInstance:function(e){e.destroy(),(n-=1)<1&&(o={})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6676),i(229),i(715),i(6677)],o=i.dj.d(n,(function(e,t,i,n){return{PUBLISH_MAPPING_MAP:{outputFileFormat:"format",styleSheet:"stylesheet",outputLocation:"outputDir",imageFormat:"imageFormat",figureCaptureMethod:"figureSnapMethod",useNewFigure:"useNewFigure",maxHeight:"maxHeight",maxWidth:"maxWidth",showCode:"showCode",evaluateCode:"evalCode",catchError:"catchError",createThumbnail:"createThumbnail",maxNumberOfOutputLines:"maxOutputLines",codeToEvaluate:"codeToEvaluate"},_PUBLISH_PREFERENCES_FILE:"publish_configurations.m",_getOption:function(e,t){var i=t.match(/^publish_options\.([^=]+)=(.+);$/);if(i){var o=i[1],r=i[2];r=-1!==r.indexOf("'")||r===n.INF?r.replace(/'/g,""):JSON.parse(r),o&&e.set(o,r)}},readPreferences:function(){return i.readFileFromPreferenceDirectory(this._PUBLISH_PREFERENCES_FILE).then(function(e){return this._preparePreferences(e)}.bind(this),function(){return this._preparePreferences(e)}.bind(this))},_preparePreferences:function(e){for(var t=(e=(e=e.replace(/ char\(10\) \.\.\./g,n.NEW_LINE)).replace(/\r/g,"")).split(n.NEW_LINE),i=[],o={},r=0;r<t.length;r++){var a=t[r];if(a.startsWith(n.NAME))o={Name:a.substring(n.NAME.length+1,a.length),PublishOptions:new Map},i.push(o);else if(a.startsWith(n.ASSOCIATED_FILE)){var s=a.substring(n.ASSOCIATED_FILE.length+1,a.length);o.AssociatedFile=s}else if(a.startsWith(n.MOST_RECENTLY_ACTIONED)){var l=a.substring(n.MOST_RECENTLY_ACTIONED.length+1,a.length);o.MostRecentlyActioned=JSON.parse(l)}else if(a.startsWith(n.UNIQUE_ID)){var c=a.substring(n.UNIQUE_ID.length+1,a.length);o.UniqueId=c}else if(a.startsWith(n.BASED_ON)){var d=a.substring(n.BASED_ON.length+1,a.length);o.PublishOptionsBasedOn=d}else if(a.startsWith(n.PUBLISH_OPTIONS+"."+n.CODE_TO_EVALUATE)){var u="";for(r++;!t[r].endsWith("]");){var h=t[r];if(""!==h){for(;h.startsWith(" ");)h=h.slice(1);h.length>1&&h.startsWith("'")&&h.endsWith("'")&&(h=h.slice(1,-1)),u+=(h=h.replace(/"/g,"'"))+n.NEW_LINE}r++}u=u.slice(0,u.length-1),o.MatlabExpression=u}else a.startsWith(n.PUBLISH_OPTIONS)&&this._getOption(o.PublishOptions,a)}return i},writePreferences:function(e){var t=n.CONFIGURATION_HEADING;t=e.reduce(function(e,t){return e+this._createConfigurationString(t)}.bind(this),t),i.writeFileToPreferenceDirectory(this._PUBLISH_PREFERENCES_FILE,t)},_createConfigurationString:function(e){var i=n.NAME+" "+e.Name+n.NEW_LINE;(e.PublishOptionsBasedOn&&(i+=void 0!==e.AssociatedFile?n.ASSOCIATED_FILE+" "+e.AssociatedFile+n.NEW_LINE:"",i+=void 0!==e.MostRecentlyActioned?n.MOST_RECENTLY_ACTIONED+" "+e.MostRecentlyActioned+n.NEW_LINE:"",i+=void 0!==e.UniqueId?n.UNIQUE_ID+" "+e.UniqueId+n.NEW_LINE:n.UNIQUE_ID+" "+t.generateUuid()+n.NEW_LINE),i+=void 0!==e.PublishOptionsBasedOn?n.BASED_ON+" "+e.PublishOptionsBasedOn+n.NEW_LINE:"",i+=n.NEW_LINE,e.PublishOptions.forEach((function(e,t){"true"===e||"false"===e?e=Boolean(e):(typeof e).toString()===n.STRING&&e!==n.INF&&(e="'"+e+"'"),i+=n.PUBLISH_OPTIONS+"."+t+"="+e+";"+n.NEW_LINE})),e.MatlabExpression)&&(i+=n.PUBLISH_OPTIONS+"."+n.CODE_TO_EVALUATE+n.EXPRESSION_START+n.NEW_LINE,e.MatlabExpression.split(n.NEW_LINE).forEach((function(e){i+="'"+e+n.CHAR_10+n.NEW_LINE})),i+=n.EXPRESSION_END+n.NEW_LINE);return i+=n.NEW_LINE,e.AssociatedFile&&(i+=n.PUBLISH+e.AssociatedFile+"',"+n.PUBLISH_OPTIONS+");"+n.NEW_LINE+n.NEW_LINE),i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(286),i(269),i(243),i(507)],o=i.dj.d(n,(function(e,t,i,n){return{_DEFAULT_SETTINGS_BUTTON_CLASS:"defaultSettingsButton",_DEFAULT_SETTINGS_COMBO_BOX_CLASS:"defaultSettingsCombobox",_DEFAULT_SETTINGS_LABEL_CLASS:"defaultSettingsLabel",createMatlabDefaultSettingsPanel:function(o,r){var a=o.domNode.getElementsByClassName(this._DEFAULT_SETTINGS_LABEL_CLASS)[0],s=o.domNode.getElementsByClassName(this._DEFAULT_SETTINGS_COMBO_BOX_CLASS)[0],l=o.domNode.getElementsByClassName(this._DEFAULT_SETTINGS_BUTTON_CLASS)[0],c=new t({text:n.savePublishSettingsLabel});a.appendChild(c.domNode);var d=this.getDefaultsFromConfigurations(this.filterDefaultConfigurations(r)),u=new e({items:d,value:d[0].value});u.startup(),s.appendChild(u.domNode);var h=new i({text:n.saveAs});return h.startup(),l.appendChild(h.domNode),{saveAsButton:h,comboBox:u}},getDefaultsFromConfigurations:function(e){var t=[];return e.forEach((function(e,i){t.push({label:e.Name,value:i})})),t},filterDefaultConfigurations:function(e){var t=new window.Map;return e.forEach((function(e,i){e.PublishOptionsBasedOn||t.set(i,e)})),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(350),i(315),i(531),i(6685),i(1204)],o=i.dj.d(n,(function(e,t,i,n,o){return{createFileTreeConfigurationPanel:function(e,t){var i=t.domNode.getElementsByClassName("fileTree")[0],n=this._createTreeDataStore(e),o=this._createTree(n);return i.appendChild(o.domNode),o.startup(),{treeWidget:o,dataStore:n}},filterByConfiguration:function(e,t,i){var n=o.getFileNameWithoutExtensionFromPath(i.AssociatedFile);this._setSelectedConfiguration(e,t,i,(function(){e.filter({field:"fileName",value:n})}))},updateFileTreeConfiguration:function(e,t,i,n,o,r){var a=this._prepareTreeData(e);i.replaceAll(a),""!==o?this._setSelectedConfiguration(i,n,t,(function(){i.filter({field:"fileName",value:o}),r&&r()})):(i.clearFilter(),this._setSelectedConfiguration(i,n,t,r))},_setSelectedConfiguration:function(e,t,i,n){var o;e.getData([e.dataSize]).then((function(e){e[0].forEach((function(e){e[0].data.reference===i&&(o=e[0])}));var r=o?o.data.id:0;0===t.getSelection().length&&t.setSelection([{id:r}]),o&&t.scrollTo(o),n&&n()}))},_createTree:function(e){var t={dataTestId:"fileTree",editor:{},plugins:[i.PLUGINS.SingleNodeSelection,i.PLUGINS.Search,i.PLUGINS.Filter,i.PLUGINS.ContextMenu],renderer:new n("fileTreeRenderer")};return new i(e,t)},_prepareTreeData:function(e){var t=this._combineFileConfigurations(e),i=[],n=0;return t.forEach((function(e,t){var r=n++,a=o.getFileNameFromPath(t),s=[];i.push({id:r,label:a,iconUri:"/",parent:null,reference:null,filePath:t,fileName:a,childReferences:s}),e.forEach((function(e,t){i.push({id:n++,label:e.Name,parent:r,reference:e,fileName:a,iconUri:"plaincode_features/plugin/publish/images/document_16.png"}),s.push(e)}),this)}),this),i},_createTreeDataStore:function(i){var n=this._prepareTreeData(i),o=e.create(n,{type:t.TREE});return o.expandAll(),o},_combineFileConfigurations:function(e){var t=new Map;return e.forEach((function(e){if(e.PublishOptionsBasedOn){var i=e.AssociatedFile,n=t.get(i);n?(n.push(e),t.set(i,n)):t.set(i,[e])}})),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(350),i(315),i(6686),i(507)],o=i.dj.d(n,(function(e,t,i,n){return{_CATCH_ERROR:"catchError",_CREATE_THUMBNAIL:"createThumbnail",_EVALUATE_CODE:"evaluateCode",_FIGURE_CAPTURE:"figureCaptureMethod",_IMAGE_FORMAT:"imageFormat",_MAX_HEIGHT:"maxHeight",_MAX_OUTPUT_LINES:"maxNumberOfOutputLines",_MAX_WIDTH:"maxWidth",_OUTPUT_FILE_FORMAT:"outputFileFormat",_OUTPUT_LOCATION:"outputLocation",_SETTINGS_TREE:"settingsTreeTable",_SHOW_CODE:"showCode",_STYLE_SHEET:"styleSheet",_USE_NEW_FIGURE:"useNewFigure",_PROXY_ROWS:{proxyNodes:[{id:"1"},{id:"2"},{id:"3"},{id:"5"},{id:"6"},{id:"7"},{id:"8"},{id:"9"},{id:"10"},{id:"12"},{id:"13"},{id:"14"},{id:"15"}]},createSettingsTreeTablePanel:function(e,t,n){var o=e.domNode.getElementsByClassName(this._SETTINGS_TREE)[0],r=this._createDataStore(t,n),a={features:[i.FEATURE.SingleRowSelection],columnModel:{columnConfig:[{label:" ",dataIndex:1,width:{value:40,unit:"%"}},{label:" ",dataIndex:2,width:{value:60,unit:"%"}}]}},s=new i(r,a);return o.appendChild(s.domNode),s.startup(),{settingsDataStore:r,settingsTable:s}},updateFullSettingsTreeTable:function(e,t,i){this._createSettingsData(t,i).forEach((function(t){e.update({id:t.myId},t)}))},syncDataStore2Configuration:function(e,t,i){e.getData(this._PROXY_ROWS).then(function(e){t.PublishOptions.set(this._OUTPUT_FILE_FORMAT,e[0].value),t.PublishOptions.set(this._OUTPUT_LOCATION,e[1].value),t.PublishOptions.set(this._STYLE_SHEET,e[2].value),t.PublishOptions.set(this._FIGURE_CAPTURE,e[3].value),t.PublishOptions.set(this._IMAGE_FORMAT,e[4].value),t.PublishOptions.set(this._USE_NEW_FIGURE,e[5].value),t.PublishOptions.set(this._MAX_WIDTH,e[6].value),t.PublishOptions.set(this._MAX_HEIGHT,e[7].value),t.PublishOptions.set(this._CREATE_THUMBNAIL,e[8].value),t.PublishOptions.set(this._SHOW_CODE,e[9].value),t.PublishOptions.set(this._EVALUATE_CODE,e[10].value),t.PublishOptions.set(this._CATCH_ERROR,e[11].value),t.PublishOptions.set(this._MAX_OUTPUT_LINES,e[12].value),i&&i()}.bind(this))},_createDataStore:function(i,n){var o={rowDataType:"OBJECT",getId:function(e){return e.myId},setId:function(e,t){e.myId=t},getParentId:function(e){return e.myParentId},setParentId:function(e,t){e.myParentId=t},metaDataColumns:["myId","myParentId"],columnMap:["myId","label","value"],type:t.TREETABLE},r=this._createSettingsData(i,n),a=e.create(r,o);return a.expandAll(),a},_createSettingsData:function(e,t){var i=e.PublishOptions.get(this._OUTPUT_LOCATION)?e.PublishOptions.get(this._OUTPUT_LOCATION):t;return[{myId:"0",label:n.outputSettings,value:"",myParentId:null},{myId:"1",label:n.outputFileFormat,value:e.PublishOptions.get(this._OUTPUT_FILE_FORMAT),myParentId:"0"},{myId:"2",label:n.outputFolder,value:i,myParentId:"0"},{myId:"3",label:n.xslFile,value:e.PublishOptions.get(this._STYLE_SHEET),myParentId:"0"},{myId:"4",label:n.figureSettings,value:"",myParentId:null},{myId:"5",label:n.figureCalculation,value:e.PublishOptions.get(this._FIGURE_CAPTURE),myParentId:"4"},{myId:"6",label:n.imageFormat,value:e.PublishOptions.get(this._IMAGE_FORMAT),myParentId:"4"},{myId:"7",label:n.useNewFigure,value:e.PublishOptions.get(this._USE_NEW_FIGURE),myParentId:"4"},{myId:"8",label:n.maxImgWidth,value:e.PublishOptions.get(this._MAX_WIDTH),myParentId:"4"},{myId:"9",label:n.maxImgHeight,value:e.PublishOptions.get(this._MAX_HEIGHT),myParentId:"4"},{myId:"10",label:n.createThumbnail,value:e.PublishOptions.get(this._CREATE_THUMBNAIL),myParentId:"4"},{myId:"11",label:n.codeSettings,value:"",myParentId:null},{myId:"12",label:n.includeCode,value:e.PublishOptions.get(this._SHOW_CODE),myParentId:"11"},{myId:"13",label:n.evaluateCode,value:e.PublishOptions.get(this._EVALUATE_CODE),myParentId:"11"},{myId:"14",label:n.catchError,value:e.PublishOptions.get(this._CATCH_ERROR),myParentId:"11"},{myId:"15",label:n.maxOutputLines,value:e.PublishOptions.get(this._MAX_OUTPUT_LINES),myParentId:"11"}]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({PARENT:"parent",ROW:"row"})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(461),i(337),i(239)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(e){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return t._viewModel=e.viewModel,t._dataStore=e.dataStore,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),r(o,[{key:"eventList",value:function(){var e=this,t={};return t[i.internal.TREE_DISCLOSURE_CLICK]=function(t){return e._handleDisclosureClick(t.event)},t[i.internal.TREE_CELL_DOUBLE_CLICK]=function(t){return e._handleDisclosureClick(t.event)},t[i.protected.TABLE_CELL_CLICK]=function(t){return e._handleCellClick(t.event)},t}},{key:"exposedTreeTableAPIs",value:function(){return{expand:this.expand.bind(this),collapse:this.collapse.bind(this),expandAll:this.expandAll.bind(this),collapseAll:this.collapseAll.bind(this)}}},{key:"_handleCellClick",value:function(e){(e.ctrlKey||e.metaKey)&&e.shiftKey||this._viewModel.deleteState(t.treetable.POTENTIAL_ACTIVE_CELL)}},{key:"_handleDisclosureClick",value:function(e){e.node.isExpanded?this.collapseNode(e.node):this.expandNode(e.node)}},{key:"expandNode",value:function(e,t){var i=this;t=t||{updateActiveCell:!0},!e.isExpanded&&e.isExpandable&&this._dataStore.expand([e]).then((function(){var n={id:e.id};i.emit("expanded",n),t.updateActiveCell&&i._updateActiveCell(n)}))}},{key:"collapseNode",value:function(e,t){var i=this;t=t||{updateActiveCell:!0},e.isExpanded&&e.isExpandable&&this._dataStore.collapse([e]).then((function(){var n={id:e.id};i.emit("collapsed",n),t.updateActiveCell&&i._updateActiveCell(n)}))}},{key:"_updateActiveCell",value:function(e){var i=this,o=this._viewModel.getStateByKey(t.protected.ACTIVE_CELL);if(o&&o.value){var r={id:o.value.id};this._dataStore.getNode(r).then((function(a){if(a){var s=o.rangeList[0],l=n.range().setRows(a.index,a.index).setColumns(s.columns.start,s.columns.start);i._viewModel.setState(t.protected.ACTIVE_CELL,r,[l]),i._viewModel.deleteState(t.treetable.POTENTIAL_ACTIVE_CELL)}else i._dataStore.getNode(e).then((function(t){var r=o.rangeList[0],a=n.range().setRows(t.index,t.index).setColumns(r.columns.start,r.columns.start);i._updatePotentialActiveCell(e,a)}))}))}}},{key:"_updatePotentialActiveCell",value:function(e,i){var o=this,r=this._viewModel.getStateByKey(t.treetable.POTENTIAL_ACTIVE_CELL);r?(r=r.value,this._dataStore.getNode(r).then((function(a){var s=void 0;a?(s=n.range().setRows(a.index,a.index).setColumns(i.columns.start,i.columns.start),o._viewModel.setState(t.treetable.POTENTIAL_ACTIVE_CELL,r,[s])):o._dataStore.getNode(e).then((function(r){s=n.range().setRows(r.index,r.index).setColumns(i.columns.start,i.columns.start),o._viewModel.setState(t.treetable.POTENTIAL_ACTIVE_CELL,e,[s])}))}))):this._viewModel.setState(t.treetable.POTENTIAL_ACTIVE_CELL,e,[i])}},{key:"expand",value:function(e){if(!Array.isArray(e)||!e.length)throw new Error("Expected: non empty tree row idarray. Usage: treeTable.expand([{id: 'node1'}])");this._dataStore.expand(e)}},{key:"expandAll",value:function(){this._dataStore.expandAll()}},{key:"collapse",value:function(e){if(!Array.isArray(e)||!e.length)throw new Error("Expected: non empty tree row idarray. Usage: treeTable.collapse([{id: 'node1'}])");this._dataStore.collapse(e)}},{key:"collapseAll",value:function(){this._dataStore.collapseAll(),this._clearStatesAfterCollapseAll()}},{key:"_clearStatesAfterCollapseAll",value:function(){var e=this,i=this._viewModel.getStateByKey(t.protected.ACTIVE_CELL);i&&this._dataStore.getNode(i.value).then((function(i){i||e._viewModel.deleteState(t.protected.ACTIVE_CELL)}));var n=this._viewModel.getStateByKey(t.protected.PIVOT);n&&this._dataStore.getNode({id:n.value}).then((function(i){i||e._viewModel.deleteState(t.protected.PIVOT)})),this._viewModel.deleteState(t.treetable.POTENTIAL_ACTIVE_CELL),this._viewModel.deleteState(t.treetable.POTENTIAL_PIVOT)}},{key:"treeTableEmits",get:function(){return["expanded","collapsed"]}}]),o}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(974),i(848),i(636),i(392)],o=i.dj.d(n,(function(e,t,i,n){return function(){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o)}return r(o,null,[{key:"isKeyBindingInHandlerList",value:function(e,i,n){return!!(n&&i&&e)&&n.some((function(n){if(n&&n[t.KEY_CODE]&&n[t.KEY_HANDLER_NAME])return o.isKeyCodeEqual(e,n)&&n[t.KEY_HANDLER_NAME]===i}))}},{key:"isKeyCodeEqual",value:function(e,i){var o=!1;return o=Array.isArray(e)&&Array.isArray(i[t.KEY_CODE])?n.isArrayMatching(e,i[t.KEY_CODE]):i[t.KEY_CODE]===e,o}},{key:"isPlatformInTheList",value:function(e,t){return!(!e||!t)&&e.some((function(e){if(e)return e===t}))}},{key:"isThePlatformInObject",value:function(t,i){return!!(t&&Array.isArray(t)&&i)&&(t.includes(i)||t.includes(e.internal.ALL)||i===e.internal.ALL)}},{key:"findPropertyInTheObject",value:function(e,i,n){return!!(n&&i&&e)&&n.find((function(n){if(n&&n[t.KEY_CODE]&&n[t.KEY_HANDLER_NAME])return o.isKeyCodeEqual(e,n)&&n[t.KEY_HANDLER_NAME]===i}))}},{key:"findKeyCodeInTheList",value:function(e,i,n){return n.find((function(n){return n[t.KEY_CODE]===e&&o.isThePlatformInObject(n[t.PLATFORMS],i)}))}},{key:"getModifierLookupList",value:function(){return{altKey:!1,ctrlKey:!1,meta:!1,shiftKey:!1}}},{key:"getModifierKeyCodeState",value:function(e){return{ctrlKey:n.containsKeyCode(i.CTRL,e),shiftKey:n.containsKeyCode(i.SHIFT,e),altKey:n.containsKeyCode(i.ALT,e),meta:n.containsKeyCode(i.META,e)}}},{key:"getKeyCodeArray",value:function(e){var t=[];if(e){var i=!0,n=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;if(!o.keyCodeLookUpArray().includes(l)&&!o.getValidModifierList().includes(l))throw new Error("Invalid KeyBinding, Please refer to valid keycode in JSDoc");o.getValidModifierList().includes(l)||t.push(l)}}catch(e){n=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw r}}}return t}},{key:"getModifierKeyCodeList",value:function(e){var i=o.getModifierKeyCodeState(e),n=i.ctrlKey,r=i.shiftKey,a=i.altKey,s=i.meta,l=o.getModifierLookupList();for(var c in l)c===t.CTRL_KEY?l[c]=n:c===t.SHIFT_KEY?l[c]=r:c===t.ALT_KEY?l[c]=a:c===t.META&&(l[c]=s);return l}},{key:"keyCodeLookUpArray",value:function(){return[i.F2,i.ENTER,i.BACKSPACE,i.DELETE,i.ARROW_DOWN]}},{key:"getValidModifierList",value:function(){return[i.ALT,i.META,i.SHIFT,i.CTRL]}}]),o}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2238),i(2245),i(2244),i(2250),i(6699),i(6700),i(6701),i(6703),i(6705),i(6707),i(6709),i(2384),i(6711),i(2242),i(6713)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){"use strict";return Object.freeze({AVAILABLE:{CellFocus:[d,c],SingleRowSelection:[o,n,c,d],ColumnResize:e,DragAndDrop:p,MultiRowSelection:[r,c,d],ContextMenu:a,HeaderMenu:s,IndividualColumnSort:l,Search:i,ScrollSync:f},INTERNAL:{CheckboxTreetable:h},INCOMPATIBLE:[[r,o],[r,h]],CONTROLLERS:[[c,n],[u]]})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(212),i(327),i(239),i(461),i(337),i(392),i(1205),i(394)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){return function(){function c(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var t=new l;this._emit=t.emit.bind(t),this.on=t.on.bind(t),this.viewModel=e.viewModel,this.dataStore=e.dataStore}return r(c,[{key:"eventList",value:function(){var e=this,t={};return t[o.protected.TABLE_CELL_CLICK]=function(t){return e._emit(o.protected.CELL_SELECTION_CLICK,t.event)},t[o.internal.TREETABLE_KEY_PRESS]=function(t){return e._processAndEmitKeyPress(t)},t[o.internal.TREE_DISCLOSURE_CLICK]=function(t){return e._handleDisclosureClick(t.event)},t[o.protected.FORCE_LAYOUT]=function(){return e._emit(o.internal.EMIT_SELECTION_EVENT)},t}},{key:"_processAndEmitKeyPress",value:function(e){var t=e.event,i=t,n=a.getActiveCell(this.viewModel);i.modifiers=t,i.dataSize={},i.viewPort={},i.dataSize=e.dataSize,i.viewPort=e.viewPort.rangeList[0],i.row=n.rangeList[0].rows.start,i.node=n.value,this._emit(o.protected.CELL_SELECTION_KEY,i)}},{key:"_handleDisclosureClick",value:function(e){var t=this,o=this.viewModel.getStateByKey(n.protected.PIVOT);if(o&&o.value){var r=o.value;this.dataStore.getNode({id:r}).then((function(o){o||t.dataStore.getNode(e.node).then((function(e){var o=[i.range().setEntireRows(e.index,e.index)];t.viewModel.setState(n.treetable.POTENTIAL_PIVOT,e.node.id,t._getFittedRange(o))}))}))}}},{key:"_getFittedRange",value:function(e){var i=t.curry(s.fitRangeToBounds)(this.viewModel.dataSize.rows.end,this.viewModel.dataSize.columns.end);return e.map(i).filter((function(e){return null!=e}))}},{key:"_getPivotInView",value:function(){var t=this,i=new e,o=this.viewModel.getStateByKey(n.protected.PIVOT);return o&&o.value?this.dataStore.getNode({id:o.value}).then((function(e){var n=void 0,o=void 0;e?(n=e.index,o=e.node.id,i.resolve({id:o,index:n})):t._getPotentialPivot().then((function(e){n=e.potentialPivotRowIndex,o=e.potentialPivotId,i.resolve({id:o,index:n})}))})):i.resolve(!1),i.promise}},{key:"_getPotentialPivot",value:function(){var t=new e,i=this.viewModel.getStateByKey(n.treetable.POTENTIAL_PIVOT),o=void 0,r=void 0;return i?(o=i.rangeList[0].rows.start,r=i.value,t.resolve({potentialPivotRowIndex:o,potentialPivotId:r})):(o=this.viewModel.dataSize.rows.start,this._getPivotId(o).then((function(e){r=e,t.resolve({potentialPivotRowIndex:o,potentialPivotId:r})}))),t.promise}},{key:"_getPivotId",value:function(t){var n=new e,o=void 0,r=this.dataStore.getLocalRowMetaData(t);if(r&&r.id)o=r.id,n.resolve(o);else{var a=[i.range().setRows(t,t)];this.dataStore.getRowIds(a).then((function(e){o=e[0],n.resolve(o)}))}return n.promise}},{key:"setContiguousRows",value:function(e){var t=this;return this._getPivotInView().then((function(i){if(i){t._setPivot(i.id);var n=Math.min(i.index,e.rows.start),o=Math.max(i.index,e.rows.start);return t._setRangeSelection(n,o)}return t._getPivotId(t.viewModel.dataSize.rows.start).then((function(e){t._setPivot(e),t._setRangeSelection(t.viewModel.dataSize.rows.start,t.viewModel.dataSize.rows.start)}))}))}},{key:"setIndividualRow",value:function(e){var t=e?[e]:null;this._setPivot(e),this.setSelectionState(t)}},{key:"getRowIdForIndex",value:function(e){if(isNaN(e)||e<0)return Promise.resolve(void 0);var t=[i.range().setRows(e,e)];return this.dataStore.getRowIds(t).then((function(e){return e[0]}))}},{key:"setDiscontiguousRowByRange",value:function(e){var t=this;return this.dataStore.getRowIds([e]).then((function(e){if(e.length>0){var i=[e[0]];t.setDiscontiguousRow(i)}}))}},{key:"setDiscontiguousRow",value:function(e){this._setPivot(e);var t=this._getSelectedIdList(),i=this.isRowSelected(e);i>-1?t.splice(i,1):t.push(e),this.setSelectionState(t)}},{key:"isRowSelected",value:function(e){return this.getSelectedIdIndex(e)}},{key:"getSelectedIdIndex",value:function(e){return this._getSelectedIdList().indexOf(e)}},{key:"_getSelectedIdList",value:function(){var e=this.viewModel.getStateByKey(n.protected.SELECTED);return e?e.value:[]}},{key:"_setPivot",value:function(e){e&&(this.viewModel.setState(n.protected.PIVOT,e),this.viewModel.deleteState(n.treetable.POTENTIAL_PIVOT))}},{key:"_setRangeSelection",value:function(e,t){var i=this.viewModel.viewBuffer.rangeList[0].rows,n=i.start,o=i.end,r=e>=n&&t<=o,a=this.viewModel._rowMetaData._dataMetaData[0];return r?this._setRangeSelectionStateInViewBuffer(a,e,t):(this._setRangeSelectionStateWithInViewBuffer(a,e,t,n,o),this._setRangeSelectionStateForWholeView(e,t))}},{key:"_setRangeSelectionStateInViewBuffer",value:function(e,t,i){var n=this._getSelectionIdsInViewBuffer(e,t,i);this.setSelectionState(n)}},{key:"_setRangeSelectionStateWithInViewBuffer",value:function(e,t,i,n,o){var r=t>=n?t:n,a=i<=o?i:o,s=this._getSelectionIdsInViewBuffer(e,r,a);this.setSelectionState(s)}},{key:"_setRangeSelectionStateForWholeView",value:function(e,t){var n=this,o=Math.max(e,this.viewModel.dataSize.rows.start),r=Math.min(t,this.viewModel.dataSize.rows.end),a=[i.range().setRows(o,r)];return this.dataStore.getRowIds(a).then((function(e){n.setSelectionState(e)}))}},{key:"_getSelectionIdsInViewBuffer",value:function(e,t,i){for(var n=[],o=t;o<=i;o++)n.push(e(o).value.id);return n}},{key:"setSelectionState",value:function(e){Array.isArray(e)?(this.viewModel.setState(n.protected.SELECTED,e),0===e.length&&this.viewModel.setState(n.treetable.SELETION_CLEARED,!0)):(this.viewModel.setState(n.protected.SELECTED,[]),this.viewModel.deleteState(n.treetable.SELETION_CLEARED))}},{key:"getSelectionState",value:function(){var e=this.viewModel.getStateByKey(n.protected.SELECTED);return e&&e.value?e.value:[]}},{key:"emitSelectionEvtWhenDataPagesIntoView",value:function(e){var t=this.on(o.internal.EMIT_SELECTION_EVENT,(function(){e(),t.remove()}))}}]),c}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1206),i(6721)],o=i.dj.d(n,(function(e,t){"use strict";return t(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6739)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.backingstore","rtc.internaldocument","rtc.settings.service","rtc.code.codetextservice","rtc.id"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6748),i(6749),i(6750),i(6751)],o=i.dj.d(n,(function(e,t){return t(e,"matlab_preferences/l10n/nls/matlabPreferencePanel",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6753),i(6754),i(6755),i(6756)],o=i.dj.d(n,(function(e,t){return t(e,"matlab_preferences/l10n/nls/commandHistoryPreferencePanel",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6758),i(6759),i(6760),i(6761)],o=i.dj.d(n,(function(e,t){return t(e,"matlab_preferences/l10n/nls/generalPreferencePanel",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6764),i(6765),i(6766),i(6767)],o=i.dj.d(n,(function(e,t){return t(e,"matlab_preferences/l10n/nls/confirmationDialogPreferencePanel",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6770)],o=i.dj.d(n,(function(e,t){return t(e,"matlab_preferences/l10n/nls/simulinkPreferencePanel",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6772),i(6773),i(6774),i(6775)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/AutocodingPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6778),i(6779),i(6780),i(6781)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/AutoformattingPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6784)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/BackupPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(991),i(236),i(1570),i(922),i(1111),i(233),i(286),i(450),i(269),i(331),i(288),i(241),i(263),i(1571)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return{_ALL_CONFIGS:n.allConfigs,_ACTIVE_CONFIG:n.activeConfig,_MODIFIED_SETTINGS:n.modifiedSettings,_ACTIVE_CONFIGURATION_FILE:n.activeConfigurationFile,_PATH_TO_SETTING:n.pathToSetting,_DEFAULT_SETTINGS_LABEL:t.defaultSetting,_MODIFIED_DEFAULT_SETTINGS_LABEL:t.defaultSettingModified,createActiveSettingsCombobox:function(){return this._isPanelDestroyed=!1,this._activeSettingsComboBox=new s({tag:this._ACTIVE_CONFIG,items:[{label:t.defaultSetting,value:0},{label:t.browse,value:1}]}),this._activeSettingsComboBox.set("width","100%"),this._activeSettingsComboBox.set("value",0),this._activeSettingsComboBox.on("change",function(e){var t=e.mwEventData.newValue,i=e.mwEventData.oldValue,n=this.getFileInformation(i);o.getConfig(n).then(function(n){var o=f.getCurrentTreeConfig();this._hasConfigChanged(o,n)?this._showSaveConfigDialog(e):this._setNewConfig(i,t)}.bind(this))}.bind(this)),this._activeSettingsComboBox},createSettingsDropdown:function(){return this._settingDropDownMenu=new d({}),this._settingDropdownButton=new l({text:"",icon:"settings_16",menu:this._settingDropDownMenu,iconAlignment:"left"}),this._settingsDropdownSaveAs=new u({tag:t.settingsDropdownSaveAs,text:t.settingsDropdownSaveAs}),this._settingsDropdownRestoreDefaults=new u({tag:t.settingsDropdownRestoreDefaults,text:t.settingsDropdownRestoreDefaults}),this._settingDropDownMenu.addChild(this._settingsDropdownSaveAs),this._settingDropDownMenu.addChild(this._settingsDropdownRestoreDefaults),this._settingsDropdownRestoreDefaults.on("click",function(){this._restoreDefaults()}.bind(this)),this._settingsDropdownSaveAs.on("click",function(){this._handleSaveAsButtonResponse()}.bind(this)),this._settingDropdownButton},destroy:function(){this._isPanelDestroyed=!0,this._settingsDropdownSaveAs.destroy(),this._settingsDropdownRestoreDefaults.destroy()},_hasConfigChanged:function(e,t){if(e.length!==t.length)return!0;for(var i=[],n=[],o=0;o<e.length;o++)i.push(e[o].id),n.push(t[o].id);for(o=0;o<e.length;o++)if(!i.includes(n[o]))return!0;return!1},_handleSaveAsButtonResponse:function(){var e=f.getCurrentTreeConfig(),t=this._activeSettingsComboBox.get("value"),i=this._getActiveSettingsFile(t);o.writeConfigToFileFromPicker(i,e,p).then(function(e){void 0!==e&&(this._addActiveSettingsDropDownItem(e),this.commitAllConfigSettingValue(),this.updateActiveSettingsComboboxLabel(this._DEFAULT_SETTINGS_LABEL))}.bind(this)),0===t&&this._updateDefaultSettingsLabel()},setDefaultConfigFileName:function(){return r.getPreferenceDirectory().then(function(e){r.checkFileSeparator(e),this._DEFAULT_CONFIG_FILE_NAME=e+r.fileSeparator+"MLintDefaultSettings.txt"}.bind(this))},_showSaveConfigDialog:function(n){var o=this._returnLabelForGivenValue(n.mwEventData.oldValue),r=i.substitute(t.saveChangesTo,{fileName:o});h.displayConfirmDialog(t.codeAnalyzerPreferences,r,{buttonText:[t.yesButton,t.noButton,t.cancelButton],icon:"warning",defaultAcceptButton:1,closeCallback:e.hitch(this,"_handleSaveConfigDialogResponse",n)})},_handleSaveConfigDialogResponse:function(e,t){var i=e.mwEventData.oldValue,n=e.mwEventData.newValue;3===t.response?this._activeSettingsComboBox.set("value",i):(1===t.response?this.updateConfigInTextFile(i):0===i&&p.getSetting(this._PATH_TO_SETTING,this._MODIFIED_SETTINGS).then(function(e){e.value.length>0?this.updateActiveSettingsComboboxLabel(this._MODIFIED_DEFAULT_SETTINGS_LABEL):this.updateActiveSettingsComboboxLabel(this._DEFAULT_SETTINGS_LABEL)}.bind(this)),this._setNewConfig(i,n))},_restoreDefaults:function(){f.updateTree([]),this.checkAndUpdate()},checkAndUpdate:function(){0===this._activeSettingsComboBox.get("value")&&this._updateDefaultSettingsLabel()&&this._activeSettingsComboBox.set("value",0),this._checkToUpdateRestoreDefaultsButton()},_checkToUpdateRestoreDefaultsButton:function(){var e=!f.getCurrentTreeConfig().length;this.restoreDefaultsButtonStateChange(e)},_checkBrowsedFileAlreadyOpened:function(e,t){for(var i=-1,n=0;n<t.length;n++)t[n].label===e&&(i=t[n].value,n=t.length);return i},_getAllConfigNamesFromActiveSettings:function(){for(var e=this._DEFAULT_CONFIG_FILE_NAME,t=this._activeSettingsComboBox.items,i=0;i<t.length;i++)0!==t[i].value&&1!==t[i].value&&(e=e+";"+t[i].label);return e},commitAllConfigSettingValue:function(){var e=this._getAllConfigNamesFromActiveSettings();p.setSetting(this._PATH_TO_SETTING,this._ALL_CONFIGS,e)},_setNewConfig:function(e,t){if(this._settingsDropdownRestoreDefaults.set("disabled",!0),1===t){let t=this.getFileInformation(e);o.getConfigFromFileFromPicker(t.location).then(t=>{this._addNewConfig(t,e)},t=>{this._handleAddNewConfigError(t,e)}).then(()=>{this._checkToUpdateRestoreDefaultsButton()})}else{let i=this.getFileInformation(t);o.getConfig(i).then(n=>{this._setActiveSettingsValue(n,i,e,t)},n=>{this._setActiveSettingsValueOnError(n,i,e,t)}).then(()=>{this._checkToUpdateRestoreDefaultsButton()})}},_alertAndSetOldConfig:function(e,t){this._displayAlertDialog(e),this._activeSettingsComboBox.set("value",t)},_addNewConfig:function(e,t){let i=e.config,n=e.file;f.checkConfigAndUpdateTree(i),f.VALID_DATA?n===this._DEFAULT_CONFIG_FILE_NAME?this._activeSettingsComboBox.set("value",0):(this._addActiveSettingsDropDownItem(n),this.commitAllConfigSettingValue()):this._alertAndSetOldConfig(n,t)},_handleAddNewConfigError:function(e,t){this._activeSettingsComboBox.set("value",t)},_setActiveSettingsValue:function(e,t,i,n){if(null!==e)f.updateTree(e),0===n&&this._updateDefaultSettingsLabel(),this._activeSettingsComboBox.set("value",n);else{let e=a.pathFromFileInfo(t);this._alertAndSetOldConfig(e,i)}},_setActiveSettingsValueOnError:function(e,t,i,n){this._removeItemFromActiveSettings(n),this._showErrorDialog(t.name),this._activeSettingsComboBox.set("value",i)},_displayAlertDialog:function(e){var n=i.substitute(t.alertMessage,{fileName:e});h.displayAlertDialog(t.codeAnalyzerTitle,n)},_showErrorDialog:function(e){var n=i.substitute(t.fileDoesNotExist,{fileName:e});h.displayConfirmDialog(t.codeAnalyzerTitle,n,{buttonText:[t.okButton],icon:"error",defaultAcceptButton:1})},updateActiveSettingsComboboxLabel:function(e){var t=this._activeSettingsComboBox.items;t[0].label=e,this._activeSettingsComboBox.set("items",t)},updateDropdownItems:function(e,t){return e.forEach(function(e){this._addActiveSettingsDropDownItem(e)}.bind(this)),this._activeSettingsComboBox.set("value",t),this._getActiveSettingsFile(t)},defaultSettingsLabelModification:function(){var e=a.fileInfoFromPath(this._DEFAULT_CONFIG_FILE_NAME);o.getConfig(e).then(function(e){var t=this._activeSettingsComboBox.items;0===e.length?t[0].label=this._DEFAULT_SETTINGS_LABEL:t[0].label=this._MODIFIED_DEFAULT_SETTINGS_LABEL,this._activeSettingsComboBox.set("items",t)}.bind(this))},_addActiveSettingsDropDownItem:function(e){var t=this._activeSettingsComboBox.items,i=this._checkBrowsedFileAlreadyOpened(e,t);if(-1===i){var n={label:e,value:t.length};t.push(n),this._activeSettingsComboBox.set("items",t),this._activeSettingsComboBox.set("value",t.length-1);var o=t.splice(t.length-1,1);t.splice(1,0,o[0]),this._activeSettingsComboBox.set("items",t),this._activeSettingsComboBox.set("value",t.length-1),t.length-1}else this._activeSettingsComboBox.set("value",i)},_removeItemFromActiveSettings:function(e){for(var t=-1,i=this._activeSettingsComboBox.items,n=0;n<i.length;n++)i[n].value===e&&(t=n,n=i.length);this._activeSettingsComboBox.items.splice(t,1)},updateConfigInTextFile:function(e){void 0===e&&(e=this._activeSettingsComboBox.get("value"));var t=this.getFileInformation(e);f.writeInfile(t.location,t.name,p)},_returnLabelForGivenValue:function(e){for(var t="",i=this._activeSettingsComboBox.items,n=0;n<i.length;n++)i[n].value===e&&(t=i[n].label,n=i.length);return t},_getActiveSettingsFile:function(e){return 0===e?this._DEFAULT_CONFIG_FILE_NAME:this._returnLabelForGivenValue(e)},_updateDefaultSettingsLabel:function(){var e=this._returnLabelForGivenValue(0),t=!1,i=f.getCurrentTreeConfig();return 0!==i.length&&e!==this._MODIFIED_DEFAULT_SETTINGS_LABEL?(this.updateActiveSettingsComboboxLabel(this._MODIFIED_DEFAULT_SETTINGS_LABEL),t=!0):0===i.length&&e!==this._DEFAULT_SETTINGS_LABEL&&(this.updateActiveSettingsComboboxLabel(this._DEFAULT_SETTINGS_LABEL),t=!0),t},_updateRestoreDefaultsButton:function(e){e===this._MODIFIED_DEFAULT_SETTINGS_LABEL?this._settingsDropdownRestoreDefaults.set("disabled",!1):e===this._DEFAULT_SETTINGS_LABEL&&this._settingsDropdownRestoreDefaults.set("disabled",!0)},restoreDefaultsButtonStateChange:function(e){this._settingsDropdownRestoreDefaults.set("disabled",e)},getFileInformation:function(e){var t=this._getActiveSettingsFile(e);return a.fileInfoFromPath(t)},getValue:function(){return this._activeSettingsComboBox.get("value")},updateTreeOnExternalUpdate:function(){this._isPanelDestroyed||p.getSetting(this._PATH_TO_SETTING,this._ACTIVE_CONFIG).then(function(e){var t=this.getValue();e.value===t&&(this._setNewConfig(e.value,e.value),this._activeSettingsComboBox.set("value",e.value))}.bind(this))},commitActiveSettingsValue:function(){var e=this.getValue();p.setSetting(this._PATH_TO_SETTING,this._ACTIVE_CONFIG,e)},commitActiveConfigurationFileSettingsValue:function(){var e=this.getValue(),t=this._getActiveSettingsFile(e);p.setSetting(this._PATH_TO_SETTING,this._ACTIVE_CONFIGURATION_FILE,t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6800),i(6801),i(6802),i(6803)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/CodeFoldingPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6807),i(6808),i(6809),i(6810)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/ColorsPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){this._subsystemId=e},getSubsystemId:function(){return this._subsystemId}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(1576)],o=i.dj.d(n,(function(e,t){class i extends e{constructor(e){super(),this._subSystemMembersId=e}isApplicable(){return!0}requires(){return{createInstance:[this._subSystemMembersId]}}createInstance(e){return e}}return{make:function(e){var n=t.getMembersId(e);return new i(n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6823),i(6825),i(6827),i(6829),i(6831),i(6833),i(6834),i(6836),i(6839),i(6841),i(6842),i(6844),i(6845),i(6847),i(6848),i(6849),i(6850),i(6852),i(6854),i(6856),i(6857),i(6860),i(6864),i(6866),i(6868),i(6872),i(6874),i(6875),i(6877),i(6879),i(6881),i(6883),i(6885),i(6887),i(6889),i(6892),i(6894),i(6896),i(6898),i(6900),i(6902),i(6904),i(6906),i(6911),i(6913),i(6915),i(6916),i(6918),i(6920),i(6922),i(6926),i(6927),i(6929),i(6931),i(6933),i(6934),i(6936),i(6938),i(6940),i(6943),i(6945),i(6947),i(6951),i(6953),i(6955),i(6956),i(6958),i(6960),i(6962),i(6964),i(6965),i(6966),i(6968),i(6969),i(6971),i(6973),i(6975),i(6978),i(6980),i(6982),i(6984),i(6986),i(6990),i(6992),i(6994),i(6996),i(6999),i(7001),i(7003),i(7005),i(7007)],o=i.dj.d(n,(function(){return{plugins:[{id:"rtc.actionservice",path:"rtc/actiondataservice/ActionDataServiceProvider"},{id:"rtc.actionservice.synchronizer",path:"rtc/actiondataservice/ActionDataServiceSynchronizerProvider",isSharedPlugin:!0},{id:"rtc.actionservice.external.destroynotifier",path:"rtc/actiondataservice/DefaultActionDataServiceDestroyNotifierProvider",isSharedPlugin:!0},{id:"rtc.actionservice.external.filter",path:"rtc/actiondataservice/DefaultActionDataServiceSynchronizerFilterProvider",isSharedPlugin:!0},{id:"rtc.actionservice.external.converter",path:"rtc/actiondataservice/DefaultActionDataServiceSynchronizerConverterProvider",isSharedPlugin:!0},{id:"rtc.actions.cursor",path:"rtc/cursor/CursorActionsProvider",family:"cursor"},{id:"rtc.actions.document",path:"rtc/model/DocumentActionsProvider",family:"document"},{id:"rtc.insertbreak",path:"rtc/plugins/insertbreak/InsertBreakProvider",family:"document"},{id:"rtc.code.codetextservice",path:"rtc/plugins/code/CodeTextServiceProvider",isSharedPlugin:!0},{id:"rtc.cursor",path:"rtc/cursor/CursorProvider",family:"cursor"},{id:"rtc.cursor.navigator",path:"rtc/cursor/CursorNavigatorProvider"},{id:"rtc.cursor.view",path:"rtc/cursor/CursorViewProvider"},{id:"rtc.cursorcontroller",path:"rtc/cursor/CursorControllerProvider",family:"cursor"},{id:"rtc.divcaret",path:"rtc/plugins/view/divcaret/DivCaretPluginProvider"},{id:"rtc.divselection",path:"rtc/plugins/view/divselection/DivSelectionPluginProvider"},{id:"rtc.divselection.renderer",path:"rtc/plugins/view/divselection/DivSelectionRendererProvider"},{id:"rtc.document",path:"rtc/model/DocumentProvider",family:"document"},{id:"rtc.document.changenotifier",path:"rtc/model/document/DocumentChangeNotifierProvider",family:"document",isSharedPlugin:!0},{id:"rtc.document.editblockcontroller",path:"rtc/model/document/DocumentEditBlockControllerProvider",family:"document",isSharedPlugin:!0},{id:"rtc.document.info",path:"rtc/model/document/DocumentInfoProvider",family:"document",isSharedPlugin:!0},{id:"rtc.document.modification",path:"rtc/model/document/DocumentModificationControllerProvider",family:"document",isSharedPlugin:!0},{id:"rtc.document.eventcache",path:"rtc/model/document/DocumentEventCacheProvider",family:"document",isSharedPlugin:!0},{id:"rtc.eventhandler",path:"rtc/plugins/events/EventHandlerProvider"},{id:"rtc.focusmanager",path:"rtc/plugins/core/FocusManagerProvider",isSharedPlugin:!0},{id:"rtc.focusnotifier",path:"rtc/plugins/view/focus/FocusNotifierProvider"},{id:"rtc.focusservice",path:"rtc/plugins/service/FocusServiceProvider",subsystem:"rtc.focusables",requiredForSubsystem:!0},{id:"rtc.insertionruleservice",path:"rtc/plugins/insertionrules/InsertionRuleServiceProvider",isSharedPlugin:!0},{id:"rtc.insertionrules.linenode",path:"rtc/nodes/insertionrules/LineNodeInsertionRulesProvider",subsystem:"rtc.insertionrule",isSharedPlugin:!0,requiredForSubsystem:!0},{id:"rtc.insertionrules.opaque",path:"rtc/nodes/insertionrules/OpaqueNodeInsertionRulesProvider",subsystem:"rtc.insertionrule",isSharedPlugin:!0,requiredForSubsystem:!0},{id:"rtc.insertionrules.plaintextnode",path:"rtc/nodes/insertionrules/PlainTextNodeInsertionRulesProvider",subsystem:"rtc.insertionrule",isSharedPlugin:!0,requiredForSubsystem:!0},{id:"rtc.internaldocument",path:"rtc/model/InternalDocumentProvider",isSharedPlugin:!0},{id:"rtc.keyhandler",path:"rtc/events/KeyHandlerProvider"},{id:"rtc.keyhandler.alternateActionServiceSupport",path:"rtc/events/keybindings/AlternateActionServiceSupportProvider",isSharedPlugin:!0},{id:"rtc.keyhandler.keyboardshortcutsmodel",path:"rtc/events/KeyboardShortcutsModelProvider",isSharedPlugin:!0},{id:"rtc.keyhandler.multistrokeshortcuts",path:"rtc/events/MultistrokeShortcutsProvider"},{id:"rtc.linenumberservice",path:"rtc/plugins/service/LineNumberServiceProvider",isSharedPlugin:!0},{id:"rtc.nodes.contentconverter",path:"rtc/nodes/contentconverter/ContentConverterPluginProvider",isSharedPlugin:!0},{id:"rtc.nodes.contentconverter.linenodeconverter",path:"rtc/nodes/contentconverter/inner/LineNodeContentConverterProvider",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0,requiredForSubsystem:!0},{id:"rtc.nodes.contentconverter.plaintextnodeconverter",path:"rtc/nodes/contentconverter/leaf/PlainTextNodeContentConverterProvider",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0,requiredForSubsystem:!0},{id:"rtc.nodes.contentconverter.rootnodeconverter",path:"rtc/nodes/contentconverter/inner/RootNodeContentConverterProvider",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0,requiredForSubsystem:!0},{id:"rtc.position.controller",path:"rtc/model/PositionControllerProvider",isSharedPlugin:!0},{id:"rtc.view",path:"rtc/view/ViewProvider",family:"view"},{id:"rtc.view.actions",path:"rtc/view/ViewActionsProvider",family:"view"},{id:"rtc.viewready",path:"rtc/plugins/core/ViewReadyServiceProvider"},{id:"rtc.view.coordinateconverter",path:"rtc/view/coordinateconverter/CoordinateConverterProvider"},{id:"rtc.view.coordinateconverter.converter.plaintext",path:"rtc/view/coordinateconverter/PlainTextCoordinateConverterProvider",subsystem:"rtc.view.coordinateconverter.converter",requiredForSubsystem:!0},{id:"rtc.view.coordinateconverter.converter.root",path:"rtc/view/coordinateconverter/RootCoordinateConverterProvider",subsystem:"rtc.view.coordinateconverter.converter",requiredForSubsystem:!0},{id:"rtc.view.decoration",path:"rtc/view/decoration/DecorationProvider"},{id:"rtc.view.decoration.pendinginlinedecoration",path:"rtc/view/decoration/DecorationPendingInlineDecorationProvider"},{id:"rtc.view.decoration.descriptorsstore",path:"rtc/view/decoration/viewmodel/DecorationDescriptorsStoreProvider"},{id:"rtc.view.decoration.layerviewmodel",path:"rtc/view/decoration/viewmodel/DecorationLayerViewModelProvider"},{id:"margin.linehighlight.decorator",path:"rtc/view/decoration/LayerDecoratorMarginDecoratorProvider",subsystem:"margin.shared.decorations",requiredForSubsystem:!0},{id:"rtc.view.decoration.viewmodel",path:"rtc/view/decoration/viewmodel/DecorationViewModelProvider"},{id:"rtc.view.hidden.hiddennodemodel",path:"rtc/view/hidden/HiddenNodeModelProvider"},{id:"rtc.view.layoutmanager",path:"rtc/plugins/view/layoutmanager/LayoutManagerProvider"},{id:"rtc.view.layoutmanager.layouters.line",path:"rtc/plugins/view/layoutmanager/layouters/LineLayouterProvider",subsystem:"rtc.view.layoutmanager.layouter",requiredForSubsystem:!0},{id:"rtc.view.layoutmanager.layouters.plaintext",path:"rtc/plugins/view/layoutmanager/layouters/PlainTextLayouterProvider",subsystem:"rtc.view.layoutmanager.layouter",requiredForSubsystem:!0},{id:"rtc.view.layoutmanager.layouters.root",path:"rtc/plugins/view/layoutmanager/layouters/RootLayouterProvider",subsystem:"rtc.view.layoutmanager.layouter",requiredForSubsystem:!0},{id:"rtc.view.layoutmanager.rules.default",path:"rtc/plugins/view/layoutmanager/rules/DefaultRuleProvider",subsystem:"rtc.view.layoutmanager.rule",family:"layoutrules"},{id:"rtc.view.rangeconverter",path:"rtc/view/rangeconverter/RangeConverterProvider"},{id:"rtc.view.rangeconverter.converter.plaintext",path:"rtc/view/rangeconverter/PlainTextRangeConverterProvider",subsystem:"rtc.view.rangeconverter.converter",requiredForSubsystem:!0},{id:"rtc.view.styles.globalstylechanger",path:"rtc/view/styles/GlobalStyleChangerProvider",isSharedPlugin:!0},{id:"rtc.view.viewmeasurementservice",path:"rtc/view/ViewMeasurementServiceProvider"},{id:"rtc.view.viewmodel",path:"rtc/view/ViewModelProvider"},{id:"rtc.undoredo.action",family:"undoredo",path:"rtc/plugins/undoredo/UndoRedoActionProvider"},{id:"rtc.undoredo.controller",family:"undoredo",path:"rtc/plugins/undoredo/UndoRedoControllerProvider",isSharedPlugin:!0},{id:"rtc.undoredo.cursor",family:"undoredo",path:"rtc/plugins/undoredo/UndoRedoCursorProvider",isSharedPlugin:!0},{id:"rtc.undoredo.editblock",family:"undoredo",path:"rtc/plugins/undoredo/EditBlockControllerProvider",isSharedPlugin:!0},{id:"rtc.margin",path:"rtc/plugins/margin/MarginContainerProvider"},{id:"margin.linenumber",path:"rtc/plugins/margin/LineNumberMarginProvider",subsystem:["rtc.left.margin","hideallcodeplugins"]},{id:"margin.linenumberdecorator",path:"rtc/margin/TraditionalLineNumberDecoratorProvider"},{id:"rtc.linenumberpreference",path:"rtc/margin/settings/LineNumberPreferenceProvider",family:"linenumbersupport"},{id:"rtc.clipboard",path:"rtc/clipboardservice/ClipboardProvider"},{id:"rtc.nodeconversionrulesservice",path:"rtc/plugins/nodeconversionrules/NodeConversionRulesServiceProvider"},{id:"rtc.nodeconversionrules.node",path:"rtc/nodes/nodeconversionrules/NodeConversionRulesProvider",subsystem:"rtc.nodeconversionrule",requiredForSubsystem:!0},{id:"rtc.nodeconversionrules.innernode",path:"rtc/nodes/nodeconversionrules/InnerNodeConversionRulesProvider",subsystem:"rtc.nodeconversionrule",requiredForSubsystem:!0},{id:"rtc.contextmenu.documentcontributor",path:"rtc/plugins/contextmenu/DocumentContextMenuContributorProvider",family:"contextmenu",subsystem:"contextmenucontributor"},{id:"rtc.backingstore",path:"rtc/datamodel/DefaultBackingStoreProvider",isSharedPlugin:!0},{id:"rtc.plugins.cursorgripper",path:"rtc/plugins/cursorgripper/CursorGripperProvider"},{id:"rtc.view.movehiddenkeycapture",path:"rtc/plugins/view/movehiddenkeycapture/MoveHiddenKeyCaptureProvider"},{id:"rtc.serializers",path:"rtc/model/io/SerializersProvider"},{id:"rtc.serializers.containers.codecontainer",path:"rtc/model/io/serializers/providers/containers/CodeContainerSerializerProvider",subsystem:"rtc.serializer",requiredForSubsystem:!0,family:"rtc.serializers.serialize"},{id:"rtc.serializers.nodes.plaintext",path:"rtc/model/io/serializers/providers/nodes/PlainTextSerializerProvider",subsystem:"rtc.serializer",requiredForSubsystem:!0,family:"rtc.serializers.serialize"},{id:"rtc.tooltip",path:"rtc/plugins/tooltip/TooltipPluginContainerProvider"},{id:"rtc.imeinput",path:"rtc/plugins/imeinput/IMEInputProvider"},{id:"rtc.shadowtextservice",path:"rtc/plugins/shadowtext/ShadowTextServiceProvider"},{id:"rtc.plaintextmimeconverter",path:"rtc/plugins/cutcopypaste/mime/PlainTextMimeConverterProvider",subsystem:"rtc.cutcopypaste.mimeconverters"},{id:"rtc.plaintextmimeincodeconverter",path:"rtc/plugins/cutcopypaste/mime/PlainTextMimeInCodeConverterProvider",subsystem:"rtc.cutcopypaste.mimeconverters"},{id:"rtc.unicodestringmimeconverter",path:"rtc/plugins/cutcopypaste/mime/UnicodeStringMimeConverterProvider",subsystem:"rtc.cutcopypaste.mimeconverters"},{id:"rtc.plaintextmimegeneratorprovider",path:"rtc/plugins/cutcopypaste/PlainTextMimeGeneratorProvider"},{id:"rtc.cutcopypaste.converter",family:"rtc.cutcopypaste",path:"rtc/plugins/cutcopypaste/ClipboardConverterProvider"},{id:"rtc.plugins.device.ios.virtualkeyboardshortcutbar",path:"rtc/plugins/device/ios/VirtualKeyboardShortcutBarProvider"}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(208),i(257),i(207),i(237),i(270),i(313),i(266),i(333),i(401),i(379),i(334),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e(r,{_MISSING_SELECTION_ERROR:"Expected a selection when using this API.",NONE:0,LEFT:1,RIGHT:2,UP:3,DOWN:4,START:5,END:6,LINE_START:7,LINE_START_POS1:8,LINE_END:9,WORD_LEFT:10,WORD_RIGHT:11,WORD_RIGHT_EXCL:12,PAGE_UP:13,PAGE_DOWN:14,KEEP_ANCHOR:15,KEYBOARD_SELECT:16,MOUSE_SELECT:20,MOUSE_DSELECT:21,MOUSE_TSELECT:22,DELETE:23,EVENT_OUTSIDE:24,DOUBLE_CLICK_TIME:400,constructor:function(e,i,o,r,a){this._internalDocument=e,this._view=i,this._cursorNavigator=r,this.position=new s,this.anchor=new s,this._offsetInLine=null,this._pageYOffset={dir:this.NONE,offset:-1},this._preservedSelection={},this._fileEndSelected=!o&&null,this._currentAction=null,this._selectionAutoScrollTimer=null,this._scrollLater=!1,this._suspendChangeEvent=!1,this._pendingChangeEvent=!1,this._initialized=!1,this.own(n.before(this._internalDocument,"onDocumentReset",t.hitch(this,"_reInitializeCursor"))),this.own(n.after(this._internalDocument,"onDocumentReset",t.hitch(this,"onUpdate"))),this.own(n.after(a,"onViewReady",t.hitch(this,"_reInitializeCursor")))},initialize:function(){this._initialized||this._reInitializeCursor(),this.onUpdate()},_reInitializeCursor:function(e){this.releaseAnchor(),this._setPosition(this._internalDocument.startNode().startPosition()),this.position.setLive(!0),this._positionChangeListener||(this._positionChangeListener=n.after(this.position,"onChange",t.hitch(this,"_onPositionChange")),this.own(this._positionChangeListener)),this._clearCurrentAction(),this._initialized=!0},onChange:function(){},onUpdate:function(e,t){if(e||(this._scrollLater=!!this.isHidden()),this.position.isValid()){var i=this._positionHasChanged||this._selectionHasChanged,n=e||!this.isHidden();!1!==t&&(t||n&&i)&&(this._suspendChangeEvent?this._pendingChangeEvent=!0:this.onChange(),this._positionHasChanged=!1,this._selectionHasChanged=!1)}},suspendChangeEvent:function(){this._suspendChangeEvent=!0},activateChangeEvent:function(e){this._suspendChangeEvent=!1,this._pendingChangeEvent&&!e&&this.onChange(),this._pendingChangeEvent=!1},_onPositionChange:function(){this._positionHasChanged=!0},hide:function(){this._clearCurrentAction(),this._hidden=!0,this.onUpdate(!0)},show:function(e,t){e=e||!this._scrollLater,this._hidden&&(this._hidden=!1,this._clearCurrentAction(),this.onUpdate(e,t))},adjustSelection:function(e,t){var i;e.isLocal||!0!==t&&e.startNode.textContainer()!==e.endNode.textContainer()||(e.startPos>0&&e.startPos===e.startNode.maxOffset()&&(i=t||e.startNode.parent.containsTextNodes()?e.startNode.nextNode():e.startNode.nextSibling())&&(i.containsTextNodes()&&(i=i.startNode()),(e.endPos>0||i!==e.endNode)&&(e.startNode=i,e.startPos=0)),0!==e.endPos||this._fileEndSelected||(i=t||e.endNode.parent.containsTextNodes()?e.endNode.prevNode():e.endNode.previousSibling())&&(i.containsTextNodes()&&(i=i.endNode()),e.endNode=i,e.endPos=i.maxOffset()),e.isLocal=e.startNode===e.endNode);return e.startPosition=new s(e.startNode,e.startPos),e.endPosition=new s(e.endNode,e.endPos),e},collapseSelection:function(){this.hasSelection()&&(this.releaseAnchor(),this.onUpdate(!0))},fixAnchor:function(e){!0!==e&&this.anchor.getNode()||(this.anchor.setPosition(this.getNode(),this.getOffset()),this.anchor.setLive(!0))},hideSelection:function(){this._hideSelection=!0,this.onUpdate(!0)},internalCollapseSelection:function(e){if(this.hasSelection()){var t=!this.isReversed();(t&&e===this.LEFT||!t&&e===this.RIGHT)&&this._setPosition(this.anchor)}this.releaseAnchor()},onDoubleClick:function(){this.selectWordUnderCursor()},onTripleClick:function(){this.selectLine(-1,!0)},releaseAnchor:function(){if(this.anchor.node){this.anchor.setLive(!1);var e=this.anchor.node!==this.position.node||this.anchor.offset!==this.position.offset;this._selectionHasChanged=this._selectionHasChanged||e}this.anchor.node=null,this.anchor.offset=0,null!==this._fileEndSelected&&(this._fileEndSelected&&(this._selectionHasChanged=!0),this._fileEndSelected=!1)},selectAll:function(){var e=this._internalDocument.startNode(),t=this._internalDocument.endNode();if(e&&t){if(null===this._fileEndSelected&&e===t&&e.isEmpty())return!1;var i=new s(e,0),n=new s(t,t.maxOffset()),o=new u(i,n,!1,!0);return this.setSelection(o),!0}return!1},selectLine:function(e,t,i){if(this.suspendChangeEvent(),e>0){a.checkLineColumnExists(this._internalDocument,e,1);const t=this._internalDocument.getPositionForLineColumn(e,1);i||this.releaseAnchor(),this.setPosition(t.getNode(),t.getOffset())}this.movePosition(this.LINE_START_POS1,i),t?(this._offsetInLine=0,this.movePosition(this.DOWN,this.KEEP_ANCHOR)):this.movePosition(this.LINE_END,this.KEEP_ANCHOR),this.activateChangeEvent()},selectWordUnderCursor:function(){this.suspendChangeEvent();var e=this.getOffset(),t=this.getNode().getText();null!==this._fileEndSelected&&0===e&&a.isAtEndOfFile(this.position)?(this._fileEndSelected||(this._selectionHasChanged=!0),this._fileEndSelected=!0):0===t.trim().length&&this.getNode().isTextNode()||this._selectWordUnderCursor(),this.activateChangeEvent(),this.onUpdate(!1)},setSelection:function(e,t){var i=e.getStartPosition(),n=e.getEndPosition();if(i=i.getNode().getPositionFromOffset(i.getOffset()),n=n.getNode().getPositionFromOffset(n.getOffset()),e.isReversed()){var o=i;i=n,n=o}this.position.isEqualTo(n)&&this.anchor.isEqualTo(i)||(this._selectionHasChanged=!0,this._setAnchor(i),this._setPosition(n),this._setFileEndSelected(e.fileEndSelected()),this.onUpdate(!t))},setSelectionFromCoordinates:function(e){var t=this._view.getLineColumnFromCoordinate(e.startCoords),i=this._view.getLineColumnFromCoordinate(e.endCoords);this.setSelectionLineColumn(t.line,t.column,i.line,i.column)},setSelectionLineColumn:function(e,t,i,n,o){a.checkLineColumnExists(this._internalDocument,e,t),a.checkLineColumnExists(this._internalDocument,i,n);var r=this._internalDocument.getPositionForLineColumn(e,t),s=this._internalDocument.getPositionForLineColumn(i,n),l=new u(r,s,!1,!1);this.setSelection(l,!o)},showSelection:function(){this._hideSelection=!1,this.onUpdate(!0)},_isAtNextWord:function(){var e=this.getOffset(),t=this.getNode().getText(),i=0===e,n=this.getNode().previousSibling(),o=this.getNode().isOpaqueNode(),r=this.getNode().textContainer(),a=r.getText(),s=0===t.length?0:e,l=this.getNode().offsetInContainer(r)+s,c=a.substring(l-1,l).match(/\s/),d=a.substring(l,l+1).match(/\S/);return i&&(!n||o)||!i&&c&&d},_releaseAnchorIfNoSelection:function(){this.hasAnchor()&&this.position.isEqualTo(this.anchor)&&!this._fileEndSelected&&this.releaseAnchor()},_selectWordUnderCursor:function(){var e=null;if(this._isAtNextWord()){var t=a.getWordBoundary(1,this.position.getNode(),this.position.getOffset(),!1);if(t){const i=void 0===t.posInNode?t.column:t.posInNode;(e=t.node.getPositionFromOffset(i))&&this._setPosition(e)}}var i=a.getWordBoundary(-1,this.position.getNode(),this.position.getOffset(),!0);if(i){const t=void 0===i.posInNode?i.column:i.posInNode;(e=i.node.getPositionFromOffset(t))&&this._setPosition(e)}this._setAnchor(this.position),this._moveWord(1,!0,!0)},_setAnchor:function(e){f.assert(e.getNode&&e.isLive,"Cursor._setAnchor called without Position!"),this.anchor.getNode()&&this.anchor.setLive(!1),this.anchor.setPosition(e.getNode(),e.getOffset()),this.anchor.setLive(!0)},_setFileEndSelected:function(e){null!==this._fileEndSelected&&(this._selectionHasChanged=this._selectionHasChanged||this._fileEndSelected!==e,this._fileEndSelected=e)},_updateGroupedSelectionBasedOnCurrentPosition:function(e,t){var i,n,o,r={start:e.start,end:e.end},s=!1;n=(i=a.nodesInOrder(this.getNode(),e.start.getNode()))>0||0===i&&this.getOffset()<e.start.getOffset(),o=(i=a.nodesInOrder(e.end.getNode(),this.getNode()))>0||0===i&&this.getOffset()>e.end.getOffset(),n?(t?this.movePosition(this.WORD_LEFT,!0):this.movePosition(this.LINE_START_POS1,!0),s=!0,r.start=this.position):o&&(t?this.movePosition(this.WORD_RIGHT_EXCL,!0):(this.movePosition(this.LINE_END,!0),this.movePosition(this.RIGHT,!0)),r.end=this.position),this._setAnchor(s?r.end:r.start),this._setPosition(s?r.start:r.end)},_updateFileEndSelection:function(e){if(null!==this._fileEndSelected){var t=!1;if(p.isAtVisibleEndOfFile(this.position,this._view))t=e>this._view.getNodeBottom(this.getNode())-this._view.getScrollTop();this._selectionHasChanged=this._selectionHasChanged||this._fileEndSelected!==t,this._fileEndSelected=t}},autoScroll:function(e,t){var i=this._view.getCoordinateForPosition(this.position),n=i.y,o=i.x;0!==e.y&&(n+=e.layerY-(1===e.y?this._view.getClientHeight():0)),0!==e.x&&(o+=e.layerX-(1===e.x?this._view.getClientWidth():0));var r=this._view.getPositionFromCoordinate({y:n,x:o});t&&(r=r.getNode().rootContainer().startPosition()),this._setPosition(r),this.onUpdate(!1)},movePosition:function(e,t,i){var n,o=!1;if(i&&i>1){for(n=1;n<=i;n+=1)o=this.movePosition(e,t)||o;return o}if(0===i)return o;var r=!1;t===this.KEEP_ANCHOR||!0===t?this.fixAnchor():this.hasAnchor()&&(this.internalCollapseSelection(e),r=!0,o=!0);var s=null,l=!1,c=!1;switch(e){case this.START:s=this._internalDocument.startNode().startPosition();break;case this.END:s=this._internalDocument.endNode().endPosition();break;case this.PAGE_UP:case this.PAGE_DOWN:s=this._movePage(e,t),c=!0;break;default:l=!0}if(e!==this.UP&&e!==this.DOWN||null===this._offsetInLine&&(this._offsetInLine=this._view.getCoordinateForPosition(this.position).x),l)switch(e){case this.LEFT:r||(s=this.hasAnchor()&&a.isAtEndOfFile(this.position)&&this._fileEndSelected?this.position:this._cursorNavigator.moveLeft(this.position));break;case this.RIGHT:r||(s=this._cursorNavigator.moveRight(this.position));break;case this.UP:s=this._cursorNavigator.moveUp(this.position,this._offsetInLine);break;case this.DOWN:s=this._cursorNavigator.moveDown(this.position,this._offsetInLine);break;case this.LINE_START:s=this._cursorNavigator.moveLineStart(this.position);break;case this.LINE_START_POS1:s=this._cursorNavigator.moveLineStart(this.position,!0);break;case this.LINE_END:s=this._cursorNavigator.moveLineEnd(this.position);break;case this.WORD_LEFT:o=this._moveWord(-1,t);break;case this.WORD_RIGHT:o=this._moveWord(1,t);break;case this.WORD_RIGHT_EXCL:o=this._moveWord(1,t,!0);break;default:l=!0}return s?(this._setFileEndSelected(!1),this._setPosition(s),o=!0):null!==this._fileEndSelected&&this.hasAnchor()&&a.isAtEndOfFile(this.position)?(e!==this.RIGHT&&e!==this.DOWN||this._setFileEndSelected(!0),o=!0):e===this.DOWN&&t===this.KEEP_ANCHOR&&(s=this._cursorNavigator.moveLineEnd(this.position),this._setFileEndSelected(!0),this._setPosition(s),this._offsetInLine=null,o=!0),null===this._selectionAutoScrollTimer&&this.position.isEqualTo(this.anchor)&&!this._fileEndSelected&&this.releaseAnchor(),!0===o&&this.onUpdate(c),(e!==this._pageYOffset.dir||e!==this.PAGE_UP&&e!==this.PAGE_DOWN)&&(this._pageYOffset.dir=this.NONE,this._pageYOffset.offset=-1,e!==this.UP&&e!==this.DOWN&&(this._offsetInLine=null)),o},setCursorToCoordinates:function(e,t){var i=this._view.getPositionFromCoordinate(e);this._setPosition(i),this.onUpdate(!t)},setCursorToEvent:function(e){var t=this._view.fixEvent(e),i=this._view.getPositionFromEvent(t);if(i){var n=i.getLineColumn();this.setLineColumn(n.line,n.column)}},setCursorToRange:function(e,t){var i=e.getStartPosition().getLineColumn();if(e.getStartPosition().isEqualTo(e.getEndPosition()))this.setLineColumn(i.line,i.column,t);else{var n=e.getEndPosition().getLineColumn();this.setSelectionLineColumn(i.line,i.column,n.line,n.column,!t)}},setLineColumn:function(e,t,i){a.checkLineColumnExists(this._internalDocument,e,t),this.setPosition(this._internalDocument.root,{line:e-1,column:t-1,anchor:{}},i)},setPosition:function(e,t,i){if(1===arguments.length)if(e&&e.isTextNode)t={posInNode:0};else{if(!e||"object"!=typeof e)return!1;e.getNode&&e.getOffset?(t=e.getOffset(),e=e.getNode()):(t=e,e=this._internalDocument.root)}"number"==typeof t&&(t={posInNode:t});var n=this._suspendChangeEvent;this._suspendChangeEvent=!0;var o=null;if(t.hasOwnProperty("line")||t.hasOwnProperty("column")){var r=null;if(t.anchor){var a=t.anchor;if(this.releaseAnchor(),a.hasOwnProperty("line")&&a.hasOwnProperty("column"))this.setPosition(a.node,{line:a.line,column:a.column})&&this.fixAnchor(!0);else if(a.node){var s=a.posInNode||0;this.setPosition(a.node,{posInNode:s})&&this.fixAnchor(!0)}}if(t.hasOwnProperty("line")?r=this._internalDocument.getLineNode(t.line,e):e&&(r=e.rootContainer()),!r)return this._suspendChangeEvent=n,!1;var l=0;t.hasOwnProperty("column")&&(l=t.column),o=r.getPositionFromOffset(l)}else{if(!e)return this._suspendChangeEvent=n,!1;o=e.getPositionFromOffset(t.posInNode)}return o&&this._setPosition(o),null!==this._fileEndSelected&&t.fileEndSelected&&t.anchor&&(this._fileEndSelected||(this._selectionHasChanged=!0),this._fileEndSelected=!0),this._suspendChangeEvent=n,this._offsetInLine=null,this.onUpdate(!i),!0},_moveWord:function(e,t,i){var n=this.getNode(),o=this.getOffset();if(e===this.WORD_LEFT&&0===o&&!n.previousSibling())return this.movePosition(this.LEFT,t);if(e===this.WORD_RIGHT&&o>=n.maxOffset()&&!n.nextSibling())return this.movePosition(this.RIGHT,t);var r=a.getWordBoundary(e,n,o,i);if(r){const e=void 0===r.posInNode?r.column:r.posInNode,t=r.node.getPositionFromOffset(e);return this._setPosition(p.getClosestVisiblePosition(t,this._view)),!0}return this.movePosition(e>0?this.RIGHT:this.LEFT,t)},_movePage:function(e){this.isInVisualBounds(0,100)||this._view.scrollPositionIntoView(this.position);var t=this._view.getCoordinateForPosition(this.position),i=this._view.getDomTargetPosition(),n=i.scrollHeight,o=i.clientHeight,r=(e===this.PAGE_UP?-1:1)*o;null===this._offsetInLine&&(this._offsetInLine=t.x),this._pageYOffset.dir=e,this._pageYOffset.offset<0&&(this._pageYOffset.offset=t.y),this._pageYOffset.offset=this._pageYOffset.offset+r,this._pageYOffset.offset=Math.min(Math.max(0,this._pageYOffset.offset),n);var a={x:this._offsetInLine,y:this._pageYOffset.offset},s=this._view.getPositionFromCoordinate(a),l=this._view.getCoordinateForPosition(s).y-t.y;return this._view.offsetScrollTop(l),s},_setNode:function(e){this.position.getNode()&&this.position.setLive(!1),this.position.node=e,this.position.setLive(!0)},_setPosition:function(e){f.assert(e.getNode&&e.isLive,"Cursor._setPosition called without Position!"),this.position.getNode()===e.getNode()&&this.position.getOffset()===e.getOffset()&&this.position.isRightAligned()===e.isRightAligned()||(this._positionHasChanged=!0),this._setNode(e.getNode()),this.position.offset=e.getOffset(),this.position.setRightAligned(e.isRightAligned())},_startAutoScroll:function(e,t){var i=this;this._selectionAutoScrollTimer=setInterval((function(){i.autoScroll(e,t)}),20)},_stopAutoScroll:function(){this._selectionAutoScrollTimer&&(clearInterval(this._selectionAutoScrollTimer),this._selectionAutoScrollTimer=null)},charAtCursor:function(e){if(!this.getNode())return null;var t="";if(this.hasSelection())return this.anchor.getNode()===this.getNode()&&(t=this.selectedText()),1===t.length?t:"";t=this.getNode().getTextForPositioning(),e=-1===e?-1:0;var i=this.getOffset();if(-1===e&&i>0||i<t.length)return t.substring(i+e,i+e+1);var n=-1===e?this.getNode().previousSibling():this.getNode().nextSibling();return n&&(t=n.getTextForPositioning())?-1===e?t.substring(t.length-1):t.substring(0,1):null},expandCursorPos:function(e){var t=e.line,i=e.column;return e.anchor&&("number"==typeof e.anchor.line&&(t=e.anchor.line),"number"==typeof e.anchor.column&&(i=e.anchor.column)),e.isReversed=!1,t&&t>e.line&&(isReversed=!0),e.isReversed||t!==e.line||(e.isReversed=i>e.column),e.isNull=t===e.line&&i===e.column,e.isReversed?(e.startLine=e.line,e.startColumn=e.column,e.endLine=t,e.endColumn=i):(e.startLine=t,e.startColumn=i,e.endLine=e.line,e.endColumn=e.column),e},getCursorAsLiveRange:function(){var e,t;return this.hasSelection()?(e=new s(this.anchor.getNode(),this.anchor.getOffset(),!0),t=new s(this.position.getNode(),this.position.getOffset(),!0)):t=e=new s(this.position.getNode(),this.position.getOffset(),!0),e.setLive(),t.setLive(),new c(e,t)},getCursorCoordinates:function(){return this._view.getCoordinateForPosition(this.position)},getCoordinatesOfSelection:function(){var e=this.getSelectionLineColumn(),t=e.start,i=e.end;return{startCoords:this._view.getCoordinateForLineColumn(t.line,t.column),endCoords:this._view.getCoordinateForLineColumn(i.line,i.column)}},getLineColumn:function(){return this.position.getLineColumn()},getNode:function(){return this.position.getNode()},getOffset:function(){return this.position.getOffset()},getCursorPosition:function(){return this.position},getPosition:function(){var e=this.getNode();if(!e)return null;var t=e.rootContainer();f.assert(t,"Cursor.getPosition() called on node without container!");var i={};i.line=this._internalDocument.getLineNumber(t),i.posInNode=this.getOffset(),i.column=i.posInNode,e.isRootContainer()||(i.column+=e.offsetInContainer());var n={};return this.hasSelection()&&(t=this.anchor.getNode().rootContainer())&&(n.posInNode=this.anchor.getOffset(),n.line=this._internalDocument.getLineNumber(t),n.column=this.anchor.getNode().offsetInContainer()+n.posInNode),i.anchor=n,null!==this._fileEndSelected&&(i.fileEndSelected=this._fileEndSelected),i},getSelection:function(){if(!this.hasSelection())return null;var e,t;this.anchor.getNode()?(e=this.anchor.getNode(),t=this.anchor.getOffset()):(e=this.getNode(),t=this.getOffset());var i=this.getNode(),n=this.getOffset(),o=this.isReversed(),r=!!this._fileEndSelected,a=new s(e,t),l=new s(i,n);if(o){var c=a;a=l,l=c}var d=new u(a,l,o,r);return h.trimSelection(d)},getSelectionLineColumn:function(){a.assert(this.hasSelection(),this._MISSING_SELECTION_ERROR);var e=this.getPosition().anchor,t=this.getPosition();return{start:{line:e.line+1,column:e.column+1},end:{line:t.line+1,column:t.column+1}}},getSelectionStartContainer:function(){return this.getSelectionStartNode().rootContainer()},getSelectionStartNode:function(){return this.hasSelection()&&!this.isReversed()?this.anchor.getNode():this.getNode()},getSelectionEndContainer:function(){return this.getSelectionEndNode().rootContainer()},getSelectionEndNode:function(){return this.hasSelection()&&this.isReversed()?this.anchor.getNode():this.getNode()},hasAnchor:function(){return this.anchor.isValid()},hasSelection:function(){return!!this._fileEndSelected||!!this.anchor.isValid()&&(this.anchor.getNode()!==this.getNode()||this.anchor.getOffset()!==this.getOffset())},isHidden:function(){return this._hidden},isSelectionHidden:function(){return this._hideSelection},isCursorReadOnly:function(e){if(this.hasSelection()){var t=h.trimTrailingLineBreak(this.getSelection());return d.isRangeReadOnly(t,e)}var i=this.position.getNode();return i&&i.isReadOnly()},isEventInSelection:function(e){return this._isEventInSelectionRange(e)},isInRange:function(e,t){if(!this.hasSelection())return!0;var i=this.getPosition().anchor.line,n=this.getPosition().anchor.column,o=i>=e.line&&i<=t.line,r=n>=e.column&&n<=t.column;return!(!o||!r)},isInNodeRange:function(e,t){var i=this._internalDocument.getLineNumber(e),n=this._internalDocument.getLineNumber(t),o=t.maxOffset();return this.isInRange({line:i,column:0},{line:n,column:o})},isInVisualBounds:function(e,t){a.assert(e<t,"top must be less than bottom");var i=this.getLineColumn().line;if(!this._view.isLineInView(i))return!1;var n=this._view.getLinePercentScrolled(i);return n>=e&&n<=t},isPositionInSelectionRange:function(e){if(this.hasSelection()){var t=this.getSelection(),i=l.isPositionInRange(e,t),n=d.isNodeInRange(e.node,t);return i&&n}return e.isEqualTo(this.position)},isFileEndSelected:function(){return this._fileEndSelected},isReversed:function(){return!!this.hasSelection()&&(this.getNode()===this.anchor.getNode()?this.getOffset()<this.anchor.getOffset():a.nodesInOrder(this.anchor.getNode(),this.getNode())<0)},selectedText:function(){return this.hasSelection()?this._internalDocument.getTextInRange(this.getSelection()):""},selectionInfo:function(e){if(f.assert(void 0===e,"The autoAdjustSelection parameter has been removed from Cursor.selectionInfo()."),this.hasSelection()){var t=this.getSelection();return{startNode:t.getStartPosition().getNode(),startPos:t.getStartPosition().getOffset(),endNode:t.getEndPosition().getNode(),endPos:t.getEndPosition().getOffset(),isReversed:t.isReversed(),isLocal:d.rangeIsInsideOneNode(t),isInTextContainer:d.rangeIsInsideOneTextContainer(t),isInRootContainer:d.rangeIsInsideOneRootContainer(t),fileEndSelected:t.fileEndSelected(),isNull:!1,startPosition:t.getStartPosition(),endPosition:t.getEndPosition()}}var i,n={};return n.endNode=this.getNode(),n.endPos=this.getOffset(),0===n.endPos&&(i=n.endNode.previousSibling())&&!a.isTextLevelContainer(i)&&(n.endNode=i,n.endPos=i.maxOffset()),n.startNode=n.endNode,n.startPos=n.endPos,n.isNull=!0,n.isLocal=!0,n.isInTextContainer=!0,n.isInRootContainer=!0,n.isReversed=!1,null!==this._fileEndSelected&&(n.fileEndSelected=this._fileEndSelected),n.fileEndSelected&&(n.isLocal=!1),n.startPosition=new s(n.startNode,n.startPos),n.endPosition=new s(n.endNode,n.endPos),n},selectionInfo2cursorPos:function(e){var t={},i=e.isNull||e.isReversed?e.startNode:e.endNode,n=e.isNull||e.isReversed?e.startPos:e.endPos;return t.line=this._internalDocument.getLineNumber(i.rootContainer()),t.column=i.offsetInContainer()+n,t.posInNode=n,t.anchor={},e.isNull||(i=e.isReversed?e.endNode:e.startNode,n=e.isReversed?e.endPos:e.startPos,e.isLocal?t.anchor.line=t.line:t.anchor.line=this._internalDocument.getLineNumber(i.rootContainer()),t.anchor.column=i.offsetInContainer()+n,t.anchor.posInNode=n),null!==this._fileEndSelected&&(t.fileEndSelected=e.fileEndSelected),t},cursorPos2selectionInfo:function(e){var t={isLocal:!1,isNull:!1,isReversed:!1};null!==this._fileEndSelected&&(t.fileEndSelected=e.fileEndSelected);var i=this._internalDocument.getLineNode(e.line),n=i.getPositionFromOffset(e.column);t.endNode=n.getNode(),t.endPos=n.getOffset(),e.anchor&&e.anchor.hasOwnProperty("line")&&e.anchor.hasOwnProperty("column")?(n=(i=this._internalDocument.getLineNode(e.anchor.line)).getPositionFromOffset(e.anchor.column),t.startNode=n.getNode(),t.startPos=n.getOffset()):(t.startNode=n.getNode(),t.startPos=e.column,t.isLocal=!0,t.isNull=!0);var o=a.nodesInOrder(t.startNode,t.endNode);if(o<0){var r=t.startNode;t.startNode=t.endNode,t.endNode=r,i=t.startPos,t.startPos=t.endPos,t.endPos=i,t.isReversed=!0}else 0===o&&(t.isLocal=!0,t.startPos===t.endPos&&(t.isNull=!0),t.startPos>t.endPos&&(i=t.startPos,t.startPos=t.endPos,t.endPos=i,t.isReversed=!0));return t.startPosition=new s(t.startNode,t.startPos),t.endPosition=new s(t.endNode,t.endPos),t},_isEventInSelectionRange:function(e){if(!this.hasSelection())return!1;var t=this._view.fixEvent(e);if(this._view.isFixedEventOutside(t))return!1;var i=this._view.getPositionFromEvent(t);return!!i&&this.isPositionInSelectionRange(i)},_snapshotSelection:function(){return{start:new s(this.anchor.getNode(),this.anchor.getOffset()),end:new s(this.getNode(),this.getOffset())}},externalMouseDown:function(){this._clearCurrentAction()},resetAction:function(){this._clearCurrentAction()},startDragAction:function(){var e=this,i=this._startNewAction();return t.mixin(i,{onUp:function(t){i.isFulfilled()||(e.hasAnchor()||e._fileEndSelected)&&t&&e.isPositionInSelectionRange(t)&&(e.releaseAnchor(),e._setPosition(t),e.onUpdate())}}),i},startGroupedSelectionAction:function(e,i,n,o){var r=this,a=this._startNewAction();return t.mixin(a,{_preservedSelection:null,onMove:function(e,t,i){a.isFulfilled()||(r._modifyPositionBasedOnMoveEvent(e,t,i),r._updateGroupedSelectionBasedOnCurrentPosition(a._preservedSelection,o),r.onUpdate())}}),a.promise.always(t.hitch(this,(function(){this._releaseAnchorIfNoSelection(),this._stopAutoScroll(),this.onUpdate()}))),r._modifyPositionBasedOnDownEvent(e,i,n),o?r.onDoubleClick():r.onTripleClick(),a._preservedSelection=r._snapshotSelection(),a},startSecondarySelectionAction:function(e,t,i){var n=this._startNewAction();return this._modifyPositionBasedOnSecondaryDownEvent(e,t,i),this.onUpdate(!0),n},startSelectionAction:function(e,i,n){var o=this,r=this._startNewAction();return t.mixin(r,{onMove:function(e,t,i){r.isFulfilled()||(o._modifyPositionBasedOnMoveEvent(e,t,i),o.onUpdate())}}),r.promise.always(t.hitch(this,(function(){this._releaseAnchorIfNoSelection(),this._stopAutoScroll()}))),o._modifyPositionBasedOnDownEvent(e,i,n),o.onUpdate(),r},_clearCurrentAction:function(){this._currentAction&&!this._currentAction.isFulfilled()&&this._currentAction.cancel()},_modifyPositionBasedOnDownEvent:function(e,t,i){var n=(this.hasAnchor()||this._fileEndSelected)&&!t;e?(!this.hasAnchor()&&t&&this.fixAnchor(),this._setPosition(e),n&&this.releaseAnchor(),this.hasAnchor()||this.fixAnchor(),this._offsetInLine=null,this._pageYOffset.dir=this.NONE,this._pageYOffset.offset=-1,t&&this._updateFileEndSelection(i)):n&&this.releaseAnchor()},_modifyPositionBasedOnMoveEvent:function(e,t,i,n){if(e&&(this._stopAutoScroll(),this.hasAnchor())){if(t&&this._startAutoScroll(t,n),n){const t=e.getNode().rootContainer(),i=p.getVisibleRootContainerBelow(t,this._view);e=i?i.startPosition():t.endPosition()}this._setPosition(e),this._updateFileEndSelection(i)}},_modifyPositionBasedOnSecondaryDownEvent:function(e,t,i){if(e){var n=(this.hasAnchor()||this._fileEndSelected)&&!t;!this.hasAnchor()&&t&&this.fixAnchor(),this.hasSelection()&&this.isPositionInSelectionRange(e)||(this._setPosition(e),n&&this.releaseAnchor()),t&&this._updateFileEndSelection(i),this.onUpdate(!0)}},_setCurrentAction:function(e){this._clearCurrentAction(),this._currentAction=e,this._currentAction.promise.always(t.hitch(this,(function(){this._currentAction=null})))},isActionInProgress:function(){return null!==this._currentAction},_startNewAction:function(){var e=new i;return this._setCurrentAction(e),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(228),i(210),i(211),i(209),i(575),i(1089),i(373)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(s,{_CHARACTER_WIDTH:8,_DEFAULT_NUMBER_OF_CHARACTERS_IN_MARGIN:2,_RIGHT_PADDING:3,_DEFAULT_MIN_WIDTH:16,_LINE_NUMBER_HEIGHT:17,constructor:function(e,n,o,r,a){this._lineNumberPreference=r,this._lineNumberService=n,this._view=e,this._cursorController=o,this._stylers=a||[],this.own(i.after(e,"onViewWillUpdate",this._handleViewWillUpdate.bind(this),!0)),this.own(i.after(this._lineNumberPreference,"onPreferenceChanged",t.hitch(this,"_handleLineNumberPreferenceChanged"))),this._stylers.forEach((function(e){this.own(i.after(e,"onUpdate",t.hitch(this,"_handleStylerUpdate",e)))}),this)},hasLayerForLineNumber:function(e){return this._lineNumberService.getCodeLineNumberFromLineNumber(e)>=0&&this._shouldShowLineNumbers()},createDecorationForLineNumber:function(e){var t=this._lineNumberService.getCodeLineNumberFromLineNumber(e),i=r.create("div");return i.textContent=t,this._applyStyle(i,e,t),i},_handleViewWillUpdate:function(e){e===c.SOURCES.documentChange&&this._updateWidth()},_handleStylerUpdate:function(e){this.onUpdate()},_applyStyle:function(e,t,i){o.add(e,"gutterNumber"),this._stylers.forEach((function(t){o.add(e,t.getClasses(i))})),this._adjustAlignment(e,t),this._addTestTag(e,["lineNumber"],t)},_adjustAlignment:function(e,t){l.setTopForCenteredAlignment(e,this._view,t,this._LINE_NUMBER_HEIGHT)},_addTestTag:function(e,t,i){var o=i;t&&t.length>0?o=o+"_"+t.join("_"):o+="_invalid",n.set(e,"data-testid",o)},_shouldShowLineNumbers:function(){return this._lineNumberPreference.isEnabled()},_handleLineNumberPreferenceChanged:function(){this._updateWidth(),this.onUpdate()},getWidth:function(){return Math.max(this._width,this._DEFAULT_MIN_WIDTH)+this._RIGHT_PADDING},_updateWidth:function(){var e=this._getNumberOfCharactersToPaintMarginAgainst(),t=this._shouldShowLineNumbers()?this._CHARACTER_WIDTH*e:this._DEFAULT_MIN_WIDTH;this._width!==t&&(this._width=t,this.onWidthChange())},onWidthChange:function(){},_getNumberOfCharactersToPaintMarginAgainst:function(){return Math.max(this._calculateGreatestLineNumberCharacters(),this._DEFAULT_NUMBER_OF_CHARACTERS_IN_MARGIN)},_calculateGreatestLineNumberCharacters:function(){var e=this._lineNumberService.getNumberOfCodeLines();return String(e).length}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(224),i(204),i(208),i(209),i(207),i(260),i(237),i(274),i(266),i(333),i(379),i(364),i(945),i(2407),i(403),i(1909),i(670),i(496)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e(r,{_WHITESPACE_REGEX:/^\s*$/,constructor:function(e,t,o,r,a,l,c){this._cursorController=e,this._internalDocument=t,this._positionController=o,this._documentInfo=r,this._documentChangeNotifier=l,this._documentEditBlockController=a,this._documentModificationController=c,this._tabString=s.DEFAULT_TAB_STRING,this.own(n.after(l,"onChange",i.hitch(this,"onChange"),!0)),this.own(n.after(t,"onDocumentReset",i.hitch(o,"updatePositionsAndEmitChangeEvents"),!0)),this.own(n.after(c,"onPreInsertText",i.hitch(this,"onPreInsertText"),!0))},onChange:function(e){},onPreInsertText:function(e,t){},_emitOnChange:function(e){this._internalDocument.emitDocumentEvents(e)},startBlockEdit:function(e){return this._documentEditBlockController.startBlockEdit(e)},endBlockEdit:function(e){this._documentEditBlockController.endBlockEdit(e)},startEdit:function(e){return this._documentEditBlockController.startEdit(e)},endEdit:function(){this._documentEditBlockController.endEdit()},undoable:function(e,t){try{return e(this.startEdit(t))}finally{this.endEdit()}},insertText:function(e,t,i){return this._documentModificationController.insertText(e,t,i)},insertTextAtCurrentPosition:function(e){if(this._documentAndCursorReadOnly())return!1;var t=this.startBlockEdit(v.TYPING_TEXT),i=!1;return this._cursorController.getCursors().forEach((function(t){var n=this._deleteSelectionBeforeInsertText(t),o=t.getLineColumn(),r=t.getCursorAsLiveRange();i=this._documentModificationController.insertTextRespectingReplacement(e,o.line,o.column,n)||i,t.setCursorToRange(r),r.destroy()}),this),this._cursorController.emitUpdate(!0),this.endBlockEdit(t),i},insertBreak:function(){var e=this.startBlockEdit(),t=!1;return this._cursorController.getCursors().forEach((function(i){var n=this._insertBreakAtCursor(i);if(n){e.appendRedoEvents([g.create(n.startLine,n.endLine,1)]),e.appendUndoEvents([g.create(n.startLine,n.endLine,-1)]);var o=n?[].concat(n):null;this._emitOnChange(o)}t=t||!!n}),this),this._cursorController.emitUpdate(),this.endBlockEdit(e),t},_insertBreakAtCursor:function(e){if(e.hasSelection()){var t=this._deleteText(null,e);if(!1===t)return!1;t=t?[].concat(t):null,this._emitOnChange(t)}var i=this._documentModificationController.insertBreakAtPositionWithoutAnEditBlock(e.position);if(!i)return!1;var n=i.newPosition;return n&&e.setPosition(n),e.onUpdate(!1,!0),i.event},insertBreakAt:function(e,t){return this._documentModificationController.insertBreakAt(e,t)},insertTab:function(){return this.insertTextAtCurrentPosition(this._tabString),!0},setTabString:function(e){this._tabString=e},insertContent:function(e,t,i){if(this.isReadOnly())return!1;this.startEdit();var n=this._documentModificationController.insertContentAt(e,t);return n.newPosition&&(i.setPosition(n.newPosition),i.onUpdate(!1,!0)),this.endEdit(),n.wasSuccessful},insertContentAtCurrentPosition:function(e){if(0===e.length)return!1;var t=this.startBlockEdit(),i=!1,n=this._cursorController.getCursors(!0);return 1===n.length||1===e.length?n.forEach((function(t){this._deleteSelectionBeforeInsertText(t),i=this.insertContent(e,t.position,t)||i}),this):n.length<=e.length?n.forEach((function(t,n){this._deleteSelectionBeforeInsertText(t),i=this.insertContent([e[n]],t.position,t)||i}),this):e.forEach((function(e,t){this._deleteSelectionBeforeInsertText(n[t]),i=this.insertContent([e],n[t].position,n[t])||i}),this),this._cursorController.emitUpdate(),this.endBlockEdit(t),i},deleteText:function(e,t,i,n){s.checkOneDirectionalSelection(e,t,i,n),this._cursorController.suspendUpdates(),this._cursorController.holdCursors(),this._cursorController.setTemporarySelectionLineColumn(e,t,i,n),this._deleteTextAtCurrentPosition(),this._cursorController.resetCursors(),this._cursorController.activateUpdates()},deleteTextAtCurrentPosition:function(e){this._cursorController.suspendUpdates();var t=this._deleteTextAtCurrentPosition(e);return t&&this._cursorController.emitUpdate(!0),this._cursorController.activateUpdates(),t},_deleteTextAtCurrentPosition:function(e){var t=this.startBlockEdit(),i=!1;return this._cursorController.getCursors().forEach((function(t){var n=this._deleteText(e,t);n&&this._emitOnChange([].concat(n)),i=i||!!n}),this),this.endBlockEdit(t),i},onDirectedDeletion:function(e,t){},deleteWord:function(e){if(this._documentAndCursorReadOnly())return!0;var t=this.startBlockEdit();return t.preventMerge(),this._cursorController.holdCursors(),this._cursorController.getCursors().forEach((function(t){t.releaseAnchor(),e>0?t.movePosition(t.WORD_RIGHT,!0):t.movePosition(t.WORD_LEFT,!0)}),this),this.deleteTextAtCurrentPosition(e),this._cursorController.resetCursors(),this.endBlockEdit(t),!0},_deleteText:function(e,t){if(this._documentChangeNotifier.notifyPreDeletion(e,t))return!1;if(!this.prepareCursorSelectionForEditing(t))return!1;var n,o,r,a=this.startEdit(),l=t.selectionInfo(),c=i.mixin({},l);if(!t.hasSelection()){if(t.getNode().isReadOnly()||!e)return this.endEdit(),!1;if(r=!!t.charAtCursor(e),e<0){if(!(n=t.getNode().movePositionLeft(t.position)))return this.endEdit(),!1;o=n}else if(o=t.position,!(n=t.getNode().movePositionRight(t.position)))return this.endEdit(),!1;if(n.getNode().isReadOnly())return this.endEdit(),!1;if(l.startPos===n.getOffset()&&l.startNode===n.getNode())return this.endEdit(),!1;l.isReversed=1===e,1===e?(l.endNode=n.getNode(),l.endPos=n.getOffset()):(l.startNode=n.getNode(),l.startPos=n.getOffset()),l.isLocal=l.startNode===l.endNode,l.isNull=!1,t.adjustSelection(l)}if(!this.onDirectedDeletion(e,l)){l.isLocal&&s.isEdgeOfTextLevelContainer(l.startNode,l.startPos)&&s.isEdgeOfTextLevelContainer(l.endNode,l.endPos)&&(s.isTextLevelContainer(l.startNode)||(l.startNode=l.startNode.parent,l.endNode=l.endNode.parent,l.endPos=l.endNode.maxOffset(),l.isLocal=!1)),t.hasSelection()&&(r=this._hasSelectedText(t),t.internalCollapseSelection(t.LEFT),o=t.position);var d=o.getLineColumn(),u=c.isNull?r?e<0?v.BACKSPACE:v.DELETE:"":v.DELETE_SELECTION;a.setType(u);var h=this._internalDocument.deleteSelection(l);return t.setLineColumn(d.line,d.column,!1),(!(l.startNode===t.getNode()&&l.startPos===t.getOffset())||e<0)&&t.onUpdate(!0,!0),a.appendRedoEvents([h]),a.appendUndoEvents([h.getUndoEvent()]),this.endEdit(),h}this.endEdit()},_hasSelectedText:function(e){var t=e.getSelection();return!!t&&(t.getStartPosition().getNode().rootContainer()!==t.getEndPosition().getNode().rootContainer()||!!e.selectedText())},replaceText:function(e,t,i,n,o){if(s.checkOneDirectionalSelection(t,i,n,o),!this.isReadOnly()){var r=this.startBlockEdit();this.deleteText(t,i,n,o),this.insertText(e,t,i),this.endBlockEdit(r)}},_deleteSelectionBeforeInsertText:function(e){if(e.hasSelection()){var t=this._deleteText(null,e);return!!t&&(this._emitOnChange([t]),!0)}return!1},moveContent:function(e,t){var i=l.allNodesInRangeWritable(e),n=!t.getNode().isReadOnly();o.assert(i,"All nodes in range to move must be writable"),o.assert(n,"Insertion position cannot be read only");var r=m.serializeRange(e);if(o.assert(r,"Could not get content for range"),i&&n&&r){this._cursorController.holdCursors();var a=this.startBlockEdit(),s=e.getStartPosition().getLineColumn(),c=e.getEndPosition().getLineColumn();this.deleteText(s.line,s.column,c.line,c.column);var d=this._cursorController.getCursors()[0];this.insertContent(r,t,d),this.endBlockEdit(a),this._cursorController.resetCursors()}},getEndOfDocumentLineColumn:function(){return this._documentInfo.getEndOfDocumentLineColumn()},getLinePropertiesArray:function(){return this._documentInfo.getLinePropertiesArray()},getLineText:function(e){return this._documentInfo.getLineText(e)},getLineLength:function(e){return this._documentInfo.getLineLength(e)},getNumberOfLines:function(){return this._documentInfo.getNumberOfLines()},getState:function(){return this._documentInfo.getState()},getText:function(){return this._documentInfo.getText()},getTextCharacters:function(e,t,i){return this._documentInfo.getTextCharacters(e,t,i)},isReadOnly:function(){return this._documentInfo.isReadOnly()},getCodeText:function(){return this._documentInfo.getCodeText()},getCodeTextForRange:function(e){return this._documentInfo.getCodeTextForRange(e)},isLineCode:function(e){return this._documentInfo.isLineCode(e)},_documentAndCursorReadOnly:function(){return this.isReadOnly()||this._cursorController.areCursorsReadOnly()},prepareCursorSelectionForEditing:function(e){if(this.isReadOnly())return!1;if(!e.hasSelection())return!e.isCursorReadOnly();var t=e.getSelection();if(!d.isRangeReadOnly(t))return!0;var i=u.trimTrailingLineBreak(t);return!d.isRangeReadOnly(i)&&(e.setSelection(i),!0)},setReadOnly:function(e){this._documentModificationController.setReadOnly(e)},setReadOnlyLine:function(e,t){s.checkLineExists(this._internalDocument,e),this._internalDocument.setReadOnlyLine(e-1,t)&&this._emitOnChange([f.create(e-1,e-1)])},setReadOnlyLines:function(e){var t=this.startBlockEdit(v.AUTO);e.forEach((function(e){this.setReadOnlyLine(e,!0)}),this),this.endBlockEdit(t)},setText:function(e){this._internalDocument.isReadOnly()||(this._internalDocument.openTextDocument(e,!1),this._cursorController.reinitializeCursors())},isEntireLineWhitespace:function(e){return this._internalDocument.getLineNode(e-1).children.every(function(e){return e.isTextNode()&&null!==e.getText().match(this._WHITESPACE_REGEX)}.bind(this))},hasTrailingWhitespaceOnLine:function(e){return this._getTrailingWhitespaceOnLine(e)>0},trimTrailingWhitespaceOnLine:function(e){var t=this.getLineText(e).length+1,i=this._getTrailingWhitespaceOnLine(e);i>0&&this.replaceText("",e,t-i,e,t)},_getTrailingWhitespaceOnLine:function(e){var t=this._internalDocument.getLineNode(e-1).lastChild();if(t.isTextNode()){var i=t.getText();return s.getTrailingWhitespace(i)}return 0},createPosition:function(e,t,i){return this._positionController.createPosition(e,t,i)},deletePosition:function(e){this._positionController.deletePosition(e)},createPositionAtLineColumn:function(e,t,i){return this._positionController.createPositionAtLineColumn(e,t,i)},createLinePosition:function(e,t){return this._positionController.createLinePosition(e,t)},getPositionsInNodeRange:function(e,t){return this._positionController.getLinePositionsForNodeRange(e,t)},createLinePositionInLine:function(e,t){return this._positionController.createLinePositionInLine(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(249),i(260),i(577),i(663)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e(o,{type:t.READONLY_STATE_CHANGE_EVENT,constructor:function(e,t){},getMutation:function(){return n.createFromEvent(this,n.MUTATION_TYPE.INPLACE)},getUndoEvent:function(){return r(this.startLine,this.endLine)}});return{create:function(e,n){return i.assertValidLines(e,n,t.READONLY_STATE_CHANGE_EVENT),new r(e,n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},setEventCoalescingType:function(e){this._coalescingType=e},getEventCoalescingType:function(){return this._coalescingType}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(745),i(469)],o=i.dj.d(n,(function(e,t,i){var n=e(t,{type:i.DELETE_NODE,primitiveProperties:["newOffset","newEndOffset"],nodeProperties:["nodes","newNode","newEndNode"],constructor:function(e,t,i,n,o){this.nodes=e,this.newNode=t,this.newOffset=i,this.newEndNode=n,this.newEndOffset=o}});return{create:function(e,t,i,o,r){return new n(e,t,i,o,r)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(745),i(469)],o=i.dj.d(n,(function(e,t,i){var n=e(t,{type:i.DELETE_TEXT,primitiveProperties:["offset","length"],nodeProperties:["node"],constructor:function(e,t,i){this.node=e,this.offset=t,this.length=i}});return{create:function(e,t,i){return new n(e,t,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(745),i(469)],o=i.dj.d(n,(function(e,t,i){var n=e(t,{type:i.INSERT_NODE,nodeProperties:["newNodes","referenceSibling"],constructor:function(e,t){this.newNodes=e,this.referenceSibling=t}});return{create:function(e,t){return new n(e,t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(745),i(469)],o=i.dj.d(n,(function(e,t,i){var n=e(t,{type:i.INSERT_TEXT,primitiveProperties:["offset","length"],nodeProperties:["node"],constructor:function(e,t,i){this.node=e,this.offset=t,this.length=i}});return{create:function(e,t,i){return new n(e,t,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(745),i(469)],o=i.dj.d(n,(function(e,t,i){var n=e(t,{type:i.MERGE_NODE,primitiveProperties:["offset"],nodeProperties:["node","newNode"],constructor:function(e,t,i){this.node=e,this.newNode=t,this.offset=i}});return{create:function(e,t,i){return new n(e,t,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(745),i(469)],o=i.dj.d(n,(function(e,t,i){var n=e(t,{type:i.SPLIT_NODE,primitiveProperties:["offset","nodeChanged","lineStartOrEnd"],nodeProperties:["node","newNode"],constructor:function(e,t,i,n,o){this.node=e,this.offset=t,this.newNode=i,this.nodeChanged=n,this.lineStartOrEnd=o}});return{create:function(e,t,i,o,r){return new n(e,t,i,o,r)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(745),i(469)],o=i.dj.d(n,(function(e,t,i){var n=e(t,{type:i.UPDATE_ATTRIBUTES,nodeProperties:["node"],constructor:function(e){this.node=e}});return{create:function(e){return new n(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(237),i(746),i(680)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(o,{type:n.INSERT_CHILDREN,primitiveProperties:["_offset"],nodeProperties:["_targetNode","_children"],constructor:function(e,t,i,n){this._model=e,this._targetNode=t,this._children=i,this._offset=n},execute:function(){this._targetNode.children=i.insertArrayAt(this._children,this._targetNode.children,this._offset),this._children.forEach((function(e){e.parent=this._targetNode,e.children&&e.children.forEach((function(t){t.parent||(t.parent=e)}))}),this)},unexecute:function(){this._targetNode.children.splice(this._offset,this._children.length),this._children.forEach((function(e){e.parent=null}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6859),i(249),i(746),i(680)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(o,{type:n.NODE_CHANGE,constructor:function(e,t,i){this._model=e,this._undoEvent=t,this._redoEvent=i},execute:function(){this._redoEvent&&this._model.onNodeChange(this._redoEvent)},unexecute:function(){this._undoEvent&&this._model.onNodeChange(this._undoEvent)},serialize:function(e){const i={type:this.type};return this._undoEvent&&(i.undoEvent=t.serialize(this._undoEvent,e)),this._redoEvent&&(i.redoEvent=t.serialize(this._redoEvent,e)),i},deserialize:function(e,i){this._undoEvent=e.undoEvent?t.deserialize(e.undoEvent,i):null,this._redoEvent=e.redoEvent?t.deserialize(e.redoEvent,i):null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(237),i(746),i(680)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(o,{type:n.REMOVE_CHILDREN,primitiveProperties:["_offset","_count"],nodeProperties:["_targetNode","_removedNodes"],constructor:function(e,t,i,n){this._model=e,this._targetNode=t,this._offset=i||0,this._count=n,this._removedNodes=[]},execute:function(){var e=this._count>0?this._count:this._targetNode.children.length;return this._removedNodes=this._targetNode.children.splice(this._offset,e),this._removedNodes.forEach((function(e){e.parent=null}),this),this._removedNodes},unexecute:function(){this._targetNode.children=i.insertArrayAt(this._removedNodes,this._targetNode.children,this._offset),this._removedNodes.forEach((function(e){e.parent=this._targetNode}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(746),i(680)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(n,{type:i.REPLACE_TEXT,primitiveProperties:["_offset","_length","_text","_replacement"],nodeProperties:["_targetNode"],constructor:function(e,t,i,n,o){this._model=e,this._targetNode=t,this._offset=i,this._length=n,this._text=o,this._replacement=""},execute:function(){this._replacement=this._targetNode.text.substr(this._offset,this._length),this._setText(this._targetNode,this._text,this._length)},unexecute:function(){this._setText(this._targetNode,this._replacement,this._text.length)},_setText:function(e,t,i){e.text=e.text.substr(0,this._offset)+t+e.text.substr(this._offset+i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(746),i(680)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(n,{type:i.UPDATE_ATTRIBUTES,primitiveProperties:["_newAttributes","_oldAttributes"],nodeProperties:["_targetNode"],constructor:function(e,t,i){this._model=e,this._targetNode=t,this._newAttributes=i,this._oldAttributes={}},execute:function(){this._oldAttributes=this._targetNode.updateAttributes(this._newAttributes)},unexecute:function(e){this._targetNode.updateAttributes(this._oldAttributes)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6863),i(270)],o=i.dj.d(n,(function(e,t,i){return e([i,t],{constructor:function(e,t,i){this.setLive(!0)},onChange:function(e){this.dispatchChangeEvent(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(6949),i(6950),i(2408),i(1107),i(496)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";return t(r,{constructor:function(e){this._commands=[],this._undoEvents=[],this._redoEvents=[],this._type=e,this._references=1,this._blockTypesForMergeAndAdvance=[]},setType:function(e){this._type||(this._type=e)},getType:function(){return this._type},appendUndoEvents:function(e){e=this._copyEvents(e);var t=this._undoEvents,i=this.getEventCoalescingType();if(i){var n=a.coalesce(t,e,i,!0);this._undoEvents=n||t.concat(e)}else this._undoEvents=t.concat(e)},getUndoEvents:function(){var e=this._undoEvents.slice(0);return e.reverse(),e},appendRedoEvents:function(e){e=this._copyEvents(e);var t=this._redoEvents,i=this.getEventCoalescingType();if(i){var n=a.coalesce(t,e,i,!0);this._redoEvents=n||t.concat(e)}else this._redoEvents=t.concat(e)},getRedoEvents:function(){return this._redoEvents},_copyEvents:function(t){return e.map(t,(function(e){return e?i.mixin({},e,{isUndoRedo:!0}):e}))},appendCommand:function(e){this._commands.push(e)},hasSufficientCommands:function(){return this._commands.some((function(e){return e.isSufficientForUndoTask()}))},execute:function(){this._commands.forEach((function(e){e.execute()}),this)},unexecute:function(){for(var e=this._commands.length-1;e>=0;e-=1){this._commands[e].unexecute()}},pushAndExecuteCommand:function(e){return this._commands.push(e),e.execute()},preventMerge:function(){this._preventMerge=!0},canMergeWith:function(e){return!!this._type&&(this._type===s.AUTO||!this._preventMerge&&this._type===e.getType())},setBlockTypesForMergeAndAdvance:function(e){this._blockTypesForMergeAndAdvance=e},getBlockTypesForMergeAndAdvance:function(){return this._blockTypesForMergeAndAdvance},mergeWith:function(e){e.addCommands(this._commands),e.appendRedoEvents(this._redoEvents),e.appendUndoEvents(this._undoEvents)},addCommands:function(e){this._commands=this._commands.concat(e)},incrementReferenceCount:function(){this._references+=1},decrementReferenceCount:function(){return this._references-=1,0===this._references},serialize:function(e){var t={commands:n.serialize(this._commands,e),undoEvents:o.serialize(this._undoEvents,e),redoEvents:o.serialize(this._redoEvents,e),type:this._type,references:this._references};return this._blockTypesForMergeAndAdvance.length>0&&(t.blockTypesForMergeAndAdvance=this._blockTypesForMergeAndAdvance),this._preventMerge&&(t.preventMerge=!0),t},deserialize:function(e,t,i,r){this._commands=n.deserialize(e.commands,t,i,r),this._undoEvents=o.deserialize(e.undoEvents,t),this._redoEvents=o.deserialize(e.redoEvents,t),this._type=e.type,this._references=e.references,e.blockTypesForMergeAndAdvance&&(this._blockTypesForMergeAndAdvance=e.blockTypesForMergeAndAdvance),e.preventMerge&&(this._preventMerge=!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(270),i(401),i(746),i(680)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e(r,{type:o.SET_CURSOR,constructor:function(e,t){e&&(this._cursorControllerWrapper=e,this._positions=this._cursorControllerWrapper.getCurrentInstance().getPositions()),this._onRedo=t},execute:function(){this._onRedo&&this._cursorControllerWrapper.getCurrentInstance().setPositions(this._positions)},unexecute:function(){this._onRedo||this._cursorControllerWrapper.getCurrentInstance().setPositions(this._positions)},isSufficientForUndoTask:function(){return!1},serialize:function(e){return{type:this.type,positions:this._positions.map(t=>{if(!(t instanceof n))return t;const i=t.getStartPosition(),o=i.getNode(),r=e.serializeNode(o),a=t.getEndPosition(),s=a.getNode(),l=e.serializeNode(s);return{startPosition:{node:r,offset:i.getOffset()},endPosition:{node:l,offset:a.getOffset()},isReversed:t.isReversed(),fileEndSelected:t.fileEndSelected()}}),onRedo:this._onRedo}},deserialize:function(e,t){this._positions=e.positions.map(e=>{if(!e.startPosition)return e;const o=new i(t.getNode(e.startPosition.node),e.startPosition.offset),r=new i(t.getNode(e.endPosition.node),e.endPosition.offset);return new n(o,r,e.isReversed,e.fileEndSelected)}),this._onRedo=e.onRedo},setCursorPlugin:function(e){this._cursorControllerWrapper=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7010),i(7012),i(7014),i(7016),i(7018),i(7020),i(7022),i(7024),i(7026),i(7028),i(7029),i(7031),i(7033),i(7035),i(7037),i(7039),i(7041),i(7043),i(7045),i(7047),i(7049),i(7052),i(7056),i(7058),i(7060),i(7062),i(7065),i(7067),i(7068),i(7072),i(7075),i(7078),i(7080),i(7084),i(7087),i(7089),i(7095),i(7097),i(7100),i(7102),i(7104),i(7106),i(7108),i(7110),i(7112),i(7116),i(7117),i(7120),i(7121),i(7123),i(7125),i(7127),i(7130),i(7132),i(7134),i(7136),i(7138),i(7140),i(7142),i(7143),i(7145),i(7147),i(7150),i(7151),i(7154),i(7156),i(7158),i(7160),i(7163)],o=i.dj.d(n,(function(){return{plugins:[{id:"language.interface.lexer",path:"rtc/plugins/language/matlab/tokenizer/MatlabLexerProvider",isSharedPlugin:!0},{id:"matlab.lexer.statemanager",path:"rtc/plugins/language/matlab/tokenizer/MatlabStateManagerProvider",isSharedPlugin:!0},{id:"language.interface.tokenmanager",path:"rtc/plugins/language/matlab/tokenizer/MatlabTokenManagerProvider",isSharedPlugin:!0},{id:"rtc.code.codechange",path:"rtc/plugins/language/matlab/code/CodeChangeServiceProvider",isSharedPlugin:!0},{id:"rtc.code.executablelines",path:"rtc/plugins/code/ExecutableLineServiceProvider",isSharedPlugin:!0},{id:"rtc.code.matlabfiletype",path:"rtc/plugins/language/matlab/filetype/FileTypeProvider",isSharedPlugin:!0},{id:"rtc.diagnosticmessage",path:"rtc/plugins/language/matlab/diagnosticmessage/DiagnosticMessageFormatterProvider"},{id:"rtc.document.executablecode.executablecodeservice",path:"rtc/plugins/language/matlab/executablecode/ExecutableCodeServiceProvider",isSharedPlugin:!0},{id:"rtc.document.executablecode.executablecodeconverter",path:"rtc/plugins/language/matlab/executablecode/executablecodeconverter/ExecutableCodeConverterProvider",isSharedPlugin:!0},{id:"rtc.document.executablecode.executablecodeconverter.rootnodeconverter",path:"rtc/plugins/language/matlab/executablecode/executablecodeconverter/RootNodeExecutableCodeConverterProvider",subsystem:"rtc.document.executablecode.executablecodeconverter.converter",requiredForSubsystem:!0,isSharedPlugin:!0},{id:"rtc.document.executablecode.executablecodeconverter.linenodeconverter",path:"rtc/plugins/language/matlab/executablecode/executablecodeconverter/LineNodeExecutableCodeConverterProvider",subsystem:"rtc.document.executablecode.executablecodeconverter.converter",requiredForSubsystem:!0,isSharedPlugin:!0},{id:"rtc.document.executablecode.executablecodeconverter.plaintextnodeconverter",path:"rtc/plugins/language/matlab/executablecode/executablecodeconverter/PlainTextNodeExecutableCodeConverterProvider",subsystem:"rtc.document.executablecode.executablecodeconverter.converter",requiredForSubsystem:!0,isSharedPlugin:!0},{id:"rtc.domnode.mousedown",path:"rtc/plugins/events/RTCDomNodeMouseDownNotifierProvider"},{id:"rtc.editorservice.initializer",path:"rtc/editorservice/EditorServiceInitializerProvider",isSharedPlugin:!0},{id:"rtc.execution.capabilityblacklist",path:"rtc/plugins/execution/CapabilityBlacklistProvider",isSharedPlugin:!0},{id:"rtc.validscriptfiletypenotifier",path:"rtc/plugins/execution/ValidScriptFileTypeNotifierProvider"},{id:"rtc.executionservice.executionrequestnotifier",path:"rtc/plugins/execution/events/ExecutionRequestNotifierProvider",isSharedPlugin:!0},{id:"rtc.executionservice.executiontrackingstore",path:"rtc/plugins/execution/tracking/ExecutionTrackingStoreProvider"},{id:"rtc.executionservice.linenumbertracker",path:"rtc/plugins/execution/tracking/LineNumberTrackerProvider"},{id:"rtc.executionservice.statehandler",path:"rtc/plugins/execution/events/StateHandlerProvider",isSharedPlugin:!0},{id:"rtc.executionservice.requestserializer",path:"rtc/plugins/execution/ExecutionRequestSerializationServiceProvider",isSharedPlugin:!0},{id:"rtc.functionservice",path:"rtc/plugins/language/matlab/syntax/functions/FunctionServiceProvider",isSharedPlugin:!0},{id:"rtc.service.colorsettingservice",path:"rtc/plugins/service/ColorSettingServiceProvider",isSharedPlugin:!0},{id:"rtc.service.actionhover",path:"rtc/plugins/service/hover/ActionHoverServiceProvider",isSharedPlugin:!0},{id:"rtc.service.hover.domnodenotifierfactory",path:"rtc/plugins/service/hover/DomNodeActionHoverNotifierFactoryProvider",isSharedPlugin:!0},{id:"rtc.service.contextsensitivehelp",path:"rtc/plugins/service/ContextSensitiveHelpServiceProvider",isSharedPlugin:!0},{id:"rtc.view.viewportopenedservice",path:"rtc/view/ViewportOpenedServiceProvider"},{id:"matlab.languageanalysis.filestructureservice",path:"rtc/plugins/language/matlab/languageanalysis/FileStructureServiceWrapperProvider",isSharedPlugin:!0},{id:"matlab.languageanalysis.identifierservice",path:"rtc/plugins/language/matlab/languageanalysis/IdentifierServiceWrapperProvider",isSharedPlugin:!0},{id:"matlab.languageanalysis.refactoringservice",path:"rtc/plugins/language/matlab/languageanalysis/RefactoringServiceWrapperProvider",isSharedPlugin:!0},{id:"matlab.code.codeblocklocationservice",path:"rtc/plugins/language/matlab/syntax/mtree/CodeBlockLocationServiceProvider",isSharedPlugin:!0},{id:"matlab.languageanalysis.sectionslistservice",path:"rtc/plugins/language/matlab/languageanalysis/SectionsListDataServiceProvider",isSharedPlugin:!0},{id:"matlab.code.mtree.rangefactory",path:"rtc/plugins/language/matlab/syntax/mtree/MTreeRangeFactoryProvider"},{id:"matlab.code.variables.service",path:"rtc/plugins/language/matlab/variableservice/VariableServiceProvider"},{id:"matlab.services.busyidle",path:"rtc/plugins/execution/BusyIdleServicesProvider",isSharedPlugin:!0},{id:"matlab.services.batchedbusyidle",path:"rtc/plugins/execution/BatchedBusyIdleServiceProvider",isSharedPlugin:!0},{id:"rtc.contextualselection.utility",path:"rtc/plugins/language/matlab/contextualselection/ContextualSelectionUtilityProvider"},{id:"rtc.connectivity.contributors.connector",path:"rtc/plugins/service/connectivity/ConnectorConnectivityContributorProvider",subsystem:"rtc.connectivity.contributors",requiredForSubsystem:!0,isSharedPlugin:!0},{id:"rtc.connectivity.service",path:"rtc/plugins/service/connectivity/ConnectivityServiceProvider",isSharedPlugin:!0},{id:"rtc.editorservice.synchronizationmodel",path:"rtc/plugins/documentsynchronizer/SynchronizationDataModelProvider",isSharedPlugin:!0},{id:"rtc.editorapiservice",path:"rtc/plugins/editorapiservice/EditorAPIServiceProvider",isSharedPlugin:!0},{id:"rtc.editordataservice",path:"rtc/plugins/editordataservice/EditorDataServiceProvider",isSharedPlugin:!0},{id:"rtc.editordataservice.plugincontainer",path:"rtc/plugins/editordataservice/DefaultPluginContainerProvider",isSharedPlugin:!0},{id:"rtc.editordataservicemanager",path:"rtc/plugins/editordataservice/EditorDataServiceManagerProvider",isSharedPlugin:!0},{id:"rtc.executionservice",path:"rtc/execution/ExecutionServiceProvider",isSharedPlugin:!0},{id:"rtc.externalchangeloadnotifier",path:"rtc/datamodel/ExternalChangeLoadNotifierProvider",isSharedPlugin:!0},{id:"rtc.helpservice",path:"rtc/plugins/language/matlab/contextualselection/HelpServiceProvider"},{id:"rtc.hyperlinkservice",path:"rtc/hyperlinkservice/HyperlinkServiceProvider"},{id:"rtc.indentutilities",path:"rtc/plugins/indentutilities/IndentUtilitiesProvider"},{id:"rtc.preferences.service",path:"rtc/preferences/PreferencesServiceProvider"},{id:"rtc.service.documentloaded",path:"rtc/plugins/debug/DocumentLoadedServiceProvider",isSharedPlugin:!0},{id:"rtc.settings.service",path:"rtc/plugins/settings/InMemorySettingServiceProvider",isSharedPlugin:!0},{id:"rtc.settings.service",path:"rtc/plugins/settings/matlab/RtcMatlabSettingServiceProvider",isSharedPlugin:!0},{id:"rtc.tooltipservice",path:"rtc/plugins/service/TooltipServiceProvider"},{id:"rtc.view.hidden.hiddennodeservice",path:"rtc/view/hidden/HiddenNodeServiceProvider"},{id:"rtc.view.visibility",path:"rtc/view/VisibilityNotifierProvider"},{id:"rtc.view.visibilityservice",path:"rtc/plugins/view/VisibilityServiceProvider",isSharedPlugin:!0},{id:"rtc.view.current",path:"rtc/plugins/core/CurrentViewProvider"},{id:"rtc.editortabservice",path:"rtc/plugins/editortabservice/EditorTabServiceProvider",isSharedPlugin:!0},{id:"rtc.idlenotifier",path:"rtc/model/document/DocumentIdleNotifierProvider",isSharedPlugin:!0},{id:"rtc.actionloggerserviceblacklist",path:"rtc/plugins/ddux/ActionLoggerServiceBlacklistProvider",family:"ddux"},{id:"rtc.actiondelegationservice",path:"rtc/actiondataservice/ActionDelegationServiceProvider"},{id:"rtc.functionargumentnotifier",path:"rtc/plugins/functionnotifier/FunctionArgumentNotifierProvider"},{id:"rtc.allfunctionnotifier",path:"rtc/plugins/functionnotifier/AllFunctionNotifierProvider",isSharedPlugin:!0},{id:"rtc.localfunctionnotifier",path:"rtc/plugins/functionnotifier/LocalFunctionNotifierProvider"},{id:"rtc.toplevelfunctionnotifier",path:"rtc/plugins/functionnotifier/TopLevelFunctionNotifierProvider"},{id:"rtc.code.sections.model",path:"rtc/plugins/language/matlab/sections/SectionModelProvider",family:"sections",isSharedPlugin:!0},{id:"rtc.code.sections.current",path:"rtc/plugins/language/matlab/sections/CurrentSectionModelProvider",family:"sections"}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{functionComparator:function(e,t){return e.equals(t)},getFunctionArgsInfoForOffset:function(e,t,i){var n={};if(!e)return null;var o=e.substring(0,t),r=e.substring(t,e.length),a=this._getLastUnClosedOpenParen(o);if(-1==a)return null;var s=o.substring(0,a).split(" ").pop();if(!s.trim())return null;n.functionName=s;var l=r.indexOf(")");if(n.isArgsEnclosed=-1!==l,n.isArgsEnclosed){var c=e.substring(a,t+l);n.totalArgsEnclosed=c.split(",").length}else n.totalArgsEnclosed=0;var d=e.substring(a,t);return n.currentArgumentNumber=d.split(",").length,n.text=e.substring(0,t),n.line=i,n.functionCallDepth=this._getUnclosedParenCountTillOffset(n.text),n},_getLastUnClosedOpenParen:function(e){var t=e.length,i=e.lastIndexOf("(");if(-1==i)return i;var n=e.substring(0,i),o=e.substring(i,t).indexOf(")");if(o>-1){var r=i+o,a=n+"@"+e.substring(i+1,r)+"#"+e.substring(r+1,t);i=this._getLastUnClosedOpenParen(a)}return i},_getUnclosedParenCountTillOffset:function(e){return e.split("(").length-1-(e.split(")").length-1)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211)],o=i.dj.d(n,(function(e,t){return e(null,{_LINEBREAK:"<br>",_CAUSE_REGEX:/\n(\n.+:\n\s{4}[\s\S]+$)/,constructor:function(e){this._rawReport=e},getClass:function(){throw new Error("Unimplemented API: MW.rtc.plugins.language.matlab.diagnosticmessage.MessageContentBase.getClass")},getSectionSeparator:function(){throw new Error("Unimplemented API: MW.rtc.plugins.language.matlab.diagnosticmessage.MessageContentBase.getSectionSeparator")},getDomNode:function(){var e,i,n=this._rawReport,o=this._CAUSE_REGEX.exec(n),r=o&&o[1];r&&(n=n.substring(0,o.index),r=r.replace(/\n/g,this._LINEBREAK));var a=(n=n.replace(/\n/g,this._LINEBREAK)).indexOf(this.getSectionSeparator());a>1?(e=n.substring(0,a),i=n.substring(a+this._LINEBREAK.length)):(e=n,i="");var s={className:"diagnosticMessage-wrapper "+this.getClass()},l={innerHTML:i,className:"diagnosticMessage-stackPart"},c={innerHTML:e,className:"diagnosticMessage-messagePart"},d=t.create("div",s);if(t.create("div",c,d),t.create("div",l,d),r){var u={innerHTML:r,className:"diagnosticMessage-causePart"};t.create("div",u,d)}return d}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1471)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},getEvalTextFromNode:function(e){var t=this;return e.children.map((function(e){return t._mainConverter.getEvalTextFromNode(e)})).filter((function(e){return null!==e})).join(e.CHILD_TEXT_SEPARATOR)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){this._data=e},getStartLine:function(){return this._data.startLine},getStartColumn:function(){return this._data.startColumn},getEndLine:function(){return this._data.endLine},getEndColumn:function(){return this._data.endColumn},getName:function(){return this._data.name},isTopLevelFunction:function(){return this._data.isTopLevelFunction}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(207),i(7099),i(1582)],o=i.dj.d(n,(function(e,t,i,n){return class extends t{onTokensUpdated(e){}getTokens(){e.error("API Not Implemented: AbstractTokenManager.getTokens")}getTokensOnLine(t){e.error("API Not Implemented: AbstractTokenManager.getTokensOnLine")}getNumberOfTokensOnLine(t){e.error("API Not Implemented: AbstractTokenManager.getNumberOfTokensOnLine")}getTokenOnLineColumn(t,i){e.error("API Not Implemented: AbstractTokenManager.getTokenOnLineColumn")}getNextTokenOf(t){e.error("API Not Implemented: AbstractTokenManager.getNextTokenOf")}getPreviousTokenOf(t,i){e.error("API Not Implemented: AbstractTokenManager.getPreviousTokenOf")}iterateTokens(e,t,n){const o=e?e.getLine():t+(n?-1:1),r=this.getTokens();if(o<0||o>=r.length)return null;let a;return a=e?e.getIndex():n?this.getNumberOfTokensOnLine(o):-1,new i(n,r,o,a)}_createToken(e,t){return n.createToken(e,t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7118)],o=i.dj.d(n,(function(e){var t=null;return{getInstance:function(){return null===t&&(t=new e),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(233),i(209),i(207),i(903),i(454),i(1925)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{constructor:function(){this._language=r.DEFAULT_SUPPORTED_LANGUAGES.TEXT,this._supportedLanguages={},this._targetLanguage=null,this._targetFileExtension=null,this._isLanguageSupportAdded=!1,this._addSupportedLanguage(r.DEFAULT_LANGUAGE_INFORMATION.TEXT),this._addSupportedLanguage(r.DEFAULT_LANGUAGE_INFORMATION.MATLAB)},setLanguage:function(e){if(this.isLanguageSupportedLanguage(e)){if(e!==this._language){var t=this._language;this._language=e,this.onLanguageChanged(e,t)}}else i.assert(!1,"Language not supported.")},setDescriptionForLanguage:function(e,t){this.isLanguageSupportedLanguage(e)?(this._supportedLanguages[e].description=t,e===this.getLanguage()&&this.onLanguageUpdated()):i.assert(!1,"Language not supported.")},getDescription:function(){const e=this.getLanguage();return this._supportedLanguages[e].description},onLanguageChanged:function(e,t){},onLanguageUpdated:function(){},isLanguageSupportedLanguage:function(e){return Object.keys(this._supportedLanguages).some((function(t){return t===e}))},getLanguage:function(){return this._language},getSupportedLanguages:function(){return Object.keys(this._supportedLanguages)},setTargetLanguage:function(e){this._targetLanguage=e},setFileNameToMatch:function(e){this._targetFileExtension=t.getFileNameExtension(e)},addSupportedLanguage:function(e,t,i,n,o){this._addSupportedLanguage(new a(e,t,i,n,o))},getAliasForLanguage:function(e){if(this.isLanguageSupportedLanguage(e))return this._supportedLanguages[e].aliasLanguage||e;i.assert(!1,"Language is not supported")},getRootAliasForLanguage:function(e){if(this.isLanguageSupportedLanguage(e)){for(var t=this._supportedLanguages[e].aliasLanguage;this._supportedLanguages[t]&&this._supportedLanguages[t].aliasLanguage!==t;)t=this._supportedLanguages[t].aliasLanguage;return t}i.assert(!1,"Language is not supported")},getMimeType:function(){return this._supportedLanguages[this.getLanguage()].mimeType},isCurrentLanguageAliasFor:function(e){return this._checkRecursiveAliases(this.getLanguage(),e)},areLanguagesAliases:function(e,t){return this._checkRecursiveAliases(e,t)||this._checkRecursiveAliases(t,e)},getPrimaryLanguageForFileExtension:function(e){var t=o.getLanguagesForFileExtension(e);return 0===(t=t.filter(function(e){return this.isLanguageSupportedLanguage(e)}.bind(this))).length?r.DEFAULT_SUPPORTED_LANGUAGES.TEXT:(t.sort(function(e,t){return this.getPriorityForLanguage(t)-this.getPriorityForLanguage(e)}.bind(this)),t[0])},getPriorityForLanguage:function(e){return this.isLanguageSupportedLanguage(e)?this._supportedLanguages[e].priority:(i.assert(!1,"Language is not supported"),r.LANGUAGE_PRIORITY.DEFAULT)},removeSupportedLanguage:function(e){this.isLanguageSupportedLanguage(e)?Object.keys(r.DEFAULT_SUPPORTED_LANGUAGES).indexOf(e)>=0?i.assert(!1,"Default languages cannot be removed"):(delete this._supportedLanguages[e],e===this.getLanguage()&&this._updateLanguage()):i.assert(!1,"Language cannot be removed; it is not a supported language")},_addSupportedLanguage:function(e){this.isLanguageSupportedLanguage(e.name)?i.assert(!1,"Language "+e.name+" is already supported"):(this.isLanguageSupportAdded(!1),this.onSupportedLanguageAdded(e),this._isLanguageSupportAdded||(o.addFileExtensionsForLanguage(e.name,e.fileExtensions),this._supportedLanguages[e.name]=e,this._updateLanguage()))},updateSupportForLanguage:function(e){this._supportedLanguages[e.name]=e,this._updateLanguage(),this.onSupportedLanguageUpdated(e.name)},isLanguageSupportAdded:function(e){this._isLanguageSupportAdded=e},onSupportedLanguageAdded:function(e){},onSupportedLanguageUpdated:function(e){},_updateLanguage:function(){this._targetFileExtension?this.setLanguage(this.getPrimaryLanguageForFileExtension(this._targetFileExtension)):this._targetLanguage&&this.isLanguageSupportedLanguage(this._targetLanguage)?this.setLanguage(this._targetLanguage):this.setLanguage(r.DEFAULT_SUPPORTED_LANGUAGES.TEXT)},_checkRecursiveAliases:function(e,t){if(!t)return!1;if(e===t)return!0;var i=this._supportedLanguages[e];return!(!i||i.aliasLanguage===e)&&this._checkRecursiveAliases(i.aliasLanguage,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(546)],o=i.dj.d(n,(function(e,t){return{_loadModule:function(i){const n=new e,o=new t,r=o.register(i);let a=[];i.forEach(e=>{a=a.concat(e.provides[0])});return o.loadExports(r).then(e=>{let t=[];a.forEach(i=>{t=t.concat(e.exports[i])}),n.resolve(t)}),n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7180),i(7181),i(7182),i(7183)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/DisplayLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7186),i(7187),i(7188),i(7189)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/EditorPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(747),i(206),i(1586),i(286)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{_ERROR_MESSAGE:t.fontNotRecognized,postCreate:function(){this.inherited(arguments),this.set("items",n.getStandardFontNameItems()),this.set("editable",!0),this.on("typing",this._validateWithTimeout.bind(this,this._validateFontName)),this.own(i(this.get("menu").menuItemsNode,"click",this._validateCurrentFontName.bind(this)))},onValidFontNameTyped:function(e){},_validateFontName:function(e){""!==e.trim()&&n.isFontRenderable(e)?(this.set("validationState","normal"),this.onValidFontNameTyped(e)):(this.set("validationState","error"),this.set("errorText",this._ERROR_MESSAGE))},_validateCurrentFontName:function(){this._validateFontName(this.get("value"))},_validateWithTimeout:function(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e.bind(this,t.mwEventData.currentContent),200)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(413)],o=i.dj.d(n,(function(e,t){return e([t],{postCreate:function(){this.inherited(arguments),this.set("value",this._getDefaultCodeFontSampleValue()),this.set("editable",!0)},_getDefaultCodeFontSampleValue:function(){return"The quick brown fox jumps over the lazy dog. 1234567890"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(747),i(206),i(1586),i(286)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{_ERROR_MESSAGE:t.invalidFontSize,postCreate:function(){this.inherited(arguments),this.set("items",n.getStandardFontSizeItems()),this.set("editable",!0),this.on("typing",this._validateFontSizeFromEvent.bind(this)),this.own(i(this.get("menu").menuItemsNode,"click",this._validateCurrentFontSize.bind(this)))},onValidFontSizeTyped:function(e){},_validateFontSize:function(e){Number(e)>0?(this.set("validationState","normal"),this.onValidFontSizeTyped(e)):(this.set("validationState","error"),this.set("errorText",this._ERROR_MESSAGE))},_validateCurrentFontSize:function(){this._validateFontSize(this.get("value"))},_validateFontSizeFromEvent:function(e){this._validateFontSize(e.mwEventData.currentContent)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1586),i(286)],o=i.dj.d(n,(function(e,t,i){return e([i],{postCreate:function(){this.inherited(arguments),this.set("items",t.getStandardFontStyleItems()),this.set("editable",!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(747)],o=i.dj.d(n,(function(e){return{_TOOLS:[{label:e.editor,value:"editor",customFontSettingBase:["matlab","fonts","custom","editor"]}],getTools:function(){return this._TOOLS},getToolFromValue:function(e){return this._TOOLS.find((function(t){return e===t.value}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7201),i(7202),i(7203),i(7204)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/KeyboardPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(7212),i(236),i(7217),i(7218),i(273),i(262),i(269),i(243),i(258),i(241),i(531),i(2442),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return class{constructor(e){this._EXTENSIONS_SETTING_KEY="Extensions",this._ADD_BUTTON_TAG="addButton",this._REMOVE_BUTTON_TAG="removeButton",this._STRING_SEPARATOR=";",this._settingPath=e.settingPath,this._languageName=e.languageName,this._nodes=e.nodes,this._treeData=[];var i=e.nodes.fileExtensionsNode,n=document.createElement("legend");n.textContent=t.fileExtensionsLabel,i.appendChild(n),this._getCurrentExtensionSettingValues(),this._creationFileExtensionsTree(),this._createAddAndRemoveButtons(),this._placeAddAndRemoveButtons()}_getCurrentExtensionSettingValues(){Object.keys(n).forEach(e=>{let t=e.toLowerCase();o.getExtensionsOfLanguage(t)||("vrml"===t?o.setPropertyInMap(t,n[e].split(this._STRING_SEPARATOR)):p.getSetting(["matlab","editor","language",t],this._EXTENSIONS_SETTING_KEY).then(e=>{o.setPropertyInMap(t,e.value.split(this._STRING_SEPARATOR))},()=>{o.setPropertyInMap(t,n[e].split(this._STRING_SEPARATOR))}))})}_isAnotherLanguageExtension(e,t){let i=o.getExtensionsOfLanguage(e.toLowerCase()),r=n[e].split(this._STRING_SEPARATOR);return void 0===i&&(i=r),r.forEach(e=>{if(e&&i.includes(e)){let i=t.indexOf(e);i>-1&&t.splice(i,1)}}),t}_creationFileExtensionsTree(){this._treeData=[],this.datastore=new h(this._treeData);var e={dataTestId:"myTree",plugins:[u.PLUGINS.MultipleNodeSelection]};this._treeWidget=new u(this.datastore,e),this._treeWidget.expandAll(),this._nodes.treeNode.appendChild(this._treeWidget.domNode),this._treeWidget.startup(),p.getSetting(this._settingPath,this._EXTENSIONS_SETTING_KEY).then(e=>{let t=e.value.split(this._STRING_SEPARATOR);"CPP"===this._languageName?t=this._isAnotherLanguageExtension("C",t):"XML"===this._languageName&&(t=this._isAnotherLanguageExtension("HTML",t)),o.setPropertyInMap(this._languageName.toLowerCase(),t),this._pushTreeData(t)})}_createAddAndRemoveButtons(){this._addButton=new l({text:t.addButtonLabel,tag:this._ADD_BUTTON_TAG}),this._removeButton=new l({text:t.removeButtonLabel,tag:this._REMOVE_BUTTON_TAG}),this._addButton.domNode.addEventListener("click",this._createFileExtenstionDialog.bind(this)),this._removeButton.domNode.addEventListener("click",this._deleteItems.bind(this))}_createFileExtenstionDialog(){var e=document.createElement("div");this._createTextField(e),this._createFileExtensionsWidget(e)}_createTextField(i){var n=new s({text:t.textContentLabel,icon:"icon_dialog_question_32",tag:"fileextensions_input"});e.place(n.domNode,i);var o=document.createElement("br");e.place(o,i),this.textField=new c({value:""}),this.textField.domNode.style.marginLeft="38px",this.textField.placeAt(i),this.textField.startup(),this.textField.on("typing",this._validateContent.bind(this))}_createFileExtensionsWidget(e){this._fileExtensionsWidget=a.createDialog({title:t.fileExtensionsDialogTitle,content:e,buttons:[r.OK,r.CANCEL],dialogType:a.MODAL,"data-test-id":"fileextensions_dialog",draggable:!0}),this._fileExtensionsWidget.addButtonEventListener(r.OK,this._onOK.bind(this)),this._fileExtensionsWidget.addButtonEventListener(r.CANCEL,this._closeFileExtensionDialog.bind(this)),this._fileExtensionsWidget.disableButton(r.OK)}_validateContent(e){const i=e.mwEventData.currentContent;this.textField.set("validationState","normal"),0!==i.trim().length?this._fileExtensionsWidget.enableButton(r.OK):this._fileExtensionsWidget.disableButton(r.OK),i.length>100&&this._setTextFieldwithErrorText(t.extensionLengthLimitMessage),/.*;.*/g.test(i)&&this._setTextFieldwithErrorText(t.semiColonErrorMessage)}_setTextFieldwithErrorText(e){this.textField.errorText=e,this.textField.set("validationState","error"),this._fileExtensionsWidget.disableButton(r.OK)}_onOK(){this._validateAddedExtension()||(o.setPropertyInMap(this._languageName.toLowerCase(),this.textField.value),this._pushTreeData([this.textField.value]),this._treeWidget.setSelection([{id:this.textField.value,label:this.textField.value}]),this._treeWidget.scrollTo(u.LAST_NODE)),this._closeFileExtensionDialog()}_validateAddedExtension(){if(this.textField.value=this.textField.value.trim(),this._treeData.length+1>100)return this._showAlertDialog(t.extensionLimitMessage),!0;const e=/^\.*/g;return!(!/\./g.test(this.textField.value)||(this.textField.value=this.textField.value.replace(e,""),0!==this.textField.value.trim().length))||this._isDuplicateExtension()}_isDuplicateExtension(){var e;return!!Object.keys(n).some(t=>{let i=o.getExtensionsOfLanguage(t.toLowerCase());if(i&&i.includes(this.textField.value))return e=t,!0})&&(e===this._languageName?this._showAlertDialog(t.duplicateExtensionWithInSamePreference):this._showAlertDialog(i.substitute(t.duplicateExtensionMessage,{extension:this.textField.value,language:e})),!0)}_showAlertDialog(e){return d.displayAlertDialog(t.alertDialogTitle,e,{icon:"warning"}),!0}_closeFileExtensionDialog(){this._fileExtensionsWidget.close()}_deleteItems(){var e=o.getExtensionsOfLanguage(this._languageName.toLowerCase());this._treeWidget.getSelection().forEach(t=>{let i=e.indexOf(t.id);i>-1&&e.splice(i,1)}),o.setPropertyInMap(this._languageName.toLowerCase(),e),this._treeData=[],this._pushTreeData(e)}_pushTreeData(e){e.forEach(e=>{0!==e.length&&this._treeData.push({id:e,label:e,parent:null})}),this.datastore.replaceAll(this._treeData)}restoreDefaults(){this._treeData=[];let e=n[this._languageName].split(this._STRING_SEPARATOR),i=e.length;e=this._checkAndUpdateDefaultExtensions(e),e.length!==i&&this._showAlertDialog(t.duplicateExtensionMessageWhileRestore),this._pushTreeData(e),o.setPropertyInMap(this._languageName.toLowerCase(),e)}_checkAndUpdateDefaultExtensions(e){let t;return e=e.filter(e=>!Object.keys(n).some(i=>{let n=o.getExtensionsOfLanguage(i.toLowerCase());if(t=!1,n&&n.includes(e)&&(t=!0),i===this._languageName&&(t=!1),"C"===this._languageName&&"CPP"===i||"HTML"===this._languageName&&"XML"===i){let n=o.getExtensionsOfLanguage(i.toLowerCase());if(!n)return!1;let r=n.filter(t=>t===e).length;t=r>1}return t}))}_placeAddAndRemoveButtons(){this._addButton.placeAt(this._nodes.addButtonNode),this._removeButton.placeAt(this._nodes.removeButtonNode)}startup(){this._addButton.startup(),this._removeButton.startup()}commitPrefsChanges(){var e=o.getExtensionsOfLanguage(this._languageName.toLowerCase()).join(this._STRING_SEPARATOR);"CPP"===this._languageName?this._checkDefaultExtensionsAndUpdate("C",e):"XML"===this._languageName&&this._checkDefaultExtensionsAndUpdate("HTML",e),p.setSetting(this._settingPath,this._EXTENSIONS_SETTING_KEY,e)}_checkDefaultExtensionsAndUpdate(e,t){var i=o.getExtensionsOfLanguage(e.toLowerCase());n[e].split(";").forEach(n=>{i.indexOf(n)>=0&&(t="C"===e?t.replace(/^/,"c;"):t.concat(this._STRING_SEPARATOR,n))})}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(212),i(2443),i(1211),i(7219),i(7220),i(2444),i(2445),i(1212),i(994),i(7229),i(2446),i(7232),i(2448),i(2447),i(486)],o=i.dj.d(n,(function(e,t,i,n,o,l,c,d,u,h,p,f,g,m,_){var v=function(t){var i=new e;setTimeout((function(){return t(i.resolve,i.reject)}),0),this.then=i.promise.then},b={CHILD:"child",ROOT:"root",ANCESTOR:"ancestor",SIBLING:"sibling"};Object.freeze(b);var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.id=t.id,e.level=t.level,e.isExpanded=t.isExpanded,e.isExpandable=t.isExpandable,e.check=t.check,e.highlight=t.highlight,e.hasOwnProperty("path")||Object.defineProperty(e,"path",{get:function(){return t.path}})},C=function(){function e(t,i,n,o,r,a,l){s(this,e),this.id=t,this._path=o,this.level=n,this.isExpandable=a,this.isExpanded=r,this.data=i,null!==l&&(this.check=l)}return a(e,[{key:"path",get:function(){if(!this._fullPath){for(var e=new Array(this.level),t=this._path,i=this.level;i>=0;i-=1)e[i]=t.id,t=t.parent;this._fullPath=e}return this._fullPath}}]),e}();return function(){function T(e){var o=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,T);var a={deprecated:{module:"mw-tree-data-model"},removalVersion:"R2022a",replacement:{module:"mw-data-model"},geckNumber:2448344,deprecationLevel:_.WARN};_.deprecated(a),this._on=new t,this._listeners=[],this._dataSize=i.range(),this._expandCollapseToggle=new n({allExpanded:r.allExpanded}),this.replaceAll(e,r),this._expandCollapseState={filtering:!1},this._metaDataRules=new h,this._listeners.push(this._metaDataRules.on("metaDataChanged",(function(e){for(var t=[],n=[],r=0;r<e.rangeList.length;r+=1){var a=e.rangeList[r];if(i.isRowRange(a)){var s=a.setColumns(0,0);n.push(s)}if(i.isColumnRange(a)){var l=a.setRows(0,0);t.push(l)}}t.length>0&&o._emitPagedColumnMetaDataChanged(t),n.length>0&&o._emitPagedRowMetaDataChanged(n),o._dataChanged(e.rangeList)})))}return a(T,[{key:"addMetaDataRule",value:function(e,t){this._metaDataRules.add(e,t)}},{key:"removeMetaDataRule",value:function(e){this._metaDataRules.remove(e)}},{key:"createMetaDataRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.node&&(e.row=e.node,t||(t={type:p.dataSelectorTypes.node})),"hierarchy"===t.type&&(e.node&&(e.row=e.node),Array.isArray(t.value)||(t.value=[t.value])),p.create(e,t)}},{key:"replaceAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.isCheckboxTree&&(this.updateChecked=this._updateChecked,this.getCheckNodes=this._getCheckNodes,this._isCheckboxTree=!0),this._internalDataStore=new o(e,{getParentId:t.getParentId,setParentId:t.setParentId,getId:t.getId,isExpanded:this._isExpanded.bind(this),createTreeNode:this._createTreeNode.bind(this),sorted:t.sorted,isCheckboxTree:this._isCheckboxTree,getCheck:t.getCheck,setCheck:t.setCheck}),this._dataSave=t.dataSave||{},this._getParentId=this._internalDataStore.getParentId.bind(this._internalDataStore),this._flattenedTree=[],this._flatten=this._internalDataStore.flatten.bind(this._internalDataStore),this._flattenedTree=this._flatten(),this._updateDataSize(),this._dataChanged([i.range().setRows(0,1/0).setColumns(0,0)])}},{key:"managePaging",value:function(e){}},{key:"_calculateDataSize",value:function(){return i.range().setRows(0,this._flattenedTree.length-1).setColumns(0,0)}},{key:"_updateDataSize",value:function(){var e=this,t=this._calculateDataSize();i.isRangeEqual(t,this.dataSize)||(this._dataSize=t,setTimeout((function(){e._lastEmitDataSize&&i.isRangeEqual(e._lastEmitDataSize,e.dataSize)||(e._on.emit("dataSizeChanged",{dataSize:e.dataSize}),e._lastEmitDataSize=e.dataSize)}),0))}},{key:"getLocalRowMetaData",value:function(e){var t=this._flattenedTree[e],i={};t&&y(i,t);var n=this._metaDataRules.getRowMetaData({rowIndex:e,dynamic:i});return y(n,t),n}},{key:"getLocalColumnMetaData",value:function(e){return this._metaDataRules.getColumnMetaData({columnIndex:e,dynamic:{}})}},{key:"getLocalCellMetaData",value:function(e,t){var i=this.getLocalCellData(e,t),n=null;if(void 0!==i){var o=this._flattenedTree[e],r=this._internalDataStore.getAncestorIds(o.id),a=r.length>0?r[0]:null;y(n={value:i,parentId:a},o)}return this._metaDataRules.getCellMetaData({rowIndex:e,columnIndex:t,dynamic:n})}},{key:"getLocalCellData",value:function(e){return this._flattenedTree[e]}},{key:"getData",value:function(e){var t=this,n=e.slice();return new v((function(e,o){var r=[];n.forEach((function(e,n){if(i.isRangeInside(t.dataSize,e)){var a=e.rows.start,s=e.rows.end,l=e.columns.start,c=e.columns.end,d=t._getCellBlock(a,s,l,c);d.range=e,r[n]=d}else o(new Error("Range exceeds data size"))})),e(r)}))}},{key:"_getCellBlock",value:function(e,t,i,n){for(var o=[],r=e;r<=t;r+=1){for(var a=[],s=i;s<=n;s+=1)a[s]=this.getLocalCellData(r,s);o[r]=a}return o}},{key:"_calculateNodePath",value:function(e){var t=this._internalDataStore.getAncestorIds(e);return t.reverse(),t.push(e),t}},{key:"_createTreeNode",value:function(e,t,i,n,o,r,a){var s=this._isCheckboxTree?a:null;return new C(e,t,i,n,o,r,s)}},{key:"_isExpanded",value:function(e){return this._expandCollapseToggle.isExpanded(e)}},{key:"expandAll",value:function(){var e=this._expandCollapseToggle.expandAll();return this._updateTreeData(e),new v((function(e){setTimeout(e,0)}))}},{key:"collapseAll",value:function(){var e=this._expandCollapseToggle.collapseAll();return this._updateTreeData(e),new v((function(e){setTimeout(e,0)}))}},{key:"expand",value:function(e){if(!Array.isArray(e))throw new Error("'expand' expected an array in proxyNodeList.");var t=this._expandCollapseToggle.expand(e);return this._updateTreeData(t),new v((function(e){setTimeout(e,0)}))}},{key:"collapse",value:function(e){if(!Array.isArray(e))throw new Error("'collapse' expected an array in proxyNodeList.");var t=this._expandCollapseToggle.collapse(e);return this._updateTreeData(t),new v((function(e){setTimeout(e,0)}))}},{key:"sort",value:function(e){var t=this._internalDataStore.runSort(e);return this._updateTreeData(t),new v((function(e){setTimeout(e,0)}))}},{key:"registerSortType",value:function(e){var t=e.name,i=e.compareFn;if(!t||"string"!=typeof t||!i||"function"!=typeof i)throw new Error("A valid compare type name and comparator function must be specified");if(-1!==t.indexOf("."))throw new Error("The name of sort type cannot contain a period.");return this._internalDataStore.registerCustomSort(t,i),t}},{key:"expandTo",value:function(e){var t=this;e=l.normalize(e);var i=this._internalDataStore.getAncestorIds(e.id).map((function(e){return{id:e}}));return this.expand(i).then((function(){return t.getNode(e)}))}},{key:"add",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{place:"last"};e=l.normalize(e),i.node&&(i.node=l.normalize(i.node));var n={parentId:e.id,node:t,options:i};return this._doSaveOperation(this._dataSave.beforeAdd,this._add,n)}},{key:"_add",value:function(e){var t=this._internalDataStore.add(e.parentId,e.node,e.options);t.changedIds=this._getCheckBoxTreeChangedIds(t),this._updateTreeData(t)}},{key:"_getCheckBoxTreeChangedIds",value:function(e){var t=this;if(e.changeOccurred&&this._isCheckboxTree){var i=new Set;return e.changedIds.forEach((function(e){t._internalDataStore.getAncestorIds(e).forEach((function(e){i.add(e)}))})),e.changedIds.concat(Array.from(i))}return e.changedIds}},{key:"remove",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{keepChildren:!1};t=l.normalize(t);var n=this._internalDataStore.getAncestorIds(t.id),o={parentId:n.length>0?n[0]:null,removeId:t.id,options:i};return this._doSaveOperation(this._dataSave.beforeRemove,this._remove,o)}},{key:"_remove",value:function(e){var t=this._isExpanded(e.parentId),i=this._internalDataStore.remove(e.parentId,e.removeId,e.options);t&&(i.changedIds?i.changedIds.push(e.parentId):i.changedIds=[e.parentId],i.changedIds=this._getCheckBoxTreeChangedIds(i)),this._updateTreeData(i)}},{key:"move",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{place:"last"};i=l.normalize(i),t=l.normalize(t),n.node&&(n.node=l.normalize(n.node));var o=this._internalDataStore.getAncestorIds(t.id),r={parentId:o.length>0?o[0]:null,newParentId:i.id,nodeToMoveId:t.id,options:n};return this._doSaveOperation(this._dataSave.beforeMove,this._move,r)}},{key:"_move",value:function(e){var t=this._isExpanded(e.parentId),i=this._isExpanded(e.newParentId),n=void 0;(n=this._internalDataStore.move(e.parentId,e.nodeToMoveId,e.newParentId,e.options)).changeOccurred&&(t&&(n.changedIds?n.changedIds.push(e.parentId):n.changedIds=[e.parentId]),i&&(n.changedIds?n.changedIds.push(e.newParentId):n.changedIds=[e.newParentId]),n.changedIds=this._getCheckBoxTreeChangedIds(n),this._updateTreeData(n))}},{key:"update",value:function(e,t,i){t=l.normalize(t);var n=this._internalDataStore.getAncestorIds(t.id),o={parentId:n.length>0?n[0]:null,updateId:t.id,fieldsToMerge:i};return this._doSaveOperation(this._dataSave.beforeUpdate,this._update,o)}},{key:"_update",value:function(e){var t=this._internalDataStore.update(e.parentId,e.updateId,e.fieldsToMerge);t.changedIds=this._getCheckBoxTreeChangedIds(t),this._updateTreeData(t)}},{key:"_doSaveOperation",value:function(t,i,n){var o=this,r=void 0;if(t)r=t.call(this,n);else{var a=new e;a.resolve({}),r=a.promise}return r.then((function(e){try{i.call(o,n)}catch(e){throw e.reason=c[e.reason]||c.ERROR_UNKNOWN,e.custom=e.custom||{},e.success=!1,e}return{message:e.message||"",reason:"",custom:e.custom||{},success:!0}}),(function(e){var t=new Error(e.message||"");throw t.reason=c[e.reason]||c.ERROR_UNKNOWN,t.custom=e.custom||{},t.success=!1,t}))}},{key:"getNode",value:function(e,t){var i=this;return e=l.normalize(e),new Promise((function(n,o){var r=d.findIndex(i._flattenedTree,(function(t){return e.id===t.id})),a=null;if(t){if(f.isValidCriteria(t)){var s=r>=0?i._queryMetaData(r,t):null;n(a=null!=s?{index:s,node:i._flattenedTree[s]}:null)}o(new Error("invalid options criteria"))}else r>=0&&(a={index:r,node:i._flattenedTree[r]}),n(a)}))}},{key:"getParentNode",value:function(e){var t=this;return e=l.normalize(e),this.getNode(e).then((function(e){if(e){var i=void 0,n=t._internalDataStore.getAncestorIds(e.node.id);return n.length>0&&(i=n[0]),t.getNode({id:i})}return new v((function(e){return e(null)}))}))}},{key:"filter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{displayChildren:!1};this._expandCollapseState.filtering||(this._expandCollapseState=this._expandCollapseToggle.getState(),this._expandCollapseState.filtering=!0);var i=this._internalDataStore.normalizeFilterCriteria(e),n=this._internalDataStore.filterTreeNodes(i,t);return this._updateTreeData(n),new v((function(e){setTimeout(e,0)}))}},{key:"clearFilter",value:function(){if(this._expandCollapseState.filtering){var e=this._internalDataStore.clearFilter();this._expandCollapseToggle.setState(this._expandCollapseState),this._expandCollapseState.filtering=!1,this._updateTreeData(e)}return new v((function(e){setTimeout(e,0)}))}},{key:"search",value:function(e){var t={field:"",value:""};if(!e||!(e.field||e.and||e.or))throw new Error("Invalid Search Criteria");t=e;var i=this._internalDataStore.searchTreeNodes(t);return this._updateTreeData(i),new v((function(e){setTimeout(e,0)}))}},{key:"clearSearch",value:function(){var e=this._internalDataStore.clearSearch();return this._updateTreeData(e),new v((function(e){setTimeout(e,0)}))}},{key:"_updateChecked",value:function(e,t){var i=this._internalDataStore.updateChecked(e,t);return this._updateTreeData(i),new v((function(e){setTimeout(e,0)}))}},{key:"_getCheckNodes",value:function(){var e=this._internalDataStore.getCheckNodes();return new v((function(t){setTimeout((function(){t(e)}),0)}))}},{key:"getChildNodes",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=l.normalize(e);var n={type:"child"};n.isRecursive=i.isRecursive||!1;var o=Object.getOwnPropertyNames(i).length,a="isRecursive"in i;return("object"!==(void 0===i?"undefined":r(i))||o>1||o&&!a)&&console.warn("Invalid parameters passed, please see Tree data Store JSDoc for correct configuration"),n.node=i.node||{},new Promise((function(i){i(t._query(e,n))}))}},{key:"_updateTreeData",value:function(e){if(e.changeOccurred){var t=this._flattenedTree;this._flattenedTree=this._flatten(),this._updateDataSize();var n=-1;if(e.updateAll)n=0;else{var o=new u;e.changedIds.forEach((function(e){o.set(e,!0)}));var r,a;r=d.findIndex(t,(function(e){return o.get(e.id)})),a=d.findIndex(this._flattenedTree,(function(e){return o.get(e.id)})),n=r>=0&&a>=0?Math.min(r,a):Math.max(r,a)}n>=0&&this._dataChanged([i.range().setRows(n,1/0).setColumns(0,this.dataSize.columns.end)])}}},{key:"_dataChanged",value:function(e){this._on.emit("dataChanged",{rangeList:e});var t=this._internalDataStore.getMetaDataRanges();i.doesRangeListIntersect(e,t)&&this._emitPagedRowMetaDataChanged(e.map((function(e){return e.setColumns(0,0)})))}},{key:"_emitPagedColumnMetaDataChanged",value:function(e){this._on.emit("pagedColumnMetaDataChanged",{rangeList:e})}},{key:"_emitPagedRowMetaDataChanged",value:function(e){this._on.emit("pagedRowMetaDataChanged",{rangeList:e})}},{key:"on",value:function(e,t){var i=this._on.on(e,t);return this._listeners.push(i),i}},{key:"destroy",value:function(){this._listeners.forEach((function(e){return e.remove()})),this._metaDataRules=null,this._internalDataStore=null,this._flattenedTree=null}},{key:"_query",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.id,n=[];return n=t.isRecursive?this._getRecursiveDataItems(i):this._getNodes(i)[b.CHILD](),Object.getOwnPropertyNames(t.node).length&&(n=this._filterDataItems(t.node,n)),n}},{key:"_queryMetaData",value:function(e,t){var i=void 0,n=void 0,o=void 0,r=this._flattenedTree.length,a=t.range&&t.range.rows&&t.range.rows.start?t.range.rows.start:0,s=t.range&&t.range.rows&&t.range.rows.end?t.range.rows.end:r-1,l=a<0?0:a,c=s>r-1?r-1:s,d=t.queryCriteria,u=d&&d.compare&&d.compare.dataType?d.compare.dataType:m.dataType.DEFAULT_DATA_TYPE,h=d.metadata.field,p=d.metadata.value,_=f.getValueByType(u,p),v=void 0,b=!1;switch(t.position){case g.POSITION.NEXT:if(e>=c)return null;o=e+(i=1);break;case g.POSITION.PREVIOUS:if(e<=l)return null;o=e+(i=-1);break;case g.POSITION.FIRST:i=1,o=l;break;case g.POSITION.LAST:i=-1,o=c}for(n=o;!b;)n=o,o+=i,v=this.getLocalRowMetaData(n)[h],b=f.getValueByType(u,v)===_||(n<l||n>c);return n<l||n>s?null:n}},{key:"_getNodes",value:function(e){var t=this._internalDataStore,i=this._flattenedTree;return{child:t.getChildNodes.bind(t,e,i),sibling:t.getSiblingNodes.bind(t,e,i),root:t.getRootNodes.bind(t,e,i),ancestor:t.getAncestorNodes.bind(t,e,i)}}},{key:"_getRecursiveDataItems",value:function(e){for(var t=this._getNodes(e).child(),i=[],n=[{arr:t}];n.length>0;){for(var o=n[0].arr,r=0;r<o.length;r++){i.push(o[r]);var a=o[r].node.id;(t=this._getNodes(a).child()).length&&n.push({arr:t})}n.shift()}return i}},{key:"_filterDataItems",value:function(e,t){throw new Error("This configuration is not supported")}},{key:"dataSize",get:function(){return this._dataSize}},{key:"isCheckboxTree",get:function(){return!!this._isCheckboxTree&&!0===this._isCheckboxTree}}]),T}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._events={}}return r(e,[{key:"on",value:function(e,t){var i=this;this._events[e]||(this._events[e]=[]),this._events[e].push(t);var n={remove:function(){var o=i._events[e].indexOf(t);i._events[e].splice(o,1),n.remove=function(){return null}}};return n}},{key:"emit",value:function(e,t){var i=this._events[e],n=Object.getOwnPropertyNames(t),o={};o.eventName=e,n.forEach((function(e){o[e]=t[e]}));var r;(r=i)&&r.forEach((function(e){e(o)}))}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{validate:function(e){if(!e)throw new Error("proxyNode is required");if(!e.hasOwnProperty("id"))throw new Error("id is required for proxyNode. Path property not implimented yet.")},normalize:function(e){return this.validate(e),e}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{ERROR_CIRCULAR_REF:"ERROR_CIRCULAR_REF",ERROR_SAVE_FAILED:"ERROR_SAVE_FAILED",ERROR_VALIDATION:"ERROR_VALIDATION",ERROR_UNKNOWN:"ERROR_UNKNOWN",ERROR_NODE_NON_EXISTENT:"ERROR_NODE_NON_EXISTENT"}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1211)],o=i.dj.d(n,(function(e){var t=[e.range().setRows(0,1/0).setColumns(0,1/0)],i=function(){return!0},n=function(e){if(isNaN(e)||e<=0)throw new Error("'value' for Nth-type dataSelectorsmust be numeric and a positive number.")},o={node:{validator:function(e,t){if(!e.node)throw new Error("Metadata property should contain nodeproperty to set metadata on Tree Nodes")},getRangeList:function(e){return t},makeApplyMetaDataFunction:function(e){return i}},rangeList:{validator:function(t,i){var n=i.value;if(!Array.isArray(n))throw new Error("'rangeList' must be an array");if(t.row&&!n.every(e.isRowRange))throw new Error("Cannot set row meta data on 'non-row' ranges");if(t.column&&!n.every(e.isColumnRange))throw new Error("Cannot set column meta data on 'non-column' ranges")},getRangeList:function(e){return e.value},makeApplyMetaDataFunction:function(e){return i}},nthRow:{validator:function(e,t){var i=t.value;if(e.column)throw new Error("Cannot set column meta data on 'non-column' dataSelectors");n(i)},getRangeList:function(e){return t},makeApplyMetaDataFunction:function(e){var t=e.value;return function(e,i){return e%t==0}}},nthColumn:{validator:function(e,t){var i=t.value;if(e.row)throw new Error("Cannot set row meta data on 'non-row' dataSelectors");n(i)},getRangeList:function(e){return t},makeApplyMetaDataFunction:function(e){var t=e.value;return function(e,i){return i%t==0}}},hierarchy:{validator:function(e,t){if(e.column)throw new Error("Error in hierarchy: Cannot set column meta data on hierarchy dataSelector");if("string"!=typeof t.value&&!Array.isArray(t.value))throw new Error("Error in hierarchy: Node id must be either a string or an array")},getRangeList:function(e){return t},makeApplyMetaDataFunction:function(e){return function(t){return void 0!==t.dynamic.path&&(Array.isArray(e.value)?t.dynamic.path.some((function(t){return e.value.includes(t)})):t.dynamic.path.includes(e.value))}}},all:{validator:function(e,t){if(void 0!==t.value)throw new Error("all dataselector does not take a value")},getRangeList:function(e){return t},makeApplyMetaDataFunction:function(e){return i}}};return{create:function(e,t){var i=o[t.type];if(!i)throw new Error("dataSelector type is unknown: "+t.type);i.validator(e,t);var n=!1;"function"!=typeof e.cell&&"function"!=typeof e.row&&"function"!=typeof e.column||(n=!0);var r=i.getRangeList(t);return{getDataSelector:function(){return t},getMetaData:function(){return e},isDynamic:n,_getRangeList:function(){return r.slice(0)},_applyMetaDataFunction:i.makeApplyMetaDataFunction(t),dataSelector:t}},dataSelectorTypes:{node:"node",rangeList:"rangeList",nthRow:"nthRow",nthColumn:"nthColumn",hierarchy:"hierarchy",all:"all"}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{dataType:{BOOLEAN:"boolean",STRING:"string",NUMBER:"number",DEFAULT_DATA_TYPE:"string"}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{POSITION:{FIRST:"first",LAST:"last",NEXT:"next",PREVIOUS:"previous"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7234),i(7235),i(7236),i(7237)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/OtherLanguagesPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(817)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_NONLOCAL_VARIABLE_HIGHLIGHT_PREVIEW_CLASS:[n.NON_LOCAL_VARIABLEHIGHLIGHTING_PREVIEW],_NONLOCAL_VARIABLE_HIGHLIGHT_PREVIEW_CLASS_SELECTOR:".rtePane ."+n.NON_LOCAL_VARIABLEHIGHLIGHTING_PREVIEW+":not(."+n.VARIABLE_HIGHLIGHT_PREVIEW+")",constructor:function(e){e.updateCSSClasses(this._NONLOCAL_VARIABLE_HIGHLIGHT_PREVIEW_CLASS,this._NONLOCAL_VARIABLE_HIGHLIGHT_PREVIEW_CLASS_SELECTOR)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{_VARIABLE_MARKER_PREVIEW_CLASS:"variableMarkerPreview",constructor:function(e){e.getMarkerClass(this._VARIABLE_MARKER_PREVIEW_CLASS)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(817)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_VARIABLE_HIGHLIGHT_PREVIEW_CLASS:[n.VARIABLE_HIGHLIGHT_PREVIEW],_VARIABLE_HIGHLIGHT_PREVIEW_CLASS_SELECTOR:".rtePane ."+n.VARIABLE_HIGHLIGHT_PREVIEW,constructor:function(e){e.updateCSSClasses(this._VARIABLE_HIGHLIGHT_PREVIEW_CLASS,this._VARIABLE_HIGHLIGHT_PREVIEW_CLASS_SELECTOR)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7248),i(7249),i(7250),i(7251)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/TabPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7258),i(7259),i(7260),i(7261)],o=i.dj.d(n,(function(e,t){return t(e,"commandwindowpanel-ui/l10n/nls/CommandWindowPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7264),i(7265),i(7266),i(7267)],o=i.dj.d(n,(function(e,t){return t(e,"commandwindowpanel-ui/l10n/nls/CommandWindowCompletionPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7271),i(7272),i(7273),i(7274)],o=i.dj.d(n,(function(e,t){return t(e,"cfbprefs-ui/l10n/nls/CurrentFolderPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getRegistry:function(){return[{id:"rtc.settings.colorsservice",path:"panel-utilities-js/PreviewSettingsServiceProvider"},{id:"rtc.settings.LanguageCLikePanelSyntaxHighlighterProvider",path:"cpanel-ui/LanguageCLikePanelSyntaxHighlighterProvider"}]},getEnabledList:function(){return["rtc.settings.service","rtc.settings.colorsservice","rtc.settings.LanguageCLikePanelSyntaxHighlighterProvider","settings.matlabsynchronizer","language.common.syntaxhighlighter.colors","language.clike.syntaxhighlighter.colorcontributor","clike.tokenizer"]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{settingKeys:{KEYWORD:"KeywordColor",COMMENT:"CommentColor",STRING:"StringsColor",PREPROCESSOR:"PreprocessorColor",CHARACTER:"CharactersColor",BAD_CHARACTER:"BadCharactersColor"},pickerTags:{KEYWORD:"keywordPreview",COMMENT:"commentsPreview",STRING:"stringsPreview",PREPROCESSOR:"preProcessorPreview",CHARACTER:"charactersPreview",BAD_CHARACTER:"badCharactersPreview"}}}),e,t),e.exports=o},function(e,t){e.exports='<div class="languageCLikeprefs preferencePanelContent">\n <fieldset>\n <legend>${syntaxHighlightingLabel}</legend>\n </fieldset>\n <div data-dojo-attach-point="enableSyntaxHighlightingNode"></div>\n <fieldset class="syntaxColors">\n <div class="leftAlignedColors">\n <div class="cKeywords">\n <div class="container">\n <div class="content">${keywordsLabel}</div>\n <div class="widget" data-dojo-attach-point="keywordsNode"></div>\n </div>\n </div>\n <div class="cStrings">\n <div class="container">\n <div class="content">${stringsLabel}</div>\n <div class="widget" data-dojo-attach-point="stringsNode"></div>\n </div>\n </div>\n <div class="cCharacters">\n <div class="container">\n <div class="content">${charactersLabel}</div>\n <div class="widget" data-dojo-attach-point="charactersNode"></div>\n </div>\n </div>\n </div>\n <div class="rightAlignedColors">\n <div class="cComments">\n <div class="container">\n <div class="content">${commentsLabel}</div>\n <div class="widget" data-dojo-attach-point="commentsNode"></div>\n </div>\n </div>\n <div class="cPreprocessor">\n <div class="container">\n <div class="content">${preprocessorLabel}</div>\n <div class="widget" data-dojo-attach-point="preprocessorNode"></div>\n </div>\n </div>\n <div class="cBadCharacters">\n <div class="container">\n <div class="content">${badCharactersLabel}</div>\n <div class="widget" data-dojo-attach-point="badCharactersNode"></div>\n </div>\n </div>\n </div>\n </fieldset>\n <div class="previewPanel" data-dojo-attach-point="syntaxHighlightRTCNode" id="previewPanel"></div>\n <fieldset class="indenting">\n <legend>${applySmartIndentingLabel}</legend>\n <div data-dojo-attach-point="smartIndentingNode" class="smartIndent"></div>\n </fieldset>\n <fieldset data-dojo-attach-point="fileExtensions">\n <div class="FileExtensionsNode">\n <div class="FileExtensions CLikeFileExtensions" data-dojo-attach-point="myTreeContainer">\n </div>\n <div class="buttonsNode">\n <div data-dojo-attach-point="addButtonNode"></div>\n <div data-dojo-attach-point="removeButtonNode"></div>\n </div>\n </div>\n </fieldset>\n <div class="restore" data-dojo-attach-point="restoreDefaultsNode"></div>\n</div>'},function(e,t){e.exports='#include "util.h"\nint getlength(char type){\n if (type == \'a\'){ @ // default case\n len = strlen("default");'},function(e,t,i){var n,o;n=[i(205),i(821),i(1589)],o=i.dj.d(n,(function(e,t,i){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors"]}}createInstance(){return new t(i.colorMapDefaults,i.typeMapDefaults,...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(640),i(997),i(7293)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{_getSettingKeyToSyntaxTypeMap:function(){var e={};return e[n.KEYWORD_COLOR]=i.KEYWORD,e[n.COMMENT_COLOR]=i.COMMENT,e[n.STRING_COLOR]=i.STRING,e[n.PREPROCESSOR_COLOR]=i.PREPROCESSOR,e[n.CHARACTERS_COLOR]=i.CHARACTER,e[n.BAD_CHARACTERS_COLOR]=i.BAD_CHARACTER,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";function e(e,t,i,n,o,r){this.indented=e,this.column=t,this.type=i,this.info=n,this.align=o,this.prev=r}function t(t,i,n,o){var r=t.indented;return t.context&&"statement"==t.context.type&&"statement"!=n&&(r=t.context.indented),t.context=new e(r,i,n,o,null,t.context)}function i(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function n(e,t,i){return"variable"==t.prevToken||"variable-3"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,i))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}return function(r){function a(e){for(var t={},i=e.split(" "),n=0;n<i.length;++n)t[i[n]]=!0;return t}function s(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}r.defineMode("clike",(function(a,l){var c,d,u=a.indentUnit,h=l.statementIndentUnit||u,p=l.dontAlignCalls,f=l.keywords||{},g=l.types||{},m=l.builtin||{},_=l.blockKeywords||{},v=l.defKeywords||{},b=l.atoms||{},y=l.hooks||{},C=l.multiLineStrings,T=!1!==l.indentStatements,E=!1!==l.indentSwitch,S=l.namespaceSeparator,w=l.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,I=l.numberStart||/[\d\.]/,A=l.numberTokenizer||function(e,t){if("0"===e.next()){if(e.eat(/x/i)){if(!e.match(/^(?:(?:(?:(?:[0-9a-f]+\.?[0-9a-f]*)|(?:[0-9a-f]*\.?[0-9a-f]+))p[+\-]?[0-9]+[fl]?)|(?:[0-9a-f]+(?:u|l|ll)?))/i))return"incomplete_hex_number"}else if(e.eat(/b/i)){if(!e.match(/^[01]+(?:u|l|ll)?/i))return"incomplete_bin_number"}else e.backUp(1),e.match(/^(?:(?:(?:(?:[0-9]+\.?[0-9]*)|(?:[0-9]*\.?[0-9]+))(?:e[+\-]?[0-9]+)?[fl]?)|(?:[0-7]*(?:u|l|ll)?))/i)}else e.backUp(1),e.match(/^(?:(?:(?:(?:[0-9]+\.?[0-9]*)|(?:[0-9]*\.?[0-9]+))(?:e[+\-]?[0-9]+)?[fl]?)|(?:[1-9][0-9]*(?:u|l|ll)?))/i);var i=e.peek();if(i&&/\w|\./i.test(i))return e.match(/^(?:\w|\.)*/),"invalid_number";return"number"},x=l.isOperatorChar||/[+\-*&%=<>!?|\/\^~]/,N=l.validOperators||/^(?:=|\+=|-=|\*=|\/=|%=|&=|\|=|\^=|<<=|>>=|\+\+|--|\+|-|\*+|\/|%|~|&+|\||\^|<<|>>|!+|\|\||==|!=|<|>|<=|>=|->|\?|:)$/,L=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/;function D(e,t){var i,n=e.next();if(y[n]){var o=y[n](e,t);if(!1!==o)return o}if('"'==n||"'"==n)return t.tokenize=(i=n,function(e,t){for(var n,o=!1,r=!1;null!=(n=e.next());){if(n==i&&!o){r=!0;break}o=!o&&"\\"==n}return(r||!o&&!C)&&(t.tokenize=null),'"'==i?"string":"string-2"}),t.tokenize(e,t);if(w.test(n))return c=n,null;if(I.test(n))return e.backUp(1),A(e,t);if("/"==n){if(e.eat("*"))return t.tokenize=M,M(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(x.test(n))return e.backUp(1),function(e,t){var i="";for(;!e.match(/^\/[\/*]/,!1)&&e.match(x,!1);)i+=e.next();return N.test(i)?"operator":"invalid_operator"}(e);if(e.eatWhile(L),S)for(;e.match(S);)e.eatWhile(L);var r=e.current();return s(f,r)?(s(_,r)&&(c="newstatement"),s(v,r)&&(d=!0),"keyword"):s(g,r)?"variable-3":s(m,r)?(s(_,r)&&(c="newstatement"),"builtin"):s(b,r)?"atom":L.test(n)?"variable":(e.backUp(r.length-1),"invalid_character")}function M(e,t){for(var i,n=!1;i=e.next();){if("/"==i&&n){t.tokenize=null;break}n="*"==i}return"comment"}function P(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=n(e,t,e.pos))}return{startState:function(t){return{tokenize:null,context:new e((t||0)-u,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,r){var a=r.context;if(e.sol()&&(null==a.align&&(a.align=!1),r.indented=e.indentation(),r.startOfLine=!0),e.eatSpace())return P(e,r),null;c=d=null;var s=(r.tokenize||D)(e,r);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),":"==c&&(r.currentSwitchIndentAmount=r.indented+u),";"==c&&(r.currentSwitchIndentAmount=r.indented),";"==c||":"==c||","==c&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==r.context.type;)i(r);else if("{"==c)t(r,e.column(),"}");else if("["==c)t(r,e.column(),"]");else if("("==c)t(r,e.column(),")");else if("}"==c){for(;"statement"==a.type;)a=i(r);for("}"==a.type&&(a=i(r));"statement"==a.type;)a=i(r)}else c==a.type?i(r):T&&(("}"==a.type||"top"==a.type)&&";"!=c||"statement"==a.type&&"newstatement"==c)&&t(r,e.column(),"statement",e.current());if("variable"==s&&("def"==r.prevToken||l.typeFirstDefinitions&&n(e,r,e.start)&&o(r.context)&&e.match(/^\s*\(/,!1))&&(s="def"),y.token){var h=y.token(e,r,s);void 0!==h&&(s=h)}return"def"==s&&!1===l.styleDefs&&(s="variable"),r.startOfLine=!1,r.prevToken=d?"def":s||c,P(e,r),s},indent:function(e,t){if(e.tokenize!=D&&null!=e.tokenize||e.typeAtEndOfLine)return r.Pass;var i=e.context,n=t&&t.charAt(0);if("statement"==i.type&&"}"==n&&(i=i.prev),l.dontIndentStatements)for(;"statement"==i.type&&l.dontIndentStatements.test(i.info);)i=i.prev;if(y.indent){var o=y.indent(e,i,t);if("number"==typeof o)return o}var a=n==i.type,s=i.prev&&"switch"==i.prev.info;if(l.allmanIndentation&&/[{(]/.test(n)){for(;"top"!=i.type&&"}"!=i.type;)i=i.prev;return i.indented}return"statement"==i.type?i.indented+("{"==n?0:h):!i.align||p&&")"==i.type?")"!=i.type||a?/^(?:case|default)\b/.test(t)&&s?i.prev.indented+u:s&&"}"!==n?e.currentSwitchIndentAmount:i.indented+(a?0:u):i.indented+h:i.column+(a?0:1)},electricInput:E?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",c="int long char short double float unsigned signed void size_t ptrdiff_t";function d(e,t){if(!t.startOfLine)return!1;for(var i,n=null;i=e.peek();){if("\\"==i&&e.match(/^.$/)){n=d;break}if("/"==i&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=n,"meta"}function u(e,t){return"variable-3"==t.prevToken?"variable-3":!!e.eat("/")&&"invalid_comment_end"}function h(e,t){return e.eol()?null:"invalid_backslash"}function p(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var i=e.match(/"([^\s\\()]{0,16})\(/);return!!i&&(t.cpp11RawStringDelim=i[1],t.tokenize=g,g(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function f(e,t){for(var i;null!=(i=e.next());)if('"'==i&&!e.eat('"')){t.tokenize=null;break}return"string"}function g(e,t){var i=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+i+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function m(e,t){"string"==typeof e&&(e=[e]);var i=[];function n(e){if(e)for(var t in e)e.hasOwnProperty(t)&&i.push(t)}n(t.keywords),n(t.types),n(t.builtin),n(t.atoms),i.length&&(t.helperType=e[0],r.registerHelper("hintWords",e[0],i));for(var o=0;o<e.length;++o)r.defineMIME(e[o],t)}m(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(l),types:a(c+" bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t"),blockKeywords:a("case do else for if switch while struct"),defKeywords:a("struct"),typeFirstDefinitions:!0,atoms:a("null true false"),hooks:{"#":d,"*":u,"\\":h},modeProps:{fold:["brace","include"]}});m(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(l+" asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override and and_eq atomic_cancel atomic_commit atomic_noexcept bitand bitor char16_t char32_t compl concept export import module not not_eq or or_eq requires synchronized xor xor_eq"),types:a(c+" bool wchar_t"),blockKeywords:a("catch class do else finally for if struct switch try while"),defKeywords:a("class namespace struct enum union"),typeFirstDefinitions:!0,atoms:a("true false null"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,hooks:{"#":d,"*":u,"\\":h,u:p,U:p,L:p,R:p,token:function(e,t,i){if("variable"==i&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&(n=e.current(),(o=/(\w+)::~?(\w+)$/.exec(n))&&o[1]==o[2]))return"def";var n,o}},numberTokenizer:function(e,t){if("0"===e.next())if(e.eat(/x/i)){if(!e.match(/^(?:(?:(?:(?:[0-9a-f']+\.?[0-9a-f']*)|(?:[0-9a-f']*\.?[0-9a-f']+))p[+\-]?[0-9']+(?:ul{0,2}|l{0,2}u?)?)|(?:[0-9a-f']+l?))/i))return"incomplete_hex_number"}else if(e.eat(/b/i)){if(!e.match(/^[01']+l?/i))return"incomplete_bin_number"}else e.backUp(1),e.match(/^(?:(?:(?:(?:[0-9']+\.?[0-9']*)|(?:[0-9']*\.?[0-9']+))(?:e[+\-]?[0-9']+)?(?:ul{0,2}|l{0,2}u?)?)|(?:[0-7']*l?))/i);else e.backUp(1),e.match(/^(?:(?:(?:(?:[0-9']+\.?[0-9']*)|(?:[0-9']*\.?[0-9']+))(?:e[+\-]?[0-9']+)?(?:ul{0,2}|l{0,2}u?)?)|(?:[1-9'][0-9']*l?))/i);var i=e.peek();return i&&/\w|\./i.test(i)?(e.match(/^(?:\w|\.)*/),"invalid_number"):"number"},namespaceSeparator:"::",modeProps:{fold:["brace","include"]},validOperators:/^(?:=|\+=|-=|\*=|\/=|%=|&=|\|=|\^=|<<=|>>=|\+\+|--|\+|-|>*\*+>*|\/|%|~|>*&+>*|\||\^|<<|>>|!+|\|\||==|!=|<|>|<=|>=|<=>|->\**|\?|:)$/}),m("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface package enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),numberTokenizer:function(e,t){if("0"===e.next())if(e.eat(/x/i)){if(!e.match(/^(?:(?:(?:(?:[0-9a-f_]+\.?[0-9a-f_]*)|(?:[0-9a-f_]*\.?[0-9a-f_]+))p[+\-]?[0-9_]+[fd]?)|(?:[0-9a-f_]+l?))/i))return"incomplete_hex_number"}else if(e.eat(/b/i)){if(!e.match(/^[01_]+l?/i))return"incomplete_bin_number"}else e.backUp(1),e.match(/^(?:(?:(?:(?:[0-9_]+\.?[0-9_]*)|(?:[0-9_]*\.?[0-9_]+))(?:e[+\-]?[0-9_]+)?[fd]?)|(?:[0-7_]*l?))/i);else e.backUp(1),e.match(/^(?:(?:(?:(?:[0-9_]+\.?[0-9_]*)|(?:[0-9_]*\.?[0-9_]+))(?:e[+\-]?[0-9_]+)?[fd]?)|(?:[1-9_][0-9_]*l?))/i);var i=e.peek();return i&&/\w|\./i.test(i)?(e.match(/^(?:\w|\.)*/),"invalid_number"):"number"},hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]},validOperators:/^(?:=|>|<|!+|~|<*\?>*|:|->|==|>=|<=|!=|&&|\|\||\+\+|--|\+|-|\*|\/|&|\||\^|%|<<|>>|>>>|\+=|-=|\*=|\/=|&=|\|=|\^=|%=|<<=|>>=|>>>=)$/}),m("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=f,f(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(640),i(997),i(7311)],o=i.dj.d(n,(function(e,t,i){return class extends e{_getSettingKeyToSyntaxTypeMap(){var e={};return e[i.KEYWORD_COLOR]=t.KEYWORD,e[i.COMMENT_COLOR]=t.COMMENT,e[i.STRING_COLOR]=t.STRING,e[i.PREPROCESSOR_COLOR]=t.PREPROCESSOR,e[i.CHARACTERS_COLOR]=t.CHARACTER,e[i.BAD_CHARACTERS_COLOR]=t.BAD_CHARACTER,e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7317),i(7318),i(7319),i(7320)],o=i.dj.d(n,(function(e,t){return t(e,"javapanel-ui/l10n/nls/LanguageJavaPanelLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(640),i(1591),i(7329)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{_getSettingKeyToSyntaxTypeMap:function(){var e={};return e[n.KEYWORD_COLOR]=i.KEYWORD,e[n.COMMENT_COLOR]=i.COMMENT,e[n.STRING_COLOR]=i.STRING,e[n.CHARACTERS_COLOR]=i.CHARACTER,e[n.BAD_CHARACTERS_COLOR]=i.ERROR,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(585),i(1591)],o=i.dj.d(n,(function(e,t){return{typeMapDefaults:{keyword:t.KEYWORD,"variable-3":t.KEYWORD,atom:t.KEYWORD,string:t.STRING,"string-2":t.CHARACTER,comment:t.COMMENT,invalid_operator:t.ERROR,invalid_number:t.ERROR,invalid_character:t.ERROR,incomplete_hex_number:t.ERROR,incomplete_bin_number:t.ERROR},colorMapDefaults:function(){const i={};return i[t.KEYWORD]=new e(14,0,255),i[t.STRING]=new e(170,4,249),i[t.CHARACTER]=new e(255,64,255),i[t.COMMENT]=new e(2,128,9),i[t.ERROR]=new e(255,0,0),i}()}}),e,t),e.exports=o},function(e,t){e.exports='<div class="languageXmlPrefs preferencePanelContent">\n <fieldset>\n <legend>${syntaxHighlightingLabel}</legend>\n </fieldset>\n <div data-dojo-attach-point="enableSyntaxHighlightingNode"></div>\n <fieldset class="syntaxColors">\n <div class="leftAlignedColors">\n <div class="xmlErrors">\n <div class="container">\n <div class="content">${errorLabel}</div>\n <div class="widget" data-dojo-attach-point="errorNode"></div>\n </div>\n </div>\n <div class="xmlAttributeName">\n <div class="container">\n <div class="content">${attributeNameLabel}</div>\n <div class="widget" data-dojo-attach-point="attributeNameNode"></div>\n </div>\n </div>\n <div class="xmlAttributeValue">\n <div class="container">\n <div class="content">${attributeValueLabel}</div>\n <div class="widget" data-dojo-attach-point="attributeValueNode"></div>\n </div>\n </div>\n <div class="xmlDoctypeDeclaration">\n <div class="container">\n <div class="content">${doctypeDeclarationLabel}</div>\n <div class="widget" data-dojo-attach-point="doctypeDeclarationNode"></div>\n </div>\n </div>\n <div class="xmlProcessingInstruction">\n <div class="container">\n <div class="content">${processingInstructionLabel}</div>\n <div class="widget" data-dojo-attach-point="processingInstructionNode"></div>\n </div>\n </div>\n </div>\n <div class="rightAlignedColors">\n <div class="xmlTag">\n <div class="container">\n <div class="content">${tagLabel}</div>\n <div class="widget" data-dojo-attach-point="tagNode"></div>\n </div>\n </div>\n <div class="xmlOperator">\n <div class="container">\n <div class="content">${operatorLabel}</div>\n <div class="widget" data-dojo-attach-point="operatorNode"></div>\n </div>\n </div>\n <div class="xmlComment">\n <div class="container">\n <div class="content">${commentLabel}</div>\n <div class="widget" data-dojo-attach-point="commentNode"></div>\n </div>\n </div>\n <div class="xmlCharacter">\n <div class="container">\n <div class="content">${characterLabel}</div>\n <div class="widget" data-dojo-attach-point="characterNode"></div>\n </div>\n </div>\n <div class="xmlCdataSection">\n <div class="container">\n <div class="content">${cdataSectionLabel}</div>\n <div class="widget" data-dojo-attach-point="cdataSectionNode"></div>\n </div>\n </div>\n </div>\n </fieldset>\n <div class="previewPanel" data-dojo-attach-point="rtcNode" id="previewPanel"></div>\n <fieldset class="indenting">\n <legend>${smartIndentingLabel}</legend>\n <div class="smartIndent" data-dojo-attach-point="applySmartIndentingNode"></div>\n </fieldset>\n <fieldset data-dojo-attach-point="fileExtensions">\n <div class="FileExtensionsNode">\n <div class="FileExtensions XmlFileExtenions" data-dojo-attach-point="myTreeContainer">\n </div>\n <div class="buttonsNode">\n <div data-dojo-attach-point="addButtonNode"></div>\n <div data-dojo-attach-point="removeButtonNode"></div>\n </div>\n </div>\n </fieldset>\n <div class="restore" data-dojo-attach-point="restoreDefaultsNode"></div>\n</div>\n'},function(e,t){e.exports='<?xml version="1.0"?> \x3c!-- Comment --\x3e\n<!DOCTYPE filesystem "-//MATLAB">\n<tag name="value"><![CDATA[text]]></tag error>'},function(e,t,i){var n,o;n=[i(205),i(821),i(1593)],o=i.dj.d(n,(function(e,t,i){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors"]}}createInstance(){return new t(i.colorMapDefaults,i.typeMapDefaults,...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(640),i(1e3),i(7361)],o=i.dj.d(n,(function(e,t,i){return class extends e{_getSettingKeyToSyntaxTypeMap(){var e={};return e[i.ERROR_COLOR]=t.ERROR,e[i.ATTRIBUTE_NAME_COLOR]=t.ATTRIBUTE_NAME,e[i.ATTRIBUTE_VALUE_COLOR]=t.ATTRIBUTE_VALUE,e[i.DOCTYPE_DECLARATION_COLOR]=t.DOCTYPE_DECLARATION,e[i.PROCESSING_INSTRUCTION_COLOR]=t.PROCESSING_INSTRUCTION,e[i.TAG_COLOR]=t.TAG,e[i.OPERATOR_COLOR]=t.OPERATOR,e[i.COMMENT_COLOR]=t.COMMENT,e[i.CHARACTER_COLOR]=t.CHARACTER,e[i.CDATA_SECTION_COLOR]=t.CDATA_SECTION,e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(640),i(1e3),i(7373)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{_getSettingKeyToSyntaxTypeMap:function(){var e={};return e[n.ERROR_COLOR]=i.ERROR,e[n.ATTRIBUTE_NAME_COLOR]=i.ATTRIBUTE_NAME,e[n.ATTRIBUTE_VALUE_COLOR]=i.ATTRIBUTE_VALUE,e[n.DOCTYPE_DECLARATION_COLOR]=i.DOCTYPE_DECLARATION,e[n.PROCESSING_INSTRUCTION_COLOR]=i.PROCESSING_INSTRUCTION,e[n.TAG_COLOR]=i.TAG,e[n.OPERATOR_COLOR]=i.OPERATOR,e[n.COMMENT_COLOR]=i.COMMENT,e[n.CHARACTER_COLOR]=i.CHARACTER,e[n.CDATA_SECTION_COLOR]=i.CDATA_SECTION,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return function(e){function t(e){for(var t={},i=0;i<e.length;++i)t[e[i].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,i){var n=i.inline;i.propertyKeywords||(i=e.resolveMode("text/css"));var o,r,a=t.indentUnit,s=i.tokenHooks,l=i.documentTypes||{},c=i.mediaTypes||{},d=i.mediaFeatures||{},u=i.mediaValueKeywords||{},h=i.propertyKeywords||{},p=i.nonStandardPropertyKeywords||{},f=i.fontProperties||{},g=i.counterDescriptors||{},m=i.colorKeywords||{},_=i.valueKeywords||{},v=i.allowNested,b=i.lineComment,y=!0===i.supportsAtComponent;function C(e,t){return o=t,e}function T(e,t){var i=e.next();if(s[i]){var n=s[i](e,t);if(!1!==n)return n}return"@"==i?(e.eatWhile(/[\w\\\-]/),C("def",e.current())):"="==i||("~"==i||"|"==i)&&e.eat("=")?C(null,"compare"):'"'==i||"'"==i?(t.tokenize=E(i),t.tokenize(e,t)):"#"==i?(e.eatWhile(/[\w\\\-]/),C("atom","hash")):"!"==i?(e.match(/^\s*\w*/),C("keyword","important")):/\d/.test(i)||"."==i&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),C("number","unit")):"-"!==i?/[,+>*\/]/.test(i)?C(null,"select-op"):"."==i&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?C("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(i)?C(null,i):("u"==i||"U"==i)&&e.match(/rl(-prefix)?\(/i)||("d"==i||"D"==i)&&e.match("omain(",!0,!0)||("r"==i||"R"==i)&&e.match("egexp(",!0,!0)?(e.backUp(1),t.tokenize=S,C("property","word")):/[\w\\\-]/.test(i)?(e.eatWhile(/[\w\\\-]/),C("property","word")):C(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),C("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?C("variable-2","variable-definition"):C("variable-2","variable")):e.match(/^\w+-/)?C("meta","meta"):void 0}function E(e){return function(t,i){for(var n,o=!1;null!=(n=t.next());){if(n==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==n}return(n==e||!o&&")"!=e)&&(i.tokenize=null),C("string","string")}}function S(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=E(")"),C(null,"(")}function w(e,t,i){this.type=e,this.indent=t,this.prev=i}function I(e,t,i,n){return e.context=new w(i,t.indentation()+(!1===n?0:a),e.context),i}function A(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function x(e,t,i){return D[i.context.type](e,t,i)}function N(e,t,i,n){for(var o=n||1;o>0;o--)i.context=i.context.prev;return x(e,t,i)}function L(e){var t=e.current().toLowerCase();r=_.hasOwnProperty(t)?"atom":m.hasOwnProperty(t)?"keyword":"variable"}var D={top:function(e,t,i){if("{"==e)return I(i,t,"block");if("}"==e&&i.context.prev)return A(i);if(y&&/@component/i.test(e))return I(i,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return I(i,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return I(i,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return i.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return I(i,t,"at");if("hash"==e)r="builtin";else if("word"==e)r="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return I(i,t,"interpolation");if(":"==e)return"pseudo";if(v&&"("==e)return I(i,t,"parens")}return i.context.type},block:function(e,t,i){if("word"==e){var n=t.current().toLowerCase();return h.hasOwnProperty(n)?(r="property","maybeprop"):p.hasOwnProperty(n)?(r="string-2","maybeprop"):v?(r=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(r+=" error","maybeprop")}return"meta"==e?"block":v||"hash"!=e&&"qualifier"!=e?D.top(e,t,i):(r="error","block")},maybeprop:function(e,t,i){return":"==e?I(i,t,"prop"):x(e,t,i)},prop:function(e,t,i){if(";"==e)return A(i);if("{"==e&&v)return I(i,t,"propBlock");if("}"==e||"{"==e)return N(e,t,i);if("("==e)return I(i,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)L(t);else if("interpolation"==e)return I(i,t,"interpolation")}else r+=" error";return"prop"},propBlock:function(e,t,i){return"}"==e?A(i):"word"==e?(r="property","maybeprop"):i.context.type},parens:function(e,t,i){return"{"==e||"}"==e?N(e,t,i):")"==e?A(i):"("==e?I(i,t,"parens"):"interpolation"==e?I(i,t,"interpolation"):("word"==e&&L(t),"parens")},pseudo:function(e,t,i){return"meta"==e?"pseudo":"word"==e?(r="variable-3",i.context.type):x(e,t,i)},documentTypes:function(e,t,i){return"word"==e&&l.hasOwnProperty(t.current())?(r="tag",i.context.type):D.atBlock(e,t,i)},atBlock:function(e,t,i){if("("==e)return I(i,t,"atBlock_parens");if("}"==e||";"==e)return N(e,t,i);if("{"==e)return A(i)&&I(i,t,v?"block":"top");if("interpolation"==e)return I(i,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();r="only"==n||"not"==n||"and"==n||"or"==n?"keyword":c.hasOwnProperty(n)?"attribute":d.hasOwnProperty(n)?"property":u.hasOwnProperty(n)?"keyword":h.hasOwnProperty(n)?"property":p.hasOwnProperty(n)?"string-2":_.hasOwnProperty(n)?"atom":m.hasOwnProperty(n)?"keyword":"error"}return i.context.type},atComponentBlock:function(e,t,i){return"}"==e?N(e,t,i):"{"==e?A(i)&&I(i,t,v?"block":"top",!1):("word"==e&&(r="error"),i.context.type)},atBlock_parens:function(e,t,i){return")"==e?A(i):"{"==e||"}"==e?N(e,t,i,2):D.atBlock(e,t,i)},restricted_atBlock_before:function(e,t,i){return"{"==e?I(i,t,"restricted_atBlock"):"word"==e&&"@counter-style"==i.stateArg?(r="variable","restricted_atBlock_before"):x(e,t,i)},restricted_atBlock:function(e,t,i){return"}"==e?(i.stateArg=null,A(i)):"word"==e?(r="@font-face"==i.stateArg&&!f.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==i.stateArg&&!g.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,i){return"word"==e?(r="variable","keyframes"):"{"==e?I(i,t,"top"):x(e,t,i)},at:function(e,t,i){return";"==e?A(i):"{"==e||"}"==e?N(e,t,i):("word"==e?r="tag":"hash"==e&&(r="builtin"),"at")},interpolation:function(e,t,i){return"}"==e?A(i):"{"==e||";"==e?N(e,t,i):("word"==e?r="variable":"variable"!=e&&"("!=e&&")"!=e&&(r="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:n?"block":"top",stateArg:null,context:new w(n?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var i=(t.tokenize||T)(e,t);return i&&"object"==typeof i&&(o=i[1],i=i[0]),r=i,"comment"!=o&&(t.state=D[t.state](o,e,t)),r},indent:function(e,t){var i=e.context,n=t&&t.charAt(0),o=i.indent;return"prop"!=i.type||"}"!=n&&")"!=n||(i=i.prev),i.prev&&("}"!=n||"block"!=i.type&&"top"!=i.type&&"interpolation"!=i.type&&"restricted_atBlock"!=i.type?(")"!=n||"parens"!=i.type&&"atBlock_parens"!=i.type)&&("{"!=n||"at"!=i.type&&"atBlock"!=i.type)||(o=Math.max(0,i.indent-a)):o=(i=i.prev).indent),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var i=["domain","regexp","url","url-prefix"],n=t(i),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],r=t(o),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],c=t(l),d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],u=t(d),h=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],p=t(h),f=t(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),g=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),m=["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"],_=t(m),v=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","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","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","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","devanagari","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","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","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","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","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","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","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","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","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","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","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","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","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"],b=t(v),y=i.concat(o).concat(a).concat(l).concat(d).concat(h).concat(m).concat(v);function C(e,t){for(var i,n=!1;null!=(i=e.next());){if(n&&"/"==i){t.tokenize=null;break}n="*"==i}return["comment","comment"]}e.registerHelper("hintWords","css",y),e.defineMIME("text/css",{documentTypes:n,mediaTypes:r,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:u,nonStandardPropertyKeywords:p,fontProperties:f,counterDescriptors:g,colorKeywords:_,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=C,C(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:r,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:u,nonStandardPropertyKeywords:p,colorKeywords:_,valueKeywords:b,fontProperties:f,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=C,C(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:r,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:u,nonStandardPropertyKeywords:p,colorKeywords:_,valueKeywords:b,fontProperties:f,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=C,C(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:n,mediaTypes:r,mediaFeatures:s,propertyKeywords:u,nonStandardPropertyKeywords:p,fontProperties:f,counterDescriptors:g,colorKeywords:_,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=C,C(e,t))}},name:"css",helperType:"gss"})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},t={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};return function(i){i.defineMode("xml",(function(n,o){var r,a,s=n.indentUnit,l={},c=o.htmlMode?e:t;for(var d in c)l[d]=c[d];for(var d in o)l[d]=o[d];function u(e,t){function i(i){return t.tokenize=i,i(e,t)}var n=e.next();return"<"==n?e.eat("!")?e.eat("[")?e.match("CDATA[")?i(p("xml atom","]]>")):null:e.match("--")?i(p("xml comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),i(function e(t){return function(i,n){for(var o;null!=(o=i.next());){if("<"==o)return n.tokenize=e(t+1),n.tokenize(i,n);if(">"==o){if(1==t){n.tokenize=u;break}return n.tokenize=e(t-1),n.tokenize(i,n)}}return"xml doctype"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("xml meta","?>"),"xml meta"):(r=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"xml tag bracket"):"&"==n?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"xml character":"xml error":(e.eatWhile(/[^&<]/),null)}function h(e,t){var i,n,o=e.next();if(">"==o||"/"==o&&e.eat(">"))return t.tokenize=u,r=">"==o?"endTag":"selfcloseTag","xml tag bracket";if("="==o)return r="equals","xml operator";if("<"==o){t.tokenize=u,t.state=_,t.tagName=t.tagStart=null;t.tokenize(e,t);return"xml error"}return/[\'\"]/.test(o)?(t.tokenize=(i=o,(n=function(e,t){for(;!e.eol();)if(e.next()==i){t.tokenize=h;break}return"xml string"}).isInAttribute=!0,n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e,t){return function(i,n){for(;!i.eol();){if(i.match(t)){n.tokenize=u;break}i.next()}return e}}function f(e,t,i){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=i,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function g(e){e.context&&(e.context=e.context.prev)}function m(e,t){for(var i;;){if(!e.context)return;if(i=e.context.tagName,!l.contextGrabbers.hasOwnProperty(i)||!l.contextGrabbers[i].hasOwnProperty(t))return;g(e)}}function _(e,t,i){return"openTag"==e?(i.tagStart=t.column(),v):"closeTag"==e?b:_}function v(e,t,i){return"word"==e?(i.tagName=t.current(),a="xml tag",T):l.allowMissingTagName&&"endTag"==e?(a="xml tag bracket",T(e,t,i)):(a="xml error",v)}function b(e,t,i){if("word"==e){var n=t.current();return i.context&&i.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(i.context.tagName)&&g(i),i.context&&i.context.tagName==n||!1===l.matchClosing?(a="xml tag",y):(a="xml error",C)}return l.allowMissingTagName&&"endTag"==e?(a="xml tag bracket",y(e,t,i)):(a="xml error",C)}function y(e,t,i){return"endTag"!=e?(a="xml error",y):(g(i),_)}function C(e,t,i){return a="xml error",y(e,0,i)}function T(e,t,i){if("word"==e)return a="xml attribute",E;if("endTag"==e||"selfcloseTag"==e){var n=i.tagName,o=i.tagStart;return i.tagName=i.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(n)?m(i,n):(m(i,n),i.context=new f(i,n,o==i.indented)),_}return a="xml error",T}function E(e,t,i){return"equals"==e?S:(l.allowMissing||(a="xml error"),T(e,0,i))}function S(e,t,i){return"xml string"==e?w:"word"==e&&l.allowUnquoted?(a="xml string",T):(a="xml error",T(e,0,i))}function w(e,t,i){return"xml string"==e?w:T(e,0,i)}return u.isInText=!0,{startState:function(e){var t={tokenize:u,state:_,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;r=null;var i=t.tokenize(e,t);return(i||r)&&"xml comment"!=i&&(a=null,t.state=t.state(r||i,e,t),a&&(i=a)),i},indent:function(e,t,n){var o=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(o&&o.noIndent)return i.Pass;if(e.tokenize!=h&&e.tokenize!=u)return n?n.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(t))return 0;var r=t&&/^<(\/)?([\w_:\.-]*)/.exec(t),a=!0;if(r&&r[1])for(a=!1;o&&l.implicitlyClosed.hasOwnProperty(o.tagName);)o=o.prev;else if(r)for(;o;){var c=l.contextGrabbers[o.tagName];if(!c||!c.hasOwnProperty(r[2]))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;if(o){var d=a?s:0;return o.indent+d}return e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==S&&(e.state=T)}}})),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{settingKeys:{ERROR:"ErrorColor",TAG:"TagColor",ATTRIBUTE_NAME:"AttributeNameColor",OPERATOR:"OperatorColor",ATTRIBUTE_VALUE:"AttributeValueColor",COMMENT:"CommentColor",DOCTYPE_DECLARATION:"DoctypeDeclarationColor",CHARACTER:"CharacterColor",PROCESSING_INSTRUCTION:"ProcessingInstructionColor",CDATA_SECTION:"CdataSectionColor"},pickerTags:{ERROR:"errorPreview",TAG:"tagPreview",ATTRIBUTE_NAME:"attributeNamePreview",OPERATOR:"operatorPreview",ATTRIBUTE_VALUE:"attributeValuePreview",COMMENT:"commentPreview",DOCTYPE_DECLARATION:"doctypePreview",CHARACTER:"characterPreview",PROCESSING_INSTRUCTION:"processingInstructionPreview",CDATA_SECTION:"cdataPreview"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getRegistry:function(){return[{id:"rtc.settings.colorsservice",path:"panel-utilities-js/PreviewSettingsServiceProvider"},{id:"xml.LanguageXmlPanelSyntaxHighlighterProvider",path:"xmlpanel-ui/LanguageXmlPanelSyntaxHighlighterProvider"}]},getEnabledList:function(){return["rtc.settings.service","rtc.settings.colorsservice","xml.LanguageXmlPanelSyntaxHighlighterProvider","settings.matlabsynchronizer","language.common.syntaxhighlighter.colors","language.xml.syntaxhighlighter.colorcontributor","xml.tokenizer"]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(640),i(748),i(7406)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{_getSettingKeyToSyntaxTypeMap:function(){var e={};return e[n.KEYWORDS_COLOR]=i.KEYWORD,e[n.STRINGS_COLOR]=i.STRING,e[n.COMMENTS_COLOR]=i.COMMENT,e[n.ERRORS_COLOR]=i.ERROR,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(640),i(748),i(7421)],o=i.dj.d(n,(function(e,t,i){return class extends e{_getSettingKeyToSyntaxTypeMap(){var e={};return e[i.KEYWORDS_COLOR]=t.KEYWORD,e[i.STRINGS_COLOR]=t.STRING,e[i.COMMENTS_COLOR]=t.COMMENT,e[i.ERRORS_COLOR]=t.ERROR,e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(640),i(748),i(7433)],o=i.dj.d(n,(function(e,t,i){return class extends e{_getSettingKeyToSyntaxTypeMap(){var e={};return e[i.KEYWORDS_COLOR]=t.KEYWORD,e[i.STRINGS_COLOR]=t.STRING,e[i.COMMENTS_COLOR]=t.COMMENT,e[i.ERRORS_COLOR]=t.ERROR,e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(345)],o=i.dj.d(n,(function(e,t){return e(t=t.default,{constructor:function(){},transactionCommitted:function(e){console.error(new Error("You have used ChangeListener without overriding the transactionCommitted method."))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7443)],o=i.dj.d(n,e=>JSON.parse(e),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(241),i(209),i(291),i(297),i(617),i(2483)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){let s=n.getMVM(),l=async function(e){try{await s.eval('load("'+e+'")',new o({dequeueMode:r.DEQUEUE_AT_PPE}))}catch(e){e._id&&e._msg?i.error("load failed with error: "+e._id+"; "+e._msg):i.error("load failed with error: "+JSON.stringify(e))}},c=async function(e,n,o){if(!o||!o.actionsResourceBundle||!o.fileService)throw new a;let r=o.actionsResourceBundle;const{fileService:s}=o;s.emit("toggle-open-action",!1);let l=d(n,o);if(l)t.displayConfirmDialog(r.replaceFolderDialogTitle,r.replaceFolderDialogForExtractMessage,{"data-test-id":"cfbExtractConfirmDialog",buttonText:[r.yesButtonLabel,r.noButtonLabel],closeCallback:async a=>{const{response:s}=a;if(1===s)try{await u(e,n,o,l)}catch(e){e._id&&e._msg&&i.error("unzip failed with error: "+e._id+"; "+e._msg),t.displayAlertDialog(r.extractZipErrorDialogTitle,r.extractZipErrorDialogMessage)}}});else try{await u(e,n,o,!1)}catch(e){e._id&&e._msg&&i.error("unzip failed with error: "+e._id+"; "+e._msg),t.displayAlertDialog(r.extractZipErrorDialogTitle,r.extractZipErrorDialogMessage)}s.emit("toggle-open-action",!0)},d=function(e,t){const{fileService:i}=t;let n=e.location+e.name.slice(0,-4);return 0!==i.fileStore.store.query({path:n}).length},u=async function(e,t,i,n){let a=t.location+t.name.slice(0,-4);const{fileService:l}=i;let c=s.eval('unzip("'+e+'","'+a+'")',new o({dequeueMode:r.DEQUEUE_AT_PPE}));return l.emit("extract-initialized",{extractedFolderPath:a,parentFolderPath:t.parent,extractedToFolderPromise:c,folderExists:n}),await c,c};return e([],{constructor:function(e){this.args=e||{},this.id="DEFAULT_OPEN",this.parentActionId="OPEN",this.checkIfZipIriAndExtractFcn=async function(e,t){let n,a;"\\"===t.separator&&(e=e.replace(/\\/g,"/"));let l=function(e,t){let i=e.toLocaleLowerCase();if(-1!==e.indexOf(".zip/")){let n=e.substring(0,i.indexOf(".zip/")+4),o=e.substring(i.indexOf(".zip/")+5);return t.push(n),l(o,t)}return e.length>0&&t.push(e),t},c=l(e,[]);if(c.length<2)return;if(t.isDirectory)throw new Error("Cannot open a directory inside a ZIP file.");a="zip:".repeat(c.length-1)+"file:///",c.forEach((e,t)=>{e.toLocaleLowerCase().endsWith(".zip")&&t<c.length-1?a=a+e+"!/":a+=e});try{n=await async function(e){let t;try{t=await s.feval("matlab.internal.filesystem.extractFileToTempLocation",1,[e],new o({dequeueMode:r.DEQUEUE_AT_PPE}))}catch(e){throw e._id&&e._msg?i.error("load failed with error: "+e._id+"; "+e._msg):i.error("load failed with error: ",e),e}return t[0]}(a)}catch(e){throw e}console.log(n);let d=c[0].substring(0,c[0].toLocaleLowerCase().indexOf(".zip")),u=d.substring(0,d.lastIndexOf(t.separator));return{path:n,location:u+t.separator,parent:u}},this.openActionCallbacks={mat:l,zip:c}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return class extends Error{constructor(){super("actionInputArgs missing, default to MATLAB open()")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(546),i(576),i(7449)],o=i.dj.d(n,(function(e,t,i,n){var o=new n({moduleLoader:new t,registrationFramework:i.getRegistrationFramework()});return{getFileIconPluginService:function(){return o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{KEYWORD:"keyword",STRING:"string",UNTERMINATEDSTRING:"unterminatedstring",COMMENT:"comment",ERROR:"error"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1600)],o=i.dj.d(n,(function(e){const t=function(){var t=new Map;for(const i in e.Token){const n=e.Token[i],o=e.TokenMap[n].String;let r=t.get(o);r?r.push(n):t.set(o,[n])}return t}();function i(e){const t=/[.*+?^${}()|[\]\\]/g;if(Array.isArray(e)){let i=[];for(let n of e)i.push(n.replace(t,"\\$&"));return i}return e.replace(t,"\\$&")}return{strings:t=>{let i=[];for(let n=0;n<t.length;n++)i.push(e.TokenMap[t[n]].String);return i},escape:e=>i(e),StringMap:t,Keywords:function(){let t=[];for(const i in e.Token){const n=e.Token[i];e.TokenMap[n].Tags.includes("keyword")&&t.push(n)}return t}(),Operators:function(){let t=[];for(const i in e.Token){const n=e.Token[i];e.TokenMap[n].Tags.includes("operator")&&t.push(n)}return t}(),StartTokens:function(){let t=[];for(const i in e.Token){const n=e.Token[i];e.TokenMap[n].End&&t.push(n)}return t}(),EndTokens:function(){let i=[];for(const n in e.Token){const o=e.Token[n],r=e.TokenMap[o].End;if(r){const e=t.get(r);console.assert(e,r),console.assert(1===e.length,"Internal Error: END token must map 1-to-1 with STRING."),i.includes(e[0])||i.push(e[0])}}return i}(),MidTokens:function(){let i=[];for(const n in e.Token){const o=e.Token[n],r=e.TokenMap[o].Mid;if(Array.isArray(r))for(let e=0;e<r.length;e++){const n=t.get(r[e]);console.assert(n,r[e]),console.assert(1===n.length,"Inernal Error: MID token must map 1-to-1 with STRING."),i.includes(n[0])||i.push(n[0])}else{const e=t.get(r);console.assert(e,r),console.assert(1===e.length,"Inernal Error: MID token must map 1-to-1 with STRING."),i.includes(e[0])||i.push(e[0])}}return i}(),GroupTokens:[e.Token.LP,e.Token.RP,e.Token.LB,e.Token.RB,e.Token.LC,e.Token.RC],TokenMatcher:RegExp(i([...t.keys()].sort().reverse()).join("|"))}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){e.add("pointer",(function(e){return"PointerEvent"in e?"pointer":"MSPointerEvent"in e&&"MSPointer"}));var t=e("pointer"),i=t&&"MS"===t.slice(0,2),n={};return n.pointer=t,n.MSPointer=i,n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(221),i(606),i(342),i(515),i(331),i(288),i(354),i(542),i(317),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h;function p(e,t){var d,f={id:t.id+u.generateUuid(),text:t.label,tag:t.id,disabled:"function"==typeof t.enabled?!t.enabled():!t.enabled};if(f.shortcut=t.shortcut||function(e){return e.supportsKeyBinding&&h[e.id]?n.getKeyBindingData(h[e.id]).shortcut:""}(t),t.icon&&(f.icon=t.icon),t.contentSeparator&&e.addChild(new l),Array.isArray(t.childrenActions)){var g=function(e){var t=new a({});return e.forEach((function(e){var i=e.applicable;(void 0===i||i)&&p(t,e)})),t}(t.childrenActions);f.disabled=!1,f.menu=g,(d=new c(f)).own(g)}else t.needsCheckBox?(f.closeMenuOnClick=!0,f.checked="function"==typeof t.checked?t.checked():t.checked,d=new r(f)):d=new s(f);var m=i("mac")?[o.Keys.COMMAND,o.Keys.DOWN_ARROW]:[o.Keys.ENTER];h[t.id]&&h[t.id].length===m.length&&JSON.stringify(h[t.id])===JSON.stringify(m)&&d.domNode.classList.add("defaultActionItem"),e.addChild(d),t.callback&&d.on("click",(function(){t.callback(t)}))}function f(e,t,i,n,o){h=t,{},i.getActions().then((function(t){e.destroyDescendants();var r=function(e){var t={},i=[];function n(e,t){var i=t.filter((function(t){return t.id===e}));return 1!==i.length?void 0:i[0]}function o(e,o){-1===i.indexOf(e)&&(t[e]={info:o.section,actions:[]},i.push(e));var r=t[e].actions;void 0===n(o.id,r)&&r.push(o)}return e.forEach((function(e){var i=e.section.id;if(void 0===e.section.parent)o(i,e);else{var r=e.section;r.label=r.name;var a=r.parent.id,s=t[a]&&n(r.id,t[a].actions);s?s.childrenActions.push(e):(r.childrenActions=[e],o(a,r))}})),{sections:t,sectionIds:i}}(t);!function(e,t,i){i.forEach((function(i){if(-1!==t.sectionIds.indexOf(i)){var n=t.sections[i].actions;e.hasChildren()&&e.addChild(new l),n.forEach((function(t){p(e,t)}))}}))}(e,r,i.getActionGroupIdsOrder()),e._showMenu({x:n,y:o,popup:e})}))}function g(e){return this._contextMenuVisible=!0,this.setShouldGiveFocusBackToDgrid(!0),f(this.grid.contextMenu,this.keybindings,this._actionManager,e.x,e.y),this.grid.contextMenu.domNode.classList.add("fileBrowserContextMenu"),!0}return e([],{createContextMenu:function(e){e.own(e.grid.contextMenu=new d({willOpenCallback:t.hitch(e,g),targetNodes:["#"+e.grid.id+" .dgrid-row","#"+e.grid.id+" .dgrid-row *:not(.dgrid-input)","#"+e.grid.id+" .dgrid-scroller"]}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(515)],o=i.dj.d(n,(function(e){return{buildContextMenu:function(t,i,n,o){t.destroyDescendants(),function(e){var t=[];return e.getColumns().forEach((function(e){e.unhidable||!1===e.allowUserToggle||t.push(e)})),t}(i).forEach((function(i){var r=function(t){return new e({closeMenuOnClick:!0,checked:!t.hidden,text:t.label,id:t.id})}(i);t.addChild(r),r.startup(),r.on("change",(function(e){var t=e.currentTarget.id;o(t,n.isColumnHidden(t))}))}))}}}),e,t),e.exports=o},function(e,t,i){var n=i(723),o=i(7514);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);e.exports=o.locals||{}},function(e,t,i){var n,o;n=[i(218),i(220),i(7523),i(7524),i(7525),i(7526)],o=i.dj.d(n,(function(e,t){return t(e,"filechooser-ui/l10n/gen/resources/filechooser/nls/filechooser",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){const e=Object.freeze({HIDDEN_FILES:"HIDDEN_FILES"});return{types:e,filters:Object.freeze({[e.HIDDEN_FILES](e){return!e.name.startsWith(".")||this.showHiddenFiles}})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(213),i(508),i(233)],o=i.dj.d(n,(function(e,t,i,n){var o="motwFileType",r="motwFileTypeDefault",a="folderClosed",s="folderOpened",l="fileIcon",c="motwFolder";return{getIconClass:function(e,t){return"group"===e.type?"group":e.isDirectory?t?l+" "+c+" "+s:l+" "+c+" "+a:""!==e.type?l+" "+o+e.type.split(" ").join("_").replace(/[^\w\s]/gi,""):l+" "+r},getIconNodeFromRow:function(e){return e.element.querySelector(".fileIcon")},getInfoLabel:function(e){if(n.isUserPublishedDirectoryPath(e.path))return i.publishedMySite},setSharedOverlayIcon:function(t,i){var n=i.element.querySelector(".fileIcon .iconOverlay");t?e.add(n,"folderShared"):e.remove(n,"folderShared")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(508),i(236)],o=i.dj.d(n,(function(e,t){var i=[e.kb,e.mb,e.gb,e.tb,e.pb,e.eb,e.zb,e.yb];return{convert:function(n){if(n.isDirectory)return"";var o=function(e){var t=e;if(t<1048576)return{size:(t=Math.ceil(t/1024)).toFixed(0),unit:i[0]};var n=-1;do{t/=1024,n++}while(t>1024);return{size:Math.round(100*t)/100,unit:i[n]}}(n.size);return t.substitute(e.fileSize,[o.size,o.unit])}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{isNumeric:function(e){return isFinite(e)&&!isNaN(parseFloat(e))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=new Intl.DateTimeFormat(navigator.language),t=new Intl.DateTimeFormat(navigator.language,{hour:"2-digit",minute:"2-digit"});return{formatDate:function(i){var n=new Date(i);return e.format(n)+" "+t.format(n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{onStart:function(){},onProgress:function(e,t){},onStop:function(){},handleCancel:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(233)],o=i.dj.d(n,(function(e){return{isWhiteSpace:function(e){return 0===e.length},isSingleSelection:function(e){return 1===e.length},isMultiSelection:function(e){return e.length>1}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7564)],o=i.dj.d(n,(function(e){var t=new e;return{getSharingDataService:function(){return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7583),i(7584),i(7585),i(7586)],o=i.dj.d(n,(function(e,t){return t(e,"tripwire_button/resources/MATLABDrive/nls/desktop",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getDefaultModuleConfig:function(){return{focusBorder:!1,enabled:!0,closable:!0}},getDefaultLayoutConfig:function(){return{layoutId:"root",containerType:"root",modules:[{layoutId:"motwDesktop",containerType:"border",style:"width:100%;height:100%;",modules:[{layoutId:"appWindowGroup",containerType:"appWindow",region:"none",modules:[{layoutId:"appWindow",title:"MATLAB"},{layoutId:"mggPopup",title:"MATLAB",class:"mgg"}]},{layoutId:"dialog",containerType:"dialog",region:"none",modules:[{layoutId:"faultDialog",title:""},{layoutId:"messageDialog",title:""},{layoutId:"newDialog",title:"New"},{layoutId:"mggDialog",title:""},{layoutId:"iframeDialog",title:""}]},{layoutId:"webDdgNonModalDialog",containerType:"floatingPane",region:"none",title:"",modules:[{layoutId:"webDdgDialog",title:"",style:"position:absolute;width:500px;height:400px;visibility:visible;"}]},{layoutId:"dockableFloatingPaneGroup",containerType:"dockableFloatingPane",title:"",region:"none",modules:[{layoutId:"mggFloatingPane",style:"position:absolute",title:"MATLAB",closable:!0},{layoutId:"iframeFloatingPane",style:"position:absolute",title:"MATLAB",closable:!0},{layoutId:"embeddedFloatingPane",style:"position:absolute",title:"MATLAB",closable:!0}]},{layoutId:"veNonModalDialog",containerType:"floatingPane",title:"Variable Editor",region:"none",modules:[{layoutId:"veDialogGroup",title:"",containerType:"tabgroup",focusOnTabChildren:!0,style:"position:absolute;width:500px;height:400px;visibility:visible;",modules:[{layoutId:"vEditor",title:"Variable",closable:!0}]}]},{layoutId:"chNonModalDialog",containerType:"floatingPane",title:"Command History",region:"none",modules:[{layoutId:"historyContent",title:"",style:"position:absolute;width:300px;height:400px;visibility:visible;"}]},{layoutId:"inspectorNonModalDialog",containerType:"floatingPane",title:"Property Inspector",region:"none",modules:[{layoutId:"propertyInspector",style:"position:absolute;",title:""}]},{layoutId:"dockableInspectorNonModalDialog",containerType:"dockableFloatingPane",title:"Property Inspector",region:"none",modules:[{layoutId:"propertyInspector",style:"position:absolute;",title:"",closable:!0}]},{layoutId:"rteNonModalFindDialog",containerType:"floatingPane",title:"Find & Replace",region:"none",modules:[{layoutId:"rteFindDialog",title:"",style:"position:absolute;visibility:visible;"}]},{layoutId:"main",region:"center",title:"Center",containerType:"main",initialState:{left:{proportion:.22,isCollapsed:!1,panels:[{panelId:"cfb",collapsed:!1,portion:.5},{panelId:"workspace",collapsed:!1,portion:.5}]},bottom:{proportion:.33,isCollapsed:!1}},modules:[{layoutId:"documents",title:"Documents",containerType:"document",typeInfo:{editorFile:{defaultRegion:"left",collectiveLabel:"Editor Files",willReopen:!0,plusActions:["motw.newFile","motw.newFunction","motw.newExample","motw.newClass"]},figure:{defaultRegion:"right",collectiveLabel:"Figures",willReopen:!0,plusActions:["motw.newFigure"]},embeddedfigure:{defaultRegion:"right",collectiveLabel:"Web Figures",willReopen:!0},variable:{defaultRegion:"right",collectiveLabel:"Variables",willReopen:!0}},hasOwnFocusPolicy:!0,style:"height:50%;",splitter:!0,region:"center",collapsible:!0,minSize:120,modules:[{layoutId:"figure",title:"Figure",documentType:"figure",focusBorder:!0,focusUponShow:!1,closable:!0},{layoutId:"mggDocked",title:"Figure",documentType:"figure",focusBorder:!0,focusUponShow:!1,closable:!0,class:"mgg"},{layoutId:"embeddedFigureDocked",title:"Figure",documentType:"embeddedfigure",focusBorder:!0,focusUponShow:!1,closable:!0,class:"embeddedfigure"},{layoutId:"mggMorphed",title:"Figure",documentType:"embeddedfigure",focusBorder:!0,focusUponShow:!1,closable:!0,class:"mgg"}]},{layoutId:"commandWindow",title:"Command Window",style:"height:50%;",focusBorder:!0,splitter:!0,region:"bottom",collapsible:!0,minSize:120,closable:!1}]},{layoutId:"footer",region:"bottom",title:"Footer",style:"height:30px;"}]}]}},getNextFocusableModule:function(e){return{documents:"commandWindow"}[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(369),i(7601),i(483),i(256)],o=i.dj.d(n,(function(e,t,i,n){var o,r={},a=[],s=!1,l=0;function c(){return o||(o=new t({channel:"/LegacyWorkspaceBrowserManager"}),r[o.channel]=o,o.manager.addEventListener("rootSet",(function(e){i.logDebug("WSB: Factory Root Set");var t=e.target,o=t.getProperty("Debug");void 0!==o&&i.setDebug(o.Debug),t.addEventListener("propertySet",(function(e){e.data&&e.data.key&&"Managers"===e.data.key?i.logDebug("WSB: Factory Managers Updated"):e.data&&e.data.key&&"Debug"===e.data.key&&i.setDebug(e.data.newValue.Debug)})),t.addEventListener("peerEvent",(function(e){e.data.type&&"FactoryInitialized"===e.data.type?(i.logDebug("WSB: Factory Initialized"),!0,d()):e.data.type&&"WorkspaceBrowserCreated"===e.data.type?e.data.Channel&&r[e.data.Channel]&&r[e.data.Channel].start&&r[e.data.Channel].autoStart&&(r[e.data.Channel].start(),i.logDebug("WSB: Factory Auto Starting Manager ("+e.data.Channel+")")):e.data.type&&"log"===e.data.type&&e.data.message&&i.logDebug("WSB: Server Log ("+e.data.message+")")})),n.subscribe("variableeditor/isDebug",(function(e){var i=t.getProperty("Debug");e&&void 0!==e.Debug&&i&&e.Debug!==i.Debug&&t.setProperty("Debug",{Debug:e.Debug,Source:"client"})})),t&&t.getProperty("Initialized")&&t.getProperty("Initialized").Initialized&&d()}))),o}function d(){o&&o.getRoot()&&(a.forEach((function(e,t,n){var r=o.getRoot();i.logDebug("WSB: Factory Create WSB From Queue ("+e.channel+")"),r.dispatchEvent("peerEvent",r,e)})),a=[])}function u(e){if(!e)return null;var i=c();return e.manager&&(i=e.manager),function(e,t,i){i||(i=c());var n=i.getRoot();n?n.dispatchEvent("peerEvent",n,{type:"CreateWorkspaceBrowser",workspace:e,channel:t}):a.push({type:"CreateWorkspaceBrowser",workspace:e,channel:t})}(e.workspace,e.channel,i),new t(e)}function h(e){return c(),e.channel||(l+=1,e.channel="/CWSB_"+l),e.workspace||(e.workspace="caller"),void 0===e.editable&&(e.editable=!0),void 0===e.fixedColumnWidths&&(e.fixedColumnWidths=!1),void 0===e.ignoreUpdates&&(e.ignoreUpdates=!1),void 0===e.requestFocusOnStart&&(e.requestFocusOnStart=!1),e.cssSpecifier=e.cssSpecifier||"mw_type_WorkspaceBrowser",e.dataTagRoot=e.dataTagRoot||"motw.datatools.workspacebrowser",r&&r[e.channel]&&!e.forceNewManager||(r[e.channel]=u(e)),r[e.channel]}function p(e){e&&!e.isError&&(s=!0,d())}return{createManager:h,createWorkspaceBrowser:h,deleteWorkspaceBrowser:function(t){if(!t&&t.channel)return null;var i=c();!function(e,t,i){i||(i=c());var n=i.getRoot();n?n.dispatchEvent("peerEvent",n,{type:"DeleteWorkspaceBrowser",workspace:e,channel:t}):a.push({type:"DeleteWorkspaceBrowser",workspace:e,channel:t})}(t.workspace,t.channel,i),e.cleanup(t.channel),r[t.channel]=null},start:function(e){e?i.runFactoryInitInMATLAB("internal.matlab.workspace.peer.PeerWorkspaceBrowserFactory.startup",p):s=!0,c().start()},isStarted:function(){return s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(232)],o=i.dj.d(n,(function(e){return{getResolvedUrl:function(t){return this._hasApplicationUrl(t)&&(t=this._updateApplicationUrl(t)),t=e.createWorkerRoutingHostUrl(t)},getResolvedExplorerUrl:function(t){var i=dojo.queryToObject(t.substring(t.indexOf("?")+1,t.length));if(i.showDefaultUnsupportedMsg&&"1"===i.showDefaultUnsupportedMsg)return this.getResolvedUrl(t);var n=decodeURI(i.explorerUrl),o=n.substring(n.indexOf("?")+1,n.length);o=dojo.queryToObject(o);var r=JSON.parse(o.connectorUrls);for(var a in r)r[a]=e.createWorkerRoutingHostUrl(r[a]);var s=JSON.stringify(r);return o.connectorUrls=s,n.split("?")[0]+"?"+dojo.objectToQuery(o)},_updateApplicationUrl:function(t){var i=t.substring(t.indexOf("?")+1,t.length);i=dojo.queryToObject(i);var n=JSON.parse(i.navigateTo);return n.loadApplicationUrl=e.createWorkerRoutingHostUrl(n.loadApplicationUrl),i.navigateTo=JSON.stringify(n),t.split("?")[0]+"?"+dojo.objectToQuery(i)},_hasApplicationUrl:function(e){var t=e.substring(e.indexOf("?")+1,e.length);if((t=dojo.queryToObject(t)).navigateTo&&JSON.parse(t.navigateTo).loadApplicationUrl)return!0;return!1}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{ENVIRONMENT_SECTION:"motwToolstrip.matlabTab.environment",ADDONS_COLUMN:"motwToolstrip.matlabTab.environment.addOnsColumn",SPLIT_BUTTON:"motwToolstrip.matlabTab.environment.addOns",ADDONS_POPUP_LIST:"motwToolstrip.matlabTab.environment.addOns.list",GET_ADDONS_MENU_ITEM:"motwToolstrip.matlabTab.environment.addOns.getAddOns",MANAGE_ADDONS_MENU_ITEM:"motwToolstrip.matlabTab.environment.addOns.manageAddOns"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7633),i(7634),i(7635),i(7636)],o=i.dj.d(n,(function(e,t){return t(e,"addressbar-ui/l10n/gen/resources/addressbar/nls/addressbar",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(576),i(471)],o=i.dj.d(n,(function(e,t,i){return e([],{subscribeToRegistrationFramework:function(){const e=t.getRegistrationFramework(),n=[{resourceName:"DesktopToolset",resourceType:i.XML},{resourceName:"mlappinstall_app_gallery_registration",resourceType:i.XML},{resourceName:"mltbx_app_gallery_registration",resourceType:i.XML}],o={enabled:function(e){var t=e.resourcesFileContents;this.populateGalleryItems(t)}.bind(this),disabled:function(e){var t=e.resourcesFileContents;this.removeGalleryItems(t)}.bind(this)};e.subscribe(o,n).then(function(e){e.resourcesFilesData.forEach(function(e){var t=e.resourcesFileContents;this.populateGalleryItems(t)}.bind(this)),this.postPopulateGalleryItems(e)}.bind(this))},populateGalleryItems:function(e){throw"This function should be overriden."},removeGalleryItems:function(e){throw"This function should be overriden."},postPopulateGalleryItems:function(){throw"This function should be overriden."}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{DESIGN_APP:"motw.appsTab.openAppDesigner",GET_MORE_APPS:"motw.appsTab.getMoreApps",INSTALL_APP:"motw.appsTab.installApp"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(206),i(210),i(222),i(231),i(515),i(331),i(288),i(354),i(542),i(508),i(317),i(233),i(2489),i(2509),i(428),i(753),i(229),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){function y(e){e.originalStore&&(e.originalStore.put=e.originalStore._put,e.originalStore.remove=e.originalStore._remove)}function C(e,t){var i=e.layoutConfiguration;if(!i)return t;if(i&&"function"==typeof i.getHiddenEntryFilter){var n=i.getHiddenEntryFilter();return function(e){return t(e)&&n(e)}}return t}return e([r],{constructor:function(e){e=e||{},this.includeGroupByMenuInColumnHeader=e.includeGroupByMenuInColumnHeader},postCreate:function(){this.inherited(arguments),this.grid.setCurrentFolderInfo(this.fileService.currentFolderInfo),this.includeGroupByMenuInColumnHeader&&(this.stopGroupingAction=new m,this.grid.headerContextMenu.willOpenCallback=t.hitch(this,this._updateHeaderContextMenu))},unGroup:function(){var e=this.grid.getSelectedFilePaths();this.updateGroupingActions();var t=this.getStore();y(t),this.grid.set("store",t.originalStore);var i=this._getCurrentFolderQuery(this.getCurrentFolderInfo());this.grid.set("query",i),this._selectPreviouslySelectedItems(e)},group:function(e){this._setGroupedColumn(e),this.stopGroupingAction.enabled=!0,this._resetGroups(),this._groupItems(e),this.emit("updateColumnGrouping",{grid:this,column:e,grouped:e.groupingAction.grouped,bubbles:!0})},updateGroupingActions:function(){this.getStore().isGroupingMode&&(this._resetGroups(),this.stopGroupingAction.enabled=!1,this.getStore().isGroupingMode=!1,this._setGroupedColumn(),this.emit("updateColumnGrouping",{bubbles:!0,grouped:!1}))},_resetGroups:function(){this.getGroupedColumn().groupingAction.groups=[],this.getGroupedColumn().groupingAction.groupFileInfos=[]},_updateContextMenu:function(e){var t=this.getRow(e.target);return(!t||t&&t.data&&!t.data.isGroupHeader)&&this.inherited(arguments),!0},_groupItems:function(e){var t=this.getSelectedFilePaths();this.setQueryFilterCriteria(C(this,(function(e){return""===e.parent})));var i=this.getStore();i.originalStore&&y(i),this._setupGroupByStore(),(i=this.getStore()).isGroupingMode=!0,this._createGroups(e),this._groupAndAddTopLevelFolders(),this._removeGroupsAndItsChildrenNotOnCWD(),this.setQueryFilterCriteria({parent:f.pathFromFileInfo(this.fileService.getCurrentFolderInfo())}),this._selectPreviouslySelectedItems(t)},_selectPreviouslySelectedItems:function(e){var t=e.length;t>0&&this.focus(this.getRowElement(e[t-1])),e.forEach((function(e){this.selectRow(e)}),this)},_createGroups:function(e){var i=this,n=C(this,(function(e){return e.parent===f.pathFromFileInfo(i.fileService.getCurrentFolderInfo())}));this.grid.store.originalStore.query(n).forEach(t.hitch(this,(function(t){var i=e.groupingAction.getGroup(t);this._doesGroupExist(e,i)||(e.groupingAction.groups.push(i),e.groupingAction.groupFileInfos.push(e.groupingAction.getGroupFileInfo(i,this.fileService.getCurrentFolderInfo())))})))},_doesGroupExist:function(e,t){var i;for(var n in e.groupingAction.groups)if(e.groupingAction.groups[n].name===t.name&&(i=!0),i)break;return i},_setupGroupByStore:function(){var e=this,t=this.getStore(),i=t.originalStore?t.originalStore:t,n=new v(new _({data:[],idProperty:"path",getChildren:t.getChildren,mayHaveChildren:t.mayHaveChildren,getIdentity:t.getIdentity}));n.originalStore=i;var o=i._put=i.put.bind(i),r=i._remove=i.remove.bind(i);i.put=function(t){o(t);var i=e.fileService.getCurrentFolderInfo();if(t.path.length!==i.path.length&&0===t.path.indexOf(i.path)){var r=void 0;r=t.parent===i.path?e._getGroupedItem(t):t,n.put(r),e._removeUnusedGroups()}},i.remove=function(t){r(t);var i=n.get(t);if(i){n.remove(t);var o=i.group;o&&0===e.queryFromStore({parent:o.path}).length&&n.remove(o.path)}},this.grid.set("store",n)},_groupAndAddTopLevelFolders:function(){var e=this,i=this.getStore(),n=C(this,(function(t){return t.parent===f.pathFromFileInfo(e.fileService.getCurrentFolderInfo())}));i.originalStore.query(n).forEach(t.hitch(this,(function(e){var t=this._getGroupedItem(e);this.addElementToStore(t)})))},_getGroupedItem:function(e){var t=this.getGroupedColumn(),i=this.fileService.getCurrentFolderInfo(),n=t.groupingAction.filter(e);if(n){var o=this.queryFromStore({path:n.name});n.parent=f.pathFromFileInfo(i),o[0]||this.addElementToStore(n)}else{var r=t.groupingAction.getGroup(e);t.groupingAction.groups.push(r),n=t.groupingAction.getGroupFileInfo(r,this.fileService.getCurrentFolderInfo()),t.groupingAction.groupFileInfos.push(n),this.addElementToStore(n)}var a={};return a.deleted=e.deleted,a.hasChildren=e.hasChildren,a.isDirectory=e.isDirectory,a.filePermissions=e.filePermissions,a.modified=e.modified,a.modifiedUtc=e.modifiedUtc,a.size=e.size,a.type=e.type,a.name=e.name,a.separator=e.separator,a.location=e.location,a.parent=n.path,a.path=a.location+a.name,a.group=n,a},getGroupedColumn:function(){return this.groupedColumn},_removeGroupsAndItsChildrenNotOnCWD:function(){this.getGroupedColumn().groupingAction.groupFileInfos.forEach(t.hitch(this,(function(e){this.queryFromStore({parent:e.path}).forEach(t.hitch(this,(function(e){var t=f.pathFromFileInfo(this.fileService.getCurrentFolderInfo()),i=t.substring(t.length-1)===e.separator?t:t+e.separator;f.locationFromPath(e.path)!==i&&this.removeElementFromStore(e.path)})))}))),this._removeUnusedGroups()},_removeUnusedGroups:function(){var e=this.queryFromStore({isGroupHeader:!0}),t=!0,i=!1,n=void 0;try{for(var o,r=e[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;0===this.queryFromStore({parent:a.path}).length&&this.removeElementFromStore(a.path)}}catch(e){i=!0,n=e}finally{try{!t&&r.return&&r.return()}finally{if(i)throw n}}},_updateHeaderContextMenu:function(){var e=this.getHeaderContextMenu();e.destroyDescendants(),g.buildContextMenu(e,this.columnRegistry,this.grid,t.hitch(this,this.updateColumnVisible));var i,n,o,r=new l({});r.addChild((i=this,n=this.stopGroupingAction,(o=new c({closeMenuOnClick:!0,text:n.text,disabled:!n.enabled})).set("data-tag",n.id),o.on("click",(function(){i.unGroup()})),o)),r.addChild(new d),this.columnRegistry.getColumns().forEach(t.hitch(this,(function(e){if(e.groupable){var i=function(e){var t=new s({closeMenuOnClick:!0,checked:e.groupingAction.grouped,text:e.groupingAction.text,colId:e.groupingAction.id});return t.set("data-tag",e.groupingAction.id),t}(e);i.on("change",t.hitch(this,(function(t){var i=this.getGroupedColumn(),n=a.getEnclosingWidget(t.currentTarget);i&&i.groupingAction.id!==n.colId&&(i.groupingAction.grouped=!1,this.emit("updateColumnGrouping",{grid:this,column:i,grouped:i.groupingAction.grouped,bubbles:!0})),n.checked?this.group(e):n.set("checked",!0)}))),r.addChild(i)}})));var p=new u({text:h.groupBy,menu:r,id:"groupBy"+b.generateUuid()});p.set("data-tag","groupBy"),p.own(r),(e=this.getHeaderContextMenu()).addChild(new d),e.addChild(p)},_setGroupedColumn:function(e){e?(this.groupedColumn=e,this.groupedColumn.groupingAction.grouped=!0,e.groupingAction.grouped=!0):(this.groupedColumn=void 0,this.columnRegistry.getColumns().forEach((function(e){e.groupable&&(e.groupingAction.grouped=!1)})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(508),i(233)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e){e=e||{},this.id="stopGrouping",this.text=i.stopGrouping,this.enabled=!1,this.description="Action to restore view without groups"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(204),i(257),i(206),i(217),i(213),i(221)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([t],{constructor:function(){this._mouse={x:0,y:0,startX:0,startY:0},this._rectangle={left:0,top:0,width:0,height:0},this._rectElement=null,this._docMoveListener=null,this._docUpListener=null,this._gridEnterListener=null,this._gridLeaveListener=null,this._prevSelection=[],this._prevSelectShift=!1,this._lastScrolledTop=0},postCreate:function(){this.inherited(arguments),this.on("scrollerMouseDown",i.hitch(this,this._createRect)),this.on("scrollerMouseMove",i.hitch(this,this._setRectDimension)),this.on("scrollerMouseUp",i.hitch(this,this._removeRect));var e=i.hitch(this,this._handleRightClick),t=this.getDomNode();t.addEventListener("contextmenu",e,!0);var n=i.hitch(this,(function(){t.removeEventListener("contextmenu",e,!0)}));this.own(o(t,"scroll",i.hitch(this,this._setRectDimensionScroll)),{remove:n})},_handleRightClick:function(e){e.preventDefault()},_addDocMoveListener:function(){this._docMoveListener=o(document,"mousemove",i.hitch(this,this._setRectDimensionOutOfFB))},_removeDocMoveListener:function(){this._docMoveListener&&(this._docMoveListener.remove(),this._docMoveListener=null)},_savePrevSelection:function(){this._prevSelection=this.getSelectedFilePaths()},_removeListeners:function(){this._gridEnterListener.remove(),this._gridLeaveListener.remove(),this._removeDocMoveListener(),this._docUpListener.remove()},_removeRect:function(){this._rectElement&&(this._rectElement.parentNode.removeChild(this._rectElement),this._rectElement=null,this._removeListeners(),this._prevSelectShift=!1)},_setMousePosition:function(e){var t=e.selectorTarget||e.scrollTarget,i=t.getBoundingClientRect(),n=i.left,o=i.top;this._mouse.x=e.pageX+window.pageXOffset+t.scrollLeft-n,this._mouse.y=e.pageY+window.pageYOffset+t.scrollTop-o},_createRect:function(e){(this._removeRect(),this._setMousePosition(e),this._mouse.x>=e.selectorTarget.getElementsByClassName("dgrid-content")[0].offsetWidth||e.target.classList.contains("dgrid-input")||e.target.classList.contains("dgrid-scroller"))||(this._mouse.startX=this._mouse.x,this._mouse.startY=this._mouse.y,this._rectElement=document.createElement("div"),this._rectElement.className="selection-box-rectangle",this._rectElement.setAttribute("id","selection-box-rectangle"),this._rectElement.style.display="none",e.selectorTarget.appendChild(this._rectElement),this._gridEnterListener=this.grid.on(o.selector(".dgrid-scroller",n.enter),i.hitch(this,this._removeDocMoveListener)),this._gridLeaveListener=this.grid.on(o.selector(".dgrid-scroller",n.leave),i.hitch(this,this._addDocMoveListener)),this._docUpListener=o(document,"mouseup",i.hitch(this,this._removeRect)),this._savePrevSelection())},_renderRect:function(){if(this._rectElement)return(0!==this._rectangle.width||0!==this._rectangle.height)&&(this._rectElement.style.left=this._rectangle.left+"px",this._rectElement.style.top=this._rectangle.top+"px",this._rectElement.style.width=this._rectangle.width+"px",this._rectElement.style.height=this._rectangle.height+"px",!0)},_autoScrollNodes:function(e){var t=e.selectorTarget;t.scrollLeft=0;var i=a.getComputedStyle(t),n=r.getContentBox(t,i),o=r.position(t,!0),s=Math.min(16,n.h/2),l=e.pageY+window.pageYOffset-o.y,c=0;l>0&&l<n.h&&(l<s?c=this._mouse.startY-t.scrollTop>0&&this._mouse.startY-t.scrollTop<s&&this._mouse.y-t.scrollTop>=this._mouse.startY-t.scrollTop?0:-s:l>n.h-s&&(c=this._mouse.startY-t.scrollTop>n.h-s&&this._mouse.startY-t.scrollTop<n.h&&this._mouse.y-t.scrollTop<=this._mouse.startY-t.scrollTop?0:s),t.scrollTop=t.scrollTop+c,this._lastScrolledTop=t.scrollTop)},_setRectStyle:function(e){this._rectangle.left=this._mouse.x-this._mouse.startX<0?this._mouse.x:this._mouse.startX,this._rectangle.top=this._mouse.y-this._mouse.startY<0?this._mouse.y:this._mouse.startY,this._rectangle.width=Math.abs(this._mouse.x-this._mouse.startX),this._rectangle.height=Math.abs(this._mouse.y-this._mouse.startY),this._renderRect()&&this.getRowCount()>0&&this._selectRows(e)},_setRectDimension:function(e){this._mouseMoveTimer&&clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=setTimeout(function(){this._rectElement&&(this._rectElement.style.removeProperty("display"),this._autoScrollNodes(e),this._setMousePosition(e),this._setRectStyle(e))}.bind(this),10)},_setRectDimensionScroll:function(e){this._rectElement?(e.scrollTarget.scrollLeft=0,this._lastScrolledTop!==e.scrollTarget.scrollTop&&(this._mouse.y-=this._lastScrolledTop,this._lastScrolledTop=e.scrollTarget.scrollTop,this._mouse.y+=this._lastScrolledTop,this._setRectStyle(e))):e.scrollTarget&&(this._lastScrolledTop=e.scrollTarget.scrollTop)},_isParentDisplayNone:function e(t){var i=t.parentNode;return!!i.classList.contains("dgrid-tree-container")&&("none"===i.style.display||e(i))},_getVisibleRows:function(){for(var e=this.getRowNodes(),t=Array.prototype.slice.call(e),i=t.length-1;i>=0;i--)this._isParentDisplayNone(t[i])&&t.splice(i,1);return t},_selectRows:function(e){if(this._rectElement){var t=this._getVisibleRows(),i=this._rectangle.height,n=this._rectangle.top,o=t[0].getBoundingClientRect().height,r=Math.floor(n/o),a=Math.floor((n+i)/o);if(r<t.length)if(r=r<0?0:r,a=a<t.length?a:t.length-1,this._mouse.startY>o*t.length&&(this.grid._lastSelected=this.getRow(t[r])),e.ctrlKey||s("mac")&&e.metaKey){for(var l=[],c={},d=0;d<this._prevSelection.length;d++)c[this.getRowId(this._prevSelection[d])]=1;for(d=r;d<=a;d++)1==c[this.getRowId(t[d])]?c[this.getRowId(t[d])]=0:l.push(this.getRow(t[d]));for(d=0;d<this._prevSelection.length;d++)1==c[this.getRowId(this._prevSelection[d])]&&l.push(this.getRow(this._prevSelection[d]));for(this.clearSelection(null,!0),d=0;d<l.length;d++)this.selectRow(l[d])}else if(e.shiftKey){for(!this._prevSelectShift&&this._mouse.startY<o*t.length&&null!==this.grid._lastSelected&&(this.clearSelection(),this.selectRow(this.grid._lastSelected,this.getRow(e.target)),this._savePrevSelection(),this._prevSelectShift=!0),this.clearSelection(),d=0;d<this._prevSelection.length;d++)this.selectRow(this.getRow(this._prevSelection[d]));for(var u=r;u<=a;++u)this.selectRow(this.getRow(t[u]))}else for(this.clearSelection(),u=r;u<=a;++u)this.selectRow(this.getRow(t[u]));else for(this.clearSelection(),d=0;d<this._prevSelection.length;d++)this.selectRow(this.getRow(this._prevSelection[d]))}},_setRectDimensionOutOfFB:function(e){if(this._rectElement){var t=document.getElementsByClassName("dgrid-scroller")[0],i=t.getBoundingClientRect(),n=i.left,o=i.top,r=e.pageX+window.pageXOffset,a=e.pageY+window.pageYOffset,s=this._mouse.startX+n-t.scrollLeft,l=this._mouse.startY+o-t.scrollTop;(r<=i.left||r>i.left+i.width)&&(this._rectangle.height=Math.abs(a-l),this._rectangle.top=a-l<0?a-o+t.scrollTop:l-o+t.scrollTop,r>i.left+i.width?this._rectangle.width=Math.abs(i.width-this._mouse.startX)-(2*parseInt(getComputedStyle(this._rectElement).getPropertyValue("border-width"))+2):(this._rectangle.left=0,this._rectangle.width=this._mouse.startX)),(a<i.top||a>i.top+i.height)&&(this._rectangle.width=Math.abs(r-s),this._rectangle.left=r-s<0?r-n:s-n,a>i.top+i.height?this._rectangle.height=Math.abs(i.height-(this._mouse.startY-t.scrollTop))-(2*parseInt(getComputedStyle(this._rectElement).getPropertyValue("border-width"))+2):this._rectangle.top>=t.scrollTop&&(this._rectangle.top=0+t.scrollTop,this._rectangle.height=this._mouse.startY-t.scrollTop)),this._renderRect()&&this.getRowCount()>0&&this._selectRows(e)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(204),i(221),i(206)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{constructor:function(){this._clickCount=0,this._singleClickListener=null,this._doubleClickListener=null,this._resumingListeners=null},postCreate:function(){this.inherited(arguments),this.own(this.on("rowSelected",i.hitch(this,this._setClickRenameListeners)),this.on("whiteSpaceMouseDown",i.hitch(this,this._handleMouseDownOutsideGrid)),this.on("rowClick",i.hitch(this,this._handleRowClick)))},_removeClickListeners:function(){this._singleClickListener&&(this._singleClickListener.remove(),this._singleClickListener=null),this._doubleClickListener&&(this._doubleClickListener.remove(),this._doubleClickListener=null),this._resumingListeners&&(this._resumingListeners.remove(),this._resumingListeners=null)},_addClickListeners:function(e){var t=e.getElementsByClassName("field-name")[0];this._singleClickListener=o.pausable(t,"click",i.hitch(this,this._handleCellSingleClick)),this._singleClickListener.pause(),this._singleClickListener.row=e,this._doubleClickListener=o.pausable(t,"dblclick",i.hitch(this,this._setClickCount)),this._doubleClickListener.pause(),this._resumingListeners=o(e,"keyup, click",i.hitch(this,this._resumeClickEvents))},_resumeClickEvents:function(){this._singleClickListener.resume(),this._doubleClickListener.resume()},_setClickRenameListeners:function(e){if(2!==this._clickCount&&(this._selectionFirst=!0),1===this.getSelectedRowCount()){var t=e.rows[0].element;this._singleClickListener&&this._singleClickListener.row.id!==t.id&&this._removeClickListeners(),this._singleClickListener&&this._singleClickListener.row!==t&&(this._removeClickListeners(),this._addClickListeners(t),this._resumeClickEvents()),this._singleClickListener||2===this._clickCount||this._addClickListeners(t)}else this._selectionFirst=!1,this._removeClickListeners()},_setClickCount:function(){this._clickCount=2,this._removeClickListeners()},_renameOnSingleClick:function(e){if(!this.grid.dndSource.dragHappened){var t=this.getRow(e);if(t&&!(e.ctrlKey||n("mac")&&e.metaKey)){var i=this;this.renameFile([t.data]).then((function(e){i.onFileNameChanged(e.fileInfo,e.newName)}))}else this._removeClickListeners()}},_handleCellSingleClick:function(e){this.isExpandoElement(e.target)||(this._clickCount=0,setTimeout(function(){this._clickCount>0?--this._clickCount:this._renameOnSingleClick(e)}.bind(this),300))},_handleRowClick:function(e){var t=this.getRowElement(e.target);this.getRowFileInfo(t).isGroupHeader||(this._selectionFirst?this._selectionFirst=!1:(this._removeClickListeners(),this._addClickListeners(t),this._resumeClickEvents()))},_handleMouseDownOutsideGrid:function(e){this.getRow(e)||e.ctrlKey||e.shiftKey||n("mac")&&e.metaKey||this._removeClickListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(204),i(233)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{postCreate:function(){this.inherited(arguments),this._filesCut={},this.own(this.on("rowRender",i.hitch(this,this._afterRenderRow)))},addCutAffordance:function(e){for(var i,n=0;n<e.length;n++)this._filesCut[e[n]]=e[n],(i=this.getRowElement(e[n]))&&t.add(i,"isCut")},clearCutAffordance:function(){for(var e=this.getDomNode().getElementsByClassName("isCut");e.length>0;)t.remove(e[0],"isCut");this._filesCut={}},_afterRenderRow:function(e,i){var o=n.pathFromFileInfo(i[0]);this._filesCut[o]&&t.add(e,"isCut")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(210),i(204),i(206),i(223),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a="",s=!0,l=null,c=!0,d=null,u="",h=function(){a="",s=!0,c=!0},p=function(){h(),l=null},f=function(e,t){return t.data.name.toLowerCase().startsWith(e.toLowerCase())&&function e(t){return t===d.domNode||!t.hidden&&e(t.parentElement)}(t.element)&&!t.data.isGroupHeader};return e([],{postCreate:function(){this.inherited(arguments),this.grid.on("keydown",this._handleJumpToActionKeyDown.bind(this))},_testHelperJumpToActionReset:function(){a="",s=!0,l=null,c=!0,d=null,u=""},_jumpToAction:function(e,t){var i=function(e){return null!==document.activeElement&&document.activeElement.classList.contains("dgrid-row")&&d.domNode.contains(document.activeElement)?e.findIndex((function(e){return document.activeElement===e.element})):null}(t),n=0;null!==i&&(n=s||c?(i+1)%t.length:i),s=!1;var o=function(e,t,i){for(var n=t,o=0;o<i.length;){if(f(e,i[n]))return n;n=(n+1)%i.length,++o}return null}(e,n,t);null!==o&&(this.setFocusAndSelection(t[o]),t[o].element.scrollIntoView())},_handleJumpToActionKeyDown:function(e){if("INPUT"!==document.activeElement.tagName)if(l&&(clearTimeout(l),l=null),"Escape"!==(u=e.key)){if(!(!u||u.length>1||e.altKey||e.ctrlKey||e.metaKey)){a+=u,c&&a.length>0&&a[0]!==u&&(c=!1),d=this.grid;var t,i=(t=d.domNode.querySelectorAll(".dgrid-row"),Array.from(t).map((function(e){return d.row(e)})));c?this._jumpToAction(u,i):this._jumpToAction(a,i),l=setTimeout(p.bind(this),750)}}else h()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(342)],o=i.dj.d(n,(function(e,t){var i=e("mac")?[t.Keys.COMMAND,t.Keys.BACKSPACE]:[t.Keys.DELETE],n=e("mac")?[t.Keys.COMMAND,t.Keys.DOWN_ARROW]:[t.Keys.ENTER],o=e("mac")?[t.Keys.SHIFT,t.Keys.F7]:[t.Keys.F9];return{DELETE:i,OPEN:n,"cut-to-clipboard":[t.Keys.SYSCTRL,t.Keys.X],"copy-to-clipboard":[t.Keys.SYSCTRL,t.Keys.C],"paste-from-clipboard":[t.Keys.SYSCTRL,t.Keys.V],"evaluate-selection":o}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(563),i(222),i(209),i(7689),i(7690),i(7691),i(7692),i(7694),i(7697),i(7700),i(2516),i(7701),i(7702)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([n],{constructor:function(e){this._clientActionsService=e.clientActionsService,this._pathService=e.pathService,this._inputSource=e.inputSource,this._fileService=e.fileService,this._inputSource.on("inputSet",this.refreshActions.bind(this)),this._refreshActionsRequest=void 0,this._pathService&&this._pathService.on(this._pathService.events.MATLAB_PATH_CHANGED,function(){this.refreshActionsForCurrentSelection()}.bind(this))},setDefaultActions:function(e,t){if(e.has("NEW2")){let e=new u(t);this._clientActionsService.addAction(e),this._initializeDefaultNewActions(e,t)}if(e.has("OPEN")){let e=new r(t);this._clientActionsService.addAction(e)}e.has("RENAME")&&this._clientActionsService.addAction(new a(t)),e.has("DELETE")&&this._clientActionsService.addAction(new s(t)),e.has("SHOW")&&this._clientActionsService.addAction(new l(t)),e.has("SORT_BY")&&this._clientActionsService.addAction(new c(t)),e.has("GROUP_BY")&&this._clientActionsService.addAction(new d(t))},initializeActionPluginManager:async function(e){try{this._actionPluginManager=e,await this._actionPluginManager.subscribeAndGetLoadedActionModules(),this.refreshActionsForCurrentSelection(),this._actionPluginManager.on("actionsUpdated",function(e){this.refreshActionsForCurrentSelection()}.bind(this))}catch(e){o.error("ActionPluginManager failed to initialize. Error: "+e.stack)}},getActionGroupIdsOrder:function(){return this.constant.SECTION_ORDER},getActions:function(){return this._refreshActionsRequest.deferred.promise},getSectionId:function(e){return e.section.parent?e.section.parent.id:e.section.id},groupAndOrderActions:function(e){var t={};this._sectionOrder=this.constant.SECTION_ORDER;var n=new Set(this._sectionOrder);return e.forEach(e=>{var o=this.getSectionId(e);t[o]?e.isJavaAction?t[o].push(e):t[o].splice(i.sortedIndexBy(t[o],e,"orderPriorityWithinSection"),0,e):(t[o]=[e],n.has(o)||(n.add(o),this._sectionOrder.push(o)))}),this._sectionOrder.reduce((function(e,i){return t[i]&&(e=e.concat(t[i])),e}),[])},refreshActions:function(e){this._refreshActionsRequest=this.createRefreshRequestFor(e)},refreshActionsForCurrentSelection:function(){void 0!==this._refreshActionsRequest&&(this._refreshActionsRequest=this.createRefreshRequestFor(this._refreshActionsRequest.selection))},createRefreshRequestFor:function(e){return{selection:e,deferred:new t((function(e){}))}},_initializeDefaultNewActions:function(e,t){let i=new p(t);var n=new h(i,t);e.childrenActions.push(n)},constant:{SECTION_ORDER:["OPEN","FILE_OPERATION","FILE_MANAGEMENT","DATA_TRANSFER","SHARE","SOURCE_CONTROL","PATH_MANAGEMENT","LAYOUT_MANAGEMENT","PROJECT","REPORTS"]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){this._fileDataService=t.fileService,this.id=e.id,this.label=e.label,e.hasOwnProperty("isApplicableTo")&&(this.isApplicableTo=e.isApplicableTo),this.sectionId=e.sectionId,this.parentActionId=e.parentActionId,this.enabled=!0,this.orderPriorityWithinSection=e.orderPriorityWithinSection,this.isDirectory=e.isDirectory,this.placeholderName=e.placeholderName,this.placeholderExtension=e.placeholderExtension,this.fileNameValidatorFcn=e.fileNameValidatorFcn,this.callbackFcn=e.callback.bind(e),this.contentSeparator=1===e.orderPriorityWithinSection&&"FOLDER"!==e.sectionId,this.callback=function(){this._fileDataService.emit("create-action-initialized",{isDirectory:this.isDirectory,placeholderName:this.placeholderName,placeholderExtension:this.placeholderExtension,fileNameValidatorFcn:this.fileNameValidatorFcn,callbackFcn:this.callbackFcn})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(209),i(1001),i(2516)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i],{constructor:function(e){this._sectionOrder=new Map,this._sectionOrder.set("FOLDER",1),this._sectionOrder.set("EDITOR",2),this._sectionOrder.set("APPS",3),this._sectionOrder.set("OTHER",4),this._moduleLoader=e.moduleLoader,this._registrationFramework=e.registrationFramework,this._actionService=e.actionService,this._communicationAvailable=e.communicationAvailable,this._actionInputArgs=e.actionInputArgs,this._actionResourceSpecification=e.actionResourceSpecification,this._actionModuleFileMap={},this._actionIdRegistry={},this._actionCategories=e.actionCategories,this._actionRegistrationPoint={registered:function(e){},unregistered:function(e){},enabled:async function(e){if(!this._actionModuleFileMap[e.resourcesFile]){var t=this._registerModuleDefObj(e,this._moduleLoader);if(t){var i=await this._pluginManager.loadWithModuleLoader(t,!0),n=this._initializeLoadedActionModules(i);this.emit("actionsUpdated",{actions:n})}}}.bind(this),disabled:function(e){if(this._actionModuleFileMap[e.resourcesFile]){var t=this._actionModuleFileMap[e.resourcesFile];t.moduleDef.provides.forEach(function(e){this._actionService.removeAction(this._actionIdRegistry[e]),delete this._actionIdRegistry[e]}.bind(this)),this._pluginManager.removeModuleDefFromRegistry(t.actionModuleName),this._pluginManager.removeLoadedModulesFromRegistry(t.moduleDef.provides),delete this._actionModuleFileMap[e.resourcesFile],this.emit("actionsUpdated",{actions:t.moduleDef.provides})}}.bind(this)},this._pluginManager=new o({moduleLoader:e.moduleLoader,registrationFramework:e.registrationFramework,resourceSpecification:this._actionResourceSpecification,registerModuleDefObjFcn:this._registerModuleDefObj.bind(this),registrationPoint:this._actionRegistrationPoint})},_registerModuleDefObj:function(e,t){if(this._pluginManager.isModuleRegistered(e.resourcesFileContents.actionModuleName))n.error("Module '"+e.resourcesFileContents.actionModuleName+"' already registered.");else if(!e.resourcesFileContents.actionCategory||this._actionCategories.has(e.resourcesFileContents.actionCategory))return e=this._pluginManager.updateModuleDefObjForEnvironment(e,this._requestResponseService),this._pluginManager.addModuleDefToRegistry(e.resourcesFileContents.actionModuleName,e.resourcesFileContents),this._actionModuleFileMap[e.resourcesFile]=e.resourcesFileContents,e.resourcesFileContents.moduleDef.provides.forEach(function(t,i){this._actionIdRegistry[e.resourcesFileContents.actionModuleIds[i]]?n.error("Action with id '"+e.resourcesFileContents.actionModuleIds[i]+"' already registered."):this._actionIdRegistry[t]=e.resourcesFileContents.actionModuleIds[i]}.bind(this)),t.register([e.resourcesFileContents.moduleDef])},subscribeAndGetLoadedActionModules:function(){return this._communicationAvailable.then(function(e){return this._pluginManager.subscribeAndLoadModules(e,!1)}.bind(this)).then(function(){return this.getLoadedActionModules()}.bind(this))},getLoadedActionModules:async function(){return this._pluginManager.areModulesLoaded().then(async function(){var e=this._pluginManager.getRegisteredModuleNames(),t=await this._pluginManager.getLoadedModules(e);return this._initializeLoadedActionModules(t)}.bind(this))},_initializeLoadedActionModules:function(t){return Object.keys(t).map(function(i){var n=t[i],o=e(n)(this._actionInputArgs);if(o)if("NEW2"===o.parentActionId)this._initializeNewAction(o);else{if("OPEN"!==o.parentActionId)return this._actionService.addAction(o),o;this._initializeOpenAction(o)}}.bind(this))},_initializeNewAction:function(e){this._assertNewChildAction(e);var t=this._actionService.getAction(e.parentActionId),i=new r(e,this._actionInputArgs),n=t.childrenActions;n.push(i),this._sortNewChildren(n)},_initializeOpenAction:function(e){this._assertOpenActionCallbacks(e);var t=this._actionService.getAction("OPEN").openActionCallbacks;t=Object.assign(t,e.openActionCallbacks),this._actionService.updateAction("OPEN",{openActionCallbacks:t})},_sortNewChildren:function(e){var t=new Map([["FOLDER",1],["EDITOR",2],["APPS",3],["OTHER",4]]);e.sort((function(e,i){return e.sectionId===i.sectionId?e.orderPriorityWithinSection-i.orderPriorityWithinSection:t.get(e.sectionId)-t.get(i.sectionId)}))},_assertNewChildAction:function(e){var t=new Set(["FOLDER","EDITOR","APPS","OTHER"]);this._assert(e.hasOwnProperty("id")),this._assert(e.hasOwnProperty("label")),this._assert(e.hasOwnProperty("isDirectory")),this._assert(e.hasOwnProperty("placeholderName")),this._assert(e.hasOwnProperty("placeholderExtension")),this._assert(e.hasOwnProperty("sectionId")),this._assert(e.hasOwnProperty("parentActionId")),this._assert(e.hasOwnProperty("orderPriorityWithinSection")),this._assert(e.hasOwnProperty("enabled")),this._assert(t.has(e.sectionId)),this._assert(e.orderPriorityWithinSection>=1),this._assert("function"==typeof e.callback)},_assertOpenActionCallbacks:function(e){this._assert(e.hasOwnProperty("parentActionId")),this._assert(e.hasOwnProperty("openActionCallbacks"))},_assert:function(e,t){if(!e)throw t||"Action Assertion failed"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1604),i(1605),i(1606),i(1607),i(1608),i.dj.c(e.i)],o=i.dj.d(n,(function(e,t,i,n,o){return{getRegistry:function(r){var a=new e;return a.addColumn(new t({sharingManager:r.sharingManager,fileIconProvider:r.fileIconProvider})),a.addColumn(new i({})),a.addColumn(new n({})),a.addColumn(new o({})),a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(854)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){e=e||{},this.column={id:e.id||"filePreviewPopupColumn",label:t.columnLabelPreview,renderHeaderCell:function(e){var t=document.createElement("div");t.className="columnHeaderLabel";var i=document.createTextNode(" ");t.appendChild(i),e.appendChild(t)},field:"preview",sortable:!1,renderCell:function(e,t,i,n){if(!e.isGroupHeader){var o=document.createElement("span");o.className="dgrid-cell-data";var r=document.createElement("span");r.classList.add("motwPreviewPopupCell"),r.style.fontWeight="bold",r.style.width="10px",r.style.paddingBottom="4px",r.style.paddingLeft="4px",r.style.paddingRight="4px",r.style.marginTop="-8px",o.style.display="flex",o.style.justifyContent="flex-end";var a=document.createTextNode("...");return r.appendChild(a),o.appendChild(r),o}},reorderable:!1,resizable:!0,width:"40"}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){e=e||{}},setInput:function(e,t){this._filePaths=e,this._fileInfoArray=t,this.emit("inputSet",e)},getInput:function(){return{filePaths:this._filePaths,fileInfoArray:this._fileInfoArray}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(306),i(204),i(222),i(206),i(285),i(219),i(263),i(854)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c="/matlab/cfbValidationServiceChannel";return e([n],{_deferredMap:{},constructor:function(e){e=e||{},a.subscribe(c,this._responseHandler,this);var i=new t;this._deferredMap[""]=i,this._getInvalidFileCharacters(),s.getSetting(["matlab","desktop","currentfolder"],"ShowHiddenFiles").then(function(e){this._unixHiddenFileSetting=e.value}.bind(this)),s.listenTo(["matlab","desktop","currentfolder"],"ShowHiddenFiles",this._setUnixHiddenFileSetting.bind(this))},_responseHandler:function(e){try{if("getInvalidCharactersRes"===e.data.identifier){var t=e.data.data;this._invalidStartingCharacters=t.invalidStartingCharacters,this._invalidCharacters=t.invalidCharacters,this._errorMessage=t.errorMessage,this._isUnix=t.isUnix,this._resolveResponseForFilenameValidation()}}catch(e){console.log(e.toString())}},_setUnixHiddenFileSetting:function(e){this._unixHiddenFileSetting=e.newValue},validateFileName:function(e){if(void 0!==this._invalidCharacters){var i=new t,n=this._getFileNameValidationResponse(e);return i.resolve(n),i.promise}i=new t;return this._deferredMap[e]=i,i.promise},_resolveResponseForFilenameValidation:function(){for(var e in this._deferredMap)if(this._deferredMap.hasOwnProperty(e)){var t=this._deferredMap[e],i=this._getFileNameValidationResponse(e);t.resolve(i),delete this._deferredMap[e]}},_getFileNameValidationResponse:function(e){for(var t=!1,i=e.split(""),n=0;n<i.length;n++)if(-1!==this._invalidCharacters.indexOf(i[n])){t=!0;break}return t||""!==this._invalidStartingCharacters&&e[0]===this._invalidStartingCharacters?{isInvalid:!0,errorMessage:this._errorMessage}:this._isUnix&&"."==e[0]&&!this._unixHiddenFileSetting?{isInvalid:!0,errorMessage:l.hiddenTooltip}:{isInvalid:!1,errorMessage:""}},_getInvalidFileCharacters:function(){a.publish(c,{request:"getInvalidCharactersReq"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(849),i(219),i(516),i(517),i(1617)],o=i.dj.d(n,(function(e,t,{default:i},{default:n},o){const r="/filesystem/sourcecontrol",a=new mf.zero.Model,s=new i({inChannel:"/filesystem/sourcecontrol/sc-status-model/out",outChannel:"/filesystem/sourcecontrol/sc-status-model/in"});let l,c,d;return{getSCStatusCache:async function(){if(c)return c;await(d=d||new Promise(e=>{t.subscribe(r+"/started",(function i(){t.unsubscribe(r+"/started",i),e()})),t.publish(r+"/start",{})}),d),await async function(){if(l)return l;l=new e,await s.start();const t=new n(a,s);return t.start(),await t.fetchModelWithDataDefinition(),l.resolve(),l}();const i=[...a.getTopLevelElements().values()].find(e=>"SCCache"===e.getMetaClass().name);return c=new o(i),c.start(),c}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1224),i(7711),i(7712),i(1225),i(241),i(2527)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{launch:async function(a,s,l,c){var d,u={},h=n.getFileDataService();u.pathDataService=a,u.fileInput=s,u.dropTargetPath=l,u.form=c,u.remote=r,u.fileList=u.fileInput.files||u.fileInput,Object.values(u.fileList).some(e=>h.doesFileExistAtLocation(e.name,u.dropTargetPath))&&(d=await new Promise(t=>{o.displayConfirmDialog(e.confirmReplaceDialogTitle,e.confirmReplaceDialogMsg,{"data-test-id":"cfbUploadConfirmDialog",buttonText:[e.replaceAllLabel,e.cancelLabel],closeCallback:async e=>{const{response:i}=e;1!==i&&(s.value=null,t(!0)),t(!1)}})})),d||(window.FormData?new t(u):new i(u))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7715),i(7716),i(7717),i(7718)],o=i.dj.d(n,(function(e,t){return t(e,"currentfolderbrowser-ui/l10n/resources/currentfolderbrowser/nls/fileDataServiceFaultMessages",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(306)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){this._reset()},lock:function(){this._lock++},unlock:function(){this._lock=Math.max(this._lock-1,0),0===this._lock&&(console.log(`TaskQueue unlocked. Processing queue (${this._queue.length} tasks)`),this._processQueue())},processSync:async function(e){if(0===this._lock)return e();{const i=new t;return this.process(()=>i.resolve()),await i.promise,e()}},process:function(e){0===this._lock?e():(console.log("Task queued since it is locked"),this._queue.push(e))},_processQueue:function(){for(const e of this._queue)e();this._reset()},_reset:function(){this._lock=0,this._queue=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){this._processingCallback=e.processingCallback,this._queue=[],this._index={}},push:function(e,t){if(void 0!==t&&void 0!==this._index[t]){var i=this._index[t];this._queue[i].process=function(){}}var n={process:function(){this._processingCallback(e)}.bind(this)},o=this._queue.push(n)-1;t&&(this._index[t]=o)},processItems:function(){this._queue.forEach((function(e){try{e.process()}catch(e){}})),this.flush()},flush:function(){this._queue=[],this._index={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(232)],o=i.dj.d(n,(function(e){return{upload:function(t,i){return e.upload(t,i)},getWorkerRoutingHost:function(){return e.getWorkerRoutingHost()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(210),i(206),i(225),i(285),i(30),i(277),i(854)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d,u,h,p;return e(null,{constructor:function(e){this.fileBrowser=e.fileBrowser,this.validationService=e.validationService,u=new IntersectionObserver((function(e){for(let t=0;t<e.length;t++)!e[t].isIntersecting&&h?(l.close(),h=!1):e[t].isIntersecting&&!h&&(l.open({popup:d,orient:["after-centered","above-centered"],around:p}),h=!0)}),{threshold:[0]})},_deleteErrorPopups:function(){u.disconnect();var e=r(".cfbErrorDomNode")[0];if(e){e.childNodes[1].style.removeProperty("background-color"),l.close();for(var t=r(".cfbTooltip"),n=0;n<t.length;++n){var o=t[n].parentNode;i.destroy(o)}}p=null},hideErrorPopups:function(){var e=!1;return this._deleteErrorPopups(),d&&d.errorInFileName?(d=null,e=!0):d=null,p=null,e},handleBlankValues:function(){this._deleteErrorPopups(),d=null},_createTooltipDialog:function(e,t,i){var o=r(".cfbErrorDomNode")[0].childNodes[1];i?o.style.setProperty("background-color","#FFC0CB"):o.style.setProperty("background-color","#EEE8AA");var a=new s({content:e});return n.add(a.domNode,"cfbTooltip"),l.open({popup:a,around:t.target}),h=!0,p=t.target,t.target.setAttribute("aria-labelledby",a.domNode.id),u.observe(t.target),a},_checkBlankName:function(e){return""===e},_checkDuplicateName:function(e,t,i){for(var n=this.fileBrowser.grid._rowIdToObject,o=Object.keys(n),r=0,a=o.length;r<a;r++)if(e!==n[o[r]].name&&t===n[o[r]].name&&i.location===n[o[r]].location)return!0;return!1},_checkMatlabName:function(e){var t=e.length;if(".m"===e.substr(t-2)){var i=e.substr(0,t-2);if(i.length>=64||i.length<1||!/^[a-zA-Z][a-zA-Z0-9_]*$/.test(i))return!0}return!1},handleEditorInput:function(e){var i=e.editor.domNode;o(i,"keyup",t.hitch(this,(function(e){this._checkInvalidCharacters(e)})))},_checkInvalidCharacters:function(e){var i=dijit.getEnclosingWidget(e.target),o=i.displayedValue,r=this.fileBrowser.grid.row(e.target).data,s=i.value;if(n.add(i.domNode,"cfbErrorDomNode"),this._clearErrorPopups(),this._checkBlankName(o))(d=this._createTooltipDialog(c.blankTooltip,e,!0)).errorInFileName=!0;else if(this._checkDuplicateName(s,o,r)){(d=this._createTooltipDialog("",e,!0)).errorInFileName=!0,this.fileBrowser.grid.row(e).data.isDirectory?d.set("content",c.duplicateFolderTooltip):d.set("content",c.duplicateFileTooltip)}else this._checkMatlabName(o)&&(d=this._createTooltipDialog(c.matlabTooltip,e,!1));var l=this.validationService.validateFileName(o);a(l,t.hitch(this,(function(t){this._errorMessage=t.errorMessage,this._isInvalid=t.isInvalid,this._isInvalid&&(this._clearErrorPopups(),(d=this._createTooltipDialog(this._errorMessage,e,!0)).errorInFileName=!0)})))},_clearErrorPopups:function(){d&&(this._deleteErrorPopups(),d=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(222),i(203)],o=i.dj.d(n,(function(e,t){var i=t([e],{_projectRoot:"",_cwd:"",_isProjectOpened:!1,_updateProjectRoot:function(e){this._projectRoot=e,this.emit(this.events.PROJECT_OPENED,""!==this._projectRoot),this.emit(this.events.CWD_EQUAL_TO_PROJECT,this._cwdEqualsToProjectRoot())},_updateCwd:function(e){this._cwd=e,this.emit(this.events.CWD_EQUAL_TO_PROJECT,this._cwdEqualsToProjectRoot())},_cwdEqualsToProjectRoot:function(){return this._projectRoot===this._cwd},events:{CWD_EQUAL_TO_PROJECT:"cwd_equal_to_project",PROJECT_OPENED:"project_open"}})();return{getInstance:function(){return i},updateProjectRoot:function(e){this.getInstance()._updateProjectRoot(e)},updateCwd:function(e){this.getInstance()._updateCwd(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(228),i(7729),i(1619),i(7734)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{column:null,cache:null,rolledUpStatusCache:null,constructor:function(e){const a=e.sourceControlStatusCache,s=new r(a);function l(e){return e.get("CONFLICTED")?"CONFLICTED":"MODIFIED"}function c(e){let t="";return e.forEach((e,i)=>{t=t+n[i]+": "+e+"\n"}),t}function d(e){const t=function(e){const t=s.getEntries(e);return t?{type:l(t),tooltip:c(t)}:null}(e);if(t)return t;const i=a.getStatus(e);return{type:i,tooltip:n[i]}}const u={ByDir:function(e){return!e.isDirectory},ByStatus:function(e){return a.getStatus(e.path)}};this.column={id:e.id,label:"Source Control",field:"cmStatus",sortable:!0,hidden:!1,unhidable:!1,renderHeaderCell:function(e){var i=t.create("div");function n(){i.textContent=a.getName()}i.className="sc_file_view_header",e.appendChild(i),a.on(a.events.NAME_REFRESH,n),n()},renderCell:function(e,n,o,r){var s=e.path,l=t.create("img");function c(e){const t=d(s);i.set(l,"class","sc_status_img "+("sc_status_"+t.type)),i.set(l,"title",t.tooltip)}o.appendChild(l),a.on(a.events.CACHE_REFRESH,c),c()},sort:function(e,t){const i=[u.ByDir,u.ByStatus];for(;i.length>0;){const n=i.shift(),o=n(e),r=n(t);if(o!==r)return o<r?-1:1}return o.sort(e,t)},width:"30"}}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="previewPopup" data-dojo-attach-point="previewNode">\n <div class="header" data-dojo-attach-point="headerNode">\n <div class="fileIcon" data-dojo-attach-point="fileIconNode"></div>\n <div class="title" data-dojo-attach-point="titleNode"></div>\n <div class="upperRightMetadata" data-dojo-attach-point="upperRightMetadataNode"></div>\n </div>\n <div class="body" data-dojo-attach-point="bodyNode">\n <div class="richContent" data-dojo-attach-point="richContentNode"></div>\n <div class="richContentLabel" data-dojo-attach-point="richContentLabelNode"></div>\n <div class="primaryMetadata" data-dojo-attach-point="primaryMetadataNode"></div>\n <div class="secondaryMetadata" data-dojo-attach-point="secondaryMetadataNode"></div>\n <div class="tertiaryMetadata" data-dojo-attach-point="tertiaryMetadataNode"></div>\n </div>\n <div class="footer" data-dojo-attach-point="footerNode">\n <div class="openButton" data-dojo-attach-point="openButtonNode"></div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(386),i(222),i(223),i(206),i(2533),i(269),i(317),i(288),i(354),i(239),i(7796),i(857)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=/'/g,f=/\n/g;return e([t,i],{constructor:function(e){this._executionService=e.executionService,this._actionService=e.actionService,this._commandHistoryPrefs=e.commandHistoryPrefs,this._actionIdConstants=e.actionIdConstants,this.dataStore=e.commandHistoryStore,this._commandHistoryDataService=e.commandHistoryDataService,this.listeners=[],this._searchString=""},updatePreferences:function(e){this._commandHistoryPrefs=e,this.refreshTable()},_setPanelState:function(e){if(!(["NoRecords","NoMatches","Normal"].indexOf(e)<0||this._isAnyChildVisible()&&e===this._panelState))switch(this._panelState=e,e){case"NoRecords":this.hideContent(),this.showNoCommandRecordedLabel();break;case"NoMatches":this.hideContent(),this.showNoMatchingCommandsLabel();break;default:this.hideContent(),this.showCommandHistoryTable()}},refreshTable:function(){this.table&&this.isContainerVisible()&&(this.dataStore.isDataStoreEmpty()?this._setPanelState("NoRecords"):this._commandHistoryPrefs.filterMatches?(this._setPanelState("Normal"),this._filterRecords()):(this.dataStore.clearFilter(),this._handleFilterResponse&&this._handleFilterResponse(),this._setPanelState("Normal"),this._searchRecords()))},hideContainer:function(){this.domNode.classList.add("mwHidden")},hideContent:function(){this.table&&this.table.domNode.classList.add("mwHidden"),this.noMatchingCommandsLabel&&this.noMatchingCommandsLabel.domNode.classList.add("mwHidden"),this.noCommandRecordedLabel&&this.noCommandRecordedLabel.domNode.classList.add("mwHidden")},showContainer:function(){this.domNode.classList.remove("mwHidden"),this._widgetStarted||(this.startup(),this._widgetStarted=!0)},showNoMatchingCommandsLabel:function(){this.noMatchingCommandsLabel.domNode.classList.remove("mwHidden"),this._noMatchingCommandsLabelStarted||(this.noMatchingCommandsLabel.startup(),this._noMatchingCommandsLabelStarted=!0)},showNoCommandRecordedLabel:function(){this.noCommandRecordedLabel.domNode.classList.remove("mwHidden"),this._noCommandRecordedLabelStarted||(this.noCommandRecordedLabel.startup(),this._noCommandRecordedLabelStarted=!0)},showCommandHistoryTable:function(){this.table.domNode.classList.remove("mwHidden"),this._tableStarted||(this.table.startup(),this._tableStarted=!0)},isContainerVisible:function(){return!this.domNode.classList.contains("mwHidden")},isTableVisible:function(){return null!=this.table&&!this.table.domNode.classList.contains("mwHidden")},isNoCommandRecordedLabelVisible:function(){return this.noCommandRecordedLabel&&!this.noCommandRecordedLabel.domNode.classList.contains("mwHidden")},isNoMatchingCommandsLabelVisible:function(){return this.noMatchingCommandsLabel&&!this.noMatchingCommandsLabel.domNode.classList.contains("mwHidden")},_isAnyChildVisible:function(){return this.isTableVisible()||this.isNoCommandRecordedLabelVisible()||this.isNoMatchingCommandsLabelVisible()},postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwCommandHistory"),this._commandHistoryDataService.ready().then(function(){this.attachListenersOnContainer(),this.attachListenersOnDataStore()}.bind(this)),this.hideContainer()},insertTimestamp:async function(){const e=this.table.getSelection();let t=0;e.forEach(function(e){for(let i=e.rows.start;i<=e.rows.end;i++){let e=i+t,n=this.dataStore.getItem(e),o=n.chTimestamp;if(!this._commandHistoryDataService.isTimestamp(n)){if("middle"===n.positionInBatch||"end"===n.positionInBatch){let t=this.dataStore.getItem(e-1);for(e--;"start"!==t.positionInBatch;)t=this.dataStore.getItem(e-1),e--;o=t.chTimestamp}(0===e||e-1>=0&&!this._commandHistoryDataService.isTimestamp(this.dataStore.getItem(e-1)))&&(this._commandHistoryDataService.insertTimestampAtIndex(o,e),t++)}}"popup"===this._commandHistoryPrefs.displayMode&&(this.emit("recallSelectedCommands",""),this._adjustHeight(),this._preventClipingAtTop(),this._adjustActionsMenuBtn())}.bind(this))},deleteSelectedCommands:async function(){this._deletingRecord=!0;var e=[],t=this.dataStore.isDataStoreFiltered();t&&(e=await this.getSelectedUUIDs(),this.dataStore.clearFilter(),this.setSelectionByUUIDs(e));var i=this.table.getSelection(),n=[];i.forEach(function(e){for(var t=0,i=e.rows.start;i<=e.rows.end;i++){var o,r=i-t,a=this.dataStore.getItem(r);if(a.positionInBatch){switch(a.positionInBatch){case"start":var s=this.dataStore.getItem(r+1);"middle"===s.positionInBatch?s.positionInBatch="start":s.positionInBatch="",a.repeat&&(s.repeat=a.repeat),r+1,o=s;break;case"end":for(var l=this.dataStore.getItem(r-1),c=1;!l.positionInBatch;)l=this.dataStore.getItem(r-1-c),c++;"middle"===l.positionInBatch?l.positionInBatch="end":l.positionInBatch="",r-c,o=l;break;default:r,o=a,a.positionInBatch=""}this._commandHistoryDataService.updateItem(o,"positionInBatch",null,o.positionInBatch),this._commandHistoryDataService.updateItem(o,"repeat",null,o.repeat)}}n.push(d.range().setRows(e.rows.start-t,e.rows.end-t).setColumns(0,1/0)),t+=e.rows.count}.bind(this)),this.dataStore.getData(i).then(function(e){n.reverse().forEach(function(e){this.dataStore.remove(e)}.bind(this)),e.forEach(function(e){itemsToBeRemoved=[],e.forEach((function(e){e&&itemsToBeRemoved.push(e[0])})),this._commandHistoryDataService.removeMultipleItemsFromBackendStore(itemsToBeRemoved),itemsToBeRemoved.forEach(function(e){this._commandHistoryDataService.removeItemFromExecutionServiceStore(e)}.bind(this))}.bind(this))}.bind(this)).then(async function(){t?await this._filterRecords(!0):(this.table.setSelection([]),this.table.setFocus([])),"popup"===this._commandHistoryPrefs.displayMode&&(this.emit("recallSelectedCommands",""),0===this.table.getNumberOfRows()?(!0,this.hidePopup()):(this._adjustHeight(),this._preventClipingAtTop(),this._adjustActionsMenuBtn())),delete this._deletingRecord,this.emit("selectedCommandsDeleted")}.bind(this))},_createContextMenu:function(){this.contextMenu=new s,this.contextMenu.on("open",function(e){const t=this.table.getSelection();var i=document.querySelector('[data-tag="contextMenuInsertTimestamp"]');let n=dijit.getEnclosingWidget(i);t.forEach(function(e){for(let t=e.rows.start;t<=e.rows.end;t++){let e=this.dataStore.getItem(t),i=/^%--.*[AP]M\s--%$/i;e.isTimestamp||i.test(e.value)?n.set("disabled",!0):n.set("disabled",!1)}}.bind(this))}.bind(this));var e=new l({text:h.contextMenuDeleteButtonLabel});e.domNode.setAttribute("data-tag","contextMenuDelete"),e.on("click",this.deleteSelectedCommands.bind(this));var t=new l({text:h.contextMenuCreateScriptButtonLabel}),i=e=>{var t=this._actionService.getAction(this._actionIdConstants.NEW_FILE);t&&t.enabled?this._actionService.executeAction(this._actionIdConstants.NEW_FILE,{fileContents:e,ignoreTemplates:!0,isModified:!0}):r.displayMessage(this._localization.fileCreationErrorMessage,this._localization.fileCreationErrorTitle),"popup"===this._commandHistoryPrefs.displayMode&&(this.hidePopup(),this.emit("recallSelectedCommands",""))};t.on("click",()=>{this.getSelectedCommands().then(e=>{e&&i(e)})});var n=new l({text:h.contextMenuCreateLiveScriptButtonLabel}),o=e=>{var t;t="matlab.internal.liveeditor.openAsLiveCode(['"+(e=(e=e.replace(p,"''")).replace(f,"' newline '"))+"'])",this._executionService.executionEval(t,this._executionService.streamingEval),"popup"===this._commandHistoryPrefs.displayMode&&(this.hidePopup(),this.emit("recallSelectedCommands",""))};n.on("click",()=>{this.getSelectedCommands().then(e=>{e&&o(e)})});let a=new l({text:h.insertTimestampButtonLabel});a.domNode.setAttribute("data-tag","contextMenuInsertTimestamp"),a.on("click",this.insertTimestamp.bind(this)),this.contextMenu.addChild(e),this.contextMenu.addChild(new c),this.contextMenu.addChild(t),this.contextMenu.addChild(n),this.contextMenu.addChild(a)},getSelectedCommands:function(){var e=this.table.getSelection();return this.table.dataStore.getSelectedCommands(e)},getSelectedUUIDs:function(){var e=this.table.getSelection();return this.table.dataStore.getSelectedUUIDs(e)},setSelectionByUUIDs:function(e){let t=[];e instanceof Array&&e.forEach(e=>{const i=this.table.dataStore.getItemByUUId(e);i&&"number"==typeof i.rowIndex&&t.push(d.range().setRows(i.rowIndex-1,i.rowIndex-1).setColumns(1,1))}),this._setSelection(t)},destroy:function(){this.listeners.forEach((function(e){e.remove()})),this.table&&(this.table._table.destroy(),this.table=null),this.dataStore&&this.dataStore.clearFilter(),this.noCommandRecordedLabel&&(this.noCommandRecordedLabel=null),this.noMatchingCommandsLabel&&(this.noMatchingCommandsLabel=null),this.inherited(arguments)},createNoCommandRecordedLabel:function(){this.noCommandRecordedLabel=new a({text:h.emptyCommandHistory,horizontalAlignment:"left","data-test-id":"noCommandRecordedLabel"}),this.noCommandRecordedLabel.domNode.classList.add("mwHidden"),this.noCommandRecordedLabel.set("width","100%")},createNoMatchingCommandsLabel:function(){this.noMatchingCommandsLabel=new a({text:h.noSearchResults,horizontalAlignment:"left","data-test-id":"noMatchingCommandsLabel"}),this.noMatchingCommandsLabel.domNode.classList.add("mwHidden"),this.noMatchingCommandsLabel.set("width","100%")},createCommandHistoryTable:function(){this._createContextMenu(),this.table=new u(this.dataStore),this.table.domNode.classList.add("mwHidden"),this._commandHistoryDataService.ready().then(this.attachListenersOnTable.bind(this))},attachListenersOnContainer:function(){},attachListenersOnDataStore:function(){},attachListenersOnTable:function(){this.listeners.push(this.table._table.on("contextMenu",function(e){setTimeout(function(){var t,i=this.table.getSelection();i&&(t=i.some((function(t){return t.rows.start<=e.dataRange.rows.start&&t.rows.end>=e.dataRange.rows.start}))),t||(this.table.setSelection([e.dataRange]),this.table.setFocus([e.dataRange.setColumns(1,1)])),this.contextMenu.openMenu({x:e.left,y:e.top})}.bind(this),0)}.bind(this)));var e=function(){this.getSelectedCommands().then(e=>{e&&(this._executionService.authoringEval(e,this._executionService.streamingEval),"popup"===this._commandHistoryPrefs.displayMode&&this.emit("recallSelectedCommands",""))})}.bind(this);this.listeners.push(this.table._table.on("selectedAction",e))},_dispatchKey:function(e){var t=this.table.domNode.querySelector("[tabIndex='0']");o.emit(t,"keydown",e)},_setSelection:function(e,t){var i;if(e instanceof Array)this.table.setSelection(e);else if(e=e<0?0:e,t=t<0?0:t,i=d.range().setRows(e,t).setColumns(1,1),this.table._table.scrollTo(i),this.table.setSelection([]),"popup"===this._commandHistoryPrefs.displayMode){this.table.setFocus([i]);var o={bubbles:!0,keyCode:n.SPACE,ctrlKey:!0};this._dispatchKey(o)}else this.table.setSelection([i])},_filterRecords:async function(e){if(""===this._searchString)return this.dataStore.clearFilter(),void(this._handleFilterResponse&&this._handleFilterResponse(e));let t=this._commandHistoryPrefs.matchAnywhere?this.dataStore.LocationConstants.ANYWHERE:this.dataStore.LocationConstants.BEGINNING;await this.dataStore.filterRecords({text:this._searchString,location:t,matchcase:this._commandHistoryPrefs.matchCase}),this._handleFilterResponse&&this._handleFilterResponse(e)},_searchRecords:function(e){""===this._searchString&&this.isTableVisible()||this.dataStore.searchPreviousOccurrence(this._searchString,this._commandHistoryPrefs,e).then(this._handleSearchResponse.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(328),i(411),i(203),i(204),i(228),i(210),i(211),i(213),i(206),i(7785),i(209),i(229),i(754),i(486)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){p.deprecated({deprecated:{module:"MW/dialog/DialogUtils"},replacement:{module:"mw-dialogs/Dialogs"},geckNumber:1471429});var f={dismiss:function(e,t){t.close()}},g=i(e,{constructor:function(e){(e=e||{}).message=e.message||"This space intentionally left blank",e.buttons=e.buttons||{name:"ok",label:this._getLocalizedName("ok"),buttonHandler:{handler:"dismiss"}},e.options=e.options||{},n.isArray(e.buttons)||(e.buttons=[e.buttons])},buildRendering:function(){this.inherited(arguments),this._setDialogOptions(this.options),this._addMessage(this.message),this._addButtons(this.buttons)},startup:function(){n.isFunction(this.message.startup)&&this.message.startup(),this.buttonWidgets.forEach((function(e){e.startup()}))},destroy:function(){l.emit(this.domNode,"restorefocus",{bubbles:!0}),this.inherited(arguments),this.message&&n.isFunction(this.message.onClose)&&this.message.onClose()},destroyRecursive:function(){this.inherited(arguments),delete this.message,this.buttonWidgets&&delete this.buttonWidgets},_setDialogOptions:function(e){r.add(this.domNode,e.dialogClass||"messageDialog"),e&&e["data-test-id"]&&o.set(this.domNode,"data-test-id",e["data-test-id"])},_addMessage:function(e){n.isString(e)?(o.set(this.domNode,"innerHTML",e),s.set(this.domNode,"whiteSpace","pre-line")):n.isFunction(e.placeAt)?e.placeAt(this.domNode,"first"):a.place(e,this.domNode,"first")},_addButtons:function(e){this.buttonWidgets=[],"none"!==this.buttons.toString().toLowerCase()&&(this.buttonContainer=this._createButtons(e),a.place(this.buttonContainer,this.domNode,"last"))},_createButtons:function(e){var t=a.create("div",{class:"buttonContainer"});return(e=this._convertButtonsToNewFormat(e)).forEach((function(e){var i=this._createButton(e);e["data-testid"]&&o.set(i.domNode,"data-testid",e["data-testid"]),i.placeAt(t,"last"),this.buttonWidgets.push(i)}),this),t},_convertButtonsToNewFormat:function(e){var t,i=[];return e.forEach((function(e){var n;if(e.name&&e.buttonHandler&&e.buttonHandler.handler)i.push(e);else{for(n in d.warn("buttons format is deprecated: "+e+' expected format: {name: "ok", label: "OK", buttonHandler: {handler: function(){}, scope:}}'),t={},e)e.hasOwnProperty(n)&&(t.name=n,t.buttonHandler={},t.buttonHandler.handler=e[n]);i.push(t)}})),i},_createButton:function(e){var i=e.label||this._getLocalizedName(e.name),n=this._getHandlerFunction(e);return new t({label:i,onClick:n})},_getLocalizedName:function(e){return n.getObject(e,!1,h)||e},_getHandlerFunction:function(e){var t,i=e.buttonHandler.handler,o=e.buttonHandler.scope;if(n.isString(i)){if(!f.hasOwnProperty(i))throw new Error("Unknown button handler: "+t);t=f[i]}else t=i;return t=o?n.hitch(o,t,e,this):n.hitch(this,t,e,this)}}),m=i(e,{constructor:function(e){this.message=e},buildRendering:function(){this.inherited(arguments),this._addMessage(this.message)},_addMessage:function(e){o.set(this.domNode,"innerHTML",e),s.set(this.domNode,"whiteSpace","pre-line")}}),_=i([],{constructor:function(e){e=e||{},this.layoutInstance=null},_getLayoutInstance:function(){return this.layoutInstance||(this.layoutInstance=new c),this.layoutInstance},setLayout:function(e){this.layoutInstance=e},_displayWidget:function(e,t,i){var o,r,a,s=this;return o={title:t},r=i.layoutId||i.type+u.generateUuid(),a=i.layoutId||i.type,n.mixin(o,i),"string"!=typeof e&&e||(e=new m(e)),i.dismissOnClick&&l(e,"click",(function(){e.close()})),e.onClose=function(){return i.closeCallBack&&"function"==typeof i.closeCallBack&&i.closeCallBack(),s._getLayoutInstance().removeWidget(r),!0},e.onCancel=function(){i.cancelCallBack&&"function"==typeof i.cancelCallBack&&i.cancelCallBack(),e.close()},this._getLayoutInstance().addWidget(r,a,e,o),e},displayModalDialog:function(e,t,i,n){var o;return"fault"===(n=n||{}).dialogType?(n.dialogClass=n.dialogClass||"faultMessage",n.layoutId=n.layoutId||"faultDialog"):"warn"===n.dialogType?(n.dialogClass=n.dialogClass||"warnMessage",n.layoutId=n.layoutId||"warnDialog"):n.dialogType=n.dialogType||"messageDialog",o=new g({message:e,buttons:i,options:n}),n.isModal=!0,n.type=n.dialogType,this._displayWidget(o,t,n)},displayNonModalDialog:function(e,t,i){return(i=i||{}).type="floatingPane",this._displayWidget(t,e,i,i.type)},_getModalDialogWidget:function(){return g}}),v=null;return v||(v=new _),v}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){var t={};return e.setObject("dojo.data.util.filter",t),t.patternToRegExp=function(e,t){for(var i="^",n=null,o=0;o<e.length;o++)switch(n=e.charAt(o)){case"\\":i+=n,o++,i+=e.charAt(o);break;case"*":i+=".*";break;case"?":i+=".";break;case"$":case"^":case"/":case"+":case".":case"|":case"(":case")":case"{":case"}":case"[":case"]":i+="\\";default:i+=n}return i+="$",t?new RegExp(i,"mi"):new RegExp(i,"m")},t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(240),i(2536)],o=i.dj.d(n,(function(e,t,i){var n={};return e.setObject("dojo.data.util.simpleFetch",n),n.errorHandler=function(e,i){if(i.onError){var n=i.scope||t.global;i.onError.call(n,e,i)}},n.fetchHandler=function(e,n){var o=n.abort||null,r=!1,a=n.start?n.start:0,s=n.count&&n.count!==1/0?a+n.count:e.length;n.abort=function(){r=!0,o&&o.call(n)};var l=n.scope||t.global;if(n.store||(n.store=this),n.onBegin&&n.onBegin.call(l,e.length,n),n.sort&&e.sort(i.createSortFunction(n.sort,this)),n.onItem)for(var c=a;c<e.length&&c<s;++c){var d=e[c];r||n.onItem.call(l,d,n)}if(n.onComplete&&!r){var u=null;n.onItem||(u=e.slice(a,s)),n.onComplete.call(l,u,n)}},n.fetch=function(t){return(t=t||{}).store||(t.store=this),this._fetchItems(t,e.hitch(this,"fetchHandler"),e.hitch(this,"errorHandler")),t},n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){var t={};return e.setObject("dojo.data.util.sorter",t),t.basicComparator=function(e,t){var i=-1;return null===e&&(e=void 0),null===t&&(t=void 0),e==t?i=0:(e>t||null==e)&&(i=1),i},t.createSortFunction=function(e,i){var n,o=[];function r(e,t,i,n){return function(o,r){var a=n.getValue(o,e),s=n.getValue(r,e);return t*i(a,s)}}for(var a=i.comparatorMap,s=t.basicComparator,l=0;l<e.length;l++){var c=(n=e[l]).attribute;if(c){var d=n.descending?-1:1,u=s;a&&("string"!=typeof c&&"toString"in c&&(c=c.toString()),u=a[c]||s),o.push(r(c,d,u,i))}}return function(e,t){for(var i=0;i<o.length;){var n=o[i++](e,t);if(0!==n)return n}return 0}},t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1914),i(238),i(203),i(204),i(214),i(572),i(217),i(206),i(279),i(1011),i(754),i(486)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){u.deprecated({deprecated:{module:"MW/dialog/Dialog"},replacement:{module:"mw-dialogs/Dialogs"},geckNumber:1471429});var h={_userPreferredPosition:null,_setTitleAttr:{node:"titleNode",type:"textContent"},postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-focus","temporary"),this.closeButtonNode.title=d.close},setMover:function(e){this._mover=e},_setup:function(){this.inherited(arguments),this.titleBar&&this.draggable&&(this._moveable.destroy(),this._moveable=new r(this.domNode,{handle:this.titleNode}),o.after(this._moveable,"onMoveStop",n.hitch(this,"_endDrag"),!0))},show:function(){var e=this.inherited(arguments);return this._moveable.mover=this._mover||c,this.own(s(this.domNode,"click",n.hitch(this,this.handleFocus))),e},isTop:function(){return e._DialogLevelManager.isTop(this)},handleFocus:function(){!this.open||!this.isTop()||this.focused&&t.curNode||this.focus()},placeDialogAt:function(e){e&&(this._relativePosition={x:e.x,y:e.y})},resize:function(){var e,t,i=l.getBox(this.ownerDocument),n=a.position(this.domNode);this._userPreferredPosition=this._relativePosition?this._relativePosition:this._userPreferredPosition,this._userPreferredPosition&&(e=this._userPreferredPosition.x+n.w,t=this._userPreferredPosition.y+n.h,e>i.w||t>i.h?delete this._relativePosition:this._relativePosition=this._userPreferredPosition),this.inherited("resize",arguments)}};return i([e],h)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(242),i(203),i(356),i(302),i(224),i(445),i(279),i(227),i(210),i(217),i(211),i(248),i(216),i(328),i(867),i(231),i(572),i(7791),i(2539),i(7793),i(7794)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){return e.experimental("dojox.layout.FloatingPane"),n("dojox.layout.FloatingPane",[b,f],{closable:!0,dockable:!0,resizable:!1,maxable:!1,resizeAxis:"xy",title:"",dockTo:"",duration:400,contentClass:"dojoxFloatingPaneContent",_showAnim:null,_hideAnim:null,_dockNode:null,_restoreState:{},_allFPs:[],_startZ:100,templateString:C,attributeMap:t.delegate(g.prototype.attributeMap,{title:{type:"innerHTML",node:"titleNode"}}),postCreate:function(){this.inherited(arguments),this._moveable=new v(this.domNode,{handle:this.focusNode}),this.dockable||(this.dockNode.style.display="none"),this.closable||(this.closeNode.style.display="none"),this.maxable||(this.maxNode.style.display="none",this.restoreNode.style.display="none"),this.resizable?this.domNode.style.width=u.getContentBox(this.domNode).w+"px":this.resizeHandle.style.display="none",this._allFPs.push(this),this.domNode.style.position="absolute",this.bgIframe=new m(this.domNode),this._naturalState=u.position(this.domNode)},startup:function(){if(!this._started){if(this.inherited(arguments),this.resizable&&(s("ie")?this.canvas.style.overflow="auto":this.containerNode.style.overflow="auto",this._resizeHandle=new y({targetId:this.id,resizeAxis:this.resizeAxis},this.resizeHandle)),this.dockable){var e,n,o=this.dockTo;if(this.dockTo?this.dockTo=_.byId(this.dockTo):this.dockTo=_.byId("dojoxGlobalFloatingDock"),!this.dockTo)o?(e=o,n=c.byId(o)):(n=h.create("div",null,i.body()),d.add(n,"dojoxFloatingDockDefault"),e="dojoxGlobalFloatingDock"),this.dockTo=new T({id:e,autoPosition:"south"},n),this.dockTo.startup();"none"!=this.domNode.style.display&&"hidden"!=this.domNode.style.visibility||this.minimize()}this.connect(this.focusNode,p.press,"bringToTop"),this.connect(this.domNode,p.press,"bringToTop");var r=u.getContentBox(this.domNode);this.resize(t.mixin(u.position(this.domNode),{w:r.w,h:r.h})),this._started=!0}},setTitle:function(t){e.deprecated("pane.setTitle","Use pane.set('title', someTitle)","2.0"),this.set("title",t)},close:function(){this.closable&&(r.unsubscribe(this._listener),this.hide(t.hitch(this,(function(){this.destroyRecursive()}))))},hide:function(e){o.fadeOut({node:this.domNode,duration:this.duration,onEnd:t.hitch(this,(function(){this.domNode.style.display="none",this.domNode.style.visibility="hidden",this.dockTo&&this.dockable&&this.dockTo._positionDock(null),e&&e()}))}).play()},show:function(e){o.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:t.hitch(this,(function(){this.domNode.style.display="",this.domNode.style.visibility="visible",this.dockTo&&this.dockable&&this.dockTo._positionDock(null),"function"==typeof e&&e(),this._isDocked=!1,this._dockNode&&(this._dockNode.destroy(),this._dockNode=null)}))}).play();var i=u.getContentBox(this.domNode);this.resize(t.mixin(u.position(this.domNode),{w:i.w,h:i.h})),this._onShow()},minimize:function(){this._isDocked||this.hide(t.hitch(this,"_dock"))},maximize:function(){this._maximized||(this._naturalState=u.position(this.domNode),this._isDocked&&(this.show(),setTimeout(t.hitch(this,"maximize"),this.duration)),d.add(this.focusNode,"floatingPaneMaximized"),this.resize(l.getBox()),this._maximized=!0)},_restore:function(){this._maximized&&(this.resize(this._naturalState),d.remove(this.focusNode,"floatingPaneMaximized"),this._maximized=!1)},_dock:function(){!this._isDocked&&this.dockable&&(this._dockNode=this.dockTo.addNode(this),this._isDocked=!0)},resize:function(e){e=e||this._naturalState,this._naturalState=e;var t=this.domNode.style;"t"in e?t.top=e.t+"px":"y"in e&&(t.top=e.y+"px"),"l"in e?t.left=e.l+"px":"x"in e&&(t.left=e.x+"px"),t.width=e.w+"px",t.height=e.h+"px";var i={l:0,t:0,w:e.w,h:e.h-this.focusNode.offsetHeight};u.setMarginBox(this.canvas,i),this._checkIfSingleChild(),this._singleChild&&this._singleChild.resize&&this._singleChild.resize(i)},bringToTop:function(){var e=a.filter(this._allFPs,(function(e){return e!==this}),this);e.sort((function(e,t){return e.domNode.style.zIndex-t.domNode.style.zIndex})),e.push(this),a.forEach(e,(function(e,t){e.domNode.style.zIndex=this._startZ+2*t,d.remove(e.domNode,"dojoxFloatingPaneFg")}),this),d.add(this.domNode,"dojoxFloatingPaneFg")},destroy:function(){this._allFPs.splice(a.indexOf(this._allFPs,this),1),this._resizeHandle&&this._resizeHandle.destroy(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(302),i(224),i(246),i(356),i(242),i(614),i(227),i(210),i(217),i(213),i(203),i(248),i(712),i(328),i(216)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){e.experimental("dojox.layout.ResizeHandle");var _=h("dojox.layout._ResizeHelper",g,{show:function(){u.set(this.domNode,"display","")},hide:function(){u.set(this.domNode,"display","none")},resize:function(e){d.setMarginBox(this.domNode,e)}});return h("dojox.layout.ResizeHandle",[g,m],{targetId:"",targetContainer:null,resizeAxis:"xy",activeResize:!1,activeResizeClass:"dojoxResizeHandleClone",animateSizing:!0,animateMethod:"chain",animateDuration:225,minHeight:100,minWidth:100,constrainMax:!1,maxHeight:0,maxWidth:0,fixedAspect:!1,intermediateChanges:!1,startTopic:"/dojo/resize/start",endTopic:"/dojo/resize/stop",templateString:'<div dojoAttachPoint="resizeHandle" class="dojoxResizeHandle"><div></div></div>',postCreate:function(){this.connect(this.resizeHandle,p.press,"_beginSizing"),this.activeResize?this.animateSizing=!1:(this._resizeHelper=f.byId("dojoxGlobalResizeHelper"),this._resizeHelper||(this._resizeHelper=new _({id:"dojoxGlobalResizeHelper"}).placeAt(a.body()),c.add(this._resizeHelper.domNode,this.activeResizeClass))),this.minSize||(this.minSize={w:this.minWidth,h:this.minHeight}),this.constrainMax&&(this.maxSize={w:this.maxWidth,h:this.maxHeight}),this._resizeX=this._resizeY=!1;var e=t.partial(c.add,this.resizeHandle);switch(this.resizeAxis.toLowerCase()){case"xy":this._resizeX=this._resizeY=!0,e("dojoxResizeNW");break;case"x":this._resizeX=!0,e("dojoxResizeW");break;case"y":this._resizeY=!0,e("dojoxResizeN")}},_beginSizing:function(e){if(!this._isSizing&&(i.publish(this.startTopic,[this]),this.targetWidget=f.byId(this.targetId),this.targetDomNode=this.targetWidget?this.targetWidget.domNode:l.byId(this.targetId),this.targetContainer&&(this.targetDomNode=this.targetContainer),this.targetDomNode)){if(!this.activeResize){var t=d.position(this.targetDomNode,!0);this._resizeHelper.resize({l:t.x,t:t.y,w:t.w,h:t.h}),this._resizeHelper.show(),this.isLeftToRight()||(this._resizeHelper.startPosition={l:t.x,t:t.y})}this._isSizing=!0,this.startPoint={x:e.clientX,y:e.clientY};var n=u.getComputedStyle(this.targetDomNode),r="border-model"===d.boxModel?{w:0,h:0}:d.getPadBorderExtents(this.targetDomNode,n),s=d.getMarginExtents(this.targetDomNode,n);if(this.startSize={w:u.get(this.targetDomNode,"width",n),h:u.get(this.targetDomNode,"height",n),pbw:r.w,pbh:r.h,mw:s.w,mh:s.h},!this.isLeftToRight()&&"absolute"==u.get(this.targetDomNode,"position")){var c=d.position(this.targetDomNode,!0);this.startPosition={l:c.x,t:c.y}}this._pconnects=[i.connect(a.doc,p.move,this,"_updateSizing"),i.connect(a.doc,p.release,this,"_endSizing")],o.stop(e)}},_updateSizing:function(e){if(this.activeResize)this._changeSizing(e);else{var t=this._getNewCoords(e,"border",this._resizeHelper.startPosition);if(!1===t)return;this._resizeHelper.resize(t)}e.preventDefault()},_getNewCoords:function(e,t,i){try{if(!e.clientX||!e.clientY)return!1}catch(e){return!1}this._activeResizeLastEvent=e;var n=(this.isLeftToRight()?1:-1)*(this.startPoint.x-e.clientX),o=this.startPoint.y-e.clientY,r=this.startSize.w-(this._resizeX?n:0),a=this.startSize.h-(this._resizeY?o:0),s=this._checkConstraints(r,a);switch((i=i||this.startPosition)&&this._resizeX&&(s.l=i.l+n,s.w!=r&&(s.l+=r-s.w),s.t=i.t),t){case"margin":s.w+=this.startSize.mw,s.h+=this.startSize.mh;break;case"border":s.w+=this.startSize.pbw,s.h+=this.startSize.pbh}return s},_checkConstraints:function(e,t){if(this.minSize){var i=this.minSize;e<i.w&&(e=i.w),t<i.h&&(t=i.h)}if(this.constrainMax&&this.maxSize){var n=this.maxSize;e>n.w&&(e=n.w),t>n.h&&(t=n.h)}if(this.fixedAspect){var o=this.startSize.w,r=this.startSize.h,a=o*t-r*e;a<0?e=t*o/r:a>0&&(t=e*r/o)}return{w:e,h:t}},_changeSizing:function(e){var i=this.targetWidget&&t.isFunction(this.targetWidget.resize),n=this._getNewCoords(e,i&&"margin");if(!1!==n){if(i)this.targetWidget.resize(n);else if(this.animateSizing)s[this.animateMethod]([r.animateProperty({node:this.targetDomNode,properties:{width:{start:this.startSize.w,end:n.w}},duration:this.animateDuration}),r.animateProperty({node:this.targetDomNode,properties:{height:{start:this.startSize.h,end:n.h}},duration:this.animateDuration})]).play();else u.set(this.targetDomNode,{width:n.w+"px",height:n.h+"px"});this.intermediateChanges&&this.onResize(e)}},_endSizing:function(e){n.forEach(this._pconnects,i.disconnect);var o=t.partial(i.publish,this.endTopic,[this]);this.activeResize?o():(this._resizeHelper.hide(),this._changeSizing(e),setTimeout(o,this.animateDuration+15)),this._isSizing=!1,this.onResize(e)},onResize:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(273),i(241),i(857)],o=i.dj.d(n,(function(e,t,i){var n=["matlab","desktop","commandhistory"];return{setup:function(e){this._commandHistoryDataService=e.commandHistoryDataService,this._settingsService=e.settingsService},clearCommandHistory:function(){this._settingsService.getSetting(["matlab","confirmationdialogs"],"CommandHistoryDeleteConfirm").then(function(n){if(!0===n.value){var o=i.clearCommandsDialogTitle,r=i.clearCommandHistoryDialogMessage,a=t.displayConfirmDialog(o,r,{icon:"warning",defaultAcceptButton:2,"data-test-id":"clearCommandHistoryConfirmDialog"});a.addButtonEventListener(e.OK,function(){this._commandHistoryDataService.resetStore.bind(this._commandHistoryDataService)(),a.close()}.bind(this)),a.addButtonEventListener(e.CANCEL,(function(){a.close()}))}else this._commandHistoryDataService.resetStore.bind(this._commandHistoryDataService)()}.bind(this))},insertTimestampAtEnd:async function(){await this._commandHistoryDataService.insertTimestampAtEnd()},setMatchCase:function(e){e=e[0],this._settingsService.setSetting(n,"MatchCase",e.detail.widget.checked)},setMatchAnywhere:function(e){e=e[0],this._settingsService.setSetting(n,"MatchAnywhere",e.detail.widget.checked)},setMatchBeginning:function(e){e=e[0],this._settingsService.setSetting(n,"MatchAnywhere",!e.detail.widget.checked)},setFilterMatches:function(e){e=e[0],this._settingsService.setSetting(n,"FilterMatches",e.detail.widget.checked)},generateActions:function(e){this._actionObjects=[],this._actionIds=[];var t={id:"cmdhist.matchAnywhere",enabled:!0,selected:e.matchAnywhere,text:i.matchAnywhereButtonLabel,callback:this.setMatchAnywhere.bind(this),itemType:"radio",buttonGroup:"commandHistoryMatchPref"},n={id:"cmdhist.matchBeginning",enabled:!0,selected:!e.matchAnywhere,text:i.matchBeginningButtonLabel,callback:this.setMatchBeginning.bind(this),itemType:"radio",buttonGroup:"commandHistoryMatchPref"},o={id:"cmdhist.matchCase",enabled:!0,selected:e.matchCase,text:i.matchCaseButtonLabel,callback:this.setMatchCase.bind(this),itemType:"check"},r={id:"cmdhist.filterMatches",enabled:!0,selected:e.filterMatches,text:i.filterMatchesButtonLabel,callback:this.setFilterMatches.bind(this),itemType:"check"},a={id:"cmdhist.clearCommands",enabled:!0,text:i.clearHistoryButtonLabel,callback:this.clearCommandHistory.bind(this)};let s={id:"cmdhist.insertTimestampAtEnd",enabled:!0,text:i.insertTimestampButtonLabel,callback:this.insertTimestampAtEnd.bind(this)};this._actionObjects.push(t),this._actionIds.push(t.id),this._actionObjects.push(n),this._actionIds.push(n.id),this._actionObjects.push(o),this._actionIds.push(o.id),this._actionObjects.push(r),this._actionIds.push(r.id),this._actionObjects.push(null),this._actionIds.push(null),this._actionObjects.push(s),this._actionIds.push(s.id),this._actionObjects.push(a),this._actionIds.push(a.id)},getActions:function(){return this._actionObjects},getActionIds:function(){return this._actionIds}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(302),i(212),i(244),i(2142),i(239),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=null,l=e([o],{constructor:function(){},getItem:function(e){return this.getLocalCellData(e,0)},getPositionInBatch:function(e){return this.getLocalCellData(e,0).positionInBatch},getItemById:function(e){var t,i;return this._data.forEach((function(n,o){n[0].id===e&&(t=n,i=o+1)})),t?{item:t[0],rowIndex:i}:null},getItemByUUId:function(e){var t,i;return this._data.forEach((function(n,o){n[0].uuid===e&&(t=n,i=o+1)})),t?{item:t[0],rowIndex:i}:null},getCommand:function(e){return this.getLocalCellData(e,0).value},getSelectedUUIDs:function(e){var t,o,a,s=[],l=new i;return e.length>0?(e.sort((function(e,t){return e.rows.start<t.rows.start?-1:e.rows.start>t.rows.start?1:0})),n(Array.from(e,function(e,i){return t=e.rows.start,o=e.rows.end,a=r.range().setRows(t,o).setColumns(0,0),this.getData([a]).then(function(e){e[0].forEach((function(e){s.push(e[0].uuid)}))}.bind(this))}.bind(this))).then((function(){l.resolve(s)}))):l.resolve(null),l},getSelectedCommands:function(e){var t,n,o,a="",s=new i;return e.length>0?(e.sort((function(e,t){return e.rows.start<t.rows.start?-1:e.rows.start>t.rows.start?1:0})),e.forEach(function(i,l){t=i.rows.start,n=i.rows.end,o=r.range().setRows(t,n).setColumns(0,0),this.getData([o]).then((function(t){t[0].forEach((function(e){a+=e[0].value+"\n"})),l===e.length-1&&(a=a.trim(),s.resolve(a))}))}.bind(this))):s.resolve(null),s},insertAtEnd:function(e){const t=this.isDataStoreFiltered();var i;t&&this.clearFilter();var n=this.dataSize.rows.count;i=r.range().setRows(n,n).setColumns(0,1/0),this.add(i,e),t&&this.filter(this._lastKnownFilterCriteria)},_repeat:function(e){var t=this.getItem(e),i=t.repeat||1;t.repeat=++i;var n=r.range().setRows(e,e).setColumns(0,0);this.update(n,[[t]])},deleteRow:function(e){var t=r.range().setRows(e,e).setColumns(0,1/0);this.remove(t)},clearStore:function(){this.isDataStoreFiltered()&&this.clearFilter();var e=this.dataSize.rows.count,t=r.range().setRows(0,e-1).setColumns(0,1/0);e>0&&this.remove(t)},add:function(){this._removeFilteringFromItems(this._getAllDataStoreItems()),this.inherited(arguments)},remove:function(){this._removeFilteringFromItems(this._getAllDataStoreItems()),this.inherited(arguments)},update:function(e,t){this._removeFilteringFromItems(this._getAllDataStoreItems()),this._removeFilteringFromItems(t),this.inherited(arguments)},filter:function(e){return e&&e.value?this._addFilteringToItems(this._getAllDataStoreItems()):this._removeFilteringFromItems(this._getAllDataStoreItems()),this.inherited(arguments)},clearFilter:function(){this._removeFilteringFromItems(this._getAllDataStoreItems()),this.inherited(arguments)},_addFilteringToItems:function(e){e.forEach(e=>{e.forEach(e=>{e.filtered=!0})})},_removeFilteringFromItems:function(e){e.forEach(e=>{e.forEach(e=>{e.filtered&&delete e.filtered})})},_getAllDataStoreItems:function(){return this._filtering?this._filter._data.concat(this._filter._unfilteredData):this._data},isDataStoreEmpty:function(){return 0===this._data.length&&0===this._dataSize.rows.count&&(!this._filtering||this._filter._unfilteredData.length<1)},isDataStoreFiltered:function(){return this._filtering},getDataStoreItemCount:function(){return this._filtering?this._filter._unfilteredData.length:this._data.length},getResidueCount:function(){return this._filtering?this._filter._unfilteredData.length-this._filter._data.length:0},getFiltrateCount:function(){return this._filtering?this._filter._data.length:this._data.length},_searchAnywhere:function(e,t,i){return"number"!=typeof i&&(i=0),!(i+t.length>e.length)&&-1!==e.indexOf(t,i)},_searchBeginning:function(e,t,i){return e.substring(!i||i<0?0:+i,t.length)===t},searchPreviousOccurrence:function(e,t,n){var o,r=new i;if(o="number"==typeof n?n-1:this.dataSize.rows.count-1,t.filterMatches)return r.resolve(o<0?null:o);{let i=t.matchAnywhere?this._searchAnywhere:this._searchBeginning;for(var a=o;a>=0;a--){var s=this._data[a][0].value;if(t.matchCase||(s=s.toLowerCase(),e=e.toLowerCase()),i(s,e))return r.resolve(a)}}return r.resolve(null)},searchNextOccurrence:function(e,t,n){var o,r=new i;if(o="number"==typeof n?n+1:0,t.filterMatches){let e=this.dataSize.rows.count-1;return r.resolve(o>e?null:o)}{let i=t.matchAnywhere?this._searchAnywhere:this._searchBeginning;for(var a=o;a<this.dataSize.rows.count;a++){var s=this._data[a][0].value;if(t.matchCase||(s=s.toLowerCase(),e=e.toLowerCase()),i(s,e))return r.resolve(a)}}return r.resolve(null)},filterRecords:function(e){return this._lastKnownFilterCriteria=this._parseFilterCriteria(e),this.filter(this._lastKnownFilterCriteria)},getLastKnownFilterCriteria:function(){return this._lastKnownFilterCriteria},_parseFilterCriteria:function(e){const t=["type","caseSensitive"];let i={columnIndex:0,field:"value",value:e.text},n={};return["location","matchcase"].forEach((i,o)=>{i in e&&(n[t[o]]=e[i])}),i.compare=n,i},LocationConstants:{ANYWHERE:"contains",BEGINNING:"startsWith",END:"endsWith",EQUALS:"equalTo"}});return{getInstance:function(e){return null===s&&(s=new l([],Object.assign({defaultColumnCount:1},{type:a.TABLE}))),s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NEW_FILE:"motw.newFile",UNDO_CMD:"motw.undoCMD",REDO_CMD:"motw.redoCMD"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t){this._settingsService=e,this._autoCompletion=t,this.own(this._settingsService.listenToSettingChange("matlab.commandwindow.ShowCompletionsAutomatically",this._handleSettingsUpdated.bind(this))),this._settingsService.getSetting("matlab.commandwindow.ShowCompletionsAutomatically").then(function(e){this._handleSettingsUpdated(e)}.bind(this),(function(e){}))},_handleSettingsUpdated:function(e){this._autoCompletion.setMode(1===e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(237),i(314),i(664),i(1227)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e){this._cursor=e},getType:function(){return i.TEXT},convertFromMimeData:function(e){return e=o.stripPrompts(e),t.textToContent(e,this._cursor.getNode())},priority:function(){return 70}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7824)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter","rtc.cursor"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(328),i(255),i(216),i(243),i(258),i(233),i(1229),i(7865),i(290),i(600)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h;return(h=e([i,o,n],{templateString:c,inputLabel:"",constructor:function(e){e&&(this.dialogType=e.dialogType,this.inputLabel=e.inputLabel,this.okAction=e.okAction,this.cancelAction=e.cancelAction,this.fileDataService=e.fileDataService,this.startValue=e.startValue,this.selected=e.selected,this.location=e.location,this._localization=u)},postCreate:function(){this.nameInputLabel.textContent=this.inputLabel},_doOkAction:function(){this.okAction&&!this.okButton.get("disabled")&&this.okAction()},_doCancelAction:function(){this.cancelAction&&this.cancelAction()},onTyping:function(e){var i=t.trim(e.mwEventData.currentContent);""!==i&&i!==this.startValue&&this.inputBox.isInputValid(i)?(this.okButton.set("disabled",!1),this.inputBox.set("validationState","normal"),this.inputBox.set("errorText","")):this.okButton.set("disabled",!0)},onTextKeyup:function(e){e.keyCode===dojo.keys.ENTER?this._doOkAction():e.keyCode===dojo.keys.ESCAPE&&this._doCancelAction()},onClose:function(){},_setCursorPositionAndSelection:function(e,t){var i=this.inputBox.inputNode;if(i.createTextRange){var n=i.createTextRange();n.collapse(),n.moveStart("character",e),n.moveEnd("character",t),n.select()}else i.focus(),i.setSelectionRange(e,t)},onShow:function(){this.inputBox.fileDataService=this.fileDataService,this.dialogType===h.FILE_DIALOG&&(this.inputBox.set("placeholder",d.FileDialogPlaceholder),this.okButton.set("disabled",!0),this.inputBox.isInputValid=t.hitch(this,this._fileNameValidator)),this.dialogType===h.FOLDER_DIALOG&&(this.inputBox.set("placeholder",d.FolderDialogPlaceholder),this.okButton.set("disabled",!0),this.inputBox.isInputValid=t.hitch(this,this._folderNameValidator)),this.inputBox.set("value",this.startValue),this.inputBox.startValue=this.startValue,"number"==typeof this.selected&&this.selected>=0&&this._setCursorPositionAndSelection(0,this.selected)},getFileName:function(){return t.trim(this.inputBox.get("value"))},_folderNameValidator:function(e){return""===(e=t.trim(e))||e===this.startValue||(e.length>255?(this.inputBox.set("validationState","error"),this.inputBox.set("errorText",d.folderNameLengthError),!1):s.isValidFileName(e)?!this.fileDataService||!this.fileDataService.doesFileExistAtLocation(e,this.location)||(this.inputBox.set("validationState","error"),this.inputBox.set("errorText",d.fileOrFolderExistsError),!1):(this.inputBox.set("validationState","error"),this.inputBox.set("errorText",d.invalidFileNameError),!1))},_fileNameValidator:function(e){return""===(e=t.trim(e))||e===this.startValue||(s.MATLAB_EXTENSION_PATTERN.test(e)||l.SUPPORTED_EXTENSION_PATTERN.test(e)?l.SUPPORTED_FILENAME_PATTERN.test(e)?!this.fileDataService||!this.fileDataService.doesFileExistAtLocation(e,this.location)||(this.inputBox.set("validationState","error"),this.inputBox.set("errorText",d.fileOrFolderExistsError),!1):(this.inputBox.set("validationState","error"),this.inputBox.set("errorText",d.invalidMFileNameError),!1):(this.inputBox.set("validationState","error"),this.inputBox.set("errorText",d.invalidMFileExtensionError),!1))}})).FOLDER_DIALOG=0,h.FILE_DIALOG=1,h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(203),i(204),i(228),i(328),i(216),i(255),i(233),i(258),i(241),i(273),i(7868),i(290),i(600),i(225),i(828),i(2548)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return t([o,r,a],{templateString:u,idAttr:"motw-dialog-specifyNewFilename",ACCEPT_ACTION_ID:1,CANCEL_ACTION_ID:2,DIALOG_WIDTH:250,constructor:function(e){e=e||{},this._filename=e.filename,this._location=e.fileLocation,this.fileDataService=e.fileDataService,this.okAction=e.okAction,this.cancelAction=e.cancelAction,this._errorText="",this._dialog=null,this._actions=this.setActions,this._content=u,this._localization=p,this._startValue=s.getFileNameNoExtension(this._filename),this._extension="."+s.getFileNameExtension(this._filename),this._content=this._content.replace("${_localization.cancel}",p.cancel)},getFileName:function(){return this._filename},getDialog:function(){return this._dialog},setActions:function(e){e.response===this.ACCEPT_ACTION_ID?this.okAction():e.response===this.CANCEL_ACTION_ID&&this.cancelAction()},postCreate:function(){var t=dijit.byId("newfileDialog");t&&t.destroyRecursive();var n=dijit.byId("saveAsDialog");n&&n.destroyRecursive();var o={buttonText:[p.save,p.cancel],defaultAcceptButton:this.ACCEPT_ACTION_ID,defaultCancelButton:this.CANCEL_ACTION_ID,"data-testid":"specifyNewFilenameDialog",icon:"info",closeCallback:i.hitch(this,this._actions)},r=l({value:s.getFileNameNoExtension(this._filename),width:this.DIALOG_WIDTH,"data-testid":"specifyNewFilenameInput"});r.on("typing",i.hitch(this,this.handleTextChange));var a=this._isInputValid(this._filename);a||f(".specifyNewFilenameDialog .filenameErr").text(this._errorText);var d=e.toDom(this._content);d.querySelector(".specifyNewFilenameDialog .filenameTitle").textContent=p.warningTitle.replace("_file_",this._filename),d.querySelector(".specifyNewFilenameDialog .filenameDesc").textContent=p.warningDesc,d.querySelector(".specifyNewFilenameDialog .fileInputRow .fileExtension").textContent=this._extension,a||(d.querySelector(".filenameErr").textContent=this._errorText),r.placeAt(d.querySelector(".filenameTextField")),r.startup(),this._dialog=c.displayConfirmDialog("MATLAB Editor",d,o),this._setButtonState(a)},_setButtonState:function(e){e?this._dialog.enableButton(d.TYPE.DO_IT):this._dialog.disableButton(d.TYPE.DO_IT)},_isInvalidMatlabName:function(e){if(s.MATLAB_EXTENSION_PATTERN.test(e)){if(e.length>s.MATLAB_NAME_LENGTH)return h.mFileNameLengthError;if(!s.MATLAB_FILENAME_PATTERN.test(e))return h.invalidMFileNameError}return null},_isInvalidFileName:function(e){return e.length>s.FILE_NAME_LENGTH?h.fileNameLengthError:s.isValidFileName(e)?null:h.invalidFileNameError},_checkFileExists:function(e){return this.fileDataService&&this.fileDataService.doesFileExistAtLocation(e,this._location)?h.fileOrFolderExistsError:null},_isNameBlankOrUnchanged:function(e){return""===e||e===this._startValue?h.noFileNameSpecified:null},_isInputValid:function(e){return e=i.trim(e),this._errorText=this._isNameBlankOrUnchanged(e)||this._isInvalidMatlabName(e)||this._isInvalidFileName(e)||this._checkFileExists(e)||"",""===this._errorText},handleTextChange:function(e){var t=e.mwEventData.currentContent;this._filename=t+this._extension;var i=this._isInputValid(this._filename);this._setButtonState(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(225),i(204),i(224),i(211),i(228),i(1066)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e.NodeList;function a(e){for(;e.childNodes[0]&&1==e.childNodes[0].nodeType;)e=e.childNodes[0];return e}function s(e,t){return"string"==typeof e?11==(e=n.toDom(e,t&&t.ownerDocument)).nodeType&&(e=e.childNodes[0]):1==e.nodeType&&e.parentNode&&(e=e.cloneNode(!1)),e}return t.extend(r,{_placeMultiple:function(t,i){for(var o="string"==typeof t||t.nodeType?e(t):t,r=[],a=0;a<o.length;a++)for(var s,l=o[a],c=this.length,d=c-1;s=this[d];d--)a>0&&(s=this._cloneNode(s),r.unshift(s)),d==c-1?n.place(s,l,i):l.parentNode.insertBefore(s,l),l=s;return r.length&&(r.unshift(0),r.unshift(this.length-1),Array.prototype.splice.apply(this,r)),this},innerHTML:function(e){return arguments.length?this.addContent(e,"only"):this[0].innerHTML},text:function(e){if(arguments.length){for(var t,i=0;t=this[i];i++)1==t.nodeType&&o.set(t,"textContent",e);return this}var n="";for(i=0;t=this[i];i++)n+=o.get(t,"textContent");return n},val:function(e){if(arguments.length){for(var n,o=t.isArray(e),r=0;n=this[r];r++){var a=n.nodeName.toUpperCase(),s=n.type,l=o?e[r]:e;if("SELECT"==a)for(var c=n.options,d=0;d<c.length;d++){var u=c[d];n.multiple?u.selected=-1!=i.indexOf(e,u.value):u.selected=u.value==l}else"checkbox"==s||"radio"==s?n.checked=n.value==l:n.value=l}return this}if((n=this[0])&&1==n.nodeType){if(e=n.value||"","SELECT"==n.nodeName.toUpperCase()&&n.multiple){for(e=[],c=n.options,d=0;d<c.length;d++)(u=c[d]).selected&&e.push(u.value);e.length||(e=null)}return e}},append:function(e){return this.addContent(e,"last")},appendTo:function(e){return this._placeMultiple(e,"last")},prepend:function(e){return this.addContent(e,"first")},prependTo:function(e){return this._placeMultiple(e,"first")},after:function(e){return this.addContent(e,"after")},insertAfter:function(e){return this._placeMultiple(e,"after")},before:function(e){return this.addContent(e,"before")},insertBefore:function(e){return this._placeMultiple(e,"before")},remove:r.prototype.orphan,wrap:function(e){if(this[0]){e=s(e,this[0]);for(var t,i=0;t=this[i];i++){var n=this._cloneNode(e);t.parentNode&&t.parentNode.replaceChild(n,t),a(n).appendChild(t)}}return this},wrapAll:function(e){if(this[0]){e=s(e,this[0]),this[0].parentNode.replaceChild(e,this[0]);for(var t,i=a(e),n=0;t=this[n];n++)i.appendChild(t)}return this},wrapInner:function(e){if(this[0]){e=s(e,this[0]);for(var i=0;i<this.length;i++){var n=this._cloneNode(e);this._wrap(t._toArray(this[i].childNodes),null,this._NodeListCtor).wrapAll(n)}}return this},replaceWith:function(e){e=this._normalize(e,this[0]);for(var t,i=0;t=this[i];i++)this._place(e,t,"before",i>0),t.parentNode.removeChild(t);return this},replaceAll:function(t){for(var i,n=e(t),o=this._normalize(this,this[0]),r=0;i=n[r];r++)this._place(o,i,"before",r>0),i.parentNode.removeChild(i);return this},clone:function(){for(var e=[],t=0;t<this.length;t++)e.push(this._cloneNode(this[t]));return this._wrap(e,this,this._NodeListCtor)}}),r.prototype.html||(r.prototype.html=r.prototype.innerHTML),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{majorVersion:1,minorVersion:1,main:{isCenterExpanded:!1,bottom:{isCollapsed:!1,proportion:.33,panels:[{panelId:"commandWindow",showing:!0}]},left:{isCollapsed:!1,proportion:.22,panels:[{panelId:"cfb",collapsed:!1},{panelId:"workspace",collapsed:!1}],showingSetId:"global"}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7871)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/about",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(206),i(262),i(273),i(339),i(1622)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=null;function s(e){var t=new o(o.SIZE.MEDIUM);return t.set("target",e.domNode),t.show(),t}return{createDialog:function(t){return a?a.bringToTop():a=function(t){var o,l;return o=i.createDialog({title:r.preferences,className:"mwPreferencesDialogContainer",dialogType:i.MODELESS,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,"data-test-id":"preferencesDialog",content:t,buttons:[n.OK,n.CANCEL,n.APPLY,n.HELP],defaultActionButton:n.OK}),l=s(t),o.addButtonEventListener(n.TYPE.DO_IT,e.hitch(t,t.handleOkButtonClick)),o.addButtonEventListener(n.TYPE.CANCEL,(function(){}),!0),o.addButtonEventListener(n.TYPE.APPLY,e.hitch(t,t.handleApplyButtonClick)),o.addButtonEventListener(n.TYPE.HELP,e.hitch(t,t.handleHelpButtonClick)),t.on("showBusyIndicator",(function(){l=s(t)})),t.on("preferencedataavailable",e.hitch(this,(function(){l.destroy()}))),t.on("disableHelpButton",(function(){o.disableButton(n.TYPE.HELP)})),t.on("enableHelpButton",(function(){o.enableButton(n.TYPE.HELP)})),t.on("closedialog",(function(){o.close()})),o.on("close",(function(){a=null})),o}(t),a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){return e([t],{_name:null,_folderPath:null,_creatingProject:!1,Events:{ValueChanged:"ValueChanged",CreatingProjectChanged:"CreatingProjectChanged"},constructor:function(e,t){this._name=e,this._folderPath=t},getName:function(){return this._name},getFolderPath:function(){return this._folderPath},getCreatingProject:function(){return this._creatingProject},setName:function(e){e!==this._name&&(this._name=e,this.emit(this.Events.ValueChanged))},setFolderPath:function(e){e!==this._folderPath&&(this._folderPath=e,this.emit(this.Events.ValueChanged))},setCreatingProject:function(e){e!==this._creatingProject&&(this._creatingProject=e,this.emit(this.Events.CreatingProjectChanged))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(297),i(291)],o=i.dj.d(n,(function(e,t,i){const n=new t;n.setOutTextCallback(null),n.setErrTextCallback(null);let o=null;return{getPathSeparator:async function(){if(!o){const e=(await i.getMVM().feval("filesep",1,[],n))[0];o=e}return o},getFileName:async function(e){const t=await this.getPathSeparator();return e.split(t).pop()},getParent:async function(e){const t=await this.getPathSeparator(),i=e.split(t);return i.pop(),i.join(t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(211),i(269),i(258),i(286),i(243),i(1232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t([e],{_initialValues:null,_nameTextField:null,_folderBrowseButton:null,_folderComboBox:null,constructor:function(e){this._initialValues=e},buildRendering:function(){this.domNode=i.create("div",{class:"NPOFormContainer"})},postCreate:function(){this.inherited(arguments),this._build(),i.place(this._nameLabel.domNode,this._labelContainer),i.create("div",{class:"NPOEmptyRowNode"},this._labelContainer),i.place(this._folderLabel.domNode,this._labelContainer),i.place(this._nameTextField.domNode,this._inputContainer),i.create("div",{class:"NPOEmptyRowNode"},this._inputContainer),i.place(this._folderComboBox.domNode,this._folderContainer),i.place(this._folderBrowseButton,this._folderContainer),this._nameLabel.startup(),this._folderLabel.startup(),this._nameTextField.startup(),this._folderComboBox.startup(),i.place(this._labelContainer,this.domNode),i.place(this._folderContainer,this._inputContainer),i.place(this._inputContainer,this.domNode)},startup:function(){this.inherited(arguments)},_build:function(){this._labelContainer=i.create("div",{class:"NPOColumnContainer"}),this._nameLabel=new n({class:"NPOLabel",height:24,text:s.ProjectNameLabel}),this._folderLabel=new n({class:"NPOLabel",height:24,text:s.ProjectFolderLabel}),this._inputContainer=i.create("div",{class:"NPOColumnContainer NPOFlexElement"}),this._folderContainer=i.create("div",{class:"NPORowContainer"}),this._nameTextField=new o({class:"NPOInput NPOFlexElement",id:"NPOProjectNameInput","data-test-id":"NPOProjectNameInput",width:"auto",height:24,value:this._initialValues.Name}),this._folderComboBox=new r({class:"NPOInput NPOFlexElement","data-test-id":"NPOProjectFolderInput",editable:!0,items:this._initialValues.FolderPaths.map((function(e){return{label:e,value:e}})),value:this._initialValues.DefaultFolderPath}),this._folderBrowseButton=i.create("div",{class:"NPOFolderIcon","data-test-id":"NPOProjectFolderBrowseIcon"})},getFolderBrowseButton:function(){return this._folderBrowseButton},getFolderComboBox:function(){return this._folderComboBox},getNameTextField:function(){return this._nameTextField}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7907)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/feedbackDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7920),i(280),i(275)],o=i.dj.d(n,(function(e,t,i){var n=null;return{getInstance:function(){if(null===n){var o=i.getInstance();n=new e(o,t)}return n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NEW_SYSTEM_OBJECT_BASIC:"sysobj.newBasic",NEW_SYSTEM_OBJECT_ADVANCED:"sysobj.newAdvanced",NEW_SYSTEM_OBJECT_SIMULINK_EXTENSION:"sysobj.newSimulinkExtension"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(7929),i(209),i(7934),i(7935),i(232),i(219),i(641),i(233),i(291),i(7936)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([],{SERVER_PROMPT_TYPES:["ready","debug","keyboard","input","completingBlock","pause"],EXECUTION_STATES:{BUSY:"busy",PAUSE:"pause",READY:"ready",DEBUG:"debug",KEYBOARD:"keyboard",INPUT:"input",COMPLETING_BLOCK:"completingBlock"},PROMPT_STRINGS:{busy:"",pause:"",ready:">> ",debug:"K>> ",keyboard:"K>> ",input:function(e){return this._inputPromptString||""},completingBlock:""},REGEX:/\n/,waitingCommands:[],FILE_WILL_RUN:1,constructor:function(e){this.ASYNC_HANDLERS=[{channel:"/eval/response/completion",handler:"_completionHandler"},{channel:"/eval/response/output",handler:"_outputHandler"},{channel:"/eval/response/error",handler:"_errorHandler"},{channel:"/eval/response/sinktext/output",handler:"_sinktextOutputHandler"},{channel:"/eval/response/sinktext/error",handler:"_sinktextErrorHandler"},{channel:"/eval/response/suggest",handler:"_suggestionHandler"},{channel:"/eval/response/iqminput",handler:"_promptChangeHandler"},{channel:"/eval/response/commandwindow/clear",handler:"_clcHandler"},{channel:"/eval/response/commandwindow/home",handler:"onHomeExecution"},{channel:"/eval/response/editor/openfile",handler:"_openEditorHandler"},{channel:"/eval/runfile",handler:"_handleRunFileRequest"}],e=e||{},this.historyStore=e.historyStore||new o,this.actionService=e.actionService,this.outputWidthInColumns=80,this._shouldShowTypoCorrections=!0,this.commandListeners={},this.streamingEval=!1,this.executionState=this.EXECUTION_STATES.READY,this.fileDataService=e.fileDataService||{},this.pathDataService=e.pathDataService||{},a.registerDefaultMessageFactory("Eval",(function(){return[{mcode:""}]})),a.registerResponseHandler("EvalResponse",this._handleEvalResponse,this),a.registerFaultHandler("Eval",this._handleEvalError,this),a.registerResponseHandler("FEvalResponse:FileOnPath",this._dispatchAction,this),a.registerFaultHandler("FEvalResponse:FileOnPath",(function(e){n.error("Error received while trying to file on path",e)}),this),a.registerResponseHandler("EvalResponse:RunFile",this._handleEvalResponse,this),a.registerFaultHandler("Eval:RunFile",this._handleEvalError,this),a.registerFaultHandler("Eval:MlsPublishPre",this._handleEvalError,this),a.registerResponseHandler("InterruptResponse",this._handleInterruptResponse,this),a.registerFaultHandler("Interrupt",this._handleEvalError,this),this._whenMvmReady=d.getMVM().whenMVMReady(),this.turnOnStreamingEval()},turnOnStreamingEval:function(){this.streamingEval=!0,this.subscribeAsyncHandlers()},turnOffStreamingEval:function(){this.streamingEval=!1,this.unsubscribeAsyncHandlers()},subscribeAsyncHandlers:function(){this._whenMvmReady.then(function(){for(var e=0;e<this.ASYNC_HANDLERS.length;e++)s.subscribe(this.ASYNC_HANDLERS[e].channel,this.ASYNC_HANDLERS[e].handler,this)}.bind(this))},unsubscribeAsyncHandlers:function(){this._whenMvmReady.then(function(){for(var e=0;e<this.ASYNC_HANDLERS.length;e++)s.unsubscribe(this.ASYNC_HANDLERS[e].channel,this.ASYNC_HANDLERS[e].handler,this)}.bind(this))},_completionHandler:function(e){var t=this;setTimeout((function(){var e=t._getLastRequestedItem();if(!t.promptHasBeenCalled){var i=t._previousExecutionState,n=t.executionState;i===t.EXECUTION_STATES.COMPLETING_BLOCK&&n===t.EXECUTION_STATES.BUSY||i===t.EXECUTION_STATES.BUSY&&n===t.EXECUTION_STATES.COMPLETING_BLOCK||(t.waitingCommands.length>0?t._runQueue(t.waitingCommands[0]):t._setExecutionState(t.stateBeforeExecution))}t.onExecutionComplete(e)}),100),a.sendMessage({CurrentFolder:{}})},onExecutionComplete:function(e){},_promptChangeHandler:function(e){this.promptHasBeenCalled=!0;var t=e.data.split("_")[0];"BASE"===t&&(t="READY"),"INCOMPLETE"===t&&(t="COMPLETING_BLOCK"),this._setExecutionState(this.EXECUTION_STATES[t])},_suggestionHandler:function(e){this._shouldShowTypoCorrections&&e&&e.data&&(this.historyStore.newItem({type:"response",value:i.typoSuggestionText,isError:!1,visible:!0}),this.onTypoCorrection(e.data))},onTypoCorrection:function(e){},_sinktextErrorHandler:function(e){e&&e.data&&this.historyStore.newItem({type:"response",value:e.data,isError:!0,visible:!0})},checkIfFileOnPath:function(e,t,i){var n={FEval:{function:"mdbfileonpath",arguments:[c.pathFromFileInfo(e)],nargout:2}};this._whenMvmReady.then(function(){a.sendMessage(n,{fileInfo:e,successCallback:t,failureCallback:i},"FileOnPath")}.bind(this))},_dispatchAction:function(e,t){var i=e[0].results[0],n=e[0].results[1];n===this.FILE_WILL_RUN?t.successCallback&&t.successCallback():this._showPathUpdateDialog(t.fileInfo,n,i,t.successCallback,t.failureCallback)},_showPathUpdateDialog:function(e,t,i,n,o){u({fileInfo:e,displayName:i,fileStatus:t,fileService:this.fileDataService,pathService:this.pathDataService,runAction:n,cancelAction:o})},_sinktextOutputHandler:function(e){if(e&&e.data){var t=this.historyStore.items[this.historyStore.items.length-1];!t||"request"===t.type&&null!==/input\('(.+)'\)/.exec(t.value)||this.handleLineBreaks(e.data)}},_streamingAuthoringEval:function(e){var t=Date.now();this._addRequestItem(e,t),this._streamingExecutionEval(e),this.onAuthoringEval(e,t)},_checkExecutionStateAndSetToBusyIfNecessary:function(){this.executionState!==this.EXECUTION_STATES.BUSY&&this.executionState!==this.EXECUTION_STATES.COMPLETING_BLOCK&&this.executionState!==this.EXECUTION_STATES.PAUSE&&(this.stateBeforeExecution=this.executionState,this._setExecutionState(this.EXECUTION_STATES.BUSY))},_streamingExecutionEval:function(e){""!==e&&""!==e.trim()?this._isIntercepted(e)?(this._handleInterceptedCommand(e),this._setExecutionState(this.executionState)):(this.promptHasBeenCalled=!1,this.executionState===this.EXECUTION_STATES.BUSY?this.waitingCommands.push({command:e,type:"eval"}):this._publishToEvalChannel(e),this._checkExecutionStateAndSetToBusyIfNecessary()):(this.executionState===this.EXECUTION_STATES.INPUT||this.executionState===this.EXECUTION_STATES.COMPLETING_BLOCK)&&this._publishToEvalChannel(e)},_runQueue:function(e){"file"===e.type?this._sendRunFileRequest(e.command):this._publishToEvalChannel(e.command),this.waitingCommands.shift()},publishPauseMessage:function(){this._publishToEvalChannel("\n")},_publishToEvalChannel:function(e){this._whenMvmReady.then(function(){s.publish("/eval/request",e)}.bind(this))},_outputHandler:function(e){e&&e.data&&this.handleLineBreaks(e.data)},onHistoryTruncation:function(e){},handleLineBreaks:function(e){var t=this.historyStore.items,i=t[t.length-1],n=!0;if(i)var o=this.historyStore.getValue(i,"type"),r=this.historyStore.getValue(i,"isError");if(o&&"request"!==o&&!r){var a=this.historyStore.getValue(i,"value"),s=a.indexOf("\n",a.length-1),l=e.indexOf("\n");(s<0||l<0)&&(n=!1)}this.onHistoryTruncation(e),n?this.historyStore.newItem({type:"response",value:e,isError:!1,visible:!0}):this.historyStore.setValue(i,"value",a+e)},_errorHandler:function(e){if(e&&e.data){var t=this._getLastRequestedItem(),i=e.data;t&&(this.historyStore.setValue(t,"isError",!0),this.historyStore.setValue(t,"errorText",i)),this.historyStore.newItem({type:"response",value:e.data,isError:!0,visible:!0}),this.onExecutionError(t)}},_getLastRequestedItem:function(){var e=this.historyStore.items.filter((function(e){return"request"===e.type}));return e[e.length-1]},onExecutionError:function(e){},_openEditorHandler:function(e){e&&e.data&&(e.data instanceof Array||(e.data=[e.data]),this.fileDataService._handleOpenFileResponse(e.data))},_clcHandler:function(e){e&&e.data&&"clear"===e.data&&this._clearCommandWindow()},_clearCommandWindow:function(){var e=this.historyStore;e.fetch({onItem:function(t){e.setValue(t,"visible",!1)}}),this.onClcExecution()},onClcExecution:function(){},onHomeExecution:function(){},runFile:function(e){var i=t.hitch(this,"_runFileAction",e);this.checkIfFileOnPath(e,i)},_handleRunFileRequest:function(e){e&&e.data&&this.runFile(c.fileInfoFromPath(e.data))},_runFileAction:function(e){this.executionState===this.EXECUTION_STATES.BUSY?this.waitingCommands.push({command:e,type:"file"}):this._sendRunFileRequest(e)},_sendRunFileRequest:function(e){var t=c.getFullyQualifiedMatlabName(e);this._addRequestItem(t);var i=this.fileDataService._getOpenFile(e);if(this.streamingEval){var n=this;this.promptHasBeenCalled=!1,this._checkExecutionStateAndSetToBusyIfNecessary();this.fileDataService.saveFile(i,(function(){return n._publishToEvalChannel(t)}))}else{this._eval(t,{},"RunFile")}},publishFile:function(e,i,n){var o=t.hitch(this,"_publishFileAction",e,i,n);this.checkIfFileOnPath(e,o,n)},_publishFileAction:function(e,t,i){var n=c.pathFromFileInfo(e),o="mls.internal.publishPre('"+c.getFullyQualifiedMatlabName(e)+"', '"+t+"');";this._eval(o,{callback:function(){o="mls.internal.publish('"+n+"', '"+t+"');",this._eval(o,{callback:function(){i&&i()}})}},"MlsPublishPre")},ping:function(){this._eval("",{},"Ping")},authoringEval:function(e,t){if(t)this._streamingAuthoringEval(e);else{var i=Date.now(),n=e;e=this._normalizeCommand(e),this._addRequestItem(e.matlabCode,i),this._eval(e),this.onAuthoringEval(n,i)}},onAuthoringEval:function(e,t){},executionEval:function(e,t){t?this._streamingExecutionEval(e):this._eval(this._normalizeCommand(e),e)},interrupt:function(){a.sendMessage({Interrupt:{}}),this.waitingCommands=[]},getPromptString:function(){var e=this.PROMPT_STRINGS[this.executionState];if(t.isFunction(e)&&(e=e.call(this)),this.streamingEval&&this.executionState===this.EXECUTION_STATES.INPUT){var i=this.historyStore.items[this.historyStore.items.length-1];if("request"===i.type){var n=/input\('(.+)'\)/.exec(i.value);n&&(e=n[1])}}return e},intercept:function(e,i,n){t.isArray(e)||(e=[e]);var o=n||this;e.forEach((function(e){this.commandListeners[e]=t.hitch(o,i)}),this)},removeIntercept:function(e){this.commandListeners[e]&&delete this.commandListeners[e]},onExecutionStateChange:function(e){},reset:function(){var e=this.historyStore;e.fetch({onItem:function(t){e.deleteItem(t)}})},setOutputWidthInColumns:function(e){e&&(this.outputWidthInColumns=e>10?e:10)},updateHistoryStore:function(e){var t,i=!1;for(t=e.length-1;t>=0;t-=1)"clc"===e[t].value.trim()&&(i=!0),i&&(e[t].visible=!1),"request"===e[t].type&&void 0===e[t].promptString&&(e[t].promptString=this.PROMPT_STRINGS.ready);e.forEach(this.historyStore.newItem,this.historyStore)},updateShowTypoCorrectionsSetting:function(e){this._shouldShowTypoCorrections=e},_eval:function(e,t,i){this._setExecutionState(this.EXECUTION_STATES.BUSY),e=this._normalizeCommand(e),this._isIntercepted(e.matlabCode)?(this._handleInterceptedCommand(e.matlabCode),this._setExecutionState(this._previousExecutionState)):this._whenMvmReady.then(function(){e.matlabPre&&e.matlabPost?a.sendMessage({Eval:[{mcode:e.matlabPre},{mcode:e.matlabCode,width:e.width},{mcode:e.matlabPost}]},t||{},i):a.sendMessage({Eval:{mcode:e.matlabCode,width:e.width}},t||{},i)}.bind(this)),""===e.matlabCode&&this._previousExecutionState!==this.EXECUTION_STATES.INPUT&&this._setExecutionState(this._previousExecutionState)},_handleEvalResponse:function(e,t){if(t&&t.callback)return t.callback.apply(this,arguments),void this._setExecutionState(this.EXECUTION_STATES.READY);var i=0;e.forEach((function(e){var t=e.responseStr;if(i=e.promptType||i,e.clearCommandWindow&&this._clearCommandWindow(),t){if(this.SERVER_PROMPT_TYPES[i]===this.EXECUTION_STATES.INPUT){var n=t.lastIndexOf("\n");n>=0?(this._inputPromptString=t.substring(n+1,t.length),t=t.substring(0,n)):(this._inputPromptString=t,t="")}this.historyStore.newItem({type:"response",value:t,isError:e.isError,visible:!0})}}),this),this.waitingCommands.length>0?this._runQueue(this.waitingCommands[0]):this._setExecutionState(this.SERVER_PROMPT_TYPES[i])},_handleEvalError:function(e){e&&e.length>0&&e[0].faultCode!==l.WORKER_RESPONSE_FAILURE&&(n.error("Error received while eval'ing a command.",e),this._setExecutionState(this.EXECUTION_STATES.READY))},_handleInterruptResponse:function(e){e.forEach((function(e){e.messageFaults&&e.messageFaults.length>0&&n.error("Error interrupting MATLAB: ",e)}))},_setExecutionState:function(e){this._previousExecutionState=this.executionState,this.executionState=e,this._previousExecutionState!==this.executionState&&(this.onExecutionStateChange(this.executionState),this.actonExecutionStateChangeionService&&this.actionService.updateAction(r.STOP,{enabled:e!==this.EXECUTION_STATES.READY&&e!==this.EXECUTION_STATES.KEYBOARD&&e!==this.EXECUTION_STATES.DEBUG}))},_normalizeCommand:function(e){var i;return(i=e?t.isString(e)?{matlabCode:e}:e:{matlabCode:""}).width=this.outputWidthInColumns,i},_isIntercepted:function(e){var t,i=!1;return/^\s*[a-z][A-Za-z0-9_\.]*(\s*;\s*|\s+([^;].*)*)?$/.test(e)&&(i=(t=this._getCommandParts(e)).length>0&&this.commandListeners.hasOwnProperty(t[0])),i},_handleInterceptedCommand:function(e){var t,i=this._getCommandParts(e);(t=i.length>1?this.commandListeners[i[0]].apply(this,i.slice(1,i.length)):this.commandListeners[i[0]]())&&t.message&&this.historyStore.newItem({type:"response",value:t.message,isError:t.isError,visible:!0})},_addRequestItem:function(e,t){this.historyStore.newItem({commandHistoryDivId:t,type:"request",value:e,visible:!0,historyVisible:!0,promptType:this.executionState,promptString:this.getPromptString()})},_getCommandParts:function(e){return e.split(/[ ;]+/).filter((function(e){return!!e}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(630),i(1485),i(1486),i(7958)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t],{constructor:function(){},createWidget:function(e){var t=e.state,a=e.handler,s=e.div;if(!t||!a)throw new Error("state and handler elements must be present in calls to DivFigureFactory.createWidget().");var l=i[t.syncModel].getViewModelManager(t.channel,!1),c=new r(t,a),d=c.getWidget();if(n({channel:t.channel,viewModelManager:l,applicationManifest:o,rootWidget:d,environment:{divFigureServerMsgHandler:c}}),c.subscribe(),void 0!==s){try{s.appendChild(d.domNode)}catch(e){throw new Error("Unable to add widget to given div: "+e)}c.sendViewInDomMsg()}return d},getCssFiles:function(){return["/toolbox/matlab/uitools/uifigureappjs/release/index-css.css"]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{getFigureState:function(){throw new Error("getFigureState() unimplemented function")},startupCalled:function(){throw new Error("startupCalled() unimplemented function")},widgetDestroyed:function(){throw new Error("widgetDestroyed() unimplemented function")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(1632),i(536)],o=i.dj.d(n,(function(e,t,i){return{type:e.GALLERY_POPUP,tag:"motwToolstrip.figureToolstripTab2.annotations.galleryPopup2",galleryItemTextLineCount:1,favoritesEnabled:!0,favCategoryId:"motwToolstrip.figureToolstripTab2.annotations.favorites",children:[{tag:"motwToolstrip.figureToolstripTab2.annotations.favorites",type:e.GALLERY_FAVORITE_CATEGORY},{tag:"motwToolstrip.figureToolstripTab2.annotations.labels",type:e.GALLERY_CATEGORY,title:i.labelsAndTitle,children:[{tag:"motwToolstrip.figureToolstripTab2.annotations.xlabel",type:e.TOGGLE_GALLERY_ITEM,selected:!1,checked:!1,closePopupOnClick:!0,textOverride:i.xlabel,descriptionOverride:i.xlabelDescription,actionId:"motw.embeddedfigures.xlabel",iconOverride:"galleryXLabel",quickAccessIcon:"galleryXLabel_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.ylabel",type:e.TOGGLE_GALLERY_ITEM,textOverride:i.ylabel,descriptionOverride:i.ylabelDescription,actionId:"motw.embeddedfigures.ylabel",iconOverride:"galleryYLabel",quickAccessIcon:"galleryYLabel_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.title",type:e.TOGGLE_GALLERY_ITEM,textOverride:i.title,descriptionOverride:i.titleDescription,actionId:"motw.embeddedfigures.title",iconOverride:"galleryTitle",quickAccessIcon:"galleryTitle_16"}]},{tag:"motwToolstrip.figureToolstripTab2.annotations.legends",type:e.GALLERY_CATEGORY,title:i.legends,children:[{tag:"motwToolstrip.figureToolstripTab2.annotations.legend",type:e.GALLERY_ITEM,text:i.legend,description:i.legendDescription,actionId:"motw.embeddedfigures.legend",icon:"galleryLegend",quickAccessIcon:"galleryLegend_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.removelegend",type:e.GALLERY_ITEM,text:i.removeLegend,description:i.removeLegendDescription,actionId:"motw.embeddedfigures.removelegend",icon:"galleryRemoveLegend",quickAccessIcon:"galleryRemoveLegend_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.colorbar",type:e.GALLERY_ITEM,text:i.colorbar,description:i.colorbarDescription,actionId:"motw.embeddedfigures.colorbar",icon:"galleryColorbar",quickAccessIcon:"galleryColorbar_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.removecolorbar",type:e.GALLERY_ITEM,text:i.removeColorbar,description:i.removeColorbarDescription,actionId:"motw.embeddedfigures.removecolorbar",icon:"galleryRemoveColorbar",quickAccessIcon:"galleryRemoveColorbar_16"}]},{tag:"motwToolstrip.figureToolstripTab2.annotations.grids",type:e.GALLERY_CATEGORY,title:i.grids,children:[{tag:"motwToolstrip.figureToolstripTab2.annotations.grid",type:e.GALLERY_ITEM,textOverride:i.grid,description:i.gridDescription,actionId:"motw.embeddedfigures.grid",iconOverride:"galleryGrid",quickAccessIcon:"galleryGrid_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.removegrid",type:e.GALLERY_ITEM,textOverride:i.removeGrid,description:i.removeGridDescription,actionId:"motw.embeddedfigures.removegrid",iconOverride:"galleryRemoveGrid",quickAccessIcon:"galleryRemoveGrid_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.xgrid",type:e.GALLERY_ITEM,textOverride:i.xGrid,description:i.xgridDescription,actionId:"motw.embeddedfigures.xgrid",iconOverride:"galleryXGrid",quickAccessIcon:"galleryXGrid_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.ygrid",type:e.GALLERY_ITEM,textOverride:i.yGrid,description:i.ygridDescription,actionId:"motw.embeddedfigures.ygrid",iconOverride:"galleryYGrid",quickAccessIcon:"galleryYGrid_16"}]},{tag:"motwToolstrip.figureToolstripTab2.annotations.legends",type:e.GALLERY_CATEGORY,title:i.annotations,children:[{tag:"motwToolstrip.figureToolstripTab2.annotations.textArrow",type:e.GALLERY_ITEM,text:i.textArrow,description:i.textArrowDescription,actionId:"motw.embeddedfigures.annotations.textarrow",icon:"galleryTextArrow",quickAccessIcon:"galleryTextArrow_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.arrow",type:e.GALLERY_ITEM,text:i.arrow,description:i.arrowDescription,actionId:"motw.embeddedfigures.annotations.arrow",icon:"galleryArrow",quickAccessIcon:"galleryArrow_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.doublearrow",type:e.GALLERY_ITEM,text:i.doubleArrow,description:i.doubleArrowDescription,actionId:"motw.embeddedfigures.annotations.doublearrow",icon:"galleryDoubleArrow",quickAccessIcon:"galleryDoubleArrow_16"},{tag:"motwToolstrip.figureToolstripTab2.annotations.line",type:e.GALLERY_ITEM,text:i.line,description:i.lineDescription,actionId:"motw.embeddedfigures.annotations.line",icon:"galleryLine",quickAccessIcon:"galleryLine_16"}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{majorVersion:1,minorVersion:1,main:{isCenterExpanded:!0,center:{arrangement:0,tabPosition:"top",documents:[]}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7977)],o=i.dj.d(n,(function(){return dojox.uuid.generateRandomUuid=function(){function e(){for(var e=Math.floor(Math.random()%1*Math.pow(2,32)).toString(16);e.length<8;)e="0"+e;return e}var t=e(),i=e();i=i.substring(0,4)+"-4"+i.substring(5,8);var n=e(),o=t+"-"+i+"-"+(n="8"+n.substring(1,4)+"-"+n.substring(4,8))+e();return o=o.toLowerCase()},dojox.uuid.generateRandomUuid}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(290),i(233),i(209),i(304)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r],{constructor:function(e){o.assert(e.file,"No file specified"),o.assert(e.file.fileInfo,"The file specified does not have a fileInfo object."),o.assert(e.file.fileInfo.name,"The file specified does have a name."),this._isLatest=!0,this.file=e.file,this.initialDocumentText=e.file.content||"",this.fileDataService=e.fileDataService,this.executionDataService=e.executionDataService,this.debugServices=e.debugServices,this.uiContainer=e.uiContainer,this.enablePluggableBackingstore=e.enablePluggableBackingstore||!1,this.documentType=e.documentType,this.title=e.file.fileInfo.name,this.closable=!0},setEditor:function(e,t){this.editor=e,this._isLiveEditor=t,this.description=n.pathFromFileInfo(this.file.fileInfo)+(e.isEditable()?"":i.readOnly)},isLiveEditor:function(){return this._isLiveEditor},focus:function(){this.widget&&(this._checkEditor(),this.editor.focus())},setActive:function(){this._checkEditor(),this.editor.setActive()},insert:function(e,t){this._checkEditor(),this.editor.getCursor().setPosition(e),this.editor.getDocument().insertTextAtCurrentPosition(t)},remove:function(e,t){this._checkEditor(),this.editor.remove(e,t)},resetEditor:function(e,t){this._checkEditor(),this.editor.resetEditor(e,t)},hasSelection:function(){return this._checkEditor(),this.editor.hasSelection()},getSelection:function(){return this._checkEditor(),this.editor.getSelection()},setSelection:function(e,t){return this._checkEditor(),this.editor.setSelection(e,t)},addDocumentChangeListener:function(e){this._checkEditor(),this.editor.addDocumentChangeListener(e)},getId:function(){return this.id},getFile:function(){return this.file},undo:function(){this._checkEditor(),this.editor.undo(),this.editor.focus()},redo:function(){this._checkEditor(),this.editor.redo(),this.editor.focus()},getUndoRedoStates:function(){return this._checkEditor(),this.editor.getUndoRedoStates()},undoRedoStackUpdated:function(){},isFileEditable:function(){return!!(this.file&&this.file.fileInfo&&this.file.fileInfo.filePermissions)&&this.file.fileInfo.filePermissions.canWrite},isEditable:function(){return this._checkEditor(),this.editor.isEditable()},evaluate:function(){this.executionDataService.runFile(this.file.fileInfo),this.editor.focus()},publishAsHTML:function(e){this.executionDataService.publishFile(this.file.fileInfo,"html",e),this.editor.focus()},publishAsPDF:function(e){this.executionDataService.publishFile(this.file.fileInfo,"pdf",e),this.editor.focus()},getText:function(){return this._checkEditor(),this.editor.getText()},getBackup:function(){return this._checkEditor(),{content:this.file.content,editable:this.isEditable(),cursorOffset:this.editor.getCursor().getPosition()}},loadFromBackup:function(e){this._checkEditor(),this.resetEditor(e.content,{readOnly:!e.editable,cursorOffset:e.cursorOffset,silentUpdate:!0,preserveUndoStack:!0})},redraw:function(){this._checkEditor(),this.editor.redraw()},_updateFile:function(){this._checkEditor(),this.file.content=this.editor.getDocument().getText()},_checkEditor:function(){if(!this.editor)throw new Error("editor property is undefined")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(204),i(212),i(7993),i(2566),i(8046),i(368),i(233),i(209),i(2571),i(2572),i(589),i(1388),i(2573),i(263),i(8084),i(2579),i(2580),i(2581),i(8086),i(8089),i(8094),i(2585),i(2586),i(2587),i(8099),i(2589),i(8102),i(8104),i(8106),i(8109),i(8111),i(2591),i(8116),i(8118),i(2592),i(1641),i(8135),i(2600),i(8138),i(2601)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return t([d],{templateString:o,constructor:function(e){this._templateType=this.editorView.file.fileTemplate||"",this._filePath=l.pathFromFileInfo(this.editorView.file.fileInfo),this._fileDataService=e.fileDataService,this._editorService=e.editorService},_initializeEditor:function(){var t=new n;this.editorView.rtcCreatedPromise=t.promise;var o=["liveeditor.toolstrip.textStyle","motw.saveready","motw.saveerrorhandler","rtc.integration.toolstrip.hover","rtc.integration.toolstrip.executioncontrols","liveeditor.keybindings","rtc.gotocodelinecolumn","rtc.editorapiservice","ddux","debug.saveinterceptor","liveeditor.statusbar","rtc.runconfigs","rtc.navigate.find.synchronizer","rtc.contextmenu.documenttab","debug.breakpoint.savesynchronizer","matlabunit"],l=[{id:"rtc.richtext.insertimage",path:"rtc/plugins/images/SimpleInsertImageProvider"},{id:"rtc.contextmenu.documenttab",path:"MOTW/editor/plugins/contextmenu/DocumentTabContextMenuProvider"},{id:"rtc.contextmenu.reconfiguremodel",path:"MOTW/editor/plugins/contextmenu/ReconfigureContextMenuModelProvider",family:"contextmenu"},{id:"rtc.liveapps.gallerynotifier",path:"MOTW/editor/plugins/liveapps/LiveAppGalleryNotifierProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.reconfigurecontextmenu",path:"MOTW/editor/plugins/liveapps/LiveAppReconfigureContextMenuProvider",family:"rtc.liveapps"},{id:"liveeditor.toolstrip.textStyle",path:"MOTW/editor/plugins/textstyletoolstrip/TextStyleToolstripProvider"},{id:"matlab.services.busyidle",path:"MOTW/editor/plugins/busyidle/BusyIdleServicesProvider",isSharedPlugin:!0},{id:"motw.saveready",path:"MOTW/editor/plugins/save/MatlabOnlineSaveReadyPluginProvider"},{id:"motw.saveerrorhandler",path:"MOTW/editor/plugins/save/SaveErrorHandlerProvider"},{id:"rtc.refactoringtools.externalfunction.filecreator",path:"MOTW/editor/plugins/refactor/function/externalfunction/MatlabOnlineExternalFunctionFileCreatorProvider"},{id:"embeddedoutputs.keybindings",path:"MOTW/editor/plugins/keybindings/EmbeddedOutputsKeyBindingsProvider",family:"embeddedoutputs"},{id:"liveeditor.keybindings",path:"MOTW/editor/plugins/keybindings/LiveEditorKeyBindingsProvider"},{id:"rtc.gotocodelinecolumn",path:"MOTW/editor/plugins/gotocodelinecolumn/MatlabOnlineGotoCodeLineColumnProvider"},{id:"matlab.code.variables.variablehighlightingstatusbar",path:"MOTW/editor/plugins/variablehighlighting/VariableHighlightingStatusBarProvider",family:"matlab.code.variables.highlighting"},{id:"liveeditor.statusbar",path:"MOTW/editor/plugins/statusbar/OnlineEditorStatusBarUpdaterProvider"},{id:"rtc.runconfigs.dropdownbuttondata",path:"MOTW/editor/plugins/runconfiguration/LiveEditorRunButtonDataContributorProvider",family:"rtc.runconfigs"},{id:"matlabunit",path:"liveeditor/plugin/external/matlabunit/MATLABUnitPluginProvider"}];(l=(l=l.concat(f.plugins)).concat(f.liveEditorPlugins)).push({id:"editorclosehandler",path:"MOTW/editor/plugins/close/EditorCloseHandlerProvider"},{id:"liveeditor.filedeletehandler",path:"MOTW/editor/plugins/delete/LiveEditorFileDeleteHandlerProvider"}),this._rtcClipboard=h.getBrowserSyncedClipboard();l=l.concat([{id:"rtc.backingstore",path:"MOTW/editor/plugins/backingstore/OnlineEditorBackingstoreProvider",isSharedPlugin:!0},{id:"rtc.backingstore.saveloadcontributor",path:"MOTW/editor/plugins/backingstore/OnlineLiveEditorSaveLoadContributorProvider",isSharedPlugin:!0},{id:"rtc.backingstore.contentcontributor",path:"MOTW/editor/plugins/backingstore/OnlineLiveEditorBackingstoreContentContributorProvider",isSharedPlugin:!0}]),this.editorView.getFile().isUntitled&&o.push("editorclosehandler"),this._liveEditorView=this.editorWindow,this._liveEditorView.onResize=function(){};var c=new u(this._fileDataService,this.editorView.file),d={"liveeditor.view":this._liveEditorView,"rtc.clipboard":this._rtcClipboard,"rtc.id":this.id,"liveeditor.showlinenumber":!1,"liveeditor.toolstripmanager":new a(this.editorView),"liveeditor.filemodificationnotifier":c,"rtc.templateType":this._templateType,"rtc.executionservice":this.editorView.executionDataService,"rtc.integration.toolstrip.executionbuttontags":m,"rtc.integration.service.actionconverter":v,"rtc.integration.service.editorservice":new _(this._editorService,this.editorView),"motw.actionservice":this.actionService,"rtc.clientId":"LiveEditor_MOTW","rtc.integration.touchmode":!1,"rtc.filepath":this._filePath,"rtc.settings.backingservice":g,"rtc.code.codeanalyzer.ignoresemicolonwarning":!0,"rtc.margin.severitystatus.suppressclearstatus":!0,"rtc.integration.statusbar":this.statusBar},b=new s({nameSpace:"/actions/liveeditormodule/"+this.id,mode:"StandAlone"});this._actionDataService=b;var y={id:"internal_"+this.id,dependencies:d,readOnly:!this.editorView.isFileEditable(),actionDataService:b,additionalFeaturesToEnable:o,additionalFeaturesToDisable:["rtc.embeddedoutputs.copyoutputs","zoom","livecode.saveload.withoutputs"],additionalPluginsToAdd:l};return r.createLiveEditor(y).then(function(n){this._backingStore=p.getBackingStore(this.id),this._listeners.push(e.after(n,"resize",i.hitch(this._liveEditorView,"onResize"))),this.editorView.setEditor(n,!0),t.resolve(n)}.bind(this)),t.promise},injectContents:function(e){return this.editorView.getFile().isUntitled?this.getBackingStore().experimentalLoadOpc(e):(c.error("editor should have untitled buffer to load contents"),!1)},destroy:function(){this.inherited(arguments),this._rtcClipboard&&h.destroy(this._rtcClipboard),this._actionDataService.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(212),i(233),i(209),i(7994),i(7995),i(7996),i(7999),i(2570),i(2432),i(637),i(8043)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){let h=!1;return{_updateFeatureList:function(e,t,i){return Array.prototype.push.apply(e.enabled,t),Array.prototype.push.apply(e.disabled,i),e},_addAdditionaPluginsToRegistry:function(e,t){return Array.prototype.push.apply(e,t),e.concat(l.plugins)},createLiveEditor:function(i){var o=new t;n.assert(i.id,"No Live editor ID specified"),n.assert(i.dependencies,"No dependencies supplied"),n.assert(i.actionDataService,"No action data service supplied");var r=i.id,l=i.dependencies,c=i.actionDataService,p=i.additionalFeaturesToEnable,f=i.additionalFeaturesToDisable,g=i.additionalPluginsToAdd,m=i.states,_=e.clone(a),v=l["rtc.filepath"];v||(v=l["rtc.backingstore"].getAbsoluteFilePath());var b=_.getPluginList(v),y=this._updateFeatureList(b,p,f),C=[];C=C.concat(s.plugins);var T=this._addAdditionaPluginsToRegistry(C,g);return this._loadAdditionalBundles(T,v).then((function(e){l["rtc.columnselection.enabled"]=!0;var t={id:r,readOnly:i.readOnly,fileEndSelectable:y.getAttribute("fileEndSelectable"),plainText:y.getAttribute("plainText"),actionDataService:c,dependencies:l,registry:e,registryConfigurationId:"liveeditorfactory"+a.getFileCategory(v),enabled:y.enabled,disabled:y.disabled,language:y.getAttribute("language"),states:m,initialDocumentText:i.initialDocumentText};i.containerNode&&(t.containerElement=i.containerNode);const n=()=>{o.isFulfilled()||d.createRTC(t).then((function(e){o.resolve(e)}))},s=t.dependencies["rtc.settings.backingservice"];if(!h&&s){const e=u.getPluginsPaths();require(e,(function(){const e=setTimeout((function(){h=!0,n()}),2e3);u.cacheSettingsForFeatures(t.dependencies["rtc.settings.backingservice"],t.enabled,t.disabled,[],t.dependencies).then((function(){clearTimeout(e),n()}),(function(){clearTimeout(e),n()}))}))}else n()})),o.promise},_loadAdditionalBundles:function(e,n){let a=new t;let s;return s=i.checkFileNameExtension(n,"mlx")?JSON.parse(o).moduleDefs:JSON.parse(r).moduleDefs,c._loadModule(s).then(t=>{e=e.concat(t),a.resolve(e)}),a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(410),i(212),i(222),i(244),i(219),i(2568)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=new(e([n],{constructor:function(e){this._baseChannel=e.baseChannel,this._isStarted=!1,this._emitEvent=t(function(e){this.emit("model:update",e)}.bind(this),50),this._cachedInfo={}},start:function(){this._isStarted||(o([r.subscribe(this._baseChannel+"/started",this._handleStarted,this),r.subscribe(this._baseChannel+"/stack",this._fetchStack,this)]).then(function(){r.publish(this._baseChannel+"/start",{})}.bind(this)),this._handleStarted())},stop:function(){r.unsubscribe(this._baseChannel+"/stack",this._fetchStack,this),r.subscribe(this._baseChannel+"/started",this._handleStarted,this)},addPosition:function(e){e&&"uid"in e&&"type"in e&&r.publish(this._baseChannel+"/add",e)},updatePosition:function(e){e&&"uid"in e&&r.publish(this._baseChannel+"/update",e)},removePosition:function(e){e&&"uid"in e&&r.publish(this._baseChannel+"/remove",e)},updateFilePath:function(e,t){e&&t&&r.publish(this._baseChannel+"/update/filePath",{oldFilePath:e,newFilePath:t})},clearPositionsByFilePath:function(e){r.publish(this._baseChannel+"/remove/filePath",{filePath:e})},clear:function(){r.publish(this._baseChannel+"/clear",{})},getNext:function(){let e;if(this._hasValidData()){let t=this._cachedInfo.index,i=this._cachedInfo.positions;i.length-1>t&&(e=i[++t],this._updateIndex(t))}return e},getPrevious:function(){let e;if(this._hasValidData()){let t=this._cachedInfo.index,i=this._cachedInfo.positions;t-1>=0&&(e=i[--t],this._updateIndex(t))}return e},getCurrentPosition:function(){let e;if(this._hasValidData()){let t=this._cachedInfo.index;e=this._cachedInfo.positions[t]}return e},hasNext:function(){let e=!1;return this._hasValidData()&&this._cachedInfo.index<this._cachedInfo.positions.length-1&&(e=!0),e},hasPrevious:function(){let e=!1;return this._hasValidData()&&this._cachedInfo.index>0&&(e=!0),e},_hasValidData:function(){return"positions"in this._cachedInfo&&void 0!==this._cachedInfo.index},_handleStarted:function(){this.emit(a.NAVIGATION_MODEL_STARTED),this._isStarted=!0},_fetchStack:function(e){this._cachedInfo.positions=e.data.positions,this._cachedInfo.index=e.data.index,this.emit(a.NAVIGATION_MODEL_FETCHED),this._emitEvent(e)},_updateIndex:function(e){r.publish(this._baseChannel+"/update/index",{index:e})},_isValidIndex:function(e){return e>=0&&e<this._cachedInfo.positions.length}}))({baseChannel:"/navigation/model/services"});return{getInstance:function(){return s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NAVIGATION_MODEL_STARTED:"NAVIGATION_MODEL_STARTED",NAVIGATION_MODEL_UPDATED:"NAVIGATION_MODEL_UPDATED",NAVIGATION_MODEL_FETCHED:"NAVIGATION_MODEL_FETCHED"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{CURSOR:1}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8038),i(8039),i(8040),i(8041),i(8042)],o=i.dj.d(n,(function(){return{plugins:[{id:"rtc.liveapps.testhelper",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppTestHelper",family:"testerhelpers"},{id:"rtc.view.testhelper.performance",path:"rtc/view/PerformanceTestHelper",family:"testerhelpers"},{id:"rtc.view.testhelper.rtcperformance",path:"rtc/view/RTCPerformanceTestHelper",family:"testerhelpers"},{id:"rtc.view.testhelper.lines",path:"rtc/view/ViewLinesTestHelper",family:"testerhelpers"},{id:"rtc.view.testhelper.sections",path:"rtc/view/ViewSectionsTestHelper",family:"testerhelpers"}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(307),i(216),i(215),i(255),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([o,i,n,r],{widgetsInTemplate:!0,constructor:function(e){a.assert(e.editorView,"editorView required"),a.assert(e.actionService,"actionService required"),e.id&&(this.id=e.id),e.states&&(this.states=e.states),this.editorView=e.editorView,this.actionService=e.actionService,this._initializeEditorPromise=null,this._listeners=[]},postCreate:function(){this.inherited(arguments),this._initializeEditorPromise=this._initializeEditor(),this._initializeEditorPromise.then(function(e){this.editor=e,this._listeners.push(this.connect(this.editor,"undoRedoStackUpdated",t.hitch(this.editorView,"undoRedoStackUpdated"))),this.focusRedirect=function(){this._checkEditor(),this.editor.focus()}.bind(this),this.domNode.addEventListener("focus",this.focusRedirect),this._listeners.push({remove:function(){this.domNode.removeEventListener("focus",this.focusRedirect)}.bind(this)}),this.blurRedirect=function(){this._checkEditor(),this.editor.blur()}.bind(this),this.domNode.addEventListener("blur",this.blurRedirect),this._listeners.push({remove:function(){this.domNode.removeEventListener("blur",this.blurRedirect)}.bind(this)})}.bind(this))},refocus:function(){this.focusRedirect()},resize:function(){this.editor&&this.editor.resize()},_initializeEditor:function(){},_checkEditor:function(){if(!this.editor)throw new Error("Editor is invalid. Possibly this class has not been subclassed")},getBackingStore:function(){if(!this._backingStore)throw new Error("BackingStore is invalid. Possibly this class has not been subclassed");return this._backingStore},destroy:function(){this._listeners.forEach((function(e){e.remove()})),this.editor.destroy(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(203),i(8048)],o=i.dj.d(n,(function(e,t,i){return t(i,{constructor:function(e,t){this._fileDataService=e,this._file=t},destroy:function(){},setModified:function(){this._fileDataService.setFileModified(this._file)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8049),i(8050),i(8051),i(8053),i(8055),i(8057),i(8059),i(2576),i(8061),i(8067),i(8074),i(8078),i(8080),i(8082)],o=i.dj.d(n,(function(){return{plugins:[{id:"rtc.integration.service.editorservice",path:"rtcintegration/plugins/service/DefaultEditorServiceProvider"},{id:"rtc.integration.service.actionconverter",path:"rtcintegration/plugins/service/DefaultActionIdConverterProvider"},{id:"rtc.integration.toolstrip.executioncontrols",path:"rtcintegration/plugins/toolstrip/ExecutionControlsToolstripProvider"},{id:"rtc.integration.toolstrip.creationnotifier",path:"rtcintegration/plugins/toolstrip/ExecutionControlsToolstripCreationNotifierProvider",isSharedPlugin:!0},{id:"rtc.integration.toolstrip.hover",path:"rtcintegration/plugins/toolstrip/hover/JavascriptToolstripHoverServiceProvider"},{id:"rtc.integration.toolstrip.hover",path:"rtcintegration/plugins/toolstrip/hover/JavaToolstripHoverServiceProvider"}],plainEditorPlugins:[{id:"rtc.runconfigs.dropdownbuttondata",path:"rtcintegration/plugins/runconfiguration/editor/RunButtonDataContributorProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.filevalidator",path:"rtcintegration/plugins/runconfiguration/editor/RunConfigsFileValidatorProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.manager",path:"rtcintegration/plugins/runconfiguration/editor/RunConfigsManagerProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.runner",path:"rtcintegration/plugins/runconfiguration/editor/RunConfigsRunnerProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.view.controller",path:"rtcintegration/plugins/runconfiguration/editor/RunConfigsViewControllerProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.view.model",path:"rtcintegration/plugins/runconfiguration/editor/RunConfigsViewModelProvider",family:"rtc.runconfigs"}],liveEditorPlugins:[{id:"rtc.runconfigs.dropdownbuttondata",path:"rtcintegration/plugins/runconfiguration/editor/RunButtonDataContributorProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.filevalidator",path:"rtcintegration/plugins/runconfiguration/liveeditor/RunConfigsFileValidatorProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.manager",path:"rtcintegration/plugins/runconfiguration/editor/RunConfigsManagerProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.runner",path:"rtcintegration/plugins/runconfiguration/editor/RunConfigsRunnerProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.view.controller",path:"rtcintegration/plugins/runconfiguration/liveeditor/RunConfigsViewControllerProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.view.model",path:"rtcintegration/plugins/runconfiguration/editor/RunConfigsViewModelProvider",family:"rtc.runconfigs"}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){},onActivated:function(){},onDeactivated:function(){},isActive:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(292)],o=i.dj.d(n,(function(e,t){return{replace:function(e,i){var n=t.getInstance(),o=n.tagToId(e);if(i){var r=n.tagToId(i),a=n.indexOf(o);if(!(a<0)){var s=n.getParentId(o);n.remove(o),n.add(r,s,a)}}else n.remove(o)},isParented:function(e){var i=t.getInstance(),n=i.tagToId(e);return null!==i.getParentId(n)},getNodeForTag:function(e){var i=t.getInstance().widgetByTag(e);return i?i.domNode:null},getActionIdForTag:function(i){var n=t.getInstance(),o=n.tagToId(i);if(!o)return null;try{return n.get(o,"actionId")}catch(t){return e.log(t),null}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2577)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(233),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){},showDialogIfInvalidFileName:function(){return!1},isValidMatlabFileExtension:function(e){return t.isMatlabFileInfo(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(236),i(208),i(371),i(8075)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_RUN_CONFIG_ACTION_ID:"rtc_run_config",constructor:function(e,t,o,r,a,s,l,c,d,u){this._editorService=s,this._actionService=d,this._debugServices=c,this.own(i.after(this._editorService,"onActivated",this._handleActiveEditorChange.bind(this))),this.own(i.after(o,"onError",this._handleError.bind(this),!0)),this.own(i.after(this._runConfigsManager,"onReset",this._handleReset.bind(this))),this.own(i.after(this._debugServices,"onDebugModeChanged",this._updateActionEnablement.bind(this))),this._actions=[{id:this._RUN_CONFIG_ACTION_ID,enabled:!0,callback:this._executeFirstRunConfig.bind(this)}],this._actionService.loadActions(this._actions),this._actionService.getAction(n.RUN)&&u.registerAction(n.RUN,this._RUN_CONFIG_ACTION_ID,-10),this._updateAction()},_handleButtonPushedEvent:function(){},_handleActiveEditorChange:function(){this._updateAction(),this._updateRunIcon()},_updateAction:function(){this._updateActionEnablement(),this._updateActionCallback()},_updateActionEnablement:function(){var e=!this._debugServices.isDebugging;this._enableDisableAction(e)},_enableDisableAction:function(e){this._actionService&&this._actionService.updateAction(this._RUN_CONFIG_ACTION_ID,{enabled:e})},_updateActionCallback:function(){this._dropdownButtonDataContributor.updateActionCallback(this._executeFirstRunConfig.bind(this))},_updateRunIcon:function(){var e=this._runConfigsManager.getDefaultExecutionExpression(),t=this._runConfigsManager.getRunConfigsExpressions()[0];t=t?t.trim():t;var i=this._getToolstripButtonId(),n=null==t||t===e?"run_24":"run_augmented_24";this._uiBuilder.set(i,"icon",n)},_handleError:function(e){var t=this._getToolstripButtonId();this._assignMenuId();var i=this._getPanel();i||(i=this._createPanelAndAddWidgets());var n=this._getWidgetCallback.bind(this),o=this._getErrorMessage(e);this._view.showErrorMessage(n,o,t,this._menuId,i.id)},_getWidgetCallback:function(){this._selectedWidget||(this._getPanel().hasChildren()||this._addDefaultWidget(),this._selectedWidget=this._runConfigsViewModel.getFirstRunConfigWidget());return this._selectedWidget},_getErrorMessage:function(e){return t.substitute(e,{0:this._runConfigsManager.getDefaultExecutionExpression(),1:this._runConfigsManager.getDefaultRunConfigExpression()})},_shouldHandleDropdownEvents:function(){return this._editorService.isActive()},_updateShortcuts:function(e){if(this._runConfigsViewModel.hasRunConfigs()){var t=this._runConfigsViewModel.getFirstRunConfigWidget();this._uiBuilder.set(t.id,"shortcut","")}var i=this._dropdownButtonDataContributor.getRunButtonShortCut();this._uiBuilder.set(e,"shortcut",i)},_performUpdatesForRunConfigsChange:function(){this.inherited(arguments),this._updateRunIcon()},_handleReset:function(){this._selectedWidget=null,this._lastAddedWidgetId=null,this._runConfigsViewModel.destroyViewPanel()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(204),i(2574)],o=i.dj.d(n,(function(e,t,i,n){return t(n,{constructor:function(t,n){this._editorService=t,this._editorView=n,this.own(e.after(this._editorService,"onActiveEditor",i.hitch(this,"_handleActiveEditorChanged"),!0))},onActivated:function(){},onDeactivated:function(){},isActive:function(){return this._editorService.getActiveEditor()===this._editorView},hasActiveEditor:function(){return!!this._editorService.getActiveEditor()},getEditorService:function(){return this._editorService},getEditorView:function(){return this._editorView},_handleActiveEditorChanged:function(e,t){e===this._editorView?this.onActivated():t===this._editorView&&this.onDeactivated()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(340),i(1632),i(645),i(1221),i(203),i(209),i(1432)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=new(o(a,{constructor:function(){this.actions=[]},_getPrefix:function(){return"motw.liveeditor."}})),l=function(e){return{id:e,enabled:!0,callback:function(){r.warn("Action "+e+" does not do anything yet")}}};return s.actions.push(l(i.GOTO)),s.actions.push(l(i.PREVIOUS_SECTION)),s.actions.push(l(i.NEXT_SECTION)),s.actions.push(l(i.BOOKMARK_TOGGLE)),s.actions.push(l(i.BOOKMARK_PREVIOUS)),s.actions.push(l(i.BOOKMARK_NEXT)),s.actions.push(l(i.COMMENT)),s.actions.push(l(i.UNCOMMENT)),s.actions.push(l(i.WRAP_COMMENT)),s.actions.push(l(i.SMART_INDENT)),s.actions.push(l(i.INDENT)),s.actions.push(l(i.UNINDENT)),s.actions.push(l(i.BOLD)),s.actions.push(l(i.ITALIC)),s.actions.push(l(i.UNDERLINE)),s.actions.push(l(i.MONOSPACE)),s.actions.push(l(i.REFACTOR)),s.actions.push(l(i.REFACTOR_FUNCTION)),s.actions.push(l(i.REFACTOR_LOCAL_FUNCTION)),s.actions.push(l(i.INSERT_CODE)),s.actions.push(l(i.INSERT_TEXT)),s.actions.push(l(i.INSERT_SECTION_BREAK)),s.actions.push(l(i.INSERT_EQUATION)),s.actions.push(l(i.INSERT_EQUATION_EDITOR)),s.actions.push(l(i.INSERT_HYPERLINK)),s.actions.push(l(i.INSERT_IMAGE)),s.actions.push(l(i.INSERT_CONTROL)),s.actions.push(l(i.INSERT_SLIDER)),s.actions.push(l(i.INSERT_COMBO_BOX)),s.actions.push(l(i.INSERT_CHECK_BOX)),s.actions.push(l(i.INSERT_EDIT_FIELD)),s.actions.push(l(i.INSERT_BUTTON)),s.actions.push(l(i.INSERT_TASK)),s.actions.push(l(i.INSERT_TABLE_OF_CONTENTS)),s.actions.push(l(i.INSERT_CODE_EXAMPLE)),s.actions.push(l(i.INSERT_CODE_EXAMPLE_MATLAB)),s.actions.push(l(i.INSERT_CODE_EXAMPLE_PLAIN)),s.actions.push(l(i.NORMAL)),s.actions.push(l(i.HEADING1)),s.actions.push(l(i.HEADING2)),s.actions.push(l(i.HEADING3)),s.actions.push(l(i.TITLE)),s.actions.push(l(i.BULLETED_LIST)),s.actions.push(l(i.NUMBERED_LIST)),s.actions.push(l(i.PARAGRAPH_STYLE)),s.actions.push(l(i.ALIGN_LEFT)),s.actions.push(l(i.ALIGN_CENTER)),s.actions.push(l(i.ALIGN_RIGHT)),s.actions.push(l(i.RUN_ALL)),s.actions.push(l(i.PAUSE)),s.actions.push(l(i.CONTINUE)),s.actions.push(l(i.STEP)),s.actions.push(l(i.STEP_IN)),s.actions.push(l(i.STEP_OUT)),s.actions.push(l(i.RUN_TO_CURSOR)),s.actions.push(l(i.STOP)),s.actions.push(l(i.CLEAR_ALL_BREAKPOINTS)),s.actions.push(l(i.TOGGLE_BREAKPOINT)),s.actions.push(l(i.TOGGLE_ENABLE_BREAKPOINT)),s.actions.push(l(i.RUN_SECTION)),s.actions.push(l(i.RUN_AND_ADVANCE)),s.actions.push(l(i.RUN_TO_END)),s.actions.push(l(i.DATATIPS)),s.actions.push(l(i.COMPLETIONS)),s.actions.push(l(i.CLEAR_ALL_OUTPUT)),s.actions.push(l(i.OUTPUT_INLINE)),s.actions.push(l(i.OUTPUT_ON_RIGHT)),s.actions.push(l(i.HIDE_CODE_VIEW)),s.actions.push(l(t.ADD_GRID)),s.actions.push(l(t.ADD_COLORBAR)),s.actions.push(l(t.ADD_LEGEND)),s.actions.push(l(t.REMOVE_GRID)),s.actions.push(l(t.REMOVE_COLORBAR)),s.actions.push(l(t.REMOVE_LEGEND)),s.actions.push(l(t.ADD_XGRID)),s.actions.push(l(t.ADD_YGRID)),s.actions.push(l(t.ADD_TITLE)),s.actions.push(l(t.ADD_XLABEL)),s.actions.push(l(t.ADD_YLABEL)),s.actions.push(l(t.ADD_LINE)),s.actions.push(l(t.ADD_ARROW)),s.actions.push(l(t.ADD_DOUBLE_ARROW)),s.actions.push(l(t.ADD_TEXT_ARROW)),s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(8085),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.filepath","rtc.id","rtc.backingstore.saveloadcontributor","rtc.backingstore.contentcontributor","rtc.actionservice","rtc.settings.service"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)},priority:function(){return 2e3}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1908),i(914),i(1202)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{constructor:function(e,t,i,n,o,r){this._setupSaveUtility(r),this._saveInterceptors=[]},directSaveWithNoEvents:async function(e){const t=await this.createContentBundle(e);let i;t.rtcId=this._getDirectId();try{i=await this._saveUtility.save(t.filePath,t)}catch(e){i=!1}return i},registerSaveInterceptor:function(e){this._saveInterceptors.push(e)},getLoadPromise:function(){return void 0!==this._loadDeferred&&null!==this._loadDeferred?this._loadDeferred.promise:null},getLineEndingStyle(){return this._backingstoreContentContributor.getLineEndingStyle()},_presave:async function(){try{const e=this._saveInterceptors.map(e=>e());await Promise.all(e)}catch(e){throw{errorId:i.SAVE_CANCELLED}}},_setupSaveUtility:function(e){const t=this._getDirectId();this._saveUtility=new n(t,e)},_getDirectId:function(){return this._rtcId+"_direct"},_teardownSaveUtility:function(){this._saveUtility.destroy()},_teardownSaveInterceptors:function(){const e=this._saveInterceptors.length;for(let t=0;t<e;t++)this._saveInterceptors[t]=null;this._saveInterceptors=null},destroy:function(){this.inherited(arguments),this._teardownSaveUtility(),this._teardownSaveInterceptors()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(219)],o=i.dj.d(n,(function(e){return class{static writePlainTextContentToFile(e,t,i,n){const o="/mlx/service/writeResponse/"+e,r=this._createEventObject(e,t,"text/plain",i,n);return this._processRequest("/mlx/service/writeRequest_cpp",o,r)}static writeLiveCodeContentToFile(e,t,i){const n="/mlx/service/writeResponse/"+e,o=this._createEventObject(e,t,"text/xml",i);return this._processRequest("/mlx/service/writeRequest_cpp",n,o)}static readPlainTextFile(e,t){const i="/mlx/service/readResponse/"+e,n=this._createEventObject(e,t,"text/plain");return this._processRequest("/mlx/service/readRequest_cpp",i,n)}static readLiveCodeFile(e,t){const i="/mlx/service/readResponse/"+e,n=this._createEventObject(e,t,"text/xml");return this._processRequest("/mlx/service/readRequest_cpp",i,n)}static _createEventObject(e,t,i,n,o){return{rtcId:e,filePath:t,contentType:i,content:n||null,encoding:o||"UTF-8"}}static _processRequest(t,i,n){return new Promise((o,r)=>{const a={responseFunc:t=>{e.unsubscribe(i,"responseFunc",a),o(t)}};e.subscribe(i,"responseFunc",a);e.publish(t,n).then(()=>{},t=>{e.unsubscribe(i,"responseFunc",a),r(t)})})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1639)],o=i.dj.d(n,(function(e){return class extends e{getLineEndingStyle(){throw new Error("Unimplemented API")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8096)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.backingstore"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8097)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.integration.service.editorservice","rtc.code.matlabfiletype","rtc.backingstore"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8098)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.contextmenu.model"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(299),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._actionService=e,this._actionService.loadActions([{id:i.NEW_UNTITLED_BUFFER_ON_FILE_DELETE,enabled:!0,callback:t.hitch(this,"_handleFileDelete")}])},_handleFileDelete:function(){throw new Error("Unimplemented _handleFileDelete method.")},destroy:function(){this._actionService.removeAction(i.NEW_UNTITLED_BUFFER_ON_FILE_DELETE),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8101)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionloggerserviceblacklist","rtc.actionservice","rtc.cursorcontroller","rtc.internaldocument","rtc.linenumberservice"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8108)],o=i.dj.d(n,(function(e){let t=null;return{getInstance:function(i){return null===t&&(t=new e(i||{})),i&&t.setArgs(i),t},destroyInstance:function(){null!==t&&(t.destroy(),t=null)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8113)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.editordataservice","rtc.export.m","rtc.serializers","rtc.id"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8120)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8123),i(754),i(428)],o=i.dj.d(n,(function(e,t,i){return{_errorMessageMemoryStore:null,getStore:function(){return this._errorMessageMemoryStore||(this._errorMessageMemoryStore=new i({data:[{id:"notASupportedFileError",beforeDialogCreateCallback:function(){},dialogText:e.classesNotSupported.message,dialogOptions:{icon:"warning",buttonText:[t.ok],defaultAcceptButton:1,modal:!1,closeCallback:function(){}}},{id:"notASupportedMlxExportFileError",beforeDialogCreateCallback:function(){},dialogText:e.unsupportedMlxFile.message,dialogOptions:{icon:"warning",buttonText:[t.ok],defaultAcceptButton:1,modal:!1,closeCallback:function(){}}},{id:"generic",beforeDialogCreateCallback:function(){},dialogText:e.generic.message,dialogOptions:{icon:"error",buttonText:[t.ok],defaultAcceptButton:1,modal:!1,closeCallback:function(){}}}]})),this._errorMessageMemoryStore},destroy:function(){delete this._errorMessageMemoryStore,this._errorMessageMemoryStore=null}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8131),i(8132),i(8133),i(8134)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/statusbar",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1014)],o=i.dj.d(n,(function(e){return class extends e{static getTag(){return"editorFileEncodingValue"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1014)],o=i.dj.d(n,(function(e){return class extends e{static getTag(){return"editorLineEndingStyle"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1014)],o=i.dj.d(n,(function(e){const t="editorEnclosingScopeValue";return class extends e{static getTag(){return t}static setBlank(e){this._setBlank(e,t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(537),i(1014),i(388)],o=i.dj.d(n,(function(e,t,i){const n="editorCurrentLinePreValue",o=e.currentLineStatusBar;return class extends t{static create(e,t){e.create({type:i.STATUS_LABEL,tag:n,text:o,region:"right",parentId:t}),super.create(e,t)}static getTag(){return"editorCurrentLineValue"}static setValue(e,t){this._setValue(e,n,o),super.setValue(e,t)}static setBlank(e){this._setBlank(e,n),this._setBlank(e,"editorCurrentLineValue")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(537),i(1014),i(388)],o=i.dj.d(n,(function(e,t,i){const n="editorCurrentColumnPreValue",o=e.currentColumnStatusBar;return class extends t{static create(e,t){e.create({type:i.STATUS_LABEL,tag:n,text:o,region:"right",parentId:t}),super.create(e,t)}static getTag(){return"editorCurrentColumnValue"}static setValue(e,t){this._setValue(e,n,o),super.setValue(e,t)}static setBlank(e){this._setBlank(e,n),this._setBlank(e,"editorCurrentColumnValue")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8137)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.integration.statusbar","matlab.code.variables.variablehighlighting"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(292),i(1642),i(8140),i(8141),i(8143),i(8144),i(8145),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(t,{requires:function(){return{createInstance:["rtc.integration.isJavaToolstrip","rtc.backingstore","rtc.executionservice","rtc.execution.actions","rtc.actionservice","rtc.id","rtc.keyhandler.keyboardshortcutsmodel","rtc.keyhandler","rtc.integration.service.editorservice","rtc.idlenotifier","rtc.internaldocument"]}},createInstance:function(e,t,d,u,h,p,f,g,m,_,v){let b,y,C=i.getInstance(),T=new s(h,f,g,C);if(e)y=new c,b=new r(y,t,d,u,T,C,p),b.onload();else{o.getInstance(m.getEditorService());const e=n.getInstance();y=l.getInstance(e,C,T),b=new a(y,t,d,u,T,C,p,_,v),y.startup(),b.onload()}return b}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(207),i(1643)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_lastKnownTestState:void 0,constructor:function(e,t,i,n,o,r,a){this._toolstripSection=e,this._backingStore=t,this._matlabExecutionDataService=i,this._actions=n,this._runTestsActions=o,this._debugServices=r,this._id=a,this._MLXCHANGED_CHANNEL="/matlabunit/runtests/mlxChanged/"+a},onload:function(){this._runTestsActions.build(this.runtests.bind(this),this.runCurrentTest.bind(this)),this._toolstripSection.build(this.runtests.bind(this),this.runCurrentTest.bind(this)),this.own(t.after(this._backingStore,"onSaveCompleted",this._updateTestState.bind(this))),this.own(t.after(this._backingStore,"onFilePathUpdated",this._updateTestState.bind(this)))},runtests:function(){},runCurrentTest:function(){},getFileInfoForToolstrip:async function(e){const t=this._getFilePath();let i=await n.FEval(2,"matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip",t,e),o=i[0];return i[1]?o:void 0},_updateActions:function(e){e?this._runTestsActions.enable():this._runTestsActions.disable()},onTestStateChanged:function(e){this._updateActions(e),this._updateToolstripSection(e)},_updateTestState:async function(e=[]){let t=await this.getFileInfoForToolstrip(e);void 0!==t&&this._lastKnownTestState!==t&&(this._lastKnownTestState=t,this.onTestStateChanged(t))},_updateTestStateOnDocumentLoad:async function(){const e=this._getFilePath();let t=(await n.FEval(2,"matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip",e))[0];this._lastKnownTestState=t,this.onTestStateChanged(t)},_updateToolstripSection:function(e){e?this._toolstripSection.replace():this._toolstripSection.restore()},_getFilePath:function(){let e=this._backingStore;return e.getFilePath?e.getFilePath():e.getAbsoluteFilePath()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(8147),i(8148),i(757),i(8149),i(8151),i(8154),i(8156)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{createActionProviders:function(e,n,l){return{globalActionProvider:new t(n),matlabActionProvider:new r(e,n,e.executionDataService),compareActionProvider:new i(e.executionDataService,n,l),editSectionActionProvider:new o(e,n),publishTabActionProvider:new a(e,n,l),liveEditorActionProvider:new s(e,n),actionService:n}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(2557),i(755)],o=i.dj.d(n,(function(e,t,i){return{PopUp:{type:e.POPUP_LIST,children:[{actionId:t.NEW_SYSTEM_OBJECT_BASIC,tag:"systemObjectBasic",type:e.LIST_ITEM,showDescription:!1,text:i.newSystemObjectBasicLabel},{actionId:t.NEW_SYSTEM_OBJECT_ADVANCED,type:e.LIST_ITEM,tag:"systemObjectAdvanced",showDescription:!1,text:i.newSystemObjectAdvancedLabel},{actionId:t.NEW_SYSTEM_OBJECT_SIMULINK_EXTENSION,type:e.LIST_ITEM,tag:"systemObjectSimulinkExtension",showDescription:!1,text:i.newSystemObjectSimulinkExtensionLabel}]},NewListItem:{type:e.LIST_ITEM_WITH_POPUP,showDescription:!1,text:i.newSystemObjectLabel,icon:"icon_new_class_24"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(363)],o=i.dj.d(n,(function(e,t){return{isLocalClient(){const t=new e;return t.resolve(!1),t.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(1236),i(8264)],o=i.dj.d(n,(function(e,t,i,n){return{MINUTE:6e4,HOUR:36e5,DAY:864e5,formatAsDelta:function(n,o){var r,a=new Date,s=void 0===o||!0===o?new Date(n.getTime()-n.getTimezoneOffset()*this.MINUTE):n,l=a.getTime()-s.getTime();if(l<this.MINUTE)return this.lookup("lessThanMinute");if(l<this.HOUR){var c=Math.round(l/this.MINUTE);return t.replace(c>1?this.lookup("minutesAgo"):this.lookup("minuteAgo"),{number:c})}if(l<this.DAY){var d=Math.round(l/this.HOUR);return t.replace(d>1?this.lookup("hoursAgo"):this.lookup("hourAgo"),{number:d})}return"en-us"===e.locale?(r=i.format(n,{datePattern:"MMMM d, yyy",selector:"date"}),r+=" "+i.format(n,{timePattern:"(K:mm a)",selector:"time"})):(r=i.format(n,{formatLength:"long",selector:"date"}),r+=" "+i.format(n,{formatLength:"short",selector:"time"}))},lookup:function(e){return this._localization||(this._localization=n),this._localization[e]},getLatestLabel:function(){return this.lookup("latest")},getLoadingMessage:function(){return this.lookup("loading")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(304)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){this._layoutService=e,this._activeContexts=[]},select:function(e,t){this._activeContexts=[t],this._setActiveContexts(e)},hide:function(e){this._activeContexts.length>0&&(this._activeContexts=[],this._setActiveContexts(e))},_setActiveContexts:function(e){this._layoutService.focusWidget(e),this._layoutService.updateWidget(e,i.ACTIVE_CONTEXTS,this._activeContexts)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(231),i(2561),i(752),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{GALLERY_CHANNEL:"/embedded/figure/toolstrip/gallery",constructor:function(){this._toolstripTag="motwToolstrip.figureToolstripTab2",this._galleryTag=this._toolstripTag+".annotations.gallery2",this._galleryPopupTag=this._toolstripTag+".annotations.galleryPopup2",r.subscribe(this.GALLERY_CHANNEL,t.hitch(this,this._updateGallery))},buildGalleryPopup:function(){this._uiBuilder.createGalleryPopupFromConfig(n),this._galleryId=n.id,this._galleryWidget=i.byId(this._galleryId)},_updateGallery:function(e){var t,i=e.data;toolsectionId=this._uiBuilder.tagToId(this._toolstripTag+".tools"),this._uiBuilder.getChildrenIds(toolsectionId).forEach((function(e){this._uiBuilder.getChildrenIds(e).forEach((function(e){this._uiBuilder.set(e,"enabled",!1)}),this)}),this),this._uiBuilder.getChildrenIds(this._galleryId).forEach((function(e){this._uiBuilder.getChildrenIds(e).forEach((function(e){this._uiBuilder.set(e,"enabled",!1)}),this)}),this),i.forEach((function(e){t=this._getItemId(e),this._uiBuilder.set(t,"enabled",!0)}),this)},_getItemId:function(e){var t=this._toolstripTag+"."+e;return this._uiBuilder.tagToId(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(286),i(432)],o=i.dj.d(n,(function(e,t,i){return e([t,i],{visualFamily:"default",height:22,_initMenuItems:function(e){this.get("menu").getChildren().length>0&&this._destroyMenuItems(),e.forEach((function(e,t){var i=document.createElement("div");if(e.type&&"separator"===e.type)i.setAttribute("data-refuse-key-nav",!0),i.setAttribute("data-menu-item-type","separator"),i.classList.add("mwMenuSeparator"),this.get("menu").menuItemsNode.appendChild(i);else{i.setAttribute("tabIndex","0"),["mwDefaultVisualFamily","mwTextMixin","mwTextMixin","mwWidget","mwSharedMenuItem","mwMenuItem"].forEach((function(e){i.classList.add(e)}));var n=document.createElement("div");n.classList.add("mwMenuItemParent");var o=document.createElement("div");o.classList.add("mwIconNode"),o.classList.add(e.icon);var r=document.createElement("div");r.classList.add("mwTextNode"),r.textContent=e.label,n.appendChild(o),n.appendChild(r),i.appendChild(n),this.get("menu").menuItemsNode.appendChild(i),i.addEventListener("mouseover",this._handleMenuItemMouseEnter.bind(this))}}),this)},_handleMenuClick:function(e){if(this._isSeparator(e.target)||!e.target.classList.contains("mwMenuItem")&&!e.target.classList.contains("mwTextNode"))e.preventDefault();else{var t=this._getItemForNode(e.target),i=t.value,n=t.icon,o=this.get("value");this.set("icon",n),this.set("value",i),o!==i&&this._triggerChangeEvent("value",o,i),this.closeMenu()}},buildRendering:function(){this.inherited(arguments),this._textField.placeAt(this.textFieldContainerNode),this.iconNode=document.createElement("div"),this.iconNode.classList.add("mwIconNode"),this.textFieldContainerNode.prepend(this.iconNode),this.textFieldContainerNode.classList.add("mwArrowContainerNode"),this.textFieldContainerNode.classList.add("mwTextContainer"),this.inputNode=this._textField.inputNode,this.focusNode=this.domNode},_setValueAttr:function(e){var t=this._getSelectedItemFromValue(e);if(("number"==typeof e?e.toString():e)&&t&&void 0!==t.index){var i=t.label;this._textField.set("value",i),this.set("icon",t.icon),this._isTextEmpty=!0,this._removeSelectedMenuItemColor(),this.get("menu").getChildren().length>0&&void 0!==t.index&&this.get("menu").getChildren()[t.index].classList.add("mwComboBoxSelectedMenuItem")}else if(("number"==typeof e?e.toString():e)&&!t){if(!this.get("editable")){if(this.get("items")&&0!==this.get("items").length)throw new Error("Value must match an existing item for non-editable combo box");return void(this._pendingValue=e)}this._removeSelectedMenuItemColor(),this._textField.set("value",e),this._isTextEmpty=!1}else""===e&&(this._textField.set("value",""),void 0!==this._get("value")&&(this._removeSelectedMenuItemColor(),this._isTextEmpty=!0),""!==this.get("text")&&(this._isTextEmpty=!1));!0===this._isTextEmpty?this.set("text",""):this.set("text",e),this._set("value",e)},_getSelectedItemFromLabel:function(e){var t={};if(this.get("items")&&this.get("items").length>0)for(var i=0;i<this.get("items").length;i++){var n=this.get("items")[i];if(void 0!==n.label&&n.label===e){t.label=n.label,t.value=n.value,t.icon=n.icon,t.index=i;break}}return void 0!==t.index?t:void 0},_getSelectedItemFromValue:function(e){var t={};if(this.get("items")&&this.get("items").length>0)for(var i=0;i<this.get("items").length;i++){var n=this.get("items")[i];if(void 0!==n.value&&(n.value===e||"object"==typeof n.value&&JSON.stringify(n.value)===JSON.stringify(e))){t.label=n.label,t.value=n.value,t.icon=n.icon,t.index=i;break}}return void 0!==t.index?t:void 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8307)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/feedback",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219)],o=i.dj.d(n,(function(e,t){return e([],{subscribe:function(e,i){t.subscribe(e,i)},unsubscribe:function(e,i){t.unsubscribe(e,i)},sendViewReadyMessage:function(e){t.publish(e,{eventType:"windowReady"})},sendMORefreshMessage:function(e){t.publish(e,{eventType:"moRefreshed"})},sendCloseMessage:function(e){t.publish(e,{eventType:"windowClosed"})},sendMOWindowActivatedMessage:function(e){t.publish(e,{eventType:"windowActivated"})},sendMOWindowDeactivatedMessage:function(e){t.publish(e,{eventType:"windowDeactivated"})},sendPropertyChangeMessage:function(e,i){t.publish(e,{eventType:"windowPropertyChanged",data:i})},postMessageToFrame:function(e,t){t.contentWindow.postMessage(e,e.href)},getMessageService:function(){return t.messageService}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{START_SERVER_SIDE:"startServerSide",STOP:"stop",SERVER_OPEN_FIND_FILES:"serverOpenFindFiles",CLOSE:"close",OPEN_FILE_CHOOSER:"openFileChooser",OPEN_FIND_FILES:"openFindFiles",SET_LOOK_IN_LOCATION:"setLookInLocation"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{SUBSCRIBE_CHANNEL:"/matlab/findFiles/toMLOnlineFromJava",PUBLISH_CHANNEL:"/matlab/findFiles/toJavaFromMLOnline"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8319),i(8320),i(8321),i(8322)],o=i.dj.d(n,(function(e,t){return t(e,"findfiles-ui/l10n/gen/resources/findfiles/nls/findfiles",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8331),i(8332),i(8333),i(8334)],o=i.dj.d(n,(function(e,t){return t(e,"gotofile/l10n/gen/resources/gotofile/nls/goToFile",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2617),i(8341)],o=i.dj.d(n,(function(e,t,i){return{createHelpDataService:function(e,t,i,n){return t?this.getHelpDataServiceInstance(e,t,i,n):this.getHelpDataNullService(i)},getHelpDataServiceInstance:function(e,t,n,o){var r={endpoint:t.endpoint,serverRoot:t.serverRoot,serviceURI:t.serviceURI};return new i({clientType:e,endPoints:r,actionService:n,iframeLayoutManager:o})},getHelpDataNullService:function(e){return new t({actionService:e})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(299)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){this._enabled=!0,e=e||{},this.actionService=e.actionService},getSuggestions:function(e){},updateRoute:function(){},executeSearch:function(e){e=e||"",this.actionService&&this.actionService.executeAction(i.HELP,{searchTerm:e})},_handleSearchSuggestionError:function(){this.disable()},enable:function(){this._enabled=!0},disable:function(){this._enabled=!1},isEnabled:function(){return this._enabled}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(217),i(1186)],o=i.dj.d(n,(function(e,t,i,n){return e("importtool_client.ImportToolDocument",[n],{_CSS_CLASS:"ImportToolDocument",_uiContainer:null,_dataSource:null,constructor:function(e){this._isInitialLoad=!0,e.uiContainer&&(this._uiContainer=e.uiContainer),e.dataSource&&(this._dataSource=e.dataSource)},postCreate:function(){this._addCssClass(),this.inherited(arguments)},_addCssClass:function(){t.add(this.domNode,this._CSS_CLASS)},resize:function(){var e=this.domNode.parentElement;if(e){var t=i.position(e);if(t.h<=0)return;this._addDataFormatClass(t.h),this.resizeViews()}},removeView:function(e){if(void 0!==e&&null!==this._uiContainer){var t=this._uiContainer.getChildProperties(this._dataSource);void 0!==t&&t.set("isOpen",!1)}this.inherited(arguments)},_hideBusyIndicator:function(){this.inherited(arguments),this._isInitialLoad&&(this.dispatchEvent("viewUpdated",this,{type:"dataChange"}),this._isInitialLoad=!1)},getDocumentMetaData:function(e){return e.getViewMetaData()},_handleViewRendered:function(e){this._hideBusyIndicator(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(204),i(203),i(210),i(211),i(206),i(307),i(238),i(276),i(2620),i(2621),i(488),i(209),i(231)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=0;return i("importtool_client.SpreadsheetImportWidget",[d,e,a],{spreadSheetDataSource:null,tabularImportWidgetList:{},_tabContainer:null,_widgetStarted:!1,_uiContainer:null,_startupListener:null,_stateChangeListener:null,_VIEW_TYPE:"importtool_client/SpreadsheetTableViewModel",_DEFAULT_TITLE:"No Filename",_WIDGET_TYPE:"spreadsheetImportTool",_CONTAINER_TYPE:"spreadsheet",constructor:function(e){this.tabularImportWidgetList={},this._tabContainer=null,this._startupListener=null,this._stateChangeListener=null,e.dataSource?this.spreadSheetDataSource=e.dataSource:h.warn("Widget created without data source"),e.uiContainer&&(this._uiContainer=e.uiContainer)},postCreate:function(){n.add(this.domNode,"SpreadsheetImportWidget"),this.domNode.tabIndex=-1;var e=o.toDom("<div class='SpreadSheetTabContainer'></div>");n.add(e,"SpreadSheetWidgetWrapper"),o.place(e,this.domNode),this._createTabContainer(),this._init(),o.place(this._tabContainer.domNode,e)},_getWidgetCounter:function(){return f},setDataSource:function(e){this.spreadSheetDataSource||(this.spreadSheetDataSource=e)},getDataSource:function(){return this.spreadSheetDataSource},_init:function(){this.updateWidgetTabs(),this._attachListeners()},updateWidgetTabs:function(){if(this.spreadSheetDataSource){var e=this.spreadSheetDataSource.getSheetCount(),t=0;for(t=0;t<e;t+=1)this._createImportWidget(t,{viewType:this._VIEW_TYPE,containerType:this._CONTAINER_TYPE,uiContainer:this._uiContainer})}},_createImportWidget:function(e,i){var n=this.spreadSheetDataSource.getSheet(e),o=this.spreadSheetDataSource.getSheetName(e),a={dataSource:n,sheetName:o,type:"SpreadsheetView"};i&&t.mixin(a,i);var s=new c(a);this._addWidgetToContainer(s,e,o),this.setFocusedSheet(s),this.tabularImportWidgetList[e]=s,this._widgetStarted&&r.emit(s.domNode,"startupWidget",{bubbles:!1,cancelable:!0})},_attachListeners:function(){this._startupListener=r(this.domNode,"startup",t.hitch(this,this._handleStartup)),this._stateChangeListener=r(this._tabContainer,"state_changed",t.hitch(this,this._handleStateChange));var e=this,i=s.on("widget-blur",(function(t){t===e&&(e.dataSource&&e.dataSource.setManagerFocus&&e.dataSource.setManagerFocus(!1),e.setFocusedSheet(e.getSpreadsheetWidgetFromSelectedTab()),i.remove())}))},_handleStateChange:function(){var e=this.getSpreadsheetWidgetFromSelectedTab();e&&e.handleResize&&e.handleResize()},setFocusedSheet:function(e){if(this._focusedSheet=e,e){var t=e.getDocument();this.dataSource.setFocusedDocument(t);var i=e.getWidgetMetaData();t&&t.dataSource&&(i.dataSource=t.dataSource),this.getWidgetType&&(i.importType=this.getWidgetType()),i&&r.emit(this.domNode,"focusedDocumentChanged",i)}},getFocusedSheet:function(){return this._focusedSheet},_handleStartup:function(){var e;for(e in this._widgetStarted=!0,this._tabContainer.startup(),this.resizeLayout(),this._createBusyIndicator(),this._showInitialSheet(),this.tabularImportWidgetList){var t=this.tabularImportWidgetList[e];t&&t.domNode&&r.emit(t.domNode,"startupWidget",{bubbles:!1,cancelable:!0})}},_showInitialSheet:function(){var e=this.dataSource._initialSheet;if(e)this._tabContainer.showChild(e);else{var t=this._tabContainer.getChildrenInTabOrder()[0];this._tabContainer.showChild(t)}this.setFocusedSheet(this.getSpreadsheetWidgetFromSelectedTab())},resizeLayout:function(){this._widgetStarted&&this._tabContainer.layout()},getWidgetTitle:function(){return this._DEFAULT_TITLE},getWidgetType:function(){return this._WIDGET_TYPE},focus:function(){s.focus(this.domNode),this.spreadSheetDataSource&&this.spreadSheetDataSource.setManagerFocus&&this.spreadSheetDataSource.setManagerFocus(!0),this.setFocusedSheet(this.getSpreadsheetWidgetFromSelectedTab())},_addWidgetToContainer:function(e,t,i){if(this._tabContainer){var n=this._tabContainer.getTabForChild(i);n?this._updateExistingTab(n,e):this._createNewTab(e,t,i)}},_updateExistingTab:function(e,t){t&&t.domNode&&(e.widget.set("content",t.domNode),this._fitWidgetToContentPane(t))},_createNewTab:function(e,t,i){var n={title:i};e&&e.domNode?(this._tabContainer.addWithProperties(new l({content:e.domNode}),n,t,!1),this._fitWidgetToContentPane(e)):this._tabContainer.addWithProperties(new l({content:e}),n,t,!1),this._setTabListeners(i)},_fitWidgetToContentPane:function(e){e.domNode.style.height="100%",e.domNode.style.width="100%",e.handleResize()},_setTabListeners:function(e){this._tabContainer._getTabInfo(e).properties.watch("isSelected",t.hitch(this,this._openSheetForSelectedTab))},_openSheetForSelectedTab:function(e,t,i){if(i){var n=this.getSpreadsheetWidgetFromSelectedTab();(!n||n&&!n.handleResize)&&this._openImportSheet(),this.setFocusedSheet(n)}},getSpreadsheetWidgetFromSelectedTab:function(){var e=this._tabContainer.selectedChildWidget;if(e&&e.domNode)return p.getEnclosingWidget(e.domNode.firstElementChild)},_createBusyIndicator:function(){},_createTabContainer:function(){this._tabContainer=new u({displayToolTipsOnTruncatedTabs:!0,tabReorderingEnabled:!0,tabsRepositioningEnabled:!0,tabPosition:"bottom"},"SpreadSheetTabContainer"+f),f+=1,n.add(this._tabContainer.domNode,"SpreadSheetWidgetContainer"),this._addBusyIndicatorToDom()},_addBusyIndicatorToDom:function(){},uiimport:function(){},destroy:function(){try{this._tabContainer&&(this._tabContainer.removeAll(!0),this._tabContainer.destroy()),this._startupListener.remove(),this.inherited(arguments)}catch(e){h.warn("Error occured while destroying spreadsheetWidget:"+e)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(204),i(206),i(211),i(2618),i(1239)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t("importtool_client.TabularDataImportWidget",[e],{_document:null,_DEFAULT_RENDERER:"",_DEFAULT_COLUMN_WIDTH:100,_MULTIPLIER:"×",_DEFAULT_VIEW:"importtool_client/ImportToolArrayViewModel",_widgetStartupListener:null,_uiContainer:null,constructor:function(e){this.tabularImportDataSource=e.dataSource,e.document&&(this._document=e.document),e.uiContainer&&(this._uiContainer=e.uiContainer),this._init(e)},_init:function(e){this._document||this._createDocument(e)},postCreate:function(){this._attachListeners(),o.place(this._document.domNode,this.domNode)},_attachListeners:function(){var e=this;this._widgetStartupListener=n(this.domNode,"startupWidget",(function(t){e._document._started||(e._document.startup(),n.emit(e._document.domNode,"startup",{bubbles:!1,cancelable:!0}))}))},_createDocument:function(e){var t=this._getMetaData(e),i=this.tabularImportDataSource,n={data:i.getData(),metaData:t,viewType:e.viewType||this._DEFAULT_VIEW,varSize:i.rows+this._MULTIPLIER+i.columns,showSummaryBar:!1,uiContainer:this._uiContainer,resizeBehavior:"container",containerType:e.containerType,context:e.context};this._document=new r(n);var o=this._getTabularView(e.type);this._document.parentViewToDocument(o),o._updateView()},_getTabularView:function(e){return this._document.getViewByType(e)},_getMetaData:function(e){var t=this.tabularImportDataSource.columns,i={},n=[],o=0;for(o=0;o<t;o+=1){var r=this.tabularImportDataSource.getAllColumnMetaData(o);r.ColumnWidth=e.columnWidth||this._DEFAULT_COLUMN_WIDTH,n.push(r)}return i.columnMetadata=n,i},handleResize:function(){this._document.resize()},resize:function(){this.inherited(arguments),this.handleResize()},destroy:function(){this._document.destroy(),this._widgetStartupListener.remove(),this.inherited(arguments)},uiimport:function(){},getWidgetMetaData:function(){var e=this._getTabularView(this.type);return this._document.getDocumentMetaData(e)},getDocument:function(){return this._document}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(217),i(534),i(203),i(8351)],o=i.dj.d(n,(function(e,t,i,n){return i("importtool_client.ImportWidget",[],{constructor:function(){t.registerWidgetJSONFile("ImportToolWidgetRegistryDefaults",n)},resize:function(t){e.setMarginBox(this.domNode,t),this.resizeLayout(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209)],o=i.dj.d(n,(function(e,t){return e("importtool_client.SpreadsheetDataImportSource",[],{constructor:function(e,t){this.sheetNames=[],this._sheetCount=0,this._tabularDataSourceList={},this._init(e,t)},_init:function(e,t){if(e){var i=0;for(this._sheetCount=e.length,i=0;i<this._sheetCount;i+=1){var n=e[i];this._tabularDataSourceList[i]=n,t&&t[i]&&(this.sheetNames[i]=t[i])}}},setFocusedDocument:function(){t.warn("To be overridden")},getSheetCount:function(){return this._sheetCount},getSheet:function(e){return this._tabularDataSourceList[e]},getSheetName:function(e){return this.sheetNames[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(8353)],o=i.dj.d(n,(function(e,t,i){return e("importtool_peer.RemoteTabularDataImportSource",[i],{remoteDocument:null,_onSheetViewAdded:null,constructor:function(e){this.remoteDocument=e,this._onSheetViewAdded=null,this.initListeners()},initListeners:function(){this.remoteDocument.viewAdded?this.onSheetViewAdded():(this._onSheetViewAdded=t.hitch(this,"onSheetViewAdded"),this.remoteDocument.addEventListener("viewAdded",this._onSheetViewAdded,this))},onSheetViewAdded:function(){},destroy:function(){this.remoteDocument&&this.remoteDocument.removeEventListener&&this.remoteDocument.removeEventListener("viewAdded",this._onSheetViewAdded,this)},getDocumentMetaData:function(){return this.remoteDocument.getDocumentMetaData()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=[{id:"SelectionChanged",enabled:!0,callback:function(e){}},{id:"VariableNamesRowChanged",enabled:!0,callback:function(e){}},{id:"OutputVariableNameChanged",enabled:!0,callback:function(e){}},{id:"OutputVariableTypeChanged",enabled:!0,callback:function(e){}},{id:"ImportData",enabled:!0,callback:function(e){}},{id:"GenerateScript",enabled:!0,callback:function(e){}},{id:"GenerateLiveScript",enabled:!0,callback:function(e){}},{id:"GenerateFunction",enabled:!0,callback:function(e){}},{id:"TabDelimiterChanged",enabled:!0,callback:function(e){}},{id:"CommaDelimiterChanged",enabled:!0,callback:function(e){}},{id:"SpaceDelimiterChanged",enabled:!0,callback:function(e){}},{id:"SemicolonDelimiterChanged",enabled:!0,callback:function(e){}},{id:"CustomDelimiterChanged",enabled:!0,callback:function(e){}},{id:"ConsecutiveDelimiterRuleChanged",enabled:!0,callback:function(e){}},{id:"PeriodDecimalSeparatorChanged",enabled:!0,callback:function(e){}},{id:"CommaDecimalSeparatorChanged",enabled:!0,callback:function(e){}},{id:"AddUnimportableRule",enabled:!0,callback:function(e){}},{id:"ModifyUnimportableRule",enabled:!0,callback:function(e){}},{id:"RemoveUnimportableRule",enabled:!0,callback:function(e){}},{id:"UnimportableCellRuleSelected",enabled:!0,callback:function(e){}},{id:"ValidVariableNamesChanged",enabled:!0,callback:function(e){}},{id:"AllowAllCharacters",enabled:!0,callback:function(e){}},{id:"LimitCharacters",enabled:!0,callback:function(e){}},{id:"IncludesVariableNamesRowChanged",enabled:!0,callback:function(e){}},{id:"UseTimesFromColumn",enabled:!0,callback:function(e){}},{id:"GenerateTimes",enabled:!0,callback:function(e){}},{id:"RowTimesColumnChanged",enabled:!0,callback:function(e){}},{id:"ConfigureRowTimes",enabled:!0,callback:function(e){}}];return{getActions:function(){return e},updateActions:function(e,t){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(356),i(204),i(572),i(210),i(217),i(213),i(256),i(206),i(222),i(279),i(248),i(2538),i(328),i(541),i(1011),i(600),i(8391),i(8392)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b=function(e){return{w:a.get(e,"borderLeftWidth")+a.get(e,"borderRightWidth"),h:a.get(e,"borderLeftWidth")+a.get(e,"borderRightWidth")}};return e([h],{isOnTop:!1,_isAlwaysOnTop:!1,_onTopZ:650,attributeMap:i.delegate(p.prototype.attributeMap,{title:{type:"textContent",node:"titleNode"}}),maximizeTo:null,_animations:{},startup:function(){if(this.inherited(arguments),this.resizable){function e(e){this._saveIframePointerEventsStyle(),this._setIframePointerEventsStyle("none")}function t(e){this._resetIframePointerEventsStyle()}this.fullResizeHandle=new v(this.domNode,{bottomRight:this._resizeHandle}),this.fullResizeHandle.on("resizeStart",e.bind(this)),this.fullResizeHandle.on("resizeStop",t.bind(this)),this.fullResizeHandle.on("touchPress",function(e){this.bringToTop(),this.focusWithoutScroll()}.bind(this))}this.connect(this.focusNode,u.press,(function(){this.focusWithoutScroll()})),this.focusWithoutScroll()},postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-focus","temporary"),this._moveable.destroy(),this._moveable=new n(this.domNode,{handle:this.titleNode}),this._moveable.mover=g,this.dockable&&this.own(s.subscribe("/floatingPaneStateUpdate",i.hitch(this,(function(e){this.dockTo=e.dockTo,this._maximized&&this.resize(this.getMaximumSize())})))),this.closeNode.title=m.close,this.closeNode.setAttribute("tabindex","0"),this.maxNode.title=m.maximize,this.restoreNode.title=m.restore,this.dockNode.title=m.minimize,s.publish("/floatingPaneCreated",{window:this})},templateString:_,hide:function(e){var n,o;if("function"==typeof e)n=e,o=i.hitch(this,(function(){n(),this.onClose(),this.emit("onClose")})),this.inherited(arguments,[o]),s.publish("/floatingPaneHidden",{window:this});else if("boolean"==typeof e){this.paneOriginalPosition=r.position(this.domNode);var a=Date.now(),l=t.animateProperty({node:this.domNode,properties:{top:r.position(this.dockTo.domNode).y,left:r.position(this.dockTo.domNode).x,height:0,width:r.position(this.dockTo.domNode).w,opacity:0},onEnd:i.hitch(this,(function(){this.domNode.style.visibility="hidden",this.domNode.style.transform="translateX(-10000px)",delete this._animations[a]})),duration:this.duration});l.play(),this._animations[a]=l}else this.inherited(arguments),s.publish("/floatingPaneHidden",{window:this});this.onTop=!1,this.onHide()},close:function(){l.emit(this.domNode,"restorefocus",{bubbles:!0}),this.closeAlreadyInvoked||(this.closeAlreadyInvoked=!0,this._maxToHandle&&this._maxToHandle.remove(),this.inherited(arguments))},show:function(){if(!this.onTop){if(this.paneOriginalPosition){Object.values(this._animations).forEach((function(e){e.stop()})),this._animations={},this.domNode.style.top=this.paneOriginalPosition.y+"px",this.domNode.style.left=this.paneOriginalPosition.x+"px";var e=b(this.domNode);this.domNode.style.width=this.paneOriginalPosition.w-e.w+"px",this.domNode.style.height=this.paneOriginalPosition.h-e.h+"px"}this.domNode.style.transform="",delete this.closeAlreadyInvoked,this._isMinimized=!1,this.inherited(arguments),s.publish("/floatingPaneShown",{window:this})}},focusWithoutScroll:function(){this.domNode.focus({preventScroll:!0})},setAlwaysOnTop:function(e){this._isAlwaysOnTop=e,this._isAlwaysOnTop?(o.remove(this.domNode,"mwNonModalDialog"),o.add(this.domNode,"mwNonModalOnTopDialog")):(o.add(this.domNode,"mwNonModalDialog"),o.remove(this.domNode,"mwNonModalOnTopDialog")),this.bringToTop()},isAlwaysOnTop:function(){return this._isAlwaysOnTop},onClose:function(){},resize:function(e){var t=this.getMaximumSize();if(e)e.w=Math.min(e.w,t.w),e.h=Math.min(e.h,t.h),arguments[0]=e;else{if(this._maximized)return void this.resize(t);this._naturalState=r.position(this.domNode);var i=b(this.domNode);this._naturalState.w-=i.w,this._naturalState.h-=i.h}this.inherited(arguments)},minimize:function(){this._isDocked||(this.hide(!0),this.onTop=!1,this.onMinimize(),s.publish("/floatingPaneMinimized",{window:this}))},isMinimized:function(){return this._isMinimized},bringToTop:function(){if(!this._isMinimized){if(this._sendAllWindowsToBack(),this._isAlwaysOnTop){var e=this._allFPs.filter((function(e){return e!==this&&e._isAlwaysOnTop}),this);this._updateZindex(e,this._startZ+this._onTopZ)}else{var t=this._allFPs.filter((function(e){return e!==this&&!e._isAlwaysOnTop}),this),i=this._getModelessDialogs();i.length>0&&(t=t.concat(i)),this._updateZindex(t,this._startZ)}o.add(this.domNode,"dojoxFloatingPaneFg"),this.onTop=!0,this.onBringToTop(),s.publish("/floatingPaneRaised",{window:this})}},enableMaximize:function(e){this.maxable=!!e,this.maxNode.style.display=this.maxable?"":"none",this.restoreNode.style.display=this.maxable?"":"none"},setMaximumSize:function(e,t){this._maxSize={width:e,height:t},this.fullResizeHandle&&this.fullResizeHandle.set("maxSize",{w:e,h:t})},getMaximumSize:function(){var e=this.maximizeTo?r.position(this.maximizeTo):d.getBox(),t=this._maxSize?Math.min(this._maxSize.width,e.w):e.w,i=this._maxSize?Math.min(this._maxSize.height,e.h):e.h;return Object.assign(e,{w:t,h:i}),e},maximize:function(){this.maxable&&(this._maximized||(this._restoreSize=r.position(this.domNode)),this.setResizable(!1),this.inherited(arguments))},_restore:function(){if(this._maximized){this._naturalState=this._restoreSize||this._naturalState;var e=b(this.domNode);this._naturalState.w-=e.w,this._naturalState.h-=e.h,this._restoreSize=null}this.setResizable(!0),this.inherited(arguments)},showNormal:function(){this._maximized&&(o.remove(this.focusNode,"floatingPaneMaximized"),this._maximized=!1,this._restoreSize=null,this.setResizable(!0))},setResizable:function(e){if(this.resizable!==e){this.resizable=e;var t=Array.from(this.domNode.getElementsByClassName("dojoxResizeNW")),i=Array.from(this.domNode.getElementsByClassName("resizeEdgeNode"));t.concat(i).forEach((function(t){t.style.display=e?"":"none"}))}},_sendAllWindowsToBack:function(){var e=this._allFPs.slice(),t=this._getModelessDialogs();t.length>0&&(e=e.concat(t)),e.forEach((function(e){o.remove(e.domNode,"dojoxFloatingPaneFg"),t.length>0&&o.remove(e.domNode,"mwModelessDialogFg")}),this)},_getModelessDialogs:function(){var e=document.getElementsByClassName("mwModelessDialog");return e.length>0&&(e=(e=Array.prototype.slice.call(e)).map((function(e){return{domNode:e}}))),e},_updateZindex:function(e,t){e.sort((function(e,t){return e.domNode.style.zIndex-t.domNode.style.zIndex})),e.push(this),e.forEach((function(e,i){e.domNode.style.zIndex=t+2*i}),this)},onBringToTop:function(){},onMinimize:function(){this._isMinimized=!0},forceClose:function(){this.inherited("close",arguments),s.publish("/floatingPaneClosed",{window:this})},_dock:function(){!this._isDocked&&this.dockable&&(this._isDocked=!0)},_iframePointerStylesMap:new Map,_iframesSelector:".dojoxFloatingPaneContent iframe",_setIframePointerEventsStyle:function(e){for(var t=document.querySelectorAll(this._iframesSelector),i=0;i<t.length;i++)t[i].style.pointerEvents=e},_resetIframePointerEventsStyle:function(){for(var e=document.querySelectorAll(this._iframesSelector),t=0;t<e.length;t++){var i=e[t];this._iframePointerStylesMap.has(i)&&(i.style.pointerEvents=this._iframePointerStylesMap.get(i))}this._iframePointerStylesMap.clear()},_saveIframePointerEventsStyle:function(){for(var e=document.querySelectorAll(this._iframesSelector),t=0;t<e.length;t++){var i=e[t],n=i.style.pointerEvents;this._iframePointerStylesMap.set(i,n)}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(222)],o=i.dj.d(n,(function(e){return class extends e{constructor(e={}){super(),this.options=e}init(e){if(!e)throw new Error("Placement must be created with a widget.");this.widget=e}applyHeightIfRequired(e){this.options.obeyFormHeight&&this._applyHeight(e)}_applyHeight(e){throw new Error("Placement._applyHeight is abstract.")}place(...e){throw new Error("Placement.place is abstract.")}destroy(){throw new Error("Placement.destroy is abstract.")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8432)],o=i.dj.d(n,(function(e){return{getInstance:function(t){return this._instance||(this._instance=new e(t)),this._instance},destroy:function(){this._instance&&(this._instance=null)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8443),i(563),i(226),i(8448)],o=i.dj.d(n,(e,t,i,n,o)=>e(null,{fModel:null,fContainer:null,fUiBuilder:null,fCurrentProjectService:null,fCurrentProject:null,projectTabGroupTag:"",fSection:null,fShortcutGallery:null,constructor:function(e,i,o){this.fModel=o,this.fContainer=e,this.fUiBuilder=this.fContainer.uiBuilder,this.fParentTab=i,this.fSection=this.fUiBuilder.create({type:n.SECTION,title:t.TSSectionShortcuts,parentId:this.fParentTab})},dispose:function(){},update:function(e){const t=this.fUiBuilder.getChildrenIds(this.fSection);t&&t.length>0&&this.fUiBuilder.remove(t),this.fShortcutGallery&&this.fShortcutGallery.dispose();const i=e.commandChannel;let n=e.shortcuts;this.fShortcutGallery=new o(this.fUiBuilder,this.fSection,n,this.fModel,i)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(860),i(222),i(418),i(273),i(262),i(233),i(286),i(269),i(243),i(258),i(232),i(297),i(291),i(241),i(8454),i(510)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){class m extends t{constructor(){super(),this.fRelativePath="",this.fAbsolutePath=""}set(e,t,i=!0){this.fRelativePath=t,this.fAbsolutePath=e,i&&(this.emit("setFilePath"),this.emit("setDefaultIcon"),this.emit("setShortcutName"))}getRelativeFilePath(){return this.fRelativePath}getAbsoluteFilePath(){return this.fAbsolutePath}clear(){this.fRelativePath="",this.fAbsolutePath=""}}class _ extends t{enableButton(){this.emit("enableButton")}}return class{constructor(e,t,n={},o=!0){this.fDialog=null,this.fIconLabel=null,this.fCommandExecutor=e,this.fGroups=t,this.fDefaultData=n,this.fIsNewShortcut=o,this.fShortcutFile=new m,this.fShortcutIcon="",this.fShortcutName="",this.fShortcutGroup="",this.fFileSepator="",this.fFileIconProvider=i.getFileIconProvider()}async show(){this.fDialog||(await this._setFileSeparator(),this.fDialog=this._createDialog())}close(){if(this.fDialog){const e=this.fDialog;this.fDialog=null,this.fIconLabel=null,this.fShortcutFile.clear(),this.fShortcutIcon="",this.fShortcutName="",this.fShortcutGroup="",e.close()}}_createDialog(){const t=document.createElement("div");let i=e.ShortcutTitleNew;this.fIsNewShortcut||(i=e.ShortcutTitleEdit);const r=o.createDialog({title:i,className:"newShortcutDialog",dialogType:o.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,buttons:[n.CANCEL,n.OK],defaultActionButton:n.CANCEL,"data-test-id":"ShortcutDialog",content:t});return t.classList.add("proj-shortcuts-root"),this._addFileSelectionRow(t),this._addIconSelectionRow(t),this._addNameRow(t),this._addGroupSelectionRow(t),r.addButtonEventListener(n.CANCEL,()=>{this.close()},!1),r.addButtonEventListener(n.OK,()=>{this.fShortcutFile.getRelativeFilePath()?this.fShortcutName?(this.fCommandExecutor.execute("createShortcut",this.fShortcutFile.getRelativeFilePath(),this.fShortcutIcon,this.fShortcutName,this.fShortcutGroup),this.close()):p.displayAlertDialog(e.ShortcutAlertDialogTitle,e.ShortcutNoName,{"data-test-id":"NoNameSpecifiedError"}):p.displayAlertDialog(e.ShortcutAlertDialogTitle,e.ShortcutNoFile,{"data-test-id":"NoFileSelectedError"})},!1),r.on("close",()=>{this.close()}),r.resizeTo({width:400,height:245}),r.moveTo({}),r}_addFileSelectionRow(t){this.fDefaultData.hasOwnProperty("absolutePath")&&this.fDefaultData.hasOwnProperty("relativePath")&&this.fShortcutFile.set(this.fDefaultData.absolutePath,this.fDefaultData.relativePath,!1),this._addText(e.ShortcutFile,t);const i=document.createElement("div");i.classList.add("proj-shortcuts-row"),this._addFilePathField(i),this.fIsNewShortcut&&this._addSelectFileButton(i),t.appendChild(i)}_addFilePathField(t){const i=document.createElement("div");i.classList.add("proj-shortcuts-row-item");const n=new c({value:this.fShortcutFile.getRelativeFilePath(),editable:!1,placeholder:e.ShortcutNoFileSelected,"data-test-id":"ShortcutFileField",width:"100%"});this.fShortcutFile.on("setFilePath",()=>{n.set("value",this.fShortcutFile.getRelativeFilePath())}),n.placeAt(i),n.startup(),t.appendChild(i)}_addSelectFileButton(t){const i=document.createElement("div");i.classList.add("proj-shortcuts-row-button");const n=new l({text:e.ShortcutSelectFileButton,"data-test-id":"ShortcutSelectFileButton"});n.placeAt(i),n.startup(),n.on("click",async()=>{const t=new f("matlab.internal.project.view.dialog.selectShortcutFile");try{const e=await t.getFile();e&&this.fShortcutFile.set(e[0],e[1])}catch(t){p.displayAlertDialog(e.ShortcutAlertDialogTitle,t,{"data-test-id":"FileError"})}}),t.appendChild(i)}async _setFileSeparator(){if(this.fFileSepator)return;const e=new u;e.setOutTextCallback(null),e.setErrTextCallback(null);const t=await h.getMVM().feval("filesep",1,[],e);this.fFileSepator=t[0]}_addIconSelectionRow(t){this._addText(e.ShortcutIcon,t);const i=document.createElement("div");i.classList.add("proj-shortcuts-row");const n=new _;this._addIconLabel(i),this._addBrowseIconButton(i,n),this._addSetDefaultIconButton(i,n),t.appendChild(i),this._setLabelIcon(n)}_addIconLabel(e){this.fIconLabel=new s({width:16,height:16,"data-test-id":"ShortcutIcon"}),this.fIconLabel.placeAt(e),this.fIconLabel.startup()}_setDefaultIcon(){const e=r.getFileNameExtension(this.fShortcutFile.getAbsoluteFilePath()),t={location:"",name:this.fShortcutFile.getAbsoluteFilePath(),isDirectory:!1,type:e};this.fFileIconProvider.getIconData(t).then(e=>{this.fIconLabel.set("icon",e.iconData)})}_addBrowseIconButton(t,i){const n=document.createElement("div");n.classList.add("proj-shortcuts-row-button");const o=new l({text:e.ShortcutChangeIconButton,"data-test-id":"ShortcutSelectIconButton"});o.placeAt(n),o.startup(),o.on("click",async()=>{const t=new f("matlab.internal.project.view.dialog.selectShortcutIcon");try{const e=await t.getFile();if(e){this.fShortcutIcon=e[1];let t=e[0];t&&t.startsWith("/static/")&&(t=d.createWorkerRoutingHostUrl(t)),this.fIconLabel.set("icon",t),""!==this.fShortcutFile.getAbsoluteFilePath()&&i.enableButton()}}catch(t){p.displayAlertDialog(e.ShortcutAlertDialogTitle,t,{"data-test-id":"IconError"})}}),o.placeAt(n),o.startup(),t.appendChild(n)}_addSetDefaultIconButton(t,i){const n=document.createElement("div");n.classList.add("proj-shortcuts-row-button");const o=new l({text:e.ShortcutUseDefaultIcon,"data-test-id":"ShortcutUseDefaultIconButton",disabled:!0});o.on("click",()=>{this.fShortcutIcon="",this._setDefaultIcon(),o.set("disabled",!0)}),i.on("enableButton",()=>{o.set("disabled",!1)}),o.placeAt(n),o.startup(),t.appendChild(n)}_setLabelIcon(e){if(this.fDefaultData.hasOwnProperty("icon"))this.fShortcutIcon=this.fDefaultData.icon,""===this.fShortcutIcon?this._setDefaultIcon():(this.fIconLabel.set("icon",this.fShortcutIcon),e.enableButton());else{const e=(new g).getRemoteWorkerUrl("/toolbox/matlab/project/views/file_web/project-file-ui/images/generic_file_16.png");this.fIconLabel.set("icon",e)}this.fShortcutFile.on("setDefaultIcon",()=>{this.fShortcutIcon||this._setDefaultIcon()})}_addNameRow(t){this._addText(e.ShortcutName,t);const i=this._addShortcutNameField(t);this.fShortcutFile.on("setShortcutName",()=>{const e=this.fShortcutFile.getRelativeFilePath().split(this.fFileSepator).slice(-1)[0].replace(/\.[^/.]+$/,"");i.set("value",e),this.fShortcutName=e})}_addShortcutNameField(e){const t=document.createElement("div");t.classList.add("proj-shortcuts-row");const i=document.createElement("div");i.classList.add("proj-shortcuts-row-item"),this.fDefaultData.hasOwnProperty("name")&&(this.fShortcutName=this.fDefaultData.name);const n=new c({value:this.fShortcutName,width:"100%","data-test-id":"ShortcutNameField"});return n.placeAt(i),n.startup(),t.appendChild(i),e.appendChild(t),n.on("change",e=>{this.fShortcutName=e.mwEventData.newValue}),n}_addGroupSelectionRow(t){this._addText(e.ShortcutGroup,t);const i=this._getGroupBoxItems();this.fShortcutGroup=i[0].value;const n=i.map(e=>e.value);this.fDefaultData.hasOwnProperty("group")&&n.includes(this.fDefaultData.group)&&(this.fShortcutGroup=this.fDefaultData.group);const o=new a({items:i,value:this.fShortcutGroup,"data-test-id":"ShortcutGroupSelection",width:"100%"});o.on("change",e=>{this.fShortcutGroup=e.mwEventData.newValue});const r=document.createElement("div");r.classList.add("proj-shortcuts-row");const s=document.createElement("div");s.classList.add("proj-shortcuts-row-item"),o.placeAt(s),o.startup(),r.appendChild(s),t.appendChild(r)}_getGroupBoxItems(){const e=[];let t=this.fGroups;const i=t[0];let n=t.filter(e=>e!==i);return n.sort((e,t)=>e.localeCompare(t)),t=[i].concat(n),t.forEach(t=>{e.push({label:t,value:t})}),e}_addText(e,t){const i=document.createTextNode(e),n=document.createElement("div");n.classList.add("proj-shortcuts-row"),n.appendChild(i),t.appendChild(n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8455),i(2631),i(241),i(563),i(226),i(510),i(383),i(419),i(1016),i(1617),i(8469)],o=i.dj.d(n,(e,t,i,n,o,r,a,s,l,c,d,u)=>e(null,{fContainer:null,fUiBuilder:null,fTempSections:null,fCurrentProjectService:null,fCurrentProject:null,projectTabGroupTag:"",fIconProvider:null,fSection:null,tToolstripWidgetFactory:null,constructor:function(e,t){this.fContainer=e,this.fUiBuilder=this.fContainer.uiBuilder,this.fParentTab=t,this.fIconProvider=new a("/toolbox/matlab/project/views/core_web/project-core-ui/images/"),this._createSection()},dispose:function(){},_createSection:function(){this.fSection||(this.fSection=this.fUiBuilder.create({type:r.SECTION,title:t.SourceControlSection,parentId:this.fParentTab}),this.fToolstripWidgetFactory=new c(this.fUiBuilder,this.fIconProvider,this.fSection))},_deleteSection:function(){this.fSection&&this.fUiBuilder.destroy(this.fSection),this.fSection=null},update:function(e){var t=this.fUiBuilder.getChildrenIds(this.fSection);if(t&&t.length>0&&t.forEach(e=>{this.fUiBuilder.destroy(e)}),this._isSourceControlActive(e))return void this._deleteSection();this._createSection();const i=new s(e.commandChannel),n=this.fUiBuilder.create({type:r.COLUMN,parentId:this.fSection});this._addRefreshButton(n,e,i);const o=this.fUiBuilder.create({type:r.COLUMN,parentId:this.fSection});this._addCommitButton(o,e,i);const a=this.fUiBuilder.create({type:r.COLUMN,parentId:this.fSection});this._addFetchButton(a,e,i),this._addPushButton(a,e,i),this._addPullButton(a,e,i)},_isSourceControlActive:function(e){return!e||!e._scCache||!new d(e._scCache).isActive()},_addRefreshButton:function(e,i,n){this._makeButton(e,"Refresh_24.png","cm_refresh",t.refresh,t.refreshDescription,()=>n.execute("refreshSourceControl",i.location))},_addCommitButton:function(e,i,n){this._makeButton(e,"commit_24.png","cm_commit",t.commit,t.commitDescription,()=>new u(i.location,n).createDialog())},_addFetchButton:function(e,i,n){this._makeButton(e,"fetch_16.png","cm_fetch",t.fetch,t.fetch,()=>{const e=new l({title:t.FetchAction,showCancel:!0});return n.executeWithProgress(e,"fetchSourceControl",i.location)})},_addPushButton:function(e,i,n){this._makeButton(e,"push_16.png","cm_push",t.push,t.push,()=>{const e=new l({title:t.PushAction,showCancel:!0});return n.executeWithProgress(e,"pushSourceControl",i.location)})},_addPullButton:function(e,i,n){this._makeButton(e,"pull_16.png","cm_pull",t.pull,t.pull,()=>{const e=new l({title:t.PullAction,showCancel:!0});return n.executeWithProgress(e,"pullSourceControl",i.location)})},_makeButton:function(...e){this.fToolstripWidgetFactory||console.error("this.fToolstripWidgetFactory undefined"),this.fToolstripWidgetFactory.makeButton(...e)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8460),i(8461),i(8462),i(8463)],o=i.dj.d(n,(function(e,t){return t(e,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_action",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(233)],o=i.dj.d(n,(function(e,t){return e(null,{getRelativePath:function(e,i){const n=t.getFileSeparator(e);let o=i.replace(e,"");return o.startsWith(n)&&(o=o.replace(n,"")),o},isChildPath:function(e,t){return t.startsWith(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(345)],o=i.dj.d(n,(function(e,t,i){const n=i.default;return e([t],{fCache:null,fListener:null,fModel:null,fEntriesProperty:null,constructor:function(e){this.fCache=e,this.fModel=e.getModel(),this.fListener=new n,this.fEntriesProperty=e.getMetaClass().getPropertyByName("entries"),this.fListener.transactionCommitted=e=>{this._update(e)},this.fModel.addShallowListener(this.fListener)},stop:function(){this.fModel.removeListener(this.fListener)},isMember:function(e){const t=this.getEntries();return!!t&&t.at(e)},getEntries:function(){return this.fCache.isValid?this.fCache.entries:null},_update:function(e){e.isChanged(this.fCache,this.fEntriesProperty)&&this.emit(this.events.CACHE_REFRESH,{})},events:{CACHE_REFRESH:"refresh"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2635),i(759)],o=i.dj.d(n,(function(e,t){return class{constructor(){this.fFileSelector=new e({title:t.ProjectSelectionTitle},{ext:["prj"],name:t.ProjectFileType})}getFile(){return this.fFileSelector.getFile()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(291),i(297),i(1217)],o=i.dj.d(n,(function(e,t,i){const n=new t;function o(e){const t=e.ext.map(e=>"*."+e);return[""+t.join(";"),`${e.name} (${t.join(", ")})`]}n.setOutTextCallback(null),n.setErrTextCallback(null);return class{constructor(e,...t){const n=Boolean(e.saveMode);this.fCommand=n?"uiputfile":"uigetfile";(Boolean(e.includeAllFiles)||0===t.length)&&t.push({ext:[".*"],name:i.ProjectSelectionAllFiles});const r=t.map(o),a={mwdata:[...r.map(e=>e[0]),...r.map(e=>e[1])],mwsize:[t.length,2],mwtype:"cell"};this.fArgs=[a,e.title||i.ProjectFileSelectionTitle],e.defaultFile&&this.fArgs.push(e.defaultFile)}async getFile(){const t=e.getMVM(),i=await t.feval(this.fCommand,2,this.fArgs,n),o=i[0],r=i[1];if("string"!=typeof o||"string"!=typeof r)return"";return(await t.feval("fullfile",1,[r,o],n))[0]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(563),i(219),i(759),i(241)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e){this.fCommandChannel=e},execute:function(){const e={closeCallback:function(e){if(1===e.response){const e={action:"closeProject",args:[],id:t.uniqueId()};i.publish(this.fCommandChannel,e)}}.bind(this)};o.displayConfirmDialog(n.CloseProjectWarningTitle,n.CloseProjectWarningMessage,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(510),i(383),i(1016)],o=i.dj.d(n,(function(e,t,i,n){const o=function(e,t,i){let n=e[t];n?n.push(i):n=[i],e[t]=n};return e(null,{fProject:null,fToolstripLaunchers:null,fProjectButtons:null,constructor:function(){this.fToolstripLaunchers=new Map,this.fProjectButtons=new Map},addExtensionToolstipFactory:function(e){const t=e.provideToolstripEntryPoint();t&&o(this.fToolstripLaunchers,t.section,t)},setProject:function(e){this.fProject=e,this.fProjectButtons=new Map;const r=new i(e.commandChannel),a=new t(null);e.toolstripExtensions&&e.toolstripExtensions.forEach(e=>{const t=e.section;o(this.fProjectButtons,t,{section:t,add:function(t,i,o){const s=new n(i,a,t),l=e.command;s.makeBigButton(e.iconLocation,e.buttonId,e.buttonName,e.buttonDescription,()=>r.execute(l))}})})},populatePanel:function(e,t){const i=e.section,n=e=>{e&&e.forEach(e=>{e.add(i,t,this.fProject)})},o=e.sectionId;n(this.fToolstripLaunchers[o]),n(this.fProjectButtons[o])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return class{constructor(){this.fExtensionFactories=[],this.fToolFactories=[]}resetTools(){this.fToolFactories=[]}addExtensionFactory(e,t){this.fExtensionFactories.push({factory:e,priority:t})}addToolFactory(e,t){this.fToolFactories.push({factory:e,priority:t})}populateGallery(e){this.fExtensionFactories.concat(this.fToolFactories).sort((e,t)=>e.priority-t.priority).forEach(t=>e.addItem(t.factory))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(210),i(8498),i(1617),i(8500),i(2633),i(8501),i(2530),i(8502),i(8503),i(2520),i(1615),i(276),i(214),i(209),i(232),i(8504),i(368),i(8505),i(1054),i(233),i(2517),i(546),i(576),i(471),i(219),i(306),i(599),i(383),i(2521),i(2528),i(855),i(241),i(8506),i(8512),i(8513),i(418)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F){return e(null,{fFileService:null,fFileBrowser:null,fContentPane:null,fSourceControlStatusCache:null,fAttachedLabelsCache:null,fProjectPathCache:null,constructor:function(e){const h=e.path;this.fSourceControlStatusCache=new o(e.scCache),this.fSourceControlStatusCache.start(),this.fLabelsCache=new r(e.mf0LabelsCache),this.fLabelsCache.start(),this.fAttachedLabelsCache=new r(e.mf0AttachedLabelsCache),this.fAttachedLabelsCache.start(),this.fProjectPathCache=new a(e.mf0ProjectPathCache),this.fEntryPointCache=new R(e.mf0ShortcutCache),this.fContentPane=new p({class:"ProjectReferenceFilesView",onBlur:()=>{this.fFileBrowser.onBlur()}}),this.fFileService=new n(e),this.fFileService.start(),this.fPathService=e.pathService,this.fFileOperationsService=F.getFileOperationsService();const g=y.v4(),M="project"+g;this._inputSource=new u,this._actionService=new v({nameSpace:M,mode:"StandAlone"}),this._fActionManager=new d({inputSource:this._inputSource,clientActionsService:this._actionService,fileService:this.fFileService,pathService:this.fPathService}),this._inputSource.setInput([],[]),this.fLabelMenuHandler=new O({clientActionsService:this._actionService,labelsCache:this.fLabelsCache,attachedLabelsCache:this.fAttachedLabelsCache,fileService:this.fFileService,commandExecutor:new N(e.commandChannel)}),this.fShortcutMenuHandler=new k({clientActionsService:this._actionService,entryPointCache:this.fEntryPointCache,fileService:this.fFileService,commandExecutor:new N(e.commandChannel)});const P=new _({fileDataService:this.fFileService,id:M});this.fSourceControlStatusCache.isActive()&&P.addColumn(l,{id:"SCStatus"+g,sourceControlStatusCache:this.fSourceControlStatusCache}),this.fFileBrowser=P.addColumn(s,{root:h,projectPathCache:this.fProjectPathCache,entryPointCache:this.fEntryPointCache,id:"ProjectStatus"+g}).addColumn(c,{attachedLabelsCache:this.fAttachedLabelsCache,labelsCache:this.fLabelsCache,id:"AttachedLabels"+g}).setActionManager(this._fActionManager).setDnD(!0).setContextMenu(!0).setActionDataService(this._actionService).setAllowGrouping(!0).setActionKeyBindingMap(b).setAllowRename(!0).setSelectionBox(!0).setJumpToAction(!0).getFileBrowser(),i.add(this.fFileBrowser.domNode,"projectFileBrowser");const B=new E,H=S.getRegistrationFramework(),V={resourceName:"actionMenuItem",resourceType:w.JSON};this.fNameValidator=new D({fileBrowser:this.fFileBrowser,validationService:new L});const j=new A;j.resolve({requestResponseService:m,pubSubService:I}),this._actionInputArgs={actionsResourceBundle:x,fileService:this.fFileService,pathService:this.fPathService,projectPathCache:this.fProjectPathCache,entryPointCache:this.fEntryPointCache,sourceControlStatusCache:this.fSourceControlStatusCache,columnRegistry:this.fFileBrowser.columnRegistry,fileBrowser:this.fFileBrowser,commandExecutor:new N(e.commandChannel),cfbExecutor:{execute:this._fActionManager.executeCFBAction},nameValidator:this.fNameValidator},this._fActionManager.setDefaultActions(new Set(["NEW2","OPEN","RENAME","DELETE","SHOW","SORT_BY","GROUP_BY","CREATE_ZIP"]),this._actionInputArgs),this._fActionPluginManager=new T({moduleLoader:B,registrationFramework:H,actionResourceSpecification:V,actionService:this._actionService,communicationAvailable:j,actionCategories:new Set(["filebrowser_common","project_common"]),actionInputArgs:this._actionInputArgs}),this._fActionManager.initializeActionPluginManager(this._fActionPluginManager),this.fFileBrowser.grid.set("query",{parent:h}),this.fFileBrowser.grid.setCurrentFolderInfo(C.folderInfoFromPath(h)),this.attach(this.fContentPane.domNode),this.fFileBrowser.own(f.after(this.fFileBrowser,"onDoubleClick",this._openFile.bind(this),!0),f.after(this.fFileBrowser,"onSelectionChange",this._updateSelectionBasedActions.bind(this),!0),f.after(this.fFileBrowser,"onFilesDrop",this._onFilesDrop.bind(this),!0),f.after(this.fFileBrowser,"onFileNameChanged",this._renameFile.bind(this),!0),t(this.fFileBrowser,"filebrowser-editor-show",this._handleActiveRenameMode.bind(this)),t(this.fFileBrowser,"filebrowser-editor-hide",this._handleHidingEditor.bind(this)),t(this.fFileService,"rename-initialized",this._handleRenameAction.bind(this)),t(this.fFileService,"create-action-initialized",this._createNewFileAndSwitchToRenameMode.bind(this)),t(this.fFileService,"extract-initialized",this._handleExtractToFolder.bind(this))),I.subscribe("/cfb/cfbActionResultsCommunicator",e=>{switch(e.data.identifier){case"AddCutAffordance":this._addCutAffordance(e.data.result);break;case"ClearCutAffordance":this._clearCutAffordance(e.data.result)}})},_handleActiveRenameMode:function(e){this.fNameValidator.handleEditorInput(e)},_handleHidingEditor:function(e){this.fNameValidator.handleBlankValues(e)},_createNewFileAndSwitchToRenameMode:async function(e){const t=(e,t)=>e?C.folderInfoFromPath(t):C.fileInfoFromPath(t),i=()=>{const{createErrorDialogTitle:e,createErrorDialogMessage:t}=x;P.displayAlertDialog(e,t)};let n,o,r=this._inputSource.getInput(),a=!0;if(1===r.filePaths.length&&r.fileInfoArray[0].isDirectory&&"zip"!==e.placeholderExtension){n=r.fileInfoArray[0].path,o=this.fFileBrowser.grid.store.query(e=>e.path===n)[0];const e=this.fFileBrowser.grid.row(o);let{id:t}=e;a=this.fFileBrowser.isExpanded(t)}else n=this.fPathService.fProjectRoot.path,o=t(!0,n);let s=this._getAvailableDefaultFileName(e.placeholderName,e.placeholderExtension,n,e.isDirectory),l=C.createFilePath(n,s),c=t(e.isDirectory,l);a||await this._expandRowWithChildren(o);let d=(e=>new Promise(t=>{const i=this.fFileBrowser.on("renderRow",n=>{n[e]&&(i.remove(),t())})}))(l);try{await e.callbackFcn(s,n)}catch(e){i()}this.fFileService.listFolder(o),await d;const u=this.fFileService.on("create-complete",async e=>{u.remove(),setTimeout(()=>{e.name!==c.name&&this.fFileBrowser.setFocusAndSelection(e)},0)});setTimeout(()=>{this.fFileBrowser.setFocusAndSelection(c),this.fFileBrowser.renameFile([c]).then(async t=>{let o=e.fileNameValidatorFcn||h.validateFileName;if(!this.fNameValidator.hideErrorPopups()&&o(t.newName,n)){const{fileInfo:e,newName:n}=t;let o,r,a=C.pathFromFileInfo(e),s=C.locationFromPath(a),l=C.createFilePath(s,n);new Promise((e,t)=>{o=this.fFileService.on("rename-failed",({path:e,error:i})=>{e===a&&t(i)}),r=this.fFileService.on("rename-complete",t=>{t===a&&e()})}).then(()=>{const e=this.fFileService.getRelativePaths([l]);this.fFileService.addToProject(e)},()=>{i()}).finally(()=>{o&&o.remove(),r&&r.remove()});const c=new Promise(e=>M.subscribe("store-modified",e,{path:l,once:!0,clientId:"projects-ui"}));this.fFileService.renameFile(t);const d=await c;this.fFileService.emit("create-complete",d)}else g.warn("fileNameValidatorFcn(): Invalid File Name")})},0)},_getAvailableDefaultFileName:function(e,t,i,n){let o,r=this.fFileBrowser.grid.store.query({parent:i}).map(e=>e.name),a=new Set;r.forEach(e=>a.add(e));let s=1;if(n)for(o=e;a.has(o);)s+=1,o=e+" ("+s.toString()+")";else for(o=e+"."+t;a.has(o);)s+=1,o=e+s.toString()+"."+t;return o},_handleExtractToFolder:async function(e){const{extractedFolderPath:t,parentFolderPath:i,extractedToFolderPromise:n,folderExists:o}=e;if(o)await this.fFileService.onExpandOrCollapse(i,!0);else{await n;const e=new Promise(e=>M.subscribe("store-modified",e,{path:t,once:!0,clientId:"projects-ui"}));await this.fFileService.onExpandOrCollapse(i,!0),await e}this.fFileBrowser.setFocusAndSelection(t)},_handleRenameAction:function(e){const t=this.fFileBrowser.getRowFileInfo(e),i=this.fFileBrowser.renameFile([t]),n=this.fFileService.on("rename-complete",e=>{n.remove(),this.fFileBrowser.setFocusAndSelection(e)});i.then(function(e){this.fNameValidator.hideErrorPopups()||this.fFileService.renameFile(e)}.bind(this))},_renameFile:function(e,t){this.fNameValidator.hideErrorPopups()||this.fFileService.renameFile({fileInfo:e,newName:t})},getContentPane:function(){return this.fContentPane},attach:function(e){this.fFileBrowser.placeAt(e)},stop:function(){this.fFileService.stop(),this.fSourceControlStatusCache.stop(),this.fAttachedLabelsCache.stop(),this.fProjectPathCache.stop()},_openFile:function(e){e.isDirectory||this.fFileOperationsService.open(e,this._actionInputArgs)},_onFilesDrop:function(e,t,i){const n=i?"copyfile":"movefile";e.forEach(e=>{m.sendMessage({Eval:{mcode:n+"('"+C.pathFromFileInfo(e)+"','"+C.pathFromFileInfo(t)+"')"}},{},"PROJECT_MOVE_FILE")})},destroy:function(){this.fFileBrowser&&(this.fFileBrowser.destroy(),this.fFileBrowser=null)},_updateSelectionBasedActions:function(e,t){this._inputSource.setInput(t,e)},_addCutAffordance:function(e){const t=[];for(var i=0;i<e.length;i++)t.push(C.pathFromFileInfo(e[i]));this.fFileBrowser.addCutAffordance(t)},_clearCutAffordance:function(){this.fFileBrowser.clearCutAffordance()},_expandRowWithChildren:async function(e){const t=this.fFileBrowser.grid.row(e);let{id:i}=t;this.fFileBrowser.isExpanded(i)||await this.fFileBrowser.grid.expand(i,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(233)],o=i.dj.d(n,(function(e,t,i){return e([t],{fProjectRoot:null,constructor:function(e){this.fProjectRoot=i.folderInfoFromPath(e)},getCurrentFolder:function(){return this.fProjectRoot},events:{MATLAB_PATH_CHANGED:"MaltabPathChanged",CWD_FAULT:"CWDFault",CWD_CHANGED:"CWDChanged",SERVICE_STARTED:"PathDataServiceStarted"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{setDiff:function(e,t){const i=[];return e.forEach(e=>{const n=e.id;0===t.filter(e=>e.id===n).length&&i.push(e)}),i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(383),i(8527),i(419),i(601),i(1244),i(1017)],o=i.dj.d(n,(function(e,t,i,n,o,r){return class{constructor(e){this.fCommandChannel=e}execute(){t.requestNewCategorySpec().then(t=>{t.Name&&new e(this.fCommandChannel).executeWithProgress(new i({title:o.ProjectBusyAction,description:n.AddingCategory,showCancel:!1}),"createLabelCategory",t.Name,t.DataType,t.SingleValued?"1":"0").catch(e=>{r.show(e)})})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(383),i(419),i(601),i(1244),i(1017)],o=i.dj.d(n,(function(e,t,i,n,o){return class{constructor(e){this.fCommandChannel=e}execute(r){new e(this.fCommandChannel).executeWithProgress(new t({title:n.ProjectBusyAction,description:i.RemovingCategory,showCancel:!1}),"deleteCategory",r).catch(e=>{o.show(e)})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(383),i(8532),i(419),i(601),i(1244),i(1017)],o=i.dj.d(n,(function(e,t,i,n,o,r){return class{constructor(e){this.fCommandChannel=e}execute(a){t.requestNewLabelName().then(t=>{t&&new e(this.fCommandChannel).executeWithProgress(new i({title:o.ProjectBusyAction,description:n.AddingLabel,showCancel:!1}),"createLabel",a,t).catch(e=>{r.show(e)})})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(383),i(419),i(601),i(1244),i(1017)],o=i.dj.d(n,(function(e,t,i,n,o){return class{constructor(e){this.fCommandChannel=e}execute(r,a){new e(this.fCommandChannel).executeWithProgress(new t({title:n.ProjectBusyAction,description:i.RemovingLabel,showCancel:!1}),"deleteLabel",r,a).catch(e=>{o.show(e)})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(217),i(213),i(206),i(246),i(411),i(557)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c;return(c=e([l],{resize:function(){this.getChildren().forEach((function(e){e.resize&&e.resize()}))},onClose:function(){return this.dataService.registerHandlerService().getHandler("GUIContainer").handleEvent(this.widgetId,{type:"windowClosing"}),!1},_getStyle:function(e){var t=this.inherited(arguments);return t.position="relative",delete t.left,delete t.top,t},buildRendering:function(){this.inherited(arguments),t.add(this.domNode,"mgg")},destroyRecursive:function(){this.contentContainer.onscroll=null,this.inherited(arguments)},getChildren:function(){this.containerNode=this.menuContainer;var e=this.inherited(arguments);return this.containerNode=this.toolBarContainer,e=e.concat(this.inherited(arguments)),this.containerNode=this.contentContainer,e=e.concat(this.inherited(arguments))},_renderComponent:function(e){e.title&&t.add(this.domNode,"mw_name_"+e.title.toLowerCase().replace(/ /g,"_")),e.docked=void 0===e.docked||e.docked,this.contentContainer||(this.menuContainer=i.create("div",{class:"relativeChild menuBarWrapper"},this.domNode,"last"),this.toolBarContainer=i.create("div",{class:"relativeChild toolBarWrapper"},this.domNode,"last"),this.contentContainer=i.create("div",{class:"contentWrapper"},this.domNode,"last"),this.contentContainer.onscroll=function(){this.scrollLeft=0,this.scrollTop=0},this.own(r(this.contentContainer,"onselectstart",a,a.stopEvent))),t.toggle(this.contentContainer,"relativeChild",!!e.hasToolBar),c.enableToggleDock&&e.resizable&&!e.modal&&e.dockable?(this.dockButton||(this.dockButton=new s({class:"dockButton"}),this.connect(this.dockButton,"onClick","_toggleDock"),this.dockButton.placeAt(this.domNode,"last")),this.dockButton.set("iconClass",e.docked?"undockIcon":"dockIcon")):this.dockButton&&this.dockButton.destroyRecursive(),!0===e.minimized?this.onMinimized():this.onWindowShown();var n=this._getStyle(e);o.set(this.contentContainer,n),n.width&&o.set(this.domNode,"width",n.width)},addChild:function(e,t){this._addRemoveHelper(e,"add",t)},removeChild:function(e){this._addRemoveHelper(e,"remove")},_addRemoveHelper:function(e,t,i){if("MenuBar"===e.componentData.type)this.containerNode=this.menuContainer;else if("ToolBarContainer"===e.componentData.type||"ToolBar"===e.componentData.type)this.containerNode=this.toolBarContainer;else{if("PopupMenu"===e.componentData.type){if(dojo.global.contextMenuPosition&&"add"===t){clearTimeout(this.timeout);var n=this.domNode;this.timeout=setTimeout((function(){e.delegate&&!e.delegate._destroyed&&e.delegate._openMyself({target:n,iframe:void 0,coords:{x:dojo.global.contextMenuPosition.x,y:dojo.global.contextMenuPosition.y}})}),0);var o=this.dataService;e.delegate.connect(e.delegate,"onClose",(function(){o.registerHandlerService().getHandler("PopupMenu").handleEvent(e.componentData.id,{type:"closeMenu"})}))}return void(this.containerNode=this.contentContainer)}if("null.contentPane"===e.componentData.name)return;this.containerNode=this.contentContainer,this.resize()}if("add"===t){if((i=Math.max(0,Math.min(i,this.containerNode.children.length)))===this.containerNode.children.length)this.containerNode.appendChild(e.domNode);else{var r=this.containerNode.children[i];this.containerNode.insertBefore(e.domNode,r)}this._started&&!e._started&&e.startup&&e.startup(),e.update&&e.update()}else e.domNode.parentNode.removeChild(e.domNode);this.containerNode=this.contentContainer},_toggleDock:function(){this.dataService.registerHandlerService().getHandler("GUIContainer").setProperties(this.componentData.id,{docked:!this.componentData.docked})},onMinimized:function(){},onWindowShown:function(){}})).enableToggleDock=!1,c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(760)],o=i.dj.d(n,(function(e,t){return e([t],{_overflowMap:{default:"auto",always:"scroll",needed:"auto",never:"hidden"},childStyleChanged:function(e,t){return this._childWidth=e.position.width,this._childHeight=e.position.height,this.defer(this.update,0),this.inherited(arguments)||t},_getStyle:function(e){var t=this.inherited(arguments);return!this._childWidth||this._childWidth>e.position.width?t.overflowX=this._overflowMap[e.horizontalScrollPolicy||"default"]:t.overflowX="hidden",!this._childHeight||this._childHeight>e.position.height?t.overflowY=this._overflowMap[e.verticalScrollPolicy||"default"]:t.overflowY="hidden",t},handleOnScroll:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(609),i(646),i(762)],o=i.dj.d(n,(function(e,t,i,n){var o=e([t],{_setLabelAttr:function(e){for(this._set("label",e),"object"==typeof e&&(e=e.label||e.value);this.containerNode.firstChild;)this.containerNode.removeChild(this.containerNode.firstChild);this.containerNode.appendChild(document.createTextNode(e))}});return e([n],{_constructDelegate:function(e,t){var n=this._makeWidget(e,t),o=this.dataService;return n.connect(n,"_onClick",(function(){o.registerHandlerService().getHandler("Menu").handleEvent(t.id,{type:"buttonClicked"}),"Delete"===n.label&&i.emptyEval()})),n.connect(n,"_onHover",(function(){o.registerHandlerService().getHandler("Menu").handleEvent(t.id,{type:"hover"})})),n.connect(n,"_onUnhover",(function(){o.registerHandlerService().getHandler("Menu").handleEvent(t.id,{type:"unhover"})})),n},_makeWidget:function(e){return new o({id:e})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(210),i(211),i(411),i(861)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r],{_createButtonWidget:function(e,t){return new o({label:e.text||"",disabled:!e.enabled,iconClass:"",onClick:function(){t.registerHandlerService().getHandler("Button").handleEvent(e.id,{type:"buttonClicked"})},style:{width:"100%",height:"100%"}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(240),i(204),i(217),i(257),i(221)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){function s(e,t,i,n,o){o=!!o;var r=function(){n.apply(i,arguments)};return e.addEventListener(t,r,o),{remove:function(){e.removeEventListener(t,r,o)}}}return e([],{constructor:function(){this._mouseEvents=[],this._docEvents=[]},setupMouseEvents:function(e){this._mouseNode=e,this._mouseEvents.push(s(e,"mousedown",this,this._onMouseDown)),this._mouseEvents.push(s(e,"mousemove",this,this._onMouseMove)),this._mouseEvents.push(s(e,"mouseout",this,this._onMouseOut)),this._mouseEvents.push(s(e,"mousewheel",this,this._onMouseWheel)),this._mouseEvents.push(s(e,"DOMMouseScroll",this,this._onMouseWheel)),this._mouseEvents.push(s(e,"click",this,this._onMouseClick)),this._mouseEvents.push(s(e,"dblclick",this,this._onMouseDoubleClick)),this._mouseEvents.push(s(e,"selectstart",t,t.stop)),this._mouseNode&&(this._nodePos=o.position(this._mouseNode))},cleanupMouseEvents:function(){this._mouseEvents.forEach((function(e){e.remove()})),this._mouseEvents=[],this.cleanupDocumentEvents(),this._mouseNode=null},cleanupDocumentEvents:function(){var e=this;setTimeout((function(){e._docEvents.forEach((function(e){e.remove()})),e._docEvents=[]}),0)},duplicateEvent:function(e){return{offsetX:e.offsetX,offsetY:e.offsetY,layerX:e.layerX,layerY:e.layerY,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey}},makeMouseEvent:function(e){var t={altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,timestamp:Date.now(),button:"",left:!1,middle:!1,right:!1};void 0===e.wheelDelta&&void 0===e.detail||(t.wheelZoom=e.wheelDelta?e.wheelDelta/120:-e.detail/3,Math.abs(t.wheelZoom)<1&&Math.abs(t.wheelZoom)>0&&(t.wheelZoom=e.wheelDelta>0||e.detail<0?1:-1)),this.dragging&&(e.buttons>0?(t.left=(1&e.buttons)>0,t.middle=(4&e.buttons)>0,t.right=(2&e.buttons)>0,1&e.buttons?t.button="left":2&e.buttons?t.button="right":4&e.buttons&&(t.button="middle")):(1===e.which&&(t.left=!0,t.button="left"),2===e.which&&(t.middle=!0,t.button="middle"),3===e.which&&(t.right=!0,t.button="right")));var n=0,r=0;return e.pageX||e.pageY?(n=e.pageX,r=e.pageY):(e.clientX||e.clientY)&&(n=e.clientX+i.global.document.body.scrollLeft+i.global.document.documentElement.scrollLeft,r=e.clientY+i.global.document.body.scrollTop+i.global.document.documentElement.scrollTop),this._mouseNode&&(this._nodePos=o.position(this._mouseNode)),this._nodePos?(t.x=n-this._nodePos.x,t.y=r-this._nodePos.y):(t.x=0,t.y=0),this._lastEvent=t,t},getLastEvent:function(){return this._lastEvent},onDragStart:function(e){},onDrag:function(e){},onDragStop:function(e){},onMouseDown:function(e){},onMouseMove:function(e){},onMouseOut:function(e){},onMouseUp:function(e){},onMouseClick:function(e){},onMouseDoubleClick:function(e){},onMouseWheel:function(e){},_onMouseDown:function(e){this._mouseDownTime=Date.now(),this.dragging||(a("ie")||a("trident")||t.stop(e),this._docEvents.push(s(i.global.document,"mouseover",t,t.stop,!0)),this._docEvents.push(s(i.global.document,"mouseout",t,t.stop,!0)),this._docEvents.push(s(i.global.document,"mouseenter",t,t.stop,!0)),this._docEvents.push(s(i.global.document,"mouseleave",t,t.stop,!0)),this._docEvents.push(s(i.global.document,"contextmenu",t,t.stop,!0)),this._docEvents.push(s(i.global.document,"mousemove",this,this._onDocumentMouseMove,!0)),this._docEvents.push(s(i.global.document,"mouseup",this,this._onDocumentMouseUp,!0)),this.dragging=!0,this.onDragStart(e))},_onDocumentMouseMove:function(e){this.dragging&&(t.stop(e),this.onDrag(e))},_onDocumentMouseUp:function(e){this.dragging&&(t.stop(e),this.dragging=!1,this.onDragStop(e)),this.cleanupDocumentEvents()},_onMouseMove:function(e){this.dragging||this.onMouseMove(e)},_onMouseOut:function(e){this.dragging||this.onMouseOut(e)},_onMouseClick:function(e){Date.now()-this._mouseDownTime<250&&this.onMouseClick(e)},_onMouseDoubleClick:function(e){this.onMouseDoubleClick(e)},_onMouseWheel:function(e){t.stop(e),this.onMouseWheel(e)},_onRightClick:function(e){t.stop(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(240),i(204),i(217),i(206)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{KEY_CODE_MAP:{46:127,186:59,187:61,188:44,189:45,190:46,191:47,219:91,220:92,221:93},CODE_KEY_CODE_MAP:{Delete:127,Semicolon:59,Equal:61,NumpadEqual:61,Comma:44,Minus:45,Period:46,Slash:47,BracketLeft:91,Backslash:92,BracketRight:93},constructor:function(){this._keyEvents=[]},setupKeyEvents:function(e){this._keyEvents.push(r(e,"keydown",n.hitch(this,this._onKeyDown))),this._keyEvents.push(r(e,"keyup",n.hitch(this,this._onKeyUp)))},cleanupKeyEvents:function(){this._keyEvents.forEach((function(e){e.remove()})),this._keyEvents=[]},makeKeyEvent:function(e){var t=(e.code?this.CODE_KEY_CODE_MAP[e.code]:this.KEY_CODE_MAP[e.keyCode])||e.keyCode;return{altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,key:e.key,keyCode:t,keyChar:e.key&&1===e.key.length?e.key:String.fromCharCode(t),timestamp:Date.now()}},onKeyUp:function(e){},onKeyDown:function(e){},_onKeyUp:function(e){this.onKeyUp(e)},_onKeyDown:function(e){this.onKeyDown(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(228),i(210),i(217),i(218),i(223),i(204),i(206),i(245),i(8596),i(788),i(1049),i(609),i(43),i(312),i(1720),i(231),i(8597),i(1403)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b=t("dijit.form._SelectMenu",h,{autoFocus:!0,buildRendering:function(){this.inherited(arguments),this.domNode.setAttribute("role","listbox")},postCreate:function(){this.inherited(arguments),this.own(l(this.domNode,"selectstart",(function(e){e.preventDefault(),e.stopPropagation()})))},focus:function(){var t=!1,i=this.parentWidget.value;s.isArray(i)&&(i=i[i.length-1]),i&&e.forEach(this.parentWidget._getChildren(),(function(e){e.option&&i===e.option.value&&(t=!0,this.focusChild(e,!1))}),this),t||this.inherited(arguments)}}),y=t("dijit.form.Select"+(c("dojo-bidi")?"_NoBidi":""),[d,u,m],{baseClass:"dijitSelect dijitValidationTextBox",templateString:v,_buttonInputDisabled:c("ie")?"disabled":"",required:!1,state:"",message:"",tooltipPosition:[],emptyLabel:"&#160;",_isLoaded:!1,_childrenLoaded:!1,labelType:"html",_fillContent:function(){if(this.inherited(arguments),this.options.length&&!this.value&&this.srcNodeRef){var e=this.srcNodeRef.selectedIndex||0;this._set("value",this.options[e>=0?e:0].value)}this.dropDown=new b({id:this.id+"_menu",parentWidget:this}),n.add(this.dropDown.domNode,this.baseClass.replace(/\s+|$/g,"Menu "))},_getMenuItemForOption:function(e){if(e.value||e.label){var t=s.hitch(this,"_setValueAttr",e),i=new p({option:e,label:("text"===this.labelType?(e.label||"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;"):e.label)||this.emptyLabel,onClick:t,ownerDocument:this.ownerDocument,dir:this.dir,textDir:this.textDir,disabled:e.disabled||!1});return i.focusNode.setAttribute("role","option"),i}return new f({ownerDocument:this.ownerDocument})},_addOptionItem:function(e){this.dropDown&&this.dropDown.addChild(this._getMenuItemForOption(e))},_getChildren:function(){return this.dropDown?this.dropDown.getChildren():[]},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(e){}},focusChild:function(e){e&&this.set("value",e.option)},_getFirst:function(){var e=this._getChildren();return e.length?e[0]:null},_getLast:function(){var e=this._getChildren();return e.length?e[e.length-1]:null},childSelector:function(e){return(e=_.byNode(e))&&e.getParent()==this.dropDown},onKeyboardSearch:function(e,t,i,n){e&&this.focusChild(e)},_loadChildren:function(t){if(!0===t)if(this.dropDown&&(delete this.dropDown.focusedChild,this.focusedChild=null),this.options.length)this.inherited(arguments);else{e.forEach(this._getChildren(),(function(e){e.destroyRecursive()}));var i=new p({ownerDocument:this.ownerDocument,label:this.emptyLabel});this.dropDown.addChild(i)}else this._updateSelection();this._isLoaded=!1,this._childrenLoaded=!0,this._loadingStore||this._setValueAttr(this.value,!1)},_refreshState:function(){this._started&&this.validate(this.focused)},startup:function(){this.inherited(arguments),this._refreshState()},_setValueAttr:function(e){this.inherited(arguments),i.set(this.valueNode,"value",this.get("value")),this._refreshState()},_setNameAttr:"valueNode",_setDisabledAttr:function(e){this.inherited(arguments),this._refreshState()},_setRequiredAttr:function(e){this._set("required",e),this.focusNode.setAttribute("aria-required",e),this._refreshState()},_setOptionsAttr:function(e){this._isLoaded=!1,this._set("options",e)},_setDisplay:function(e){var t=("text"===this.labelType?(e||"").replace(/&/g,"&amp;").replace(/</g,"&lt;"):e)||this.emptyLabel;this.containerNode.innerHTML='<span role="option" aria-selected="true" class="dijitReset dijitInline '+this.baseClass.replace(/\s+|$/g,"Label ")+'">'+t+"</span>"},validate:function(e){var t=this.disabled||this.isValid(e);this._set("state",t?"":this._hasBeenBlurred?"Error":"Incomplete"),this.focusNode.setAttribute("aria-invalid",t?"false":"true");var i=t?"":this._missingMsg;return i&&this.focused&&this._hasBeenBlurred?g.show(i,this.domNode,this.tooltipPosition,!this.isLeftToRight()):g.hide(this.domNode),this._set("message",i),t},isValid:function(){return!this.required||0===this.value||!/^\s*$/.test(this.value||"")},reset:function(){this.inherited(arguments),g.hide(this.domNode),this._refreshState()},postMixInProperties:function(){this.inherited(arguments),this._missingMsg=r.getLocalization("dijit.form","validate",this.lang).missingMessage},postCreate:function(){this.inherited(arguments),this.own(l(this.domNode,"selectstart",(function(e){e.preventDefault(),e.stopPropagation()}))),this.domNode.setAttribute("aria-expanded","false");var e=this._keyNavCodes;delete e[a.LEFT_ARROW],delete e[a.RIGHT_ARROW]},_setStyleAttr:function(e){this.inherited(arguments),n.toggle(this.domNode,this.baseClass.replace(/\s+|$/g,"FixedWidth "),!!this.domNode.style.width)},isLoaded:function(){return this._isLoaded},loadDropDown:function(e){this._loadChildren(!0),this._isLoaded=!0,e()},destroy:function(e){this.dropDown&&!this.dropDown._destroyed&&(this.dropDown.destroyRecursive(e),delete this.dropDown),g.hide(this.domNode),this.inherited(arguments)},_onFocus:function(){this.validate(!0)},_onBlur:function(){g.hide(this.domNode),this.inherited(arguments),this.validate(!1)}});function C(e){return function(t){this._isLoaded?this.inherited(e,arguments):this.loadDropDown(s.hitch(this,e,t))}}return c("dojo-bidi")&&(y=t("dijit.form.Select",y,{_setDisplay:function(e){this.inherited(arguments),this.applyTextDir(this.containerNode)}})),y._Menu=b,y.prototype._onContainerKeydown=C("_onContainerKeydown"),y.prototype._onContainerKeypress=C("_onContainerKeypress"),y}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(247)],o=i.dj.d(n,(function(e){return{containsLinks:function(t){return e.HYPERLINK_ESCAPE_REGEXP.exec(t)||e.HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP.exec(t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(213),i(217),i(221),i(206),i(248),i(896),i(215),i(216),i(316),i(8607)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([c,d,u],{minimum:0,maximum:100,value:0,extent:0,unitIncrement:5,blockIncrement:20,disabled:!1,intermediateChanges:!1,templateString:h,_pageKey:"pageY",_clientKey:"clientY",_scrollKey:"scrollTop",_dirKey:"y",_rangeKey:"h",_minStyleKey:"minHeight",_thumbSizeKey:"height",_thumbPosKey:"top",_events:[],postCreate:function(){this.inherited(arguments),this._placeThumbContainer(),this._updateThumb(),this.own(a(this.domNode,r("mozilla")?"DOMMouseScroll":"mousewheel",function(e){this.disabled||(t.stop(e),e[r("mozilla")?"detail":"wheelDelta"]*(r("mozilla")?-1:1)>0?this.set("value",this._clipValue(this.value-this.unitIncrement)):this.set("value",this._clipValue(this.value+this.unitIncrement)))}.bind(this))),this.own(l.addMouseListener(this.decrementNode,this,this._onDecrementClick,25,250)),this.own(l.addMouseListener(this.incrementNode,this,this._onIncrementClick,25,250)),this.own(l.addMouseListener(this.thumbContainerWrapperNode,this,this._onThumbContainerClick,25,250))},startup:function(){this.inherited(arguments),this._placeThumbContainer(),this._updateThumb()},resize:function(){this.inherited(arguments),this._placeThumbContainer(),this._updateThumb()},_placeThumbContainer:function(){var e;this._started&&(e=o.position(this.domNode)[this._rangeKey])>0&&n.set(this.thumbContainerWrapperNode,this._thumbSizeKey,e-2*n.get(this.incrementNode,this._thumbSizeKey)+"px")},onChange:function(e){},_onDecrementClick:function(e){e>=0&&!this.disabled&&this.set("value",this._clipValue(this.value-this.unitIncrement))},_onIncrementClick:function(e){e>=0&&!this.disabled&&this.set("value",this._clipValue(this.value+this.unitIncrement))},_onThumbContainerClick:function(e,t,i){if(e>=0&&i.target!==this.thumbNode&&!this._destroyed&&!this.disabled){var n=0;i[this._pageKey]?n=i[this._pageKey]:i[this._clientKey]&&(n=i[this._clientKey]+document.body[this._scrollKey]+document.documentElement[this._scrollKey]);var r=o.position(i.target);if(r){n-=r[this._dirKey];var a=o.getMarginBox(this.thumbContainerNode)[this._rangeKey],s=this.maximum-this.minimum;n/a<(this.value-this.minimum)/s?this.set("value",this._clipValue(this.value-this.blockIncrement)):n/a>(this.value+this.extent-this.minimum)/s&&this.set("value",this._clipValue(this.value+this.blockIncrement))}}},onThumbDown:function(e){if(!this.disabled){t.stop(e),this._startPos=e[this._pageKey],this._startValue=this.value,this._range=o.getMarginBox(this.thumbNode.parentNode)[this._rangeKey];var n=e.target.ownerDocument;this._events=[a(n,s.move,i.hitch(this,"onThumbMove")),a(n,s.release,i.hitch(this,"onThumbUp")),a(n,"dragstart",t.stop),a(n.body,"selectstart",t.stop)]}},onThumbMove:function(e){this._destroyed||this.disabled||(t.stop(e),this._setValueAttr(this._computeNewValue(e),this.intermediateChanges))},onThumbUp:function(e){this.disabled||(t.stop(e),this._setValueAttr(this._computeNewValue(e))),this._events.forEach((function(e){e.remove()})),this._events=[]},_computeNewValue:function(e){return this._clipValue(this._startValue+(e[this._pageKey]-this._startPos)/this._range*(this.maximum-this.minimum))},_clipValue:function(e){return Math.min(this.maximum-this.extent,Math.max(this.minimum,e))},_setExtentAttr:function(e){this.extent!==e&&(this._set("extent",e),this._updateThumb())},_setMinimumAttr:function(e){this.minimum!==e&&(this._set("minimum",e),this._updateThumb())},_setMaximumAttr:function(e){this.maximum!==e&&(this._set("maximum",e),this._updateThumb())},_setValueAttr:function(e,t){e=Math.round(e),this.value!==e&&(this._set("value",e),this._updateThumb()),!1!==t&&e!==this._lastChange&&(this._lastChange=this.value,this.onChange(this.value))},_updateThumb:function(){if(this._started){var e,t,i,r={};e=o.getMarginBox(this.thumbContainerNode)[this._rangeKey],i=this.extent/(this.maximum-this.minimum)*e+"px",t=(this.value-this.minimum)/(this.maximum-this.minimum)*e+"px",r[this._thumbSizeKey]=i,Math.ceil(parseFloat(t)+parseFloat(i))>=e&&(t=Math.ceil(e-2-parseFloat(i))+"px"),r[this._thumbPosKey]=t,n.set(this.thumbNode,r)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206)],o=i.dj.d(n,(function(e,t,i){return e([],{KEY_CODE_MAP:{46:127,186:59,187:61,188:44,189:45,190:46,191:47,219:91,220:92,221:93},CODE_KEY_CODE_MAP:{Delete:127,Semicolon:59,Equal:61,NumpadEqual:61,Comma:44,Minus:45,Period:46,Slash:47,BracketLeft:91,Backslash:92,BracketRight:93},postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("tabindex","-999"),this.own(i(this.domNode,"keydown",t.hitch(this,"_onKeyDown"))),this.own(i(this.domNode,"keyup",t.hitch(this,"_onKeyUp")))},_onKeyDown:function(e){"text"!==e.target.type&&this.peerNode.dispatchPeerEvent("keyDown",this.peerNode,this._makeKeyEvent(e))},_onKeyUp:function(e){"text"!==e.target.type&&this.peerNode.dispatchPeerEvent("keyUp",this.peerNode,this._makeKeyEvent(e))},_makeKeyEvent:function(e){var t=(e.code?this.CODE_KEY_CODE_MAP[e.code]:this.KEY_CODE_MAP[e.keyCode])||e.keyCode;return{altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,key:e.key,keyCode:t,keyChar:e.key&&1===e.key.length?e.key:String.fromCharCode(t),timestamp:Date.now()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(242),i(213),i(210),i(217),i(206),i(215),i(407),i(1247),i(1653)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([l],{peerNode:null,defaultProperties:{renderer:{type:"default"},rowHeight:18,dataModel:null,visibility:!0},position:{width:0,height:0},paddingViewRows:10,toleranceViewRows:5,paddingPagedRows:80,tolerancePagedRows:40,pagedDataUpdateDelay:100,leftSpaceWidth:0,viewData:[],oldViewData:[],rowView:{start:0,end:0},oldRowView:{start:0,end:0},pagedDataRows:{start:0,end:0,changed:!1},pagedDataCols:{start:0,end:1,changed:!1},cellTypes:u,constructor:function(e){e=e||{},this.peerNode=e.peerNode,e.id="mgg_"+e.peerNode.getId(),this.styleManager=new d.StyleManager("#"+e.id),this.own(this.styleManager)},postCreate:function(){this.inherited(arguments),this.domNode.id=this.id,c.setClassName(this.domNode,{type:this.peerNode.getType(),name:this.peerNode.getProperty("name")}),i.mixin(this,this.defaultProperties);var e,t=i.delegate(this.defaultProperties,this.peerNode.getProperties());for(e in t)"function"!=typeof t[e]&&this._onPropertySet({target:this.peerNode,data:{key:e,oldValue:null,newValue:t[e]}});this.peerNode.addEventListener("propertySet",this._onPropertySet,this),this.own(s(this.dataScrollerNode,"scroll",i.hitch(this,"_onDataScroll")))},startup:function(){this.inherited(arguments),this.position||(this.position=a.position(this.domNode),this._renderViewData(!0))},resize:function(){this._noAutoSizing||(this.position=a.position(this.domNode),this._renderViewData(!0))},destroyRecursive:function(){this.peerNode.removeEventListener("propertySet",this._onPropertySet,this),this.inherited(arguments)},scrollToRow:function(e){e=Math.max(0,Math.min(e,this.dataModel.getRowCount()));var t=a.position(this.dataScrollerNode).h/2;this.dataScrollerNode.scrollTop=Math.max(0,(e+.5)*this.rowHeight-t)},getRowSelector:function(e){return"#"+this.id+" .dataBody .row:nth-child("+(e-this.rowView.start+2)+")"},_onPropertySet:function(e){var t=e.data.key;this[t]=e.data.newValue;var i="_on"+(t.charAt(0).toUpperCase()+t.substring(1,t.length))+"Set";this[i]&&void 0!==e.data.newValue&&null!==e.data.newValue&&this[i](e.data.newValue,e.data.oldValue)},_onPositionSet:function(e){o.set(this.domNode,{position:"absolute",left:e.x+"px",top:e.y+"px",width:e.width+"px",height:e.height+"px"}),this._noAutoSizing=!0,this._updateDataStyles()},_onBackgroundSet:function(){o.set(this.domNode,{backgroundColor:"rgb("+this.background.join(", ")+")"})},_onBorderTypeSet:function(){this._updateBorderStyles()},_onBorderWidthSet:function(){this._updateBorderStyles()},_onBorderColorSet:function(){this._updateBorderStyles()},_updateBorderStyles:function(){if("LineBorder"===this.borderType){var e={};if(this.borderColor){var t=this.borderColor.map((function(e){return Math.floor(255*e)}));e.borderColor="rgb("+t.join(",")+")"}this.borderWidth&&(e.borderWidth=this.borderWidth+"px",e.borderStyle="solid"),o.set(this.domNode,e)}},_onVisibilitySet:function(){o.set(this.domNode,{display:this.visibility?"":"none"})},_onRendererSet:function(){this._renderViewData(!0)},_onRowHeightSet:function(){this.rowHeight&&this.rowHeight<12&&(this.rowHeight=12),this._updateDataStyles()},_onDataModelSet:function(){!this.oldPagedDataRows&&this.dataModel&&(this.oldPagedDataRows={start:this.dataModel.getCurrentStartRow(),end:this.dataModel.getCurrentEndRow()}),!this.oldPagedDataCols&&this.dataModel&&(this.oldPagedDataCols={start:this.dataModel.getCurrentStartCol(),end:this.dataModel.getCurrentEndCol()}),this._renderViewData(!0)},_onDataScroll:function(){this._renderViewData()},_renderViewData:function(e){if(this.dataModel&&this.position){if(this._updatePagedData(),!e&&this.dataModel===this.oldDataModel&&!this.rowView.changed)return;this._onViewRangeUpdated();var t=this.dataModel.getPartialData().slice(this.rowView.start-this.dataModel.getCurrentStartRow(),this.rowView.end-this.dataModel.getCurrentStartRow()),i=this;this._incrementalUpdateNode({node:this.dataNode,data:t,oldData:this.oldViewData,start:this.rowView.start,end:this.rowView.end,oldStart:this.oldRowView.start,oldEnd:this.oldRowView.end,update:function(e,t,n){i._updateCell(e,i,t,n)},create:function(e){var t=i._renderCell(i,e);return t.setAttribute("class","row cell"),t}}),this.oldRowView=this.rowView,this.oldViewData=t,this.oldDataModel=this.dataModel}this._updateDataStyles()},_renderCell:function(e,t){var i=document.createElement("div");i.setAttribute("class","cell");var n=this._getCellType(e),o=this.cellTypes[n.type].create(n,t);return i.appendChild(o),this.cellTypes[n.type].startup&&this.cellTypes[n.type].startup(o,e,t,i),i},_updateCell:function(e,t,i,n){var o,r=this._getCellType(t);if(this.cellTypes[r.type].update){var a=e.firstChild;(o=this.cellTypes[r.type].update(a,r,i))&&o!==a&&e.replaceChild(o,a)}else(o=this.cellTypes[r.type].create(r,i))!==e.firstChild&&e.replaceChild(o,e.firstChild);this.cellTypes[r.type].startup&&this.cellTypes[r.type].startup(o,t,i,n)},_getCellType:function(e){var t;return!e||!e.renderer||"label"!==e.renderer.type||e.editor&&"text"===e.editor.type?e&&e.renderer&&e.editor&&e.renderer.type===e.editor.type||e&&e.renderer&&"cell"===e.renderer.type?t=e.renderer:e&&e.editor&&e.editor.type&&"default"!==e.editor.type&&this.cellTypes[e.editor.type]?t=e.editor:e&&e.renderer&&e.renderer.type&&this.cellTypes[e.renderer.type]?(t=i.clone(e.renderer)).enabled=e.editable&&t.enabled:t={type:"default"}:t=e.renderer,t},_getCellFromNode:function(e){for(var t,i=-1;(!e.getAttribute("class")||e.getAttribute("class").indexOf("cell")<0)&&e!==this.dataScrollerNode;)e=e.parentNode;if(e.getAttribute("class")&&e.getAttribute("class").indexOf("cell")>=0)for(t=e,i=this.rowView.start-1;e.previousElementSibling;)i+=1,e=e.previousElementSibling;return{node:t,row:i}},_onViewRangeUpdated:function(){},_updatePagedData:function(){var e=Math.floor(this._getScrollTop()/this.rowHeight),t=Math.floor(this.position.height/this.rowHeight);this.rowView=this._updateArrayBounds(e,e+t,this.dataModel.getCurrentStartRow(),this.dataModel.getCurrentEndRow(),this.paddingViewRows,this.toleranceViewRows,this.oldRowView),this.pagedDataRows=this._updateArrayBounds(e,e+t,0,this.dataModel.getRowCount(),this.paddingPagedRows,this.tolerancePagedRows,{start:this.dataModel.getCurrentStartRow(),end:this.dataModel.getCurrentEndRow()}),this._updateLoadingIndicator(),this._doPagedDataUpdate()},_getScrollTop:function(){return this.dataScrollerNode.scrollTop},_updateLoadingIndicator:function(){var e=(this.pagedDataRows.changed||this.pagedDataCols.changed)&&(this.pagedDataRows.start!==this.dataModel.getCurrentStartRow()||this.pagedDataRows.end!==this.dataModel.getCurrentEndRow()||this.pagedDataCols.start!==this.dataModel.getCurrentStartCol()||this.pagedDataCols.end!==this.dataModel.getCurrentEndCol());r.toggle(this.domNode,"dataLoading",e)},_doPagedDataUpdate:function(){if((this.pagedDataRows.changed||this.pagedDataCols.changed)&&!this._requestUpdateTimeout){var e=this,t=function(){e.oldPagedDataRows=e.pagedDataRows,e.oldPagedDataCols=e.pagedDataCols,e._requestUpdateTimeout=null,e.dataModel.updatePartialData(e.pagedDataRows.start,e.pagedDataRows.end,e.pagedDataCols.start,e.pagedDataCols.end)};0===this.pagedDataUpdateDelay?t():this._requestUpdateTimeout=setTimeout(t,this.pagedDataUpdateDelay)}},_updateArrayBounds:function(e,t,i,n,o,r,a){var s=Math.max(e-o,i),l=Math.max(s,Math.min(t+o,n)),c=s===i&&s!==a.start||l===n&&l!==a.end||Math.abs(s-a.start)>r||Math.abs(l-a.end)>r;return{start:c?s:a.start,end:c?l:a.end,changed:c}},_updateDataStyles:function(){if(this.dataModel&&this.rowHeight){var e=this.rowView.start*this.rowHeight;this.styleManager.updateStyleRules("spacerTop",{".body .spacer.topSpacer":"height: "+e+"px;"}),this.styleManager.updateStyleRules("dataHeight",{".spacer.dataHeight":"height: "+this.dataModel.getRowCount()*this.rowHeight+"px;",".row":"height: "+this.rowHeight+"px;"}),this._updateColumnStyles()}},_updateColumnStyles:function(){var e=this._getCellType(this);this.styleManager.updateStyleRules("columns",{".dataColumn .cell":this._getColumnStyles(e)})},_getColumnStyles:function(e){return this.cellTypes[e.type].getColumnStyles?this.cellTypes[e.type].getColumnStyles(e):""},_incrementalUpdateNode:function(e){for(var t,i=e.node.firstElementChild,n=e.start,o=e.oldStart;null!==i.nextElementSibling&&(n<e.end||o<e.oldEnd);)i=i.nextElementSibling,o===n&&o<e.oldEnd&&n<e.end?(e.update(i,e.data[n-e.start],e.oldData[o-e.oldStart],n),o+=1,n+=1):(n<o||n>=e.oldEnd)&&n<e.end?(t=e.create(e.data[n-e.start],n),e.node.insertBefore(t,i),i=t,n+=1):o<e.oldEnd&&(t=i.previousElementSibling,e.destroy&&e.destroy(i,o),e.node.removeChild(i),i=t,o+=1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(206)],o=i.dj.d(n,(function(e,t,i,n){var o=window;return e([],{constructor:function(){this.defaultProperties=i.delegate(this.defaultProperties,{selectionType:"row",selectionMode:"none",selectedIndices:[]})},postCreate:function(){this.inherited(arguments),this.own(n(this.dataScrollerNode,"mousedown",i.hitch(this,"_onDataMouseDown"))),this.own(n(this.dataScrollerNode,"click",i.hitch(this,"_onDataClick"))),this.own(n(this.dataScrollerNode,"dblclick",i.hitch(this,"_onDataDoubleClick"))),this.own(n(this.dataScrollerNode,"contextmenu",i.hitch(this,"_onRightClick")))},selectCell:function(e,t){var n=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":n.push([e,t]);break;case"row":n.push(e);break;case"column":n.push(t)}this.peerNode.setProperty("selectedIndices",n)},deselectCell:function(e,t){var n=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":n=n.filter((function(i){return i[0]!==e||i[1]!==t}));break;case"row":n=n.filter((function(t){return t!==e}));break;case"column":n=n.filter((function(e){return e!==t}))}this.peerNode.setProperty("selectedIndices",n)},selectRow:function(e){var t,n=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":for(t=0;t<this.dataModel.getColumnCount();t+=1)n.push([e,t]);break;case"row":n.push(e)}this.peerNode.setProperty("selectedIndices",n)},deselectRow:function(e){var t=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":t=t.filter((function(t){return t[0]!==e}));break;case"row":t=t.filter((function(t){return t!==e}))}this.peerNode.setProperty("selectedIndices",t)},selectColumn:function(e){var t,n=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":for(t=0;t<this.dataModel.getRowCount();t+=1)n.push([t,e]);break;case"column":n.push(e)}this.peerNode.setProperty("selectedIndices",n)},deselectColumn:function(e){var t=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":t=t.filter((function(t){return t[1]!==e}));break;case"column":t=t.filter((function(t){return t!==e}))}this.peerNode.setProperty("selectedIndices",t)},isCellSelected:function(e,t){switch(this.selectionType){case"cell":return this.selectedIndices.some((function(i){return i[0]===e&&i[1]===t}));case"row":return this.selectedIndices.some((function(t){return t===e}));case"column":return this.selectedIndices.some((function(e){return e===t}));default:return!1}},isRowSelected:function(e){function t(t){return function(i){return i[0]===e&&i[1]===t}}switch(this.selectionType){case"cell":var i,n=e<this.dataModel.getRowCount();for(i=0;i<this.dataModel.getColumnCount();i+=1)n=n&&this.selectedIndices.some(t(i));return n;case"row":return this.selectedIndices.some((function(t){return t===e}));default:return!1}},isColumnSelected:function(e){function t(t){return function(i){return i[0]===t&&i[1]===e}}switch(this.selectionType){case"cell":var i,n=e<this.dataModel.getColumnCount();for(i=0;i<this.dataModel.getRowCount();i+=1)n=n&&this.selectedIndices.some(t(i));return n;case"row":return this.selectedIndices.some((function(e){return e===i}));default:return!1}},_onRightClick:function(e){o.contextMenuPosition={x:e.pageX,y:e.pageY};var i=this._getCellFromNode(e.target);i.row>=0&&i.column>=0?(t.stop(e),this.peerNode.dispatchPeerEvent("contextMenu",this.peerNode,{row:i.row,column:i.column})):(t.stop(e),this.peerNode.dispatchPeerEvent("contextMenu",this.peerNode,{}))},_onDataDoubleClick:function(e){var i=this._getCellFromNode(e.target);i.row>=0&&(t.stop(e),this.peerNode.dispatchPeerEvent("doubleClick",this.peerNode,{row:i.row,column:i.column}))},_onSelectionTypeSet:function(){this._renderSelection()},_onSelectionModeSet:function(){this._renderSelection()},_onSelectedIndicesSet:function(){this._renderSelection()},_onViewRangeUpdated:function(){this.inherited(arguments),this._renderSelection()},_onDataClick:function(e){var t=e.target;if(document.getSelection().rangeCount>0){for(t=document.getSelection().getRangeAt(0).commonAncestorContainer;t.parentNode&&(!t.getAttribute||"cell"!==t.getAttribute("class"));)t=t.parentNode;t&&t.getAttribute&&"cell"===t.getAttribute("class")||document.getSelection().removeAllRanges()}if("none"===this.selectionType){var i=this._getCellFromNode(e.target);i.row>=0&&i.column>=0&&this.peerNode.dispatchPeerEvent("click",this.peerNode,{row:i.row,column:i.column})}},_onDataMouseDown:function(e){var t,n,o,r,a,s=this._getCellFromNode(e.target);if(!(s.row<0||s.column<0)){var l=s.row,c=s.column,d=[];if("extended"===this.selectionMode&&(e.ctrlKey||e.metaKey||e.shiftKey)&&(d=i.clone(this.selectedIndices)).length>0&&(("row"!==this.selectionType&&"column"!==this.selectionType||"number"==typeof d[0])&&("cell"!==this.selectionType||i.isArray(d[0]))||(d=[])),"none"!==this.selectionType&&"none"!==this.selectionMode)if("cell"===this.selectionType)if(e.shiftKey&&d.length>0){for(t=d[d.length-1],d=[],n=l;n<=t[0];n+=1){for(o=c;o<=t[1];o+=1)d.push([n,o]);for(o=c;o>=t[1];o-=1)d.push([n,o])}for(n=l;n>=t[0];n-=1){for(o=c;o<=t[1];o+=1)d.push([n,o]);for(o=c;o>=t[1];o-=1)d.push([n,o])}}else e.ctrlKey||e.metaKey?(a=d.filter((function(e){return e[0]!==l||e[1]!==c}))).length===d.length?d.push([l,c]):d=a:d.push([l,c]);else if(r="row"===this.selectionType?l:c,e.shiftKey&&d.length>0){for(t=d[d.length-1],d=[],n=r;n<=t;n+=1)d.push(n);for(n=r;n>=t;n-=1)d.push(n)}else(e.ctrlKey||e.metaKey)&&(n=d.indexOf(r))>=0?d.splice(n,1):d.push(r);this.peerNode.setProperty("selectedIndices",d)}},_renderSelection:function(){var e={},t="background-color: rgb(173, 206, 255);";"none"!==this.selectionMode&&("row"===this.selectionType?this.selectedIndices.forEach((function(i){i>=this.rowView.start&&i<this.rowView.end&&(e[".dataBody .row:nth-child("+(i-this.rowView.start+2)+")"]=t)}),this):"column"===this.selectionType?this.selectedIndices.forEach((function(i){i>=this.colView.start&&i<this.colView.end&&(e[".dataBody .row .cell:nth-child("+(i-this.colView.start+2)+")"]=t)}),this):"cell"===this.selectionType&&this.selectedIndices.forEach((function(i){i[0]>=this.rowView.start&&i[0]<this.rowView.end&&i[1]>=this.colView.start&&i[1]<this.colView.end&&(e[".dataBody .row:nth-child("+(i[0]-this.rowView.start+2)+") .cell:nth-child("+(i[1]-this.colView.start+2)+")"]=t)}),this)),this.styleManager.updateStyleRules("selection",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(211),i(221),i(1480),i(1247),i(1655),i(2659),i(861)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([l,s,a],{_createOrUpdateIcon:function(){},_createButtonWidget:function(e,t){var i;return i=new o({checked:e.selected||!1,disabled:!e.enabled,name:"checkBox_"+e.id,id:"MW_mgg_checkBox_"+e.id,onChange:function(){t.registerHandlerService().getHandler("CheckBox").setProperties(e.id,{selected:!!i.get("checked")})}}),this._styleManager=r.StyleManager("#mgg_"+e.id),this.own(this._styleManager),i},_updateButton:function(e){this.inherited(arguments);var n={};if(this.button.label&&(i.destroy(this.button.label),delete this.button.label),e.icons&&e.icons.icon instanceof Image){if(this.button.label=i.create("label",{for:this.button.id,class:"mgg_checkbox_style"},this.button.domNode),n[".dijitCheckBox input"]="display: none;",n[".dijitCheckBox input + label"]="display: inline-block; width: 100% !important; height: 100%; vertical-align: top; background: url("+e.icons.icon.src+");",n[".dijitCheckBox"]="width: "+e.icons.icon.width+"px; height: "+e.icons.icon.height+"px;",0===e.icons.icon.width||0===e.icons.icon.height){var o=this;e.icons.icon.onload=function(){o.update()}}e.icons.selected instanceof Image&&(n[".dijitCheckBox input:checked + label"]="background: url("+e.icons.selected.src+");"),t.set(this.button.domNode,{"background-image":"none"})}this._styleManager.updateStyleRules("icon",n)},_getStyle:function(e){var t=this.inherited(arguments);return(n("ie")||n("trident")||n("edge"))&&delete t.width,"splitter_control"===e.name&&delete t.pointerEvents,t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(211),i(761)],o=i.dj.d(n,(function(e,t,i,n){return e([],{destroyRecursive:function(){this.inherited(arguments)},_createButton:function(e,o){this.inherited(arguments),this._centeringHelper=i.create("span",{class:"iconCenteringHelper"},this.domNode,"first"),this.label=i.create("label",{for:this.button.id,class:"mgg_button_label"},this.domNode),this.label.appendChild(document.createTextNode(e.text||"")),this._lastLabelText=e.text||"",this.connect(this.label,"onclick",this.button.onClick);var r=n.getTextStyle(e);t.set(this.label,r)},_updateButton:function(e){this.inherited(arguments),this._lastLabelText!==e.text&&(this.label.replaceChild(document.createTextNode(e.text||""),this.label.firstChild),this._lastLabelText=e.text||"");var i=n.getTextStyle(e);t.set(this.label,i)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(2661),i(595),i(8649),i(8650),i(8651),i(8652),i(8653),i(8655),i(8656),i(8657),i(2663),i(212),i(486)],o=i.dj.d(n,(function(e,t,i,n,o,l,c,d,u,h,p,f,g){var m=function(e){var t=new f;setTimeout((function(){return e(t.resolve,t.reject)}),0),this.then=t.promise.then};return function(){function _(i){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,_);var r={deprecated:{module:"mw-tabular-data-model"},removalVersion:"R2022a",replacement:{module:"mw-data-model"},geckNumber:2448344,deprecationLevel:g.WARN};g.deprecated(r),this._on=new e,this._listeners=[],this._metaDataRules=new h,this._dataSave=o.dataSave||{},this._dataSize=t.range(),this.replaceAll(i,o),this._filtering=!1,this._searching=!1,this._listeners.push(this._metaDataRules.on("metaDataChanged",(function(e){for(var i=[],o=[],r=0;r<e.rangeList.length;r+=1){var a=e.rangeList[r];if(t.isRowRange(a)){var s=a.setColumns(0,0);o.push(s)}if(t.isColumnRange(a)){var l=a.setRows(0,0);i.push(l)}}i.length>0&&n._emitPagedColumnMetaDataChanged(i),o.length>0&&n._emitPagedRowMetaDataChanged(o),n._dataChanged(e.rangeList)})))}return r(_,[{key:"addMetaDataRule",value:function(e,t){this._metaDataRules.add(e,t)}},{key:"removeMetaDataRule",value:function(e){this._metaDataRules.remove(e)}},{key:"createMetaDataRule",value:function(e,t){return p.create(e,t)}},{key:"managePaging",value:function(e){}},{key:"_addRowLabelRules",value:function(e){var i=this,n=t.range().setColumns(0,1/0).setRows(0,1/0),o=this.createMetaDataRule.bind(this)({row:function(e){var t=i.getLocalCellData(e.rowIndex,i._rowLabelIndex);return{label:t?t.value:void 0}}},{type:"rangeList",value:[n]});this._metaDataRules.addBuiltIn("$setRowLabels",o)}},{key:"_updateDataSize",value:function(){var e=_._calcTableSize(this._data,this._defaultColumnCount);e.rows.count===this._dataSize.rows.count&&e.columns.count===this._dataSize.columns.count||(this._dataSize=e,this._on.emit("dataSizeChanged",{dataSize:e}))}},{key:"getLocalCellData",value:function(e,t){var i=this._data[e];if(i)return i[t]}},{key:"getLocalRowMetaData",value:function(e){var t=this._gatherRowForMetaData(e),i=void 0,n=null;if(void 0!==t){try{i=this._getId(t)}catch(e){}n={id:i}}var o=this._metaDataRules.getRowMetaData({rowIndex:e,dynamic:n});return o.id=i,o}},{key:"getLocalColumnMetaData",value:function(e){return this._metaDataRules.getColumnMetaData({columnIndex:e,dynamic:{}})}},{key:"updateColumnHeader",value:function(e){var t=e.id,i=e.value;return this._headers.updateHeader({id:t,value:i}),new m((function(e){setTimeout(e,0)}))}},{key:"updateRowHeader",value:function(e,i){var n=this,o=e.rowIndex,r=i.value;return new m((function(e,i){try{var a=t.range().setRows(o,o).setColumns(n._rowLabelIndex,n._rowLabelIndex);e(n.update(a,[[{value:r}]]))}catch(e){i(e)}}))}},{key:"getLocalColumnSpanningMetaData",value:function(e){return{value:this._headers.getHeaderHierarchy(e)}}},{key:"getLocalCellMetaData",value:function(e,t){var i=this.getLocalCellData(e,t),n=null;if(void 0!==i){var o=this._gatherRowForMetaData(e);n={id:this._getId(o),value:i}}return this._metaDataRules.getCellMetaData({rowIndex:e,columnIndex:t,dynamic:n})}},{key:"_emitPagedColumnMetaDataChanged",value:function(e){this._on.emit("pagedColumnMetaDataChanged",{rangeList:e})}},{key:"_emitPagedRowMetaDataChanged",value:function(e){this._on.emit("pagedRowMetaDataChanged",{rangeList:e})}},{key:"getIndex",value:function(e){var t=this;return new m((function(i,n){for(var o=0;o<t._data.length;o+=1){var r=t._gatherRowForMetaData(o);e.id===t._getId(r)&&i({index:o})}i({index:null})}))}},{key:"getData",value:function(e){var i=this,n=e.slice();return new m((function(e,o){var r=[];n.forEach((function(e,n){if(e.columns.end===1/0&&(e=e.setColumns(e.columns.start,i.dataSize.columns.end)),e.rows.end===1/0&&(e=e.setRows(e.rows.start,i.dataSize.rows.end)),t.isRangeInside(i.dataSize,e)){var a=e.rows.start,s=e.rows.end,l=e.columns.start,c=e.columns.end,d=i._getCellBlock(a,s,l,c);d.range=e,r[n]=d}else o(new Error("Range exceeds data size"))})),e(r)}))}},{key:"_gatherRowForMetaData",value:function(e){for(var t=[],i=0;i<this._metaDataColumns.length;i+=1){var n=this._metaDataColumns[i];t[n]=this.getLocalCellData(e,n)}return t}},{key:"_getCellBlock",value:function(e,t,i,n){for(var o=[],r=e;r<=t;r+=1){for(var a=[],s=i;s<=n;s+=1)a[s]=this.getLocalCellData(r,s);o[r]=a}return o}},{key:"add",value:function(e,t){if(this._filtering)throw new Error("Data cannot be added in filter mode. Clear filter before adding data.");var i={};if(e.rows.start===e.rows.end&&0===e.columns.start&&e.columns.end===1/0){if(e.rows.start>this._dataSize.rows.count||e.rows.start<0)throw new Error("Index "+e.rows.start+" is out of range for add");for(var n=0;n<t.length;n+=1)if(t[n].length!==this._dataSize.columns.count)throw new Error("data["+n+"] needs to contain "+this._dataSize.columns.count+" columns of data for add");i.addOrRemoveRows=!0}else{if(e.columns.start!==e.columns.end||0!==e.rows.start||e.rows.end!==1/0)throw new Error("Could not determine add type for given range");if(e.columns.start>this._dataSize.columns.count||e.columns.start<0)throw new Error("Index "+e.columns.start+" is out of range for add");var o=null;if(t.length!==this._dataSize.rows.count&&this._dataSize.rows.count>0)throw new Error("data needs to contain "+this._dataSize.rows.count+" rows of data for add");for(var r=0;r<t.length;r+=1)if(null===o)o=t[r].length;else if(o!==t[r].length)throw new Error("The data["+r+"] needs to contain the same number of columns ("+o+") as the first row for add");i.addOrRemoveColumns=!0}var a={range:e,data:t};return this._doSaveOperation(this._dataSave.beforeAdd,this._add,a,i)}},{key:"_add",value:function(e){var i,n=e.range,o=e.data,r=e.addOrRemoveRows,s=e.addOrRemoveColumns,l=void 0;if(r)(i=this._data).splice.apply(i,[n.rows.start,0].concat(a(o))),l=t.range().setRows(n.rows.start,1/0).setColumns(0,1/0);else if(s){for(var c=0;c<o.length;c+=1){var d=this._data[c];d?d.splice.apply(d,[n.columns.start,0].concat(a(o[c]))):this._data[c]=o[c]}l=t.range().setRows(0,1/0).setColumns(n.columns.start,1/0)}this._updateDataSize(),this._dataChanged([l])}},{key:"_doSaveOperation",value:function(e,t,i,n){var o=this,r=void 0;if(e)r=e.call(this,i);else{var a=new f;a.resolve({}),r=a.promise}return r.then((function(e){try{Object.assign(i,n),t.call(o,i)}catch(e){throw e.reason=l[e.reason]||l.ERROR_UNKNOWN,e.custom=e.custom||{},e.success=!1,e}return{message:e.message||"",reason:"",custom:e.custom||{},success:!0}}),(function(e){var t=new Error(e.message||"");throw t.reason=l[e.reason]||l.ERROR_UNKNOWN,t.custom=e.custom||{},t.success=!1,t}))}},{key:"update",value:function(e,i){if(e.rows.count!==i.length)throw new Error("Range rows count "+e.rows.count+" does not match data.length for update");if(!t.isRangeInside(this.dataSize,e))throw new Error("Range exceeds dataSize for update");for(var n=0;n<i.length;n+=1)if(i[n].length!==e.columns.count)throw new Error("data["+n+"] needs to contain "+e.columns.count+" columns of data for update");var o={range:e,data:i};return this._doSaveOperation(this._dataSave.beforeUpdate,this._update,o)}},{key:"_update",value:function(e){for(var t=e.range,i=e.data,n=0,o=t.rows.start;o<=t.rows.end;o+=1){var r=this._data[o];r.splice.apply(r,[t.columns.start,t.columns.count].concat(a(i[n]))),n+=1}this._dataChanged([t]),this._filtering&&this.filter(this._filter.getFilterCriteria())}},{key:"remove",value:function(e){if(this._filtering)throw new Error("Data cannot be removed in filter mode. Clear filter before deleting data.");var t={};if(0===e.columns.start&&e.columns.end===1/0){if(e.rows.start>=this._dataSize.rows.count||e.rows.start<0)throw new Error("Index "+e.rows.start+" is out of range for remove");t.addOrRemoveRows=!0}else{if(0!==e.rows.start||e.rows.end!==1/0)throw new Error("Could not determine remove type for given range");if(t.addOrRemoveColumns=!0,e.columns.start>=this._dataSize.columns.count||e.columns.start<0)throw new Error("Index "+e.columns.start+" is out of range for remove")}var i={range:e};return this._doSaveOperation(this._dataSave.beforeRemove,this._remove,i,t)}},{key:"_remove",value:function(e){var i=e.range,n=e.addOrRemoveRows,o=e.addOrRemoveColumns,r=void 0;if(n)this._data.splice(i.rows.start,i.rows.count),r=t.range().setRows(i.rows.start,1/0).setColumns(0,1/0);else if(o){for(var a=0;a<this._dataSize.rows.count;a+=1)this._data[a].splice(i.columns.start,i.columns.count);r=t.range().setRows(0,1/0).setColumns(i.columns.start,1/0)}this._updateDataSize(),this._dataChanged([r])}},{key:"replaceAll",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._data=e||[],this._defaultColumnCount=n.defaultColumnCount,0!==this._defaultColumnCount&&!(this._defaultColumnCount>0)&&this._data.length>0&&(this._defaultColumnCount=this._data[0].length||0),this._metaDataColumns=n.metaDataColumns||this._metaDataColumns||[],n.getId){if(0===this._metaDataColumns.length)throw new Error("Must specify at least one column to derive the value of getId");this._getId=n.getId}else this._getId||(this._getId=function(){});n.rowLabelIndex&&n.rowLabelIndex>=0&&(this._rowLabelIndex=n.rowLabelIndex,this._metaDataColumns.push(this._rowLabelIndex),this._addRowLabelRules(n)),this._metaDataRanges=i.columnArray(this._metaDataColumns),this._updateDataSize(),this._dataChanged([t.range().setRows(0,1/0).setColumns(0,1/0)]),this._filtering&&(this._filter.setUnfilteredData(this._data),this._filter.filter())}},{key:"sort",value:function(e){if(e&&e.length&&!(this.dataSize.rows.count<2)){for(var i=[],n=0;n<e.length;n+=1){var o=e[n];this._validateSortOption(o),i.push(this._generateCompareFunction(o))}var r=function(e,t){for(var n=0;n<i.length;n+=1){var o=i[n](e,t);if(0!==o)return o}return 0};if(this._data.sort(r),this._filtering){var a=this._filter.getUnfilteredData();a.sort(r),this._filter.setUnfilteredData(a)}this._dataChanged([t.range().setRows(0,1/0).setColumns(0,1/0)])}}},{key:"_validateSortOption",value:function(e){if(e.columnIndex<this.dataSize.columns.start||e.columnIndex>this.dataSize.columns.end)throw new Error("columnIndex is out of bounds");if(!o.order[e.order])throw new Error("A valid sort order must be specified");if(!o.compare[e.compare]&&!n[e.compare])throw new Error("A valid compare type must be specified")}},{key:"_generateCompareFunction",value:function(e){var t=1;e.order===o.order.DESC&&(t=-1);var i=n[e.compare];return function(n,o){var r=n[e.columnIndex],a=o[e.columnIndex];return i(r,a)*t}}},{key:"registerSortType",value:function(e){var t=e.name,i=e.compareFn;if(!t||"string"!=typeof t||!i||"function"!=typeof i)throw new Error("A valid compare type name and comparator function must be specified");if(-1!==t.indexOf("."))throw new Error("The name of sort type cannot contain a period.");if(o.compare[t])throw new Error(t+" is already a built-in sort type. Please provide a unique name.");return n[t]=i,t}},{key:"_dataChanged",value:function(e){this._on.emit("dataChanged",{rangeList:e}),t.doesRangeListIntersect(e,this._metaDataRanges)&&this._emitPagedRowMetaDataChanged(e.map((function(e){return e.setColumns(0,0)})))}},{key:"filter",value:function(e){return this._filtering&&(this._data=this._filter.getUnfilteredData()),this._filtering=!0,this._filter=new c(e,{data:this._data}),this._filter.filter(),this._data=this._filter.getFilteredData(),this._dataChanged([t.range().setRows(0,1/0).setColumns(0,1/0)]),this._updateDataSize(),new m((function(e){setTimeout(e,0)}))}},{key:"search",value:function(e){if(this._search=new d(e,this.createMetaDataRule),this._search.isCriteriaValid()){var t=this._search.createRule();this._addSearchResults(t),this._searching=!0}}},{key:"clearFilter",value:function(){return this._filtering&&(this._data=this._filter.getUnfilteredData(),this._dataChanged([t.range().setRows(0,1/0).setColumns(0,1/0)]),this._updateDataSize(),this._filtering=!1),new m((function(e){setTimeout(e,0)}))}},{key:"clearSearch",value:function(){this._searching&&(this._removeSearchResults(),this._searching=!1)}},{key:"__setHeaders",value:function(e){this._headers?this._headers.setHeaders(e):this._headers=new u(e)}},{key:"__getHeaders",value:function(){return this._headers.getHeaders()}},{key:"__setSpanningHeaders",value:function(e){this._headers&&this._headers.setSpanningHeaders(e)}},{key:"__getSpanningHeaders",value:function(){return this._headers.getSpanningHeaders()}},{key:"_addSearchResults",value:function(e){this._metaDataRules.addBuiltIn("$Search",e)}},{key:"_removeSearchResults",value:function(){this._metaDataRules.removeBuiltIn("$Search")}},{key:"destroy",value:function(){for(var e=0;e<this._listeners.length;e+=1)this._listeners[e].remove()}},{key:"on",value:function(e,t){return this._on.on(e,t)}},{key:"dataSize",get:function(){return this._dataSize}}],[{key:"_calcTableSize",value:function(e,i){var n=function(e){return e?{start:0,end:e.length-1}:{start:0,end:-1}},o=t.range(),r=n(e);return r=(o=o.setRows(r.start,r.end)).rows.count>0?n(e[0]):n({length:i||0}),o=o.setColumns(r.start,r.end)}}]),_}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._events={}}return r(e,[{key:"on",value:function(e,t){var i=this;this._events[e]||(this._events[e]=[]),this._events[e].push(t);var n={remove:function(){var o=i._events[e].indexOf(t);i._events[e].splice(o,1),n.remove=function(){return null}}};return n}},{key:"emit",value:function(e,t){var i=this._events[e],n=Object.getOwnPropertyNames(t),o={};o.eventName=e,n.forEach((function(e){o[e]=t[e]}));var r;(r=i)&&r.forEach((function(e){e(o)}))}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(8654)],o=i.dj.d(n,(function(e){var t=function(t,i,n){var o=!1;switch(n){case e.EQUAL:o=t===i;break;case e.NOT_EQUAL:o=t!==i;break;case e.GREATER_THAN:o=t>i;break;case e.GREATER_THAN_EQUAL_TO:o=t>=i;break;case e.LESS_THAN:o=t<i;break;case e.LESS_THAN_EQUAL_TO:o=t<=i}return o},i=function(i,n,r){var a=x(r),s=m(r);if(a===e.FUNCTION){var c=!1,d=_(r);if(p(d))try{c=d(i,n)}catch(e){c=!1}return c}if(s===e.NUMBER)return function(e,i,n){var o=e,r=i;return"string"==typeof e&&(o=Number(e)),"string"==typeof i&&(r=Number(i)),t(o,r,n)}(i,n,a);if(s===e.BOOLEAN)return function(e,i,n){var o=Boolean(e),r=Boolean(i);return t(o,r,n)}(i,n,a);if(s===e.STRING){var u=l(r),h=o(i,n,u);return t(h.cellString,h.findString,a)}return!1},n=function(e){return""===e},o=function(e,t,i){var n=e.toString(),o=t.toString();return i||(n=n.toLowerCase(),o=o.toLowerCase()),{cellString:n,findString:o}},a=function(e,t,i){var n=o(e,t,i);return n.cellString.startsWith(n.findString)},s=function(e,t,i){var n=o(e,t,i);return n.cellString.endsWith(n.findString)},l=function(t){var i=t[e.COMPARE_PROPERTY];return i&&i.hasOwnProperty(e.CASE_SENSITIVE)?i[e.CASE_SENSITIVE]:e.DEFAULT_CASE_SENSITIVE},c=function(t){var i=!1;return t!==e.STARTS_WITH&&t!==e.ENDS_WITH&&t!==e.CONTAINS||(i=!0),i},d=function(e){var t=!0;return null==e&&(t=!1),t},u=function(t){var i=!0;switch(t){case e.CONTAINS:case e.STARTS_WITH:case e.ENDS_WITH:case e.EQUAL:case e.NOT_EQUAL:case e.GREATER_THAN:case e.GREATER_THAN_EQUAL_TO:case e.LESS_THAN:case e.LESS_THAN_EQUAL_TO:case e.FUNCTION:break;default:i=!1}return i},h=function(e){var t=!0;return"string"!==e&&"number"!==e&&"boolean"!==e&&(t=!1),t},p=function(e){var t=!0;return e||(t=!1),e&&"function"!=typeof e&&(t=!1),t},f=function(t){var i=!0,n=t?t[e.COMPARE_PROPERTY]:null;if(n){var o=n[e.COMPARE_TYPE];o&&!u(o)&&(i=!1);var r=n[e.DATA_TYPE];r&&!h(r)&&(i=!1);var a=n[e.PARAM];o&&o===e.FUNCTION&&!p(a)&&(i=!1);var s=n[e.CASE_SENSITIVE];s&&"boolean"!=typeof s&&(i=!1)}return i},g=function(e){var t=!1;return e&&(e.and||e.or||e.exclude)&&(t=!0),t},m=function(t){var i=e.DEFAULT_DATA_TYPE,n=x(t);if(!c(n)){var o=t[e.COMPARE_PROPERTY];o&&o.hasOwnProperty(e.DATA_TYPE)&&(i=o[e.DATA_TYPE],h(i)||(i=e.DEFAULT_DATA_TYPE))}return i},_=function(t){var i=null,n=t[e.COMPARE_PROPERTY];return n&&n.hasOwnProperty(e.PARAM)&&(i=n[e.PARAM]),i},v=function(e,t){var i={start:e,count:t};return void 0===e&&(e=0),(void 0===t||t<1)&&(t=0),i},b=function(t){t.hasOwnProperty(e.COMPARE_PROPERTY)||(t[e.COMPARE_PROPERTY]={})},y=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0!==t.length||!i)&&T(e,t,!0)},C=function(e,t){var i=!1;return t.and?i=function(e,t){return T(e,t,!1)}(e,t.and):t.or&&(i=y(e,t.or)),t.exclude&&(i=function(e,t,i){if(i&&(t.or||t.and)||!t.and&&!t.or)return!y(e,t.exclude,!0)}(e,t,i)),i},T=function(t,i,n){for(var o,r=!0,a=0;a<i.length;a+=1){if((o=i[a])&&o.hasOwnProperty(e.VALUE)&&o.hasOwnProperty(e.COLUMN_INDEX)){var s=t[I(i[a])];r=E(s,i[a])}else r=!g(i[a])||C(t,i[a]);if(r===n)return n}return r},E=function(t,r){var u=S(t,w(r)),h=A(r),p=x(r);if(!d(h))return!0;if(!d(u))return!1;if(!f(r))return!0;if(n(h))return n(u);if(!c(p))return i(u,h,r);var g=l(r);return p===e.CONTAINS?function(e,t,i){var n=o(e,t,i);return-1!==n.cellString.indexOf(n.findString)}(u,h,g):p===e.STARTS_WITH?a(u,h,g):p===e.ENDS_WITH&&s(u,h,g)},S=function(e,t){var i=e;if(e&&"object"===(void 0===e?"undefined":r(e)))if(t){for(var n=i,o=t.split("."),a=0;a<o.length;a+=1){n=n[o[a]]}i=null===n?null:n}else i=null;else e&&t&&(i=null);return i},w=function(e){return e?e.field:null},I=function(e){return e?e.columnIndex:null},A=function(e){return e?e.value:null},x=function(t){var i=e.DEFAULT_COMPARE_TYPE,n=t?t[e.COMPARE_PROPERTY]:null;if(n&&n.hasOwnProperty(e.COMPARE_TYPE)){var o=n[e.COMPARE_TYPE];u(o)&&(i=o)}return i};return{searchColumn:function(t,r){var u=S(t,w(r)),h=A(r),p=x(r),g=[];if(!d(h)||!d(u))return g;if(!f(r))return g;if(n(h))return n(u)&&g.push(v(0,0)),g;if(!c(p))return i(u,h,r)&&g.push(function(e){var t=e.toString().length;return(void 0===t||t<1)&&(t=0),v(0,t)}(u)),g;var m=l(r);return p===e.CONTAINS?function(e,t,i){for(var n=o(e,t,i),r=[],a=n.cellString.indexOf(n.findString);-1!==a;)r.push(v(a,n.findString.length)),a=n.cellString.indexOf(n.findString,a+n.findString.length);return r}(u,h,m):p===e.STARTS_WITH?function(e,t,i){var n=[],r=o(e,t,i);return a(r.cellString,r.findString,i)&&n.push(v(0,r.findString.length)),n}(u,h,m):p===e.ENDS_WITH?function(e,t,i){var n=[],r=o(e,t,i);if(s(r.cellString,r.findString,i)){var a=r.cellString.length-r.findString.length;n.push(v(a,r.findString.length))}return n}(u,h,m):g},filterRow:function(e,t){return g(t)?C(e,t):T(e,[t],!1)},isValid:function(e){var t=A(e),i=I(e);return!!d(t)&&("number"==typeof i&&Math.floor(i)===i&&!!f(e))},getField:w,getColumn:I,getValue:A,getCellValue:S,getCompareType:x,setCompareType:function(t,i){b(t),t[e.COMPARE_PROPERTY][e.COMPARE_TYPE]=i},setCompareDataType:function(t,i){b(t),t[e.COMPARE_PROPERTY][e.DATA_TYPE]=i},setCaseSensitive:function(t,i){b(t),t[e.COMPARE_PROPERTY][e.CASE_SENSITIVE]=i},setCompareParam:function(t,i){b(t),t[e.COMPARE_PROPERTY][e.PARAM]=i}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(595)],o=i.dj.d(n,(function(e){var t=[e.range().setRows(0,1/0).setColumns(0,1/0)],i=function(){return!0},n=function(e){if(isNaN(e)||e<=0)throw new Error("'value' for Nth-type dataSelectorsmust be numeric and a positive number.")},o={rangeList:{validator:function(t,i){var n=i.value;if(!Array.isArray(n))throw new Error("'rangeList' must be an array");if(t.row&&!n.every(e.isRowRange))throw new Error("Cannot set row meta data on 'non-row' ranges");if(t.column&&!n.every(e.isColumnRange))throw new Error("Cannot set column meta data on 'non-column' ranges")},getRangeList:function(e){return e.value},makeApplyMetaDataFunction:function(e){return i}},nthRow:{validator:function(e,t){var i=t.value;if(e.column)throw new Error("Cannot set column meta data on 'non-column' dataSelectors");n(i)},getRangeList:function(e){return t},makeApplyMetaDataFunction:function(e){var t=e.value;return function(e,i){return e%t==0}}},nthColumn:{validator:function(e,t){var i=t.value;if(e.row)throw new Error("Cannot set row meta data on 'non-row' dataSelectors");n(i)},getRangeList:function(e){return t},makeApplyMetaDataFunction:function(e){var t=e.value;return function(e,i){return i%t==0}}}};return{create:function(e,t){var i=o[t.type];if(!i)throw new Error("dataSelector type is unknown: "+t.type);i.validator(e,t);var n=!1;"function"!=typeof e.cell&&"function"!=typeof e.row&&"function"!=typeof e.column||(n=!0);var r=i.getRangeList(t);return{getDataSelector:function(){return t},getMetaData:function(){return e},isDynamic:n,_getRangeList:function(){return r.slice(0)},_applyMetaDataFunction:i.makeApplyMetaDataFunction(t)}},dataSelectorTypes:{rangeList:"rangeList",nthRow:"nthRow",nthColumn:"nthColumn"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){"use strict";var t=function(e){throw new Error("_Logger."+e+" is abstract.")};return e(null,{debug:function(){t("debug")},info:function(){t("debug")},warning:function(){t("debug")},error:function(){t("debug")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1018),i(763),i(219)],o=i.dj.d(n,(function(e,t,i){"use strict";var n=t.getLogger(),o={runCode:function(t){var o=e.getInstance().getExecutionDataService();o?(n.info("Using ExecutionDataService to run: "+t),o.executionEval(t,!0)):(n.info("Using message publish on /eval/request to run: "+t),i.publish("/eval/request",t))}};return o}),e,t),e.exports=o},function(e,t,i){e.exports={NORMAL:"NORMAL",VERBOSE:"VERBOSE"}},function(e,t,i){e.exports={NONE:"NONE",SHUTDOWN:"SHUTDOWN",KILL:"KILL"}},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{PARALLEL:{CREATE:"motw.parallel.create",DISCOVER:"motw.parallel.discover",PREFERENCES:"motw.parallel.preferences",PROFILE_MANAGER:"motw.parallel.profiles",JOB_MONITOR:"motw.parallel.jobMonitor"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(204),i(236),i(1022),i(701),i(8719),i(1668),i(462),i(602),i(395),i(8748),i(243)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){const g={unix:h.PlatformUnix,windows:h.PlatformWindows},m=n("pct/app/cluster/profiles/PropertiesView",[t,e,i,a],{templateString:p,baseClass:"pctPropertiesView",nls:h,constructor:function(){this.editing=!1,this._widgets=[]},_addProfileSection:function(e){var t=new l({id:"profileViewSection"+e.name,section:e});this._widgets.push(t),this.own(t),t.placeAt(this.view,e.index)},_removeProfileSection:function(e){this._widgets=this._widgets.filter((function(t){return t.section!==e||(t.destroy(),!1)}))},setEditMode:function(e){void 0===e&&(e=!0),this.editing=e,d.display(this.editButton,!e),d.display(this.cancelButton,e),d.display(this.doneButton,e),this._widgets.forEach((function(t){t.setEditing(e)})),this.emit(m.SET_EDIT_MODE,{editing:e})},_handleEditClicked:function(){c.actions.edit.callback()},_handleCancelClicked:function(){this.cancelEditing()},cancelEditing:function(){this.editing&&(this._widgets.forEach((function(e){e.restore()})),this.setEditMode(!1))},isValid:function(){return this._widgets.every((function(e){return e.isValid()}))},_handleDoneClicked:function(){this.isValid()&&this.profile.save(s.getInstance().executor,this._getChangedProperties()).then(o.hitch(this,"_profileSaved"),u.displayError)},_getChangedProperties:function(){return Array.prototype.concat.apply([],this._widgets.map((function(e){return e.getChangedProperties()})))},_profileSaved:function(){this._widgets.forEach((function(e){e.save()})),this.setEditMode(!1)},_setProfileAttr:function(e){for(this.inherited(arguments),this.editButton.set("disabled",!e||e.isCorrupt());this._widgets.length>0;)this._widgets.pop().destroy();if(!e)return;const t=e.getPlatform();if(t){const i=g[t]||t;this.warningNode.textContent=r.substitute(h.MustBeUsedOnOperatingSystem,[e.typeLabel,i]),d.show(this.warningNode)}else d.hide(this.warningNode);this.corruptionInfoLine1.textContent=r.substitute(h.ViewCorruptLine1,[e.name]),this.corruptionInfoLine2.textContent=r.substitute(h.ViewCorruptLine2,[e.getSchedulerComponent(),e.getProjectComponent()||""]),this.registerListeners([{name:"corruptChanged",callback:"_handleCorruptChanged"},{name:"schedulerChanged",callback:"_handleSchedulerOrProjectChanged"},{name:"projectChanged",callback:"_handleSchedulerOrProjectChanged"},{name:"sectionAdded",callback:"_addProfileSection"},{name:"sectionRemoved",callback:"_removeProfileSection"}],this),e.sections.forEach(this._addProfileSection,this)},_handleCorruptChanged:function(e){e.corrupt&&this.setEditMode(!1),c.actions.edit.toggleState(e.corrupt),this.editButton.set("disabled",e.corrupt)},_handleSchedulerOrProjectChanged:function(e){this.corruptionInfoLine2.textContent=r.substitute(h.ViewCorruptLine2,[this.profile.getSchedulerComponent(),this.profile.getProjectComponent()]),this.setEditMode(!1)}});return m.SET_EDIT_MODE="set-edit-mode",m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(204),i(210),i(1665),i(1019)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t([e,o],{property:null,kind:null,constructor:function(e){if(!(e=e||{}).property)throw new Error("No property passed to _PropertyValueWidget.");this.own(e.property.on(r.CHANGED,i.hitch(this,"_propertyChanged")))},postMixInProperties:function(){if(this.inherited(arguments),["Editor","Viewer"].indexOf(this.purpose)<0)throw new Error('The widget\'s purpose needs to be "Editor" or "Viewer".');this.id="profileViewProperty"+this.purpose+this.property.info.name,this.baseClass="profileViewProperty"+this.purpose},buildRendering:function(){this.inherited(arguments),this.kind&&n.add(this.domNode,this.baseClass+this.kind)},_propertyChanged:function(e,t){throw new Error("_PropertyValueWidget is abstract.")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(413),i(1255)],o=i.dj.d(n,(function(e,t,i){return e([i],{kind:"Multiline",editorClass:"mw-form/TextArea",constructor:function(){this.editorParams={width:"100%",height:50,placeholder:""}},_isNonDefaultValueModified:function(e,t){var i,n;if(e.length!==t.length)return!0;for(n=e.length,i=0;i<n;i+=1)if(e[i]!==t[i])return!0;return!1},_getNonDefaultValue:function(e){return e.split("\n")},_getNonDefaultValueForEditor:function(e){return e instanceof Array?e.join("\n"):this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1255),i(1019)],o=i.dj.d(n,(function(e,t,i){return e([t],{allowZero:!0,allowInf:!0,kind:"Numeric",_handleEditorValueChanged:function(e){var t=this._getValueToDisplay(this.getValue());this.editor.set("value",t)},_getNonDefaultValueForEditor:function(e){return""+e},_getNonDefaultValue:function(e){var t;return e&&""!==e.trim()?(t=parseInt(e),isNaN(t)?this.allowInf?"inf":i.DEFAULT:this.allowZero&&t<0?0:!this.allowZero&&t<1?1:t>=Math.pow(2,32)?Math.pow(2,32):t):""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(236),i(2670),i(395)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{purpose:"Viewer",postCreate:function(e){this.inherited(arguments),this.refresh()},_propertyChanged:function(){this.refresh()},_getDisplayValue:function(){return this.property.isSet()?this._getNonDefaultValueForViewer():""===this.property.info.defaultValue?n.PropertyNone:t.substitute(n.PropertyDefaultValueFormat,[this.property.info.defaultValue])},_getNonDefaultValueForViewer:function(){return this.property.value},refresh:function(){throw new Error("_PropertyValueViewer is abstract.")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(8747),i(648),i(368),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";var s;return t(null,{constructor:function(e){s=e||s||new r},getActionService:function(){return s},initialize:function(e){this._actions=this._createActions(e)},_createActions:function(e){var t,i,o=[];for(i in e)e.hasOwnProperty(i)&&(t=e[i],n.isAction(t)?(t=new n(t,s),e[i]=t,o.push(t)):"object"==typeof t&&(o=o.concat(this._createActions(t))));return o},byId:function(t){var i=e.filter(this._actions,(function(e){return e.id===t}));if(0===i.length)throw new Error(`ActionLoader: No action with ID '${t}'.`);if(i.length>1)throw new Error(`ActionLoader: Found multiple actions with ID '${t}'.`);return i[0]},load:function(){s.loadActions(this._actions)},removeAll:function(){this._actions.map((function(e){return e.id})).forEach((function(e){s.removeAction(e)}),this)},toggleState:function(e){this._actions.forEach((function(t){t.toggleState(e)}))},hitchCallbacks:function(e,t){t=t||this._actions,o.forEachValue(t,(function(t){if(n.isAction(t))"string"==typeof t.callback?t.callback=i.hitch(e,t.callback,t):a.warn(`No action callback specified for ${t.id}.`);else{if("object"!=typeof t)throw new Error(`Invalid action definition: ${t}.`);this.hitchCallbacks(e,t)}}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(224),i(203),i(204),i(8749),i(8751),i(1665),i(462),i(763),i(1022),i(701),i(1248),i(1656),i(1668),i(395),i(8752),i(243)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b=o("pct/app/cluster/profiles/ValidationView",[t,e,i,l,u],{templateString:_,nls:m,baseClass:"pctValidationView",constructor:function(){if(this.validationManager=h.getInstance().validationManager,!this.validationManager)throw new Error("ValidationManager needs to be specified when creating the ValidationView.");this.own(this.validationManager.on(p.READY,r.hitch(this,"_initialize")),this.validationManager.on(p.STARTED,r.hitch(this,"_validationStarted")),this.validationManager.on(p.UPDATED,r.hitch(this,"_validationUpdated")),this.validationManager.on(p.FINISHED,r.hitch(this,"_validationFinished")))},postCreate:function(){this.inherited(arguments),g.actions.validate.bindButton(this.validationButton)},_initialize:function(){var e;this.validationManager.isReady()&&(e=n.map(Object.keys(p.STAGE),(function(e){return{stageId:e,status:f.NotRun,description:""}})),this.table.setStages(e)),this._updateStageDetailsDisplay(null),c.toggleDisplay(this.validationButton,this.cancelValidationButton)},_stopValidation:function(){this.cancelValidationButton.set("disabled",!0),this.validationManager.cancel(this.profile.name)},_shouldUpdateView:function(e){return null!==this.profile&&this.profile.name===e.profileName},_refresh:function(e){this._initialize(),Object.keys(e.stages).forEach((function(t){this.table.updateStage(e.stages[t]),t===this.table.getSelectedStageId()&&this._updateStageDetailsDisplay(e.stages[t])}),this),e.status.terminal?(c.toggleDisplay(this.validationButton,this.cancelValidationButton),this.emit(b.VALIDATION_FINISHED,{profile:this.profile})):(c.toggleDisplay(this.cancelValidationButton,this.validationButton),this.emit(b.VALIDATION_STARTED,{profile:this.profile}))},_validationStarted:function(e){this._shouldUpdateView(e)&&this._refresh(e)},_validationUpdated:function(e,t){this._shouldUpdateView(e)&&(this.table.updateStage(e.stages[t]),t===this.table.getSelectedStageId()&&this._updateStageDetailsDisplay(e.stages[t]),d.getLogger().debug(`Validating profile '${e.profileName}', stage updated: '{JSON.stringify(validationInfo.stages[stageId])}'`))},_validationFinished:function(e){this._shouldUpdateView(e)&&(this.cancelValidationButton.set("disabled",!1),c.toggleDisplay(this.validationButton,this.cancelValidationButton),this.emit(b.VALIDATION_FINISHED,{profile:this.profile}))},_setProfileAttr:function(e){var t;this.inherited(arguments),this.set("visible",null!==e),this.validationButton.set("disabled",null===e),e&&((t=this.validationManager.getProfileValidationInfo(e.name))?this._validationStarted(t):this._initialize())},_updateStageDetailsDisplay:function(e){e=e||{},this.detailsErrorReport.setValue(e.error),this.detailsCommandLineOutput.setValue(e.commandWindowOutput),this.detailsDebugLog.setValue(e.debugLog)},_handleStageSelected:function(e){this._updateStageDetailsDisplay(e.rows[0].data)},_handleStageDeselected:function(){this._updateStageDetailsDisplay(null)}});return b.VALIDATION_STARTED="validation_started",b.VALIDATION_FINISHED="validation_finished",b}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224)],o=i.dj.d(n,(function(e){"use strict";var t=function(i){var n;return void 0===i?i:i instanceof Array?((n=e.filter(i,(function(e){return"function"==typeof e.hidden?!0!==e.hidden():!0!==e.hidden}))).forEach(t),n):(i.children=t(i.children),i.popups=t(i.popups),i)};return{removeHiddenElements:t}}),e,t),e.exports=o},function(e,t,i){var n,o;const r={NOT_RUN:"NotRun",RUNNING:"Running",CANCELLED:"Cancelled",PASSED:"Passed",FAILED:"Failed",SKIPPED:"Skipped",STOPPED:"Stopped",isFinal:function(e){return[r.FAILED,r.PASSED,r.CANCELLED].includes(e)}};void 0===(o="function"==typeof(n=r)?n.call(null,i,t,e):n)||(e.exports=o)},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){"use strict";var t,i={canCancel:!1,canDelete:!1,canShowDetails:!1,canShowErrors:!1,canShowWarnings:!1,canShowDiary:!1,canLoadVariables:!1,canFetchOutputs:!1,canClosePool:!1},n=function(t){return e.mixin({},i,t)},o={UNKNOWN:n({}),INDEPENDENT_JOB:n({canCancel:!0,canDelete:!0,canShowDetails:!0,canShowErrors:!0,canShowWarnings:!0,canFetchOutputs:!0}),BATCH_JOB_ON_SCRIPT:n({canCancel:!0,canDelete:!0,canShowDetails:!0,canShowErrors:!0,canShowWarnings:!0,canShowDiary:!0,canLoadVariables:!0}),BATCH_JOB_ON_FUNCTION:n({canCancel:!0,canDelete:!0,canShowDetails:!0,canShowErrors:!0,canShowWarnings:!0,canShowDiary:!0,canFetchOutputs:!0}),COMMUNICATING_POOL_JOB:n({canCancel:!0,canDelete:!0,canShowDetails:!0,canShowErrors:!0,canShowWarnings:!0,canFetchOutputs:!0}),COMMUNICATING_SPMD_JOB:n({canCancel:!0,canDelete:!0,canShowDetails:!0,canShowErrors:!0,canShowWarnings:!0,canFetchOutputs:!0}),CONCURRENT_JOB:n({canCancel:!0,canDelete:!0,canShowDetails:!0,canShowErrors:!0,canShowWarnings:!0,canFetchOutputs:!0}),MATLABPOOL:n({canClosePool:!0,canDelete:!0}),CURRENT_INTERACTIVE_MATLABPOOL:n({canClosePool:!0,canDelete:!0})};for(t in o)o.hasOwnProperty(t)&&(o[t].name=t);return o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){"use strict";return e(null,{constructor:function(e,i){var n,o=e.length;for(t.isFunction(i)||(i=function(e){return e}),n=0;n<o;n+=1)this[e[n]]=i(e[n])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1670),i(8813),i(8816),i(8817),i(8818),i(8819),i(2681),i(8820),i(8821),i(8823),i(8824),i(2682),i(2683),i(2684),i(8833),i(2685),i(8837),i(1259),i(8839),i(8840),i(2686),i(8842),i(8848),i(8849),i(8852),i(8853),i(8855),i(8857),i(8858),i(8863),i(8864),i(8865),i(8866),i(8868),i(8869),i(8870),i(1673),i(8872),i(8878),i(8879),i(8880),i(2688),i(1677),i(8881),i(376),i(8882),i(8888),i(8890),i(8895),i(2690),i(8896),i(2691),i(8897),i(8898),i(8899),i(2298),i(318)],o=i.dj.d(n,(function(){}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(235),i(376)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.editors.ArrayOfValuesTextBoxEditor",[i],{_applyFormatting:function(e,i){var n=null;if("client"===!i)return e;if(Array.isArray(e))return e;if("string"==typeof e){if(""===e)return this._getEmptyReturnValue();try{(n=JSON.parse(e))instanceof Array||(n=[n])}catch(t){0===e.indexOf("[")&&e.lastIndexOf("]")===e.length-1&&(e=e.substring(1,e.length-1)),n=e.replace(/,/g," ").split(/\s+/)}var o=!0;return"categorical"!==this._state.classname&&"datetime"!==this._state.classname&&"duration"!==this._state.classname||(o=!1),o&&(n=n.map((function(e){var i=t.filterFloat(e);return isNaN(i)?e:i}))),n}return e},setCursorPosition:function(){var e=this._getUIValue().length;t.selectRange(this._inputBox.inputNode,e,e)},_getEmptyReturnValue:function(){return[""]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(604),i(210),i(206),i(8825),i(8826),i(326),i(239),i(691),i(269),i(742),i(431)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([t],{templateString:o,constructor:function(e){var t=this.getDisplayInfo(e);this.rowNames=t.rowNames,this.propertyName=t.propertyName,this.label=t.label,this._editorGroupProperties=e,this._tableInfo=this._getTableInfo(e[0].values[0],this.rowNames.length),this._CheckboxListEditorTableModel=new r(this._tableInfo,this.rowNames)},getDisplayInfo:function(e){var t=e[0].meta.richEditorProperties;return{rowNames:t.rowNames,propertyName:t.propertyName,label:t.label}},_createDefaultTableModel:function(){var e=[],t=[];this._editorGroupProperties&&this._editorGroupProperties[0]&&this._editorGroupProperties[0].meta&&this._editorGroupProperties[0].meta.richEditorProperties&&this._editorGroupProperties[0].meta.richEditorProperties.items&&this._editorGroupProperties[0].meta.richEditorProperties.checked&&(e=this._editorGroupProperties[0].meta.richEditorProperties.checked,t=this._editorGroupProperties[0].meta.richEditorProperties.items),this.rowNames=t,this._CheckboxListEditorTableModel=new r(e,t),this._tableInfo=this._getTableInfo(this._editorGroupProperties[0].values[0],t.length)},postCreate:function(){this.firstColWidth=60,this.secondColWidh=135,this._CheckboxListEditorTableModel||this._createDefaultTableModel(),this._table=this._createTable(this._CheckboxListEditorTableModel.getDataStore()),this._table.setColumnWidth(this.firstColWidth),this.own(this._table);var e=this,t=new c({text:u.selectAll});i.add(t.domNode,"select-all-label"),this._selectAll.appendChild(t.domNode);var o=t.on("click",(function(){e._selectAllCB()}));this.own(o);var r=new c({text:u.clearAll});i.add(r.domNode,"clear-all-label"),this._clearAll.appendChild(r.domNode);var a=r.on("click",(function(){e._clearAllCB()}));this.own(a),this._tableContainer.appendChild(this._table.domNode),this.own(n(this._CheckboxListEditorTableModel,"tableModelUpdated",this._handleEditorValueChange.bind(this)))},_getTableInfo:function(e,t){e=function(e){var t=void 0!==e.value?e.value:e;return Array.isArray(t)?t.slice():[t].slice()}(e);for(var i=[],n=0;n<t;n++)i.push(!1);for(n=0;n<e.length;n++)i[e[n]-1]=!0;return i},_createTable:function(e){var t={features:[d],columnModel:{columnConfig:[{dataIndex:0,label:" ",interactiveRenderer:new l,width:{value:this.firstColWidth,unit:"px"}},{dataIndex:1,label:this.label,width:{value:this.secondColWidh,unit:"px"}}]}};return new a(e,t)},_updateEditor:function(e,t){var i,n,o=this._getTableInfo(e[0].value,this.rowNames.length);i=o,n=this._tableInfo,JSON.stringify(i)!==JSON.stringify(n)&&(this._tableInfo=o,this._CheckboxListEditorTableModel.setTableData(this._tableInfo,this.rowNames))},_handleEditorValueChange:function(e){var t=e.eventData.rowIdx,i=e.eventData.newValue;if(this._tableInfo[t]!==i){var n=this._getDataFromTableData();this._tableInfo[t]=i;var o=this._getDataFromTableData();this._commitValue(this.propertyName,n,o,"client")}this._CheckboxListEditorTableModel.setTableData(this._tableInfo,this.rowNames)},_getDataFromTableData:function(){for(var e=[],t=0;t<this._tableInfo.length;t++)!0===this._tableInfo[t]&&e.push(t+1);return e},_selectAllCB:function(e){for(var t=this._tableInfo.length,i=[],n=[],o=0;o<t;o+=1)i.push(o+1),n.push(!0);this._commitValue(this.propertyName,this._getDataFromTableData,i,"client"),this._tableInfo=n,this._CheckboxListEditorTableModel.setTableData(this._tableInfo,this.rowNames)},_clearAllCB:function(e){this._commitValue(this.propertyName,this._getDataFromTableData,[],"client");for(var t=[],i=this._tableInfo.length,n=0;n<i;n+=1)t.push(!1);this._tableInfo=t,this._CheckboxListEditorTableModel.setTableData(this._tableInfo,this.rowNames)},startup:function(){this.inherited(arguments),this._table.startup()},destroy:function(){this._table.destroy(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(213),i(210),i(447),i(206),i(2684),i(450),i(30),i(8832),i(215),i(216),i(361),i(255)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([d,u,p,h],{color:"#FF0000",templateString:c,colorStyleOptions:[],COLOR_AUTO:"auto",COLOR_NONE:"none",COLOR_FLAT:"flat",COLOR_INTERP:"interp",COLOR_TEXTUREMAP:"texturemap",constructor:function(){this._dropDownButtonNode=null,this._colorEditor=null,this.color=arguments[0].color,this.colorStyleOptions=arguments[0].colorStyleOptions,this.inherited(arguments)},destroy:function(){this.inherited(arguments)},_setColorAttr:function(e){e!==this.COLOR_AUTO&&e!==this.COLOR_NONE&&e!==this.COLOR_FLAT&&e!==this.COLOR_INTERP&&e!==this.COLOR_TEXTUREMAP&&(e=new o(e).toHex()),e!==this.get("color")&&(this._set("color",e),this._updateDropDownColor(this.get("color")),this._colorEditor&&this._colorEditor.set("value",e,!1))},buildRendering:function(){this.inherited(arguments),this._dropDownButtonNode=new s({hasDynamicMenu:!0}),this.own(this._dropDownButtonNode),this._colorSwatchInButton=this._dropDownButtonNode.iconNode,n.add(this._dropDownButtonNode.domNode,"colorDropDownEditor-dropDownButton"),this._updateDropDownColor(this.get("color")),this._dropDownButtonNode.placeAt(this.domNode),this._updateDropDownColor(this.color)},postCreate:function(){this.inherited(arguments),this._dropDownButtonNode.on("dropdownclick",this._handleDropDownClick.bind(this))},startup:function(){this.inherited(arguments),this._dropDownButtonNode.startup()},_handleDropDownClick:function(e){this._colorEditor||(this._colorEditor=new a({value:this.color,colorStyleOptions:this.colorStyleOptions}),this.own(this._colorEditor),this._tooltipDialogWithColorPicker=this._createTooltipDialogWithColorPicker(this._colorEditor),this._dropDownButtonNode.set("menu",this._tooltipDialogWithColorPicker),this._dropDownButtonNode.set("_menuOrientation",["below","below-alt","above","above-alt","after","before","above-centered","below-centered","before-centered","after-centered"]),this.own(this._tooltipDialogWithColorPicker),this._tooltipDialogWithColorPicker.startup(),this._colorEditor.startup(),this._colorEditor.on("update-color",this._handleUpdateColor.bind(this))),this._colorEditor.forceSetValue(this.color),this._dropDownButtonNode.showMenu(),this.defer(function(){this._tooltipDialogWithColorPicker.domNode.focus()}.bind(this)),t(".colorEditor").forEach((function(e){n.remove(e,"colorDropDownEditor-dropDownButton-opened")})),n.add(this._colorEditor.domNode,"colorDropDownEditor-dropDownButton-opened"),this.emit("dropdownclick")},_handleUpdateColor:function(e){this._updateDropDownColor(e.newColorValue),this._set("color",e.newColorValue),this.emit("color-changed",e)},_updateDropDownColor:function(e){e&&(n.remove(this._colorSwatchInButton,"mwColorPickerNoneColorSwatch"),n.remove(this._colorSwatchInButton,"mwColorPickerAutoColorSwatch"),n.remove(this._colorSwatchInButton,"mwColorPickerFlatColorSwatch"),n.remove(this._colorSwatchInButton,"mwColorPickerInterpColorSwatch"),n.remove(this._colorSwatchInButton,"mwColorPickerTextureMapColorSwatch"),e===this.COLOR_NONE?(i.set(this._colorSwatchInButton,"backgroundColor","#ffffff"),n.add(this._colorSwatchInButton,"mwColorPickerNoneColorSwatch")):e===this.COLOR_AUTO?n.add(this._colorSwatchInButton,"mwColorPickerAutoColorSwatch"):e===this.COLOR_FLAT?n.add(this._colorSwatchInButton,"mwColorPickerFlatColorSwatch"):e===this.COLOR_INTERP?n.add(this._colorSwatchInButton,"mwColorPickerInterpColorSwatch"):e===this.COLOR_TEXTUREMAP?n.add(this._colorSwatchInButton,"mwColorPickerTextureMapColorSwatch"):i.set(this._colorSwatchInButton,"backgroundColor",e))},_createTooltipDialogWithColorPicker:function(e){return new l({content:e,class:"ColorEditorTooltipDialog",onClose:function(){var t=e.colorPicker.get("value");if(t!==this.COLOR_NONE&&t!==this.COLOR_AUTO&&t!==this.COLOR_FLAT&&t!==this.COLOR_INTERP&&t!==this.COLOR_TEXTUREMAP){var i=e.colorPicker.get("recentlyUsedColors");i.splice(i.indexOf(t),1),i.unshift(t),e.colorPicker.set("recentlyUsedColors",i)}}.bind(this)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(447),i(203),i(210),i(206),i(796),i(8831),i(215),i(216)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){function l(t){return"none"!==t&&"auto"!==t&&"flat"!==t&&"interp"!==t&&"texturemap"!==t&&(t=new e(t).toHex()),t}return t([a,s],{value:null,templateString:r,colorStyleOptions:[],COLOR_AUTO:"auto",COLOR_NONE:"none",COLOR_FLAT:"flat",COLOR_INTERP:"interp",COLOR_TEXTUREMAP:"texturemap",constructor:function(){this.colorPicker=null,this.value=arguments[0].value,this.colorStyleOptions=arguments[0].colorStyleOptions,this.showAuto=-1!==this.colorStyleOptions.indexOf(this.COLOR_AUTO),this.showNone=-1!==this.colorStyleOptions.indexOf(this.COLOR_NONE),this.showFlat=-1!==this.colorStyleOptions.indexOf(this.COLOR_FLAT),this.showInterp=-1!==this.colorStyleOptions.indexOf(this.COLOR_INTERP),this.showTexturemap=-1!==this.colorStyleOptions.indexOf(this.COLOR_TEXTUREMAP),this.inherited(arguments)},_setValueAttr:function(e){var t=l(e);t!==this.get("value")&&this._setValue(t)},_setValue:function(e){this._set("value",e),this.colorPicker.set("value",e)},forceSetValue:function(e){var t=l(e);this._setValue(t)},_getValueAttr:function(){return this.colorPicker.get("value")},buildRendering:function(){this.inherited(arguments),this.colorPicker=new o({showAuto:this.showAuto,showNone:this.showNone,showFlat:this.showFlat,showInterp:this.showInterp,showTexturemap:this.showTexturemap}),this.colorPicker.set("value",this.value),this.colorPicker.placeAt(this.domNode)},postCreate:function(){this.inherited(arguments),setTimeout(function(){this.colorPicker&&this.colorPicker.own(n(this.colorPicker,"change",this._handleChange.bind(this)))}.bind(this),0)},startup:function(){this.inherited(arguments),this.colorPicker.startup()},destroy:function(){this.colorPicker&&this.colorPicker.destroy(),this.colorPicker=null,this.inherited(arguments)},_handleChange:function(e){if(e.mwEventData){var t=e.mwEventData.newValue;this._set("value",t,!1),this.emit("update-color",{newColorValue:t})}},_setReadOnly:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(447),i(213),i(235),i(367),i(1258),i(651),i(211),i(245),i(1005),i(223),i(206),i(376),i(463),i(8834)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m=e("rendererseditors.editors.ColorTextBoxEditor",[r,a,f],{_hasStyle:!1,_hasAlpha:!1,_inputBox:null,_alpha:1,_valueIsAdjusting:!1,_rangeZeroToOne:!0,_doubleClickDuration:0,_inputValueChangeListener:void 0,constructor:function(e){this.templateString=g,this._rangeZeroToOne=!e||this._getPossibleBooleanFunctionValue(e.rangeZeroToOne,!0),e&&(this._allArgs=e,this.init(e)),s.parse()},_setUIColor:function(e,t){var i=this._getColorValues(e);i=i.color,(t||void 0===t)&&this._setForegroundValues(i,e)},_getUIColor:function(){return this._value===a.COLOR_AUTO||this._value===a.COLOR_FLAT||this._value===a.COLOR_NONE||this._value===a.COLOR_INTERP||this._value===a.COLOR_TEXTUREMAP||"string"==typeof this._value&&"3 double"===this._value.slice(-8)?this._value:new i(this._value)},_setForegroundValues:function(e,t){if(this._value=t,t===a.COLOR_AUTO||t===a.COLOR_FLAT||t===a.COLOR_NONE||t===a.COLOR_INTERP||t===a.COLOR_TEXTUREMAP||"string"==typeof t&&"3 double"===t.slice(-8))this._inputBox.setValue(t),this._inputBox.setEditValue(t),this._inputBox._setUIValue(t);else{var i,n,o,r,s=this._rangeZeroToOne?255:1;this._rangeZeroToOne?(i=(Math.round(e.r/s*100)/100).toFixed(2),n=(Math.round(e.g/s*100)/100).toFixed(2),o=(Math.round(e.b/s*100)/100).toFixed(2),r=(Math.round(100*e.a)/100).toFixed(2)):(i=e.r.toString(),n=e.g.toString(),o=e.b.toString(),r=e.a.toString()),this._inputValueChangeListener.pause(),this._inputBox.setValue(i+","+n+","+o+(this._hasAlpha?","+r:"")),this._inputBox.setEditValue(i+","+n+","+o+(this._hasAlpha?","+r:"")),this._inputBox._setUIValue(i+","+n+","+o+(this._hasAlpha?","+r:"")),this._inputValueChangeListener.resume()}},_setupDomClasses:function(e,t){e&&this.addCSSClasses("veDiagonalStrikeout");var i=t?t.dataType?t.dataType:t.class:"color",n=!!t&&t.isTemporaryValue;this._applyCssClass(i,n,!1),this.isEditable()?this.removeCSSClasses("variableEditorNotEditable"):this.addCSSClasses("variableEditorNotEditable")},setValue:function(e){if(this.domNode){var t=!1,i=e;e&&e.hasOwnProperty("value")&&(i=e.value),i||(i=a.WHITE.toCss(!0),t=!0),this.removeCSSClasses("veDiagonalStrikeout"),this._setupDomClasses(t,e),this.domNode.setAttribute("data-tag",this.createDataTag("ColorRenderer","cell")),this._setUIColor(i),this.inherited(arguments)}else this._value=e},postCreate:function(){this._setupInputBoxNode(),this._hasStyle=!!this._state&&o.getLogicalValue(this._state.showStyle,!1),this._hasAlpha=!!this._state&&o.getLogicalValue(this._state.showAlpha,!1),this.inherited(arguments),this.addCSSClasses("veColorRenderer"),c("mac")&&this.addCSSClasses("macScrollBarWidth")},_setupInputBoxNode:function(){var e=this._getAttachNode("colorValue");if(e){this._inputBox=new p({value:this._value,state:this._state,editable:this._editable,editOnSingleClick:!0}),l.place(this._inputBox.domNode,e,"last"),this._inputValueChangeListener=h.pausable(this._inputBox,"valueChanged",t.hitch(this,"_inputBoxValueChanged")),this._inputBox.addEventListener("click",t.hitch(this,"_inputMouseClick")),this._inputBox.addEventListener("editingStarted",t.hitch(this,"_reDispatchEvent")),this._inputBox.addEventListener("editingStopped",t.hitch(this,"_reDispatchEvent"));var i=this,n=this._inputBox._handleKeyDown;this._inputBox._handleKeyDown=function(e){i._ignoreInvalidKeys(e),n.apply(i._inputBox,[e]),i._inputBoxKeyDown(e)},this._inputBox._handleBlurEvent=function(e){e===this&&i._handleBlurEvent(e)};var o=this._inputBox.edit,r=this;this._inputBox.edit=function(){r._originalValue=r._value,r.isEditable()&&(r._setUIColor(r._value),r.focusTextBox(!0)),o.apply(i._inputBox)}}var a=t.hitch(this,"_handleKeyboardEvent");h(this.domNode,"keypress",a),this.focusNode=this._inputBox.focusNode},_reDispatchEvent:function(e){this.dispatchEvent(e.type,this,e.data)},_changeListenerState:function(e){e&&"string"==typeof e&&(this.inherited(arguments),this._inputBox._changeListenerState(e))},_swatchMouseClick:function(e){this._handleMouseEvent(e)},_inputMouseClick:function(e){this._inputBox.edit(),this._handleMouseEvent(e.data)},_ignoreInvalidKeys:function(e){var t=this._getKeyCode(e);t>95&&t<106&&(t-=48),t===u.ESCAPE||t===u.ENTER||t===u.LEFT_ARROW||t===u.LEFT||t===u.RIGHT_ARROW||t===u.RIGHT||t===u.TAB||t===u.UP_ARROW||t===u.DOWN_ARROW||t>=48&&t<=57||188===t||190===t||62===t||t===u.DELETE||t===u.BACKSPACE||219===t||221===t||8===t||46===t||t>=65&&t<=90||t===u.SPACE||e.preventDefault()},_inputBoxKeyDown:function(e){var t=this._getKeyCode(e);t===u.ESCAPE?this.cancelEditing():t===u.ENTER&&this._colorChanged(this._getNumericColorArrayValues(this._inputBox._getUIValue()),"keyDown")},_colorChanged:function(e,t){this._isInvalidColor(e)?this.cancelEditing():this._colorsEqual(e,this._value)?(this._setUIColor(e),this.stopEditing()):this._commitNewValue(e,t)},_isInvalidColor:function(e){return e.constructor===Array&&(e=e.filter((function(e){return!isNaN(e)&&e>=0&&e<=255}))).length<3},_commitNewValue:function(e,t){var i=this._value;this._value=this._getColorCommitValue(e),this._setUIColor(this._value,!1),o.removeFromClassList(this.domNode,"veDiagonalStrikeout"),this.stopEditing();var n=this._getColorValues(this._value);n=n&&n.color?n.color:a.WHITE,this._setUIColor(this._value),this._colorsEqual(i,this._value)||this.dispatchEvent("valueChanged",this,{editor:this,oldValue:this._originalValue,newValue:this._value,newColor:n,eventTriggerInfo:t})},_getNumericColorArrayValues:function(e){if(e===a.COLOR_AUTO||e===a.COLOR_FLAT||e===a.COLOR_NONE||e===a.COLOR_INTERP||e===a.COLOR_TEXTUREMAP||"string"==typeof e&&"3 double"===e.slice(-8))return e;if("r"===e)return[255,0,0];if("g"===e)return[0,255,0];if("b"===e)return[0,0,255];var t=[];if(e){var i=this._rangeZeroToOne?255:1,n=e.split(/^\[|,| |\]$/g).filter((function(e){return 0!==e.length}));(t=n.map((function(e){var t=parseFloat(e)*i;return Math.round(Math.max(0,Math.min(255,t)))}))).length>3&&(t[3]=parseFloat(n[3]))}return t},_inputBoxValueChanged:function(e){var t=e.data.newValue,n=this._value;if(t){var o=this._getNumericColorArrayValues(t);o&&o.length&&(n=new i(o))}if(this._valueIsAdjusting){var r=n||a.WHITE;this.dispatchEvent("valueAdjusting",this,{editor:this,oldValue:e.data.oldValue,newValue:r.toCss(!0),newColor:r})}else this._colorChanged(n)},_handleBlurEvent:function(e){var t=document.activeElement;this._getPossibleBooleanFunctionValue(this._commitOnBlur,!0)&&(!this.domNode.contains(t)||-1===d._activeStack.indexOf(this.domNode.id))&&this._renderer&&this._renderer.domNode&&t!==this._renderer.domNode&&(this._editing=!0,this._colorChanged(this._getNumericColorArrayValues(this._inputBox._getUIValue()),"widgetBlur"))},_handleColorBlur:function(e){this._getPossibleBooleanFunctionValue(this._commitOnBlur,!0)&&this._editing&&e&&e.target&&!this.domNode.contains(e.target)&&this._renderer&&this._renderer.domNode&&e.target!==this._renderer.domNode&&this._colorChanged(this._getNumericColorArrayValues(this._inputBox._getUIValue()),"widgetBlur")},focusTextBox:function(e){e&&this._inputBox._focus()},stopEditing:function(){this.isEditing()&&this._inputBox&&(this._inputBox.stopEditing(),this._inputBox.setCursorPosition(0,0)),this.inherited(arguments)},cancelEditing:function(){var e=this.isEditing();e&&this._inputBox&&this._inputBox.cancelEditing(),this._setUIColor(this._originalValue),this._editing=e,this.inherited(arguments)},_getUIValue:function(){var e=this._getUIColor();return e===a.COLOR_AUTO||e===a.COLOR_FLAT||e===a.COLOR_NONE||e===a.COLOR_INTERP||e===a.COLOR_TEXTUREMAP||"string"==typeof e&&"3 double"===e.slice(-8)?e:e.toCss(!0)},_setReadOnly:function(e){this._inputBox&&this._inputBox._setReadOnly&&this._inputBox._setReadOnly(e)},destroy:function(){this._inputBox.destroy(),this.inherited(arguments)}});return m.COLOR_VALUE_0_TO_1_INCREMENT=.01,m.COLOR_VALUE_0_TO_255_INCREMENT=1,m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(206),i(238),i(431),i(1508),i(367),i(463),i(2687),i(8841)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([s,l],{templateString:d,_datepicker:void 0,_dateSettingsPlugin:void 0,constructor:function(e){e.plugins&&e.plugins.dateSettingsPlugin&&(this._dateSettingsPlugin=e.plugins.dateSettingsPlugin,n(this._dateSettingsPlugin,"settingsUpdated",t.hitch(this,"_settingsChanged")))},postCreate:function(){this._datepicker||this._createDatePicker(),this.inherited(arguments)},_createDatePicker:function(){if(this._dateSettingsPlugin){var e=this._dateSettingsPlugin.datetimeInputFormat,t=this._dateSettingsPlugin.datetimeDefaultDateFormat,i=this._dateSettingsPlugin.datetimeDisplayLocale;e&&t&&i&&this._createDatePickerObject(i,t,e)}else this._createDatePickerObject("en_US","dd-MMM-uuuu","MM/dd/uuuu")},_settingsChanged:function(e){this._datepicker?(this._setViewLanguage(e.datetimeDisplayLocale),this._setDisplayFormat(e.datetimeDefaultDateFormat),this._setInputFormat(e.datetimeInputFormat)):this._createDatePickerObject(e.datetimeDisplayLocale,e.datetimeDefaultDateFormat,e.datetimeInputFormat)},_createDatePickerObject:function(e,t,i){var n=c.matlabDateToJSDate(this._value);this._datepicker=new a({value:n,locale:e,displayFormat:t,inputFormat:i,horizontalAlignment:"left"}),this._datepicker.set("_interactionCompleteBehavior","FOCUS_TEXTFIELD"),this._datepicker.startup(),this.own(this._datepicker),this._datepicker._textField&&(this._datepicker._textField.set("placeholder",r.datepickerPlaceHolder),this._datepicker._textField.inputNode&&this._datepicker._textField.inputNode.setAttribute("data-tag",this.createDataTag("value"))),this._datepicker.domNode.setAttribute("data-tag",this.createDataTag("datepickereditor")),this.domNode&&this.domNode.appendChild(this._datepicker.domNode),this._addListenersToComponents()},_addListenersToComponents:function(){this._datepicker&&(this._datepicker.on("change",t.hitch(this,"_handleDatePickerValueChanged")),this._datepicker._textField.on("click",t.hitch(this,"_handleClick")),this._changeObjectListenersState(this._blurListeners,"remove"),this._datepicker.on("editingcomplete",t.hitch(this,"_handleEditingcomplete")))},_handleDatePickerValueChanged:function(){if(this._datepicker){var e=this._getUIValue(),t=c.jsDateToMatlabDate(e);this.setValue(t,"client")}},_handleEditingcomplete:function(e){e.mwEventData&&e.mwEventData.reason&&"TEXTFIELD_ENTER"===e.mwEventData.reason&&o.focus(this.domNode)},_getUIValue:function(){return this._datepicker?this._datepicker.value:c.matlabDateToJSDate(this._value)},_setUIValue:function(e){this._datepicker&&this._datepicker.set("value",e)},setValue:function(e,t){if(this.inherited(arguments),void 0===t){var i=c.matlabDateToJSDate(e);this._setUIValue(i)}},_setViewLanguage:function(e){this.domNode&&this._datepicker&&(this._datepicker.set("locale",e),this._datepicker.set("startingDayOfWeek",0),this._datepicker.set("weekendDays",[6,0]))},_setDisplayFormat:function(e){this.domNode&&this._datepicker&&this._datepicker.set("displayFormat",e)},_setInputFormat:function(e){this.domNode&&this._datepicker&&(this._datepicker.set("inputFormat",e),this._datepicker._textField&&this._datepicker._textField.set("placeholder",r.datepickerPlaceHolder))},_setLimits:function(e){this.domNode&&this._datepicker&&(e=c.matlabDateToJSDate(e),this._datepicker.set("Limits",e))},_setDisabledDaysOfWeek:function(e){if(this.domNode&&this._datepicker){Array.isArray(e)||(e=[e]);for(var t=[],i=0;i<e.length;i++)t.push(e[i]-1);var n=null;e.length>0&&(n=function(e){return t.indexOf(e.getDay())>=0}),this._datepicker.set("dateDisableCallback",n)}},_setDisabledDates:function(e){this.domNode&&this._datepicker&&(e=c.matlabDateToJSDate(e),Array.isArray(e)||(e=[e]),this._datepicker.set("disabledDates",e))},_handleKeyboardEvent:function(e){if("keydown"===e.type){var t=this._getKeyCode(e);null!==t&&t===i.ENTER&&this._datepicker&&this._datepicker._textField&&this._datepicker._textField.set("readOnly",!0)}},_handleClick:function(e){this._datepicker._textField.set("readOnly",!1)},_setupBlurListener:function(){},setDependentProperties:function(e,t){var i=e[0];"DisplayFormat"===t?this._setDisplayFormat(void 0!==i.value?i.value:i.editValue):"Limits"===t?this._setLimits(void 0!==i.value?i.value:i.editValue):"DisabledDaysOfWeek"===t?this._setDisabledDaysOfWeek(void 0!==i.value?i.value:i.editValue):"DisabledDates"===t&&this._setDisabledDates(void 0!==i.value?i.value:i.editValue)},_setReadOnly:function(e){},stopEditing:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{matlabDateToJSDate:function(e,t){var i,n;if("NaT"===e)i=null;else if(Array.isArray(e.Month)){var o;if(void 0===t)for(t=[],o=0;o<e.Year.length;o++)t.push(o);i=[];for(var r=0;r<t.length;r++)o=t[r],(n=new Date(e.Year[o],e.Month[o]-1,e.Day[o])).setFullYear(e.Year[o]),i.push(n)}else(n=new Date(e.Year,e.Month-1,e.Day)).setFullYear(e.Year),i=n;return i},jsDateToMatlabDate:function(e,t){var i;if(null===e)i="NaT";else if(Array.isArray(e)){if(i={Year:[],Month:[],Day:[]},void 0===t){t=[];for(var n=0;n<e.length;n++)t.push(n)}for(var o=0;o<t.length;o++)n=t[o],i.Year.push(e[n].getFullYear()),i.Month.push(e[n].getMonth()+1),i.Day.push(e[n].getDate())}else i={Year:e.getFullYear(),Month:e.getMonth()+1,Day:e.getDate()};return i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(235),i(376)],o=i.dj.d(n,(function(e,t,i,n){return e("rendererseditors.editors.StringEditor",[n],{setValue:function(e,t){var n=i.formatString(e,t);this.inherited(arguments,[e,t,n])},setEditValue:function(e,t){var n=i.formatString(e,t);this.inherited(arguments,[e,t,n])},_handleKeyDown:function(e){if(e){var i=this._getKeyCode(e);i===t.TAB?(this._handleStringFormatting("tab"),e.preventDefault()):this.inherited(arguments)}},_handleFormatting:function(e,t,n){return i.handleFormatting(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(232),i(219),i(486)],o=i.dj.d(n,(function(e,t,i,n,o,r){return r.deprecated({deprecated:{module:"mw-facade/MatlabFacade"},replacement:{module:"mw-remote/Remote"}}),e(null,{constructor:function(e){o.start(),this._config=e||{},this._registerHandlers()},_config:{},_registerHandlers:function(){var e=this._config;n.registerFaultHandler("Eval",(function(n,o){i.error("Error: "+n.code+", "+n.message),o&&t.isFunction(o.errorCallback)?o.errorCallback(n):t.isFunction(e.errorCallback)&&e.errorCallback(n)})),n.registerResponseHandler("EvalResponse",(function(n,o){i.info("eval response"),o&&t.isFunction(o.evalCallback)?o.evalCallback(n):t.isFunction(e.evalCallback)&&e.evalCallback(n)})),n.registerFaultHandler("FEval",(function(n,o){i.error("Error: "+n.code+", "+n.message),o&&t.isFunction(o.errorCallback)?o.errorCallback(n):t.isFunction(e.errorCallback)&&e.errorCallback(n)})),n.registerResponseHandler("FEvalResponse",(function(n,o){i.info("feval response"),o&&t.isFunction(o.fevalCallback)?o.fevalCallback(n):t.isFunction(e.evalCallback)&&e.evalCallback(n)}))},executionEval:function(e){t.isString(e)&&(e={matlabcode:e});var i=e.matlabcode;n.sendMessage({Eval:{mcode:i}},e)},feval:function(e){e.arguments=e.arguments||[],e.nargout=e.nargout||0,n.sendMessage({FEval:{function:e.function,arguments:e.arguments,nargout:e.nargout}},e)},publish:o.publish,subscribe:o.subscribe,unsubscribe:o.unsubscribe})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(376)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.editors.UITableEditor",[t],{_setUIValue:function(e){var t=e;try{null==e&&(t="")}catch(e){}this._inputBox.set("value",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(286),i(259)],o=i.dj.d(n,(function(e,t,i){return e(i.validate([t]),{_isMenuOpenable:!1,_handleArrowNodeMouseDown:function(e){this._isMenuOpenable&&this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(385),i(651),i(211),i(235),i(764),i(1678),i(8923),i(215),i(216),i(255),i(359),i(8927)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e("inspector_client.widget.InspectorClientManager",[d,u,h,p],{templateString:f,alphaWidget:{},groupedWidget:{},alphaWidgetName:"alphabeticalWidget",groupedWidgetName:"groupedWidget",_propertyValueChangedHandler:{},_actionEventHandler:{},_viewChangedHandler:{},numOfProperties:0,hasGroup:!1,args:{},currObjectID:"",objectCache:{},constructor:function(e){e||(e={}),this.numOfProperties=0,this.hasGroup=!1,this.currObjectID="",this._initWidgets(e),this.args=e},postCreate:function(){this.domNode&&!this.domNode.hasAttribute("data-tag")&&this.domNode.setAttribute("data-tag",a.concatenateDataTagStrings(this.dataTagRoot,"inspectorClientManager")),this.domNode&&this.cssSpecifier&&!i.contains(this.domNode,this.cssSpecifier)&&i.add(this.domNode,this.cssSpecifier)},_initWidgets:function(e){e.plugins&&(this._plugins=e.plugins),this.alphaWidget=new l({application:e.application,inspectorId:e.inspectorId,dataTagRoot:e.dataTagRoot,cssSpecifier:e.cssSpecifier,widgetName:this.alphaWidgetName,showGroups:!1,otherArgs:e}),this.groupedWidget=new l({application:e.application,inspectorId:e.inspectorId,dataTagRoot:e.dataTagRoot,cssSpecifier:e.cssSpecifier,widgetName:this.groupedWidgetName,showGroups:!0,otherArgs:e}),this.toolbar=new c,this.toolbar.addEventListener("viewChange",t.hitch(this,"_handleViewChange")),this.toolbar.addEventListener("search",t.hitch(this,"_handleSearch")),this.toolbar.startup(),e.objectBrowser&&(this._objectBrowser=e.objectBrowser,this._objectBrowser.on("actionEvent",t.hitch(this,"_handleActionEvent"))),this._actionEventHandler=t.hitch(this,"_handleActionEvent"),this._propertyValueChangedHandler=t.hitch(this,"_propertyValueChanged"),this._metaDataChangedHandler=t.hitch(this,"_metaDataChanged"),this._viewChangedHandler=t.hitch(this,"_viewPropertiesChanged")},_reinitWidgets:function(){this.alphaWidget=new l({application:this.alphaWidget.application,inspectorId:this.alphaWidget.inspectorId,dataTagRoot:this.alphaWidget.dataTagRoot,cssSpecifier:this.alphaWidget.cssSpecifier,widgetName:this.alphaWidgetName,showGroups:!1,otherArgs:this.args}),this.groupedWidget=new l({application:this.alphaWidget.application,inspectorId:this.alphaWidget.inspectorId,dataTagRoot:this.alphaWidget.dataTagRoot,cssSpecifier:this.alphaWidget.cssSpecifier,widgetName:this.groupedWidgetName,showGroups:!0,otherArgs:this.args})},_viewRestored:function(){},inspect:function(e,t){this.alphaWidget.propertySheet&&!1===this.alphaWidget.propertySheet.isCached&&this.alphaWidget.propertySheet.destroy(),this.groupedWidget&&this.groupedWidget.propertySheet&&!1===this.groupedWidget.propertySheet.isCached&&this.groupedWidget.propertySheet.destroy(),this.numOfProperties=0,this.hasGroup=!1,e.propertySheet&&e.propertySheet.properties&&(this.numOfProperties=e.propertySheet.properties.length),e.propertySheet&&e.propertySheet.groups&&(this.hasGroup=Array.isArray(e.propertySheet.groups)&&e.propertySheet.groups.length>0),this._objectBrowser&&this._objectBrowser.refresh(e),a.closeTooltips(),this.currObjectID=e.id?e.id:e.className;var i="__pagedata__",n=!1;this.currObjectID&&0===this.currObjectID.indexOf(i)&&(this.currObjectID=this.currObjectID.substring(i.length,this.currObjectID.length),n=!0);var o=!0,s=this.currObjectID in this.objectCache,l=s&&this.objectCache[this.currObjectID].numOfProperties===this.numOfProperties,c=e.objects&&e.objects.length&&1===e.objects.length;if(!s||!n){if(s&&l&&c&&!n){var d=this.objectCache[this.currObjectID];this.alphaWidget=d.alphaWidget,this.groupedWidget=d.groupedWidget,Object.keys(e.objects[0]).forEach(function(t){for(var i,n,o=0,r=e.propertySheet.properties.length;o<r;o+=1)if(e.propertySheet.properties[o].name===t){i=e.propertySheet.properties[o];break}i&&(n={dataType:i.dataType,isMetaData:a.getLogicalValue(e.objects[0][t].isMetaData,!1)},i.rendererProperties&&(n=a.mergeObjects(n,i.rendererProperties)),i.editorProperties&&(n=a.mergeObjects(n,i.editorProperties)),i.inPlaceEditorProperties&&(n=a.mergeObjects(n,i.inPlaceEditorProperties))),n?this.alphaWidget.updatePropertyValueAndState(t,e.objects[0][t],n):this.alphaWidget.updatePropertyValue(t,e.objects[0][t]),d.groupedWidget&&(n?this.groupedWidget.updatePropertyValueAndState(t,e.objects[0][t],n):this.groupedWidget.updatePropertyValue(t,e.objects[0][t]))}.bind(this)),o=(!d.view||"alphabetical"!==d.view)&&!!this.groupedWidget,this._viewRestored()}else{var u=this.currObjectID&&c;this.alphaWidget&&(this._reinitWidgets(),this.alphaWidget.inspect(e,t),this.alphaWidget.propertySheet&&(this.alphaWidget.propertySheet.isCached=u),u&&(this.objectCache[this.currObjectID]={alphaWidget:this.alphaWidget})),this.groupedWidget&&this.hasGroup&&(this.groupedWidget.inspect(e,t),this.groupedWidget.propertySheet&&(this.groupedWidget.propertySheet.isCached=u),u&&(this.objectCache[this.currObjectID].groupedWidget=this.groupedWidget)),u&&(this.objectCache[this.currObjectID].numOfProperties=this.numOfProperties)}if(this.groupedWidget&&this.hasGroup||(this.groupedWidget&&this.groupedWidget.domNode&&r.empty(this.groupedWidget.domNode),this.groupedWidget&&this.groupedWidget.propertySheet&&this.groupedWidget.propertySheet.destroy&&this.groupedWidget.propertySheet.destroy(),o=!1),this._clearOldListeners(),this._setupWigetListeners(),this.domNode&&r.empty(this.domNode),this.toolbar&&this.toolbar.domNode&&this.domNode&&r.place(this.toolbar.domNode,this.domNode),this.groupedWidget&&this.groupedWidget.domNode&&this.domNode&&this.hasGroup&&o?r.place(this.groupedWidget.domNode,this.domNode):this.alphaWidget&&this.alphaWidget.domNode&&this.domNode&&r.place(this.alphaWidget.domNode,this.domNode),this.toolbar){var h=!0;e.hasOwnProperty("timerRunning")&&void 0!==e.timerRunning&&(h=e.timerRunning),this.toolbar.showTimerWarning(!h)}if(this._updatebuttonProperties(o),this.toolbar&&this.toolbar.searchTextField&&this.toolbar.searchTextField.handleClear&&(this.toolbar.searchTextField.handleClear(),this.alphaWidget&&this.alphaWidget.propertySheet&&this.alphaWidget.propertySheet._handleSearch({substring:""})),d&&d.scrollTop){var p=this.domNode.querySelector(".propertySetOuterContainer");p&&(p.scrollTop=d.scrollTop)}}},updatePropertyValue:function(e,t){this.alphaWidget&&this.alphaWidget.updatePropertyValue(e,t),this.groupedWidget&&this.hasGroup&&this.groupedWidget.updatePropertyValue(e,t)},destroy:function(){this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild&&this.domNode.parentNode.removeChild(this.domNode)},clearObjectCache:function(){Object.keys(this.objectCache).forEach(function(e){var t=this.objectCache[e];t.alphaWidget&&t.alphaWidget.destroy(),t.groupedWidget&&t.groupedWidget.destroy()}.bind(this)),this.objectCache={}},_handleViewChange:function(e){var t;e.data.buttonName&&e.data.buttonName===this.toolbar.GROUP_VIEW&&this.groupedWidget.domNode&&this.domNode.lastChild&&this.groupedWidget.domNode!==this.domNode.lastChild&&(r.place(this.groupedWidget.domNode,this.domNode.lastChild,"replace"),t="grouped"),e.data.buttonName&&e.data.buttonName===this.toolbar.ALPHA_VIEW&&this.alphaWidget.domNode&&this.domNode.lastChild&&this.alphaWidget.domNode!==this.domNode.lastChild&&(r.place(this.alphaWidget.domNode,this.domNode.lastChild,"replace"),t="alphabetical"),(!e.data.viewChangeType||e.data.viewChangeType&&"search"!==e.data.viewChangeType)&&this._viewPropertiesChanged({type:"viewChange",data:{view:t}})},_handleSearch:function(e){this.alphaWidget&&this.alphaWidget.propertySheet&&this.alphaWidget.propertySheet._handleSearch(e.data)},_handleActionEvent:function(e){e&&e.data&&this._redispatchEvent(e)},_metaDataChanged:function(e){if(e&&e.data&&"objectBrowserMetaData"===e.data.propertyName){var t=JSON.parse(e.data.newValue);Object.getOwnPropertyNames(t).forEach((function(e){t[e]=t[e].map(JSON.parse)})),this._objectBrowser.refresh(t)}},_propertyValueChanged:function(e){if(e&&e.data){if(this.hasGroup){if(e.data.newValue)var t={value:e.data.newValue,editValue:e.data.newValue,source:"client"};e.data.widgetName&&"alphabeticalWidget"===e.data.widgetName&&t&&e.data.propertyName&&this.groupedWidget.updatePropertyValue(e.data.propertyName,t),e.data.widgetName&&"groupedWidget"===e.data.widgetName&&t&&e.data.propertyName&&this.alphaWidget.updatePropertyValue(e.data.propertyName,t)}this._redispatchEvent(e)}},_viewPropertiesChanged:function(e){e&&e.data&&this.currObjectID&&this.objectCache[this.currObjectID]&&("viewPosition"===e.type&&e.data&&void 0!==e.data.scrollTop?this.objectCache[this.currObjectID].scrollTop=e.data.scrollTop:"viewChange"===e.type&&(this.objectCache[this.currObjectID].view=e.data.view))},_redispatchEvent:function(e,t){if(e&&e.data){t||(t={});var i=a.mergeObjects(e.data,t);try{this.dispatchEvent(e.type,this,i)}catch(e){}}},_clearOldListeners:function(){this.alphaWidget.removeEventListener&&(this.alphaWidget&&this.alphaWidget.hasEventListener("propertyValueChanged",this._propertyValueChangedHandler)&&(this.alphaWidget.removeEventListener("propertyValueChanged",this._propertyValueChangedHandler),this.alphaWidget.removeEventListener("viewPosition",this._viewChangedHandler),this.alphaWidget.removeEventListener("actionEventOccured",this._actionEventHandler)),this.groupedWidget&&this.hasGroup&&this.groupedWidget.hasEventListener("propertyValueChanged",this._propertyValueChangedHandler)&&(this.groupedWidget.removeEventListener("propertyValueChanged",this._propertyValueChangedHandler),this.groupedWidget.removeEventListener("viewPosition",this._viewChangedHandler),this.groupedWidget.removeEventListener("actionEventOccured",this._actionEventHandler)))},_setupWigetListeners:function(){this.alphaWidget&&this.alphaWidget.addEventListener&&(this.alphaWidget.addEventListener("propertyValueChanged",this._propertyValueChangedHandler),this.alphaWidget.addEventListener("viewPosition",this._viewChangedHandler),this.alphaWidget.addEventListener("actionEventOccured",this._actionEventHandler)),this.groupedWidget&&this.hasGroup&&this.groupedWidget.addEventListener&&(this.groupedWidget.addEventListener("propertyValueChanged",this._propertyValueChangedHandler),this.groupedWidget.addEventListener("viewPosition",this._viewChangedHandler),this.groupedWidget.addEventListener("actionEventOccured",this._actionEventHandler))},_updatebuttonProperties:function(e){0===this.numOfProperties&&this.toolbar&&(this.toolbar.updateButton(this.toolbar.GROUP_VIEW,"disabled",!0),this.toolbar.updateButton(this.toolbar.ALPHA_VIEW,"disabled",!0),this.toolbar.updateButton(this.toolbar.GROUP_VIEW,"checked",!1),this.toolbar.updateButton(this.toolbar.ALPHA_VIEW,"checked",!1)),0!==this.numOfProperties&&this.toolbar&&(this.hasGroup?(this.toolbar.updateButton(this.toolbar.GROUP_VIEW,"disabled",!1),this.toolbar.updateButton(this.toolbar.ALPHA_VIEW,"disabled",!1),e?(this.toolbar.updateButton(this.toolbar.GROUP_VIEW,"checked",!0),this.toolbar.updateButton(this.toolbar.ALPHA_VIEW,"checked",!1)):(this.toolbar.updateButton(this.toolbar.GROUP_VIEW,"checked",!1),this.toolbar.updateButton(this.toolbar.ALPHA_VIEW,"checked",!0))):(this.toolbar.updateButton(this.toolbar.GROUP_VIEW,"disabled",!0),this.toolbar.updateButton(this.toolbar.ALPHA_VIEW,"disabled",!1),this.toolbar.updateButton(this.toolbar.GROUP_VIEW,"checked",!1),this.toolbar.updateButton(this.toolbar.ALPHA_VIEW,"checked",!0)))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(1260),i(235)],o=i.dj.d(n,(function(e,t,i,n){function o(e){return e.meta.richEditorProperties&&e.meta.richEditorProperties.richEditable?e.meta.richEditorProperties.richEditable:e.meta.editable}return{renderPropertyEditorGroup:function(e,t,r){const a=e.propertySheet,s=i.getItemModuleByType(t.type),l=t.items.map((function(e){return{meta:a.getPropertySet(e.name),propertyName:e.name}})),c=require(s),d=function(e){for(var t=null,i=0,n=e.length;i<n;i+=1){var r=e[i];if(r.meta&&r.meta.inPlaceEditorProperties&&r.meta.inPlaceEditorProperties.richEditor){t=r;break}}return t?{editorModule:t.meta.inPlaceEditorProperties.richEditor,editable:o(t)}:null}(l),u=function(e){for(var t,i=[],n=[],o=0,r=e.length;o<r;o+=1){var a=e[o];i.push(a.propertyName),a.meta&&a.meta.inPlaceEditorProperties&&a.meta.inPlaceEditorProperties.richEditorDependencies&&(n=a.meta.inPlaceEditorProperties.richEditorDependencies)}return t=i,n.forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),i}(l),h=new c({numberOfChild:t.items.length});h.placeAt(r),h.startup();const p=t.items.map((function(e){return e.name})).join("_"),f=n.concatenateDataTagStrings("datatools","inspector","propertySheet","propertyEditorGroup",p);if(h.propertyGroupEditorNode.setAttribute("data-tag",f),d&&d.editable&&d.editorModule){const t=require(d.editorModule);h.on("richeditoropened",(function(i){if(!i.editor){const i=u.map((function(t){return{meta:a.getPropertySet(t),propertyName:t,values:e.objectProps[t],plugins:e.plugins,clipboardService:e.clipboardService}})),n=new t(i);e._registerGroupEditorDependencies(u,n),e._registerForStateChange(u,n),h.addEditor(n),n.startup(),n.addEventListener("propertyValueChanged","_propertyValueChanged",e),n.own({destroy:function(){n.hasEventListener("propertyValueChanged","_propertyValueChanged",e)&&n.removeEventListener("propertyValueChanged","_propertyValueChanged",e)}})}e.propertySets&&e.propertySets[l[0].propertyName]&&e.propertySets[l[0].propertyName].selectPropertySet()}))}else h.disableEditor();return h}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1679),i(1680),i(1679),i(1680),i(2696),i(2697),i(2695),i(8909),i(8911),i(8912),i(8913),i(2698),i(2699),i(2700),i(2701),i(2702),i(2703),i(8914),i(8915),i(2704),i(8916),i(8917)],o=i.dj.d(n,(function(e){return e("inspector_client.editors.EditorManifest",[],{constructor:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(211),i(8906),i(222),i(213),i(210),i(212),i(215),i(216),i(255),i(214),i(531),i(2160),i(239),i(8907)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){var _=[p.PLUGINS.ContextMenu,p.PLUGINS.MultipleNodeSelection];return e([c,d,r],{templateString:o,_treeWidget:null,constructor:function(e){e&&(e.lookAheadNodeBuffer&&(this._lookAheadNodeBuffer=e.lookAheadNodeBuffer),e.treeData&&(this._treeDataModel=new m(e.treeData)),e.treeContextMenu&&(this._contextMenu=e.treeContextMenu),e.treeNodeRenderer&&(this._treeNodeRenderer=e.treeNodeRenderer),e.treeEditor&&(this._treeEditor=e.treeEditor),e.designTimeEventsConfig&&(this._designTimeEventsConfig=e.designTimeEventsConfig),e.htmlDnD&&(this._htmlDnD=e.htmlDnD),e.deleteActionConfig&&(this._deleteActionConfig=e.deleteActionConfig))},postCreate:function(){this.inherited(arguments),this._treeDataModel&&this._initTree()},_initTree:function(){var e={plugins:_};this._treeNodeRenderer&&(e.renderer=this._treeNodeRenderer,e.editor={type:p.EDITORS.DefaultEditor}),this._treeEditor&&(e.editor={type:this._treeEditor}),this._designTimeEventsConfig&&(e.designTimeEventsConfig=this._designTimeEventsConfig),this._htmlDnD&&e.plugins.push(f),this._deleteActionConfig&&(e.actions={},e.actions[p.ACTIONS.DELETE]=this._deleteActionConfig),e.lookAheadNodeBuffer=this._lookAheadNodeBuffer,this._treeWidget=new p(this._treeDataModel.getDataStore(),e),this.own(this._treeWidget),n.place(this._treeWidget.domNode,this.treeContainerNode),this._treeWidget.startup(),this._treeWidget.expandAll(),this._delayedResizeTimer=setTimeout(this._delayedResizeCallback.bind(this),100),this._setupContextMenu(),this.own(this._treeWidget.on("selectionChanged",this._treeSelectionChanged.bind(this))),e.editor&&this.own(this._treeWidget.on("editCompleted",this._editCompleteCallback.bind(this))),this._deleteActionConfig&&this.own(this._treeWidget.on("deleteActionCompleted",this._deleteCompleteCallback.bind(this))),this.own(this._treeWidget.on("expanded",this._treeExpanded.bind(this)))},_delayedResizeCallback:function(){this.treeContainerNode&&this.treeContainerNode.clientHeight>0&&(this.emit("parented",{}),this._treeWidget.resize(),clearTimeout(this._delayedResizeTimer))},_setupContextMenu:function(){this._contextMenu&&(this._contextMenu.setTargetNode(this._treeWidget),this.own(this._contextMenu.on("contextMenuEvent",this._contextMenuEventCallback.bind(this))),this.own(this._contextMenu.on("menuClosed",this._contextMenuCloseCallback.bind(this))),this.own(this._treeWidget.on("contextMenu",this._contextMenuOpenCallback.bind(this))))},_contextMenuOpenCallback:function(e){if(e.target&&e.target.nodeId){var t=this.getSelectedNodes();0===t.length?t.push(e.target.nodeId):t.indexOf(e.target.nodeId)<0&&(this._treeWidget.setSelection([{id:e.target.nodeId}]),this._treeSelectionChanged({nodeIds:e.target.nodeId}),t=[e.target.nodeId]),this._openMenu(e,t[0])}},_openMenu:function(e,t){var n=this._treeDataModel.getNodeData(t);n&&n.then(i.hitch(this,(function(t){t&&this._contextMenu.open(e.left,e.top,t.node.data)})))},_contextMenuEventCallback:function(e){var t=this.getSelectedNodes();0===t.length&&t.push(e.id);var i={actionType:e.actionType,affectedNodes:t};"propertyChanged"===e.actionType&&(this._treeDataModel.updateNodeData(t,e.propertyName,e.value),i.value=e.value,i.propertyName=e.propertyName),"delete"===e.actionType&&this._treeDataModel.deleteNode(t),this.emit("treeAction",i)},_contextMenuCloseCallback:function(){setTimeout(i.hitch(this,(function(){this._treeWidget.focus()})),0)},getSelectedNodes:function(){var e=[];return this._treeWidget.getSelection().forEach((function(t){e.push(t.id)})),e},_treeSelectionChanged:function(e){this.emit("treeAction",{actionType:"objectSelectionChanged",affectedNodes:e.nodeIds,selectionCriteria:"childOrder"})},_editCompleteCallback:function(e){this.emit("treeAction",{actionType:"propertyChanged",affectedNodes:e.nodeId,propertyName:"displayName",oldValue:e.oldValue.label,value:e.newValue.label})},_deleteCompleteCallback:function(e){this.emit("treeAction",{actionType:"deleteActionCompleted",affectedNodes:e.id})},_treeExpanded:function(e){this.emit("expanded",e)},getNumberOfNodes:function(){return this._treeDataModel.getDataStore()._dataSize.rows.count},getDataModel:function(){return this._treeDataModel},refreshData:function(e){this._treeDataModel||(this._treeDataModel=new m(e)),this._treeWidget||this._initTree(),this._treeDataModel.replaceAll(i.clone(e)),this.updateSelection(e)},updateSelection:function(e){this._updateSelectionExecution(e).then(i.hitch(this,(function(){this._treeWidget.resize()})))},_updateSelectionExecution:function(e){var t=new l,n=e.filter((function(e){return"on"===e.selected})),o=n.map((function(e){return{id:e.id}}));if(this._treeWidget.setSelection(o),n.length>0){var r=!1;n.reverse().forEach(i.hitch(this,(function(e){var n=this._treeDataModel.getDataStore().expandTo({id:e.id});n&&n.then(i.hitch(this,(function(e){!r&&e&&(r=!0,this.scrollIfNotInView(e.node.data.id).then((function(){t.resolve()})))})))})))}return t},forceScrollToCurrentSelection:function(){var e=this.getSelectedNodes();Array.isArray(e)&&e.length>0?this._treeWidget.scrollTo({id:e[e.length-1]}):this._treeWidget.scrollTo(p.FIRST_NODE)},scrollToCurrentSelection:function(){var e=this.getSelectedNodes();e.length>0&&this.scrollIfNotInView(e[e.length-1])},scrollIfNotInView:function(e){var t=new l;if(!this._treeWidget._treeView)return t.reject(),t;g.isRangeInside(this._treeDataModel._dataStore.dataSize,this._treeWidget._treeView._viewModel.viewPort.rangeList[0])?this._treeDataModel.getDataStore().getData(this._treeWidget._treeView._viewModel.viewPort.rangeList).then(i.hitch(this,(function(i){i[0].some((function(t){return t[0].id===e}))||(this._treeWidget.scrollTo({id:e}),t.resolve())})),i.hitch(this,(function(){this._treeWidget.scrollTo(p.FIRST_NODE),t.resolve()}))):(this._treeWidget.scrollTo({id:e}),t.resolve());return t},focusNode:function(e){e?this._treeWidget.setNodeFocus(e):this._treeWidget.setNodeFocus()},expandTree:function(){this._treeWidget.expandAll()},collapseNodes:function(e){return this._treeDataModel.getDataStore().collapse(e)},expandNode:function(e){return this._treeDataModel.getDataStore().expandTo({id:e})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(317),i(288),i(603),i(8908)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s={HIDE:r.hide,SHOW:r.show,DELETE:r.delete};return e([a],{_initMenusItems:function(e,i,r,a){if(r||(r=s),this._targetNode){for(var l in this._contextMenu?this._contextMenu.getChildren().forEach((function(e){e.destroy()})):this._contextMenu=new n({targetNodes:[this._targetNode]}),r){var c=new o({text:r[l]});c.on("click",t.hitch(this,(function(e){for(var t in s)if(s[t]===e.mwEventData.value){this._processEventAndEmit(t,a);break}}))),this._contextMenu.addChild(c)}this._contextMenu.on("close",t.hitch(this,(function(e){this._menuClosed()}))),this._contextMenu.open({x:e,y:i})}},open:function(e,i,n){if(n.id>1&&!n.propName){var o=t.clone(s);n&&("on"===n.visible?delete o.SHOW:delete o.HIDE),this._initMenusItems(e,i,o,n.id)}},_processEventAndEmit:function(e,t){var i={id:t};s[e]===s.SHOW||s[e]===s.HIDE?(i.actionType="propertyChanged",i.propertyName="visible",i.value=s[e]===s.SHOW?"on":"off"):s[e]===s.DELETE&&(i.actionType="delete"),this._emitEvent(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1505)],o=i.dj.d(n,(function(e){"use strict";return{getDomNode:function(e){var t,i,n=document.createElement("span");n.className="mw-tree-renderer";var o=e.iconUri;if(!o)if(Array.isArray(e.rgbData)){var r=Math.sqrt(e.rgbData.length/4),a=new window.ImageData(new Uint8ClampedArray(e.rgbData),r,r),s=document.createElement("canvas");s.height=r,s.width=r,s.getContext("2d").putImageData(a,0,0),o=s.toDataURL()}else"defaultIcon"===e.rgbData&&(o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMElEQVQ4T2NkoBAwUqifYdQAhmETBjt27Ph/4sQJopOEhYUFg4eHBzgJjKaDwRAGABdYBxEDnx3+AAAAAElFTkSuQmCC");return o&&((i=document.createElement("span")).setAttribute("data-test-id","icon1"),i.className="treeNodeIcon",i.style.backgroundImage="url('"+encodeURI(o)+"')",n.appendChild(i)),t=this._getLabelDOMNode(e),n.appendChild(t),e.visible&&"off"===e.visible&&(n.style.color="darkgrey"),n},_getLabelDOMNode:function(e){var t=document.createElement("span");return t.className="treeNodeText",t.setAttribute("data-test-id","label"),e.hasOwnProperty("isReadOnly")&&!e.isReadOnly&&t.setAttribute("data-region",!0),t.textContent=e.label,t}}}),e,t),e.exports=o},function(e,t){e.exports='<div class="inspector propertyGroup" data-dojo-attach-point="inspectorGroupPropertySheet">\n <div class="inspector propertySetOuterContainer group">\n <div class="inspector properties" data-dojo-attach-point="containerNode"></div>\n </div>\n</div>\n'},function(e,t){e.exports='<div class="inspector propertyGroup propertyEditorGroup" data-dojo-attach-point="inspectorGroupPropertySheet">\n <div class="inspector propertySetOuterContainer group">\n <div class="inspector properties propertySetContainer" data-dojo-attach-point="containerNode"></div>\n <div class="propertyGroupEditor" data-dojo-attach-point="propertyGroupEditorNode" >\n\n </div>\n </div>\n\n</div>\n'},function(e,t){e.exports='<div class="inspector propertySet" data-dojo-attach-point="inspectorPropertySet">\n <div class="inspector propertyName" data-datatools-inspector-attach-point="inspectorPropertyName">${PropertyName}</div>\n <div class="inspector propertyValue" data-datatools-inspector-attach-point="inspectorPropertyValue"></div>\n</div>'},function(e,t){e.exports='<div class="inspector propertyGroup propertySubGroup" data-dojo-attach-point="inspectorGroupPropertySheet">\n <div class="inspector propertySetOuterContainer group">\n <div class="inspector properties subGroupProperties" data-dojo-attach-point="containerNode"></div>\n </div>\n <div data-dojo-type="mw-form/PushButton" data-dojo-attach-point="showMoreButton" class="property-more" data-dojo-attach-event="click:expandOrCollapse"></div>\n</div>\n'},function(e,t){e.exports='<div class="inspector propertySheet propertySheet-noGroupEditor" data-dojo-attach-point="inspectorPropertySheet">\n <div class="inspector propertySetOuterContainer">\n <div class="inspector properties" data-dojo-attach-point="containerNode"></div>\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(235),i(764),i(604)],o=i.dj.d(n,(function(e,t,i,n){function o(e){return void 0!==e.editValue?e.editValue:e}return e([n],{templateString:"<div class='propertyFieldsEditor'></div>",constructor:function(e){if(e.length>1)throw new Error("property fields editor could only handle fields for one property");this._propertySetInfo=e[0];var t=require("inspector_client/widget/InspectorWidget");this._inspectorWidget=new t({template:"inspector_client/templates/inspectorPropertySheetWithoutHeader.html",application:"EmbeddedInspectorInRichEditor",sortProperties:!1}),this._propertyName=this._propertySetInfo.propertyName,this._states=this._propertySetInfo.meta.richEditorProperties,this._oldValue=o(this._propertySetInfo.values[0]),this._value=o(this._propertySetInfo.values[0]),this._currObjProperties=this._getObjForEdit(this._states,this._value),this._inspectObject()},_inspectObject:function(){if(this._propertySetInfo.meta.richEditorProperties&&this._propertySetInfo.meta.richEditorProperties.propertySheet){var e=new i({propertySheet:{properties:this._propertySetInfo.meta.richEditorProperties.propertySheet},objects:this._currObjProperties});this._inspectorWidget.inspect(e)}else this._inspectorWidget.inspect(this._currObjProperties)},postCreate:function(){this._inspectorWidget.placeAt(this.domNode),this._inspectorWidget.addEventListener("propertyValueChanged",this._propertyValueChanged.bind(this))},updateState:function(e,t){this._states=e},_updateEditor:function(e){this._oldValue=this._value,this._value=o(e[0]);var t=this._currObjProperties;this._currObjProperties=this._getObjForEdit(this._states,this._value),JSON.stringify(t)!==JSON.stringify(this._currObjProperties)&&this._inspectObject()},_getObjForEdit:function(e,i){var n,o=parseInt(e.numElements,10),r=e.fields;if("string"==typeof i){var a=0===i.indexOf("[")&&i.indexOf("]")===i.length-1;-1!==i.indexOf('"')?(!1===a&&(i="["+i+"]"),n=JSON.parse(i)):(!0===a&&(i=i.substring(1,i.length-1)),n=i.trim().split(","))}else n=i;var s,l=this._isNumeric(e),c={};for(s=0;s<o;s+=1)if(s>=n.length)c[r[s]]=0;else{var d=n[s];d&&d.toLowerCase&&"-inf"===d.toLowerCase()?c[r[s]]="-Inf":d&&d.toLowerCase&&"inf"===d.toLowerCase()?c[r[s]]="Inf":d&&d.toLowerCase&&"nan"===d.toLowerCase()?c[r[s]]="NaN":c[r[s]]=l?t.filterFloat(d):d}return c},_isNumeric:function(e){var t=!0;return e.classname&&("categorical"!==e.classname&&"datetime"!==e.classname&&"duration"!==e.classname&&"cell"!==e.classname||(t=!1)),t},_convertToArray:function(e,t){var i,n=parseInt(e.numElements,10),o=e.fields,r=[];for(i=0;i<n;i+=1)r[i]=t[o[i]];return r},_propertyValueChanged:function(e){if(e&&e.data){var i=e.data.propertyName,n=this._isNumeric(this._states),o=this._currObjProperties,r=JSON.parse(JSON.stringify(o)),a=e.data.newValue;a&&a.toLowerCase&&"-inf"===a.toLowerCase()?r[i]="-Inf":a&&a.toLowerCase&&"inf"===a.toLowerCase()?r[i]="Inf":a&&a.toLowerCase&&"nan"===a.toLowerCase()?r[i]="NaN":!n||isNaN(t.filterFloat(a))?r[i]=a:r[i]=t.filterFloat(a);var s=this._convertToArray(this._states,o),l=this._convertToArray(this._states,r);this._oldValue=s,this._value=l,this._currObjProperties=r,this._commitValue(this._propertyName,s,l,"client")}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(604),i(764),i(206),i(213),i(210),i(212),i(232),i(223),i(222),i(235),i(211),i(204),i(603)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([t,c],{_REMOTE_CLASSIFIER:"FEvalDataTipsRichEditor",templateString:"<div class='dataTipsRichEditor'></div>",_defaultValue:null,_rowIndex:0,_topHeight:0,_CELLHEIGHT:19,_VALUE_TOOLTIP:p.dataTipValueTooltip,_FORMAT_TOOLTIP:p.dataTipFormatTooltip,_LABEL_TOOLTIP:p.dataTipLabelTooltip,_isValueValid:!0,_isFormatValid:!0,_currentPropertySet:"",_keyDownListener:null,_mouseUpListener:null,_sourceList:null,_formatList:null,constructor:function(e){this._registerRemoteService();var t=require("inspector_client/widget/InspectorWidget");this._inspectorWidget=new t({template:"inspector_client/templates/inspectorPropertySheetWithoutHeader.html",application:"EmbeddedDataTipsRichEditor",sortProperties:!1,plugins:void 0}),this._sourceList=[],this._formatList=[],this._defaultValue=["",[],"auto"],this._propertyName="DataTipRows",this._states=e,this._oldValue=this._defaultValue,this._value=this._defaultValue,this._currObjProperties=this._getObjForEdit(this._states,this._value),this.propertySheet={properties:[{name:"Label",displayName:p.dataTipLabelProp,tooltip:this._LABEL_TOOLTIP,dataType:"char",renderer:"rendererseditors/editors/CharEditor",inPlaceEditor:"rendererseditors/editors/CharEditor",editor:null,editable:!0},{name:"Value",displayName:p.dataTipValueProp,tooltip:this._VALUE_TOOLTIP,dataType:"char",renderer:"inspector_client/editors/datatiprowseditor/DataTipsCustomValueEditor",inPlaceEditor:"inspector_client/editors/datatiprowseditor/DataTipsCustomValueEditor",inPlaceEditorProperties:{categories:[],isProtected:!1,showUndefined:!1,showDropDownArrow:!1},editor:null,editable:!0},{name:"Format",displayName:p.dataTipFormatProp,tooltip:this._FORMAT_TOOLTIP,dataType:"char",renderer:"rendererseditors/editors/ComboBoxEditor",inPlaceEditor:"rendererseditors/editors/ComboBoxEditor",inPlaceEditorProperties:{categories:[],isProtected:!1,showUndefined:!1,showDropDownArrow:!1,rowIndex:0},editor:null,editable:!0}]};var n=new i({propertySheet:this.propertySheet,objects:[this._currObjProperties]});this._inspectorWidget.inspect(n)},_registerRemoteService:function(){s.registerResponseHandler("FEvalResponse:"+this._REMOTE_CLASSIFIER,this._handleEvalResponse,this),s.registerFaultHandler("FEval:"+this._REMOTE_CLASSIFIER,this._handleEvalError,this)},recalculateRichEditorOffsetHeight:function(){this.isDialogShowing()&&o.set(this.domNode,"margin-top",this._topHeight-this._CELLHEIGHT+"px")},postCreate:function(){this.domNode.innerText="",r.add(this.domNode,"dataTipsRichEditor"),r.add(this.domNode,"mwHasMenuOpened"),this._inspectorWidget.placeAt(this.domNode),this._keyDownListener=n.pausable(document,"keydown",h.hitch(this,this._handleKeyboardEvent)),this._inspectorWidget.addEventListener("propertyValueChanged",this._propertyValueChanged.bind(this)),this._mouseUpListener=n.pausable(document,"mouseup",h.hitch(this,this._hideRichEditor))},_handleKeyboardEvent:function(e){var t=this._getKeyCode(e);(t>64&&t<91&&(e.ctrlKey||e.metaKey)||null!==t&&t===l.ESCAPE)&&this.showDialog(!1)},forceClose:function(e){this.showDialog(!1)},_hideRichEditor:function(e){e.target!==this.domNode&&!this.domNode.contains(e.target)&&this.isDialogShowing()&&this.showDialog(!1)},isDialogShowing:function(){return null!==this.domNode&&void 0!==this.domNode&&r.contains(this.domNode,"show")},showDialog:function(e){e?(o.set(this.domNode,"margin-top",this._topHeight+"px"),r.add(this.domNode,"show")):(o.set(this.domNode,"margin-top","0px"),r.remove(this.domNode,"show"))},_updateEditor:function(e,t,i){var n;n=null==e?this._defaultValue:[e.label,e.formattedValue,e.format],null==i&&(i=e.rowNumber),this._oldValue=this._value,this._value=n,this._rowIndex=i,this._currObjProperties=this._getObjForEdit(this._states,this._value),this._topHeight=-t,this._getMATLABSourceFormatOptionList()},_setMATLABFormattingOptionList:function(e){if(e&&e[0]){this._sourceList=e[0].sourceData,this._formatList=e[0].formatData,this.propertySheet.properties[2].inPlaceEditorProperties.rowIndex=this._rowIndex,this.propertySheet.properties[1].inPlaceEditorProperties.categories=this._sourceList,this.propertySheet.properties[2].inPlaceEditorProperties.categories=this._formatList;var t=new i({propertySheet:this.propertySheet,objects:[this._currObjProperties]});this._inspectorWidget.inspect(t),this.showDialog(!0)}},_getMATLABSourceFormatOptionList:function(){this.getSourceFormatOptionList().then(h.hitch(this,(function(e){this._setMATLABFormattingOptionList(e)})))},getSourceFormatOptionList:function(){var e=new a,t=[this._rowIndex];return s.sendMessage({FEval:{function:"matlab.graphics.datatip.internal.DataTipRowHelper.getSourceAndFormatData",arguments:t,nargout:1,priority:1,dequeMode:"ppe"}},e,this._REMOTE_CLASSIFIER),e.promise},_getObjForEdit:function(e,t){var i,n=parseInt(e.numElements,10),o=e.fields,r={};for(i=0;i<n;i+=1)r[o[i]]=t[i];return r},_convertObject:function(e,t){var i,n=parseInt(e.numElements,10),o=e.fields,r=[];for(i=0;i<n;i+=1)"{}"===t[o[i]]&&(t[o[i]]=""),r[i]=t[o[i]];return r},_propertyValueChanged:function(e){if(e&&e.data){var t=e.data.propertyName;this._currentPropertySet=t;var i=this._currObjProperties,n=JSON.parse(JSON.stringify(i)),o=e.data.newValue;n[t]=o;var r=this._convertObject(this._states,i),a=this._convertObject(this._states,n);this._oldValue=r,this._value=a,this._currObjProperties=n,this._validateDataTipRowInMATLAB(this._rowIndex,t,o).then(h.hitch(this,(function(e){this._showErrorIfNeeded(e)})))}},_validateDataTipRowInMATLAB:function(e,t,i){var n=new a;return s.sendMessage({FEval:{function:"matlab.graphics.datatip.internal.DataTipRowHelper.validateDataTipRow",arguments:[e,t,i],nargout:1,priority:1,dequeMode:"ppe"}},n,this._REMOTE_CLASSIFIER),n.promise},_showErrorIfNeeded:function(e){var t=e[0],i=this.domNode.getElementsByClassName("vecombobox")[0],n=this.domNode.getElementsByClassName("vecombobox")[1];if(this._mouseUpListener.pause(),this._keyDownListener.pause(),"Value"===this._currentPropertySet?(this._isValueValid=t.isValid,this._isValueValid?r.remove(i,"errorState"):r.add(i,"errorState")):"Format"===this._currentPropertySet&&(this._isFormatValid=t.isValid,this._isFormatValid?r.remove(n,"errorState"):r.add(n,"errorState")),t.isValid&&this._isValueValid&&this._isFormatValid){this._mouseUpListener.resume(),this._keyDownListener.resume(),r.remove(n,"errorState"),r.remove(i,"errorState");var o=new window.Event("richEditorUpdated");o.data={rowData:this._value,rowIndex:this._rowIndex,propertyName:this._currentPropertySet},this.domNode.dispatchEvent(o)}else t.msg&&""!==t.msg&&d.displayErrorMessageWithSpecifiedWidth(t.msg,330)},_handleEvalError:function(e,t){var i=t;this._implementsDeferred&&this._implementsDeferred(i)&&i.reject(e)},_handleEvalResponse:function(e,t){var i=e,n=t;if(1===i[0].results.length)i[0].isError?n.reject(i[0].messageFaults[0].message):n.resolve(i[0].results);else{var o="Error: Expected 1 result message back from validateDataTipRow, received: "+e.length;n.reject(o)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1299)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){this._listeners={}},addEventListener:function(e,t,i){return this._addEventListener(this._listeners,e,t,i)},_addEventListener:function(e,t,i,n){n=n||this,e[t]=e[t]||[];var o={scope:n,callback:i},r={remove:function(){this.removeEventListener(t,i,n)}.bind(this)};return this._getEventListenerIndex(e,t,i,n)<0&&e[t].push(o),r},hasEventListener:function(e,t,i){return this._getEventListenerIndex(this._listeners,e,t,i)>=0},removeEventListener:function(e,t,i){this._removeEventListener(this._listeners,e,t,i)},_removeEventListener:function(e,t,i,n){n=n||this;var o=this._getEventListenerIndex(e,t,i,n);if(!(o>=0))throw new Error("Listener does not exist");e[t].splice(o,1)},_getEventListenerIndex:function(e,t,i,n){n=n||this;var o,r=e[t];if(r){var a=r.length;for(o=0;o<a;o+=1)if(r[o].scope===n&&r[o].callback===i)return o}return-1},notifyEventListeners:function(e,t,i,n){this._notifyEventListeners(this._listeners,e,t,i,n)},_notifyEventListeners:function(e,i,n,o,r){if(void 0!==o&&(o instanceof Array||"string"==typeof o||null===o||"number"==typeof o||"boolean"==typeof o))throw new Error("Invalid event data, must be object");var a,s=e[i];if(s){var l=(s=s.slice(0)).length;for(a=0;a<l;a+=1)try{var c={type:i,target:n||this,data:o||{},originator:r};"string"==typeof s[a].callback?s[a].scope[s[a].callback].call(s[a].scope,c):s[a].callback.call(s[a].scope,c)}catch(e){t.error("Error while dispatching event handler of type: "+i+", message: "+e)}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(232),i(641),i(856),i(233),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t],{constructor:function(e){e=e||{},this.shareCache=e.shareCache||{},this.wraService=e.wraService||{userInfo:{}},i.registerResponseHandler("GetShareInfoResponse",this._handleGetShareInfoResponse,this),i.registerResponseHandler("UpdateShareResponse",this._handleUpdateShareResponse,this)},getShareInfo:function(e){var t=this.shareCache[e];return t||((t={path:e,consumers:new o,onPendingChange:function(){}}).pending=!0,this.shareCache[e]=t,this._sendGetShareInfo(e)),t},updateShareInfo:function(e){e&&e.consumers?(this._sendUpdateShare(e.fileInfo,e.producer||{name:this.wraService.userInfo.userId},this._cloneConsumers(e.consumers.items),e.path),e.pending=!0,e.onPendingChange()):a.error("No cached share info, unable to update share info.")},clearClientCache:function(e){this.shareCache[e]&&delete this.shareCache[e]},onFault:function(e){},_sendGetShareInfo:function(e){i.sendMessage({GetShareInfo:{paths:[e]}},{path:e})},_handleGetShareInfoResponse:function(e,t){dojo.forEach(e,(function(e){var i;t.path&&this.shareCache[t.path]&&(i=this.shareCache[t.path],!e||e.messageFaults&&e.messageFaults.length>0?this.onFault("operationFailed"):(this._updateShareInfo(i,e),this.emit("updatedShareInfo",{shareInfo:i,path:t.path})))}),this)},_sendUpdateShare:function(e,t,n,o){var a={allowNonExistingUser:!0,shares:[{fileInfo:e||r.fileInfoFromPath(o),producer:t,consumers:n}]};i.sendMessage({UpdateShare:[a]},{path:o})},_setSharedOverlayIcon:function(e,t){},_handleUpdateShareResponse:function(e,t){dojo.forEach(e,(function(e){var i;if(t.path&&this.shareCache[t.path]&&(i=this.shareCache[t.path],e.shares&&e.shares.length>0&&e.shares[0].consumers.length>0?(this._updateShareInfo(i,e),this._setSharedOverlayIcon(!0,t.path)):(this._changeShareInfoPendingStatus(i),this._setSharedOverlayIcon(!1,t.path))),e.messageFaults&&e.messageFaults.length>0)if("USER_DOES_NOT_EXIST"===e.messageFaults[0].message||"CANNOT_SHARE_WITH_OWNER"===e.messageFaults[0].message)this.onFault("unknownUserId");else switch(e.messageFaults[0].faultCode){case n.SHARING_GENERAL_ERROR:this.onFault("unableToShareFolder");break;case n.SHARING_INVALID_USERID:this.onFault("unknownUserId");break;default:this.onFault("unableToShareFolder")}else this.emit("updatedShareInfo",{shareInfo:i,path:t.path})}),this)},_changeShareInfoPendingStatus:function(e){e.pending=!1,e.onPendingChange()},_updateShareInfo:function(e,t){e.fileInfo=t.shares[0].fileInfo,e.producer=t.shares[0].producer,e.consumers.fetch({onItem:function(t){e.consumers.deleteItem(t)}}),dojo.forEach(t.shares[0].consumers,(function(t){e.consumers.newItem({userId:t.name})})),this._changeShareInfoPendingStatus(e)},_cloneConsumers:function(e){var t=[];return dojo.forEach(e,(function(e){t.push({name:e.userId})})),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(302),i(203),i(8962),i(756),i(8964),i(8967),i(1682)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t([],{constructor:function(t){if(!(t=t||{}).sharingService)throw new Error("Sharing data service required for the SharingManager to function");this.sharingService=t.sharingService,this.contentHandlers=[],e.connect(this.sharingService,"onFault",this,"_onFault")},openSharingDialog:function(t,n){this.shareInfo&&this.shareInfo.path===t||(this._reset(),this.shareInfo=this.sharingService.getShareInfo(t),e.connect(this.shareInfo,"onPendingChange",this,"_updateState"),this._updateCalloutContent(),this.callout=new i({x:n.x||0,y:n.y||0,content:this.calloutContent}),this.closeHandler=e.connect(this.callout,"onClose",this,"_close"),this.callout.display())},_updateState:function(){this.shareInfo&&(this._updateCalloutContent(),this.callout.set("content",this.calloutContent),this.calloutContent.startup&&this.calloutContent.startup())},setCalloutCloseCallback:function(e){this.calloutCloseCallback=e},_close:function(){this._reset(),this.calloutCloseCallback&&this.calloutCloseCallback()},_reset:function(){this.shareInfo&&(this.sharingService.clearClientCache(this.shareInfo.path),this.shareInfo=null),this.calloutContent&&(this._resetContentHandlers(),this.calloutContent.destroyRecursive&&this.calloutContent.destroyRecursive(),this.calloutContent=null),this.closeHandler&&(e.disconnect(this.closeHandler),this.closeHandler=null),this.callout&&(this.callout.dispose(),this.callout=null),this.editing=!1},_updateCalloutContent:function(){this.shareInfo.pending?this.calloutContent="<div class='sharingPending'>"+a.pending+"</div>":(this._resetContentHandlers(),this.editing?(this.calloutContent=new r({consumers:this.shareInfo.consumers}),this.contentHandlers.push(e.connect(this.calloutContent,"onOk",this,(function(){this.sharingService.updateShareInfo(this.shareInfo),this.editing=!1}))),this.contentHandlers.push(e.connect(this.calloutContent,"onCancel",this,"_reset"))):(this.calloutContent=new o({consumers:this.shareInfo.consumers}),this.contentHandlers.push(e.connect(this.calloutContent,"onEdit",this,(function(){this.editing=!0,this._updateState()})))))},_resetContentHandlers:function(){this.contentHandlers.forEach((function(t){e.disconnect(t)})),this.contentHandlers=[]},_onFault:function(e){var t=a.faults[e]||a.faults.operationFailed;n.displayFault(t,a.faults.title),this._reset()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(204),i(8970),i(1024),i(203),i(225),i(262),i(209),i(231),i(215),i(272),i(227),i(206),i(248),i(245),i(513),i(279),i(228),i(1683),i(2710),i(1261),i(8976)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){var T,E=function(e){if(e){var t=e.getElementsByClassName("slonline-BaseCanvas");(t=t.length&&t[0])&&t.focus({preventScroll:!0})}},S=!1,w=function(e){if(e._maximized){var t=m.getBox(),i=b.get("screenSize");if(t.w>i.width||t.h>i.height)if(e.showNormal(),!S)new v("SendSizeLimitNotification").feval("simulink.online.internal.sendSizeLimitNotification",[i.width,i.height],1).then((function(e){S=e[0].results[0]}))}};return o([c,d],{constructor:function(e){var t=e.modelHash;this.Layout=e.layoutService,this.udcLogging=e.udcLogging,this.dialogTitle="",this.containerWindow=t,this._modelHash=t,this._statusChannel="/mg2web/"+t,this._eventChannel="/mg2web/eventChannel",this.id="Dialog_"+t,this._isInitialized=!1,this.containerWidget=null,this._titleBarCancelMenu=null,this._title=null},postCreate:function(){this.showDialog(),this.start()},start:function(){if(!this.isInitialized()){var e=this;n.subscribe(this._statusChannel,this._handleInMessage,this).then((function(){e.sendStart(),e._isInitialized=!0}))}},stop:function(){n.unsubscribe(this._statusChannel,this._handleInMessage,this),console.log("stopped - "+this.id)},isInitialized:function(){return!!this._isInitialized},_createDialogContainer:function(e,t,i,n,o,r,s,l,c,d){var u=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,t,i){return"keydown"===e||"keyup"===e?null:u.call(this,e,t,i)};var p=null;if(d){var f=!(!c||!c.hideCloseButton);p=a.createDialog({id:e,title:i,dialogType:a.MODAL,content:t,draggable:!1,resizable:!1,hideCloseButton:f})}else p=a.createDialog({id:e,title:i,dialogType:a.MODELESS,content:t,draggable:!0,resizable:!0,position:{x:40,y:200}});var g=p._titleBar.offsetHeight;p.domNode.style.setProperty("min-width",n+"px"),p.domNode.style.setProperty("min-height",g+o+"px"),p._resolveScrollBar=function(){},EventTarget.prototype.addEventListener=u;var m=document.getElementsByClassName("mwCloseNode");m.length&&m[m.length-1].removeAttribute("tabindex"),p._contentArea.style.overflow="visible",p._contentArea.style.position="absolute",p._contentArea.style.padding="0px",p._contentArea.style.width="100%",p._contentArea.style.height="calc(100% - "+g+"px)",p.oldCloseFunction=p.close;var _=this;p.closeWindow=function(){p.oldCloseFunction(),_.destroyRecursive(!1)},p.close=r,p.resizing=!1,p.domNode.setAttribute("test-container-id","slonline-container");_=this;p.updateDialogSizeAndTitle=function(e,t,i){var n=!1;t>document.body.clientWidth&&(t=document.body.clientWidth,n=!0),i+g+5>document.body.clientHeight&&(i=document.body.clientHeight-g-5,n=!0),n?s(t,i):(e&&(p.title=e,p.domNode.setAttribute("test-title",e),_._title=e),p.domNode.style.width=t+"px",p.domNode.style.height=i+g+"px")};var v=0,b=0;p.on("resize",(function(e){v=e.dimension.w,b=Number(e.dimension.h)-g}));for(var y=!1,C=p.domNode.getElementsByClassName("mwResizableHandle"),T=0;T<C.length;++T)h(C[T],"mousedown",(function(e){y=!0,p.resizing=!1}));return h(document,"mousemove",(function(e){y&&!p.resizing&&(p.resizing=!0)})),h(document,"mouseup",(function(e){y&&p.resizing&&(p.resizing=!1,y=!1,s(v,b))})),h(p._titleBar,"mousedown",(function(e){l(),e.stopPropagation(),e.preventDefault()})),E(p.domNode),p},_createFloatingPaneContainer:function(t,i,n,o,r,a,s,c,d){this.Layout.addWidget(t,"mggFloatingPane",i,{class:"mwNonModalDialog dojoxFloatingPane",resizable:!0,title:n});var u=l.byId(t);if("mainWindow"===d){u.enableMaximize(!0);var p=b.get("screenSize");u.setMaximumSize(p.width,p.height)}u.fullResizeHandle.set("minSize",{w:o,h:22+r}),i.resize=function(e){s(e.w,e.h)},i.onClose=a;var f=document.getElementById(t);f.style.setProperty("visibility","hidden"),f.style.setProperty("min-width",o+"px"),f.style.setProperty("min-height",22+r+"px"),f.setAttribute("test-container-id","slonline-container"),u.closeNode&&_.remove(u.closeNode,"tabIndex"),u.containerNode.style.setProperty("overflow","visible","important"),u.containerNode.parentElement.style.setProperty("overflow","visible","important"),u.containerNode.parentElement.parentElement.style.setProperty("overflow","visible","important"),u.containerNode.parentElement.parentElement.parentElement.style.setProperty("overflow","visible","important"),"dialog"===d&&(f.style.left="40px",f.style.top="200px");var g={firstEntry:!0,done:!0,cache:{}},m=window.location.href,v=m.substring(m.indexOf("?")+1,m.length);"true"===dojo.queryToObject(v).disablefirstupdateresize&&(g.firstEntry=!1);var y=!0,C=this;u.updateDialogSizeAndTitle=function(e,t,n){var a=t,l=n;if("dialog"!==d&&g.firstEntry&&(t===o?u.style.left="0px":t>2*document.body.clientWidth/3&&(a=Math.round(document.body.clientWidth/5*3),f.style.left=Math.round(document.body.clientWidth/5)+"px",g.done=!1),n===r?u.style.top="0px":n>2*document.body.clientHeight/3&&(l=Math.round(document.body.clientHeight/5*3-22-5),f.style.top=Math.round(document.body.clientHeight/5)+"px",g.done=!1),g.done||(s(a,l),g.cache.width=t,g.cache.height=n),g.firstEntry=!1),!g.done){if(g.cache.width===t&&g.cache.height===n)return;g.done=!0}y&&(f.style.setProperty("visibility","visible"),u.focused&&E(u.domNode),y=!1),e&&(u.set("title",e),f.setAttribute("test-title",e),C._title=e);var c=i.resize;i.resize=null,u.resize({w:a,h:l+22}),i.resize=c},u.closeWindow=function(){u.destroyRecursive.bind(u),C.Layout.removeWidget(t)},this.own(e.after(u,"maximize",w.bind(null,u)));var T=f.getElementsByClassName("dojoxFloatingPaneTitle")[0];return h(T,"pointerdown",(function(e){c(),e.stopPropagation(),e.preventDefault()})),h(window,"resize",(function(){var e=!1,t=f.clientWidth,i=f.clientHeight;document.body.clientWidth<f.clientWidth&&(t=document.body.clientWidth,e=!0),document.body.clientHeight<f.clientHeight&&(i=document.body.clientHeight-22,resizeRequied=!0),e&&s(t,i)})),h(u,"blur",(function(){C.sendClearKeys()})),h(u,"bringToTop",(function(){C._deselectMGGChildren()})),u},_deselectMGGChildren:function(){if(void 0===T)try{T=require("MOTW/mgg/Root")}catch(e){T=null}T&&"function"==typeof T.deselectChildren&&T.deselectChildren()},showDialog:function(){this.domNode.tabIndex=0,this.domNode.style.height="100%",this.domNode.style.width="100%",this.domNode.setAttribute("test-content-id","slonline-content")},_convertStringTypeToNumbers:function(e){e.data.windowWidth=Number(e.data.windowWidth),e.data.windowHeight=Number(e.data.windowHeight),e.data.windowMinimumWidth=Number(e.data.windowMinimumWidth),e.data.windowMinimumHeight=Number(e.data.windowMinimumHeight),e.data.imageWidth=Number(e.data.imageWidth),e.data.imageHeight=Number(e.data.imageHeight),e.data.x=Number(e.data.x),e.data.y=Number(e.data.y),"quick_insert_menu"===e.data.windowTagType&&(e.data.windowTagTypeMetaData.textEditViewPosY=Number(e.data.windowTagTypeMetaData.textEditViewPosY),e.data.windowTagTypeMetaData.textEditViewHeight=Number(e.data.windowTagTypeMetaData.textEditViewHeight))},_handleInMessage:function(e){var t,n;"object"!=typeof e.data&&(e.data=JSON.parse(e.data)),e.data.windowTag&&(this._windowTag=e.data.windowTag),t="_handleInMessage",e.data.performance&&(e.data.performance.client||(e.data.performance.client=[]),e.data.performance.client.push({funcname:t,timestamp:Date.now().toString()})),e.data.performance&&(document.perfMsgs||(document.perfMsgs=new Map),"updateregions"===e.data.type&&(n=e.data.updateRegions,e.data.updateRegions="REMOVED"),document.perfMsgs.set(e.data.performance.msgid,JSON.parse(JSON.stringify(e.data))),"updateregions"===e.data.type&&(e.data.updateRegions=n));var o="Container_"+this.id,r=l.byId(e.data.windowTag);if("updateregions"===e.data.type){if(this._convertStringTypeToNumbers(e),C.log(e.data),r)r.updateRegions(e.data);else{var a=new i({msg:e.data,sendMessage:this.sendMsg.bind(this)});this.addChild(a),a.updateRegions(e.data),"quick_insert_menu"===e.data.windowTagType&&a.focusWithoutScroll()}e.data.containerWindow===e.data.windowTag&&(this.containerWidget||(this.udcLogging.windowOpened({type:e.data.windowType,title:e.data.windowTitle,height:e.data.windowHeight,width:e.data.windowWidth}),C.log(e.data,this.udcLogging),"dialog"===e.data.windowType&&e.data.modal||"messageBox"===e.data.windowType||!this.Layout||0===this.Layout.length?this.containerWidget=this._createDialogContainer(o,this,e.data.windowTitle,e.data.windowMinimumWidth,e.data.windowMinimumHeight,this.closeCallback.bind(this),this.sendResize.bind(this),this.titleBarClick.bind(this),e.data.windowSettings,e.data.modal&&"messageBox"===e.data.windowType):this.containerWidget=this._createFloatingPaneContainer(o,this,e.data.windowTitle,e.data.windowMinimumWidth,e.data.windowMinimumHeight,this.closeCallback.bind(this),this.sendResize.bind(this),this.titleBarClick.bind(this),e.data.windowType))),this.containerWidget.updateDialogSizeAndTitle(e.data.windowTitle,e.data.windowWidth,e.data.windowHeight)}else if("close"===e.data.type){if(r){this.sendClearKeys();var s=r.focused;this.removeChild(r),r.destroy(),r._msgData.containerWindow===r._msgData.windowTag?(this.udcLogging.windowClosed({type:r._msgData.windowType,title:r._msgData.windowTitle,height:r._msgData.windowHeight,width:r._msgData.windowWidth}),C.log(e.data,this.udcLogging)):s&&this.containerWidget&&E(this.containerWidget.domNode)}else console.error("unable to find the widget");e.data.windowTag===e.data.containerWindow&&(this.stop(),this.containerWidget?this.containerWidget.closeWindow():(console.warn("inside a blank main object(without content/dialog)"),this.destroyRecursive(!1)),console.assert(void 0===l.byId(this.id)))}else"activate"===e.data.type?e.data.windowTag===e.data.containerWindow&&(this.containerWidget.show&&this.containerWidget.show(),this.containerWidget.bringToTop()):"cursor"===e.data.type?this.containerWidget.canvas.style.cursor=e.data.shape:console.error("wrong message type of msg: "+JSON.stringify(e));y.feature("SlOnline_IME")&&e.data.activeChildWidgetData&&r&&this._isDialogActive()&&r.updateServerFocusedWidgetStatus(e.data.activeChildWidgetData)},sendStart:function(){console.log("sending start Message - "+this.id),this.sendMsg({type:"command",message:"mainIsInitialized",containerWindow:this.containerWindow})},sendStop:function(){this.sendMsg({type:"command",message:"close",containerWindow:this.containerWindow,windowTag:this._windowTag})},sendHide:function(){this.sendMsg({type:"command",message:"hide",containerWindow:this.containerWindow,windowTag:this._windowTag})},closeCallback:function(){var e=b.get("diagnosticViewerNames");!e||this._title!==e.dv&&this._title!==e.suppressions?this.sendStop():this.sendHide()},sendResize:function(e,t){this.sendMsg({type:"command",message:"resize",containerWindow:this.containerWindow,width:Math.round(e),height:Math.round(t)})},titleBarClick:function(){var e=document.querySelectorAll(".slonline-nonBaseCanvas");if(e.length>0&&this._titleBarCancelMenu!==e[0]){this._titleBarCancelMenu=e[0];var t=e[0].getAttribute("containerwindow"),i=document.querySelector("[containerwindow='"+t+"'].slonline-BaseCanvas"),n=i.getBoundingClientRect(),o=Math.round(i.clientWidth/2+n.left),r=Math.round(i.clientHeight/2+n.top),a=new MouseEvent("mousemove",{bubbles:!0,cancelable:!0,clientX:o,clientY:r,buttons:0}),s=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,clientX:o,clientY:r,buttons:1}),l=new MouseEvent("mouseup",{bubbles:!0,cancelable:!0,clientX:o,clientY:r,buttons:0});i.dispatchEvent(l),i.dispatchEvent(a),i.dispatchEvent(s),i.dispatchEvent(l)}},sendClearKeys:function(){this.sendMsg({type:"event",data:{type:"clear_keys",windowTag:"00000"}})},sendMsg:function(e){if(!(this.containerWidget&&this.containerWidget.resizing||null===e)){var t=(new Date).getTime();e.timestamp=t,n.publish(this._eventChannel,e)}},_isDialogActive:function(){return this.domNode.contains(document.activeElement)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(513)],o=i.dj.d(n,(function(e){var t=!0,i=!1,n=e.queryToObject(decodeURIComponent(document.location.search.slice(1)));return"true"===n.slonlinetest&&(i=!0),"false"===n.initializeDV&&(t=!1),{isTestMode:i,loadDV:t}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1683),i(8975),i(1261)],o=i.dj.d(n,(function(e,t,i){var n={screenSize:{width:1920,height:1150},diagnosticViewerNames:{}};return{bootstrap:function(){var t=this;return this._getInputData().then((function(i){return new e("bootstrap").feval("simulink.online.internal.bootstrap",[i],1).then((function(e){var i=e[0].results[0];i?t._updateConfigData(i):console.error("The result data from server is not as expected: ",i)}),(function(e){console.error(e)}))}))},get:function(e){if(n.hasOwnProperty(e))return n[e];console.error("the property: ",e," does not exist in config data.")},_updateConfigData:function(e){n=e,i.syncUp(n.features)},_getInputData:function(){return t.getKeyboardConfigure().then((function(e){return{keyboardLayout:e}}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(214),i(215),i(272),i(331),i(288),i(209),i(1241)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([r],{constructor:function(e){this._isDocked=!!e.isDocked,this._udc=e.udc},postCreate:function(){this.inherited(arguments),this.domNode.classList.add("taskbarWindowList"),this._isDocked&&t.set(this.domNode,"maxHeight","none"),this._menuItems={},l.addCallback("windowAdded",this.id,function(e){this._createMenuItem(e)}.bind(this)),l.addCallback("windowRemoved",this.id,function(e){this._removeMenuItem(e)}.bind(this))},_createMenuItem:function(e){s.assert(!this._menuItems[e.id],"the menu item already exists for window"+e.id);var t=new a({text:this._getTitle(e)});this._isDocked&&(t.domNode.title=e.title),this.addChild(t),t.onclick=function(){var t=l.getTopWindow();e.isMinimized()||t&&e.id!==t.id?(e.show(),e.bringToTop()):e.minimize(),this._udc.logButtonClick("WindowTitle",this._isDocked?"Full":"Mini",this.getChildren().length)}.bind(this),this.own(e.watch("title",function(){var i=this._getTitle(e);t.set("text",i),this._isDocked&&(t.domNode.title=i)}.bind(this))),this._menuItems[e.id]=t},_removeMenuItem:function(e){s.assert(this._menuItems[e.id],"the menu item should exist for window"+e.id);var t=this._menuItems[e.id];this.removeChild(t),t.destroyRecursive(),delete this._menuItems[e.id]},_getTitle:function(e){var t=e.title;return(t=t&&t.trim?t.trim():t)&&t.length>0?t:"(Untitled)"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8986)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/taskbar",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(428),i(204)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e){e=e||{},this.udcProbe=e.udcProbe,this.clientType=e.clientType,this.udcProbeStore=new t({idProperty:"probeId"}),this.enabled=!1},updateUdcEndpoint:function(e){},setSessionCorrelationId:function(e){},setMWAToken:function(e){},_getComponentAndEventFromProbeId:function(e){var t=[];return e&&null!==e.match(/\./g)&&(t=e.split(".")),t},getProbe:function(e,t){var n=this.udcProbeStore.get(e);if(!n){var o=this._getComponentAndEventFromProbeId(e);if(o.length<2)throw new Error("Invalid ProbeId format: Expected Format {Component}.{EventType}");var r=i.hitch(this,this._addToDataQueue);n=new this.udcProbe({probeId:e,probeDescription:t,isProbeEnabled:!0,componentType:"CLIENT_"+this.clientType+"."+o[0],eventType:"CLIENT_"+this.clientType+"."+o[1],sendDataCallback:r}),this.udcProbeStore.put(n)}return n},getExistingProbesAndTheirStatus:function(){var e={message:""};return this._getAlphabeticallySortedProbesList().forEach((function(t){e.message||(e.message="\n"),e.message+=" "+t.probeId+" : ",e.message+=t.isProbeEnabled?"Enabled":"Disabled",e.message+="\n"})),e.message+="\n",e},_getAlphabeticallySortedProbesList:function(){return this.udcProbeStore.query({}).sort((function(e,t){return e.probeId<t.probeId?-1:e.probeId>t.probeId?1:0}))},deleteProbe:function(e){},enableProbe:function(e){},disableProbe:function(e){},isEnabled:function(){return this.enabled},enable:function(){},disable:function(){this.enabled=!1},_addToDataQueue:function(e,t){},sendDataToServer:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NEW_WORKSPACE_ACTION:"NewWorkspaceVariableAction",OPENVAR_ACTION:"Openvar",SAVE_AS_ACTION:"SaveVariablesAction",INSERT_ACTION:"InsertRowColumn",DELETE_ACTION:"DeleteData",INSERT_FIELD_ACTION:"InsertAction",DELETE_FIELD_ACTION:"DeleteAction",TRANSPOSE_ACTION:"Transpose",SORT_ACTION:"SortAction",TABLE_SORT_ACTION:"TableSortAction",GO_TO_PARENT:"GoToParent",BRUSHING:"Brushing",SORT_ASCENDING_MENU:"SortAscending",SORT_DESCENDING_MENU:"SortDescending",INSERT_COL_LEFT:"InsertColumnLeft",INSERT_COL_RIGHT:"InsertColumnRight",INSERT_ROW_ABOVE:"InsertRowAbove",INSERT_ROW_BELOW:"InsertRowBelow",DELETE_ROW:"DeleteRow",DELETE_COLUMN:"DeleteColumn",TRANSPOSE_MENU:"Transpose",PRINT_ACTION:"PrintAction",NUMBER_DISPLAY_FORMAT_ACTION:"NumberDisplayFormat"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{checkable:!1,_setCheckableAttr:function(e){e&&!this.get("checkableNode")&&(this.set("checkableNode",this.domNode),this.domNode.classList.add("mwCheckedMixin")),!e&&this.get("checkableNode")&&(this.set("checkableNode",null),this.domNode.classList.remove("mwCheckedMixin")),this._set("checkable",e),e||this.set("checked",!1)},_onClick:function(){this.checkable&&this.inherited(arguments)},postCreate:function(){this.inherited(arguments),this.set("checkable",this.checkable)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{postCreate:function(){this.inherited(arguments),(void 0===this.checkable||this.checkable)&&this.own(this.on("change",t.hitch(this,(function(e){this.set("dirty",!0),e.mwEventData.eventType="onToggle",e.mwEventData.tag=this.get("tag"),this.buttonGroup&&(e.mwEventData.buttonGroup=this.get("buttonGroup")),this.emit("toggle",e.mwEventData)}))))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{elidemode:"elidenone",_setElidemodeAttr:function(e){if("string"!=typeof e)throw new Error("Elidemode property expects a 'string'!");if("elidenone"!==e&&"elideright"!==e&&"elideleft"!==e)throw new Error("Elidemode property expects the value to be 'elidenone', 'elideright' or 'elideleft'!");this._set("elidemode",e);var t=this.inputNode;t&&("elidenone"===e?(t.classList.remove("dasElideRight"),t.classList.remove("dasElideLeft"),t.classList.add("dasElideNone")):(t.classList.remove("dasElideNone"),"elideright"===e?(t.classList.remove("dasElideLeft"),t.classList.add("dasElideRight")):(t.classList.remove("dasElideRight"),t.classList.add("dasElideLeft"))))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{postCreate:function(){this.inherited(arguments),this.own(this.on("typing",t.hitch(this,(function(e){if(this.editable&&e.mwEventData.currentContent!=this.value){this.set("dirty",!0);var t={eventType:"onEdit",tag:this.get("tag"),value:e.mwEventData.currentContent};this.emit("edit",t)}}))))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{postCreate:function(){this.inherited(arguments),this.own(this.on("change",t.hitch(this,(function(e){if(this.editable){var t={eventType:"onEditFinish",tag:this.get("tag"),value:e.mwEventData.newValue};if(this.items&&this.value===e.mwEventData.newValue){var i=this._getSelectedItemFromValue(e.mwEventData.newValue);i&&(t.value=i.label,t.index=i.index)}this.emit("editfinish",t)}}))))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(9045)],o=i.dj.d(n,(function(e){var t={},i=0;return{createWorkspaceBrowser:function(n){return t&&t[n.channel]&&!n.forceNewManager||(n.channel||(i+=1,n.channel="/WSB_"+i),n.provider=new e({wsbProps:n,channel:n.channel,manager:t[n.channel]}),t[n.channel]=n.provider.workspaceBrowserManager),t[n.channel]},deleteManager:function(e){var i=e.channel;for(var n in e.destroy(),t[i]=null,t)n===i&&t.hasOwnProperty(n)&&delete t[n]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(699),i(698)],o=i.dj.d(n,(function(e,t){const i=window._GDS_WORKAROUND_TIMEOUT||4e4,n=!window._GDS_WORKAROUND_OFF;let o=null;return function(){n&&(o&&clearTimeout(o),o=setTimeout((function(){let i=e.gdsStartupHealthCheckWorkaround.title,n=e.gdsStartupHealthCheckWorkaround.message,o=!1,r=[".mwRichTextComponent",".workspacebrowser_motw",".promptNode",".fileBrowser2",".DesktopVariableEditor"];for(var a=0;a<r.length;a+=1){if(document.querySelectorAll(r[a]).length>0){o=!0;break}}o||t.openNotificationAlertDialog(i,n,{buttonText:[],"data-test-id":"gdsStartupHealthCheckWorkaround"})}),i))}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(228),i(211)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e){this.statusNodeId="motwModuleStatusNode",this.dataTestId=this.statusNodeId,this.statusNode={},this._initialize(e)},_initialize:function(e){var i=t.byId(this.statusNodeId);e&&!i?(this.statusNode=n.create("div",{id:this.statusNodeId,class:"hidden","data-test-id":this.dataTestId}),this.setStatusUnknown(),n.place(this.statusNode,e)):this.statusNode=i},_update:function(e){this.statusNode&&i.set(this.statusNode,"data-module-status",e)},setStatusUnknown:function(){this._update("UNKNOWN")},setLoginReady:function(){this._update("LOGIN_READY")},setModulesReady:function(){this._update("MODULES_READY")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(9064)],o=i.dj.d(n,(function(e){var t;return{getStore:function(i){return t||(t=new e(i))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2725),i(2726),i(9071),i(1029),i(1688)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return new class{constructor(){this._numOfPopouts=0,this._handleClick=this._handleClick.bind(this),this._handleKeyPressAndScroll=this._handleKeyPressAndScroll.bind(this),this._clickedOnScrollbar=this._clickedOnScrollbar.bind(this),this._handleMouseDown=this._handleMouseDown.bind(this)}has(t){return!!e.has(t)}add(t,i){this._numOfPopouts=this._numOfPopouts+1,e.set(i,t),1===this._numOfPopouts&&this._attachListenerToDocument()}remove(t){e.delete(t),0===this._numOfPopouts&&this._detachListenerFromDocument()}getPopout(t){return e.has(t)?e.get(t):null}enableFocusManagement(e,t){let{referenceNode:n,type:o}=t;i.set(n,e,o)}disableFocusManagement(e,t){let{referenceNode:n,destroy:o}=t;i.remove(n,e,o)}handleFocus(e){i.handle(e)}_handleClick(e){let t=this.getOpenPopout();t&&e.target!==t&&!t.contains(e.target)?(this.setState(n.CLOSED_EXTERNALLY,t),t.trigger===o.CLICK&&(t._referenceClicked=!1),this.handleFocus(t),t._clearTimeoutsAndEvents(),t.open=!1):t&&(this.enableFocusManagement(t,{referenceNode:t.referenceNode,type:o.HOVER}),this.clearState(n.CLOSED_EXTERNALLY))}_handleKeyPressAndScroll(e){if("Escape"===e.key||"scroll"===e.type||"scrollClick"===e.type){let e=this.getOpenPopout();e?(this.setState(n.CLOSED_EXTERNALLY,e),e.trigger===o.CLICK&&(e._referenceClicked=!1),this.handleFocus(e),e._clearTimeoutsAndEvents(),e.open=!1):this.clearState(n.CLOSED_EXTERNALLY)}}_clickedOnScrollbar(e){if(document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY)return!0}_handleMouseDown(e){this._clickedOnScrollbar(e)&&this._handleKeyPressAndScroll({type:"scrollClick"})}_attachListenerToDocument(){document.addEventListener("click",this._handleClick,{capture:!0}),document.addEventListener("mousedown",this._handleMouseDown),document.addEventListener("keyup",this._handleKeyPressAndScroll),window.addEventListener("scroll",this._handleKeyPressAndScroll)}_detachListenerFromDocument(){document.removeEventListener("click",this._handleClick,{capture:!0}),document.removeEventListener("mousedown",this._handleMouseDown),document.removeEventListener("keyup",this._handleKeyPressAndScroll),window.removeEventListener("scroll",this._handleKeyPressAndScroll)}setState(e,i){t.set(e,i)}hasState(e,i){return t.has(e,i)}clearState(e,i){t.clear(e,i)}clearAllState(e){t.clearAll(e)}getOpenPopout(){return t.get(n.SHOW)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return new class{constructor(){this._popoutDepot=new WeakMap}clear(){this._popoutDepot=new WeakMap}delete(e){return this._popoutDepot.delete(e)}get(e){return this._popoutDepot.get(e)}has(e){return this._popoutDepot.has(e)}set(e,t){return this._popoutDepot.set(e,t),this}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1029)],o=i.dj.d(n,(function(e){"use strict";return new class{constructor(){this._state={},this._state[e.WAITING]=null,this._state[e.SHOW]=null,this._state[e.IDLE]=[],this._state[e.CURRENT_ACTIVE_ELEMENT]=null,this._state[e.CLOSED_EXTERNALLY]=null,this._state[e.FOCUS_WITHIN]=null,this._keys=[e.WAITING,e.SHOW,e.IDLE,e.CURRENT_ACTIVE_ELEMENT,e.CLOSED_EXTERNALLY,e.FOCUS_WITHIN]}get(e){return this._state[e]||null}clear(t,i){if(i){let e=this._state[t].indexOf(i);e>-1&&this._state[t].splice(e,1)}else switch(t){case e.IDLE:this._state[t]=[];break;default:this._state[t]=null}}clearAll(e){this._keys.forEach(t=>{let i=this.get(t);i&&Array.isArray(i)?i.findIndex(t=>t===e)>-1&&this.clear(t,e):i===e&&this.clear(e)})}has(e,t){let i=this.get(e);if(i&&Array.isArray(i)){if(i.findIndex(e=>e===t)>-1)return!0}else if(i===t)return!0;return!1}set(t,i){switch(t){case e.SHOW:this._state[t]?this._state[t]&&this._state[t]!==i&&(this._state[t]._clearTimeoutsAndEvents(),this._state[t].open=!1,this._state[t]=i,this.clear(e.WAITING),this.clear(e.IDLE,i)):(this._state[t]=i,this.clear(e.WAITING),this.clear(e.IDLE,i));break;case e.IDLE:-1===this._state[t].indexOf(i)&&(this._state[t].push(i),this.get(e.WAITING)===i&&this.clear(e.WAITING),this.get(e.SHOW)===i&&this.clear(e.SHOW));break;case e.WAITING:this._state[t]?this._state[t]&&this._state[t]!==i&&(this._state[t]._clearTimeoutsAndEvents(),this._state[t].open=!1,this.set(e.IDLE,this._state[t]),this._state[t]=i,this.clear(e.IDLE,i)):(this._state[t]=i,this.clear(e.IDLE,i));break;case e.CURRENT_ACTIVE_ELEMENT:case e.CLOSED_EXTERNALLY:case e.FOCUS_WITHIN:this._state[t]=i}}}}),e,t),e.exports=o},function(e,t,i){e.exports={HANDSHAKE_INITIATION_CHANNEL:"/mlc/handshake/initiation",HANDSHAKE_INITIATION_CHANNEL_FORMAT:"/mlc/handshake/{0}/initiation",HANDSHAKE_RESPONSE_CHANNEL:"/mlc/handshake/response",HANDSHAKE_RESPONSE_CHANNEL_FORMAT:"/mlc/handshake/{0}/response",HANDSHAKE_READY_CHANNEL:"/mlc/handkshake/ready",HANDSHAKE_READY_CHANNEL_FORMAT:"/mlc/handshake/{0}/ready",INBOUND_REBROADCAST_CHANNEL:"/mlc/javamessage",INBOUND_REBROADCAST_CHANNEL_FORMAT:"/mlc/mb{0}/javamessage",OUTBOUND_MAPPED_PEER_CHANNEL:"/mlc/mwmessage/peertopic",OUTBOUND_MAPPED_PEER_CHANNEL_FORMAT:"/mlc/mb{0}/mwmessage/peertopic",INBOUND_OPEN_BROADCAST_TOPIC:{id:"mlc-inbound-prefservice",type:"receive",tokenField:"conversationToken"},CLIENT_STATE_CHANNEL_GROUP:"clientstate",CLIENT_STATUS_CHANNEL:"clientstate/status",KEEP_ALIVE_CHANNEL:"clientstate/keepalive",ClientStatus:{INITIALIZED:"initialized",READY:"ready",DISPOSED:"disposed"}}},function(e,t,i){e.exports={GLOBAL_CLIENT_CONFIG:"coderClientConfig",GLOBAL_CLIENT_CONTEXT:"clientContext",MODE_TEST:"test",MODE_DEBUG:"debug",MODE_RELEASE:"release"}},function(e,t,i){var n,o;n=[i(218),i(220),i(9104),i(9105),i(9106),i(9107)],o=i.dj.d(n,(function(e,t){return t(e,"project-sharing-widgets/resources/MATLAB/project/nls/sharing",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(9119),i(9120),i(9121),i(9122)],o=i.dj.d(n,(function(e,t){return t(e,"cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/view_core",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(9127),i(9128)],o=i.dj.d(n,(function(e,t){return{getInstance:function(i){if(i.type){if("pmp"===i.type&&!this._instancePmp)return this._instancePmp=new e(i),this._instancePmp;if("jsd"===i.type&&!this._instanceJsd)return this._instanceJsd=new t(i),this._instanceJsd;if("pmp"===i.type)return this._instancePmp;if("jsd"===i.type)return this._instanceJsd}else Error("Type of WorkerClient is not specified.")},destroy:function(e){e.type?"pmp"===e.type?this._instancePmp=null:"jsd"===e.type&&(this._instanceJsd=null):Error("Type of WorkerClient is not specified.")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(232),i(222),i(766),i(540),i(209),i(291)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([i],{constructor:function(e){this._disconnectOptions={userRequested:!0,signOut:!1,restartSession:!1},this._remote=e&&e.remote?e.remote:t,this._userMvm=e&&e.userMvm?e.userMvm:a},setupClientTypeAndSetupPath:function(){var e={},t="jsd";try{(e=JSON.parse(window.sessionStorage.getItem("crConfig")))&&e.clientTypeOverride&&(t=e.clientTypeOverride)}catch(e){r.error("Encountered error reading JupyterHub UI Configurations")}o.removeMessageTypesFromEndPoint("ROUTER_LEAF_INSECURE_ENDPOINT","ClientType"),o.addMessagesTypesToEndPoint("ROUTER_LEAF_SECURE_ENDPOINT","ClientType"),this._remote.sendMessage({ClientType:n.createClientTypeMessage(t).ClientType}),o.addMessagesTypesToEndPoint("ROUTER_LEAF_INSECURE_ENDPOINT","ClientType"),o.removeMessageTypesFromEndPoint("ROUTER_LEAF_SECURE_ENDPOINT","ClientType"),this._userMvm.getMVM().whenMVMReady().then(function(){this._remote.sendMessage({SetupPath:{shadowFiles:!0}})}.bind(this))},defaultRemoteEndpoint:function(){return document.location.protocol+"//"+document.location.host+"/"},onSessionCreated:function(e){var t=(e=e||{}).defaultRemoteEndpoint?e.defaultRemoteEndpoint:this.defaultRemoteEndpoint();if(t&&!t.endsWith("/")&&(t+="/"),e.computeToken&&e.routingKey){var i={computeSessionId:e.computeToken,serviceUrl:"unset",computeResourceAddress:e.routingKey};o.setRoutingHostAndRoutingKey(o.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT,t,e.routingKey),o.setRoutingHostAndRoutingKey(o.getEndPointNames().ROUTER_LEAF_INSECURE_ENDPOINT,t,e.routingKey),this._remote.proxyClient.setRemotePageHost(t,e.routingKey),this._remote.setComputeToken(i),this._remote.setWorkerEndpoint(t,e.routingKey)}else this._remote.setEndpoint(t),this._remote.setWorkerEndpoint(t),this._remote.setComputeToken({computeSessionId:"unused"});this._remote.allowAllMessages(),this.emit("onSessionCreated",{})},setDisconnectOptions:function(e){this._disconnectOptions=Object.assign(this._disconnectOptions,e)},onSessionDisconnect:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{EVENTS:{WINDOWRESIZED:"windowResized",WINDOWCLOSING:"windowClosing",BEFOREUNLOAD:"beforeUnload",MATLABWINDOWEXITED:"MATLABWindowExited",FOCUSLOST:"focusLost",FOCUSGAINED:"focusGained",PAGELOADFINISHED:"pageLoadFinished",HEARTBEAT:"heartbeat",VISIBILITYCHANGED:"visibilityChanged"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(262),i(273),i(206)],o=i.dj.d(n,(function(e,t,i){return{showBringToFrontDialog:function(n,o){if(void 0!==n){if(window.childToShow=n,window.self.btfDialog&&window.self.btfDialog.domNode)return;o=o?"<b>"+o+"</b>":"Another window";var r=window.self.document.createElement("div");r.innerHTML='<p style="line-height: 1.6em;">'+o+" requires your attention.</p>";var a={type:t.TYPE.DO_IT,label:"Show Window"};window.self.btfDialog=e.createDialog({title:"Show Window",dialogType:e.MODAL,className:"motw-BTF",closeOnEscape:!0,closable:!0,draggable:!0,resizable:!1,"data-test-id":"MOTW_BTF",content:r,defaultActionButton:"Show Window",buttons:[a]}),window.self.btfDialog.addButtonEventListener(a,(function(e){n.focus()}),!0),window.self.btfDialog.addButtonEventListener(t.CANCEL,(function(e){}),!0);var s=i(window,"focus",(function(){window.self.btfDialog&&window.self.btfDialog.domNode&&window.self.btfDialog.close(),s.remove()}))}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(359),i(2736)],o=i.dj.d(n,(function(e,t,i){return e("importtool_client.SpreadsheetArrayViewModel",[i,t],{type:"SpreadsheetView"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(204),i(206),i(256),i(359),i(239),i(1188),i(9143),i(982),i(506),i(1691),i(9145)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e("importtool_client.ImportToolArrayViewModel",[c,r],{editorOverlayAdded:!1,ctxMenuOverlayAdded:!1,_TABLE_HEADER_NODE:"mw-table-header-wrapper",_EDITOR_OVERLAY_DOMCLASS:"EditorOverlay",_DATATYPE_CONTEXT_MENU_OVERLAY_DOMCLASS:"DataTypeCtxMenuOverlay",_HEADER_NAME_CHANGED_ACTION:"HeaderNameChanged",_CONTEXT_MENU_OFFSET:14,_data_test_id:"ImportTool",_IMPORT_TOOL_TESTING_CHANNEL:"uiimporttool_testing_channel",createTableConstructor:function(e,t){var i=new s(e,t);return this._tableConstructor=new l(i,t),this._tableConstructor},_updateView:function(){this.inherited(arguments),this.editorOverlayAdded||this.addHeaderEditorOverlay(),this.ctxMenuOverlayAdded||this.addDataTypeCtxMenuOverlay();var e=this,t=this.manager?this.manager.propertyObj.channel:this._IMPORT_TOOL_TESTING_CHANNEL;if(!this._hoverSelectionHandler){var i=t+"/HoverSelection";this._hoverSelectionHandler=o.subscribe(i,(function(t){e.setHoverSelectionRange(t)}))}if(!this._headerRowHighlightChannel){var n=t+"/HeaderRowHighlight";this._headerRowHighlightHandler=o.subscribe(n,(function(t){e.setShowHeaderRowHighlight(t)}))}},handleImportContextMenu:function(e){if(e&&e.dataRange&&e.dataRange.columns&&e.dataRange.columns.end>=0){var t=this.getDataStore().getCurrentSelection(),i=[];t.rows.length>0&&t.columns.forEach((function(e){for(var t=e.start;t<=e.end;t++)-1===i.indexOf(t)&&i.push(t)})),0===i.length&&i.push(e.dataRange.columns.start),this.openContextMenu({left:e.left,top:e.top,columnIndex:e.dataRange.columns.end,columnIndices:i})}},addHeaderEditorOverlay:function(){var e=document.createElement("div");e.classList.add(this._EDITOR_OVERLAY_DOMCLASS);var t=this.domNode.getElementsByClassName(this._TABLE_HEADER_NODE)[0];if(t.insertBefore(e,t.lastChild),this.editorOverlayAdded=!0,this.own(e.ondblclick=this._overlayMouseDown.bind(this)),this.own(e.oncontextmenu=this._reEmitEvent.bind(this)),this.setOverlayLeftPosition(e),this._table&&this._table.on){var i=this;this.own(this._table.on("columnResized",(function(e){i._updateHeaderEditorOverlaySize()})))}return e},addDataTypeCtxMenuOverlay:function(){var e=document.createElement("div");e.classList.add(this._DATATYPE_CONTEXT_MENU_OVERLAY_DOMCLASS);var t=this.domNode.getElementsByClassName(this._TABLE_HEADER_NODE)[0];t&&t.insertBefore(e,t.lastChild),this.ctxMenuOverlayAdded=!0,this.own(e.onmousedown=this._dtOverlayMouseDown.bind(this)),this.own(e.oncontextmenu=this._reEmitEvent.bind(this))},_reEmitEvent:function(e){var t=e.x,i=e.y;e.target.style.display="none";var n=document.elementFromPoint(t,i),o=new window.MouseEvent(e.type,e);n.dispatchEvent(o),e.target.style.display="unset"},_overlayMouseDown:function(e){var i=e.x,n=e.y,o=t.position(e.target).x;e.target.style.display="none";var r=document.elementFromPoint(i,n),a=r.parentElement.id,s=t.position(r),l=s.x-o,c=s.w,d=r.textContent;e.target.style.display="unset",this._createEditorTextField(e.target,l,c,a,d)},_dtOverlayMouseDown:function(e){var i=e.x,n=e.y;e.target.style.display="none";var o=document.elementFromPoint(i,n);if(o.classList.contains(u._DATA_TYPE_CLASS)){var r=t.position(o),a=r.x,s=this.getDataStore().getCurrentSelection(),l=[];s.rows.length>0&&s.columns.forEach((function(e){for(var t=e.start;t<=e.end;t++)-1===l.indexOf(t)&&l.push(t)}));var c=0;this.uiContainer&&this.uiContainer.appId&&document.getElementById(this.uiContainer.appId)&&(c=this._CONTEXT_MENU_OFFSET);var h=this._table.domNode.getElementsByClassName(d.TABLE_TOP_LEFT_AFFORDANCE_CLASS)[0],p=t.position(h),f=o.parentElement.id;this.headerMenu({left:Math.max(a,p.x+p.w),top:r.y+r.h+c,columnIndex:parseInt(f),columnIndices:l})}e.target.style.display="unset"},_createEditorTextField:function(e,t,i,n,o){var r=new h({target:e,xPos:t,width:i,id:n,value:o});this._handleEditDoneListener=this._handleEditDone.bind(this),this.own(r.on("editcompleted",this._handleEditDoneListener))},_handleEditDone:function(e,t){var i=Number(e.columnIndex),n=this._tableConstructor.getMetaDataStore(),o=n.getColumnProperties(i);o.HeaderName=e.newValue,n.setColumnProperties(i,o);var r=[a.range().setRows(0,1/0).setColumns(i,i)];n._on.emit("pagedColumnMetaDataChanged",{rangeList:r});var s=this._HEADER_NAME_CHANGED_ACTION,l={value:e.newValue,index:i};e.oldValue!==e.newValue&&this._dispatchActionToServer(s,l,!1)},resize:function(){this.inherited(arguments),this._updateHeaderEditorOverlaySize()},_updateHeaderEditorOverlaySize:function(){if(this.editorOverlayAdded){var e=this.domNode.getElementsByClassName(this._EDITOR_OVERLAY_DOMCLASS)[0],t=e.previousElementSibling,i=t.getBoundingClientRect().width;if(void 0===this._scrollRegionWidth){var n=t.firstElementChild.getBoundingClientRect().width;this._scrollRegionWidth=i-n}return this.setOverlayLeftPosition(e),e.style.width=i-this._scrollRegionWidth+"px",e}},getViewHeight:function(){var e=0;this.getDataStore()&&(e=66+22*this.getCurrentSize().rows.count+2);return e},setShowHeaderRowHighlight:function(e){this._tableConstructor&&this._tableConstructor.getMetaDataStore().setTableModelProperty("HighlightVariableNamesRow",e)},setHoverSelectionRange:function(e){if(this._tableConstructor){var t=this._tableConstructor.getMetaDataStore();if(e){var i=t.getTableModelProperty("HoverSelection");if(i&&i.rows&&i.columns&&i.rows.start===e.rows.start&&i.rows.end===e.rows.end&&i.columns.start===e.columns.start&&i.columns.end===e.columns.end)return}t.setTableModelProperty("HoverSelection",e)}},adjustOverlayForRowNames:function(){setTimeout(i.hitch(this,(function(){var e=this.domNode.getElementsByClassName(this._EDITOR_OVERLAY_DOMCLASS)[0];!1===this.setOverlayLeftPosition(e)&&setTimeout(i.hitch(this,(function(){this.setOverlayLeftPosition(e)})),500)})),100)},setOverlayLeftPosition:function(e){var t=!1;if(this._table&&this._table.domNode&&e){var i=this._table.domNode.getElementsByClassName(d.TABLE_TOP_LEFT_AFFORDANCE_CLASS)[0];e.style.left=i.style.minWidth,t=!0}return t},destroy:function(){this.inherited(arguments),this._hoverSelectionHandler&&this._hoverSelectionHandler.remove(),this._headerRowHighlightHandler&&this._headerRowHighlightHandler.remove()},_getEventForWhenTableMetaDataChanged:function(e){var t={},i=this.getMetaDataStore();return i.hasTableModelProperty("VariableNamesRow")&&this._variableNamesRow!==i.getTableModelProperty("VariableNamesRow")&&(this._variableNamesRow=i.getTableModelProperty("VariableNamesRow"),t.variableNamesRow=this._variableNamesRow),i.hasTableModelProperty("RowCount")&&this._rowCount!==i.getTableModelProperty("RowCount")&&(this._rowCount=i.getTableModelProperty("RowCount"),t.rowCount=this._rowCount),i.hasTableModelProperty("excelSelection")&&this._selectionRangeExcel!==i.getTableModelProperty("excelSelection")&&(this._selectionRangeExcel=i.getTableModelProperty("excelSelection"),t.selectionRange=this._selectionRangeExcel),this._hasOutputNameProperties(i)&&this._anyOutputNamePropertiesDiffs(i)&&(this._outputVariableName=i.getTableModelProperty("OutputVariableName"),this._outputVariableNameWarning=i.getTableModelProperty("OutputVariableNameWarning"),t.outputVariableName=this._outputVariableName,t.outputVariableNameWarning=this._outputVariableNameWarning),i.hasTableModelProperty("OutputVariableType")&&this._outputVariableType!==i.getTableModelProperty("OutputVariableType")&&(this._outputVariableType=i.getTableModelProperty("OutputVariableType"),t.outputVariableType=this._outputVariableType),i.hasTableModelProperty("unimportableCellRules")&&this._unimportableCellRules!==i.getTableModelProperty("unimportableCellRules")&&(this._unimportableCellRules=i.getTableModelProperty("unimportableCellRules"),t.unimportableCellRules=this._unimportableCellRules),i.hasTableModelProperty("ValidVariableNames")&&this._validVariableNames!==i.getTableModelProperty("ValidVariableNames")&&(this._validVariableNames=i.getTableModelProperty("ValidVariableNames"),t.validVariableNames=this._validVariableNames),i.hasTableModelProperty("IncludesVariableNamesRow")&&this._includesVariableNamesRow!==i.getTableModelProperty("IncludesVariableNamesRow")&&(this._includesVariableNamesRow=i.getTableModelProperty("IncludesVariableNamesRow"),t.includesVariableNamesRow=this._includesVariableNamesRow),i.hasTableModelProperty("SupportedOutputTypes")&&JSON.stringify(this._supportedOutputTypes)!==JSON.stringify(i.getTableModelProperty("SupportedOutputTypes"))&&(this._supportedOutputTypes=i.getTableModelProperty("SupportedOutputTypes"),t.supportedOutputTypes=this._supportedOutputTypes),i.hasTableModelProperty("SupportedOutputActions")&&JSON.stringify(this._supportedOutputActions)!==JSON.stringify(i.getTableModelProperty("SupportedOutputActions"))&&(this._supportedOutputActions=i.getTableModelProperty("SupportedOutputActions"),t.supportedOutputActions=this._supportedOutputActions),i.hasTableModelProperty("DTDurationColumns")&&JSON.stringify(this._dtDurationColumns)!==JSON.stringify(i.getTableModelProperty("DTDurationColumns"))&&(this._dtDurationColumns=i.getTableModelProperty("DTDurationColumns"),t.dtDurationColumns=this._dtDurationColumns),this._hasRowTimesProperties(i)&&this._anyRowTimesPropertiesDiffs(i)&&(this._rowTimesType=i.getTableModelProperty("RowTimesType"),this._rowTimesValue=i.getTableModelProperty("RowTimesValue"),this._rowTimesUnits=i.getTableModelProperty("RowTimesUnits"),this._rowTimesStart=i.getTableModelProperty("RowTimesStart"),this._rowTimesStartType=i.getTableModelProperty("RowTimesStartType"),this._rowTimesColumn=i.getTableModelProperty("RowTimesColumn"),t.rowTimesType=this._rowTimesType,t.rowTimesValue=this._rowTimesValue,t.rowTimesUnits=this._rowTimesUnits,t.rowTimesStart=this._rowTimesStart,t.rowTimesStartType=this._rowTimesStartType,t.rowTimesColumn=this._rowTimesColumn),t.type="metaDataChanged",t.dataSource=i.getTableModelProperty("DataSource"),t},_hasOutputNameProperties:function(e){return e.hasTableModelProperty("OutputVariableName")||e.hasTableModelProperty("OutputVariableNameWarning")},_anyOutputNamePropertiesDiffs:function(e){if(this._outputVariableName!==e.getTableModelProperty("OutputVariableName"))return!0;var t=e.getTableModelProperty("OutputVariableNameWarning");return(!Array.isArray(this._outputVariableNameWarning)||!Array.isArray(t)||0!==this._outputVariableNameWarning.length||0!==t.length)&&t!==this._outputVariableNameWarning},_hasRowTimesProperties:function(e){return e.hasTableModelProperty("RowTimesType")||e.hasTableModelProperty("RowTimesValue")||e.hasTableModelProperty("RowTimesUnits")||e.hasTableModelProperty("RowTimesStart")||e.hasTableModelProperty("RowTimesStartType")||e.hasTableModelProperty("RowTimesColumn")},_anyRowTimesPropertiesDiffs:function(e){var t=!1;return t=(t=(t=(t=(t=(t=t||this._rowTimesType!==e.getTableModelProperty("RowTimesType"))||this._rowTimesValue!==e.getTableModelProperty("RowTimesValue"))||this._rowTimesUnits!==e.getTableModelProperty("RowTimesUnits"))||this._rowTimesStart!==e.getTableModelProperty("RowTimesStart"))||this._rowTimesStartType!==e.getTableModelProperty("RowTimesStartType"))||this._rowTimesColumn!==e.getTableModelProperty("RowTimesColumn")},_dispatchMetaDataChanged:function(e){this.domNode&&n.emit(this.domNode,"metaDataChanged",{data:e})},_getCommonCurrentViewState:function(){return{variableNamesRow:this._variableNamesRow,rowCount:this._rowCount,selectionRange:this._selectionRangeExcel,outputVariableName:this._outputVariableName,outputVariableType:this._outputVariableType,outputVariableNameWarning:this._outputVariableNameWarning,unimportableCellRules:this._unimportableCellRules,validVariableNames:this._validVariableNames,includesVariableNamesRow:this._includesVariableNamesRow,supportedOutputTypes:this._supportedOutputTypes,supportedOutputActions:this._supportedOutputActions,dtDurationColumns:this._dtDurationColumns,rowTimesType:this._rowTimesType,rowTimesValue:this._rowTimesValue,rowTimesUnits:this._rowTimesUnits,rowTimesStart:this._rowTimesStart,rowTimesStartType:this._rowTimesStartType,rowTimesColumn:this._rowTimesColumn}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(9146),i(1560),i(1548)],o=i.dj.d(n,(function(e,t,i,n){return e("importtool_peer.ImportToolMixedDataStoreWrapper",[i],{createDataStore:function(){return new t(void 0,this._tableConstructor)},_chooseDataStoreForView:function(e){return n},_getChannelForDS:function(e,t){if(e.provider&&e.provider.channel){if(e.peerDocument&&e.peerDocument.varDocID)return e.provider.channel+"_"+e.peerDocument.varDocID;if(e.allArgs.peerDocument&&e.allArgs.peerDocument.varDocID)return e.provider.channel+"_"+e.allArgs.peerDocument.varDocID}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(2337),i(317),i(542),i(288),i(354),i(9148)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e("importtool_peer.ImportToolDataTypeMenuMixin",[],{CHANGE_CLASS_ACTION:"ColumnClassChangedAction",IMPORT_DATA_ACTION:"ImportData",_dataTypeMenuManager:void 0,_contextMenu:void 0,_fixedWidthContextMenu:void 0,_menuListeners:[],constructor:function(e){this._dataTypeMenuManager=new n,this._dataTypeMenuManager.on("commit",t.hitch(this,"_handleDataTypeMenuCommit")),this.own(this._dataTypeMenuManager)},initContextMenu:function(){this.cleanupITMenus(),this._contextMenu=new o,i.add(this._contextMenu.domNode,"dataTypeMenu"),this.own(this._contextMenu),this._fixedWidthContextMenu=new o,this.own(this._fixedWidthContextMenu),this._isLimitedInteractionMode()||(this._addDataTypeMenuItems(this._contextMenu),this._addDataTypeMenuItems(this._fixedWidthContextMenu)),this._addSelectionMenuItems(this._contextMenu),this._addSelectionMenuItems(this._fixedWidthContextMenu),this._isLimitedInteractionMode()||(this._addFixedWidthMenuItems(this._fixedWidthContextMenu),this._addImportMenuItem(this._contextMenu),this._addImportMenuItem(this._fixedWidthContextMenu))},cleanupITMenus:function(){for(var e=document.getElementsByClassName("dataTypeMenu");e.length>0;)e[0].parentNode.removeChild(e[0])},initHeaderMenu:function(){},_addDataTypeMenuItems:function(e){var t=new r({text:l.contextMenuConvertColumns});e.addChild(t);var i=new r({text:l.contextMenuConvertSelectedColumns});return e.addChild(i),[t,i]},_addSelectionMenuItems:function(e){e.addChild(new s);var t=new a({text:l.contextMenuSelectAll});this._menuListeners[this._menuListeners.length]=t.on("click",function(){this._selectAll()}.bind(this)),e.addChild(t);var i=new a({text:l.contextMenuClearSelection});this._menuListeners[this._menuListeners.length]=i.on("click",function(){this._clearSelection()}.bind(this)),e.addChild(i);var n=new a({text:l.contextMenuRestoreSelection});return this._menuListeners[this._menuListeners.length]=n.on("click",function(){this._restoreInitialSelection()}.bind(this)),e.addChild(n),[t,i,n]},_addFixedWidthMenuItems:function(e){e.addChild(new s);var t=new a({text:l.contextMenuMergeColumns});this._menuListeners[this._menuListeners.length]=t.on("click",function(){this._mergeColumns()}.bind(this)),e.addChild(t);var i=new a({text:l.contextMenuSplitColumns});return this._menuListeners[this._menuListeners.length]=i.on("click",function(){this._splitColumns()}.bind(this)),e.addChild(i),[t,i]},_addImportMenuItem:function(e){e.addChild(new s);var t=new a({text:l.contextMenuImportSelection});return this._menuListeners[this._menuListeners.length]=t.on("click",function(){this._dispatchActionToServer(this.IMPORT_DATA_ACTION)}.bind(this)),e.addChild(t),t},headerMenu:function(e){this.cleanupITMenus();var t={x:e.left,y:e.top},i=new r({text:l.contextMenuConvertSelectedColumns}),n=this._getColumnTypeInfo(e.columnIndex);if(this._isLimitedInteractionMode())for(let e=0;e<n.dataTypeList.length;e++)n.dataTypeList[e].disabled=!0;this._dataTypeMenuManager.setDataTypeList(n.dataTypeList);var o=this._isOutputVariableTypeLimited();if(i.set("disabled",o),!1===o){var a=this.getMetaDataStore().getTableModelProperty("selectionDataTypeList");if(this._isLimitedInteractionMode()&&(a=[]),i.set("disabled",0===a.length),a.length>0){var s=this._getContextFromColumnProps(e.columnIndices);this._dataTypeMenuManager.setDataTypeList(a)}}n.selected.revertAfterText=!0,this._dataTypeMenuManager.openMenuAndAddContent(t,n.selected,n.context,!1,i,s)},_getContextFromColumnProps:function(e){var t=this._getColumnModelPropsForViewPort();return{indices:e,allDataTypes:t.map((function(e){return e.class})),allDataTypeOptions:t.map((function(e){return e.classOption}))}},_isPositionOverDataTypeDropdown:function(e){return e>205&&e<=228},openContextMenu:function(e){if(!this._isPositionOverDataTypeDropdown(e.top)){var t,i=this._isOutputVariableTypeLimited(),n=this.getMetaDataStore();this.initContextMenu();var o=(t=!0===n.getTableModelProperty("IsFixedWidth")?this._fixedWidthContextMenu:this._contextMenu).getChildren()[0],r=t.getChildren()[1];if(o.set("disabled",i),r.set("disabled",i),!1===i){var a=this._getColumnTypeInfo(e.columnIndex);this._dataTypeMenuManager.setDataTypeList(a.dataTypeList),this._dataTypeMenuManager.addMenuTo(o,a.selected,a.context);var s=n.getTableModelProperty("selectionDataTypeList");if(r.set("disabled",0===s.length),s.length>0){var l={dataType:n.getTableModelProperty("selectionClass"),dataTypeOption:n.getTableModelProperty("selectionClassOption")},c=this._getContextFromColumnProps(e.columnIndices);this._dataTypeMenuManager.setDataTypeList(s),this._dataTypeMenuManager.addMenuTo(r,l,c,!0)}}var d=t._focusLost;t._focusLost=function(e){e.target.classList.contains("DataTypeCtxMenuOverlay")||d.call(t,e)},t.openMenu({x:e.left,y:e.top})}},_getColumnModelPropsForViewPort:function(){var e,t=this.getDataStore().getViewPortSize().columns.count,i=this.getMetaDataStore(),n=[];for(e=0;e<t;e+=1)n.push(i.getColumnProperties(e));return n},_isOutputVariableTypeLimited:function(){var e=this.getMetaDataStore();return!(!e.hasTableModelProperty("OutputVariableType")||"stringarray"!==e.getTableModelProperty("OutputVariableType")&&"numericarray"!==e.getTableModelProperty("OutputVariableType"))},_getColumnTypeInfo:function(e){var t=this._getColumnModelPropsForViewPort(),i=this.getMetaDataStore(),n=i.getColumnModelProperty("columnListType",e);return{dataTypeList:i.getTableModelProperty("dataTypeLists")[n],selected:{dataType:i.getColumnModelProperty("class",e),dataTypeOption:i.getColumnModelProperty("classOption",e)},context:{index:e,allDataTypes:t.map((function(e){return e.class})),allDataTypeOptions:this._getCustomDataTypeOptions(t)}}},_getCustomDataTypeOptions:function(e){var t=this.getMetaDataStore().getTableModelProperty("dataTypeLists");return e.map((function(e){var i=!1,n=e.classOption;if(n){var o=e.class,r=t[e.columnListType].filter((function(e){return e.dataType===o}))[0].defaultOptions;r&&-1!==r.indexOf(n)||(i=n)}return i}))},_handleDataTypeMenuCommit:function(e){var t={indices:e.context.indices||[e.context.index],dataType:e.dataType,dataTypeOption:e.dataTypeOption};this._dispatchActionToServer(this.CHANGE_CLASS_ACTION,t,!0)},_clearSelection:function(){if(this._viewModel&&this._viewModel._table&&this._viewModel.getDataStore()){var e=this._viewModel._table;e.setSelection&&e.setSelection({selectedRows:[{start:0,end:-1}],selectedColumns:[{start:0,end:-1}]})}},_selectAll:function(){if(this._viewModel&&this._viewModel._table&&this._viewModel.getDataStore()){var e=this._viewModel,t=e._table,i=e.getDataStore();t.setSelection&&t.setSelection({selectedRows:[{start:0,end:i.dataSize.rows.count}],selectedColumns:[{start:0,end:i.dataSize.columns.count}]})}},_restoreInitialSelection:function(){if(this._viewModel&&this._viewModel._table&&this._viewModel.getMetaDataStore()){var e=this._viewModel,t=e._table,i=e.getMetaDataStore().getTableModelProperty("initialSelection");t.setSelection&&t.setSelection({selectedRows:[{start:i[0]-1,end:i[2]-1}],selectedColumns:[{start:i[1]-1,end:i[3]-1}]})}},_mergeColumns:function(){if(this._viewModel&&this._viewModel._table&&this._viewModel.getMetaDataStore()){var e=this._viewModel,t=e._table.getSelection().selectedColumns,i=e.getMetaDataStore(),n=i.getTableModelProperty("VariableWidths");!1===Array.isArray(n)&&(n=[n]);var o,r,a=[],s=0,l=n.slice(0,n.length);for(r=t.length-1;r>=0;r-=1){for(o=0;o<l.length;o+=1)o===t[r].start?a.push(l[o]):o>=t[r].start&&o<=t[r].end?(s=a.pop(),a.push(l[o]+s)):a.push(l[o]);l=a.slice(0,a.length),r>0&&(a=[])}this._updateTableColumnWidths(e,i,a);var c={variableWidths:a};e._dispatchActionToServer("VariableWidthsChanged",c,!1)}},_splitColumns:function(){if(this._viewModel&&this._viewModel._table&&this._viewModel.getMetaDataStore()){var e=this._viewModel,t=e._table.getSelection().selectedColumns,i=e.getMetaDataStore(),n=i.getTableModelProperty("VariableWidths");!1===Array.isArray(n)&&(n=[n]);var o,r,a=[],s=n.slice(0,n.length);for(r=t.length-1;r>=0;r-=1){for(o=0;o<s.length;o+=1)o>=t[r].start&&o<=t[r].end?(a.push(Math.floor(s[o]/2)),a.push(Math.ceil(s[o]/2))):a.push(s[o]);s=a.slice(0,a.length),r>0&&(a=[])}this._updateTableColumnWidths(e,i,a);var l={variableWidths:a};e._dispatchActionToServer("VariableWidthsChanged",l,!1)}},_updateTableColumnWidths:function(e,t,i){var n=t.getTableModelProperty("SingleCharWidth"),o=Math.min.apply(null,i)*n;e._setColumnWidth({columnWidth:o})},_isLimitedInteractionMode:function(){return this.uiContainer&&"rangeonly"===this.uiContainer.scope},destroyContextMenus:function(){if(this._menuListeners){var e=0;for(e=0;e<this._menuListeners.length;e+=1)this._menuListeners[e].remove();this._menuListeners=[]}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(359),i(2736)],o=i.dj.d(n,(function(e,t,i){return e("importtool_client.TextArrayViewModel",[i,t],{_FIXED_WIDTH_CONTEXT:"FixedWidth",setFixedWidthContext:function(){this._userContext=this._FIXED_WIDTH_CONTEXT,this._tableConstructor._userContext=this._FIXED_WIDTH_CONTEXT,this.getMetaDataStore()._userContext=this._FIXED_WIDTH_CONTEXT},removeFixedWidthContext:function(){this._userContext="",this._tableConstructor._userContext="",this.getMetaDataStore()._userContext=""},resetUserManualColumnWidths:function(){if(this._dataStore&&this._table)for(var e=this._dataStore.dataSize.columns.count,t=0;t<e;t+=1)this._table._viewModel.deleteColumnMetaData("width",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(483),i(652),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return e("variableeditor.views.ClientPeerView",[n.Impl],{allArgs:{},peerNode:null,varName:null,editable:!0,cssSpecifier:"",userContext:{},viewListeners:[],constructor:function(e){this.init(e)},init:function(e){this.allArgs={},this.peerNode=null,this.userContext={},this.viewListeners=[],e&&(this.peerNode=e.peerNode,this.varName=e.varName,this.editable=e.editable,this.cssSpecifier=e.cssSpecifier,this.userContext=e.userContext||{},this.allArgs=e)},destroy:function(){i.logDebug("VE: ClientPeerView : destroy"),this.peerNode=null},addViewListener:function(e){this.viewListeners.push(e)},removeViewListener:function(e){var t=this.viewListeners.indexof(e);t>=0&&this.viewListeners.splice(t,1)},_fireViewReady:function(e){this.viewListeners.forEach((function(t){if(t.viewReady)try{t.viewReady(e)}catch(e){o.error(e),o.error(e.stack)}}))},getProperty:function(e,i){var n=new t((function(){!0}));return n.reject("Getting property "+e+" not supported."),n},setProperty:function(e,i,n){var o=new t((function(){!0}));return o.reject("Setting property "+e+" is not supported."),o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(9163)],o=i.dj.d(n,(function(e,t,i){var n;function o(){var e=document.createElement("div");return e.setAttribute("class","verticalSpacer"),e}function r(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function a(e){var t=i.getTextStyleDashes(e||{});return t.display=e&&!1===e.visible?"none":void 0,function(e){var t,i="";for(t in e)e.hasOwnProperty(t)&&e[t]&&(i+=t+":"+e[t]+";");return i}(t)}return n={default:{getColumnStyles:a,create:function(e,t){var i=document.createElement("div");i.setAttribute("class","plainText");var n=document.createElement("span");return n.appendChild(document.createTextNode(t||"")),i.appendChild(n),i.appendChild(o()),i},update:function(e,t,i){if("div"!==e.nodeName.toLowerCase()||!e.getAttribute("class")||"plainText"!==e.getAttribute("class"))return this.create(t,i);e.firstElementChild.firstChild.nodeValue=i}},checkbox:{getColumnStyles:a,create:function(e,t){var i=document.createElement("input");return this.update(i,e,t),i},update:function(e,t,i){if("input"!==e.nodeName.toLowerCase())return this.create(t,i);e.type="checkbox",!0===i||"true"===i?(e.setAttribute("checked",""),e.checked=!0):(e.removeAttribute("checked"),e.checked=!1),e.disabled=void 0!==t.enabled&&!t.enabled},getCellValue:function(e){if("input"===e.nodeName.toLowerCase()&&"checkbox"===e.type)return e.checked?e.setAttribute("checked",""):e.removeAttribute("checked"),!!e.checked}},text:{getColumnStyles:a,create:function(e,t){var i=document.createElement("input");return this.update(i,e,t),i},update:function(e,t,i){if("input"!==e.nodeName.toLowerCase())return this.create(t,i);e.type="text",e.value=i,!1===t.enabled?e.set("readOnly",!0):e.set("readOnly",!1)},getCellValue:function(e){if("input"===e.nodeName.toLowerCase()&&"text"===e.type)return e.value}},numeric:{getColumnStyles:a,create:function(e,t){var i=document.createElement("input");return this.update(i,e,t),i},update:function(e,t,i){if("input"!==e.nodeName.toLowerCase())return this.create(t,i);e.type="text",e.value=i,!1===t.enabled?e.set("readOnly",!0):e.set("readOnly",!1)},getCellValue:function(e){if("input"===e.nodeName.toLowerCase()&&"text"===e.type)return e.value}},color:{getColumnStyles:a,create:function(e,t){var i=document.createElement("input");return this.update(i,e,t),i},update:function(e,t,i){if("input"!==e.nodeName.toLowerCase())return this.create(t,i);e.type="text",e.value="["+i[0].toFixed(3)+", "+i[1].toFixed(3)+", "+i[2].toFixed(3)+"]",!1===t.enabled?e.set("readOnly",!0):e.set("readOnly",!1)},getCellValue:function(e){if("input"===e.nodeName.toLowerCase()&&"text"===e.type){var t=e.value.replace(/[\s\[\]]*/g,"").split(",");return[parseFloat(t[0]),parseFloat(t[1]),parseFloat(t[2])]}}},list:{getColumnStyles:a,create:function(e,t){var i=document.createElement("select");return this.update(i,e,t),i},update:function(e,t,i){if("select"!==e.nodeName.toLowerCase())return this.create(t,i);this._addOptions(e,t,i),e.disabled=void 0!==t.enabled&&!t.enabled},getCellValue:function(e,t,i){if("select"===e.nodeName.toLowerCase()){var n=i.listValues[e.selectedIndex];return this._addOptions(e,i,n),n}},_addOptions:function(e,t,i){var n,o,a,s=!1;if(t.listValues.length===e.children.length){for(n=0;n<t.listValues.length;n+=1)if((a=e.children[n]).value!==t.listValues[n]||a.hasAttribute("selected")!==(a.value===i)){s=!0;break}if(!s)return}for(r(e),n=0;n<t.listValues.length;n+=1)o=t.listValues[n],(a=document.createElement("option")).value=o,a.text=o,i===o&&a.setAttribute("selected",""),e.add(a)}},label:{getColumnStyles:a,create:function(e,t){var i=document.createElement("div");return i.setAttribute("class","label"),this.update(i,e,t),i},update:function(e,t,i){if("div"!==e.nodeName.toLowerCase()||"label"!==e.getAttribute("class"))return this.create(t,i);i.background&&e.setAttribute("style","background: rgb("+i.background.join(",")+")"),r(e),i.icon&&e.appendChild(i.icon.cloneNode());var n=document.createElement("label");"string"==typeof i.value?this._setLabel(n,i.value):"string"==typeof i&&this._setLabel(n,i),e.appendChild(n),e.appendChild(o())},_setLabel:function(e,t){var i=t.trim();0===i.indexOf("<html>")?e.innerHTML=i.substring(6,i.length-7):e.appendChild(document.createTextNode(t))}},expand:{create:function(e,t){var i=document.createElement("div");i.setAttribute("class","expand");var n=document.createElement("div"),o=document.createElement("div");return i.appendChild(n),i.appendChild(o),this.update(i,e,t),i},update:function(e,t,i){if("div"!==e.nodeName.toLowerCase()||"expand"!==e.getAttribute("class"))return this.create(t,i);var n,o=e.firstChild,a=o.nextElementSibling;if(r(o),r(a),i.expandable){var s=document.createElement("button");i.expanded&&s.setAttribute("class","expanded"),o.appendChild(s)}var l="";for(n=0;n<i.depth;n+=1)l+=" ";a.appendChild(document.createTextNode(l+i.text))}},prop:{create:function(e,t){var i=document.createElement("div");i.setAttribute("class","prop");var n=document.createElement("div"),o=document.createElement("div"),r=document.createElement("div");return i.appendChild(n),i.appendChild(o),i.appendChild(r),this.update(i,e,t),i},update:function(e,t,i){if("div"!==e.nodeName.toLowerCase()||"prop"!==e.getAttribute("class"))return this.create(t,i);var n=e.firstChild,o=n.nextElementSibling,a=o.nextElementSibling;r(n),r(o),r(a),this["_"+i.leftType](n,"left",i),this["_"+i.middleType](o,"middle",i),this["_"+i.rightType](a,"right",i)},getCellValue:function(e,i,n,o){if(o&&"text"===o.middleType){var r=t.clone(o);return r.middleText=i.value,r}},_label:function(e,t,i){if(i[t+"Text"]){var n=document.createTextNode(i[t+"Text"]);e.appendChild(n)}this._appendIcon(e,i[t+"Icon"])},_text:function(e,t,i){var n=document.createElement("input");n.type="text",n.value=i[t+"Text"],e.appendChild(n)},_button:function(e,t,i){var n=document.createElement("button");i[t+"Text"]&&n.appendChild(document.createTextNode(i[t+"Text"])),this._appendIcon(n,i[t+"Icon"]),e.appendChild(n)},_dropdown:function(e,t,i){var n=document.createElement("button");i[t+"Text"]&&n.appendChild(document.createTextNode(i[t+"Text"])),this._appendIcon(n,i[t+"Icon"]),e.appendChild(n)},_space:function(){},_appendIcon:function(e,t){"string"==typeof t?e.setAttribute("class",t+"Icon"):t instanceof Image&&e.appendChild(t.cloneNode())}},cell:{create:function(e,t){var i,o=t&&t.renderer&&t.renderer.type;return i=o&&n[o]?n[o].create(t.renderer,t.value):n.default.create(t.renderer,t.value),this._updateNode(i,t.renderer),i},update:function(e,t,i){var o,r=i&&i.renderer&&i.renderer.type;if(r&&n[r])if(n[r].update){if(!(o=n[r].update(e,i.renderer,i.value)))return void this._updateNode(e,i.renderer)}else o=n[r].create(i.renderer,i.value);else o=n.default.create(i.renderer,i.value);return this._updateNode(o,i.renderer),o},getCellValue:function(e,i,o,r){var a=r.renderer.type;if(a&&n[a]&&n[a].getCellValue){var s=t.clone(r);return s.value=n[a].getCellValue(e,i,r.renderer,r.value),s}},_updateNode:function(e,t){var i=t&&t.type;i&&n[i].getColumnStyles?e.setAttribute("style",n[i].getColumnStyles(t)):n.default.getColumnStyles&&e.setAttribute("style",n.default.getColumnStyles(t))}}}}),e,t),e.exports=o},function(e,t){e.exports='<div class="cell column variableEditorColumnHeaders" data-datatools-renderer-attach-point="variableEditorColumnHeaders" data-tag="datatools.variableeditor.views.table.variableEditorColumnHeaders">\n <div class="header cell">\n <div class="columnIndex" style="display: none;" data-datatools-renderer-attach-point="headerIndex"></div>\n <br class="lineBreak" style="display: none;" data-datatools-renderer-attach-point="lineBreak">\n <div class="columnLabel" style="display: none;" data-datatools-renderer-attach-point="headerLabel"></div>\n </div>\n <div class="drag" style="cursor: ew-resize;" data-datatools-renderer-attach-point="ColumnHeaderDrag">\n <div class="firstHalfOfDrag"></div>\n <div class="dragBorder"></div>\n <div class="secondHalfOfDrag"></div>\n </div>\n</div>'},function(e,t){e.exports='<div class="row variableEditorRowHeaders" data-datatools-renderer-attach-point="variableEditorRowHeaders" data-tag="datatools.variableeditor.views.table.variableEditorRowHeaders">\n <div class="cell" data-tag="datatools.variableeditor.views.table.variableEditorRowHeaders.cell">\n <div class="rowIndex" style="display: none;" data-datatools-renderer-attach-point="headerIndex"></div>\n <div class="rowLabel" style="display: none;" data-datatools-renderer-attach-point="headerLabel"></div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TESTING_INITIALIZED:"InitTestingHooks",HEADER_CONTEXTMENU_LABELS_SET:"HeaderContextMenuLabelsSet",STRUCT_RENDERED:"StructRendererd",HEADER_CONTEXTMENU_INITIALIZED:"HeaderContextMenusInitialized"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(342)],o=i.dj.d(n,(function(e){return{"open-selection":[e.Keys.ENTER],"delete-selection":[e.Keys.DELETE],"move-up":[e.Keys.UP_ARROW],"move-down":[e.Keys.DOWN_ARROW],"move-up-continuous":[e.Keys.SHIFT,e.Keys.UP_ARROW],"move-down-continuous":[e.Keys.SHIFT,e.Keys.DOWN_ARROW],"move-up-all":[e.Keys.SYSCTRL,e.Keys.SHIFT,e.Keys.UP_ARROW],"move-down-all":[e.Keys.SYSCTRL,e.Keys.SHIFT,e.Keys.DOWN_ARROW],"tab-navigate":[e.Keys.TAB],"shift-tab-navigate":[e.Keys.SHIFT,e.Keys.TAB],"select-all":[e.Keys.SYSCTRL,e.Keys.A]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(210),i(1691)],o=i.dj.d(n,(function(e,t,i,n){return t("importtool_client.renderers.HeaderRenderer",[],{config:{},_DEFAULT_COLUMN_TYPE:"Text",constructor:function(e){this.config=e||{}},getDomNode:function(e){var t=e.excelHeader||"",o=e.headerName||"",r=e.columnVarType||this._DEFAULT_COLUMN_TYPE,a=document.createElement("div");return a.id=e.columnNumber,i.add(a,n._HEADER_WRAPPER_CLASS),this._createHeaderDom(t,n._EXCEL_HEADER_CLASS,a),this._createHeaderDom(o,n._HEADER_NAME_CLASS,a),this._createHeaderDom(r,n._DATA_TYPE_CLASS,a),a},_createHeaderDom:function(t,n,o){var r=document.createElement("div"),a=e.formatString(t,{escapeSpace:!0});r.textContent=a,i.add(r,n),o.appendChild(r)}})}),e,t),e.exports=o},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(240),__webpack_require__(221),__webpack_require__.dj.c(module.i),__webpack_require__.dj.m(module),__webpack_require__(512),__webpack_require__(204),__webpack_require__(224)],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(dojo,has,require,thisModule,json,lang,array){if(!has("dojo-loader"))return console.error("cannot load the Dojo v1.x loader with a foreign loader"),0;has.add("dojo-fast-sync-require",1);var makeErrorToken=function(e){return{src:thisModule.id,id:e}},slashName=function(e){return e.replace(/\./g,"/")},buildDetectRe=/\/\/>>built/,dojoRequireCallbacks=[],dojoRequireModuleStack=[],dojoRequirePlugin=function(e,t,i){dojoRequireCallbacks.push(i),array.forEach(e.split(","),(function(e){var i=getModule(e,t.module);dojoRequireModuleStack.push(i),injectModule(i)})),checkDojoRequirePlugin()},checkDojoRequirePlugin=has("dojo-fast-sync-require")?function(){var e,t;for(t in modules)if(void 0===(e=modules[t]).noReqPluginCheck&&(e.noReqPluginCheck=/loadInit\!/.test(t)||/require\!/.test(t)?1:0),!e.executed&&!e.noReqPluginCheck&&e.injected==requested)return;guardCheckComplete((function(){var e=dojoRequireCallbacks;dojoRequireCallbacks=[],array.forEach(e,(function(e){e(1)}))}))}:(traverse=function(e){touched[e.mid]=1;for(var t,i,n=e.deps||[],o=0;o<n.length;o++)if(i=n[o],!((t=touched[i.mid])||0!==t&&traverse(i)))return touched[e.mid]=0,!1;return!0},function(){var e,t;for(t in touched={},modules)(e=modules[t]).executed||e.noReqPluginCheck?touched[t]=1:(0!==e.noReqPluginCheck&&(e.noReqPluginCheck=/loadInit\!/.test(t)||/require\!/.test(t)?1:0),e.noReqPluginCheck?touched[t]=1:e.injected!==arrived&&(touched[t]=0));for(var i,n=0,o=dojoRequireModuleStack.length;n<o;n++)if(e=dojoRequireModuleStack[n],!((i=touched[e.mid])||0!==i&&traverse(e)))return;guardCheckComplete((function(){var e=dojoRequireCallbacks;dojoRequireCallbacks=[],array.forEach(e,(function(e){e(1)}))}))}),dojoLoadInitPlugin=function(mid,require,loaded){require([mid],(function(bundle){require(bundle.names,(function(){for(var scopeText="",args=[],i=0;i<arguments.length;i++)scopeText+="var "+bundle.names[i]+"= arguments["+i+"]; ",args.push(arguments[i]);eval(scopeText);var callingModule=require.module,requireList=[],i18nDeps,syncLoaderApi={provide:function(e){e=slashName(e);var t=getModule(e,callingModule);t!==callingModule&&setArrived(t)},require:function(e,t){e=slashName(e),t&&(getModule(e,callingModule).result=nonmodule),requireList.push(e)},requireLocalization:function(e,t,i){i18nDeps||(i18nDeps=["dojo/i18n"]),i=(i||dojo.locale).toLowerCase(),e=slashName(e)+"/nls/"+(/root/i.test(i)?"":i+"/")+slashName(t),getModule(e,callingModule).isXd&&i18nDeps.push("dojo/i18n!"+e)},loadInit:function(e){e()}},hold={},p;try{for(p in syncLoaderApi)hold[p]=dojo[p],dojo[p]=syncLoaderApi[p];bundle.def.apply(null,args)}catch(e){signal("error",[makeErrorToken("failedDojoLoadInit"),e])}finally{for(p in syncLoaderApi)dojo[p]=hold[p]}i18nDeps&&(requireList=requireList.concat(i18nDeps)),requireList.length?dojoRequirePlugin(requireList.join(","),require,loaded):loaded()}))}))},extractApplication=function(e,t,i){var n,o=/\(|\)/g,r=1;for(o.lastIndex=t;(n=o.exec(e))&&(")"==n[0]?r-=1:r+=1,0!=r););if(0!=r)throw"unmatched paren around character "+o.lastIndex+" in: "+e;return[dojo.trim(e.substring(i,o.lastIndex))+";\n",o.lastIndex]},removeCommentRe=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/gm,syncLoaderApiRe=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/gm,amdLoaderApiRe=/(^|\s)(require|define)\s*\(/m,extractLegacyApiApplications=function(e,t){var i,n,o,r,a=[],s=[],l=[];for(t=t||e.replace(removeCommentRe,(function(e){return syncLoaderApiRe.lastIndex=amdLoaderApiRe.lastIndex=0,syncLoaderApiRe.test(e)||amdLoaderApiRe.test(e)?"":e}));i=syncLoaderApiRe.exec(t);)o=(n=syncLoaderApiRe.lastIndex)-i[0].length,r=extractApplication(t,n,o),"loadInit"==i[2]?a.push(r[0]):s.push(r[0]),syncLoaderApiRe.lastIndex=r[1];return(l=a.concat(s)).length||!amdLoaderApiRe.test(t)?[e.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),l.join(""),l]:0},transformToAmd=function(e,t){var i,n,o=[],r=[];if(buildDetectRe.test(t)||!(i=extractLegacyApiApplications(t)))return 0;for(var a in n=e.mid+"-*loadInit",getModule("dojo",e).result.scopeMap)o.push(a),r.push('"'+a+'"');return"// xdomain rewrite of "+e.mid+"\ndefine('"+n+"',{\n\tnames:"+json.stringify(o)+",\n\tdef:function("+o.join(",")+"){"+i[1]+"}});\n\ndefine("+json.stringify(o.concat(["dojo/loadInit!"+n]))+", function("+o.join(",")+"){\n"+i[0]+"});"},loaderVars=require.initSyncLoader(dojoRequirePlugin,checkDojoRequirePlugin,transformToAmd),sync=loaderVars.sync,requested=loaderVars.requested,arrived=loaderVars.arrived,nonmodule=loaderVars.nonmodule,executing=loaderVars.executing,executed=loaderVars.executed,syncExecStack=loaderVars.syncExecStack,modules=loaderVars.modules,execQ=loaderVars.execQ,getModule=loaderVars.getModule,injectModule=loaderVars.injectModule,setArrived=loaderVars.setArrived,signal=loaderVars.signal,finishExec=loaderVars.finishExec,execModule=loaderVars.execModule,getLegacyMode=loaderVars.getLegacyMode,guardCheckComplete=loaderVars.guardCheckComplete,touched,traverse;return dojoRequirePlugin=loaderVars.dojoRequirePlugin,dojo.provide=function(e){var t=syncExecStack[0],i=lang.mixin(getModule(slashName(e),require.module),{executed:executing,result:lang.getObject(e,!0)});return setArrived(i),t&&(t.provides||(t.provides=[])).push((function(){i.result=lang.getObject(e),delete i.provides,i.executed!==executed&&finishExec(i)})),i.result},has.add("config-publishRequireResult",1,0,0),dojo.require=function(e,t){var i=function(e,t){var i=getModule(slashName(e),require.module);if(syncExecStack.length&&syncExecStack[0].finish)syncExecStack[0].finish.push(e);else{if(i.executed)return i.result;t&&(i.result=nonmodule);var n=getLegacyMode();if(injectModule(i),n=getLegacyMode(),i.executed!==executed&&i.injected===arrived&&loaderVars.guardCheckComplete((function(){execModule(i)})),i.executed)return i.result;n==sync?i.cjs?execQ.unshift(i):syncExecStack.length&&(syncExecStack[0].finish=[e]):execQ.push(i)}}(e,t);return has("config-publishRequireResult")&&!lang.exists(e)&&void 0!==i&&lang.setObject(e,i),i},dojo.loadInit=function(e){e()},dojo.registerModulePath=function(e,t){var i={};i[e.replace(/\./g,"/")]=t,require({paths:i})},dojo.platformRequire=function(e){for(var t,i=(e.common||[]).concat(e[dojo._name]||e.default||[]);i.length;)lang.isArray(t=i.shift())?dojo.require.apply(dojo,t):dojo.require(t)},dojo.requireIf=dojo.requireAfterIf=function(e,t,i){e&&dojo.require(t,i)},dojo.requireLocalization=function(e,t,i){Promise.resolve().then((function(){var n=[__webpack_require__(218)];Promise.all(__webpack_require__.dj.w(n)).then(function(n){return function(n){n.getLocalization(e,t,i)}.apply(null,__webpack_require__.dj.u(n))}.bind(this))})).catch(__webpack_require__.oe)},{extractLegacyApiApplications:extractLegacyApiApplications,require:dojoRequirePlugin,loadInit:dojoLoadInitPlugin}}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},function(e,t,i){var n,o;n=[i(218),i(220),i(2753)],o=i.dj.d(n,(function(e,t){return t(e,"mw-browser-utils/l10n/nls/unsupportedErrorPage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(227),i(513),i(512)],o=i.dj.d(n,(function(e,t,i,n){function o(t,i,n){if(null!==n){var o=t[i];"string"==typeof o?t[i]=[o,n]:e.isArray(o)?o.push(n):t[i]=n}}var r={fieldToObject:function(e){var i=null;if(e=t.byId(e)){var n=e.name,o=(e.type||"").toLowerCase();if(n&&o&&!e.disabled)if("radio"==o||"checkbox"==o)e.checked&&(i=e.value);else if(e.multiple){i=[];for(var r=[e.firstChild];r.length;)for(var a=r.pop();a;a=a.nextSibling){if(1!=a.nodeType||"option"!=a.tagName.toLowerCase()){a.nextSibling&&r.push(a.nextSibling),a.firstChild&&r.push(a.firstChild);break}a.selected&&i.push(a.value)}}else i=e.value}return i},toObject:function(e){for(var i={},n=t.byId(e).elements,a=0,s=n.length;a<s;++a){var l=n[a],c=l.name,d=(l.type||"").toLowerCase();c&&d&&"file|submit|image|reset|button".indexOf(d)<0&&!l.disabled&&(o(i,c,r.fieldToObject(l)),"image"==d&&(i[c+".x"]=i[c+".y"]=i[c].x=i[c].y=0))}return i},toQuery:function(e){return i.objectToQuery(r.toObject(e))},toJson:function(e,t){return n.stringify(r.toObject(e),null,t?4:0)}};return r}),e,t),e.exports=o},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(240),__webpack_require__(512)],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(dojo,json){return dojo.fromJson=function(js){return eval("("+js+")")},dojo._escapeString=json.stringify,dojo.toJsonIndentStr="\t",dojo.toJson=function(e,t){return json.stringify(e,(function(e,t){if(t){var i=t.__json__||t.json;if("function"==typeof i)return i.call(t)}return t}),t&&dojo.toJsonIndentStr)},dojo}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},function(e,t,i){var n,o;n=[i(1265),i(1267)],o=i.dj.d(n,(function(e,t){return e("RequestTimeoutError",null,t,{dojoType:"timeout"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(512),i(240),i(224),i(221),i(485)],o=i.dj.d(n,(function(e,t,i,n){var o;if(n.add("activex","undefined"!=typeof ActiveXObject),n.add("dom-parser",(function(e){return"DOMParser"in e})),n("activex")){var r,a=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];o=function(e){var t=e.data,o=e.text;function s(e){try{var i=new ActiveXObject(e);i.async=!1,i.loadXML(o),t=i,r=e}catch(e){return!1}return!0}return t&&n("dom-qsa2.1")&&!t.querySelectorAll&&n("dom-parser")&&(t=(new DOMParser).parseFromString(o,"application/xml")),t&&t.documentElement||r&&s(r)||i.some(a,s),t}}var s=function(e){return n("native-xhr2-blob")||"blob"!==e.options.handleAs||"undefined"==typeof Blob?e.xhr.response:new Blob([e.xhr.response],{type:e.xhr.getResponseHeader("Content-Type")})},l={javascript:function(e){return t.eval(e.text||"")},json:function(t){return e.parse(t.text||null)},xml:o,blob:s,arraybuffer:s,document:s};function c(e){var t=l[e.options.handleAs];return e.data=t?t(e):e.data||e.text,e}return c.register=function(e,t){l[e]=t},c}),e,t),e.exports=o},function(e,t,i){e.exports={root:{unsupportedError:"<p>We're sorry...</p><p>The page you're accessing is not supported on this browser.</p><p>Please change or upgrade to one of the following supported browsers:</p><ul><li>On Windows Vista or Windows 7:<ul><li>Chrome 12 and above</li><li>Firefox 7 and above</li><li>Internet Explorer 9 and above</li></ul></li><li>On Mac 10.6 or Mac 10.7:<ul><li>Safari 5.0 and above</li><li>Chrome 12 and above</li></ul></li></ul>"}}},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){if(e("dom")){var t=["Webkit","Moz","O","ms","Khtml"],i=e.add;return i("css-enabled",(function(e,t,i){var n,o,r=t.documentElement,a=t.body||(o=!0,r.insertBefore(t.createElement("body"),r.firstChild)),s=i.style.display;return i.style.display="none",a.insertBefore(i,a.firstChild),n=0===i.offsetWidth,a.removeChild(i),i.style.display=s,o&&a.parentNode.removeChild(a),n})),i("css-content-box",(function(t,i,n){var o,r,a=i.documentElement,s=null;return e("css-enabled")&&(r=i.body||(o=!0,a.insertBefore(i.createElement("body"),a.firstChild)),n.style.cssText="position: absolute; top: -4000px; width: 40px; height: 40px; border: 1px solid black;",r.insertBefore(n,r.firstChild),s=40===n.clientWidth,r.removeChild(n),n.style.cssText=""),o&&r.parentNode.removeChild(r),s})),i("css-position-fixed",(function(t,i,n){var o,r,a,s,l=i.documentElement,c=null;return e("css-enabled")&&(r=n.cloneNode(!1),o=(s=i.body||(a=!0,l.insertBefore(i.createElement("body"),l.firstChild))).style.cssText,s.style.cssText="padding:0;margin:0",n.style.cssText="position:fixed;top:42px",s.insertBefore(r,s.firstChild),s.insertBefore(n,r),c=n.offsetTop!==r.offsetTop,s.removeChild(n),s.removeChild(r),s.style.cssText=o,n.style.cssText=""),a&&s.parentNode.removeChild(s),c})),i("css-rgba",(function(t,i,n){var o=null;if(e("css-enabled"))try{n.style.color="rgba(1,1,1,0.5)",o=/^rgba/.test(n.style.color),n.style.color=""}catch(e){}return o})),i("css-border-radius",(function(e,t,i){return n("borderRadius",i)})),i("css-box-shadow",(function(e,t,i){return n("boxShadow",i)})),i("css-box-sizing",(function(e,t,i){return n("boxSizing",i)})),i("css-opacity",(function(e,t,i){return n("opacity",i)})),i("css-opacity-filter",(function(t,i){return!e("css-opacity")&&void 0!==i.documentElement.filters})),i("css-resize",(function(e,t,i){return n("resize",i)})),i("css-selectable",(function(e,t,i){return n("userSelect",i)})),i("css-style-float",(function(e,t,i){return n("styleFloat",i)})),i("css-pointerevents",(function(e,t,i){return n("pointerEvents",i)})),i("css-text-overflow",(function(e,t,i){return n("textOverflow",i)})),i("css-text-shadow",(function(e,t,i){return n("textShadow",i)})),i("css-transform",(function(e,t,i){return n("transform",i)})),e}function n(e,i){var n=!1,o=e.charAt(0).toUpperCase()+e.slice(1),r=t.length,a=i.style;if("string"==typeof a[e])n=!0;else for(;r;)if("string"==typeof a[t[r-=1]+o]){n=!0;break}return n}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){var t=e.add,i={}.toString,n="[object Function]",o=Object;return t("object-create",(function(){return i.call(o.create)===n})),t("object-getprototypeof",(function(){return i.call(o.getPrototypeOf)===n})),t("object-seal",(function(){return i.call(o.seal)===n})),t("object-freeze",(function(){return i.call(o.freeze)===n})),t("object-issealed",(function(){return i.call(o.isSealed)===n})),t("object-isfrozen",(function(){return i.call(o.isFrozen)===n})),t("object-keys",(function(){return i.call(o.keys)===n})),t("object-preventextensions",(function(){return i.call(o.preventExtensions)===n})),t("object-isextensible",(function(){return i.call(o.isExtensible)===n})),t("object-defineproperty",(function(){return i.call(o.defineProperty)===n})),t("object-defineproperties",(function(){return i.call(o.defineProperties)===n})),t("object-getownpropertydescriptor",(function(){return i.call(o.getOwnPropertyDescriptor)===n})),t("object-getownpropertynames",(function(){return i.call(o.getOwnPropertyNames)===n})),t("object-es5",(function(){return e("object-create")&&e("object-defineproperties")&&e("object-defineproperty")&&e("object-freeze")&&e("object-getownpropertydescriptor")&&e("object-getownpropertynames")&&e("object-getprototypeof")&&e("object-isextensible")&&e("object-isfrozen")&&e("object-issealed")&&e("object-keys")&&e("object-preventextensions")&&e("object-seal")})),e}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){var e,t,i,n=["backgroundColor","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","color","fontFamily","fontSize","fontStyle","fontWeight","height","lineHeight","margin","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","minHeight","minWidth","overflow","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","textAnchor","textDecoration","textIndent","textOverflow","textShadow","textTransform","width"];return{sanitizeHtmlFromJava:(e={A:["target","href","title"],ABBR:["title"],ADDRESS:[],AREA:["shape","coords","href","alt"],ARTICLE:[],ASIDE:[],AUDIO:["autoplay","controls","loop","preload","src"],B:[],BDI:["dir"],BDO:["dir"],BIG:[],BLOCKQUOTE:["cite"],BR:[],CAPTION:[],CENTER:[],CITE:[],CODE:[],COL:["align","valign","span","width"],COLGROUP:["align","valign","span","width"],DD:[],DEL:["datetime"],DETAILS:["open"],DIV:[],DL:[],DT:[],EM:[],FONT:["color","size","face"],FOOTER:[],H1:[],H2:[],H3:[],H4:[],H5:[],H6:[],HEADER:[],HR:[],I:[],IMG:["src","alt","title","width","height"],INS:["datetime"],LI:[],MARK:[],NAV:[],OL:[],P:[],PRE:[],S:[],SECTION:[],SMALL:[],SPAN:[],SUB:[],SUP:[],STRONG:[],TABLE:["width","border","align","valign"],TBODY:["align","valign"],TD:["width","rowspan","colspan","align","valign"],TFOOT:["align","valign"],TH:["width","rowspan","colspan","align","valign"],THEAD:["align","valign"],TR:["rowspan","align","valign"],TT:[],U:[],UL:[],VIDEO:["autoplay","controls","loop","preload","src","height","width"]},t={href:{"http:":!0,"https:":!0,"mailto:":!0,"matlab:":!0,relative:{"#":!0,"/":!0}},src:{"http:":!0,"https:":!0,"mailto:":!0,relative:{"#":!0,"/":!0}}},i=!0,function(o){var r=function(e,t){var i=String.prototype.trim.call(t),n=i.indexOf(":");return n<0&&e.relative[i.charAt(0)]||e[i.substring(0,n)+":"]?i:"#"},a=function(o){var a=void 0;return o.nodeType===window.Node.ELEMENT_NODE?e[o.tagName]?(a=document.createElement(o.tagName),function(e,i){for(var n=[],o=0;o<e.length;o+=1){var a=e[o];if(i.hasAttribute(a)){var s=i.getAttribute(a),l="";l=t[a]?r(t[a],s):s,n.push({key:a,value:l})}}return n}(e[o.tagName],o).forEach((function(e){a.setAttribute(e.key,e.value)})),i&&function(e,t){var i=t.getAttribute("style");if(e.style&&null!==i&&""!==i)for(var o=0;o<n.length;o+=1){var r=n[o],a=t.style[r];void 0!==e.style[r]&&(e.style[r]=a)}}(a,o)):a=document.createDocumentFragment():a=o.nodeType===window.Node.TEXT_NODE?document.createTextNode(o.textContent):document.createDocumentFragment(),a},s=(new DOMParser).parseFromString(o,"text/html");return s.body?function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=document.createDocumentFragment();if(i>150||!t)return n;for(var o=t.firstChild;o;o=o.nextSibling){var r=a(o);o.nodeType===window.Node.ELEMENT_NODE&&r.appendChild(e(o,i+1)),n.appendChild(r)}return n}(s.body):document.createDocumentFragment()})}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){const e={DEBUG:5,LOG:4,TABLE:4,TIME:4,DIR:4,INFO:3,WARN:2,ASSERT:1,ERROR:1};return Object.freeze(e),e}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1268)],o=i.dj.d(n,(function(e){let t={create:function(t){let i={},n=[];e.makeReadOnlyProperty(i,"size",t);let o=0;return i.add=function(e){n[o]=e,o=(o+1)%i.size},i.applyCallback=function(e){let r=o+1;void 0===n[r]&&(r=0);let a=0,s=r;for(;a<i.size&&void 0!==n[s];)e(n[s]),s=(s+1)%t,a++},i}};return t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(242),i(222),i(206),i(221),i(45),i(341),i(209),i(468),i(1826),i(902),i(290),i(3310)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([n],{constructor:function(e,t){e=e||{},t&&this.initialize(e,t)},initialize:function(e,t){if(this.domNode)l.error("MOTW Application has already been initialized");else{e=e||{},this._isJSDesktopTechPreview=!!e.isJSDesktopTechPreview,this.featureSwitches=e.featureSwitches,this.domNode=t,this._moduleLoader=d.getInstance(),this._moduleRegistry=this._appendOverloadedModules(e.appModuleRegistry,p),this._moduleLoader.register(this._moduleRegistry);try{this.start(),u.displayDialog()}catch(e){l.error("Error while loading the application: "),l.dir(e)}}},start:function(e){e=e||{},a.init(this);c.start("AppModuleLoading_BootstrapService"),this._moduleLoader.loadExports(this._moduleLoader.convertServicesToExportNames(["messageService"]),{loadModulesWhenIdle:!0}).then(function(e){this._moduleLoader.loadExports(this._moduleLoader.convertServicesToExportNames(["bootstrapService"]),{loadModulesWhenIdle:!0}).then((function(){c.end("AppModuleLoading_BootstrapService")}))}.bind(this),(function(e){console.log(e)})),r("ff")?window.onbeforeunload=t.hitch(this,this._onBeforeUnload):o(window,"onbeforeunload",this,this._onBeforeUnload)},_appendOverloadedModules:function(e,t){return e&&e.length>0?e.concat(t):t},_setupJSDesktopTechPreview:function(){this.sessionService.loadSession({includeClientProperties:!0,includePath:!0,includeWorkspaceAndFigures:!1,includePrefdir:!0}),this.featureService&&this.featureService.processFeatureSwitches(this.featureSwitches),this._startEarlyModules();var e=function(){},t=this;t.messageService.subscribe("/dummy_tmp_channel/tmp",e,t).then((function(){t._startModules(),t.busyIndicator.hide(),t.messageService.unsubscribe("/dummy_tmp_channel/tmp",e,t)}))},_onBeforeUnload:function(e){if(!1===s.getFeatureStatus(s.FeatureNames.LOGIN)||"computeResourceReady"===this.wraService.getCurrentState()){var t=require("MOTW/layout/Layout");return t.updateWidgetsWithLayoutId("mggPopup","softClose",!0),t.removeWidgetsWithLayoutId("mggPopup"),this.fileDataService.doesOpenModifiedFileExist()?(r("ie")&&(i.global.window.event.returnValue=h.unsavedFilesWarning),e.returnValue=h.unsavedFilesWarning,h.unsavedFilesWarning):void 0}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(227),i(206),i(1698),i(209)],o=i.dj.d(n,(function(e,t,i,n){return function(o){var r,a,s,l;if(!o)throw new Error("Expected a valid url in urlToEmptyJsFile");return(r={}).framedoc=null,"error",a=i.get(o,r,!0),s=e.byId(a.id,r.frameDoc),l=t(s,"error",(function(e){n.info("CheckUrlService detected an error accessing url: "+o),a.handleResponse(null,e),l.remove()})),a.promise}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}n=[],o=i.dj.d(n,(function(){return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._childIframes=[],this._inFlightTransactions={},this._noop=function(){},this._webSocket=null,this._parent=t.parent,this.postMessage("ready","")}var t,i,n;return t=e,(i=[{key:"postMessage",value:function(e,t){this._parent.postMessage(e+";"+t||"","*")}},{key:"handleXhrResponse",value:function(e,t){var i=e+";success;"+t;this.postMessage("sendMessageResponse",i)}},{key:"handleXhrFault",value:function(e,t,i){var n=e+";fault;"+t+";"+i;this.postMessage("sendMessageResponse",n)}},{key:"handleMessage",value:function(e){var t,i,n,o,r,a,s,l,c,d,u,h=this,p=e.data.indexOf(";"),f=e.data.substring(0,p);if(!f)throw new Error("Unable to parse message, no action specified: "+e.data);switch(f){case"sendMessage":if(t=e.data.indexOf(";",p+1),i=e.data.indexOf(";",t+1),s=e.data.indexOf(";",i+1),n=e.data.substring(p+1,t),o=e.data.substring(t+1,i),l=JSON.parse(e.data.substring(i+1,s)),r=e.data.substring(s+1,e.data.length),!(n&&o&&r))throw new Error("Invalid message to send: "+e.data);try{if(c=new XMLHttpRequest,this._inFlightTransactions[n]={xhr:c},d=!1,c.onreadystatechange=function(){var e;0===c.readyState?(d=!0,h.handleXhrFault(n,"XHR readyState 0")):4!==c.readyState||d||(d=!0,(e=c.status||0)>=200&&e<300||304===e?h.handleXhrResponse(n,c.responseText):h.handleXhrFault(n,c.responseText,e)),d&&c&&(c.onreadystatechange=h._noop,c=null,delete h._inFlightTransactions[n].xhr,delete h._inFlightTransactions[n])},c.open("POST",o,!0),c.setRequestHeader("Content-Type",l.contentType?l.contentType:"application/json"),c.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.headers)for(u in l.headers)l.headers.hasOwnProperty(u)&&c.setRequestHeader(u,l.headers[u]);c.send(r)}catch(e){this.handleXhrFault(n,"Unable to send data: "+e.toString())}break;case"createUploadIframe":n=e.data.substring(p+1,e.data.length),document.getElementById(n)||((a=document.createElement("iframe")).id=n,a.name=n,a.src="about:blank",a.width=0,a.height=0,a.style="visibility: hidden; display: none;",this._childIframes.push(a),document.body.appendChild(a));break;case"cancelUpload":n=e.data.substring(p+1,e.data.length);var g=document.getElementById(n);g&&(-1!==navigator.appVersion.indexOf("MSIE")?g.contentWindow.document.execCommand("Stop"):g.contentWindow.stop());break;case"abort":n=e.data.substring(p+1,e.data.length),this._inFlightTransactions[n]&&this._inFlightTransactions[n].xhr.abort();break;case"connectWebsocket":var m=e.data.substring(p+1,e.data.length);this._webSocket=new WebSocket(m),this._webSocket.onopen=function(){h._parent.postMessage("websocketOpened;","*")},this._webSocket.onmessage=function(e){var t={data:e.data},i=JSON.stringify(t);h._parent.postMessage("websocketMsg;"+i,"*")},this._webSocket.onclose=function(e){var t={code:e.code,reason:e.reason,wasClean:e.wasClean},i=JSON.stringify(t);h._parent.postMessage("websocketClosed;"+i,"*")},this._webSocket.onerror=function(){h._parent.postMessage("websocketError;","*")};break;case"websocketSend":var _=e.data.substring(p+1,e.data.length);this._webSocket.send(_);break;case"closeWebsocket":this._webSocket.close();break;default:throw new Error("Unknown action: "+f)}}}])&&r(t.prototype,i),n&&r(t,n),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(224),i(203),i(204)],o=i.dj.d(n,(function(e,t,i){return t([],{constructor:function(e){e=e||{},this.faultHandlers=e.faultHandlers||{},this.topLevelHandlers=e.topLevelHandlers||[],this.endPointLevelHandlers=e.endPointLevelHandlers||{}},registerFaultHandler:function(e,t,n){n&&(t=i.hitch(n,t)),this.faultHandlers[e]=t},deregisterFaultHandler:function(e){delete this.faultHandlers[e]},registerTopLevelFaultHandler:function(e,t,n){var o;if(n&&(t=i.hitch(n,t)),i.isString(e)){if("*"===e)return o={matcher:e,handler:t},this.defaultTopLevelHandler=t,o;e=this._constructMatcherFromQuery(e)}return o={matcher:e,handler:t},this.topLevelHandlers.push(o),o},registerEndpointLevelFaultHandler:function(e,t,n,o){var r;return o&&(n=i.hitch(o,n)),i.isString(t)&&(t=this._constructMatcherFromQuery(t)),r={matcher:t,handler:n},this.endPointLevelHandlers[e]||(this.endPointLevelHandlers[e]=[]),this.endPointLevelHandlers[e].push(r),r},deregisterTopLevelFaultHandler:function(e){var t=this.topLevelHandlers.indexOf(e);t>-1?this.topLevelHandlers.splice(t,1):"*"===e.matcher&&delete this.defaultTopLevelHandler},_constructMatcherFromQuery:function(t){var n=t.split("||"),o=[];return n.forEach((function(e){e=(e=(e=i.trim(e)).replace(/([.])/g,"\\$1")).replace(/\*/g,".*"),o.push(new RegExp("^"+e+"$"))})),function(t){return e.some(o,(function(e){return e.test(t.faultCode||t.code||"")}))}},handleFault:function(e){var t,n=function(t,i){var n,o=e.getMessageClassifier(i);o&&(n=[t,o].join(":"),this.faultHandlers[n]&&this.faultHandlers[n](e.fault,e.context))};for(t in e.requestMessages)if(e.requestMessages.hasOwnProperty(t)){this.faultHandlers[t]&&this.faultHandlers[t](e.fault,e.context);var o=e.requestMessages[t];Array.isArray(o)&&o.forEach(i.hitch(this,n,t))}this.faultHandlers["*"]&&this.faultHandlers["*"](e.fault,e.context),this.endPointLevelHandlers[e.endPointName]?this._handleEndpointLevelFault(e):this._handleTopLevelFault(e)},_handleEndpointLevelFault:function(t){var i=!1,n=e.filter(this.endPointLevelHandlers[t.endPointName],(function(e){return e.matcher.call(this,t.fault,t.context)}),this);return n.length>0&&n[0].handler&&(i=!0,n[0].handler.call(this,t.fault,t.context,t)),i},_handleTopLevelFault:function(t){var i=e.filter(this.topLevelHandlers,(function(e){return e.matcher.call(this,t.fault,t.context)}),this),n=i.length>0?i[0].handler:this.defaultTopLevelHandler;n&&n.call(this,t.fault,t.context,t)},handleNonTransactionFault:function(t){var i=e.filter(this.topLevelHandlers,(function(e){return e.matcher.call(this,t)}),this),n=i.length>0?i[0].handler:this.defaultTopLevelHandler;n&&n.call(this,t)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(224),i(203),i(306),i(204),i(540),i(1270),i(1271)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t([],{defaultMapping:r,constructor:function(e){e=e||{},this.defaultFactories=e.defaultFactories||{},this.mockHandlers=e.mockHandlers||{},this.mapping=e.mapping||this.defaultMapping,this.responseManager=e.responseManager},registerDefaultMessageFactory:function(e,t,i){i&&(t=n.hitch(i,t)),this.defaultFactories[e]=t},deregisterDefaultMessageFactory:function(e){delete this.defaultFactories[e]},registerMockResponseGenerator:function(e,t,o){var r=this;t=n.hitch(o||this,t),this.mockHandlers[e]=function(e,n){var o,s=a.construct(n);(o=t(e,s))||(o=new i).callback(),o.addCallback((function(){r.responseManager._processResult(s)}))}},deregisterMockResponseGenerator:function(e){delete this.mockHandlers[e]},sendMessage:function(e,t,i){var n,o,r,a={},s={};for(t=t||{},this._createAndFillTransactions(e,t,i,a,s),n=Object.keys(a),o=0;o<n.length;o+=1)r=n[o],this._callMocks(s[r]),a[r].send(),this.responseManager.handleTransaction(a[r])},_getTransaction:function(e,t){return a.construct({context:t,computeToken:this.computeToken,endPointName:e})},_getMockTransaction:function(e,t,i){return a.construct({context:t,computeToken:this.computeToken,endPointName:e,uuid:i})},_createAndFillTransactions:function(e,t,i,n,r){var a,s,l,c,d=function(e){var i,a,s,l,c,d,u;if(c=o.getEndPointForMessageType(e),d=n[c],u=r[c],d||(d=this._getTransaction(c,t),u=this._getMockTransaction(c,t,d.uuid),n[c]=d,r[c]=u),this.defaultFactories[e]){if(!(i=this.defaultFactories[e](d.context)))return;s=(a=e.split(":"))[0],l=a.slice(1,a.length).join(":"),this.mockHandlers[e]||d.addRequestMessage(s,i,l),u.addRequestMessage(s,i,l)}};for(a in e)if(e.hasOwnProperty(a)){var u=o.getEndPointForMessageType(a);l=r[u],c=n[u],n[u]||(c=this._getTransaction(u,t),l=this._getMockTransaction(u,t,c.uuid),n[u]=c,r[u]=l),s=[a,i].join(":"),this.mockHandlers[a]||this.mockHandlers[s]||c.addRequestMessage(a,e[a],i),l.addRequestMessage(a,e[a],i),this.mapping[s]?this.mapping[s].forEach(d,this):this.mapping[a]&&this.mapping[a].forEach(d,this)}},_callMocks:function(e){var t,i,o=e.context;delete e.context;var r=function(e,i){var n,o=t.getMessageClassifier(i);o&&(n=[e,o].join(":"),this.mockHandlers[n]&&this.mockHandlers[n]([i],t))};for(i in e.requestMessages)e.requestMessages.hasOwnProperty(i)&&((t=n.mixin({},e)).context=o,this.mockHandlers.hasOwnProperty(i)&&this.mockHandlers[i](t.requestMessages[i],t),Array.isArray(t.requestMessages[i])?t.requestMessages[i].forEach(n.hitch(this,r,i)):r(i,t.requestMessages[i]));this.mockHandlers["*"]&&this.mockHandlers["*"](i,t.requestMessages[i],t)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(224),i(306),i(204),i(1269)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(){this.DirectXhrConstants={ENABLED:"ENABLED",DISABLED:"DISABLED",UNRESOLVED:"UNRESOLVED"},this._setDirectXhrCommunicationState(!1),this._directXhrChecks={},this._initializeEndPointsCollection()},_initializeEndPointsCollection:function(){this.endPointsCollection={ROUTER_LEAF_INSECURE_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!0,iframeProxyUrl:"",pathSuffix:"messageservice/json",messages:["RouterLogin","CreateAccount","CurrentUser","Login","UpdateAccount","ServiceRegistry","ClientType","AuthorizationDetails","AcquireMatlab"],iframeProxyName:"remoteProducer",acceptsMessageContainerMessages:!0,directXhr:this.DirectXhrConstants.UNRESOLVED},ROUTER_LEAF_SECURE_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!0,iframeProxyUrl:"",pathSuffix:"messageservice/json/secure",messages:[],iframeProxyName:"remoteProducer",acceptsMessageContainerMessages:!0,directXhr:this.DirectXhrConstants.UNRESOLVED},WORKER_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!1,iframeProxyUrl:"",pathSuffix:"messageservice/json/secure",messages:[],iframeProxyName:"remoteWorkerProducer",acceptsMessageContainerMessages:!0,directXhr:this.DirectXhrConstants.UNRESOLVED},WORKER_ASYNC_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!0,iframeProxyUrl:"",pathSuffix:"messageservice/async",messages:[],iframeProxyName:"remoteWorkerAsyncProducer",acceptsMessageContainerMessages:!0,directXhr:this.DirectXhrConstants.UNRESOLVED},USAGE_DATA_ROUTER_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!0,iframeProxyUrl:"",pathSuffix:"udc/service/v1/events",messages:["UsageDataEventCollection"],iframeProxyName:"remoteUDCProducer",acceptsMessageContainerMessages:!1,directXhr:this.DirectXhrConstants.UNRESOLVED},HELP_DATA_ROUTER_ENDPOINT:{routingHost:"",routingKey:"",iframeProxy:null,enabled:!0,iframeProxyUrl:"",pathSuffix:"",messages:["HelpDataEventCollection"],iframeProxyName:"doc_center",acceptsMessageContainerMessages:!1,directXhr:this.DirectXhrConstants.UNRESOLVED}}},_setDirectXhrCommunicationState:function(e){this._useDirectXhrForCommunication=e},reset:function(){this._initializeEndPointsCollection(),this._directXhrChecks={}},setUpNewEndPoint:function(e,t,i,n,o){this.endPointsCollection[e]={routingHost:"",routingKey:"",pathSuffix:i,enabled:t,messages:[],iframeProxy:null,iframeProxyName:n,acceptsMessageContainerMessages:o,directXhr:this.DirectXhrConstants.UNRESOLVED}},getPathSuffixForEndPoint:function(e){return this.endPointsCollection[e].pathSuffix},setPathSuffixForEndPoint:function(e,t){this.endPointsCollection[e].pathSuffix=t},getEndPointNames:function(){var e,t={};for(e in this.endPointsCollection)this.endPointsCollection.hasOwnProperty(e)&&(t[e]=e);return t},setRoutingHostAndRoutingKey:function(e,t,i){t&&t.lastIndexOf("/")!==t.length-1&&(t+="/"),this.endPointsCollection[e].routingHost=t,i&&(this.endPointsCollection[e].routingKey=i),this._checkIfEndpointAllowsDirectXhr(e,!0).then(n.hitch(this,this._processEndPointAllowsXhrResponse,e,t))},_processEndPointAllowsXhrResponse:function(e,t,i){this._setEndpointAllowsDirectXhr(i),i.status!==this.DirectXhrConstants.ENABLED&&t&&this._setIframeRoutingHostAndRoutingkey(e)},_setEndpointAllowsDirectXhr:function(e){this.endPointsCollection[e.endPointName]&&e.status in this.DirectXhrConstants&&(this.endPointsCollection[e.endPointName].directXhr=e.status)},_setIframeRoutingHostAndRoutingkey:function(e){var t=this.getIframeProxyClientForEndPoint(e);t&&t.setRemotePageHost(this.endPointsCollection[e].routingHost,this.endPointsCollection[e].routingKey,null,this.endPointsCollection[e].iframeProxyUrl)},getEndPointAllowsDirectXhr:function(e){return this._checkIfEndpointAllowsDirectXhr(e,!1)},_checkIfEndpointAllowsDirectXhr:function(e,t){if(this._directXhrChecks[e]&&!t)return this._directXhrChecks[e];var n=new i;this._directXhrChecks[e]=n;var o,r=this.getDirectXhrAllowed(e),a=this.DirectXhrConstants,s={endPointName:e,status:a.UNRESOLVED};if("function"==typeof URL)try{o=new URL(this.getRoutingHost(e))}catch(e){return s.status=a.DISABLED,n.resolve(s),n.promise}else(o=document.createElement("a")).href=this.getRoutingHost(e);if(this._useDirectXhrForCommunication)if(o.origin===window.location.origin)s.status=a.ENABLED,n.resolve(s);else if(r===a.UNRESOLVED){var l=new XMLHttpRequest,c=this.getRemoteUrlForEndPoint(e);l.open("OPTIONS",c),l.send(),l.onload=function(){200===l.status?(s.status=a.ENABLED,n.resolve(s)):(s.status=a.DISABLED,n.resolve(s))},l.onerror=function(){s.status=a.DISABLED,n.resolve(s)}}else s.status=r,n.resolve(s);else s.status=a.DISABLED,n.resolve(s);return n.promise},getRoutingHost:function(e){return this.endPointsCollection[e].routingHost},getRoutingKey:function(e){return this.endPointsCollection[e].routingKey},getMessageTypesMappedToEndPoint:function(e){return this.endPointsCollection[e].messages},isEndPointEnabled:function(e){return this.endPointsCollection[e].enabled},setMessageTypesToEndPoint:function(e,t){this.endPointsCollection[e].messages=t},enableEndPoint:function(e){this.endPointsCollection[e].enabled=!0},getDirectXhrAllowed:function(e){return this.endPointsCollection[e].directXhr},disableEndPoint:function(e){this.endPointsCollection[e].enabled=!1},getEndPointForMessageType:function(e){var i,n=null;for(i in this.endPointsCollection)if(this.endPointsCollection.hasOwnProperty(i)&&(n=t.lastIndexOf(this.endPointsCollection[i].messages,e)>-1?i:n)){if(this.isEndPointEnabled(n))break;n=null}return n||this.getEndPointNames().ROUTER_LEAF_SECURE_ENDPOINT},getRemoteUrlForEndPoint:function(e){var t=this.endPointsCollection[e].routingHost+this.endPointsCollection[e].pathSuffix;return this.endPointsCollection[e].routingKey&&(t=t+"?routingkey="+this.endPointsCollection[e].routingKey),t},setIframeProxyClientForEndPoint:function(e,t){this.endPointsCollection[e].iframeProxy=t},getIframeProxyClientForEndPoint:function(e){var t=this.endPointsCollection[e].iframeProxy;return t||(t=new o(this.endPointsCollection[e].iframeProxyName),this.endPointsCollection[e].iframeProxy=t),t},isEndpointMessageContainerBased:function(e){return!e||!this.endPointsCollection[e]||this.endPointsCollection[e].acceptsMessageContainerMessages},addMessagesTypesToEndPoint:function(e,t){this.endPointsCollection[e]&&-1===this.endPointsCollection[e].messages.indexOf(t)&&this.endPointsCollection[e].messages.push(t)},removeMessageTypesFromEndPoint:function(e,t){if(this.endPointsCollection[e]){var i=this.endPointsCollection[e].messages.indexOf(t);i>-1&&this.endPointsCollection[e].messages.splice(i,1)}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(204),i(209),i(540)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e){e=e||{},this.responseHandlers=e.responseHandlers||{},this.faultManager=e.faultManager,this.transactions=e.transactions||[]},registerResponseHandler:function(e,i,n){n&&(i=t.hitch(n,i)),this.responseHandlers[e]=i},deregisterResponseHandler:function(e){delete this.responseHandlers[e]},handleTransaction:function(e){this.transactions.push(e),e.deferred.addCallback(t.hitch(this,this._processAll,e)),e.deferred.addCallback(t.hitch(this,this._processResult,e)),e.deferred.addErrback(t.hitch(this,this._processAll,e)),e.deferred.addErrback(t.hitch(this,this._processFault,e))},_processAll:function(e){var t;(t=this.transactions.indexOf(e))>=0&&this.transactions.splice(t,1)},_processResult:function(e){e.getResponseMessageTypes().forEach((function(t){var n=e.responseMessages[t],o=[];try{Array.isArray(n)&&(n.forEach((function(i){var n,r=e.getMessageClassifier(i);if(r){n=[t,r].join(":");var a=this,s=!1;e.getRequestMessageTypes().forEach((function(t){var o=e.requestMessages[t];Array.isArray(o)?o.forEach((function(t){a.responseHandlers[n]&&t.uuid===i.uuid&&(a.responseHandlers[n]([i],e.context),s=!0)})):a.responseHandlers[n]&&o.uuid===i.uuid&&(a.responseHandlers[n]([i],e.context),s=!0)})),s||o.push(i)}else o.push(i)}),this),o.length>0&&this.responseHandlers[t]&&this.responseHandlers[t](o,e.context),this.responseHandlers["*"]&&this.responseHandlers["*"](t,e.responseMessages[t],e.context))}catch(e){i.error("Remote: Fault occurred while processing response.\nMessage: "+e.message+"\nType: "+t+"\nResponse: "+JSON.stringify(n,null,2))}}),this),this._processUdcResponses(e),e.fault&&this.faultManager.handleFault(e)},_processUdcResponses:function(e){if(!n.isEndpointMessageContainerBased(e.endPointName)){var t=Object.keys(e.requestMessages)[0];this.responseHandlers[t]&&this.responseHandlers[t](e.responseMessages)}},_processFault:function(e){this.faultManager.handleFault(e)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(2767),i(1273)],o=i.dj.d(n,(function(e,t,i){return e([t],{_doSend:function(e){return i.sendPayload(e,this.endPointName)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(765),i(204),i(540),i(1271)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){e=e||{},this.uuid=e.uuid||this._generateUuid()},_getRequest:function(e){var t=n.isEndpointMessageContainerBased(this.endPointName),i=null;t?(i={uuid:this.uuid,messages:e},this.computeToken&&(i.computeToken=this.computeToken)):Object.keys(e).forEach((function(t){i=e[t]}));return this._sanitizeForJson(i),JSON.stringify(i,null,0)},_sanitizeForJson:function(e){var t;if(i.isArray(e))e.forEach(this._sanitizeForJson,this);else if(i.isObject(e))for(t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete e[t]:(i.isObject(e[t])||i.isArray(e[t]))&&this._sanitizeForJson(e[t]))},_doSend:function(e){return t.post({url:this._getEndpoint(),contentType:"application/json",handleAs:"json",postData:e})},_processResponse:function(e){this.stopTime=(new Date).getTime(),e?(e.fault&&(this.fault=e.fault),e.messages?this.responseMessages=e.messages:this.responseMessages=e):this.fault={faultCode:"Connection.Fault",message:"Unable to communicate with server, no response."}},_processFault:function(e){this.stopTime=(new Date).getTime(),this.fault={faultCode:"Connection.Fault",message:e}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(212),i(211),i(247),i(540),i(1273),i(2769)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{constructor:function(){},upload:function(e,i,n){var a=this;if(this._uploadHandler=new t((function(){a.postMessageToUploadIframe("cancelUpload"),a._unloadIframe()})),this._workerEndpoint=n.endpoint,e instanceof FileList){var s={csrfToken:void 0,validForMs:void 0};return r.sendPayload(JSON.stringify({messages:{CreateCsrfToken:[{}]}}),o.getEndPointNames().WORKER_ENDPOINT).then((function(t){if(t.messages.CreateCsrfTokenResponse.forEach((function(e){e.messageFaults&&e.messageFaults.length>0||(s={csrfToken:e.csrfToken,validForMs:e.validForMs})})),window.MW_USE_IFRAME_OUT_OF_MODEL){var o=encodeURI(n.uploadIframeProxyUrl)+"&uploadDestinationUrl="+a._workerEndpoint+"upload?dest="+encodeURIComponent(i)+"&csrfToken="+encodeURIComponent(s.csrfToken);a._createUploadIframe(e,o)}else{var r=new URL(n.uploadIframeProxyUrl).searchParams,l=r.get("computeToken"),c=r.get("routingkey");a._createUploadIframeNew(e,{uploadDestinationUrl:a._workerEndpoint+"upload",computeToken:l,routingkey:c,fileDestination:encodeURIComponent(i),csrfToken:encodeURIComponent(s.csrfToken)})}})),this._uploadHandler}},_createUploadIframe:function(e,t){var n=this;this._eventCallBack=function(t){if(n.getHostName(t.origin)===n.getHostName(n._workerEndpoint))switch(t.data.type){case"iframeIsReady":n.postMessageToUploadIframe(e);break;case"updateProgress":n._uploadHandler.progress({loaded:t.data.loaded,total:t.data.total});break;case"uploadFinished":n._uploadHandler.resolve({status:t.data.status,response:t.data.response}),n._unloadIframe();break;case"uploadError":n._uploadHandler.reject({status:t.data.status,response:t.data.response})}},this._uploadIframe=i.create("iframe",{id:"uploadIframe",src:t,width:0,height:0,style:"visibility: hidden; display: none;"}),document.body.appendChild(this._uploadIframe),window.addEventListener("message",this._eventCallBack,!1)},_createUploadIframeNew:function(e,t){var i=this;this._eventCallBack=function(e){switch(e.data.type){case"updateProgress":i._uploadHandler.progress({loaded:e.data.loaded,total:e.data.total});break;case"uploadFinished":i._uploadHandler.resolve({status:e.data.status,response:e.data.response}),i._unloadIframe();break;case"uploadError":i._uploadHandler.reject({status:e.data.status,response:e.data.response})}},t.postMessage=this._eventCallBack,this._ReplaceUploadIframe=new a(t),this.postMessageToUploadIframe(e)},_unloadIframe:function(){window.MW_USE_IFRAME_OUT_OF_MODEL?this._uploadIframe&&(window.removeEventListener("message",this._eventCallBack,!1),this._uploadIframe.parentNode.removeChild(this._uploadIframe),i.destroy(this._uploadIframe),this._uploadIframe=void 0):this._ReplaceUploadIframe=null},getHostName:function(e){return n.parseUrl(e).hostname},postMessageToUploadIframe:function(e){window.MW_USE_IFRAME_OUT_OF_MODEL?this._uploadIframe.contentWindow.postMessage(e,this._workerEndpoint):this._ReplaceUploadIframe&&this._ReplaceUploadIframe.handleMessage({data:e})}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}n=[],o=i.dj.d(n,(function(){return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._xhr=null,this._uploadDestinationUrl=t.uploadDestinationUrl,this._computeToken=t.computeToken,this._routingkey=t.routingkey,this._fileDestination=t.fileDestination,this._csrfToken=t.csrfToken,this._postMessage=function(e){t.postMessage(e)}}var t,i,n;return t=e,(i=[{key:"_postMessageToParent",value:function(e){this._postMessage({data:e})}},{key:"_createFormDataFromFileList",value:function(e){for(var t=new window.FormData,i=0;i<e.length;i++){var n=e[i];t.append("uploadFileName",n,n.name)}return t}},{key:"_createAndSendXhr",value:function(e){var t=this;this._xhr=new XMLHttpRequest,this._xhr.upload.onprogress=function(e){t._postMessageToParent({type:"updateProgress",loaded:e.loaded,total:e.total})},this._xhr.onload=function(){t._postMessageToParent({type:"uploadFinished",status:t._xhr.status,response:t._xhr.response})},this._xhr.onerror=function(){t._postMessageToParent({type:"uploadError",status:t._xhr.status,response:t._xhr.response})},this._xhr.open("POST","".concat(this._uploadDestinationUrl,"?dest=").concat(this._fileDestination,"&computeToken=").concat(this._computeToken,"&routingKey=").concat(this._routingkey,"&csrfToken=").concat(this._csrfToken),!0),this._xhr.send(e)}},{key:"handleMessage",value:function(e){if(e.data instanceof FileList){var t=this._createFormDataFromFileList(e.data);this._createAndSendXhr(t)}else"cancelUpload"===e.data&&(this._xhr&&this._xhr.abort(),this._postMessageToParent({type:"uploadCanceled"}))}}])&&r(t.prototype,i),n&&r(t,n),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(209)],o=i.dj.d(n,(function(e){var t=new RegExp("^(?:[a-z]+:)?//","i"),i=["localhost","127.0.0.1","[::1]"];return{createWorkerRoutingHostUrl:function(t,n){var o=t,r="",a="",s=n.host,l=n.sessionId,c=n.routingKey;try{if(r=new URL(s),this.isAbsoluteUrl(t)){if((a=new URL(t)).origin&&i.includes(a.hostname)){var d=a.pathname;o=new URL(d,r).href,o+=a.search}}else o=t&&t.startsWith("/")?r+t.substr(1,t.length):r+t;return o+=(o.indexOf("?")>=0?"&":"?")+"mre="+r,c&&l&&(o+="&routingkey="+c+"&computeToken="+l),o}catch(t){e.error("Input URL is malformed")}return o},isAbsoluteUrl:function(e){return!!t.test(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2772),i(220),i(485)],o=i.dj.d(n,(function(e,t){return t(e,"",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(649),i(247)],o=i.dj.d(n,(function(e,t){var i=!1,n={_serviceData:{},getServiceRegistryEndpoint:function(e){var t,i;if(n._serviceData.serviceregistry)for(t=n._serviceData.serviceregistry.length,i=0;i<t;i+=1)if(n._serviceData.serviceregistry[i].name===e)return n._serviceData.serviceregistry[i].endpoint;return""}},o=function(e){var i=t.parseQueryString().mre;if(i){var n=new URL(i,window.location.href);if(r(n)){i=n.href;var o=e.serviceregistry;o=Array.isArray(o)?o:[];var a=!1;o.forEach((function(e){e.name&&"primary"===e.name&&(e.endpoint=i,a=!0)})),a||(o.push({name:"primary",endpoint:i}),e.serviceregistry=o)}}return e},r=function(e){return!(e.origin!==window.location.origin&&!a(e))},a=function(e){var t=e.origin;e.port&&(t=e.origin.replace(":"+e.port,""));var i=[".mathworks.com",".mathworks.cn"];for(var n in i){var o=i[n];if(t.endsWith(o))return!0}return!1},s={_doXhr:function(t,i){return e(t,{handleAs:"json",failOk:!0,method:"GET",timeout:15e3,sync:i})},_reset:function(){i=!1,n._serviceData={}},load:function(e,t,r){if(i)r(n);else{var a=!t.async;s._doXhr("/serviceregistrylookup/1/service",a).then((function(e){e instanceof Object||(e={}),n._serviceData=o(e),i=!0,r(n)}),(function(){n._serviceData=o({}),i=!0,r(n)}))}}};return s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2774)],o=i.dj.d(n,(function(e){return[e]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(408)],o=i.dj.d(n,(function(e){return new e({name:"CEF",detectionFunction:function(){return!!window.cefclient}})}),e,t),e.exports=o},function(e,t){e.exports='[\n "CEF",\n "GDS",\n "MGG",\n "LOGIN",\n "SIMULINK",\n "NATIVE_IMPORT_DATA",\n "MATLAB_LOCAL",\n "NATIVE_PUBLISH",\n "UDC_FEEDBACK",\n "SET_PATH",\n "GDS_NOTIFICATIONS",\n "ADDONS",\n "LOGOUT",\n "FEEDBACK",\n "PUBLISH",\n "PREFERENCES",\n "FILTER_FILES_FOLDERS",\n "SESSION_TIMER"\n]'},function(e,t,i){var n,o;n=[i(209),i(232),i(560),i(798)],o=i.dj.d(n,(function(e,t,i,n){return{addToPage:function(){DockingManager.setIsUndockedWindow(!0);var e=n.getInitialData();e.remote&&e.remote.routingHost&&(t.setComputeToken({computeSessionId:e.remote.computeSessionId}),t.setEndpoint(),t.setWorkerEndpoint(e.remote.routingHost,e.remote.routingKey),t.allowAllMessages()),DockingManager.buildContainer(i,e).then((function(e){e.startup(),n.opened()}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i.dj.c(e.i)],o=i.dj.d(n,(function(e,t){"use strict";if("undefined"!=typeof document){var i=document.createElement("div");e.add("dom-qsa2.1",!!i.querySelectorAll),e.add("dom-qsa3",(function(){try{return i.innerHTML="<p class='TEST'></p>",1==i.querySelectorAll(".TEST:empty").length}catch(e){}}))}var n;return{load:function(i,o,r,a){if(a&&a.isBuild)r();else{var s=t;if("?"==(i="css2"==(i="default"==i?e("config-selectorEngine")||"css3":i)||"lite"==i?"./lite":"css2.1"==i?e("dom-qsa2.1")?"./lite":"./acme":"css3"==i?e("dom-qsa3")?"./lite":"./acme":"acme"==i?"./acme":(s=o)&&i).charAt(i.length-1)){i=i.substring(0,i.length-1);var l=!0}if(l&&(e("dom-compliant-qsa")||n))return r(n);s([i],(function(e){"./lite"!=i&&(n=e),r(e)}))}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e="‪",t="‬",i="‫";return{getTextDir:function(e){return"auto"==this.textDir?this._checkContextual(e):this.textDir},_checkContextual:function(e){var t=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(e);return t?t[0]<="z"?"ltr":"rtl":this.dir?this.dir:this.isLeftToRight()?"ltr":"rtl"},applyTextDir:function(e,t){if(this.textDir){var i=this.textDir;if("auto"==i){if(void 0===t){var n=e.tagName.toLowerCase();t="input"==n||"textarea"==n?e.value:e.innerText||e.textContent||""}i=this._checkContextual(t)}e.dir!=i&&(e.dir=i)}},enforceTextDirWithUcc:function(n,o){return this.textDir?(n&&(n.originalText=o),("ltr"==("auto"==this.textDir?this._checkContextual(o):this.textDir)?e:i)+o+t):o},restoreOriginalText:function(e){return e.originalText&&(e.text=e.originalText,delete e.originalText),e},_setTextDirAttr:function(e){if(!this._created||this.textDir!=e){this._set("textDir",e);var t=null;this.displayNode?(t=this.displayNode,this.displayNode.align="rtl"==this.dir?"right":"left"):t=this.textDirNode||this.focusNode||this.textbox,t&&this.applyTextDir(t)}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(206),i(224),i(223),i(203),i(221),i(487)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=n("dijit._OnDijitClickMixin",null,{connect:function(e,t,i){return this.inherited(arguments,[e,"ondijitclick"==t?r:t,i])}});return a.a11yclick=r,a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(210),i(217),i(213),i(204),i(225),i(231),i(541),i(866)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return t("dijit.layout._ContentPaneResizeMixin",null,{doLayout:!0,isLayoutContainer:!0,startup:function(){if(!this._started){var e=this.getParent();this._childOfLayoutWidget=e&&e.isLayoutContainer,this._needLayout=!this._childOfLayoutWidget,this.inherited(arguments),this._isShown()&&this._onShow(),this._childOfLayoutWidget||this.own(l.on("resize",r.hitch(this,"resize")))}},_checkIfSingleChild:function(){if(this.doLayout){var e=[],t=!1;a("> *",this.containerNode).some((function(i){var n=s.byNode(i);n&&n.resize?e.push(n):!/script|link|style/i.test(i.nodeName)&&i.offsetHeight&&(t=!0)})),this._singleChild=1!=e.length||t?null:e[0],i.toggle(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)}},resize:function(e,t){this._resizeCalled=!0,this._scheduleLayout(e,t)},_scheduleLayout:function(e,t){this._isShown()?this._layout(e,t):(this._needLayout=!0,this._changeSize=e,this._resultSize=t)},_layout:function(e,t){delete this._needLayout,this._wasShown||!1===this.open||this._onShow(),e&&n.setMarginBox(this.domNode,e);var i=this.containerNode;if(i===this.domNode){var o=t||{};r.mixin(o,e||{}),"h"in o&&"w"in o||(o=r.mixin(n.getMarginBox(i),o)),this._contentBox=c.marginBox2contentBox(i,o)}else this._contentBox=n.getContentBox(i);this._layoutChildren()},_layoutChildren:function(){if(this._checkIfSingleChild(),this._singleChild&&this._singleChild.resize){var e=this._contentBox||n.getContentBox(this.containerNode);this._singleChild.resize({w:e.w,h:e.h})}else for(var t,i=this.getChildren(),o=0;t=i[o++];)t.resize&&t.resize()},_isShown:function(){if(this._childOfLayoutWidget)return this._resizeCalled&&"open"in this?this.open:this._resizeCalled;if("open"in this)return this.open;var e=this.domNode,t=this.domNode.parentNode;return"none"!=e.style.display&&"hidden"!=e.style.visibility&&!i.contains(e,"dijitHidden")&&t&&t.style&&"none"!=t.style.display},_onShow:function(){this._wasShown=!0,this._needLayout&&this._layout(this._changeSize,this._resultSize),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(2782),i(2783),i(2784),i(2785),i(2786),i(2787),i(2788),i(2789),i(2790),i(2791),i(2792),i(2793),i(2794),i(2795),i(2796),i(2797),i(2798),i(2799),i(2800),i(2801),i(2802),i(2803),i(2804),i(2805),i(2806),i(2807),i(2808),i(2809),i(2810),i(2811),i(2812),i(2813),i(2814),i(2815),i(2816),i(2817),i(2818),i(2819),i(2820)],o=i.dj.d(n,(function(e,t){return t(e,"dijit/nls/loading",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={loadingState:"Učitavanje...",errorState:"Izvinite, došlo je do greške"}},function(e,t,i){e.exports={loadingState:"Вчитување...",errorState:"Се појави грешка"}},function(e,t,i){e.exports={loadingState:"Učitavanje...",errorState:"Nažalost, došlo je do greške"}},function(e,t,i){e.exports={loadingState:"正在加载...",errorState:"对不起,发生了错误"}},function(e,t,i){e.exports={loadingState:"載入中...",errorState:"抱歉,發生錯誤"}},function(e,t,i){e.exports={loadingState:"Завантаження...",errorState:"Сталася помилка"}},function(e,t,i){e.exports={loadingState:"Yükleniyor...",errorState:"Üzgünüz, bir hata oluştu"}},function(e,t,i){e.exports={loadingState:"กำลังโหลด...",errorState:"ขออภัย เกิดข้อผิดพลาด"}},function(e,t,i){e.exports={loadingState:"Läser in...",errorState:"Det har inträffat ett fel."}},function(e,t,i){e.exports={loadingState:"Nalaganje ...",errorState:"Oprostite, prišlo je do napake."}},function(e,t,i){e.exports={loadingState:"Zavádza sa...",errorState:"Ľutujeme, ale vyskytla sa chyba"}},function(e,t,i){e.exports={loadingState:"Загрузка...",errorState:"Извините, возникла ошибка"}},function(e,t,i){e.exports={loadingState:"Încărcare...",errorState:"Ne pare rău, a apărut o eroare "}},function(e,t,i){e.exports={loadingState:"Carregando...",errorState:"Desculpe, ocorreu um erro"}},function(e,t,i){e.exports={loadingState:"A carregar...",errorState:"Lamentamos, mas ocorreu um erro"}},function(e,t,i){e.exports={loadingState:"Ładowanie...",errorState:"Niestety, wystąpił błąd"}},function(e,t,i){e.exports={loadingState:"Bezig met laden...",errorState:"Er is een fout opgetreden"}},function(e,t,i){e.exports={loadingState:"Laster inn...",errorState:"Det oppsto en feil"}},function(e,t,i){e.exports={loadingState:"로드 중...",errorState:"죄송합니다. 오류가 발생했습니다."}},function(e,t,i){e.exports={loadingState:"Қотарылуда...",errorState:"Кешіріңіз, қате орын алды"}},function(e,t,i){e.exports={loadingState:"ロード中...",errorState:"エラーが発生しました。"}},function(e,t,i){e.exports={loadingState:"Caricamento in corso...",errorState:"Si è verificato un errore"}},function(e,t,i){e.exports={loadingState:"Memuatkan...",errorState:"Maaf, terjadi kesalahan"}},function(e,t,i){e.exports={loadingState:"Betöltés...",errorState:"Sajnálom, hiba történt"}},function(e,t,i){e.exports={loadingState:"Učitavanje...",errorState:"Žao nam je, došlo je do greške"}},function(e,t,i){e.exports={loadingState:"טעינה...‏",errorState:"אירעה שגיאה"}},function(e,t,i){e.exports={loadingState:"Chargement...",errorState:"Une erreur est survenue"}},function(e,t,i){e.exports={loadingState:"Lataus on meneillään...",errorState:"On ilmennyt virhe."}},function(e,t,i){e.exports={loadingState:"Kargatzen...",errorState:"Barkatu, errorea gertatu da"}},function(e,t,i){e.exports={loadingState:"Cargando...",errorState:"Lo siento, se ha producido un error"}},function(e,t,i){e.exports={loadingState:"Φόρτωση...",errorState:"Σας ζητούμε συγνώμη, παρουσιάστηκε σφάλμα"}},function(e,t,i){e.exports={loadingState:"Wird geladen...",errorState:"Es ist ein Fehler aufgetreten."}},function(e,t,i){e.exports={loadingState:"Indlæser...",errorState:"Der er opstået en fejl"}},function(e,t,i){e.exports={loadingState:"Probíhá načítání...",errorState:"Omlouváme se, došlo k chybě"}},function(e,t,i){e.exports={loadingState:"S'està carregant...",errorState:"Ens sap greu. S'ha produït un error."}},function(e,t,i){e.exports={loadingState:"Зареждане...",errorState:"Съжаляваме, възникна грешка"}},function(e,t,i){e.exports={loadingState:"Yüklənir...",errorState:"Problem yarandı"}},function(e,t,i){e.exports={loadingState:"جاري التحميل...",errorState:"عفوا، حدث خطأ"}},function(e,t,i){e.exports={root:{loadingState:"Loading...",errorState:"Sorry, an error occurred"},bs:!0,mk:!0,sr:!0,zh:!0,"zh-tw":!0,uk:!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,id:!0,hu:!0,hr:!0,he:!0,fr:!0,fi:!0,eu:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,bg:!0,az:!0,ar:!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(229),i(219),i(1704)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r],{propertiesSetObserver:function(e){if(e.originator!==this._originator&&(Object.keys(e.data.newValues).forEach((function(t){this.updateVersionVector(t,e.target)}),this),this.shouldSync()&&this.isReady())){var i=this.createNewMessage();i.targetId=e.target.getId();var o=e.data.newValues,r=e.data.oldValues;Object.keys(o).forEach((function(t){if(n.isImageData(o[t])){var a=r[t];if(delete e.data.newValues[t],!this.isClient&&n.isImageData(a)){var s=this.createNewMessage();s.targetId=e.target.getId(),s.key=t,s.newValue=this.imageDifferencer.computeImageDataDifferences(a,o[t]),this.publish(this.getChannel("imageUpdate"),i)}}else null!==o[t]&&void 0!==o[t]||delete e.data.newValues[t]}),this),Object.keys(o).length>0&&(i.properties=e.data.newValues,i.versionVector=t.clone(e.target._versionVector),this.publish(this.getChannel(e.type),i))}},propertiesSetSubscriber:function(e){this.log("propertiesSetSubscriber",e);var t=e.data,i=t.targetId;if(this.manager.hasById(i))try{var n,o=this.manager.getById(i);for(n in t.properties)t.properties.hasOwnProperty(n)&&(t.properties[n]instanceof Image?(this.imageDifferencer.updatePropertyWithImage(o,n,t.properties[n]),delete t.properties[n]):this.shouldUpdateProperties(n,o,e.data.versionVector)||delete t.properties[n],e.data.versionVector&&this.mergeVersionVectors(n,o,e.data.versionVector));o.setProperties(t.properties,this._originator),this._updateNodePagedData(o)}catch(t){this._error("Error while trying set properties.",e,t)}},shouldUpdateProperties:function(e,t,i){return this.isClient?!(t._versionVector&&t._versionVector[e]&&(!i||!i[e])):!i||!i[e]||!t._versionVector||!t._versionVector[e]||t._versionVector[e][this.clientId]<=i[e][this.clientId]},updateVersionVector:function(e,t){!this.isClient||t._versionVector&&t._versionVector[e]?t._versionVector&&t._versionVector[e]&&(t._versionVector[e][this.clientId]+=1):(t._versionVector=t._versionVector||{},t._versionVector[e]={},Object.keys(this.syncEnabled).forEach((function(i){t._versionVector[e][i]=1})))},mergeVersionVectors:function(e,t,i){i&&i[e]&&(t._versionVector&&t._versionVector[e]||(t._versionVector=t._versionVector||{},t._versionVector[e]={}),Object.keys(i[e]).forEach((function(n){t._versionVector[e][n]=Math.max(i[e][n],t._versionVector[e][n]||1)})))},convertNode:function(e){var t=this.inherited(arguments);return t.versionVectors=e._versionVector,t},updateNodeRecursive:function(e,t){t.versionVectors&&Object.keys(t.versionVectors).forEach((function(i){this.mergeVersionVectors(i,e,t.versionVectors)}),this),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(420),i(214),i(512),i(212),i(1701),i(2823),i(1702),i(209),i(1269)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){let d,u=r.Utils.setTimeout;r.JSON.toJSON=n.stringify,r.JSON.fromJSON=n.parse;let h=0,p=0,f={};setInterval((function(){h+=200,Object.keys(f).forEach((function(e){let t=f[e];t.execTime<=h&&(t.func(),delete f[e])}))}),200);let g=function(e,t,i,n,o){let l=new r.LongPollingTransport,d=r.Transport.derive(l);d.xhrSend=function(e){let i;return n.remoteSupportsSendPayload?(e.headers=e.headers||{},e.headers.computeToken=n.computeToken,i=o.sendPayload(e.body,n.endPointName,{headers:e.headers})):i=t.sendMessage(e.body,n.url,{headers:e.headers}),i.then(e.onSuccess,(function(t){e.onError(t,t)})),{abort:function(){i.cancel()}}};let g=new r.Cometd(e);return r.Utils.setTimeout=function(e,t,i){return 0===i?u(e,t,i):(p+=1,f[p]={func:function(){try{t()}catch(e){g._debug("Exception invoking timed function",t,e)}},execTime:h+i},p)},r.Utils.clearTimeout=function(e){delete f[e]},n.remoteSupportsSendPayload?n.endPointAllowsDirectXhr.then((function(e){"ENABLED"!==e.status&&(r.WebSocket=c.WebSocket,c.WebSocket.proxyClient=t)})):(r.WebSocket=c.WebSocket,c.WebSocket.proxyClient=t),g.registerExtension("ack",new a),i[s.WEBSOCKET]&&g.registerTransport(s.WEBSOCKET,new r.WebSocketTransport,0),g.registerTransport(s.LONG_POLLING,d,1),g};const m=function(e,t){e.successful?t.resolve(e):(l.warn("Message failed: ",e),t.reject(e))};return d=e([],{BASE_PREFIX:"/matlab",BASE_END_POINT:"messageservice/async",logCometdLifecycle:!1,logCometdSubscriptions:!1,constructor:function(e,n,o,r){this.remote=e,this.constructCometD=n||g,this.cometdProperties=r||{connectTimeout:5e3,maxBackoff:1e4,logLevel:"info",maxNetworkDelay:2e4,appendMessageTypeToURL:!1,autoBatch:!0},this._webSocket={try:!0,connectedAtLeastOnce:!1};let a=["maxNetworkDelay","connectTimeout","logLevel"],s=t.cometdProperties;if(s)for(let e=0;e<a.length;e+=1){let t=a[e];void 0!==s[t]&&(this.cometdProperties[t]=s[t])}this.workerProxyAsyncClient=o||new c("remoteWorkerAsyncProducer");let d=this;i.after(this.workerProxyAsyncClient,"onError",(function(e){d.cometd&&(d.logCometdLifecycle&&l.info("MessageServiceAsync disconnecting cometd due to IFrame error."),d.cometd.disconnect()),d.onConnectionError(e)}),!0),this.subscriptions={},this.recentMessages=[],this._deferredCleanupFunction=function(){d._deferredCleanup=!1,d.recentMessages=[]}},onMessage:function(e){},onConnectionError:function(){},connect:function(){this.routingHost=d.workerHostOverride||this.remote.getWorkerRoutingHost(),this.routingKey=this.remote.getWorkerRoutingKey(),this.computeToken=this.remote.getComputeSessionId();let e=this._setUpEndPoint();this.computeToken&&(e.computeToken=this.computeToken),e.remoteSupportsSendPayload||this.workerProxyAsyncClient.setRemotePageHost(this.routingHost,this.routingKey,this.computeToken);let t={};d.enableWebsocket&&this._webSocket.try?t.websocket=!0:(t.websocket=!1,this._webSocket.try=!1);let i=this.constructCometD("messageService",this.workerProxyAsyncClient,t,e,this.remote);this.cometd=i,this.logCometdLifecycle&&l.info("MessageServiceAsync constructing new cometd instance.");let n=this._createOneShotMessagePromise("/meta/handshake");this._createListenerForUnknownClient();let r=this,a=new o;return n.then((function(e){r.logCometdLifecycle&&l.info("MessageServiceAsync cometd handshake successful.",e,i.getClientId(),i),i.isDisconnected()?(l.error("MessageServiceAsync cometd handshake successful but still disconnected!"),i.disconnect(),a.reject(e)):(i.getTransport().getType()===s.WEBSOCKET&&(r._webSocket.connectedAtLeastOnce=!0),a.resolve(e))}),(function(e){if(r.logCometdLifecycle&&l.info("MessageServiceAsync disconnecting cometd due to handshake failure.",e,i.getClientId(),i),i.disconnect(),e.request&&e.request.supportedConnectionTypes){let t=e.request.supportedConnectionTypes;if(t.length>1){t[0]!==s.WEBSOCKET||r._webSocket.connectedAtLeastOnce||(r._webSocket.try=!1)}}a.reject(e)})),this.cometdProperties.url=e.url,i.init(this.cometdProperties),a.promise},disconnect:function(){this.logCometdLifecycle&&l.info("MessageServiceAsync disconnecting cometd due to disconnect call.",this.cometd.getClientId());let e=this._createOneShotMessagePromise("/meta/disconnect");return this.cometd.disconnect(),e},cleanup:function(){this.cometd&&(this.logCometdLifecycle&&l.info("MessageServiceAsync disconnecting cometd due to cleanup call.",this.cometd,this.cometd&&this.cometd.getClientId()),this.cometd.disconnect(),this.cometd=null)},delegateConnected:function(){return!!this.cometd&&!this.cometd.isDisconnected()},doPublish:function(e,t){let i=new o;return this.cometd.publish(this._getRequestChannel(e),t,{},(function(e){m(e,i)})),i.promise},doSubscribe:function(e){this.logCometdSubscriptions&&l.info("MessageServiceAsync subscribing cometd to channel: "+e);let t=this._createOneShotMessagePromise("/meta/subscribe");return this.subscriptions[e]=this.cometd.subscribe(this._getRequestChannel(e),this,this._handleCometResponse),t},doUnsubscribe:function(e){if(this.subscriptions[e]){this.logCometdSubscriptions&&l.info("MessageServiceAsync unsubscribing cometd from channel: "+e);let t=this._createOneShotMessagePromise("/meta/unsubscribe");return this.cometd.unsubscribe(this.subscriptions[e]),delete this.subscriptions[e],t}return(new o).resolve({successful:!0})},doStartBatch:function(){this.cometd.startBatch()},doEndBatch:function(){this.cometd.endBatch()},doSetLatency:function(e){this.workerProxyAsyncClient.setLatency(e)},doSetErrorRate:function(e){this.workerProxyAsyncClient.setErrorRate(e)},getTransport:function(){return this.cometd&&!this.cometd.isDisconnected()?this.cometd.getTransport().getType():s.UNKNOWN},_handleCometResponse:function(e){this._shouldHandleMessage(e)&&this.onMessage(this._stripBasePrefixAndConvertToJson(e))},_shouldHandleMessage:function(e){return!e.id&&(this.recentMessages.indexOf(e)<0&&(this.recentMessages.push(e),this._deferRecentMessagesCleanup(),!0))},_deferRecentMessagesCleanup:function(){this._deferredCleanup||(this._deferredCleanup=setTimeout(this._deferredCleanupFunction,0))},_createOneShotMessagePromise:function(e){let t=new o;return this._addOneShotListener(e,(function(e){m(e,t)})),t.promise},_addOneShotListener:function(e,t){let i,n=this,o=this.cometd;i=this.cometd.addListener(e,(function(e){o.removeListener(i),t.apply(n,arguments)}))},_createListenerForUnknownClient:function(){let e=this.cometd,t=this;e.addListener("/meta/connect",(function(i){!i.successful&&i.advice&&"handshake"===i.advice.reconnect&&(e.disconnect(),t.onConnectionError(i.error))}))},_setUpEndPoint:function(){let e,t,i=!1,n="MESSAGE_SERVICE_ASYNC_ENDPOINT";return e=this.routingHost+this.BASE_END_POINT,this.routingKey&&(e+="?routingkey="+this.routingKey),{remoteSupportsSendPayload:i,url:e,endPointName:n,endPointAllowsDirectXhr:t}},_getRequestChannel:function(e){return this.BASE_PREFIX+e},_stripBasePrefixAndConvertToJson:function(e){return{channel:e.channel.substring(this.BASE_PREFIX.length),data:e.data}}}),d.enableWebsocket=!1,d.workerHostOverride=!1,window.location.search.indexOf("websocket=on")>=0&&(d.enableWebsocket=!0),d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1701)],o=i.dj.d(n,(function(e){return e.AckExtension=function(){var e,t=!1,i=-1;function n(t,i){e._debug(t,i)}this.registered=function(t,i){e=i,n("AckExtension: executing registration callback")},this.unregistered=function(){n("AckExtension: executing unregistration callback"),e=null},this.incoming=function(e){var o=e.channel;if("/meta/handshake"==o)n("AckExtension: server supports acks",t=e.ext&&e.ext.ack);else if(t&&"/meta/connect"==o&&e.successful){var r=e.ext;r&&"number"==typeof r.ack&&n("AckExtension: server sent ack id",i=r.ack)}return e},this.outgoing=function(o){var r=o.channel;return"/meta/handshake"==r?(o.ext||(o.ext={}),o.ext.ack=e&&!1!==e.ackEnabled,i=-1):t&&"/meta/connect"==r&&(o.ext||(o.ext={}),o.ext.ack=i,n("AckExtension: client sending ack id",i)),o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(204),i(214),i(212),i(244),i(1277),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([t],{_MAX_RETRIES:30,logStateChanges:!1,constructor:function(){this._stateOptions={context:this,name:"WraDataService",namespace:"MOTW.wra",defaultSubstate:"disconnected",substates:{disconnected:{transitions:{onEnterState:this._enterDisconnected,start:"connecting"}},connecting:{transitions:{onEnterState:this._enterConnecting,_connectSuccess:"resubscribing",_connectFailure:"reconnecting",stop:"disconnected"}},reconnecting:{transitions:{onEnterState:this._enterReconnecting,_connectSuccess:"resubscribing",_connectFailure:[this._retryFailure,"retryDelay"],stop:"disconnected"}},retryDelay:{transitions:{"timeout 2":"reconnecting",_reconnect:"reconnecting",stop:"disconnected"}},resubscribing:{transitions:{onEnterState:this._enterResubscribing,_resubscribeSuccess:"connected",_resubscribeFailure:"reconnecting",stop:"disconnecting"}},connected:{transitions:{onEnterState:this._enterConnected,_reconnect:"reconnecting",stop:"disconnecting"}},disconnecting:{transitions:{onEnterState:this._enterDisconnecting,_disconnectSuccess:"disconnected",_disconnectFailure:"disconnected","timeout 2":"disconnected"}},fatallyDisconnected:{transitions:{onEnterState:this._enterFatallyDisconnected,stop:"disconnected"}}}}},setDelegate:function(e){if(this._delegate!==e){this._delegate=e;let t=this;n.after(e,"onConnectionError",(function(){s.warn("MessageService received connection error, reconnecting"),t._reconnect()}),!0),this._states=new a(this._stateOptions),n.after(this._states,"onEnterState",i.hitch(this,this._enterState),!0),this._states.start()}},onConnected:function(){this.emit("connected")},onNewlyConnected:function(){},onDisconnected:function(){this.emit("disconnected")},onReconnected:function(){this.emit("reconnected")},onFatallyDisconnected:function(){this.emit("fatallyDisconnected")},onNotConnected:function(){this.emit("notConnected")},isStarted:function(){return"disconnecting"!==this._currentState&&"disconnected"!==this._currentState},isConnected:function(){return"connected"===this._currentState},isFatallyDisconnected:function(){return"fatallyDisconnected"===this._currentState},isDisconnected:function(){return"disconnected"===this._currentState},start:function(){},stop:function(){},_enterState:function(e){let t=this._currentState;this._currentState=e,this.logStateChanges&&s.info("MessageService state change: "+t+" -> "+e),"connected"===t&&this.onNotConnected(),"connected"===e&&this._previouslyConnected?this.onReconnected():"connected"!==e||this._previouslyConnected||this.onNewlyConnected()},_enterDisconnected:function(){this._previouslyConnected=!1,this._delegate.cleanup(),this.onDisconnected()},_enterConnecting:function(){this._retryCount=0,this._delegate.connect().then(this._connectSuccess,this._connectFailure)},_enterReconnecting:function(){this._retryCount+=1,s.info("Reconnecting message service. Attempt "+this._retryCount,arguments),this._delegate.cleanup(),this._delegate.connect().then(this._connectSuccess,this._connectFailure)},_reconnect:function(){},_connectSuccess:function(){},_connectFailure:function(){},_timeoutAction:function(){this.logStateChanges&&s.info("MessageService timeout:",arguments)},_retryFailure:function(){let e;return this._retryCount>=this._MAX_RETRIES&&(s.error("Message service fatally disconnected."),e="fatallyDisconnected"),e},_enterResubscribing:function(){let e,t,i=[];for(e in this._delegate.doStartBatch(),this.channelSubscriptions)this.channelSubscriptions.hasOwnProperty(e)&&(t=this.channelSubscriptions[e],i.push(this._delegate.doSubscribe(e)),t.subscribed=!0);this._delegate.doEndBatch(),r(i).then(this._resubscribeSuccess,this._resubscribeFailure)},_resubscribeSuccess:function(){},_resubscribeFailure:function(){},_enterConnected:function(){this._delegate.delegateConnected()?(this._retryCount=0,this._previouslyConnected&&s.info("Successfully connected."),this._previouslyConnected=!0,this.onConnected()):this._reconnect()},_enterFatallyDisconnected:function(){this.onFatallyDisconnected()},_enterDisconnecting:function(){this._delegate.disconnect().then(this._disconnectSuccess,this._disconnectFailure)},_disconnectSuccess:function(){},_disconnectFailure:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(2826),i(2827),i(2828),i(2829),i(2830)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l;return l=e([],{constructor:function(e){this.stateMachine=e.stateMachine||{_changeState:function(){},onEnterState:function(){},onExitState:function(){}},this.namespace=e.namespace||"",this.name=e.name||this.getDefaultName(),this.context=e.context||{},this.data=e.data||{},this.composition=e.composition||"XOR",this.defaultSubstate=e.defaultSubstate||"",this.constructSubstates(e.substates),this.constructTriggersAndTransitions(e.transitions),this.active=e.active||!1},getDefaultName:function(){var e;return this.namespace.length>0?e=this.namespace.split(".").pop():i.warn("State: state name is not specified."),e||""},constructSubstates:function(e){var t,n,o={};for(t in e)e.hasOwnProperty(t)&&((n=e[t]).name&&n.name!==t&&i.error("State: error constructing substate: "+t+", the specified names don't match: "+n.name),n.name=t,n.namespace=n.namespace||[this.namespace,this.name].join("."),n.stateMachine=n.stateMachine||this.stateMachine,n.context=n.context||this.context,o[n.name]=new l(n));this.substates=o},constructTriggersAndTransitions:function(e){var t,i,n={},o=[];for(t in e)e.hasOwnProperty(t)&&((i=this.constructTrigger(t))&&o.push(i),n[t]=this.constructTransition(t,e[t]));this.transitions=n,this.triggers=o},constructTrigger:function(e){var i,s,l;return 2===(i=e.split(" ")).length?"subscribe"===i[0]?l=o:"response"===i[0]||"fault"===i[0]?l=r:"timeout"===i[0]&&(l=a):"onEnterState"===e&&"onExitState"===e||(l=n),l&&(s=new l({name:e,context:this.context,triggerHandler:t.hitch(this,this.handleTrigger)})),s},constructTransition:function(e,i){var n,o;return(t.isFunction(i)||t.isString(i)||t.isArray(i))&&("onEnterState"===e||"onExitState"===e?(n=i,(i={}).action=n,i.target=""):(o=i,(i={}).target=o)),i.state=this,new s(i)},enter:function(e,t){this.active||(this.active=!0,this.enableTriggers(),this.stateMachine.onEnterState(this.name),this.handleTrigger.apply(this,["onEnterState"].concat(t))),e?this.changeSubstates(e,t):this.changeToDefaultSubstate(t)},exit:function(){var e=this.activeSubstates();this.active=!1,this.disableTriggers(),e.forEach((function(e){e.exit()})),this.handleTrigger("onExitState"),this.stateMachine.onExitState(this.name)},enableTriggers:function(){this.triggers.forEach((function(e){e.enable()}))},disableTriggers:function(){this.triggers.forEach((function(e){e.disable()}))},handleTrigger:function(e){var i,n;this.transitions[e]&&(n=Array.prototype.slice.call(arguments,1,arguments.length),(i=this.transitions[e].handleTrigger(e,n))&&(t.isString(i)||(n=i.args,i=i.target),this.stateMachine._changeState(i,n)))},changeSubstates:function(e,t){var i=this.activeSubstates();this.substates[e]&&(i.length>=0&&i[0].name!==e&&i.forEach((function(e){e.exit()})),this.substates[e].enter(void 0,t))},changeToDefaultSubstate:function(e){0===this.activeSubstates().length&&this.substates[this.defaultSubstate]&&this.substates[this.defaultSubstate].enter(void 0,e)},activeSubstates:function(){var e,t=[];for(e in this.substates)this.substates.hasOwnProperty(e)&&this.substates[e].active&&t.push(this.substates[e]);return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(209),i(1036)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(){this.connection={}},enable:function(){t.isFunction(this.context[this.name])&&(this.cachedFunction=this.context[this.name]),this.connection=i.after(this.context,this.name,t.hitch(null,this.triggerHandler,this.name),!0)},disable:function(){this.connection.remove(),this.cachedFunction&&(this.context[this.name]=this.cachedFunction)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(256),i(209),i(1036)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(){var e=this.name.split(" ");(e.length<2||"subscribe"!==e[0])&&n.error("Invalid trigger name for a MessageTrigger. Could not parse out the message name."),this.messageId=e[1]||"",this.subscrition={}},enable:function(){this.subscription=i.subscribe(this.messageId,t.hitch(null,this.triggerHandler,this.name))},disable:function(){this.subscription.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(232),i(1036)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(){var e=this.name.split(" ");(e.length<2||"response"!==e[0]&&"fault"!==e[0])&&i.error("Invalid trigger name for a RemoteTrigger. Could not parse out the type of handler."),n.registerResponseHandler&&n.registerFaultHandler||i.error("The remote package is not available, this type of trigger will not work."),this.messageId=e[1]||"",this.handlerType=e[0]},enable:function(){"response"===this.handlerType?n.registerResponseHandler(this.messageId,t.hitch(null,this.triggerHandler,this.name)):n.registerFaultHandler(this.messageId,t.hitch(null,this.triggerHandler,this.name))},disable:function(){"response"===this.handlerType?n.deregisterResponseHandler(this.messageId):n.deregisterFaultHandler(this.messageId)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(1036)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(){var e=this.name.split(" ");(e.length<2||"timeout"!==e[0])&&i.error("Invalid trigger name for a TimeoutTrigger. Could not parse out the type of handler."),this.timeoutInSeconds=parseFloat(e[1]),this.handlerType=e[0]},enable:function(){this.disable(),this.timeoutHandle=setTimeout(t.hitch(null,this.triggerHandler,this.name),1e3*this.timeoutInSeconds)},disable:function(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(t){this.state={},this.target="",this.condition=null,this.action=null,e.safeMixin(this,t)},handleTrigger:function(e,t){var i="";return this.checkCondition(e,t)&&(this.runAction(e,t),i=this.getTarget(e,this.target,t)),i},checkCondition:function(e,i){return!this.condition||t.hitch(this.state.context,this.condition).apply(null,[e,this.state.data].concat(i))},runAction:function(e,i){this.action&&t.hitch(this.state.context,this.action).apply(null,[e,this.state.data].concat(i))},getTarget:function(e,n,o){var r,a,s;if(t.isString(n))a=n;else if(t.isFunction(n))a=t.hitch(this.state.context,n).apply(null,[e,this.state.data].concat(o));else if(t.isArray(n))for(r=0;r<n.length;r+=1){if(a=this.getTarget(e,n[r],o),t.isString(a)){a={target:a},t.mixin(a,s);break}if(a&&a.target){t.mixin(a,s);break}s=a||{}}else i.warn("Transition: improper target: ",n);return a}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(209)],o=i.dj.d(n,(function(e,t,i){return e([],{pollDelay:50,constructor:function(e,t){this.remote=e,this.messageService=t,this.pending=0,e.registerDefaultMessageFactory("OpaqueMessage",(function(){return this.pending+=1,{opaqueMessageDOs:[]}}),this),e.registerResponseHandler("OpaqueMessageResponse",(function(e){this.pending-=1,e.forEach((function(e){try{e.opaqueMessageDOs&&e.opaqueMessageDOs.forEach(t.handleMessage,t)}catch(e){i.error("Error while handling message: "+e)}})),this.poll()}),this)},onMessage:function(e){},onConnectionError:function(){},connect:function(){return this.enabled=!0,this.poll(),(new t).resolve()},disconnect:function(){return this.enabled=!1,this.timeout&&(clearTimeout(this.timeout),this.timeout=null),(new t).resolve()},cleanup:function(){},poll:function(){if(this.enabled&&0===this.pending){let e=this;this.timeout=setTimeout((function(){e.pending+=1,e.remote.sendMessage({OpaqueMessage:{opaqueMessageDOs:[]}}),e.timeout=null}),this.pollDelay)}},doPublish:function(e,t){clearTimeout(this.timeout),this.timeout=null,this.pending+=1,this.remote.sendMessage({OpaqueMessage:{opaqueMessageDOs:[{channel:e,data:t}]}})},doSubscribe:function(e){},doUnsubscribe:function(e){},doStartBatch:function(){},doEndBatch:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(1278),i(1705),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{_updateQueue:{},constructor:function(e){this._canvas=i.create("canvas"),this._context=this._canvas.getContext("2d"),this._originator=e},computeImageDataDifferences:function(e,t){return[{x:0,y:0,image:t}]},applyImageDifferences:function(e,t,i){var n,a=i.length,s=this;if(0!==a){var l=this._createQueuedDeferred(e,t);l.name="applyImageDifferences deferred";var c=[];for(n=0;n<a;n+=1)c.push(this._wrapImageInDeferred(i[n].image));var d=new o(c,!1,!0,!1),u=s._updateQueue[e.getId()+t][s._updateQueue[e.getId()+t].length-2];return d.then((function(){u?u.then((function(){s._applyLoadedImageDifferences(e,t,i,l)})):s._applyLoadedImageDifferences(e,t,i,l)}),(function(){r.log("rejecting deferred applyImageDifferences"),l.reject(),s._cancelQueuedDeferreds(e,t)})),l}},updatePropertyWithImage:function(e,t,i){var n=this._wrapImageInDeferred(i),o=this._createQueuedDeferred(e,t);o.name="updateImage deferred";var r=this;return n.then((function(){r._canvas.width=i.width,r._canvas.height=i.height,r._context.drawImage(i,0,0,i.width,i.height);var n=r._context.getImageData(0,0,r._canvas.width,r._canvas.height);e.setProperty(t,n,r._originator),r._cancelQueuedDeferreds(e,t,o),o.isCanceled()||o.resolve()}),(function(){o.isCanceled()||o.reject()})),o},_applyLoadedImageDifferences:function(e,t,i,n){var o,r=e.getProperty(t);for(this._canvas.width=r.width,this._canvas.height=r.height,this._context.putImageData(r,0,0),o=0;o<i.length;o+=1)this._context.beginPath(),this._context.clearRect(i[o].x,i[o].y,i[o].image.width,i[o].image.height),this._context.closePath(),this._context.drawImage(i[o].image,i[o].x,i[o].y);var a=this._context.getImageData(0,0,this._canvas.width,this._canvas.height);e.setProperty(t,a,this._originator),n.resolve()},_wrapImageInDeferred:function(e){var t=new n;t.name="wrapImage deferred";var i=function(){setTimeout((function(){e.onload&&(t.resolve(),e.onload=null,e.onerror=null)}),0)};return e.onload=i,e.onerror=function(){r.log("Error loading image"),t.reject(),e.onload=null,e.onerror=null},e.complete&&e.src.length>0&&i(),t},_createQueuedDeferred:function(e,i){var o;o=new n;var r=t.hitch(this,this._removeDeferredFromQueue,e,i,o);return o.then(r,r),this._updateQueue[e.getId()+i]=this._updateQueue[e.getId()+i]||[],this._updateQueue[e.getId()+i].push(o),o},_removeDeferredFromQueue:function(e,t,i){if(void 0!==this._updateQueue[e.getId()+t]){var n=this._updateQueue[e.getId()+t].indexOf(i);n>=0&&this._updateQueue[e.getId()+t].splice(n,1),0===this._updateQueue[e.getId()+t].length&&(this._updateQueue[e.getId()+t]=void 0,delete this._updateQueue[e.getId()+t])}else delete this._updateQueue[e.getId()+t]},_cancelQueuedDeferreds:function(e,t,i){for(var n=this._updateQueue[e.getId()+t];n&&n.length>0;){var o=n.shift();if(i&&o===i)return;o.cancel("Queued deferreds cancelled")}this._updateQueue[e.getId()+t]=void 0,delete this._updateQueue[e.getId()+t]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(652),i(2834),i(229),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s=e([n],{getId:function(){},getType:function(){},setProperty:function(e,t,i){},getProperty:function(e){},hasProperty:function(e){},unsetProperty:function(e,t){},setProperties:function(e,t){},unsetProperties:function(e,t){},replaceProperties:function(e,t){},getProperties:function(){},addChild:function(e,t,i,n){},hasChild:function(e){},getChild:function(e){},getChildIndex:function(e){},getChildren:function(){},hasDescendant:function(e){},getDescendant:function(e){},getNumberOfChildren:function(){},hasDetachedChildren:function(){},getDetachedChildren:function(){},detach:function(e){},reattach:function(e,t){},isDetached:function(){},isAncestorDetached:function(){},destroy:function(e){},remove:function(){},hasParent:function(){},getParent:function(){},getRoot:function(){},accept:function(e){}});return a=e([s,n.Impl,i.Syncable],{constructor:function(e,i,n,o){if(!t.isString(e)||!t.isString(i))throw new Error("Node type and ID must be strings");this._type=i,this._id=e,this._idCache=o||{},this._idCache[e]=this,this._properties={},n&&this._setProperties(n,void 0,!0),this._children=[],this._detached=[]},getId:function(){return this._id},getType:function(){return this._type},setProperty:function(e,t,i){if(null==t)throw new Error("Illegal argument. Value must not be null or undefined.");var n=this._setPropertyAndDispatchPropertySetEvent(e,t,i);this._dispatchSinglePropertiesSetEvent(e,n,t,i)},_setPropertyAndDispatchPropertySetEvent:function(e,t,i,n){var o=this._properties[e];return o!==t&&(this._properties[e]=t,n||this.dispatchEvent("propertySet",this,{key:e,oldValue:o,newValue:t},i)),o},_dispatchSinglePropertiesSetEvent:function(e,t,i,n){if(t!==i){var o={oldValues:{},newValues:{}};o.oldValues[e]=t,o.newValues[e]=i,this.dispatchEvent("propertiesSet",this,o,n)}},unsetProperty:function(e,t){var i=this._unsetPropertyAndDispatchPropertyUnsetEvent(e,t);this._dispatchSinglePropertiesUnsetEvent(e,i,t)},unsetProperties:function(e,t){var i={oldValues:{}};e.forEach((function(e){i.oldValues[e]=this._unsetPropertyAndDispatchPropertyUnsetEvent(e,t)}),this),this.dispatchEvent("propertiesUnset",this,i,t)},_unsetPropertyAndDispatchPropertyUnsetEvent:function(e,t){var i;return this.hasProperty(e)&&(i=this._properties[e],delete this._properties[e],this.dispatchEvent("propertyUnset",this,{key:e,oldValue:i},t)),i},_dispatchSinglePropertiesUnsetEvent:function(e,t,i){var n={oldValues:{}};n.oldValues[e]=t,this.dispatchEvent("propertiesUnset",this,n,i)},hasProperty:function(e){return this._properties.hasOwnProperty(e)},getProperty:function(e){return this._properties[e]},setProperties:function(e,t){this._setProperties(e,t,!1)},_setProperties:function(e,t,i){var n,o,a;for(n in e)e.hasOwnProperty(n)&&null==e[n]&&r.warn("Illegal argument. Property value must not be null or undefined. This will become an exception in the future.");var s=!1,l={oldValues:{},newValues:{}};for(n in e)e.hasOwnProperty(n)&&(o=e[n],(a=this._setPropertyAndDispatchPropertySetEvent(n,o,t,i))!==o&&(s=!0,l.oldValues[n]=a,l.newValues[n]=o));s&&!i&&this.dispatchEvent("propertiesSet",this,l,t)},replaceProperties:function(e,t){var i;for(i in this.setProperties(e,t),this._properties)this._properties.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&this.unsetProperty(i,t)},getProperties:function(){var e,t={};for(e in this._properties)this._properties.hasOwnProperty(e)&&this.hasProperty(e)&&(t[e]=this.getProperty(e));return t},addChild:function(e,t,i,n){"number"==typeof t&&(i=t,t=null);var o=a.createNode(e,t,this._idCache);return i=this._addChild(o,i),this.dispatchEvent("childAdded",this,{child:o,index:i},n),o},addChildWithId:function(e,t,i,n,o){var r=new a(e,t,i,this._idCache);return n=this._addChild(r,n),this.dispatchEvent("childAdded",this,{child:r,index:n||0},o),r},hasChild:function(e){if(t.isString(e)){var i,n=this._children.length;for(i=0;i<n;i+=1)if(this._children[i].getId()===e)return!0;return!1}var o=this.getChildIndex(e);return o>=0&&this._children[o]},getChild:function(e){if(t.isString(e)){var i,n,o=this._children.length;for(i=0;i<o;i+=1)if((n=this._children[i]).getId()===e)return n;throw new Error("No child found with id: "+e)}return this._children[e]},getChildIndex:function(e){var t,i=this._children.length;for(t=0;t<i;t+=1)if(this._children[t].getId()===e.getId())return t;return-1},getChildren:function(){return this._children.map((function(e){return e}))},hasDescendant:function(e){var t,i,n=this._children.length;for(t=0;t<n;t+=1)if((i=this._children[t]).getId()===e||i.hasDescendant(e))return!0;for(n=this._detached.length,t=0;t<n;t+=1)if((i=this._detached[t]).getId()===e||i.hasDescendant(e))return!0;return!1},getDescendant:function(e){var t,i,n=this._children.length;for(t=0;t<n;t+=1){if((i=this._children[t])._id===e)return i;if(i.hasDescendant(e))return i.getDescendant(e)}for(n=this._detached.length,t=0;t<n;t+=1){if((i=this._detached[t])._id===e)return i;if(i.hasDescendant(e))return i.getDescendant(e)}throw new Error("No descendant found with id: "+e)},getNumberOfChildren:function(){return this._children.length},hasDetachedChildren:function(){return this._detached.length>0},getDetachedChildren:function(){return this._detached.map((function(e){return e}))},detach:function(e){if(!this.isDetached()){var t={child:this,index:this.getParent().getChildIndex(this)},i=this.getParent();this.getParent()._detachChild(this),i.dispatchEvent("childRemoved",i,t,e),i.dispatchEvent("childDetached",i,t,e)}},_detachChild:function(e){this._removeChild(e),this._detached.push(e)},reattach:function(e,t){this.isDetached()&&(e=e>=0?e:this.getParent().getNumberOfChildren(),e=this.getParent()._reattachChild(this,e),this.getParent().dispatchEvent("childReattached",this.getParent(),{child:this,index:e},t))},_reattachChild:function(e,t){var i=this._detached.indexOf(e);return this._detached.splice(i,1),this._addChild(e,t)},isDetached:function(){return this.hasParent()&&this.getParent().getDetachedChildren().indexOf(this)>=0},isAncestorDetached:function(){return this.hasParent()&&(this.getParent().isDetached()||this.getParent().isAncestorDetached())},destroy:function(e){this.hasParent()&&this.getParent().dispatchEvent("subTreeDestroyed",this.getParent(),{child:this},e),this._destroyNodesRecursive(e)},remove:function(){this.destroy()},_destroyNodesRecursive:function(e){try{var t,i;this.getChildren().forEach((function(t){t._destroyNodesRecursive(e)})),this.hasParent()&&(t=(i=this.getParent()).getChildIndex(this),i._removeChild(this),this._setParent(null),i.dispatchEvent("childRemoved",i,{child:this,index:t},e),i.dispatchEvent("childDestroyed",i,{child:this,index:t},e)),this.dispatchEvent("destroyed",this,void 0,e)}finally{delete this._idCache[this._id]}},hasParent:function(){return!!this._parent},getParent:function(){return this._parent},getRoot:function(){return this.hasParent()?this.getParent().getRoot():this},accept:function(e){e(this),this._children.forEach((function(t){t.accept(e)})),this._detached.forEach((function(t){t.accept(e)}))},_addChild:function(e,t){return t=this._checkIndex(t),e._setParent(this),this._children.splice(t,0,e),t},_removeChild:function(e){var t,i;"number"==typeof e?(t=e,i=this._children[t]):(t=this.getChildIndex(e),i=e),t=this._checkIndex(t),i&&this._children.splice(t,1)},_checkIndex:function(e){return null==e&&(e=this._children.length),Math.max(0,Math.min(e,this._children.length))},_setParent:function(e){this._parent=e},toString:function(e){e=e||0;var t,i,n,o="";for(n=0;n<e;n+=1)o+=" ";for(i in o+="{id='"+this._id+"'",o+=", type='"+this._type+"'",o+=", properties={",this._properties)if(this._properties.hasOwnProperty(i)){try{t=dojo.toJson(this._properties[i])}catch(e){t=this._properties[i].toString()}t.length>40&&(t=t.slice(0,40)+"..."),o+=i+": "+t+", "}for(o=o.slice(0,o.length-2),o+="}, children=[",n=0;n<this._children.length;n+=1)o+="\n"+this._children[n].toString(e+1);for(o+="], detached=[",n=0;n<this._detached.length;n+=1)o+="\n"+this._detached[n].toString(e+1);return o+="]}"},equals:function(e){var t;if(!e)return!1;if(this===e)return!0;if(this._id!==e._id)return!1;if(this._parent&&e._parent){if(this._parent.getId()!==e._parent.getId())return!1}else if(this._parent!==e._parent)return!1;if(!this._propertiesEqual(this,e))return!1;if(this._type!==e._type)return!1;if(this._children.length!==e._children.length)return!1;if(this._detached.length!==e._detached.length)return!1;for(t=0;t<this._children.length;t+=1)if(!this._children[t].equals(e._children[t]))return!1;for(t=0;t<this._detached.length;t+=1)if(!this._detached[t].equals(e._detached[t]))return!1;return!0},_propertiesEqual:function(e,t){return e._properties===t._properties}}),s.createNode=a.createNode=function(e,t,i){var n=o.generateUuid();return new a(n,e,t,i)},s.Impl=a,s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(652)],o=i.dj.d(n,(function(e,t){var i=e([t],{addPeerEventListener:function(e,t,i){},removePeerEventListener:function(e,t,i){},hasPeerEventListener:function(e,t,i){},dispatchPeerEvent:function(e,t,i,n){}});return i.Impl=e([t.Impl],{addPeerEventListener:function(e,t,i){var n=function(n){n.data.type&&n.data.type===e&&t.call(i,n)};n.type=e,n.callback=t,n.scope=i,this.addEventListener("peerEvent",n)},hasPeerEventListener:function(e,t,i){return!!this._getPeerEventObserver(e,t,i)},removePeerEventListener:function(e,t,i){var n=this._getPeerEventObserver(e,t,i);if(!n)throw new Error("Listener does not exist");this.removeEventListener("peerEvent",n.callback,n.scope)},_getPeerEventObserver:function(e,t,i){return this._listeners.peerEvent?this._listeners.peerEvent.filter((function(n){return n.callback.callback&&n.callback.type===e&&n.callback.callback===t&&n.callback.scope===i}))[0]:null},dispatchPeerEvent:function(e,t,i,n){i||(i={}),i.type=e,this.dispatchEvent("peerEvent",t,i,n)}}),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(){this._propertyIndexMap={},i.before(this,"onChildAdd",t.hitch(this,(function(e){var t=e.data.child.getProperty(this._propertyToIndex);t&&(this._propertyIndexMap[t]=e.data.child.getId())}))),i.before(this,"onPropertySet",t.hitch(this,(function(e){e.data.key===this._propertyToIndex&&e.data.newValue&&(this._propertyIndexMap[e.data.newValue]=e.target.getId())}))),i.before(this,"onChildDestroy",t.hitch(this,(function(e){delete this._propertyIndexMap[e.data.child.getProperty(this._propertyToIndex)]})))},_getPeerNodeIdForIndexedProperty:function(e){return this._propertyIndexMap[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(1037)],o=i.dj.d(n,(function(){return{BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE_BREAK:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,LEFT_WINDOWS:91,RIGHT_WINDOWS:92,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,DASH:189,EQUALS:187,OPEN_BRACKET:219,CLOSE_BRACKET:221,COMMA:188,PERIOD:190,FORWARD_SLASH:191,BACKWARD_SLASH:220,SINGLE_QUOTE:222,SEMI_COLON:186,BACK_TICK:192}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(767)],o=i.dj.d(n,(function(e){return[e.CTRL,e.ALT,e.SHIFT,e.COMMAND,e.SYSCTRL,e.LEFT_WINDOWS,e.RIGHT_WINDOWS]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(2839)],o=i.dj.d(n,(function(e,t){return t(e,"mw-keybindings/l10n/nls/keyBindings",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{ALT:"Alt",BACKSPACE:"Backspace",CAPS_LOCK:"Caps Lock",CLEAR:"Clear",CTRL:"Ctrl",DELETE:"Delete",DOWN:"Down",ENTER:"Enter",END:"End",ESCAPE:"Escape",HELP:"Help",HOME:"Home",INSERT:"Insert",LEFT:"Left",NUM_LOCK:"Num Lock",NUM_PAD:"Num Pad",PAGE_UP:"Page Up",PAGE_DOWN:"Page Down",PAUSE_BREAK:"Pause",RIGHT:"Right",SCROLL_LOCK:"Scroll Lock",SHIFT:"Shift",SPACE:"Space",TAB:"Tab",UP:"Up",WINDOWS:"Windows"}}},function(e,t){e.exports='{\n "Ctrl+N" : {\n "keys" : ["CTRL","N"],\n "platform" : {\n "Windows" : ["Chrome(v43.0)", "Firefox(v40.0)", "IE(v10.10)" ]\n }\n },\n\n "Ctrl+T": {\n "keys" : ["CTRL","T"],\n "platform" : {\n "Windows" : ["Chrome(v43.0)", "Firefox(v40.0)", "IE(v10.10)" ],\n "Linux" : ["Chrome(v43.0)", "Firefox(v40.0)" ]\n }\n },\n\n "F11" : {\n "keys" : ["F11"],\n "platform" : {\n "Mac" : ["Chrome(v43.0)", "Safari(v7.0"]\n }\n },\n\n "F5" : {\n "keys" : ["F5"],\n "platform" : {\n "Windows" : ["IE(v10.10)" ]\n }\n\n }\n}'},function(e,t,i){var n,o;n=[i(203),i(204),i(606)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,t,n){this._actionDataService=n,this._keyBindingData=i.getKeyBindingData(e,t),this._selectorActionMap={}},setAction:function(e,t,i){try{document.querySelector(e)}catch(t){throw new Error("Invalid selector for key binding: "+e)}if(void 0!==this._selectorActionMap[e])throw new Error("An action already exists on this binding for the following selector: "+e);var n=this._actionDataService.getAction(t);if(null===n)throw new Error("Cannot assign the action to the binding. No action exists in the ActionDataService with the following id: "+t);this._selectorActionMap[e]={actionId:t,preventDefault:!i||!i.hasOwnProperty("preventDefault")||i.preventDefault,stopPropagation:!i||!i.hasOwnProperty("stopPropagation")||i.stopPropagation};var o=(n.shortcut||"").concat(","+this.getShortcut());","===o[0]&&(o=o.slice(1,o.length)),this._actionDataService.updateAction(t,{shortcut:o})},removeAction:function(e){if(void 0===this._selectorActionMap[e])throw new Error("No such action exists on this binding for the following selector: "+e);var t=this._selectorActionMap[e],i=this._actionDataService.getAction(t.actionId).shortcut,n=this.getShortcut(),o=i.replace(","+n,"");o=(o=o.replace(n+",","")).replace(n,""),this._actionDataService.updateAction(t.actionId,{shortcut:o.toString()}),delete this._selectorActionMap[e]},cleanup:function(){var e=this.getShortcut();for(var t in this._selectorActionMap){var i=this._selectorActionMap[t].actionId,n=this._actionDataService.getAction(i).shortcut.replace(","+e,"");n=(n=n.replace(e+",","")).replace(e,""),this._actionDataService.updateAction(i,{shortcut:n.toString()})}},getShortcut:function(){return this._keyBindingData.shortcut},getKeySequenceIdentifier:function(){return this._keyBindingData.keySequenceIdentifier},executeAction:function(e){this._actionDataService.executeAction(e)},getActionInfoForNode:function(e){var i;return Object.keys(this._selectorActionMap).some(t.hitch(this,(function(t){this._matches(e,t)&&(i=t)}))),this._selectorActionMap[i]},_matches:function(e,t){for(var i=(e.document||e.ownerDocument).querySelectorAll(t),n=i.length;--n>=0&&i.item(n)!==e;);return n>-1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(2843)],o=i.dj.d(n,(function(e){return e.cache}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i.dj.c(e.i),i(221),i(868)],o=i.dj.d(n,(function(e,t,i,n){var o;i("host-browser")?o=function(e,t,i){n(e,{sync:!!t,headers:{"X-Requested-With":null}}).then(i)}:t.getText?o=t.getText:console.error("dojo/text plugin failed to load because loader does not support getText");var r={},a=function(e){if(e){var t=(e=e.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"")).match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);t&&(e=t[1])}else e="";return e},s={},l={};return e.cache=function(e,i,n){var s;"string"==typeof e?/\//.test(e)?(s=e,n=i):s=t.toUrl(e.replace(/\./g,"/")+(i?"/"+i:"")):(s=e+"",n=i);var l=null!=n&&"string"!=typeof n?n.value:n,c=n&&n.sanitize;return"string"==typeof l?(r[s]=l,c?a(l):l):null===l?(delete r[s],null):(s in r||o(s,!0,(function(e){r[s]=e})),c?a(r[s]):r[s])},{dynamic:!0,normalize:function(e,t){var i=e.split("!"),n=i[0];return(/^\./.test(n)?t(n):n)+(i[1]?"!"+i[1]:"")},load:function(e,t,i){var n=e.split("!"),c=n.length>1,d=n[0],u=t.toUrl(n[0]),h="url:"+u,p=s,f=function(e){i(c?a(e):e)};if(d in r?p=r[d]:t.cache&&h in t.cache?p=t.cache[h]:u in r&&(p=r[u]),p===s)if(l[u])l[u].push(f);else{var g=l[u]=[f];o(u,!t.async,(function(e){r[d]=r[u]=e;for(var t=0;t<g.length;)g[t++](e);delete l[u]}))}else f(p)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i(224),i(302),i(203),i(204),i(257),i(206),i(248),i(215)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c,d=o.delegate(s,{mouseenter:r.enter,mouseleave:r.leave,keypress:i._keypress}),u=n("dijit._AttachMixin",null,{constructor:function(){this._attachPoints=[],this._attachEvents=[]},buildRendering:function(){this.inherited(arguments),this._attachTemplateNodes(this.domNode),this._beforeFillContent()},_beforeFillContent:function(){},_attachTemplateNodes:function(e){for(var t=e;;)if(1==t.nodeType&&(this._processTemplateNode(t,(function(e,t){return e.getAttribute(t)}),this._attach)||this.searchContainerNode)&&t.firstChild)t=t.firstChild;else{if(t==e)return;for(;!t.nextSibling;)if((t=t.parentNode)==e)return;t=t.nextSibling}},_processTemplateNode:function(e,t,i){var n=!0,r=this.attachScope||this,a=t(e,"dojoAttachPoint")||t(e,"data-dojo-attach-point");if(a)for(var s,l=a.split(/\s*,\s*/);s=l.shift();)o.isArray(r[s])?r[s].push(e):r[s]=e,n="containerNode"!=s,this._attachPoints.push(s);var c=t(e,"dojoAttachEvent")||t(e,"data-dojo-attach-event");if(c)for(var d,u=c.split(/\s*,\s*/),h=o.trim;d=u.shift();)if(d){var p=null;if(-1!=d.indexOf(":")){var f=d.split(":");d=h(f[0]),p=h(f[1])}else d=h(d);p||(p=d),this._attachEvents.push(i(e,d,o.hitch(r,p)))}return n},_attach:function(t,i,n){return i="dijitclick"==(i=i.replace(/^on/,"").toLowerCase())?c||(c=e("./a11yclick")):d[i]||i,a(t,i,n)},_detachTemplateNodes:function(){var e=this.attachScope||this;t.forEach(this._attachPoints,(function(t){delete e[t]})),this._attachPoints=[],t.forEach(this._attachEvents,(function(e){e.remove()})),this._attachEvents=[]},destroyRendering:function(){this._detachTemplateNodes(),this.inherited(arguments)}});return o.extend(l,{dojoAttachEvent:"",dojoAttachPoint:""}),u}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="focusNode" role="button"\n ><div data-dojo-attach-point="contentWrapperNode" class="mwContentWrapperNode"\n ><div data-dojo-attach-point="iconAndTextContainerNode" class="mwIconAndTextContainerNode mwAlignmentNode"\n ><div data-dojo-attach-point="iconNode" class="mwIconNode"></div\n ><div data-dojo-attach-point="textNode" class="mwTextNode"></div\n ></div\n ></div\n></div>'},function(e,t,i){"use strict";var n,o;n=[i(245)],o=i.dj.d(n,(function(e){var t={messages:{INVALID_ELEMENT:"The input parameter must be an instance of an Element object.",INVALID_STRING:"The input parameter must be of type 'string'.",INVALID_FOCUS_EVENT:"The input parameter must be a 'FocusEvent' object.",INVALID_STYLE:"The style specified is invalid.",INVALID_VALUE:"The value specified is invalid.",INTEGER_INDEX:"index argument expects an integer.",STRING_INDEX:"index argument expects an string.",SPOUSE_NODE:"A function which returns a spouse node if it exists must be provided."},_validateElement:function(e){if(!(e instanceof Element))throw new Error(t.messages.INVALID_ELEMENT)},_validateString:function(e){if("String"==typeof e)throw new Error(t.messages.INVALID_STRING)},isLeftMouseButton:function(t){return!0===t.synthetic&&e("ie")?1===t.button:0===t.button},parseFocusEvent:function(i){if(!(i instanceof FocusEvent))throw new Error(t.messages.INVALID_FOCUS_EVENT);var n={};return n.lostFocusNode=i.target,n.gainedFocusNode=e("chrome")||e("safari")?i.relatedTarget:document.activeElement,n.type=i.type,n.eventdata=i,n},getParent:function(e){return t._validateElement(e),e.parentNode},findParentNode:function(e,i,n){var o,r=null;for(e.domNode&&(e=e.domNode);e&&e!==window.document;){if(t.hasAttr(e,i)){r=e;break}if(t.hasAttrValue(e,i,n)){r=e;break}if(t.containsClass(e,i)){r=e;break}e=(o=t.getAttr(e,"dijitpopupparent"))?t.getById(o):e.parentNode}return r},getNodeType:function(e){return t._validateElement(e),{1:"Element",3:"Text",7:"Processing Instruction",8:"Comment",9:"Document",10:"Document Type",11:"Document Fragment"}[e.nodeType]},getById:function(e){return t._validateString(e),window.document.getElementById(e)},getByClass:function(e){return t._validateString(e),window.document.getElementsByClassName(e)},getByAttr:function(e){return t._validateString(e),window.document.querySelectorAll("["+e+"]")},getByAttrValue:function(e,i){return t._validateString(e),t._validateString(i),window.document.querySelectorAll("["+e+"="+i.replace(/['".\\]/g,"\\$&").replace(/[\\]/g,"\\$&")+"]")},getByName:function(e){return t._validateString(e),window.document.getElementById("[name="+e+"]")},getByTag:function(e){return t._validateString(e),window.document.getElementsByTagName(e)},getComputedStyle:function(e,i){return t._validateElement(e),i?(t._validateString(i),window.getComputedStyle(e,null)[i]):window.getComputedStyle(e,null)},getStyle:function(e,i){if(t._validateElement(e),t._validateString(i),void 0===e.style[i])throw new Error(t.messages.INVALID_STYLE);return e.style[i]},setStyle:function(e,i,n){if(t._validateElement(e),t._validateString(i),t._validateString(n),e.style[i]=n,e.style[i]!==n)throw new Error(t.messages.INVALID_VALUE)},hasAttr:function(e,i){return t._validateElement(e),t._validateString(i),e.hasAttribute(i)},hasAttrValue:function(e,i,n){return t._validateElement(e),t._validateString(i),t._validateString(n),e.hasAttribute(i)&&e.getAttribute(i)===n},getAttr:function(e,i){return t._validateElement(e),t._validateString(i),e.getAttribute(i)},setAttr:function(e,i,n){t._validateElement(e),t._validateString(i),t._validateString(n),e.setAttribute(i,n)},addAttr:function(e,i){t._validateElement(e),t._validateString(i),e.setAttribute(i,"")},removeAttr:function(e,i){t._validateElement(e),t._validateString(i),e.removeAttribute(i)},getClasses:function(e){return t._validateElement(e),e.classList?e.classList:{_element:e,_getClassArray:function(){return this._element.className.split(" ")},_updateClassName:function(e){this._element.className=e.join(" "),this.length=e.length},length:e.className.split(" ").length,item:function(e){return this._getClassArray()[e]},contains:function(e){for(var t=this._getClassArray(),i=0;i<t.length;i++)if(t[i]===e)return!0;return!1},add:function(e){var t=this._getClassArray();t.push(e),this._updateClassName(t)},remove:function(e){var t=this._getClassArray(),i=t.indexOf(e);i>=0&&(t.splice(i,1),this._updateClassName(t))},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}}},getClass:function(e,i){if(null==i||"number"!=typeof i||i<0||i%1!=0)throw new Error(t.messages.INTEGER_INDEX);return t.getClasses(e).item(i)},addClass:function(e,i){if(null==i||"string"!=typeof i)throw new Error(t.messages.STRING_INDEX);return t.getClasses(e).add(i)},removeClass:function(e,i){if(null==i||"string"!=typeof i)throw new Error(t.messages.STRING_INDEX);return t.getClasses(e).remove(i)},toggleClass:function(e,i){if(null==i||"string"!=typeof i)throw new Error(t.messages.STRING_INDEX);return t.getClasses(e).toggle(i)},containsClass:function(e,i){if(null==i||"string"!=typeof i)throw new Error(t.messages.STRING_INDEX);return t.getClasses(e).contains(i)},classCount:function(e){return t.getClasses(e).length},getChildCount:function(e){return t._validateElement(e),e.childElementCount},getChildren:function(e){return t._validateElement(e),e.children},isDescendant:function(e,i,n){if(t._validateElement(e),t._validateElement(i),n&&e===i)return!0;for(;e&&e!==window.document;)if((e=t.getParent(e))===i)return!0;return!1},isDescendantOrInLaw:function(e,i,n,o){var r,a;if("function"!=typeof n)throw new Error(t.messages.SPOUSE_NODE);if(!1===(a=t.isDescendant(e,i,o))){(r=function(e){return n(e)||e.parentNode}(e))&&r!==window.document&&(a=t.isDescendantOrInLaw(r,i,n,o))}return a},getFirstChild:function(e){return t._validateElement(e),!t.isContainer(e)||t.getChildCount(e)<1?null:t.getChildren(e)[0]},getLastChild:function(e){var i;return t._validateElement(e),i=t.getChildCount(e),!t.isContainer(e)||i<1?null:t.getChildren(e)[i-1]},isContainer:function(e){return t._validateElement(e),t.getChildCount(e)>0},getAdjacentElement:function(e,i){return t._validateElement(e),(!i||["next","previous"].indexOf(i)<0)&&(i="next"),e=e[i+"Sibling"]},getElementPositionInViewPort:function(e){var i;return t._validateElement(e),{x:(i=e.getBoundingClientRect()).left,y:i.top,w:i.right-i.left,h:i.bottom-i.top}},getElementPositionOnPage:function(e){var i;return t._validateElement(e),(i=t.getElementPositionInViewPort(e)).x+=window.pageXOffset,i.y+=window.pageYOffset,i},isFocusable:function(e){return t._validateElement(e),e&&!e.hasAttribute("disabled")&&(!e.hasAttribute("aria-disabled")||"true"!==e.getAttribute("aria-disabled"))&&"none"!==e.style.display&&!e.hasAttribute("data-refuse-key-nav")},isElementInViewport:function(e){var i,n,o,r;return t._validateElement(e),i=e.getBoundingClientRect(),n=window.innerWidth||doc.documentElement.clientWidth,o=window.innerHeight||doc.documentElement.clientHeight,r=function(e,t){return document.elementFromPoint(e,t)},!(i.right<0||i.bottom<0||i.left>n||i.top>o)&&(e.contains(r(i.left,i.top))||e.contains(r(i.right,i.top))||e.contains(r(i.right,i.bottom))||e.contains(r(i.left,i.bottom)))},_obscuredProps:{}};return t._obscuredProps.sawPosAbsolute=!1,t._obscuredProps.elementPosition=null,t.isElementObscuredByParent=function(e,i){var n,o,r,a;if(t._validateElement(e),a=!1,(r=t.getParent(e))&&(i||(t._obscuredProps.elementPosition=t.getElementPositionOnPage(e),t._obscuredProps.sawPosAbsolute="absolute"===window.getComputedStyle(e,null).position),n=t._obscuredProps.elementPosition,o=t._obscuredProps.sawPosAbsolute,r&&"Element"===t.getNodeType(r)&&"BODY"!==r.nodeName)){var s=t.getElementPositionOnPage(r),l=window.getComputedStyle(r,null);/relative|absolute/.test(l.position)&&(o=t._sawPosAbsolute=!1),!o&&/hidden|auto|scroll/.test(l.overflow)&&(a=n.y<s.y||n.y+n.h>s.y+s.h||n.x<s.x||n.x+n.w>s.x+s.w)}return a},t.isElementObscuredByAncestor=function(e){var i,n;for(t._validateElement(e),i=!1,t._obscuredProps.elementPosition=t.getElementPositionOnPage(e),t._obscuredProps.sawPosAbsolute="absolute"===window.getComputedStyle(e,null).position;(n=t.getParent(e))&&"Element"===t.getNodeType(n)&&"BODY"!==n.nodeName;)i=t.isElementObscuredByParent(e,!0),e=n;return i},t}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="focusNode" role="menuitem"\n ><div class="mwIconNode" data-dojo-attach-point="iconNode"></div\n ><div class="mwTextAndDescriptionContainerNode" data-dojo-attach-point="textAndDescriptionContainerNode"\n ><div data-dojo-attach-point="textNode" class=\'mwTextNode\'></div\n ><div data-dojo-attach-point="descriptionNode" class=\'mwDescriptionNode\'></div\n ></div\n ><div class="mwShortcutKeyNode" data-dojo-attach-point="shortcutKeyNode"></div\n></div>'},function(e,t){e.exports='<div data-refuse-key-nav="true"></div>\n'},function(e,t){e.exports='<div data-dojo-attach-point="focusNode" role="button" aria-pressed="false"\n ><div data-dojo-attach-point="contentWrapperNode" class="mwContentWrapperNode"\n ><div data-dojo-attach-point="iconAndTextContainerNode" class="mwIconAndTextContainerNode mwAlignmentNode"\n ><div data-dojo-attach-point="iconNode" class="mwIconNode"></div\n ><div data-dojo-attach-point="textNode" class="mwTextNode"></div\n ></div\n ></div\n></div>'},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_destroyed:!1,destroy:function(){this._set("_destroyed",!0),this.inherited(arguments)},isDestroyed:function(){return this.get("_destroyed")}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="focusNode" role="checkbox" aria-checked="false"\n ><div data-dojo-attach-point="checkBoxRadioIconNode" class="mwCheckBoxRadioIconNode"\n ><div class="mwCheckBoxRadioIconInner"></div></div\n ><div data-dojo-attach-point="textNode" class="mwTextNode"></div\n></div>'},function(e,t){e.exports='<div data-dojo-attach-point="focusNode" role="radio" aria-checked="false"\n ><div data-dojo-attach-point="checkBoxRadioIconNode" class="mwCheckBoxRadioIconNode"\n ><div class="mwCheckBoxRadioIconInner"></div></div\n ><div data-dojo-attach-point="textNode" class="mwTextNode"></div\n></div>'},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n=[i(204),i(212),i(513),i(209),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){var a,s,l,c="",d=function(e){return e&&"click"!==e?e.replaceAll("_"," "):"clicked"};return{start:function(e){if(!a){a=!0,n.assert(e.applicationName,"applicationName must be supplied for direct send"),n.assert(e.applicationVersion,"applicationVersion must be supplied for direct send"),n.assert(e.applicationKey,"applicationKey must be supplied for direct send"),s={applicationName:e.applicationName,applicationVersion:e.applicationVersion,applicationKey:e.applicationKey},l=o.generateUuid();var t=location.href,r=t.indexOf("?");if(r>=0){var d=i.queryToObject(t.substring(r+1,t.length));d.dduxUrlOverride&&(c=d.dduxUrlOverride)}if(!c){var u=e.endPointNumber||function(e){if(e&&6===e.length)return[1,3,2][(2*(parseInt(e.substring(1,5))-2016)+("a"===e.charAt(5)?0:1))%3]}(e.release)||1;c="https://udc-service-integ"+u+".mathworks.com/udc/service/v1/events"}}},stop:function(){a&&(a=!1)},isRunning:function(){return a},sendEvent:function(e,i,o){var a,u,h;if("telemetry"===e)a={logDDUXData:{product:i.product,keyValues:i.data}},u=i.eventKey;else{if("uiEvent"!==e)return void n.warn("Direct send to server not yet supported for "+e+" events");a={uiEvent:{productName:i.product,uiScope:i.scope,elementId:i.elementId,elementType:(h=i.elementType,h?h.replaceAll("_"," "):"none"),eventType:d(i.eventType)}},u="MATLAB_DDUX_UI_EVENT";var p=[],f=!0,g=!1,m=void 0;try{for(var _,v=Object.entries(i)[Symbol.iterator]();!(f=(_=v.next()).done);f=!0){var b=r(_.value,2);key=b[0],value=b[1],"product"!==key&&"scope"!==key&&"elementId"!==key&&"elementType"!==key&&"eventType"!==key&&("subScope"===key&&(key="subscope"),p.push({key:key,value:value}))}}catch(e){g=!0,m=e}finally{try{!f&&v.return&&v.return()}finally{if(g)throw m}}p.length>0&&(a.values={entry:p})}var y=JSON.stringify(a),C=new XMLHttpRequest;C.open("POST",c),C.setRequestHeader("Content-type","application/json"),C.setRequestHeader("Accept-Language","en_US"),C.setRequestHeader("x-mw-udc-client-version","1.0"),C.setRequestHeader("x-mw-udc-application-name",s.applicationName),C.setRequestHeader("x-mw-udc-application-version",s.applicationVersion),C.setRequestHeader("x-mw-authentication",s.applicationKey);var T={sessionKey:l,eventKey:u,eventDate:(new Date).toISOString().slice(0,23),eventData:y};i.appComponent&&(T.applicationComponent=i.appComponent);var E={Event:[T]},S=void 0;if(o&&(S=new t),C.addEventListener("error",(function(){n.warn("DDUX http request failed"),S&&S.resolve(6)})),C.addEventListener("load",(function(){n.info("DDUX http request succeeded"),S&&S.resolve(0)})),C.send(JSON.stringify(E)),S)return S.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(212),i(209),i(219),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a,s,l=0,c=[];return{start:function(e){r||(r=!0,a="/UsageData/"+o.generateUuid(),s="/UsageResponse/"+o.generateUuid(),n.publish("/UsageSetup",{type:"start",product:e.product,scope:e.scope,channel:a,responseChannel:s,url:location.href,title:document.title}),n.subscribe(s,"_handleResponse",this))},stop:function(){r&&(n.publish("/UsageSetup",{type:"stop",channel:a,responseChannel:s}),n.unsubscribe(s,"_handleResponse",this),r=!1)},isRunning:function(){return r},sendEvent:function(e,i,o){var r=void 0;if(i.messageType=e,o&&(i.responseSequence=l++,(r=new t).responseSequence=i.responseSequence,c.push(r)),n.publish(a,i),r)return r.promise},_handleResponse:function(e){for(var t=e.data.responseSequence;c.length>0;){var i=c.shift();if(i.responseSequence===t){i.resolve(e.data.status);break}i.reject()}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(206),i(231),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s,l={CheckBox:["click"],ColorPickerButton:["change"],ComboBox:["dropdownclick","change"],DropDownButton:["dropdownclick"],GalleryPopupButton:["click"],GalleryItem:["click"],HorizontalSlider:["change"],List:["change"],ListItem:["click"],ListItemWithCheckBox:["click"],ListItemWithRadioButton:["click"],ListItemWithTextField:["change","click"],ListItemWithPopup:[],PopupList:[],PushButton:["click"],QABPushButton:["click"],QABDropDownButton:["dropdownclick"],QABSplitButton:["click","dropdownclick"],QABToggleButton:["click"],QABToggleSplitButton:["click","dropdownclick"],RadioButton:["click"],Spinner:["change"],SplitButton:["click","dropdownclick"],ToolstripTab:["click"],TextArea:["change"],TextField:["change"],ToggleButton:["click"],ToggleGalleryItem:["click"],ToggleSplitButton:["click","dropdownclick"]},c=["mwPushButton","mwDropDownButton","mwMenuItem","mwPopupMenuItem","mwSplitButton","mwToggleButton","mwToggleSplitButton","mwComboBox","mwCheckBox","mwRadioButton","mwSpinner","mwGalleryItem","mwToggleGalleryItem","mwTextField","mwTextArea","mwCheckBoxMenuItem","mwRadioButtonMenuItem","mwTextFieldMenuItem","mwListBox","mwColorPickerButton","mwGridPickerButton"];return{setup:function(e,t){_uiEventDefaults=e,a=t},logEvent:function(e,i,n){if(a){var o=this,r=function(){if(i){if(attributes=o._getLoggingAttributes(i),!attributes.enabled)return;delete attributes.enabled,t.mixin(e,attributes)}a(e,void 0,!0)};n?r():setTimeout(r,0)}},enableLoggingFromNode:function(e,t){a?(this._addLoggingAttributes(e,{subscope:t,enabled:!0}),s||(this._addListeners(),s=!0)):r.warn("Attempting to enable logging without having called setup")},disableLoggingFromNode:function(e){this._addLoggingAttributes(e,{enabled:!1})},overrideProductAndScope:function(e,t,i){this._addLoggingAttributes(e,{product:t,scope:i})},_addListeners:function(){var e=this,t=!1;window.addEventListener("click",(function(i){t||(t=!0,e._logDomEvent(i,"click"),setTimeout((function(){t=!1}),0))}),!0),n(window,"change",(function(t){e._logDomEvent(t,"change")})),n(window,"dropdownclick",(function(t){e._logDomEvent(t,"dropdownclick")}))},_addLoggingAttributes:function(e,i){var n=i,o=e.getAttribute("data-usage-logging");o&&(n=JSON.parse(o),t.mixin(n,i)),e.setAttribute("data-usage-logging",JSON.stringify(n))},_getLoggingAttributes:function(e){var t=this._getPopupInvoker(e);t&&(e=t);for(var i={};e&&void 0===i.enabled;){var n=e.getAttribute?e.getAttribute("data-usage-logging"):void 0;if(n){var o=JSON.parse(n);!i.product&&o.product&&(i.product=o.product),!i.scope&&o.scope&&(i.scope=o.scope),!i.subscope&&o.subscope&&(i.subscope=o.subscope),i.enabled||void 0===o.enabled||(i.enabled=o.enabled)}e=e.parentNode}return i},_logDomEvent:function(e,t){var i=this._getNodeInfoFromEvent(e);if(i&&this._isEventOfInterest(i.type,t)){var n={eventType:e.keyStroke?"keypress":"click",elementId:i.tag,elementType:this._translateElementType(i.type)};if("GalleryItem"===n.elementType||"ToggleGalleryItem"===n.elementType){var r=o.getEnclosingWidget(i.node);r&&(n.elementType="icon_view"===r.displayState?"button":"list_item")}e.keyStroke&&(n.keyStroke=e.keyStroke),this.logEvent(n,i.node)}},_getNodeInfoFromEvent:function(e){for(var t=e.target;t&&t.getAttribute;){var i=t.getAttribute("data-tag");if(i){var n=t.getAttribute("data-type");if(n||(n=this._getWidgetTypeFromCss(t)),n)break}t=t.parentNode}return t?{node:t,tag:i,type:n}:null},_getWidgetTypeFromCss:function(e){var t=e.classList;if(t.contains("mwWidget"))for(var i=0;i<c.length;i++){var n=c[i];if(t.contains(n))return n.substring(2)}return null},_isEventOfInterest:function(e,t){var i=l[e];return i&&i.indexOf(t)>=0},_getPopupInvoker:function(e){for(;e&&e.classList;){if(e.classList.contains("dijitPopup")){var t=e.getAttribute("dijitPopupParent");if(t){var n=i.byId(t);return n&&n.classList&&n.classList.contains("mwPopupMenuItem")?this._getPopupInvoker(n):n}break}e=e.parentNode}return null},_translateElementType:function(e){var t;switch(e){case"ColorPickerButton":case"GridPickerButton":case"PushButton":case"SplitButton":case"ToggleButton":case"RadioButton":case"CheckBox":case"ToggleSplitButton":case"QABPushButton":case"QABSplitButton":case"QABToggleButton":case"QABToggleSplitButton":t="button";break;case"DropDownButton":case"GalleryPopupButton":case"QABDropDownButton":t="drop_down";break;case"ListItem":case"ListItemWithCheckBox":case"ListItemWithTextField":case"ListItemWithRadioButton":t="list_item";break;case"ComboBox":t="combo_box";break;case"HorizontalSlider":t="slider";break;case"Spinner":t="spinner";break;case"TextField":t="text_field";break;case"TextArea":t="text_area";break;case"ToolstripTab":t="toolstrip_tab";break;default:t=e}return t}}}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="focusNode" class="mwFocusNode" role="menuitem" aria-haspopup="true" aria-expanded="false"\n ><div class="mwIconNode" data-dojo-attach-point="iconNode"></div\n ><div class="mwTextAndDescriptionContainerNode" data-dojo-attach-point="textAndDescriptionContainerNode"\n ><div data-dojo-attach-point="textNode" class=\'mwTextNode\'></div\n ><div data-dojo-attach-point="descriptionNode" class=\'mwDescriptionNode\'></div\n ></div\n ><div class="mwShortcutAndArrowWrapperNode"\n ><div class="mwShortcutKeyNode" data-dojo-attach-point="shortcutKeyNode"></div\n ><div class="mwMenuArrowNode" data-dojo-attach-point="menuArrowNode"></div\n ></div\n></div>\n'},function(e,t){e.exports='<div class="tab">\n <span class="mwTabHeader" data-dojo-attach-point="headerNode"\n ></span><span class="tabIcon" data-dojo-attach-point="iconNode"\n ></span><span class="mwTabLabel" data-dojo-attach-point="labelNode,containerNode"\n ></span><span class="tabCloseIcon" data-dojo-attach-point="closeNode"\n ></span>\n</div>\n'},function(e,t,i){e.exports={fullscreenMode:"全画面表示",exitFullscreen:"全画面表示の終了",exitFullscreenModeSomething:"全画面表示 {placeholder} の終了",maximizeSomething:"{placeholder} を最大化",restoreSomething:"{placeholder} を元に戻す",maximize:"最大化",restore:"元に戻す",collapse:"折りたたむ",expand:"展開",undock:"ドックから出す",undockSomething:"{placeholder} をドックから出す",dock:"ドックに入れる",dockSomething:"{placeholder} をドックに入れる",close:"閉じる",closeSomething:"{placeholder} を閉じる",closeAll:"すべて閉じる",tile:"並べて表示",tileAll:"すべて並べて表示",subtile:"サブタイル表示",subtileSomething:"{placeholder} をサブタイル表示",tabPosition:"タブの位置",shrinkTabsToFit:"収まるようにタブを縮小",top:"上",bottom:"下",left:"左",right:"右",document:"ドキュメント",splitTitle:"分割",noSplitLabel:"なし",noSplitDescription:"1 つのドキュメントを表示します",leftRightSplitLabel:"左/右",leftRightSplitDescription:"2 つのドキュメントを左右に並べて表示します",topBottomSplitLabel:"上/下",topBottomSplitDescription:"2 つのドキュメントを上下に表示します",singleTileLabel:"単一表示",tabPositionTitle:"タブ",tabsToTopLabel:"上",tabsToTopDescription:"タブを上に配置します",tabsToBottomLabel:"下",tabsToBottomDescription:"タブを下に配置します",tabsToLeftLabel:"左",tabsToLeftDescription:"タブを左に配置します",tabsToRightLabel:"右",tabsToRightDescription:"タブを右に配置します",shrinkTabsLabel:"収まるように縮小",shrinkTabsDescription:"スクロールをしないで済むようタブを縮小します",collapseSidePanel:"サイドを折りたたむ",expandSidePanel:"サイドを展開する",collapseBottomPanel:"下部を折りたたむ",expandBottomPanel:"下部を展開する",collapseTopPanel:"上部を折りたたむ",expandTopPanel:"上部を展開する",expandDocuments:"ドキュメントを展開する",childActions:"{placeholder} アクション"}},function(e,t,i){e.exports={fullscreenMode:"전체 화면",exitFullscreen:"전체 화면 종료",exitFullscreenModeSomething:"{placeholder} 전체 화면 종료",maximizeSomething:"{placeholder} 최대화",restoreSomething:"{placeholder} 복원",maximize:"최대화",restore:"복원",collapse:"축소",expand:"확장",undock:"도킹 해제",undockSomething:"{placeholder} 도킹 해제",dock:"도킹",dockSomething:"{placeholder} 도킹",close:"닫기",closeSomething:"{placeholder} 닫기",closeAll:"모두 닫기",tile:"타일",tileAll:"모두 타일 형식으로 배열",subtile:"하위 타일",subtileSomething:"{placeholder} 하위 타일",tabPosition:"탭 위치",shrinkTabsToFit:"영역에 맞게 탭 축소",top:"위쪽",bottom:"아래쪽",left:"왼쪽",right:"오른쪽",document:"문서",splitTitle:"분할",noSplitLabel:"안 함",noSplitDescription:"하나의 문서를 표시합니다.",leftRightSplitLabel:"좌/우",leftRightSplitDescription:"두 문서를 나란히 표시합니다.",topBottomSplitLabel:"상/하",topBottomSplitDescription:"두 문서를 상하로 표시합니다.",singleTileLabel:"단일",tabPositionTitle:"탭",tabsToTopLabel:"위쪽",tabsToTopDescription:"탭을 위쪽에 배치합니다.",tabsToBottomLabel:"아래쪽",tabsToBottomDescription:"탭을 아래쪽에 배치합니다.",tabsToLeftLabel:"왼쪽",tabsToLeftDescription:"탭을 왼쪽에 배치합니다.",tabsToRightLabel:"오른쪽",tabsToRightDescription:"탭을 오른쪽에 배치합니다.",shrinkTabsLabel:"영역에 맞게 축소",shrinkTabsDescription:"탭을 축소하여 스크롤하지 않도록 합니다.",collapseSidePanel:"측면 패널 축소",expandSidePanel:"측면 패널 확장",collapseBottomPanel:"하단 패널 축소",expandBottomPanel:"하단 패널 확장",collapseTopPanel:"상단 패널 축소",expandTopPanel:"상단 패널 확장",expandDocuments:"문서 확장",childActions:"{placeholder} 동작"}},function(e,t,i){e.exports={fullscreenMode:"全屏",exitFullscreen:"退出全屏",exitFullscreenModeSomething:"退出全屏 {占位符}",maximizeSomething:"最大化 {placeholder}",restoreSomething:"还原 {placeholder}",maximize:"最大化",restore:"还原",collapse:"折叠",expand:"展开",undock:"取消停靠",undockSomething:"取消停靠 {placeholder}",dock:"停靠",dockSomething:"停靠 {placeholder}",close:"关闭",closeSomething:"关闭 {placeholder}",closeAll:"全部关闭",tile:"平铺",tileAll:"全部平铺",subtile:"平铺子图",subtileSomething:"平铺子图 {placeholder}",tabPosition:"选项卡位置",shrinkTabsToFit:"按窗口大小收缩选项卡",top:"顶端",bottom:"底端",left:"左侧",right:"右侧",document:"文档",splitTitle:"拆分",noSplitLabel:"无",noSplitDescription:"显示一个文档",leftRightSplitLabel:"左/右",leftRightSplitDescription:"并排显示两个文档",topBottomSplitLabel:"顶端/底端",topBottomSplitDescription:"堆叠显示两个文档",singleTileLabel:"单个",tabPositionTitle:"选项卡",tabsToTopLabel:"顶端",tabsToTopDescription:"将选项卡置于顶端",tabsToBottomLabel:"底端",tabsToBottomDescription:"将选项卡置于底端",tabsToLeftLabel:"左侧",tabsToLeftDescription:"将选项卡置于左侧",tabsToRightLabel:"右侧",tabsToRightDescription:"将选项卡置于右侧",shrinkTabsLabel:"缩小以适应窗口大小",shrinkTabsDescription:"缩小选项卡以避免滚动",collapseSidePanel:"折叠侧栏",expandSidePanel:"展开侧栏",collapseBottomPanel:"折叠底栏",expandBottomPanel:"展开底栏",collapseTopPanel:"折叠顶栏",expandTopPanel:"展开顶栏",expandDocuments:"展开文档",childActions:"{placeholder} 操作"}},function(e,t,i){e.exports={root:{fullscreenMode:"Fullscreen",exitFullscreen:"Exit fullscreen",exitFullscreenModeSomething:"Exit fullscreen {placeholder}",maximizeSomething:"Maximize {placeholder}",restoreSomething:"Restore {placeholder}",maximize:"Maximize",restore:"Restore",collapse:"Collapse",expand:"Expand",undock:"Undock",undockSomething:"Undock {placeholder}",dock:"Dock",dockSomething:"Dock {placeholder}",close:"Close",closeSomething:"Close {placeholder}",closeAll:"Close All",tile:"Tile",tileAll:"Tile All",subtile:"Sub-Tile",subtileSomething:"Sub-Tile {placeholder}",tabPosition:"Tab Position",shrinkTabsToFit:"Shrink Tabs to Fit",top:"Top",bottom:"Bottom",left:"Left",right:"Right",document:"Document",splitTitle:"Split",noSplitLabel:"None",noSplitDescription:"Display one document",leftRightSplitLabel:"Left/Right",leftRightSplitDescription:"Display two documents, side-by-side",topBottomSplitLabel:"Top/Bottom",topBottomSplitDescription:"Display two documents, one above other",singleTileLabel:"Single",tabPositionTitle:"Tabs",tabsToTopLabel:"Top",tabsToTopDescription:"Place tabs at top",tabsToBottomLabel:"Bottom",tabsToBottomDescription:"Place tabs at bottom",tabsToLeftLabel:"Left",tabsToLeftDescription:"Place tabs at left",tabsToRightLabel:"Right",tabsToRightDescription:"Place tabs at right",shrinkTabsLabel:"Shrink to Fit",shrinkTabsDescription:"Shrink tabs to forestall scrolling",collapseSidePanel:"Collapse Side",expandSidePanel:"Expand Side",collapseBottomPanel:"Collapse Bottom",expandBottomPanel:"Expand Bottom",collapseTopPanel:"Collapse Top",expandTopPanel:"Expand Top",expandDocuments:"Expand Documents",childActions:"{placeholder} Actions"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="titleBar">\n <span class="toggle" data-dojo-attach-point="toggleNode"\n ></span><span role="heading" aria-level="2"\n ><span role="button" class="titleButton" data-dojo-attach-point="titleButton"\n ><span class="title" data-dojo-attach-point="titleNode"\n ></span\n ></span\n ></span><span class="actionsButtonWrapper" data-dojo-attach-point="actionsNodeWrapper" role="button" aria-haspopup="true"\n ><span class="actionsButton" data-dojo-attach-point="actionsNode"></span\n ></span>\n</div>\n'},function(e,t){e.exports='<div class="gripH"></div>'},function(e,t){e.exports='<div class="gripV"></div>'},function(e,t,i){var n,o;n=[i(203),i(228),i(210),i(217),i(1038),i(344),i(355),i(562)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([o],{postMixInProperties:function(){this.fixParallelDimension=!1,this.inherited(arguments),this.setFacet="_documentBarSet",this.displayToolTipsWhenTruncated=!0,this.expandButtonIdPrefix="documentBar"},buildRendering:function(){this.inherited(arguments),i.add(this.domNode,"documentBar"),"horizontal"===this.buttonOrientation&&i.add(this.domNode,"horizontalButtons");var e=this,n=this.getPostNeighbor();t.set(n,"title",s.expandDocuments),this.documentContainer.getDocuments().forEach((function(t){var i=e.documentContainer.getProperties(t),n=t.getParent();e._setDocumentBarSetProperty(n,i),e.acceptLoan(n,i),i.set(r.IS_SHOWING,!1)})),this.own(this.documentContainer.on(a.CHILD_ADDED,(function(t,i){var n=t.getParent();e._setDocumentBarSetProperty(n,i),e.acceptLoan(n,i)}))),this.own(this.documentContainer.on(a.CHILD_REMOVED,(function(t,i){e.cancelLoan(i)})))},_setDocumentBarSetProperty:function(e,t){t._documentBarSet=e.id+t.setId},destroy:function(){this.inherited(arguments),this.documentContainer.refreshShowingDocuments()},_measureButton:function(e){var t=this.inherited(arguments);if("vertical"===this.orientation&&"horizontal"===this.buttonOrientation){var i=t.w;t.w=t.h,t.h=i}return t},_showChild:function(e){this.inherited(arguments),i.add(e.onTopPane.domNode,"documentPane")},_isTruncated:function(e){return this.inherited(arguments)||"vertical"===this.orientation&&"horizontal"===this.buttonOrientation&&e.currentBox.w<e.preferredSize.w},_getExpandAllItemText:function(){return s.expandDocuments}})}),e,t),e.exports=o},function(e,t){e.exports='<table class="dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role="menu" tabIndex="${tabIndex}"\n\t cellspacing="0">\n\t<tbody class="dijitReset" data-dojo-attach-point="containerNode"></tbody>\n</table>\n'},function(e,t){e.exports='<tr class="dijitReset" data-dojo-attach-point="focusNode" role="menuitem" tabIndex="-1">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<span role="presentation" class="dijitInline dijitIcon dijitMenuItemIcon" data-dojo-attach-point="iconNode"></span>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" data-dojo-attach-point="containerNode,textDirNode"\n\t\trole="presentation"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" data-dojo-attach-point="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">\n\t\t<span data-dojo-attach-point="arrowWrapper" style="visibility: hidden">\n\t\t\t<span class="dijitInline dijitIcon dijitMenuExpand"></span>\n\t\t\t<span class="dijitMenuExpandA11y">+</span>\n\t\t</span>\n\t</td>\n</tr>\n'},function(e,t){e.exports='<div class="tabPlusButton" role="button">\n <div class="tabPlusIcon" data-dojo-attach-point="plusNode"\n ></div><div class="tabDropDownIcon" data-dojo-attach-point="dropDownNode"\n ></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(2870),i(1723)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{tabBarClass:i,buildRendering:function(){this.inherited(arguments),this._tabBar.actionsMenuCreator=t.partial(this.actionsMenuCreator,this),this._tabBar.groupPropertiesFetcher=this.groupPropertiesFetcher},getSetMembersInTabOrder:function(e){var t,i,n,o=[];if(1===this._tabInfo.length)t=this._tabInfo[0].widget,this.getChildProperties(t).setId===e&&o.push(t);else for(i=this._tabBar.getButtonsInSet(e),n=0;n<i.length;n++)o.push(i[n].widget);return o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(242),i(227),i(210),i(211),i(217),i(213),i(257),i(248),i(206),i(277),i(1047),i(655),i(387),i(1721),i(2871)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([g],{addTab:function(e,i,n,r,a,s){var c=this.inherited(arguments);i.groupId&&o.add(c.domNode,"groupTab"),i.setId&&i.__showHeader&&(c._mouseEnterListener=d(c.headerNode,l.enter,t.hitch(this,"_initiateHeaderDisplay",c,e,i)))},removeTab:function(e,t){var i=this.inherited(arguments);i&&i._mouseEnterListener&&(i._mouseEnterListener.remove(),i._mouseEnterListener=null)},_initiateHeaderDisplay:function(e,i,o){var r=this;if(o.groupId||!(this._getSetMemberCount(o.setId)<2)){var a=this._computeHeaderBounds(o.setId,e.headerNode);this._removeConnections();var s=setTimeout(t.hitch(this,"_showHeader",e,i,o,a),200);this._connections=[d(this.ownerDocument,c.move,(function(t){r._header?t.target===r._header.domNode||t.target===e.headerNode||n.isDescendant(t.target,r._header.domNode)||r._hideHeader():p.boxContains(a,t.pageX,t.pageY)||(clearTimeout(s),r._removeConnections())}))]}},_showHeader:function(e,r,u,h){!this._header&&this._connections&&(this._header=new m({id:u.setId+"Header",setId:u.groupId||u.setId,label:this.groupPropertiesFetcher(r,u).title,createMenu:t.partial(this.actionsMenuCreator,u.groupId?e.widget:u.setId),menuCloseCallback:t.hitch(this,"_hideHeader")}),o.add(this._header.domNode,this.tabOpening+"Open"),n.setSelectable(this._header.domNode,!1),f.preventFocus(this._header.domNode,!0),this._header.placeAt(i.body()),a.setMarginBox(this._header.domNode,h),"vertical"===this.orientation&&s.set(this._header.labelNode,{width:h.h-24+"px"}),this._connections.push(d(this._header.domNode,l.leave,t.hitch(this,"_hideHeader"))),this._connections.push(d(this._header.domNode,c.press,t.hitch(this,"_beginSetDrag",u.setId,h))))},_hideHeader:function(e){e&&this._header.domNode.contains(e.target)||this._header&&!this._buttonDragInfo&&(0===u._stack.length||u._stack[0].widget!==this._header.menu&&u._stack[0].widget!==this._header.contextMenu)&&(i.body().removeChild(this._header.domNode),this._header.destroy(),this._removeConnections(),delete this._header)},_continueSetDrag:function(){this.inherited(arguments),this._updateHeaderPosition()},_updateButtonPositions:function(){this.inherited(arguments),this._updateHeaderPosition()},_updateHeaderPosition:function(){if(this._header){var e=a.getMarginBox(this._header.domNode),t=this._getVisibleButtonSetBounds(this._header.setId),i=a.position(this.domNode);t.l+=i.x,t.t+=i.y,"horizontal"===this.orientation?(e.l=t.l,e.w=t.w):(e.t=t.t,e.h=t.h),a.setMarginBox(this._header.domNode,e)}},_computeHeaderBounds:function(e,t){var n=this._getVisibleButtonSetBounds(e),o=a.getMarginBox(t);switch(this.tabOpening){case"bottom":n.t+=o.t+o.h-20+1,n.h=20;break;case"top":n.t+=o.t,n.h=20;break;case"right":n.l+=o.l+o.w-20+1,n.w=20;break;case"left":n.l+=o.l,n.w=20}var r=a.position(this.domNode);return n.l+=r.x,n.t+=r.y,p.constrainBox(n,{l:0,t:0,w:i.body().clientWidth,h:i.body().clientHeight}),n},_removeConnections:function(){this._connections&&(this._connections.forEach((function(e){e.remove()})),delete this._connections)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(227),i(213),i(206),i(257),i(248),i(216),i(215),i(387),i(2872)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([l,s],{templateString:d,buildRendering:function(){this.inherited(arguments),this.labelNode.textContent=this.label,i.setSelectable(this.domNode,!1),c.preventFocus(this.domNode,!0),c.preventDefaultContextMenu(this.domNode),c.setLocaleOnDomNode(this.domNode);var e=this;this.createMenu?(o(this.actionsNode,a.press,(function(i){r.isLeft(i)&&!e.menu&&(e.menu=e.createMenu(),e.menu.targetNodes=[e.actionsNode],e.menu.on("close",(function(){e.menuCloseCallback(),setTimeout((function(){e.menu.destroyRecursive(),delete e.menu}),0)})),e.menu.open({target:i.target}),t.stop(i))})),this.contextMenu=this.createMenu(!0),this.contextMenu.targetNodes=[this.domNode,this.labelNode],this.own(this.contextMenu)):n.set(this.actionsNode,{display:"none"})}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="mwTabGroupHeader">\n <span class="label" data-dojo-attach-point="labelNode"\n ></span><span class="actionsButton" data-dojo-attach-point="actionsNode"\n ></span>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(214),i(210),i(211),i(217),i(213),i(206),i(384),i(248),i(655),i(344),i(355),i(387),i(561),i(488),i(1726),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b=e([_],{animationEnabled:!0,showSingleChildTab:!0,tileByDragEnabled:!0,dragBetweenTilesEnabled:!0,userTilingEnabled:!0,_tabContainerCount:0,_tileUpdateDepth:0,tabContainerClass:m,constructor:function(){this._widgets={},this._properties={}},postMixInProperties:function(){this.offerSplitterRemoveButtons=this.userTilingEnabled,this.inherited(arguments);var e,t={tabPosition:"top",isContentBorderVisible:!1,tabReorderingEnabled:!0,tabsRepositioningEnabled:!0,tabWidthAdjustmentEnabled:!0,plusDropDownEnabled:!1,selectionHighlightingEnabled:!0,tabAnimationEnabled:!0};if(this.tabProperties)for(e in t)void 0===this.tabProperties[e]&&(this.tabProperties[e]=t[e]);else this.tabProperties=t},postCreate:function(){var e=this;this.inherited(arguments),this._addTabContainers(),this.watch("animationEnabled",(function(e,t,i){this._getTabContainers().forEach((function(e){e.set("tabAnimationEnabled",i)}))})),this.showSingleChildTab||this.watch(_.GRID_SIZE,(function(t,i,n){e._getTabContainers().forEach((function(t){t.set(m.HIDE_SINGLE_TAB,1===e._tileCount||!e.userTilingEnabled)}))}))},addWithProperties:function(e,t,i){this._isInternalAdd?this.inherited(arguments):(this._bindChildProperties(e,t),this.addChild(e,i))},addChild:function(e,t){var i,n,o;this._isInternalAdd?this.inherited(arguments):((i=this._properties[e.id])||(i=e,this._bindChildProperties(e,i)),v.assert(i.title,"No title specified for "+e.id),void 0===i.closable&&i.set("closable",!0),void 0===t&&(t=-1),this._pendingState&&((n=this._getTileForChildFromState(this._pendingState,i.childId||i.title))>=0?t=n:(t>=0&&t<this._tileCount&&(this._addToTabContainer(t,e,i,void 0,!0,!0===this._isAddingBack),o=!0),this.endStateRestore())),o||(t<0&&(t=void 0===i.tile||i.tile<0?this._chooseTile():i.tile),t=Math.max(0,Math.min(t,this._tileCount-1)),this._addToTabContainer(t,e,i,void 0,!0,!0===this._isAddingBack),this.isRestoringState()&&!this._areAnyTabContainersRestoringState()&&this.endStateRestore()),this._isAddingBack||this.emit(p.CHILD_ADDED,e,i),this.emit(p.STATE_CHANGED))},removeChild:function(e){if(this._isInternalRemove)this.inherited(arguments);else{var t=e.getParent();t&&t.removeChild(e,!0===this._isTemporaryRemove)}},removeAll:function(e){this._getTabContainers().forEach((function(t){t.removeAll(e)}))},isEmpty:function(){var e,t=!0,i=this._getTabContainers();for(e=0;e<i.length&&t;e++)t=i[e].isEmpty();return t},getEmptyTileCount:function(){var e,t=0,i=this._getTabContainers();for(e=0;e<i.length;e++)i[e].isEmpty()&&t++;return t},getGrandChildren:function(e){var t,i=[],n=this._getTabContainers(),o=this;for(t=0;t<n.length;t++)n[t].getChildrenInTabOrder().forEach((function(t){e&&!e(t,o._getProperties(t))||i.push(t)}));return i},getGrandChildCount:function(){var e,t=0,i=this._getTabContainers();for(e=0;e<i.length;e++)t+=i[e].getChildren().length;return t},eliminateEmptyTiles:function(){for(var e,t,i,n=!0;n;)if(n=!1,(t=this.getChildrenInTileOrder()).length>1)for(e=0;e<t.length;e++)if(t[e].isEmpty()&&(i=this.eliminateTile(e))){i.destroyRecursive(),n=!0;break}},_bindChildProperties:function(e,t){var i=[];if(this._isInternalAdd)this.inherited(arguments);else{this._widgets[e.id]=e,this._properties[e.id]=t,t.watch&&t.set&&t.get&&this._addChildWatches(e,t,i);var n=this._getUnbindingKey(e);t[n]=function(){i.forEach((function(e){e.remove()})),i=null,delete t[n]}}},_unbindChildProperties:function(e,t){var i=this._getUnbindingKey(e);t[i]&&t[i]()},_addChildWatches:function(e,t,i){var n=this,o=t.watch(h.TILE,(function(i,o,r){if(!n._tileUpdateDepth){var a=n._getTileContainingChild(e);if(r<0||r>=n._tileCount)n._tileUpdateDepth++,t.set(h.TILE,a),n._tileUpdateDepth--;else if(r!==a){var s=t.get(h.IS_SHOWING)||n.getChildInTile(r).isEmpty();n._suppressEmptyElimination=!0,n._moveChild(e,o,r,s),n._suppressEmptyElimination=!1}}}));i.push(o)},_getUnbindingKey:function(e){return"_"+this.id+e.id+"Unbind"},_createTabContainer:function(){var e=this;this.tabProperties.id=this.id+"TabContainer"+this._tabContainerCount++,this.tabProperties.hideSingleTab=!(this.showSingleChildTab||1!==this._tileCount&&this.userTilingEnabled);var t=new this.tabContainerClass(this.tabProperties);return t.own(n.around(t,"removeChild",(function(i){return function(n,o){var r=e._properties[n.id],a=r.get(h.IS_SELECTED);i.call(this,n,o||!e._interactiveClose,!1),e._handleChildRemove(e.getTileContaining(t),n,r,a)}}))),t.own(n.around(t,"closeChild",(function(t){return function(i,n,o){e._interactiveClose=o,t.call(this,i,n,o,!1),delete e._interactiveClose}}))),t.own(t.on(p.STATE_CHANGED,(function(){e.emit(p.STATE_CHANGED)}))),this.userTilingEnabled&&this.dragBetweenTilesEnabled&&t.own(t.on(p.DRAG_OUT,i.hitch(this,"_beginChildDrag",t))),t},_chooseTile:function(){var e,t=this.getChildrenInTileOrder();for(e=0;e<this._tileCount-1&&!t[e].isEmpty();e++);return e},_destroyTabContainer:function(e){e.destroyRecursive()},_addTabContainer:function(e,t){this._isInternalAdd=!0,this.addWithProperties(e,new c({tile:t,minimumWidth:100,minimumHeight:100})),this._isInternalAdd=!1},_removeTabContainer:function(e){this._isInternalRemove=!0;var t=this;this.getChildInTile(e).getChildren().forEach((function(e){f.saveScrollPosition(e,t._getProperties(e))}));var i=this.removeChildInTile(e,!1);return this._isInternalRemove=!1,i},_addToTabContainer:function(e,t,n,o,r,a){var s=this.getChildInTile(e);v.assert(s,"No tab container in tile"),n!==t?s.addWithProperties(t,n,o,r,a):s.addChild(t,o,r,a),n.tile!==e&&(this._tileUpdateDepth++,n.set(h.TILE,e),this._tileUpdateDepth--),!1!==r&&setTimeout(i.partial(f.restoreScrollPosition,t,n),0)},_getProperties:function(e){return this._properties[e.id]},_getTabContainers:function(){return this.getChildrenInTileOrder()},_getTileContainingChild:function(e){var t=e.getParent();return t?this.getTileContaining(t):-1},_updateTiles:function(){var e,t,i=this;for(this._tileUpdateDepth++,e=0;e<this._tileCount;e++)(t=this.getChildInTile(e))&&!t.isEmpty()&&t.getChildrenInTabOrder().forEach((function(t){i._getProperties(t).set(h.TILE,e)}));this._tileUpdateDepth--},_removeChildrenFromTabContainer:function(e,t,i){var n=this;this._isTemporaryRemove=!0,e.setSuppressSuccession(!0),e.getChildrenInTabOrder().forEach((function(o){n._removeChildFromTabContainer(o,e,t,i)})),e.setSuppressSuccession(!1),this._isTemporaryRemove=!1},_removeChildFromTabContainer:function(e,t,i,n){var o={widget:e,properties:this._getProperties(e)};n&&!n(o.widget,o.properties)||(i.push(o),f.saveScrollPosition(o.widget,o.properties),t.removeChild(e,!0))},_handleChildRemove:function(e,t,i,n){var o;this._isTemporaryRemove||this._destroyed||this._beingDestroyed||(this.getChildInTile(e).isEmpty()&&this._shouldEliminateEmptyTile()&&(o=this.eliminateTile(e))&&o.destroyRecursive(),this._unbindChildProperties(t,i),delete this._widgets[t.id],delete this._properties[t.id],this.emit(p.CHILD_REMOVED,t,i),this.emit(p.STATE_CHANGED))},_shouldEliminateEmptyTile:function(){return this.tileByDragEnabled&&!this._suppressEmptyElimination&&(this._tileCount<=3&&!this._childDragInfo||this._childDragInfo&&(this.getChildInTile(this._childDragInfo.tile).getChildrenInTabOrder().length>1||this._tileCount>this._childDragInfo.initialTileCount))},_prepareForGridSizeChange:function(e){var t,i,n,o,r=this,a={tabContainerInfo:this._children,childInfo:[]},s=e.w*e.h;if(2!==this._tileCount||2!==s){if(1===this._tileCount&&2===s&&(i=(t=a.tabContainerInfo[0].widget).get(m.SHOWING_CHILD))){for(a.splitIndex=Math.max(1,r._getProperties(i).get(h.INDEX)),this._isTemporaryRemove=!0,n=t.getChildrenInTabOrder(),o=a.splitIndex;o<n.length;o++)r._removeChildFromTabContainer(n[o],t,a.childInfo);this._isTemporaryRemove=!1}void 0===a.splitIndex&&(this._isTemporaryRemove=!0,a.tabContainerInfo.forEach((function(e){e&&r._removeChildrenFromTabContainer(e.widget,a.childInfo)})),this._isTemporaryRemove=!1)}return a},_reactToGridSizeChange:function(e){var t,i;for(this._addTabContainers(),t=this._tileCount;t<e.tabContainerInfo.length;t++)(i=e.tabContainerInfo[t])&&i.widget.domNode&&(i.widget.getParent()&&this._superRemoveChild(i.widget),i.widget.destroyRecursive());this._distributeChildrenFollowingGridSizeChange(e)},_distributeChildrenFollowingGridSizeChange:function(e){var t=this,i=e.splitIndex?1:0,n=0;e.childInfo.forEach((function(e){e&&(delete e.properties.index,t._addToTabContainer(i,e.widget,e.properties,void 0,!n,!0),n++,i<t._tileCount-1&&(i++,n=0))}))},_prepareForMerge:function(e,t){var i=this,n={removedTabContainers:[],removedChildren:[]};return t.forEach((function(e){var t=i.getChildInTile(e);n.removedTabContainers.push(t),i._removeChildrenFromTabContainer(t,n.removedChildren)})),n},_reactToMerge:function(e,t,i){var n=this,o=this.getChildInTile(e).isEmpty();i.removedChildren.forEach((function(t){delete t.properties.index,n._addToTabContainer(e,t.widget,t.properties,void 0,o,!0),o=!1})),this._updateTiles(),i.removedTabContainers.forEach((function(e){e.destroyRecursive()}))},_reactToSplit:function(e,t){var i,n,o,r,a,s,l;if(!this._suppressRedistribution)for(i=this._tileCellBox[e],n="vertical"===t?this._tileInCell[i.t+1][i.l]:this._tileInCell[i.t][i.l+1],this._addTabContainer(this._createTabContainer(),n),r=(o=this.getChildInTile(e)).get(m.SHOWING_CHILD),s=o.getChildrenInTabOrder(),a=Math.max(1,s.indexOf(r)),l=!0;a<s.length;a++)this._moveChild(s[a],e,n,l),l=!1;this._updateTiles()},_beginChildDrag:function(e,t){var n=t.setId?e.getSetMembersInTabOrder(t.setId):[t.widget];(this.getGrandChildren().length>n.length||this._tileCount>1)&&(this._childDragInfo={children:n,initialTileCount:this._tileCount,sourceContainer:e,startTile:this.getTileContaining(e),startX:t.mousePoint.x,startY:t.mousePoint.y,connections:[l(this.ownerDocument,d.move,i.hitch(this,"_continueChildDrag")),l(this.ownerDocument,d.release,i.hitch(this,"_endChildDrag"))]},g.blockUntilRelease(this.domNode))},_continueChildDrag:function(e){var t,n,o,r,l,c,d,h,p,f,g,m,_,v=this._childDragInfo;if(v.hasMoved||Math.abs(e.pageY-v.startY)>=10&&(v.hasMoved=!0,t=a.position(this.domNode),v.pageXOffset=t.x,v.pageYOffset=t.y),v.hasMoved&&(n=e.pageX-v.pageXOffset,o=e.pageY-v.pageYOffset,r=this._getCellFromPoint(n,o))){if(l=this._tileInCell[r.row][r.column],c=this.getTilePixelBox(l),h=(d=this.getChildInTile(l)).getChildrenInTabOrder(),p=d.getTabBar(),(f=a.getMarginBox(p.domNode)).l+=c.l,f.t+=c.t,d.isEmpty()||!this.tileByDragEnabled||1===h.length&&h[0]===v.children[0]||this.restrictToSingleSplit&&this._tileCount>1&&v.sourceContainer.getTabCount()>v.children.length||u.boxContains(f,n,o))g="center";else if(g=u.getNearestBorder(c,n,o,.25),this.getChildInTile(v.startTile).getTabCount()===v.children.length){var b=this.getAdjacency(v.startTile,l);b!==g&&b!==u.oppositeRegion(g)||(g="center")}l===v.tile&&g===v.border||(v.tile=l,v.border=g,m=i.clone(c),"top"===g||"bottom"===g?(_=m.h/2,m.h=_,"bottom"===g&&(m.t+=_)):"left"!==g&&"right"!==g||(_=m.w/2,m.w=_,"right"===g&&(m.l+=_)),v.targetIndicator||(this._addDropTargetIndicator(v),s.set(v.targetIndicator,{display:"block"})),a.setMarginBox(v.targetIndicator,m))}},_endChildDrag:function(e){var t,i,n,o,r,a=this,s=this._childDragInfo;if(s.hasMoved){if(s.startTile===s.tile&&"center"===s.border||"center"!==s.border&&(s.tile=this._splitTile(s.tile,s.border),s.startTile=this._getTileContainingChild(s.children[0])),r=!0,s.startTile!==s.tile&&(s.children.length>1&&(r=!1,t=this.getChildInTile(s.startTile).getChildrenInShowOrder()),s.children.forEach((function(e){a._moveChild(e,s.startTile,s.tile,r)})),s.children.length>1))for(o=s.children[0].getParent(),i=t.length-1;i>=0;i--)if(n=t[i],s.children.indexOf(n)>=0){o.showChild(n);break}this._removeDropTargetIndicator(s)}s.connections.forEach((function(e){e.remove()})),delete this._childDragInfo},_splitTile:function(e,t){var i,n,o=this._tileCellBox[e];return this._suppressRedistribution=!0,"top"===t||"bottom"===t?(this.splitTopBottom(o.t,o.l),i=this._tileInCell[o.t+1][o.l]):(this.splitLeftRight(o.t,o.l),i=this._tileInCell[o.t][o.l+1]),this._suppressRedistribution=!1,"top"===t||"left"===t?(this._addTabContainer(this._removeTabContainer(e),i),this._addTabContainer(this._createTabContainer(),e),n=e):(this._addTabContainer(this._createTabContainer(),i),n=i),n},_addDropTargetIndicator:function(e){e.targetIndicator=r.create("div",{id:this.domNode.id+"DropIndicatorBox"},this.domNode),o.add(e.targetIndicator,"dropIndicatorBox")},_removeDropTargetIndicator:function(e){e.targetIndicator&&(r.destroy(e.targetIndicator),delete e.targetIndicator)},_moveChild:function(e,t,i,n){var o,r=this.getChildInTile(t),a=this._getProperties(e);this._isTemporaryRemove=!0,f.saveScrollPosition(e,a),r.removeChild(e,!0),a.set(h.INDEX,void 0),this._isTemporaryRemove=!1,this._addToTabContainer(i,e,a,void 0,n,!0),r.isEmpty()&&this._shouldEliminateEmptyTile()&&(o=this.eliminateTile(t,i))&&o.destroyRecursive()},getState:function(){var e,t=this.inherited(arguments);for(t.tileOccupancy=[],t.tileOccupancy.length=this._tileCount,e=0;e<this._tileCount;e++)t.tileOccupancy[e]=this.getChildInTile(e).getState();return t},setState:function(e){var t,i,n,o,r=this;this._pendingState=e;var a=this._getTabContainers(),s=[],l=[];a.forEach((function(e){r._removeChildrenFromTabContainer(e,s)})),this.inherited(arguments),this.showSingleChildTab||this._getTabContainers().forEach((function(e){e.set(m.HIDE_SINGLE_TAB,1===r._tileCount||!r.userTilingEnabled)})),this._addTabContainers();var c=e.tileOccupancy||e.tileStates;if(c)for(o=0;o<Math.min(this._tileCount,c.length);o++)this.getChildInTile(o).setState(c[o]);for(a.forEach((function(e){e.getParent()||e.destroyRecursive()})),t=0;t<s.length;t++)i=(n=s[t]).properties.childId||n.properties.title,(o=this._getTileForChildFromState(e,i))>=0?this._addToTabContainer(o,n.widget,n.properties,void 0,!0,!0):l.push(n);if(l.length){for(t=0;t<l.length;t++)n=l[t],o=this._chooseTile(),this._addToTabContainer(o,n.widget,n.properties,void 0,!0,!0);this.endStateRestore()}this._areAnyTabContainersRestoringState()||delete this._pendingState},isRestoringState:function(){return!!this._pendingState},endStateRestore:function(){var e;for(delete this._pendingState,e=0;e<this._tileCount;e++)this.getChildInTile(e).endStateRestore()},_getTileForChildFromState:function(e,t){var i,n=e.tileOccupancy||e.tileStates;for(i=0;i<n.length;i++)if(m.stateIncludes(n[i],t))return i;return-1},_areAnyTabContainersRestoringState:function(){var e;for(e=0;e<this._tileCount;e++)if(this.getChildInTile(e).isRestoringState())return!0;return!1},_addTabContainers:function(){var e;for(e=0;e<this._tileCount;e++)this._children[e]||this._addTabContainer(this._createTabContainer(),e)},eliminateTile:function(){var e=this.inherited(arguments);return e&&this._updateTiles(),e},emit:function(e,t,i){(e===p.CHILD_ADDED||e===p.CHILD_REMOVED)&&t&&t.isInstanceOf(m)||this.inherited(arguments)}});return b.areStatesSimilar=function(e,t){if(!_.areStatesSimilar(e,t))return!1;var i,n,o,r,a,s;for(i=0;i<e.tileOccupancy.length;i++)for(n=e.tileOccupancy[i].children,o=t.tileOccupancy[i].children,r=0;r<n.length;r++){for(s=n[r].id||n[r].childId,a=0;a<o.length&&s!==(o[a].id||o[a].childId);a++);if(a===o.length)return!1}return!0},b.validateState=function(e){var t=_.validateState(e);return t.isValid&&e.tileOccupancy&&e.tileOccupancy.length>e.tileCount&&(t.isValid=!1,t.failureMessage="More tileOccupancy entries than tiles"),t},b}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(227),i(228),i(210),i(211),i(217),i(213),i(222),i(223),i(257),i(206),i(248),i(1038),i(464),i(1044),i(344),i(355),i(387),i(1723),i(882),i(1050),i(656),i(561),i(488),i(1045),i(209),i(562)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x){var N=e([I],{constructor:function(e){e.properties&&(this.isMaximizable=e.properties.isMaximizable)}}),L=e([g,T,E],{enableOnTopExpand:!0,constructor:function(){this.region="bottom"},buildRendering:function(){var e=this;this.inherited(arguments),r.add(this.domNode,"bottomContainer"),this._tabContainer=new y({isContentBorderVisible:!1,tabReorderingEnabled:!0,region:"center",distributeTabs:!0,tabAnimationEnabled:!1,tabClass:N}),this._tabContainer._tabBar.dragOffEdge="top",this._tabContainer._tabBar.entryExitEdge=null,this._tabContainer._tabBar.setGap=0,this.addChild(this._tabContainer),this._tabContainer.on(v.DRAG_OUT,(function(t){e.emit(v.DRAG_OUT,t)})),this._tabContainer.on(v.STATE_CHANGED,(function(t){e.emit(v.STATE_CHANGED,t)})),this._tabContainer.on(v.CHILD_ADDED,(function(t,i){i.watch&&(i._maximizeWatch=i.watch(_.IS_MAXIMIZED,(function(i,n,o){!e._switchingTabs&&e._started&&(o?C.maximizeGlobally(t):C.restoreGlobally(t))})))})),this._tabContainer.on(v.CHILD_REMOVED,(function(t,i){e._bottomBar&&e._bottomBar.cancelLoan(i),i._maximizeWatch&&(i._maximizeWatch.remove(),delete i._maximizeWatch),c.prototype.emit.apply(e,[v.CHILD_REMOVED,t,i])})),this._tabContainer.watch(w.SHOWING_CHILD,(function(t,i,n){if(i){var o=e._tabContainer.getChildProperties(i);o&&o.get(_.IS_MAXIMIZED)&&(e._switchingTabs=!0,o.set(_.IS_MAXIMIZED,!1),n&&e._tabContainer.getChildProperties(n).set(_.IS_MAXIMIZED,!0),e._switchingTabs=!1)}})),this.supportFooter?(this._footerContainer=new m({id:this.id+"FooterContainer",region:"bottom"}),r.add(this._footerContainer.domNode,"footerContainer"),l.set(this._footerContainer.domNode,{height:"22px"}),this.addChild(this._footerContainer),this.borderOptions&&!1===this.borderOptions.isCollapsible||(this._collapseAllButton=a.create("div",{id:this.id+"BottomCollapseAllButton",role:"button"}),r.add(this._collapseAllButton,"collapseButton"),o.set(this._collapseAllButton,"title",x.collapseBottomPanel),n.setSelectable(this._collapseAllButton,!1),b.preventFocus(this._collapseAllButton),this._footerContainer.setPostNeighbor(this._collapseAllButton),h(this._collapseAllButton,"click",(function(){e.emit(v.COLLAPSE_ALL)})),this.own(h(this._collapseAllButton,"keyup",i.hitch(this,"_collapseAllButtonKeyUpHandler"))),this.own(h(this._collapseAllButton,"keydown",i.hitch(this,"_collapseAllButtonKeyDownHandler"))),this.own(h(this._collapseAllButton,"focus",i.hitch(this,(function(){e._collapseAllButton.classList.add("collapseButtonFocused")})))),this.own(h(this._collapseAllButton,"blur",i.hitch(this,(function(){e._collapseAllButton.classList.remove("collapseButtonFocused")})))),this._collapseAllButton.tabIndex=-1)):r.add(this.domNode,"notSupportingFooter"),this.borderOptions&&!1===this.borderOptions.isCollapsible||(this._bottomBar=new f({id:this.id+"BottomBar",region:"bottom",animationEnabled:this.animationEnabled}),this.supportFooter||r.add(this._bottomBar.domNode,"notSupportingFooter"),this._buttonBar=this._bottomBar,this._collapseAllButton&&(this._bottomBar.collapseAllButton=this._collapseAllButton),this.enableOnTopExpand&&(this.collapsedWidget=this._bottomBar),this._bottomBar.on(v.DRAG_OUT,(function(t){t.widget=t.properties.widget,e.emit(v.DRAG_OUT,t)})),this._bottomBar.on(v.EXPAND_ALL,(function(){e.emit(v.EXPAND_ALL)})),this._bottomBar.on(v.STATE_CHANGED,(function(){e.emit(v.STATE_CHANGED)})))},getCollapseAllButton:function(){return this._collapseAllButton},addPanel:function(e,t){var i,n,o,r,a=[];if(this.isRestoringState()){var s=t?t.panelId:e.panelId;for(r=!0,n=0,a=this._stateToRestore.children||this._stateToRestore.panels,i=0;i<a.length;i++){if((o=a[i]).id===s){o.restored=!0,(o.showing||o.selected)&&(this._pendingShow=e);break}o.restored&&n++}n===a.length&&(this.endStateRestore(),n=void 0)}t?this._tabContainer.addWithProperties(e,t,n,!0,r):this._tabContainer.addChild(e,n,!0,r),this.isRestoringState()&&a.length===this.getPanelCount()&&this.endStateRestore(),(t=t||e).widget=e,this._bottomBar&&this._bottomBar.acceptLoan(this._tabContainer,t),this._updateSingeTabVisibility(),this.isContainerCollapsed()&&t.set(_.IS_SHOWING,!1),this.emit(v.CHILD_ADDED,e,t)},removePanel:function(e,t){this._tabContainer.removeChild(e,!0),this._updateSingeTabVisibility()},removeAll:function(){this._tabContainer.removeAll(),this._bottomBar&&this._bottomBar.removeAll()},getPanels:function(){return this._tabContainer.getChildrenInTabOrder()},getPanelProperties:function(){var e=this.getPanels(),t=[];t.length=e.length;for(var i=0;i<e.length;i++)t[i]=this._tabContainer.getChildProperties(e[i]);return t},getPanelCount:function(){return this._tabContainer.getTabCount()},revealChild:function(e){},nextChild:function(e,t,i){var n=this.getParent();return n&&n.isCollapsed&&n.isCollapsed("bottom")?this._tabContainer.nextChild(e,t):this._tabContainer.nextChild(e,t,i)},previousChild:function(e,t,i){var n=this.getParent();return n&&n.isCollapsed&&n.isCollapsed("bottom")?this._tabContainer.previousChild(e,t):this._tabContainer.previousChild(e,t,i)},getState:function(e){var t={children:[]},i=this._tabContainer;return i.getChildrenInTabOrder().forEach((function(n){var o=i.getChildProperties(n);if(e===o.setId){var r={id:o?o.panelId:n.panelId};n===i.get(w.SHOWING_CHILD)&&(r.showing=!0),t.children.push(r)}}),this),t},setState:function(e,t){var i,n,o,r=this._tabContainer,a=[],s=[];if((e.children||e.panels).length>0){var l=r.getChildrenInTabOrder();for(n=0;n<l.length;n++)o=l[n],(i=r.getChildProperties(o)).setId===t&&(this.removePanel(o,i),a.push(o),s.push(i));for(this._stateToRestore=e,n=0;n<a.length;n++)this.addPanel(a[n],s[n])}},isRestoringState:function(){return void 0!==this._stateToRestore},endStateRestore:function(){this._pendingShow&&(this._tabContainer.showChild(this._pendingShow),delete this._pendingShow),delete this._stateToRestore},isExpecting:function(e){return this._stateToRestore&&L.stateIncludes(this._stateToRestore,e)},setFooter:function(e){if(this._footer!==e){this._footer=e;var t=this.getParent();null===e?(this._bottomBar&&this._bottomBar.setFiller(null),this._footerContainer.setFiller(null)):t&&t.isCollapsed&&t.isCollapsed("bottom")?this._bottomBar&&this._bottomBar.setFiller(e):this._footerContainer.setFiller(e)}},getFooter:function(){return this._footer},_setHasNeighborAboveAttr:function(e){this._set("hasNeighborAbove",e),this._updateSingeTabVisibility(),this._tabContainer._tabBar.dragOffEdge=e?"top":null,this._collapseAllButton&&l.set(this._collapseAllButton,{visibility:e?"visible":"hidden"})},_updateSingeTabVisibility:function(){this._tabContainer.set(w.HIDE_SINGLE_TAB,!this.hasNeighborAbove||!!this._hasSinglePanelWithoutTitle())},_hasSinglePanelWithoutTitle:function(){if(1!==this._tabContainer.getTabCount())return!1;var e=this._tabContainer.getChildrenInTabOrder()[0];return e&&!this._tabContainer.getChildProperties(e).title},collapseChange:function(e){this.inherited(arguments),this._footer&&(e?(this._footerContainer.setFiller(null),this._bottomBar.setFiller(this._footer)):(this._bottomBar.setFiller(null),this._footerContainer.setFiller(this._footer)));var t=this._tabContainer.get(w.SHOWING_CHILD);t&&this._tabContainer.getChildProperties(t).set(_.IS_SHOWING,!e)},dragIn:function(e,t){var i;this.isOrWasContainerCollapsed(e)?(this._tabContainer.addWithProperties(e.widget,e.properties),this._bottomBar&&this._bottomBar.dragChildIn(this._tabContainer,e,t),i=!0):(this._tabContainer.dragIn(e,t),this._bottomBar&&this._bottomBar.acceptLoan(this._tabContainer,e.properties)),this.emit(v.CHILD_ADDED,e.widget,e.properties),i&&this.reCollapseContainer(e),this.isContainerCollapsed()&&e.properties.set(_.IS_SHOWING,!1)},_collapseAllButtonKeyUpHandler:function(e){e.keyCode===d.SPACE&&(e.preventDefault(),this._collapseBottomContainer())},_collapseAllButtonKeyDownHandler:function(e){e.keyCode===d.ENTER&&this._collapseBottomContainer()},_collapseBottomContainer:function(){var e,t,i=this;for(e=this;!e||!e.selectionManager;)e=e.getParent();(t=e.selectionManager).blockSuccession(),i.emit(v.COLLAPSE_ALL),setTimeout((function(){t.unblockSuccession(),i._bottomBar&&i._bottomBar.getPostNeighbor&&(i._bottomBar.getPostNeighbor().tabIndex=-1,i._bottomBar.getPostNeighbor().focus())}),400)}});return L.stateIncludes=function(e,t){var i,n=e.children||e.panels;if(!n)return!1;for(i=0;i<n.length;i+=1){if((n[i].id||n[i].panelId)===t)return!0}return!1},L}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(356),i(204),i(242),i(214),i(206),i(210),i(211),i(217),i(213),i(257),i(248),i(344),i(355),i(387),i(1050),i(1045),i(1715)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e(null,{constructor:function(){this._containers=[]},attach:function(e){this._containers.push(e);var t=this;e.on(f.DRAG_OUT,n.hitch(this,"_handleDragOut",e)),e.panelDraggerConnections=[r.after(e,"destroy",(function(){t.detach(e)}))]},detach:function(e){e.panelDraggerConnections.forEach((function(e){e.remove()})),this._containers.splice(this._containers.indexOf(e),1)},_handleDragOut:function(e,t){if(this._isDragOutPermitted(t,e.region)){this._originInfo||(this._originInfo=t,this._originInfo.container=e,this._originInfo.region=e.region,this._originInfo.wasCollapsed=e.isContainerCollapsed(),this._originInfo.freeDimension=e.getParent().getNonCollapsedFreeDimension(e.region),this._originInfo.containerSize=e.getDragInBox(),this._originInfo.focusedElement=document.activeElement),e.removePanel(t.widget,t.properties),this._titledPane=new v({id:t.widget.id+"_TitledPane",contentWidget:t.widget,contentProperties:t.properties}),l.place(this._titledPane.domNode,o.body()),this._titledPane.startup(),t.properties.set(p.IS_SHOWING,!0),d.set(this._titledPane.domNode,"position","absolute"),s.add(this._titledPane.domNode,"onTopPane");var i=t.mousePoint,r=n.clone(this._originInfo.box),c=_.getPreferredHeight();r.t=i.y-c/2,r.l=i.x-r.w/2,r.w+=2,r.h+=c+2,this._positionPanel(r),this._initialMousePoint=i,this._initialBox=r,this._moveConnection=a(e.ownerDocument,h.move,n.hitch(this,"_continueDrag")),this._releaseConnection||(this._releaseConnection=a(e.ownerDocument,h.release,n.hitch(this,"_endDrag"))),this._reselectPanel()}},_reselectPanel:function(){this._originInfo&&this._originInfo.widget&&this._originInfo.widget.properties&&this._originInfo.widget.properties.set("isSelected",!0)},_refocusPanel:function(){this._originInfo&&this._originInfo.focusedElement&&this._originInfo.focusedElement.focus()},_hidePanel:function(){o.body().removeChild(this._titledPane.domNode),this._titledPane.destroy(),delete this._titledPane},_positionPanel:function(e){this._titledPane.resize(e),this._currentBox=e},_continueDrag:function(e){var t,i,o,r;for(i=0;i<this._containers.length;i+=1)if(o=this._containers[i],this._isDragInPermitted(this._originInfo,o.region)&&(r=o.getDragInBox()).l<e.pageX&&e.pageX<r.l+r.w&&r.t<e.pageY&&e.pageY<r.t+r.h)return this._stopDragEvents(),this._hidePanel(),o.dragIn(this._originInfo,{x:e.pageX,y:e.pageY}),this._reselectPanel(),this._refocusPanel(),void this._clearDragInfo();(t=n.clone(this._initialBox)).l+=e.pageX-this._initialMousePoint.x,t.t+=e.pageY-this._initialMousePoint.y,this._positionPanel(t)},_clearDragInfo:function(){delete this._initialMousePoint,delete this._initialBox},_clearOriginInfo:function(){delete this._originInfo},_stopDragEvents:function(){this._moveConnection&&(this._moveConnection.remove(),delete this._moveConnection)},_endDrag:function(){if(this._titledPane&&this._originInfo){this._stopDragEvents();var e=this;this._initialBox=this._currentBox;var t=new i.Animation({curve:[0,1],onAnimate:function(t){var i;e._initialBox&&((i=n.clone(e._initialBox)).l+=Math.floor(t*(e._originInfo.box.l-i.l)),i.t+=Math.floor(t*(e._originInfo.box.t-i.t)),e._positionPanel(i))},onEnd:function(){e._hidePanel(),e._originInfo.container.dragIn(e._originInfo),e._reselectPanel(),e._refocusPanel(),e._clearDragInfo(),e._clearOriginInfo()}});g.isAnimationEnabled()?t.play():t.onEnd()}else this._clearOriginInfo();this._releaseConnection.remove(),delete this._releaseConnection},_isDragOutPermitted:function(e,t){var i,n=e.properties.permissibleRegions;if(n){for(i=0;i<n.length;i++)if(n[i]!==t)return!0;return!1}return!0},_isDragInPermitted:function(e,t){var i=e.properties.permissibleRegions;return e.region===t||!i||i.indexOf(t)>0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(228),i(210),i(211),i(213),i(222),i(223),i(206),i(386),i(2877),i(1038),i(1725),i(344),i(355),i(387),i(1050),i(656),i(488),i(209),i(562)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){var T=e([u,p],{borrowChild:function(e){var t,i=this._panelIndexFromProperties(e);return i>=0?(t=this._panelInfo[i],this._superRemoveChild(t.widget),a.set(t.widget.domNode,"display","block"),t.widget):null},returnChild:function(e){var t,i=this._panelIndexFromProperties(e);i>=0&&((t=this._panelInfo[i]).isCollapsed&&a.set(t.widget.domNode,"display","none"),this._superAddChild(t.widget))},_superAddChild:function(e){d.prototype.addChild.apply(this,[e])},_superRemoveChild:function(e){d.prototype.removeChild.apply(this,[e])}}),E=e([b,_],{enableOnTopExpand:!0,constructor:function(){this.isContentBorderVisible=!1,this.tabPosition="bottom",this.hideSingleTab=!0,this.set(b.SHOWING_TAB_BACKGROUND,"rgb(245,245,245)"),this.set(b.TAB_BACKGROUND,"rgb(230,230,230)"),this._setInfo={}},postMixInProperties:function(){var e=this;this.inherited(arguments),y.assert(this.region,"No region specified for SideContainer"),this.borderOptions&&!1===this.borderOptions.isCollapsible||(this._sideBar=new h({id:this.id+"SideBar",region:this.region,animationEnabled:this.animationEnabled}),this._buttonBar=this._sideBar,this.enableOnTopExpand&&(this.collapsedWidget=this._sideBar),this._sideBar.on(g.DRAG_OUT,(function(t){t.widget=t.properties.widget,e.emit(g.DRAG_OUT,t)})),this._sideBar.on(g.STATE_CHANGED,(function(){e.emit(g.STATE_CHANGED)})))},buildRendering:function(){this.inherited(arguments),o.add(this.domNode,"sideContainer"),o.add(this.domNode,this.region+"SideContainer"),this.reserveSpaceForTabs||o.add(this.domNode,"tabSpaceNotReserved");var e=this;this.borderOptions&&!1===this.borderOptions.isCollapsible||(this.reserveSpaceForTabs&&(this._collapseAllButton=r.create("div",{id:this.id+"CollapseAllButton",role:"button"},this.domNode),o.add(this._collapseAllButton,"collapseButton"),n.set(this._collapseAllButton,"title",C.collapseSidePanel),i.setSelectable(this._collapseAllButton,!1),m.preventFocus(this._collapseAllButton),this._collapseAllButton.tabIndex=-1,this._sideBar.collapseAllButton=this._collapseAllButton,c(this._collapseAllButton,"click",(function(){e.emit(g.COLLAPSE_ALL)})),this.own(c(this._collapseAllButton,"keyup",t.hitch(this,"_collapseAllButtonKeyUpHandler"))),this.own(c(this._collapseAllButton,"keydown",t.hitch(this,"_collapseAllButtonKeyDownHandler"))),this.own(c(this._collapseAllButton,"focus",(function(){this.classList.add("collapseButtonFocused")}))),this.own(c(this._collapseAllButton,"blur",(function(){this.classList.remove("collapseButtonFocused")}))),"left"===this.region?this._tabBar.setPreNeighbor(this._collapseAllButton):this._tabBar.setPostNeighbor(this._collapseAllButton)),this._sideBar.on(g.EXPAND_ALL,(function(){e.emit(g.EXPAND_ALL)})))},addPanel:function(e,t){var i=this._getSetInfo(t.setId);if(t.widget=e,!i.container&&(this._createAccordionContainer(i),this._addAccordionContainer(i),i.pendingShowSetId)){var n=this._setInfo[i.pendingShowSetId];n&&n!==i&&n.container&&this.showChild(n.container),delete i.pendingShowSetId}if(this._sideBar){var o=t.index;t.index=void 0,this._sideBar.acceptLoan(i.container,t||e),t.index=o}t?i.container.addWithProperties(e,t,t.index):i.container.addChild(e),this.isContainerCollapsed()&&t.set(f.IS_SHOWING,!1)},removePanel:function(e,t){var i=this._getSetInfo(t.setId).container;i&&i.removeChild(e)},removeAll:function(){var e,t,i,n=Object.keys(this._setInfo);for(e=0;e<n.length;e++)t=n[e],(i=this._setInfo[t]).container&&i.container.removeAll(),delete this._setInfo[t];this._sideBar&&this._sideBar.removeAll()},getPanels:function(){var e,t,i,n=Object.keys(this._setInfo),o=[];for(e=0;e<n.length;e++)t=n[e],(i=this._setInfo[t]).container&&(o=o.concat(i.container.getPanels()));return o},getPanelProperties:function(){var e,t,i,n=Object.keys(this._setInfo),o=[];for(e=0;e<n.length;e++)t=n[e],(i=this._setInfo[t]).container&&(o=o.concat(i.container.getPanelProperties()));return o},getPanelCount:function(){var e,t,i,n=Object.keys(this._setInfo),o=0;for(e=0;e<n.length;e++)t=n[e],(i=this._setInfo[t]).container&&(o+=i.container.getPanels().length);return o},removePanelSet:function(e){var t=this._setInfo[e];t&&t.container&&(t.containerState=t.container.getState(),t.container.getParent()&&(this.removeChild(t.container),t.container.removeAll(),t.container.destroyRecursive(),delete t.container))},revealChild:function(e){},nextChild:function(e,t){var i,n,o,r=this.get(b.SHOWING_CHILD);return r&&((i=r.nextChild(e,t))||t||(n=this.getChildrenInTabOrder()).length>1&&((o=n.indexOf(r)+1)>=n.length&&(o=0),i=n[o].nextChild(null,t))),i},previousChild:function(e,t){var i,n,o,r=this.get(b.SHOWING_CHILD);return r&&((i=r.previousChild(e,t))||t||(n=this.getChildrenInTabOrder()).length>1&&((o=n.indexOf(r)-1)<0&&(o=n.length-1),i=n[o].previousChild(null,t))),i},getState:function(e){e=e||"global";var t=this._setInfo[e],i={};if(t)if(t.container){i.children=t.container.getState();var n=this.get(b.SHOWING_CHILD);n&&(i.showingSetId=n.setInfo.id)}else t.containerState&&(i.children=t.containerState);return i},setState:function(e,t){t=t||"global";var i=this._getSetInfo(t),n=e.children||e.panels;n&&(i.container?i.container.setState(n):(i.containerState=n,i.pendingShowSetId=e.showingSetId))},isRestoringState:function(){var e=this._setInfo.global;return!(!e||!(e.containerState||e.container&&e.container.isRestoringState()))},isExpecting:function(e){var t,i,n,o=Object.keys(this._setInfo);for(t=0;t<o.length;t++)if(i=o[t],(n=this._getSetInfo(i)).container&&n.container.isExpecting(e)||n.containerState&&u.stateIncludes(n.containerState,e))return!0;return!1},_getSetInfo:function(e){e=e||"global";var t=this._setInfo[e];return t||(t={id:e},this._setInfo[e]=t),t},_createAccordionContainer:function(e){var t,i,n=this;this.panelSetTitles&&(i=this.panelSetTitles[e.id]),i||(i=e.id),(t=new T({id:this.id+("global"===e.id?"":e.id)+"AccordionContainer",region:this.region,title:i,setInfo:e})).on(g.DRAG_OUT,(function(e){n.emit(g.DRAG_OUT,e)})),t.on(g.CHILD_ADDED,(function(e,t){s.prototype.emit.apply(n,[g.CHILD_ADDED,e,t])})),t.on(g.CHILD_REMOVED,(function(i,o){n._sideBar&&n._sideBar.cancelLoan(o),t.isEmpty()&&(n.removeChild(t,!0),t.destroyRecursive(),delete e.container),s.prototype.emit.apply(n,[g.CHILD_REMOVED,i,o])})),t.on(g.STATE_CHANGED,(function(e){n.emit(g.STATE_CHANGED,e)})),t.watch(f.IS_SHOWING,(function(e,i,o){n._updateChildren(t,o)})),e.containerState&&(t.setState(e.containerState),delete e.containerState),this._collapseAllButton&&t.addExtraNavigationTarget(this._collapseAllButton),e.container=t},_addAccordionContainer:function(e){"global"===e.id?this.addChild(e.container,0,!0,!0):this.addChild(e.container,void 0,!0,!0)},collapseChange:function(e){this.inherited(arguments);var t=this.get(b.SHOWING_CHILD);t&&this._updateChildren(t,!e)},_updateChildren:function(e,t){e.getPanelProperties().forEach((function(e){e.get(f.IS_COLLAPSED)||e.set(f.IS_SHOWING,t)}))},dragIn:function(e,t){var i=e.properties,n=this._getSetInfo(i.setId);n.container||(this._createAccordionContainer(n),this._addAccordionContainer(n)),this.isOrWasContainerCollapsed(e)?(n.container.addWithProperties(e.widget,i),this._sideBar&&this._sideBar.dragChildIn(n.container,e,t),this.reCollapseContainer(e)):(this.showChild(n.container),n.container.dragIn(e,t),this._sideBar&&this._sideBar.acceptLoan(n.container,i)),this.isContainerCollapsed()&&e.properties.set(f.IS_SHOWING,!1)},on:function(e,t){return s.prototype.on.apply(this,[e,t])},emit:function(e,t){e!==g.CHILD_ADDED&&e!==g.CHILD_REMOVED&&this.inherited(arguments)},_collapseAllButtonKeyUpHandler:function(e){e.keyCode===l.SPACE&&(e.preventDefault(),this._collapseSideContainer())},_collapseAllButtonKeyDownHandler:function(e){e.keyCode===l.ENTER&&this._collapseSideContainer()},_collapseSideContainer:function(){var e,t,i=this;for(e=this;!e||!e.selectionManager;)e=e.getParent();(t=e.selectionManager).blockSuccession(),i.emit(g.COLLAPSE_ALL),setTimeout((function(){t.unblockSuccession(),i.collapsedWidget.getPostNeighbor&&(i.collapsedWidget.getPostNeighbor().tabIndex=-1,i.collapsedWidget.getPostNeighbor().focus())}),400)}});return E.DEFAULT_PANEL_SET_ID="global",E.stateIncludes=function(e,t){var i=e.children||e.panels;return i&&u.stateIncludes(i,t)},E}),e,t),e.exports=o},function(e,t,n){var o,r;o=[n(203),n(246),n(204),n(356),n(771),n(206),n(227),n(210),n(211),n(217),n(213),n(222),n(221),n(223),n(257),n(248),n(238),n(386),n(1288),n(881),n(344),n(355),n(387),n(882),n(656),n(561),n(773),n(774),n(1045)],r=n.dj.d(o,(function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N){var L=e([v,h,w,x,y,S],{_:void 0,animationEnabled:!0,autoCollapseEnabled:!0,dragOutEnabled:!1,baseClass:"accordionContainer",constructor:function(){this._panelInfo=[],this._extraNavigationTargets=[],this._shouldBlockSuccession=!1},buildRendering:function(){this.inherited(arguments),l.add(this.domNode,"mwLayoutContainer")},addExtraNavigationTarget:function(e){this._extraNavigationTargets[this._extraNavigationTargets.length]=e},startup:function(){if(!this._started){var e=this;this.getChildren().forEach((function(t){e._setupChild(t)}));for(var t=0;t<this._extraNavigationTargets.length;t++)this.own(a(this._extraNavigationTargets[t],"keydown",n.hitch(this,"_keydownHandler",void 0)));if(this.getParent){for(var i=this.getParent();i&&!i.selectionManager;)i=i.getParent();i&&i.selectionManager&&(this.selectionManager=i.selectionManager)}this.inherited(arguments);var o=this.getState();this._pendingState&&o.length>0&&(this._restoreState(this._getPendingStateToRestoreAtStartup(o)),this.emit(T.STATE_CHANGED))}},_childrenRestored:function(e){this._pendingChildrenCount-=e.length,0===this._pendingChildrenCount&&this.endStateRestore()},_getPendingStateToRestoreAtStartup:function(e){e.sort((e,t)=>{var i=e.id||e.panelId,n=t.id||t.panelId;return i in this._pendingChildrenInfo&&n in this._pendingChildrenInfo?this._pendingChildrenInfo[i].idx-this._pendingChildrenInfo[n].idx:i in this._pendingChildrenInfo?1:-1});var t=[];return e.forEach((i,n)=>{var o=i.id||i.panelId;o in this._pendingChildrenInfo&&(t.push(o),this._pendingChildrenInfo[o].restored=!0,e[n]=this._pendingState[this._pendingChildrenInfo[o].idx])}),this._childrenRestored(t),e},addWithProperties:function(e,t,i){var o=this._createPanelInfo(e);t!==e?n.mixin(o,t):this._getInfoFromWidget(e,o),this._bindChildProperties(o,t),void 0===t.isCollapsible&&(o.isCollapsible=!!t.title),void 0===i||i<0||i>this._panelInfo.length?this._panelInfo.push(o):this._panelInfo.splice(i,0,o),this.addChild(e)},_getPendingStateToRestore:function(e,t){if(!(e in this._pendingChildrenInfo)||this._pendingChildrenInfo[e].restored)return t;var i={};return t.forEach((n,o)=>{var r=n.id||n.panelId;i[r]=o,r===e&&(t[o]=this._pendingState[this._pendingChildrenInfo[r].idx])}),t.sort((t,n)=>{var o=t.id||t.panelId,r=n.id||n.panelId;return o===e||r===e?o in this._pendingChildrenInfo&&r in this._pendingChildrenInfo?this._pendingChildrenInfo[o].idx-this._pendingChildrenInfo[r].idx:o===e?1:-1:i[o]-i[r]}),this._pendingChildrenInfo[e].restored=!0,this._childrenRestored([e]),t},addChild:function(e,t){var i=this._getPanelInfoFromDomId(e.id);if(i?e.title||(e.title=i.title):(i=this._createPanelInfo(e),void 0===t||t<0||t>this._panelInfo.length?this._panelInfo.push(i):this._panelInfo.splice(t,0,i),this._getInfoFromWidget(e,i)),this._bindChildProperties(i,e),void 0!==i.preferredHeight&&i.preferredHeight>0&&i.preferredHeight<1&&(i.portion=i.preferredHeight),this.inherited(arguments),this._updateCollapseControlVisibility(),this.emit(T.CHILD_ADDED,i.widget,i.properties),this._started){if(this._pendingState){var n=this._getPendingStateToRestore(i.id||i.panelId,this.getState());this._restoreState(n)}else this.layout();this.emit(T.STATE_CHANGED)}this._updatePanelIndices()},_setupChild:function(e){var t,i,o,r;if(this.inherited(arguments),u.set(e.domNode,"position","absolute"),(t=this._getPanelInfoFromDomId(e.id))&&!t.childWasSetup){t.childWasSetup=!0,void 0!==t.preferredHeight&&(t.preferredHeight>1?t.initialHeight=t.preferredHeight:t.preferredHeight<=0&&(t.initialHeight=u.get(e.domNode,"height"))),t.splitterNode=c.create("div",{id:this.id+e.id+"Splitter"},this.domNode),l.add(t.splitterNode,"splitter"),s.setSelectable(t.splitterNode,!1),E.preventFocus(t.splitterNode,!0),this._splitterThickness||(this._splitterThickness=Math.round(u.get(t.splitterNode,"height"))),0===this._panelInfo.indexOf(t)&&u.set(t.splitterNode,"display","none"),(o=t.properties.title)&&(t.titleBar=new N({id:e.id+"TitleBar",properties:t.properties,title:o,isCollapsible:t.isCollapsible&&this._panelInfo.length>1,isMaximizable:t.properties.isMaximizable}),c.place(t.titleBar.domNode,this.domNode),t.titleBar.connections=[a(t.titleBar.toggleNode,"click",n.hitch(this,"_toggleCollapse",t)),a(t.titleBar.domNode,m.press,n.hitch(this,"_beginTitleDrag",t))],t.titleBar.titleButton.setAttribute("tabindex",-1),t.widget.navAssociation=t.titleBar.titleButton,t.widget.preventContentFocusOnKeyNav=!0,t.widget.sideBarExpandedNavAssociation=t.titleBar.titleButton,t.titleBar.titleButton.setAttribute("aria-controls",t.widget.id),r=t.widget.id+"TitleButton",t.titleBar.titleButton.setAttribute("id",r),t.widget.domNode.setAttribute("aria-labelledby",r),t.widget.domNode.setAttribute("role","region"),this.own(a(t.titleBar.domNode,"keydown",n.hitch(this,"_keydownHandler",t))),this.own(a(t.titleBar.titleButton,"keyup",n.hitch(this,"_keyUpHandler",t))),this.own(a(t.titleBar.titleButton,"focus",(function(){t.titleBar.domNode.classList.add("focusWithinTitleBar")}))),this.own(a(t.titleBar.titleButton,"blur",(function(){t.titleBar.domNode.classList.remove("focusWithinTitleBar")}))),this.own(a(t.titleBar.actionsNodeWrapper,"focus",(function(){t.titleBar.domNode.classList.add("focusWithinTitleBar")}))),this.own(a(t.titleBar.actionsNodeWrapper,"blur",(function(){t.titleBar.domNode.classList.remove("focusWithinTitleBar")})))),i=c.create("div",{id:e.domNode.id+"SplitterLine"},t.splitterNode),l.add(i,"splitterLine"),s.setSelectable(i,!1),E.preventFocus(i,!0),this._visibleSplitterThickness||(this._visibleSplitterThickness=Math.round(u.get(i,"height")),this._splitterOverlap=Math.round(u.get(t.splitterNode,"padding-top")));var d=n.hitch(this,"_beginSplitterDrag",t),h=function(e){e.preventDefault()};a(t.splitterNode,m.press,d),a(t.splitterNode,"contextmenu",h)}},removeChild:function(e){var t,i,n=this._panelIndexFromDomId(e.id);n>=0&&(t=this._panelInfo[n],this._titleDragInfo&&this._endTitleDrag(!0),t.splitterNode&&c.destroy(t.splitterNode),t.titleBar&&t.titleBar.destroyRecursive(),t.properties&&(i=t.properties,t.unbindChildProperties()),this._panelInfo.splice(n,1),this.inherited(arguments),i&&(i.set(C.IS_COLLAPSED,!1),i.set(C.IS_EXPANDED,!1)),this._updateCollapseControlVisibility(),this._updatePanelIndices(),this.emit(T.CHILD_REMOVED,e,i),this._started&&(this.layout(),this.emit(T.STATE_CHANGED)),E.restoreStyle(e))},getPanels:function(){var e,t=[];for(t.length=this._panelInfo.length,e=0;e<this._panelInfo.length;e++)t[e]=this._panelInfo[e].widget;return t},getPanelProperties:function(){var e,t=[];for(t.length=this._panelInfo.length,e=0;e<this._panelInfo.length;e++)t[e]=this._panelInfo[e].properties;return t},isEmpty:function(){return 0===this._panelInfo.length},removeAll:function(e){for(var t;this._panelInfo.length>0;)t=this._panelInfo[this._panelInfo.length-1].widget,this.removeChild(t),e&&t.destroyRecursive()},on:function(e){return e===T.DRAG_OUT&&(this.dragOutEnabled=!0),this.inherited(arguments)},collapse:function(e){var t=this._getPanelIndex(e);t>=0&&this._collapse(this._panelInfo[t])},isCollapsed:function(e){var t=this._getPanelIndex(e);return t>=0&&this._panelInfo[t].isCollapsed},expand:function(e){var t=this._getPanelIndex(e);t>=0&&this._expand(this._panelInfo[t])},isExpanded:function(e){var t=this._getPanelIndex(e);return t>=0&&this._panelInfo[t]===this._expandedInfo},restore:function(e){var t=this._getPanelIndex(e);t>=0&&this._restore(this._panelInfo[t])},revealChild:function(e){this.isCollapsed(e)&&this.restore(e)},nextChild:function(e,t){var i=this._panelInfo.length;if(!i)return null;var n,o=e?this._getPanelIndex(e):-1;if(-1===o)for(var r=0;r<this._panelInfo.length;r+=1)this._panelInfo[r].widget&&this._panelInfo[r].properties&&!0===this._panelInfo[r].properties.get(C.IS_SELECTED)&&(e=this._panelInfo[r].widget,o=this._getPanelIndex(e));for(o++;o<i;o++)if(n=this._panelInfo[o],(!t||!n.isCollapsed)&&n.widget&&n.properties&&!n.properties.get(C.IS_SELECTED))return n.widget;return null},previousChild:function(e,t){var i=this._panelInfo.length;if(!i)return null;var n,o=e?this._getPanelIndex(e):i;for(o--;o>=0;o--)if(n=this._panelInfo[o],!t||!n.isCollapsed)return n.widget;return null},isShowingLocally:function(e){return e.getParent()===this&&!this.isCollapsed(e)},canMaximizeLocally:function(e){if(this._panelInfo.length<2)return!1;var t=this._getPanelIndex(e);return t>=0&&this._panelInfo[t]!==this._expandedInfo&&this._panelInfo[t]!==this._expandingInfo},canRestoreLocally:function(e){var t=this._getPanelIndex(e);return t>=0&&(this._panelInfo[t]===this._expandedInfo||this._panelInfo[t]===this._expandingInfo)},maximizeLocally:function(e){this.expand(e)},restoreLocally:function(e){this.restore(e)},setPortions:function(e){var t,i=Math.min(e.length,this._panelInfo.length);for(t=0;t<i;t+=1)this._panelInfo[t].portion=e[t];this.layout()},getState:function(){var e,t,i=[];for(i.length=this._panelInfo.length,e=0;e<this._panelInfo.length;e+=1)t=this._panelInfo[e],i[e]={id:t.panelId,collapsed:!!t.explicitlyCollapsed},void 0!==t.portion&&(i[e].portion=t.portion);return i},setState:function(e){this._started&&this._isPopulatedPerState(e)?this._restoreState(e):(this._pendingState=e,this._pendingChildrenInfo={},this._pendingChildrenCount=e.length,e.forEach((e,t)=>{var i=e.id||e.panelId;this._pendingChildrenInfo[i]={restored:!1,idx:t}}))},isRestoringState:function(){return void 0!==this._pendingState},endStateRestore:function(){delete this._pendingState,delete this._pendingPanelsCount,delete this._pendingPanelsInfo},isExpecting:function(e){return this._pendingState&&L.stateIncludes(this._pendingState,e)},resize:function(){this.computedStyle||(this.computedStyle=u.getComputedStyle(this.domNode)),this.inherited(arguments),this._updatePanelInnerBounds()},_updatePanelInnerBounds:function(){this._panelInfo.forEach(e=>{e.properties&&e.properties.updateInnerBounds&&e.properties.updateInnerBounds()})},layout:function(){if(this._started&&this.domNode){var e,t,i,o,a,s,l,c,u,h=this._panelInfo.length,p=(new Date).valueOf();if(0!==h&&!this._titleDragInfo){var f=d.getContentBox(this.domNode,this.computedStyle);if(f&&0!==f.h){var g=this._calculateAllHeights(f.h<=this._lastLayoutHeight),m=!1;for(e=0;e<h&&!m;e++)o=this._panelInfo[e],((a=0===g[e])&&!o.isCollapsed&&!this._isCollapsing(o)||!a&&o.isCollapsed&&!this._isRestoring(o))&&(m=!0);if(m&&this.animationEnabled&&E.isAnimationEnabled()){for(e=0;e<h;e++)o=this._panelInfo[e],(a=0===g[e])&&o.isCollapsed||(o.animationStartHeight=o.isCollapsed?0:d.getMarginBox(o.widget.domNode).h,o.animationHeightChange=g[e]-o.animationStartHeight,o.animationStartTime=p,o.animationDuration=b.computeDuration(o.animationHeightChange));this._animationTimer||(this._animationTimer=setInterval(()=>{this.layout()},b.UPDATE_INTERVAL))}for(t=n.clone(f),s=!1,e=0;e<h;e++)o=this._panelInfo[e],(i=n.clone(t)).t-=o.titleBar?this._splitterThickness/2:this._splitterOverlap,i.h=this._splitterThickness,d.setMarginBox(o.splitterNode,i),e>0&&(t.t+=o.titleBar?0:this._visibleSplitterThickness),o.titleBar&&(t.h=N.getPreferredHeight(),d.setMarginBox(o.titleBar.domNode,t),t.t+=t.h),o.animationStartTime&&((u=p-o.animationStartTime)>=o.animationDuration?(delete o.animationStartTime,delete o.animationDuration,delete o.animationStartHeight,delete o.animationHeightChange):(s=!0,g[e]=o.animationStartHeight+o.animationHeightChange*r.cubicInOut(u/o.animationDuration))),0===g[e]?o.isCollapsed||(this._finishCollapse(o),l=!0):o.isCollapsed&&(this._finishRestore(o),this._animationTimer?this._animatingRestore=!0:c=!0),o.isCollapsed||(t.h=g[e],E.setSize(o.widget,t),this._splitterDragInfo&&o.initialHeight&&o.initialHeight!==g[e]&&(o.userAdjustedHeight=!0),t.t+=t.h,(!o.animationStartTime||o.animationHeightChange>0)&&(o.lastRestoredHeight=t.h));if(this._animationTimer&&!s&&(this._animatingRestore&&(c=!0,delete this._animatingRestore),clearInterval(this._animationTimer),delete this._animationTimer,this._animationDoneResponse&&(this._animationDoneResponse(),delete this._animationDoneResponse)),!this._animationTimer&&this._expandingInfo)this._expandedInfo=this._expandingInfo,delete this._expandingInfo,this._expandedInfo.properties.set(C.IS_EXPANDED,!0);else if(this._expandedInfo){var _=!1;for(e=0;e<this._panelInfo.length&&!_;e++){var v=this._panelInfo[e];_=v!==this._expandedInfo&&v.isCollapsible&&!v.isCollapsed}if(_||this._expandedInfo.isCollapsed){var y=this._expandedInfo.properties;delete this._expandedInfo,_&&this._panelsCollapsedPriorToExpand&&delete this._panelsCollapsedPriorToExpand,y.set(C.IS_EXPANDED,!1)}}this._lastLayoutHeight=f.h,(l||c)&&this.emit(T.STATE_CHANGED)}else this._terminateAnimations()}}},_terminateAnimations:function(){if(this._animationTimer){clearInterval(this._animationTimer),delete this._animationTimer;for(var e=0;e<this._panelInfo.length;e++){var t=this._panelInfo[e];this._isCollapsing(t)?this._finishCollapse(t):this._isRestoring(t)&&this._finishRestore(t),delete t.animationStartTime,delete t.animationDuration,delete t.animationStartHeight,delete t.animationHeightChange}this._animationDoneResponse&&(this._animationDoneResponse(),delete this._animationDoneResponse)}},_createPanelInfo:function(e){return{widget:e,isCollapsible:!0,isResizable:!0,minSize:40,maxSize:Number.MAX_VALUE}},_getInfoFromWidget:function(e,t){t.panelId=e.panelId,void 0!==e.title&&(t.isCollapsible=!0),void 0!==e.isCollapsible&&(t.isCollapsible=e.isCollapsible),void 0!==e.closable&&(t.closable=e.closable),void 0!==e.portion&&(t.portion=e.portion),void 0!==e.minSize&&(t.minSize=e.minSize),void 0!==e.maxSize&&(t.maxSize=e.maxSize),void 0!==e.preferredHeight&&(t.preferredHeight=e.preferredHeight)},_bindChildProperties:function(e,t){var i=this;if(!e.properties&&t.watch&&t.set&&t.get){e.properties=t;var n=[];n.push(t.watch(C.IS_COLLAPSED,(function(t,n,o){o!==e.isCollapsed&&(i._shouldBlockSuccession&&i.selectionManager&&i.selectionManager.blockSuccession(),o?i._collapse(e):i._restore(e))}))),n.push(t.watch(C.IS_EXPANDED,(function(t,n,o){o!==(i._expandedInfo===e||i._expandingInfo===e)&&(o?i._expand(e):i._restore(e))}))),n.push(t.watch(C.IS_OPEN,(function(t,n,o){o||i._closePanel(e)}))),n.push(t.watch(C.INDEX,(function(t,n,o){!i._isUpdatingIndices&&n!==o&&n===i._panelInfo.indexOf(e)&&o<i._panelInfo.length&&(i._changePanelIndex(n,o),i.layout())}))),n.push(a(this,T.STATE_CHANGED,()=>{this._updatePanelInnerBounds()})),e.unbindChildProperties=function(){n.forEach((function(e){e.remove()})),delete e.properties,delete e.unbindChildProperties}}},_panelIndexFromDomId:function(e){var t;for(t=0;t<this._panelInfo.length;t++)if(this._panelInfo[t].widget.id===e)return t;return-1},_panelIndexFromPanelId:function(e){var t;for(t=0;t<this._panelInfo.length;t++)if(this._panelInfo[t].panelId===e)return t;return-1},_panelIndexFromProperties:function(e){var t;for(t=0;t<this._panelInfo.length;t++)if(this._panelInfo[t].properties===e)return t;return-1},_panelIndexFromTitle:function(e){var t;for(t=0;t<this._panelInfo.length;t++)if(this._panelInfo[t].properties.title===e)return t;return-1},_panelIndexFromString:function(e){var t=this._panelIndexFromPanelId(e);return t<0&&(t=this._panelIndexFromTitle(e)),t},_getPanelInfoFromDomId:function(e){var t=this._panelIndexFromDomId(e);return t>=0?this._panelInfo[t]:null},_getPanelIndex:function(e){var t=typeof e;return"number"===t?e:"string"===t?this._panelIndexFromString(e):this._panelIndexFromDomId(e.id)},_collapse:function(e){!e.isCollapsed&&e.isCollapsible&&(e.explicitlyCollapsed=!0,e.explicitlyRestored=!1,e.preCollapsePortion=e.portion,this.layout())},_expand:function(e){if(!(e===this._expandedInfo||e===this._expandingInfo||this._panelInfo.length<2)){var t=this;this._panelsCollapsedPriorToExpand||(this._panelsCollapsedPriorToExpand=[],this._panelInfo.forEach((function(e){e.explicitlyCollapsed&&t._panelsCollapsedPriorToExpand.push(e)}))),this._panelInfo.forEach((function(t){t!==e&&!t.explicitlyCollapsed&&t.isCollapsible&&(t.explicitlyCollapsed=!0)})),e.explicitlyCollapsed=!1,e.explicitlyRestored=!0,this._expandingInfo=e,this.layout()}},_restore:function(e){if(e.isCollapsed)e.explicitlyCollapsed=!1,e.explicitlyRestored=!0;else{if(e!==this._expandedInfo&&e!==this._expandingInfo)return;e===this._expandingInfo&&delete this._expandingInfo,this._panelInfo.forEach((function(t){t!==e&&(t.explicitlyCollapsed=!1,t.explicitlyRestored=!0)})),this._panelsCollapsedPriorToExpand&&(this._panelsCollapsedPriorToExpand.forEach((function(e){e.explicitlyCollapsed=!0,e.explicitlyRestored=!1})),delete this._panelsCollapsedPriorToExpand)}this.layout()},_finishCollapse:function(e){e.isCollapsed=!0,e.explicitlyRestored=!1,u.set(e.widget.domNode,"display","none"),e.properties&&(e.properties.set(C.IS_COLLAPSED,!0),e.properties.set(C.IS_SHOWING,!1)),this.selectionManager&&this.selectionManager.unblockSuccession(),this._shouldBlockSuccession=!1},_finishRestore:function(e){e.isCollapsed=!1,e.explicitlyCollapsed=!1,delete e.preCollapsePortion,u.set(e.widget.domNode,"display","block"),e.properties&&(e.properties.set(C.IS_COLLAPSED,!1),E.isShowing(this.domNode)&&e.properties.set(C.IS_SHOWING,!0)),this.selectionManager&&this.selectionManager.unblockSuccession(),this._shouldBlockSuccession=!1},_toggleCollapse:function(e,t){e.titleBar&&e.titleBar.get(C.IS_COLLAPSIBLE)&&(e.isCollapsed?(this._restore(e),e.properties&&e.properties.set(C.IS_SELECTED,!0),e.titleBar.titleButton.setAttribute("aria-expanded","true")):(e.distributeUnusedHeight=t.ctrlKey,this._collapse(e),e.titleBar.titleButton.setAttribute("aria-expanded","false")))},_updateCollapseControlVisibility:function(){var e,t,i;if(1===this._panelInfo.length)(e=(i=this._panelInfo[0]).titleBar)&&e.set(C.IS_COLLAPSIBLE,i.properties.isCollapsed);else for(t=0;t<this._panelInfo.length;t++)(i=this._panelInfo[t]).titleBar&&i.titleBar.set(C.IS_COLLAPSIBLE,i.isCollapsible)},_isPopulatedPerState:function(e){if(e.length!==this._panelInfo.length)return!1;var t;for(t=0;t<e.length;t+=1){var i=e[t].id||e[t].panelId;if(this._panelIndexFromPanelId(i)<0)return!1}return!0},_restoreState:function(e){var t,i,n,o=[];for(o.length=this._panelInfo.length,i=0;i<e.length;i+=1)n=this._panelIndexFromPanelId(e[i].id||e[i].panelId),(t=this._panelInfo[n]).portion=e[i].portion,t.explicitlyCollapsed=e[i].collapsed,t.explicitlyCollapsed!==t.isCollapsed&&(t.explicitlyCollapsed?(this._finishCollapse(t),t.titleBar.titleButton.setAttribute("aria-expanded","false")):(this._finishRestore(t),t.titleBar.titleButton.setAttribute("aria-expanded","true"))),o[i]=t;this._panelInfo=o,this._updatePanelIndices(),this.layout()},_canDragSplitter:function(e){return this._panelInfo.indexOf(e)>0},_beginSplitterDrag:function(e,t){g.isLeft(t)&&this._canDragSplitter(e)&&(this._splitterDragInfo=this._initSplitterDragInfo(e,t.pageX,t.pageY),this._splitterDragInfo.connections=[a(this.ownerDocument,m.move,n.hitch(this,"_continueSplitterDrag")),a(this.ownerDocument,m.release,n.hitch(this,"_endSplitterDrag"))],I.blockUntilRelease(this.domNode)),E.stopEvent(t)},_initSplitterDragInfo:function(e,t,i){var n,o,r={panelInfo:e},a=d.getContentBox(this.domNode,this.computedStyle),s=e.splitterBox||d.getMarginBox(e.splitterNode);for(r.startY=i,r.initialPosition=s.t,r.splitterPosition=s.t,r.initialHeights=[],r.initialHeights.length=this._panelInfo.length,n=0;n<this._panelInfo.length;n+=1)o=this._panelInfo[n],r.initialHeights[n]=o.isCollapsed?this._allowExpand(o,e)?this._getMinPanelHeight(o):0:d.getMarginBox(o.widget.domNode).h;return r.initialCollapsedStates=this._getCollapsedStates(),n=this._panelInfo.indexOf(e),r.lowerLimit=a.t+this._getMinHeight(0,n),r.upperLimit=a.t+a.h-this._getMinHeight(n,this._panelInfo.length-n),r},_continueSplitterDrag:function(e){var t=this._splitterDragInfo,i=e.pageY-t.startY,n=t.initialPosition+i;t.proportionalResize=e.ctrlKey,n<t.lowerLimit?n=t.lowerLimit:n>t.upperLimit&&(n=t.upperLimit),n!==t.splitterPosition&&(t.hasMoved=!0,t.splitterPosition=n,this.layout())},_endSplitterDrag:function(){var e=this._splitterDragInfo;if(e.hasMoved){if(this._animationTimer)this._animationDoneResponse=function(){this._updatePortions(),delete this._splitterDragInfo};else this._getCollapsedStates().every((function(t,i){return!t||e.initialCollapsedStates[i]}))&&this._updatePortions(),delete this._splitterDragInfo;this._updatePanelInnerBounds(),this.emit(T.STATE_CHANGED)}else delete this._splitterDragInfo;e.connections.forEach((function(e){e.remove()}))},_beginTitleDrag:function(e,t){g.isLeft(t)?this._beginTitleDragAtPoint(e,t.pageX,t.pageY):e.closable&&g.isMiddle(t)&&!p("ie")&&this._closePanel(e)},_beginTitleDragAtPoint:function(e,t,i){this._titleDragInfo=this._initTitleDragInfo(e,t,i),this._titleDragInfo.connections=[a(this.ownerDocument,m.move,n.hitch(this,"_continueTitleDrag")),a(this.ownerDocument,m.release,n.hitch(this,"_endTitleDrag",!1))],I.blockUntilRelease(this.domNode)},_initTitleDragInfo:function(e,t,i){var n={panelInfo:e};return n.startY=i,n.startX=t,n.lastY=i,n.initialIndex=this._panelInfo.indexOf(e),n.currentIndex=n.initialIndex,n.panelHeight=d.getMarginBox(e.widget.domNode).h,n.initialTops=this._getTops(),n},_getTops:function(){var e,t,i,n=[];for(n.length=this._panelInfo.length+1,i=0;i<this._panelInfo.length;i+=1)e=this._panelInfo[i],n[i]=e.titleBar?d.getMarginBox(e.titleBar.domNode).t:d.getMarginBox(e.splitterNode).t+this._splitterOverlap;return e?e.isCollapsed?n[i]=n[i-1]+(e.titleBar?N.getPreferredHeight():this._visibleSplitterThickness):(t=d.getMarginBox(e.widget.domNode),n[i]=t.t+t.h):(t=d.getContentBox(this.domNode,this.computedStyle),n[i]=t.t+t.h),n},_getCollapsedStates:function(){var e=[];e.length=this._panelInfo.length;for(var t=0;t<this._panelInfo.length;t++)e[t]=this._panelInfo[t].isCollapsed;return e},_continueTitleDrag:function(e){var t,i,o,r,a,s,h,p,f,g=this._titleDragInfo,m=g.panelInfo,_=e.pageY-g.startY,v=e.pageY-g.lastY,b=d.position(this.domNode),y=d.getContentBox(this.domNode,this.computedStyle);if(!g.hasMoved){if(g.startY===e.pageY&&g.startX===e.pageX)return;l.add(m.titleBar.domNode,"movingPanel"),m.isCollapsed||l.add(m.widget.domNode,"movingPanel"),u.set(m.splitterNode,{visibility:"hidden"}),m.moveBackground||(m.moveBackground=c.create("div",{id:this.id+"MoveBackground"},this.domNode),l.add(m.moveBackground,"moveBackground"),g.hasMoved=!0)}g.lastY=e.pageY,this.dragOutEnabled&&(e.pageX<b.x||e.pageX>b.x+b.w)?this._dragOut(m,{x:e.pageX,y:e.pageY}):((a=n.clone(y)).t=g.initialTops[g.initialIndex],r=y.t+y.h,t=g.initialTops[g.initialIndex+1]-a.t,a.t+=_,a.t<y.t?a.t=y.t:a.t+t>r&&(a.t=r-t),i=a.t,o=a.t+t,a.h=t,this._positionPanel(m,a),v<0&&g.currentIndex>0?(p=(s=g.currentIndex>g.initialIndex)?g.currentIndex:g.currentIndex-1,i<(g.initialTops[p]+g.initialTops[p+1])/2-(s?t:0)&&(f=this._panelInfo[p],a.t=g.initialTops[p],a.h=g.initialTops[p+1]-a.t,p<g.initialIndex&&(a.t+=t),this._movePanel(f,a),g.currentIndex-=1)):v>0&&g.currentIndex<this._panelInfo.length-1&&(p=(h=g.currentIndex<g.initialIndex)?g.currentIndex:g.currentIndex+1,o>(g.initialTops[p]+g.initialTops[p+1])/2+(h?t:0)&&(f=this._panelInfo[p],a.t=g.initialTops[p],a.h=g.initialTops[p+1]-a.t,p>g.initialIndex&&(a.t-=t),this._movePanel(f,a),g.currentIndex+=1)))},_endTitleDrag:function(e){var t,i,n=this,o=this._titleDragInfo,r=o.panelInfo,a=o.hasMoved;e?(this._animationTimer&&(clearInterval(this._animationTimer),delete this._animationTimer,this._panelInfo.forEach((function(e){delete e.animationStartTime,delete e.animationDuration,delete e.animationStartHeight,delete e.animationHeightChange}))),r.moveBackground&&(c.destroy(r.moveBackground),delete r.moveBackground)):a&&((t=o.currentIndex!==o.initialIndex)&&this._changePanelIndex(o.initialIndex,o.currentIndex),(i=d.getContentBox(this.domNode,this.computedStyle)).t=o.currentIndex<=o.initialIndex?o.initialTops[o.currentIndex]:o.initialTops[o.currentIndex+1]-o.panelHeight,i.h=o.panelHeight,this._movePanel(r,i),this._animationDoneResponse=function(){l.remove(r.titleBar.domNode,"movingPanel"),r.isCollapsed||l.remove(r.widget.domNode,"movingPanel"),u.set(r.splitterNode,{visibility:"visible"}),r.moveBackground&&(c.destroy(r.moveBackground),delete r.moveBackground),a&&(n.layout(),t&&this.emit(T.STATE_CHANGED))}),o.connections.forEach((function(e){e.remove()})),delete this._titleDragInfo,!this._animationTimer&&this._animationDoneResponse&&(this._animationDoneResponse(),delete this._animationDoneResponse),this.layout()},_changePanelIndex:function(e,t){var i=this._panelInfo[e];this._panelInfo.splice(e,1),this._panelInfo.splice(t,0,i),this._updatePanelIndices()},_dragOut:function(e,t){var i,n=this._titleDragInfo;e.isCollapsed?(i=d.position(e.titleBar.domNode)).h=200:i=d.position(e.widget.domNode),i.l=i.x,i.t=i.y;var o={widget:e.widget,properties:e.properties,index:n.initialIndex,portion:e.portion,isCollapsed:e.isCollapsed,box:i,mousePoint:t};l.remove(e.widget.domNode,"movingPanel"),this.emit(T.DRAG_OUT,o),this._panelInfo.indexOf(e)>=0&&this._endTitleDrag(!1)},dragIn:function(e,t){var i,n;if(t)for(n=this._getTops(),i=0;i<n.length-1&&!(t.y<(n[i]+n[i+1])/2);i+=1);else i=e.index;this.addWithProperties(e.widget,e.properties,i),t&&this._beginTitleDragAtPoint(this._getPanelInfoFromDomId(e.widget.id),t.x,t.y)},_positionPanel:function(e,t){var i,o,r=t.h;e.moveBackground&&((o=n.clone(t)).t-=1,o.h+=2,d.setMarginBox(e.moveBackground,o)),e.titleBar?(t.h=N.getPreferredHeight(),d.setMarginBox(e.titleBar.domNode,t),t.t+=t.h,r-=t.h):((i=n.clone(t)).t-=this._splitterOverlap,i.h=this._splitterThickness,d.setMarginBox(e.splitterNode,i),t.t+=this._visibleSplitterThickness,r-=this._visibleSplitterThickness),e.isCollapsed||(t.h=r,E.setSize(e.widget,t))},_movePanel:function(e,t){this.animationEnabled&&E.isAnimationEnabled()?(e.animationStartTop=e.titleBar?d.getMarginBox(e.titleBar.domNode).t:d.getMarginBox(e.splitterNode).t+this._splitterOverlap,e.animationStopBox=t,e.animationStartTime=(new Date).valueOf(),e.animationDuration=b.computeDuration(t.t-e.animationStartTop),this._animationTimer||(this._animationTimer=setInterval(n.hitch(this,"_updatePanelPositions"),b.UPDATE_INTERVAL))):this._positionPanel(e,t),this._updatePanelInnerBounds()},_closePanel:function(e){var t=e.properties;this.removeChild(e.widget),t&&(t.set(C.IS_OPEN,!1),t.set(C.IS_SHOWING,!1))},_updatePanelPositions:function(){var e,t,i,o,a=!1,s=(new Date).valueOf();for(e=0;e<this._panelInfo.length;e++)(t=this._panelInfo[e]).animationStartTime&&t.animationStopBox&&(o=s-t.animationStartTime,i=n.clone(t.animationStopBox),o<t.animationDuration?(i.t=t.animationStartTop+(i.t-t.animationStartTop)*r.cubicInOut(o/t.animationDuration),a=!0):(delete t.animationStartTime,delete t.animationDuration),this._positionPanel(t,i));a||(clearInterval(this._animationTimer),delete this._animationTimer,this._animationDoneResponse&&(this._animationDoneResponse(),delete this._animationDoneResponse))},_updatePortions:function(e){var t,i,n;for(e=e||d.getContentBox(this.domNode,this.computedStyle).h-this._getOverhead(),n=0;n<this._panelInfo.length;n++)i=(t=this._panelInfo[n]).isCollapsed?this._getMinPanelHeight(t):d.getContentBox(t.widget.domNode).h,t.portion=i/e},_getOverhead:function(e,t){if(void 0===e)e=0,t=this._panelInfo.length-1;else if(e>t){var i=e;e=t,t=i}var n,o=0;for(n=e;n<=t;n++)this._panelInfo[n].titleBar?o+=N.getPreferredHeight():n>0&&(o+=this._visibleSplitterThickness);return o},_getMinPanelHeight:function(e){return e.isResizable?e.minSize instanceof Function?e.minSize():e.minSize:e.initialHeight},_getMaxPanelHeight:function(e){return e.isResizable?e.maxSize instanceof Function?e.maxSize():e.maxSize:e.initialHeight},_getMinHeight:function(e,t){var i,n,o=0;for(i=e;i<e+t;i++)(n=this._panelInfo[i]).titleBar?o+=N.getPreferredHeight():i>0&&(o+=this._visibleSplitterThickness),this._canCollapse(n)||(o+=this._getMinPanelHeight(n));return o},_canCollapse:function(e){return this.autoCollapseEnabled&&e.isCollapsible||e.isCollapsed},_calculateAllHeights:function(e){var t,i,n,o=d.getContentBox(this.domNode,this.computedStyle),r=[];return r.length=this._panelInfo.length,this._splitterDragInfo?(t=this._splitterDragInfo,i=this._panelInfo.indexOf(t.panelInfo),n=t.splitterPosition-o.t,n=this._calculateHeights(i-1,0,n,t.proportionalResize,!1,r),this._calculateHeights(i,this._panelInfo.length-1,o.h-n,t.proportionalResize,!1,r)):this._calculateHeights(this._panelInfo.length-1,0,o.h,!0,e,r),r},_calculateHeights:function(e,t,i,n,o,r){var a=i,s=0;i-=this._getOverhead(e,t);var l,c,d,u,h,p,f,g,m,_,v,b,y,C=[],T=0,E=[],S=[];if(E.length=r.length,S.length=r.length,e<=t)for(l=e,c=t,d=e;d<=t;d++)C.push(d);else for(l=t,c=e,d=e;d>=t;d--)C.push(d);if(n){for(g=0,_=0,m=1/this._panelInfo.length,d=l;d<=c;d++)u=this._panelInfo[d],this._keepCollapsed(u,o)?u.isCollapsed||u.distributeUnusedHeight||(_+=u.portion||m):(p=this._getFixedHeight(u)||this._getRestoredHeight(u,i,m))?(s+=p,u.workingPortion=0):(u.workingPortion=u.portion||m,_>0&&(u.workingPortion+=_,_=0),g+=u.workingPortion);if(_>0)for(d=c-1;d>=l;d--)if(u=this._panelInfo[d],!this._keepCollapsed(u,o)){if(!(p=this._getFixedHeight(u))){u.workingPortion+=_,g+=_;break}s+=p,u.workingPortion=0}for(f=0,d=0;d<C.length;d++)h=C[d],u=this._panelInfo[h],r[h]=0,this._keepCollapsed(u,o)||(E[h]=this._getMinPanelHeight(u),S[h]=this._getMaxPanelHeight(u),r[h]=this._getFixedHeight(u)||this._getRestoredHeight(u,i,m),r[h]||(r[h]=Math.min(Math.max((i-s)*u.workingPortion/g,E[h]),S[h])),f+=r[h]);for((T=f-i)>0&&(T=this._reduceThenCollapse(T,C,E,r)),y=0;T<0&&y<3;y++){for(g=0,d=0;d<C.length;d++)h=C[d],u=this._panelInfo[h],r[h]>0&&r[h]<S[h]&&(g+=u.workingPortion);if(0===g)break;for(v=-T,d=0;d<C.length;d++)h=C[d],u=this._panelInfo[h],r[h]>0&&(T+=b=v*u.workingPortion/g,r[h]+=b,r[h]>S[h]&&(T+=S[h]-r[h],r[h]=S[h]))}}else if(this._splitterDragInfo){for(f=0,d=0;d<C.length;d++)h=C[d],u=this._panelInfo[h],E[h]=this._getMinPanelHeight(u),S[h]=this._getMaxPanelHeight(u),r[h]=this._splitterDragInfo.initialHeights[h],0!==r[h]||u.isCollapsed||(r[h]=E[h]),f+=r[h];if((T=f-i)>0&&(T=this._reduceAndCollapse(T,C,E,r)),T<0)for(d=0;d<C.length;d++)if(r[h=C[d]]>0){if(r[h]-=T,T=0,!(r[h]>S[h]))break;T=S[h]-r[h],r[h]=S[h]}if(T<0&&c===this._panelInfo.length-1)for(h=l-1;h>=0;h-=1)if(r[h]>0){if(r[h]-=T,T=0,!(r[h]>S[h]))break;T=S[h]-r[h],r[h]=S[h]}}return a+=T},_reduceThenCollapse:function(e,t,i,n){var o,r,a,s;for(a=0;e>0&&a<t.length;a++)o=t[a],r=this._panelInfo[o],n[o]>0&&n[o]>i[o]&&(s=Math.min(n[o]-i[o],e),n[o]-=s,e-=s);if(e>0&&this.autoCollapseEnabled){for(a=0;e>0&&a<t.length;a++)o=t[a],r=this._panelInfo[o],n[o]>0&&r.isCollapsed&&(e<25?(n[o]-=e,e=0):r.isCollapsible&&(e-=n[o],n[o]=0));for(a=0;e>0&&a<t.length;a++)o=t[a],r=this._panelInfo[o],n[o]>0&&(e<25?(n[o]-=e,e=0):r.isCollapsible&&(e-=n[o],n[o]=0))}return e},_reduceAndCollapse:function(e,t,i,n){var o,r,a,s,l;for(a=0;e>0&&a<t.length;a++)o=t[a],r=this._panelInfo[o],n[o]>0&&((s=n[o]-i[o])<e&&this.autoCollapseEnabled&&r.isCollapsible?(e-=n[o],n[o]=0):s>0&&(l=Math.min(s,e),n[o]-=l,e-=l));return e},_isCollapsing:function(e){return void 0!==e.animationStartHeight&&e.animationStartHeight+e.animationHeightChange===0},_isRestoring:function(e){return 0===e.animationStartHeight},_keepCollapsed:function(e,t){return e.explicitlyCollapsed||e.isCollapsed&&!e.explicitlyRestored&&t},_allowExpand:function(e,t){if(!e.explicitlyCollapsed)return!0;var i,n,o=this._panelInfo.indexOf(e),r=this._panelInfo.indexOf(t);if(o===r-1)for(i=!1,n=o-1;n>=0&&!i;n--){i=!((a=this._panelInfo[n]).isCollapsed&&a.explicitlyCollapsed)}else if(o===r)for(i=!1,n=o+1;n<this._panelInfo.length&&!i;n++){var a;i=!((a=this._panelInfo[n]).isCollapsed&&a.explicitlyCollapsed)}return!1===i},_getFixedHeight:function(e){return e.userAdjustedHeight&&e.isResizable?void 0:e.initialHeight},_getRestoredHeight:function(e,t,i){if(e.explicitlyRestored&&"preCollapsePortion"in e){return t*(e.preCollapsePortion||i)}},_updatePanelIndices:function(){var e,t;for(this._isUpdatingIndices=!0,i=0;i<this._panelInfo.length;i++)(t=(e=this._panelInfo[i]).properties)&&t.get(C.INDEX)!==i&&t.set(C.INDEX,i),e.splitterNode&&u.set(e.splitterNode,"display",0===i?"none":"block");this._isUpdatingIndices=!1},_handleNavigation:function(e){var t=[],i=[];this._panelInfo.forEach((function(e){e.titleBar&&e.titleBar.titleButton&&e.titleBar.actionsNodeWrapper&&(t.push(e.titleBar.titleButton),i.push(e.titleBar.actionsNodeWrapper))})),this._extraNavigationTargets.forEach((function(e){t.push(e)}));var n=document.activeElement,o=t.indexOf(n);if(-1===o&&(o=i.indexOf(n)),o>=0)switch(e){case"up":0===o?(t[t.length-1].focus(),this.selectionManager[A.SELECTED_CHILD]&&this.selectionManager.setSelected(this.selectionManager[A.SELECTED_CHILD],!1,!0)):o>0&&(this.selectionManager.blockRevealChild(),this.selectionManager.setSelected(this._panelInfo[o-1].widget,!0,!0),this.selectionManager.unblockRevealChild(),t[o-1].focus());break;case"down":o===t.length-1?(this.selectionManager.blockRevealChild(),this.selectionManager.setSelected(this._panelInfo[0].widget,!0,!0),this.selectionManager.unblockRevealChild(),t[0].focus()):o>=0&&(o+1!==t.length-1?(this.selectionManager.blockRevealChild(),this.selectionManager.setSelected(this._panelInfo[o+1].widget,!0,!0),this.selectionManager.unblockRevealChild()):this.selectionManager[A.SELECTED_CHILD]&&this.selectionManager.setSelected(this.selectionManager[A.SELECTED_CHILD],!1,!0),t[o+1].focus())}},_keydownHandler:function(e,t){var i=t.keyCode;switch(!0){case i===f.TAB:e&&e.widget&&(t.preventDefault(),e.widget.focus?e.widget.focus():e.widget.domNode&&e.widget.domNode.focus());break;case i===f.UP_ARROW:this._handleNavigation("up");break;case i===f.DOWN_ARROW:this._handleNavigation("down");break;case i===f.LEFT_ARROW:case i===f.RIGHT_ARROW:e&&e.titleBar&&e.titleBar.titleButton&&e.titleBar.actionsNodeWrapper&&(t.target===e.titleBar.titleButton?e.titleBar.actionsNodeWrapper.focus():t.target===e.titleBar.actionsNodeWrapper&&e.titleBar.titleButton.focus())}},_keyUpHandler:function(e,t){if(t.keyCode===f.SPACE||t.keyCode===f.ENTER){this.selectionManager&&this.selectionManager.blockSuccession(),this._toggleCollapse(e,t)}}});return L.stateIncludes=function(e,t){var i;for(i=0;i<e.length;i+=1){if((e[i].id||e[i].panelId)===t)return!0}return!1},L}),e,t),e.exports=r},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(2879)],o=i.dj.d(n,(function(e,t,i,n){var o=e([t,i],{templateString:n,constructor:function(e){this._setContainerType(e)},_setContainerType:function(e){"object"==typeof e&&e.containerType?this._containerType=e.containerType:this._containerType="panel"},startup:function(){this.inherited(arguments),"panel"===this._containerType?(this._containerPlaceholderNode.classList.add("mw-placeholder-panel"),this._panelSkeletonNode.classList.remove("placeholder-hidden")):"document"===this._containerType?(this._containerPlaceholderNode.classList.add("mw-placeholder-document"),this._documentContainerSkeletonNode.classList.remove("placeholder-hidden")):"toolstrip"===this._containerType&&(this._containerPlaceholderNode.classList.add("mw-placeholder-toolstrip"),this._toolstripSkeletonNode.classList.remove("placeholder-hidden"))}});return o.PANEL="panel",o.DOCUMENT="document",o.TOOLSTRIP="toolstrip",o}),e,t),e.exports=o},function(e,t){e.exports='<div class="mw-placeholder" data-dojo-attach-point="_containerPlaceholderNode">\n <div class="mw-toolstrip-skeleton placeholder-hidden" data-dojo-attach-point="_toolstripSkeletonNode">\n\t <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="100%">\n\t\t <defs>\n\t\t <style>.tab-bar{fill:#004073;}</style>\n\t\t <style>.panel{fill:#E6E6E6;}</style>\n\t\t </defs>\n\t\t <rect class="tab-bar" width="100%" height="28px"/>\n\t\t <rect class="panel" y="28" width="100%" height="92px"/>\n\t\t</svg>\t\n </div>\n <div class="mw-panel-skeleton placeholder-hidden" data-dojo-attach-point="_panelSkeletonNode">\n\t\t<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 203 99">\n\t\t <defs>\n\t\t <style>.cls-1{fill:#e6e6e6;}</style>\n\t\t </defs>\n\t\t <rect class="cls-1" y="69" width="185" height="6"/>\n\t\t <rect class="cls-1" y="23" width="130" height="6"/>\n\t\t <rect class="cls-1" y ="46" width="63" height="6"/>\n\t\t <rect class="cls-1" y="0" width="76" height="6"/>\n\t\t <rect class="cls-1" y="92" width="203" height="6"/>\n\t\t</svg>\n </div>\n <div class="mw-document-container-skeleton placeholder-hidden" data-dojo-attach-point="_documentContainerSkeletonNode">\n\t\t<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 639 237">\n\t\t\t<defs>\n\t\t\t\t<style>.cls-1{fill:#e6e6e6;}</style>\n\t\t\t</defs>\n\t\t\t<rect class="cls-1" y="115" width="639" height="6"/>\n\t\t\t<rect class="cls-1" y="230" width="639" height="6"/>\n\t\t\t<rect class="cls-1" width="242" height="6"/>\n\t\t\t<rect class="cls-1" y="46" width="198" height="6"/>\n\t\t\t<rect class="cls-1" y="23" width="409" height="6"/>\n\t\t\t<rect class="cls-1" y="69" width="586" height="6"/>\n\t\t\t<rect class="cls-1" y="92" width="639" height="6"/>\n\t\t\t<rect class="cls-1" y="161" width="408" height="6"/>\n\t\t\t<rect class="cls-1" y="184" width="408" height="6"/>\n\t\t\t<rect class="cls-1" y="138" width="272" height="6"/>\n\t\t\t<rect class="cls-1" y="207" width="586" height="6"/>\n\t\t</svg>\n </div>\n</div>'},function(e,t){e.exports='<div class="mwStatusBar">\n <div class="mwStatusBarLeft" data-dojo-attach-point="leftNode"\n ></div><div class="mwStatusBarRight" data-dojo-attach-point="rightNode"\n ></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(204),i(231),i(434),i(2882),i(3012),i(3250)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{constructor:function(e){var s,l;s=new o(e),l=new r({modelManager:s}),a.fromModelManager.forEach((function(e){this[e]=t.hitch(s,s[e])}),this),a.fromWidgetManager.forEach((function(e){this[e]=t.hitch(l,l[e])}),this),this.cleanup=function(){s.cleanup(),l.cleanup()},e.manageTabGroupsOutsidePeerModel&&(this.add=function(e,t,i){var o=s.manager.getById(e);o&&o.getType()===n.TAB_GROUP?l.addOutsidePeerModel(e,t):s.add(e,t,i)},this.remove=function(e){var t=s.manager.getById(e);t&&t.getType()===n.TAB_GROUP?l.removeOutsidePeerModel(e):s.remove(e)},this.get=function(e,t){if("selectedTab"===t&&s.manager.getById(e).getType()===n.TOOLSTRIP){var o=i.byId(e);return o?o.get(t):""}return s.get(e,t)},this.set=function(e,t,o){if("selectedTab"!==t||s.manager.getById(e).getType()!==n.TOOLSTRIP)return s.set(e,t,o);var r=i.byId(e);r&&r.set(t,o)},this.getChildrenIds=function(e){if(s.manager.getById(e).getType()===n.TOOLSTRIP){var t=i.byId(e).getChildren(),o=[];o.length=t.length;for(var r=0;r<o.length;r++)o[r]=t[r].id;return o}return s.getChildrenIds(e)},this.isAnOrphan=function(e){if(s.manager.getById(e).getType()===n.TAB){var t=i.byId(e);return!(t&&t.getParent()&&t.getParent().getParent())}return s.isAnOrphan(e)},this.selectFirstTabInTabGroup=function(e,t){var n=s.tagToPeerNodeIdMap[e];if(n){var o=s.manager.getById(n);if(o&&o.getChildren().length>0){var r=i.byId(t);r&&(r.set("selectedTab",""),r.set("selectedTab",o.getChildren()[0].getId()))}}},this.addPropertySetCallback=function(e,t,o){if(s.manager.getById(e).getType()===n.TOOLSTRIP){var r=i.byId(e);return r?r.watch((function(e,i,n){t({property:e,oldValue:i,newValue:n})})):null}return s.addPropertySetCallback(e,t,o)},this.getRootViewModel=function(){return s._getRootNodeByType("Root")})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(231),i(227),i(228),i(369),i(1279),i(1052),i(434),i(1300),i(1763),i(3005),i(3006),i(3007),i(3008),i(1781),i(785),i(781),i(3011),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return e([a],{constructor:function(e){e=e||{},this.isMATLABDriven=e.isMATLABDriven,this._channel=e.channel,this.actionService=e.actionService,this.enableQABCustomization=e.enableQABCustomization,this.lazyLoading=e.lazyLoading,this.lazyLoadingQABItemsMap={},this._qabAuthoringMode=e.qabAuthoringMode,Object.keys(c).some(function(e){return this._qabAuthoringMode===c[e]}.bind(this))||b.error('Expected one of the following inputs: MW/toolstrip/constants/QABAuthoringModeConstants[ "'+Object.keys(c).toString().replace(",",'" || "')+'" ]'),this._autoGeneratedActions={},this.tagToPeerNodeIdMap={},this._typeToRootNodeMap={},this._notInActionPropertiesSyncCallbackMap={},this._pendingActionNodeCallbacks={},e._openWithViewModel?this._setViewModelManager():this._setupPeerModelManager()},_disableToolstripResize:function(){this._toolstripResizeDisabled=!0},_enableToolstripResize:function(){this._toolstripResizeDisabled=!1},_setViewModelManager:function(){var e,t={channelPrefix:this._channel,plugins:{moveEvent:!0},preventSync:!this.isMATLABDriven};this._isViewModelManager=!0,this.manager=s.getViewModelManager(t),this.addManagerListeners(),this.isMATLABDriven||(this._root=this.manager.setRoot(l.ROOT),this._root.addChild(l.ORPHAN_ROOT),this._toolstripRoot=this._root.addChild(l.TOOLSTRIP_ROOT),this._root.addChild(l.POPUP_ROOT),this._root.addChild(l.QAB_ROOT),(e=this._root.addChild(l.GALLERY_ROOT)).addChild(l.GALLERY_POPUP_ROOT),e.addChild(l.GALLERY_PANEL_ROOT),e.addChild(l.GALLERY_FAVORITE_CATEGORY_ROOT),this._root.addChild(l.STATUS_BAR_ROOT))},_setupPeerModelManager:function(){var e;this.manager=r.getInstance(this._channel),this.addManagerListeners(),this.isMATLABDriven?this.start():(this._root=this.manager.setRoot(l.ROOT),this._root.addChild(l.ORPHAN_ROOT),this._toolstripRoot=this._root.addChild(l.TOOLSTRIP_ROOT),this._root.addChild(l.POPUP_ROOT),this._root.addChild(l.QAB_ROOT),(e=this._root.addChild(l.GALLERY_ROOT)).addChild(l.GALLERY_POPUP_ROOT),e.addChild(l.GALLERY_PANEL_ROOT),e.addChild(l.GALLERY_FAVORITE_CATEGORY_ROOT),this._root.addChild(l.STATUS_BAR_ROOT))},create:function(e){var i,n,o,r,a,s,c=null;return this._supportBase64URL(e),r=(a=t.clone(e)).parentId,i=this._verifyProperties(a),this._supportsAction(e.type)&&(e.actionId?(s=this.actionService.getAction(e.actionId))&&(this._supportBase64URL(s),this._convertPopupTagToId(s),Object.keys(d[e.type]).forEach((function(t){d[e.type][t].notInAction||this._isAValidValue(s[t],d[e.type][t],d[e.type])||(s[t]=i.actionNodeProps[t])}),this),this.actionService.updateAction(e.actionId,s)):(i.viewNodeProps.actionId=this.actionService.addAction(i.actionNodeProps),this._autoGeneratedActions[i.viewNodeProps.actionId]=!0)),(n=this._getCorrespondingParentNode(i.type,r))&&m.isAFooterCell(n.getType())&&-1===f.indexOf(e.type)&&b.error(e.type+" is not supported by Footer Cell"),n.getType()===l.GALLERY_CATEGORY&&!0===n.getProperty("alphabetize")&&(c=this._getAlphabeticalIndexForGalleryItem(n,i.actionNodeProps.text)),n.getType()===l.GALLERY_FAVORITE_CATEGORY&&(c=this._getFavoritesPriorityIndexForGalleryItem(n,e.favoritesPriority)),o=n.addChild(i.type,i.viewNodeProps,c,e.originator||null),"Toolstrip"===i.type&&r&&this.placeToolstripById(o.getId(),r),this._postProcessing(o),this._resizeToolstrip(),o.getId()},_getAlphabeticalIndexForGalleryItem:function(e,t){let i,n=e.getChildren();for(let e=0;e<n.length;++e){let o=n[e].getProperty("actionId");if(this.actionService.getAction(o).text>t){i=e;break}}return i},_getFavoritesPriorityIndexForGalleryItem:function(e,t){let i,n=e.getChildren();for(let e=0;e<n.length;++e){let o=n[e].getProperty("favoritesPriority");if(o=o||0,o<t){i=e;break}}return i},_getCorrespondingParentNode:function(e,t){var i;switch(e){case l.TOOLSTRIP:i=this._getRootNodeByType(l.TOOLSTRIP_ROOT);break;case l.QAB:i=this._getRootNodeByType(l.QAB_ROOT);break;case l.POPUP_LIST:i=this.exists(t)?this.manager.getById(t):this._getRootNodeByType(l.POPUP_ROOT);break;case l.GALLERY_POPUP:i=this._getRootNodeByType(l.GALLERY_POPUP_ROOT);break;case l.GALLERY_PANEL:i=this._getRootNodeByType(l.GALLERY_PANEL_ROOT);break;case l.GALLERY_FAVORITE_CATEGORY:i=this._getRootNodeByType(l.GALLERY_FAVORITE_CATEGORY_ROOT);break;case l.STATUS_BAR:i=this._getRootNodeByType(l.STATUS_BAR_ROOT);break;default:i=this.exists(t)?this.manager.getById(t):this._getRootNodeByType(l.ORPHAN_ROOT)}return i},_supportsAction:function(e){return m.supportsAction(e)||p.indexOf(e)>-1},_findAncestorId:function(e,t){for(var i,n=t;null!==n&&this.get(n,"type")!==e;){if(this._root===this.manager.getById(n)){n=null;break}if(this.get(n,"type")===l.GALLERY_POPUP){if(0===(i=this.manager.getByProperty("galleryPopupId",n)).length&&(this.actionService.getAllActions().forEach(function(e){e.popupId&&e.popupId===n&&this.manager.getByProperty("actionId",e.id).forEach((function(e){i.push(e)}))}.bind(this)),0===i.length)){n=null;break}if(1!==i.length){n=this.getParentId(i[0].getId());continue}n=this.getParentId(i[0].getId())}else n=this.get(n,"type")===l.POPUP_LIST?this._findAncestorIdForPopupList(n):this.getParentId(n)}return n},_findAncestorIdForPopupList:function(e){var t,n,o,r=i.byId(e);return(t=r&&r.domNode&&r.domNode.parentElement&&r.domNode.parentElement.getAttribute("dijitpopupparent")?r.domNode.parentElement.getAttribute("dijitpopupparent"):null)&&(n=this._toolstrip.get("QABId"),r=i.byId(t),(o=i.byId(n)).domNode&&r.domNode&&o.domNode.contains(r.domNode)&&r.toolstripControlId&&(t=r.toolstripControlId)),t},_createCorrespondingComponentInQAB:function(e,t,n){var o=this._findAncestorId(l.TAB_GROUP,e);if(null===o)return;var r=this.get(o,"QAGroupId"),a=this.get(e,"actionId"),s=this.get(e,"tag")+"_qab",c=[];if(this.manager.getByType(l.QA_GROUP).forEach((function(e){c=c.concat(this.manager.getByProperty("actionId",a,e))}),this),c.length>0){var d=this.manager.getByProperty("tag","motwToolstrip.globalTabGroup_qaGroup")[0];if(c.some((function(e){return r===c[0].getParent().getId()||c[0].getParent().getId()===d.getId()})))return e;i.byId(c[0].getId());var u=this.manager.getById(r)===d;null!=d&&u&&this.destroy(c[0].getId())}(i.byId(r).getChildren().length>0||this._isViewModelManager)&&this._toolstrip.setResizeFlag(!1);var h=this.create({type:g[this.get(e,"type")],tag:s,actionId:a,parentId:r});return this._toolstrip.setResizeFlag(!0),"number"==typeof n?this.move(h,r,n):t&&this.move(h,r,0),this._postProcessingAfterQABWidgetCreation(h,e),h},createCorrespondingComponentInQAB:function(e,t,n){if(this._qabAuthoringMode!==c.DEFAULT){var o=this.get(e,"tag")+"_qab",r=this.get(e,"actionId"),a=this.create({type:g[this.get(e,"type")],tag:o,actionId:r,parentId:t});"number"==typeof n?this.move(a,t,n):this.move(a,t,0),this._postProcessingAfterQABWidgetCreation(a,e);var s=i.byId(e);return s.get("isInQAB")||s.set("isInQAB",!0),a}b.error("createCorrespondingComponentInQAB function is only supported in 'manual' QABAuthoringMode")},_postProcessingAfterQABWidgetCreation:function(e,t){var n=i.byId(e);n.toolstripControlId=t,this.get(t,"type")===l.LIST_ITEM_WITH_POPUP&&(n.hasListItemWithPopupAction=!0),this.get(t,"type")===l.GALLERY_CATEGORY&&n.set("categoryId",t),this._addEventCallbackToDynamicMenuWidgets(t,e),this._setIconIfApplicableForListItemTypeWidgets(e,t),this._hookupRemoveFromQABListener(e,t)},_setIconIfApplicableForListItemTypeWidgets:function(e,t){var n=i.byId(e),o=i.byId(t);if(n&&""===n.get("icon")&&""===n.get("quickAccessIcon")){for(var r=o.getParent();r&&r._invokingWidget&&""===r._invokingWidget.get("quickAccessIcon");)r=r._invokingWidget.getParent();r&&r._invokingWidget&&""!==r._invokingWidget.get("quickAccessIcon")&&n.set("icon",r._invokingWidget.get("quickAccessIcon"))}},_addEventCallbackToDynamicMenuWidgets:function(e,t){var n=i.byId(e);n&&!0===n.get("hasDynamicMenu")&&(n.qabDropdownPerformedEventCallback=this.addEventCallback(t,(function(e){"dropDownPerformed"===e.eventType&&(n.dropdownPerformedQABId=t,n.emit("dropdownclick",{}))})))},_removeQABDropdownPerformedEventCallback:function(e){var t=i.byId(e);t&&t.qabDropdownPerformedEventCallback&&t.qabDropdownPerformedEventCallback.remove&&(t.qabDropdownPerformedEventCallback.remove(),delete t.qabDropdownPerformedEventCallback)},_hookupAddToQABListener:function(e){var t=this.get(e,"actionId");this.actionService._actionById(t).addEventListener("propertySet",(function(t){t.originator&&t.originator.id&&t.originator.id!==e||"isInQAB"===t.data.key&&!0===t.data.newValue&&this._qabAuthoringMode===c.DEFAULT&&this._createCorrespondingComponentInQAB(e,!0)}),this)},_hookupRemoveFromQABListener:function(e,t){var n=this.get(e,"actionId");this.actionService._actionById(n).addEventListener("propertySet",(function(n){if("isInQAB"===n.data.key&&!1===n.data.newValue&&this.exists(e)){if(this.destroy(e),"string"!=typeof t)if(i.byId(e)){var o=i.byId(e).get("tag").replace("_qab","");t=this.tagToId(o)}this._removeQABDropdownPerformedEventCallback(t)}}),this)},_postProcessing:function(e){var t,i,n,o,r,a;switch(e.getType()){case l.TOOLSTRIP:t=this.create({type:l.QAB}),this.set(e.getId(),"QABId",t);break;case l.TAB_GROUP:this._qabAuthoringMode===c.DEFAULT&&((o=e.getParent()).getType()===l.TOOLSTRIP&&(r=o.getProperty("QABId")),a=this.get(e.getId(),"tag"),i=this.create({type:l.QA_GROUP,parentId:r,tag:a?a+"_qaGroup":""}),this.set(e.getId(),"QAGroupId",i));break;case l.GALLERY_PANEL:case l.GALLERY_POPUP:n=this.create({type:l.GALLERY_FAVORITE_CATEGORY,dndEnabled:!0}),this.set(e.getId(),"favCategoryId",n),this.addEventCallback(e.getId(),(function(t){"galleryStateChanged"===t.eventType&&e.getChildren().forEach((function(t){t.setProperty("qabEligible",e.getProperty("qabEligible")||!1)}))}),this),this.addPropertySetCallback(e.getId(),(function(t){"qabEligible"===t.eventType&&e.getChildren().forEach((function(t){t.setProperty("qabEligible",e.getProperty("qabEligible")||!1)}))}),this);break;case l.GALLERY:this.set(e.getId(),"currentColumnCount",this.get(e.getId(),"maxColumnCount"));break;case l.GALLERY_CATEGORY:this.addEventCallback(e.getId(),(function(t){if("categoryMoved"===t.eventType&&["Top","Bottom","Drop"].indexOf(t.action)>-1){switch(this._widgetByPeerNode(e.getParent())._moving=!0,t.action){case"Top":this.manager.move(e,e.getParent(),0);break;case"Bottom":this.manager.move(e,e.getParent(),e.getParent().getNumberOfChildren()-1);break;case"Drop":this.manager.move(e,e.getParent(),t.newIndex)}t.originator&&"UI"===t.originator.source?this._fireGalleryStateChanged(e,!0):this._fireGalleryStateChanged(e,!1)}"itemMoved"===t.eventType&&(this.manager.move(this.manager.getById(t.itemId),e,t.newIndex),t.originator&&"UI"===t.originator.source?this._fireGalleryStateChanged(e,!0):this._fireGalleryStateChanged(e,!1))}),this),this.addPropertySetCallback(e.getId(),(function(t){"qabEligible"===t.eventType&&e.getChildren().forEach((function(t){t.setProperty("qabEligible",e.getProperty("qabEligible")||!1)}))}),this);break;case l.QA_GROUP:this.addEventCallback(e.getId(),(function(t){"itemMoved"===t.eventType&&this.manager.move(this.manager.getById(t.itemId),e,t.newIndex)}),this);break;case l.GALLERY_FAVORITE_CATEGORY:this.addEventCallback(e.getId(),(function(t){"itemMoved"===t.eventType&&(this.manager.move(this.manager.getById(t.itemId),e,t.newIndex),t.originator&&"UI"===t.originator.source?this._fireGalleryStateChanged(e,!0):this._fireGalleryStateChanged(e,!1))}),this);break;case l.GALLERY_ITEM:case l.TOGGLE_GALLERY_ITEM:this.get(e.getId(),"isFavorite")&&(e.setProperty("isFavorite",!1),this.addGalleryItemToFavorites(e.getProperty("tag"),!1)),this.addEventCallback(e.getId(),(function(t){var i;"favButtonPushed"===t.eventType&&(i=e.getProperty("tag"),e.getProperty("isFavorite")?this.removeGalleryItemFromFavorites(i,!0):this.addGalleryItemToFavorites(i,!0))}),this)}this._createQABComponentIfEligible(e)},_createQABComponentIfEligible:function(e){Object.keys(g).indexOf(e.getType())>-1&&(this._hookupAddToQABListener(e.getId()),!0===this.get(e.getId(),"isInQAB")&&this._qabAuthoringMode===c.DEFAULT&&this._createCorrespondingComponentInQAB(e.getId(),!0))},_fireGalleryStateChanged:function(e,t){var i=this.widgetById(e.getId());i&&i.galleryStateChanged&&i.galleryStateChanged(t)},addGalleryItemToFavorites:function(e,t,i){var n,o,r,a,s;(a=this._peerNodeByTag(e,this._getRootNodeByType(l.GALLERY_PANEL_ROOT))||this._peerNodeByTag(e,this._getRootNodeByType(l.GALLERY_POPUP_ROOT))||this._peerNodeByTag(e,this._getRootNodeByType(l.ORPHAN_ROOT)))&&(r=a.getParent(),n=a.getProperty("actionId"),a.getProperty("isFavorite")||(null==i&&a.setProperty("favoritesPriority",0),o=r.getParent().getProperty("favCategoryId"),s=this.create({type:a.getType(),tag:a.getProperty("tag")+"_favorite",actionId:n,parentId:o,favoritesPriority:i,removable:a.getProperty("removable"),iconOverride:a.getProperty("iconOverride"),textOverride:a.getProperty("textOverride"),descriptionOverride:a.getProperty("descriptionOverride"),originator:t?{source:"addGalleryItemToFavorites"}:{source:"addGalleryItemToFavoritesProgrammatic"}}),this._setupNotInActionPropertiesSyncCallback(a,s),this.set(s,"isFavorite",!0),a.setProperty("isFavorite",!0)))},_setupNotInActionPropertiesSyncCallback:function(e,t){var i=["iconOverride","textOverride","descriptionOverride"],n=function(e){e=e.data;i.includes(e.key)&&this.set(t,e.key,e.newValue)};this._notInActionPropertiesSyncCallbackMap[e.getId()]=n,e.addEventListener("propertySet",n,this)},removeGalleryItemFromFavorites:function(e,t){var i,n,o,r;e=e.replace("_favorite",""),(i=this._peerNodeByTag(e,this._getRootNodeByType(l.GALLERY_PANEL_ROOT))||this._peerNodeByTag(e,this._getRootNodeByType(l.GALLERY_POPUP_ROOT))||this._peerNodeByTag(e,this._getRootNodeByType(l.ORPHAN_ROOT)))&&i.getProperty("isFavorite")&&((n=this._peerNodeByTag(e+"_favorite"))&&(r=t?{source:"removeGalleryItemFromFavorites"}:{source:"removeGalleryItemFromFavoritesProgrammatic"},this._isViewModelManager?(this.remove(n.getId(),r),this.destroy(n.getId())):this.destroy(n.getId(),r)),o=i.getId(),i.removeEventListener("propertySet",this._notInActionPropertiesSyncCallbackMap[o],this),delete this._notInActionPropertiesSyncCallbackMap[o],i.setProperty("isFavorite",!1))},add:function(e,t,i,n){var o,r,a,s;if(this._getRootNodeByType(l.ORPHAN_ROOT).hasDescendant(e))if(o=this.manager.getById(e),r=this.manager.getById(t),b.assert(r,"The parentId provided is not valid!"),"FooterCell"!==r.getType()||-1!==f.indexOf(o.getType())){if(r.getType()===l.GALLERY_CATEGORY&&!0===r.getProperty("alphabetize")){let e=o.getProperty("actionId"),t=this.actionService.getAction(e);i=this._getAlphabeticalIndexForGalleryItem(r,t.text)}if((i<0||i>r.getChildren().length)&&(i=r.getChildren().length),this.manager.move(o,r,i,n),o.getProperty("_wasFavorite")&&this.addGalleryItemToFavorites(o.getProperty("tag")),this._qabAuthoringMode===c.DEFAULT&&this.get(e,"type")===l.TAB_GROUP&&this.get(t,"type")===l.TOOLSTRIP){s=this.get(e,"QAGroupId"),a=this.get(t,"QABId");const o=this.manager.getById(a).getNumberOfChildren();"number"==typeof i&&i>=0&&i<o?this.add(s,a,o-i,n):this.add(s,a,0,n)}this._resizeToolstrip()}else b.warn(o.getType()+" is not supported by Footer Cell");else b.assert(!1,"The child being added should be an orphan!")},remove:function(e,t){var i;this.exists(e)?(i=this.manager.getById(e),["GalleryItem","ToggleGalleryItem"].indexOf(i.getProperty("type"))>-1&&i.getParent()&&["GalleryFavoriteCategory","OrphanRoot"].indexOf(i.getParent().getType())<0&&(i.setProperty("_wasFavorite",i.getProperty("isFavorite")),this.removeGalleryItemFromFavorites(i.getProperty("tag"))),this.manager.move(i,this._getRootNodeByType(l.ORPHAN_ROOT),void 0,t),this._qabAuthoringMode===c.DEFAULT&&this.get(e,"type")===l.TAB_GROUP&&this.remove(this.get(e,"QAGroupId")),this._resizeToolstrip()):b.assert(!1,"The node does not exist!")},destroy:function(e,t){var i;if(this.exists(e)){if(i=this.manager.getById(e),["GalleryItem","ToggleGalleryItem"].indexOf(i.getProperty("type"))>-1&&i.getParent()&&["GalleryFavoriteCategory","OrphanRoot"].indexOf(i.getParent().getType())<0){var n=i.getProperty("tag")+"_favorite";this._peerNodeByTag(n)&&this.removeGalleryItemFromFavorites(i.getProperty("tag"))}this._destroyAutoGeneratedActionIdsRecursive(i),i.destroy(t),this._resizeToolstrip()}else b.assert(!1,"The node does not exist!")},_destroyAutoGeneratedActionIdsRecursive:function(e){var t=e.getChildren();if(t.length>0)for(var i=0;i<t.length;i++)this._destroyAutoGeneratedActionIdsRecursive(t[i]);var n=e.getProperty("actionId");if(this._autoGeneratedActions[n]){var o=this.manager.getByProperty("actionId",n);1===o.length&&o[0].getId()===e.getId()&&(this.actionService.removeAction(n),delete this._autoGeneratedActions[n])}},get:function(e,t){var i,n,o,r;if(this.exists(e))return n=this.manager.getById(e),r=d[n.getType()],"type"===t?o=n.getType():r.hasOwnProperty(t)&&r[t].notInAction?(b.assert(n.hasProperty(t),"This is not a valid property!"),o=n.getProperty(t)):this._supportsAction(n.getType())?(i=n.getProperty("actionId"),b.assert(this.actionService.actionHasProperty(i,t),"This is not a valid property!"),o=this.actionService.getAction(i)[t]):b.assert(!1,"This is not a valid property!"),o;b.assert(!1,"The node does not exist!")},getChildrenIds:function(e){if(this.exists(e))return this.manager.getById(e).getChildren().map((function(e){return e.getId()}));b.assert(!1,"The node does not exist!")},exists:function(e){return this.manager.hasById(e)},indexOf:function(e){var t,i=-1;return t=this.manager.getById(e),this.getParentId(e)&&(i=t.getParent().getChildIndex(t)),i},isAnOrphan:function(e){return this._getRootNodeByType(l.ORPHAN_ROOT).hasDescendant(e)},getParentId:function(e){var t;return this.exists(e)?(t=this.manager.getById(e),this._getRootNodeByType(l.ORPHAN_ROOT).hasChild(e)||-1!==h.indexOf(t.getType())?null:t.getParent().getId()):(b.assert(!1,"A component with the given id does not exist!"),null)},set:function(e,t,i,n){var o,r,a,s={};this.exists(e)?(r=this.manager.getById(e),(a=d[r.getType()])[t]&&this._isAValidValue(i,a[t],t)&&(a[t].notInAction?r.setProperty(t,i,n):this._supportsAction(r.getType())?(o=r.getProperty("actionId"),s[t]=i,this.actionService.updateAction(o,s,n)):b.assert(!1,"This is not a valid property!"),"text"===t&&this._resizeToolstrip())):b.assert(!1,"The node does not exist!")},move:function(e,t,i,n){var o,r;o=this.manager.getById(e),b.assert(o,"The node being moved does not exist!"),r=this.manager.getById(t),b.assert(r,"The new parent node does not exist!"),(i<0||i>r.getChildren().length)&&(i=r.getChildren().length),this.manager.move(o,r,i,n)},getAllProperties:function(e){var i,n,o,r;return i=this.manager.getById(e),o=t.clone(i.getProperties()),this._supportsAction(i.getType())&&(n=i.getProperty("actionId"))&&((r=this.actionService.getAction(n))&&Object.keys(r).forEach(t.hitch(this,(function(e){d[i.getType()][e]||delete r[e]}))),o=t.mixin(o,r)),o},_resizeToolstrip:function(){if(!this._toolstripResizeDisabled){if(!this._toolstrip&&this._toolstripRoot){var e=this.manager.getByProperty("type",l.TOOLSTRIP,this._toolstripRoot);if(e.length>0){var t=e[0];t&&t.getId()&&(this._toolstrip=i.byId(t.getId()))}}this._toolstrip&&this._toolstrip.resizeToolstripWithDelay&&this._toolstrip.resizeToolstripWithDelay()}},_supportBase64URL:function(e){var i;Object.keys(u).forEach(t.hitch(this,(function(t){t in e&&"string"==typeof(i=e[t])&&0===i.indexOf("url(")&&(e[t]=this._stripURL(i))})))},_stripURL:function(e){var t=e.slice(4);return t.slice(0,t.length-1)},_verifyProperties:function(e){var t,i,n={},o={viewNodeProps:{},actionNodeProps:{}};return b.assert(e.type,"Type needs to be provided for all components!"),t=d[e.type],o.type=e.type,this._convertPopupTagToId(e),Object.keys(t).forEach((function(i){this._isAValidValue(e[i],t[i],i)?n[i]=e[i]:t[i].required?b.error(i+" needs to be provided for component of type "+e.type):n[i]=t[i].defaultValue}),this),Object.keys(n).forEach((function(e){t[e].notInAction?o.viewNodeProps[e]=n[e]:o.actionNodeProps[e]=n[e]})),o.type===l.GALLERY_POPUP?o.viewNodeProps.galleryItemWidth||(o.viewNodeProps.galleryItemWidth=v[o.viewNodeProps.galleryItemRowCount][o.viewNodeProps.galleryItemTextLineCount]):o.type===l.GALLERY&&(i=this.manager.getById(o.viewNodeProps.galleryPopupId),o.viewNodeProps.galleryItemWidth=i.getProperty("galleryItemWidth"),o.viewNodeProps.galleryItemRowCount=i.getProperty("galleryItemRowCount"),o.viewNodeProps.galleryItemTextLineCount=i.getProperty("galleryItemTextLineCount"),o.viewNodeProps.scrollToSelection=i.getProperty("scrollToSelection"),o.viewNodeProps.qabEligible=i.getProperty("qabEligible")),o},_convertPopupTagToId:function(e){var t,i={},n={popupTag:"popupId",galleryPopupTag:"galleryPopupId"};Object.keys(n).forEach((function(o){var r;t=n[o],e[o]&&((r=this.tagToId(e[o]))&&(e[t]=r),i[t]=e[t],i[t]&&this.actionService.updateAction(e.id,i))}),this)},_isAValidValue:function(e,t,i){var n,o=!0;return null==e?o=!1:"Array"===t.type?Array.isArray(e)||(b.warn(i+" property default type is "+t.type+" but you have passed "+typeof e),o=!1):typeof e!==t.type.toLowerCase()&&(o=!1,n=Array.isArray(e)?"Array":typeof e,b.warn(i+" property default type is "+t.type+" but you have passed "+n)),o},selectTab:function(e){var t,i;this.tagToPeerNodeIdMap[e]&&(i=(t=this.manager.getById(this.tagToPeerNodeIdMap[e])).getParent(),this._widgetByPeerNode(i).set("selectedTab",t.getId()))},selectFirstTabInTabGroup:function(e){var t;this.tagToPeerNodeIdMap[e]&&(t=this.manager.getById(this.tagToPeerNodeIdMap[e]))&&t.getChildren().length>0&&(this.set(this.getParentId(t.getId()),"selectedTab",""),this.set(this.getParentId(t.getId()),"selectedTab",t.getChildren()[0].getId()))},placeToolstripAt:function(e,t){var i=this.widgetByTag(e);i.placeAt(t),i.startup()},placeToolstripById:function(e,t){var i=this.widgetById(e);i.placeAt(t),i.startup()},widgetByTag:function(e){return i.byId(this.tagToId(e))},widgetById:function(e){return i.byId(e)},_widgetByPeerNode:function(e){return i.byId(e.getId().toString())},_peerNodeByTag:function(e,t){return t=t||this._getRootNodeByType(l.ROOT),this.manager.getByProperty("tag",e,t)[0]},showPopup:function(e,t){var r,a=i.byId(e.toString());a.dropdownPerformedQABId&&(r=a,a=i.byId(a.dropdownPerformedQABId)),a&&n.byId(o.get(a.domNode,"widgetid"))&&(_.indexOf(a.type)>-1?(t&&a.set("menuId",t),a.showMenu()):(a.set("popupId",t),m.isAListItemWithPopup(a.get("type"))?a.getParent().hover_timer=a.getParent().defer((function(){a.getParent()._openItemPopup(a)}),a.getParent().popupDelay):a.toggleDropDown()),a.get("hasDynamicMenu")&&(a.get("menu")._invokingWidget=a),r&&delete r.dropdownPerformedQABId)},addEventCallback:function(e,t,i){var n,o,r,a,s;return b.assert(this.exists(e),"The node does not exist!"),o=this.manager.getById(e),r=function(e){delete e.data.type,t.call(i||o.getProperties(),e.data)},o.addEventListener("peerEvent",r,i),this._supportsAction(o.getType())&&(n=o.getProperty("actionId"),s=function(e){delete e.data.type,t.call(i||this.actionService._actionById(n).getProperties(),e.data)}.bind(this),(a=this.actionService._actionById(n))?a.addEventListener("peerEvent",s,i):this._pendingActionNodeCallbacks[n]=["peerEvent",s,i]),{remove:function(){o.removeEventListener("peerEvent",r,i),this._supportsAction(o.getType())&&this.actionService._actionById(n).removeEventListener("peerEvent",s,i)}.bind(this)}},addPropertySetCallback:function(e,t,i){var n,o,r,a;return b.assert(this.exists(e),"The node does not exist!"),o=this.manager.getById(e),r=function(e){e.originator&&"UI"===e.originator.source&&t.call(i||o.getProperties(),{property:e.data.key,oldValue:e.data.oldValue,newValue:e.data.newValue})},a=function(e,n){n&&"UI"===n.source&&t.call(i,e)},o.addEventListener("propertySet",r,i),this._supportsAction(o.getType())&&(n=o.getProperty("actionId"),this.actionService.addActionChangeCallback(n,a,i)),{remove:function(){o.removeEventListener("propertySet",r,i),this._supportsAction(o.getType())&&this.actionService.removeActionChangeCallback(n)}.bind(this)}},tagToId:function(e){if(e)return this.tagToPeerNodeIdMap[e]},createPopupsFromConfig:function(e){this._disableToolstripResize(),e.popups.forEach((function(e){this._addConfigItem(e)}),this),this._enableToolstripResize()},createGalleryPopupFromConfig:function(e){this._disableToolstripResize(),this._addConfigItem(e),this._enableToolstripResize()},addToolstripFromConfig:function(e){this._disableToolstripResize(),this.create(e),this._enableToolstripResize(),this._resizeToolstrip()},addTabGroupFromConfig:function(e,t,i){this._disableToolstripResize(),this._addConfigItem(this._findInConfig(e,t),i),this._enableToolstripResize(),this._resizeToolstrip()},addStatusBarFromConfig:function(e,t){this._disableToolstripResize(),this._addConfigItem(this._findInConfig(e,t)),this._enableToolstripResize()},_addConfigItem:function(e,t){i.byId(e.id)?this.add(e.id,e.parentId):(t&&(e.parentId=this.tagToId(t)),e.id=this.create(e),e.children&&this._addChildren(e.id,e.children))},_addChildren:function(e,t){t.forEach((function(t){t.parentId=e,this._addConfigItem(t)}),this)},_findInConfig:function(e,t){var i;return function e(t,n){t.tag!==n?t.children&&t.children.forEach((function(t){e(t,n)})):i=t}(e,t),i},cleanup:function(){this.isMATLABDriven||this._getRootNodeByType(l.ROOT).destroy(),this.actionService.destroy(),this._isViewModelManager?this.manager.destroy():r.cleanup(this._channel)},_getRootNodeByType:function(e){var t=null;if(this._typeToRootNodeMap[e])t=this._typeToRootNodeMap[e];else{var i=this.manager.getByType(e);i&&(t=i[0]),this._typeToRootNodeMap[e]=t}return t},getAllCategoriesInDescendingOrder:function(e){var t,i=[],n=e.getChildren();for(t=n.length-1;t>=0;--t)i.push(n[t]);return i},getGalleryState:function(e){var t,i,n,o=[],r=this.tagToId(e);if(i={items:{tags:[],isFavorite:[]},categories:{tags:[]}},this.exists(r))return n=this.manager.getById(r),t=this.manager.getById(n.getProperty("favCategoryId")).getChildren(),n.getChildren().forEach((function(e){e.getChildren().forEach((function(e){o.push(e)}))})),t.concat(o).forEach((function(e){var t,n;e.getProperty("actionId");t=(t=e.getProperty("tag")).replace("_favorite",""),n=e.getProperty("isFavorite"),-1===i.items.tags.indexOf(t)&&(i.items.tags.push(t),i.items.isFavorite.push(n))}),this),i.categories.tags=n.getChildren().map((function(e){return e.getProperty("tag")})),n.setProperty("state",i),i;b.assert(!1,"The node does not exist!")},setGalleryState:function(e,t){var i,n,o,r,a,s=0,l=this.tagToId(e),c={source:"setGalleryState"};if(!this.exists(l))return void b.assert(!1,"The node does not exist!");i=this.manager.getById(l),r=i.getProperty("favCategoryId"),[...this.manager.getById(r).getChildren()].forEach((function(e){a=(a=e.getProperty("tag")).replace("_favorite",""),-1!==t.items.tags.indexOf(a)&&(this._peerNodeByTag(a).setProperty("isFavorite",!1),e.destroy(!0))}),this),t.items.tags.forEach((function(e,o){var a;t.items.isFavorite[o]&&(n=this.manager.getByProperty("tag",e,i)).length>0&&(a=this.create({type:n[0].getType(),tag:e+"_favorite",actionId:n[0].getProperty("actionId"),iconOverride:n[0].getProperty("iconOverride"),textOverride:n[0].getProperty("textOverride"),descriptionOverride:n[0].getProperty("descriptionOverride")}),this.add(a,r,s,c),s+=1,this._setupNotInActionPropertiesSyncCallback(n[0],a),this.set(a,"isFavorite",!0),n[0].setProperty("isFavorite",!0))}),this),t.categories.tags.forEach((function(e,t){o=this.tagToId(e),this.exists(o)&&this.move(o,l,t,c)}),this)},getQABState:function(e){var t,n,o,r=[],a=this.get(this.tagToId(e),"QABId");return this.getChildrenIds(a).forEach((function(e){this.getChildrenIds(e).forEach((function(e,a){var s={};s.tag=this.get(e,"tag"),s.showText=this.get(e,"showText"),s.index=a,(t=i.byId(e))&&(n=t.get("actionId"))&&(o=this.actionService.getAction(n))&&o.groupIdForLazyLoadingQABItems&&(s.groupIdForLazyLoadingQABItems=o.groupIdForLazyLoadingQABItems),o=null,n=null,t=null,r.push(s)}),this)}),this),r},setQABState:function(e,t,i,n){this.get(this.tagToId(e),"QABId");if(!Array.isArray(t)&&void 0!==t){var o=[];Object.keys(t).forEach((function(e){var i={};i.tag=e,i.showText=t[e].showText,o.push(i)})),t=o.length>0?o:void 0}if(void 0===t)i.forEach((function(e){var t=this.create(e);this.set(t,"isInQAB",!0),this._hookupRemoveFromQABListener(t)}),this);else{let e=[];t.forEach((function(t){if(!(e.indexOf(t.tag)>-1)){var o=t.tag,r=!1,a=!!t.showText,s=t.index,l=t.groupIdForLazyLoadingQABItems;if(i.forEach((function(e){if(e.tag===o){r=!0,e.showText=a;var t=this.create(e);this.set(t,"isInQAB",!0),this._hookupRemoveFromQABListener(t)}}),this),!r){let e=o.replace("_qab",""),i=this.tagToId(e);if(i&&Object.keys(g).indexOf(this.get(i,"type"))>-1&&!1===this.get(i,"isInQAB")){let e=this._createCorrespondingComponentInQAB(i);e&&(this.set(i,"isInQAB",!0),this.set(e,"showText",a))}else if(l&&!n){this.lazyLoadingQABItemsMap[l]||(this.lazyLoadingQABItemsMap[l]=[]),this.lazyLoadingQABItemsMap[l].some((function(e){return e.tag===t.tag}))||this.lazyLoadingQABItemsMap[l].push({tag:o,showText:a,index:s})}else{var c=this.tagToId(o);c&&this.set(c,"showText",a)}}}}),this)}},lazyLoadQABItems:function(e){this.lazyLoadingQABItemsMap&&this.lazyLoadingQABItemsMap[e]&&this.lazyLoadingQABItemsMap[e].forEach(function(t){var i=t.tag.replace("_qab",""),n=this.tagToId(i);if(n&&Object.keys(g).indexOf(this.get(n,"type"))>-1&&!1===this.get(n,"isInQAB")){var o=this._createCorrespondingComponentInQAB(n,null,t.index);this.set(o,"showText",t.showText),this.set(n,"isInQAB",!0),delete this.lazyLoadingQABItemsMap[e]}}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2884),i(2885),i(2886),i(1732)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(){},getCommitStrategy:function(e){switch(commitStrategyType=void 0===e?o.AlwaysCommit:e.type,commitStrategyType){case o.AlwaysCommit:return new t;case o.BatchCommit:return new i(e.delay);case o.Manual:return new n;default:return new t}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1289)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},transactionStarted:function(){},transactionEnded:function(){this.onReadyToCommit()},manualCommit:function(){this.onReadyToCommit()},detach:function(){},onReadyToCommit:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1289),i(883)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._batchInterval=e||0,this._commitFlag=!0,this._transactionFlag=!1,this._timerId=-1},transactionStarted:function(e){this._transactionFlag=!0,-1===this._timerId&&(this._commitFlag=!1,this._timerId=setTimeout(this._batchIntervalCallback.bind(this),this._batchInterval))},transactionEnded:function(e){this._transactionFlag=!1,this._notifyTransactionHandler()},manualCommit:function(){this._flushTimeout()},_notifyTransactionHandler:function(){this._commitFlag&&!this._transactionFlag&&this.onReadyToCommit()},_batchIntervalCallback:function(){this._timerId=-1,this._commitFlag=!0,this._notifyTransactionHandler()},onReadyToCommit:function(){},detach:function(){if(this._transactionFlag)throw new Error("Error: Commit Strategy cannot be swapped mid transacton");this._flushTimeout()},_flushTimeout:function(){-1!==this._timerId&&(clearTimeout(this._timerId),this._batchIntervalCallback())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1289)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._transactionInProgressFlag=!1,this._manualCommitFlag=!1,this._pendingTransactionFlag=!1},transactionStarted:function(){this._transactionInProgressFlag=!0,this._pendingTransactionFlag=!0},transactionEnded:function(){this._transactionInProgressFlag=!1,this._manualCommitFlag&&(this._manualCommitFlag=!1,this.onReadyToCommit())},manualCommit:function(){this._transactionInProgressFlag?this._manualCommitFlag=!0:this._pendingTransactionFlag&&this.onReadyToCommit()},detach:function(){this._pendingTransactionFlag&&this.onReadyToCommit()},onReadyToCommit:function(){this._pendingTransactionFlag=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(204),i(2888),i(776),i(704)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=r.getMetadata("");return e(n,{constructor:function(e){this._transactionStackSize=0,this._transaction=null,this._applicationMetadata=a,this._commitStrategyListener=null,this.setCommitStrategy(e)},beginTransaction:function(){0===this._transactionStackSize&&(Boolean(this._transaction)||(this._transaction=this._viewModelManager._mf0Model.beginTransaction()),this._commitStrategy.transactionStarted()),this._transactionStackSize+=1},commitTransaction:function(e){void 0!==e&&(this._applicationMetadata=r.getMetadata(e)),this._transactionStackSize-=1,0===this._transactionStackSize&&this._commitStrategy.transactionEnded()},manualCommit:function(e){void 0!==e&&(this._applicationMetadata=r.getMetadata(e)),this._commitStrategy.manualCommit()},setCommitStrategy:function(e){Boolean(this._commitStrategyListener)&&this._commitStrategyListener.remove(),this._commitStrategy=e,this._commitStrategyListener=t.after(this._commitStrategy,"onReadyToCommit",i.hitch(this,"_confirmCommitListener"),!0)},_registerViewModelManager:function(e){this._viewModelManager=e},_confirmCommitListener:function(){var e=this._transaction,t=r.toJSON(this._applicationMetadata);this._transaction=null,this._applicationMetadata=a,e.commit(t)},destroy:function(){this._viewModelManager=null,this._commitStrategyListener.remove(),this._commitStrategy.detach(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},beginTransaction:function(){throw new Error("Unimplemented API: transactionStarted")},commitTransaction:function(e){throw new Error("Unimplemented API: transactionEnded")},manualCommit:function(e){throw new Error("Unimplemented API: manualCommit")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(309)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=(i=t)&&i.__esModule?i:{default:i};var o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.receiver=null}return o(e,[{key:"send",value:function(e){n.default.throwErr("Implement")}},{key:"receive",value:function(e){this.receiver&&this.receiver(e)}},{key:"setReceiver",value:function(e){this.receiver=e}}]),e}();e.default=r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(396)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=(i=t)&&i.__esModule?i:{default:i};e.default={root:{ClassNameMustBeAString:"Class name must be a string.",DuplicateTypeInRegistry:"Cannot register type '${0}', type with the same qualified name already exists.",NoQualifiedName:"Object has no qualified name.",CannotAddIncompatibleTypes:"Cannot add object of an incompatible type '${0}' while expecting '${1}'.",InvalidIndex:"Invalid index.",UnsupportedQualification:"Property qualification of type '${0}' is not supported.",CannotAddIncompatibleObjectSubset:"Cannot add the object that does not match the filter into the subset collection.",CannotUsePropertyWithoutType:"Cannot use property '${0}' without a type.",NoSuchProperty:"No property '${0}' has been found for object of type '${1}'.",NoSetterForCollections:"Setters for collections are unsupported. Use a getter instead and work on the returned collection.",UUIDConflict:"UUID Conflict.",ChangesProhibited:"Changes are not allowed at this phase of the transaction.",CannotCastIncompatibleTypes:"Incompatible type, expecting '${0}'.",NoSuchType:"Type '${0}' has not been found in the registry.",UniquenessConstraint:"Violated uniqueness constraint.",CannotAddSecondObject:"Cannot add second instance of this object.",CannotSetReadOnlyProperty:"Cannot set read-only property '${0}'.",CannotAddNonExistentObject:"Cannot add nonexistent object.",CannotCreateWithoutModel:"Cannot create an object without a model.",CyclicInheritance:"Cyclic inheritance of class '${0}' detected.",UnknownClass:"Unknown class: '${0}'.",CircularContainment:"Object cannot be indirectly contained by itself.",CannotChangeModel:"Cannot move object to another model.",UnknownProperty:"Unknown property '${0}' of class '${1}'.",NoOpenTransaction:"Transaction is not open.",CorruptInput:"Cannot parse the input: incorrect format.",CannotInstantiateType:"Failed to instantiate type '${0}'.",DanglingReference:"Cannot establish association to a dangling reference to '${0}'.",ExtensionMustHaveName:"Cannot add a dynamic property without a name",ExtensionNameMustBeUnique:"Cannot add a dynamic property: a dynamic property with that name already exists.",ExtensionMustHaveDefaultValue:"Single-valued dynamic primitive property must have a default value",InvalidValue:"The property value is invalid.",NoChannel:"No channel present.",Implement:"Must be implemented.",InvalidObject:"Invalid object '${0}' of type '${1}'.",EmptyValue:"Assigning an empty value to mandatory property: '${0}'",SealedDatatype:"Cannot assign to sealed datatypes. Make a copy of the datatype using clone() method",SetFunction:"Set the function '${0}'.",NoSetterForSubsets:"Setters for single-valued properties that subset multi-valued properties are disallowed.",CannotInstantiateAbstract:"Cannot instantiate abstract class '${0}'.",CannotInitializeCollection:"Cannot initialize collection '${0}'.",CannotInstantiateCollection:"Cannot instantiate collection '${0}'.",InitializerMustBeObject:"Initializer should be a plain object.",TypeNameMustBeString:"Type name must be string.",MustBeSubclass:"'${0}' must be a subclass of '${1}'.",AssociationInitializer:"Association must be initialized with an "+n.default.ModelElement+".",AbstractCannotSubclassConcrete:"Abstract class cannot subclass concrete class.",LoadError:"The specification is already loaded but its family or version do not match.",CannotBeComposite:"Association cannot be composite on both ends.",UnexpectedValue:"Unexpected value.",CannotApplyChangeReport:"Cannot apply the change report: the change is incompatible with the current state",TransactionInProgress:"Transaction in progress.",UnderlyingParserProblem:"Failed to parse: '${0}'.",InvalidSerializeIdentification:"'${0}' cannot be used as identification for object of type '${1}'.",ThawCountZero:"Expected thawCount to be 0",NoSuchExtension:"No extension '${0}' has been found for object of type '${1}'.",FailedToRollback:"Failed to rollback.",UnspecifiedType:"Unspecified type.",AttributeClassError:"Cannot create an attribute class due to name conflict with '${0}'.",ModelFrozen:"Model is frozen and cannot be changed.",DataTypeSuperclass:"Superclasses for data types are disallowed.",NoDataTypeSlicing:"Slicing for data types is unsupported.",UnknownEnumeration:"Unknown enumeration: '${0}'.",ExpectedOnePkg:"Expected exactly one top level package.",ExpectedNumericValue:"Enumeration literal '${0}' must have numeric value.",InvalidDateTimeDefaultValue:"Invalid DateTime default value: '${0}.'",InvalidPropertyValueCustomizer:"Invalid property value customizer."}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1290),i(1291),i(1734),i(1735),i(1736),i(293),i(1055),i(396)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var c=_(t),d=_(i),u=_(n),h=_(o),p=_(r),f=_(a),g=_(s),m=_(l);function _(e){return e&&e.__esModule?e:{default:e}}var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var b=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=new Map,this.dynamicContext=new Map}return b(e,[{key:"add",value:function(e,t){this.context.set(e,this.serialize(t))}},{key:"addDynamic",value:function(e,t){var i=this;this.dynamicContext.set(e,(function(){return i.serialize(t())}))}},{key:"createDocument",value:function(e){var t=this.toJson();return t.message&&console.warn("Overwriting message property of log"),t.message=e,{contents:t}}},{key:"wrapDocument",value:function(e){var t=this.toJson();t.children=e.contents,e.contents&&console.warn("Overwriting children property of log"),e.contents=t}},{key:"toJson",value:function(){var e={},t=!0,i=!1,n=void 0;try{for(var o,r=this.context[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;e[a[0]]=a[1]}}catch(e){i=!0,n=e}finally{try{!t&&r.return&&r.return()}finally{if(i)throw n}}var s=!0,l=!1,c=void 0;try{for(var d,u=this.dynamicContext[Symbol.iterator]();!(s=(d=u.next()).done);s=!0){var h=d.value;e[h[0]]=h[1]()}}catch(e){l=!0,c=e}finally{try{!s&&u.return&&u.return()}finally{if(l)throw c}}return e}},{key:"serialize",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];switch(void 0===e?"undefined":v(e)){case"bigint":case"number":case"boolean":case"string":return e;case"object":if(null===e)return null;if(e instanceof Map){var n={},o=!0,r=!1,a=void 0;try{for(var s,l=e.entries()[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var f=s.value;n[this.serializeAsKey(f[0])]=this.serialize(f[1],i)}}catch(e){r=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw a}}return n}if(e instanceof Set){var m=[],_=!0,b=!1,y=void 0;try{for(var C,T=e.values()[Symbol.iterator]();!(_=(C=T.next()).done);_=!0){var E=C.value;m.push(this.serialize(E,i))}}catch(e){b=!0,y=e}finally{try{!_&&T.return&&T.return()}finally{if(b)throw y}}return m}if(e instanceof u.default||e instanceof g.default){var S={};return e.forEach((function(e,n){S[t.serializeAsKey(n)]=t.serialize(e,i)})),S}if(e instanceof h.default){var w={};return e.forEach((function(e,n){var o=n.key,r=t.serializeAsKey(o);void 0===w[r]&&(w[r]=[]),w[r].push(t.serialize(e,i))})),w}if(e instanceof d.default||e instanceof c.default||e instanceof p.default){var I=[];return e.forEach((function(e){return I.push(t.serialize(e,i))})),I}if(e instanceof Date)return e.toISOString();if(e.getMetaClass){var A=e.getMetaClass(),x=A.getMetaClass();if(x.isA(mf.zero.meta.Class.metaClass))return i?this.serializeElement(e):this.serializeReference(e);if(x.isA(mf.zero.meta.DataType.metaClass)){var N={},L=!0,D=!1,M=void 0;try{for(var P,O=this.getAllProperties(A)[Symbol.iterator]();!(L=(P=O.next()).done);L=!0){var R=P.value;N[R.name]=this.serialize(e.getPropertyValue(R),!0)}}catch(e){D=!0,M=e}finally{try{!L&&O.return&&O.return()}finally{if(D)throw M}}return N}}return void 0!==e.literal&&void 0!==e.type&&void 0!==e.value?e.literal:e;default:return null}}},{key:"getAllProperties",value:function(e){for(var t=[];e&&e.qualifiedName!==m.default.ModelElement;){var i=!0,n=!1,o=void 0;try{for(var r,a=e.ownedAttributes[Symbol.iterator]();!(i=(r=a.next()).done);i=!0){var s=r.value;t.push(s[1])}}catch(e){n=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw o}}e=e.superclass}return t}},{key:"serializeElement",value:function(e,t){var i=this.serializeReference(e),n=e.getMetaClass(),o=!0,r=!1,a=void 0;try{for(var s,l=this.getAllProperties(n)[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;i[c.name]=this.serialize(e.getPropertyValue(c),c.isComposite)}}catch(e){r=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw a}}return i}},{key:"serializeReference",value:function(e){return e?{uuid:e.uuid}:null}},{key:"serializeAsKey",value:function(e){switch(void 0===e?"undefined":v(e)){case"undefined":return f.default.generateRandomUuid();case"object":e.getMetaClass().getMetaClass();return metaClass.isA(mf.zero.meta.Class.metaClass)?null===e?f.default.generateRandomUuid():e.uuid:f.default.generateRandomUuid();default:return e}}}]),e}();e.default=y}),e,t),e.exports=o},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,i){var n,o;n=[t,i(884),i(610),i(1737),i(1292)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s(t),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i),a=s(n);function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),c=function(){function e(i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.span=t.internalSpan.createChild("HostSyncBackend"),this.messageService=i}var i,n;return l(e,[{key:"start",value:(i=regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.messageService.subscribe("/modeling/mf0/log_host/domain_spec",(function(e){return t.handle(e)}),this);case 2:return e.next=4,this.messageService.publish("/modeling/mf0/log_host/startup",{domain:""});case 4:this.span.log(r.info,"Startup message published");case 5:case"end":return e.stop()}}),e,this)})),n=function(){var e=i.apply(this,arguments);return new Promise((function(t,i){return function n(o,r){try{var a=e[o](r),s=a.value}catch(e){return void i(e)}if(!a.done)return Promise.resolve(s).then((function(e){n("next",e)}),(function(e){n("throw",e)}));t(s)}("next")}))},function(){return n.apply(this,arguments)})},{key:"handle",value:function(e){var t=this.span.createChild();t.addContext(r.info,"spec",e),t.log(r.debug,"Domain spec received"),o.default.setSpec(new a.default(e.data.spec),""===e.data.domain?void 0:e.data.domain)}},{key:"log",value:function(e,t,i,n,o){var r={channel:i,verbosity:e,content:n};""!==t&&(r.domain=t),this.messageService.publish("/modeling/mf0/log_host/log",r)}}]),e}();e.default=c}),e,t),e.exports=o},function(e,t){var i,n,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:r}catch(e){i=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],d=!1,u=-1;function h(){d&&l&&(d=!1,l.length?c=l.concat(c):u=-1,c.length&&p())}function p(){if(!d){var e=s(h);d=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,d=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];c.push(new f(e,t)),1!==c.length||d||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,i){var n,o;n=[t,i(293),i(309),i(1056),i(564)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setOldContainer=function(e,t,i){(0,n.isChanged)(e,"containerFeature")||(e._changedProperties.add("containerFeature"),e._container=t,e._containerFeature=i)};s(t);var r=s(i),a=s(n);function s(e){return e&&e.__esModule?e:{default:e}}var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};var c=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var d=function(e){function t(e,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o._container=null,o._containerFeature=null,o.model=i,o.metaclass=n,o.values=l({},n.getEmptyAttributesTemplate()),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),c(t,[{key:"getOldValue",value:function(e){return e.isSingleValuedAssociation()&&e.isContainer()?this._containerFeature===e.opposite?this._container:null:(e.isSingleValued()||this.values[e.name]||(this.values[e.name]=e.qualifiedBy?new Map:e.isOrdered?[]:new Set),this.values[e.name])}},{key:"getExtensionOldValue",value:function(e){var t=this.model.getExtension(this.metaclass,e);t||r.default.throwErr("NoSuchProperty",e,this.metaclass.qualifiedName);var i=this.extensionChanges.get(t.uuid);return i||r.default.throwErr("NoSuchProperty",e,this.metaclass.qualifiedName),i}},{key:"revertUnchanged",value:function(e){var t=this;if((0,n.isChanged)(this,"containerFeature"))if(this._containerFeature||e.containerFeature){if(this._containerFeature===e.containerFeature){var i=(0,o.basicContainer)(e);this._container===i&&this.clearModified("containerFeature")}}else this.clearModified("containerFeature");return this.getChangedProperties().forEach((function(i){return t.revertOne(e,i)})),!this.isEmpty()}},{key:"revertOne",value:function(e,t){if(t.isSingleValued()){var i=this.getOldValue(t),n=e[t.name];(i||n)&&i!==n||this.clearModified(t.name)}}}]),t}(a.default);e.default=d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.ValidationCacheMixin=function(e){return function(e){function a(){t(this,a);var e=n(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return e._age=0,e}return r(a,e),i(a,[{key:"invalidate",value:function(){this._age+=1}},{key:"get",value:function(e){var t=o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"get",this).call(this,e);return void 0!==t&&t.age===this._age?t.value:void 0}},{key:"cache",value:function(e,t){o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"cache",this).call(this,e,{age:this._age,value:t})}}]),a}(e)},e.FunctionCacheMixin=function(e){return function(e){function o(){return t(this,o),n(this,(o.__proto__||Object.getPrototypeOf(o)).call(this))}return r(o,e),i(o,[{key:"evalAndCache",value:function(e,t){var i=t();return this.cache(e,i),i}},{key:"getOrEval",value:function(e,t){var i=this.get(e);return void 0!==i?i:this.evalAndCache(e,t)}}]),o}(e)},e.ConditionalFunctionCacheMixin=function(e){return function(e){function o(){return t(this,o),n(this,(o.__proto__||Object.getPrototypeOf(o)).call(this))}return r(o,e),i(o,[{key:"evalAndCache",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=t();return i&&!i(n)||this.cache(e,n),n}},{key:"getOrEval",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.get(e);return void 0!==n?n:this.evalAndCache(e,t,i)}}]),o}(e)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(396),i(1056)],o=i.dj.d(n,(function(e,t,i,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(t),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function l(e,t,i){o.default.forEach(i||[r.default.ModelElement],(function(i){for(var n=0,o=t.length;n<o;++n)if(t[n].isInstOf(i)&&!1===e(t[n]))return}))}var c=function(){function e(t,i,n,o,r,a,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.model=t,this._delta=i,this._added=[],this._modified=[],this._destroyed=[],this._ephemeral=[],this.metadata=n,this._deferredEvents=o,this._revertUnchanged=r,this.origin=a,this.isDeep=s}return s(e,[{key:"isEmpty",value:function(){return o.default.isEmpty(this._added)&&o.default.isEmpty(this._modified)&&o.default.isEmpty(this._destroyed)&&o.default.isEmpty(this._ephemeral)&&o.default.isEmpty(this._deferredEvents)}},{key:"findChanges",value:function(e){return this._delta[e]}},{key:"processElement",value:function(e){var t=this.findChanges(e.uuid);t.isCreated?t.isDestroyed?this._ephemeral.push(e):this._added.push(e):t.isDestroyed?this._destroyed.push(e):this._revertUnchanged&&!t.revertUnchanged(e)||this._modified.push(e)}},{key:"isChanged",value:function(e,t){if(!e||!t)return!1;var i=this.findChanges(e.uuid);return!!i&&(!!e.getMetaClass().isA(t.owningType)&&i.isChanged(t))}},{key:"getChangedProperties",value:function(e){if(!e)return[];var t=this.findChanges(e.uuid);return t?t.getChangedProperties():[]}},{key:"getOldValue",value:function(e,t){if(!e||!t)return null;var i=this.findChanges(e.uuid);return i&&e.getMetaClass().isA(t.owningType)?i.getOldValue(t):null}},{key:"processAdded",value:function(e,t){l(e,this._added,t)}},{key:"processModified",value:function(e,t){l(e,this._modified,t)}},{key:"processDestroyed",value:function(e,t){l(e,this._destroyed,t)}},{key:"processEphemeral",value:function(e,t){l(e,this._ephemeral,t)}},{key:"isExtensionChanged",value:function(e,t){if(!e)return!1;var i=this._delta[e.uuid];return!!i&&(0,n.isExtensionChanged)(i,t)}},{key:"getChangedExtensions",value:function(e){if(!e)return[];var t=this._delta[e.uuid];return t?t.getChangedExtensions():[]}},{key:"processDeferredEvents",value:function(e){for(var t=0,i=this._deferredEvents.length;t<i;++t){var n=this._deferredEvents[t];if(n.source.isValid&&!1===e(n))return}}}]),e}();e.default=c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(309)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=(i=t)&&i.__esModule?i:{default:i};var o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,[{key:"getUsedPackageUris",value:function(){n.default.throwErr("Implement")}},{key:"elementCreated",value:function(e){}},{key:"elementDestroying",value:function(e){}},{key:"clear",value:function(){}}]),e}();e.default=r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(884),i(610)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=(n=t)&&n.__esModule?n:{default:n},r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i);var a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=!1,l=!1,c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return a(e,null,[{key:"register",value:function(){s||(s=!0,o.default.addBackend(new e))}},{key:"setLogStock",value:function(e){l=e}}]),a(e,[{key:"translateVerbosity",value:function(e){return e<=r.debug?"debug":e<=r.info?"info":e<=r.return_value?"log":e<=r.warning?"warn":"error"}},{key:"log",value:function(e,t,i,n,o){void 0!==t&&console.group("Domain: "+t),console[this.translateVerbosity(e)](o,n),l&&(console.groupCollapsed("trace: "+o),console.trace(),console.groupEnd()),void 0!==t&&console.groupEnd()}}]),e}();e.default=c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(2901),i(293),i(309),i(1744),i(1295),i(1059),i(2902),i(2903),i(2904),i(2905),i(2906),i(2907),i(2908),i(2909),i(1739),i(1293),i(780),i(396),i(611),i(778),i(779),i(1294),i(1740),i(2911),i(1746)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0});W(t);var I=W(i),A=W(n),x=W(o),N=W(s),L=W(l),D=W(c),M=W(d),P=W(u),O=W(h),R=W(p),k=W(f),F=W(g),B=W(m),H=W(v),V=W(y),j=W(S),U=W(w);function W(e){return e&&e.__esModule?e:{default:e}}var G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var q=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function K(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function X(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Y=null,Q={},$=new T.SimpleFunctionCache;function J(e){if(!e)return new Date(0);if("now"===e)return new Date;var t=new Date(e);return isNaN(t)&&A.default.throwErr("InvalidDateTimeDefaultValue",e),t}function Z(){if(Y)return Y;B.default.registerConstructor("DateTime",J),ce.extendClass(H.default.Property,N.default),ce.extendClass(H.default.StructuredType,L.default),ce.extendClass(H.default.Class,D.default),ce.extendClass(H.default.Package,M.default),ce.extendClass(H.default.EnumLiteral,P.default),ce.extendClass(H.default.Type,O.default),ce.extendClass(H.default.Extension,R.default),ce.extendClass(H.default.AttributeMap,k.default);var e=ce.loadDefinitionInBootstrap(x.default);return(0,_.initialize)(),Y=e}function ee(e){e.superclass&&A.default.throwErr("DataTypeSuperclass");var t=e.properties?Object.values(e.properties):[],i=!0,n=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;l.initializer=(0,a.makePropertyInitializer)(l)}}catch(e){n=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw o}}return function(i){function n(e){z(this,n);var i=K(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),o=!0,r=!1,a=void 0;try{for(var s,l=t[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){s.value.initializer.call(i)}}catch(e){r=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw a}}return re(i,e),i.getMetaClass(),i.__isSealed=!1,Object.seal(i),i}return X(n,i),q(n,[{key:"clone",value:function(){var t=e.fqn,i=new(B.default.get(t)),n=!0,o=!1,r=void 0;try{for(var a,s=Object.values(B.default.getType(t).getAllAttributes())[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;i[l.name]=l.isDataType()?this[l.name]&&this[l.name].clone():this[l.name]}}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}},{key:"getMetaClass",value:function(){return(0,C.constConditionalEvalOnce)(this,"getMetaClass",(function(){return B.default.getType(e.fqn)}),(function(e){return e&&G(n.prototype,{getMetaClass:function(){return e}}),e}))}}]),n}(F.default)}function te(e){var t=e.properties?Object.values(e.properties):[],i=!0,n=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var l=r.value;l.subsets?l.initializer=(0,a.makeSubsettedPropertyInitializer)(l):l.initializer=(0,a.makePropertyInitializer)(l)}}catch(e){n=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw o}}var c=B.default.get(e.superclass);return void 0===c&&console.warn("Undefined superclass. This is likely to fail",e.superclass),function(i){function n(i,o,r){z(this,n);var a=void 0,s=void 0,l=void 0;I.default.isString(o)?a=o:I.default.isObject(o)&&(a=(s=o).uuid,l=i.beginRevertibleTransaction());try{var c=K(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,i,a,!0));e.isAbstract&&c.constructor===n&&A.default.throwErr("CannotInstantiateAbstract",e.name);var d=!0,u=!1,h=void 0;try{for(var p,f=t[Symbol.iterator]();!(d=(p=f.next()).done);d=!0){p.value.initializer.call(c)}}catch(e){u=!0,h=e}finally{try{!d&&f.return&&f.return()}finally{if(u)throw h}}if(e.events){var g=!0,m=!1,_=void 0;try{for(var v,b=Object.keys(e.events)[Symbol.iterator]();!(g=(v=b.next()).done);g=!0){var y=v.value,T=e.events[y];c[y]=new j.default(c,y,T.parameters)}}catch(e){m=!0,_=e}finally{try{!g&&b.return&&b.return()}finally{if(m)throw _}}}re(c,s),l&&l.commit()}catch(e){throw l&&l.cancel(),e}return e.isAttributeClass&&(c.getType=(0,C.useConditionalOnce)((function(){return B.default.getType(e.properties.value.type)}))),c.getMetaClass=c.getMetaClass.bind(c),r||Object.seal(c),c}return X(n,i),q(n,[{key:"getMetaClass",value:function(){return(0,C.constConditionalEvalOnce)(this,"getMetaClass",(function(){return B.default.getType(e.fqn)}),(function(e){return e&&G(n.prototype,{getMetaClass:function(){return e}}),e}))}}]),n}(c)}function ie(e,t){var i=t.fqn,n=H.default.ModelElement===i?V.default:e(t);B.default.registerConstructor(i,n),Object.defineProperty(n,"metaClass",{get:function(){return B.default.getType(i)}}),ce.extendClass(i),I.default.forEach(t.properties,I.default.partial(ne,n,t)),I.default.forEach(t.propertiesInherited,I.default.partial(oe,n,t))}function ne(e,t,i,n){Object.defineProperty(e.prototype,n,{configurable:!0,enumerable:!0,get:(0,a.makeGetter)(i,n),set:(0,a.makeSetter)(t,i,n)})}function oe(e,t,i,n){(0,a.isPrimitiveType)(i.type,i.isPrimitive)&&(0,a.isSingleValued)(i.upper)&&(0,a.isKeyIn)(i,t)&&Object.defineProperty(e.prototype,n,{configurable:!0,enumerable:!0,get:(0,a.makeGetter)(i,n),set:(0,a.makeSetter)(t,i,n)})}function re(e,t){if(t){var i=e.getMetaClass().getAllAttributes();I.default.forEach(t,(function(t,n){var o=i[n];if(o)if(o.isSingleValued())e.setPropertyValue(o,ae(e,o,t));else{var r=e.getPropertyValue(o);r.clear(),t.forEach||A.default.throwErr("CannotInitializeCollection",n),t.forEach((function(t){return r.genericAdd(ae(e,o,t))}))}}))}}function ae(e,t,i){if(t.isAssociation()){var n=(0,a.isStructuredType)(i);if(t.isComposite){I.default.isObject(i)&&!n||A.default.throwErr("InitializerMustBeObject");var o=t.type,r=i.type;if(r){I.default.isString(r)||A.default.throwErr("TypeNameMustBeString");var s=B.default.getType(r);s||A.default.throwErr("NoSuchType",r),s.isA(o)||A.default.throwErr("MustBeSubclass",r,o.qualifiedName),o=s}return o.instantiate(e.getModel(),I.default.omit(i,["type"]))}n||A.default.throwErr("AssociationInitializer")}else if(t.isDataType())return new(B.default.get(t.type.qualifiedName))(i);return i}function se(e){function t(e,t,i){for(var n=t[e]||{},o=Object.keys(n),r=0,a=o.length;r<a;++r)B.default.getType(n[o[r]].fqn).owningPackage=i}(0,r.processPackages)(e,(function(i,n){var o=B.default.getPackage(n.uri);!function(t,i){i.parentPackage||(i.parentPackage=B.default.getPackage(e.uri));for(var n=t.packages||{},o=Object.keys(n),r=0,a=o.length;r<a;++r)B.default.getPackage(n[o[r]].uri).parentPackage=i}(n,o),t("primitiveTypes",n,o),t("dataTypes",n,o),t("enumerations",n,o),t("classes",n,o)}),(function(t,i){var n=B.default.getType(i.fqn);n.owningPackage||(n.owningPackage=B.default.getPackage(e.uri))}),I.default.noop,I.default.noop,(function(e,t){B.default.getMetaElement(t.fqn).parentEnum=B.default.getType(e)}),I.default.noop,(function(e,t){B.default.getMetaElement(t.fqn).owningType=B.default.getType(e)}),(function(e,t){B.default.getMetaElement(t.fqn).owningType=B.default.getType(e)}))}function le(e,t){var i=B.default.getMetaRegistryModel();t=t||i.getDefaultTransactionFactory();var n=(0,r.resolveInfo)(e);return $.getOrEval(n.uri,(function(){e=I.default.cloneDeep(e),(0,r.resolve)(e,n);var i=(0,b._startMetaRegistryModification)(),o=t.beginTransaction();return function(e){I.default.forEach((0,r.select)(e,"enumerations"),(function(e){var t=(0,r.setLiteralValues)(e),i=e.fqn,n={},o={},a=function(){};a.prototype.getDefaultValue=function(){return t},a.prototype.getMetaClass=function(){return B.default.getType(i)},a.prototype.getItem=function(e){return I.default.isNumber(e)?n[e]:I.default.isString(e)?o[e]:void 0};var s=new a;I.default.forEach(e.literals,(function(t,i){var r=function(e,t,i){this.literal=e,this.value=t,this.type=i};r.prototype.getTypeName=function(){return this.type},r.prototype.getType=function(){return B.default.getType(this.type)},r.prototype.toString=function(){return this.literal};var a=Object.freeze(new r(i,t.value,e.fqn));n[t.value]=a,o[i]=a,s[i]=a})),B.default.addEnumeration(e.fqn,Object.freeze(s))}))}(e),function(e){I.default.forEach((0,r.select)(e,"dataTypes"),I.default.partial(ie,ee))}(e),function(e){I.default.forEach((0,r.getTopoSorted)(e),I.default.partial(ie,te))}(e),function(e){var t=B.default.getMetaRegistryModel();function i(e,i){var n=B.default.create(e,t);return n.name=i,n}function n(e,t,n){var o=i(H.default.Package,n);return o.uri=t.uri,B.default.registerPackage(o)}function o(e,t,n,o){return B.default.addMetaElement(n.fqn,i(e,o))}function s(e,t,n,o){var r=i(e,o);return B.default.registerType(r,n.fqn)}n(0,{fqn:"",uri:e.uri},""),(0,r.processPackages)(e,n,I.default.partial(s,H.default.PrimitiveType),I.default.partial(s,H.default.DataType),I.default.partial(s,H.default.Enum),I.default.partial(o,H.default.EnumLiteral),I.default.partial(s,H.default.Class),I.default.partial(o,H.default.Property),(function(e,t,n){var r=o(H.default.Operation,0,t,n);I.default.forEach(t.parameters,(function(e){var t=i(H.default.Argument,e.name);t.lower=e.lower,t.upper=(0,a.isSingleValued)(e.upper)?1:-1,t.operation=r}))}))}(e),function(e){function t(e,t){B.default.getType(t.fqn).superclass=B.default.getType(t.superclass)}(0,r.processPackages)(e,I.default.noop,I.default.noop,t,I.default.noop,(function(e,t){B.default.getMetaElement(t.fqn).value=I.default.getObject(t.fqn)}),(function(e,i){t(0,i);var n=B.default.getType(i.fqn);n.predestroyCheck=i.predestroyCheck||!1,n.isAbstract=i.isAbstract||!1}),(function(e,t){B.default.getMetaElement(t.fqn).initialize(t)}),(function(e,t){for(var i=B.default.getMetaElement(t.fqn),n=0;n<t.parameters.length;++n)i.argument.at(n).type=B.default.getType(t.parameters[n].type)}))}(e),se(e),o.commit(),i.destroy(),B.default.getPackage(e.uri)}))}var ce=function(){function e(){z(this,e)}return q(e,null,[{key:"promiseLoad",value:function(t){return I.default.isArray(t)?Promise.resolve(e.loadDefinitions(t)):I.default.isString(t)?e.loadDefinitionFromUri(t):Promise.resolve(e.loadDefinition(t))}},{key:"loadDefinitions",value:function(t){return I.default.isEmpty(t)?Z():(0,r.topoSortDataDefinitions)(t).map(e.loadDefinition)}},{key:"loadDefinitionFromUri",value:function(t){return I.default.loadJSON(t).then((function(e){return JSON.parse(e)})).then(e.loadDefinition)}},{key:"loadDefinitionInBootstrap",value:function(e){var t=B.default.getMetaRegistryModel(),i={model:t.modelID,language:{literal:"JavaScript",value:2,type:"mf.zero.meta.Language"},transactionId:I.default.generateRandomUuid()};return le(e,new U.default(t,i))}},{key:"loadDefinition",value:function(e){var t=Z();return e?le(e):t}},{key:"extendClass",value:function(e,t){var i=B.default.get(e);if(i){var n=I.default.extend(Q[e]||{},t||{});return delete Q[e],(0,E.mixIn)(i,n)}return Q[e]=I.default.extend(Q[e]||{},t),i}}]),e}();e.default=ce}),e,t),e.exports=o},function(e,t,i){e.exports=function e(t,i,n){function o(a,s){if(!i[a]){if(!t[a]){if(r)return r(a,!0);throw new Error("Cannot find module '"+a+"'")}var l=i[a]={exports:{}};t[a][0].call(l.exports,(function(e){var i=t[a][1][e];return o(i||e)}),l,l.exports,e,t,i,n)}return i[a].exports}for(var r=!1,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,t,i){(function(n,o,r,a,s,l,c,d,u){"use strict";function h(e,t){return function(e,t){var i;if(void 0===(i="passthrough"!==t.algorithm?_.createHash(t.algorithm):new m).write&&(i.write=i.update,i.end=i.update),g(t,i).dispatch(e),i.update||i.end(""),i.digest)return i.digest("buffer"===t.encoding?void 0:t.encoding);var n=i.read();return"buffer"===t.encoding?n:n.toString(t.encoding)}(e,t=p(e,t))}function p(e,t){if((t=t||{}).algorithm=t.algorithm||"sha1",t.encoding=t.encoding||"hex",t.excludeValues=!!t.excludeValues,t.algorithm=t.algorithm.toLowerCase(),t.encoding=t.encoding.toLowerCase(),t.ignoreUnknown=!0===t.ignoreUnknown,t.respectType=!1!==t.respectType,t.respectFunctionNames=!1!==t.respectFunctionNames,t.respectFunctionProperties=!1!==t.respectFunctionProperties,t.unorderedArrays=!0===t.unorderedArrays,t.unorderedSets=!1!==t.unorderedSets,t.replacer=t.replacer||void 0,void 0===e)throw new Error("Object argument required.");for(var i=0;i<v.length;++i)v[i].toLowerCase()===t.algorithm.toLowerCase()&&(t.algorithm=v[i]);if(-1===v.indexOf(t.algorithm))throw new Error('Algorithm "'+t.algorithm+'" not supported. supported values: '+v.join(", "));if(-1===b.indexOf(t.encoding)&&"passthrough"!==t.algorithm)throw new Error('Encoding "'+t.encoding+'" not supported. supported values: '+b.join(", "));return t}function f(e){return"function"==typeof e&&null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function g(e,t,i){i=i||[];var n=function(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")};return{dispatch:function(t){e.replacer&&(t=e.replacer(t));var i=typeof t;return null===t&&(i="null"),this["_"+i](t)},_object:function(t){var o,a=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(a);if(s=(s=s?s[1]:"unknown:["+a+"]").toLowerCase(),(o=i.indexOf(t))>=0)return this.dispatch("[CIRCULAR:"+o+"]");if(i.push(t),void 0!==r&&r.isBuffer&&r.isBuffer(t))return n("buffer:"),n(t);if("object"===s||"function"===s){var l=Object.keys(t).sort();!1===e.respectType||f(t)||l.splice(0,0,"prototype","__proto__","constructor"),n("object:"+l.length+":");var c=this;return l.forEach((function(i){c.dispatch(i),n(":"),e.excludeValues||c.dispatch(t[i]),n(",")}))}if(!this["_"+s]){if(e.ignoreUnknown)return n("["+s+"]");throw new Error('Unknown object type "'+s+'"')}this["_"+s](t)},_array:function(t,o){o=void 0!==o?o:!1!==e.unorderedArrays;var r=this;if(n("array:"+t.length+":"),!o||t.length<=1)return t.forEach((function(e){return r.dispatch(e)}));var a=[],s=t.map((function(t){var n=new m,o=i.slice();return g(e,n,o).dispatch(t),a=a.concat(o.slice(i.length)),n.read().toString()}));return i=i.concat(a),s.sort(),this._array(s,!1)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())},_string:function(e){n("string:"+e.length+":"),n(e)},_function:function(t){n("fn:"),f(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return n("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return n("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return n("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString())},_map:function(t){n("map:");var i=Array.from(t);return this._array(i,!1!==e.unorderedSets)},_set:function(t){n("set:");var i=Array.from(t);return this._array(i,!1!==e.unorderedSets)},_blob:function(){if(e.ignoreUnknown)return n("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function m(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}var _=e("crypto");(i=t.exports=h).sha1=function(e){return h(e)},i.keys=function(e){return h(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},i.MD5=function(e){return h(e,{algorithm:"md5",encoding:"hex"})},i.keysMD5=function(e){return h(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var v=_.getHashes?_.getHashes().slice():["sha1","md5"];v.push("passthrough");var b=["buffer","hex","binary","base64"];i.writeToStream=function(e,t,i){return void 0===i&&(i=t,t={}),g(t=p(e,t),i).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_1e7b3280.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,i){(function(e,t,n,o,r,a,s,l,c){!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===n||t===l?62:t===o||t===c?63:t<r?-1:t<r+10?t-r+26+26:t<s+26?t-s:t<a+26?t-a+26:void 0}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),o="/".charCodeAt(0),r="0".charCodeAt(0),a="a".charCodeAt(0),s="A".charCodeAt(0),l="-".charCodeAt(0),c="_".charCodeAt(0);e.toByteArray=function(e){function n(e){c[u++]=e}var o,r,a,s,l,c;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var d=e.length;l="="===e.charAt(d-2)?2:"="===e.charAt(d-1)?1:0,c=new i(3*e.length/4-l),a=l>0?e.length-4:e.length;var u=0;for(o=0,r=0;o<a;o+=4,r+=3)n((16711680&(s=t(e.charAt(o))<<18|t(e.charAt(o+1))<<12|t(e.charAt(o+2))<<6|t(e.charAt(o+3))))>>16),n((65280&s)>>8),n(255&s);return 2===l?n(255&(s=t(e.charAt(o))<<2|t(e.charAt(o+1))>>4)):1===l&&(n((s=t(e.charAt(o))<<10|t(e.charAt(o+1))<<4|t(e.charAt(o+2))>>2)>>8&255),n(255&s)),c},e.fromByteArray=function(e){function t(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}function i(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var n,o,r,a=e.length%3,s="";for(n=0,r=e.length-a;n<r;n+=3)s+=i(o=(e[n]<<16)+(e[n+1]<<8)+e[n+2]);switch(a){case 1:s+=t((o=e[e.length-1])>>2),s+=t(o<<4&63),s+="==";break;case 2:s+=t((o=(e[e.length-2]<<8)+e[e.length-1])>>10),s+=t(o>>4&63),s+=t(o<<2&63),s+="="}return s}}(void 0===i?this.base64js={}:i)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,i){(function(t,n,o,r,a,s,l,c,d){function o(e,t,i){if(!(this instanceof o))return new o(e,t,i);var n,r,a,s=typeof e;if("base64"===t&&"string"===s)for(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e);e.length%4!=0;)e+="=";if("number"===s)n=L(e);else if("string"===s)n=o.byteLength(e,t);else{if("object"!==s)throw new Error("First argument needs to be a number, array or string.");n=L(e.length)}if(o._useTypedArrays?r=o._augment(new Uint8Array(n)):((r=this).length=n,r._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)r._set(e);else if(function(e){return D(e)||o.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}(e))for(a=0;a<n;a++)o.isBuffer(e)?r[a]=e.readUInt8(a):r[a]=e[a];else if("string"===s)r.write(e,0,t);else if("number"===s&&!o._useTypedArrays&&!i)for(a=0;a<n;a++)r[a]=0;return r}function u(e,t,i,n){i=Number(i)||0;var r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;var a=t.length;V(a%2==0,"Invalid hex string"),n>a/2&&(n=a/2);for(var s=0;s<n;s++){var l=parseInt(t.substr(2*s,2),16);V(!isNaN(l),"Invalid hex string"),e[i+s]=l}return o._charsWritten=2*s,s}function h(e,t,i,n){return o._charsWritten=R(P(t),e,i,n)}function p(e,t,i,n){return o._charsWritten=R(function(e){for(var t=[],i=0;i<e.length;i++)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function f(e,t,i,n){return o._charsWritten=R(O(t),e,i,n)}function g(e,t,i,n){return o._charsWritten=R(function(e){for(var t,i,n,o=[],r=0;r<e.length;r++)t=e.charCodeAt(r),i=t>>8,n=t%256,o.push(n),o.push(i);return o}(t),e,i,n)}function m(e,t,i){var n="";i=Math.min(e.length,i);for(var o=t;o<i;o++)n+=String.fromCharCode(e[o]);return n}function _(e,t,i,n){n||(V("boolean"==typeof i,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+1<e.length,"Trying to read beyond buffer length"));var o,r=e.length;if(!(t>=r))return i?(o=e[t],t+1<r&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<r&&(o|=e[t+1])),o}function v(e,t,i,n){n||(V("boolean"==typeof i,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+3<e.length,"Trying to read beyond buffer length"));var o,r=e.length;if(!(t>=r))return i?(t+2<r&&(o=e[t+2]<<16),t+1<r&&(o|=e[t+1]<<8),o|=e[t],t+3<r&&(o+=e[t+3]<<24>>>0)):(t+1<r&&(o=e[t+1]<<16),t+2<r&&(o|=e[t+2]<<8),t+3<r&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function b(e,t,i,n){if(n||(V("boolean"==typeof i,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+1<e.length,"Trying to read beyond buffer length")),!(t>=e.length)){var o=_(e,t,i,!0);return 32768&o?-1*(65535-o+1):o}}function y(e,t,i,n){if(n||(V("boolean"==typeof i,"missing or invalid endian"),V(null!=t,"missing offset"),V(t+3<e.length,"Trying to read beyond buffer length")),!(t>=e.length)){var o=v(e,t,i,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function C(e,t,i,n){return n||(V("boolean"==typeof i,"missing or invalid endian"),V(t+3<e.length,"Trying to read beyond buffer length")),U.read(e,t,i,23,4)}function T(e,t,i,n){return n||(V("boolean"==typeof i,"missing or invalid endian"),V(t+7<e.length,"Trying to read beyond buffer length")),U.read(e,t,i,52,8)}function E(e,t,i,n,o){o||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=i,"missing offset"),V(i+1<e.length,"trying to write beyond buffer length"),F(t,65535));var r=e.length;if(!(i>=r))for(var a=0,s=Math.min(r-i,2);a<s;a++)e[i+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function S(e,t,i,n,o){o||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=i,"missing offset"),V(i+3<e.length,"trying to write beyond buffer length"),F(t,4294967295));var r=e.length;if(!(i>=r))for(var a=0,s=Math.min(r-i,4);a<s;a++)e[i+a]=t>>>8*(n?a:3-a)&255}function w(e,t,i,n,o){o||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=i,"missing offset"),V(i+1<e.length,"Trying to write beyond buffer length"),B(t,32767,-32768)),i>=e.length||E(e,t>=0?t:65535+t+1,i,n,o)}function I(e,t,i,n,o){o||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=i,"missing offset"),V(i+3<e.length,"Trying to write beyond buffer length"),B(t,2147483647,-2147483648)),i>=e.length||S(e,t>=0?t:4294967295+t+1,i,n,o)}function A(e,t,i,n,o){o||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=i,"missing offset"),V(i+3<e.length,"Trying to write beyond buffer length"),H(t,34028234663852886e22,-34028234663852886e22)),i>=e.length||U.write(e,t,i,n,23,4)}function x(e,t,i,n,o){o||(V(null!=t,"missing value"),V("boolean"==typeof n,"missing or invalid endian"),V(null!=i,"missing offset"),V(i+7<e.length,"Trying to write beyond buffer length"),H(t,17976931348623157e292,-17976931348623157e292)),i>=e.length||U.write(e,t,i,n,52,8)}function N(e,t,i){return"number"!=typeof e?i:(e=~~e)>=t?t:e>=0||(e+=t)>=0?e:0}function L(e){return(e=~~Math.ceil(+e))<0?0:e}function D(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function P(e){for(var t=[],i=0;i<e.length;i++){var n=e.charCodeAt(i);if(n<=127)t.push(e.charCodeAt(i));else{var o=i;n>=55296&&n<=57343&&i++;for(var r=encodeURIComponent(e.slice(o,i+1)).substr(1).split("%"),a=0;a<r.length;a++)t.push(parseInt(r[a],16))}}return t}function O(e){return j.toByteArray(e)}function R(e,t,i,n){for(var o=0;o<n&&!(o+i>=t.length||o>=e.length);o++)t[o+i]=e[o];return o}function k(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function F(e,t){V("number"==typeof e,"cannot write a non-number as a number"),V(e>=0,"specified a negative value for writing an unsigned value"),V(e<=t,"value is larger than maximum value for type"),V(Math.floor(e)===e,"value has a fractional component")}function B(e,t,i){V("number"==typeof e,"cannot write a non-number as a number"),V(e<=t,"value larger than maximum allowed value"),V(e>=i,"value smaller than minimum allowed value"),V(Math.floor(e)===e,"value has a fractional component")}function H(e,t,i){V("number"==typeof e,"cannot write a non-number as a number"),V(e<=t,"value larger than maximum allowed value"),V(e>=i,"value smaller than minimum allowed value")}function V(e,t){if(!e)throw new Error(t||"Failed assertion")}var j=e("base64-js"),U=e("ieee754");i.Buffer=o,i.SlowBuffer=o,i.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.byteLength=function(e,t){var i;switch(e+="",t||"utf8"){case"hex":i=e.length/2;break;case"utf8":case"utf-8":i=P(e).length;break;case"ascii":case"binary":case"raw":i=e.length;break;case"base64":i=O(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=2*e.length;break;default:throw new Error("Unknown encoding")}return i},o.concat=function(e,t){if(V(D(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new o(0);if(1===e.length)return e[0];var i;if("number"!=typeof t)for(t=0,i=0;i<e.length;i++)t+=e[i].length;var n=new o(t),r=0;for(i=0;i<e.length;i++){var a=e[i];a.copy(n,r),r+=a.length}return n},o.prototype.write=function(e,t,i,n){if(isFinite(t))isFinite(i)||(n=i,i=void 0);else{var o=n;n=t,t=i,i=o}t=Number(t)||0;var r,a=this.length-t;switch(i?(i=Number(i))>a&&(i=a):i=a,n=String(n||"utf8").toLowerCase()){case"hex":r=u(this,e,t,i);break;case"utf8":case"utf-8":r=h(this,e,t,i);break;case"ascii":r=p(this,e,t,i);break;case"binary":r=function(e,t,i,n){return p(e,t,i,n)}(this,e,t,i);break;case"base64":r=f(this,e,t,i);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=g(this,e,t,i);break;default:throw new Error("Unknown encoding")}return r},o.prototype.toString=function(e,t,i){var n,o=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(i=void 0!==i?Number(i):i=o.length)===t)return"";switch(e){case"hex":n=function(e,t,i){var n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);for(var o="",r=t;r<i;r++)o+=M(e[r]);return o}(o,t,i);break;case"utf8":case"utf-8":n=function(e,t,i){var n="",o="";i=Math.min(e.length,i);for(var r=t;r<i;r++)e[r]<=127?(n+=k(o)+String.fromCharCode(e[r]),o=""):o+="%"+e[r].toString(16);return n+k(o)}(o,t,i);break;case"ascii":n=m(o,t,i);break;case"binary":n=function(e,t,i){return m(e,t,i)}(o,t,i);break;case"base64":n=function(e,t,i){return 0===t&&i===e.length?j.fromByteArray(e):j.fromByteArray(e.slice(t,i))}(o,t,i);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=function(e,t,i){for(var n=e.slice(t,i),o="",r=0;r<n.length;r+=2)o+=String.fromCharCode(n[r]+256*n[r+1]);return o}(o,t,i);break;default:throw new Error("Unknown encoding")}return n},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(e,t,i,n){var r=this;if(i||(i=0),n||0===n||(n=this.length),t||(t=0),n!==i&&0!==e.length&&0!==r.length){V(n>=i,"sourceEnd < sourceStart"),V(t>=0&&t<e.length,"targetStart out of bounds"),V(i>=0&&i<r.length,"sourceStart out of bounds"),V(n>=0&&n<=r.length,"sourceEnd out of bounds"),n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var a=n-i;if(a<100||!o._useTypedArrays)for(var s=0;s<a;s++)e[s+t]=this[s+i];else e._set(this.subarray(i,i+a),t)}},o.prototype.slice=function(e,t){var i=this.length;if(e=N(e,i,0),t=N(t,i,i),o._useTypedArrays)return o._augment(this.subarray(e,t));for(var n=t-e,r=new o(n,void 0,!0),a=0;a<n;a++)r[a]=this[a+e];return r},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.readUInt8=function(e,t){if(t||(V(null!=e,"missing offset"),V(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return _(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return _(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return v(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return v(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(V(null!=e,"missing offset"),V(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return b(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return b(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return y(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return y(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return C(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return C(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return T(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return T(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,i){i||(V(null!=e,"missing value"),V(null!=t,"missing offset"),V(t<this.length,"trying to write beyond buffer length"),F(e,255)),t>=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,i){E(this,e,t,!0,i)},o.prototype.writeUInt16BE=function(e,t,i){E(this,e,t,!1,i)},o.prototype.writeUInt32LE=function(e,t,i){S(this,e,t,!0,i)},o.prototype.writeUInt32BE=function(e,t,i){S(this,e,t,!1,i)},o.prototype.writeInt8=function(e,t,i){i||(V(null!=e,"missing value"),V(null!=t,"missing offset"),V(t<this.length,"Trying to write beyond buffer length"),B(e,127,-128)),t>=this.length||(e>=0?this.writeUInt8(e,t,i):this.writeUInt8(255+e+1,t,i))},o.prototype.writeInt16LE=function(e,t,i){w(this,e,t,!0,i)},o.prototype.writeInt16BE=function(e,t,i){w(this,e,t,!1,i)},o.prototype.writeInt32LE=function(e,t,i){I(this,e,t,!0,i)},o.prototype.writeInt32BE=function(e,t,i){I(this,e,t,!1,i)},o.prototype.writeFloatLE=function(e,t,i){A(this,e,t,!0,i)},o.prototype.writeFloatBE=function(e,t,i){A(this,e,t,!1,i)},o.prototype.writeDoubleLE=function(e,t,i){x(this,e,t,!0,i)},o.prototype.writeDoubleBE=function(e,t,i){x(this,e,t,!1,i)},o.prototype.fill=function(e,t,i){if(e||(e=0),t||(t=0),i||(i=this.length),"string"==typeof e&&(e=e.charCodeAt(0)),V("number"==typeof e&&!isNaN(e),"value is not a number"),V(i>=t,"end < start"),i!==t&&0!==this.length){V(t>=0&&t<this.length,"start out of bounds"),V(i>=0&&i<=this.length,"end out of bounds");for(var n=t;n<i;n++)this[n]=e}},o.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=M(this[n]),n===i.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,i=e.length;t<i;t+=1)e[t]=this[t];return e.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var W=o.prototype;o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=W.get,e.set=W.set,e.write=W.write,e.toString=W.toString,e.toLocaleString=W.toString,e.toJSON=W.toJSON,e.copy=W.copy,e.slice=W.slice,e.readUInt8=W.readUInt8,e.readUInt16LE=W.readUInt16LE,e.readUInt16BE=W.readUInt16BE,e.readUInt32LE=W.readUInt32LE,e.readUInt32BE=W.readUInt32BE,e.readInt8=W.readInt8,e.readInt16LE=W.readInt16LE,e.readInt16BE=W.readInt16BE,e.readInt32LE=W.readInt32LE,e.readInt32BE=W.readInt32BE,e.readFloatLE=W.readFloatLE,e.readFloatBE=W.readFloatBE,e.readDoubleLE=W.readDoubleLE,e.readDoubleBE=W.readDoubleBE,e.writeUInt8=W.writeUInt8,e.writeUInt16LE=W.writeUInt16LE,e.writeUInt16BE=W.writeUInt16BE,e.writeUInt32LE=W.writeUInt32LE,e.writeUInt32BE=W.writeUInt32BE,e.writeInt8=W.writeInt8,e.writeInt16LE=W.writeInt16LE,e.writeInt16BE=W.writeInt16BE,e.writeInt32LE=W.writeInt32LE,e.writeInt32BE=W.writeInt32BE,e.writeFloatLE=W.writeFloatLE,e.writeFloatBE=W.writeFloatBE,e.writeDoubleLE=W.writeDoubleLE,e.writeDoubleBE=W.writeDoubleBE,e.fill=W.fill,e.inspect=W.inspect,e.toArrayBuffer=W.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,i){(function(i,n,o,r,a,s,l,c,d){o=e("buffer").Buffer;var u=4,h=new o(u);h.fill(0);var p=8;t.exports={hash:function(e,t,i,n){return o.isBuffer(e)||(e=new o(e)),function(e,t,i){for(var n=new o(t),r=i?n.writeInt32BE:n.writeInt32LE,a=0;a<e.length;a++)r.call(n,e[a],4*a,!0);return n}(t(function(e,t){if(e.length%u!=0){var i=e.length+(u-e.length%u);e=o.concat([e,h],i)}for(var n=[],r=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=u)n.push(r.call(e,a));return n}(e,n),e.length*p),i,n)}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,i){(function(t,n,o,r,a,s,l,c,d){function u(e,t){var i=m[e=e||"sha1"],n=[];return i||h("algorithm:",e,"is not yet supported"),{update:function(e){return o.isBuffer(e)||(e=new o(e)),n.push(e),e.length,this},digest:function(e){var r=o.concat(n),a=t?function(e,t,i){o.isBuffer(t)||(t=new o(t)),o.isBuffer(i)||(i=new o(i)),t.length>_?t=e(t):t.length<_&&(t=o.concat([t,v],_));for(var n=new o(_),r=new o(_),a=0;a<_;a++)n[a]=54^t[a],r[a]=92^t[a];var s=e(o.concat([n,i]));return e(o.concat([r,s]))}(i,t,r):i(r);return n=null,e?a.toString(e):a}}}function h(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}o=e("buffer").Buffer;var p=e("./sha"),f=e("./sha256"),g=e("./rng"),m={sha1:p,sha256:f,md5:e("./md5")},_=64,v=new o(_);v.fill(0),i.createHash=function(e){return u(e)},i.createHmac=function(e,t){return u(e,t)},i.randomBytes=function(e,t){if(!t||!t.call)return new o(g(e));try{t.call(this,void 0,new o(g(e)))}catch(e){t(e)}},function(e,t){for(var i in e)t(e[i],i)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],(function(e){i[e]=function(){h("sorry,",e,"is not implemented yet")}}))}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,i){(function(i,n,o,r,a,s,l,c,d){function u(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var i=1732584193,n=-271733879,o=-1732584194,r=271733878,a=0;a<e.length;a+=16){var s=i,l=n,c=o,d=r;i=p(i,n,o,r,e[a+0],7,-680876936),r=p(r,i,n,o,e[a+1],12,-389564586),o=p(o,r,i,n,e[a+2],17,606105819),n=p(n,o,r,i,e[a+3],22,-1044525330),i=p(i,n,o,r,e[a+4],7,-176418897),r=p(r,i,n,o,e[a+5],12,1200080426),o=p(o,r,i,n,e[a+6],17,-1473231341),n=p(n,o,r,i,e[a+7],22,-45705983),i=p(i,n,o,r,e[a+8],7,1770035416),r=p(r,i,n,o,e[a+9],12,-1958414417),o=p(o,r,i,n,e[a+10],17,-42063),n=p(n,o,r,i,e[a+11],22,-1990404162),i=p(i,n,o,r,e[a+12],7,1804603682),r=p(r,i,n,o,e[a+13],12,-40341101),o=p(o,r,i,n,e[a+14],17,-1502002290),i=f(i,n=p(n,o,r,i,e[a+15],22,1236535329),o,r,e[a+1],5,-165796510),r=f(r,i,n,o,e[a+6],9,-1069501632),o=f(o,r,i,n,e[a+11],14,643717713),n=f(n,o,r,i,e[a+0],20,-373897302),i=f(i,n,o,r,e[a+5],5,-701558691),r=f(r,i,n,o,e[a+10],9,38016083),o=f(o,r,i,n,e[a+15],14,-660478335),n=f(n,o,r,i,e[a+4],20,-405537848),i=f(i,n,o,r,e[a+9],5,568446438),r=f(r,i,n,o,e[a+14],9,-1019803690),o=f(o,r,i,n,e[a+3],14,-187363961),n=f(n,o,r,i,e[a+8],20,1163531501),i=f(i,n,o,r,e[a+13],5,-1444681467),r=f(r,i,n,o,e[a+2],9,-51403784),o=f(o,r,i,n,e[a+7],14,1735328473),i=g(i,n=f(n,o,r,i,e[a+12],20,-1926607734),o,r,e[a+5],4,-378558),r=g(r,i,n,o,e[a+8],11,-2022574463),o=g(o,r,i,n,e[a+11],16,1839030562),n=g(n,o,r,i,e[a+14],23,-35309556),i=g(i,n,o,r,e[a+1],4,-1530992060),r=g(r,i,n,o,e[a+4],11,1272893353),o=g(o,r,i,n,e[a+7],16,-155497632),n=g(n,o,r,i,e[a+10],23,-1094730640),i=g(i,n,o,r,e[a+13],4,681279174),r=g(r,i,n,o,e[a+0],11,-358537222),o=g(o,r,i,n,e[a+3],16,-722521979),n=g(n,o,r,i,e[a+6],23,76029189),i=g(i,n,o,r,e[a+9],4,-640364487),r=g(r,i,n,o,e[a+12],11,-421815835),o=g(o,r,i,n,e[a+15],16,530742520),i=m(i,n=g(n,o,r,i,e[a+2],23,-995338651),o,r,e[a+0],6,-198630844),r=m(r,i,n,o,e[a+7],10,1126891415),o=m(o,r,i,n,e[a+14],15,-1416354905),n=m(n,o,r,i,e[a+5],21,-57434055),i=m(i,n,o,r,e[a+12],6,1700485571),r=m(r,i,n,o,e[a+3],10,-1894986606),o=m(o,r,i,n,e[a+10],15,-1051523),n=m(n,o,r,i,e[a+1],21,-2054922799),i=m(i,n,o,r,e[a+8],6,1873313359),r=m(r,i,n,o,e[a+15],10,-30611744),o=m(o,r,i,n,e[a+6],15,-1560198380),n=m(n,o,r,i,e[a+13],21,1309151649),i=m(i,n,o,r,e[a+4],6,-145523070),r=m(r,i,n,o,e[a+11],10,-1120210379),o=m(o,r,i,n,e[a+2],15,718787259),n=m(n,o,r,i,e[a+9],21,-343485551),i=_(i,s),n=_(n,l),o=_(o,c),r=_(r,d)}return Array(i,n,o,r)}function h(e,t,i,n,o,r){return _(function(e,t){return e<<t|e>>>32-t}(_(_(t,e),_(n,r)),o),i)}function p(e,t,i,n,o,r,a){return h(t&i|~t&n,e,t,o,r,a)}function f(e,t,i,n,o,r,a){return h(t&n|i&~n,e,t,o,r,a)}function g(e,t,i,n,o,r,a){return h(t^i^n,e,t,o,r,a)}function m(e,t,i,n,o,r,a){return h(i^(t|~n),e,t,o,r,a)}function _(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}var v=e("./helpers");t.exports=function(e){return v.hash(e,u,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,i){(function(e,i,n,o,r,a,s,l,c){!function(){var e,i;e=function(e){for(var t,i=new Array(e),n=0;n<e;n++)0==(3&n)&&(t=4294967296*Math.random()),i[n]=t>>>((3&n)<<3)&255;return i},this.crypto&&crypto.getRandomValues&&(i=function(e){var t=new Uint8Array(e);return crypto.getRandomValues(t),t}),t.exports=i||e}()}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,i){(function(i,n,o,r,a,s,l,c,d){function u(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var i=Array(80),n=1732584193,o=-271733879,r=-1732584194,a=271733878,s=-1009589776,l=0;l<e.length;l+=16){for(var c=n,d=o,u=r,m=a,_=s,v=0;v<80;v++){i[v]=v<16?e[l+v]:g(i[v-3]^i[v-8]^i[v-14]^i[v-16],1);var b=f(f(g(n,5),h(v,o,r,a)),f(f(s,i[v]),p(v)));s=a,a=r,r=g(o,30),o=n,n=b}n=f(n,c),o=f(o,d),r=f(r,u),a=f(a,m),s=f(s,_)}return Array(n,o,r,a,s)}function h(e,t,i,n){return e<20?t&i|~t&n:e<40?t^i^n:e<60?t&i|t&n|i&n:t^i^n}function p(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function f(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function g(e,t){return e<<t|e>>>32-t}var m=e("./helpers");t.exports=function(e){return m.hash(e,u,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,i){(function(i,n,o,r,a,s,l,c,d){var u=e("./helpers"),h=function(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i},p=function(e,t){return e>>>t|e<<32-t},f=function(e,t){return e>>>t},g=function(e,t,i){return e&t^~e&i},m=function(e,t,i){return e&t^e&i^t&i},_=function(e){return p(e,2)^p(e,13)^p(e,22)},v=function(e){return p(e,6)^p(e,11)^p(e,25)},b=function(e){return p(e,7)^p(e,18)^f(e,3)},y=function(e){return p(e,17)^p(e,19)^f(e,10)},C=function(e,t){var i,n,o,r,a,s,l,c,d,u,p=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),f=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),C=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var T=0;T<e.length;T+=16){i=f[0],n=f[1],o=f[2],r=f[3],a=f[4],s=f[5],l=f[6],c=f[7];for(var E=0;E<64;E++)C[E]=E<16?e[E+T]:h(h(h(y(C[E-2]),C[E-7]),b(C[E-15])),C[E-16]),d=h(h(h(h(c,v(a)),g(a,s,l)),p[E]),C[E]),u=h(_(i),m(i,n,o)),c=l,l=s,s=a,a=h(r,d),r=o,o=n,n=i,i=h(d,u);f[0]=h(i,f[0]),f[1]=h(n,f[1]),f[2]=h(o,f[2]),f[3]=h(r,f[3]),f[4]=h(a,f[4]),f[5]=h(s,f[5]),f[6]=h(l,f[6]),f[7]=h(c,f[7])}return f};t.exports=function(e){return u.hash(e,C,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,i){(function(e,i,n,o,r,a,s,l,c){function d(){}(e=t.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var i=[];return window.addEventListener("message",(function(e){var t=e.source;(t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),i.length>0)&&i.shift()()}),!0),function(e){i.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=d,e.addListener=d,e.once=d,e.off=d,e.removeListener=d,e.removeAllListeners=d,e.emit=d,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,i){(function(e,t,n,o,r,a,s,l,c){i.read=function(e,t,i,n,o){var r,a,s=8*o-n-1,l=(1<<s)-1,c=l>>1,d=-7,u=i?o-1:0,h=i?-1:1,p=e[t+u];for(u+=h,r=p&(1<<-d)-1,p>>=-d,d+=s;d>0;r=256*r+e[t+u],u+=h,d-=8);for(a=r&(1<<-d)-1,r>>=-d,d+=n;d>0;a=256*a+e[t+u],u+=h,d-=8);if(0===r)r=1-c;else{if(r===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),r-=c}return(p?-1:1)*a*Math.pow(2,r-n)},i.write=function(e,t,i,n,o,r){var a,s,l,c=8*r-o-1,d=(1<<c)-1,u=d>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:r-1,f=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+u>=1?h/l:h*Math.pow(2,1-u))*l>=2&&(a++,l/=2),a+u>=d?(s=0,a=d):a+u>=1?(s=(t*l-1)*Math.pow(2,o),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,o),a=0));o>=8;e[i+p]=255&s,p+=f,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[i+p]=255&a,p+=f,a/=256,c-=8);e[i+p-f]|=128*g}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},function(e,t,i){var n,o;n=[t,i(1059),i(309),i(566),i(396),i(779)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=c(i),s=c(n),l=c(o);function c(e){return e&&e.__esModule?e:{default:e}}e.default={initialize:function(e){this.type=s.default.getType(e.type),e.type&&!this.type&&a.default.throwErr("NoSuchType ",e.type),this.isTransient=e.isTransient||this.type.qualifiedName===l.default.MxArray||!1,this.isDerived=e.isDerived||!1,this.hasCustomSubsetsFilter=e.hasCustomSubsetsFilter||!1,this.isComposite=e.isComposite||e.isPrimitive||e.isDataType||this.type._isInstOfPrimitiveType()||this.type._isInstOfDataType()||!1,this.isOrdered=e.isOrdered||!1,this.isUnique=void 0===e.isUnique||e.isUnique,this.isSetOnce=e.isSetOnce||!1,this.isReadOnly=e.isReadOnly||!1,this.isSparse=e.isSparse||!1,this.isQualificationUnique=void 0===e.isQualificationUnique||e.isQualificationUnique,this.lower=e.lower||0,this.upper=e.upper||1,e.opposite&&(this.opposite=s.default.getMetaElement(e.opposite.fqn),this.isComposite&&this.opposite.isComposite&&a.default.throwErr("CannotBeComposite")),e.qualifiedBy&&(this.qualifiedBy=s.default.getMetaElement(e.qualifiedBy.fqn)),e.subsets&&(this.subsets=s.default.getMetaElement(e.subsets.fqn))},__init:function(){var e=this;this.isSingleValued=(0,r.useOnce)((function(){return(0,t.isSingleValued)(e.upper)})),this.isOptional=(0,r.useOnce)((function(){return(0,t.isOptional)(e.lower)})),this.isAssociation=(0,r.useOnce)((function(){return(0,t.isAssociation)(e.type.qualifiedName)})),this.isSingleValuedAssociation=(0,r.useOnce)((function(){return(0,t.isSingleValuedAssociation)(e.type.qualifiedName,e.upper)})),this.isMultiValuedAssociation=(0,r.useOnce)((function(){return(0,t.isMultiValuedAssociation)(e.type.qualifiedName,e.upper)})),this.isContainment=(0,r.useOnce)((function(){return e.isAssociation()&&e.isComposite})),this.isContainer=(0,r.useOnce)((function(){return e.isAssociation()&&e.opposite&&e.opposite.isContainment()})),this.isPrimitiveType=(0,r.useOnce)((function(){return(0,t.isPrimitiveType)(e.type.qualifiedName)})),this.isEnumeration=(0,r.useOnce)((function(){return(0,t.isEnumeration)(e.type.qualifiedName)})),this.isDataType=(0,r.useOnce)((function(){return(0,t.isDataType)(e.type.qualifiedName)})),this.isPrimitiveProperty=(0,r.useOnce)((function(){return e.isPrimitiveType()||e.isEnumeration()})),this.get_PropName=(0,r.useOnce)((function(){return"_"+e.name})),this.identifier=(0,r.useOnce)((function(){return(e.owningType?e.owningType.qualifiedName+".":"")+e.name}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(778),i(779)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={__init:function(){var e=this;this.getAllSuperClasses=(0,i.useOnce)((function(){for(var i=[],n=e;n&&!(0,t.isModelElement)(n);n=n.superclass)i.push(n);return Object.freeze(i),i})),this.getAllAttributes=(0,i.useOnce)((function(){var t={},i=e.getAllSuperClasses(),n=!0,o=!1,r=void 0;try{for(var a,s=i[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){a.value.ownedAttributes.forEach((function(e){t[e.name]=e}))}}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return Object.freeze(t),t})),this.getEmptyAttributesTemplate=(0,i.useOnce)((function(){var t={},i=e.getAllAttributes();for(var n in i)t[n]=null;return Object.freeze(t),t})),this.getPropertyByName=(0,i.useMemoize)((function(t){var i=e.getAllSuperClasses(),n=!0,o=!1,r=void 0;try{for(var a,s=i[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value.ownedAttributes.at(t);if(l)return l}}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}})),this.getOperationByName=(0,i.useMemoize)((function(t){var i=e.getAllSuperClasses(),n=!0,o=!1,r=void 0;try{for(var a,s=i[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value.ownedOperations.at(t);if(l)return l}}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}})),this.isA=(0,i.useMemoize)((function(i){return!!i&&(!(i!==e&&!(0,t.isModelElement)(i))||!(!e.superclass||(0,t.isModelElement)(e.superclass))&&e.superclass.isA(i))}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(566)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={instantiate:function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return t.instantiate.apply(void 0,[this].concat(i))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(779)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={identifier:function(){return this.qualifiedName},__init:function(){var e=this;this.getQualifiedName=(0,t.useOnce)((function(){var t=e.parentPackage;if(!t)return e.name;var i=t.qualifiedName;return i?i+"."+e.name:e.name}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={identifier:function(){return this._identifier},__init:function(){this._identifier=(this.parentEnum?this.parentEnum.qualifiedName+".":"")+this.name}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(779),i(563)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n;(n=i)&&n.__esModule;e.default={identifier:function(){return this.qualifiedName},__init:function(){var e=this;this.getQualifiedName=(0,t.useConditionalOnce)((function(){return e.owningPackage}),(function(t){if(!t)return e.name;var i=t.qualifiedName;return i?i+"."+e.name:e.name})),this.getRootPackage=(0,t.useOnce)((function(){for(var t=e.owningPackage;;){var i=t.parentPackage;if(!i)return t;t=i}}))},jasmineToString:function(){return this.getQualifiedName()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={createPrototype:function(){var e=new mf.zero.meta.ExtensionPrototype;return e.isOrdered=this.isOrdered,e.isUnique=this.isUnique,e.name=this.name,e.typeName=this.type.qualifiedName,e.lower=this.lower,e.upper=this.upper,e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(566)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=(i=t)&&i.__esModule?i:{default:i};e.default={insert:function(e){this.attributes.insert(e)},emplace:function(e,t,i){-1===(e+="Attribute").indexOf(".")&&(e="mf.zero.meta."+e);var o=n.default.create(e,this.getModel());return o.key=t,o.value=i,this.insert(o),o},at:function(e){return this.attributes.at(e)},eraseValue:function(e){this.attributes.eraseValue(e)},erase:function(e){this.attributes.erase(e)},removeValue:function(e){var t=this.attributes.find(e);t&&this.remove(t)},remove:function(e){var t=this.attributes.at(e);t&&t.destroy()},size:function(){return this.attributes.size()},getOwner:function(){return this.containerOrModel}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(309)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=(i=t)&&i.__esModule?i:{default:i};var o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,[{key:"serializeOptionalValue",value:function(e){n.default.throwErr("Implement")}},{key:"serializeValue",value:function(e){n.default.throwErr("Implement")}},{key:"parseValue",value:function(e,t){n.default.throwErr("Implement")}},{key:"parseOptionalValue",value:function(e,t){n.default.throwErr("Implement")}}]),e}();e.default=r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeferredEventInvocation=e.EventRegistration=void 0;var n=o(t);o(i);function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),l=e.EventRegistration=function(){function e(t){a(this,e),this.m_event=t,this.m_uuid=n.default.generateRandomUuid()}return s(e,[{key:"cancel",value:function(){delete this.m_event.m_handlers[this.m_uuid]}}]),e}(),c=e.DeferredEventInvocation=function e(t){for(var i=arguments.length,n=Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];a(this,e),this.name=t.m_name,this.source=t.m_element,this.args=n,this.invoker=function(){u(t,n)},this.serializer=function(){}},d=function(){function e(t,i,n){a(this,e),this.m_name=i,this.m_element=t,this.m_argDefinitions=n,this.m_handlers={}}return s(e,[{key:"registerHandler",value:function(e){var t=new l(this);return this.m_handlers[t.m_uuid]=e,t}},{key:"emit",value:function(){for(var e=this.m_element.getModel().beginRevertibleTransaction(),t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];e.eventEmitted(new(Function.prototype.bind.apply(c,[null].concat([this],i)))),e.commit()}}]),e}();function u(e,t){var i=e.m_element;if(i.isValid){var o=!0,a=!1,s=void 0;try{for(var l,c=n.default.values(e.m_handlers)[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){l.value.apply(void 0,[i].concat(r(t)))}}catch(e){a=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}}}e.default=d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t(e,[{key:"visitOutput",value:function(e){this.accept(e)}},{key:"accept",value:function(e){}}]),e}();e.default=i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(1748),i(1296),i(2914),i(1749),i(1298),i(1752),i(1753),i(1747),i(1754),i(612),i(1750),i(565),i(780),i(1755),i(564),i(611),i(396),i(1751)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var C=F(t),T=F(i),E=F(n),S=(F(o),F(r)),w=F(a),I=F(s),A=F(l),x=F(c),N=F(d),L=F(u),D=F(h),M=F(p),P=F(f),O=F(g),R=F(b),k=F(y);function F(e){return e&&e.__esModule?e:{default:e}}var B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function H(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var V=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function j(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var U=function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0};function W(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var G=function(e){function t(e,i){H(this,t);var n=j(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.setRecurseIntoCompositions(i),n.report=e,n.currentElement=null,n}return W(t,e),V(t,[{key:"getPropertyCategory",value:function(e){return this.currentElement&&this.currentElement.getMetaClass().isA(e.owningType)&&!this.report.isChanged(this.currentElement,e)?D.default.Unknown():e.type.name===R.default.StringToStringMap?D.default.VerbatimCustom():U(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPropertyCategory",this).call(this,e)}}]),t}(S.default),z=function(e){function t(e){H(this,t);var i=j(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.report=e,i}return W(t,e),V(t,[{key:"customizePropertyValue",value:function(e,t,i){if(null!=i&&t.type.name===R.default.StringToStringMap&&this.report.isDeep)try{var n=this.report.getOldValue(e,t),o=i,r={},a=[],s=!0,l=!1,c=void 0;try{for(var d,u=o[Symbol.iterator]();!(s=(d=u.next()).done);s=!0){var h=d.value;n.has(h[0])&&n.get(h[0])===h[1]||(r[h[0]]=h[1])}}catch(e){l=!0,c=e}finally{try{!s&&u.return&&u.return()}finally{if(l)throw c}}var p=!0,f=!1,g=void 0;try{for(var m,_=n[Symbol.iterator]();!(p=(m=_.next()).done);p=!0){var v=m.value;o.has(v[0])||a.push(v[0])}}catch(e){f=!0,g=e}finally{try{!p&&_.return&&_.return()}finally{if(f)throw g}}return{added:r,removed:a}}catch(e){}return i}}]),t}(k.default),q=function(e){function t(){return H(this,t),j(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return W(t,e),V(t,[{key:"getProperties",value:function(e,t){return[]}},{key:"isPropertyTransient",value:function(e){return!1}}]),t}(E.default),K=function(e){function t(){return H(this,t),j(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return W(t,e),V(t,[{key:"getMetaPropertyCategory",value:function(e,i){var n=U(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getMetaPropertyCategory",this).call(this,e,i),o=this.getMetaProperty(e,i).opposite;return o&&o.qualifiedBy?D.default.Unknown():n.isA(D.default.CompositionAny())?n.isCollection()?D.default.AssociationCollection():D.default.Association():n}}]),t}(A.default),X=function(e){function t(){return H(this,t),j(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return W(t,e),V(t,[{key:"instantiate",value:function(e,t,i){if(e._isInstOfDataType())return new(P.default.get(e.qualifiedName));var n=this.findReference(t,i);return n&&n.getMetaClass()===e||T.default.throwErr("CannotApplyChangeReport"),n}},{key:"setValue",value:function(e,i,n){if(i.type.name===R.default.StringToStringMap&&"object"===B(n.added)&&"object"===B(n.removed)){var o=e.getPropertyValue(i),r=n,a=O.default.getPropertySerializer(i.type),s=r.added,l=a.parseValue(s,R.default.StringToStringMap),c=!0,d=!1,u=void 0;try{for(var h,p=Object.entries(l)[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var f=h.value;o.set(f)}}catch(e){d=!0,u=e}finally{try{!c&&p.return&&p.return()}finally{if(d)throw u}}var g=r.removed,m=!0,_=!1,v=void 0;try{for(var b,y=g[Symbol.iterator]();!(m=(b=y.next()).done);m=!0){var C=b.value;o.erase(C)}}catch(e){_=!0,v=e}finally{try{!m&&y.return&&y.return()}finally{if(_)throw v}}}else U(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setValue",this).call(this,e,i,n)}}]),t}(L.default),Y=function(e){function t(){return H(this,t),j(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return W(t,e),V(t,[{key:"instantiate",value:function(e,i,n){if(e._isInstOfDataType())return new(P.default.get(e.qualifiedName));var o=this.findReference(i,n);return o?(o.getMetaClass()!==e&&T.default.throwErr("CannotApplyChangeReport"),o):U(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"instantiate",this).call(this,e,i,n)}}]),t}(L.default),Q=function(){function e(t){H(this,e),this.treatDuplicateAddedElementsAsModified=t}return V(e,[{key:"serializeChangeReport",value:function(e,t){var i={added:[],modified:[],destroyed:[],events:[],addedElementURIs:[]},n=new w.default(new S.default(!1)),o=[];e.processAdded((function(e){var t=new N.default,r=(0,v.getPackage)(e);r&&o.push(r.uri),n.serialize(e,t),i.added.push(t.out[I.default.EntriesAttr][0])})),i.addedElementURIs=C.default.uniq(o).filter((function(e){return!e.startsWith("http://schema.mathworks.com/mf0/meta/")}));var r=new G(e,!1),a=new w.default(r,new z(e));e.processModified((function(e){var t=new N.default;r.currentElement=e,a.serialize(e,t),i.modified.push(t.out[I.default.EntriesAttr][0])}));var s=new w.default(new q);if(e.processDestroyed((function(e){var t=new N.default;s.serialize(e,t),i.destroyed.push(t.out[I.default.EntriesAttr][0])})),e.processDeferredEvents((function(e){var t=e.source.getMetaClass().getOperationByName(e.name);try{for(var n={operation:e.name,source:e.source.uuid,arguments:[]},o=0;o<e.args.length;++o){var r=e.args[o];if(null!=r){var a=t.argument.at(o),s=a.type,l=function(e){if(s._isInstOfClass())return e.uuid;if(s._isInstOfDataType()){var t=new w.default,i=new N.default;return t.serialize(e,i),i.out[I.default.EntriesAttr][0]}var n=O.default.getPropertySerializer(s);return n?n.serializeValue(e):void 0};if(a.upper>1||-1===a.upper){var c=[],d=!0,u=!1,h=void 0;try{for(var p,f=r[Symbol.iterator]();!(d=(p=f.next()).done);d=!0){var g=p.value;c.push(l(g))}}catch(e){u=!0,h=e}finally{try{!d&&f.return&&f.return()}finally{if(u)throw h}}n.arguments.push(c)}else n.arguments.push(l(r))}else n.arguments.push(null)}i.events.push(n)}catch(e){console.log(e)}})),e.metadata){var l=void 0;if((0,m.isValue)(e.metadata))l=e.metadata;else try{l=(0,m.createPrimitiveValue)(e.metadata)}catch(e){l=void 0}if(l){var c=l.actualType,d=O.default.getPropertySerializer(c);if(d){var u={};u[I.default.TypeAttr]=c.qualifiedName,u[I.default.ContentAttr]=d.serializeValue(l.value),i.metadata=u}}}var h=function(e){function t(e){H(this,t);var i=j(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.value=e,i}return W(t,e),V(t,[{key:"visitString",value:function(){return JSON.stringify(this.value)}},{key:"visitIntermediateFormat",value:function(){return this.value}}]),t}(M.default);t.visitOutput(new h(i))}},{key:"parseChangeReport",value:function(e,t){return this.parseChangeReportJSON(JSON.parse(e),t)}},{key:"parseChangeReportJSON",value:function(e,t){return this.treatDuplicateAddedElementsAsModified?this.parseChangeReportVerbatim(e,t,new X,new Y):this.parseChangeReportVerbatim(e,t,new X)}},{key:"parseChangeReportVerbatim",value:function(e,t,i,n,o){return function(r){o===mf.zero.io.SyncMode.Regular&&r.isTransactionInProgress()&&T.default.throwErr("TransactionInProgress");var a=new Set(C.default.map(e.destroyed,"uuid")),s=t.beginTransaction(!0);if(e.destroyed&&C.default.isArray(e.destroyed)){var l=e.destroyed.filter((function(e){return r.findElement(e.uuid)})),c=new x.default(new K,i,n);c.getCustomizer().enableMetaPropertyCategoryCaching(),c.setModel(r),c.setShouldRemapUuids(!1),c.parseVerbatimEntries(l);var d=c.getCreatedTopLevelItems();C.default.forEach(d,(function(e){return function(e,t){for(var i=t.getMetaClass().getAllAttributes(),n=Object.keys(i),o=0,r=n.length;o<r;++o){var a=i[n[o]];if(a.isContainment()){var s=t.getPropertyValue(a);a.isSingleValued()?s&&!e.has(s.uuid)&&(0,_.makeUncontained)(s):s.filter((function(t){return!e.has(t.uuid)})).forEach((function(e){return(0,_.makeUncontained)(e)}))}}}(a,e.item)})),C.default.forEach(d,(function(e){return e.item.destroy()}))}if(e.added&&C.default.isArray(e.added)){var u=new x.default(new K,n);u.getCustomizer().enableMetaPropertyCategoryCaching(),u.setModel(r),u.setShouldRemapUuids(!1),u.parseVerbatimEntries(e.added)}if(e.modified&&C.default.isArray(e.modified)){var h=e.modified.filter((function(e){return r.findElement(e.uuid)})),p=new x.default(new K,i);p.getCustomizer().enableMetaPropertyCategoryCaching(),p.setModel(r),p.setShouldRemapUuids(!1),p.parseVerbatimEntries(h)}e.events&&C.default.isArray(e.events)&&C.default.forEach(e.events,(function(e){!function(e,t){var i;if(!C.default.isObject(t))return;var n=e.findElement(t.source);if(!n)return;var o=n.getMetaClass().getOperationByName(t.operation);try{for(var r=[],a=function(i,n){var a=t.arguments[i];if(!a)return r.push(null),"continue";var s=o.argument.at(i),l=s.type,c=function(t){if(l._isInstOfClass()){var i=e.findElement(t);if(!i)throw new Error("Event on unrecognized element: "+t);return i}if(l._isInstOfDataType()){var n=new x.default;n.parseVerbatimEntries([t]);var o=n.getCreatedTopLevelItems();return o&&C.default.isArray(o)&&1===o.length&&o[0].getMetaClass()===l?o[0].item:void 0}var r=O.default.getPropertySerializer(l);if(r)return r.parseValue(t)};1===s.upper?r.push(c(a)):r.push(a.map(c))},s=0,l=t.arguments.length;s<l;++s)a(s)}catch(e){return}(i=n[t.operation]).emit.apply(i,r)}(r,e)}));var f=void 0;if(e.metadata){var g=e.metadata[I.default.TypeAttr],m=e.metadata[I.default.ContentAttr],v=P.default.getType(g);f=O.default.getPropertySerializer(v).parseValue(m,v)}s.commit(f)}}}]),e}();e.default=Q}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1296)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=(i=t)&&i.__esModule?i:{default:i};var o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var r=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"isPropertyTransient",value:function(e){return!1}}]),t}(n.default);e.default=r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(612),i(396),i(1297),i(611)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=h(t),l=h(i),c=h(n),d=h(o),u=h(r);function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),g=function(){function e(t){p(this,e),this.processor=t,this.processor.startRegisteredPackages()}return f(e,[{key:"destroy",value:function(){this.processor.endRegisteredPackages()}}]),e}(),m=function(){function e(t,i){var n=this;p(this,e),this.processor=t,this.customizer=i,this.processor.startDocument(i.version,i.unqualifiedPackage);var o=new g(t);i.processRegisteredPackages((function(e,t){return n.processor.writeRegisteredPackage(e,t)})),o.destroy()}return f(e,[{key:"destroy",value:function(){this.processor.endDocument(),this.customizer.unregisterAllPackages()}}]),e}(),_=function(){function e(t,i,n,o,r){p(this,e),this.processor=t,this.containerProperty=i,this.metaclass=n,this.idType=o,this.id=r,this.categories=this.processor.startObject(this.containerProperty,this.metaclass,this.idType,this.id)}return f(e,[{key:"destroy",value:function(){this.processor.endObject(this.containerProperty,this.metaclass,this.idType,this.id)}}]),e}(),v=function(){function e(t,i){p(this,e),this.processor=t,this.property=i,this.processor.startPrimitiveEntryValues(this.property)}return f(e,[{key:"destroy",value:function(){this.processor.endPrimitiveEntryValues(this.property)}}]),e}(),b=function(){function e(t,i){p(this,e),this.processor=t,this.property=i,this.processor.startVerbatimEntryValues(this.property)}return f(e,[{key:"destroy",value:function(){this.processor.endVerbatimEntryValues(this.property)}}]),e}(),y=function(){function e(t,i,n){p(this,e),this.processor=t,this.property=i,this.metaclass=n,this.processor.startDatatype(this.property,this.metaclass),this.categories=c.default.All()}return f(e,[{key:"destroy",value:function(){this.processor.endDatatype(this.property,this.metaclass)}}]),e}(),C=function(){function e(t,i,n){p(this,e),this.processor=t,this.property=i,this.isMulti=n,this.processor.startDatatypeValues(this.property,this.isMulti)}return f(e,[{key:"destroy",value:function(){this.processor.endDatatypeValues(this.property,this.isMulti)}}]),e}(),T=function(){function e(t,i){p(this,e),this.processor=t,this.property=i,this.processor.startReferenceEntryValues(this.property)}return f(e,[{key:"destroy",value:function(){this.processor.endReferenceEntryValues(this.property)}}]),e}(),E=function(){function e(t,i,n){p(this,e),this.processor=t,this.property=i,this.isMulti=n,this.processor.startContainment(this.property,this.isMulti)}return f(e,[{key:"destroy",value:function(){this.processor.endContainment(this.property,this.isMulti)}}]),e}(),S=function(){function e(t){p(this,e),this.processor=t,this.processor.startDynamicExtensions()}return f(e,[{key:"destroy",value:function(){this.processor.endDynamicExtensions()}}]),e}(),w=function(){function e(t,i,n){p(this,e),this.processor=t,this.key=i,this.prototype=n,this.processor.startDataTypeDynamicExtension(i,n)}return f(e,[{key:"destroy",value:function(){this.processor.endDataTypeDynamicExtension(this.key,this.prototype)}}]),e}(),I=function(){function e(t){p(this,e),this.processor=t,this.processor.startDynamicOverrides()}return f(e,[{key:"destroy",value:function(){this.processor.endDynamicOverrides()}}]),e}(),A=function(){function e(t,i,n){p(this,e),this.modelTraverser=t,this.customizer=i,this.output=n}return f(e,[{key:"serialize",value:function(e,t,i){var n=this;if(this.output.preprocess(t),e.getMetaClass){if(e.getMetaClass().qualifiedName===d.default.Model){e.getUsedPackages().forEach((function(e){return n.customizer.registerPackage(e)}));var o=new m(this.output,this.customizer);this.doSerializeModel(e),o.destroy()}else if(e.getMetaClass()._isInstOfDataType()){this.customizer.registerPackage((0,a.getPackage)(e));var r=new m(this.output,this.customizer);this.doSerializeElement(e),r.destroy()}else if(e.getMetaClass()._isInstOfClass()){this.customizer.registerPackage((0,a.getPackage)(e));var s=new m(this.output,this.customizer);this.processExtensionRegistrations(e.getModel()),this.doSerializeElement(e),s.destroy()}}else if(Array.isArray(e)){var l=e,c=new Set(l),u=new Set,h=l.filter((function(e){if(u.has(e))return!1;u.add(e);for(var t=e.containerOrModel;t;t=t.containerOrModel)if(c.has(t))return!1;return!0})),p=new m(this.output,this.customizer);this.doSerializeElements(h),p.destroy()}else{var f=new m(this.output,this.customizer);this.doSerializeValue(e,i),f.destroy()}this.output.postprocess(t)}},{key:"doSerializeModel",value:function(e){var t=this;this.processExtensionRegistrations(e),e.getTopLevelElements().forEach((function(e){return t.process(void 0,e)}))}},{key:"doSerializeElement",value:function(e){this.process(void 0,e)}},{key:"doSerializeElements",value:function(e){var t=e.map((function(e){return e&&e.getModel&&e.getModel()||void 0})).reduce((function(e,t){return e===t?e:void 0}));t&&this.processExtensionRegistrations(t);var i=!0,n=!1,o=void 0;try{for(var r,a=e[Symbol.iterator]();!(i=(r=a.next()).done);i=!0){var s=r.value;this.process(void 0,s)}}catch(e){n=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw o}}}},{key:"doSerializeValue",value:function(e,t){var i=this;t.isSingleValued()?e&&this.process(void 0,e):e.forEach((function(e){return i.process(void 0,e)}))}},{key:"process",value:function(e,t){if(this.customizer.shallSerializeElement(t,u.default.UsageMode.Definition)){var i=t.getMetaClass(),n=void 0;if(s.default.isUndefined(t.uuid))n=new y(this.output,this.customizer.getMetaPropertyName(e),this.customizer.getMetaTypeName(i));else{var o=this.customizer.formatElementId(t,u.default.UsageMode.Definition);n=new _(this.output,this.customizer.getMetaPropertyName(e),this.customizer.getMetaTypeName(i),o.identifierType,o.identifier)}for(var r=void 0,a=void 0,l=s.default.isArray(n.categories)?n.categories:[n.categories],c=0,d=l.length;c<d;++c){a=l[c];for(var h=this.modelTraverser.getProperties(i,a),p=0,f=h.length;p<f;++p){var g=h[p];r=this.customizer.getMetaPropertyName(g);var m=void 0;(1==g.upper||t.hasPropertyValue(g))&&(m=t.getPropertyValue(g)),this.modelTraverser.getPropertyCategory(g).isCustom()&&(m=this.customizer.customizePropertyValue(t,g,m)),this.processProperty(g,r,m)}}if(t.listExtensionNamesWithNonDefaultValues){var v=[];t.listExtensionNamesWithNonDefaultValues((function(e){return v.push(e)}));var b=v.length;if(b>0){for(var C=new I(this.output),T=t.getModel(),E=0;E<b;++E){var S=v[E],w=T.getExtension(i,S);this.processProperty(w,w.name,t.getExtension(S))}C.destroy()}}n.destroy()}}},{key:"processProperty",value:function(e,t,i){var n=this,o=this.modelTraverser.getPropertyCategory(e);if(!o.isCollection()||i){if(o.and(c.default.PrimitiveAny()))o.isCollection()?this.writePrimitiveCollection(e,i):this.writePrimitiveValue(e,i);else if(o.and(c.default.VerbatimAny()))if(o.isCollection()){t=this.customizer.getMetaPropertyName(e);var r=new b(this.output,t);i.forEach((function(i){n.output.writeVerbatimEntryValue(t,i,e.type)})),r.destroy()}else this.output.writeVerbatimValue(this.customizer.getMetaPropertyName(e),i,e.type);else if(o.and(c.default.DatatypeAny())){var a=new C(this.output,this.customizer.getMetaPropertyName(e),o.isCollection());o.isCollection()?i.forEach((function(t){return n.process(e,t)})):i&&this.process(e,i),a.destroy()}else if(o.and(c.default.AssociationAny()))if(o.isCollection()){var l=new T(this.output,t);i.forEach((function(e){if(n.customizer.shallSerializeElement(e,u.default.UsageMode.Reference)&&e.isValid){var i=n.customizer.formatElementId(e,u.default.UsageMode.Reference);s.default.isEmpty(i.identifier)||n.output.writeReferenceEntryValue(t,n.customizer.getMetaTypeName(e.getMetaClass()),i.identifierType,i.identifier)}})),l.destroy()}else if(i&&i.isValid&&this.customizer.shallSerializeElement(i,u.default.UsageMode.Reference)){var d=this.customizer.formatElementId(i,u.default.UsageMode.Reference);s.default.isEmpty(d.identifier)||this.output.writeReferenceValue(t,this.customizer.getMetaTypeName(i.getMetaClass()),d.identifierType,d.identifier)}else this.output.writeEmptyReferenceValue(t);else if(o.and(c.default.CompositionAny())){var h=new E(this.output,t,o.isCollection());o.isCollection()?i.forEach((function(t){return n.process(e,t)})):i&&this.process(e,i),h.destroy()}}else this.writeEmptyCollection(e,o)}},{key:"writePrimitiveValue",value:function(e,t){var i=this.customizer.getMetaPropertyName(e),n=this.customizer.formatPrimitiveValue(e,t);null===n||s.default.isUndefined(n)?this.output.writeEmptyPrimitiveValue(i):this.output.writePrimitiveValue(i,n)}},{key:"writePrimitiveCollection",value:function(e,t){var i=this,n=this.customizer.getMetaPropertyName(e),o=new v(this.output,n);t.forEach((function(t){var o=i.customizer.formatPrimitiveValue(e,t);s.default.isUndefined(o)||i.output.writePrimitiveEntryValue(n,o)})),o.destroy()}},{key:"writeEmptyCollection",value:function(e,t){var i=this.customizer.getMetaPropertyName(e),n=void 0;if(t.isA(c.default.PrimitiveCollection())){if(!this.customizer.getPrimitiveValueSerializer(e))return;n=new v(this.output,i)}else t.isA(c.default.VerbatimAny())?n=new b(this.output,i):t.isA(c.default.DatatypeAny())?n=new C(this.output,i,!0):t.isA(c.default.AssociationAny())?n=new T(this.output,i):t.isA(c.default.CompositionAny())&&(n=new E(this.output,i,!0));n&&n.destroy()}},{key:"processExtensionRegistrations",value:function(e){var t=this;if(this.customizer.shouldSerializeExtensions){var i=new Map;if(e.listExtensions((function(e){var n=e.owner.owningClass,o={first:t.customizer.getMetaTypeName(n),second:e.name},r=e.createPrototype();r.typeName=t.customizer.getMetaTypeName(e.type);var a=i.get(o);a?r!==a.first&&l.default.throwErr("ExtensionNameMustBeUnique"):i.get(o)||i.set(o,{first:r,second:e})})),0!==i.size){for(var n=new S(this.output),o=Array.from(i.keys()),r=0,s=o.length;r<s;++r){var d=o[r],u=i.get(d),h=u.first,p=u.second,f=this.modelTraverser.getPropertyCategory(p);if(f.isCollection()||f.isA(c.default.AssociationAny().bitOr(c.default.CompositionAny())))this.output.writeImplicitlyEmptyDynamicExtension(d.first,u.first);else if(f.isA(c.default.Primitive())){var g=this.customizer.getPrimitiveValueSerializer(p);if(!g)continue;var m=(0,a.getExtensionDefault)(e,p.owner.owningClass,p.name),_=0==h.lower&&1==h.upper?g.serializeOptionalValue(m):g.serializeValue(m);_?this.output.writePrimitiveDynamicExtension(d.first,h,_):this.output.writeEmptyDynamicExtension(d.first,h)}else if(f.isA(c.default.Verbatim())){var v=(0,a.getExtensionDefault)(e,p.owner.owningClass,p.name);this.output.writeVerbatimDynamicExtension(d.first,h,v,p.type)}else if(f.isA(c.default.Datatype())){var b=(0,a.getExtensionDefault)(e,p.owner.owningClass,p.name);if(0==p.lower&&1==p.upper&&!b){this.output.writeEmptyDynamicExtension(d.first,h);continue}var y=new w(this.output,d.first,h);this.doSerializeElement(b),y.destroy()}}n.destroy()}}}}]),e}();e.default=A}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(612)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=(i=t)&&i.__esModule?i:{default:i};var o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,[{key:"preprocess",value:function(e){}},{key:"postprocess",value:function(e){}},{key:"startDocument",value:function(e,t){}},{key:"endDocument",value:function(){}},{key:"startRegisteredPackages",value:function(){}},{key:"writeRegisteredPackage",value:function(e,t){}},{key:"endRegisteredPackages",value:function(){}},{key:"startObject",value:function(e,t,i,o){return[n.default.All()]}},{key:"endObject",value:function(e,t,i,n){}},{key:"writePrimitiveValue",value:function(e,t){}},{key:"writeEmptyPrimitiveValue",value:function(e){}},{key:"startPrimitiveEntryValues",value:function(e){}},{key:"writePrimitiveEntryValue",value:function(e,t){}},{key:"endPrimitiveEntryValues",value:function(e){}},{key:"writeVerbatimValue",value:function(e,t,i){}},{key:"startVerbatimEntryValues",value:function(e){}},{key:"writeVerbatimEntryValue",value:function(e,t,i){}},{key:"endVerbatimEntryValues",value:function(e){}},{key:"writeEmptyDatatype",value:function(e,t){}},{key:"startDatatype",value:function(e,t){}},{key:"endDatatype",value:function(e,t){}},{key:"writeReferenceValue",value:function(e,t,i,n){}},{key:"writeEmptyReferenceValue",value:function(e){}},{key:"startReferenceEntryValues",value:function(e){}},{key:"writeReferenceEntryValue",value:function(e,t,i,n){}},{key:"endReferenceEntryValues",value:function(e){}},{key:"startContainment",value:function(e,t){}},{key:"endContainment",value:function(e,t){}},{key:"startDatatypeValues",value:function(e,t){}},{key:"endDatatypeValues",value:function(e,t){}},{key:"startDynamicExtensions",value:function(){}},{key:"writePrimitiveDynamicExtension",value:function(e,t,i){}},{key:"writeEmptyDynamicExtension",value:function(e,t){}},{key:"writeImplicitlyEmptyDynamicExtension",value:function(e,t){}},{key:"writeVerbatimDynamicExtension",value:function(e,t,i,n){}},{key:"startDataTypeDynamicExtension",value:function(e,t){}},{key:"endDataTypeDynamicExtension",value:function(e,t){}},{key:"endDynamicExtensions",value:function(){}},{key:"startDynamicOverrides",value:function(){}},{key:"endDynamicOverrides",value:function(){}}]),e}();e.default=r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(565),i(780),i(612),i(778),i(1294)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=h(t),c=(h(i),h(n)),d=h(o),u=h(r);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.unqualifiedPackage="",this.typeRenames=new Map,this.propertyRenames=new Map,this.registeredUpgrades={},this.idProcessors={},this.ignoredProperties=new Set,this.typeProvider=function(e){return c.default.getType(e)},this.metaPropertyCategoryCache=new s.SimpleFunctionCache}return p(e,[{key:"setVersion",value:function(e){var t=this.registeredUpgrades[e];t&&t(this)}},{key:"setPackageUri",value:function(e,t){var i=this.registeredUpgrades[t];i&&i(this)}},{key:"getMetaProperty",value:function(e,t){if(this.propertyRenames.size>0){var i=e.getAllSuperClasses(),n=!0,o=!1,r=void 0;try{for(var a,s=i[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value,c=this.propertyRenames.get(l);if(c&&c.get(t))return c.get(t)}}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}}return e.getPropertyByName(t)}},{key:"getMetaPropertyCategory",value:function(e,t){var i=this,n=this.getMetaProperty(e,t);return this.metaPropertyCategoryCache.getOrEval(n,(function(){return!n||!n.type||n.opposite&&n.opposite.isComposite||i.ignoredProperties.has(n)?u.default.Unknown():i.getDefaultPropertyCategory(n)}))}},{key:"getMetaClass",value:function(e){var t=""!==this.unqualifiedPackage&&-1===e.indexOf(".")?this.unqualifiedPackage+"."+e:e;return this.typeRenames.size>0&&this.typeRenames.get(t)?this.typeRenames.get(t):this.typeProvider(e)}},{key:"parsePrimitiveValue",value:function(e,t,i){var n=void 0;if(d.default.forAllPropertySerializers(e,(function(o){try{return n=t?o.parseOptionalValue(i,e):o.parseValue(i,e),!1}catch(e){return!0}})),l.default.isUndefined(n)){var o=d.default.getDefaultPrimitiveSerializer();n=t?o.parseOptionalValue(i,e):o.parseValue(i,e)}return n}},{key:"findReference",value:function(e,t,i){for(var n=void 0,o=t;o&&o._isInstOfClass()&&!(0,a.isModelElement)(o);o=o.superclass){var r=this.idProcessors[o.qualifiedName];if(r){n=l.default.isFunction(r)?r(e,t,i):r.get(e,t,i);break}}if(n&&n.getMetaClass().isA(t))return n}},{key:"shallInstantiate",value:function(e,t,i){return!0}},{key:"shallAddReference",value:function(e,t,i,n,o){return!0}},{key:"setUnqualifiedPackage",value:function(e){this.unqualifiedPackage=e}},{key:"registerTypeRename",value:function(e,t){this.typeRenames.set(e,t)}},{key:"registerPropertyRename",value:function(e,t,i){this.propertyRenames.get(e)||this.propertyRenames.set(e,new Map),this.propertyRenames.get(e).set(t,i)}},{key:"registerVersionUpgrade",value:function(e,t){this.registeredUpgrades[e]=t}},{key:"registerIdentifierProcessor",value:function(e,t){this.idProcessors[e.qualifiedName]=t}},{key:"getExtensionCategory",value:function(e){return this.getDefaultPropertyCategory(e)}},{key:"getDefaultPropertyCategory",value:function(e){var t=void 0;return t=e.type._isInstOfClass()?e.isComposite?u.default.Composition():u.default.Association():e.type._isInstOfDataType()?u.default.Datatype():u.default.Primitive(),(e.upper>1||"*"===e.upper)&&t.setCollection(),t}},{key:"setTypeProvider",value:function(e){this.typeProvider=e}},{key:"ignoreProperty",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t?this.ignoredProperties.add(e):this.ignoredProperties.delete(e),this.metaPropertyCategoryCache.delete(e)}}]),e}();e.default=f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(309),i(2919)],o=i.dj.d(n,(function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(t),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.processor=new o.default(t,i)}return a(e,[{key:"setModel",value:function(e){this.processor.model=e}},{key:"getModel",value:function(){return this.processor.model}},{key:"getCreatedTopLevelItems",value:function(){return this.processor.createdTopLevelItems}},{key:"getCreatedRemappedUuids",value:function(){return this.processor.builder.remappings}},{key:"shouldRemapUuids",value:function(){return this.processor.builder.remapUuids}},{key:"setShouldRemapUuids",value:function(e){this.processor.builder.remapUuids=e}},{key:"getCustomizer",value:function(){return this.processor.customizer}},{key:"parseFile",value:function(){}},{key:"parseString",value:function(){n.default.throwErr("Implement")}}]),e}();e.default=s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(2920),i(1297),i(611)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=u(t),s=u(i),l=u(n),c=u(o),d=u(r);function u(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),f=function(){function e(){h(this,e)}return p(e,[{key:"getInsertionPolicy",value:function(){return"Insert_Anywhere_Policy"}}]),e}(),g=function(){function e(){h(this,e),this.m_seenElements=new Set}return p(e,[{key:"getInsertionPolicy",value:function(e){return this.m_seenElements.has(e)?"Do_Not_Insert_Policy":(this.m_seenElements.add(e),this.m_seenElements.size-1)}}]),e}(),m=function(){function e(t,i){h(this,e),this.model=null,this.transaction=null,this.customizer=t,this.builder=i,this.stack=[],this.deferredReferences=[],this.createdTopLevelItems=[],this.inProgressIndicator=null,this.builder.clearRemappings()}return p(e,[{key:"setVersion",value:function(e,t){if(this.customizer.setVersion(e),!this.model){if(t)throw new Error("Provided transaction factory without model -- this will never work");this.model=new d.default}t||(t=this.model.getDefaultTransactionFactory()),this.createdTopLevelItems=[],this.transaction=t.beginRevertibleTransaction(),this.inProgressIndicator=(0,r.startParse)(this.model)}},{key:"push",value:function(e,t,i){if(this.customizer.shallInstantiate(e,t,i)){var n=this.customizer.getMetaClass(e);n||s.default.throwErr("NoSuchType",e);var o=this.builder.instantiate(n,this.model,new c.default(t,i));return o||s.default.throwErr("CannotInstantiateType",e),this.stack.push(new l.default(o))}}},{key:"pop",value:function(e){var t=this.stack.pop();if(0!==this.stack.length){var i=_(this,e);i||s.default.throwErr("NoSuchProperty",e,t.getMetaClass().qualifiedName);var n=t.item;this.builder.setValue(a.default.last(this.stack).item,i,n)}else this.createdTopLevelItems.push(t)}},{key:"addDeferredReference",value:function(e,t,i,n){var o=a.default.last(this.stack).item;if(this.customizer.shallAddReference(o,e,t,i,n)){var r=_(this,t);this.deferredReferences.push({parent:o,feature:r,expectedMetaclass:e,elementId:new c.default(i,n)})}}},{key:"setEmptyValue",value:function(e){var t=this.customizer.getMetaProperty(a.default.last(this.stack).getMetaClass(),e);t||s.default.throwErr("NoSuchProperty",e,a.default.last(this.stack).getMetaClass().qualifiedName),this.builder.setValue(a.default.last(this.stack).item,t,null)}},{key:"clearValues",value:function(e){var t=_(this,e);t&&(t.upper>"1"||"*"===t.upper?this.builder.clearObjectValue(a.default.last(this.stack).item,t):t.type._isInstOfClass()&&this.builder.setValue(a.default.last(this.stack).item,t,null))}},{key:"setValue",value:function(e,t){var i=_(this,e);i||s.default.throwErr("NoSuchProperty",e,a.default.last(this.stack).getMetaClass().qualifiedName);var n=this.customizer.parsePrimitiveValue(i.type,"0"==i.lower&&"1"==i.upper,t);this.builder.setValue(a.default.last(this.stack).item,i,n)}},{key:"setVerbatimValue",value:function(e,t){var i=_(this,e);i||s.default.throwErr("NoSuchProperty",e,a.default.last(this.stack).getMetaClass().qualifiedName),this.builder.setValue(a.default.last(this.stack).item,i,t)}},{key:"processDeferred",value:function(){var e=this;a.default.forEach(this.deferredReferences,(function(t){(t.feature.upper>"1"||"*"===t.feature.upper)&&e.builder.clearObjectValue(t.parent,t.feature)}));var t=null,i=null,n=void 0;a.default.forEach(this.deferredReferences,(function(o){var r=o.parent,a=o.feature;r===t&&a===i||(n=a.isOrdered&&a.opposite?new g:new f),t=r,i=a;var l=e.customizer.getMetaClass(o.expectedMetaclass),c=e.builder.findReference(e.model,o.elementId);c&&c.getMetaClass().isA(l)||(c=e.customizer.findReference(e.model,l,o.elementId)),c||s.default.throwErr("DanglingReference",o.elementId.identifier);var d=n.getInsertionPolicy(c.uuid);switch(d){case"Do_Not_Insert_Policy":break;case"Insert_Anywhere_Policy":e.builder.setValue(r,a,c);break;default:e.builder.setValue(r,a,c,d)}})),this.transaction&&this.transaction.commit()}},{key:"parseCompleted",value:function(){this.transaction=null,this.deferredReferences=[],this.customizer.typeRenames=new Map,this.customizer.propertyRenames=new Map,this.inProgressIndicator.destroy(),this.inProgressIndicator=null}},{key:"getPropertyCategory",value:function(e){var t=a.default.last(this.stack);return t.isDynamicContent?this.customizer.getExtensionCategory(_(this,e)):this.customizer.getMetaPropertyCategory(t.getMetaClass(),e)}},{key:"isEmpty",value:function(){return 0===this.stack.length}},{key:"registerExtension",value:function(e,t,i){var n=this.customizer.getMetaClass(t.typeName);if(n){var o=this.customizer.parsePrimitiveValue(n,!1,i);this.registerExtensionValue(e,t,o)}}},{key:"registerExtensionValue",value:function(e,t,i){var n=this.customizer.getMetaClass(e);if(n&&n._isInstOfClass()){var o=this.customizer.getMetaClass(t.typeName);if(o){var a=t.clone();a.typeName=o.qualifiedName;var l=this.model.getExtension(n,a.name);if(l)return l.type()!==o&&s.default.throwErr("ExtensionNameMustBeUnique"),void(l.upper>1?(a.upper<=1&&s.default.throwErr("ExtensionNameMustBeUnique"),l.isUnique()!==a.isUnique&&s.default.throwErr("ExtensionNameMustBeUnique"),l.isOrdered!==a.isOrdered()&&s.default.throwErr("ExtensionNameMustBeUnique")):(a.upper>1&&s.default.throwErr("ExtensionNameMustBeUnique"),l.lower!==a.lower&&s.default.throwErr("ExtensionNameMustBeUnique"),o._isInstOfClass()||(i||s.default.throwErr("ExtensionMustHaveDefaultValue"),i!==(0,r.getExtensionDefault)(this.model,n,a.name)&&s.default.throwErr("ExtensionNameMustBeUnique"))));this.model.extendMetaclass(n,t,i)}}}},{key:"registerExtensionWithLastParsedItem",value:function(e,t){var i=this.createdTopLevelItems.pop();i.isModelElement()&&s.default.throwErr("InvalidValue"),this.registerExtensionValue(e,t,i.item)}},{key:"startDynamicContent",value:function(){a.default.last(this.stack).isDynamicContent=!0}},{key:"getPropertyType",value:function(e){return _(this,e).type}}]),e}();function _(e,t){var i=a.default.last(e.stack);return i.isModelElement()&&i.isDynamicContent?e.model.getExtension(i.getMetaClass(),t):e.customizer.getMetaProperty(i.getMetaClass(),t)}e.default=m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(1059)],o=i.dj.d(n,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.item=t,this.isDynamicContent=!1}return i(e,[{key:"getMetaClass",value:function(){return this.item.getMetaClass()}},{key:"isModelElement",value:function(){var e=(0,t.isStructuredType)(this.item);return e&&e._isInstOfClass()}}]),e}();e.default=n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t,i(293),i(309),i(884),i(610)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=c(t),a=c(i),s=c(n),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(o);function c(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),u=Object.freeze({Resolve:"Resolve",Reject:"Reject",Ignore:"Ignore",Wait:"Wait"}),h=function(){function e(t){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.channel=t,this.packetPromise=null,this.resolve=null,this.reject=null,this.mode={},this.packetHandlers={},this.errorHandler=null,this.expectedPacketType=null,this.lastSentPacket=null,this.span=new s.default,this.span.addContext(l.info,"channel",this.channel),this.span.log(l.debug,"Transport created"),t.setReceiver((function(n){var o=i.span.createChild("packet");if(o.addContext(l.info,"packetType",n.type),o.addContext(l.debug,"packetContent",n),function(e,t){return!e.expectedPacketType||e.expectedPacketType===t.type}(i,n))if(i.expectedPacketType=null,i.hasPacketHandler(n.type))if(p(i,n))o.log(l.warning,"Dropping packet");else{var a=i.packetHandlers[n.type],s={packetIgnored:!1};o.log(l.debug,"handling packet");var c=a(n,s);r.default.when(c,(function(o){if(!s.packetIgnored){switch(function(e,t,i){if(e)return t[i.type];return null}(i.packetPromise,i.mode,n)){case e.PacketPromiseMode.Resolve:var r=i.resolve;i.packetPromise=null,i.resolve=null,i.reject=null,r();break;case e.PacketPromiseMode.Reject:i.reject()}o&&t.send(o)}}))}else o.log(l.warning,"No handler found");else i.errorHandler&&(o.log(l.warning,"Unexpected packet"),i.errorHandler(n,i.lastSentPacket,i.expectedPacketType))}))}return d(e,[{key:"sendPacket",value:function(e){this.channel||a.default.throwErr("NoChannel"),this.lastSentPacket=e,this.channel.send(this.lastSentPacket)}},{key:"sendAndReceivePacket",value:function(e){var t=this,i=this.packetPromise;return this.isWaitingForPromise()||(i=new Promise((function(e,i){t.resolve=e,t.reject=i})),this.packetPromise=i,this.sendPacket(e)),i}},{key:"sendAndExpectPacket",value:function(e,t){return this.expectedPacketType=t,this.sendAndReceivePacket(e)}},{key:"isWaitingForPromise",value:function(){return this.packetPromise&&this.resolve}},{key:"setPacketHandler",value:function(e,t,i){this.packetHandlers[e]=t,this.mode[e]=i}},{key:"setPacketHandlers",value:function(e){var t=this;e.forEach((function(e){t.setPacketHandler(e.packetType,e.handler,e.promiseMode)}))}},{key:"setErrorHandler",value:function(e){this.errorHandler=e}},{key:"hasPacketHandler",value:function(e){return Boolean(this.packetHandlers[e])}}],[{key:"createPacket",value:function(e,t,i){return{type:e,content:t,client:i}}},{key:"PacketPromiseMode",get:function(){return u}}]),e}();function p(e,t){return h.PacketPromiseMode.Wait===e.mode[t.type]&&e.isWaitingForPromise()}e.default=h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(204),i(883),i(1756),i(1757),i(2923),i(704),i(705)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([o,r],{constructor:function(e,t,i,n,o,r,s){this._mf0Model=e,this._channel=t,this._modelSynchronizer=i,this._viewModelCache={},this._transactionHandler=n,this._transactionHandler._registerViewModelManager(this),this._viewModelFactory=o,this._pluginManager=r,this._mf0ChangeReportListener=new a(this),this._mf0Model.addDeepListener(this._mf0ChangeReportListener),this._apiFactories=s,this._root=null},getRoot:function(){return this._root},hasRoot:function(){return Boolean(this._root)},setRoot:function(e,t){if(this.hasRoot())throw new Error("ViewModelManager already has root set");this._beginTransaction();var i={mf0ViewModelManager:this,propertyObject:t,type:e,apiFactories:this._apiFactories};return this._root=this._viewModelFactory.createViewModel(i),l.fireRootSetEvent(this,this._root,s.getMetadata()),this._mf0ChangeReportListener._rootSetFiredFlag=!0,this._commitTransaction(),this._root},hasById:function(e){return Boolean(this.getById(e))},getById:function(e){return this._viewModelCache.hasOwnProperty(e)?this._viewModelCache[e]:null},getByType:function(e,t){var i=[];return t||(t=this._root),t&&t.visit((function(t){t.getType()===e&&i.push(t)})),i},getByProperty:function(e,t,i){var n=[];return i||(i=this._root),i&&i.visit((function(i){i.hasProperty(e)&&i.getProperty(e)===t&&n.push(i)})),n},move:function(e,t,i,n){if((!Number.isInteger(i)||i>=t.getChildren().length)&&(i=t.getChildren().length,e.getParent().getId()===t.getId()&&(i-=1)),i<0)throw new Error("ASSERTION FAILED: Index value should not be negative.");if(e===t||e.hasDescendant(t.getId()))throw new Error("ASSERTION FAILED: Can not move a node to be a child or descendant of itself");var o=t.getChildren();this._beginTransaction();var r=e.getParent(),a=-1,c=r.getChildren();r&&(a=r.getChildIndex(e),e._detachParent(),l.fireChildDetached(r,e,a,s.getMetadata(n)),l.fireChildrenChanged(r,c,s.getMetadata(n))),e._setViewModelAndMF0Parent(t),t._updateViewModelAndMF0ChildrenAfterAdd(e,i),l.fireChildAttached(t,e,i,s.getMetadata(n)),l.fireChildrenChanged(t,o,s.getMetadata(n)),l.fireChildMoved(this,e,t,i,r,a,s.getMetadata(n)),this._commitTransaction(n)},isServerHandshakeCompleted:function(){return this._mf0ChangeReportListener._isServerHandshakeCompleted},installPlugin:function(e){this._pluginManager.installPlugin(e,this)},destroy:function(){this._destroyed||(this.hasRoot()&&this.getRoot().destroy(),this._mf0Model.removeListener(this._mf0ChangeReportListener),this._mf0Model.topLevelElements.size&&(this._beginTransaction(),this._mf0Model.topLevelElements.forEach((function(e){e.destroy()})),this._commitTransaction()),this._mf0Model.destroy(),this._mf0Model=null,this._channel=null,this._mf0ChangeReportListener=null,this.notifyEventListeners("destroyed",this,{},s.getMetadata("")),this._transactionHandler.destroy(),this._transactionHandler=null,this.inherited(arguments))},setSyncEnabled:function(e){!e&&this._modelSynchronizer?this._modelSynchronizer.stop():console.warn("View Model does not currently support reenabling synchronization")},setCommitStrategy:function(e){this._transactionHandler.setCommitStrategy(e)},commit:function(e){this._transactionHandler.manualCommit(e)},_setRootWithObject:function(e,t){var i={mf0ViewModelManager:this,mf0Element:e,apiFactories:this._apiFactories},n=this._viewModelFactory.createViewModel(i);n.updateEntireCacheIfPresent(),this._root=n},_registerViewModel:function(e){this._viewModelCache[e.getId()]=e},_unregisterViewModel:function(e){delete this._viewModelCache[e.getId()]},_beginTransaction:function(){this._transactionHandler.beginTransaction()},_commitTransaction:function(e){this._transactionHandler.commitTransaction(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(345),i(883),i(776),i(705)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t=t.default,{constructor:function(e){this._mf0ViewModelManager=e,this._propertiesCache={},this._viewModelsMovedCache={},this._rootSetFiredFlag=!1,this._isServerHandshakeCompleted=!1,this.isModifier=!0},transactionCommitted:function(e){var t;if(void 0===e.metadata?(t={metadata:void 0,origin:"CPP"},!1!==this._isServerHandshakeCompleted&&console.warn("ViewModel: metadata is undefined, but Server Handshake Completed: "+this._isServerHandshakeCompleted)):t=n.convertFromJSON(e.metadata),"JS"!==t.origin){var i=this._restructureChangeReport(e);i.metadata=t;var o=this._makeViewModelConsistent(i);o.metadata=t,this._notifyApplications(o)}},_restructureChangeReport:function(e){var t={created:[],modified:{properties:[],children:[],parent:[]},destroyed:[]};return e._added.forEach((function(e){t.created.push(e)})),e._modified.forEach((function(i){e.getChangedProperties(i).forEach((function(n){var o=n.get_PropName();if("_Children"===o){var r=e.getOldValue(i,n);t.modified.children.push({backingElement:i,previousValue:r})}else if("_Parent"===o){r=e.getOldValue(i,n);t.modified.parent.push({backingElement:i,previousValue:r})}else if("_properties"===o){r=e.getOldValue(i,n);t.modified.properties.push({backingElement:i,previousValue:r})}}),this)})),e._destroyed.forEach((function(e){t.destroyed.push(e)})),t},_makeViewModelConsistent:function(e){var t={rootSet:void 0,created:[],destroyed:[],modified:{property:[],properties:[],children:[],parent:[],childAttached:[],childDetached:[]},metadata:void 0};return this._rootSetFiredFlag?this._validateRootIsNotSet(e):this._listenForRootSet(e,t),this._listenForViewModelDestroyed(e,t),this._listenForViewModelCreated(e,t),this._listenForPropertySet(e,t),this._listenForViewModelChildrenChanged(e,t),this._listenForChildAttached(e,t),this._listenForChildDetached(e,t),t},_validateRootIsNotSet:function(e){if(e.created.find((function(e){return this._isViewModelBackingElementRoot(e)}),this))throw new Error("ASSERTION FAILED: Root being set when root exists")},_listenForRootSet:function(e,t){var i=e.created.find((function(e){return this._isViewModelBackingElementRoot(e)}),this);i&&(this._mf0ViewModelManager.hasRoot()||this._mf0ViewModelManager._setRootWithObject(i),t.rootSet={rootViewModel:this._mf0ViewModelManager.getById(i.uuid)})},_listenForViewModelDestroyed:function(e,t){for(var i=e.destroyed;0!==i.length;)i=this._topologicallySortDestroyedBackingElements(i,t)},_topologicallySortDestroyedBackingElements:function(e,t){var i=[];return e.forEach((function(e){var n=this._mf0ViewModelManager.getById(e.uuid);if(this._handleChildrenMovedFromDeletedViewModel(n),0===n._children.length)if(n._destroyed="beingDestroyed",n.hasParent()){var o=n.getParent();t.destroyed.push({parent:o,viewModel:n,index:o._getChildIndex(n)}),o._updateViewModelChildrenAfterRemove(n)}else t.destroyed.push({parent:void 0,viewModel:n,index:void 0}),this._mf0ViewModelManager._root=null;else i.push(e)}),this),i},_handleChildrenMovedFromDeletedViewModel:function(e){let t=0;for(;t<e.getChildren().length;){let i=e.getChild(t);if(i._mf0Element.isValid){let t=this._mf0ViewModelManager.getById(i._mf0Element.Parent.uuid);this._makeViewModelParentConsistent(i,t,e)}else t+=1}},_listenForViewModelCreated:function(e,t){for(var i=e.created.filter((function(e){return!this._isViewModelBackingElementRoot(e)}),this);0!==i.length;)i=this._topologicallySortCreatedBackingElements(i,e,t)},_topologicallySortCreatedBackingElements:function(e,t,i){var n=[];return e.forEach((function(e){var o=e.Parent,r=this._mf0ViewModelManager.getById(o.uuid),a=o.Children.find(e);if(r&&a<=r.getChildren().length){var s=this._mf0ViewModelManager.getById(e.uuid);s||(s=r._addChildThroughObject(e,t.metadata),this._handleChildrenPresentInCreatedBackingElement(s,t));var l=!1,c=i.created.findIndex((function(e){var t=e.parent.getId()===r.getId();return!!(t&&e.childIndex>a)||(!(t||!l)||(t&&(l=!0),!1))}));c=-1===c?i.created.length:c,i.created.splice(c,0,{parent:r,child:s,index:a})}else n.push(e)}),this),n},_handleChildrenPresentInCreatedBackingElement:function(e,t){for(var i=e._mf0Element.Children,n=0;n<i.size();n++){var o=i.at(n),r=o.uuid;if(!t.created.some((function(e){return e.uuid===r}))){var a=this._mf0ViewModelManager.getById(o.uuid);this._makeViewModelParentConsistent(a,e,a.getParent())}}},_listenForPropertySet:function(e,t){e.modified.properties.forEach((function(e){var i=e.backingElement,o=e.previousValue,r=this._mf0ViewModelManager.getById(i.uuid),a={oldValues:{},newValues:{}};for(const e of i.properties)if(!o||!o.has(e[0])||o.get(e[0])!==e[1]){let i=e[0],l=n.convertFromJSON(e[1]);r.updatePropertyCacheIfPresent(i);var s="";if(o&&o.has(e[0])){let t=o.get(e[0]);s=n.convertFromJSON(t)}t.modified.property.push({viewModel:r,newPropertyName:i,prevPropertyValue:s,newPropertyValue:l}),a.oldValues[i]=s,a.newValues[i]=l}t.modified.properties.push({viewModel:r,changedProperties:a})}),this)},_listenForViewModelChildrenChanged:function(e,t){e.modified.children.forEach((function(e){for(var i,n=e.backingElement,o=e.previousValue,r=this._mf0ViewModelManager.getById(n.uuid),a=n.Children,s=0;s<a.size();s++){var l=a.at(s),c=r._getChildThroughIndex(s,r._children);if(c){if(c.getId()===l.uuid)continue;var d=this._mf0ViewModelManager.getById(c._mf0Element.Parent.uuid);this._makeViewModelParentConsistent(c,d,r)}var u=this._mf0ViewModelManager.getById(l.uuid);this._makeViewModelParentConsistent(u,r,u.getParent())}i=o?o.map((function(e){return this._mf0ViewModelManager.getById(e.uuid)}),this):[],t.modified.children.push({viewModel:r,previousChildren:i})}),this)},_listenForChildAttached:function(e,t){e.modified.parent.forEach((function(e){var i=e.backingElement,n=i.Parent;if(!n)throw new Error("Child Should Not Be Detached");var o=this._mf0ViewModelManager.getById(i.uuid),r=this._mf0ViewModelManager.getById(n.uuid);if(!(o.getParent().getId()===n.uuid))throw new Error("View Model Hierarchy should be consistent by this point");t.modified.childAttached.push({parent:r,child:o,index:r._getChildIndex(o)})}),this)},_listenForChildDetached:function(e,t){e.modified.children.forEach((function(e){var i=e.backingElement,n=e.previousValue,o=i.Children;n.forEach((function(e){if(-1===o.find(e)){var r=this._mf0ViewModelManager.getById(i.uuid),a=this._mf0ViewModelManager.getById(e.uuid),s=a._mf0Element;if(!s||!s.isValid||!s.Parent)return;var l=s.Parent;if(!(r.getId()!==l.uuid))throw new Error("View Model Hierarchy should be consistent by this point");t.modified.childDetached.push({previousParent:r,child:a,index:n.indexOf(s)})}}),this)}),this)},_notifyApplications:function(e){this._emitRootSet(e),this._emitChildAdds(e),this._emitPropertySets(e),this._emitPropertiesSets(e),this._emitDestroyeds(e),this._emitHierarchyChanges(e),this._emitChildAttached(e),this._emitChildDetached(e)},_emitRootSet:function(e){if(e.rootSet){var t=e.rootSet.rootViewModel,i=t.getChildren;t.getChildren=function(){return[]},o.fireRootSetEvent(this._mf0ViewModelManager,t,e.metadata),t.getChildren=i,this._rootSetFiredFlag=!0}},_emitChildAdds:function(e){e.created.forEach((function(t){var i=t.parent,n=t.child,o=t.index;if(!i.restoreGetChildren){var r=i.getChildren;i.getChildren=function(){return this._children.slice(0,o)},i.restoreGetChildren=function(){i.getChildren=r}}var a=n.getChildren,s=n.getChildren().findIndex((function(t){return e.created.some((function(e){return e.child.getId()===t.getId()}))}));n.getChildren=function(){return-1===s?[]:this._children.slice(0,s)},n.restoreGetChildren=function(){n.getChildren=a}})),e.created.forEach((function(t){var i=t.parent,n=t.child,r=t.index;i.getChildren=function(){return this._children.slice(0,r+1)},o.fireChildAddedEvent(i,n,r,e.metadata)})),e.created.forEach((function(e){var t=e.parent,i=e.child;t.restoreGetChildren&&(t.restoreGetChildren(),delete t.restoreGetChildren),i.restoreGetChildren&&(i.restoreGetChildren(),delete i.restoreGetChildren)}))},_emitPropertySets:function(e){e.modified.property.forEach((function(t){var i=t.viewModel,n=t.newPropertyName,r=t.newPropertyValue,a=t.prevPropertyValue;o.firePropertySetEvent(i,n,r,a,e.metadata)}))},_emitPropertiesSets:function(e){e.modified.properties.forEach((function(t){var i=t.viewModel,n=t.changedProperties;o.firePropertiesSetEvent(i,n.oldValues,n.newValues,e.metadata)}))},_emitDestroyeds:function(e){e.destroyed.forEach((function(t){var i=t.viewModel,n=t.parent;n?o.fireChildDestroyedEvent(n,i,t.index,e.metadata):(o.fireRootUnset(i,this._mf0ViewModelManager,e.metadata),this._rootSetFiredFlag=!1),o.fireDestroyedEvent(i,e.metadata),i._cleanup(),this._mf0ViewModelManager._unregisterViewModel(i)}),this)},_emitHierarchyChanges:function(e){e.modified.children.forEach((function(t){var i=t.viewModel,n=t.previousChildren;o.fireChildrenChanged(i,n,e.metadata)}))},_emitChildAttached:function(e){e.modified.childAttached.forEach((function(t){var i=t.child,n=t.index,r=t.parent;o.fireChildAttached(r,i,n,e.metadata)}))},_emitChildDetached:function(e){e.modified.childDetached.forEach((function(t){var i=t.child,n=t.index,r=t.previousParent;o.fireChildDetached(r,i,n,e.metadata)}))},_isViewModelBackingElementRoot:function(e){return!e.Parent},_makeViewModelParentConsistent:function(e,t,i){i._updateViewModelChildrenAfterRemove(e),e._setViewModelParent(t);var n=t._mf0Element.Children.find(e._mf0Element),o=t.getChildren().length,r=Math.min(n,o);t._updateViewModelChildrenAfterAdd(e,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2925),i(230),i(2928),i(883)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{constructor:function(){this._createMF0GenericObjectWithId=new Function("mf0Model","genericObjectId","return new "+o.MF0GenericObjectClassName+"(mf0Model, genericObjectId);")},createViewModel:function(e){e.mf0Element||(e.mf0Element=this._createBackingMF0Element(e));var t=this._wrapMF0Element(e);return e.propertyObject&&t._propertyGetSetStrategy.setProperties(e.propertyObject,{},!0),t._APIMap={},t._apiFactories.forEach((function(i){t._APIMap[i.getNameSpace()]=i.createAPI(t,e)})),t},_createBackingMF0Element:function(e){var t,i=e.mf0ViewModelManager,n=i._mf0Model;return i._beginTransaction(),(t=e.id?this._createMF0GenericObjectWithId(n,e.id):this._createMF0GenericObjectWithId(n)).Type=e.type,i._commitTransaction(),t},_wrapMF0Element:function(e){var i=e.mf0ViewModelManager,o=e.mf0Element,r=e.apiFactories,a=new n(o,i);return new t(i,this,o,a,r)}})}),e,t),e.exports=o},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(203),__webpack_require__(1758),__webpack_require__(2926),__webpack_require__(2927),__webpack_require__(883),__webpack_require__(776),__webpack_require__(704),__webpack_require__(705)],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(declare,AbstractViewModel,EventDispatchable,ViewModelListener,Constants,JSONConversionUtility,MetadataUtil,ViewModelEventsUtility){return declare([AbstractViewModel,EventDispatchable],{constructor:function(e,t,i,n,o){this._viewModelFactory=t,this._mf0Element=i,this._id=this._mf0Element.uuid,this._type=this._mf0Element.Type,this._propertyGetSetStrategy=n,this._apiFactories=o,this._parent=null,this._children=[],this._mf0Listener=new ViewModelListener(this),e._registerViewModel(this)},getParent:function(){return this._parent},getChildren:function(){return this._children},getRoot:function(){return this.getViewModelManager().getRoot()},getId:function(){return this._id},getType:function(){return this._type},getNumberOfChildren:function(){return this.getChildren().length},addChild:function(e,t,i,n,o){if((!Number.isInteger(i)||i>this._children.length)&&(i=this._children.length),i<0)throw new Error("ASSERTION FAILED: Index value should not be negative.");let r=this.getViewModelManager();r._beginTransaction();let a={mf0ViewModelManager:r,mf0Model:r._mf0Model,type:e,apiFactories:this._apiFactories,parent:this,propertyObject:t,metadata:n};o&&(a.id=o);let s=this._viewModelFactory.createViewModel(a);return s._setViewModelAndMF0Parent(this),this._updateViewModelAndMF0ChildrenAfterAdd(s,i),ViewModelEventsUtility.fireChildAddedEvent(this,s,i,MetadataUtil.getMetadata(n)),r._commitTransaction(n),s},addChildWithId:function(e,t,i,n,o){return this.addChild(t,i,n,o,e)},visit:function(e){e(this),this._children.forEach((function(t){t.visit(e)}))},visitBottomUp:function(e){this._children.map((function(e){return e})).forEach((function(t){t.visitBottomUp(e)})),e(this)},addPropertyChangeListener:function(e,t,i){let n=Constants.PropertyChangeListenerEventNamePrefix+e;return this.addEventListener(n,t,i)},hasProperty:function(e){if(!0!==this._destroyed)return this._propertyGetSetStrategy.hasProperty(e)},setProperties:function(e,t){this._destroyed||this._propertyGetSetStrategy.setProperties(e,t)},setProperty:function(e,t,i){this._destroyed||this._propertyGetSetStrategy.setProperty(e,t,i)},getProperties:function(){if(!0!==this._destroyed)return this._propertyGetSetStrategy.getProperties()},getProperty:function(e){if(!0!==this._destroyed)return this._propertyGetSetStrategy.getProperty(e)},hasParent:function(){return Boolean(this._parent)},hasChild:function(e){let t=e;return"string"!=typeof e&&(t=e.getId()),this._getChildIndexThroughId(t,this.getChildren())>-1},getChild:function(e){let t=e;return"string"==typeof e&&(t=this._getChildIndexThroughId(e,this.getChildren())),this._getChildThroughIndex(t,this.getChildren())},getChildIndex:function(e){return this._getChildIndexThroughViewModel(e,this.getChildren())},hasDescendant:function(e){return Boolean(this.getDescendant(e))},getDescendant:function(e){let t=this.getChildren();for(let i=0;i<t.length;i++){let n=t[i];if(n.getId()===e)return n;if(n.hasDescendant(e))return n.getDescendant(e)}return null},updateEntireCacheIfPresent:function(){this._destroyed||this._propertyGetSetStrategy.updateEntireCacheIfPresent()},updatePropertyCacheIfPresent:function(e){this._destroyed||this._propertyGetSetStrategy.updateCacheIfPresent(e)},destroy:function(e){if(!this._destroyed)if(e){this._destroyed="beingDestroyed";let e=this.getViewModelManager();e._beginTransaction(),this._mf0Element&&this._mf0Element.isValid&&this._mf0Element.destroy();let t=this.getParent(),i=-1;t?(i=t._getChildIndexThroughViewModel(this),t._updateViewModelAndMF0ChildrenAfterRemove(this),ViewModelEventsUtility.fireChildDestroyedEvent(t,this,i,MetadataUtil.getMetadata())):(ViewModelEventsUtility.fireRootUnset(this,e,MetadataUtil.getMetadata()),e._mf0ChangeReportListener._rootSetFiredFlag=!1,e._root=null),ViewModelEventsUtility.fireDestroyedEvent(this,MetadataUtil.getMetadata()),this._cleanup(),e._commitTransaction(),this.inherited(arguments)}else this.visitBottomUp((function(e){e.destroy(!0)}))},_getChildIndex:function(e){return this._getChildIndexThroughViewModel(e,this._children)},_getChildThroughIndex:function(e,t){t=t||this._children;let i=null;return e>-1&&e<t.length&&(i=t[e]),i},_getChildIndexThroughViewModel:function(e,t){return this._getChildIndexThroughId(e.getId(),t)},_setViewModelAndMF0Parent:function(e){this._setViewModelParent(e),this._setMF0Parent(e)},_setViewModelParent:function(e){this._parent=e},_setMF0Parent:function(e){let t=this.getViewModelManager();t._beginTransaction(),this._mf0Element.Parent=e._mf0Element,t._commitTransaction()},_updateViewModelAndMF0ParentAfterRemove:function(){let e=this.getViewModelManager();e._beginTransaction(),this._mf0Element.Parent=null,this._parent=null,e._commitTransaction()},_updateViewModelAndMF0ChildrenAfterAdd:function(e,t){this._updateViewModelChildrenAfterAdd(e,t),this._updateMF0ChildrenAfterAdd(e,t)},_updateViewModelChildrenAfterAdd:function(e,t){this._children.splice(t,0,e)},_updateMF0ChildrenAfterAdd:function(e,t){let i=this.getViewModelManager();i._beginTransaction();let n=this._mf0Element.Children,o=n.back(),r=[];for(;n.find(o)>=t;)r.unshift(o),n.pop(),o=n.back();n.push(e._mf0Element);for(let e=0;e<r.length;e++){let t=r[e];n.push(t)}i._commitTransaction()},_updateViewModelAndMF0ChildrenAfterRemove:function(e){this._updateViewModelChildrenAfterRemove(e),this._updateMF0ChildrenAfterRemove(e)},_updateViewModelChildrenAfterRemove:function(e){let t=e.getId(),i=this._getChildIndexThroughId(t);i>-1&&this._children.splice(i,1)},_updateMF0ChildrenAfterRemove:function(e){let t=this.getViewModelManager();t._beginTransaction();let i=e._mf0Element,n=this._mf0Element.Children,o=n.find(i);o>-1&&n.splice(o),t._commitTransaction()},_addChildThroughObject:function(e,t){let i={mf0ViewModelManager:this.getViewModelManager(),mf0Element:e,apiFactories:this._apiFactories,parent:this,metadata:t},n=this._viewModelFactory.createViewModel(i);n._setViewModelParent(this);let o=this._mf0Element.Children.find(e);return this._updateViewModelChildrenAfterAdd(n,o),n.updateEntireCacheIfPresent(),n},_cleanup:function(){this._viewModelFactory=null,this._mf0Listener=null,this._mf0Element=null,this._propertyGetSetStrategy=null,this._parent=null,this._destroyed=!0},_detachParent:function(){if(this.hasParent()){let e=this.getParent(),t=this.getViewModelManager();t._beginTransaction(),this._updateViewModelAndMF0ParentAfterRemove(),e._updateViewModelAndMF0ChildrenAfterRemove(this),t._commitTransaction()}},_getChildIndexThroughId:function(e,t){return(t=t||this._children).findIndex((function(t){return t.getId()===e}))},_createEventData:function(eventName,eventDataObject,metadata){void 0===metadata&&(metadata="");let customEventData=eval("new "+Constants.MF0EventDataObjectClassName+"();");return customEventData.EventName=eventName,customEventData.EventData=JSONConversionUtility.convertToJSON(eventDataObject),customEventData.Metadata=MetadataUtil.toJSON(metadata),customEventData},_fireEventAcrossTheWire:function(e,t){this._mf0Element.viewModelBackingEvent.emit(t)},_postDispatchEvent:function(e,t,i){ViewModelEventsUtility.fireDispatchEvent(this,e,t,MetadataUtil.getMetadata(i))}})}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(1759),i(1757),i(704)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n,o],{constructor:function(){},dispatchEvent:function(e,t,i,n){i||(i={}),this.getViewModelManager()._beginTransaction();var o=this._createEventData(e,i,n);this._fireEventAcrossTheWire(e,o),this.getViewModelManager()._commitTransaction(),this._postDispatchEvent(e,i,n)},_createEventData:function(e,t){throw new Error("Unimplemented API: _createEventData")},_fireEventAcrossTheWire:function(e,t){throw new Error("Unimplemented API: _fireEventAcrossTheWire")},_postDispatchEvent:function(e,t,i){},dispatchNoSyncEvent:function(e,t,i,n){var o=r.getMetadata(n);this.notifyEventListeners(e,this,i,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(776),i(705)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e){this._viewModel=e,this._addListeners()},_addListeners:function(){this._viewModel._mf0Element.viewModelBackingEvent.registerHandler(function(e,n){var o=t.convertFromJSON(n.Metadata);if("JS"!==o.origin){var r=n.EventName,a=t.convertFromJSON(n.EventData);i.fireDispatchEvent(this._viewModel,r,a,o)}}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2929),i(776),i(704),i(705)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(i,{constructor:function(e,t){this._mf0Element=e,this._mf0ViewModelManager=t,this._propertyCache={}},hasProperty:function(e){return this._mf0Element&&this._mf0Element.isValid?this._hasPropertyMF0BackingObject(e):this._propertyCache.hasOwnProperty(e)},setProperties:function(e,t,i){var a={},s={};for(var l in e)if(e.hasOwnProperty(l)){var c=this.getProperty(l),d=e[l];n.convertToJSON(c)!==n.convertToJSON(d)&&(a[l]=c,s[l]=d)}if(Object.keys(s).length>0){for(var l in this._mf0ViewModelManager._beginTransaction(),s)this.setProperty(l,s[l],t,i,!0);this._mf0ViewModelManager._commitTransaction(t),i||r.firePropertiesSetEvent(this._mf0ViewModelManager.getById(this._mf0Element.uuid),a,s,o.getMetadata(t))}},setProperty:function(e,t,i,a,s){if(this._mf0Element&&this._mf0Element.isValid)if(null!=t){var l=this.hasProperty(e),c=this.getProperty(e);this._propertyCache[e]=t;var d=n.convertToJSON(t);if(d!==n.convertToJSON(c)){if(this._mf0ViewModelManager._beginTransaction(),l)this._mf0Element.properties.erase(e);if(this._mf0Element.properties.insert([e,d]),!a&&(r.firePropertySetEvent(this._mf0ViewModelManager.getById(this._mf0Element.uuid),e,t,c,o.getMetadata(i)),!s)){var u={};u[e]=c;var h={};h[e]=t,r.firePropertiesSetEvent(this._mf0ViewModelManager.getById(this._mf0Element.uuid),u,h,o.getMetadata(i))}this._mf0ViewModelManager._commitTransaction(i)}}else console.warn("Property value cannot be null or undefined.");else console.warn("View Model has already been destroyed. Properties cannot be set on a destroyed view model")},getProperties:function(){return this._propertyCache},getProperty:function(e){return this._propertyCache[e]},updateEntireCacheIfPresent:function(){var e=this._mf0Element.properties,t=this;e.forEach((function(e,i){t.updateCacheIfPresent(i)}))},updateCacheIfPresent:function(e){this._propertyCache[e]=this._getPropertyFromMF0BackingObject(e)},_hasPropertyMF0BackingObject:function(e){return this._mf0Element.properties.has(e)},_getPropertiesFromMF0BackingObjects:function(){var e={},t=this._mf0Element.properties,i=this;return t.forEach((function(t){var n=t.Name;e[n]=i._getPropertyFromMF0BackingObject(n)})),e},_getPropertyFromMF0BackingObject:function(e){var t;if(this._hasPropertyMF0BackingObject(e)){var i=this._mf0Element.properties.at(e);t=n.convertFromJSON(i)}return t},_createNewProperty:function(e,t,i){this._mf0ViewModelManager._beginTransaction();var o=new viewmodel.internal.Property(this._mf0ViewModelManager._mf0Model);o.Name=e,o.Value=n.convertToJSON(t),this._mf0Element.properties.insert(o),this._mf0ViewModelManager._commitTransaction(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){},hasProperty:function(e){throw new Error("Unimplemented API: hasProperty")},setProperties:function(e,t){throw new Error("Unimplemented API: setProperties")},setProperty:function(e,t,i){throw new Error("Unimplemented API: setProperty")},getProperties:function(){throw new Error("Unimplemented API: getProperties")},getProperty:function(e){throw new Error("Unimplemented API: getProperty")},updateEntireCacheIfPresent:function(){throw new Error("Unimplemented API: updateEntireCacheIfPresent")},updateCacheIfPresent:function(e){throw new Error("Unimplemented API: updateCacheIfPresent")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2931),i(1760)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(){this._pluginMap={}},childAddedFired:function(e,t,i,n){for(var o in this._pluginMap){if(this._pluginMap.hasOwnProperty(o))this._pluginMap[o].childAddedFired(e,t,i,n)}},rootSetFired:function(e,t,i){for(var n in this._pluginMap){if(this._pluginMap.hasOwnProperty(n))this._pluginMap[n].rootSetFired(e,t,i)}},createPlugin:function(e){if(this._pluginMap[e])return!1;var n;switch(e){case i.MoveEvent:n=new t;default:new t}return this._pluginMap[e]=n,!0},installPlugin:function(e,t){this.createPlugin(e)&&this._pluginMap[e].installPlugin(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(705),i(704),i(2932)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(){},attachMovedListener:function(e){e.addEventListener("viewmodel_internal_event::movedEvent",(function(e){var n=e.data,o=e.target,r=o.getViewModelManager(),a=r.getById(n.oldParent),s=r.getById(n.newParent);t.fireChildMoved(r,o,s,n.newIndex,a,n.oldIndex,i.getMetadata())}))},rootSetFired:function(e,t,i){this.attachMovedListener(t)},childAddedFired:function(e,t,i,n){this.attachMovedListener(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},installPlugin:function(e){},rootSetFired:function(e,t,i){},childAddedFired:function(e,t,i,n){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(657),i(1301),i(2934),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s={};return s[t.TOOLSTRIP]=e.mixin({displayState:{type:"string",notInAction:!0,defaultValue:i.EXPANDED},displayMode:{type:"string",notInAction:!0,defaultValue:n.DEFAULT},QABId:{type:"string",notInAction:!0,defaultValue:""},selectedTab:{type:"String",notInAction:!0,defaultValue:""}},o,r,a),s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{hideRestoreDefaultsQABOption:new e({type:"boolean",notInAction:!0,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[t.QAB]=e.mixin({},i,n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[t.QA_GROUP]=e.mixin({},i,n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[t.TAB_GROUP]=e.mixin({selectedTab:{type:"string",notInAction:!0,defaultValue:""},QAGroupId:{type:"string",notInAction:!0,defaultValue:""}},i,n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(1302),i(303),i(886),i(1060)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l={};return l[t.TAB]=e.mixin({},i,n,o,r,a,s),l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(2940),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};return r[t.COLUMN]=e.mixin({collapsePriority:{type:"number",notInAction:!0,defaultValue:0},horizontalAlignment:{type:"string",notInAction:!0,defaultValue:i.LEFT},width:{type:"number",notInAction:!0,defaultValue:0},extraColumnGap:{type:"boolean",notInAction:!0,defaultValue:!1}},n,o),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LEFT:"left",RIGHT:"right",CENTER:"center"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(1302)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};return r[t.SECTION]=e.mixin({collapsePriority:{type:"number",notInAction:!0,defaultValue:0},icon:{type:"string",notInAction:!0,defaultValue:"section_24",required:!1}},i,n,o),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[t.PANEL]=e.mixin({},i,n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[t.FOOTER]=e.mixin({},i,n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[t.FOOTER_CELL]=e.mixin({},i,n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(465),i(423),i(543),i(338),i(448),i(310),i(321),i(346),i(303),i(322),i(311),i(397),i(707),i(708),i(658),i(489),i(490),i(491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){var T={};return T[t.DROP_DOWN_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C),T}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(465),i(423),i(543),i(338),i(448),i(310),i(1766),i(321),i(346),i(303),i(322),i(311),i(397),i(707),i(708),i(658),i(489),i(490),i(491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){var E={};return E[t.SPLIT_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T),E}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(465),i(423),i(543),i(338),i(448),i(310),i(1766),i(613),i(321),i(346),i(303),i(322),i(311),i(397),i(707),i(708),i(658),i(489),i(490),i(491),i(706),i(1303)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w){var I={};return I[t.TOGGLE_SPLIT_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w),I}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(544),i(226),i(264),i(265),i(465),i(423),i(543),i(338),i(448),i(310),i(321),i(346),i(303),i(322),i(311),i(397),i(1767),i(1768)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b={};return b[i.COLOR_PICKER_BUTTON]=e.mixin({},{selectedColor:{type:"string",defaultValue:"#ff0000",notInAction:!0,required:!1},recentlyUsedColors:{type:"Array",defaultValue:["#ff0000","#ff00ff","#ffff00","#00ff00","#ffffff","#00ffff","#0000ff"],notInAction:!0,required:!1},recentColorsTitle:{type:"string",defaultValue:t.colorPickerRecentColorsTitle,notInAction:!0,required:!1},recentColorsMode:{type:"string",defaultValue:_.DEFAULT,notInAction:!0,required:!1},closeOnColorSelection:{type:"boolean",defaultValue:!0,notInAction:!0,required:!1},autoColor:{type:"string",defaultValue:"#000000",notInAction:!0,required:!1},displayView:{type:"string",defaultValue:"standard",notInAction:!0,required:!1},showAuto:{type:"boolean",defaultValue:!1,notInAction:!0,required:!1},showNone:{type:"boolean",defaultValue:!1,notInAction:!0,required:!1},showFlat:{type:"boolean",defaultValue:!1,notInAction:!0,required:!1},showInterp:{type:"boolean",defaultValue:!1,notInAction:!0,required:!1},showTexturemap:{type:"boolean",defaultValue:!1,notInAction:!0,required:!1},swatchColor:{type:"string",defaultValue:"#000000",notInAction:!0,required:!1},swatchColorMode:{type:"string",defaultValue:v.AUTO,notInAction:!0,required:!1}},n,o,r,a,s,l,c,d,u,h,p,f,g,m),b}),e,t),e.exports=o},function(e,t,i){e.exports={toolstripLabel:"ツールストリップ",showLabel:"ラベルの表示",hideLabel:"ラベルの非表示",QAB:"クイック アクセス ツール バー",removeFromQAB:"クイック アクセス ツール バーから削除",addToQAB:"クイック アクセス ツール バーに追加",qabDefaultDropdownLabel:"共通のコントロール",qabOverflowDropdownLabel:"その他のコントロール",restoreFactoryControls:"既定の設定に戻す",restoreFactoryControlsDialogTitle:"復元の確認",restoreFactoryControlsDialogMessage:"すべてのカスタマイズが削除され、クイック アクセス ツール バーが既定の設定に戻されます。​",minimizeToolstrip:"ツールストリップの最小化",restoreToolstrip:"ツールストリップの復元",closeWidget:'"${0}" タブを閉じる',removeWidget:'"${0}" をギャラリーから削除',homeButtonLabel:"MATLAB ホーム",gallerySearch:"検索",showMore:"さらに表示",noSearchMatchNode:"検索に一致する項目はありません。",emptyCategoryPlaceholder:"このカテゴリは空です",listView:"リスト表示",iconView:"アイコン表示",navTop:"カテゴリを一番上に移動",navBottom:"カテゴリを一番下に移動",favStarAdd:"お気に入りに追加",favStarRemove:"お気に入りから削除",editWidget:'"${0}" の編集',favoritesCategoryTitle:"お気に入り",colorPickerRecentColorsTitle:"最近使用した色"}},function(e,t,i){e.exports={toolstripLabel:"툴스트립",showLabel:"레이블 표시",hideLabel:"레이블 숨기기",QAB:"빠른 액세스 도구 모음",removeFromQAB:"빠른 액세스 도구 모음에서 제거",addToQAB:"빠른 액세스 도구 모음에 추가",qabDefaultDropdownLabel:"일반 컨트롤",qabOverflowDropdownLabel:"추가 컨트롤",restoreFactoryControls:"디폴트 값 복원",restoreFactoryControlsDialogTitle:"복원 확인",restoreFactoryControlsDialogMessage:"모든 사용자 지정이 삭제되고 빠른 액세스 도구 모음이 디폴트 설정으로 복원됩니다.​",minimizeToolstrip:"툴스트립 최소화",restoreToolstrip:"툴스트립 복원",closeWidget:'"${0}" 탭 닫기',removeWidget:'갤러리에서 "${0}" 제거',homeButtonLabel:"MATLAB 홈",gallerySearch:"검색",showMore:"더 보기",noSearchMatchNode:"검색어와 일치하는 항목이 없습니다.",emptyCategoryPlaceholder:"이 범주는 비어 있음",listView:"세부 정보 보기",iconView:"아이콘 보기",navTop:"범주를 맨 위로 이동합니다.",navBottom:"범주를 맨 아래로 이동합니다.",favStarAdd:"즐겨찾기에 추가",favStarRemove:"즐겨찾기에서 제거",editWidget:'"${0}" 편집',favoritesCategoryTitle:"즐겨찾기",colorPickerRecentColorsTitle:"최근에 사용한 색"}},function(e,t,i){e.exports={toolstripLabel:"工具条",showLabel:"显示标签",hideLabel:"隐藏标签",QAB:"快速访问工具栏",removeFromQAB:"从快速访问工具栏中删除",addToQAB:"添加到快速访问工具栏",qabDefaultDropdownLabel:"常见控件",qabOverflowDropdownLabel:"更多控件",restoreFactoryControls:"还原默认值",restoreFactoryControlsDialogTitle:"确认还原",restoreFactoryControlsDialogMessage:"所有自定义项都将被删除,快速访问工具栏也会还原为默认设置。​",minimizeToolstrip:"最小化工具条",restoreToolstrip:"还原工具条",closeWidget:'关闭 "${0}" 选项卡',removeWidget:'从库中删除 "${0}"',homeButtonLabel:"MATLAB 主页",gallerySearch:"搜索",showMore:"显示更多",noSearchMatchNode:"没有任何项目与您的搜索匹配。",emptyCategoryPlaceholder:"此类别为空",listView:"详细信息视图",iconView:"图标视图",navTop:"将类别移到顶部",navBottom:"将类别移到底部",favStarAdd:"添加到收藏夹",favStarRemove:"从收藏夹中删除",editWidget:'编辑 "${0}"',favoritesCategoryTitle:"收藏夹",colorPickerRecentColorsTitle:"最近使用的颜色"}},function(e,t,i){e.exports={root:{toolstripLabel:"Toolstrip",showLabel:"Show Label",hideLabel:"Hide Label",QAB:"Quick Access Toolbar",removeFromQAB:"Remove from Quick Access Toolbar",addToQAB:"Add to Quick Access Toolbar",qabDefaultDropdownLabel:"Common Controls",qabOverflowDropdownLabel:"More Controls",restoreFactoryControls:"Restore Defaults",restoreFactoryControlsDialogTitle:"Confirm Restore",restoreFactoryControlsDialogMessage:"All customizations will be deleted and the Quick Access Toolbar will be restored to the default settings.​",minimizeToolstrip:"Minimize Toolstrip",restoreToolstrip:"Restore Toolstrip",closeWidget:'Close "${0}" Tab',removeWidget:'Remove "${0}" from Gallery',homeButtonLabel:"MATLAB Home",gallerySearch:"Search",showMore:"Show more",noSearchMatchNode:"No items match your search.",emptyCategoryPlaceholder:"This category is empty",listView:"Details view",iconView:"Icon view",navTop:"Move category to top",navBottom:"Move category to bottom",favStarAdd:"Add to favorites",favStarRemove:"Remove from favorites",editWidget:'Edit "${0}"',favoritesCategoryTitle:"FAVORITES",colorPickerRecentColorsTitle:"Recent Colors"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(465),i(543),i(423),i(338),i(448),i(310),i(321),i(346),i(303),i(311),i(397)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){var g={};return g[t.GRID_PICKER_BUTTON]=e.mixin({},{maxRows:{type:"number",defaultValue:5,notInAction:!0,required:!1},maxColumns:{type:"number",defaultValue:5,notInAction:!0,required:!1},occupancy:{type:"number",defaultValue:0,notInAction:!0,required:!1},fillOrder:{type:"string",defaultValue:"rowMajor",notInAction:!0,required:!1},selection:{type:"Object",defaultValue:{},notInAction:!0,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f),g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(423),i(338),i(310),i(321),i(303),i(322),i(311),i(397),i(709)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p={};return p[t.QAB_PUSH_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h),p}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(423),i(338),i(310),i(321),i(303),i(322),i(311),i(397),i(707),i(708),i(658),i(709)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m={};return m[t.QAB_DROP_DOWN_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f,g),m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(423),i(338),i(448),i(310),i(321),i(346),i(303),i(322),i(311),i(397),i(707),i(658),i(709)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){var _={};return _[t.QAB_FLOATING_PANE_DOCK]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m),_}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(423),i(338),i(310),i(321),i(303),i(322),i(311),i(397),i(707),i(708),i(658),i(709)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m={};return m[t.QAB_SPLIT_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f,g),m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(423),i(338),i(310),i(321),i(303),i(322),i(311),i(397),i(613),i(706),i(709)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){var g={};return g[t.QAB_TOGGLE_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f),g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(423),i(338),i(310),i(613),i(321),i(303),i(322),i(311),i(397),i(707),i(708),i(658),i(489),i(490),i(491),i(706),i(709)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){var C={};return C[t.QAB_TOGGLE_SPLIT_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y),C}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(465),i(311),i(397),i(2961),i(708),i(709),i(310),i(321),i(303),i(322)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f={};return f[t.QAB_GALLERY_CATEGORY_BUTTON]=e.mixin({galleryPopupId:{type:"string",notInAction:!1,defaultValue:"",required:!1},title:{type:"string",notInAction:!1,defaultValue:"",required:!1}},i,n,o,r,a,s,l,c,d,u,h,p),f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{categoryId:new e({type:"string",notInAction:!0,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(310),i(321),i(346),i(303),i(322),i(311),i(338),i(1769),i(1304),i(489),i(490),i(491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m={};return m[t.COMBO_BOX]=e.mixin({},{selectedItem:{type:"string",defaultValue:"",notInAction:!1,required:!1},editable:{type:"boolean",notInAction:!1,defaultValue:!1,required:!1},footerId:{type:"string",notInAction:!0,required:!1,defaultValue:""}},i,n,o,r,a,s,l,c,d,u,h,p,f,g),m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(310),i(321),i(346),i(1770),i(303),i(322),i(311),i(1769),i(489),i(490),i(491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){var g={};return g[t.LIST]=e.mixin({},{selectedItems:{type:"Array",defaultValue:[],notInAction:!1,required:!1},selectionMode:{type:"string",defaultValue:"single",notInAction:!1,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f),g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[t.POPUP_LIST]=e.mixin({},{maxHeight:{type:"number",defaultValue:600,notInAction:!0,required:!1}},i,n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[t.POPUP_LIST_PANEL]=e.mixin({},{maxHeight:{type:"number",defaultValue:100,notInAction:!0,required:!1}},i,n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(1302)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};return r[t.POPUP_LIST_HEADER]=e.mixin({},i,n,o),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[t.POPUP_LIST_SEPARATOR]=e.mixin({},i,n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(338),i(1305),i(310),i(321),i(346),i(1770),i(303),i(322),i(311),i(489),i(490),i(491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m={};return m[t.TEXT_AREA]=e.mixin({},{},i,n,o,r,a,s,l,c,d,u,h,p,f,g),m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(310),i(321),i(346),i(303),i(322),i(311),i(1772),i(1773),i(1774),i(489),i(490),i(491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m={};return m[t.HORIZONTAL_SLIDER]=e.mixin({},{value:{type:"number",defaultValue:5,notInAction:!1,required:!1},minimum:{type:"number",defaultValue:-10,notInAction:!1,required:!1},maximum:{type:"number",defaultValue:10,notInAction:!1,required:!1},steps:{type:"number",defaultValue:10,notInAction:!1,required:!1},numberOfTicks:{type:"number",defaultValue:10,notInAction:!1,required:!1},labels:{type:"Array",notInAction:!1,required:!1,defaultValue:[]},compact:{type:"boolean",defaultValue:!1,notInAction:!0,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f,g),m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(310),i(321),i(346),i(303),i(322),i(311),i(1772),i(1773),i(1774),i(489),i(490),i(491),i(781)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){var _={};return _[t.SPINNER]=e.mixin({},{editable:{type:"boolean",defaultValue:!1,notInAction:!1,required:!1},minorStepSize:{type:"number",defaultValue:5,notInAction:!1,required:!1},majorStepSize:{type:"number",defaultValue:10,notInAction:!1,required:!1},errorText:{type:"string",notInAction:!1,defaultValue:"The value entered is not in range",required:!1}},-1===m.indexOf(t.SPINNER)?{}:{format:{type:"string",defaultValue:"",notInAction:!0,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f,g),_}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(338),i(310),i(321),i(346),i(303),i(322),i(311),i(613),i(706),i(489),i(490),i(491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m={};return m[t.RADIO_BUTTON]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f,g),m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(338),i(310),i(321),i(346),i(303),i(322),i(311),i(613),i(489),i(490),i(491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){var g={};return g[t.CHECK_BOX]=e.mixin({},i,n,o,r,a,s,l,c,d,u,h,p,f),g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[t.EMPTY_CONTROL]=e.mixin({},i,n),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(310),i(321),i(346),i(303),i(322),i(311)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d={};return d[t.MENUBAR_WRAPPER]=e.mixin({},{},i,n,o,r,a,s,l,c),d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(310),i(321),i(346),i(303),i(322),i(311)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d={};return d[t.TOOLBAR_WRAPPER]=e.mixin({},i,n,o,r,a,s,l,c),d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(310),i(1306),i(1307),i(1308),i(1309),i(2977),i(303),i(2978),i(1776),i(2979)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f={};return f[t.GALLERY]=e.mixin({},{galleryPopupId:{type:"string",notInAction:!0,required:!0},minColumnCount:{type:"number",notInAction:!0,required:!1,defaultValue:3},maxColumnCount:{type:"number",notInAction:!0,defaultValue:7},currentColumnCount:{type:"number",notInAction:!0,required:!1,defaultValue:7},textOverlay:{type:"string",notInAction:!0,required:!1,defaultValue:""},displayState:{type:"string",notInAction:!0,required:!1,defaultValue:"normal"},shouldRefresh:{type:"boolean",notInAction:!0,defaultValue:!0,required:!1}},o,i,n,r,a,s,l,c,d,u,h,p),f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{hideDisabledItems:new e({type:"boolean",notInAction:!0,defaultValue:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{openIfEmpty:new e({type:"boolean",defaultValue:!0,notInAction:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{ownsPopup:new e({type:"boolean",notInAction:!0,defaultValue:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(1306),i(1307),i(1308),i(782),i(1309),i(1061),i(1776),i(1777),i(2981),i(1778),i(1779),i(544)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m={};return m[t.GALLERY_POPUP]=e.mixin({},{columnCount:{type:"number",notInAction:!0,required:!1,defaultValue:0},favCategoryId:{type:"string",notInAction:!0,required:!1,defaultValue:""},footerId:{type:"string",notInAction:!0,required:!1,defaultValue:""},hideDisabledItems:{type:"boolean",notInAction:!0,required:!1,defaultValue:!1},placeholderText:{type:"string",notInAction:!0,required:!1,defaultValue:g.gallerySearch},showHeader:{type:"boolean",notInAction:!0,required:!1,defaultValue:!0},favoritesEnabled:{type:"boolean",notInAction:!0,required:!1,defaultValue:!0},reorderCategory:{type:"boolean",notInAction:!0,required:!1,defaultValue:!0}},i,n,o,r,a,s,l,c,d,u,h,p,f),m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{columnMajorLayout:new e({type:"boolean",notInAction:!0,defaultValue:!1,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(1306),i(1307),i(1308),i(782),i(1309),i(1061),i(1777),i(1778),i(1779),i(544)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f={};return f[t.GALLERY_PANEL]=e.mixin({},{favCategoryId:{type:"string",notInAction:!0,required:!1,defaultValue:""},footerId:{type:"string",notInAction:!0,required:!1,defaultValue:""},placeholderText:{type:"string",notInAction:!0,required:!1,defaultValue:p.gallerySearch},hideDisabledItems:{type:"boolean",notInAction:!0,required:!1,defaultValue:!1},showHeader:{type:"boolean",notInAction:!0,required:!1,defaultValue:!0},favoritesEnabled:{type:"boolean",notInAction:!0,required:!1,defaultValue:!0},reorderCategory:{type:"boolean",notInAction:!0,required:!1,defaultValue:!0},width:{type:"string",notInAction:!0,required:!1,defaultValue:"auto"},height:{type:"string",notInAction:!0,required:!1,defaultValue:"auto"}},i,n,o,r,a,s,l,c,d,u,h),f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(782),i(1311),i(2984),i(1061),i(465),i(397),i(311)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){var u={};return u[t.GALLERY_CATEGORY]=e.mixin({alphabetize:{type:"boolean",notInAction:!0,defaultValue:!1,required:!1},galleryPopupId:{type:"string",notInAction:!1,defaultValue:"",required:!1},title:{type:"string",notInAction:!1,defaultValue:"",required:!1}},i,n,o,r,a,s,l,c,d),u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{hideWhenEmpty:new e({type:"boolean",notInAction:!0,defaultValue:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(544),i(226),i(264),i(265),i(782),i(1061)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s={};return s[i.GALLERY_FAVORITE_CATEGORY]=e.mixin({},{title:{type:"string",notInAction:!0,required:!1,defaultValue:t.favoritesCategoryTitle}},n,o,r,a),s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(782),i(465),i(543),i(338),i(448),i(310),i(321),i(346),i(303),i(322),i(311),i(1311),i(783),i(886),i(1060),i(397),i(423)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){var C={};return C[t.GALLERY_ITEM]=e.clone(e.mixin({},{isFavorite:{type:"boolean",defaultValue:!1,notInAction:!0,required:!1},favoritesPriority:{type:"number",defaultValue:0,notInAction:!0,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y)),C[t.GALLERY_ITEM]=JSON.parse(JSON.stringify(C[t.GALLERY_ITEM])),C[t.GALLERY_ITEM].closePopupOnClick.defaultValue=!0,C}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(782),i(613),i(465),i(543),i(338),i(448),i(310),i(321),i(346),i(303),i(322),i(311),i(1311),i(706),i(783),i(886),i(1060),i(1303),i(397),i(423)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){var S={};return S[t.TOGGLE_GALLERY_ITEM]=e.clone(e.mixin({},{isFavorite:{type:"boolean",defaultValue:!1,notInAction:!0,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E)),S[t.TOGGLE_GALLERY_ITEM]=JSON.parse(JSON.stringify(S[t.TOGGLE_GALLERY_ITEM])),S[t.TOGGLE_GALLERY_ITEM].closePopupOnClick.defaultValue=!0,S}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(465),i(543),i(338),i(448),i(310),i(321),i(346),i(303),i(322),i(311),i(1062),i(423),i(1780),i(886),i(783),i(397)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){var y={};return y[t.LIST_ITEM]=e.mixin({},{showIcon:{type:"boolean",defaultValue:!0,notInAction:!0,required:!1},showText:{type:"boolean",defaultValue:!0,notInAction:!0,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b),y[t.LIST_ITEM]=JSON.parse(JSON.stringify(y[t.LIST_ITEM])),y[t.LIST_ITEM].closePopupOnClick.defaultValue=!0,y}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(338),i(448),i(310),i(321),i(346),i(303),i(322),i(311),i(1062),i(613),i(783)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){var g={};return g[t.LIST_ITEM_WITH_CHECKBOX]=e.mixin({},{showText:{type:"boolean",defaultValue:!0,notInAction:!0,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f),g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(338),i(448),i(310),i(321),i(346),i(303),i(322),i(311),i(1062),i(613),i(783),i(706)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m={};return m[t.LIST_ITEM_WITH_RADIO_BUTTON]=e.mixin({},{showText:{type:"boolean",defaultValue:!0,notInAction:!0,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f,g),m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(338),i(448),i(783),i(310),i(1305),i(2992),i(2993),i(2994),i(303),i(322),i(311),i(1304),i(886),i(1060),i(489),i(490),i(491)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){var C={};return C[t.LIST_ITEM_WITH_TEXTFIELD]=e.mixin({},{label:{type:"string",defaultValue:"",notInAction:!1,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y),C}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{editOption:new e({type:"boolean",defaultValue:!1,notInAction:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{editOptionMessage:new e({type:"string",defaultValue:"",notInAction:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{hasDynamicEdit:new e({type:"boolean",defaultValue:!1,notInAction:!0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(264),i(265),i(338),i(448),i(465),i(543),i(310),i(321),i(346),i(303),i(322),i(311),i(1062),i(658),i(423),i(1780),i(397)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b={};return b[t.LIST_ITEM_WITH_POPUP]=e.mixin({},{popupId:{type:"string",defaultValue:"",notInAction:!1,required:!1},showIcon:{type:"boolean",defaultValue:!0,notInAction:!0,required:!1,description:"Using this you can toggle the visibility of the icon on the list item."},showText:{type:"boolean",defaultValue:!0,notInAction:!0,required:!1}},i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v),b}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(265),i(264),i(388)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[n.STATUS_BAR]=e.mixin({},t,i),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(265),i(264),i(784),i(388)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};return r[o.STATUS_GROUP]=e.mixin({},t,i,n),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(1775),i(784),i(1312),i(388)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a={};return a[r.STATUS_LABEL]=e.mixin({},i[t.LABEL],n,o),a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(265),i(264),i(254),i(3e3),i(784),i(1312),i(388)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l={};return l[s.STATUS_PROGRESS_BAR]=e.mixin({},t,i,o,r,a,{indeterminate:new n({type:"boolean",defaultValue:!1,notInAction:!0,required:!1}),colorStyle:new n({type:"string",notInAction:!0,defaultValue:"Info",required:!1}),showPercentage:new n({type:"boolean",defaultValue:!1,notInAction:!0,required:!1})}),l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{value:new e({type:"number",notInAction:!0,defaultValue:0,required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(1764),i(784),i(388)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};return r[o.STATUS_PUSH_BUTTON]=e.mixin({},i[t.PUSH_BUTTON],n),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(1771),i(784),i(3003),i(1312),i(388)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s={};return s[a.STATUS_TEXT_FIELD]=e.mixin({},i[t.TEXT_FIELD],o,n,r),s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(254)],o=i.dj.d(n,(function(e){return{value:new e({type:"string",notInAction:!0,defaultValue:"",required:!1})}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(226),i(1765),i(784),i(388)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};return r[o.STATUS_TOGGLE_BUTTON]=e.mixin({},i[t.TOGGLE_BUTTON],n),r}),e,t),e.exports=o},function(e,t,i){e.exports={icon:!0,iconClass:!0,quickAccessIcon:!0}},function(e,t,i){var n,o;n=[i(434)],o=i.dj.d(n,(function(e){return[e.TOOLSTRIP,e.POPUP_LIST,e.GALLERY_POPUP,e.GALLERY_FAVORITE_CATEGORY]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(388)],o=i.dj.d(n,(function(e){return[e.STATUS_PUSH_BUTTON,e.STATUS_TOGGLE_BUTTON]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226)],o=i.dj.d(n,(function(e){return[e.PUSH_BUTTON,e.TOGGLE_BUTTON,e.RADIO_BUTTON,e.TEXT_FIELD,e.LABEL,e.CHECK_BOX]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226)],o=i.dj.d(n,(function(e){return[e.TOOLSTRIP,e.QAB,e.QA_GROUP,e.TAB_GROUP,e.TAB,e.SECTION,e.COLUMN,e.PANEL,e.EMPTY_CONTROL,e.POPUP_LIST,e.POPUP_LIST_PANEL,e.POPUP_LIST_HEADER,e.POPUP_LIST_SEPARATOR,e.FOOTER,e.FOOTER_CELL,e.GALLERY_POPUP,e.GALLERY_FAVORITE_CATEGORY]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(434)],o=i.dj.d(n,(function(e){return[e.ROOT,e.ORPHAN_ROOT,e.TOOLSTRIP_ROOT,e.POPUP_ROOT,e.QAB_ROOT,"QAGroupRoot",e.GALLERY_ROOT,e.GALLERY_POPUP_ROOT,e.GALLERY_PANEL_ROOT,e.GALLERY_FAVORITE_CATEGORY_ROOT]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{1:{0:68,1:68,2:68},2:{0:52,1:102},3:{0:52,1:98}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(410),i(204),i(203),i(231),i(277),i(434),i(3013),i(3238),i(1763),i(3241),i(3244),i(3246),i(3248),i(657),i(785),i(209),i(229),i(3249)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return n(null,{constructor:function(e){var t=this;this._aspectMap={},this._widgetsWithActionIdMap=new Map,e=e||{},m.assert(e.modelManager,"Model Manager needs to be passed in!"),this._modelManager=e.modelManager,this._openPopups=[],this._addAspect(this._modelManager,"onChildAdd",(function(e){t.childAddedObserver(e)}),"after"),this._addAspect(this._modelManager,"onChildDestroy",(function(e){t.childDestroyedObserver(e)}),"after"),this._addAspect(this._modelManager,"onPropertySet",(function(e){t.propertySetObserver(e)}),"after"),this._addAspect(this._modelManager,"onChildMove",(function(e){t.childMovedObserver(e)}),"after"),this._addAspect(this._modelManager,"onPeerEvent",(function(e){t.peerEventObserver(e)}),"after"),this._addAspect(this._modelManager.actionService,"onActionChange",i.hitch(this,this._onActionChange),"after"),this._addAspect(this._modelManager.actionService,"onActionAdd",i.hitch(this,this._onActionAdd),"after")},_getAspectId:function(e){if(e instanceof Object)return e.aspectId||(e.id?e.aspectId=e.id:e.aspectId=_.generateUuid()),e.aspectId;throw new Error("WidgetManager only supports widgets.")},_getAspectKey:function(e,t,i){var n=this._getAspectId(e);if(n&&t&&"function"==typeof i)return n+"_"+t+"_"+i.toString();throw new Error("Invalid input.")},_getAssociatedAspects:function(e){var t=this._getAspectId(e),i=[];return Object.keys(this._aspectMap).forEach((function(e){0===e.indexOf(t+"_")&&i.push(e)})),i},_addAspect:function(t,i,n,o){var r=this._getAspectKey(t,i,n);return r&&!this._aspectMap.hasOwnProperty(r)&&("after"===o?this._aspectMap[r]=e.after(t,i,n,!0):"before"===o&&(this._aspectMap[r]=e.before(t,i,n))),r},_removeAspect:function(e){this._aspectMap.hasOwnProperty(e)&&(this._aspectMap[e].remove(),delete this._aspectMap[e])},childAddedObserver:function(e){var t,n,r,s,l,c,d,u,h;t=e.data.child,g.hasNoCorrespondingWidget(t.getType())||t.getType()===a.STATUS_BAR_ROOT||(r=this._getWidgetProperties(t),s=t.getId(),r.id=s.toString(),o.byId(r.id)||((""===r.tag||!e.originator||(!e.originator.source||e.originator.source.indexOf("addGalleryItemToFavorites")<0))&&(this._modelManager.tagToPeerNodeIdMap[r.tag]=s),this._modelManager.lazyLoading?v.indexOf(r.type)>-1?(n=this._buildWidget(r,t),this._addChild(n,t),this._buildAndAddDescendants(n,r),r.type===a.TOOLSTRIP&&n.tabContainer.watch("selectedChildWidget",i.hitch(this,this._selectedTabChangedCallback))):(l=this._modelManager._toolstrip.id,(d=this._modelManager.get(l,"selectedTab"))&&(u=this._modelManager._findAncestorId(a.TAB,r.id),h=!!(c=this._modelManager.getParentId(r.id))&&this._modelManager.get(c,"type")===a.GALLERY_FAVORITE_CATEGORY,(d===u||h)&&this._buildWidgetAndAddChildren(t))):(n=this._buildWidget(r,t),this._addChild(n,t,e.originator))))},_addChild:function(e,i,n){var r=i.getParent(),s=r.getChildIndex(i),l=this._getWidgetForPeerNode(r);if(e.get("type")===a.GALLERY)this.refreshGallery(i.getId()),this._modelManager.addEventCallback(i.getId(),t(function(e){"refresh"===e.eventType&&this.refreshGallery(i.getId())}.bind(this),100));else if(e.get("type")===a.GALLERY_POPUP){this._modelManager.manager.getByProperty("galleryPopupId",e.id).forEach((function(t){const i=o.byId(t.getId());i&&i.setupGalleryPopupListener(e)}))}l&&l.addChild(e,s,n)},_selectedTabChangedCallback:function(e,t,i){var n;n=this._modelManager.manager.getById(i.id),this._checkAndUpdateTab(n)&&o.byId(this._modelManager._toolstrip.id).resize()},_checkAndUpdateTab:function(e){var t,n=!1;return(t=e.getChildren())&&0!==t.length&&t.forEach(i.hitch(this,(function(e){o.byId(e.getId())?this._checkAndUpdateTab(e):(this._buildWidgetAndAddChildren(e),n=!0)}))),n},_buildWidgetAndAddChildren:function(e){var t=this._getWidgetProperties(e),n=e.getId(),r=e.getChildren();t.id=n.toString();var a=o.byId(t.id)||this._buildWidget(t,e);this._addChild(a,e),r&&r.forEach(i.hitch(this,(function(e){this._buildWidgetAndAddChildren(e)}))),this._buildAndAddDescendants(a,t)},_buildAndAddDescendants:function(e,t){var i,n,r,a;if(t.footerId){if(i=t.footerId,o.byId(i))return;n=this._modelManager.manager.getById(i),this._buildWidgetAndAddChildren(n),o.byId(t.id).set("footerId",t.footerId)}if(t.favCategoryId){if(r=t.favCategoryId,o.byId(r))return;a=this._modelManager.manager.getById(r),this._buildWidgetAndAddChildren(a),o.byId(t.id).set("favCategoryId",t.favCategoryId)}this._buildAndAddPopups(e,t)},_buildAndAddPopups:function(e,t){var n,r,s=[a.QAB_TOGGLE_SPLIT_BUTTON,a.QAB_DROP_DOWN_BUTTON,a.QAB_SPLIT_BUTTON,a.QAB_GALLERY_CATEGORY_BUTTON,a.LIST_ITEM_WITH_POPUP,a.TOGGLE_SPLIT_BUTTON,a.DROP_DOWN_BUTTON,a.SPLIT_BUTTON,a.GALLERY],l=this;s.indexOf(t.type)>-1&&(this._addAspect(e,"_showMenu",(function(){if(this.menuId){if(n=this.menuId,o.byId(n)&&!e.get("hasDynamicMenu"))return;r=l._modelManager.manager.getById(n),l._buildWidgetAndAddChildren(r)}}),"before"),this._addAspect(e,"openDropDown",(function(){if(this.galleryPopupId){if(n=this.galleryPopupId,o.byId(n))return;r=l._modelManager.manager.getById(n),l._buildWidgetAndAddChildren(r)}}),"before"),e.on("dropdownclick",(function(){var e;e=o.byNode(this),n=e.menuId,r=l._modelManager.manager.getById(n),r.getChildren().forEach(i.hitch(l,(function(e){o.byId(e.getId())&&e.getType()!==a.POPUP_LIST_PANEL||this._buildWidgetAndAddChildren(e)})))})))},addOutsidePeerModel:function(e,t){var i=this._modelManager.manager.getById(e),n=this._modelManager.manager.getById(t),r=this._getWidgetProperties(i);r.id=i.getId().toString();var a=o.byId(r.id)||this._buildWidget(r,i),s=this._getWidgetForPeerNode(n);s&&s.addChild(a)},removeOutsidePeerModel:function(e){var t=this._modelManager.manager.getById(e),i=this._getWidgetForPeerNode(t);this._getAssociatedAspects(i).forEach(function(e){this._removeAspect(e)}.bind(this));var n=i.getParent();n&&n.removeChild(i)},_buildWidget:function(e,t){e.type===a.QA_GROUP||e.type===a.QAB?e.enableQABCustomization=this._modelManager.enableQABCustomization:e.type===a.TOOLSTRIP&&(e.enableQABCustomization=this._modelManager.enableQABCustomization,e.qabAuthoringMode=this._modelManager._qabAuthoringMode);var i=s.create(e),n=this;return this._addWatchToWidgetProperties(i,t),this._attachPopupMonitor(i),this._hookupEvents(i,t),this._listenForToolstripCollapseTrigger(i),i.actionId&&this._addToWidgetsWithActionIdMap(i.actionId,i),this._addAspect(i,"removeChild",(function(e){n._resetStateRecursive(e)})),i},_listenForToolstripCollapseTrigger:function(t){var i=this,n=p[t.get("type")];n&&(n.events.forEach((function(n){h.indexOf(t.type)>-1?t.on(d[t.type][n],(function(){i._collapseParents(t)})):t.own(e.after(t,n,(function(){i._collapseParents(t)})))})),t.watch((function(e){if(n.properties.indexOf(e)>-1){var o=t._treatAsUserEvent;o&&"UI"===o.source&&i._collapseParents(t)}})))},_collapseParents:function(e){this._collapseParentSection(e),this._collapseParentToolstrip(e),this._collapseParentQABOverflowPopup(e)},_collapseParentSection:function(e){var t=g.findParentSection(e);t&&t.closePopup()},_collapseParentToolstrip:function(e){var t=g.findParentToolstrip(e);t&&t.get("displayState")===f.EXPANDED_ON_TOP&&"FooterCell"!==e.getParent().type&&t.set("displayState",f.COLLAPSED)},_collapseParentQABOverflowPopup:function(e){var t=document.querySelector('[data-tag="qabOverflowPopup"]');if(t&&t.contains(e.domNode)){var i=document.querySelector('[data-tag="qabOverflowButton"]');if(i){var n=o.getEnclosingWidget(i);n&&n.closeMenu&&n.closeMenu()}}},_attachPopupMonitor:function(e){var t,i=this;switch(e.get("type")){case a.POPUP_LIST:t=e;break;case a.COMBO_BOX:t=e.dropDown;break;case a.GALLERY_POPUP:t=e;break;case a.SECTION:t=e.getPopup()}t&&(this._addAspect(t,"onOpen",(function(){i._onPopupOpen(t)})),this._addAspect(t,"onClose",(function(){i._onPopupClose()})))},_getWidgetProperties:function(e){var t,n,o=this._modelManager.getAllProperties(e.getId());return Object.keys(o).forEach((function(r){(t=u[e.getType()])&&t[r]&&((n=c[e.getType()][r])&&(n.shouldBeFlipped?o[t[r]]=!o[r]:o[t[r]]=i.clone(o[r])),delete o[r])})),o.type=e.getType(),o},childDestroyedObserver:function(e){var t,n,o,r,s;if(o=e.data.child,r=e.target,s=o.getId(),t=this._getWidgetForPeerNode(o)){if(this._getAssociatedAspects(t).forEach(function(e){this._removeAspect(e)}.bind(this)),this._removeFromWidgetsWithActionIdMap(t.actionId,t),Object.keys(this._modelManager.tagToPeerNodeIdMap).forEach(i.hitch(this,(function(e){this._modelManager.tagToPeerNodeIdMap[e]===s&&delete this._modelManager.tagToPeerNodeIdMap[e]}))),n=this._getWidgetForPeerNode(r),(g.isAMenubarWrapper(t.get("type"))||g.isAToolbarWrapper(t.get("type")))&&t.getChildren().forEach((function(e){t.removeChild(e)})),(t.get("type")===a.GALLERY_ITEM||t.get("type")===a.TOGGLE_GALLERY_ITEM)&&!0===t.get("isFavorite")&&n&&"GalleryFavoriteCategory"!==n.get("type")){var l,c=o.getProperty("actionId");if(r.getParent&&r.getParent()&&(l=r.getParent().getProperty("favCategoryId"))){var d=this._modelManager.manager.getByProperty("actionId",c,this._modelManager.manager.getById(l))[0];if(d){var u=d.getId();u&&this._modelManager.destroy(u,!1)}}}n&&n.removeChild(t,e.originator),t.destroyRecursive()}},childMovedObserver:function(e){var t,i;t=e.target,this._getWidgetForPeerNode(t)?this._moveChild(e):(i=this._modelManager._toolstrip.id,this._modelManager.get(i,"selectedTab")===this._modelManager._findAncestorId(a.TAB,t.getId())&&this._buildWidgetAndAddChildren(t))},_moveChild:function(e){var t,i,n,o;n=this._getWidgetForPeerNode(e.target),t=this._getWidgetForPeerNode(e.data.oldParent),i=this._getWidgetForPeerNode(e.data.newParent),o=e.originator,this._modelManager.isMATLABDriven&&(o={source:"UI"}),t&&t.removeChild(n,o),i?i.addChild(n,e.data.newIndex,o):(n.hasOwnProperty("hovering")&&n.set("hovering",!1),n.hasOwnProperty("active")&&n.set("active",!1))},propertySetObserver:function(e){var t,i,n,o=this._getWidgetForPeerNode(e.target);o&&("tag"===e.data.key&&(i=o.get("tag"),n=this._modelManager.tagToPeerNodeIdMap[i],delete this._modelManager.tagToPeerNodeIdMap[i],this._modelManager.tagToPeerNodeIdMap[e.data.newValue]=n),this._setWidgetProperty(o,e.data.key,e.data.newValue,e.originator),"actionId"===e.data.key&&(t=this._getWidgetProperties(e.target),Object.keys(t).forEach((function(i){o._restrictModelUpdate||(t=this._getWidgetProperties(e.target),o.set(i,t[i]))}),this),this._addToWidgetsWithActionIdMap(e.data.newValue,o),this._removeFromWidgetsWithActionIdMap(e.data.oldValue,o)))},_addToWidgetsWithActionIdMap:function(e,t){if(this._widgetsWithActionIdMap.has(e)){this._widgetsWithActionIdMap.get(e).push(t)}else this._widgetsWithActionIdMap.set(e,[t])},_removeFromWidgetsWithActionIdMap:function(e,t){if(this._widgetsWithActionIdMap.has(e))if(1===this._widgetsWithActionIdMap.get(e).length)this._widgetsWithActionIdMap.delete(e);else{const i=this._widgetsWithActionIdMap.get(e);i.splice(i.indexOf(t),1)}},_getWidgetsWithActionId:function(e){return this._widgetsWithActionIdMap.has(e)?this._widgetsWithActionIdMap.get(e):[]},_onActionChange:function(e){"id"!==e.key&&this._getWidgetsWithActionId(e.id).forEach((function(t){t._destroyed||this._setWidgetProperty(t,e.key,e.newValue,e.originator)}),this)},_onActionAdd:function(e){if(this._modelManager.isMATLABDriven){var t=e.id,i=this._modelManager.actionService.getAction(t),n=Object.keys(i);if(this._getWidgetsWithActionId(t).forEach((function(t){n.forEach((function(n){t._destroyed||this._setWidgetProperty(t,n,i[n],e.originator)}),this)}),this),t in this._modelManager._pendingActionNodeCallbacks)this._modelManager.actionService._actionById(t).addEventListener(...this._modelManager._pendingActionNodeCallbacks[t]),delete this._modelManager._pendingActionNodeCallbacks[t]}},_setWidgetProperty:function(e,t,i,n){var o=t,r=u[e.get("type")];-1!==Object.keys(c[e.type]).indexOf(t)&&(r&&r[t]&&(o=r[t]),c[e.type][t].shouldBeFlipped?e.set(o,!i,n):e.set(o,i,n))},peerEventObserver:function(e){switch(e.data.eventType){case"placeToolStrip":this._modelManager.placeToolstripById(e.target.getId(),e.data.hostId);break;case"showPopup":this._modelManager.showPopup(e.target.getId(),e.data.popupId)}},_addWatchToWidgetProperties:function(e,t){var i,n=this,o=u[t.getType()],r=c[t.getType()];e.watch((function(e,s,l){if(n._modelManager.exists(t.getId())&&(i=e,o&&o[e]&&(i=o[e]),-1!==Object.keys(r).indexOf(i))){c[t.getType()][i].shouldBeFlipped&&(l=!l);!function(e,t){return"checked"===t||"isInQAB"===t||"value"===t&&e.get("type")===a.COMBO_BOX}(this,e)||this._treatAsUserEvent?n._modelManager.set(t.getId(),i,l,{source:"UI",id:t.getId()}):n._modelManager.set(t.getId(),i,l,{source:"ProgrammaticEvent",id:t.getId()})}}))},_hookupEvents:function(t,n){var o=this,r=n.getType(),a=l[r];function s(a,s){var l="aspect";h.indexOf(r)>-1&&(l="on"),a.forEach((function(a){function c(e){var t={};"aspect"===l?t=e||{}:e&&e.mwEventData&&i.mixin(t,e.mwEventData),t.eventType=a,this instanceof Element&&this.hasAttribute("widgetid")&&(t.id=this.getAttribute("widgetid")),"action"===s?o._modelManager.actionService.executeAction(n.getProperty("actionId"),t):n.dispatchEvent("peerEvent",n,t)}if("aspect"===l)t.own(e.after(t,a,c,!0));else{var u=a;d[r]&&d[r][a]&&(u=d[r][a]),t.on(u,c)}}))}a&&(s(a.actionEvents,"action"),s(a.componentEvents,"peerNode"))},_getWidgetForPeerNode:function(e){return o.byId(e.getId().toString())},_onPopupClose:function(){this._openPopups.pop(),this.onOpenPopupCountChange(this._openPopups.length,this._openPopups)},_onPopupOpen:function(e){this._openPopups.push(e),this.onOpenPopupCountChange(this._openPopups.length,this._openPopups)},onOpenPopupCountChange:function(e,t){},isAnyPopupOpen:function(){return r._stack.length>0&&this._modelManager.exists(r._stack[0].widget.id)},closeAllOpenPopups:function(){this.isAnyPopupOpen()&&r.close()},_resetStateRecursive:function(e){["hovering","active"].forEach((function(t){!0===e.get(t)&&e.set(t,!1)})),e.getChildren&&e.getChildren().length>0&&this._resetStateOfChildren(e)},_resetStateOfChildren:function(e){e.getChildren().forEach((function(e){this._resetStateRecursive(e)}),this)},refreshGallery:function(e){var t=o.byId(e);if(t){if(this._modelManager.isMATLABDriven){var i=this._modelManager.get(e,"galleryPopupId");if(i){if(!this._modelManager.manager.hasById(i))return;var n=this._modelManager.manager.getById(i);if(this._modelManager.manager.getByType(a.GALLERY_ITEM,n).concat(this._modelManager.manager.getByType(a.TOGGLE_GALLERY_ITEM,n)).some((function(e){return!this._modelManager.actionService.getAction(e.getProperty("actionId"))}),this))return}}if(!1!==t.get("shouldRefresh")){var r=[];!0===t.get("hideDisabledItems")?0===(r=this._getUniqueGalleryItems(e,!0)).length&&(r=this._getUniqueGalleryItems(e)):r=this._getUniqueGalleryItems(e),t.destroyDescendants(),r.forEach((function(e){var i=this._getWidgetProperties(e),n=this._buildWidget(i,e);t.addChild(n)}),this),0===r.length&&t.closeDropDown()}}},_getUniqueGalleryItems:function(e,t){var i,n,o,r,a,s=[];i=this._modelManager.manager.getById(e),n=this._modelManager.manager.getById(i.getProperty("galleryPopupId")),o=i.getProperty("currentColumnCount")*i.getProperty("galleryItemRowCount");var l=n.getProperty("favCategoryId");function c(e){a=!s.some((function(t){return t.getProperty("actionId")===e.getProperty("actionId")})),t&&(a=a&&!0===this._modelManager.get(e.getId(),"enabled")),a&&s.push(e)}function d(){for(r=this._modelManager.getAllCategoriesInDescendingOrder(n);r.length>0;)r.pop().getChildren().forEach(c,this)}if(this._modelManager.exists(l)&&(s=this._modelManager.manager.getById(l).getChildren().slice()),t&&(s=s.filter((function(e){return!0===this._modelManager.get(e.getId(),"enabled")}),this)),this._modelManager.get(e,"scrollToSelection")){d.call(this);var u=function(){for(var e=0,t=s.length,i=null;e<t;){if(!0===this._modelManager.get(s[e].getId(),"selected")){i={peerNode:s[e],index:e};break}e+=1}return i}.call(this);if(u){var h=u.peerNode.getId(),p=this._modelManager.getParentId(h),f=s.indexOf(this._modelManager.manager.getById(this._modelManager.getChildrenIds(p)[0]));return u.index>f+o-1&&(f=u.index-o+1),f+o>s.length&&(f=s.length-o),f<0&&(f=0),s.splice(f,o)}return s.slice(0,o)}return s.length<o&&d.call(this),s.slice(0,o)},cleanup:function(){Object.keys(this._aspectMap).forEach(function(e){this._removeAspect(e)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(3014),i(3026),i(209)],o=i.dj.d(n,(function(e,t,i,n){var o=e.mixin(e.clone(t),i);return{create:function(e){var t;return o[e.type]?t=new o[e.type](e):n.error("No corresponding constructor found for type "+e.type),t},addClass:function(e,t){o[e]=t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(388),i(1731),i(3015),i(3017),i(3019),i(3022),i(3023),i(3025)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l={};return l[e.STATUS_BAR]=t,l[e.STATUS_GROUP]=i,l[e.STATUS_LABEL]=n,l[e.STATUS_PROGRESS_BAR]=o,l[e.STATUS_PUSH_BUTTON]=r,l[e.STATUS_TEXT_FIELD]=a,l[e.STATUS_TOGGLE_BUTTON]=s,l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(272),i(216),i(215),i(361),i(786),i(3016)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n,t,i,o,r],{templateString:a})}),e,t),e.exports=o},function(e,t){e.exports="<div class='mwStatusGroup' data-dojo-attach-point=\"containerNode\"></div>"},function(e,t,i){var n,o;n=[i(203),i(269),i(332),i(786),i(1313)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i,n,o],{})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="focusNode"\n ><div data-dojo-attach-point="contentWrapperNode" class="mwContentWrapperNode"\n ><div data-dojo-attach-point="iconAndTextContainerNode" class="mwIconAndTextContainerNode mwAlignmentNode"\n ><div data-dojo-attach-point="iconNode" class="mwIconNode"></div\n ><div data-dojo-attach-point="textNode" class="mwTextNode"></div\n ></div\n ></div\n></div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(276),i(787),i(361),i(786),i(1313)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([i,o,r,a],{constructor:function(e){var i=t.clone(e);e.id&&(i.id=e.id+"_inner"),e.Tag&&(i.Tag=e.Tag+"Inner"),void 0===e.showPercentage&&(i.showPercentage=!1),this._progressBar=new n(i)},buildRendering:function(){this.inherited(arguments),this.width<0&&this.set("width",120),this.set("content",this._progressBar),this._progressBar.domNode.classList.add("mwStatusProgressBar")},set:function(e,t){this._isLocalProperty(e)?this.inherited(arguments):this._progressBar.set(e,t)},get:function(e){return this._isLocalProperty(e)?this.inherited(arguments):this._progressBar.get(e)},_isLocalProperty:function(e){return"content"===e||"id"===e||"tag"===e||"type"===e||"region"===e||"width"===e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(1272)],o=i.dj.d(n,(function(e,t,i){return e([],{value:0,indeterminate:!1,showPercentage:!0,color:"Info","data-test-id":"",constructor:function(){this["data-test-id"]=this.baseClass.substring(2)},_setValueAttr:function(e){e=Math.min(Math.max(parseInt(e),0),100),this._set("value",e),this.progressTextNode.textContent=this.value+"%",t.set(this.domNode,"data-value",this.value)},_setIndeterminateAttr:function(e){this._set("indeterminate",e);var t=this.baseClass+"Indeterminate";this.indeterminate?this.domNode.classList.add(t):this.domNode.classList.remove(t)},_setShowPercentageAttr:function(e){this._set("showPercentage",e);var t=this.baseClass+"Invisible";this.showPercentage?this.progressTextNode.classList.remove(t):this.progressTextNode.classList.add(t)},_setColorStyleAttr:function(e){i.deprecated({deprecated:{module:"mw-notifications/ProgressBar",method:"_setColorStyleAttr"},replacement:{module:"mw-notifications/ProgressBar",method:"_setColorAttr"}}),this.set("color",e)},_getColorStyleAttr:function(){return this.color},_setColorAttr:function(e){this._isHexColorCode(e)?(this._set("color",e),this.domNode.style.setProperty("--progress-color",e)):this._setColorEnum(e)},_setColorEnum:function(e){var t,i;switch(e.toLowerCase()){case"error":t="Error",i="var(--progress-color-error)";break;case"warning":t="Warning",i="var(--progress-color-warning)";break;case"success":t="Success",i="var(--progress-color-success)";break;default:t="Info",i="var(--progress-color-info)"}this._set("color",t),this.domNode.style.setProperty("--progress-color",i)},_isHexColorCode:function(e){return/^#([0-9A-F]{3}){1,2}$/i.test(e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-test-id="${data-test-id}" data-value="${value}">\n <div data-dojo-attach-point="gutterNode" class="${baseClass}Gutter">\n <div data-dojo-attach-point="progressNode" class="${baseClass}Progress"></div>\n </div>\n <div data-dojo-attach-point="progressTextNode" class="${baseClass}Text">50%</div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(243),i(332),i(786)],o=i.dj.d(n,(function(e,t,i,n){return e([t,i,n],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(258),i(332),i(786),i(1313)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i,n,o],{})}),e,t),e.exports=o},function(e,t){e.exports='<div><input class= "mwInputNode mwAlignmentNode" spellcheck="false" type="text" data-dojo-attach-point="inputNode,focusNode"></div>'},function(e,t,i){var n,o;n=[i(203),i(446),i(332),i(786)],o=i.dj.d(n,(function(e,t,i,n){return e([t,i,n],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(3027),i(3098),i(3102),i(3104),i(3106),i(3107),i(3111),i(3113),i(3115),i(3117),i(3119),i(3121),i(1790),i(1791),i(3125),i(1797),i(790),i(1328),i(1804),i(3130),i(3150),i(3151),i(1330),i(3152),i(3153),i(3154),i(3156),i(3157),i(1806),i(1317),i(1808),i(3158),i(3159),i(3160),i(3164),i(3165),i(3166),i(3167),i(3168),i(3174),i(3175),i(3177),i(3178),i(3180),i(3181),i(3228),i(3229),i(3230),i(3232),i(1813),i(3237)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U,W,G,z,q,K,X,Y,Q,$){var J={};return J[e.TOOLSTRIP]=t,J[e.QAB]=i,J[e.QA_GROUP]=n,J[e.TAB_GROUP]=o,J[e.TAB]=r,J[e.SECTION]=a,J[e.PANEL]=s,J[e.POPUP_LIST_PANEL]=c,J[e.COLUMN]=l,J[e.GALLERY]=h,J[e.GALLERY_POPUP]=p,J[e.GALLERY_PANEL]=f,J[e.GALLERY_CATEGORY]=g,J[e.GALLERY_FAVORITE_CATEGORY]=g,J[e.FOOTER]=d,J[e.FOOTER_CELL]=u,J[e.PUSH_BUTTON]=m,J[e.DROP_DOWN_BUTTON]=_,J[e.SPLIT_BUTTON]=v,J[e.TOGGLE_BUTTON]=b,J[e.COLOR_PICKER_BUTTON]=y,J[e.GRID_PICKER_BUTTON]=C,J[e.QAB_PUSH_BUTTON]=T,J[e.QAB_DROP_DOWN_BUTTON]=E,J[e.QAB_SPLIT_BUTTON]=S,J[e.QAB_TOGGLE_BUTTON]=w,J[e.QAB_TOGGLE_SPLIT_BUTTON]=I,J[e.QAB_GALLERY_CATEGORY_BUTTON]=A,J[e.QAB_FLOATING_PANE_DOCK]=x,J[e.TOGGLE_SPLIT_BUTTON]=N,J[e.POPUP_LIST]=L,J[e.LIST_ITEM]=D,J[e.LIST_ITEM_WITH_POPUP]=M,J[e.LIST_ITEM_WITH_CHECKBOX]=P,J[e.LIST_ITEM_WITH_TEXTFIELD]=O,J[e.LIST_ITEM_WITH_RADIO_BUTTON]=R,J[e.POPUP_LIST_SEPARATOR]=k,J[e.POPUP_LIST_HEADER]=F,J[e.COMBO_BOX]=B,J[e.LIST]=H,J[e.LABEL]=V,J[e.EMPTY_CONTROL]=j,J[e.TEXT_FIELD]=U,J[e.TEXT_AREA]=W,J[e.SPINNER]=G,J[e.HORIZONTAL_SLIDER]=z,J[e.RADIO_BUTTON]=q,J[e.CHECK_BOX]=K,J[e.MENUBAR_WRAPPER]=Y,J[e.TOOLBAR_WRAPPER]=X,J[e.GALLERY_ITEM]=Q,J[e.TOGGLE_GALLERY_ITEM]=$,J}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(206),i(227),i(256),i(223),i(203),i(211),i(204),i(240),i(541),i(225),i(217),i(785),i(544),i(231),i(277),i(3028),i(215),i(272),i(216),i(3029),i(243),i(317),i(288),i(354),i(1067),i(1781),i(226),i(657),i(1301),i(567),i(361),i(3079),i(1040),i(241),i(421),i(3095),i(3096),i(1068),i(569),i(3097),i(1300)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j){var U=function(e,t){return!(!e||!t)&&e[e.msMatchesSelector?"msMatchesSelector":"matches"](t)};return r([_,v,b,D,R,k],{templateString:m,constructor:function(){this._shouldSetSelectedTab=!0,this._previousSelectedChild=null,this._tabGroupListeners={},this._handleClick=function(e){this.displayState!==x.EXPANDED_ON_TOP||P.isDescendant(e.target,this.domNode)||e.target===document.body||this.set("displayState",x.COLLAPSED)}.bind(this),e.before(this,"addChild",this._beforeAddChild),this._setupContextMenu()},postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-focus","refuse");var o=this;this.tabContainer=new y({class:"tabContainer"},this.toolstripTabContainer),this.tabContainer.tablist.onkeydown=function(){},this._supportingWidgets.push(this.tabContainer),this.own(e.after(this,"placeAt",(function(){n.publish("/Toolstrip/toolstripPlaced",{toolstripId:this.id}),o.toolstripPlaced(),o.resize()}))),this.collapseButton=new C({class:"collapseButton",icon:"smallCollapse",showText:!1}).placeAt(this.collapseButtonContainer),this.collapseButton.focusNode.removeAttribute("aria-labelledby"),this.collapseButton.focusNode.setAttribute("data-mnemonic-key-nav-direction","all"),this.collapseButton.on("click",s.hitch(this,this._expandCollapse)),this.tabContainer.tablist.tablistWrapper.children[0].dojoClick=!1,this._setTooltipforExpandCollapseButton(),this._supportingWidgets.push(this.collapseButton),this.hostId&&(this.placeAt(this.hostId),this.resize(),this.startup()),this.connect(this.tabContainer,"selectChild",(function(e){this.set("selectedTab",e.id)})),this.own(c.on("resize",function(){this.resize()}.bind(this)));var r=function(e){var t=f.getEnclosingWidget(e.target);o.displayState===x.COLLAPSED?o.set("displayState",x.EXPANDED_ON_TOP):o.displayState===x.EXPANDED_ON_TOP&&B.getCurrentMnemonicsState()!==B.CONTROL_TAB&&o._previousSelectedChild&&i.isDescendant(e.target,o._previousSelectedChild.domNode)&&o.set("displayState",x.COLLAPSED),o._previousSelectedChild=t},a=function(){o._expandCollapse()},l=function(e,t){return!!(e&&t&&e instanceof Element)&&e[e.msMatchesSelector?"msMatchesSelector":"matches"](t)};this.own(t(this.domNode,".dijitTab:click",M.createCallback(r,a)),t(window,"blur",function(e){setTimeout(function(){l(document.activeElement,".toolstrip, .toolstrip *")||"IFRAME"===document.activeElement.tagName||this.displayState!==x.EXPANDED_ON_TOP||this.set("displayState",x.COLLAPSED)}.bind(this),0)}.bind(this))),this._setupContextMenu(),this._setLocaleOnDomNode(),this.domNode.setAttribute("role","region"),this.domNode.setAttribute("aria-label",p.toolstripLabel),this.tabContainer.tablist.containerNode.setAttribute("aria-label",p.toolstripLabel),this.domNode.addEventListener("keydown",this._handleKeyDown,!0),document.addEventListener("click",this._handleClick,!0),this._detectOS()},addTopLeftButton:function(){this._topLeftButton=new F({icon:"topLeftIcon",description:p.homeButtonLabel,mnemonic:"M",width:40,height:28}),this._topLeftButton.domNode.classList.add("topLeftButton"),this._topLeftButton.domNode.classList.add("homeButton"),this.topLeftContainer.prepend(this._topLeftButton.domNode),this._topLeftContainerContentListeners=[],this._topLeftContainerContentListeners.push(H.addEventListener(this._topLeftButton.domNode,"click",this._handleTopLeftButtonClick.bind(this)))},_handleTopLeftButtonClick:function(){var e=new Event("topLeftButtonClicked");window.dispatchEvent(e)},_handleKeyDown:function(e){var t=H.isMac();-1===["INPUT","TEXTAREA"].indexOf(e.target.nodeName)&&65===e.keyCode&&(t&&e.metaKey||!t&&e.ctrlKey)&&e.preventDefault()},_setLocaleOnDomNode:function(){if(["ko","ko-kr","ja-jp","zh-cn"].indexOf(l.locale)>-1){switch(l.locale){case"ko":case"ko-kr":document.body.classList.add("isKoreanToolstrip");break;case"ja-jp":document.body.classList.add("isJapaneseToolstrip");break;case"zh-cn":document.body.classList.add("isChineseToolstrip")}document.body.classList.add("isCJKToolstrip")}},_detectOS:function(){switch(H.getOS()){case H.OSConstants.WINDOWS:document.body.classList.add("os-win");break;case H.OSConstants.MAC:document.body.classList.add("os-mac"),document.body.classList.add("os-unix");break;case H.OSConstants.LINUX:document.body.classList.add("os-linux"),document.body.classList.add("os-unix")}},_setupContextMenu:function(){var e=this,t='[id="'+this.id+'"]',i=function(e){var t,i=e.target||document.activeElement;if(d("[dijitpopupparent]").some((function(e){return!("none"===e.style.display||!i||!e.contains(i))&&(t=e,!0)})),!(i&&t&&(t.classList.contains("galleryPopupWrapper")||t.classList.contains("toolstripPopup")||t.querySelector('[data-type="PopupList"]'))&&this._findParentNode(i,"id",this.id)))return null;var n=d('[id="'+t.id+'"] *');return n.push(t),n.indexOf(i)>-1?n:void 0}.bind(this);if(this._contextMenu)this._contextMenu.set("targetNodes",[t,t+" *",i]),this.get("displayMode")===N.COMPACT&&this._contextMenu.domNode.classList.add("mwCompactToolstripPopupContextMenu");else{var n=function(){this._contextMenu.domNode.removeEventListener("close",n)}.bind(this);this._contextMenu=new T({willOpenCallback:s.hitch(this,this._updateContextMenu),targetNodes:[t,t+" *",i]}),this._contextMenu.domNode.addEventListener("close",n),this._contextMenu.domNode.classList.add("mwToolstripPopupContextMenu"),V.registerContextMenu(this._contextMenu),this.own({remove:function(){V.unregisterContextMenu(e._contextMenu),e._contextMenu.destroyRecursive()}})}},_findParentNode:function(e,t,i){var n,o=null;for(e.domNode&&(e=e.domNode);e&&e!==window.document;){if(i){if(e.hasAttribute(t)&&e.getAttribute(t)===i){o=e;break}}else{if(e.hasAttribute(t)){o=e;break}if(e.classList.contains(t)){o=e;break}}n=e.getAttribute("dijitpopupparent"),e=n?document.getElementById(n):e.parentNode}return o},addContextMenuCallback:function(e,t){V.addContributor(this._contextMenu,e,t)},removeContextMenuCallback:function(e,t){V.removeContributor(this._contextMenu,e,t)},_updateContextMenu:function(e){var t,i,n,o=[];if(e.target.matches("[data-context-menu-exceptions], [data-context-menu-exceptions] *")){for(var r=e.target;r&&!r.dataset.contextMenuExceptions&&(r=r.parentElement)!==document.body;);o=r&&r.dataset.contextMenuExceptions&&r.dataset.contextMenuExceptions.split(",")||[]}if(o.indexOf("no-context-menu")>-1)return!0;if(V.build(this._contextMenu,e.target,!0),t=e.target.classList.contains("toolstripComponentWrapper")?f.getEnclosingWidget(e.target.children[0]):f.getEnclosingWidget(e.target)){if(t.get("editOption")&&t.hasOwnProperty("editable")&&!t.get("editable")&&this._addEditWidgetMenuItemToContextMenu(t),t.page||"Tab"===t.type||!0!==t.get("removable")||this._addRemoveWidgetMenuItemToContextMenu(t),t.page&&"Tab"===t.page.type&&!0===t.page.get("removable"))this._addRemoveWidgetMenuItemToContextMenu(t.page);else{for(var a=t;a&&"Tab"!==a.type;)a=a.domNode&&a.domNode.parentElement&&a.domNode.parentElement.hasAttribute("dijitpopupparent")?f.byId(a.domNode.parentElement.getAttribute("dijitpopupparent")):a.getParent();a&&!0===a.get("removable")&&this._addRemoveWidgetMenuItemToContextMenu(a)}this._isListItemTypeWidget(t)&&(this._contextMenu.invokedFromListItemTypeWidget=!0),t.get("type")===A.LIST_ITEM_WITH_POPUP&&t.isMenuOpen()&&(t.get("menu")._closeEventData={mwEventData:{gainedFocusWidget:t}},t.closeMenu())}if(this.enableQABCustomization){if((Object.keys(I).indexOf(t.get("type"))>-1&&(!t.isEligibleForQab||t.isEligibleForQab())||t.eligibleForParentAdditionToQAB)&&!this._isWidgetWithinGalleryPopupFooter(t)&&(this._contextMenu.hasChildren()&&this._contextMenu.addChild(new S),n=t.eligibleForParentAdditionToQAB?this._findCorrespondingWidgetForIsInQABProp(t):t)){i=n.get("isInQAB");var l=function(e){var t;return this._QABWidget.getChildren().some((function(i){return i.getChildren().some((function(i){if(i.actionId===e)return t=i,!0}))})),t}.bind(this),c=new E({text:p.addToQAB,tag:"addToQAB",disabled:i});this._contextMenu.addChild(c),c.on("click",function(){var e,t,i;n&&(n._treatAsUserEvent=!0,n.set("isInQAB",!0),n.actionId&&(e=l(n.actionId))&&(t=e.id,i=e.tag),this._fireQABEvent(n.id,t,n.tag,i,"add"),n._treatAsUserEvent=!1);g.close()}.bind(this))}if(o.indexOf("no-show-label")<0)switch(t.get("type")){case A.QAB_PUSH_BUTTON:case A.QAB_TOGGLE_BUTTON:case A.QAB_SPLIT_BUTTON:case A.QAB_DROP_DOWN_BUTTON:case A.QAB_TOGGLE_SPLIT_BUTTON:case A.QAB_GALLERY_CATEGORY_BUTTON:if(!0===t.get("isInQAB")){this._contextMenu.hasChildren()&&this._contextMenu.addChild(new S);var d=new E({text:p.removeFromQAB,tag:"removeFromQAB"});this._contextMenu.addChild(d),d.on("click",function(){var e,i;if(t._treatAsUserEvent=!0,t.set("isInQAB",!1),t.toolstripControlId){var n=f.byId(t.toolstripControlId);e=n.id,i=n.tag}this._fireQABEvent(e,t.id,i,t.tag,"remove"),t._treatAsUserEvent=!1}.bind(this))}this._setShowHideLabelMenuItem(t);break;case A.QAB_FLOATING_PANE_DOCK:this._setShowHideLabelMenuItem(t)}if(!this.get("hideRestoreDefaultsQABOption")&&this._isDescendantOfQAB(t)){var u=new E({text:p.restoreFactoryControls,tag:"restoreFactoryControls"});this._contextMenu.addChild(u),u.on("click",s.hitch(this,(function(){this.qabAuthoringMode===j.MANUAL?this._QABWidget.restoreFactoryControls():O.displayConfirmDialog(p.restoreFactoryControlsDialogTitle,p.restoreFactoryControlsDialogMessage,{icon:"warning",closeCallback:s.hitch(this,(function(e){1===e.response&&this._QABWidget.restoreFactoryControls()}))})})))}}if(this.get("displayState")!==x.STATIC&&(U(e.target,'[data-type="Toolstrip"], [data-type="Toolstrip"] *')||U(e.target,'[data-type="SectionPopup"], [data-type="SectionPopup"] *'))){this._contextMenu.hasChildren()&&this._contextMenu.addChild(new S);var h=new E({text:this.get("displayState")!==x.EXPANDED?p.restoreToolstrip:p.minimizeToolstrip,tag:"minimizeRestoreToolstrip"});this._contextMenu.addChild(h),h.on("click",s.hitch(this,this._expandCollapse))}if(this._contextMenu.hasChildren()){var m,_=f.getEnclosingWidget(e.target);_&&_.id?m=_.id:(m="node_id_"+Math.random().toString(36).substring(7),e.target.setAttribute("id",m)),this._contextMenu.domNode.setAttribute("dijitpopupparent",m)}},_findCorrespondingWidgetForIsInQABProp:function(e){for(var t=e.getParent?e.getParent():null;t&&void 0===t._invokingWidget;)t=t.getParent();return t&&t._invokingWidget?t._invokingWidget:null},_isWidgetWithinGalleryPopupFooter:function(e){for(var t=!1,i=e.getParent?e.getParent():null;i&&i.get("type")!==A.GALLERY_POPUP;)i.get("type")===A.FOOTER&&(t=!0),i=i.getParent();return t&&i&&i.get("type")===A.GALLERY_POPUP},_fireQABEvent:function(e,t,i,n,o){var r,a,s;r=this.get("QABId"),a=f.byId(r),s={mwEventData:{itemId:e,qabItemId:t,itemTag:i,qabItemTag:n}},"add"===o?a.controlAdded(s):a.controlRemoved(s)},_isListItemTypeWidget:function(e){switch(e.get("type")){case A.LIST_ITEM:case A.LIST_ITEM_WITH_POPUP:case A.LIST_ITEM_WITH_CHECKBOX:case A.LIST_ITEM_WITH_RADIO_BUTTON:case A.LIST_ITEM_WITH_TEXTFIELD:return!0;default:return!1}},_setShowHideLabelMenuItem:function(e){if(!this._QABWidget._overflowPopup.domNode.contains(e.domNode)){var t=new E({text:e.get("showText")?p.hideLabel:p.showLabel,tag:"showHideLabel"});this._contextMenu.addChild(t),t.on("click",function(){e.set("showText",!e.get("showText")),this.resize()}.bind(this))}},_addRemoveWidgetMenuItemToContextMenu:function(e){var t,i=function(t){"keydown"===t.type&&[o.ENTER,o.SPACE].indexOf(t.keyCode)<0||(e._emitRemoveEvent?e._emitRemoveEvent():e.emit("remove"))},n=e.get("removeMessage");if(!n)switch(e.get("type")){case A.TAB:n=p.closeWidget.replace(/\$\{0}/g,e.get("title"));break;case A.GALLERY_ITEM:case A.TOGGLE_GALLERY_ITEM:case A.LIST_ITEM:case A.LIST_ITEM_WITH_TEXTFIELD:n=p.removeWidget.replace(/\$\{0}/g,e.get("text"))}t=new E({text:n,tag:"removeWidget"}),this._contextMenu.addChild(t),t.on("mouseup",i),t.on("keydown",i)},_addEditWidgetMenuItemToContextMenu:function(e){var t,i=function(t){"keydown"===t.type&&[o.ENTER,o.SPACE].indexOf(t.keyCode)<0||(e._emitEditEvent?e._emitEditEvent():e.emit("edit"))},n=e.get("editOptionMessage");if(!n)switch(e.get("type")){case A.TAB:n=p.editWidget.replace(/\$\{0}/g,e.get("title"));break;case A.GALLERY_ITEM:case A.TOGGLE_GALLERY_ITEM:case A.LIST_ITEM:case A.LIST_ITEM_WITH_TEXTFIELD:n=p.editWidget.replace(/\$\{0}/g,e.get("text"))}t=new E({text:n,tag:"editWidget"}),this._contextMenu.addChild(t),t.on("mouseup",i),t.on("keydown",i)},_isDescendantOfQAB:function(e){var t=!1;if(e===this._QABWidget)t=!0;else for(;e&&e.getParent&&e.getParent()!==this;){if(e.getParent()===this._QABWidget||e.getParent()===this._QABWidget._overflowPopup){t=!0;break}e=e.getParent()}return t},_getToolstripWidth:function(){return u.getMarginBox(this.domNode).w},_getTopRightContainerWidth:function(){return u.getMarginBox(this.topRightContainer).w},_getTabsWidth:function(e){var t=0;return e.forEach((function(e){t+=u.getMarginBox(e).w})),t},_getTabMargin:function(e){if(e.length>0)return u.getMarginBox(e[0]).w-u.position(e[0]).w},_getTabPadding:function(e){if(e.length>0){if(!this._tabPadding){const t=window.getComputedStyle(e[0]);this._tabPadding=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)}return this._tabPadding}return 0},_shrinkTabs:function(e){var t=e.length,i=this,n=this._getTabMargin(e),o=this._getTabPadding(e);e.forEach((function(r,a){var s=i._availableWidthForTabs/t-o-n;e[a].style.setProperty("width",s+"px"),r.classList.add("noMinWidth")}))},_expandTabs:function(e){var t,i,n,o=this,r=0,a=e.length,s=[],l=this._getTabMargin(e),c=this._getTabPadding(e);e.forEach((function(t,i){(n=h.computeWidth(e[i].textContent,null,"font-size: 11px"))<L.TAB_WIDTH&&(n=L.TAB_WIDTH),r+=n=n+l+c,s.push(n)})),r<o._getToolstripWidth()-o._getTopRightContainerWidth()?e.forEach((function(t,i){t.classList.remove("noMinWidth"),[].indexOf.call(t.style,"width")>-1&&(e[i].style.width="")})):e.forEach((function(n,r){t=parseFloat(e[r].style.width),(i=t+o._availableWidth/a)<s[r]?(e[r].style.width=i+"px",n.classList.add("noMinWidth")):e[r].style.width=s[r]-l+"px"}))},_setPreventResizeAttr:function(e){this._doNotResize=e,this._ignoreResize=e},_resizeInterval:function(){this.resize();var e=Date.now();this._resizeTime&&this._resizeTime<e&&this._clearResizeInterval()},_clearResizeInterval:function(){this._delayResizeInterval&&clearInterval(this._delayResizeInterval),this._delayResizeInterval=null,this._resizeTime=null},resizeToolstripWithDelay:function(){this._delayResizeInterval||(this._delayResizeInterval=setInterval(this._resizeInterval.bind(this),500)),this._resizeTime=Date.now()+500},setResizeFlag:function(e){this._doNotResize=!e},resize:function(){if(this._startupComplete&&(this.inherited(arguments),!this._destroyed&&!this._doNotResize&&(this.tabContainer._started&&this.tabContainer.resize(),this.domNode.parentElement))){var e,t,i,n,o,r,a=this,s=0;e=[].slice.call(this.domNode.querySelectorAll(".mwTabButton")),s=this._getTabsWidth(e),r=this._getToolstripWidth(),o=this._getTopRightContainerWidth(),i={QABContainer:this._getQABWidth(),logoutContainer:this._getLogoutButtonWidth(),searchContainer:this._getSearchBoxWidth(),tabs:this._getTabsWidth(e)},t=["searchContainer","QABContainer","tabs"],s+o+this._topLeftContainerWidth>r?(n=s+o+this._topLeftContainerWidth-r,t.forEach(function(t){o=a._getTopRightContainerWidth(),r=a._getToolstripWidth(),(n=s+o+this._topLeftContainerWidth-r)>0&&("tabs"===t?(a._availableWidthForTabs=r-o-this._topLeftContainerWidth,a._shrinkTabs(e)):"searchContainer"===t?(a.searchPopupContainer.classList.remove("dijitOffScreen"),a.searchContainer.classList.add("dijitOffScreen")):this._QABWidget&&this._QABWidget.collapse&&this._QABWidget.collapse(n))}.bind(this))):(this._availableWidth=r-(s+o+this._topLeftContainerWidth),t.reverse().forEach(function(t){o=a._getTopRightContainerWidth(),r=a._getToolstripWidth(),s=a._getTabsWidth(e),a._availableWidth=r-(s+o+this._topLeftContainerWidth),a._availableWidth>0&&("tabs"===t?a._expandTabs(e):"QABContainer"===t?this._QABWidget&&this._QABWidget.expand&&this._QABWidget.expand(a._availableWidth):i.searchContainer<a._availableWidth&&(d("."+t,a.domNode)[0].classList.remove("dijitOffScreen"),d("."+t,a.domNode)[0].style.display="inline-block",a.searchPopupContainer.classList.add("dijitOffScreen")))}.bind(this)))}},destroy:function(){this._delayResizeInterval&&this._clearResizeInterval(),this.domNode.removeEventListener("keydown",this._handleKeydown,!0),document.removeEventListener("click",this._handleClick,!0),this._handleLongPress&&this.domNode.removeEventListener("longpress",this._handleLongPress),this._topLeftContainerContentListeners&&this._topLeftContainerContentListeners.forEach((function(e){e.remove()})),this.inherited(arguments)},_getLogoutButtonWidth:function(){return u.getMarginBox(this.logoutContainer).w},_getQABWidth:function(){return u.getMarginBox(this.QABContainer).w},_getSearchBoxWidth:function(){return u.getMarginBox(this.searchContainer).w},startup:function(){this.inherited(arguments),this._adjustHostHeight();var e=this.domNode.parentNode;e&&(e.style.zIndex=20),this.tabContainer.startup(),this.collapseButton.startup(),this._QABWidget&&this._QABWidget.startup(),this._topLeftButton?(this._topLeftButton.startup(),this._topLeftContainerWidth=parseFloat(window.getComputedStyle(this.topLeftContainer).width),this.tabContainer.tablist.tablistWrapper.style.setProperty("--toolstrip-top-left-padding",this._topLeftContainerWidth+"px")):this._topLeftContainerWidth=0,this._startupComplete=!0},_expandCollapse:function(){var e=this.displayState;e===x.COLLAPSED||e===x.EXPANDED_ON_TOP?e=x.EXPANDED:e===x.EXPANDED&&(e=x.COLLAPSED),this.set("displayState",e),g.close()},addTab:function(e,t){this._shouldSetSelectedTab=!1,this.tabContainer.addChild(e,t),this._shouldSetSelectedTab=!0,this.tabContainer.selectedChildWidget||this.tabContainer.selectChild(e)},removeChild:function(e){e.tabs.forEach((function(e){this.removeTab(e)}),this),this.inherited(arguments),this.resize(),Object.keys(this._tabGroupListeners).forEach((function(e){this._tabGroupListeners[e].forEach((function(e){e.remove()}))}),this)},_beforeAddChild:function(e,t){var i=t,n=this.getChildren().length;return t||0===t||(i=n),[e,i]},addChild:function(e,t){var i,n,o,r,a=0,l=0;for(i=this.getChildren();a<t;)l+=i[a].tabs.length,a+=1;e.tabs.forEach((function(e,t){this.addTab(e,l+t)}),this),this.inherited(arguments),this.set("selectedTab",e.get("selectedTab")),this._startupComplete&&this.resize(),this._removeUnSelectableAttribute(),n=e.on("childadded",s.hitch(this,this.resize)),o=e.on("childremoved",s.hitch(this,this.resize)),r=e.on("childadded",s.hitch(this,this._removeUnSelectableAttribute)),this._tabGroupListeners[e.id]=[n,o,r]},_removeUnSelectableAttribute:function(){d(".mwTabButtonTextNode",this.domNode).forEach((function(e){i.setSelectable(e,!0)}),this)},_setSelectedTabAttr:function(e){if(this._shouldSetSelectedTab){var t=f.byId(e.toString());!t||this.selectedTab===e&&this.tabContainer.selectedChildWidget&&this.tabContainer.selectedChildWidget.get("id")===e||(this._set("selectedTab",e),this.selectTab(t),this.getChildren().forEach((function(t){t.tabs.some((function(t){return t.id===e}))&&t.set("selectedTab",e)})))}},_setDisplayModeAttr:function(e){if(!Object.keys(N).some((function(t){return e===N[t]})))throw new Error('Expected one of the following inputs: MW/toolstrip/constants/DisplayModeConstants[ "'+Object.keys(N).toString().replace(",",'" || "')+'" ]');if(this.domNode.classList.remove(this.displayMode+"Toolstrip"),this._set("displayMode",e),this.domNode.classList.add(this.displayMode+"Toolstrip"),this._adjustHostHeight(),this.resize(),e===N.COMPACT){var t=function(e,t){var i=f.getEnclosingWidget(t),n=new w({text:i.get("text")});if(n.domNode.classList.add("mwMenuTooltip"),i.get("description")){var o=i.get("description"),r=document.createElement("span");r.classList.add("mwDescriptionLine"),r.textContent=o,n.domNode.appendChild(r)}e.addItem(n)};this._handleLongPress=function(e){this.addContextMenuCallback(".compactToolstrip.toolstrip .mwWidget, .compactToolstrip.toolstrip .mwWidget *",t),this._updateContextMenu(e);var i=f.getEnclosingWidget(e.target),n=i.domNode.getBoundingClientRect(),o=n.left,r=n.bottom+3,a=this._contextMenu._focusOnOpen;this._contextMenu._focusOnOpen=!1,this._contextMenu._showMenu({target:e.target,around:i.domNode,popup:this._contextMenu,doNotClose:!1}),this._contextMenu.domNode.parentElement.classList.add("mwToolstripPopupContextMenuCalloutBody");var s=function(e){document.body.removeChild(l),this._contextMenu.domNode.removeEventListener("close",s),this._contextMenu.domNode.parentElement.classList.remove("mwToolstripPopupContextMenuCalloutBody")}.bind(this);this._contextMenu.domNode.addEventListener("close",s);var l=document.createElement("div");l.classList.add("mwToolstripPopupContextMenuCalloutArrow"),l.style.left=o+"px",l.style.top=r+10+"px",document.body.appendChild(l),setTimeout(function(){this._contextMenu._focusOnOpen=a}.bind(this),0),this.removeContextMenuCallback(".compactToolstrip.toolstrip .mwWidget, .compactToolstrip.toolstrip .mwWidget *",t)}.bind(this),this.domNode.addEventListener("longpress",this._handleLongPress),this._addTouchListeners()}else this._handleLongPress&&(this.domNode.removeEventListener("longpress",this._handleLongPress),delete this._handleLongPress),this._removeTouchListeners()},_setDisplayStateAttr:function(e){this._set("displayState",e),this._setTooltipforExpandCollapseButton(),this._adjustHostHeight(),this._handleStaticState(),this._handleInteractabilityOfIframesOnPage()},_handleStaticState:function(){this.displayState===x.STATIC?(this.collapseButtonContainer.style.display="none",document.body.classList.add("staticToolstrip")):(this.collapseButtonContainer.style.display="",document.body.classList.remove("staticToolstrip")),this.resize()},_setTooltipforExpandCollapseButton:function(){this.collapseButton&&(this.displayState===x.COLLAPSED||this.displayState===x.EXPANDED_ON_TOP?this.collapseButton.set("description",p.restoreToolstrip):this.collapseButton.set("description",p.minimizeToolstrip))},_adjustHostHeight:function(){var e,t;if(e=this.domNode.parentElement)switch(t=f.getEnclosingWidget(e.parentElement),this.displayState){case x.COLLAPSED:this.domNode.classList.remove("toolstripNotCollapsed"),this.domNode.classList.remove("toolstripExpandedOnTop"),e.style.height="28px",e.style.overflow="hidden",this.collapseButton&&this.collapseButton.set("icon","smallExpand");break;case x.EXPANDED:case x.STATIC:this.domNode.classList.add("toolstripNotCollapsed"),this.domNode.classList.remove("toolstripExpandedOnTop"),e.style.height=this.displayMode===N.COMPACT?"81px":"121px",e.style.overflow="hidden",this.collapseButton&&this.collapseButton.set("icon","smallCollapse"),this.tabContainer&&this.tabContainer.selectedChildWidget&&this.tabContainer.selectedChildWidget.resize();break;case x.EXPANDED_ON_TOP:this.domNode.classList.add("toolstripNotCollapsed"),this.domNode.classList.add("toolstripExpandedOnTop"),e.style.height="28px",e.style.overflow="visible",this.tabContainer&&this.tabContainer.selectedChildWidget&&this.tabContainer.selectedChildWidget.resize()}t&&t.resize&&t.resize()},_iframesOnPage:null,_previousFocusNode:null,_handleInteractabilityOfIframesOnPage:function(){switch(this.displayState){case x.EXPANDED_ON_TOP:this._iframesOnPage=document.querySelectorAll("iframe"),this._iframesOnPage.forEach((function(e){e.style.pointerEvents="none"})),this.domNode&&!this._previousFocusNode&&"IFRAME"===document.activeElement.tagName&&(this._handleKeydown=t(this.domNode,"keydown",function(e){27===e.keyCode&&(this._handleKeydown&&(this._handleKeydown.remove(),delete this._handleKeydown),this._previousFocusNode&&(this._previousFocusNode.focus(),this._previousFocusNode=null),this.domNode&&(this.domNode.dataset.focus="refuse",this.domNode.tabIndex=-1))}.bind(this)),this._handleCloseEvent=t(document.body,"close",function(){this.set("displayState",x.COLLAPSED),this._handleCloseEvent&&(this._handleCloseEvent.remove(),delete this._handleCloseEvent)}.bind(this)),this._previousFocusNode=document.activeElement,this.domNode.dataset.focus="temporary",this.domNode.tabIndex=0,this.domNode.focus());break;case x.EXPANDED:case x.COLLAPSED:case x.STATIC:this._iframesOnPage&&(this._iframesOnPage.forEach((function(e){e.style.pointerEvents="auto"})),this._iframesOnPage=null),this._handleKeydown&&(this._handleKeydown.remove(),delete this._handleKeydown),this._previousFocusNode&&(this._previousFocusNode=null),this.domNode&&(this.domNode.dataset.focus="refuse",this.domNode.tabIndex=-1),this._handleCloseEvent&&(this._handleCloseEvent.remove(),delete this._handleCloseEvent)}},removeTab:function(e){this._shouldSetSelectedTab=!1,!0===e.get("selected")&&e.set("selected",!1),this.tabContainer.removeChild(e),this._shouldSetSelectedTab=!0},selectTab:function(e){this.tabContainer.selectChild(e),this.set("selectedTab",e.id)},_setQABIdAttr:function(e){var t=f.byId(e);t&&(this._QABWidget=t,a.place(t.domNode,this.QABContainer),this._started&&this._QABWidget.startup(),this.own(t)),this._set("QABId",e)},toolstripPlaced:function(){}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="toolstrip toolstripNode" data-focus="refuse">\n <div data-dojo-attach-point="containerNode" class="tabGroupContainer"></div>\n <div class="topLeftContainer" data-dojo-attach-point="topLeftContainer"></div>\n <div data-dojo-attach-point="toolstripTabContainer"></div>\n <div class="topRightContainer" data-dojo-attach-point="topRightContainer">\n <div class="QABContainer" data-dojo-attach-point="QABContainer"></div><div class="searchContainer" data-dojo-attach-point="searchContainer"></div><div class="searchPopupContainer dijitOffScreen" data-dojo-attach-point="searchPopupContainer"></div><div class="logoutContainer" data-dojo-attach-point="logoutContainer"></div>\n </div>\n <div class="collapseButtonContainer" data-dojo-attach-point="collapseButtonContainer"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(215),i(216),i(316),i(1065),i(1788),i(880),i(353),i(409),i(608),i(789),i(545),i(421),i(259),i(770),i(3077)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){var v=["style","class"];function b(e){e.some(e=>v.indexOf(e.attributeName)>-1)&&this.resize()}var y=e(g.validate([n,o,r,c,d,u,h,p,f,m]),{baseClass:"mwWidget mwTabButton dijitTab",templateString:_,postCreate:function(){this.inherited(arguments),this.mutationObserver=new MutationObserver(b.bind(this)),this.mutationObserver.observe(this.domNode,{attributes:!0,attributeFilter:v});var e=function(e){setTimeout(function(){this.page._emitRemoveEvent()}.bind(this),0)}.bind(this);this.closeNode.addEventListener("click",e);var t=null,i=function(e){1===e.button&&(t=this.domNode,window.addEventListener("mouseup",n,!0))}.bind(this),n=function(i){window.removeEventListener("mouseup",n,!0),t.contains(i.target)&&1===i.button&&e(),t=null};this.domNode.addEventListener("mousedown",i);var o=function(t){46===t.keyCode&&e()};this.focusNode.addEventListener("keyup",o),this.own({remove:function(){this.closeNode.removeEventListener("click",e),this.domNode.removeEventListener("mousedown",i),window.removeEventListener("mouseup",n,!0),this.focusNode.removeEventListener("keyup",o)}.bind(this)})},_setLabelAttr:function(e){this.inherited(arguments),this.set("text",e)},_getLabelAttr:function(e){return this.inherited(arguments),this.get("text")},_setCheckedAttr:function(){this.inherited(arguments),this._setAriaSelected()},_setAriaSelected:function(){var e=this.focusNode?this.focusNode:this.domNode;e.hasAttribute("aria-selected")&&e.setAttribute("aria-selected",this.get("checked"))},resize:function(){this.inherited(arguments),this.textNode.style.textOverflow="clip",this.textNode.offsetWidth<this.textNode.scrollWidth?this.domNode.setAttribute("title",this.get("text")):this.domNode.removeAttribute("title"),this.textNode.style.textOverflow=""},destroy:function(){this.mutationObserver.disconnect(),delete this.mutationObserver,this.inherited(arguments)}});return e(a,{postMixInProperties:function(){this.inherited(arguments),this.controllerWidget=e(s,{buttonWidget:y,resize:function(){},onAddChild:function(e,i){var n=new(t.isString(this.buttonWidget)?t.getObject(this.buttonWidget):this.buttonWidget)({id:this.id+"_"+e.id,name:this.id+"_"+e.id,text:e.title,disabled:e.disabled,ownerDocument:this.ownerDocument,dir:e.dir,lang:e.lang,page:e,removable:e.removable||!1});this.addChild(n,i);var o=e.tag+".tab";n.domNode.setAttribute("data-tag",o),n.domNode.setAttribute("data-type","ToolstripTab"),e.controlButton=n,this._currentChild||this.onSelectChild(e);var r=e._wrapper.getAttribute("aria-labelledby")?e._wrapper.getAttribute("aria-labelledby")+" "+n.id:n.id;e._wrapper.removeAttribute("aria-label"),e._wrapper.setAttribute("aria-labelledby",r),this.getChildren().forEach((function(e){e.resize()}))}})},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=!0;var e=this.selectedChildWidget;e&&this._showChild(e)}var t=this.selectedChildWidget;t&&t.resize()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(217),i(213),i(1314),i(866),i(216),i(3031)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("dijit.layout._TabContainerBase",[o,a],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:!1,nested:!1,templateString:s,postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,""),this.srcNodeRef&&n.set(this.srcNodeRef,"visibility","hidden"),this.inherited(arguments)},buildRendering:function(){this.inherited(arguments),this.tablist=this._makeController(this.tablistNode),this.doLayout||t.add(this.domNode,"dijitTabContainerNoLayout"),this.nested?(t.add(this.domNode,"dijitTabContainerNested"),t.add(this.tablist.containerNode,"dijitTabContainerTabListNested"),t.add(this.tablistSpacer,"dijitTabContainerSpacerNested"),t.add(this.containerNode,"dijitTabPaneWrapperNested")):t.add(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"))},_setupChild:function(e){t.add(e.domNode,"dijitTabPane"),this.inherited(arguments)},startup:function(){this._started||(this.tablist.startup(),this.inherited(arguments))},layout:function(){if(this._contentBox&&void 0!==this._contentBox.l){var e=this.selectedChildWidget;if(this.doLayout){var t=this.tabPosition.replace(/-h/,"");this.tablist.region=t;var n=[this.tablist,{domNode:this.tablistSpacer,region:t},{domNode:this.containerNode,region:"center"}];r.layoutChildren(this.domNode,this._contentBox,n),this._containerContentBox=r.marginBox2contentBox(this.containerNode,n[2]),e&&e.resize&&e.resize(this._containerContentBox)}else{if(this.tablist.resize){var o=this.tablist.domNode.style;o.width="0";var a=i.getContentBox(this.domNode).w;o.width="",this.tablist.resize({w:a})}e&&e.resize&&e.resize()}}},destroy:function(e){this.tablist&&this.tablist.destroy(e),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijitTabContainer">\n\t<div class="dijitTabListWrapper" data-dojo-attach-point="tablistNode"></div>\n\t<div data-dojo-attach-point="tablistSpacer" class="dijitTabSpacer ${baseClass}-spacer"></div>\n\t<div class="dijitTabPaneWrapper ${baseClass}-container" data-dojo-attach-point="containerNode"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(224),i(203),i(210),i(211),i(223),i(204),i(206),i(256),i(238),i(231),i(328),i(216),i(272),i(1315),i(248)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=t("dijit.layout._StackButton",p,{tabIndex:"-1",closeButton:!1,_aria_attr:"aria-selected",buildRendering:function(e){this.inherited(arguments),(this.focusNode||this.domNode).setAttribute("role","tab")}}),g=t("dijit.layout.StackController",[d,u,h],{baseClass:"dijitStackController",templateString:"<span role='tablist' data-dojo-attach-event='onkeydown'></span>",containerId:"",buttonWidget:f,buttonWidgetCloseClass:"dijitStackCloseButton",pane2button:function(e){return c.byId(this.id+"_"+e)},postCreate:function(){this.inherited(arguments),this.own(s.subscribe(this.containerId+"-startup",r.hitch(this,"onStartup")),s.subscribe(this.containerId+"-addChild",r.hitch(this,"onAddChild")),s.subscribe(this.containerId+"-removeChild",r.hitch(this,"onRemoveChild")),s.subscribe(this.containerId+"-selectChild",r.hitch(this,"onSelectChild")),s.subscribe(this.containerId+"-containerKeyDown",r.hitch(this,"onContainerKeyDown"))),this.containerNode.dojoClick=!0,this.own(a(this.containerNode,"click",r.hitch(this,(function(e){var t=c.getEnclosingWidget(e.target);if(t!=this.containerNode&&!t.disabled&&t.page)for(var n=e.target;n!==this.containerNode;n=n.parentNode){if(i.contains(n,this.buttonWidgetCloseClass)){this.onCloseButtonClick(t.page);break}if(n==t.domNode){this.onButtonClick(t.page);break}}}))))},onStartup:function(t){this.textDir=t.textDir,e.forEach(t.children,this.onAddChild,this),t.selected&&this.onSelectChild(t.selected);var i=c.byId(this.containerId).containerNode,n=r.hitch(this,"pane2button"),o={title:"label",showtitle:"showLabel",iconclass:"iconClass",closable:"closeButton",tooltip:"title",disabled:"disabled",textdir:"textdir"},s=function(e,t){return a(i,"attrmodified-"+e,(function(e){var i=n(e.detail&&e.detail.widget&&e.detail.widget.id);i&&i.set(t,e.detail.newValue)}))};for(var l in o)this.own(s(l,o[l]))},destroy:function(e){this.destroyDescendants(e),this.inherited(arguments)},onAddChild:function(e,t){var i=new(r.isString(this.buttonWidget)?r.getObject(this.buttonWidget):this.buttonWidget)({id:this.id+"_"+e.id,name:this.id+"_"+e.id,label:e.title,disabled:e.disabled,ownerDocument:this.ownerDocument,dir:e.dir,lang:e.lang,textDir:e.textDir||this.textDir,showLabel:e.showTitle,iconClass:e.iconClass,closeButton:e.closable,title:e.tooltip,page:e});this.addChild(i,t),e.controlButton=i,this._currentChild||this.onSelectChild(e);var n=e._wrapper.getAttribute("aria-labelledby")?e._wrapper.getAttribute("aria-labelledby")+" "+i.id:i.id;e._wrapper.removeAttribute("aria-label"),e._wrapper.setAttribute("aria-labelledby",n)},onRemoveChild:function(e){this._currentChild===e&&(this._currentChild=null);var t=this.pane2button(e.id);t&&(this.removeChild(t),t.destroy()),delete e.controlButton},onSelectChild:function(e){if(e){if(this._currentChild){var t=this.pane2button(this._currentChild.id);t.set("checked",!1),t.focusNode.setAttribute("tabIndex","-1")}var i=this.pane2button(e.id);i.set("checked",!0),this._currentChild=e,i.focusNode.setAttribute("tabIndex","0");c.byId(this.containerId)}},onButtonClick:function(e){var t=this.pane2button(e.id);l.focus(t.focusNode),this._currentChild&&this._currentChild.id===e.id&&t.set("checked",!0),c.byId(this.containerId).selectChild(e)},onCloseButtonClick:function(e){if(c.byId(this.containerId).closeChild(e),this._currentChild){var t=this.pane2button(this._currentChild.id);t&&l.focus(t.focusNode||t.domNode)}},adjacent:function(t){this.isLeftToRight()||this.tabPosition&&!/top|bottom/.test(this.tabPosition)||(t=!t);var i,n=this.getChildren(),o=e.indexOf(n,this.pane2button(this._currentChild.id)),r=n[o];do{i=n[o=(o+(t?1:n.length-1))%n.length]}while(i.disabled&&i!=r);return i},onkeydown:function(e,t){if(!this.disabled&&!e.altKey){var i=null;if(e.ctrlKey||!e._djpage){switch(e.keyCode){case o.LEFT_ARROW:case o.UP_ARROW:e._djpage||(i=!1);break;case o.PAGE_UP:e.ctrlKey&&(i=!1);break;case o.RIGHT_ARROW:case o.DOWN_ARROW:e._djpage||(i=!0);break;case o.PAGE_DOWN:e.ctrlKey&&(i=!0);break;case o.HOME:for(var n=this.getChildren(),r=0;r<n.length;r++){if(!(a=n[r]).disabled){this.onButtonClick(a.page);break}}e.stopPropagation(),e.preventDefault();break;case o.END:for(r=(n=this.getChildren()).length-1;r>=0;r--){var a;if(!(a=n[r]).disabled){this.onButtonClick(a.page);break}}e.stopPropagation(),e.preventDefault();break;case o.DELETE:case"W".charCodeAt(0):this._currentChild.closable&&(e.keyCode==o.DELETE||e.ctrlKey)&&(this.onCloseButtonClick(this._currentChild),e.stopPropagation(),e.preventDefault());break;case o.TAB:e.ctrlKey&&(this.onButtonClick(this.adjacent(!e.shiftKey).page),e.stopPropagation(),e.preventDefault())}null!==i&&(this.onButtonClick(this.adjacent(i).page),e.stopPropagation(),e.preventDefault())}}},onContainerKeyDown:function(e){e.e._djpage=e.page,this.onkeydown(e.e)}});return g.StackButton=f,g}),e,t),e.exports=o},function(e,t){e.exports='<span class="dijit dijitReset dijitInline" role="presentation"\n\t><span class="dijitReset dijitInline dijitButtonNode"\n\t\tdata-dojo-attach-event="ondijitclick:__onClick" role="presentation"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point="titleNode,focusNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon" data-dojo-attach-point="iconNode"></span\n\t\t\t><span class="dijitReset dijitToggleButtonIconChar">&#x25CF;</span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tid="${id}_label"\n\t\t\t\tdata-dojo-attach-point="containerNode"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen"\n\t\tdata-dojo-attach-event="onclick:_onClick"\n\t\ttabIndex="-1" aria-hidden="true" data-dojo-attach-point="valueNode"\n/></span>\n'},function(e,t,i){var n,o;n=[i(203),i(228)],o=i.dj.d(n,(function(e,t){return e("dijit.form._ToggleButtonMixin",null,{checked:!1,_aria_attr:"aria-pressed",_onClick:function(e){var t=this.checked;this._set("checked",!t);var i=this.inherited(arguments);return this.set("checked",i?this.checked:t),i},_setCheckedAttr:function(e,i){this._set("checked",e);var n=this.focusNode||this.domNode;this._created&&t.get(n,"checked")!=!!e&&t.set(n,"checked",!!e),n.setAttribute(this._aria_attr,String(e)),this._handleOnChange(e,i)},postCreate:function(){this.inherited(arguments);var e=this.focusNode||this.domNode;this.checked&&e.setAttribute("checked","checked"),void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.checked)},reset:function(){this._hasBeenBlurred=!1,this.set("checked",this.params.checked||!1)}})}),e,t),e.exports=o},function(e,t){e.exports='<div role="presentation" data-dojo-attach-point="titleNode,innerDiv,tabContent" class="dijitTabInner dijitTabContent">\n\t<span role="presentation" class="dijitInline dijitIcon dijitTabButtonIcon" data-dojo-attach-point="iconNode"></span>\n\t<span data-dojo-attach-point=\'containerNode,focusNode\' class=\'tabLabel\'></span>\n\t<span class="dijitInline dijitTabCloseButton dijitTabCloseIcon" data-dojo-attach-point=\'closeNode\'\n\t\t role="presentation">\n\t\t<span data-dojo-attach-point=\'closeText\' class=\'dijitTabCloseText\'>[x]</span\n\t\t\t\t></span>\n</div>\n'},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Odustani",buttonSave:"Spremi",itemClose:"Zatvori"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Откажи",buttonSave:"Зачувај",itemClose:"Затвори"}},function(e,t,i){e.exports={buttonOk:"U redu",buttonCancel:"Otkaži",buttonSave:"Sačuvaj",itemClose:"Zatvori"}},function(e,t,i){e.exports={buttonOk:"确定",buttonCancel:"取消",buttonSave:"保存",itemClose:"关闭"}},function(e,t,i){e.exports={buttonOk:"確定",buttonCancel:"取消",buttonSave:"儲存",itemClose:"關閉"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Скасувати",buttonSave:"Зберегти",itemClose:"Закрити"}},function(e,t,i){e.exports={buttonOk:"Tamam",buttonCancel:"İptal",buttonSave:"Kaydet",itemClose:"Kapat"}},function(e,t,i){e.exports={buttonOk:"ตกลง",buttonCancel:"ยกเลิก",buttonSave:"บันทึก",itemClose:"ปิด"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Avbryt",buttonSave:"Spara",itemClose:"Stäng"}},function(e,t,i){e.exports={buttonOk:"V redu",buttonCancel:"Prekliči",buttonSave:"Shrani",itemClose:"Zapri"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Zrušiť",buttonSave:"Uložiť",itemClose:"Zatvoriť"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Отмена",buttonSave:"Сохранить",itemClose:"Закрыть"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Anulare",buttonSave:"Salvare",itemClose:"Închidere"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Cancelar",buttonSave:"Salvar",itemClose:"Fechar"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Cancelar",buttonSave:"Guardar",itemClose:"Fechar"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Anuluj",buttonSave:"Zapisz",itemClose:"Zamknij"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Annuleren",buttonSave:"Opslaan",itemClose:"Sluiten"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Avbryt",buttonSave:"Lagre",itemClose:"Lukk"}},function(e,t,i){e.exports={buttonOk:"확인",buttonCancel:"취소",buttonSave:"저장",itemClose:"닫기"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Болдырмау",buttonSave:"Сақтау",itemClose:"Жабу"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"キャンセル",buttonSave:"保存",itemClose:"閉じる"}},function(e,t,i){e.exports={buttonOk:"Ok",buttonCancel:"Annulla",buttonSave:"Salva",itemClose:"Chiudi"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Batal",buttonSave:"Simpan",itemClose:"Tutup"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Mégse",buttonSave:"Mentés",itemClose:"Bezárás"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Opoziv",buttonSave:"Spremi",itemClose:"Zatvori"}},function(e,t,i){e.exports={buttonOk:"אישור",buttonCancel:"ביטול",buttonSave:"שמירה",itemClose:"סגירה"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Annuler",buttonSave:"Enregistrer",itemClose:"Fermer"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Peruuta",buttonSave:"Tallenna",itemClose:"Sulje"}},function(e,t,i){e.exports={buttonOk:"Ados",buttonCancel:"Utzi",buttonSave:"Gorde",itemClose:"Itxi"}},function(e,t,i){e.exports={buttonOk:"Aceptar",buttonCancel:"Cancelar",buttonSave:"Guardar",itemClose:"Cerrar"}},function(e,t,i){e.exports={buttonOk:"ΟΚ",buttonCancel:"Ακύρωση",buttonSave:"Αποθήκευση",itemClose:"Κλείσιμο"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Abbrechen",buttonSave:"Speichern",itemClose:"Schließen"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Annullér",buttonSave:"Gem",itemClose:"Luk"}},function(e,t,i){e.exports={buttonOk:"OK",buttonCancel:"Storno",buttonSave:"Uložit",itemClose:"Zavřít"}},function(e,t,i){e.exports={buttonOk:"D'acord",buttonCancel:"Cancel·la",buttonSave:"Desa",itemClose:"Tanca"}},function(e,t,i){e.exports={buttonOk:"ОК",buttonCancel:"Отмени",buttonSave:"Запази",itemClose:"Затвори"}},function(e,t,i){e.exports={buttonOk:"Ok",buttonCancel:"Ləğv et",buttonSave:"Saxla",itemClose:"Bağla"}},function(e,t,i){e.exports={buttonOk:"حسنا",buttonCancel:"الغاء",buttonSave:"حفظ",itemClose:"اغلاق"}},function(e,t,i){e.exports={root:{buttonOk:"OK",buttonCancel:"Cancel",buttonSave:"Save",itemClose:"Close"},bs:!0,mk:!0,sr:!0,zh:!0,"zh-tw":!0,uk:!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,id:!0,hu:!0,hr:!0,he:!0,fr:!0,fi:!0,eu:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,bg:!0,az:!0,ar:!0}},function(e,t){e.exports='<div class="dijitTabListContainer-${tabPosition}" style="visibility:hidden">\n\t<div data-dojo-type="dijit.layout._ScrollingTabControllerMenuButton"\n\t\t class="tabStripButton-${tabPosition}"\n\t\t id="${id}_menuBtn"\n\t\t data-dojo-props="containerId: \'${containerId}\', iconClass: \'dijitTabStripMenuIcon\',\n\t\t\t\t\tdropDownPosition: [\'below-alt\', \'above-alt\']"\n\t\t data-dojo-attach-point="_menuBtn" showLabel="false" title="">&#9660;</div>\n\t<div data-dojo-type="dijit.layout._ScrollingTabControllerButton"\n\t\t class="tabStripButton-${tabPosition}"\n\t\t id="${id}_leftBtn"\n\t\t data-dojo-props="iconClass:\'dijitTabStripSlideLeftIcon\', showLabel:false, title:\'\'"\n\t\t data-dojo-attach-point="_leftBtn" data-dojo-attach-event="onClick: doSlideLeft">&#9664;</div>\n\t<div data-dojo-type="dijit.layout._ScrollingTabControllerButton"\n\t\t class="tabStripButton-${tabPosition}"\n\t\t id="${id}_rightBtn"\n\t\t data-dojo-props="iconClass:\'dijitTabStripSlideRightIcon\', showLabel:false, title:\'\'"\n\t\t data-dojo-attach-point="_rightBtn" data-dojo-attach-event="onClick: doSlideRight">&#9654;</div>\n\t<div class=\'dijitTabListWrapper\' data-dojo-attach-point=\'tablistWrapper\'>\n\t\t<div role=\'tablist\' data-dojo-attach-event=\'onkeydown:onkeydown\'\n\t\t\t data-dojo-attach-point=\'containerNode\' class=\'nowrapTabStrip\'></div>\n\t</div>\n</div>'},function(e,t){e.exports='<div data-dojo-attach-event="ondijitclick:_onClick" class="dijitTabInnerDiv dijitTabContent dijitButtonContents" data-dojo-attach-point="focusNode" role="button">\n\t<span role="presentation" class="dijitInline dijitTabStripIcon" data-dojo-attach-point="iconNode"></span>\n\t<span data-dojo-attach-point="containerNode,titleNode" class="dijitButtonText"></span>\n</div>'},function(e,t){e.exports='<div class="dijitTabInner dijitTabContent" role="presentation"\n ><span data-dojo-attach-point=\'focusNode,textNode,\' class=\'mwTabButtonTextNode tabLabel\' tabindex="0" role="tab" aria-selected="false"></span\n\t><span data-dojo-attach-point=\'closeNode\' class="mwTabButtonCloseNode"></span\n></div>'},function(e,t){e.exports='<div data-dojo-attach-point="textNode" data-refuse-key-nav="true"></div>\n'},function(e,t,i){e.exports={createCallback:function(e,t,i){var n,o,r,a=0;return void 0===i&&(i=200),function(s){(s.target!==o||Date.now()-r>=i)&&(a=0),1===(a+=1)?(o=s.target,r=Date.now(),n=setTimeout((function(){a=0,e(s)}),i)):2===a&&(clearTimeout(n),a=0,o=void 0,r=void 0,s.syntheticEvent||t(s))}}}},function(e,t,i){var n,o;n=[i(218),i(220),i(3081)],o=i.dj.d(n,(function(e,t){return t(e,"mw-notifications/l10n/nls/NotificationsResources",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{errorIconAltText:"Error Icon",warningIconAltText:"Warning Icon",infoIconAltText:"Information Icon",questionIconAltText:"Question Icon",successIconAltText:"Success Icon"}}},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(228),i(204),i(614)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i],{templateString:'<div class="${baseClass}" style="display:none;"><div class="${baseClass}Container" data-dojo-attach-point="containerNode"><div class="${baseClass}Title" data-dojo-attach-point="titleNode">${!title}</div><div class="${baseClass}Content" data-dojo-attach-point="contentNode"></div></div></div>',baseClass:"mwBanner","data-test-id":"",title:"Banner Title",content:"This is the Banner Content Area",duration:4e3,wipeInDuration:500,wipeOutDuration:350,_hideTimer:0,isVisible:!1,onHide:function(){},postCreate:function(){n.set(this.domNode,"data-test-id",this["data-test-id"])},_setContentAttr:function(e){o.isString(e)?this.contentNode.innerHTML=e:(e.placeAt(this.contentNode),e.startup())},show:function(){if(this.isVisible||(this.set("isVisible",!0),r.wipeIn({node:this.domNode,duration:this.wipeInDuration}).play()),this.duration>0){var e=setTimeout(o.hitch(this,this.hide),this.duration);this.set("_hideTimer",e)}},hide:function(){this.isVisible&&(this.set("isVisible",!1),clearTimeout(this._hideTimer),r.wipeOut({node:this.domNode,duration:this.wipeOutDuration,onEnd:this.onHide}).play())}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(210),i(213),i(221),i(223),i(206),i(248),i(568),i(1789),i(3088),i(3089),i(772),i(3090),i(869),i(3091),i(3092),i(3094)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c,d,u,h,p,f,g,m){var _=function(){function _(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),this._eventSignals=[],this.domNode=this._createDomNodes({id:e.id,dialogType:e.dialogType,role:e.role,uuid:e.uuid}),this.domNode.widget=this,this._buildDialog(e),this._renderDialog(e.title),this._show(),this}return r(_,[{key:"addButtonEventListener",value:function(e,t,i){f.addButtonEventListener(this,e,t,i)}},{key:"enableButton",value:function(e){f.enableButton(this,e)}},{key:"disableButton",value:function(e){f.disableButton(this,e)}},{key:"on",value:function(e,t){var i=o(this.domNode,e,t);this._eventSignals.push(i)}},{key:"close",value:function(){o.emit(this.domNode,"close",{bubbles:!1,cancelable:!0}),this.destroy()}},{key:"destroy",value:function(){if(this.domNode){o.emit(this.domNode,"restorefocus",{bubbles:!0}),this._isModal?(m.removePrevent(this),this._allModalDialogs.splice(this._allModalDialogs.indexOf(this),1)):this._allModelessDialogs.splice(this._allModelessDialogs.indexOf(this),1),this._focusHandle&&this._focusHandle.unwatch(),this._eventSignals.forEach((function(e){e.remove()})),this._eventSignals=[];var e=void 0;for(e in this._buttonEventHandlers)this._buttonEventHandlers[e].remove();if(this._buttonEventHandlers={},this._resizeEventSignals&&u.disable(this),this._contentWidget&&this._contentWidget.destroyRecursive(),document.body.removeChild(this.domNode),!0===this._isModal){document.body.removeChild(this._underlay);var t=this._allModalDialogs;t.length>1&&t.sort((function(e,t){return e.domNode.style.zIndex-t.domNode.style.zIndex})),t.length>=1&&(t[t.length-1]._underlay.style.opacity=1)}for(e in this)this.hasOwnProperty(e)&&delete this[e]}}},{key:"moveTo",value:function(e){c.moveTo(this,e)}},{key:"resizeTo",value:function(e){c.resizeTo(this,e)}},{key:"bringToTop",value:function(){var t=[],i=this;if(this._isModal)(t=this._allModalDialogs.filter((function(e){return e!==i}),this)).sort((function(e,t){return e.domNode.style.zIndex-t.domNode.style.zIndex})),t.push(this),t.forEach((function(n,o){n.domNode.style.zIndex=i._startZ+2*o,n._underlay.style.zIndex=n.domNode.style.zIndex-1,o!==t.length-1&&(n._underlay.style.opacity=0),e.remove(n.domNode,"mwModalDialogFg")}),this),e.add(this.domNode,"mwModalDialogFg");else{t=this._allModelessDialogs.filter((function(e){return e!==i}),this);var n=document.getElementsByClassName("mwNonModalDialog");n.length>0&&(n=(n=Array.prototype.slice.call(n)).map((function(e){return{domNode:e}})),t=t.concat(n)),t.sort((function(e,t){return e.domNode.style.zIndex-t.domNode.style.zIndex})),t.push(this),t.forEach((function(t,o){t.domNode.style.zIndex=i._startZ+2*o,e.remove(t.domNode,"mwModelessDialogFg"),n.length>0&&e.remove(t.domNode,"dojoxFloatingPaneFg")}),this),e.add(this.domNode,"mwModelessDialogFg")}}},{key:"_show",value:function(){t.set(this.domNode,"visibility","visible"),this.moveTo(this._specifiedPosition),h.focus(this),this._contentWidget&&this._contentWidget.startup(),o.emit(this.domNode,"show",{bubbles:!1,cancelable:!0})}},{key:"_trackEventListener",value:function(e){return this._eventSignals.push(e),e}},{key:"_removeEventListener",value:function(e){var t=this._eventSignals.indexOf(e);t>-1&&(this._eventSignals.splice(t,1),e.remove())}},{key:"_createDomNodes",value:function(e){var t=e.dialogType,i=e.id,n=e.role,o=e.uuid,r=document.createElement("div");r.id=i,r.className="mwDialog",r.tabIndex="0","modal"===t?(r.setAttribute("aria-modal",!0),n=n===l.ALERT_DIALOG?n:l.DIALOG):(r.setAttribute("aria-modal",!1),n=l.DIALOG),r.setAttribute("role",n);var a=this._titleBar=document.createElement("div");a.className="mwDialogTitleBar",a.setAttribute("data-test-id","dialog-title-bar");var s=this._titleBar._titleNode=document.createElement("span");s.className="mwTitleNode",s.id="dialogTitle_"+o,s.setAttribute("data-test-id","dialog-title-node");var c=this._contentArea=document.createElement("div");return c.id="dialogContent_"+o,c.className="mwDialogBody",c.setAttribute("data-test-id","dialog-content-area"),a.appendChild(s),r.appendChild(a),r.appendChild(c),r.setAttribute("aria-labelledby",s.id),r.setAttribute("aria-describedby",c.id),r}},{key:"_buildDialog",value:function(t){var i=this;if(this.domNode.setAttribute("data-focus","temporary"),t.className&&e.add(this.domNode,t.className),!t.hideCloseButton){var r=this._closeNode=document.createElement("span");r.className="mwCloseNode",r.title=s.close,r.setAttribute("tabindex","0"),r.setAttribute("role","button"),r.setAttribute("data-test-id","dialog-close-node");var a=this._closeSVG=document.createElement("span");a.className="mwCloseSVG",r.appendChild(a),this._titleBar.appendChild(r),this._trackEventListener(o(r,"click",(function(){i.close()})))}if(t.closeOnEscape&&this.on("keydown",(function(e){e.keyCode===n.ESCAPE&&(i.close(),p(e))})),t.content&&(this._contentWidget=new g({widget:t.content,contentArea:this._contentArea}),c.selectionWithinDialogBounds(this)),t.buttons&&Array.isArray(t.buttons)&&t.buttons.length>0){var l=f.createButtonBar(this,t.buttons,t.defaultActionButton);this.domNode.appendChild(l)}else e.add(this._contentArea,"mwNoButtons");if("modal"===t.dialogType){this._isModal=!0,this._startZ=this._modalDialogBeginZIndex,e.add(this.domNode,"mwModalDialog");var d=document.createElement("div");d.className="mwUnderlay",document.body.appendChild(d),this._underlay=d,m.prevent(this)}else this._startZ=this._modelessDialogBeginZIndex,e.add(this.domNode,"mwModelessDialog");t["data-test-id"]&&this.domNode.setAttribute("data-test-id",t["data-test-id"]),t.bindingNode&&(this._bindingNode=t.bindingNode),t.position&&(this._specifiedPosition=t.position),t.specifiedFocusItem&&(this.specifiedFocusItem=t.specifiedFocusItem),this._addControllers(t)}},{key:"_renderDialog",value:function(e){document.body.appendChild(this.domNode),this._isModal?this._allModalDialogs.push(this):this._allModelessDialogs.push(this),this._buttonBar&&t.get(this.domNode,"min-width")<this._buttonBar._buttonBarWidth&&t.set(this.domNode,"min-width",this._buttonBar._buttonBarWidth+"px"),t.get(this.domNode,"width")>document.documentElement.clientWidth?t.set(this.domNode,"width",document.documentElement.clientWidth+"px"):t.set(this.domNode,"width",t.get(this.domNode,"width")+"px"),t.get(this.domNode,"height")>document.documentElement.clientHeight?t.set(this.domNode,"height",document.documentElement.clientHeight+"px"):t.set(this.domNode,"height",t.get(this.domNode,"height")+"px"),this.title=e}},{key:"_addControllers",value:function(t){var i=this,n=this;this._scrollWheelListener=null,t.draggable?d.draggable({dialog:this,bindingNode:this._bindingNode}):this._titleBar.style.cursor="default",t.resizable&&(u.enable({widget:this,bindingNode:this._bindingNode}),this._resizeHandlers.forEach((function(e){n._resizeEventSignals.push(o(e,a.press,(function(){n.bringToTop()})))})),this._resizeEventSignals.push(o(this.domNode,u.resizeEvent,(function(t){n._isCenter=!1,n._specifiedPosition={x:t.dimension.x,y:t.dimension.y},n._resolveScrollBar(),n._titleBar._titleNode.offsetWidth<n._titleBar._titleNode.scrollWidth?n._titleBar._titleNode.title=n.title:n._titleBar._titleNode.title="",n._contentArea.scrollHeight>n._contentArea.clientHeight?e.add(i._contentArea,"mwOverflow"):e.remove(i._contentArea,"mwOverflow")})))),this.on(a.press,(function(){n.bringToTop()})),this._resolveScrollBar(),c.addScrollHandler(this),c.addBrowserResizeHandler(this)}},{key:"_resolveScrollBar",value:function(){this._contentArea.scrollHeight-this._contentArea.clientHeight>0?(this._contentArea.offsetWidth-this._contentArea.scrollWidth>0&&t.set(this._contentArea,"padding-right",this._standardContentPadding-(this._contentArea.offsetWidth-this._contentArea.scrollWidth)+"px"),this._scrollWheelListener||(this._scrollWheelListener=this._trackEventListener(function(e){return o(e,i("mozilla")?"DOMMouseScroll":"mousewheel",(function(t){var i="DOMMouseScroll"===t.type?-40*t.detail:t.wheelDelta,n=i>0;!n&&-i>e.scrollHeight-e.clientHeight-e.scrollTop?(e.scrollTop=e.scrollHeight,p(t)):n&&i>e.scrollTop&&(e.scrollTop=0,p(t))}))}(this._contentArea)))):(t.set(this._contentArea,"padding-right",this._standardContentPadding+"px"),this._scrollWheelListener&&(this._removeEventListener(this._scrollWheelListener),this._scrollWheelListener=null))}},{key:"title",set:function(e){this._titleText="",e&&"string"==typeof e&&(this._titleText=e),this._titleBar._titleNode.textContent=this._titleText,this._titleBar._titleNode.offsetWidth<this._titleBar._titleNode.scrollWidth&&(this._titleBar._titleNode.title=this._titleText)},get:function(){return this._titleText}}],[{key:"numberOfOpenDialogs",value:function(){var e={};return e.modal=_.prototype._allModalDialogs.length,e.modeless=_.prototype._allModelessDialogs.length,e}}]),_}();return _.prototype._modalDialogBeginZIndex=950,_.prototype._modelessDialogBeginZIndex=100,_.prototype._standardContentPadding=20,_.prototype._allModalDialogs=[],_.prototype._allModelessDialogs=[],_}),e,t),e.exports=o},function(e,t,i){e.exports={ok:"OK",cancel:"キャンセル",switchPanes:"ウィンドウの切り替え",close:"閉じる",yes:"はい",no:"いいえ",help:"ヘルプ",submit:"送信",save:"保存",find:"検索",create:"作成",dontSave:"保存しない",apply:"適用",revert:"元に戻す"}},function(e,t,i){e.exports={ok:"확인",cancel:"취소",switchPanes:"창 전환",close:"닫기",yes:"예",no:"아니요",help:"도움말",submit:"제출",save:"저장",find:"찾기",create:"만들기",dontSave:"저장 안 함",apply:"적용",revert:"되돌리기"}},function(e,t,i){e.exports={ok:"确定",cancel:"取消",switchPanes:"切换窗口",close:"关闭",yes:"是",no:"否",help:"帮助",submit:"提交",save:"保存",find:"查找",create:"创建",dontSave:"不保存",apply:"应用",revert:"还原"}},function(e,t,i){e.exports={root:{ok:"OK",cancel:"Cancel",switchPanes:"Switch Windows",close:"Close",yes:"Yes",no:"No",help:"Help",submit:"Submit",save:"Save",find:"Find",create:"Create",dontSave:"Don't Save",apply:"Apply",revert:"Revert"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(217),i(206),i(279),i(869)],o=i.dj.d(n,(function(e,t,i,n){var o=function(e,t,i,n,o){var r={};return o?(r.l=Math.max(o.x,Math.min(o.x+t.x,o.x+o.w-i.w)),r.t=Math.max(o.y,Math.min(o.y+t.y,o.y+o.h-i.h)),e._specifiedPosition={x:r.l-o.x,y:r.t-o.y}):(r.l=Math.max(0,Math.min(t.x,n.w-i.w)),r.t=Math.max(0,Math.min(t.y,n.h-i.h)),e._specifiedPosition={x:r.l,y:r.t}),e._isCenter=!1,r},a=function(e,t,i,n,o){var r={};return o?(i.w>=o.x+o.w||i.w>=n.w-o.x||i.w>=o.w?r.l=Math.max(0,o.x):r.l=(o.x>=0?o.x:0)+(o.x+o.w<=n.w?o.w/2:(n.w-o.x)/2)-i.w/2,i.h>=o.y+o.h||i.h>=n.h-o.y||i.h>=o.h?r.t=Math.max(0,o.y):r.t=(o.y>=0?o.y:0)+(o.y+o.h<=n.h?o.h/2:(n.h-o.y)/2)-i.h/2):(r.l=Math.max(0,n.w/2-i.w/2),r.t=Math.max(0,n.h/2-i.h/2)),e._isCenter=!0,r},s=function(e,t,i,n,o,r,a){var s={};return a?(s.l=Math.max(a.x,Math.min(t.x-i+n,a.x+a.w-t.w)),s.t=Math.max(a.y,Math.min(t.y-o+r,a.y+a.h-t.h))):(s.l=t.x,s.t=t.y),s},l=function(e,t,i,n){var o={};return n?e._isCenter?(o.l=Math.max(0,Math.max(n.x,Math.min(i.w-t.w,Math.min(n.x+n.w/2-t.w/2,n.x+n.w-t.w)))),o.t=Math.max(0,Math.max(n.y,Math.min(i.h-t.h,Math.min(n.y+n.h/2-t.h/2,n.y+n.h-t.h))))):(o.l=Math.max(0,Math.max(n.x,Math.min(i.w-t.w,Math.min(e._specifiedPosition.x+n.x,n.x+n.w-t.w)))),o.t=Math.max(0,Math.max(n.y,Math.min(i.h-t.h,Math.min(e._specifiedPosition.y+n.y,n.y+n.h-t.h))))):e._isCenter?(o.l=Math.max(0,Math.min(i.w/2-t.w/2,i.w-t.w)),o.t=Math.max(0,Math.min(i.h/2-t.h/2,i.h-t.h))):(o.l=Math.max(0,Math.min(e._specifiedPosition.x,i.w-t.w)),o.t=Math.max(0,Math.min(e._specifiedPosition.y,i.h-t.h))),o};return{moveTo:function(t,n){var s=e.position(t.domNode),l={},c=i.getBox();if("object"===r(t._bindingNode)){var d=e.position(t._bindingNode);l=n?o(t,n,s,c,d):a(t,0,s,c,d)}else l=n?o(t,n,s,c):a(t,0,s,c);t.domNode.style.left=l.l+"px",t.domNode.style.top=l.t+"px"},resizeTo:function(e,t){if(e.domNode){var i=t.heightUnits||"px",n=t.widthUnits||"px";this._isValidUnit(i)&&this._isValidUnit(n)&&(t.height&&(e.domNode.style.height=""+t.height+i),t.width&&(e.domNode.style.width=""+t.width+n))}},addScrollHandler:function(i){var n=window.pageYOffset,o=window.pageXOffset;i._trackEventListener(t(document,"scroll",(function(){var t=window.pageYOffset,a=window.pageXOffset,l=e.position(i.domNode),c={};if("object"===r(i._bindingNode)){var d=e.position(i._bindingNode);c=s(0,l,a,o,t,n,d)}else c=s(0,l,a,o,t,n);i.domNode.style.left=c.l+"px",i.domNode.style.top=c.t+"px",n=t,o=a})))},addBrowserResizeHandler:function(n){n._trackEventListener(t(window,"resize",(function(){var t=e.position(n.domNode),o=i.getBox(),a={};if("object"===r(n._bindingNode)){var s=e.position(n._bindingNode);a=l(n,t,o,s)}else a=l(n,t,o);n.domNode.style.left=a.l+"px",n.domNode.style.top=a.t+"px"})))},selectionWithinDialogBounds:function(e){var i=void 0;e._trackEventListener(t(document,"mousedown",(function(t){t.target===e._contentWidget.domNode&&(i=!0)}))),e._trackEventListener(t(document,"mouseup",(function(){i=!1}))),e._trackEventListener(t(document,"mousemove",(function(t){i&&t.target!==e._contentWidget.domNode&&n(t)})))},_isValidUnit:function(e){return["px"].some((function(t){return t===e}))}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(217),i(206),i(279),i(869)],o=i.dj.d(n,(function(e,t,i,n){var o=function(e,t,i,n,o,r){var a={};return r?(o.yLocked?a.t=e.y:a.t=Math.max(0,Math.max(r.y,Math.min(t.h-e.h,Math.min(i.pageY-n.y,r.y+r.h-e.h)))),o.xLocked?a.l=e.x:a.l=Math.max(0,Math.max(r.x,Math.min(t.w-e.w,Math.min(i.pageX-n.x,r.x+r.w-e.w))))):(a.l=Math.max(0,Math.min(i.pageX-n.x,t.w-e.w)),a.t=Math.max(0,Math.min(i.pageY-n.y,t.h-e.h))),a};return{dragEvent:"move",draggable:function(a){var s=this,l=a.dialog,c=a.bindingNode,d=l._titleBar,u=!1,h={x:0,y:0},p={l:0,t:0},f={xLocked:!1,yLocked:!1},g=void 0,m=void 0,_=void 0;l._trackEventListener(t(d,"mousedown",(function(t){l.bringToTop(),0===t.button&&t.target!==l._closeSVG&&t.target!==l._closeNode&&(n(t),u=!0,m=i.getBox(),g=e.position(l.domNode),"object"===(void 0===c?"undefined":r(c))&&(_=e.position(c),f.xLocked=g.w>=_.x+_.w||g.w>=m.w-_.x||g.w>=_.w,f.yLocked=g.h>=_.y+_.h||g.h>=m.h-_.y||g.h>=_.h),h.x=t.pageX-g.x,h.y=t.pageY-g.y)}))),l._trackEventListener(t(document,"mouseup",(function(){u=!1}))),l._trackEventListener(t(document,"mousemove",(function(i){if(u){if(!i.synthetic&&1!=(1&i.buttons))return;n(i),g=e.position(l.domNode),"object"===(void 0===c?"undefined":r(c))?(p=o(g,m,i,h,f,_),l._specifiedPosition={x:p.l-_.x,y:p.t-_.y}):(p=o(g,m,i,h),l._specifiedPosition={x:p.l,y:p.t}),l.domNode.style.left=p.l+"px",l.domNode.style.top=p.t+"px",l._isCenter=!1,t.emit(l.domNode,s.dragEvent,{bubbles:!1,position:{x:p.l,y:p.t}})}})))}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(206),i(227),i(228),i(210),i(223),i(225),i(650),i(238),i(209),i(273),i(869)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c,d,u){var h="text",p="checkbox",f="radio";return{_activeClass:"active",_focusedClass:"focused",_defaultButtonClass:"mwDefaultButton",focus:function(o){var r=this,a=this,c=0,d=0;o._firstFocusItem=null,o._lastFocusItem=null,this._getFocusItems(o),o._focusHandle=l.watch("curNode",(function(e,i,l){if(null===l)o._defaultButton&&(n.remove(o._defaultButton,a._defaultButtonClass),n.remove(o._defaultButton,a._activeClass)),i&&n.remove(i,a._activeClass),n.remove(o.domNode,a._focusedClass);else{var u=a._isPopupDescendant(l,o._contentArea);u&&s.isFocusable(l)?(o._latestFocusedItem=u,n.add(o.domNode,a._focusedClass)):o._contentArea&&t.isDescendant(l,o._contentArea)&&s.isFocusable(l)?(o._latestFocusedItem=l,o._defaultButton&&n.add(o._defaultButton,a._defaultButtonClass),n.add(o.domNode,a._focusedClass)):o._buttonBar&&t.isDescendant(l,o._buttonBar)&&s.isFocusable(l)?(o._latestFocusedItem=l,o._defaultButton&&n.remove(o._defaultButton,a._defaultButtonClass),n.add(o.domNode,a._focusedClass)):o._closeNode&&l===o._closeNode?(o._latestFocusedItem=o._closeNode,n.add(o.domNode,a._focusedClass)):o._firstFocusItem?n.remove(o.domNode,a._focusedClass):(o._latestFocusedItem=l,n.add(o.domNode,a._focusedClass))}if(o._isModal&&l&&o.domNode&&o.domNode.classList.contains("mwModalDialogFg")&&l.ownerDocument===o.domNode.ownerDocument){do{if(l===o.domNode||n.contains(l,"dijitPopup"))return;l=l.parentNode}while(l);if(++d>5)return;c||(c=setTimeout((function(){d=0,c=0}),1e3)),r._forceFocusInModalDialog(o)}})),o._underlay&&o._trackEventListener(e(o._underlay,"click",(function(){r._forceFocusInModalDialog(o)}))),this.focusItem(o),o.on("click",(function(){r._getFocusItems(o),o._latestFocusedItem&&o._latestFocusedItem!==o.domNode&&"true"!==i.get(o._latestFocusedItem,"aria-disabled")?l.focus(o._latestFocusedItem):o._firstFocusItem?l.focus(o._firstFocusItem):l.focus(o.domNode)})),o._keyDownReady=!1,o.on("keydown",(function(e){a._onKeyDown(e,o)})),o.on("keyup",(function(e){a._onKeyUp(e,o)}))},_forceFocusInModalDialog:function(e){window.requestAnimationFrame((function(){e._firstFocusItem?l.focus(e._latestFocusedItem):l.focus(e.domNode)}))},_getFocusItems:function(e){e._firstFocusItem=(e._contentArea?s.getFirstInTabbingOrder(e._contentArea):void 0)||(e._buttonBar?s.getFirstInTabbingOrder(e._buttonBar):void 0)||e._closeNode,e._lastFocusItem=s.getLastInTabbingOrder(e.domNode)||e._firstFocusItem},_isPopupDescendant:function(e,t){try{for(var o=null;e;){if(n.contains(e,"dijitPopup")){var r=i.get(e,"dijitPopupParent");r&&(o=e=document.getElementById(r))}if(e===t)return o;e=e.parentNode}}catch(e){}return!1},focusItem:function(e){if(e.bringToTop(),e.specifiedFocusItem){var i=void 0;if("object"===r(e.specifiedFocusItem)){var n="span[data-test-id="+e.specifiedFocusItem["data-test-id"]+"]";(i=e.domNode.querySelector(n))||(e._firstFocusItem=e._buttonBar?s.getFirstInTabbingOrder(e._buttonBar):e._closeNode?e._closeNode:void 0)}else i=t.byId(e.specifiedFocusItem);if(null===i)c.log("specifiedFocusItem couldn't be found"),this._focusDefaultItem(e);else if(t.isDescendant(i,e.domNode))if(s.isFocusable(i))l.focus(i);else{var o=s.getFirstInTabbingOrder(i);void 0!==o?l.focus(o):(c.log("specifiedFocusItem is not focusable"),this._focusDefaultItem(e))}else c.log("specifiedFocusItem should be an id"),this._focusDefaultItem(e)}else this._focusDefaultItem(e)},_focusDefaultItem:function(e){e._firstFocusItem?e._buttonBar&&e._defaultButton&&t.isDescendant(e._firstFocusItem,e._buttonBar)&&e._defaultButton!==e._firstFocusItem&&"true"!==i.get(e._defaultButton,"aria-disabled")?l.focus(e._defaultButton):l.focus(e._firstFocusItem):l.focus(e.domNode)},_isFormElement:function(){function e(e){var t=e&&e.toLowerCase();return[h,p,f].includes(t)}var t=l.curNode;if("input"===t.tagName.toLowerCase())return e(t.getAttribute("type"));var i=t.getAttribute("role");return!!i&&e(i)},_onKeyDown:function(e,i){if(i._keyDownReady=!0,e.keyCode===o.TAB){this._getFocusItems(i);var r=e.target;r===i._firstFocusItem&&e.shiftKey?(i._closeNode?l.focus(i._closeNode):l.focus(i._lastFocusItem),u(e)):r!==i._lastFocusItem||e.shiftKey?r!==i._closeNode||e.shiftKey?r===i._closeNode&&e.shiftKey&&(i._closeNode!==i._lastFocusItem&&l.focus(i._lastFocusItem),u(e)):(i._closeNode!==i._firstFocusItem&&l.focus(i._firstFocusItem),u(e)):(i._closeNode?l.focus(i._closeNode):l.focus(i._firstFocusItem),u(e))}else e.keyCode===o.SPACE?i._buttonBar&&t.isDescendant(l.curNode,i._buttonBar)&&s.isFocusable(l.curNode)?(u(e),n.add(l.curNode,"active")):l.curNode===i._closeNode&&(u(e),l.curNode.click(e)):e.keyCode===o.ENTER&&(i._contentArea&&i._defaultButton&&t.isDescendant(l.curNode,i._contentArea)&&s.isFocusable(l.curNode)&&l.curNode.tagName&&this._isFormElement()?(u(e),n.add(i._defaultButton,"active")):i._buttonBar&&t.isDescendant(l.curNode,i._buttonBar)&&s.isFocusable(l.curNode)?(u(e),n.add(l.curNode,"active")):l.curNode===i._closeNode&&(u(e),l.curNode.click(e)))},_onKeyUp:function(e,i){i._keyDownReady&&(e.keyCode===o.SPACE?i._buttonBar&&t.isDescendant(l.curNode,i._buttonBar)&&s.isFocusable(l.curNode)&&(n.remove(l.curNode,"active"),u(e),l.curNode.click(e)):e.keyCode===o.ENTER&&(i._contentArea&&i._defaultButton&&t.isDescendant(l.curNode,i._contentArea)&&s.isFocusable(l.curNode)&&l.curNode.tagName&&this._isFormElement()?(n.remove(i._defaultButton,"active"),u(e),i._defaultButton.click(e)):i._buttonBar&&t.isDescendant(l.curNode,i._buttonBar)&&s.isFocusable(l.curNode)&&(n.remove(l.curNode,"active"),u(e),l.curNode.click(e))))}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(210),i(206),i(273),i(209)],o=i.dj.d(n,(function(e,t,i,n){var o=[i.TYPE.HELP,i.TYPE.SPL1,i.TYPE.SPL2],r=[i.TYPE.DO_IT,i.TYPE.DONT_DO_IT,i.TYPE.CANCEL,i.TYPE.APPLY,i.TYPE.REVERT];function a(e,n,o){var a=document.createElement("div");a.className="mwActionButtonBar",a.setAttribute("data-test-id","dialog-action-button-bar");var l=function(e){var t=[];for(var i in r)for(var n in t[i]=[],e)e[n].type===r[i]&&t[i].push(e[n]);var o=[];for(var a in t)0!==t[a].length&&o.push(t[a][0]);return o}(n),c=void 0;for(var d in l)(c=document.createElement("span")).className="mwButton",c.tabIndex="0",c.textContent=l[d].label,c.setAttribute("data-button-type",l[d].type),c.setAttribute("aria-disabled","false"),c.setAttribute("role","button"),l[d]["data-test-id"]&&c.setAttribute("data-test-id",l[d]["data-test-id"]),e._trackEventListener(t(c,"click",s(l[d].type+"ButtonClick",e))),(o===l[d].type||o===l[d]||void 0===o&&o!==i.NO_DEFAULT_ACTION&&"0"===d)&&(e._defaultButton=c),a.appendChild(c),e._buttonBar._buttonBarWidth+=96;return a}function s(e,i){var n=function(){i.close()};return function(){t.emit(i.domNode,e,{bubbles:!1,close:n})}}function l(e,i){return t(e.domNode,i+"ButtonClick",(function(t){var n=!1;e._buttonEvents[i].forEach((function(e){"function"==typeof e.func&&e.func(),n=n||e.dismiss})),e.domNode&&n&&t.close()}))}function c(e){return e.hasOwnProperty("type")?e.type:e}return{addButtonEventListener:function(e,t,i,o){try{var r=c(t);void 0===e._buttonEvents[r]&&(e._buttonEvents[r]=[]),e._buttonEvents[r].push({func:i,dismiss:o}),e._buttonEventHandlers[r]&&e._buttonEventHandlers[r].remove();var a=e._buttonBar.querySelector("span[data-button-type="+r+"]"),s=a&&a.getAttribute("aria-disabled");s&&"false"!==s||(e._buttonEventHandlers[r]=l(e,r))}catch(e){n.log("Button or type of button is invalid.")}},enableButton:function(t,i){var n=c(i);t._buttonEventHandlers[n]&&t._buttonEventHandlers[n].remove(),t._buttonEventHandlers[n]=l(t,n);var o=t._buttonBar.querySelector("span[data-button-type="+n+"]");e.remove(o,"mwDisabled"),o.setAttribute("tabIndex","0"),o.setAttribute("aria-disabled","false")},disableButton:function(t,i){var n=c(i);t._buttonEventHandlers[n]&&t._buttonEventHandlers[n].remove();var o=t._buttonBar.querySelector("span[data-button-type="+n+"]");e.add(o,"mwDisabled"),o.setAttribute("tabIndex","-1"),o.setAttribute("aria-disabled","true")},createButtonBar:function(i,n,l){var c=i._buttonBar=document.createElement("div");c.className="mwDialogButtonBar",c.setAttribute("data-test-id","dialog-button-bar"),i._buttonEvents={},i._buttonEventHandlers={},i._buttonBar._buttonBarWidth=10;var d=!1,u=!1,h=[],p=[];return n.forEach((function(e){-1!==o.indexOf(e.type)?p.push(e):-1!==r.indexOf(e.type)&&h.push(e)})),p.length>0?(u=!0,c.appendChild(function(e,i){var n=document.createElement("div");n.className="mwSplButtonBar",n.setAttribute("data-test-id","dialog-supplemental-button-bar");var o=void 0;for(var r in i)(o=document.createElement("span")).className="mwButton",o.tabIndex="0",o.setAttribute("role","button"),o.textContent=i[r].label,o.setAttribute("data-button-type",i[r].type),o.setAttribute("aria-disabled","false"),i[r]["data-test-id"]&&o.setAttribute("data-test-id",i[r]["data-test-id"]),e._trackEventListener(t(o,"click",s(i[r].type+"ButtonClick",e))),n.appendChild(o),e._buttonBar._buttonBarWidth+=96;return n}(i,p))):e.add(c,"mwNoSplBtn"),h.length>0&&(d=!0,c.appendChild(a(i,h,l))),!0===d&&!0===u&&(i._buttonBar._buttonBarWidth+=10),c}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(204),i(228),i(211),i(213),i(3093)],o=i.dj.d(n,(function(e,t,i,n,o){return function(){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.widget=e.widget,this.contentArea=e.contentArea,o(this),this._addWidget(this.widget)}return r(a,[{key:"_addWidget",value:function(o){if(e.isString(o)){var r=i.create("div");r.className="mwContentMessage",t.set(r,"textContent",o),t.set(r,"data-test-id","dialog-content-widget"),n.set(r,"whiteSpace","pre-line"),i.place(r,this.contentArea,"first"),this.domNode=r}else e.isFunction(o.placeAt)?(t.set(o.domNode,"data-test-id","dialog-content-widget"),o.placeAt(this.contentArea,"first"),this.domNode=o.domNode):(t.set(o,"data-test-id","dialog-content-widget"),i.place(o,this.contentArea,"first"),this.domNode=o)}}]),a}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204)],o=i.dj.d(n,(function(e){return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.widget,n=function(){};e.isFunction(i.startup)?t.startup=function(){i.startup()}:t.startup=n,e.isFunction(i.destroyRecursive)?t.destroyRecursive=function(e){i.destroyRecursive(e)}:t.destroyRecursive=n,e.isFunction(i.destroy)?t.destroy=function(e){i.destroy(e)}:t.destroy=n}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(206)],o=i.dj.d(n,(function(e){function t(e){e.stopPropagation(),(e.metaKey||navigator.platform.toUpperCase().indexOf("MAC")<0&&e.ctrlKey)&&i(e)}function i(e){switch(e.keyCode){case"A".charCodeAt(0):e.target!==document.body&&(e.target.value?e.target.setSelectionRange(0,e.target.value.length):function(e){var t=void 0,i=void 0;document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):window.getSelection&&(i=window.getSelection(),(t=document.createRange()).selectNodeContents(e),i.removeAllRanges(),i.addRange(t))}(e.target)),e.preventDefault();break;case"O".charCodeAt(0):case"S".charCodeAt(0):e.preventDefault()}}return{prevent:function(i){i.on("show",(function(){document.body.style.cursor="default",i.on("keydown",t),i._preventKeyListener=e(document.body,"keydown",t)}))},removePrevent:function(e){document.body.style.cursor="initial",e._preventKeyListener.remove()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{buildRendering:function(){var e=this;this.inherited(arguments),this._longPressTimeout=null,this._longPressTriggered=!1,this._activeEventListeners=[],this._eventListenersInfo=[{target:this.domNode,event:"touchstart",callback:function(t){e._handleTouchStart(t)}},{target:document.body,event:"touchend",callback:this._handleTouchEnd.bind(this)},{target:document.body,event:"touchmove",callback:this._clearLongPressTimeout.bind(this)},{target:document.body,event:"touchcancel",callback:this._clearLongPressTimeout.bind(this)},{target:document.body,event:"mousedown",callback:this._clearLongPressTimeout.bind(this)},{target:document.body,event:"mouseup",callback:this._clearLongPressTimeout.bind(this)},{target:document.body,event:"mousewheel",callback:this._clearLongPressTimeout.bind(this)},{target:document.body,event:"wheel",callback:this._clearLongPressTimeout.bind(this)},{target:window,event:"blur",callback:this._clearLongPressTimeout.bind(this)},{target:window,event:"resize",callback:this._clearLongPressTimeout.bind(this)},{target:document.body,event:"contextmenu",callback:this._contextMenuHandler.bind(this),useCapture:!0}]},_emitCustomEvent:function(e,t,i){if(window.CustomEvent)i.hasOwnProperty("bubbles")||(i.bubbles=!0),i.hasOwnProperty("cancelable")||(i.cancelable=!0),i.hasOwnProperty("composed")||(i.composed=!0),e.dispatchEvent(new CustomEvent(t,i));else{var n=document.createEvent("CustomEvent");n.initCustomEvent(t,!0,!0,i),e.dispatchEvent(n)}},_handleTouchStart:function(e){var t=function(){this._longPressTriggered=!0,this._emitCustomEvent(e.target,"longpress",{detail:{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}})}.bind(this);this._longPressTimeout=setTimeout(t,500)},_handleTouchEnd:function(e){this._longPressTriggered&&e.preventDefault(),this._clearLongPressTimeout()},_clearLongPressTimeout:function(){this._longPressTriggered=!1,clearTimeout(this._longPressTimeout),this._longPressTimeout=null},_contextMenuHandler:function(e){this._longPressTriggered&&(e.preventDefault(),e.stopImmediatePropagation())},_addTouchListeners:function(){if(this._activeEventListeners.length<this._eventListenersInfo.length)for(var e=0;e<this._eventListenersInfo.length;e++)this._eventListenersInfo[e].target.addEventListener(this._eventListenersInfo[e].event,this._eventListenersInfo[e].callback,!!this._eventListenersInfo[e].useCapture),this._activeEventListeners.push({target:this._eventListenersInfo[e].target,event:this._eventListenersInfo[e].event,callback:this._eventListenersInfo[e].callback,useCapture:!!this._eventListenersInfo[e].useCapture})},_removeTouchListeners:function(){if(this._activeEventListeners.length>0)for(;this._activeEventListeners.length>0;){var e=this._activeEventListeners.pop();e.target.removeEventListener(e.event,e.callback,!!e.useCapture)}},destroyRecursive:function(){this._removeTouchListeners(),this.inherited(arguments)},destroy:function(){this._removeTouchListeners(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(243),i(449),i(435),i(370),i(710),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a.validate([t,i,n,o,r]),{visualFamily:"default"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(229),i(317),i(288),i(1067),i(354)],o=i.dj.d(n,(function(e,t,i,n,o){var r={contributors:"Contributors",contextMenu:"ContextMenu"},a={_cmContributors:{},_contextMenus:{},_registerContextMenu:function(t){return t.get("managerId")||(t.get("id")?t.managerId=t.get("id"):t.managerId=e.generateUuid()),a._contextMenus.hasOwnProperty(t.managerId)||(a._contextMenus[t.managerId]=t,a._cmContributors[t.managerId]={}),t.managerId},_unregisterContextMenu:function(e){var t=a._extractManagerId(e);a._contextMenus.hasOwnProperty(t)&&(delete a._contextMenus[t],delete a._cmContributors[t])},_isRegistered:function(e){var t=a._extractManagerId(e);return void 0!==t&&a._contextMenus.hasOwnProperty(t)},_extractManagerId:function(e){var i;return e instanceof t&&e.managerId?i=e.managerId:"string"==typeof e&&(i=e),i},_getContextMenu:function(e){var t=a._extractManagerId(e);return a._contextMenus.hasOwnProperty(t)?a._contextMenus[t]:null},_getContributors:function(e){var t=a._extractManagerId(e);return a._cmContributors.hasOwnProperty(t)?Object.keys(a._cmContributors[t]):null},_validateProp:function(e){if(!r.hasOwnProperty(e))throw new Error("The input attribute '"+e.toString()+"' is not valid;")},_buildContextMenuContributors:function(e,t){if(!a._isRegistered(e))throw new Error("The context menu provided is not registered.");var r=a._extractManagerId(e),s=Object.keys(a._cmContributors[r]),l=[],c={},d={},u=[],h=function(e){var t;switch(e.constructor){case(new n).constructor:case(new i).constructor:break;default:if("object"!=typeof e)throw new Error("Expected input argument to be of type 'MenuItem' or 'Object'");e.callback&&(t=e.callback),e=new i(e),t&&e.own(e.on("click",t.bind(e)))}return e},p=function(e){if(null==e&&(e="default"),"string"!=typeof e)throw new Error("Expected input argument to be of type 'MenuItem'");return l.indexOf(e)<0&&(l.push(e),c[e]=new o({tag:e}),c[e].domNode.classList.add("mwMenuSection"),d[e]=[],c[e].domNode.dataset.childCount=d[e].length,u.push(c[e])),e},f={type:"ContextMenuBuilder",version:"1.0.0",addItems:function(e){if(!(e instanceof Array))throw new Error("Expected input argument to be of type 'Array'");e.forEach(function(e){this.addItem(e,e.section)}.bind(this))},addItem:function(e,t){if(e=h(e),t=p(t),u.indexOf(e)>-1)this.placeItemIn(e,t);else{d[t].push(e),c[t].domNode.dataset.childCount=d[t].length,e.section=t;var i=u.indexOf(c[t])+d[t].length+1;u.splice(i,0,e)}},placeItemBefore:function(e,t){e=h(e),t=h(t),e.section!==t.section&&(d[e.section].splice(d[e.section].indexOf(e),1),c[e.section].domNode.dataset.childCount=d[e.section].length,d[t.section].splice(d[t.section].indexOf(t),0,e),c[t.section].domNode.dataset.childCount=d[t.section].length,e.section=t.section),u.splice(u.indexOf(e),1),u.splice(u.indexOf(t),0,e)},placeItemAfter:function(e,t){e=h(e),t=h(t),e.section!==t.section&&(d[e.section].splice(d[e.section].indexOf(e),1),c[e.section].domNode.dataset.childCount=d[e.section].length,d[t.section].splice(d[t.section].indexOf(t)+1,0,e),c[t.section].domNode.dataset.childCount=d[t.section].length,e.section=t.section),u.splice(u.indexOf(e),1),u.splice(u.indexOf(t)+1,0,e)},placeItemIn:function(e,t){if(e=h(e),t=p(t),e.section!==t){d[e.section].splice(d[e.section].indexOf(e),1),c[e.section].domNode.dataset.childCount=d[e.section].length,d[t].push(e),c[t].domNode.dataset.childCount=d[t].length,e.section=t,u.splice(u.indexOf(e),1);var i=u.indexOf(c[t])+d[t].length+1;u.splice(i,0,e)}},removeItem:function(e){var t;e=h(e),d[e.section].splice(d[e.section].indexOf(e),1),u.splice(u.indexOf(e),1),d[e.section].length<1?(l[e.section].splice(l[e.section].indexOf(e.section),1),delete d[e.section],t=c[e.section],delete c[e.section],t.destroyRecursive()):c[e.section].domNode.dataset.childCount=d[e.section].length,delete e.section},getItems:function(e){return e=p(e),d[e]},getItemSection:function(e){return(e=h(e)).section},hasItem:function(e){return e=h(e),u.indexOf(e)>-1},placeSectionBefore:function(e,t){e=p(e),t=p(t),l.splice(l.indexOf(e),1),l.splice(l.indexOf(t),0,e),u.splice(u.indexOf(c[e]),1);var i=u.indexOf(c[t]);u.splice(i,0,c[e]);var n=0;d[e].forEach((function(t){u.splice(u.indexOf(t),1);var i=u.indexOf(c[e])+n+++1;u.splice(i,0,t)}))},placeSectionAfter:function(e,t){e=p(e),t=p(t),l.splice(l.indexOf(e),1),l.splice(l.indexOf(t)+1,0,e),u.splice(u.indexOf(c[e]),1);var i=u.indexOf(c[t])+d[t].length+1;u.splice(i,0,c[e]);var n=0;d[e].forEach((function(t){u.splice(u.indexOf(t),1);var i=u.indexOf(c[e])+n+++1;u.splice(i,0,t)}))},getSections:function(){return l},hasSection:function(e){return e=p(e),l.indexOf(e)>-1}};if(s.length>0){s.forEach((function(e){(function(e,t){return!(!e||!t)&&e[e.msMatchesSelector?"msMatchesSelector":"matches"](t)})(t,e)&&a._cmContributors[r][e].forEach((function(e){e(f,t)}),this)}),this),u.length>0&&u.forEach((function(e){a._contextMenus[r].addChild(e)}));var g=a._contextMenus[r].getChildren();g.length>0&&g[0].domNode.classList.contains("mwMenuSection")&&(g[0].domNode.style.display="none")}}};return{type:"ContextMenuManager",version:"1.0.0",registerContextMenu:function(e){return e instanceof t&&!a._isRegistered(e)?a._registerContextMenu(e):a._extractManagerId(e)},unregisterContextMenu:function(e){(e instanceof t||"string"==typeof e)&&a._isRegistered(e)&&a._unregisterContextMenu(e)},isRegistered:function(e){return a._isRegistered(e)},get:function(e,t){if(a._isRegistered(e))return a._validateProp(t),a["_get"+r[t]](e)},addContributor:function(e,t,i){if(a._isRegistered(e)){if("string"!=typeof t)throw new Error("Expected 'selector' input argument to be of type 'string'");if("function"!=typeof i)throw new Error("Expected 'callback' input argument to be of type 'function'");var n=a._extractManagerId(e);a._cmContributors[n].hasOwnProperty(t)||(a._cmContributors[n][t]=[]),a._cmContributors[n][t].indexOf(i)<0&&a._cmContributors[n][t].push(i)}},removeContributor:function(e,t,i){if(a._isRegistered(e)){if("string"!=typeof t)throw new Error("Expected 'selector' input argument to be of type 'string'");if("function"!=typeof i)throw new Error("Expected 'callback' input argument to be of type 'function'");var n=a._extractManagerId(e);a._cmContributors[n].hasOwnProperty(t)&&a._cmContributors[n][t].indexOf(i)>-1&&a._cmContributors[n][t].splice(a._cmContributors[n][t].indexOf(i),1),a._cmContributors[n][t].length<1&&delete a._cmContributors[n][t]}},build:function(e,t,i){a._isRegistered(e)&&(i&&(e=a._getContextMenu(e)).getChildren().forEach((function(t){e.removeChild(t),t.destroyRecursive()}),this),a._buildContextMenuContributors(e,t))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(272),i(231),i(223),i(3099),i(544),i(361),i(214),i(226),i(1317),i(790),i(1320),i(569)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([t,i,n,l],{templateString:a,_isOverflowButtonVisible:!1,_overflowButtonWidth:0,constructor:function(){this.own(c.before(this,"addChild",(function(e,t){var i=0;return t>=0&&(i=t),[e,i]})),c.after(this,"addChild",(function(){this.getChildren().forEach(function(e,t){if(!this._overflowPopup._qaGroups[e.id]){this._overflowPopup._qaGroups[e.id]=document.createElement("div"),this._overflowPopup._qaGroups[e.id].setAttribute("id",e.id+"_overflow"),this._overflowPopup._qaGroups[e.id].classList.add("overflowPopupQAGroup"),this._overflowPopup.domNode.insertBefore(this._overflowPopup._qaGroups[e.id],this._overflowPopup.domNode.childNodes[t]);var i=document.createElement("div");i.classList.add("dragSorterContainer"),this._overflowPopup._qaGroups[e.id].appendChild(i),this.enableQABCustomization&&(this._overflowPopup._dragSorters[e.id]=new p({containerNode:i,containerNodeWithinPopup:!0,dragOrientation:"vertical"}),this._overflowPopup._dragSorters[e.id].on("nodemoved",function(t){for(var n=o.byId(e.id),r=n.getChildren(),a=0,s=0;s<r.length&&!r[s]._isShed;s++)a+=1;var l=this.getParent();l.setResizeFlag(!1);var c=t.oldIndex+a,d=t.newIndex+a,u=n.getChildren()[c].id;n.itemMoved({itemId:u,newIndex:d}),l.setResizeFlag(!0),i.insertBefore(o.byId(u).domNode.parentElement,i.childNodes[t.newIndex])}.bind(this)))}}.bind(this)),this.refresh()})),c.after(this,"removeChild",(function(){var e=[];for(var t in this.getChildren().forEach((function(t){e.push(t.id)})),this._overflowPopup._qaGroups)this._overflowPopup._qaGroups.hasOwnProperty(t)&&-1===e.indexOf(t)&&(this.enableQABCustomization&&(this._overflowPopup._dragSorters[t].destroy(),delete this._overflowPopup._dragSorters[t]),this._overflowPopup._qaGroups[t].remove(),delete this._overflowPopup._qaGroups[t]);this.refresh()})))},postCreate:function(){this.inherited(arguments),this.refresh(),this.domNode&&(this.domNode.setAttribute("role","group"),this.domNode.setAttribute("aria-label",s.QAB)),this._setupForOverflow()},startup:function(){this.inherited(arguments),this._overflowDropDown.startup(),this._overflowPopup.startup()},refresh:function(){this.showHideQAB(),this.showHideQAGroups(),this.showHideSeparators()},showHideQAB:function(){if(this.qabDropDownContainer&&this.qabDropDownContainer.hasChildNodes())this.domNode.style.display="block";else{var e=0;this.getChildren().forEach((function(t){e+=t.getChildren().length})),this.domNode.style.display=0===e?"none":"block"}},showHideQAGroups:function(){this.getChildren().forEach((function(e){0===e.getChildren().length?e.domNode.style.display="none":e.domNode.style.display="inline-block"}),this)},showHideSeparators:function(){this.getChildren().forEach((function(e,t){this._isFirstVisibleQAGroup(e,t)?e.separatorNode.style.display="none":e.separatorNode.style.display="inline-block"}),this)},_isFirstVisibleQAGroup:function(e,t){var i,n=this.getChildren(),o=(n.length,!1);if(i=0,0===t)return!0;for(;i<=t-1;)"none"===n[i].domNode.style.display&&(o=!0),i+=1;return o},restoreFactoryControls:function(){},_setupForOverflow:function(){this._overflowPopup=new u({type:d.POPUP_LIST,tag:"qabOverflowPopup"}),this._overflowDropDown=new h({type:d.QAB_DROP_DOWN_BUTTON,tag:"qabOverflowButton",text:s.qabOverflowDropdownLabel,disabled:!0,menu:this._overflowPopup,showText:!1}),this.qabOverflowContainer.appendChild(this._overflowDropDown.domNode),this._hideOverflowButton(),this._overflowPopup.domNode.classList.add("qabOverflowPopup"),this.own(this._overflowPopup.on("open",this._overflowPopupOnOpen.bind(this))),this._overflowPopup._qaGroups={},this._overflowPopup._dragSorters={}},_overflowPopupOnOpen:function(){this._overflowPopupListener||(this._overflowPopupListener=f.addEventListener(this._overflowPopup.domNode.parentElement,"keydown",this._handleKeyDownInOverflowPopup.bind(this),!0))},_handleKeyDownInOverflowPopup:function(e){var t,i=[r.TAB,r.UP_ARROW,r.DOWN_ARROW],n=e.keyCode;if(i.indexOf(n)>-1){var o=this._overflowPopup.domNode.querySelectorAll('[tabindex="0"]'),a=document.activeElement,s=Array.from(o).indexOf(a);-1===s?n===r.TAB&&!e.shiftKey||n===r.DOWN_ARROW?t=0:(n===r.TAB&&e.shiftKey||n===r.UP_ARROW)&&(t=o.length-1):n===r.TAB&&!e.shiftKey||n===r.DOWN_ARROW?t=s===o.length-1?0:s+1:(n===r.TAB&&e.shiftKey||n===r.UP_ARROW)&&(t=0===s?o.length-1:s-1),"number"==typeof t&&o[t]&&(o[t].focus(),e.preventDefault(),e.stopImmediatePropagation())}},_showOverflowButton:function(){this._overflowDropDown.set("mnemonic","Z"),this._overflowDropDown.set("disabled",!1),this.containerNode.classList.remove("noOverflow"),this.qabOverflowContainer.classList.remove("noOverflow"),this._overflowDropDown.domNode.classList.remove("hideQabOverflowDropDownButton"),this._isOverflowButtonVisible=!0,0===this._overflowButtonWidth&&(this._overflowButtonWidth=parseFloat(window.getComputedStyle(this._overflowDropDown.domNode).width))},_hideOverflowButton:function(){this._destroyed||(this._overflowDropDown.focusNode.setAttribute("data-mnemonic",""),this._overflowDropDown.set("disabled",!0),this.containerNode.classList.add("noOverflow"),this.qabOverflowContainer.classList.add("noOverflow"),this._overflowDropDown.domNode.classList.add("hideQabOverflowDropDownButton"),this._isOverflowButtonVisible=!1)},_addToOverflowPopup:function(e,t,i){i?this._overflowPopup._qaGroups[t.id].insertBefore(e,this._overflowPopup._qaGroups[t.id].childNodes[0]):this._overflowPopup._qaGroups[t.id].lastElementChild.insertBefore(e,this._overflowPopup._qaGroups[t.id].lastElementChild.childNodes[0])},_removeFromOverflowPopup:function(e,t,i){i?t.insertBefore(e,t.childNodes[0]):t.lastElementChild.appendChild(e)},_calculateWidth:function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)+parseFloat(t.marginLeft)+parseFloat(t.marginRight)},collapse:function(e){for(var t,i=this.getChildren(),n=0,o=i.length-1;o>=0;o--)for(var r=(t=i[o].getChildren()).length-1;r>=0;r--)if(o<i.length-1&&!i[o+1]._isShed&&i[o+1].getChildren().length>0&&(i[o+1].separatorNodeComputedWidth=this._calculateWidth(i[o+1].separatorNode),n+=i[o+1].separatorNodeComputedWidth,this._addToOverflowPopup(i[o+1].separatorNode,i[o+1],!0),i[o+1]._isShed=!0),!t[r]._isShed){if(t[r]._computedWidthWithWrapper=this._calculateWidth(t[r].domNode.parentElement),n+=t[r]._computedWidthWithWrapper,t[r]._isShed=!0,t[r].get("showText")||(t[r]._restrictModelUpdate=!0,t[r].set("showText",!0),t[r].showText=!1,delete t[r]._restrictModelUpdate),this._addToOverflowPopup(t[r].domNode.parentElement,i[o]),this._isOverflowButtonVisible&&n>=e)return;if(!this._isOverflowButtonVisible&&(this._showOverflowButton(),n>=e+this._overflowButtonWidth))return}},expand:function(e){for(var t,i=this.getChildren(),n=0,o=0;o<i.length;o++){t=i[o].getChildren();for(var r=0;r<t.length;r++)if(t[r]._isShed){if(n+=t[r]._computedWidthWithWrapper,r===t.length-1&&o<i.length-1&&i[o+1]._isShed&&(n+=i[o+1].separatorNodeComputedWidth),!(n<=e))return;t[r].get("showText")||(t[r]._restrictModelUpdate=!0,t[r].set("showText",!1)),delete t[r]._computedWidthWithWrapper,delete t[r]._restrictModelUpdate,t[r]._isShed=!1,this._removeFromOverflowPopup(t[r].domNode.parentElement,i[o].domNode,!1),r===t.length-1&&o<i.length-1&&i[o+1]._isShed&&(delete i[o+1].separatorNodeComputedWidth,i[o+1]._isShed=!1,this._removeFromOverflowPopup(i[o+1].separatorNode,i[o+1].domNode,!0))}}n<=e&&this._hideOverflowButton()},destroy:function(){this._overflowPopupListener&&this._overflowPopupListener.remove(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="qab"\n ><div class="leftArrow"></div\n ><div class="mainArea" data-dojo-attach-point="containerNode"></div\n ><div class="mwQabOverflowContainer" data-dojo-attach-point="qabOverflowContainer"></div\n ><div class="mwQabDropDownContainer" data-dojo-attach-point="qabDropDownContainer"></div\n></div>'},function(e,t){e.exports="<div class='toolstrip'\n ><div data-dojo-attach-point='header' class='header'\n ><div data-dojo-attach-point='searchTextFieldContainerNode' class=\"mwSearchTextFieldContainerNode\"></div\n ><div data-dojo-attach-point='buttonWrapper' class='ButtonWrapper'\n ><div data-dojo-attach-point='listViewButtonContainerNode' class=\"mwListViewButtonContainerNode\"></div\n ><div data-dojo-attach-point='iconViewButtonContainerNode' class=\"mwIconViewButtonContainerNode\"></div\n ></div\n ><div data-dojo-attach-point='closeButtonWrapper' class=\"mwCloseButtonWrapper\"\n ><div data-dojo-attach-point='closeButtonNode' class=\"mwCloseButtonNode\" data-tag=\"closeButton\"></div\n ></div\n ></div\n ><div data-dojo-attach-point=\"categoryContainer\" class='categoryContainer'\n ><div data-dojo-attach-point=\"noSearchMatchNode\" class=\"noSearchMatchNode\"></div\n ><div data-dojo-attach-point=\"favCategoryContainer\" class=\"favCategoryContainer\"></div\n ><div data-dojo-attach-point='containerNode' class=\"otherCategoriesContainer\"></div\n ></div\n ><div data-dojo-attach-point=\"footerContainer\" class='footerContainer'></div\n></div>"},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_optionsEnabledClassName:"mwOptionsEnabled",_setOptionsEnabledAttr:function(e){if("boolean"!=typeof e)throw new Error("optionsEnabled must be a boolean value.");e?this.domNode.classList.add(this._optionsEnabledClassName):this.domNode.classList.remove(this._optionsEnabledClassName),this._set("optionsEnabled",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(215),i(216),i(272),i(3103),i(361),i(1324),i(1320),i(214)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([i,n,o,a,s],{templateString:r,constructor:function(){var e=this;this.own(c.before(this,"addChild",(function(e,t){var i=0;return t>=0&&(i=t),[e,i]})),c.after(this,"addChild",(function(){var t=e.getParent();if(t){t.refresh();var i=t.getParent();i&&i.resize()}})),c.after(this,"removeChild",(function(){var t=e.getParent();if(t){t.refresh();var i=t.getParent();i&&i.resize()}})))},postCreate:function(){this.inherited(arguments),this.enableQABCustomization&&(this._dragSorter=new l({containerNode:this.containerNode}),this._dragSorter.on("nodemoved",t.hitch(this,(function(e){this.itemMoved({itemId:this.getChildren()[e.oldIndex].id,newIndex:e.newIndex})}))))},destroy:function(){this.enableQABCustomization&&this._dragSorter.destroy(),this.inherited(arguments)},itemMoved:function(){}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="qaGroup">\n<div data-dojo-attach-point="separatorNode" class="quickAccessGroupSeparator"></div><div class="qaGroupContainer" data-dojo-attach-point="containerNode"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(3105),i(360),i(231),i(361)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t,i,o,a],{templateString:n,constructor:function(){this.tabs=[]},addChild:function(e,t){var i,n,o,r=0,a=null,s=0;if(t||0===t||(t=this.tabs.length),this.tabs.splice(t,0,e),i=this.getParent()){for(n=(o=i.getChildren()).length;s<n;){if(this===o[s]){t>=0&&(a=r+t);break}r+=o[s].tabs.length,s+=1}i.addTab(e,a)}this.emit("childadded")},removeChild:function(e){var t,i=this.getParent();(t=this.tabs.indexOf(e))>-1&&this.tabs.splice(t,1),0===this.tabs.length&&this.set("selectedTab",""),i&&i.removeTab(e),this.emit("childremoved")},_setSelectedTabAttr:function(e){var t=this.getParent(),i=r.byId(e);t&&e&&(t.selectTab(i),t.getChildren().forEach((function(e){e!==this&&e.set("selectedTab","")}),this)),this._set("selectedTab",e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="tabGroup">\n</div>'},function(e,t,i){var n,o;n=[i(203),i(211),i(276),i(231),i(225),i(217),i(361),i(789)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){function l(e,t){var i=0;return e.collapsePriority>t.collapsePriority?i=-1:e.collapsePriority<t.collapsePriority&&(i=1),i}function c(e,t){return!(!e||!t)&&(Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1}).call(e,t)}return e([i,a,s],{constructor:function(){this.class="tabContentPane"},postCreate:function(){this.containerNode=t.create("span",{class:"sectionContainer"},this.domNode)},resize:function(){var e=this.getParent(),t=e.getParent();if(t._startupComplete&&!t._ignoreResize){var i,n,o,a,s,c,d,u,h=0;if(!this._destroyed)if(this.inherited(arguments),u=(d=this._getAllDescendantGalleries()).length,a=(o=this.getChildren()).length,o.sort(l),s=this._getWidthOfAllSections(),(c=r.position(this.domNode).w)<s){for(n=u-1;n>=0;){for(;c<s;){if(!d[n].shrink()){h+=1;break}s=this._getWidthOfAllSections(),c=r.position(this.domNode).w}n-=1}if(h===u){for(i=a-1;i>=0&&c<s;)o[i].toggleDescendantLabels(!1),s=this._getWidthOfAllSections(),c=r.position(this.domNode).w,i-=1;for(i=a-1;i>=0&&c<s;)o[i].collapse(),o[i].toggleDescendantLabels(!0),s=this._getWidthOfAllSections(),c=r.position(this.domNode).w,i-=1}}else{for(i=0;i<a&&c>s;){if(o[i].expand(),o[i].toggleDescendantLabels(!1),s=this._getWidthOfAllSections(),(c=r.position(this.domNode).w)<s){o[i].collapse();break}i+=1}for(i=0;i<a&&c>s;){if(o[i].toggleDescendantLabels(!0),s=this._getWidthOfAllSections(),(c=r.position(this.domNode).w)<s){o[i].toggleDescendantLabels(!1);break}i+=1}if(i===a)for(u=(d=this._getAllDescendantGalleries()).length,n=0;n<u;){for(;c>s&&d[n].grow();)if(s=this._getWidthOfAllSections(),(c=r.position(this.domNode).w)<s){d[n].shrink();break}n+=1}}}},_getAllDescendantGalleries:function(){return o(".gallery",this.domNode).map((function(e){return n.byNode(e)}))},_getWidth:function(){return r.position(this.domNode).w},_getWidthOfAllSections:function(){var e,t,i,n=0;for(t=(e=this.getChildren()).length,i=0;i<t;i++)n+=r.position(e[i].domNode).w;return n+this._getCollapseButtonWidth()},_isStaticDisplayState:function(){return this.domNode?c(this.domNode,".staticToolstrip *"):null},_isCompactDisplayMode:function(){return this.domNode?c(this.domNode,".compactToolstrip *"):null},_getCollapseButtonWidth:function(){return this._isStaticDisplayState()?0:this._isCompactDisplayMode()?50:20}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(211),i(215),i(216),i(272),i(3108),i(361),i(3109),i(1794),i(226),i(288),i(3110),i(545)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){function g(e,t){var i=0;return e.collapsePriority>t.collapsePriority?i=-1:e.collapsePriority<t.collapsePriority&&(i=1),i}function m(e){return e.collapsePriority>=0}return e([o,r,a,l,f],{templateString:s,icon:"section_24",_sectionDropDownVisible:!1,constructor:function(){this._isCollapsed=!1},postCreate:function(){this.inherited(arguments),this.domNode&&this.domNode.setAttribute("role","group")},_setIconAttr:function(e){this.icon=e,this._sectionDropDownButton&&this._sectionDropDownButton.set("icon",this.icon)},_getSortedChildren:function(e){var t=[],i=this.getChildren();return(i=i.filter(m)).sort(g),this._isCompactDisplayMode()||e?(i.forEach((function(e){e.getChildren().forEach((function(e){t.push(e)}))})),t):i},_getShedChildren:function(){var e=[];return this._getSortedChildren().forEach((function(t){t._isShed&&e.push(t)})),e},_onSectionPopupOpen:function(e){if(this._sectionPopup.domNode.classList.remove("compactToolstripSectionPopup"),this._isCompactDisplayMode()){this._sectionPopup.domNode.classList.add("compactToolstripSectionPopup");var t=this._sectionPopup.getChildren();t.length>0&&t.forEach(function(e){this._sectionPopup.removeChild(e)}.bind(this)),this._getSortedChildren(!0).forEach(function(e){(e._isShed||e.getParent()._isShed)&&(this._updateControlMenuItemProperties(e),this._sectionPopup.addChild(e._menuItem))}.bind(this))}this._sectionDropDownButton.showMenu()},_createSectionPopup:function(){this._sectionPopup=new p,this.own(this._sectionPopup),this._sectionDropDownButton=new c({menu:this._sectionPopup,label:this.get("title"),hasDynamicMenu:!0}),this.icon&&this._sectionDropDownButton.set("icon",this.icon),this._sectionDropDownButton.domNode.addEventListener("dropdownclick",this._onSectionPopupOpen.bind(this)),this._sectionDropDownButton.focusNode.setAttribute("tabIndex","0"),this.own(this._sectionDropDownButton),this._sectionPopup.domNode.setAttribute("data-focus","temporary"),this._sectionDropDownButton.placeAt(this.sectionDropDownContainer),this._sectionDropDownButton.startup(),this._hideSectionDropDownButton()},_updateControlMenuItemProperties:function(e){var t={};e._menuItem||this._createControlMenuItem(e),t=e.params?e.params:{actionId:e.actionId,text:e.text||"",description:e.description||"",icon:e.icon||"",disabled:e.disabled||!1},Object.keys(t).forEach((function(t){["id","type"].indexOf(t)<0&&(t in e._menuItem?e._menuItem.set(t,e.get(t)):"checked"===t&&e._menuItem.domNode.classList.toggle("mwCheckedTrue",e.get(t)))}))},_createControlMenuItem:function(e){var t;(t=new h).on("click",(function(t){var i=new Event(t.type);Object.setPrototypeOf(i,t),e.domNode.dispatchEvent(i)})),e.own(t),e._menuItem=t},_setTitleAttr:function(e){this.titleNode.textContent=e,this._sectionDropDownButton&&this._sectionDropDownButton.set("label",e),this._set("title",e);var t=this.id+"_label";this.titleNode.setAttribute("id",t),this.domNode.setAttribute("aria-labelledby",t)},_shedComponent:function(e){e._isShed||e.getParent()._isShed||(e.domNode.style.display="none",e._isShed=!0)},_unshedComponent:function(e){(e._isShed||e.getParent()._isShed)&&(e.domNode.style.display="",e._isShed=!1)},_showSectionDropDownButton:function(){this._isCompactDisplayMode()?this.domNode.classList.add("isShed"):this.domNode.classList.add("isCollapsed"),this._sectionDropDownVisible=!0},_hideSectionDropDownButton:function(){this.domNode.classList.remove("isShed"),this.domNode.classList.remove("isCollapsed"),this._sectionDropDownVisible=!1},_shouldShedColumns:function(){return this._isCompactDisplayMode()},collapse:function(){var e,t,i,o,r,a;if(-1===this.collapsePriority)return this._isCollapsed=!0,!0;if(e=this.getParent(),t=0,i=0,o=0,r=!1,a=this._getSortedChildren(),this._sectionPopup||this._createSectionPopup(),this._shouldShedColumns()&&e&&e.domNode){if(containerNodeWidth=e._getWidthOfAllSections(),tabWidth=e._getWidth(),a.length>1)for(t=a.length-1;t>=0&&tabWidth<containerNodeWidth;)if(a[t]._isShed)t--,o++;else{if(-1===a[t].collapsePriority||-1===a[t].getParent().collapsePriority?i++:(this._shedComponent(a[t]),o++),o>0&&!this._sectionDropDownVisible){this._showSectionDropDownButton();for(var s=!0;s&&--t>-1;)-1===a[t].collapsePriority||-1===a[t].getParent().collapsePriority?i++:(this._shedComponent(a[t]),o++,s=!1)}containerNodeWidth=e._getWidthOfAllSections(),tabWidth=e._getWidth(),t-=1}o+i>=a.length?this._isCollapsed=!0:this._isCollapsed=!1}else this._isCollapsed||-1===this.collapsePriority||(r=!0,this._isCollapsed=!0,this.domNode.classList.add("isCollapsed"),n.place(this.columnContainerWrapper,this._sectionDropDownButton.menu.domNode),this._sectionDropDownButton.focusNode.setAttribute("tabIndex","0"));return r},expand:function(){var e,t,i,o,r,a,s,l;if(-1===this.collapsePriority)return!0;if(e=this.getParent(),t=0,r=!1,i=0,o=this._getShedChildren().length,a=this._getSortedChildren(),this._sectionPopup||this._createSectionPopup(),this._shouldShedColumns()&&e&&e.domNode){if(containerNodeWidth=e._getWidthOfAllSections(),tabWidth=e._getWidth(),a.length>1)for(t=a.length-o;t<a.length&&tabWidth>containerNodeWidth;){if(-1===a[t].collapsePriority||-1===a[t].getParent().collapsePriority?i++:(this._unshedComponent(a[t]),o--),o<2&&this._sectionDropDownVisible)for(this._hideSectionDropDownButton(),s=!0;s&&++t<a.length;)-1===a[t].collapsePriority||-1===a[t].getParent().collapsePriority?i++:(this._unshedComponent(a[t]),o--,s=!1);if(containerNodeWidth=e._getWidthOfAllSections(),tabWidth=e._getWidth(),tabWidth<containerNodeWidth){if(this._shedComponent(a[t]),++o<2)for(this._showSectionDropDownButton(),l=0,s=!0;s&&t-++l>-1;)-1===a[t-l].collapsePriority||-1===a[t-l].getParent().collapsePriority?i++:(this._shedComponent(a[t-l]),o++,s=!1);r=!0;break}t+=1}o+i>=a.length?this._isCollapsed=!0:this._isCollapsed=!1}else this._isCollapsed&&(r=!0,this._isCollapsed=!1,this.domNode.classList.remove("isCollapsed"),n.place(this.columnContainerWrapper,this.sectionWrapper,"first"),this._sectionDropDownButton.focusNode.removeAttribute("tabIndex"));return r},toggleDescendantLabels:function(e){var t=this.getChildren();if(t)for(var i=0;i<t.length;i++)0===t[i].get("width")&&t[i].domNode&&(e?(t[i].domNode.classList.remove("mwHideDescendantLabels"),t[i].set("shouldShedDescendantLabels",!1)):this._isColumnEligibleToHideDescendantLabels(t[i])&&(t[i].domNode.classList.add("mwHideDescendantLabels"),t[i].set("shouldShedDescendantLabels",!0)))},_isColumnEligibleToHideDescendantLabels:function(e){if(this._isCompactDisplayMode())return!0;var t=e.getChildren();if(t&&t.length>0)for(var i=0;i<t.length;i++)if(t[i].get("type")!==u.EMPTY_CONTROL&&(t[i].get("orientation")!==d.HORIZONTAL||void 0===t[i].get("text")||""===t[i].get("text")))return!1;return!0},getPopup:function(){return this._sectionPopup},closePopup:function(){this.isPopupOpen()&&this._sectionDropDownButton.closeMenu()},addChild:function(e){this.inherited(arguments),"Column"===e.type&&e.updateChildrenOrientations()},isPopupOpen:function(){return!!this._sectionPopup&&(this._sectionDropDownButton.menu.domNode.parentNode&&"none"!==this._sectionDropDownButton.menu.domNode.parentNode.style.display)},_isCompactDisplayMode:function(){return this.domNode?function(e,t){return!(!e||!t)&&(Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1}).call(e,t)}(this.domNode,".compactToolstrip *"):null}})}),e,t),e.exports=o},function(e,t){e.exports="<div class='section'\n ><div data-dojo-attach-point='contentWrapper' class='contentWrapper'\n ><div data-dojo-attach-point='sectionWrapper' class='sectionWrapper'\n ><div data-dojo-attach-point='columnContainerWrapper' class='columnContainerWrapper'\n ><div data-dojo-attach-point='containerNode' class='columnContainer'></div\n ></div\n ></div><div data-dojo-attach-point='sectionDropDownContainer' class='sectionDropDownContainer'></div\n ><div data-dojo-attach-point='titleNode' class='title'></div\n ></div\n ><div class='sectionDivider'></div\n></div>"},function(e,t,i){var n,o;n=[i(203),i(790),i(570),i(792),i(436),i(332),i(370),i(895),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(l.validate([t,i,n,o,r,a,s]),{visualFamily:"default",baseClass:"mwWidget mwSectionDropDownButton mwDropDownButton",type:"SectionDropDownButton",minWidth:38,orientation:"Vertical",verticalHeight:92,doNotSize:!0,preventRestoreFocus:!0,postCreate:function(){this.inherited(arguments),this.set("menuOrientation","below"),this.own(this.on("keydown",function(e){switch(e.keyCode){case 37:case 38:case 39:this.isMenuOpen()&&this.closeMenu();break;case 40:if(this.isMenuOpen()){var t=this.get("menu");t&&t.focus&&t.focus()}else this.openMenu();break;case 9:this.isMenuOpen()&&this.closeMenu()}}.bind(this)))},_setLabelAttr:function(e){if("string"!=typeof e)throw new Error("'label' property must be of type string.");this.set("text",e),this.focusNode.setAttribute("title",e)},_setDescriptionAttr:function(){},_setShortcutAttr:function(){},_setPlatformizeShortcutAttr:function(){},_getLabelAttr:function(){return this.get("text")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(331),i(545),i(332),i(1074),i(1069),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a.validate([t,i,n,o,r]),{visualFamily:"toolstrip",baseClass:"toolstrip mwSectionPopup",preventRestoreFocus:!0,type:"SectionPopup",postCreate:function(){this.inherited(arguments),this.own(this.on("keydown",function(e){switch(e.keyCode){case 27:for(var t=e.target;!t.classList.contains("dijitPopup")&&null!==t&&t.parentElement;)t=t.parentElement;if(t){var i=document.getElementById(t.getAttribute("dijitpopupparent"));i&&i.querySelector(".mwFocusNode")?i.querySelector(".mwFocusNode").focus():this.emit("restorefocus")}else this.emit("restorefocus")}}.bind(this)))},_emitRestoreFocus:function(){this.emit("restorefocus")},focus:function(){if(this.isMenuOpen()){if(this._isCompactDisplayMode());else{var e,t,i,n,o=0,r=0,a=!1,s=this.getChildren();if(s.length>0)for(;!a&&o<s.length;)if((t="Column"===s[o++].type?s[o-1].getChildren():s).length>0)for(;!a&&r<t.length;)(e=t[r++]).domNode&&e.get("disabled")||e instanceof Element&&e.hasAttribute("disabled")||(e.focus?(e.focus(),a=!0):(i=e.domNode?e.domNode:e instanceof Element?e:null)&&(n=i.classList.contains(".mwFocusNode")||i.hasAttribute("data-dojo-attach-point")&&"focusNode"===i.getAttribute("data-dojo-attach-point")?i:i.querySelector(".mwFocusNode")||i.querySelector('[data-dojo-attach-point="focusNode"]'))&&(n.focus(),a=!0))}this._addFocusListeners()}},_isCompactDisplayMode:function(){return this.domNode?function(e,t){return!(!e||!t)&&(Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1}).call(e,t)}(this.domNode,".compactToolstripSectionPopup, .compactToolstripSectionPopup *"):null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(272),i(3112),i(361),i(545)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t,i,n,r,a],{templateString:o,addChild:function(e){this.inherited(arguments);var t=this.getParent();t&&"Column"===t.type&&t.updateChildrenOrientations()}})}),e,t),e.exports=o},function(e,t){e.exports="<div class='panel'>\n</div>"},function(e,t,i){var n,o;n=[i(214),i(203),i(215),i(216),i(231),i(3114),i(361),i(1324),i(545),i(781),i(1794)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){var u=["PushButton","DropDownButton","SplitButton","ToggleButton","ToggleSplitButton","ColorPickerButton","GridPickerButton"];return t([i,n,a,s,l],{templateString:r,shouldShedDescendantLabels:!1,constructor:function(){var t=this;this._wrappers={},this.own(e.after(this,"addChild",(function(e){var i=this.get("horizontalAlignment");"left"===i?i="flex-start":"right"===i&&(i="flex-end"),t._wrappers[e.id].style.alignItems=i,t.get("width")&&e._scaleToParentWidth&&e.set("width",t.get("width"))}),!0))},_setHorizontalAlignmentAttr:function(e){var t=e;"left"===e?t="flex-start":"right"===e&&(t="flex-end"),Object.keys(this._wrappers).forEach((function(e){this._wrappers[e].style.alignItems=t}),this),this._set("horizontalAlignment",e)},_setWidthAttr:function(e){e>0&&(this.domNode.style.width=e+"px",this._set("width",e),this.getChildren().forEach((function(t){t._scaleToParentWidth&&t.set("width",e),t._checkAndFixClippedText&&t._checkAndFixClippedText()})))},_setExtraColumnGapAttr:function(e){this._set("extraColumnGap",e),e?this.domNode.classList.add("extraColumnGap"):this.domNode.classList.remove("extraColumnGap")},resize:function(){this.inherited(arguments);var e=this.getChildren();if(e)for(var t=0;t<e.length;t++)e[t].resize?e[t].resize():e[t].set("height",e[t].get("height"));this.updateChildrenOrientations(),this._updateDescendantTitle()},addChild:function(e){this.inherited(arguments),this.updateChildrenOrientations(),this.set("horizontalAlignment",this.get("horizontalAlignment")),this._updateDescendantTitle()},removeChild:function(e){this.inherited(arguments),this.updateChildrenOrientations(),this._updateDescendantTitle()},updateChildrenOrientations:function(){var e=this.getParent();if(e)if("Section"===e.type||"SectionPopup"===e.type)this._updateChildrenOrientations();else if("Panel"===e.type){var t=e.getParent();t&&"Column"===t.type&&t.updateChildrenOrientations()}},_updateChildrenOrientations:function(){var e=this.getChildren();1===e.length?"Panel"===e[0].type?e[0].getChildren().forEach((function(e){var t=e.getChildren(),i=1===t.length?d.VERTICAL:d.HORIZONTAL;t.forEach((function(e){e.get("orientation")&&e.set("orientation",i)}))})):e[0].get("orientation")&&e[0].get("orientation")!==d.VERTICAL&&e[0].set("orientation",d.VERTICAL):this._isCompactDisplayMode()?this._updateMultipleChildrenOrientations(e,d.VERTICAL):this._updateMultipleChildrenOrientations(e,d.HORIZONTAL)},_updateMultipleChildrenOrientations:function(e,t){e.forEach((function(e){"Panel"===e.type?e.getChildren().forEach((function(e){e.getChildren().forEach((function(e){e.get("orientation")&&e.get("orientation")!==t&&e.set("orientation",t)}))})):e.get("orientation")&&e.get("orientation")!==t&&e.set("orientation",t)}))},_isCompactDisplayMode:function(){return this.domNode?function(e,t){return!(!e||!t)&&(Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1}).call(e,t)}(this.domNode,".compactToolstrip *"):null},_setShouldShedDescendantLabelsAttr:function(e){if("boolean"!=typeof e)throw error("'shouldShedDescendantLabels' expects a boolean value.");this._set("shouldShedDescendantLabels",e),this._updateDescendantTitle()},_updateDescendantTitle:function(){var e,t,i;for(t=0;t<u.length;t++)for(i=this.domNode.querySelectorAll("[data-type="+u[t]+"]"),e=0;e<i.length;++e){var n=o.getEnclosingWidget(i[e]);"Horizontal"===n.orientation&&n.set("showText",!this.shouldShedDescendantLabels)}}})}),e,t),e.exports=o},function(e,t){e.exports="<div class='column' data-dojo-attach-point=\"containerNode\"></div>"},function(e,t,i){var n,o;n=[i(203),i(1325),i(332),i(259)],o=i.dj.d(n,(function(e,t,i,n){return e(n.validate([t,i]),{visualFamily:"default"})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="focusNode" tabindex="0"></div>\n'},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(272),i(277),i(361),i(3118)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=function(e,t){return!!(e&&t&&e instanceof Element)&&e[e.msMatchesSelector?"msMatchesSelector":"matches"](t)};return e([t,i,n,r],{templateString:a,baseClass:"footer",postCreate:function(){this.inherited(arguments),this.own(this.on("click",function(e){if(s(e.target,".mwClosePopupOnClick, .mwClosePopupOnClick *")){var t=this.getParent();("GalleryPopup"===t.type||t.domNode.classList.contains("mwComboBoxPopup"))&&o.close(t)}}.bind(this)))}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="containerNode"></div>'},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(272),i(361),i(3120),i(1324)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t,i,n,a,o],{templateString:r,baseClass:"footerCell"})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="footerCellNode"></div>'},function(e,t,i){var n,o;n=[i(203),i(410),i(217),i(214),i(248),i(204),i(206),i(223),i(215),i(216),i(272),i(788),i(231),i(316),i(3122),i(659),i(361),i(1792),i(1793),i(3123),i(3124),i(335),i(330),i(449),i(435),i(377),i(544)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){return e([l,c,d,p,u,m,_,v,b,y,C,T,E,S],{templateString:f,baseClass:"mwWidget mwGallery",visualFamily:"toolstrip",dropDownPosition:["below"],openIfEmpty:!0,ownsPopup:!0,postCreate:function(){this.inherited(arguments),this._focusManager={},this.own(n.after(this,"addChild",(function(e){e.set("displayState",g.ICON),e.set("galleryItemRowCount",this.galleryItemRowCount)}),!0),a(this.openPopupDiv,"click",function(e){this.isDropDownOpen()||this._onDropDownMouseDown(e)}.bind(this)),a(this.domNode,"keyup",function(e){e.keyCode!==s.ENTER&&e.keyCode!==s.SPACE||this.openDropDown()}.bind(this)));var e=h.byId(this.galleryPopupId);e&&this.setupGalleryPopupListener(e),this.openPopupDiv.setAttribute("title",I.showMore);var t=this.domNode.getAttribute("data-tag")||"Gallery";this.openPopupDiv.setAttribute("data-tag",t+".PopupButton")},_onKey:function(e){e.target===this.openPopupDiv&&e.keyCode===s.DOWN_ARROW||this.inherited(arguments)},openDropDown:function(){var e,t,i=30,n=h.byId(this.galleryPopupId);!this.openIfEmpty&&n.domNode.querySelectorAll(".Category.hideFromView").length>n.getChildren().length||(e=(t=n.columnCount?Math.max(n.columnCount,this.currentColumnCount):this.currentColumnCount)<3?3*this.galleryItemWidth:t*this.galleryItemWidth,e+=i,n.domNode.style.width=e+"px",this.set("dropDown",n),this.setupGalleryPopupListener(n),this.inherited(arguments),this._handleWindowResizeHandler=r.hitch(this,"_handleWindowResize"),window.addEventListener("resize",this._handleWindowResizeHandler))},_shouldCloseDropDown:function(e,t){if(e===window)return!0;if(this.domNode&&this.domNode.contains(e)&&e.classList.contains("dijitDownArrowButton")&&(!t.domNode||!t.domNode.parentElement||"none"!==t.domNode.parentElement.style.display))return!1;if(t.domNode&&t.domNode.contains(e))return!1;var i=".mwToolstripPopupContextMenu, .mwToolstripPopupContextMenu *";return e.matches?!e.matches(i):e.matchesSelector?!e.matchesSelector(i):e.webkitMatchesSelector?!e.webkitMatchesSelector(i):e.mozMatchesSelector?!e.mozMatchesSelector(i):e.msMatchesSelector?!e.msMatchesSelector(i):!e.oMatchesSelector||!e.oMatchesSelector(i)},closeDropDown:function(){window.removeEventListener("resize",this._handleWindowResizeHandler),(this.dropDown||(this.dropDown=h.byId(this.galleryPopupId),this.dropDown))&&this.inherited(arguments)},_handleWindowResize:function(){this.closeDropDown()},_qeDropDownClick:function(){this.toggleDropDown()},_onDropDownMouseDown:function(e){e instanceof MouseEvent&&0!==e.button||this.inherited(arguments)},setupGalleryPopupListener:function(e){e._invokingGallery=this;var t=this;this._galleryPopupListener&&(this._galleryPopupListener.remove(),this._galleryPopupListener=null),this._galleryPopupListener=n.after(e,"galleryStateChanged",(function(){t.refresh()}))},shrink:function(){var e;return this.currentColumnCount>this.minColumnCount?(this.set("currentColumnCount",this.currentColumnCount-1),e=!0):e=!1,e},grow:function(){var e;return this.currentColumnCount<this.maxColumnCount?(this.set("currentColumnCount",this.currentColumnCount+1),e=!0):e=!1,e},_setCurrentColumnCountAttr:function(e){this._set("currentColumnCount",e),this._resizeContainerNode(),this.refresh()},_setOpenIfEmptyAttr:function(e){if("boolean"!=typeof e)throw new Error("'openIfEmpty' property expected a boolean value");this._set("openIfEmpty",e)},_resizeContainerNode:function(){var e=this.currentColumnCount*this.galleryItemWidth+"px";this.containerNode.style.width=e,this.textOverlayWrapperNode.style.width=e},_setGalleryItemWidthAttr:function(e){e>0&&(this._set("galleryItemWidth",e),this._resizeContainerNode())},_setDisplayStateAttr:function(e){var t=i.position(this.domNode);this._set("displayState",e),this.domNode.classList.remove("busy"),this.set("disabled",!1),"busy"===e?(this.busyLayer.style.height=t.h+"px",this.busyLayer.style.width=t.w+"px",this.domNode.classList.add("busy")):"blocked"===e&&this.set("disabled",!0)},_setTextOverlayAttr:function(e){this._set("textOverlay",e),e?(this.textOverlayWrapperNode.style.display="table",this.textOverlayNode.textContent=e):(this.textOverlayWrapperNode.style.display="none",this.textOverlayNode.textContent="")},focus:function(){if(!this.disabled&&this.focusNode.focus)try{this.focusNode.focus()}catch(e){}},refresh:function(){},_setGalleryPopupIdAttr:function(e){var t;this.galleryPopupId&&e!==this.galleryPopupId&&(t=h.byId(this.galleryPopupId))&&(this._set("galleryPopupId",""),this.ownsPopup?this.dropDown||t.destroyRecursive():this.dropDown=void 0),this._set("galleryPopupId",e)},destroy:function(){this._galleryPopupListener.remove(),this.set("galleryPopupId",""),this.inherited(arguments)},isDropDownOpen:function(){var e=this.galleryPopupId?h.byId(this.galleryPopupId):null;return!(!e||!e.domNode||!e.domNode.parentElement||!e.domNode.parentElement.classList.contains("dijitPopup")&&"none"===e.domNode.style.display||"none"===e.domNode.parentElement.style.display)}})}),e,t),e.exports=o},function(e,t){e.exports='<span class=\'gallery icon_view\'>\n <div data-dojo-attach-point="_aroundNode" class="aroundNode"></div>\n <div data-dojo-attach-point=\'containerNode\' class=\'mainArea\'>\n </div><div data-dojo-attach-point=\'openPopupDiv, focusNode, _buttonNode\' class=\'openPopupDiv\' data-type="GalleryPopupButton">\n <div class="buttonDownArrow"></div>\n </div>\n <div data-dojo-attach-point="busyLayer" class="busyLayer"></div>\n <div data-dojo-attach-point="busyNode" class="busyIndicator"></div>\n <div data-dojo-attach-point="textOverlayWrapperNode" class="textOverlayWrapper">\n <div class="textOverlayCell">\n <span data-dojo-attach-point="textOverlayNode" class="textOverlay"></span>\n </div>\n </div>\n</span>'},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{scrollToSelection:!1})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{hideDisabledItems:!0})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(211),i(206),i(794),i(34),i(231),i(215),i(216),i(272),i(544),i(1796),i(3128),i(659),i(361),i(3129)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m=["","icon_favorite_category_16"];return e([s,l,c,f],{templateString:h,galleryItemRowCount:1,icon:"",hideWhenEmpty:!0,dndEnabled:!1,postCreate:function(){var e=this;this.inherited(arguments),this._moveToTopButtonClickHandler=function(){for(var t,i=e.getParent().getChildren(),n=i.indexOf(e),o=n-1;o>=0;o--)if(!i[o].domNode.classList.contains("hideFromView")){t=i[o].moveTopButtonNode;break}t||(t=i[n].moveBottomButtonNode),e.categoryMoved({action:"Top",itemId:e.id,newIndex:0,originator:{source:"UI"}}),t.focus()},this._moveToBottomButtonClickHandler=function(){for(var t,i=e.getParent().getChildren(),n=i.indexOf(e),o=n+1;o<i.length;o++)if(!i[o].domNode.classList.contains("hideFromView")){t=i[o].moveBottomButtonNode;break}t||(t=i[n].moveTopButtonNode),e.categoryMoved({action:"Bottom",itemId:e.id,newIndex:i.length-1,originator:{source:"UI"}}),t.focus()},this._resetConfigurationLayoutListeners(),this.own(t.after(this,"addChild",function(e,t,i){t=t>=0?t:this.getChildren().length-1,e.set("displayState",this.displayState),e.set("galleryItemRowCount",this.galleryItemRowCount),this.dndSource&&this.dndSource.insertNodes(!1,[e.domNode],!1,this.getChildren()[t].domNode),e.favButtonNode.setAttribute("tabindex","0"),this.showHideCategory(),i&&["UI","addGalleryItemToFavorites"].indexOf(i.source)>-1?this.galleryStateChanged(!0):this.galleryStateChanged(!1)}.bind(this),!0)),this.own(t.after(this,"removeChild",function(e,t){this.showHideCategory(),t&&["UI","removeGalleryItemFromFavorites"].indexOf(t.source)>-1?this.galleryStateChanged(!0):this.galleryStateChanged(!1)}.bind(this),!0));var i=this._onMouseDown.bind(this);this.domNode.addEventListener("mousedown",i),this.own({remove:function(){this.domNode.removeEventListener("mousedown",i)}.bind(this)}),this.showHideCategory(),this._updateElementTitles(),this.titleNode.setAttribute("tabindex","0"),this.moveTopButtonNode.setAttribute("tabindex","0"),this.moveBottomButtonNode.setAttribute("tabindex","0")},_updateElementTitles:function(){this.moveTopButtonNode.title=d.navTop,this.moveBottomButtonNode.title=d.navBottom},_resetConfigurationLayoutListeners:function(){var e=this;e._removeConfigurationLayoutListeners&&e._removeConfigurationLayoutListeners(),e.moveTopButtonNode.addEventListener("click",e._moveToTopButtonClickHandler),e.moveBottomButtonNode.addEventListener("click",e._moveToBottomButtonClickHandler),e._removeConfigurationLayoutListeners=function(){e.moveTopButtonNode&&e._moveToTopButtonClickHandler&&e.moveTopButtonNode.removeEventListener("click",e._moveToTopButtonClickHandler),e.moveBottomButtonNode&&e._moveToBottomButtonClickHandler&&e.moveBottomButtonNode.removeEventListener("click",e._moveToBottomButtonClickHandler),delete e._removeConfigurationLayoutListeners},e.own({remove:e._removeConfigurationLayoutListeners})},showHideCategory:function(e){if(e||(e=this),0===e.getChildren().length){if(e.get("hideWhenEmpty"))return e.containerNode.textContent="",e.containerNode.classList.remove("mwEmptyNode"),void e.domNode.classList.add("hideFromView");e.containerNode.textContent=d.emptyCategoryPlaceholder,e.containerNode.classList.add("mwEmptyNode")}else 3===e.containerNode.firstChild.nodeType?e.containerNode.removeChild(e.containerNode.firstChild):3===e.containerNode.lastChild.nodeType&&e.containerNode.removeChild(e.containerNode.lastChild),e.containerNode.classList.remove("mwEmptyNode");e.domNode.classList.remove("hideFromView")},_setHideWhenEmptyAttr:function(e){if("boolean"!=typeof e)throw new Error("Expected input value to be of type 'boolean'.");this._set("hideWhenEmpty",e)},_setDndEnabledAttr:function(e){if("boolean"!=typeof e)throw new Error("Expected input value to be of type 'boolean'.");this._set("dndEnabled",e),e?this._createDndSource():this._destroyDndSource()},_setIconAttr:function(e){if(!this.get("isFavoriteCategory")){if("string"!=typeof e&&m.indexOf(e)<0)throw new Error("Expected input value to be of type 'string'.");this.get("icon")&&this.titleIconNode.classList.remove(this.get("icon")),""!==e&&this.titleIconNode.classList.add(e),this._set("icon",e)}},_setIsFavoriteCategoryAttr:function(e){e?(this.get("icon")&&this.titleIconNode.classList.remove(this.get("icon")),this.titleIconNode.classList.add("starTitle")):(this.titleIconNode.classList.remove("starTitle"),this.get("icon")&&this.titleIconNode.classList.add(this.get("icon"))),this._set("isFavoriteCategory",e),this._createDndSource()},_setDisplayStateAttr:function(e){this.getChildren().forEach((function(t){t.set("displayState",e)})),this._set("displayState",e),this._createDndSource()},_setTitleAttr:function(e){""===e?(this.header.style.display="none",this.domNode.title=""):(this.header.style.display="flex",this.domNode.title=e),this.titleNode.textContent=e,this._set("title",e)},_setTagAttr:function(e){if("string"!=typeof e)throw new Error('Expected inpute argument to be of type "string"');this._set("tag",e),this.domNode.dataset.tag=e},_setReorderCategoryAttr:function(e){this.controlsNode.style.display=!1===e?"none":null},_setGalleryItemRowCountAttr:function(e){this._set("galleryItemRowCount",e),this.getChildren().forEach(function(e){e.set("galleryItemRowCount",this.galleryItemRowCount)}.bind(this))},isEligibleForQab:function(){return!!this.getParent()&&this.getParent().get("qabEligible")},_onMouseDown:function(){this.dndSource&&this.dndSource.selectNone.call(this.dndSource)},_createDndSource:function(){var e,i=this,n={};this.dndEnabled&&(this.displayState===p.ICON&&(n={horizontal:!0}),this._destroyDndSource(),this._dndAspects=[],this.dndSource=new o(this.containerNode,n),u.registerMakeAvatar(i.dndSource,(function(){return new g(this)})),e=t.around(this.dndSource,"onDrop",(function(e){return function(t,n){(t.node===i.containerNode||"GalleryFavoriteCategory"!==t.node.parentElement.dataset.type&&"GalleryFavoriteCategory"!==i.domNode.dataset.type)&&(e.call(this,t,n),i.dndSource.selectNone.call(i.dndSource),i._onContainerDropHandler(t,n),i.showHideCategory(a.getEnclosingWidget(t.node)),i.showHideCategory())}})),this._dndAspects.push(e),this.own(e),this.dndSourceHeader=new r(this.headerDropNode,{}),u.registerMakeAvatar(i.dndSourceHeader,(function(){return new g(this)})),e=t.around(this.dndSourceHeader,"onDrop",(function(e){return function(t,n){i._onHeaderDropHandlerBefore(t,n),(t.node===i.containerNode||"GalleryFavoriteCategory"!==t.node.parentElement.dataset.type&&"GalleryFavoriteCategory"!==i.domNode.dataset.type)&&(e.call(this,t,n),i.dndSourceHeader.selectNone.call(i.dndSourceHeader),i._onHeaderDropHandlerAfter(t,n),i.showHideCategory(a.getEnclosingWidget(t.node)),i.showHideCategory())}})),this._dndAspects.push(e),this.own(e),e=t.after(this.dndSourceHeader,"onDraggingOver",(function(e,t){i.headerDropNode.classList.add("mwHeaderDropNodeDragOver")}),!0),this._dndAspects.push(e),this.own(e),e=t.after(this.dndSourceHeader,"onDraggingOut",(function(e,t){i.headerDropNode.classList.remove("mwHeaderDropNodeDragOver")}),!0),this._dndAspects.push(e),this.own(e))},_destroyDndSource:function(){this._dndAspects&&(this._dndAspects.forEach((function(e){e.remove()})),delete this._dndAspects),this.dndSource&&(u.unregisterMakeAvatar(this.dndSource),this.dndSource.destroy(),delete this.dndSource),this.dndSourceHeader&&(u.unregisterMakeAvatar(this.dndSourceHeader),this.dndSourceHeader.destroy(),delete this.dndSourceHeader)},onDrop:function(){this.emit("drop")},_onContainerDropHandler:function(e,t){var i,n,o=t[0];n=a.getEnclosingWidget(o),i=this.getIndexOfChild(n),this.itemMoved({itemId:n.id,parentId:this.id,newIndex:i,originator:{source:"UI"}},{widget:n,sourceData:e,targetWidget:this})},_onHeaderDropHandlerBefore:function(e,t){this.headerDropNode.classList.remove("mwHeaderDropNodeDragOver"),this.dndSourceHeader.before=!0,this.dndSourceHeader.current=this.containerNode.firstChild},_onHeaderDropHandlerAfter:function(e,t){var i,n,o=t[0];t.forEach(function(e){var t=this.dndSourceHeader._normalizedCreator(e);this.dndSourceHeader.delItem(t.node.id),this.dndSource.setItem(t.node.id,{data:t.data,type:t.type})}.bind(this)),n=a.getEnclosingWidget(o),i=this.displayState===p.ICON?this.getChildren().length:0,this.itemMoved({itemId:n.id,parentId:this.id,newIndex:i,originator:{source:"UI"}},{widget:n,sourceData:e,targetWidget:this})},_qeMoveToTopClick:function(){this._moveToTopButtonClickHandler()},_qeMoveToBottomClick:function(){this._moveToBottomButtonClickHandler()},galleryStateChanged:function(e){var t=this.getParent();t&&(e?t.galleryStateChanged&&t.galleryStateChanged():t.refreshGallery&&t.refreshGallery())},categoryMoved:function(e){this.emit("categorymoved",{data:e})},itemMoved:function(e,t){this.emit("itemmoved",{mwEventData:{widget:t.widget,parent:t.targetWidget,index:e.newIndex,originator:e.originator}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(240),i(204),i(227),i(211),i(257),i(1075),i(206),i(248),i(660),i(3127)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=t("dojo.dnd.Selector",u,{constructor:function(e,t){t||(t={}),this.singular=t.singular,this.autoSync=t.autoSync,this.selection={},this.anchor=null,this.simpleSelection=!1,this.events.push(l(this.node,c.press,n.hitch(this,"onMouseDown")),l(this.node,c.release,n.hitch(this,"onMouseUp")))},singular:!1,getSelectedNodes:function(){var e=new s,t=d._empty;for(var i in this.selection)i in t||e.push(o.byId(i));return e},selectNone:function(){return this._removeSelection()._removeAnchor()},selectAll:function(){return this.forInItems((function(e,t){this._addItemClass(o.byId(t),"Selected"),this.selection[t]=1}),this),this._removeAnchor()},deleteSelectedNodes:function(){var e=d._empty;for(var t in this.selection)if(!(t in e)){var i=o.byId(t);this.delItem(t),r.destroy(i)}return this.anchor=null,this.selection={},this},forInSelectedItems:function(e,t){t=t||i.global;var n=this.selection,o=d._empty;for(var r in n)r in o||e.call(t,this.getItem(r),r,this)},sync:function(){h.superclass.sync.call(this),this.anchor&&(this.getItem(this.anchor.id)||(this.anchor=null));var t=[],i=d._empty;for(var n in this.selection)n in i||this.getItem(n)||t.push(n);return e.forEach(t,(function(e){delete this.selection[e]}),this),this},insertNodes:function(e,t,i,n){var o=this._normalizedCreator;return this._normalizedCreator=function(t,i){var n=o.call(this,t,i);return e?(this.anchor?this.anchor!=n.node&&(this._removeItemClass(n.node,"Anchor"),this._addItemClass(n.node,"Selected")):(this.anchor=n.node,this._removeItemClass(n.node,"Selected"),this._addItemClass(this.anchor,"Anchor")),this.selection[n.node.id]=1):(this._removeItemClass(n.node,"Selected"),this._removeItemClass(n.node,"Anchor")),n},h.superclass.insertNodes.call(this,t,i,n),this._normalizedCreator=o,this},destroy:function(){h.superclass.destroy.call(this),this.selection=this.anchor=null},onMouseDown:function(e){if(this.autoSync&&this.sync(),this.current){if(!this.singular&&!d.getCopyKeyState(e)&&!e.shiftKey&&this.current.id in this.selection)return this.simpleSelection=!0,void(a.isLeft(e)&&(e.stopPropagation(),e.preventDefault()));if(!this.singular&&e.shiftKey){d.getCopyKeyState(e)||this._removeSelection();var t=this.getAllNodes();if(t.length&&(this.anchor||(this.anchor=t[0],this._addItemClass(this.anchor,"Anchor")),this.selection[this.anchor.id]=1,this.anchor!=this.current)){for(var i,n=0;n<t.length&&((i=t[n])!=this.anchor&&i!=this.current);++n);for(++n;n<t.length&&((i=t[n])!=this.anchor&&i!=this.current);++n)this._addItemClass(i,"Selected"),this.selection[i.id]=1;this._addItemClass(this.current,"Selected"),this.selection[this.current.id]=1}}else this.singular?this.anchor==this.current?d.getCopyKeyState(e)&&this.selectNone():(this.selectNone(),this.anchor=this.current,this._addItemClass(this.anchor,"Anchor"),this.selection[this.current.id]=1):d.getCopyKeyState(e)?this.anchor==this.current?(delete this.selection[this.anchor.id],this._removeAnchor()):this.current.id in this.selection?(this._removeItemClass(this.current,"Selected"),delete this.selection[this.current.id]):(this.anchor&&(this._removeItemClass(this.anchor,"Anchor"),this._addItemClass(this.anchor,"Selected")),this.anchor=this.current,this._addItemClass(this.current,"Anchor"),this.selection[this.current.id]=1):this.current.id in this.selection||(this.selectNone(),this.anchor=this.current,this._addItemClass(this.current,"Anchor"),this.selection[this.current.id]=1);e.stopPropagation(),e.preventDefault()}},onMouseUp:function(){this.simpleSelection&&(this.simpleSelection=!1,this.selectNone(),this.current&&(this.anchor=this.current,this._addItemClass(this.anchor,"Anchor"),this.selection[this.current.id]=1))},onMouseMove:function(){this.simpleSelection=!1},onOverEvent:function(){this.onmousemoveEvent=l(this.node,c.move,n.hitch(this,"onMouseMove"))},onOutEvent:function(){this.onmousemoveEvent&&(this.onmousemoveEvent.remove(),delete this.onmousemoveEvent)},_removeSelection:function(){var e=d._empty;for(var t in this.selection)if(!(t in e)){var i=o.byId(t);i&&this._removeItemClass(i,"Selected")}return this.selection={},this},_removeAnchor:function(){return this.anchor&&(this._removeItemClass(this.anchor,"Anchor"),this.anchor=null),this}});return h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(240),i(204),i(242),i(227),i(210),i(211),i(222),i(221),i(206),i(225),i(248),i(660)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=t("dojo.dnd.Container",l,{skipForm:!1,allowNested:!1,constructor:function(e,t){this.node=r.byId(e),t||(t={}),this.creator=t.creator||null,this.skipForm=t.skipForm,this.parent=t.dropParent&&r.byId(t.dropParent),this.map={},this.current=null,this.containerState="",a.add(this.node,"dojoDndContainer"),t&&t._skipStartup||this.startup(),this.events=[d(this.node,h.over,n.hitch(this,"onMouseOver")),d(this.node,h.out,n.hitch(this,"onMouseOut")),d(this.node,"dragstart",n.hitch(this,"onSelectStart")),d(this.node,"selectstart",n.hitch(this,"onSelectStart"))]},creator:function(){},getItem:function(e){return this.map[e]},setItem:function(e,t){this.map[e]=t},delItem:function(e){delete this.map[e]},forInItems:function(e,t){t=t||i.global;var n=this.map,o=p._empty;for(var r in n)r in o||e.call(t,n[r],r,this);return t},clearItems:function(){this.map={}},getAllNodes:function(){return u((this.allowNested?"":"> ")+".dojoDndItem",this.parent)},sync:function(){var e={};return this.getAllNodes().forEach((function(t){if(t.id){var i=this.getItem(t.id);if(i)return void(e[t.id]=i)}else t.id=p.getUniqueId();var n=t.getAttribute("dndType"),o=t.getAttribute("dndData");e[t.id]={data:o||t.innerHTML,type:n?n.split(/\s*,\s*/):["text"]}}),this),this.map=e,this},insertNodes:function(e,t,i){var n,o;if(this.parent.firstChild?t?i||(i=this.parent.firstChild):i&&(i=i.nextSibling):i=null,i)for(n=0;n<e.length;++n)o=this._normalizedCreator(e[n]),this.setItem(o.node.id,{data:o.data,type:o.type}),i.parentNode.insertBefore(o.node,i);else for(n=0;n<e.length;++n)o=this._normalizedCreator(e[n]),this.setItem(o.node.id,{data:o.data,type:o.type}),this.parent.appendChild(o.node);return this},destroy:function(){e.forEach(this.events,(function(e){e.remove()})),this.clearItems(),this.node=this.parent=this.current=null},markupFactory:function(e,t,i){return e._skipStartup=!0,new i(t,e)},startup:function(){if(!this.parent&&(this.parent=this.node,"table"==this.parent.tagName.toLowerCase())){var e=this.parent.getElementsByTagName("tbody");e&&e.length&&(this.parent=e[0])}this.defaultCreator=p._defaultCreator(this.parent),this.sync()},onMouseOver:function(e){for(var t=e.relatedTarget;t&&t!=this.node;)try{t=t.parentNode}catch(e){t=null}t||(this._changeState("Container","Over"),this.onOverEvent()),t=this._getChildByEvent(e),this.current!=t&&(this.current&&this._removeItemClass(this.current,"Over"),t&&this._addItemClass(t,"Over"),this.current=t)},onMouseOut:function(e){for(var t=e.relatedTarget;t;){if(t==this.node)return;try{t=t.parentNode}catch(e){t=null}}this.current&&(this._removeItemClass(this.current,"Over"),this.current=null),this._changeState("Container",""),this.onOutEvent()},onSelectStart:function(e){this.skipForm&&p.isFormElement(e)||(e.stopPropagation(),e.preventDefault())},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(e,t){var i="dojoDnd"+e,n=e.toLowerCase()+"State";a.replace(this.node,i+t,i+this[n]),this[n]=t},_addItemClass:function(e,t){a.add(e,"dojoDndItem"+t)},_removeItemClass:function(e,t){a.remove(e,"dojoDndItem"+t)},_getChildByEvent:function(e){var t=e.target;if(t)for(var i=t.parentNode;i;i=(t=i).parentNode)if((i==this.parent||this.allowNested)&&a.contains(t,"dojoDndItem"))return t;return null},_normalizedCreator:function(e,t){var i=(this.creator||this.defaultCreator).call(this,e,t);return n.isArray(i.type)||(i.type=["text"]),i.node.id||(i.node.id=p.getUniqueId()),a.add(i.node,"dojoDndItem"),i}});return p._createNode=function(e){return e?function(t){return s.create(e,{innerHTML:t})}:p._createSpan},p._createTrTd=function(e){var t=s.create("tr");return s.create("td",{innerHTML:e},t),t},p._createSpan=function(e){return s.create("span",{innerHTML:e})},p._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"},p._defaultCreator=function(e){var t=e.tagName.toLowerCase(),i="tbody"==t||"thead"==t?p._createTrTd:p._createNode(p._defaultCreatorNodes[t]);return function(e,t){var o,r,a,s=e&&n.isObject(e);return s&&e.tagName&&e.nodeType&&e.getAttribute?(o=e.getAttribute("dndData")||e.innerHTML,r=(r=e.getAttribute("dndType"))?r.split(/\s*,\s*/):["text"],a=e):(o=s&&e.data?e.data:e,r=s&&e.type?e.type:["text"],a=("avatar"==t?p._createSpan:i)(String(o))),a.id||(a.id=p.getUniqueId()),{node:a,data:o,type:r}}},f}),e,t),e.exports=o},function(e,t){e.exports="<div class=\"Category\"\n ><div data-dojo-attach-point='header' class=\"categoryHeader\"\n ><div data-dojo-attach-point='headerDropNode' class='mwHeaderDropNode'><span class=\"mwFirstDnDChildNode\"><span></div\n ><div data-dojo-attach-point='titleIconContainer' class='titleIconContainer'\n ><div data-dojo-attach-point='titleIconNode' class='titleIcon'></div\n ></div\n ><div data-dojo-attach-point='titleNode' class='categoryTitle'></div\n ><div data-dojo-attach-point='controlsNode' class='controlsNode' title\n ><div data-dojo-attach-point='moveTopButtonNode' class='control moveTopButton'></div\n ><div data-dojo-attach-point='moveBottomButtonNode' class='control moveBottomButton'></div\n ></div\n ></div\n ><div data-dojo-attach-point=\"containerNode\" class='gridWrapperNode'\n ></div\n></div>\n"},function(e,t,i){var n,o;n=[i(203),i(210),i(217),i(211),i(225),i(231)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{constructor:function(e){this.manager=e,this.construct()},construct:function(){var e,a,s,l,c,d,u;a=(e=this.manager.nodes[0]).cloneNode(!0),s=i.position(e),a.style.width=s.w+"px",a.style.height=s.h+"px",l=o(".itemWrapper",a)[0],u=r.getEnclosingWidget(e).getParent(),d=r.byId(u.get("galleryPopupId")),c=n.create("div",{class:d.domNode.getAttribute("class")}),t.remove(c,"galleryPopup"),c.style.position="absolute",c.style.zIndex="1999",c.opacity=.7,t.remove(a,"dojoDndItemOver dojoDndItem dojoDndItemAnchor"),t.add(a,"galleryItemAvatar"),t.remove(l),t.add(l,"itemWrapper"),n.place(a,c),this.node=c},destroy:function(){n.destroy(this.node),this.node=!1},update:function(){t.toggle(this.node,"dojoDndAvatarCanDrop",this.manager.canDropFlag)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(238),i(214),i(203),i(204),i(223),i(225),i(1328),i(331),i(409),i(796),i(1767),i(1768)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return i([a,l],{baseClass:"mwWidget mwSplitButton mwColorPickerButton",visualFamily:"default",selectedColor:"#ff0000",recentColorsMode:d.DEFAULT,closeOnColorSelection:!0,autoColor:"#000000",displayView:"standard",showAuto:!1,showNone:!1,showFlat:!1,showInterp:!1,showTexturemap:!1,swatchColor:"#000000",swatchColorMode:u.AUTO,constructor:function(){this._colorPickerMenu=new s,this._colorPicker=new c,this._colorPicker.startup(),this._swatchNode=document.createElement("div"),this.own(this._colorPickerMenu),this.own(this._colorPicker),this._setupListeners()},_setupListeners:function(){var e=this.watch("selectedColor",(function(e,t,i){this.swatchColorMode===u.AUTO&&t!==i&&this.set("swatchColor",i)}));this.own(e)},buildRendering:function(){this.inherited(arguments),this._colorPickerMenu.addChild(this._colorPicker),this._swatchNode.classList.add("mwColorSwatchNode"),this.iconNode.appendChild(this._swatchNode),this.set("menu",this._colorPickerMenu)},_setSelectedColorAttr:function(e){if("string"!=typeof e)throw new Error("'selectedColor' property expects a literal string!");this._validateColor(e),this._set("selectedColor",e),this._updatePreview()},_setRecentlyUsedColorsAttr:function(e){this._colorPicker.set("recentlyUsedColors",e),this._set("recentlyUsedColors",e)},_getRecentlyUsedColorsAttr:function(){return this._colorPicker.get("recentlyUsedColors")},_setRecentColorsTitleAttr:function(e){this._colorPicker.set("recentColorsTitle",e),this._set("recentColorsTitle",e)},_setRecentColorsModeAttr:function(e){this._set("recentColorsMode",e)},_setAutoColorAttr:function(e){this._colorPicker.set("autoColor",e),this._set("autoColor",e)},_getAutoColorAttr:function(){return this._colorPicker.get("autoColor")},_setDisplayViewAttr:function(e){this._colorPicker.set("displayView",e),this._set("displayView",e)},_getDisplayViewAttr:function(){return this._colorPicker.get("displayView")},_setShowAutoAttr:function(e){this._colorPicker.set("showAuto",e),this._set("showAuto",e)},_getShowAutoAttr:function(){return this._colorPicker.get("showAuto")},_setShowNoneAttr:function(e){this._colorPicker.set("showNone",e),this._set("showNone",e)},_getShowNoneAttr:function(){return this._colorPicker.get("showNone")},_setShowFlatAttr:function(e){this._colorPicker.set("showFlat",e),this._set("showFlat",e)},_getShowFlatAttr:function(){return this._colorPicker.get("showFlat")},_setShowInterpAttr:function(e){this._colorPicker.set("showInterp",e),this._set("showInterp",e)},_getShowInterpAttr:function(){return this._colorPicker.get("showInterp")},_setShowTexturemapAttr:function(e){this._colorPicker.set("showTexturemap",e),this._set("showTexturemap",e)},_getShowTexturemapAttr:function(){return this._colorPicker.get("showTexturemap")},_setSwatchColorAttr:function(e){if("string"!=typeof e)throw new Error("'swatchColor' property expects a literal string!");var t;if(this._validateColor(e),this.swatchColorMode===u.AUTO){var i=this.get("selectedColor");t="auto"===i?this.get("autoColor"):i}else t="auto"===e?this.get("autoColor"):e;this._swatchNode.style.backgroundColor=t,this.swatchColor=t},_setSwatchColorModeAttr:function(e){if("string"!=typeof e)throw new Error("'swatchColorMode' property expects a literal string!");if(!Object.values(u).some((function(t){return t===e})))throw new Error("'swatchColorMode' property can be either 'auto' or 'manual'!");this.swatchColorMode=e},postCreate:function(){this.inherited(arguments),this.own(t.after(this._colorPicker.paletteNode,"_onCellClick",n.hitch(this,"_updateSelectedColor"))),this.own(t.after(this._colorPicker.recentColorsWidgetNode,"_onCellClick",n.hitch(this,"_updateSelectedColor"))),this.menu.domNode.addEventListener("close",this._handleMenuClose.bind(this)),this.menu.domNode.addEventListener("keydown",this._handleMenuKeyDown.bind(this)),this._colorPicker.domNode.addEventListener("keydown",this._handleColorPickerKeyDown.bind(this)),this.buttonNode.addEventListener("click",this._handleButtonClick.bind(this))},_handleButtonClick:function(){var e=this.swatchColorMode===u.AUTO?"selectedColor":"swatchColor",t=this.get(e);this._triggerChangeEvent(e,t,t)},_handleMenuClose:function(){setTimeout(function(){this._escapeKeyPressed||this._enterKeyPressedOnSpinner?(this._escapeKeyPressed=!1,this._enterKeyPressedOnSpinner=!1,this._updatePreview()):this._updateSelectedColor(!0)}.bind(this),0)},_handleMenuKeyDown:function(e){e.keyCode===o.DOWN_ARROW||e.keyCode===o.UP_ARROW?this._colorPicker.paletteNode.focus():e.keyCode===o.TAB?e.stopPropagation():e.keyCode===o.ESCAPE&&(this._escapeKeyPressed=!0)},_closeMenuOnColorSelection:function(){this.closeOnColorSelection&&this.closeMenu()},_handleColorPickerKeyDown:function(e){"INPUT"===e.target.tagName&&(e.keyCode===o.ENTER?(this._enterKeyPressedOnSpinner=!0,setTimeout(function(){this._updateSelectedColor()}.bind(this),100)):e.keyCode===o.ESCAPE&&this.set("selectedColor",this.get("selectedColor")))},_updatePreview:function(){this.get("selectedColor")!==this._colorPicker.value&&this._colorPicker.set("value",this.get("selectedColor"),!1)},_updateRecentColors:function(){var e=this.get("selectedColor"),i=this._colorPicker.get("recentlyUsedColors"),o=i.indexOf(e);-1!==o&&o<i.length?i.splice(o,1):i.length>=7&&i.pop(),i.unshift(e),this._colorPicker.set("recentlyUsedColors",i),this.own(t.after(this._colorPicker.recentColorsWidgetNode,"_onCellClick",n.hitch(this,"_updateSelectedColor")))},_updateSelectedColor:function(e){var t=this.get("selectedColor"),i=this._colorPicker.get("value");t!==i?(this.set("selectedColor",i),this.recentColorsMode===d.DEFAULT&&this._updateRecentColors(),this._triggerChangeEvent("selectedColor",t,i)):e||this._triggerChangeEvent("selectedColor",t,i),this._closeMenuOnColorSelection()},_validateColor:function(e){var t=this._isRGBOrHex(e);if("invalid"===t)throw new Error("'color' invalid value!");if("auto"===t);else if("hex"===t){if(!/[0-9a-f]{6}/i.test(e))throw new Error("'color' invalid value!")}else if("rgb"===t){var i,n=e.length,o=(e=e.substring(4,n-1)).split(",");if(3!==o.length)throw new Error("'color' invalid value!");if(o.forEach((function(e){(e=parseFloat(e))%1!=0&&(i=!0)})),i){if(this._checkRGBDouble(o))throw new Error("'color' invalid value!")}else if(this._checkRGBInt(o))throw new Error("''color' invalid value!")}},_isRGBOrHex:function(e){return 0===e.indexOf("#")?"hex":0===e.indexOf("rgb")?"rgb":0===e.indexOf("auto")?"auto":"invalid"},_checkRGBDouble:function(e){for(var t=0;t<3;t++){var i=parseFloat(e[t]);if(i<0||i>1)return!0}},_checkRGBInt:function(e){for(var t=0;t<3;t++){var i=parseInt(e[t]);if(i<0||i>255)return!0}},_qeUpdateSelectedColor:function(){this._updateSelectedColor()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(236),i(228),i(213),i(206),i(225),i(3132),i(216),i(215),i(571),i(3133),i(3134),i(1077)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=e([c,l,s],{palette:[],title:p.standardColors,showTitle:!0,_setTitleAttr:{node:"titleNode",type:"innerText"},baseClass:"mwColorPalette",templateString:u,constructor:function(){this._set("palette",d.getStandardColors()),this.inherited(arguments)},buildRendering:function(){this.inherited(arguments),this.dyeClass=f._Color,this._preparePalette(this.palette,{})},startup:function(){this.inherited(arguments),this._addPreviewChangeEventListener()},_addPreviewChangeEventListener:function(){for(var e=this.gridNode.querySelectorAll(".dijitPaletteCell"),t=0;t<e.length;t++){var i=e[t];i.addEventListener("mouseenter",this._emitPreviewChangeEvent.bind(this)),i.addEventListener("mouseleave",this._emitPreviewChangeEvent.bind(this)),i.addEventListener("focus",this._emitPreviewChangeEvent.bind(this)),i.addEventListener("blur",this._emitPreviewChangeEvent.bind(this))}},_removePreviewChangeEventListener:function(){for(var e=this.gridNode.querySelectorAll(".dijitPaletteCell"),t=0;t<e.length;t++){var i=e[t];i.removeEventListener("mouseenter",this._emitPreviewChangeEvent.bind(this)),i.removeEventListener("mouseleave",this._emitPreviewChangeEvent.bind(this)),i.removeEventListener("focus",this._emitPreviewChangeEvent.bind(this)),i.removeEventListener("blur",this._emitPreviewChangeEvent.bind(this))}},_setShowTitleAttr:function(e){this._set("showTitle",e),e?this.titleNode.classList.remove("mwColorPaletteTitleHidden"):this.titleNode.classList.add("mwColorPaletteTitleHidden")},_emitPreviewChangeEvent:function(e){var t;"mouseenter"!==e.type&&"focus"!==e.type||(t=this._getPaletteCellColor(e.target)),this.emit("previewchange",{value:t,eventData:e})},_getPaletteCellColor:function(e){var t=e.getElementsByClassName("mwColorPaletteSwatch")[0];return new d(t.style.backgroundColor).toHex()},destroy:function(){this._removePreviewChangeEventListener(),this.inherited(arguments)}});return f._Color=e([d],{template:h,getValue:function(){return this.toHex()},fillCell:function(e){var o=i.substitute(this.template,{color:this.toHex(),title:this.toMATLABFriendlyName()});n.set(e,"title",this.toMATLABFriendlyName()),t.place(o,e)}}),f}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(210),i(211),i(223),i(204),i(206),i(316),i(487),i(238),i(896)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e("dijit._PaletteMixin",s,{defaultTimeout:500,timeoutChangeRate:.9,value:"",_selectedCell:-1,tabIndex:"0",cellClass:"dijitPaletteCell",dyeClass:null,_dyeFactory:function(e){return new("string"==typeof this.dyeClass?r.getObject(this.dyeClass):this.dyeClass)(e)},_preparePalette:function(e,t){this._cells=[];var i=this._blankGif;this.own(a(this.gridNode,l,r.hitch(this,"_onCellClick")));for(var s=0;s<e.length;s++)for(var c=n.create("tr",{tabIndex:"-1",role:"row"},this.gridNode),u=0;u<e[s].length;u++){var h=e[s][u];if(h){var p=this._dyeFactory(h,s,u,t[h]),f=n.create("td",{class:this.cellClass,tabIndex:"-1",title:t[h],role:"gridcell"},c);p.fillCell(f,i),f.idx=this._cells.length,this._cells.push({node:f,dye:p})}}this._xDim=e[0].length,this._yDim=e.length;var g={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:this.isLeftToRight()?1:-1,LEFT_ARROW:this.isLeftToRight()?-1:1};for(var m in g)this.own(d.addKeyListener(this.domNode,{keyCode:o[m],ctrlKey:!1,altKey:!1,shiftKey:!1},this,function(){var e=g[m];return function(t){this._navigateByKey(e,t)}}(),this.timeoutChangeRate,this.defaultTimeout))},postCreate:function(){this.inherited(arguments),this._setCurrent(this._cells[0].node)},focus:function(){c.focus(this._currentFocus)},_onCellClick:function(e){for(var t=e.target;"TD"!=t.tagName;){if(!t.parentNode||t==this.gridNode)return;t=t.parentNode}var i=this._getDye(t).getValue();this._setCurrent(t),c.focus(t),this._setValueAttr(i,!0),e.stopPropagation(),e.preventDefault()},_setCurrent:function(e){"_currentFocus"in this&&t.set(this._currentFocus,"tabIndex","-1"),this._currentFocus=e,e&&t.set(e,"tabIndex",this.tabIndex)},_setValueAttr:function(e,t){if(this._selectedCell>=0&&i.remove(this._cells[this._selectedCell].node,this.cellClass+"Selected"),this._selectedCell=-1,e)for(var n=0;n<this._cells.length;n++)if(e==this._cells[n].dye.getValue()){this._selectedCell=n,i.add(this._cells[n].node,this.cellClass+"Selected");break}this._set("value",this._selectedCell>=0?e:null),(t||void 0===t)&&this.onChange(e)},onChange:function(){},_navigateByKey:function(e,t){if(-1!=t){var i=this._currentFocus.idx+e;if(i<this._cells.length&&i>-1){var n=this._cells[i].node;this._setCurrent(n),this.defer(r.hitch(c,"focus",n))}}},_getDye:function(e){return this._cells[e.idx].dye}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijitInline mwDisableSelection"\n ><span data-dojo-attach-point="titleNode" class="${baseClass}Title">${!title}</span\n ><table dojoAttachPoint="paletteTableNode" class="dijitPaletteTable" cellSpacing="0" cellPadding="0"\n ><tbody data-dojo-attach-point="gridNode"></tbody\n ></table\n></div>'},function(e,t){e.exports='<div class="dijitInline mwPaletteDiv"\n ><div title="${title}" class="mwColorPaletteSwatch" style="background-color: ${color}" data-test-id="${color}"></div\n></div>\n'},function(e,t,i){e.exports={ok:"OK",cancel:"キャンセル",standardColors:"標準の色",customColors:"カスタム色",recentColors:"最近使用した色",preview:"プレビュー",redTitle:"R",greenTitle:"G",blueTitle:"B",hexTitle:"16 進数",hueTitle:"H",saturationTitle:"S",valueTitle:"V",doubleLabel:"RGB [0-1]",intLabel:"RGB [0-255]",hexLabel:"16 進数",hsvLabel:"HSV",auto:"自動",none:"なし",flat:"フラット",interp:"内挿",texturemap:"テクスチャマップ",invalidHexErrorMessage:"値は有効な 16 進数形式でなければなりません。"}},function(e,t,i){e.exports={ok:"确定",cancel:"取消",standardColors:"标准颜色",customColors:"自定义颜色",recentColors:"最近使用的颜色",preview:"预览",redTitle:"R",greenTitle:"G",blueTitle:"B",hexTitle:"十六进制",hueTitle:"H",saturationTitle:"S",valueTitle:"V",doubleLabel:"RGB [0-1]",intLabel:"RGB [0-255]",hexLabel:"十六进制",hsvLabel:"HSV",auto:"自动",none:"无",flat:"单一着色",interp:"插补着色",texturemap:"纹理映射",invalidHexErrorMessage:"值必须为有效的十六进制格式。"}},function(e,t,i){e.exports={ok:"확인",cancel:"취소",standardColors:"표준 색",customColors:"사용자 지정 색",recentColors:"최근에 사용한 색",preview:"미리보기",redTitle:"R",greenTitle:"G",blueTitle:"B",hexTitle:"16진수",hueTitle:"H",saturationTitle:"S",valueTitle:"V",doubleLabel:"RGB [0~1]",intLabel:"RGB [0~255]",hexLabel:"16진수",hsvLabel:"HSV",auto:"자동",none:"없음",flat:"평탄",interp:"보간",texturemap:"Texturemap",invalidHexErrorMessage:"값은 유효한 16진수 형식이어야 합니다."}},function(e,t,i){e.exports={root:{ok:"OK",cancel:"Cancel",standardColors:"Standard Colors",customColors:"Custom Colors",recentColors:"Recent Colors",preview:"Preview",redTitle:"R",greenTitle:"G",blueTitle:"B",hexTitle:"Hex",hueTitle:"H",saturationTitle:"S",valueTitle:"V",doubleLabel:"RGB [0-1]",intLabel:"RGB [0-255]",hexLabel:"Hex",hsvLabel:"HSV",auto:"Auto",none:"None",flat:"Flat",interp:"Interp",texturemap:"Texturemap",invalidHexErrorMessage:"Value must be in a valid hexadecimal form."},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(203),i(213),i(215),i(216),i(255),i(286),i(520),i(258),i(269),i(571),i(3144),i(1077)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h={value:0,step:.01,width:67,errorText:"Value must be between 0 and 1.",format:"%.2f",height:22,horizontalAlignment:"right",includeMaximum:!0,includeMinimum:!0,limits:{minimum:0,maximum:1},precisionValue:2,roundValueToInt:!1},p={step:1,width:67,errorText:"Value must be between 0 and 255.",format:"%.0f",height:22,horizontalAlignment:"right",includeMaximum:!0,includeMinimum:!0,limits:{minimum:0,maximum:255},roundValueToInt:!0},f={pattern:"^#[0-9a-f]{6}",required:!0,selectOnClick:!0,intermediateChanges:!0,width:206,height:22,horizontalAlignment:"center",style:"font-size: 12px;"},g={step:1,width:67,errorText:"Value must be between 0 and 360.",format:"%.0f",height:22,horizontalAlignment:"right",includeMaximum:!0,includeMinimum:!0,limits:{minimum:0,maximum:360},roundValueToInt:!0},m={step:1,width:67,errorText:"Value must be between 0 and 100.",format:"%.0f",height:22,includeMaximum:!0,includeMinimum:!0,limits:{minimum:0,maximum:100},roundValueToInt:!0};return e([i,n,o],{value:"#000000",baseClass:"mwColorSpinner",templateString:d,_redTitle:u.redTitle,_greenTitle:u.greenTitle,_blueTitle:u.blueTitle,_hexTitle:u.hexTitle,_hueTitle:u.hueTitle,_saturationTitle:u.saturationTitle,_valueTitle:u.valueTitle,_DOUBLE_LABEL:u.doubleLabel,_INT_LABEL:u.intLabel,_HEX_LABEL:u.hexLabel,_HSV_LABEL:u.hsvLabel,_handleChangeFcn:{},postCreate:function(){this.inherited(arguments),this.comboBox.set("items",[{label:this._DOUBLE_LABEL,value:this._DOUBLE_LABEL},{label:this._INT_LABEL,value:this._INT_LABEL},{label:this._HEX_LABEL,value:this._HEX_LABEL},{label:this._HSV_LABEL,value:this._HSV_LABEL}]),this.comboBox.set("value",this._DOUBLE_LABEL),this.comboBox.set("width",206),this.comboBox.set("blurAfterSelection",!1),this.own(this.comboBox.on("change",this._changeColorModel.bind(this)),this.spinnerNode1.on("change",this._handleSpinnerChange.bind(this)),this.spinnerNode2.on("change",this._handleSpinnerChange.bind(this)),this.spinnerNode3.on("change",this._handleSpinnerChange.bind(this)),this.hexTextField.on("change",this._handleHexChange.bind(this))),this._handleChangeFcn=this._handleDoubleSpinnerChange.bind(this),this._updateSpinnerValues(new c(this.value)),this._setLabelsToRGB(),this._setSpinnerProps(h),this.hexTextField.set(f)},_setValueAttr:function(e){var t=new c(e);this._set("value",t.toHex()),this._updateSpinnerValues(t)},_changeColorModel:function(e){e.stopPropagation();var t=this.comboBox.get("value");t===this._DOUBLE_LABEL?(this._setSpinnerProps(h),this._setLabelsToRGB(),this._handleChangeFcn=this._handleDoubleSpinnerChange.bind(this)):t===this._INT_LABEL?(this._setSpinnerProps(p),this._setLabelsToRGB(),this._handleChangeFcn=this._handleIntSpinnerChange.bind(this)):t===this._HEX_LABEL?(this.hexTextField.set("value",this.get("value")),this._showHex()):t===this._HSV_LABEL&&(this._hideHex(),this._setLabelsToHSV(),this.spinnerNode1.set(g),this.spinnerNode2.set(m),this.spinnerNode3.set(m),this._handleChangeFcn=this._handleHsvSpinnerChange.bind(this)),this._updateSpinnerValues(new c(this.get("value")))},_updateSpinnerValues:function(e){var t=this.comboBox.get("value");t===this._DOUBLE_LABEL?this._updateDoubleValues(e):t===this._INT_LABEL?this._updateIntValues(e):t===this._HEX_LABEL?(this.hexTextField.set("value",e.toHex()),this.hexTextField.set("validationState","normal")):t===this._HSV_LABEL&&this._updateHsvValues(e)},_updateDoubleValues:function(e){var t=e.toDoubleRGB();t=t.map((function(e){return Math.round(100*e)/100})),this._setSpinnerValues(t)},_updateIntValues:function(e){var t=e.toRgb();this._setSpinnerValues(t)},_updateHsvValues:function(e){var t=e.toRgb(),i=c.toHSV([t[0],t[1],t[2]]);this._setSpinnerValues(i)},_handleSpinnerChange:function(e){e.stopPropagation();var t=[this.spinnerNode1.get("value"),this.spinnerNode2.get("value"),this.spinnerNode3.get("value")];this._handleChangeFcn(t)},_handleDoubleSpinnerChange:function(e){var t=c.fromDoubleRGB(e);this._setValueAndEmitChange(t.toHex())},_handleIntSpinnerChange:function(e){var t=e.map(Math.round),i=new c(t);this._setValueAndEmitChange(i.toHex())},_handleHsvSpinnerChange:function(e){var t=e.map(Math.round),i=t[0],n=t[1],o=t[2],r=c.fromHSV([i,n,o]),a=new c(r);this._setValueAndEmitChange(a.toHex())},_handleHexChange:function(e){e.stopPropagation();var t=this._parseAndGetHexValue();t&&(this.hexTextField.set("value",t),this._setValueAndEmitChange(t))},_parseAndGetHexValue:function(){var e=this.hexTextField.get("value");return/^#[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(e)?(this.hexTextField.set("validationState","normal"),new c(e).toHex()):(this.hexTextField.set("validationState","error"),this.hexTextField.set("errorText",u.invalidHexErrorMessage),null)},_setSpinnerValues:function(e){this.spinnerNode1.set("value",e[0]),this.spinnerNode2.set("value",e[1]),this.spinnerNode3.set("value",e[2])},_setSpinnerProps:function(e){this._hideHex(),this.spinnerNode1.set(e),this.spinnerNode2.set(e),this.spinnerNode3.set(e)},_showHex:function(){t.set(this.hexNode,"display",""),t.set(this.spinnersNode,"display","none")},_hideHex:function(){t.set(this.hexNode,"display","none"),t.set(this.spinnersNode,"display","")},_setLabelsToHSV:function(){this.titleNode1.set("text",this._hueTitle),this.titleNode2.set("text",this._saturationTitle),this.titleNode3.set("text",this._valueTitle)},_setLabelsToRGB:function(){this.titleNode1.set("text",this._redTitle),this.titleNode2.set("text",this._greenTitle),this.titleNode3.set("text",this._blueTitle)},_setValueAndEmitChange:function(e){var t=this.get("value");t!==e&&(this._set("value",e),this.emit("change",{mwEventData:{propertyName:"value",oldValue:t,newValue:e}}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(231),i(238),i(204),i(206),i(223)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{postCreate:function(){this.inherited(arguments),this.own(o(this,"keydown",n.hitch(this,"_handleKeyBoardNavigation")))},_handleKeyBoardNavigation:function(e){var t=i.curNode;e.keyCode===r.DOWN_ARROW?(this._handleDownArrow(t),e.preventDefault()):e.keyCode===r.UP_ARROW?(this._handleUpArrow(t),e.preventDefault()):e.keyCode===r.PAGE_UP||e.keyCode===r.HOME?(this._moveToFirstChild(t),e.preventDefault()):e.keyCode!==r.PAGE_DOWN&&e.keyCode!==r.END||(this._moveToLastChild(t),e.preventDefault())},_handleDownArrow:function(e){var t;e.parentElement.lastChild===e?(t=e.parentElement.firstChild,t=this._moveToNextFocusableNode(t)):(t=e.nextSibling,t=this._moveToNextFocusableNode(t)),t.focus()},_handleUpArrow:function(e){var t;e.parentElement.firstChild===e?(t=e.parentElement.lastChild,t=this._moveToPreviousFocusableNode(t)):(t=e.previousSibling,t=this._moveToPreviousFocusableNode(t)),t.focus()},_moveToNextFocusableNode:function(e){for(var i;e&&(i=t.getEnclosingWidget(e),e.getAttribute("data-refuse-key-nav")||i&&i.get("disabled")||"none"===e.style.display);)e=e.nextSibling?e.nextSibling:this._moveToFirstChild(e);return e},_moveToPreviousFocusableNode:function(e){for(var i;e&&(i=t.getEnclosingWidget(e),e.getAttribute("data-refuse-key-nav")||i&&i.get("disabled")||"none"===e.style.display);)e=e.previousSibling?e.previousSibling:this._moveToLastChild(e);return e},_moveToFirstChild:function(e){for(var t=e.parentElement.firstChild;t&&t.getAttribute("data-refuse-key-nav");)t=t.nextSibling;return t},_moveToLastChild:function(e){for(var t=e.parentElement.lastChild;t&&t.getAttribute("data-refuse-key-nav");)t=t.previousSibling;return t}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div class="mwComboBoxInnerContainer"><div class="mwTextFieldContainerNode" data-dojo-attach-point="textFieldContainerNode"></div><div class="mwArrowContainerNode" data-dojo-attach-point="arrowNode"><div class="mwArrowNode"></div></div></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(307)],o=i.dj.d(n,(function(e,t,i){var n=e(null,{format:"",constructor:function(){this.displayValueFormatter=null},postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwFormatMixin"),this.set("format",this.get("format"))},startup:function(){this.inherited(arguments),this._handleDisplayFormat()},_setFormatAttr:function(e){if("string"!=typeof e)return new Error("Format property expects a ''string");this._set("format",e),this._handleDisplayFormat()},_handleDisplayFormat:function(){var e=this.get("format"),i=parseFloat(this._textField.get("value"));if(i||0===i)if(e.match("%*[0-9|.]d")||e.indexOf("%i")>=0)this._textField.setValueInDom(parseFloat(i).toFixed(4)+e.substr(e.indexOf("d")+1,e.length));else if(e.match("%*[0-9|.]f")){var n=parseFloat(e.replace(/(.*\.)(.*)(f.*)/,"$2"));n||(n=0),this._textField.setValueInDom(i.toFixed(n)+e.substr(e.indexOf("f")+1,e.length))}else this.displayValueFormatter&&this.displayValueFormatter(this.get("value")).then(t.hitch(this,(function(e){this._textField.setValueInDom(e)})))},_onBlur:function(){this.inherited(arguments),"normal"===this.get("validationState")&&this._handleDisplayFormat(),this._formattedValueSet=!0}});return n._dependencies=[{mixin:i,orderDependent:!1}],n}),e,t),e.exports=o},function(e,t){e.exports='<div\n ><div class = "mwContainerNode" data-dojo-attach-point="containerNode"></div\n ><div class = "mwButtonsContainer" data-dojo-attach-point="buttonsContainerNode"\n ><div class = "mwIncrementButtonWrapper" data-dojo-attach-point="incrementButtonNodeWrapper"\n ><div class = "mwIncrementButton" data-dojo-attach-point="incrementButtonNode"\n ></div\n ></div\n ><div class = "mwDecrementButtonWrapper" data-dojo-attach-point="decrementButtonNodeWrapper"\n ><div class = "mwDecrementButton" data-dojo-attach-point="decrementButtonNode"\n ></div\n ></div\n ></div\n></div>'},function(e,t){e.exports='<div class="mwDisableSelection"\n ><div\n ><div class="${baseClass}ComboBox" data-dojo-type="mw-form/ComboBox" data-dojo-attach-point="comboBox"></div\n ></div\n ><div\n ><table\n ><tr data-dojo-attach-point="spinnersNode"\n ><td class="${baseClass}Column"\n ><div data-dojo-type="mw-form/Label" data-dojo-attach-point="titleNode1"\n ></div\n ><div class="${baseClass}Spinner" data-dojo-type="mw-form/Spinner" data-test-id="ColorSpinner1" data-dojo-attach-point="spinnerNode1"\n ></div\n ></td\n ><td class="${baseClass}Column"\n ><div data-dojo-type="mw-form/Label" data-dojo-attach-point="titleNode2"\n ></div\n ><div class="${baseClass}Spinner" data-dojo-type="mw-form/Spinner" data-test-id="ColorSpinner2" data-dojo-attach-point="spinnerNode2" \n ></div\n ></td\n ><td class="${baseClass}Column"\n ><div data-dojo-type="mw-form/Label" data-dojo-attach-point="titleNode3"\n ></div\n ><div class="${baseClass}Spinner" data-dojo-type="mw-form/Spinner" data-test-id="ColorSpinner3" data-dojo-attach-point="spinnerNode3" \n ></div>\n </td\n ></tr\n\n ><tr data-dojo-attach-point="hexNode" style="display: none"\n ><td class="${baseClass}Column" colspan="3">${_hexTitle}\n <div class="${baseClass}TextField" data-dojo-type="mw-form/TextField" data-test-id="HexTextField" data-dojo-attach-point="hexTextField"></div\n ></td\n ></tr\n ></table\n ></div\n></div>'},function(e,t,i){var n,o;n=[i(203),i(206),i(216),i(215),i(255),i(571),i(3146)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n,i,o],{value:"#ff0000",_gradientClicked:!1,_hueClicked:!1,_GRADIENT_MARKER_RADIUS:3,_HUE_MARKER_HEIGHT:3,_MARKER_OFFSET:-3,_hue:0,_sat:100,_val:100,baseClass:"mwColorGradient",templateString:a,postCreate:function(){this.inherited(arguments),this.own(t(this.gradientNode,"keydown",this._handleKeydownOnGradient.bind(this)),t(this.gradientNode,"keyup",this._handleKeyupOnGradient.bind(this)),t(this.gradientNode,"mousedown",this._handleClickOnGradient.bind(this)),t(this.hueNode,"keydown",this._handleKeydownOnHue.bind(this)),t(this.hueNode,"keyup",this._handleKeyupOnHue.bind(this)),t(this.hueNode,"mousedown",this._handleClickOnHue.bind(this)))},startup:function(){this.inherited(arguments),this._updateMarkers(),this._gradientRect=this.gradientNode.getBoundingClientRect(),this._hueRect=this.hueNode.getBoundingClientRect(),this._calculateDimensions()},_setValueAttr:function(e){var t=new r(e);this._set("value",t.toHex());var i=r.toHSV(t.toRgb());this._set("_hue",i[0]),this._set("_sat",i[1]),this._set("_val",i[2]),this._updateMarkers(),this._setBackgroundColor(r.fromHSV([i[0],100,100]))},_handleClickOnGradient:function(e){0===e.button&&(this.gradientMarkerNode.focus(),this._gradientClicked=!0,this._addMouseEventListeners()),e.preventDefault()},_handleClickOnHue:function(e){0===e.button&&(this.hueMarkerNode.focus(),this._hueClicked=!0,this._addMouseEventListeners()),e.preventDefault()},_handleKeydownOnGradient:function(e){this._active=!0,40!==e.keyCode&&38!==e.keyCode&&37!==e.keyCode&&39!==e.keyCode||(this._keyboardUpdateGradient(e,"preview"),e.stopPropagation(),e.preventDefault())},_handleKeydownOnHue:function(e){this._active=!0,40!==e.keyCode&&38!==e.keyCode||(this._keyboardUpdateHue(e,"preview"),e.stopPropagation(),e.preventDefault())},_handleKeyupOnGradient:function(e){this._active=!1,40!==e.keyCode&&38!==e.keyCode&&37!==e.keyCode&&39!==e.keyCode||(this._keyboardUpdateGradient(e,"change"),e.stopPropagation(),e.preventDefault())},_handleKeyupOnHue:function(e){this._active=!1,40!==e.keyCode&&38!==e.keyCode||(this._keyboardUpdateHue(e,"change"),e.stopPropagation(),e.preventDefault())},_addMouseEventListeners:function(){this._mouseMoveHandler=this._handleMouseMove.bind(this),this._mouseUpHandler=this._handleMouseUp.bind(this),document.addEventListener("mousemove",this._mouseMoveHandler),document.addEventListener("mouseup",this._mouseUpHandler)},_handleMouseUp:function(e){document.removeEventListener("mousemove",this._mouseMoveHandler),document.removeEventListener("mouseup",this._mouseUpHandler);this._gradientClicked?(this._gradientClicked=!1,this._updateGradient(e,"change")):this._hueClicked&&(this._hueClicked=!1,this._updateHue(e,"change"))},_handleMouseMove:function(e){this._gradientClicked&&this._updateGradient(e,"preview"),this._hueClicked&&this._updateHue(e,"preview")},_updateGradient:function(e,t){var i=this._calculateNewMarkerPosition(e,this._gradientRect),n=Math.round(i.offsetX/this._gradientRect.width*100),o=Math.round((this._gradientRect.height-i.offsetY)/this._gradientRect.height*100);this.set("_sat",n),this.set("_val",o),this._setValueAndEmitEvent(t),this._updateGradientMarker()},_updateHue:function(e,t){var i=this._calculateNewHueColor(e);this.set("_hue",i),this._setValueAndEmitEvent(t);var n=r.fromHSV([i,100,100]);this._setBackgroundColor(n),this._updateHueMarker()},_keyboardUpdateGradient:function(e,t){var i=this._keyboardCalculateNewGradientMarkerPosition(e,this._gradientRect),n=i.offsetX/this._gradientRect.width*100,o=Math.round((this._gradientRect.height-i.offsetY)/this._gradientRect.height*100);this.set("_sat",n),this.set("_val",o),this._setValueAndEmitEvent(t),this._keyboardUpdateGradientMarker()},_keyboardUpdateHue:function(e,t){var i=this._keyboardCalculateNewHueColor(e);this.set("_hue",i),this._setValueAndEmitEvent(t);var n=r.fromHSV([i,100,100]);this._setBackgroundColor(n),this._keyboardUpdateHueMarker()},_calculateNewHueColor:function(e){var t=this._calculateNewMarkerPosition(e,this._hueRect);return Math.round(t.offsetY/this._hueRect.height*360)},_keyboardCalculateNewHueColor:function(e){var t=this._keyboardCalculateNewHueMarkerPosition(e,this._hueRect);return Math.round(t.offsetY/this._hueRect.height*360)},_calculateNewMarkerPosition:function(e,t){var i=t.left,n=t.top,o=t.left+t.width,r=t.top+t.height;return{offsetX:Math.min(Math.max(e.clientX,i),o)-i,offsetY:Math.min(Math.max(e.clientY,n),r)-n}},_keyboardCalculateNewGradientMarkerPosition:function(e,t){var i=this._MARKER_OFFSET,n=this._MARKER_OFFSET,o=this._MARKER_OFFSET+t.width,r=this._MARKER_OFFSET+t.height,a=parseFloat(this.gradientMarkerNode.style.top),s=parseFloat(this.gradientMarkerNode.style.left),l=a+this._GRADIENT_MARKER_RADIUS,c=s+this._GRADIENT_MARKER_RADIUS;return 40===e.keyCode&&a<r&&this._active?l++:38===e.keyCode&&a>n&&this._active?l--:39===e.keyCode&&s<o&&this._active?c++:37===e.keyCode&&s>i&&this._active&&c--,{offsetX:c,offsetY:l}},_keyboardCalculateNewHueMarkerPosition:function(e,t){var i=this._MARKER_OFFSET,n=this._MARKER_OFFSET+t.height,o=parseFloat(this.hueMarkerNode.style.top),r=o+this._HUE_MARKER_HEIGHT;return 40===e.keyCode&&o<n&&this._active?r++:38===e.keyCode&&o>i&&this._active&&r--,{offsetY:r}},_updateMarkers:function(){this._calculateDimensions(),this._updateGradientMarker(),this._updateHueMarker()},_updateGradientMarker:function(){var e=this._width*this._sat/100-this._GRADIENT_MARKER_RADIUS,t=this._height-this._height*this._val/100-this._GRADIENT_MARKER_RADIUS;this.gradientMarkerNode.style.left=e+"px",this.gradientMarkerNode.style.top=t+"px"},_updateHueMarker:function(){var e=this._hue/360*this._height-this._HUE_MARKER_HEIGHT;this.hueMarkerNode.style.top=e+"px"},_keyboardUpdateGradientMarker:function(){var e=this._width+2,t=this._height+2,i=Math.round(e*this._sat/100-this._GRADIENT_MARKER_RADIUS),n=Math.round(t-t*this._val/100-this._GRADIENT_MARKER_RADIUS);this.gradientMarkerNode.style.left=i+"px",this.gradientMarkerNode.style.top=n+"px"},_keyboardUpdateHueMarker:function(){var e=this._height+2,t=Math.round(this._hue/360*e-this._HUE_MARKER_HEIGHT);this.hueMarkerNode.style.top=t+"px"},_setValueAndEmitEvent:function(e){var t=this.get("value"),i=this.get("_hue"),n=this.get("_sat"),o=this.get("_val"),a=r.fromHSV([i,n,o]).toHex();this._set("value",a),this._emitEvent(e,t,a)},_emitEvent:function(e,t,i){this.emit(e,{mwEventData:{propertyName:"value",oldValue:t,newValue:i}})},_setBackgroundColor:function(e){this.gradientNode.style.backgroundColor=e.toCss(!1)},_calculateDimensions:function(){var e=window.getComputedStyle(this.gradientNode);this._height=parseInt(e.getPropertyValue("--color-gradient-height"))-2,this._width=178}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="mwDisableSelection"\n\t><div data-dojo-attach-point=\'gradientNode\' class="${baseClass}SatVal"\n ><div id="gradientMarker" tabindex="0" data-dojo-attach-point=\'gradientMarkerNode\' class="${baseClass}Marker"\n ></div\n ></div\n\n ><div data-dojo-attach-point=\'hueNode\' class="${baseClass}Hue"\n ><div id="hueMarker" tabindex="0" data-dojo-attach-point=\'hueMarkerNode\' class="${baseClass}HueMarker"\n ></div\n ></div\n></div>\n'},function(e,t,i){var n,o;n=[i(210),i(206),i(203),i(215),i(216),i(3148),i(1077)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i([n,o],{value:null,selected:!1,baseClass:"mwColorStyle",templateString:r,postCreate:function(){this.inherited(arguments),this.own(t(this.colorStyleButton,"focus",this._select.bind(this))),this.own(t(this.colorStyleSwatch,"mouseenter, mouseleave",this._handleHover.bind(this))),this.own(t(this.colorStyleSwatch,"click",this._focusColorStyleNode.bind(this))),this.own(t(this.colorStyleLabel,"click",this._focusColorStyleNode.bind(this)))},_focusColorStyleNode:function(){this.colorStyleButton.focus()},_setSelectedAttr:function(t){this._set("selected",t),t?e.add(this.colorStyleButton,"mwColorStyleSelected"):e.remove(this.colorStyleButton,"mwColorStyleSelected")},_select:function(){this.set("selected",!0),this.emit("change",{value:this.value})},_handleHover:function(e){this.emit("previewchange",{value:this.value,eventData:e})},_setValueAttr:function(t){this._set("value",t);var i=t.charAt(0).toUpperCase()+t.slice(1);e.add(this.colorStyleButton,"mwColorStyle"+i),this.colorStyleLabel.textContent=a[t]}})}),e,t),e.exports=o},function(e,t){e.exports='<div tabindex="0" class="${baseClass}" data-dojo-attach-point="colorStyleButton" data-test-id="${value}ColorStyle"\n\t><div class="${baseClass}Swatch" data-dojo-attach-point="colorStyleSwatch"></div\n\t><span class="${baseClass}Label" data-dojo-attach-point="colorStyleLabel"></span\n></div>'},function(e,t){e.exports='<div class="mwDisableSelection" data-test-id="mwColorPicker"\n\t><table\n\t\t><tr\n\t\t\t><td\n\t\t\t\t><div class="${baseClass}HeaderContainer"\n\t\t\t\t\t><span data-dojo-attach-point="titleNode" class="${baseClass}Title"\n\t\t\t\t\t></span\n\t\t\t\t\t><div class="${baseClass}ToggleButtonContainer"\n\t\t\t\t\t\t><div class="${baseClass}ToggleButton" data-dojo-attach-point="standardButtonNode"\n\t\t\t\t\t\t></div\n\t\t\t\t\t\t><div class="${baseClass}ToggleButton" data-dojo-attach-point="customButtonNode"\n\t\t\t\t\t\t></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t></td\n\t\t></tr\n\n\t\t><tr\n ><td\n \t><div data-dojo-attach-point="standardPickerRow"\n\t \t><div data-dojo-attach-point="paletteContainerNode" \n\t \t><div class="${baseClass}Palette" data-dojo-type="mw-colorpicker/ColorPalette" \n\t \tdata-dojo-attach-point="paletteNode" data-test-id="palette" data-dojo-props="palette: ${_parsedStandardColors}"\n\t \t></div\n\t \t></div\n\t\t\t\t\t><div class="${baseClass}StylesContainer" data-dojo-attach-point="stylesContainerNode"></div\n\t \t\t\t><table class="${baseClass}Middle"\n\t \t\t\t\t><tr\n\t \t\t\t><div class="${baseClass}Recent" data-dojo-attach-point="recentColorsNode"\n\t \t\t\tdata-test-id="recentColors"></div\n\t \t\t\t></tr\n\t \t\t\t></table\n\t \t\t></div\n\t \t\t><div class="${baseClass}ViewHidden" data-dojo-attach-point="customPickerRow"\n\t \t\t\t><div class="${baseClass}GradientContainer" data-dojo-attach-point="gradientContainerNode"></div\n \t\t><div data-dojo-attach-point="spinnerContainerNode"></div\n \t></div\n\t\t\t></td\n\t\t></tr\n\n\t\t><tr\n\t\t\t><td\n\t\t\t\t><div class="${baseClass}Preview"\n ><span data-dojo-attach-point="previewContainerNode"></span\n ><div class="${baseClass}PreviewColor" data-dojo-attach-point="previewColorNode"></div\n \t></div \n ></td\n\t\t></tr\n\t></table\n></div>'},function(e,t,i){var n,o;n=[i(238),i(203),i(204),i(206),i(222),i(223),i(1728),i(790),i(331),i(514)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return t([s,o],{baseClass:"mwWidget mwDropDownButton mwGridPickerButton",visualFamily:"default",maxRows:5,maxColumns:5,occupancy:0,fillOrder:"rowMajor",constructor:function(e){e=e||{},this.maxRows=e.maxRows?e.maxRows:this.maxRows,this.maxColumns=e.maxColumns?e.maxColumns:this.maxColumns,this.occupancy=e.occupancy?e.occupancy:this.occupancy,this.fillOrder=e.fillOrder?e.fillOrder:this.fillOrder,this._gridPicker=new a({maxRows:this.maxRows,maxColumns:this.maxColumns,occupancy:this.occupancy,fillOrder:this.fillOrder}),this._gridPickerMenu=new l,this.selection={},this.own(this._gridPicker),this.own(this._gridPickerMenu)},buildRendering:function(){this.inherited(arguments),this._gridPickerMenu.addChild(this._gridPicker),this.set("menu",this._gridPickerMenu)},_setSelectionAttr:function(e){0!==Object.keys(e).length&&this._gridPicker.getLastSelectedRowCount()!==e.row&&this._gridPicker.getLastSelectedColumnCount()!==e.column&&this._gridPicker.highlightCells(e.row-1,e.column-1),this._set("selection",e)},_setMaxRowsAttr:function(e){if(this._created)throw new Error("Max Rows can only be set at construction time");this._set("maxRows",e)},_setMaxColumnsAttr:function(e){if(this._created)throw new Error("Max Columns can only be set at construction time");this._set("maxColumns",e)},_setOccupancyAttr:function(e){this._gridPicker.set("occupancy",e),this._set("occupancy",e)},_setFillOrderAttr:function(e){this._gridPicker.set("fillOrder",e),this._set("fillOrder",e)},postCreate:function(){this.inherited(arguments),this._gridPicker.on(a.SELECTION_CHANGED,this._handleGridSelection.bind(this)),this.menu.on("keydown",this._handleMenuKeyDown.bind(this)),this.menu.on("open",this._handleMenuCloseOnFocusOut.bind(this))},_handleGridSelection:function(e){var t={};t.row=e.rows,t.column=e.columns,this.set("selection",t),this.closeMenu()},_handleMenuCloseOnFocusOut:function(){var t=e.watch("curNode",i.hitch(this,(function(e,i,n){null!==n&&c.findParentNode(n,"mwMenu")||(t.unwatch(),this.closeMenu())})));this.own(t)},_handleMenuKeyDown:function(e){e.keyCode===r.TAB&&e.stopPropagation(),this._gridPicker.navigate(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1797),i(466),i(519),i(897)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i,n,o],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1328),i(466),i(519),i(897)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i,n,o],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1804),i(466),i(519),i(897)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i,n,o],{_qeSetChecked:function(e){this.set("checked",e,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1806),i(466),i(519),i(897)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i,n,o],{_qeSetChecked:function(e){this.set("checked",e,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(360),i(307),i(216),i(351),i(654),i(1043),i(330),i(608),i(878),i(352),i(653),i(432),i(893),i(343),i(1798),i(353),i(335),i(433),i(409),i(607),i(1318),i(421),i(1070),i(894),i(1071),i(791),i(1799),i(1800),i(1801),i(1802),i(259),i(1072)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P){return e(M.validate([t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D]),{baseClass:"mwWidget mwToggleSplitButton",templateString:P,cssStateNodes:{buttonNode:"mwButtonNode",dropDownNode:"mwDropDownNode"},postCreate:function(){this.set("checkableNode",this.buttonNode),this.buttonNode.setAttribute("aria-pressed",this.get("checked")),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1330)],o=i.dj.d(n,(function(e,t){return e([t],{overrideQuickAccessIconWithIcon:!0,hasDynamicMenu:!0,quickAccessIcon:"",galleryPopupId:"",constructor:function(){this._inCreationLifecycle=!0,this.inherited(arguments)},postMixInProperties:function(){this.inherited(arguments),this._defaultQabIcon=this.quickAccessIcon},postCreate:function(){this.inherited(arguments),delete this._inCreationLifecycle,this.on("dropdownclick",this._handleDropDownClick.bind(this))},_handleDropDownClick:function(e){if(this.showMenu(),null!=this.get("menu")){var t=this.menu.on("close",()=>{this._updateIsolatedCategoryId(!1),t.remove()});this._updateIsolatedCategoryId(!0),e.stopImmediatePropagation()}},_updateIsolatedCategoryId:function(e){let t,i,n;e?(t="_openGalleryPopupDisplayState",i="_closeGalleryPopupDisplayState",n=this.categoryId):(t="_closeGalleryPopupDisplayState",i="_openGalleryPopupDisplayState",n=null),this.menu.set("isolatedCategoryId",n)},_setTitleAttr:function(e){this.inherited(arguments),this._set("title",e),this._fromSetTitleAttr=!0,this.set("text",e),delete this._fromSetTitleAttr},_setTextAttr:function(){(this._inCreationLifecycle||this._fromSetTitleAttr)&&this.inherited(arguments)},_setIconAttr:function(e){this.inherited(arguments),e?(this._fromSetIconAttr=!0,this.set("quickAccessIcon",e),delete this._fromSetIconAttr):(this._fromSetIconAttr=!0,this.set("quickAccessIcon",this._lastSetQabIconValue||this._defaultQabIcon),delete this._fromSetIconAttr)},_setQuickAccessIconAttr:function(e){(this._inCreationLifecycle||this._fromSetIconAttr)&&this.overrideQuickAccessIconWithIcon?this.inherited(arguments):(this._lastSetQabIconValue=e,this.overrideQuickAccessIconWithIcon||this.inherited(arguments))},_setGalleryPopupIdAttr:function(e){this._set("galleryPopupId",e),this._fromSetMenuIdAttr||(this._fromSetGalleryPopupIdAttr=!0,this.set("menuId",e),delete this._fromSetGalleryPopupIdAttr)},_setMenuIdAttr:function(e){this._set("menuId",e),this._fromSetGalleryPopupIdAttr||(this._fromSetMenuIdAttr=!0,this.set("galleryPopupId",e),delete this._fromSetMenuIdAttr)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(256),i(231),i(226),i(1807),i(1317),i(1808),i(1330)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([s],{postCreate:function(){this.text=this[o[n.QAB_FLOATING_PANE_DOCK].text],this.inherited(arguments),i.byId("dockDropDownMenu")?this._popupList=i.byId("dockDropDownMenu"):this._popupList=new r({id:"dockDropDownMenu"}),this.set("menuId","dockDropDownMenu"),t.publish("/floatingPaneDockUpdate",{newWidget:this})},addItem:function(e){if(!this._findMenuItemForGuiId(e.id)){var t=new a({guiId:e.id,text:this._getTitle(e)});if(!e.hasQABWatches){var i=this;e.watch("title",(function(){var t=i._findMenuItemForGuiId(e.id);t&&t.set("text",i._getTitle(e))})),e.watch("class",(function(){var t=i._findMenuItemForGuiId(e.id);i._isItemHidden(e)?t&&i.removeItem(e):t||i.addItem(e)})),e.hasQABWatches=!0}t.on("click",(function(){e.show(),e.bringToTop()})),this._isItemHidden(e)||this._popupList.addChild(t),this._toggleSelectDisplayAndReset()}},_getTitle:function(e){var t=e.title;return(t=t&&t.trim?t.trim():t)&&t.length>0?t:"(Untitled)"},_isItemHidden:function(e){return!!e.class&&-1!==e.class.indexOf("visibilityHidden")},_findMenuItemForGuiId:function(e){var t=null;return this._popupList.getChildren().some((function(i){return t=i,i.guiId===e}))?t:null},removeItem:function(e){var t=this._findMenuItemForGuiId(e.id);t&&(this._popupList.removeChild(t),t.destroyRecursive()),this._destroyed||this._toggleSelectDisplayAndReset()},startup:function(){this.inherited(arguments),this._toggleSelectDisplayAndReset()},_toggleSelectDisplayAndReset:function(){this._popupList.getChildren().length>0?this.set("disabled",!1):this.set("disabled",!0)},_positionDock:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(542),i(332),i(412),i(436),i(895),i(466),i(570),i(1809),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(c.validate([t,i,n,o,r,a,s,l]),{visualFamily:"default"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(515),i(332),i(412),i(436),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r.validate([t,i,n,o]),{visualFamily:"default",eligibleForParentAdditionToQAB:!0,postCreate:function(){this.inherited(arguments),this.checkBox.set("visualFamily","default")},_qeSetChecked:function(e){this.set("checked",e,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(1331),i(226),i(3162),i(3163),i(789),i(436),i(332),i(259),i(377)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){function h(e){e.stopImmediatePropagation(),e.preventDefault()}return e(d.validate([n,l,r,a,s,c]),{visualFamily:"default",eligibleForParentAdditionToQAB:!0,constructor:function(){this.textField._triggerTypingEvent=function(e){this.emit("typing",{mwEventData:{text:e}})},this._defaultTextFieldWidth=this.textField.get("width")},_setLabelAttr:function(e){this.set("text",e),this._set("label",e)},_getLabelAttr:function(){return this.get("text")},_setValueAttr:function(e){this.inherited(arguments),!this.get("editable")&&this._textFieldValueContainer&&(this._textFieldValueLine.textContent=this.textField.get("value"))},_setEditableAttr:function(e){e?(this._resizeTextField(),this._valueBeforeEdit=this.get("value"),this._addDocumentClickListener(),this.set("closeMenuOnClick",!1)):(this._textFieldValueContainer||this._createNonEditableValueNode(),this._textFieldValueLine.textContent=this.textField.get("value"),this._removeDocumentClickListener()),this.inherited(arguments)},_setTextFieldWidthAttr:function(e){this.textField.set("width",e)},buildRendering:function(){this.inherited(arguments)},postCreate:function(){this.domNode.addEventListener("keydown",this._handleKeyDown.bind(this),!0),this.inherited(arguments),this.textField.set("visualFamily","default"),this.watch("text",t.hitch(this,"_updateLabel")),this.domNode.addEventListener("edit",this._handleEdit.bind(this)),this._closeMenuOnClick=this.get("closeMenuOnClick");var e="";this._textFieldValueLine&&(e=this.id+"_textFieldValueNodeId",this._textFieldValueLine.setAttribute("id",e),e=" "+e);var i=this.focusNode.getAttribute("aria-labelledby");if(i){var n=/\s[\w|-]+descriptionNodeId/,o=i.replace(n,e);this.focusNode.setAttribute("aria-labelledby",o)}},_createNonEditableValueNode:function(){this._textFieldValueContainer=document.createElement("div"),this._textFieldValueContainer.classList.add("mwTextFieldValueContainer"),this._textFieldValueLine=document.createElement("span"),this._textFieldValueContainer.appendChild(this._textFieldValueLine),this._textFieldValueLine.classList.add("mwTextFieldValueLine"),this.domNode.insertBefore(this._textFieldValueContainer,this.shortcutKeyNode)},getFocusNode:function(){return!1===this.get("editable")?this.focusNode:this.textField.focusNode},_handleMenuClose:function(){this.get("editOption")&&this.get("editable")&&(this._commit||this.set("value",this._valueBeforeEdit),this._commit=!1,this._disallowEditingAndResetPopupClose(),this._removeMenuCloseListener())},_handleEdit:function(e){this.get("hasDynamicEdit")||(e.stopPropagation(),e.stopImmediatePropagation(),this.set("editable",!0))},_setSelectionAttr:function(e){var t=this.textField.inputNode,i=e.start,n=e.end;(!i||i<0)&&(i=0),(!n||n>t.value.length)&&(n=t.value.length),t.focus(),t.setSelectionRange(i,n)},_handleKeyDown:function(e){var t=e.keyCode;if(t===i.ENTER){if(this.get("editable")&&!this.get("hasDynamicEdit")&&this.get("editOption")){var n=this.get("value"),o=this.textField.inputNode.value;return this._commit=!0,n===o?this.emit("recommit",{mwEventData:{propertyName:"value",value:o}}):(this.emit("commit",{mwEventData:{propertyName:"value",value:o}}),this.set("value",o),this.textField._triggerChangeEvent("value",n,o)),u.isAvailable()||this._handleMenuCloseOnEnter(),this._disallowEditingAndResetPopupClose(),void h(e)}this.get("editable")||(this.emit("itemPushed"),this._handleMenuCloseOnEnter(),h(e))}this.inherited(arguments)},_handleMenuCloseOnEnter:function(){!0===this.get("editable")&&this.closeOnEnter&&!0===this.closeOnEnter&&this._requestClose(!1)},_handleDocumentBodyClick:function(e){var t=e.target;this.domNode.contains(t)||(this.set("value",this._valueBeforeEdit),this._disallowEditingAndResetPopupClose())},_updateLabel:function(e,t,i){this.set("label",i)},_onFocus:function(){this.inherited(arguments),this.emit("focusgained",{mwEventData:{text:this.textField.inputNode.value}}),this._addMenuCloseListener()},_onBlur:function(){this.inherited(arguments),this.emit("focuslost",{mwEventData:{text:this.textField.inputNode.value}})},_disallowEditingAndResetPopupClose:function(){this.set("editable",!1),this.set("closeMenuOnClick",this._closeMenuOnClick)},_resizeTextField:function(){this._textFieldValueContainerWidth=0,this._textFieldValueContainer&&(this._textFieldValueContainerWidth=this._textFieldValueContainer.getBoundingClientRect().width),0!==this._textFieldValueContainerWidth&&(this._textFieldWidth=this._textFieldValueContainerWidth<this._defaultTextFieldWidth?this._defaultTextFieldWidth:this._textFieldValueContainerWidth,this.set("textFieldWidth",this._textFieldWidth))},_addDocumentClickListener:function(){this.get("editOption")&&!this.get("hasDynamicEdit")&&(this._documentClickCallback||(this._documentClickCallback=this._handleDocumentBodyClick.bind(this),document.body.addEventListener("click",this._documentClickCallback)))},_removeDocumentClickListener:function(){this._documentClickCallback&&(document.body.removeEventListener("click",this._documentClickCallback),this._documentClickCallback=null)},_addMenuCloseListener:function(){this._parentMenu=this._getAncestorPopupList(),this._parentMenu&&!this._menuCloseCallback&&(this._menuCloseCallback=this._handleMenuClose.bind(this),this._parentMenu.domNode.addEventListener("close",this._menuCloseCallback))},_getAncestorPopupList:function(){for(var e=this.getParent?this.getParent():null;e&&e.get("type")!==o.POPUP_LIST;)e=e.getParent?e.getParent():null;return e},_removeMenuCloseListener:function(){this._menuCloseCallback&&this._parentMenu&&this._parentMenu.domNode&&this._parentMenu.domNode.removeEventListener("close",this._menuCloseCallback),this._menuCloseCallback=null},startup:function(){this.inherited(arguments)},destroy:function(){this._removeDocumentClickListener(),this._removeMenuCloseListener(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="focusNode" role="menuitem"\n ><div class="mwTextContainer" data-dojo-attach-point="textContainerNode"\n ><div data-dojo-attach-point="textNode" class=\'mwTextNode\'></div\n ></div\n ><div class="mwTextFieldWrapperNode" data-dojo-attach-point="textFieldWrapperNode"></div\n ><div class="mwShortcutKeyNode" data-dojo-attach-point="shortcutKeyNode"></div\n></div>\n'},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{editable:!0,_setEditableAttr:function(e){this.inherited(arguments),e?this.domNode.classList.add("mwEditableTrue"):this.domNode.classList.remove("mwEditableTrue"),this._set("editable",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{editOption:!1,editOptionMessage:"",hasDynamicEdit:!1,_setEditOptionAttr:function(e){if("boolean"!=typeof e)throw new Error("'editOption' property expected a boolean value.");this._set("editOption",e)},_setEditOptionMessageAttr:function(e){if("string"!=typeof e)throw new Error("'editOptionMessage' property expected a string value.");this._set("editOptionMessage",e)},_setHasDynamicEditAttr:function(e){this._set("hasDynamicEdit",e)},_emitEditEvent:function(){this.emit("edit")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(879),i(332),i(412),i(436),i(1076),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a.validate([t,i,n,o,r]),{visualFamily:"default",eligibleForParentAdditionToQAB:!0,postCreate:function(){this.inherited(arguments),this.radioButton.set("visualFamily","default")},_qeSetChecked:function(e){this.set("checked",e,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(354),i(332),i(259)],o=i.dj.d(n,(function(e,t,i,n){return e(n.validate([t,i]),{visualFamily:"default"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1067),i(332),i(259)],o=i.dj.d(n,(function(e,t,i,n){return e(n.validate([t,i]),{visualFamily:"default"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(286),i(231),i(449),i(435),i(797),i(898),i(332),i(412),i(370),i(433)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([i,o,r,a,s,l,c,d,u],{visualFamily:"default",height:22,mnemonicKeyNavDirection:"none",_scaleToParentWidth:!0,_treatAsUserEvent:!1,_setEditableAttr:function(e){this.inherited(arguments),!1===e?this.domNode.setAttribute("data-focus","refuse"):(this.domNode.setAttribute("data-focus","accept"),this.arrowNode.setAttribute("data-focus","refuse"))},postCreate:function(){this.inherited(arguments),!1===this.get("editable")?this.domNode.setAttribute("data-focus","refuse"):(this.domNode.setAttribute("data-focus","accept"),this.get("menu").domNode.setAttribute("data-focus","refuse")),this.get("menu").domNode.setAttribute("data-focus","temporary")},_handleTextFieldKeyDown:function(e){if(e.keyCode===t.ESCAPE&&(this.emit("textcancelled",{mwEventData:{text:this.inputNode.value}}),this.emit("restorefocustolastnonrefuseelement")),e.keyCode===t.ENTER){if(this._treatAsUserEvent=!0,this.get("value")===this.inputNode.value){var i=this._getSelectedItemFromValue(this.get("value"));i&&i.label===this.inputNode.value&&void 0!==i.value?this.emit("recommit",{mwEventData:{value:i.value}}):this.emit("recommit",{mwEventData:{text:this.get("value")}})}this.emit("restorefocustolastnonrefuseelement")}this.inherited(arguments),this._treatAsUserEvent=!1},_handleTextFieldBlur:function(e){this._treatAsUserEvent=!0,this.inherited(arguments),setTimeout(function(){this._treatAsUserEvent=!1}.bind(this),0)},_handleMenuClick:function(e){this._treatAsUserEvent=!0;var t=e.target.textContent,i=this._getSelectedItemFromLabel(t);this.get("value")===i.value&&this.emit("recommit",{mwEventData:{value:this.get("value")}}),this.inherited(arguments),this._treatAsUserEvent=!1},_setItemsAttr:function(e){if(this._treatAsUserEvent=!1,e&&e.length>0){var t=e.find(e=>!0===e.selected);this._initMenuItems(e),this._set("items",e),t&&void 0!==t.value&&this.set("value",t.value)}else this._destroyMenuItems(),this._set("items",e);!1===this.get("editable")&&null!=this._pendingValue&&(this.set("value",this._pendingValue,!0),this._pendingValue=null),this.menu.getChildren().forEach((function(e){e.dataset.type="ComboBoxItem"}))},resize:function(){var e=this.get("width"),t=2;"100%"===e&&(e=this.domNode.getBoundingClientRect().width-t,t=0),this._textField.domNode.style.width="calc("+e+"px - 22px - 2px - 1px)",this.menu.domNode.style.minWidth="calc("+e+"px - "+t+"px)"},startup:function(){this.inherited(arguments),this.items.forEach((function(e){!0===e.selected&&this.set("value",e.value)}),this)},_openComboBoxMenu:function(){this.inherited(arguments),this.emit("dropdownclick",{})},closeMenu:function(){this.inherited(arguments),this.emit("restorefocustolastnonrefuseelement")},_setDescriptionOverrideAttr:function(e){this.inherited(arguments),e&&this._textField.set("description",e)},_setFooterIdAttr:function(e){var t=n.byId(e);t&&(this._createFooterNode(),t.placeAt(this.footerNode),t.startup()),this._set("footerId",e)},_createFooterNode:function(){if(this.footerNode){var e=n.byId(this.get("footerId"));e&&e.destroyRecursive()}else this.footerNode=document.createElement("div"),this.get("menu").domNode.appendChild(this.footerNode)},_qeSelectItemByLabel:function(e){var t=this._getSelectedItemFromLabel(e).value;this._treatAsUserEvent=!0,this.set("value",t,!0),this._treatAsUserEvent=!1},_qeSelectItemByValue:function(e){var t=this._getSelectedItemFromValue(e).value;this._treatAsUserEvent=!0,this.set("value",t,!0),this._treatAsUserEvent=!1},_qeSelectItemByIndex:function(e){var t=this.get("items")[e].value;this._treatAsUserEvent=!0,this.set("value",t,!0),this._treatAsUserEvent=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(206),i(1078),i(449),i(435),i(898),i(332),i(412),i(1810),i(370),i(797),i(1069),i(1811),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e(g.validate([o,r,a,s,l,c,d,u,h,p,f]),{visualFamily:"default",width:150,height:66,mnemonicKeyNavDirection:"horizontal",_scaleToParentWidth:!0,_setItemsAttr:function(e){this._validateItemsArray(e);var t=this._getItemsListAndInitInternalDs(e);this._updateDom(t),this._set("items",e),this._updateTooltipForClippedItems(),this._started&&this._handleSelection(e)},_handleSelection:function(e){var t=[];e.forEach((function(e){!0===e.selected&&t.push(e.value)}),this),t.length>0&&("single"===this.get("selectionMode")?this.set("value",[t[t.length-1]]):this.set("value",t))},postCreate:function(e){this.inherited(arguments),this.own(n(this.containerNode,"keydown",t.hitch(this,"_handleKeyDownEvent")))},startup:function(){this.inherited(arguments),this._handleSelection(this.get("items"))},_handleKeyDownEvent:function(e){this.inherited(arguments),e.keyCode===i.ESCAPE?this.emit("restorefocustolastnonrefuseelement"):e.keyCode===i.ENTER&&(this.emit("restorefocustolastnonrefuseelement"),this.emit("commit",{}))}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijitTooltip dijitTooltipLeft" id="dojoTooltip" data-dojo-attach-event="mouseenter:onMouseEnter,mouseleave:onMouseLeave"\n\t><div class="dijitTooltipConnector" data-dojo-attach-point="connectorNode"></div\n\t><div class="dijitTooltipContainer dijitTooltipContents" data-dojo-attach-point="containerNode" role=\'alert\'></div\n></div>\n'},function(e,t){e.exports='<div data-dojo-attach-point="focusNode"><ul data-dojo-attach-point="containerNode"></ul></div>'},function(e,t,i){var n,o;n=[i(203),i(215),i(1332),i(216),i(3173)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,n,i],{templateString:o})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_setDescriptionAttr:function(e){this._set("description",e),this._updateDescription()},_setDescriptionOverrideAttr:function(e){this._set("descriptionOverride",e),this._updateDescription()},_updateDescription:function(){var e="";this.descriptionOverride?e=this.descriptionOverride:this.description&&(e=this.description),this.descriptionNode&&(this.descriptionNode.textContent=e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="validation-tooltip-dialog">\n <div class="tooltipConnector" data-dojo-attach-point="arrowNode" style="display:inline-block"></div\n ><div style="display:inline-block" class="validationContents" data-dojo-attach-point="contentsNode"><div data-dojo-attach-point="iconNode" class="validationImage" style="display:inline-block"></div\n ><div data-dojo-attach-point="textNode" class="validationText" style="display:inline-block"></div></div>\n\n</div>\n\n'},function(e,t,i){var n,o;n=[i(203),i(269),i(332),i(466),i(570),i(412),i(518),i(436),i(370),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(c.validate([t,i,n,o,r,a,s,l]),{visualFamily:"default",height:22,_setTabIndexOnNode:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(3176),i(361)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i,o],{templateString:n})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div class= "emptyControl"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(245),i(206),i(223),i(258),i(569),i(449),i(435),i(797),i(898),i(332),i(412),i(370),i(433),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e(g.validate([r,s,l,c,d,u,h,p,f]),{visualFamily:"default",width:150,height:22,mnemonicKeyNavDirection:"vertical",_scaleToParentWidth:!0,_onKeyUp:function(e){e.keyCode===o.ESCAPE?(this.get("editable")&&(this.inputNode.value=this.get("value"),this.emit("textcancelled",{mwEventData:{text:this.get("value")}})),this.emit("restorefocustolastnonrefuseelement")):e.keyCode===o.ENTER&&(this.get("editable")&&this.get("value")===this.inputNode.value&&this.emit("recommit",{mwEventData:{text:this.get("value")}}),this.emit("restorefocustolastnonrefuseelement"),this.emit("commit",{})),this.inherited(arguments)},_triggerTypingEvent:function(e){this.get("editable")&&this.emit("typing",{mwEventData:{text:e}})},postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("spellcheck","false"),this.own(n(this.inputNode,"focus",t.hitch(this,"_handleInputNodeFocus")))},_handleInputNodeFocus:function(e){!1!==this.get("editable")&&(a.detectIE()?setTimeout(t.hitch(this,(function(){return this.inputNode.select(),!1}),0)):this.inputNode.select())},_onFocus:function(){this.inherited(arguments),this.emit("focusgained",{mwEventData:{text:this.inputNode.value}})},_onBlur:function(){this.inherited(arguments),this.emit("focuslost",{mwEventData:{text:this.inputNode.value}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(413),i(449),i(435),i(797),i(898),i(332),i(412),i(1810),i(370),i(1069),i(433),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(p.validate([i,n,o,r,a,s,l,c,d,u,h]),{visualFamily:"default",width:150,height:66,mnemonicKeyNavDirection:"none",_scaleToParentWidth:!0,_triggerTypingEvent:function(e){this.emit("typing",{mwEventData:{text:e}})},_onFocus:function(){this.inherited(arguments),this.emit("focusgained",{mwEventData:{text:this.inputNode.value}})},_onBlur:function(){this.inherited(arguments),this.emit("focuslost",{mwEventData:{text:this.inputNode.value}})},_onKeyUp:function(e){e.keyCode===t.ESCAPE&&this.emit("restorefocustolastnonrefuseelement"),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div><textarea class="mwInputNode mwAlignmentNode" data-dojo-attach-point="inputNode,focusNode" spellcheck="false"></textarea></div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(520),i(449),i(435),i(898),i(332),i(352),i(412),i(797),i(370),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(h.validate([n,o,r,a,s,l,c,d,u]),{visualFamily:"default",width:70,mnemonicKeyNavDirection:"none",_scaleToParentWidth:!0,postCreate:function(){this.inherited(arguments),this._textField.set("visualFamily","toolstrip")},_setMinimumAttr:function(e){this.set("limits",{minimum:e,maximum:this.limits.maximum}),this._set("minimum",e)},_setMaximumAttr:function(e){this.set("limits",{minimum:this.limits.minimum,maximum:e}),this._set("maximum",e)},_setValueAttr:function(e){e<this.get("limits").minimum||e>this.get("limits").maximum||(this._startValue=parseFloat(e),this._clickCount=0,this._textField.set("value",e+""),this._set("value",e),this._setButtonState())},_getValueAttr:function(){return this._isNumeric(this._textField.get("value"))?parseFloat(this._textField.get("value")):this._textField.get("value")},_onKeyDown:function(e){this.inherited(arguments),e.keyCode===i.ENTER?(this.get("value")+""===this._textField.inputNode.value&&this.emit("recommit",{mwEventData:{value:this.get("value")}}),this.emit("restorefocustolastnonrefuseelement"),this.emit("commit",{})):e.keyCode===i.ESCAPE&&this.emit("restorefocustolastnonrefuseelement")},resize:function(){this.containerNode.style.width="calc(100% - 21px)",this._textField.domNode.style.width="100%"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(223),i(225),i(3182),i(3183),i(785),i(3184),i(1332),i(361),i(1811),i(330),i(449),i(435),i(797),i(377)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([l,r,a,c,d,u,h,p,f,g],{width:150,_scaleToParentWidth:!0,mnemonicKeyNavDirection:"vertical",_setPixelValue:function(e,t,i){if(!this.disabled&&!this.readOnly){var n,o,r=(this.maximum-this.minimum)/this.steps,a=[],l=Math.max(Math.min((this.maximum-this.minimum)*e/t+this.minimum,this.maximum),this.minimum);for(n=this.minimum;n<=this.maximum;n+=r)a.push(n);l=l-(o=s.getClosestValue(a,l))[0]>o[1]-l?o[1]:o[0],this._setValueAttr(l,i)}},_setCompactAttr:function(e){this.domNode.classList.toggle("vc-compactSlider",e),this._set("compact",e)},_setWidthAttr:function(e){this._set("width",e),this._sliderResize()},_setMajorTickLabelsAttr:function(e){this.inherited(arguments),this._sliderResize()},_sliderResize:function(){var e,t,i,n,r,a,l=this.get("width");if("100%"===l)if(void 0===this.majorTickLabels){if(this.getParent()){var c=this.getParent().get("width");this._setWidthOnChildren(c)}}else this.majorTickLabels.length>0?(t=(e=o(".vc-MajorTickLabels",this.containerNode)[0]).childElementCount,i=e.children[0],n=e.children[t-1],r=s.computeWidth(i.textContent)/2,a=s.computeWidth(n.textContent)/2,c=this.getParent().get("width"),this.domNode.style.marginLeft=r+"px",this.domNode.style.marginRight=a+"px",this.domNode.style.width=c+"px",this.sliderTrackNode.style.width="100%",this.containerNode.style.width="100%",this._set("width",c)):(c=this.getParent().get("width"),this.domNode.style.marginLeft="5px",this.domNode.style.marginRight="5px",this.domNode.style.width=c+"px",this.sliderTrackNode.style.width="100%",this.containerNode.style.width="100%");else this.domNode.style.width=l+"px",this._setWidthOnChildren(l)},_setWidthOnChildren:function(e){var t,i;this.sliderTrackNode.style.width=e-5+"px",this.containerNode.style.width=e-5+"px",t=parseFloat(this.domNode.style.marginLeft),(isNaN(t)||t<5)&&(this.domNode.style.marginLeft="5px"),i=parseFloat(this.domNode.style.marginRight),(isNaN(i)||i<5)&&(this.domNode.style.marginRight="5px")},_getDomNodeForValidationClasses:function(){return this.sliderTrackNode},constrainTicksToScaleLimits:function(e,t,i){var n,o=[],r=[];for(void 0===e.length&&(e=[e]),n=0;n<e.length;n+=1)e[n]>=t[0]&&e[n]<=t[1]&&(o[o.length]=e[n],void 0!==i&&(r[r.length]=i[n]));return void 0!==i?{ticks:o,labels:r}:{ticks:o}},_adjustLabelContainerPositioning:function(){if(this.majorTickLabelDijit){var e=o(".dijitRuleLabelContainerH",this.majorTickLabelDijit.domNode),t=e.length;e.forEach(function(e,i){var n=s.computeWidth(e.children[0].textContent)/2*-1;e.style.marginLeft=n+"px",0===i&&(this.domNode.style.marginLeft=-1*n+"px"),i===t-1&&(this.domNode.style.marginRight=-1*n+"px")}.bind(this))}},postCreate:function(){this.inherited(arguments),this.own(i(this,"mouseclicked",t.hitch(this,(function(){this._mouseUp?this._mouseUp=!1:(this.valueChanged({value:this.value}),this._mouseUp=!0)})))),this.own(i(this,"mousedragreleased",t.hitch(this,(function(){this.valueChanged({value:this.value}),this._mouseUp=!0})))),this.own(i(this,"keydown",t.hitch(this,this._handleKeyDown)))},_handleKeyDown:function(e){console.log(e),this.inherited(arguments),e.keyCode===n.ESCAPE?this.emit("restorefocustolastnonrefuseelement"):e.keyCode===n.ENTER&&(this.emit("restorefocustolastnonrefuseelement"),this.emit("commit",{}))},valueChanged:function(e){},_qeSetValue:function(e){this.set("value",e),this.valueChanged({value:this.value})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_setStepsAttr:function(e){this._set("steps",e)},_setNumberOfTicksAttr:function(e){this._set("numberOfTicks",e);var t=this.minimum,i=[];if(e>1){for(;i.length<e-1;)i.push(t),t+=(this.maximum-this.minimum)/(this.numberOfTicks-1);i.push(this.maximum),this.set("minorTicks",i)}else 1===e?(i.push((this.maximum+this.minimum)/2),this.set("minorTicks",i)):this.set("minorTicks",[])},_setLabelsAttr:function(e){var t=this.minimum,i=[];if(this._set("labels",e),e.length>0){if(1===e.length)i.push((this.minimum+this.maximum)/2);else for(;t<=this.maximum;)i.push(t),t+=(this.maximum-this.minimum)/(this.labels.length-1);this.set("majorTicks",i),this.set("majorTickLabels",e)}else this.set("majorTicks",[]),this.set("majorTickLabels",[])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(214),i(223),i(785)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(){this.own(i.after(this,"postCreate",this._attachKeyBoardEvent,!0))},_attachKeyBoardEvent:function(){var e;this.own(t(this,"keyup",(function(t){if(!this.get("disabled")){var i,r,a,s=[],l=[],c=(this.maximum-this.minimum)/this.steps;for(e=this.minimum;e<=this.maximum;e+=c)l.push(e);t.keyCode===n.LEFT_ARROW||t.keyCode===n.PAGE_DOWN?(s=o.getClosestValue(l,this.get("value"))[0],r=0===(i=l.indexOf(s))?l[0]:l[i-1],this.set("value",r)):t.keyCode===n.RIGHT_ARROW||t.keyCode===n.PAGE_UP?(s=o.getClosestValue(l,this.get("value"))[1],a=0===(i=l.indexOf(s))?l[1]:i===l.length-1?l[l.length-1]:l[i+1],this.set("value",a)):t.keyCode===n.END?(a=l[l.length-1],this.set("value",a)):t.keyCode===n.HOME&&(a=l[0],this.set("value",a))}})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(217),i(225),i(3185),i(1812),i(3189)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{baseClass:"vc-slider vc-horizontalSlider",width:200,height:6,_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_thumbPositionParam1:"width",_thumbPositionParam2:"left",_isScaleDirectionReverse:!1,orientation:"horizontal",getRuleLabelConstructor:function(){return a},_setWidthAttr:function(e){this.sliderTrackNode.style.width=e+"px",this.containerNode.style.width=e+"px",this._set("width",e)},getRuleConstructor:function(){return r},postCreate:function(){this.inherited(arguments),this.own(this.watch("width",t.hitch(this,"_adjustThumbPosition")),this.watch("fontSize",t.hitch(this,"_adjustLabelContainerPositioning")),this.watch("fontWeight",t.hitch(this,"_adjustLabelContainerPositioning")),this.watch("fontFamily",t.hitch(this,"_adjustLabelContainerPositioning")),this.watch("fontStyle",t.hitch(this,"_adjustLabelContainerPositioning")))},_setMajorTickLabelsAttr:function(e){this.inherited(arguments),this._adjustLabelContainerPositioning()},_adjustLabelContainerPositioning:function(){this.majorTickLabelDijit&&n(".dijitRuleLabelContainerH",this.majorTickLabelDijit.domNode).forEach((function(e){var t=i.position(e).w/2*-1;e.style.marginLeft=t+"px"}))},_computePreferredWidth:function(){var e,t;return e=this.width+this.sliderThumbSize.w,t=this._computePreferredWidthOfMajorTickLabels(),Math.max(e,t)},_computePreferredX:function(){var e=this._adjustTrackAndContainerOffset();return this.location[0]-e},_computePreferredHeight:function(){var e=this._getDomNodeOfWidgetAtEnd();e&&(this._bottomWidgetPosition=i.position(e));var t=this.sliderThumbSize.y;return(e?this._bottomWidgetPosition.y+this._bottomWidgetPosition.h:this.sliderThumbSize.y+this.sliderThumbSize.h)-t},_computePreferredY:function(){var e,t=i.position(this.sliderTrackNode);return this._bottomWidgetPosition?(this._bottomWidgetPosition.y+this._bottomWidgetPosition.h,e=this._bottomWidgetPosition.y-t.y-t.h+this._bottomWidgetPosition.h,this._bottomWidgetPosition=null):e=this.sliderThumbSize.h/3,this.location[1]-e},_computePreferredWidthOfMajorTickLabels:function(){var e=0;if(this.majorTickLabelDijit){var t=n(".dijitRuleLabel",this.containerNode),o=0,r=i.position(t[0]),a=i.position(this.sliderTrackNode);o=r.x<a.x-this.sliderThumbSize.w/2?r.x:a.x-this.sliderThumbSize.w/2;var s=i.position(t[t.length-1]);e=s.x-o+s.w}return e},_adjustTrackAndContainerOffset:function(){var e,t=n(".dijitRuleLabel",this.containerNode),o=this.sliderThumbSize.w/2;if(0===t.length)o=this.sliderThumbSize.w/2;else{for(var r=[],a=0;a<t.length;a+=1){var s=t[a];r[a]=i.position(s).x}var l=Math.min.apply(null,r);l<(e=i.position(this.sliderTrackNode)).x-this.sliderThumbSize.w/2&&(o=e.x-l)}return this.sliderTrackNode.style.left=o+"px",this.containerNode.style.left=o+"px",o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(217),i(246),i(238),i(1079),i(272),i(3187),i(572),i(3188)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([r,a],{templateString:s,sliderTrackNode:null,sliderThumbNode:null,value:0,maximum:100,minimum:0,THUMB_WIDTH:14,preferredSize:{width:0,height:0,left:0,bottom:0},_setHeightAttr:function(e){this.sliderTrackNode.style.height=e+"px",this._set("height",e)},_setOuterWidthAttr:function(e){this.domNode.style.width=e+"px"},_setOuterHeightAttr:function(e){this.domNode.height=e+"px"},_setLocationAttr:function(e){this._set("location",e)},_setPixelValue:function(e,t,i){this.disabled||this.readOnly||this._setValueAttr(Math.max(Math.min((this.maximum-this.minimum)*e/t+this.minimum,this.maximum),this.minimum),i)},_setValueAttr:function(e,t){this._set("value",e),this.valueNode.value=e,this.inherited(arguments)},_setMinimumAttr:function(e){this._set("minimum",e)},_setMaximumAttr:function(e){this._set("maximum",e)},_setMajorTicksAttr:function(e){if(this.majorTickDijit&&(this.majorTickDijit.destroy(),this.majorTickDijit=null,0===e.length))this._set("majorTicks",e);else{var t=this.constrainTicksToScaleLimits(e,[this.get("minimum"),this.get("maximum")]),i=this.getRuleConstructor();0!==t.ticks.length?(this._set("majorTicks",t.ticks.slice(0)),this.majorTickDijit=new i({class:"vc-MajorTickMarks",ticks:this.majorTicks,minimum:this.minimum,maximum:this.maximum,count:this.majorTicks.length}),this.majorTickDijit.placeAt(this.containerNode)):this._set("majorTicks",e)}},_setMinorTicksAttr:function(e){if(this.minorTickDijit&&(this.minorTickDijit.destroy(),this.minorTickDijit=null,0===e.length))this._set("minorTicks",e);else{var t=this.constrainTicksToScaleLimits(e,[this.get("minimum"),this.get("maximum")]),i=this.getRuleConstructor();0!==t.ticks.length?(this._set("minorTicks",t.ticks.slice(0)),this.minorTickDijit=new i({class:"vc-MinorTickMarks",count:this.minorTicks.length,ticks:this.minorTicks,minimum:this.minimum,maximum:this.maximum}),this.minorTickDijit.placeAt(this.containerNode)):this._set("minorTicks",e)}},_setMajorTickLabelsAttr:function(e){if(this.majorTickLabelDijit&&(this.majorTickLabelDijit.destroy(),this.majorTickLabelDijit=null),0!==e.length&&0!==e.join("").trim().length){var t=this.constrainTicksToScaleLimits(this.get("majorTicks"),[this.get("minimum"),this.get("maximum")],e),i=this.getRuleLabelConstructor();0!==t.labels.length?(this._set("majorTickLabels",t.labels.slice(0)),this.majorTickLabelDijit=new i({class:"vc-MajorTickLabels",minimum:this.minimum,maximum:this.maximum,labels:this.majorTickLabels,count:this.majorTickLabels.length,ticks:this.majorTicks}),this.majorTickLabelDijit.placeAt(this.containerNode)):this._set("majorTickLabels",e)}else this._set("majorTickLabels",e)},_onTrackClick:function(e){if(!this.disabled&&!this.readOnly&&e.target!==this.sliderThumbNode){o.focus(this.sliderThumbNode),n.stop(e);var t=i.position(this.sliderTrackNode),r=e[this._mousePixelCoord]-t[this._startingPixelCoord];this._isScaleDirectionReverse&&(r=t[this._pixelCount]-r),this._setPixelValue(r,t[this._pixelCount],!0),this.emit("mouseclicked"),this._thumbMoveable.onMouseDown(e)}},postCreate:function(){this.inherited(arguments);var i=e(c,{widget:this});this._thumbMoveable=new l(this.sliderThumbNode,{mover:i}),this.own(this.watch("value",t.hitch(this,"_adjustThumbPosition"))),this.own(this.watch("minimum",t.hitch(this,"_adjustThumbPosition"))),this.own(this.watch("maximum",t.hitch(this,"_adjustThumbPosition"))),this._adjustThumbPosition()},_adjustThumbPosition:function(){var e=(this.value-this.minimum)/(this.maximum-this.minimum);e=100*e-this.THUMB_WIDTH/this[this._thumbPositionParam1]/2*100,this.sliderThumbNode.style[this._thumbPositionParam2]=e+"%"},computePreferredSize:function(){var e,t,n,o;this.sliderThumbSize=i.position(this.sliderThumbNode),n=this._computePreferredWidth(),e=this._computePreferredX(),o=this._computePreferredHeight(),t=this._computePreferredY(),this.set("preferredSize",{width:n,height:o,left:e,bottom:t})},_getDomNodeOfWidgetAtEnd:function(){var e;return this.majorTickLabelDijit?e=this.majorTickLabelDijit.domNode:this.majorTickDijit?e=this.majorTickDijit.domNode:this.minorTickDijit&&(e=this.minorTickDijit.domNode),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(223),i(204),i(206),i(1785)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("dijit.form._FormValueMixin",r,{readOnly:!1,_setReadOnlyAttr:function(e){t.set(this.focusNode,"readOnly",e),this._set("readOnly",e)},postCreate:function(){this.inherited(arguments),void 0===this._resetValue&&(this._lastValueReported=this._resetValue=this.value)},_setValueAttr:function(e,t){this._handleOnChange(e,t)},_handleOnChange:function(e,t){this._set("value",e),this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,!1)},reset:function(){this._hasBeenBlurred=!1,this._setValueAttr(this._resetValue,!0)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="vc-userSelectNone vc-defaultFontRules" data-dojo-attach-event="press:_onTrackClick">\n <input type="hidden" data-dojo-attach-point="valueNode">\n <div class="vc-sliderTrack" data-dojo-attach-point="sliderTrackNode">\n <div class="vc-sliderThumb" data-dojo-attach-point="sliderThumbNode, focusNode"></div>\n </div>\n <div class="vc-sliderRuleAndLabelContainer" data-dojo-attach-point="containerNode"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(217),i(713)],o=i.dj.d(n,(function(e,t,i){return e(i,{onMouseMove:function(e){var i=this.widget,n=i._sliderTrackDimensions;n||(n=i._sliderTrackDimensions=t.position(i.sliderTrackNode,!0));var o=e[i._mousePixelCoord]-n[i._startingPixelCoord];i._isScaleDirectionReverse&&(o=n[i._pixelCount]-o),i._setPixelValue(o,n[i._pixelCount],!1),this._wasDragged=!0,i.emit("mousedragging")},onMouseUp:function(){var e=this.widget;this._wasDragged?(e.emit("mousedragreleased"),this._wasDragged=!1):e.emit("mouseclicked"),this.inherited(arguments)},destroy:function(){var e=this.widget;e._sliderTrackDimensions=null,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(899),i(225),i(1812)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.form.HorizontalRuleLabels",n,{templateString:'<div class="dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH"></div>',labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:'<div class="dijitRuleLabelContainer dijitRuleLabelContainerH" style="left:',_labelPrefix:'"><div class="dijitRuleLabel dijitRuleLabelH"',_suffix:"</div></div>",_qeIdSuffix:"id=",_calcPosition:function(e){return e},_genHTML:function(e,t){var i=this._qeIdSuffix+'"'+this.class+"_"+this.labels[t]+'">';return this._positionPrefix+this._calcPosition(e)+this._positionSuffix+this.labelStyle+this._labelPrefix+i+this.labels[t]+this._suffix},getLabels:function(){var e,n,o,r=this.labels;if(!r.length&&this.srcNodeRef&&(r=i("> li",this.srcNodeRef).map((function(e){return String(e.innerHTML)}))),!r.length&&this.count>1)for(e=this.minimum,n=(this.maximum-e)/(this.count-1),o=0;o<this.count;o+=1)r.push(o<this.numericMargin||o>=this.count-this.numericMargin?"":t.format(e,this.constraints)),e+=n;return r},postMixInProperties:function(){this.inherited(arguments),this.labels=this.getLabels(),this.count=this.labels.length}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3191),i(3192),i(3193),i(3194),i(3195),i(3196),i(3197),i(46),i(3198),i(3199),i(3200),i(3201),i(3202),i(3203),i(3204),i(3205),i(3206),i(3207),i(3208),i(3209),i(3210),i(3211),i(3212),i(3213),i(3214),i(3215),i(3216),i(3217),i(3218),i(3219),i(3220),i(3221),i(3222),i(3223),i(3224),i(3225),i(3226),i(3227)],o=i.dj.d(n,(function(e,t){return t(e,"dojo/cldr/nls/number",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"‎-",decimal:".",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤#,##0.00;(¤#,##0.00)",plusSign:"‎+","decimalFormat-long":"000 تريليون","decimalFormat-short":"000 ترليو"}},function(e,t,i){e.exports={group:".",decimal:","}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤;(#,##0.00 ¤)",plusSign:"+","decimalFormat-long":"000 bilions","decimalFormat-short":"000 B"}},function(e,t,i){e.exports={group:" ",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0 %",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 bilionů","decimalFormat-short":"000 bil'.'"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0 %",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 billioner","decimalFormat-short":"000 bill"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0 %",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"·",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 Billionen","decimalFormat-short":"000 Bio"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"e",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 τρισεκατομμύρια","decimalFormat-short":"000 τρισ'.'"}},function(e,t,i){e.exports={currencyFormat:"¤#,##0.00"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 billones","decimalFormat-short":"000B"}},function(e,t,i){e.exports={group:" ",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0 %",list:";",infinity:"∞",minusSign:"−",decimal:",",superscriptingExponent:"×",nan:"epäluku",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 biljoonaa","decimalFormat-short":"000 bilj'.'"}},function(e,t,i){e.exports={group:" ",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0 %",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤;(#,##0.00 ¤)",plusSign:"+","decimalFormat-long":"000 billions","decimalFormat-short":"000 Bn"}},function(e,t,i){e.exports={currencyFormat:"¤ #,##0.00;¤-#,##0.00",group:"'",decimal:"."}},function(e,t,i){e.exports={group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"‎-",decimal:".",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"‎+","decimalFormat-long":"‏000 טריליון","decimalFormat-short":"000T"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 bilijuna","decimalFormat-short":"000 bil'.'"}},function(e,t,i){e.exports={group:" ",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 billió","decimalFormat-short":"000 B"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 bilioni","decimalFormat-short":"000 Bln"}},function(e,t,i){e.exports={group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:".",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤#,##0.00;(¤#,##0.00)",plusSign:"+","decimalFormat-long":"000兆","decimalFormat-short":"000兆"}},function(e,t,i){e.exports={group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:".",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤#,##0.00;(¤#,##0.00)",plusSign:"+","decimalFormat-long":"000조","decimalFormat-short":"000조"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤ #,##0.00",plusSign:"+","decimalFormat-long":"000 трилиони","decimalFormat-short":"000 трил'.'"}},function(e,t,i){e.exports={group:" ",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0 %",list:";",infinity:"∞",minusSign:"−",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤ #,##0.00",plusSign:"+","decimalFormat-long":"000 billioner","decimalFormat-short":"000 bill"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤ #,##0.00;(¤ #,##0.00)",plusSign:"+","decimalFormat-long":"000 biljoen","decimalFormat-short":"000 bln'.'"}},function(e,t,i){e.exports={group:" ",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤;(#,##0.00 ¤)",plusSign:"+","decimalFormat-long":"000 biliona","decimalFormat-short":"000 bln"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤#,##0.00;(¤#,##0.00)",plusSign:"+","decimalFormat-long":"000 trilhões","decimalFormat-short":"000 tri"}},function(e,t,i){e.exports={group:" ",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤;(#,##0.00 ¤)",plusSign:"+","decimalFormat-long":"000 biliões","decimalFormat-short":"000 Bi"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0 %",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤;(#,##0.00 ¤)",plusSign:"+","decimalFormat-long":"000 de trilioane","decimalFormat-short":"000 tril'.'"}},function(e,t,i){e.exports={group:" ",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0 %",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"не число",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 триллиона","decimalFormat-short":"000 трлн"}},function(e,t,i){e.exports={group:" ",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0 %",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤;(#,##0.00 ¤)",plusSign:"+","decimalFormat-long":"000 biliónov","decimalFormat-short":"000 bil'.'"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"e",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤;(#,##0.00 ¤)",plusSign:"+","decimalFormat-long":"000 bilijonov","decimalFormat-short":"000 bil'.'"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤;(#,##0.00 ¤)",plusSign:"+","decimalFormat-long":"000 трилиона","decimalFormat-short":"000 бил"}},function(e,t,i){e.exports={group:" ",percentSign:"%",exponential:"×10^",scientificFormat:"#E0",percentFormat:"#,##0 %",list:";",infinity:"∞",minusSign:"−",decimal:",",superscriptingExponent:"·",nan:"¤¤¤",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤",plusSign:"+","decimalFormat-long":"000 biljoner","decimalFormat-short":"000 bn"}},function(e,t,i){e.exports={group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:".",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤#,##0.00;(¤#,##0.00)",plusSign:"+","decimalFormat-long":"000 ล้านล้าน","decimalFormat-short":"000 ล'.'ล'.'"}},function(e,t,i){e.exports={group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"%#,##0",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"#,##0.00 ¤;(#,##0.00 ¤)",plusSign:"+","decimalFormat-long":"000 trilyon","decimalFormat-short":"000 Tn"}},function(e,t,i){e.exports={group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:".",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤#,##0.00;(¤#,##0.00)",plusSign:"+","decimalFormat-long":"000兆","decimalFormat-short":"000兆"}},function(e,t,i){e.exports={group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:".",superscriptingExponent:"×",nan:"非數值",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤#,##0.00;(¤#,##0.00)",plusSign:"+","decimalFormat-long":"000兆","decimalFormat-short":"000T"}},function(e,t,i){e.exports={$locale:"zh-hant-hk","decimalFormat-short":"000T",nan:"非數值"}},function(e,t,i){e.exports={$locale:"zh-hant-tw","decimalFormat-short":"000T",nan:"非數值"}},function(e,t,i){e.exports={root:{scientificFormat:"#E0","currencySpacing-afterCurrency-currencyMatch":"[:^S:]",infinity:"∞",superscriptingExponent:"×",list:";",percentSign:"%",minusSign:"-","currencySpacing-beforeCurrency-surroundingMatch":"[:digit:]","decimalFormat-short":"000T","currencySpacing-afterCurrency-insertBetween":" ",nan:"NaN",plusSign:"+","currencySpacing-afterCurrency-surroundingMatch":"[:digit:]","currencySpacing-beforeCurrency-currencyMatch":"[:^S:]",currencyFormat:"¤ #,##0.00",perMille:"‰",group:",",percentFormat:"#,##0%","decimalFormat-long":"000T",decimalFormat:"#,##0.###",decimal:".","currencySpacing-beforeCurrency-insertBetween":" ",exponential:"E"},ar:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,"en-au":!0,es:!0,fi:!0,fr:!0,"fr-ch":!0,he:!0,hr:!0,hu:!0,it:!0,ja:!0,ko:!0,mk:!0,nb:!0,nl:!0,pl:!0,pt:!0,"pt-pt":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,zh:!0,"zh-hant":!0,"zh-hk":!0,"zh-tw":!0}},function(e,t,i){var n,o;n=[i(203),i(422),i(449),i(435),i(332),i(412),i(518),i(436),i(370),i(1076),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(d.validate([t,i,n,o,r,a,s,l,c]),{visualFamily:"default",height:22,_qeSetChecked:function(e){this.set("checked",e,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(308),i(449),i(435),i(332),i(412),i(518),i(436),i(370),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(c.validate([t,i,n,o,r,a,s,l]),{visualFamily:"default",height:22,_qeSetChecked:function(e){this.set("checked",e,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(272),i(3231),i(361)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i,n,r],{templateString:o})}),e,t),e.exports=o},function(e,t){e.exports="<div class='toolbarWrapper'>\n</div>"},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(272),i(3233),i(361)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i,n,r],{templateString:o})}),e,t),e.exports=o},function(e,t){e.exports="<div class='menubarWrapper' data-focus='accept'>\n</div>"},function(e,t){e.exports='<div class="Item"\n ><div data-dojo-attach-point=\'itemWrapperNode, focusNode\' class="itemWrapper"\n ><div data-dojo-attach-point="iconWrapper" class="iconWrapper"\n ><div data-dojo-attach-point="iconNode" class="iconNode"></div\n ></div\n ><div data-dojo-attach-point="labelWrapper" class=\'labelWrapper\'\n ><div data-dojo-attach-point="labelNode" class="label"></div\n ><div data-dojo-attach-point="descriptionNode" class="description"></div\n ></div\n ></div\n ><div data-dojo-attach-point=\'controlsNode\' class=\'controlsNode\'\n ><div data-dojo-attach-point=\'favButtonNode\' class=\'control favButton\'></div\n ></div\n ><div data-dojo-attach-point=\'optionsNode\' class=\'optionsNode\'\n ></div\n></div>\n'},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{GALLERY:"Gallery",FAVORITES:"Favorites",CATEGORY:"Category"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(330)],o=i.dj.d(n,(function(e,t){var i=e(null,{_setDisabledAttr:function(e,t){this.inherited(arguments),t&&"UI"===t.source?this.galleryStateChanged(!0):this.galleryStateChanged(!1)},_addDisableListener:function(e,t){e=this._disabledNode?this._disabledNode:this.domNode,this.inherited(arguments)}});return i._dependencies=[{mixin:t,orderDependent:!0}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1813),i(226),i(409),i(608),i(878),i(1076),i(789)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([t,n,o,r,a,s],{baseClass:"mwWidget mwToggleGalleryItem",postCreate:function(){this.set("checkableNode",this.itemWrapperNode),this.inherited(arguments)},_setCheckedAttr:function(e,t){if(this.inherited(arguments),!this._destroyed){var n=this.getParent(),o=null;n&&(n.type===i.GALLERY&&n.scrollToSelection?n.getChildren().some((function(e){return!0===e.get("checked")}),this)||n.refresh():(o=n.getParent())&&o.type===i.GALLERY_POPUP&&o.scrollToSelection&&this.checked&&!o._invokingGallery.getChildren().some((function(e){return e.get("actionId")===this.get("actionId")}),this)&&(t&&"UI"===t.source?o.galleryStateChanged():o.refreshGallery&&o.refreshGallery()))}},_qeSetChecked:function(e){this.set("checked",e,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(3239),i(3240)],o=i.dj.d(n,(function(e,t,i){var n={};return e.mixin(n,t),e.mixin(n,i),n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226)],o=i.dj.d(n,(function(e){var t={};return t[e.TOOLSTRIP]={actionEvents:[],componentEvents:["toolstripPlaced"]},t[e.TAB]={actionEvents:[],componentEvents:["remove"]},t[e.PUSH_BUTTON]={actionEvents:["buttonPushed"],componentEvents:[]},t[e.QAB]={actionEvents:[],componentEvents:["restoreFactoryControls","controlAdded","controlRemoved"]},t[e.QAB_PUSH_BUTTON]=t[e.PUSH_BUTTON],t[e.TOGGLE_BUTTON]={actionEvents:[],componentEvents:[]},t[e.QAB_TOGGLE_BUTTON]=t[e.TOGGLE_BUTTON],t[e.DROP_DOWN_BUTTON]={actionEvents:[],componentEvents:["dropDownPerformed"]},t[e.QAB_DROP_DOWN_BUTTON]=t[e.DROP_DOWN_BUTTON],t[e.QAB_GALLERY_CATEGORY_BUTTON]=t[e.QAB_DROP_DOWN_BUTTON],t[e.SPLIT_BUTTON]={actionEvents:["buttonPushed"],componentEvents:["dropDownPerformed"]},t[e.COLOR_PICKER_BUTTON]={actionEvents:["valueChanged"],componentEvents:[]},t[e.QAB_SPLIT_BUTTON]=t[e.SPLIT_BUTTON],t[e.TOGGLE_SPLIT_BUTTON]={actionEvents:[],componentEvents:["dropDownPerformed"]},t[e.QAB_TOGGLE_SPLIT_BUTTON]=t[e.TOGGLE_SPLIT_BUTTON],t[e.COMBO_BOX]={actionEvents:["dropDownPerformed","focusGained","focusLost","typing","textCancelled","recommit"],componentEvents:[]},t[e.POPUP_LIST]={actionEvents:[],componentEvents:["onOpen","onClose"]},t[e.LIST_ITEM]={actionEvents:["itemPushed"],componentEvents:["remove"]},t[e.LIST_ITEM_WITH_POPUP]={actionEvents:[],componentEvents:["dropDownPerformed"]},t[e.LIST_ITEM_WITH_CHECKBOX]={actionEvents:[],componentEvents:["closeRequest"]},t[e.TEXT_FIELD]={actionEvents:["focusGained","focusLost","typing","textCancelled","recommit"],componentEvents:[]},t[e.TEXT_AREA]={actionEvents:["focusGained","focusLost"],componentEvents:[]},t[e.LIST_ITEM_WITH_TEXTFIELD]={actionEvents:["focusGained","focusLost","typing","commit","recommit","textCancelled","itemPushed"],componentEvents:["remove","edit"]},t[e.HORIZONTAL_SLIDER]={actionEvents:["valueChanged"],componentEvents:[]},t[e.SPINNER]={actionEvents:["valueChanged","recommit"],componentEvents:[]},t[e.GALLERY]={actionEvents:[],componentEvents:["refresh"]},t[e.GALLERY_POPUP]={actionEvents:[],componentEvents:["galleryStateChanged"]},t[e.GALLERY_PANEL]={actionEvents:[],componentEvents:["galleryStateChanged"]},t[e.GALLERY_CATEGORY]={actionEvents:[],componentEvents:["categoryMoved","itemMoved"]},t[e.GALLERY_FAVORITE_CATEGORY]={actionEvents:[],componentEvents:["itemMoved"]},t[e.GALLERY_ITEM]={actionEvents:["itemPushed"],componentEvents:["favButtonPushed","remove"]},t[e.TOGGLE_GALLERY_ITEM]={actionEvents:[],componentEvents:["favButtonPushed","remove"]},t[e.QA_GROUP]={actionEvents:[],componentEvents:["itemMoved"]},t[e.SPLIT_BUTTON_WITH_DISABLE_OVERRIDE]=t[e.SPLIT_BUTTON],t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(388)],o=i.dj.d(n,(function(e){var t={};return t[e.STATUS_PUSH_BUTTON]={actionEvents:["buttonPushed"],componentEvents:[]},t[e.STATUS_TEXT_FIELD]={actionEvents:["focusGained","focusLost","typing","textCancelled","recommit"],componentEvents:[]},t[e.STATUS_TOGGLE_BUTTON]={actionEvents:[],componentEvents:[]},t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(3242),i(3243)],o=i.dj.d(n,(function(e,t,i){var n={};return e.mixin(n,t),e.mixin(n,i),n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226)],o=i.dj.d(n,(function(e){var t={};return t[e.PUSH_BUTTON]={buttonPushed:"click"},t[e.DROP_DOWN_BUTTON]={dropDownPerformed:"dropdownclick"},t[e.SPLIT_BUTTON]={dropDownPerformed:"dropdownclick",buttonPushed:"click"},t[e.COLOR_PICKER_BUTTON]={valueChanged:"change"},t[e.TOGGLE_SPLIT_BUTTON]={dropDownPerformed:"dropdownclick"},t[e.QAB_PUSH_BUTTON]=t[e.PUSH_BUTTON],t[e.QAB_DROP_DOWN_BUTTON]=t[e.DROP_DOWN_BUTTON],t[e.QAB_SPLIT_BUTTON]=t[e.SPLIT_BUTTON],t[e.QAB_TOGGLE_SPLIT_BUTTON]=t[e.TOGGLE_SPLIT_BUTTON],t[e.QAB_GALLERY_CATEGORY_BUTTON]=t[e.QAB_DROP_DOWN_BUTTON],t[e.TEXT_FIELD]={focusGained:"focusgained",focusLost:"focuslost",typing:"typing",textCancelled:"textcancelled"},t[e.TEXT_AREA]={focusGained:"focusgained",focusLost:"focuslost"},t[e.COMBO_BOX]={focusGained:"focus",focusLost:"blur",typing:"typing",textCancelled:"textcancelled",dropDownPerformed:"dropdownclick"},t[e.POPUP_LIST]={onOpen:"open",onClose:"close"},t[e.SPINNER]={valueChanged:"change"},t[e.LIST_ITEM]={itemPushed:"click"},t[e.LIST_ITEM_WITH_TEXTFIELD]={focusGained:"focusgained",focusLost:"focuslost",typing:"typing",commit:"commit",recommit:"recommit",textCancelled:"textcancelled",itemPushed:"itempushed"},t[e.LIST_ITEM_WITH_POPUP]={dropDownPerformed:"dropdownclick"},t[e.LIST_ITEM_WITH_CHECKBOX]={closeRequest:"closeRequest"},t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(388)],o=i.dj.d(n,(function(e,t){var i={};return i[t.STATUS_PUSH_BUTTON]={buttonPushed:"click"},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(388),i(1807),i(3245)],o=i.dj.d(n,(function(e,t,i,n){var o={};return e.mixin(o,i),e.mixin(o,n),Object.keys(o).forEach((function(e){Object.keys(o[e]).forEach((function(t){o[e][o[e][t]]=t}))})),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(388)],o=i.dj.d(n,(function(e,t){var i={};return i[t.STATUS_PUSH_BUTTON]={enabled:"disabled"},i[t.STATUS_LABEL]={enabled:"disabled"},i[t.STATUS_TEXT_FIELD]={text:"value",placeholderText:"placeholder",enabled:"disabled"},i[t.STATUS_PROGRESS_BAR]={enabled:"disabled"},i[t.STATUS_TOGGLE_BUTTON]={selected:"checked",buttonGroupName:"buttonGroup",enabled:"disabled"},Object.keys(i).forEach((function(e){Object.keys(i[e]).forEach((function(t){i[e][i[e][t]]=t}))})),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(781),i(3247)],o=i.dj.d(n,(function(e,t,i){var n=[];return n=(n=n.concat(t)).concat(i)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(388)],o=i.dj.d(n,(function(e){return[e.STATUS_LABEL,e.STATUS_PROGRESS_BAR,e.STATUS_PUSH_BUTTON,e.STATUS_TEXT_FIELD,e.STATUS_TOGGLE_BUTTON]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226)],o=i.dj.d(n,(function(e){var t={};return t[e.PUSH_BUTTON]={events:["buttonPushed"],properties:[]},t[e.SPLIT_BUTTON]={events:["buttonPushed"],properties:[]},t[e.TOGGLE_BUTTON]={events:[],properties:["checked"]},t[e.TOGGLE_SPLIT_BUTTON]={events:[],properties:["checked"]},t[e.LIST_ITEM]={events:["itemPushed"],properties:[]},t[e.LIST_ITEM_WITH_CHECKBOX]={events:["closeRequest"],properties:[]},t[e.COMBO_BOX]={events:[],properties:["value"]},t[e.CHECK_BOX]={events:[],properties:["checked"]},t[e.RADIO_BUTTON]={events:[],properties:["checked"]},t[e.SPLIT_BUTTON_WITH_DISABLE_OVERRIDE]={events:["buttonPushed"],properties:[]},t[e.GALLERY_ITEM]={events:["itemPushed"],properties:[]},t[e.TOGGLE_GALLERY_ITEM]={events:[],properties:["checked"]},t[e.QAB_PUSH_BUTTON]={events:["buttonPushed"],properties:[]},t[e.QAB_SPLIT_BUTTON]={events:["buttonPushed"],properties:[]},t[e.QAB_TOGGLE_BUTTON]={events:[],properties:["checked"]},t[e.QAB_TOGGLE_SPLIT_BUTTON]={events:[],properties:["checked"]},t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(388),i(226)],o=i.dj.d(n,(function(e,t){return[t.TOOLSTRIP,t.TAB_GROUP,t.TAB,t.QAB,t.QA_GROUP,t.QAB_PUSH_BUTTON,t.QAB_DROP_DOWN_BUTTON,t.QAB_SPLIT_BUTTON,t.QAB_TOGGLE_BUTTON,t.QAB_TOGGLE_SPLIT_BUTTON,t.QAB_GALLERY_CATEGORY_BUTTON,t.QAB_FLOATING_PANE_DOCK,t.POPUP_LIST_HEADER,t.POPUP_LIST_PANEL,t.MENUBAR_WRAPPER,t.TOOLBAR_WRAPPER,e.STATUS_BAR_ROOT,e.STATUS_BAR,e.STATUS_GROUP,e.STATUS_LABEL,e.STATUS_PROGRESS_BAR,e.STATUS_PUSH_BUTTON,e.STATUS_TEXT_FIELD,e.STATUS_TOGGLE_BUTTON]}),e,t),e.exports=o},function(e,t,i){e.exports={fromModelManager:["create","destroy","add","remove","get","set","exists","indexOf","getChildrenIds","getParentId","isAnOrphan","addEventCallback","addPropertySetCallback","createCorrespondingComponentInQAB","createPopupsFromConfig","addTabGroupFromConfig","addStatusBarFromConfig","createGalleryPopupFromConfig","addGalleryItemToFavorites","removeGalleryItemFromFavorites","getGalleryState","setGalleryState","getQABState","setQABState","widgetByTag","tagToId","showPopup","addToolstripFromConfig","placeToolstripAt","selectTab","selectFirstTabInTabGroup","getMenubarWrapperWidget","getToolbarWrapperWidget","lazyLoadQABItems"],fromWidgetManager:["refreshGallery","isAnyPopupOpen","closeAllOpenPopups"]}},function(e,t,i){var n,o;n=[i(203),i(384),i(3252),i(3253),i(3254),i(3255),i(292)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t],{currentContext:null,secondaryContext:null,constructor:function(e){if(this.parentAppId=e.parentAppId,this.alternativeContextMemory=!!e.alternativeContextMemory,this._uiBuilder=e.uiBuilder||a.getInstance(),this.toolstripId=this._uiBuilder.tagToId(e.toolstripTag),this._forceUpdate=!1,!this.toolstripId)throw new Error('No toolstrip with tag "'+e.toolstripTag+'" exists!');this._panelManager=new i({contextManagerImpl:this,uiContainer:e.uiContainer}),this._quickAccessActionManager=new n({contextManagerImpl:this,uiBuilder:this._uiBuilder,qabContextualControlsActionMap:e.qabContextualControlsActionMap}),this._statusComponentManager=new o({contextManagerImpl:this,uiContainer:e.uiContainer}),this._tabGroupManager=new r({contextManagerImpl:this,uiBuilder:this._uiBuilder})},setForceUpdate:function(e){this._forceUpdate=e},isForceUpdateEnabled:function(){return this._forceUpdate},register:function(e,t){switch(e){case"TabGroups":this._tabGroupManager.registerTabGroups(t);break;case"QuickAccessAction":this._quickAccessActionManager.registerQuickAccessAction(t);break;case"Panels":this._panelManager.registerPanels(t);break;case"StatusComponents":this._statusComponentManager.registerComponents(t);break;default:throw new Error("This is not a valid type to register!")}},unregister:function(e,t){switch(e){case"TabGroups":this._tabGroupManager.unregisterTabGroups(t);break;case"QuickAccessAction":this._quickAccessActionManager.unregisterQuickAccessAction(t);break;case"Panels":this._panelManager.unregisterPanels(t);break;case"StatusComponents":this._statusComponentManager.unregisterComponents(t);break;default:throw new Error("This is not a valid type to unregister!")}},resetLastSelectedTab:function(e){this._tabGroupManager.resetLastSelectedTab(e)},cleanup:function(){this._quickAccessActionManager.cleanup(),this._tabGroupManager.cleanup(),this._panelManager.cleanup(),this._statusComponentManager.cleanup()},_currentContextSetter:function(e){e&&e.appId&&(e.contextIdList&&0!==e.contextIdList.length?e.contextIdList.length>0&&-1===e.contextIdList.indexOf("global")&&e.contextIdList.splice(0,0,"global"):e.contextIdList=["global"]),this.currentContext=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1080)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e){this._uiContainer=e.uiContainer,this._registeredPanels={},this._currentContextualPanelIds=[],this._stateForContext={}},registerPanels:function(e){this._registeredPanels[e.appId]||(this._registeredPanels[e.appId]={}),this._registeredPanels[e.appId][e.contextId]||(this._registeredPanels[e.appId][e.contextId]={}),e.panelIds&&(this._registeredPanels[e.appId][e.contextId].panels=e.panelIds)},unregisterPanels:function(e){this._registeredPanels[e.appId]&&(this._registeredPanels[e.appId][e.contextId]?delete this._registeredPanels[e.appId][e.contextId]:delete this._registeredPanels[e.appId])},getContextualStates:function(){var e=this._contextManagerImpl.get("currentContext");return e&&!this._isAppContext(e)&&(this._stateForContext[this._generateContextKey(e)]=this._uiContainer._getContextualState(e.appId)),this._stateForContext},setContextualStates:function(e){t.mixin(this._stateForContext,e)},_update:function(e,i){if(this._uiContainer){var n=this,o=this._uiContainer.getOccupiedBorders();this._lastContext&&!this._isAppContext(this._lastContext)&&(this._stateForContext[this._generateContextKey(this._lastContext)]=this._uiContainer._getContextualState(this._lastContext.appId));var r,a=this._getPanelIdsForContext(e),s=this._getPanelIdsForContext(i);a=a.concat(s);var l=this._lastContext&&e&&this._lastContext.appId!==e.appId;if(this._currentContextualPanelIds.reverse().forEach((function(e){(l||a.indexOf(e)<0)&&(n._uiContainer._removeFromLayout(e),r=!0)})),a.forEach((function(t){if(l||n._currentContextualPanelIds.indexOf(t)<0){var i=s.indexOf(t)>=0?void 0:e.appId;n._uiContainer._addToLayout(t,i),r=!0}})),r&&this._lastContext&&JSON.stringify(this._lastContext)!==JSON.stringify(e)){var c=this._stateForContext[this._generateContextKey(e)];c&&o.length&&(c=t.clone(c),o.forEach((function(e){c[e]&&c[e].border&&delete c[e].border}))),c&&this._uiContainer._setContextualState(c,e.appId)}this._lastContext=e,this._currentContextualPanelIds=a}},_isAppContext:function(e){return!e||e.appId===this._contextManagerImpl.parentAppId},_getPanelIdsForContext:function(e){var t=[];return e&&e.contextIdList&&this._registeredPanels[e.appId]&&e.contextIdList.forEach((function(i){if(this._registeredPanels[e.appId][i]){var n=this._registeredPanels[e.appId][i].panels;n&&(t=t.concat(n))}}),this),t},_generateContextKey:function(e){var t="null";return e&&(t=e.appId,e.contextIdList.forEach((function(e){"global"!==e&&(t+="_"+e)}))),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(292),i(1080)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{constructor:function(e){this._qabContextualControlsActionMap=e.qabContextualControlsActionMap,this._registeredQuickAccessActions={}},registerQuickAccessAction:function(e){this._registeredQuickAccessActions[e.appId]||(this._registeredQuickAccessActions[e.appId]={}),this._registeredQuickAccessActions[e.appId][e.contextId]||(this._registeredQuickAccessActions[e.appId][e.contextId]={}),e.quickAccessControlTag&&e.actionId&&(this._registeredQuickAccessActions[e.appId][e.contextId][e.quickAccessControlTag]=e.actionId)},unregisterQuickAccessAction:function(e){this._registeredQuickAccessActions[e.appId]&&this._registeredQuickAccessActions[e.appId][e.contextId]&&(this._registeredQuickAccessActions[e.appId][e.contextId][e.quickAccessControlTag]?delete this._registeredQuickAccessActions[e.appId][e.contextId][e.quickAccessControlTag]:delete this._registeredQuickAccessActions[e.appId][e.contextId])},_update:function(e,t){Object.keys(this._qabContextualControlsActionMap).forEach((function(e){var t=this._uiBuilder.tagToId(e);this._uiBuilder.exists(t)&&this._uiBuilder.set(t,"actionId",this._qabContextualControlsActionMap[e])}),this),e&&this._contextManagerImpl.parentAppId&&this._applyQuickAccessActions(this._contextManagerImpl.parentAppId,"global"),e&&this._registeredQuickAccessActions[e.appId]&&(e.appId!==this._contextManagerImpl.parentAppId&&this._applyQuickAccessActions(e.appId,"global"),e.contextIdList&&e.contextIdList.forEach((function(t){"global"!==t&&this._applyQuickAccessActions(e.appId,t)}),this)),t&&t.contextIdList&&this._registeredQuickAccessActions[t.appId]&&t.contextIdList.forEach((function(e){this._applyQuickAccessActions(t.appId,e)}),this)},_applyQuickAccessActions:function(e,t){this._registeredQuickAccessActions[e]&&this._registeredQuickAccessActions[e][t]&&Object.keys(this._registeredQuickAccessActions[e][t]).forEach((function(i){var n=this._uiBuilder.tagToId(i);this._uiBuilder.exists(n)&&this._uiBuilder.set(n,"actionId",this._registeredQuickAccessActions[e][t][i])}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1080)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e){this._uiContainer=e.uiContainer,this._registeredComponents={},this._currentComponentTags=[]},registerComponents:function(e){this._registeredComponents[e.appId]||(this._registeredComponents[e.appId]={}),this._registeredComponents[e.appId][e.contextId]||(this._registeredComponents[e.appId][e.contextId]={}),e.statusComponentTags&&(this._registeredComponents[e.appId][e.contextId].componentTags=e.statusComponentTags)},unregisterComponents:function(e){this._registeredComponents[e.appId]&&(this._registeredComponents[e.appId][e.contextId]?delete this._registeredComponents[e.appId][e.contextId]:delete this._registeredComponents[e.appId])},_update:function(e,t){if(this._uiContainer&&this._uiContainer.statusBarId){var i=this,n=this._uiContainer.uiBuilder,o=this._getComponentTagsForContext(e),r=this._getComponentTagsForContext(t);o=o.concat(r),this._currentComponentTags.forEach((function(e){o.indexOf(e)<0&&n.remove(n.tagToId(e))})),o.forEach((function(e){i._currentComponentTags.indexOf(e)<0&&n.add(n.tagToId(e),i._uiContainer.statusBarId)})),this._lastContext=e,this._currentComponentTags=o}},_getComponentTagsForContext:function(e){var t=[];return e&&e.contextIdList&&this._registeredComponents[e.appId]&&e.contextIdList.forEach((function(i){if(this._registeredComponents[e.appId][i]){var n=this._registeredComponents[e.appId][i].componentTags;n&&(t=t.concat(n))}}),this),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(231),i(210),i(209),i(292),i(1080)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([a],{constructor:function(e){this._toolstripId=e.contextManagerImpl.toolstripId,this._toolstripWidget=i.byId(this._toolstripId),this._registeredTabGroups={},this._lastValidContext=null,this._lastSelectedTabId=null,this._showingContextualTabGroups=[],this._handles.push(this._uiBuilder.addPropertySetCallback(this._toolstripId,t.hitch(this,this._selectedTabChangedCallback)))},registerTabGroups:function(e){this._registeredTabGroups[e.appId]||(this._registeredTabGroups[e.appId]={}),this._registeredTabGroups[e.appId][e.contextId]||(this._registeredTabGroups[e.appId][e.contextId]={}),this._registeredTabGroups[e.appId][e.contextId].tabGroupTags=e.tabGroupTags,e.appId===this._contextManagerImpl.parentAppId&&"global"===e.contextId&&this._addGlobalTabGroups()},unregisterTabGroups:function(e){this._registeredTabGroups[e.appId]&&(this._registeredTabGroups[e.appId][e.contextId]?delete this._registeredTabGroups[e.appId][e.contextId]:delete this._registeredTabGroups[e.appId])},resetLastSelectedTab:function(e){this._registeredTabGroups[e.appId]&&(this._registeredTabGroups[e.appId][e.contextId]?this._registeredTabGroups[e.appId][e.contextId].lastSelectedTabId=null:Object.keys(this._registeredTabGroups[e.appId]).forEach((function(t){this._registeredTabGroups[e.appId][t].lastSelectedTabId=null}),this))},_update:function(e,i){var n=this._getTabGroupsForContext(e,i);if(JSON.stringify(this._showingContextualTabGroups)!==JSON.stringify(n)){this._previouslySelectedTabId=this._uiBuilder.get(this._toolstripId,"selectedTab"),e&&this._registeredTabGroups[e.appId]&&(this._lastValidContext=this._contextManagerImpl.get("currentContext"),this._registeredTabGroupsForNewApp=t.clone(this._registeredTabGroups[e.appId]));var[o,r]=this._computeTabGroupsDifference(this._showingContextualTabGroups,n);this._removeContextualTabGroups(o),this._addContextualTabGroups(r),this._showingContextualTabGroups=n,this._contextManagerImpl.alternativeContextMemory?this._selectAppropriateTab(e.appId):e&&e.contextIdList&&this._showingContextualTabGroups.length>0?e.contextIdList.forEach((function(t){this._selectAppropriateTab(e.appId,t)}),this):this._contextManagerImpl.parentAppId&&this._selectAppropriateTab(this._contextManagerImpl.parentAppId,"global")}},_computeTabGroupsDifference:function(e,t){for(var i=0;i<e.length&&i<t.length&&e[i]===t[i];)i+=1;return[e.slice(i),t.slice(i)]},_getTabGroupsForContext:function(e,t){var i=[];return e&&e.contextIdList&&this._registeredTabGroups[e.appId]&&e.contextIdList.forEach((function(t){(e.appId!==this._contextManagerImpl.parentAppId||"global"!==t)&&this._registeredTabGroups[e.appId][t]&&this._registeredTabGroups[e.appId][t].tabGroupTags&&(i=i.concat(this._registeredTabGroups[e.appId][t].tabGroupTags))}),this),t&&t.contextIdList&&this._registeredTabGroups[t.appId]&&t.contextIdList.forEach((function(e){this._registeredTabGroups[t.appId][e]&&this._registeredTabGroups[t.appId][e].tabGroupTags&&(i=i.concat(this._registeredTabGroups[t.appId][e].tabGroupTags))}),this),i},_removeContextualTabGroups:function(e){this._ignoreSelectedTabChange=!0,this._toolstripWidget._ignoreResize=!0,e.forEach((function(e){this._uiBuilder.remove(this._uiBuilder.tagToId(e))}),this),this._ignoreSelectedTabChange=!1,this._toolstripWidget._ignoreResize=!1},_addContextualTabGroups:function(e){this._ignoreSelectedTabChange=!0,this._toolstripWidget._ignoreResize=!0,e.forEach((function(e){var t=this._uiBuilder.tagToId(e);this._uiBuilder.add(t,this._toolstripId),this._uiBuilder.getChildrenIds(t).forEach((function(e){n.add(i.byId(e).controlButton.domNode,"toolstripContextualTab")}))}),this),this._ignoreSelectedTabChange=!1,this._toolstripWidget._ignoreResize=!1},_addGlobalTabGroups:function(){var e=this._contextManagerImpl.parentAppId;this._registeredTabGroups[e]&&this._registeredTabGroups[e].global&&(this._ignoreSelectedTabChange=!0,this._toolstripWidget._ignoreResize=!0,this._registeredTabGroups[e].global.tabGroupTags.forEach((function(e){var t=this._uiBuilder.tagToId(e);this._uiBuilder.isAnOrphan(t)&&this._uiBuilder.add(t,this._toolstripId)}),this),this._ignoreSelectedTabChange=!1,this._toolstripWidget._ignoreResize=!1)},_selectAppropriateTab:function(e,t){if(this._registeredTabGroups[e])if(this._contextManagerImpl.alternativeContextMemory)this._lastSelectedTabId&&this._uiBuilder.exists(this._lastSelectedTabId)&&!this._uiBuilder.isAnOrphan(this._lastSelectedTabId)?(this._uiBuilder.set(this._toolstripId,"selectedTab",""),this._uiBuilder.set(this._toolstripId,"selectedTab",this._lastSelectedTabId)):this._registeredTabGroups[e].global&&this._registeredTabGroups[e].global.tabGroupTags&&this._registeredTabGroups[e].global.tabGroupTags.length>0&&this._uiBuilder.selectFirstTabInTabGroup(this._registeredTabGroups[e].global.tabGroupTags[0],this._toolstripId);else if(this._registeredTabGroups[e][t]){var i=this._registeredTabGroupsForNewApp&&this._registeredTabGroupsForNewApp[t].lastSelectedTabId;i&&this._uiBuilder.exists(i)&&!this._uiBuilder.isAnOrphan(i)?this._isAGlobalTab(this._previouslySelectedTabId,e)?this._isAGlobalTab(i,e)?this._uiBuilder.set(this._toolstripId,"selectedTab",this._previouslySelectedTabId):this._uiBuilder.set(this._toolstripId,"selectedTab",i):(this._uiBuilder.set(this._toolstripId,"selectedTab",""),this._uiBuilder.set(this._toolstripId,"selectedTab",i)):this._registeredTabGroups[e]&&this._registeredTabGroups[e][t]&&this._registeredTabGroups[e][t].tabGroupTags&&this._registeredTabGroups[e][t].tabGroupTags.length>0&&this._uiBuilder.selectFirstTabInTabGroup(this._registeredTabGroups[e][t].tabGroupTags[0],this._toolstripId)}},_selectedTabChangedCallback:function(e){if(!this._ignoreSelectedTabChange&&"selectedTab"===e.property)if(this._contextManagerImpl.alternativeContextMemory)this._lastSelectedTabId=e.newValue;else{if(!this._lastValidContext||!this._registeredTabGroups[this._lastValidContext.appId]||!this._lastValidContext.contextIdList)return;this._lastValidContext.contextIdList.forEach((function(t){this._registeredTabGroups[this._lastValidContext.appId][t]&&this._registeredTabGroups[this._lastValidContext.appId][t].tabGroupTags&&(this._registeredTabGroups[this._lastValidContext.appId][t].lastSelectedTabId=e.newValue)}),this)}},_isAGlobalTabGroupOfParentApp:function(e){var t=!1,i=this._uiBuilder.get(e,"tag");return this._contextManagerImpl.parentAppId&&this._registeredTabGroups[this._contextManagerImpl.parentAppId]&&this._registeredTabGroups[this._contextManagerImpl.parentAppId].global&&this._registeredTabGroups[this._contextManagerImpl.parentAppId].global.tabGroupTags&&(t=this._registeredTabGroups[this._contextManagerImpl.parentAppId].global.tabGroupTags.indexOf(i)>-1),t},_isAGlobalTab:function(e,t){return this._contextManagerImpl.parentAppId?this._isAChildOfRegisteredTabGroups(e,this._contextManagerImpl.parentAppId,"global"):this._isAChildOfRegisteredTabGroups(e,t,"global")},_isAChildOfRegisteredTabGroups:function(e,t,i){var n,o,r=!1;return this._registeredTabGroups[t]&&this._registeredTabGroups[t][i]&&this._registeredTabGroups[t][i].tabGroupTags&&(n=this._uiBuilder.getParentId(e),o=this._uiBuilder.get(n,"tag"),this._registeredTabGroups[t][i].tabGroupTags.indexOf(o)>-1&&(r=!0)),r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(228),i(210),i(221),i(223),i(206),i(225),i(277),i(231),i(541),i(387),i(657),i(226),i(1068),i(377)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m=65,_=90,v=48,b=57,y=96,C=105;function T(e,t,i,n){return n=!!n,e.addEventListener(t,i,n),{remove:function(){e.removeEventListener(t,i,n)}}}function E(e){for(var t=Array.from(s(e)),i=document.activeElement.parentNode;null!==i&&-1===t.indexOf(i);)i=i.parentNode;return i}function S(e){var t,i=E(".mwSectionPopup");e.tabContainer.selectedChildWidget&&e.tabContainer.selectedChildWidget.domNode&&(t=e.tabContainer.selectedChildWidget.domNode);var n=s("[tabindex='0']",i||t).filter((function(e){return!(e.parentNode.classList.contains("mwSectionDropDownButton")&&!(e.offsetWidth>0&&e.offsetHeight>0))}));if(!i){var o=document.querySelector(".collapseButtonContainer [tabindex='0']");o&&n.push(o)}return n}function w(e){var t=!1;if(document.activeElement.classList.contains("collapseButton"))t=!1;else if(E('[data-type="Gallery"]')||E('[data-type="SectionDropDownButton"]'))t=!1;else{var i=E('[data-type="Column"]');i&&(t=i.contains(e))}return t}function I(e,t,i){var n=t.length;return"next"===i?e===n-1?0:e+1:0===e?n-1:e-1}function A(e,t){f.setCurrentMnemonicsState(f.getCurrentMnemonicsState()),Y(e),X(e),Q(e);var i=e.tabContainer.tablist,n=i.getChildren(),o=e.topLeftContainer.querySelectorAll("[tabindex='0']"),r=e.topRightContainer.querySelectorAll("[tabindex='0']"),a=[];Array.prototype.slice.call(o).forEach((function(e){a.push(e)}));let s=a.length;n.forEach((function(e){e.domNode&&e.domNode.querySelector("[data-mnemonic]")&&a.push(e.domNode.querySelector("[data-mnemonic]"))})),Array.prototype.slice.call(r).forEach((function(e){a.push(e)}));var l=document.activeElement,c=a.indexOf(l);!function e(t,i,n,o,r,a,s){switch(a){case"next":let l=r===t.length-1?0:r+1;r>=s&&r<s+o.length-1?n.onButtonClick(i.tabContainer.tablist.adjacent("next"===a).page):t[l]===o[0].focusNode?n.onButtonClick(o[0].page):ee(t[l])||Z(t[l],"dijitOffScreen")?e(t,i,n,o,l,a,s):t[l].focus();break;case"previous":r>s&&r<s+o.length?n.onButtonClick(i.tabContainer.tablist.adjacent("next"===a).page):r===s+o.length?n.onButtonClick(o[o.length-1].page):0===r?e(t,i,n,o,t.length,a,s):ee(t[r-1])||Z(t[r-1],"dijitOffScreen")?e(t,i,n,o,r-1,a,s):t[r-1].focus()}}(a,e,i,n,c,t,s)}function x(e){return i.get(e,"data-mnemonic-key-nav-direction")}function N(e){e._destroyed||e.tabContainer.selectedChildWidget&&e.tabContainer.tablist.pane2button(e.tabContainer.selectedChildWidget.id).domNode.querySelector(".mwTabButtonTextNode").focus()}function L(e){var t;return e.parentNode&&e.parentNode.id&&(t=c.byId(e.parentNode.id)),t&&(t.type===p.SPLIT_BUTTON||t.type===p.TOGGLE_SPLIT_BUTTON||t.type===p.QAB_SPLIT_BUTTON||t.type===p.QAB_TOGGLE_SPLIT_BUTTON)&&"Horizontal"===t.orientation}function D(e,t,i,n){if(document.activeElement===i)return!1;var o,r=s("[tabindex='0']",E('[data-type="Column"]'));E('[data-type="Gallery"]')&&(r=[]);var l=r.indexOf(document.activeElement),c="next"===e?1:-1;if(E(".mwSectionDropDownButton"))return 1===c;if(0===l&&n&&(o=E(".toolstripPopup[dijitpopupparent] .mwSectionPopup"))){var d=document.querySelector("#"+o.parentElement.getAttribute("dijitpopupparent")+" .mwFocusNode");if(d)return a.emit(o,"restorefocus",{}),d.focus(),!0}switch(t){case"changeDelta":c="next"===e?2:-2;break;case"checkNextControlToChangeDelta":var u=r[l+c];u&&L(u)&&(c="next"===e?2:-2)}var h=r[l+c];return!!h&&(h.focus(),!0)}function M(e){return E("[data-type='SectionPopup']")?null:S(e)[0]}function P(e){var t=M(e);return!!t&&(t.focus(),!0)}function O(e){if(e.get("displayState")===h.STATIC){var t=S(e);return t[t.length-1]}return e.collapseButton.domNode}function R(e){var t=O(e);return!!t&&(t.focus(),!0)}function k(e){return e.tabContainer.selectedChildWidget&&e.tabContainer.selectedChildWidget.controlButton?e.tabContainer.selectedChildWidget.controlButton.focusNode:null}function F(e){var t=k(e);return!!t&&(t.focus(),!0)}function B(e){return Array.from(e.topLeftContainer.querySelectorAll("[tabindex='0']"))}function H(e){for(var t=B(e),i=0;i<t.length;i++)if(!Z(t[i],"dijitOffScreen"))return t[i]}function V(e){var t=H(e);return!!t&&(t.focus(),!0)}function j(e){for(var t=B(e),i=t.length-1;i>=0;i--)if(!Z(t[i],"dijitOffScreen"))return t[i]}function U(e){return Array.from(e.topRightContainer.querySelectorAll("[tabindex='0']"))}function W(e){for(var t=U(e),i=0;i<t.length;i++)if(!Z(t[i],"dijitOffScreen"))return t[i]}function G(e){for(var t=U(e),i=t.length-1;i>=0;i--)if(!Z(t[i],"dijitOffScreen"))return t[i]}function z(e){var t=G(e);return!!t&&(t.focus(),!0)}function q(e,t){for(var i=S(e),n=i.indexOf(document.activeElement),o=I(n,i,t);w(i[o])&&o!==n;)o=I(o,i,t);i[o].focus()}function K(e,t){return"control"===t&&e.tabContainer.selectedChildWidget?e.tabContainer.selectedChildWidget.domNode:e.domNode}function X(e){e.tabContainer.getChildren().forEach((function(t){var n=e.tabContainer.tablist.pane2button(t.id);t.get("mnemonic")&&(i.set(n.focusNode,"data-mnemonic",t.get("mnemonic")),i.set(n.focusNode,"data-mnemonic-key-nav-direction","all"))}),this)}function Y(e){if(e.topLeftContainer.childElementCount){let t=e.topLeftContainer.children;for(let e of t){let t=c.byNode(e);t?t.get("mnemonic")&&(t.focusNode.dataset.mnemonic=t.get("mnemonic"),t.focusNode.dataset.mnemonicKeyNavDirection="all"):Object.keys(e.dataset).indexOf("mnemonic")&&(e.dataset.mnemonicKeyNavDirection="all")}}}function Q(e){var t=[];e._QABWidget.getChildren().forEach((function(e){e.getChildren().forEach((function(e){t.push(e)}))})),t.forEach((function(e,t){e.focusNode.setAttribute("data-mnemonic",function(e){if(e<9)return(e+1).toString();if(e<18)return"0"+(e-8);if(e<44)return"0"+String.fromCharCode(47+e).toUpperCase();return null}(t))}))}function $(e,t,i){var n;e=y<=e&&e<=C?e-v:e;for(var o=t.querySelectorAll("[data-mnemonic]"),r=0;r<o.length;r++)if(e===(n=o[r].getAttribute("data-mnemonic")).charCodeAt(0)||1===i.length&&i[0]===n.charCodeAt(0)&&e===n.charCodeAt(1))return!0;return!1}function J(e,t){var i;return 1===(i=e.querySelectorAll(t)).length?e.querySelectorAll(t)[0]:Z(i[0],"dijitOffScreen")?e.querySelectorAll(t)[1]:e.querySelectorAll(t)[0]}function Z(e,t){for(;e;){if(e.classList&&e.classList.contains(t))return!0;e=e.parentNode}return!1}function ee(e){for(;e;){if(e.hasAttribute&&e.hasAttribute("aria-disabled"))return"true"===e.getAttribute("aria-disabled");e=e.parentNode}return!0}return e(null,{constructor:function(e){if(!e.toolstripId)throw new Error("A toolstripId needs to be provided!");this._toolstrip=c.byId(e.toolstripId),f.setToolstrip(this._toolstrip),f.setCurrentMnemonicsState(f.NULL_NULL),this._previousKeyCodes=[],this._setupEventListeners()},_setupEventListeners:function(){this._listeners=[T(document.body,"keydown",t.hitch(this,this._handleKeyDown),!0),T(document.body,"keyup",t.hitch(this,this._handleKeyUp),!0),T(document.body,"click",t.hitch(this,this._handleClick),!0),T(document.body,"commit",t.hitch(this,this._handleCommit),!0),T(window,"blur",t.hitch(this,this._handleBlur),!1)],window.PointerEvent?(this._listeners.push(T(document.body,"pointerdown",t.hitch(this,this._handleMouseDown),!0)),this._listeners.push(T(document.body,"pointerup",t.hitch(this,this._handleMouseUp),!0))):(this._listeners.push(T(document.body,"mousedown",t.hitch(this,this._handleMouseDown),!0)),this._listeners.push(T(document.body,"mouseup",t.hitch(this,this._handleMouseUp),!0)))},_handleCommit:function(){this._handleExitMnemonicsMode()},_handleBlur:function(){this._altKeyDownTimeout&&(clearTimeout(this._altKeyDownTimeout),this._altKeyDownTimeout=null),this._handleExitMnemonicsMode()},_handleClick:function(e){e.syntheticEvent||(!function(e){var t=!0,i=c.getEnclosingWidget(e);i&&(t=!(i.domNode.classList.contains("mwMenuMixin")||i.domNode.classList.contains("mwComboBox")));return t}(e.target)?E("[data-type='SectionDropDownButton']")||f.setCurrentMnemonicsState(f.NULL_NULL):(this._handleExitMnemonicsMode(e.target),e.target===this._toolstrip.collapseButton.domNode&&g.restoreFocus(!1)))},_handleMouseDown:function(e){e.syntheticEvent||(this._handleExitMnemonicsMode(),this._mouseDown=!0,e.altKey&&(this._ignoreAltKeyUp=!0,this._ignoreAltTimeout=!0))},_handleMouseUp:function(e){e.syntheticEvent||(this._mouseDown=!1)},_handleKeyUp:function(e){if(e.keyCode===r.ALT){if(this._altKeyDownTimeout&&(clearTimeout(this._altKeyDownTimeout),this._altKeyDownTimeout=null),document.body.querySelector(".mwModalDialog")||document.body.querySelector(".dijitDialog"))return;this._handleAltKeyUp()}},_shouldShowMnemonics:function(){return!!this.testForAllPlatforms||!this._ignoreAltTimeout&&!o("mac")},_handleKeyDown:function(e){if(!document.body.querySelector(".mwModalDialog")&&!document.body.querySelector(".dijitDialog")){var i=e.keyCode;switch(e.altKey&&i!==r.ALT&&(this._ignoreAltKeyUp=!0,this._altKeyDownTimeout&&(clearTimeout(this._altKeyDownTimeout),this._altKeyDownTimeout=null)),!0){case i===r.ALT:return e.ctrlKey||"Alt"!==e.key||e.metaKey?void(this._ignoreAltKeyUp=!0):(e.preventDefault(),this._mouseDown&&(this._ignoreAltKeyUp=!0,this._ignoreAltTimeout=!0),!this._altKeyDownTimeout&&this._shouldShowMnemonics()&&(this._altKeyDownTimeout=setTimeout(t.hitch(this,(function(){document.body.querySelector(".mwModalDialog")||document.body.querySelector(".dijitDialog")||this._ignoreAltTimeout||(this._handleAltKeyDownTimeout(),this._ignoreAltKeyUp=!0)})),1500)),!1);case i===r.ESCAPE:this._handleEscapeKey(),this._previousKeyCodes=[];break;case i===r.ENTER:case i===r.SPACE:this._handleEnterOrSpaceKey();break;case i>=m&&i<=_:case i>=v&&i<=b:case i>=y&&i<=C:e.altKey&&!e.ctrlKey&&!e.metaKey&&this._shouldShowMnemonics()?(this._ignoreAltKeyUp=!0,setTimeout(t.hitch(this,(function(){this._ignoreAltKeyUp=!1})),1e3),this._handleAltPlusCharacterKey(e)):this._handleCharacterKey(e)}if(e.altKey||f.getCurrentMnemonicsState()===f.NULL_NULL)return!0;var n,o,a=L(e.target);switch(!0){case i===r.TAB:if(e.preventDefault(),e.shiftKey)switch(document.activeElement){case k(this._toolstrip):this._hideMnemonics(),this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP),n=this._toolstrip,(o=j(n))&&(o.focus(),1)||z(this._toolstrip)?f.setCurrentMnemonicsState(f.NULL_TAB):R(this._toolstrip)&&f.setCurrentMnemonicsState(f.NULL_CONTROL);break;case M(this._toolstrip):F(this._toolstrip)&&f.setCurrentMnemonicsState(f.NULL_TAB);break;case H(this._toolstrip):this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP),z(this._toolstrip)?f.setCurrentMnemonicsState(f.NULL_TAB):R(this._toolstrip)&&f.setCurrentMnemonicsState(f.NULL_CONTROL);break;case W(this._toolstrip):this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP),R(this._toolstrip)&&f.setCurrentMnemonicsState(f.NULL_CONTROL);break;default:this._handleTabNavigation("previous")}else switch(document.activeElement){case k(this._toolstrip):this._hideMnemonics(),this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP),P(this._toolstrip)&&f.setCurrentMnemonicsState(f.NULL_CONTROL);break;case O(this._toolstrip):!function(e){var t=W(e);return!!t&&(t.focus(),!0)}(this._toolstrip)?(V(this._toolstrip)||F(this._toolstrip))&&f.setCurrentMnemonicsState(f.NULL_TAB):f.setCurrentMnemonicsState(f.NULL_TAB);break;case G(this._toolstrip):(V(this._toolstrip)||F(this._toolstrip))&&f.setCurrentMnemonicsState(f.NULL_TAB);break;case j(this._toolstrip):F(this._toolstrip)&&f.setCurrentMnemonicsState(f.NULL_TAB);break;default:E(".mwSectionDropDownButton")?q(this._toolstrip,"next"):this._handleTabNavigation("next")}break;case i===r.LEFT_ARROW:["all","horizontal"].indexOf(x(e.target))>-1&&(a&&e.target.classList.contains("mwFocusNode")||this._handleHorizontalNavigation("previous"));break;case i===r.UP_ARROW:["all","vertical"].indexOf(x(e.target))>-1&&(a?(e.target.classList.contains("mwFocusNode")&&this._handleUpKey("changeDelta"),e.target.classList.contains("mwButtonNode")&&this._handleUpKey("checkNextControlToChangeDelta")):this._handleUpKey());break;case i===r.RIGHT_ARROW:["all","horizontal"].indexOf(x(e.target))>-1&&(a&&e.target.classList.contains("mwButtonNode")||this._handleHorizontalNavigation("next"));break;case i===r.DOWN_ARROW:["all","vertical"].indexOf(x(e.target))>-1&&(a?(e.target.classList.contains("mwButtonNode")&&this._handleDownKey("changeDelta"),e.target.classList.contains("mwFocusNode")&&this._handleDownKey("checkNextControlToChangeDelta")):(this._handleDownKey(),E("[data-type='SectionPopup']")&&e.stopImmediatePropagation()))}}},_handleAltKeyUp:function(){if(this._ignoreAltKeyUp||!this._shouldShowMnemonics())return this._ignoreAltKeyUp=!1,void(this._ignoreAltTimeout=!1);switch(f.getCurrentMnemonicsState()){case f.NULL_NULL:u.isPopupShowing()?(l.close(),this._toolstrip.get("displayState")===h.EXPANDED_ON_TOP&&this._toolstrip.set("displayState",h.COLLAPSED)):(f.setCurrentMnemonicsState(f.TAB_TAB),this._showMnemonics("tab"),N(this._toolstrip));break;case f.NULL_CONTROL:case f.CONTROL_TAB:case f.TAB_TAB:this._handleAltKeyUpForMnemonicsModeState();break;case f.NULL_TAB:this._shouldAcceptFocus(document.activeElement)?(f.setCurrentMnemonicsState(f.TAB_TAB),this._showMnemonics("tab")):this._handleAltKeyUpForMnemonicsModeState()}},_handleAltKeyUpForMnemonicsModeState:function(){this._hideMnemonics(),g.restoreFocus(!0),f.setCurrentMnemonicsState(f.NULL_NULL),this._toolstrip.get("displayState")===h.EXPANDED_ON_TOP&&this._toolstrip.set("displayState",h.COLLAPSED)},_shouldAcceptFocus:function(e){for(;e;){if(e.getAttribute&&"accept"===e.getAttribute("data-focus"))return!0;if(e.getAttribute&&"refuse"===e.getAttribute("data-focus"))return!1;e=e.parentNode}return!1},_handleAltKeyDownTimeout:function(){switch(f.getCurrentMnemonicsState()){case f.NULL_NULL:f.setCurrentMnemonicsState(f.TAB_TAB),this._showMnemonics("tab"),N(this._toolstrip)}},_handleCharacterKey:function(e){var t;switch(f.getCurrentMnemonicsState()){case f.CONTROL_TAB:g.refuseFocus(this._toolstrip.domNode),"fullMatch"===(t=this._executeMnemonic("control",e))&&(this._hideMnemonics(),f.setCurrentMnemonicsState(f.NULL_NULL));break;case f.TAB_TAB:"fullMatch"===(t=this._executeMnemonic("tab",e))?$(e.keyCode,this._toolstrip.topLeftContainer,this._previousKeyCodes)||$(e.keyCode,this._toolstrip.topRightContainer,this._previousKeyCodes)?(this._hideMnemonics(),this._updateMnemonicsStateBasedOnSearchContainer(e.keyCode)):(this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP),this._hideMnemonics(),this._showMnemonics("control"),f.setCurrentMnemonicsState(f.CONTROL_TAB)):"noMatch"===t&&($(e.keyCode,this._toolstrip.topLeftContainer,this._previousKeyCodes)||$(e.keyCode,this._toolstrip.topRightContainer,this._previousKeyCodes))&&(this._hideMnemonics(),f.setCurrentMnemonicsState(f.NULL_NULL))}},_handleAltPlusCharacterKey:function(e){var i;switch(f.getCurrentMnemonicsState()){case f.NULL_NULL:"fullMatch"===(i=this._executeMnemonic("tab",e))?$(e.keyCode,this._toolstrip.topLeftContainer,this._previousKeyCodes)||$(e.keyCode,this._toolstrip.topRightContainer,this._previousKeyCodes)?(this._hideMnemonics(),this._updateMnemonicsStateBasedOnSearchContainer(e.keyCode)):(this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP),this._hideMnemonics(),this._showMnemonics("control"),setTimeout(t.hitch(this,(function(){N(this._toolstrip)})),0),f.setCurrentMnemonicsState(f.CONTROL_TAB)):"partialMatch"===i?f.setCurrentMnemonicsState(f.TAB_TAB):"noMatch"===i&&($(e.keyCode,this._toolstrip.topLeftContainer,this._previousKeyCodes)||$(e.keyCode,this._toolstrip.topRightContainer,this._previousKeyCodes)?(this._hideMnemonics(),f.setCurrentMnemonicsState(f.NULL_NULL)):(this._hideMnemonics(),this._showMnemonics("tab"),setTimeout(t.hitch(this,(function(){N(this._toolstrip)})),0),f.setCurrentMnemonicsState(f.TAB_TAB)));break;case f.CONTROL_TAB:"fullMatch"===(i=this._executeMnemonic("control",e))&&(this._hideMnemonics(),f.setCurrentMnemonicsState(f.NULL_NULL));break;case f.TAB_TAB:"fullMatch"===(i=this._executeMnemonic("tab",e))&&($(e.keyCode,this._toolstrip.topLeftContainer,this._previousKeyCodes)||$(e.keyCode,this._toolstrip.topRightContainer,this._previousKeyCodes)?(this._hideMnemonics(),this._updateMnemonicsStateBasedOnSearchContainer(e.keyCode)):(this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP),this._hideMnemonics(),this._showMnemonics("control"),f.setCurrentMnemonicsState(f.CONTROL_TAB)))}},_handleUpKey:function(e){switch(f.getCurrentMnemonicsState()){case f.NULL_CONTROL:D("previous",e,this._toolstrip.collapseButton.domNode,!0)||(N(this._toolstrip),f.setCurrentMnemonicsState(f.NULL_TAB));break;case f.CONTROL_TAB:case f.TAB_TAB:this._hideMnemonics(),f.setCurrentMnemonicsState(f.NULL_TAB)}},_handleDownKey:function(e){switch(f.getCurrentMnemonicsState()){case f.NULL_CONTROL:D("next",e,this._toolstrip.collapseButton.domNode);break;case f.NULL_TAB:this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP),P(this._toolstrip)&&f.setCurrentMnemonicsState(f.NULL_CONTROL);break;case f.CONTROL_TAB:case f.TAB_TAB:this._hideMnemonics(),this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP),P(this._toolstrip)&&f.setCurrentMnemonicsState(f.NULL_CONTROL)}},_handleHorizontalNavigation:function(e){switch(f.getCurrentMnemonicsState()){case f.NULL_CONTROL:q(this._toolstrip,e);break;case f.NULL_TAB:A(this._toolstrip,e);break;case f.CONTROL_TAB:case f.TAB_TAB:this._hideMnemonics(),A(this._toolstrip,e),f.setCurrentMnemonicsState(f.NULL_TAB)}},_handleTabNavigation:function(e){switch(f.getCurrentMnemonicsState()){case f.NULL_CONTROL:E(".galleryPopup")||E(".galleryPanel")||E(".dijitPopup")&&!E("[data-type='SectionPopup']")||D(e,null,this._toolstrip.collapseButton.domNode)||q(this._toolstrip,e);break;case f.NULL_TAB:A(this._toolstrip,e);break;case f.CONTROL_TAB:case f.TAB_TAB:this._hideMnemonics(),A(this._toolstrip,e),f.setCurrentMnemonicsState(f.NULL_TAB)}},_handleEnterOrSpaceKey:function(){switch(f.getCurrentMnemonicsState()){case f.TAB_TAB:this._hideMnemonics(),this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP),f.setCurrentMnemonicsState(f.NULL_TAB);break;case f.NULL_TAB:this._toolstrip.get("displayState")===h.COLLAPSED&&this._toolstrip.set("displayState",h.EXPANDED_ON_TOP);break;case f.NULL_CONTROL:E("[data-type='SectionDropDownButton']")||f.setCurrentMnemonicsState(f.NULL_NULL)}},_handleEscapeKey:function(){switch(f.getCurrentMnemonicsState()){case f.NULL_CONTROL:u.isPopupShowing()||(g.restoreFocus(!0),this._toolstrip.get("displayState")===h.EXPANDED_ON_TOP&&this._toolstrip.set("displayState",h.COLLAPSED)),f.setCurrentMnemonicsState(f.NULL_NULL);break;case f.NULL_TAB:this._toolstrip.get("displayState")===h.EXPANDED_ON_TOP&&this._toolstrip.set("displayState",h.COLLAPSED),g.restoreFocus(!0),f.setCurrentMnemonicsState(f.NULL_NULL);break;case f.CONTROL_TAB:this._toolstrip.get("displayState")===h.EXPANDED_ON_TOP&&this._toolstrip.set("displayState",h.COLLAPSED),this._hideMnemonics(),this._showMnemonics("tab"),f.setCurrentMnemonicsState(f.TAB_TAB);break;case f.TAB_TAB:g.restoreFocus(!0),this._hideMnemonics(),f.setCurrentMnemonicsState(f.NULL_NULL);break;case f.NULL_NULL:u.isPopupShowing()||this._toolstrip.get("displayState")!==h.EXPANDED_ON_TOP||this._toolstrip.set("displayState",h.COLLAPSED)}},_handleExitMnemonicsMode:function(e){switch(f.getCurrentMnemonicsState()){case f.NULL_CONTROL:case f.NULL_TAB:case f.CONTROL_TAB:case f.TAB_TAB:this._hideMnemonics(),e&&("text"===e.type||"textarea"===e.type)&&this._toolstrip.domNode.contains(e)?this._toolstrip.topLeftContainer.contains(e)||this._toolstrip.topRightContainer.contains(e)?f.setCurrentMnemonicsState(f.NULL_TAB):f.setCurrentMnemonicsState(f.NULL_CONTROL):(g.restoreFocus(!0),f.setCurrentMnemonicsState(f.NULL_NULL))}this._resizeEventListener&&(this._resizeEventListener.remove(),this._resizeEventListener=void 0)},_showMnemonics:function(e,i){"tab"===e&&(Y(this._toolstrip),X(this._toolstrip),Q(this._toolstrip));var o="control"===e?"[tabindex='0']":".mwTabButtonTextNode",r=s(o+(i=i||"[data-mnemonic]")+", "+o+" "+i,K(this._toolstrip,e));"tab"===e&&(r=(r=r.concat(this._toolstrip.topLeftContainer.querySelectorAll(i))).concat(this._toolstrip.topRightContainer.querySelectorAll(i))),r.length>0&&(this._mnemonicNodesContainer=document.createElement("div"),r.forEach((function(e){var t=document.createElement("div");t.classList.add("mnemonicNode"),t.textContent=e.getAttribute("data-mnemonic"),this._mnemonicNodesContainer.appendChild(t),document.body.appendChild(this._mnemonicNodesContainer);var i=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=c.getEnclosingWidget(e);r.get("orientation")&&"Vertical"===r.get("orientation")||n.contains(e,"mwTabButtonTextNode")?t.style.left=i.left+i.width/2-o.width/2+"px":t.style.left=i.left+12+"px",t.style.top=i.bottom-5+"px"}),this)),this._resizeEventListener||(this._resizeEventListener=a(d,"resize",t.hitch(this,(function(){this._handleExitMnemonicsMode()}))))},_hideMnemonics:function(e){e||(this._previousKeyCodes=[]),this._mnemonicNodesContainer&&this._mnemonicNodesContainer.parentNode&&(this._mnemonicNodesContainer.parentNode.removeChild(this._mnemonicNodesContainer),this._mnemonicNodesContainer=null)},_executeMnemonic:function(e,t){"tab"===e&&(Y(this._toolstrip),X(this._toolstrip),Q(this._toolstrip));var i,n=this._previousKeyCodes.map((function(e){return String.fromCharCode(e)}),this).join("");i=y<=t.keyCode&&t.keyCode<=C?t.keyCode-v:t.keyCode;var o,r="'"+n+String.fromCharCode(i)+"'";"control"===e?o="[tabindex='0']":"tab"===e&&($(t.keyCode,this._toolstrip.topLeftContainer,this._previousKeyCodes)||$(t.keyCode,this._toolstrip.topRightContainer,this._previousKeyCodes))?(g.refuseFocus(this._toolstrip.domNode),o="[tabindex='0']"):o=".mwTabButtonTextNode";var l,c,d="[data-mnemonic="+r+"]",u=o+d+", "+o+" "+d;(l="control"===e?K(this._toolstrip,e).querySelector(u):"tab"===e&&$(t.keyCode,this._toolstrip.topLeftContainer,this._previousKeyCodes)?J(this._toolstrip.topLeftContainer,u):"tab"===e&&$(t.keyCode,this._toolstrip.topRightContainer,this._previousKeyCodes)?J(this._toolstrip.topRightContainer,u):K(this._toolstrip,e).querySelector(u))?("control"===e?(this._emitEvent(l,"pointerdown",t.key),this._emitEvent(l,"mousedown",t.key),this._emitEvent(l,"pointerup",t.key),this._emitEvent(l,"mouseup",t.key),l.focus()):"tab"===e&&($(t.keyCode,this._toolstrip.topLeftContainer,this._previousKeyCodes)||$(t.keyCode,this._toolstrip.topRightContainer,this._previousKeyCodes))?(this._emitEvent(l,"pointerdown",t.key),this._emitEvent(l,"mousedown",t.key),this._emitEvent(l,"pointerup",t.key),this._emitEvent(l,"mouseup",t.key),a.emit(l,"input",{bubbles:!0,cancelable:!0,syntheticEvent:!0,target:l}),l.focus()):X(this._toolstrip),this._emitEvent(l,"click",t.key),t.preventDefault(),c="fullMatch"):("tab"===e&&$(t.keyCode,this._toolstrip.topLeftContainer,this._previousKeyCodes)?s(o+"[data-mnemonic^="+r+"]",K(this._toolstrip.topLeftContainer,e)):"tab"===e&&$(t.keyCode,this._toolstrip.topRightContainer,this._previousKeyCodes)?s(o+"[data-mnemonic^="+r+"]",K(this._toolstrip.topRightContainer,e)):s(o+"[data-mnemonic^="+r+"]",K(this._toolstrip,e))).length>0?(this._hideMnemonics(!0),this._showMnemonics(e,"[data-mnemonic^="+r+"]"),y<=t.keyCode&&t.keyCode<=C?this._previousKeyCodes.push(t.keyCode-v):this._previousKeyCodes.push(t.keyCode),c="partialMatch"):c="noMatch";return c},_emitEvent:function(e,t,i){a.emit(e,t,{bubbles:!0,cancelable:!0,syntheticEvent:!0,target:e,button:0,keyStroke:i})},_updateMnemonicsStateBasedOnSearchContainer:function(e){if(this._toolstrip.searchContainer&&!n.contains(this._toolstrip.searchContainer,"dijitOffScreen")){var t=this._toolstrip.searchContainer.querySelector("input[data-mnemonic]");t&&String.fromCharCode(e)===t.getAttribute("data-mnemonic")?f.setCurrentMnemonicsState(f.NULL_TAB):f.setCurrentMnemonicsState(f.NULL_NULL)}else f.setCurrentMnemonicsState(f.NULL_NULL)},destroy:function(){this._listeners.forEach((function(e){e.remove()})),this._resizeEventListener&&this._resizeEventListener.remove(),this._hideMnemonics()},getToolstrip:function(){return this._toolstrip},setFocusOnCurrentToolstripTab:function(){f.setCurrentMnemonicsState(f.TAB_TAB),this._showMnemonics("tab"),N(this._toolstrip)},removeFocusFromToolstrip:function(){this._hideMnemonics(),f.setCurrentMnemonicsState(f.NULL_NULL)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1333),i(1815),i(569)],o=i.dj.d(n,(function(e,t,i,n){const o="origin",r="target",a="maximized",s="minimized",l="fullscreen",c="normal",d="bottomLeft",u="topLeft";i.RESTORE_PROPERTY;let h=e([t],{_windowDriver:null,_origin:null,_target:null,_isReady:null,_supportedProperties:["state","bounds","innerBounds","resizable",o,r,"isModal","isVisible"],_intitialize:function(e){this._origin=e&&e[o]?e[o]:u,this._target=e&&e[r]?e[r]:window,this._isReady=!e||!e.hasOwnProperty("windowReady")||e.windowReady,this._isReady||(this._pendingPropertiesQueue=[]),this._target.name&&(this.name=this._target.name),e&&e.bounds&&this._callSetter("bounds",e.bounds),e&&e.innerBounds&&this._callSetter("innerBounds",e.innerBounds),e&&e.resizable&&this._callSetter("resizable",e.resizable),e&&e.state&&this._callSetter("state",e.state),e&&void 0!==e.isModal&&this._callSetter("isModal",e.isModal),e&&void 0!==e.isVisible&&this._callSetter("isVisible",e.isVisible)},_getters:{state:function(){return this._get(i.MAXIMIZED_PROPERTY)?a:this._get(i.MINIMIZED_PROPERTY)?s:this._get(i.FULLSCREEN_PROPERTY)?l:c},bounds:function(){return this._callTranslator("bounds",this._get(i.BOUNDS_PROPERTY),{[o]:u},{[o]:this._origin})},innerBounds:function(){return this._callTranslator("innerBounds",this._get(i.INNER_BOUNDS_PROPERTY),{[o]:u},{[o]:this._origin})},resizable:function(){return this._get(i.RESIZABLE_PROPERTY)},[o]:function(){return this._origin},[r]:function(){return this._target},isModal:function(){return this._get(i.MODAL_PROPERTY)},isVisible:function(){return this._get(i.VISIBLE_PROPERTY)}},_setters:{state:function(e){switch(e){case a:return this._set(i.MAXIMIZED_PROPERTY,!0);case s:return this._set(i.MINIMIZED_PROPERTY,!0);case l:return this._set(i.FULLSCREEN_PROPERTY,!0);case c:default:return this._set(i.RESTORE_PROPERTY,!0)}},bounds:function(e){return this._set(i.BOUNDS_PROPERTY,this._callTranslator("bounds",e,{[o]:this._origin},{[o]:u}))},innerBounds:function(e){return this._set(i.INNER_BOUNDS_PROPERTY,this._callTranslator("innerBounds",e,{[o]:this._origin},{[o]:u}))},resizable:function(e){return this._set(i.RESIZABLE_PROPERTY,e)},[o]:function(e){this._origin=e},[r]:function(e){this._target=e,this._addListener(Object.keys(this._listeners),{[i.WINDOW_PARAMETER]:this._target})},isModal:function(e){return this._set(i.MODAL_PROPERTY,e)},isVisible:function(e){return this._set(i.VISIBLE_PROPERTY,e)}},_validators:{state:function(e){return[a,s,l,c].indexOf(e)>-1},bounds:function(e){return n.hasProperties(e,["x","y","w","h"])},innerBounds:function(e){return n.hasProperties(e,["x","y","w","h"])},resizable:function(e){return"boolean"==typeof e},[o]:function(e){return[u,d].indexOf(e)>-1},[r]:function(e){return!0},isModal:function(e){return"boolean"==typeof e},isVisible:function(e){return"boolean"==typeof e}},_listeners:{state:function(){return{remove:()=>{}}},bounds:function(e){return{remove:()=>{}}},innerBounds:function(e){return{remove:()=>{}}},isVisible:function(){return{remove:()=>{}}}},_translators:{bounds:function(e,t,i){return{}},innerBounds:function(e,t,i){return{}}},_get:function(e){return{}},_set:function(e,t){if(this._isReady)return{};this._addToPendingPropertiesQueue(e,t)},_watch:function(e,t){return{}},_callTranslator:function(e,t,i,n){return this._translators[e].call(this,t,i,n)},_callSetter:function(e,t){this._setters[e].call(this,t)},_addToPendingPropertiesQueue:function(e,t){this._pendingPropertiesQueue.push({propertyName:e,value:t})},_applyPendingProperties:function(){this._isReady=!0,this._pendingPropertiesQueue.forEach(e=>{this._set(e.propertyName,e.value)}),delete this._pendingPropertiesQueue}});h.STATE_PROPERTY="state",h.BOUNDS_PROPERTY="bounds",h.INNER_BOUNDS_PROPERTY="innerBounds",h.RESIZABLE_PROPERTY="resizable",h.ORIGIN_PROPERTY=o,h.TARGET_PROPERTY=r,h.MODAL_PROPERTY="isModal",h.VISIBLE_PROPERTY="isVisible",h.MAXIMIZED_STATE=a,h.MINIMIZED_STATE=s,h.FULLSCREEN_STATE=l,h.NORMAL_STATE=c,h.BOTTOM_LEFT_ORIGIN=d,h.TOP_LEFT_ORIGIN=u;const p=new h;return h.get=p.get.bind(p),h.set=function(e,t,i){p.isSupportedProperty(e)&&[o,r].indexOf(e)<0&&p.get(e,t,i)},h.watch=p.watch.bind(p),h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1816)],o=i.dj.d(n,(function(e,t){const i=t.BOUNDS_PROPERTY,n=t.INNER_BOUNDS_PROPERTY,o=t.MAXIMIZED_PROPERTY,r=t.MINIMIZED_PROPERTY,a=t.FULLSCREEN_PROPERTY,s=t.RESTORE_PROPERTY,l=(t.MODAL_PROPERTY,t.VISIBLE_PROPERTY),c=t.IS_ACTIVE_PROPERTY,d=function(e,t){let i;return t=u(t),i=e instanceof window.Array||e instanceof t.Array?{x:e[0],y:e[1],w:e[2],h:e[3],done:e.length>4?e[4]:1}:Object.assign({},e),t.cefclient.getOrigin&&"topLeftOrigin"!==t.cefclient.getOrigin()&&(i=function(e,t){let i=Object.assign({},e);return i.y=t.screen.height-i.y-i.h,i}(i,t)),i},u=function(e){if(!(e=e||window).cefclient)throw new Error("CEFController is only supported in a CEF Window.");return e};return e([t],{getBounds:function(e){const t=(e=u(e)).cefclient.getPosition();return t.push(1),d(t,e)},setBounds:async function(e,t){t=u(t),e=d(e,t),await t.cefclient.sendMessage("setPosition",[e.x,e.y,e.w,e.h])},getInnerBounds:function(e){const t=(e=u(e)).cefclient.getPosition();return t.push(1),d(t,e)},setInnerBounds:async function(e,t){t=u(t),e=d(e,t),await t.cefclient.sendMessage("setPosition",[e.x,e.y,e.w,e.h])},getMaximized:function(e){return(e=u(e)).cefclient.isMaximized()},setMaximized:async function(e,t){t=u(t),e?await t.cefclient.sendMessage("maximize"):this.getMaximized()&&await t.cefclient.sendMessage("restore")},getMinimized:function(e){return(e=u(e)).cefclient.isMinimized()},setMinimized:async function(e,t){t=u(t),e?await t.cefclient.sendMessage("minimize"):this.getMinimized()&&await t.cefclient.sendMessage("restore")},getFullscreen:function(e){return(e=u(e)).cefclient.isFullscreen()},setFullscreen:async function(e,t){t=u(t),e?await t.cefclient.sendMessage("fullscreen"):this.getFullscreen()&&await t.cefclient.sendMessage("restore")},getRestored:function(e){return!(e=u(e)).cefclient.isMaximized()&&!e.cefclient.isMinimized()&&!e.cefclient.isFullscreen()},setRestored:async function(e,t){t=u(t),e&&await t.cefclient.sendMessage("restore")},getResizable:function(e){return(e=u(e)).cefclient.isResizable()},setResizable:async function(e,t){t=u(t),await t.cefclient.sendMessage("setResizable",e)},getIsModal:function(e){return(e=u(e)).cefclient.isWindowModal()},setIsModal:async function(e,t){t=u(t),await t.cefclient.sendMessage("setWindowAsModal",[!!e])},getIsVisible:function(e){return(e=u(e)).cefclient.isVisible()},setIsVisible:async function(e,t){t=u(t),await t.cefclient.sendMessage("setVisible",[!!e])},getAlwaysOnTop:function(e){return(e=u(e)).cefclient.isAlwaysOnTop()},setAlwaysOnTop:async function(e,t){t=u(t),await t.cefclient.sendMessage("alwaysOnTop",[!!e])},bringToFront:async function(e){e=u(e),await e.cefclient.sendMessage("bringToFront")},_addStateChangeListener:function(e){let t,h,p=(e=u(e)).cefclient.handleWindowResized,f=e.cefclient.handleWindowState,g=e.cefclient.handleWindowVisibility;e.cefclient.handleWindowResized=t=>{let o=t.split(",");for(let e in o)o[e]=parseFloat(o[e]);this._emitPropertyChangeEvent(i,d(o,e),e),this._emitPropertyChangeEvent(n,d(o,e),e)},e.addEventListener("load",t=()=>{e.addEventListener("unload",h=()=>{h&&e.removeEventListener("load",h)}),t&&e.removeEventListener("unload",t)});const m={WindowMaximized:o,WindowMinimized:r,WindowFullscreen:a,WindowRestored:s};return e.cefclient.handleWindowState=t=>{this._emitPropertyChangeEvent(m[t],!0,e)},e.cefclient.handleWindowVisibility=t=>{this._emitPropertyChangeEvent(l,t,e)},this._windowBlurHandler=()=>{this._emitPropertyChangeEvent(c,!1,e)},e.addEventListener("blur",this._windowBlurHandler),this._windowFocusHandler=()=>{this._emitPropertyChangeEvent(c,!0,e)},e.addEventListener("focus",this._windowFocusHandler),{remove:()=>{e.cefclient.handleWindowResized=p,e.cefclient.handleWindowState=f,e.cefclient.handleWindowVisibility=g,e.removeEventListener("blur",this._windowBlurHandler),e.removeEventListener("focus",this._windowFocusHandler),h&&e.removeEventListener("load",h),t&&e.removeEventListener("unload",t)},getTargetWindow:()=>e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1816),i(209)],o=i.dj.d(n,(function(e,t,i){const n=t.BOUNDS_PROPERTY,o=t.INNER_BOUNDS_PROPERTY,r=t.IS_ACTIVE_PROPERTY,a=function(e){let t;return t=e instanceof Array?{x:e[0],y:e[1],w:e[2],h:e[3],done:e.length>4?e[4]:1}:Object.assign({},e),t},s=function(e){return e=e||window};return e([t],{getBounds:function(e){let t={x:"number"==typeof(e=s(e)).screenX?e.screenX:"number"==typeof e.screenLeft?e.screenLeft:0,y:"number"==typeof e.screenY?e.screenY:"number"==typeof e.screenTop?e.screenTop:0,w:e.outerWidth,h:e.outerHeight,done:1};return a(t)},setBounds:function(e,t){t=s(t),e=a(e),t.resizeTo(1,1),t.moveTo(e.x,e.y),t.resizeTo(e.w,e.h)},getInnerBounds:function(e){i.warn("The results for InnerBounds are incorrect. x, y are for outer bounds");let t={x:"number"==typeof(e=s(e)).screenX?e.screenX:"number"==typeof e.screenLeft?e.screenLeft:0,y:"number"==typeof e.screenY?e.screenY:"number"==typeof e.screenTop?e.screenTop:0,w:e.innerWidth,h:e.innerHeight,done:1};return a(t)},setInnerBounds:function(e,t){i.warn("InnerBounds will be incorrectly set. x, y will be set on the outer bounds"),t=s(t),e=a(e),t.resizeTo(1,1),t.moveTo(e.x,e.y),t.resizeTo(e.w,e.h)},getMaximized:function(){return i.warn('"getMaximized" is not supported in a System Browser.'),null},setMaximized:function(){i.warn('"setMaximized" is not supported in a System Browser.')},getMinimized:function(){return i.warn('"getMinimized" is not supported in a System Browser.'),null},setMinimized:function(){i.warn('"setMinimized" is not supported in a System Browser.')},getFullscreen:function(e){return i.warn('"getFullscreen" is not supported in a System Browser.'),null},setFullscreen:function(e,t){i.warn('"setFullscreen" is not supported in a System Browser.')},getRestored:function(){return i.warn('"getRestored" is not supported in a System Browser.'),null},setRestored:function(){i.warn('"setRestored" is not supported in a System Browser.')},getResizable:function(){return i.warn('"getResizable" is not supported in a System Browser.'),null},setResizable:function(){i.warn('"setResizable" is not supported in a System Browser.')},getIsModal:function(){return i.warn('"getIsModal" is not supported in a System Browser.'),null},setIsModal:function(){i.warn('"setIsModal" is not supported in a System Browser.')},getIsVisible:function(){return i.warn('"getIsVisible" is not supported in a System Browser.'),null},setIsVisible:function(){i.warn('"setIsVisible" is not supported in a System Browser.')},getAlwaysOnTop:function(){return i.warn('"getAlwaysOnTop" is not supported in a System Browser.'),null},setAlwaysOnTop:async function(){i.warn('"setAlwaysOnTop" is not supported in a System Browser.')},bringToFront:async function(e){e=s(e),await e.focus()},_addStateChangeListener:function(e){e=s(e),this._boundWindowResizeHandler=()=>{this._emitPropertyChangeEvent(n,this.getBounds(e),e),this._emitPropertyChangeEvent(o,this.getInnerBounds(e),e)},e.addEventListener("resize",this._boundWindowResizeHandler);var t=this.getBounds(e),i=setInterval(()=>{if(e.closed)clearInterval(i);else{var o=this.getBounds(e);o.x===t.x&&o.y===t.y||(t.x=o.x,t.y=o.y,this._emitPropertyChangeEvent(n,a(o),e))}},250);let l,c;return e.addEventListener("load",l=()=>{e.addEventListener("unload",c=()=>{clearInterval(i),c&&e.removeEventListener("load",c)}),l&&e.removeEventListener("unload",l)}),this._windowBlurHandler=()=>{this._emitPropertyChangeEvent(r,!1,e)},e.addEventListener("blur",this._windowBlurHandler),this._windowFocusHandler=()=>{this._emitPropertyChangeEvent(r,!0,e)},e.addEventListener("focus",this._windowFocusHandler),{remove:()=>{e.removeEventListener("resize",this._boundWindowResizeHandler),e.removeEventListener("blur",this._windowBlurHandler),e.removeEventListener("focus",this._windowFocusHandler),clearInterval(i),c&&e.removeEventListener("load",c),l&&e.removeEventListener("unload",l)},getTargetWindow:()=>e}}})}),e,t),e.exports=o},function(e,t,i){e.exports={ok:"OK",cancel:"キャンセル",switchPanes:"ウィンドウの切り替え",close:"閉じる",yes:"はい",no:"いいえ"}},function(e,t,i){e.exports={ok:"확인",cancel:"취소",switchPanes:"창 전환",close:"닫기",yes:"예",no:"아니요"}},function(e,t,i){e.exports={ok:"确定",cancel:"取消",switchPanes:"切换窗口",close:"关闭",yes:"是",no:"否"}},function(e,t,i){e.exports={root:{ok:"OK",cancel:"Cancel",switchPanes:"Switch Windows",close:"Close",yes:"Yes",no:"No"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(218),i(220),i(3265),i(3266),i(3267),i(3268)],o=i.dj.d(n,(function(e,t){return t(e,"l10n/nls/uiframework",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={windowOpenTitle:"ウィンドウを開く",openBlockedMessage:"ポップアップ ウィンドウがブロックされました。",titledOpenBlockedMessage:"{placeholder} ウィンドウがブロックされました。",unableToOpenMessage:"ウィンドウを開けません",openPermissionRequest:"このウィンドウを開きますか?",allowPopupsInstruction:"ポップアップ ウィンドウを自動的に開くには、このサイトからのポップアップ ウィンドウを許可するようにブラウザーを設定してください。",open:"開く"}},function(e,t,i){e.exports={windowOpenTitle:"창 열기",openBlockedMessage:"팝업 창이 차단되었습니다.",titledOpenBlockedMessage:"{placeholder} 창이 차단되었습니다.",unableToOpenMessage:"창을 열 수 없음",openPermissionRequest:"이 창을 여시겠습니까?",allowPopupsInstruction:"팝업 창을 자동으로 열려면 이 사이트의 팝업을 허용하도록 브라우저를 구성하십시오.",open:"열기"}},function(e,t,i){e.exports={windowOpenTitle:"打开窗口",openBlockedMessage:"弹出窗口被阻止。",titledOpenBlockedMessage:"{placeholder} 窗口被阻止。",unableToOpenMessage:"无法打开窗口",openPermissionRequest:"是否要打开此窗口?",allowPopupsInstruction:"要自动打开弹出窗口,请配置您的浏览器以允许来自此网站的弹出窗口。",open:"打开"}},function(e,t,i){e.exports={root:{windowOpenTitle:"Open Window",openBlockedMessage:"Pop-up window blocked.",titledOpenBlockedMessage:"{placeholder} window blocked.",unableToOpenMessage:"Unable to open window",openPermissionRequest:"Do you want to open this window?",allowPopupsInstruction:"To open pop-up windows automatically, configure your browser to allow pop-ups from this site.",open:"Open"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(212),i(209)],o=i.dj.d(n,(function(e,t){var i,n=[];return{cleanup:function(e){if(e.cleanup||"function"==typeof e.cleanup){var t=e.cleanup();delete e.cleanup,t&&t.then&&(n.push(t),t.then((function(){var e=n.indexOf(t);e>=0&&(n.splice(e,1),i&&0===n.length&&i.resolve())})))}},completePendingCleanups:function(){return t.assert(!i,"Concurrent completePendingCleanups not supported"),i=new e,0===n.length&&i.resolve(),i.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(355),i(304)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e,t){var i=this;let n;this._appId=e,this._contextManager=t._contextManager,this._uiContainer=t,t.uiBuilder&&t.uiBuilder.getRootViewModel&&(n=t.uiBuilder.getRootViewModel(),n.addEventListener("ToolstripHandshake",()=>{n.dispatchEvent("toolstripChangesFlushed")})),t.watch("selectedChild",(function(e,n,o){i._updateSecondaryContext(o,t.get("activeContexts"))})),t.watch("activeContexts",(function(e,o,r){i._updateSecondaryContext(t.get("selectedChild"),r),n&&n.dispatchEvent&&n.dispatchEvent("activeContextsSet")})),t.watch("lastSelectedDocument",(function(e,n,o){if(o){var r=t.getChildProperties(o);i._setContext(r)}else i._clearContext()})),t._started||(t.on("started",(function(){i._pendingContext&&(this._contextManager.set("currentContext",i._pendingContext),delete i._pendingContext),i._pendingSecondaryContext&&(i._contextManager.set("secondaryContext",i._pendingSecondaryContext),delete i._pendingSecondaryContext)})),this._updateSecondaryContext(t.get("selectedChild"),t.get("activeContexts"))),t.on("linkSecondaryContextActions",()=>{this._updateSecondaryContext(t.get("selectedChild"),t.get("activeContexts"),!0)})},setDocumentContainer:function(e){var t=this;e!==this._documentContainer&&(e&&(e.on(n.CHILD_ADDED,(function(e,i){t._documentContainer&&1!==t._documentContainer.getDocumentCount(i.documentType)||t._contextManager.resetLastSelectedTab({appId:i.documentType}),i.contextDriverContextWatch=i.watch(o.ACTIVE_CONTEXTS,(function(e,n,r){i.get(o.IS_SELECTED)&&t._setContext(i,r)}))})),e.on(n.CHILD_REMOVED,(function(e,t){t&&t.contextDriverContextWatch.unwatch()}))),this._documentContainer=e)},_setContext:function(e,t){var i={appId:e.documentType,contextIdList:t||e.get(o.ACTIVE_CONTEXTS)};this._uiContainer._started?(this._contextManager.set("currentContext",i),delete this._pendingContext):this._pendingContext=i},_clearContext:function(){this._uiContainer._started&&this._contextManager.set("currentContext",{appId:this._appId})},_updateSecondaryContext:function(e,t,i){var n=[];if(e){var o=this._uiContainer.getChildProperties(e);o&&o.panelId&&n.push(o.panelId)}t&&(n=n.concat(t));var r={appId:this._appId,contextIdList:n};this._uiContainer._started?(i&&this._contextManager.setForceUpdate(!0),this._contextManager.set("secondaryContext",r),this._contextManager.setForceUpdate(!1)):this._pendingSecondaryContext=r}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(3272)],o=i.dj.d(n,(function(e){return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._graph=new e.Graph({compound:!0}),this._getSuccessors=this._getSuccessors.bind(this),this._getPredecessors=this._getPredecessors.bind(this)}return r(t,[{key:"constructGraph",value:function(t,i){var n=this,o=void 0;return t.forEach((function(t){o=[];var r=t.modulePath,a=i.pathToDependenciesMap[r];if(!a)throw new Error("One or more modules providing the dependent exports have not been registered. Please register '"+r+"' for exports to load properly.");a.length>0?(a.forEach((function(e){var t=i.exportsToPathMap[e];if(!t)throw new Error(e+": export has not been registered. Please register the module providing this service.");n._graph.hasNode(t)||o.push({modulePath:t}),n._graph.setNode(r),n._graph.setEdge(t,r)})),e.alg.isAcyclic(n._graph)&&o.length>0&&n.constructGraph(o,i)):n._graph.setNode(r)})),{hasCyclicDependency:!e.alg.isAcyclic(this._graph),graphNodes:this._graph.nodes(),independentNodes:this._graph.sources(),getSuccessors:this._getSuccessors,getPredecessors:this._getPredecessors}}},{key:"_getSuccessors",value:function(e){return this._graph.successors(e)}},{key:"_getPredecessors",value:function(e){return this._graph.predecessors(e)}}]),t}()}),e,t),e.exports=o},function(e,t,i){(function(t){e.exports=function e(t,i,n){function o(a,s){if(!i[a]){if(!t[a]){if(r)return r(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[a]={exports:{}};t[a][0].call(c.exports,(function(e){var i=t[a][1][e];return o(i||e)}),c,c.exports,e,t,i,n)}return i[a].exports}for(var r=!1,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,t,i){var n=e("./lib");t.exports={Graph:n.Graph,json:e("./lib/json"),alg:e("./lib/alg"),version:n.version}},{"./lib":17,"./lib/alg":8,"./lib/json":18}],2:[function(e,t,i){var n=e("../lodash");t.exports=function(e){var t,i={},o=[];function r(o){n.has(i,o)||(i[o]=!0,t.push(o),n.each(e.successors(o),r),n.each(e.predecessors(o),r))}return n.each(e.nodes(),(function(e){t=[],r(e),t.length&&o.push(t)})),o}},{"../lodash":19}],3:[function(e,t,i){var n=e("../lodash");t.exports=function(e,t,i){n.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),r=[],a={};return n.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,i,o,r,a,s){n.has(r,i)||(r[i]=!0,o||s.push(i),n.each(a(i),(function(i){e(t,i,o,r,a,s)})),o&&s.push(i))}(e,t,"post"===i,a,o,r)})),r}},{"../lodash":19}],4:[function(e,t,i){var n=e("./dijkstra"),o=e("../lodash");t.exports=function(e,t,i){return o.transform(e.nodes(),(function(o,r){o[r]=n(e,r,t,i)}),{})}},{"../lodash":19,"./dijkstra":5}],5:[function(e,t,i){var n=e("../lodash"),o=e("../data/priority-queue");t.exports=function(e,t,i,n){return function(e,t,i,n){var r,a,s={},l=new o,c=function(e){var t=e.v!==r?e.v:e.w,n=s[t],o=i(e),c=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<n.distance&&(n.distance=c,n.predecessor=r,l.decrease(t,c))};for(e.nodes().forEach((function(e){var i=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:i},l.add(e,i)}));l.size()>0&&(r=l.removeMin(),(a=s[r]).distance!==Number.POSITIVE_INFINITY);)n(r).forEach(c);return s}(e,String(t),i||r,n||function(t){return e.outEdges(t)})};var r=n.constant(1)},{"../data/priority-queue":15,"../lodash":19}],6:[function(e,t,i){var n=e("../lodash"),o=e("./tarjan");t.exports=function(e){return n.filter(o(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},{"../lodash":19,"./tarjan":13}],7:[function(e,t,i){var n=e("../lodash");t.exports=function(e,t,i){return function(e,t,i){var n={},o=e.nodes();return o.forEach((function(e){n[e]={},n[e][e]={distance:0},o.forEach((function(t){e!==t&&(n[e][t]={distance:Number.POSITIVE_INFINITY})})),i(e).forEach((function(i){var o=i.v===e?i.w:i.v,r=t(i);n[e][o]={distance:r,predecessor:e}}))})),o.forEach((function(e){var t=n[e];o.forEach((function(i){var r=n[i];o.forEach((function(i){var n=r[e],o=t[i],a=r[i],s=n.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)}))}))})),n}(e,t||o,i||function(t){return e.outEdges(t)})};var o=n.constant(1)},{"../lodash":19}],8:[function(e,t,i){t.exports={components:e("./components"),dijkstra:e("./dijkstra"),dijkstraAll:e("./dijkstra-all"),findCycles:e("./find-cycles"),floydWarshall:e("./floyd-warshall"),isAcyclic:e("./is-acyclic"),postorder:e("./postorder"),preorder:e("./preorder"),prim:e("./prim"),tarjan:e("./tarjan"),topsort:e("./topsort")}},{"./components":2,"./dijkstra":5,"./dijkstra-all":4,"./find-cycles":6,"./floyd-warshall":7,"./is-acyclic":9,"./postorder":10,"./preorder":11,"./prim":12,"./tarjan":13,"./topsort":14}],9:[function(e,t,i){var n=e("./topsort");t.exports=function(e){try{n(e)}catch(e){if(e instanceof n.CycleException)return!1;throw e}return!0}},{"./topsort":14}],10:[function(e,t,i){var n=e("./dfs");t.exports=function(e,t){return n(e,t,"post")}},{"./dfs":3}],11:[function(e,t,i){var n=e("./dfs");t.exports=function(e,t){return n(e,t,"pre")}},{"./dfs":3}],12:[function(e,t,i){var n=e("../lodash"),o=e("../graph"),r=e("../data/priority-queue");t.exports=function(e,t){var i,a=new o,s={},l=new r;function c(e){var n=e.v===i?e.w:e.v,o=l.priority(n);if(void 0!==o){var r=t(e);r<o&&(s[n]=i,l.decrease(n,r))}}if(0===e.nodeCount())return a;n.each(e.nodes(),(function(e){l.add(e,Number.POSITIVE_INFINITY),a.setNode(e)})),l.decrease(e.nodes()[0],0);for(var d=!1;l.size()>0;){if(i=l.removeMin(),n.has(s,i))a.setEdge(i,s[i]);else{if(d)throw new Error("Input graph is not connected: "+e);d=!0}e.nodeEdges(i).forEach(c)}return a}},{"../data/priority-queue":15,"../graph":16,"../lodash":19}],13:[function(e,t,i){var n=e("../lodash");t.exports=function(e){var t=0,i=[],o={},r=[];return e.nodes().forEach((function(a){n.has(o,a)||function a(s){var l=o[s]={onStack:!0,lowlink:t,index:t++};if(i.push(s),e.successors(s).forEach((function(e){n.has(o,e)?o[e].onStack&&(l.lowlink=Math.min(l.lowlink,o[e].index)):(a(e),l.lowlink=Math.min(l.lowlink,o[e].lowlink))})),l.lowlink===l.index){var c,d=[];do{c=i.pop(),o[c].onStack=!1,d.push(c)}while(s!==c);r.push(d)}}(a)})),r}},{"../lodash":19}],14:[function(e,t,i){var n=e("../lodash");function o(e){var t={},i={},o=[];if(n.each(e.sinks(),(function a(s){if(n.has(i,s))throw new r;n.has(t,s)||(i[s]=!0,t[s]=!0,n.each(e.predecessors(s),a),delete i[s],o.push(s))})),n.size(t)!==e.nodeCount())throw new r;return o}function r(){}t.exports=o,o.CycleException=r},{"../lodash":19}],15:[function(e,t,i){var n=e("../lodash");function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return n.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var i=this._keyIndices;if(e=String(e),!n.has(i,e)){var o=this._arr,r=o.length;return i[e]=r,o.push({key:e,priority:t}),this._decrease(r),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var i=this._keyIndices[e];if(t>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[i].priority+" New: "+t);this._arr[i].priority=t,this._decrease(i)},o.prototype._heapify=function(e){var t=this._arr,i=2*e,n=i+1,o=e;i<t.length&&(o=t[i].priority<t[o].priority?i:o,n<t.length&&(o=t[n].priority<t[o].priority?n:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var t,i=this._arr,n=i[e].priority;0!==e&&!(i[t=e>>1].priority<n);)this._swap(e,t),e=t},o.prototype._swap=function(e,t){var i=this._arr,n=this._keyIndices,o=i[e],r=i[t];i[e]=r,i[t]=o,n[r.key]=e,n[o.key]=t}},{"../lodash":19}],16:[function(e,t,i){"use strict";var n=e("./lodash");function o(e){this._isDirected=!n.has(e,"directed")||e.directed,this._isMultigraph=!!n.has(e,"multigraph")&&e.multigraph,this._isCompound=!!n.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=n.constant(void 0),this._defaultEdgeLabelFn=n.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function r(e,t){e[t]?e[t]++:e[t]=1}function a(e,t){--e[t]||delete e[t]}function s(e,t,i,o){var r=""+t,a=""+i;if(!e&&r>a){var s=r;r=a,a=s}return r+""+a+""+(n.isUndefined(o)?"\0":o)}function l(e,t,i,n){var o=""+t,r=""+i;if(!e&&o>r){var a=o;o=r,r=a}var s={v:o,w:r};return n&&(s.name=n),s}function c(e,t){return s(e,t.v,t.w,t.name)}t.exports=o,o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(e){return this._label=e,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(e){return n.isFunction(e)||(e=n.constant(e)),this._defaultNodeLabelFn=e,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return n.keys(this._nodes)},o.prototype.sources=function(){return n.filter(this.nodes(),n.bind((function(e){return n.isEmpty(this._in[e])}),this))},o.prototype.sinks=function(){return n.filter(this.nodes(),n.bind((function(e){return n.isEmpty(this._out[e])}),this))},o.prototype.setNodes=function(e,t){var i=arguments;return n.each(e,n.bind((function(e){i.length>1?this.setNode(e,t):this.setNode(e)}),this)),this},o.prototype.setNode=function(e,t){return n.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},o.prototype.node=function(e){return this._nodes[e]},o.prototype.hasNode=function(e){return n.has(this._nodes,e)},o.prototype.removeNode=function(e){var t=this;if(n.has(this._nodes,e)){var i=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],n.each(this.children(e),n.bind((function(e){this.setParent(e)}),this)),delete this._children[e]),n.each(n.keys(this._in[e]),i),delete this._in[e],delete this._preds[e],n.each(n.keys(this._out[e]),i),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},o.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(n.isUndefined(t))t="\0";else{for(var i=t+="";!n.isUndefined(i);i=this.parent(i))if(i===e)throw new Error("Setting "+t+" as parent of "+e+" would create create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},o.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},o.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},o.prototype.children=function(e){if(n.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return n.keys(t)}else{if("\0"===e)return this.nodes();if(this.hasNode(e))return[]}},o.prototype.predecessors=function(e){var t=this._preds[e];if(t)return n.keys(t)},o.prototype.successors=function(e){var t=this._sucs[e];if(t)return n.keys(t)},o.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return n.union(t,this.successors(e))},o.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph()),n.each(this._nodes,n.bind((function(i,n){e(n)&&t.setNode(n,i)}),this)),n.each(this._edgeObjs,n.bind((function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,this.edge(e))}),this));var i=this,o={};return this._isCompound&&n.each(t.nodes(),(function(e){t.setParent(e,function e(n){var r=i.parent(n);return void 0===r||t.hasNode(r)?(o[n]=r,r):r in o?o[r]:e(r)}(e))})),t},o.prototype.setDefaultEdgeLabel=function(e){return n.isFunction(e)||(e=n.constant(e)),this._defaultEdgeLabelFn=e,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return n.values(this._edgeObjs)},o.prototype.setPath=function(e,t){var i=this,o=arguments;return n.reduce(e,(function(e,n){return o.length>1?i.setEdge(e,n,t):i.setEdge(e,n),n})),this},o.prototype.setEdge=function(){var e,t,i,o,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(e=c.v,t=c.w,i=c.name,2===arguments.length&&(o=arguments[1],a=!0)):(e=c,t=arguments[1],i=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),e=""+e,t=""+t,n.isUndefined(i)||(i=""+i);var d=s(this._isDirected,e,t,i);if(n.has(this._edgeLabels,d))return a&&(this._edgeLabels[d]=o),this;if(!n.isUndefined(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[d]=a?o:this._defaultEdgeLabelFn(e,t,i);var u=l(this._isDirected,e,t,i);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[d]=u,r(this._preds[t],e),r(this._sucs[e],t),this._in[t][d]=u,this._out[e][d]=u,this._edgeCount++,this},o.prototype.edge=function(e,t,i){var n=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,e,t,i);return this._edgeLabels[n]},o.prototype.hasEdge=function(e,t,i){var o=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,e,t,i);return n.has(this._edgeLabels,o)},o.prototype.removeEdge=function(e,t,i){var n=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,e,t,i),o=this._edgeObjs[n];return o&&(e=o.v,t=o.w,delete this._edgeLabels[n],delete this._edgeObjs[n],a(this._preds[t],e),a(this._sucs[e],t),delete this._in[t][n],delete this._out[e][n],this._edgeCount--),this},o.prototype.inEdges=function(e,t){var i=this._in[e];if(i){var o=n.values(i);return t?n.filter(o,(function(e){return e.v===t})):o}},o.prototype.outEdges=function(e,t){var i=this._out[e];if(i){var o=n.values(i);return t?n.filter(o,(function(e){return e.w===t})):o}},o.prototype.nodeEdges=function(e,t){var i=this.inEdges(e,t);if(i)return i.concat(this.outEdges(e,t))}},{"./lodash":19}],17:[function(e,t,i){t.exports={Graph:e("./graph"),version:e("./version")}},{"./graph":16,"./version":20}],18:[function(e,t,i){var n=e("./lodash"),o=e("./graph");function r(e){return n.map(e.nodes(),(function(t){var i=e.node(t),o=e.parent(t),r={v:t};return n.isUndefined(i)||(r.value=i),n.isUndefined(o)||(r.parent=o),r}))}function a(e){return n.map(e.edges(),(function(t){var i=e.edge(t),o={v:t.v,w:t.w};return n.isUndefined(t.name)||(o.name=t.name),n.isUndefined(i)||(o.value=i),o}))}t.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:r(e),edges:a(e)};return n.isUndefined(e.graph())||(t.value=n.clone(e.graph())),t},read:function(e){var t=new o(e.options).setGraph(e.value);return n.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),n.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},{"./graph":16,"./lodash":19}],19:[function(e,t,i){var n;if("function"==typeof e)try{n=e("lodash")}catch(e){}n||(n=window._),t.exports=n},{lodash:21}],20:[function(e,t,i){t.exports="2.1.1"},{}],21:[function(e,i,n){(function(e){(function(){var t="Expected a function",o="__lodash_placeholder__",r="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",u="[object GeneratorFunction]",h="[object Map]",p="[object Number]",f="[object Object]",g="[object RegExp]",m="[object Set]",_="[object String]",v="[object Symbol]",b="[object WeakMap]",y="[object ArrayBuffer]",C="[object DataView]",T="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",I="[object Int32Array]",A="[object Uint8Array]",x="[object Uint16Array]",N="[object Uint32Array]",L=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39|#96);/g,O=/[&<>"'`]/g,R=RegExp(P.source),k=RegExp(O.source),F=/<%-([\s\S]+?)%>/g,B=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g,W=/[\\^$.*+?()[\]{}|]/g,G=RegExp(W.source),z=/^\s+|\s+$/g,q=/^\s+/,K=/\s+$/,X=/[a-zA-Z0-9]+/g,Y=/\\(\\)?/g,Q=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$=/\w*$/,J=/^0x/i,Z=/^[-+]0x[0-9a-f]+$/i,ee=/^0b[01]+$/i,te=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,ne=/^(?:0|[1-9]\d*)$/,oe=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,re=/($^)/,ae=/['\n\r\u2028\u2029\\]/g,se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",le="[\\ud800-\\udfff]",ce="["+se+"]",de="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",ue="\\d+",he="[\\u2700-\\u27bf]",pe="[a-z\\xdf-\\xf6\\xf8-\\xff]",fe="[^\\ud800-\\udfff"+se+ue+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ge="\\ud83c[\\udffb-\\udfff]",me="[^\\ud800-\\udfff]",_e="(?:\\ud83c[\\udde6-\\uddff]){2}",ve="[\\ud800-\\udbff][\\udc00-\\udfff]",be="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ye="(?:"+pe+"|"+fe+")",Ce="(?:"+be+"|"+fe+")",Te="(?:"+de+"|"+ge+")?",Ee="[\\ufe0e\\ufe0f]?"+Te+"(?:\\u200d(?:"+[me,_e,ve].join("|")+")[\\ufe0e\\ufe0f]?"+Te+")*",Se="(?:"+[he,_e,ve].join("|")+")"+Ee,we="(?:"+[me+de+"?",de,_e,ve,le].join("|")+")",Ie=RegExp("['’]","g"),Ae=RegExp(de,"g"),xe=RegExp(ge+"(?="+ge+")|"+we+Ee,"g"),Ne=RegExp([be+"?"+pe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ce,be,"$"].join("|")+")",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ce,be+ye,"$"].join("|")+")",be+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?",be+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",ue,Se].join("|"),"g"),Le=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),De=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Me=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","isFinite","parseInt","setTimeout"],Pe=-1,Oe={};Oe[T]=Oe[E]=Oe[S]=Oe[w]=Oe[I]=Oe[A]=Oe["[object Uint8ClampedArray]"]=Oe[x]=Oe[N]=!0,Oe[r]=Oe[a]=Oe[y]=Oe[s]=Oe[C]=Oe[l]=Oe[c]=Oe[d]=Oe[h]=Oe[p]=Oe[f]=Oe[g]=Oe[m]=Oe[_]=Oe[b]=!1;var Re={};Re[r]=Re[a]=Re[y]=Re[C]=Re[s]=Re[l]=Re[T]=Re[E]=Re[S]=Re[w]=Re[I]=Re[h]=Re[p]=Re[f]=Re[g]=Re[m]=Re[_]=Re[v]=Re[A]=Re["[object Uint8ClampedArray]"]=Re[x]=Re[N]=!0,Re[c]=Re[d]=Re[b]=!1;var ke={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Fe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Be={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,je=parseInt,Ue="object"==typeof n&&n,We=Ue&&"object"==typeof i&&i,Ge=We&&We.exports===Ue,ze=Et("object"==typeof e&&e),qe=Et("object"==typeof self&&self),Ke=Et("object"==typeof this&&this),Xe=ze||qe||Ke||Function("return this")();function Ye(e,t){return e.set(t[0],t[1]),e}function Qe(e,t){return e.add(t),e}function $e(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Je(e,t,i,n){for(var o=-1,r=e?e.length:0;++o<r;){var a=e[o];t(n,a,i(a),e)}return n}function Ze(e,t){for(var i=-1,n=e?e.length:0;++i<n&&!1!==t(e[i],i,e););return e}function et(e,t){for(var i=e?e.length:0;i--&&!1!==t(e[i],i,e););return e}function tt(e,t){for(var i=-1,n=e?e.length:0;++i<n;)if(!t(e[i],i,e))return!1;return!0}function it(e,t){for(var i=-1,n=e?e.length:0,o=0,r=[];++i<n;){var a=e[i];t(a,i,e)&&(r[o++]=a)}return r}function nt(e,t){return!(!e||!e.length)&&ht(e,t,0)>-1}function ot(e,t,i){for(var n=-1,o=e?e.length:0;++n<o;)if(i(t,e[n]))return!0;return!1}function rt(e,t){for(var i=-1,n=e?e.length:0,o=Array(n);++i<n;)o[i]=t(e[i],i,e);return o}function at(e,t){for(var i=-1,n=t.length,o=e.length;++i<n;)e[o+i]=t[i];return e}function st(e,t,i,n){var o=-1,r=e?e.length:0;for(n&&r&&(i=e[++o]);++o<r;)i=t(i,e[o],o,e);return i}function lt(e,t,i,n){var o=e?e.length:0;for(n&&o&&(i=e[--o]);o--;)i=t(i,e[o],o,e);return i}function ct(e,t){for(var i=-1,n=e?e.length:0;++i<n;)if(t(e[i],i,e))return!0;return!1}function dt(e,t,i){var n;return i(e,(function(e,i,o){if(t(e,i,o))return n=i,!1})),n}function ut(e,t,i,n){for(var o=e.length,r=i+(n?1:-1);n?r--:++r<o;)if(t(e[r],r,e))return r;return-1}function ht(e,t,i){if(t!=t)return xt(e,i);for(var n=i-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}function pt(e,t,i,n){for(var o=i-1,r=e.length;++o<r;)if(n(e[o],t))return o;return-1}function ft(e,t){var i=e?e.length:0;return i?mt(e,t)/i:NaN}function gt(e,t,i,n,o){return o(e,(function(e,o,r){i=n?(n=!1,e):t(i,e,o,r)})),i}function mt(e,t){for(var i,n=-1,o=e.length;++n<o;){var r=t(e[n]);void 0!==r&&(i=void 0===i?r:i+r)}return i}function _t(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}function vt(e){return function(t){return e(t)}}function bt(e,t){return rt(t,(function(t){return e[t]}))}function yt(e,t){return e.has(t)}function Ct(e,t){for(var i=-1,n=e.length;++i<n&&ht(t,e[i],0)>-1;);return i}function Tt(e,t){for(var i=e.length;i--&&ht(t,e[i],0)>-1;);return i}function Et(e){return e&&e.Object===Object?e:null}function St(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&n++;return n}function wt(e){return ke[e]}function It(e){return Fe[e]}function At(e){return"\\"+He[e]}function xt(e,t,i){for(var n=e.length,o=t+(i?1:-1);i?o--:++o<n;){var r=e[o];if(r!=r)return o}return-1}function Nt(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Lt(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}function Dt(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}function Mt(e,t){for(var i=-1,n=e.length,r=0,a=[];++i<n;){var s=e[i];s!==t&&s!==o||(e[i]=o,a[r++]=i)}return a}function Pt(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}function Ot(e){if(!e||!Le.test(e))return e.length;for(var t=xe.lastIndex=0;xe.test(e);)t++;return t}function Rt(e){return e.match(xe)}function kt(e){return Be[e]}var Ft=function e(i){var n,se=(i=i?Ft.defaults({},i,Ft.pick(Xe,Me)):Xe).Date,le=i.Error,ce=i.Math,de=i.RegExp,ue=i.TypeError,he=i.Array.prototype,pe=i.Object.prototype,fe=i.String.prototype,ge=i["__core-js_shared__"],me=(n=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",_e=i.Function.prototype.toString,ve=pe.hasOwnProperty,be=0,ye=_e.call(Object),Ce=pe.toString,Te=Xe._,Ee=de("^"+_e.call(ve).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Se=Ge?i.Buffer:void 0,we=i.Reflect,xe=i.Symbol,ke=i.Uint8Array,Fe=we?we.enumerate:void 0,Be=Object.getOwnPropertySymbols,He="symbol"==typeof(He=xe&&xe.iterator)?He:void 0,Ue=Object.create,We=pe.propertyIsEnumerable,ze=he.splice,qe=function(e,t){return i.setTimeout.call(Xe,e,t)},Ke=ce.ceil,Et=ce.floor,Bt=Object.getPrototypeOf,Ht=i.isFinite,Vt=he.join,jt=Object.keys,Ut=ce.max,Wt=ce.min,Gt=i.parseInt,zt=ce.random,qt=fe.replace,Kt=he.reverse,Xt=fe.split,Yt=bo(i,"DataView"),Qt=bo(i,"Map"),$t=bo(i,"Promise"),Jt=bo(i,"Set"),Zt=bo(i,"WeakMap"),ei=bo(Object,"create"),ti=Zt&&new Zt,ii=!We.call({valueOf:1},"valueOf"),ni={},oi=Go(Yt),ri=Go(Qt),ai=Go($t),si=Go(Jt),li=Go(Zt),ci=xe?xe.prototype:void 0,di=ci?ci.valueOf:void 0,ui=ci?ci.toString:void 0;function hi(e){if(sa(e)&&!Jr(e)&&!(e instanceof gi)){if(e instanceof fi)return e;if(ve.call(e,"__wrapped__"))return zo(e)}return new fi(e)}function pi(){}function fi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function gi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function mi(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function _i(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function vi(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function bi(e){var t=-1,i=e?e.length:0;for(this.__data__=new vi;++t<i;)this.add(e[t])}function yi(e){this.__data__=new _i(e)}function Ci(e,t,i,n){return void 0===e||Xr(e,pe[i])&&!ve.call(n,i)?t:e}function Ti(e,t,i){(void 0!==i&&!Xr(e[t],i)||"number"==typeof t&&void 0===i&&!(t in e))&&(e[t]=i)}function Ei(e,t,i){var n=e[t];ve.call(e,t)&&Xr(n,i)&&(void 0!==i||t in e)||(e[t]=i)}function Si(e,t){for(var i=e.length;i--;)if(Xr(e[i][0],t))return i;return-1}function wi(e,t,i,n){return Pi(e,(function(e,o,r){t(n,e,i(e),r)})),n}function Ii(e,t){return e&&jn(t,Ra(t),e)}function Ai(e,t){for(var i=-1,n=null==e,o=t.length,r=Array(o);++i<o;)r[i]=n?void 0:La(e,t[i]);return r}function xi(e,t,i){return e==e&&(void 0!==i&&(e=e<=i?e:i),void 0!==t&&(e=e>=t?e:t)),e}function Ni(e,t,i,n,o,a,c){var b;if(n&&(b=a?n(e,o,a,c):n(e)),void 0!==b)return b;if(!aa(e))return e;var L=Jr(e);if(L){if(b=function(e){var t=e.length,i=e.constructor(t);return t&&"string"==typeof e[0]&&ve.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(e),!t)return Vn(e,b)}else{var D=Eo(e),M=D==d||D==u;if(ta(e))return function(e,t){if(t)return e.slice();var i=new e.constructor(e.length);return e.copy(i),i}(e,t);if(D==f||D==r||M&&!a){if(Nt(e))return a?e:{};if(b=function(e){return"function"!=typeof e.constructor||Po(e)?{}:Li(yo(e))}(M?{}:e),!t)return function(e,t){return jn(e,Co(e),t)}(e,Ii(b,e))}else{if(!Re[D])return a?e:{};b=function(e,t,i,n){var o,r=e.constructor;switch(t){case y:return kn(e);case s:case l:return new r(+e);case C:return function(e,t){var i=t?kn(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,n);case T:case E:case S:case w:case I:case A:case"[object Uint8ClampedArray]":case x:case N:return function(e,t){var i=t?kn(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}(e,n);case h:return function(e,t,i){return st(t?i(Dt(e),!0):Dt(e),Ye,new e.constructor)}(e,n,i);case p:case _:return new r(e);case g:return function(e){var t=new e.constructor(e.source,$.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,i){return st(t?i(Pt(e),!0):Pt(e),Qe,new e.constructor)}(e,n,i);case v:return o=e,di?Object(di.call(o)):{}}}(e,D,Ni,t)}}c||(c=new yi);var P=c.get(e);if(P)return P;if(c.set(e,b),!L)var O=i?function(e){return zi(e,Ra,Co)}(e):Ra(e);return Ze(O||e,(function(o,r){O&&(o=e[r=o]),Ei(b,r,Ni(o,t,i,n,r,e,c))})),b}function Li(e){return aa(e)?Ue(e):{}}function Di(e,i,n){if("function"!=typeof e)throw new ue(t);return qe((function(){e.apply(void 0,n)}),i)}function Mi(e,t,i,n){var o=-1,r=nt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;i&&(t=rt(t,vt(i))),n?(r=ot,a=!1):t.length>=200&&(r=yt,a=!1,t=new bi(t));e:for(;++o<s;){var d=e[o],u=i?i(d):d;if(d=n||0!==d?d:0,a&&u==u){for(var h=c;h--;)if(t[h]===u)continue e;l.push(d)}else r(t,u,n)||l.push(d)}return l}hi.templateSettings={escape:F,evaluate:B,interpolate:H,variable:"",imports:{_:hi}},hi.prototype=pi.prototype,hi.prototype.constructor=hi,fi.prototype=Li(pi.prototype),fi.prototype.constructor=fi,gi.prototype=Li(pi.prototype),gi.prototype.constructor=gi,mi.prototype.clear=function(){this.__data__=ei?ei(null):{}},mi.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},mi.prototype.get=function(e){var t=this.__data__;if(ei){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return ve.call(t,e)?t[e]:void 0},mi.prototype.has=function(e){var t=this.__data__;return ei?void 0!==t[e]:ve.call(t,e)},mi.prototype.set=function(e,t){return this.__data__[e]=ei&&void 0===t?"__lodash_hash_undefined__":t,this},_i.prototype.clear=function(){this.__data__=[]},_i.prototype.delete=function(e){var t=this.__data__,i=Si(t,e);return!(i<0||(i==t.length-1?t.pop():ze.call(t,i,1),0))},_i.prototype.get=function(e){var t=this.__data__,i=Si(t,e);return i<0?void 0:t[i][1]},_i.prototype.has=function(e){return Si(this.__data__,e)>-1},_i.prototype.set=function(e,t){var i=this.__data__,n=Si(i,e);return n<0?i.push([e,t]):i[n][1]=t,this},vi.prototype.clear=function(){this.__data__={hash:new mi,map:new(Qt||_i),string:new mi}},vi.prototype.delete=function(e){return _o(this,e).delete(e)},vi.prototype.get=function(e){return _o(this,e).get(e)},vi.prototype.has=function(e){return _o(this,e).has(e)},vi.prototype.set=function(e,t){return _o(this,e).set(e,t),this},bi.prototype.add=bi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},bi.prototype.has=function(e){return this.__data__.has(e)},yi.prototype.clear=function(){this.__data__=new _i},yi.prototype.delete=function(e){return this.__data__.delete(e)},yi.prototype.get=function(e){return this.__data__.get(e)},yi.prototype.has=function(e){return this.__data__.has(e)},yi.prototype.set=function(e,t){var i=this.__data__;return i instanceof _i&&200==i.__data__.length&&(i=this.__data__=new vi(i.__data__)),i.set(e,t),this};var Pi=Gn(ji),Oi=Gn(Ui,!0);function Ri(e,t){var i=!0;return Pi(e,(function(e,n,o){return i=!!t(e,n,o)})),i}function ki(e,t,i){for(var n=-1,o=e.length;++n<o;){var r=e[n],a=t(r);if(null!=a&&(void 0===s?a==a&&!ha(a):i(a,s)))var s=a,l=r}return l}function Fi(e,t){var i=[];return Pi(e,(function(e,n,o){t(e,n,o)&&i.push(e)})),i}function Bi(e,t,i,n,o){var r=-1,a=e.length;for(i||(i=Io),o||(o=[]);++r<a;){var s=e[r];t>0&&i(s)?t>1?Bi(s,t-1,i,n,o):at(o,s):n||(o[o.length]=s)}return o}var Hi=zn(),Vi=zn(!0);function ji(e,t){return e&&Hi(e,t,Ra)}function Ui(e,t){return e&&Vi(e,t,Ra)}function Wi(e,t){return it(t,(function(t){return na(e[t])}))}function Gi(e,t){for(var i=0,n=(t=Lo(t,e)?[t]:On(t)).length;null!=e&&i<n;)e=e[Wo(t[i++])];return i&&i==n?e:void 0}function zi(e,t,i){var n=t(e);return Jr(e)?n:at(n,i(e))}function qi(e,t){return e>t}function Ki(e,t){return null!=e&&(ve.call(e,t)||"object"==typeof e&&t in e&&null===yo(e))}function Xi(e,t){return null!=e&&t in Object(e)}function Yi(e,t,i){for(var n=i?ot:nt,o=e[0].length,r=e.length,a=r,s=Array(r),l=1/0,c=[];a--;){var d=e[a];a&&t&&(d=rt(d,vt(t))),l=Wt(d.length,l),s[a]=!i&&(t||o>=120&&d.length>=120)?new bi(a&&d):void 0}d=e[0];var u=-1,h=s[0];e:for(;++u<o&&c.length<l;){var p=d[u],f=t?t(p):p;if(p=i||0!==p?p:0,!(h?yt(h,f):n(c,f,i))){for(a=r;--a;){var g=s[a];if(!(g?yt(g,f):n(e[a],f,i)))continue e}h&&h.push(f),c.push(p)}}return c}function Qi(e,t,i){Lo(t,e)||(e=Fo(e,t=On(t)),t=nr(t));var n=null==e?e:e[Wo(t)];return null==n?void 0:$e(n,e,i)}function $i(e,t,i,n,o){return e===t||(null==e||null==t||!aa(e)&&!sa(t)?e!=e&&t!=t:function(e,t,i,n,o,d){var u=Jr(e),b=Jr(t),T=a,E=a;u||(T=(T=Eo(e))==r?f:T),b||(E=(E=Eo(t))==r?f:E);var S=T==f&&!Nt(e),w=E==f&&!Nt(t),I=T==E;if(I&&!S)return d||(d=new yi),u||pa(e)?co(e,t,i,n,o,d):function(e,t,i,n,o,r,a){switch(i){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!n(new ke(e),new ke(t)));case s:case l:return+e==+t;case c:return e.name==t.name&&e.message==t.message;case p:return e!=+e?t!=+t:e==+t;case g:case _:return e==t+"";case h:var d=Dt;case m:var u=2&r;if(d||(d=Pt),e.size!=t.size&&!u)return!1;var f=a.get(e);return f?f==t:(r|=1,a.set(e,t),co(d(e),d(t),n,o,r,a));case v:if(di)return di.call(e)==di.call(t)}return!1}(e,t,T,i,n,o,d);if(!(2&o)){var A=S&&ve.call(e,"__wrapped__"),x=w&&ve.call(t,"__wrapped__");if(A||x){var N=A?e.value():e,L=x?t.value():t;return d||(d=new yi),i(N,L,n,o,d)}}return!!I&&(d||(d=new yi),function(e,t,i,n,o,r){var a=2&o,s=Ra(e),l=s.length,c=Ra(t).length;if(l!=c&&!a)return!1;for(var d=l;d--;){var u=s[d];if(!(a?u in t:Ki(t,u)))return!1}var h=r.get(e);if(h)return h==t;var p=!0;r.set(e,t);for(var f=a;++d<l;){u=s[d];var g=e[u],m=t[u];if(n)var _=a?n(m,g,u,t,e,r):n(g,m,u,e,t,r);if(!(void 0===_?g===m||i(g,m,n,o,r):_)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return r.delete(e),p}(e,t,i,n,o,d))}(e,t,$i,i,n,o))}function Ji(e,t,i,n){var o=i.length,r=o,a=!n;if(null==e)return!r;for(e=Object(e);o--;){var s=i[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<r;){var l=(s=i[o])[0],c=e[l],d=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var u=new yi;if(n)var h=n(c,d,l,e,t,u);if(!(void 0===h?$i(d,c,n,3,u):h))return!1}}return!0}function Zi(e){return!(!aa(e)||(t=e,me&&me in t))&&(na(e)||Nt(e)?Ee:te).test(Go(e));var t}function en(e){return"function"==typeof e?e:null==e?as:"object"==typeof e?Jr(e)?an(e[0],e[1]):rn(e):gs(e)}function tn(e){e=null==e?e:Object(e);var t=[];for(var i in e)t.push(i);return t}function nn(e,t){return e<t}function on(e,t){var i=-1,n=Zr(e)?Array(e.length):[];return Pi(e,(function(e,o,r){n[++i]=t(e,o,r)})),n}function rn(e){var t=vo(e);return 1==t.length&&t[0][2]?Ro(t[0][0],t[0][1]):function(i){return i===e||Ji(i,e,t)}}function an(e,t){return Lo(e)&&Oo(t)?Ro(Wo(e),t):function(i){var n=La(i,e);return void 0===n&&n===t?Da(i,e):$i(t,n,void 0,3)}}function sn(e,t,i,n,o){if(e!==t){if(!Jr(t)&&!pa(t))var r=ka(t);Ze(r||t,(function(a,s){if(r&&(a=t[s=a]),aa(a))o||(o=new yi),function(e,t,i,n,o,r,a){var s=e[i],l=t[i],c=a.get(l);if(c)Ti(e,i,c);else{var d=r?r(s,l,i+"",e,t,a):void 0,u=void 0===d;u&&(d=l,Jr(l)||pa(l)?Jr(s)?d=s:ea(s)?d=Vn(s):(u=!1,d=Ni(l,!0)):ca(l)||$r(l)?$r(s)?d=Ca(s):!aa(s)||n&&na(s)?(u=!1,d=Ni(l,!0)):d=s:u=!1),a.set(l,d),u&&o(d,l,n,r,a),a.delete(l),Ti(e,i,d)}}(e,t,s,i,sn,n,o);else{var l=n?n(e[s],a,s+"",e,t,o):void 0;void 0===l&&(l=a),Ti(e,s,l)}}))}}function ln(e,t){var i=e.length;if(i)return xo(t+=t<0?i:0,i)?e[t]:void 0}function cn(e,t,i){var n=-1;return t=rt(t.length?t:[as],vt(go())),function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}(on(e,(function(e,i,o){return{criteria:rt(t,(function(t){return t(e)})),index:++n,value:e}})),(function(e,t){return function(e,t,i){for(var n=-1,o=e.criteria,r=t.criteria,a=o.length,s=i.length;++n<a;){var l=Fn(o[n],r[n]);if(l){if(n>=s)return l;var c=i[n];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,i)}))}function dn(e,t){return e=Object(e),st(t,(function(t,i){return i in e&&(t[i]=e[i]),t}),{})}function un(e,t){for(var i=-1,n=uo(e),o=n.length,r={};++i<o;){var a=n[i],s=e[a];t(s,a)&&(r[a]=s)}return r}function hn(e){return function(t){return null==t?void 0:t[e]}}function pn(e,t,i,n){var o=n?pt:ht,r=-1,a=t.length,s=e;for(e===t&&(t=Vn(t)),i&&(s=rt(e,vt(i)));++r<a;)for(var l=0,c=t[r],d=i?i(c):c;(l=o(s,d,l,n))>-1;)s!==e&&ze.call(s,l,1),ze.call(e,l,1);return e}function fn(e,t){for(var i=e?t.length:0,n=i-1;i--;){var o=t[i];if(i==n||o!==r){var r=o;if(xo(o))ze.call(e,o,1);else if(Lo(o,e))delete e[Wo(o)];else{var a=On(o),s=Fo(e,a);null!=s&&delete s[Wo(nr(a))]}}}return e}function gn(e,t){return e+Et(zt()*(t-e+1))}function mn(e,t){var i="";if(!e||t<1||t>9007199254740991)return i;do{t%2&&(i+=e),(t=Et(t/2))&&(e+=e)}while(t);return i}function _n(e,t,i,n){for(var o=-1,r=(t=Lo(t,e)?[t]:On(t)).length,a=r-1,s=e;null!=s&&++o<r;){var l=Wo(t[o]);if(aa(s)){var c=i;if(o!=a){var d=s[l];void 0===(c=n?n(d,l,s):void 0)&&(c=null==d?xo(t[o+1])?[]:{}:d)}Ei(s,l,c)}s=s[l]}return e}Fe&&!We.call({valueOf:1},"valueOf")&&(tn=function(e){return Lt(Fe(e))});var vn=ti?function(e,t){return ti.set(e,t),e}:as;function bn(e,t,i){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(i=i>o?o:i)<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var r=Array(o);++n<o;)r[n]=e[n+t];return r}function yn(e,t){var i;return Pi(e,(function(e,n,o){return!(i=t(e,n,o))})),!!i}function Cn(e,t,i){var n=0,o=e?e.length:n;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var r=n+o>>>1,a=e[r];null!==a&&!ha(a)&&(i?a<=t:a<t)?n=r+1:o=r}return o}return Tn(e,t,as,i)}function Tn(e,t,i,n){t=i(t);for(var o=0,r=e?e.length:0,a=t!=t,s=null===t,l=ha(t),c=void 0===t;o<r;){var d=Et((o+r)/2),u=i(e[d]),h=void 0!==u,p=null===u,f=u==u,g=ha(u);if(a)var m=n||f;else m=c?f&&(n||h):s?f&&h&&(n||!p):l?f&&h&&!p&&(n||!g):!p&&!g&&(n?u<=t:u<t);m?o=d+1:r=d}return Wt(r,4294967294)}function En(e,t){for(var i=-1,n=e.length,o=0,r=[];++i<n;){var a=e[i],s=t?t(a):a;if(!i||!Xr(s,l)){var l=s;r[o++]=0===a?0:a}}return r}function Sn(e){return"number"==typeof e?e:ha(e)?NaN:+e}function wn(e){if("string"==typeof e)return e;if(ha(e))return ui?ui.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function In(e,t,i){var n=-1,o=nt,r=e.length,a=!0,s=[],l=s;if(i)a=!1,o=ot;else if(r>=200){var c=t?null:ao(e);if(c)return Pt(c);a=!1,o=yt,l=new bi}else l=t?[]:s;e:for(;++n<r;){var d=e[n],u=t?t(d):d;if(d=i||0!==d?d:0,a&&u==u){for(var h=l.length;h--;)if(l[h]===u)continue e;t&&l.push(u),s.push(d)}else o(l,u,i)||(l!==s&&l.push(u),s.push(d))}return s}function An(e,t,i,n){return _n(e,t,i(Gi(e,t)),n)}function xn(e,t,i,n){for(var o=e.length,r=n?o:-1;(n?r--:++r<o)&&t(e[r],r,e););return i?bn(e,n?0:r,n?r+1:o):bn(e,n?r+1:0,n?o:r)}function Nn(e,t){var i=e;return i instanceof gi&&(i=i.value()),st(t,(function(e,t){return t.func.apply(t.thisArg,at([e],t.args))}),i)}function Ln(e,t,i){for(var n=-1,o=e.length;++n<o;)var r=r?at(Mi(r,e[n],t,i),Mi(e[n],r,t,i)):e[n];return r&&r.length?In(r,t,i):[]}function Dn(e,t,i){for(var n=-1,o=e.length,r=t.length,a={};++n<o;){var s=n<r?t[n]:void 0;i(a,e[n],s)}return a}function Mn(e){return ea(e)?e:[]}function Pn(e){return"function"==typeof e?e:as}function On(e){return Jr(e)?e:Uo(e)}function Rn(e,t,i){var n=e.length;return i=void 0===i?n:i,!t&&i>=n?e:bn(e,t,i)}function kn(e){var t=new e.constructor(e.byteLength);return new ke(t).set(new ke(e)),t}function Fn(e,t){if(e!==t){var i=void 0!==e,n=null===e,o=e==e,r=ha(e),a=void 0!==t,s=null===t,l=t==t,c=ha(t);if(!s&&!c&&!r&&e>t||r&&a&&l&&!s&&!c||n&&a&&l||!i&&l||!o)return 1;if(!n&&!r&&!c&&e<t||c&&i&&o&&!n&&!r||s&&i&&o||!a&&o||!l)return-1}return 0}function Bn(e,t,i,n){for(var o=-1,r=e.length,a=i.length,s=-1,l=t.length,c=Ut(r-a,0),d=Array(l+c),u=!n;++s<l;)d[s]=t[s];for(;++o<a;)(u||o<r)&&(d[i[o]]=e[o]);for(;c--;)d[s++]=e[o++];return d}function Hn(e,t,i,n){for(var o=-1,r=e.length,a=-1,s=i.length,l=-1,c=t.length,d=Ut(r-s,0),u=Array(d+c),h=!n;++o<d;)u[o]=e[o];for(var p=o;++l<c;)u[p+l]=t[l];for(;++a<s;)(h||o<r)&&(u[p+i[a]]=e[o++]);return u}function Vn(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}function jn(e,t,i,n){i||(i={});for(var o=-1,r=t.length;++o<r;){var a=t[o];Ei(i,a,n?n(i[a],e[a],a,i,e):e[a])}return i}function Un(e,t){return function(i,n){var o=Jr(i)?Je:wi,r=t?t():{};return o(i,e,go(n),r)}}function Wn(e){return Kr((function(t,i){var n=-1,o=i.length,r=o>1?i[o-1]:void 0,a=o>2?i[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,a&&No(i[0],i[1],a)&&(r=o<3?void 0:r,o=1),t=Object(t);++n<o;){var s=i[n];s&&e(t,s,n,r)}return t}))}function Gn(e,t){return function(i,n){if(null==i)return i;if(!Zr(i))return e(i,n);for(var o=i.length,r=t?o:-1,a=Object(i);(t?r--:++r<o)&&!1!==n(a[r],r,a););return i}}function zn(e){return function(t,i,n){for(var o=-1,r=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===i(r[l],l,r))break}return t}}function qn(e){return function(t){t=Ta(t);var i=Le.test(t)?Rt(t):void 0,n=i?i[0]:t.charAt(0),o=i?Rn(i,1).join(""):t.slice(1);return n[e]()+o}}function Kn(e){return function(t){return st(es(qa(t).replace(Ie,"")),e,"")}}function Xn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=Li(e.prototype),n=e.apply(i,t);return aa(n)?n:i}}function Yn(e){return function(t,i,n){var o=Object(t);if(i=go(i,3),!Zr(t))var r=Ra(t);var a=e(r||t,(function(e,t){return r&&(e=o[t=e]),i(e,t,o)}),n);return a>-1?t[r?r[a]:a]:void 0}}function Qn(e){return Kr((function(i){var n=(i=Bi(i,1)).length,o=n,r=fi.prototype.thru;for(e&&i.reverse();o--;){var a=i[o];if("function"!=typeof a)throw new ue(t);if(r&&!s&&"wrapper"==po(a))var s=new fi([],!0)}for(o=s?o:n;++o<n;){var l=po(a=i[o]),c="wrapper"==l?ho(a):void 0;s=c&&Do(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[po(c[0])].apply(s,c[3]):1==a.length&&Do(a)?s[l]():s.thru(a)}return function(){var e=arguments,t=e[0];if(s&&1==e.length&&Jr(t)&&t.length>=200)return s.plant(t).value();for(var o=0,r=n?i[o].apply(this,e):t;++o<n;)r=i[o].call(this,r);return r}}))}function $n(e,t,i,n,o,r,a,s,l,c){var d=128&t,u=1&t,h=2&t,p=24&t,f=512&t,g=h?void 0:Xn(e);return function m(){for(var _=arguments.length,v=Array(_),b=_;b--;)v[b]=arguments[b];if(p)var y=fo(m),C=St(v,y);if(n&&(v=Bn(v,n,o,p)),r&&(v=Hn(v,r,a,p)),_-=C,p&&_<c){var T=Mt(v,y);return oo(e,t,$n,m.placeholder,i,v,T,s,l,c-_)}var E=u?i:this,S=h?E[e]:e;return _=v.length,s?v=Bo(v,s):f&&_>1&&v.reverse(),d&&l<_&&(v.length=l),this&&this!==Xe&&this instanceof m&&(S=g||Xn(S)),S.apply(E,v)}}function Jn(e,t){return function(i,n){return function(e,t,i,n){return ji(e,(function(e,o,r){t(n,i(e),o,r)})),n}(i,e,t(n),{})}}function Zn(e){return function(t,i){var n;if(void 0===t&&void 0===i)return 0;if(void 0!==t&&(n=t),void 0!==i){if(void 0===n)return i;"string"==typeof t||"string"==typeof i?(t=wn(t),i=wn(i)):(t=Sn(t),i=Sn(i)),n=e(t,i)}return n}}function eo(e){return Kr((function(t){return t=1==t.length&&Jr(t[0])?rt(t[0],vt(go())):rt(Bi(t,1,Ao),vt(go())),Kr((function(i){var n=this;return e(t,(function(e){return $e(e,n,i)}))}))}))}function to(e,t){var i=(t=void 0===t?" ":wn(t)).length;if(i<2)return i?mn(t,e):t;var n=mn(t,Ke(e/Ot(t)));return Le.test(t)?Rn(Rt(n),0,e).join(""):n.slice(0,e)}function io(e){return function(t,i,n){return n&&"number"!=typeof n&&No(t,i,n)&&(i=n=void 0),t=(t=ya(t))==t?t:0,void 0===i?(i=t,t=0):i=ya(i)||0,function(e,t,i,n){for(var o=-1,r=Ut(Ke((t-e)/(i||1)),0),a=Array(r);r--;)a[n?r:++o]=e,e+=i;return a}(t,i,n=void 0===n?t<i?1:-1:ya(n)||0,e)}}function no(e){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=ya(t),i=ya(i)),e(t,i)}}function oo(e,t,i,n,o,r,a,s,l,c){var d=8&t;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var u=[e,t,o,d?r:void 0,d?a:void 0,d?void 0:r,d?void 0:a,s,l,c],h=i.apply(void 0,u);return Do(e)&&jo(h,u),h.placeholder=n,h}function ro(e){var t=ce[e];return function(e,i){if(e=ya(e),i=Wt(va(i),292)){var n=(Ta(e)+"e").split("e");return+((n=(Ta(t(n[0]+"e"+(+n[1]+i)))+"e").split("e"))[0]+"e"+(+n[1]-i))}return t(e)}}var ao=Jt&&1/Pt(new Jt([,-0]))[1]==1/0?function(e){return new Jt(e)}:us;function so(e){return function(t){var i=Eo(t);return i==h?Dt(t):i==m?function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=[e,e]})),i}(t):function(e,t){return rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function lo(e,i,n,r,a,s,l,c){var d=2&i;if(!d&&"function"!=typeof e)throw new ue(t);var u=r?r.length:0;if(u||(i&=-97,r=a=void 0),l=void 0===l?l:Ut(va(l),0),c=void 0===c?c:va(c),u-=a?a.length:0,64&i){var h=r,p=a;r=a=void 0}var f=d?void 0:ho(e),g=[e,i,n,r,a,h,p,s,l,c];if(f&&function(e,t){var i=e[1],n=t[1],r=i|n,a=r<131,s=128==n&&8==i||128==n&&256==i&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==i;if(!a&&!s)return e;1&n&&(e[2]=t[2],r|=1&i?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Bn(c,l,t[4]):l,e[4]=c?Mt(e[3],o):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Hn(c,l,t[6]):l,e[6]=c?Mt(e[5],o):t[6]),(l=t[7])&&(e[7]=l),128&n&&(e[8]=null==e[8]?t[8]:Wt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r}(g,f),e=g[0],i=g[1],n=g[2],r=g[3],a=g[4],!(c=g[9]=null==g[9]?d?0:e.length:Ut(g[9]-u,0))&&24&i&&(i&=-25),i&&1!=i)m=8==i||16==i?function(e,t,i){var n=Xn(e);return function o(){for(var r=arguments.length,a=Array(r),s=r,l=fo(o);s--;)a[s]=arguments[s];var c=r<3&&a[0]!==l&&a[r-1]!==l?[]:Mt(a,l);if((r-=c.length)<i)return oo(e,t,$n,o.placeholder,void 0,a,c,void 0,void 0,i-r);var d=this&&this!==Xe&&this instanceof o?n:e;return $e(d,this,a)}}(e,i,c):32!=i&&33!=i||a.length?$n.apply(void 0,g):function(e,t,i,n){var o=1&t,r=Xn(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=n.length,d=Array(c+s),u=this&&this!==Xe&&this instanceof t?r:e;++l<c;)d[l]=n[l];for(;s--;)d[l++]=arguments[++a];return $e(u,o?i:this,d)}}(e,i,n,r);else var m=function(e,t,i){var n=1&t,o=Xn(e);return function t(){var r=this&&this!==Xe&&this instanceof t?o:e;return r.apply(n?i:this,arguments)}}(e,i,n);return(f?vn:jo)(m,g)}function co(e,t,i,n,o,r){var a=2&o,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=r.get(e);if(c)return c==t;var d=-1,u=!0,h=1&o?new bi:void 0;for(r.set(e,t);++d<s;){var p=e[d],f=t[d];if(n)var g=a?n(f,p,d,t,e,r):n(p,f,d,e,t,r);if(void 0!==g){if(g)continue;u=!1;break}if(h){if(!ct(t,(function(e,t){if(!h.has(t)&&(p===e||i(p,e,n,o,r)))return h.add(t)}))){u=!1;break}}else if(p!==f&&!i(p,f,n,o,r)){u=!1;break}}return r.delete(e),u}function uo(e){return zi(e,ka,To)}var ho=ti?function(e){return ti.get(e)}:us;function po(e){for(var t=e.name+"",i=ni[t],n=ve.call(ni,t)?i.length:0;n--;){var o=i[n],r=o.func;if(null==r||r==e)return o.name}return t}function fo(e){return(ve.call(hi,"placeholder")?hi:e).placeholder}function go(){var e=hi.iteratee||ss;return e=e===ss?en:e,arguments.length?e(arguments[0],arguments[1]):e}var mo=hn("length");function _o(e,t){var i=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?i["string"==typeof t?"string":"hash"]:i.map}function vo(e){for(var t=Ra(e),i=t.length;i--;){var n=t[i],o=e[n];t[i]=[n,o,Oo(o)]}return t}function bo(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return Zi(i)?i:void 0}function yo(e){return Bt(Object(e))}function Co(e){return Be(Object(e))}Be||(Co=vs);var To=Be?function(e){for(var t=[];e;)at(t,Co(e)),e=yo(e);return t}:Co;function Eo(e){return Ce.call(e)}function So(e,t,i){for(var n,o=-1,r=(t=Lo(t,e)?[t]:On(t)).length;++o<r;){var a=Wo(t[o]);if(!(n=null!=e&&i(e,a)))break;e=e[a]}return n||!!(r=e?e.length:0)&&ra(r)&&xo(a,r)&&(Jr(e)||ua(e)||$r(e))}function wo(e){var t=e?e.length:void 0;return ra(t)&&(Jr(e)||ua(e)||$r(e))?_t(t,String):null}function Io(e){return Jr(e)||$r(e)}function Ao(e){return Jr(e)&&!(2==e.length&&!na(e[0]))}function xo(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||ne.test(e))&&e>-1&&e%1==0&&e<t}function No(e,t,i){if(!aa(i))return!1;var n=typeof t;return!!("number"==n?Zr(i)&&xo(t,i.length):"string"==n&&t in i)&&Xr(i[t],e)}function Lo(e,t){if(Jr(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!ha(e))||j.test(e)||!V.test(e)||null!=t&&e in Object(t)}function Do(e){var t=po(e),i=hi[t];if("function"!=typeof i||!(t in gi.prototype))return!1;if(e===i)return!0;var n=ho(i);return!!n&&e===n[0]}(Yt&&Eo(new Yt(new ArrayBuffer(1)))!=C||Qt&&Eo(new Qt)!=h||$t&&"[object Promise]"!=Eo($t.resolve())||Jt&&Eo(new Jt)!=m||Zt&&Eo(new Zt)!=b)&&(Eo=function(e){var t=Ce.call(e),i=t==f?e.constructor:void 0,n=i?Go(i):void 0;if(n)switch(n){case oi:return C;case ri:return h;case ai:return"[object Promise]";case si:return m;case li:return b}return t});var Mo=ge?na:bs;function Po(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||pe)}function Oo(e){return e==e&&!aa(e)}function Ro(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}}function ko(e,t,i,n,o,r){return aa(e)&&aa(t)&&sn(e,t,void 0,ko,r.set(t,e)),e}function Fo(e,t){return 1==t.length?e:Gi(e,bn(t,0,-1))}function Bo(e,t){for(var i=e.length,n=Wt(t.length,i),o=Vn(e);n--;){var r=t[n];e[n]=xo(r,i)?o[r]:void 0}return e}var Ho,Vo,jo=(Ho=0,Vo=0,function(e,t){var i=Or(),n=16-(i-Vo);if(Vo=i,n>0){if(++Ho>=150)return e}else Ho=0;return vn(e,t)}),Uo=Ur((function(e){var t=[];return Ta(e).replace(U,(function(e,i,n,o){t.push(n?o.replace(Y,"$1"):i||e)})),t}));function Wo(e){if("string"==typeof e||ha(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Go(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function zo(e){if(e instanceof gi)return e.clone();var t=new fi(e.__wrapped__,e.__chain__);return t.__actions__=Vn(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var qo=Kr((function(e,t){return ea(e)?Mi(e,Bi(t,1,ea,!0)):[]})),Ko=Kr((function(e,t){var i=nr(t);return ea(i)&&(i=void 0),ea(e)?Mi(e,Bi(t,1,ea,!0),go(i)):[]})),Xo=Kr((function(e,t){var i=nr(t);return ea(i)&&(i=void 0),ea(e)?Mi(e,Bi(t,1,ea,!0),void 0,i):[]}));function Yo(e,t,i){var n=e?e.length:0;return n?bn(e,(t=i||void 0===t?1:va(t))<0?0:t,n):[]}function Qo(e,t,i){var n=e?e.length:0;return n?bn(e,0,(t=n-(t=i||void 0===t?1:va(t)))<0?0:t):[]}function $o(e,t,i){var n=e?e.length:0;if(!n)return-1;var o=null==i?0:va(i);return o<0&&(o=Ut(n+o,0)),ut(e,go(t,3),o)}function Jo(e,t,i){var n=e?e.length:0;if(!n)return-1;var o=n-1;return void 0!==i&&(o=va(i),o=i<0?Ut(n+o,0):Wt(o,n-1)),ut(e,go(t,3),o,!0)}function Zo(e){return e&&e.length?e[0]:void 0}var er=Kr((function(e){var t=rt(e,Mn);return t.length&&t[0]===e[0]?Yi(t):[]})),tr=Kr((function(e){var t=nr(e),i=rt(e,Mn);return t===nr(i)?t=void 0:i.pop(),i.length&&i[0]===e[0]?Yi(i,go(t)):[]})),ir=Kr((function(e){var t=nr(e),i=rt(e,Mn);return t===nr(i)?t=void 0:i.pop(),i.length&&i[0]===e[0]?Yi(i,void 0,t):[]}));function nr(e){var t=e?e.length:0;return t?e[t-1]:void 0}var or=Kr(rr);function rr(e,t){return e&&e.length&&t&&t.length?pn(e,t):e}var ar=Kr((function(e,t){t=Bi(t,1);var i=e?e.length:0,n=Ai(e,t);return fn(e,rt(t,(function(e){return xo(e,i)?+e:e})).sort(Fn)),n}));function sr(e){return e?Kt.call(e):e}var lr=Kr((function(e){return In(Bi(e,1,ea,!0))})),cr=Kr((function(e){var t=nr(e);return ea(t)&&(t=void 0),In(Bi(e,1,ea,!0),go(t))})),dr=Kr((function(e){var t=nr(e);return ea(t)&&(t=void 0),In(Bi(e,1,ea,!0),void 0,t)}));function ur(e){if(!e||!e.length)return[];var t=0;return e=it(e,(function(e){if(ea(e))return t=Ut(e.length,t),!0})),_t(t,(function(t){return rt(e,hn(t))}))}function hr(e,t){if(!e||!e.length)return[];var i=ur(e);return null==t?i:rt(i,(function(e){return $e(t,void 0,e)}))}var pr=Kr((function(e,t){return ea(e)?Mi(e,t):[]})),fr=Kr((function(e){return Ln(it(e,ea))})),gr=Kr((function(e){var t=nr(e);return ea(t)&&(t=void 0),Ln(it(e,ea),go(t))})),mr=Kr((function(e){var t=nr(e);return ea(t)&&(t=void 0),Ln(it(e,ea),void 0,t)})),_r=Kr(ur),vr=Kr((function(e){var t=e.length,i=t>1?e[t-1]:void 0;return i="function"==typeof i?(e.pop(),i):void 0,hr(e,i)}));function br(e){var t=hi(e);return t.__chain__=!0,t}function yr(e,t){return t(e)}var Cr=Kr((function(e){var t=(e=Bi(e,1)).length,i=t?e[0]:0,n=this.__wrapped__,o=function(t){return Ai(t,e)};return!(t>1||this.__actions__.length)&&n instanceof gi&&xo(i)?((n=n.slice(i,+i+(t?1:0))).__actions__.push({func:yr,args:[o],thisArg:void 0}),new fi(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)})),Tr=Un((function(e,t,i){ve.call(e,i)?++e[i]:e[i]=1})),Er=Yn($o),Sr=Yn(Jo);function wr(e,t){return(Jr(e)?Ze:Pi)(e,go(t,3))}function Ir(e,t){return(Jr(e)?et:Oi)(e,go(t,3))}var Ar=Un((function(e,t,i){ve.call(e,i)?e[i].push(t):e[i]=[t]})),xr=Kr((function(e,t,i){var n=-1,o="function"==typeof t,r=Lo(t),a=Zr(e)?Array(e.length):[];return Pi(e,(function(e){var s=o?t:r&&null!=e?e[t]:void 0;a[++n]=s?$e(s,e,i):Qi(e,t,i)})),a})),Nr=Un((function(e,t,i){e[i]=t}));function Lr(e,t){return(Jr(e)?rt:on)(e,go(t,3))}var Dr=Un((function(e,t,i){e[i?0:1].push(t)}),(function(){return[[],[]]}));function Mr(e,t,i){var n=-1,o=ma(e),r=o.length,a=r-1;for(t=(i?No(e,t,i):void 0===t)?1:xi(va(t),0,r);++n<t;){var s=gn(n,a),l=o[s];o[s]=o[n],o[n]=l}return o.length=t,o}var Pr=Kr((function(e,t){if(null==e)return[];var i=t.length;return i>1&&No(e,t[0],t[1])?t=[]:i>2&&No(t[0],t[1],t[2])&&(t=[t[0]]),cn(e,t=1==t.length&&Jr(t[0])?t[0]:Bi(t,1,Ao),[])}));function Or(){return se.now()}function Rr(e,t,i){return t=i?void 0:t,lo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function kr(e,i){var n;if("function"!=typeof i)throw new ue(t);return e=va(e),function(){return--e>0&&(n=i.apply(this,arguments)),e<=1&&(i=void 0),n}}var Fr=Kr((function(e,t,i){var n=1;if(i.length){var o=Mt(i,fo(Fr));n|=32}return lo(e,n,t,i,o)})),Br=Kr((function(e,t,i){var n=3;if(i.length){var o=Mt(i,fo(Br));n|=32}return lo(t,n,e,i,o)}));function Hr(e,i,n){var o,r,a,s,l,c,d=0,u=!1,h=!1,p=!0;if("function"!=typeof e)throw new ue(t);function f(t){var i=o,n=r;return o=r=void 0,d=t,s=e.apply(n,i)}function g(e){return d=e,l=qe(_,i),u?f(e):s}function m(e){var t=e-c;return void 0===c||t>=i||t<0||h&&e-d>=a}function _(){var e=Or();if(m(e))return v(e);l=qe(_,function(e){var t=i-(e-c);return h?Wt(t,a-(e-d)):t}(e))}function v(e){return l=void 0,p&&o?f(e):(o=r=void 0,s)}function b(){var e=Or(),t=m(e);if(o=arguments,r=this,c=e,t){if(void 0===l)return g(c);if(h)return l=qe(_,i),f(c)}return void 0===l&&(l=qe(_,i)),s}return i=ya(i)||0,aa(n)&&(u=!!n.leading,a=(h="maxWait"in n)?Ut(ya(n.maxWait)||0,i):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){d=0,o=c=r=l=void 0},b.flush=function(){return void 0===l?s:v(Or())},b}var Vr=Kr((function(e,t){return Di(e,1,t)})),jr=Kr((function(e,t,i){return Di(e,ya(t)||0,i)}));function Ur(e,i){if("function"!=typeof e||i&&"function"!=typeof i)throw new ue(t);var n=function(){var t=arguments,o=i?i.apply(this,t):t[0],r=n.cache;if(r.has(o))return r.get(o);var a=e.apply(this,t);return n.cache=r.set(o,a),a};return n.cache=new(Ur.Cache||vi),n}Ur.Cache=vi;var Wr=Kr((function(e,t){var i=(t=1==t.length&&Jr(t[0])?rt(t[0],vt(go())):rt(Bi(t,1,Ao),vt(go()))).length;return Kr((function(n){for(var o=-1,r=Wt(n.length,i);++o<r;)n[o]=t[o].call(this,n[o]);return $e(e,this,n)}))})),Gr=Kr((function(e,t){return lo(e,32,void 0,t,Mt(t,fo(Gr)))})),zr=Kr((function(e,t){return lo(e,64,void 0,t,Mt(t,fo(zr)))})),qr=Kr((function(e,t){return lo(e,256,void 0,void 0,void 0,Bi(t,1))}));function Kr(e,i){if("function"!=typeof e)throw new ue(t);return i=Ut(void 0===i?e.length-1:va(i),0),function(){for(var t=arguments,n=-1,o=Ut(t.length-i,0),r=Array(o);++n<o;)r[n]=t[i+n];switch(i){case 0:return e.call(this,r);case 1:return e.call(this,t[0],r);case 2:return e.call(this,t[0],t[1],r)}var a=Array(i+1);for(n=-1;++n<i;)a[n]=t[n];return a[i]=r,$e(e,this,a)}}function Xr(e,t){return e===t||e!=e&&t!=t}var Yr=no(qi),Qr=no((function(e,t){return e>=t}));function $r(e){return ea(e)&&ve.call(e,"callee")&&(!We.call(e,"callee")||Ce.call(e)==r)}var Jr=Array.isArray;function Zr(e){return null!=e&&ra(mo(e))&&!na(e)}function ea(e){return sa(e)&&Zr(e)}var ta=Se?function(e){return e instanceof Se}:bs;function ia(e){return!!sa(e)&&(Ce.call(e)==c||"string"==typeof e.message&&"string"==typeof e.name)}function na(e){var t=aa(e)?Ce.call(e):"";return t==d||t==u}function oa(e){return"number"==typeof e&&e==va(e)}function ra(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function aa(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function sa(e){return!!e&&"object"==typeof e}function la(e){return"number"==typeof e||sa(e)&&Ce.call(e)==p}function ca(e){if(!sa(e)||Ce.call(e)!=f||Nt(e))return!1;var t=yo(e);if(null===t)return!0;var i=ve.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&_e.call(i)==ye}function da(e){return aa(e)&&Ce.call(e)==g}function ua(e){return"string"==typeof e||!Jr(e)&&sa(e)&&Ce.call(e)==_}function ha(e){return"symbol"==typeof e||sa(e)&&Ce.call(e)==v}function pa(e){return sa(e)&&ra(e.length)&&!!Oe[Ce.call(e)]}var fa=no(nn),ga=no((function(e,t){return e<=t}));function ma(e){if(!e)return[];if(Zr(e))return ua(e)?Rt(e):Vn(e);if(He&&e[He])return Lt(e[He]());var t=Eo(e);return(t==h?Dt:t==m?Pt:Wa)(e)}function _a(e){return e?(e=ya(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function va(e){var t=_a(e),i=t%1;return t==t?i?t-i:t:0}function ba(e){return e?xi(va(e),0,4294967295):0}function ya(e){if("number"==typeof e)return e;if(ha(e))return NaN;if(aa(e)){var t=na(e.valueOf)?e.valueOf():e;e=aa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(z,"");var i=ee.test(e);return i||ie.test(e)?je(e.slice(2),i?2:8):Z.test(e)?NaN:+e}function Ca(e){return jn(e,ka(e))}function Ta(e){return null==e?"":wn(e)}var Ea=Wn((function(e,t){if(ii||Po(t)||Zr(t))jn(t,Ra(t),e);else for(var i in t)ve.call(t,i)&&Ei(e,i,t[i])})),Sa=Wn((function(e,t){if(ii||Po(t)||Zr(t))jn(t,ka(t),e);else for(var i in t)Ei(e,i,t[i])})),wa=Wn((function(e,t,i,n){jn(t,ka(t),e,n)})),Ia=Wn((function(e,t,i,n){jn(t,Ra(t),e,n)})),Aa=Kr((function(e,t){return Ai(e,Bi(t,1))})),xa=Kr((function(e){return e.push(void 0,Ci),$e(wa,void 0,e)})),Na=Kr((function(e){return e.push(void 0,ko),$e(Ba,void 0,e)}));function La(e,t,i){var n=null==e?void 0:Gi(e,t);return void 0===n?i:n}function Da(e,t){return null!=e&&So(e,t,Xi)}var Ma=Jn((function(e,t,i){e[t]=i}),ns(as)),Pa=Jn((function(e,t,i){ve.call(e,t)?e[t].push(i):e[t]=[i]}),go),Oa=Kr(Qi);function Ra(e){var t=Po(e);if(!t&&!Zr(e))return function(e){return jt(Object(e))}(e);var i=wo(e),n=!!i,o=i||[],r=o.length;for(var a in e)!Ki(e,a)||n&&("length"==a||xo(a,r))||t&&"constructor"==a||o.push(a);return o}function ka(e){for(var t=-1,i=Po(e),n=tn(e),o=n.length,r=wo(e),a=!!r,s=r||[],l=s.length;++t<o;){var c=n[t];a&&("length"==c||xo(c,l))||"constructor"==c&&(i||!ve.call(e,c))||s.push(c)}return s}var Fa=Wn((function(e,t,i){sn(e,t,i)})),Ba=Wn((function(e,t,i,n){sn(e,t,i,n)})),Ha=Kr((function(e,t){return null==e?{}:(t=rt(Bi(t,1),Wo),dn(e,Mi(uo(e),t)))})),Va=Kr((function(e,t){return null==e?{}:dn(e,rt(Bi(t,1),Wo))})),ja=so(Ra),Ua=so(ka);function Wa(e){return e?bt(e,Ra(e)):[]}var Ga=Kn((function(e,t,i){return t=t.toLowerCase(),e+(i?za(t):t)}));function za(e){return Za(Ta(e).toLowerCase())}function qa(e){return(e=Ta(e))&&e.replace(oe,wt).replace(Ae,"")}var Ka=Kn((function(e,t,i){return e+(i?"-":"")+t.toLowerCase()})),Xa=Kn((function(e,t,i){return e+(i?" ":"")+t.toLowerCase()})),Ya=qn("toLowerCase"),Qa=Kn((function(e,t,i){return e+(i?"_":"")+t.toLowerCase()})),$a=Kn((function(e,t,i){return e+(i?" ":"")+Za(t)})),Ja=Kn((function(e,t,i){return e+(i?" ":"")+t.toUpperCase()})),Za=qn("toUpperCase");function es(e,t,i){return e=Ta(e),void 0===(t=i?void 0:t)&&(t=De.test(e)?Ne:X),e.match(t)||[]}var ts=Kr((function(e,t){try{return $e(e,void 0,t)}catch(e){return ia(e)?e:new le(e)}})),is=Kr((function(e,t){return Ze(Bi(t,1),(function(t){t=Wo(t),e[t]=Fr(e[t],e)})),e}));function ns(e){return function(){return e}}var os=Qn(),rs=Qn(!0);function as(e){return e}function ss(e){return en("function"==typeof e?e:Ni(e,!0))}var ls=Kr((function(e,t){return function(i){return Qi(i,e,t)}})),cs=Kr((function(e,t){return function(i){return Qi(e,i,t)}}));function ds(e,t,i){var n=Ra(t),o=Wi(t,n);null!=i||aa(t)&&(o.length||!n.length)||(i=t,t=e,e=this,o=Wi(t,Ra(t)));var r=!(aa(i)&&"chain"in i&&!i.chain),a=na(e);return Ze(o,(function(i){var n=t[i];e[i]=n,a&&(e.prototype[i]=function(){var t=this.__chain__;if(r||t){var i=e(this.__wrapped__),o=i.__actions__=Vn(this.__actions__);return o.push({func:n,args:arguments,thisArg:e}),i.__chain__=t,i}return n.apply(e,at([this.value()],arguments))})})),e}function us(){}var hs=eo(rt),ps=eo(tt),fs=eo(ct);function gs(e){return Lo(e)?hn(Wo(e)):function(e){return function(t){return Gi(t,e)}}(e)}var ms=io(),_s=io(!0);function vs(){return[]}function bs(){return!1}var ys,Cs=Zn((function(e,t){return e+t})),Ts=ro("ceil"),Es=Zn((function(e,t){return e/t})),Ss=ro("floor"),ws=Zn((function(e,t){return e*t})),Is=ro("round"),As=Zn((function(e,t){return e-t}));return hi.after=function(e,i){if("function"!=typeof i)throw new ue(t);return e=va(e),function(){if(--e<1)return i.apply(this,arguments)}},hi.ary=Rr,hi.assign=Ea,hi.assignIn=Sa,hi.assignInWith=wa,hi.assignWith=Ia,hi.at=Aa,hi.before=kr,hi.bind=Fr,hi.bindAll=is,hi.bindKey=Br,hi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Jr(e)?e:[e]},hi.chain=br,hi.chunk=function(e,t,i){t=(i?No(e,t,i):void 0===t)?1:Ut(va(t),0);var n=e?e.length:0;if(!n||t<1)return[];for(var o=0,r=0,a=Array(Ke(n/t));o<n;)a[r++]=bn(e,o,o+=t);return a},hi.compact=function(e){for(var t=-1,i=e?e.length:0,n=0,o=[];++t<i;){var r=e[t];r&&(o[n++]=r)}return o},hi.concat=function(){for(var e=arguments.length,t=Array(e?e-1:0),i=arguments[0],n=e;n--;)t[n-1]=arguments[n];return e?at(Jr(i)?Vn(i):[i],Bi(t,1)):[]},hi.cond=function(e){var i=e?e.length:0,n=go();return e=i?rt(e,(function(e){if("function"!=typeof e[1])throw new ue(t);return[n(e[0]),e[1]]})):[],Kr((function(t){for(var n=-1;++n<i;){var o=e[n];if($e(o[0],this,t))return $e(o[1],this,t)}}))},hi.conforms=function(e){return function(e){var t=Ra(e),i=t.length;return function(n){if(null==n)return!i;for(var o=i;o--;){var r=t[o],a=e[r],s=n[r];if(void 0===s&&!(r in Object(n))||!a(s))return!1}return!0}}(Ni(e,!0))},hi.constant=ns,hi.countBy=Tr,hi.create=function(e,t){var i=Li(e);return t?Ii(i,t):i},hi.curry=function e(t,i,n){var o=lo(t,8,void 0,void 0,void 0,void 0,void 0,i=n?void 0:i);return o.placeholder=e.placeholder,o},hi.curryRight=function e(t,i,n){var o=lo(t,16,void 0,void 0,void 0,void 0,void 0,i=n?void 0:i);return o.placeholder=e.placeholder,o},hi.debounce=Hr,hi.defaults=xa,hi.defaultsDeep=Na,hi.defer=Vr,hi.delay=jr,hi.difference=qo,hi.differenceBy=Ko,hi.differenceWith=Xo,hi.drop=Yo,hi.dropRight=Qo,hi.dropRightWhile=function(e,t){return e&&e.length?xn(e,go(t,3),!0,!0):[]},hi.dropWhile=function(e,t){return e&&e.length?xn(e,go(t,3),!0):[]},hi.fill=function(e,t,i,n){var o=e?e.length:0;return o?(i&&"number"!=typeof i&&No(e,t,i)&&(i=0,n=o),function(e,t,i,n){var o=e.length;for((i=va(i))<0&&(i=-i>o?0:o+i),(n=void 0===n||n>o?o:va(n))<0&&(n+=o),n=i>n?0:ba(n);i<n;)e[i++]=t;return e}(e,t,i,n)):[]},hi.filter=function(e,t){return(Jr(e)?it:Fi)(e,go(t,3))},hi.flatMap=function(e,t){return Bi(Lr(e,t),1)},hi.flatMapDeep=function(e,t){return Bi(Lr(e,t),1/0)},hi.flatMapDepth=function(e,t,i){return i=void 0===i?1:va(i),Bi(Lr(e,t),i)},hi.flatten=function(e){return e&&e.length?Bi(e,1):[]},hi.flattenDeep=function(e){return e&&e.length?Bi(e,1/0):[]},hi.flattenDepth=function(e,t){return e&&e.length?Bi(e,t=void 0===t?1:va(t)):[]},hi.flip=function(e){return lo(e,512)},hi.flow=os,hi.flowRight=rs,hi.fromPairs=function(e){for(var t=-1,i=e?e.length:0,n={};++t<i;){var o=e[t];n[o[0]]=o[1]}return n},hi.functions=function(e){return null==e?[]:Wi(e,Ra(e))},hi.functionsIn=function(e){return null==e?[]:Wi(e,ka(e))},hi.groupBy=Ar,hi.initial=function(e){return Qo(e,1)},hi.intersection=er,hi.intersectionBy=tr,hi.intersectionWith=ir,hi.invert=Ma,hi.invertBy=Pa,hi.invokeMap=xr,hi.iteratee=ss,hi.keyBy=Nr,hi.keys=Ra,hi.keysIn=ka,hi.map=Lr,hi.mapKeys=function(e,t){var i={};return t=go(t,3),ji(e,(function(e,n,o){i[t(e,n,o)]=e})),i},hi.mapValues=function(e,t){var i={};return t=go(t,3),ji(e,(function(e,n,o){i[n]=t(e,n,o)})),i},hi.matches=function(e){return rn(Ni(e,!0))},hi.matchesProperty=function(e,t){return an(e,Ni(t,!0))},hi.memoize=Ur,hi.merge=Fa,hi.mergeWith=Ba,hi.method=ls,hi.methodOf=cs,hi.mixin=ds,hi.negate=function(e){if("function"!=typeof e)throw new ue(t);return function(){return!e.apply(this,arguments)}},hi.nthArg=function(e){return e=va(e),Kr((function(t){return ln(t,e)}))},hi.omit=Ha,hi.omitBy=function(e,t){return t=go(t),un(e,(function(e,i){return!t(e,i)}))},hi.once=function(e){return kr(2,e)},hi.orderBy=function(e,t,i,n){return null==e?[]:(Jr(t)||(t=null==t?[]:[t]),Jr(i=n?void 0:i)||(i=null==i?[]:[i]),cn(e,t,i))},hi.over=hs,hi.overArgs=Wr,hi.overEvery=ps,hi.overSome=fs,hi.partial=Gr,hi.partialRight=zr,hi.partition=Dr,hi.pick=Va,hi.pickBy=function(e,t){return null==e?{}:un(e,go(t))},hi.property=gs,hi.propertyOf=function(e){return function(t){return null==e?void 0:Gi(e,t)}},hi.pull=or,hi.pullAll=rr,hi.pullAllBy=function(e,t,i){return e&&e.length&&t&&t.length?pn(e,t,go(i)):e},hi.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?pn(e,t,void 0,i):e},hi.pullAt=ar,hi.range=ms,hi.rangeRight=_s,hi.rearg=qr,hi.reject=function(e,t){var i=Jr(e)?it:Fi;return t=go(t,3),i(e,(function(e,i,n){return!t(e,i,n)}))},hi.remove=function(e,t){var i=[];if(!e||!e.length)return i;var n=-1,o=[],r=e.length;for(t=go(t,3);++n<r;){var a=e[n];t(a,n,e)&&(i.push(a),o.push(n))}return fn(e,o),i},hi.rest=Kr,hi.reverse=sr,hi.sampleSize=Mr,hi.set=function(e,t,i){return null==e?e:_n(e,t,i)},hi.setWith=function(e,t,i,n){return n="function"==typeof n?n:void 0,null==e?e:_n(e,t,i,n)},hi.shuffle=function(e){return Mr(e,4294967295)},hi.slice=function(e,t,i){var n=e?e.length:0;return n?(i&&"number"!=typeof i&&No(e,t,i)?(t=0,i=n):(t=null==t?0:va(t),i=void 0===i?n:va(i)),bn(e,t,i)):[]},hi.sortBy=Pr,hi.sortedUniq=function(e){return e&&e.length?En(e):[]},hi.sortedUniqBy=function(e,t){return e&&e.length?En(e,go(t)):[]},hi.split=function(e,t,i){return i&&"number"!=typeof i&&No(e,t,i)&&(t=i=void 0),(i=void 0===i?4294967295:i>>>0)?(e=Ta(e))&&("string"==typeof t||null!=t&&!da(t))&&""==(t=wn(t))&&Le.test(e)?Rn(Rt(e),0,i):Xt.call(e,t,i):[]},hi.spread=function(e,i){if("function"!=typeof e)throw new ue(t);return i=void 0===i?0:Ut(va(i),0),Kr((function(t){var n=t[i],o=Rn(t,0,i);return n&&at(o,n),$e(e,this,o)}))},hi.tail=function(e){return Yo(e,1)},hi.take=function(e,t,i){return e&&e.length?bn(e,0,(t=i||void 0===t?1:va(t))<0?0:t):[]},hi.takeRight=function(e,t,i){var n=e?e.length:0;return n?bn(e,(t=n-(t=i||void 0===t?1:va(t)))<0?0:t,n):[]},hi.takeRightWhile=function(e,t){return e&&e.length?xn(e,go(t,3),!1,!0):[]},hi.takeWhile=function(e,t){return e&&e.length?xn(e,go(t,3)):[]},hi.tap=function(e,t){return t(e),e},hi.throttle=function(e,i,n){var o=!0,r=!0;if("function"!=typeof e)throw new ue(t);return aa(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),Hr(e,i,{leading:o,maxWait:i,trailing:r})},hi.thru=yr,hi.toArray=ma,hi.toPairs=ja,hi.toPairsIn=Ua,hi.toPath=function(e){return Jr(e)?rt(e,Wo):ha(e)?[e]:Vn(Uo(e))},hi.toPlainObject=Ca,hi.transform=function(e,t,i){var n=Jr(e)||pa(e);if(t=go(t,4),null==i)if(n||aa(e)){var o=e.constructor;i=n?Jr(e)?new o:[]:na(o)?Li(yo(e)):{}}else i={};return(n?Ze:ji)(e,(function(e,n,o){return t(i,e,n,o)})),i},hi.unary=function(e){return Rr(e,1)},hi.union=lr,hi.unionBy=cr,hi.unionWith=dr,hi.uniq=function(e){return e&&e.length?In(e):[]},hi.uniqBy=function(e,t){return e&&e.length?In(e,go(t)):[]},hi.uniqWith=function(e,t){return e&&e.length?In(e,void 0,t):[]},hi.unset=function(e,t){return null==e||function(e,t){e=Fo(e,t=Lo(t,e)?[t]:On(t));var i=Wo(nr(t));return!(null!=e&&Ki(e,i))||delete e[i]}(e,t)},hi.unzip=ur,hi.unzipWith=hr,hi.update=function(e,t,i){return null==e?e:An(e,t,Pn(i))},hi.updateWith=function(e,t,i,n){return n="function"==typeof n?n:void 0,null==e?e:An(e,t,Pn(i),n)},hi.values=Wa,hi.valuesIn=function(e){return null==e?[]:bt(e,ka(e))},hi.without=pr,hi.words=es,hi.wrap=function(e,t){return Gr(t=null==t?as:t,e)},hi.xor=fr,hi.xorBy=gr,hi.xorWith=mr,hi.zip=_r,hi.zipObject=function(e,t){return Dn(e||[],t||[],Ei)},hi.zipObjectDeep=function(e,t){return Dn(e||[],t||[],_n)},hi.zipWith=vr,hi.entries=ja,hi.entriesIn=Ua,hi.extend=Sa,hi.extendWith=wa,ds(hi,hi),hi.add=Cs,hi.attempt=ts,hi.camelCase=Ga,hi.capitalize=za,hi.ceil=Ts,hi.clamp=function(e,t,i){return void 0===i&&(i=t,t=void 0),void 0!==i&&(i=(i=ya(i))==i?i:0),void 0!==t&&(t=(t=ya(t))==t?t:0),xi(ya(e),t,i)},hi.clone=function(e){return Ni(e,!1,!0)},hi.cloneDeep=function(e){return Ni(e,!0,!0)},hi.cloneDeepWith=function(e,t){return Ni(e,!0,!0,t)},hi.cloneWith=function(e,t){return Ni(e,!1,!0,t)},hi.deburr=qa,hi.divide=Es,hi.endsWith=function(e,t,i){e=Ta(e),t=wn(t);var n=e.length;return i=void 0===i?n:xi(va(i),0,n),(i-=t.length)>=0&&e.indexOf(t,i)==i},hi.eq=Xr,hi.escape=function(e){return(e=Ta(e))&&k.test(e)?e.replace(O,It):e},hi.escapeRegExp=function(e){return(e=Ta(e))&&G.test(e)?e.replace(W,"\\$&"):e},hi.every=function(e,t,i){var n=Jr(e)?tt:Ri;return i&&No(e,t,i)&&(t=void 0),n(e,go(t,3))},hi.find=Er,hi.findIndex=$o,hi.findKey=function(e,t){return dt(e,go(t,3),ji)},hi.findLast=Sr,hi.findLastIndex=Jo,hi.findLastKey=function(e,t){return dt(e,go(t,3),Ui)},hi.floor=Ss,hi.forEach=wr,hi.forEachRight=Ir,hi.forIn=function(e,t){return null==e?e:Hi(e,go(t,3),ka)},hi.forInRight=function(e,t){return null==e?e:Vi(e,go(t,3),ka)},hi.forOwn=function(e,t){return e&&ji(e,go(t,3))},hi.forOwnRight=function(e,t){return e&&Ui(e,go(t,3))},hi.get=La,hi.gt=Yr,hi.gte=Qr,hi.has=function(e,t){return null!=e&&So(e,t,Ki)},hi.hasIn=Da,hi.head=Zo,hi.identity=as,hi.includes=function(e,t,i,n){e=Zr(e)?e:Wa(e),i=i&&!n?va(i):0;var o=e.length;return i<0&&(i=Ut(o+i,0)),ua(e)?i<=o&&e.indexOf(t,i)>-1:!!o&&ht(e,t,i)>-1},hi.indexOf=function(e,t,i){var n=e?e.length:0;if(!n)return-1;var o=null==i?0:va(i);return o<0&&(o=Ut(n+o,0)),ht(e,t,o)},hi.inRange=function(e,t,i){return t=ya(t)||0,void 0===i?(i=t,t=0):i=ya(i)||0,function(e,t,i){return e>=Wt(t,i)&&e<Ut(t,i)}(e=ya(e),t,i)},hi.invoke=Oa,hi.isArguments=$r,hi.isArray=Jr,hi.isArrayBuffer=function(e){return sa(e)&&Ce.call(e)==y},hi.isArrayLike=Zr,hi.isArrayLikeObject=ea,hi.isBoolean=function(e){return!0===e||!1===e||sa(e)&&Ce.call(e)==s},hi.isBuffer=ta,hi.isDate=function(e){return sa(e)&&Ce.call(e)==l},hi.isElement=function(e){return!!e&&1===e.nodeType&&sa(e)&&!ca(e)},hi.isEmpty=function(e){if(Zr(e)&&(Jr(e)||ua(e)||na(e.splice)||$r(e)||ta(e)))return!e.length;if(sa(e)){var t=Eo(e);if(t==h||t==m)return!e.size}for(var i in e)if(ve.call(e,i))return!1;return!(ii&&Ra(e).length)},hi.isEqual=function(e,t){return $i(e,t)},hi.isEqualWith=function(e,t,i){var n=(i="function"==typeof i?i:void 0)?i(e,t):void 0;return void 0===n?$i(e,t,i):!!n},hi.isError=ia,hi.isFinite=function(e){return"number"==typeof e&&Ht(e)},hi.isFunction=na,hi.isInteger=oa,hi.isLength=ra,hi.isMap=function(e){return sa(e)&&Eo(e)==h},hi.isMatch=function(e,t){return e===t||Ji(e,t,vo(t))},hi.isMatchWith=function(e,t,i){return i="function"==typeof i?i:void 0,Ji(e,t,vo(t),i)},hi.isNaN=function(e){return la(e)&&e!=+e},hi.isNative=function(e){if(Mo(e))throw new le("This method is not supported with `core-js`. Try https://github.com/es-shims.");return Zi(e)},hi.isNil=function(e){return null==e},hi.isNull=function(e){return null===e},hi.isNumber=la,hi.isObject=aa,hi.isObjectLike=sa,hi.isPlainObject=ca,hi.isRegExp=da,hi.isSafeInteger=function(e){return oa(e)&&e>=-9007199254740991&&e<=9007199254740991},hi.isSet=function(e){return sa(e)&&Eo(e)==m},hi.isString=ua,hi.isSymbol=ha,hi.isTypedArray=pa,hi.isUndefined=function(e){return void 0===e},hi.isWeakMap=function(e){return sa(e)&&Eo(e)==b},hi.isWeakSet=function(e){return sa(e)&&"[object WeakSet]"==Ce.call(e)},hi.join=function(e,t){return e?Vt.call(e,t):""},hi.kebabCase=Ka,hi.last=nr,hi.lastIndexOf=function(e,t,i){var n=e?e.length:0;if(!n)return-1;var o=n;if(void 0!==i&&(o=((o=va(i))<0?Ut(n+o,0):Wt(o,n-1))+1),t!=t)return xt(e,o-1,!0);for(;o--;)if(e[o]===t)return o;return-1},hi.lowerCase=Xa,hi.lowerFirst=Ya,hi.lt=fa,hi.lte=ga,hi.max=function(e){return e&&e.length?ki(e,as,qi):void 0},hi.maxBy=function(e,t){return e&&e.length?ki(e,go(t),qi):void 0},hi.mean=function(e){return ft(e,as)},hi.meanBy=function(e,t){return ft(e,go(t))},hi.min=function(e){return e&&e.length?ki(e,as,nn):void 0},hi.minBy=function(e,t){return e&&e.length?ki(e,go(t),nn):void 0},hi.stubArray=vs,hi.stubFalse=bs,hi.stubObject=function(){return{}},hi.stubString=function(){return""},hi.stubTrue=function(){return!0},hi.multiply=ws,hi.nth=function(e,t){return e&&e.length?ln(e,va(t)):void 0},hi.noConflict=function(){return Xe._===this&&(Xe._=Te),this},hi.noop=us,hi.now=Or,hi.pad=function(e,t,i){e=Ta(e);var n=(t=va(t))?Ot(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return to(Et(o),i)+e+to(Ke(o),i)},hi.padEnd=function(e,t,i){e=Ta(e);var n=(t=va(t))?Ot(e):0;return t&&n<t?e+to(t-n,i):e},hi.padStart=function(e,t,i){e=Ta(e);var n=(t=va(t))?Ot(e):0;return t&&n<t?to(t-n,i)+e:e},hi.parseInt=function(e,t,i){return i||null==t?t=0:t&&(t=+t),e=Ta(e).replace(z,""),Gt(e,t||(J.test(e)?16:10))},hi.random=function(e,t,i){if(i&&"boolean"!=typeof i&&No(e,t,i)&&(t=i=void 0),void 0===i&&("boolean"==typeof t?(i=t,t=void 0):"boolean"==typeof e&&(i=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ya(e)||0,void 0===t?(t=e,e=0):t=ya(t)||0),e>t){var n=e;e=t,t=n}if(i||e%1||t%1){var o=zt();return Wt(e+o*(t-e+Ve("1e-"+((o+"").length-1))),t)}return gn(e,t)},hi.reduce=function(e,t,i){var n=Jr(e)?st:gt,o=arguments.length<3;return n(e,go(t,4),i,o,Pi)},hi.reduceRight=function(e,t,i){var n=Jr(e)?lt:gt,o=arguments.length<3;return n(e,go(t,4),i,o,Oi)},hi.repeat=function(e,t,i){return t=(i?No(e,t,i):void 0===t)?1:va(t),mn(Ta(e),t)},hi.replace=function(){var e=arguments,t=Ta(e[0]);return e.length<3?t:qt.call(t,e[1],e[2])},hi.result=function(e,t,i){var n=-1,o=(t=Lo(t,e)?[t]:On(t)).length;for(o||(e=void 0,o=1);++n<o;){var r=null==e?void 0:e[Wo(t[n])];void 0===r&&(n=o,r=i),e=na(r)?r.call(e):r}return e},hi.round=Is,hi.runInContext=e,hi.sample=function(e){var t=Zr(e)?e:Wa(e),i=t.length;return i>0?t[gn(0,i-1)]:void 0},hi.size=function(e){if(null==e)return 0;if(Zr(e)){var t=e.length;return t&&ua(e)?Ot(e):t}if(sa(e)){var i=Eo(e);if(i==h||i==m)return e.size}return Ra(e).length},hi.snakeCase=Qa,hi.some=function(e,t,i){var n=Jr(e)?ct:yn;return i&&No(e,t,i)&&(t=void 0),n(e,go(t,3))},hi.sortedIndex=function(e,t){return Cn(e,t)},hi.sortedIndexBy=function(e,t,i){return Tn(e,t,go(i))},hi.sortedIndexOf=function(e,t){var i=e?e.length:0;if(i){var n=Cn(e,t);if(n<i&&Xr(e[n],t))return n}return-1},hi.sortedLastIndex=function(e,t){return Cn(e,t,!0)},hi.sortedLastIndexBy=function(e,t,i){return Tn(e,t,go(i),!0)},hi.sortedLastIndexOf=function(e,t){if(e&&e.length){var i=Cn(e,t,!0)-1;if(Xr(e[i],t))return i}return-1},hi.startCase=$a,hi.startsWith=function(e,t,i){return e=Ta(e),i=xi(va(i),0,e.length),e.lastIndexOf(wn(t),i)==i},hi.subtract=As,hi.sum=function(e){return e&&e.length?mt(e,as):0},hi.sumBy=function(e,t){return e&&e.length?mt(e,go(t)):0},hi.template=function(e,t,i){var n=hi.templateSettings;i&&No(e,t,i)&&(t=void 0),e=Ta(e),t=wa({},t,n,Ci);var o,r,a=wa({},t.imports,n.imports,Ci),s=Ra(a),l=bt(a,s),c=0,d=t.interpolate||re,u="__p += '",h=de((t.escape||re).source+"|"+d.source+"|"+(d===H?Q:re).source+"|"+(t.evaluate||re).source+"|$","g"),p="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Pe+"]")+"\n";e.replace(h,(function(t,i,n,a,s,l){return n||(n=a),u+=e.slice(c,l).replace(ae,At),i&&(o=!0,u+="' +\n__e("+i+") +\n'"),s&&(r=!0,u+="';\n"+s+";\n__p += '"),n&&(u+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),u+="';\n";var f=t.variable;f||(u="with (obj) {\n"+u+"\n}\n"),u=(r?u.replace(L,""):u).replace(D,"$1").replace(M,"$1;"),u="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var g=ts((function(){return Function(s,p+"return "+u).apply(void 0,l)}));if(g.source=u,ia(g))throw g;return g},hi.times=function(e,t){if((e=va(e))<1||e>9007199254740991)return[];var i=4294967295,n=Wt(e,4294967295);e-=4294967295;for(var o=_t(n,t=go(t));++i<e;)t(i);return o},hi.toFinite=_a,hi.toInteger=va,hi.toLength=ba,hi.toLower=function(e){return Ta(e).toLowerCase()},hi.toNumber=ya,hi.toSafeInteger=function(e){return xi(va(e),-9007199254740991,9007199254740991)},hi.toString=Ta,hi.toUpper=function(e){return Ta(e).toUpperCase()},hi.trim=function(e,t,i){if((e=Ta(e))&&(i||void 0===t))return e.replace(z,"");if(!e||!(t=wn(t)))return e;var n=Rt(e),o=Rt(t);return Rn(n,Ct(n,o),Tt(n,o)+1).join("")},hi.trimEnd=function(e,t,i){if((e=Ta(e))&&(i||void 0===t))return e.replace(K,"");if(!e||!(t=wn(t)))return e;var n=Rt(e);return Rn(n,0,Tt(n,Rt(t))+1).join("")},hi.trimStart=function(e,t,i){if((e=Ta(e))&&(i||void 0===t))return e.replace(q,"");if(!e||!(t=wn(t)))return e;var n=Rt(e);return Rn(n,Ct(n,Rt(t))).join("")},hi.truncate=function(e,t){var i=30,n="...";if(aa(t)){var o="separator"in t?t.separator:o;i="length"in t?va(t.length):i,n="omission"in t?wn(t.omission):n}var r=(e=Ta(e)).length;if(Le.test(e)){var a=Rt(e);r=a.length}if(i>=r)return e;var s=i-Ot(n);if(s<1)return n;var l=a?Rn(a,0,s).join(""):e.slice(0,s);if(void 0===o)return l+n;if(a&&(s+=l.length-s),da(o)){if(e.slice(s).search(o)){var c,d=l;for(o.global||(o=de(o.source,Ta($.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var u=c.index;l=l.slice(0,void 0===u?s:u)}}else if(e.indexOf(wn(o),s)!=s){var h=l.lastIndexOf(o);h>-1&&(l=l.slice(0,h))}return l+n},hi.unescape=function(e){return(e=Ta(e))&&R.test(e)?e.replace(P,kt):e},hi.uniqueId=function(e){var t=++be;return Ta(e)+t},hi.upperCase=Ja,hi.upperFirst=Za,hi.each=wr,hi.eachRight=Ir,hi.first=Zo,ds(hi,(ys={},ji(hi,(function(e,t){ve.call(hi.prototype,t)||(ys[t]=e)})),ys),{chain:!1}),hi.VERSION="4.13.1",Ze(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){hi[e].placeholder=hi})),Ze(["drop","take"],(function(e,t){gi.prototype[e]=function(i){var n=this.__filtered__;if(n&&!t)return new gi(this);i=void 0===i?1:Ut(va(i),0);var o=this.clone();return n?o.__takeCount__=Wt(i,o.__takeCount__):o.__views__.push({size:Wt(i,4294967295),type:e+(o.__dir__<0?"Right":"")}),o},gi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ze(["filter","map","takeWhile"],(function(e,t){var i=t+1,n=1==i||3==i;gi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:go(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}})),Ze(["head","last"],(function(e,t){var i="take"+(t?"Right":"");gi.prototype[e]=function(){return this[i](1).value()[0]}})),Ze(["initial","tail"],(function(e,t){var i="drop"+(t?"":"Right");gi.prototype[e]=function(){return this.__filtered__?new gi(this):this[i](1)}})),gi.prototype.compact=function(){return this.filter(as)},gi.prototype.find=function(e){return this.filter(e).head()},gi.prototype.findLast=function(e){return this.reverse().find(e)},gi.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new gi(this):this.map((function(i){return Qi(i,e,t)}))})),gi.prototype.reject=function(e){return e=go(e,3),this.filter((function(t){return!e(t)}))},gi.prototype.slice=function(e,t){e=va(e);var i=this;return i.__filtered__&&(e>0||t<0)?new gi(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),void 0!==t&&(i=(t=va(t))<0?i.dropRight(-t):i.take(t-e)),i)},gi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gi.prototype.toArray=function(){return this.take(4294967295)},ji(gi.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=hi[n?"take"+("last"==t?"Right":""):t],r=n||/^find/.test(t);o&&(hi.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,s=t instanceof gi,l=a[0],c=s||Jr(t),d=function(e){var t=o.apply(hi,at([e],a));return n&&u?t[0]:t};c&&i&&"function"==typeof l&&1!=l.length&&(s=c=!1);var u=this.__chain__,h=!!this.__actions__.length,p=r&&!u,f=s&&!h;if(!r&&c){t=f?t:new gi(this);var g=e.apply(t,a);return g.__actions__.push({func:yr,args:[d],thisArg:void 0}),new fi(g,u)}return p&&f?e.apply(this,a):(g=this.thru(d),p?n?g.value()[0]:g.value():g)})})),Ze(["pop","push","shift","sort","splice","unshift"],(function(e){var t=he[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);hi.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Jr(o)?o:[],e)}return this[i]((function(i){return t.apply(Jr(i)?i:[],e)}))}})),ji(gi.prototype,(function(e,t){var i=hi[t];if(i){var n=i.name+"";(ni[n]||(ni[n]=[])).push({name:t,func:i})}})),ni[$n(void 0,2).name]=[{name:"wrapper",func:void 0}],gi.prototype.clone=function(){var e=new gi(this.__wrapped__);return e.__actions__=Vn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Vn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Vn(this.__views__),e},gi.prototype.reverse=function(){if(this.__filtered__){var e=new gi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,i=Jr(e),n=t<0,o=i?e.length:0,r=function(e,t,i){for(var n=-1,o=i.length;++n<o;){var r=i[n],a=r.size;switch(r.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Wt(t,e+a);break;case"takeRight":e=Ut(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=r.start,s=r.end,l=s-a,c=n?s:a-1,d=this.__iteratees__,u=d.length,h=0,p=Wt(l,this.__takeCount__);if(!i||o<200||o==l&&p==l)return Nn(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var g=-1,m=e[c+=t];++g<u;){var _=d[g],v=_.iteratee,b=_.type,y=v(m);if(2==b)m=y;else if(!y){if(1==b)continue e;break e}}f[h++]=m}return f},hi.prototype.at=Cr,hi.prototype.chain=function(){return br(this)},hi.prototype.commit=function(){return new fi(this.value(),this.__chain__)},hi.prototype.next=function(){void 0===this.__values__&&(this.__values__=ma(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},hi.prototype.plant=function(e){for(var t,i=this;i instanceof pi;){var n=zo(i);n.__index__=0,n.__values__=void 0,t?o.__wrapped__=n:t=n;var o=n;i=i.__wrapped__}return o.__wrapped__=e,t},hi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gi){var t=e;return this.__actions__.length&&(t=new gi(this)),(t=t.reverse()).__actions__.push({func:yr,args:[sr],thisArg:void 0}),new fi(t,this.__chain__)}return this.thru(sr)},hi.prototype.toJSON=hi.prototype.valueOf=hi.prototype.value=function(){return Nn(this.__wrapped__,this.__actions__)},He&&(hi.prototype[He]=function(){return this}),hi}();(qe||{})._=Ft,We?((We.exports=Ft)._=Ft,Ue._=Ft):Xe._=Ft}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}).call(this,i(1053))},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(901)],o=i.dj.d(n,(function(e){return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._loadedModules=[],this._nonLoadedModules=[]}return r(t,[{key:"_getSucceedingModules",value:function(e,t){var i=[],n=[];return e.forEach((function(e){(n=t.getSuccessors(e)).length>0&&i.push.apply(i,n)})),i}},{key:"_getModulesToLoadNext",value:function(t,i){var n=this;this._nonLoadedModules=[];var o=[];return t.forEach((function(t){e.isSubset(i.getPredecessors(t),n._loadedModules)?o.push(t):n._nonLoadedModules.push(t)})),o}},{key:"_updateModulesToLoad",value:function(t,i,n){this._loadedModules=e.getUniqueValues(this._loadedModules.concat(t));var o=this._getSucceedingModules(t,i);this._nonLoadedModules&&!e.isSubset(this._nonLoadedModules,o)&&(o=o.concat(this._nonLoadedModules)),o=e.getUniqueValues(o);var r=this._getModulesToLoadNext(o,i);r.length>0&&(n.push(r),this._updateModulesToLoad(r,i,n))}},{key:"getModuleLoadOrder",value:function(e){var t=e.independentNodes,i=[];return i.push(t),this._updateModulesToLoad(t,e,i),i}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(212),i(244),i(222),i(901),i(1819),i(3275),i.dj.c(e.i),i(209)],o=i.dj.d(n,(function(e,t,n,o,l,c,d,u){var h=window.mwWebPackJsonP||window.webpackJsonp;function p(e){var t=e.split("/"),i=t[t.length-1],n=i.indexOf("mwBundle."),o=i.indexOf(".",n+"mwBundle.".length);if(n<0||o<0)throw new Error("Cannot extract Bundle Name from FileName expected anything.mwBundle..bundleName.js, found "+i);return i.substring(n,o)}function f(){return"function"==typeof i}function g(){return f(),d}function m(t,i){var n=g(),o=new e;return f()?n([i],(function(e){var t={};t[i]=e,o.resolve(t)})):n(t,[i],(function(e){var t={};t[i]=e,o.resolve(t)})),o.promise}function _(t){var i=new e,n=function(){return i.resolve()};if("function"==typeof window.requestIdleCallback){var o=t&&t.idleLoadTimeout||1e3;window.requestIdleCallback(n,{timeout:o})}else n();return i.promise}return c.overrideRegisterAbsMids(h),c.overrideWebPackPush(h,"mwBundle."),function(n){function h(){return a(this,h),s(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,n),r(h,[{key:"load",value:function(t,i,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&i&&n){if(0===t.length){var s=new e;return s.resolve(this._getLoadedExports(i,n)),s.promise}var l=n.getDojoDebugLocations(),c=n.getBundleMap();return this._loadModules(t,l,c,a).then((function(e){return e=e.reduceRight((function(e,t){return o.merge(e,t)})),r._initializeModules(e,t,n,a)})).then((function(){return r._getLoadedExports(i,n)}))}var d=new e;return d.reject(new Error("load is missing moduleLoadSequence, exportsToLoad, or exportsManager")),d.promise}},{key:"_getLoadedExports",value:function(e,t){var i={exports:{}};return e.forEach((function(e){if(!t.loadedExports[e.name])throw new Error(e.name+" has not been loaded.");i.exports[e.name]=t.loadedExports[e.name]})),i}},{key:"_loadModules",value:function(e,i,n,r){for(var a=this,s=[],l=o.flattenArray(e),c=function(e){var t=l[e],o=function(){return a._loadModule(t,i,n)},c=void 0;c=r.loadModulesWhenIdle?_(r).then(o):o(),s.push(c)},d=0;d<l.length;d++)c(d);return t(s)}},{key:"_loadModule",value:function(t,n,o){var r={packages:n},a=void 0;if(d.has&&d.has("production")||f())if(function(e){return f()?void 0!==i.dj.r.absMids[e]:d.modules&&d.modules[e]||i.c&&i.c[e]}(t))a=m({},t);else{if(!o[t])throw new Error("Cannot locate "+t+". No bundle and no debug locations found. Make sure this modulePath is in your build or a bundle.");a=function(t,i){var n=g(),o=new e;if(f()){var r=c.loadWebPackBundle(t,p);return Promise.all(r)}return n(t,[i],(function(e){o.resolve(e)})),o.promise}({packages:[{name:o[t].name,location:o[t].location}]},o[t].bundleFile).then((function(e){if(e&&"__webpack_require__"===e.name){var i=e,n="./"+t+".js";n||console.error("Cannot find Module Path: "+t);var o={},r=i(n);return r.__DOJO_WEBPACK_DEFINE_PROMISE__?r.then((function(e){return o[t]=e,o})):(o[t]=r,o)}return m({},t)}))}else a=m(r,t);return a}},{key:"_initializeModules",value:function(t,i,n,o){var r=this,a=new e,s=i.map((function(e){return r._initializeParallelModules(e,t,n,o)})),l=s.shift();return l?s.reduce((function(e,t){return e.then(t)}),l()):(a.resolve(),a.promise)}},{key:"_initializeParallelModules",value:function(e,i,n,o){var r=this,a=[];return function(){return a=e.map((function(e){return r._initializeModule(e,i,n,o)})),t(a)}}},{key:"_initializeModule",value:function(t,i,n,r){var a=this;return n.initializeModulePromises[t]||(this.emit("_initializeStarted",{modulePath:t}),n.initializeModulePromises[t]=this._callModuleInitialize(t,i,n,r).then((function(i){var r=new e;if(l.isExportsValid(t,i,n)){for(var s in a.emit("_initializeEnded",{modulePath:t}),i.exports)o.isKeyInObject(n.loadedExports,s)||(n.loadedExports[s]=i.exports[s]);r.resolve()}else r.reject(new Error("Expected Services were not exported by "+t));return r.promise}),(function(i){var n=new e,o=new Error("Error initializing module '"+t+"', "+i);return u.warn(o),n.reject(o),o}))),n.initializeModulePromises[t]}},{key:"_callModuleInitialize",value:function(e,t,i,n){var o=i.getModuleDependencyExports(e),r=function(){return t[e].initialize(o)};return n.loadModulesWhenIdle?_(n).then(r):r()}}]),h}(n)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){var e={};function t(e,t){return e+"|"+t}return{overrideWebPackPush:function(i,n){if(i&&i.push){var o=i.push;i.push=function(i){for(var r=i[0],a=!1,s=i[1],l=void 0,c=void 0,d=[],u=0;u<r.length;u++)c=r[u],e[c]&&d.push(e[c][0]),e[c]=0,0===c.indexOf(n)&&(a=!0,l=c);var h=s;if(a)for(var p in(h={})[l]=[],s){if(Object.prototype.hasOwnProperty.call(s,p))h[t(l,p)]=s[p]}for(i[1]=h,o&&o(i);d.length;)d.shift()()}}},loadWebPackBundle:function(t,n){var o=[],r=t.packages[0].location,a=n(t.packages[0].location),s=a,l=e[s];if(0!==l)if(l)o.push(l[2]);else{var c=new Promise((function(t,i){l=e[s]=[t,i]}));o.push(l[2]=c);var d,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=r,d=function(t){u.onerror=u.onload=null,clearTimeout(h);var i=e[s];if(0!==i){if(i){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src,r=new Error("Loading chunk "+a+" failed.\n("+n+": "+o+")");r.type=n,r.request=o,i[1](r)}e[s]=void 0}};var h=setTimeout((function(){d({type:"timeout",target:u})}),12e4);u.onerror=u.onload=d,document.head.appendChild(u)}return o},overrideRegisterAbsMids:function(e){if(e&&e.registerAbsMids){var n=i.dj.r;e.registerAbsMids=function(e,i){var o=!1,r="";if(i&&(o=!0,!(r=i.MW_BUNDLE_CHUNK_ID)||0===r.length))throw new Error("MathWorks Bundle Chunk ID (MW_BUNDLE_CHUNK_ID) is not present in loaded bundle");for(var a in e)if(void 0===n.absMids[a]){if(o){var s=t(r,e[a]);n.absMids[a]=s}else n.absMids[a]=e[a];n.absMidsById[n.absMids[a]]=a}}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(901)],o=i.dj.d(n,(function(e){return new(function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._initializeState()}return r(t,[{key:"_initializeState",value:function(){this._exportsToPathMap={},this._pathToDependenciesMap={},this._dojoDebugLocations=[],this._bundleMap={},this._debugMap={},this.loadedExports={},this.initializeModulePromises={}}},{key:"__clearState_TEST_PURPOSES_ONLY",value:function(){this._initializeState()}},{key:"updateExportsDependenciesMap",value:function(e){var t=this;e.forEach((function(e){t._setExportsMap(e),t._setDependenciesMap(e),t._updateDebugLocations(e),t._updateBundleMap(e)}))}},{key:"_updateDebugLocations",value:function(e){for(var t=this._debugMap,i=this._dojoDebugLocations,n=0;n<e.exportKeys.length;n++){if(e.hasDebugInfo())Object.keys(e.debugLocations).forEach((function(n){if(!t[n]){var o=e.debugLocations[n];t[n]=o,i.push({name:n,location:o})}}))}}},{key:"_updateBundleMap",value:function(e){var t=this._bundleMap;e.hasBundleInfo()&&(t[e.key]||(t[e.key]=e.bundle))}},{key:"_setExportsMap",value:function(t){for(var i=this._exportsToPathMap,n=0;n<t.exportKeys.length;n++){var o=t.exportKeys[n];i[o]||(i[o]=t.key)}this._exportsToPathMap=e.merge(this._exportsToPathMap,i)}},{key:"_setDependenciesMap",value:function(t){var i={};i[t.key]=[];for(var n=0;n<t.dependsOnKeys.length;n++){var o=t.dependsOnKeys[n];i[t.key].push(o)}this._pathToDependenciesMap=e.merge(this._pathToDependenciesMap,i)}},{key:"getDojoDebugLocations",value:function(){return this._dojoDebugLocations}},{key:"getBundleMap",value:function(){return this._bundleMap}},{key:"getModulePathsToLoad",value:function(t){var i=this,n=[];return t.forEach((function(e){if(!i._exportsToPathMap.hasOwnProperty(e.name))throw new Error("Unknown export:"+e.name+"\n Module path was not defined earlier for this export.");n.push({modulePath:i._exportsToPathMap[e.name]})})),n=e.getUniqueValues(n,"modulePath")}},{key:"getNonLoadedExports",value:function(t){for(var i=[],n=0;n<t.length;n++)e.isKeyInObject(this.loadedExports,t[n].name)||i.push(t[n]);return i}},{key:"getModuleDependencyExports",value:function(e){var t=this,i={};return this._pathToDependenciesMap[e].forEach((function(e){i[e]=t.loadedExports[e]})),i}},{key:"clearExportsDependenciesMap",value:function(){this._pathToDependenciesMap={},this._exportsToPathMap={}}},{key:"exportsToPathMap",get:function(){return this._exportsToPathMap}},{key:"pathToDependenciesMap",get:function(){return this._pathToDependenciesMap}}]),t}())}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._rawModuleDef=t}return a(e,[{key:"hasBundleInfo",value:function(){return!!this._rawModuleDef.bundle}},{key:"hasDebugInfo",value:function(){return!(!this._rawModuleDef.debugDependencies||"object"!==r(this._rawModuleDef.debugDependencies))}},{key:"key",get:function(){return this._rawModuleDef.modulePath.amd}},{key:"bundle",get:function(){if(this.hasBundleInfo()){var e=this._rawModuleDef.bundle.location,t=e.split("/");if(t.length>0){var i=t[t.length-1];return{name:i,location:e,bundleFile:i+"/bundle"}}}return{}}},{key:"debugLocations",get:function(){return this.hasDebugInfo()?this._rawModuleDef.debugDependencies:{}}},{key:"dependsOnKeys",get:function(){return this._rawModuleDef.dependsOn}},{key:"exports",get:function(){return this.exportKeys.map((function(e){return{name:e}}))}},{key:"exportKeys",get:function(){return this._rawModuleDef.provides?this._rawModuleDef.provides:[]}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(715),i(1820)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{constructor:function(){this._saveInfo={},this._saveToPreferences=!!window.cefclient},setMinimumSaveInterval:function(e,t){var i=this._saveInfo[e];i||(i={},this._saveInfo[e]=i),i.minSaveInterval=t},save:function(e,i,n){var o=this;if(n)this._saveNow(e,i);else{var r=this._saveInfo[e];r?(r.pendingSaveData=i,r.waitingForTimeout||(r.waitingForTimeout=!0,setTimeout(t.hitch(this,(function(){r.pendingSaveData&&(o._saveNow(e,r.pendingSaveData),r.waitingForTimeout=!1,r.pendingSaveData=null)})),r.minSaveInterval))):this._saveNow(e,i)}},flush:function(){Object.keys(this._saveInfo).forEach((function(e){var t=this._saveInfo[e];t.pendingSaveData&&(this._saveNow(e,t.pendingSaveData),t.waitingForTimeout=!1,t.pendingSaveData=null)}),this)},retrieve:function(e){var t=new i;if(this._saveToPreferences)n.readFileFromPreferenceDirectory(e+".json").then((function(e){t.resolve(JSON.parse(e))}),(function(e){t.reject(e)}));else{var o=localStorage.getItem(e);o?t.resolve(JSON.parse(o)):t.reject(e+" not found in local storage")}return t.promise},_saveNow:function(e,t){var i=JSON.stringify(t);this._saveToPreferences?n.writeFileToPreferenceDirectory(e+".json",i):localStorage.setItem(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(222),i(203),i(212),i(214),i(219),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=new(t([e],{_deferredMap:{},_serviceStarted:!1,_queue:[],_responseChannel:"",constructor:function(){this._responseChannel="/matlab/prefdirChannel/Response/"+r.generateUuid()},start:function(){if(!this.isStarted())for(o.subscribe(this._responseChannel,this._handleServerMessages.bind(this)),this._serviceStarted=!0;this._queue.length>0;){var e=this._queue.pop();this._sendMessage(e.channel,e.message)}},_sendMessage:function(e,t){this.isStarted()?o.publish(e,t):this._queue.push({channel:e,message:t})},_handleServerMessages:function(e){let t=e.data.type;const i=e.data.uuid;this._deferredMap[i]&&("GetPrefdirMessageResponse"===t&&this._deferredMap[i].resolve(e.data),delete this._deferredMap[i])},isStarted:function(){return this._serviceStarted},stop:function(){this._serviceStarted=!1},getPrefdir:function(){let e=new i;const t=function(e){for(var t=r.generateUuid();void 0!==e[t];)t=r.generateUuid();return t}(this._deferredMap);let n={type:"GetPrefdirMessage",uuid:t,channel:this._responseChannel};return this._deferredMap[t]=e,this._sendMessage("/matlab/prefdirChannel/Request",n),e.promise}}));return o.isStarted()?a.start():n.after(o,"onConnected",(function(){a.start()})),a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(211),i(206),i(276),i(219),i(369),i(1052),i(434),i(1051),i(292),i(560),i(798),i(3281),i(1821),i(368),i(209),t],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b=e(null,{constructor:function(e){var t,i=this;(this.id=e.uiContainer?e.uiContainer.id:e.id,this.modelChannel=e.modelChannel,this.toolstripChannel=e.toolstripChannel,this._uiContainer=e.uiContainer,this._deferredEvents=[],this._attach=e.attach,this.useMF0ForTS=e.useMF0ForTS,a.isRunning()||a.start(),this._modelManager=l.getViewModelManager({channelPrefix:this.modelChannel}),this._modelManager.addEventListener("rootSet",this._handleModelRootSet,this),this._uiContainer||(this._uiBuilder=u.getInstance({isMATLABDriven:!!this.toolstripChannel,channel:this.toolstripChannel,manageTabGroupsOutsidePeerModel:!0})),this.toolstripChannel)&&(this.useMF0ForTS?t=l.getViewModelManager({channelPrefix:this.toolstripChannel,plugins:{moveEvent:!0}}):(t=s.getInstance(this.toolstripChannel)).setSyncEnabled(!0),t.addEventListener("rootSet",this._handleToolstripRootSet,this));this._unloadListener=o(window,"beforeunload",(function(){i.destroy()}))},destroy:function(){this._isDestroying||(this._isDestroying=!0,a.publish(y(this.id),{type:"terminated"}),this._modelManager&&this._modelManager.delete&&this._modelManager.delete(),this._uiContainer&&this._builtContainer&&(this._uiContainer.shutdown(),a.stop()),this._isDestroying=!1)},detachFromContainer:function(){this._attach&&this._modelRoot.getChildren().forEach((function(e){var t=e.getType();"panel"!==t&&"documentType"!==t&&"document"!==t||f.unlink(e)})),this._unloadListener&&(this._unloadListener.remove(),delete this._unloadListener)},_handleModelRootSet:function(e){if(this._modelRoot=e.target,this._modelRoot.hasProperty("reportErrors")&&this._modelRoot.getProperty("reportErrors")){var t=this;window.addEventListener("error",(function(e){a.publish(y(t.id),{type:"error",message:e.message,stack:e.error.stack})}))}this._uiContainer&&(this._buildContainerModel(this._uiContainer),this._listenForContainerChanges(this._uiContainer)),this._modelRoot.addEventListener("peerEvent",this._getSafeHandler(this._handleModelPeerEvent),this),this._modelRoot.addEventListener("propertySet",this._getSafeHandler(this._handleModelPropertySet),this),this._modelRoot.addEventListener("childAdded",this._getSafeHandler(this._handleModelChildAdd),this),this._modelRoot.addEventListener("childRemoved",this._getSafeHandler(this._handleModelChildRemove),this),this._uiContainer||this._buildContainerWhenReady()},_handleToolstripRootSet:function(e){var t=this;e.target.addEventListener("childAdded",(function(e){var i=e.data.child;i.getType()===c.ORPHAN_ROOT?(i.addEventListener("childAdded",(function(e){var i=e.data.child;if(i.getType()===c.TAB_GROUP&&!i.getProperty("contextual")){var n=i.getProperty("tag");t._uiContainer?t._uiContainer.addTabGroup(n,!1):(t._pendingGlobalTabGroupTags||(t._pendingGlobalTabGroupTags=[]),t._pendingGlobalTabGroupTags.push(n))}})),t._isToolstripRootReady=!0,t._buildContainerWhenReady()):i.getType()===c.STATUS_BAR_ROOT&&(t._statusBarRoot=i,i.addEventListener("childAdded",(function(e){if(t._uiContainer){var i=e.data.child;t._uiContainer.addStatusBar(i.getProperty("tag"))}})))}))},_buildContainerWhenReady:function(){this._uiContainer||!this._modelRoot||!this._isToolstripRootReady&&this.toolstripChannel||this._buildContainerAfterDelay()},_buildContainerAfterDelay:function(){var e=this;setTimeout((function(){e._uiContainer||e._buildContainer()}),0)},_buildContainer:function(){var e={appId:this.id,uiBuilder:this._uiBuilder,tabGroupTags:this._pendingGlobalTabGroupTags,reserveDocumentSpace:!0,enableCenterCollapse:!0};delete this._pendingGlobalTabGroupTags;var i=this._createContainerPropertyTranslators(),n=this._modelRoot.getProperties();if(Object.keys(n).forEach((function(e){n[e]=f.convertToObjectIfJson(n[e]);var t=i[e];t&&(n[e]=t.fromPeer(n[e]))})),t.mixin(e,n),this._uiContainer=new h("uiroot",e),this._builtContainer=!0,this._statusBarRoot){var o=this._statusBarRoot.getChildren();o.length>0&&this._uiContainer.addStatusBar(o[0].getProperty("tag"))}f.link(this._modelRoot,this._uiContainer,i),this._setupContainerCloseApproval(this._modelRoot.getProperty("hasCloseApprover")),this._sendMessage("clientReady")},_sendMessage:function(e,t){a.isRunning()||a.start();var i=y(this._uiContainer),n={};n.type=e||"generic",t&&(n.data=t),a.publish(i,n)},_getSafeHandler:function(e){return t.partial(this._handleContainerEvent,e)},_handleContainerEvent:function(e,i){this._uiContainer?t.hitch(this,e)(i):this._deferredEvents.push(t.hitch(this,e,i))},_handleModelPeerEvent:function(e){"start"===e.data.type?(this._uiContainer.startup(),this._deferredEvents.forEach((function(e){e()}))):"closeReply"===e.data.type&&this._pendingCloseQuery&&this._pendingCloseQuery.id===e.data.id&&(e.data.approve?this._pendingCloseQuery.resolve(!0):this._pendingCloseQuery.reject(),delete this._pendingCloseQuery)},_handleModelPropertySet:function(e){"hasCloseApprover"===e.data.key&&this._setupContainerCloseApproval(e.data.newValue)},_dispatchEvent:function(e,t,i){i=i||this._modelRoot,this._modelRoot&&i.dispatchEvent(e,null,t)},_setupContainerCloseApproval:function(e){var t=this;e?(this._containerCloseApprover=function(){t._pendingCloseQuery=new i,t._pendingCloseQuery.id=String(Date.now());var e={type:"closeQuery",id:t._pendingCloseQuery.id};return t._dispatchEvent("peerEvent",e),t._pendingCloseQuery.promise},this._uiContainer.addCloseApprover(this._containerCloseApprover)):this._containerCloseApprover&&(this._uiContainer.removeCloseAppover(this._containerCloseApprover),delete this._containerCloseApprover)},_handleModelChildAdd:function(e){var i,n,o,a=e.data.child,s=this;if(!a)return;if(!this._checkIfChildExistsInUIContainer(a.getType(),a.getProperties()))switch(a.getType()){case"panel":(i=f.createChildPropertiesFromPeerNode(a)).factoryPath?this._uiContainer.dynamicLoader.load([i.factoryPath],(function(e){var t=new e;d.loadFiles(t.getCssFiles()).then(()=>{n&&n.resize&&n.resize()}),n=t.createWidget(s._uiContainer,f.convertToObjectIfJson(i.content),i),s._uiContainer.addPanel(n,i,t,i.content)})):(n=new r({content:i.content}),this._uiContainer.addPanel(n,i));break;case"documentType":(i=f.createDocumentTypePropertiesFromPeerNode(a,this._createDocumentTypePropertyTranslators())).tabGroupTags?Array.isArray(i.tabGroupTags)||(i.tabGroupTags=[i.tabGroupTags]):i.tabGroupTags=[],this._uiContainer.registerDocumentType(i.typeId,i);break;case"document":f.createTypePropertiesFromPeerNode(this._uiContainer,a).then(e=>{e&&(o=f.convertToObjectIfJson(a.getProperties().content),i=f.createChildPropertiesFromTypeProperties(e,a,o,s._uiContainer),e.documentFactory?s._createAndAddDocument(i,e.documentFactory,o):(n=new r({content:i.content}),s._uiContainer.addDocument(n,i)),s._setupDocumentCloseApproval(a,i),i.watch("hasCloseApprover",t.hitch(s,"_setupDocumentCloseApproval",a,i)))})}},_createAndAddDocument:function(e,t,i){var n;d.loadFiles(t.getCssFiles()).then(()=>{n&&n.resize&&n.resize()}),n=t.createWidget(this._uiContainer,i,e),this._uiContainer.addDocument(n,e)},_handleModelChildRemove:function(e){var t=e.data.child;if(t){switch(t.getType()){case"panel":var i=this._uiContainer.removePanel(t.getProperty("panelId"));i&&i.destroyRecursive();break;case"documentType":this._uiContainer.unregisterDocumentType(t.getProperty("typeId"));break;case"document":var n=t.getProperty("documentId")||t.getProperty("title"),o=this._uiContainer.getChildProperties(n,t.getProperty("documentType"));o&&o.set("isOpen",!1)}f.unlink(t)}},_setupDocumentCloseApproval:function(e,n){var o=this;void 0!==n.hasCloseApprover&&(n.hasCloseApprover?(n.canClose=function(){n._pendingCloseQuery=new i,n._pendingCloseQuery.id=String(Date.now());var t={type:"closeQuery",id:n._pendingCloseQuery.id};return o._dispatchEvent("peerEvent",t,e),n._pendingCloseQuery.promise},e.addEventListener("peerEvent",t.hitch(this,"_handleDocumentPeerEvent",n))):n.canClose&&delete n.canClose)},_handleDocumentPeerEvent:function(e,t){"closeReply"===t.data.type&&e._pendingCloseQuery&&e._pendingCloseQuery.id===t.data.id&&(t.data.approve?e._pendingCloseQuery.resolve(!0):e._pendingCloseQuery.reject(),delete e._pendingCloseQuery)},_buildContainerModel:function(e){this._modelRoot=f.updatePeerNodeFromUIContainer(this._modelRoot,e,this._createContainerPropertyTranslators());var t=this;e.getPanels().forEach((function(e){f.createPeerNodeFromChildProperties(t._modelRoot,"panel",e.properties)})),e.getDocuments().forEach((function(e){f.createPeerNodeFromChildProperties(t._modelRoot,"document",e.properties)})),e.getDocumentTypes().forEach((function(e){f.createPeerNodeFromDocumentTypeProperties(t._modelRoot,e.type,e.properties,t._createDocumentTypePropertyTranslators())})),this._modelRoot.dispatchEvent("containerModelBuilt",null,{})},_listenForContainerChanges:function(e){var t=this;e.on(h.CHILD_ADDED,(function(e){if(!t._checkIfChildExistsInModel(e.childType,e.properties))switch(e.childType){case"panel":case"document":e.properties.isDocking||f.createPeerNodeFromChildProperties(t._modelRoot,e.childType,e.properties);break;case"documentType":f.createPeerNodeFromDocumentTypeProperties(t._modelRoot,e.typeId,e.properties,t._createDocumentTypePropertyTranslators())}})),e.on(h.CHILD_REMOVED,(function(e){const i=t._checkIfChildExistsInModel(e.childType,e.properties);i&&i.destroy()}))},_findModelChild:function(e,t){var i,n,o=this._modelRoot.getChildren();for(i=0;i<o.length;i++)if((n=o[i]).getType()===e&&t(n))return n;return null},_findUIContainerChild:function(e,t){const i=this;let n,o,r;switch(e){case"panel":n=Object.values(i._uiContainer._panels);break;case"document":n=i._uiContainer._documents;break;case"documentType":n=i._uiContainer.getDocumentTypes()}for(o=0;o<n.length;o++)if(r=n[o],t(r))return r;return null},_checkIfChildExistsInModel:function(e,t){let i;switch(e){case"panel":i=function(e){return e.getProperty("panelId")===t.panelId};break;case"document":t.isUndocking||(i=function(e){return e.getProperty("documentType")===t.documentType&&(void 0!==e.getProperty("documentId")?e.getProperty("documentId")===t.documentId:e.getProperty("title")===t.title)});break;case"documentType":i=function(e){return e.getProperty("typeId")===t.typeId}}return i?this._findModelChild(e,i):null},_checkIfChildExistsInUIContainer:function(e,t){let i;switch(e){case"panel":i=function(e){return e.properties.get("panelId")===t.panelId};break;case"document":t.isUndocking||(i=function(e){return e.properties.get("documentType")===t.documentType&&(void 0!==e.properties.get("documentId")?e.properties.get("documentId")===t.documentId:e.properties.get("title")===t.title)});break;case"documentType":i=function(e){return e.type===t.typeId}}return i?this._findUIContainerChild(e,i):null},_createContainerPropertyTranslators:function(){var e=this,t={tabGroupTags:g.ForceArray,activeContexts:g.ForceArray,borderOptions:new g({fromPeer:function(e){e&&!Array.isArray(e)&&(e=[e]);for(var t={},i=0;i<e.length;i++){var n=JSON.parse(e[i]);t[n.region]=n}return t}}),contexts:new g({fromPeer:function(e){e&&!Array.isArray(e)&&(e=[e]);for(var t=0;t<e.length;t++){var i=JSON.parse(e[t]);i.tabGroupTags&&!Array.isArray(i.tabGroupTags)&&(i.tabGroupTags=[i.tabGroupTags]),i.statusComponentTags&&!Array.isArray(i.statusComponentTags)&&(i.statusComponentTags=[i.statusComponentTags]),i.panelIds&&!Array.isArray(i.panelIds)&&(i.panelIds=[i.panelIds]),e[t]=i}return e}}),selectedChild:new g({toPeer:function(t){if(!t)return{tag:"",title:"",documentGroupTag:""};var i=e._uiContainer.getChildProperties(t);return{tag:i.panelId||i.documentId,title:i.title,documentGroupTag:i.documentType}},fromPeer:function(t){return e._uiContainer.getChildWidget(t.tag||t.title,t.documentGroupTag)}}),lastSelectedDocument:new g({toPeer:function(t){if(!t)return{tag:"",title:"",documentGroupTag:""};var i=e._uiContainer.getChildProperties(t);return{tag:i.documentId,title:i.title,documentGroupTag:i.documentType}}}),selectedToolstripTab:new g({toPeer:function(e){return e?e.title&&e.tag?{tag:e.tag,title:e.title}:null:{tag:"",title:""}}}),documentLayout:new g({fromPeer:function(e){var t,i=this;if(e.columnWeights&&!Array.isArray(e.columnWeights)&&delete e.columnWeights,e.rowWeights&&!Array.isArray(e.rowWeights)&&delete e.rowWeights,e.tileCoverage){var n=e.gridDimensions||e.gridSize;if(1===n.w&&1===n.h)e.tileCoverage=[[]];else if(1===n.h)e.tileCoverage=[e.tileCoverage];else if(1===n.w)for(t=0;t<e.tileCoverage.length;t++)Array.isArray(e.tileCoverage[t])||(e.tileCoverage[t]=[e.tileCoverage[t]])}if(e.tileOccupancy)for(Array.isArray(e.tileOccupancy)||(e.tileOccupancy=[e.tileOccupancy]),t=0;t<e.tileOccupancy.length;t++)Array.isArray(e.tileOccupancy[t].children)||(e.tileOccupancy[t].children=[e.tileOccupancy[t].children]);return e.nestings&&(Array.isArray(e.nestings)||(e.nestings=[e.nestings]),e.nestings.forEach((function(e){i.fromPeer(e)}))),e}}),panelLayout:new g({fromPeer:function(e){return["left","right","bottom"].forEach((function(t){var i=e[t];i&&i.children&&!Array.isArray(i.children)&&(i.children=[i.children])})),e}}),layout:new g({fromPeer:function(e){return e.documentLayout&&(e.documentLayout=t.documentLayout.fromPeer(e.documentLayout)),e.panelLayout&&(e.panelLayout=t.panelLayout.fromPeer(e.panelLayout)),e}}),defaultLayout:new g({fromPeer:function(e){return t.layout.fromPeer(e)}}),offerDocumentMaximizeButton:new g({toPeer:function(e){let t;return t=!0===e?"true":!1===e?"false":"default",t},fromPeer:function(e){let t;return"true"===e?t=!0:"false"===e&&(t=!1),t}})};return t},_createDocumentTypePropertyTranslators:function(){var e=this;return{lastSelected:new g({toPeer:function(t){if(!t)return{tag:"",title:""};var i=e._uiContainer._getDocumentPropertiesFromAllWindows(t);return{tag:i.panelId||i.documentId,title:i.title}}})}}}),y=function(e){return"/"+("string"==typeof e?e:e.appId)+"/uicontainer"};return b.enableAttach=function(e){a.isRunning()||a.start(),messageChannel=y(e),a.subscribe(messageChannel,(function(t){switch(t.data.type){case"attach":e._peer||(e._peer=new b({modelChannel:t.data.modelChannel,uiContainer:e,attach:!0}));break;case"detach":e._peer&&(e._peer.detachFromContainer(),e._peer=null);break;case"openChild":p.open({page:t.data.page}).then((function(){}),(function(){}))}})),a.publish(messageChannel,{type:"started"})},v.UIContainerPeer=b,v.enableAttach=b.enableAttach,b}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(560),i(304),i(467),i(1821),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s,l,c="**JSON**".length,d=["panelId","documentId","documentType","childType","content",i.ACTIVE_CONTEXTS,i.DESCRIPTION,i.INDEX,i.IS_COLLAPSED,i.IS_COLLAPSIBLE,i.IS_DOCKED,i.IS_MAXIMIZABLE,i.IS_MAXIMIZED,i.IS_OPEN,i.IS_VISIBLE,i.IS_RESIZABLE,i.IS_SELECTED,i.IS_SHOWING,i.PERMISSIBLE_REGIONS,i.PREFERRED_WIDTH,i.PREFERRED_HEIGHT,i.REGION,i.TILE,i.TITLE,i.WINDOW_BOUNDS],u=["title","collectiveLabel","constrainToSubContainer","retainEmptySubContainer",n.DOCUMENT_COUNT,n.LAST_SELECTED,n.IS_DOCKED,n.IS_MAXIMIZED,n.SHRINK_TABS_TO_FIT,n.SUB_GRID_SIZE,n.TILE,n.WINDOW_BOUNDS],h={activeContexts:o.ForceArray};return{link:function(e,i,n){s||(s=[t.SELECTED_CHILD,t.SELECTED_TOOLSTRIP_TAB,t.LAYOUT,t.DOCUMENT_LAYOUT,t.PANEL_LAYOUT]);var o,r,c=this,h=function(e){var t,a;r||("tileCoverage"===(t=e.data.key)&&l&&(clearTimeout(l),l=null),a=c.convertToObjectIfJson(e.data.newValue),n&&n[t]&&(a=n[t].fromPeer(a)),o=t,i.set(t,a),o=null)};e.addEventListener("propertySet",h);var p=function(t,i,n){r=t,e.setProperty(t,c.convertToJsonIfObject(i),n),r=null},f=i.watch((function(e,t,r){var h;(o!==e||s.indexOf(e)>=0)&&"string"==typeof e&&(a||c._initializeContainerPropertyNames(),n&&n[e]?h=!!(r=n[e].toPeer(r)):(d.indexOf(e)>-1||u.indexOf(e)>-1||a.indexOf(e)>-1)&&(h=c.isValueTransferrable(r)),h&&("tileCoverage"===e?(l&&clearTimeout(l),l=setTimeout((function(){p(e,r),l=null}),1e3)):"isOpen"===e?p(e,r,{destroyOnClose:i.get("destroyOnClose")}):p(e,r)))}));e._removeBridgePropertiesLink=function(){e.removeEventListener("propertySet",h),f.remove()}},unlink:function(e){e._removeBridgePropertiesLink&&(e._removeBridgePropertiesLink(),delete e._removeBridgePropertiesLink)},isValueTransferrable:function(e){var t,i,n=typeof e;if("string"===n||"number"===n||"boolean"===n)return!0;if(e&&Array.isArray(e)){for(t=0;t<e.length;t++)if(!this.isValueTransferrable(e[t]))return!1;return!0}if(e&&"object"===n){for(i=Object.keys(e),t=0;t<i.length;t++)if(!this.isValueTransferrable(e[i[t]]))return!1;return!0}return!1},createChildPropertiesFromPeerNode:function(e){var t=new i(e.getProperties());return this._linkPropertiesWithPeerNode(e,t)},_linkPropertiesWithPeerNode:function(e,t){return t.permissibleRegions&&(t.permissibleRegions=o.ForceArray.fromPeer(t.permissibleRegions)),this.link(e,t,h),t},createChildPropertiesFromTypeProperties:function(e,t,n,o){var a,s;if((s=e.documentFactory)&&"function"==typeof s.createProperties){const e=i._setupVisibleProperty(t.getProperties());(a=s.createProperties(o,n,e))instanceof i||(r.warn(s.modulePath+"#createProperties did not return instance of ChildProperties, using default ChildProperties instead"),a=new i(t.getProperties()))}else a=new i(t.getProperties());return this._linkPropertiesWithPeerNode(t,a)},createTypePropertiesFromPeerNode:function(t,i){var n=new e,o=i.getProperties().documentType,r=t.getDocumentTypeProperties(o);return!r.documentFactory&&r.factoryPath?t.dynamicLoader.load([r.factoryPath],(function(e){r.documentFactory=new e,n.resolve(r)})):n.resolve(r),n.promise},createPeerNodeFromChildProperties:function(e,t,i){var n=this._filter(i,d);this._translatePropertiesToPeer(n,h);var o=e.addChild(t,n);return this.link(o,i,h),o},createDocumentTypePropertiesFromPeerNode:function(e,t){var i=this,r=n(e.getProperties());Object.keys(r).forEach((function(e){r[e]=i.convertToObjectIfJson(r[e])})),r.contexts&&(r.contexts=o.ForceArray.fromPeer(r.contexts)),r.panelTags&&(r.panelTags=o.ForceArray.fromPeer(r.panelTags)),r.tabGroupTags&&(r.tabGroupTags=o.ForceArray.fromPeer(r.tabGroupTags));for(let e in r)r[e]instanceof Array&&1===r[e].length&&(r[e]=r[e][0]);return this.link(e,r,t),r},createPeerNodeFromDocumentTypeProperties:function(e,t,i,n){var o=this._filter(i,u);o.typeId=t,this._translatePropertiesToPeer(o,n);var r=e.addChild("documentType",o);return this.link(r,i,n),r},_initializeContainerPropertyNames:function(){a=[t.BOTTOM_HEIGHT,t.DOCUMENT_COLUMN_WEIGHTS,t.DOCUMENT_GRID_SIZE,t.DOCUMENT_LAYOUT,t.DOCUMENT_PLACE_HOLDER_TEXT,t.DOCUMENT_ROW_WEIGHTS,t.DOCUMENT_TAB_POSITION,t.DOCUMENT_TILE_COVERAGE,t.IS_BOTTOM_COLLAPSED,t.IS_BUSY,t.IS_LEFT_COLLAPSED,t.IS_RIGHT_COLLAPSED,t.IS_TOOLSTRIP_COLLAPSED,t.IS_VISIBLE,t.LAST_SELECTED_DOCUMENT,t.LAYOUT,t.LEFT_WIDTH,t.PANEL_LAYOUT,t.RIGHT_WIDTH,t.SELECTED_CHILD,t.SELECTED_TOOLSTRIP_TAB,t.TITLE,t.WINDOW_BOUNDS,t.WINDOW_BOUNDS_MODIFIED]},updatePeerNodeFromUIContainer:function(e,t,i){a||this._initializeContainerPropertyNames();var n=this._filter(t,a);return this._translatePropertiesToPeer(n,i),e.setProperties(n),this.link(e,t,i),e},_filter:function(e,t){var i,n,o,r={};for(i=0;i<t.length;i++)n=t[i],void 0!==(o=e.get(n))&&(r[n]=o);return r},_translatePropertiesToPeer:function(e,t){if(t)for(var i=Object.keys(e),n=0;n<i.length;n++){var o=i[n];t[o]&&(e[o]=t[o].toPeer(e[o]))}},convertToObjectIfJson:function(e){return"string"==typeof e&&"**JSON**"===e.substr(0,c)?JSON.parse(e.substr(c)):e},convertToJsonIfObject:function(e){return"object"==typeof e?"**JSON**"+JSON.stringify(e):e}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n=[i(1337)],o=i.dj.d(n,(function(e){return function(e){function t(){return r(this,t),a(this,s(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),t}(e.LitElement)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";const t=new WeakMap,i=e=>"function"==typeof e&&t.has(e),n=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,o=(e,t,i=null,n=null)=>{for(;t!==i;){const i=t.nextSibling;e.insertBefore(t,n),t=i}},r=(e,t,i=null)=>{for(;t!==i;){const i=t.nextSibling;e.removeChild(t),t=i}},a={},s={},l=`{{lit-${String(Math.random()).slice(2)}}}`,c=`\x3c!--${l}--\x3e`,d=new RegExp(`${l}|${c}`);class u{constructor(e,t){this.parts=[],this.element=t;const i=[],n=[],o=document.createTreeWalker(t.content,133,null,!1);let r=0,a=-1,s=0;const{strings:c,values:{length:u}}=e;for(;s<u;){const e=o.nextNode();if(null!==e){if(a++,1===e.nodeType){if(e.hasAttributes()){const t=e.attributes,{length:i}=t;let n=0;for(let e=0;e<i;e++)h(t[e].name,"$lit$")&&n++;for(;n-- >0;){const t=c[s],i=g.exec(t)[2],n=i.toLowerCase()+"$lit$",o=e.getAttribute(n);e.removeAttribute(n);const r=o.split(d);this.parts.push({type:"attribute",index:a,name:i,strings:r}),s+=r.length-1}}"TEMPLATE"===e.tagName&&(n.push(e),o.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(l)>=0){const n=e.parentNode,o=t.split(d),r=o.length-1;for(let t=0;t<r;t++){let i,r=o[t];if(""===r)i=f();else{const e=g.exec(r);null!==e&&h(e[2],"$lit$")&&(r=r.slice(0,e.index)+e[1]+e[2].slice(0,-"$lit$".length)+e[3]),i=document.createTextNode(r)}n.insertBefore(i,e),this.parts.push({type:"node",index:++a})}""===o[r]?(n.insertBefore(f(),e),i.push(e)):e.data=o[r],s+=r}}else if(8===e.nodeType)if(e.data===l){const t=e.parentNode;null!==e.previousSibling&&a!==r||(a++,t.insertBefore(f(),e)),r=a,this.parts.push({type:"node",index:a}),null===e.nextSibling?e.data="":(i.push(e),a--),s++}else{let t=-1;for(;-1!==(t=e.data.indexOf(l,t+1));)this.parts.push({type:"node",index:-1}),s++}}else o.currentNode=n.pop()}for(const e of i)e.parentNode.removeChild(e)}}const h=(e,t)=>{const i=e.length-t.length;return i>=0&&e.slice(i)===t},p=e=>-1!==e.index,f=()=>document.createComment(""),g=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;class m{constructor(e,t,i){this.__parts=[],this.template=e,this.processor=t,this.options=i}update(e){let t=0;for(const i of this.__parts)void 0!==i&&i.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=n?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],i=this.template.parts,o=document.createTreeWalker(e,133,null,!1);let r,a=0,s=0,l=o.nextNode();for(;a<i.length;)if(r=i[a],p(r)){for(;s<r.index;)s++,"TEMPLATE"===l.nodeName&&(t.push(l),o.currentNode=l.content),null===(l=o.nextNode())&&(o.currentNode=t.pop(),l=o.nextNode());if("node"===r.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(l.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(l,r.name,r.strings,this.options));a++}else this.__parts.push(void 0),a++;return n&&(document.adoptNode(e),customElements.upgrade(e)),e}}class _{constructor(e,t,i,n){this.strings=e,this.values=t,this.type=i,this.processor=n}getHTML(){const e=this.strings.length-1;let t="",i=!1;for(let n=0;n<e;n++){const e=this.strings[n],o=e.lastIndexOf("\x3c!--");i=(o>-1||i)&&-1===e.indexOf("--\x3e",o+1);const r=g.exec(e);t+=null===r?e+(i?l:c):e.substr(0,r.index)+r[1]+r[2]+"$lit$"+r[3]+l}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}class v extends _{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const e=super.getTemplateElement(),t=e.content,i=t.firstChild;return t.removeChild(i),o(t,i.firstChild),e}}const b=e=>null===e||!("object"==typeof e||"function"==typeof e),y=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class C{constructor(e,t,i){this.dirty=!0,this.element=e,this.name=t,this.strings=i,this.parts=[];for(let e=0;e<i.length-1;e++)this.parts[e]=this._createPart()}_createPart(){return new T(this)}_getValue(){const e=this.strings,t=e.length-1;let i="";for(let n=0;n<t;n++){i+=e[n];const t=this.parts[n];if(void 0!==t){const e=t.value;if(b(e)||!y(e))i+="string"==typeof e?e:String(e);else for(const t of e)i+="string"==typeof t?t:String(t)}}return i+=e[t],i}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class T{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===a||b(e)&&e===this.value||(this.value=e,i(e)||(this.committer.dirty=!0))}commit(){for(;i(this.value);){const e=this.value;this.value=a,e(this)}this.value!==a&&this.committer.commit()}}class E{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(f()),this.endNode=e.appendChild(f())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=f()),e.__insert(this.endNode=f())}insertAfterPart(e){e.__insert(this.startNode=f()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){for(;i(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=a,e(this)}const e=this.__pendingValue;e!==a&&(b(e)?e!==this.value&&this.__commitText(e):e instanceof _?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):y(e)?this.__commitIterable(e):e===s?(this.value=s,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const t=this.startNode.nextSibling;e=null==e?"":e,t===this.endNode.previousSibling&&3===t.nodeType?t.data=e:this.__commitNode(document.createTextNode("string"==typeof e?e:String(e))),this.value=e}__commitTemplateResult(e){const t=this.options.templateFactory(e);if(this.value instanceof m&&this.value.template===t)this.value.update(e.values);else{const i=new m(t,e.processor,this.options),n=i._clone();i.update(e.values),this.__commitNode(n),this.value=i}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const t=this.value;let i,n=0;for(const o of e)i=t[n],void 0===i&&(i=new E(this.options),t.push(i),0===n?i.appendIntoPart(this):i.insertAfterPart(t[n-1])),i.setValue(o),i.commit(),n++;n<t.length&&(t.length=n,this.clear(i&&i.endNode))}clear(e=this.startNode){r(this.startNode.parentNode,e.nextSibling,this.endNode)}}class S{constructor(e,t,i){if(this.value=void 0,this.__pendingValue=void 0,2!==i.length||""!==i[0]||""!==i[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=i}setValue(e){this.__pendingValue=e}commit(){for(;i(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=a,e(this)}if(this.__pendingValue===a)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=a}}class w extends C{constructor(e,t,i){super(e,t,i),this.single=2===i.length&&""===i[0]&&""===i[1]}_createPart(){return new I(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class I extends T{}let A=!1;try{const e={get capture(){return A=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}class x{constructor(e,t,i){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=i,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;i(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=a,e(this)}if(this.__pendingValue===a)return;const e=this.__pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),o=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),o&&(this.__options=N(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=a}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const N=e=>e&&(A?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);class L{handleAttributeExpressions(e,t,i,n){const o=t[0];if("."===o){return new w(e,t.slice(1),i).parts}if("@"===o)return[new x(e,t.slice(1),n.eventContext)];if("?"===o)return[new S(e,t.slice(1),i)];return new C(e,t,i).parts}handleTextExpression(e){return new E(e)}}const D=new L;function M(e){let t=P.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},P.set(e.type,t));let i=t.stringsArray.get(e.strings);if(void 0!==i)return i;const n=e.strings.join(l);return i=t.keyString.get(n),void 0===i&&(i=new u(e,e.getTemplateElement()),t.keyString.set(n,i)),t.stringsArray.set(e.strings,i),i}const P=new Map,O=new WeakMap;(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.0.0");e.AttributeCommitter=C,e.AttributePart=T,e.BooleanAttributePart=S,e.DefaultTemplateProcessor=L,e.EventPart=x,e.NodePart=E,e.PropertyCommitter=w,e.PropertyPart=I,e.SVGTemplateResult=v,e.Template=u,e.TemplateInstance=m,e.TemplateResult=_,e.createMarker=f,e.defaultTemplateProcessor=D,e.directive=e=>(...i)=>{const n=e(...i);return t.set(n,!0),n},e.html=(e,...t)=>new _(e,t,"html",D),e.isDirective=i,e.isIterable=y,e.isPrimitive=b,e.isTemplatePartActive=p,e.noChange=a,e.nothing=s,e.parts=O,e.removeNodes=r,e.render=(e,t,i)=>{let n=O.get(t);void 0===n&&(r(t,t.firstChild),O.set(t,n=new E(Object.assign({templateFactory:M},i))),n.appendInto(t)),n.setValue(e),n.commit()},e.reparentNodes=o,e.svg=(e,...t)=>new v(e,t,"svg",D),e.templateCaches=P,e.templateFactory=M,Object.defineProperty(e,"__esModule",{value:!0})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1822),i(1823),i(3285)],o=i.dj.d(n,(function(e){"use strict";return class{static createView(){return e.getViewInstance.call(this)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1824),i(1822),i(1823),i(1338),i(1339)],o=i.dj.d(n,(function(e,t,i,n,o){class r extends i{constructor(e){super(),this.properties=e}getProgress(){super.getProgress();let e=0;switch(this.properties.customSize||this.properties.size){case n.XSMALL:e=16;break;case n.SMALL:e=24;break;case n.MEDIUM:e=32;break;case n.LARGE:e=48;break;case n.XLARGE:e=64;break;default:e=this.properties.customSize}e=e<=1?2:e,this.outerRadius=e/2;const t=this.outerRadius/4+1,i=t/2;this.innerRadius=this.outerRadius-i,this.circleAttrs={radius:this.innerRadius,strokeWidth:t,cx:0,cy:0},this.innerRadius=this.outerRadius-t;return 2*Math.PI*this.circleAttrs.radius}update(){super.update(),this.properties.currentProgress&&(this.properties.strokeGap=this.properties.currentProgress,this.properties.strokeDash=this.properties.value?this.properties.value*this.properties.currentProgress/100:this.properties.strokeGap/4),this.getProgress()}getView(){return super.getView(),this.properties.value<100?e`
+ <svg class="progressIndicatorSvg" xmlns:xlink="http://www.w3.org/1999/xlink" tabindex="${this.properties.tabindex}" width="100%" height="100%" viewBox="${-this.outerRadius} ${-this.outerRadius} ${2*this.outerRadius} ${2*this.outerRadius}">
+ <g>
+ <circle class="${this.properties.baseClass}-gutter" r="${this.circleAttrs.radius}" cx="${this.circleAttrs.cx}" cy="${this.circleAttrs.cy}" stroke-width="${this.circleAttrs.strokeWidth}"></circle>
+ <circle class="${this.properties.baseClass}" r="${this.circleAttrs.radius}" cx="${this.circleAttrs.cx}" cy="${this.circleAttrs.cy}" stroke-width="${this.circleAttrs.strokeWidth}"
+ stroke-dasharray="${this.properties.strokeDash}, ${this.properties.strokeGap}" stroke="${this.properties.color}"></circle>
+ <circle class="${this.properties.baseClass}" r="${this.circleAttrs.radius}" cx="${this.circleAttrs.cx}" cy="${this.circleAttrs.cy}" stroke-width="${this.circleAttrs.strokeWidth}"
+ stroke-dasharray="${1}, ${this.properties.strokeDash-1}, ${1}, ${this.properties.strokeGap-1}" stroke="${"#ffffff"}"></circle>
+ </g>
+ ${this.properties.border?e`<g class="outer-group">
+ <path d="M 0 ${-this.outerRadius} A ${this.outerRadius} ${this.outerRadius} 0 1 0 0 ${this.outerRadius} A ${this.outerRadius} ${this.outerRadius} 0 1 0 0 ${-this.outerRadius} Z M 0 ${1-this.outerRadius} A ${this.outerRadius-1} ${this.outerRadius-1} 0 1 1 0 ${this.outerRadius-1} A ${this.outerRadius-1} ${this.outerRadius-1} 0 1 1 0 ${1-this.outerRadius} Z"></path>
+ <path d="M 0 ${-this.innerRadius} A ${this.innerRadius} ${this.innerRadius} 0 1 0 0 ${this.innerRadius} A ${this.innerRadius} ${this.innerRadius} 0 1 0 0 ${-this.innerRadius} Z M 0 ${1-this.innerRadius} A ${this.innerRadius-1} ${this.innerRadius-1} 0 1 1 0 ${this.innerRadius-1} A ${this.innerRadius-1} ${this.innerRadius-1} 0 1 1 0 ${1-this.innerRadius} Z"></path>
+ </g>`:""}
+ </svg>`:e`
+ <svg class="progressIndicatorSvg" xmlns:xlink="http://www.w3.org/1999/xlink" tabindex="${this.properties.tabindex}" width="100%" height="100%" viewBox="${-this.outerRadius} ${-this.outerRadius} ${2*this.outerRadius} ${2*this.outerRadius}">
+ <g>
+ <circle class="${this.properties.baseClass}-gutter" r="${this.circleAttrs.radius}" cx="${this.circleAttrs.cx}" cy="${this.circleAttrs.cy}" stroke-width="${this.circleAttrs.strokeWidth}"></circle>
+ <circle class="${this.properties.baseClass}" r="${this.circleAttrs.radius}" cx="${this.circleAttrs.cx}" cy="${this.circleAttrs.cy}" stroke-width="${this.circleAttrs.strokeWidth}"
+ stroke-dasharray="${this.properties.strokeDash}, ${this.properties.strokeGap}" stroke="${this.properties.color}"></circle>
+ <circle class="${this.properties.baseClass}" r="${this.circleAttrs.radius}" cx="${this.circleAttrs.cx}" cy="${this.circleAttrs.cy}" stroke-width="${this.circleAttrs.strokeWidth}"
+ stroke-dasharray="${0}, ${this.properties.strokeDash}, ${0}, ${this.properties.strokeGap}" stroke="${"#ffffff"}"></circle>
+ </g>
+ ${this.properties.border?e`<g class="outer-group">
+ <path d="M 0 ${-this.outerRadius} A ${this.outerRadius} ${this.outerRadius} 0 1 0 0 ${this.outerRadius} A ${this.outerRadius} ${this.outerRadius} 0 1 0 0 ${-this.outerRadius} Z M 0 ${1-this.outerRadius} A ${this.outerRadius-1} ${this.outerRadius-1} 0 1 1 0 ${this.outerRadius-1} A ${this.outerRadius-1} ${this.outerRadius-1} 0 1 1 0 ${1-this.outerRadius} Z"></path>
+ <path d="M 0 ${-this.innerRadius} A ${this.innerRadius} ${this.innerRadius} 0 1 0 0 ${this.innerRadius} A ${this.innerRadius} ${this.innerRadius} 0 1 0 0 ${-this.innerRadius} Z M 0 ${1-this.innerRadius} A ${this.innerRadius-1} ${this.innerRadius-1} 0 1 1 0 ${this.innerRadius-1} A ${this.innerRadius-1} ${this.innerRadius-1} 0 1 1 0 ${1-this.innerRadius} Z"></path>
+ </g>`:""}
+ </svg>`}}return t.setView(o.SPINNER,r),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1339),i(1338)],o=i.dj.d(n,(function(e,t){"use strict";class i{static _isHexaColor(e){return/^#([0-9A-F]{3}){1,2}$/i.test(e)}static validate(n,o){switch(o){case"size":let r=Object.values(t);if("string"!=typeof n||!r.includes(n.toLowerCase()))throw new Error("Value of "+o+" property should be xsmall/small/medium/large/xlarge");break;case"type":if("string"!=typeof n||n.toLowerCase()!==e.SPINNER)throw new Error("Value of "+o+" property should be spinner");break;case"value":if(parseFloat(n)<0||parseFloat(n)>100)throw new Error("Value of "+o+" property should be Number between 0-100");if(isNaN(parseFloat(n)))throw new Error("Value of "+o+" property should be Number between 0-100");break;case"color":let a=i._isHexaColor(n);if("string"!=typeof n||!a)throw new Error("Value of "+o+" css should be in valid supported css color in hex code");break;case"customSize":if(isNaN(n)||parseFloat(n)<0||null===n)throw new Error("Value of "+o+" should be a Number greater than 0");break;case"border":if(void 0===n||"false"!==n.toString()&&"true"!==n.toString())throw new Error("Value of "+o+" should be a true or false value")}}static addStyles(e,t){e&&t&&Object.keys(t).length>0&&Object.keys(t).forEach(i=>{e.style[i]=t[i]})}static removeStyles(e,t){if(e&&t&&Array.isArray(t)&&t.length>0){let i=(e.getAttribute("style")||"").split(";");t.forEach(e=>{i=i.filter(t=>!1===t.trim().startsWith(e))}),i=i.filter(e=>e.trim().length>0);const n=i.join(";");e.setAttribute("style",n)}}static addAttributes(e,t){e&&t&&Object.keys(t).length>0&&Object.keys(t).forEach(i=>e.setAttribute(i,t[i]))}static removeAttributes(e,t){e&&t&&Array.isArray(t)&&t.length>0&&t.forEach(t=>{e.hasAttribute(t)&&e.removeAttributes(t)})}}return i}),e,t),e.exports=o},function(e,t){e.exports='<div class="mw-busyIndicator" data-dojo-attach-point="_busyOverlayNode">\n\t<div class="underlayNode" data-dojo-attach-point="_underlayNode"></div>\n\t<div class="spinnerBgPanel" data-dojo-attach-point="_spinnerBgPanel">\n\t\t<div class="spinnerNode" data-dojo-attach-point="_spinnerNode" ></div>\n\t</div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(211),i(217),i(213),i(209),i(219),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c,d,u,h,p,f,g,m,_,v,b,y,C;return{enable:function(e,t){if(!c){a.assert(e,"Must specify product"),a.assert(t,"Must specify scope"),h=e,p=t,c=!0;var i=this,n="/UIEventOverlayData/"+e.replace(/ /g,"_")+":"+t.replace(/ /g,"_");s.isRunning()||s.start(),s.subscribe(n,(function(e){var t=e.data.showShading||e.data.showNumbers;if(t){f=e.data.release,g=e.data.showShading,m=e.data.showNumbers,y=e.data.isIntegerMetric,_=e.data.useLogScale,v=e.data.maxMetric;var n=e.data.elementId,o=e.data.metric,r=e.data.isLabelKnown;b={};for(var a=0;a<n.length;a++)b[n[a]]?y?b[n[a]].metric+=o[a]:b[n[a]].metric=Math.max(o[a],b[n[a]].metric):b[n[a]]={metric:o[a],isLabelKnown:r[a]}}else g=!1,m=!1,b=null;t&&!d?i._addOverlays():!t&&d&&i._removeOverlays(),i._updateOverlays()}))}},_addOverlays:function(){var e=this;d=n.create("canvas",{id:"usage_overlay",width:window.innerWidth,height:window.innerHeight},document.body),r.set(d,{position:"absolute",left:0,top:0,"z-index":99,"pointer-events":"none"}),u=n.create("canvas",{id:"usage_popup_overlay",width:window.innerWidth,height:window.innerHeight},document.body),r.set(u,{position:"absolute",left:0,top:0,"z-index":1001,"pointer-events":"none"}),window.addEventListener("resize",(function(){d.width=window.innerWidth,d.height=window.innerHeight,u.width=window.innerWidth,u.height=window.innerHeight,e._updateOverlays()})),new MutationObserver((function(t){for(var i,n=0;n<t.length&&!i;n++)i="childList"===t[n].type;i&&e._addScrollListeners(document.body),e._updateOverlays()})).observe(document.body,{childList:!0,attributes:!0,subtree:!0}),this._scrollListener=t.hitch(this,this._updateOverlays)},_removeOverlays:function(){d&&(document.body.removeChild(d),d=null),u&&(document.body.removeChild(u),u=null)},_updateOverlays:function(){var e,t;d&&(e=d.getContext("2d"),t=o.getMarginBox(d),e.clearRect(0,0,t.w,t.h),this._drawUsageRecursive(e,document.body,0,0,99)),u&&(e=u.getContext("2d"),t=o.getMarginBox(u),e.clearRect(0,0,t.w,t.h),this._drawUsageRecursive(e,document.body,0,100,1e3))},_drawUsageRecursive:function(e,t,i,n,a){if("hidden"!==r.get(t,"visibility")&&"none"!==r.get(t,"display")){var s=r.get(t,"z-index"),l="auto"===s?i:s;if(l>=n&&l<=a&&this._drawUsage(e,t),t.children&&t.children.length>0){e.save();var c=o.position(t);e.beginPath(),e.rect(c.x,c.y,c.w,c.h),e.clip();for(var d=0;d<t.children.length;d++)this._drawUsageRecursive(e,t.children[d],l,n,a);e.restore()}}},_drawUsage:function(e,t){var i=this,n=t.getAttribute("data-tag");if(n){var r=b[n];if(r){var a=o.position(t);if(g&&(e.fillStyle=this._getHeatColor(r.metric),e.fillRect(a.x,a.y,a.w,a.h)),m&&this._drawNumber(e,a,r.metric),!r.isLabelKnown){var s=this._findText(t);s&&(r.isLabelKnown=!0,C?C[n]=s:((C={})[n]=s,setTimeout((function(){i._sendLabels(C),C=null}),0)))}}}},_findText:function(e){var t=e.getAttribute("data-text-content");if(t)return t;if(e.classList.contains("mwTextLine")&&(t=e.textContent))return t;if(e.children&&e.children.length>0)for(var i=0;i<e.children.length;i++)if(t=this._findText(e.children[i]))return t},_getHeatColor:function(e){var t=0;return e>0&&(t=.5*(t=_?Math.log(e)/Math.log(v):e/v)+.04),"rgba(212, 0 , 0, "+t+")"},_addScrollListeners:function(e){if(e.children&&e.children.length>0){e.addEventListener("scroll",this._scrollListener);for(var t=0;t<e.children.length;t++)this._addScrollListeners(e.children[t])}},_drawNumber:function(e,t,i){if(0!==i){var n=this._formatMetric(i);e.font="normal 14px Arial";var o=e.measureText(n).width+6,r=e.measureText("M").width+6,a=t.x+(t.w-o)/2,s=t.y+(t.h-r)/2;e.fillStyle="rgb(255, 255, 255)",e.fillRect(a,s,o,r),e.strokeStyle="rgb(128, 128, 128)",e.strokeRect(a,s,o,r),e.strokeStyle="rgb(0, 0, 0)",e.strokeText(n,a+3,s+r-3)}},_formatMetric:function(e){if(y){var t="";return e>=1e9?(e=(e+5e8)/1e9,t="G"):e>=1e6?(e=(e+5e5)/1e6,t="M"):e>=1e4&&(e=(e+500)/1e3,t="K"),e+t}var i;return i=e>=10?0:e>1?1:e>.01?2:3,e.toFixed(i)},_sendLabels:function(e){l.sendMessage({FEval:{function:"uieventdataviewer.internal.saveLabels",arguments:[h,p,f,Object.keys(e),Object.values(e)],nargout:0,priority:1,dequeMode:"ppe"}})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.GDS,detectionFunction:function(){return e.getPopulatedFeature("isGDSEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.SIMULINK,detectionFunction:function(){return e.getPopulatedFeature("isSimulinkCmdEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.LOGIN,detectionFunction:function(){return e.getPopulatedFeature("isLoginRequired")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.MATLAB_LOCAL,detectionFunction:function(){return!e.getPopulatedFeature("isLoginRequired")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.NATIVE_PUBLISH,detectionFunction:function(){return e.getPopulatedFeature("isNativePublishEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.UDC_FEEDBACK,detectionFunction:function(){return e.getPopulatedFeature("isUDCFeedbackEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.SET_PATH,detectionFunction:function(){return e.getPopulatedFeature("isSetPathEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.NATIVE_IMPORT_DATA,detectionFunction:function(){return e.getPopulatedFeature("isNativeImportDataEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.GDS_NOTIFICATIONS,detectionFunction:function(){return e.getPopulatedFeature("isGDSNotificationsEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.PREFERENCES,detectionFunction:function(){return e.getPopulatedFeature("isPreferencesEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.FEEDBACK,detectionFunction:function(){return e.getPopulatedFeature("isFeedbackEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.PUBLISH,detectionFunction:function(){return e.getPopulatedFeature("isPublishEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.ADDONS,detectionFunction:function(){return e.getPopulatedFeature("isAddOnsEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.LOGOUT,detectionFunction:function(){return e.getPopulatedFeature("isLogoutEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.FILTER_FILES_FOLDERS,detectionFunction:function(){return e.getPopulatedFeature("isFileFolderFilterEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(32),i(408),i(341)],o=i.dj.d(n,(function(e,t,i){return new t({name:i.FeatureNames.SESSION_TIMER,detectionFunction:function(){return e.getPopulatedFeature("isSessionTimerEnabled")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{supportedBrowsers:["ie","firefox","safari","chrome"],unsupportedList:{ie:[{version:"<11"}],safari:[{version:"<5.1"},{os:"iOS"}],chrome:[{os:"iOS"},{os:"Android"},{version:"<33"}],firefox:[{os:"Android"},{os:"iOS"},{version:"<38"}]}}}),e,t),e.exports=o},function(e,t,i){e.exports={versionNumber:"23.0",applicationName:"MOTW",defaultUserName:"匿名",login:"サインイン",logout:"サイン アウト",myAccount:"My Account",search:"ドキュメンテーションの検索",refresh:"更新",unsavedFilesWarning:"このページから移動すると、開いているファイルの未保存の変更が失われます。",FileDialogPlaceholder:"ファイル名",FolderDialogPlaceholder:"フォルダー名",newFileDialogTitle:"新規スクリプトの作成",newFileDialogLocationLabel:"新規スクリプトの場所:",newFileDialogNameLabel:"新規スクリプトの名前:",newLiveScriptDialogTitle:"新規ライブ スクリプトの作成",newLiveScriptDialogLocationLabel:"新規ライブ スクリプトの場所",newLiveScriptDialogNameLabel:"新規ライブ スクリプトの名前:",newLiveFunctionDialogTitle:"新規ライブ関数の作成",newLiveFunctionDialogLocationLabel:"新規ライブ関数の場所",newLiveFunctionDialogNameLabel:"新規ライブ関数の名前",newFunctionDialogTitle:"新規関数の作成",newFunctionDialogLocationLabel:"新規関数の場所:",newFunctionDialogNameLabel:"新規関数の名前:",newExampleDialogTitle:"新しい例の作成",newExampleDialogLocationLabel:"新しい例の場所:",newExampleDialogNameLabel:"新しい例の名前:",newClassDialogTitle:"新規クラスの作成",newClassDialogLocationLabel:"新規クラスの場所:",newClassDialogNameLabel:"新規クラスの名前:",newLiveClassDialogTitle:"新規ライブ クラスの作成",newLiveClassDialogLocationLabel:"新規ライブ クラスの場所",newLiveClassDialogNameLabel:"新規ライブ クラスの名前",newFolderDialogTitle:"新規フォルダーの作成",newFolderDialogNameLabel:"新規フォルダーの名前:",newNotebookDialogTitle:"新規 Notebook の作成",newNotebookDialogLocationLabel:"新規 Notebook の場所:",newNotebookDialogNameLabel:"新規 Notebook の名前:",saveAsDialogTitle:"名前を付けて保存",saveAsFileNameLabel:"名前:",saveAsFileDropDownLabel:"タイプ:",saveAsOptionMatlabFileValue:"m",saveAsOptionMatlabFileDesc:"MATLAB (.m)",saveAsOptionNotebookFileExt:"mln",saveAsOptionNotebookFileDesc:"Notebook (.mln)",saveAsOptionAllFileExt:"すべて",saveAsOptionAllFileDesc:"すべて (*.*)",saveUntitledBufferLiveEditorTitle:"MATLAB ライブ エディター",saveUntitledBufferEditorTitle:"MATLAB エディター",saveUntitledBufferDescription:'"{0}" に変更を保存しますか?',saveToReadOnlyFolderError:"'{0}' は読み取り専用です。\nファイルを保存するには、現在のフォルダーを変更してください。",invalidMFileExtensionError:"MATLAB 名にはサポートされている拡張子 (.m、.mlx) がなければなりません",invalidMFileNameError:"MATLAB 名は英字で始まり、英字、数字、およびアンダースコアのみを含んでいなければなりません。",mFileNameLengthError:"MATLAB ファイル名は 63 文字未満でなければなりません",invalidFileNameError:'次の文字はファイル名に使用できません: \\ / : * ? " < > |',fileNameLengthError:"ファイル名は 128 文字より長くできません",folderNameLengthError:"フォルダー名は 255 文字より長くはできません",fileOrFolderExistsError:"ファイルまたはフォルダーが既に存在します",currentFolderIsReadOnly:"選択されたフォルダーは書き込み可能ではありません",fileMustExist:"ファイルは選択されたフォルダー内になければなりません",noFileNameSpecified:"ファイルの新しい名前を入力してください",fileUploadLimitError:"アップロードできるのは 5 ファイルまでです",shadowedByPwd:"{0} は現在の作業フォルダーにおいてこのファイルより優先されるため、MATLAB はこのファイルを実行できません。",shadowedByPath:"{0} は MATLAB パスにおいてこのファイルより優先されるため、MATLAB はこのファイルを実行できません。",shadowerPcode:"が優先されます。P ファイルを削除するか、またはこのファイルで関数 pcode を実行してください。",shadowerMex:"が優先されます。影響を与えているファイルを削除して再度実行してください。",shadowerMlx:"が優先されます。\n\n{0} の名前を変更するか、これを MATLAB パスから削除して、再度実行してください。",shadowerMlapp:"が優先されます。\n\n{0} の名前を変更するか、これを MATLAB パスから削除して、再度実行してください。",notOnPath:"ファイル {0} は現在のフォルダーや MATLAB パス上で見つかりません。",fileCannotRun:"MATLAB はこのファイルを実行できません。",solutionChangeOrAdd:"このファイルを実行するには、MATLAB の現在のフォルダーを変更するか、そのフォルダーを MATLAB パスに追加します。",solutionChangeDir:"このファイルを実行するには、MATLAB の現在のフォルダーを変更しなければなりません。",addPath:"パスに追加",changeDir:"フォルダーの変更",errorLoadingTitle:"MATLAB ライブ エディター",errorLoadingText:"{0} の読み込みエラー",errorNewProjectTitle:"プロジェクトを作成",clearWorkspaceDialogTitle:"削除の確認",clearVariablesDialogMessage:"すべてのワークスペース変数を削除します。",clearAllVariablesFunctionsBreakpointsDialogMessage:"すべてのワークスペース変数と関数を削除します。",clearCommandsDialogTitle:"クリアの確認",clearCommandWindowDialogMessage:"コマンド ウィンドウからすべてのテキストをクリアします。",clearCommandHistoryDialogMessage:"コマンド履歴からすべてのコマンドをクリアします",newMenuLabel:"新規",newMenuDescription:"新規スクリプト/フォルダーを作成します",newFileLabel:"新規\nスクリプト",newFileListItemLabel:"スクリプト",newFileDescription:"現在のフォルダーに新規スクリプトを作成します",newLiveScriptLabel:"新規\nライブ スクリプト",newLiveScriptListItemLabel:"ライブ スクリプト",newLiveScriptDescription:"現在のフォルダーに新規ライブ スクリプトを作成します",newLiveFunctionLabel:"新規ライブ関数",newLiveFunctionListItemLabel:"ライブ関数",newLiveFunctionDescription:"現在のフォルダーに新規ライブ関数を作成します",newFunctionLabel:"関数",newExampleLabel:"例",newClassLabel:"クラス",newLiveClassLabel:"新規ライブ クラス",newLiveClassListItemLabel:"ライブ クラス",newLiveClassDescription:"現在のフォルダーに新規ライブ クラスを作成します",newProjectListItemLabel:"プロジェクト",newProjectListItemDescription:"新しい空のプロジェクトを作成します",newFromGitListItemLabel:"Git から",newNotebookLabel:"新規 Notebook",newNotebookDescription:"現在のフォルダーに新規 Notebook を作成します",setPathLabel:"パスの設定",setPathDescription:"MATLAB でファイルの検索に使用される検索パスを変更します",clearLabel:"ワークスペースの\nクリア",clearVariablesListItemLabel:"変数",clearDescription:"ワークスペースの変数をクリアします",clearAllLabel:"すべての関数と変数",clearAllDescription:"すべての関数と変数をクリアします",openLabel:"開く",openAsText:"テキストとして開く...",openAsTextDialogTitle:"テキストとして開く",alertMessagePcodedFile:"ファイル '{file}' を開けません。\nファイルはコンテンツを不明瞭化した P コード ファイルです。\n",openAsLiveScriptLabel:"ライブ スクリプトとして",openAsLiveFunctionLabel:"ライブ関数として",openLabelEllipsis:"開く...",openDescription:"ファイルを開きます",openShortcut:"Ctrl+O",showRecentFiles:"最近使用したファイル",simulinkLabel:"Simulink\nライブラリ",simulinkDescription:"Simulink ブロック ライブラリを開きます",importDataLabel:"データの\nインポート",importDataDescription:"ファイルからデータをインポートします",saveWorkspaceLabel:"ワークスペースの\n保存",saveWorkspaceDescription:"ワークスペース変数をファイルに保存します",newVariableLabel:"新規変数",newVariableDescription:"変数を作成して編集するため開きます",openVariableLabel:"変数を開く",openVariableDescription:"編集するためにワークスペース変数を開きます",openAsNotebookLabel:"Notebook として保存",openAsNotebookDescription:"Notebook としてのコピーを保存します",newFolderLabel:"フォルダー",uploadLabel:"アップロード",uploadDescription:"ファイルを現在のフォルダーにアップロードします",downloadLabel:"ダウンロード",downloadDescription:"選択したファイルをコンピューターにダウンロードします",saveLabel:"保存",saveMenuDescription:"",saveDescription:"変更されたファイルをすべて保存します",saveShortcut:"Ctrl+S",saveFigureAsLabel:"Figure に名前を付けて保存...",saveFigureAsDescription:"現在の Figure を Figure ファイルに保存します",stopLabel:"停止",stopDescription:"現在実行中のプロセスを停止します",actionsMenuLabel:"アクション",actionsMenuDescription:"選択項目のアクションです",fileHistoryShowLabel:"ファイル バージョンの表示",fileHistoryHideLabel:"ファイル バージョンの非表示",fileHistoryShowDescription:"アクティブ ファイルの履歴を表示します",fileHistoryHideDescription:"アクティブ ファイルの履歴を非表示にします",renameFileLabel:"ファイル名の変更",renameFolderLabel:"フォルダー名の変更",renameFileDescription:"選択されたファイルまたはフォルダーの名前を変更します",deleteFileLabel:"ファイルの削除",deleteFolderLabel:"フォルダーの削除",deleteFileDescription:"選択されたファイルまたはフォルダーを削除します",layoutLabel:"レイアウト",layoutDescription:"レイアウトの調整",setDefaultLayoutLabel:"2 列 (既定)",setDefaultLayoutDescription:"レイアウトを 2 列に設定します (既定)",setThreeColumnLabel:"3 列",setThreeColumnDescription:"3 列のレイアウトに設定します",setMinAllButCmdWinLabel:"コマンド ウィンドウ以外すべてを最小化",setMinAllButCmdWinDescription:"[コマンド ウィンドウ以外すべてを最小化] レイアウトを設定します",setCmdWinOnlyLabel:"コマンド ウィンドウのみ",setCmdWinOnlyDescription:"[コマンド ウィンドウのみ] レイアウトを設定します",showMenuLabel:"表示",currentFolderLabel:"現在のフォルダー",workspaceLabel:"ワークスペース",toolstripLabel:"ツールストリップ",commandHistoryLabel:"コマンド履歴",commandHistoryPopupLabel:"ポップアップ",commandHistoryClosedLabel:"閉じる",commandHistoryDockedLabel:"ドッキング",preferencesLabel:"基本設定",preferencesDescription:"基本設定を指定します",splitTitle:"分割",tabPositionTitle:"タブの位置",helpLabel:"ヘルプ",manageLicensesLabel:"ライセンスの管理",keyboardShortcutsLabel:"キーボード ショートカット",accessibilityLabel:"ユーザー補助機能",patentsLabel:"特許",helpListItemLabel:"ドキュメンテーション",helpDescription:"新しいウィンドウでヘルプを開きます",examplesLabel:"例",examplesDescription:"例を表示します",supportWebsiteLabel:"サポート Web サイト",supportWebsiteDescription:"MathWorks テクニカル サポートの Web サイトを開きます",learnMatlabLabel:"MATLAB の学習",learnMatlabDescription:"オンデマンド学習リソースにアクセスします",feedbackLabel:"フィードバック",feedbackDescription:"フィードバックを送信するかバグをレポートします",communityLabel:"コミュニティ",communityDescription:"MathWorks オンライン コミュニティにアクセスします",aboutLabel:"MATLAB について",clearCommandWindowLabel:"コマンドの\nクリア",clearCommandWindowListItemLabel:"コマンド ウィンドウ",clearCommandHistoryListItemLabel:"コマンド履歴",clearCommandWindowDescription:"コマンド ウィンドウ表示をクリアします (clc)",undoCmdLabel:"元に戻す",undoCmdDescription:"コマンド ウィンドウでの最後の編集を元に戻します",undoCmdShortcut:"Ctrl+Z",redoCmdLabel:"やり直し",redoCmdDescription:"コマンド ウィンドウでの最後の編集をやり直します",redoCmdShortcut:"Ctrl+Y",newFigureLabel:"Figure",newAppLabel:"アプリ",showCommandHistoryLabel:"履歴の\n表示",showCommandHistoryDescription:"コマンド履歴ウィンドウを表示します",hideCommandHistoryLabel:"履歴の\n非表示",hideCommandHistoryDescription:"コマンド履歴ウィンドウを非表示にします",favoriteCommandsFavoritesButtonLabel:"お気に入り",favoriteCommandsFavoritesButtonDescription:"お気に入りのコマンド",findFilesLabel:"ファイル検索",findFilesDescription:"名前と内容に基づいてファイルを検索します",plotsTabTitle:"プロット",editorTabTitle:"エディター",liveEditorTabTitle:"ライブ エディター",equationEditorTabTitle:"式",figureTabTitle:"Figure",allWidgetsTabTile:"すべてのウィジェット",selectionSectionTitle:"選択",plotsSectionTitle:"プロット",noVariables:"変数が選択されていません。",currentFolderSectionTitle:"現在のフォルダー",navigateSectionTitle:"ナビゲート",breakpointsSectionTitle:"ブレークポイント",runSectionTitle:"実行",fileHistoryTabTitle:"ファイル バージョン",historySectionTitle:"バージョン",browseSectionTitle:"参照",restoreSectionTitle:"元に戻す",toolsSectionTitle:"ツール",labelsSectionTitle:"ラベル",menuAndToolbarsSectionTitle:"メニューとツール バー",buttonsSectionTitle:"ボタン",splitButtonsSectionTitle:"分割ボタン",readOnly:" (読み取り専用)",commandNotSupported:"'{cmd}' コマンドは MATLAB Online でサポオートされていないため、実行できません。",commandWindowTitle:"コマンド ウィンドウ",fault:{genericFailureTitle:"MATLAB での問題",genericFailureMessage:"MATLAB で問題が発生しています。問題が解決しない場合は、テクニカル サポートに連絡してください。",noLongerAuthorizedTitle:"同時セッション",noLongerAuthorizedMessage:"別のセッションで MATLAB Online にログインしたため、ログアウトされました。",workerResponseFailureTitle:"MATLAB への通信の問題",workerResponseFailureMessage:"申し訳ありません。MATLAB との通信に問題が発生しました。\n\n再接続を試みていますので、お待ちください...\n\n最後のコマンドをもう一度実行しなければならない場合があります。問題が\n 解決しない場合は、ログアウトしてから再度ログインしてください。",workerNoLongerAvailableTitle:"MATLAB への通信の問題",workerNoLongerAvailableMessage:"MATLAB への接続が切断されました。再度ログインしてください。",connectionFaultTitle:"サーバーへの通信の問題",connectionFaultMessage:"申し訳ありません。サーバーへの接続が切断されました。[更新] を押して、ページを更新してみてください。",remoteLoadFaultTitle:"サーバーへの通信の問題",remoteLoadFaultMessage:"サーバーへの接続を確立できませんでした。問題が解決しない場合は、テクニカル サポートに連絡してください。",matlabCrashFaultTitle:"予期せぬ MATLAB エラー",matlabCrashFaultMessage:"MATLAB は内部的な問題が生じたため閉じる必要があります。",outOfMemoryFaultTitle:"メモリが足りません",outOfMemoryFaultMessage:'MATLAB セッションで使用されるメモリが、使用可能なメモリを超えました。「<a href="https://www.mathworks.com/help/matlab/matlab_prog/strategies-for-efficient-use-of-memory.html" target="_blank">メモリを効率的に使用するための対策</a>」のドキュメンテーションを参照してください。',restartMATLAB:"MATLAB Online の再起動"},browserNoticeTitle:"ブラウザーの注意",browserNoticeText:'ご使用中のブラウザーは、MATLAB Online 用に推奨されたブラウザー、またはそれと互換性のあるブラウザーのリストにありません。最適な状態でご使用いただくには、<a href="//www.mathworks.com/products/matlab-online/system-requirements.html" class="browserNotice" target="_blank">これらのブラウザー</a>のいずれかを使用することを推奨いたします。',exitMATLABDialogText:"本当に MATLAB を終了しますか?",exitMATLABDialogMessage:"MATLAB の終了",checkBoxMessage:"次回からこのプロンプトを表示しない",popupBlockedTitle:"ポップアップのブロック",popupBlockedText:"MATLAB は新しいブラウザー ウィンドウを開くことができませんでした。このサイトからのポップアップを許可してください。",audioNoticeTitle:"オーディオ再生での問題",audioUnsupportedBrowserText:'オーディオの再生はこのブラウザーでサポートされていません。オーディオを再生するには、<a href="//www.mathworks.com/products/matlab-online/system-requirements.html" class="browserNotice" target="_blank">このリスト</a>にある他のブラウザーを使用してください。',audioUnplayableText:"MATLAB はオーディオを再生できませんでした。この Web サイトからの自動再生を許可するには、ブラウザーの設定を確認してください。問題が解決しない場合は、テクニカル サポートに連絡してください。",addonsUnsupportedTitle:"アドオン エクスプローラーは利用できません",addonsUnsupportedText:'アドオン エクスプローラーはここでは利用できません。代わりに <a href="https://www.mathworks.com/matlabcentral/fileexchange/" target="_blank">File Exchange</a> を使用してください。',geckoLabel:"Geck の作成",geckoDescription:"Geck を作成します"}},function(e,t,i){e.exports={versionNumber:"23.0",applicationName:"MOTW",defaultUserName:"익명",login:"로그인",logout:"로그아웃",myAccount:"내 계정",search:"도움말 검색",refresh:"새로 고침",unsavedFilesWarning:"이 페이지에서 나가면 열려 있는 파일의 저장하지 않은 변경 내용이 손실됩니다.",FileDialogPlaceholder:"파일 이름",FolderDialogPlaceholder:"폴더 이름",newFileDialogTitle:"새 스크립트 만들기",newFileDialogLocationLabel:"새 스크립트 위치:",newFileDialogNameLabel:"새 스크립트 이름:",newLiveScriptDialogTitle:"새 라이브 스크립트 만들기",newLiveScriptDialogLocationLabel:"새 라이브 스크립트 위치",newLiveScriptDialogNameLabel:"새 라이브 스크립트 이름:",newLiveFunctionDialogTitle:"새 라이브 함수 만들기",newLiveFunctionDialogLocationLabel:"새 라이브 함수 위치",newLiveFunctionDialogNameLabel:"새 라이브 함수 이름",newFunctionDialogTitle:"새 함수 만들기",newFunctionDialogLocationLabel:"새 함수 위치:",newFunctionDialogNameLabel:"새 함수 이름:",newExampleDialogTitle:"새 예제 만들기",newExampleDialogLocationLabel:"새 예제 위치:",newExampleDialogNameLabel:"새 예제 이름:",newClassDialogTitle:"새 클래스 만들기",newClassDialogLocationLabel:"새 클래스 위치:",newClassDialogNameLabel:"새 클래스 이름:",newLiveClassDialogTitle:"새 라이브 클래스 만들기",newLiveClassDialogLocationLabel:"새 라이브 클래스 위치",newLiveClassDialogNameLabel:"새 라이브 클래스 이름",newFolderDialogTitle:"새 폴더 만들기",newFolderDialogNameLabel:"새 폴더 이름:",newNotebookDialogTitle:"새 Notebook 만들기",newNotebookDialogLocationLabel:"새 Notebook 위치:",newNotebookDialogNameLabel:"새 Notebook 이름:",saveAsDialogTitle:"다른 이름으로 저장",saveAsFileNameLabel:"이름:",saveAsFileDropDownLabel:"유형:",saveAsOptionMatlabFileValue:"m",saveAsOptionMatlabFileDesc:"MATLAB(.m)",saveAsOptionNotebookFileExt:"mln",saveAsOptionNotebookFileDesc:"Notebook(.mln)",saveAsOptionAllFileExt:"모두",saveAsOptionAllFileDesc:"모든 파일(*.*)",saveUntitledBufferLiveEditorTitle:"MATLAB 라이브 편집기",saveUntitledBufferEditorTitle:"MATLAB 편집기",saveUntitledBufferDescription:'변경 내용을 "{0}"에 저장하시겠습니까?',saveToReadOnlyFolderError:"'{0}'은(는) 읽기 전용입니다.\n파일을 저장하려면 현재 폴더를 변경하십시오.",invalidMFileExtensionError:"MATLAB 이름은 지원되는 확장자(.m, .mlx)를 가져야 함",invalidMFileNameError:"MATLAB 이름은 영문자로 시작해야 하며 영문자, 숫자, 밑줄만 포함할 수 있습니다.",mFileNameLengthError:"MATLAB 파일 이름은 63자 미만이어야 함",invalidFileNameError:'다음 문자는 파일 이름에 사용할 수 없습니다. \\ / : * ? " < > |',fileNameLengthError:"파일 이름은 128자를 초과할 수 없음",folderNameLengthError:"폴더 이름은 255자를 초과할 수 없음",fileOrFolderExistsError:"파일이나 폴더가 이미 존재함",currentFolderIsReadOnly:"선택한 폴더에 쓸 수 없음",fileMustExist:"선택한 폴더에 파일이 존재해야 함",noFileNameSpecified:"파일의 새 이름을 입력하십시오.",fileUploadLimitError:"최대 5개의 파일을 업로드할 수 있음",shadowedByPwd:"현재 작업 폴더에서 {0}이(가) 이 파일을 가리고 있어 MATLAB에서 해당 파일을 실행할 수 없습니다.",shadowedByPath:"MATLAB 경로에서 {0}이(가) 이 파일을 가리고 있어 MATLAB에서 해당 파일을 실행할 수 없습니다.",shadowerPcode:"이(가) 이 파일을 가리고 있습니다. P 파일을 삭제하거나 이 파일에 대해 pcode 함수를 실행하십시오.",shadowerMex:"이(가) 이 파일을 가리고 있습니다. 가리는 파일을 삭제하고 다시 시도하십시오.",shadowerMlx:"이(가) 이 파일을 가리고 있습니다.\n\n{0}의 이름을 바꾸거나 MATLAB 경로에서 이 파일을 제거한 후 다시 시도하십시오.",shadowerMlapp:"이(가) 이 파일을 가리고 있습니다.\n\n{0}의 이름을 바꾸거나 MATLAB 경로에서 이 파일을 제거한 후 다시 시도하십시오.",notOnPath:"{0} 파일을 현재 폴더 또는 MATLAB 경로에서 찾을 수 없습니다.",fileCannotRun:"다음과 같은 이유로 MATLAB에서 이 파일을 실행할 수 없습니다.",solutionChangeOrAdd:"이 파일을 실행하려면 MATLAB 현재 폴더를 변경하거나 해당 폴더를 MATLAB 경로에 추가하십시오.",solutionChangeDir:"이 파일을 실행하려면 MATLAB 현재 폴더를 변경해야 합니다.",addPath:"경로에 추가",changeDir:"폴더 변경",errorLoadingTitle:"MATLAB 라이브 편집기",errorLoadingText:"{0}을(를) 불러오는 중 오류가 발생함",errorNewProjectTitle:"프로젝트 만들기",clearWorkspaceDialogTitle:"삭제 확인",clearVariablesDialogMessage:"모든 작업 공간 변수가 삭제됩니다.",clearAllVariablesFunctionsBreakpointsDialogMessage:"모든 작업 공간 변수와 함수가 삭제됩니다.",clearCommandsDialogTitle:"지우기 확인",clearCommandWindowDialogMessage:"명령 창의 모든 텍스트가 지워집니다.",clearCommandHistoryDialogMessage:"명령 내역의 모든 명령이 지워집니다.",newMenuLabel:"새로 만들기",newMenuDescription:"새 스크립트나 폴더를 만듭니다.",newFileLabel:"새\n스크립트",newFileListItemLabel:"스크립트",newFileDescription:"현재 폴더에 새 스크립트를 만듭니다.",newLiveScriptLabel:"새\n라이브 스크립트",newLiveScriptListItemLabel:"라이브 스크립트",newLiveScriptDescription:"현재 폴더에 새 라이브 스크립트를 만듭니다.",newLiveFunctionLabel:"새 라이브 함수",newLiveFunctionListItemLabel:"라이브 함수",newLiveFunctionDescription:"현재 폴더에 새 라이브 함수를 만듭니다.",newFunctionLabel:"함수",newExampleLabel:"예제",newClassLabel:"클래스",newLiveClassLabel:"새 라이브 클래스",newLiveClassListItemLabel:"라이브 클래스",newLiveClassDescription:"현재 폴더에 새 라이브 클래스를 만듭니다.",newProjectListItemLabel:"프로젝트",newProjectListItemDescription:"빈 프로젝트를 새로 만듭니다.",newFromGitListItemLabel:"Git에서",newNotebookLabel:"새 Notebook",newNotebookDescription:"현재 폴더에 새 Notebook을 만듭니다.",setPathLabel:"경로 설정",setPathDescription:"MATLAB에서 파일을 찾는 데 사용하는 검색 경로를 설정합니다.",clearLabel:"작업 공간\n지우기",clearVariablesListItemLabel:"변수",clearDescription:"작업 공간 변수를 지웁니다.",clearAllLabel:"모든 함수와 변수",clearAllDescription:"모든 함수와 변수를 지웁니다.",openLabel:"열기",openAsText:"텍스트로 열기...",openAsTextDialogTitle:"텍스트로 열기",alertMessagePcodedFile:"파일 '{file}'을(를) 열 수 없습니다.\n해독하기 어렵게 만든 P 코드 파일입니다.\n",openAsLiveScriptLabel:"라이브 스크립트로",openAsLiveFunctionLabel:"라이브 함수로",openLabelEllipsis:"열기...",openDescription:"파일을 엽니다.",openShortcut:"Ctrl+O",showRecentFiles:"최근에 사용한 파일",simulinkLabel:"Simulink\n라이브러리",simulinkDescription:"Simulink 블록 라이브러리를 엽니다.",importDataLabel:"데이터\n가져오기",importDataDescription:"파일에서 데이터를 가져옵니다.",saveWorkspaceLabel:"작업 공간\n저장",saveWorkspaceDescription:"파일에 작업 공간 변수를 저장합니다.",newVariableLabel:"새 변수",newVariableDescription:"변수를 생성하고 편집을 위해 엽니다.",openVariableLabel:"변수 열기",openVariableDescription:"편집을 위해 작업 공간 변수를 엽니다.",openAsNotebookLabel:"Notebook으로 저장",openAsNotebookDescription:"복사본을 Notebook으로 저장합니다.",newFolderLabel:"폴더",uploadLabel:"업로드",uploadDescription:"파일을 현재 폴더에 업로드합니다.",downloadLabel:"다운로드",downloadDescription:"선택한 파일을 컴퓨터에 다운로드합니다.",saveLabel:"저장",saveMenuDescription:"",saveDescription:"수정된 파일을 모두 저장합니다.",saveShortcut:"Ctrl+S",saveFigureAsLabel:"다른 이름으로 Figure 저장...",saveFigureAsDescription:"현재 Figure를 Figure 파일에 저장합니다.",stopLabel:"중지",stopDescription:"현재 실행 중인 프로세스를 중지합니다.",actionsMenuLabel:"동작",actionsMenuDescription:"선택한 항목에 대한 동작",fileHistoryShowLabel:"파일 버전 표시",fileHistoryHideLabel:"파일 버전 숨기기",fileHistoryShowDescription:"활성 파일의 내역을 표시합니다.",fileHistoryHideDescription:"활성 파일의 내역을 숨깁니다.",renameFileLabel:"파일 이름 바꾸기",renameFolderLabel:"폴더 이름 바꾸기",renameFileDescription:"선택한 파일이나 폴더의 이름을 바꿉니다.",deleteFileLabel:"파일 삭제",deleteFolderLabel:"폴더 삭제",deleteFileDescription:"선택한 파일이나 폴더를 삭제합니다.",layoutLabel:"레이아웃",layoutDescription:"레이아웃을 조정합니다.",setDefaultLayoutLabel:"2열(디폴트 값)",setDefaultLayoutDescription:"레이아웃을 2열로 설정합니다(디폴트 값)",setThreeColumnLabel:"3열",setThreeColumnDescription:"3열 레이아웃을 설정합니다.",setMinAllButCmdWinLabel:"명령 창을 제외하고 모두 최소화",setMinAllButCmdWinDescription:"명령 창을 제외하고 모두 최소화하도록 레이아웃을 설정합니다",setCmdWinOnlyLabel:"명령 창만",setCmdWinOnlyDescription:"명령 창만 표시하도록 레이아웃을 설정합니다",showMenuLabel:"표시",currentFolderLabel:"현재 폴더",workspaceLabel:"작업 공간",toolstripLabel:"툴스트립",commandHistoryLabel:"명령 내역",commandHistoryPopupLabel:"팝업",commandHistoryClosedLabel:"닫힘",commandHistoryDockedLabel:"도킹됨",preferencesLabel:"기본 설정",preferencesDescription:"기본 설정을 지정합니다.",splitTitle:"분할",tabPositionTitle:"탭 위치",helpLabel:"도움말",manageLicensesLabel:"라이선스 관리",keyboardShortcutsLabel:"바로 가기 키",accessibilityLabel:"손쉬운 사용",patentsLabel:"특허",helpListItemLabel:"문서",helpDescription:"새 창에서 도움말을 엽니다.",examplesLabel:"예제",examplesDescription:"예제를 봅니다.",supportWebsiteLabel:"지원 웹 사이트",supportWebsiteDescription:"MathWorks 기술 지원 웹 사이트를 엽니다.",learnMatlabLabel:"MATLAB에 대해 알아보기",learnMatlabDescription:"온디맨드 학습 자료에 액세스합니다.",feedbackLabel:"사용자 의견",feedbackDescription:"사용자 의견을 보내거나 버그를 보고합니다.",communityLabel:"커뮤니티",communityDescription:"MathWorks 온라인 커뮤니티에 액세스합니다.",aboutLabel:"MATLAB 정보",clearCommandWindowLabel:"명령\n지우기",clearCommandWindowListItemLabel:"명령 창",clearCommandHistoryListItemLabel:"명령 내역",clearCommandWindowDescription:"명령 창 표시 내용을 지웁니다(clc).",undoCmdLabel:"실행 취소",undoCmdDescription:"명령 창에서 마지막 편집 작업을 실행 취소합니다.",undoCmdShortcut:"Ctrl+Z",redoCmdLabel:"다시 실행",redoCmdDescription:"명령 창에서 마지막 편집 작업을 다시 실행합니다.",redoCmdShortcut:"Ctrl+Y",newFigureLabel:"Figure",newAppLabel:"앱",showCommandHistoryLabel:"내역\n표시",showCommandHistoryDescription:"명령 내역 창을 표시합니다.",hideCommandHistoryLabel:"내역\n숨기기",hideCommandHistoryDescription:"명령 내역 창을 숨깁니다.",favoriteCommandsFavoritesButtonLabel:"즐겨찾기",favoriteCommandsFavoritesButtonDescription:"즐겨찾기 명령",findFilesLabel:"파일 찾기",findFilesDescription:"이름 또는 내용을 기반으로 파일을 검색합니다.",plotsTabTitle:"플롯",editorTabTitle:"편집기",liveEditorTabTitle:"라이브 편집기",equationEditorTabTitle:"수식",figureTabTitle:"Figure",allWidgetsTabTile:"모든 위젯",selectionSectionTitle:"선택",plotsSectionTitle:"플롯",noVariables:"변수가 선택되지 않았습니다.",currentFolderSectionTitle:"현재 폴더",navigateSectionTitle:"탐색",breakpointsSectionTitle:"중단점",runSectionTitle:"실행",fileHistoryTabTitle:"파일 버전",historySectionTitle:"버전",browseSectionTitle:"찾아보기",restoreSectionTitle:"복원",toolsSectionTitle:"툴",labelsSectionTitle:"레이블",menuAndToolbarsSectionTitle:"메뉴 및 도구 모음",buttonsSectionTitle:"버튼",splitButtonsSectionTitle:"분할 버튼",readOnly:" [읽기 전용]",commandNotSupported:"'{cmd}' 명령은 MATLAB Online에서 지원되지 않기 때문에 실행할 수 없습니다.",commandWindowTitle:"명령 창",fault:{genericFailureTitle:"MATLAB에 문제 발생",genericFailureMessage:"MATLAB에 문제가 발생했습니다. 문제가 지속될 경우 기술 지원팀에 문의하십시오.",noLongerAuthorizedTitle:"동시 세션",noLongerAuthorizedMessage:"다른 세션에서 MATLAB Online에 로그인했기 때문에 로그아웃되었습니다.",workerResponseFailureTitle:"MATLAB 통신 문제",workerResponseFailureMessage:"죄송합니다. MATLAB과 통신하는 중 문제가 발생했습니다.\n\n다시 연결하려고 합니다. 기다려 주십시오.\n\n마지막 명령을 반복해야 할 수 있습니다. 문제가\n 지속될 경우, 로그아웃한 후 다시 로그인하십시오.",workerNoLongerAvailableTitle:"MATLAB 통신 문제",workerNoLongerAvailableMessage:"MATLAB과의 연결이 끊어졌습니다. 다시 로그인하십시오.",connectionFaultTitle:"서버 통신 문제",connectionFaultMessage:"죄송합니다. 서버와의 연결이 끊어졌습니다. [새로 고침]을 눌러 페이지를 새로 고쳐 보십시오.",remoteLoadFaultTitle:"서버 통신 문제",remoteLoadFaultMessage:"서버에 연결하지 못했습니다. 문제가 지속될 경우 기술 지원팀에 문의하십시오.",matlabCrashFaultTitle:"예기치 않은 MATLAB 오류",matlabCrashFaultMessage:"MATLAB에서 내부 문제가 발생하여 닫아야 합니다.",outOfMemoryFaultTitle:"메모리 부족",outOfMemoryFaultMessage:'MATLAB 세션에 사용된 메모리가 가용 메모리를 초과했습니다. <a href="https://www.mathworks.com/help/matlab/matlab_prog/strategies-for-efficient-use-of-memory.html" target="_blank">효율적인 메모리 사용을 위한 전략</a> 문서를 참조하십시오.',restartMATLAB:"MATLAB Online 다시 시작"},browserNoticeTitle:"브라우저 알림",browserNoticeText:'사용 중인 브라우저가 MATLAB Online에서 권장하거나 호환되는 브라우저 목록에 없습니다. 최적의 사용을 위해 <a href="//www.mathworks.com/products/matlab-online/system-requirements.html" class="browserNotice" target="_blank">여기 나온 브라우저</a> 중 하나를 사용할 것을 권장합니다.',exitMATLABDialogText:"MATLAB을 종료하시겠습니까?",exitMATLABDialogMessage:"MATLAB 종료",checkBoxMessage:"이 메시지를 다시 표시하지 않음",popupBlockedTitle:"팝업 차단됨",popupBlockedText:"MATLAB이 새 브라우저 창을 열 수 없습니다. 이 사이트의 팝업을 허용하십시오.",audioNoticeTitle:"오디오 재생에 문제가 있음",audioUnsupportedBrowserText:'이 브라우저에서는 오디오 재생이 지원되지 않습니다. 오디오를 재생하려면 <a href="//www.mathworks.com/products/matlab-online/system-requirements.html" class="browserNotice" target="_blank">이 목록</a>에 있는 다른 브라우저를 사용하십시오.',audioUnplayableText:"MATLAB이 오디오를 재생할 수 없습니다. 브라우저 설정을 확인하여 이 웹 사이트의 자동 재생을 허용하십시오. 문제가 지속될 경우 기술 지원팀에 문의하십시오.",addonsUnsupportedTitle:"애드온 탐색기를 사용할 수 없음",addonsUnsupportedText:'이 제품에서는 애드온 탐색기를 사용할 수 없습니다. 대신 <a href="https://www.mathworks.com/matlabcentral/fileexchange/" target="_blank">File Exchange</a>를 사용하십시오.',geckoLabel:"Geck 작성",geckoDescription:"Geck을 작성합니다."}},function(e,t,i){e.exports={versionNumber:"23.0",applicationName:"MOTW",defaultUserName:"匿名",login:"登录",logout:"注销",myAccount:"我的帐户",search:"搜索文档",refresh:"刷新",unsavedFilesWarning:"如果您导航离开此页面,则会丢失所打开的文件中的未保存更改。",FileDialogPlaceholder:"文件名",FolderDialogPlaceholder:"文件夹名称",newFileDialogTitle:"创建新脚本",newFileDialogLocationLabel:"新脚本位置:",newFileDialogNameLabel:"新脚本名称:",newLiveScriptDialogTitle:"创建新的实时脚本",newLiveScriptDialogLocationLabel:"新实时脚本位置",newLiveScriptDialogNameLabel:"新实时脚本名称:",newLiveFunctionDialogTitle:"创建新实时函数",newLiveFunctionDialogLocationLabel:"新实时函数位置",newLiveFunctionDialogNameLabel:"新实时函数名称",newFunctionDialogTitle:"创建新函数",newFunctionDialogLocationLabel:"新函数位置:",newFunctionDialogNameLabel:"新函数名称:",newExampleDialogTitle:"创建新示例",newExampleDialogLocationLabel:"新示例位置:",newExampleDialogNameLabel:"新示例名称:",newClassDialogTitle:"创建新类",newClassDialogLocationLabel:"新类位置:",newClassDialogNameLabel:"新类名称:",newLiveClassDialogTitle:"创建新实时类",newLiveClassDialogLocationLabel:"新实时类位置",newLiveClassDialogNameLabel:"新实时类名称",newFolderDialogTitle:"创建新文件夹",newFolderDialogNameLabel:"新文件夹名称:",newNotebookDialogTitle:"创建新 Notebook",newNotebookDialogLocationLabel:"新 Notebook 位置:",newNotebookDialogNameLabel:"新 Notebook 名称:",saveAsDialogTitle:"另存为",saveAsFileNameLabel:"名称:",saveAsFileDropDownLabel:"类型:",saveAsOptionMatlabFileValue:"m",saveAsOptionMatlabFileDesc:"MATLAB (.m)",saveAsOptionNotebookFileExt:"mln",saveAsOptionNotebookFileDesc:"Notebook (.mln)",saveAsOptionAllFileExt:"所有",saveAsOptionAllFileDesc:"所有(*.*)",saveUntitledBufferLiveEditorTitle:"MATLAB 实时编辑器",saveUntitledBufferEditorTitle:"MATLAB 编辑器",saveUntitledBufferDescription:'是否保存对 "{0}" 的更改?',saveToReadOnlyFolderError:"'{0}' 为只读。\n要保存文件,请更改当前文件夹。",invalidMFileExtensionError:"MATLAB 名称必须有支持的扩展名(.m、.mlx)",invalidMFileNameError:"MATLAB 名称必须以字母开头,并且只能包含字母、数字和下划线。",mFileNameLengthError:"MATLAB 文件名的长度不应少于 63 个字符",invalidFileNameError:'以下字符在文件名中无效: \\ / : * ? " < > |',fileNameLengthError:"文件名的长度不能超过 128 个字符",folderNameLengthError:"文件夹名称的长度不能超过 255 个字符",fileOrFolderExistsError:"文件或文件夹已存在",currentFolderIsReadOnly:"选定的文件夹不可写",fileMustExist:"选定的文件夹中必须存在该文件",noFileNameSpecified:"请为文件输入新名称",fileUploadLimitError:"最多可以上传 5 个文件",shadowedByPwd:"MATLAB 无法运行该文件,因为当前工作文件夹中存在 {0},导致该文件被遮蔽。",shadowedByPath:"MATLAB 无法运行该文件,因为 MATLAB 路径中存在 {0},导致该文件被遮蔽。",shadowerPcode:"遮蔽了它。请删除 P 文件,或对此文件运行 pcode 函数。",shadowerMex:"遮蔽了它。请删除遮蔽文件,然后重试。",shadowerMlx:"遮蔽了它。\n\n请重命名 {0} 或将其从 MATLAB 路径中删除,然后重试。",shadowerMlapp:"遮蔽了它。\n\n请重命名 {0} 或将其从 MATLAB 路径中删除,然后重试。",notOnPath:"在当前文件夹或 MATLAB 路径中未找到文件 {0}。",fileCannotRun:"MATLAB 无法运行该文件,因为",solutionChangeOrAdd:"要运行此文件,您可以更改 MATLAB 当前文件夹,或者将其文件夹添加到 MATLAB 路径。",solutionChangeDir:"要运行此文件,您必须更改 MATLAB 当前文件夹。",addPath:"添加到路径",changeDir:"更改文件夹",errorLoadingTitle:"MATLAB 实时编辑器",errorLoadingText:"加载 {0} 时出错",errorNewProjectTitle:"创建工程",clearWorkspaceDialogTitle:"确认删除",clearVariablesDialogMessage:"所有工作区变量都将被删除。",clearAllVariablesFunctionsBreakpointsDialogMessage:"所有工作区变量和函数都将被删除。",clearCommandsDialogTitle:"确认清除",clearCommandWindowDialogMessage:"命令行窗口中的所有文本都将被清除。",clearCommandHistoryDialogMessage:"命令历史记录中的所有命令都将被清除",newMenuLabel:"新建",newMenuDescription:"创建新脚本/文件夹",newFileLabel:"新建\n脚本",newFileListItemLabel:"脚本",newFileDescription:"在当前文件夹中创建新脚本",newLiveScriptLabel:"新建实时脚本\n",newLiveScriptListItemLabel:"实时脚本",newLiveScriptDescription:"无法在当前文件夹中创建新的实时脚本",newLiveFunctionLabel:"新建实时函数",newLiveFunctionListItemLabel:"实时函数",newLiveFunctionDescription:"在当前文件夹中创建新实时函数",newFunctionLabel:"函数",newExampleLabel:"示例",newClassLabel:"类",newLiveClassLabel:"新建实时类",newLiveClassListItemLabel:"实时类",newLiveClassDescription:"在当前文件夹中创建新实时类",newProjectListItemLabel:"工程",newProjectListItemDescription:"创建新空白工程",newFromGitListItemLabel:"从 Git 创建",newNotebookLabel:"新建 Notebook",newNotebookDescription:"在当前文件夹中创建新 Notebook",setPathLabel:"设置路径",setPathDescription:"更改 MATLAB 搜索路径",clearLabel:"清空\n工作区",clearVariablesListItemLabel:"变量",clearDescription:"清除工作区变量",clearAllLabel:"所有函数和变量",clearAllDescription:"清除所有函数和变量",openLabel:"打开",openAsText:"以文本方式打开...",openAsTextDialogTitle:"以文本方式打开",alertMessagePcodedFile:"无法打开文件 '{file}'。\n文件是内容不明确的 P 代码文件。\n",openAsLiveScriptLabel:"作为实时脚本",openAsLiveFunctionLabel:"作为实时函数",openLabelEllipsis:"打开...",openDescription:"打开文件",openShortcut:"Ctrl+O",showRecentFiles:"最近使用的文件",simulinkLabel:"Simulink 库\n",simulinkDescription:"打开 Simulink 模块库",importDataLabel:"导入数据\n",importDataDescription:"导入文件中的数据",saveWorkspaceLabel:"保存\n工作区",saveWorkspaceDescription:"将工作区变量保存到文件",newVariableLabel:"新建变量",newVariableDescription:"创建并打开变量进行编辑",openVariableLabel:"打开变量",openVariableDescription:"打开工作区变量进行编辑",openAsNotebookLabel:"另存为 Notebook",openAsNotebookDescription:"将副本另存为 Notebook",newFolderLabel:"文件夹",uploadLabel:"上传",uploadDescription:"将文件上传到当前文件夹",downloadLabel:"下载",downloadDescription:"将选定的文件下载到您的计算机",saveLabel:"保存",saveMenuDescription:"",saveDescription:"保存所有已修改的文件",saveShortcut:"Ctrl+S",saveFigureAsLabel:"将图窗另存为...",saveFigureAsDescription:"将当前图窗保存到图窗文件",stopLabel:"停止",stopDescription:"停止当前正在执行的进程",actionsMenuLabel:"操作",actionsMenuDescription:"针对选定项目执行的操作",fileHistoryShowLabel:"显示文件版本",fileHistoryHideLabel:"隐藏文件版本",fileHistoryShowDescription:"显示活动文件的历史记录",fileHistoryHideDescription:"隐藏活动文件的历史记录",renameFileLabel:"重命名文件",renameFolderLabel:"重命名文件夹",renameFileDescription:"重命名选定的文件或文件夹",deleteFileLabel:"删除文件",deleteFolderLabel:"删除文件夹",deleteFileDescription:"删除选定的文件或文件夹",layoutLabel:"布局",layoutDescription:"调整布局",setDefaultLayoutLabel:"两栏(默认)",setDefaultLayoutDescription:"将布局设置为两栏(默认)",setThreeColumnLabel:"三栏",setThreeColumnDescription:"设置三栏布局",setMinAllButCmdWinLabel:"最小化所有窗口(命令行窗口除外)",setMinAllButCmdWinDescription:"设置最小化所有布局(命令行窗口除外)",setCmdWinOnlyLabel:"仅命令行窗口",setCmdWinOnlyDescription:"设置仅命令行窗口布局",showMenuLabel:"显示",currentFolderLabel:"当前文件夹",workspaceLabel:"工作区",toolstripLabel:"工具条",commandHistoryLabel:"命令历史记录",commandHistoryPopupLabel:"弹出",commandHistoryClosedLabel:"关闭",commandHistoryDockedLabel:"停靠",preferencesLabel:"预设项",preferencesDescription:"指定预设项",splitTitle:"拆分",tabPositionTitle:"选项卡位置",helpLabel:"帮助",manageLicensesLabel:"管理许可证",keyboardShortcutsLabel:"键盘快捷方式",accessibilityLabel:"辅助功能",patentsLabel:"专利",helpListItemLabel:"文档",helpDescription:"在新窗口中打开帮助",examplesLabel:"示例",examplesDescription:"查看示例",supportWebsiteLabel:"支持网站",supportWebsiteDescription:"打开 MathWorks 技术支持网站",learnMatlabLabel:"了解 MATLAB",learnMatlabDescription:"按需访问学习资源",feedbackLabel:"反馈",feedbackDescription:"向我们发送反馈或报告错误",communityLabel:"社区",communityDescription:"访问 MathWorks 在线社区",aboutLabel:"关于 MATLAB",clearCommandWindowLabel:"清除命令\n",clearCommandWindowListItemLabel:"命令行窗口",clearCommandHistoryListItemLabel:"命令历史记录",clearCommandWindowDescription:"清除命令行窗口显示内容(clc)",undoCmdLabel:"撤消",undoCmdDescription:"撤消命令行窗口中的上一次编辑",undoCmdShortcut:"Ctrl+Z",redoCmdLabel:"重做",redoCmdDescription:"重做命令行窗口中的上一次编辑",redoCmdShortcut:"Ctrl+Y",newFigureLabel:"图窗",newAppLabel:"App",showCommandHistoryLabel:"显示\n历史记录",showCommandHistoryDescription:"显示命令历史记录窗口",hideCommandHistoryLabel:"隐藏\n历史记录",hideCommandHistoryDescription:"隐藏命令历史记录窗口",favoriteCommandsFavoritesButtonLabel:"收藏夹",favoriteCommandsFavoritesButtonDescription:"收藏命令",findFilesLabel:"查找文件",findFilesDescription:"基于名称或内容搜索文件",plotsTabTitle:"绘图",editorTabTitle:"编辑器",liveEditorTabTitle:"实时编辑器",equationEditorTabTitle:"方程",figureTabTitle:"图窗",allWidgetsTabTile:"所有小组件",selectionSectionTitle:"所选内容",plotsSectionTitle:"绘图",noVariables:"未选择变量。",currentFolderSectionTitle:"当前文件夹",navigateSectionTitle:"导航",breakpointsSectionTitle:"断点",runSectionTitle:"运行",fileHistoryTabTitle:"文件版本",historySectionTitle:"版本",browseSectionTitle:"浏览",restoreSectionTitle:"还原",toolsSectionTitle:"工具",labelsSectionTitle:"标签",menuAndToolbarsSectionTitle:"菜单和工具栏",buttonsSectionTitle:"按钮",splitButtonsSectionTitle:"拆分按钮",readOnly:" [只读]",commandNotSupported:"无法运行 '{cmd}' 命令,因为 MATLAB Online 不支持该命令。",commandWindowTitle:"命令行窗口",fault:{genericFailureTitle:"MATLAB 问题",genericFailureMessage:"MATLAB 有问题。如果问题仍然存在,请与技术支持联系。",noLongerAuthorizedTitle:"并发会话",noLongerAuthorizedMessage:"您已注销,因为您在另一个会话中已登录到 MATLAB Online。",workerResponseFailureTitle:"MATLAB 通信问题",workerResponseFailureMessage:"抱歉,与 MATLAB 通信时出现问题。\n\n正在尝试重新连接,请稍候...\n\n您可能需要重新执行上一个命令。如果问题\n依然存在,请退出并重新登录。",workerNoLongerAvailableTitle:"MATLAB 通信问题",workerNoLongerAvailableMessage:"与 MATLAB 的连接已断开。请重新登录。",connectionFaultTitle:"服务器通信问题",connectionFaultMessage:"对不起,与服务器的连接已断开。请按“刷新”以尝试刷新该页。",remoteLoadFaultTitle:"服务器通信问题",remoteLoadFaultMessage:"无法与服务器建立连接。如果问题仍然存在,请与技术支持联系。",matlabCrashFaultTitle:"意外的 MATLAB 错误",matlabCrashFaultMessage:"MATLAB 遇到内部问题,需要关闭。",outOfMemoryFaultTitle:"内存不足",outOfMemoryFaultMessage:'您的 MATLAB 会话中使用的内存已超过可用内存。请参阅文档了解<a href="https://www.mathworks.com/help/matlab/matlab_prog/strategies-for-efficient-use-of-memory.html" target="_blank">高效使用内存的策略</a>。',restartMATLAB:"重新启动 MATLAB Online"},browserNoticeTitle:"浏览器通知",browserNoticeText:'您使用的浏览器没有出现在 MATLAB Online 推荐或兼容的浏览器列表中。为了获得最佳体验,我们建议您使用<a href="//www.mathworks.com/products/matlab-online/system-requirements.html" class="browserNotice" target="_blank">以下浏览器</a>之一。',exitMATLABDialogText:"是否确定要退出 MATLAB?",exitMATLABDialogMessage:"退出 MATLAB",checkBoxMessage:"不再显示此提示",popupBlockedTitle:"弹出窗口被阻止",popupBlockedText:"MATLAB 无法打开新浏览器窗口。请允许来自此网站的弹出窗口。",audioNoticeTitle:"播放音频时出现问题",audioUnsupportedBrowserText:'此浏览器不支持播放音频。使用<a href="//www.mathworks.com/products/matlab-online/system-requirements.html" class="browserNotice" target="_blank">此列表</a>中的其他浏览器播放音频。',audioUnplayableText:"MATLAB 无法播放音频。请检查浏览器设置以允许从此网站自动播放。如果问题仍然存在,请与技术支持联系。",addonsUnsupportedTitle:"附加功能资源管理器不可用",addonsUnsupportedText:'附加功能资源管理器在此产品中不可用。请改用 <a href="https://www.mathworks.com/matlabcentral/fileexchange/" target="_blank">File Exchange</a>。',geckoLabel:"创建 Geck",geckoDescription:"创建一个 Geck"}},function(e,t,i){e.exports={root:{versionNumber:"23.0",applicationName:"MOTW",defaultUserName:"anonymous",login:"Sign In",logout:"Sign Out",myAccount:"My Account",search:"Search Documentation",refresh:"Refresh",unsavedFilesWarning:"If you navigate away from this page, you will lose the unsaved changes in your open files.",FileDialogPlaceholder:"File name",FolderDialogPlaceholder:"Folder name",newFileDialogTitle:"Create New Script",newFileDialogLocationLabel:"New Script Location:",newFileDialogNameLabel:"New Script name:",newLiveScriptDialogTitle:"Create New Live Script",newLiveScriptDialogLocationLabel:"New Live Script Location",newLiveScriptDialogNameLabel:"New Live Script name:",newLiveFunctionDialogTitle:"Create New Live Function",newLiveFunctionDialogLocationLabel:"New Live Function Location",newLiveFunctionDialogNameLabel:"New Live Function Name",newFunctionDialogTitle:"Create New Function",newFunctionDialogLocationLabel:"New Function Location:",newFunctionDialogNameLabel:"New Function name:",newExampleDialogTitle:"Create New Example",newExampleDialogLocationLabel:"New Example Location:",newExampleDialogNameLabel:"New Example name:",newClassDialogTitle:"Create New Class",newClassDialogLocationLabel:"New Class Location:",newClassDialogNameLabel:"New Class name:",newLiveClassDialogTitle:"Create New Live Class",newLiveClassDialogLocationLabel:"New Live Class Location",newLiveClassDialogNameLabel:"New Live Class Name",newFolderDialogTitle:"Create New Folder",newFolderDialogNameLabel:"New Folder name:",newNotebookDialogTitle:"Create New Notebook",newNotebookDialogLocationLabel:"New Notebook Location:",newNotebookDialogNameLabel:"New Notebook name:",saveAsDialogTitle:"Save as",saveAsFileNameLabel:"Name:",saveAsFileDropDownLabel:"Type:",saveAsOptionMatlabFileValue:"m",saveAsOptionMatlabFileDesc:"MATLAB (.m)",saveAsOptionNotebookFileExt:"mln",saveAsOptionNotebookFileDesc:"Notebook (.mln)",saveAsOptionAllFileExt:"All",saveAsOptionAllFileDesc:"All (*.*)",saveUntitledBufferLiveEditorTitle:"MATLAB Live Editor",saveUntitledBufferEditorTitle:"MATLAB Editor",saveUntitledBufferDescription:'Save changes to "{0}"?',saveToReadOnlyFolderError:"'{0}' is read-only.\nTo save the file, change the current folder.",invalidMFileExtensionError:"MATLAB names must have a supported extension (.m, .mlx)",invalidMFileNameError:"MATLAB names must start with a letter and contain only letters, numbers and underscores.",mFileNameLengthError:"MATLAB file name should be less than 63 characters",invalidFileNameError:'These characters are invalid in a file name: \\ / : * ? " < > |',fileNameLengthError:"File name can't be longer than 128 characters",folderNameLengthError:"Folder name can't be longer than 255 characters",fileOrFolderExistsError:"File or folder already exists",currentFolderIsReadOnly:"The selected folder is not writable",fileMustExist:"The file must exist in the selected folder",noFileNameSpecified:"Please enter a new name for the file",fileUploadLimitError:"A maximum of 5 files can be uploaded",shadowedByPwd:"MATLAB cannot run this file because {0} shadows it in the current working folder.",shadowedByPath:"MATLAB cannot run this file because {0} shadows it in the MATLAB path.",shadowerPcode:"shadows it. Either delete the P-file, or run the pcode function on this file.",shadowerMex:"shadows it. Delete the shadowing file and try again.",shadowerMlx:"shadows it.\n\nRename {0} or remove it from the MATLAB path and try again.",shadowerMlapp:"shadows it.\n\nRename {0} or remove it from the MATLAB path and try again.",notOnPath:"FILE {0} is not found in the current folder or on the MATLAB path.",fileCannotRun:"MATLAB cannot run this file because",solutionChangeOrAdd:"To run this file, you can either change the MATLAB current folder or add its folder to the MATLAB path.",solutionChangeDir:"To run this file, you must change the MATLAB current folder.",addPath:"Add to Path",changeDir:"Change Folder",errorLoadingTitle:"MATLAB Live Editor",errorLoadingText:"Error loading {0}",errorNewProjectTitle:"Create Project",clearWorkspaceDialogTitle:"Confirm Delete",clearVariablesDialogMessage:"All workspace variables will be deleted.",clearAllVariablesFunctionsBreakpointsDialogMessage:"All workspace variables and functions will be deleted.",clearCommandsDialogTitle:"Confirm Clear",clearCommandWindowDialogMessage:"All text will be cleared from the Command Window.",clearCommandHistoryDialogMessage:"All commands will be cleared from the Command History",newMenuLabel:"New",newMenuDescription:"Create a new script/folder",newFileLabel:"New\nScript",newFileListItemLabel:"Script",newFileDescription:"Create a new script in the current folder",newLiveScriptLabel:"New\nLive Script",newLiveScriptListItemLabel:"Live Script",newLiveScriptDescription:"Create a new live script in the current folder",newLiveFunctionLabel:"New Live Function",newLiveFunctionListItemLabel:"Live Function",newLiveFunctionDescription:"Create a new live function in the current folder",newFunctionLabel:"Function",newExampleLabel:"Example",newClassLabel:"Class",newLiveClassLabel:"New Live Class",newLiveClassListItemLabel:"Live Class",newLiveClassDescription:"Create a new live class in the current folder",newProjectListItemLabel:"Project",newProjectListItemDescription:"Create a new blank project",newFromGitListItemLabel:"From Git",newNotebookLabel:"New Notebook",newNotebookDescription:"Create a new notebook in the current folder",setPathLabel:"Set Path",setPathDescription:"Change the search path used by MATLAB to look for files",clearLabel:"Clear\nWorkspace",clearVariablesListItemLabel:"Variables",clearDescription:"Clear workspace variables",clearAllLabel:"All Functions and Variables",clearAllDescription:"Clear all functions and variables",openLabel:"Open",openAsText:"Open as Text...",openAsTextDialogTitle:"Open as Text",alertMessagePcodedFile:"Unable to open file '{file}'.\nFile is a content-obscured P-code file.\n",openAsLiveScriptLabel:"as Live Script",openAsLiveFunctionLabel:"as Live Function",openLabelEllipsis:"Open...",openDescription:"Open file",openShortcut:"Ctrl+O",showRecentFiles:"Recent Files",simulinkLabel:"Simulink",simulinkDescription:"Start Simulink",importDataLabel:"Import\nData",importDataDescription:"Import data from file",saveWorkspaceLabel:"Save\nWorkspace",saveWorkspaceDescription:"Save workspace variables to file",newVariableLabel:"New Variable",newVariableDescription:"Create and open a variable for editing",openVariableLabel:"Open Variable",openVariableDescription:"Open workspace variable for editing",openAsNotebookLabel:"Save as Notebook",openAsNotebookDescription:"Save a copy as a notebook",newFolderLabel:"Folder",uploadLabel:"Upload",uploadDescription:"Upload a file to the current folder",downloadLabel:"Download",downloadDescription:"Download selected file to your computer",saveLabel:"Save",saveMenuDescription:"",saveDescription:"Save all modified files",saveShortcut:"Ctrl+S",saveFigureAsLabel:"Save figure as...",saveFigureAsDescription:"Save current figure to a figure file",stopLabel:"Stop",stopDescription:"Stop the currently executing process",actionsMenuLabel:"Actions",actionsMenuDescription:"Actions for the selected item",fileHistoryShowLabel:"Show File Versions",fileHistoryHideLabel:"Hide File Versions",fileHistoryShowDescription:"Show the active file's history",fileHistoryHideDescription:"Hide the active file's history",renameFileLabel:"Rename File",renameFolderLabel:"Rename Folder",renameFileDescription:"Rename selected file or folder",deleteFileLabel:"Delete File",deleteFolderLabel:"Delete Folder",deleteFileDescription:"Delete selected file or folder",layoutLabel:"Layout",layoutDescription:"Adjust layout",setDefaultLayoutLabel:"Two Column (Default)",setDefaultLayoutDescription:"Set layout to two column (default)",setThreeColumnLabel:"Three Column",setThreeColumnDescription:"Set three column layout",setMinAllButCmdWinLabel:"Minimize All but Command Window",setMinAllButCmdWinDescription:"Set Minimize All but Command Window layout",setCmdWinOnlyLabel:"Command Window Only",setCmdWinOnlyDescription:"Set Command Window Only layout",showMenuLabel:"Show",currentFolderLabel:"Current Folder",workspaceLabel:"Workspace",toolstripLabel:"Toolstrip",commandHistoryLabel:"Command History",commandHistoryPopupLabel:"Popup",commandHistoryClosedLabel:"Closed",commandHistoryDockedLabel:"Docked",preferencesLabel:"Preferences",preferencesDescription:"Specify preferences",splitTitle:"Split",tabPositionTitle:"Tab Position",helpLabel:"Help",manageLicensesLabel:"Manage Licenses",keyboardShortcutsLabel:"Keyboard Shortcuts",accessibilityLabel:"Accessibility",patentsLabel:"Patents",helpListItemLabel:"Documentation",helpDescription:"Open help in a new window",examplesLabel:"Examples",examplesDescription:"View Examples",supportWebsiteLabel:"Support Web Site",supportWebsiteDescription:"Open MathWorks technical support web site",learnMatlabLabel:"Learn MATLAB",learnMatlabDescription:"Access on demand learning resources",feedbackLabel:"Feedback",feedbackDescription:"Send us feedback or report a bug",communityLabel:"Community",communityDescription:"Access MathWorks online community",aboutLabel:"About MATLAB",clearCommandWindowLabel:"Clear\nCommands",clearCommandWindowListItemLabel:"Command Window",clearCommandHistoryListItemLabel:"Command History",clearCommandWindowDescription:"Clear Command Window display (clc)",undoCmdLabel:"Undo",undoCmdDescription:"Undo last edit in Command Window",undoCmdShortcut:"Ctrl+Z",redoCmdLabel:"Redo",redoCmdDescription:"Redo last edit in Command Window",redoCmdShortcut:"Ctrl+Y",newFigureLabel:"Figure",newAppLabel:"App",showCommandHistoryLabel:"Show\nHistory",showCommandHistoryDescription:"Show Command History window",hideCommandHistoryLabel:"Hide\nHistory",hideCommandHistoryDescription:"Hide Command History window",favoriteCommandsFavoritesButtonLabel:"Favorites",favoriteCommandsFavoritesButtonDescription:"Favorite Commands",findFilesLabel:"Find Files",findFilesDescription:"Search for files based on name or content",plotsTabTitle:"Plots",editorTabTitle:"Editor",liveEditorTabTitle:"Live Editor",equationEditorTabTitle:"Equation",figureTabTitle:"Figure",allWidgetsTabTile:"All Widgets",selectionSectionTitle:"Selection",plotsSectionTitle:"PLOTS",noVariables:"No variables selected.",currentFolderSectionTitle:"Current Folder",navigateSectionTitle:"Navigate",breakpointsSectionTitle:"Breakpoints",runSectionTitle:"Run",fileHistoryTabTitle:"File Versions",historySectionTitle:"Versions",browseSectionTitle:"Browse",restoreSectionTitle:"Restore",toolsSectionTitle:"Tools",labelsSectionTitle:"Labels",menuAndToolbarsSectionTitle:"Menu and Toolbars",buttonsSectionTitle:"Buttons",splitButtonsSectionTitle:"Split Buttons",readOnly:" [Read Only]",commandNotSupported:"Unable to run the '{cmd}' command, because it is not supported for MATLAB Online.",commandWindowTitle:"Command Window",fault:{genericFailureTitle:"Issue with MATLAB",genericFailureMessage:"There was an issue with MATLAB. If the problem persists, please contact technical support.",noLongerAuthorizedTitle:"Concurrent Session",noLongerAuthorizedMessage:"You have been logged out because you logged into MATLAB Online in another session.",workerResponseFailureTitle:"MATLAB Communication Issue",workerResponseFailureMessage:"Sorry, there was an issue communicating with MATLAB.\n\nWe are attempting to reconnect, please wait...\n\nYou may need to repeat your last command. If the issue\n persists, please log out and log in again.",workerNoLongerAvailableTitle:"MATLAB Communication Issue",workerNoLongerAvailableMessage:"We have lost your connection to MATLAB. Please log in again.",connectionFaultTitle:"Server Communication Issue",connectionFaultMessage:"Sorry, we have lost your connection to the server. Press Refresh to try refreshing the page.",remoteLoadFaultTitle:"Server Communication Issue",remoteLoadFaultMessage:"We could not establish a connection to the server. If the problem persists, please contact technical support.",matlabCrashFaultTitle:"Unexpected MATLAB error",matlabCrashFaultMessage:"MATLAB has encountered an internal problem and needs to be closed.",outOfMemoryFaultTitle:"Out of Memory",outOfMemoryFaultMessage:'The memory used in your MATLAB session has exceeded the memory available. See the documentation for <a href="https://www.mathworks.com/help/matlab/matlab_prog/strategies-for-efficient-use-of-memory.html" target="_blank">Strategies for Efficient Use of Memory</a>.',restartMATLAB:"Restart MATLAB Online"},browserNoticeTitle:"Browser Notice",browserNoticeText:'The browser you\'re using doesn\'t appear on the recommended or compatible browser list for MATLAB Online. We recommend using one of <a href="//www.mathworks.com/products/matlab-online/system-requirements.html" class="browserNotice" target="_blank">these browsers</a> for the best experience.',exitMATLABDialogText:"Are you sure you want to exit MATLAB?",exitMATLABDialogMessage:"Exit MATLAB",checkBoxMessage:"Do not show this prompt again",popupBlockedTitle:"Pop-up Blocked",popupBlockedText:"MATLAB was not able to open a new browser window. Please allow pop-ups from this site.",audioNoticeTitle:"Issue with playing audio",audioUnsupportedBrowserText:'Playing audio is not supported in this browser. Use other browser from <a href="//www.mathworks.com/products/matlab-online/system-requirements.html" class="browserNotice" target="_blank">this list</a> for playing audio.',audioUnplayableText:"MATLAB was not able to play the audio. Check browser settings to allow auto-play from this website. If the problem persists, please contact technical support.",addonsUnsupportedTitle:"Add-On Explorer not available",addonsUnsupportedText:'Add-On Explorer is not available in this offering. Please use <a href="https://www.mathworks.com/matlabcentral/fileexchange/" target="_blank">File Exchange</a> instead.',geckoLabel:"Create Geck",geckoDescription:"Create a Geck",serverScreenshotLabel:"Server\nScreenshot",serverScreenshotDescription:"Take Server Screenshot"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(3311),i(3312),i(3313),i(3314),i(3315),i(3316),i(3317),i(3318),i(3319),i(3320),i(3321),i(3322),i(3323),i(3324),i(3325),i(3326),i(3327),i(3328),i(3329),i(3330),i(3331),i(3332),i(3333),i(3334),i(3335),i(3336),i(3337),i(3338),i(3339),i(3340),i(3341),i(3342),i(3343),i(3344),i(3345),i(3346),i(3347),i(3348),i(3349),i(3350),i(3351),i(3352),i(3353),i(3354),i(3355),i(3356),i(3357),i(3358),i(3359),i(3360),i(3361),i(3362),i(3363),i(3364),i(3365),i(3366),i(3367),i(3368),i(3369),i(3370),i(3371),i(3372),i(3373),i(3374),i(1827),i(3375),i(3376),i(3377),i(3378),i(3379),i(1828),i(1829),i(3380),i(3381),i(3382),i(3383),i(3384),i(3385),i(3386),i(3387),i(3388),i(3389),i(3390),i(3391),i(3392),i(3393),i(3394),i(3395),i(3396),i(3397)],o=i.dj.d(n,(function(){return Array.prototype.slice.call(arguments).map(JSON.parse)}),e,t),e.exports=o},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": [\n "matlabView",\n "obsoleteView",\n "busyIndicator",\n "domNode"\n ],\n "modulePath": {\n "amd": "MOTW/modules/motwDOMNodes/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "uiConfigService",\n "uiLifecycle",\n "heartbeatService",\n "userDataService",\n "busyIndicator"\n ],\n "provides": [\n "wraService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/wraService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["featureService", "workerReady", "executionService", "actionService", "uiBuilder", "iframeLayoutManager", "toolstripGlobalTabGroupFactory", "settingsService"],\n "provides": ["addOnsService"],\n "modulePath": {\n "amd": "MOTW/modules/addOns/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "uiContainer", \n "workerReady", \n "fileDataService", \n "fileIconProvider",\n "pathService", \n "actionService", \n "pathMessageFaultHandler", \n "addressBarService", \n "layoutService", \n "searchService",\n "sessionService",\n "settingsService"\n ],\n "provides": ["addressBar"],\n "modulePath": {\n "amd": "MOTW/modules/addressBar/index"\n }\n}\n\n'},function(e,t){e.exports='{\n "dependsOn": [\n "addOnsService",\n "uiBuilder",\n "executionService",\n "actionService",\n "workerReady",\n "toolstripGlobalTabGroupFactory",\n "pathService",\n "fileDataService",\n "layoutService",\n "sessionService"\n ],\n "provides": [\n "appsGalleryManager"\n ],\n "modulePath": {\n "amd": "MOTW/modules/appsGallery/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["messageService", "workerReady"],\n "provides": ["audioManager"],\n "modulePath": {\n "amd":"MOTW/modules/audioplayer/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": ["authorizationDetailsService"],\n "modulePath": {\n "amd": "MOTW/modules/authorizationDetailsService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["fileDataService", "listFolderService", "fileIconProvider", "actionService", "sharingDataService", "pathService", "executionService",\n \t"findFilesService", "layoutManager", "workerReady", "uiContainer", "layoutService", "mldoSharingManager",\n "messageService","settingsService"],\n "provides": ["currentFolderBrowser"],\n "modulePath": {\n "amd": "MOTW/modules/cfb/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "uiLifecycle",\n "actionService",\n "executionService",\n "uiContainer",\n "uiBuilder",\n "featureService",\n "settingsService",\n "workerReady",\n "contextManager",\n "wraService",\n "toolstripGlobalTabGroupFactory"\n ],\n "provides": [\n "commandWindow"\n ],\n "modulePath": {\n "amd": "MOTW/modules/cmd/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["settingsService", "workerReady", "sessionService",\n "actionService", "uiContainer","executionService"],\n "provides": ["historyDataService"],\n "modulePath": {\n "amd": "MOTW/modules/cmdhistory/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": ["codeanalyzer"],\n "modulePath": {\n "amd": "MOTW/modules/codeanalyzer/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady",\n "userDataService",\n "uiLifecycle",\n "uiConfigService",\n "postMessageRequestHandler"\n ],\n "provides": [\n "pathMessageFaultHandler",\n "pathService",\n "sharingDataService",\n "searchService",\n "actionService",\n "addressBarService",\n "fileDataService",\n "listFolderService",\n "vfsAttributesService",\n "fileOperationsService",\n "fileIconPluginService",\n "fileIconProvider",\n "executionService",\n "featureService",\n "browserService",\n "shadowService",\n "helpUrlHandler"\n ],\n "modulePath": {\n "amd": "MOTW/modules/core/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": ["dialogHandlerService"],\n "modulePath": {\n "amd": "MOTW/modules/datatoolsservices/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "editorService",\n "featureService"\n ],\n "provides": [\n "debugFileOpeningService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/debugFileOpeningService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": ["discoveryService"],\n "modulePath": {\n "amd":"MOTW/modules/discoveryService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["helpDataService", "messageService", "executionService"],\n "provides": ["docService"],\n "modulePath": {\n "amd":"MOTW/modules/docService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady", \n "featureService", \n "fileDataService", \n "executionService", \n "actionService", \n "uiContainer", \n "versioningService",\n "figureAnnotationsGalleryManager", \n "sessionService",\n "settingsService",\n "manifestService",\n "statusbar",\n "goToFileApp"\n ],\n "provides": ["editorDataService", "editorService", "editorVersioningService"],\n "modulePath": {\n "amd": "MOTW/modules/editor/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "wraService",\n "uiConfigService",\n "uiLifecycle",\n "heartbeatService"\n ],\n "provides": [\n "faultHandlerModule"\n ],\n "modulePath": {\n "amd": "MOTW/modules/faults/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["uiBuilder", "actionService", "settingsService", "layoutManager", "layoutService"],\n "provides": ["FavoriteCommands"],\n "modulePath": {\n "amd": "MOTW/modules/favcommands/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["layoutService"],\n "provides": ["feedbackService", "feedbackManager"],\n "modulePath": {\n "amd": "MOTW/modules/feedback/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": ["figure"],\n "modulePath": {\n "amd": "MOTW/modules/figure/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["executionService", "uiBuilder", "authorizationDetailsService"],\n "provides": ["figureAnnotationsGalleryManager"],\n "modulePath": {\n "amd": "MOTW/modules/figureAnnotationsGallery/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["executionService", "uiBuilder", "uiContainer", "authorizationDetailsService", "actionService"],\n "provides": ["figureAnnotationsGalleryManagerMOL"],\n "modulePath": {\n "amd": "MOTW/modules/figureAnnotationsGalleryMOL/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["workerReady", "iframeLayoutManager"],\n "provides": ["moFigureManager"],\n "modulePath": {\n "amd": "MOTW/modules/figureapps/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "layoutService",\n "workerReady",\n "uiContainer",\n "executionService",\n "actionService",\n "figureAnnotationsGalleryManagerMOL"],\n "provides": ["dfWidgetManager"],\n "modulePath": {\n "amd": "MOTW/modules/divfigure/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "uiContainer"\n ],\n "provides": [\n "sidePanel"\n ],\n "modulePath": {\n "amd": "MOTW/modules/sidePanel/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "layoutService",\n "workerReady",\n "uiContainer",\n "authorizationDetailsService",\n "executionService",\n "featureService",\n "actionService",\n "figureAnnotationsGalleryManagerMOL"],\n "provides": ["efWidgetManager", "webGraphicsFeature"],\n "modulePath": {\n "amd": "MOTW/modules/embeddedfigures/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["workerReady", "messageService"],\n "provides": ["findFilesService"],\n "modulePath": {\n "amd": "MOTW/modules/findFiles/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["uiContainerReady"],\n "provides": ["taskbar"],\n "modulePath": {\n "amd": "MOTW/modules/taskbar/index"\n }\n}\n'},function(e,t){e.exports='{\n "dependsOn": ["actionService"],\n "provides": ["helpDataJSDService"],\n "modulePath": {\n "amd": "MOTW/modules/helpDataJSDService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["iframeLayoutManager", "actionService", "workerReady", "discoveryService"],\n "provides": ["helpDataService"],\n "modulePath": {\n "amd": "MOTW/modules/helpDataService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["layoutService", "workerReady"],\n "provides": ["iframeLayoutManager"],\n "modulePath": {\n "amd": "MOTW/modules/iframeLayoutManager/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "obsoleteView",\n "matlabView",\n "executionService",\n "actionService",\n "workerReady",\n "userReady",\n "wraService",\n "fileDataService",\n "actionService",\n "sessionService",\n "manifestHandler",\n "uiConfigService",\n "featureService",\n "messageService"\n ],\n "provides": [\n "layoutManager",\n "uiContainer",\n "statusbar",\n "layoutService",\n "uiBuilder",\n "contextManager",\n "uiContainerReady",\n "toolstripGlobalTabGroupFactory",\n "toolstripReducer",\n "activeWindowManager"\n ],\n "modulePath": {\n "amd": "MOTW/modules/layout/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["iframeLayoutManager"],\n "provides": ["logicAnalyzer"],\n "modulePath": {\n "amd": "MOTW/modules/logicAnalyzer/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "uiBuilder",\n "workerReady",\n "uiLifecycle",\n "userDataService",\n "wraService",\n "executionService"\n ],\n "provides": [\n "logoutButton"\n ],\n "modulePath": {\n "amd": "MOTW/modules/logout/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["actionService", "helpDataService", "uiBuilder"],\n "provides": ["searchButton"],\n "modulePath": {\n "amd": "MOTW/modules/helpSearch/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": ["matlabbreakpoint"],\n "modulePath": {\n "amd": "MOTW/modules/matlabbreakpoint/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["uiLifecycle"],\n "provides": ["messageService"],\n "modulePath": {\n "amd":"MOTW/modules/messageService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady", \n "messageService",\n "featureService",\n "fileDataService",\n "executionService",\n "uiBuilder",\n "uiContainer",\n "layoutService",\n "pathService",\n "shadowService",\n "wraService",\n "actionService",\n "figureAnnotationsGalleryManagerMOL"\n ],\n "provides": [\n "mggGuiManager",\n "mggGuiDataService",\n "legacyFigureControlsManager",\n "mggAspectFeature",\n "mggPanesFeature",\n "mggLazyLoadFeature",\n "mggPopupFeature",\n "mggToggleDockFeature"\n ],\n "modulePath": {\n "amd": "MOTW/modules/mgg/index"\n }\n}\n'},function(e,t){e.exports='{\n "dependsOn": ["messageService", "fileDataService", "userDataService"],\n "provides": ["newTabHandler"],\n "modulePath": {\n "amd": "MOTW/modules/openNewTab/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "authorizationDetailsService",\n "executionService",\n "featureService",\n "uiContainer",\n "statusbar",\n "actionService",\n "userDataService"\n ],\n "provides": [\n "pct"\n ],\n "modulePath": {\n "amd": "MOTW/modules/pct/index"\n }\n}\n'},function(e,t){e.exports='{\n "dependsOn": ["executionService", "uiBuilder", "workerReady", "toolstripGlobalTabGroupFactory", "sessionService", "commandWindow"],\n "provides": ["plotsGalleryManager"],\n "modulePath": {\n "amd": "MOTW/modules/plotsGallery/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "uiBuilder",\n "workerReady",\n "editorService",\n "sessionService"\n ],\n "provides": ["liveAppsGalleryManager"],\n "modulePath": {\n "amd": "MOTW/modules/liveAppsGallery/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "settingsService",\n "wraService",\n "uiLifecycle",\n "executionService"\n ],\n "provides": [\n "matlabExitService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/matlabExitService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["executionService", "messageService", "helpDataService", "layoutService", "uiContainer", "workerReady"],\n "provides": ["inspector"],\n "modulePath": {\n "amd": "MOTW/modules/propertyinspector/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["actionService", "uiBuilder", "settingsService", "sessionService", "uiContainer", "uiContainerReady"],\n "provides": ["quickAccessBarManager"],\n "modulePath": {\n "amd": "MOTW/modules/qab/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["uiContainer", "helpUrlHandler", "userReady"],\n "provides": ["reportsService"],\n "modulePath": {\n "amd": "MOTW/modules/reports/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": ["serverOnWorker"],\n "modulePath": {\n "amd": "MOTW/modules/serverOnWorker/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "featureService",\n "settingsService",\n "uiLifecycle"\n ],\n "provides": [\n "sessionService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/session/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "wraService",\n "uiLifecycle",\n "busyIndicator",\n "featureService",\n "pathService",\n "faultHandlerModule",\n "uiConfigService",\n "sessionService",\n "postMessageProtocol"\n ],\n "provides": [\n "sessionLifecycle"\n ],\n "modulePath": {\n "amd": "MOTW/modules/sessionLifecycle/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["workerReady"],\n "provides": ["settingsService"],\n "modulePath": {\n "amd": "MOTW/modules/settings/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["wraService"],\n "provides": ["sharingService", "sharingManager"],\n "modulePath": {\n "amd": "MOTW/modules/sharing/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "sharingDataService",\n "layoutService"\n ],\n "provides": [\n "mldoSharingManager"\n ],\n "modulePath": {\n "amd": "MOTW/modules/mldosharing/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "discoveryService",\n "workerReady",\n "userDataService"\n ],\n "provides": [\n "UdcDataService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/udcDataService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "uiLifecycle"\n ],\n "provides": [\n "userReady"\n ],\n "modulePath": {\n "amd": "MOTW/modules/userReady/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["executionService", "messageService", "helpDataService", "layoutService", "uiContainer", "workerReady", "sessionService"],\n "provides": ["variableEditor"],\n "modulePath": {\n "amd": "MOTW/modules/ve/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["fileDataService"],\n "provides": ["versioningService"],\n "modulePath": {\n "amd":"MOTW/modules/versioning/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["messageService"],\n "provides": ["webDdgFactory"],\n "modulePath": {\n "amd": "MOTW/modules/webddg/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "uiLifecycle"\n ],\n "provides": [\n "workerReady",\n "workerLost"\n ],\n "modulePath": {\n "amd": "MOTW/modules/workerReady/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["workerReady", "messageService", "layoutService", "executionService", "fileDataService", "uiContainer", "settingsService", "actionService"],\n "provides": ["workspaceBrowser"],\n "modulePath": {\n "amd": "MOTW/modules/workspace/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "wraService",\n "workerReady",\n "domNode",\n "busyIndicator"\n ],\n "provides": [\n \t"wraLogin"\n ],\n "modulePath": {\n "amd":"MOTW/modules/wraLogin/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "layoutService",\n "featureService", \n "activeWindowManager"\n ],\n \n "provides": ["slonlineContainer"],\n \n "modulePath": {\n "amd": "MOTW/modules/slonlineContainer/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "layoutService",\n "executionService",\n "uiContainer",\n "toolstripGlobalTabGroupFactory"\n ],\n "provides": [\n "importtool"\n ],\n "modulePath": {\n "amd": "MOTW/modules/importtool/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["fileDataService", "editorService", "workerReady"],\n "provides": ["gdsNotifications"],\n "modulePath": {\n "amd": "MOTW/modules/gdsNotifications/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "busyIndicator",\n "featureService",\n "uiLifecycle",\n "moduleLoader",\n "sessionLifecycle",\n "authorizationDetailsService",\n "commandWindow",\n "taskbar",\n "quickAccessBarManager",\n "workspaceBrowser",\n "helpDataService",\n "discoveryService",\n "addressBar",\n "sharingDataService",\n "mldoSharingManager",\n "sharingService",\n "sharingManager",\n "currentFolderBrowser",\n "historyDataService",\n "searchButton",\n "pathMessageFaultHandler",\n "pathService",\n "sharingDataService",\n "searchService",\n "actionService",\n "addressBarService",\n "fileDataService",\n "executionService",\n "browserService",\n "shadowService",\n "layoutManager",\n "uiContainer",\n "UdcDataService",\n "layoutService",\n "uiBuilder",\n "contextManager",\n "uiContainerReady",\n "toolstripGlobalTabGroupFactory",\n "webWindowService",\n "editorService",\n "debugFileOpeningService",\n "goToFileApp",\n "splashscreenmanager"\n ],\n "provides": [\n "applicationLifecycle"\n ],\n "modulePath": {\n "amd": "MOTW/modules/desktopLifecycle/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["messageService", "workerReady"],\n "provides": ["webcamService"],\n "modulePath": {\n "amd":"MOTW/modules/webcam/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "busyIndicator",\n "uiConfigService",\n "wraService",\n "workerReady",\n "UdcDataService"\n ],\n "provides": [\n "manifestHandler",\n "manifestService",\n "iframeMessageService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/manifestHandler/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n ],\n "provides": [\n "uiConfigService"\n ],\n "modulePath": {\n "amd":"MOTW/modules/uiConfig/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady",\n "manifestHandler"\n ],\n "provides": [\n "configureWorker"\n ],\n "modulePath": {\n "amd": "MOTW/modules/configureWorker/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["actionService", "executionService", "settingsService", "uiContainer","toolstripGlobalTabGroupFactory"],\n "provides": ["navigationShortcutsDialog"],\n "modulePath": {\n "amd": "MOTW/modules/navigationShortcutsDialog/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": [\n "uiLifecycle"\n ],\n "modulePath": {\n "amd": "MOTW/modules/uiLifecycle/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": [\n "moduleLoader"\n ],\n "modulePath": {\n "amd": "MOTW/modules/moduleLoader/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady",\n "serverOnWorker"\n ],\n "provides": [\n "userDataService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/userDataService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "uiLifecycle"\n ],\n "provides": [\n "errorLoggerService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/errorlogger/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady"\n ],\n "provides": [\n "postMessageProtocol",\n "postMessageRequestHandler"\n ],\n "modulePath": {\n "amd": "MOTW/modules/postMessageProtocol/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": ["moFigureManager", "uiLifecycle", "heartbeatService"],\n "provides": ["webWindowService"],\n "modulePath": {\n "amd": "mw-webwindow/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": [\n "heartbeatService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/heartbeatService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady",\n "pathService",\n "actionService",\n "searchService",\n "uiBuilder"\n ],\n "provides": ["goToFileApp"],\n "modulePath": {\n "amd": "MOTW/modules/goToFile/index"\n }\n}\n\n'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady",\n "uiContainer"],\n "provides": ["sourceControl"],\n "modulePath": {\n "amd": "MOTW/modules/sourceControl/index"\n }\n}\n'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady",\n "uiContainer"],\n "provides": ["matlabProject"],\n "modulePath": {\n "amd": "MOTW/modules/matlabProject/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "matlabProject"\n ],\n "provides": ["matlabProjectLabels"],\n "modulePath": {\n "amd": "MOTW/modules/matlabProjectLabels/index"\n }\n}\n'},function(e,t){e.exports='{\n "dependsOn": [\n "matlabProject"\n ],\n "provides": ["matlabProjectReferences"],\n "modulePath": {\n "amd": "MOTW/modules/matlabProjectReferences/index"\n }\n}\n'},function(e,t){e.exports='{\n "dependsOn": [\n "uiContainer"\n ],\n "provides": [\n "splashscreenmanager"\n ],\n "modulePath": {\n "amd": "MOTW/modules/splashscreenmanager/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady",\n "uiContainer"],\n "provides": ["coder"],\n "modulePath": {\n "amd": "MOTW/modules/coder/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "workerReady",\n "uiContainer",\n "settingsService"],\n "provides": ["testbrowser"],\n "modulePath": {\n "amd": "MOTW/modules/testbrowser/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "matlabProject"\n ],\n "provides": ["matlabProjectSharing"],\n "modulePath": {\n "amd": "MOTW/modules/matlabProjectSharing/index"\n }\n}\n'},function(e,t){e.exports='{\n "dependsOn": [\n "workerReady"\n ],\n "provides": ["academySimulinkCourses"],\n "modulePath": {\n "amd": "MOTW/modules/academySimulinkCourses/index"\n }\n}'},function(e,t,i){"use strict";var n,o;n=[i(203),i(209),i(219),i(229)],o=i.dj.d(n,(function(e,t,i,n){return"performance"in window==="false"&&(window.performance={}),e([],{_JS_TIMING_DATA_CHANNEL:"/matlab/js_log/timingData",_DIAGNOSTIC_SPEC_DATA_REQUEST_CHANNEL:"/matlab/js_log/diagnosticSpecDataRequest",_DIAGNOSTIC_SPEC_DATA_RESPONSE_CHANNEL:"/matlab/js_log/diagnosticSpecDataResponse",constructor:function(e){this._appName=e,this._id=n.generateUuid(),this._timeOrigin=this._getTimeOrigin(),this._diagnosticSpecDataResponseChannelSubscribed=null},_publishEntries:function(e){for(var t=0;t<e.length;t++){var n=e[t];i.publish(this._JS_TIMING_DATA_CHANNEL,{uuid:this._id,name:this._appName+"::"+n.name,type:n.entryType,to:this._timeOrigin,ts:n.startTime,dur:n.duration})}},_getTimeOrigin:function(){return window.performance.timeOrigin?window.performance.timeOrigin:"function"==typeof window.performance.now?Date.now()-window.performance.now():0},observe:function(){this._diagnosticSpecDataResponseChannelSubscribed||i.subscribe(this._DIAGNOSTIC_SPEC_DATA_RESPONSE_CHANNEL,function(e){this._diagnosticSpecDataResponseChannelSubscribed=!0,this._observe()}.bind(this)),i.publish(this._DIAGNOSTIC_SPEC_DATA_REQUEST_CHANNEL,"queryLoggingStatus")},_observe:function(){this._setLoggingFlagInWindow();var e=function(e){var t=e.getEntries();this._publishEntries(t)}.bind(this);try{this._userTimingObserver=new window.PerformanceObserver(e),this._paintObserver=new window.PerformanceObserver(e)}catch(e){return t.warn(e.message),void this.disconnect()}try{this._userTimingObserver.observe({type:"measure",buffered:!0})}catch(e){t.warn(e.message);try{this._userTimingObserver.observe({entryTypes:["measure"]})}catch(e){t.warn(e.message),this._userTimingObserver=null}}try{this._paintObserver.observe({type:"paint",buffered:!0})}catch(e){t.warn(e.message),this._paintObserver=null}},_setLoggingFlagInWindow:function(){window.performance.mwPerfLoggingOn=!0},_unsetLoggingFlagInWindow:function(){window.performance.mwPerfLoggingOn=void 0},disconnect:function(){this._appName=null,this._id=null,this._timeOrigin=null,this._unsetLoggingFlagInWindow(),this._userTimingObserver&&(this._userTimingObserver.disconnect(),this._userTimingObserver=null),this._paintObserver&&(this._paintObserver.disconnect(),this._paintObserver=null),this._diagnosticSpecDataResponseChannelSubscribed&&(i.unsubscribe(this._DIAGNOSTIC_SPEC_DATA_RESPONSE_CHANNEL),this._diagnosticSpecDataResponseChannelSubscribed=null)}})}),e,t),e.exports=o},function(e,t){e.exports='{\n "dependsOn": [\n "wraService",\n "busyIndicator",\n "featureService",\n "uiLifecycle",\n "moduleLoader",\n "faultHandlerModule",\n "actionService",\n "fileDataService",\n "executionService",\n "browserService",\n "layoutManager",\n "uiContainer",\n "layoutService",\n "uiBuilder",\n "contextManager",\n "uiContainerReady",\n "editorDataService",\n "editorService",\n "editorVersioningService",\n "versioningService",\n "toolstripGlobalTabGroupFactory",\n "UdcDataService",\n "sessionService",\n "sessionLifecycle",\n "newTabHandler",\n "accessTierService",\n "actionReducer",\n "bufferedEditorService",\n "openWithLogger",\n "workerActionDisabler",\n "manifestService",\n "iframeMessageService",\n "manifestHandler",\n "uiConfigService",\n "configureWorker",\n "liveAppsGalleryManager"\n ],\n "provides": [\n "applicationLifecycle",\n "addressBar",\n "quickAccessBarManager"\n ],\n "modulePath": {\n "amd": "MOTW/modules/liveEditorLifecycle/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "manifestHandler",\n "actionReducer"\n ],\n "provides": [\n "accessTierService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/accessTierService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "uiBuilder",\n "manifestHandler"\n ],\n "provides": [\n "actionReducer"\n ],\n "modulePath": {\n "amd": "MOTW/modules/actionReducer/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "editorService",\n "uiConfigService",\n "workerActionDisabler",\n "manifestHandler"\n ],\n "provides": [\n "bufferedEditorService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/bufferedEditorService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": [\n "uiConfigService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/documentOnlyUiConfig/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "uiConfigService",\n "userDataService",\n "uiLifecycle",\n "postMessageProtocol",\n "heartbeatService",\n "postMessageRequestHandler"\n ],\n "provides": [\n "wraService"\n ],\n "modulePath": {\n "amd": "MOTW/jsd/wraService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "wraService",\n "workerReady",\n "userReady",\n "matlabView",\n "obsoleteView",\n "busyIndicator",\n "faultHandlerModule",\n "uiLifecycle",\n "manifestHandler",\n "postMessageProtocol",\n "moduleLoader",\n "wraLogin",\n "toolstripGlobalTabGroupFactory"\n ],\n "provides": [\n "bootstrapService"\n ],\n "modulePath": {\n "amd": "MOTW/jsd/bootstrapService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "busyIndicator",\n "featureService",\n "uiLifecycle",\n "moduleLoader",\n "sessionLifecycle",\n "authorizationDetailsService",\n "historyDataService",\n "logoutButton",\n "searchButton",\n "pathMessageFaultHandler",\n "pathService",\n "searchService",\n "actionService",\n "fileDataService",\n "executionService",\n "browserService",\n "shadowService",\n "layoutManager",\n "UdcDataService",\n "contextManager",\n "uiContainerReady",\n "commandWindow",\n "quickAccessBarManager",\n "workspaceBrowser",\n "helpDataService",\n "discoveryService",\n "sharingDataService",\n "mldoSharingManager",\n "sharingService",\n "sharingManager",\n "layoutService",\n "addressBar",\n "addressBarService",\n "currentFolderBrowser",\n "uiContainer",\n "editorService",\n "goToFileApp",\n "splashscreenmanager"\n ],\n "provides": [\n "applicationLifecycle"\n ],\n "modulePath": {\n "amd": "MOTW/jsd/applicationLifecycle/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": [\n "uiConfigService"\n ],\n "modulePath": {\n "amd": "MOTW/jsd/jsdConfig/index"\n }\n }'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "uiConfigService",\n "userDataService",\n "uiLifecycle",\n "postMessageProtocol",\n "heartbeatService",\n "postMessageRequestHandler"\n ],\n "provides": [\n "wraService"\n ],\n "modulePath": {\n "amd": "MOTW/matlabOnlineServer/wraService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "messageService",\n "discoveryService",\n "wraService",\n "workerReady",\n "userReady",\n "matlabView",\n "obsoleteView",\n "uiLifecycle",\n "moduleLoader",\n "iframeMessageService",\n "manifestService",\n "wraLogin"\n ],\n "provides": [\n "bootstrapService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/noLoginBootstrapService/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "busyIndicator",\n "userReady",\n "faultHandlerModule",\n "wraService",\n "heartbeatService",\n "workerReady",\n "workerLost",\n "messageService",\n "uiConfigService",\n "discoveryService",\n "matlabView",\n "obsoleteView",\n "iframeMessageService",\n "manifestService",\n "manifestHandler",\n "uiLifecycle",\n "standAloneWebAppFigureManager",\n "openWithLogger",\n "workerActionDisabler",\n "configureWorker"\n ],\n "provides": [\n "applicationLifecycle"\n ],\n "modulePath": {\n "amd": "MOTW/modules/standaloneWebAppLifecycle/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [],\n "provides": [\n "uiConfigService"\n ],\n "modulePath": {\n "amd": "MOTW/modules/standaloneWebAppUiConfig/index"\n }\n}'},function(e,t){e.exports='{\n "dependsOn": [\n "wraService"\n ],\n "provides": [\n "standAloneWebAppFigureManager"\n ],\n "modulePath": {\n "amd": "MOTW/modules/standaloneWebFigureApps/index"\n }\n}'},function(e,t,i){var n,o;n=[i(3414),i(3422),i(3431),i(3434),i(3435),i(3437),i(905),i(3440),i(906),i(1084),i(1837),i(1838),i(1840),i(1842),i(3464),i(3482),i(3484),i(3520),i(1852),i(3523),i(3526),i(3529),i(3532),i(3536),i(3545),i(3547),i(3549),i(3553),i(3555),i(3557),i(3559),i(3560),i(3562),i(3565),i(3567),i(3569),i(3571),i(3572),i(3574),i(3576),i(3577),i(3578),i(3580),i(3582),i(3584),i(3587),i(3589),i(3591),i(3593),i(3613),i(3615),i(3617),i(3619),i(3621),i(3623),i(3635),i(3652),i(3653),i(3655),i(3657),i(3659),i(3661),i(3663),i(3665),i(3667),i(3669),i(3671),i(3673),i(3676),i(3679),i(3681),i(3683),i(3685),i(3687),i(3690),i(3693),i(3696),i(3698),i(3700),i(3703),i(3707),i(3709),i(3710),i(3713),i(3715),i(1910),i(3719),i(3720),i(3722),i(3724),i(3726),i(3729),i(3733),i(3735),i(3742),i(3744),i(3746),i(3748),i(3750),i(3752),i(3758),i(3759),i(3761),i(3762),i(3764),i(3766),i(3769),i(3771),i(3773),i(3775),i(3777),i(3780),i(3781),i(3783),i(3785),i(3787),i(3789),i(3792),i(3799),i(3801),i(3804),i(3808),i(3810),i(3813),i(3820),i(3822),i(3824),i(3826),i(3828),i(3831),i(3833),i(3835),i(3837),i(3839),i(3841),i(3843),i(3845),i(3847),i(3849),i(3851),i(3852),i(3854),i(3856),i(3858),i(3859),i(3860),i(3862),i(3863),i(3865),i(3867),i(3869),i(3871),i(3873),i(3876),i(3877),i(3878),i(3879),i(3881),i(3883),i(3885),i(3887),i(3889),i(3891),i(3893),i(3899),i(3924),i(3926),i(3928),i(3930),i(3932),i(3981),i(3983),i(3985),i(3987),i(3989),i(3991),i(3994),i(3996),i(3998),i(4e3),i(4002),i(4003),i(4009),i(4011),i(4014),i(4016),i(4018),i(4020),i(4022),i(4024),i(4026),i(4028),i(4030),i(4033),i(4035),i(813),i(4042),i(4044),i(4045),i(4047),i(4049),i(4056),i(4058),i(4059),i(4066),i(4068),i(4072),i(4074),i(4076),i(4078),i(4080),i(4082),i(4084),i(4086),i(4088),i(4091),i(4100),i(4102),i(4104),i(4107),i(4109),i(4113),i(4115),i(4117),i(4119),i(4122),i(4124),i(4126),i(4128),i(4131),i(4133),i(4135),i(4137),i(4138),i(4139),i(4142),i(4144),i(4145),i(4147),i(4148),i(4153),i(4156),i(4158),i(4160),i(4164),i(4167),i(4169),i(4171),i(4173),i(4175),i(4177),i(4180),i(4182),i(4183),i(4185),i(4187),i(4191),i(4193),i(4195),i(4197),i(4199),i(4201),i(4203),i(4205),i(4207),i(4214),i(4217),i(4219),i(4221),i(4223),i(4225),i(4227),i(4229),i(4231),i(4233),i(4235),i(4237),i(4239),i(4241),i(4243),i(4245),i(4247),i(4249),i(926),i(4254),i(4256),i(4258),i(4261),i(4263),i(4265),i(4267),i(4269),i(4271),i(4273),i(4275),i(4277),i(4279),i(4281),i(4283),i(4285),i(4287),i(4289),i(4291),i(4293),i(4295),i(4297),i(4299),i(4301),i(4303),i(4306),i(4308),i(4310),i(4312),i(4314),i(4316),i(4318),i(4320),i(4322),i(4324),i(4326),i(4328),i(4330),i(4332),i(4334),i(4336),i(4338),i(4340),i(4342),i(4344),i(4346),i(4348),i(4350),i(4352),i(4354),i(4356),i(4358),i(4360),i(4362),i(4364),i(4366),i(4368),i(4370),i(4372),i(4374),i(4376),i(4378),i(4380),i(4383),i(4385),i(4387),i(4389),i(4391),i(4393),i(4395),i(4397),i(4398),i(4400),i(4402),i(4405),i(4407),i(4409),i(4411),i(4413),i(4415),i(4417),i(4419),i(4422),i(4424),i(4426),i(4428),i(4434),i(4436),i(4438),i(929),i(930),i(819),i(4445),i(820),i(931),i(4449),i(4451),i(4454),i(4455),i(4457),i(4458),i(4459),i(4461),i(4463),i(4482),i(4484),i(4486),i(4488),i(4490),i(4496),i(4498),i(4500),i(4502),i(4503),i(4505),i(4507),i(4509),i(4511),i(4513),i(4515),i(4518),i(4521),i(4524),i(4527),i(4529),i(4531),i(4533),i(4535),i(4537),i(4540),i(4546),i(4548),i(4550),i(4559),i(4563),i(4565),i(4567),i(4569),i(4571),i(4573),i(4575),i(4577),i(4579),i(4581),i(4583),i(4585),i(4587),i(4590),i(4591),i(4593),i(4595),i(4597),i(4599),i(4602),i(4604),i(4606),i(4608)],o=i.dj.d(n,(function(){}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3415)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.keyhandler.keyboardshortcutsmodel","rtc.id","rtc.editordataservice","rtc.keyhandler.alternateActionServiceSupport","rtc.backingstore"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(208),i(203),i(221),i(209),i(229),i(207),i(281),i(1340),i(799),i(3416),i(3418),i(1833),i(3419),i(615),i(1341),i(3421)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return i(a,{_FEATURE_ID:"rtc.customkeyboardshortcuts",_UPDATE_KEYBINDING_CHANNEL:"/liveEditor/keyHandler/updateKeyBinding",_INITIAL_TIMEOUT_PERIOD:12e4,_RETRY_TIMEOUT_PERIOD:3e4,_MAX_RETRIES:6,_DEFAULTS_CHANGED_TIMEOUT:10,_RTC_ACTION_ID_SEPARATOR:",",_SHIFT_DOWN_MASK:64,_CTRL_DOWN_MASK:128,_META_DOWN_MASK:256,_ALT_DOWN_MASK:512,_ALT_GRAPH_DOWN_MASK:8192,constructor:function(t,i,n,o,r){this._shortcutsModel=t,this._editorId=i,this._editorDataService=n,this._alternateActionServiceSupport=o,this._backingStore=r,this._messageService=m.getInstance(),this._subscribed=!1,this._retryCount=0,this._customBindingCache={},this._defaultsChangedTimer=null,this._defaultShortcuts=new u(this._shortcutsModel,e.hitch(this,"_findActionsInGroup")),this._initialize(this._INITIAL_TIMEOUT_PERIOD)},destroy:function(){this._subscribed&&(this._messageService.unsubscribe(this._UPDATE_KEYBINDING_CHANNEL,"_handleUpdateKeybindingMessage",this),this._subscribed=!1),this._customBindingCache=null,this._defaultShortcuts=null,clearTimeout(this._defaultsChangedTimer),this.inherited(arguments)},onCustomShortcutsDisabled:function(){},onRawKeybindingChange:function(e,t){},_initialize:function(t){var i=p.getContextIds().map((function(e){return{contextId:e,actionIds:p.getTraditionalActionIds(e)}}),this),n=s.isLiveCodeFile(this._backingStore);this._editorDataService.request(this._FEATURE_ID,{contexts:i,isLiveCode:n,editorId:this._editorId},t).then(e.hitch(this,"_handleFeatureRequestResponse"),e.hitch(this,"_handleFeatureRequestError"))},_handleFeatureRequestResponse:function(i){if(!this._destroyed)if(i)if(i.featureOff)this.onCustomShortcutsDisabled();else{var n=i.customizableActions;void 0!==n?(this._initializeCustomizationSupport(),this.own(t.after(this._shortcutsModel,"onDefaultsChanged",e.hitch(this,"_handleOnDefaultsChanged"))),n.forEach((function(e){var t=e.actionId,i=e.bindings||[];this._updateKeyBindingsFromJava(t,i)}),this),this._messageService.subscribe(this._UPDATE_KEYBINDING_CHANNEL,"_handleUpdateKeybindingMessage",this),this._subscribed=!0):this._retryOrFail("Error: "+i.error)}else s.isLiveCodeFile(this._backingStore)?this.onCustomShortcutsDisabled():this._retryOrFail("Error: Custom keyboard shortcuts payload is undefined. EDS likely timed out.")},_handleFeatureRequestError:function(){this._destroyed||this._retryOrFail()},_retryOrFail:function(e){this._retryCount<this._MAX_RETRIES?(this._retryCount++,this._initialize(this._RETRY_TIMEOUT_PERIOD)):(e=e||"",o.error("Error setting up custom keybindings after "+this._retryCount+" retries. Default bindings will be used. "+e),this.onCustomShortcutsDisabled())},_handleUpdateKeybindingMessage:function(e){var t=e.data.actionId,i=e.data.newBindings||[];this._updateKeyBindingsFromJava(t,i)},_updateKeyBindingsFromJava:function(e,t){try{var i=p.getRtcActionIdsForTraditionalEditorAction(e),n=t.map((function(e){return this._convertFromJavaStrokeList(e.fStrokeList)}),this);this._updateKeyBindings(i,n)}catch(t){o.error("Error while setting custom keybinding.\n javaActionId: "+e+"\n newBindings: "+JSON.stringify(i)+"\n exception: "+t.stack+"\n")}},_updateKeyBindings:function(e,t){var i=this._convertShortcutFormat(t);this._cacheCustomBinding(e,i),e=this._filterUnusedActions(e),this._updateBindingsForActions(i,e),this._updateShortcutLabelsForActions(i,e),this.onRawKeybindingChange(i,e)},_convertShortcutFormat:function(e){e=e.filter((function(e){return this._isValidStrokeList(e)}),this);var t=[];return e.forEach((function(e){var i=this._convertStrokeListToKeySequence(e);-1===t.indexOf(i)&&t.push(i)}),this),t},_updateBindingsForActions:function(e,t){if(0!==t.length){var i=this._getDefaultSequences(e,t),n=this._updateBaseActionGroups(i,t);this._removeCustomBindings(t,n);var o=r.differenceOfArrays(e,i);this._addBindingsForActions(o,t)}},_updateShortcutLabelsForActions:function(e,t){t.forEach((function(t){var i=this._alternateActionServiceSupport.getActionService(t),n=e[0];g.updateActionLabel(i,t,n)}),this)},_getDefaultSequences:function(e,t){return e.filter((function(e){var i=this._defaultShortcuts.getDefaultActionIds(e);return!!i&&i.some((function(e){return t.indexOf(e)>-1}))}),this)},_updateBaseActionGroups:function(e,t){var i=[];return e.forEach((function(e){var n=this._shortcutsModel.getBaseActionGroupForKeyStroke(e);if(n){var r=this._defaultShortcuts.getDefaultActionIds(e),a=n.getActionIds(),s=r.filter((function(e){return a.indexOf(e)>-1||t.indexOf(e)>-1}));this._shortcutsModel.replaceActionIdsInActionGroup(n,s),i.push(n)}else o.error("Base action group does not exist.")}),this),i},_removeCustomBindings:function(e,t){e.forEach((function(e){this._shortcutsModel.getActionGroupsContainingAction(e).forEach((function(i){i.isDefault()||-1===t.indexOf(i)&&this._shortcutsModel.removeActionIdFromActionGroup(i,e)}),this)}),this)},_addBindingsForActions:function(e,t){e.forEach((function(e){var i=new l(t,l.TYPE.CUSTOM);this._shortcutsModel.addBinding(e,i)}),this)},_isValidStrokeList:function(e){for(var t=0;t<e.length;t++)if("underscore"===e[t].keyName)return!1;if(!n("mac"))for(t=0;t<e.length;t++)if(!0===e[t].metaKey)return!1;for(t=0;t<e.length;t++)if(void 0===e[t].keyName)return o.warn("Tried to configure to an unsupported key stroke. Ignoring keybinding change."),!1;if(e.length>1&&!c.isValidMultistrokeStrokeList(e))return o.warn("Invalid multistroke shortcut. Ignoring keybinding change."+JSON.stringify(e)),!1;return!0},_convertFromJavaStrokeList:function(e){return e.map((function(e){var t=this._decodeModifiers(e.modifiers),i=d.javaKeyEventToKeyName(e.keyCode);return void 0===i&&o.warn("Tried to configure to an unsupported key stroke. keyCode: "+e.keyCode),{keyName:i,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,altGrKey:t.altGrKey}}),this)},_convertStrokeListToKeySequence:function(e){return e.map((function(e){return f.getKeyStroke(e.keyName,e.ctrlKey,e.metaKey,e.altKey,e.shiftKey)}),this).join(c.SEQUENCE_SEPARATOR)},_decodeModifiers:function(e){return{shiftKey:(e&this._SHIFT_DOWN_MASK)>0,ctrlKey:(e&this._CTRL_DOWN_MASK)>0,metaKey:(e&this._META_DOWN_MASK)>0,altKey:(e&this._ALT_DOWN_MASK)>0,altGrKey:(e&this._ALT_GRAPH_DOWN_MASK)>0}},_filterUnusedActions:function(e){return e.filter((function(e){return!!this._alternateActionServiceSupport.getActionService(e).getAction(e)}),this)},_findActionsInGroup:function(e){var t=p.findRelatedRtcActionIds(e);return null===t?null:this._filterUnusedActions(t)},_cacheCustomBinding:function(e,t){var i=e.join(this._RTC_ACTION_ID_SEPARATOR);this._customBindingCache[i]=t},_initializeCustomizationSupport:function(){this._shortcutsModel.resetToDefaults(),this._defaultShortcuts.storeDefaults(),this._shortcutsModel.getActiveKeyBindings().forEach((function(e){var t=this._defaultShortcuts.getDefaultActionIds(e),i=new l(t,l.TYPE.BASE);this._shortcutsModel.addBinding(e,i)}),this)},_handleOnDefaultsChanged:function(){clearTimeout(this._defaultsChangedTimer),this._defaultsChangedTimer=setTimeout(e.hitch(this,(function(){this._initializeCustomizationSupport(),Object.keys(this._customBindingCache).forEach((function(e){var t=this._customBindingCache[e],i=e.split(this._RTC_ACTION_ID_SEPARATOR);i=this._filterUnusedActions(i),this._updateBindingsForActions(t,i),this._updateShortcutLabelsForActions(t,i)}),this)})),this._DEFAULTS_CHANGED_TIMEOUT)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(221),i(223),i(1833),i(3417)],o=i.dj.d(n,(function(e,t,i,n,o){return{_javaKeyCodeToJavaKeyNameCache:null,javaKeyEventToKeyName:function(e){this._initializeCaches();var t=this._javaKeyCodeToJavaKeyNameCache[e];return o[t]},_initializeCaches:function(){this._javaKeyCodeToJavaKeyNameCache||(this._javaKeyCodeToJavaKeyNameCache={},Object.keys(n).forEach((function(e){var t=n[e];this._javaKeyCodeToJavaKeyNameCache[t]=e}),this))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{KEY_LOCATION_UNKNOWN:void 0,VK_UNDEFINED:void 0,KEY_LOCATION_STANDARD:void 0,KEY_LOCATION_LEFT:void 0,KEY_LOCATION_RIGHT:void 0,VK_CANCEL:void 0,KEY_LOCATION_NUMPAD:void 0,VK_BACK_SPACE:"backspace",VK_TAB:"tab",VK_ENTER:"enter",VK_CLEAR:"clear",VK_SHIFT:void 0,VK_CONTROL:void 0,VK_ALT:void 0,VK_PAUSE:"pause",VK_CAPS_LOCK:void 0,VK_KANA:void 0,VK_FINAL:void 0,VK_KANJI:void 0,VK_ESCAPE:"escape",VK_CONVERT:void 0,VK_NONCONVERT:void 0,VK_ACCEPT:void 0,VK_MODECHANGE:void 0,VK_SPACE:"space",VK_PAGE_UP:"pageup",VK_PAGE_DOWN:"pagedown",VK_END:"end",VK_HOME:"home",VK_LEFT:"left",VK_UP:"up",VK_RIGHT:"right",VK_DOWN:"down",VK_COMMA:",",VK_MINUS:"-",VK_PERIOD:".",VK_SLASH:"/",VK_0:"0",VK_1:"1",VK_2:"2",VK_3:"3",VK_4:"4",VK_5:"5",VK_6:"6",VK_7:"7",VK_8:"8",VK_9:"9",VK_SEMICOLON:";",VK_EQUALS:"=",VK_A:"a",VK_B:"b",VK_C:"c",VK_D:"d",VK_E:"e",VK_F:"f",VK_G:"g",VK_H:"h",VK_I:"i",VK_J:"j",VK_K:"k",VK_L:"l",VK_M:"m",VK_N:"n",VK_O:"o",VK_P:"p",VK_Q:"q",VK_R:"r",VK_S:"s",VK_T:"t",VK_U:"u",VK_V:"v",VK_W:"w",VK_X:"x",VK_Y:"y",VK_Z:"z",VK_OPEN_BRACKET:"[",VK_BACK_SLASH:"\\",VK_CLOSE_BRACKET:"]",VK_NUMPAD0:"numpad-0",VK_NUMPAD1:"numpad-1",VK_NUMPAD2:"numpad-2",VK_NUMPAD3:"numpad-3",VK_NUMPAD4:"numpad-4",VK_NUMPAD5:"numpad-5",VK_NUMPAD6:"numpad-6",VK_NUMPAD7:"numpad-7",VK_NUMPAD8:"numpad-8",VK_NUMPAD9:"numpad-9",VK_MULTIPLY:"numpad-*",VK_ADD:"numpad-+",VK_SEPARATER:void 0,VK_SEPARATOR:void 0,VK_SUBTRACT:"numpad--",VK_DECIMAL:"numpad-.",VK_DIVIDE:"numpad-/",VK_F1:"f1",VK_F2:"f2",VK_F3:"f3",VK_F4:"f4",VK_F5:"f5",VK_F6:"f6",VK_F7:"f7",VK_F8:"f8",VK_F9:"f9",VK_F10:"f10",VK_F11:"f11",VK_F12:"f12",VK_DELETE:"delete",VK_DEAD_GRAVE:void 0,VK_DEAD_ACUTE:void 0,VK_DEAD_CIRCUMFLEX:void 0,VK_DEAD_TILDE:void 0,VK_DEAD_MACRON:void 0,VK_DEAD_BREVE:void 0,VK_DEAD_ABOVEDOT:void 0,VK_DEAD_DIAERESIS:void 0,VK_DEAD_ABOVERING:void 0,VK_DEAD_DOUBLEACUTE:void 0,VK_DEAD_CARON:void 0,VK_DEAD_CEDILLA:void 0,VK_DEAD_OGONEK:void 0,VK_DEAD_IOTA:void 0,VK_DEAD_VOICED_SOUND:void 0,VK_DEAD_SEMIVOICED_SOUND:void 0,VK_NUM_LOCK:void 0,VK_SCROLL_LOCK:void 0,VK_AMPERSAND:void 0,VK_ASTERISK:"*",VK_QUOTEDBL:'"',VK_LESS:"<",VK_PRINTSCREEN:void 0,VK_INSERT:"insert",VK_HELP:void 0,VK_META:void 0,VK_GREATER:">",VK_BRACELEFT:void 0,VK_BRACERIGHT:void 0,VK_BACK_QUOTE:"`",VK_QUOTE:"'",VK_KP_UP:"up",VK_KP_DOWN:"down",VK_KP_LEFT:"left",VK_KP_RIGHT:"right",VK_ALPHANUMERIC:void 0,VK_KATAKANA:void 0,VK_HIRAGANA:void 0,VK_FULL_WIDTH:void 0,VK_HALF_WIDTH:void 0,VK_ROMAN_CHARACTERS:void 0,VK_ALL_CANDIDATES:void 0,VK_PREVIOUS_CANDIDATE:void 0,VK_CODE_INPUT:void 0,VK_JAPANESE_KATAKANA:void 0,VK_JAPANESE_HIRAGANA:void 0,VK_JAPANESE_ROMAN:void 0,VK_KANA_LOCK:void 0,VK_INPUT_METHOD_ON_OFF:void 0,KEY_FIRST:void 0,KEY_TYPED:void 0,KEY_PRESSED:void 0,KEY_LAST:void 0,KEY_RELEASED:void 0,VK_AT:void 0,VK_COLON:void 0,VK_CIRCUMFLEX:void 0,VK_DOLLAR:void 0,VK_EURO_SIGN:void 0,VK_EXCLAMATION_MARK:void 0,VK_INVERTED_EXCLAMATION_MARK:void 0,VK_LEFT_PARENTHESIS:void 0,VK_NUMBER_SIGN:void 0,VK_PLUS:"+",VK_RIGHT_PARENTHESIS:void 0,VK_UNDERSCORE:"underscore",VK_WINDOWS:void 0,VK_CONTEXT_MENU:void 0,VK_F13:"f13",VK_F14:"f14",VK_F15:"f15",VK_F16:"f16",VK_F17:void 0,VK_F18:void 0,VK_F19:void 0,VK_F20:void 0,VK_F21:void 0,VK_F22:void 0,VK_F23:void 0,VK_F24:void 0,VK_COMPOSE:void 0,VK_BEGIN:void 0,VK_ALT_GRAPH:void 0,VK_STOP:void 0,VK_AGAIN:void 0,VK_PROPS:void 0,VK_UNDO:void 0,VK_COPY:void 0,VK_PASTE:void 0,VK_FIND:void 0,VK_CUT:void 0,CHAR_UNDEFINED:void 0}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(229)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,t){this._shortcutsModel=e,this._findActionsInGroupCallback=t,this._defaults={}},storeDefaults:function(){this._defaults={},this._shortcutsModel.getActiveKeyBindings().forEach((function(e){var i=this._shortcutsModel.getDefaultActionGroupForKeyStroke(e);if(i){var n=this._buildFullListOfDefaults(i.getActionIds());this._defaults[e]=n}else t.error("Default action group does not exist.")}),this)},getDefaultActionIds:function(e){return this._defaults[e]||null},_buildFullListOfDefaults:function(e){var t=[];return e.forEach((function(e){var i=this._findActionsInGroupCallback(e);i&&i.length>-1?t=t.concat(i):t.push(e)}),this),t=i.unique(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(203),i(204)],o=i.dj.d(n,(function(e,t,i){var n=[{contextId:"MATLABEditor",actionIds:{"copy-to-clipboard":["rtc_copy"],"cut-to-clipboard":["rtc_cut"],"paste-from-clipboard":["rtc_paste"],undo:["rtc_undo"],redo:["rtc_redo"],"select-all":["codeexampleblock.selectall","rtc_live_app_select_all","rtc_select_all"],"kill-line":["rtc_kill_line"],unselect:["codeexampleblock.escape","rtc_deactivate_image","rtc_clear_selection"],"delete-previous":["rtc_live_control_backspace","rtc_live_app_backspace","codeexampleblock.backspace","rtc_delete_backward"],"inc-search-forward":["rtc_find_dialog_find_forward_key"],"inc-search-backward":["rtc_find_dialog_find_backward_key"],"insert-break":["rtc_general_table_of_contents_linebreak","rtc_insert_break"],"shift-insert-break":["rtc_shift_insert_break"],"delete-next":["rtc_live_control_delete","rtc_live_app_delete","codeexampleblock.delete","rtc_delete_forward"],"caret-forward":["rtc_live_control_right","rtc_live_app_right","codingui_right","rtc_move_right"],"caret-backward":["rtc_live_control_left","rtc_live_app_left","rtc_move_left"],"caret-down":["codingui_down","rtc_move_down"],"caret-up":["codingui_up","rtc_move_up"],"selection-forward":["rtc_select_right"],"selection-backward":["rtc_select_left"],"selection-down":["rtc_select_down"],"selection-up":["rtc_select_up"],"caret-next-word":["rtc_move_word_right"],"caret-previous-word":["rtc_move_word_left"],"selection-next-word":["rtc_select_word_right"],"selection-previous-word":["rtc_select_word_left"],"page-down":["codingui_pagedown","rtc_move_page_down"],"page-up":["codingui_pageup","rtc_move_page_up"],"selection-page-up":["rtc_select_page_up"],"selection-page-down":["rtc_select_page_down"],"caret-begin-line":["rtc_move_line_start"],"caret-begin":["rtc_move_start"],"caret-end-line":["rtc_move_line_end"],"caret-end":["rtc_move_end"],"selection-begin-line":["rtc_select_line_start"],"selection-end-line":["rtc_select_line_end"],"selection-end":["rtc_select_end"],"selection-begin":["rtc_select_start"],"remove-word-next":["rtc_delete_next_word"],"remove-word-previous":["rtc_delete_previous_word"],comment:["rtc_comment"],uncomment:["rtc_uncomment"],"insert-tab":["rtc_richtext_tab_insert","rtc_live_control_tab","rtc_live_app_tab","codingui_tab","rtc_emacs_style_tab","rtc_smart_tab","rtc_format_code_tab","rtc_tab"],"shift-tab-pressed":["rtc_richtext_shift_tab_insert","rtc_shift_tab"],"shift-line-left":["rtc_unindent"],"shift-line-right":["rtc_indent"],format:["rtc_smart_indent","rtc_smart_indent_or_italic"],"collapse-all-folds":["rtc_fold_all"],"expand-all-folds":["rtc_unfold_all"],"collapse-fold":["rtc_fold_current_block"],"expand-fold":["rtc_unfold_current_block"],"show-page-setup":["rtc_page_setup"],print:["rtc_print"],"set-clear-breakpoint":["rtc_toggle_breakpoint"],"help-on-selection":["rtc_liveapps_help","help_on_selection"],"debug-continue":["rtc_run","rtc_continue"],"open-selection":["rtc_open_selection"],"print-selection":["rtc_print_selection"],"evaluate-selection":["rtc_evaluate_selection"],"find-selection":["rtc_find_dialog_find_selection_key"],"find-previous":["rtc_find_dialog_find_previous_key"],"find-next":["rtc_find_dialog_find_next_key"],"find-and-replace":["rtc_find_dialog"],"find-with-replace":["rtc_replace_dialog"],save:["save"],"open-new":["rtc_open"],"new-mfile":["rtc_new_mfile"],"save-all":["rtc_save_all"],"save-as":["rtc_save_as"],"save-backup":["rtc_save_backup"],"goto-line":["rtc_goTo_dialog"],"merge-comments":["rtc_wrap_comment"],"toggle-bookmark":["rtc_toggle_bookmark"],"next-bookmark":["rtc_next_bookmark"],"prev-bookmark":["rtc_previous_bookmark"],"eval-cell":["rtc_run_section"],"eval-cell-and-advance":["rtc_run_section_advance"],"eval-file":["rtc_run_section_all"],"prev-cell":["rtc_navigate_previous_section"],"next-cell":["rtc_navigate_next_section"],"split-screen-off":["rtc_split_none"],"split-screen-top-bottom":["rtc_split_top_bottom"],"split-screen-left-right":["rtc_split_left_right"],"split-screen-switch-focus":["rtc_split_switch"],"enable-disable-breakpoint":["rtc_toggle_enable_breakpoint"],"set-modify-breakpoint-condition":["_rtc_menu_toggle_conditional_breakpoint"],"add-cell-divider":["rtc_insert_sectionbreak","rtc_insert_section_markup"],"create-cell-title":["rtc_insert_section_title_markup"],"create-hyperlink":["rtc_insert_hyperlink_markup"],"create-bold-text":["rtc_insert_bold_markup"],"create-italic-text":["rtc_insert_italic_markup"],"create-monospaced-text":["rtc_insert_monospace_markup"],"create-bulleted-list":["rtc_insert_bulleted_list_markup"],"create-preformatted-text":["rtc_insert_preformatted_text_markup"],"create-sample-code":["rtc_insert_preformatted_code_markup"],"create-tex-equation":["rtc_insert_display_latex_markup"],"create-latex-inline-math":["rtc_insert_inline_latex_markup"],"create-image":["rtc_insert_image_markup"],"create-numbered-list":["rtc_insert_numbered_list_markup"],"find-files":["rtc_find_files"],"adjust-window-top":["rtc_adjust_window_top"],"adjust-window-bottom":["rtc_adjust_window_bottom"],"jump-list-prev":["commoneditor_navigate_backward"],"jump-list-next":["commoneditor_navigate_forward"],"open-mlint-message":["rtc_code_analyzer_tooltip"],"mlint-fix-action":["rtc_autofix"],"mlint-suppressAll-action":["rtc_suppress_in_file"],"mlint-disableAll-action":["rtc_suppress_in_all_files"],"mlint-suppressThis-action":["rtc_suppress_on_line"],"copy-full-path":["rtc_copy_full_path"],"change-current-folder":["rtc_change_current_folder"],"next-message":["rtc_goto_next_variable"],"previous-message":["rtc_goto_prev_variable"],"open-with-system-browser":["rtc_open_with_system_browser"]}},{contextId:"MATLABDesktop",actionIds:{"pause-execution":["rtc_pause"],"debug-step":["rtc_step"],"debug-step-in":["rtc_debug_step_in"],"debug-step-out":["rtc_debug_step_out"],"exit-debug":["rtc_stop_execution"],"clear-all-breakpoints":["rtc_clear_all_breakpoints"],"close-item":["rtc_forward_to_desktop_close_item"]}},{contextId:"RunTestsContext",actionIds:{"run-all-tests":["matlabunit_runtests"],"run-current-test":["matlabunit_runcurrenttest"]}}];e("mac")&&(n[0].actionIds["debug-continue"].unshift("mac_only_debug_no_op_debug_continue"),n[1].actionIds["debug-step"].unshift("mac_only_debug_no_op_debug_step"),n[1].actionIds["debug-step-in"].unshift("mac_only_debug_no_op_debug_step_in"),n[1].actionIds["debug-step-out"].unshift("mac_only_debug_no_op_debug_step_out"),n[1].actionIds["exit-debug"].unshift("mac_only_debug_no_op_debug_quit"));var o={};return n.forEach((function(e){i.mixin(o,e.actionIds)}),this),{getRtcActionIdsForTraditionalEditorAction:function(e){return o[e]||[]},getContextIds:function(){return n.map((function(e){return e.contextId}))},getTraditionalActionIds:function(e){for(var t=0;t<n.length;t++){var i=n[t];if(i.contextId===e)return Object.keys(i.actionIds)}return[]},findRelatedRtcActionIds:function(e){for(var t=Object.values(o),i=0;i<t.length;i++){var n=t[i];if(n.indexOf(e)>-1)return n}return null},_getActionMap:function(){return o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(223)],o=i.dj.d(n,(function(e){var t={};return t[e.BACKSPACE]="backspace",t[e.DELETE]="delete",t[e.INSERT]="insert",t[e.ENTER]="enter",t[10]="enter",t[e.TAB]="tab",t[e.LEFT_ARROW]="left",t[e.RIGHT_ARROW]="right",t[e.UP_ARROW]="up",t[e.DOWN_ARROW]="down",t[e.PAGE_UP]="pageup",t[e.PAGE_DOWN]="pagedown",t[e.HOME]="home",t[e.END]="end",t[e.ESCAPE]="escape",t[e.F1]="f1",t[e.F2]="f2",t[e.F3]="f3",t[e.F4]="f4",t[e.F5]="f5",t[e.F6]="f6",t[e.F7]="f7",t[e.F8]="f8",t[e.F9]="f9",t[e.F10]="f10",t[e.F11]="f11",t[e.F12]="f12",t[e.F13]="f13",t[e.F14]="f14",t[e.F15]="f15",t[127]="f16",t[186]=";",t[187]="=",t[188]=",",t[189]="-",t[190]=".",t[191]="/",t[192]="`",t[219]="[",t[221]="]",t[220]="\\",t[222]="'",t[226]="<",t[e.CLEAR]="clear",t[e.PAUSE]="pause",t[e.SPACE]="space",t[e.NUMPAD_0]="numpad-0",t[e.NUMPAD_1]="numpad-1",t[e.NUMPAD_2]="numpad-2",t[e.NUMPAD_3]="numpad-3",t[e.NUMPAD_4]="numpad-4",t[e.NUMPAD_5]="numpad-5",t[e.NUMPAD_6]="numpad-6",t[e.NUMPAD_7]="numpad-7",t[e.NUMPAD_8]="numpad-8",t[e.NUMPAD_9]="numpad-9",t[e.NUMPAD_MULTIPLY]="numpad-*",t[e.NUMPAD_PLUS]="numpad-+",t[e.NUMPAD_ENTER]="numpad-enter",t[e.NUMPAD_MINUS]="numpad--",t[e.NUMPAD_PERIOD]="numpad-.",t[e.NUMPAD_DIVIDE]="numpad-/",t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(904)],o=i.dj.d(n,(function(e,t){return new t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3423)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.functionservice","rtc.export.html","rtc.export.helptext"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(3424),i(244),i(207),i(234),i(270),i(266),i(1834),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(o,{_SECTION_BREAK:"SectionBreak",constructor:function(e,t,i,n){this._internalDocument=e,this._functionService=t,this._htmlExporter=i,this._helpTextExporter=n,this._exporterPromises=[]},getFileDocumentation:function(){var e=new t;return this._functionService.whenReady(function(){try{this._exporterPromises=[];var t=this._getFunctionDoc();n(this._exporterPromises).then(function(){e.resolve(t)}.bind(this)),this._exporterPromises=[]}catch(t){return c.error("Error during documentation generation",t),e.reject("Error while generating documentation: "+t)}}.bind(this)),e.promise},_getFunctionDoc:function(){var e=this._functionService.getMainFunctionDeclaration();return{topLevelDoc:this._getDocForFunction(e)}},_getDocForFunction:function(e){var t;return(t=e.isTopLevelFunction()?this._getDocForTopLevelElement(e):this._getDocForElement(e)).purposeText||(t.purposeText=i.liveFunctionDefault,t.purpose=i.liveFunctionDefault),t.name=e.getName(),t.syntax=l.constructFunctionSyntax(e.getName(),e.getOutputArgumentNames(),e.getInputArgumentNames()),t},_getDocForTopLevelElement:function(e){var t=this._getRichDocBelowLine(0);return t||(t=this._getCodeCommentBelowLine(0)),t||(t=this._getCodeCommentBelowLine(e.getDeclarationEndLine())),t||(t={purposeText:"",purpose:"",description:"",descriptionText:""}),t},_getDocForElement:function(e){var t=this._getRichDocAboveLine(e.getStartLine());return t||(t=this._getCodeCommentAboveLine(e.getStartLine())),t||(t=this._getCodeCommentBelowLine(e.getDeclarationEndLine())),t||(t={purposeText:"",purpose:"",description:"",descriptionText:""}),t},_getDocForInlineElement:function(e){var t=this._getCodeCommentAboveLine(e);return t||(t=this._getCodeCommentForLine(e)),t||(t={purposeText:"",purpose:"",description:"",descriptionText:""}),t},_getRichDocAboveLine:function(e){for(e--;this._isLineEmpty(e);)e--;for(var t=[],i=this._internalDocument.getLineNode(e-1);i&&!r.isCodeContainer(i,!1);)t.push(i),e--,i=this._internalDocument.getLineNode(e-1);return this._getDocObjectForRichText(t.reverse())},_getRichDocBelowLine:function(e){for(e++;this._isLineEmpty(e);)e++;for(var t=[],i=this._internalDocument.getLineNode(e-1);i&&!r.isCodeContainer(i,!1);)t.push(i),e++,i=this._internalDocument.getLineNode(e-1);return this._getDocObjectForRichText(t)},_getDocObjectForRichText:function(e){let t,i=null,n="";for(;e.length>0&&""===n;)i=e.shift(),n=i.getText().trim();if(!i)return null;const o={};return o.purposeText=n,t=this._getHtmlForLineNodes([i]).then(e=>{o.purpose=e}),this._exporterPromises.push(t),t=this._getHtmlForLineNodes(e).then(e=>{o.description=e}),this._exporterPromises.push(t),t=this._getHelpTextForLineNodes(e).then(e=>{o.descriptionText=e}),this._exporterPromises.push(t),o},_getCodeCommentAboveLine:function(e){for(e--;this._isLineEmpty(e);)e--;for(var t=[],i=this._internalDocument.getLineNode(e-1);i&&r.isCodeComment(i);)t.push(i),e--,i=this._internalDocument.getLineNode(e-1);return this._getDocObjectForCodeComments(t.reverse())},_getCodeCommentBelowLine:function(e){for(e++;this._isLineEmpty(e);)e++;for(var t=[],i=this._internalDocument.getLineNode(e-1);i&&r.isCodeComment(i);)t.push(i),e++,i=this._internalDocument.getLineNode(e-1);return this._getDocObjectForCodeComments(t)},_getDocObjectForCodeComments:function(e){if(!e.length)return null;var t=this._getCommentFromLineNode(e.shift());return{purposeText:t,purpose:t,description:this._getHtmlForCodeLineNodes(e),descriptionText:this._getHelpTextForCodeLineNodes(e)}},_isLineEmpty:function(e){var t=this._internalDocument.getLineNode(e-1);return t&&""===t.getText().trim()},_getCodeCommentForLine:function(e){var t=this._internalDocument.getLineNode(e-1),i=this._getCommentFromLineNode(t);return i?{purposeText:i,purpose:i,description:"",descriptionText:""}:null},_getCommentFromLineNode:function(e){var t=e.getText(),i=t.match(/[^%]*%+/);if(!i)return"";var n=i[0].length;return t.slice(n).trim()},_getHtmlForCodeLineNodes:function(e){return"<span><p>"+e.map((function(e){return this._getCommentFromLineNode(e)}),this).join("<br/>")+"</p></span>"},_getHelpTextForCodeLineNodes:function(e){return e.map((function(e){return this._getCommentFromLineNode(e)}),this).join("\n")},_getHtmlForLineNodes:function(e){var i;if(e.length>0){let t=this._getExporterRangeFromLineNodes(e);i=this._htmlExporter.export({range:t,returnBodyFragment:!0,styles:"inline",equationsAsMathML:!0,hideOutputs:!0,headingAsDiv:!0,hyperlinkTarget:"_blank"}).then(function(e){return this._convertFormatting(e)}.bind(this))}else(i=new t).resolve("");return i},_getHelpTextForLineNodes:function(e){let i;if(e.length>0){let t=this._getExporterRangeFromLineNodes(e);i=this._helpTextExporter.export({range:t}).then(e=>e)}else i=new t,i.resolve("");return i},_getExporterRangeFromLineNodes:function(e){let t=new a(e[0]),i=e[e.length-1].endPosition();return new s(t,i)},_convertFormatting:function(e){return e=(e=e.replace(new RegExp(" font-size: .*?;","g"),"")).replace(new RegExp(" white-space: .*?;","g"),"")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3425),i(3426),i(3427),i(3428)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/documentation",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={liveFunctionDefault:"はライブ関数です"}},function(e,t,i){e.exports={liveFunctionDefault:"은(는) 라이브 함수임"}},function(e,t,i){e.exports={liveFunctionDefault:"为实时函数"}},function(e,t,i){e.exports={root:{liveFunctionDefault:"is a live function"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(1342)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){this._map=new t,this.size=0},add:function(e){return this._map.set(e,e),this.size=this._map.size,this},has:function(e){return this._map.has(e)},clear:function(){return this.size=0,this._map.clear()},delete:function(e){var t=this._map.delete(e);return this.size=this._map.size,t},forEach:function(e,t){for(var i,n=this._map._getElements(),o=0;o<n.length;o++)i=n[o],e.call(t,i.value,i.key,this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(229)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){this._propName="__RTCPseudoWeakSet_"+t.generateUuid()},add:function(e){return e[this._propName]=!0,this},delete:function(e){return!!this.has(e)&&(delete e[this._propName],!0)},has:function(e){return e.hasOwnProperty(this._propName)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3432)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.code.executablelines","rtc.backingstore"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(378),i(3433)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,n){this._executableLineService=e,this._backingStore=n,this._shouldDifferentiateExecutableLines=!1,this.own(i.after(this._executableLineService,"onUpdate",t.hitch(this,"_handleExecutableLinesUpdated"))),this.own(i.after(this._backingStore,"onLocationUpdated",t.hitch(this,"_updateShouldDifferentiateExecutableLines"))),this._updateShouldDifferentiateExecutableLines()},_handleExecutableLinesUpdated:function(){this.onUpdate()},getClasses:function(e){var t=[];return this._shouldDifferentiateExecutableLines&&!this._executableLineService.isCodeLineExecutable(e)&&t.push("nonExecutableLineNumber"),t},_updateShouldDifferentiateExecutableLines:function(){var e=n.isMatlabCodeFileOrBuffer(this._backingStore);this._shouldDifferentiateExecutableLines!==e&&(this._shouldDifferentiateExecutableLines=e,this.onUpdate())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},getCSSClasses:function(){Log.error("AbstractLineNumberStyler.getCSSClasses Unimplemented")},onUpdate:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(521)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3436)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(521),i(319),i(574),i(300)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{write:function(e,t){var n=o.createXMLElement(this.getXMLType()),r=o.createXMLElement(),a=o.createXMLElement(i.PARAGRAPH_PROPERTY_TAG_NAME),s=o.createXMLElement(i.SECTION_PROPERTY_TAG_NAME);return a.appendChild(s),r.appendChild(a),n.appendChild(r),n},read:function(e,t,i){return{readObject:[{children:[],className:this.getNodeType()}],readStatus:!0}},getXMLType:function(){return"sectionbreak"},getNodeType:function(){return"SectionBreak"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3438)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.domnode.external","rtc.viewmanager"]}},createInstance:function(e,t){return new i(e.parentNode,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(207),i(282),i(208)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{_BANNER_CONTAINER_CLASS:"bannerContainer",constructor:function(e,t){this._viewManager=t,this._topBannerContainer=this._createTopBannerContainerUnder(e),this.own(this._topBannerContainer),this._resizeTargetToBannerMap=n.createMap(),this._resizeHandlerMap=n.createMap()},registerBanner:function(e,t){this._resizeTargetToBannerMap.has(t)||this._resizeTargetToBannerMap.set(t,[]),e.disableResize();var i=o.after(e,"doResize",this._handleResize.bind(this,t));this._resizeTargetToBannerMap.get(t).push(e),this._resizeHandlerMap.set(e,i),this._handleResize(t)},deregisterBanner:function(e,t){if(this._resizeHandlerMap.has(e)){this._resizeHandlerMap.get(e).remove(),this._resizeHandlerMap.delete(e);var i=this._resizeTargetToBannerMap.get(t),n=i.indexOf(e);-1!==n&&i.splice(n,1),i.length||this._resizeTargetToBannerMap.delete(t),e.enableResize()}},getTopBannerContainer:function(){return this._topBannerContainer},_createTopBannerContainerUnder:function(e){return t.create("div",{class:this._BANNER_CONTAINER_CLASS},e,"first")},_handleResize:function(e){var t=this._resizeTargetToBannerMap.get(e),i=this._getTotalHeight(t);e.style.height="calc(100% - "+i+"px)",e.style.top=i+"px",t.forEach((function(e){e.alertResize()})),this._viewManager.resize()},_getTotalHeight:function(e){var t=0;return e.forEach((function(e){t+=e.getBannerHeight()})),t},destroy:function(){this.inherited(arguments),this._resizeHandlerMap.forEach((function(e){e.remove()})),this._resizeHandlerMap.clear(),this._resizeTargetToBannerMap.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,t,i){this._internalDocument=e,this._cursor=t,this._eventHandler=i,this._whileTypingHandles=[],this._whileMovingHandles=[],this.own(n.after(this._cursor,"onChange",this._handleCursorOnChange.bind(this))),this.handleMovingPreferenceChange(!0),this.handleTypingPreferenceChange(!0)},_handleCursorOnChange:function(){this._cursor.hasSelection()&&this.onCursorChangeWhileSelection()},onCursorChangeWhileSelection:function(){},handleMovingPreferenceChange:function(e){if(e){if(this._whileMovingHandles.length)return;this._whileMovingHandles.push(n.after(this._cursor,"movePosition",t.hitch(this,"onCursorMove",!1))),this._whileMovingHandles.push(n.after(this._eventHandler,"onMouseDown",this._handleOnMouseDown.bind(this),!0))}else this._disableListeners(this._whileMovingHandles),this._whileMovingHandles=[]},handleTypingPreferenceChange:function(e){if(e){if(this._whileTypingHandles.length)return;this._whileTypingHandles=[],this._whileTypingHandles.push(n.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"onCursorMove",!0)))}else this._disableListeners(this._whileTypingHandles),this._whileTypingHandles=[]},_handleOnMouseDown:function(e){e&&2===e.buttons||this.onCursorMove(!1)},onCursorMove:function(e){},_disableListeners:function(e){e.forEach((function(e){e.remove()}))},destroy:function(){this.inherited(arguments),this._disableListeners(this._whileMovingHandles),this._disableListeners(this._whileTypingHandles)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3441)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.tokenmatching.eventhandler","rtc.settings.service"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{_KEYBOARD_WHILE_MOVING_PREFERENCE:"matlab.keyboard.delimiter.ShowMatchesOnArrowKey",_KEYBOARD_WHILE_TYPING_PREFERENCE:"matlab.keyboard.delimiter.ShowMatchesWhenTyping",constructor:function(e,t){this._matchingPlugin=e,t.getSetting(this._KEYBOARD_WHILE_MOVING_PREFERENCE).then(function(e){this._onMovingSettingChanged(e)}.bind(this),(function(){})),this.own(t.listenToSettingChange(this._KEYBOARD_WHILE_MOVING_PREFERENCE,this._onMovingSettingChanged.bind(this))),t.getSetting(this._KEYBOARD_WHILE_TYPING_PREFERENCE,!1).then(function(e){this._onTypingSettingChanged(e)}.bind(this),(function(){})),this.own(t.listenToSettingChange(this._KEYBOARD_WHILE_TYPING_PREFERENCE,this._onTypingSettingChanged.bind(this)))},_onMovingSettingChanged:function(e){this._matchingPlugin.handleMovingPreferenceChange(e)},_onTypingSettingChanged:function(e){this._matchingPlugin.handleTypingPreferenceChange(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},onTokenHighlighted:function(){},onTokenDecorationUpdated:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(237),i(266),i(1343)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_HIGHLIGHT_CSS_CLASS:"",constructor:function(e,i,n,o){this._internalDocument=e,this._positionController=n,this._tokenNotifier=o,this._rangeArray=[],this.own(t.after(this._internalDocument,"onDocumentReset",this.hide.bind(this),!0)),this._timers={}},showMatch:function(e){this._showHighlighting(e,["tokenMatching"])},showMismatch:function(e){this._showHighlighting(e,["tokenMisMatching"])},getTokenLineColumnInfo:function(e,t){return e?{startLine:e.line,startColumn:e.column,endLine:e.line,endColumn:e.column+t}:null},_showHighlighting:function(e,t){this._clearTimer("hideTimer"),this._timers.hideTimer=setTimeout(this.hide.bind(this),1e3),this._isInstancesSameAsLast(e)||(this._tokenNotifier.onTokenHighlighted(),this._updateLastVariableInstances(e),this._HIGHLIGHT_CSS_CLASS=t,this._updateHighlights(e))},_updateHighlights:function(e){this._clearTimer("decorationTimer"),this._timers.decorationTimer=setTimeout(function(){this._clearDecorations(),this._addDecorations(e),this.onModelUpdated(e)}.bind(this),0)},_addDecorations:function(e){e.forEach((function(e){if(i.checkLineColumnIsValid(this._internalDocument,e.startLine,e.startColumn)){var t=this._positionController.createPositionAtLineColumn(e.startLine,e.startColumn,!1,!0),o=this._positionController.createPositionAtLineColumn(e.endLine,e.endColumn,!1,!0),r=new n(t,o);this._rangeArray.push(r),this._decorator.addClass(r,[this._HIGHLIGHT_CSS_CLASS])}}),this),this._decorator.applyChanges(),this._tokenNotifier.onTokenDecorationUpdated()},hide:function(){0!==this._rangeArray.length&&(this._clearTimer("hideTimer"),this._clearTimer("highlightTimer"),this.clearHighlightingState())},_clearTimer:function(e){this._timers[e]&&(clearTimeout(this._timers[e]),this._timers[e]=null)},_clearDecorations:function(){0!==this._rangeArray.length&&(this._rangeArray.forEach((function(e){this._decorator.clearRange(e),e.destroy()}),this),this._decorator.applyChanges(),this._tokenNotifier.onTokenDecorationUpdated(),this._rangeArray=[])},clearHighlightingState:function(){this._timers.highlightTimer=setTimeout(function(){this._clearHighlightingState()}.bind(this),0)},destroy:function(){this.inherited(arguments),this._clearTimer("hideTimer"),this._clearTimer("decorationTimer"),this._clearTimer("highlightTimer"),this._clearHighlightingState()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e;return e={unicodeCategories:{Cn:"͸͹Ϳ-΃΋΍΢Ԩ-԰՗՘ՠֈ֋-֐׈-׏׫-ׯ׵-׿؄؅؜؝܎݋݌޲-޿߻-߿࠮࠯࠿࡜࡝࡟-ࣿॸঀ঄঍঎঑঒঩঱঳-঵঺঻৅৆৉৊৏-৖৘-৛৞৤৥ৼ-਀਄਋-਎਑਒਩਱਴਷਺਻਽੃-੆੉੊੎-੐੒-੘੝੟-੥੶-઀઄઎઒઩઱઴઺઻૆૊૎૏૑-૟૤૥૰૲-଀଄଍଎଑଒଩଱଴଺଻୅୆୉୊୎-୕୘-୛୞୤୥୸-஁஄஋-஍஑஖-஘஛஝஠-஢஥-஧஫-஭஺-஽௃-௅௉௎௏௑-௖௘-௥௻-ఀఄ఍఑఩ఴ఺-఼౅౉౎-౔౗ౚ-౟౤౥౰-౷ಀಁ಄಍಑಩಴಺಻೅೉೎-೔೗-ೝ೟೤೥೰ೳ-ഁഄ഍഑഻഼൅൉൏-ൖ൘-ൟ൤൥൶-൸඀ඁ඄඗-඙඲඼඾඿෇-෉෋-෎෕෗෠-෱෵-฀฻-฾๜-຀຃຅ຆຉ຋ຌຎ-ຓຘຠ຤຦ຨຩຬ຺຾຿໅໇໎໏໚໛ໞ-໿཈཭-཰྘྽࿍࿛-࿿჆-჏ჽ-ჿ቉቎቏቗቙቞቟኉኎኏኱኶኷኿዁዆዇዗጑጖጗፛፜፽-፿᎚-᎟Ᏽ-᏿᚝-᚟ᛱ-᛿ᜍ᜕-ᜟ᜷-᜿᝔-᝟᝭᝱᝴-᝿៞៟៪-៯៺-៿᠏᠚-᠟ᡸ-᡿᢫-᢯᣶-᣿ᤝ-᤟᤬-᤯᤼-᤿᥁-᥃᥮᥯᥵-᥿᦬-᦯᧊-᧏᧛-᧝᨜᨝᩟᩽᩾᪊-᪏᪚-᪟᪮-᫿ᭌ-᭏᭽-᭿᮫-ᮭᮺ-ᮿ᯴-᯻᰸-᰺᱊-᱌ᲀ-᳏ᳳ-᳿ᷧ-᷻἖἗἞἟὆὇὎὏὘὚὜὞὾὿᾵῅῔῕῜῰῱῵῿⁥-⁩⁲⁳₏₝-₟₺-⃏⃱-⃿↊-↏⏴-⏿␧-␿⑋-⑟✀⟋⟍⭍-⭏⭚-⯿ⰯⱟⳲ-⳸⴦-⴯ⵦ-⵮⵱-⵾⶗-⶟⶧⶯⶷⶿⷇⷏⷗⷟⸲-⹿⺚⻴-⻿⿖-⿯⿼-⿿぀゗゘㄀-㄄ㄮ-㄰㆏ㆻ-ㆿ㇤-㇯㈟㋿䶶-䶿鿌-鿿꒍-꒏꓇-꓏꘬-꘿ꙴ-ꙻꚘ-ꚟ꛸-꛿ꞏꞒ-ꞟꞪ-ꟹ꠬-꠯꠺-꠿꡸-꡿ꣅ-꣍꣚-꣟꣼-ꣿ꥔-꥞꥽-꥿꧎꧚-꧝ꧠ-꧿꨷-꨿꩎꩏꩚꩛ꩼ-ꩿ꫃-꫚ꫠ-꬀꬇꬈꬏꬐꬗-꬟꬧꬯-ꮿ꯮꯯꯺-꯿힤-힯퟇-퟊퟼-퟿郞隷﩮﩯﫚-﫿﬇-﬒﬘-﬜﬷﬽﬿﭂﭅﯂-﯒﵀-﵏﶐﶑﷈-﷯﷾﷿︚-︟︧-︯﹓﹧﹬-﹯﹵﻽﻾＀﾿-￁￈￉￐￑￘￙￝-￟￧￯-￸￾￿",Lu:"A-ZÀ-ÖØ-ÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉ-ƋƎ-ƑƓƔƖ-ƘƜƝƟƠƢƤƦƧƩƬƮƯƱ-ƳƵƷƸƼDŽLJNJǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮDZǴǶ-ǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁɃ-ɆɈɊɌɎͰͲͶΆΈ-ΊΌΎΏΑ-ΡΣ-ΫϏϒ-ϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽ-ЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸӺӼӾԀԂԄԆԈԊԌԎԐԒԔԖԘԚԜԞԠԢԤԦԱ-ՖႠ-ჅḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẞẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸỺỼỾἈ-ἏἘ-ἝἨ-ἯἸ-ἿὈ-ὍὙὛὝὟὨ-ὯᾸ-ΆῈ-ΉῘ-ΊῨ-ῬῸ-Ώℂℇℋ-ℍℐ-ℒℕℙ-ℝℤΩℨK-ℭℰ-ℳℾℿⅅↃⰀ-ⰮⱠⱢ-ⱤⱧⱩⱫⱭ-ⱰⱲⱵⱾ-ⲀⲂⲄⲆⲈⲊⲌⲎⲐⲒⲔⲖⲘⲚⲜⲞⲠⲢⲤⲦⲨⲪⲬⲮⲰⲲⲴⲶⲸⲺⲼⲾⳀⳂⳄⳆⳈⳊⳌⳎⳐⳒⳔⳖⳘⳚⳜⳞⳠⳢⳫⳭꙀꙂꙄꙆꙈꙊꙌꙎꙐꙒꙔꙖꙘꙚꙜꙞꙠꙢꙤꙦꙨꙪꙬꚀꚂꚄꚆꚈꚊꚌꚎꚐꚒꚔꚖꜢꜤꜦꜨꜪꜬꜮꜲꜴꜶꜸꜺꜼꜾꝀꝂꝄꝆꝈꝊꝌꝎꝐꝒꝔꝖꝘꝚꝜꝞꝠꝢꝤꝦꝨꝪꝬꝮꝹꝻꝽꝾꞀꞂꞄꞆꞋꞍꞐꞠꞢꞤꞦꞨA-Z",Ll:"a-zªµºß-öø-ÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĸĺļľŀłńņňʼnŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżž-ƀƃƅƈƌƍƒƕƙ-ƛƞơƣƥƨƪƫƭưƴƶƹƺƽ-ƿdžljnjǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰdzǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳ-ȹȼȿɀɂɇɉɋɍɏ-ʓʕ-ʯͱͳͷͻ-ͽΐά-ώϐϑϕ-ϗϙϛϝϟϡϣϥϧϩϫϭϯ-ϳϵϸϻϼа-џѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӏӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧա-ևᴀ-ᴫᵢ-ᵷᵹ-ᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕ-ẝẟạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷιῂ-ῄῆῇῐ-ΐῖῗῠ-ῧῲ-ῴῶῷℊℎℏℓℯℴℹℼℽⅆ-ⅉⅎↄⰰ-ⱞⱡⱥⱦⱨⱪⱬⱱⱳⱴⱶ-ⱼⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⳬⳮⴀ-ⴥꙁꙃꙅꙇꙉꙋꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꜣꜥꜧꜩꜫꜭꜯ-ꜱꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝱ-ꝸꝺꝼꝿꞁꞃꞅꞇꞌꞎꞑꞡꞣꞥꞧꞩꟺff-stﬓ-ﬗa-z",Lt:"DžLjNjDzᾈ-ᾏᾘ-ᾟᾨ-ᾯᾼῌῼ",Lm:"ʰ-ˁˆ-ˑˠ-ˤˬˮʹͺՙـۥۦߴߵߺࠚࠤࠨॱๆໆჼៗᡃᪧᱸ-ᱽᴬ-ᵡᵸᶛ-ᶿⁱⁿₐ-ₜⱽⵯⸯ々〱-〵〻ゝゞー-ヾꀕꓸ-ꓽꘌꙿꜗ-ꜟꝰꞈꧏꩰꫝー゙゚",Lo:"ƻǀ-ǃʔא-תװ-ײؠ-ؿف-يٮٯٱ-ۓەۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪࠀ-ࠕࡀ-ࡘऄ-हऽॐक़-ॡॲ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๅກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໜໝༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎა-ჺᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៜᠠ-ᡂᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱷᳩ-ᳬᳮ-ᳱℵ-ℸⴰ-ⵥⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ〆〼ぁ-ゖゟァ-ヺヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿋ꀀ-ꀔꀖ-ꒌꓐ-ꓷꔀ-ꘋꘐ-ꘟꘪꘫꙮꚠ-ꛥꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩯꩱ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛꫜꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-鶴侮-舘並-龎יִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼヲ-ッア-ンᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Mn:"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯꙼꙽꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯥꯨ꯭ﬞ︀-️︠-︦",Nd:"0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9",Nl:"ᛮ-ᛰⅠ-ↂↅ-ↈ〇〡-〩〸-〺ꛦ-ꛯ",No:"²³¹¼-¾৴-৹୲-୷௰-௲౸-౾൰-൵༪-༳፩-፼៰-៹᧚⁰⁴-⁹₀-₉⅐-⅟↉①-⒛⓪-⓿❶-➓⳽㆒-㆕㈠-㈩㉑-㉟㊀-㊉㊱-㊿꠰-꠵",Sk:"^`¨¯´¸˂-˅˒-˟˥-˫˭˯-˿͵΄΅᾽᾿-῁῍-῏῝-῟῭-`´῾゛゜꜀-꜖꜠꜡꞉꞊﮲-﯁^` ̄"},unicodeWordCharacters:function(){return["Lu","Ll","Lt","Lm","Lo","Mn","Nd","Nl","No","Sk"].reduce((function(t,i){return t+e.unicodeCategories[i]}),"")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(282)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){(e=e||{}).styles&&(this._styles=e.styles),e.classes&&(this._classes=e.classes),e.domNodes&&(this._domNodes=e.domNodes)},getClasses:function(){return this._classes},getClassName:function(){return this._classes?Object.keys(this._classes).join(" "):""},addClass:function(e){this._classes=this._classes||{},this._classes[e]=!0},removeClass:function(e){this._classes&&(delete this._classes[e],0===Object.keys(this._classes).length&&delete this._classes)},getStyles:function(){return this._styles},setStyle:function(e,t){this._styles=this._styles||{},this._styles[e]=t},removeStyle:function(e){this._styles&&(delete this._styles[e],0===Object.keys(this._styles).length&&delete this._styles)},getDomNodes:function(){return this._domNodes},addDomNode:function(e,i,n){this._domNodes=this._domNodes||t.createMap();var o={rtcPosition:i,domPlacement:n};this._domNodes.set(e,o)},removeDomNode:function(e){this._domNodes&&(this._domNodes.delete(e),0===this._domNodes.size&&delete this._domNodes)},hasDecoration:function(){return this.hasStyles()||this.hasClasses()||this.hasDomNodes()},hasStyles:function(){var e=this.getStyles();return!!e&&Object.keys(e).length>0},hasClasses:function(){var e=this.getClasses();return!!e&&Object.keys(e).length>0},hasDomNodes:function(){var e=this.getDomNodes();return!!e&&e.size>0},classesEqualTo:function(e){var t=this.getClasses();return(t?Object.keys(t).length:0)===e.length&&!e.some((function(e){return!this.getClasses()[e]}),this)},canMerge:function(e){return this._objectMatch(this._styles,e.getStyles())&&this._objectMatch(this._classes,e.getClasses())&&this._mapMatch(this._domNodes,e.getDomNodes())},cloneSettings:function(){return{styles:this._styles?JSON.parse(JSON.stringify(this._styles)):null,classes:this._classes?JSON.parse(JSON.stringify(this._classes)):null}},_objectMatch:function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var i=Object.keys(e),n=Object.keys(t);return i.length===n.length&&!i.some((function(i){return e[i]!==t[i]}),this)},_mapMatch:function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;if(e.size!==t.size)return!1;var i=!0;return e.forEach((function(e,n){t.has(n)||(i=!1),t.get(n)!==e&&(i=!1)}),this),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(492),i(907),i(208),i(251),i(219),i(3459)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([i,n],{_EVENT_FILE_NAME_UPDATED_CHANNEL_PREFIX:"/liveeditor/event/FileNameUpdated/",constructor:function(e,t,i,n,a,l,c,d,u,h){this._internalDocument=e,this._document=t,this._cursor=i,this._cursorController=n,this._actionService=a,this._rtcView=l,this._backingstore=c,this._rtcId=h,this._isFileBackingStore=c.isInstanceOf(o),this._bookmarks=[],this._documentDirty=!1,this._activeBookmarksInDocument=!1,this._deletionDone=!1,this._documentLoaded=!1,this._fileLoadEventFired=!1,this._actionService.loadActions(this._createBookmarkAction()),d.whenDocumentLoadedWithText(this._loadBookmarks.bind(this)),this.own(r.after(this._backingstore,"onLocationUpdated",this._bookmarksSaveHandler.bind(this))),this._backingstore.save&&this.own(r.after(this._backingstore,"save",this._bookmarksSaveHandler.bind(this),!0)),this.own(r.after(u,"onChange",this._handleOnChange.bind(this),!0)),this.own(r.after(u,"onPreDeletion",this._onPreDeleteHandler.bind(this))),this.own(r.after(this._internalDocument,"deleteSelection",this._handleDeletionDone.bind(this),!0)),this.own(r.after(this._cursorController,"onUpdate",this._updateActions.bind(this))),s.subscribe(this._EVENT_FILE_NAME_UPDATED_CHANNEL_PREFIX+h,"_bookmarksSaveHandler",this)},setMargin:function(e){this._margin=e,this._toogleBookmarksMargin()},_bookmarksSaveHandler:function(){this._documentDirty=!1,this._saveBookmarks()},_handleOnChange:function(){0!==this._bookmarks.length&&(this._documentDirty=!0,this._updateActions(),this._toogleBookmarksMargin())},_handleDeletionDone:function(){this._deletionDone=!0},_onPreDeleteHandler:function(e){if(!this.documentHasBookmarks())return e;var t=this._cursor.getSelection();if(t){var i=t.getStartPosition(),n=t.getEndPosition(),o=i.node.rootContainer(),r=n.node.rootContainer();o!==r&&(this._isNodeInBookmarks(o)&&this._restoreBookmarkAfterDelete(i),this._isNodeInBookmarks(r)&&this._restoreBookmarkAfterDelete(n))}else(this._cursor.position.isAtLeftEdge()||this._cursor.position.isAtRightEdge())&&this._isNodeInBookmarks(this._cursor.getNode().rootContainer())&&this._restoreBookmarkAfterDelete(this._cursor.position);return this._deletionDone=!1,e},_restoreBookmarkAfterDelete:function(e){var t=this._document.createPosition(e.node,e.offset,e.align),i=function(){var e=t.getNode().rootContainer();this._isNodeInBookmarks(e)||!0!==this._deletionDone||this._toggleForNode(e),t.removeChangeListener(i),this._document.deletePosition(t)}.bind(this);t.addChangeListener(i)},_createBookmarkAction:function(){return[{id:a.BOOKMARKS.TOGGLE_BOOKMARK.Action,enabled:!0,key:"ctrl_f2",platformKey:{mac:"meta_f2"},callback:t.hitch(this,"_toggleActionCallback")},{id:a.BOOKMARKS.PREV_BOOKMARK.Action,enabled:!1,key:"shift_f2",platformKey:{mac:"shift_f2"},callback:t.hitch(this,"previousActionCallback")},{id:a.BOOKMARKS.NEXT_BOOKMARK.Action,enabled:!1,key:"f2",platformKey:{mac:"f2"},callback:t.hitch(this,"nextActionCallback")}]},_updateActions:function(){var e=!this._cursorController.hasMultipleCursors();this._actionService.updateAction(a.BOOKMARKS.TOGGLE_BOOKMARK.Action,{enabled:e});var t=e;e&&(this._checkBookmarksInDocument(),t=this.documentHasBookmarks()),this._actionService.updateAction(a.BOOKMARKS.PREV_BOOKMARK.Action,{enabled:t}),this._actionService.updateAction(a.BOOKMARKS.NEXT_BOOKMARK.Action,{enabled:t})},_toogleBookmarksMargin:function(){this.documentHasBookmarks()?this._margin.showMargin():this._margin.hideMargin()},_loadBookmarks:function(){this._isFileBackingStore&&this._backingstore.getFileLocation()&&!this._fileLoadEventFired&&(this._fileLoadEventFired=!0,l.getBookmarksForPath(this._backingstore.getAbsoluteFilePath()).then(function(e){e.length>this._internalDocument.root.children.length||this._bookmarks.length>0||(e.forEach(function(e){this._internalDocument.root.children[e]&&this._bookmarks.push(this._internalDocument.root.children[e])}.bind(this)),this._flushBookmarks()),this._documentLoaded=!0}.bind(this)))},_flushBookmarks:function(){this._bookmarks.length>0&&this._rtcView.onLayoutChange(),this._updateActions(),this._toogleBookmarksMargin()},_saveBookmarks:function(){if(this._isFileBackingStore&&this._backingstore.getFileLocation()&&!this._documentDirty&&this._documentLoaded){var e=[];this._bookmarks.forEach(function(t){var i=this._internalDocument.root.children.indexOf(t);-1!==i&&e.push(i)}.bind(this)),l.setBookmarksForPath(this._backingstore.getAbsoluteFilePath(),e)}},documentHasBookmarks:function(){return this._activeBookmarksInDocument},_checkBookmarksInDocument:function(){this._activeBookmarksInDocument=this._bookmarks.some(function(e){return-1!==this._internalDocument.root.children.indexOf(e)}.bind(this))},_toggleActionCallback:function(){var e=this._cursor.getNode().rootContainer();this._toggleForNode(e)},_toggleForNode:function(e){if(e.firstChild()){var t=this._bookmarks.indexOf(e);-1===t?this._bookmarks.push(e):this._bookmarks.splice(t,1),this._rtcView.onLayoutChange(),this._updateActions(),this._toogleBookmarksMargin(),this._documentLoaded=!0,this._saveBookmarks()}},toggleForIndex:function(e){this._toggleForNode(this._internalDocument.root.children[e])},previousActionCallback:function(){0!==this._bookmarks.length&&this._jumpToNextBookmark(!0)},nextActionCallback:function(){0!==this._bookmarks.length&&this._jumpToNextBookmark()},clearAllBookmarks:function(){this._bookmarks=[],this._activeBookmarksInDocument=!1,this._documentLoaded=!0,this._saveBookmarks(),this._rtcView.onLayoutChange(),this._updateActions(),this._toogleBookmarksMargin()},_jumpToNextBookmark:function(e){var t,i=this._cursor.getNode().rootContainer(),n=this._internalDocument.root.children.indexOf(i);(t=e?(t=this._findNextBookmarkInLineRange(n,0))||this._findNextBookmarkInLineRange(this._internalDocument.root.children.length,n):(t=this._findNextBookmarkInLineRange(n,this._internalDocument.root.children.length))||this._findNextBookmarkInLineRange(-1,n))&&(this._cursor.collapseSelection(),this._cursor.setPosition(t,0,!0),this.onNavigation(t))},onNavigation:function(e){},_findNextBookmarkInLineRange:function(e,t){var i;if(e<=t){for(var n=e+1;n<t;n++)if(this._isNodeInBookmarks(this._internalDocument.root.children[n])){i=this._internalDocument.root.children[n];break}}else for(n=e-1;n>=t;n--)if(this._isNodeInBookmarks(this._internalDocument.root.children[n])){i=this._internalDocument.root.children[n];break}return i},_isNodeInBookmarks:function(e){return-1!==this._bookmarks.indexOf(e)&&e.firstChild()},isNodeIndexInBookmarks:function(e){return this._isNodeInBookmarks(this._internalDocument.root.children[e])},serializePlugin:function(e){return{bookmarks:e.serializeNodes(this._bookmarks),documentDirty:this._documentDirty,activeBookmarksInDocument:this._activeBookmarksInDocument,deletionDone:this._deletionDone,documentLoaded:this._documentLoaded,fileLoadEventFired:this._fileLoadEventFired}},deserializePlugin:function(e,t){t.whenAllViewsReady(function(){this._bookmarks=t.getNodes(e.bookmarks),this._documentDirty=e.documentDirty,this._activeBookmarksInDocument=e.activeBookmarksInDocument,this._deletionDone=e.deletionDone,this._documentLoaded=e.documentLoaded,this._fileLoadEventFired=this._fileLoadEventFired||e.fileLoadEventFired,this._flushBookmarks()}.bind(this))},destroy:function(){s.unsubscribe(this._EVENT_FILE_NAME_UPDATED_CHANNEL_PREFIX+this._rtcId,"_bookmarksSaveHandler",this)}})}),e,t),e.exports=o},function(e,t,i){e.exports={XYRotate:"X-Y 表示に移動",XZRotate:"X-Z 表示に移動",YZRotate:"Y-Z 表示に移動",animationsExportAnimation:"アニメーションのエクスポート",animationsPauseControl:"一時停止",animationsPlayControl:"再生",animationsSpeedControl:"再生速度",autoFixShortcut:"Ctrl+J",autorunSection:"セクションの自動実行",bookmarkTSDescription:"行に新しいブックマークを追加します",bookmarkTSLabel:"ブックマーク",bookmarkTSNextDescription:"次のブックマークに移動します",bookmarkTSNextLabel:"次へ",bookmarkTSPreviousDescription:"前のブックマークに移動します",bookmarkTSPreviousLabel:"前へ",bookmarksClearAllDescription:"現在のファイルの既存のブックマークをすべてクリアします",bookmarksClearAllLabel:"すべてのブックマークのクリア",bookmarksNextNavigationDescription:"次のブックマークに移動します",bookmarksNextNavigationLabel:"次のブックマーク",bookmarksPrevNavigationDescription:"前のブックマークに移動します",bookmarksPrevNavigationLabel:"前のブックマーク",breakpointsTitle:"ブレークポイント",changeCaseLabel:"大文字/小文字の変更",clearAllBreakpointsDescription:"すべてのファイル内のブレークポイントをすべてクリアします",clearAllBreakpointsInFileDescription:"ファイル内のすべてのブレークポイントをクリアします",clearAllBreakpointsInFileText:"ファイル内のすべてのブレークポイントのクリア",clearAllBreakpointsLabel:"すべてのブレークポイントのクリア",clearAllOutput:"すべての出力を\nクリア",clearBreakpointDescription:"この行のブレークポイントをクリアします",clearBreakpointText:"ブレークポイントのクリア",clearOutput:"出力のクリア",codeFoldingSectionTitle:"コードの折りたたみ",codeGenComment:"% 座標軸プロパティを変更して、可視化されたグラフィックスを更新します",codeLabel:"コード",codeOnly:"コードのみ",collapse:"折りたたむ",collapseAll:"すべて\n折りたたみ",collapseAllDescription:"ドキュメントのすべてのフォールドを折りたたみます",collapseAllShortcut:"Ctrl+,",collapseDescription:"現在のフォールドを折りたたみます",collapseShortcut:"Ctrl+.",commentDescription:"コメント",completions:"自動\n補完",completionsDescription:"候補と補完を自動的に表示します",configureControl:"コントロールの構成",controlsAndCode:"コントロールおよびコード",controlsOnly:"コントロールのみ",convertSelectionToCodeDescription:"現在の選択項目をコードに変換します",convertSelectionToTextDescription:"現在の選択項目をテキストに変換します",convertTaskToEditableCode:"タスクを編集可能なコードに変換",convertToCode:"コードへの変換",copyAllOutput:"すべての出力をコピー",copyLabel:"コピー",copyOutput:"出力をコピー",cutLabel:"切り取り",dataCursorLabel:"データ ヒント",dataTips:"データヒント",datatTipsDescription:"編集中のデータヒントを有効化",deleteAllDataTips:"すべてのデータ ヒントを削除",detailsButtonLabel:"詳細",didYouMeanText:"もしかして:",disableAlignment:"同期スクロールを無効にする",disableAllBreakpointsInFileDescription:"ファイル内のすべてのブレークポイントを無効にします",disableAllBreakpointsInFileText:"ファイル内のすべてのブレークポイントを無効にする",disableBreakpointDescription:"この行のブレークポイントを無効にします",disableBreakpointText:"ブレークポイントを無効にする",disableWhenDocumentEdited:"ドキュメントが変更されたため、コードを自動更新できません。<br>コードをクリップボードにコピーしてから、ライブ スクリプトに貼り付けてください。",disableWhenReadOnly:"ドキュメントまたは関連する行が読み取り専用であるため、コードを自動更新できません。",disabledDuringExecution:"実行中のコードは自動更新できません。",disabledWhenCannotIdentifyFigure:"グラフィックス オブジェクト、座標軸または Figure を特定できないため、コードを自動更新できません。<br>コードをクリップボードにコピーし、それをライブ スクリプトに貼り付けてください。",displaySectionTitle:"表示",duplicateLineLabel:"行の複製",enableAlignment:"同期スクロールを有効にする",enableAllBreakpointsInFileDescription:"ファイル内のすべてのブレークポイントを有効にします",enableAllBreakpointsInFileText:"ファイル内のすべてのブレークポイントを有効にする",enableBreakpointDescription:"この行のブレークポイントを有効にします",enableBreakpointText:"ブレークポイントを有効にする",errorHandlingTitle:"エラーの取り扱い",evaluateSelectionLabel:"コマンド ウィンドウで選択を実行",evaluateSelectionShortcut:"F9",expand:"展開",expandAll:"すべて\n展開",expandAllDescription:"ドキュメントのすべてのフォールドを展開します",expandAllShortcut:"Ctrl+Shift+,",expandDescription:"現在のフォールドを展開します",expandShortcut:"Ctrl+Shift+.",exportLabel:"エクスポート...",extractExternalFunction:"関数への変換",extractLocalFunction:"ローカル関数への変換",figurePopOutPrompt:"Figure ウィンドウで開く",figureRunPrompt:"コードを実行して対話型ツールにアクセス",fitToDataLabel:"データに合わせる",fixAllLabel:"この問題の (${0}) のインスタンスをすべて修正",fixButtonLabel:"修正",goToDescription:"カーソルを行、関数、セクションに移動します",goToLabel:"移動",goToLineDescription:"ドキュメント内の行にカーソルを移動します",goToLineLabel:"行",goToSectionHeader:"セクション",goToShortcut:"Ctrl+G",help:"ヘルプ",helpLabel:'"${0}" のヘルプ',helpLabelTruncated:'"${0}..." のヘルプ',helpOnSelectionLabel:"選択のヘルプ",helpShortcut:"F1",highlightCurrentline:"現在の行を\n強調表示",highlightCurrentlineDescription:"現在の行を強調",indentDescription:"インデントを増やす",indentShortcut:"Ctrl+]",insertCodeDescription:"コードの行を挿入します",insertSectionDescription:"セクション区切りを挿入します",insertSectionLabel:"セクション区切り",insertTextDescription:"テキストの行を挿入します",lineNumbers:"行\n番号",lineNumbersDescription:"行番号を表示します",lineText:"行",openLabel:'"${0}" を開く',openLabelTruncated:'"${0}..." を開く',openSelectionLabel:"選択を開く",openTooltipLabel:"メッセージを開くか、詳細を展開",outdentDescription:"インデントを減らす",outdentShortcut:"Ctrl+[",panLabel:"パン",pasteLabel:"貼り付け",printDescription:"印刷...",printSelection:"選択の印刷...",printShortcut:"Ctrl+p",printText:"印刷",removeControl:"コントロールの削除",removeTask:"タスクの削除",reset:"既定値を元に戻す",resetControl:"既定値を元に戻す",resetFigure:"元の表示にリセット",restoreViewLabel:"表示の復元",rotateLabel:"回転",runCurrentSection:"現在のセクションを実行します",runSectionAndAdvanceLabel:"実行して次に進む",runSectionLabel:"セクションの実行",runSectionToEndLabel:"最後まで実行",runStaleSection:"古いセクションの実行",runToLineDescription:"この行まで実行して一時停止します",runToLineLabel:"ここまで実行",scriptHasError:"エラーが発生しました<br>エラーに移動するにはクリックしてください",scriptIsBusy:"スクリプトを実行中です<br>評価中の行に移動するにはクリックしてください",scriptIsBusyNoClick:"スクリプトを実行中です",scriptIsPaused:"スクリプトを一時停止しました<br>現在の行に移動するにはクリックしてください",scriptIsPausedNoClick:"スクリプトを一時停止しました",scriptUpToDate:"スクリプトは最新です",setBreakpointDescription:"この行にブレークポイントを設定します",setBreakpointText:"ブレークポイントの設定",setConditionalBreakpointDescription:"条件付きブレークポイントをこの行に設定します",setConditionalBreakpointText:"条件付きブレークポイントの設定...",setModifyConditionalBreakpointDescription:"この行の条件を設定/変更します",setModifyConditionalBreakpointText:"条件の設定/変更...",showCodeFoldingMargin:"[コードの折りたたみ] の余白を表示",showHideCode:"コードを非表示",showInline:"インラインで出力",showOnRight:"右側に出力",showRunToHereMargin:"[ここまで実行] の余白を表示",showSlide:"スライド",smartIndentLabel:"スマート インデント",smartIndentShortcut:"Ctrl+I",splitLeftRight:"左/右",splitNone:"オフ",splitScreen:"画面分割",splitSwitch:"画面切り替え",splitTopBottom:"上/下",stopIfErrorDescription:"エラーの発生時に実行を一時停止します",stopIfErrorText:"エラーで一時停止",stopIfNanInfDescription:"NaN 値または Inf 値が返された時に実行を一時停止します",stopIfNanInfText:"NaN または Inf で一時停止",stopIfWarningDescription:"警告の発生時に実行を一時停止します",stopIfWarningText:"警告で一時停止",suppressInAllFiles:"すべてのファイルで",suppressInFile:"このファイルで",suppressMessage:"メッセージを非表示...",suppressOnLine:"この行で",toggleBreakpointDescription:"現在の行でブレークポイントを設定またはクリアします",toggleBreakpointLabel:"設定/クリア",toggleBreakpointShortcut:"F12",toggleBreakpointShortcutMac:"meta+\\",toggleCodeAndOutputFocus:"コードと出力間でフォーカスを移動",toggleCodeText:"コードとテキストの間の変換",toggleConditionalBreakpointDescription:"条件付きブレークポイントを設定または変更します",toggleConditionalBreakpointLabel:"条件設定",toggleEnableBreakpointDescription:"現在の行で有効または無効にします",toggleEnableBreakpointLabel:"有効/無効",typoCorrectionMenuLabel:"${0} への変更",uncommentDescription:"コメント解除",updateCodeLabel:"コードを更新",variableEditorPopOutPrompt:"変数の表示",variableRenamingTooltipMany:'<b>Shift + Enter</b> キーを押し、"${1}" の他の ${0} 個のインスタンスを "${2}" に名称変更',variableRenamingTooltipOne:'<b>Shift + Enter</b> キーを押し、"${0}" の他の 1 つのインスタンスを "${1}" に名称変更',wrapCommentDescription:"コメントを折り返す",zoomInActionLabel:"マップ中央にズームイン",zoomInLabel:"ズームイン",zoomLabel:"ズーム",zoomOutActionLabel:"マップ中央からズームアウト",zoomOutLabel:"ズームアウト",zoomResetDescription:"ズームを既定の設定にリセット",zoomResetLabel:"ズームのリセット"}},function(e,t,i){e.exports={XYRotate:"X-Y 보기로 이동",XZRotate:"X-Z 보기로 이동",YZRotate:"Y-Z 보기로 이동",animationsExportAnimation:"애니메이션 내보내기",animationsPauseControl:"일시 중지",animationsPlayControl:"재생",animationsSpeedControl:"재생 속도",autoFixShortcut:"Ctrl+J",autorunSection:"섹션 자동 실행",bookmarkTSDescription:"라인에 새 책갈피를 추가합니다.",bookmarkTSLabel:"책갈피",bookmarkTSNextDescription:"다음 책갈피로 이동합니다.",bookmarkTSNextLabel:"다음",bookmarkTSPreviousDescription:"이전 책갈피로 이동합니다.",bookmarkTSPreviousLabel:"이전",bookmarksClearAllDescription:"현재 파일에 대한 기존 책갈피를 모두 지웁니다.",bookmarksClearAllLabel:"모든 책갈피 지우기",bookmarksNextNavigationDescription:"다음 책갈피로 이동합니다.",bookmarksNextNavigationLabel:"다음 책갈피",bookmarksPrevNavigationDescription:"이전 책갈피로 이동합니다.",bookmarksPrevNavigationLabel:"이전 책갈피",breakpointsTitle:"중단점",changeCaseLabel:"대/소문자로 변경",clearAllBreakpointsDescription:"모든 파일에서 모든 중단점을 지웁니다.",clearAllBreakpointsInFileDescription:"파일에 있는 중단점을 모두 지웁니다.",clearAllBreakpointsInFileText:"파일에 있는 중단점 모두 지우기",clearAllBreakpointsLabel:"중단점 모두 지우기",clearAllOutput:"모든 출력값\n지우기",clearBreakpointDescription:"이 라인에 대해 중단점을 지웁니다.",clearBreakpointText:"중단점 지우기",clearOutput:"출력값 지우기",codeFoldingSectionTitle:"코드 접기",codeGenComment:"% axes 속성을 수정하여 시각화된 그래픽 갱신하기",codeLabel:"코드",codeOnly:"코드만",collapse:"축소",collapseAll:"모두 \n축소",collapseAllDescription:"문서의 접힌 모든 내용을 축소합니다.",collapseAllShortcut:"Ctrl+,",collapseDescription:"현재 접힌 내용을 축소합니다.",collapseShortcut:"Ctrl+.",commentDescription:"주석",completions:"자동 \n완성",completionsDescription:"제안 및 완성을 자동으로 표시합니다",configureControl:"컨트롤 구성",controlsAndCode:"컨트롤과 코드",controlsOnly:"컨트롤만",convertSelectionToCodeDescription:"현재 선택 항목을 코드로 변환합니다.",convertSelectionToTextDescription:"현재 선택 항목을 텍스트로 변환합니다.",convertTaskToEditableCode:"작업을 편집 가능한 코드로 변환",convertToCode:"코드로 변환",copyAllOutput:"모든 출력값 복사",copyLabel:"복사",copyOutput:"출력값 복사",cutLabel:"잘라내기",dataCursorLabel:"데이터팁",dataTips:"데이터팁",datatTipsDescription:"편집하는 동안 데이터팁을 사용합니다.",deleteAllDataTips:"모든 데이터팁 삭제",detailsButtonLabel:"세부 정보",didYouMeanText:"정정 제안:",disableAlignment:"동시 스크롤 사용 안 함",disableAllBreakpointsInFileDescription:"파일에 있는 중단점을 모두 사용하지 않습니다.",disableAllBreakpointsInFileText:"파일에 있는 중단점 모두 사용 안 함",disableBreakpointDescription:"이 라인에 대해 중단점을 사용하지 않습니다.",disableBreakpointText:"중단점 사용 안 함",disableWhenDocumentEdited:"문서가 변경되었으므로 코드를 자동으로 업데이트할 수 없습니다.<br>코드를 클립보드에 복사한 후 라이브 스크립트에 붙여 넣으십시오.",disableWhenReadOnly:"문서 또는 연결된 라인이 읽기 전용이므로 코드를 자동으로 업데이트할 수 없습니다.",disabledDuringExecution:"실행 중에는 코드를 자동으로 업데이트할 수 없습니다.",disabledWhenCannotIdentifyFigure:"그래픽 객체, 좌표축 또는 Figure를 식별할 수 없으므로 코드를 자동으로 업데이트할 수 없습니다.<br>코드를 클립보드에 복사한 후 라이브 스크립트에 붙여 넣으십시오.",displaySectionTitle:"표시",duplicateLineLabel:"라인 복제",enableAlignment:"동시 스크롤 사용",enableAllBreakpointsInFileDescription:"파일에 있는 중단점을 모두 사용합니다.",enableAllBreakpointsInFileText:"파일에 있는 중단점 모두 사용",enableBreakpointDescription:"이 라인에 대해 중단점을 사용합니다.",enableBreakpointText:"중단점 사용",errorHandlingTitle:"오류 처리",evaluateSelectionLabel:"명령 창에서 선택 항목 실행",evaluateSelectionShortcut:"F9",expand:"확장",expandAll:"모두 \n확장",expandAllDescription:"문서의 접힌 모든 내용을 확장합니다.",expandAllShortcut:"Ctrl+Shift+,",expandDescription:"현재 접힌 내용을 확장합니다.",expandShortcut:"Ctrl+Shift+.",exportLabel:"내보내기...",extractExternalFunction:"함수로 변환",extractLocalFunction:"로컬 함수로 변환",figurePopOutPrompt:"Figure 창에서 열기",figureRunPrompt:"코드를 실행하여 대화형 방식 툴에 액세스",fitToDataLabel:"데이터에 피팅",fixAllLabel:"이 문제의 모든(${0}) 인스턴스 수정",fixButtonLabel:"수정",goToDescription:"라인, 함수 또는 섹션으로 커서를 이동합니다.",goToLabel:"이동",goToLineDescription:"문서 내 특정 라인으로 커서를 이동합니다.",goToLineLabel:"라인",goToSectionHeader:"섹션",goToShortcut:"Ctrl+G",help:"도움말",helpLabel:'"${0}"에 대한 도움말',helpLabelTruncated:'"${0}..."에 대한 도움말',helpOnSelectionLabel:"선택 항목에 대한 도움말",helpShortcut:"F1",highlightCurrentline:"현재 라인 \n강조 표시",highlightCurrentlineDescription:"현재 라인 강조 표시",indentDescription:"들여쓰기",indentShortcut:"Ctrl+]",insertCodeDescription:"코드 라인을 삽입합니다.",insertSectionDescription:"섹션 나누기를 삽입합니다.",insertSectionLabel:"섹션 나누기",insertTextDescription:"텍스트 라인을 삽입합니다.",lineNumbers:"라인 \n번호",lineNumbersDescription:"라인 번호를 표시합니다.",lineText:"라인",openLabel:'"${0}" 열기',openLabelTruncated:'"${0}..." 열기',openSelectionLabel:"선택 항목 열기",openTooltipLabel:"메시지 열기 또는 세부 정보 확장",outdentDescription:"내어쓰기",outdentShortcut:"Ctrl+[",panLabel:"패닝",pasteLabel:"붙여넣기",printDescription:"인쇄...",printSelection:"선택 영역 인쇄...",printShortcut:"Ctrl+P",printText:"인쇄",removeControl:"컨트롤 제거",removeTask:"작업 제거",reset:"디폴트 값 복원",resetControl:"디폴트 값 복원",resetFigure:"원래 보기로 초기화",restoreViewLabel:"보기 복원",rotateLabel:"회전",runCurrentSection:"현재 섹션 실행",runSectionAndAdvanceLabel:"실행 및 진행",runSectionLabel:"섹션 실행",runSectionToEndLabel:"끝까지 실행",runStaleSection:"지난 섹션 실행",runToLineDescription:"이 라인 전까지 실행한 후 일시 중지합니다.",runToLineLabel:"여기까지 실행",scriptHasError:"오류가 발생함<br>클릭하여 오류로 이동",scriptIsBusy:"스크립트가 실행 중임<br>클릭하여 실행 중인 라인으로 이동",scriptIsBusyNoClick:"스크립트가 실행 중임",scriptIsPaused:"스크립트가 일시 중지됨<br>클릭하여 현재 라인으로 이동",scriptIsPausedNoClick:"스크립트가 일시 중지됨",scriptUpToDate:"스크립트가 최신 상태임",setBreakpointDescription:"이 라인에 대해 중단점을 설정합니다.",setBreakpointText:"중단점 설정",setConditionalBreakpointDescription:"이 라인에 대해 조건부 중단점을 설정합니다.",setConditionalBreakpointText:"조건부 중단점 설정...",setModifyConditionalBreakpointDescription:"이 라인에 대해 조건을 설정하거나 수정합니다.",setModifyConditionalBreakpointText:"조건 설정/수정...",showCodeFoldingMargin:"코드 접기 여백 표시",showHideCode:"코드 숨기기",showInline:"출력값을 인라인으로 표시",showOnRight:"출력값을 오른쪽에 표시",showRunToHereMargin:"여기까지 실행 여백 표시",showSlide:"슬라이드",smartIndentLabel:"스마트 들여쓰기",smartIndentShortcut:"Ctrl+I",splitLeftRight:"좌/우",splitNone:"꺼짐",splitScreen:"분할 화면",splitSwitch:"화면 포커스 전환",splitTopBottom:"상/하",stopIfErrorDescription:"오류가 발생하면 실행을 일시 중지합니다.",stopIfErrorText:"오류 발생 시 일시 중지",stopIfNanInfDescription:"NaN 값이나 Inf 값이 반환되면 실행을 일시 중지합니다.",stopIfNanInfText:"NaN 또는 Inf 반환 시 일시 중지",stopIfWarningDescription:"경고가 발생하면 실행을 일시 중지합니다.",stopIfWarningText:"경고 발생 시 일시 중지",suppressInAllFiles:"모든 파일에서",suppressInFile:"이 파일에서",suppressMessage:"메시지 표시 안 함...",suppressOnLine:"이 라인에서",toggleBreakpointDescription:"현재 라인에 대해 중단점을 설정하거나 지웁니다.",toggleBreakpointLabel:"설정/지우기",toggleBreakpointShortcut:"F12",toggleBreakpointShortcutMac:"meta+\\",toggleCodeAndOutputFocus:"코드와 출력 간 포커스 이동",toggleCodeText:"코드와 텍스트 간 변환",toggleConditionalBreakpointDescription:"조건부 중단점을 설정하거나 수정합니다.",toggleConditionalBreakpointLabel:"조건 설정",toggleEnableBreakpointDescription:"현재 라인에 대해 사용하거나 사용하지 않습니다.",toggleEnableBreakpointLabel:"사용/사용 안 함",typoCorrectionMenuLabel:"${0}(으)로 변경",uncommentDescription:"주석 해제",updateCodeLabel:"코드 업데이트",variableEditorPopOutPrompt:"변수 보기",variableRenamingTooltipMany:'"${1}"의 다른 인스턴스 ${0}개의 이름을 "${2}"(으)로 변경하려면 <b>Shift + Enter</b>를 누르십시오',variableRenamingTooltipOne:'"${0}"의 다른 인스턴스 1개의 이름을 "${1}"(으)로 변경하려면 <b>Shift + Enter</b>를 누르십시오',wrapCommentDescription:"주석 줄 바꿈",zoomInActionLabel:"지도 중심 쪽으로 확대",zoomInLabel:"확대",zoomLabel:"확대/축소",zoomOutActionLabel:"지도 중심에서 바깥으로 축소",zoomOutLabel:"축소",zoomResetDescription:"확대/축소를 디폴트 값으로 초기화합니다.",zoomResetLabel:"확대/축소 초기화"}},function(e,t,i){e.exports={XYRotate:"转至 X-Y 视图",XZRotate:"转至 X-Z 视图",YZRotate:"转至 Y-Z 视图",animationsExportAnimation:"导出动画",animationsPauseControl:"暂停",animationsPlayControl:"播放",animationsSpeedControl:"播放速度",autoFixShortcut:"Ctrl+J",autorunSection:"自动运行节",bookmarkTSDescription:"在行中添加新书签",bookmarkTSLabel:"书签",bookmarkTSNextDescription:"转至下一书签",bookmarkTSNextLabel:"下一个",bookmarkTSPreviousDescription:"转至上一书签",bookmarkTSPreviousLabel:"上一个",bookmarksClearAllDescription:"清除当前文件的所有现有书签",bookmarksClearAllLabel:"清除所有书签",bookmarksNextNavigationDescription:"转至下一书签",bookmarksNextNavigationLabel:"下一书签",bookmarksPrevNavigationDescription:"转至上一书签",bookmarksPrevNavigationLabel:"上一书签",breakpointsTitle:"断点",changeCaseLabel:"更改大小写",clearAllBreakpointsDescription:"清除所有文件中的全部断点",clearAllBreakpointsInFileDescription:"清除文件中的所有断点",clearAllBreakpointsInFileText:"清除文件中的所有断点",clearAllBreakpointsLabel:"清除所有断点",clearAllOutput:"清除所有\n输出",clearBreakpointDescription:"在该行中清除断点",clearBreakpointText:"清除断点",clearOutput:"清除输出",codeFoldingSectionTitle:"代码折叠",codeGenComment:"% 通过修改坐标区属性来更新图形外观",codeLabel:"代码",codeOnly:"仅代码",collapse:"折叠",collapseAll:"全部折叠\n",collapseAllDescription:"折叠文档中的所有可折叠块",collapseAllShortcut:"Ctrl+,",collapseDescription:"折叠当前可折叠块",collapseShortcut:"Ctrl+.",commentDescription:"注释",completions:"自动填充\n",completionsDescription:"自动显示建议和自动填充项",configureControl:"配置控件",controlsAndCode:"控件和代码",controlsOnly:"仅控件",convertSelectionToCodeDescription:"将当前所选内容转换为代码",convertSelectionToTextDescription:"将当前所选内容转换为文本",convertTaskToEditableCode:"将任务转换为可编辑代码",convertToCode:"转换为代码",copyAllOutput:"复制所有输出",copyLabel:"复制",copyOutput:"复制输出",cutLabel:"剪切",dataCursorLabel:"数据提示",dataTips:"数据提示",datatTipsDescription:"编辑时启用数据提示",deleteAllDataTips:"删除所有数据提示",detailsButtonLabel:"详细信息",didYouMeanText:"是不是想输入:",disableAlignment:"禁用同步滚动",disableAllBreakpointsInFileDescription:"禁用文件中的所有断点",disableAllBreakpointsInFileText:"禁用文件中的所有断点",disableBreakpointDescription:"在该行中禁用断点",disableBreakpointText:"禁用断点",disableWhenDocumentEdited:"由于文档已更改,无法自动更新代码。<br>请将代码复制到剪贴板,然后再将其粘贴到实时脚本中。",disableWhenReadOnly:"由于文档或关联行为只读,因而无法自动更新代码。",disabledDuringExecution:"无法在运行时自动更新代码。",disabledWhenCannotIdentifyFigure:"由于不能标识图形对象、坐标区或图窗,无法自动更新代码。<br>请将代码复制到剪贴板,然后再将其粘贴到实时脚本中。",displaySectionTitle:"显示",duplicateLineLabel:"复制行",enableAlignment:"启用同步滚动",enableAllBreakpointsInFileDescription:"启用文件中的所有断点",enableAllBreakpointsInFileText:"启用文件中的所有断点",enableBreakpointDescription:"在该行中启用断点",enableBreakpointText:"启用断点",errorHandlingTitle:"错误处理",evaluateSelectionLabel:"在命令行窗口中执行所选内容",evaluateSelectionShortcut:"F9",expand:"展开",expandAll:"全部展开\n",expandAllDescription:"展开文档中的所有可折叠块",expandAllShortcut:"Ctrl+Shift+,",expandDescription:"展开当前可折叠块",expandShortcut:"Ctrl+Shift+.",exportLabel:"导出...",extractExternalFunction:"转换为函数",extractLocalFunction:"转换为局部函数",figurePopOutPrompt:"在图窗窗口中打开",figureRunPrompt:"运行代码以访问交互式工具",fitToDataLabel:"适应数据",fixAllLabel:"修复此问题的所有(${0} 个)实例",fixButtonLabel:"修复",goToDescription:"将光标移至行、函数或节",goToLabel:"转至",goToLineDescription:"将光标移至文档中的行",goToLineLabel:"行",goToSectionHeader:"节",goToShortcut:"Ctrl+G",help:"帮助",helpLabel:'关于 "${0}" 的帮助',helpLabelTruncated:'关于 "${0}..." 的帮助',helpOnSelectionLabel:"关于所选内容的帮助",helpShortcut:"F1",highlightCurrentline:"突出显示\n当前行",highlightCurrentlineDescription:"突出显示当前行",indentDescription:"增加缩进",indentShortcut:"Ctrl+]",insertCodeDescription:"插入一行代码",insertSectionDescription:"插入分节符",insertSectionLabel:"分节符",insertTextDescription:"插入一行文本",lineNumbers:"行号\n",lineNumbersDescription:"显示行号",lineText:"行",openLabel:'打开 "${0}"',openLabelTruncated:'打开 "${0}..."',openSelectionLabel:"打开所选内容",openTooltipLabel:"打开信息或展开详细信息",outdentDescription:"减少缩进",outdentShortcut:"Ctrl+[",panLabel:"平移",pasteLabel:"粘贴",printDescription:"打印...",printSelection:"打印所选内容...",printShortcut:"Ctrl+P",printText:"打印",removeControl:"删除控件",removeTask:"删除任务",reset:"还原默认值",resetControl:"还原默认值",resetFigure:"重置为原始视图",restoreViewLabel:"还原视图",rotateLabel:"旋转",runCurrentSection:"运行当前节",runSectionAndAdvanceLabel:"运行并前进",runSectionLabel:"运行节",runSectionToEndLabel:"运行到结束",runStaleSection:"运行过时节",runToLineDescription:"运行到此行并暂停",runToLineLabel:"运行到此行",scriptHasError:"出现错误<br>点击可转至出错位置",scriptIsBusy:"脚本正在运行<br>点击可转至正在计算的行",scriptIsBusyNoClick:"脚本正在运行",scriptIsPaused:"脚本已暂停<br>点击可转至当前行",scriptIsPausedNoClick:"脚本已暂停",scriptUpToDate:"脚本是最新的",setBreakpointDescription:"在该行中设置断点",setBreakpointText:"设置断点",setConditionalBreakpointDescription:"在该行中设置条件断点",setConditionalBreakpointText:"设置条件断点...",setModifyConditionalBreakpointDescription:"在该行中设置/修改条件",setModifyConditionalBreakpointText:"设置/修改条件...",showCodeFoldingMargin:"显示代码折叠留白",showHideCode:"隐藏代码",showInline:"内嵌输出",showOnRight:"右侧输出",showRunToHereMargin:"显示运行到此行留白",showSlide:"幻灯片",smartIndentLabel:"智能缩进",smartIndentShortcut:"Ctrl+I",splitLeftRight:"左/右",splitNone:"关闭",splitScreen:"屏幕分割",splitSwitch:"切换屏幕焦点",splitTopBottom:"顶端/底端",stopIfErrorDescription:"出现错误时暂停执行",stopIfErrorText:"出现错误时暂停",stopIfNanInfDescription:"返回 NaN 或 Inf 值时暂停执行",stopIfNanInfText:"返回 NaN 或 Inf 时暂停",stopIfWarningDescription:"出现警告时暂停执行",stopIfWarningText:"出现警告时暂停",suppressInAllFiles:"在所有文件中",suppressInFile:"在此文件中",suppressMessage:"隐藏消息...",suppressOnLine:"在此行中",toggleBreakpointDescription:"设置或清除当前行上的断点",toggleBreakpointLabel:"设置/清除",toggleBreakpointShortcut:"F12",toggleBreakpointShortcutMac:"meta+\\",toggleCodeAndOutputFocus:"在代码和输出之间移动焦点",toggleCodeText:"在代码和文本之间转换",toggleConditionalBreakpointDescription:"设置或修改条件断点",toggleConditionalBreakpointLabel:"设置条件",toggleEnableBreakpointDescription:"在当前行上启用或禁用",toggleEnableBreakpointLabel:"启用/禁用",typoCorrectionMenuLabel:"更改为 ${0}",uncommentDescription:"取消注释",updateCodeLabel:"更新代码",variableEditorPopOutPrompt:"查看变量",variableRenamingTooltipMany:'按 <b>Shift + Enter</b> 将 "${1}" 的另外 ${0} 个实例重命名为 "${2}"',variableRenamingTooltipOne:'按 <b>Shift + Enter</b> 将"${0}" 的另外 1 个实例重命名为 "${1}"',wrapCommentDescription:"注释换行",zoomInActionLabel:"从地图中心放大",zoomInLabel:"放大",zoomLabel:"缩放",zoomOutActionLabel:"从地图中心缩小",zoomOutLabel:"缩小",zoomResetDescription:"将缩放重置为默认值",zoomResetLabel:"重置缩放"}},function(e,t,i){e.exports={root:{XYRotate:"Go to X-Y view",XZRotate:"Go to X-Z view",YZRotate:"Go to Y-Z view",animationsExportAnimation:"Export Animation",animationsPauseControl:"Pause",animationsPlayControl:"Play",animationsSpeedControl:"Playback Speed",autoFixShortcut:"Ctrl+J",autorunSection:"Autorun Section",bookmarkTSDescription:"Add new bookmark to the line",bookmarkTSLabel:"Bookmark",bookmarkTSNextDescription:"Move to the next bookmark",bookmarkTSNextLabel:"Next",bookmarkTSPreviousDescription:"Move to the previous bookmark",bookmarkTSPreviousLabel:"Previous",bookmarksClearAllDescription:"Clear all existing bookmark for the current file",bookmarksClearAllLabel:"Clear All Bookmarks",bookmarksNextNavigationDescription:"Go to the next bookmark",bookmarksNextNavigationLabel:"Next Bookmark",bookmarksPrevNavigationDescription:"Go to the previous bookmark",bookmarksPrevNavigationLabel:"Previous Bookmark",breakpointsTitle:"Breakpoints",changeCaseLabel:"Change Case",clearAllBreakpointsDescription:"Clear all breakpoints in all files",clearAllBreakpointsInFileDescription:"Clears all breakpoints in file",clearAllBreakpointsInFileText:"Clear All Breakpoints in File",clearAllBreakpointsLabel:"Clear All Breakpoints",clearAllOutput:"Clear All\nOutput",clearBreakpointDescription:"Clear breakpoint on this line",clearBreakpointText:"Clear Breakpoint",clearOutput:"Clear Output",codeFoldingSectionTitle:"CODE FOLDING",codeGenComment:"% Update the graphical visualization by modifying axes properties",codeLabel:"Code",codeOnly:"Code Only",collapse:"Collapse",collapseAll:"Collapse \nAll",collapseAllDescription:"Collapse all folds in a document",collapseAllShortcut:"Ctrl+,",collapseDescription:"Collapse current fold",collapseShortcut:"Ctrl+.",commentDescription:"Comment",completions:"Automatic \nCompletions",completionsDescription:"Show suggestions and completions automatically",configureControl:"Configure Control",controlsAndCode:"Controls and Code",controlsOnly:"Controls Only",convertSelectionToCodeDescription:"Convert current selection to code",convertSelectionToTextDescription:"Convert current selection to text",convertTaskToEditableCode:"Convert Task to Editable Code",convertToCode:"Convert to Code",copyAllOutput:"Copy All Output",copyLabel:"Copy",copyOutput:"Copy Output",cutLabel:"Cut",dataCursorLabel:"Data Tips",dataTips:"Datatips",datatTipsDescription:"Enable datatips while editing",deleteAllDataTips:"Delete All Data Tips",detailsButtonLabel:"Details",didYouMeanText:"Did you mean:",disableAlignment:"Disable Synchronous Scrolling",disableAllBreakpointsInFileDescription:"Disables all breakpoints in file",disableAllBreakpointsInFileText:"Disable All Breakpoints in File",disableBreakpointDescription:"Disable breakpoint on this line",disableBreakpointText:"Disable Breakpoint",disableWhenDocumentEdited:"Unable to automatically update code because the document has changed.<br>Copy the code to the clipboard and then paste it into your live script.",disableWhenReadOnly:"Unable to automatically update code because the document or the associated line is read-only.",disabledDuringExecution:"Unable to automatically update code while running.",disabledWhenCannotIdentifyFigure:"Unable to automatically update code because the graphic object, axes or figure cannot be identified.<br>Copy the code to the clipboard and then paste it into your live script.",displaySectionTitle:"DISPLAY",duplicateLineLabel:"Duplicate Line(s)",enableAlignment:"Enable Synchronous Scrolling",enableAllBreakpointsInFileDescription:"Enables all breakpoints in file",enableAllBreakpointsInFileText:"Enable All Breakpoints in File",enableBreakpointDescription:"Enable breakpoint on this line",enableBreakpointText:"Enable Breakpoint",errorHandlingTitle:"Error Handling",evaluateSelectionLabel:"Evaluate Selection in Command Window",evaluateSelectionShortcut:"F9",expand:"Expand",expandAll:"Expand \nAll",expandAllDescription:"Expand all folds in a document",expandAllShortcut:"Ctrl+Shift+,",expandDescription:"Expand current fold",expandShortcut:"Ctrl+Shift+.",exportLabel:"Export...",extractExternalFunction:"Convert to Function",extractLocalFunction:"Convert to Local Function",figurePopOutPrompt:"Open in figure window",figureRunPrompt:"Run code to access interactive tools",fitToDataLabel:"Fit To Data",fixAllLabel:"Fix All (${0}) Instances of This Issue",fixButtonLabel:"Fix",goToDescription:"Move cursor to line, function, or section",goToLabel:"Go To",goToLineDescription:"Move cursor to line within document",goToLineLabel:"Line",goToSectionHeader:"SECTIONS",goToShortcut:"Ctrl+G",help:"Help",helpLabel:'Help on "${0}"',helpLabelTruncated:'Help on "${0}..."',helpOnSelectionLabel:"Help on Selection",helpShortcut:"F1",highlightCurrentline:"Highlight \nCurrent Line",highlightCurrentlineDescription:"Highlight current line",indentDescription:"Increase Indent",indentShortcut:"Ctrl+]",insertCodeDescription:"Insert a line of code",insertSectionDescription:"Insert Section Break",insertSectionLabel:"Section Break",insertTextDescription:"Insert a line of text",lineNumbers:"Line \nNumbers",lineNumbersDescription:"Display line numbers",lineText:"Line",openLabel:'Open "${0}"',openLabelTruncated:'Open "${0}..."',openSelectionLabel:"Open Selection",openTooltipLabel:"Open Message or Expand Details",outdentDescription:"Decrease Indent",outdentShortcut:"Ctrl+[",panLabel:"Pan",pasteLabel:"Paste",printDescription:"Print...",printSelection:"Print Selection...",printShortcut:"Ctrl+p",printText:"Print",removeControl:"Remove Control",removeTask:"Remove Task",reset:"Restore Default Values",resetControl:"Restore Default Value",resetFigure:"Reset to Original View",restoreViewLabel:"Restore View",rotateLabel:"Rotate",runCurrentSection:"Run current section",runSectionAndAdvanceLabel:"Run and Advance",runSectionLabel:"Run Section",runSectionToEndLabel:"Run to End",runStaleSection:"Run stale section",runToLineDescription:"Run up to this line and pause",runToLineLabel:"Run to here",scriptHasError:"An error has occurred<br>Click to go to error",scriptIsBusy:"Script is running<br>Click to go to evaluating line",scriptIsBusyNoClick:"Script is running",scriptIsPaused:"Script is paused<br>Click to go to current line",scriptIsPausedNoClick:"Script is paused",scriptUpToDate:"Script is up to date",setBreakpointDescription:"Set breakpoint on this line",setBreakpointText:"Set Breakpoint",setConditionalBreakpointDescription:"Set conditional breakpoint on this line",setConditionalBreakpointText:"Set Conditional Breakpoint...",setModifyConditionalBreakpointDescription:"Set/modify condition on this line",setModifyConditionalBreakpointText:"Set/Modify Condition...",showCodeFoldingMargin:"Show Code Folding Margin",showHideCode:"Hide code",showInline:"Output inline",showOnRight:"Output on right",showRunToHereMargin:"Show Run To Here Margin",showSlide:"Slide",smartIndentLabel:"Smart Indent",smartIndentShortcut:"Ctrl+I",splitLeftRight:"Left/Right",splitNone:"Off",splitScreen:"Split Screen",splitSwitch:"Switch Screen Focus",splitTopBottom:"Top/Bottom",stopIfErrorDescription:"Pauses execution when an error occurs",stopIfErrorText:"Pause on Errors",stopIfNanInfDescription:"Pauses execution when a NaN or Inf value is returned",stopIfNanInfText:"Pause on NaN or Inf",stopIfWarningDescription:"Pauses execution when a warning occurs",stopIfWarningText:"Pause on Warnings",suppressInAllFiles:"In All Files",suppressInFile:"In This File",suppressMessage:"Suppress Message...",suppressOnLine:"On This Line",toggleBreakpointDescription:"Set or Clear breakpoint on current Line",toggleBreakpointLabel:"Set/Clear",toggleBreakpointShortcut:"F12",toggleBreakpointShortcutMac:"meta+\\",toggleCodeAndOutputFocus:"Move Focus Between Code and Output",toggleCodeText:"Convert Between Code and Text",toggleConditionalBreakpointDescription:"Set or modify conditional breakpoint",toggleConditionalBreakpointLabel:"Set Condition",toggleEnableBreakpointDescription:"Enable or Disable on current Line",toggleEnableBreakpointLabel:"Enable/Disable",typoCorrectionMenuLabel:"Change to ${0}",uncommentDescription:"Uncomment",updateCodeLabel:"Update Code",variableEditorPopOutPrompt:"View Variable",variableRenamingTooltipMany:'Press <b>Shift + Enter</b> to rename ${0} other instances of "${1}" to "${2}"',variableRenamingTooltipOne:'Press <b>Shift + Enter</b> to rename 1 other instance of "${0}" to "${1}"',wrapCommentDescription:"Wrap Comments",zoomInActionLabel:"Zoom In Towards Map Center",zoomInLabel:"Zoom In",zoomLabel:"Zoom",zoomOutActionLabel:"Zoom Out From Map Center",zoomOutLabel:"Zoom Out",zoomResetDescription:"Reset zoom to default",zoomResetLabel:"Reset Zoom"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){e.exports={continueDescription:"実行を続行します",continueLabel:"続行",continueToLineDescription:"この行まで実行を続行して一時停止します",continueToLineLabel:"ここまで続行",pauseDescription:"現在実行中のコードを一時停止して、デバッグ モードに入ります",pauseLabel:"一時停止",pausingDescription:"次の実行可能なコード行で一時停止します",pausingLabel:"一時停止中",runToCursorDescription:"カーソルを含む行まで実行します",runToCursorLabel:"カーソルまで実行",runToLineDescription:"この行まで実行して一時停止します",runToLineLabel:"ここまで実行",stepDescription:"次の行を実行します",stepInAnywhereDescription:"現在の行を実行して ${0} にステップ インします",stepInAnywhereLabel:"${0} にステップ イン",stepLabel:"ステップ",stopDescription:"実行を終了します",stopLabel:"停止"}},function(e,t,i){e.exports={continueDescription:"실행을 계속합니다.",continueLabel:"계속",continueToLineDescription:"이 라인까지 실행을 계속한 후 일시 중지합니다.",continueToLineLabel:"여기까지 계속 실행",pauseDescription:"현재 실행 중인 코드를 일시 중지하고 디버그 모드로 전환합니다.",pauseLabel:"일시 중지",pausingDescription:"실행 가능한 다음 코드 라인에서 일시 중지합니다.",pausingLabel:"일시 중지 중",runToCursorDescription:"커서가 포함된 라인까지 실행합니다.",runToCursorLabel:"커서까지 실행",runToLineDescription:"이 라인 전까지 실행한 후 일시 중지합니다.",runToLineLabel:"여기까지 실행",stepDescription:"다음 라인을 실행합니다.",stepInAnywhereDescription:"현재 라인을 실행하고 ${0}이(가) 있으면 이동해 실행합니다.",stepInAnywhereLabel:"${0}(으)로 이동해 실행",stepLabel:"스텝",stopDescription:"실행을 중지합니다.",stopLabel:"중지"}},function(e,t,i){e.exports={continueDescription:"继续运行",continueLabel:"继续",continueToLineDescription:"继续运行到此行并暂停",continueToLineLabel:"继续运行到此行",pauseDescription:"暂停当前正在执行的代码并进入调试模式",pauseLabel:"暂停",pausingDescription:"在下一可执行代码行处暂停",pausingLabel:"正在暂停",runToCursorDescription:"运行到光标所在的行",runToCursorLabel:"运行到光标处",runToLineDescription:"运行到此行并暂停",runToLineLabel:"运行到此行",stepDescription:"运行下一行",stepInAnywhereDescription:"运行当前行并步入 ${0}",stepInAnywhereLabel:"步入 ${0}",stepLabel:"步长",stopDescription:"退出执行",stopLabel:"停止"}},function(e,t,i){e.exports={root:{continueDescription:"Continue running",continueLabel:"Continue",continueToLineDescription:"Continue running up to this line and pause",continueToLineLabel:"Continue to Here",pauseDescription:"Pause the currently executing code and enter debug mode",pauseLabel:"Pause",pausingDescription:"Pausing at the next executable code line",pausingLabel:"Pausing",runToCursorDescription:"Run to line containing the cursor",runToCursorLabel:"Run to Cursor",runToLineDescription:"Run up to this line and pause",runToLineLabel:"Run to Here",stepDescription:"Run next line",stepInAnywhereDescription:"Run current line and step into ${0}",stepInAnywhereLabel:"Step into ${0}",stepLabel:"Step",stopDescription:"Quit execution",stopLabel:"Stop"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){e.exports={debugContinueDescription:"ブレークポイントから実行を続行します",debugContinueLabel:"続行",debugContinueShortcut:"F5",debugExitDescription:"デバッグ機構をオフにしてコード実行を停止します",debugExitLabel:"デバッグの\n終了",debugExitShortcut:"Shift+F5",debugFunctionStackLabel:"関数呼び出しスタック:",debugSaveDialogCheckBoxMessage:"次回からこのプロンプトを表示しない。",debugSaveDialogTitle:"デバッグ中は保存不可",debugSaveMultipleFilesDialogText:"デバッグ モードではファイルを保存できません。デバッグ モードを終了して保存しますか?",debugSaveSingleFileDialogText:"デバッグ中は ${0} を保存できません。デバッグ モードを終了して保存しますか?",debugSectionTitle:"デバッグ",debugStepDescription:"次の行を実行します",debugStepInDescription:"次の行を実行して関数にステップ インします",debugStepInLabel:"ステップ イン",debugStepInShortcut:"F11",debugStepLabel:"ステップ",debugStepOutDescription:"現在の関数が戻るまで実行します",debugStepOutLabel:"ステップ アウト",debugStepOutShortcut:"Shift+F11",debugStepShortcut:"F10"}},function(e,t,i){e.exports={debugContinueDescription:"중단점에서 실행을 계속합니다.",debugContinueLabel:"계속",debugContinueShortcut:"F5",debugExitDescription:"디버그 기능을 끄고 코드 실행을 중지합니다.",debugExitLabel:"디버그\n중지",debugExitShortcut:"Shift+F5",debugFunctionStackLabel:"함수 호출 스택:",debugSaveDialogCheckBoxMessage:"이 메시지를 다시 표시하지 않습니다.",debugSaveDialogTitle:"디버그 중에는 저장할 수 없음",debugSaveMultipleFilesDialogText:"디버그 모드에서는 파일을 저장할 수 없습니다. 디버그 모드를 종료하고 저장하시겠습니까?",debugSaveSingleFileDialogText:"${0}을(를) 디버그하는 동안에는 저장할 수 없습니다. 디버그 모드를 종료하고 저장하시겠습니까?",debugSectionTitle:"디버그",debugStepDescription:"다음 라인을 실행합니다.",debugStepInDescription:"다음 라인을 실행하고 호출 함수가 있으면 이동해 실행합니다.",debugStepInLabel:"스텝 인",debugStepInShortcut:"F11",debugStepLabel:"스텝",debugStepOutDescription:"실행 후 현재 함수를 호출한 곳으로 돌아갑니다.",debugStepOutLabel:"스텝 아웃",debugStepOutShortcut:"Shift+F11",debugStepShortcut:"F10"}},function(e,t,i){e.exports={debugContinueDescription:"从断点处继续运行",debugContinueLabel:"继续",debugContinueShortcut:"F5",debugExitDescription:"关闭调试工具并停止代码执行",debugExitLabel:"退出\n调试",debugExitShortcut:"Shift+F5",debugFunctionStackLabel:"函数调用堆栈:",debugSaveDialogCheckBoxMessage:"不再显示此提示。",debugSaveDialogTitle:"调试时无法保存",debugSaveMultipleFilesDialogText:"在调试模式下无法保存文件。是否退出调试模式并保存?",debugSaveSingleFileDialogText:"在调试 ${0} 时无法对其进行保存。是否退出调试模式并保存?",debugSectionTitle:"调试",debugStepDescription:"运行下一行",debugStepInDescription:"运行下一行并步入函数",debugStepInLabel:"步入",debugStepInShortcut:"F11",debugStepLabel:"步进",debugStepOutDescription:"一直运行到当前函数返回",debugStepOutLabel:"步出",debugStepOutShortcut:"Shift+F11",debugStepShortcut:"F10"}},function(e,t,i){e.exports={root:{debugContinueDescription:"Continue running from breakpoint",debugContinueLabel:"Continue",debugContinueShortcut:"F5",debugExitDescription:"Turn off debugging machinery and stop code execution",debugExitLabel:"Quit\nDebugging",debugExitShortcut:"Shift+F5",debugFunctionStackLabel:"Function Call Stack:",debugSaveDialogCheckBoxMessage:"Do not show this prompt again.",debugSaveDialogTitle:"Cannot save while debugging",debugSaveMultipleFilesDialogText:"Cannot save files while in debug mode. Exit debug mode and save?",debugSaveSingleFileDialogText:"Cannot save ${0} while it is being debugged. Exit debug mode and save?",debugSectionTitle:"DEBUG",debugStepDescription:"Run next line",debugStepInDescription:"Run next line and step into function",debugStepInLabel:"Step In",debugStepInShortcut:"F11",debugStepLabel:"Step",debugStepOutDescription:"Run until current function returns",debugStepOutLabel:"Step Out",debugStepOutShortcut:"Shift+F11",debugStepShortcut:"F10"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(715),i(300),i(3460)],o=i.dj.d(n,(function(e,t,i){return{_BOOKMARKS_PREFERENCES_FILE:"bookmarks.xml",_PARSER_TYPE:"text/xml",getBookmarksForPath:function(t){return e.readFileFromPreferenceDirectory(this._BOOKMARKS_PREFERENCES_FILE).then(function(e){var i=(new DOMParser).parseFromString(e,this._PARSER_TYPE);return this._getBookmarks(t,i.firstElementChild)}.bind(this),(function(){return[]}))},_getBookmarks:function(e,n){n||(n=t.createDocument(i.BOOKMARKS_ROOT_TAG).documentElement);for(var o=[],r=this._getFileElement(n,e).children,a=0;a<r.length;a++)o.push(parseInt(r[a].getAttribute(i.BOOKMARKS_NUMBER_TAG)));return o},_getFileElement:function(e,t){for(var n,o=0;o<e.children.length;o++)if(e.children[o].getAttribute(i.BOOKMARKS_PATH_TAG)===t){n=e.children[o];break}return n||((n=document.createElement(i.BOOKMARKS_FILE_TAG)).setAttribute(i.BOOKMARKS_PATH_TAG,t),e.appendChild(n)),n},setBookmarksForPath:function(t,i){return e.readFileFromPreferenceDirectory(this._BOOKMARKS_PREFERENCES_FILE).then(function(e){var n=(new window.DOMParser).parseFromString(e,this._PARSER_TYPE);return this._createBookmarkForPath(t,i,n.firstElementChild)}.bind(this),function(){return this._createBookmarkForPath(t,i)}.bind(this))},_createBookmarkForPath:function(n,o,r){r||(r=t.createDocument(i.BOOKMARKS_ROOT_TAG).documentElement);for(var a=this._getFileElement(r,n);a.lastElementChild;)a.removeChild(a.lastElementChild);o.forEach((function(e){var t=document.createElement(i.BOOKMARKS_LINE_TAG);t.setAttribute(i.BOOKMARKS_NUMBER_TAG,e),a.appendChild(t)}));var s=t.serializeToFormattedString(r);e.writeFileToPreferenceDirectory(this._BOOKMARKS_PREFERENCES_FILE,s)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{BOOKMARKS_FILE_TAG:"file",BOOKMARKS_LINE_TAG:"line",BOOKMARKS_NUMBER_TAG:"number",BOOKMARKS_PATH_TAG:"absolutepath",BOOKMARKS_ROOT_TAG:"bookmarks"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{priority:function(){throw new Error("Unimplemented API: MW.rtc.margin.MarginPlugin.priority")},getWidth:function(){throw new Error("Unimplemented API: MW.rtc.margin.MarginPlugin.getWidth")},getMarginElement:function(){throw new Error("Unimplemented API: MW.rtc.margin.MarginPlugin.getMarginElement")},onUpdate:function(){},update:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(211),i(206),i(575)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_ADD_BOOKMARK_ICON_CLASS:" addBookmarkIcon",_BOOKMARK_ICON_CLASS:"bookmarkIcon",_COLLAPSED_WIDTH:0,_ID:"BookmarkLine",_WIDTH:10,constructor:function(e,n,o){this._bookmarks=e,this._bookmarksContributor=n,this._stylers=o||[],this._stylers.forEach((function(e){this.own(i.after(e,"onUpdate",t.hitch(this,"_handleStylerUpdate",e)))}),this)},_handleStylerUpdate:function(){this.onUpdate()},getWidth:function(){return this._bookmarks.documentHasBookmarks()?this._WIDTH:this._COLLAPSED_WIDTH},getId:function(){return this._ID},createDecorationForLineNumber:function(e){var t=this._BOOKMARK_ICON_CLASS;this._bookmarks.isNodeIndexInBookmarks(e)||(t+=this._ADD_BOOKMARK_ICON_CLASS);var i=n.create("div",{className:t});return this.own(o(i,"click",function(){this._bookmarks.toggleForIndex(e)}.bind(this))),i},hasLayerForLineNumber:function(){return this._bookmarks.documentHasBookmarks()},getContextMenuContributor:function(){return this._bookmarksContributor}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(294),i(1843),i(251),i(253)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{constructor:function(e,n){this.inherited(arguments),this._actionService=n,this._bookmarks=e,this._gutter=null,this._actions=[{id:o.BOOKMARKS.CLEAR_ALL_BOOKMARK_CONTEXT_MENU,enabled:!0,text:r.bookmarksClearAllLabel,description:r.bookmarksClearAllDescription,callback:t.hitch(this,"_clearActionCallback")},{id:o.BOOKMARKS.PREV_BOOKMARK_CONTEXT_MENU,enabled:!0,text:r.bookmarksPrevNavigationLabel,description:r.bookmarksPrevNavigationDescription,callback:t.hitch(this,"_previousActionCallback")},{id:o.BOOKMARKS.NEXT_BOOKMARK_CONTEXT_MENU,enabled:!0,text:r.bookmarksNextNavigationLabel,description:r.bookmarksNextNavigationDescription,callback:t.hitch(this,"_nextActionCallback")}],this._actionService.loadActions(this._actions),this.addActionsToMap(i.BOOKMARKS,[o.BOOKMARKS.PREV_BOOKMARK_CONTEXT_MENU,o.BOOKMARKS.NEXT_BOOKMARK_CONTEXT_MENU]),this.addActionsToMap(i.BOOKMARKS_CLEAR_ALL,[o.BOOKMARKS.CLEAR_ALL_BOOKMARK_CONTEXT_MENU])},_clearActionCallback:function(){this._bookmarks.clearAllBookmarks()},_previousActionCallback:function(){this._bookmarks.previousActionCallback()},_nextActionCallback:function(){this._bookmarks.nextActionCallback()},setMenuLine:function(){},contributeToContextMenu:function(e){return this._gutter&&this._gutter.contains(e)&&this._bookmarks.documentHasBookmarks()?this.inherited(arguments):{}},setGutter:function(e){this._gutter=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3465)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore","debug.breakpointmodel","rtc.hyperlinkservice","debug.breakpoint.dataservice","debug.breakpoints.errordisplaymanager"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(800),i(208),i(207),i(3470),i(281)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{CLASS_NOT_ON_PATH_STATUS:"CLASS_NOT_ON_PATH",constructor:function(e,i,o,r,a){this._backingStore=e,this._breakpointModel=i,this._hyperlinkService=o,this._matlabBreakpointDataService=r,this._conditionalDialogWidget=null,this._breakpointErrorDisplayManager=a,this._breakpointErrorDisplayManager.registerErrorDisplayHandler(this._handleBreakpointError.bind(this)),this.own(n.after(this._matlabBreakpointDataService,"breakpointsAdded",t.hitch(this,"_handleBreakpointsAdded"),!0))},showDialog:function(e){var i=this._backingStore.getUniqueId();e.fileName=i,this._conditionalDialogWidget=new r(i,e,t.hitch(this,"_handleDialogClosed"),this._breakpointModel,this._hyperlinkService)},_handleDialogClosed:function(){this._conditionalDialogWidget=null},_handleBreakpointsAdded:function(){this._conditionalDialogWidget&&this._conditionalDialogWidget.close()},_handleBreakpointError:function(e){if(this._conditionalDialogWidget)return this._conditionalDialogWidget.displayError(e.fErrorMessage),!0}})}),e,t),e.exports=o},function(e,t,i){e.exports={breakpointErrorDialogAnonymousNotInFunctionText:"スクリプトの無名関数にブレークポイントを設定できません。",breakpointErrorDialogButtonText:"OK",breakpointErrorDialogClassPathText:"ファイルが MATLAB パス上にないためブレークポイントを有効にできません。",breakpointErrorDialogPcodeText:"P ファイルが同期していないため、ブレークポイントを設定できません。",breakpointErrorDialogSyntaxText:"構文エラーのためブレークポイントを有効にできません。",breakpointErrorDialogTitle:"MATLAB エディター",dirtyFileTooltip:"ファイルを保存してブレークポイントを同期します。",liveEditorTooltipCondition:"${1} の場合は ${0} 行目で実行を一時停止",liveEditorTooltipConditionAnonymous:"無名関数 ${2} で ${1} の場合、${0} 行目で実行を一時停止",liveEditorTooltipDisabled:"無効 - ${0} 行目で実行を一時停止",liveEditorTooltipDisabledAnonymous:"無効 - 無名関数 ${1} の ${0} 行目で実行を一時停止",liveEditorTooltipEnabled:"${0} 行目で実行を一時停止",liveEditorTooltipEnabledAnonymous:"無名関数 ${1} の ${0} 行目で実行を一時停止",liveEditorTooltipLine:"行",liveEditorTooltipStatus:"ステータス",syntaxErrorTooltip:"エラーを解決してからファイルを保存してブレークポイントを同期します。",tooltipAnonymous:"無名関数 ${0}",tooltipCondition:"条件",tooltipDisabled:"無効",tooltipEnabled:"有効",tooltipLine:"行",tooltipStatus:"ステータス"}},function(e,t,i){e.exports={breakpointErrorDialogAnonymousNotInFunctionText:"스크립트의 익명 함수에 대해서는 중단점을 설정할 수 없습니다.",breakpointErrorDialogButtonText:"확인",breakpointErrorDialogClassPathText:"파일이 MATLAB 경로에 없으므로 중단점을 사용하도록 설정할 수 없습니다.",breakpointErrorDialogPcodeText:"P 파일이 동기화되지 않았으므로 중단점을 설정할 수 없습니다.",breakpointErrorDialogSyntaxText:"구문 오류로 인해 중단점을 사용하도록 설정할 수 없습니다.",breakpointErrorDialogTitle:"MATLAB 편집기",dirtyFileTooltip:"파일을 저장하여 중단점을 동기화하십시오.",liveEditorTooltipCondition:"${1}인 경우 ${0}번 라인에서 실행 일시 중지",liveEditorTooltipConditionAnonymous:"익명 함수 ${2}의 ${0}번 라인에서 ${1}인 경우 실행 일시 중지",liveEditorTooltipDisabled:"사용 안 함 - ${0}번 라인에서 실행 일시 중지",liveEditorTooltipDisabledAnonymous:"사용 안 함 - 익명 함수 ${1}의 ${0}번 라인에서 실행 일시 중지",liveEditorTooltipEnabled:"${0}번 라인에서 실행 일시 중지",liveEditorTooltipEnabledAnonymous:"익명 함수 ${1}의 ${0}번 라인에서 실행 일시 중지",liveEditorTooltipLine:"라인",liveEditorTooltipStatus:"상태",syntaxErrorTooltip:"오류를 해결하고 파일을 저장하여 중단점을 동기화하십시오.",tooltipAnonymous:"익명 함수 ${0}",tooltipCondition:"조건",tooltipDisabled:"사용 안 함",tooltipEnabled:"사용",tooltipLine:"라인",tooltipStatus:"상태"}},function(e,t,i){e.exports={breakpointErrorDialogAnonymousNotInFunctionText:"无法为脚本中的匿名函数设置断点。",breakpointErrorDialogButtonText:"确定",breakpointErrorDialogClassPathText:"由于文件不在 MATLAB 路径中,无法启用断点。",breakpointErrorDialogPcodeText:"无法设置断点,因为 P 文件不同步。",breakpointErrorDialogSyntaxText:"由于语法错误,无法启用断点。",breakpointErrorDialogTitle:"MATLAB 编辑器",dirtyFileTooltip:"保存文件以同步断点。",liveEditorTooltipCondition:"如果 ${1},在第 ${0} 行暂停执行",liveEditorTooltipConditionAnonymous:"如果在匿名函数 ${2} 中 ${1} ,则在第 ${0} 行上暂停执行",liveEditorTooltipDisabled:"已禁用 - 在第 ${0} 行暂停执行",liveEditorTooltipDisabledAnonymous:"已禁用 - 在匿名函数 ${1} 的第 ${0} 行上暂停执行",liveEditorTooltipEnabled:"在第 ${0} 行暂停执行",liveEditorTooltipEnabledAnonymous:"在匿名函数 ${1} 的第 ${0} 行上暂停执行",liveEditorTooltipLine:"行",liveEditorTooltipStatus:"状态",syntaxErrorTooltip:"解决错误并保存文件以同步断点。",tooltipAnonymous:"匿名函数 ${0}",tooltipCondition:"条件",tooltipDisabled:"已禁用",tooltipEnabled:"已启用",tooltipLine:"行",tooltipStatus:"状态"}},function(e,t,i){e.exports={root:{breakpointErrorDialogAnonymousNotInFunctionText:"Unable to set breakpoints for the anonymous function in the script.",breakpointErrorDialogButtonText:"OK",breakpointErrorDialogClassPathText:"Cannot enable breakpoints because the file is not on the MATLAB path.",breakpointErrorDialogPcodeText:"Unable to set breakpoints because the P-file is out-of-sync.",breakpointErrorDialogSyntaxText:"Cannot enable breakpoints because of syntax error.",breakpointErrorDialogTitle:"MATLAB Editor",dirtyFileTooltip:"Save file to synchronize breakpoints.",liveEditorTooltipCondition:"Pause execution at line ${0} if ${1}",liveEditorTooltipConditionAnonymous:"Pause execution at line ${0} if ${1} in anonymous function ${2}",liveEditorTooltipDisabled:"Disabled - Pause execution at line ${0}",liveEditorTooltipDisabledAnonymous:"Disabled - Pause execution at line ${0} in anonymous function ${1}",liveEditorTooltipEnabled:"Pause execution at line ${0}",liveEditorTooltipEnabledAnonymous:"Pause execution at line ${0} in anonymous function ${1}",liveEditorTooltipLine:"Line",liveEditorTooltipStatus:"Status",syntaxErrorTooltip:"Resolve errors and save file to synchronize breakpoints.",tooltipAnonymous:"Anonymous function ${0}",tooltipCondition:"Condition",tooltipDisabled:"disabled",tooltipEnabled:"enabled",tooltipLine:"Line",tooltipStatus:"Status"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(216),i(255),i(215),i(223),i(206),i(203),i(204),i(1844),i(3475),i(273),i(262),i(258),i(3476)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return r([i,e,t],{templateString:l,_DIALOG_TEXTFIELD_WIDTH:"100%",_DIALOG_HEIGHT:"225px",_DIALOG_PROPERTY:"rteConditionalBreakpointDialog",_CONDITION_TEXTBOX_CLASS:"conditionTextBox",constructor:function(e,t,i,n,o){this._filePath=e,this._truncatedFilePath=this._getTruncated(e),this._breakpoint=t,this._breakpointModel=n,this._hyperlinkService=o,this._closeCallBack=i,this._conditionalDialogWidget=null,this._errorMessage=null,this._isClosed=!1},postCreate:function(){this.inherited(arguments),this.fileLabel.innerHTML=this._createFileLabel(),this.conditionLabel.innerHTML=this._createConditionLabel(),this.noteLabel.innerHTML=s.noteLabel,this._conditionalDialogWidget=d.createDialog({title:s.title,content:this,buttons:[c.HELP,c.OK,c.CANCEL],"data-test-id":this._DIALOG_PROPERTY,className:this._DIALOG_PROPERTY,dialogType:d.MODAL,draggable:!0}),this._conditionalDialogWidget.addButtonEventListener(c.CANCEL,a.hitch(this,"_cancelCallback"),!1),this._conditionalDialogWidget.addButtonEventListener(c.OK,a.hitch(this,"_okCallback"),!1),this._conditionalDialogWidget.addButtonEventListener(c.HELP,a.hitch(this,"_conditionalBreakpointHelpCallback"),!1),this._conditionalDialogWidget.on("close",a.hitch(this,"_handleClose")),this._conditionalDialogWidget.domNode.style.height=this._DIALOG_HEIGHT,this.delayedSelectTextboxText(),this._createTextFields()},_createTextFields:function(){this.conditionInput=new u,this.conditionInput.placeAt(document.querySelector(".conditionInput")),this.conditionInput.on("onkeydown",a.hitch(this,"onTextKeydown")),this.conditionInput.inputNode.focus(),this.conditionInput.inputNode.value=this._breakpoint.expression,this.conditionInput.startup(),this.conditionInput.domNode.style.width=this._DIALOG_TEXTFIELD_WIDTH},onTextKeydown:function(e){e.keyCode===n.ESCAPE&&this._cancelCallback()},delayedSelectTextboxText:function(){setTimeout(a.hitch(this,this._fullySelectTextboxText),0)},_fullySelectTextboxText:function(){var e=this._getExpressionTextboxValue().length;e>=0&&this._setCursorPositionAndSelection(0,e)},_setCursorPositionAndSelection:function(e,t){this.conditionInput.inputNode.focus()},_okCallback:function(){var e=a.trim(this._getExpressionTextboxValue());h.checkConditionalExpression(e).then(this._handleExpressionValidationResponse.bind(this,e),(function(){}))},_handleExpressionValidationResponse:function(e,t){t.isConditionalExpression()?(this._setConditionalBreakpoint(e),this.close()):this.displayError(s.syntaxErrorInExpression)},displayError:function(e){var t=-1!==e.indexOf(this._filePath);this._errorMessage=t?s.syntaxErrorInFile:e,this.delayedSelectTextboxText(),this.conditionInput.set("validationState","error"),this.conditionInput.set("errorText",this._errorMessage),this.conditionInput.inputNode.focus()},_handleClose:function(){this._closeCallBack()},_cancelCallback:function(){this.close()},close:function(){this._isClosed||(this._conditionalDialogWidget.close(),this._isClosed=!0)},_getTruncated:function(e){var t=e.length,i=e;if(t>46){i=e.substring(0,23)+"..."+e.substring(t-23)}return i},_conditionalBreakpointHelpCallback:function(){this._hyperlinkService.openUrl("matlab:helpview(fullfile(docroot,'matlab','helptargets.map'),'matlab_env_conditional_breakpoints')")},_setConditionalBreakpoint:function(e){var t=this._breakpoint;t.expression=e,this._breakpointModel.setBreakpoint(t)},_createFileLabel:function(){return s.fileLabel.replace(/\$\{0}/g,this._truncatedFilePath)},_createConditionLabel:function(){return s.conditionLabel.replace(/\$\{0}/g,this._breakpoint.zeroBasedLineNumber+1)},_getExpressionTextboxValue:function(){if(null!=this.conditionInput.inputNode)return this.conditionInput.inputNode.value}})}),e,t),e.exports=o},function(e,t,i){e.exports={cancelButtonLabel:"キャンセル",conditionLabel:"${0} 行目に対する条件 (例 x == 1):",fileLabel:"ファイル ${0}",helpButtonLabel:"ヘルプ",noteLabel:"メモ: この行を実行する前に条件がチェックされます。",okButtonLabel:"OK",syntaxErrorInExpression:"指定された条件は正しい条件式ではありません。",syntaxErrorInFile:"ファイルに構文エラーがあります",title:"MATLAB エディター"}},function(e,t,i){e.exports={cancelButtonLabel:"취소",conditionLabel:"${0}번 라인에 대한 조건(예: x == 1):",fileLabel:"파일 ${0}",helpButtonLabel:"도움말",noteLabel:"참고: 라인 실행 전에 조건이 먼저 확인됩니다.",okButtonLabel:"확인",syntaxErrorInExpression:"지정된 조건은 유효한 조건식이 아닙니다.",syntaxErrorInFile:"파일에 구문 오류가 있음",title:"MATLAB 편집기"}},function(e,t,i){e.exports={cancelButtonLabel:"取消",conditionLabel:"行 ${0} 的条件(例如,x == 1):",fileLabel:"文件 ${0}",helpButtonLabel:"帮助",noteLabel:"注意: 执行该行之前将会检查条件。",okButtonLabel:"确定",syntaxErrorInExpression:"指定的条件不是有效的条件表达式。",syntaxErrorInFile:"文件包含语法错误",title:"MATLAB 编辑器"}},function(e,t,i){e.exports={root:{cancelButtonLabel:"Cancel",conditionLabel:"Condition for line ${0} (for example, x == 1):",fileLabel:"File ${0}",helpButtonLabel:"Help",noteLabel:"Note: the condition will be checked before the line is executed.",okButtonLabel:"OK",syntaxErrorInExpression:"The specified condition is not a valid conditional expression.",syntaxErrorInFile:"File contains a syntax error",title:"MATLAB Editor"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="rteConditionalBreakpointDialog" data-dojo-attach-point="contentNode"\n data-dojo-attach-event="onkeydown:onTextKeydown">\n\n <div class="fileLabel">\n <label data-dojo-attach-point="fileLabel"></label>\n </div>\n <div class="condition">\n <div class="conditionLabel">\n <label data-dojo-attach-point="conditionLabel"></label>\n </div>\n <div class="conditionInput" id="conditionInput"\n data-dojo-attach-point="conditionInput"></div>\n </div>\n <div class="noteLabel">\n <label data-dojo-attach-point="noteLabel"></label>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(3477)],o=i.dj.d(n,(function(e){var t=null;return{checkConditionalExpression:function(i){return t||(t=e()),t.checkConditionalExpression(i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1345),i(229),i(1087)],o=i.dj.d(n,(function(e,t,i){function n(e){return{isConditionalExpression:function(){return e.isConditionalExpression}}}function o(e){if(e&&Object.getOwnPropertyNames(e).length){if(e.hasOwnProperty("isConditionalExpression"))return!0;if(e.failure)return!0}return!1}return function(r){var a=new e(r);return{checkConditionalExpression:function(e){if("string"==typeof e){var r=t.generateUuid(),s={sourceCode:e,channelId:r},l="/codeanalyzer/responseChannel/isConditional/"+r;return a.requestData("/codeanalyzer/requestChannel/isConditional",l,n,o,s)}return Promise.reject(i.emptyExpr)}}}}),e,t),e.exports=o},function(e,t,i){e.exports={emptyExpr:"入力式が空または未定義です",invalidInput:"無効な入力",noData:"受信データがありません"}},function(e,t,i){e.exports={emptyExpr:"비어 있거나 정의되지 않은 입력 표현식임",invalidInput:"유효하지 않은 입력값임",noData:"수신된 데이터가 없음"}},function(e,t,i){e.exports={emptyExpr:"空的或未定义的输入表达式",invalidInput:"输入无效",noData:"未收到数据"}},function(e,t,i){e.exports={root:{emptyExpr:"Empty or undefined input expression",invalidInput:"Invalid input",noData:"No data received"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(3483),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.code.executablelines","rtc.linenumberservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(228),i(211),i(210),i(575)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{constructor:function(e,n){this._executableLineService=e,this._lineNumberService=n,this.own(i.after(this._executableLineService,"onUpdate",t.hitch(this,"_handleUpdate")))},hasLayerForLineNumber:function(e){var t=this._lineNumberService.getCodeLineNumberFromLineNumber(e);return!(this._isDisabled||t<0)&&this._executableLineService.isCodeLineExecutable(t)},createDecorationForLineNumber:function(e){var t=this._lineNumberService.getCodeLineNumberFromLineNumber(e),i=o.create("div");return this._applyStyle(i,t-1),i},_applyStyle:function(e,t){r.add(e,"marginExecutableLine"),n.set(e,"data-testid","executableLine_"+t)},getWidth:function(){return 15},_handleUpdate:function(){this.onUpdate()},enable:function(){this._isDisabled=!1},disable:function(){this._isDisabled=!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3485),i(275)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{createInstance:["debug.breakpointmodel","debug.breakpointdirtyservice"]}},createInstance:function(e,t){let o=n.getInstance();return new i(e,o,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(207),i(522)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{constructor:function(e,i,n){this._debugServices=i,this._fileTranslator=this._debugServices.getTranslator(),this._breakpointDirtyService=n,this.own(t.after(e,"onBreakpointsAdded",this._handleBreakpointsAdded.bind(this),!0)),this.own(t.after(e,"onBreakpointsRemoved",this._handleBreakpointsRemoved.bind(this),!0))},_handleBreakpointsAdded:function(e){this._breakpointDirtyService.areBreakpointsDirty()||e.forEach(e=>{let t=this._translateBreakpoint(e);t&&this._debugServices.setBreakpoint(t)})},_handleBreakpointsRemoved:function(e){this._breakpointDirtyService.areBreakpointsDirty()||e.forEach(e=>{let t=this._translateBreakpoint(e);t&&this._debugServices.clearBreakpoint(t)})},_translateBreakpoint:function(e){let t=this._fileTranslator.translateFileReverse(e.fileName);return t===e.fileName?null:new n(e.zeroBasedLineNumber,t,e.isEnabled,e.expression,e.anonymousIndex,e.zeroBasedColumnNumber)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(209),i(219),i(297),i(363),i(208),i(1346),i(1847),i(1848),i(3503),i(3504),i(3505),i(3506),i(3507),i(3508),i(1348),i(1849),i(3512),i(3513),i(3515),i(3516),i(3518)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){return t([e,l,v,c,d],{_STOP_IF_ERROR_FLAG:1,_STOP_IF_WARNING_FLAG:2,_STOP_IF_NAN_INF_FLAG:8,_BASE_WORKSPACE:"Base",_MATLAB_DEBUG_PROMPT_ID:"DEBUG_PROMPT",_PROMPT_EVENT_NAME:"mlutil::prompt::PromptEvent",_DEFAULT_DEBUGGER_ID:"DEBUG_PROMPT",constructor:function(e,t,n){this._messageService=e||o,this._mvm=t||a.getInstance(),this._fileTranslator=new b(this._messageService,this),this.own(this._fileTranslator),this._debugRegistrationFramework=new E(n),this.own(this._debugRegistrationFramework),this._flowEventListener=new y(this._messageService,this._fileTranslator,this._debugRegistrationFramework),this.own(this._flowEventListener),this._activeDebuggerModel=new T(this._flowEventListener),this.own(this._activeDebuggerModel),this._actionsDelegatorEvaluator=new f(this._mvm,this._debugRegistrationFramework),this.own(this._actionsDelegatorEvaluator),this._stackHandler=new C(this._fileTranslator,this._activeDebuggerModel,this._actionsDelegatorEvaluator),this.own(this._stackHandler),this._debugActionsDelegator=new m(this._activeDebuggerModel,this._actionsDelegatorEvaluator),this.own(this._debugActionsDelegator),this._breakpointActionsDelegator=new u(this._actionsDelegatorEvaluator),this.own(this._breakpointActionsDelegator),this._datatipDelegator=new p(this._mvm,this._debugRegistrationFramework),this.own(this._datatipDelegator),this._breakpointEventListener=new h(this._messageService,this._debugRegistrationFramework),this.own(this._breakpointEventListener),this.own(s.after(this._flowEventListener,"onDBEnter",i.hitch(this,"_handleDBEnter"),!0),s.after(this._flowEventListener,"onDBExit",i.hitch(this,"_handleDBExit"),!0),s.after(this._flowEventListener,"onDBStop",i.hitch(this,"_handleDBStop"),!0),s.after(this._flowEventListener,"onDBCont",i.hitch(this,"_handleDBCont"),!0),s.after(this._flowEventListener,"onDBWorkspaceChanged",i.hitch(this,"_handleWorkspaceChanged"),!0),s.after(this._stackHandler,"onStackChanged",i.hitch(this,"_handleStackChanged"),!0),s.after(this._breakpointEventListener,"onBreakpointAdded",i.hitch(this,"_handleBreakpointAdded"),!0),s.after(this._breakpointEventListener,"onBreakpointRemoved",i.hitch(this,"_handleBreakpointRemoved"),!0),s.after(this._breakpointEventListener,"onAllBreakpointsCleared",i.hitch(this,"_handleAllBreakpointsCleared"),!0)),this.own(s.after(this._debugRegistrationFramework,"onDebuggersUpdated",this._handleDebuggersUpdated.bind(this))),this._messageService.subscribe(g.DEBUG_STOP_CONDITIONS_EVENT,"_handleDbStopConditionsEvent",this),this.isDebugging=!1,this.isPaused=!1,this._requestInitialState()},onDebugModeChanged:function(e){},onDBStop:function(e,t){},onDBCont:function(){},onStackChanged:function(e,t){},onDbStopConditionsEvent:function(e){},onBreakpointAdded:function(e){},onBreakpointRemoved:function(e){},onAllBreakpointsCleared:function(e){},debugContinue:function(){this._debugActionsDelegator.debugContinue()},debugPause:function(){this._messageService.publish(g.DEBUG_PAUSE,{})},debugStep:function(){this._debugActionsDelegator.debugStep()},debugStepIn:function(){this._debugActionsDelegator.debugStepIn()},debugStepOut:function(){this._debugActionsDelegator.debugStepOut()},debugExit:function(){this._debugActionsDelegator.debugExit()},dbUpDown:function(e){this._debugActionsDelegator.dbUpDown(e)},setDBStopIfError:function(e){this._messageService.publish(g.DB_STOP_IF_ERROR,e)},setDBStopIfWarning:function(e){this._messageService.publish(g.DB_STOP_IF_WARNING,e)},setDBStopIfNanInf:function(e){this._messageService.publish(g.DB_STOP_IF_NAN_INF,e)},getSourceBreakpoints:function(e){return this._breakpointActionsDelegator.getSourceBreakpoints(e||this._DEFAULT_DEBUGGER_ID)},setBreakpoint:function(e,t){return this._breakpointActionsDelegator.setBreakpoint(e,t||this._DEFAULT_DEBUGGER_ID)},clearBreakpoint:function(e,t){return this._breakpointActionsDelegator.clearBreakpoint(e,t||this._DEFAULT_DEBUGGER_ID)},clearAllBreakpoints:function(e){return this._breakpointActionsDelegator.clearAllBreakpoints(e||this._DEFAULT_DEBUGGER_ID)},getDatatipPromise:function(e,t,i){var n=this._activeDebuggerModel.getActiveDebugger();return this._datatipDelegator.requestDatatipWhileDebugging(n,e,t,i)},requestStackState:function(){this._stackHandler.requestStackState()},getTranslator:function(){return this._fileTranslator},_handleDebuggersUpdated:function(){this.onDebuggersUpdated()},onDebuggersUpdated:function(){},_requestInitialState:function(){this._requestAndUpdateDebugMode(),this._messageService.publish(g.DB_STOP_IF_STATUS,{})},_handleBreakpointAdded:function(e){this.onBreakpointAdded(e)},_handleBreakpointRemoved:function(e){this.onBreakpointRemoved(e)},_handleAllBreakpointsCleared:function(e){this.onAllBreakpointsCleared(e)},_handleDBEnter:function(){this._setDebugMode(!0)},_handleDBExit:function(e){e?this.requestStackState():this._setDebugMode(!1)},_handleWorkspaceChanged:function(){this.requestStackState()},_handleStackChanged:function(e,t){this.isDebugging&&this.onStackChanged(e,t)},_setDebugMode:function(e){e!==this.isDebugging&&(this.isDebugging=e,this.isPaused=e,this.onDebugModeChanged(e),this.isDebugging||this.onStackChanged([],-1))},_handleDbStopConditionsEvent:function(e){var t=e.data.dbStopConditions,i=this._createDBStopIfConditionObject(t);this.onDbStopConditionsEvent(i)},_createDBStopIfConditionObject:function(e){return{stopIfError:(e&this._STOP_IF_ERROR_FLAG)===this._STOP_IF_ERROR_FLAG,stopIfWarning:(e&this._STOP_IF_WARNING_FLAG)===this._STOP_IF_WARNING_FLAG,stopIfNanInf:(e&this._STOP_IF_NAN_INF_FLAG)===this._STOP_IF_NAN_INF_FLAG}},_handleDBCont:function(){this.isPaused=!1,this.onDBCont()},_handleDBStop:function(e,t,i){this.isPaused=!0,this.onDBStop(e,t),this._stackHandler.handleDBStopStack(i)},_requestAndUpdateDebugMode:function(){var e=this._mvm.getEventManager().subscribe(this._PROMPT_EVENT_NAME,t=>{e.disconnect();var i=t.requester;this._debugRegistrationFramework.getDebugPrompts().then(e=>{var t=e.indexOf(i)>=0;this._setDebugMode(t),this._activeDebuggerModel.initializeDebugger(t,i),t&&this.requestStackState()},e=>{n.warn("Error while getting debug prompts from registration framework updating debug mode."),n.warn(e)})})},destroy:function(){this.inherited(arguments),this._messageService.unsubscribe(g.DEBUG_STOP_CONDITIONS_EVENT,"_handleDbStopConditionsEvent",this),this._mvm=null}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(212),i(219),i(209),i(1845),i(3489),i(229),i(3493),i(3497),i(3498),i(3500),i(3501),i(3502)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=e(null,{_RESULT_PROPERTY:"result",_ERROR_PROPERTY:"error",_FEVAL_CHANNEL:"/mvm/request/feval",_EVAL_CHANNEL:"/mvm/request/eval",_CANCEL_CHANNEL:"/mvm/cancel",_RESPONSE_CHANNEL:"/mvm/response/",_ATTACH_RESPONSE_CHANNEL:"/mvm/attach/response/",_ATTACH_CHANNEL:"/mvm/attach",_MVM_DESTROY:"mvm is being destroyed",_OUTPUT_CHANNEL:"/mvm/output/",_ERROR_CHANNEL:"/mvm/error/",_SETSINK_CHANNEL:"/mvm/sinks/set",_RESPONSESINK_CHANNEL:"/mvm/sinks/response",constructor:function(e,o){n.assert("user-mvm"===e,"Only user-mvm is supported at this time"),i.isStarted()||i.start(),this._MVMid=e,this._destroyCallback=o,this._refCount=0,this._activeRequests={},this._attachID=a.generateUuid(),this._requestCounter=0,this._mvmReady=new t((function(e,t){})),i.subscribe(this._ATTACH_RESPONSE_CHANNEL+this._attachID,"_handleMVMReady",this),i.publish(this._ATTACH_CHANNEL,{mvmID:this._MVMid,attachID:this._attachID}),this._promptService=new c(this._MVMid),this._idleBusyService=new d(this._MVMid),this._eventManager=new r(i,this._MVMid,this._attachID,this._mvmReady),this._outputCallback={},this._errorCallback={},this._debugger=new h(this._attachID)},_handleMVMReady:function(){i.unsubscribe(this._ATTACH_RESPONSE_CHANNEL+this._attachID,"_handleMVMReady",this),this._mvmReady.isCanceled()||(i.subscribe(this._RESPONSE_CHANNEL+this._attachID,"_handleResponse",this),i.subscribe(this._OUTPUT_CHANNEL+this._attachID,"_handleOutput",this),i.subscribe(this._ERROR_CHANNEL+this._attachID,"_handleError",this),i.subscribe(this._RESPONSESINK_CHANNEL,"_handleTextEvent",this),this._mvmReady.resolve())},_handleFEvalResponse:function(e,t){if(e.hasOwnProperty("result"))t.resolve(e.result);else if(e.hasOwnProperty("error")){var i=e.error,n=new o(i.status,i.msg,i.id,i.functionName,i.frames,i.causes);t.reject(n)}},_handleEvalResponse:function(e,t){if(e.hasOwnProperty("error")){var i=e.error,n=new o(i.status,i.msg,i.id,i.functionName,i.frames,i.causes);t.reject(n)}t.resolve()},_handleResponse:function(e){var t=e.data,i=this._activeRequests[t.requestID];i&&(i.getTimeOut()&&clearTimeout(i.getTimeOut()),i.getResponseHandler()(t,i.getDeferred())),delete this._activeRequests[t.requestID]},_handleTimeout:function(e){var t=this._activeRequests[e];t&&t.getDeferred()&&t.getDeferred().cancel("Canceled because of timeout",!0,!0)},_createRequestPromise:function(e){return new t(function(t,n,o){var r=this._activeRequests[e];r&&r.getTimeOut()&&clearTimeout(r.getTimeOut()),delete this._activeRequests[e],void 0===o&&(o=!0),this._mvmReady.then(function(){i.publish(this._CANCEL_CHANNEL,{attachID:this._attachID,requestID:e,interrupt:o})}.bind(this))}.bind(this))},_setTimeOut:function(e,t){if(e&&void 0!==e.getTimeOut())var i=setTimeout(this._handleTimeout.bind(this,t),e.getTimeOut());return i},feval:function(e,t,n,r){var a=this._requestCounter++,s=this._createRequestPromise(a);if(null==e||!("string"==typeof e||e instanceof String))return s.reject(new o(u.inCOMPILE_ERROR,"Invalid function name.",1)),s;if(null==t||!("number"==typeof t||t instanceof Number)||t<0)return s.reject(new o(u.inCOMPILE_ERROR,"Invalid numberOfOutput.",1)),s;if(r){var c=r._serializeAndVerifyRunOptions();if(c.error)return s.reject(new o(u.inCOMPILE_ERROR,c.error,1)),s;c.runOptions.eventConnections=this._prepareRunOptionEvents(r,s)}var d=this._setTimeOut(r,a);return this._activeRequests[a]=new l(s,this._handleFEvalResponse,d,r),this._mvmReady.then(function(){i.publish(this._FEVAL_CHANNEL,{attachID:this._attachID,requestID:a,function:e,rhsArgs:n,numOutputsExpected:t,runOptions:c?c.runOptions:void 0})}.bind(this),(function(e){})),s},eval:function(e,t,n){void 0===n&&(n=!1);var r=this._requestCounter++,a=this._createRequestPromise(r);if(null==e||!("string"==typeof e||e instanceof String))return a.reject(new o(u.inCOMPILE_ERROR,"Invalid function name.",1)),a;if(t){var s=t._serializeAndVerifyRunOptions();if(s.error)return a.reject(new o(u.inCOMPILE_ERROR,s.error,1)),a;s.runOptions.eventConnections=this._prepareRunOptionEvents(t,a)}var c=this._setTimeOut(t,r);return this._activeRequests[r]=new l(a,this._handleEvalResponse,c,t),this._mvmReady.then(function(){i.publish(this._EVAL_CHANNEL,{attachID:this._attachID,requestID:r,command:e,runOptions:s?s.runOptions:void 0,isUserEval:n})}.bind(this),(function(e){})),a},_prepareRunOptionEvents:function(e,t){const i=e.getEventCallbacks();let n={};return void 0!==i&&Object.keys(i).forEach(function(e){const o=this.getEventManager()._runOptionsSubscribe(e,i[e]);n[o._uId]=e,t.then((function(){o.destroy()}),(function(){o.destroy()}))}.bind(this)),n},destroy:function(){--this._refCount,this._refCount>0||(this._mvmReady.isResolved()&&(i.unsubscribe(this._RESPONSE_CHANNEL+this._attachID,"_handleResponse",this),i.unsubscribe(this._OUTPUT_CHANNEL+this._attachID,"_handleOutput",this),i.unsubscribe(this._ERROR_CHANNEL+this._attachID,"_handleError",this),i.unsubscribe(this._RESPONSESINK_CHANNEL,"_handleTextEvent",this)),this._mvmReady.then((function(e){}),(function(e){})),this._mvmReady.cancel(this._MVM_DESTROY,!1),Object.keys(this._activeRequests).forEach((function(e){var t=this._activeRequests[e];t.getDeferred().cancel(this._MVM_DESTROY,!1),clearTimeout(t.getTimeOut())}),this),this._activeRequests={},this._promptService&&this._promptService.destroy(),this._idleBusyService&&this._idleBusyService.destroy(),this._eventManager&&this._eventManager.destroy(),this._debugger&&this._debugger.destroy(),this._destroyCallback())},getState:function(){return s},getPromptService:function(){return this._promptService},getIdleBusyService:function(){return this._idleBusyService},_handleOutput:function(e){var t=e.data;if(void 0!==t.requestID){var i=this._activeRequests[t.requestID];if(i&&i.getOutSink()){var n=i.getOutSink();n&&n(t.text)}}else this.outSink&&this.outSink(t.text)},_handleError:function(e){var t=e.data;if(void 0!==t.requestID){var i=this._activeRequests[t.requestID];if(i&&i.getErrSink()){var n=i.getErrSink();n&&n(t.text)}}else this.errSink&&this.errSink(t.text)},whenMVMReady:function(){return this._mvmReady.then((function(e){return e}))},setTextCallbacks:function(e,t){this._outputCallback=e,this._errorCallback=t,this._mvmReady.then(function(){i.publish(this._SETSINK_CHANNEL,{attachID:this._attachID})}.bind(this),(function(e){}))},_handleTextEvent:function(e){var t=e.data;t&&(0===t.stream?this._outputCallback(t.text):1===t.stream&&this._errorCallback(t.text))},getEventManager:function(){return this._eventManager},getDebugger:function(){return this._debugger}});return{get:function(e){let t=this._mvmMap[e];return void 0===t&&(t=new p(e,function(){delete this._mvmMap[e]}.bind(this)),this._mvmMap[e]=t),++t._refCount,t},_mvmMap:{}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i){this._file=e,this._func=t,this._line=i},getFileName:function(){return this._file},getFunctionName:function(){return this._func},getLineNumber:function(){return this._line}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(3490),i(3491),i(3492),i(209),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e,t,n,r){o.assert("user-mvm"===t,"Only user-mvm is supported at this time"),this._mvmConnection=new i(e,"/mvm/eventMgr",n,r),this._mvmConnection.subscribe("event","_handleEvent",this),this._callbackMap={}},subscribe:function(e,t){const i=r.generateUuid(),o=n.makeEventSubscribeRequest(i,e);return this._subscribeHelper(o,t)},destroy:function(){for(const e in this._callbackMap)this._disconnect(e);this._mvmConnection.destroy()},_disconnect:function(e){if(!this._isConnected(e))return;this._callbackMap[e]=function(){};const t=n.makeEventDisconnectRequest(e);return this._mvmConnection.makeRequest(t).then(function(){delete this._callbackMap[e]}.bind(this))},_runOptionsSubscribe:function(e,t){const i=r.generateUuid(),o=n.makeRunOptionsEventSubscribeRequest(i,e);return this._subscribeHelper(o,t)},_subscribeHelper:function(e,i){this._callbackMap[e.uId]=i;const n=this._mvmConnection.makeRequest(e);return new t(n,e.uId,this)},_handleEvent:function(e){const t=e.data;if(!this._isConnected(t.uId))return;(0,this._callbackMap[t.uId])(t.eventData)},_isConnected:function(e){return e in this._callbackMap}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i){this._isValidDeferred=e,this._uId=t,this._eventMgr=i},destroy:function(){this.disconnect()},isValid:function(){return this._eventMgr._isConnected(this._uId)||this._isValidDeferred.cancel("Disconnected"),this._isValidDeferred},disconnect:function(){return this._eventMgr._disconnect(this._uId)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(212),i(244),i(209),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e,i,n,r){this._messageService=e,this._channelBasename=i,this._requestChannel=this._channelBasename+"/request",this._connectionId=void 0===n?o.generateUuid():n,void 0===r?(this._readyPromise=new t,this._readyPromise.resolve()):this._readyPromise=r,this._subscriptionPromises=[],this._subscribeArgs=[],this.subscribe("response","_handleResponse",this),this._requestPromiseMap={}},subscribe:function(e,t,i){const n=[this._channelBasename+"/"+e+"/"+this._connectionId,t,i],o=this._messageService.subscribe(...n);return this._subscriptionPromises.push(o),this._subscribeArgs.push(n),o},makeRequest:function(e){const n=o.generateUuid(),r=function(){n in this._requestPromiseMap&&delete this._requestPromiseMap[n]}.bind(this),a=new t,s=a.then((function(){r()}),(function(e){throw r(),e}));return this._requestPromiseMap[n]=a,e.requestId=n,e.connectionId=this._connectionId,i(this._subscriptionPromises,this._readyPromise).then(function(){this._messageService.publish(this._requestChannel,e)}.bind(this)),s},destroy:function(){return i(this._subscriptionPromises).then(function(){for(;this._subscribeArgs.length>0;){const e=this._subscribeArgs.shift();this._messageService.unsubscribe(...e)}}.bind(this))},_handleResponse:function(e){const t=e.data;t.requestId in this._requestPromiseMap&&(t.success?this._requestPromiseMap[t.requestId].resolve():this._requestPromiseMap[t.requestId].reject(new Error(t.error)))}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{makeEventSubscribeRequest:function(e,t){return{type:"subscribe",uId:e,eventName:t}},makeRunOptionsEventSubscribeRequest:function(e,t){return{type:"subscribeRunOptionsEvent",uId:e,eventName:t}},makeEventDisconnectRequest:function(e){return{type:"disconnect",uId:e}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(1846),i(3496),i(256)],o=i.dj.d(n,(function(e,t,i,n){return{getCWD:function(){return t.getCache().then((function(e){return e._currentWorkingDirectory}))},getCWDFileinfo:function(){return t.getCache().then((function(e){var t=e._cwdFileinfo;return new i(t.writable,t.isDirectory,t.location,t.modifiedUTC,t.name,t.separator)}))},getMatlabPath:function(){return t.getCache().then((function(e){return e.matlabPath}))},getWorkSpaceVarNames:function(){return t.getCache().then((function(e){return e.workspaceVarNames._collection}))},getMVMCapabilities:function(){return t.getCache().then((function(e){var t=new Set;return e.mvmCapabilities._collection.forEach((function(e){t.add(e.literal)})),t}))},getClientCapabilities:function(){return t.getCache().then((function(e){var t=new Set;return e.clientCapabilities._collection.forEach((function(e){t.add(e.literal)})),t}))},subscribe:function(e,t){return n.subscribe(e,t)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(345),i(256)],o=i.dj.d(n,(function(e,t,i){return e(t=t.default,{constructor:function(){},transactionCommitted:function(e){e.processModified((function(t){e.isChanged(t,t.getMetaClass().getPropertyByName("currentWorkingDirectory"))||e.isChanged(t,t.getMetaClass().getPropertyByName("cwdFileinfo"))?i.publish("cwd",{cwd:t.currentWorkingDirectory,cwdFileInfo:t.cwdFileinfo}):e.isChanged(t,t.getMetaClass().getPropertyByName("matlabPath"))?i.publish("path",t.matlabPath):e.isChanged(t,t.getMetaClass().getPropertyByName("workspaceVarNames"))?i.publish("workspaceVars",t.workspaceVarNames._collection):e.isChanged(t,t.getMetaClass().getPropertyByName("mvmCapabilities"))?i.publish("mvmCapabilities",t.mvmCapabilities._collection):e.isChanged(t,t.getMetaClass().getPropertyByName("clientCapabilities"))&&i.publish("clientCapabilities",t.clientCapabilities._collection)}))}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1745),i(780),i(566)],o=i.dj.d(n,(function(e,t,i){return{registerSerializer:function(n){var o=i.default.getType("mvm.services.SharedPathEntryVectorPtr"),r=new e.default(o);r._doSerializeValue=function(e){throw new Error("doSerializeValue has not been implemented yet")},r._doParseValue=function(e){return JSON.parse(e)},t.default.registerPropertySerializer(o,r)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(1846)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t,i,n,o,r){this._writable=e,this._isDirectory=t,this._location=i,this._modifiedUTC=n,this._name=o,this._separator=r},isWritable:function(){return this._writable},isDirectory:function(){return this._isDirectory},getLocation:function(){return this._location},getModifiedUTC:function(){return this._modifiedUTC},getSeparator:function(){return this._separator},getName:function(){return this._name}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t,i,n){if(this._timeout=i,this._deferred=e,this._responseCallback=t,this._eventCallbackMap={},n){if(n.getEventCallbacks()){var o=n.getEventCallbacks();for(var r in o)this._eventCallbackMap[r]=o[r]}this.outSink=n.getOutTextCallback(),this.errSink=n.getErrTextCallback()}},getTimeOut:function(){return this._timeout},getDeferred:function(){return this._deferred},getResponseHandler:function(){return this._responseCallback},getEventCallback:function(e){return this._eventCallbackMap[e]},getOutSink:function(){return this.outSink},getErrSink:function(){return this.errSink}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(219),i(3499)],o=i.dj.d(n,(function(e,t,i){return e(null,{_PROMPTSERVICE_CHANNEL:"/mvm/promptservice/",_PROMPT_KEYS:Object.keys(i),constructor:function(){this._subscribers={}},subscribe:function(e,t){Array.isArray(this._subscribers[e])||(this._subscribers[e]=[]),this._subscribers[e].push(t),1===this._subscribers[e].length&&this.subscribeImpl_(e)},unsubscribe:function(e,t){var i=this._subscribers[e];if(i){var n=i.findIndex((function(e){return e===t}));i.splice(n,1),0===i.length&&(delete this._subscribers[e],this.unsubscribeImpl_(e))}},handlePromptEvent:function(e){if(e.data){var t=e.data.groupName;t&&this._subscribers[t].forEach(function(t){var n={};e.data.error?n.error=e.data.error:void 0!==e.data.prompt&&void 0!==e.data.state?(n.prompt=i[this._PROMPT_KEYS[e.data.prompt+1]],n.state=e.data.state):n.error="Unknown Error",t(n)}.bind(this))}},subscribeImpl_:function(e){return t.subscribe(this._PROMPTSERVICE_CHANNEL+e,this.handlePromptEvent,this)},unsubscribeImpl_:function(e){return t.unsubscribe(this._PROMPTSERVICE_CHANNEL+e,this.handlePromptEvent,this)},destroy:function(){Object.keys(this._subscribers).forEach(function(e){this.unsubscribeImpl_(e)}.bind(this)),this._subscribers={}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{mnNO_PROMPT:"NO_PROMPT",mnBASE_PROMPT:"BASE_PROMPT",mnDEBUG_PROMPT:"DEBUG_PROMPT",mnINPUT_PROMPT:"INPUT_PROMPT",mnKEYBOARD_PROMPT:"KEYBOARD_PROMPT",mnPAUSE_PROMPT:"PAUSE_PROMPT",mnBANG_PROMPT:"BANG_PROMPT",mnSIMULINK_DEBUG_PROMPT:"SIMULINK_DEBUG_PROMPT",mnINCOMPLETE_BLOCK_PROMPT:"INCOMPLETE_BLOCK_PROMPT",mnMORE_PROMPT:"MORE_PROMPT",mnEMERGENCY_EXIT_PROMPT:"EMERGENCY_EXIT_PROMPT",mnSIMEVENTS_DEBUG_PROMPT:"SIMEVENTS_DEBUG_PROMPT",mnSF_EML_DEBUG_PROMPT:"SF_EML_DEBUG_PROMPT",mnINPUT_REQUESTER_MAX:"INPUT_REQUESTER_MAX"}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(219)],o=i.dj.d(n,(function(e,t){return e(null,{_IDLEBUSYSERVICE_CHANNEL:"/mvm/idlebusyservice/",constructor:function(){this._subscribers={}},subscribe:function(e,t){Array.isArray(this._subscribers[e])||(this._subscribers[e]=[]),this._subscribers[e].push(t),1===this._subscribers[e].length&&this.subscribeImpl_(e)},unsubscribe:function(e,t){var i=this._subscribers[e];if(i){var n=i.findIndex((function(e){return e===t}));i.splice(n,1),0===i.length&&(delete this._subscribers[e],this.unsubscribeImpl_(e))}},handleIdleBusyEvent_:function(e){if(e.data){var t=e.data.groupName;t&&this._subscribers[t].forEach((function(t){var i={};e.data.error?i.error=e.data.error:void 0!==e.data.state?i.state=e.data.state:i.error="Unknown Error",t(i)}))}},subscribeImpl_:function(e){return t.subscribe(this._IDLEBUSYSERVICE_CHANNEL+e,this.handleIdleBusyEvent_,this)},unsubscribeImpl_:function(e){return t.unsubscribe(this._IDLEBUSYSERVICE_CHANNEL+e,this.handleIdleBusyEvent_,this)},destroy:function(){Object.keys(this._subscribers).forEach(function(e){this.unsubscribeImpl_(e)}.bind(this)),this._subscribers={}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){var e={inEXECUTION_SUCCESS:0,inCOMPILE_ERROR:1,inRUNTIME_ERROR:2,inEXECUTION_DBQUIT:3,inEXECUTION_CTRLC:4,inCOMM_ERROR:5,inEXECUTION_STATUS_MAX:5};return e}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(212),i(219),i(1845)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_SETLINEBREAKPOINT_CHANNEL:"/mvm/debugger/lineBreakpoint/set",_SETGLOBALBREAKPOINT_CHANNEL:"/mvm/debugger/globalBreakpoint/set",_CLEARLINEBREAKPOINT_CHANNEL:"/mvm/debugger/lineBreakpoint/clear",_CLEARGLOBALBREAKPOINT_CHANNEL:"/mvm/debugger/globalBreakpoint/clear",_BREAKINDEBUGGER_CHANNEL:"/mvm/debugger/breakInDebugger",_DEBUGGER_REPLY_CHANNEL:"/mvm/debugger/response/",constructor:function(e){this._activeRequests={},this._attachID=e,this._requestCounter=0,i.subscribe(this._DEBUGGER_REPLY_CHANNEL+this._attachID,this._handleResponse,this)},setLineBreakpoint:function(e){var n=new t;return this._requestCounter++,this._activeRequests[this._requestCounter]=n,i.publish(this._SETLINEBREAKPOINT_CHANNEL,{requestID:this._requestCounter,breakpoint:e,attachID:this._attachID}),n},setGlobalBreakpoint:function(e){var n=new t;return this._requestCounter++,this._activeRequests[this._requestCounter]=n,i.publish(this._SETGLOBALBREAKPOINT_CHANNEL,{requestID:this._requestCounter,breakpoint:e,attachID:this._attachID}),n},clearLineBreakpoint:function(e){var n=new t;return this._requestCounter++,this._activeRequests[this._requestCounter]=n,i.publish(this._CLEARLINEBREAKPOINT_CHANNEL,{requestID:this._requestCounter,breakpoint:e,attachID:this._attachID}),n},clearGlobalBreakpoint:function(e){var n=new t;return this._requestCounter++,this._activeRequests[this._requestCounter]=n,i.publish(this._CLEARGLOBALBREAKPOINT_CHANNEL,{requestID:this._requestCounter,breakpoint:e,attachID:this._attachID}),n},breakInDebugger:function(){i.publish(this._BREAKINDEBUGGER_CHANNEL,{})},_handleResponse:function(e){var t=e.data,i=this._activeRequests[t.requestID];if(i){if(t.hasOwnProperty("error")){var o=t.error,r=new n(o.status,o.msg,o.id,o.functionName,o.frames,o.causes);i.reject(r)}i.resolve()}delete this._activeRequests[t.requestID]},destroy:function(){var e=new n("runtimeError","MVM is being destroyed");Object.values(this._activeRequests).forEach((function(t,i){t.reject(e)})),delete this._activeRequests,i.unsubscribe(this._DEBUGGER_REPLY_CHANNEL+this._attachID,this._handleResponse,this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(212),i(209),i(522),i(717),i(1848)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t([e,a],{constructor:function(e){this._actionsDelegatorEvaluator=e},getSourceBreakpoints:function(e){let t=this._actionsDelegatorEvaluator.validateAndEvaluateCommand(e,"getSourceBreakpoints",[],1);return t?t.then(e=>{var t=e[0].mwdata||e[0];return 0===Object.keys(t).length?[]:(this._convertSourceBreakpointToArray(t),t.fileName.map(this._convertResultsToBreakpointInfos.bind(this,t)))},e=>e):null},setBreakpoint:function(e,t){return this._actionsDelegatorEvaluator.validateAndEvaluateCommand(t,"setBreakpoint",this._getArgsFromBreakpoint(e))},clearBreakpoint:function(e,t){return this._actionsDelegatorEvaluator.validateAndEvaluateCommand(t,"clearBreakpoint",this._getArgsFromBreakpoint(e))},clearAllBreakpoints:function(e){return this._actionsDelegatorEvaluator.validateAndEvaluateCommand(e,"clearAllBreakpoints")},destroy:function(){this.inherited(arguments)},_getArgsFromBreakpoint:function(e){return[{fileName:e.fileName,lineNumber:e.zeroBasedLineNumber+1,expression:e.expression,anonymousIndex:e.anonymousIndex,isEnabled:e.isEnabled,columnNumber:e.zeroBasedColumnNumber+1}]},_convertSourceBreakpointToArray:function(e){Array.isArray(e.fileName)||(e.fileName=[e.fileName],e.lineNumber=[e.lineNumber],e.expression=[e.expression],e.columnNumber=[e.columnNumber],e.anonymousIndex=[e.anonymousIndex],e.columnNumber=[e.columnNumber],e.isEnabled=[e.isEnabled])},_convertResultsToBreakpointInfos:function(e,t,i){let n=e.isEnabled[i],a=e.expression[i],s=e.columnNumber[i]?e.columnNumber[i]-1:void 0;return({isEnabled:n,condition:a}=r.translateConditionToEnablement(a,n)),new o(e.lineNumber[i]-1,e.fileName[i],n,a,e.anonymousIndex[i],s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(209),i(522),i(717),i(1847),i(1347)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([a,r],{constructor:function(e,i){this._debugRegistrationFramework=i,this._allBreakpointsClearedEventToPromptsMap=new Map,this._updateBreakpointChannelSubscriptions(),this.own(t.after(this._debugRegistrationFramework,"onDebuggersUpdated",this._updateBreakpointChannelSubscriptions.bind(this)))},_updateBreakpointChannelSubscriptions:function(){this._clearDisposables(),this._debugRegistrationFramework.getBreakpointEventChannels().forEach(e=>{this._subscribe(e.BREAKPOINT_ADDED,this._mvmId,"_handleAddedEvent"),this._subscribe(e.BREAKPOINT_REMOVED,this._mvmId,"_handleRemovedEvent"),this._subscribe(e.ALL_BREAKPOINTS_CLEARED,this._mvmId,"_handleAllClearedEvent"),this._allBreakpointsClearedEventToPromptsMap.set(e.ALL_BREAKPOINTS_CLEARED,e.APPLICABLE_PROMPTS)})},_handleAddedEvent:function(e){this._assertFormat(e);const t=e.data.Filespec,i=e.data.LineNumber,r=e.data.whichAnonymousFunctionOnCurrentLine,a=isNaN(e.data.ColumnNumber)?void 0:e.data.ColumnNumber-1;let s=e.data.Condition,l=e.data.IsEnabled;({isEnabled:l,condition:s}=o.translateConditionToEnablement(s,l));let c=new n(i-1,t,l,s,r,a);this.onBreakpointAdded(c)},_handleRemovedEvent:function(e){this._assertFormat(e);let t=e.data.Filespec,i=e.data.LineNumber,o=e.data.Condition,r=e.data.whichAnonymousFunctionOnCurrentLine;if(0===i)return;let a=new n(i-1,t,!0,o,r);this.onBreakpointRemoved(a)},_handleAllClearedEvent:function(e){let t=[],i=e.data.filterTags;if(i.length>0){let e=i[0];t=this._allBreakpointsClearedEventToPromptsMap.get(e)}this.onAllBreakpointsCleared(t)},_assertFormat:function(e){i.assert(e.data.hasOwnProperty("Filespec")),i.assert(e.data.hasOwnProperty("LineNumber")),i.assert(e.data.hasOwnProperty("Condition")),i.assert(e.data.hasOwnProperty("whichAnonymousFunctionOnCurrentLine"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(297)],o=i.dj.d(n,(function(e,t,i){return t(e,{_TEN_SECOND_TIMEOUT:1e4,_EVAL_FUNCTION:"evalc",_EXCLUDED_CAPABILITY:"Debugging",constructor:function(e,t){this._debugRegistrationFramework=t,this._mvm=e},requestDatatipWhileDebugging:function(e,t,i,n){var o=this._debugRegistrationFramework.getActions(e).datatip;let r=o.functionName;return o.evalc?this._requestDatatip(this._EVAL_FUNCTION,[r+"('"+t.trim()+"')"],i,n):this._requestDatatip(r,[t.trim()],i,n)},_requestDatatip:function(e,t,n,o){var r=new i(this._TEN_SECOND_TIMEOUT);r.setOutTextCallback(null),r.setErrTextCallback(null);var a=this._mvm.feval(e,1,t,r);return a.then(n,o),a}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(209),i(297),i(229),i(1346)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t([e,r],{_EVAL_INPUT_OPTION:1024,constructor:function(e,t){this._mvm=e,this._debugRegistrationFramework=t,this._debugPromises={},this._runOptions=new n({outTextCallback:null,errTextCallback:null})},validateAndEvaluateCommand:function(e,t,n,o,r){var a=this._debugRegistrationFramework.getActions(e),s=this._debugRegistrationFramework.getJSActions(e);if(!a&&!s)return null;var l=a[t],c=s[t];return l&&c&&i.warn("Active debugger has 2 implementations of the "+t+" command (M and JS). Using M."),l?this._evaluateMCommand(l,n,t,o,r):c?this._evaluateJSCommand(s,c,n,t):(i.warn("Debugger has not implemented "+t+" command"),null)},_evaluateMCommand:function(e,t,i,n,r){t&&t.length>0&&e.inputArguments&&e.inputArguments.length>0&&(t=t.concat(e.inputArguments)),t&&t.length>0||e.inputArguments&&e.inputArguments.length>0&&(t=e.inputArguments);var a=e.functionName;r&&t.length>0&&(t.forEach((function(e){a+=" "+e})),a+=";"),n=n||0;var s=o.generateUuid(),l=this._evaluateDebugCommandUsingFEval(a,t,n,r);return this._debugPromises[s]=l,this._listenToPromiseAndRemoveFromMap(s,i),l},_evaluateDebugCommandUsingFEval:function(e,t,i,n){return n?this._mvm.feval("com.mathworks.mlservices.MLExecuteServices.consoleEval",0,[e,this._EVAL_INPUT_OPTION],this._runOptions):this._mvm.feval(e,i,t,this._runOptions)},_evaluateJSCommand:function(e,t,i,n){var r=o.generateUuid();return this._debugPromises[r]=t.apply(e,i),this._listenToPromiseAndRemoveFromMap(r,n),this._debugPromises[r]},_listenToPromiseAndRemoveFromMap:function(e,t){this._debugPromises[e].then(function(t){this._removePromiseFromMap(e)}.bind(this),function(n){i.warn("FEval failed for "+t+". Error message: "+n),this._removePromiseFromMap(e)}.bind(this))},_removePromiseFromMap:function(e){delete this._debugPromises[e]},destroy:function(){for(var e in this.inherited(arguments),this._debugPromises)this._debugPromises.hasOwnProperty(e)&&this._debugPromises[e].cancel();this._debugPromises={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{DEBUGGER_STATE_CHANGED:"/editor/debugger/debugger-state-change",DEBUGGER_STATE_REQUEST:"/editor/debugger/debugger-state-request",DBSTOP_EVENT:"/editor/debugger/dbstop",DBCONT_EVENT:"/editor/debugger/dbcont",STACK_CHANGE:"/editor/debugger/stack-change",STACK_REQUEST:"/editor/debugger/stack-request",DEBUG_STOP_CONDITIONS_EVENT:"/editor/debugger/debug-stop-if",DEBUG_CONTINUE:"/editor/debugger/debug-continue",DEBUG_PAUSE:"/editor/debugger/debug-pause",DEBUG_STEP:"/editor/debugger/debug-step",DEBUG_STEP_IN:"/editor/debugger/debug-step-in",DEBUG_STEP_OUT:"/editor/debugger/debug-step-out",DEBUG_EXIT:"/editor/debugger/debug-exit",STACK_UPDOWN:"/editor/debugger/stack-up-down",DB_STOP_IF_ERROR:"/editor/debugger/debug-stop-if-error",DB_STOP_IF_WARNING:"/editor/debugger/debug-stop-if-warning",DB_STOP_IF_NAN_INF:"/editor/debugger/debug-stop-if-nan-inf",DB_STOP_IF_STATUS:"/editor/debugger/debug-stop-if-status-request"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(209),i(229),i(208),i(909),i(1346),i(471)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t([e,a],{_EVAL_INPUT_OPTION:1024,constructor:function(e,t){this._activeDebuggerModel=e,this._actionsDelegatorEvaluator=t},debugContinue:function(){this._actionsDelegatorEvaluator.validateAndEvaluateCommand(this._activeDebuggerModel.getActiveDebugger(),"continue",[],0,!0)},debugStep:function(){this._actionsDelegatorEvaluator.validateAndEvaluateCommand(this._activeDebuggerModel.getActiveDebugger(),"step",[],0,!0)},debugStepIn:function(){this._actionsDelegatorEvaluator.validateAndEvaluateCommand(this._activeDebuggerModel.getActiveDebugger(),"stepin",[],0,!0)},debugStepOut:function(){this._actionsDelegatorEvaluator.validateAndEvaluateCommand(this._activeDebuggerModel.getActiveDebugger(),"stepout",[],0,!0)},debugExit:function(){this._actionsDelegatorEvaluator.validateAndEvaluateCommand(this._activeDebuggerModel.getActiveDebugger(),"exit",[],0,!0)},debugPause:function(){this._actionsDelegatorEvaluator.validateAndEvaluateCommand(this._activeDebuggerModel.getActiveDebugger(),"pause",[],0,!0)},dbUpDown:function(e){e<0?this._actionsDelegatorEvaluator.validateAndEvaluateCommand(this._activeDebuggerModel.getActiveDebugger(),"down",[-e],0,!0):e>0&&this._actionsDelegatorEvaluator.validateAndEvaluateCommand(this._activeDebuggerModel.getActiveDebugger(),"up",[e],0,!0)},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(229),i(471),i(3510)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i],{constructor:function(){this._regFwkService=r.getRegFwkService(),this._registrationsMap={},this._uuids={}},init:function(){this._regFwkService.start(),this._regFwkService.on(this._regFwkService.events.ENABLED,function(e){this._processEventData(e,"enabled")}.bind(this)),this._regFwkService.on(this._regFwkService.events.DISABLED,function(e){this._processEventData(e,"disabled")}.bind(this)),this._regFwkService.on(this._regFwkService.events.REGISTERED,function(e){this._processEventData(e,"registered")}.bind(this)),this._regFwkService.on(this._regFwkService.events.UNREGISTERED,function(e){this._processEventData(e,"unregistered")}.bind(this))},_processEventData:function(e,t){e.resourcesFilesData.forEach(function(e){if(e.resourceMetadatas&&Array.isArray(e.resourceMetadatas))e.resourceMetadatas.forEach(function(n){let o="extensions.json"===n.fileName?n.resourceName:n.fileName;i=this._registrationsMap[o],this._notify(i,t,{rootFolder:e.rootFolder,resourceState:e.resourceState,fileName:n.fileName,resourceName:n.resourceName,resourcesFile:n.resourcesFile,resourcesFileContents:n.resourcesFileContents})}.bind(this));else{let n="extensions.json"===e.fileName?e.resourceName:e.fileName;var i=this._registrationsMap[n];this._notify(i,t,e)}}.bind(this))},_notify:function(e,t,i){Array.isArray(e)&&e.forEach((function(e){try{e.registrationPoint[t](i)}catch(e){}}))},getFolderState:function(e){return this._regFwkService.getFolderState(e)},registerResources:function(e){return this._regFwkService.registerResources(e)},enableResources:function(e){return this._regFwkService.enableResources(e)},disableResources:function(e){return this._regFwkService.disableResources(e)},unregisterResources:function(e){return this._regFwkService.unregisterResources(e)},getResourceList:function(e,t){var i=t||"enabled";return Array.isArray(e)||(e=[e]),this._regFwkService.getInitialResourceList(e,i)},subscribe:function(e,t,i){var n=i||"enabled";Array.isArray(t)||(t=[t]),t=t.map(e=>(e.resourceType||(e.resourceType=o.NONE),e));var r=this._regFwkService.getInitialResourceList(t,n),a=this._addRegistration(e,t);return a.then=r.then.bind(r),a},_addRegistration:function(e,t){var i=[],r=[],a=function(e){for(var t=n.generateUuid();void 0!==e[t];)t=n.generateUuid();return t}(this._uuids);return t.forEach(function(t){var n=t.resourceType===o.NONE?t.resourceName:t.resourceName+"."+t.resourceType;r.push(n),void 0===this._registrationsMap[n]&&(this._registrationsMap[n]=[]);var s={resourceSpecification:t,registrationPoint:e,uuid:a};this._registrationsMap[n].push(s),this._uuids[s.uuid]=s.uuid,i.push(s)}.bind(this)),{id:a,remove:function(){i.forEach(function(e,t){var i=r[t],n=this._registrationsMap[i].findIndex((function(t){return t.uuid===e.uuid}));this._registrationsMap[i].splice(n,1),delete this._uuids[e.uuid]}.bind(this))}.bind(this)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(219),i(232),i(3511)],o=i.dj.d(n,(function(e,t,i){return{getRegFwkService:function(){return new i({reqResService:t,pubSubService:e})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(244),i(212),i(222),i(209),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){function a(e){for(var t=r.generateUuid();void 0!==e[t];)t=r.generateUuid();return t}return e([n],{constructor:function(e){var t=void 0!==(e=e||{}).channelBand?"/"+e.channelBand:"";this._baseChannel="/regfwk"+t,this._windowChannelUuid=r.generateUuid(),this._reqResService=e.reqResService,this._pubSubService=e.pubSubService,this._subscriptions=[],this._requestsMap={},this._requestsQueue=[],this._serviceStarted=!1,this._startedDeferred=void 0},start:function(){if(!this._isClientStarted()){this._startedDeferred=new i;var e=this._pubSubService.subscribe(this._baseChannel+"/apis/started",this._handleStarted,this);this._subscriptions.push(e);var n=this._pubSubService.subscribe(this._baseChannel+"/apis/resourceList/"+this._windowChannelUuid,this._handleRegFwkApiResponse,this);this._subscriptions.push(n);var o=this._pubSubService.subscribe(this._baseChannel+"/apis/folderState/"+this._windowChannelUuid,this._handleRegFwkApiResponse,this);this._subscriptions.push(o);var r=this._pubSubService.subscribe(this._baseChannel+"/apis/registerResources/"+this._windowChannelUuid,this._handleRegFwkApiResponse,this);this._subscriptions.push(r);var a=this._pubSubService.subscribe(this._baseChannel+"/apis/enableResources/"+this._windowChannelUuid,this._handleRegFwkApiResponse,this);this._subscriptions.push(a);var s=this._pubSubService.subscribe(this._baseChannel+"/apis/disableResources/"+this._windowChannelUuid,this._handleRegFwkApiResponse,this);this._subscriptions.push(s);var l=this._pubSubService.subscribe(this._baseChannel+"/apis/unregisterResources/"+this._windowChannelUuid,this._handleRegFwkApiResponse,this);this._subscriptions.push(l);var c=this._pubSubService.subscribe(this._baseChannel+"/notifications/enabled",function(e){this.emit(this.events.ENABLED,e.data)}.bind(this));this._subscriptions.push(c);var d=this._pubSubService.subscribe(this._baseChannel+"/notifications/disabled",function(e){this.emit(this.events.DISABLED,e.data)}.bind(this));this._subscriptions.push(d);var u=this._pubSubService.subscribe(this._baseChannel+"/notifications/registered",function(e){this.emit(this.events.REGISTERED,e.data)}.bind(this));this._subscriptions.push(u);var h=this._pubSubService.subscribe(this._baseChannel+"/notifications/unregistered",function(e){this.emit(this.events.UNREGISTERED,e.data)}.bind(this));this._subscriptions.push(h),t(this._subscriptions).then(function(){this._pubSubService.publish(this._baseChannel+"/apis/start",{})}.bind(this))}return this._startedDeferred.promise},_handleRegFwkApiResponse:function(e){this._requestsMap[e.data.uuid]&&(this._requestsMap[e.data.uuid].resolve(e.data),this._requestsMap[e.data.uuid]=void 0)},hasStarted:function(){return this._serviceStarted},_isClientStarted:function(){return void 0!==this._startedDeferred},_assertClientStarted:function(){if(!this._isClientStarted())throw new Error("Service is not started")},_handleStarted:function(e){this._serviceStarted=!0,this.emit(this.events.STARTED),this._processQueuedRequests(),this._startedDeferred.resolve(!0)},_queueRequest:function(e){var t={asyncCallback:e,deferred:new i};return this._requestsQueue.push(t),t.deferred.promise},_processQueuedRequests:function(){function e(e){e.asyncCallback().then((function(t){e.deferred.resolve(t)}),(function(t){e.deferred.reject(t)}))}for(;this._requestsQueue.length>0;){e(this._requestsQueue.shift())}},_createRequestHandle:function(){var e=new i,t={uuid:a(this._requestsMap),requestTime:new Date,deferred:e,then:e.promise.then,resolve:e.resolve};return this._requestsMap[t.uuid]=t,t},getFolderState:function(e){var t=this._createRequestHandle();return this._pubSubService.publish(this._baseChannel+"/apis/getFolderState",{uuid:t.uuid,clientId:this._windowChannelUuid,folderPath:e}),t},registerResources:function(e){"string"==typeof e&&(e=[e]);var t=this._createRequestHandle();return this._pubSubService.publish(this._baseChannel+"/apis/registerResources",{uuid:t.uuid,clientId:this._windowChannelUuid,folderPaths:e}),t},enableResources:function(e){"string"==typeof e&&(e=[e]);var t=this._createRequestHandle();return this._pubSubService.publish(this._baseChannel+"/apis/enableResources",{uuid:t.uuid,clientId:this._windowChannelUuid,folderPaths:e}),t},disableResources:function(e){"string"==typeof e&&(e=[e]);var t=this._createRequestHandle();return this._pubSubService.publish(this._baseChannel+"/apis/disableResources",{uuid:t.uuid,clientId:this._windowChannelUuid,folderPaths:e}),t},unregisterResources:function(e){"string"==typeof e&&(e=[e]);var t=this._createRequestHandle();return this._pubSubService.publish(this._baseChannel+"/apis/unregisterResources",{uuid:t.uuid,clientId:this._windowChannelUuid,folderPaths:e}),t},getInitialResourceList:function(e,t){var i=this._createRequestHandle();return this._pubSubService.publish(this._baseChannel+"/apis/getResourceList",{uuid:i.uuid,clientId:this._windowChannelUuid,resourceSpecifications:e,resourceStateFilter:t}),i},stop:function(){this.hasStarted()&&(this._startedDeferred=void 0,this._subscriptions.forEach((function(e){e.cancel()})),this._serviceStarted=!1,this._subscriptions=[])},events:{STARTED:"started",REGISTERED:"registered",ENABLED:"enabled",DISABLED:"disabled",UNREGISTERED:"unregistered"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(219)],o=i.dj.d(n,(function(e,t,i){return t([e],{_UPDATE_CHANNEL:"/debugger/file_translation/update",_REQUEST_CHANNEL:"/debugger/file_translation/request",constructor:function(e,t){this._messageService=e||i,this._debugServices=t,this._isInitialized=!1,this._translatedFiles={},this._reverseTranslatedFiles={},this._messageService.subscribe(this._UPDATE_CHANNEL,"_handleModelUpdated",this),this._messageService.publish(this._REQUEST_CHANNEL,{data:"request"})},_handleModelUpdated:function(e){this._translatedFiles={},Array.isArray(e.data)?e.data.forEach((function(e){this._translatedFiles[e.fromFile]=e.toFile}),this):this._translatedFiles[e.data.fromFile]=e.data.toFile,this._buildReverseMap(),this._handleInitializationRaceCondition()},_buildReverseMap:function(){this._reverseTranslatedFiles={},Object.keys(this._translatedFiles).forEach(e=>{this._reverseTranslatedFiles[this._translatedFiles[e]]=e})},_handleInitializationRaceCondition:function(){!this._isInitialized&&0!==Object.keys(this._translatedFiles).length&&this._debugServices.isDebugging&&(this._debugServices.requestStackState(),this._isInitialized=!0)},translateFile:function(e){return this._translatedFiles.hasOwnProperty(e)?this._translatedFiles[e]:e},translateWorkspace:function(e,t){if(this._translatedFiles.hasOwnProperty(e)&&this._getBaseName(e)===t){var i=this._translatedFiles[e];return this._getBaseName(i)}return t},translateFileReverse:function(e){return this._reverseTranslatedFiles.hasOwnProperty(e)?this._reverseTranslatedFiles[e]:e},_getBaseName:function(e){return e.split(/[\\/]/).pop().split(/\./)[0]},destroy:function(){this.inherited(arguments),this._messageService.unsubscribe(this._UPDATE_CHANNEL,"_handleModelUpdated",this),this._translatedFiles={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(3514),i(1347)],o=i.dj.d(n,(function(e,t,i,n){return e([n,i],{_EVENTS:{DEBUG_LOOP_EVENT:"cmddistributor::DebugLoopEvent"},_NEST_LEVEL:{NONE:0,NESTED:2,SESSION_TOP:3},constructor:function(e,i,n){this._fileTranslator=i,this._debugRegistrationFramework=n,this._updateDebuggerChannelSubscriptions(),this.own(t.after(this._debugRegistrationFramework,"onDebuggersUpdated",this._updateDebuggerChannelSubscriptions.bind(this)))},_updateDebuggerChannelSubscriptions:function(){this._clearDisposables(),this._subscribe(this._EVENTS.DEBUG_LOOP_EVENT,this._mvmId,"_handleDebugLoopEvent"),this._debugRegistrationFramework.getDebugFlowChannels().forEach(function(e){this._subscribe(e.ENTER,this._mvmId,"_handleEnterEvent"),this._subscribe(e.CONTINUE,this._mvmId,"_handleContinueEvent"),this._subscribe(e.EXIT,this._mvmId,"_handleExitEvent"),e.ENTER_WITH_WARNING&&this._subscribe(e.ENTER_WITH_WARNING,this._mvmId,"_handleEnterEvent"),e.WORKSPACE_CHANGE&&this._subscribe(e.WORKSPACE_CHANGE,this._mvmId,"_handleWorkspaceChange")}.bind(this))},_handleContinueEvent:function(e){this.onDBCont()},_handleEnterEvent:function(e){var t=e.data.Filespec,i=e.data.LineNumber;if(e.data.IsAtEndOfFunction&&(i=-i),this._isSessionLevelEvent(e))this.onDBEnter(e.data.WhichLoop);else{var n=e.data.Stack||this._buildSingleFrameStack(t,i),o=this._fileTranslator.translateFile(t);this.onDBStop(o,i,n)}},_handleExitEvent:function(e){this._isSessionLevelEvent(e)&&this.onDBExit(e.data.IsDebuggerActive)},_handleWorkspaceChange:function(e){this.onDBWorkspaceChanged()},_isSessionLevelEvent:function(e){return e.data.DebugNestLevel===this._NEST_LEVEL.SESSION_TOP},_handleDebugLoopEvent:function(e){this.onDebugLoopEvent(e.data.state,e.data.WhichLoop)},onDebugLoopEvent:function(e,t){},_buildSingleFrameStack:function(e,t){return[{Function:"",File:e,Line:t}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{onDBEnter:function(e){},onDBCont:function(){},onDBExit:function(e){},onDBStop:function(e,t,i){},onDBWorkspaceChanged:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(208),i(1348),i(1849),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t([e,r],{_DBSTACK_CMD:"dbstack",_DBSTACK_ARGS:["-completenames"],_DBSTACK_NUM_OUTPUTS:2,_BASE_WORKSPACE_TITLE:"Base",_API_USAGE_AFTER_DESTRUCTION_MESSAGE:"Attempting to request stack after debug services have been destroyed",constructor:function(e,t,i){this._fileTranslator=e,this._activeDebuggerModel=t,this._actionsDelegatorEvaluator=i,this._dbstackPromise=null,this._followUpRequested=!1,this._isDestroyed=!1},requestStackState:function(){if(this._isDestroyed)a.warn(this._API_USAGE_AFTER_DESTRUCTION_MESSAGE);else if(!this._handleMultipleRequests()){var e=this._evaluateDBStack();e&&(this._dbstackPromise=e,this._dbstackPromise=this._dbstackPromise.then(function(e){this._handleDBStackResults(e)}.bind(this),function(e){this._dbstackPromise=null}.bind(this)))}},_handleDBStackResults:function(e){this._dbstackPromise=null;var t=e[0].mwdata||e[0],i=e[1];Array.isArray(t.file)||(t.file=[t.file],t.name=[t.name],t.line=[t.line]);var n=t.file.map((function(e,i){var n=this._fileTranslator.translateWorkspace(t.file[i],t.name[i]);e=this._fileTranslator.translateFile(t.file[i]);return new o(n,e,t.line[i])}),this);n.length>0&&n.push(this._createBaseFrame()),this.onStackChanged(n,i-1)},handleDBStopStack:function(e){if(this._isDestroyed)a.warn(this._API_USAGE_AFTER_DESTRUCTION_MESSAGE);else{var t=e.map((function(e){var t=this._fileTranslator.translateWorkspace(e.File,e.Function),i=this._fileTranslator.translateFile(e.File);return new o(t,i,e.Line)}),this);t.push(this._createBaseFrame()),this.onStackChanged(t,0)}},_createBaseFrame:function(){return new o(this._BASE_WORKSPACE_TITLE,null,null)},_evaluateDBStack:function(){return this._actionsDelegatorEvaluator.validateAndEvaluateCommand(this._activeDebuggerModel.getActiveDebugger(),"dbstack",[],this._DBSTACK_NUM_OUTPUTS)},_handleMultipleRequests:function(){return!!this._dbstackPromise&&(this._followUpRequested||this._createFollowUpDBStackRequest(),!0)},_createFollowUpDBStackRequest:function(){this._followUpRequested=!0,this._dbstackPromise=this._dbstackPromise.then(function(){this._followUpRequested=!1,this.requestStackState()}.bind(this),function(){this._dbstackPromise=null}.bind(this))},destroy:function(){this.inherited(arguments),this._isDestroyed=!0,this._dbstackPromise&&this._dbstackPromise.cancel(),this._dbstackPromise=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(209),i(208),i(3517)],o=i.dj.d(n,(function(e,t,i,n,o){return t([e],{constructor:function(e){this._flowEventListener=e,this._debuggerStack=[],this._currentPrompt=""},initializeDebugger:function(e,t){this.own(n.after(this._flowEventListener,"onDebugLoopEvent",this._handleDebugLoopEvent.bind(this),!0)),e&&(this._handleDBEnter(t),this._handleDBEnter(t))},_handleDebugLoopEvent:function(e,t){e===o.ENTER?this._handleDBEnter(t):e===o.EXIT&&this._handleDBExit(t)},_handleDBEnter:function(e){e!==this._currentPrompt&&(this._currentPrompt=e,this.onActiveDebuggerChanged(this._currentPrompt)),this._debuggerStack.push(e),this.onDBEnter(e)},onDBEnter:function(e){},_handleDBExit:function(e){i.assert(this._debuggerStack.length>0,"The debugger stack should have at least 1 element when onDBExit is fired"),this._debuggerStack.pop(),this.onDBExit(),0===this._debuggerStack.length?this._currentPrompt="":this._currentPrompt=this._debuggerStack[this._debuggerStack.length-1],e!==this._currentPrompt&&this.onActiveDebuggerChanged(this._currentPrompt)},onDBExit:function(){},onActiveDebuggerChanged:function(e){},getActiveDebugger:function(){return 0===this._debuggerStack.length?null:this._currentPrompt},destroy:function(){this.inherited(arguments),this._debuggerStack=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{UNKNOWN:"UNKNOWN",EXIT:"EXITED",ENTER:"ENTERED"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(212),i(209),i(909),i(471),i(3519)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t([e],{_RTC_DEBUGGER_REGISTRATION_FILE_NAME:"debuggerRegistration",_USE_ASYNC_JS_LOADING:!1,constructor:function(e){this._registrationFramework=e||o,this._allDebuggers=[],this._jsImplementationsMap={},this._debuggersOnPathDeferred=new i;var t={enabled:this._debuggerEnabledCallback.bind(this),disabled:this._debuggerDisabledCallback.bind(this)};this._regHandle=this._registrationFramework.setup(this._RTC_DEBUGGER_REGISTRATION_FILE_NAME,r.JSON,this._debuggersOnPathCallback.bind(this),t)},onDebuggersUpdated:function(){},getActions:function(e){var t={};if(""===e)return t;var i=this._allDebuggers.filter(function(t){return-1!==t.resourcesFileContents.applicablePrompts.indexOf(e)}.bind(this));return i.length>1&&n.error("There should be at most 1 debugger for the current prompt"),1===i.length&&(t=i[0].resourcesFileContents.mCommands),t},getJSActions:function(e){return this._jsImplementationsMap[e]||{}},getDebugPrompts:function(){return this._debuggersOnPathDeferred.then(function(){return this._allDebuggers.reduce((function(e,t){return e.concat(t.resourcesFileContents.applicablePrompts)}),[])}.bind(this))},getDebugFlowChannels:function(){return this._getChannels("debugFlowEventChannels")},getBreakpointEventChannels:function(){return this._getChannels("breakpointEventChannels")},_getChannels:function(e){return this._allDebuggers.reduce(function(t,i){let o=i.resourcesFileContents[e];return o||n.error("Field "+e+" not defined for debugger with prompts ["+i.resourcesFileContents.applicablePrompts.join(",")+"]"),o.APPLICABLE_PROMPTS=i.resourcesFileContents.applicablePrompts,t.concat(o)}.bind(this),[])},_debuggerEnabledCallback:function(e){this._validateDebuggerResourceNotRegisteredPreviously(e,"New resource file was added to path but it had been previously registered and not removed.")&&(this._addDebugger(e),this._validateCurrentDebuggerEventChannels(),this.onDebuggersUpdated())},_debuggerDisabledCallback:function(e){this._allDebuggers=this._allDebuggers.filter((function(t){return e.resourcesFile!==t.resourcesFile}));var t=null;e.resourcesFileContents.applicablePrompts.forEach(e=>{t=this._jsImplementationsMap[e],delete this._jsImplementationsMap[e]}),t&&t.destroy(),this.onDebuggersUpdated()},_debuggersOnPathCallback:function(e){e.resourcesFilesData.forEach(function(e){this._validateDebuggerResourceNotRegisteredPreviously(e,"Resource in initial list of files has been previously registered and not removed.")&&this._addDebugger(e)}.bind(this)),this._validateCurrentDebuggerEventChannels(),this._debuggersOnPathDeferred.resolve(),this.onDebuggersUpdated()},_addDebugger:function(e){if(this._allDebuggers.push(e),!e.resourcesFileContents.jsCommandsPath)return;let t=new a;e.resourcesFileContents.applicablePrompts.forEach(e=>{this._jsImplementationsMap[e]=t})},_validateCurrentDebuggerEventChannels:function(){this._allDebuggers.forEach((function(e){var t=e.resourcesFileContents.debugFlowEventChannels;n.assert(t.ENTER,"ENTER debug event channel missing in "+e.resourcesFile),n.assert(t.CONTINUE,"CONTINUE debug event channel missing in "+e.resourcesFile),n.assert(t.EXIT,"EXIT debug event channel missing in "+e.resourcesFile);var i=e.resourcesFileContents.breakpointEventChannels;n.assert(i.BREAKPOINT_ADDED,"BREAKPOINT_ADDED debug event channel missing in "+e.resourcesFile),n.assert(i.BREAKPOINT_REMOVED,"BREAKPOINT_REMOVED debug event channel missing in "+e.resourcesFile),n.assert(i.ALL_BREAKPOINTS_CLEARED,"ALL_BREAKPOINTS_CLEARED debug event channel missing in "+e.resourcesFile)}))},_validateDebuggerResourceNotRegisteredPreviously:function(e,t){var i=this._allDebuggers.every((function(t){return t.resourcesFile!==e.resourcesFile}));return i||n.error("Resource file: "+e.resourcesFile+" - "+t),i},destroy:function(){this.inherited(arguments),this._regHandle.remove(),this._regHandle=null,this._allDebuggers=[],Object.keys(this._jsImplementationsMap).forEach(e=>{this._jsImplementationsMap[e].destroy()}),this._jsImplementationsMap={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(212),i(219),i(1850),i(1349)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(e,{constructor:function(){this._messageService=r.getInstance()},setBreakpoint:function(e){return e.zeroBasedLineNumber=e.lineNumber-1,this._messageService.publish(o.BREAKPOINT_ADD_REQUEST,e),this._createResolvedPromise()},clearBreakpoint:function(e){return e.zeroBasedLineNumber=e.lineNumber-1,this._messageService.publish(o.BREAKPOINT_REMOVE_REQUEST,e),this._createResolvedPromise()},clearAllBreakpoints:function(){return this._messageService.publish(o.CLEAR_ALL_BREAKPOINTS_REQUEST),this._createResolvedPromise()},_createResolvedPromise:function(){let e=new i;return e.resolve(),e},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3521)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["debug.breakpointmodel","debug.breakpointdirtyservice"]}},createInstance:function(e,t){return new n(e,t)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(210),i(800),i(1851)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,t){},buildTooltipString:function(e){if(this._breakpointDataModel.wasThereAnErrorSyncingBreakpoints())return n.syntaxErrorTooltip;var t="";return this._showOutOfSyncBreakpoints()&&(t+="<b>"+n.dirtyFileTooltip+"</b><br>"),t+=e.toString()},allowPartialBreakpoints:function(){return!0},applyStyle:function(e,t,n){this.inherited(arguments),i.add(e,"traditional"),this._addTraditionalTestId(e)},_addTraditionalTestId:function(e){var t=e.getAttribute("data-testid");t+="_traditional",e.setAttribute("data-testId",t)},_shouldShowPartialBreakpoint:function(e){return e},_showConditionalBreakpoint:function(e){return e&&e.hasExpression()},_applyDisabledStyle:function(e,i){t.create("div",{class:"disabledX"},e,"first")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(211),i(213),i(236),i(203),i(800),i(1089),i(1851)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return o(s,{_MARGIN_BREAKPOINT_HEIGHT:15,_INLINE_BREAKPOINT_HEIGHT:14,constructor:function(e,t,i,n,o){this._view=i,this._lineNumberService=n,this._internalDocument=o},buildTooltipString:function(e){if(this._breakpointDataModel.wasThereAnErrorSyncingBreakpoints())return r.syntaxErrorTooltip;var t="";return this._showOutOfSyncBreakpoints()&&(t+="<b>"+r.dirtyFileTooltip+"</b><br>"),e.isEnabled?e.isAnonymous()?e.hasExpression()?t+=n.substitute(r.liveEditorTooltipConditionAnonymous,[e.zeroBasedLineNumber+1,e.expression,e.anonymousIndex]):t+=n.substitute(r.liveEditorTooltipEnabledAnonymous,[e.zeroBasedLineNumber+1,e.anonymousIndex]):e.hasExpression()?t+=n.substitute(r.liveEditorTooltipCondition,[e.zeroBasedLineNumber+1,e.expression]):t+=n.substitute(r.liveEditorTooltipEnabled,[e.zeroBasedLineNumber+1]):e.isAnonymous()?t+=n.substitute(r.liveEditorTooltipDisabledAnonymous,[e.zeroBasedLineNumber+1,e.anonymousIndex]):t+=n.substitute(r.liveEditorTooltipDisabled,[e.zeroBasedLineNumber+1]),t},allowPartialBreakpoints:function(){return!1},_shouldShowPartialBreakpoint:function(e){return!1},_showConditionalBreakpoint:function(e){return e&&e.hasExpression()&&e.isEnabled},_applyDisabledStyle:function(t,i){e.add(t,i)},adjustAlignment:function(e,t,i){if(i){var n=this._lineNumberService.getLineNumberFromCodeLineNumber(t+1);a.setTopForCenteredAlignment(e,this._view,n,this._INLINE_BREAKPOINT_HEIGHT)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3524),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{createInstance:["debug.breakpointmodel","rtc.actionservice","rtc.backingstore","rtc.focusservice","rtc.linenumberservice","debug.breakpoints.conditionalbreakpointdialogmanager","debug.runtolineservice"]}},createInstance:function(e,i,n,o,r,a,s){return new t(e,i,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(253),i(3525),i(522),i(294),i(1843)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t(s,{constructor:function(e,t,r,s,l,c,d){this._breakpointModel=e,this._actionService=t,this._focusService=s,this._lineNumberService=l,this._conditionalBreakpointDialogManager=c,this._runToLineService=d,this._breakpoint=null,this._currentRunToLineAction=null,this._dialogInstance=null,this._gutter=null,this._inlineBreakpointViewInfos=[],this._actions=[{id:o.TOGGLE_BREAKPOINT_MENU_ACTION,enabled:!0,text:n.toggleBreakpointLabel,description:n.setBreakpointDescription,callback:i.hitch(this,"_toggleBreakpoint")},{id:o.TOGGLE_ENABLE_BREAKPOINT_MENU_ACTION,enabled:!0,text:n.enableBreakpointText,description:n.enableBreakpointDescription,callback:i.hitch(this,"_toggleEnableBreakpoint")},{id:o.TOGGLE_CONDITIONAL_BREAKPOINT_MENU_ACTION,enabled:!0,text:n.setConditionalBreakpointText,description:n.setConditionalBreakpointDescription,callback:i.hitch(this,"_createConditionalBreakpointDialog")},{id:o.CLEAR_ALL_BREAKPOINTS_IN_FILE_MENU_ACTION,enabled:!0,text:n.clearAllBreakpointsInFileText,description:n.clearAllBreakpointsInFileDescription,callback:i.hitch(this,"_clearAllBreakpointsInFile")},{id:o.DISABLE_ALL_BREAKPOINTS_MENU_ACTION,enabled:!0,text:n.disableAllBreakpointsInFileText,description:n.disableAllBreakpointsInFileText,callback:i.hitch(this,"_disableAllBreakpointsInFile")},{id:o.ENABLE_ALL_BREAKPOINTS_MENU_ACTION,enabled:!0,text:n.enableAllBreakpointsInFileText,description:n.enableAllBreakpointsInFileDescription,callback:i.hitch(this,"_enableAllBreakpointsInFile")},{id:o.CLEAR_ALL_BREAKPOINTS_MENU_ACTION,enabled:!0,text:n.clearAllBreakpointsLabel,description:n.clearAllBreakpointsDescription,callback:i.hitch(this,"_clearAll")},{id:o.RUN_TO_LINE_MENU_ACTION,enabled:!1,text:n.runToLineLabel,description:n.runToLineDescription,callback:i.hitch(this,"_runToLineCallback")}],this._actionService.loadActions(this._actions),this._addActionsToContextMenu(),this._hasBreakpointGroupList=[a.TOGGLE,a.TOGGLE_ALL_STATUS,a.CLEAR_ALL,a.RUN_TO_LINE],this._noBreakpointGroupList=[a.SET,a.TOGGLE_ALL_STATUS,a.CLEAR_ALL,a.RUN_TO_LINE],this._dialogInstance=null},_addActionsToContextMenu:function(){this.addActionsToMap(a.TOGGLE,[o.TOGGLE_CONDITIONAL_BREAKPOINT_MENU_ACTION,o.TOGGLE_ENABLE_BREAKPOINT_MENU_ACTION,o.TOGGLE_BREAKPOINT_MENU_ACTION]),this.addActionsToMap(a.SET,[o.TOGGLE_BREAKPOINT_MENU_ACTION,o.TOGGLE_ENABLE_BREAKPOINT_MENU_ACTION,o.TOGGLE_CONDITIONAL_BREAKPOINT_MENU_ACTION]),this.addActionsToMap(a.TOGGLE_ALL_STATUS,[o.DISABLE_ALL_BREAKPOINTS_MENU_ACTION,o.ENABLE_ALL_BREAKPOINTS_MENU_ACTION]),this.addActionsToMap(a.CLEAR_ALL,[o.CLEAR_ALL_BREAKPOINTS_MENU_ACTION,o.CLEAR_ALL_BREAKPOINTS_IN_FILE_MENU_ACTION]),this.addActionsToMap(a.RUN_TO_LINE,[o.RUN_TO_LINE_MENU_ACTION])},enableToggleBreakpointActions:function(){this._actionService.updateAction(o.TOGGLE_BREAKPOINT_MENU_ACTION,{enabled:!0}),this._actionService.updateAction(o.TOGGLE_CONDITIONAL_BREAKPOINT_MENU_ACTION,{enabled:!0})},disableToggleBreakpointActions:function(){this._actionService.updateAction(o.TOGGLE_BREAKPOINT_MENU_ACTION,{enabled:!1}),this._actionService.updateAction(o.TOGGLE_CONDITIONAL_BREAKPOINT_MENU_ACTION,{enabled:!1})},contributeToContextMenu:function(e){var t=this._getClickedNode(e);this._updateBreakpointFromClick(t);var i={};t&&this._getGroupsToContribute().forEach((function(e){i[e]=this._getMenuItemsToContribute(e)}),this);return i},_updateBreakpointFromClick:function(e){e===this._gutter||e&&this._inlineBreakpointViewInfos.some((function(t){return t.domNode===e&&(this._breakpoint=t.breakpointInfo,this._updateActionsBasedOnBreakpoint(),!0)}),this)},_getClickedNode:function(e){if(this._gutter&&this._gutter.contains(e))return this._gutter;for(var t=0;t<this._inlineBreakpointViewInfos.length;t++){var i=this._inlineBreakpointViewInfos[t].domNode;if(i.contains(e))return i}return null},_getGroupsToContribute:function(){return this._breakpoint&&this._breakpointModel.hasBreakpoint(this._breakpoint)?this._hasBreakpointGroupList:this._noBreakpointGroupList},_getMenuItemsToContribute:function(e){var t=[];return this.groupMenuItemsMap[e].forEach((function(e){this._filterMenuItemFromContextMenu(e)||t.push(e)}),this),t},_filterMenuItemFromContextMenu:function(e){return e.actionId===o.TOGGLE_BREAKPOINT_MENU_ACTION&&!this._breakpoint||(!(e.actionId!==o.TOGGLE_ENABLE_BREAKPOINT_MENU_ACTION||this._breakpoint&&this._breakpointModel.hasBreakpoint(this._breakpoint))||(e.actionId===o.TOGGLE_CONDITIONAL_BREAKPOINT_MENU_ACTION&&!this._breakpoint||(e.actionId===o.ENABLE_ALL_BREAKPOINTS_MENU_ACTION&&!this._breakpointModel.hasDisabledBreakpointsInFile()||(e.actionId===o.DISABLE_ALL_BREAKPOINTS_MENU_ACTION&&!this._breakpointModel.hasEnabledBreakpointsInFile()||(e.actionId===o.CLEAR_ALL_BREAKPOINTS_IN_FILE_MENU_ACTION&&!this._breakpointModel.hasBreakpointsInFile()||!(e.actionId!==o.RUN_TO_LINE_MENU_ACTION||this._breakpoint&&this._actionService.getAction(e.actionId).enabled))))))},_updateActionsBasedOnBreakpoint:function(){this._breakpointModel.hasBreakpoint(this._breakpoint)?(this._actionService.updateAction(o.TOGGLE_BREAKPOINT_MENU_ACTION,{text:n.clearBreakpointText,description:n.clearBreakpointDescription}),this._actionService.updateAction(o.TOGGLE_CONDITIONAL_BREAKPOINT_MENU_ACTION,{text:n.setModifyConditionalBreakpointText,description:n.setModifyConditionalBreakpointDescription}),this._breakpointModel.hasEnabledBreakpoint(this._breakpoint)?this._actionService.updateAction(o.TOGGLE_ENABLE_BREAKPOINT_MENU_ACTION,{text:n.disableBreakpointText,description:n.disableBreakpointDescription}):this._actionService.updateAction(o.TOGGLE_ENABLE_BREAKPOINT_MENU_ACTION,{text:n.enableBreakpointText,description:n.enableBreakpointDescription})):(this._actionService.updateAction(o.TOGGLE_CONDITIONAL_BREAKPOINT_MENU_ACTION,{text:n.setConditionalBreakpointText,description:n.setConditionalBreakpointDescription}),this._actionService.updateAction(o.TOGGLE_BREAKPOINT_MENU_ACTION,{text:n.setBreakpointText,description:n.setBreakpointDescription})),this._updateRunToLineAction()},_updateRunToLineAction:function(){this._runToLineService.getPossibleAction(this._breakpoint.zeroBasedLineNumber+1).then(i.hitch(this,(function(e){this._currentRunToLineAction=e,e?this._actionService.updateAction(o.RUN_TO_LINE_MENU_ACTION,{enabled:!0,text:e.text,description:e.description}):this._disableRunToLine()})),i.hitch(this,"_disableRunToLine"))},_disableRunToLine:function(){this._actionService.updateAction(o.RUN_TO_LINE_MENU_ACTION,{enabled:!1})},_runToLineCallback:function(){return!(!this._currentRunToLineAction||!this._breakpoint)&&(this._runToLineService.runToLine(this._breakpoint.zeroBasedLineNumber+1,this._currentRunToLineAction.id,"contextmenu"),!0)},_toggleBreakpoint:function(){return!!this._breakpoint&&(this._breakpointModel.toggleBreakpoint(this._breakpoint),this._clearCachedBreakpoint(),!0)},_toggleEnableBreakpoint:function(){return!!this._breakpoint&&(this._breakpointModel.toggleEnableState(this._breakpoint),this._clearCachedBreakpoint(),!0)},_clearAllBreakpointsInFile:function(){return this._breakpointModel.clearAllBreakpointsInFile(),this._clearCachedBreakpoint(),!0},_clearAll:function(){return this._breakpointModel.clearAllBreakpoints(),this._clearCachedBreakpoint(),!0},_enableAllBreakpointsInFile:function(){return this._breakpointModel.enableAllBreakpointsInFile(),this._clearCachedBreakpoint(),!0},_disableAllBreakpointsInFile:function(){return this._breakpointModel.disableAllBreakpointsInFile(),this._clearCachedBreakpoint(),!0},_createConditionalBreakpointDialog:function(){return!!this._breakpoint&&(this._conditionalBreakpointDialogManager.showDialog(this._breakpoint),!0)},_close:function(){this._focusService.setFocus(),this._dialogInstance&&(this._dialogInstance=null)},setGutter:function(e){this._gutter=e},addInlineBreakpointViewInfo:function(e){this._inlineBreakpointViewInfos.push(e)},removeInlineBreakpointViewInfo:function(e){this._inlineBreakpointViewInfos=this._inlineBreakpointViewInfos.filter((function(t){return e!==t}))},setMenuLine:function(e){var t=this._lineNumberService.getCodeLineNumberAtOrBeforeLineNumber(e)-1;t<0?this._clearCachedBreakpoint():(this._breakpoint=this._breakpointModel.getBreakpoint(t),this._breakpoint||(this._breakpoint=new r(t,"",!0,"")),this._updateActionsBasedOnBreakpoint())},_clearCachedBreakpoint:function(){this._breakpoint=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{TOGGLE_BREAKPOINT_MENU_ACTION:"_rtc_menu_toggle_breakpoint",TOGGLE_ENABLE_BREAKPOINT_MENU_ACTION:"_rtc_menu_toggle_enable_breakpoint",TOGGLE_CONDITIONAL_BREAKPOINT_MENU_ACTION:"_rtc_menu_toggle_conditional_breakpoint",CLEAR_ALL_BREAKPOINTS_IN_FILE_MENU_ACTION:"_rtc_menu_clear_all_breakpoints_in_file",CLEAR_ALL_BREAKPOINTS_MENU_ACTION:"_rtc_menu_clear_all_breakpoints",DISABLE_ALL_BREAKPOINTS_MENU_ACTION:"_rtc_menu_disable_all_breakpoints_in_file",ENABLE_ALL_BREAKPOINTS_MENU_ACTION:"_rtc_menu_enable_all_breakpoints_in_file",RUN_TO_LINE_MENU_ACTION:"_rtc_menu_run_to_line"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3527)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.backingstore","debug.breakpointfactory","rtc.service.documentloaded","debug.breakpoint.dataservice","debug.breakpointdirtyservice","rtc.code.executablelines","rtc.linenumberservice","rtc.document.eventcache","debug.breakpoint.livemodel","rtc.externalchangeloadnotifier"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u){return new i(e,t,n,o,r,a,s,l,c,d,u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(369),i(281),i(208),i(234),i(249),i(260),i(3528),i(522),i(717)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(c,{CLASS_NOT_ON_PATH_STATUS:"CLASS_NOT_ON_PATH",constructor:function(e,t,i,n,o,r,a,s,l,c,d){this._internalDocument=e,this._backingStore=t,this._breakpointFactory=i,this._documentLoadedService=n,this._matlabBreakpointDataService=o,this._matlabBreakpointDirtyService=r,this._executableLineService=a,this._lineNumberService=s,this._documentEventCache=l,this._breakpointLiveModel=c,this._externalChangeLoadNotifier=d,this._breakpoints=[],this._lastNumberOfLineNodes=0,this._pendingDataModelChange=!1,this._setupListeners()},enable:function(){this._setupListeners()},disable:function(){this._removeListeners(),this._clearViewBreakpoints(),this._lastNumberOfLineNodes=0},_setupListeners:function(){this._handles=[],this._handles.push(r.after(this._matlabBreakpointDataService,"breakpointsAdded",t.hitch(this,"_addBreakpointOnServerResponse"),!0),r.after(this._matlabBreakpointDataService,"breakpointsRemoved",t.hitch(this,"_removeBreakpointOnServerResponse"),!0),r.after(this._matlabBreakpointDataService,"breakpointsCleared",t.hitch(this,"_clearBreakpointsServerResponse"),!0),r.after(this._matlabBreakpointDataService,"breakpointsRefreshedForFile",t.hitch(this,"_handleBreakpointsRefreshed"),!0),r.after(this._matlabBreakpointDataService,"breakpointErrored",t.hitch(this,"_handleBreakpointErrored"),!0),r.after(this._breakpointLiveModel,"onLiveChanged",t.hitch(this,"_handleBreakpointLiveStateChange"),!0),r.after(this._externalChangeLoadNotifier,"onExternalChangeLoad",this._handleExternalChangeLoad.bind(this))),this._backingStore.onLocationUpdated&&this._handles.push(r.after(this._backingStore,"onLocationUpdated",t.hitch(this,"_handleFilePathUpdated"))),this._documentLoadedService.whenDocumentLoadedWithText(t.hitch(this,(function(){this._handles.push(r.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleDocumentChange"),!0),r.after(this._internalDocument,"onDocumentReset",t.hitch(this,"_handleDocumentReset"),!0))}))),this._handles.forEach((function(e){this.own(e)}),this)},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},_handleDocumentChange:function(e){this._filterEvents(e).length>0&&this._removeDuplicates(),this._clearBreakPointsOnEmptyLines()},_handleDocumentReset:function(){this._removeDuplicates()},_handleFilePathUpdated:function(){this._backingStore.hasLocationOnDisk()&&this._clearViewBreakpoints()},_handleExternalChangeLoad:function(){this._matlabBreakpointDataService.triggerBreakpointsRefresh()},_filterEvents:function(e){return e.filter((function(e){return!(e.type===s.READONLY_STATE_CHANGE_EVENT)}))},onLiveChanged:function(e){},onDataModelChange:function(){this._updateBreakpointStore(),this._pendingDataModelChange=!1},onBreakpointsAdded:function(e){},onBreakpointsRemoved:function(e){},getBreakpoint:function(e,t){i.assert(e>=0,"Line number must be >= 0");var n=this._indexOfBreakpointAtLine(e,t);return n>=0?this._breakpoints[n].getInfo():null},getBreakpointForInfo:function(e){i.assert(e.zeroBasedLineNumber>=0,"Line number must be >= 0");var t=this._indexOfBreakpoint(e);return t>=0?this._breakpoints[t].getInfo():null},getAllBreakpointsOnLine:function(e){return i.assert(e>=0,"Line number must be >= 0"),this._breakpoints.filter((function(t){return t.getZeroBasedLineNumber()===e})).map((function(e){return e.getInfo()}))},getFirstBreakpointOnLine:function(e){i.assert(e>=0,"Line number must be >= 0");var t=this.getAllBreakpointsOnLine(e);return 0!==t.length?(t.sort((function(e,t){return e.anonymousIndex>t.anonymousIndex})),t[0]):null},getAllBreakpoints:function(){return this._breakpoints.map((function(e){return e.getInfo()}))},toggleBreakpointAtLine:function(e){i.assert(e>=0,"Line number must be >= 0"),this.hasBreakpointAtLine(e)?this.clearBreakpointAtLine(e):this.setBreakpointAtLine(e)},toggleBreakpoint:function(e){i.assert(e.zeroBasedLineNumber>=0,"Line number must be >= 0"),this.hasBreakpoint(e)?this.clearBreakpoint(e):(e.isEnabled=!0,this.setBreakpoint(e))},setBreakpoint:function(e){i.assert(e.zeroBasedLineNumber>=0,"Line number must be >= 0"),""===e.fileName&&(e.fileName=this._getFilePathFromBackingStore()),this._setViewOrMatlabBreakpoint(e)},setBreakpointAtLine:function(e){i.assert(e>=0,"Line number must be >= 0");var t=new d(e,this._getFilePathFromBackingStore(),!0,"");this.setBreakpoint(t)},clearBreakpointAtLine:function(e){i.assert(e>=0,"Line number must be >= 0");var t=this._getMatlabBreakpointAtLine(e);t&&this._removeViewOrMatlabBreakpoint(t)},clearBreakpoint:function(e){i.assert(e.zeroBasedLineNumber>=0,"Line number must be >= 0");var t=this._getMatlabBreakpoint(e);t&&this._removeViewOrMatlabBreakpoint(t)},clearAllBreakpointsOnLine:function(e){i.assert(e>=0,"Line number must be >= 0"),this._getAllMatlabBreakpointsAtLine(e).forEach((function(e){this._removeViewOrMatlabBreakpoint(e)}),this)},clearAllBreakpointsInFile:function(){this._breakpoints.slice().forEach(this._removeViewOrMatlabBreakpoint,this)},clearAllBreakpoints:function(){this._matlabBreakpointDataService.clearAllBreakpoints()},disableAllBreakpointsInFile:function(){this._breakpoints.forEach((function(e){e.isEnabled()&&this.toggleEnableState(e.getInfo())}),this)},enableAllBreakpointsInFile:function(){this._breakpoints.forEach((function(e){e.isEnabled()||this.toggleEnableState(e.getInfo())}),this)},toggleEnableState:function(e){i.assert(e.zeroBasedLineNumber>=0,"Line number must be >= 0");var t=this._getMatlabBreakpoint(e);t?this._toggleEnableStateAndReplaceBreakpoint(t):this.toggleBreakpoint(e),this._fireOnDataModelChange()},toggleEnableStateAtLine:function(e){i.assert(e>=0,"Line number must be >= 0");var t=this._getMatlabBreakpointAtLine(e);t?this._toggleEnableStateAndReplaceBreakpoint(t):this.toggleBreakpointAtLine(e),this._fireOnDataModelChange()},hasBreakpointsInFile:function(){return 0!==this._breakpoints.length},hasBreakpointAtLine:function(e){return i.assert(e>=0,"Line number must be >= 0"),null!==this._getMatlabBreakpointAtLine(e)},hasBreakpoint:function(e){return i.assert(e.zeroBasedLineNumber>=0,"Line number must be >= 0"),null!==this._getMatlabBreakpoint(e)},hasEnabledBreakpoint:function(e){i.assert(e.zeroBasedLineNumber>=0,"Line number must be >= 0");var t=this._getMatlabBreakpoint(e);return null!==t&&t.isEnabled()},hasEnabledBreakpointAtLine:function(e){i.assert(e>=0,"Line number must be >= 0");var t=this._getMatlabBreakpointAtLine(e);return null!==t&&t.isEnabled()},hasDisabledBreakpoint:function(e){i.assert(e.zeroBasedLineNumber>=0,"Line number must be >= 0");var t=this._getMatlabBreakpointAtLine(e);return null!==t&&!t.isEnabled()},hasDisabledBreakpointAtLine:function(e){i.assert(e>=0,"Line number must be >= 0");var t=this._getMatlabBreakpointAtLine(e);return null!==t&&!t.isEnabled()},hasDisabledBreakpointsInFile:function(){return this._breakpoints.some((function(e){return!e.isEnabled()}),this)},hasEnabledBreakpointsInFile:function(){return this._breakpoints.some((function(e){return e.isEnabled()}),this)},_updateBreakpointStore:function(){this._matlabBreakpointDataService.synchronizeToServer(this.getAllBreakpoints())},_getMatlabBreakpointAtLine:function(e){var t=this._indexOfBreakpointAtLine(e);return t>=0?this._breakpoints[t]:null},_getAllMatlabBreakpointsAtLine:function(e){return this._breakpoints.filter((function(t){return t.getZeroBasedLineNumber()===e}))},_getMatlabBreakpoint:function(e){var t=this._indexOfBreakpoint(e);return t>=0?this._breakpoints[t]:null},_createBreakpoint:function(e,i,n,o,a,s){var l=this._breakpointFactory.create(e,i,n,o,a,s);return this.own(r.after(l,"onLineChanged",t.hitch(this,"_handleBreakpointLineChanged",l),!0)),l},_handleBreakpointLineChanged:function(e,t){if(this._matlabBreakpointDirtyService.breakpointPositionUpdated(),e.isValid()){var i=e.getInfo();i.zeroBasedLineNumber=t,this.onBreakpointsRemoved([i]),this.onBreakpointsAdded([e.getInfo()]),this._fireOnDataModelChange()}else this._handleInvalidBreakpointPosition(e,t)},_clearBreakPointsOnEmptyLines:function(){var e=this._lineNumberService.getNumberOfCodeLines();if(0!==this._breakpoints.length){if(this._lastNumberOfLineNodes!==e){this._lastNumberOfLineNodes=e;var t=this._documentEventCache.finalLineRangeFromEvents();if(!t)return;for(var i=t.startLine;i<=t.endLine;i++){var n=this._internalDocument.getLineNode(i);if(a.isExecutableCodeLine(n)&&""===n.getText()){var o=this._lineNumberService.getCodeLineNumberFromLineNumber(i);this.clearBreakpointAtLine(o-1)}}}}else this._lastNumberOfLineNodes=e},_removeViewOrMatlabBreakpoint:function(e){this._breakpointLiveModel.areBreakpointsLive()?this._matlabBreakpointDataService.clearBreakpoint(e.getInfo()):this._doRemoveBreakpoint(e)},_setViewOrMatlabBreakpoint:function(e){if(this._breakpointLiveModel.areBreakpointsLive())this._matlabBreakpointDataService.setBreakpoint(e);else{var t=u.translateBreakpointToExecutableLine(this._executableLineService,e);if(!t.isValid())return;var i=this._createMatlabBreakpointFromBreakpointInfo(t);this._doAddOrUpdateBreakpoint(i)}},_toggleEnableStateAndReplaceBreakpoint:function(e){var t=this._createBreakpoint(e.getZeroBasedLineNumber(),this._getFilePathFromBackingStore(),!e.isEnabled(),e.getExpression(),e.getAnonymousIndex(),e.getZeroBasedColumnNumber());this._breakpointLiveModel.areBreakpointsLive()?this._matlabBreakpointDataService.setBreakpoint(t.getInfo()):this._replaceBreakpoint(t)},_addBreakpointOnServerResponse:function(e){this._breakpointLiveModel.areBreakpointsLive()&&e.forEach((function(e){this._documentLoadedService.whenDocumentLoadedWithText(t.hitch(this,(function(){var t=this._createMatlabBreakpointFromBreakpointInfo(e);this._doAddOrUpdateBreakpoint(t)})))}),this)},_removeBreakpointOnServerResponse:function(e){this._breakpointLiveModel.areBreakpointsLive()&&e.forEach((function(e){var t=this._createMatlabBreakpointFromBreakpointInfo(e);this._doRemoveBreakpoint(t)}),this)},_createMatlabBreakpointFromBreakpointInfo:function(e){return this._createBreakpoint(e.zeroBasedLineNumber,this._getFilePathFromBackingStore(),e.isEnabled,e.expression,e.anonymousIndex,e.zeroBasedColumnNumber)},_clearBreakpointsServerResponse:function(){this._clearViewBreakpoints()},_handleBreakpointsRefreshed:function(){this._errorSyncingBreakpoints=!1,this._clearBreakpointsServerResponse(),this._matlabBreakpointDataService.triggerBreakpointsRefresh()},wasThereAnErrorSyncingBreakpoints:function(){return this._errorSyncingBreakpoints},_handleBreakpointErrored:function(e,t){"save"===t&&(this._errorSyncingBreakpoints=!0)},_handleBreakpointLiveStateChange:function(e){this._updateBreakpointStore()},_handleInvalidBreakpointPosition:function(e,t){if(this._breakpointLiveModel.areBreakpointsLive()){var i=e.getInfo();i.zeroBasedLineNumber=t,this._matlabBreakpointDataService.clearBreakpoint(i)}this._doRemoveBreakpoint(e)},_doAddOrUpdateBreakpoint:function(e){this._getMatlabBreakpoint(e.getInfo())?this._replaceBreakpoint(e):this._breakpoints.push(e),this.onBreakpointsAdded([e.getInfo()]),this._fireOnDataModelChange()},_doRemoveBreakpoint:function(e){var t=this._indexOfBreakpoint(e.getInfo());t>-1&&this._destroyBreakpointAtIndex(t),e.destroy()},_replaceBreakpoint:function(e){var t=this._indexOfBreakpoint(e.getInfo());i.assert(-1!==t,"MatlabBreakpointDataModel._replaceBreakpoint is expected to be called only when a breakpoint exists in the model.");var n=this._breakpoints[t].getInfo();this._breakpoints[t].destroy(),this._breakpoints[t]=e,this.onBreakpointsRemoved([n]),this.onBreakpointsAdded([e.getInfo()])},_removeDuplicates:function(){var e={},t=this._getLineNumbers().reverse(),i=this._getAnonymousIndices().reverse();t.forEach((function(n,o){e[n+"."+i[o]]&&this._destroyBreakpointAtIndex(t.length-o-1),e[n+"."+i[o]]=!0}),this)},_getLineNumbers:function(){return this._breakpoints.map((function(e){return e.getZeroBasedLineNumber()}))},_getAnonymousIndices:function(){return this._breakpoints.map((function(e){return e.getAnonymousIndex()}))},_destroyBreakpointAtIndex:function(e){var t=this._breakpoints[e],i=t.getInfo();t.destroy(),this._breakpoints.splice(e,1),this.onBreakpointsRemoved([i]),this._fireOnDataModelChange()},_indexOfBreakpointAtLine:function(e,t){t=t||0;var i=-1;return this._breakpoints.forEach((function(n,o){n.getAnonymousIndex()===t&&n.getZeroBasedLineNumber()===e&&(i=o)})),i},_indexOfBreakpoint:function(e){return this._indexOfBreakpointAtLine(e.zeroBasedLineNumber,e.anonymousIndex)},_getFilePathFromBackingStore:function(){return this._backingStore.getUniqueId()},_clearViewBreakpoints:function(){var e=this.getAllBreakpoints();this._breakpoints.forEach((function(e){e.destroy()})),this._breakpoints=[],this.onBreakpointsRemoved(e),this._fireOnDataModelChange()},_fireOnDataModelChange:function(){this._pendingDataModelChange||(this._pendingDataModelChange=!0,this._matlabBreakpointDataService.whenSynchronized(t.hitch(this,"onDataModelChange")))},destroy:function(){this.inherited(arguments),this._handles=[],this._clearViewBreakpoints(),this._lastNumberOfLineNodes=0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{toggleBreakpoint:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.breakpoint.BreakpointDataModel.toggleBreakpoint")},hasBreakpointAtLine:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.breakpoint.BreakpointDataModel.hasBreakpointAtLine")},getBreakpoint:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.breakpoint.BreakpointDataModel.getBreakpoint")},onDataModelChange:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3530)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.backingstore","debug.breakpoint.dataservice","rtc.service.documentloaded","rtc.externalchangeloadnotifier"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(281),i(249),i(3531)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,t,i,n,o){this._internalDocument=e,this._backingStore=t,this._breakpointDataService=i,this._documentLoadedService=n,this._externalChangeLoadNotifier=o,this._setupListeners(),this._setNotLiveIfFileDoesNotHaveLocation()},enable:function(){this._setupListeners()},disable:function(){this._removeListeners()},refreshLiveStatus:function(){i.hasFileLocation(this._backingStore)?(this.setLive(!0),this._breakpointDataService.triggerBreakpointsRefresh()):this.setLive(!1)},_setupListeners:function(){this._handles=[],this._handles.push(t.after(this._breakpointDataService,"breakpointsRefreshedForFile",this._handleBreakpointsRefreshed.bind(this),!0)),this._backingStore.onLocationUpdated&&this._handles.push(t.after(this._backingStore,"onLocationUpdated",this._handleFilePathUpdated.bind(this))),this._handles.push(t.after(this._externalChangeLoadNotifier,"onExternalChangeLoad",this._handleExternalChangeLoad.bind(this),!1,t.priority.INFRASTRUCTURE)),this._documentLoadedService.whenDocumentLoadedWithText(function(){this._handles.push(t.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChange.bind(this),!0),t.after(this._internalDocument,"onDocumentReset",this._handleDocumentReset.bind(this),!0))}.bind(this)),this._handles.forEach((function(e){this.own(e)}),this)},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},_setNotLiveIfFileDoesNotHaveLocation:function(){i.hasFileLocation(this._backingStore)||this.setLive(!1)},_handleFilePathUpdated:function(){this.refreshLiveStatus()},_handleExternalChangeLoad:function(){this.setLive(!0)},_handleDocumentChange:function(e){this._filterEvents(e).length>0&&this.setLive(!1)},_filterEvents:function(e){return e.filter((function(e){return!(e.type===n.READONLY_STATE_CHANGE_EVENT)}))},_handleDocumentReset:function(){this.setLive(!1)},_handleBreakpointsRefreshed:function(){this.setLive(!0)},destroy:function(){this.inherited(arguments),this._removeListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._breakpointsLive=!0},setLive:function(e){this._breakpointsLive!==e&&(this._breakpointsLive=e,this.onLiveChanged(this._breakpointsLive))},areBreakpointsLive:function(){return this._breakpointsLive},onLiveChanged:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3533)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.position.controller","rtc.linenumberservice","rtc.code.codechange"]}},createInstance:function(e,t,i,o){return new n(e,t,i,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(3534)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i,n){this._internalDocument=e,this._positionController=t,this._lineNumberService=i,this._codeChangeService=n},create:function(e,t,n,o,r,a){return new i(this._internalDocument,this._positionController,this._lineNumberService,this._codeChangeService,e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(207),i(522),i(3535)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(n,{constructor:function(t,n,a,s,l,c,d,u,h,p){this._breakpointInfo=new o(l,c,d,u,h,p),this._positionTracker=new r(t,n,a,s,l),this.own(e.after(this._positionTracker,"onPositionUpdated",i.hitch(this,"_handlePositionUpdated"),!0))},getInfo:function(){return i.clone(this._breakpointInfo)},hasExpression:function(){return this._breakpointInfo.hasExpression()},getExpression:function(){return this._breakpointInfo.expression},getZeroBasedLineNumber:function(){return this._breakpointInfo.zeroBasedLineNumber},getZeroBasedColumnNumber:function(){return this._breakpointInfo.zeroBasedColumnNumber},getFileName:function(){return this._breakpointInfo.fileName},isEnabled:function(){return this._breakpointInfo.isEnabled},isAnonymous:function(){return this._breakpointInfo.isAnonymous()},getAnonymousIndex:function(){return this._breakpointInfo.anonymousIndex},toString:function(){return this._breakpointInfo.toString()},isValid:function(){return this._breakpointInfo.isValid()},onLineChanged:function(e){},_handlePositionUpdated:function(e){var t=this._breakpointInfo.zeroBasedLineNumber;t!==e&&(this._breakpointInfo.zeroBasedLineNumber=e,this.onLineChanged(t))},destroy:function(){this.inherited(arguments),this._positionTracker.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(207),i(234)],o=i.dj.d(n,(function(e,t,i,n,o){return t(n,{constructor:function(e,t,i,n,o){this._internalDocument=e,this._positionController=t,this._lineNumberService=i,this._codeChangeService=n,this._trackedLinePosition=null,this._trackLine(o)},onPositionUpdated:function(e){},_trackLine:function(t){var n=o.getCodeLineNodes(this._internalDocument);if(!(t>=n.length)){var r=n[t],a=this._positionController.createLinePosition(r,!1);this.own(e.after(a,"onChange",i.hitch(this,"_handlePositionMoved"))),this.own(e.after(this._codeChangeService,"onNumberOfCodeLinesChanged",i.hitch(this,"_handleNumberOfCodeLinesChanged"))),this._trackedLinePosition=a}},_handlePositionMoved:function(){this._updatePosition()},_handleNumberOfCodeLinesChanged:function(){this._updatePosition()},_updatePosition:function(){if(this._trackedLinePosition){var e=this._trackedLinePosition.getLineColumn().line-1,t=this._lineNumberService.getCodeLineNumberFromLineNumber(e);if(!t||t<0)this.onPositionUpdated(-1);else{var i=t-1;this.onPositionUpdated(i)}}},destroy:function(){this.inherited(arguments),this._trackedLinePosition&&this._trackedLinePosition.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3537),i(378)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(e){return n.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["debug.breakpointmodel","rtc.linenumberservice","debug.margin.matlab.breakpointstyler","debug.breakpointdirtyservice","debug.breakpoint.dataservice","debug.contextmenucontributor","debug.ddux","debug.breakpoint.temporary"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)},priority:function(){return 10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(213),i(257),i(203),i(204),i(800),i(209),i(493),i(208),i(575),i(522),i(717)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return n(c,{NO_LINE:-1,_COMMON_BREAKPOINT_CSS:"commonBreakpointStyle",constructor:function(e,t,i,n,r,a,s,c){this._breakpointDataModel=e,this._lineNumberService=t,this._breakpointStyler=i,this._breakpointDirtyService=n,this._contextMenuContributor=a,this._debugDDUXLogger=s,this._temporaryBreakpointManager=c,this.own(l.after(this._breakpointDataModel,"onDataModelChange",o.hitch(this,"_handleDataModelChange"))),this.own(l.after(this._breakpointDirtyService,"breakpointDirtyStateChanged",o.hitch(this,"_handleBreakpointDirtyStateChange"))),this.own(l.after(r,"breakpointErrored",o.hitch(this,"_handleBreakpointErrored"))),this._intermediateBreakpointLine=this.NO_LINE,this._isEnabled=!0,this._tooltips=[]},enable:function(){this._isEnabled=!0},disable:function(){this._isEnabled=!1},_handleDataModelChange:function(){this._purgePartialBreakpoint(),this.onUpdate()},_handleBreakpointErrored:function(){this._purgePartialBreakpoint(),this.onUpdate()},_handleBreakpointDirtyStateChange:function(){this.onUpdate()},handleMouseDown:function(e,t){if(this._isEnabled&&i.isLeft(e)&&!this._isClickInMarginLeftPadding(e)){var n=this._lineNumberService.getCodeLineNumberAtOrBeforeLineNumber(t)-1;this._createPartialBreakpoint(e,n)}},_isClickInMarginLeftPadding:function(e){if(!e||!e.target)return!1;if(!e.target.classList.contains("margin"))return!1;var i=t.get(e.target,"padding-left");return e.offsetX<=i},handleMouseUp:function(e,t){if(this._isEnabled&&i.isLeft(e)){var n=this._lineNumberService.getCodeLineNumberFromLineNumber(t)-1;if(n>=0&&this._intermediateBreakpointLine===n){var o=this._breakpointDataModel.getFirstBreakpointOnLine(n);o&&o.isAnonymous()?this._breakpointDataModel.clearAllBreakpointsOnLine(n):o&&o.hasExpression()&&o.isEnabled?this._toggleEnableState(e,o):this._toggleBreakpoint(e,o,n)}}},_createPartialBreakpoint:function(e,t){this._intermediateBreakpointLine=t,this._breakpointStyler.allowPartialBreakpoints()&&this.onUpdate()},_purgePartialBreakpoint:function(){this._intermediateBreakpointLine!==this.NO_LINE&&(this._intermediateBreakpointLine=this.NO_LINE)},_toggleBreakpoint:function(e,t,i){if(i!==this.NO_LINE){var n=t?"removeBreakpoint":"addBreakpoint";this._logDDUXEvent(n,"gutter"),this._breakpointDataModel.toggleBreakpointAtLine(i)}},_toggleEnableState:function(e,t){if(t.zeroBasedCodeLineNumber!==this.NO_LINE){var i=t.isEnabled?"disableBreakpoint":"enableBreakpoint";this._logDDUXEvent(i,"gutter"),this._breakpointDataModel.toggleEnableState(t)}},_logDDUXEvent:function(e,t){this._debugDDUXLogger.logEvent(e,t)},handleMouseLeave:function(){this._isEnabled&&this._intermediateBreakpointLine!==this.NO_LINE&&(this._intermediateBreakpointLine=this.NO_LINE,this.onUpdate())},_hasVisibleBreakpointAtLine:function(e){var t=null!==this._breakpointDataModel.getFirstBreakpointOnLine(e);if(this._temporaryBreakpointManager){var i=this._temporaryBreakpointManager.hasOnlyTemporaryBreakpoint(e);t=t&&!i}return t},_hasPartialBreakpointAtLine:function(e){return this._intermediateBreakpointLine===e&&this._breakpointStyler.allowPartialBreakpoints()},handleBeginUpdate:function(){this._destroyTooltips()},hasLayerForLineNumber:function(e){if(this._isEnabled){var t=this._lineNumberService.getCodeLineNumberFromLineNumber(e);return!(t<0)&&(this._hasVisibleBreakpointAtLine(t-1)||this._hasPartialBreakpointAtLine(t-1))}},createDecorationForLineNumber:function(t){var i=this._lineNumberService.getCodeLineNumberFromLineNumber(t),n=e.create("div",{class:this._COMMON_BREAKPOINT_CSS}),o=this._getBreakpointToDraw(i-1),r=this._hasPartialBreakpointAtLine(i-1);return this._breakpointStyler.applyStyle(n,o,r),this._breakpointStyler.adjustAlignment(n,o.zeroBasedLineNumber),r||this._tooltips.push(s.createTooltip({referenceNode:n,content:{text:this._breakpointStyler.buildTooltipString(o),isHTML:!0}})),n},_getBreakpointToDraw:function(e){var t=this._breakpointDataModel.getFirstBreakpointOnLine(e);if(this._temporaryBreakpointManager){var i=this._temporaryBreakpointManager.getBreakpointReplacedByTemporary(e);i&&(t=i)}return!t&&this._hasPartialBreakpointAtLine(e)&&(t=new d(e,"",!0)),t},getWidth:function(){return u.getBreakpointMarginWidth()},getContextMenuContributor:function(){return this._contextMenuContributor},_destroyTooltips:function(){this._tooltips.forEach(e=>{e.destroy()}),this._tooltips=[]},destroy:function(){this.inherited(arguments),this._destroyTooltips()}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(3539),i(1854),i(3543),i(1855),i(3544),i(1856)],o=i.dj.d(n,(function(e,t,i,n,o,a){"use strict";return function(){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),this._referenceNode=e.referenceNode,this._hoverTimeOut=[],this._focusTimeOut=[],Object.defineProperty(this,"content",{set:function(e){this._content=e||null},get:function(){return this._content},enumerable:!0,configurable:!0}),this._content=e.content||null,this._handleHide=this._handleHide.bind(this),this._handleEscape=this._handleEscape.bind(this),this._handleShowOnFocus=this._handleShowOnFocus.bind(this),this._handleShowOnHover=this._handleShowOnHover.bind(this),this._calculateTooltipZindex=this._calculateTooltipZindex.bind(this),this._handleThePositionOfToolTip=this._handleThePositionOfToolTip.bind(this),this._attachEventListeners(),i.set(n.IDLE,this)}return r(s,[{key:"_isCurrentTooltip",value:function(){return i.get(n.WAITING)===this||i.get(n.SHOW)===this}},{key:"_handleShowOnFocus",value:function(e){var t=this;if(!this._isCurrentTooltip()&&this._content&&i.get(n.CURRENT_ACTIVE_ELEMENT)!==this){if(!a.getTooltipPrivateEventProp(e,"_mwTooltipCustomData","_focusEventHandled")){a.setTooltipPrivateEventProp(e,"_mwTooltipCustomData","_focusEventHandled"),i.set(n.CURRENT_ACTIVE_ELEMENT,this),i.set(n.WAITING,this);var r=setTimeout((function(){i.set(n.SHOW,t),t._createTooltip(t._content);var e=a.getCoordsWrtPage(t._referenceNode),r=e.top+t._referenceNode.clientTop+t._referenceNode.clientHeight,s=e.left+t._referenceNode.clientLeft+t._referenceNode.clientWidth,l=r+o.OFFSET_FROM_BOTTOM,c=s-o.OFFSET_FROM_RIGHT;t._handleThePositionOfToolTip(c,l)}),500);this._focusTimeOut.push(r)}}else a.setTooltipPrivateEventProp(e,"_mwTooltipCustomData","_focusEventHandled")}},{key:"_handleShowOnHover",value:function(e){var t=this,r=e.target;if(this._referenceNode.contains(e.target)&&!this._isCurrentTooltip()&&this._content){if(!a.getTooltipPrivateEventProp(e,"_mwTooltipCustomData","_hoverEventHandled")){a.setTooltipPrivateEventProp(e,"_mwTooltipCustomData","_hoverEventHandled");var s=e.pageX,l=e.pageY;this._mouseMove=function(e){r=e.target,s=e.pageX,l=e.pageY},this._referenceNode.addEventListener("mousemove",this._mouseMove),i.set(n.WAITING,this);var c=setTimeout((function(){if(t._referenceNode.contains(r)){t._createTooltip(t._content),i.set(n.SHOW,t),t._referenceNode.removeEventListener("mousemove",t._mouseMove);var e=l+o.OFFSET_FROM_BOTTOM_WITH_Y,a=s+o.OFFSET_FROM_BOTTOM_WITH_X;t._handleThePositionOfToolTip(a,e,s,l)}else t._hideTooltip()}),500);this._hoverTimeOut.push(c)}}else a.setTooltipPrivateEventProp(e,"_mwTooltipCustomData","_hoverEventHandled")}},{key:"_clearTimeoutsAndEvents",value:function(){this._mouseMove&&this._referenceNode.removeEventListener("mousemove",this._mouseMove),clearTimeout(this._hoverTimeOut.pop()),clearTimeout(this._focusTimeOut.pop())}},{key:"_createTooltip",value:function(t){if(t&&!(Object.keys(t).length<=0)){this._tooltipContainerSpan=document.createElement("span"),this._tooltipContainerSpan.setAttribute("mw-tooltip",""),this._tooltipContainerSpan.setAttribute("role","tooltip"),e.createContent({content:t,container:this._tooltipContainerSpan}),document.body.appendChild(this._tooltipContainerSpan);var i=a.generateUuid();i="mw-tooltip-"+i,this._tooltipContainerSpan.setAttribute("id",i),this._referenceNode.setAttribute("aria-describedby",i)}}},{key:"_handleHide",value:function(e){e&&e.target&&!this._referenceNode.contains(e.target)||this._hideTooltip()}},{key:"_calculateTooltipZindex",value:function(){var e=a.getEffectiveZindex(this._referenceNode),t=a.getElementZindex(this._tooltipContainerSpan);return"auto"===e||"auto"===t||e<t?"auto":e+1}},{key:"_attachEventListeners",value:function(){this._referenceNode.addEventListener("mouseleave",this._handleHide),this._referenceNode.addEventListener("focusout",this._handleHide),this._referenceNode.addEventListener("click",this._handleHide),this._referenceNode.addEventListener("keydown",this._handleHide),this._referenceNode.addEventListener("mouseenter",this._handleShowOnHover),this._referenceNode.addEventListener("focusin",this._handleShowOnFocus),document.addEventListener("keyup",this._handleEscape)}},{key:"_hideTooltip",value:function(){i.set(n.IDLE,this),this._tooltipContainerSpan&&(this._tooltipContainerSpan.setAttribute("mw-tooltip",""),document.body.removeChild(this._tooltipContainerSpan),this._tooltipContainerSpan=null),this._clearTimeoutsAndEvents()}},{key:"_handleEscape",value:function(e){"Escape"===e.key&&this._hideTooltip()}},{key:"_detachEventListeners",value:function(){this._referenceNode.removeEventListener("mouseleave",this._handleHide),this._referenceNode.removeEventListener("focusout",this._handleHide),this._referenceNode.removeEventListener("click",this._handleHide),this._referenceNode.removeEventListener("keydown",this._handleHide),this._referenceNode.removeEventListener("mouseenter",this._handleShowOnHover),this._referenceNode.removeEventListener("focusin",this._handleShowOnFocus),document.removeEventListener("keyup",this._handleEscape)}},{key:"_handleThePositionOfToolTip",value:function(e,t,i,n){this._tooltipContainerSpan.setAttribute("mw-tooltip","show");var r=this._calculateTooltipZindex();"auto"!==r&&(this._tooltipContainerSpan.style.zIndex=r),this._tooltipContainerSpan.style.top=t+"px";var s=this._tooltipContainerSpan.getBoundingClientRect(),l=s.left+s.width>=window.innerWidth,c=e+s.width>=window.innerWidth;if(l||c){var d=void 0,u=a.getBrowserVerticalScrollbarWidth();l?d=s.left:c&&(d=e),e=d-(d+s.width-window.innerWidth)-u}s.top+s.height>=window.innerHeight&&(t=t-(s.top+s.height-window.innerHeight)-a.getBrowserHorizontalScrollbarHeight()-o.OFFSET_FROM_TOP);i>=0&&n>=0&&i>e&&i<e+s.width&&n>t&&n<t+s.height&&(t=t-s.height+(n-t)-o.OFFSET_FROM_TOP_WITH_Y),this._tooltipContainerSpan.style.top=t+"px",this._tooltipContainerSpan.style.left=e+"px"}},{key:"destroy",value:function(){t.has(this._referenceNode)&&(this._detachEventListeners(),this._referenceNode.hasAttribute("aria-describedby")&&this._referenceNode.removeAttribute("aria-describedby"),this._tooltipContainerSpan&&(document.body.removeChild(this._tooltipContainerSpan),this._tooltipContainerSpan=null),t.delete(this._referenceNode),i.set(n.IDLE,this),i.clear(n.IDLE,this),i.get(n.CURRENT_ACTIVE_ELEMENT)===this&&i.clear(n.CURRENT_ACTIVE_ELEMENT),this._clearTimeoutsAndEvents(),this._referenceNode=null,this._hoverTimeOut=null,this._focusTimeOut=null,this._content=null,Object.defineProperty(this,"content",{set:function(){this._content=null},get:function(){return this._content},enumerable:!0,configurable:!0}))}}]),s}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1853),i(3540),i(3541),i(3542)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o)}return r(o,null,[{key:"createContent",value:function(o){var r=o.container,a=o.content;if(a.type){var s=document.createElement("div"),l=a.type,c=void 0;if(a.type===e.ERROR?(c="mw-tooltip-icon-error",s.innerHTML=t):a.type===e.WARNING&&(s.innerHTML=i,c="mw-tooltip-icon-warning"),c){var d=s.children[0].cloneNode(!0);s=null,r.setAttribute("mw-tooltip-type",l),d.setAttribute("class",c),r.appendChild(d)}}void 0!==a.text&&null!==a.text||(a.text=""),"string"!=typeof a.text&&(a.text=a.text.toString());var u=document.createElement("span");if(u.className="mw-tooltip-text",r.appendChild(u),!0===a.isHTML){var h=n.sanitizeHtmlForTooltip(a.text);u.appendChild(h)}else{a.text.split("\n").forEach((function(e){var t=document.createElement("span");t.textContent=e,u.appendChild(t),u.appendChild(document.createElement("br"))}))}}}]),o}()}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve"><g id="error"><linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="16" y1="-2.692104e-010" x2="16" y2="32"><stop offset="0" style="stop-color:#E23D2D"></stop><stop offset="0.9949" style="stop-color:#CC3729"></stop></linearGradient><polygon style="fill:url(#SVGID_1_);" points="10,32 0,22 0,10 10,0 22,0 32,10 32,22 22,32 "></polygon><g><rect x="15" y="7" style="fill:#CC3729;" width="4" height="13"></rect><rect x="15" y="23" style="fill:#CC3729;" width="4" height="4"></rect></g><g><rect x="14" y="6" style="fill:#FFFFFF;" width="4" height="13"></rect><rect x="14" y="22" style="fill:#FFFFFF;" width="4" height="4"></rect></g><g id="area_copy" style="opacity:0;"><rect style="fill:#E6E6E6;" width="32" height="32"></rect></g></g><g id="Layer_1"></g></svg>'},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 12 12" style="enable-background:new 0 0 12 12;" xml:space="preserve"><g id="warning_x5F_12"><linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="6" y1="2.728484e-12" x2="6" y2="12"><stop offset="0" style="stop-color:#FFD500"></stop><stop offset="1" style="stop-color:#FFC000"></stop></linearGradient><path style="fill:url(#SVGID_1_);" d="M0.115,10.512l5.05-9.982c0.358-0.708,1.312-0.708,1.67,0l5.05,9.982 C12.226,11.185,11.768,12,11.05,12H0.95C0.232,12-0.226,11.185,0.115,10.512z"></path><rect x="5" y="4" style="fill:#FFFFFF;" width="2" height="4"></rect><rect x="5" y="9" style="fill:#FFFFFF;" width="2" height="2"></rect></g><g id="Layer_1"></g></svg>'},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e;return{sanitizeHtmlForTooltip:(e={B:[],BR:[],CODE:[],EM:[],I:[],S:[],SUB:[],SUP:[],STRONG:[],U:[]},function(t){var i=function(t){var i=void 0;return t.nodeType===window.Node.ELEMENT_NODE?e[t.tagName]?(i=document.createElement(t.tagName),function(e,t){for(var i=[],n=0;n<e.length;n+=1){var o=e[n];if(t.hasAttribute(o)){var r=t.getAttribute(o);i.push({key:o,value:r})}}return i}(e[t.tagName],t).forEach((function(e){i.setAttribute(e.key,e.value)}))):i=document.createDocumentFragment():i=t.nodeType===window.Node.TEXT_NODE?document.createTextNode(t.textContent):document.createDocumentFragment(),i},n=(new DOMParser).parseFromString(t,"text/html");return n.body?function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=document.createDocumentFragment();if(n>150||!t)return o;for(var r=t.firstChild;r;r=r.nextSibling){var a=i(r);r.nodeType===window.Node.ELEMENT_NODE&&a.appendChild(e(r,n+1)),o.appendChild(a)}return o}(n.body):document.createDocumentFragment()})}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1855)],o=i.dj.d(n,(function(e){"use strict";return new(function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._state={},this._state.waiting=null,this._state.show=null,this._state.idle=[],this._state.activeElement=null}return r(t,[{key:"get",value:function(e){return this._state[e]?this._state[e]:null}},{key:"clear",value:function(e,t){if(t){var i=this._state[e].indexOf(t);i>-1&&this._state[e].splice(i,1)}else switch(e){case"idle":this._state[e]=[];break;default:this._state[e]=null}}},{key:"set",value:function(t,i){switch(t){case"show":this._state[t]?this._state[t]&&this._state[t]!==i&&(this._state[t]._handleHide(),this._state[t]=i,this.clear(e.WAITING),this.clear("idle",i)):(this._state[t]=i,this.clear(e.WAITING),this.clear("idle",i));break;case"idle":-1===this._state[t].indexOf(i)&&(this._state[t].push(i),this.get(e.WAITING)===i&&this.clear(e.WAITING),this.get(e.SHOW)===i&&this.clear(e.SHOW));break;case"waiting":this._state[t]?this._state[t]&&this._state[t]!==i&&(this._state[t]._handleHide(),this._state[t]=i,this.clear("idle",i)):(this._state[t]=i,this.clear("idle",i));break;case"activeElement":this._state[t]=i}}}]),t}())}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({OFFSET_FROM_BOTTOM:5,OFFSET_FROM_RIGHT:15,OFFSET_FROM_BOTTOM_WITH_X:10,OFFSET_FROM_TOP:20,OFFSET_FROM_BOTTOM_WITH_Y:20,OFFSET_FROM_TOP_WITH_Y:10})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3546),i(378)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(e){return n.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.linenumberservice","debug.margin.matlab.breakpointstyler","debug.margin.matlab.breakpoint.linenumberaddon","rtc.code.executablelines"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(211),i(257),i(203),i(204),i(208),i(575),i(522),i(717)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return n(a,{_COMMON_BREAKPOINT_CSS:"commonBreakpointStyle",_HOVER_CSS:"breakpointGutterHover",constructor:function(e,t,i,n){this._lineNumberService=e,this._breakpointStyler=t,this._breakpointDecorator=i,this._executableLineService=n,this._hoverableDivInfo=[],this.own(r.after(this._executableLineService,"onUpdate",o.hitch(this,"_handleExecutableLinesUpdated"))),this._isEnabled=!0},enable:function(){this._isEnabled=!0},disable:function(){this._isEnabled=!1},_handleExecutableLinesUpdated:function(){this.onUpdate()},handleBeginUpdate:function(e){this._hoverableDivInfo=[]},hasLayerForLineNumber:function(e){if(this._isEnabled)return-1!==this._lineNumberService.getCodeLineNumberFromLineNumber(e)},createDecorationForLineNumber:function(e){var i=t.create("div",{class:this._HOVER_CSS});return this._hoverableDivInfo[e]={div:i,isStyled:!1},i},handleMouseMove:function(t,i){var n=this._hoverableDivInfo[i];if(n&&!n.isStyled){var o=n.div,r=this._lineNumberService.getCodeLineNumberFromLineNumber(i);if(-1===r)return this._removeBreakpointClass(o),!1;if(!this._executableLineService.isCodeLineExecutable(r))return this._removeBreakpointClass(o),!1;if(this._breakpointDecorator.hasLayerForLineNumber(i))return this._removeBreakpointClass(o),!1;var a=new s(r-1,"",!0);e.add(o,this._COMMON_BREAKPOINT_CSS),this._breakpointStyler.applyStyle(o,a),this._breakpointStyler.adjustAlignment(o,a.zeroBasedLineNumber),o.setAttribute("data-testid",i+"_hoverable_breakpoint"),n.isStyled=!0}},_removeBreakpointClass:function(t){e.remove(t,this._COMMON_BREAKPOINT_CSS),e.remove(t,this._HOVER_CSS)},getWidth:function(){return l.getBreakpointMarginWidth()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3548),i(275)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.cursor","rtc.actionservice","debug.breakpointmodel","rtc.linenumberservice","rtc.keyhandler","debug.breakpoints.conditionalbreakpointdialogmanager"]}},createInstance:function(e,t,i,r,a,s){const l=o.getInstance();return new n(e,t,i,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(302),i(203),i(204),i(253),i(251),i(208),i(522)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(null,{TOGGLE_CONDITIONAL_ACTION:"rtc_toggle_conditional_breakpoint",constructor:function(e,t,r,a,s,l,c){this._cursor=e,this._actionService=t,this._breakpointModel=r,this._lineNumberService=a,this._keyHandler=s,this._conditionalBreakpointDialogManager=l,this._debugServices=c;var d=[{id:o.EXECUTION_CONTROLS.BREAKPOINTS.CLEAR_ALL_BREAKPOINTS.Action,enabled:!0,text:n.clearAllBreakpointsLabel,description:n.clearAllBreakpointsDescription,callback:i.hitch(this,"clearAll")},{id:o.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_BREAKPOINT.Action,enabled:!0,text:n.toggleBreakpointLabel,description:n.toggleBreakpointDescription,key:"f12",platformKey:{mac:"meta_\\"},callback:i.hitch(this,"_toggleBreakpointCallback")},{id:o.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_ENABLE_BREAKPOINT.Action,enabled:!0,text:n.toggleEnableBreakpointLabel,description:n.toggleEnableBreakpointDescription,callback:i.hitch(this,"_toggleEnablementCallback")},{id:o.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_CONDITIONAL.Action,enabled:!0,text:n.toggleConditionalBreakpointLabel,description:n.toggleConditionalBreakpointDescription,callback:i.hitch(this,"_toggleConditionalBreakpointCallback")},{id:o.EXECUTION_CONTROLS.BREAKPOINTS.PAUSE_ON_ERROR.ActionOn,enabled:!0,callback:i.hitch(this,"_toggleStopIfError",!0)},{id:o.EXECUTION_CONTROLS.BREAKPOINTS.PAUSE_ON_ERROR.ActionOff,enabled:!0,callback:i.hitch(this,"_toggleStopIfError",!1)},{id:o.EXECUTION_CONTROLS.BREAKPOINTS.PAUSE_ON_WARNING.ActionOn,enabled:!0,callback:i.hitch(this,"_toggleStopIfWarning",!0)},{id:o.EXECUTION_CONTROLS.BREAKPOINTS.PAUSE_ON_WARNING.ActionOff,enabled:!0,callback:i.hitch(this,"_toggleStopIfWarning",!1)},{id:o.EXECUTION_CONTROLS.BREAKPOINTS.PAUSE_ON_NANINF.ActionOn,enabled:!0,callback:i.hitch(this,"_toggleStopIfNanInf",!0)},{id:o.EXECUTION_CONTROLS.BREAKPOINTS.PAUSE_ON_NANINF.ActionOff,enabled:!0,callback:i.hitch(this,"_toggleStopIfNanInf",!1)}];this._actionService.loadActions(d),this._addAdditionalKeyBindings()},enableFileBreakpointActions:function(){this._actionService.updateAction(o.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_BREAKPOINT.Action,{enabled:!0}),this._actionService.updateAction(o.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_ENABLE_BREAKPOINT.Action,{enabled:!0}),this._actionService.updateAction(this.TOGGLE_CONDITIONAL_ACTION,{enabled:!0})},disableFileBreakpointActions:function(){this._actionService.updateAction(o.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_BREAKPOINT.Action,{enabled:!1}),this._actionService.updateAction(o.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_ENABLE_BREAKPOINT.Action,{enabled:!1}),this._actionService.updateAction(this.TOGGLE_CONDITIONAL_ACTION,{enabled:!1})},clearAll:function(){return this._breakpointModel.clearAllBreakpoints(),!0},_toggleBreakpointCallback:function(){return!!this._actionService.getAction(o.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_BREAKPOINT.Action).enabled&&this.toggleBreakpoint()},_toggleEnablementCallback:function(){return!!this._actionService.getAction(o.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_BREAKPOINT.Action).enabled&&(this.toggleEnablement(),!0)},_toggleConditionalBreakpointCallback:function(){return!!this._actionService.getAction(this.TOGGLE_CONDITIONAL_ACTION).enabled&&this.toggleConditionalBreakpoint()},toggleBreakpoint:function(){var e=this._getZeroBasedCodeLineNumber();return!(e<0)&&(this._breakpointModel.toggleBreakpointAtLine(e),!0)},toggleEnablement:function(){var e=this._getZeroBasedCodeLineNumber();this._breakpointModel.toggleEnableStateAtLine(e)},toggleConditionalBreakpoint:function(){var e=this._getZeroBasedCodeLineNumber();if(e<0)return!1;var t=this._breakpointModel.getBreakpoint(e);return t||(t=new a(e,"",!0)),this._conditionalBreakpointDialogManager.showDialog(t),!0},_toggleStopIfError:function(e){this._debugServices.setDBStopIfError(e)},_toggleStopIfWarning:function(e){this._debugServices.setDBStopIfWarning(e)},_toggleStopIfNanInf:function(e){this._debugServices.setDBStopIfNanInf(e)},_getZeroBasedCodeLineNumber:function(){var e=this._cursor.getLineColumn().line-1;return this._lineNumberService.getCodeLineNumberAtOrBeforeLineNumber(e)-1},_addAdditionalKeyBindings:function(){this._keyHandler.addBinding({platformKey:{mac:"f12"}},o.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_BREAKPOINT.Action)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3550),i(3552)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{requires:function(){return{createInstance:["rtc.backingstore","debug.breakpointdirtyservice","debug.frameworkid"]}},createInstance:function(e,t,i){let r=o.getInstance();return new n(e,t,r,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(214),i(209),i(369),i(232),i(207),i(281),i(1349),i(3551),i(522),i(1850),i(275)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(s,{ERROR_SOURCES:{SAVE:"save",ADD:"add"},_PEER_MODEL_CHANNEL:"/matlabbreakpointsdatastore",_BREAKPOINT_STORE_SET_DATA_CHANNEL:"/debugger/breakpoints/editorbreakpointstore/setData",constructor:function(e,t,n,o){this._backingStore=e,this._breakpointDirtyService=t,this._mvm=n,this._debuggerFrameworkId="string"==typeof o?o:void 0,this.messageService=c.getInstance(),this._syncedPromise=new i,this._isSynchronized=!1,this._debugServices=p.getInstance(),this._storeRootListeners={},this._initializePeerModel(),this._initializeViewModel(),this._initializeListeners(),this.triggerBreakpointsRefresh()},_initializePeerModel:function(){this._peerModelStore=r.getInstance(this._PEER_MODEL_CHANNEL),this._peerModelStore.isSyncEnabled()||this._peerModelStore.setSyncEnabled(!0)},_initializeViewModel:function(){this._mvm&&this._mvm.feval("matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance",0,[]).then(function(e){this._isSynchronized=!0,this._syncedPromise.resolve()}.bind(this),(function(e){}))},_getFilePathFromBackingStore:function(){return this._backingStore.getUniqueId()},whenSynchronized:function(e){this._syncedPromise.then(e,(function(){}))},isSynchronized:function(){return this._isSynchronized},triggerBreakpointsRefresh:function(){var e=this._debugServices.getSourceBreakpoints(this._debuggerFrameworkId);e&&e.then(e=>{e.forEach(e=>{this._handleBreakpointAdded(e)});this._breakpointDirtyService.breakpointsRefreshed(!1)},e=>{this._handleMatlabBreakpointError(e)})},triggerBreakpointsSave:function(){var e=this._getFilePathFromBackingStore();this.messageService.publish(h.SYNCHRONIZE_BREAKPOINTS_REQUEST,{filePath:e})},_handleDebuggersUpdated:function(){this.triggerBreakpointsRefresh()},_initializeListeners:function(){this.own(n.after(this._debugServices,"onBreakpointAdded",this._handleBreakpointAdded.bind(this),!0),n.after(this._debugServices,"onBreakpointRemoved",this._handleBreakpointRemoved.bind(this),!0),n.after(this._debugServices,"onAllBreakpointsCleared",this._handleAllBreakpointsCleared.bind(this),!0),n.after(this._debugServices,"onDebuggersUpdated",this._handleDebuggersUpdated.bind(this))),this.messageService.subscribe(h.BREAKPOINTS_ERRORED,"_handleMatlabBreakpointError",this),this.messageService.subscribe(h.BREAKPOINTS_FILE_REFRESHED,"_handleMatlabBreakpointsFileRefreshed",this)},_handleBreakpointAdded:function(e){this.breakpointsAdded(this._filterBreakpointsByFileName([e],this._getFilePathFromBackingStore()))},_filterBreakpointsByFileName:function(e,t){return e.filter((function(e){return this._areFilesTheSame(t,l.mapPFileToMFile(e.fileName))}),this)},_areFilesTheSame:function(e,t){return this._convertToLowerCase(e)===this._convertToLowerCase(t)},_convertToLowerCase:function(e){return(e=e||"").toLocaleLowerCase()},_handleBreakpointRemoved:function(e){this.breakpointsRemoved(this._filterBreakpointsByFileName([e],this._getFilePathFromBackingStore()))},_handleAllBreakpointsCleared:function(e){(void 0===this._debuggerFrameworkId||e.indexOf(this._debuggerFrameworkId)>=0)&&this.breakpointsCleared()},setBreakpoint:function(e){this._debugServices.setBreakpoint(e,this._debuggerFrameworkId)},clearBreakpoint:function(e){this._debugServices.clearBreakpoint(e,this._debuggerFrameworkId)},clearAllBreakpoints:function(){this._debugServices.clearAllBreakpoints(this._debuggerFrameworkId)},synchronizeToServer:function(e){this._destroyed||(this._synchronizePeerModel(e),this._synchronizeBreakpointStore(e),this._waitForModelRootSet(e,this._peerModelStore,"peerModel"))},_synchronizePeerModel:function(e){var t=this._peerModelStore.getRoot(),i=this._getFilePathFromBackingStore();if(t&&i){var n=this._createServerStateData(e,this._breakpointDirtyService.areBreakpointsDirty());t.setProperty(i,n)}},_synchronizeBreakpointStore:function(e){this.whenSynchronized(function(){var t=this._getFilePathFromBackingStore(),i=e.map(e=>(e.hasOwnProperty("zeroBasedLineNumber")&&(e.lineNumber=e.zeroBasedLineNumber+1,e.columnNumber=e.zeroBasedColumnNumber+1),e)),n={filename:t,breakpointData:this._createServerStateData(i,this._breakpointDirtyService.areBreakpointsDirty())};this.messageService.publish(this._BREAKPOINT_STORE_SET_DATA_CHANNEL,n)}.bind(this))},_waitForModelRootSet:function(e,t,i){t&&!t.hasRoot()&&(this._storeRootListeners[i]&&t.removeEventListener("rootSet",this._storeRootListeners[i]),this._storeRootListeners[i]=function(e){this.synchronizeToServer(e),t.removeEventListener("rootSet",this._storeRootListeners[i]),this._storeRootListeners[i]=null}.bind(this,e),t.addEventListener("rootSet",this._storeRootListeners[i]))},_createServerStateData:function(e,t){return{breakpoints:e,areBreakpointsDirty:t}},_handleMatlabBreakpointsFileRefreshed:function(e){var t=e.data;t&&this._areFilesTheSame(t.fileName,this._getFilePathFromBackingStore())&&(this._breakpointDirtyService.breakpointsRefreshed(t.errorOccurred),this.breakpointsRefreshedForFile(t.errorOccurred))},_handleMatlabBreakpointError:function(e){this._areFilesTheSame(l.mapPFileToMFile(e.data.breakpointInstallationResult.fFile.path),this._getFilePathFromBackingStore())&&(this._breakpointDirtyService.breakpointsErrored(),this.breakpointErrored(e.data.breakpointInstallationResult,e.data.source))},destroy:function(){this._cleanListeners(),this._destroyPeerModel(),this._destroyBreakpointStoreEntry(),this._syncedPromise.isResolved()||this._syncedPromise.reject(),this._destroyed=!0},_destroyPeerModel:function(){var e=this._peerModelStore.getRoot(),t=this._getFilePathFromBackingStore();e&&t&&(e.setProperty(t,this._createServerStateData([],!1)),e.unsetProperty(t)),this._storeRootListeners.peerModel&&(this._peerModelStore.removeEventListener("rootSet",this._storeRootListeners.peerModel),this._storeRootListeners.peerModel=null)},_destroyBreakpointStoreEntry:function(){var e={filename:this._getFilePathFromBackingStore()};this.messageService.publish(this._BREAKPOINT_STORE_SET_DATA_CHANNEL,e)},_cleanListeners:function(){this.messageService.unsubscribe(h.BREAKPOINTS_ERRORED,"_handleMatlabBreakpointError",this),this.messageService.unsubscribe(h.BREAKPOINTS_FILE_REFRESHED,"_handleMatlabBreakpointsFileRefreshed",this)},breakpointsAdded:function(e){},breakpointsRemoved:function(e){},breakpointsRefreshedForFile:function(e){},breakpointsCleared:function(){},breakpointErrored:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1052)],o=i.dj.d(n,(function(e,t){return new(e(null,{constructor:function(){this._viewModelFactory=t},getInstance:function(){return this._viewModelFactory},installInstance:function(e){this._viewModelFactory=e},clearCustomViewModelInstance:function(){this._viewModelFactory=t}}))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(363)],o=i.dj.d(n,(function(e){let t=null,i=null;return{getInstance:()=>null!==i?i:(null===t&&(t=e.getInstance()),t),installInstance:function(e){i=e},clearCustomUserMvmInstance:function(){i=null}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3554)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["debug.breakpoint.dataservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(800),i(207),i(273),i(262),i(241)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t(o,{_DIALOG_PROPERTY:"breakpointErrorDialog",CLASS_NOT_ON_PATH_STATUS:"CLASS_NOT_ON_PATH",PCODE_NOT_IN_SYNC_STATUS:"PCODE_NOT_IN_SYNC",constructor:function(t){this._matlabBreakpointDataService=t,this._errorHandlers=[],this.own(e.after(this._matlabBreakpointDataService,"breakpointErrored",i.hitch(this,"_handleErrorMessage"),!0))},registerErrorDisplayHandler:function(e){this._errorHandlers.push(e)},_handleErrorMessage:function(e,t){var i=this._errorHandlers.some((function(t){return t(e)}),this),n=t!==this._matlabBreakpointDataService.ERROR_SOURCES.SAVE;!i&&n&&this.showErrorDialog(e.fStatus,e.fErrorMessage)},showErrorDialog:function(e,t){var o=this._buildErrorDialogText(e,t);this._breakpointErrorDialog=s.displayAlertDialog(n.breakpointErrorDialogTitle,o,{"data-test-id":this._DIALOG_PROPERTY,modal:!0}),this._breakpointErrorDialog.addButtonEventListener(r.OK,i.hitch(this,"_closeErrorDialog"),!1)},_buildErrorDialogText:function(e,t){var i;switch(e){case this.CLASS_NOT_ON_PATH_STATUS:i=n.breakpointErrorDialogClassPathText;break;case this.ANONYMOUS_NOT_IN_A_FUNCTION:i=n.breakpointErrorDialogAnonymousNotInFunctionText;break;case this.PCODE_NOT_IN_SYNC_STATUS:i=n.breakpointErrorDialogPcodeText;break;default:i=n.breakpointErrorDialogSyntaxText}return i+="\n\n"+t},_closeErrorDialog:function(){this._breakpointErrorDialog.close()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3556)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore","debug.breakpoint.dataservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(209),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,o){this._backingStore=e,this._breakpointDataService=o,this._backingStore.onSaveCompleted?this.own(i.after(this._backingStore,"onSaveCompleted",t.hitch(this,"_handleSaveCompleted"),!0)):n.warn("Attempting to create MatlabBreakpointSaveSynchronizer using an incompatible backingstore that does not support onSaveCompleted")},_handleSaveCompleted:function(){this._breakpointDataService.triggerBreakpointsSave()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3558)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.backingstore"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1857)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,n){this._internalDocument=e,this._backingStore=n,this._areBreakpointsDirty=!1,this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleDocumentChanged"),!0)),this._backingStore.onLocationUpdated&&this.own(i.after(this._backingStore,"onLocationUpdated",t.hitch(this,"_handleFilePathUpdated")))},breakpointsRefreshed:function(e){!e&&this._areBreakpointsDirty&&(this._areBreakpointsDirty=!1,this.breakpointDirtyStateChanged(this._areBreakpointsDirty))},breakpointsErrored:function(){this._areBreakpointsDirty||(this._areBreakpointsDirty=!0,this.breakpointDirtyStateChanged(this._areBreakpointsDirty))},_handleDocumentChanged:function(e){var t=this._filterDocumentEvents(e);!this._areBreakpointsDirty&&t.length>0&&(this._areBreakpointsDirty=!0,this.breakpointDirtyStateChanged(this._areBreakpointsDirty))},_handleFilePathUpdated:function(){this._areBreakpointsDirty&&(this._areBreakpointsDirty=!1,this.breakpointDirtyStateChanged(this._areBreakpointsDirty))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(228),i(210),i(205),i(908),i(378)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{isApplicable:function(e){return a.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.view","rtc.internaldocument","rtc.focusservice","debug.margin.matlab.breakpoint","debug.margin.executionarrow","matlab.executable.line","debug.contextmenucontributor","margin.shared.decorations"]}},createInstance:function(e,t,o,a,s,l,c,d){var u=d.concat([l,a,s]),h=new r(e,t,o,u,1,c);return n.add(h.getMarginElement(),"breakpointMargin"),i.set(h.getMarginElement(),"data-testid","breakpointMargin"),h}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3561)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["debug.breakpointmodel","rtc.code.executablelines"]}},createInstance:function(e,t){return new n(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(212),i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return i(o,{constructor:function(i,o){this._breakpointDataModel=i,this._executableLineService=o,this._promise=new t,this.own(e.after(this._breakpointDataModel,"onDataModelChange",n.hitch(this,"_handleDataModelChange")))},_handleDataModelChange:function(){this._promise.resolve(),this._promise=new t},setBreakpoint:function(e){if(!this._isPossibleToSetBreakpoint(e.zeroBasedLineNumber))return this._createRejectedPromise();var t=this._promise;return this._breakpointDataModel.setBreakpoint(e),t},clearBreakpointAtLine:function(e){if(!this._isPossibleToRemoveBreakpoint(e))return this._createRejectedPromise();var t=this._promise;return this._breakpointDataModel.clearBreakpointAtLine(e),t},_isPossibleToSetBreakpoint:function(e){return this._executableLineService.isCodeLineExecutable(e+1)||this._executableLineService.getNextExecutableCodeLine(e+1)!==this._executableLineService.NO_LINE},_isPossibleToRemoveBreakpoint:function(e){return this._breakpointDataModel.hasBreakpointAtLine(e)},_createRejectedPromise:function(){var e=new t;return e.reject(),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3563)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.breakpoint.anonymous.viewmodel","debug.breakpointmodel","debug.margin.matlab.breakpointstyler","rtc.view.decoration","rtc.document","debug.contextmenucontributor","rtc.domnode","rtc.linenumberservice","rtc.contextmenu.generator","rtc.view.viewportopenedservice","rtc.view.styles.globalstylechanger"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(206),i(257),i(248),i(203),i(204),i(493),i(207),i(208),i(266),i(3564),i(362)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return o(s,{_DOM_LOCATION:u.PLACEMENT.BETWEEN,_INLINE_BREAKPOINT_CSS:["inlineBreakpoint","commonBreakpointStyle"],constructor:function(e,t,i,n,o,a,s,c,d,u,h){this._anonymousBreakpointViewModel=e,this._breakpointDataModel=t,this._breakpointStyler=i,this._decorator=n.createDecorator(0,!0),this._document=o,this._lineNumberService=c,this._contextMenuContributor=a,this._contextMenuGenerator=d,this._viewportOpenedService=u,this._breakpointViewInfos=[],this.own(l.after(this._anonymousBreakpointViewModel,"onModelUpdated",r.hitch(this,"_handleModelUpdated"),!0)),this.own(l.after(h,"onLineHeightUpdated",r.hitch(this,"_handleLineHeightUpdated")))},_handleModelUpdated:function(e){this._viewportOpenedService.whenViewportOpenedWithContent(r.hitch(this,(function(){this._removeAllViews(),e.forEach((function(e){this._addView(e)}),this),this._decorator.applyChanges()})))},_addView:function(i){var o=this._buildRange(i.zeroBasedLineNumber,i.zeroBasedColumnNumber),a=e.create("div",{class:this._INLINE_BREAKPOINT_CSS.join(" "),"data-test-id":"inline-breakpoint-"+i.zeroBasedLineNumber+"-"+i.anonymousIndex});this.own(t(a,n.release,r.hitch(this,"_handleClick",i))),this._breakpointStyler.applyStyle(a,i,!1),this._breakpointStyler.adjustAlignment(a,i.zeroBasedLineNumber,!0),this._decorator.addDomNode(a,o,this._DOM_LOCATION);var s=this._createTooltip(a,i);this._contextMenuGenerator.createContextMenu(a,[this._contextMenuContributor]);var l=new d(i,a,o,i.zeroBasedLineNumber,s);this._contextMenuContributor.addInlineBreakpointViewInfo(l),this._breakpointViewInfos.push(l)},_createTooltip:function(e,t){return a.createTooltip({referenceNode:e,content:{text:this._breakpointStyler.buildTooltipString(t),isHTML:!0}})},_buildRange:function(e,t){var i=this._lineNumberService.getLineNumberFromCodeLineNumber(e+1),n=this._document.createPositionAtLineColumn(i,t,!0),o=this._document.createPositionAtLineColumn(i,t+1,!0);return new c(n,o)},_removeAllViews:function(){this._breakpointViewInfos.forEach((function(e){this._removeView(e)}),this),this._breakpointViewInfos=[]},_removeView:function(e){e&&(this._contextMenuContributor.removeInlineBreakpointViewInfo(e),e.tooltip.destroy(),this._decorator.removeDomNode(e.domNode,e.range,this._DOM_LOCATION),e.range.destroy())},_handleLineHeightUpdated:function(){this._breakpointViewInfos.forEach((function(e){this._breakpointStyler.adjustAlignment(e.domNode,e.codeLineNumber,!0)}),this)},_handleClick:function(e,t){i.isLeft(t)&&this._anonymousBreakpointViewModel.handleClick(e)},destroy:function(){this.inherited(arguments),this._removeAllViews()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i,n,o){this.breakpointInfo=e,this.domNode=t,this.range=i,this.codeLineNumber=n,this.tooltip=o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3566)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","debug.breakpointmodel","rtc.linenumberservice","debug.breakpoint.temporary","debug.ddux","rtc.indentutilities","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(229),i(207),i(237),i(266),i(522),i(320)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return t(o,{_ANONYMOUS_REGEX:/@\s*\([^)]*\)/,_DOCUMENT_CHANGE_TIMEOUT:100,constructor:function(t,n,o,r,a,s,l){this._internalDocument=t,this._breakpointDataModel=n,this._lineNumberService=o,this._temporaryBreakpointManager=r,this._debugDDUXLogger=a,this._indentUtilities=s,this._matlabTokenManager=l,this._anonymousBreakpoints=[],this._documentChangeTimer=null,this.own(e.after(this._internalDocument,"onDocumentChanged",i.hitch(this,"_handleDocumentChanged"))),this.own(e.after(this._breakpointDataModel,"onDataModelChange",i.hitch(this,"_handleBreakpointDataModelChanged"))),this.own(e.after(this._breakpointDataModel,"onLiveChanged",i.hitch(this,"_handleBreakpointsLiveChanged"))),this._handleBreakpointDataModelChanged()},onModelUpdated:function(e){},handleClick:function(e){var t=e.isEnabled?"disableAnonymousBreakpoint":"enableAnonymousBreakpoint";this._debugDDUXLogger.logEvent(t,"contextual"),e.isEnabled=!e.isEnabled,this._breakpointDataModel.toggleBreakpoint(e)},_handleBreakpointsLiveChanged:function(){this.onModelUpdated(this._anonymousBreakpoints)},_handleDocumentChanged:function(){this._documentChangeTimer&&clearTimeout(this._documentChangeTimer),this._documentChangeTimer=setTimeout(i.hitch(this,"_updateModel"),this._DOCUMENT_CHANGE_TIMEOUT)},_resetTimer:function(){this._documentChangeTimer&&(clearTimeout(this._documentChangeTimer),this._documentChangeTimer=null)},_handleBreakpointDataModelChanged:function(){this._updateModel()},_updateModel:function(){this._resetTimer(),this._anonymousBreakpoints=[];var e=this._getAllLineNumbersWithEnabledBreakpoints();this._generateAllPotentialAnonymousBreakpoints(e),this.onModelUpdated(this._anonymousBreakpoints)},_getAllLineNumbersWithEnabledBreakpoints:function(){var e=this._breakpointDataModel.getAllBreakpoints(),t=this._lineNumberService.getNumberOfCodeLines();return n.unique(e.filter(function(e){var i=e.zeroBasedLineNumber<t,n=this._temporaryBreakpointManager.hasOnlyTemporaryBreakpoint(e.zeroBasedLineNumber);return i&&e.isValid()&&e.isEnabled&&!n}.bind(this)).map((function(e){return e.zeroBasedLineNumber})))},_generateAllPotentialAnonymousBreakpoints:function(e){e.forEach((function(e){this._generatePotentialAnonymousBreakpoints(e)}),this)},_generatePotentialAnonymousBreakpoints:function(e){var t=this._findAnonymousColumnNumbers(e);if(t.length>0){var i=this._findColumnForFirstAnonymousBreakpoint(e);t.unshift(i)}this._anonymousBreakpoints=this._anonymousBreakpoints.concat(this._createAnonymousBreakpoints(e,t))},_findAnonymousColumnNumbers:function(e){var t=this._lineNumberService.getLineNumberFromCodeLineNumber(e+1);return r.getRangeAndTextOfMultipleTargetsOnLine(this._internalDocument,t+1,this._ANONYMOUS_REGEX).map(e=>e.end-1).filter(t=>this._isValidAnonymousBreakpointLocation(e,t))},_findColumnForFirstAnonymousBreakpoint:function(e){var t=0,i=this._indentUtilities.findFirstNonWhitespaceTokenInLine(e);return i&&(t=i.getPositionInfo().column),t},_createAnonymousBreakpoints:function(e,t){return t.map((function(t,i){var n=this._breakpointDataModel.getBreakpoint(e,i);return new s(e,n?n.fileName:"",!!n&&n.isEnabled,n?n.expression:"",i,t)}),this)},_isValidAnonymousBreakpointLocation:function(e,t){var i=this._matlabTokenManager.getTokenOnLineColumn(e,t);return!i||i.getLength()<=2||!l.isMatlabStringToken(i)&&!l.isCommentToken(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3568),i(275)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["debug.breakpointmodel","debug.breakpoint.promise","matlab.services.busyidle","rtc.code.executablelines"]}},createInstance:function(e,t,i,r){var a=o.getInstance();return new n(e,t,i,a,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(203),i(204),i(207),i(208),i(522),i(717)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(n,{constructor:function(e,t,n,r,a){this._breakpointDataModel=e,this._breakpointPromiseManager=t,this._busyIdleService=n,this._debugServices=r,this._executableLineService=a,this._temporaryBreakpoints=[],this.own(o.after(this._debugServices,"onDBStop",i.hitch(this,"_handleDBStop"))),this.own(o.after(this._busyIdleService,"onIdleBusyStatusChange",i.hitch(this,"_handleBusyIdleStateChange"),!0))},getBreakpointReplacedByTemporary:function(e){var t=null;return this._temporaryBreakpoints.forEach((function(i){i.temporaryBreakpoint.zeroBasedLineNumber===e&&(t=i.existingBreakpoint)})),t},hasOnlyTemporaryBreakpoint:function(e){var t=!1;return this._temporaryBreakpoints.forEach((function(i){i.temporaryBreakpoint.zeroBasedLineNumber===e&&null===i.existingBreakpoint&&(t=!0)})),t},setBreakpoint:function(e){var t=new r(e,"",!0),i=a.translateBreakpointToExecutableLine(this._executableLineService,t);if(!i.isValid())return this._handleBreakpointNotSet(e);var n={existingBreakpoint:this._breakpointDataModel.getBreakpoint(e),temporaryBreakpoint:i};return this._temporaryBreakpoints.push(n),this._applyBreakpoint(n)},_applyBreakpoint:function(e){var t=this._breakpointDataModel.getAllBreakpoints();return this._breakpointPromiseManager.setBreakpoint(e.temporaryBreakpoint).then(i.hitch(this,"_handleTemporaryBreakpointSet",e,t),i.hitch(this,"_handleBreakpointNotSet",e.zeroBasedLineNumber))},_handleTemporaryBreakpointSet:function(e,t){var i=this._findLineWhereBreakpointFell(e.temporaryBreakpoint.zeroBasedLineNumber);e.temporaryBreakpoint.zeroBasedLineNumber=i;var n=this._findBreakpointAtLine(t,i);e.existingBreakpoint=n},_handleBreakpointCleared:function(e){this._temporaryBreakpoints=this._temporaryBreakpoints.filter((function(t){return t.temporaryBreakpoint.zeroBasedLineNumber!==e}),this)},_handleDBStop:function(){this._resetBreakpoints()},_handleBusyIdleStateChange:function(e){e||this._resetBreakpoints()},_resetBreakpoints:function(){this._temporaryBreakpoints.forEach(this._resetBreakpoint,this)},_resetBreakpoint:function(e){(e.existingBreakpoint?this._breakpointPromiseManager.setBreakpoint(e.existingBreakpoint):this._breakpointPromiseManager.clearBreakpointAtLine(e.temporaryBreakpoint.zeroBasedLineNumber)).then(i.hitch(this,"_handleBreakpointCleared",e.temporaryBreakpoint.zeroBasedLineNumber),(function(){}))},_findLineWhereBreakpointFell:function(e){var t=this._breakpointDataModel.getAllBreakpoints().map((function(e){return e.zeroBasedLineNumber}));t.sort((function(e,t){return e-t}));var i=t.filter((function(t){return t>=e})),n=-1;return i.length>0&&(n=i[0]),n},_findBreakpointAtLine:function(e,t){var i=null,n=e.map((function(e){return e.zeroBasedLineNumber})).indexOf(t);return n>=0&&(i=e[n]),i},_handleBreakpointNotSet:function(e){return this._handleBreakpointCleared(e),this._createRejectedPromise()},_createRejectedPromise:function(){var t=new e;return t.reject("Temporary breakpoint unable to be set",!1),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(908),i(3570),i(205)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.internaldocument","rtc.focusservice"]}},createInstance:function(e,t,o){var r=[new n];return new i(e,t,o,r,1,null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(575),i(717)],o=i.dj.d(n,(function(e,t,i){return e(t,{hasLayerForLineNumber:function(e){return!1},createDecorationForLineNumber:function(e){},getWidth:function(){return i.getBreakpointMarginWidth()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(1858)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:[]}},createInstance:function(){return new n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3573)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.document","rtc.cursorcontroller","rtc.eventhandler","rtc.actionservice","rtc.internaldocument","rtc.contextmenu.documentcontributor"]}},createInstance:function(e,t,i,o,r,a){return new n(e,t,i,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(253),i(207),i(237),i(260),i(333),i(313),i(364),i(294),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(n,{constructor:function(e,n,o,r,a,s){this._document=e,this._internalDocument=a,this._cursorController=n,this._actionService=r,this._contextMenuContributor=s,this.own(t.after(this._cursorController,"onUpdate",this._updateActionState.bind(this))),this.own(t.after(o,"onMouseDown",this._updateActionState.bind(this)));var l=[{id:"rtc_changecase",key:"ctrl_shift_a",platformKey:{mac:"meta_shift_a"},enabled:!1,text:i.changeCaseLabel,callback:this._changeCase.bind(this)}];this._actionService.loadActions(l),this._addActionsToContextMenu()},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(c.DEFAULT,"rtc_changecase")},_changeCase:function(){if(!this._actionService.getAction("rtc_changecase").enabled)return!1;var e=this._cursorController.getSelection(),t=e.map((function(e){return a.getTextForRange(e,!0)})).join("\n");return t.length<1||(t!==t.toUpperCase()?this._updateSelectedText(e,t.toUpperCase):this._updateSelectedText(e,t.toLowerCase)),!0},_updateSelectedText:function(e,t){var i=this._document.startBlockEdit(),n={startLine:-1,endLine:-1};e.forEach((function(e){this._updateTextWithChangedCase(e,t),n=this._determineStartEndOfFullSelection(e,n)}),this),(n.startLine<0||n.endLine<0)&&d.error("Error in determining the start and end of selection for changing case");var o=[l.create(n.startLine-1,n.endLine-1)];i.appendRedoEvents(o),i.appendUndoEvents(r.translateEventsForUndo(o)),this._internalDocument.emitDocumentEvents(o),this._document.endBlockEdit(i)},_updateTextWithChangedCase:function(e,t){a.nodesInRange(e).forEach((function(i){if(i.isTextNode()){var n=0,o=i.text.length;i===e.getStartPosition().getNode()&&(n=e.getStartPosition().getOffset()),i===e.getEndPosition().getNode()&&(o=e.getEndPosition().getOffset()),this._doOperation(t,i,n,o)}}),this)},_doOperation:function(e,t,i,n){var o=t.text.slice(i,n);if(""!==o.trim()){var r=e.bind(o)();this._internalDocument.updateTextInNode(t,r,i,n)}},_determineStartEndOfFullSelection:function(e,t){var i=e.getStartPosition(),n=e.getEndPosition(),o=t;return 0===s.comparePositions(i,n)||(t.startLine<0&&(o.startLine=i.getLineColumn().line),o.endLine=n.getLineColumn().line),o},_updateActionState:function(){var e=this._cursorController.hasSelection()&&!this._cursorController.areCursorsReadOnly();this._actionService.updateAction("rtc_changecase",{enabled:e})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3575)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(234),i(323),i(910)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_CODE_BACKGROUND_COLOR:"#F7F7F7",_CONTAINER_ELEMENT_TYPE:"div",_DISPLAY_BLOCK:"inline-block",_DISPLAY_FLEX:"flex",_LINE_NUMBER_COLOR:"#5a5a5a",_LINE_NUMBER_FONT:"Menlo, Monaco, Consolas, 'Courier New', monospace",_LINE_NUMBER_MARGIN:"1px",_LINE_OVERFLOW:"ellipsis",_LIVE_CONTROL_DIV:"liveControlDiv",_LIVE_CONTROL_OUTER_DIV:"liveControlOuterNode",_MARGIN:"5px",_MAX_PREVIEW_LINES:4,_OVERFLOW:"hidden",_SPACE_TO_PX:5,_TEXT_ELEMENT_TYPE:"span",_WHITE_SPACE:"pre",constructor:function(e){this._internalDocument=e},createPreview:function(e,t,n){return i.isCodeContainer(e)?this._createPlainTextPreview(e,t,n):null},_createPlainTextPreview:function(e,t,o){var r=document.createElement(this._CONTAINER_ELEMENT_TYPE),a=i.getCodeLineNodes(this._internalDocument).indexOf(e.rootContainer())+1;r.style.display=this._DISPLAY_FLEX;var s=document.createElement(this._CONTAINER_ELEMENT_TYPE),l=document.createElement(this._CONTAINER_ELEMENT_TYPE);this._applyLineNumberStyle(l),this._applyContainerStyle(e,s,o);for(var c=e.rootContainer(),d=0;c&&c.isInstanceOf(n)&&this._MAX_PREVIEW_LINES>d;){(u=document.createElement(this._CONTAINER_ELEMENT_TYPE)).innerText=a+d,l.appendChild(u),s.appendChild(this._createSingleCodeLinePreview(c,t,o)),d++,c=c.nextSibling()}if(c&&c.isInstanceOf(n)&&this._MAX_PREVIEW_LINES<=d){var u,h=c.nextSibling();h&&h.isInstanceOf(n)?s.appendChild(this._createMorePreview(c,t,o)):s.appendChild(this._createSingleCodeLinePreview(c,t,o)),(u=document.createElement(this._TEXT_ELEMENT_TYPE)).innerText=a+d,l.appendChild(u)}return r.appendChild(l),r.appendChild(s),{node:r,usedSize:t}},_createMorePreview:function(e,t,i){var n=document.createElement(this._CONTAINER_ELEMENT_TYPE);return n.innerText=i.MORE,this._applyLineStyle(e,n,t*this._SPACE_TO_PX,i),n},_createSingleCodeLinePreview:function(e,t,i){for(var n=i.getBox(e).cloneNode(!0),o=n.getElementsByClassName(this._LIVE_CONTROL_DIV),r=o.length-1;r>=0;r--)o[r].parentElement.removeChild(o[r]);var a=n.getElementsByClassName(this._LIVE_CONTROL_OUTER_DIV);for(r=a.length-1;r>=0;r--)a[r].style.display=this._DISPLAY_BLOCK;return this._applyLineStyle(e,n,t*this._SPACE_TO_PX,i),n.innerText||(n.innerText=" "),n},_applyLineNumberStyle:function(e){e.style.display=this._DISPLAY_BLOCK,e.style.color=this._LINE_NUMBER_COLOR,e.style.fontFamily=this._LINE_NUMBER_FONT,e.style.marginTop=this._LINE_NUMBER_MARGIN,e.style.whiteSpace=this._WHITE_SPACE},_applyContainerStyle:function(e,i,n){var o=t.getComputedStyle(n.getBox(e.rootContainer()));i.style.marginLeft=this._MARGIN,i.style.backgroundColor=this._CODE_BACKGROUND_COLOR,i.style.borderTop=o.borderTop,i.style.borderBottom=o.borderTop,i.style.fontFamily=o.fontFamily,i.style.paddingTop=this._MARGIN_SIDE,i.style.paddingBottom=this._MARGIN_SIDE,i.style.display=this._DISPLAY_BLOCK},_applyLineStyle:function(e,i,n,o){var r=t.getComputedStyle(o.getBox(e.rootContainer()));i.style.maxWidth=n+"px",i.style.borderLeft=r.borderLeft,i.style.borderRight=r.borderRight,i.style.textOverflow=this._LINE_OVERFLOW,i.style.whiteSpace=r.whiteSpace,i.style.overflow=this._OVERFLOW,i.style.paddingLeft=this._MARGIN,i.style.paddingRight=this._MARGIN,i.style.whiteSpace=this._WHITE_SPACE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1859)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","rtc.actionservice.external"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205)],o=i.dj.d(n,(function(e,t){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.contextmenu.generator","rtc.domnode","contextmenucontributor"]}},createInstance:function(e,t,i){return e.createContextMenu(t,i)||null},destroyInstance:function(e){e&&e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1350)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.contextmenu.model"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{createContextMenu:function(e,t){throw new Error("Unimplemented API: createContextMenu")},willOpen:function(e,t){},onOpen:function(e){},onClose:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3581)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.currentlinehighlight","rtc.settings.service"]}},createInstance:function(e,t){return new n(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(212),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_HIGHLIGHT_PREFERENCE:"matlab.editor.displaysettings.HighlightCurrentLine",_HIGHLIGHT_COLOR_PREFERENCE:"matlab.editor.displaysettings.HighlightCurrentLineColor",_IS_HIGHLIGHT_ON_DEFAULT:!1,constructor:function(e,t){this._currentLineHighlight=e,this._rtcSettingService=t,this._colorsetPromise=null,this._rtcSettingService.getSetting(this._HIGHLIGHT_PREFERENCE).then(function(e){this._rtcSettingService.getSetting(this._HIGHLIGHT_COLOR_PREFERENCE).then(function(t){this._onHighlightSettingChanged(e),this._onHighlightColorSettingChanged(t)}.bind(this),(function(e){}))}.bind(this),(function(e){})),this.own(this._rtcSettingService.listenToSettingChange(this._HIGHLIGHT_PREFERENCE,this._onHighlightSettingChanged.bind(this))),this.own(this._rtcSettingService.listenToSettingChange(this._HIGHLIGHT_COLOR_PREFERENCE,this._onHighlightColorSettingChanged.bind(this)))},_onHighlightSettingChanged:function(e){this._destroyed||(this._initializeColorsetPromise(),this._colorsetPromise.then(function(){e!==this._isHighlightOn&&this._currentLineHighlight.controlLineHighlight(e),this._isHighlightOn=e}.bind(this),(function(e){})))},_onHighlightColorSettingChanged:function(e){this._destroyed||(this._initializeColorsetPromise(),this._currentLineHighlight.setHighlightColor(e),this._highlightColor=e,this._colorsetPromise.resolve())},_initializeColorsetPromise:function(){this._colorsetPromise||(this._colorsetPromise=new n)},destroy:function(){this.inherited(arguments),this._colorsetPromise&&(this._colorsetPromise.reject("Destroying CurrentLineHighlightPreference"),this._colorsetPromise=null),this._destroyed=!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3583)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.cursorcontroller","rtc.cursor.view","rtc.view.decoration"]}},createInstance:function(e,t,i,o){return new n(e,t,i,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(234),i(237),i(362),i(1351),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(i,{CURRENT_LINE_LAYER_CSS:"currentLineHighlightLayer",_LINE_HIGHLIGHT_OPACITY:1,_PRIORITY:10,constructor:function(e,t,i,n){this._document=e,this._cursorController=t,this._cursorView=i,this._decorator=n.createLayerDecorator(this.CURRENT_LINE_LAYER_CSS,this._PRIORITY,!1),this._enabled=!1,this._currentHighlightedRanges=[],this._highlightColor=[],this._highlightListenerHandle=null},controlLineHighlight:function(e){e?(this._enabled=!0,this._handleAttachHighlightListener()):(this._enabled=!1,this._handleRemoveHighlightListener())},_handleRemoveHighlightListener:function(){this._highlightListenerHandle&&(this._highlightListenerHandle.remove(),this._highlightListenerHandle=null),this._clearCurrentHighlight(),this._decorator.applyChanges()},_handleAttachHighlightListener:function(){this._highlightListenerHandle||(this._highlightListenerHandle=t.after(this._cursorView,"onUpdate",function(){this._drawHighlightLine()}.bind(this)),this.own(this._highlightListenerHandle)),this._drawHighlightLine()},setHighlightColor:function(e){if(3===e.length)if(this._checkValidRGBValues(e)){if(this._highlightColor=e,this._enabled){var t=this._findCodeLineCursors(),i=this._getCurrentCursorLines(t);this._drawHighlight(i)}}else s.assert(this._checkValidRGBValues(e),"Color values are invalid, RGB values need to be integers between 0-255");else s.assert(3===e.length,"Color array is invalid, need to be defined as 3-element RGB array")},_checkValidRGBValues:function(e){var t=!0;return e.forEach((function(e){Number.isInteger(e)&&(e>=0&&e<=255)||(t=!1)})),t},_drawHighlightLine:function(){if(this._enabled){var e=this._findCodeLineCursors(),t=this._getCurrentCursorLines(e);this._checkIfRedrawing(t)&&this._drawHighlight(t)}},_drawHighlight:function(e){this._clearCurrentHighlight(),e.forEach((function(e){var t=o.getRangeFromLineNumber(this._document,e);n.isCodeContainer(t.getStartPosition().getNode())&&(this._highlightRange(t),this._currentHighlightedRanges.push(t))}),this),this._decorator.applyChanges()},_findCodeLineCursors:function(){return this._cursorController.getCursors().filter((function(e){return n.isCodeContainer(e.getCursorPosition().getNode())}))},_getCurrentCursorLines:function(e){var t=[];return e.forEach((function(e){var i=e.getCursorPosition();t.push(i.getLine()-1)})),t},_checkIfRedrawing:function(e){if(e.length!==this._currentHighlightedRanges.length)return!0;var t=this._currentHighlightedRanges.map((function(e){return e.getStartPosition().getLine()-1})),i=t.every((function(t){return-1!==e.indexOf(t)})),n=e.every((function(e){return-1!==t.indexOf(e)}),this);return!i||!n},_clearCurrentHighlight:function(){this._currentHighlightedRanges.forEach((function(e){this._decorator.clearRange(e)}),this),this._currentHighlightedRanges=[]},_highlightRange:function(e){s.assert(3===this._highlightColor.length,"The color has to be defined properly before drawing");var t={"background-color":a.generateRgbaCssString(this._highlightColor[0],this._highlightColor[1],this._highlightColor[2],this._LINE_HIGHLIGHT_OPACITY)};this._decorator.setStyle(e,t),this._decorator.addClass(e,[r.HIGHLIGHTED_LINE_CSS])},destroy:function(){this.inherited(arguments),this._handleRemoveHighlightListener()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(205),i(3585)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return t("linux")},requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.document","rtc.domnode","rtc.view"]}},createInstance:function(){return new n(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(410),i(257),i(206),i(207),i(3586)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(a,{constructor:function(e,o,a,l){this._cursorController=e,this._document=o,this._view=l,this._connectorSelections=new s,this.own(this._connectorSelections),this._middleClickInProgress=!1,this.own(r(a,"mousedown",t.hitch(this,"_mouseDown"))),this.own(r(a,"mouseup",t.hitch(this,"_mouseUp"))),this.own(i.after(this._cursorController,"onUpdate",n(this._cursorChanged.bind(this),100)))},_cursorChanged:function(){var e=this._cursorController.selectedText();e&&this._connectorSelections.setSelection(e)},_mouseDown:function(e){o.isMiddle(e)&&(this._middleClickInProgress=!0)},_mouseUp:function(e){if(o.isMiddle(e)&&this._middleClickInProgress){let n=this._view.fixEvent(e);var i=this._view.getPositionFromEvent(n);this._connectorSelections.getSelection().then(t.hitch(this,(function(e){this._setCursorAndText(i,e)})),(function(e){throw new Error("[Unsuccessful Paste] "+e)}))}this._middleClickInProgress=!1},_setCursorAndText:function(e,t){this._cursorController.setPositions([e]),this._document.insertTextAtCurrentPosition(t)},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(219),i(229),i(314)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{_SET_SELECTION_DATA_REQUEST:"/clipboardservice/setSelectionDataRequest",_GET_SELECTION_DATA_REQUEST:"/clipboardservice/getSelectionDataRequest",_GET_SELECTION_DATA_RESPONSE:"/clipboardservice/getSelectionDataResponse",_REQUEST_ID:"requestId",_RESPONSE_ID:"responseId",_CONTENTS:"text",_SUCCESS_FLAG:"success",constructor:function(){this._getSelectionPromise={},this.installListeners(),this._prevText=null},installListeners:function(){i.subscribe(this._GET_SELECTION_DATA_RESPONSE,"_handleGetSelectionData",this)},setSelection:function(e){if(e!==this._prevText){this._prevText=e;var t=n.generateUuid(),r=[];r.push({flavor:o.TEXT,content:e});var a={requestId:t,contents:r};i.publish(this._SET_SELECTION_DATA_REQUEST,a)}},getSelection:function(){var e=new t,r=n.generateUuid();this._getSelectionPromise[r]=e;var a={requestId:r,flavors:[o.TEXT]};return i.publish(this._GET_SELECTION_DATA_REQUEST,a),e.promise},_handleGetSelectionData:function(e){var t=e.data,i=t[this._CONTENTS];if(i){var n=t[this._RESPONSE_ID],o=this._getSelectionPromise[n];o&&(delete this._getSelectionPromise[n],i?o.resolve(i):o.reject(" [Clipboard Error] The data could not be retrieved "))}},destroy:function(){i.unsubscribe(this._GET_SELECTION_DATA_RESPONSE,"_handleGetSelectionData",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(208),i(3588)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.cursor","rtc.document","rtc.actionservice","rtc.clipboard","rtc.cutcopypaste.converter","rtc.keyhandler","rtc.cursorcontroller","rtc.contextmenu.documentcontributor","rtc.keyhandler.keyboardshortcutsmodel"]}},createInstance:function(e,t,i,n,r,a,s,l,c){return new o(e,t,i,n,r,a,s,l,c)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(206),i(245),i(203),i(204),i(253),i(251),i(207),i(208),i(249),i(294),i(1352)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return n(s,{_CONTEXT_MENU_GROUP:d.COPY_PASTE,constructor:function(e,t,i,n,s,c,d,u,h){if(this._cursor=e,this._document=t,this._actionService=i,this._clipboard=n,this._converter=s,this._keyHandler=c,this._cursorController=d,this._contextMenuContributor=u,this._keyboardShortcutsModel=h,"function"==typeof this._clipboard.getCopyPasteHandlers){var p=this._clipboard.getCopyPasteHandlers();this._keyHandler.enableBrowserCopyPaste(p)}else this._keyHandler.listenTo("copy",this._preventDefault),this._keyHandler.listenTo("cut",this._preventDefault),this._keyHandler.listenTo("paste",this._preventDefault);this._actions=[{id:a.CUT_COPY_PASTE.CUT_ACTION,enabled:!0,key:"ctrl_x",platformKey:{mac:"meta_x"},text:r.cutLabel,callback:o.hitch(this,"_cut")},{id:a.CUT_COPY_PASTE.COPY_ACTION,enabled:!0,key:"ctrl_c",platformKey:{mac:"meta_c"},text:r.copyLabel,callback:o.hitch(this,"_copy")},{id:a.CUT_COPY_PASTE.PASTE_ACTION,enabled:!0,key:"ctrl_v",platformKey:{mac:"meta_v"},text:r.pasteLabel,callback:o.hitch(this,"_paste")}],this._actionService.loadActions(this._actions),this.own(l.after(this._cursor,"onChange",o.hitch(this,this._updateActions))),this.own(l.after(this._cursorController,"onUpdate",o.hitch(this,this._updateActions))),this.own(l.after(this._document,"onChange",o.hitch(this,this._updateActionsOnDocumentChange),!0)),this.own(l.after(this._clipboard,"onClipboardDataChange",o.hitch(this,this._updateActions))),this._updateActions(),this._addOtherKeyBindings(),this._addActionsToContextMenu(),this._modifyCopyToFireFirst()},_addActionsToContextMenu:function(){this._actions.forEach((function(e){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,e.id)}),this)},_preventDefault:function(e){e.preventDefault()},_copy:function(){return!!this._actionService.getAction(a.CUT_COPY_PASTE.COPY_ACTION).enabled&&(u.copyFromDocument(this._clipboard,this._converter,this._cursorController),!0)},_cut:function(){return!!this._actionService.getAction(a.CUT_COPY_PASTE.CUT_ACTION).enabled&&(u.cutFromDocument(this._clipboard,this._cursor,this._converter,this._cursorController,this._document),!0)},_paste:function(){var e;return!!this._actionService.getAction(a.CUT_COPY_PASTE.PASTE_ACTION).enabled&&(e=this._converter.getRegisteredMimeTypes(),this._clipboard.getClipboardData(e).then(o.hitch(this,(function(e){var t=function(t){return e[t]};this._cursor.hasSelection()?this._converter.insertContentInDocumentAtSelection(this._cursor.getSelection(),t):this._converter.insertContentInDocumentAtPosition(this._cursor.position,t)})),(function(e){throw new Error("[Unsuccessful Paste] "+e)})),!0)},_updateActionsOnDocumentChange:function(e){e&&o.isArray(e)&&e.some((function(e){if(e.type===c.READONLY_STATE_CHANGE_EVENT)return this._updateActions(),!0}),this)},_updateActions:function(){var e=!this._isClipboardEmpty(),t=!this._document.isReadOnly()&&!this._cursor.isCursorReadOnly(),i=this._cursorController.hasSelection();this._actionService.updateAction(a.CUT_COPY_PASTE.PASTE_ACTION,{enabled:e&&t}),this._actionService.updateAction(a.CUT_COPY_PASTE.CUT_ACTION,{enabled:t&&i}),this._actionService.updateAction(a.CUT_COPY_PASTE.COPY_ACTION,{enabled:i})},_isClipboardEmpty:function(){return 0===this._clipboard.getAllFlavors().length},_addOtherKeyBindings:function(){i("mac")||(this._keyHandler.addBinding({key:"shift_delete"},a.CUT_COPY_PASTE.CUT_ACTION),this._keyHandler.addBinding({key:"ctrl_insert"},a.CUT_COPY_PASTE.COPY_ACTION),this._keyHandler.addBinding({key:"shift_insert"},a.CUT_COPY_PASTE.PASTE_ACTION))},_modifyCopyToFireFirst:function(){if(!e("mac")){var t=this._keyboardShortcutsModel.getMatchingActionGroup("ctrl_c",a.CUT_COPY_PASTE.COPY_ACTION);t&&t.contains("rtc_interrupt")&&(this._keyboardShortcutsModel.removeActionIdFromActionGroup(t,"rtc_interrupt"),this._keyboardShortcutsModel.addActionIdToActionGroup(t,"rtc_interrupt"))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3590)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter","rtc.document"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(547)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,n){this._converter=e,this._document=n,e.registerPasteHandler(i,t.hitch(this,"_convertAndPaste"))},_convertAndPaste:function(e,t,i){var n=this._converter.convertContentFromSource(i);return n&&this._document.insertContentAtCurrentPosition(n),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(378),i(205),i(3592)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(e){return t.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.cursor"]}},createInstance:function(e){return new n(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(237),i(314),i(664)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._cursor=e},getType:function(){return i.PROMPTLESS_STRING},convertFromMimeData:function(e){return t.textToContent(e,this._cursor.getNode())},priority:function(){return 90}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1353)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter","rtc.clipboardtempdirpath","rtc.internaldocument","rtc.view","rtc.view.decoration.viewmodel"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(224),i(203),i(210),i(213),i(578),i(452),i(579),i(3606),i(1883),i(3607),i(247),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return i(c,{DOCTYPE:'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n',LOCAL_FILE_PREFIX:"file:///",constructor:function(e){e=e||{},this._tagStack=[]},_reset:function(){this._styles={},this._numOfStyles=0,this._hasOutput=!1,this._pageTitle=null,this.inherited(arguments),this._uniqueId=h.generateUuid()},writeWithImageList:function(e,t,i,n,o,r){var a;this._imageList=[],this._view=o,this._decorationViewModel=r,this._imageFileDir=i;try{a=this.write(e,t,n,this._view,r)}finally{this._imageFileDir=null}return{html:a,images:this._imageList}},_extendSelectionForNonDocumentNodes:function(e,t){var i=t?e.previousSibling():e.nextSibling();i&&(t?(this._startNode=i.lastChild()?this._view.getNodeBox(i.lastChild()):this._view.getNodeBox(i),this._startPosInNode=this._startNode.length):(this._endNode=i.firstChild()?this._view.getNodeBox(i.firstChild()):this._view.getNodeBox(i),this._endPosInNode=0))},_write:function(){return this._writeBody(),this._writeOpening()+this._writeMain()+this._writeClosing()},_writeMain:function(){return this._writeContent().replace(/(\r\n|\n|\r)/gm,"<br>")},_writeContent:function(){return'<div class = "content">'+this._body+"</div>"},_writeOpening:function(){return this.DOCTYPE+"<html>"+this._writeHeader()+"<body>"},_writeClosing:function(){return"</body></html>"},_writeHeader:function(){var e="<head>";return e+='<meta http-equiv="Content-Type" content="text/html; charset=utf-8">',e+='<meta name="generator" content="MATLAB R2018b">',e+='<meta http-equiv="X-UA-Compatible" content="IE=edge,IE=9,chrome=1">',"clipboard"!==this._target&&(e+="<title>",e+=this._pageTitle||"Untitled",e+="</title>"),e+=this._writeStyles(),e+="</head>"},_writeStyles:function(){var e,i,r,a,s,c='<style type="text/css">\n';c+="* {margin: 0; padding: 0;}\n";var u=this._view.getNodeBox(this._internalDocument.root);if(e=o.getComputedStyle(u),i=t.filter(this._inheritedStyles,(function(){return!0})),r="","clipboard"===this._target&&n.contains(u.firstChild,"lineNode")){i=t.filter(i,(function(e){return"font-size"!==e&&"line-height"!==e}));var h=o.getComputedStyle(u.firstChild);r+="font-size: "+h["font-size"]+"; ",r+="line-height: "+h["line-height"]+"; "}for(a=0,a=0;a<i.length;a+=1)r+=i[a]+": "+e[i[a]]+"; ";for(s in c+="body {"+r+"}\n",c+="h1, h2 {font-weight: normal;}\n","clipboard"!==this._target&&(c+=".content { padding: 30px; }\n",c+="\n"),this._styles)this._styles.hasOwnProperty(s)&&(c+="."+s+" { "+this._styles[s]+" }\n");return c+="\n",c+=l.replace(/\n/g,"").replace(/}/g,"}\n").replace(/.rtePane /g,""),this._hasOutput&&(c+=d.writeOutputStyles()),c+="</style>"},_getStyleClass:function(e){var i,r,a,s,l=this._isNodeInDOM(e)?o.getComputedStyle(e):e.style,c=this._getParentNode(e),d=this._isNodeInDOM(c)?o.getComputedStyle(c):c.style,u=t.filter(this._inheritedStyles,(function(e){return l[e]!==d[e]})),h="",p=0;for(p=0;p<u.length;p+=1)i=l[u[p]],"text-decoration"===u[p]&&(i=i.indexOf("underline")>-1?"underline":"none"),h+=u[p]+": "+i+"; ";if("clipboard"===this._target)for(l.marginLeft&&((r=parseInt(l.marginLeft,10))>0&&4!==r?h+="margin-left:"+l.marginLeft+"; ":n.contains(e,"lineNode")&&(h+="margin-left: 1em; ")),p=1;p<this._nonInheritedStyles.length;p+=1)parseInt(l[this._nonInheritedStyles[p]],10)>0&&(h+=this._nonInheritedStyles[p]+": "+l[this._nonInheritedStyles[p]]+"; ");else for(p=0;p<this._nonInheritedStyles.length;p+=1)h+=this._nonInheritedStyles[p]+": "+l[this._nonInheritedStyles[p]]+"; ";for(s in this._styles)this._styles[s]===h&&(a=s);a||(a="S"+("clipboard"===this._target?this._uniqueId:"")+this._numOfStyles,this._numOfStyles+=1,this._styles[a]=h);return a},_openTag:function(e,t,i){i=i||"",this._body+="<"+e+i+">",this._tagStack.unshift({tag:e,node:t})},_startNodeElement:function(e){var t,i=this._getStyleClass(e),r="";if(n.contains(e,"SectionBlock"))return this._openTag("div",e," class = '"+e.className+"'"),!1;if(n.contains(e,"CodeBlock"))return this._openTag("div",e," class = '"+e.className+"'"),!1;if(n.contains(e,"inlineWrapper"))return this._openTag("div",e," class = '"+e.className+"'"),!1;n.contains(e,"lineNode")&&"clipboard"!==this._target&&(r+=" lineNode",n.contains(e,"sectionStart")&&(r+=" sectionStart"),n.contains(e,"sectionEnd")&&(r+=" sectionEnd")),n.contains(e,"codeexample_matlab")?r+=" preformatted-matlab":n.contains(e,"codeexample_plain")&&(r+=" preformatted-plain");var s=t=' class = "'+i+r+'"',l=t;if(n.contains(e,"outputParagraph")){this._hasOutput=!0;var c=d.processOutput(e,this._embeddedOutputsView);return this._saveImagesToDisk()&&(c=a.convertDataURIsInNode(c,this._imageFileDir,this._imageList)),this._body+=c.outerHTML,!0}if(n.contains(e,"heading-1"))this._pageTitle||(this._pageTitle=this._getNodeText(e)),this._openTag("h1",e,l);else if(n.contains(e,"heading-2"))this._openTag("h2",e,l);else{if(n.contains(e,"textBox"))return this._openTag("span",e,s),this._writeTextNode(e),!0;if(n.contains(e,"equationNode"))return this._body+=this._writeEquationNode(e),!0;if(n.contains(e,"liveControlOuterNode"))return this._body+=this._writeLiveControlNode(e),!0;if(n.contains(this._getParentNode(e),"liveAppLineWidget")&&!n.contains(e,"liveAppCode"))return!0;if("div"===e.localName)return this._writeDiv(e,l);if("a"===e.localName)this._writeHyperLink(e);else if("img"===e.localName){var u=this._processDataURI(e.src);if(!u){var h=e.cloneNode(!0);return o.set(h,{width:e.clientWidth+"px",height:e.clientHeight+"px"}),this._body+=h.outerHTML,!0}this._openTag("img",e,' src="'+u+'" width="'+e.clientWidth+'" height="'+e.clientHeight+'"')}else this._openTag(e.localName,e,t)}return!1},_endNodeElement:function(e){this._tagStack.length&&this._tagStack[0].node===e&&(this._body+="</"+this._tagStack[0].tag+">",this._tagStack.shift())},_writeDiv:function(e,t){return"none"===e.style.display||(""===e.textContent&&"clipboard"===this._target&&(this._body+="\x3c!--[if mso]><br><![endif]--\x3e\n"),this._openTag("div",e,t),!1)},_writeChildNodeForTextNode:function(e,t){var i=this._getAttributes(t);e=e.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"clipboard"===this._target&&0===e.indexOf(" ")&&(t.previousElement&&!n.contains(t.previousElement,"textNode")||t.parentElement.previousElementSibling&&!n.contains(t.parentElement.previousElementSibling,"textNode"))&&(e=e.replace(/\s/,"&nbsp;")),this._body+="<span"+i+">"+e+"</span>"},_getAttributes:function(e){return' class="'+this._getStyleClass(e)+'"'+this._getIdAttribute(e)},_getIdAttribute:function(e){var t=e.parentElement&&e.parentElement.rteNode?e.parentElement.rteNode.textContainer():null,i="";return t&&t.anchorId&&(i=' id="'+t.anchorId+'" '),i},_writeEquationNode:function(e){var t=s.exportDomnodeToImageURL(e,2);if(t.simpleEquation)return s.simpleEquationToHTML(t.simpleEquation);var i=this._processDataURI(t.dataURL);i||(i=t.dataURL);var n=e.rteNode.getAltTextString();n&&(n=' alt="'+r.escapeHTML(n)+'" ');var o='<span style="vertical-align:'+Math.round(t.verticalAlign)+'px"><img src="'+i+'" width="'+t.width/2+'" height="'+t.height/2+'"'+n+"/>";return o+="</span>"},_writeLiveControlNode:function(e){return e.getElementsByClassName("liveControlTextView")[0].innerHTML},_saveImagesToDisk:function(){return this._imageFileDir&&this._imageList},_processDataURI:function(e){if(this._saveImagesToDisk())return a.pushImageAndGetPathFromURI(e,this._imageFileDir,this._imageList)},_writeHyperLink:function(e,t){var i="",n=u.escapeHtml(e.getAttribute("href"));e.target&&t&&(i+=t),i+=' href = "'+n.replace(/"/g,"&quot;")+'"',this._openTag("a",e,i)},_normalizeUrl:function(e){return 0===e.indexOf("internal:")&&(e=e.replace("internal:","#")),e.replace(/"/g,"&quot;")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){"use strict";return{getGlyphShift:function(t,i,n){var o=0;if(!(e("ff")||e("chrome")>70))return o;var r=parseFloat(n.fontSize);return o=i.h-r,-1!==t.className.search(/\bextra[1-5]?\b/)?t.classList.contains("extra2")?e("mac")&&e("ff")||e("win")&&e("ff")>=52?o*=.4:o*=.8:e("win")&&e("ff")>=52?o*=.28:o*=e("mac")&&e("ff")?.28:.02:-1!==t.className.search(/\bstixsize[0-5]\b/)?(t.classList.contains("stixsize0")&&(o*=e("linux")?.78:.84),t.classList.contains("stixsize5")?o*=(e("mac"),.6):e("win")&&e("ff")>=52?o*=.85:o*=!e("mac")||e("chrome")>70?.91:.85):o*=.68,o}}}),e,t),e.exports=o},function(e,t,i){var n;!function(){var o=this;function r(e,t,i){return e.call.apply(e.bind,arguments)}function a(e,t,i){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var i=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(i,n),e.apply(t,i)}}return function(){return e.apply(t,arguments)}}function s(e,t,i){return(s=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?r:a).apply(null,arguments)}var l=Date.now||function(){return+new Date};function c(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var d=!!o.FontFace;function u(e,t,i,n){if(t=e.c.createElement(t),i)for(var o in i)i.hasOwnProperty(o)&&("style"==o?t.style.cssText=i[o]:t.setAttribute(o,i[o]));return n&&t.appendChild(e.c.createTextNode(n)),t}function h(e,t,i){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(i,e.lastChild)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t,i){t=t||[],i=i||[];for(var n=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var r=!1,a=0;a<n.length;a+=1)if(t[o]===n[a]){r=!0;break}r||n.push(t[o])}for(t=[],o=0;o<n.length;o+=1){for(r=!1,a=0;a<i.length;a+=1)if(n[o]===i[a]){r=!0;break}r||t.push(n[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function g(e,t){for(var i=e.className.split(/\s+/),n=0,o=i.length;n<o;n++)if(i[n]==t)return!0;return!1}function m(e,t,i){function n(){s&&o&&r&&(s(a),s=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,r=!0,a=null,s=i||null;d?(t.onload=function(){o=!0,n()},t.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),n()}):setTimeout((function(){o=!0,n()}),0),h(e,"head",t)}function _(e,t,i,n){var o=e.c.getElementsByTagName("head")[0];if(o){var r=u(e,"script",{src:t}),a=!1;return r.onload=r.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,i&&i(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&o.removeChild(r))},o.appendChild(r),setTimeout((function(){a||(a=!0,i&&i(Error("Script load timeout")))}),n||5e3),r}return null}function v(){this.a=0,this.c=null}function b(e){return e.a++,function(){e.a--,C(e)}}function y(e,t){e.c=t,C(e)}function C(e){0==e.a&&e.c&&(e.c(),e.c=null)}function T(e){this.a=e||"-"}function E(e,t){this.c=e,this.f=4,this.a="n";var i=(t||"n4").match(/^([nio])([1-9])$/i);i&&(this.a=i[1],this.f=parseInt(i[2],10))}function S(e){var t=[];e=e.split(/,\s*/);for(var i=0;i<e.length;i++){var n=e[i].replace(/['"]/g,"");-1!=n.indexOf(" ")||/^\d/.test(n)?t.push("'"+n+"'"):t.push(n)}return t.join(",")}function w(e){return e.a+e.f}function I(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function A(e){var t=4,i="n",n=null;return e&&((n=e.match(/(normal|oblique|italic)/i))&&n[1]&&(i=n[1].substr(0,1).toLowerCase()),(n=e.match(/([1-9]00|normal|bold)/i))&&n[1]&&(/bold/i.test(n[1])?t=7:/[1-9]00/.test(n[1])&&(t=parseInt(n[1].substr(0,1),10)))),i+t}function x(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new T("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function N(e){if(e.g){var t=g(e.f,e.a.c("wf","active")),i=[],n=[e.a.c("wf","loading")];t||i.push(e.a.c("wf","inactive")),f(e.f,i,n)}L(e,"inactive")}function L(e,t,i){e.j&&e.h[t]&&(i?e.h[t](i.c,w(i)):e.h[t]())}function D(){this.c={}}function M(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function P(e){h(e.c,"body",e.a)}function O(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+S(e.c)+";font-style:"+I(e)+";font-weight:"+e.f+"00;"}function R(e,t,i,n,o,r){this.g=e,this.j=t,this.a=n,this.c=i,this.f=o||3e3,this.h=r||void 0}function k(e,t,i,n,o,r,a){this.v=e,this.B=t,this.c=i,this.a=n,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=r||null,this.m=this.j=this.h=this.g=null,this.g=new M(this.c,this.s),this.h=new M(this.c,this.s),this.j=new M(this.c,this.s),this.m=new M(this.c,this.s),e=O(e=new E(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=O(e=new E(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=O(e=new E("serif",w(this.a))),this.j.a.style.cssText=e,e=O(e=new E("sans-serif",w(this.a))),this.m.a.style.cssText=e,P(this.g),P(this.h),P(this.j),P(this.m)}T.prototype.c=function(e){for(var t=[],i=0;i<arguments.length;i++)t.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},R.prototype.start=function(){var e=this.c.o.document,t=this,i=l(),n=new Promise((function(n,o){!function r(){l()-i>=t.f?o():e.fonts.load(function(e){return I(e)+" "+e.f+"00 300px "+S(e.c)}(t.a),t.h).then((function(e){1<=e.length?n():setTimeout(r,25)}),(function(){o()}))}()})),o=null,r=new Promise((function(e,i){o=setTimeout(i,t.f)}));Promise.race([r,n]).then((function(){o&&(clearTimeout(o),o=null),t.g(t.a)}),(function(){t.j(t.a)}))};var F={D:"serif",C:"sans-serif"},B=null;function H(){if(null===B){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(o.navigator.userAgent);B=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return B}function V(e,t,i){for(var n in F)if(F.hasOwnProperty(n)&&t===e.f[F[n]]&&i===e.f[F[n]])return!0;return!1}function j(e){var t,i=e.g.a.offsetWidth,n=e.h.a.offsetWidth;(t=i===e.f.serif&&n===e.f["sans-serif"])||(t=H()&&V(e,i,n)),t?l()-e.A>=e.w?H()&&V(e,i,n)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?U(e,e.v):U(e,e.B):function(e){setTimeout(s((function(){j(this)}),e),50)}(e):U(e,e.v)}function U(e,t){setTimeout(s((function(){p(this.g.a),p(this.h.a),p(this.j.a),p(this.m.a),t(this.a)}),e),0)}function W(e,t,i){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=i}k.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=l(),j(this)};var G=null;function z(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&f(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),L(e,"active")):N(e.a))}function q(e){this.j=e,this.a=new D,this.h=0,this.f=this.g=!0}function K(e,t,i,n,r){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=r||null,l=n||{};if(0===i.length&&a)N(t.a);else{t.f+=i.length,a&&(t.j=a);var c,d=[];for(c=0;c<i.length;c++){var u=i[c],h=l[u.c],p=t.a,g=u;if(p.g&&f(p.f,[p.a.c("wf",g.c,w(g).toString(),"loading")]),L(p,"fontloading",g),p=null,null===G)if(o.FontFace){g=/Gecko.*Firefox\/(\d+)/.exec(o.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(o.navigator.userAgent)&&/Apple/.exec(o.navigator.vendor);G=g?42<parseInt(g[1],10):!m}else G=!1;p=G?new R(s(t.g,t),s(t.h,t),t.c,u,t.s,h):new k(s(t.g,t),s(t.h,t),t.c,u,t.s,e,h),d.push(p)}for(c=0;c<d.length;c++)d[c].start()}}),0)}function X(e,t){this.c=e,this.a=t}function Y(e,t){this.c=e,this.a=t}function Q(e,t){this.c=e||$,this.a=[],this.f=[],this.g=t||""}W.prototype.g=function(e){var t=this.a;t.g&&f(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),L(t,"fontactive",e),this.m=!0,z(this)},W.prototype.h=function(e){var t=this.a;if(t.g){var i=g(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),n=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];i||n.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),f(t.f,n,o)}L(t,"fontinactive",e),z(this)},q.prototype.load=function(e){this.c=new c(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,i){var n=[],o=i.timeout;!function(e){e.g&&f(e.f,[e.a.c("wf","loading")]),L(e,"loading")}(t);n=function(e,t,i){var n,o=[];for(n in t)if(t.hasOwnProperty(n)){var r=e.c[n];r&&o.push(r(t[n],i))}return o}(e.a,i,e.c);var r=new W(e.c,t,o);for(e.h=n.length,t=0,i=n.length;t<i;t++)n[t].load((function(t,i,n){K(e,r,t,i,n)}))}(this,new x(this.c,e),e)},X.prototype.load=function(e){var t=this,i=t.a.projectId,n=t.a.version;if(i){var o=t.c.o;_(this.c,(t.a.api||"https://fast.fonts.net/jsapi")+"/"+i+".js"+(n?"?v="+n:""),(function(n){n?e([]):(o["__MonotypeConfiguration__"+i]=function(){return t.a},function t(){if(o["__mti_fntLst"+i]){var n,r=o["__mti_fntLst"+i](),a=[];if(r)for(var s=0;s<r.length;s++){var l=r[s].fontfamily;null!=r[s].fontStyle&&null!=r[s].fontWeight?(n=r[s].fontStyle+r[s].fontWeight,a.push(new E(l,n))):a.push(new E(l))}e(a)}else setTimeout((function(){t()}),50)}())})).id="__MonotypeAPIScript__"+i}else e([])},Y.prototype.load=function(e){var t,i,n=this.a.urls||[],o=this.a.families||[],r=this.a.testStrings||{},a=new v;for(t=0,i=n.length;t<i;t++)m(this.c,n[t],b(a));var s=[];for(t=0,i=o.length;t<i;t++)if((n=o[t].split(":"))[1])for(var l=n[1].split(","),c=0;c<l.length;c+=1)s.push(new E(n[0],l[c]));else s.push(new E(n[0]));y(a,(function(){e(s,r)}))};var $="https://fonts.googleapis.com/css";function J(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},ee={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},te={i:"i",italic:"i",n:"n",normal:"n"},ie=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var oe={Arimo:!0,Cousine:!0,Tinos:!0};function re(e,t){this.c=e,this.a=t}function ae(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new v,i=this.c,n=new Q(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var i=t.length,n=0;n<i;n++){var o=t[n].split(":");3==o.length&&e.f.push(o.pop());var r="";2==o.length&&""!=o[1]&&(r=":"),e.a.push(o.join(r))}}(n,o);var r=new J(o);!function(e){for(var t=e.f.length,i=0;i<t;i++){var n=e.f[i].split(":"),o=n[0].replace(/\+/g," "),r=["n4"];if(2<=n.length){var a;if(a=[],s=n[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var d;if((d=s[c]).match(/^[\w-]+$/))if(null==(h=ie.exec(d.toLowerCase())))d="";else{if(d=null==(d=h[2])||""==d?"n":te[d],null==(h=h[1])||""==h)h="4";else var u=ee[h],h=u||(isNaN(h)?"4":h.substr(0,1));d=[d,h].join("")}else d="";d&&a.push(d)}0<a.length&&(r=a),3==n.length&&(a=[],0<(n=(n=n[2])?n.split(","):a).length&&(n=Z[n[0]])&&(e.c[o]=n))}for(e.c[o]||(n=Z[o])&&(e.c[o]=n),n=0;n<r.length;n+=1)e.a.push(new E(o,r[n]))}}(r),m(i,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,i=[],n=0;n<t;n++)i.push(e.a[n].replace(/ /g,"+"));return t=e.c+"?family="+i.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(n),b(t)),y(t,(function(){e(r.a,r.c,oe)}))},re.prototype.load=function(e){var t=this.a.id,i=this.c.o;t?_(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(i.Typekit&&i.Typekit.config&&i.Typekit.config.fn){t=i.Typekit.config.fn;for(var n=[],o=0;o<t.length;o+=2)for(var r=t[o],a=t[o+1],s=0;s<a.length;s++)n.push(new E(r,a[s]));try{i.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(n)}}),2e3):e([])},ae.prototype.load=function(e){var t=this.f.id,i=this.c.o,n=this;t?(i.__webfontfontdeckmodule__||(i.__webfontfontdeckmodule__={}),i.__webfontfontdeckmodule__[t]=function(t,i){for(var o=0,r=i.fonts.length;o<r;++o){var a=i.fonts[o];n.a.push(new E(a.name,A("font-weight:"+a.weight+";font-style:"+a.style)))}e(n.a)},_(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var se=new q(o);se.a.c.custom=function(e,t){return new Y(t,e)},se.a.c.fontdeck=function(e,t){return new ae(t,e)},se.a.c.monotype=function(e,t){return new X(t,e)},se.a.c.typekit=function(e,t){return new re(t,e)},se.a.c.google=function(e,t){return new ne(t,e)};var le={load:s(se.load,se)};void 0===(n=function(){return le}.call(null,i,t,e))||(e.exports=n)}()},function(e,t,i){var n,o;n=[i(203),i(204),i(453),i(1877),i(1360),i(400),i(802),i(718)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";return e(o,{FLAVOR_MATHTYPE:"MathType",FLAVOR_MATHWORKS:"MathWorks",FLAVOUR_MATHML20:"MathML 2.0",constructor:function(e){e=e||{},this._math=null,this.operatorTable=null,this.identifierTable=null,this.identifierSymbolTable=null,this._parser=new n,this._initialFlavor=e.flavor||this.FLAVOUR_MATHML20,this.flavor=this._initialFlavor,this.rootElementName=e.rootElementName||"math"},initMaps:function(){this.actionMap=this.makeActionMap(),this.symbolMap=this.makeSymbolMap(),this.operatorTable={"⁡":"ZeroWidthSpace","⁢":"InvisibleTimes","⁣":"InvisibleComma","ⅆ":"d","∫":"intop","∮":"contourintop","⨍":"fpartintop","∑":"sum","∏":"prod","​":"ZeroWidthSpace","|":"verticalbar","‖":"dblverticalbar","⌈":"ceilleft","⌉":"ceilright","⌊":"floorleft","⌋":"floorright","〈":"anglebracketleft","⟨":"anglebracketleft","〉":"anglebracketright","⟩":"anglebracketright","︷":"overbrace","⏞":"overbrace","︸":"underbrace","⏟":"underbrace","~":"tildeAccent","˜":"smallTildeAccent","′":"prime","‾":"macron","ⅇ":"exponentiale","ⅈ":"imaginaryi","⋃":"bigcup","⋂":"bigcap","⨆":"bigsqcup","⨄":"biguplus","⋀":"bigwedge","⋁":"bigvee","⨀":"bigodot","⨁":"bigoplus","⨂":"bigotimes","◯":"bigcirc","▽":"bigtriangledown","△":"bigtriangleup","\\":"backslash","*":"*"},this.operatorTable["−"]=this.operatorTable["-"],this.identifierSymbolTable={"...":"ldots"},this.identifierTable={"ⅇ":"e","ⅈ":"i"}},parse:function(e){var t;return null===this.actionMap&&this.initMaps(),this.initBaseParser(),this.initParser(),"string"==typeof e?(e=r.entities.replace(e),t=this._parser.parseString(e)):(t={}).firstChild=e,t},makePEG:function(){return null},initParser:function(){this._unexpectedInput=!1,this._stretchySymbolBlacklist={},this.flavor=this._initialFlavor,this.annotations={}},makeSymbolMap:function(){var e={larr:"leftarrow",rarr:"rightarrow",uarr:"uparrow",darr:"downarrow",harr:"leftrightarrow",lArr:"Leftarrow",rArr:"Rightarrow",uArr:"Uparrow",dArr:"Downarrow",hArr:"Leftrightarrow"};return e},makeActionMap:function(){var e={mrow:[this.appendMrow],mfrac:[this.appendMfrac],msub:[this.appendMsub,"script"],msup:[this.appendMsup,"script"],msubsup:[this.appendMsubsup,"script"],munder:[this.appendMsub,"stack"],mover:[this.appendMsup,"stack"],munderover:[this.appendMsubsup,"stack"],mi:[this.appendMi],mo:[this.appendMo],mn:[this.appendMn],mfenced:[this.appendMfenced],msqrt:[this.appendMsqrt],mroot:[this.appendMroot],mtable:[this.appendMtable],malignmark:[this.appendMalignmark],mtext:[this.appendMtext],mstyle:[this.appendMstyle],maction:[this.appendMaction],mmultiscripts:[this.appendMmultiscripts],parsererror:[this.appendMrow],h3:[this.appendMrow],mspace:[this.appendMspace],mphantom:[this.noAppend],mpadded:[this.noAppend],ms:[this.appendMs],menclose:[this.appendMrow],semantics:[this.appendSemantics],maligngroup:[this.noAppend],annotation:[this.appendAnnotation],"annotation-xml":[this.noAppend],"#comment":[this.noAppend]};return e[this.rootElementName]=[this.appendMath],e},_getName:function(e){var t=e.localName;return t||(t=e.nodeName),t.toLowerCase()},append:function(e){if(!e)return null;var t=this._getName(e),i=this.actionMap[t],n=null;return i?1===i.length?n=i[0].call(this,e):2===i.length&&(n=i[0].call(this,e,i[1])):this._unexpectedInput=!0,n},makeEquation:function(e){var t;return e&&e.firstChild&&(t=this.append(e.firstChild),Object.keys(this._stretchySymbolBlacklist).length>0&&(t=this.append(e.firstChild))),t||(t=this.makeBrokenEquationReplacement(),this._unexpectedInput=!0),t.foundEncodingIssues=this._unexpectedInput,t.creator="MathML",t.creatorFlavor=this.flavor,t.annotations=this.annotations,t},_trim:function(e){return e.replace(/^ +| +$/gm,"")},getText:function(e,t){var i,n;return i=!1!==(t=t||{}).trim,e.firstChild&&(n=e.firstChild.data)?i?this._trim(n):n:""},appendMath:function(e){var t,n=this.attributes(e),o=n.display;return"inline"===o&&(n.inline=!0),"block"===o&&(n.inline=!1),n[i.XMLNSMWMMLX_PREFIX]&&(this.flavor=this.FLAVOR_MATHWORKS),t=this.makeRoot(n),this.fillImplicitRow(e,t.children[0]),t},fillItemOrRow:function(e,t){e&&"mrow"===this._getName(e)?this.fillRow(e,t):(this.pushRow(t),this.append(e),this.popRow())},_isTextOrComment:function(e){var t=this._getName(e);return"#text"===t||"#comment"===t},_skipTextOrComment:function(e){for(;e&&this._isTextOrComment(e);)e=e.nextSibling;return e},_skipTextOrCommentBack:function(e){for(;e&&this._isTextOrComment(e);)e=e.previousSibling;return e},_firstElementChild:function(e){return this._skipTextOrComment(e.firstChild)},_lastElementChild:function(e){return this._skipTextOrCommentBack(e.lastChild)},_nextElementSibling:function(e){return this._skipTextOrComment(e.nextSibling)},_childElements:function(e){for(var t=[],i=this._firstElementChild(e);i;)t.push(i),i=this._nextElementSibling(i);return t},fillImplicitRow:function(e,t,i){var n=this._firstElementChild(e);n&&"mrow"===this._getName(n)&&!this._nextElementSibling(n)?this.fillRow(n,t,i):this.fillRow(e,t,i)},_scanChildForDelimiter:function(e,t){var i;e&&((i=e.symbolName)&&r.isDelimiter(i)?(r.isOpeningDelimiter(i)?(t.parens.push(1),t.parencount+=1,t.first||(t.needsSubRows=!0)):r.isClosingDelimiter(i)?(t.parens.push(-1),t.parencount-=1):t.parens.push(0),t.parencount<0&&(t.balancedParens=!1)):t.parens.push(0),t.first=!1)},_scanRowForDelimiters:function(e,t,i){var n,o,r={parens:[],needsSubRows:!1,parencount:0,balancedParens:!0,first:!0};for(this.pushRow(t),o=this._firstElementChild(e);o;)!r.first&&i&&this.pushSymbol(","),n=this.append(o),this._scanChildForDelimiter(n,r),o=this._nextElementSibling(o);return 0!==r.parencount&&(r.balancedParens=!1),r.needsSubRows=r.needsSubRows&&r.balancedParens&&!i,this.popRow(),{needsSubRows:r.needsSubRows,parens:r.parens}},fillRow:function(e,t,i){var n,o,r,a;if(s.copyCommonAttributes(this.attributes(e),t),i=i||!1,a=this._scanRowForDelimiters(e,t,i),this.flavor===this.FLAVOR_MATHTYPE&&a.needsSubRows){for(r=t.children,t.children=[],this.pushRow(t),n=0;n<r.length;n+=1)1===a.parens[n]&&(o=this.makeRow(),this.push(o),this.pushRow(o)),this.push(r[n]),-1===a.parens[n]&&this.popRow();this.popRow()}},noAppend:function(){return null},appendMrow:function(e){var t;return t=this.makeRow(this.attributes(e)),this.push(t),this.fillRow(e,t),t},appendSemantics:function(e){return this.fillImplicitRow(e,this.row),this.row},appendAnnotation:function(e){return this.annotations[this.attributes(e).encoding]=t.trim(e.textContent),null},appendMn:function(e){return this.pushNumber(this.getText(e),this.attributes(e))},appendMspace:function(e){var t=this.attributes(e),i=0;return t.hasOwnProperty("width")&&"em"===t.width.slice(-2)&&(i=parseFloat(t.width)),this.pushMspace(i)},appendToPreviousId:function(e){var t,i=this.row.children;return i.length>0&&"MathText"===(t=i[i.length-1]).className&&"id"===t.kind&&1===e.length&&(t.text=t.text+e,!0)},appendIdentifier:function(e,t){var i;return i=e.length>1?"code":"id",this.pushText(e,i,t)},appendMi:function(e){var i;i=this.flavor===this.FLAVOR_MATHTYPE?" "===(i=this.getText(e,{trim:!1}))?" ":t.trim(i):this.getText(e);var n=r.unicodeMap,o=this.identifierSymbolTable[i]||(n?n[i]:null);return o?this.pushSymbol(o,this.attributes(e)):this.appendIdentifier(this.identifierTable[i]||i,this.attributes(e))},attributes:function(e){var t,n,o={},r=e.attributes;for(n=0;n<r.length;n+=1){var a=(t=r[n]).name;t.name.slice(0,3)===i.NSMW_PREFIX+":"?a=i.NSMWMMLX_PREFIX+t.name.slice(2):t.name===i.XMLNSMW_PREFIX&&(a=i.XMLNSMWMMLX_PREFIX),"true"===t.value?t.value=!0:"false"===t.value&&(t.value=!1),o[a]=t.value}return o},_checkMoInMsubSup:function(e,t){var i,n=e.parentNode,o=this._firstElementChild(n),a=this._getName(n);"msub"!==a&&"msup"!==a&&"msubsup"!==a||(i=r.symbolMap[t],o===e&&i.stretchyDefault&&(this._stretchySymbolBlacklist[t]=!0))},_isStretchyDelim:function(e,t){return!0===e.stretchyDefault&&e.stretchy&&!1!==t.stretchy||!0===e.stretchy&&!0===t.stretchy},_appendSingleOperator:function(e,t,i){var n,o=r.symbolMap,a=this.operatorTable[i],s=null,l=o&&a?o[a]:null,c=!1,d=null;if(t.hasOwnProperty("stretchy")&&(t.stretchy="true"===t.stretchy),l){if("ZeroWidthSpace"===a)return null;c=this._isStretchyDelim(l,t),s=a,this._checkMoInMsubSup(e,s),this._stretchySymbolBlacklist[s]&&(c=!1)}else s=(n=r.unicodeMap)?n[i]:i,(l=o?o[s]:null)&&(c=this._isStretchyDelim(l,t));return s?d=c?this.pushDelim(s,t):this.pushSymbol(s,t):(a&&(i=a),d=this.pushCode(i,t)),d.attributes=t,d},appendMo:function(e){var i,n="",o=[],a=this.attributes(e),s=this.getText(e);return(s=this.mapSymbolName(s)).split("").forEach(t.hitch(this,(function(e){r.unicodeMap[e]?(n&&o.push(n),o.push(e),n=""):n+=e}))),n&&o.push(n),o.forEach(t.hitch(this,(function(t){i=this._appendSingleOperator(e,a,t)}))),i},appendMs:function(e){return this.pushCode('"'+this.getText(e)+'"',this.attributes(e))},appendMtext:function(e){var t=this.attributes(e);if(this.flavor===this.FLAVOR_MATHTYPE)return this.pushMtext(this.getText(e,{trim:!1}).replace(/ /g," ").replace(/\u0009/g,"        "),t);var i=this.getText(e,{trim:!1});return i=i.match(/^ +$/g)?i.replace(/ /g," "):this._trim(i),this.pushMtext(i,t)},appendMfrac:function(e){var t=this.attributes(e),i=this._firstElementChild(e),n=this._nextElementSibling(i),o=this.makeFraction(t);return this.push(o),this.fillItemOrRow(i,o.children[0]),this.fillItemOrRow(n,o.children[1]),o},appendMfenced:function(e){var t=this.makeFenced(this.attributes(e));return this.push(t),this.pushRow(t),this.fillRow(e,t.children[0],!0),this.popRow(),t},appendMstyle:function(e){var t=this.attributes(e);t.hasOwnProperty("displaystyle")&&(t.displaystyle="true"===t.displaystyle);var i=this.makeStyle(t);return this.push(i),this.fillImplicitRow(e,i.children[0]),i},appendMaction:function(e){var t,i=this.attributes(e),n=this._firstElementChild(e),o=this._nextElementSibling(n);return t=this.makeAction(i),this.push(t),this.fillItemOrRow(n,t.children[0]),"tooltip"===i.actiontype?this.fillItemOrRow(o,t.children[1]):t.children[1]=null,t},appendMsqrt:function(e){var t=this.makeRadical(this.attributes(e));return this.push(t),this.fillImplicitRow(e,t.children[0]),t},appendMroot:function(e){var t=this._firstElementChild(e),i=this._nextElementSibling(t),n=this.makeRadical(this.attributes(e));return this.push(n),this.fillItemOrRow(t,n.children[0]),this.fillItemOrRow(i,n.children[1]),n},parseAlign:function(e){var t,i=e.split(" "),n="";for(t=0;t<i.length;t+=1)i[t]&&(n+=i[t].charAt(0));return n},parseLinesAttribute:function(e){return e.split(" ")},parseAlignList:function(e){var i,n,o="";if((e=t.trim(e)).length<2)return"";if("{"!==e[0]||"}"!==e[-1])return this.parseAlign(e);for(n=e.slice(1,-2).split("} *{"),i=0;i<n.length;i+=1)o+=n(i)?this.parseAlign(n[i]).charAt(0):"a";return o},appendMalignmark:function(e){return this.pushText("","alignmark",this.attributes(e))},appendMtable:function(e){var t,i=this.attributes(e),n=this._childElements(e),o=n.length,r=0;for(t=0;t<o;t+=1)"mtr"!==n[t].localName?n[t]=[n[t]]:n[t]=this._childElements(n[t]),r=Math.max(r,n[t].length);i.rows=o,i.cols=r,i.columnalign&&(i.colspec=this.parseAlign(i.columnalign)),i.groupalign&&(i.colspec=this.parseAlignList(i.groupalign)),i.colspec||this.flavor!==this.FLAVOR_MATHTYPE||(i.colspec="a"),i.rowlines&&(i.rowlines=this.parseLinesAttribute(i.rowlines)),i.columnlines&&(i.columnlines=this.parseLinesAttribute(i.columnlines));var a=this.makeMatrix(i);for(t=0;t<n.length;t+=1)for(var s=n[t],l=0;l<r;l+=1){var c=this.makeRow();a.appendChild(c),l<s.length&&this.fillImplicitRow(s[l],c)}return this.push(a)},_setAccentProperties:function(e){if("stack"===e.limitStyle){var i=e.children[0],n=e.children[1],o=a.isNonEmptyRow(n),r=e.children[2],s=a.isNonEmptyRow(r),l=i&&i.getAccent(),c=r&&r.getAccent(),d=n&&n.getAccent();if(e.accent=!1,e.accentunder=!1,c&&(e.accent=!0,c.accentType="topaccent",c.renderAsAccent=!0),l&&(o||s)&&(l.renderAsAccent=!0),c&&(e.accent=!0,c.accentType="topaccent",c.renderAsAccent=!0),d){if("underscore"===d.symbolName){var u=t.mixin({},d,{symbolName:"macron"});n.children=[],n.children.push(this.makeDelim(u)),a.sanitizeModel(n),d=n&&n.getAccent()}e.accentunder=!0,d.accentType="bottomaccent",d.renderAsAccent=!0}}},appendMsub:function(e,t){var i,n,o=this.attributes(e),r=this._firstElementChild(e),a=this._nextElementSibling(r);if(t&&(o.limitStyle=t),i=this.makeScript(o),this.push(i),this.fillItemOrRow(r,i.children[0]),this.flavor===this.FLAVOR_MATHTYPE){for(n=this._lastElementChild(e),this.pushRow(i.children[0]);a!==n;)this.append(a),a=this._nextElementSibling(a);this.popRow()}return i.children[2]=null,this.fillItemOrRow(a,i.children[1]),this._setAccentProperties(i),i},appendMsup:function(e,t){var i,n,o=this.attributes(e),r=this._firstElementChild(e),a=this._nextElementSibling(r);if(t&&(o.limitStyle=t),i=this.makeScript(o),this.push(i),this.fillItemOrRow(r,i.children[0]),this.flavor===this.FLAVOR_MATHTYPE){for(n=this._lastElementChild(e),this.pushRow(i.children[0]);a!==n;)this.append(a),a=this._nextElementSibling(a);this.popRow()}return i.children[1]=null,this.fillItemOrRow(a,i.children[2]),this._setAccentProperties(i),i},appendMsubsup:function(e,t){var i,n=this.attributes(e),o=this._firstElementChild(e),r=this._nextElementSibling(o),a=this._nextElementSibling(r);return t&&(n.limitStyle=t),i=this.makeScript(n),this.push(i),this.fillItemOrRow(o,i.children[0]),this.flavor===this.FLAVOR_MATHTYPE&&a!==this._lastElementChild(e)&&console.warn("Broken MathML encoding: msubsup has more than 3 children"),this.fillItemOrRow(r,i.children[1]),this.fillItemOrRow(a,i.children[2]),this._setAccentProperties(i),i},_processOneMultiScriptChild:function(e,t){var i=null;t&&"none"!==t.localName&&(i=this.makeRow(),this.fillItemOrRow(t,i)),e.appendChild(i)},_processTwoMultiScriptChildren:function(e,t){return this._processOneMultiScriptChild(e,t),t=this._nextElementSibling(t),this._processOneMultiScriptChild(e,t),this._nextElementSibling(t)},appendMmultiscripts:function(e){var t=this._firstElementChild(e),i=this.makeMultiScript(this.attributes(e)),n=0;this.push(i),this.fillItemOrRow(t,i.children[0]);for(var o=this._nextElementSibling(t);o&&"mprescripts"!==o.localName;)o=this._processTwoMultiScriptChildren(i,o),n+=1;for(i.numPostPairs=n,o&&(o=this._nextElementSibling(o));o;)o=this._processTwoMultiScriptChildren(i,o);return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(802),i(1360),i(1878),i(3599),i(523)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{constructor:function(){this.initParser(),this._initState()},initParser:function(){return this._input=null,this._n=0,null},_initState:function(){this._italic=!1,this._bold=!1,this._lineBreaks=[]},makePEG:function(){return new o(r.rulenames,r.rules,0)},makeSymbolMap:function(){return{}},makeActionMap:function(){var e,t=this.peg.names,i=[this._appendChildren],n={Char:[this._appendChar,"number"],SubSup:[this._appendSubSup],Nest:[this._appendNest],Size:[this._appendSize],Color:[this._appendColor],Style:[this._appendStyle],Newline:[this._appendNewline],Name:[this._appendName],Symbol:[this._appendSymbol],EscapedChar:[this._appendChar,"number"]};for(e=0;e<t.length;e+=1)n[t[e]]||(n[t[e]]=i);return n},makeEquation:function(e){var t=this.makeRoot();return this._initState(),e&&e.tree&&(this.str=e.str,this.fillRow(e.tree,t.children[0]),this._assembleLineBreaks(t)),i.sanitizeModel(t)},consume:function(e){this._n+=e},_peek:function(e){return this._input?this._input[this._n+e]:null},_setInput:function(e,t){this._input=e,this._n=t},_appendChildren:function(e){var t,i,n=e.children;if(0===n.length&&e.start<e.end)this.pushCode(this.slice(e));else if(n.length>0){for(t=this._input,i=this._n,this._setInput(n,0);this._n<this._input.length;)this._appendChild();this._setInput(t,i)}this.consume(1)},_appendChild:function(){var e=this._peek(0);this.append(e)},fillRow:function(e,t){this.pushRow(t),this.append(e),this.popRow()},_fillArg:function(e){var t=this._peek(0);t&&("Nest"===this.peg.names[t.name]?(this.pushRow(e),t.children.length>0?this._appendChildren(t):this.consume(1),this.popRow()):this.fillRow(t,e))},_isRegularScript:function(e){return"MathScript"===e.className&&!(!0===e.accent)},_appendSubSup:function(e){var i,n,o=t.trim(this.slice(e)),r=null,a=!1;this.consume(1),(n=this.row.children).length>0&&this._isRegularScript(n[n.length-1])?r=n.pop():(r=this.makeScript(),a=!0,n.length>0&&("MathRow"===(i=n.pop()).className?r.replaceChild(0,i):r.children[0].appendChild(i))),this.row.setChildren(n),"^"===o?(a?r.replaceChild(1,null):r.replaceChild(2,this.makeRow()),this._fillArg(r.children[2])):(a?r.replaceChild(2,null):r.replaceChild(1,this.makeRow()),this._fillArg(r.children[1])),this.push(r)},_pushTextWithStyle:function(e,t){var i={kind:t};this.pushText(e,t,i)},_appendChar:function(e,t){var i=this.slice(e);" "===i?this.push(this.makeSpace({length:.5})):this._pushTextWithStyle(i,t),this.consume(1)},_appendSymbol:function(e){var i=t.trim(this.slice(e)),n={int:"intop",copyright:"©",0:"emptyset",circ:"°",clubsuit:"♣",diamondsuit:"♦",heartsuit:"♥",spadesuit:"♠",langle:"anglebracketleft",rangle:"anglebracketright",lceil:"ceilleft",rceil:"ceilright",lfloor:"floorleft",rfloor:"floorright",vee:"lor",wedge:"land"}[i];n&&(i=n),this.pushSymbol(i),this.consume(1)},_appendStyle:function(e){var i={rm:"normal",it:"italic",sl:"italic",bf:"bold"}[t.trim(this.slice(e))],n=this._italic;"italic"===i&&(this._italic=!0);var o=this._bold;"bold"===i&&(this._bold=!0),this._handleStyle(t.hitch(this,(function(e){i&&(this._italic&&"bold"===i&&(i="bold-italic"),this._bold&&"italic"===i&&(i="bold-italic"),e.mathvariant=i)}))),this._italic=n,this._bold=o},_appendNewline:function(){var e=this.makeRow();e.setChildren(this.row.children),this._lineBreaks.push(e),this.row.setChildren([]),this.consume(1)},_assembleLineBreaks:function(e){var t,i,n;this._lineBreaks.length>0&&(this._lineBreaks.push(e.children[0]),n={rows:this._lineBreaks.length,cols:1,children:this._lineBreaks,colspec:"l"},t=this.makeMatrix(n),(i=this.makeRow()).appendChild(t),e.replaceChild(0,i))},_appendNest:function(e){var t=this.makeRow({TeXSpacing:a.ORD});this.row.appendChild(t),this.pushRow(t),e.children.length>0?this._appendChildren(e):this.consume(1),this.popRow()},_splitAndReturnRow:function(){var e=this.row.children;for(this.row.setChildren([]);this._n<this._input.length;)this._appendChild();return e},_handleStyle:function(e){var t={};this.consume(1);var i=this._splitAndReturnRow(),n=this.row.children;this.row.setChildren(i),e(t);var o=this.makeStyle(t);o.children[0].setChildren(n),this.push(o)},_appendSize:function(e){this._handleStyle(t.hitch(this,(function(i){var n=e.children[0],o=t.trim(this.slice(n)),r=parseInt(o)||0;i.mathsize=r+"pt"})))},_numToHex:function(e){var t;return e>255&&(e=255),e<0&&(e=0),(t=e.toString(16)).length<2&&(t="0"+t),t},_namedColorToHTMLColor:function(e){return{red:"#F00",green:"#0F0",blue:"#00F",black:"#000",white:"#FFF",cyan:"#0FF",magenta:"#F0F",yellow:"#FF0",gray:"#808080",orange:"#FF8000",lightBlue:"#60BCFC",darkGreen:"#6B963D"}[e]},_rgbColorToHTMLColor:function(e,t,i){var n,o,r;return n=Math.round(255*parseFloat(e)),o=Math.round(255*parseFloat(t)),r=Math.round(255*parseFloat(i)),"#"+this._numToHex(n)+this._numToHex(o)+this._numToHex(r)},_appendColor:function(e){this._handleStyle(t.hitch(this,(function(i){var n,o=e.children[0];if(3===o.children.length){var r=t.trim(this.slice(o.children[0])),a=t.trim(this.slice(o.children[1])),s=t.trim(this.slice(o.children[2]));n=this._rgbColorToHTMLColor(r,a,s)}else n=t.trim(this.slice(o)),n=this._namedColorToHTMLColor(n);n&&(i.style="color: "+n)})))},_appendName:function(e){this._handleStyle(t.hitch(this,(function(i){var n=e.children[0],o=t.trim(this.slice(n));i.style="font-family: "+o})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{rulenames:["Math","Char","SubSup","Nest","Cmd","EscapedChar","Style","Name","s","String","Size","Number","Newline","Color","ExplicitColor","Float","NamedColor","Symbol"],rules:[[0,0,2,5,11,13,2,3,11,9,2,4,11,5,2,2,1,6,-16,13,2],[17,1,125,125,13,0],[16,2,95,95,94,94,13,0],[0,3,1,123,10,10,2,1,10,6,3,1,125,1,13,2],[0,3,1,92,10,31,0,2,14,11,25,2,6,11,21,2,7,11,17,2,8,11,13,2,11,11,9,2,18,11,5,2,13,1,1,13,0],[16,5,123,123,125,125,95,95,94,94,92,92,13,0],[0,3,2,114,109,11,19,3,2,98,102,11,13,3,2,105,116,11,7,3,2,115,108,1,13,0],[0,3,9,102,111,110,116,110,97,109,101,123,10,14,2,9,10,10,2,10,10,6,3,1,125,1,13,2],[0,16,4,32,32,9,9,13,13,10,10,6,-10],[9,0,17,1,125,125,5,-4,13,0],[0,3,9,102,111,110,116,115,105,122,101,123,10,18,2,9,10,14,2,12,10,10,2,9,10,6,3,1,125,1,13,2],[9,0,16,1,48,57,5,-4,13,0],[3,7,110,101,119,108,105,110,101,13,0],[0,3,5,99,111,108,111,114,10,48,0,0,3,1,123,10,10,2,17,10,6,3,1,125,1,11,30,0,3,6,91,114,103,98,93,123,10,18,2,9,10,14,2,15,10,10,2,9,10,6,3,1,125,1,1,1,13,2],[0,2,16,10,39,2,9,10,35,0,3,1,44,4,10,28,2,9,10,24,2,16,10,20,2,9,10,16,0,3,1,44,4,10,9,2,9,10,5,2,16,1,13,0],[0,0,2,12,10,16,0,0,3,1,46,10,7,0,2,12,4,1,4,1,11,12,0,3,1,46,10,5,2,12,1,1,13,2],[0,3,3,114,101,100,11,109,3,5,103,114,101,101,110,11,100,3,4,98,108,117,101,11,92,3,5,98,108,97,99,107,11,83,3,5,119,104,105,116,101,11,74,3,4,99,121,97,110,11,66,3,7,109,97,103,101,110,116,97,11,55,3,6,121,101,108,108,111,119,11,45,3,4,103,114,97,121,11,37,3,6,111,114,97,110,103,101,11,27,3,9,108,105,103,104,116,66,108,117,101,11,14,3,9,100,97,114,107,71,114,101,101,110,1,13,0],[0,3,5,97,108,112,104,97,11,949,3,4,98,101,116,97,11,941,3,5,103,97,109,109,97,11,932,3,5,100,101,108,116,97,11,923,3,7,101,112,115,105,108,111,110,11,912,3,4,122,101,116,97,11,904,3,3,101,116,97,11,897,3,5,116,104,101,116,97,11,888,3,8,118,97,114,116,104,101,116,97,11,876,3,4,105,111,116,97,11,868,3,5,107,97,112,112,97,11,859,3,6,108,97,109,98,100,97,11,849,3,2,109,117,11,843,3,2,110,117,11,837,3,2,120,105,11,831,3,2,112,105,11,825,3,3,114,104,111,11,818,3,5,115,105,103,109,97,11,809,3,8,118,97,114,115,105,103,109,97,11,797,3,3,116,97,117,11,790,3,7,117,112,115,105,108,111,110,11,779,3,3,112,104,105,11,772,3,3,99,104,105,11,765,3,3,112,115,105,11,758,3,5,111,109,101,103,97,11,749,3,5,71,97,109,109,97,11,740,3,5,68,101,108,116,97,11,731,3,5,84,104,101,116,97,11,722,3,6,76,97,109,98,100,97,11,712,3,2,88,105,11,706,3,2,80,105,11,700,3,5,83,105,103,109,97,11,691,3,7,85,112,115,105,108,111,110,11,680,3,3,80,104,105,11,673,3,3,80,115,105,11,666,3,5,79,109,101,103,97,11,657,3,6,102,111,114,97,108,108,11,647,3,6,101,120,105,115,116,115,11,637,3,2,110,105,11,631,3,3,97,115,116,11,624,3,4,99,111,110,103,11,616,3,3,115,105,109,11,609,3,3,108,101,113,11,602,3,5,105,110,102,116,121,11,593,3,8,99,108,117,98,115,117,105,116,11,581,3,11,100,105,97,109,111,110,100,115,117,105,116,11,566,3,9,104,101,97,114,116,115,117,105,116,11,553,3,9,115,112,97,100,101,115,117,105,116,11,540,3,14,108,101,102,116,114,105,103,104,116,97,114,114,111,119,11,522,3,9,108,101,102,116,97,114,114,111,119,11,509,3,7,117,112,97,114,114,111,119,11,498,3,10,114,105,103,104,116,97,114,114,111,119,11,484,3,9,100,111,119,110,97,114,114,111,119,11,471,3,4,99,105,114,99,11,463,3,2,112,109,11,457,3,3,103,101,113,11,450,3,6,112,114,111,112,116,111,11,440,3,7,112,97,114,116,105,97,108,11,429,3,6,98,117,108,108,101,116,11,419,3,3,100,105,118,11,412,3,3,110,101,113,11,405,3,5,101,113,117,105,118,11,396,3,6,97,112,112,114,111,120,11,386,3,5,97,108,101,112,104,11,377,3,2,73,109,11,371,3,2,82,101,11,365,3,2,119,112,11,359,3,6,111,116,105,109,101,115,11,349,3,5,111,112,108,117,115,11,340,3,6,111,115,108,97,115,104,11,330,3,3,99,97,112,11,323,3,3,99,117,112,11,316,3,8,115,117,112,115,101,116,101,113,11,304,3,6,115,117,112,115,101,116,11,294,3,8,115,117,98,115,101,116,101,113,11,282,3,6,115,117,98,115,101,116,11,272,3,3,105,110,116,11,265,3,2,105,110,11,259,3,1,111,11,254,3,5,108,100,111,116,115,11,245,3,9,99,111,112,121,114,105,103,104,116,11,232,3,1,48,11,227,3,5,118,97,114,112,105,11,218,3,5,116,105,109,101,115,11,209,3,4,99,100,111,116,11,201,3,3,118,101,101,11,194,3,5,119,101,100,103,101,11,185,3,4,112,101,114,112,11,177,3,3,109,105,100,11,170,3,9,76,101,102,116,97,114,114,111,119,11,157,3,10,82,105,103,104,116,97,114,114,111,119,11,143,3,14,76,101,102,116,114,105,103,104,116,97,114,114,111,119,11,125,3,7,85,112,97,114,114,111,119,11,114,3,9,68,111,119,110,97,114,114,111,119,11,101,3,5,112,114,105,109,101,11,92,3,5,110,97,98,108,97,11,83,3,4,115,117,114,100,11,75,3,5,97,110,103,108,101,11,66,3,3,110,101,103,11,59,3,5,108,99,101,105,108,11,50,3,5,114,99,101,105,108,11,41,3,6,108,102,108,111,111,114,11,31,3,6,114,102,108,111,111,114,11,21,3,6,108,97,110,103,108,101,11,11,3,6,114,97,110,103,108,101,1,13,0]]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1354),i(1360),i(1878),i(3601),i(1867),i(523),i(400),i(802),i(911)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){"use strict";return e(n,{_NBSP:" ",constructor:function(){this._commandMap=this._makeCmdMap(),this._lineBreaks=[],this._hline=!1,this._hlineOnTop=!1,this._hlineAtBottom=!1,this._strict=!1},setStrict:function(e){this._strict=e},initParser:function(){return this._input=null,this._n=0,this._foundEncodingIssues=!1,null},makeSymbolMap:function(){return d.symbolMap},makePEG:function(){return new o(r.rulenames,r.rules,0)},makeActionMap:function(){var e,t=this.peg.names,i=[this._appendChildren],n={Letter:[this._appendFatString,"id"],Dashes:[this._appendDashes],TAccent:[this._appendTextAccent],TSpecialLetter:[this._appendTextSpecialLetter],Digit:[this._appendFatString,"number"],BinOp:[this.appendSymbol],RelOp:[this.appendSymbol],Cmd:[this._appendCmd],Cmd2:[this._appendCmd],SubSupOp:[this._appendSubSup],OpenCloseChars:[this.appendSymbol,{stretchy:!1}],Punct:[this._appendPunct],OrdChars:[this._appendOrdChars,{stretchy:!1}],Unicode:[this._appendOrdChars],BadTextChar:[this._appendBadTextChar],DelimiterNest:[this._appendDelimNest],MathNest:[this._appendNest],Array:[this._appendArray],Matrix:[this._appendMatrix],Cases:[this._appendCasesEnvironment],LineBreak:[this._appendLineBreak],SpecialCmd:[this._appendSpecialCmd],KernCmd:[this._appendKernCmd],BoxCmd:[this._appendBoxCmd],InlineInText:[this._appendInlineCmd],Content:[this._appendContentCmd],Blanks:[this._appendBlanks],Tilde:[this._appendBlanks],MathSpace:[this._appendMathSpace]};for(e=0;e<t.length;e+=1)n[t[e]]||(n[t[e]]=i);return n},_makeCmdMap:function(){var e=[this._appendOverCmd],t=[this._appendBraceCmd],i=[this._appendFunCmd],n=[this._appendFunCmd,"limits"],o=[this._appendSymbolCmd],r=[this._appendStyleCmd],a=[this._appendSpacingClassCmd],l={frac:[this._appendFracCmd],sqrt:[this._appendSqrtCmd],not:[this._appendNotCmd],over:e,atop:e,overwithdelims:e,atopwithdelims:e,brace:t,brack:t,choose:t,hat:[this._appendAccentCmd,"circumflex"],bar:[this._appendAccentCmd,"macron"],grave:[this._appendAccentCmd,"grave"],acute:[this._appendAccentCmd,"acute"],tilde:[this._appendAccentCmd,"sim"],breve:[this._appendAccentCmd,"breve"],dot:[this._appendAccentCmd,"dotabove"],ddot:[this._appendAccentCmd,"diaresis"],dddot:[this._appendAccentCmd,"tripledot"],ddddot:[this._appendAccentCmd,"dotdot"],check:[this._appendAccentCmd,"caron"],vec:[this._appendAccentCmd,"rightarrow"],big:[this._appendBigCmd,"1.2",s.ORD],Big:[this._appendBigCmd,"1.8",s.ORD],bigg:[this._appendBigCmd,"2.4",s.ORD],Bigg:[this._appendBigCmd,"3.0",s.ORD],bigl:[this._appendBigCmd,"1.2",s.OPEN],Bigl:[this._appendBigCmd,"1.8",s.OPEN],biggl:[this._appendBigCmd,"2.4",s.OPEN],Biggl:[this._appendBigCmd,"3.0",s.OPEN],bigm:[this._appendBigCmd,"1.2",s.REL],Bigm:[this._appendBigCmd,"1.8",s.REL],biggm:[this._appendBigCmd,"2.4",s.REL],Biggm:[this._appendBigCmd,"3.0",s.REL],bigr:[this._appendBigCmd,"1.2",s.CLOSE],Bigr:[this._appendBigCmd,"1.8",s.CLOSE],biggr:[this._appendBigCmd,"2.4",s.CLOSE],Biggr:[this._appendBigCmd,"3.0",s.CLOSE],bigcup:o,bigcap:o,bigsqcup:o,biguplus:o,bigwedge:o,bigvee:o,bigodot:o,bigoplus:o,bigotimes:o,cdotp:o,prod:o,sum:o,intop:o,prime:o,perp:o,mid:o,triangle:o,backslash:o,bmod:[this._appendBModCmd],pmod:[this._appendPModCmd],enspace:[this._appendQuadCmd,.5],quad:[this._appendQuadCmd,1],qquad:[this._appendQuadCmd,2],thinspace:[this._appendQuadCmd,.16667],negthinspace:[this._appendQuadCmd,-.16667],mathrm:[this._appendVariantCmd,"normal"],mathit:[this._appendVariantCmd,"italic"],mathbf:[this._appendVariantCmd,"bold"],mathtt:[this._appendVariantCmd,"monospace"],mathbb:[this._appendFatStringCmd,"blackboard"],mathcal:[this._appendFatStringCmd,"script"],mathfrak:[this._appendFatStringCmd,"fraktur"],limits:[this._setLimitsMode,"limits"],nolimits:[this._setLimitsMode,"nolimits"],overbrace:[this._appendUnderOverBraceCmd,"overbrace",!0,!1],underbrace:[this._appendUnderOverBraceCmd,"underbrace",!0,!0],overline:[this._appendUnderOverBraceCmd,"macron",!0,!1],underline:[this._appendUnderOverBraceCmd,"macron",!0,!0],overleftarrow:[this._appendUnderOverBraceCmd,"leftarrow",!0,!1],overrightarrow:[this._appendUnderOverBraceCmd,"rightarrow",!0,!1],overleftrightarrow:[this._appendUnderOverBraceCmd,"leftrightarrow",!0,!1],widehat:[this._appendUnderOverBraceCmd,"circumflex",!0,!1],widetilde:[this._appendAccentCmd,"widetilde"],mathord:a,mathop:a,mathbin:a,mathrel:a,mathopen:a,mathclose:a,mathpunct:a,mathinner:a,scriptscriptstyle:r,scriptstyle:r,textstyle:r,displaystyle:r,hline:[this._hlineCmd],rm:[this._appendFontCmd,"normal"],it:[this._appendFontCmd,"italic"],bf:[this._appendFontCmd,"bold"],tt:[this._appendFontCmd,"monospace"],cal:[this._appendFontCmd,"script"],stackrel:[this._appendStackrelCmd,!0],overset:[this._appendStackrelCmd,!0],underset:[this._appendStackrelCmd,!1]};return d.functionNames.forEach((function(e){l[e]=i})),d.limitsFunctionNames.forEach((function(e){l[e]=n})),l},makeEquation:function(e){var t,i=this.makeRoot();return this._lineBreaks=[],e&&e.tree&&(this.str=e.str,this.fillRow(e.tree,i.children[0]),this._assembleLineBreaks(i),t=this.name(e.tree),i.inline="Math"!==t),i.foundEncodingIssues=this._foundEncodingIssues,c.sanitizeModel(i)},consume:function(e){this._n+=e},_peek:function(e){return this._input?this._input[this._n+e]:null},unknownAction:function(e){this.pushMtext("\\"+e,{style:"color: rgb(255,0,0);"}),this._foundEncodingIssues=!0,this.consume(1)},_setInput:function(e,t){this._input=e,this._n=t},_handleTextWithWhiteSpace:function(e){var t=e.split(/ +/g);t.forEach(function(e,i){e&&this.pushMtext(e),i<t.length-1&&this.pushMtext(" ")}.bind(this))},_appendChildren:function(e){var t,i,n=e.children;if(0===n.length&&e.start<e.end)this._handleTextWithWhiteSpace(this.slice(e));else if(n.length>0){for(t=this._input,i=this._n,this._setInput(n,0);this._n<this._input.length;)this._appendChild();this._setInput(t,i)}this.consume(1)},_appendChild:function(){var e=this._peek(0);this.append(e)},_appendCmd:function(e){var i,n=t.trim(this.slice(e));n=n.slice(1),this._appendSlashSymbol(n)?this.consume(1):(i=this._commandMap[n],this.fireAction(i,n))},_fillOptionalArg:function(e){var i=!0,n=this._peek(0);if(n&&"["===t.trim(this.slice(n))){for(this.pushRow(e),this.consume(1);i&&(n=this._peek(0));)"]"===t.trim(this.slice(n))?(this.consume(1),i=!1):this.append(n);this.popRow()}},_fillArg:function(e){var t=this._peek(0);t&&("MathNest"===this.peg.names[t.name]?(this.pushRow(e),t.children.length>0?this._appendChildren(t):this.consume(1),this.popRow()):this.fillRow(t,e))},_appendFracCmd:function(){var e=this.makeFraction();this.push(e),this.consume(1),this._fillArg(e.children[0]),this._fillArg(e.children[1])},_appendStackrelCmd:function(e,t){var i=this.makeScript({limitStyle:"stack"});this.push(i),this.consume(1),t?(i.replaceChild(1,null),this._fillArg(i.children[2])):(this._fillArg(i.children[1]),i.replaceChild(2,null)),this._fillArg(i.children[0])},_appendSymbolCmd:function(e){this.pushSymbol(e),this.consume(1)},_appendBModCmd:function(){this.pushText("mod","text",{TeXSpacing:s.BIN}),this.consume(1)},_appendPModCmd:function(){var e=this.makeRow();this.pushRow(e),this.push(this.makeSpace({length:1})),this.pushDelim("parenleft"),this.pushText("mod","text"),this.consume(1),this.push(this.makeSpace({length:1/3})),this.append(this._peek(0)),this.pushDelim("parenright"),this.popRow(),this.push(e)},_appendBraceCmd:function(e){var t=this.makeFraction({linethickness:"0"});this.consume(1),this.splitRow(t),"brace"===e?this._appendDelimNestImpl("braceleft","braceright",t):"brack"===e?this._appendDelimNestImpl("bracketleft","bracketright",t):"choose"===e&&this._appendDelimNestImpl("parenleft","parenright",t)},splitRow:function(e){var t=this._splitAndReturnRow();0===t.length&&(t=[this.makeText({kind:"mtext",text:this._NBSP})]);var i=this.row.children;0===i.length&&(i=[this.makeText({kind:"mtext",text:this._NBSP})]),this.row.children=[],e.children[0].setChildren(t),e.children[1].setChildren(i)},_splitAndReturnRow:function(){var e=this.row.children;for(this.row.setChildren([]);this._n<this._input.length;)this._appendChild();return e},_appendOverCmd:function(e){var t,i=e.length>8,n={},o=null,r=null;if("atop"===e.substring(0,4)&&(n.linethickness="0"),this.consume(1),i&&(o=this.getDelim(),r=this.getDelim(),!o||!r))return this.pushMtext("\\"+e,{style:"color: rgb(255,0,0);"}),void(this._foundEncodingIssues=!0);t=this.makeFraction(n),this.splitRow(t),i?this._appendDelimNestImpl(o,r,t):this.push(t)},_isDelimiter:function(e){return e&&("."===e||l.isDelimiter(e))},getDelim:function(e){var i,n,o=this._peek(0);return o?(this.consume(1),0===(i=t.trim(this.slice(o))).length||"."===i?".":(i.length>0&&"\\"===i.charAt(0)&&(i="\\|"===i?"Vert":i.slice(1)),(n=l.unicodeMap[i])||(n=this.mapSymbolName(i)),n||(n=i),e||this._isDelimiter(n)?n:(this._foundEncodingIssues=!0,this.consume(-1),""))):""},_appendBigCmd:function(e,t,i){var n,o;this.consume(1),(n=this.getDelim())?((o=this.pushDelim(n)).minsize=t,o.maxsize=t,o.TeXSpacing=i):(this.pushMtext("\\"+e,{style:"color: rgb(255,0,0);"}),this._foundEncodingIssues=!0)},_appendFunCmd:function(e,t){this.pushCode(e,{TeXSpacing:s.OP}),t?this._setLimitsMode("",t):this.consume(1)},_appendSqrtCmd:function(){var e=this.makeRadical();this.push(e),this.consume(1),this._fillOptionalArg(e.children[1]),this._fillArg(e.children[0])},_appendNotCmd:function(){var e,i,n,o;this.consume(1),(e=this._peek(0))&&(i=t.trim(this.slice(e)),(n=l.lookupNotSymbol(i))?(o=this.makeSymbol(n),this.push(o),this.consume(1)):(o=this.makeSymbol("combiningSlash"),this.push(o)))},_appendAccentCmd:function(e,t){var i,n=this.makeScript({accent:!0,limitStyle:"stack"});this.consume(1),this._fillArg(n.children[0]),i=this.makeSymbol(t,{stretchy:!1}),n.children[2].appendChild(i),this.push(n)},_appendStretchyAccentCmd:function(e,t,i,n,o){(o=o||{}).accent=!0,o.limitStyle="stack";var r,a=this.makeScript(o);this.consume(1),this._fillArg(a.children[0]),(r=i?this.makeDelim({symbolName:t}):this.makeSymbol(t)).stretchy=!0,n?a.children[1].appendChild(r):a.children[2].appendChild(r),this.push(a)},_appendUnderOverBraceCmd:function(e,t,i,n){this._appendStretchyAccentCmd(e,t,i,n,{limitStyle:"stack"})},_setLimits:function(e,t){var i="auto";"nolimits"===t?i="nostack":"limits"===t&&(i="stack"),e.limitStyle=i},_isRegularScript:function(e){return"MathScript"===e.className&&!(!0===e.accent)},_errorSubSup:function(){var e,t;e={style:"color: rgb(255,0,0);"},t=this.makeStyle(e),this._fillArg(t.children[0]),this.push(t),this._foundEncodingIssues=!0},_prepareScript:function(){var e,t,i,n;if((e=this.row.children).length>0&&this._isRegularScript(e[e.length-1]))t=e.pop();else if((t=this.makeScript()).replaceChild(1,null),t.replaceChild(2,null),e.length>0){var o=e.pop();if(o.TeXSpacing===s.CLOSE){var r=[o];for(n=1;e.length&&n;)(i=e.pop()).TeXSpacing===s.CLOSE&&(n+=1),i.TeXSpacing===s.OPEN&&(n-=1),r.push(i);o=this.makeRow({children:r.reverse()})}"MathRow"===o.className?t.replaceChild(0,o):t.children[0].appendChild(o)}return t},_prepareScriptSlots:function(e,t){var i=!1;return null===e.children[t]&&(null===e.children[t]&&e.replaceChild(t,this.makeRow()),i=!0),i},_appendSubSup:function(e){var i,n,o,r=t.trim(this.slice(e));this.consume(1),o="^"===r||"\\sp"===r?2:1,i=this._prepareScript(),this.push(i),n=this._prepareScriptSlots(i,o);var a=this._peek(0),s=a&&t.trim(this.slice(a));!n||"^"===r&&s&&"'"===s?this._errorSubSup():this._fillArg(i.children[o])},fillRow:function(e,t){this.pushRow(t),this.append(e),this.popRow()},_appendNest:function(e){var t,i={};"Math"!==this.peg.names[e.name]&&(i={TeXSpacing:s.ORD}),t=this.makeRow(i),this.row.appendChild(t),this.pushRow(t),e.children.length>0?this._appendChildren(e):this.consume(1),this.popRow()},makeDelimOrNull:function(e){var i=null;return"."!==e&&("\\"===e.charAt(0)&&(e=e.slice(1)),this._isDelimiter(e)?i=this.makeDelim({symbolName:t.trim(e)}):(this._foundEncodingIssues=!0,i=this.makeText({text:"\\"+e,kind:"mtext",style:"color: rgb(255,0,0);"}))),i},_appendDelimNestImpl:function(e,t,i){var n=this.makeRow(),o=this.makeDelimOrNull(e),r=this.makeDelimOrNull(t);o&&n.appendChild(o),i&&(i.className?n.appendChild(i):this.fillRow(i,n)),r&&n.appendChild(r),this.push(n)},_appendDelimNest:function(e){var t,i,n,o=e.children,r=this._input,a=this._n;this._setInput(o,0),t=this.getDelim(!0),n=null,o.length>2&&(n=this._peek(0),this.consume(1)),i=this.getDelim(!0),this._appendDelimNestImpl(t,i,n),this._setInput(r,a),this.consume(1)},_appendQuadCmd:function(e,t){var i=this.makeSpace({length:t});this.push(i),this.consume(1)},_appendBlanks:function(){var e=this.makeSpace({length:.5});this.push(e),this.consume(1)},_appendFontCmd:function(e,t){var i={};this.consume(1);var n=this._splitAndReturnRow(),o=this.row.children;this.row.setChildren(n),i.mathvariant=t;var r=this.makeStyle(i);r.children[0].setChildren(o),this.push(r)},_appendStyleCmd:function(e){var t={};this.consume(1);var i=this._splitAndReturnRow(),n=this.row.children;this.row.setChildren(i),"displaystyle"===e?(t.scriptlevel=0,t.displaystyle=!0):(t.displaystyle=!1,"textstyle"===e?t.scriptlevel=0:"scriptstyle"===e?t.scriptlevel=1:"scriptscriptstyle"===e&&(t.scriptlevel=2));var o=this.makeStyle(t);o.children[0].setChildren(n),this.push(o)},_setLimitsMode:function(e,t){var i,n,o=this.row.children;o.length>0&&this._isRegularScript(o[o.length-1])?(i=o[o.length-1],this._setLimits(i,t)):((i=this.makeScript()).replaceChild(1,null),i.replaceChild(2,null),o.length>0&&(n=o.pop(),i.children[0].appendChild(n)),this._setLimits(i,t),this.push(i)),this.consume(1)},_appendVariantCmd:function(e,t){var i={};i.mathvariant=t;var n=this.makeStyle(i);this.push(n),this.consume(1),this._fillArg(n.children[0])},_appendSlashSymbol:function(e){var t=l.symbolMap[e],i=null;return a[e]&&(t&&t.unicode?i=this.pushText(e,t.font):(t=this.mapSymbolName(e))!==e&&(i=this.pushSymbol(t,{stretchy:!1}))),i},_appendFatString:function(e,i){var n,o=t.trim(this.slice(e));for(n=0;n<o.length;n+=1)this._pushTextWithStyle(o.charAt(n),i);this.consume(1)},_pushTextWithStyle:function(e,t){var i={kind:t};"bold"===t&&(t="text",i.mathvariant="bold"),this.pushText(e,t,i)},_appendFatStringCmd:function(e,t){this.consume(1);var i=this.makeRow();this._fillArg(i);var n=this;i.children=i.children.map((function(e){return n._replaceTextWithFontGlyph(e,t)})),this.push(i)},_replaceTextWithFontGlyph:function(e,t){return e&&"MathText"===e.className&&e.text.match(/^[A-Za-z]$/)?"script"===t?this.makeText({text:e.text,kind:"id",mathvariant:"script"}):"blackboard"===t?this.makeText({text:e.text,kind:"id",mathvariant:"double-struck"}):this.makeText({text:e.text,kind:"id",mathvariant:"fraktur"}):e},_appendSpacingClassCmd:function(e){var t;this.consume(1),t=this.makeRow(),this._fillArg(t),1===t.children.length&&"MathText"===t.children[0].className&&(t=t.removeChild(0)),t.TeXSpacing=s[{mathord:"ORD",mathop:"OP",mathbin:"BIN",mathrel:"REL",mathopen:"OPEN",mathclose:"CLOSE",mathpunct:"PUNCT",mathinner:"INNER"}[e]],this.push(t)},_appendOrdChars:function(e,i){i=t.mixin({},i,{TeXSpacing:s.ORD});var n=this.slice(e),o={".":"ordPeriod"}[n];o||(o=l.unicodeMap[n]||n),this.pushSymbol(o,i),this.consume(1)},_appendPunct:function(e){for(var i,n,o=null,r=t.trim(this.slice(e));"'"===r;)null===o&&(o=this.makeRow()),n=this.makeSymbol("prime"),o.appendChild(n),this.consume(1),r=(i=this._peek(0))?t.trim(this.slice(i)):"";null!=o?(n=this._prepareScript(),this._prepareScriptSlots(n,2),n.replaceChild(2,o),this.push(n)):(this.pushSymbol(r,{TeXSpacing:s.PUNCT}),this.consume(1))},_appendMathSpace:function(e){var t={",":1/6,">":2/9,":":2/9,";":5/18,"!":-1/6," ":.5}[this.slice(e)],i=this.makeSpace({length:t});this.push(i),this.consume(1)},_getDimenUnits:function(e){var t="";e.length>2&&(t=e.slice(-2));var i={pt:1,pc:12,mu:10/18,ex:5,em:10,in:72,cm:72/2.54,mm:72/25.4}[t];return i||(i=0),i/10},_parseKernAmount:function(e){var i,n,o=0,r=!1;return e.children.length>1&&(i=e.children[1],"-"===(n=t.trim(this.slice(i)))&&(r=!0,e.children.length>2&&(i=e.children[2],n=t.trim(this.slice(i)))),o="\\nulldelimiterspace"===n?.12:parseFloat(n,10)*this._getDimenUnits(n),r&&(o=-o)),o},_appendKernCmd:function(e){var t=this._parseKernAmount(e),i=this.makeSpace({length:t});this.push(i),this.consume(1)},_appendSpecialCmd:function(e){var i=t.trim(this.slice(e)),n=this.mapSymbolName(i.slice(1)),o={TeXSpacing:s.ORD,stretchy:!1};"\\^"===i&&this._strict&&(o.style="color: rgb(255,0,0);",this._foundEncodingIssues=!0),this.pushSymbol(n,o),this.consume(1)},_appendContentCmd:function(e){var t,i;e.children.forEach((function(e){this._appendNest(e)}),this),t={rows:this.row.children.length,cols:1,children:this.row.children,colspec:"l"},i=this.makeMatrix(t),this.row.setChildren([i])},_appendInlineCmd:function(e){var t={};if(1===this.rows.length)this._appendChildren(e);else{t.mathvariant="";var i=this.makeStyle(t);this.push(i),this.fillRow(e.children[0],i.children[0])}},_appendBoxCmd:function(e){var i,n,o={},r=!0,a=t.trim(this.slice(e.children[0]));"textit"===a?o.mathvariant="italic":"textbf"===a?o.mathvariant="bold":"texttt"===a?o.mathvariant="monospace":"textsf"===a?o.style="font-family: sans-serif":"textnormal"===a?o.mathvariant="normal":r=!1,n=r?(i=this.makeStyle(o)).children[0]:i=this.makeRow(),this.push(i),this.fillRow(e.children[1],n)},_appendDashes:function(e){var i;"---"===(i=t.trim(this.slice(e)))?i="—":"--"===i&&(i="–"),this.pushMtext(i),this.consume(1)},_appendTextSpecialLetter:function(e){var i,n;i=t.trim(this.slice(e)),n=d.specialLetters[i],this.pushMtext(n),this.consume(1)},_appendBadTextChar:function(e){var i;i=t.trim(this.slice(e)),this._strict?(this.pushMtext(i,{style:"color: rgb(255,0,0);"}),this._foundEncodingIssues=!0):this.pushMtext(i),this.consume(1)},_appendTextAccent:function(e){var i={},n=t.trim(this.slice(e)),o=d.combiningChars[n.charAt(1)];o&&(e.children.length>0?n=this.slice(e.children[0]):n.length>2?(n=n.substring(2),"{}"===t.trim(n)&&(n="")):this._strict&&(i.style="color: rgb(255,0,0);",this._foundEncodingIssues=!0),""===(n=t.trim(n))&&(n=this._NBSP),this.pushMtext(n+o,i)),this.consume(1)},_appendLineBreak:function(){var e=this.makeRow();e.setChildren(this.row.children),this._lineBreaks.push(e),this.row.setChildren([]),this.consume(1)},_assembleLineBreaks:function(e){var t,i,n;this._lineBreaks.length>0&&(this._lineBreaks.push(e.children[0]),n={rows:this._lineBreaks.length,cols:1,children:this._lineBreaks,colspec:"l"},t=this.makeMatrix(n),(i=this.makeRow()).appendChild(t),e.replaceChild(0,i))},_convertColSpecToMathML:function(e){var i,n,o,r,a,s,l,c="";for(i=0;i<e.length;i+=1)if(n=e[i],"l"===(o=this.slice(n).charAt(0))||"r"===o||"c"===o||"|"===o)c+=o;else if("*"===o)for(r=t.trim(this.slice(n.children[0])),a=parseInt(r,10),s=this._convertColSpecToMathML(n.children[1].children),l=0;l<a;l+=1)c+=s;return c},_isRowSep:function(e){var t=this.name(e);return"CrCr"===t||"ArrayRowSep"===t},_parseTableContent:function(e){var t,i,n,o=[],r=[],a=e.length,s=!1;for(a>0&&this._isRowSep(e[a-1])&&(a-=1),t=0;t<a&&(i=null,n=e[t],("MathBody"===this.name(n)||"TextContent"===this.name(n))&&(i=n,t+=1),r.push(i),s=!1,t!==a);t+=1)this._isRowSep(e[t])?(o.push(r),r=[]):s=!0;return s&&r.push(null),r.length>0&&o.push(r),o},_hlineCmd:function(){this._hline=!0,this.consume(1)},_processHLineInTable:function(e,t){var n;if(this._hline&&0===t)return this._hline=!1,this._hlineOnTop=!0,null;if(this._hline||null!==e){if(null===e)for(e=[],n=0;n<t-1;++n)e.push(i.NO_LINE);this._hline?e.push(i.SOLID_LINE):e.push(i.NO_LINE),this._hline=!1}return e},_appendTable:function(e,t){var n,o,r,a,s,l,c=this._parseTableContent(e),d=c.length,u=0,h=null,p=this._hline;this._hline=!1;var f=this._hlineOnTop;this._hlineOnTop=!1;var g=this._hlineAtBottom;for(this._hlineAtBottom=!1,n=0;n<d;n+=1)u=Math.max(u,c[n].length);l={rows:d,cols:u};var m,_=!1,v=!1;if(t){var b=this._convertColSpecToMathML(t.children);"|"===b[0]&&(_=!0,b=b.slice(1)),"|"===b.slice(-1)&&(v=!0,b=b.slice(0,-1));var y=[];if(-1!==b.indexOf("|"))for(var C=!1,T=0;T<b.length;T+=1){"|"===b.charAt(T)?(y.push(i.SOLID_LINE),C=!1):(C&&y.push(i.NO_LINE),C=!0)}l.columnlines=y,l.colspec=b.replace(/\|/g,"")}for(o=this.makeMatrix(l),n=0;n<c.length;n+=1){for(s=c[n],m=!0,a=0;a<u;a+=1)r=this.makeRow(),o.appendChild(r),a<s.length&&s[a]&&(this.fillRow(s[a],r),this.consume(-1)),m=m&&0===r.children.length;h=this._processHLineInTable(h,n)}this.push(o),null!==h&&(h[h.length-1]===i.SOLID_LINE&&m&&(h=h.slice(0,-1),this._hlineAtBottom=!0,o.rows-=1,o.children=o.children.slice(0,-u)),o.setRowLines(h)),o.setFrame(this._hlineOnTop,v,this._hlineAtBottom,_),this._hline=p,this._hlineOnTop=f,this._hlineAtBottom=g},_appendArray:function(e){var t=e.children[0],i=e.children[1].children;this._appendTable(i,t),this.consume(1)},_appendCasesContent:function(e){var t=this.makeRow();this.pushRow(t),this.pushDelim("braceleft"),this._appendTable(e),this.popRow(),this.push(t)},_appendMatrix:function(e){var t,i=e.children[0].children[0].children,n=this.peg.names[e.children[0].name];"RegMatrix"===n?this._appendTable(i):"CasesMatrix"===n?this._appendCasesContent(i):"PMatrix"===n&&(t=this.makeRow(),this.pushRow(t),this.pushDelim("parenleft"),this._appendTable(i),this.pushDelim("parenright"),this.popRow(),this.push(t)),this.consume(1)},_appendCasesEnvironment:function(e){var t=e.children[0].children;this._appendCasesContent(t),this.consume(1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{rulenames:["Content","Math","InlineInText","TextContent","EOT","MathSpace","MathBody","SubSupOp","MathNest","s","Comment","sc","s1","sc1","Blanks","SpecialCmd","Cmd","BadCmd","Letters","Letter","Array","ArrayPosition","ArrayCols","ArrayCol","ArraySimpleCol","ArrayComplexCol","ArrayContent","ArrayItem","ArrayRowSep","ArrayColSep","Matrix","RegMatrix","PMatrix","CasesMatrix","MatrixContent","MatrixItem","CrCr","CasesContent","Cases","Other","OrdChars","OpenCloseChars","RelOp","BinOp","Punct","Tilde","Unicode","Digit","Number","PlusMinus","Dimen","DimenUnits","BoxCmd","BoxCmd1","Box","KernCmd","Kern","KernAmount","BadCmd2","Cmd2","MathBody3","DelimiterNest","Delim","DelimSlashChar","DelimCmd","MissingClose","MissingRight","Text","TextChar","TextChars","BadTextChar","Dashes","TEscape","TSpecialCmd","TSpecialLetter","TAccent","TCmd","BeginDisplayMath","EndDisplayMath","BeginMath","EndMath","MathBody2","LineBreak"],rules:[[0,2,12,10,15,9,0,0,2,2,11,5,2,4,1,5,-8,1,13,0],[0,0,3,2,36,36,10,36,2,12,10,32,0,2,82,4,10,26,0,0,3,1,36,10,9,0,16,1,36,36,4,1,11,5,2,66,1,10,5,2,12,1,11,27,0,2,78,10,21,0,2,82,4,10,15,0,2,79,11,5,2,66,1,10,5,2,12,1,1,13,2],[0,0,3,1,36,10,36,0,0,2,14,10,7,0,2,82,4,1,11,11,0,2,12,10,5,2,82,1,1,10,12,0,3,1,36,11,5,2,66,1,1,11,27,0,2,80,10,21,2,12,10,17,0,2,82,4,10,11,0,2,81,11,5,2,66,1,1,1,13,2],[0,9,0,0,2,11,11,13,2,68,11,9,2,3,11,5,2,15,1,5,-16,10,5,2,12,1,13,2],[0,16,2,97,122,65,90,7],[16,6,44,44,33,33,59,59,58,58,62,62,32,32,13,0],[0,9,0,0,2,12,10,35,0,2,8,11,29,2,9,11,25,2,21,11,21,2,31,11,17,2,39,11,13,2,16,11,9,2,17,11,5,2,40,1,1,5,-38,10,5,2,12,1,13,2],[0,16,2,95,95,94,94,11,21,0,3,2,92,115,10,13,16,2,112,112,98,98,10,5,2,5,1,1,13,0],[0,3,1,123,10,22,2,12,10,18,0,2,7,4,10,12,0,3,1,125,11,5,2,66,1,1,13,2],[0,16,4,32,32,9,9,13,13,10,10,6,-10],[0,3,1,37,10,16,0,17,2,13,13,10,10,6,-6,10,5,2,10,1],[0,2,10,10,8,0,2,11,6,-2,1],[9,0,16,4,32,32,9,9,13,13,10,10,5,-10],[0,2,13,10,8,0,2,11,6,-2,1],[9,0,16,2,32,32,9,9,5,-6,13,0],[0,3,1,92,10,41,0,2,6,11,35,16,9,123,123,125,125,124,124,37,37,95,95,94,94,38,38,36,36,35,35,11,13,2,62,11,9,2,53,11,5,2,56,1,1,13,0],[0,3,1,92,10,15,0,2,19,18,2,2,18,19,10,5,2,12,1,13,0],[0,3,3,101,110,100,11,15,3,4,99,114,99,114,11,7,3,2,99,114,1,13,0],[9,0,16,2,97,122,65,90,5,-6,13,2],[16,2,97,122,65,90,13,0],[0,3,13,92,98,101,103,105,110,123,97,114,114,97,121,125,10,60,2,10,10,56,0,2,22,4,10,50,2,10,10,46,3,1,123,10,41,2,10,10,37,2,23,10,33,3,1,125,10,28,2,12,10,24,2,27,10,20,3,11,92,101,110,100,123,97,114,114,97,121,125,10,5,2,10,1,13,2],[0,3,1,91,10,14,16,2,116,116,98,98,10,6,3,1,93,1,13,0],[9,0,2,24,5,-2,13,0],[0,0,2,25,10,5,2,10,1,11,11,0,2,26,10,5,2,10,1,1,13,2],[16,4,108,108,114,114,99,99,124,124,13,0],[0,0,3,1,64,10,5,2,9,1,11,69,0,3,2,112,123,10,14,2,10,10,10,2,51,10,6,3,1,125,1,11,48,0,3,2,42,123,10,40,2,10,10,36,2,49,10,32,3,1,125,10,27,2,10,10,23,0,0,3,1,123,10,10,2,23,10,6,3,1,125,1,11,5,2,23,1,1,1,13,0],[0,0,0,3,5,92,101,110,100,123,7,10,9,2,28,10,5,2,12,1,6,-19,13,2],[0,2,7,11,9,2,30,11,5,2,29,1,13,0],[0,3,2,92,92,10,19,0,0,3,1,91,10,10,2,51,10,6,3,1,93,1,4,1,13,2],[3,1,38,13,0],[0,2,32,11,9,2,33,11,5,2,34,1,13,2],[0,3,7,92,109,97,116,114,105,120,10,23,2,12,10,19,3,1,123,10,14,2,35,10,10,3,1,125,10,5,2,10,1,13,2],[0,3,8,92,112,109,97,116,114,105,120,10,23,2,12,10,19,3,1,123,10,14,2,35,10,10,3,1,125,10,5,2,10,1,13,2],[0,3,6,92,99,97,115,101,115,10,23,2,12,10,19,3,1,123,10,14,2,38,10,10,3,1,125,10,5,2,10,1,13,2],[0,0,0,3,1,125,7,10,9,2,36,10,5,2,12,1,6,-15,13,2],[0,2,7,11,9,2,30,11,5,2,37,1,13,0],[0,3,3,92,99,114,10,9,0,3,2,99,114,4,1,13,0],[0,0,0,3,1,125,7,10,33,2,36,10,29,2,12,10,25,2,30,10,21,2,12,10,17,0,2,4,4,10,11,2,12,10,7,0,2,37,4,1,6,-39,13,2],[0,3,13,92,98,101,103,105,110,123,99,97,115,101,115,125,10,28,2,12,10,24,2,27,10,20,3,11,92,101,110,100,123,99,97,115,101,115,125,10,5,2,10,1,13,2],[0,2,48,11,33,2,41,11,29,2,44,11,25,2,43,11,21,2,45,11,17,2,20,11,13,2,42,11,9,2,46,11,5,2,47,1],[16,8,33,33,63,63,46,46,124,124,47,47,96,96,64,64,34,34,13,0],[16,4,40,40,41,41,91,91,93,93,13,0],[16,4,61,61,60,60,62,62,58,58,13,0],[16,3,43,43,45,45,42,42,13,0],[16,3,59,59,44,44,39,39,13,0],[16,1,126,126,13,0],[17,1,32,127,13,0],[16,1,48,57,13,0],[0,0,0,2,50,4,10,25,9,0,2,48,5,-2,10,17,0,0,3,1,46,10,8,0,2,48,6,-2,1,4,1,11,22,0,0,2,50,4,10,14,3,1,46,10,9,9,0,2,48,5,-2,1,1,13,0],[16,2,43,43,45,45,13,0],[0,2,49,10,13,2,10,10,9,2,52,10,5,2,10,1,13,0],[0,3,2,112,116,11,43,3,2,109,109,11,37,3,2,99,109,11,31,3,2,101,109,11,25,3,2,101,120,11,19,3,2,105,110,11,13,3,2,112,99,11,7,3,2,109,117,1,13,0],[0,2,55,10,23,0,0,2,12,10,5,2,54,1,11,11,0,2,14,10,5,2,69,1,1,1,13,2],[0,3,1,123,10,18,0,2,4,4,10,12,0,3,1,125,11,5,2,67,1,1,13,2],[0,3,4,109,98,111,120,11,81,3,4,104,98,111,120,11,73,3,6,116,101,120,116,98,102,11,63,3,6,116,101,120,116,105,116,11,53,3,6,116,101,120,116,114,109,11,43,3,6,116,101,120,116,116,116,11,33,3,6,116,101,120,116,115,102,11,23,3,10,116,101,120,116,110,111,114,109,97,108,11,9,3,4,116,101,120,116,1,13,0],[0,2,57,10,65,2,12,10,61,0,0,3,1,123,10,32,2,12,10,28,0,2,50,4,10,22,2,12,10,18,2,58,10,14,2,12,10,10,3,1,125,10,5,2,12,1,11,21,0,0,2,50,4,10,13,2,12,10,9,2,58,10,5,2,12,1,1,1,13,2],[0,3,4,107,101,114,110,11,10,3,5,109,107,101,114,110,1,13,0],[0,2,51,11,24,3,19,92,110,117,108,108,100,101,108,105,109,105,116,101,114,115,112,97,99,101,1,13,0],[0,2,18,11,10,3,5,114,105,103,104,116,1,13,0],[0,3,1,92,10,15,0,2,19,18,2,2,59,19,10,5,2,12,1,13,0],[0,9,0,0,2,12,10,35,0,2,8,11,29,2,9,11,25,2,21,11,21,2,31,11,17,2,39,11,13,2,16,11,9,2,60,11,5,2,40,1,1,5,-38,10,5,2,12,1,13,2],[0,3,4,108,101,102,116,10,45,2,12,10,41,2,63,10,37,2,12,10,33,0,2,61,4,10,27,0,0,3,6,92,114,105,103,104,116,10,9,2,12,10,5,2,63,1,11,5,2,67,1,1,13,2],[0,16,7,40,40,41,41,91,91,93,93,47,47,124,124,46,46,11,9,2,64,11,5,2,65,1,13,0],[0,3,1,92,10,15,16,3,123,123,125,125,124,124,10,5,2,12,1,13,0],[0,3,1,92,10,9,2,19,10,5,2,12,1,13,0],[14,13,2],[14,13,2],[9,0,0,2,71,11,54,2,70,11,50,0,3,1,92,10,5,2,73,1,11,39,2,74,11,35,2,76,11,31,2,77,11,27,0,3,1,123,10,16,2,68,10,12,0,3,1,125,11,5,2,66,1,1,11,5,2,72,1,5,-57,13,2],[17,5,92,92,123,123,125,125,36,36,45,45,13,0],[9,0,17,9,92,92,123,123,125,125,36,36,45,45,95,95,94,94,37,37,35,35,5,-20,13,0],[16,3,95,95,94,94,35,35,13,0],[0,3,3,45,45,45,11,12,3,2,45,45,11,6,3,1,45,1,13,0],[16,10,123,123,125,125,124,124,37,37,95,95,38,38,64,64,92,92,36,36,35,35,13,0],[0,3,1,92,10,19,0,2,6,11,9,2,53,11,5,2,75,1,10,5,2,12,1,13,0],[0,3,2,111,101,11,49,3,2,97,101,11,43,3,2,97,97,11,37,3,2,115,115,11,31,3,2,79,69,11,25,3,2,65,69,11,19,3,2,65,65,11,13,16,4,111,111,79,79,108,108,76,76,1,13,0],[0,3,1,92,10,72,0,16,7,39,39,96,96,94,94,34,34,126,126,61,61,46,46,11,23,0,16,6,117,117,118,118,72,72,99,99,100,100,98,98,10,5,2,5,1,1,10,30,2,12,10,26,0,0,3,1,123,10,12,0,2,68,4,10,6,3,1,125,1,11,6,0,21,4,1,1,13,2],[0,3,1,92,10,19,0,2,19,18,2,2,18,19,10,9,2,5,10,5,2,12,1,13,0],[3,2,92,91],[3,2,92,93],[3,2,92,40],[3,2,92,41],[0,9,0,0,2,12,10,39,0,2,8,11,33,2,9,11,29,2,21,11,25,2,31,11,21,2,39,11,17,2,16,11,13,2,17,11,9,2,40,11,5,2,83,1,1,5,-42,10,5,2,12,1,13,2],[3,2,92,92,13,0]]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(3603),i(1879),i(1362),i(3604),i(1881),i(1361),i(3605),i(1882),i(718)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([],{constructor:function(e){this.scriptlevel=0,this.scriptScalingFactor=e.scriptScalingFactor,this.minimalFontSize=e.minimalFontSize,this.ptIsRelative=e.ptIsRelative,this.displaystyle=e.displaystyle,this.mathvariant=null,this.mathsize=null,this.renderer=new i(e),this._basePxPerEm=this.renderer.getBasePxPerEm(),this._initialFontSize=this._basePxPerEm,this._pxPerEm=this._basePxPerEm},layoutAndRender:function(e){var t=this.layoutNode(e);return this.renderer.render(t)},_setPxPerEm:function(){var e=Math.pow(this.scriptScalingFactor,this.scriptlevel);this._pxPerEm=Math.max(this._basePxPerEm*e,this.minimalFontSize)},_setBasePxPerEmFromSize:function(){var e=0;if(this.ptIsRelative&&"pt"===this.mathsize.slice(-2)){var t=parseFloat(this.mathsize);e=this._initialFontSize*t/10}else e=this.renderer.convertFontSizeToPx(this.mathsize);this._basePxPerEm=Math.max(e,this.minimalFontSize),this._setPxPerEm()},emToPx:function(e){return Math.floor(this._pxPerEm*e)},mathAxis:function(){return Math.floor(this._pxPerEm*this.renderer.mathAxis)},barHeight:function(){return Math.max(Math.round(this._pxPerEm*this.renderer.barHeight),1)},computeWidth:function(e){return this.renderer.computeWidth(e,this.emToPx(1))},layoutNode:function(e){var t,i;return e?(t=e.className,(i=e.layout(this)).name=t+" "+(i.name?i.name:""),d.copyCommonAttributes(e,i),i):null},computeStyle:function(e,t){0!==t&&(this.scriptlevel=e+1)},_mergeMathvariant:function(e,t){if("normal"===t||"monospace"===t)return t;var i=-1!==e.indexOf("italic"),n=-1!==e.indexOf("bold"),o=-1!==t.indexOf("italic"),r=-1!==t.indexOf("bold"),a="",s="";(i||o)&&(s="italic"),(n||r)&&(a="bold");var l=a;return s&&(l+=(l?"-":"")+s),l||"normal"},applyStyleAttributes:function(e){var i={};return["mathvariant","scriptlevel","mathsize"].forEach(t.hitch(this,(function(t){if(void 0!==e[t]){i[t]=this[t];var n=e[t];"mathvariant"===t&&n&&i[t]&&(n=this._mergeMathvariant(this[t],n)),this[t]=n}}))),i},parseBoxes:function(e,t){var i,d,u,h,p=[],f=[];for(i=0;i<e.length;i+=1)if("}"!==(d=e.charAt(i))){switch(h=f.length,d){case"v":u=new l,p.push(u),f.push(u),i+=1;break;case"h":u=new n,p.push(u),f.push(u),i+=1;break;case"a":u=new s,p.push(u);break;case"w":u=new c,f[f.length-1]instanceof n&&(u.horizontal=!0),p.push(u);break;case"s":u=new a,p.push(u);break;case"r":u=new r,f[f.length-1]instanceof n&&(u.horizontal=!1),p.push(u);break;case"t":u=new o,p.push(u);break;case"*":f[h-1].children=t;continue;default:u=t[d.charCodeAt(0)-49]}h>0&&f[h-1].addChild(u)}else f.pop();return p[0].templateParts=p,p[0]},computeTemplateMetrics:function(e,t){var i;for(t=t||0,i=e.length-1;i>=t;i-=1)e[i].computeMetrics()},layoutChildren:function(e,t){var i,n,o,r,a,s,l=this.scriptlevel,c=this._pxPerEm,d=this._basePxPerEm;for(i=(t=t||{}).startIdx||0,n=(t.length?t.length+i:e.length)-1,o=t.boxes||[],this.mathsize&&(this._setBasePxPerEmFromSize(),this.mathsize=null),r=i;r<=n;r+=1)t.sizes&&(this.computeStyle(l,t.sizes[r]),this._setPxPerEm()),a=e[r],(s=this.layoutNode(a))&&(s.fontSizePx=this.emToPx(1)),o.push(s),this.scriptlevel=l,this._pxPerEm=c;return this._basePxPerEm=d,o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(228),i(210),i(211),i(213),i(221),i(718),i(1355),i(578),i(1879),i(1362),i(1881),i(1882)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e(null,{constructor:function(e){var t={id:"MathEquationRendererScratch",class:"MathEquation",style:{position:"absolute",right:"-1000px",bottom:"-1000px",whiteSpace:"pre-wrap"}};this._scratch=i.byId("MathEquationRendererScratch"),this._scratch||(this._scratch=r.create("span",t,document.body)),this._mathroot=r.create("span",{class:"MathEquation",role:"math"},e.domNode),this.creatorFlavor=e.creatorFlavor,this.scriptScalingFactor=e.scriptScalingFactor,this.minimalFontSize=e.minimalFontSize,this._pxPerEm=e.pxPerEm?e.pxPerEm:this.computePxToEms(),this._pxPerEm<this.minimalFontSize&&(this._pxPerEm=this.minimalFontSize),this._pxPerEm=Math.ceil(this._pxPerEm),this._setStyle(this._mathroot,{fontSize:this._pxPerEm+"px"}),this._setStyle(this._scratch,{fontSize:this._pxPerEm+"px"}),this.fontAscent=c.FONT_ASCENT,this.fontXHeight=c.FONT_XHEIGHT,this.fontDescent=c.FONT_DESCENT,this._italicCorrection=.1,this.mathAxis=.38,this.barHeight=.07},computeWidth:function(e,t){var i;return this._setStyle(this._scratch,{fontSize:t}),this.render(e,this._scratch),i=this._scratch.clientWidth,this._scratch.innerHTML="",i},getBasePxPerEm:function(){return this._pxPerEm},computePxToEms:function(e){e||(e=this._mathroot);var t=a.getComputedStyle(e),i=parseFloat(t.fontSize);return 0===i&&(i=1),i},convertFontSizeToPx:function(e){var t;return this._setStyle(this._scratch,{fontSize:e}),t=this.computePxToEms(this._scratch),this._setStyle(this._scratch,{fontSize:this._pxPerEm+"px"}),t},toGrid:function(e){return isNaN(e)?"0px":Math.ceil(e)+"px"},SPACE_NORMAL:[0,1,2,3,0,0,0,1,1,1,0,3,0,0,0,1,2,2,0,0,2,0,0,2,3,3,0,0,3,0,0,3,0,0,0,0,0,0,0,0,0,1,2,3,0,0,0,1,1,1,0,1,1,1,1,1,1,1,2,3,1,0,1,1],SPACE_SCRIPT:[0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0],adjustSpacingClasses:function(e,t){var i=e?e.spacing:-1,n=t.spacing;2===n&&0!==i&&5!==i&&7!==i&&8!==i?t.spacing=0:2!==i||3!==n&&5!==n&&6!==n||(e.spacing=0)},_setStyle:function(e,t){Object.keys(t).forEach((function(i){e.style[i]=t[i]}))},_resolveNest:function(e,t,i){for(var n;t&&8===e;)e=t.spacing,n=t.children,t=null,n&&n instanceof u&&(t=n[i?0:n.length-1]);return e},_gapForItalicCorrection:function(e,t){var i=0;return t instanceof h&&(e&&e instanceof h&&!0===t.isItalic&&!0===e.isItalic?e.italicCorrectionRight=0:i+=t.leftItalicCorrection(),t.italicCorrectionRight=t.rightItalicCorrection()),i},_gapForCode:function(e,t,i){var n=0;return"MathType"!==this.creatorFlavor||e&&(e.needsGapBehind()&&!t.startsWithDelimiter()||t.needsGapBefore()&&!e.endsWithDelimiter())&&(n=Math.max(n,4*i)),n},computeGap:function(e,t,i){var n,o=i?this.SPACE_SCRIPT:this.SPACE_NORMAL,r=0;return this.adjustSpacingClasses(e,t),e&&((n=o[8*this._resolveNest(e.spacing,e,!1)+this._resolveNest(t.spacing,t,!0)])>0?r=(2+n)*(1/18):1!==t.spacing&&2!==t.spacing&&1!==e.spacing&&2!==e.spacing||t.cls===e.cls||(r=1/18)),r=Math.max(r,this._gapForCode(e,t,1/18)),r+=this._gapForItalicCorrection(e,t),t.skip=r,r},render:function(e,t){var i;if(t=t||this._mathroot,e){i=e.render(this),r.place(i,t);var n=e.cssAscent()+e.cssDescent()+2*this.getBasePxPerEm()*.1,o=-e.cssDescent()-.1*this.getBasePxPerEm()/2;t["data-eqn-height"]=n,t["data-eqn-vertical-align"]=o}return t},makeGlyphTextbox:function(e,t){var i=e.font,n=e.glyph||e.unicode,o=new h;return o.initalizeSymbolBoxData(e,t,!0),o.size=e.size||1,o.fontSizePx=t.emToPx(1),o.text=d.fromCodePoint(n),this.computeGlyphTextboxMetrics(o,i,t),o},_glyphShift:function(e){var t=0;return t=s("ff")?-.05:.16,e.emToPx(t)},computeGlyphTextboxMetrics:function(e,t,i){e.computeMetrics(i),"extra"===t.slice(0,5)&&"extra1"!==t&&(e.setMetrics({ascent:0,descent:i.emToPx(e.size)}),"extra"===t&&(e.glyphShift=this._glyphShift(i)))},_setTooltip:function(e,t){delete e.title,o.add(e,"hasTooltip"),e["data-eqn-tooltip"]=t},makeDomNode:function(e){var t=r.create("span");if(t.MWEQ=e,e.name&&o.add(t,e.name),e.id&&(t.id=e.id),e.tooltip&&this._setTooltip(t,e.tooltip),e.style&&n.set(t,"style",e.style),e.accessibility){var i={role:"img","aria-label":e.accessibility["aria-label"]};n.set(t,i)}return e.class&&o.add(t,e.class),t},_setMathTextBoxFontAttributes:function(e,t){l.isSingleCharIdentString(e.text||"")||(t.fontStyle="normal"),e.fontStyle&&(t.fontStyle=e.fontStyle),e.fontWeight&&(t.fontWeight=e.fontWeight)},_renderMathTextBoxSetStyle:function(e,t){var i=(t.skip||0)+t.xShift,n={position:"relative"};if(i&&t.applyItalicCorrection&&(n.marginLeft=i+"em"),t.italicCorrectionRight&&t.applyItalicCorrection&&(n.marginRight=t.italicCorrectionRight+"em"),this._setMathTextBoxFontAttributes(t,n),t.accentBox()){n.height=this.toGrid(t.accentHeight()),"topaccent"===t.accentType&&(n.display="block");var o=t.downShift();o&&(n.marginTop=this.toGrid(o),n.marginBottom=this.toGrid(-o))}this._setStyle(e,n)},renderMathTextBox:function(e){var t,i=this.makeDomNode(e);return this._renderMathTextBoxSetStyle(i,e),t={innerHTML:e.text},n.set(i,t),o.add(i,e.cls),e.accentBox()&&o.add(i,e.accentType),i},renderRuleBox:function(e){var t,i=this.makeDomNode(e),o=e.ascent();return o>0&&o<1&&(o=1),n.set(i,{class:"rulebox"}),e.horizontal&&(t={display:"block",borderBottomStyle:"solid",borderBottomWidth:this.toGrid(o),width:"100%",height:"0px",zIndex:1}),this._setStyle(i,t),i},_renderHorizontalStretchyBoxApplyStyle:function(e,t){var i=t.skip||0,n={display:"block",position:"relative"};0!==i&&(n.marginLeft=i+"em"),n.height=this.toGrid(t.accentHeight()),this._setMathTextBoxFontAttributes(t,n),this._setStyle(e,n)},_renderSingleGlyphHorizontalStretchyBoxChild:function(e,t){var i=t.children[0],n=t.downShift(),o=i.render(this),a={left:this.toGrid(0),top:this.toGrid(n)};r.place(o,e),this._setStyle(o,a)},_renderSingleGlyphHorizontalStretchyBox:function(e,t){var i={};return this._renderSingleGlyphHorizontalStretchyBoxChild(e,t),t.width()&&(i.width=this.toGrid(t.width())),t.left()&&(i.left=this.toGrid(t.left())),this._setStyle(e,i),e},_renderMultipleGlyphHorizontalStretchyBox:function(e,i){var n=i.downShift()||0;if(i.traverse(t.hitch(this,(function(t){var i;if(t){i=t.render(this),r.place(i,e);var o=t.left(),a={top:this.toGrid(n),position:"absolute",left:this.toGrid(o)};this._setStyle(i,a)}}))),!i.accentType){var o={display:"inline-block",position:"relative",left:"-"+i.width()/2+"px"};this._setStyle(e,o)}return e},renderHorizontalStretchyBox:function(e){var t=this.makeDomNode(e);return this._renderHorizontalStretchyBoxApplyStyle(t,e),1===e.children.length?this._renderSingleGlyphHorizontalStretchyBox(t,e):this._renderMultipleGlyphHorizontalStretchyBox(t,e),e.setMetrics({cssAscent:e.ascent(),cssDescent:e.descent()}),t},_renderStretchyBoxApplyStyle:function(e,t){var i=t.skip||0,n={display:"inline-block",position:"relative"};i&&(n.marginLeft=i+"em"),this._setStyle(e,n)},_applyChromeFix:function(e,t){return 1.4===e.size&&s("webkit")?1.024*t:t},_renderSingleGlyphStretchyBoxChild:function(e,t){var i=t.children[0],n=i.fontSizePx,o=i.render(this),a={display:"inline-block",position:"relative"},l=Math.floor(t.ascent()),c=0,d=Math.round(i.height()),u=0;switch(s("mac")&&s("ff")&&(u=Math.floor(-n*this.barHeight)),r.place(o,e),i.cls){case"extra":a.verticalAlign=this.toGrid(l),d=this._applyChromeFix(i,d),a.lineHeight=this.toGrid(d),i.size-1-this.mathAxis>0?(c=Math.floor(n*((i.size-1-this.mathAxis)/2)),a.marginTop=this.toGrid(-c),a.marginBottom=this.toGrid(c)):s("webkit")&&delete a.display;break;case"extra1":u&&(a.verticalAlign=this.toGrid(u));break;case"symbol":break;default:c=Math.ceil(n*this.mathAxis),a.verticalAlign=this.toGrid(l+u),a.lineHeight=this.toGrid(d),a.marginTop=this.toGrid(-c),a.marginBottom=this.toGrid(c)}this._setStyle(o,a)},_renderSingleGlyphStretchyBox:function(e,t){var i={display:"inline-block",position:"relative"};return this._renderSingleGlyphStretchyBoxChild(e,t),t.width()&&(i.width=this.toGrid(t.width())),t.left()&&(i.left=this.toGrid(t.left())),this._setStyle(e,i),e},_renderMultipleGlyphStretchyBox:function(e,i){var n=i.children,o=n.length>0?n[n.length-1]:null,a=0;return this._setStretchyBoxSpecialWidthHeight(e,i),i.traverse(t.hitch(this,(function(t){var i;t&&(i=t.render(this),r.place(i,e),this._setStyle(i,{position:"absolute",display:"block",top:this.toGrid(a+t.glyphShift)}),a+=t.ascent(),t!==o&&(a+=t.descent()))}))),this._setStyle(e,{verticalAlign:this.toGrid(-i.descent())}),e},renderStretchyBox:function(e){var t=this.makeDomNode(e);return this._renderStretchyBoxApplyStyle(t,e),this._setBoxTextAlign(t,e),1===e.children.length?this._renderSingleGlyphStretchyBox(t,e):this._renderMultipleGlyphStretchyBox(t,e),e.setMetrics({cssAscent:e.ascent(),cssDescent:e.descent()}),t},_setBoxTextAlign:function(e,t){var i="left";"c"===t.alignment?i="center":"r"===t.alignment&&(i="right"),this._setStyle(e,{textAlign:i})},_setStretchyBoxSpecialWidthHeight:function(e,t){var i=t.precomputedWidth||t.fontSizePx,n={height:this.toGrid(t.height()),width:this.toGrid(i)};t.left()&&(n.left=this.toGrid(t.left())),this._setStyle(e,n)},_renderHBoxApplyStyle:function(e,t){var i=t.skip||0,n={display:"inline-block",position:"relative"};if(t.fontSizePx&&(n.fontSize=t.fontSizePx+"px"),i&&(n.marginLeft=i+"em"),t.borderRightWidth&&(n.borderRightWidth=t.borderRightWidth+"px"),t.borderRightStyle&&(n.borderRightStyle=t.borderRightStyle),t.leftShift||t.rightShift){var o=t.leftShift?-t.leftShift:0;o+=t.rightShift?t.rightShift:0,n.marginLeft=this.toGrid(o)}t.width()&&(n.width=this.toGrid(t.width())),t.downShift()&&(n.marginTop=this.toGrid(t.downShift()),n.marginBottom=this.toGrid(-t.downShift()),n.display="block"),this._setStyle(e,n)},renderHBox:function(e){var i=this.makeDomNode(e),o=e.fontSizePx||0,a=0,s=0;return n.set(i,"data-eqn-subscript",!0===e.subscript),n.set(i,"data-eqn-superscript",!0===e.superscript),e.children.length&&!e.accentBox()&&(a=Math.round(o*this.fontAscent),s=Math.round(o*this.fontDescent)),e.traverse(t.hitch(this,(function(e){var t;e&&(t=e.render(this),r.place(t,i),a=Math.max(a,e.cssAscent()),s=Math.max(s,e.cssDescent()))}))),e.setMetrics({cssAscent:a,cssDescent:s}),this._renderHBoxApplyStyle(i,e),i},_renderVBoxApplyStyle:function(e,t){var i=t.skip||0,n={display:"inline-block",position:"relative"};i&&(n.marginLeft=i+"em"),t.borderWidth&&(n.borderWidth=t.borderWidth+"px"),t.borderStyle&&(n.borderStyle=t.borderStyle),this._setStyle(e,n)},renderVBox:function(e){var i=this.makeDomNode(e),n=e.children,o=n.length>0?n[n.length-1]:null,a=0,l=0;if(this._renderVBoxApplyStyle(i,e),0===n.length)return this._setStyle(i,{height:this.toGrid(e.height()),verticalAlign:this.toGrid(-e.descent())}),e.setMetrics({cssAscent:e.ascent(),cssDescent:e.descent()}),i;this._setBoxTextAlign(i,e);var c=!1;return e.traverse(t.hitch(this,(function(e){var t,n,d,u;if(e){if(t=e.render(this),r.place(t,i),e instanceof f)return a+=e.length,void(l+=e.ascent());if(n=a+e.ascent()-e.cssAscent(),e.isStretchySymbolBox()?1===e.children.length&&(u=e.children[0]).ascent()-u.cssAscent()&&(d=u.ascent()-u.cssAscent(),s("webkit")&&(d=Math.max(Math.ceil(d/1.1),d-1)),this._setStyle(t,{display:"block",marginTop:this.toGrid(d)})):this._setStyle(t,{display:"block",marginTop:this.toGrid(n)}),a=e.descent()-e.cssDescent(),l+=e.ascent(),e!==o)l+=e.descent();else{var h=e.accentBox();h&&h.children&&h.children.length>1&&(c=!0)}}}))),c||this._setVBoxVerticalAlign(i,e,l),e.setMetrics({cssAscent:e.ascent(),cssDescent:e.descent()}),i},_setVBoxVerticalAlign:function(e,t,i){var n=t.ascent()-i;this._setStyle(e,{verticalAlign:this.toGrid(n)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1094)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){e=e||{},this.name="RuleBox",this.thickness=e.thickness||0,this.length=e.length||0,this.horizontal=!0},computeMetrics:function(){var e=this.length;this.horizontal&&(e=this.thickness),this.setMetrics({ascent:e,cssAscent:e})},render:function(e){return e.renderRuleBox(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(1880),i(1093),i(1362),i(1361)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(n,{constructor:function(e){e=e||{},this.name="VBox",this.alignment=e.alignment||"c",this.precomputedWidth=0},render:function(e){return e.renderVBox(this)},computeMetrics:function(){var e,t,i=this.children,n=0;if(i.length>0){for(e=0,n=0;n<i.length-1;n+=1)i[n]&&(e+=i[n].height());(t=i[i.length-1])&&this.setMetrics({ascent:e+t.ascent(),descent:t.descent()})}return this.borderWidth&&(this._ascent+=this.borderWidth,this._descent+=this.borderWidth),this},needsGapBefore:function(){return e.some(this.children,(function(e){return e.needsGapBefore()}))},needsGapBehind:function(){return e.some(this.children,(function(e){return e.needsGapBehind()}))},_scaleOneStretchyAccent:function(e,t,n,a){var s=i.getAccentBox(a);if(s)return n=n||e.computeWidth(t),s instanceof r?(s.resizeHorizontalStretchyBox(e,n),a.computeMetrics()):s instanceof o&&s.symbolAccentDownShift&&s.setDownShift(s.symbolAccentDownShift),s.baseIsItalic&&"topaccent"===s.accentType&&!t.belowXheight()?s.skip+=t.rightItalicCorrection()/2:s.setItalicCorrection(!1),n},_scaleStretchyBase:function(e,t,n,o){var r,a,s=i.getHorizontalStretchyAccentBox(t);s&&(r=n?e.computeWidth(n):0,a=o?e.computeWidth(o):0,(s=t.children[0]).resizeHorizontalStretchyBox(e,Math.max(r,a)),t.computeMetrics())},_scaleStretchyAccents:function(e,t,i,n){var o=0;o=this._scaleOneStretchyAccent(e,t,o,i),this._scaleOneStretchyAccent(e,t,o,n),this._scaleStretchyBase(e,t,i,n)},setLimitsScriptData:function(e,t,i,n,o,r){var a=this.templateParts,s=t[0],l=s.ascent(),c=t[2],d=t[1],u=1,h=e.barHeight(),p=0;this._scaleStretchyAccents(e,s,c,d),o&&(r?(p=s.belowXheight()?e.emToPx(e.renderer.fontAscent-e.renderer.fontXHeight):0,s.setMetrics({ascent:s.ascent()-p}),c.setDownShift(p)):(a[1].length=h,a[1].computeMetrics(),l+=h),l+=c.height()-p,u+=1),i&&(n||(a[u].length=h,a[u].computeMetrics())),this.computeMetrics(),this.setAscent(l)}})}),e,t),e.exports=o},function(e,t){e.exports="/*\n * Line node blocks decoration\n */\n.CodeBlock {\n margin: 10px 0 10px 0;\n background-color: #F7F7F7;\n}\n\n.CodeBlock+.paragraphNode {\n margin-top: 10px;\n}\n\n/*\n * Line nodes decoration\n */\n.lineNode {\n padding-left: 10px;\n border-left: 1px solid #E9E9E9;\n border-right: 1px solid #E9E9E9;\n}\n\n.inlineWrapper:first-child .lineNode,\n.inlineWrapper.outputs+.inlineWrapper .lineNode {\n padding-top: 5px;\n border-top: 1px solid #E9E9E9;\n}\n\n.inlineWrapper:last-child .lineNode,\n.inlineWrapper.outputs .lineNode {\n padding-bottom: 5px;\n border-bottom: 1px solid #E9E9E9;\n}\n\n.lineNode .textBox {\n white-space: pre;\n}"},function(e,t,i){var n,o;n=[i(224),i(211),i(213),i(225),i(579),i(3608),i(1884),i(1363),i(1885),i(3609),i(1886),i(3610),i(1887),i(1888),i(3611),i(3612),i(1889),i(1364)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return{_ELEMENT_NODE:1,writeOutputStyles:function(){var e="";return e+=f,e+=c,e+=".embeddedOutputsSymbolicElement .symbolicElement { overflow: initial !important;}\n",e+=".embeddedOutputsSymbolicElement .symbolicElement { width: 100% !important; }\n",e+=d,e+=".embeddedOutputsTextElement,.embeddedOutputsVariableStringElement { max-height: none !important;}\n",e+=".embeddedOutputsTextElement .textElement, .embeddedOutputsVariableStringElement .textElement { overflow: initial !important;}\n",e+=u,e+=h,e+=".variableValue { width: 100% !important; }\n",e+=s,e+=".matrixElement { max-height: none !important; }\n",e+=l,e+=g,e+=m,e+=p,e+=a,e+=r,(e+=_).replace(/\n/g,"").replace(/}/g,"}\n").replace(/.rtePane /g,"").replace(/.*rightPane.*\n/gm,"").replace(/.*alertPluginLayer.*\n/gm,"")},processOutput:function(e,t){var i=e.cloneNode(!0);return this._convertToInlineStyles(i,e),t&&this._processInteractiveVariableOutput(i,e,t),this._replaceEquationsInOutput(i,e),i=this._removeDoNotExportsFromOutput(i),i=this._removeMATLABLinksFromOutput(i),this._updateFiguresInOutputs(i,e),i=this._removeFigureWidgetsFromOutput(i)},_processInteractiveVariableOutput:function(i,n,o){var r=i.children;e.forEach(r,(function(e,i){var a=n.children[i],s=o.getOutputFromOutputDiv(a);if(s&&s.getHTMLContent){var l=s.getHTMLContent(r[i]);t.place(l,r[i].firstElementChild,"replace")}}))},_removeDoNotExportsFromOutput:function(e){var i;return n(".doNotExport",e).length>0?(i=e.cloneNode(!0),n(".doNotExport",i).forEach((function(e){t.destroy(e)})),i):e},_replaceEquationsInOutput:function(e,i){for(var r,a,s=n(".symbolicElement",i),l=n(".symbolicElement",e),c=0;c<s.length;c+=1)(r=o.exportDomnodeToImageURL(s[c],2)).simpleEquation?l[c].lastChild.innerHTML=o.simpleEquationToHTML(r.simpleEquation):(a=t.create("span",{class:"MathEquation",style:{verticalAlign:Math.round(r.verticalAlign)+"px"}},l[c].lastChild,"replace"),t.create("img",{src:r.dataURL,width:r.width/2,height:r.height/2},a))},_removeMATLABLinksFromOutput:function(e){var i,o,r=0,a=n("a",e);if(a.length>0){for(o=e.cloneNode(!0),a=n("a",o),r=0;r<a.length;r+=1)"matlab:"===a[r].href.substring(0,7)&&(i=document.createTextNode(a[r].textContent),t.place(i,a[r],"replace"));return o}return e},_updateFiguresInOutputs:function(e,o){var r=n("img.figureImage",e);if(r&&r.length>0)r.forEach((function(e){i.set(e,"height","auto"),i.set(e.parentNode,"height","auto")}));else{let r,a;const s=["PlaybackControlsView","SceneView"];for(let e=0;e<s.length&&(a=o.getElementsByClassName(s[e]),!(a.length>0));e++);if(a.length<=0&&(a=n("img.ImageView",o)),!a||a.length<=0)return;r=e.getElementsByClassName("GraphicsView");for(let e=0;e<a.length;e++){let n=new Image;n.src=a[e].toDataURL?a[e].toDataURL():a[e].src,t.place(n,r[e],"only"),i.set(n,"height","auto"),i.set(n.parentNode,"height","auto")}}},_removeFigureWidgetsFromOutput:function(e){let i,o,r;return r=["figureWidget","gbtFigureToolsContainer"],r.forEach((function(r){i=e.getElementsByClassName(r),i.length>0&&(o||(o=e.cloneNode(!0)),i=n("."+r,o),i.forEach((function(e){t.destroy(e)})))})),o||e},_convertToInlineStyles:function(e,t){if(t.nodeType===this._ELEMENT_NODE){var n=i.getComputedStyle(t);e.style.whiteSpace=n.whiteSpace,e.style.fontStyle=n.fontStyle,e.style.color=n.color,e.style.fontSize=n.fontSize;for(var o=0;o<t.childNodes.length;o++)this._convertToInlineStyles(e.childNodes[o],t.childNodes[o])}}}}),e,t),e.exports=o},function(e,t){e.exports=".rtePane .variableNameElement .headerElement {\n color: rgb(179, 179, 179);\n font-style: italic;\n}\n\n.rtePane .variableNameElement .headerElement .headerDataType {\n color: rgb(147, 176, 230);\n}\n\n.rtePane .figureElement .gbtFigureFrame {\n\tposition :relative !important;\n}"},function(e,t){e.exports="/* Copyright 2015-2021 The MathWorks, Inc. */\n.rtePane .inlineElement .symbolicElement {\n margin-top: 1px;\n margin-bottom: 1px;\n}\n\n.rtePane .rightPaneElement .symbolicElement {\n padding-top: 3px;\n padding-left: 9px;\n}\n\n.rtePane .embeddedOutputsSymbolicElement .MathEquation {\n margin-top: 4px;\n margin-bottom: 4px;\n}\n\n.rtePane .embeddedOutputsSymbolicElement .symbolicOutputWrapper {\n position: relative;\n}\n\n.rtePane .embeddedOutputsSymbolicElement .MathEquation.displaySymbolicElement {\n margin-left: 15px;\n}\n\n.rtePane .embeddedOutputsSymbolicElement .MathEquation.inlineSymbolicElement {\n}\n\n.rtePane .embeddedOutputsSymbolicElement .symbolicElement {\n overflow-x: auto;\n overflow-y: auto;\n /* this is a workaround for slow scrolling when a huge document has symbolic outputs */\n will-change: transform;\n}\n\n.mwDefaultVisualFamily.mwRichTextComponent .embeddedOutputsSymbolicElement .mwEquationEditor.enabled {\n /* no border on equation editor in outputs */\n box-shadow: 0 0 0;\n background: #ffffff;\n}\n\n.rtePane .functionCallPreviewClass {\n color: rgb(138, 138, 138);\n}\n"},function(e,t){e.exports='.rtePane .veSpecifier {\n}\n\n.rtePane .veContainer {\n}\n\n.rtePane .veSpecifierBox {\n height: 400px;\n width: 500px;\n}\n\n.rtePane .veSpecifier .veTable {\n padding-top: 3px;\n padding-bottom: 4px;\n}\n\n.rtePane .veSpecifierBox .veSpecifier .veContainer {\n position: relative;\n width: 100%;\n height: 370px;\n}\n\n.rtePane .veSpecifierBox .dijitDialogPaneContent {\n width: 97% !important;\n height: 88% !important;\n}\n\n.rtePane .veSpecifier .veTable .rowHeadersWrapper {\n padding-bottom: 0;\n}\n\n.rtePane .veSpecifier .veTable .scroller .variableEditorRenderers {\n padding-right: 3px;\n -webkit-user-select: none; /* Chrome all / Safari all */\n -moz-user-select: none; /* Firefox all */\n -ms-user-select: none; /* IE 10+ */\n}\n\n.rtePane .veSpecifier .veTable .topHeaderWrapper,\n.rtePane .veSpecifier .veTable .bottomRowHeaderWrapper {\n visibility: hidden;\n z-index: 0;\n}\n\n.rtePane .veMetaSummary {\n font-style: italic;\n}\n\n.rtePane .veSpecifier .veTable .scroller {\n overflow: hidden;\n}\n\n.rtePane .veSpecifier .veTable:hover .scroller {\n overflow: auto;\n}\n\n.rtePane .veSpecifier .veVariableName,\n.rtePane .veSpecifier .veDimensionFont {\n font-family: Menlo, Monaco, Consolas, "Courier New", monospace;\n font-size: 12px;\n}\n\n.rtePane .veSpecifier .veVariableName {\n padding-top: 2px;\n}\n\n.rtePane .veSpecifier .veDimensionFont {\n font-style: italic;\n color: #9A9A9A;\n}\n\n/* Set styling of scrollbars */\n.rtePane .veSpecifier .scroller::-webkit-scrollbar-track {\n background-color: white;\n}\n\n.rtePane .veSpecifier .scroller::-webkit-scrollbar-corner {\n background-color: white;\n}\n/* End styling of scrollbars */\n\n.rtePane .veSpecifier .veTable .topRowHeaderWrapper {\n border: none;\n background-color: #F8F9FA;\n}\n\n.rtePane .veSpecifier .mw_type_ListBase.showCellBorders,\n.rtePane .veSpecifier .veTable .topHeaderWrapper,\n.rtePane .veSpecifier .veTable .bottomRowHeaderWrapper,\n.rtePane .veSpecifier .veTable .verticalScrollSpacer,\n.rtePane .veSpecifier .veTable .horizontalScrollSpacer {\n /*Remove border around entire widget*/\n border: none;\n}\n\n.rtePane .veSpecifier .veTable .dataScrollerNode {\n border: 1px solid #BFBFBF;\n}\n\n.rtePane .veSpecifier .veTable .columnHeaderNode,\n.rtePane .veSpecifier .veTable .rowHeaderNode,\n.rtePane .veSpecifier .veTable .dataBody {\n font-family: Arial;\n font-size: 13px;\n}\n\n.rtePane .veSpecifier .veTable .columnHeaderNode,\n.rtePane .veSpecifier .veTable .rowHeaderNode {\n color: #7F7F7F;\n}\n\n.rtePane .veSpecifier .veTable .dataBody {\n color: #000000;\n}\n\n/*\nColumn headers are made up of draggable lines and actual headers\nApply background color to both\n*/\n.rtePane .veSpecifier .veTable .columnHeaderNode .cell .drag,\n.rtePane .veSpecifier .veTable .columnHeaderNode .cell .header,\n.rtePane .veSpecifier .veTable .topHeaderWrapper,\n.rtePane .veSpecifier .veTable .bottomRowHeaderWrapper {\n background-color: #F8F9FA;\n}\n\n.rtePane .veSpecifier .veTable .columnHeaderNode .cell .dragBorder {\n border-right: 1px solid #F8F9FA;\n}\n\n.rtePane .veSpecifier .veTable .rowHeaderNode .cell {\n padding-top: 3px;\n text-align: center;\n border-bottom: 1px solid #F8F9FA;\n}\n\n.rtePane .veSpecifier .veTable .dataBody .cell .plainText {\n text-align: right;\n}\n\n.rtePane .veSpecifier .veTable .dataBody .row .cell {\n border-bottom: 1px solid #E9E9E9;\n border-right: 1px solid #E9E9E9;\n}'},function(e,t){e.exports="/* CSS file for in-line view outputs */\n\n/* A div around a collection of outputRegion divs for grouped outputs */\n.rtePane .outputGroup {\n margin: 2px 0 2px 0;\n padding: 2px 2px 2px 4px;\n}\n\n/* A div covering a single output widget */\n.rtePane .outputRegion {\n\n}\n\n.rtePane .outputParagraph {\n color: rgba(64, 64, 64, 1);\n padding: 10px 0 6px 17px;\n background: white;\n overflow-x: hidden;\n}\n\n.rtePane .inlineWrapper:last-child .outputParagraph {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n\n/* Empty output paragraphs should not show up with any spacing */\n.rtePane .outputParagraph:empty {\n margin: 0;\n}"},function(e,t){e.exports='@import "alertPluginTooltip.css";\n\n.alertPluginLayer {\n position: relative !important;\n\n /* The icon floats above the text/cursor. This needs to be greater than 0 so that it is not affected by the line\n node\'s css. g1574537 */\n z-index: 2;\n}\n\n.rtePane .alertPlugin-alertLine {\n position: absolute;\n display: initial;\n width: 40px; /* Wide enough to contain two alert icons */\n text-align: right;\n cursor: text;\n}\n\n.rtePane .alertPlugin-onTextLine {\n visibility: hidden;\n}\n\n/**\n * Common styling for errors and warnings\n */\n.rtePane .alertPlugin-hasTooltip .alertPlugin-warningImg,\n.rtePane .alertPlugin-hasTooltip .alertPlugin-errorImg {\n cursor: pointer;\n}\n\n.rtePane .alertPlugin-alertLine .alertPlugin-warningElement,\n.rtePane .alertPlugin-alertLine .alertPlugin-errorElement {\n display: inline-block;\n margin-right: 4px;\n}\n\n.rtePane .alertPlugin-isStale {\n -webkit-filter: opacity(0.4) grayscale(80%);\n filter: opacity(0.4) grayscale(80%);\n}\n\n'},function(e,t,i){var n,o;n=[i(203),i(205),i(3614)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1890),i(803),i(547),i(314)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e){e.registerNodeConverter(o,t.hitch(this,"_serializeSelection"))},_serializeSelection:function(e){var t=new i;new n(t).traverseSelection(e);var o=t.getSerialized();return[{flavor:r.MATLAB_RICHTEXT,content:JSON.stringify(o)}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1366)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter","rtc.internaldocument","rtc.view","rtc.view.decoration.viewmodel"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(213),i(210),i(221),i(225),i(452),i(579),i(1891),i(1883)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return t(c,{_PIX_TO_POINT_FACTOR:15,_MATLAB:"matlab:",_VE_SCALING_FACTOR:"10",_MULTIPLIER_SYMBOL:"\\'d7",_FONT_TABLE:"{\\fonttbl{\\f0\\fswiss Helvetica;}{\\f1\\fmodern Consolas \\falt Courier;}}\n",_FONT_TABLE_MAC:"{\\fonttbl{\\f0\\fswiss Helvetica;}{\\f1\\fmodern Menlo \\falt Courier;}}\n",constructor:function(e){e=e||{}},_reset:function(){this.colors=[],this.numOfColors=0,this._listNumber=0,this._lists="",this._listoverrides="",this.inherited(arguments)},_writeFontTable:function(){return o("mac")?this._FONT_TABLE_MAC:this._FONT_TABLE},_handleFileEndSelection:function(e){var t=e.rootContainer(),i=this._view.getNodeBox(t),n=i?i.nextSibling:null;n||(n=t);for(var o=n;o;)(o=n.lastChild)&&(n=o);n&&(this._endNode=n,this._endPosInNode=this._endNode.length)},_writeColorTable:function(){var e,t="";return this.colors.forEach((function(i){(e=i.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(,\s*\d?\.?\d+)?\)/))&&(t+="\\red"+parseInt(e[1],10)+"\\green"+parseInt(e[2],10)+"\\blue"+parseInt(e[3],10)+";")})),t?"\n{\\colortbl"+t+"}\n":""},_writeListTable:function(){if(""===this._lists)return"";var e="{\\*\\listtable";return e+=this._lists,e+="}\n",e+="{\\*\\listoverridetable"+this._listoverrides+"}\n"},_addList:function(e,t,i){var n="{\\list\\listtemplateid"+e;n+="\\listhybrid",n+="{\\listlevel",t?(n+="\\levelnfc0\\levelnfcn0\\leveljc0\\leveljcn0\\levelfollow0\\levelstartat1\\levelspace360\\levelindent0"+i,n+="{\\*\\levelmarker \\{decimal\\}.}",n+="{\\leveltext\\leveltemplateid"+e,n+="\\'02\\'00.;}",n+="{\\levelnumbers\\'01;}"):(n+="\\levelnfc23\\levelnfcn23\\leveljc0\\leveljcn0\\levelfollow0\\levelstartat1\\levelspace360\\levelindent0"+i,n+="{\\*\\levelmarker \\{disc\\}}",n+="{\\leveltext\\leveltemplateid"+e,n+="\\'01\\uc0\\u8226 ;}",n+="{\\levelnumbers;}"),n+="\\fi-360\\li720\\lin720 ",n+="}",n+="{\\listname ;}",n+="\\listid"+e,n+="}\n",this._lists+=n,this._listoverrides+="{\\listoverride\\listid"+e+"\\listoverridecount0\\ls"+e+"}"},_enterTextNode:function(e){n.contains(this._getParentNode(e),"textWrapper")||this._writeText(e,e.textContent)},_writeOpening:function(){return"{\\rtf1\\ansi"+this._writeFontTable()+this._writeColorTable()+this._writeListTable()},_writeClosing:function(){return"}"},_openParagraph:function(e){e.rteNode&&e.rteNode.anchorId&&(this._body+="{\\fcs1 {\\*\\bkmkstart internal:"+e.rteNode.anchorId+"}{\\*\\bkmkend internal:"+e.rteNode.anchorId+"}"),this._body+="\\pard",this._setAlignment(e);var t=this._isNodeInDOM(e)?i.getComputedStyle(e):e.style;this._body+="\\sb"+Math.max(parseInt(t.marginTop,10),0)*this._PIX_TO_POINT_FACTOR,this._body+="\\sa"+Math.max(parseInt(t.marginBottom,10),0)*this._PIX_TO_POINT_FACTOR,this._body+=" "},_setAlignment:function(e){var t=this._isNodeInDOM(e)?i.getComputedStyle(e):e.style;"center"===t.textAlign?this._body+="\\qc":"right"===t.textAlign?this._body+="\\qr":this._body+="\\ql"},_openText:function(e){this._body+="\\plain";var t=this._isNodeInDOM(e)?i.getComputedStyle(e):e.style;t.fontFamily.indexOf("monospace")>-1?this._body+="\\f1":this._body+="\\f0",this._body+="\\fs"+Math.round(1.5*parseInt(t.fontSize,10));var n=this.colors.indexOf(t.color);n<0&&(this.colors.push(t.color),n=this.colors.length-1),this._body+="\\cf"+n,"italic"===t.fontStyle&&(this._body+="\\i"),"bold"!==t.fontWeight&&"700"!==t.fontWeight||(this._body+="\\b"),"underline"===t.textDecoration&&(this._body+="\\ul"),this._body+=" "},_writeText:function(e,t){var i,n=t||this._getNodeTextWithLineBreak(e),o=0;e===this._startNode&&this._startPosInNode&&(o=this._startPosInNode),e===this._endNode&&-1!==this._endPosInNode&&(i=this._endPosInNode),this._body+=l.getFormattedChars(n.substring(o,i))},_startNodeElement:function(e){if("div"===e.localName&&e.className&&(e.className.indexOf("ToCHeading")>-1||e.className.indexOf("ToCItems")>-1))return!1;if("ul"===e.localName&&(this.listItemNumber=0,this._openList(e)),"ol"===e.localName&&(this._openList(e,!0),this.listItemNumber=1),"li"===e.localName&&(this.listItemNumber?(this._body+="{\\listtext "+this.listItemNumber+" }",this.listItemNumber+=1):this._body+="{\\listtext \\'95 }",this._setAlignment(e)),"br"===e.localName&&(this._body+="\\line "),"strong"===e.localName&&(this._body+="\\b "),n.contains(this._getParentNode(e),"liveAppLineWidget")&&!n.contains(e,"liveAppCode"))return!0;if("div"===e.localName)return this._checkForOpenParagraph(e);if("h1"===e.localName||"h2"===e.localName)return this._openParagraph(e),!1;if("a"===e.localName&&e.href.substring(0,7)!==this._MATLAB){var t=0===e.href.indexOf("internal")?" \\\\l ":"";this._body+="{\\field{\\*\\fldinst{HYPERLINK "+t+'"'+e.href+'"}}{\\fldrslt{\\ul\\cf1 ',this._openText(e)}else{if("equationNode"===e.className)return this._writeEquationNode(e),!0;if("img"===e.localName)return this._body+=this._writeImage(e.src,e.clientWidth,e.clientHeight),!0;if(n.contains(e,"textBox"))return this._writeTextNode(e),!0}return!1},_writeChildNodeForTextNode:function(e,t){this._openText(t),this._body+=l.getFormattedChars(e)},_getNodeTextWithLineBreak:function(e){return e.innerText},_endNodeElement:function(e){"div"===e.localName&&e.className&&e.className.indexOf("ToC")>-1||("div"!==e.localName&&"h1"!==e.localName&&"h2"!==e.localName||this._checkForCloseParagraph(e)||(this._body+="\\par\n"),"li"===e.localName&&(this._body+=" \\f0\\\n"),"a"===e.localName&&e.href.substring(0,7)!==this._MATLAB&&(this._body+="}}}"),"strong"===e.localName&&(this._body+="\\b0 "))},_checkForOpenParagraph:function(e){return!n.contains(e,"outputParagraph")&&(!!n.contains(e,"doNotExport")||(n.contains(e,"figureElement")?(this._writeFigureOutputElement(e),!0):n.contains(e,"matrixElement")?(this._writeMatrixOutputElement(e),!0):n.contains(e,"outputElement")||n.contains(e,"textElement")||n.contains(e,"variableElement")||n.contains(e,"diagnosticMessage-messagePart")||n.contains(e,"diagnosticMessage-stackPart")?!e.innerHTML||(this._openText(e),!1):n.contains(e,"symbolicElement")?(this._writeSymbolicOutputElement(e),!0):n.contains(e,"lineNode")?(this._writeLineNode(e),!1):n.contains(e,"inlineElement")?(this._body+="\\pard\\li255\\sb150\\sa340 ",!1):n.contains(e,"tableElement")&&this._embeddedOutputsView?(this._writeTableOutputElement(e),!0):n.contains(e,"diagnosticMessage-wrapper")?(this._writeDiagnosticOutputMessage(e),!1):!(!n.contains(e,"MathEquation")&&!n.contains(e,"render-target"))||("liveControlOuterNode"===e.className?(this._writeLiveControlNode(e),!0):(this._openParagraph(e),!1))))},_checkForCloseParagraph:function(e){return n.contains(e,"inlineWrapper")||n.contains(e,"CodeBlock")||n.contains(e,"symbolicElement")||n.contains(e,"variableElement")||n.contains(e,"matrixElement")||n.contains(e,"outputParagraph")||n.contains(e,"figureElement")||n.contains(e,"diagnosticMessage-wrapper")||n.contains(e,"SectionBlock")||n.contains(e,"textElement")||n.contains(e,"embeddedOutputsWarningElement")||n.contains(e,"tableElement")||n.contains(e,"liveControlOuterNode")||!e.innerHTML},_openList:function(e){var t=this._isNodeInDOM(e)?i.getComputedStyle(e):e.style,n="\\cf"+this._colorIndex(e)+" ";this._listNumber+=1,this._addList(this._listNumber,"ol"===e.localName,n),this._body+="\\pard\\tx220\\tx720\\pardeftab720\\li720\\fi-720\\sa225\n",this._body+="\\ls"+this._listNumber+"\\ilvl0\\f0\\fs"+Math.round(1.5*parseInt(t.fontSize,10))},_colorIndexBg:function(e){var t=(this._isNodeInDOM(e)?i.getComputedStyle(e):e.style).backgroundColor,n=this.colors.indexOf(t);return n<0&&(this.colors.push(t),n=this.colors.length-1),n},_colorIndex:function(e){var t=(this._isNodeInDOM(e)?i.getComputedStyle(e):e.style).color,n=this.colors.indexOf(t);return n<0&&(this.colors.push(t),n=this.colors.length-1),n},_writeDiagnosticOutputMessage:function(e){var t=this._colorIndex(e);this._body+="\\cf"+t+" ",this._openText(e)},_writeLineNode:function(e){if(!this._isRootNode(this._getParentNode(e))){var t=this._colorIndexBg(this._getParentNode(this._getParentNode(e)));this._body+="\\cbpat"+t+" "}},_writeSymbolicOutputElement:function(e){var t=e.getElementsByClassName("embeddedOutputsVariableElement"),i="";t[0]&&"div"===t[0].localName&&(i="\\line "),t.length>0&&(this._openText(t[0]),this._writeText(t[0]),this._body+=i),this._writeEquationNode(e)},_writeMatrixOutputElement:function(t){var i=t.getElementsByClassName("variableNameElement");if(i.length>0){this._openText(i[0].firstChild),this._writeText(i[0].firstChild);var o=this._embeddedOutputsView?this._embeddedOutputsView.getOutputFromOutputDiv(this._getParentNode(t)):null;if(this._writeNodeContent(t,"veVariableValueSummary"),o&&o.getFocusedView){var a=r(".veViewportSummary",t);a.length>0&&!n.contains(a[0],"hide")&&(this._body+="{ ",e.forEach(a[0].children,(function(e){this._openAndWrite(e)}),this),this._body+="}"),this._body+="\\line ";var s=t.getElementsByClassName("veScalingFactor")[0];if(s&&!n.contains(s,"hide")){this._body+=this._VE_SCALING_FACTOR;var l=s.getElementsByClassName("scaleExponent")[0];this._body+="{\\super "+l.textContent+"}\\fs21"+this._MULTIPLIER_SYMBOL+" \\line "}}else this._body+="\\line ";this._writeNodeContent(t,"variableValue")}},_writeTableOutputElement:function(e){var t=this._embeddedOutputsView.getOutputFromOutputDiv(this._getParentNode(e));this._writeNodeContent(e,"summaryBarVarName"),this._writeNodeContent(e,"summaryBarAssign"),this._writeNodeContent(e,"summaryBarSize"),this._body+=" ",this._writeNodeContent(e,"summaryBarType"),this._body+=" ",(t.getMetaSummary?t.getMetaSummary():"")&&(this._writeNodeContent(e,"filterSummaryData"),this._body+=" "),this._body+="\\par\n\\pard ",this._openText(e),this._body+="{"+t.getRTFContent()+"}"},_writeNodeContent:function(e,t){var i=e.getElementsByClassName(t);i&&i.length>0&&this._openAndWrite(i[0])},_openAndWrite:function(e){this._openText(e),this._writeText(e)},_writeFigureOutputElement:function(e){var t=e.getElementsByClassName("figureImage");if(t.length>0)this._body+=this._writeImage(t[0].src,t[0].clientWidth,t[0].clientHeight);else if((t=e.getElementsByClassName("SceneView")).length<=0&&(t=r("img.ImageView",e)),t.length>0){const e=t[0].toDataURL?t[0].toDataURL():t[0].src;this._body+=this._writeImage(e,t[0].clientWidth,t[0].clientHeight)}},_writeEquationNode:function(e){if(o("ie"))return"";var t=s.exportDomnodeToImageURL(e,2),i=t.verticalAlign*this._PIX_TO_POINT_FACTOR;this._body+=this._writeImage(t.dataURL,t.width,t.height,2,i)},_writeImage:function(e,t,i,n,o){var r="",s=a.getHexBinaryFromURI(e);if(!s)return r;n||(n=1);var l="pngblip";return"jpg"!==s.format&&"jpeg"!==s.format||(l="jpegblip"),r+="{\\pict\\"+l,r+="\\picw"+t,r+="\\pich"+i,r+="\\picwgoal"+Math.round(t*this._PIX_TO_POINT_FACTOR/n),r+="\\pichgoal"+Math.round(i*this._PIX_TO_POINT_FACTOR/n),o<0&&(r+="\\dn"+Math.round(o/-10)),r+="\n",r+=s.hexData,r+="}"},_writeLiveControlNode:function(e){var t=e.getElementsByClassName("liveControlTextView")[0];this._writeTextNode(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(378),i(3618)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(e){return i.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.editordataservice","rtc.internaldocument","rtc.document","language.interface.tokenmanager","rtc.view","rtc.domnode","rtc.datatip.requester","rtc.settings.service"]}},createInstance:function(e,t,i,o,r,a,s,l){return new n(e,t,i,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1367),i(1892)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_DATATIP_CSS_CLASS:"datatipElement",_DATATIP_FUNCTION:"datatipinfo",_DATATIP_SETTING_ID:"matlab.editor.displaysettings.DataTipsInEditMode",_EVAL_FUNCTION:"evalc",constructor:function(e,t,i,n,o,r,a,s){this._view=o,this._domNode=r,this._datatipRequester=a,this._settingService=s,this.own(this._settingService.listenToSettingChange(this._DATATIP_SETTING_ID,this._handleSettingUpdated.bind(this))),this._shouldShowDataTips=!1,this._settingService.getSetting(this._DATATIP_SETTING_ID).then(function(e){this._shouldShowDataTips=e}.bind(this),(function(e){}))},_handleSettingUpdated:function(e){this.setEnabled(e)},getTooltipContent:function(e,t,n){var o=this.inherited(arguments);o&&(this._shouldShowDataTips||i.isDebugging())?i.isDebugging()?this._latestPromise=this._requestDatatipWhileDebugging(o,e,n):this._latestPromise=this._requestDatatip(this._EVAL_FUNCTION,[this._DATATIP_FUNCTION+"('"+o.trim()+"')"],e,n):n(this._NO_TOOLTIP)},_updateDataTip:function(e,t,n){var o,r=n[0].mwdata?n[0].mwdata[0]:n[0];r.trim()&&(o=i.createTooltipDiv(this._view,r.trim(),e,this._DATATIP_CSS_CLASS,this._domNode)),t(o,!0)},_errorCallback:function(e,t){e(this._NO_TOOLTIP)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3620)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.execution.capabilityblacklist"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(297),i(363),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_TEN_SECOND_TIMEOUT:1e4,constructor:function(e){this._capabilityBlacklist=e,this._mvm=i.getInstance()},requestDatatip:function(e,i,n,o){var r=new t(this._TEN_SECOND_TIMEOUT);r.setOutTextCallback(null),r.setErrTextCallback(null),this._capabilityBlacklist.excludeCurrentCapabilitiesFromRunOptions(r,["Debugging"]);var a=this._mvm.feval(e,1,i,r);return a.then(n,o),a},destroy:function(){this.inherited(arguments),this._mvm=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3622)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.cursor","rtc.focusservice","rtc.cutcopypaste.converter","rtc.draganddropnotifier","rtc.view","rtc.internaldocument","rtc.divselection","rtc.cursorcontroller","rtc.id"]}},createInstance:function(){return new i(...arguments)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(208),i(221),i(206),i(234),i(379),i(314),i(233),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(null,{_COPY_MOVE_EFFECT:"copyMove",_COPY_EFFECT:"copy",_NO_EFFECT:"none",_MOUSE_DOWN:"mouseDown",_TEXT_MIMETYPE_FOR_IE:"text",_TRANSPARENT_GIF_SRC:"fatdata:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",_DROP_REQUEST_CHANNEL:"/liveeditor/draganddrop/droprequest",constructor:function(e,t,o,r,a,s,l,c,d,u){this._document=e,this._focusService=o,this._cursor=t,this._converter=r,this._view=s,this._internalDocument=l,this._divSelection=c,this._cursorController=d,this._rtcId=u,this._connections=[],this._draggedTextInfo=null,this._connections.push(n.after(a,"onDragEnter",i.hitch(this,"_handleDragEnter"),!0)),this._connections.push(n.after(a,"onDragOver",i.hitch(this,"_handleDragOver"),!0)),this._connections.push(n.after(a,"onDragLeave",i.hitch(this,"_handleDragLeave"),!0)),this._connections.push(n.after(a,"onDrop",i.hitch(this,"_handleDrop"),!0)),this._view.setDraggable(!0),this._connections.push(n.after(a,"onDragStart",i.hitch(this,"_handleDragStart"),!0)),this._connections.push(n.after(a,"onDragEnd",i.hitch(this,"_handleDragEnd"),!0))},_handleDragEnter:function(e){this._focusService.setFocus(),this._cursorController.clearSelection(),this._handleDragOver(e)},_handleDragOver:function(e){this._cursorController.setCursorToEvent(e),this._cursor.isCursorReadOnly()&&(e.dataTransfer.dropEffect=this._NO_EFFECT)},_handleDragLeave:function(e){this._cursor.isCursorReadOnly()&&(e.dataTransfer.dropEffect=this._NO_EFFECT)},_handleDragStart:function(e){this._cursorController.hasSelection()&&("function"==typeof e.dataTransfer.setDragImage&&e.dataTransfer.setDragImage(this._getDragImage(),0,0),this._draggedTextInfo={coordinates:this._cursorController.getSelectionLineColumn()},this._draggedTextInfo.selectionInfo=s.getLiveSelectionFromCursor(this._cursorController),e.dataTransfer.effectAllowed=this._COPY_MOVE_EFFECT,this._draggedTextInfo.operation=this._COPY_MOVE_EFFECT,o("mac")?!e.altKey||e.metaKey||e.shiftKey||e.ctrlKey||(e.dataTransfer.effectAllowed=this._COPY_EFFECT,this._draggedTextInfo.operation=this._COPY_EFFECT):!e.ctrlKey||e.altKey||e.shiftKey||(e.dataTransfer.effectAllowed=this._COPY_EFFECT,this._draggedTextInfo.operation=this._COPY_EFFECT),this._cursor.isCursorReadOnly()&&(this._draggedTextInfo.operation=this._COPY_EFFECT,e.dataTransfer.effectAllowed=this._COPY_EFFECT),this._divSelection.lockSelection(),this._setDataTransferObject(e))},_setDataTransferObject:function(e){var t=this._converter.convertToClipboard(this._cursorController.getSelection());t.some((function(e){if(e.flavor===l.MATLAB_RICHTEXT)return this._draggedTextInfo.flavor_content=e.content,!0}),this);try{t.forEach((function(t){e.dataTransfer.setData(t.flavor,t.content)}),this)}catch(t){e.dataTransfer.setData(this._TEXT_MIMETYPE_FOR_IE,this._cursorController.selectedText())}},_handleDrop:function(e){if(this._cursor.isCursorReadOnly())return t.stop(e),void e.preventDefault();if(!this._handleDropFiles(e)){if(this._document.startEdit(),this._draggedTextInfo){var n=this._draggedTextInfo.flavor_content;this._divSelection.unlockSelection(),this._cursorController.clearSelection(),this._draggedTextInfo.operation===this._COPY_MOVE_EFFECT&&this._deleteSelectedText(),this._draggedTextInfo=null}var o=i.hitch(this,(function(t){try{return t===l.MATLAB_RICHTEXT&&!e.dataTransfer.getData(t)&&n?n:e.dataTransfer.getData(t)}catch(i){if(n)return n;if(t===l.TEXT)return e.dataTransfer.getData(this._TEXT_MIMETYPE_FOR_IE)}})),r=this._converter.convertContentFromSource(o);r&&(this._document.insertContentAtCurrentPosition(r),d.publish(this._DROP_REQUEST_CHANNEL+this._rtcId,{})),this._document.endEdit()}},_handleDropFiles:function(e){if(!e.fileInfo||e.fileInfo.length<=0)return!1;const t={filePaths:e.fileInfo};return d.publish(this._DROP_REQUEST_CHANNEL+this._rtcId,t),!0},_handleDragEnd:function(e){this._draggedTextInfo&&(this._divSelection.unlockSelection(),this._cursorController.setSelection(this._draggedTextInfo.selectionInfo),s.destroyLiveSelection(this._draggedTextInfo.selectionInfo),this._draggedTextInfo=null)},_deleteSelectedText:function(){this._draggedTextInfo.coordinates.forEach((function(e){var t=e.start,i=e.end;t.line>i.line?this._document.deleteText(i.line,i.column,t.line,t.column):t.line===i.line&&t.column>i.column?this._document.deleteText(t.line,i.column,i.line,t.column):this._document.deleteText(t.line,t.column,i.line,i.column)}),this)},_getDragImage:function(){if(!this._invisibleDragImage){var e=document.createElement("img");e.src=o("mac")&&o("safari")?this._TRANSPARENT_GIF_SRC:"",e.style.display="none",this._invisibleDragImage=e}return this._invisibleDragImage},destroy:function(){this._view.setDraggable(!1),this._connections.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3624)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.domnode"]}},createInstance:function(e,t){var n=e.getDomtarget();return new i(t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(804),i(207),i(3634)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{constructor:function(e,o){this._isDragging=!1,this._dndEventListeners=[];let a=function(e){this._handleDragEnter(e)}.bind(this),s=function(e){this._handleDrop(e)}.bind(this);n.createContext({context:window.document.body}).createDropTarget({allowGlobal:!0,dropTarget:e,lifecycle:{enter:function(e,t){return a(event),!0},drop:function(e,t){return s(event),!0}}});this.own(i(e,"dragleave",t.hitch(this,"_handleDragLeave"))),this.own(i(e,"dragover",t.hitch(this,"_handleDragOver"))),this.own(i(o,"dragstart",t.hitch(this,"_handleDragStart"))),this.own(i(o,"dragend",t.hitch(this,"_handleDragEnd"))),r.enableDnDInCef()},_handleDragEnter:function(e){this._isDragging||(this._isDragging=!0,this.onDragEnter(e)),e.preventDefault()},_handleDragLeave:function(e){e.preventDefault(),this.onDragLeave(e)},_handleDragOver:function(e){e.preventDefault(),this.onDragOver(e)},_handleDragEnd:function(e){this._isDragging=!1,e.preventDefault(),this.onDragEnd(e)},_handleDragStart:function(e){this.onDragStart(e)},_handleDrop:function(e){this._isDragging=!1,e.preventDefault(),e.fileInfo=r.retrieveDraggingFiles(),this.onDrop(e)},onDragEnter:function(e){},onDragLeave:function(e){},onDragOver:function(e){},onDragStart:function(e){},onDragEnd:function(e){},onDrop:function(e){}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(3626),i(3627),i(3628),i(3632),i(1369),i(1898),i(3633),i(1896)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){return function(){function c(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),this._initialize(e),this._setDndListenerEvents(),this._handleDynamicConfig(e)}return r(c,[{key:"_initialize",value:function(e){this._dragSources=[],this._dropTargets=[],this._canDropTracker=new s,this._dataStore={},this._dragInProgress=!1,this._contextDOM=e.context,this._setDnDListener(e)}},{key:"_setDnDListener",value:function(e){var t=this,n=this._getDropStatus.bind(this);this._dndListener=new i(e.context,(function(){return t._dragSources}),(function(){return t._dropTargets}),(function(){return t._dragInProgress}),n,(function(){return t._dataStore.dragOperations||[]}))}},{key:"_setDndListenerEvents",value:function(){this._dndListener.on("dragStart",this._handleDragStart.bind(this)),this._dndListener.on("dragEnter",this._handleDragEnter.bind(this)),this._dndListener.on("dragOverCoordinates",this._handleDragOverCoordinates.bind(this)),this._dndListener.on("dragOver",this._handleDragOver.bind(this)),this._dndListener.on("dragLeave",this._handleDragLeave.bind(this)),this._dndListener.on("drop",this._handleDrop.bind(this)),this._dndListener.on("dragEnd",this._handleDragEnd.bind(this))}},{key:"_handleDynamicConfig",value:function(e){var t=this,i=e.handleDynamicDragSources,n=e.context;!0===i&&(this._observer=new MutationObserver((function(){i&&t._dndListener.handleDynamicDragSources()})),this._observer.observe(n,{childList:!0,subtree:!0}))}},{key:"_handleDragStart",value:function(e){this._dataStore.dragData=new Map;var t=n.processAndExecuteHook("dragStart")(e)(this._dataStore);this._dragInProgress=t}},{key:"_handleDragEnter",value:function(e){var t=n.processAndExecuteHook("dragEnter")(e)(this._dataStore);if(a.isAvatarPresent){var i=this._getDropStatus();t?i!==o.StatusEnum.VALID&&a.customAvatar.enterValidDropTarget():i!==o.StatusEnum.INVALID&&a.customAvatar.leaveValidDropTarget()}this._canDropTracker.addCanTargetDrop(t)}},{key:"_handleDragOverCoordinates",value:function(e){var t=e.xCoord,i=e.yCoord;a.isAvatarPresent&&a.customAvatar.updatePosition(t,i)}},{key:"_handleDragOver",value:function(e){var t=this._getDropStatus();a.isAvatarPresent&&("none"===e.dropEffect?a.customAvatar.leaveValidDropTarget():t===o.StatusEnum.VALID&&a.customAvatar.enterValidDropTarget()),n.processAndExecuteHook("dragOver")(e)(this._dataStore)}},{key:"_handleDragLeave",value:function(e){n.processAndExecuteHook("dragLeave")(e)(this._dataStore);var t=this._getDropStatus();this._canDropTracker.removeTopItem(),a.isAvatarPresent&&0===this._canDropTracker.length&&t===o.StatusEnum.VALID&&a.customAvatar.leaveValidDropTarget()}},{key:"_handleDrop",value:function(e){this._getDropStatus()===o.StatusEnum.VALID&&n.processAndExecuteHook("drop")(e)(this._dataStore),a.isAvatarPresent&&(a.customAvatar.remove(),a.clearAvatar()),this._canDropTracker.empty()}},{key:"_handleDragEnd",value:function(e){n.processAndExecuteHook("dragEnd")(e)(this._dataStore),this._dragInProgress=!1,a.isAvatarPresent&&(a.customAvatar.remove(),a.clearAvatar()),this._dataStore={},this._canDropTracker.empty()}},{key:"_getDropStatus",value:function(){var e=o.StatusEnum.INVALID;this._canDropTracker.length>0&&(this._canDropTracker.getTopItem().canDrop&&(e=o.StatusEnum.VALID));return e}},{key:"createDropTarget",value:function(e){var i=this,n=new t(e,{spliceDropTarget:function(){i._dropTargets=i._dropTargets.filter((function(e){return!e===n}))}});return this._dropTargets.push(n),n}},{key:"createDragSource",value:function(t){var i=this,n=this._dndListener,o=new e(t,{spliceDragSource:function(){i._dragSources=i._dragSources.filter((function(e){return!e===o}))},dndListener:n});return this._dragSources.push(o),o}},{key:"destroy",value:function(){this._dndListener.destroy(),this._dragSources.forEach((function(e){e.destroy()})),this._dropTargets.forEach((function(e){e.destroy()})),this._dragSources=[],this._dropTargets=[],this._observer&&this._observer.disconnect()}},{key:"COPY",get:function(){return l.COPY}},{key:"MOVE",get:function(){return l.MOVE}},{key:"NONE",get:function(){return l.NONE}},{key:"ALL",get:function(){return l.ALL}}]),c}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(t,i){var n=i.spliceDragSource,o=i.dndListener;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._validate(t);var r=t.dragSource,a=t.lifecycle,s=t.allowGlobal;this.dragStart=a.start,this._removeFromContext=n,this.dragEnd=a.end,"string"==typeof r&&(this._dragSourceType="SELECTOR",this._dragSourceSelector=r),r instanceof HTMLElement&&(this._dragSourceType="DOM",this._dragSourceDOM=r),this._allowGlobal=!!s,o.setDraggableAttribute(this),this._dndListener=o}return r(e,[{key:"_validate",value:function(e){if(!e.dragSource)throw new Error("Expected: dragSource key should be defined");if(!e.lifecycle)throw new Error("Expected: lifecycle key should be defined");if(!e.lifecycle.start)throw new Error("Expected: lifecycle should have start function defined")}}]),r(e,[{key:"destroy",value:function(){this._dndListener.removeDraggableAttribute(this),this._removeFromContext(),this.dragStart=null,this.dragEnd=null,this._dragSourceDOM=null,this._dragSourceType=null,this._dragSourceSelector=null}},{key:"allowGlobal",get:function(){return this._allowGlobal}},{key:"type",get:function(){return this._dragSourceType}},{key:"domNode",get:function(){return this._dragSourceDOM}},{key:"selector",get:function(){return this._dragSourceSelector}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(t,i){var n=i.spliceDropTarget;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.validate(t);var o=t.dropTarget,r=t.lifecycle,a=t.rowRegions,s=t.columnRegions,l=t.allowGlobal;this._removeFromDropTargets=n,"string"==typeof o&&(this._dropTargetType="SELECTOR",this._dropTargetSelector=o),o instanceof HTMLElement&&(this._dropTargetType="DOM",this._dropTargetDOM=o),this._allowGlobal=!!l,this.dragEnter=r.enter,this.dragOver=r.hover,this.dragLeave=r.leave,this.drop=r.drop,this.rowRegions=a,this.columnRegions=s}return a(e,[{key:"validate",value:function(e){if(!e.dropTarget)throw new Error("Expected: dropTarget key should be defined");if(!e.lifecycle)throw new Error("Expected: lifecycle key should be defined");if(!e.lifecycle.enter||!e.lifecycle.drop)throw new Error("Expected: lifecycles should have enter and drop functions defined ");if(e.rowRegions){var t=r(e.rowRegions);if("function"!==t&&"string"!==t)throw new Error("Expected: rowRegions should be of type string or function");if("string"===t&&!this._validateRegions(e.rowRegions))throw new Error("Expected: rowRegions should be of format px, % or number")}if(e.columnRegions){var i=r(e.columnRegions);if("function"!==i&&"string"!==i)throw new Error("Expected: columnRegions should be of type string or function");if("string"===i&&!this._validateRegions(e.columnRegions))throw new Error("Expected: columnRegions should be of format px, % or number")}}}]),a(e,[{key:"_validateRegions",value:function(e){var t=/^(([0-9]+(px|%)?)|auto)$/g;return e.split(" ").every((function(e){return null!==e.match(t)}))}},{key:"hasRegions",value:function(){return this.hasRowRegions()||this.hasColumnRegions()}},{key:"hasRowRegions",value:function(){return!!this.rowRegions}},{key:"hasColumnRegions",value:function(){return!!this.columnRegions}},{key:"destroy",value:function(){this._removeFromDropTargets(),this._dropTargetType=null,this._dropTargetDOM=null,this._dropTargetSelector=null}},{key:"allowGlobal",get:function(){return this._allowGlobal}},{key:"type",get:function(){return this._dropTargetType}},{key:"domNode",get:function(){return this._dropTargetDOM}},{key:"selector",get:function(){return this._dropTargetSelector}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(1893),i(1894),i(1897)],o=i.dj.d(n,(function(e,t,i){return function(){function n(){var i=this;a(this,n);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];this._html5DnDListener=new(Function.prototype.bind.apply(t,[null].concat(r))),this._listeners=[],this._html5DnDListener.on("dragStart",(function(e){i._on.emit("dragStart",e)})),this._html5DnDListener.on("dragEnter",this._handleDragEnter.bind(this)),this._html5DnDListener.on("dragOverCoordinates",(function(e){i._on.emit("dragOverCoordinates",e)})),this._html5DnDListener.on("dragOver",this._handleDragOver.bind(this)),this._html5DnDListener.on("dragLeave",this._handleDragLeave.bind(this)),this._html5DnDListener.on("drop",this._handleDrop.bind(this)),this._html5DnDListener.on("dragEnd",this._handleDragEnd.bind(this)),this._on=new e,this._regionsFunctionReturnCache={row:{},column:{}},this._regionsEnterQueue=[]}return r(n,[{key:"setDraggableAttribute",value:function(){var e;(e=this._html5DnDListener).setDraggableAttribute.apply(e,arguments)}},{key:"removeDraggableAttribute",value:function(){var e;(e=this._html5DnDListener).removeDraggableAttribute.apply(e,arguments)}},{key:"handleDynamicDragSources",value:function(){var e;(e=this._html5DnDListener).handleDynamicDragSources.apply(e,arguments)}},{key:"destroy",value:function(){this._listeners.forEach((function(e){e.remove()})),this._html5DnDListener.destroy()}},{key:"_handleDragEnter",value:function(e){if(e.dropTarget.hasRegions()){var t=this._getRowsAndColumns(e);this._saveDropTargetAndPostionsData(e.target,t),e.position=t}this._on.emit("dragEnter",e)}},{key:"_handleDragOver",value:function(e){if(e.dropTarget.hasRegions()){var t=this._getRowsAndColumns(e);this._hasEnteredBefore(e.target,t)?(e.position=t,this._on.emit("dragOver",e)):(e.position=t,this._on.emit("dragEnter",e),this._saveDropTargetAndPostionsData(e.target,t),e.position=this._regionsEnterQueue.shift().position,this._on.emit("dragLeave",e))}else this._on.emit("dragOver",e)}},{key:"_handleDragLeave",value:function(e){e.dropTarget.hasRegions()&&(e.position=this._regionsEnterQueue.shift().position),this._on.emit("dragLeave",e)}},{key:"_handleDrop",value:function(e){if(e.dropTarget.hasRegions()){var t=this._regionsEnterQueue.shift().position;e.position=t}this._on.emit("drop",e),this._regionsEnterQueue=[],this._regionsFunctionReturnCache={row:{},column:{}}}},{key:"_handleDragEnd",value:function(e){this._on.emit("dragEnd",e),this._regionsEnterQueue=[],this._regionsFunctionReturnCache={row:{},column:{}}}},{key:"_getRowsAndColumns",value:function(e){var t=e.dropTarget,n=e.target,o=e.type,r={row:0,column:0},a=i.getXYCoordinates(e),s=a.xOffset,l=a.yOffset;if(e.dropTarget.hasRowRegions()){var c=this._getRegions(o,t.rowRegions,"row");r.row=i.getRow(l,c,n.offsetHeight)}if(e.dropTarget.hasColumnRegions()){var d=this._getRegions(o,t.columnRegions,"column");r.column=i.getColumn(s,d,n.offsetWidth)}return r}},{key:"_saveDropTargetAndPostionsData",value:function(e,t){this._regionsEnterQueue.push({dropTarget:e,position:t})}},{key:"_hasEnteredBefore",value:function(e,t){var i=this._regionsEnterQueue[this._regionsEnterQueue.length-1];return this._isEqual(e,i.dropTarget)&&this._isEqual(t.row,i.position.row)&&this._isEqual(t.column,i.position.column)}},{key:"_isEqual",value:function(e,t){return e===t}},{key:"_getRegions",value:function(e,t,i){return"function"!=typeof t?t:this._handleRegionsFunctionType(e,t,i)}},{key:"_handleRegionsFunctionType",value:function(e,t,i){switch(e){case"dragEnter":return t=t(),this._regionsFunctionReturnCache[i].previous?this._regionsFunctionReturnCache[i].previous=this._regionsFunctionReturnCache[i].current:this._regionsFunctionReturnCache[i].previous=t,this._regionsFunctionReturnCache[i].current=t,t;case"dragOver":case"drop":return this._regionsFunctionReturnCache[i].current;case"dragLeave":return this._regionsFunctionReturnCache[i].previous}}},{key:"on",value:function(e,t){var i=this._on.on(e,t);return this._listeners.push(i),i}}]),n}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"pipe",value:function(){var e=[].concat(Array.prototype.slice.call(arguments));return function(){for(var t=e[0].apply(this,arguments),i=1;i<e.length;i+=1)t=e[i].call(this,t);return t}}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1098),i(3631),i(1895),i(1368),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return function(){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._nativeEvent=e.event,this._contextDomNode=e.domNode,this._isDragStartedInContext=e.isDragStartedInContext,this._getDropStatus=e.getDropStatus,this._getDragOperations=e.getDragOperations,this._on=e.on,this._getDropTargets=e.getDropTargets}return r(o,[{key:"handleDragOver",value:function(){this._emitDragOverCoordinates();var e=this._getDropTargetIfValid();if(e){this._nativeEvent.preventDefault(),this._setDropEffect();var t=e.matchedDragElement,i=e.matchedParentDOM;this._emitDragOver({dropTarget:t,target:i})}else this._handleMacSpecificDragOver()}},{key:"_handleMacSpecificDragOver",value:function(){this._isPlatformMac()&&this._isDragStartedInContext()&&(this._nativeEvent.preventDefault(),this._setDropEffectForMac())}},{key:"_isPlatformMac",value:function(){return e.isMac}},{key:"_setDropEffectForMac",value:function(){var e=i.calculateDropEffect(this._nativeEvent,this._getDragOperations);this._nativeEvent.dataTransfer.dropEffect=e}},{key:"_getDropTargetIfValid",value:function(){return i.validateDrag({getDropTargets:this._getDropTargets,event:this._nativeEvent,isDragStartedInContext:this._isDragStartedInContext,contextDOM:this._contextDomNode})}},{key:"_emitDragOverCoordinates",value:function(){this._on.emit(t.DRAG_OVER_CORDINATES,{type:t.DRAG_OVER_CORDINATES,xCoord:this._nativeEvent.pageX,yCoord:this._nativeEvent.pageY})}},{key:"_emitDragOver",value:function(e){var o=this._nativeEvent,r=e.dropTarget,a=e.target,s=o.dataTransfer;this._on.emit(t.DRAG_OVER,{type:t.DRAG_OVER,xCoord:o.pageX,yCoord:o.pageY,dropEffect:o.dataTransfer.dropEffect,dropTarget:r,target:a,nativeTypes:n.getTypes(),getNativeDataByType:i.createNativeDataByType(o),getNativeDataTypes:function(){return n.getNativeDataTypes(s,r.allowGlobal)},getDropOperation:function(){return i.getDropOperationFromDropEffect(s.dropEffect)}})}},{key:"_setDropEffect",value:function(e){if(this._isPlatformMac())this._setDropEffectForMac();else{var t=i.getDropEffect(this._nativeEvent,this._getDropStatus,this._getDragOperations);this._nativeEvent.dataTransfer.dropEffect=t}}}]),o}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({DRAG_OVER_CORDINATES:"dragOverCoordinates",DRAG_OVER:"dragOver"})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1898),i(1897),i(209)],o=i.dj.d(n,(function(e,t,i){function n(e,t,i,n,o){var r=void 0;switch(e){case n.TEXT:r=t.getNativeDataByType(n.TEXT);break;case n.FILES:r=t.getNativeDataByType(n.FILES);break;default:if(i){var a=e.toLowerCase();r=i.get(a)}!r&&o&&(r=t.getNativeDataByType(e))}return r}return function(){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o)}return r(o,null,[{key:"getDragItemStart",value:function(e,i,r){var a=i.dragData,s=!1;return e.dragSource&&e.dragSource.allowGlobal&&(s=!0),{setDataByType:function(t,i){switch(s&&e.setNativeDataByType(t,i),t){case e.nativeTypes.TEXT:e.setNativeDataByType(e.nativeTypes.TEXT,i);break;default:t=t.toLowerCase(),a.set(t,i)}},getXYCoordinates:function(){return t.getXYCoordinates(e)},getDataByType:function(t){return n(t,e,a,e.nativeTypes,s)},getDataTypes:function(){return o._getDataTypes(e,a,s)},setDragOperations:function(e){var t=void 0;Array.isArray(e)?t=e.slice():"string"==typeof e&&(t=[e]),i.dragOperations=t},getDropOperation:function(){return e.getDropOperation()},getDragOperations:function(){return i.dragOperations},setAvatar:function(t,i){e.canSetNativeAvatar&&(r.avatarDOM=t,r.count=i)}}}},{key:"getDragItemForDropEvents",value:function(e,i){var r=!1,a=i.dragData;return e.dropTarget&&e.dropTarget.allowGlobal&&(r=!0),{getDataByType:function(t){return n(t,e,a,e.nativeTypes,r)},getDataTypes:function(){return o._getDataTypes(e,a,r)},getXYCoordinates:function(){return t.getXYCoordinates(e)},getDropEffect:function(){return e.dropEffect},getDropOperation:function(){return e.getDropOperation()},getDragOperations:function(){return i.dragOperations}}}},{key:"getDragItemEnd",value:function(e,i){var r=i.dragData,a=!1;return e.dragSource&&e.dragSource.allowGlobal&&(a=!0),{getDataByType:function(t){return n(t,e,r,e.nativeTypes,a)},getDataTypes:function(){return o._getDataTypes(e,r,a)},getXYCoordinates:function(){return t.getXYCoordinates(e)},getDragOperations:function(){return i.dragOperations},getDropOperation:function(){return e.getDropOperation()}}}},{key:"_getDataTypes",value:function(e,t,i){var n=void 0;return(n=i?o._getGlobalTypes(t,e):o._getLocalTypes(t,e)).includes=function(e){return Array.prototype.includes.call(n,e.toLowerCase())},n}},{key:"_getGlobalTypes",value:function(e,t){var i=e?Array.from(e.keys()):[],n=t.getNativeDataTypes(),o=new Set(i.concat(n));return[].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(o))}},{key:"_getLocalTypes",value:function(e,t){var i=e?Array.from(e.keys()):[],n=t.getNativeDataTypes();return i.concat(n)}},{key:"processAndExecuteHook",value:function(t){return function(n){return function(r){var a={dragStart:function(){var t={},i=!1,a=o.getDragItemStart(n,r,t),s=n.dragSource.dragStart(a,n.target);if(n.setValidDragItem(s),s&&(i=!0,t.avatarDOM)){var l=t.avatarDOM,c=t.count;n.setEmptyNativeAvatar(),e.createAvatar(l,n,c)}return i},dragEnter:function(){return n.dropTarget.dragEnter(o.getDragItemForDropEvents(n,r),n.target,n.position)},dragOver:function(){n.dropTarget.dragOver&&n.dropTarget.dragOver(o.getDragItemForDropEvents(n,r),n.target,n.position)},dragLeave:function(){n.dropTarget.dragLeave&&n.dropTarget.dragLeave(o.getDragItemForDropEvents(n,r),n.target,n.position)},drop:function(){n.dropTarget.drop(o.getDragItemForDropEvents(n,r),n.target,n.position)},dragEnd:function(){n.dragSource.dragEnd&&n.dragSource.dragEnd(o.getDragItemEnd(n,r),n.target)}};try{return a[t]()}catch(e){return i.warn(e),!1}}}}}]),o}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._canDropOnTarget=[]}return r(e,[{key:"addCanTargetDrop",value:function(e,t){this._canDropOnTarget.push({canDrop:e,dropTarget:t})}},{key:"removeTopItem",value:function(){this._canDropOnTarget.shift()}},{key:"empty",value:function(){this._canDropOnTarget=[]}},{key:"getTopItem",value:function(){return this._canDropOnTarget[0]}},{key:"length",get:function(){return this._canDropOnTarget.length}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){let e=!1,t=null,i=0;function n(e){r(e)&&(i++,1===i&&window.cefQuery({request:"getDroppedFilePath",onSuccess:function(e){const i=e.replace("[","").replace("]","").split(", ");t=i},onFailure:function(e,t){}}))}function o(e){r(e)&&(i--,0===i&&(t=null,window.cefQuery({request:"getDroppedFilePath",onSuccess:function(e){},onFailure:function(e,t){}})))}function r(e){return e.dataTransfer.types&&e.dataTransfer.types.indexOf("Files")>=0}return{enableDnDInCef:function(){e||"function"!=typeof window.cefQuery||(window.cefQuery({request:"enableDnD",onSuccess:function(e){document.addEventListener("dragenter",n),document.addEventListener("dragleave",o)},onFailure:function(e,t){}}),e=!0)},retrieveDraggingFiles:function(){if(!e)return null;const n=t;return t=null,i=0,n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3636)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.viewmanager","rtc.domnode.external","rtc.bordercontainer.external","rtc.focusmanager","rtc.actionservice.external","rtc.service.hover.domnodenotifierfactory","rtc.editor.executionnotifier","rtc.margin","rtc.execution.margin.readybusyindicator","rtc.view.visibilityservice","debug.stack.model.persistent","rtc.focusservice","rtc.debug.breadcrumbstack.navigation","rtc.execution.actions"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(207),i(275),i(3637)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(n,{constructor:function(t,n,a,s,l,c,d,u,h,p,f,g,m){this._borderContainer=a,this._actionService=l,this._aspectHandles=[],this._debugServices=o.getInstance(),this._persistentStackModel=f;var _=i.hitch(m,"doWorkspaceChange");this._view=new r(this._persistentStackModel,t,n,this._borderContainer,s,this._actionService,_,c,d,u,h,p,g),this.own(this._view),this.own(e.after(this._debugServices,"onDebugModeChanged",i.hitch(this,"_handleOnDebugMode"),!0)),this.own(e.after(this._debugServices,"onDBCont",i.hitch(this,"_handleOnDBCont"),!0))},_handleOnDebugMode:function(e){e||this._view.hideStackBar()},_handleOnDBCont:function(){this._view.disable()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(238),i(276),i(208),i(227),i(210),i(211),i(213),i(206),i(225),i(236),i(203),i(356),i(204),i(771),i(1370),i(209),i(317),i(3642),i(288),i(1371),i(1899),i(3651),i(1372),i(719),i(1100),i(377)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){var A=100,x={},N=null;return u(e,{_OVERFLOW_TOLERANCE:2,_TOP_REGION:"top",_TRAY_MAX_HEIGHT:28,_BLANK_IMAGE:"data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",_BREADCRUMB_BAR_TRAY_CLASS:"breadcrumbBarTray",_BREADCRUMB_BAR_CONTAINER_CLASS:"breadcrumbBarContainer",_BREADCRUMB_BAR_CLASS:"breadcrumbBar",_SPACER_CLASS:"spacer",_DISABLEMENT_OVERLAY_CLASS:"disablementOverlay",_DISABLED_CLASS:"disabled",_DROP_DOWN_MENU_OFFSET_Y:2,_CURRENT_FRAME_CLASS:"currentFrame",_MORE_OPTIONS_CLASS:"moreOptionsItem",_HIDDEN_CLASS:"hidden",_TOOLTIP_CLASS:"breadcrumbTooltip",_SPLIT_BUTTON_SELECTOR:".mwSplitButton",_TEXT_NODE_SELECTOR:".mwTextNode",constructor:function(e,t,o,r,a,s,l,c,d,u,h,f,g){this._model=e,this._rtcViewManager=t,this._rtcDomNode=o,this._borderContainer=r,this._focusManager=a,this._actionService=s,this._changeWorkspaceCallback=l,this._domNodeHoverNotifierFactory=c,this._editorExecutionNotifier=d,this._visibilityService=f,this._focusServiceWrapper=g,this._breadcrumbBarTray=new i({class:this._BREADCRUMB_BAR_TRAY_CLASS}),this._hiddenFrames=[],this._breadcrumbBarContainer=null,this._breadcrumbBar=null,this._currentFrameDiv=null,this._breadcrumbTooltips=[],this._spacer=null,this._stepOutButton=null,this._isDestroyed=!1,this._isVisible=!1,this._currentMarginWidth=0,u.whenInstanceAvailable(function(e){this._primaryMargin=e,this.own(n.after(this._primaryMargin,"onResize",this._setMarginPositioning.bind(this)))}.bind(this)),h.whenInstanceAvailable(function(e){this._primaryReadybusyindicator=e}.bind(this)),this.own(n.after(this._rtcViewManager,"onResize",p.hitch(this,"_handleResize"),!0)),this.own(n.after(this._model,"onModelUpdated",p.hitch(this,"_handleModelUpdated"),!0)),this.own(n.after(this._editorExecutionNotifier,"onEditorExecutionStart",p.hitch(this,"_handleEditorExecutionChange"))),this.own(n.after(this._editorExecutionNotifier,"onEditorExecutionEnd",p.hitch(this,"_handleEditorExecutionChange"))),this._viewStartedListener=n.after(this._rtcViewManager,"onStarted",p.hitch(this,"_handleOnLayoutChange")),this.own(this._viewStartedListener),this._initBreadCrumbsModule(),this._currentStack=null,this._shouldUpdateFramesOnNextUpdate=!1},_setMarginPositioning:function(){if(!this._breadcrumbBarContainer||!this._primaryMargin)return;this._currentMarginWidth=parseFloat(this._primaryMargin.lineMargin.style.width),s.set(this._spinnerSpacerOuter,{width:this._currentMarginWidth+"px"});s.set(this._breadcrumbBar,{"max-width":"calc(100% - "+(this._currentMarginWidth+40+230)+"px)"}),this._updateOverlayPosition()},destroy:function(){this._isDestroyed=!0,o.isDescendant(this._breadcrumbBarTray.domNode,document.body)&&(this._borderContainer.removeChild(this._breadcrumbBarTray),this._rtcViewManager.resize()),this._removeBreadcrumbBarContainer(),this._breadcrumbBarTray.destroy(),this._breadcrumbBarTray=null,this._currentStack=null,this._hiddenFrames=[],this.inherited(arguments)},enable:function(){this._disablementOverlay&&(r.remove(this._disablementOverlay,this._DISABLED_CLASS),r.remove(this._breadcrumbBarContainer,this._DISABLED_CLASS))},disable:function(){this._disablementOverlay&&(r.add(this._disablementOverlay,this._DISABLED_CLASS),r.add(this._breadcrumbBarContainer,this._DISABLED_CLASS))},_initBreadCrumbsModule:function(){this._navigationBar=new y({currentLocation:"",metaData:{hasChildren:!1,breadCrumbObjectsArray:[]},overrideTooltip:!0}),this.own(l(this._navigationBar,"locationChanged",p.hitch(this,"_handleLocationChange")))},_handleLocationChange:function(e){this._changeWorkspaceCallback(parseInt(e,10),"breadcrumbs")},_handleEditorExecutionChange:function(){this._layout(!0)},_handleOnLayoutChange:function(){this._isInDom()&&(this._viewStartedListener.remove(),this._viewStartedListener=null,this._layout(!0))},_handleResize:function(){this._breadcrumbBarContainer&&(this._updateNavigationBarScrollLeft(),this._updateOverlayPosition())},_updateOverlayPosition:function(){s.set(this._rightOverlay,{left:this._breadcrumbBarContainer.clientWidth-35+"px"})},_handleModelUpdated:function(e){var t=e.hasStackChange();N!==e&&(x={},N=e),this._layout(t)},_isInDom:function(){return o.isDescendant(this._rtcDomNode,document.body)},_layout:async function(e){if(this._isInDom()){var t=await E.getPrunedStackFramesFromModel(this._editorExecutionNotifier,this._model).catch(e=>{}),i=E.shouldShowUIElementsGivenStack(this._model,t),n=this._stackFramesHaveNames(t);this._currentStack=t.slice(0,A);var o=t.slice(A,t.length);e||this._hiddenFrames.length===o.length||(e=!0),this._hiddenFrames=o,i&&n?this._addTrayAndUpdatedBarWhenVisible(e):this._hideTray()}},_stackFramesHaveNames:function(e){if(0===e.length)return!0;var t=e[0].getName();return t&&t.length>0},_addTrayAndUpdatedBarWhenVisible:function(e){this._shouldUpdateFramesOnNextUpdate=this._shouldUpdateFramesOnNextUpdate||e,this._visibilityService.runWhenVisible(this,()=>{this._addTrayAndUpdatedBar(this._shouldUpdateFramesOnNextUpdate),this._shouldUpdateFramesOnNextUpdate=!1})},_addTrayAndUpdatedBar:function(e){this._showTray(),this._isVisible&&(this._breadcrumbBarContainer||this._addBreadcrumbBarContainer(),this._callstackCombo.setStack(this._currentStack,this._hiddenFrames),e&&this._updateBreadcrumbValues(),this._updateActiveWorkspace(),this.enable(),this._handleResize())},_updateActiveWorkspace:function(){var e=this._currentFrameDiv,t=this._model.getActiveWorkspaceIndex(),i=this._breadcrumbBar.querySelectorAll(this._SPLIT_BUTTON_SELECTOR),n=i[i.length-1-t];this._currentFrameDiv=n,n!==e&&(e&&r.remove(e,this._CURRENT_FRAME_CLASS),n&&r.add(n,this._CURRENT_FRAME_CLASS),this._updateScroll(t,i))},_updateScroll:function(e,t){var i=Math.round(this._breadcrumbBarContainer.clientWidth),n=x[i];if(void 0!==n)return this._breadcrumbBar.scrollLeft=this._breadcrumbBar.scrollWidth-n,void this._updateOverflowIndicators();t||(t=this._breadcrumbBar.querySelectorAll(this._SPLIT_BUTTON_SELECTOR));var o=t.length-1;-1===e&&(e=o);var r=t[o-e];if(!r)return;var a=t[o-e+1],s=t[o-e-1];var l=0;s&&(l=Math.max(s.offsetLeft+15,0));var c=this._breadcrumbBar.scrollWidth;a&&(c=Math.min(a.offsetLeft+a.offsetWidth-15,this._breadcrumbBar.scrollWidth));var d=this._breadcrumbBar.scrollLeft>l,u=this._breadcrumbBar.scrollLeft+this._breadcrumbBar.clientWidth<c;d&&u?this._breadcrumbBar.scrollLeft=r.offsetLeft:d?this._breadcrumbBar.scrollLeft=l:u&&(this._breadcrumbBar.scrollLeft=c-this._breadcrumbBar.clientWidth),x[i]=this._breadcrumbBar.scrollWidth-this._breadcrumbBar.scrollLeft,this._updateOverflowIndicators()},_updateOverflowIndicators:function(){r.toggle(this._leftOverlay,this._HIDDEN_CLASS,this._breadcrumbBar.scrollLeft<=3),r.toggle(this._rightOverlay,this._HIDDEN_CLASS,Math.abs(this._breadcrumbBar.scrollWidth-this._breadcrumbBar.scrollLeft-this._breadcrumbBar.clientWidth)<=3)},_updateBreadcrumbValues:function(){var e=this._currentStack.map((function(e,t){return{textToDisplay:e.getName(),pathToNavigateOnClick:t.toString()}})).reverse();this._navigationBar.setCurrentLocation("",{locationIcon:this._BLANK_IMAGE,hasChildren:!1,breadCrumbObjectsArray:e}),this._destroyBreadcrumbTooltips(),c(this._TEXT_NODE_SELECTOR,this._navigationBar.domNode).forEach((function(e){if(""!==e.innerText){var t=w.styleAsCode(e.innerText),i=d.substitute(g.workspaceLabel,{0:t}),n=C.buildDescriptionString(e.innerText,g.workspaceDescriptionForFunctions,g.workspaceDescriptionGeneric);this._breadcrumbTooltips.push(new S({targetNode:e,label:i,description:n,cssClasses:this._TOOLTIP_CLASS}))}}),this),this._updateNavigationBarScrollLeft()},_destroyBreadcrumbTooltips:function(){this._breadcrumbTooltips.forEach((function(e){e.destroy()})),this._breadcrumbTooltips=[]},_addBreadcrumbBarContainer:function(){this._breadcrumbBarContainer=a.create("div",{className:this._BREADCRUMB_BAR_CONTAINER_CLASS}),a.place(this._breadcrumbBarContainer,this._breadcrumbBarTray.domNode,"last"),I.refuseFocus(this._breadcrumbBarContainer),this._addBreadcrumbBar(),this._leftOverlay=a.create("div",{className:"leftOverlay"}),a.place(this._leftOverlay,this._breadcrumbBarContainer,"first"),this._rightOverlay=a.create("div",{className:"rightOverlay"}),a.place(this._rightOverlay,this._breadcrumbBarContainer,"first"),this._addSpacer(),this._stepOutButton=new T(this._actionService,this._model,this._domNodeHoverNotifierFactory,this._editorExecutionNotifier),this._stepOutButton.attach(this._breadcrumbBarContainer,"first"),this._addStackDropdown(),this._disablementOverlay=a.create("div",{className:this._DISABLEMENT_OVERLAY_CLASS}),a.place(this._disablementOverlay,this._breadcrumbBarContainer,"last"),this._addSpinnerSpacer(),this._setMarginPositioning(),this._breadcrumbBarContainer.addEventListener("contextmenu",(function(e){e.preventDefault(),e.stopPropagation()}),!0),this._breadcrumbBar.addEventListener("wheel",(function(e){e.preventDefault(),e.stopPropagation()}),!0)},_addBreadcrumbBar:function(){this._breadcrumbBar=a.create("div",{className:this._BREADCRUMB_BAR_CLASS}),this._navigationBar.placeAt(this._breadcrumbBar,"first"),a.place(this._breadcrumbBar,this._breadcrumbBarContainer,"last"),this._navigationBar.startup()},_addStackDropdown:function(){this._callstackCombo=new v(this._model,this._focusManager,this._changeWorkspaceCallback,this._increaseMaxStackSize.bind(this)),this._callstackCombo.attach(this._breadcrumbBarContainer,"first")},_addSpacer:function(){this._spacer=a.create("div",{class:this._SPACER_CLASS}),a.place(this._spacer,this._breadcrumbBarContainer,"first")},_addSpinnerSpacer:function(){this._spinnerSpacerOuter=a.create("div",{className:"spinnerSpacerOuter"}),a.place(this._spinnerSpacerOuter,this._breadcrumbBarContainer,"first"),this._spinnerSpacer=a.create("div",{className:"spinnerSpacer"}),a.place(this._spinnerSpacer,this._spinnerSpacerOuter,"first")},_updateNavigationBarScrollLeft:function(){this._updateScroll(this._model.getActiveWorkspaceIndex())},_removeBreadcrumbBarContainer:function(){this._breadcrumbBarContainer&&(this._stepOutButton.destroy(),this._destroyBreadcrumbTooltips(),this._callstackCombo&&(this._callstackCombo.destroy(),this._callstackCombo=null),a.destroy(this._spacer),a.destroy(this._leftOverlay),a.destroy(this._rightOverlay),a.destroy(this._disablementOverlay),a.destroy(this._spinnerSpacer),a.destroy(this._spinnerSpacerOuter),this._navigationBar.domNode&&this._breadcrumbBar.removeChild(this._navigationBar.domNode),a.destroy(this._breadcrumbBar),a.destroy(this._breadcrumbBarContainer),this._spacer=null,this._disablementOverlay=null,this._breadcrumbBar=null,this._breadcrumbBarContainer=null,this._currentStack=null,this._currentFrameDiv=null,this._hiddenFrames=[])},hideStackBar:function(){this._hideTray()},_showTray:function(){this._isDestroyed||this._isVisible||(this._primaryReadybusyindicator&&this._primaryReadybusyindicator.setHeight(27),this._borderContainer.addWithProperties(this._breadcrumbBarTray,{region:this._TOP_REGION,maxSize:this._TRAY_MAX_HEIGHT,isResizable:!1,layoutOrder:0}),this._borderContainer.setFreeDimension("top",this._TRAY_MAX_HEIGHT),this._breadcrumbBarTray.startup(),this._isVisible=!0)},_hideTray:function(){this._visibilityService.clearPendingRequests(this),!this._isDestroyed&&this._breadcrumbBarContainer&&this._isVisible&&(this._primaryReadybusyindicator&&this._primaryReadybusyindicator.setHeight(null),this._breadcrumbBarTray.domNode.contains(t.curNode)&&this._focusServiceWrapper.getCurrentInstance().setFocus(),this._isVisible=!1,this._borderContainer.removeChild(this._breadcrumbBarTray),this._removeBreadcrumbBarContainer())},_increaseMaxStackSize:function(){if(this._currentStack){var e=this._currentStack.length+this._hiddenFrames.length+10;A=Math.max(A,e)}}})}),e,t),e.exports=o},function(e,t,i){e.exports={functionCallStackDescription:"現在の一時停止位置の原因となる、すべての関数呼び出しを表示します",functionCallStackLabel:"関数呼び出しスタック",moreOptionsLabel:"さらに ${0} 件",stepOutDescriptionForFunctions:"実行中の関数を終了してから一時停止します",stepOutDescriptionGeneric:"実行中の ${0} を終了してから一時停止します",stepOutLabel:"${0} の外にステップ",workspaceDescriptionForFunctions:"関数を表示して、そのワークスペースに切り替えます",workspaceDescriptionGeneric:"${0} を表示して、そのワークスペースに切り替えます",workspaceLabel:"${0} に移動"}},function(e,t,i){e.exports={functionCallStackDescription:"현재 일시 중지 위치에 이르게 한 모든 함수 호출을 표시합니다.",functionCallStackLabel:"함수 호출 스택",moreOptionsLabel:"및 ${0}개 더 보기",stepOutDescriptionForFunctions:"실행 중인 함수를 마친 다음 일시 중지합니다.",stepOutDescriptionGeneric:"실행 중인 ${0}을(를) 마친 다음 일시 중지합니다.",stepOutLabel:"${0} 스텝 아웃",workspaceDescriptionForFunctions:"함수를 표시하고 해당 작업 공간으로 전환합니다.",workspaceDescriptionGeneric:"${0}을(를) 표시하고 해당 작업 공간으로 전환합니다.",workspaceLabel:"${0}(으)로 이동"}},function(e,t,i){e.exports={functionCallStackDescription:"查看导致当前位置暂停的所有函数调用",functionCallStackLabel:"函数调用堆栈",moreOptionsLabel:"+ ${0} 个",stepOutDescriptionForFunctions:"完成正在运行的函数,然后暂停",stepOutDescriptionGeneric:"完成正在运行的 ${0},然后暂停",stepOutLabel:"步出 ${0}",workspaceDescriptionForFunctions:"查看函数并切换到其工作区",workspaceDescriptionGeneric:"查看 ${0} 并切换到其工作区",workspaceLabel:"转至 ${0}"}},function(e,t,i){e.exports={root:{functionCallStackDescription:"View all function calls that led to current pause location",functionCallStackLabel:"Function Call Stack",moreOptionsLabel:"+ ${0} more",stepOutDescriptionForFunctions:"Finish running function and then pause",stepOutDescriptionGeneric:"Finish running ${0} and then pause",stepOutLabel:"Step out of ${0}",workspaceDescriptionForFunctions:"View function and switch to its workspace",workspaceDescriptionGeneric:"View ${0} and switch to its workspace",workspaceLabel:"Go to ${0}"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(230),i(208),i(227),i(210),i(211),i(213),i(206),i(236),i(203),i(1370),i(209),i(286),i(377),i(222)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=l(u,{constructor:function(e){this._moreOptionsCallback=e.moreOptionsCallback},_getSelectedItemFromLabel:function(){},_handleMenuClick:function(e){var t=this._getItemForNode(e.target);-1===t.value?this._moreOptionsCallback():this.inherited(arguments)}});return l([e,p],{constructor:function(e,t,i,n){this._stackModel=e,this._focusManager=t,this._changeWorkspaceCallback=i,this._increaseMaxStackSizeCallback=n,this._callstackComboContainer=null,this._callstackCombo=null,this._create(),this._currentStack=null,this._hiddenFrames=null},setStack:function(e,t){this._currentStack=e,this._hiddenFrames=t;var i=this._stackModel.getActiveWorkspaceIndex(),n=[];this._currentStack.forEach((function(e,t){this._addStackFrame(n,e,t,i)}),this),t.length>0&&this._addShowHiddenFramesOption(n,t),this._callstackCombo.set("items",n),i<this._currentStack.length&&this._callstackCombo.set("value",i)},_addShowHiddenFramesOption:function(e,t){var i=t.length,n=s.substitute(c.moreOptionsLabel,{0:i});e.push({label:n,value:-1})},_create:function(){this._callstackComboContainer=o.create("div",{class:"callstackComboContainer"}),this._callstackCombo=new f({width:225,items:[],editable:!0,moreOptionsCallback:this._handleMoreOptionsClick.bind(this)}),this.own(this._callstackCombo),this._callstackCombo.placeAt(this._callstackComboContainer),this.own(a(this._callstackCombo,"focus",function(){this._focusManager.setBlur()}.bind(this))),this.own(a(this._callstackCombo,"blur",function(){this._focusManager.setFocus()}.bind(this))),h.acceptFocus(this._callstackCombo.domNode),this.own(a(this._callstackCombo,"change",this._onChange.bind(this)))},_handleMoreOptionsClick:function(){var e=this._callstackCombo.get("items"),t=(e=e.slice(0,-1)).length;this._hiddenFrames.forEach((function(i,n){this._addStackFrame(e,i,t+n)}),this),this._callstackCombo.set("items",e),this._increaseMaxStackSizeCallback()},_onChange:function(e){"value"===(e=e.mwEventData).propertyName&&("number"==typeof e.newValue?this._changeWorkspaceCallback(e.newValue,"breadcrumbs_dropdown"):this._callstackCombo.set("value",e.oldValue))},_addStackFrame:function(e,t,i){e.push({label:t.getName(),value:i})},attach:function(e,t){o.place(this._callstackComboContainer,e,t||"last"),this._callstackCombo.startup()},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="navigationBarContainer" data-dojo-attach-point="navigationBarContainer">\n <div data-dojo-attach-point="navigationBarNode" class="navigationBarNode">\n <div class="locationNodeWithIcon" data-dojo-attach-point="locationNodeWithIcon">\n <div class="iconParentDiv" title="">\n <div class="navBarIcon" data-dojo-attach-point="iconNode"></div>\n </div>\n <div class="currentLocationNode" data-dojo-attach-point="currentLocationNode" data-tag=""></div>\n </div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(306),i(204),i(227),i(228),i(211),i(210),i(222),i(223),i(206),i(213),i(238),i(277),i(331),i(288),i(1329),i(1099)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([s],{constructor:function(e){this.breadCrumbObjectsArray=e.breadCrumbObjectsArray,this.breadCrumbsParentNode=r.create("div"),a.add(this.breadCrumbsParentNode,"breadCrumbsParentNode"),this.getChildNodes=e.getChildNodes,this._hasDynamicMenu="function"==typeof e.getChildNodes,this._breadCrumbsLocationNodeObjects=[],this.buildLocationNode(this.breadCrumbObjectsArray,e.hasChildren),this.menu=new p({style:"display: none;"}),this.overrideTooltip=e.overrideTooltip,this._breadCrumbLabelPrefix=e.breadCrumbLabelPrefix?e.breadCrumbLabelPrefix+" ":""},destroy:function(){this.menu.destroy(),this.menu=null,this._cleanupBreadCrumbsObjects(),this.breadCrumbObjectsArray=this.breadCrumbsParentNode=this.getChildNodes=null},rebuildLocationNode:function(e){return this.buildLocationNode(this.breadCrumbObjectsArray,e)},focus:function(){var e=this.breadCrumbsParentNode.querySelectorAll('[tabindex="0"]');u.focus(e[1])},buildLocationNode:function(e,t){return this.breadCrumbObjectsArray=e,this._cleanupBreadCrumbsObjects(),r.empty(this.breadCrumbsParentNode),this._renderBreadCrumbs(this.breadCrumbObjectsArray,t)},_cleanupBreadCrumbsObjects:function(){this._breadCrumbsLocationNodeObjects.forEach((function(e){e.destroy()})),this._breadCrumbsLocationNodeObjects=[],r.empty(this.breadCrumbsParentNode)},_renderBreadCrumbs:function(e,t){if(e.length>0){for(var n,o=0;o<e.length;o++){var a=e[o],s=this._buildBreadCrumbs(a);if(0===o&&(n=s,s.own(s.on("click",(function(e){e.mwEventData&&e.stopImmediatePropagation()})))),o===e.length-1){var l=s.domNode.getAttribute("path");if(!new RegExp("^/[a-zA-Z]*").test(l)){var c=m.firstBreadCrumbWinAriaLabelPrefix+l+m.firstBreadCrumbWinAriaLabelSuffix;n.focusNode.setAttribute("aria-label",c)}t||r.destroy(s.focusNode)}s.own(s.on("click",i.hitch(this,this._handleBreadCrumbButtonClick))),s.startup(),s.placeAt(this.breadCrumbsParentNode),this._breadCrumbsLocationNodeObjects.push(s)}return this.breadCrumbsParentNode}},_handleBreadCrumbButtonClick:function(e){e.stopPropagation(),e.preventDefault();var t=dijit.registry.getEnclosingWidget(e.target).domNode.getAttribute("path");this.emit("locationChanged",t)},_buildBreadCrumbs:function(e){var t=new g({hasDynamicMenu:this._hasDynamicMenu});return t.set("text",e.textToDisplay),this.overrideTooltip||t.set("description",this._breadCrumbLabelPrefix+e.textToDisplay),o.set(t.domNode,"data-test-id",e.textToDisplay),this._hasDynamicMenu&&this._setArrowNodeListeners(t),a.add(t.arrowIconNode,"arrowIconNode"),a.add(t.dropDownNode,"breadCrumbDropDownNode"),o.set(t.domNode,"path",e.pathToNavigateOnClick),t.buttonNode&&o.set(t.buttonNode,"aria-label",this._breadCrumbLabelPrefix+e.textToDisplay),t},handleArrowNodeDropDownClick:function(e){var t=dijit.registry.getEnclosingWidget(e);this._toggleDropdownState(t)},_setArrowNodeListeners:function(e){e.own(e.on("blur",i.hitch(e,(function(){a.remove(e.domNode,"breadCrumbsFocused")}))),e.on("focus",i.hitch(this,(function(){a.add(e.domNode,"breadCrumbsFocused")}))),e.on("dropdownclick",i.hitch(this,(function(e){this.handleArrowNodeDropDownClick(e.target)}))))},_toggleDropdownState:function(e){e.arrowIconNode.classList.contains("arrowIconNode")?(this.menu.getChildren().length>0&&this.menu.isMenuOpen()&&this.closeBreadCrumbMenu(),this._switchButtonToDropDownState(e)):this._switchButtonToNormalState(e)},closeBreadCrumbMenu:function(){h.close(this.menu)},_switchButtonToNormalState:function(e){var t=e.arrowIconNode;a.remove(t,"downArrowIconNode"),a.add(t,"arrowIconNode")},_switchButtonToDropDownState:function(e){var t=e.arrowIconNode;a.remove(t,"arrowIconNode"),a.add(t,"downArrowIconNode"),this._populateMenuItems(e)},_listSub:function(e,t){if(t.length>0){var n=t;if(!e.arrowIconNode.classList.contains("arrowIconNode")){this.menu.destroyDescendants();for(var o=this,r=0;r<n.length;r++){var s=new f({text:n[r].label,path:n[r].path,icon:"iconMenuDropdown"});"function"==typeof n[r].icon.then?this._setIcon(n[r].icon,s.iconNode):d.set(s.iconNode,"background-image","url(' "+n[r].icon+"')"),s.set("data-tag",n[r].label),a.add(s.domNode,"navBarDropDownMenu");var l=e.domNode.getAttribute("path");this._highlightMenuItemIfItIsInCurrentLocation(l,s),s.on("click",i.hitch(s,(function(e){var t=dijit.registry.getEnclosingWidget(e.target);o.emit("locationChanged",t.path)}))),this.menu.addChild(s)}c.once(this.menu,"close",i.hitch(e,(function(){e.arrowIconNode&&(a.remove(e.arrowIconNode,"downArrowIconNode"),a.add(e.arrowIconNode,"arrowIconNode"))}))),e.set("menu",this.menu),e.set("aroundNode",e.dropDownNode),e.showMenu()}}},_setIcon:function(e,t){e.then(function(e){t&&(e.iconClass?a.add(t,e.iconClass):e.iconData&&(t.style.backgroundImage="url('"+e.iconData+"')"))}.bind(this))},_highlightMenuItemIfItIsInCurrentLocation:function(e,t){for(var i=0;i<this.breadCrumbObjectsArray.length;i++)this.breadCrumbObjectsArray[i].pathToNavigateOnClick===e&&this.breadCrumbObjectsArray[i+1]&&this.breadCrumbObjectsArray[i+1].pathToNavigateOnClick===t.path&&a.add(t.textNode.getElementsByClassName("mwTextLine")[0],"highlightMenuItem")},_populateMenuItems:function(e){var i=this.getChildNodes({path:e.domNode.getAttribute("path")}),n=this;i.path=e.domNode.getAttribute("path"),t.when(i.listFolderComplete,(function(t){if(e.arrowIconNode.classList.contains("downArrowIconNode"))return n._listSub(e,t.folders),t}))}})}),e,t),e.exports=o},function(e,t,i){e.exports={root:{back:"Back",forward:"Forward",searchModePlaceHolder:"Type search text (ex: *.m)",history:"Location History",search:"Search in this folder and subfolders",firstBreadCrumbWinAriaLabelPrefix:"Address. ",firstBreadCrumbWinAriaLabelSuffix:" Toolbar. All Locations"}}},function(e,t,i){var n,o;n=[i(203),i(227),i(211),i(210),i(206),i(223),i(228)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{constructor:function(e){e=e||{},this._actionsList=e.actionsList,this.navigationBarNode=e.navigationBarNode,this.actionToolbarContainer=i.create("div"),n.add(this.actionToolbarContainer,"actionToolbarContainerNode"),this.navigationBarNode.appendChild(this.actionToolbarContainer),i.place(this.actionToolbarContainer,this.navigationBarNode,"first");var t=this;this._actionsList.forEach((function(e){var s=i.create("div"),l=e.id;t[l]=e,o(s,"click",(function(i){e.callback(t)})),o(s,"keydown",(function(i){i.keyCode===r.ENTER&&e.callback(t)})),o(s,"keyup",(function(i){i.keyCode===r.SPACE&&e.callback(t)})),o(s,"mouseover",(function(t){e.enabled&&(s.style.borderColor="#A8A8A8")})),o(s,"mouseout",(function(e){s.style.borderColor=""})),o(s,"mousedown",(function(t){e.enabled&&(s.style.borderColor="#545454",s.style.backgroundColor="#C9C9C9")})),o(s,"mouseup",(function(e){s.style.borderColor="",s.style.backgroundColor=""}));var c=i.create("div"),d=e.actionClass,u=d.indexOf(" ");-1!==u&&(d=d.slice(0,u)),e.style?a.set(c,"style",e.style):n.add(c,d+"_img"),n.add(s,e.actionClass),a.set(s,"title",e.text),a.set(s,"tabindex","0"),a.set(s,"role","button"),e.enabled?(s.setAttribute("enabled","true"),s.setAttribute("aria-disabled","false"),n.add(c,"actionEnabled"),n.remove(c,"actionDisabled")):(s.setAttribute("enabled","false"),s.setAttribute("aria-disabled","true"),n.remove(c,"actionEnabled"),n.add(c,"actionDisabled")),e.node=s,s.appendChild(c),t.actionToolbarContainer.appendChild(s)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(306),i(210),i(206),i(225),i(204),i(912),i(1099)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([s],{constructor:function(e){e=e||{},this.dataSource=e.dataSource,this.id="backButtonWidget",this.enabled=!1,this.actionClass="navBarBackButton",this.text=l.back,this.callback=a.hitch(this,(function(e){this.enabled&&this.dataSource.goBack()})),o(this.dataSource,"dataSourceUpdated",a.hitch(this,(function(e){this._updateBackButton(e)})))},_updateBackButton:function(e){null!==e.prevNode?(this.enabled=!0,this.node.setAttribute("enabled","true"),this.node.setAttribute("aria-disabled","false"),this.node.firstElementChild&&(n.remove(this.node.firstElementChild,"actionDisabled"),n.add(this.node.firstElementChild,"actionEnabled"))):(this.enabled=!1,this.node.setAttribute("enabled","false"),this.node.setAttribute("aria-disabled","true"),this.node.firstElementChild&&(n.remove(this.node.firstElementChild,"actionEnabled"),n.add(this.node.firstElementChild,"actionDisabled")))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(306),i(285),i(204),i(222),i(3649)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{constructor:function(e){this.dataList=[],this.locked=!1},addToDataList:function(e){var t=new r({val:e});if(0===this.dataList.length)this.dataList.push(t);else{if(t.value===this.currentNode.value)return;t.prev=this.currentNode,this.currentNode.next=t}this.currentNode=t,this._notify()},goBack:function(){this.oldLocation=this.currentNode,this.emit("dataSourceMoved",this.currentNode.prev.value),this._updateCurrentNode(this.currentNode.prev)},goForward:function(){this.oldLocation=this.currentNode,this.emit("dataSourceMoved",this.currentNode.next.value),this._updateCurrentNode(this.currentNode.next)},_updateCurrentNode:function(e){this.currentNode=e,this.deferred=new t,this._notify(e),i(this.deferred.promise,function(e){this._notify()}.bind(this))},_notify:function(){this.emit("dataSourceUpdated",{nextNode:this.currentNode.next,prevNode:this.currentNode.prev})},setOldLocationNode:function(){this.currentNode=this.oldLocation,this._notify()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this.value=e.val,this.prev=null,this.next=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(306),i(210),i(206),i(225),i(204),i(912),i(1099)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([s],{constructor:function(e){e=e||{},this.dataSource=e.dataSource,this.id="forwardButtonWidget",this.actionClass="navBarForwardButton",this.enabled=!1,this.text=l.forward,this.callback=a.hitch(this,(function(e){this.enabled&&this.dataSource.goForward()})),o(this.dataSource,"dataSourceUpdated",a.hitch(this,(function(e){this._updateForwardButton(e)})))},_updateForwardButton:function(e){null!==e.nextNode?(this.enabled=!0,this.node.setAttribute("enabled","true"),this.node.setAttribute("aria-disabled","false"),this.node.firstElementChild&&(n.remove(this.node.firstElementChild,"actionDisabled"),n.add(this.node.firstElementChild,"actionEnabled"))):(this.enabled=!1,this.node.setAttribute("enabled","false"),this.node.setAttribute("aria-disabled","true"),this.node.firstElementChild&&(n.remove(this.node.firstElementChild,"actionEnabled"),n.add(this.node.firstElementChild,"actionDisabled")))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(208),i(211),i(206),i(236),i(203),i(204),i(1370),i(371),i(1899),i(1372),i(719),i(1100)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return r(e,{_STEP_OUT_CONTAINER_CLASS:"stepOutContainer",_STEP_OUT_BUTTON_CLASS:"stepOutButton",_TOOLTIP_CLASS:"breadcrumbTooltip",constructor:function(e,i,n,o){this._actionService=e,this._stackModel=i,this._domNodeActionHoverNotifierFactory=n,this._editorExecutionNotifier=o,this._tooltip=null,this._buttonListeners=[],this._create(),this._update(),this.own(t.after(this._stackModel,"onModelUpdated",a.hitch(this,"_handleModelUpdated"),!0)),this._hoverNotifier=this._domNodeActionHoverNotifierFactory.createNotifier(this._buttonDomNode,l.STEP_OUT_ACTION_ID),this._hoverNotifier.enable()},attach:function(e,t){i.place(this._containerDomNode,e,t||"last")},_create:function(){this._containerDomNode=i.create("div",{class:this._STEP_OUT_CONTAINER_CLASS}),this._buttonDomNode=i.create("div",{class:this._STEP_OUT_BUTTON_CLASS}),i.place(this._buttonDomNode,this._containerDomNode,"first"),this._buttonListeners.push(n(this._buttonDomNode,"click",a.hitch(this,"_clickHandler")))},_clickHandler:function(){this._actionService.executeAction(l.STEP_OUT_ACTION_ID,{actionOrigin:"breadcrumbs"})},_handleModelUpdated:function(e){e.hasStackChange()&&this._update()},_update:async function(){this._tooltip&&this._tooltip.destroy();var e=await d.getPrunedStackFramesFromModel(this._editorExecutionNotifier,this._stackModel);if(!(e.length<2)){var t=h.styleAsCode(e[0].getName()),i=o.substitute(s.stepOutLabel,{0:t}),n=c.buildDescriptionString(e[0].getName(),s.stepOutDescriptionForFunctions,s.stepOutDescriptionGeneric),r=this._actionService.getAction(l.STEP_OUT_ACTION_ID);this._tooltip=new u({targetNode:this._buttonDomNode,label:i,description:n,keyBinding:r.shortcut,cssClasses:this._TOOLTIP_CLASS})}},destroy:function(){this.inherited(arguments),this._buttonListeners.forEach((function(e){e.remove()})),this._buttonListeners=[],this._tooltip&&(this._tooltip.destroy(),this._tooltip=null),i.destroy(this._buttonDomNode),this._buttonDomNode=null,i.destroy(this._containerDomNode),this._containerDomNode=null,this._hoverNotifier.destroy(),this._hoverNotifier=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1900)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["debug.ddux","debug.stack.model.persistent"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3654)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(805)],o=i.dj.d(n,(function(e,t,i){var n={gutter:["addBreakpoint","removeBreakpoint","enableBreakpoint","disableBreakpoint","breakpointTooltip"],contextual:["stepIn","enableAnonymousBreakpoint","disableAnonymousBreakpoint"],breadcrumbs:["dbupdown"],breadcrumbs_dropdown:["dbupdown"]};return e(i,{constructor:function(){},logEvent:function(e,t){if(!this._isApproved(e,t))throw new Error("Unapproved debug action is trying to log DDUX event. Please contact Editor LEADS");var i={actionId:e,gesture:t};this.onLogEvent(i)},_isApproved:function(e,t){var i=n[t];return i&&i.some((function(t){return t===e}))},onLogEvent:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3656),i(378)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(e){return n.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.editordataservice","rtc.linenumberservice","rtc.view","rtc.featureinterface","rtc.document","rtc.service.documentloaded","debug.margin.matlab.breakpoint"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(228),i(210),i(211),i(257),i(203),i(204),i(209),i(575)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return r(l,{EXECUTION_ARROW_FEATURE_ID:"matlab.debug.executionarrow",NO_LINE:-1,constructor:function(e,t,i,n,o,r,s){this._editorDataService=e,this._lineNumberService=t,this._view=i,this._document=o,this._documentLoadedService=r,this._breakpointDecorator=s,this._topOfStack=[],this._exitingStack=[],this._inStack=[],this._currentMouseClickPosition=this.NO_LINE,this.own(this._editorDataService.listenTo(this.EXECUTION_ARROW_FEATURE_ID,a.hitch(this,"_updateData")))},_updateData:function(e){this._topOfStack=e.TOP_OF_STACK,this._inStack=e.IN_STACK,this._exitingStack=e.EXITING_STACK,this.onUpdate()},handleMouseDown:function(e,t){if(o.isLeft(e)){var i=this._lineNumberService.getCodeLineNumberAtOrBeforeLineNumber(t)-1;this._currentMouseClickPosition=i,this.onUpdate()}},handleMouseUp:function(e,t){o.isLeft(e)&&(this._currentMouseClickPosition=this.NO_LINE,this.onUpdate())},handleMouseLeave:function(){this._currentMouseClickPosition!==this.NO_LINE&&(this._currentMouseClickPosition=this.NO_LINE,this.onUpdate())},_mouseClickAtLine:function(e){return this._currentMouseClickPosition===e},hasLayerForLineNumber:function(e){var t=this._lineNumberService.getCodeLineNumberFromLineNumber(e);return!(t<0)&&(!this._mouseClickAtLine(t)&&(this._isOnTopOfStack(t-1)||this._isInStack(t-1)||this._isExitingStack(t-1)))},_isOnTopOfStack:function(e){return this._doesStackDataIncludeLineNumber(this._topOfStack,e)},_isInStack:function(e){return this._doesStackDataIncludeLineNumber(this._inStack,e)},_isExitingStack:function(e){return this._doesStackDataIncludeLineNumber(this._exitingStack,e)},_doesStackDataIncludeLineNumber:function(e,t){return-1!==e.indexOf(t)},createDecorationForLineNumber:function(e){var t=this._lineNumberService.getCodeLineNumberFromLineNumber(e),i=this._breakpointDecorator.hasLayerForLineNumber(e),o=n.create("div");return this._applyStyle(o,t,i),o},_applyStyle:function(e,t,n){var o,r=[];i.add(e,"commonArrow"),r.push("debugging"),this._isOnTopOfStack(t-1)?o=this._augmentArrowCssClass("topOfStackArrow",n):this._isExitingStack(t-1)?o=this._augmentArrowCssClass("exitingStackArrow",n):this._isInStack(t-1)&&(o=this._augmentArrowCssClass("inStackArrow",n)),r.push(o),i.add(e,o),this._addTestTag(e,r,t)},_augmentArrowCssClass:function(e,t){return e+(t?"OverBreakpoint":"")},_addTestTag:function(e,i,n){var o=n-1;i&&i.length>0?o=o+"_"+i.join("_"):o+="_invalid",t.set(e,"data-testid",o)},getWidth:function(){return 15}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3658),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.cursor","debug.documentdebugservices","rtc.view.decoration","rtc.linenumberservice","rtc.executionservice.linenumbertracker","rtc.service.documentloaded"]}},createInstance:function(e,i,n,o,r,a,s){return new t(e,i,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(313),i(266),i(1901),i(362)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(n,{ACTIVE_WORKSPACE_CSS:"activeLine",EXECUTION_POINT_CSS:"executionPoint",STACK_LINE_CSS:"inStack",LEAVING_FUNCTION_CSS:"leavingFunction",_EXECUTION_LINE_LAYER_CSS:"executionLineHighlights",_PRIORITY:20,_CLEAR_DELAY:50,constructor:function(e,n,o,r,a,s,l){this._document=e,this._cursor=n,this._documentDebugServices=o,this._decorator=r.createLayerDecorator(this._EXECUTION_LINE_LAYER_CSS,this._PRIORITY),this._lineNumberService=a,this._lineNumberTracker=s,this._documentLoadedService=l,this._currentStackLineRanges=[],this.own(i.after(this._documentDebugServices,"onStackChanged",t.hitch(this,"_handleStackChanged"))),this._drawExecutionLinesAfterDocumentReady(!0),this._pendingClear=null},_handleStackChanged:function(){this._drawExecutionLinesAfterDocumentReady()},_shouldClearAsynchronously:function(){return!0},_drawExecutionLinesAfterDocumentReady:function(e=!1){this._documentLoadedService.whenDocumentLoadedWithText(t.hitch(this,(function(){this._drawExecutionLines(e)})))},_drawExecutionLines:function(e){this._shouldClearAsynchronously()||(e=!0),clearTimeout(this._pendingClear),this._pendingClear=null;var t=this._documentDebugServices.getStackFrames();0!==t.length||e?(this._clearView(),this._deleteCurrentStackLineRanges(),this._validStackForFile(t)&&(t.forEach((function(e){if(!a.stackFrameHasValidLineNumber(e)){var t=Math.abs(e.getLineNumber())-1,i=this._getCurrentLineNumberFromPreExecutionLineNumber(t);if(!this._stackLineAlreadyHighlighted(i)){var n=this._document.createPositionAtLineColumn(i,0),o=this._document.createPositionAtLineColumn(i,0,!0),l=new r(n,o),c=[s.HIGHLIGHTED_LINE_CSS];e.isExecutionPoint()?c.push(this.EXECUTION_POINT_CSS):c.push(this.STACK_LINE_CSS),e.isActiveWorkspace()&&c.push(this.ACTIVE_WORKSPACE_CSS),e.isLeavingFrame()&&c.push(this.LEAVING_FUNCTION_CSS),this._decorator.addClass(l,c),this._currentStackLineRanges.push(l)}}}),this),this._decorator.applyChanges())):this._pendingClear=setTimeout(this._drawExecutionLines.bind(this,!0),this._CLEAR_DELAY)},_getCurrentLineNumberFromPreExecutionLineNumber:function(e){var t=this._lineNumberTracker.createPositionFromOldLineNumber(e),i=t.getLineColumn().line;return t.destroy(),i-1},_stackLineAlreadyHighlighted:function(e){for(var t=!1,i=this._document.createPositionAtLineColumn(e,0),n=0;n<this._currentStackLineRanges.length;n++){var r=this._currentStackLineRanges[n].getStartPosition();if(0===o.comparePositions(r,i)){t=!0;break}}return i.destroy(),t},_deleteCurrentStackLineRanges:function(){this._currentStackLineRanges.forEach((function(e){e.destroy()}),this),this._currentStackLineRanges=[]},_validStackForFile:function(e){var t=this._lineNumberService.getNumberOfCodeLines();return!e.some((function(e){if(Math.abs(e.getLineNumber())>t)return!0}),this)},_clearView:function(){this._currentStackLineRanges.forEach((function(e){this._decorator.clearRange(e)}),this)},destroy:function(){clearTimeout(this._pendingClear),this._pendingClear=null,this.inherited(arguments),this._clearView(),this._deleteCurrentStackLineRanges()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3660),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view","debug.linefocus","rtc.internaldocument"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(275)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_PERCENT_TO_SCROLL_TO:.25,_CURSOR_CHANGE_PERIOD:1e3,constructor:function(e,n,r){this._view=e,this._debugLineFocus=n,this._timeout=null,this._layoutListener=null;var a=o.getInstance();this.own(i.after(a,"onDBCont",t.hitch(this,"_handleOnDBCont"))),this.own(i.after(this._debugLineFocus,"onCursorMove",t.hitch(this,"_handleOnCursorMove"),!0)),this.own(i.before(r,"onDocumentReset",t.hitch(this,"_handleOnDocumentReset")))},_handleOnCursorMove:function(e,t){this._stopForcingScroll(),this._scrollToLineColumn(e,t),this._startForcingScroll(e,t),this._timeout=setTimeout(this._stopForcingScroll.bind(this),this._CURSOR_CHANGE_PERIOD)},_handleOnDBCont:function(){this._stopForcingScroll()},_handleOnDocumentReset:function(){this._stopForcingScroll()},_startForcingScroll:function(e,n){this._layoutListener=i.after(this._view,"onLayoutChange",t.hitch(this,(function(t){this._scrollToLineColumn(e,n)})))},_stopForcingScroll:function(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this._layoutListener&&(this._layoutListener.remove(),this._layoutListener=null)},_scrollToLineColumn:function(e,t){var i=this._view.getClientHeight()*this._PERCENT_TO_SCROLL_TO;this._view.scrollLineColumnIntoView(e,t,i)},destroy:function(){this._stopForcingScroll()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3662),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.cursor","debug.documentdebugservices","rtc.executionservice.linenumbertracker","rtc.view.viewportopenedservice","rtc.indentutilities","rtc.cursorcontroller","rtc.focusservice","rtc.linenumberservice"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(1901)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t,i,n,o,r,a,s){this._cursor=e,this._documentDebugServices=t,this._lineNumberTracker=i,this._viewportOpenedService=n,this._indentUtilities=o,this._cursorController=r,this._focusService=a,this._lineNumberService=s},moveCursorAndScrollToLineOnDocumentReady:function(){this._viewportOpenedService.whenViewportOpenedWithContent(this.moveCursor.bind(this))},moveCursor:function(){var e=this._documentDebugServices.getActiveWorkspace();if(null!==e&&!o.stackFrameHasValidLineNumber(e)){var t=Math.abs(e.getLineNumber());if(!(t>this._lineNumberService.getNumberOfCodeLines())){var i=this._getLineColumnInfoToGoTo(t);this._focusService.setFocus(),this._cursorController.clearSelection(),this._cursor.setLineColumn(i.line+1,i.column+1),this.onCursorMove(i.line+1,i.column+1)}}},onCursorMove:function(e,t){},_getLineColumnInfoToGoTo:function(e){var t=this._lineNumberTracker.getNewLineNumberFromOldLineNumber(e-1),i=this._indentUtilities.findFirstNonWhitespaceTokenInLine(t);return i?i.getPositionInfo():{line:t,column:0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3664),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{isApplicable:[],createInstance:["debug.documentdebugservices","rtc.internaldocument","debug.linefocus"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t,n){this._documentDebugServices=e,this._debugLineFocusWrapper=n,this.own(i.after(this._documentDebugServices,"onStackChanged",this._delegateCursorMovement.bind(this,!0))),this.own(i.after(t,"onDocumentReset",this._delegateCursorMovement.bind(this,!1)))},_delegateCursorMovement:function(e){const t=this._debugLineFocusWrapper.getCurrentInstance();t?e?t.moveCursorAndScrollToLineOnDocumentReady():t.moveCursor():this._debugLineFocusWrapper.whenInstanceAvailable(this._delegateCursorMovement.bind(this,e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3666)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.executionservice.statehandler","debug.stack.model.persistent"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(275),i(1902),i(1903)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{constructor:function(e,n){this._debugServices=o.getInstance(),this._persistentStackModel=n,this._stateHandler=e,this._stackFrames=this._persistentStackModel.getStackFrames(),this.own(i.after(this._persistentStackModel,"onModelUpdated",t.hitch(this,"_handleStackChanged"),!0)),this.own(i.after(this._debugServices,"onDBCont",t.hitch(this,"_handleDbCont"))),this.own(i.after(this._debugServices,"onDebugModeChanged",t.hitch(this,"_handleDebugMode"),!0)),this.own(i.after(this._stateHandler,"onStateChanged",t.hitch(this,"_stateChangeListener"),!0))},getStackFrames:function(){return this._stackFrames},getExecutionPoint:function(){return a.getExecutionPointFrame(this._stackFrames)},onModelUpdated:function(){},_stateChangeListener:function(e){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED&&this._reset()},_handleDebugMode:function(e){e||this._reset()},_handleDbCont:function(){this._reset()},_handleStackChanged:function(){this._clearStackFrames(),this._stackFrames=this._persistentStackModel.getStackFrames(),this.onModelUpdated()},_reset:function(){this._clearStackFrames(),this.onModelUpdated()},_clearStackFrames:function(){this._stackFrames=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3668),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["debug.stack.model","rtc.backingstore","rtc.executionservice.statehandler","rtc.internaldocument"]}},createInstance:function(e,i,n,o){return new t(e,i,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(907),i(281),i(208),i(275),i(1903)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(i,{constructor:function(e,i,n,o){this._debugServices=a.getInstance(),this._debugStackModel=e,this._backingStore=i,this._stateHandler=n,this._internalDocument=o,this._documentStackFrames=[],this._initializeDocumentCaches(),this.own(r.after(this._debugStackModel,"onModelUpdated",t.hitch(this,"_handleStackModelUpdate"),!0)),this.own(r.after(this._debugServices,"onDBStop",t.hitch(this,"_handleOnDBStop"),!0)),this.own(r.after(this._internalDocument,"onDocumentReset",t.hitch(this,"_handleOnDocumentReset"))),this.own(r.after(this._backingStore,"onLocationUpdated",t.hitch(this,"_handleFilePathUpdated")))},getStackFrames:function(){return this._documentStackFrames},getExecutionPoint:function(){return s.getExecutionPointFrame(this._documentStackFrames)},getActiveWorkspace:function(){return s.getActiveWorkspaceFrame(this._documentStackFrames)},_initializeDocumentCaches:function(){this._documentStackFrames=this.filterStackFramesToDocument(this._debugStackModel.getStackFrames())},_handleStackModelUpdate:function(){var e=this.filterStackFramesToDocument(this._debugStackModel.getStackFrames());0===e.length&&0===this._documentStackFrames.length||(this._documentStackFrames=e,this.onStackChanged(this._documentStackFrames))},filterStackFramesToDocument:function(e){return e.filter((function(e){if(this._stateHandler.isRunningRequestInvalid())return!1;var t=e.getFullPath();return t&&o.accountForPFilesAndCompareToBackingStore(this._backingStore,t)?e:void 0}),this)},_handleFilePathUpdated:function(){this._handleStackModelUpdate()},_handleOnDocumentReset:function(){this._handleStackModelUpdate()},onStackChanged:function(e){},_handleOnDBStop:function(e,t){this._stateHandler.isRunningRequestInvalid()||o.accountForPFilesAndCompareToBackingStore(this._backingStore,e)&&this.onDBStop(e,t)},onDBStop:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3670)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore","debug.breakpointmodel","debug.margin.matlab.breakpoint.linenumberaddon","debug.contextmenucontributor","debug.breakpointactions","debug.breakpoint.livemodel","margin.linenumber","rtc.execution.actions","debug.contextualbuttons.runtohere.viewmodel","debug.margin.matlab.breakpoint.hover"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d){return new i(e,t,n,o,r,a,s,l,c,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1904)],o=i.dj.d(n,(function(e,t){return e(t,{_DEBUGGABLE_CSS:"debuggable",constructor:function(e,t,i,n,o,r,a,s,l,c){this._executionActions=s,this._runToHereViewModel=l,this._breakpointHoverDecorator=c,this._lineNumberMargin=a,this._lineNumberMargin.getMarginElement().classList.add(this._DEBUGGABLE_CSS),this._handleFilePathUpdated()},_disableDebugActions:function(){this._debugActionsEnabled&&(this.inherited(arguments),this._executionActions.forceDebugEntrantActionsDisabled(),this._runToHereViewModel.disable(),this._breakpointHoverDecorator.disable(),this._lineNumberMargin.getMarginElement().classList.remove(this._DEBUGGABLE_CSS))},_enableDebugActions:function(){this._debugActionsEnabled||(this.inherited(arguments),this._executionActions.stopForcingDebugEntrantActionsDisabled(),this._runToHereViewModel.enable(),this._breakpointHoverDecorator.enable(),this._lineNumberMargin.getMarginElement().classList.add(this._DEBUGGABLE_CSS))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3672)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore","debug.breakpointmodel","debug.margin.matlab.breakpoint.linenumberaddon","debug.contextmenucontributor","debug.breakpointactions","debug.breakpoint.livemodel","margin.debug","debug.margin.matlab.breakpoint","matlab.executable.line"]}},createInstance:function(e,t,n,o,r,a,s,l,c){return new i(e,t,n,o,r,a,s,l,c)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1904)],o=i.dj.d(n,(function(e,t){return e(t,{_DEBUGGABLE_CSS:"debuggable",constructor:function(e,t,i,n,o,r,a,s,l){this._breakpointMargin=a,this._matlabBreakpointDecorator=s,this._executableLineDecorator=l,this._breakpointMargin.getMarginElement().classList.add(this._DEBUGGABLE_CSS),this._handleFilePathUpdated()},_disableDebugActions:function(){this._debugActionsEnabled&&(this.inherited(arguments),this._executableLineDecorator.disable(),this._matlabBreakpointDecorator.disable(),this._breakpointMargin.getMarginElement().classList.remove(this._DEBUGGABLE_CSS))},_enableDebugActions:function(){this._debugActionsEnabled||(this.inherited(arguments),this._executableLineDecorator.enable(),this._matlabBreakpointDecorator.enable(),this._breakpointMargin.getMarginElement().classList.add(this._DEBUGGABLE_CSS))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3674)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(208),i(207),i(275),i(1902),i(229),i(3675)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(o,{constructor:function(){this._debugServices=r.getInstance(),this._stackFrames=[],this.own(n.after(this._debugServices,"onStackChanged",t.hitch(this,"_handleStackChanged"),!0)),this._debugServices.requestStackState()},getStackFrames:function(){return this._stackFrames},getExecutionPoint:function(){for(var e=0;e<this._stackFrames.length;e+=1){var t=this._stackFrames[e];if(t.isExecutionPoint())return t}return null},getActiveWorkspaceIndex:function(){for(var e=0;e<this._stackFrames.length;e+=1){if(this._stackFrames[e].isActiveWorkspace())return e}return-1},hasStack:function(){return 0!==this._stackFrames.length&&-1!==this.getActiveWorkspaceIndex()},getStackDepth:function(){return this._stackFrames.length},onModelUpdated:function(e){},_handleStackChanged:function(e,t){this._translateStackFrames(e).then(e=>{const i=e.map((function(e,i){var n=0===i,o=i===t,r=e.getLineNumber(),s=r<0;return s&&(r*=-1),new a(e.getName(),e.getFullPath(),r,n,o,s)}),this);var n=this._createStackUpdatedEvent(i,t);this._stackFrames=i,this.onModelUpdated(n)})},_translateStackFrames:function(e){var t=new i;return t.resolve(e),t.promise},_createStackUpdatedEvent:function(e,t){var i=e.map((function(e){return e.getName()})),n=this._stackFrames.map((function(e){return e.getName()})),o=!s.arrayEquals(i,n),r=this.getActiveWorkspaceIndex();return new l(o,t!==r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t){this._hasStackChange=e,this._hasWorkspaceChange=t},hasStackChange:function(){return this._hasStackChange},hasWorkspaceChange:function(){return this._hasWorkspaceChange}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3677)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","matlab.code.codeblocklocationservice","debug.documentdebugservices","rtc.code.executablelines","rtc.linenumberservice"]}},createInstance:function(e,t,i,o,r){return new n(e,t,i,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(212),i(203),i(204),i(207),i(371),i(1373),i(913)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return i(o,{constructor:function(t,i,o,r,a){this._actionService=t,this._codeBlockLocationService=i,this._documentDebugServices=o,this._executableLineService=r,this._lineNumberService=a,this._currentFileStackFrames=[],this.own(e.after(this._documentDebugServices,"onStackChanged",n.hitch(this,"_handleStackChanged"),!0)),this.own(e.after(this._actionService,"onActionChange",n.hitch(this,"_handleActionChange"),!0))},runToLine:function(e,t,i){var n=new a(e);i&&(n.actionOrigin=i),this._actionService.executeAction(t,n)},onActionEnablementChanged:function(e,t){},getPossibleAction:function(e){var i=new t;return this._codeBlockLocationService.whenReady(n.hitch(this,(function(){if(e>this._lineNumberService.getNumberOfCodeLines())i.resolve(null);else{var t=this._getAction(e);i.resolve(t)}}))),i},_getAction:function(e){if(!this._executableLineService.isCodeLineExecutable(e))return null;var t=this._actionService.getAction(r.RUN_TO_LINE_ACTION_ID);if(t&&t.enabled)return this._codeBlockLocationService.isLineInFunction(e)?null:t;var i=this._actionService.getAction(r.CONTINUE_TO_LINE_ACTION_ID);return i&&i.enabled&&this._shouldShowContinueForLineNumber(e)?i:null},_shouldShowContinueForLineNumber:function(e){var t=this._codeBlockLocationService.getInnermostBlockOfType(e,s.FUNCTION_DEFINITION),i=this._getCurrentStackFrameLineNumbersInSameWorkspace(e,t);return i.length>0&&i.some((function(t){return this._isContinueToLineBelowStackFrameLine(e,t)}),this)},_getCurrentStackFrameLineNumbersInSameWorkspace:function(e,t){var i=[];return this._currentFileStackFrames.forEach((function(e){var n=Math.abs(e.getLineNumber());this._isStackFrameInSameWorkspace(n,t)&&i.push(n)}),this),i},_isStackFrameInSameWorkspace:function(e,t){return null===t?!this._codeBlockLocationService.isLineInFunction(e):this._isStackFrameInSameFunctionBlock(e,t)},_isStackFrameInSameFunctionBlock:function(e,t){var i=this._codeBlockLocationService.getInnermostBlockOfType(e,s.FUNCTION_DEFINITION);return null!==i&&i.id===t.id},_isContinueToLineBelowStackFrameLine:function(e,t){return t<e},_handleStackChanged:function(e){this._currentFileStackFrames=e},_handleActionChange:function(e){var t=e.id===r.RUN_TO_LINE_ACTION_ID||e.id===r.CONTINUE_TO_LINE_ACTION_ID,i="enabled"===e.key;t&&i&&this.onActionEnablementChanged(e.id,e.newValue)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3680)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore"]}},createInstance:function(e){return new i(null,null,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1844),i(236),i(241),i(207),i(1347),i(275)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([r,a],{_MESSAGE_CHANNEL:"::MathWorks::ExecutionEvents::EnterDebuggerWithWarningEvent",constructor:function(e,t,i){this._backingStore=i,this._debugServicesTranslator=t||s.getInstance().getTranslator(),this._subscribe(this._MESSAGE_CHANNEL,this._mvmId,"_handleEnterDebugEvent")},_handleEnterDebugEvent:function(e){const t=e.data.Warning;if(!t)return;const i=e.data.Filespec,n=this._debugServicesTranslator.translateFile(i);this._backingStore.getUniqueId().toLowerCase()===n.toLowerCase()&&this._showDialog(t,n)},_showDialog:function(e,t){const r=n.substitute(i.fileLabel,[t])+"\n\n"+e;o.displayAlertDialog(i.title,r,{icon:"warning"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3682),i(275),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{requires:function(){return{createInstance:["rtc.backingstore","debug.documentdebugservices","rtc.settings.service"]}},createInstance:function(e,n,o){var r=i.getInstance();return new t(e,r,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(297),i(363),i(208),i(207),i(1906)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(a,{_EXIT_DEBUG_CMD:"dbquit",_EXIT_DEBUG_NUM_OUT:0,_EXIT_DEBUG_ARGS:["all"],constructor:function(e,i,a,s,l){this._backingStore=e,this._debugServices=i,this._documentDebugServices=a,this._settingService=s,this._mvm=l||o.getInstance(),this._runOptions=new n({outTextCallback:null,errTextCallback:null}),this._deferred=null,this._requestedDBQuit=!1,this._shouldShowPrompt=!1,this._setupSettingListeners(),this._backingStore.registerSaveInterceptor&&(this._backingStore.registerSaveInterceptor(this._interceptSave.bind(this)),this.own(r.after(this._debugServices,"onDebugModeChanged",t.hitch(this,"_handleDebugModeChanged"),!0)))},_setupSettingListeners:function(){this.own(this._settingService.listenToSettingChange(s.FULL_SETTING,function(e){this._shouldShowPrompt=e}.bind(this))),this._settingService.getSetting(s.FULL_SETTING).then(function(e){this._shouldShowPrompt=e}.bind(this),(function(e){}))},_interceptSave:function(){return this._deferred=new i,0===this._documentDebugServices.getStackFrames().length?this._deferred.resolve():this._handleSaveWhileDebugging(),this._deferred.promise},_handleSaveWhileDebugging:function(){this._shouldShowPrompt?this._createAndShowPrompt():this._stopDebuggingAndSave()},_createAndShowPrompt:function(){var e=this._backingStore.getFileName();s.createAndShowPrompt(e,this._stopDebuggingAndSave.bind(this),this._cancelSave.bind(this),this._resetSetting.bind(this))},_stopDebuggingAndSave:function(){this._debugServices.isDebugging?(this._requestedDBQuit=!0,this._mvm.feval(this._EXIT_DEBUG_CMD,this._EXIT_DEBUG_NUM_OUT,this._EXIT_DEBUG_ARGS,this._runOptions)):this._deferred.resolve()},_handleDebugModeChanged:function(e){!e&&this._requestedDBQuit&&(this._deferred.resolve(),this._requestedDBQuit=!1)},_cancelSave:function(){this._deferred.reject("User selected cancel")},_resetSetting:function(){this._settingService.setSetting(s.FULL_SETTING,!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(275),i(3684)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document.changenotifier"]}},createInstance:function(e){var t=n.getInstance();return new o(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(208),i(249)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,i){this._documentChangeNotifier=e,this._debugServices=i,this._documentDirtiedWhileDebugging=!1,this.own(n.after(this._debugServices,"onDebugModeChanged",t.hitch(this,"_handleDebugModeChanged"))),this.own(n.after(this._documentChangeNotifier,"onChange",t.hitch(this,"_handleDocumentChanged"),!0))},onDocumentDirtiedWhileDebuggingChanged:function(e){},isDocumentDirtiedWhileDebugging:function(){return this._documentDirtiedWhileDebugging},resetDirtiedWhileDebugging:function(){this._documentDirtiedWhileDebugging=!1,this.onDocumentDirtiedWhileDebuggingChanged(this._documentDirtiedWhileDebugging)},_handleDebugModeChanged:function(){this._documentDirtiedWhileDebugging=!1},_handleDocumentChanged:function(e){if(this._debugServices.isDebugging&&!this._documentDirtiedWhileDebugging){if(this._isOnlyReadOnlyEvents(e))return;this._documentDirtiedWhileDebugging=!0,this.onDocumentDirtiedWhileDebuggingChanged(this._documentDirtiedWhileDebugging)}},_isOnlyReadOnlyEvents:function(e){return e.some((function(e){return e.type===o.READONLY_STATE_CHANGE_EVENT}))&&e.every((function(e){return!e.type||e.type===o.READONLY_STATE_CHANGE_EVENT}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3686)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:[]}},createInstance:function(){return new n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1858)],o=i.dj.d(n,(function(e,t){return e(t,{_CONTEXTUAL_DEBUG_BUTTON_CSS:"contextualDebugButton",createButton:function(e,t,i){return e.push(this._CONTEXTUAL_DEBUG_BUTTON_CSS),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3688)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.linenumberservice","debug.runtolineservice","rtc.cursorcontroller","rtc.code.matlabfiletype","rtc.editor.executionnotifier","rtc.backingstore","debug.stack.model.persistent"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(281),i(3689),i(1372)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{constructor:function(e,n,o,r,a,s,l,c,d){this._internalDocument=e,this._document=n,this._lineNumberService=o,this._runToLineService=r,this._cursorController=a,this._fileTypeService=s,this._editorExecutionNotifier=l,this._backingStore=c,this._persistentStackModel=d,this._promise=null,this._lastRequestCodeLine=-1,this._isEnabled=!0,this._canShow=!1,this.own(i.after(this._runToLineService,"onActionEnablementChanged",t.hitch(this,"_handleActionEnablementChange"),!0)),this.own(i.after(this._cursorController,"onActionStarted",t.hitch(this,"_handleCursorActionStarted"))),this.own(i.after(this._internalDocument,"onDocumentReset",t.hitch(this,"_cleanup"))),this.own(i.after(this._document,"onChange",t.hitch(this,"_cleanup"))),this.own(i.after(this._persistentStackModel,"onModelUpdated",t.hitch(this,"_fireEnabledChangeEvent"))),this._hasSaveEvent=!1,this._backingStore.onSaveCompleted&&(this._hasSaveEvent=!0,this.own(i.after(this._backingStore,"onSaveCompleted",t.hitch(this,"_fireEnabledChangeEvent")))),this._fileTypeService.whenReady(t.hitch(this,"_fireEnabledChangeEvent"))},onUpdate:function(e){},onClear:function(){},onCanShowChange:function(){},canShow:function(){return this._canShow},_updateCanShow:async function(){const e=this._canShow;if(this._hasSaveEvent){var t=this._fileTypeService.isScript(),i=await a.shouldShowUIElements(this._editorExecutionNotifier,this._persistentStackModel).catch(e=>{});this._canShow=this._isEnabled&&(t||i)}else this._canShow=this._isEnabled;e!==this._canShow&&this.onCanShowChange()},enable:function(){this._isEnabled=!0,this._updateCanShow()},disable:function(){this._isEnabled=!1,this._cleanup(),this._updateCanShow()},requestUpdateForLine:function(e){this._lastRequestCodeLine!==e&&(this._promise&&this._promise.cancel(),this._cursorController.isActionInProgress()||(this._lastRequestCodeLine=e,e>this._lineNumberService.getNumberOfCodeLines()||(this._promise=this._runToLineService.getPossibleAction(e),this._promise.then(t.hitch(this,"_updateIfActionExists",e),(function(){})))))},_updateIfActionExists:function(e,i){if(i){var n=t.hitch(this,"_runToHere",e,i.id),o=new r(n,i,e);this.onUpdate(o)}},_handleActionEnablementChange:function(e,t){t||this._cleanup()},_fireEnabledChangeEvent:function(){this._updateCanShow()},_handleCursorActionStarted:function(){this._cleanup()},_runToHere:function(e,t){this._runToLineService.runToLine(e,t,"contextual"),this.onClear()},_cleanup:function(){this._promise&&(this._promise.cancel("Destroying"),this._promise=null),this._lastRequestCodeLine=-1,this.onClear()},destroy:function(){this.inherited(arguments),this._cleanup()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i){this._callback=e,this._action=t,this._codeLineNumber=i},getCodeLine:function(){return this._codeLineNumber},getCallback:function(){return this._callback},getActionId:function(){return this._action.id},getBasicDescription:function(){return this._action.text||""},getDetailedDescription:function(){return this._action.description||""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3691)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.internaldocument","rtc.linenumberservice"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(206),i(248),i(203),i(204),i(207),i(208),i(3692)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i(o,{_NO_LINE:-1,constructor:function(i,o,r){this._view=i,this._internalDocument=o,this._lineNumberService=r,this._currentLineNumber=this._NO_LINE,this.own(e(this._view.getDomtarget(),t.move,n.hitch(this,"_handleMouseMove"))),this.own(e(this._view.getDomtarget(),"mouseleave",n.hitch(this,"_sendMouseLeaveIfNeeded")))},onMouseEnter:function(e){},onMouseLeave:function(e){},_handleMouseMove:function(e){if(e){var t=this._view.fixEvent(e);a.shouldHandleMouseMoveEvent(this._view,this._internalDocument,t)?this._handleHoverOnCodeLine(t):this._sendMouseLeaveIfNeeded()}},_handleHoverOnCodeLine:function(e){var t=a.getDocumentLineNumberFromFixedEvent(this._view,e),i=this._lineNumberService.getCodeLineNumberFromLineNumber(t-1);i!==this._currentLineNumber&&(this._sendMouseLeaveIfNeeded(),this._currentLineNumber=i,this.onMouseEnter(this._currentLineNumber))},_sendMouseLeaveIfNeeded:function(){this._currentLineNumber!==this._NO_LINE&&(this.onMouseLeave(this._currentLineNumber),this._currentLineNumber=this._NO_LINE)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234)],o=i.dj.d(n,(function(e,t){return{_LEFT_BUFFER:0,_RIGHT_OVERLAP:13,shouldHandleMouseMoveEvent:function(e,i,n){var o=e.getCoordinateFromEvent(n),r=this.getDocumentLineNumberFromFixedEvent(e,n),a=i.getLineNode(r-1);if(!a||!e.getNodeBox(a)||!t.isCodeContainer(a))return!1;var s=this._isCorrectXPosition(o,a,e),l=this._isCorrectYPosition(e,o,a);return s&&l},getDocumentLineNumberFromFixedEvent:function(e,t){var i=e.getCoordinateFromEvent(t);return e.getLineFromCoordinate(i)},_isCorrectXPosition:function(e,t,i){var n=this._LEFT_BUFFER,o=i.getCoordinateForNode(t).x+this._RIGHT_OVERLAP;return e.x<o&&e.x>=n},_isCorrectYPosition:function(e,t,i){var n=e.getNodeTopAndBottom(i);return t.y>=n.top&&t.y<n.bottom}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3694)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document","debug.ddux","debug.contextualbuttons.stepin.locatorservice"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(363),i(207),i(266),i(3695)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,i,n,o){this._document=e,this._debugDDUXLogger=i,this._locatorService=n,this._mvm=o||t.getInstance()},create:function(e,t,i){var n=this._locatorService.getUpdatedLineNumber(t),r=this._locatorService.getUpdatedColumnNumber(e,n,i);if(null===r)return null;var a=this._createRange(e,n,r);return new o(this._debugDDUXLogger,this._mvm,e,a,t,i)},_createRange:function(e,t,i){var o=this._document.createPositionAtLineColumn(t,i,!0);if(o.isAtRightEdge()){var r=o.getNode().nextSibling();r&&o.setPosition(r,0)}var a=i+e.length,s=this._document.createPositionAtLineColumn(t,a,!0);return o.setLive(!0),s.setLive(!0),new n(o,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(297),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{_STEP_IN_FUNCTION:"_StepIntoLocation",_FEVAL_FUNCTION:"builtin",constructor:function(e,t,i,n,o,r){this._debugDDUXLogger=e,this._mvm=t,this._functionName=i,this._range=n,this._line=o+1,this._column=r+1,this._performingStepIn=!1},getFunctionName:function(){return this._functionName},getRange:function(){return this._range},getLine:function(){return this._line},stepIn:function(){if(!this._performingStepIn){this._performingStepIn=!0,this._debugDDUXLogger.logEvent("stepIn","contextual");var e=new t({outTextCallback:null,errTextCallback:null});this._mvm.feval(this._FEVAL_FUNCTION,0,[this._STEP_IN_FUNCTION,this._line,this._column],e).then((function(){}),(function(){}))}},destroy:function(){this.inherited(arguments),this._range&&this._range.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3697)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.executionservice.linenumbertracker","language.interface.tokenmanager"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(324)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i){this._document=e,this._lineNumberTracker=t,this._matlabTokenManager=i},getUpdatedLineNumber:function(e){return this._lineNumberTracker.getNewLineNumberFromOldLineNumber(e)},getUpdatedColumnNumber:function(e,t,i){var n=this._document.getLineLength(t+1);return i=Math.min(i,n),this._getColumnForFunctionName(e,t,i)},_getColumnForFunctionName:function(e,t,i){var n=this._matlabTokenManager.getTokenOnLineColumn(t,i);if(this._isCorrectToken(n,e))return n.getColumn();var o=n,r=n;do{if(o&&(o=this._getNextToken(o),this._isCorrectToken(o,e)))return o.getColumn();if(r&&(r=this._getPreviousToken(r,t),this._isCorrectToken(r,e)))return r.getColumn()}while(o||r);return null},_getNextToken:function(e){return this._matlabTokenManager.getNextTokenOf(e)},_getPreviousToken:function(e,t){return(e=this._matlabTokenManager.getPreviousTokenOf(e,t))&&e.getLine()<t?null:e},_isCorrectToken:function(e,t){return null!==e&&(-1===t.indexOf(".")?this._isMatchingIDToken(e,t):this._isCorrectClassMethodOrPackageTokens(e,t))},_isCorrectClassMethodOrPackageTokens:function(e,t){var i=t.split("."),n=i.shift();if(!this._isMatchingIDToken(e,n)){var o=i.pop();return this._isMatchingIDToken(e,o)}return this._isCorrectMultiTokenClassMethodOrPackageFunction(e,i)},_isCorrectMultiTokenClassMethodOrPackageFunction:function(e,t){var i=this._getNextToken(e);return t.every(function(e){if(null===(i=this._matchDotToken(i)))return!1;if(this._isLeftParenToken(i)){if(i=this._getNextToken(i),this._isMatchingStringParameter(i,e))return i=this._getNextToken(i),!0;e=this._removeFirstAndLastCharacterIfParentheses(e)}return!!this._isMatchingIDToken(i,e)&&(i=this._getNextToken(i),!0)}.bind(this))},_isLeftParenToken:function(e){return e.getType()===i.TOKENS.LP},_isMatchingStringParameter:function(e,t){const n=(e=this._skipWhitespaceAndLineContinuationTokens(e)).getType();if(n!==i.TOKENS.STRING&&n!==i.TOKENS.STRING_LITERAL)return!1;return e.getValue().slice(1,-1)===t},_removeFirstAndLastCharacterIfParentheses:function(e){return e.replace(/^\(/,"").replace(/\)$/,"")},_isMatchingIDToken:function(e,t){return e.getValue()===t&&e.getType()===i.TOKENS.ID},_matchDotToken:function(e){return null===(e=this._skipWhitespaceAndLineContinuationTokens(e))||e.getType()!==i.TOKENS.DOT?null:(e=this._getNextToken(e),this._skipWhitespaceAndLineContinuationTokens(e))},_skipWhitespaceAndLineContinuationTokens:function(e){for(var t=null;t!==e;)t=e,e=this._skipWhitespaceToken(e),e=this._skipLineContinuationTokens(e),e=this._skipWhitespaceToken(e);return e},_skipWhitespaceToken:function(e){return e&&e.getType()===i.TOKENS.WHITE?this._getNextToken(e):e},_skipLineContinuationTokens:function(e){return e&&e.getType()===i.TOKENS.DOTDOTDOT?this._matlabTokenManager.getFirstTokenOnLine(e.getLine()+1):e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(275),i(3699)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{requires:function(){return{createInstance:["rtc.id","debug.contextualbuttons.stepin.functioncallsitefactory","rtc.service.documentloaded","debug.documentdebugservices","rtc.settings.service"]}},createInstance:function(e,t,i,r,a){var s=n.getInstance();return new o(e,t,i,r,s,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(297),i(363),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_FEVAL_FUNCTION:"builtin",_GET_STEP_IN_LOCATIONS_FUNCTION:"_GetSteppableLocations",_ONLY_USER_FUNCTIONS_SETTING:"matlab.editor.OnlyStepInToUserFunctions",constructor:function(e,r,a,s,l,c,d){this._editorId=e,this._functionCallsiteFactory=r,this._documentLoadedService=a,this._documentDebugServices=s,this._debugServices=l,this._settingService=c,this._mvm=d||n.getInstance(),this._runOptions=new i({outTextCallback:null,errTextCallback:null}),this._promise=null,this._previousTopOfStack=null,this._functionCallsites=[],this.own(o.after(this._documentDebugServices,"onStackChanged",t.hitch(this,"_updateFunctionCallsitesIfAtExecutionPoint"))),this.own(o.after(this._debugServices,"onDBCont",t.hitch(this,"_handleDBEvent"))),this.own(o.after(this._debugServices,"onDBStop",t.hitch(this,"_handleDBEvent")))},onFunctionCallsitesUpdated:function(e){},_updateFunctionCallsitesIfAtExecutionPoint:function(){var e=this._documentDebugServices.getExecutionPoint();if(null!==e){if(!this._isSameAsPreviousTopOfStack(e)){this._previousTopOfStack=e;var i=e.getLineNumber();this._documentLoadedService.whenDocumentLoadedWithText(t.hitch(this,"_updateFunctionCallsites",i-1))}}else this._functionCallsites.length>0&&this._clearFunctionCallsites()},_isSameAsPreviousTopOfStack:function(e){return null!==this._previousTopOfStack&&(this._previousTopOfStack.getName()===e.getName()&&(this._previousTopOfStack.getFullPath()===e.getFullPath()&&(this._previousTopOfStack.getLineNumber()===e.getLineNumber()&&(this._previousTopOfStack.isExecutionPoint()===e.isExecutionPoint()&&this._previousTopOfStack.isLeavingFrame()===e.isLeavingFrame()))))},_updateFunctionCallsites:function(e){this._clearFunctionCallsites(),e<0||this._addAllNewFunctionCallsites()},_addAllNewFunctionCallsites:function(){this._promise=this._mvm.feval(this._FEVAL_FUNCTION,1,[this._GET_STEP_IN_LOCATIONS_FUNCTION],this._runOptions),this._promise.then(function(e){this._promise=null;var t=e[0].mwdata||e[0];t=this._enforceArrays(t),this._addNewFunctionCallsitesForData(t),this._functionCallsites.length>0&&this.onFunctionCallsitesUpdated(this._functionCallsites)}.bind(this),(function(e){}))},_enforceArrays:function(e){return e.Identifier=this._enforceArray(e.Identifier),e.LineNumber=this._enforceArray(e.LineNumber),e.ColumnNumber=this._enforceArray(e.ColumnNumber),e.Author=this._enforceArray(e.Author),e},_enforceArray:function(e){return e?(Array.isArray(e)||(e=[e]),e):[]},_addNewFunctionCallsitesForData:function(e){var t=this._settingService.get(this._ONLY_USER_FUNCTIONS_SETTING),i=e.LineNumber,n=e.ColumnNumber,o=e.Author;e.Identifier.forEach(function(e,r){if(!t||"User"===o[r]){var a=i[r]-1,s=n[r]-1;this._addFunctionCallsite(e,a,s)}}.bind(this))},_addFunctionCallsite:function(e,t,i){var n=this._functionCallsiteFactory.create(e,t,i);null!==n&&this._functionCallsites.push(n)},_handleDBEvent:function(){this._previousTopOfStack=null,this._clearFunctionCallsites()},_clearFunctionCallsites:function(){this._promise&&(this._promise.cancel("Cancel query request for contextual step in buttons"),this._promise=null),this._functionCallsites.forEach((function(e){e.destroy()})),this._functionCallsites=[],this.onFunctionCallsitesUpdated(this._functionCallsites)},destroy:function(){this.inherited(arguments),this._clearFunctionCallsites()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3701)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.view","debug.contextualbuttons.stepin.manager","debug.contextualbuttons.buttonfactory","rtc.view.decoration","rtc.linenumberservice","rtc.view.styles.globalstylechanger"]}},createInstance:function(){return new n(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(228),i(213),i(1085),i(236),i(207),i(282),i(1089),i(362),i(719),i(1100),i(3702)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(s,{_CSS_CLASS:"stepIn",_ENABLED_CSS_CLASS:"enabled",_LEFT_IS_NONWHITESPACE_CSS_CLASS:"includeLeftMargin",_DOM_LOCATION:d.PLACEMENT.BETWEEN,_BUTTON_HEIGHT:17,constructor:function(e,n,o,r,a,s){this._view=e,this._stepInManager=n,this._contextualButtonFactory=o,this._decorator=r.createDecorator(0,!0),this._lineNumberService=a,this._buttonsToInfoMap=l.createMap(),this.own(i.after(this._stepInManager,"onFunctionCallsitesUpdated",t.hitch(this,"_addButtons"),!0)),this.own(i.after(s,"onLineHeightUpdated",t.hitch(this,"_handleLineHeightUpdated")))},_addButtons:function(e){e.forEach((function(e){this._addButton(e)}),this),this._decorator.applyChanges()},_addButton:function(e){var i=e.getRange(),o=e.getFunctionName(),r=[this._CSS_CLASS,this._ENABLED_CSS_CLASS];this._isNonWhitepaceCharacterToLeft(i)&&r.push(this._LEFT_IS_NONWHITESPACE_CSS_CLASS);var a=this._contextualButtonFactory.createButton(r,p,t.hitch(e,"stepIn"));n.set(a,"data-testid","stepin_"+o),this._alignButtonToCenter(a,e.getLine()),this._addButtonNode(a,i);var s={range:i,destroyListener:this._addButtonListener(a,e),tooltip:this._addButtonTooltip(a,o),codeLineNumber:e.getLine()};this._buttonsToInfoMap.set(a,s)},_alignButtonToCenter:function(e,t){var i=this._lineNumberService.getLineNumberFromCodeLineNumber(t);c.setTopForCenteredAlignment(e,this._view,i,this._BUTTON_HEIGHT)},_isNonWhitepaceCharacterToLeft:function(e){var t=e.getStartPosition(),i=t.getColumn()-1;return 0!==i&&!(""===t.getNode().rootContainer().getCodeText().charAt(i-1).trim())},_addButtonNode:function(e,t){this._decorator.addDomNode(e,t,this._DOM_LOCATION)},_addButtonListener:function(e,n){return i.before(n,"destroy",t.hitch(this,"_removeButton",e))},_addButtonTooltip:function(e,t){var i=h.styleAsCode(t);return new u({targetNode:e,label:a.substitute(r.stepInAnywhereLabel,[i]),description:a.substitute(r.stepInAnywhereDescription,[i])})},_removeButton:function(e){var t=this._buttonsToInfoMap.get(e);t&&(this._removeButtonWithInfo(e,t),this._buttonsToInfoMap.delete(e))},_removeButtonWithInfo:function(e,t){t.destroyListener.remove(),t.tooltip.destroy(),this._decorator.removeDomNode(e,t.range,this._DOM_LOCATION)},_handleLineHeightUpdated:function(){this._buttonsToInfoMap.forEach((function(e,t){this._alignButtonToCenter(t,e.codeLineNumber)}),this)},destroy:function(){this.inherited(arguments),this._buttonsToInfoMap.forEach((function(e,t){this._removeButtonWithInfo(t,e)}),this),this._buttonsToInfoMap.clear()}})}),e,t),e.exports=o},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 16 16"><defs><linearGradient id="linear-gradient-step-in" x1="9" y1="15" x2="9" y2="16" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#1a5f16"></stop><stop offset="0.98" stop-color="#004700"></stop></linearGradient><linearGradient id="linear-gradient-step-in-2" x1="4" y1="15.5" x2="14" y2="15.5" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#4f9044"></stop><stop offset="0.98" stop-color="#004700"></stop></linearGradient><radialGradient id="radial-gradient-step-in" cx="7.5" cy="7" fy="-1.5959501720213094" r="13.46" gradientTransform="translate(0 0.04) scale(1 0.99)" gradientUnits="userSpaceOnUse"><stop offset="0.01" stop-color="#fff"></stop><stop offset="0.11" stop-color="#e9f6cf"></stop><stop offset="0.23" stop-color="#d4eca0"></stop><stop offset="0.34" stop-color="#c4e67d"></stop><stop offset="0.43" stop-color="#bae268"></stop><stop offset="0.48" stop-color="#b7e060"></stop><stop offset="1" stop-color="#4ea43f"></stop></radialGradient><linearGradient id="linear-gradient-step-in-3" x1="2.25" y1="7.25" x2="13.5" y2="7.25" xlink:href="#linear-gradient-step-in-2"></linearGradient></defs><g id="Layer_2" data-name="Layer 2"><g id="Icons"><rect fill="#ed1c24" opacity="0" width="16" height="16"></rect><rect stroke-miterlimit="10" stroke-width="2px" fill="url(#linear-gradient-step-in)" stroke="url(#linear-gradient-step-in-2)" x="5" y="15" width="8" height="1"></rect><path fill="url(#radial-gradient-step-in)" d="M10,9V5A4,4,0,0,0,6,1H3V3H6A2,2,0,0,1,8,5V9H6l3,4,3-4Z"></path><path fill="url(#linear-gradient-step-in-3)" d="M6,1a4,4,0,0,1,4,4V9h2L9,13,6,9H8V5A2,2,0,0,0,6,3H3V1H6M6,.25H2.25v3.5H6A1.25,1.25,0,0,1,7.25,5V8.25H4.5l.9,1.2,3,4,.6.8.6-.8,3-4,.9-1.2H10.75V5A4.75,4.75,0,0,0,6,.25Z"></path></g></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(205),i(3704)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["debug.contextualbuttons.runtohere.viewmodel","rtc.linenumberservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(210),i(211),i(3705),i(3706),i(575),i(719),i(371)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(a,{_BUTTON_CSS:"runToHereButton",_RUN_TO_LINE_CSS:"runToLine",_CONTINUE_TO_LINE_CSS:"continueToLine",_MARGIN_WIDTH:19,_HIDE_DISPLAY_STYLE:"none",constructor:function(e,i){this._runToHereViewModel=e,this._lineNumberService=i,this._currentRunToHereViewInfo=null,this._currentTooltip=null,this._currentButtonElement=null,this.own(t.after(this._runToHereViewModel,"onUpdate",this._handleModelOnUpdate.bind(this),!0)),this.own(t.after(this._runToHereViewModel,"onClear",this._handleOnClear.bind(this),!0))},handleBeginUpdate:function(){this._clearViewElements()},hasLayerForLineNumber:function(e){const t=this._lineNumberService.getCodeLineNumberFromLineNumber(e);return this._currentRunToHereViewInfo&&this._currentRunToHereViewInfo.getCodeLine()===t},createDecorationForLineNumber:function(e){const t=this._createBaseButtonDivElement(e);return this._addButtonInteractions(t),t},getWidth:function(){return this._MARGIN_WIDTH},handleMouseMove:function(e,t){const i=this._lineNumberService.getCodeLineNumberFromLineNumber(t);-1!==i&&this._runToHereViewModel.requestUpdateForLine(i)},_createBaseButtonDivElement:function(e){const t=n.create("div",{class:this._BUTTON_CSS});t.setAttribute("data-testid",e+"_runtohere_button");const[o,r]=this._getSVGAndClassForAction(this._currentRunToHereViewInfo.getActionId());return t.innerHTML=o,i.add(t,r),t},_addButtonInteractions:function(e){e.onclick=this._onClickCallback.bind(this,this._currentRunToHereViewInfo.getCallback()),this._currentTooltip=new s({targetNode:e,label:this._currentRunToHereViewInfo.getBasicDescription(),description:this._currentRunToHereViewInfo.getDetailedDescription()}),this._currentButtonElement=e},_handleModelOnUpdate:function(e){this._clearAllStoredData(),this._currentRunToHereViewInfo=e,this.onUpdate()},_handleOnClear:function(){this._currentRunToHereViewInfo&&(this._clearAllStoredData(),this.onUpdate())},_clearAllStoredData:function(){this._clearCurrentInfo(),this._clearViewElements()},_clearViewElements:function(){this._currentTooltip&&(this._currentTooltip.destroy(),this._currentTooltip=null),this._currentButtonElement&&(this._currentButtonElement.style.display=this._HIDE_DISPLAY_STYLE,this._currentButtonElement=null)},_clearCurrentInfo:function(){this._currentRunToHereViewInfo=null},_getSVGAndClassForAction:function(e){return e===l.RUN_TO_LINE_ACTION_ID?[r,this._RUN_TO_LINE_CSS]:[o,this._CONTINUE_TO_LINE_CSS]},_onClickCallback:function(e){this._clearAllStoredData(),this.onUpdate(),e()},destroy:function(){this.inherited(arguments),this._clearAllStoredData()}})}),e,t),e.exports=o},function(e,t){e.exports='<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><defs><style>.cls-1{fill:#b8ed8a;}.cls-2{fill:#3c7f48;}</style></defs><polygon class="cls-1" points="1.5 2.21 5.29 6 1.5 9.79 1.5 2.21"></polygon><path class="cls-2" d="M2,3.41,4.59,6,2,8.59V3.41M1,1V11L6,6,1,1Z"></path><polygon class="cls-1" points="3.5 2.21 7.29 6 3.5 9.79 3.5 2.21"></polygon><path class="cls-2" d="M4,3.41,6.59,6,4,8.59V3.41M3,1V11L8,6,3,1Z"></path><rect class="cls-1" x="8.5" y="1.5" width="2" height="9"></rect><path class="cls-2" d="M10,2v8H9V2h1m1-1H8V11h3V1Z"></path></svg>'},function(e,t){e.exports='<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><defs><style>.cls-1{fill:#b8ed8a;}.cls-2{fill:#3c7f48;}</style></defs><polygon class="cls-1" points="1.5 1.97 7.14 6 1.5 10.03 1.5 1.97"></polygon><path class="cls-2" d="M2,2.94,6.28,6,2,9.06V2.94M1,1V11L8,6,1,1Z"></path><rect class="cls-1" x="8.5" y="1.5" width="2" height="9"></rect><path class="cls-2" d="M10,2v8H9V2h1m1-1H8V11h3V1Z"></path></svg>'},function(e,t,i){var n,o;n=[i(203),i(205),i(3708)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["margin.runtohere","debug.contextualbuttons.runtohere.viewmodel","rtc.settings.service","rtc.actionservice","rtc.view.visibilityservice","rtc.backingstore"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(253),i(616),i(294),i(451)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_MARGIN_VISIBLE_SETTING:"matlab.editor.displaysettings.ShowRunToHereMargin",_SHOW_MARGIN_ACTION:"rtc_show_runtohere_margin",constructor:function(e,i,n,o,r,a){this._runToHereMargin=e,this._runToHereViewModel=i,this._settingsService=n,this._actionService=o,this._visibilityService=r,this._backingStore=a,this._visibilitySetting=!1,this._setupContextMenuAction(),this._setupSettingListener(),!this._backingStore.hasLocationOnDisk()&&this._visibilitySetting&&this._runToHereMargin.showMargin(),this.own(t.after(this._runToHereViewModel,"onCanShowChange",this._updateMarginVisibility.bind(this)))},_setupContextMenuAction:function(){const e={id:this._SHOW_MARGIN_ACTION,enabled:!0,text:i.showRunToHereMargin,callback:this._toggleSettingValue.bind(this)};this._actionService.addAction(e),this.addActionToMap(o.MARGIN,{type:r.CHECKBOX,actionId:this._SHOW_MARGIN_ACTION})},_toggleSettingValue:function(){this._settingsService.getSetting(this._MARGIN_VISIBLE_SETTING).then(e=>{this._settingsService.setSetting(this._MARGIN_VISIBLE_SETTING,!e)},(function(){}))},_setupSettingListener:function(){this._settingsService.getSetting(this._MARGIN_VISIBLE_SETTING).then(this._handleSettingChange.bind(this),function(e){this._updateMarginVisibility()}.bind(this)),this.own(this._settingsService.listenToSettingChange(this._MARGIN_VISIBLE_SETTING,this._handleSettingChange.bind(this)))},_handleSettingChange:function(e){this._visibilitySetting=e,this._actionService.updateAction(this._SHOW_MARGIN_ACTION,{selected:e}),this._updateMarginVisibility()},_updateMarginVisibility:function(){this._visibilityService.runWhenVisible(this,()=>{this._visibilitySetting&&this._runToHereViewModel.canShow()?this._runToHereMargin.showMargin():this._runToHereMargin.hideMargin()})},updateActions:function(e){this.hiddenActionsList=[];const t=this._runToHereMargin.getMarginElement();t.parentElement&&t.parentElement.contains(e)&&this._runToHereViewModel.canShow()||this.hiddenActionsList.push(this._SHOW_MARGIN_ACTION)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(210),i(205),i(908)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{requires:function(){return{createInstance:["rtc.view","rtc.internaldocument","rtc.focusservice","margin.shared.decorations","margin.runtohere.decorations"]}},createInstance:function(e,n,r,a,s){var l=a.concat(s),c=new o(e,n,r,l,250,null);return i.add(c.getMarginElement(),"runToHereMargin"),t.set(c.getMarginElement(),"data-testid","runToHereMargin"),c}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3711)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.editorservice.initializer","rtc.backingstore","rtc.internaldocument","rtc.id","rtc.document.executablecode.executablecodeservice","rtc.code.codechange","rtc.editorservice.synchronizationmodel","rtc.editorservice.documentcachecontributors"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(281),i(219),i(1908),i(3712)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(n,{_DOCUMENT_UPDATED:"/editorService/documentSynchronizer/documentUpdated/",_METADATA_UPDATED:"/editorService/documentSynchronizer/metadataUpdated/",constructor:function(e,t,n,o,a,s,l,c,d){this._backingStore=t,this._internalDocument=n,this._rtcId=o,this._executableCodeService=a,this._codeChangeService=s,this._synchronizationModel=l,this._documentCacheMetadataContributors=c,this._messageService=d||r,this._timer=null,this._loadCompleteAspectHandle=i.after(this._backingStore,"onLoadComplete",this._handleLoadComplete.bind(this)),this.own(this._loadCompleteAspectHandle),this._documentLoadAspectHandle=this._createDocumentLoadListener(),this.own(this._documentLoadAspectHandle)},_createDocumentLoadListener:function(){let e;return e=this._backingStore.isInstanceOf(a)||this._backingStore.isInstanceOf(s)?{remove:function(){}}:i.after(this._internalDocument,"onDocumentReset",this._handleLoadComplete.bind(this)),e},_handleLoadComplete:function(){this._loadCompleteAspectHandle.remove(),this._documentLoadAspectHandle.remove(),this._sendDocumentUpdatedMessage(),this.own(i.after(this._codeChangeService,"onCodeChanged",this._handleCodeChanged.bind(this))),this.own(i.after(this._backingStore,"onLocationUpdated",this._handleFilepathUpdated.bind(this))),this._documentCacheMetadataContributors.forEach(e=>{this.own(i.after(e,"onDataToSync",this._handleMetadataUpdated.bind(this)))})},_handleFilepathUpdated:function(){this._sendDocumentUpdatedMessage()},_handleCodeChanged:function(){this._timer&&clearTimeout(this._timer),this._setPendingServerRequestState(),this._timer=setTimeout(()=>{this._sendDocumentUpdatedMessage()},200)},_handleMetadataUpdated:function(){let e=this._createMetadataObject();this._publishDataToServer(this._METADATA_UPDATED,e)},_sendDocumentUpdatedMessage:function(){let e=this._createDataObject();this._setPendingServerRequestState(),this._publishDataToServer(this._DOCUMENT_UPDATED,e)},_createDataObject:function(){let e=this._createMetadataObject();return{documentState:this._internalDocument.getState(),isUntitledBuffer:!o.hasFileLocation(this._backingStore),filepath:o.getAbsoluteFilePathFromBackingStore(this._backingStore),codeText:this._executableCodeService.getEvalText(),metadata:e.metadata}},_createMetadataObject:function(){let e={};return this._documentCacheMetadataContributors.forEach(t=>{t.hasDataToSync()&&(e[String(t.getId())]=String(t.getValue()),t.onDataSynced())}),{metadata:e}},_publishDataToServer:function(e,t){this._messageService.publish(e+this._rtcId,t)},_setPendingServerRequestState:function(){this._synchronizationModel.setLastPendingCodeSynchronizationState(this._internalDocument.getState())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(907),i(219)],o=i.dj.d(n,(function(e,t,i){return e(t,{FILE_NAME_UPDATED:"/liveeditor/event/FileNameUpdated/",constructor:function(e,t){this.inherited(arguments),this._filePath=e,this._save=null,this._load=null,this._rtcId=t,i.subscribe(this.FILE_NAME_UPDATED+this._rtcId,"_handleFileNameUpdatedResponse",this)},_handleFileNameUpdatedResponse:function(e){var t=e.data;this._filePath=t.fileName,this._updateFilePath(this._filePath)},getFilePath:function(){return this._filePath},save:function(e){return this._save(e)},onSaveFailed:function(e){},onSaveCompleted:function(){},onHandleFileInfo:function(e){},load:function(e){return this._load(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3714)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.cursorcontroller","rtc.settings.service"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(253),i(207),i(208),i(234),i(249),i(260),i(1909),i(274),i(313),i(266),i(401),i(379),i(294),i(451),i(720),i(251),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e(n,{_DUPLICATE_ACTION_ID:_.DUPLICATE_LINE,_CONTEXT_MENU_TEXT:i.duplicateLineLabel,_CONTEXT_MENU_GROUP:f.DEFAULT,constructor:function(e,i,n,r,a,s){this._internalDocument=e,this._document=i,this._cursorController=a,this._contextMenuContributor=r,this._actionService=n,this._rtcSettingService=s;var l=[{id:this._DUPLICATE_ACTION_ID,key:"ctrl_shift_c",platformKey:{mac:"meta_shift_c"},enabled:!0,text:this._CONTEXT_MENU_TEXT,callback:t.hitch(this,"_duplicate")}];this._actionService.loadActions(l),this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,{actionId:this._DUPLICATE_ACTION_ID,type:g.DEFAULT,priority:1}),this.own(o.after(this._cursorController,"onUpdate",t.hitch(this,this._updateActionState))),this.own(o.after(this._document,"onChange",t.hitch(this,this._updateActionsOnDocumentChange),!0))},_duplicate:function(){return m.disableAutoIndent(),this._cursorController.hasSelection()?this._duplicateBlock():this._duplicateLine(),m.restoreAutoIndent(),!0},_duplicateLine:function(){var e=this._getCursor().getCursorPosition().getNode().textContainer(),t=this._getCursor().getCursorPosition().getLineColumn(),i=this._document.createPositionAtLineColumn(e.startPosition().getLine()-1,e.startPosition().getColumn()-1),n=this._document.createPositionAtLineColumn(e.endPosition().getLine()-1,e.endPosition().getColumn()-1),o=this._document.createPositionAtLineColumn(e.endPosition().getLine()-1,e.endPosition().getColumn()-1,!0),r=new u(i,n);this._cursorController.holdCursors();var a=this._document.startBlockEdit();if(this._document.insertBreakAt(o.getLine(),o.getColumn()),0!==d.comparePositions(i,n)){var s=this._internalDocument.getPositionForLineColumn(o.getLine(),o.getColumn());this._copyContent(r,s)}this._document.endBlockEdit(a),this._cursorController.resetCursors();var l=o.getColumn()-(n.getColumn()-t.column),c=this._internalDocument.getPositionForLineColumn(o.getLine(),l);this._cursorController.setPositions([c]),this._cursorController.scrollIntoView(),i.destroy(),n.destroy(),o.destroy()},_duplicateBlock:function(){var e=this._cursorController.getSelection()[0],t=e.getStartPosition(),i=e.getEndPosition().getLine()-t.getLine(),n=(e=p.trimTrailingLineBreak(e)).getStartPosition().getNode().textContainer(),o=e.getEndPosition().getNode().textContainer(),r=this._document.createPositionAtLineColumn(n.startPosition().getLine()-1,n.startPosition().getColumn()-1),a=this._document.createPositionAtLineColumn(o.endPosition().getLine()-1,o.endPosition().getColumn()-1),s=this._document.createPositionAtLineColumn(o.endPosition().getLine()-1,o.endPosition().getColumn()-1,!0);this._cursorController.holdCursors();var l=this._document.startBlockEdit();this._document.insertBreakAt(s.getLine(),s.getColumn());var c=s.getLine(),d=s.getColumn(),f=new u(r,a);this._copyContent(f,s),this._document.endBlockEdit(l),this._cursorController.resetCursors(),this._cursorController.clearSelection();for(var g=this._internalDocument.getPositionForLineColumn(c,d),m=this._internalDocument.getPositionForLineColumn(s.getLine(),s.getColumn());i>m.getLine()-g.getLine();)m=m.getNode().nextNode().startPosition();var _=new h(g,m);this._cursorController.setSelection([_]),r.destroy(),a.destroy(),s.destroy()},_copyContent:function(e,t){var i=c.allNodesInRangeWritable(e),n=!t.getNode().isReadOnly();v.assert(i,"All nodes in range to copy must be writable"),v.assert(n,"Insertion position cannot be read only");var o=l.serializeRange(e);if(v.assert(o,"Could not get content for range"),i&&n&&o){var r=this._getCursor();this._document.insertContent(o,t,r)}},_updateActionsOnDocumentChange:function(e){s.hasEventType(e,a.READONLY_STATE_CHANGE_EVENT)&&this._updateActionState()},_updateActionState:function(){var e=this._cursorController.hasMultipleCursors(),t=!this._getCursor().isCursorReadOnly(),i=this._isCodeRange();this._actionService.updateAction(this._DUPLICATE_ACTION_ID,{enabled:t&&i&&!e})},_isCodeRange:function(){if(this._cursorController.hasSelection()){var e=this._cursorController.getSelection()[0],t=(e=p.trimTrailingLineBreak(e)).getStartPosition().getNode(),i=e.getEndPosition().getNode();return r.isCodeRange(t,i)}var n=this._getCursor().getCursorPosition().getLine();return r.isCodeLine(this._internalDocument,n-1,!0)},_getCursor:function(){return this._cursorController.getCursors()[0]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3716)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.editortabservice","rtc.settings.service"]}},createInstance:function(e,t){return new n(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{_INSERT_SPACES_PREFERENCE:"matlab.editor.tab.InsertSpaces",_TAB_SIZE_PREFERENCE:"matlab.editor.tab.TabSize",_INDENT_SIZE_PREFERENCE:"matlab.editor.tab.IndentSize",_EMACS_STYLE_PREFERENCE:"matlab.editor.tab.EmacsStyle",constructor:function(e,t){this._editorTabService=e,this._rtcSettingService=t,this._registerSettings()},_registerSettings:function(){var e=this._editorTabService.DEFAULT_TAB_KEY_INSERTS_SPACES,t=this._editorTabService.DEFAULT_TAB_SIZE,i=this._editorTabService.DEFAULT_INDENT_SIZE,n=this._editorTabService.DEFAULT_EMACS_STYLE;this._onInsertSpacesSettingChanged(e),this._onTabSizeSettingChanged(t),this._onIndentSizeSettingChanged(i),this._onEmacsStyleSettingChanged(n),this._rtcSettingService.getSetting(this._INSERT_SPACES_PREFERENCE).then(function(e){this._onInsertSpacesSettingChanged(e)}.bind(this),(function(){})),this._rtcSettingService.getSetting(this._TAB_SIZE_PREFERENCE).then(function(e){this._onTabSizeSettingChanged(e)}.bind(this),(function(){})),this._rtcSettingService.getSetting(this._INDENT_SIZE_PREFERENCE).then(function(e){this._onIndentSizeSettingChanged(e)}.bind(this),(function(){})),this._rtcSettingService.getSetting(this._EMACS_STYLE_PREFERENCE).then(function(e){this._onEmacsStyleSettingChanged(e)}.bind(this),(function(){})),this.own(this._rtcSettingService.listenToSettingChange(this._INSERT_SPACES_PREFERENCE,this._onInsertSpacesSettingChanged.bind(this))),this.own(this._rtcSettingService.listenToSettingChange(this._TAB_SIZE_PREFERENCE,this._onTabSizeSettingChanged.bind(this))),this.own(this._rtcSettingService.listenToSettingChange(this._INDENT_SIZE_PREFERENCE,this._onIndentSizeSettingChanged.bind(this))),this.own(this._rtcSettingService.listenToSettingChange(this._EMACS_STYLE_PREFERENCE,this._onEmacsStyleSettingChanged.bind(this)))},_onInsertSpacesSettingChanged:function(e){this._editorTabService.setTabKeyInsertSpacesFlag(e)},_onTabSizeSettingChanged:function(e){this._editorTabService.setTabSize(e)},_onIndentSizeSettingChanged:function(e){this._editorTabService.setIndentSize(e)},_onEmacsStyleSettingChanged:function(e){this._editorTabService.setEmacsStyleFlag(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(312),i(210),i(211),i(213),i(206),i(203),i(204),i(253),i(207),i(281),i(208),i(275),i(1911),i(3718),i(437),i(373),i(334),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return r(l,{_READY_MESSAGE:"",_BUSY_MESSAGE:s.scriptIsBusy,_BUSY_NO_CLICK_MESSAGE:s.scriptIsBusyNoClick,_PAUSED_MESSAGE:s.scriptIsPaused,_PAUSED_NO_CLICK_MESSAGE:s.scriptIsPausedNoClick,_READY_STATE:"ready",_SCROLL_PERCENT:33,_SPINNER_SIZE:12,_DEFAULT_HEIGHT:20,_ANIMATION_LENGTH:1e3,constructor:function(e,t,i,n,o,r,a,s,l,c,d,h,p,f,g){this._cursor=e,this._stateHandler=t,this._internalDocument=i,this._focusService=n,this._rtcDomNode=o,this._margin=r,this._view=a,this._preferences=s,this._backingStore=l,this._lineNumberTracker=c,this._cursorController=d,this._executionDataManager=h,this._contributors=p||[],this._debugServices=u.getInstance(),this._externalViewDomnode=f,this._isPrimaryView=g,this._height=this._DEFAULT_HEIGHT,this._handles=[],this.enable()},enable:function(){!this._isEnabled&&this._shouldBeEnabled()&&(this._isEnabled=!0,this._addListeners(),this._indicator=null,this._isPaused=!1,this._createBusyIndicator(),this._setMarginPositioning(),this._busySpinner=new p({size:this._SPINNER_SIZE,animationLength:this._ANIMATION_LENGTH,frameRate:h.getAnimationFrameRate(this._preferences)}),this._tooltip=new e({class:f.TOOLTIP_CLASS,connectId:[this._indicator],label:f.createUnfocusableTooltipTextHTML(this._READY_MESSAGE)}),this._currentIndicator=this._READY_STATE,this._clickHandle=null,i.place(this._indicator,this._externalViewDomnode,"last"))},_shouldBeEnabled:function(){return!1!==this._isPrimaryView},disable:function(){this._isEnabled&&(this._isEnabled=!1,this._tearDown())},setHeight:function(e){this._height=null!==e?e:this._DEFAULT_HEIGHT,n.set(this._indicator,{height:this._height+"px"})},_addListeners:function(){this._handles=[d.after(this._stateHandler,"onStateChanged",this._stateChangeListener.bind(this),!0),d.after(this._margin,"onResize",this._setMarginPositioning.bind(this)),d.after(this._view,"onViewUpdated",this._handleViewUpdated.bind(this),!0),d.after(this._executionDataManager,"onDataUpdate",this._handleDataUpdate.bind(this),!0),d.after(this._debugServices,"onDBStop",this._handleDBStop.bind(this),!0),d.after(this._debugServices,"onDBCont",this._handleDBCont.bind(this)),d.after(this._internalDocument,"onDocumentReset",this._handleDocumentReset.bind(this))],this._contributors.forEach((function(e){this._handles.push(d.after(e,"onUpdate",this._updateWithContributor.bind(this,e)))}),this)},_removeListeners:function(){this._handles.forEach((function(e){e.remove()})),this._handles=[]},_tearDown:function(){this._removeListeners(),this._destroyPausePosition(),this._destroyCurrentClickPosition(),this._tooltip&&this._tooltip.destroy(),this._removeClickHandle(),this._indicator&&i.destroy(this._indicator)},_createBusyIndicator:function(){this._indicator=i.create("div",{className:"busyHolder"}),this._holder=i.create("div",{className:"progressHolder"}),i.place(this._holder,this._indicator)},destroy:function(){this.inherited(arguments),this._tearDown()},_stateChangeListener:function(e){switch(e){case this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED:this._handleEvalInitialized();break;case this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE:this._handleEvalCompleted()}},_handleDocumentReset:function(){this._handleEvalCompleted()},_handleEvalInitialized:function(){this._clearStatus(),t.add(this._indicator,"busy"),this._tooltip.label=f.createUnfocusableTooltipTextHTML(this._BUSY_NO_CLICK_MESSAGE),this._startAnimation()},_handleEvalCompleted:function(){this._busySpinner.remove(),this._tooltip.close(),this._isPaused=!1,this._destroyPausePosition(),this._destroyCurrentClickPosition();var e=this._findContributorWithContribution();e?this._updateWithContributor(e):this._ready()},_clearStatus:function(){this._busySpinner.remove(),t.remove(this._indicator),t.add(this._indicator,"busyHolder"),this._holder.innerHTML=""},isActive:function(){return""!==this._holder.innerHTML},_handleDataUpdate:function(e,t){this._updateBusyLine(t-1)},_updateBusyLine:function(e){if(!this._isPaused){this._destroyPausePosition();var t=null===this._clickHandle;this._setClickPosition(e),t&&(this._tooltip.label=f.createUnfocusableTooltipTextHTML(this._BUSY_MESSAGE))}},_handleDBStop:function(e,t){if(this._isPaused=!0,this._stateHandler.isRunning()&&!this._stateHandler.isRunningRequestInvalid()&&(this._busySpinner.pause(),this._tooltip.label=f.createUnfocusableTooltipTextHTML(this._PAUSED_MESSAGE),c.accountForPFilesAndCompareToBackingStore(this._backingStore,e))){if(0===t)return this._tooltip.label=f.createUnfocusableTooltipTextHTML(this._PAUSED_NO_CLICK_MESSAGE),this._destroyPausePosition(),void this._removeClickHandle();t=Math.abs(t),t-=1,this._destroyPausePosition(),this._pausePosition=this._lineNumberTracker.createPositionFromOldLineNumber(t),this._removeClickHandle(),this._createClickHandle(this._pausePosition)}},_handleDBCont:function(){this._isPaused=!1,this._stateHandler.isRunningRequestInvalid()||this._stateHandler.isRunning()&&this._startAnimation()},_destroyPausePosition:function(){this._pausePosition&&(this._pausePosition.destroy(),this._pausePosition=null)},_destroyCurrentClickPosition:function(){this._currentClickPosition&&(this._currentClickPosition.destroy(),this._currentClickPosition=null)},_setClickPosition:function(e){this._removeClickHandle(),this._destroyCurrentClickPosition(),this._currentClickPosition=this._lineNumberTracker.createPositionFromOldLineNumber(e),this._createClickHandle(this._currentClickPosition)},_startAnimation:function(){this._busySpinner.isActive()||(this._holder.innerHTML="",this._busySpinner.placeAt(this._holder),this._busySpinner.startup())},_ready:function(){this._currentIndicator=this._READY_STATE,t.remove(this._indicator,"busy"),this._tooltip.label=f.createUnfocusableTooltipTextHTML(this._READY_MESSAGE),this._removeClickHandle()},_createClickHandle:function(e){this._clickHandle=o(this._indicator,"click",a.hitch(this,"_clickMethod",e,!0))},_clickMethod:function(e,t){var i=e.getNode();if(i){this._cursorController.clearSelection();var n=e.getLineColumn().line;(t||n!==this._cursor.getLineColumn().line)&&this._cursor.setPosition(i,0,!1),this._view.scrollNearestVisibleLineToPercent(n,this._SCROLL_PERCENT),this._focusService.setFocus()}},_removeClickHandle:function(){this._clickHandle&&(this._clickHandle.remove(),this._clickHandle=null)},setState:function(e){this._clearStatus(),this._currentIndicator=this._READY_STATE,this._tooltip.label=f.createUnfocusableTooltipTextHTML(this._READY_MESSAGE);var t=this._findContributorOfType(e);t&&this._updateWithContributor(t)},_updateWithContributor:function(e){this._busySpinner.isActive()||(this._removeClickHandle(),e.hasContribution()?this._populateDivForContributor(e):this._currentIndicator===e.getContributorType()&&this._clearStatus())},_populateDivForContributor:function(e){var i=e.getPosition();i?(this._clearStatus(),this._currentIndicator=e.getContributorType(),t.add(this._indicator,e.getDomClass()),this._holder.innerHTML=e.getIcon(),t.remove(this._indicator,"busy"),this._tooltip.label=f.createUnfocusableTooltipTextHTML(e.getTooltipText()),this._createClickHandle(i)):_.error("Ready busy indicator attempted update but can't due to other errors")},getState:function(){return this._currentIndicator},_setMarginPositioning:function(){var e=parseFloat(this._margin.lineMargin.style.width);n.set(this._indicator,{width:e+"px"}),this.setHeight(this._height)},_handleViewUpdated:function(e){if(g.hasOffsetHeightEvent(e)){var t=0;if(m.isDescendant(this._margin.lineMargin,this._rtcDomNode))t=this._margin.lineMargin.getBoundingClientRect().top-this._rtcDomNode.getBoundingClientRect().top,t=Math.max(t,0);this._indicator.style.top=t+"px"}},_findContributorOfType:function(e){return this._findContributor((function(t){return e===t.getContributorType()}))},_findContributorWithContribution:function(){return this._findContributor((function(e){return e.hasContribution()}))},_findContributor:function(e){var t=null;return this._contributors.some((function(i){return!!e.call(this,i)&&(t=i,!0)}),this),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{_SVG_NAMESPACE:"http://www.w3.org/2000/svg",_ONE_SECOND:1e3,constructor:function(e){e=e||{},this.size=e.size||24,this.frameRate=e.frameRate||30,this.animationLength=e.animationLength||1e3,this._reset(),this._initializeSizing(),this._createSpinner()},destroy:function(){this.remove(),this._reset()},isActive:function(){return null!==this._spinnerTimer},placeAt:function(e){this._attachPoint=e,this._attachPoint.appendChild(this._spinner)},remove:function(){this.stop(),this._attachPoint&&this._spinner.parentNode===this._attachPoint&&(this._attachPoint.removeChild(this._spinner),this._attachPoint=null)},startup:function(){if(this._attachPoint){var e=this._ONE_SECOND/this.frameRate;this._startTime=(new Date).getTime(),this._spinnerTimer=setInterval(t.hitch(this,"_processFrame"),e)}},stop:function(){clearInterval(this._spinnerTimer),this._spinnerTimer=null},pause:function(){this.stop(),this._renderPercentage(0)},_reset:function(){this._spinner=null,this._spinnerTimer=null,this._attachPoint=null,this._startTime=0},_initializeSizing:function(){this._centerX=this.size/2,this._centerY=this.size/2,this._width=this.size/6,this._radius=(this.size-this._width)/2,this._circumference=2*Math.PI*this._radius,this._rotationalOffset=.25*this._circumference},_createSpinner:function(){this._spinner=document.createElementNS(this._SVG_NAMESPACE,"svg"),this._spinner.setAttribute("height",this.size+"px"),this._spinner.setAttribute("width",this.size+"px");var e=this._createCircle();e.setAttribute("class","donutGutter"),this._spinner.appendChild(e),this._animatedElement=this._createCircle(),this._animatedElement.setAttribute("class","donutProgress"),this._spinner.appendChild(this._animatedElement)},_createCircle:function(){var e=document.createElementNS(this._SVG_NAMESPACE,"circle");return e.setAttribute("r",this._radius),e.setAttribute("cx",this._centerX),e.setAttribute("cy",this._centerY),e.setAttribute("style","stroke-width: "+this._width+"px;"),e},_processFrame:function(){var e=this._getCurrentPercent(this._startTime,this.animationLength);this._renderPercentage(e)},_renderPercentage:function(e){var t=this._getHeadPercent(e),i=this._getTailPercent(e),n=this._getStrokeLength(t,i,this._circumference),o=this._getStrokeGap(t,i,this._circumference),r=this._getStrokeStart(i,this._circumference);this._animatedElement.style["stroke-dasharray"]=n+", "+o,this._animatedElement.style["stroke-dashoffset"]=this._rotationalOffset-r},_getCurrentPercent:function(e,t){return((new Date).getTime()-e)%t/t},_getHeadPercent:function(e){var t=1+Math.pow(e/702664100,.2632525);return e<=.75?228.9139+-228.91373830770002/t:1},_getTailPercent:function(e){var t=1+Math.pow(e/.6602402,7.174857);return e>=.25?1.050912+-1.0519016562/t:0},_getStrokeLength:function(e,t,i){return(e-t)*i},_getStrokeGap:function(e,t,i){return(1-(e-t))*i},_getStrokeStart:function(e,t){return e*t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1912)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},priority:function(){return-1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3721),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:[]}},createInstance:function(){return new t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{notifyExportStart:function(){this.onExportStart()},onExportStart:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3723)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.cursorcontroller","rtc.folding.foldingcontroller","rtc.folding.foldingmodel","rtc.keyhandler"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(251)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_FOLD_CURRENT_BLOCK:n.CODE_FOLDING.FOLD_CURRENT_BLOCK.Action,_UNFOLD_CURRENT_BLOCK:n.CODE_FOLDING.UNFOLD_CURRENT_BLOCK.Action,_FOLD_ALL:n.CODE_FOLDING.FOLD_ALL.Action,_UNFOLD_ALL:n.CODE_FOLDING.UNFOLD_ALL.Action,constructor:function(e,i,n,o,r){this._actionService=e,this._cursorController=i,this._foldingController=n,this._foldingModel=o,this._keyHandler=r,this._actionService.loadActions(this._getActions()),this._addAdditionalKeyBindings(),this.own(t.after(this._cursorController,"onUpdate",this._updateActions.bind(this))),this.own(t.after(this._foldingModel,"onCandidatesAdded",this._updateActions.bind(this))),this.own(t.after(this._foldingModel,"onCandidatesRemoved",this._updateActions.bind(this))),this.own(t.after(this._foldingController,"onCandidatesFolded",this._updateActions.bind(this))),this.own(t.after(this._foldingController,"onCandidatesUnfolded",this._updateActions.bind(this)))},_getActions:function(){return[{id:this._FOLD_CURRENT_BLOCK,enabled:!0,key:"ctrl_.",callback:this._actionEnabledWrapper.bind(this,this._FOLD_CURRENT_BLOCK,this._collapseCurrentBlock.bind(this))},{id:this._UNFOLD_CURRENT_BLOCK,enabled:!0,key:"ctrl_shift_.",callback:this._actionEnabledWrapper.bind(this,this._UNFOLD_CURRENT_BLOCK,this._expandCurrentBlock.bind(this))},{id:this._FOLD_ALL,enabled:!0,key:"ctrl_,",callback:this._actionEnabledWrapper.bind(this,this._FOLD_ALL,this._collapseAll.bind(this))},{id:this._UNFOLD_ALL,enabled:!0,key:"ctrl_shift_,",callback:this._actionEnabledWrapper.bind(this,this._UNFOLD_ALL,this._expandAll.bind(this))}]},_addAdditionalKeyBindings:function(){this._keyHandler.addBinding({platformKey:{mac:"meta_."}},this._FOLD_CURRENT_BLOCK),this._keyHandler.addBinding({platformKey:{mac:"meta_shift_."}},this._UNFOLD_CURRENT_BLOCK)},_actionEnabledWrapper:function(e,t){return!!this._actionService.getAction(e).enabled&&t()},_updateActions:function(){const e=this._foldingModel.hasFoldCandidates();this._actionService.updateAction(this._FOLD_ALL,{enabled:e}),this._actionService.updateAction(this._UNFOLD_ALL,{enabled:e});const t=this._cursorController.hasMultipleCursors();this._actionService.updateAction(this._FOLD_CURRENT_BLOCK,{enabled:e&&!t}),this._actionService.updateAction(this._UNFOLD_CURRENT_BLOCK,{enabled:e&&!t})},_collapseCurrentBlock:function(){const e=this._getCandidateAtCursor();return!!e&&(this._foldingController.fold(e),!0)},_expandCurrentBlock:function(){const e=this._getCandidateAtCursor();return!!e&&(this._foldingController.unfold(e),!0)},_getCandidateAtCursor:function(){const e=this._cursorController.getCursors()[0].getCursorPosition();return this._foldingModel.getFoldCandidateForDocumentLine(e.getLine()-1)},_collapseAll:function(){return this._foldingController.foldAll()},_expandAll:function(){return this._foldingController.unfoldAll()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3725)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.internaldocument","rtc.view","rtc.folding.foldingmodel","rtc.view.hidden.hiddennodeservice","rtc.document"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(282),i(469),i(237),i(313)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(n,{_ONSCREEN_LOWER_BOUND:5,_ONSCREEN_UPPER_BOUND:50,_SCROLL_TO_PERCENT:10,constructor:function(e,t,n,o,r,a){this._cursorController=e,this._internalDocument=t,this._view=n,this._foldingModel=o,this._hiddenNodeService=r.createHandle(),this.own(i.after(this._cursorController,"onUpdate",this._handleCursorChanged.bind(this))),this.own(i.after(this._internalDocument,"onNodeChange",this._queueInsertedNodes.bind(this),!0)),this.own(i.after(this._internalDocument,"onDocumentChanged",this._flushInsertedNodes.bind(this),!0)),this.own(i.after(a,"onDirectedDeletion",this._handleDeletion.bind(this),!0)),this.own(i.after(this._foldingModel,"onCandidatesRemoved",this._handleCandidatesRemoved.bind(this),!0)),this._currentlyFolded=[],this._queuedInsertedNodes=[]},fold:function(e){var t=[e];this.foldCandidates(t)},foldAll:function(){var e=this._foldingModel.getAllFoldCandidates();return this.foldCandidates(e)},foldCandidates:function(e){var t,i=!1,n=o.createSet();return e.forEach((function(e){e.isFolded()||(this._setFolded(e),i=!0,this._addNodesForCandidate(e,n),!t&&this._isCursorInsideFoldCandidate(e)&&(t=e.getStartPosition()))}),this),n.size>0&&this._hiddenNodeService.hideAll(n),t&&this._setPositionAndScrollIntoView(t),this.onCandidatesFolded(e),i},_setPositionAndScrollIntoView:function(e){this._cursorController.suspendUpdates(),this._cursorController.setPositions([e]),this._cursorController.emitUpdate(!0,!1),this._cursorController.activateUpdates()},onCandidatesFolded:function(e){},unfold:function(e){var t=this._foldingModel.getCandidateLineage(e);this._unfoldCandidates(t,!1)},unfoldAll:function(){var e=this._foldingModel.getAllFoldCandidates();return this._unfoldCandidates(e,!0)},_unfoldCandidates:function(e,t){var i=!1,n=o.createSet();return e.forEach((function(e){e.isFolded()&&(this._setUnfolded(e),i=!0,this._addNodesForCandidate(e,n),t||this._getChildCandidates(e,this._isCandidateFolded).forEach((function(e){this._removeNodesForCandidate(e,n)}),this))}),this),n.size>0&&this._hiddenNodeService.showAll(n),this.onCandidatesUnfolded(e),i},onCandidatesUnfolded:function(e){},_isCandidateFolded:function(e){return e.isFolded()},_setUnfolded:function(e){e.setUnfolded(),this._currentlyFolded.splice(this._currentlyFolded.indexOf(e),1)},_setFolded:function(e){e.setFolded(),this._currentlyFolded.push(e)},_addNodesForCandidate:function(e,t){for(var i=e.getFoldableNodes(),n=0;n<i.length;n+=1)t.add(i[n])},_removeNodesForCandidate:function(e,t){for(var i=e.getFoldableNodes(),n=0;n<i.length;n+=1)t.delete(i[n])},toggle:function(e){e.isFolded()?this.unfold(e):this.fold(e)},_handleCandidatesRemoved:function(e){var t=[];e.forEach((function(e){if(e.isFolded()){var i=this._foldingModel.getCandidateLineage(e);i.splice(i.indexOf(e),1),i.some((function(e){return e.isFolded()}))?this._setUnfolded(e):t.push(e)}}),this),t.length>0&&this._unfoldCandidates(t,!1)},_handleCursorChanged:function(){var e=this._cursorController.getCursors()[0],t=e.getCursorPosition(),i=this._getInnermostFoldedCandidateForPosition(t),n=!1;i&&(n=!a.isAtEndOfFile(t)||!!e.hasSelection()&&s.isPositionInRange(e.anchor,i.getHiddenRange())),n&&(this.unfold(i),this._scrollCandidateIntoView(i))},_getInnermostFoldedCandidateForPosition:function(e){if(!this._currentlyFolded.some(t=>this._isPositionFoldedInsideCandidate(e,t)))return null;const t=e.getLine()-1;let i=this._foldingModel.getFoldCandidateForDocumentLine(t);for(;i;){if(this._isPositionFoldedInsideCandidate(e,i))return i;i=this._foldingModel.getOuterFoldCandidate(i)}return null},_handleDeletion:function(e,t){var i=[];if(e>0&&t?i=this._currentlyFolded.filter((function(e){var i=e.getHiddenRange();return i&&t.endPosition.isEqualTo(i.getStartPosition())}),this):e<0&&t&&(i=this._currentlyFolded.filter((function(e){var i=e.getHiddenRange();return i&&t.startPosition.isEqualTo(i.getEndPosition())}),this)),i.length>0)return this.unfold(i[0]),!0},_queueInsertedNodes:function(e){if(e.type===r.INSERT_NODE)for(var t=e.newNodes,i=t.length,n=0;n<i;n++)this._queuedInsertedNodes.push(t[n])},_flushInsertedNodes:function(e){e.some((function(e){return e.isUndoRedo}))?this._handleUndoRedoInsertion():this._handleInsertion(),this._queuedInsertedNodes=[]},_handleInsertion:function(){var e=this._currentlyFolded.filter((function(e){return this._queuedInsertedNodes.some((function(t){return e.containsNode(t)}))}),this);e.length>0&&this._refoldCandidates(e)},_handleUndoRedoInsertion:function(){var e=this._queuedInsertedNodes.filter((function(e){return!this._currentlyFolded.some((function(t){return t.containsNode(e)}))}),this);this._hiddenNodeService.showAll(e)},_refoldCandidates:function(e){var t=o.createSet();e.forEach((function(e){this._addNodesForCandidate(e,t)}),this),t.size>0&&this._hiddenNodeService.hideAll(t)},_isCursorInsideFoldCandidate:function(e){var t=e.getHiddenRange();return!!t&&this._cursorController.getCursors().some((function(e){return s.isPositionInRange(e.getCursorPosition(),t)}),this)},_isPositionFoldedInsideCandidate:function(e,t){return t.isFolded()&&t.isRangeValid()&&s.isPositionInRange(e,t.getHiddenRange())},_getChildCandidates:function(e,t){var i=e.getStartLine(),n=e.getEndLine();return this._foldingModel.getAllFoldCandidates().filter((function(o){if(e!==o&&(!t||t(o)))return o.getStartLine()>=i&&o.getEndLine()<=n}))},_scrollCandidateIntoView:function(e){var t=e.getStartLine();this._isLineInVisualBounds(t)||this._cursorController.isActionInProgress()||this._view.scrollLineToPercent(t+1,this._SCROLL_TO_PERCENT)},_isLineInVisualBounds:function(e){var t=this._view.getLinePercentScrolled(e+1,!0);return t>this._ONSCREEN_LOWER_BOUND&&t<this._ONSCREEN_UPPER_BOUND}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3727)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(915),i(1913),i(1389),i(3728)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i,r],{constructor:function(e){this._foldCandidates=[],this._lookupCache=null},addFoldCandidates:function(e){e.forEach((function(e){t.assert(e.isInstanceOf(o),"The given fold candidate must inherit from AbstractFoldCandidate."),this._foldCandidates.push(e)}),this),this._lookupCache=null,this.onCandidatesAdded(e)},removeFoldCandidates:function(e){e.forEach((function(e){this._foldCandidates.splice(this._foldCandidates.indexOf(e),1)}),this),this._lookupCache=null,this.onCandidatesRemoved(e),e.forEach((function(e){e.destroy()}),this)},onCandidatesAdded:function(e){},onCandidatesRemoved:function(e){},getFoldCandidateForDocumentLine:function(e){return this._ensureBuilt(),this._lookupCache.find(e)},getFoldCandidatesForDocumentLines:function(e){var t=[];return e.forEach((function(e){var i=this.getFoldCandidateForDocumentLine(e);!i||t.indexOf(i)>=0||t.push(i)}),this),t},getAllFoldCandidates:function(){return this._foldCandidates.filter((function(e){return e.isRangeValid()}))},hasFoldCandidates:function(){return this._foldCandidates.length>0},getCandidateLineage:function(e){for(var t=[];e;)t.push(e),e=this.getOuterFoldCandidate(e);return t},getOuterFoldCandidate:function(e){for(var t=e.getStartLine(),i=null,n=t-1;n>=0;n--){var o=this.getFoldCandidateForDocumentLine(n);if(this._isLineNumberInFoldCandidate(t,o)){i=o;break}o&&(n=o.getStartLine())}return i},_ensureBuilt:function(){this.inherited(arguments),this._lookupCache||this._build()},_build:function(){this._lookupCache=new n(this.getAllFoldCandidates())},_isLineNumberInFoldCandidate:function(e,t){return!!t&&(e>=t.getStartLine()&&e<=t.getEndLine())},getModifiedLineNumber:function(e){let t=this.getFoldCandidateForDocumentLine(e);if(!t)return e;let i=this.getCandidateLineage(t);for(;i.length;)if(t=i.pop(),t.isFolded())return t.getStartLine();return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{getModifiedLineNumber:function(e){return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1390)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.actionservice","rtc.cursor","rtc.internaldocument","rtc.document.info","rtc.export.html"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(572)],o=i.dj.d(n,(function(e,t){var i=t.prototype.onMove;return e("dojo.dnd.TimedMoveable",t,{timeout:40,constructor:function(e,t){t||(t={}),t.timeout&&"number"==typeof t.timeout&&t.timeout>=0&&(this.timeout=t.timeout)},onMoveStop:function(e){e._timer&&(clearTimeout(e._timer),i.call(this,e,e._leftTop)),t.prototype.onMoveStop.apply(this,arguments)},onMove:function(e,t){if(e._leftTop=t,!e._timer){var n=this;e._timer=setTimeout((function(){e._timer=null,i.call(n,e,e._leftTop)}),this.timeout)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(228),i(213),i(206),i(279),i(328),i(216),i(867),i(541),i(31)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=e("dijit.DialogUnderlay",[s,l],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' tabIndex='-1' data-dojo-attach-point='node'></div></div>",dialogId:"",class:"",_modalConnects:[],_setDialogIdAttr:function(e){n.set(this.node,"id",e+"_underlay"),this._set("dialogId",e)},_setClassAttr:function(e){this.node.className="dijitDialogUnderlay "+e,this._set("class",e)},postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode),this.own(r(this.domNode,"keydown",t.hitch(this,"_onKeyDown"))),this.inherited(arguments)},layout:function(){var e=this.node.style,t=this.domNode.style;t.display="none";var i=a.getBox(this.ownerDocument);t.top=i.t+"px",t.left=i.l+"px",e.width=i.w+"px",e.height=i.h+"px",t.display="block"},show:function(){this.domNode.style.display="block",this.open=!0,this.layout(),this.bgIframe=new c(this.domNode);var e=a.get(this.ownerDocument);this._modalConnects=[d.on("resize",t.hitch(this,"layout")),r(e,"scroll",t.hitch(this,"layout"))]},hide:function(){for(this.bgIframe.destroy(),delete this.bgIframe,this.domNode.style.display="none";this._modalConnects.length;)this._modalConnects.pop().remove();this.open=!1},destroy:function(){for(;this._modalConnects.length;)this._modalConnects.pop().remove();this.inherited(arguments)},_onKeyDown:function(){}});return h.show=function(e,t){var i=h._singleton;!i||i._destroyed?i=u._underlay=h._singleton=new h(e):e&&i.set(e),o.set(i.domNode,"zIndex",t),i.open||i.show()},h.hide=function(){var e=h._singleton;e&&!e._destroyed&&e.hide()},h}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijitDialog" role="dialog" aria-labelledby="${id}_title">\n\t<div data-dojo-attach-point="titleBar" class="dijitDialogTitleBar">\n\t\t<span data-dojo-attach-point="titleNode" class="dijitDialogTitle" id="${id}_title"\n\t\t\t\trole="heading" level="1"></span>\n\t\t<span data-dojo-attach-point="closeButtonNode" class="dijitDialogCloseIcon" data-dojo-attach-event="ondijitclick: onCancel" title="${buttonCancel}" role="button" tabindex="-1">\n\t\t\t<span data-dojo-attach-point="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div data-dojo-attach-point="containerNode" class="dijitDialogPaneContent"></div>\n\t${!actionBarTemplate}\n</div>\n\n'},function(e,t,i){var n,o;n=[i(203),i(205),i(3734)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.print"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{_PRINT_ACTION_ID:"rtc_print",constructor:function(e,i){e.loadActions([{id:this._PRINT_ACTION_ID,enabled:!0,key:"ctrl_p",platformKey:{mac:"meta_p"},callback:t.hitch(i,"print")}])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3736)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.id"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(251),i(211),i(262),i(273),i(787),i(243),i(258),i(286),i(308),i(233),i(232),i(297),i(363),i(219),i(493),i(221),i(212),i(3737)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){var y="ExportFolderFileChooserCommand",C=_("windows")?"\\":"/";return h.registerResponseHandler("FEvalResponse:"+y,(function(e,t){e[0].isError||t.resolve(e)}),this),e(null,{constructor:function(e,t){this._actionService=e,e.loadActions(this._createExportFolderAction()),this._rtcId=t,this._mvm=f.getInstance(),this._progressChannel="/ExportFolderProgressMessage"+this._rtcId,g.subscribe(this._progressChannel,"_updateProgress",this),this._uiElementsToDisable=[]},_createExportFolderAction:function(){return[{id:i.EXPORT_FOLDER,enabled:!0,callback:t.hitch(this,"_getPwdAndOpenDialog")}]},_createFormatOptionsElement:function(e){var t=document.createElement("div");n.place(t,e);var i=document.createElement("p");i.textContent=b.labelFormats,n.place(i,t);var o=new c({items:[{label:"PDF",value:"pdf"},{label:"Word",value:"docx"},{label:"HTML",value:"html"},{label:"LaTeX",value:"tex"}],value:"html"});return o.placeAt(t),o.startup(),o},_createFolderElements:function(e,t,i,o,r){var a=document.createElement("div");n.place(a,e);var c=document.createElement("p");c.textContent=o,n.place(c,a);var d=new l({placeholder:r,value:t});n.place(d.domNode,a),d.startup();var u=new s({icon:"open_16"});return n.place(u.domNode,a),u.startup(),u.on("click",(function(){i(d)})),{textField:d,button:u}},_createOptionsElements:function(e){var t=document.createElement("div");t.className="CheckBoxMenu",n.place(t,e);var i=new d({text:b.overwriteLabel,checked:!0});i.startup(),n.place(i.domNode,t),window.tooltipObj_overWriteTooltip=m.createTooltip({referenceNode:i.domNode,content:{text:b.overwriteTooltip}});var o=new d({text:b.copyFilesLabel,checked:!1});return o.startup(),n.place(o.domNode,t),window.tooltipObj_copyNonMlxFilesTooltip=m.createTooltip({referenceNode:o.domNode,content:{text:b.copyFilesTooltip}}),{overwriteCheckBox:i,copyCheckBox:o}},_createDialog:function(){this._contentArea=document.createElement("div"),this._contentArea.className="contentArea",this._combobox=this._createFormatOptionsElement(this._contentArea),this._uiElementsToDisable.push(this._combobox);var e=this._createFolderElements(this._contentArea,this._folderPath,this._openFileChooser.bind(this),b.labelSource,b.placeholderSource);this._sourcePathTextField=e.textField,this._uiElementsToDisable.push(e.textField),this._uiElementsToDisable.push(e.button);var i=this._createFolderElements(this._contentArea,this._folderPath+b.exportFolder+this._getFileSeparator(this._folderPath),this._openFileChooser.bind(this),b.labelTarget,b.placeholderTarget);this._targetPathTextField=i.textField,this._uiElementsToDisable.push(i.textField),this._uiElementsToDisable.push(i.button);var n=this._createOptionsElements(this._contentArea);this._overwriteCheckBox=n.overwriteCheckBox,this._copyNonMlxFilesCheckBox=n.copyCheckBox,this._uiElementsToDisable.push(n.overwriteCheckBox),this._uiElementsToDisable.push(n.copyCheckBox),this._dialog=o.createDialog({title:b.title,className:"rtcMlxExportFolderDialog",dialogType:o.MODAL,closeOnEscape:!1,closable:!0,draggable:!0,resizable:!0,"data-test-id":"dialog",content:this._contentArea,buttons:[{type:r.TYPE.DO_IT,label:"Export"},r.CANCEL],defaultActionButton:r.CANCEL}),this._dialogClosed=!1,this._dialogCanceled=!1,this._dialog.domNode.style.setProperty("max-height","266px"),this._dialog.addButtonEventListener(r.TYPE.DO_IT,t.hitch(this,"_runExport"),!1),this._dialog.addButtonEventListener(r.CANCEL,t.hitch(this,"_cancel",!1),!1),this._dialog.on("close",function(e){this._dialogClosed=!0,this._dialogCanceled||this._cancel(!1)}.bind(this))},_openFileChooser:function(e){var t=new v;h.sendMessage({FEval:{function:"uigetdir",arguments:[],nargout:1,priority:1}},t,y),t.then(function(t){1===t.length&&t[0].results[0]&&(e.value=t[0].results[0],e.value+=this._getFileSeparator(e.value),e.setValueInDom(e.value))}.bind(this))},_updateProgress:function(e){var t=e.data;"done"===t?(this._progress.step=this._progress.size,this._progress.filename=""):this._progress.size?(this._progress.step=parseInt(t[0])-1,this._progress.filename=t[2]):(this._progress.size=parseInt(e.data),this._progress.step=0,this._progress.filename="");var i=100;this._progress.size>0&&(i=Math.round(this._progress.step/this._progress.size*100)),this._progressBar.set("value",i);var n=u.nameFromPath(this._progress.filename),o=n.length>15?"..."+n.substring(n.length-12):n,r=this._progress.step!==this._progress.size?this._progress.step+1:this._progress.step;this._progressStatus.textContent=b.processingFile+r+"/"+this._progress.size+" "+o},_showProgressBar:function(e,t){e.style.setProperty("max-height","322px"),e.style.setProperty("transition","all 1s"),e.style.setProperty("height","322px");var i=document.createElement("hr");n.place(i,t);var o=document.createElement("div");o.className="progressContent",n.place(o,t);var r=document.createElement("div");r.className="mwAlertIconInfo",n.place(r,o);var s=document.createElement("div");s.className="exportProgress",n.place(s,o);var l=document.createElement("p");l.textContent=b.startExport,n.place(l,s);var c=new a({value:0});return c.placeAt(s),c.startup(),{progressBar:c,progressStatus:l,infoIcon:r}},_runExport:function(){this._progress={};var e=this._sourcePathTextField.get("value"),t=this._getFileSeparator(e);e=e.lastIndexOf(t)!==e.length-1?e+t:e;var i=this._targetPathTextField.get("value");t=this._getFileSeparator(i),i=i.lastIndexOf(t)!==i.length-1?i+t:i;var n=this._showProgressBar(this._dialog.domNode,this._contentArea,this._progressStatus);this._progressBar=n.progressBar,this._progressStatus=n.progressStatus;var o=n.infoIcon;this._dialog.disableButton(r.TYPE.DO_IT),this._disableUIElements(this._uiElementsToDisable);var a=new p({outTextCallback:null,errTextCallback:null});this._promise=this._mvm.feval("matlab.desktop.editor.export.exportFolder",0,[e,i,"exportFormat",this._combobox.get("value"),"askOverwriteExistingFiles",this._overwriteCheckBox.checked,"copySupportedFiles",this._copyNonMlxFilesCheckBox.checked,"progressChannel",this._progressChannel],a),this._promise.then(function(e){this._openFolder(i),this._dialogClosed||setTimeout(function(){this._cancel(!0)}.bind(this),3e3)}.bind(this),function(e){o.className="mwAlertIconError",this._dialog.domNode&&(this._dialog.domNode.getElementsByClassName("mwButton")[1].innerText=r.CLOSE.label,this._progressStatus.textContent=this._progressStatus.textContent.replace(b.processingFile,b.error))}.bind(this))},_openFolder:function(e){var t,i;(_("windows")||_("mac")||_("linux"))&&(_("windows")?(t="winopen",i=[e]):_("mac")?(t="system",i=["open ''"+e+"''"]):_("linux")&&(t="system",i=["xdg-open ''"+e+"''"]),h.sendMessage({FEval:{function:t,arguments:i,nargout:0,priority:1}},new v,"ExportFolderFileOpenSystem"))},_getPwdAndOpenDialog:function(){var e=this._actionService.getAction(i.EXPORT_FOLDER);if(e.enabled){this._actionService.updateAction(e.id,{enabled:!1});var t=new v;h.sendMessage({FEval:{function:"pwd",arguments:[],nargout:1,priority:1}},t,y),t.then(function(t){this._folderPath=t[0].results[0],this._folderPath+=this._getFileSeparator(this._folderPath),this._createDialog(),this._actionService.updateAction(e.id,{enabled:!0})}.bind(this),function(){this._actionService.updateAction(e.id,{enabled:!0})}.bind(this))}},_getFileSeparator:function(e){return e?e.startsWith("/")?"/":"\\":C},_disableUIElements:function(e){e.forEach((function(e){e.set("disabled",!0)}))},_cancel:function(e){this._dialogCanceled=!0,!e&&this._promise&&this._promise.cancel&&!this._promise.isRejected()&&this._promise.cancel("abort",!0),this._promise=void 0,this._dialog.close()},destroy:function(){g.unsubscribe(this._progressChannel,"_updateProgress",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3738),i(3739),i(3740),i(3741)],o=i.dj.d(n,(function(e,t){return t(e,"l10n/nls/exportFolderDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={copyFilesLabel:"サポート ファイルをコピー",copyFilesTooltip:"エクスポートされたフォルダーにサポート ファイルをコピーします。",exportFolder:"エクスポート",error:"ファイルのエラー ",labelFormats:"出力場所:",labelSource:"エクスポートするフォルダー:",labelTarget:"エクスポートされるファイルの場所:",overwriteLabel:"上書きの前に確認",overwriteTooltip:"同じ名前のファイルが存在する場合は、ファイルを上書きする前に確認します。",placeholderSource:"/path/to/source/folder",placeholderTarget:"/path/to/export/folder",processingFile:"ファイルの処理中 ",startExport:"エクスポートを開始",title:"フォルダーのファイルをエクスポート"}},function(e,t,i){e.exports={copyFilesLabel:"지원 파일 복사",copyFilesTooltip:"내보내는 폴더로 지원 파일을 복사합니다.",exportFolder:"내보내기",error:"파일에 오류가 있음 ",labelFormats:"내보낼 형식:",labelSource:"내보낼 폴더:",labelTarget:"내보낼 파일의 위치:",overwriteLabel:"덮어쓰기 전에 묻기",overwriteTooltip:"이름이 같은 파일이 있는 경우 파일을 덮어쓰기 전에 물어봅니다.",placeholderSource:"/path/to/source/folder",placeholderTarget:"/path/to/export/folder",processingFile:"파일 처리 중 ",startExport:"내보내기 시작",title:"폴더의 파일 내보내기"}},function(e,t,i){e.exports={copyFilesLabel:"复制支持文件",copyFilesTooltip:"将支持文件复制到导出的文件夹。",exportFolder:"导出",error:"文件中的错误 ",labelFormats:"导出到:",labelSource:"要导出的文件夹:",labelTarget:"导出的文件的位置:",overwriteLabel:"覆盖前询问",overwriteTooltip:"如果存在同名文件,在覆盖该文件之前询问。",placeholderSource:"/path/to/source/folder",placeholderTarget:"/path/to/export/folder",processingFile:"处理文件 ",startExport:"开始导出",title:"导出文件夹中的文件"}},function(e,t,i){e.exports={root:{copyFilesLabel:"Copy supporting files",copyFilesTooltip:"Copy supporting files to the exported folder.",exportFolder:"Export",error:"Error in file ",labelFormats:"Export to:",labelSource:"Folder to export:",labelTarget:"Location for exported files :",overwriteLabel:"Ask before overwriting",overwriteTooltip:"If a file with the same name exists, ask before overwriting the file.",placeholderSource:"/path/to/source/folder",placeholderTarget:"/path/to/export/folder",processingFile:"Processing file ",startExport:"Start export",title:"Export Files in Folder"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(3743)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.exportsettings"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){this._settingHandler=e},mixinContext:function(e,i){var n={};return this._settingHandler.forEach((function(i){var o=i.getSettings(e);t.mixin(n,o)})),t.mixin(n,i),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3745)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1916)],o=i.dj.d(n,(function(e,t){return e(t,{_KEY:"matlab.editor.export.pagesetup.",_LANDSCAPE:"Landscape",_PAPER_MARGIN:"Margins",_PAPER_ORIENTATION:"Orientation",_PAPER_SIZE:"PaperSize",_WIDTH_POINTS:{A2:1190,A3:842,A4:595,A5:420,Letter:612,Legal:612,Tabloid:792},_HEIGHT_POINTS:{A2:1684,A3:1190,A4:842,A5:595,Letter:792,Legal:1008,Tabloid:1224},getSettings:function(e){var t={},i=this.getValue(this._KEY,e,this._PAPER_ORIENTATION);i&&(t.pageOrientation=i);var n=this.getValue(this._KEY,e,this._PAPER_MARGIN);n&&4===n.length&&(t.marginLeft=n[0].fValue?n[0].fValue:n[0],t.marginTop=n[1].fValue?n[1].fValue:n[1],t.marginRight=n[2].fValue?n[2].fValue:n[2],t.marginBottom=n[3].fValue?n[3].fValue:n[3]);var o=this.getValue(this._KEY,e,this._PAPER_SIZE);return o&&(t.pageSize=o,t.pageOrientation===this._LANDSCAPE?(t.pageWidth=this._HEIGHT_POINTS[t.pageSize],t.pageHeight=this._WIDTH_POINTS[t.pageSize]):(t.pageWidth=this._WIDTH_POINTS[t.pageSize],t.pageHeight=this._HEIGHT_POINTS[t.pageSize]),t.marginLeft&&t.marginRight&&t.pageWidth&&(t.availableWidth=t.pageWidth-(t.marginLeft+t.marginRight))),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3747)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1916)],o=i.dj.d(n,(function(e,t){return e(t,{_FIGURE_FORMAT:"FigureFormat",_FIGURE_RESOLUTION:"FigureResolution",_KEY:"matlab.editor.export.",getSettings:function(e){var t={},i=this.getValue(this._KEY,e,this._FIGURE_FORMAT);i&&(t.figureFormat=i);var n=this.getValue(this._KEY,e,this._FIGURE_RESOLUTION);return n&&(t.figureResolution=n),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3749)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.export.docbookxmlwriters"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(244),i(225),i(285),i(233),i(666),i(402),i(438)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return t([s],{_XML_VERSION:'<?xml version="1.0" encoding="UTF-8"?>',_DEFAULT_NAMESPACE:' xmlns="http://www.w3.org/1999/xhtml"',_TMWBOOK_ATTRIBUTES:[{key:"xmlns",value:"http://docbook.org/ns/docbook"},{key:"xmlns:mw",value:"http://mathworks.com/namespace/tmwbook"},{key:"xmlns:xi",value:"http://www.w3.org/2001/XInclude"},{key:"xmlns:xlink",value:"http://www.w3.org/1999/xlink"},{key:"version",value:"5.0-variant tmwbook5.0"}],_AUTO_GENERATED_NOTE:"Auto-generated from published MATLAB code. DO NOT EDIT.",_REMARK_TYPE:"Live Script",_UNNUMBEREDSTEPS_ROLE:"unnumberedsteps",_SUPPORTINGFILE_ROLE:"supportingfile",_PRIMARYFILE_ROLE:"primaryfile",_DATATYPE_RAW:"Raw",_DATATYPE_BASE64:"Base64",constructor:function(e){},getFormat:function(){return"docbookxml"},_defineExportDocument:function(){return{appendElement:i.hitch(this,"_appendElement"),openWrapperElement:i.hitch(this,"_openWrapperElement"),closeWrapperElement:i.hitch(this,"_closeWrapperElement"),addToImageList:i.hitch(this,"_addToImageList"),getImageFileName:i.hitch(this,"_getImageFileName")}},_appendElement:function(e){this._content.push(e)},_openWrapperElement:function(){this._contentStack.push(this._content),this._content=[]},_closeWrapperElement:function(e){var t=this._content;e=r(e,(function(e){return n(t).then((function(t){return t.forEach((function(t){e.appendChild(t)})),e}))})),this._content=this._contentStack.pop(),this._content.push(e)},_getImageFileName:function(e,t,i){var n=0;return i?(n=this._equationCounter,this._equationCounter+=1,e+="_eq"):(n=this._imageCounter,this._imageCounter+=1,e+="_"),e+(n=n<10?"0"+n:n)+"."+t},_addToImageList:function(e){this._imageList.push(e)},_reset:function(){this.reset(),this._resetPromises=[],this._nodeExporters.forEach((function(e){var t=e.reset(this._context);void 0!==t&&this._resetPromises.push(t)}),this)},export:function(e){return this._context=e,this._reset(),n(this._resetPromises).then(function(){return this._treeWalker.traverseRange(e.range,!0),this._finalize(),this._processResults(this._context)}.bind(this))},reset:function(){this._content=[],this._contentStack=[],this._exportObject=[],this._imageList=[],this._equationCounter=1,this._imageCounter=1,this._lastImageOrFigure=null;var e=a.nameFromPath(this._context.examplePath);this._fileName=a.getFileNameNoExtension(e),this._context.exampleName=this._fileName,this._openWrapperElement()},_processResults:function(e){return n(this._content).then(function(t){return this._buildExportObject(t,e)}.bind(this))},_buildRelatedFilesElement:function(e){var t=document.createElement(l.RELATEDFILES),i=document.createElement(l.FILE);(i.setAttribute(l.FILEREF,this._fileName+".mlx"),i.setAttribute(l.ROLE,this._PRIMARYFILE_ROLE),t.appendChild(i),e.supportingFiles)&&e.supportingFiles.split(" ").forEach((function(e){var i=document.createElement(l.FILE);i.setAttribute(l.FILEREF,e),i.setAttribute(l.ROLE,this._SUPPORTINGFILE_ROLE),t.appendChild(i)}),this);return t},_buildRemarkElement:function(e){var t=document.createElement(l.REMARK);if(e.requireProducts){var i=document.createElement(l.PRODUCTNUMBER);i.textContent=e.requireProducts,t.appendChild(i)}var n=document.createElement(l.FILENAME);n.textContent=this._fileName,t.appendChild(n);var o=document.createElement(l.TOKEN);o.textContent=e.exampleComponent+"."+this._fileName,t.appendChild(o);var r=document.createElement(l.LITERAL);r.textContent="matlab:openExample('"+e.exampleComponent+"/"+this._fileName+"')",t.appendChild(r);var a=document.createElement(l.TYPE);return a.textContent=this._REMARK_TYPE,t.appendChild(a),t},_buildExportObject:function(t,i){var n=document.implementation.createDocument(null,l.CELLSCRIPTWRAPPER,null);this._TMWBOOK_ATTRIBUTES.forEach((function(e){n.documentElement.setAttribute(e.key,e.value)})),n.documentElement.appendChild(document.createComment(this._AUTO_GENERATED_NOTE));var r=document.createElement(l.ANCHOR);r.setAttribute(l.XMLID,this._fileName),n.documentElement.appendChild(r);var a=this._buildRelatedFilesElement(i);n.documentElement.appendChild(a);var s=this._buildRemarkElement(i);n.documentElement.appendChild(s);var d=document.createElement(l.CONTEXT);n.documentElement.appendChild(d);var u=document.createElement(l.PROCEDURE);c.setRole(u,this._UNNUMBEREDSTEPS_ROLE),n.documentElement.appendChild(u),t.forEach((function(e){"#text"!==e.nodeName&&u.appendChild(e)}));var h=n.getElementById(l.FIRST_TITLE);h?h.removeAttribute(l.ID):(h=document.createElement(l.TITLE)).textContent="Untitled",r.parentElement.insertBefore(h,r);var p=o("para informalfigure",u);e.forEach(p,(function(e){var t=e.parentElement;1===t.childElementCount&&(t.parentElement.insertBefore(e,t),t.parentElement.removeChild(t))}));var f=u.getElementsByTagName(l.STEP),g=[],m=1;e.forEach(f,(function(e){if(0===e.getElementsByTagName(l.TITLE).length){for(;e.children.length;){var t=e.children[0];if(c.getRole(t)===l.SHORTDESC){var n=document.createElement(l.PARA);c.setRole(n,l.SHORTDESC),n.innerText=t.textContent,s.appendChild(n)}d.appendChild(e.children[0])}g.push(e)}else e.setAttribute(l.XMLID,i.exampleName+"-"+m),m+=1})),g.forEach((function(e){u.removeChild(e)})),i.keepDisplayTextForDocid||[u,d].forEach((function(t){var i=t.getElementsByTagName(l.LINK);e.forEach(i,(function(e){e.hasAttribute(l.XLINK_ROLE)&&0!==e.getAttribute(l.XLINK_HREF).indexOf("#")&&(e.innerText="")}))})),this._imageList.forEach((function(e){e.canBeThumbnail&&(this._lastImageOrFigure=e.fileName),this._addToExportObject(e.fileName,e.base64Data,this._DATATYPE_BASE64)}),this);var _=i.customThumbnail||this._lastImageOrFigure;if(_){var v=document.createElement(l.FILE);v.setAttribute(l.FILEREF,i.imageLocation+_),a.firstChild?a.insertBefore(v,a.firstChild):a.appendChild(v)}var b=(new XMLSerializer).serializeToString(n),y=new RegExp(this._DEFAULT_NAMESPACE,"g");return b=b.replace(y,""),b=this._XML_VERSION+b,this._addToExportObject(this._fileName+".xml",b,this._DATATYPE_RAW),this._exportObject},_addToExportObject:function(e,t,i){var n={fileName:e,dataType:i||this._DATATYPE_RAW,data:t};this._exportObject.push(n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3751)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.export.xslfowriters","rtc.export.settings"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(244),i(285),i(666),i(357)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{_XML_HEAD:'<?xml version="1.0" encoding="UTF-8"?>',_PAGEMASTER_NAME:"PageMaster",_REGION_AFTER_NAME:"Footer",_PAGENUMBER_ALIGN:"center",_PAGENUMBER_FONT:"sans-serif",_PAGENUMBER_SIZE:"11pt",_INNER_MARGIN_BOTTOM:"28.35pt",_OUTER_MARGIN:"28.35pt",_FOOTER_EXTEND:"28.35pt",_POINT:"pt",constructor:function(e,t){this._content=[],this._contentStack=[],this._exportSettings=t},getFormat:function(){return"xslfo"},_defineExportDocument:function(){return{appendElement:t.hitch(this,"_appendElement"),openWrapperElement:t.hitch(this,"_openWrapperElement"),closeWrapperElement:t.hitch(this,"_closeWrapperElement")}},_reset:function(){this._content=[],this._contentStack=[],this._context=this._exportSettings.mixinContext("pdf",this._context),this.document=document.implementation.createDocument(r.FO_NAMESPACE_URL,r.ROOT,null),this.inherited(arguments)},_openWrapperElement:function(){this._contentStack.push(this._content),this._content=[]},_closeWrapperElement:function(e){var o=this._content;e=n(e,(function(e){return i(o).then(t.hitch(this,(function(t){return t.forEach((function(t){e.appendChild(t)})),e})))})),this._content=this._contentStack.pop(),this._content.push(e)},_appendElement:function(e){this._content.push(e)},_addPageSettings:function(e,t){e.pageWidth&&e.pageHeight&&(t.setAttribute("page-width",e.pageWidth+this._POINT),t.setAttribute("page-height",e.pageHeight+this._POINT)),e.marginLeft||e.marginTop||e.marginRight||e.marginBottom?(e.marginLeft&&t.setAttribute("margin-left",e.marginLeft+this._POINT),e.marginTop&&t.setAttribute("margin-top",e.marginTop+this._POINT),e.marginRight&&t.setAttribute("margin-right",e.marginRight+this._POINT),e.marginBottom&&t.setAttribute("margin-bottom",e.marginBottom+this._POINT)):t.setAttribute("margin",this._OUTER_MARGIN)},_addLayoutMaster:function(e){var t=this.document.createElement(r.LAYOUT_MASTER_SET),i=this.document.createElement(r.SIMPLE_PAGE_MASTER);i.setAttribute("master-name",this._PAGEMASTER_NAME),this._addPageSettings(e,i);var n=this.document.createElement(r.REGION_BODY);n.setAttribute("margin-bottom",this._INNER_MARGIN_BOTTOM),i.appendChild(n);var o=this.document.createElement(r.REGION_AFTER);o.setAttribute("region-name",this._REGION_AFTER_NAME),o.setAttribute("extent",this._FOOTER_EXTEND),o.setAttribute("display-align","after"),i.appendChild(o),t.appendChild(i),this.document.documentElement.appendChild(t)},_addPageSequence:function(e){var t=this.document.createElement(r.PAGE_SEQUENCE);t.setAttribute("master-reference",this._PAGEMASTER_NAME);var i=this.document.createElement(r.STATIC_CONTENT);i.setAttribute("flow-name",this._REGION_AFTER_NAME);var n=this.document.createElement(r.BLOCK);n.setAttribute("text-align",this._PAGENUMBER_ALIGN),n.setAttribute("font-family",this._PAGENUMBER_FONT),n.setAttribute("font-size",this._PAGENUMBER_SIZE),n.appendChild(this.document.createElement(r.PAGE_NUMBER)),i.appendChild(n),t.appendChild(i);var o=this.document.createElement(r.FLOW);return o.setAttribute("flow-name","xsl-region-body"),t.appendChild(o),this.document.documentElement.appendChild(t),o},_processResults:function(e){return this._addLayoutMaster(e),this.flow=this._addPageSequence(e),i(this._content).then(function(e){return this._finishAndSerialze(e)}.bind(this))},_finishAndSerialze:function(e){e.forEach((function(e){"#text"!==e.nodeName&&this.flow.appendChild(e)}),this);var t=new XMLSerializer;return this._XML_HEAD+this._normalizeString(t.serializeToString(this.document))},_normalizeString:function(e){for(var t=e.split(""),i=0;i<t.length;i++){var n=e.charCodeAt(i);(n<32||n>126)&&(t[i]=this._replaceDecouragedChar(n))}return e=t.join("")},_replaceDecouragedChar:function(e){return e<9||11===e||12===e||e>=14&&e<=31||e>=55296&&e<=56319||e>65533?this._REPLACEMENT_CHARACTER_STRING:e>=56320&&e<=57343?"":"&#"+e+";"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3753)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.export.docxwriters","rtc.internaldocument","rtc.export.docx.serializers","rtc.export.settings"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(285),i(244),i(319),i(549),i(1103),i(300),i(573),i(666),i(524),i(3756),i(3757),i(916),i(721)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([d],{_CONTENTDIV_CLASS:"rtcContent",_FILE_FORMAT:"docx",_OUTPUT_EXTENSION:".mht",_OUTPUT_PATH:"/outputs/output",_TWIPS_FACTOR:20,_DEFAULT_CONTEXT:{availableWidth:450,imageSizeInPoints:!0,pageCode:1,pageHeight:792,pageOrientation:"portrait",pageWidth:612,scaleFiguresToFit:!0,styles:"inline",target:this._FILE_FORMAT},getFormat:function(){return this._FILE_FORMAT},constructor:function(e,t,i,n){this._docxwriters=e,this._internalDocument=t,this._serializers=i,this._exportSettings=n,this._outputParts=[]},_defineExportDocument:function(){return{write:this._write.bind(this),addStyle:this._addStyle.bind(this),addOutput:this._addOutputParagraph.bind(this)}},reset:function(){var e=this._exportSettings.mixinContext(this._FILE_FORMAT,this._context);this._context=t.mixin({},this._DEFAULT_CONTEXT,e),this._opcPackage=new a,this._body=l.createXMLElement(r.BODY_TAG_NAME),this._documentPart=this._opcPackage.createPart(u.DOCUMENT_TARGET,u.DOCUMENT_TYPE,this._getDocumentXML(this._body)),this._numberOfOutputFiles=0,this._documentStyles=[],this._optionalSerializerArguments={opcPackage:this._opcPackage,serializers:this._serializers,skipAlias:!0,skipAlternate:!0,skipFallbackProperty:!0,singleUnderline:!0,monospaceFont:!0,codeDecoration:!0,numberingListCount:2},this._outputParts=[]},_write:function(e,t){var i=this._internalDocument.serialize(t);this._appendChildrenNodes(i,t);for(var n=e.write([i],this._optionalSerializerArguments),o=n.childNodes.length;0!==o;)this._body.appendChild(n.childNodes[0]),o--},_appendChildrenNodes:function(e,t){if(e.children&&t.children)for(var i=0;i<e.children.length;i++)e.children[i].node=t.children[i],this._appendChildrenNodes(e.children[i],t.children[i])},_addStyle:function(e){this._documentStyles.push(e)},_getDocumentXML:function(e){var t=f.createWordDocument();return this._addSectionProperty(e),t.documentElement.appendChild(e),l.serializeToFormattedString(t)},_processResults:function(e){var t=new i;return this._documentPart.setContent(this._getDocumentXML(this._body)),p.createStyle(this._opcPackage,this._documentStyles),this._documentPart.createRelationship(u.STYLES_TARGET_SCHEMA,u.STYLES_TARGET),this._opcPackage.createRelationship(u.DOCUMENT_TARGET_SCHEMA,u.DOCUMENT_TARGET),h.createNumbering(this._opcPackage,this._optionalSerializerArguments.numberingListCount),this._documentPart.createRelationship(u.NUMBERING_TARGET_SCHEMA,u.NUMBERING_TARGET),o(this._outputParts).then(function(){t.resolve(a.toJson(this._opcPackage))}.bind(this)),t},_addOutputParagraph:function(e){var t=l.createXMLElement(u.ALT_CHUNK),o=this._documentPart.createRelationship(u.F_CHUNK_SCHEMA,this._OUTPUT_PATH+this._numberOfOutputFiles+this._OUTPUT_EXTENSION);t.setAttribute(r.HYPERLINK_ID,o);var a=this._OUTPUT_PATH+this._numberOfOutputFiles+this._OUTPUT_EXTENSION,c=new i;this._outputParts.push(c);var d=new s(a,u.MHT_CONTENT_TYPE);this._opcPackage.getParts().push(d),n(e,function(e){d.setContent(e),c.resolve()}.bind(this)),this._numberOfOutputFiles=this._numberOfOutputFiles+1,this._body.appendChild(t)},_addSectionProperty:function(e,t){var i=t||this._context,n=f.createOXmlElement(u.SECTION_PROPERTY),o=f.createOXmlElement(u.PAGE_SIZE);n.appendChild(o),o.setAttribute(u.PAGE_WIDTH,i.pageWidth*this._TWIPS_FACTOR),o.setAttribute(u.PAGE_HEIGHT,i.pageHeight*this._TWIPS_FACTOR),o.setAttribute(r.CODE_FORMAT_VALUE,i.pageCode),o.setAttribute(u.PAGE_ORIENTATION,i.pageOrientation);var a=f.createOXmlElement(u.PAGE_MARGIN);n.appendChild(a),i.marginLeft&&a.setAttribute(u.LEFT_TAG,i.marginLeft*this._TWIPS_FACTOR),i.marginTop&&a.setAttribute(u.TOP_TAG,i.marginTop*this._TWIPS_FACTOR),i.marginRight&&a.setAttribute(u.RIGHT_TAG,i.marginRight*this._TWIPS_FACTOR),i.marginBottom&&a.setAttribute(u.BOTTOM_TAG,i.marginBottom*this._TWIPS_FACTOR),e.appendChild(n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=e(null,{constructor:function(e,t,i,n){this._relationshipType=t,this._target=i,this._relationshipId=e,n&&(this._targetMode=n)},getRelationshipType:function(){return this._relationshipType},getTarget:function(){return this._target}});return t.toJson=function(e){return{relationshipType:e._relationshipType,target:e._target,targetMode:e._targetMode,relationshipId:e._relationshipId}},t.fromJson=function(e){return new t(e.relationshipId,e.relationshipType,e.target)},t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){return{getUniquePartUri:function(e,t,i,n){var o=e+(t||"")+"."+(i||"");return this._getUpdatedPartUri(o,n)},_getUpdatedPartUri:function(e,t){var i=this._getFileNameWithCount(e),n=i;return t.some((function(e){var t=this._getFileNameWithCount(e);t.partUri===i.partUri&&t.fileName===i.fileName&&t.fileExtension===i.fileExtension&&t.count>n.count&&(n=t)}),this),n||(n=i),n.count+=1,this._getPartUri(n)},_getFileNameWithCount:function(e){var t=e.split("."),i=t[0],n=t[1],o=i.lastIndexOf("/"),r=i.slice(o+1),a=r.match(/\d+$/),s=a?parseInt(a[0]):0,l=r.replace(/\d+/g,"");return{partUri:i=-1===o?l:(i=i.slice(0,o))+"/"+l,fileName:l,fileExtension:n,count:s}},_getPartUri:function(e){var t=e.partUri+e.count;return 0!==e.fileExtension.length&&(t=t+"."+e.fileExtension),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1103),i(300),i(524),i(916)],o=i.dj.d(n,(function(e,t,i,n){return{_BULLET_TEXT:"",_NUMBER_TEXT:"%1.",_ORDERED_LIST_START_RANGE:2,createNumbering:function(o,r){var a=new e(i.NUMBERING_TARGET,i.NUMBERING_TYPE),s=n.createNumbers();n.addAbstractNumbering(s,1,this._BULLET_TEXT,i.BULLET);for(var l=this._ORDERED_LIST_START_RANGE;l<r;l++)n.addAbstractNumbering(s,l,this._NUMBER_TEXT,i.DECIMAL);n.addNumberReference(s,1);for(l=this._ORDERED_LIST_START_RANGE;l<r;l++)n.addNumberReference(s,l);a.setContent(t.serializeToFormattedString(s)),o.getParts().push(a)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(319),i(1103),i(300),i(524),i(916)],o=i.dj.d(n,(function(e,t,i,n,o){return{_BACKGROUND_TAG:"background1",_BORDER_LINE:"single",_BORDER_SHADE:"D9",_BORDER_SIZE:"2",_BORDER_SPACE:"4",_FONT_FALLBACK_CS:"majorBidi",_FONT_FALLBACK_EA:"majorEastAsia",_LATENT_COUNT:"382",_LATENT_HIDDEN:"0",_LATENT_LOCKED:"0",_LATENT_PRIORITY:"99",_LATENT_Q_FORMAT:"0",_LATENT_UNHIDE_WHEN_USED:"0",createStyle:function(r,a){var s=new t(n.STYLES_TARGET,n.STYLES_TYPE),l=o.createStyles(),c=o.createAndAddElement(l,n.DOC_DEFAULTS_TAG),d=o.createAndAddElement(c,n.PROPERTY_DEFAULT_TAG);o.createAndAddElement(d,e.NAMESPACE_TAG+":"+e.RUN_OF_TEXT_PROPERTY_TAG_NAME);o.createLatentStyles(l,{count:this._LATENT_COUNT,lockedState:this._LATENT_LOCKED,qFormat:this._LATENT_Q_FORMAT,hidden:this._LATENT_HIDDEN,priority:this._LATENT_PRIORITY,unhideWhenUsed:this._LATENT_UNHIDE_WHEN_USED}),a.forEach((function(e){this._addStyle(l,e)}),this),s.setContent(i.serializeToFormattedString(l)),r.getParts().push(s)},_addStyle:function(t,i){var n=o.createStyle(t,i.id,i.type,i.default);this._addName(n,i.name),this._addBasedOn(n,i.basedOn),this._addQFormat(n);var r=o.createAndAddElement(n,e.NAMESPACE_TAG+":"+e.PARAGRAPH_PROPERTY_TAG_NAME);this._addBackground(r,i.backgroundColor),this._addBorder(r,i.borderColor,this._BORDER_SPACE,this._BORDER_SIZE,this._BACKGROUND_TAG,this._BORDER_SHADE,this._BORDER_LINE),this._addSpacing(r,i.spacing),this._addIndentation(r,i.indentation,i.indFirstLine);var a=o.createAndAddElement(n,e.NAMESPACE_TAG+":"+e.RUN_OF_TEXT_PROPERTY_TAG_NAME);this._addColor(a,i.color),o.setFont(a,i.fontFamily,this._FONT_FALLBACK_CS,this._FONT_FALLBACK_EA),this._setBold(a,i.bold),this._setItalic(a,i.italic),this._setUnderline(a,i.underline),this._addRowSpacing(a,i.rowSpacing),this._setFontSize(a,i.fontSize)},_addName:function(e,t){var i=o.createOXmlElement(n.NAME_TAG);e.appendChild(i),i.setAttribute(n.VALUE_TAG,t)},_addQFormat:function(e,t){var i=o.createOXmlElement(n.Q_FORMAT_TAG);e.appendChild(i)},_addBasedOn:function(e,t){if(t){var i=o.createOXmlElement(n.BASED_ON_TAG);e.appendChild(i),i.setAttribute(n.VALUE_TAG,t)}},_addNext:function(e,t){if(t){var i=o.createOXmlElement(n.NEXT_TAG);e.appendChild(i),i.setAttribute(n.VALUE_TAG,t)}},_addColor:function(e,t){if(t){var i=o.createOXmlElement(n.COLOR_TAG);e.appendChild(i),i.setAttribute(n.VALUE_TAG,t)}},_addBackground:function(e,t){if(t){var i=o.createOXmlElement(n.SHD_TAG);e.appendChild(i),i.setAttribute(n.COLOR_TAG,"auto"),i.setAttribute(n.FILL_TAG,t),i.setAttribute(n.THEME_FILL_TAG,this._BACKGROUND_TAG),i.setAttribute(n.THEME_FILL_SHADE_TAG,"F2"),i.setAttribute(n.VALUE_TAG,"clear")}},_setBorderAttributes:function(e,t,i,o,r,a,s){e.setAttribute(n.COLOR_TAG,t),e.setAttribute(n.SPACE_TAG,i),e.setAttribute(n.SIZE_TAG,o),e.setAttribute(n.THEME_COLOR_TAG,r),e.setAttribute(n.THEME_SHADE_TAG,a),e.setAttribute(n.VALUE_TAG,s)},_addBorder:function(e,t,i,r,a,s,l){if(t){var c=o.createOXmlElement(n.PARAGRAPH_BORDER_TAG);e.appendChild(c);var d=o.createOXmlElement(n.TOP_TAG);c.appendChild(d),this._setBorderAttributes(d,t,i,r,a,s,l);var u=o.createOXmlElement(n.LEFT_TAG);c.appendChild(u),this._setBorderAttributes(u,t,i,r,a,s,l);var h=o.createOXmlElement(n.BOTTOM_TAG);c.appendChild(h),this._setBorderAttributes(h,t,i,r,a,s,l);var p=o.createOXmlElement(n.RIGHT_TAG);c.appendChild(p),this._setBorderAttributes(p,t,i,r,a,s,l)}},_addSpacing:function(t,i){var r=i.after,a=i.afterAutospacing,s=i.before,l=i.beforeAutospacing,c=i.line,d=i.contextualSpacing;if(r||a||s||l||c){i=o.createOXmlElement(n.SPACING_TAG);if(t.appendChild(i),r&&i.setAttribute(n.AFTER_TAG,r),a&&i.setAttribute(n.AFTER_AUTOSPACING,a),s&&i.setAttribute(n.BEFORE_TAG,s),l&&i.setAttribute(n.BEFORE_AUTOSPACING,l),c&&i.setAttribute(n.LINE_TAG,c),i.setAttribute(n.LINE_RULE_TAG,"exact"),d){d=document.createElementNS(e.NAMESPACE_URL,n.CONTEXTUAL_SPACING_TAG);t.appendChild(d)}}},_addIndentation:function(e,t,i){if(t||i){var r=o.createOXmlElement(n.INDENTATION_TAG);e.appendChild(r),t&&r.setAttribute(n.LEFT_TAG,t),i&&r.setAttribute(n.FIRST_LINE_DOCX,i)}},_setFont:function(e,t,i,r){var a=o.createOXmlElement(n.ROW_FONTS_TAG);e.appendChild(a),a.setAttribute(n.ASCII_TAG,t),a.setAttribute(n.CS_THEME_TAG,i),a.setAttribute(n.EAST_ASIA_THEME_TAG,r),a.setAttribute(n.H_ANSI_TAG,t)},_setBold:function(t,n){if(n){var o=i.createXMLElement(e.BOLD_TAG_NAME);t.appendChild(o)}},_setItalic:function(t,n){if(n){var o=i.createXMLElement(e.ITALIC_TAG_NAME);t.appendChild(o)}},_setUnderline:function(t,n){if(n){var o=i.createXMLElement(e.UNDERLINE_TAG_NAME);t.appendChild(o)}},_addRowSpacing:function(e,t){if(t){var i=o.createOXmlElement(n.SPACING_TAG);e.appendChild(i),i.setAttribute(n.VALUE_TAG,t)}},_setFontSize:function(e,t){if(t){var i=o.createOXmlElement(n.SIZE_TAG);e.appendChild(i),i.setAttribute(n.VALUE_TAG,t)}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1392)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.export.docxwriters.serializers"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3760)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.export.helptextwriters"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(244),i(666)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{constructor:function(e){},getFormat:function(){return"helptext"},_defineExportDocument:function(){return{addHelpText:this._addHelpText.bind(this)}},reset:function(){this._content=""},_addHelpText:function(e){this._content+=e},_processResults:function(e){let t=new i,n=this._content.replace(/^\n*|\n*$/g,"");return t.resolve(n),t.promise}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1918)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.export.htmlwriters","rtc.view"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3763)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.styles.globalstylechanger"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(224),i(323),i(722),i(721)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{_DOM_CLASS_NAME:"lineNode",_CLIPBOARD_TARGET:"clipboard",constructor:function(e){this._globalstylechanger=e},getApplicableNodeClass:function(){return i},reset:function(e){if(this._numOfLines=-1,e.range&&e.PrintLineNumber){var i=e.range.getStartPosition().getNode().rootContainer(),n=i.parent.children;this._lineNum=t.indexOf(n,i)+1,this._digits=n.length.toString().length}},finalize:function(e,t){e.addCSSToStyle(this._getCSSForFont(t))},enter:function(e,t,i){return e.addToBody("<div class="+this._DOM_CLASS_NAME+" >"),i.PrintLineNumber&&e.addToBody(this._getLineNumberSpan()),t.isEmpty()&&(i.target===this._CLIPBOARD_TARGET?e.addToBody("\x3c!--[if mso]><br><![endif]--\x3e"):e.addToBody("&nbsp;")),!1},_getLineNumberSpan:function(){for(var e=this._lineNum.toString();e.length<this._digits;)e=" "+e;return this._lineNum+=1,'<span style="white-space: pre;">'+e+" </span>"},_getCSSForFont:function(e){var t,i,n,o,r="."+this._DOM_CLASS_NAME;return e.UseCustomFontForBody?(t=e.BodyCustomFont.fontSize+"pt",i=e.BodyCustomFont.fontFamily,n=e.BodyCustomFont.fontFace>1?"italic":"normal",o=e.BodyCustomFont.fontFace%2>0?"bold":"normal"):(t=this._globalstylechanger.getCachedCssValue(r,"font-size"),i=this._globalstylechanger.getCachedCssValue(r,"font-family"),n=this._globalstylechanger.getCachedCssValue(r,"font-style"),o=this._globalstylechanger.getCachedCssValue(r,"font-weight")),r+" {font-size: "+t+"; font-family: "+i+"; font-style: "+n+"; font-weight: "+o+"; }"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3765)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(247),i(389),i(252),i(362)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{_SYNTAXSTYLE_COLORED:1,_SYNTAXSTYLE_STYLED:3,constructor:function(e){this._decorationviewmodel=e},getApplicableNodeClass:function(){return n},visit:function(e,t,i,n,o){var a=t.getText();if(a){var s=r.getSyntaxHighlightingForExport(t,this._decorationviewmodel),l=this._getDecoratedText(a,i,n,s,o),c=o.WrapLines?"pre-wrap":"pre";e.addToBody('<span style="white-space: '+c+'">'+l+"</span>")}},_getDecoratedText:function(e,t,i,n,o){var r="",a=0,s=0;return n.forEach((function(n){if(!(n.start>i))if(n.end<t)s=n.end;else{a=n.start,r+=this._getStyledSubString(e,Math.max(t,s),Math.min(i,a)),s=n.end;var l=this._getStyle(o,n.styles.color);r+=this._getStyledSubString(e,Math.max(t,a),Math.min(i,s),l)}}),this),r+=this._getStyledSubString(e,Math.max(t,s),Math.min(i,e.length))},_getStyledSubString:function(e,t,n,o){if(n<=t)return"";o=o||"";var r=e.substring(t,n);return`<span ${o}>${i.escapeHtml(r)}</span>`},_getStyle:function(e,t){if(!e.SyntaxStyle||e.SyntaxStyle===this._SYNTAXSTYLE_COLORED)return`style="color: ${t};"`;if(e.SyntaxStyle===this._SYNTAXSTYLE_STYLED){if(t===e.CommentColor)return'style="font-style: italic;"';if(t===e.KeywordColor)return'style="font-weight: bold;"'}return""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3767)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.export.mwriters"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(244),i(209),i(234),i(666),i(3768)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([r],{constructor:function(e){},getFormat:function(){return"m"},_defineExportDocument:function(){return{addMCode:t.hitch(this,"_addMCode"),markAsFunction:t.hitch(this,"_markAsFunction"),startBlockComment:t.hitch(this,"_startBlockComment"),endBlockComment:t.hitch(this,"_endBlockComment")}},reset:function(){this._contentParts=[],this._contentFragment="",this._isFunction=!1},_markAsFunction:function(){this._isFunction=!0},_startBlockComment:function(){this._contentParts.push(this._contentFragment),this._contentFragment="",this._wrapPart=[]},_endBlockComment:function(e){this._wrapPart.push(this._contentFragment),this._contentFragment="";var t=i(this._wrapPart).then(function(t){return a.wrapParagraph(e+t.join("").replace(/^[^\S\r\n]+/,""))}.bind(this));this._contentParts.push(t),this._wrapPart=null},_addMCode:function(e){"string"!=typeof e?this._wrapPart?(this._wrapPart.push(this._contentFragment),this._contentFragment="",this._wrapPart.push(e)):(this._contentParts.push(this._contentFragment),this._contentFragment="",this._contentParts.push(e)):this._contentFragment+=e},_processResults:function(e){return n.assert(!this._wrapPart,"Remaining open wrap part."),this._contentParts.push(this._contentFragment),i(this._contentParts).then(function(e){return this._postProcess(e.join("").replace(/\s+$/,""))}.bind(this))},_postProcess:function(e){return this._isFunction?this._postProcessForFunctions(e):e},_postProcessForFunctions:function(e){var t=e.split("\n"),i=[],n=[],o=!1;return t.forEach((function(e){e.length>0&&(this._isCommentOrSectionMarkup(e)&&!o?i.push(e):(n.push(e),o=!0))}),this),0===i.length?e:this._insertTopLevelCommentInsideFunction(n,i)},_insertTopLevelCommentInsideFunction:function(e,t){var i=o.extractFunctionName(e[0]);t[0].trim().length>2||1===t.length?t[0]=t[0].replace(/%%/,"%% "+i.toUpperCase()):(t[0]=t[0].replace(/%%/,"% "),t[0]+=i.trim().toUpperCase(),t[1]=t[1].replace(/%/,""),t[0]+=t[1],t.splice(1,1));var n=t.join("\n"),r=e[0]+"\n";return e.shift(),r+=n+"\n",r+=e.join("\n")},_isCommentOrSectionMarkup:function(e){return 0===e.trim().indexOf("%")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_WRAPPED_COMMENT_LENGTH:75,_ENDOFWORD_REGEXP:/^\S*\s*/,wrapParagraph:function(e){for(var t="",i="";e.length>0;){var n=this._WRAPPED_COMMENT_LENGTH;n<e.length?n+=e.slice(n).match(this._ENDOFWORD_REGEXP)[0].length:n=e.length,t+=i+e.slice(0,n),e=e.slice(n),i="\n% "}return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3770)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(323),i(806),i(252)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_FUNCTION_REGEXP:/^(\s+)?\bfunction\b/,constructor:function(){},getApplicableNodeClass:function(){return t},reset:function(){this._firstVisit=!0},enter:function(e,n,o){if(i.isHiddenCodeNode(n,o))return!0;!n.previousSibling()||n.previousSibling()instanceof t||(n.previousSibling()&&!n.previousSibling().isTextContainerNode()&&n.previousSibling().previousSibling()instanceof t?e.addMCode("%%\n"):e.addMCode("\n"));var r=n.getText();e.addMCode(r),this._firstVisit&&r.match(this._FUNCTION_REGEXP)&&e.markAsFunction(),this._firstVisit=!1},leave:function(e,t,n){i.isHiddenCodeNode(t,n)||e.addMCode("\n")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3772)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.export.latexwriters","rtc.export.settings"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(244),i(666),i(495)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{_AUTO_GENERATED_NOTE:"% This LaTeX was auto-generated from MATLAB code.\n% To make changes, update the MATLAB code and export to LaTeX again.\n",_DOCUMENTCLASS:"\\documentclass{article}",_DOCUMENT_EVIRONMENT:"document",_EPS_TO_PDF_COMMAND:"epstopdfsetup",_GRAPHICS_PATH_COMMAND:"graphicspath",_SLOPPY_COMMAND:"sloppy",_USE_PACKAGE_COMMAND:"usepackage",_GEOMETRY:"geometry",_HEIGHT_ROUNDED:"heightrounded",_MARGIN_BOTTOM:"bottom=",_MARGIN_LEFT:"left=",_MARGIN_RIGHT:"right=",_MARGIN_TOP:"top=",_PAPER_HEIGHT:"paperheight=",_PAPER_WIDTH:"paperwidth=",_POINTS:"pt,",_BEGIN:"\\begin",_END:"\\end",_DEFAULT_MARGIN:{left:134,top:125,right:134,bottom:120},_DEFAULT_PACKAGES:[["inputenc","utf8"],["fontenc","T1"],["lmodern"],["graphicx"],["color"],["hyperref"],["amsmath"],["amsfonts"],["epstopdf"],["xcolor","table"],["matlab"]],_DEFAULT_SIZE:{pageWidth:612,pageHeight:792},_PT_2_TEX_PT_FACTOR:125e3/124533,constructor:function(e,t){this._exportSettings=t},getFormat:function(){return"tex"},_defineExportDocument:function(){return{addToBody:t.hitch(this,"_addToBody"),openEnvironment:t.hitch(this,"_openEnvironment"),closeEnvironment:t.hitch(this,"_closeEnvironment"),openCommand:t.hitch(this,"_openCommand"),closeCommand:t.hitch(this,"_closeCommand"),addToPreamble:t.hitch(this,"_addToPreamble"),addPackage:t.hitch(this,"_addPackage")}},reset:function(){this._preamble="",this._packages="",this._contentParts=[],this._contentFragment="",this._context=this._exportSettings.mixinContext("latex",this._context),this._setUpPageSettings(this._context)},_openEnvironment:function(e,t){this._addToBody(this._BEGIN+"{"+e+"}"+(t?" ":"\n"))},_closeEnvironment:function(e,t){this._addToBody((t?" ":"")+this._END+"{"+e+"}"+(t?"":"\n"))},_openCommand:function(e){this._addToBody("\\"+e+"{")},_closeCommand:function(){this._addToBody("}")},_addToBody:function(e){"string"!=typeof e?(this._contentParts.push(this._contentFragment),this._contentFragment="",this._contentParts.push(e)):this._contentFragment+=e},_addPackage:function(e,t){t=t||"";var i=o.wrapInCommand(this._USE_PACKAGE_COMMAND,e,t)+"\n";this._packages.indexOf(i)<0&&(this._packages+=i)},_addToPreamble:function(e){this._preamble.indexOf(e)<0&&(this._preamble+=e)},_processResults:function(e){var t=this._buildPreamble(e);this._contentParts.push(this._contentFragment);var n=i(this._contentParts).then(function(e){var t=o.processWhitespaces(e.join(""));return this._wrapInEnvironment("\n"+t,this._DOCUMENT_EVIRONMENT)}.bind(this));return i([t,n]).then(function(e){return this._AUTO_GENERATED_NOTE+"\n"+this._DOCUMENTCLASS+"\n\n"+e.join("")}.bind(this))},_buildPreamble:function(e){var t=this._addDefaultPackages();t+=this._packages+"\n",t+=o.wrapInCommand(this._SLOPPY_COMMAND)+"\n",t+=o.wrapInCommand(this._EPS_TO_PDF_COMMAND,"outdir=./")+"\n";var i=""+e.imagePath,n=i.split("/");return n.length>=2&&(i="./"+n[n.length-2]+"/"),t+=o.wrapInCommand(this._GRAPHICS_PATH_COMMAND," {"+i+"} ")+"\n",t+="\n",t+=this._preamble},_setUpPageSettings:function(e){if(!this._noPageSettingsNeeded(e)){var t="";e.pageHeight&&(t+=this._PAPER_HEIGHT+Math.round(e.pageHeight*this._PT_2_TEX_PT_FACTOR)+this._POINTS),e.pageWidth&&(t+=this._PAPER_WIDTH+Math.round(e.pageWidth*this._PT_2_TEX_PT_FACTOR)+this._POINTS),e.marginTop&&(t+=this._MARGIN_TOP+Math.round(e.marginTop*this._PT_2_TEX_PT_FACTOR)+this._POINTS),e.marginBottom&&(t+=this._MARGIN_BOTTOM+Math.round(e.marginBottom*this._PT_2_TEX_PT_FACTOR)+this._POINTS),e.marginRight&&(t+=this._MARGIN_RIGHT+Math.round(e.marginRight*this._PT_2_TEX_PT_FACTOR)+this._POINTS),e.marginLeft&&(t+=this._MARGIN_LEFT+Math.round(e.marginLeft*this._PT_2_TEX_PT_FACTOR)+this._POINTS),t.length>0&&(t+=this._HEIGHT_ROUNDED,this._addPackage(this._GEOMETRY,t))}},_noPageSettingsNeeded:function(e){return e.pageHeight===this._DEFAULT_SIZE.pageHeight&&e.pageWidth===this._DEFAULT_SIZE.pageWidth&&e.marginTop===this._DEFAULT_MARGIN.top&&e.marginLeft===this._DEFAULT_MARGIN.left&&e.marginRight===this._DEFAULT_MARGIN.right&&e.marginBottom===this._DEFAULT_MARGIN.bottom},_addDefaultPackages:function(){var e="";return this._DEFAULT_PACKAGES.forEach((function(t){e+=o.wrapInCommand(this._USE_PACKAGE_COMMAND,t[0],t[1])+"\n"}),this),e},_wrapInEnvironment:function(e,t){return this._BEGIN+"{"+t+"}\n"+e+this._END+"{"+t+"}\n"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3774)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.export.rtfwriters"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(221),i(244),i(573),i(666)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r],{_FONT_TABLE:"{\\fonttbl{\\f0\\fswiss Helvetica;}{\\f1\\fmodern Consolas \\falt Courier;}}\n",_FONT_TABLE_MAC:"{\\fonttbl{\\f0\\fswiss Helvetica;}{\\f1\\fmodern Menlo \\falt Courier;}}",_RGBA2RGB_REGEXP:/rgba?\((\d+),\s*(\d+),\s*(\d+)(,\s*\d?\.?\d+)?\)/,constructor:function(e){},getFormat:function(){return"rtf"},_defineExportDocument:function(){return{addToBody:t.hitch(this,"_addToBody"),getIndexForRGBColor:t.hitch(this,"_getIndexForRGBColor"),setDefaultStyle:t.hitch(this,"_setDefaultStyle")}},reset:function(){this._contentParts=[],this._contentFragment="",this._colors=["rgb(0,0,0)"],this._defaultStyle=""},_addToBody:function(e){"string"!=typeof e?(this._contentParts.push(this._contentFragment),this._contentFragment="",this._contentParts.push(e)):this._contentFragment+=e},_getIndexForRGBColor:function(e){var t=this._colors.indexOf(e);return t<0&&(this._colors.push(e),t=this._colors.length-1),t},_setDefaultStyle:function(e){this._defaultStyle=e},_createColorTable:function(){var e,t="";return this._colors.forEach(function(i){(e=i.match(this._RGBA2RGB_REGEXP))&&(t+="\\red"+parseInt(e[1],10)+"\\green"+parseInt(e[2],10)+"\\blue"+parseInt(e[3],10)+";")}.bind(this)),t?"\n{\\colortbl"+t+"}\n":""},_processResults:function(e){this._contentParts.push(this._contentFragment);var t=n(this._contentParts).then(function(e){return e.join("")}.bind(this)),i=this._createColorTable();return n({colorTable:i,defaultStyle:this._defaultStyle,content:t}).then(function(t){return this._buildFullRTF(t,e)}.bind(this))},_buildFullRTF:function(e,t){return"{\\rtf1\\ansi"+(i("mac")?this._FONT_TABLE_MAC:this._FONT_TABLE)+e.colorTable+e.defaultStyle+e.content+"}"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3776)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.styles.globalstylechanger"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(323),i(252)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_DOM_CLASS_SELECTOR:".lineNode",constructor:function(e){this._globalstylechanger=e},getApplicableNodeClass:function(){return i},finalize:function(e){var t=20,i=this._globalstylechanger.getCachedCssValue(this._DOM_CLASS_SELECTOR,"font-size"),n=parseFloat(i);if(!isNaN(n)){var o=i.indexOf("pt")===i.length-2?1:.75;t=Math.round(2*n*o)}e.setDefaultStyle("\\plain\\f1\\fs"+t+" ")},enter:function(e,t,i){return!1},leave:function(e,t,i){e.addToBody("\\par\n")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3778)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(389),i(252),i(362),i(3779)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{constructor:function(e){this._decorationviewmodel=e},getApplicableNodeClass:function(){return i},visit:function(e,t,i,n,r){var a=t.getText();if(a){var s=o.getSyntaxHighlightingForExport(t,this._decorationviewmodel),l=this._getDecoratedText(e,a,i,n,s);e.addToBody(l)}},_getDecoratedText:function(e,t,i,n,o){var r="",a=0,s=0;return o.forEach((function(o){if(!(o.start>n))if(o.end<i)s=o.end;else{a=o.start,r+=this._getStyledSubString(t,Math.max(i,s),Math.min(n,a)),s=o.end;var l=e.getIndexForRGBColor(o.styles.color);r+=this._getStyledSubString(t,Math.max(i,a),Math.min(n,s),l)}}),this),r+=this._getStyledSubString(t,Math.max(i,s),Math.min(n,t.length))},_getStyledSubString:function(e,t,i,n){return n=n||0,i>t?"\\cf"+n+" "+r.getFormattedChars(e.substring(t,i)):""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getFormattedChars:function(e){var t="",i=0,n="",o=0;for(i=0;i<e.length;i+=1){switch(n=e[i],o=e.charCodeAt(i),n){case"\\":n="\\\\";break;case"{":n="\\{";break;case"}":n="\\}";break;case"\n":n="\\line "}t+=o<127?n:"\\u"+o+"?"}return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(210),i(205),i(1393)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{requires:function(){return{createInstance:["rtc.view","rtc.internaldocument","rtc.focusservice","rtc.folding.margin.decorator","margin.shared.decorations"]}},createInstance:function(e,t,n,r,a){var s=a.concat([r]),l=new o(e,t,n,s,0,null);return i.add(l.getMarginElement(),"foldMargin"),l}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3782)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.folding.foldingcontroller","rtc.folding.foldingmodel"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(228),i(211),i(206),i(807),i(808),i(1089),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(a,{_WIDTH:12,_FOLD_SYMBOL_HEIGHT:11,_FOLD_EXTENSION_END_HEIGHT:1,constructor:function(e,n,o){this._view=e,this._foldingController=n,this._foldingModel=o,this.own(i.after(this._foldingModel,"onCandidatesAdded",t.hitch(this,"onUpdate"))),this.own(i.after(this._foldingModel,"onCandidatesRemoved",t.hitch(this,"onUpdate")))},getRangeDescriptions:function(e){return this._getFoldCandidatesInView(e).map(this._getDescriptionForFoldCandidate,this)},_getFoldCandidatesInView:function(e){return e||(e=c.getZeroBasedVisibleLineNumbers(this._view)),this._foldingModel.getFoldCandidatesForDocumentLines(e)},_getDescriptionForFoldCandidate:function(e){var t=this._createDomStructureForCandidate(e),i=e.getStartLine()+1,n=e.getEndLine()+1;return new s(t,i,n,this,!1,!1)},_createDomStructureForCandidate:function(e){var t=o.create("div");return t.classList.add("foldContainer"),this._addToggleElement(e,t),this._addExtensionElementIfNeeded(e,t),t},_addToggleElement:function(e,i){var a=o.create("div");a.classList.add("foldToggle");var s=e.getStartLine();n.set(a,"data-testid","gutterLine_"+s),l.setTopForCenteredAlignment(a,this._view,s,this._FOLD_SYMBOL_HEIGHT);var c=o.create("div");if(c.classList.add("foldMinus"),a.appendChild(c),e.isFolded()){a.classList.add("foldClose");var d=o.create("div");d.classList.add("foldPlus"),a.appendChild(d)}else a.classList.add("foldOpen");r(a,"click",t.hitch(this._foldingController,"toggle",e)),i.appendChild(a)},_addExtensionElementIfNeeded:function(e,t){if(!e.isFolded()){var i=o.create("div");i.classList.add("foldExtension");var n=l.getCenteredTop(this._view,e.getStartLine(),0),r=l.getCenteredTop(this._view,e.getEndLine(),0);i.style.top=n+"px",i.style.height="calc(100% - "+(n+r+this._FOLD_EXTENSION_END_HEIGHT)+"px)",t.appendChild(i)}},getWidth:function(){return this._WIDTH},getPriority:function(){return 1},getId:function(){return"Folds"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3784)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.folding.margin","matlab.foldablenodetypes","rtc.settings.service","rtc.actionservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(253),i(616),i(294),i(451)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_SHOW_MARGIN_ACTION:"rtc_show_folding_margin",_MARGIN_VISIBLE_SETTING:"matlab.editor.displaysettings.ShowCodeFoldingMargin",constructor:function(e,i,n,o){this._foldingMargin=e,this._foldableNodeTypes=i,this._settingsService=n,this._actionService=o,this._visibilitySetting=!0,this._setupContextMenuAction(),this._setupSettingListener(),this.own(t.after(i,"onChange",this._updateMarginVisibility.bind(this)))},_setupContextMenuAction:function(){const e={id:this._SHOW_MARGIN_ACTION,enabled:!0,text:i.showCodeFoldingMargin,callback:this._toggleSettingValue.bind(this)};this._actionService.addAction(e),this.addActionToMap(o.MARGIN,{type:r.CHECKBOX,actionId:this._SHOW_MARGIN_ACTION})},_toggleSettingValue:function(){this._settingsService.getSetting(this._MARGIN_VISIBLE_SETTING).then(e=>{this._settingsService.setSetting(this._MARGIN_VISIBLE_SETTING,!e)},(function(){}))},_setupSettingListener:function(){this._settingsService.getSetting(this._MARGIN_VISIBLE_SETTING).then(this._handleSettingChange.bind(this),function(e){this._updateMarginVisibility()}.bind(this)),this.own(this._settingsService.listenToSettingChange(this._MARGIN_VISIBLE_SETTING,this._handleSettingChange.bind(this)))},_handleSettingChange:function(e){this._visibilitySetting=e,this._actionService.updateAction(this._SHOW_MARGIN_ACTION,{selected:e}),this._updateMarginVisibility()},_updateMarginVisibility:function(){this._visibilitySetting&&this._foldableNodeTypes.hasFoldableMTreeNodeTypes()?this._foldingMargin.showMargin():this._foldingMargin.hideMargin()},updateActions:function(e){this.hiddenActionsList=[];const t=this._foldingMargin.getMarginElement();t.parentElement&&t.parentElement.contains(e)&&this._foldableNodeTypes.hasFoldableMTreeNodeTypes()||this.hiddenActionsList.push(this._SHOW_MARGIN_ACTION)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3786)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration","rtc.folding.foldingcontroller","rtc.folding.foldingmodel"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(211),i(206),i(207),i(282),i(266),i(362)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(o,{_DOWN_EVENT:window.PointerEvent?"pointerdown":"mousedown",_UP_EVENT:window.PointerEvent?"pointerup":"mouseup",constructor:function(e,i,n){this._decorator=e.createDecorator(1),this._foldingController=i,this._foldingModel=n,this.own(t.after(this._foldingController,"onCandidatesFolded",this._addEllipsisForFoldCandidates.bind(this),!0)),this.own(t.after(this._foldingController,"onCandidatesUnfolded",this._removeEllipsisForFoldCandidates.bind(this),!0)),this.own(t.after(this._foldingModel,"onCandidatesRemoved",this._handleCandidatesRemoved.bind(this),!0)),this._candidateToEllipsisMap=r.createMap()},_addEllipsisForFoldCandidates:function(e){e.forEach((function(e){if(!this._foldCandidateHasEllipsis(e)){var t=this._createEllipsisForFoldCandidate(e);this._attachEllipsisNodeToFoldCandidate(t,e)}}),this),this._decorator.applyChanges()},_removeEllipsisForFoldCandidates:function(e){e.forEach((function(e){var t=this._candidateToEllipsisMap.get(e);t&&(this._decorator.removeDomNode(t.ellipsis,t.range,s.PLACEMENT.AFTER),this._candidateToEllipsisMap.delete(e),t.onPointerDown.remove(),t.positionListener.remove(),t.range.destroy())}),this),this._decorator.applyChanges()},_createEllipsisForFoldCandidate:function(e){var i=this._getInsertionRangeForFoldCandidate(e),o=this._createEllipsisDomNode(),r=function(t){document.removeEventListener(this._UP_EVENT,r),o.contains(t.target)&&this._foldingController.unfold(e)}.bind(this),a=n(o,this._DOWN_EVENT,function(){document.addEventListener(this._UP_EVENT,r)}.bind(this)),s=t.after(i.getEndPosition(),"onChange",function(t){t.offsetHasChanged&&(this._removeEllipsisForFoldCandidates([e]),this._addEllipsisForFoldCandidates([e]))}.bind(this),!0);return{ellipsis:o,range:i,onPointerDown:a,positionListener:s}},_attachEllipsisNodeToFoldCandidate:function(e,t){this._decorator.addDomNode(e.ellipsis,e.range,s.PLACEMENT.AFTER),this._candidateToEllipsisMap.set(t,e)},_createEllipsisDomNode:function(){var e=i.create("span");e.classList.add("foldEllipsis");for(var t=0;t<3;t+=1){var n=i.create("div");n.classList.add("ellipseDot"),i.place(n,e,"last")}return e},_getInsertionRangeForFoldCandidate:function(e){var t=e.getStartPosition().getNode().rootContainer(),i=t.endPosition();i.setRightAligned(!0);var n=new a(t.startPosition(),i);return n.getStartPosition().setLive(),n.getEndPosition().setLive(),n},_foldCandidateHasEllipsis:function(e){return this._candidateToEllipsisMap.has(e)},_handleCandidatesRemoved:function(e){this._removeEllipsisForFoldCandidates(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3788)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.fonts.settings.cssproperties.config","rtc.settings.service","rtc.view.styles.globalstylechanger"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(809)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i){this._fontSettingsToCssFontProperties=e,this._settingsService=t,this._globalStyleChanger=i,this._applyAndRegisterSettings()},_applyAndRegisterSettings:function(){this._fontSettingsToCssFontProperties.getConfiguration().forEach((function(e){e.settingIdToCssProperties.forEach((function(t){var i=t.settingId;this._settingsService.getSetting(i).then(function(i){this._handleSettingChange(e.cssSelectors,t,i)}.bind(this),(function(e){})),this.own(this._settingsService.listenToSettingChange(i,this._handleSettingChange.bind(this,e.cssSelectors,t)))}),this)}),this)},_handleSettingChange:function(e,t,i){t.cssProperties.forEach((function(n){var o=this._getCssValueFormCssPropertyAndSettingValue(n,i,t);o&&e.forEach((function(e){this._globalStyleChanger.insertOrReplaceRule(e,[{name:n,value:o}],!0)}),this)}),this)},_getCssValueFormCssPropertyAndSettingValue:function(e,t,n){switch(e){case i.getFontSizeProperty():return t.mwdata&&(t=t.mwdata[0]),i.getFontSizeValueFromSettingValue(t,n.defaultUnit);case i.getFontFamilyProperty():return i.getFontFamilyValueFromSettingValue(t,n.fallbackFontFamily);case i.getFontWeightProperty():return i.getFontWeightValueFromSettingValue(t);case i.getFontStyleProperty():return i.getFontStyleValueFromSettingValue(t);case i.getColorProperty():return i.getColorValueFromSettingValue(t);default:return null}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3790)],o=i.dj.d(n,(function(e,t,i){var n=null,o=0;return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return null===n&&(n=new i),o+=1,n},destroyInstance:function(){(o-=1)<1&&(n.destroy(),n=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3791),i(809)],o=i.dj.d(n,(function(e,t,i){return e(t,{_FONT_FAMILY_PROPERTY:i.getFontFamilyProperty(),_FONT_WEIGHT_PROPERTY:i.getFontWeightProperty(),_FONT_STYLE_PROPERTY:i.getFontStyleProperty(),_FONT_SIZE_PROPERTY:i.getFontSizeProperty(),_COLOR_PROPERTY:i.getColorProperty(),_CODE_FALLBACK:i.getDefaultMonospacedFontFamilyValue(),_TEXT_FALLBACK:i.getDefaultSansSerifFontFamilyValue(),_SETTINGS_PREFIX:"matlab.fonts.editor.",_NAME_SETTING:"Name",_STYLE_SETTING:"Style",_SIZE_SETTING:"Size",_COLOR_SETTING:"Color",getConfiguration:function(){return[this._getConfigurationForFormat("code",[".lineNode"],this._CODE_FALLBACK),this._getConfigurationForFormat("normal",[".paragraphNode",".RTClistNode"],this._TEXT_FALLBACK),this._getConfigurationForFormat("title",[".heading-1"],this._TEXT_FALLBACK),this._getConfigurationForFormat("heading1",[".heading-2"],this._TEXT_FALLBACK),this._getConfigurationForFormat("heading2",[".heading-3"],this._TEXT_FALLBACK),this._getConfigurationForFormat("heading3",[".heading-4"],this._TEXT_FALLBACK)]},_getConfigurationForFormat:function(e,t,n){var o=this._SETTINGS_PREFIX+e+".";return{cssSelectors:t,settingIdToCssProperties:[{settingId:o+this._NAME_SETTING,cssProperties:[this._FONT_FAMILY_PROPERTY],fallbackFontFamily:n},{settingId:o+this._STYLE_SETTING,cssProperties:[this._FONT_WEIGHT_PROPERTY,this._FONT_STYLE_PROPERTY]},{settingId:o+this._SIZE_SETTING,cssProperties:[this._FONT_SIZE_PROPERTY],defaultUnit:i.getPointUnit()},{settingId:o+this._COLOR_SETTING,cssProperties:[this._COLOR_PROPERTY]}]}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},getConfiguration:function(){throw new Error("rtc.plugins.fontprefs.AbstractFontSettingsToCssProperties Unimplemented method: getConfiguration")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3793)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(1920),i(1374),i(1921),i(1375),i(1376),i(1377),i(1378),i(1922),i(1381),i(1382),i(1383),i(1923),i(1384),i(1385),i(1386),i(1387),i(917)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e(t,{constructor:function(){this._foldableMTreeNodeTypes=[n,r,a,s,l,c,u,h,p,f,m,_]},setFoldableMTreeNodeTypes:function(e){var t=[];Object.keys(e).forEach((function(i){e[i]&&t.push(v.BLOCK_REGISTRY[i])})),this._foldableMTreeNodeTypes=t,this.onChange()},hasFoldableMTreeNodeTypes:function(){return this._foldableMTreeNodeTypes.length>0},isMTreeNodeFoldable:function(e){return this._foldableMTreeNodeTypes.some((function(t,i){return e.isInstanceOf(t)}))},onChange:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1101)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372),i(917)],o=i.dj.d(n,(function(e,t,i){return e(t,{getLHSChildren:function(){return this._partitionChildren(!0)},getRHSChildren:function(){return this._partitionChildren(!1)},_partitionChildren:function(e){return this.getChildren().filter((function(t){var n=i.compareByPosition(t,this);return e?n<0:n>0}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(372),i(1380)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._functionIdentifierNode=new i(this._data.functionName)},getFunctionIdentifierNode:function(){return this._functionIdentifierNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1379)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3800)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.folding.foldingcontroller","rtc.folding.foldingmodel","matlab.code.codeblocklocationservice","matlab.code.mtree.rangefactory","matlab.foldablenodetypes"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(282),i(208),i(1924),i(1394),i(917)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{constructor:function(e,t,n,o,r){this._mTreeRangeFactory=o,this._codeBlockLocationService=n,this._foldableMTreeNodeTypes=r,this.own(i.after(this._codeBlockLocationService,"onBlocksUpdated",this._updateFoldCandidates.bind(this))),this.own(i.after(this._foldableMTreeNodeTypes,"onChange",this._handleSettingsChange.bind(this))),this._codeBlockLocationService.isReady()&&this._updateFoldCandidates()},_handleSettingsChange:function(){this._codeBlockLocationService.isReady()&&this._updateFoldCandidates()},_updateFoldCandidates:function(){if(!this._codeBlockLocationService.hasBlockStructureError()){var e=this._calculateFoldCandidatesToAddAndRemove();e.foldCandidatesToRemove.length>0&&this._removeFoldCandidates(e.foldCandidatesToRemove),e.foldCandidatesToAdd.length>0&&this._addFoldCandidates(e.foldCandidatesToAdd)}},_calculateFoldCandidatesToAddAndRemove:function(){const e=new Set(this._foldCandidates);return{foldCandidatesToAdd:this._getFoldableMTreeNodes().filter(t=>{let i=!1;for(let n of e){if(r.isRangeEquivalent(t,n.getRange())){e.delete(n),i=!0;break}}const n=t.getStartLine(),o=this._foldingModel.getFoldCandidateForDocumentLine(n-1);return!(!!o&&r.isRangeEquivalent(t,o.getRange()))&&!i}).map(function(e){return r.createFoldCandidateForMTreeNode(e,this._mTreeRangeFactory)}.bind(this)),foldCandidatesToRemove:[...e]}},_getFoldableMTreeNodes:function(){return this._codeBlockLocationService.getBlockLocations().filter(function(e){return this._foldableMTreeNodeTypes.isMTreeNodeFoldable(e)&&e.getStartLine()<e.getEndLine()}.bind(this),this._foldableMTreeNodeTypes)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3802)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service","matlab.foldablenodetypes","matlab.code.codeblocklocationservice","matlab.code.mtree.rangefactory"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(212),i(207),i(266),i(333),i(3803),i(917),i(1395)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(n,{constructor:function(e,t,i,n){this._settingService=e,this._foldableMTreeNodeTypes=t,this._codeBlockLocationService=i,this._mTreeRangeFactory=n,this._updateEnabledSettingValues(),this.own(new l(this._getSettingKeyValuesAsArray(),this._settingService,this._updateEnabledSettingValues.bind(this)))},getFoldCandidateInfoToFoldInitially:function(){var e=new i,t=e.promise;return this._codeBlockLocationService.whenReady(function(){var t=this._getRangesAndStartLines();new Promise((function(i,n){e.resolve(t)}))}.bind(this)),t},_getSettingKeyValuesAsArray:function(){for(var e=[],t=Object.keys(a),i=0;i<t.length;i++){var n=t[i];e[i]=a[n]}return e},_getRangesAndStartLines:function(){for(var e={arguments:this._settingService.get(a.ARGUMENTS_FOLD_INIT,!1),comment:this._settingService.get(a.COMMENTS_FOLD_INIT,!1),blockComment:this._settingService.get(a.BLOCK_COMMENTS_FOLD_INIT,!1),classdef:this._settingService.get(a.CLASS_DEF_FOLD_INIT,!1),enumeration:this._settingService.get(a.CLASS_ENUM_FOLD_INIT,!1),events:this._settingService.get(a.CLASS_EVENTS_FOLD_INIT,!1),methods:this._settingService.get(a.CLASS_METHOD_FOLD_INIT,!1),properties:this._settingService.get(a.CLASS_PROP_FOLD_INIT,!1),for:this._settingService.get(a.FOR_FOLD_INIT,!1),function:this._settingService.get(a.FUNCTION_CODE_FOLD_INIT,!1),method:this._settingService.get(a.FUNCTION_CODE_FOLD_INIT,!1),if:this._settingService.get(a.IF_BLOCK_FOLD_INIT,!1),section:this._settingService.get(a.SECTION_BLOCK_FOLD_INIT,!1),spmd:this._settingService.get(a.SPDM_FOLD_INIT,!1),switch:this._settingService.get(a.SWITCH_CASE_FOLD_INIT,!1),try:this._settingService.get(a.TRY_CATCH_FOLD_INIT,!1),while:this._settingService.get(a.WHILE_BLOCK_FOLD_INIT,!1),parfor:this._settingService.get(a.PARFOR_FOLD_INIT,!1)},t=this._codeBlockLocationService.getBlockLocations().filter((function(t){var i=t.getType();return e[i]})),i=[],n=[],o=0;o<t.length;o++){var r=s.createFoldCandidateForMTreeNode(t[o],this._mTreeRangeFactory);i.push(r),n.push(t[o].getStartLine()-1)}return{ranges:i,startLines:n}},_updateEnabledSettingValues:function(){var e={};this._settingService.get(a.ENABLE_CODE_FOLDING,!0)&&(e={arguments:this._settingService.get(a.ARGUMENTS_ENABLE,!0),comment:this._settingService.get(a.COMMENTS_ENABLE,!0),blockComment:this._settingService.get(a.BLOCK_COMMENTS_ENABLE,!0),classdef:this._settingService.get(a.CLASS_DEF_ENABLE,!0),enumeration:this._settingService.get(a.CLASS_ENUM_ENABLE,!0),events:this._settingService.get(a.CLASS_EVENTS_ENABLE,!0),methods:this._settingService.get(a.CLASS_METHOD_ENABLE,!0),properties:this._settingService.get(a.CLASS_PROP_ENABLE,!0),for:this._settingService.get(a.FOR_ENABLE,!0),function:this._settingService.get(a.FUNCTION_CODE_ENABLE,!0),method:this._settingService.get(a.FUNCTION_CODE_ENABLE,!0),if:this._settingService.get(a.IF_BLOCK_ENABLE,!1),section:this._settingService.get(a.SECTION_BLOCK_ENABLE,!1),spmd:this._settingService.get(a.SPDM_ENABLE,!0),switch:this._settingService.get(a.SWITCH_CASE_ENABLE,!1),try:this._settingService.get(a.TRY_CATCH_ENABLE,!0),while:this._settingService.get(a.WHILE_BLOCK_ENABLE,!0),parfor:this._settingService.get(a.PARFOR_ENABLE,!0)}),this._foldableMTreeNodeTypes.setFoldableMTreeNodeTypes(e)},priority:function(){return 1}})}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{ENABLE_CODE_FOLDING:"matlab.editor.codefolding.EnableCodeFolding",ARGUMENTS_ENABLE:"matlab.editor.codefolding.FoldArgumentsBlocks",COMMENTS_ENABLE:"matlab.editor.codefolding.FoldComments",BLOCK_COMMENTS_ENABLE:"matlab.editor.codefolding.FoldBlockComments",CLASS_DEF_ENABLE:"matlab.editor.codefolding.FoldClassCode",CLASS_ENUM_ENABLE:"matlab.editor.codefolding.FoldClassEnumerationBlocks",CLASS_EVENTS_ENABLE:"matlab.editor.codefolding.FoldClassEventBlocks",CLASS_METHOD_ENABLE:"matlab.editor.codefolding.FoldClassMethodBlocks",CLASS_PROP_ENABLE:"matlab.editor.codefolding.FoldClassPropertiesBlocks",FOR_ENABLE:"matlab.editor.codefolding.FoldForAndParforBlocks",FUNCTION_CODE_ENABLE:"matlab.editor.codefolding.FoldFunctionCode",IF_BLOCK_ENABLE:"matlab.editor.codefolding.FoldIfElseBlocks",SECTION_BLOCK_ENABLE:"matlab.editor.codefolding.FoldSections",SPDM_ENABLE:"matlab.editor.codefolding.FoldSpmdBlocks",SWITCH_CASE_ENABLE:"matlab.editor.codefolding.FoldSwitchCaseBlocks",TRY_CATCH_ENABLE:"matlab.editor.codefolding.FoldTryCatchBlocks",WHILE_BLOCK_ENABLE:"matlab.editor.codefolding.FoldWhileBlocks",PARFOR_ENABLE:"matlab.editor.codefolding.FoldForAndParforBlocks",ARGUMENTS_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldArgumentsBlocks",COMMENTS_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldComments",BLOCK_COMMENTS_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldBlockComments",CLASS_DEF_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldClassCode",CLASS_ENUM_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldClassEnumerationBlocks",CLASS_EVENTS_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldClassEventBlocks",CLASS_METHOD_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldClassMethodBlocks",CLASS_PROP_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldClassPropertiesBlocks",FOR_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldForAndParforBlocks",FUNCTION_CODE_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldFunctionCode",IF_BLOCK_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldIfElseBlocks",SECTION_BLOCK_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldSections",SPDM_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldSpmdBlocks",SWITCH_CASE_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldSwitchCaseBlocks",TRY_CATCH_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldTryCatchBlocks",WHILE_BLOCK_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldWhileBlocks",PARFOR_FOLD_INIT:"matlab.editor.codefolding.InitiallyFoldForAndParforBlocks"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[i(203),i(205),i(3805)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.folding.foldingcontroller","rtc.folding.foldingmodel","matlab.code.codeblocklocationservice","rtc.document.info","rtc.backingstore","rtc.position.controller"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(915),i(266),i(3806)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,i,n,o,r,a,s){this._foldingController=i,this._foldingModel=n,this._codeBlockServices=o,this._docInfo=r,this._backingStore=a,this._positionController=s;var l=t.after(this._foldingController,"onCandidatesFolded",function(){this._initializeTimer(),l.remove()}.bind(this));this.own(t.after(this._foldingController,"onCandidatesUnfolded",this._build.bind(this))),this.own(t.after(this._foldingController,"onCandidatesFolded",this._build.bind(this))),this.own(t.after(this._backingStore,"onSaveCompleted",this._build.bind(this)))},_initializeTimer:function(){this._timer=setInterval(function(){this._ensureBuilt()}.bind(this),2e3)},_build:function(){this._codeBlockServices.isReady()&&this._updateFoldInformation()},_updateFoldInformation:function(){var e=this._backingStore.getFileName(),t=this._backingStore.getFileLocation().slice(0,-1);this._saveFoldInformation(e,t)},getFoldCandidateInfoToFoldInitially:function(){return this._getXMLFoldInfo().then(function(e){if(0!==Object.keys(e).length){var t=e.info;return this._getFoldCandidateRanges(t)}return null}.bind(this))},_getXMLFoldInfo:function(){var e=new Promise((function(e,t){e({})}));if(null!=this._backingStore.getFileName){var t=this._backingStore.getFileName(),i=this._backingStore.getFileLocation().slice(0,-1);e=o.getFoldInformationFromXML(t,i)}return e},_getLineOffsets:function(){for(var e=this._docInfo.getNumberOfLines(),t=[],i=0,n=0;n<e;n++)i+=this._docInfo.getLineLength(n+1),t.push(i),i+=1;return t},_getFoldCandidateRanges:function(e){var t=Object.values(e);return this._getRangesAndStartLinesOfBlocks(t)},_getRangesAndStartLinesOfBlocks:function(e){var t=this._getLineOffsets(),i=[],o=[];return e.forEach(function(e){for(var r=e.length,a=0;a<r/2;a++){let r=t.indexOf(e[2*a+1]),u=t.indexOf(e[2*a]);if(r>=0&&u>=0){let e=this._docInfo.getLineText(r+1),t=e.length-e.trimLeft().length,a=this._docInfo.getLineText(u+1),h=a.trimRight().length+1;var s=a.indexOf("end");if(-1!==s&&-1===a.substring(0,s).indexOf("%")&&(h=a.indexOf("end")+4),h>2&&(h-=2),void 0!==r&&void 0!==u){var l=this._positionController.createPositionAtLineColumn(r,t,!1,!0),c=this._positionController.createPositionAtLineColumn(u,h,!1,!0),d=new n(l,c);i.push(d),o.push(r)}}}}.bind(this)),{ranges:i,startLines:o}},_getFoldInformation:function(e,t){var i=this._getLineOffsets(),n=this._foldingModel.getAllFoldCandidates(),o={},r={};r.name=e,r.absPath=t,n.forEach(function(e){if(e.isFolded()){var t=e.getStartLine(),n=e.getEndLine(),r=this._codeBlockServices.getInnermostBlockOfType(t+1);if(null!==r){var a=r.type;if(void 0!==o[a])o[a].push(i[n],i[t]);else o[a]=[i[n],i[t]]}}}.bind(this)),r.folds=o;var a=Date.now();return r.lastWrittenTime=a.toString(),r},_saveFoldInformation:function(e,t){var i=this._getFoldInformation(e,t);o.setFoldInformationInXML(i)},priority:function(){return 2},destroy:function(){clearInterval(this._timer)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(300),i(715),i(3807)],o=i.dj.d(n,(function(e,t,i,n){var o="MATLAB_Editor_State.xml";return{getFoldInformationFromXML:function(e,t){return i.readFileFromPreferenceDirectory(o).then(function(i){var n={};if(""!==t){var o=this._parseFileNode(i,e,t);void 0!==o.reopened&&(n.info=o)}return n}.bind(this),function(e){return this._handleError(e,1)}.bind(this))},setFoldInformationInXML:function(e){i.readFileFromPreferenceDirectory(o).then(function(t){xmlFoldInfoStr=this._removeAndAddFileNode(t,e),i.writeFileToPreferenceDirectory(o,xmlFoldInfoStr).then((function(){}),function(e){this._handleError(e,2)}.bind(this))}.bind(this),function(t){this._handleError(t,2);var n=this._createFoldInfoFile(e);i.writeFileToPreferenceDirectory(o,n).then((function(){}),function(e){this._handleError(e,2)}.bind(this))}.bind(this))},_createFoldInfoFile:function(e){var t=this._createFileNode(e),i=n.XML_HEADER+(new XMLSerializer).serializeToString(t);return i=this._indentXmlData(i)},_handleError:function(t,i){switch((new e).reject(t),i){case 1:return{};case 2:return}},_parseFileNode:function(e,t,i){for(var o=this._getFileNodes(e),r={},a=o.length,s=0;s<a;s++)if(o[s].nodeName!==n.TEXT_NODE&&o[s].getAttribute(n.ABS_PATH)===i&&o[s].getAttribute(n.NAME)===t){var l=o[s].childNodes[1].childNodes;r=this._getFoldInfo(l);break}return r},_getFileNodes:function(e){return(new DOMParser).parseFromString(e,n.TEXT).getElementsByTagName(n.EDITOR_ELEMENT)[0].childNodes},_getFoldInfo:function(e){var t={reopened:!0};return e.forEach((function(e){var i=[];if(e.nodeName!==n.TEXT_NODE){var o=e.getAttribute(n.NAME);e.childNodes.forEach((function(e){e.nodeName!==n.TEXT_NODE&&(i.push(Number(e.getAttribute(n.END_OFFSET))),i.push(Number(e.getAttribute(n.START_OFFSET))))})),t[o]=i}})),t},_removeAndAddFileNode:function(e,t){var i=t.name,o=t.absPath,r=this._getFileNodes(e),a=r.length,s=0,l=r[s].parentNode;for(s=0;s<a;s++)r[s].nodeName!==n.TEXT_NODE&&r[s].getAttribute(n.ABS_PATH)===o&&r[s].getAttribute(n.NAME)===i&&(l.removeChild(r[s+1]),l.removeChild(r[s]),s=a);e=l;var c=this._createFileNode(t);e.appendChild(c.childNodes[0]);var d=this._getXMLStringFromFoldInfo(e);return d=n.XML_HEADER+d,d=this._indentXmlData(d)},_createFileNode:function(e){var i=e.name,o=e.absPath,r=e.lastWrittenTime,a=t.createDocument(n.DOC_ELEMENT),s=a.createElement(n.EDITOR_ELEMENT);s.setAttribute(n.VERSION,"1.0");var l=a.createElement(n.FILE_ELEMENT);l.setAttribute(n.ABS_PATH,o),l.setAttribute(n.LAST_WRITTEN_TIME,r),l.setAttribute(n.NAME,i);var c=a.createElement(n.CODEFOLDS_ELEMENT);c.setAttribute(n.VERSION,"1.0");var d=e.folds,u=Object.keys(d),h=[];return u.forEach((function(e){h=d[e];var t=a.createElement(n.FOLDTYPE_ELEMENT);t.setAttribute(n.NAME,e);for(var i=0;i<h.length/2;i++){var o=a.createElement(n.FOLD_ELEMENT);o.setAttribute(n.END_OFFSET,h[2*i]),o.setAttribute(n.START_OFFSET,h[2*i+1]),o.setAttribute(n.FOLD_STATE,"collapsed"),t.appendChild(o)}c.appendChild(t)})),l.appendChild(c),s.appendChild(l),s},_getXMLStringFromFoldInfo:function(e){var t="";if(e.childElementCount>=50){for(var i=this._sortRecentFiles(e),o=0;o<50;o++)t+=i[o].file;t=n.EDITOR_ELEMENT_START+t+n.EDITOR_ELEMENT_END}else t=(new XMLSerializer).serializeToString(e);return t},_sortRecentFiles:function(e){for(var t=e.childElementCount,i=[],o=0;o<t;o++){var r={};r.lastWrittenTime=Number(e.childNodes[2*o+1].getAttribute(n.LAST_WRITTEN_TIME)),r.file=(new XMLSerializer).serializeToString(e.childNodes[2*o+1]),i.push(r)}return i.sort((function(e,t){return t.lastWrittenTime-e.lastWrittenTime})),i},_indentXmlData:function(e){var t="",i="";return e.split(/>\s*</).forEach((function(e){e.match(/^\/\w/)&&(i=i.substring(" ".length)),t=t+i+"<"+e+">\r\n",e.match(/^<?\w[^>]*[^\/]$/)&&(i+=" ")})),t.substring(1,t.length-3)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{XML_HEADER:'<?xml version="1.0" encoding="UTF-8"?>',DOC_ELEMENT:"doc",EDITOR_ELEMENT:"Editor",VERSION:"version",TEXT_NODE:"#text",FILE_ELEMENT:"File",ABS_PATH:"absPath",LAST_WRITTEN_TIME:"lastWrittenTime",NAME:"name",CODEFOLDS_ELEMENT:"CodeFolds",FOLDTYPE_ELEMENT:"FoldType",FOLD_ELEMENT:"Fold",END_OFFSET:"endOffset",START_OFFSET:"startOffset",FOLD_STATE:"state",TEXT:"text/xml",EDITOR_ELEMENT_START:'<Editor version="1.0">',EDITOR_ELEMENT_END:"</Editor>"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3809)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.folding.foldingcontroller","rtc.folding.foldingmodel","foldinitiallycontributors","rtc.backingstore","rtc.cursor","rtc.service.documentloaded"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(1394)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i,n,o,r,a){this._foldingController=e,this._foldingModel=i,this._cursor=r,this._documentLoadedService=a,this._sortPluginsBasedOnPriority(n),""!==(o.getFileLocation?o.getFileLocation():"")&&this.own(t.after(this._documentLoadedService,"onDocumentLoadedWithText",this._foldBlocksInitially.bind(this,0)))},_sortPluginsBasedOnPriority:function(e){this._foldInitiallyPlugins=e.sort((function(e,t){return t.priority()-e.priority()}))},_foldBlocksInitially:function(e){e<this._foldInitiallyPlugins.length&&this._foldInitiallyPlugins[e].getFoldCandidateInfoToFoldInitially().then(function(t){null===t?this._foldBlocksInitially(e+1):this._foldBlocks(t)}.bind(this))},_isCursorInsideFoldCandidate:function(e){var t=this._cursor.getCursorPosition().getLine()-1;return e.getStartLine()<t&&t<e.getEndLine()},_foldBlocks:function(e){if(0!==e.ranges.length){var t=[];if(this._foldingModel.hasFoldCandidates())for(var i=e.startLines,o=0;o<i.length;o++){var r=this._foldingModel.getFoldCandidateForDocumentLine(i[o]);this._isCursorInsideFoldCandidate(r)||t.push(r)}else{var a=e.ranges;for(o=0;o<a.length;o++){r=new n(a[o]);this._isCursorInsideFoldCandidate(r)||t.push(r)}this._foldingModel.addFoldCandidates(t)}this._foldingController.foldCandidates(t)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3811),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.code.sections.model","rtc.document","rtc.internaldocument","rtc.cursor","rtc.indentutilities","rtc.actionservice"]}},createInstance:function(e,i,n,o,r,a){return new t(e,i,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(810),i(234),i(249),i(237),i(1396),i(3812),i(496)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(t,{SELECTION_MARK:"$%^",COMMENT_LINE_REGEX:/^\s*%/,SECTION_START_REGEX:/^\s*%%(\s|$)/,FORMATTED_BLOCK_REGEX:/^\s*%%%(\s|$)/,constructor:function(e,t,n,o,r,a){this._sectionModel=e,this._document=t,this._internalDocument=n,this._cursor=o,this._indentUtilities=r,this._actionService=a;var l=[{id:s.NEW_SECTION,enabled:!0,callback:this.insertSection.bind(this)},{id:s.INSERT_SECTION_WITH_TITLE,enabled:!0,callback:this.insertSectionWithTitle.bind(this)},{id:s.BOLD,enabled:!0,callback:this.insertBoldMarkup.bind(this)},{id:s.ITALIC,enabled:!0,callback:this.insertItalicMarkup.bind(this)},{id:s.MONOSPACED,enabled:!0,callback:this.insertMonospacedMarkup.bind(this)},{id:s.HYPERLINK,enabled:!0,callback:this.insertHyperlinkMarkup.bind(this)},{id:s.INLINE_LATEX,enabled:!0,callback:this.insertInlineLatexMarkup.bind(this)},{id:s.BULLETED_LIST,enabled:!0,callback:this.insertBulletedListMarkup.bind(this)},{id:s.NUMBERED_LIST,enabled:!0,callback:this.insertNumberedListMarkup.bind(this)},{id:s.IMAGE,enabled:!0,callback:this.insertImageMarkup.bind(this)},{id:s.PREFORMATTED_TEXT,enabled:!0,callback:this.insertPreformattedTextMarkup.bind(this)},{id:s.PREFORMATTED_CODE,enabled:!0,callback:this.insertCodeMarkup.bind(this)},{id:s.DISPLAY_LATEX,enabled:!0,callback:this.insertDisplayLatexMarkup.bind(this)}];this._actionService.loadActions(l),this._readOnlyState=!1,this.own(i.after(this._cursor,"onChange",function(){this._updateActions(l)}.bind(this))),this.own(i.after(this._internalDocument,"readOnlyChanged",function(){this._updateActions(l)}.bind(this)))},_updateActions:function(e){var t=this._cursor.isCursorReadOnly();t!==this._readOnlyState&&(this._readOnlyState=t,e.forEach((function(e){this._actionService.updateAction(e.id,{enabled:!t})}),this))},insertSection:function(){this._insertSection("")},insertSectionWithTitle:function(){this._insertSection(l.TITLE_AND_DESCRIPTION)},insertBoldMarkup:function(){this._insertInlineMarkup(" *"," *","* ",l.BOLD_INSERT_TEXT)},insertItalicMarkup:function(){this._insertInlineMarkup(" _"," _","_ ",l.ITALIC_INSERT_TEXT)},insertMonospacedMarkup:function(){this._insertInlineMarkup(" |"," |","| ",l.MONO_INSERT_TEXT)},insertHyperlinkMarkup:function(){this._insertInlineMarkup(" <"," <"+l.HYPERLINKED_TEXT_BEGINNING,"> ",l.HYPERLINKED_TEXT_BEGINNING+l.HYPERLINKED_TEXT_END)},insertInlineLatexMarkup:function(){this._insertInlineMarkup(" $"," $","$ ",l.INLINE_MATH_TEXT)},insertBulletedListMarkup:function(){this._insertBlockMarkup(l.BULLETED_LIST_SYMBOL,l.BULLETED_LIST,"")},insertNumberedListMarkup:function(){this._insertBlockMarkup(l.NUMBERED_LIST_SYMBOL,l.NUMBERED_LIST,"")},insertImageMarkup:function(){this._insertBlockMarkup(l.IMAGE_START_SYMBOL,l.IMAGE,l.IMAGE_END_SYMBOL)},insertPreformattedTextMarkup:function(){this._insertBlockMarkup(l.PREFORMATTED_TEXT_SYMBOL,l.PREFORMATTED_TEXT,"")},insertCodeMarkup:function(){this._insertBlockMarkup(l.CODE_SYMBOL,l.CODE_TEXT,"")},insertDisplayLatexMarkup:function(){this._insertBlockMarkup(l.DISPLAY_LATEX_SYMBOL,l.DISPLAY_LATEX,l.DISPLAY_LATEX_SYMBOL)},_insertSection:function(e){var t=this._document.startBlockEdit(c.TYPING_TEXT),i=l.SECTION_TAG+" "+this.SELECTION_MARK+e+this.SELECTION_MARK,n=this._getSelectionStartPosition(),o=this._indentUtilities.getIndentForLineNumber(n.line),r="",a="";this._isWithinInitialWhiteSpace(n)?(this._cursor.movePosition(this._cursor.LINE_START_POS1),r=l.NEWLINE):(this._cursor.movePosition(this._cursor.LINE_END),a=l.NEWLINE),i=a+this._getExpandedText(i,o)+r,this._document.insertTextAtCurrentPosition(i),this._selectMarkedText(),t.preventMerge(),this._document.endBlockEdit(t)},_insertInlineMarkup:function(e,t,i,n){e=this._cursor.hasSelection()?t+this.SELECTION_MARK:e+this.SELECTION_MARK,i=this.SELECTION_MARK+i;var o=this._preprocessSelectionAndInlineMarkup(e,i);e=o.prefix,i=o.suffix;var r=o.selectionStartLine,a=o.selectionEndLine,s=this._isInFormattedBlock(r),l=this._document.startBlockEdit(c.TYPING_TEXT);if(this._cursor.hasSelection()){var d=this._indentUtilities.getMinimumIndentForLines(r,a);s||(e=this._adjustPrefixToInsertNewBlock(e,d)),this._wrapSelection(e,i),this._selectMarkedText(),this._addUniformCommentsToSelection(d)}else s?this._document.insertTextAtCurrentPosition(e+n+i):this._insertSectionWithInlineMarkup(e+n+i),this._selectMarkedText();this._document.endBlockEdit(l)},_preprocessSelectionAndInlineMarkup:function(e,t){var i=this._getSelectionStartPosition(),n=this._getSelectionEndPosition();return this._preprocessSelectionBoundary(i),this._preprocessSelectionBoundary(n),this._isWhiteSpace({line:i.line,column:i.column-1})&&(e=e.substring(1)),this._isWhiteSpace({line:n.line,column:n.column})&&(t=t.substring(0,t.length-1)),this._cursor.setPosition({line:n.line,column:n.column,anchor:i}),{prefix:e,suffix:t,selectionStartLine:i.line,selectionEndLine:n.line}},_preprocessSelectionBoundary:function(e){var t,i;if(this._isInFormattedBlock(e.line)){if(this._isHeaderLine(e.line))i=l.FORMATTED_TAG.length+1;else if(this._isSectionStart(e.line))i=l.SECTION_TAG.length+1;else{var n={line:e.line,column:e.column+1};i=l.COMMENT_TAG.length+(this._isWhiteSpace(n)?1:0)}t=this._indentUtilities.getIndentForLineNumber(e.line),e.column=Math.max(e.column,i+t)}},_insertSectionWithInlineMarkup:function(e){" "===e.charAt(0)&&(e=e.substring(1));var t=this._getSelectionStartPosition(),i=this._indentUtilities.getIndentForLineNumber(t.line),n="",o="";this._isWithinInitialWhiteSpace(t)?(this._cursor.movePosition(this._cursor.LINE_START_POS1),n=l.NEWLINE):(this._cursor.movePosition(this._cursor.LINE_END),o=l.NEWLINE);var r=this._getExpandedText("%%\n"+l.DESCRIPTIVE_START+e,i);r=o+r+n,this._document.insertTextAtCurrentPosition(r)},_adjustPrefixToInsertNewBlock:function(e,t){var i=0===this._getSelectionStartPosition().column?"":l.NEWLINE,o=n.getWhiteSpaces(t);return i+o+l.SECTION_TAG+l.NEWLINE+o+e},_wrapSelection:function(e,t){var i=this._getSelectionStartPosition(),n=this._getSelectionEndPosition();this._cursor.releaseAnchor(),this._cursor.setPosition(n),this._document.insertTextAtCurrentPosition(t),this._cursor.setPosition(i),this._document.insertTextAtCurrentPosition(e)},_addUniformCommentsToSelection:function(e){for(var t=this._getSelectionStartPosition().line,i=this._getSelectionEndPosition().line,n=t;n<=i;n++)this._makeLineIntoComment(n,e)},_makeLineIntoComment:function(e,t){var i=this._isCommentLine(e),o=this._indentUtilities.getIndentForLineNumber(e);if(!i||!(o===t)){var r=n.getWhiteSpaces(Math.max(t-o,0)),a=this._isWhiteSpace({line:e,column:t})?"":" ",s=r+l.COMMENT_TAG+a;this._document.insertText(s,e+1,t+1)}},_insertBlockMarkup:function(e,t,i){var n=this._document.startBlockEdit(c.TYPING_TEXT),o=this.SELECTION_MARK+t+this.SELECTION_MARK,r=this._getSelectionStartPosition(),a=this._indentUtilities.getIndentForLineNumber(r.line),s=this._isInFormattedBlock(r.line),d="",u="";if(this._cursor.setPosition(r),s)this._cursor.movePosition(this._cursor.LINE_END),u=l.NEWLINE+l.DESCRIPTIVE_START+l.NEWLINE+l.DESCRIPTIVE_START+e+o+i+l.NEWLINE+l.DESCRIPTIVE_START,d=this._getExpandedText(u,a);else{var h="",p="";this._isWithinInitialWhiteSpace(r)?(this._cursor.movePosition(this._cursor.LINE_START_POS1),h=l.NEWLINE):(this._cursor.movePosition(this._cursor.LINE_END),p=l.NEWLINE),u="%%\n"+l.DESCRIPTIVE_START+l.NEWLINE+l.DESCRIPTIVE_START+e+o+i+l.NEWLINE+l.DESCRIPTIVE_START,d=p+(d=this._getExpandedText(u,a))+h}this._document.insertTextAtCurrentPosition(d),this._selectMarkedText(),this._document.endBlockEdit(n)},_getExpandedText:function(e,t){var i,o=n.getWhiteSpaces(t),r=e.split(l.NEWLINE),a="";for(i=0;i<r.length;i+=1)a+=o+r[i]+l.NEWLINE;return a=a.substring(0,a.length-1)},_selectMarkedText:function(){var e=this._getSelectionMark({line:0,column:0}),t=this._getSelectionMark({line:e.line,column:e.column+this.SELECTION_MARK.length});this._cursor.setPosition({line:t.line,column:t.column,anchor:{line:t.line,column:t.column+this.SELECTION_MARK.length}}),this._document.deleteTextAtCurrentPosition(r.BACKWARD_DELETE),this._cursor.setPosition({line:e.line,column:e.column,anchor:{line:e.line,column:e.column+this.SELECTION_MARK.length}}),this._document.deleteTextAtCurrentPosition(r.BACKWARD_DELETE);var i=e.line,n=e.column,o=t.line,a=e.line===t.line?t.column-this.SELECTION_MARK.length:t.column;i===o&&n===a||this._cursor.setPosition({line:o,column:a,anchor:{line:i,column:n}})},_isInFormattedBlock:function(e){for(var t=e;t>=0;t--){if(this._isSectionStart(t)||this._isHeaderLine(t))return!0;if(!this._isCommentLine(t))return!1}return!1},_getSelectionMark:function(e){var t,i=this._internalDocument.getMaxLineNumber(),n=e.line;for(t=n;t<i;t+=1){var o=this._internalDocument.getLineNode(t).getText();if(t===n&&(o=o.substring(e.column)),-1!==o.indexOf(this.SELECTION_MARK))return{line:t,column:t===n?e.column+o.indexOf(this.SELECTION_MARK):o.indexOf(this.SELECTION_MARK)}}return null},_isWithinInitialWhiteSpace:function(e){var t=!1,i=this._indentUtilities.getIndentForLineNumber(e.line);return e.column<=i&&(t=!0),t},_isWhiteSpace:function(e){return" "===this._internalDocument.getLineNode(e.line).getText().charAt(e.column)},_getSelectionStartPosition:function(){var e=this._cursor.getPosition();return this._cursor.hasSelection()&&!this._cursor.isReversed()?e.anchor:{line:e.line,column:e.column}},_getSelectionEndPosition:function(){var e=this._cursor.getPosition();return this._cursor.hasSelection()&&this._cursor.isReversed()?e.anchor:{line:e.line,column:e.column}},_isCommentLine:function(e){return!!this._internalDocument.getLineNode(e).getText().match(this.COMMENT_LINE_REGEX)},_isSectionStart:function(e){return!!this._internalDocument.getLineNode(e).getText().match(this.SECTION_START_REGEX)},_isHeaderLine:function(e){return!!this._internalDocument.getLineNode(e).getText().match(this.FORMATTED_BLOCK_REGEX)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NEWLINE:"\n",DESCRIPTIVE_START:"% ",BULLETED_LIST_SYMBOL:"* ",NUMBERED_LIST_SYMBOL:"# ",PREFORMATTED_TEXT_SYMBOL:" ",CODE_SYMBOL:" ",DISPLAY_LATEX_SYMBOL:"$$",IMAGE_START_SYMBOL:"<<",IMAGE_END_SYMBOL:">>",PREFORMATTED_TEXT:"PREFORMATTED\n% TEXT",CODE_TEXT:"for x = 1:10\n% disp(x)\n% end",BULLETED_LIST:"ITEM1\n% * ITEM2",NUMBERED_LIST:"ITEM1\n% # ITEM2",IMAGE:"FILENAME.PNG",DISPLAY_LATEX:"e^{\\pi i} + 1 = 0",BOLD_INSERT_TEXT:"BOLD TEXT",ITALIC_INSERT_TEXT:"ITALIC TEXT",MONO_INSERT_TEXT:"MONOSPACED TEXT",INLINE_MATH_TEXT:"x^2+e^{\\pi i}",HYPERLINKED_TEXT_BEGINNING:"http://www.mathworks.com ",HYPERLINKED_TEXT_END:"MathWorks",TITLE_AND_DESCRIPTION:"SECTION TITLE\n% DESCRIPTIVE TEXT",COMMENT_TAG:"%",SECTION_TAG:"%%",FORMATTED_TAG:"%%%"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(3814)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","matlab.services.batchedbusyidle","debug.documentdirtyservice","rtc.executionservice.statehandler","rtc.keyhandler","rtc.linenumberservice","rtc.validscriptfiletypenotifier","rtc.code.matlabfiletype","rtc.view.visibilityservice","rtc.internal.language"]}},createInstance:function(e,t,o,r,a,s,l,c,d,u){var h=i.getInstance();return new n(e,t,o,h,r,a,s,l,c,d,u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(1085),i(1086),i(207),i(454),i(371),i(1373)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return t(r,{CONTINUE_ACTION_ID:s.CONTINUE_ACTION_ID,STEP_ACTION_ID:s.STEP_ACTION_ID,STEP_IN_ACTION_ID:s.STEP_IN_ACTION_ID,STEP_OUT_ACTION_ID:s.STEP_OUT_ACTION_ID,STOP_ACTION_ID:s.STOP_ACTION_ID,constructor:function(t,n,o,r,a,s,l,c,d,u,h){this._actionService=t,this._busyIdleService=n,this._documentDirtyService=o,this._debugServices=r,this._stateHandler=a,this._validScriptFileTypeNotifier=c,this._keyHandler=s,this._lineNumberService=l,this._fileTypeService=d,this._visibilityService=u,this._languageService=h,this._overrideStepActionEnablement=!1,this._overrideRunToLineActionEnablement=!1,this._createActions(),this._refreshActions(),this.own(e.after(this._validScriptFileTypeNotifier,"onScriptFileTypeChange",i.hitch(this,"_handleScriptFileTypeChange"))),this.own(e.after(this._busyIdleService,"onIdleBusyStatusChange",i.hitch(this,"_handleBusyIdleChange"))),this.own(e.after(this._documentDirtyService,"onDocumentDirtiedWhileDebuggingChanged",i.hitch(this,"_handleDocumentDirtiedWhileDebugging"))),this.own(e.after(this._debugServices,"onDebugModeChanged",i.hitch(this,"_handleDebugModeChanged"))),this._isMATLABLanguageFile()?this.own(e.after(this._fileTypeService,"onFileTypeChange",i.hitch(this,"_handleFileTypeChanged"))):this.forceDebugEntrantActionsDisabled()},_createActions:function(){var e=[{id:this.CONTINUE_ACTION_ID,enabled:!1,key:"f5",platformKey:{mac:"meta_alt_r"},text:n.continueLabel,description:n.continueDescription,callback:i.hitch(this,"_performContinue")},{id:this.STOP_ACTION_ID,enabled:!1,key:"shift_f5",platformKey:{mac:"shift_f5"},text:n.stopLabel,description:n.stopDescription,callback:i.hitch(this,"_performStop")},{id:this.STEP_ACTION_ID,enabled:!0,key:"f10",platformKey:{mac:"meta_shift_o"},text:n.stepLabel,description:n.stepDescription,callback:i.hitch(this,"_performStep")},{id:s.PAUSE_ACTION_ID,enabled:!1,key:"ctrl_f5",platformKey:{mac:"meta_f5"},text:n.pauseLabel,description:n.pauseDescription,callback:i.hitch(this,"_performPause")},{id:s.RUN_TO_LINE_ACTION_ID,enabled:!0,text:n.runToLineLabel,description:n.runToLineDescription,callback:i.hitch(this,"_performRunToLine")},{id:s.CONTINUE_TO_LINE_ACTION_ID,enabled:!1,text:n.continueToLineLabel,description:n.continueToLineDescription,callback:i.hitch(this,"_performContinueToLine")},{id:this.STEP_IN_ACTION_ID,enabled:this._debugServices.isDebugging,key:"f11",platformKey:{mac:"meta_shift_i"},text:o.debugStepInLabel,description:o.debugStepInDescription,callback:i.hitch(this,"_performStepIn")},{id:this.STEP_OUT_ACTION_ID,enabled:this._debugServices.isDebugging,key:"shift_f11",platformKey:{mac:"meta_shift_u"},text:o.debugStepOutLabel,description:o.debugStepOutDescription,callback:i.hitch(this,"_performStepOut")}];this._actionService.loadActions(e),this._addAdditionalKeyBindings()},stopForcingDebugEntrantActionsDisabled:function(){this._overrideStepActionEnablement=!1,this._overrideRunToLineActionEnablement=!1,this._refreshActions()},forceDebugEntrantActionsDisabled:function(){this._overrideStepActionEnablement=!0,this._overrideRunToLineActionEnablement=!0,this._refreshActions()},onRunToLine:function(e){},onContinueToLine:function(e){},_addAdditionalKeyBindings:function(){this._keyHandler.addBinding({platformKey:{mac:"f5"}},this.CONTINUE_ACTION_ID),this._keyHandler.addBinding({platformKey:{mac:"f10"}},this.STEP_ACTION_ID),this._keyHandler.addBinding({platformKey:{mac:"f11"}},this.STEP_IN_ACTION_ID),this._keyHandler.addBinding({platformKey:{mac:"shift_f11"}},this.STEP_OUT_ACTION_ID)},_performContinue:function(){return!!this._debugServices.isDebugging&&(this._debugServices.debugContinue(),!0)},_performStep:function(){return this._debugServices.isDebugging?(this._debugServices.debugStep(),!0):this._stepToFirstLine()},_performStepIn:function(){return!!this._debugServices.isDebugging&&(this._debugServices.debugStepIn(),!0)},_performStepOut:function(){return!!this._debugServices.isDebugging&&(this._debugServices.debugStepOut(),!0)},_stepToFirstLine:function(){var e=this._lineNumberService.getNumberOfCodeLines()>0;return!(this._stateHandler.isRunning()||!e)&&(this._performRunToLine(new l(1)),!0)},_performStop:function(){return this._debugServices.isDebugging&&!this._busyIdleService.isBusy()?(this._debugServices.debugExit(),!0):!!this._busyIdleService.isBusy()&&(this._actionService.executeAction("rtc_interrupt"),!0)},_performPause:function(){return this._debugServices.debugPause(),this._actionService.updateAction(s.PAUSE_ACTION_ID,{enabled:!1,text:n.pausingLabel,description:n.pausingDescription}),!0},_performRunToLine:function(e){return this.onRunToLine(e)},_performContinueToLine:function(e){return this.onContinueToLine(e)},_handleBusyIdleChange:function(){this._refreshActionsWhenEditorVisible()},_handleDocumentDirtiedWhileDebugging:function(){this._refreshActionsWhenEditorVisible()},_handleDebugModeChanged:function(){this._refreshActionsWhenEditorVisible()},_handleScriptFileTypeChange:function(){this._refreshActionsWhenEditorVisible()},_handleFileTypeChanged:function(){this._refreshActionsWhenEditorVisible()},_refreshActionsWhenEditorVisible:function(){this._visibilityService.runWhenVisible(this,()=>{this._refreshActions()})},_refreshActions:function(){const e=this._busyIdleService.isBusy(),t=this._debugServices.isDebugging,i=this._documentDirtyService.isDocumentDirtiedWhileDebugging(),o=!!this._isMATLABLanguageFile()&&this._validScriptFileTypeNotifier.isFileTypeScript(),r=!!this._isMATLABLanguageFile()&&this._fileTypeService.isClass(),a=!e&&t,l=a||!this._overrideStepActionEnablement&&!r&&o&&!e;this._actionService.updateAction(this.STEP_ACTION_ID,{enabled:l}),this._actionService.updateAction(this.STEP_IN_ACTION_ID,{enabled:a}),this._actionService.updateAction(this.STEP_OUT_ACTION_ID,{enabled:a}),this._actionService.updateAction(s.PAUSE_ACTION_ID,{enabled:e}),this._actionService.updateAction(this.STOP_ACTION_ID,{enabled:e||t});const c=!this._overrideRunToLineActionEnablement&&!e&&!t&&o&&!r;this._actionService.updateAction(s.RUN_TO_LINE_ACTION_ID,{enabled:c});const d=!e&&t&&!i;this._actionService.updateAction(s.CONTINUE_TO_LINE_ACTION_ID,{enabled:d});const u=!e&&t;this._actionService.updateAction(s.CONTINUE_ACTION_ID,{enabled:u}),e||this._actionService.updateAction(s.PAUSE_ACTION_ID,{text:n.pauseLabel,description:n.pauseDescription})},_isMATLABLanguageFile:function(){return this._languageService.getLanguage()===a.DEFAULT_SUPPORTED_LANGUAGES.MATLAB},destroy:function(){this.inherited(arguments),this._visibilityService.clearPendingRequests(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3816),i(3817),i(3818),i(3819)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/editorLanguageSupport",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={plainTextFileDescription:"テキスト形式のファイル"}},function(e,t,i){e.exports={plainTextFileDescription:"일반 텍스트 파일"}},function(e,t,i){e.exports={plainTextFileDescription:"纯文本文件"}},function(e,t,i){e.exports={root:{plainTextFileDescription:"plain text file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(3821)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.execution.executionrequestfactory","rtc.document.info","rtc.position.controller","rtc.executionservice.executionrequestnotifier","rtc.execution.requestexecutorfactory","rtc.execution.controlc","rtc.internaldocument"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(455),i(203),i(204),i(207),i(208),i(237)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(n,{_SERVER_STARTING_UNREQUESTED_EVALUATION_NAMESPACE:"/embeddedOutputs/serverStartingUnrequestedEvaluation/",_DEFAULT_REQUEST_TYPE:"Default",_DEFAULT_SERVER_REQUEST_TYPE:"ServerSide",_TRADITIONAL_REQUEST_TYPE:"Traditional",constructor:function(t,n,r,a,s,l,c,d){this._editorId=t,this._executionRequestFactory=n,this._documentInfo=r,this._positionController=a,this._executionRequestNotifier=s,this._requestExecutorFactory=l,this._controlCService=c,this._internalDocument=d,this._messageService=e.getInstance(),this._currentRequestExecutor=null,this._queuedRequests=[],this._currentlyRunningRequest=null,this._currentRequestExecutorHandle=null,this._lastDocumentState=null,this._lastQueuedSection=null,this._isTraditionalExecution=!1,this._messageService.subscribe(this._SERVER_STARTING_UNREQUESTED_EVALUATION_NAMESPACE+this._editorId,"_handleServerStartedEval",this),this.own(o.after(this._internalDocument,"onDocumentReset",i.hitch(this,"_handleOnDocumentReset")))},enableTraditionalExecution:function(){this._isTraditionalExecution=!0},disableTraditionalExecution:function(){this._isTraditionalExecution=!1},isTraditionalExecutionEnabled:function(){return this._isTraditionalExecution},interrupt:function(){this._clearQueuedRequests(),this._doInterrupt()},_getRequestType:function(e){return e&&"string"==typeof e?e:this.isTraditionalExecutionEnabled()?this._TRADITIONAL_REQUEST_TYPE:this._DEFAULT_REQUEST_TYPE},_clearQueuedRequests:function(){this._queuedRequests.forEach((function(e){var t=e.getRequestId();e.destroy(),this._executionRequestNotifier.notifyQueuedRequestRemoved(t)}),this),this._queuedRequests=[]},_doInterrupt:function(){this._currentRequestExecutor&&this._currentlyRunningRequest?this._currentRequestExecutor.interrupt(this._currentlyRunningRequest):this._controlCService.interrupt()},_handleServerStartedEval:function(e){this._finishCurrentRequest();var t=e.data.requestId,i=e.data.requestType||this._DEFAULT_SERVER_REQUEST_TYPE,n=r.createFullFileRange(this._documentInfo,this._positionController),o=this._executionRequestFactory.createServerSideRequest(n,t,i);this._executionRequestNotifier.notifyEvaluationRequested(o.getRequestId()),this._startRequest(o),this._currentRequestExecutor&&this._currentRequestExecutor.executeRequest(o)},_startRequest:function(e){this._currentlyRunningRequest=e,this._currentRequestExecutor=this._requestExecutorFactory.getRequestExecutor(e.getRequestType()),this._currentRequestExecutor&&(this._currentRequestExecutorHandle=o.after(this._currentRequestExecutor,"onRequestComplete",i.hitch(this,"_finishCurrentRequestAndStartQueuedRequest"),!0))},_finishCurrentRequest:function(){this._currentlyRunningRequest&&(this._currentlyRunningRequest.destroy(),this._currentlyRunningRequest=null),this._currentRequestExecutorHandle&&(this._currentRequestExecutorHandle.remove(),this._currentRequestExecutorHandle=null)},_finishCurrentRequestAndStartQueuedRequest:function(){if(this._finishCurrentRequest(),0!==this._queuedRequests.length){var e=this._queuedRequests.pop();this._getOutputsForMessage(e)}},evaluateCode:function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=this._executionRequestFactory.createRequest(c,l,t,i,r,a,e,n,u,this._getRequestType(h)),f=this._requestExecutorFactory.getRequestExecutor(p.getRequestType());f&&(p=f.initializeRequest(p)),this._executionRequestNotifier.notifyEvaluationRequested(p.getRequestId());var g=!d&&!this._isOkayToQueue(i,s);this._lastQueuedSection=s,this._lastDocumentState=i,this._getOutputsForMessage(p,o||g,d)},_getOutputsForMessage:function(e,t,i){this._currentlyRunningRequest?t?(this.interrupt(),this._queuedRequests=[e]):i?(this._clearQueuedRequests(),this._queuedRequests=[e]):this._queuedRequests.unshift(e):(this._startRequest(e),this._currentRequestExecutor?this._currentRequestExecutor.executeRequest(e):this._finishCurrentRequest())},_isOkayToQueue:function(e,t){var i=e!==this._lastDocumentState,n=this._lastQueuedSection<t;return!i&&n},hasPendingRequests:function(){return this._queuedRequests.length>0},_handleOnDocumentReset:function(){this._currentRequestExecutor&&this._currentlyRunningRequest&&this._currentRequestExecutor.interrupt(this._currentlyRunningRequest)},destroy:function(){this._currentRequestExecutorHandle&&(this._currentRequestExecutorHandle.remove(),this._currentRequestExecutorHandle=null),this._currentlyRunningRequest&&(this._currentlyRunningRequest.destroy(),this._currentlyRunningRequest=null),this._messageService.unsubscribe(this._SERVER_STARTING_UNREQUESTED_EVALUATION_NAMESPACE+this._editorId,"_handleServerStartedEval",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3823)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.executionservice.statehandler","rtc.id","rtc.embeddedoutputs.model","rtc.internaldocument","rtc.linenumberservice"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(219)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_REQUEST_DATA:"/executionData/executionDataRequest/",_RECEIVE_DATA:"/executionData/executionDataResponse/",_LISTENER_ATTACHED_CHANNEL:"/executionData/trackingAvailable/",_MAX_REQUEST_INTERVAL:500,_MAX_UNANSWERED_REQUEST_INTERVAL:2e3,_DEFAULT_REQUEST_INTERVAL:16,constructor:function(e,t,n,r,a,s){this._stateHandler=e,this._editorId=t,this._requestTimeout=null,this._embeddedOutputsModel=n,this._internalDocument=r,this._lineNumberService=a,this._knownExecutionRunning=!1,this._isTracking=!1,this._isLastRequestUnanswered=!1,this.own(i.after(this._stateHandler,"onStateChanged",this._handleEvalType.bind(this),!0)),this.own(i.after(this._internalDocument,"onDocumentReset",this._handleOnDocumentReset.bind(this))),this._messageService=s||o,this._messageService.subscribe(this._LISTENER_ATTACHED_CHANNEL+this._editorId,"_handleListenerAttached",this),this._messageService.subscribe(this._RECEIVE_DATA+this._editorId,"_handleExecutionData",this)},onDataUpdate:function(e,t,i,n){},isTracking:function(){return this._isTracking},_isValid:function(e){var t=this._stateHandler.getCurrentRequest();return t&&t.isValid()&&t.getRequestId()===e},_handleEvalType:function(e){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&this._reset()},_handleOnDocumentReset:function(){this._reset()},_reset:function(){this._terminateRequests(),this._knownExecutionRunning=!1,this._isTracking=!1},_handleListenerAttached:function(e){var t=e.data.requestId;if(this._isValid(t)){this._isTracking=!0,this._requestIntervalTime=this._DEFAULT_REQUEST_INTERVAL,this._previousLineNumber=0,this._lineRunCounters=[],this._knownExecutionRunning=!0;for(var i=this._lineNumberService.getNumberOfCodeLines(),n=0;n<i;n++)this._lineRunCounters[n]=0;this._isLastRequestUnanswered=!1,this._setRequestTimeout()}},_setRequestTimeout:function(){this._requestTimeout=setTimeout(t.hitch(this,"_requestData"),this._requestIntervalTime)},_terminateRequests:function(){clearTimeout(this._requestTimeout),this._requestTimeout=null,this._isLastRequestUnanswered=!1},_requestData:function(){this._isLastRequestUnanswered?this._requestIntervalTime<this._MAX_UNANSWERED_REQUEST_INTERVAL?(this._downscaleUpdateRate(this._MAX_UNANSWERED_REQUEST_INTERVAL),this._setRequestTimeout()):this._terminateRequests():(o.publish(this._REQUEST_DATA+this._editorId,{dataSent:"requestData"}),this._isLastRequestUnanswered=!0,this._setRequestTimeout())},_handleExecutionData:function(e){if(!this._knownExecutionRunning)return!1;this._isLastRequestUnanswered=!1;var t=e.data.requestId;if(this._isValid(t)){this._currentRegion=e.data.checkPoint,this._currentLineNumber=e.data.currentLine,this._currentTrackedLineNumber=e.data.currentTrackedLine;var i=!1;for(var n in e.data.linesData)e.data.linesData.hasOwnProperty(n)&&(this._lineRunCounters[n]+=e.data.linesData[n],i=!0);this._updateIntervalTime(),i&&this.onDataUpdate(this._currentRegion,this._currentLineNumber,this._currentTrackedLineNumber,this._lineRunCounters),this._previousLineNumber=this._currentLineNumber}},_updateIntervalTime:function(){this._currentLineNumber!==this._previousLineNumber?this._requestIntervalTime=this._DEFAULT_REQUEST_INTERVAL:this._downscaleUpdateRate(this._MAX_REQUEST_INTERVAL)},_downscaleUpdateRate:function(e){this._requestIntervalTime=2*this._requestIntervalTime,this._requestIntervalTime=Math.min(this._requestIntervalTime,e)},destroy:function(){this.inherited(arguments),this._messageService.unsubscribe(this._LISTENER_ATTACHED_CHANNEL+this._editorId,"_handleListenerAttached",this),this._messageService.unsubscribe(this._RECEIVE_DATA+this._editorId,"_handleExecutionData",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3825),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.code.sections.model","rtc.code.sections.current","rtc.backingstore","rtc.document.executablecode.executablecodeservice","rtc.execution.executionenabler","rtc.embeddedoutputs.customexecutiondatacontributors","rtc.executionandoutputscontroller","rtc.settings.service"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(281)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e,t,i,n,o,r,a,s,l,c){this._document=e,this._internalDocument=t,this._sectionModel=i,this._currentSectionModel=n,this._backingStore=o,this._executableCodeService=r,this._executionEnabler=a,this._customExecutionDataContributors=s,this._executionAndOutputsDataServiceController=l,this._settingService=c},interrupt:function(){this._executionAndOutputsDataServiceController.interrupt()},hasPendingRequests:function(){return this._executionAndOutputsDataServiceController.hasPendingRequests()},enableTraditionalExecution:function(){this._executionAndOutputsDataServiceController.enableTraditionalExecution()},disableTraditionalExecution:function(){this._executionAndOutputsDataServiceController.disableTraditionalExecution()},executeCurrentSection:function(e,t,i,n){var o=this._currentSectionModel.getCurrentSectionNumber();-1!==o&&this.executeSection(o,e,t,i,n)},executeSection:function(e,t,i,n,o){var r,a=e;t?r=this._sectionModel.getSections().length-1:r=a;this.executeSectionRange(a,r,i,n,!1,o)},executeAllSections:function(e=!0,t=!1,i){var n=this._sectionModel.getSections().length-1;this.executeSectionRange(0,n,!e,t,!0,i)},executeSectionRange:function(e,t,n,o,r,a){if(this._isExecutionAllowed()){var s=this._sectionModel.getSection(e).start,l=this._sectionModel.getSection(t).end;s=this._document.createLinePosition(s.getNode().rootContainer(),!1),l=this._document.createLinePosition(l.getNode().rootContainer(),!1);var c=this._executableCodeService.getEvalText(),d=this._document.getState(),u=!r,h=!n,p=t,f=this._backingStore.getFilePath(),g=i.getShortDisplayName(this._backingStore),m=this._createCustomExecutionData(s,l);this._executionAndOutputsDataServiceController.evaluateCode([],c,d,u,h,s,l,p,f,g,o,m,a)}},_createCustomExecutionData:function(e,t){if(this._customExecutionDataContributors){var i=[];return this._customExecutionDataContributors.forEach((function(n){var o=n.getData(e,t);o&&i.push({handler:n.getMatlabHandler(),data:o})}),this),i}},_isExecutionAllowed:function(){return this._executionEnabler.isExecutionAllowed()},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3827)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.execution.executionmanager","rtc.embeddedoutputs.syntaxerrors","rtc.executionservice.statehandler","rtc.embeddedoutputs.model","rtc.executionservice.executionrequestnotifier"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(275)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_DELAY_AMOUNT:1e3,constructor:function(e,i,o,r,a){this._executionManager=e,this._syntaxErrorHandler=i,this._stateHandler=o,this._outputsModel=r,this._executionRequestNotifier=a;var s=n.getInstance();this.own(t.after(s,"onDBStop",this._handleImmediateActions.bind(this))),this.own(t.before(o,"onStateChanged",this._handleEvalStart.bind(this),!0,t.priority.INFRASTRUCTURE)),this.own(t.after(o,"onStateChanged",this._handleEvalEnd.bind(this),!0,t.priority.EXTERNAL)),this.own(t.after(this._executionRequestNotifier,"onQueuedRequestRemoved",this._handleQueuedRequestRemoved.bind(this))),this._syntaxErrorHandler&&this.own(t.after(this._syntaxErrorHandler,"onSyntaxError",this._handleImmediateActions.bind(this))),this._counter=0,this._latestEvaluationId=null,this._resetVisualDataCache()},executeViewAction:function(e){this._visualDelayData.timer?this._visualDelayData.callbacks.push(e):e()},executeSectionWithVisualDelay:function(e,t,i,n,o){this._updateCounter(n),this._executionManager.executeSection(e,t,i,o)},executeAllSectionsWithVisualDelay:function(e,t,i){this._updateCounter(t),this._executionManager.executeAllSections(!e,i)},executeSectionRangeWithVisualDelay:function(e,t,i,n,o,r){this._updateCounter(n),this._executionManager.executeSectionRange(e,t,i,o,r)},_handleQueuedRequestRemoved:function(){this._counter>0&&this._counter--},_updateCounter:function(e){e?this._counter++:this._counter>0&&this._counter--},_handleImmediateActions:function(){this._executeCallbacks(),this._clearState()},_handleEvalStart:function(e,t){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED&&(this._latestEvaluationId=t.evaluationId,this._counter>0&&(this._visualDelayData.requestId=this._latestEvaluationId,this._visualDelayData.callbacks=[],window.clearTimeout(this._visualDelayData.timer),this._visualDelayData.timer=window.setTimeout(function(){this._executeCallbacksIfRunning(this._latestEvaluationId)}.bind(this),this._DELAY_AMOUNT)))},_handleEvalEnd:function(e){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&(this._latestEvaluationId=null,this._counter>0&&this._counter--)},_executeCallbacksIfRunning:function(e){this._isExecutionForRequestIdInProgress(e)&&this._executeCallbacks(),this._clearState()},_isExecutionForRequestIdInProgress:function(e){return this._latestEvaluationId&&(this._latestEvaluationId===e||this._getPendingOutputCount(e)>0)},_getPendingOutputCount:function(e){return this._outputsModel?this._outputsModel.getPendingOutputCountIf(function(t){return!t.isReady()&&e===t.evaluationId}.bind(this)):0},_executeCallbacks:function(){this._visualDelayData.callbacks.forEach((function(e){e()}),this)},_clearState:function(){window.clearTimeout(this._visualDelayData.timer),this._resetVisualDataCache()},_resetVisualDataCache:function(){this._visualDelayData={requestId:"",timer:null,callbacks:[]}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3829)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.position.controller","rtc.code.sections.model"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(234),i(3830),i(1397)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e,t,i){this._internalDocument=e,this._positionController=t,this._sectionModel=i},createRequest:function(e,t,i,o,r,a,s,l,c,d){return new n(this._internalDocument,{fileName:e,filePath:t,fullText:i,documentStateToken:o,startPosition:r,endPosition:a,executableRegions:s,partialEval:l,getStartCodeIndexCallback:this._getStartCodeIndexForNode.bind(this),getEndCodeIndexCallback:this._getEndCodeIndexForNode.bind(this),customExecutionData:c,requestType:d})},createServerSideRequest:function(e,t,i){return new o(this._internalDocument,{evaluationRange:e,requestId:t,requestType:i})},_getStartCodeIndexForNode:function(e){var t=this._sectionModel.getSectionNumberForNode(e);return this._getStartCodeIndexForSection(t)},_getEndCodeIndexForNode:function(e){var t=this._sectionModel.getSectionNumberForNode(e);return this._getEndCodeIndexForSection(t)},_getStartCodeIndexForSection:function(e){var t=this._getCodeNodesClosestToSection(e,1);if(0===t.length)return-1;var i=t[0];return this._getCodeIndexForCodeNode(i)+1},_getEndCodeIndexForSection:function(e){var t=this._getCodeNodesClosestToSection(e,-1);if(0===t.length)return-1;var i=t[t.length-1],n=this._getCodeIndexForCodeNode(i);return(n+=i.getCodeText().length)+1},_getCodeNodesClosestToSection:function(e,t){for(var n=[],o=e;0===n.length;){var r=this._sectionModel.getSection(o);if(null===r)return[];n=i.getCodeNodesInNodeRange(r.start.getNode(),r.end.getNode()),o+=t}return n},_getCodeIndexForCodeNode:function(e){var t=this._positionController.createLinePosition(e),n=i.getAbsoluteCodeOffsetFromPosition(this._internalDocument,t);return t.destroy(),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(208),i(266),i(233),i(1397)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t([a],{constructor:function(e,{fileName:t,filePath:i,fullText:n,documentStateToken:o,executableRegions:r,partialEval:a,getStartCodeIndexCallback:s,getEndCodeIndexCallback:l,customExecutionData:c}){this._fileName=t,this._filePath=i,this._fullCodeText=n,this._documentStateToken=o,this._executableRegions=r,this._partialEval=a,this._getStartCodeIndexCallback=s,this._getEndCodeIndexCallback=l,this._customExecutionData=c},setExecutableRegions:function(e){this._executableRegions=e},getExecutionMessage:function(){return{requestId:this._requestId,regionArray:this._executableRegions,fullText:this._fullCodeText,partialEval:this._partialEval,documentStateToken:this._documentStateToken,fullFilePath:this._filePath,customExecutionData:JSON.stringify(this._customExecutionData)}},getTraditionalExecutionMessage:function(){if(void 0===this._startIndex){var e=this._evaluationRange.getStartPosition().getNode(),t=this._evaluationRange.getEndPosition().getNode();this._startIndex=this._getStartCodeIndexCallback(e),this._endIndex=this._getEndCodeIndexCallback(t)}this._startIndex<0&&this._endIndex<0&&(this._startIndex=1,this._endIndex=1);var i=r.locationFromPath(this._filePath),n=this._endIndex-this._startIndex;return{requestId:this._requestId,fileName:this._fileName,filePath:i,codeText:this._fullCodeText+"\n",startIndex:this._startIndex,executionTextLength:n,documentState:this._documentStateToken}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3832)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.executionservice.statehandler","rtc.code.sections.stale.model"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i,n){return t(n,{constructor:function(t,i){this._stateHandler=t,this._staleSectionModel=i,this._highestInSyncSectionNumber=-1,this.own(e.after(t,"onStateChanged",this._stateChangeListener.bind(this),!0)),this.own(e.after(this._staleSectionModel,"onModelUpdated",this._handleStaleSectionsChanged.bind(this)))},augmentStartSection:function(e){var t=e;return e>this._highestInSyncSectionNumber&&(t=this._highestInSyncSectionNumber+1),t},_stateChangeListener:function(e,t){if(e===this._stateHandler.CHANGE_TYPE_ENUM.SECTION_EVAL_COMPLETE){var i=t;if(i>this._highestInSyncSectionNumber){var n=this._staleSectionModel.getStaleSectionNumbers();if(0===n.length)return void(this._highestInSyncSectionNumber=i);var o=Math.min.apply(null,n);o>i&&(this._highestInSyncSectionNumber=o-1)}}},_handleStaleSectionsChanged:function(){this._staleSectionModel.getStaleSectionNumbers().forEach((function(e){-1!==e&&e<=this._highestInSyncSectionNumber&&(this._highestInSyncSectionNumber=e-1)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3834)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.editordataservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{_CONTROL_C_FEATURE_ID:"rtc.execution.controlc",constructor:function(e){this._editorDataService=e},interrupt:function(){this._editorDataService.request(this._CONTROL_C_FEATURE_ID).then((function(){}),(function(){}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(3836)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.execution.executiondatamanager","rtc.executionservice.statehandler","debug.documentdebugservices","rtc.linenumberservice","rtc.executionservice.linenumbertracker","rtc.execution.range.utilities","rtc.service.documentloaded","rtc.backingstore"]}},createInstance:function(e,t,o,r,a,s,l,c,d){var u=i.getInstance();return new n(e,t,o,r,a,u,s,l,c,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(210),i(211),i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r){return n(r,{_NO_LINE:-1,constructor:function(t,i,n,r,a,s,l,c,d,u){this._internalDocument=t,this._executionDataManager=i,this._stateHandler=n,this._documentDebugServices=r,this._lineNumberService=a,this._debugServices=s,this._lineNumberTracker=l,this._executionRangeUtilities=c,this._documentLoadedService=d,this._backingStore=u,this._reset(),this._backingStore.onLocationUpdated&&this.own(e.after(this._backingStore,"onLocationUpdated",o.hitch(this,"_resetAndSendEvent"))),this.own(e.after(this._internalDocument,"onDocumentReset",o.hitch(this,"_resetAndSendEvent"),!0)),this.own(e.after(this._internalDocument,"onDocumentChanged",o.hitch(this,"_handleDocumentChanged"),!0)),this.own(e.after(this._stateHandler,"onStateChanged",o.hitch(this,"_handleStateChanged"),!0)),this.own(e.after(this._executionDataManager,"onDataUpdate",o.hitch(this,"_handleDataUpdate"),!0)),this.own(e.after(this._documentDebugServices,"onStackChanged",o.hitch(this,"_handleDocumentStackChanged"),!0)),this.own(e.after(this._debugServices,"onDBCont",o.hitch(this,"_handleDBCont"))),this.own(e.after(this._debugServices,"onDebugModeChanged",o.hitch(this,"_handleOnDebugMode"),!0))},onCurrentLineChanged:function(e){},_handleStateChanged:function(e){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&this._resetAndSendEvent()},getCurrentLine:function(){var e=this._oneBasedCodeLine;return e!==this._NO_LINE&&(e=this._getTranslatedLine(e)),e},getCurrentLineInMainScope:function(){var e=this._oneBasedCodeLineInMainScope;return e!==this._NO_LINE&&(e=this._getTranslatedLine(e)),e},_sendCurrentLineEvent:function(){var e=this._NO_LINE;this._oneBasedCodeLine!==this._NO_LINE&&this._lineNumberService.getNumberOfCodeLines()>=this._oneBasedCodeLine&&(e=this._getTranslatedLine(this._oneBasedCodeLine)),this.onCurrentLineChanged(e)},_handleDataUpdate:function(e,t,i,n){this._documentLoadedService.whenDocumentLoadedWithText(o.hitch(this,(function(){this._oneBasedCodeLine=t,this._oneBasedCodeLineInMainScope=i,this._debugServices.isPaused||this._sendCurrentLineEvent()})))},_resetAndSendEvent:function(){this._reset(),this._sendCurrentLineEvent()},_handleDocumentStackChanged:function(e){this._documentLoadedService.whenDocumentLoadedWithText(o.hitch(this,(function(){if(0!==e.length){var t=e[0].getLineNumber();if((t=Math.abs(t))>this._lineNumberService.getNumberOfCodeLines()||0===t)this._resetAndSendEvent();else this._oneBasedCodeLine=t,this._lineNumberService.getLineNumberFromCodeLineNumber(this._oneBasedCodeLine)+1<=this._executionRangeUtilities.getFinalLineOfMainScope()&&(this._oneBasedCodeLineInMainScope=this._oneBasedCodeLine),this._sendCurrentLineEvent()}})))},_handleDBCont:function(){this._stateHandler.isRunning()&&this._executionDataManager.isTracking()||this._oneBasedCodeLine!==this._NO_LINE&&(this._reset(),this._sendCurrentLineEvent())},_handleOnDebugMode:function(e){e||this._oneBasedCodeLine===this._NO_LINE||(this._reset(),this._sendCurrentLineEvent())},_handleDocumentChanged:function(){this._oneBasedCodeLine!==this._NO_LINE&&this._sendCurrentLineEvent()},_getTranslatedLine:function(e){if(this._stateHandler.isRunningRequestInvalid())return this._NO_LINE;var t=this._lineNumberTracker.getNewLineNumberFromOldLineNumber(e-1)+1;if(0===t)return this._NO_LINE;var i=this._lineNumberService.getCodeLineNumberFromLineNumber(t-1);return-1===i?this._NO_LINE:i},_reset:function(){this._oneBasedCodeLine=this._NO_LINE,this._oneBasedCodeLineInMainScope=this._NO_LINE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3838)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.matlabfiletype"]}},priority:function(){return 0},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){this._fileType=e},isExecutionAllowed:function(){return this._fileType.isScript()||this._fileType.isUnset()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3840)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.requestexecutors"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{_DEFAULT_REQUEST_TYPE:"Default",constructor:function(e){this._requestExecutorMap={},e.forEach((function(e){e.isViewPluginWrapper&&e.isViewPluginWrapper()?this._addPrimaryViewsPluginToMap(e):this._addToMap(e)}),this)},_addToMap:function(e){if(this._requestExecutorMap[e.getType()])throw new Error("Duplicate request executors detected with type id: "+e.getType());this._requestExecutorMap[e.getType()]=e},_addPrimaryViewsPluginToMap:function(e){var t=i.after(e,"onPluginAdded",function(e){t.remove(),this._addToMap(e)}.bind(this),!0)},getRequestExecutor:function(e){return this._requestExecutorMap[e]||this._requestExecutorMap[this._DEFAULT_REQUEST_TYPE]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3842)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.cursorcontroller","rtc.linenumberservice","debug.runtolineservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1085),i(207),i(208),i(371)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{constructor:function(e,i,n,r){this._actionService=e,this._cursorController=i,this._lineNumberService=n,this._runToLineService=r,this._createActions(),this.own(o.after(i,"onUpdate",t.hitch(this,"_handleCursorControllerUpdate"))),this.own(o.after(r,"onActionEnablementChanged",t.hitch(this,"_handleSubActionEnablementChanged")))},_handleSubActionEnablementChanged:function(){this._setActionEnablementDependingOnCursor()},_handleCursorControllerUpdate:function(){this._setActionEnablementDependingOnCursor()},_setActionEnablementDependingOnCursor:function(){if(this._cursorController.getCursors().length>1)this._setActionEnablement(!1);else{var e=this._getCursorCodeLine(),i=this._getActionPromiseForLine(e);i?i.then(t.hitch(this,(function(e){var t=!!e&&e.enabled;this._setActionEnablement(t)})),(function(){})):this._setActionEnablement(!1)}},_setActionEnablement:function(e){this._actionService.updateAction(r.RUN_TO_CURSOR,{enabled:e})},_createActions:function(){var e=[{id:r.RUN_TO_CURSOR,enabled:!0,text:i.runToCursorLabel,description:i.runToCursorDescription,callback:t.hitch(this,"_performRunToCursor")}];this._actionService.loadActions(e)},_performRunToCursor:function(){var e=this._getCursorCodeLine(),i=this._getActionPromiseForLine(e);return!!i&&(i.then(t.hitch(this,(function(t){t&&this._runToLineService.runToLine(e,t.id,"toolstrip")})),(function(){})),!0)},_getActionPromiseForLine:function(e){return e<0||e>this._lineNumberService.getNumberOfCodeLines()?null:this._runToLineService.getPossibleAction(e)},_getCursorCodeLine:function(){var e=this._cursorController.getCursors()[0].getLineColumn().line;return e<=0?-1:this._lineNumberService.getCodeLineNumberFromLineNumber(e-1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(3844)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.execution.actions","debug.breakpoint.temporary"]}},createInstance:function(e,t,o){const r=i.getInstance();return new n(e,t,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(207),i(371),i(1373)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(n,{constructor:function(t,n,o,r){this._actionService=t,this._executionActions=n,this._temporaryBreakpointManager=o,this._debugServices=r,this.own(e.after(this._executionActions,"onRunToLine",i.hitch(this,"_performRunToLine"),!0)),this.own(e.after(this._executionActions,"onContinueToLine",i.hitch(this,"_performContinueToLine"),!0))},_performRunToLine:function(e){return this._temporaryBreakpointManager.setBreakpoint(e.lineNumber-1).then(i.hitch(this._actionService,"executeAction",o.RUN_ALL),(function(e){})),!0},_performContinueToLine:function(e){return this._temporaryBreakpointManager.setBreakpoint(e.lineNumber-1).then(i.hitch(this._debugServices,"debugContinue"),(function(e){})),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3846)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.executionservice.statehandler","rtc.execution.controlc","rtc.id","rtc.code.sections.model"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(1105)],o=i.dj.d(n,(function(e,t,i){return e(i,{_REQUEST_TYPE:"ServerSide",_EVAL_ENDED_CHANNEL:"/serverside/execution/end/",constructor:function(e,i,n,o,r){this._stateHandler=e,this._controlCService=i,this._editorId=n,this._sectionModel=o,this._messageService=r||t,this._currentlyRunningRequest=null,this._messageService.subscribe(this._EVAL_ENDED_CHANNEL+this._editorId,"_handleEvalEnded",this)},executeRequest:function(e){this._startRequest(e)},_startRequest:function(e){var t={evaluationRange:e.getEvaluationRange(),evaluationId:e.getRequestId(),request:e};this._stateHandler.stateChanged(this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED,t)},_handleEvalEnded:function(){this._sendSectionCompletionEvents(this._stateHandler.getCurrentRequest().getEvaluationRange());var e={didRunToCompletion:!0,errorType:"",errorLine:0,requestedEvaluationRange:this._stateHandler.getCurrentRequest().getEvaluationRange()};this._stateHandler.stateChanged(this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE,e),this.onRequestComplete()},_sendSectionCompletionEvents:function(e){for(var t=e.getStartPosition().getNode(),i=this._sectionModel.getSectionNumberForNode(t),n=e.getEndPosition().getNode(),o=this._sectionModel.getSectionNumberForNode(n),r=i;r<=o;r++)this._stateHandler.stateChanged(this._stateHandler.CHANGE_TYPE_ENUM.SECTION_EVAL_COMPLETE,r)},interrupt:function(e){this._controlCService.interrupt()},getType:function(){return this._REQUEST_TYPE},destroy:function(){this.inherited(arguments),this._messageService.unsubscribe(this._EVAL_ENDED_CHANNEL+this._editorId,"_handleEvalEnded",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3848)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.executionservice.statehandler","rtc.code.sections.model","rtc.linenumberservice","rtc.execution.controlc","rtc.execution.capabilityblacklist"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(363),i(297),i(455),i(619),i(1105)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r],{_REQUEST_TYPE:"Traditional",_RUN_FUNCTION:"matlab.internal.editor.evaluateCode",_TRADITIONAL_EXECUTION_EVAL_RESPONSE_PREFIX:"/traditionalexecution/evaluatecode/response_",constructor:function(e,o,r,a,s,l,c){this._editorId=e,this._stateHandler=o,this._sectionModel=r,this._lineNumberService=a,this._controlCService=s,this._capabilityBlacklist=l,this._mvm=c||t.getInstance(),this._messageService=n.getInstance(),this._runOptions=new i,this._aspectHandles=[],this._messageService.subscribe(this._TRADITIONAL_EXECUTION_EVAL_RESPONSE_PREFIX+this._editorId,"_handleTraditionalEvalResponse",this)},executeRequest:function(e){this._startRequest(e);var t=e.getTraditionalExecutionMessage(),i=[t.fileName,t.filePath,t.codeText,t.startIndex,t.executionTextLength,t.documentState,this._editorId];this._capabilityBlacklist.excludeCurrentCapabilitiesFromRunOptions(this._runOptions),this._mvm.feval(this._RUN_FUNCTION,0,i,this._runOptions).then((function(){}),(function(){}))},getType:function(){return this._REQUEST_TYPE},interrupt:function(e){this._controlCService.interrupt()},_startRequest:function(e){this._currentlyRunningRequest=e;var t={evaluationRange:e.getEvaluationRange(),evaluationId:e.getRequestId(),request:e};this._stateHandler.stateChanged(this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED,t)},_handleTraditionalEvalResponse:function(e){var t={data:{didRunToCompletion:e.data.DidRunToCompletion,errorType:e.data.ErrorType,errorLine:e.data.ErrorLine}};this._handleRequestCompleted(t)},_handleRequestCompleted:function(e){var t={didRunToCompletion:e.data.didRunToCompletion,errorType:e.data.errorType,errorLine:e.data.errorLine},i=t.didRunToCompletion,n=t.errorType;if(!this._currentlyRunningRequest)throw new Error("Received message to finish request, but there is no currently running request");var o={didRunToCompletion:i,errorType:n,requestedEvaluationRange:this._currentlyRunningRequest.getEvaluationRange()};this._stateHandler.stateChanged(this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE,o);var r=t.errorLine;this._sendSectionCompleteEvents(this._currentlyRunningRequest,n,r),this._currentlyRunningRequest=null,this.onRequestComplete(e)},_sendSectionCompleteEvents:function(e,t,i){t!==o.SYNTAX_ERROR_TYPE&&i>-1&&this._sendSectionCompletionEvents(e.getEvaluationRange(),i)},_sendSectionCompletionEvents:function(e,t){var i=e.getStartPosition().getNode(),n=this._sectionModel.getSectionNumberForNode(i),o=e.getEndPosition().getNode(),r=this._sectionModel.getSectionNumberForNode(o);if(t>0){var a=this._lineNumberService.getLineNumberFromCodeLineNumber(t);r=this._sectionModel.getSectionNumberForLine(a)-1}for(var s=n;s<=r;s++)this._stateHandler.stateChanged(this._stateHandler.CHANGE_TYPE_ENUM.SECTION_EVAL_COMPLETE,s)},destroy:function(){this.inherited(arguments),this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[],this._messageService.unsubscribe(this._TRADITIONAL_EXECUTION_EVAL_RESPONSE_PREFIX+this._editorId,"_handleTraditionalEvalResponse",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3850)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.editordataservice","rtc.backingstore","rtc.view.viewportopenedservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(492),i(281),i(208)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{_EDITOR_OPEN:"/embeddedoutputs/editor/start",_EDITOR_CLOSE:"/embeddedoutputs/editor/stop",_LIFE_CYCLE_FEATURE_ID:"matlab.code.embeddedoutputs.evaluation.lifecycle",constructor:function(e,i,n,o,r){this._rtcId=e,this._editorDataService=i,this._viewportOpenedServiceWrapper=o,this._messageService=r||t,this._isBeingSerialized=!1,this._wasOpened=!1,setTimeout(this._initialize.bind(this,n),0)},serializePlugin:function(){return this._isBeingSerialized=!0,this._requestEDSFeature(),{wasSerialized:!0,wasOpened:this._wasOpened}},deserializePlugin:function(e){this._wasSerialized=e.wasSerialized,this._wasOpened=e.wasOpened},_initialize:function(e){this._requestEDSFeature(),this._wasSerialized||this._wasOpened||this._viewportOpenedServiceWrapper.whenInstanceAvailable(function(t){t.whenViewportOpened(this._handleEditorOpen.bind(this,e))}.bind(this))},_requestEDSFeature:function(){this._editorDataService.request(this._LIFE_CYCLE_FEATURE_ID,{id:this._rtcId,isSerializing:this._isBeingSerialized}).then((function(){}),(function(){}))},_handleEditorOpen:function(e){this._wasOpened=!0;var t={id:this._rtcId,shouldPrewarm:this._shouldPrewarm(e)};this._messageService.publish(this._EDITOR_OPEN,t)},_handleEditorClose:function(){this._wasOpened&&this._messageService.publish(this._EDITOR_CLOSE,this._rtcId)},_shouldPrewarm:function(e){return n.isLiveCodeFile(e)+""},destroy:function(){this._isBeingSerialized||this._handleEditorClose(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(228),i(210),i(203),i(205),i(1393)],o=i.dj.d(n,(function(e,t,i,n,o){return i(n,{requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.internaldocument","rtc.linenumberservice","rtc.focusservice","margin.statusactionbar.sectionsdecorator","margin.statusactionbar.stalesectionsdecorator","margin.statusactionbar.stalesectionsbackgrounddecorator","rtc.margin.execution.currentlinedecorator","margin.shared.decorations"]}},createInstance:function(e,i,n,r,a,s,l,c,d){var u=[a,s,l,c].concat(d),h=new o(e,i,r,u,500,null,!1);return t.add(h.getMarginElement(),"executionMargin"),h},priority:function(){return 1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3853)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.margin.execution","rtc.code.matlabfiletype","rtc.backingstore"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(281)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i,n){this._executionMargin=e,this._fileTypeService=i,this._backingStore=n,this._backingStore.hasLocationOnDisk()&&this._executionMargin.hideMargin(),this._backingStore.onSaveCompleted&&this.own(t.after(this._backingStore,"onSaveCompleted",this._updateMarginVisibility.bind(this))),this._fileTypeService.whenReady(this._updateMarginVisibility.bind(this))},_updateMarginVisibility:function(){this._fileTypeService.isScript()?this._executionMargin.showMargin():this._executionMargin.hideMargin()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(3855)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{isApplicable:[],createInstance:["matlab.execution.currentline","rtc.linenumberservice","matlab.code.codeblocklocationservice","rtc.preferences.service","rtc.service.documentloaded","rtc.internaldocument","rtc.executionmanager.viewservice","rtc.currentlinedecorator.contributors"]}},createInstance:function(e,t,o,r,a,s,l,c){var d=i.getInstance();return new n(e,t,o,d,r,a,s,l,c)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(211),i(213),i(203),i(204),i(807),i(808),i(1911)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return n(r,{_WIDTH:10,_NO_LINE:-1,_CSS_CLASS:"currentExecutingLine",_ANIMATION_LENGTH:750,_SMALLEST_OPACITY:.25,_LARGEST_OPACITY:.5,constructor:function(i,n,r,a,s,l,c,d,u){this._currentExecutionLineModel=i,this._lineNumberService=n,this._codeBlockLocationService=r,this._debugServices=a,this._preferences=s,this._documentLoadedService=l,this._internalDocument=c,this._executionManagerViewService=d,this._contributors=u||[],this._enabled=!0,this._currentLineDiv=t.create("div",{class:this._CSS_CLASS}),this._currentLineRange=null,this._animationTimer=null,this.own(e.after(this._currentExecutionLineModel,"onCurrentLineChanged",o.hitch(this,"_handleCurrentLineChanged"),!0)),this.own(e.after(this._debugServices,"onDBCont",o.hitch(this,"_startOrContinueAnimation"),!0))},enable:function(){this._enabled=!0},disable:function(){this._enabled=!1},getRangeDescriptions:function(){return this._currentLineRange&&this._enabled?[new a(this._currentLineDiv,this._currentLineRange.getStartPosition().getLine(),this._currentLineRange.getEndPosition().getLine(),this,!1,!1)]:[]},getWidth:function(){return this._WIDTH},getPriority:function(){return 7},getId:function(){return"CurrentExecutionLine"},_handleCurrentLineChanged:function(e){this._executionManagerViewService.executeViewAction(this._handleCurrentLineChangedAfterViewService.bind(this,e))},_handleCurrentLineChangedAfterViewService:function(e){this._documentLoadedService.whenDocumentLoadedWithText(o.hitch(this,(function(){this._codeBlockLocationService.whenReady(function(){if(-1===e||this._lineNumberService.getNumberOfCodeLines()<e)this._clearRange();else if(this._debugServices.isPaused)this._setRange(e,e),this._stopAnimation();else{var t=this._currentExecutionLineModel.getCurrentLineInMainScope();this._calculateAndSetRange(t)}}.bind(this))})))},_calculateAndSetRange:function(e){if(-1!==e){var t=this._codeBlockLocationService.getOutermostLoop(e);t&&!this._debugServices.isPaused?this._setRange(t.startLine,t.endLine):this._setRange(e,e)}else this._clearRange()},_clearRange:function(){this._currentLineRange&&this._currentLineRange.destroy(),this._currentLineRange=null,this._stopAnimation(),this.onUpdate()},_setRange:function(e,t){var i=this._lineNumberService.getLineNumberFromCodeLineNumber(e)+1,n=this._lineNumberService.getLineNumberFromCodeLineNumber(t)+1,o=null;this._currentLineRange&&this._currentLineRange.destroy(),this._contributors.some(function(e){var t=e.getRangeForCurrentLine(i,n);if(t)return o=t,!0}.bind(this)),o||(o=this._internalDocument.getRangeForLineColumn(i,1,n,1)),this._currentLineRange=o,this._currentLineRange.getStartPosition().setLive(!0),this._currentLineRange.getEndPosition().setLive(!0),this._startOrContinueAnimation(),this.onUpdate()},_startOrContinueAnimation:function(){this._codeBlockLocationService.whenReady(function(){null===this._animationTimer&&(this._animationTimer=s.startOpacityAnimation(this._preferences,this._currentLineDiv,this._ANIMATION_LENGTH,this._SMALLEST_OPACITY,this._LARGEST_OPACITY))}.bind(this))},_stopAnimation:function(){s.stopAnimation(this._animationTimer),this._animationTimer=null,i.set(this._currentLineDiv,"opacity","")},destroy:function(){this.inherited(arguments),this._currentLineRange&&this._currentLineRange.destroy(),this._currentLineRange=null,this._stopAnimation(),t.destroy(this._currentLineDiv),this._currentLineDiv=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(3857)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["debug.documentdebugservices","rtc.linenumberservice","rtc.code.executablelines","matlab.code.codeblocklocationservice","rtc.execution.range.utilities","rtc.executionservice.linenumbertracker","rtc.executionservice.statehandler"]}},createInstance:function(e,t,o,r,a,s,l){var c=i.getInstance();return new n(c,e,t,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(371),i(811),i(913)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(o,{constructor:function(e,t,n,o,a,s,l,c){this._debugServices=e,this._documentDebugServices=t,this._lineNumberService=n,this._executableLineService=o,this._codeBlockLocationService=a,this._executionRangeUtilities=s,this._lineNumberTracker=l,this._stateHandler=c,this._blockHandlers={},this._blockHandlers[r.FOR_LOOP]=i.hitch(this,"_buildRangeForLoop"),this._blockHandlers[r.WHILE_LOOP]=i.hitch(this,"_buildRangeForLoop"),this._blockHandlers[r.IF_STATEMENT]=i.hitch(this,"_buildRangeForConditional"),this._blockHandlers[r.FUNCTION_DEFINITION]=i.hitch(this,"_buildRangeForFunction")},getActionId:function(){return n.STEP_ACTION_ID},getRange:function(){return this._debugServices.isDebugging?this._buildRangeInDebugMode():this._buildRangeOutsideDebugMode()},willEnterDebugMode:function(){var e=this._getCurrentLineNumber();if(-1===e)return!0;var t=this._executableLineService.getNextExecutableCodeLine(e),i=this._codeBlockLocationService.getInnermostLoop(e);if(i&&i.endLine===e)return!0;if(-1===t)return!1;var n=this._codeBlockLocationService.getInnermostBlockOfType(e,r.FUNCTION_DEFINITION),o=this._codeBlockLocationService.getInnermostBlockOfType(t,r.FUNCTION_DEFINITION);return!(!n&&o)},willStartExecution:function(){return!this._debugServices.isDebugging},_buildRangeOutsideDebugMode:function(){var e=this._executableLineService.getFirstExecutableCodeLine();if(-1===e)return this._INVALID_RANGE;var t=this._lineNumberService.getLineNumberFromCodeLineNumber(e)+1;return this._executionRangeUtilities.buildRange(1,t)},_buildRangeInDebugMode:function(){var e=this._getCurrentLineNumber();if(-1===e)return this._INVALID_RANGE;var t=this._codeBlockLocationService.getInnermostBlockOfType(e,null);return this._getBlockHandler(t)(e,t)},_getCurrentLineNumber:function(){var e=this._documentDebugServices.getExecutionPoint();if(!e||null===e.getLineNumber())return-1;if(this._stateHandler.isRunningRequestInvalid())return-1;var t=e.getLineNumber(),i=this._lineNumberTracker.getNewLineNumberFromOldLineNumber(t-1);return this._lineNumberService.getCodeLineNumberFromLineNumber(i)},_getBlockHandler:function(e){var t=null;return e&&(t=this._blockHandlers[e.type]),t||i.hitch(this,"_buildNormalStepRange")},_buildRangeForConditional:function(e,t){return e===t.startLine?this._executionRangeUtilities.buildRangeForCodeLines(t.startLine,t.endLine,!1):this._buildNormalStepRange(e)},_buildRangeForLoop:function(e,t){return e===t.startLine||e===t.endLine?this._executionRangeUtilities.buildRangeForCodeLines(t.startLine,t.endLine,!1):this._buildNormalStepRange(e)},_buildRangeForFunction:function(e,t){return e===t.endLine?this._executionRangeUtilities.buildRangeForCodeLines(e,e):this._buildNormalStepRange(e)},_buildNormalStepRange:function(e){var t=this._alterNextLineConsideringScope(e),i=this._lineNumberService.getLineNumberFromCodeLineNumber(e)+1;return this._executionRangeUtilities.buildRange(i,t)},_alterNextLineConsideringScope:function(e){var t=this._executableLineService.getNextExecutableCodeLine(e);if(-1===t)return this._executionRangeUtilities.getFinalLineOfMainScope();var i=this._codeBlockLocationService.getInnermostBlockOfType(e,r.FUNCTION_DEFINITION),n=this._codeBlockLocationService.getInnermostBlockOfType(t,r.FUNCTION_DEFINITION);return i||n?!i&&n?this._executionRangeUtilities.getFinalLineOfMainScope():i.id===n.id?this._lineNumberService.getLineNumberFromCodeLineNumber(t)+1:this._lineNumberService.getLineNumberFromCodeLineNumber(this._executableLineService.getNextExecutableCodeLine(n.endLine))+1:this._lineNumberService.getLineNumberFromCodeLineNumber(t)+1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(1926)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["debug.documentdebugservices","rtc.linenumberservice","matlab.code.codeblocklocationservice","rtc.execution.range.utilities","rtc.executionservice.linenumbertracker","rtc.executionservice.statehandler"]}},createInstance:function(e,t,o,r,a,s){var l=i.getInstance();return new n(l,e,o,t,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(1927)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{isApplicable:[],createInstance:["debug.documentdebugservices","rtc.linenumberservice","rtc.execution.range.utilities","matlab.code.codeblocklocationservice"]}},createInstance:function(e,t,o,r){var a=i.getInstance();return new n(a,e,t,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(3861)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["debug.documentdebugservices","rtc.linenumberservice","rtc.execution.range.utilities","matlab.code.codeblocklocationservice"]}},createInstance:function(e,t,o,r){var a=i.getInstance();return new n(a,e,t,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(371),i(1927)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t,i,n,o){},getActionId:function(){return t.CONTINUE_TO_LINE_ACTION_ID},willStartExecution:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1928),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.code.sections.model","rtc.code.sections.current","rtc.execution.range.utilities"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3864),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.code.sections.current","rtc.execution.range.utilities"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(266),i(371),i(811)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t){this._currentSectionModel=e,this._executionRangeUtilities=t},getActionId:function(){return i.RUN_SECTION_END},getRange:function(){var e=this._currentSectionModel.getCurrentSection();if(!e)return this._INVALID_RANGE;var t=e.start.getLine(),i=this._executionRangeUtilities.getFinalLineOfMainScope();return this._executionRangeUtilities.buildRange(t,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3866),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.code.sections.model","rtc.code.sections.current","rtc.execution.range.utilities"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(266),i(371),i(1928)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t,i){},getActionId:function(){return i.RUN_SECTION_ADVANCE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3868)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.execution.range.utilities"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(266),i(371),i(811)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._executionRangeUtilities=e},getActionId:function(){return i.RUN_ALL},getRange:function(){var e=this._executionRangeUtilities.getFinalLineOfMainScope();return this._executionRangeUtilities.buildRange(1,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(3870)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["debug.documentdebugservices","rtc.linenumberservice","matlab.code.codeblocklocationservice","rtc.execution.range.utilities","rtc.executionservice.linenumbertracker","rtc.executionservice.statehandler"]}},createInstance:function(e,t,o,r,a,s){var l=i.getInstance();return new n(l,e,o,t,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(371),i(1926)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t,i,n,o,r){},getActionId:function(){return t.CONTINUE_ACTION_ID}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3872)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.execution.range","rtc.execution.range.utilities"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i,n){return t(n,{_INVALID_RANGE:null,constructor:function(e,t){this._executionRangeUtilities=t,this._actionRangeMap={},this._initializeMap(e)},_initializeMap:function(e){e.forEach((function(e){this._actionRangeMap[e.getActionId()]=e}),this)},getRangeForAction:function(e,t,i){if(!this._actionRangeMap.hasOwnProperty(e))return this._INVALID_RANGE;var n=this._actionRangeMap[e].getRange(t);if(n&&i){var o=n,r=this.willStartExecution(e);n=this._executionRangeUtilities.trimRangeToBreakpoints(o,r),o.destroy()}return n},willActionEnterDebugMode:function(e,t,i){if(!this._actionRangeMap.hasOwnProperty(e))return!1;var n=this._actionRangeMap[e].willEnterDebugMode();if(!n&&i){var o=this.getRangeForAction(e,t,i);o&&(n=this._willHitBreakpoint(o),o.destroy())}return n},willStartExecution:function(e){return!!this._actionRangeMap.hasOwnProperty(e)&&this._actionRangeMap[e].willStartExecution()},_willHitBreakpoint:function(e){var t=this._executionRangeUtilities.doesRangeEndAtBreakpoint(e),i=e.getStartPosition().getLine()===e.getEndPosition().getLine();return t=t&&!i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3874)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.internaldocument","rtc.code.sections.model","rtc.linenumberservice","debug.breakpointmodel"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(3875),i(581)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e,t,i,n,o){this._document=e,this._internalDocument=t,this._sectionModel=i,this._lineNumberService=n,this._breakpointDataModel=o},getFinalLineOfMainScope:function(){var e=-1,t=this._sectionModel.getSections();return t.some((function(i,o){var r=i[n.LOCAL_FUNCTION_ATTRIBUTE];if(r&&r.length>0&&o>0)return e=t[o-1].end.getLine(),!0})),-1===e&&(e=this._internalDocument.getMaxLineNumber()),e},trimRangeToBreakpoints:function(e,t){var i=e.getStartPosition().getLine(),n=e.getEndPosition().getLine(),o=this._breakpointDataModel.getAllBreakpoints(),r=this._internalDocument.getMaxLineNumber()+1,a=!1;return o.forEach((function(e){if(e.isEnabled){var o=this._lineNumberService.getLineNumberFromCodeLineNumber(e.zeroBasedLineNumber+1)+1,s=i<o&&o<n;t&&(s=s||i===o),s&&o<r&&(r=o,a=!0)}}),this),a?this.buildRange(i,r,!0):this.buildRange(i,n,e.isConfident())},doesRangeEndAtBreakpoint:function(e){var t=e.getEndPosition().getLine(),i=this._lineNumberService.getCodeLineNumberFromLineNumber(t-1);return-1!==i&&this._breakpointDataModel.hasBreakpointAtLine(i-1)},buildRange:function(e,t,n){var o=this._document.createLinePositionInLine(e-1,!1),r=this._document.createLinePositionInLine(t-1,!1);return void 0===n&&(n=!0),new i(o,r,n)},buildRangeForCodeLines:function(e,t,i){var n=this._lineNumberService.getLineNumberFromCodeLineNumber(e)+1,o=this._lineNumberService.getLineNumberFromCodeLineNumber(t)+1;return this.buildRange(n,o,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(266)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i){this.inherited(arguments),this._isConfident=i},isConfident:function(){return this._isConfident},isEqualTo:function(e){return this.inherited(arguments)&&this._isConfident===e._isConfident}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1929)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.executionservice.statehandler","rtc.code.codechange","rtc.execution.executionmanager"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1930)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.codechange","rtc.execution.executionmanager"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1931)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.keyhandler","rtc.code.sections.model","rtc.code.sections.current","rtc.execution.executionmanager","rtc.contextmenu.documentcontributor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3880)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.keyhandler","rtc.code.sections.model","rtc.code.sections.current","rtc.execution.executionmanager","rtc.actiondelegationservice"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(253),i(245),i(207),i(275),i(371),i(1398)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(l,{constructor:function(e,i,n,o,r,l){this._actionService=e,this._keyHandler=i,this._sectionModel=n,this._currentSectionModel=o,this._executionManager=r,this._debugServices=a.getInstance(),this._actionDelegationService=l,this._actions=[{id:s.RUN_ALL,enabled:!0,callback:t.hitch(this,"_runAll")},{id:s.RUN,enabled:!0,key:"f5",platformKey:{mac:"meta_alt_r"}}],this._actionService.loadActions(this._actions),this._addOtherKeyBindings(),this._actionDelegationService.registerAction(s.RUN,s.RUN_ALL),this._isEnabled=!1},_runAll:function(){var e=this._actionService.getAction(s.RUN_ALL);return!(!e||!e.enabled)&&(this._executionManager.executeAllSections(),!0)},_getActionEnablement:function(){return!this._debugServices.isDebugging},_updateActionState:function(){var e=this._getActionEnablement();this._actionService.updateAction(s.RUN_ALL,{enabled:e})},_addOtherKeyBindings:function(){this._keyHandler.addBinding({platformKey:{mac:"f5"}},s.RUN)},_removeOtherKeyBindings:function(){this._keyHandler.removeBinding({platformKey:{mac:"f5"}},s.RUN)},destroy:function(){this.inherited(arguments),this._removeOtherKeyBindings()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3882),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.actionservice","rtc.executionservice.statehandler","rtc.cursor","rtc.execution.executionmanager","rtc.code.codechange","rtc.execution.triggers.evalonlinechange","rtc.execution.triggers.liveeval","rtc.execution.triggers.manualall","rtc.execution.triggers.manualsection"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(275),i(1929),i(1930),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_ACTION_STATES:{AUTO:"auto",MANUAL:"manual"},constructor:function(e,t,i,n,o,r,a,s,l){this._actionService=e,this._stateHandler=t,this._cursor=i,this._executionManager=n,this._codeChangeService=o,this._evalOnLineChangeTrigger=r,this._liveEvalTrigger=a,this._manualAllTrigger=s,this._manualSectionTrigger=l,this.enableTriggers()},enableTriggers:function(){if(!this._enabled){var e=[{id:"rtc_embedded_outputs_auto",enabled:!0,selected:!1,callback:t.hitch(this,"setEvaluationState",this._ACTION_STATES.AUTO),isEvalOnLineChange:t.hitch(this,"_isEvalOnLineChange")},{id:"rtc_embedded_outputs_manual",enabled:!0,selected:!1,callback:t.hitch(this,"setEvaluationState",this._ACTION_STATES.MANUAL)}];this._actionService.loadActions(e),this._autoTrigger=this._evalOnLineChangeTrigger,this.setEvaluationState(this._ACTION_STATES.MANUAL),this._manualAllTrigger.enable(),this._manualSectionTrigger.enable(),this._enabled=!0}},disableTriggers:function(){this._enabled&&(this._manualAllTrigger.disable(),this._manualSectionTrigger.disable(),this._liveEvalTrigger.disable(),this._evalOnLineChangeTrigger.disable(),this._actionService.removeAction("rtc_embedded_outputs_auto"),this._actionService.removeAction("rtc_embedded_outputs_manual"),this._enabled=!1)},_switchAutoEval:function(){this._autoTrigger.disable(),this._isEvalOnLineChange()?this._autoTrigger=this._liveEvalTrigger:this._autoTrigger=this._evalOnLineChangeTrigger,this._autoTrigger.enable()},_isEvalOnLineChange:function(){return this._autoTrigger===this._evalOnLineChangeTrigger},_updateActionStates:function(e){this._actionService.updateAction("rtc_embedded_outputs_auto",{selected:e}),this._actionService.updateAction("rtc_embedded_outputs_manual",{selected:!e})},setEvaluationState:function(e){this._currentActionState=e;var t=e===this._ACTION_STATES.AUTO;return t?this._autoTrigger.enable():this._autoTrigger.disable(),this._updateActionStates(t),!0},getEvaluationState:function(){return this._currentActionState},destroy:function(){this.disableTriggers()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3884),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.actionservice","rtc.execution.executionmanager"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,i){this._actionService=e,this._executionManager=i,this._actions=[{id:"rtc_interrupt",enabled:!0,key:"ctrl_c",callback:t.hitch(this,"_interruptCallback")}],this._actionService.loadActions(this._actions)},_interruptCallback:function(){return this._executionManager.interrupt(),!0},destroy:function(){this._actionService.removeAction("rtc_interrupt")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3886),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.cursor","rtc.actionservice","rtc.navigate.find.dialoghandler","rtc.navigate.find.actions","rtc.domnode"]}},createInstance:function(e,i,n,o,r,a,s){return new t(e,i,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(207),i(208),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_FIND_STRIP_CONTAINER_CLASS:"findStripContainer",constructor:function(e,i,n,a,s,l,c){this._document=e,this._internalDocument=i,this._cursor=n,this._actionService=a,this._findDialogHandler=s,this._findReplaceActions=l,this._dialogInstance=null,this._withReplaceOption=!1,this._findStripContainer=null,this._findStripContainer=this._createTopRightStripUnder(c),this._actions=[{id:r.FIND_STRING.FIND_ACTION,enabled:!0,key:"ctrl_f",platformKey:{mac:"meta_f"},callback:t.hitch(this,"_createFindDialogCallback")},{id:r.FIND_STRING.FIND_NEXT_ACTION,enabled:!1,key:"f3",platformKey:{mac:"meta_g"},callback:t.hitch(this,"_findNextCallback")},{id:r.FIND_STRING.FIND_PREVIOUS_ACTION,enabled:!1,key:"shift_f3",platformKey:{mac:"meta_shift_g"},callback:t.hitch(this,"_findPreviousCallback")},{id:r.FIND_STRING.FIND_FORWARD_ACTION,enabled:!0,key:"ctrl_shift_s",platformKey:{mac:"ctrl_s"},callback:t.hitch(this,"_findForwardCallback")},{id:r.FIND_STRING.FIND_BACKWARD_ACTION,enabled:!0,key:"",platformKey:{mac:"ctrl_r"},callback:t.hitch(this,"_findBackwardCallback")},{id:r.FIND_STRING.FIND_SELECTION_ACTION,enabled:!1,key:"ctrl_f3",platformKey:{mac:"meta_e"},callback:t.hitch(this,"_findSelectionCallback")},{id:r.FIND_STRING.FIND_CLOSE_ACTION,enabled:!1,key:"escape",platformKey:{mac:"escape"},callback:t.hitch(this,"_closeTrigger")}],this._actionService.loadActions(this._actions),this.own(o.after(this._cursor,"onChange",t.hitch(this,"_handleCursorChange")))},getActions:function(){return this._actions},setActions:function(e=[]){this._actions=e,this._actionChangeCallback()},_actionChangeCallback:function(){this._findDialogHandler.isOpened()&&(this.closeTrigger(),this.createFindDialog())},_createTopRightStripUnder:function(e){return i.create("div",{id:"findStripContainer_"+(this._internalDocument.root.uid||0),class:this._FIND_STRIP_CONTAINER_CLASS},e,"last")},_handleCursorChange:function(){this._actionService&&this._actionService.updateAction(r.FIND_STRING.FIND_SELECTION_ACTION,{enabled:this._cursor.hasSelection()})},_createFindDialogCallback:function(){return this.setReplaceStripMode(!1),this.createFindDialog(),!0},_findNextCallback:function(){return this.find({backward:!1,keyFind:!0})},_findPreviousCallback:function(){return!!this.find({backward:!0,keyFind:!0})},_findForwardCallback:function(){return this._findDialogHandler.isDocumentHasFocus()?this._createFindDialogCallback():this.find({backward:!1,keyFind:!0})},_findBackwardCallback:function(){return this._findDialogHandler.isDocumentHasFocus()?this._createFindDialogCallback():!!this.find({backward:!0,keyFind:!0})},_findSelectionCallback:function(){return this.find({backward:!1,selectionKey:!0})},registerReplaceFeature:function(e=[]){this._findDialogHandler.registerReplaceFeature(e),this._actions=this._actions.concat(e)},registerSynchronizeFeature:function(){},createFindDialog:function(e=!1){return this._actionService.updateAction(r.FIND_STRING.FIND_CLOSE_ACTION,{enabled:!0}),this._findDialogHandler.createFindDialog(e?"":this._cursor.selectedText(),this.getActions(),this._findStripContainer,t.hitch(this,"closeCallBack"),t.hitch(this,"stateChange"),e)},setReplaceStripMode:function(e){this._findDialogHandler.setReplaceStripMode(e)},_closeTrigger:function(){return this.closeTrigger(),!0},closeTrigger:function(){this._findDialogHandler.closeTrigger()},stateChange:function(e){return e},closeCallBack:function(){this._actionService.updateAction(r.FIND_STRING.FIND_CLOSE_ACTION,{enabled:!1})},find:function(e){return this._findReplaceActions.find(e,"shortcut")},_replace:function(e,t){return this._findReplaceActions.replace(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3888),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.actionservice","rtc.navigate.find"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(251)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,n){this._findHandler=n,this._actionService=e,this._actions=[{id:i.FIND_STRING.REPLACE_ACTION,enabled:!0,key:"ctrl_h",platformKey:{mac:"meta_alt_f"},callback:t.hitch(this,"_openFindDialogWithReplace")}],this._actionService.loadActions(this._actions),this._findHandler.registerReplaceFeature(this._actions)},_openFindDialogWithReplace:function(){return!!this._actionService.getAction(i.FIND_STRING.REPLACE_ACTION).enabled&&(this._findHandler.setReplaceStripMode(!0),this._findHandler.createFindDialog(),!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3890)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.navigate.find","rtc.focusservice","rtc.internaldocument","rtc.settings.backingservice","rtc.document.info"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(1106)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_SETTINGS_PATH:"matlab.editor.find.isOpened",_SETTINGS_GROUP:["matlab","editor","find"],_SETTING_NAME:"isOpened",constructor:function(e,n,r,a,s){this._findHandler=e,this._focusService=n,this._internalDocument=r,this._rtcBackingService=a,this._documentInfo=s,this._isSynchronizerEnabled=!1,this._findPreference=o,this._docId=this._internalDocument.root.uid,this.own(i.after(this._focusService,"onFocus",t.hitch(this,"_shouldCreateFindDialog"))),this.own(i.after(this._findHandler,"registerSynchronizeFeature",t.hitch(this,"_enableSyncOpenSynchronizer"))),this.own(i.after(this._findHandler,"createFindDialog",t.hitch(this,"_createFindDialogListener"))),this.own(i.after(this._findHandler,"closeCallBack",t.hitch(this,"_closeCallBackListener"))),this._rtcBackingService&&this._rtcBackingServiceListener(),this._isVisibleYet=!1},_enableSyncOpenSynchronizer:function(){this._isSynchronizerEnabled=!0},_shouldCreateFindDialog:function(){if(1!==this._documentInfo.getState()||this._isVisibleYet){var e=this._findPreference.getActiveDocId();e&&e!==this._docId&&(this._findPreference.getOpenedState()?this._findHandler.createFindDialog(!0):this._findHandler.closeTrigger())}},_createFindDialogListener:function(){this._isVisibleYet=!0,this._findPreference.setOpenedState(!0),this._findPreference.setActiveDocId(this._docId),this._isSynchronizerEnabled&&this._rtcBackingServiceUpdater({isOpened:!0,docId:this._docId})},_closeCallBackListener:function(){this._findPreference.setOpenedState(!1),this._isSynchronizerEnabled&&this._rtcBackingServiceUpdater({isOpened:!1,docId:this._docId})},_rtcBackingServiceListener:function(){this._rtcBackingService.getSettingValue(this._SETTINGS_PATH).then(function(e){e&&e.SettingValue&&this._setStateInPreference(JSON.parse(e.SettingValue))}.bind(this)),this.own(this._rtcBackingService.listenTo(this._SETTINGS_GROUP,this._SETTING_NAME,function(e){e.newValue&&this._setStateInPreference(JSON.parse(e.newValue))}.bind(this)))},_setStateInPreference:function(e){this._isSynchronizerEnabled&&(e.hasOwnProperty("isOpened")&&this._findPreference.setOpenedState(e.isOpened),e.hasOwnProperty("docId")&&this._findPreference.setActiveDocId(e.docId))},_rtcBackingServiceUpdater:function(e){this._rtcBackingService&&this._rtcBackingService.setSettingValue(this._SETTINGS_PATH,JSON.stringify(e),this._rtcBackingService.SettingLevel.TEMPORARY)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3892)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.navigate.find","rtc.settings.backingservice","rtc.navigate.find.synchronizer.contributor"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(1106)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_SETTINGS_GROUP:["matlab","editor","find"],_SETTING_NAME:"state",constructor:function(e,n,r){this._findPreference=o,this._findHandler=e,this._rtcBackingService=n,this._findHandler.registerSynchronizeFeature(),this.own(i.after(this._findHandler,"stateChange",t.hitch(this,"_stateChangeListener"))),this._setSyncContributor(r)},_setSyncContributor:function(e){var n,o,r,a;this._listenerCallback=null,"object"==typeof e?(this._listenerCallback=e.listenState,this.own(i.after(e,"setState",t.hitch(this,"_setStateInPreference")))):("string"==typeof e&&(r=e.split(".")).length>0&&(o=r[a=r.length-1],n=r.splice(0,a)),this._settingGroup=n||this._SETTINGS_GROUP,this._settingName=o||this._SETTING_NAME,this._rtcBackingServiceListener())},_stateChangeListener:function(e){e&&(this._listenerCallback?this._listenerCallback(e):this._rtcBackingServiceUpdater(e))},_setStateInPreference:function(e){e.hasOwnProperty("history")&&this._findPreference.refillHistory(e.history),e.hasOwnProperty("width")&&this._findPreference.setStripWidth(e.width),e.hasOwnProperty("isMatchCaseChecked")&&this._findPreference.setMatchCaseChecked(e.isMatchCaseChecked),e.hasOwnProperty("isWholeWordChecked")&&this._findPreference.setWholeWordChecked(e.isWholeWordChecked),e.hasOwnProperty("isReplaceOpened")&&this._findPreference.setReplaceStripMode(e.isReplaceOpened)},_rtcBackingServiceListener:function(){this._rtcBackingService.getSetting(this._settingGroup,this._settingName).then(function(e){e&&e.value&&this._setStateInPreference(JSON.parse(e.value))}.bind(this)),this.own(this._rtcBackingService.listenTo(this._settingGroup,this._settingName,function(e){this._setStateInPreference(JSON.parse(e.newValue))}.bind(this)))},_rtcBackingServiceUpdater:function(e){this._rtcBackingService.setSetting(this._settingGroup,this._settingName,JSON.stringify(e))},destroy:function(){this._rtcBackingService=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3894),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.cursor","rtc.actionservice","rtc.document","rtc.internaldocument","rtc.view"]}},createInstance:function(e,i,n,o,r){return new t(e,i,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(1107),i(3895),i(1106),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(t,{constructor:function(e,t,n,o,a){this._cursor=e,this._actionService=t,this._document=n,this._internalDocument=o,this._findPreference=r,this._rtcView=a,this.own(i.after(o,"onDocumentReset",this._handleDocumentChanged.bind(this),!0)),this.own(i.after(o,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0)),this.own(i.after(e,"onChange",this._handleCursorChange.bind(this),!0))},_handleDocumentChanged:function(){this._cachedResult=null},_handleCursorChange:function(){this._cachedResult&&this._cachedResult.hasCurrentOccurrence()&&(this._pendingCursorChange||this._cursor.getSelection()||this._cachedResult.clearCurrentOccurrence())},clearHighlight:function(){},find:function(e,t){var i=null;if(e.onDocSwitch)return i=this._findOccurencesOnly(e);if(i=this._findOnce(e),e.onDocChange)return i;if(i){var n=i.getCurrentOccurrence();if(0===i.getAllOccurrences().length){var o=this._cursor.getPosition();n.line=o.line,n.startColumn=o.column,n.endColumn=o.column}this._pendingCursorChange=!0,this._rtcView&&!this._rtcView.isLineInView(n.line+1,!0)&&this._rtcView.scrollNearestVisibleLineToPercent(n.line+1,50),this._rtcView.scrollLineColumnIntoView(n.line+1,n.startColumn+1),this._cursor.setSelectionLineColumn(n.line+1,n.startColumn+1,n.line+1,n.endColumn+1,!0),this._pendingCursorChange=!1}return i.getAllOccurrences().length>0&&this.onFind(i,t),i},_findOccurencesOnly:function(e){var t=this._getFindObject(e);return o.find(this._internalDocument,t.text,t,this._cachedResult,"showOnlyCount")},onFind:function(e,t){},_findOnce:function(e){var t={};e.keyFind?t=this._findPreference.getLastSearchOptions():e.selectionKey?(t.text=this._cursor.selectedText(),t.caseSensitive=!1,t.wholeWords=!1):t=this._getFindObject(e),t.backward=e.backward||!1,t.deadEnd=this._findPreference.getFindDeadEnd(),"boolean"==typeof e.continueAtStart&&(t.continueAtStart=e.continueAtStart);var i=this._getProposedStartPosition(t);if(this._cursor.hasSelection()){let e=this._cursor.getSelection(),i=t.backward===e.isReversed()?e.getEndPosition():e.getStartPosition();this._cursor.setPosition(i)}t.startAt=i||this._cursor.getPosition();var n=o.find(this._internalDocument,t.text,t,this._cachedResult);return n&&(this._cachedResult=n),this._findPreference.setLastSearchOptions(t.text,t.caseSensitive,t.wholeWords),this._actionService.updateAction(a.FIND_STRING.FIND_NEXT_ACTION,{enabled:!0}),this._actionService.updateAction(a.FIND_STRING.FIND_PREVIOUS_ACTION,{enabled:!0}),n},_getProposedStartPosition:function(e){var t,i,n,o,r;return e.fromCurOccurrence||e.onDocChange?(r=e.text,(o=this._cursor.getSelection())?((t=(i=o.getStartPosition()).getLineColumn()).line=t.line-1,t.column=i.getOffset(),n=t.column+r.length):(t=this._cursor.getPosition(),(n=this._cursor.getOffset())>=r.length&&(t.column=n-r.length)),this._getPositionAdjacentCursor(e,t)):null},_getPositionAdjacentCursor:function(e,t){var i=this._cursor.getNode().getText(),n=e.text;!0!==e.caseSensitive&&(i=i.toLowerCase(),n=n.toLowerCase());var o=i.indexOf(n,t.column);return-1===o&&(o=i.lastIndexOf(n)),t.column=o>=0?o:t.column,t},_getFindObject:function(e={}){return{text:e.hasOwnProperty("text")?e.text:this._findPreference.getFindText(),backward:e.backward||!1,caseSensitive:this._findPreference.getMatchCaseChecked(),wholeWords:this._findPreference.getWholeWordChecked(),isFileReadOnly:this._findPreference.getReadOnlyFileStatus(),fromCurOccurrence:e.fromCurOccurrence||!1,onDocChange:e.onDocChange||!1,onDocSwitch:e.onDocSwitch||!1,deadEnd:this._findPreference.getFindDeadEnd()}},_setPositionAndScrollView:function(e){if(e)return this._cursor.setPosition(e),!0},replace:function(e,t){var i=this._getFindObject();if(""!==i.text&&i.text!==e&&!this._internalDocument.isReadOnly()){var o=this._document.startBlockEdit();o.setEventCoalescingType(n.COALESCING_TYPE.COMBINE_INLINE_ONLY),t?this._replaceAllOccurrence(i,e):this._replaceOccurrence(i,e),this._document.endBlockEdit(o),this.onReplace()}},onReplace:function(){},_replaceOccurrence:function(e,t){var i=this._cursor.selectedText().toLowerCase()===e.text.toLowerCase();return!!(this._cursor.hasSelection()&&i||this.find({backward:!1}))&&(this._replaceSelectionWithText(t),!0)},_replaceAllOccurrence:function(e,t){var i=this._findOnce({backward:!1,continueAtStart:!1,isFromReplaceAll:!0});if(i){for(var n=this._cursor.getPosition(),o=i.getAllOccurrences(),r=o.length-1;r>=0;r--)this._replaceOccurrenceWithoutScrolling(t,o[r]);this._setPositionAndScrollView(n)}},_replaceOccurrenceWithoutScrolling:function(e,t){this._cursor.setLineColumn(t.line+1,t.startColumn+1),this._cursor.isCursorReadOnly()||this._document.replaceText(e,t.line+1,t.startColumn+1,t.line+1,t.endColumn+1)},_replaceSelectionWithText:function(e){var t=this._cursor.getSelection();if(t){var i=t.getStartPosition().getLineColumn(),n=t.getEndPosition().getLineColumn();this._document.replaceText(e,i.line,i.column,n.line,n.column)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3896),i(3897),i(3898)],o=i.dj.d(n,(function(e,t,i){return{_SPECIAL_CHARS:["!","(",")","[","]","{","}","-","+","*","=",".","?","#","$","/",":",";","%","'","&","<",">","^","@","\\","~",",",'"',"|","`"],_SPACE:" ",_NO_RESULT_FOUND:-1,_SHOW_ONLY_COUNT:-2,find:function(e,t,n,o,r){var a=this._getConfiguration(t,n);if(o)if(o.findOptionsMatched(a)){if(o.hasCurrentOccurrence())return this._getNextOccurrenceFromCache(o,a)}else o=null;this.visitedLines=[],this.isLimitExceed=!1;var s,l=null;if(o?(s=o.getAllOccurrences(),this.isLimitExceed=o.isLimitExceed(),this.visitedLines=o.getVisitedLines()):s=this._findAll(e,a,n.deadEnd),this.isLimitExceed&&(s=this._findInLinesTillResult(e,s,a),l=this.visitedLines),r)return new i(s,a,{},this._SHOW_ONLY_COUNT,l);var c=this._findNext(e,s,a);if(!c){var d={startColumn:a._startColumn||0,line:a._startLine||0,endColumn:a._startColumn||0};return new i(s,a,d,this._NO_RESULT_FOUND,l)}return new i(s,a,c.currentOccurrence,c.currentOccurrenceIndex,l)},_findInLinesTillResult:function(e,t,i){var n,o,r,a,s;for(o=i.getStartLine(),r=e.getMaxLineNumber(),s=!0;s;){if(a=null,o>r||o<0)return t;n=i.isSearchForward()?(n=void 0===this.visitedLines[o]?o:o+1)>r-1?0:n:(n=void 0===this.visitedLines[o]?o:o-1)<=0?r-1:n,void 0===this.visitedLines[n]?s=(a=this._findInLine(e,n,i))&&0===a.length:this.visitedLines[n]>0&&(s=!1),o=n}return a?this._placeResultInLineOrder(t,i,a):t},_placeResultInLineOrder:function(e,t,i){if(i){for(var n=i[0].line,o=[],r=e.length-1;n<e[r].line;){var a=e.pop();o.push(a),r--}o.reverse(),e=e.concat(i).concat(o)}return e},_getNextOccurrenceFromCache:function(e,t){var n,o=e.getAllOccurrences(),r=e.getCurrentOccurrenceIndex();n=o[r=t.isSearchForward()?(r+1)%o.length:(r+o.length-1)%o.length];var a=this.isLimitExceed?this.visitedLines:null;return new i(o,t,n,r,a)},_findNext:function(e,i,n){if(0===i.length)return null;var o,r=n.getStartLine(),a=n.getStartColumn(),s={line:r,startColumn:a,endColumn:a+n.getFindText().length};if(n.isSearchForward()){if(-1===(o=t.searchNextElement(i,s,"line","startColumn")))return{currentOccurrence:i[0],currentOccurrenceIndex:0}}else if(-1===(o=t.searchPreviousElement(i,s,"line","startColumn")))return{currentOccurrence:i[i.length-1],currentOccurrenceIndex:i.length-1};return{currentOccurrence:i[o],currentOccurrenceIndex:o}},_findAll:function(e,t,i){for(var n,o=[],r=0,a=e.getMaxLineNumber()-1;r<=a;)n=this._findInLine(e,r,t),o=o.concat(n),i&&o.length>=i&&(a=r,this.isLimitExceed=!0),r++;return o},_findInLine:function(e,t,i){var n;return n=i.isRegexp()?this._findAllInLineByRegExp(e,t,i):this._findAllInLineByText(e,t,i),this.visitedLines[t]=n.length,n},_getConfiguration:function(t,i){var n=new e;n.setFindText(t);var o=0,r=0;(i=i||{}).startAt&&(o=i.startAt.line,r=i.startAt.column),n.setStartLine(o),n.setStartColumn(r);var a=!(i.hasOwnProperty("backward")&&i.backward);n.setSearchDirection(a);var s=i.hasOwnProperty("caseSensitive")&&i.caseSensitive||!1;n.setCaseSensitive(s);var l=i.hasOwnProperty("wholeWords")&&i.wholeWords||!1;n.setWholeWord(l);var c="[\\s"+this._SPECIAL_CHARS.join("\\")+"]",d=new RegExp(c).exec(t);l&&!d&&(n.setRegexp(!0),t="(?:^|\\s|["+this._SPECIAL_CHARS.join("\\")+"])"+t+("(?:$|\\s|["+this._SPECIAL_CHARS.join("\\")+"])"));return n.setSearchFor(t),n},_findAllInLineByText:function(e,t,i){var n=i.getSearchFor();if(!n)return[];var o=this._getTextInLine(e,t),r=[];i.isCaseSensitive()||(o=o.toLowerCase(),n=n.toLowerCase());for(var a=0;-1!==a;)if(-1!==(a=o.indexOf(n,a))){var s={line:t,startColumn:a,endColumn:a+n.length};i.isWholeWord()?this._checkWholeWordForSpecialChar(o,n,a)&&r.push(s):r.push(s),a+=n.length}return r},_checkWholeWordForSpecialChar:function(e,t,i){return this._checkAdjacentForWholeWord(e,t,0,i-1)&&this._checkAdjacentForWholeWord(e,t,t.length-1,i+t.length)},_checkAdjacentForWholeWord:function(e,t,i,n){var o=t.charAt(i);if(o===this._SPACE)return!0;if(this._SPECIAL_CHARS.includes(o))return!0;var r=e.charAt(n);return!(""!==r&&r!==this._SPACE&&!this._SPECIAL_CHARS.includes(r))},_findAllInLineByRegExp:function(e,t,i){var n=this._getTextInLine(e,t),o=i.getFindText(),r=i.getSearchFor(),a=o.length,s=i.isCaseSensitive(),l=i.isWholeWord(),c=0,d=n.length,u=[];for(s||(n=n.toLowerCase(),r=r.toLowerCase(),o=o.toLowerCase());c<d;){var h,p=new RegExp(r,"g"+(s?"":"i")),f=p.exec(n.substring(c));if(!f)return u;var g=f.index+c;l&&f[0].length>a&&(p.lastIndex--,this._adjustMatch(f,o),g=f.index+c),h={line:t,startColumn:g,endColumn:g+a},u.push(h),c=g+1}return u},_getTextInLine:function(e,t){return e.getLineNode(t).getTextForPositioning()},_adjustMatch:function(e,t){var i=e[0].length-t.length,n=e[0].length-1;if(1===i){for(var o=!1,r=0;r<t.length;r++)if(t.charAt(r)!==e[0].charAt(r)){e[0]=e[0].substring(1),e.index+=1,o=!0;break}o||(e[0]=e[0].substring(0,n))}else 2===i&&(e[0]=e[0].substring(0,n),e[0]=e[0].substring(1),e.index+=1)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){this._findText="",this._searchFor="",this._forward=!0,this._startLine=0,this._startColumn=0,this._caseSensitive=!1,this._wholeWord=!1,this._regexp=!1},setFindText:function(e){this._findText=e},getFindText:function(){return this._findText},setSearchFor:function(e){this._searchFor=e},getSearchFor:function(){return this._searchFor},setSearchDirection:function(e){this._forward=e},isSearchForward:function(){return this._forward},setStartLine:function(e){this._startLine=e},getStartLine:function(){return this._startLine},setStartColumn:function(e){this._startColumn=e},getStartColumn:function(){return this._startColumn},setCaseSensitive:function(e){this._caseSensitive=e},isCaseSensitive:function(){return this._caseSensitive},setWholeWord:function(e){this._wholeWord=e},isWholeWord:function(){return this._wholeWord},setRegexp:function(e){this._regexp=e},isRegexp:function(){return this._regexp}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{searchNextElement:function(e,t,i,n){for(var o=0,r=e.length,a=-1;o<r;){var s=Math.floor((o+r)/2);e[s][i]===t[i]?e[s][n]<t[n]?o=s+1:(r=s,a=s):e[s][i]<t[i]?o=s+1:(r=s,a=s)}return a},searchPreviousElement:function(e,t,i,n){for(var o=0,r=e.length-1,a=-1;o<=r;){var s=Math.floor((o+r)/2);e[s][i]===t[i]?e[s][n]<t[n]?(a=s,o=s+1):r=s-1:e[s][i]<t[i]?(a=s,o=s+1):r=s-1}return a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i,n,o){this._allOccurrences=e,this._findOptions=this._buildFindOptions(t),this._currentOccurrence=i,this._currentOccurrenceIndex=n,this.setVisitedLines(o||[])},_buildFindOptions:function(e){return{text:e.getFindText(),caseSensitive:e.isCaseSensitive(),wholeWords:e.isWholeWord()}},findOptionsMatched:function(e){var t=this.getFindOptions();return t.text===e.getFindText()&&t.caseSensitive===e.isCaseSensitive()&&t.wholeWords===e.isWholeWord()},getAllOccurrences:function(){return this._allOccurrences},getFindOptions:function(){return this._findOptions},getCurrentOccurrence:function(){return this._currentOccurrence},getCurrentOccurrenceIndex:function(){return this._currentOccurrenceIndex},clearCurrentOccurrence:function(){this._currentOccurrence=null,this._currentOccurrenceIndex=null},hasCurrentOccurrence:function(){return null===this._currentOccurrence},setVisitedLines:function(e){this._visitedLines=e},getVisitedLines:function(e){return this._visitedLines},isLimitExceed:function(){return!(!this._visitedLines||!this._visitedLines.length)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3900),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.focusservice","rtc.internaldocument","rtc.navigate.find.actions"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(207),i(719),i(3901),i(1106)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{constructor:function(e,t,n){this._findPreference=a,this._focusService=e,this._internalDocument=t,this._findReplaceActions=n,this._withReplaceOption=!1,this._dialogInstance=null,this._closeCallback=null,this.own(i.after(t,"onDocumentReset",this._handleDocumentChanged.bind(this),!0)),this.own(i.after(t,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0))},_handleDocumentChanged:function(){this.isOpened()&&this._dialogInstance.onDocumentChanged()},isOpened:function(){return null!==this._dialogInstance},registerReplaceFeature:function(e){this._withReplaceOption=!0},createFindDialog:function(e,i,n,a,s,l){if(this.isOpened())return e=this.isDocumentHasFocus()?e:"",this._dialogInstance.initialize(e,l),this._dialogInstance;this._closeCallback=a;var c=this._internalDocument.isReadOnly(),d=this._withReplaceOption?t.hitch(this,"_replaceCallback"):null;return this._dialogInstance=new r({resizable:!0,isAutoOpen:l,wrapperNode:n,selectedText:e,isFileReadOnly:c,findCallback:t.hitch(this,"_findCallback"),replaceCallback:d,findClearCallback:t.hitch(this,"_findClearCallback"),closeCallback:t.hitch(this,"_close"),keyboardActions:i,stateChangeCallback:s,toolTipHandler:o,setFocusOnDoc:t.hitch(this,"_setFocusOnDocument"),setBlurOnDoc:t.hitch(this,"_setBlurOnDocument"),findPreference:this._findPreference}),this._dialogInstance.on("configchange",t.hitch(this,"onFindDialogConfigChange")),this._dialogInstance},_findCallback:function(e,t){return this._findReplaceActions.find(e,t)},_findClearCallback:function(){return this._findReplaceActions.clearHighlight()},_replaceCallback:function(e,t){this._findReplaceActions.replace(e,t)},onFindDialogConfigChange:function(){},setReplaceStripMode:function(e=!1){this._withReplaceOption&&(this._findPreference.setFocusedInputBox(e?"replaceInput":"findInput"),this.isOpened()&&this._findPreference.getReplaceStripMode()&&(e=!0),this._findPreference.setReplaceStripMode(e))},cleanup:function(){this._dialogInstance&&(this._dialogInstance.close(),this._dialogInstance=null)},closeTrigger:function(){this.isOpened()&&this._dialogInstance.onClose(!0)},_close:function(){this._closeCallback&&this._closeCallback(),this._focusService&&this._focusService.setFocus(),null!==this._dialogInstance&&(this._dialogInstance=null)},_setFocusOnDocument:function(){this._focusService&&this._focusService.setFocus()},isDocumentHasFocus:function(){return this._focusService.hasFocus()},_setBlurOnDocument:function(){this._focusService&&this._focusService.setBlur()},destroy:function(){this.cleanup()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(307),i(238),i(203),i(204),i(221),i(223),i(206),i(772),i(3902),i(3913),i(3914),i(3915)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){const p="onEnter",f="onType",g="autoFind";return n([e,t,h],{_MODIFIERS:["alt","ctrl","meta","shift"],_REPLACE_OPENED:"replaceStripOpen",_TYPING_THRESHOLD_TIMER:300,constructor:function(e){this._config=e,this.findPreference=e.findPreference||d,this._wrapperNode=this._config.wrapperNode,this._selectedText=this._config.selectedText||"",this._findCallBack=this._config.findCallback,this._replaceCallBack=this._config.replaceCallback,this._findClearCallback=this._config.findClearCallback,this._closeCallBack=this._config.closeCallback,this._stateChangeCallback=this._config.stateChangeCallback,this._setFocusOnDoc=this._config.setFocusOnDoc,this._setBlurOnDoc=this._config.setBlurOnDoc,this._toolTipHandler=this._config.toolTipHandler||null,this._previousState=this._config.previousState||null,this._isFileReadOnly=this._config.isFileReadOnly||!1,this._isAutoOpen=this._config.isAutoOpen||!1,this._style=this._config.style||{},this._config.resizable&&this.findPreference.setResizable(this._config.resizable),this._keyboardActions=this._convertActionsToKeyActionStrings(this._config.keyboardActions),this.isReplaceFeatureEnable=!!this._replaceCallBack,this._latestFocusedItem=null,this._currentState=null,this._timer=null,this._isShortcutCaptured=!1,this._hasResults=!this._toolTipHandler,this._isFocused=!1},startup:function(){this.inherited(arguments),this.stripView.domNode.classList.add("show")},postCreate:function(){this.inherited(arguments),this.stripView=this.renderView(this._wrapperNode,this._style),this._resizeHandler(this.stripView),this.initialize(this._selectedText,this._isAutoOpen,this._previousState),this.on("keydown",o.hitch(this,"_keyHandler")),this.startup(),this._watchLastFocused(),this._watchTransitionEnd()},initialize:function(e,t,i){var n=!this._currentState&&!e,o=t||n;this._isShortcutCaptured=!0,i&&(this._previousState=i);var r=this.findPreference.getFirstNonBlankText(e);r||(r=this.findPreference.getFindText()),this.setFindText(r),this.isReplaceFeatureEnable&&this.setReplaceText(this.findPreference.getReplaceText()),this._setAsPreviousState(this._previousState),this._currentState=this._getCurrentState(),this.disableButtonsIfFindEmpty(),this._autoFind(o),t?this._setFocusOnDoc&&this._setFocusOnDoc():(this._setCursor(n),this.isReplaceFeatureEnable&&this._currentStateChange("isReplaceOpened",this.replaceStripContainer.open))},_setCursor:function(e){this._isShortcutCaptured&&(this.findPreference.getFocusedInputBox()!==this._feature.replaceInput.dataTag||e?(this.findTextInput&&this.findTextInput.focusNode.select(),this.findTextInput&&this.findTextInput.focusNode.focus()):(this.replaceTextInput&&this.replaceTextInput.focusNode.focus(),this.replaceTextInput&&this.replaceTextInput.focusNode.select()))},_setAsPreviousState:function(e){e&&(e.hasOwnProperty("history")&&this.findPreference.refillHistory(e.history),e.hasOwnProperty("width")&&this.findPreference.setStripWidth(e.width),e.hasOwnProperty("isMatchCaseChecked")&&this.findPreference.setMatchCaseChecked(e.isMatchCaseChecked),e.hasOwnProperty("isWholeWordChecked")&&this.findPreference.setWholeWordChecked(e.isWholeWordChecked),e.hasOwnProperty("isReplaceOpened")&&this.findPreference.setReplaceStripMode(e.isReplaceOpened)),this.stripView.domNode.style.width=this.findPreference.getStripWidth(),this.matchCaseButton&&this.matchCaseButton.set("checked",this.findPreference.getMatchCaseChecked()),this.wholeWordButton&&this.wholeWordButton.set("checked",this.findPreference.getWholeWordChecked()),this.isReplaceFeatureEnable&&(this.replaceStripContainer.open=this.findPreference.getReplaceStripMode(),this.replaceStripContainer.open?(this.domNode.classList.add(this._REPLACE_OPENED),this.replaceTextInput.set("disabled",this._isFileReadOnly),this.updateTooltip("toggleReplace",1)):this.domNode.classList.remove(this._REPLACE_OPENED))},_watchTransitionEnd:function(){this.replaceStripContainer&&this.replaceStripContainer.addEventListener("transitionend",()=>{this._setCursor()})},_watchLastFocused:function(){this._latestFocusedItem=this.findTextInput.inputNode,i.watch("curNode",function(e,t,i){this.domNode.contains(i)?(this._latestFocusedItem=i,this._isFocused=!0,this._latestFocusedItem.select||(this.findTextInput.focusNode.blur(),this.replaceTextInput&&this.replaceTextInput.focusNode.blur())):this._isFocused=!1}.bind(this)),this.on("click",function(){this._latestFocusedItem&&i.focus(this._latestFocusedItem)}.bind(this))},_resizeHandler:function(e){if(this.findPreference.getResizable()){l.enable({widget:e,bindingNode:e.domNode.parentElement}),s(e.domNode,"resize",(function(){e.domNode.style.left="auto"}));var t=e.domNode.querySelector(".mwResizable-w");this._isResizing=!1,s(t,"mousedown",function(){this._isResizing=!0}.bind(this)),s(e.domNode.parentElement,"mouseup",function(){if(this._isResizing){var t=e.domNode.style.width;this.findPreference.setStripWidth(t),this._currentStateChange("width",t),this._isResizing=!1}}.bind(this))}},_setInHistory:function(){var e={};this.findPreference.setFindHistory(this._findSearchString),e.find=this.findPreference.getFindHistory(),this.isReplaceFeatureEnable&&(this.findPreference.setReplaceHistory(this._replaceSearchString),e.replace=this.findPreference.getReplaceHistory()),this._currentStateChange("history",e)},_getCurrentState:function(){var e={width:this.findPreference.getStripWidth(),isMatchCaseChecked:this.findPreference.getMatchCaseChecked(),isWholeWordChecked:this.findPreference.getWholeWordChecked(),history:{find:this.findPreference.getFindHistory()}};return this.isReplaceFeatureEnable&&(e.isReplaceOpened=this.findPreference.getReplaceStripMode(),e.history.replace=this.findPreference.getReplaceHistory()),e},_currentStateChange:function(e,t){this._currentState&&(this._currentState[e]=t,this._stateChangeCallback&&this._stateChangeCallback(this._currentState))},_onTextKeyup:function(e){this._resetTimer(),this.setFindText(this.findTextInput.inputNode.value),this.isReplaceFeatureEnable&&this.setReplaceText(this.replaceTextInput.inputNode.value),this.disableButtonsIfFindEmpty(),e.keyCode===a.DOWN_ARROW?this._downArrowKeyHandler(e):this._isShortcutCaptured||this._findOnTyping(e),e.stopPropagation()},_resetTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_downArrowKeyHandler:function(e){var t=e.target.getAttribute("data-tag"),i=t===this._feature.findInput.dataTag?this.findPreference.getFindMenuItems():this.findPreference.getReplaceMenuItems();this.historyWidget=new u({items:i,type:t,targetStyle:e.target.parentElement.getBoundingClientRect(),selectOptionCallback:o.hitch(this,"selectFromHistory"),testId:this.findReplaceUtility.historyMenu.testId})},_keyHandler:function(e){e.keyCode===a.ESCAPE?this._escapeKeyHandler(e):e.keyCode===a.TAB?this._tabKeyHandler(e):e.keyCode===a.ENTER?this._enterKeyHandler(e):this._handleShortcuts(e)},_escapeKeyHandler:function(e){this.onClose(),e.stopPropagation(),e.preventDefault()},_tabKeyHandler:function(e){var t,i=this.domNode.classList.contains("replaceFeatureEnable")?0:1,n=this.domNode.classList.contains("replaceStripOpen")?Object.keys(this._feature).length:8,o=e.target.getAttribute("data-tag"),r=this._feature[o].focusIndex;if(e.shiftKey){if(e.shiftKey)for(t=(r=r-1<i?n:r)-1;t>=i&&(t=t<i?n:t,!this._setFocus(e,t));t--);}else for(t=r+1;t<=n&&(t=t===n?i:t,!this._setFocus(e,t));t++);},_setFocus:function(e,t){var i=this.domNode.querySelector("[focusIndex='"+t+"']");if(i){var n=i.getAttribute("aria-disabled");if(n&&"false"===n){var o=i.getAttribute("data-tag"),r=this.elementList[o];return r.focusNode.focus(),r.focusNode.select&&r.focusNode.select(),e.preventDefault(),!0}}return!1},_enterKeyHandler:function(e){var t=e.target.getAttribute("data-tag");t===this._feature.findInput.dataTag?(this.onFindNavigation(e.shiftKey),e.target.focus()):t===this._feature.replaceInput.dataTag&&(this.onReplaceSingle(e.shiftKey),e.target.focus())},_findOnTyping:function(e){e.keyCode!==a.ENTER&&(e.target.getAttribute("data-tag")===this._feature.findInput.dataTag&&this._onFind({isPrevious:!1,text:this._findSearchString,fromCurOccurrence:!0},f),this._timer=setTimeout(function(){this._setInHistory(),this._resetTimer()}.bind(this),this._TYPING_THRESHOLD_TIMER))},_convertActionsToKeyActionStrings:function(e=[]){var t,i={},n=function(e){var t=e.toLowerCase().split("_"),i=t.slice(0,t.length-1).sort().join("_");return i.length>1&&(i+="_"),i+=t[t.length-1]};for(var o in e)if((t=e[o]).hasOwnProperty("customKeys")){var a=t.customKeys;for(var s in a)i[n(a[s])]=t.callback}else{var l=t.key,c=t.platformKey&&t.platformKey.mac?t.platformKey.mac:l;i[n(r("mac")?c:l)]=t.callback}return i},_convertEventToKeyActionString:function(e){var t="";return this._MODIFIERS.forEach((function(i){t+=e[i+"Key"]?i+"_":""})),t+=e.key?e.key.toLowerCase():""},_handleShortcuts:function(e){var t=this._convertEventToKeyActionString(e),i=this._keyboardActions[t];if(this._isShortcutCaptured=!1,void 0!==i){e.stopPropagation(),e.preventDefault(),this._setInHistory();var n=this.findPreference.getFindText(),o=this.findPreference.getMatchCaseChecked(),r=this.findPreference.getWholeWordChecked();this.findPreference.setLastSearchOptions(n,o,r),this._isShortcutCaptured=!0,i()}},onBlurOfInputBox:function(){this._timer&&(this._resetTimer(),this._setInHistory())},onFindClearText:function(){this.setFindText(""),this.disableButtonsIfFindEmpty(),this._onFind({setInHistory:!0,isPrevious:!1}),this._findClearCallback&&this._findClearCallback(),this._setBlurOnDoc&&this._setBlurOnDoc()},onReplaceClearText:function(){this._replaceSearchString&&this.setReplaceText(""),this._setInHistory()},selectFromHistory:function(e){var t=e.target.getAttribute("data-tag");t&&t.includes(this._feature.findInput.dataTag)?this.setFindText(e.mwEventData.value||""):this.isReplaceFeatureEnable&&this.setReplaceText(e.mwEventData.value||""),this.disableButtonsIfFindEmpty(),this._autoFind()},disableButtonsIfFindEmpty:function(){var e=this.isReplaceFeatureEnable?[this.findNextButton,this.findPreviousButton,this.replaceButton,this.replaceAllButton]:[this.findNextButton,this.findPreviousButton];this._findSearchString&&this._hasResults?(this.findNextButton.set("disabled",!1),this.findPreviousButton.set("disabled",!1),this.isReplaceFeatureEnable&&(this.replaceButton.set("disabled",!1),this.replaceAllButton.set("disabled",!1),this._isFileReadOnly&&(this.replaceTextInput.set("disabled",!0),this.replaceButton.set("disabled",!0),this.replaceAllButton.set("disabled",!0)))):e.forEach((function(e){e.set("disabled",!0)}))},setFindText:function(e){this._findSearchString!==e&&(this._findSearchString=e,this.findTextInput.setText(this._findSearchString))},_autoFind:function(e=!1){event&&(e?this._onFind({isPrevious:!1,onDocSwitch:!0},g):this._onFind({isPrevious:!1,text:this._findSearchString,setInHistory:!0,fromCurOccurrence:!0},g))},setReplaceText:function(e){this._replaceSearchString!==e&&(this._replaceSearchString=e,this.replaceTextInput.setText(this._replaceSearchString))},close:function(){this.onClose()},onClose:function(e=!1){e||this._setInHistory(),this.stripView.domNode.classList.remove("show"),this._closeCallBack&&this._closeCallBack(this.stripView.domNode.id),this.destroy()},onReplaceStripToggle:function(){var e=this.domNode.classList,t=e.contains(this._REPLACE_OPENED);t?e.remove(this._REPLACE_OPENED):e.add(this._REPLACE_OPENED),this.replaceTextInput.set("disabled",this._isFileReadOnly||t),this.replaceStripContainer.open=!t,this.findPreference.setReplaceStripMode(this.replaceStripContainer.open),this.updateTooltip("toggleReplace",this.replaceStripContainer.open?1:0),this._currentStateChange("isReplaceOpened",this.replaceStripContainer.open)},onFind:function(e,t){var i=e?this.findPreviousButton:this.findNextButton;this._onFind({setInHistory:!0,isPrevious:e,focusOn:i.focusNode},t)},_onFind:function(e={},t){e.setInHistory&&this._setInHistory();var i={};i.backward=e.isPrevious||!1,i.fromCurOccurrence=e.fromCurOccurrence||!1,i.onDocChange=e.onDocChange||!1,i.onDocSwitch=e.onDocSwitch||!1,e.hasOwnProperty("text")&&(i.text=e.text),this._findCallBack(i,t),e.focusOn&&e.focusOn.focus()},updateMatchResults:function(e){var t,i,n;if(e._findOptions&&e._findOptions.text&&e._findOptions.text!==this._findSearchString&&this.setFindText(e._findOptions.text),t=0,i=0,e&&(t=e.getAllOccurrences().length)){i=e.getCurrentOccurrenceIndex()+1;var o=this.findPreference.getFindDeadEnd();t=t>=o?o+this.findReplaceUtility.sign.more:t,i=i<0||i>o?this.findReplaceUtility.sign.noCurOccurence:i}n=i+this.findReplaceUtility.sign.separator+t,this.findTextInput.setResultLabel(n),this._hasResults=0!==t,this.disableButtonsIfFindEmpty()},onReplace:function(e,t=!1){this._setInHistory(),this._replaceCallBack(this._replaceSearchString,e),e?this.replaceAllButton.focusNode.focus():this._onFind({isPrevious:t,focusOn:this.replaceButton.focusNode})},onReplaceSingle:function(e){e="boolean"==typeof e&&e,this.onReplace(!1,e)},onReplaceAll:function(){this.onReplace(!0),this._onFind({setInHistory:!0,isPrevious:!1,focusOn:this.findTextInput.inputNode})},onFindNavigation:function(e){e?this.onFindPrevious():this.onFindNext()},onFindNext:function(){this._findSearchString&&this.onFind(!1,p)},onFindPrevious:function(){this.onFind(!0,p)},matchCaseChange:function(e){this.findPreference.setMatchCaseChecked(e.mwEventData.newValue),this._currentStateChange("isMatchCaseChecked",e.mwEventData.newValue),this.emit("configchange"),this._onFind({setInHistory:!0,isPrevious:!1,focusOn:this.findTextInput.inputNode,fromCurOccurrence:!0})},wholeWordChange:function(e){this.findPreference.setWholeWordChecked(e.mwEventData.newValue),this._currentStateChange("isWholeWordChecked",e.mwEventData.newValue),this.emit("configchange"),this._onFind({setInHistory:!0,isPrevious:!1,focusOn:this.findTextInput.inputNode,fromCurOccurrence:!0})},destroy:function(){for(var e in this.replaceStripContainer&&this.replaceStripContainer.removeEventListener("transitionend",()=>{}),this.elementList)this.tooltipList&&this.tooltipList[e]&&this.tooltipList[e].destroy(),this.elementList[e]&&this.elementList[e].destroy();this.stripView.domNode.innerHTML=""},onDocumentChanged:function(){this.hasFocus()||(this._resetTimer(),this._timer=setTimeout(function(){this._onFind({isPrevious:!1,onDocChange:!0}),this._resetTimer()}.bind(this),this._TYPING_THRESHOLD_TIMER))},hasFocus:function(){return this._isFocused}})}),e,t),e.exports=o},function(e,t,i){var n=i(723),o=i(3903);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);e.exports=o.locals||{}},function(e,t,i){var n=i(1399);(e.exports=i(724)(!1)).push([e.i,":root .findStrip {\n --stripButtonAreaWidth: 128px;\n --stripInnerHeight: 22px;\n --stripIconHeight: 16px;\n --stripPadding: 5px;\n --stripGapping: 2px;\n --clearTextAreaWidth: 40px;\n --defaultButtonAreaWidth: 46px;\n /*--optionalButtonAreaWidth: calc(var(--stripButtonAreaWidth) - (var(--defaultButtonAreaWidth) + var(--stripGapping) + (2 * var(--stripPadding))));*/\n /*--optionalButtonAreaWidth: calc(128px - 46px + 2px + (2 * (5px)));*/\n --optionalButtonAreaWidth: 94px;\n}\n\n.findStrip {\n padding: var(--stripPadding);\n height: var(--stripInnerHeight);\n transition: height 0.2s ease-out;\n}\n\n.findStrip.replaceStripOpen {\n /*height: calc((2 * var(--stripInnerHeight)) + var(--stripGapping));*/\n /*height: calc((2 * (22px)) + 2px);*/\n height: 46px;\n}\n\n.findStrip .featureContainer {\n float: left;\n width: 100%;\n height: 100%;\n}\n\n.findStrip.replaceFeatureEnable .featureContainer {\n /*width: calc(100% - (var(--stripInnerHeight) + var(--stripGapping)));*/\n /*width: calc(100% - 22px + 2px);*/\n width: calc(100% - 25px);\n}\n\n.findStrip .find-strip, .findStrip .replace-strip {\n width: 100%;\n height: var(--stripInnerHeight);\n}\n\n.findStrip .textBoxArea {\n float: left;\n /*width: calc(100% - var(--stripButtonAreaWidth));*/\n width: calc(100% - 128px);\n height: 100%;\n}\n\n.findStrip .replaceStripToggleButton {\n float: left;\n width: var(--stripInnerHeight);\n height: 100%;\n margin-right: var(--stripGapping);\n}\n\n.findStrip .buttonArea {\n position: absolute;\n right: 0;\n width: var(--stripButtonAreaWidth);\n height: var(--stripInnerHeight);\n}\n\n.findStrip .mwToggleButton:not(:last-child), .findStrip .mwPushButton:not(:last-child) {\n margin-right: var(--stripGapping);\n}\n\n.findStrip .replace-strip {\n margin-top: var(--stripGapping);\n visibility: hidden;\n transition: visibility 0.1s ease-out;\n transition-delay: -0.1s;\n}\n\n.findStrip.replaceStripOpen .replace-strip {\n visibility: visible;\n transition-delay: 0.1s;\n}\n\n.findStrip .defaultButtons {\n position: absolute;\n left: 0;\n margin-left: var(--stripGapping);\n width: var(--defaultButtonAreaWidth);\n height: 100%;\n}\n\n.findStrip .optionalButtons {\n position: absolute;\n /*left: calc(var(--defaultButtonAreaWidth) + var(--stripGapping));*/\n /*left: calc(46px + 2px);*/\n left: 48px;\n width: var(--optionalButtonAreaWidth);\n height: 100%;\n margin-left: var(--stripPadding);\n}\n\n.findStrip .icons {\n width: var(--stripIconHeight);\n height: var(--stripIconHeight);\n cursor: pointer;\n}\n\n.findStrip .icons.match_16 {\n background: url("+n(i(3904))+") no-repeat center;\n}\n\n.findStrip .icons.match_word_16 {\n background: url("+n(i(3905))+") no-repeat center;\n}\n\n.findStrip .icons.replace_16 {\n background: url("+n(i(3906))+") no-repeat center;\n}\n\n.findStrip .icons.replace_all_16 {\n background: url("+n(i(3907))+") no-repeat center;\n}\n\n.findStrip .icons.close-12 {\n background: url("+n(i(3908))+") no-repeat center;\n}\n\n.findStrip .icons.triangle_down_16 {\n background: url("+n(i(3909))+") no-repeat center;\n}\n\n.findStrip .icons.triangle_up_16 {\n background: url("+n(i(3910))+") no-repeat center;\n}\n\n.findStrip .icons.triangle_right_16 {\n transform: rotate(0deg);\n background: url("+n(i(3911))+") no-repeat center;\n transition: transform 0.1s ease-out;\n}\n\n.findStrip.replaceStripOpen .icons.triangle_right_16 {\n transform: rotate(90deg);\n}\n\n.findStrip .mwDefaultVisualFamily.mwTextField .mwInputNode {\n /*width: calc(100% - var(--stripIconHeight));*/\n width: calc(100% - 16px);\n float: left;\n}\n\n.findStrip .find-strip .mwDefaultVisualFamily.mwTextField .mwInputNode {\n /*width: calc(100% - var(--clearTextAreaWidth));*/\n width: calc(100% - 40px);\n}\n\n.findStrip .clearTextArea {\n float: left;\n width: fit-content;\n height: 100%;\n transition: opacity 0.1s ease-out;\n}\n\n.findStrip .find-strip .clearTextArea {\n min-width: var(--clearTextAreaWidth);\n}\n\n.findStrip .clearTextArea .clearButton {\n float: right;\n width: var(--stripIconHeight);\n height: 100%;\n opacity: 0.3;\n background: url("+n(i(3912))+") no-repeat center;\n}\n\n.findStrip .replace-strip .clearTextArea .clearButton {\n visibility: hidden;\n transition: visibility 0.1s ease-out;\n transition-delay: -0.1s;\n}\n\n.findStrip.replaceStripOpen .replace-strip .clearTextArea .clearButton {\n visibility: visible;\n transition-delay: 0.1s;\n}\n\n.findStrip .clearTextArea .resultLabel {\n float: right;\n height: 100%;\n color: rgba(0, 0, 0, 0.7);\n display: flex;\n align-items: center;\n user-select: none;\n /* g2259791 Search occurrences must be non-selectable */\n}",""])},function(e,t,i){e.exports=i.p+"images/match-13544d916c0806c1acc6dd4bff34c512.svg"},function(e,t,i){e.exports=i.p+"images/match-word-ceb8e7bc51bce1ced7e912744795e548.svg"},function(e,t,i){e.exports=i.p+"images/replace-bb75e9fa9bbfa84cff085e5ecce03e74.svg"},function(e,t,i){e.exports=i.p+"images/replace-all-c53d56f036828236cae2ba9d632d19b6.svg"},function(e,t,i){e.exports=i.p+"images/close-black-0ab35f5a61ce81dd774fd2bb9169a876.svg"},function(e,t,i){e.exports=i.p+"images/triangleDown-black-40d6f98ef214f056f86d39b920efb275.svg"},function(e,t,i){e.exports=i.p+"images/triangleUp-black-788f632ff273082d695a4d5c5fc16032.svg"},function(e,t,i){e.exports=i.p+"images/triangleRight-black-10fc593a030faa9255e1ed86a197de0f.svg"},function(e,t,i){e.exports=i.p+"images/close-gray-3b6d35e26f019787fec452776809e57e.svg"},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_findHistory:[],_replaceHistory:[],_replaceStripOpen:!1,_matchCaseHistory:!1,_wholeWordHistory:!1,_isFileReadOnly:!1,_lastSearchedText:"",_lastMatchCase:!1,_lastWholeWord:!1,_isResizable:!1,_activeDocId:null,_MAX_HISTORY_LIMIT:20,_stripWidth:"450px",_focusedInputBox:!0,_findDeadEnd:19999,getOpenedState:function(){return this._isOpened},setOpenedState:function(e){this._isOpened=e},getActiveDocId:function(){return this._activeDocId},setActiveDocId:function(e){this._activeDocId=e},getFindHistory:function(){return this._findHistory},getReplaceHistory:function(){return this._replaceHistory},refillFindHistory:function(e){this._findHistory=e},refillReplaceHistory:function(e){this._replaceHistory=e},setFindHistory:function(e){this._setHistoryList(e,this._findHistory)},getFindText:function(){return this._getLatestText(this._findHistory)},setReplaceHistory:function(e){this._setHistoryList(e,this._replaceHistory)},getReplaceText:function(){return this._getLatestText(this._replaceHistory)},setReplaceStripMode:function(e){this._replaceStripOpen=e},getReplaceStripMode:function(){return this._replaceStripOpen},setStripWidth:function(e){this._stripWidth=e},getStripWidth:function(){return this._stripWidth},setMatchCaseChecked:function(e){this._matchCaseHistory=e},getMatchCaseChecked:function(){return this._matchCaseHistory},setWholeWordChecked:function(e){this._wholeWordHistory=e},getWholeWordChecked:function(){return this._wholeWordHistory},setReadOnlyFileStatus:function(e){this._isFileReadOnly=e},getReadOnlyFileStatus:function(){return this._isFileReadOnly},setResizable:function(e){this._isResizable=e},getResizable:function(){return this._isResizable},setLastSearchOptions:function(e,t,i){this._lastSearchedText=e,this._lastMatchCase=t,this._lastWholeWord=i},getLastSearchOptions:function(){return{text:this._lastSearchedText,caseSensitive:this._lastMatchCase,wholeWords:this._lastWholeWord}},getFindMenuItems:function(){return this._getHistoryMenuItems(this._findHistory)},getReplaceMenuItems:function(){return this._getHistoryMenuItems(this._replaceHistory)},cleanFindHistory:function(){this._findHistory=[]},cleanReplaceHistory:function(){this._replaceHistory=[]},getFocusedInputBox:function(){return this._focusedInputBox},setFocusedInputBox:function(e){this._focusedInputBox=e},_getLatestText:function(e){return 0===e.length?"":e[0]},_getHistoryMenuItems:function(e){var t,i=[];return e.forEach((function(e){e&&i.length<this._MAX_HISTORY_LIMIT&&(t={label:e,value:e},i.push(t))}),this),i},_setHistoryList:function(e,t){if(t.some((function(t){return e===t}))){var i=t.indexOf(e);t.splice(i,1)}t.length>this._MAX_HISTORY_LIMIT&&t.pop(),t.unshift(e)},getFirstNonBlankText:function(e){if(e){for(var t=e.split("\n");t.length>1&&""===t[0];)t.splice(0,1);return t[0]}return""},refillHistory:function(e){e.find.length&&this.refillFindHistory(e.find),e.replace&&e.replace.length&&this.refillReplaceHistory(e.replace)},getFindDeadEnd:function(){return this._findDeadEnd}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(317),i(288)],o=i.dj.d(n,(function(e,t,i,n){return e([],{_DIFF:2,_HISTORY_OPTION:"HistoryOption",_DROP_DOWN_MAX_HEIGHT:194,constructor:function(e){this.items=e.items,this.selectHistoryCallback=e.selectOptionCallback,this.targetStyle=e.targetStyle,this.testId=e.testId,this.type=e.type,this._createHistoryMenu(),this._setStyle()},_destroyHistoryMenu:function(){this.historyMenu&&(this.historyMenu.close(),this.historyMenu.destroy(),this.historyMenu.domNode&&this.historyMenu.domNode.parentNode&&this.historyMenu.domNode.parentNode.removeChild(this.historyMenu.domNode))},_createHistoryMenu:function(){if(this._destroyHistoryMenu(),this.historyMenu=new i({maxHeight:this._DROP_DOWN_MAX_HEIGHT}),this.items.length)for(var e in this.items)this._addOptionInHistory(this.items[e]);this.historyMenu.on("close",function(){event&&"click"===event.type||this._destroyHistoryMenu()}.bind(this)),this.historyMenu.domNode.setAttribute("data-test-id",this.testId),this.historyMenu.startup()},_addOptionInHistory:function(e){this.menuItem=new n({text:""+e.label,tag:this.type+this._HISTORY_OPTION}),this.menuItem.on("click",t.hitch(this,"_selectHistoryOption")),this.historyMenu.addChild(this.menuItem)},_selectHistoryOption:function(e){this.selectHistoryCallback&&this.selectHistoryCallback(e),this._destroyHistoryMenu()},_setStyle:function(){this.targetStyle=this.targetStyle?this.targetStyle:{left:0,bottom:0,width:0},this.historyMenu.open({x:this.targetStyle.left||0,y:this.targetStyle.bottom||0});var e=this.historyMenu.domNode.getClientRects(),t=e.length?e[0]:{width:0};this.targetStyle.width>t.width&&(this.historyMenu.domNode.style.width=(this.targetStyle.width-this._DIFF||0)+"px")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(221),i(211),i(243),i(446),i(493),i(768),i(3916),i(3923)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(null,{_REPLACE_FEATURE_ENABLE:"replaceFeatureEnable",_BUTTON_WIDTH_HEIGHT:22,_STRIP:"strip",_FIND:"find",_REPLACE:"replace",_REPLACE_TOGGLE_BUTTON:"replaceStripToggleButton",_FEATURE_CONTAINER:"featureContainer",_TEXTBOX_AREA:"textBoxArea",_BUTTON_AREA:"buttonArea",_DEFAULT_BUTTONS:"defaultButtons",_OPTIONAL_BUTTONS:"optionalButtons",_MAC_MODIFIERS:{meta:"⌘",shift:"⇧",alt:"⌥",escape:"Esc"},renderView:function(e,t){return this.elementList=[],this.tooltipList=[],this._setModel(),this._setStripView(e,t),this._createContainer(),this._createLayout(),this._createFindFeatureView(),this._createReplaceFeatureView(),this.view},_setModel:function(){this.findReplaceUtility||(this.findReplaceUtility=l,this._feature=this.findReplaceUtility.feature)},_setStripView:function(e,t){this.view=e.domNode?e:{domNode:e},this.view.domNode.classList.add(this.findReplaceUtility.view.className),this.view.domNode.setAttribute("data-test-id",this.findReplaceUtility.view.testId),this.view.domNode.style.width=t.width||"auto",this.view.domNode.style.height=t.height||"auto",t.right&&(this.view.domNode.style.right=t.right,this.view.domNode.style.maxWidth="calc(100% - "+2*parseInt(t.right)+"px)")},_createContainer:function(){this.domNode=this._createDomElement(this.view.domNode,this.findReplaceUtility.viewInner.className),this.domNode.id=this.view.domNode.id?this.view.domNode.id.replace("Container",""):"",this.domNode.setAttribute("data-test-id",this.findReplaceUtility.viewInner.testId)},_createLayout:function(){this.isReplaceFeatureEnable?(this.replaceStripButtonContainer=this._createDomElement(this.domNode,this._REPLACE_TOGGLE_BUTTON),this._createFindLayout(),this._createReplaceLayout()):this._createFindLayout()},_createFindFeatureView:function(){this.findTextInput=this._createInputBox(this._feature.findInput,this.findLeftContainer),this.findPreviousButton=this._createButton(this._feature.findPrevious,this.nextPrevButtonsContainer),this.findNextButton=this._createButton(this._feature.findNext,this.nextPrevButtonsContainer),this.matchCaseButton=this._createButton(this._feature.matchCase,this.optionalButtons),this.wholeWordButton=this._createButton(this._feature.wholeWord,this.optionalButtons),this.cancelButton=this._createButton(this._feature.close,this.optionalButtons)},_createReplaceFeatureView:function(){this.isReplaceFeatureEnable&&(this.replaceStripButton=this._createButton(this._feature.toggleReplace,this.replaceStripButtonContainer),this.replaceTextInput=this._createInputBox(this._feature.replaceInput,this.replaceLeftContainer),this.replaceButton=this._createButton(this._feature.replace,this.replaceButtonsContainer),this.replaceAllButton=this._createButton(this._feature.replaceAll,this.replaceButtonsContainer),this.replaceTextInput.set("disabled",!0),this.domNode.classList.add(this._REPLACE_FEATURE_ENABLE))},_createDomElement:function(e,t,i){return n.create(i||"div",{class:t||""},e)},_createFindLayout:function(){this.featureContainer=this._createDomElement(this.domNode,this._FEATURE_CONTAINER),this.findStripContainer=this._createDomElement(this.featureContainer,this._FIND+"-"+this._STRIP),this.findLeftContainer=this._createDomElement(this.findStripContainer,this._FIND+" "+this._TEXTBOX_AREA);var e=this._createDomElement(this.findStripContainer,this._BUTTON_AREA);this.nextPrevButtonsContainer=this._createDomElement(e,this._DEFAULT_BUTTONS),this.optionalButtons=this._createDomElement(e,this._OPTIONAL_BUTTONS)},_createReplaceLayout:function(){this.replaceStripContainer=this._createDomElement(this.featureContainer,this._REPLACE+"-"+this._STRIP),this.replaceLeftContainer=this._createDomElement(this.replaceStripContainer,this._REPLACE+" "+this._TEXTBOX_AREA);var e=this._createDomElement(this.replaceStripContainer,this._BUTTON_AREA);this.replaceButtonsContainer=this._createDomElement(e,this._DEFAULT_BUTTONS)},_createInputBox:function(e,i){var n={dataTag:e.dataTag,width:e.width,placeholder:e.placeholder,onBlurCallback:t.hitch(this,e.onBlurCallback),clearButtonCallback:t.hitch(this,e.clearButtonCallback)},o=new c(n);for(var r in o.placeAt(i),o.startup(),o.domNode.setAttribute("data-test-id",e.testId),o.domNode.setAttribute("data-tag",e.dataTag),o.domNode.setAttribute("focusIndex",e.focusIndex),e.listenOn)o.on(e.listenOn[r],t.hitch(this,e.callback[r]));return this.elementList[e.dataTag]=o,this.tooltipList[e.dataTag]=this._attachTooltip(o.clearButton,e),o},_createButton:function(e,i){var n={icon:e.icon,width:e.width||this._BUTTON_WIDTH_HEIGHT,height:e.height||this._BUTTON_WIDTH_HEIGHT,"data-test-id":e.testId},a="toggle"===e.type?new r(n):new o(n);return a.placeAt(i),a.startup(),a.domNode.setAttribute("data-tag",e.dataTag),a.domNode.setAttribute("focusIndex",e.focusIndex),a.on(e.listenOn,t.hitch(this,e.callback)),this.elementList[e.dataTag]=a,this.tooltipList[e.dataTag]=this._attachTooltip(a,e),a},_attachTooltip:function(e,t={},i=0){var n="";0===i&&(n=this._getShortcut(t));var o=this._getTooltipText(t.toolTip,i);return this._toolTipHandler?new this._toolTipHandler({targetNode:e.domNode||e,label:o,keyBinding:n}):(n=n?" ("+n+")":n,a.createTooltip({referenceNode:e.domNode||e,content:{text:""+o+n}}))},updateTooltip:function(e,t){this.tooltipList[e].destroy(),this.tooltipList[e]=this._attachTooltip(this.elementList[e],this._feature[e],t)},_getTooltipText:function(e,t=0){return e[t]},_getShortcut:function(e){var t="";if(e.shortcut)t=e.shortcut;else{var i=e.actionId||"",n=this._config.keyboardActions||[];t=this._getShortcutFromActionKey(n,i)}return t},_getShortcutFromActionKey:function(e,t){var n,o,r;o={},r="",e.length&&(n=e.filter(e=>e.id===t))&&n.length&&(o=n[0]);return r=o.customKeys&&o.customKeys.length?o.customKeys[0]:i("mac")?o.platformKey&&o.platformKey.mac?o.platformKey.mac:"":o.key||"",s.getPlatformSpecificString(r,{sortModifiers:!0,dontConvertCtrlToCmd:!0})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(3917)],o=i.dj.d(n,(function(e){return{sign:{more:"+",separator:" / ",noCurOccurence:"?"},view:{className:"findStripContainer",testId:"dialog-close-node"},viewInner:{className:"findStrip",testId:"rteFindDialog"},historyMenu:{testId:"historyMenu"},feature:{findInput:{dataTag:"findInput",width:"100%",placeholder:""+e.findTitle,toolTip:[""+e.clearText],shortcut:"",onBlurCallback:"onBlurOfInputBox",clearButtonCallback:"onFindClearText",testId:"findTextInput",type:"input",focusIndex:1,listenOn:["keyup","keydown"],callback:["_onTextKeyup","_handleShortcuts"]},replaceInput:{dataTag:"replaceInput",width:"100%",placeholder:""+e.replaceButton,toolTip:[""+e.clearText],shortcut:"",onBlurCallback:"onBlurOfInputBox",clearButtonCallback:"onReplaceClearText",testId:"replaceTextInput",type:"input",focusIndex:2,listenOn:["keyup","keydown"],callback:["_onTextKeyup","_handleShortcuts"]},toggleReplace:{actionId:"rtc_replace_dialog",dataTag:"toggleReplace",icon:"icons triangle_right_16",testId:"replaceStripToggleButton",toolTip:[""+e.showReplaceOption,""+e.hideReplaceOption],shortcut:"",type:"push",focusIndex:0,listenOn:"click",callback:"onReplaceStripToggle"},findPrevious:{actionId:"rtc_find_dialog_find_previous_key",dataTag:"findPrevious",icon:"icons triangle_up_16",testId:"findPreviousButton",toolTip:[""+e.findPreviousButton],shortcut:"",type:"push",focusIndex:3,listenOn:"click",callback:"onFindPrevious"},findNext:{actionId:"rtc_find_dialog_find_next_key",dataTag:"findNext",icon:"icons triangle_down_16",testId:"findNextButton",toolTip:[""+e.findNextButton],shortcut:"",type:"push",focusIndex:4,listenOn:"click",callback:"onFindNext"},matchCase:{dataTag:"matchCase",icon:"icons icons match_16",testId:"matchCaseCheckBox",toolTip:[""+e.matchCaseLabel],shortcut:"",type:"toggle",focusIndex:5,listenOn:"change",callback:"matchCaseChange"},wholeWord:{dataTag:"wholeWord",icon:"icons match_word_16",testId:"wholeWordCheckBox",toolTip:[""+e.wholeWordLabel],shortcut:"",type:"toggle",focusIndex:6,listenOn:"change",callback:"wholeWordChange"},replace:{dataTag:"replace",icon:"icons replace_16",testId:"replaceButton",toolTip:[""+e.replaceButton],shortcut:"",type:"push",focusIndex:8,listenOn:"click",callback:"onReplaceSingle"},replaceAll:{dataTag:"replaceAll",icon:"icons replace_all_16",testId:"replaceAllButton",toolTip:[""+e.replaceAllButton],shortcut:"",type:"push",focusIndex:9,listenOn:"click",callback:"onReplaceAll"},close:{actionId:"rtc_find_dialog_close_key",dataTag:"close",icon:"icons close-12",testId:"cancelButton",toolTip:[""+e.close],shortcut:"",type:"push",focusIndex:7,listenOn:"click",callback:"close"}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(3918),i(3919),i(3920),i(3921),i(3922)],o=i.dj.d(n,(function(e,t){return t(e,"findandreplace-ui/l10n/nls/findDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={findAndReplaceTitle:"【◇Find &amp; Replace】",findTitle:"【F◇ind】",findTextLabel:"【Find◇ what:】",findNextButton:"【Find◇ next】",findPreviousButton:"【Find◇ previous】",replaceTextLabel:"【Replace◇ with:】",replaceButton:"【R◇eplace】",replaceAllButton:"【Replace◇ all】",matchCaseLabel:"【Match◇ case】",wholeWordLabel:"【Whole◇ word】",showReplaceOption:"【Show◇ replace options】",hideReplaceOption:"【Hide◇ replace options】",close:"【C◇lose】",clearText:"【Clear◇ text】"}},function(e,t,i){e.exports={findAndReplaceTitle:"検索 &amp; 置換",findTitle:"検索",findTextLabel:"検索:",findNextButton:"次を検索",findPreviousButton:"前を検索",replaceTextLabel:"置換:",replaceButton:"置換",replaceAllButton:"すべて置換",matchCaseLabel:"大文字小文字の区別",wholeWordLabel:"単語単位",showReplaceOption:"置換オプションの表示",hideReplaceOption:"置換オプションの非表示",close:"閉じる",clearText:"テキストのクリア"}},function(e,t,i){e.exports={findAndReplaceTitle:"찾기 및 바꾸기",findTitle:"찾기",findTextLabel:"찾을 내용:",findNextButton:"다음 찾기",findPreviousButton:"이전 찾기",replaceTextLabel:"바꿀 내용:",replaceButton:"바꾸기",replaceAllButton:"모두 바꾸기",matchCaseLabel:"대/소문자 구분",wholeWordLabel:"전체 단어 일치",showReplaceOption:"바꾸기 옵션 표시",hideReplaceOption:"바꾸기 옵션 숨기기",close:"닫기",clearText:"텍스트 지우기"}},function(e,t,i){e.exports={findAndReplaceTitle:"查找和替换",findTitle:"查找",findTextLabel:"查找内容:",findNextButton:"查找下一处",findPreviousButton:"查找上一处",replaceTextLabel:"替换为:",replaceButton:"替换",replaceAllButton:"全部替换",matchCaseLabel:"匹配大小写",wholeWordLabel:"全字匹配",showReplaceOption:"显示替换选项",hideReplaceOption:"隐藏替换选项",close:"关闭",clearText:"清除文本"}},function(e,t,i){e.exports={root:{findAndReplaceTitle:"Find &amp; Replace",findTitle:"Find",findTextLabel:"Find what:",findNextButton:"Find next",findPreviousButton:"Find previous",replaceTextLabel:"Replace with:",replaceButton:"Replace",replaceAllButton:"Replace all",matchCaseLabel:"Match case",wholeWordLabel:"Whole word",showReplaceOption:"Show replace options",hideReplaceOption:"Hide replace options",close:"Close",clearText:"Clear text"},"fi-fi":!0,"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(888),i(258)],o=i.dj.d(n,(function(e,t,i){return e([i,t],{baseClass:"mwWidget mwTextField findReplaceTextBox",_FIND_TEXT_BOX:"findInput",_CLEAR_AREA_WIDTH:"40px",_RESULT_LABEL_LENGTH:5,constructor:function(e){this._dataTag=e.dataTag,this._onBlur=e.onBlurCallback||function(){},this._clearButtonCallback=e.clearButtonCallback||function(){}},postCreate:function(){this.inherited(arguments),this.clearTextNode=document.createElement("div"),this.clearTextNode.classList.add("clearTextArea"),this.clearButton=document.createElement("div"),this.clearButton.classList.add("icons"),this.clearButton.classList.add("clearButton"),this.clearTextNode.appendChild(this.clearButton),this.domNode.appendChild(this.clearTextNode),this._dataTag===this._FIND_TEXT_BOX&&(this.resultLabel=document.createElement("div"),this.resultLabel.setAttribute("data-test-id","matchResultsLabel"),this.resultLabel.classList.add("resultLabel"),this.clearTextNode.appendChild(this.resultLabel)),this.inputNode.setAttribute("autocomplete","off"),this.inputNode.setAttribute("data-tag",this._dataTag),this.inputNode.addEventListener("onblur",this._onBlur.bind(this)),this.clearTextNode.setAttribute("data-test-id",this._dataTag+"Clear"),this.clearTextNode.addEventListener("click",this._handleClearTextNodeClick.bind(this)),this.clearTextNode.style.visibility="hidden"},setText:function(e=""){this.inputNode.value!==e&&(this.inputNode.value=e),this.clearTextNode.style.visibility=this.inputNode.value?"visible":"hidden",this.clearTextNode.style.opacity=this.inputNode.value?1:0,this.clearTextNode.style.pointerEvents=this.inputNode.value?"all":"none"},_handleClearTextNodeClick:function(){this.inputNode.value&&(this._clearButtonCallback(),this._dataTag===this._FIND_TEXT_BOX&&this.setResultLabel(),this.clearTextNode.style.visibility="hidden"),this.inputNode.focus()},_getClearTextNodeWidth:function(){return getComputedStyle(this.clearTextNode).width},setResultLabel:function(e=""){this.resultLabel.innerText=this.inputNode.value?e:"";var t=this._CLEAR_AREA_WIDTH;e.length>this._RESULT_LABEL_LENGTH&&(t=this._getClearTextNodeWidth()),this.inputNode.style.width="calc(100% - "+t+")"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3925),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.navigate.find.result.display","rtc.navigate.find.actions"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._findResultDialogDisplay=e,this.own(i.after(t,"find",this._updateMatches.bind(this)))},_updateMatches:function(e){return this._findResultDialogDisplay.updateMatchResults(e),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3927),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.navigate.find.dialoghandler"]}},createInstance:function(e){return new t(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._findDialogHandler=e,this._findResultBuffer=null,this._dialogInstance=null,this.own(i.after(e,"createFindDialog",this._createFindDialog.bind(this))),this.own(i.after(e,"_close",this._closeFindDialog.bind(this),!0))},_createFindDialog:function(e){return this._dialogInstance=e,null!==this._findResultBuffer&&(this._dialogInstance.updateMatchResults(this._findResultBuffer),this._findResultBuffer=null),e},_closeFindDialog:function(){this._findResultBuffer=null,this._dialogInstance=null},updateMatchResults:function(e){this._dialogInstance?this._dialogInstance.updateMatchResults(e):this._findResultBuffer=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(3929),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.navigate.find.actions"]}},createInstance:function(e){return new t(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._findReplaceActions=e,this.own(n.before(this._findReplaceActions,"replace",t.hitch(this,"removeListeners"))),this.own(n.after(this._findReplaceActions,"replace",t.hitch(this,"setListeners")))},removeListeners:function(){},setListeners:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3931)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.cursorcontroller","rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.internaldocument","rtc.indentutilities","rtc.settings.service"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(667),i(237),i(234),i(379),i(1932)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_FUNCTION_INDENTING_FORMAT:"matlab.editor.language.matlab.FunctionIndentingFormat",constructor:function(e,t,i,n,o,r,a){this._indentUtilities=r,this._settingService=a},_formatLines:function(e){const t={trimWhitespace:e.trimWhitespace};e.readFunctionIndentingFormatSetting?this._settingService.getSetting(this._FUNCTION_INDENTING_FORMAT).then(function(i){this._indentUtilities.setIndentingStyle(i),this._indentUtilities.formatLines(e.startLine,e.endLine,t)}.bind(this)):this._indentUtilities.formatLines(e.startLine,e.endLine,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(3933),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{requires:function(){return{createInstance:["rtc.focusservice","rtc.internaldocument","rtc.linenumberservice","rtc.cursor","rtc.actionservice","rtc.code.matlabfiletype","rtc.functionservice","rtc.navigate.goto.sectionservice","rtc.view"]}},createInstance:function(e,t,n,o,r,a,s,l,c){return new i(e,t,n,o,r,a,s,l,c)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(256),i(204),i(231),i(238),i(209),i(1400),i(3938),i(292),i(251),i(668),i(399)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p={isActiveGoToInstance:null,isShowingFunctions:!1,isShowingSections:!1,isShowingToggle:!1,isShowingFunctionsAndSections:!1};return e(h,{_focusService:null,_PLAIN_EDITOR_TAB:"editorTab",_LIVE_EDITOR_TAB:"liveEditorTab",constructor:function(e,t,i,n,o,r,a,s,l){this._focusService=e,this._internalDocument=t,this._lineNumberService=i,this._cursor=n,this._actionService=o,this._goToActions=[],this._goToDialog=null,this._createGoToDialogAction(),o.loadActions(this._goToActions),this._functionPopupId=null,this._sectionPopupId=null,this._fileType=r,this._functionService=a,this._gotoSectionService=s,this._rtcView=l},_createGoToDialogAction:function(){this._goToActions=[{id:d.GOTO.GOTO_DIALOG.Action,enabled:!0,key:t("safari")?"":"ctrl_g",platformKey:{mac:t("safari")?"":"meta_l"},callback:n.hitch(this,"_gotoActionCallback")}]},enableForHiddenCode:function(){this._goToActions.forEach((function(e){this._actionService.updateAction(e.id,{enabled:!0})}),this)},disableForHiddenCode:function(){this._goToActions.forEach((function(e){this._actionService.updateAction(e.id,{enabled:!1})}),this)},_gotoActionCallback:function(){return!!this._actionService.getAction(d.GOTO.GOTO_DIALOG.Action).enabled&&this._goToLineDialog()},_goToLineDialog:function(){return this._goToDialog=new l(n.hitch(this,this._goToCodeLine),n.hitch(this,this._close)),this._goToDialog},goToCodeLine:function(e){this._goToCodeLine(e),this._focusEditor()},_goToCodeLine:function(e){u.gotoCodeLineColumn(this._internalDocument,this._lineNumberService,this._cursor,e,1,this._rtcView),this.onGotoLineColumn(e,1)},goToDocumentLineColumn:function(e,t){u.gotoDocumentLineColumn(this._internalDocument,this._cursor,e,t,this._rtcView),this.onGotoLineColumn(e,t),this._focusEditor()},onGotoLineColumn:function(e,t){},_close:function(){this._focusEditor()},_focusEditor:function(){setTimeout(n.hitch(this,(function(){this._focusService.setFocus()})),1)},setupGoToToolStripButton:function(){var e=c.getInstance(),t=e.tagToId("motwToolstrip.editorTab.navigate.goTo");t&&this._addDropdownCallbackOnButton(e,t,this._gotoSectionService.PLAIN_EDITOR);var i=e.tagToId("motwToolstrip.liveEditorTab.navigate.goTo");i&&this._addDropdownCallbackOnButton(e,i,this._gotoSectionService.LIVE_EDITOR)},_addDropdownCallbackOnButton:function(e,t,i){return e.addEventCallback(t,n.hitch(this,(function(n){if("dropDownPerformed"===n.eventType){var o=this._getActiveGoToHandlerInstance(),r=o.getGotoSectionsService().getSections(i),a=o.getFunctions();p.isShowingFunctions=!1,p.isShowingFunctionsAndSections=!1,p.isShowingToggle=!1,a.length>0&&0===r.length?p.isShowingFunctions=!0:0===a.length&&r.length>0?p.isShowingFunctions=!1:a.length>0&&r.length>0&&(p.isShowingFunctionsAndSections=!0,p.isShowingToggle=!0);var s=this._populateGoToDropDownList(e,o,a,r,i);e.showPopup(t,s)}})),this)},getGotoSectionsService:function(){return this._gotoSectionService},getFunctions:function(){return this._functionService.getAllFunctionDeclarations()},_populateGoToDropDownList:function(e,t,i,n,o){var r={},a=o===this._gotoSectionService.LIVE_EDITOR?this._LIVE_EDITOR_TAB:this._PLAIN_EDITOR_TAB;if(e&&(r.popupId=e.tagToId("motwToolstrip."+a+".navigate.goTo.goToList"),r.sectionHeaderId=e.tagToId("motwToolstrip.editorTab.navigate.goTo.goToList.sectionHeader"),r.functionHeaderId=e.tagToId("motwToolstrip.editorTab.navigate.goTo.goToList.functionHeader"),r.popupListPanelId=e.tagToId("motwToolstrip.editorTab.navigate.goTo.goToList.goToListPanel")),this._destroyPopupList(e,r),p.isShowingFunctions)this._createFunctionsPopupListPanel(t,e,r,i,a);else if(p.isShowingFunctionsAndSections){var s=p.isShowingSections;this._createFunctionsAndSectionsPopupListPanel(t,e,r,s,i,n,a)}else this._createSectionsPopupListPanel(t,e,r,n,a);return r.popupId},_createFunctionsAndSectionsPopupListPanel:function(e,t,i,n,o,r,a){this._createFunctionsPopupListPanel(e,t,i,o,a),this._functionPopupId=i.popupListPanelId,this._createSectionsPopupListPanel(e,t,i,r,a),this._sectionPopupId=i.popupListPanelId,n?s.setPopupStyle(this._functionPopupId,i.functionHeaderId,"none"):s.setPopupStyle(this._sectionPopupId,i.sectionHeaderId,"none")},_createSectionsPopupListPanel:function(e,t,a,l,c){if(l.length>0){if(a.sectionHeaderId=s.createSectionHeader(t),t.add(a.sectionHeaderId,a.popupId,0),a.popupListPanelId=s.createPopupListPanel(t),t.add(a.popupListPanelId,a.popupId,1),p.isShowingToggle)s.createFunctionToggleSwitch(t).onclick=n.hitch(this,(function(){s.setPopupStyle(this._sectionPopupId,a.sectionHeaderId,"none");var e=o.byId(t.tagToId("motwToolstrip."+c+".navigate.goTo.goToList.goToLine"));r.focus(e.domNode),s.setPopupStyle(this._functionPopupId,a.functionHeaderId,""),p.isShowingSections=!1,i.publish("/toolstrip/popUpList/render")}));l.forEach((function(i,n){var o=i[this._gotoSectionService.SECTION_TITLE];if(o){var r=i[this._gotoSectionService.SECTION_ROW],l=s.createGoToListItem(e,t,r,1,o);t.add(l,a.popupListPanelId,n)}}),this)}},_createFunctionsPopupListPanel:function(e,t,a,l,c){if(!(l.length<1)){if(a.functionHeaderId=s.createFunctionHeader(t),t.add(a.functionHeaderId,a.popupId,0),p.isShowingToggle)s.createSectionToggleSwitch(t).onclick=n.hitch(this,(function(){s.setPopupStyle(this._functionPopupId,a.functionHeaderId,"none");var e=o.byId(t.tagToId("motwToolstrip."+c+".navigate.goTo.goToList.goToLine"));r.focus(e.domNode),s.setPopupStyle(this._sectionPopupId,a.sectionHeaderId,""),p.isShowingSections=!0,i.publish("/toolstrip/popUpList/render")}));a.popupListPanelId=s.createPopupListPanel(t),t.add(a.popupListPanelId,a.popupId,1);var d=this._fileType.getFileType()===this._fileType.FILE_TYPE.ClassDefinitionFile;u.sortFunctionDeclarations(l,!d).forEach((function(i,n){var o=s.createGoToFunctionListItem(e,t,i.getStartLine(),i.getStartColumn(),i.getName());t.add(o,a.popupListPanelId,n)}))}},_destroyPopupList:function(e,t){e.exists(this._sectionPopupId)&&e.destroy(this._sectionPopupId),e.exists(this._functionPopupId)&&e.destroy(this._functionPopupId),Object.keys(t).map((function(i){"popupId"!==i&&e.exists(t[i])&&e.destroy(t[i])}))},setActiveGoToHandlerInstance:function(e){p._activeGoToInstance=e},_getActiveGoToHandlerInstance:function(){return p._activeGoToInstance}})}),e,t),e.exports=o},function(e,t,i){e.exports={functions:"関数",line:"行番号:",section:"セクション",sections:"セクション",showFunctions:"関数の表示",showSections:"セクションの表示",title:"移動"}},function(e,t,i){e.exports={functions:"함수",line:"라인 번호:",section:"섹션",sections:"섹션",showFunctions:"함수 표시",showSections:"섹션 표시",title:"이동"}},function(e,t,i){e.exports={functions:"函数",line:"行号:",section:"节",sections:"节",showFunctions:"显示函数",showSections:"显示节",title:"转至"}},function(e,t,i){e.exports={root:{functions:"FUNCTIONS",line:"Line Number:",section:"Section",sections:"SECTIONS",showFunctions:"SHOW FUNCTIONS",showSections:"SHOW SECTIONS",title:"Go To"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(215),i(216),i(255),i(411),i(1934),i(203),i(204),i(211),i(223),i(206),i(208),i(3980),i(900),i(1933),i(273),i(262),i(1400)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){var _=r([e,t,i],{templateString:u,widgetsInTemplate:!0,constructor:function(e,t){this._goToLineCallback=e,this._closeCallBack=t,this._goToDialogWidget=null},postCreate:function(){this.inherited(arguments),this.lineNumberLabel.innerHTML=p.line,this.lineNumberInput.set("value",m.getGotoLine()),this.lineNumberInput.set("data-lineNumberInputId","lineNumberInput"),this._goToDialogWidget=g.createDialog({title:p.title,content:this,buttons:[f.OK,f.CANCEL],"data-test-id":"rteGoToDialog",className:"rteGoToDialog",dialogType:g.MODAL,draggable:!0,specifiedFocusItem:"lineNumberInput"}),this._goToDialogWidget.addButtonEventListener(f.OK,a.hitch(this,"onOK"),!1),this._goToDialogWidget.addButtonEventListener(f.CANCEL,a.hitch(this,"onCancel"),!1),this._goToDialogWidget.on("close",a.hitch(this,"onClose")),this.lineNumberInput.on("keyup",a.hitch(this,"onTextKeyup"));var e=m.getGotoLine(),t=""===e||isNaN(e);t?this._goToDialogWidget.disableButton(f.OK):this._goToDialogWidget.enableButton(f.OK),this.lineNumberInput.focusNode.select(),d.before(this._goToDialogWidget,"close",a.hitch(this,this._saveGoToDialogState))},_saveGoToDialogState:function(){m.setGotoLine(this.lineNumberInput.get("value"))},onTextKeyup:function(e){var t,i=this.lineNumberInput.get("value");void 0===i||""===i||isNaN(i)||i<0?(this._goToDialogWidget.disableButton(f.OK),t=!1):(this._goToDialogWidget.enableButton(f.OK),t=!0),e.keyCode===l.ENTER&&t&&(this.onOK?this.onOK():e.keyCode===l.ESCAPE&&this.onCancel())},onCancel:function(){this._goToDialogWidget.close(),this.onClose()},onOK:function(){var e=this.getLineNumber();this._goToLineCallback(e),this.onCancel()},onClose:function(){this._closeCallBack()},getLineNumber:function(){return this.lineNumberInput.get("value")}});return _.getEmptySectionTitle=function(){return p.section},_}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijit dijitReset dijitInline dijitLeft" id="widget_${id}" role="presentation"\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" data-dojo-attach-point=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>\n'},function(e,t){e.exports='<div class="dijit dijitReset dijitInline dijitLeft"\n\tid="widget_${id}" role="presentation"\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" data-dojo-attach-point=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>\n'},function(e,t,i){e.exports={invalidMessage:"Unešena vrijednost je neispravna",missingMessage:"Ova vrijednost je obavezna",rangeMessage:"Ova vrijednost je izvan raspona."}},function(e,t,i){e.exports={invalidMessage:"Внесената вредност не е важечка.",missingMessage:"Вредноста е задолжителна.",rangeMessage:"Вредноста е надвор од опсегот."}},function(e,t,i){e.exports={invalidMessage:"Uneta vrednost nije važeća.",missingMessage:"Ova vrednost je potrebna.",rangeMessage:"Ova vrednost je van opsega."}},function(e,t,i){e.exports={invalidMessage:"输入的值无效。",missingMessage:"该值是必需的。",rangeMessage:"此值超出范围。"}},function(e,t,i){e.exports={invalidMessage:"輸入的值無效。",missingMessage:"必須提供此值。",rangeMessage:"此值超出範圍。"}},function(e,t,i){e.exports={invalidMessage:"Введено невірне значення.",missingMessage:"Це значення є обов'язковим.",rangeMessage:"Це значення за межами діапазону."}},function(e,t,i){e.exports={invalidMessage:"Girilen değer geçersiz.",missingMessage:"Bu değer gerekli.",rangeMessage:"Bu değer aralık dışında."}},function(e,t,i){e.exports={invalidMessage:"ค่าที่ป้อนไม่ถูกต้อง",missingMessage:"จำเป็นต้องมีค่านี้",rangeMessage:"ค่านี้เกินช่วง"}},function(e,t,i){e.exports={invalidMessage:"Angivet värde är inte giltigt.",missingMessage:"Värdet krävs.",rangeMessage:"Värdet ligger utanför intervallet."}},function(e,t,i){e.exports={invalidMessage:"Vnesena vrednost ni veljavna.",missingMessage:"Ta vrednost je zahtevana.",rangeMessage:"Ta vrednost je izven območja."}},function(e,t,i){e.exports={invalidMessage:"Zadaná hodnota nie je platná.",missingMessage:"Táto hodnota je povinná.",rangeMessage:"Táto hodnota je mimo rozsah."}},function(e,t,i){e.exports={invalidMessage:"Указано недопустимое значение.",missingMessage:"Это обязательное значение.",rangeMessage:"Это значение вне диапазона."}},function(e,t,i){e.exports={invalidMessage:"Valoarea introdusă nu este validă.",missingMessage:"Această valoare este necesară.",rangeMessage:"Această valoare este în afara intervalului. "}},function(e,t,i){e.exports={invalidMessage:"O valor inserido não é válido.",missingMessage:"Este valor é necessário.",rangeMessage:"Este valor está fora do intervalo. "}},function(e,t,i){e.exports={invalidMessage:"O valor introduzido não é válido.",missingMessage:"Este valor é requerido.",rangeMessage:"Este valor encontra-se fora do intervalo."}},function(e,t,i){e.exports={invalidMessage:"Wprowadzona wartość jest nieprawidłowa.",missingMessage:"Ta wartość jest wymagana.",rangeMessage:"Ta wartość jest spoza zakresu."}},function(e,t,i){e.exports={invalidMessage:"De opgegeven waarde is ongeldig.",missingMessage:"Deze waarde is verplicht.",rangeMessage:"Deze waarde is niet toegestaan."}},function(e,t,i){e.exports={invalidMessage:"Den angitte verdien er ikke gyldig.",missingMessage:"Denne verdien er obligatorisk.",rangeMessage:"Denne verdien er utenfor gyldig område."}},function(e,t,i){e.exports={invalidMessage:"입력된 값이 올바르지 않습니다.",missingMessage:"이 값은 필수입니다.",rangeMessage:"이 값은 범위를 벗어납니다."}},function(e,t,i){e.exports={invalidMessage:"Енгізілген мән жарамды емес.",missingMessage:"Бұл мән міндетті.",rangeMessage:"Бұл мән ауқымнан тыс."}},function(e,t,i){e.exports={invalidMessage:"入力した値は無効です。",missingMessage:"この値は必須です。",rangeMessage:"この値は範囲外です。"}},function(e,t,i){e.exports={invalidMessage:"Il valore immesso non è valido.",missingMessage:"Questo valore è obbligatorio.",rangeMessage:"Questo valore è fuori dall'intervallo consentito."}},function(e,t,i){e.exports={invalidMessage:"Nilai yang dimasukkan tidak valid.",missingMessage:"Nilai ini diperlukan.",rangeMessage:"Nilai ini di luar batas."}},function(e,t,i){e.exports={invalidMessage:"A megadott érték érvénytelen.",missingMessage:"Meg kell adni egy értéket.",rangeMessage:"Az érték kívül van a megengedett tartományon."}},function(e,t,i){e.exports={invalidMessage:"Unesena vrijednost nije važeća.",missingMessage:"Potrebna je ova vrijednost.",rangeMessage:"Ova vrijednost je izvan raspona."}},function(e,t,i){e.exports={invalidMessage:"הערך שצוין אינו חוקי.",missingMessage:"זהו ערך דרוש.",rangeMessage:"הערך מחוץ לטווח."}},function(e,t,i){e.exports={invalidMessage:"La valeur indiquée n'est pas correcte.",missingMessage:"Cette valeur est requise.",rangeMessage:"Cette valeur n'est pas comprise dans la plage autorisée."}},function(e,t,i){e.exports={invalidMessage:"Annettu arvo ei kelpaa.",missingMessage:"Tämä arvo on pakollinen.",rangeMessage:"Tämä arvo on sallitun alueen ulkopuolella."}},function(e,t,i){e.exports={invalidMessage:"Sartutako balioak ez du balio.",missingMessage:"Balio hau beharrezkoa da.",rangeMessage:"Balio hau barrutitik kanpora dago."}},function(e,t,i){e.exports={invalidMessage:"El valor especificado no es válido.",missingMessage:"Este valor es necesario.",rangeMessage:"Este valor está fuera del intervalo."}},function(e,t,i){e.exports={invalidMessage:"Η τιμή που καταχωρήσατε δεν είναι έγκυρη.",missingMessage:"Η τιμή αυτή πρέπει απαραίτητα να καθοριστεί.",rangeMessage:"Η τιμή αυτή δεν ανήκει στο εύρος έγκυρων τιμών."}},function(e,t,i){e.exports={invalidMessage:"Der eingegebene Wert ist ungültig. ",missingMessage:"Dieser Wert ist erforderlich.",rangeMessage:"Dieser Wert liegt außerhalb des gültigen Bereichs. "}},function(e,t,i){e.exports={invalidMessage:"Den angivne værdi er ugyldig.",missingMessage:"Værdien er påkrævet.",rangeMessage:"Værdien er uden for intervallet."}},function(e,t,i){e.exports={invalidMessage:"Zadaná hodnota není platná.",missingMessage:"Tato hodnota je vyžadována.",rangeMessage:"Tato hodnota je mimo rozsah."}},function(e,t,i){e.exports={invalidMessage:"El valor introduït no és vàlid",missingMessage:"Aquest valor és necessari",rangeMessage:"Aquest valor és fora de l'interval"}},function(e,t,i){e.exports={invalidMessage:"Въведената стойност е невалидна.",missingMessage:"Тази стойност се изисква.",rangeMessage:"Тази стойност е извън обхват."}},function(e,t,i){e.exports={rangeMessage:"Bu dəyər aralıq xaricində.",invalidMessage:"Girilən dəyər keçərli deyil.",missingMessage:"Bu deyər lazımlı."}},function(e,t,i){e.exports={invalidMessage:"القيمة التي تم ادخالها غير صحيحة.",missingMessage:"يجب ادخال هذه القيمة.",rangeMessage:"هذه القيمة ليس بالمدى الصحيح."}},function(e,t,i){e.exports={root:{invalidMessage:"The value entered is not valid.",missingMessage:"This value is required.",rangeMessage:"This value is out of range."},bs:!0,mk:!0,sr:!0,zh:!0,"zh-tw":!0,uk:!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,id:!0,hu:!0,hr:!0,he:!0,fr:!0,fi:!0,eu:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,bg:!0,az:!0,ar:!0}},function(e,t){e.exports='<div class="rteGoToDialog" data-dojo-attach-point ="contentNode">\n <div class="goToDetails" data-dojo-attach-point ="goToDetails">\n <div class="input-row">\n <span class="lineNumberLabel"><label data-dojo-attach-point =\'lineNumberLabel\'></label></span>\n <span data-dojo-attach-point ="lineNumberInput"\n data-dojo-type="dijit.form.NumberTextBox" data-dojo-props="constraints:{min:0, places:0}"\n name="lineNumberInput" id="lineNumberInput"></span>\n </div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(3982),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.code.sections.model"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(1400),i(668),i(1108)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{PLAIN_EDITOR:1,LIVE_EDITOR:2,SECTION_TITLE:"title",SECTION_ROW:"row",constructor:function(e,t,i){this._document=e,this._internalDocument=t,this._sectionsPlugin=i},getSections:function(e){var t=[];return e===this.LIVE_EDITOR?t=this._getLiveEditorSections():e===this.PLAIN_EDITOR&&(t=this._getPlainEditorSections()),t},_getPlainEditorSections:function(){var e=this._sectionsPlugin.getSections(),t=1;return e.map((function(e){var n={},r=e.start.getLine()-1,a=this._internalDocument.getLineNode(r).getText();if(o.hasSectionTitle(a)){var s=i.formatSectionTitle(a,t);n[this.SECTION_TITLE]=s[0],n[this.SECTION_ROW]=r+1,t=s[1]}return n}),this)},_getLiveEditorSections:function(){var e=[],t=this._sectionsPlugin.getSections();return t.length>=2&&(e=t.map((function(e,t){var o=n.getSectionInfo(e.start.node,e.end.node,this._internalDocument),r={};return r[this.SECTION_TITLE]=i.getValidLiveEditorSectionTitle(o[n.LABEL],t),r[this.SECTION_ROW]=o[n.LINE],r}),this)),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3984)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document.eventcache"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(209),i(207),i(249),i(260),i(669)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(o,{constructor:function(e,n){this._internalDocument=e,this._documentEventCache=n,this._headingNodes=[],this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleDocumentChanged"),!0)),this.own(i.after(this._internalDocument,"onDocumentReset",t.hitch(this,"_handleDocumentReset")))},onModelUpdated:function(){},getHeadingNodes:function(){return this._headingNodes},_handleDocumentChanged:function(e){if(e){var t=a.hasLengthChangingEvent(e),i=a.hasEventType(e,r.FORMAT_CHANGE_EVENT);(t||i)&&this._updateHeadings(!1)}},_handleDocumentReset:function(){this._updateHeadings(!0)},_updateHeadings:function(e){var t=[];t=e?this._getUpdatedHeadingsFromFullDocument():this._getUpdatedHeadingsFromEvents(),this._headingsChanged(t)&&(this._headingNodes=t,this.onModelUpdated())},_getUpdatedHeadingsFromFullDocument:function(){for(var e,t=this._internalDocument.getMaxLineNumber(),i=[],n=0;n<t;n++)e=this._internalDocument.getLineNode(n),s.isHeadingNode(e)&&i.push(e);return i},_getUpdatedHeadingsFromEvents:function(){var e=this._headingNodes.filter((function(e){return null!==e.parent}));return this._documentEventCache.getLineNodesFromEvents().forEach((function(t){s.isHeadingNode(t)&&-1===e.indexOf(t)&&e.push(t)})),e.sort((function(e,t){return e.startPosition().getLine()-t.startPosition().getLine()})),e},_headingsChanged:function(e){return e.length!==this._headingNodes.length||e.some((function(e,t){return e.uid!==this._headingNodes[t].uid||(e.lineNumber!==this._headingNodes[t].lineNumber||(e.level!==this._headingNodes[t].level||void 0))}),this)},destroy:function(){this.inherited(arguments),this._headingNodes=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3986)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.linenumberservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t){this._internalDocument=e,this._lineNumberService=t,this._contributors=[],this._contributorHandles=[],this._documentFragmentStartNodes=[]},resetContributors:function(e){this._contributorsAreEqual(e)||(this._removeOldContributors(),this._setupContributors(e),this._updateDocumentFragments())},onModelUpdated:function(){},getDocumentFragments:function(){return this._documentFragmentStartNodes},getNumberOfFragments:function(){return this._documentFragmentStartNodes.length},_contributorsAreEqual:function(e){return this._contributors.length===e.length&&e===this._contributors},_removeOldContributors:function(){this._contributorHandles.forEach((function(e){e.remove()})),this._contributors.forEach((function(e){e.disable()}))},_setupContributors:function(e){this._contributors=e,this._contributorHandles=this._contributors.map((function(e){return t.after(e,"onDocumentFragmentsUpdated",this._handleDocumentFragmentsUpdated.bind(this))}),this),this._contributorHandles.forEach((function(e){this.own(e)}),this),this._contributors.forEach((function(e){e.enable()}))},_handleDocumentFragmentsUpdated:function(){this._updateDocumentFragments()},_updateDocumentFragments:function(){var e=this._documentFragmentStartNodes;this._documentFragmentStartNodes=[],this._cacheSortedFragmentNodes(),this._nodesAreEqual(e)||this.onModelUpdated()},_cacheSortedFragmentNodes:function(){if(this._contributors.length>0){var e=this._internalDocument.getLineNode(0);this._documentFragmentStartNodes.push(e)}this._contributors.forEach((function(e){e.getDocumentFragmentStartNodes().forEach((function(e){this._documentFragmentStartNodes.push(e)}),this)}),this),this._documentFragmentStartNodes.sort(function(e,t){return this._lineNumberService.getLineNumber(e)-this._lineNumberService.getLineNumber(t)}.bind(this)),this._removeDuplicateFragmentNodes()},_removeDuplicateFragmentNodes:function(){var e=this._documentFragmentStartNodes.filter((function(e,t){return e!==this._documentFragmentStartNodes[t+1]}),this);this._documentFragmentStartNodes=e},_nodesAreEqual:function(e){return e.length===this._documentFragmentStartNodes.length&&this._documentFragmentStartNodes.every((function(t,i){return t===e[i]}))},destroy:function(){this.inherited(arguments),this._documentFragmentStartNodes=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3988)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.sections.model"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(1937)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this.inherited(arguments),this._sectionModel=e,this._positionListeners=[],this.own(t.after(this._sectionModel,"onModelUpdated",this._handleDocumentFragmentChange.bind(this)))},_handleDocumentFragmentChange:function(){this._clearPositionListeners(),this._enabled&&(this._update(),this.onDocumentFragmentsUpdated())},_update:function(){var e=this._sectionModel.getSections();this._fragmentStartNodes=e.map((function(e){var i=e.start;return this._positionListeners.push(t.after(i,"onChange",this._handlePositionChanged.bind(this),!0)),i.getNode()}),this)},_clearPositionListeners:function(){this._positionListeners.forEach((function(e){e.remove()})),this._positionListeners=[]},_handlePositionChanged:function(e){e.nodeHasChanged&&this._handleDocumentFragmentChange()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3990)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.headingmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(1937)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this.inherited(arguments),this._headingModel=e,this.own(t.after(this._headingModel,"onModelUpdated",this._handleDocumentFragmentChange.bind(this)))},_handleDocumentFragmentChange:function(){this._enabled&&(this._update(),this.onDocumentFragmentsUpdated())},_update:function(){this._fragmentStartNodes=this._headingModel.getHeadingNodes()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3992)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(211),i(314),i(664),i(3993)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(r,{_PRIORITY:50,SKIP_NODES:["META","LINK","#comment","STYLE","TITLE"],constructor:function(){this._handlers=[],this._textHandlers=[],this._preprocessors=[]},getType:function(){return o.HTML},priority:function(){return this._PRIORITY},setDefaultParagraphFactory:function(e){this._defaultParagraphFactory=e},registerDocumentPreprocessor:function(e){this._preprocessors.push(e)},registerNodeHandler:function(e,t,n){"string"==typeof e&&(e=[e]),this._handlers.push(i.mixin({acceptedNodeNames:e,convertNode:t,priority:n||0},t)),this._handlers=this._handlers.sort((function(e,t){return t.priority-e.priority}))},registerTextHandler:function(e,t){this._textHandlers.push({convertText:e,priority:t||0}),this._textHandlers=this._textHandlers.sort((function(e,t){return t.priority-e.priority}))},convertFromMimeData:function(e){if(this._defaultParagraphFactory){e=e.replace(/<\/html>[\s\S]*/,"</html>");var t=document.createElement("iframe");t.style.visibility="hidden",document.body.appendChild(t),t.sandbox="allow-same-origin",t.contentDocument.documentElement.innerHTML=e;var i=t.contentDocument.documentElement.querySelector("head");n.create("style",{type:"text/css",textContent:"pre {font-family: monospace }\nbody {font-family: 'Arial', 'Helvetica', sans-serif}\na {text-decoration: none}"},i,"first");var o=t.contentDocument.body;this._preprocessors.forEach((function(e){e(o)})),this._builder=new a(this._defaultParagraphFactory),this._traverseDOM(o),document.body.removeChild(t);var r=this._builder.getDocumentFragment();if(0!==r.length)return r}},_traverseDOM:function(e){var t=this._builder.getActiveNode();this._enterNode(e);for(var i=e.firstChild;i;)"#text"===i.nodeName?i.textContent&&this._callTextConverter(i):this.SKIP_NODES.indexOf(i.nodeName)<0&&this._traverseDOM(i),i=i.nextSibling;t?this._builder.popTo(t):this._builder.getActiveNode()&&(this._builder.isImplicitParagraph()?this._builder.setActiveNode(this._builder.getLastParagraph()):this._builder.leaveParagraph())},_callTextConverter:function(e){this._textHandlers.forEach((function(t){t.convertText(e,this._builder)}),this)},_enterNode:function(t){e.some(this._handlers,(function(e){if(!e.convertNode||e.acceptedNodeNames.indexOf(t.nodeName)<0)return!1;e.convertNode(t,this._builder)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203)],o=i.dj.d(n,(function(e,t){return t(null,{constructor:function(e){this._defaultParagraphFactory=e,this._content=[],this._isImplicitParagraph=!1},getDocumentFragment:function(){this.leaveParagraph();var t=e.map(this._content,(function(e){return e.serialize()}));return 1!==t.length||this._hasExplicitParagraph?t:t[0].children},getActiveNode:function(){return this._activeNode},isInParagraph:function(){return!!this.getActiveNode()},getLastParagraph:function(){return this._content[this._content.length-1]},appendNode:function(e){this._activeNode||(this.appendParagraph(),this._isImplicitParagraph=!0),this._activeNode.children.push(e)},appendInnerNode:function(e){this.appendNode(e),this._activeNode=e},setActiveNode:function(e){this._activeNode!==e&&(this._activeNode&&0===this._activeNode.children.length&&this._removeNode(this._activeNode),this._activeNode=e)},appendParagraph:function(e){this._isImplicitParagraph=!1;var t=this.getLastParagraph();this.setActiveNode(e||this._defaultParagraphFactory()),t&&0===t.children.length&&this._removeNode(t),this._content.push(this._activeNode)},_removeNode:function(e){var t,i=this.getParent(e);i?(t=i.children.indexOf(e),i.children.splice(t,1)):(t=this._content.indexOf(e))>=0&&this._content.splice(t,1),this._activeNode===e&&(this._activeNode=null)},getParent:function(t){var i;return e.some(this._content,(function(e){return i=this._searchParent(t,e)}),this),i},setHasExplicitParagraph:function(){this._hasExplicitParagraph=!0},isImplicitParagraph:function(){return this._isImplicitParagraph},_searchParent:function(t,i){return!!i.children&&(i.children.indexOf(t)>=0?i:(e.some(i.children,(function(e){return n=this._searchParent(t,e)}),this),n));var n},leaveParagraph:function(){this.setActiveNode(null)},popTo:function(e){for(var t=this._activeNode;t&&t!==e;)t=this.getParent(t);this.setActiveNode(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(3995)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.actionservice","rtc.clipboard","rtc.cutcopypaste.converter","rtc.document"]}},createInstance:function(e,t,i,o,r){return new n(e,t,i,o,r)}})}),e,t),e.exports=o},function(e,t,n){var o,r;o=[n(203),n(204),n(209),n(207),n(208),n(1352),n(401),n(270)],r=n.dj.d(o,(function(e,t,n,o,r,a,s,l){return e(o,{constructor:function(e,i,n,o,a){this._cursorController=e,this._clipboard=n,this._converter=o,this._document=a,this._actionService=i;const s=[{id:"rtc_kill_line",enabled:!0,callback:t.hitch(this,"_performKillLineAction")}];this._actionService.loadActions(s),this.own(r.after(this._cursorController,"onUpdate",t.hitch(this,"_diagnoseCursorChange")))},_performKillLineAction:function(){if(!this._cursorController.hasMultipleCursors()){this._cursorController.hasSelection()&&this._cursorController.clearSelection();const e=this._setUpInvisibleSelection();return Boolean(this._previousKillLineCursorLocation)?this._performConsecutiveKillLineAction(e):this._performInitialKillLineAction(e),!0}return this._previousKillLineCursorLocation&&this._previousKillLineCursorLocation.destroy(),this._previousKillLineCursorLocation=null,!1},_performInitialKillLineAction:function(e){a.cutFromDocumentWithPosition(this._clipboard,this._converter,this._document,[e]).then(function(){e.destroy(),this._cursorController.emitUpdate(!0)}.bind(this),(function(){n.assert(!1,"[Unsuccessful Cut] Failure in kill Line due to unsuccessful cut")})),this._previousKillLineCursorLocation=this._cloneCursorPosition(),this._previousKillLineCursorLocation.setLive(!0)},_performConsecutiveKillLineAction:function(e){let t=this._converter.getRegisteredMimeTypes();this._clipboard.getClipboardData(t).then(function(t){let i=this._converter.convertToClipboard(e);a.cutFromDocumentWithPosition(this._clipboard,this._converter,this._document,[e]).then(function(){e.destroy(),this._cursorController.emitUpdate(!0);let o=this._concatenateClipboards(t,i);this._clipboard.setClipboardData(o).then((function(){}),(function(){n.assert(!1,"[Unsuccessful Copy] The data could not be set to the clipboard successfully")}))}.bind(this),(function(){n.assert(!1,"[Unsuccessful Cut] Failure in kill Line due to unsuccessful cut")}))}.bind(this),(function(){n.assert(!1,"Failure in kill Line due to unsuccessful clipboard data pull")}))},_concatenateClipboards:function(e,t){const n={flavor:"text/plain",content:""};if("text/plain"in e)for(i=0;i<t.length;i++)"text/plain"===t[i].flavor&&(n.content=e["text/plain"].concat(t[i].content));return[n]},_setUpInvisibleSelection:function(){const e=this._cloneCursorPosition();let t=e.getNode().rootContainer().endPosition();const i=t.getNode().nextNode();return i&&t.isEqualTo(e)&&(t=i.startPosition()),e.setLive(!0),t.setLive(!0),new s(e,t,!1,!1)},_cloneCursorPosition:function(){const e=this._cursorController.getCursorPositions(!0)[0];return new l(e.getNode(),e.getOffset(),e.isRightAligned())},_diagnoseCursorChange:function(){this._cursorController.getCursorPositions(!0)[0].isEqualTo(this._previousKillLineCursorLocation)||(this._previousKillLineCursorLocation&&this._previousKillLineCursorLocation.destroy(),this._previousKillLineCursorLocation=null)}})}),e,t),e.exports=r},function(e,t,i){var n,o;n=[i(203),i(3997),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.actionservice","rtc.cursor","rtc.editortabservice","rtc.document.info"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(229),i(251),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,i,n,o){this._actionService=e,this._cursor=i,this._editorTabService=n,this._documentInfo=o;const r=[{id:"rtc_emacs_style_tab",enabled:!0,key:"tab",callback:t.hitch(this,"_doEmacsStyleTabIndent")}];this._actionService.loadActions(r)},_doEmacsStyleTabIndent:function(){if(!this._editorTabService.isEmacsStyle())return!1;const e={};if(!this._cursor.hasSelection()){const t=this._cursor.getLineColumn().line-1;e.startLine=t,e.endLine=t;const n=this._documentInfo.getLineText(t+1);e.trimWhitespace=""!==n&&!i.isWhitespace(n)}return this._actionService.getAction(n.FORMAT_CODE.SMART_INDENT_ACTION)&&this._actionService.executeAction(n.FORMAT_CODE.SMART_INDENT_ACTION,e),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(3999)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.actionservice","rtc.internaldocument","rtc.document","rtc.editortabservice"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(234),i(249),i(274),i(270),i(401),i(379),i(364),i(1919),i(670),i(473),i(251),i(253)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){const m=/^\s*/;return e(n,{constructor:function(e,n,o,r,a){this._cursorController=e,this._actionService=n,this._internalDocument=o,this._document=r,this._editorTabService=a,this._cursor=this._cursorController.getCursor(),this._addActions(),this.own(i.after(this._cursorController,"onUpdate",t.hitch(this,this._updateActiveSection))),this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,this._updateActionsOnDocumentChange),!0))},_addActions:function(){this._actions=[{id:f.INDENT.INDENT_ACTION,enabled:!0,key:"ctrl_]",platformKey:{mac:"meta_]"},text:g.indentDescription,callback:t.hitch(this,"_indentCallback")},{id:f.INDENT.OUTDENT_ACTION,enabled:!0,key:"ctrl_[",platformKey:{mac:"meta_["},text:g.outdentDescription,callback:t.hitch(this,"_unindentCallback")},{id:"rtc_format_code_tab",key:"tab",enabled:!0,callback:t.hitch(this,"_tabIndentCallback")},{id:"rtc_shift_tab",key:"shift_tab",enabled:!0,callback:t.hitch(this,"_unindentCallback")}],this._actionService.loadActions(this._actions)},_indentCallback:function(){return!!this._actionService.getAction(f.INDENT.INDENT_ACTION).enabled&&this._indentSelection(1,!this._isCodeInSelection())},_unindentCallback:function(){return!!this._actionService.getAction(f.INDENT.OUTDENT_ACTION).enabled&&this._indentSelection(-1,!this._isCodeInSelection())},_tabIndentCallback:function(){return!!this._actionService.getAction(f.INDENT.INDENT_ACTION).enabled&&(!!this._cursor.hasSelection()&&(!!this._shouldBlockIndentOnTab()&&(this._indentSelection(1,!this._isCodeInSelection()),!0)))},_shouldBlockIndentOnTab:function(){const e=this._cursor.getSelection(),t=e.getStartPosition().getNode()!==e.getEndPosition().getNode();return c.isMultiLineSelection(this._cursor)||!this._isCodeInSelection()&&t},_indentSelection:function(e,t){const i=[],n=1===e?this._indentContainer:this._unindentContainer;let o=null,r=null,s=null,l=!0,c=null;if(this._cursor.hasSelection()){const t=this._cursor.getSelection();let i=this._getNodeRangeFromSelection(t);this._adjustSelection(e,t),o=i.startNode,r=i.endNode}else o=this._cursor.getCursorPosition().getNode().textContainer(),r=o;const u=a.getLineNumberForNode(r,this._internalDocument);this._cursorController.holdCursors();const h=this._document.startBlockEdit();let p=o;for(;p&&c!==r;){const e=a.getLineNumberForNode(p,this._internalDocument);if(this._shouldIndentContainer(p,t)){const t=n.call(this,p);s=null===s&&t?e:s,t&&(l=!1)}c=p,p=this._getNextContainer(p);let o=!1,h=p?a.getLineNumberForNode(p,this._internalDocument):null;if(p&&c!==r?p&&(o=h!==e):o=!0,o){const t=!p||c===r;if((l||t)&&null!==s){const n=t?u:e-1;i.push(d.create(s,n)),s=null}l=!0}}return i.length&&(h.appendUndoEvents(i),h.appendRedoEvents(i),this._internalDocument.emitDocumentEvents(i)),this._document.endBlockEdit(h),this._cursorController.resetCursors(),i.length&&this._cursorController.scrollIntoView(),i.length>0},_getNodeRangeFromSelection:function(e){let t=c.trimTrailingLineBreak(e);const i=t.getStartPosition().getNode().textContainer();let n=t.getEndPosition().getNode().textContainer();return i!==n&&0===t.getEndPosition().getOffset()&&(n=n.prevNode().textContainer()),{startNode:i,endNode:n}},_adjustSelection:function(e,t){if(1===e)return;const i=t.getStartPosition(),n=t.getEndPosition();let o=!1,{line:r,column:a}=i.getLineColumn();const s=this._document.getLineText(r).match(m)[0].length;a<=s&&(a=s+1,o=!0);let{line:c,column:d}=n.getLineColumn();const u=this._document.getLineText(c).match(m)[0].length;if(d<=u&&d>1&&(d=u+1,o=!0),o){const e=this._internalDocument.getPositionForLineColumn(r,a),i=this._internalDocument.getPositionForLineColumn(c,d),n=new l(e,i,t.isReversed(),t.fileEndSelected());this._cursor.setSelection(n)}},_getNextContainer:function(e){const t=e.nextSibling()||e.rootContainer().nextSibling();return t&&t.childrenAreContainers?t.children[0]:t},_indentContainer:function(e){let t=!1;if(!e.isAutoGenerated){const i=e.firstChild().getCodeText().match(m)[0].length,n=new s(e,i),o=h.createTextNodeForPosition(this._editorTabService.getWhitespaceStringOfLength(this._editorTabService.getIndentSize()),n);this._internalDocument.insertAtPosition(o,n),t=!0}return t},_unindentContainer:function(e){let t=!1;const i=this._getLeadingWhitespaceRegexp();if(!e.isAutoGenerated&&!e.isOpaqueNode()){const n=e.getText().match(i);n&&(this._internalDocument.deleteText(this._getFirstChildTextNode(e),0,n[0].length),t=!0)}return t},_getFirstChildTextNode:function(e){let t=e;for(;!t.isTextNode();)t=t.firstChild();return t},_getLeadingWhitespaceRegexp:function(){const e=this._editorTabService.getIndentSize();return new RegExp("^(\\t| {1,"+e+"})","g")},_shouldIndentContainer:function(e,t){const i=!e.isReadOnly(),n=t&&!(e instanceof p),r=o.isCodeContainer(e);return i&&(r||n)},_updateActionsOnDocumentChange:function(e){e&&t.isArray(e)&&e.some((function(e){if(e.type===r.READONLY_STATE_CHANGE_EVENT)return this._updateActiveSection(),!0}),this)},_updateActiveSection:function(){const e=this._shouldEnableActions();this._actionService.updateAction(f.INDENT.INDENT_ACTION,{enabled:e}),this._actionService.updateAction(f.INDENT.OUTDENT_ACTION,{enabled:e}),this._actionService.updateAction("rtc_shift_tab",{enabled:e}),this._actionService.updateAction("rtc_format_code_tab",{enabled:e})},_shouldEnableActions:function(){const e=!this._cursor.isCursorReadOnly(!0),t=this._hasTextNodeWithinCursor();return e&&t},_hasTextNodeWithinCursor:function(){let e,t;if(this._cursor.hasSelection()){let i=c.trimTrailingLineBreak(this._cursor.getSelection());e=i.getStartPosition().getNode(),t=i.getEndPosition().getNode()}else e=this._cursor.getCursorPosition().getNode(),t=e;let i=!1;return a.leafNodesInRangeIterator(e,t,e=>{if(e.isTextNode())return i=!0,!0}),i},_isCodeInSelection:function(){const e=this._cursor.selectionInfo();return o.isCodeInRange(e.startNode,e.endNode)},destroy:function(){this._actions.forEach((function(e){this._actionService.removeAction(e.id)}),this),this._actions=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4001)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.internaldocument","rtc.cursorcontroller","rtc.code.matlabfiletype"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(399)],o=i.dj.d(n,(function(e,t,i){return e(i,{_REFACTOR_ACTION_ID:"rtc_refactor",constructor:function(e,i,n,o){this._actionService=e,this._internalDocument=i,this._cursorController=n,this._fileType=o,this._initializeActions(),this.own(t.after(this._internalDocument,"readOnlyChanged",this._handleReadOnlyChange.bind(this),!0)),this.own(t.after(this._cursorController,"onUpdate",this._handleCursorChange.bind(this))),this.own(t.after(this._fileType,"onFileTypeChange",this._handleFileTypeChange.bind(this))),this._forceDisabled=!1},_initializeActions:function(){this._actions=[{id:this._REFACTOR_ACTION_ID,enabled:!0}],this._actionService.loadActions(this._actions)},_handleReadOnlyChange:function(e){e?this._updateActionEnablement(!1):this._updateActionEnablement(!0)},_handleFileTypeChange:function(){this._fileType.isClass()?(this._forceDisabled=!0,this._updateActionEnablement(!1)):(this._forceDisabled=!1,this._updateActionEnablement(!0))},_handleCursorChange:function(){this._cursorController.getCursors()[0].isCursorReadOnly()?this._updateActionEnablement(!1):this._updateActionEnablement(!0)},_updateActionEnablement:function(e){e&&this._forceDisabled||this._actions.forEach((function(t){this._actionService.updateAction(t.id,{enabled:e})}),this)},enableForHiddenCode:function(){this._forceDisabled=!1,this._updateActionEnablement(!0)},disableForHiddenCode:function(){this._forceDisabled=!0,this._updateActionEnablement(!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1938)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.editordataservice","rtc.export.m","rtc.serializers","rtc.id"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4004)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.document","rtc.internaldocument","rtc.cursorcontroller","rtc.refactoringtools.functionvalidator","rtc.contextmenu.documentcontributor","rtc.refactoringtools.errornotifier","rtc.indentutilities","rtc.refactoringtools.config","rtc.linenumberservice","rtc.code.matlabfiletype","matlab.languageanalysis.refactoringservice","rtc.refactoringtools.externalfunction.filecreator","rtc.executionservice"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(253),i(1405),i(236),i(233),i(209),i(241),i(1939),i(1943),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(s,{_REFACTOR_ACTION_ID:c.REFACTOR.REFACTOR_EXTERNAL_FUNCTION,_CONTEXT_MENU_TEXT:t.extractExternalFunction,_EDIT_COMMAND:"edit",constructor:function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){this._externalFunctionFileCreator=h,this._executionService=p},_doRefactor:function(){var e=this._createRefactoringRequestRegion();this._refactoringServiceWrapper.refactorToExternalFunction(e).then(function(e){if(e.error)return this._showAnalysisError(e.errorResult),void this._cleanupRefactoringListeners();var t=e.successResult,i=["mlx","m"];this._refactoringConfig.isLiveEditorConfig()||(i=["m","mlx"]),this._externalFunctionFileCreator.promptForFile(i).then(function(e){if(!e.cancelled)if(e.invalidFileName){var i=e.filePath;this._showUnableToCreateFileError(i)}else{var n=e.functionName,r=e.filePath,a=o.getFullyQualifiedMatlabName(o.fileInfoFromPath(r));this._createFunctionFile(n,a,r,t)}}.bind(this),(function(){}))}.bind(this),(function(e){}))},_createFunctionFile:function(e,i,n,o){var a=this._selectionToRefactor,s=new l(e,i,o.inputs,o.outputs,a);this._saveToFile(n,s).then(function(e){if(this._cleanupRefactoringListeners(),e.success){if(this._hasDocumentBeenModified())return void this._showDocumentModifiedError(t.extractExternalFunction);this._replaceSelectionWithCallSite(s),this._executionService.executionEval(this._EDIT_COMMAND+"('"+n+"');")}else this._showUnableToCreateFileError(n),r.error(e.exception)}.bind(this),(function(){}))},_saveToFile:function(e,t){return o.isLiveScriptFile(e)?this._externalFunctionFileCreator.saveToMLXFile(e,t):o.isPlainCodeFile(e)?this._externalFunctionFileCreator.saveToMFile(e,t):void r.assert("Attempting to create unsupported file type: "+e)},_replaceSelectionWithCallSite:function(e){var t=e.selection,i=t.getStartPosition().getLineColumn(),n=this._document.createPositionAtLineColumn(i.line-1,i.column-1),o=this._document.startBlockEdit(this._FUNCTION_REFACTOR_BLOCK_TYPE),r=t.getStartPosition().getLineColumn(),a=t.getEndPosition().getLineColumn();this._document.deleteText(r.line,r.column,a.line,a.column),this._insertCallSite(n.getLine(),n.getColumn(),e.getCallSiteString()),this._document.endBlockEdit(o),this._cursorController.clearSelection(),n.destroy()},_showUnableToCreateFileError:function(e){var r=n.substitute(i.unableToCreateFile,[o.nameFromPath(e)]);a.displayAlertDialog(t.extractExternalFunction,r,{modal:!0})}})}),e,t),e.exports=o},function(e,t,i){e.exports={classFile:"クラス内でのリファクタリングはサポートされていません",columnSelection:"四角形の選択のリファクタリングはサポートされていません",documentModified:"ファイルの内容が変更されたため選択をリファクタリングできません。",globalVariable:"グローバル変数のリファクタリングはサポートされていません",insideBlockComment:"選択にはブロック コメント全体が含まれていなければなりません",insideBlockStatement:"選択には制御フロー ステートメント全体が含まれていなければなりません",lineContinuation:"選択にはステートメント全体が含まれていなければなりません",localFunctionSelection:"既存のローカル関数のリファクタリングはサポートされていません",noCodeSelected:"選択にはコードが含まれていなければなりません",noSelection:"変換するコードを選択してください",partialLineSelected:"部分的な行のリファクタリングはサポートされていません",readOnlySelection:"読み取り専用行のリファクタリングはサポートされていません",syntaxError:"構文エラーのあるコードのリファクタリングはサポートされていません",unableToCreateFile:"ファイル '${0}' を作成できません"}},function(e,t,i){e.exports={classFile:"클래스에서는 리팩터링이 지원되지 않음",columnSelection:"사각형 선택 영역을 리팩터링하는 것은 지원되지 않음",documentModified:"파일 내용이 변경되었으므로 선택 영역을 리팩터링할 수 없습니다.",globalVariable:"전역 변수를 리팩터링하는 것은 지원되지 않음",insideBlockComment:"선택 영역에는 전체 블록 주석이 포함되어야 함",insideBlockStatement:"선택 영역에는 전체 제어 흐름 명령문이 포함되어야 함",lineContinuation:"선택 영역에는 전체 명령문이 포함되어야 함",localFunctionSelection:"기존 로컬 함수를 리팩터링하는 것은 지원되지 않음",noCodeSelected:"선택 영역에는 코드가 포함되어야 함",noSelection:"변환할 코드 선택",partialLineSelected:"부분 라인을 리팩터링하는 것은 지원되지 않음",readOnlySelection:"읽기 전용 라인을 리팩터링하는 것은 지원되지 않음",syntaxError:"구문 오류가 있는 코드를 리팩터링하는 것은 지원되지 않음",unableToCreateFile:"파일 '${0}'을(를) 만들 수 없음"}},function(e,t,i){e.exports={classFile:"不支持在类中进行重构",columnSelection:"不支持对框选内容进行重构",documentModified:"无法重构所选内容,因为文件内容已更改。",globalVariable:"不支持重构全局变量",insideBlockComment:"选择内容必须包括整个块注释",insideBlockStatement:"选择内容必须包括整个控制流语句",lineContinuation:"选择内容必须包括整个语句",localFunctionSelection:"不支持对现有局部函数进行重构",noCodeSelected:"选择内容必须包括代码",noSelection:"选择要转换的代码",partialLineSelected:"不支持对部分行进行重构",readOnlySelection:"不支持对只读行进行重构",syntaxError:"不支持对有语法错误的代码进行重构",unableToCreateFile:"无法创建文件 '${0}'"}},function(e,t,i){e.exports={root:{classFile:"Refactoring is not supported in classes",columnSelection:"Refactoring rectangular selections not supported",documentModified:"Unable to refactor selection because the file content has changed.",globalVariable:"Refactoring global variables not supported",insideBlockComment:"Selection must include entire block comment",insideBlockStatement:"Selection must include entire control flow statement",lineContinuation:"Selection must include entire statement",localFunctionSelection:"Refactoring existing local function is not supported",noCodeSelected:"Selection must include code",noSelection:"Select code to convert",partialLineSelected:"Refactoring partial lines not supported",readOnlySelection:"Refactoring read only lines not supported",syntaxError:"Refactoring code with syntax errors not supported",unableToCreateFile:"Unable to create file '${0}'"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(4010)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(281)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._isLiveEditorConfiguration=!1,this._isLiveEditorConfiguration=!!t||i.isLiveCodeFile(e)},isLiveEditorConfig:function(){return this._isLiveEditorConfiguration},setIsLiveEditorConfig:function(e){this._isLiveEditorConfiguration=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4012)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(277),i(30),i(207),i(437),i(377)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{_LAYER_CLASS:"extractFunctionTooltipHolder",constructor:function(e){this._view=e,this._errorLayer=this._createLayer(),e.addLayer(this._errorLayer),this._tooltipDialog=new n({class:[r.TOOLTIP_CLASS,r.TOOLTIP_DIALOG_CLASS]}),this._tooltipOpen=!1},showError:function(e,t){var n=this._view.getCoordinateForPosition(e);this._errorLayer.style.top=n.y+n.height/2+"px",this._errorLayer.style.left=n.x+"px",this._tooltipDialog.set("content",t),this._tooltipDialog.set("data-testid","functionrefactoring_visible"),i.open({popup:this._tooltipDialog,around:this._errorLayer,orient:["below-centered","below","above-centered","above"],onCancel:this.closeTooltip.bind(this)}),this._tooltipOpen=!0,a.refuseFocus(this._tooltipDialog.domNode)},closeTooltip:function(){this._tooltipOpen&&(i.close(this._tooltipDialog),this._tooltipDialog.set("data-testid","functionrefactoring_hidden"))},isErrorNotificationVisible:function(){return this._tooltipOpen},_createLayer:function(){return t.create("div",{class:this._LAYER_CLASS})}})}),e,t),e.exports=o},function(e,t){e.exports='<div role="alertdialog" tabIndex="-1">\n\t<div class="dijitTooltipContainer" role="presentation">\n\t\t<div data-dojo-attach-point="contentsNode" class="dijitTooltipContents dijitTooltipFocusNode">\n\t\t\t<div data-dojo-attach-point="containerNode"></div>\n\t\t\t${!actionBarTemplate}\n\t\t</div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation" data-dojo-attach-point="connectorNode"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(205),i(4015)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.document","rtc.internaldocument"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(212),i(207),i(237),i(274),i(266),i(1941),i(1942)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(n,{constructor:function(e,t,i){this._cursorController=e,this._document=t,this._internalDocument=i},validateDocumentState:function(){var e=new i,t=this._checkValidDocumentState();if(t)e.resolve(t);else{var n=l.getSelection(this._cursorController);n=l.adjustSelectionForTripleClickSelection(n),this._checkCodeStructureValidation(n).then(function(t){t?e.resolve(t):e.resolve(null)}.bind(this),(function(){}))}return e},_checkValidDocumentState:function(){var e=null;if(this._cursorController.hasMultipleCursors())e=s.ERROR_CONDITIONS.COLUMN_SELECTION;else if(this._cursorController.hasSelection()){var t=l.getSelection(this._cursorController);this._document.getCodeTextForRange(t).trim()||(e=s.ERROR_CONDITIONS.NO_CODE_SELECTED),r.allNodesInRangeWritable(t)||(e=s.ERROR_CONDITIONS.READ_ONLY_SELECTION)}else e=s.ERROR_CONDITIONS.NO_SELECTION;return e},_checkCodeStructureValidation:function(e){var t=new i,n=e.getStartPosition(),r=n.getLine(),a=n.getColumn()-1,l=e.getEndPosition(),c=l.getLine(),d=l.getColumn()-1,u=this._document.getLineText(r),h=a<=o.getLeadingWhitespace(u),p=this._hasOnlyTextNodesInDirection(n,!1),f=h&&p,g=this._document.getLineText(c),m=o.getTrailingWhitespace(g),_=d>=g.length-m,v=this._hasOnlyTextNodesInDirection(l,!0);return f&&(_&&v)?t.resolve(null):t.resolve(s.ERROR_CONDITIONS.FULL_LINE_NOT_SELECTED),t},_hasOnlyTextNodesInDirection:function(e,t){var i=!1,n=e.getNode();for(n=this._advanceCursorNodeOnLine(n,t);n;){if(!n.isTextNode()){i=!0;break}n=this._advanceCursorNodeOnLine(n,t)}return!i},_advanceCursorNodeOnLine:function(e,t){var i=null;return(i=t?e.nextNode():e.prevNode())&&i.rootContainer()===e.rootContainer()?i:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4017)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.document","rtc.internaldocument","rtc.cursorcontroller","rtc.refactoringtools.functionvalidator","rtc.contextmenu.documentcontributor","rtc.refactoringtools.errornotifier","rtc.indentutilities","rtc.refactoringtools.config","rtc.linenumberservice","rtc.code.matlabfiletype","matlab.languageanalysis.refactoringservice","matlab.lexer.statemanager","language.interface.tokenmanager","rtc.view","rtc.functionservice"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(253),i(234),i(260),i(274),i(313),i(266),i(401),i(324),i(1944),i(1943),i(1939),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(u,{_REFACTOR_ACTION_ID:h.REFACTOR.REFACTOR_LOCAL_FUNCTION,_CONTEXT_MENU_TEXT:t.extractLocalFunction,_ACTION_SHORTCUT:"",_END_STRING:"end",_SCROLL_PADDING:100,constructor:function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){this._matlabStateManager=h,this._matlabTokenManager=p,this._view=f,this._functionService=g},_doRefactor:function(){var e=this._createRefactoringRequestRegion();this._refactoringServiceWrapper.refactorToLocalFunction(e).then(function(e){if(this._cleanupRefactoringListeners(),e.error)this._showAnalysisError(e.errorResult);else if(this._hasDocumentBeenModified())this._showDocumentModifiedError(t.extractLocalFunction);else{var i=e.successResult,n=new d(i.name,i.name,i.inputs,i.outputs,this._selectionToRefactor),o=i.requireEnd,a=this._createActiveRange(this._selectionToRefactor),s=this._getEndOfLastCodeLine(),l=null,c=this._document.startBlockEdit(this._FUNCTION_REFACTOR_BLOCK_TYPE);l=r.comparePositions(s,a.getEndPosition())<0?this._performEndOfCodeSelectedRefactor(n,a,o):this._performDocumentBodyRefactor(n,a,s,o),this._document.endBlockEdit(c),this._triggerFunctionRename(l,a.getStartPosition(),n),this._enterRenamingPhase(l,a.getStartPosition()),a.destroy(),s.destroy(),l.destroy()}}.bind(this),(function(e){}))},_createActiveRange:function(e){var t=e.getStartPosition().getLineColumn(),i=this._document.createPositionAtLineColumn(t.line-1,t.column-1),n=e.getEndPosition().getLineColumn(),o=this._document.createPositionAtLineColumn(n.line-1,n.column-1);return new a(i,o)},_performEndOfCodeSelectedRefactor:function(e,t,i){var n=t.getStartPosition(),o=e.getFunctionSignatureString();this._insertFunctionHeader(n,o),i&&this._insertEnd(t.getEndPosition());var r=n.getLineColumn();this._insertCallSite(r.line,r.column,e.getCallSiteString(),!0);var a=this._document.createPositionAtLineColumn(r.line,r.column-1),s=t.getEndPosition();return this._formatNewFunction(a.getLine(),s.getLine()),a},_performDocumentBodyRefactor:function(e,t,i,n){var o=t.getStartPosition().getLineColumn(),r=t.getEndPosition(),a=0===r.getNode().getText().length&&r.getLine()===i.getLine(),s=this._createFunctionSkeleton(e,i,n);return this._moveContent(s,t),this._insertCallSite(o.line,o.column,e.getCallSiteString(),a),this._formatNewFunction(s.getLine(),i.getLine()),s},_createFunctionSkeleton:function(e,t,i){var n=this._insertFunctionHeader(t,e.getFunctionSignatureString()),o=this._document.createPositionAtLineColumn(n.getLine()-1,n.getColumn()-1);return i&&this._insertEnd(t),o},_insertFunctionHeader:function(e,t){var i=t,n=(e.getLine(),this._needsNewLineBetweenFunctions(e)),o=this._insertCodeLineAtPosition(i,e);if(n){var r=o.startPosition().getLineColumn();this._document.insertBreakAt(r.line,r.column)}return o.endPosition()},_needsNewLineBetweenFunctions:function(e){var t=c.getLastDeclaredLocalFunction(this._functionService.getLocalFunctionsDeclarations());if(t)return e.getLine()-t.getEndLine()<=1;if(this._refactoringConfig.isLiveEditorConfig()){var i=this._functionService.getMainFunctionDeclaration();return i&&e.getLine()-i.getEndLine()<=1}return!0},_moveContent:function(e,t){var i=this._document.createPositionAtLineColumn(e.getLine()-1,e.getColumn()-1,!0);this._document.insertBreakAt(e.getLine(),e.getColumn());var n=this._temporarilyMakeNodesInRangeWritable(t);this._document.moveContent(t,i),this._restoreReadOnlyStateForNodes(n),i.destroy()},_temporarilyMakeNodesInRangeWritable:function(e){var t=o.getNodesInRange(e.getStartPosition().getNode(),e.getEndPosition().getNode()),i=new Map;return t.forEach((function(e){var t=e.rootContainer();i.set(t,t.readOnly),t.readOnly=!1})),i},_restoreReadOnlyStateForNodes:function(e){e.forEach((function(e,t){t.readOnly=e}))},_insertEnd:function(e){var t=this._insertCodeLineAtPosition(this._END_STRING,e);this._removeEmptyCodeLineAfterRootContainer(t)},_removeEmptyCodeLineAfterRootContainer:function(e){var t=e.endPosition().getLineColumn(),n=e;if(n.nextSibling()&&i.isCodeContainer(n.nextSibling())&&0===n.nextSibling().getText().length){var o=(n=n.nextSibling()).endPosition().getLineColumn();this._document.deleteText(t.line,t.column,o.line,o.column)}},_insertCodeLineAtPosition:function(e,t){var i=this._internalDocument.createContainerForType("code").container,o=this._internalDocument.createNode(i.getDefaultChild());o.text=e,i.addChild(o);var r=this._document.startBlockEdit(this._FUNCTION_REFACTOR_BLOCK_TYPE),a=t.getNode().rootContainer(),s=a.readOnly;a.readOnly=!1;var l=this._internalDocument.insertAtPosition(i,t);a.readOnly=s;var c=l.events;return r.appendRedoEvents(c),r.appendUndoEvents(n.translateEventsForUndo(c)),this._internalDocument.emitDocumentEvents(c),this._document.endBlockEdit(r),i},_triggerFunctionRename:function(e,t,i){var n=i.functionName,o=this._getSelectionOfIdentifier(e.getLine(),n),r=this._getSelectionOfIdentifier(t.getLine(),n);this._cursorController.setSelection([o,r]),this._view.scrollPositionIntoView(o.getStartPosition(),this._SCROLL_PADDING)},_getSelectionOfIdentifier:function(e,t){var i=this._matlabTokenManager.getFirstOnLineTokenToPassCheck(e-1,e=>{if(e.getType()===l.TOKENS.ID&&e.getValue()===t)return!0}),n=i.getPositionInfo(),o=this._internalDocument.getPositionForLineColumn(n.line+1,n.column+1),r=this._internalDocument.getPositionForLineColumn(n.line+1,n.column+i.getValue().length+1);return new s(o,r)},_getEndOfLastCodeLine:function(){var e=i.findEndOfCodePosition(this._internalDocument);return this._document.createPositionAtLineColumn(e.getLine()-1,e.getColumn()-1,!0)},_formatNewFunction:function(e,t){for(var n=e;n<t;n++){var o=this._internalDocument.getLineNode(n);i.isCodeContainer(o)&&this._indentUtilities.enqueueLineNumberToFormat(n)}},_enterRenamingPhase:function(e,t){this._renaming=!0,this._functionDefintionLine=this._lineNumberService.getCodeLineNumberFromLineNumber(e.getLine()-1),this._callsiteLine=this._lineNumberService.getCodeLineNumberFromLineNumber(t.getLine()-1)},_handleCursorUpdate:function(){if(this.inherited(arguments),this._renaming)if(this._cursorController.hasMultipleCursors()){var e=this._cursorController.getCursorPositions(!0);if(2===e.length){var t=e[0],i=this._lineNumberService.getCodeLineNumberFromLineNumber(t.getLine()-1),n=e[1],o=this._lineNumberService.getCodeLineNumberFromLineNumber(n.getLine()-1);this._functionDefintionLine===o&&this._callsiteLine===i||(this._renaming=!1,this._cursorController.setPositions([n]),this._view.scrollPositionIntoView(n,this._SCROLL_PADDING))}else this._renaming=!1}else this._renaming=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4019)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.settings.service","rtc.documentfragment.model","rtc.documentfragment.contributor.heading","rtc.documentfragment.contributor.section","rtc.slides.slidecontroller","rtc.navigate.sections","rtc.navigate.slides","rtc.presentationmode.fullscreen"]}},createInstance:function(e,t,n,o,r,a,s,l,c){return new i(e,t,n,o,r,a,s,l,c)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{_SETTING_ID:"matlab.editor.views.EnablePresentationMode",_TOGGLE_ACTION_ID:"rtc_toggle_presentation",constructor:function(e,i,n,o,r,a,s,l,c){this._actionService=e,this._settingService=i,this._documentFragmentModel=n,this._fragmentContributors=[o,r],this._slideController=a,this._sectionNavigation=s,this._slideNavigation=l,this._automaticFullScreenService=c,this._actions=[{id:this._TOGGLE_ACTION_ID,enabled:!0,selected:!1,callback:t.hitch(this,"_toggle")}],this.own(this._settingService.listenToSettingChange(this._SETTING_ID,this._loadActionsIfSettingEnabled.bind(this))),this._settingService.getSetting(this._SETTING_ID).then(function(e){this._loadActionsIfSettingEnabled(e)}.bind(this),(function(){})),this._enabled=!1},_loadActionsIfSettingEnabled:function(e){e?this._actionService.loadActions(this._actions):(this._enabled&&this.disable(),this._actions.forEach(function(e){null!==this._actionService.getAction(e.id)&&this._actionService.removeAction(e.id)}.bind(this)))},_toggle:function(){return this._enabled?this.disable():this.enable(),!0},enable:function(){this._enableSlides(),this._actionService.updateAction(this._TOGGLE_ACTION_ID,{selected:!0}),this._enabled=!0,this._automaticFullScreenService.enable()},disable:function(){this._disableSlides(),this._actionService.updateAction(this._TOGGLE_ACTION_ID,{selected:!1}),this._enabled=!1,this._automaticFullScreenService.disable()},_enableSlides:function(){this._documentFragmentModel.resetContributors(this._fragmentContributors),this._slideController.enable(),this._sectionNavigation.disable(),this._slideNavigation.enable()},_disableSlides:function(){this._slideController.disable(),this._documentFragmentModel.resetContributors([]),this._slideNavigation.disable(),this._sectionNavigation.enable()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4021)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.editordataservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{_FULL_SCREEN_FEATURE_ID:"code.toggle.fullscreen",constructor:function(e){this._editorDataService=e,this._fullScreenPromise=null,this._userEnabledFullScreen=!1},enable:function(){this._fullScreenPromise=this._editorDataService.request(this._FULL_SCREEN_FEATURE_ID,{state:!0}),this._fullScreenPromise.then(t.hitch(this,(function(e){this._fullScreenPromise=null,e.existingToggleState&&(this._userEnabledFullScreen=!0)})),t.hitch(this,(function(e){})))},disable:function(){this._userEnabledFullScreen||this._editorDataService.request(this._FULL_SCREEN_FEATURE_ID,{state:!1}),this._userEnabledFullScreen=!1},destroy:function(){this.inherited(arguments),this._fullScreenPromise&&(this._fullScreenPromise.cancel("Cancel automatic full screen request"),this._fullScreenPromise=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4023)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.saveready"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(212),i(203),i(204),i(207),i(1945)],o=i.dj.d(n,(function(e,t,i,n,o,r){return i([o],{_SAVE_TIMEOUT:5e3,constructor:function(e){this._saveReadyPlugins=e,this._saveReadyPromise=null,this._currentTimeout=null},getReadyPromise:function(){return this._saveReadyPromise||(this._saveReadyPromise=new t,new r(this._saveReadyPlugins).whenAllReady(n.hitch(this,"_resolveSaveReady")),this._currentTimeout=setTimeout(n.hitch(this,"_resolveSaveReady"),this._SAVE_TIMEOUT)),this._saveReadyPromise},_resolveSaveReady:function(){this._saveReadyPromise&&(this._saveReadyPromise.resolve(),this._saveReadyPromise=null),this._currentTimeout&&(clearTimeout(this._currentTimeout),this._currentTimeout=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4025)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(270),i(323),i(424),i(390),i(920),i(473)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n],{_compatibleParents:[],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return a},getReceivingInstruction:function(e){return new r},getTopLevelInsertionInstruction:function(e,t,n,r,s){if(e.isAtRightEdge()&&e.isAtLeftEdge())return this._getInstructionForInsertingIntoEmptyLine(t,n);var l=e.isAtEdge()?i:e.getNode().constructor;return!s.isAtRightEdge()||n&&!n.isInstanceOf(a)?!s.isAtLeftEdge()||t&&!t.isInstanceOf(a)?{insertInRoot:{insertionPosition:s}}:{insertInRoot:{relationToPosition:o.RELATION.BEFORE,insertSibling:!0,siblingConstructor:l}}:{insertInRoot:{relationToPosition:o.RELATION.AFTER,insertSibling:!0,siblingConstructor:l}}},_getInstructionForInsertingIntoEmptyLine:function(e,t){return e&&!e.isInstanceOf(a)?{insertInRoot:{relationToPosition:o.RELATION.BEFORE}}:t&&!t.isInstanceOf(a)?{insertInRoot:{relationToPosition:o.RELATION.AFTER}}:{insertInRoot:{relationToPosition:o.RELATION.AFTER,insertSibling:!0,siblingConstructor:i}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4027)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursor","rtc.linenumberservice","rtc.documentfragment.model","rtc.view.hidden.hiddennodeservice","rtc.view.hidden.hiddennodemodel","rtc.nodes.noderangeretriever","rtc.embeddedoutputs.view.alignmentmanager"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(274),i(473)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,t,i,n,o,r,a,s){this._internalDocument=e,this._cursor=t,this._lineNumberService=i,this._documentFragmentModel=n,this._hiddenNodeService=o.createHandle(),this._hiddenNodeModel=r,this._nodeRangeRetriever=a,this._alignmentManager=s,this._handles=[],this._currentSlideNumber=-1},enable:function(){this._addListeners(),this._showOnlyCurrentSlideNodes()},disable:function(){this._removeListeners(),this._showAllNodes()},getCurrentSlideNodes:function(){return this._getLineNodesForCurrentSlide()},getCurrentSlideNumber:function(){return this._currentSlideNumber},getMaximumSlideNumber:function(){return this._documentFragmentModel.getNumberOfFragments()},onCurrentSlideUpdated:function(){},_addListeners:function(){this._handles.push(t.after(this._documentFragmentModel,"onModelUpdated",this._handleDocumentFragmentModelUpdated.bind(this))),this._handles.push(t.after(this._cursor,"setPosition",this._handleCursorPositionUpdated.bind(this))),this._handles.forEach((function(e){this.own(e)}),this)},_removeListeners:function(){this._handles.forEach((function(e){e.remove()})),this._handles=[]},_handleDocumentFragmentModelUpdated:function(){this._showOnlyCurrentSlideNodes()},_handleCursorPositionUpdated:function(){var e=this._cursor.getNode();this._hiddenNodeModel.isHidden(e)&&this._showOnlyCurrentSlideNodes()},_showOnlyCurrentSlideNodes:function(){var e=this._getLineNodesForCurrentSlide();if(0!==e.length){var t=this._alignmentManager.isEnabled();t&&this._alignmentManager.disable(),this._hiddenNodeService.showOnly(e),this._nodeRangeRetriever.updateNodes(e[0],e[e.length-1]),t&&(this._alignmentManager.enable(),this._alignmentManager.layoutFromScratch()),this.onCurrentSlideUpdated()}},_showAllNodes:function(){this._hiddenNodeService.showFullDocument(),this._nodeRangeRetriever.updateNodes(null,null)},_getLineNodesForCurrentSlide:function(){var e=this._cursor.getNode().rootContainer(),t=this._documentFragmentModel.getDocumentFragments();if(0===t.length)return[];var i=this._getCurrentSlideNumber(e,t);return this._currentSlideNumber=i,this._getLineNodesForSlideNumber(i,t)},_getCurrentSlideNumber:function(e,t){for(var i=this._lineNumberService.getLineNumber(e),n=1;t.length>n;){if(this._lineNumberService.getLineNumber(t[n])>i)return n;n++}return n},_getLineNodesForSlideNumber:function(e,t){var i,r=t[e-1];if(null===r.rootContainer())return[];if(e===t.length){var a=this._internalDocument.getMaxLineNumber()-1;i=this._internalDocument.getLineNode(a)}else{i=t[e].previousSibling()}for(;n.isInType(i,o);)i=i.previousSibling();return n.getParagraphNodesInRange(r,i)},destroy:function(){this.inherited(arguments),this._removeListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4029),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.alert.model","rtc.internaldocument"]}},createInstance:function(e,i){return new t(e,i)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,n){this._alertModel=e,this._aspectHandle=i.before(n,"onDocumentReset",t.hitch(this,"_handleDocumentReset"))},_handleDocumentReset:function(){this._alertModel.removeAllAlerts(),this.onAlertsReset()},onAlertsReset:function(){},destroy:function(){this._aspectHandle&&(this._aspectHandle.remove(),this._aspectHandle=null),this._alertModel.removeAllAlerts()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4031),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document"]}},createInstance:function(e){return new t(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(229),i(4032)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){this._document=e,this._alerts=[]},getAlerts:function(){return this._alerts},addAlert:function(e,t,i){var n=this._addAlert(e,t,i);return this.onModelChanged(),n},addAlerts:function(e){var t=e.map((function(e){return this._addAlert(e.type,e.line,e.payload)}),this);return this.onModelChanged(),t},updateAlert:function(e,t){var i=this._getAlertById(e);this._copyAlertProperties(t,i),t.isActive&&this._clearActiveAlert(),this.onModelChanged()},removeAlerts:function(e){var t=Array.isArray(e)?e:[e];this._alerts=this._alerts.filter((function(e){var i=t.some((function(t){return t===e.id}));return i&&this._document.deletePosition(e.position),!i}),this),this.onModelChanged()},removeAllAlerts:function(){this._alerts=this._alerts.filter((function(e){this._document.deletePosition(e.position)}),this),this.onModelChanged()},_addAlert:function(e,t,i){var o=n.generateUuid();i.isActive&&this._clearActiveAlert();var r=this._document.createLinePositionInLine(t-1,!0);return this._alerts.push({id:o,type:e,position:r,payload:i}),o},_getAlertById:function(e){for(var t=0;t<this._alerts.length;t++)if(this._alerts[t].id===e)return this._alerts[t];throw new Error("Alert with ID "+e+" not found.")},_copyAlertProperties:function(e,t){for(var i in e)"object"==typeof e[i]?this._copyAlertProperties(e[i],t[i]):t[i]=e[i]},_clearActiveAlert:function(){this._alerts.forEach((function(e){e.payload.isActive&&(e.payload.isActive=!1)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getAlerts:function(){throw new Error("Unimplemented API: MW.rtc.plugins.language.matlab.alert.getAlerts")},onModelChanged:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4034),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.document","rtc.view","rtc.view.visibility","rtc.alert.model","rtc.alert.widgetfactory","rtc.internaldocument"]}},createInstance:function(e,i,n,o,r,a){return new t(e,i,n,o,r,a)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(227),i(210),i(211),i(217),i(213),i(221),i(206),i(234),i(249),i(260),i(812)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(null,{_HORIZONTAL_OFFSET_PX:43,_ALERT_HEIGHT:15,_DOCUMENT_DIMENSION_THRESHOLD:10,constructor:function(e,n,o,a,s,l){this._document=e,this._view=n,this._visibliltyNotifier=o,this._alertModel=a,this._alertWidgetFactory=s,this._internalDocument=l,this._alertLayerNode=r.create("div",{className:"alertPluginLayer"}),this._alertLayerNode.setAttribute("contenteditable",!1),this._view.addLayer(this._alertLayerNode),this._alertLinesMap={},this._leftPositionCache=NaN,this._rightMarginCache=NaN,this._transientAspectHandles=[],this._permanentAspectHandles=[i.after(this._visibliltyNotifier,"onShow",t.hitch(this,"_enable")),i.after(this._visibliltyNotifier,"onHide",t.hitch(this,"_disable"))],this._enable()},destroy:function(){this._removeTransientAspectHandles(),this._permanentAspectHandles.forEach((function(e){e.remove()})),this._permanentAspectHandles=[],this._clearAlertLines()},_removeTransientAspectHandles:function(){this._transientAspectHandles.forEach((function(e){e.remove()})),this._transientAspectHandles=[]},_enable:function(){0===this._transientAspectHandles.length&&(this._transientAspectHandles=[i.after(this._alertModel,"onModelChanged",t.hitch(this,"_layout")),i.after(this._view,"onViewUpdated",t.hitch(this,"_handleOnViewUpdated"))]),this._layout()},_disable:function(){this._removeTransientAspectHandles(),this._clearAlertLines()},_layout:function(){this._clearAlertLines();var e=this._alertModel.getAlerts();this._updateLeftPositionCache();var t=this._calculateViewPositions(e);e.forEach((function(e,i){var n=e.position,o=n.getLineColumn().line,r=this._alertLinesMap[o];r?this._mergeAlertIntoAlertLine(e,r):(r=this._createAlertLine(n),this._alertLinesMap[o]=r,this._updateAlertLineInDom(r,t[i]),this._addAlertToAlertLine(e,r,"last"))}),this)},_clearAlertLines:function(){this._getAlertLines().forEach((function(e){e.alerts.forEach((function(e){e.destroy()}),this),e.alerts=[],e.positionListeners.forEach((function(e){e.remove()}),this),e.domNode&&r.destroy(e.domNode)}),this),this._alertLinesMap={}},_mergeAlertIntoAlertLine:function(e,t){var i=e.type,n=t.alerts.filter((function(e){return e.getType()===i}),this);if(n.length>0){var o=n[0];o.payload.isActive=o.payload.isActive||e.payload.isActive,e.payload.message&&o.setMessage(o.getMessage()+"<hr>"+e.payload.message),void 0===o.payload.isStale&&void 0===e.payload.isStale||(o.payload.isStale=!(!o.payload.isStale||!e.payload.isStale),o.setStaleness(o.payload.isStale))}else{var r=i===p.WARNING?"first":"last";this._addAlertToAlertLine(e,t,r)}},_createAlertLine:function(e){var n={alerts:[],domNode:r.create("div",{className:"alertPlugin-alertLine"}),position:e,positionListeners:null};return n.positionListeners=[i.after(e,"onChange",t.hitch(this,"_handleAlertLinePositionOnChange",n)),i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleOnDocumentChanged",n),!0)],n},_addAlertToAlertLine:function(e,t,i){var n=this._alertWidgetFactory.createAlert(e.type,e.position,e.payload);r.place(n.domNode,t.domNode,i),t.alerts.push(n),this._updateAlertLineVisibility(t),n.startup()},_handleAlertLinePositionOnChange:function(e){var t=e.position,i=t.getLineColumn().line;this._getAlertLines().some((function(e){var n=e.position,o=n.getLineColumn().line;return i===o&&t!==n}),this)?this._layout():this._updateAlertLinesInDom([e]),this._updateAlertLineVisibility(e)},_handleOnViewUpdated:function(){this._updateRightMarginCache(),this._updateLeftPositionCache(),this._updateAlertLinesInDom(this._getAlertLines())},_updateAlertLinesInDom:function(e){var t=this._calculateViewPositions(e),i=this._hasOverflow();e.forEach((function(e,i){this._updateAlertLineInDom(e,t[i])}),this),i&&!this._hasOverflow()&&this._view.onLayoutChange()},_hasOverflow:function(){var e=this._view.getDomtarget();return e.scrollHeight>e.clientHeight},_updateAlertLineInDom:function(e,t){null!==t?(this._placeAlertIfNeeded(e),e.domNode.style.top=t.top+"px",e.domNode.style.left=t.left+"px"):this._removeAlertLineIfNeeded(e)},_removeAlertLineIfNeeded:function(e){e.domNode.parentElement&&e.domNode.parentElement.removeChild(e.domNode)},_placeAlertIfNeeded:function(e){e.domNode.parentElement||r.place(e.domNode,this._alertLayerNode,"last")},_handleOnDocumentChanged:function(e,t){h.hasEventType(t,u.FORMAT_CHANGE_EVENT)&&this._updateAlertLineVisibility(e)},_updateAlertLineVisibility:function(e){var t=e.position.node,i=!d.isCodeContainer(t);o.toggle(e.domNode,"alertPlugin-onTextLine",i)},_getAlertLines:function(){return Object.keys(this._alertLinesMap).map((function(e){return this._alertLinesMap[e]}),this)},_calculateViewPositions:function(e){return e.map((function(e){var t=e.position.getNode(),i=this._view.getCoordinateForPosition(t.startPosition());if(!this._view.isValidCoordinate(i))return null;var n=this._view.getNodeOffsetHeight(t.children[0])-this._ALERT_HEIGHT,o=Math.floor(n/2);return{top:i.y+o,left:this._leftPositionCache}}),this)},_updateLeftPositionCache:function(){var e=this._view.getDomTargetPosition(),t=Math.max(e.scrollLeft,0)+e.clientWidth;t=Math.min(t,e.scrollWidth);var i=this._view.getDocumentDimension().width;t>i+this._DOCUMENT_DIMENSION_THRESHOLD&&(t=i),this._leftPositionCache=t-this._rightMarginCache-this._HORIZONTAL_OFFSET_PX},_updateRightMarginCache:function(){if(!isFinite(this._rightMarginCache)){var e=this._view.getDomtarget().querySelector(".lineNode");if(e)if(n.isDescendant(e,document.body)){var t=this._view.getDomTargetPosition(),i=s.getComputedStyle(e),o=a.getMarginBox(e,i);this._rightMarginCache=t.scrollWidth-o.w-o.l}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4036),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.view","rtc.cursor"]}},createInstance:function(e,i){return new t(e,i)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(211),i(812),i(4037),i(4039)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{constructor:function(e,t){this._view=e,this._cursor=t},destroy:function(){},createAlert:function(e,t,i){var n;switch(e){case o.ERROR:n=new r({view:this._view,position:t,payload:i});break;case o.WARNING:n=new a({view:this._view,position:t,payload:i});break;default:throw new Error("Unable to construct alert widget. Unknown alert widget type.")}return n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(208),i(206),i(216),i(4038),i(1947),i(812)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([s,r],{templateString:a,baseClass:"alertPlugin-errorElement",constructor:function(e){this._payload=e.payload},startup:function(){this.inherited(arguments),this.setStaleness(this._payload.isStale),this.setMessage(this._payload.message)},destroy:function(){this.inherited(arguments)},getType:function(){return l.ERROR}})}),e,t),e.exports=o},function(e,t){e.exports='<span>\n <svg class="alertPlugin-errorImg" width="14" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">\n <circle id="error_circle" cx="7" cy="8" r="7" fill="rgb(204, 55, 41)"/>\n <rect id="top_bang" fill="white" x="6" y="3" width="2" height="6"/>\n <rect id="bottom_bang" fill="white" x="6" y="11" width="2" height="2"/>\n </svg>\n</span>'},function(e,t,i){var n,o;n=[i(203),i(211),i(216),i(4040),i(1947),i(812)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o,i],{templateString:n,baseClass:"alertPlugin-warningElement",constructor:function(e){this._payload=e.payload},startup:function(){this.inherited(arguments),this.setStaleness(this._payload.isStale),this.setMessage(this._payload.message)},destroy:function(){this.inherited(arguments)},getType:function(){return r.WARNING}})}),e,t),e.exports=o},function(e,t){e.exports='<span>\n<svg class="alertPlugin-warningImg" width="14" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">\n <path id="warning_triangle" fill="rgb(255, 161, 0)" d="M 9.41,2.05 C 9.41,2.05 11.79,6.99 11.79,6.99 11.79,6.99 13.74,11.30 13.74,11.30 14.51,14.01 12.80,14.68 10.29,14.68 10.29,14.68 3.71,14.68 3.71,14.68 1.31,14.68 -0.40,14.17 0.21,11.51 0.40,10.67 1.18,9.06 1.60,8.22 1.60,8.22 3.86,3.49 3.86,3.49 4.50,2.20 4.95,1.06 6.18,0.21 7.88,-0.35 8.64,0.67 9.41,2.05 Z M -3.55,13.30M 18.47,12.60"/>\n <rect id="top_bang" fill="white" x="6" y="3" width="2" height="6"/>\n <rect id="bottom_bang" fill="white" x="6" y="11" width="2" height="2"/>\n</svg>\n</span>'},function(e,t,i){var n,o;n=[i(229),i(207),i(208),i(234),i(249),i(260),i(720),i(496)],o=i.dj.d(n,(e,t,i,n,o,r,a,s)=>class extends t{constructor(e,t,i,n,o,r,s,l,c){super(...arguments),this._document=e,this._internalDocument=t,this._view=i,this._cursorController=n,this._documentEventCache=o,this._currentView=r,this._editorTabService=s,this._autoIndentService=l,this._autoWhitespaceLineNotifier=c,this._onDocumentChangedHandle=null,this.enable(),a.notifyAutoIndentEnablement()}enable(){this._onDocumentChangedHandle||(this._onDocumentChangedHandle=i.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0))}disable(){this._onDocumentChangedHandle&&(this._onDocumentChangedHandle.remove(),this._onDocumentChangedHandle=null)}_handleDocumentChanged(e){this._shouldAttemptToAutoIndent(e)&&this._doAutoIndentForEvents(e)}_shouldAttemptToAutoIndent(e){return!(!e||!e.length)&&(!a.isAutoIndentTemporarilyDisabled()&&(!!this._currentView.isCurrentView()&&(!this._cursorController.hasMultipleCursors()&&!e[0].isUndoRedo)))}_doAutoIndentForEvents(e){const t=e[0];switch(a.disableAutoIndent(),t.type){case o.INSERT_TEXT:this._handleInsertTextEvent(t);break;case o.INSERT_BREAK_EVENT:this._handleLineBreakEvent();break;case o.DELETION_EVENT:this._handleDeleteEvent(t);break;case o.FORMAT_CHANGE_EVENT:this._shouldFormatChangeTriggerIndent(t)&&this._handleFormatChangeEvent(t)}a.restoreAutoIndent()}_handleInsertTextEvent(e){if(r.isMultiLineEvent([e],this._internalDocument));else{const t=e.position.getLine()-1;if(n.isCodeLine(this._internalDocument,t)){const i=e.position.getColumn()-1;this._autoIndentService.performSnapIndentOnLine(t,i,e.text)}}}_handleLineBreakEvent(){a.resetNumberOfWhiteSpaces(),a.resetIndentLevel();const t=this._documentEventCache.finalLineRangeFromEvents(),i=t.startLine,n=t.endLine;if(!this._isLineRangeCodeRange(i,n))return;for(let e=i;e<n;e++){const t=this._document.getLineText(e+1).length;this._autoIndentService.performSnapIndentOnLine(e,t,"\n")}const o=this._getAmountOfLeadingWhitespace(n);o>0&&a.setNumberOfWhiteSpaces(o);let r=0;this._document.undoable(()=>{r=this._autoIndentService.performIndentOnLine(n)},s.AUTO),r>0&&a.setIndentLevel(r);const l=this._cursorController.getCursor().getCursorPosition(),c=l.getLine()-1;c>=i&&c<=n&&this._view.scrollPositionIntoView(l);e.isWhitespace(this._document.getLineText(n+1))&&this._autoWhitespaceLineNotifier.notifyAutoWhitespaceLineInserted(n)}_isLineRangeCodeRange(e,t){const i=this._internalDocument.getLineNode(e),o=this._internalDocument.getLineNode(t);return!(!i||!o)&&n.isCodeRange(i,o)}_getAmountOfLeadingWhitespace(e){const t=this._document.getLineText(e+1);return this._editorTabService.getLengthCompensatingTabs(t.match(/^\s*/)[0])}_handleDeleteEvent(e){const t=e.startLine;if(n.isCodeLine(this._internalDocument,t)){const e=this._cursorController.getCursor().getLineColumn().column-1;this._autoIndentService.performSnapIndentOnLine(t,e,"\b")}}_handleFormatChangeEvent(e){if(this._shouldFormatChangeTriggerIndent(e)){this._document.startEdit();for(let t=e.startLine;t<=e.endLine;t++)this._autoIndentService.performIndentOnLine(t);this._document.endEdit()}}_shouldFormatChangeTriggerIndent(e){return"code"===e.newFormat}destroy(){super.destroy(...arguments),this.disable()}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4043)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.document","rtc.indentutilities","language.interface.tokenmanager"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(229),i(1948),i(324)],o=i.dj.d(n,(e,t,i)=>class extends t{constructor(e,t,n){super(e),this._indentUtilities=t,this._matlabTokenManager=n,this._formatOptions={alignCursors:!0},this._indentableTokens=[i.TOKENS.END,i.TOKENS.ELSE,i.TOKENS.ELSEIF,i.TOKENS.CASE,i.TOKENS.OTHERWISE,i.TOKENS.FUNCTION,i.TOKENS.NESTED,i.TOKENS.CATCH,i.TOKENS.BLKEND],this._indentablePatterns=[/^end/,/^else/,/^elseif/,/^case/,/^otherwise/,/^function/,/^catch/,/^\s*%}/]}performIndentOnLine(e){return this._indentUtilities.format(e,this._formatOptions)}performSnapIndentOnLine(e,t,i){this._shouldTextTriggerFormat(e,t,i)&&this.performIndentOnLine(e)}_shouldTextTriggerFormat(e,t,i){let n=this._checkTextMatchesToken(i,e);return n||1!==i.length||(n=this._checkTextMatchesPreviousChar(i,e,t)),n}_checkTextMatchesToken(t,i){if(e.isWhitespace(t))return!1;const n=this._indentUtilities.findFirstNonWhitespaceTokenInLine(i);return!(!n||-1===this._indentableTokens.indexOf(n.getType()))&&(n.getValue().endsWith(t)||t.endsWith(n.getValue()))}_checkTextMatchesPreviousChar(t,i,n){let o=!1;return e.isWhitespace(t)&&!this._matlabTokenManager.isInBlockComment(i,n)?(t=this._goBackUntilNoWhitespace(t,i,n),o=this._checkTextMatchesToken(t,i)):n>0&&"\b"===t?(t=this._document.getTextCharacters(i,n-1,1),o=this._checkTextMatchesToken(t,i)||this._checkTextBecameNonIndentable(i,n)):o=this._checkTextBecameNonIndentable(i,n),o}_goBackUntilNoWhitespace(t,i,n){for(;t&&e.isWhitespace(t)&&n>1;)n--,t=this._document.getTextCharacters(i,n,1);return t}_checkTextBecameNonIndentable(e,t){if(t<1)return!1;const n=this._matlabTokenManager.getTokenOnLineColumn(e,t-1);if(!n||n.getType()===i.TOKENS.BLKCOM)return!1;const o=n.getValue().substr(0,n.getLength()-1);return this._indentablePatterns.some(e=>null!==o.match(e))}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(583)],o=i.dj.d(n,(e,t)=>class extends e{requires(){return{createInstance:["rtc.settings.service","language.common.autoindent"]}}createInstance(){return new t("matlab.editor.language.matlab.SmartIndentWhileTyping",...arguments)}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(4046),i(205)],o=i.dj.d(n,(function(e,t){return class extends t{requires(){return{createInstance:["rtc.settings.service","rtc.indentutilities"]}}createInstance(){return new e(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(207)],o=i.dj.d(n,(function(e){const t="matlab.editor.language.matlab.FunctionIndentingFormat";return class extends e{constructor(e,t){super(),this._settingsService=e,this._indentUtilities=t,this._initialize()}_initialize(){this.own(this._settingsService.listenToSettingChange(t,this._handleSettingChanged.bind(this))),this._settingsService.getSetting(t).then(this._handleSettingChanged.bind(this),e=>{})}_handleSettingChanged(e){this._indentUtilities.setIndentingStyle(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(4048),i(378)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(e){return o.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:[]}},createInstance:function(){return new n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(667)],o=i.dj.d(n,(function(e,t){return e(null,{_FUNCTION_KEYWORD:"function ",_CLASSDEF_KEYWORD:"classdef ",_COMMENT_SYMBOL:"%",_BLOCK_COMMENT_START_SYMBOL:"%{",_BLOCK_COMMENT_END_SYMBOL:"%}",TYPE_ENUM:{SCRIPT:0,FUNCTION:1,CLASS:2},constructor:function(){},getCodeType:function(e){var t=this.TYPE_ENUM.SCRIPT,i=this._findFirstCodeLine(e);return i&&(t=this._checkLineForCodeType(i)),t},_checkLineForCodeType:function(e){var i=t.leftTrim(e.getText()),n=0===i.indexOf(this._FUNCTION_KEYWORD),o=0===i.indexOf(this._CLASSDEF_KEYWORD);return n?this.TYPE_ENUM.FUNCTION:o?this.TYPE_ENUM.CLASS:this.TYPE_ENUM.SCRIPT},lineNodesContainCode:function(e){return!!this._findFirstCodeLine(e)},_findFirstCodeLine:function(e){for(var t=0;t<e.length;t++){var i=e[t],n=i.getText().trim();if(0!==n.length)if(0!==n.indexOf(this._BLOCK_COMMENT_START_SYMBOL)){if(0!==n.indexOf(this._COMMENT_SYMBOL))return i}else if(-1===(t=this._findEndOfBlockLine(t,e)))return null}return null},_findEndOfBlockLine:function(e,t){for(var i=e+1;i<t.length;i++){var n=t[i].getText().trim();if(0===n.indexOf(this._BLOCK_COMMENT_START_SYMBOL))this._findEndOfBlockLine(i,t);else if(0===n.indexOf(this._BLOCK_COMMENT_END_SYMBOL))return i}return-1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4050),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.editordataservice","rtc.document.info","rtc.internaldocument","rtc.linenumberservice","rtc.editorservice.synchronizationmodel","rtc.position.controller","matlab.languageanalysis.messagenotifier","rtc.service.contextsensitivehelp","rtc.code.codeanalyzer.ignoreReadOnlyState","rtc.code.codeanalyzer.enablestate"]}},createInstance:function(e,i,n,o,r,a,s,l,c,d){return new t(e,i,n,o,r,a,s,l,c,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(266),i(4051),i(1949)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(i,{constructor:function(e,i,n,o,r,a,s,l,c,d){this._documentInfo=i,this._internalDocument=n,this._lineNumberService=o,this._synchronizationModel=r,this._positionController=a,this._messageNotifier=s,this._contextSensitiveHelp=l,this._codeAnalyzerEnableState=d,this._ignoreReadOnlyState=!0===c,this._oldModelDataJsonString=null,this._lastReceivedDocumentState=0,this._hasInvalidRanges=!1,this._lineToMessageMap={},this._messagesArray=[],this._extendedMessageMap={},this.own(t.after(this._internalDocument,"onDocumentReset",this._handleDocumentReset.bind(this),!0)),this.own(t.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0)),this.own(t.after(this._codeAnalyzerEnableState,"onDisable",this._handleDisable.bind(this))),this.own(t.after(this._codeAnalyzerEnableState,"onEnable",this._handleEnable.bind(this))),this.own(e.listenTo("matlab.code.codeanalyzer",(function(){}))),this.own(t.after(this._messageNotifier,"onDataUpdated",this._handleResponse.bind(this)))},_handleDisable:function(){this._clearMessages(),this._oldModelDataJsonString=null,this.onModelChange()},_handleEnable:function(){this._messageNotifier.hasData()&&this._handleResponse()},_handleResponse:function(){this._codeAnalyzerEnableState.isEnabled()&&(this._lastReceivedDocumentState=this._messageNotifier.getDocumentState(),this._pendingServerUpdate()||(this._isModelDataChanged()||this._isModelInvalid()?(this._updateModelData(),this._updateExtendedMessages(),this.onModelChange()):this.onModelUpToDate()))},_isModelDataChanged:function(){var e=this._stringifyMessages();return this._oldModelDataJsonString!==e?(this._oldModelDataJsonString=e,!0):this._messageNotifier.getFileMessages().length>0},_stringifyMessages:function(){return JSON.stringify({codeMessages:this._messageNotifier.getCodeMessages(),fileMessages:this._messageNotifier.getFileMessages()})},_isModelInvalid:function(){return null===this._hasInvalidRanges&&(this._hasInvalidRanges=this._messagesArray.some(e=>!e.isRangeValid()||!this._lineToMessageMap.hasOwnProperty(this._getNodeForLineMap(e).uid))),this._hasInvalidRanges},_updateModelData:function(){this._clearMessages();var e=this._getServerMessages(),t=this._processServerData(e);this._lineToMessageMap=t.messagesMap,this._messagesArray=t.messagesArray,this._hasError=this._messageNotifier.hasErrorMessage(),this._hasInvalidRanges=!1},_processServerData:function(e){var t={},i=[];return e.forEach((function(e){var n,a=this._getTokenFromServerMessage(e);this._ignoreReadOnlyState&&(a.ignoreReadOnlyState=!0),n=e.isFileMessage?new o(a):new r(a),i.push(n),this._appendMessageToMap(t,n)}),this),{messagesMap:t,messagesArray:i}},_getServerMessages:function(){var e=this._messageNotifier.getCodeMessages();let t=this._getFirstNonEmptyCodeLine();return this._messageNotifier.getFileMessages().forEach((function(i){null!==t&&(i.startLine=t,i.startColumn=1,i.endLine=t,i.endColumn=1,i.fixes=[],i.isFileMessage=!0,e.unshift(i))}),this),e},_getFirstNonEmptyCodeLine:function(){let e,t,i=1;for(;i<=this._lineNumberService.getNumberOfCodeLines();){if(e=this._lineNumberService.getLineNumberFromCodeLineNumber(i),t=this._internalDocument.getLineNode(e),""!==t.getText().trim())return i;i++}return null},_getTokenFromServerMessage:function(e){var t=this._getRangeFromServerRange(e),i=this._createFixObjectFromData(e),n=this._getMetadataForServerMessage(e);return{message:e.message,tag:e.tag,severity:e.severity,range:t,fix:i,metadata:n}},_getRangeFromServerRange:function(e){var t=this._lineNumberService.getLineNumberFromCodeLineNumber(e.startLine),i=this._lineNumberService.getLineNumberFromCodeLineNumber(e.endLine);let o,r,a;t===i&&e.endColumn<e.startColumn?(o=e.startColumn,r=e.endColumn+1,a=!1):(o=e.startColumn-1,r=e.endColumn,a=!0),r>this._documentInfo.getLineLength(i+1)&&(this._documentInfo.getNumberOfLines()===i+1?r--:(i+=1,r=0));var s=this._positionController.createPositionAtLineColumn(t,o,a,!0),l=this._positionController.createPositionAtLineColumn(i,r,!1,!0);return new n(s,l)},_createFixObjectFromData:function(e){var t=e.fixes[0];if(!t)return null;var i=t.fixChanges.map((function(e){var t=this._getRangeFromServerRange(e);return{replacement:e.replacement,range:t}}),this);return{fixMessage:t.fixMessage,fixChanges:i,allowFixAll:t.allowFixAll,fixTag:t.fixTag}},_getMetadataForServerMessage:function(e){return{isError:this._messageNotifier.isError(e.severity),isWarning:this._messageNotifier.isWarning(e.severity),isSuppressible:this._messageNotifier.isSuppressible(e.tag)}},_appendMessageToMap:function(e,t){var i=this._getNodeForLineMap(t);e[i.uid]||(e[i.uid]=[]),e[i.uid].push(t)},_getNodeForLineMap:function(e){return e.getStartPosition().getNode().rootContainer()},isModelUpToDate:function(){return!(this._pendingServerUpdate()||this._isModelInvalid())||!this._codeAnalyzerEnableState.isEnabled()},_pendingServerUpdate:function(){return this._synchronizationModel.isStateOutdated(this._lastReceivedDocumentState)},_updateExtendedMessages:function(){this._updateModelWithExtendedMessages(),this._getExtendedMessages().then(function(){this._updateModelWithExtendedMessages()}.bind(this))},_getExtendedMessages:function(){const e=this._messagesArray.map(e=>e.getMessageTag()),t=e.map(e=>"mlint_"+e);return this._contextSensitiveHelp.getContextSensitiveHelp(t).then(t=>{e.reduce((e,i,n)=>(e[i]=t[n],e),this._extendedMessageMap)})},_updateModelWithExtendedMessages:function(){this._messagesArray.forEach(e=>{e._extendedHelpUrl=this._extendedMessageMap[e.getMessageTag()]},this)},onModelChange:function(){},onModelUpToDate:function(){},getMessagesForLineNode:function(e){return this._lineToMessageMap[e.uid]||[]},getAllMessages:function(){return this._messagesArray},hasError:function(){return this._hasError},_handleDocumentReset:function(){this._hasInvalidRanges=!0},_handleDocumentChanged:function(){!1===this._hasInvalidRanges&&(this._hasInvalidRanges=null)},_clearMessages:function(){this._messagesArray.forEach((function(e){e.destroy()}),this),this._messagesArray=[],this._lineToMessageMap={}},destroy:function(){this.inherited(arguments),this._clearMessages()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1949)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this.inherited(arguments)},getMessage:function(){return this.inherited(arguments)},getExtendedHelpMessage:function(){return this.inherited(arguments)},getMessageTag:function(){return this.inherited(arguments)},getSeverity:function(){return this.inherited(arguments)},getRange:function(){return this.inherited(arguments)},getStartPosition:function(){return this.inherited(arguments)},getEndPosition:function(){return this.inherited(arguments)},getStartLine:function(){return this.inherited(arguments)},getStartColumn:function(){return this.inherited(arguments)},isRangeValid:function(){return!0},isFixable:function(){return!1},getAutoFixMessage:function(){return null},getAutoFixChanges:function(){return null},isReadOnly:function(){return!1},isError:function(){return this.inherited(arguments)},isWarning:function(){return this.inherited(arguments)},isSuppressible:function(){return this.inherited(arguments)},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4053),i(232),i(4055)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t){this.addSecurityParams=t},getInitializationPromise:function(){return(new t).initHelpStaticContentService()},getDocUrl:function(e){const t=this.inherited(arguments);return this.addSecurityParams?this.addUrlParameters(t):t},getDocRootUrl:function(e){var t=i.getWorkerRoutingHost();return t.endsWith("/")||(t+="/"),t+=e?"static/en/help/":"static/help/"},addUrlParameters:function(e){if(!e||""===e)return e;var t=i.getComputeSessionId(),n=i.getWorkerRoutingKey();return n&&t?((e=new URL(e)).search+=e.search.length>0?"&":"?",e.search+="routingkey="+n,e.search+="&computeToken="+t,e.href):e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(868),i(229),i(4054)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{MESSAGE_SERVICE_ENDPOINT:"messageservice/json/secure",constructor:function(){""!==this._UUID&&void 0!==this._UUID&&null!==this._UUID||(this._UUID=i.generateUuid().toLowerCase())},_getUUID:function(){return this._UUID},_getPayload:function(){return'{"DocrootMessage":[{"docroot":""}]}'},initHelpStaticContentService:function(){var e=n.convertWorkerHostRequest(this.MESSAGE_SERVICE_ENDPOINT),i='{"uuid":"'+this._getUUID()+'","messages":'+this._getPayload()+"}";return t.post(e,{data:i,handleAs:"json",headers:{"Content-Type":"application/json"}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(232)],o=i.dj.d(n,(function(e){return{convertWorkerHostRequest:function(e){var t=this.getWorkerUrl(e);return this.appendUrlParameters(t)},getWorkerUrl:function(e){var t=this.getWorkerHost();return t.endsWith("/")||e.startsWith("/")||(t+="/"),t+e},getWorkerHost:function(){var t=e.getWorkerRoutingHost();return t.endsWith("/")||(t+="/"),t},appendUrlParameters:function(t){var i=e.getComputeSessionId(),n=e.getWorkerRoutingKey();return n&&i&&((t=new URL(t)).search+=t.search.length>0?"&":"?",t.search+="routingkey="+n,t.search+="&computeToken="+i,t=t.href),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(868)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){if(this.isNonEmptyString(e)){var t=e.split("/");this.shortName=t[0],this.group=t.length>1?t[1]:"",this.topicMapPromise=this.getTopicMapPromise()}else this.topicMapPromise=Promise.resolve([])},mapTopic:function(e){var t=this;return t.topicMapPromise.then((function(i){return t.findFullUrlForTopic(i,e)}))},getTopicMapPromise:function(){const e=this;return e.getInitializationPromise().then((function(){return e.getCshDataPromise()}))},getInitializationPromise:function(){return Promise.resolve()},getCshDataPromise:function(){var e=this;return e.getJsonData(!1).then((function(t){return t&&t.locale&&"en"!==t.locale?e.getJsonData(!0).then((function(i){return e.buildHelpTopicMap(t,i)})):e.buildHelpTopicMap(t)}))},buildHelpTopicMap:function(e,t){var i=[];return e&&this.processHelpTopicData(i,e),t&&this.processHelpTopicData(i,t),i},processHelpTopicData:function(e,t){!this.helpLocation&&t.helplocation&&(this.helpLocation=t.helplocation),t.helptargets&&e.push(t.helptargets)},getJsonData:function(e){var i=this.getHelpTargetsUrl(e);return t.get(i,{handleAs:"json"}).then((function(e){return e}),(function(){return{}}))},getHelpTargetsUrl:function(e){var t=this.getDocRootUrl(e);return t+="docCatalog/cshapi_helptarget/"+this.shortName+".json",t=this.addUrlParameters(t)},getDocRootUrl:function(e){return e?"/static/en/help/":"/static/help/"},addUrlParameters:function(e){return e},findFullUrlForTopic:function(e,t){var i;if(Array.isArray(t)){const o=[];for(var n of t)(i=this.findRelativeTopic(e,n))&&i.length>0?o.push(this.getDocUrl(i)):o.push("");return o}return(i=this.findRelativeTopic(e,t))&&i.length>0&&(i=this.getDocUrl(i)),i},findRelativeTopic:function(e,t){if(this.isNonEmptyString(t))for(let n of e){var i=this.findTopicInHelpTargets(n,t);if(i&&i.length>0)return i}return""},findTopicInHelpTargets:function(e,t){var i=e[t];if(!i)return"";if(!Array.isArray(i))return i.path;if(!(i.length>1&&this.group))return i[0].path;for(var n of i)if(this.group===n.group)return n.path;return""},getDocUrl:function(e){return this.getDocRootUrl()+this.helpLocation+"/"+e},isNonEmptyString:function(e){return e&&("string"==typeof e||e instanceof String)&&e.length>0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4057)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._isEnabled=!0},isEnabled:function(){return this._isEnabled},setEnabled:function(e){e!==this._isEnabled&&(this._isEnabled=e,e?this.onEnable():this.onDisable())},onEnable:function(){},onDisable:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1951)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service","rtc.id","rtc.code.codeanalyzer.enablestate","rtc.view.styles.globalstylechanger"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4060),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.code.codeanalyzer","rtc.code.codeanalyzerautofix"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(1954),i(1956)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,t){this._codeAnalyzerPlugin=e,this._codeAnalyzerAutoFix=t},getTooltipContentAtPosition:function(e){if(e){var t=this._codeAnalyzerPlugin.getMessageAtPosition(e,!0);if(t)return this._getContentForMessage(t)}return null},getTooltipContentAtCursor:function(){var e=this._codeAnalyzerPlugin.getMessageAtCursor(!0);return e?this._getContentForMessage(e):null},_getContentForMessage:function(e){if(e.isFixable())var t=e=>{this._codeAnalyzerAutoFix.applyFix(e)};var i={message:e,callback:t,className:"codeAnalyzerTooltip",iconCssClasses:e.getIconCssClasses()};let r=new n(i),a={tooltipContent:r,lineNumber:e.getStartLine()},s=o.getDomNode([a],!1,null);return r.setNewDomNode(s),r}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="tooltipContentNode">\n</div>'},function(e,t,i){e.exports={errorFound:"エラーが見つかりました。次のメッセージへ移動するにはクリックしてください。",errorsFound:"エラーが見つかりました。次のメッセージへ移動するにはクリックしてください。",line:"行",messagesDisabled:"継続的なコード チェックが無効です。有効にするには、MATLAB コード アナライザーの基本設定を開きます。",noMessages:"警告はありません。",warningFound:"警告が見つかりました。次のメッセージへ移動するにはクリックしてください。",warningsFound:"警告が見つかりました。次のメッセージへ移動するにはクリックしてください。"}},function(e,t,i){e.exports={errorFound:"오류가 발견되었습니다. 다음 메시지로 이동하려면 클릭하십시오.",errorsFound:"오류가 발견되었습니다. 다음 메시지로 이동하려면 클릭하십시오.",line:"라인",messagesDisabled:"지속적인 코드 검사가 비활성화되었습니다. 활성화하려면 MATLAB 코드 분석기 기본 설정을 여십시오.",noMessages:"발견된 경고가 없습니다.",warningFound:"경고가 발견되었습니다. 다음 메시지로 이동하려면 클릭하십시오.",warningsFound:"경고가 발견되었습니다. 다음 메시지로 이동하려면 클릭하십시오."}},function(e,t,i){e.exports={errorFound:"发现错误。点击可转到下一条消息。",errorsFound:"发现错误。点击可转到下一条消息。",line:"线形",messagesDisabled:"持续代码检查被禁用。要启用,请打开 MATLAB 代码分析器预设项。",noMessages:"未发现警告。",warningFound:"发现警告。点击可转到下一条消息。",warningsFound:"发现警告。点击可转到下一条消息。"}},function(e,t,i){e.exports={root:{errorFound:"Error found. Click to go to the next message.",errorsFound:"Errors found. Click to go to the next message.",line:"Line",messagesDisabled:"Continuous code checking disabled. To enable, open the MATLAB Code Analyzer preferences.",noMessages:"No warnings found.",warningFound:"Warning found. Click to go to the next message.",warningsFound:"Warnings found. Click to go to the next message."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(4067),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.code.codeanalyzer.tooltipservice"]}},createInstance:function(e){return new t(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(1097)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._codeAnalyzerTooltipService=e},priority:function(){return 5},getTooltipContent:function(e,t,i){var n;if(this._isValidNode(e)){var o=this._codeAnalyzerTooltipService.getTooltipContentAtPosition(t);o&&(o.hideDivider(),n=o.tooltipContentNode)}i(n,!0)},_isValidNode:function(e){return t.isCodeContainer(e.parent)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4069),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.view","rtc.internaldocument","rtc.tooltipservice","rtc.code.codeanalyzer.tooltipservice","rtc.focusservice","rtc.cursorcontroller","rtc.domnode.mousedown"]}},createInstance:function(e,i,n,o,r,a,s){return new t(e,i,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(253),i(208),i(207),i(1408),i(1957)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([r,o],{_OPEN_TOOLTIP_ACTION:"rtc_code_analyzer_tooltip",_ESCAPE_ACTION:"rtc_code_analyzer_escape",constructor:function(e,t,i,n,o,r,a){this._view=e,this._internalDocument=t,this._tooltipService=i,this._codeAnalyzerTooltipService=n,this._focusService=o,this._cursorController=r,this._mouseDownHandler=a,this._initializeTooltip(),this._setupCloseEvents()},_initializeTooltip:function(){this._tooltip=new a(this._view,this._internalDocument,{timeout:0}),this.own(this._tooltip),this.own(n.after(this._tooltip,"onHide",this._cleanupTooltip.bind(this))),this._tooltipRequestHandle=null,this._detailsButtonCallback=null},_setupCloseEvents:function(){this.own(n.after(this._mouseDownHandler,"onMouseDown",this._closeTooltip.bind(this)));var e=this._cursorController.getCursors()[0];this.own(n.after(e,"movePosition",this._closeTooltip.bind(this))),this.own(n.after(this._focusService,"onBlur",this._handleBlurEvent.bind(this)))},getActions:function(){return[{id:this._OPEN_TOOLTIP_ACTION,enabled:!0,text:i.openTooltipLabel,key:"ctrl_m",platformKey:{mac:"meta_shift_m"},callback:this._openTooltip.bind(this)},{id:this._ESCAPE_ACTION,enabled:!0,key:"escape",callback:this._closeTooltip.bind(this)}]},getContextMenuActions:function(){return[{id:this._OPEN_TOOLTIP_ACTION,priority:3}]},_openTooltip:function(){if(this._isTooltipOpen())return this._detailsButtonCallback&&this._detailsButtonCallback(),!0;var e=this._codeAnalyzerTooltipService.getTooltipContentAtCursor();if(!e)return!1;e.hideDivider(),this._detailsButtonCallback=t.hitch(e,"toggleExtendedMessage");var i=e.tooltipContentNode,n=this._cursorController.getCursorPositions()[0],o=this._view.getCoordinateForNode(n.getNode()),r=this._view.getCoordinateForPosition(n),a={domNode:this._view.getNodeBox(n.getNode()),xOffset:r.x-o.x};return this._tooltipRequestHandle=this._tooltipService.requestTooltip(t.hitch(this._tooltip,"showTooltip",i,a),t.hitch(this._tooltip,"hideTooltip"),this._tooltipService.PRIORITY.ON_DEMAND),!0},_handleBlurEvent:function(){this._tooltip.isMouseInTooltip()||this._closeTooltip()},_closeTooltip:function(){return!!this._isTooltipOpen()&&(this._tooltip.hideTooltip(),!0)},_cleanupTooltip:function(){this._isTooltipOpen()&&(this._tooltipRequestHandle.remove(),this._tooltipRequestHandle=null,this._detailsButtonCallback=null)},_isTooltipOpen:function(){return!!this._tooltipRequestHandle}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(206)],o=i.dj.d(n,(function(e,t,i,n){return t(e,{_TIMEOUT:780,_AUTOHIDE:0,constructor:function(e,t){t&&t.timeout&&(this._TIMEOUT=t.timeout),t&&t.autohide&&(this._AUTOHIDE=t.autohide),this._tooltipTimer=null;var o=e.getDomtarget();this.own(n(o,"mousemove",i.hitch(this,"_onMousemove")))},onTooltip:function(e,t){},onHideTooltip:function(){},_onTooltipTimeout:function(e){var t=e.target;if(this.onTooltip(t,e),this._AUTOHIDE){var n=i.hitch(this,this.onHideTooltip);this._tooltipTimer=setTimeout((function(){n()}),this._AUTOHIDE)}},_onMousemove:function(e){if(e&&"mousemove"===e.type){this.clear(),this._domNode=e.target;var t=i.hitch(this,this._onTooltipTimeout);this._tooltipTimer=setTimeout((function(){t(e)}),this._TIMEOUT)}},clear:function(){this._tooltipTimer&&(clearTimeout(this._tooltipTimer),this._tooltipTimer=null)},destroy:function(){this.inherited(arguments),this.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(213),i(206),i(277),i(230),i(30),i(377),i(437)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(a,{_ORIENT_BELOW_FIRST:["below-centered","above-centered"],_ORIENT_ABOVE_FIRST:["above-centered","below-centered"],constructor:function(e){this._view=e,this._offsetNode=null,this._tooltip=new s({class:[c.TOOLTIP_CLASS,c.TOOLTIP_DIALOG_CLASS]}),this.own(this._tooltip),r.moveOffScreen(this._tooltip),this._isShowing=!1},show:function(e,t){this._tooltip.set("content",e);var i=t.domNode;t.hasOwnProperty("xOffset")&&!isNaN(t.xOffset)&&(this._createOffsetDiv(t.domNode,t.xOffset),i=this._offsetNode);var n=t.orient||this._ORIENT_BELOW_FIRST;this._popupInfo={popup:this._tooltip,around:i,orient:n},r.open(this._popupInfo),this._isShowing=!0,this._registerResizeHandler(e),this._deriveProperOrientation(e),this._handleOverflowRendering(),c.addClassNameToParentElement(this._tooltip.domNode),l.refuseFocus(this._tooltip.domNode)},hide:function(){this._destroyOffsetDiv(),r.close(this._tooltip),this._popupInfo=null,this._isShowing=!1},isShowing:function(){return this._isShowing},_registerResizeHandler:function(e){this._isDomElement(e)&&e.addEventListener("onResized",t.hitch(this,"_reposition"))},_reposition:function(){this._popupInfo&&(r.open(this._popupInfo),this._handleOverflowRendering())},_deriveProperOrientation:function(e){if(this._isDomElement(e)){o.emit(e,"onAdjustingOrientation",{bubbles:!1,cancelable:!0});var t=this._popupInfo.around.getBoundingClientRect();this._tooltip.domNode.parentNode.getBoundingClientRect().bottom-t.top<=1&&(this._popupInfo.orient=this._ORIENT_ABOVE_FIRST),o.emit(e,"onReadyToDisplay",{bubbles:!1,cancelable:!0})}},_handleOverflowRendering:function(){var e=this._tooltip.domNode.getBoundingClientRect().height,t=this._tooltip._popupWrapper.getBoundingClientRect().height;e>t+.1&&this._correctOverflowRendering(e,t)},getDomNode:function(){return this._tooltip.domNode},_correctOverflowRendering:function(e,t){this._tooltip._popupWrapper.style.overflowY="visible","dijitTooltipAbove"===this._tooltip._currentOrientClass&&(this._tooltip._popupWrapper.style.height=e+"px",this._tooltip._popupWrapper.style.top=t-e+"px")},_isDomElement:function(e){return e&&e.nodeType===Node.ELEMENT_NODE},_createOffsetDiv:function(e,t){this._offsetNode&&this._destroyOffsetDiv();var n=this._view.getCoordinateForDomNode(e),o=n.x+t,r=n.y,a=n.height;this._offsetNode=i.create("div",{style:{position:"absolute",left:o+"px",top:r+"px",width:"0px",height:a+"px"}},this._view.getDomtarget())},_destroyOffsetDiv:function(){this._offsetNode&&(i.destroy(this._offsetNode),this._offsetNode=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4073),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.code.codeanalyzer","rtc.code.codeanalyzerpreferences","rtc.internaldocument","rtc.view.decoration","rtc.id"]}},createInstance:function(e,i,n,o,r){return new t(e,i,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(921),i(1952),i(571),i(207),i(208),i(234),i(1409),i(362)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(o,{constructor:function(e,t,i,n,o){this._codeAnalyzerPlugin=e,this._codeAnalyzerPreferences=t,this._internalDocument=i,this._decorator=n.createDecorator(),this._decorator.registerUpdateCallback(this._updateDecorationOnLine.bind(this)),this._squiggleId=o,this.own(r.after(this._codeAnalyzerPlugin,"onUpdateMessages",this._updateMarkers.bind(this))),this.own(r.after(this._codeAnalyzerPreferences,"onColorChange",this._updateMarkers.bind(this))),this.own(r.after(this._codeAnalyzerPreferences,"onUnderlineModeChange",this._updateMarkers.bind(this)))},_updateDecorationOnLine:function(e,t){l.updateClassesByLineDecorationInfo(e,t,null,this._decorator,this._internalDocument)},_updateMarkers:function(){const e=this._getLineToDecorationInfoMap();this._decorator.updateLineRange(0,this._internalDocument.getMaxLineNumber()-1,e),this._decorator.applyChanges()},_getLineToDecorationInfoMap:function(){const e={},t={};for(let i=0,n=this._internalDocument.getMaxLineNumber();i<n;i++){const n=this._codeAnalyzerPlugin.getMessagesForLine(i,!0),o=[];if(n&&n.length>0){for(let e=0,i=n.length;e<i;e++){const i=n[e];o.push(i.getStartColumn(),i.getEndColumn(),this._getClassListFromMessage(i,t))}e[i]=o}}return e},_getClassListFromMessage:function(e,t){var i,n=this._codeAnalyzerPreferences.getUnderlineMode(),o=this._codeAnalyzerPreferences.isAutofixHighlightEnabled(),r=s.getDecorationForMessage(e,n,o),a=r.join(","),l=t[a];return l?i=l:(i=r.map(e=>e+this._squiggleId),t[a]=i),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(378),i(4075),i(205)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{isApplicable:function(e){return i.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.internaldocument","rtc.cursorcontroller","rtc.code.codeanalyzermodel","rtc.code.codeanalyzerpreferences","rtc.viewready"]}},createInstance:function(e,t,i,o,r){return new n(e,t,i,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(249),i(260),i(313),i(1409)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(n,{constructor:function(e,t,n,o,r){this._internalDocument=e,this._cursorController=t,this._codeAnalyzerModel=n,this._codeAnalyzerPreferences=o,this._WAIT_TIME=500,this._hasModelChanged=!1,this.own(i.after(this._internalDocument,"onDocumentChanged",this._handleDocumentEdit.bind(this),!0)),this.own(i.after(r,"onViewReset",this._handleViewReset.bind(this),!0)),this.own(i.after(this._codeAnalyzerModel,"onModelChange",this._handleModelChange.bind(this))),this.own(i.after(this._codeAnalyzerModel,"onModelUpToDate",this._handleModelUpdated.bind(this)))},_handleDocumentEdit:function(e){r.hasOnlyEventsOfType(e,o.READONLY_STATE_CHANGE_EVENT)?this._handleModelChange():(this._timer&&clearTimeout(this._timer),this._codeAnalyzerModel.isModelUpToDate()||this.onPendingUpdate(),this._timer=this._getDocumentEditCallback())},_getDocumentEditCallback:function(){return setTimeout(this._handleUpdatedMessages.bind(this),this._WAIT_TIME)},_handleViewReset:function(){this._handleModelChange()},_handleModelChange:function(){this._hasModelChanged=!0,this._handleModelUpdated()},_handleModelUpdated:function(){this._timer||this._handleUpdatedMessages()},_handleUpdatedMessages:function(){this._timer=null,this._codeAnalyzerModel.isModelUpToDate()&&(this._hasModelChanged?this.onUpdateMessages():this.onModelUpdatedWithNoChange(),this._hasModelChanged=!1,this.onUpdatesComplete())},onPendingUpdate:function(){},onUpdateMessages:function(){},onModelUpdatedWithNoChange:function(){},onUpdatesComplete:function(){},hasError:function(){return this._codeAnalyzerModel.hasError()},getMessagesForLine:function(e,t){var i=this._internalDocument.getLineNode(e);return this._getMessagesForLineNodeFromModel(i,t)},getAllMessages:function(e){return this._getAllMessagesFromModel(e)},getMessageAtCursor:function(e){if(this._cursorController.hasMultipleCursors()||this._cursorController.hasSelection())return null;var t=this._cursorController.getCursorPositions(!0)[0];return this.getMessageAtPosition(t,e)},getMessageAtPosition:function(e,t){var i=e.getNode().rootContainer(),n=this._getMessagesForLineNodeFromModel(i,t),o=[];return n.forEach((function(t){a.isPositionInRange(e,t.getRange())&&t.isRangeValid()&&o.push(t)}),this),o.length?s.getHighestSeverity(o):null},_getAllMessagesFromModel:function(e){var t=this._codeAnalyzerModel.getAllMessages();return this._filterHiddenMessages(t,e)},_getMessagesForLineNodeFromModel:function(e,t){var i=this._codeAnalyzerModel.getMessagesForLineNode(e);return this._filterHiddenMessages(i,t)},_filterHiddenMessages:function(e,t){return e.filter((function(e){return this._isMessageVisible(e,t)}),this)},_isMessageVisible:function(e,t){if(e.isReadOnly()&&!e.isError())return!1;if(!t)return!0;var i=this._codeAnalyzerPreferences.getUnderlineMode(),n=this._codeAnalyzerPreferences.isAutofixHighlightEnabled();return s.getDecorationForMessage(e,i,n).length>0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(378),i(4077),i(205)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{isApplicable:function(e){return i.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.document","rtc.code.codeanalyzer","rtc.actionservice","rtc.focusservice"]}},createInstance:function(e,t,i,o){return new n(e,t,i,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(253),i(236),i(208),i(207),i(313),i(1408)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([s,r],{_AUTO_FIX_ACTION:"rtc_autofix",_FIX_ALL_ACTION:"rtc_fixall",constructor:function(e,t,i,n){this._document=e,this._codeAnalyzerPlugin=t,this._actionService=i,this._focusService=n,this._actionService.addAction({id:this._AUTO_FIX_ACTION,enabled:!0,text:"",key:"alt_enter",platformKey:{mac:"alt_enter"},callback:this._findAndExecuteAutoFix.bind(this)})},getActions:function(){return[{id:this._FIX_ALL_ACTION,enabled:!0,text:"",callback:this._findAndExecuteFixAll.bind(this)}]},getContextMenuActions:function(){return[{id:this._AUTO_FIX_ACTION,priority:1},{id:this._FIX_ALL_ACTION,priority:2}]},getContextMenuActionsToHide:function(e){return e.isFixable()?this._shouldEnableFixAll(e)?[]:[{id:this._FIX_ALL_ACTION}]:[{id:this._AUTO_FIX_ACTION},{id:this._FIX_ALL_ACTION}]},getUpdatedActions:function(e){let t=this._getAutoFixLabel(e),i=this._getFixAllLabel(e);return[{id:this._AUTO_FIX_ACTION,actionUpdate:{text:t}},{id:this._FIX_ALL_ACTION,actionUpdate:{text:i}}]},_shouldEnableFixAll:function(e){return e.isFixable()&&e.allowFixAll()&&this._getAllFixesOfType(e.getMessageTag(),e.getFixTag()).length>1},_findAndExecuteAutoFix:function(){const e=this._codeAnalyzerPlugin.getMessageAtCursor(!0);return!(!e||!e.isFixable())&&(this.applyFix(e.getAutoFixChanges()),!0)},_findAndExecuteFixAll:function(){const e=this._codeAnalyzerPlugin.getMessageAtCursor(!0);return!!(e&&e.isFixable()&&e.allowFixAll())&&(this.fixAll(e.getMessageTag(),e.getFixTag()),!0)},fixAll:function(e,t){const i=this._getAllFixesOfType(e,t).map(e=>e.getAutoFixChanges());this.applyFixes(i)},_getAllFixesOfType:function(e,t){return this._codeAnalyzerPlugin._getAllMessagesFromModel(!1).filter(i=>i.getMessageTag()===e&&i.getFixTag()===t&&i.allowFixAll())},_getAutoFixLabel:function(e){return e&&e.isFixable()?e.getAutoFixMessage().bold():""},_getFixAllLabel:function(e){if(e&&e.isFixable()&&e.allowFixAll()){const t=this._getAllFixesOfType(e.getMessageTag(),e.getFixTag()).length.toString();return n.substitute(i.fixAllLabel,[t])}return""},applyFix:function(e){this._wrapDocumentChange(()=>{this._applyFix(e)})},applyFixes:function(e){this._wrapDocumentChange(()=>{e.forEach(e=>{this._applyFix(e)})})},_wrapDocumentChange:function(e){const t=this._document.startBlockEdit();t.preventMerge(),e(),this._document.endBlockEdit(t),this._focusService.setFocus()},_applyFix:function(e){this._getSortedChangeArray(e).forEach(e=>{this._applyChange(e)})},_getSortedChangeArray:function(e){return e.sort((e,t)=>a.comparePositions(t.range.getStartPosition(),e.range.getStartPosition())||a.comparePositions(t.range.getEndPosition(),e.range.getEndPosition())).map(e=>({replacement:e.replacement,startLine:e.range.getStartPosition().getLine(),startColumn:e.range.getStartPosition().getColumn(),endLine:e.range.getEndPosition().getLine(),endColumn:e.range.getEndPosition().getColumn()}))},_applyChange:function(e){const t=e.startLine,i=e.startColumn,n=e.endLine,o=e.endColumn,r=e.replacement;this._isTextInsertion(t,i,n,o)?this._document.insertText(r,t,i):this._document.replaceText(r,t,i,n,o)},_isTextInsertion:function(e,t,i,n){return t>=n&&e===i||e>i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(378),i(4079),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{isApplicable:function(e){return t.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.document","rtc.code.codeanalyzer","language.interface.tokenmanager","rtc.code.codeanalyzer.messagedisabler","matlab.lexer.statemanager"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(253),i(207),i(451),i(1409),i(1408)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r,i],{_MLINT_OK:"%#ok",_SUPPRESS_ALL_TAG:"*",_OPEN_TAG:"<",_CLOSE_TAG:"> ",_COMMA:",",_PRAGMA_REGEX:/^%#ok<\*?[*,a-zA-Z0-9!@#$%^&?]*>/,_SUPPRESS_ON_LINE:"rtc_suppress_on_line",_SUPPRESS_IN_FILE:"rtc_suppress_in_file",_SUPPRESS_IN_ALL_FILES:"rtc_suppress_in_all_files",constructor:function(e,t,i,n,o){this._document=e,this._codeAnalyzerPlugin=t,this._matlabTokenManager=i,this._codeAnalyzerMessageDisabler=n||null,this._matlabStateManager=o},getActions:function(){var e=[{id:this._SUPPRESS_ON_LINE,text:t.suppressOnLine,enabled:!0,callback:this._suppressOnLine.bind(this)},{id:this._SUPPRESS_IN_FILE,text:t.suppressInFile,enabled:!0,callback:this._suppressInFile.bind(this)}];return this._codeAnalyzerMessageDisabler&&e.push({id:this._SUPPRESS_IN_ALL_FILES,text:t.suppressInAllFiles,enabled:!0,callback:this._suppressInAllFiles.bind(this)}),e},getContextMenuActions:function(){var e={type:n.POPUP,label:t.suppressMessage,children:[{type:n.DEFAULT,actionId:this._SUPPRESS_ON_LINE},{type:n.DEFAULT,actionId:this._SUPPRESS_IN_FILE}]};return this._codeAnalyzerMessageDisabler&&e.children.push({type:n.DEFAULT,actionId:this._SUPPRESS_IN_ALL_FILES}),[{id:e,priority:2}]},getContextMenuActionsToHide:function(e){return e.isSuppressible()?[]:[{id:t.suppressMessage}]},_suppressInAllFiles:function(){var e=this.getSuppressibleMessage();return!!e&&this._codeAnalyzerMessageDisabler.disableMessage(e.getMessageTag())},_suppressInFile:function(){return this._performSuppressAtLine(!0)},_suppressOnLine:function(){return this._performSuppressAtLine(!1)},_performSuppressAtLine:function(e){var t=this.getSuppressibleMessage();if(!t)return!1;var i=this._matlabStateManager.getSyntacticalEndOfLine(t.getStartLine()),n=(e?this._SUPPRESS_ALL_TAG:"")+t.getMessageTag();return this._insertOrAddToPragma(i,n),!0},getSuppressibleMessage:function(){var e=this._codeAnalyzerPlugin.getMessageAtCursor(!0);return e&&e.isSuppressible()?e:null},_insertOrAddToPragma:function(e,t){var i=this._matlabTokenManager.getPragmaTokenFromLine(e);i&&this._isValidSuppressionPragma(i)?this._addTagToPragma(i,t):this._addPragmaToLine(e,t)},_isValidSuppressionPragma:function(e){return!!this._getTextForToken(e).match(this._PRAGMA_REGEX)},_getTextForToken:function(e){return this._document.getTextCharacters(e.getLine(),e.getColumn(),e.getLength())},_addTagToPragma:function(e,t){var i=t+this._COMMA,n=e.getLine(),o=e.getColumn()+this._MLINT_OK.length+1;this._document.insertText(i,n+1,o+1)},_addPragmaToLine:function(e,t){var i=this._getInsertPosition(e),n=(" "!==this._document.getTextCharacters(e,i-1,1)?" ":"")+this._MLINT_OK+this._OPEN_TAG+t+this._CLOSE_TAG;this._document.insertText(n,e+1,i+1)},_getInsertPosition:function(e){var t=this._matlabTokenManager.getCommentTokenFromLine(e);return t?t.getColumn():this._document.getLineLength(e+1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(378),i(4081),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{isApplicable:function(e,i){return t.isMatlabCodeFileOrBuffer(e)&&i&&i.getAllSettingsForSettingGroup},requires:function(){return{isApplicable:["rtc.backingstore","rtc.settings.backingservice"],createInstance:["rtc.settings.backingservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(922),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._matlabSettingService=e},disableMessage:function(e){const i=[{id:e,value:!1}];t.addItemsToActiveConfig(i,this._matlabSettingService)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4083),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.code.codeanalyzer.actioncontributor","rtc.code.codeanalyzer","rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.cursor","rtc.view"]}},createInstance:function(e,i,n,o,r,a){return new t(e,i,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(253),i(207),i(294)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{constructor:function(e,t,n,o,r,a){this._actionContributors=e,this._codeAnalyzerPlugin=t,this._actionService=n,this._contextMenuContributor=o,this._cursor=r,this._view=a,this._addActions(),this._addActionsToContextMenu(),this.own(i.after(this._contextMenuContributor,"updateActions",this._updateActions.bind(this),!0))},_addActions:function(){var e=[];this._actionContributors.forEach((function(t){t.getActions().forEach((function(t){e.push(t)}))}),this),this._actionService.loadActions(e)},_addActionsToContextMenu:function(){var e=[];this._actionContributors.forEach((function(t){t.getContextMenuActions().forEach((function(t){e.push(t)}))}),this),e.sort((function(e,t){return e.priority-t.priority})).forEach((function(e){this._contextMenuContributor.addActionToMap(r.CODE_ANALYZER,e.id)}),this)},_updateActions:function(e){var t=this._codeAnalyzerPlugin.getMessageAtCursor(!0);t&&this._isCursorInDomNode(e)?this._actionContributors.forEach((function(e){e.getContextMenuActionsToHide(t).forEach((function(e){this._contextMenuContributor.hideAction(e.id)}),this),e.getUpdatedActions(t).forEach((function(e){this._actionService.updateAction(e.id,e.actionUpdate)}),this)}),this):this._contextMenuContributor.hideGroup(r.CODE_ANALYZER)},_isCursorInDomNode:function(e){return this._view.getNodeBox(this._cursor.getNode()).contains(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4085)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.alert.model","rtc.internaldocument"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(812),i(1410)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_ALERT_LAYER:"alertLayer",_ERROR:"errorMarker",_WARNING:"warningMarker",constructor:function(e,n){this._alertModel=e,this._internalDocument=n,this.own(i.after(this._alertModel,"onModelChanged",t.hitch(this,"_updateMessages"))),this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_updateMessages")))},getLayerName:function(){return this._ALERT_LAYER},_updateMessages:function(){this.clearLayer(this._ALERT_LAYER),this._alertModel.getAlerts().forEach((function(e){if(e.position.isValid()){var t=e.position.getLineColumn(),i=t.line,o=t.column;e.type===n.ERROR?this.addMessage(this._ALERT_LAYER,this._ERROR,null,!0,i,o):this.addMessage(this._ALERT_LAYER,this._WARNING,null,!1,i,o)}}),this),this.updateLayer(this._ALERT_LAYER)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4087)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.code.codeanalyzermodel","rtc.code.codeanalyzer","rtc.code.codeanalyzerautofix","rtc.viewready","rtc.settings.service","rtc.id","rtc.view.styles.globalstylechanger"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(225),i(921),i(231),i(208),i(249),i(260),i(1954),i(1410),i(1959)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(c,{_SYNTAX_ERROR_SETTING_ID:"matlab.colors.SyntaxErrorColor",_WARNINGS_SETTING_ID:"matlab.colors.programmingtools.CodeAnalyzerWarningColor",_CODE_ANALYZER_LAYER:"codeAnalyzerLayer",_ERROR:"errorMarker",_WARNING:"warningMarker",constructor:function(e,t,i,n,o,a,s,l){this._codeAnalyzerModel=t,this._codeAnalyzerPlugin=i,this._codeAnalyzerAutoFix=n,this._layerIsUpdating=!1,this._settingService=a,this._rtcId=s,this._globalStyleChanger=l,this.own(this._settingService.listenToSettingChange(this._SYNTAX_ERROR_SETTING_ID,this._onSyntaxErrorPreferenceChange.bind(this))),this.own(this._settingService.listenToSettingChange(this._WARNINGS_SETTING_ID,this._onWarningPreferenceChange.bind(this))),this._settingService.getSetting(this._SYNTAX_ERROR_SETTING_ID).then(this._onSyntaxErrorPreferenceChange.bind(this),(function(e){})),this._settingService.getSetting(this._WARNINGS_SETTING_ID).then(this._onWarningPreferenceChange.bind(this),(function(e){})),this.own(r.after(this._codeAnalyzerPlugin,"onUpdateMessages",this._updateMessages.bind(this))),this.own(r.after(this._codeAnalyzerPlugin,"onModelUpdatedWithNoChange",this._handleModelUpdatedWithNoChange.bind(this))),this.own(r.after(e,"onChange",this._handleDocumentChange.bind(this),!0)),this.own(r.after(o,"onViewReady",this._updateMessages.bind(this)))},_onSyntaxErrorPreferenceChange:function(e){var t=[];t[0]=e[0],t[1]=e[1],t[2]=e[2],255===e[0]&&0===e[1]&&0===e[2]&&(t[0]=204,t[1]=55,t[2]=41);var i="rgb("+t.join(",")+")";this._globalStyleChanger.insertOrReplaceRule("."+this._ERROR,[{name:"background-color",value:i}])},_onWarningPreferenceChange:function(e){var t="rgb("+e.join(",")+")";this._globalStyleChanger.insertOrReplaceRule("."+this._WARNING+this._rtcId,[{name:"background-color",value:t}])},getLayerName:function(){return this._CODE_ANALYZER_LAYER},_handleDocumentChange:function(e){this.closeTooltip(),s.hasEventType(e,a.NUMBER_OF_LINES_CHANGED)&&(this._needsLineNumberUpdate=!0)},_handleModelUpdatedWithNoChange:function(){this._needsLineNumberUpdate&&this._updateMessages()},_updateMessages:function(){this._layerIsUpdating=!0,this.clearLayer(this._CODE_ANALYZER_LAYER),this._codeAnalyzerPlugin.getAllMessages().forEach((function(e){var i,n,o=e.getStartLine(),r=e.getStartColumn(),a=t.hitch(this,"_createTooltipForMessage",e);e.isError()?(i=d.ERROR,n=this._ERROR):(i=d.WARNING,n=this._WARNING+this._rtcId),this.addMessage(this._CODE_ANALYZER_LAYER,n,a,i,o,r)}),this),this._needsLineNumberUpdate=!1,this._layerIsUpdating=!1,this.updateLayer(this._CODE_ANALYZER_LAYER)},_createTooltipForMessage:function(e){if(e.isRangeValid()&&e.isFixable())var t=e=>{this._codeAnalyzerAutoFix.applyFix(e),this.closeTooltip()};const i={message:e,callback:t,className:"codeAnalyzerTooltip",iconCssClasses:e.getIconCssClasses()},n=new l(i);return this._updateAutofixButtonState(n),[n]},_updateAutofixButtonState:function(e){var t=o.getEnclosingWidget(i(".tooltipInlineButton.actionButton",e.domNode)[0]);t&&t.set("disabled",!this._codeAnalyzerModel.isModelUpToDate()||this._layerIsUpdating)},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4089)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.codeanalyzer.ignoresemicolonwarning"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4090)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._ignoreSemicolonWarning=!0===e},getId:function(){return"editor::codeanalyzer::ignoreSemicolonWarning"},getValue:function(){return this._ignoreSemicolonWarning.toString()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._hasNewData=!0},getId:function(){throw new Error("Unimplemented API: AbstractDocumentCacheMetadataContributor.getId")},getValue:function(){throw new Error("Unimplemented API: AbstractDocumentCacheMetadataContributor.getValue")},onDataToSync:function(){this._hasNewData=!0},onDataSynced:function(){this._hasNewData=!1},hasDataToSync:function(){return this._hasNewData}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4092)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.autocompletions.view","rtc.autocompletions.contextmanager","rtc.autocompletions.requesthandler","rtc.cursorcontroller","rtc.keyhandler.keyboardshortcutsmodel","rtc.keyhandler","rtc.internaldocument","rtc.autocompletions.ddux.controller"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(221),i(223),i(207),i(208),i(379),i(251),i(671),i(727),i(584)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(o,{_NEXT_SECTION_ACTION_ID:s.SECTIONS.NEXT_SECTION_ACTION,_OPEN_SIGNATURE_ACTION_ID:"codingui_open_signature_dropdown",constructor:function(e,i,o,r,a,s,l,c,d){this._uiView=i,this._contextManager=o,this._requestHandler=r,this._cursorController=a,this._cursor=a.getCursors()[0],this._keyboardShortcutsModel=s,this._keyHandler=l,this._internalDocument=c,this._dduxController=d,this._actions=[{id:"codingui_escape",enabled:!0,key:"escape",callback:t.hitch(this,"_escape",{keyCode:n.ESCAPE})},{id:"codingui_enter",enabled:!0,key:"enter",callback:t.hitch(this,"_select",{keyCode:n.ENTER})},{id:"codingui_up",enabled:!0,key:"up",callback:t.hitch(this,"_upNavigate",{keyCode:n.UP_ARROW})},{id:"codingui_down",enabled:!0,key:"down",callback:t.hitch(this,"_downNavigate",{keyCode:n.DOWN_ARROW})},{id:this._OPEN_SIGNATURE_ACTION_ID,enabled:!0,key:"ctrl_down",platformKey:{mac:"meta_down"},callback:t.hitch(this,"_navigate",{keyCode:n.DOWN_ARROW,ctrlKey:!0,metaKey:!0})},{id:"codingui_right",enabled:!0,key:"right",callback:t.hitch(this,"_rightNavigate",{keyCode:n.RIGHT_ARROW})},{id:"rtc_codingui_move_left_arg",enabled:!0,key:"ctrl_alt_left",callback:t.hitch(this,"_navigate",{keyCode:n.LEFT_ARROW,ctrlKey:!0,altKey:!0})},{id:"rtc_codingui_move_right_arg",enabled:!0,key:"ctrl_alt_right",callback:t.hitch(this,"_navigate",{keyCode:n.RIGHT_ARROW,ctrlKey:!0,altKey:!0})},{id:"codingui_pageup",enabled:!0,key:"pageup",callback:t.hitch(this,"_navigate",{keyCode:n.PAGE_UP})},{id:"codingui_pagedown",enabled:!0,key:"pagedown",callback:t.hitch(this,"_navigate",{keyCode:n.PAGE_DOWN})},{id:"codingui_show_widget",enabled:!0,key:"ctrl_f1",platformKey:{mac:"ctrl_f1"},callback:t.hitch(this,"_handleCtrlF1",{keyCode:n.F1,ctrlKey:!0,metaKey:!0})},{id:"codingui_home",enabled:!0,key:"home",callback:t.hitch(this,"_navigate",{keyCode:n.HOME})},{id:"codingui_end",enabled:!0,key:"end",callback:t.hitch(this,"_navigate",{keyCode:n.END})}],e.loadActions(this._actions),this._updateActionGroupForCtrlDown(),this._addAdditionalKeyBindings()},_select:function(e){if(!this._uiView.isTopViewDisplayed()||this._requestHandler.hasPendingRequest())return!1;var t=this._contextManager.getContext();if(!t)return!1;var i=!0;if(this._uiView.isShadowTextViewDisplayed()&&this._uiView.isTopViewDisplayed()&&(c.isCommandCallingSyntax(t.metaData)&&(i=!1),i))return!c.hasMultipleCursorsOrReadOnlyCursor(this._cursorController)&&(this._maskAsTabKey(),!0);var n=this._navigate(e);return n||this._closeView(),n},_escape:function(e){var t=this._contextManager.getContext();return this._requestHandler.hasPendingRequest()&&t&&(t.doNotShowView=!0),!!this._uiView.isTopViewDisplayed()&&(this._dduxController.notifyEnd(),this._navigate(e),t&&t.metaData.hasSignatures()&&this._contextManager.setContextTabMode(!0),t&&!t.metaData.hasSignatures()&&this._contextManager.setContextNonTabMode(!0),this._closeView())},_navigate:function(e){if(!this._contextManager.getContext())return!1;var t=!1;return this._uiView.isTopViewDisplayed()&&(t=this._uiView.sendEventToTopView(e)),t},_rightNavigate:function(e){return!(!this._uiView.isShadowTextViewDisplayed()||!this._uiView.isTopViewDisplayed())&&(!c.hasMultipleCursorsOrReadOnlyCursor(this._cursorController)&&(this._maskAsTabKey(),!0))},_upNavigate:function(e){return 1===this._cursor.getLineColumn().line?this._navigate(e):this._upDownNavigate(e)},_downNavigate:function(e){return this._cursor.getLineColumn().line===this._internalDocument.getMaxLineNumber()?this._navigate(e):this._upDownNavigate(e)},_upDownNavigate:function(e){var t=this._contextManager.getContext();if(!t)return!1;var i=t.widget;return!(!t.metaData.hasSignatures()&&1===d.getNumberOfChoices(i)&&d.isChoiceSameAsTypedCode(t))&&this._navigate(e)},_handleCtrlF1:function(e){if(c.hasMultipleCursorsOrReadOnlyCursor(this._cursorController)||a.isMultiLineSelection(this._cursor))return!1;var t=this._contextManager.getContext();return!(t&&!t.metaData.hasSignatures())&&(t?!c.isSelectionOutsideCurrentArg(this._cursor,t)&&this._uiView.sendEventToTopView(e):(this._requestHandler.request(l.ACTIVE_REQUEST),!0))},_closeView:function(){return this._uiView.close()},_updateActionGroupForCtrlDown:function(){var e;e=i("mac")?"meta_down":"ctrl_down";var t=this._keyboardShortcutsModel.getMatchingActionGroup(e,this._OPEN_SIGNATURE_ACTION_ID);t&&t.contains(this._NEXT_SECTION_ACTION_ID)&&(this._keyboardShortcutsModel.removeActionIdFromActionGroup(t,this._NEXT_SECTION_ACTION_ID),this._keyboardShortcutsModel.addActionIdToActionGroup(t,this._NEXT_SECTION_ACTION_ID))},_addAdditionalKeyBindings:function(){this._keyHandler.addBinding({platformKey:{mac:"ctrl_f"}},"codingui_right"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_v"}},"codingui_pagedown"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_n"}},"codingui_down"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_p"}},"codingui_up")},_maskAsTabKey:function(){this._uiView.sendEventToTopView({keyCode:n.TAB})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(1960),i(4098),i(814)],o=i.dj.d(n,(function(e,t,i,n){var o={};return o[n.FUNCTION_ASSISTANT]=i,e.mixin(o,t),o}),e,t),e.exports=o},function(e,t,i){e.exports={argumentHeader:"${0} の値を入力",help:"ヘルプ",loading:"読み込み中...",moreSignatures:"署名をさらに表示します",nextArgument:"次の引数",noCompletionsFound:"補完する語が見つかりません",optionalArgument:"オプション",previousArgument:"前の引数",tooManyCompletionsFound:"見つかった補完候補が多すぎます",userMessageForVariable:"<変数の詳細についてはファイルを実行してください>"}},function(e,t,i){e.exports={argumentHeader:"${0}의 값 입력",help:"도움말",loading:"불러오는 중...",moreSignatures:"시그니처 더 보기",nextArgument:"다음 인수",noCompletionsFound:"완성 항목을 찾을 수 없음",optionalArgument:"선택 사항",previousArgument:"이전 인수",tooManyCompletionsFound:"너무 많은 완성 항목이 발견됨",userMessageForVariable:"<변수 정보를 보려면 파일 실행 필요>"}},function(e,t,i){e.exports={argumentHeader:"输入 ${0} 的值",help:"帮助",loading:"正在加载...",moreSignatures:"显示更多签名",nextArgument:"下一个参数",noCompletionsFound:"未找到任何自动填充项",optionalArgument:"可选",previousArgument:"上一个参数",tooManyCompletionsFound:"找到的自动填充项过多",userMessageForVariable:"<运行文件以获取变量详细信息>"}},function(e,t,i){e.exports={root:{argumentHeader:"Enter a value for ${0}",help:"Help",loading:"Loading...",moreSignatures:"Show more signatures",nextArgument:"Next argument",noCompletionsFound:"No completions found",optionalArgument:"Optional",previousArgument:"Previous argument",tooManyCompletionsFound:"Too many completions found",userMessageForVariable:"<Run file for variable details>"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(231),i(215),i(203),i(204),i(221),i(1411),i(223),i(206),i(236),i(1960),i(814),i(550),i(4099)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p="mwFunctionAssistant",f="mwCompletion__choiceContainer__choice",g=p+"--showSignatures",m="mwFunctionAssistant__signatureContainer__argumentContainer__argument",_=m+"--present",v=m+"--current",b=m+"__widgetContainer",y=m+"--hasWidget",C=m+"--moveIntoViewLeft",T=m+"--moveIntoViewRight",E=b+"__header",S=["below","above","before","after"],w=i(t,{baseClass:"mwFunctionAssistant",showWidgets:!0,showSignatures:!1,position:"bottom",showHelp:!0,constructor:function(){this.data={signatures:[]},this._eventHandlers=[],this._openTooltipNodes=[]},buildRendering:function(){this.inherited(arguments),this.domNode.setAttribute("data-focus","refuse"),this._createChildDomNodes()},_setShowSignaturesAttr:function(e){if(e){if(this._signatureCompletion.get("numberOfChoices")>1){this.domNode.classList.add(g);var t=h.indexOfSignature(this._currentSignature,this.data);t>-1&&this._signatureCompletion.set("value",t+""),this.emit("size-change",{}),this._set("showSignatures",e)}}else this.domNode.classList.remove(g),this.emit("size-change",{}),this._set("showSignatures",e)},_setPositionAttr:function(e){this.domNode.classList.remove(this.baseClass+"--"+this.position),this.domNode.classList.add(this.baseClass+"--"+e),this.position!==e&&this._set("position",e)},_setShowWidgetsAttr:function(e){e?this.domNode.classList.remove("mwFunctionAssistant--widgetsHidden"):this.domNode.classList.add("mwFunctionAssistant--widgetsHidden"),this._set("showWidgets",e)},_setValueAttr:function(){throw new Error("value is a read-only property!")},_getValueAttr:function(){var t="",i=this._signatureContainer.querySelector(".mwCompletion__choiceContainer__choice--selected"),n=this._signatureContainer.querySelector(".mwCompletion__choiceContainer__choice--hover"),o=i||n;o&&(t=e.getEnclosingWidget(o).get("value"));return t},_setNumberOfChoicesAttr:function(){throw new Error("numberOfChoices is a read-only property!")},_getNumberOfChoicesAttr:function(){return h.getNumberOfChoices(this._signatureContainer)},_setAlignmentXOffsetAttr:function(){throw new Error("alignmentXOffset is a read-only property!")},_getAlignmentXOffsetAttr:function(){return this._argumentContainer.getBoundingClientRect().left-this.domNode.getBoundingClientRect().left},_setCurrentArgumentAlignmentXOffsetAttr:function(){throw new Error("currentArgumentAlignmentXOffset is a read-only property!")},_getCurrentArgumentAlignmentXOffsetAttr:function(){var e=h.getCurrentArgumentNode(this.domNode);return e?e.getBoundingClientRect().left-this.domNode.getBoundingClientRect().left:0},_setCurrentArgumentWidthAttr:function(){throw new Error("currentArgumentWidth is a read-only property!")},_getCurrentArgumentWidthAttr:function(){var e=h.getCurrentArgumentNode(this.domNode);return e?e.getBoundingClientRect().width:0},_setWidthAttr:function(){throw new Error("width is a read-only property!")},_getWidthAttr:function(){var e=this.domNode.getBoundingClientRect(),t=h.getCurrentArgumentNode(this.domNode),i=0;if(t){var n=t.querySelector("."+b).getBoundingClientRect();0!==n.width&&(i=h.findTotalXOffsetOfChild(e,n))}return e.width+i},_setSignatureContainerWidthAttr:function(){throw new Error("signatureContainerWidth is a read-only property!")},_getSignatureContainerWidthAttr:function(){return this._signatureContainer?this._signatureContainer.getBoundingClientRect().width:0},_setMinHeightAttr:function(){throw new Error("minHeight is a read-only property!")},_getMinHeightAttr:function(){return u.getMinHeightOfFunctionAssistantWithCompletion()},_setAvailableHeightAttr:function(e){var t=e-u.getMinHeightOfOnlyFunctionAssistant();Array.prototype.slice.call(this._argumentContainer.querySelectorAll("."+_)).forEach((function(e){e&&e.widget&&e.widget.set("availableHeight",t)})),this._signatureCompletion&&this._signatureCompletion.set("availableHeight",t)},_setValueOfFirstChoiceAttr:function(){throw new Error("valueOfFirstChoice is a read-only property!")},_getValueOfFirstChoiceAttr:function(){var e=h.getCurrentArgumentNode(this.domNode),t=null;if(e&&e.widget){var i=e.widget.getFirstChoiceNode();i&&(t=i.getAttribute("data-completion"))}return t},_setDataAttr:function(e){this._signaturesBeforePromotion=JSON.parse(JSON.stringify(e.signatures));var t=h.sortPromotedSignatures(e);this._set("data",t),this.data.signatures&&this.data.signatures.length>0&&(this._setCurrentSignatureIndex(),this.data.signatures.length<2?this.domNode.classList.add("mwFunctionAssistant--noSignatureCompletions"):this.domNode.classList.remove("mwFunctionAssistant--noSignatureCompletions")),this._setAppropriateSignature(),0!==this.data.signatures.length&&(h.filterArgsForObjectOrCellSyntax(this.data),this._buildArgumentContainer(),this._setTotalSignaturesNode(this.data.signatures),this._buildSignatureCompletion(this.data.signatures)),this.domNode.style.display=0===this.data.signatures.length?"none":null,this._dropDownContainer.style.display=1===this.data.signatures.length?"none":null},_setShowHelpAttr:function(e){e?this.domNode.classList.add("mwFunctionAssistant--helpAvailable"):this.domNode.classList.remove("mwFunctionAssistant--helpAvailable"),this._set("showHelp",e)},postCreate:function(){this.inherited(arguments),this._hookupDomNodeListeners()},_createChildDomNodes:function(){this._signatureContainer=u.buildNode("div",{className:"signatureContainer",parent:this.domNode},p),this._createHelpNode(),this._argumentContainer=u.buildNode("div",{className:"argumentContainer",parent:this._signatureContainer},p),this._createDropDownNode()},_createHelpNode:function(){this._helpContainer=u.buildNode("div",{className:"helpContainer",parent:this._signatureContainer},p),this._helpNode=u.buildNode("div",{parent:this._helpContainer,className:"help"},p),this._createTooltip([this._helpContainer],r.help)},_createDropDownNode:function(){if(o("mac"))var e=r.moreSignatures+" (⌘↓)";else e=r.moreSignatures+" (Ctrl + Down)";this._dropDownContainer=u.buildNode("div",{className:"dropDownContainer",parent:this._signatureContainer},p),this._createTooltip([this._dropDownContainer],e),this._currentSignatureIndexNode=u.buildNode("div",{className:"currentSignatureIndex",parent:this._dropDownContainer},p),u.buildNode("div",{className:"signatureLabel",parent:this._dropDownContainer,text:"of"},p),this._totalSignaturesNode=u.buildNode("div",{className:"totalSignatures",parent:this._dropDownContainer},p),u.buildNode("div",{className:"dropDown",parent:this._dropDownContainer},p)},_createTooltip:function(e,t){var i=u.buildTooltip(e,t,S);this.own(i)},_hookupDomNodeListeners:function(){this._handleDocumentBodyClick=n.hitch(this,(function(e){this.domNode.classList.contains(g)&&!this._dropDownContainer.contains(e.target)&&this.set("showSignatures",!1)})),document.body.addEventListener("click",this._handleDocumentBodyClick,!0),this.domNode.addEventListener("change",this._handleChange.bind(this)),this.domNode.addEventListener("select",this._handleSelect.bind(this)),this.domNode.addEventListener("click",this._handleClick.bind(this)),this.domNode.addEventListener("mouseover",this._handleMouseOver.bind(this)),this.domNode.addEventListener("mouseout",this._handleMouseOut.bind(this))},_handleChange:function(t){var i=e.getEnclosingWidget(t.target);i===this._signatureCompletion?t.mwEventData.type="signatureChange":i&&i._argumentNode&&(t.mwEventData.kind=i._argumentNode.kind,this._findOriginalSignature(i))},_handleSelect:function(t){e.getEnclosingWidget(t.target)===this._signatureCompletion&&(t.stopImmediatePropagation(),t.stopPropagation())},_handleClick:function(e){var t=e.target;if(t===this._helpNode)this.emit("help");else if(this._dropDownContainer.contains(t))this._toggleSignatureCompletion();else if(t.classList.contains("leftArrow")||t.classList.contains("rightArrow")){if(t.classList.contains("leftArrow"))var i=-1;else i=1;var n=h.getCurrentArgumentNode(this.domNode),o=Array.prototype.slice.call(this._argumentContainer.querySelectorAll("."+_)),r=o.indexOf(n),a=o[r+i];this._updateCurrentArgumentOnNavigation(n,a)}else if(this._argumentContainer.contains(t)){var s=h.findArgument(e);if(s&&s.classList.contains(_)){var l=h.getCurrentArgumentNode(this.domNode);this._updateCurrentArgumentOnNavigation(l,s)}}},_handleMouseOver:function(e){if(this._argumentContainer.contains(e.target)){var t=h.findArgument(e);t&&this.emit("argument-over",{mwEventData:{argumentName:t.name,bounds:t.bounds}})}},_handleMouseOut:function(e){if(this._argumentContainer.contains(e.target)){var t=h.findArgument(e);t&&this.emit("argument-out",{mwEventData:{argumentName:t.name,bounds:t.bounds}})}},_findOriginalSignature:function(e){var t,i=e.domNode.parentNode.parentNode,n=Array.prototype.slice.call(this._argumentContainer.querySelectorAll("."+m)).indexOf(i),o=e.get("value")?e.get("value"):e.get("valueOfFirstChoice"),r=this.data.signatures[this._currentSignatureIndex].inputArguments[n];if(void 0!==r.widgetData&&(r.widgetData.choices.some((function(e){if(e.completion===o)return t=e,!0})),t&&t.originalSignature>=0)){for(var a,s=t.originalSignature,l=this._signaturesBeforePromotion[s],c=0;c<this.data.signatures.length;c++){var d=this.data.signatures[c];if(h.isSameArgumentArray(l.inputArguments,d.inputArguments)){a=c;break}}if(a===this._currentSignatureIndex)return;this._currentSignature=this.data.signatures[a].inputArguments}},_setCurrentSignatureIndex:function(){this._userSelectedSignature||(this._currentSignatureIndex=h.signatureWithSuggestedPriority(this.data),-1===this._currentSignatureIndex&&(this._currentSignatureIndex=h.firstSignatureWithArguments(this.data)))},_setAppropriateSignature:function(){if(this.data.signatures.length<2)this._currentSignatureIndex=0;else{var e=h.findCurrentArgumentIndex(this._argumentContainer);if(-1!==e){var t=this.data.signatures[this._currentSignatureIndex].inputArguments[e];if(t&&t.value){var i=t.value;if(0!==i.length&&i&&"''"!==i){var n=this._findMatchingSignature(e,i);this._currentSignatureIndex=-1===n?this._currentSignatureIndex:n}}}}},_findMatchingSignature:function(e,t){if(h.argumentCompletionHasValue(this.data,this._currentSignatureIndex,e,t))return this._currentSignatureIndex;for(var i=0;i<this.data.signatures.length;i++){if(i!==this._currentSignatureIndex)if(h.argumentCompletionHasValue(this.data,i,e,t))return i}return-1},_setCurrentSignatureIndexNode:function(e){e>=0&&(this._currentSignatureIndexNode.textContent=e+1)},_setTotalSignaturesNode:function(e){this._totalSignaturesNode.textContent=e.length},_checkForCallingSyntax:function(e,t){return h.checkForCallingSyntax(e,t,this.data)},_checkBracketType:function(){return h.checkBracketType(this._currentSignatureIndex,this.data)},_buildSignatureCompletion:function(e){this._signatureCompletion&&this._signatureCompletion.destroyRecursive();var t=JSON.parse(JSON.stringify(e));this._signatureCompletion=new c[d.COMPLETION]({choices:t.map((function(e,t){return{data:e.inputArguments,completion:t+"",functionName:e.functionName}})),renderItem:n.hitch(this,(function(e,t){var i=this._checkForCallingSyntax("command",this._currentSignatureIndex);u.buildNode("span",{text:t.functionName,parent:e},p),u.buildNode("span",{text:i?" ":"(",parent:e},p),t.data.forEach((function(t,n){var o=h.prepareClassModifiers(t);if(n>0){var r=h.prepareCommaClassModifiers(o);u.buildNode("span",{parent:e,text:i?" ":",",className:"comma",useOwnClass:!0,classModifiers:r},p)}u.buildNode("span",{parent:e,text:t.repeatedCount?t.name+t.repeatedCount:t.name,className:"mwFunctionAssistant__signatureCompletion__mwCompletion__choice__argument",useOwnClass:!0,classModifiers:o})}),this),u.buildNode("span",{text:i?" ":")",parent:e},p)}))}),this._signatureCompletion.domNode.classList.add("mwFunctionAssistant__signatureCompletion"),this._signatureCompletion.placeAt(this.domNode),this._signatureCompletion.startup(),this._signatureCompletion.on("change",n.hitch(this,this._handleSignatureChange))},_handleSignatureChange:function(e){this._currentSignatureIndex=parseInt(e.mwEventData.newValue,10),this._userSelectedSignature=!0,this.set("showSignatures",!1),this._buildArgumentContainer()},_buildArgumentContainer:function(){this._setCurrentSignatureIndexNode(this._currentSignatureIndex);var e=this.data.signatures[this._currentSignatureIndex].inputArguments;this._updateCurrentSignature(e),this._buildNavigationArrowsInToolTip(),this._setCurrentArgument()},_updateCurrentSignature:function(e){this._currentSignature=e,this._buildCurrentSignature(e)},_updateCurrentArgument:function(e){this._currentArgument=e},_buildCurrentSignature:function(e){var t=e.length;if(this._cleanupOldDOM(),u.buildNode("span",{text:this.data.signatures[0].functionName,parent:this._argumentContainer},p),0!==t){var i=this._checkBracketType();u.buildNode("span",{text:i,parent:this._argumentContainer},p),e.forEach((function(e,i){this._buildArgumentsAndWidget(e,i,t)}),this)}},_buildArgumentsAndWidget:function(e,t,i){var n=this._buildArgument(e,t,i),o=this._buildCorrespondingWidget(e,this.data.shared),r=u.buildNode("div",{className:"widgetContainer",parent:n},p),a=h.findHeaderText(e),s=this._buildHeaderNode(a,r,n,!!o);o?(o.placeAt(r),o.startup(),o._argumentNode=n,n.widget=o,n.classList.add(y)):this._buildSubHeadNode(e,s)},_buildHeaderNode:function(e,t,i,n){var o=!1;if(""===e){if(!n)var a=(e=r.argumentHeader).split("${0}");o=!0}var s=u.buildNode("div",{className:"header",parent:t},p),c=u.buildNode("div",{className:"text",parent:s},p),d=u.buildNode("div",{parent:c,useOwnClass:!0,className:"headerValue"},p);if(a?(""!==a[0]&&""!==a[1]&&(a.push(a[1]),a[1]=""),a.forEach((function(e){""!==e?u.buildNode("span",{parent:d,text:e,useOwnClass:!0},p):u.buildNode("span",{parent:d,text:i.name,useOwnClass:!0,className:"argumentName"},p)})),e=l.substitute(r.argumentHeader,[i.name])):e&&u.buildNode("span",{parent:d,text:e,useOwnClass:!0},p),""===e&&o){u.buildNode("span",{parent:d,text:i.name,useOwnClass:!0,className:"argumentName"},p);e+=i.name}""!==e?t.classList.add(b+"--headerAvailable"):t.classList.remove(b+"--headerAvailable");var h=u.buildNode("div",{parent:c,useOwnClass:!0,className:"optionalDiv"},p);return this._handleTooltipShowHide(d),i.classList.contains(m+"--required")||i.classList.contains(m+"--value")||(h.textContent="("+r.optionalArgument+")"),s},_buildNavigationArrowsInToolTip:function(){var e=Array.prototype.slice.call(this._argumentContainer.querySelectorAll("."+m)).filter((function(e){return e.classList.contains(m+"--present")})),t=e.length;t>1&&e.forEach((function(e,i){var n,r=e.querySelector("."+E).firstChild;r.classList.add(E+"--hasNavigationArrows"),n=0===i?h.findNavigationTooltipText(o("mac"),"first"):i===t-1?h.findNavigationTooltipText(o("mac"),"last"):h.findNavigationTooltipText(o("mac"),"middle");var a=u.buildNode("div",{className:"argNavigationContainer",parent:r,useOwnClass:!0},p);this._createTooltip([a],n),0!==i&&u.buildNode("div",{className:"leftArrow",parent:a,useOwnClass:!0},p);var s=u.buildNode("div",{className:"presentingArgIndexContainer",parent:a,useOwnClass:!0},p);u.buildNode("div",{className:"currentArg",parent:s,text:i+1,useOwnClass:!0},p),u.buildNode("div",{className:"argumentLabel",parent:s,text:"of",useOwnClass:!0},p),u.buildNode("div",{className:"totalArguments",parent:s,text:t,useOwnClass:!0},p),i!==t-1&&u.buildNode("div",{className:"rightArrow",parent:a,useOwnClass:!0},p)}),this)},_buildSubHeadNode:function(e,t){var i=e.valueSummary;if(i){var n=u.buildNode("div",{className:"valueSummary",parent:t,text:i},p);this._handleTooltipShowHide(n)}},_setCurrentArgument:function(){var e=0,t=!0,i=this.data.signatures[this._currentSignatureIndex].inputArguments.filter((function(e){return"presenting"===e.status}));if(0!==i.length){var n=i[e];this._currentArgument&&(i.forEach((function(t,i){t.name===this._currentArgument.name&&(e=i)}),this),((n=i[e]).widgetData&&n.widgetData.choices&&n.widgetData.choices.length||"none"===n.widgetType)&&(t=!1));var o=this._signatureContainer.querySelectorAll("."+_),r=Array.prototype.slice.call(this._signatureContainer.querySelectorAll("."+m));if(t){var a=n.value.toLowerCase();if(""!==(a=a.replace(/(^['"])|(['"]$)/g,""))&&"required"!==n.kind)for(var s=0;s<o.length;s++)if(o[s].classList.contains(y)){var l=r.indexOf(o[s]);if(h.argumentCompletionHasValue(this.data,this._currentSignatureIndex,l,a)){e=s;break}}}o[e].classList.add(v),this.repositionWidget()}},getCurrentArgumentData:function(){var e=h.findCurrentArgumentIndex(this._argumentContainer);return this.data.signatures[this._currentSignatureIndex].inputArguments[e]},repositionWidget:function(){var e=this._argumentContainer.querySelector("."+m+"--current");this._repositionHorizontally(e),this._repositionVertically(e)},_repositionHorizontally:function(e){if(e){var t=e.querySelector("."+b);if(t){var i=t.getBoundingClientRect(),n=i.left,r=i.right,a=i.width;if(n<0?this._hasSpaceOnRight(r,a)&&(e.classList.add(C),e.classList.remove(T)):r>window.innerWidth?this._hasSpaceOnLeft(n,a)&&(e.classList.add(T),e.classList.remove(C)):(this._hasSpaceOnLeft(n,a)&&e.classList.remove(C),this._hasSpaceOnRight(r,a)&&e.classList.remove(T)),o("ff")){var s=t.getBoundingClientRect().width;s&&(s=Math.round(s))%2&&(t.style.width=s+1+"px")}}}},_hasSpaceOnLeft:function(e,t){return e>=t/2},_hasSpaceOnRight:function(e,t){return window.innerWidth-e>=t/2},_repositionVertically:function(e){if(e){var t=this.get("position"),i=this._signatureContainer.getBoundingClientRect().bottom-e.getBoundingClientRect().top+12+"px",n=e.querySelector("."+b);n&&("top"===t?(n.style.bottom=i,n.style.top=""):"bottom"===t&&(n.style.top=i,n.style.bottom=""))}var o=this._argumentContainer.getBoundingClientRect().height;this._helpContainer.style.height=o+3+"px"},_cleanupOldDOM:function(){for(;this._argumentContainer.children.length;){var e=this._argumentContainer.lastChild;this._argumentContainer.removeChild(e);var t=e.widget;t&&t.destroy()}},_buildArgument:function(e,t,i){var n=h.prepareClassModifiers(e);if(t>0){var o=h.prepareCommaClassModifiers(n),r=this._checkForCallingSyntax("command",this._currentSignatureIndex)?" ":",";u.buildNode("span",{text:r,parent:this._argumentContainer,className:"comma",useOwnClass:!0,classModifiers:o},p)}var a=e.name;e.repeatedCount&&(a=e.name+e.repeatedCount);var s="value"===e.kind?"value":a,l=u.buildNode("div",{parent:this._argumentContainer,className:"argument",classModifiers:n},p);u.buildNode("span",{parent:l,text:s,className:"argumentText",useOwnClass:!0}),l.status=e.status,l.name=e.originalName?e.originalName:e.name,l.bounds=e.bounds,l.kind=e.kind;var c=this._checkBracketType();return"("===c?c=")":"{"===c&&(c="}"),t===i-1&&u.buildNode("span",{text:c,parent:this._argumentContainer},p),l},_buildCorrespondingWidget:function(e,t){var i=null;if(void 0!==e.widgetType&&"scalar"!==e.widgetType||(e.widgetType=d.COMPLETION,e.widgetData={choices:[]}),"presenting"===e.status&&(e.widgetData||t)){var n=c[d.COMPLETION];if(n){var o=e.widgetData?e.widgetData.choices:[];if(t&&t.widgetData&&t.widgetData.choices&&t.widgetData.choices.length>0){var r=t.widgetData.choices.filter((function(e){return!o.some((function(t){return t.completion===e.completion}))}));o.length>0&&r.length>0&&(r[0].separated=!0),o=o.concat(r)}o.length>0&&(i=new n({choices:o,autoSelect:!1,selectionScope:this._signatureContainer,attachedAt:"bottom"})).domNode.classList.add(e.kind)}}return i},_toggleSignatureCompletion:function(){this.set("showSignatures",!this.get("showSignatures"))},_updateCurrentArgumentOnNavigation:function(e,t){if(e!==t){e.classList.remove(v);var i=e.widget,n="";i&&(n=i.get("value")?i.get("value"):i.get("valueOfFirstChoice"),i.set("value","")),t.classList.add(v);var o=t.widget,r="";o&&(r=o.get("valueOfFirstChoice"));var a=Array.prototype.slice.call(this.domNode.querySelectorAll("."+m)).indexOf(t);this._updateCurrentArgument(this.data.signatures[this._currentSignatureIndex].inputArguments[a]),this.repositionWidget(),this.emit("argument-change",{mwEventData:{oldValue:n,newValue:r}})}},_signatureCompletionNavigate:function(e){return[a.UP_ARROW,a.DOWN_ARROW,a.HOME,a.END,a.PAGE_UP,a.PAGE_DOWN].indexOf(e.keyCode)>-1?this._signatureCompletion.navigate(e):e.keyCode===a.ENTER?(this._signatureCompletion.navigate(e),this.set("showSignatures",!1),!0):e.keyCode===a.ESCAPE?(this.set("showSignatures",!1),!0):void 0},_navigateWithinArgumentCompletion:function(e){var t=h.getCurrentArgumentNode(this.domNode);if(t&&t.widget)return t.widget.navigate(e)},_navigateBetweenPresentingArguments:function(e){var t=Array.prototype.slice.call(this._argumentContainer.querySelectorAll("."+m)),i=Array.prototype.slice.call(this._argumentContainer.querySelectorAll("."+_)),n=h.getCurrentArgumentNode(this.domNode),o=t.indexOf(n);if(1===i.length)return!1;if(e.ctrlKey&&e.altKey&&e.keyCode===a.LEFT_ARROW)var r=-1;else e.ctrlKey&&e.altKey&&e.keyCode===a.RIGHT_ARROW&&(r=1);for(var s=o;;){if((s+=r)<0||s>=t.length)return!1;if(t[s].classList.contains(_))break}var l=t[s];return l&&l.classList.contains(_)&&s!==o&&this._updateCurrentArgumentOnNavigation(n,l),!0},navigate:function(e){return(e.metaKey||e.ctrlKey)&&e.keyCode===a.DOWN_ARROW?(this._toggleSignatureCompletion(),!0):this.domNode.classList.contains(g)?this._signatureCompletionNavigate(e):this.showWidgets?e.ctrlKey&&e.altKey&&(e.keyCode===a.LEFT_ARROW||e.keyCode===a.RIGHT_ARROW)?this._navigateBetweenPresentingArguments(e):this._navigateWithinArgumentCompletion(e):void 0},_handleTooltipShowHide:function(e){this._eventHandlers.push(u.setEventListener(e,"mouseover",()=>{h.showToolTip(e.textContent,e,S),this._openTooltipNodes.push(e)},!0)),this._eventHandlers.push(u.setEventListener(e,"mouseout",()=>{h.hideTooltip(e);var t=this._openTooltipNodes.indexOf(e);this._openTooltipNodes.splice(t,1)},!0))},startup:function(){this.inherited(arguments),this.repositionWidget()},destroy:function(){for(this._eventHandlers.forEach((function(e){e.remove()})),this._eventHandlers=null,this._openTooltipNodes.forEach(function(e){h.hideTooltip(e)}.bind(this)),this._openTooltipNodes=[];this._signatureContainer.firstChild;){var e=this._signatureContainer.firstChild;this._signatureContainer.removeChild(e);var t=e.widget;t&&t.destroy()}document.body.removeEventListener("click",this._handleDocumentBodyClick,!0),this.domNode.removeEventListener("change",this._handleChange.bind(this)),this.domNode.removeEventListener("select",this._handleSelect.bind(this)),this.domNode.removeEventListener("click",this._handleClick.bind(this)),this.domNode.removeEventListener("mouseover",this._handleMouseOver.bind(this)),this.domNode.removeEventListener("mouseout",this._handleMouseOut.bind(this)),this.inherited(arguments)}});return w.BASE_CLASS=p,w.SIGNATURE_CONTAINER_CLASS="mwFunctionAssistant__signatureContainer",w.CURRENT_SIGNATURE_INDEX_CLASS="mwFunctionAssistant__signatureContainer__dropDownContainer__currentSignatureIndex",w.HELP_AVAILABLE_CLASS="mwFunctionAssistant--helpAvailable",w.SIGNATURE_COMPLETION_CLASS="mwFunctionAssistant__signatureCompletion",w.COMPLETION_CLASS="mwCompletion",w.CHOICE_CLASS=f,w.SELECTED_CHOICE_CLASS="mwCompletion__choiceContainer__choice--selected",w.SHOW_SIGNATURE_CLASS=g,w.ARGUMENT_CONTAINER_CLASS="mwFunctionAssistant__signatureContainer__argumentContainer",w.ARGUMENT_CLASS=m,w.PRESENT_ARGUMENT_CLASS=_,w.CURRENT_ARGUMENT_CLASS=v,w.WIDGET_CONTAINER_CLASS=b,w.HAS_WIDGET_CLASS=y,w.WIDGETS_HIDDEN_CLASS="mwFunctionAssistant--widgetsHidden",w.MOVE_INTO_VIEW_CLASS_LEFT=C,w.MOVE_INTO_VIEW_CLASS_RIGHT=T,w.SIGNATURE_COMPLETION_ARGUMENT_CLASS="mwFunctionAssistant__signatureCompletion__mwCompletion__choice__argument",w.NO_SIGNATURE_COMPLETIONS_CLASS="mwFunctionAssistant--noSignatureCompletions",w.ARGUMENT_HEADER_CLASS=E,w.HELP_BUTTON_CLASS=p+"__signatureContainer__helpContainer",w.DROPDOWN_BUTTON_CLASS=p+"__signatureContainer__dropDownContainer",w.REQUIRED_ARGUMENT_CLASS=m+"--required",w.OPTIONAL_ARGUMENT_CLASS=m+"--optional",w}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1411),i(312)],o=i.dj.d(n,(function(e,t){var i="mwFunctionAssistant__signatureContainer__argumentContainer__argument",n=i+"--current";return{sortPromotedSignatures:function(e){var t=[],i=[],n=JSON.parse(JSON.stringify(e));return n.signatures.forEach((function(e){"primary"===e.promotion||"suggested"===e.promotion?t.push(e):i.push(e)})),n.signatures=t.concat(i),n},argumentCompletionHasValue:function(e,t,i,n){var o=e.signatures[t].inputArguments[i];if(o&&o.widgetData&&o.widgetData.choices&&0!==o.widgetData.choices.length)for(var r=o.widgetData.choices,a=0;a<r.length;a++){if(r[a].displayString){var s=r[a].displayString;n.lastIndexOf("\\")>=0&&n.lastIndexOf("\\")<n.length?n=n.substring(n.lastIndexOf("\\")+1):n.lastIndexOf("/")>=0&&n.lastIndexOf("/")<n.length&&(n=n.substring(n.lastIndexOf("/")+1))}else s=r[a].completion;if(s=s.toLowerCase().replace(/['"]/g,""),n=n.toLowerCase().replace(/['"]/g,""),0===s.indexOf(n))return!0}return!1},checkForCallingSyntax:function(e,t,i){return i.signatures[t].callingSyntax===e},checkBracketType:function(e,t){var i="(";return this.checkForCallingSyntax("command",e,t)?i=" ":this.checkForCallingSyntax("cell",e,t)&&(i="{"),i},filterArgsForObjectOrCellSyntax:function(e){e.signatures.forEach((function(t,i){var n=t.inputArguments;(this.checkForCallingSyntax("object",i,e)||this.checkForCallingSyntax("cell",i,e))&&Array.prototype.splice.call(n,0,1)}),this)},prepareCommaClassModifiers:function(e){var t=[];return-1!==e.indexOf("optional")&&(t.push("optional"),(-1!==e.indexOf("present")||-1!==e.indexOf("future"))&&t.push("present")),t},prepareClassModifiers:function(e){var t=[];return"presenting"===e.status&&t.push("present"),e.bounds||t.push("future"),e.kind&&(t.push(e.kind),"required"!==e.kind&&"value"!==e.kind&&t.push("optional")),t},findArgument:function(e){var t=null;return e.target.parentNode.classList.contains(i)?t=e.target.parentNode:e.target.classList.contains(i)&&(t=e.target),t},isSameArgumentArray:function(e,t){var i=e.map((function(e){return e.name})).sort(),n=t.map((function(e){return e.name})).sort();return i.join(",")===n.join(",")},findCurrentArgumentIndex:function(e){var t=e.querySelector("."+n);return Array.prototype.slice.call(e.querySelectorAll("."+i)).indexOf(t)},indexOfSignature:function(e,t){var i=t.signatures;return this._getSignatureIndexForCondition(i,function(t){return this.isSameArgumentArray(e,i[t].inputArguments)}.bind(this))},findHeaderText:function(e){var t="";return e.purpose?t=e.purpose:"name"===e.kind?t="name-value pairs":"value"===e.kind&&(t=e.name+" value"),t},firstSignatureWithArguments:function(e){var t=e.signatures,i=this._getSignatureIndexForCondition(t,function(e){return 0!==t[e].inputArguments.length}.bind(this));return-1===i?0:i},signatureWithSuggestedPriority:function(e){var t=e.signatures;return this._getSignatureIndexForCondition(t,function(e){return"suggested"===t[e].promotion}.bind(this))},_getSignatureIndexForCondition:function(e,t){for(var i=-1,n=0;n<e.length;n++)if(t(n)){i=n;break}return i},getNumberOfChoices:function(e){var t=0,i=e.querySelector("."+n);return i&&(t=i.querySelectorAll(".mwCompletion__choiceContainer__choice").length),t},getCurrentArgumentNode:function(e){return e.querySelector("."+n)},findNavigationTooltipText:function(t,i){var n;switch(i){case"first":n=t?e.nextArgument+" (⌃⎇→)":e.nextArgument+" (Ctrl + Alt + Right)";break;case"middle":n=t?e.nextArgument+" (⌃⎇→).\n"+e.previousArgument+" (⌃⎇←)":e.nextArgument+" (Ctrl + Alt + Right).\n"+e.previousArgument+" (Ctrl + Alt + Left)";break;case"last":n=t?e.previousArgument+" (⌃⎇←)":e.previousArgument+" (Ctrl + Alt + Left)"}return n},findTotalXOffsetOfChild:function(e,t){var i=e.left,n=e.right,o=t.left,r=t.right,a=0;return o<i&&(a+=i-o),r>n&&(a+=r-n),a},showToolTip:function(e,i,n){i.clientWidth<i.scrollWidth&&t.show("<span>"+e+"</span>",i,n)},hideTooltip:function(e){t.hide(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4101)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.matlabfiletype"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(805)],o=i.dj.d(n,(function(e,t){const i={"-1":"Unset",0:"ScriptFile",1:"FunctionFile",2:"ClassDefinitionFile",3:"Unknown"};return e(t,{constructor:function(e){this._fileType=e},logAutocompletionDone:function(e,t,i){this._logData("autocompletion_finished",...arguments)},_logData:function(e,t,i,n){var o={actionId:e,gesture:"other"};Object.assign(o,this._constructMetadata(t,i,n)),this.onLogEvent(o)},_constructMetadata:function(e,t,n){const o=i[this._fileType.getFileType().toString()];return{metadata1:t.toString(),metadata2:n,metadata3:o}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4103)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.cursor","rtc.cursorcontroller","rtc.position.controller","rtc.autocompletions.contextmanager","rtc.autocompletions.ddux.contributor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(266),i(333),i(249)],o=i.dj.d(n,(function(e,t,i,n,o,r){const a=/^[A-Za-z0-9_'"]+$/,s=/^(('|").*)$/,l=/^('.*')|(".*")$/,c={choice:{matchType:"unknown"},index:-1};return e(i,{constructor:function(e,i,n,o,r,a,s){this._document=e,this._internalDocument=i,this._cursor=n,this._cursorController=o,this._positionController=r,this._contextManager=a,this._autoCompletionDDUXContributor=s,this._currentSession=null,this._currentSessionBounds=null,this._lastManualCompletion=null,this.own(t.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0)),this.own(t.after(this._cursor,"onChange",this._handleCursorChanged.bind(this))),this.own(t.before(this._document,"insertTextAtCurrentPosition",this._handleInsertText.bind(this),!0)),this.own(t.before(this._document,"insertContent",this._handlePaste.bind(this))),this.own(t.before(this._document,"insertBreak",this._handleInsertBreak.bind(this)))},_handleCursorChanged:function(){(this._cursor.isCursorReadOnly()||this._cursorController.hasMultiplePendingCursors()||this._currentSession&&!this._isCursorWithinBounds())&&this._handleEndOfSession()},_isCursorWithinBounds:function(){var e=this._cursor.getPosition();return this._isPositionWithinBounds(e)},_handleDocumentChanged:function(e){this._currentSession&&(e&&0!==e.length&&(e[0].isUndoRedo?this._handleEndOfSession(!1):e.every((function(e){return e.type===r.INSERT_TEXT||e.type===r.DELETION_EVENT}))||this._handleEndOfSession(!1)))},_handleInsertBreak:function(){if(this._currentSession){var e=this._currentSessionBounds.getEndPosition().column===this._cursor.getPosition().column;this._handleEndOfSession(e)}},_handleInsertText:function(e){if(!this._currentSession)return;const t=o.getTextForRange(this._currentSessionBounds,!0);var i=l.test(t),n=s.test(t),r=this._currentSessionBounds.getEndPosition().column===this._cursor.getPosition().column;(this._currentSessionBounds.getStartPosition().column===this._cursor.getPosition().column||i&&r||!n)&&(a.test(e)||this._handleEndOfSession())},_handlePaste:function(){this._handleEndOfSession(!1)},notifyRequest:function(){const e=this._contextManager.getContext();if(!e)return;const t=e.currentBounds;t&&this._handleStartOfSession(t)},_handleStartOfSession:function(e){const t=this._positionController.createPositionAtLineColumn(e.startLine-1,e.left-1,!0),i=this._positionController.createPositionAtLineColumn(e.startLine-1,e.right-1,!0),o=new n(t,i);if(this._currentSession&&!o.isEqualTo(this._currentSessionBounds)&&this._handleEndOfSession(!1),!this._currentSession&&!this._currentSession){this._currentSession={},this._currentSessionBounds=o;let e=null;const t=this._contextManager.getContext().metaData,i=t.getPresentingArgument();if(i&&i.widgetData?e=i.widgetData.choices:t.getData()&&t.getData().shared&&t.getData().shared.widgetData&&(e=t.getData().shared.widgetData.choices),!e)return void this._handleEndOfSession(!1);this._currentSession.initialChoices=e}},notifyEnd:function(){this._handleEndOfSession()},notifyAutocompletionCompleted:function(e){this._handleEndOfSession(!0,e),this._lastManualCompletion=e},_handleEndOfSession:function(e=!0,t=null){if(this._currentSession){var i=t;i||(i=o.getTextForRange(this._currentSessionBounds,!0).trim()),""===i&&(e=!1),e&&this._logCompletionIfAppropriate(i),this._currentSession=null,this._currentSessionBounds.destroy(),this._currentSessionBounds=null,this._lastManualCompletion=null}},_logCompletionIfAppropriate:function(e){if(!this._currentSession)return;if(this._lastManualCompletion===e)return;var t=this._currentSession.initialChoices;const i=this._findPositionOfChoice(e,t),{choice:n,index:o}=i||c;this._logData(e,o,n.matchType)},_logData:function(e,t,i){this._autoCompletionDDUXContributor.logAutocompletionDone(e,t,i)},_findPositionOfChoice:function(e,t){let i=null;return t&&t.some((function(t,n){if(t.completion===e)return i={choice:t,index:n},!0})),i},_isPositionWithinBounds:function(e){const t=this._currentSessionBounds;if(!e||!t)return!1;if(e.line!==t.getStartPosition().line&&e.line!==t.getEndPosition().line)return!1;const i=e.column;return!(i<=t.getStartPosition().offset||i>t.getEndPosition().offset)},destroy:function(){this.inherited(arguments),this._handleEndOfSession(!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4105)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.document","rtc.autocompletions.eventbus","rtc.autocompletions.contextmanager","rtc.autocompletions.requesthandler","rtc.autocompletions.customizers","rtc.autocompletions.ddux.controller"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(671),i(4106)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e,t,n,r,a,s,l){this._cursor=e.getCursors()[0],this._document=t,this._contextManager=r,this._requestHandler=a,this._completionCustomizers=o.getCompletionCustomizers(s),this._dduxController=l,this.own(i.after(n,"onCompleteText",this.completeTextAndAdditionalChars.bind(this),!0)),this.own(i.after(n,"onSelectBounds",this._selectBoundsRequest.bind(this),!0))},completeTextAndAdditionalChars:function(e){if(!this._requestHandler.hasPendingRequest()){var t=this._contextManager.getContext();if(t&&!this._contextManager.isContextCompleted()){this._dduxController.notifyAutocompletionCompleted(e),this._contextManager.setContextToCompleted();var i=t.currentBounds,r=t.position.getLineColumn().line,a=!1,s=t.metaData,l="",c=s.getPresentingSignature();if(c){var d=t.widget.getCurrentArgumentData();l=o.additionalCharToInsert(d,c.callingSyntax,e)}var u=this._getReplacementBounds(i,r);l&&this._shouldAppendChar(l,r,u)&&(e+=l,a=!0),u=o.updateBoundsForFolderAndMessageId(s,u,e),this._completeOrReplaceText(e,s,u,r),a||s.isFolderOrMessageId(e)||(t.widget.set("showWidgets",!1),this._requestHandler.request(n.COMPLETE))}}},_shouldAppendChar:function(e,t,i){var n=this._document.getLineText(t).substr(i.right-1);return","===e&&!/^\s*,/.test(n)||"="===e&&!/^\s*=/.test(n)},completeText:function(e){var t=this._contextManager.getContext(),i=t.currentBounds,n=t.position.getLineColumn().line,o=this._getReplacementBounds(i,n),r=t.metaData;this._completeOrReplaceText(e,r,o,n)},_completeOrReplaceText:function(e,t,i,n){var o=this._getCompletionCustomizerAndChoiceMetadata(t,e);o?(o.choiceMetadata&&(o.choiceMetadata.metadataCode=t.getCode()),o.customizer.complete(e,n,i,o.choiceMetadata)):(this._document.replaceText(e,n,i.left,n,i.right),this._cursor.onUpdate())},_getReplacementBounds:function(e,t){var i={left:e.left,right:e.right};if(this._cursor.hasSelection()){var n=this._cursor.getSelectionLineColumn();if(n.start.line!==n.end.line)return i;var o=n.start.column,r=n.end.column;o<r?(i.left=o,i.right=r):(i.left=r,i.right=o);var a=this._document.getTextCharacters(t-1,i.right-1,1);"'"!==a&&'"'!==a||(i.left--,i.right++)}return i},_getCompletionCustomizerAndChoiceMetadata:function(e,t){var i,n=e.getPresentingArgument(),r=o.getMatchingChoice(n,t);return r?(this._completionCustomizers.some((function(e){e.isChoiceApplicable(r)&&(i=e)})),i?{customizer:i,choiceMetadata:r}:null):null},_selectBoundsRequest:function(e){var t=this._contextManager.getContext();if(t&&this._selectBounds(e,t)){var i=e.endLine,o=e.right;this._requestHandler.request(n.ACTIVE_REQUEST,{line:i,column:o})}},_selectBounds:function(e,t){var i=t.metaData.getPresentingArgument();if(i){if(!i.widgetData)return!1;var n=i.widgetData.choices;if(0===n.length)return!1;if("literal"!==n[0].matchType)return!1}var o=t.position.getLineColumn().column,r=e.left,a=e.right,s=e.startLine,l=e.endLine,c={start:{line:s,column:r},end:{line:l,column:a}},d=this._cursor.hasSelection()&&this._cursor.getSelectionLineColumn();return(!d||JSON.stringify(d)!==JSON.stringify(c)&&(e.startLine!==d.start.line||e.left!==d.start.column&&e.left!==d.end.column))&&((r!==o||r!==a)&&(this._cursor.setSelectionLineColumn(s,r,l,a),!0))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(814),i(584)],o=i.dj.d(n,(function(e,t){return{_NAMEVALUE_PAIR_SEPERATOR_COMMA:",",_NAMEVALUE_PAIR_SEPARATOR_EQUALS:"=",_NAMEVALUE_PAIR_SEPERATOR_COMMAND_SYNTAX:" ",_METADATA_SINGLE_QUOTES:"'",_METADATA_DOUBLE_QUOTES:'"',_METADATA_CALLING_SYNTAX_COMMAND:"command",_METADATA_ARGUMENT_KIND_NAME:"name",updateBoundsForFolderAndMessageId:function(e,t,i){var n=e.getPresentingSignature();if(n&&n.callingSyntax===this._METADATA_CALLING_SYNTAX_COMMAND)return t;var o=e.getFunctionPresentingArgument();if(!o)return t;var r=o.value,a=r.length;if(r&&a<=1)return t;var s=r.charAt(a-1);if("'"!==s&&'"'!==s)return t;var l=this.getMatchingChoice(o,i);return l?this._getBoundsForMatchingChoice(l,t):t},getMatchingChoice:function(e,t){if(!e.widgetData)return null;var i=e.widgetData.choices;if(!i)return null;for(var n=0;n<i.length;n++){var o=i[n];if(o.completion===t)return o}return null},_getBoundsForMatchingChoice:function(e,t){var i=e.matchType;if("folder"!==i&&"messageId"!==i)return t;var n=e.completion,o=n.length;if(o<=1)return t;var r=n.charAt(0),a=n.charAt(o-1);return("'"===r&&"'"!==a||'"'===r&&'"'!==a)&&t.right--,t},additionalCharToInsert:function(e,t,i){if(e.kind===this._METADATA_ARGUMENT_KIND_NAME){if(t===this._METADATA_CALLING_SYNTAX_COMMAND)return this._NAMEVALUE_PAIR_SEPERATOR_COMMAND_SYNTAX;if(!e.widgetData||!e.widgetData.choices)return"";if(!e.widgetData.choices.some(function(e){if(e.completion===i)return!0}.bind()))return"";var n=e.widgetData.choices[0].completion.charAt(0);return n===this._METADATA_SINGLE_QUOTES||n===this._METADATA_DOUBLE_QUOTES?this._NAMEVALUE_PAIR_SEPERATOR_COMMA:this._NAMEVALUE_PAIR_SEPARATOR_EQUALS}return""},getCompletionCustomizers:function(i){return t.getCustomizersOfWidgetType(i,e.COMPLETION)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4108)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.document","rtc.internaldocument","rtc.actionservice","rtc.autocompletions.contextmanager","rtc.autocompletions.requesthandler","rtc.autocompletions.view","rtc.autocompletions.texthandler","rtc.keyhandler.keyboardshortcutsmodel","rtc.autocompletions.shadowtextview"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d){return new i(e,t,n,o,r,a,s,l,c,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(207),i(208),i(615),i(234),i(379),i(671),i(1112),i(727),i(584)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(n,{_CODINGUI_TAB_ACTION_ID:"codingui_tab",_TAB_KEY_BINDING:"tab",constructor:function(e,n,r,a,s,l,c,d,u,h){this._cursorController=e,this._cursor=e.getCursors()[0],this._document=n,this._internalDocument=r,this._actionService=a,this._contextManager=s,this._requestHandler=l,this._uiView=c,this._textHandler=d,this._keyboardShortcutsModel=u,this._shadowTextView=h,this._actions=[{id:this._CODINGUI_TAB_ACTION_ID,enabled:!0,key:"tab",callback:t.hitch(this,"_handleTabKey",{keyCode:i.TAB})}],this._actionService.loadActions(this._actions),this.own(o.after(s,"onContextUpdated",this._handleOnContextUpdated.bind(this),!0)),this.own(o.after(l,"onRequest",this._handleRequest.bind(this))),this.own(o.after(this._cursor,"onChange",this._handleCursorChange.bind(this))),this._isTabKeyQueued=!1,this._isTabRequestQueued=!1,this._subsequentTabKeyQueuedCounter=0,this._lastCursorForDefaultTab=null,this._cacheNextCursorChange=!1},_handleRequest:function(){this._isTabRequestQueued=!1},_handleTabKey:function(e){if(this._contextManager.setContextTabMode(!1),d.hasMultipleCursorsOrReadOnlyCursor(this._cursorController)||s.isMultiLineSelection(this._cursor))return!1;var t=this._cursor.getLineColumn(),i=t.line,n=t.column;if(!a.isCodeLine(this._internalDocument,i-1))return!1;let o=this._contextManager.getContext();if(this._shouldNotSendRequest(o,i,n))return!1;if(this._lastCursorForDefaultTab&&i===this._lastCursorForDefaultTab.line&&n===this._lastCursorForDefaultTab.column)return this._cacheNextCursorChange=!0,!1;if(!this._uiView.isShadowTextViewDisplayed()&&this._uiView.isTopViewDisplayed()){var r=u.getSelectedCompletion(o.widget);if(this._shadowTextView.show(r))return!0}return this._requestHandler.hasPendingRequest()?(this._isTabKeyQueued&&this._subsequentTabKeyQueuedCounter++,this._isTabKeyQueued=!0,!0):o&&o.widget?!d.isSelectionOutsideCurrentArg(this._cursor,o)&&(!this._cannotHandleTabKey(o)&&(!!this._tabKeyHandled(o)||this._uiView.sendEventToTopView(e))):(this._requestHandler.request(l.ACTIVE_REQUEST,null,{manual:!0}),this._isTabRequestQueued=!0,!0)},_shouldNotSendRequest:function(e,t,i){var n=this._internalDocument.getLineNode(t-1).getText(),o=n.substring(i-2,i-1),r=n.substring(i-1,i);return" "===o&&"="===r||(" "===r&&"="===o||!(""!==n.substring(0,i-1).trim()||e&&e.metaData.hasSignatures()))},_cannotHandleTabKey:function(e){var t=this._uiView.isTopViewDisplayed(!0);if(!t&&this._contextManager.isContextInNonTabMode())return!0;var i=e.widget;if(t&&""===i.get("value")){var n=i.get("valueOfFirstChoice");if(!n||e.code===n||this._getCurrentBoundsText(e)===n)return!0}return!1},_getCurrentBoundsText:function(e){var t=e.currentBounds;return this._internalDocument.getLineNode(t.startLine-1).getText().substring(t.left-1,t.right-1)},_tabKeyHandled:function(e){var t=e.widget;if(e.metaData.hasSignatures()||1!==u.getNumberOfChoices(t))return!1;var i=this._uiView.isTopViewDisplayed(),n=u.isChoiceSameAsTypedCode(e),o=this._cursor.getLineColumn().column===e.currentBounds.right;return!(i||n||!o||""===e.code)&&(this._textHandler.completeText(u.getSelectedCompletion(t)),!0)},_handleOnContextUpdated:function(e){(e===c.CONTEXT_RESET||e===c.CONTEXT_SWITCHED)&&this._fulfilQueuedAction()},_fulfilQueuedAction:function(){if(this._isTabKeyQueued){this._isTabKeyQueued=!1,this._handleTabKey({keyCode:i.TAB})||this._doDefaultTab();for(var e=0;e<this._subsequentTabKeyQueuedCounter;e++)this._doDefaultTab();this._subsequentTabKeyQueuedCounter=0}else this._isTabRequestQueued&&(this._isTabRequestQueued=!1,this._uiView.isTopViewDisplayed()||(this._doDefaultTab(),this._lastCursorForDefaultTab=this._cursor.getLineColumn()))},_doDefaultTab:function(){this._actionService.disableAction(this._CODINGUI_TAB_ACTION_ID);const e=this._keyboardShortcutsModel.getEnabledActionsForKeyBinding(this._TAB_KEY_BINDING);r.executeActions(e),this._actionService.enableAction(this._CODINGUI_TAB_ACTION_ID)},_handleCursorChange:function(){this._lastCursorForDefaultTab=null,this._cacheNextCursorChange&&(this._lastCursorForDefaultTab=this._cursor.getLineColumn(),this._cacheNextCursorChange=!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4110)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.internaldocument"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(4111),i(1112),i(4112),i(815)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(i,{constructor:function(e,i){this._cursor=e.getCursors()[0],this.own(t.after(this._cursor,"onChange",this._handleCursorChanged.bind(this))),this.own(t.before(i,"onDocumentReset",this.reset.bind(this))),this._context=null,this._contextDataStack=[]},createContextAndSetup:function(e){this._cleanupOldContext();var t=new n(e);this._updateContextAndStack(t),this._setContext(t);var i=this._contextDataStack.length;this._shouldCacheWidget&&i>0&&(this._contextDataStack[i-1].widget=t.widget,this._shouldCacheWidget=!1)},_cleanupOldContext:function(){this._context&&(this._context.position.destroy(),this._context.range.destroy(),this._context=null)},_setContext:function(e){this._context=e,this.onContextUpdated(o.CONTEXT_SWITCHED)},_updateContextAndStack:function(e){var t=r.getPresentingSignature(e);if(t){var i;for(i=this._contextDataStack.length-1;i>=0;i--){var n=this._contextDataStack[i];if(r.isNewContextSameAsOldContext(e,t,n)){e.widget=n.widget;break}}if(-1===i)this._addContextDataToStack(e,t);else for(var o=this._contextDataStack.length-1;o>i;o--)this._contextDataStack.pop()}},_addContextDataToStack:function(e,t){var i=e.widget,n={functionName:t.functionName,leftBounds:e.leftMostBounds.left,widget:i};this._contextDataStack.push(n),i||(this._shouldCacheWidget=!0)},isWidgetHeld:function(e){return this._contextDataStack.some((function(t){return e===t.widget}))},getContext:function(){return this._context},reset:function(){this._clearStack(),this._cleanupOldContext(),this.onContextUpdated(o.CONTEXT_RESET)},setContextToCompleted:function(){this._context.setCompleted()},isContextCompleted:function(){return this._context.isCompleted()},setContextTabMode:function(e){this._context&&this._context.setTabMode(e)},isContextInTabMode:function(){return!!this._context&&this._context.isInTabMode()},setContextNonTabMode:function(e){this._context&&this._context.setNonTabMode(e)},isContextInNonTabMode:function(){return!!this._context&&this._context.isInNonTabMode()},setContextDoNotShowShadowTextView:function(e){this._context&&this._context.setDoNotShowShadowTextView(e)},isContextDoNotShowShadowTextView:function(){return!!this._context&&this._context.isDoNotShowShadowTextView()},onContextUpdated:function(e){},_handleCursorChanged:function(){if(this.getContext()){var e=a.checkLeavingContext(this._context,this._cursor.position);e&&(e===o.LEAVING_RANGE?this._clearLastElementInStack():e===o.SILENT_RESET&&this._clearStack(),e&&(this._cleanupOldContext(),this.onContextUpdated(e)))}},_clearLastElementInStack:function(){var e=this._contextDataStack[this._contextDataStack.length-1];e&&e.widget&&e.widget.domNode&&(e.widget.destroy(),e.widget=null,this._contextDataStack.pop())},_clearStack:function(){this._contextDataStack.forEach((function(e){e.widget&&e.widget.domNode&&(e.widget.destroy(),e.widget=null)})),this._contextDataStack=[]},destroy:function(){this.inherited(arguments),this._clearStack(),this._cleanupOldContext()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(229),i(203)],o=i.dj.d(n,(function(e,t){return t(null,{constructor:function(t){this.uid=e.generateUuid(),this.position=t.position,this.range=t.range,this.activity=t.activity,this.widget=t.widget,this.metaData=t.metaData,this.completed=!1,this.isWidgetReUsed=t.isWidgetReUsed,this.tabMode=t.tabMode||!1,this.nonTabMode=t.nonTabMode||!1,this.isStale=!1,this.doNotShowView=t.doNotShowView,this.code=this.metaData.getCode(),this.leftMostBounds=this.metaData.getLeftMostBounds(this.position),this.currentBounds=this.metaData.getCurrentBounds(this.position),this.doNotShowShadowTextView=t.doNotShowShadowTextView,this.manual=t.manual||!1},setCompleted:function(){this.completed=!0},isCompleted:function(){return this.completed},setTabMode:function(e){this.tabMode=e},isInTabMode:function(){return this.tabMode},setNonTabMode:function(e){this.nonTabMode=e},isInNonTabMode:function(){return this.nonTabMode},setDoNotShowShadowTextView:function(e){this.doNotShowShadowTextView=e},isDoNotShowShadowTextView:function(){return this.doNotShowShadowTextView}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getPresentingSignature:function(e){var t=e.metaData;return t?t.getPresentingSignature():null},isNewContextSameAsOldContext:function(e,t,i){return!!i&&(t.functionName===i.functionName&&e.leftMostBounds.left===i.leftBounds)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4114)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.autocompletions.view","rtc.autocompletions.contextmanager","rtc.focusservice","rtc.autocompletions.requesthandler"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,n,o){this._uiView=e,this._contextManager=t,this._requestHandler=o,this.own(i.after(n,"onBlur",this._handleBlur.bind(this)))},_handleBlur:function(){this._closeView(),this._contextManager.reset(),this._requestHandler.reset()},_closeView:function(){return this._uiView.close()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4116)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.autocompletions.eventbus","rtc.autocompletions.contextmanager","rtc.view","rtc.helpservice","rtc.cursorcontroller"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,n,o,r){this._contextManager=t,this._rtcView=n,this._helpService=o,this._cursor=r.getCursors()[0],this.own(i.after(e,"onRequestHelp",this._requestHelp.bind(this)))},_requestHelp:function(){var e=this._contextManager.getContext();if(e){var t=e.widget.domNode.getBoundingClientRect(),i=this._constructHelpTopic(e.metaData);if(i){var n=this._rtcView.getCoordinateForPosition(this._cursor.position),o={currentLineCode:this._cursor.getNode().rootContainer().getText(),caretX:t.left+t.width+100,caretY:t.top,lineHeight:n.height,endCaretPosition:this._cursor.getPosition().column};this._helpService.showInHelpBrowser(i,o)}}},_constructHelpTopic:function(e){var t=e.getFunctionName(),i=e.getClassName();return i?t===i||i.endsWith("."+t)?i:i+"."+t:t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4118)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.autocompletions.view","rtc.autocompletions.requesthandler","rtc.autocompletions.contextmanager","rtc.eventhandler","rtc.document","rtc.cursorcontroller","rtc.viewready","rtc.focusservice","rtc.autcompletions.ddux.controller"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(249),i(237),i(671),i(727)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(i,{_OPENING_PAREN:"(",_CLOSING_PAREN:")",constructor:function(e,i,n,o,r,a,s,l,c){this._internalDocument=e,this._cursor=s.getCursors()[0],this._eventHandler=r,this._document=a,this._cursorController=s,this._focusService=c,this._uiView=i,this._requestHandler=n,this._contextManager=o,this.own(t.after(l,"onViewReady",this._initialize.bind(this))),this._initialized=!1,this._prefAutomatic=!0},_initialize:function(){this._initialized||(this._setListeners(),this._initialized=!0)},setMode:function(e){this._prefAutomatic=e},_setListeners:function(){this.own(t.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0)),this.own(t.after(this._cursor,"onChange",this._handleCursorChanged.bind(this))),this.own(t.after(this._cursor,"movePosition",this._checkAndEmitSelectionEvent.bind(this))),this.own(t.after(this._eventHandler,"onMouseUp",this._checkAndEmitSelectionEvent.bind(this))),this.own(t.after(this._document,"deleteTextAtCurrentPosition",this._handleDeleteText.bind(this))),this.own(t.after(this._document,"insertTextAtCurrentPosition",this._handleInsertText.bind(this),!0)),this.own(t.after(this._focusService,"onFocus",this._handleFocus.bind(this)))},_isSilentViewUpdate:function(){var e=this._contextManager&&this._contextManager.isContextInTabMode();return!this._prefAutomatic&&!this._uiView.isTopViewDisplayed()||e},_updateViewForDocChange:function(){this._contextManager.setContextNonTabMode(!1);var e=this._isSilentViewUpdate()?r.SILENT_UPDATE:r.INSERT_DELETE_TEXT;this._requestHandler.request(e)},_handleDocumentChanged:function(e){if(!this._isCursorReadOnly()&&!this._cursorController.hasMultipleCursors()&&e&&e.length>0){var t=e[e.length-1];if(t.isUndoRedo)return void this._uiView.close();switch(t.type){case n.INSERT_BREAK_EVENT:this._cursor.getLineColumn().line-1===t.endLine&&this._updateViewForDocChange();break;case n.FORMAT_CHANGE_EVENT:this._contextManager.reset(),this._requestHandler.request(r.SILENT_UPDATE)}}},_handleInsertText:function(e){if(!this._isCursorReadOnly()&&!this._cursorController.hasMultiplePendingCursors()){var t=this._contextManager.getContext();t&&t.isInNonTabMode()&&""===e.trim()||this._updateViewForDocChange()}},_handleDeleteText:function(){this._isCursorReadOnly()||this._cursorController.hasMultiplePendingCursors()||this._updateViewForDocChange()},_handleCursorChanged:function(){if(this._cursorController.hasMultipleCursors())this._uiView.close();else if(this._cursorController.hasSelection()&&this._uiView.closeShadowTextView(),!this._isCursorReadOnly()){this._sendRequestForCursorBetweenParens();var e=this._cursor.position.getLineColumn(),t=this._requestHandler.getLastRequestPosition();a.isSamePositionAsLast(e,t)||(this._uiView.isTopViewDisplayed()||this._requestHandler.hasPendingRequest()?this._requestHandler.request(r.SILENT_UPDATE):this._requestHandler.hasPendingRequest()||this._contextManager.isContextInTabMode()||this._contextManager.isContextInNonTabMode()||this._contextManager.reset())}},_handleFocus:function(){this._sendRequestForCursorBetweenParens()},_sendRequestForCursorBetweenParens:function(){this._prefAutomatic&&this._isCursorBetweenParens()&&this._requestHandler.request(r.ACTIVE_REQUEST,null,{doNotShowShadowTextView:!0})},_isCursorBetweenParens:function(){var e=this._cursor.position.getLineColumn(),t=this._internalDocument.getLineNode(e.line-1).getText();return!this._cursor.hasSelection()&&t.charAt(e.column-2)===this._OPENING_PAREN&&t.charAt(e.column-1)===this._CLOSING_PAREN},_checkAndEmitSelectionEvent:function(){if(this._cursorController.hasMultipleCursors())this._uiView.close();else if(this._prefAutomatic&&!this._isCursorReadOnly()){var e=this._cursor.getSelection();if(e){var t=e.getStartPosition().getLineColumn(),i=e.getEndPosition().getLineColumn();if(t.line===i.line){var n=o.getWordAtPosition(this._internalDocument,this._cursor.position);(!n||n.startLineCol.column+1===t.column&&n.endLineCol.column+1===i.column)&&this._requestHandler.request(r.CURSOR_SELECTION)}}}},_isCursorReadOnly:function(){return this._cursor.isCursorReadOnly()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4120)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.document","rtc.internaldocument","rtc.autocompletions.contextmanager","rtc.code.codingui.backendservice.pubsub","rtc.autocompletions.view","rtc.linenumberservice","rtc.autocompletions.requestmodifier","rtc.autocompletions.ddux.controller"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(229),i(207),i(234),i(266),i(671),i(4121),i(815),i(727)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(n,{_TIMER:150,constructor:function(e,t,i,n,o,r,a,s,l){this._cursor=e.getCursors()[0],this._document=t,this._internalDocument=i,this._contextManager=n,this._serviceProvider=o,this._uiView=r,this._lineNumberService=a,this._requestModifier=s,this._dduxController=l,this._lastRequestPosition={},this._lastClientPacket={},this._requestTimeout=null,this._isBusy=!1,this._requestMadeForCurrentPosition=!1,this._usingCursorPosition=!1},reset:function(){this._lastRequestPosition={}},request:function(e,i,n){if(this.onRequest(),this._doPreRequest(),this._clearTimeout(),this._usingCursorPosition=!i,i=i||this._cursor.getLineColumn(),this._setLastRequestPosition(i),this._isInvalidPosition(i)||this._requestModifier.shouldPreventRequest())return this._uiView.close(),void(this._isBusy=!1);this._isBusy=!0,this._requestTimeout=window.setTimeout(t.hitch(this,"_requestAutoCompletion",e,i,n),this._TIMER)},onRequest:function(){},_doPreRequest:function(){var e=this._contextManager.getContext();e&&(e.doNotShowView=!1)},_clearTimeout:function(){this._requestTimeout&&(window.clearTimeout(this._requestTimeout),this._requestTimeout=null)},cancelPendingRequest:function(){this._clearTimeout(),this._isBusy=!1},hasPendingRequest:function(){return this._isBusy},_setLastRequestPosition:function(e){this._lastRequestPosition={id:i.generateUuid(),line:e.line,column:e.column}},getLastRequestPosition:function(){return this._lastRequestPosition},_requestAutoCompletion:function(e,i,n){if(this._requestTimeout=null,!this._newRequestCameIn(i)){if(this._usingCursorPosition&&this._cursorHasMoved(i))return this._uiView.close(),void(this._isBusy=!1);this._lastClientPacket={activity:e,requestId:this._lastRequestPosition.id,position:i,documentState:this._internalDocument.getState(),requestPacket:n};var o=t.hitch(this,"_handleResponse",this._lastClientPacket),r=this._contextManager.getContext();r&&(r.isStale=!0),this._serviceProvider.requestMetaData(o,i)}},_newRequestCameIn:function(e){return e.line!==this._lastRequestPosition.line||e.column!==this._lastRequestPosition.column},_cursorHasMoved:function(e){var t=this._cursor.getLineColumn();return t.line!==e.line||t.column!==e.column},_handleResponse:function(e,t){if(this._isBusy=!1,e.requestId===this._lastRequestPosition.id&&e.documentState===this._internalDocument.getState()){var i=new s(t);if(i.hasSuggestion())if(this._requestMadeForCurrentPosition||this._isSilentUpdate(e.activity)||!this._continuousRequest(e,i)){this._requestMadeForCurrentPosition=!1;var n,o=this._contextManager.getContext(),r=!1,a=this._document.createPositionAtLineColumn(e.position.line-1,e.position.column-1),c=l.isInSameContext(i,o,a);c&&(n=this._contextManager.getContext().widget,r=this._contextManager.isContextInTabMode()),this._contextManager.createContextAndSetup({position:a,range:this._getSignatureBoundsAsRange(i,a),activity:e.activity,widget:n,metaData:i,isWidgetReUsed:c,tabMode:r,nonTabMode:o&&o.nonTabMode,doNotShowView:o&&o.doNotShowView,doNotShowShadowTextView:e.requestPacket&&e.requestPacket.doNotShowShadowTextView,manual:e.requestPacket&&e.requestPacket.manual}),this._dduxController.notifyRequest()}else this._requestMadeForCurrentPosition=!0;else this._contextManager.reset()}},_getSignatureBoundsAsRange:function(e,t){var i=e.getMetaDataBounds();if(!i)return null;var n=e.getCursorPosition(),o=l.getLineColumnForOffsetPosition(i.left-1,n,t),a=l.getLineColumnForOffsetPosition(i.right-1,n,t);a.column>1&&")"===this._document.getTextCharacters(a.line-1,a.column-2,1)&&(a.column--,a.column===o.column-1&&o.column--);var s=this._document.createPositionAtLineColumn(o.line-1,o.column-1),c=this._document.createPositionAtLineColumn(a.line-1,a.column-1,!0);return new r(s,c)},_continuousRequest:function(e,t){var i;return!!(i=this._getRequestForSelection(e,t))&&(this.request(i.activity,i.position),!0)},_getRequestForSelection:function(e,t){if(!this._cursor.hasSelection())return null;if(!this._presentingArgumentIsSelected(t))return null;var i=this._cursor.getSelectionLineColumn(),n=i.start.column,o=i.end.column;return{activity:a.ACTIVE_REQUEST,position:{line:e.position.line,column:n>o?n:o}}},_presentingArgumentIsSelected:function(e){var t=e.getFunctionPresentingArgument();if(!t)return!1;var i=l.getLineColumnForOffsetBounds(t.bounds,e.getCursorPosition(),this._cursor.position),n=this._cursor.getSelectionLineColumn();return c.isArgumentSelected(i,n,t.value)},_isInvalidPosition:function(e){var t=e.line-1,i=this._internalDocument.getLineNode(t);return!o.isCodeContainer(i)},_isSilentUpdate:function(e){return e===a.SILENT_UPDATE},destroy:function(){this._clearTimeout()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(815),i(584),i(814)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_METADATA_PRESENTING_STATUS:"presenting",_METADATA_WIDGET_TYPE_NONE:"none",_METADATA_CALLING_SYNTAX_OBJECT:"object",_METADATA_CALLING_SYNTAX_CELL:"cell",_METADATA_SIGNATURES_PROPERTY:"signatures",_METADATA_MATCHTYPE_MESSAGE_ID:"messageId",_METADATA_MATCHTYPE_FOLDER:"folder",constructor:function(e){this._data=e},getNumberOfSignatures:function(){return this._getSignatures().length},_getSignatures:function(){var e=this._data.signatures;return e?(Array.isArray(e)||(e=[e]),e):null},getPresentingArgument:function(){var e=this.getFunctionPresentingArgument();return e||(void 0===this._data.widgetType?e=null:this._data.widgetType!==this._METADATA_WIDGET_TYPE_NONE&&(e=this._data)),e},getFunctionPresentingArgument:function(){var e=null,t=this._getSignatures();return t&&t.some((function(t){if(t.status===this._METADATA_PRESENTING_STATUS)return t.inputArguments.some((function(t){if(t.status===this._METADATA_PRESENTING_STATUS)return e=t,!0}),this)}),this),e},getPresentingSignature:function(){var e=this._getSignatures(),t=null;return e&&e.some((function(e){if(e.status===this._METADATA_PRESENTING_STATUS)return t=e,!0}),this),t},getMetaDataBounds:function(){var e,t=this.getPresentingSignature();if(t){if(0!==t.inputArguments.length){var i=0;t.callingSyntax===this._METADATA_CALLING_SYNTAX_OBJECT&&(i=1),(e={}).left=t.inputArguments[i].wsbounds.left}else(e={}).left=t.bounds.right;e.right=t.bounds.right}else e=this._data.bounds;return e?{left:e.left+1,right:e.right+1}:null},getLeftMostBounds:function(e){var t=this.getPresentingSignature();if(!t)return this.getCurrentBounds(e);var i=t.bounds.left+1;return{left:i,right:i+t.functionName.length}},getFunctionName:function(){var e=this.getPresentingSignature();return e?e.functionName:null},getClassName:function(){var e=this.getPresentingSignature();return e?e.className:null},getCurrentBounds:function(e){var i,n=0,o=this.getPresentingArgument(),r=this._data.shared;if(r)i=r.bounds;else if(o){i=o.widgetData&&o.widgetData.bounds?o.widgetData.bounds:o.bounds;var a=o.widgetData;if(a&&a.choices&&a.choices.length>0){var s=a.choices[0],l=s.completion,c=s.displayString,d=l.length;c&&(d-=c.length),d>=0&&l.indexOf(c,d)>=0&&(n=d)}}else i={left:this.getCursorPosition(),right:this.getCursorPosition()};var u=t.getLineColumnForOffsetBounds(i,this.getCursorPosition(),e);return u?{left:u.startColumn,right:u.endColumn,startLine:u.startLine,endLine:u.endLine,offset:n}:null},getNextBounds:function(e){var i,n=this._getNextNonPresentingArgument();if(n){i=n.widgetData&&n.widgetData.bounds?n.widgetData.bounds:n.bounds;var o=t.getLineColumnForOffsetBounds(i,this.getCursorPosition(),e)}return o?{left:o.startColumn,right:o.endColumn,startLine:o.startLine,endLine:o.endLine}:null},_getNextNonPresentingArgument:function(){for(var e,t=this.getPresentingArgument(),i=this._getInputArguments(),n=i.indexOf(t)+1;n<i.length;n+=1){var o=i[n];if(o.status!==this._METADATA_PRESENTING_STATUS){e=o;break}}return e},getNumberOfPresentingSignatureArguments:function(){return this._getInputArguments().length},_getInputArguments:function(){return this.getPresentingSignature().inputArguments},getCode:function(){var e="",t=this._data.signatures;if(t&&t.length>0){var i=t[0].inputArguments;if(!i)return e;i.some((function(t){if(t.status&&t.status===this._METADATA_PRESENTING_STATUS)return e=t.value,!0}),this)}else this._data.widgetType!==this._METADATA_WIDGET_TYPE_NONE&&(e=this._data.value);return e},hasSuggestion:function(){if(!this._data)return!1;var e=this._data.signatures,t=this._data.widgetData,i=e&&e.length>0;return t&&t.choices&&t.choices.length>0||i},hasSignatures:function(){return this._data.hasOwnProperty(this._METADATA_SIGNATURES_PROPERTY)},_getArgument:function(e,t){var i=e.inputArguments;return!i||t>=i.length?null:i[t]},isCallingSyntaxObjectOrCell:function(){var e=this.getPresentingSignature();return null!==e&&(e.callingSyntax===this._METADATA_CALLING_SYNTAX_OBJECT||e.callingSyntax===this._METADATA_CALLING_SYNTAX_CELL)},getData:function(){return this._data},isFolderOrMessageId:function(e){var t=this.getPresentingArgument();if(t.widgetType===n.FOLDER_NAME)return!0;var i=this._getMatchingChoice(t,e);if(i){var o=i.matchType;return o===this._METADATA_MATCHTYPE_FOLDER||o===this._METADATA_MATCHTYPE_MESSAGE_ID}return!1},_getMatchingChoice:function(e,t){var i=null,n=e.widgetData;if(n){var o=n.choices;o&&o.some((function(e){if(e.completion===t)return i=e,!0}))}return i},getCursorPosition:function(){return this._data.cursorPosition},customizeWidgetData:function(e){var t=!!this.getPresentingSignature(),i=this.getPresentingArgument();i&&this._customizeWidgetDataForArgument(i,e,t);var n=this.getData().shared;n&&this._customizeWidgetDataForArgument(n,e,t)},_customizeWidgetDataForArgument:function(e,t,n){var o=e.widgetData,r=e.widgetType;o&&r&&i.getCustomizersOfWidgetType(t,r).forEach((function(e){e.customizeWidgetData(o,n)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4123)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},shouldPreventRequest:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4125)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.document","rtc.editortabservice"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(1962)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i){this._cursor=e,this._document=t,this._editorTabService=i},doDefaultTab:function(){i.doSmartTab(this._cursor,this._document,this._editorTabService)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4127)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},onCompleteText:function(e){},onSelectBounds:function(e){},onRequestHelp:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4129)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(1963)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){},customizeWidgetData:function(e,t){var i=e.choices;i&&(e.choices=i.filter((function(e){return!e.embeddable})))},customizeChoicesDomnodeOrder:function(e){},isChoiceApplicable:function(e){return!1},complete:function(e,t,i,n){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},getApplicableWidgetType:function(){throw new Error("Unimplemented method: getApplicableWidgetType")},customizeWidgetData:function(e,t){throw new Error("Unimplemented method: customizeWidgetData")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(378),i(4132)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(e,t){return i.isMatlabCodeFileOrBuffer(e)&&t&&t.getAllSettingsForSettingGroup},requires:function(){return{isApplicable:["rtc.backingstore","rtc.settings.backingservice"],createInstance:["rtc.settings.service","rtc.autocompletions.plugin","rtc.actionservice"]}},createInstance:function(e,t,i){return new n(e,t,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_ACTION_ID:"rtc_completions",_SETTING_ID:"matlab.keyboard.suggestions.ShowAutomatically",constructor:function(e,t,n){this._settingsService=e,this._autoCompletion=t,this._actionService=n;var o=[{id:this._ACTION_ID,enabled:!0,selected:!1,callback:this._handleActionExecution.bind(this)}];this._actionService.loadActions(o),this.own(this._settingsService.listenToSettingChange(this._SETTING_ID,this._handleSettingsUpdated.bind(this))),this._settingsService.getSetting(this._SETTING_ID).then(function(e){this._handleSettingsUpdated(e)}.bind(this),(function(e){})),this.own(i.after(this._actionService,"onActionChange",this._handleActionChange.bind(this),!0))},_handleActionExecution:function(){var e=this._actionService.getAction(this._ACTION_ID).selected;this._updateSetting(e),this._autoCompletion.setMode(e)},_handleActionChange:function(e){if("selected"===e.key&&e.id===this._ACTION_ID){var t=e.newValue;this._updateSetting(t),this._autoCompletion.setMode(t)}},_handleSettingsUpdated:function(e){var t=1===e;this._actionService.getAction(this._ACTION_ID).selected!==t&&this._actionService.updateAction(this._ACTION_ID,{selected:t}),this._autoCompletion.setMode(t)},_updateSetting:function(e){this._settingsService.setSetting(this._SETTING_ID,e?1:0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4134)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.autocompletions.view","rtc.autocompletions.contextmanager","rtc.executionservice.statehandler","rtc.domnode.mousedown"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,n,o){this._uiView=e,this._contextManager=t,this._stateHandler=n,this.own(i.after(n,"onStateChanged",this._stateChangeListener.bind(this),!0)),this.own(i.after(o,"onMouseDown",this._handleMouseDown.bind(this),!0))},_handleMouseDown:function(e){this._uiView.isTopViewDisplayed()&&!this._contextManager.getContext().widget.domNode.contains(e.target)&&this._closeView()},_stateChangeListener:function(e){if(e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED){var t=this._contextManager.getContext();t&&(t.doNotShowView=!0),this._closeView()}},_closeView:function(){return this._uiView.close()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1964)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.autocompletions.contextmanager","rtc.domnode","rtc.autocompletions.eventbus","rtc.autocompletions.shadowtextview","rtc.tooltipservice","rtc.cursorcontroller","rtc.internaldocument","language.interface.tokenmanager","rtc.document"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d){return new i(e,t,n,o,r,a,s,l,c,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(320),i(1113)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_HIGHLIGHT_LAYER_CLASS:"mwAutoCompletionHighlightLayer",_HIGHLIGHT_MARKER_CLASS:"mwAutoCompletionHighlightMarker",constructor:function(e,t,i,n){this._rtcView=e,this._internalDocument=t,this._matlabTokenManager=i,this._document=n,this._layer=this._createLayer(),e.addLayer(this._layer)},_createLayer:function(){return t.create("div",{class:this._HIGHLIGHT_LAYER_CLASS})},_createHighlightMarkerDiv:function(e,i){var n=this._rtcView.getCoordinateForLineColumn(i.start.line,i.start.column),o=this._rtcView.getCoordinateForLineColumn(i.end.line,i.end.column);t.create("div",{class:this._HIGHLIGHT_MARKER_CLASS,style:{top:n.y+"px",height:n.height+"px",left:n.x+"px",width:o.x-n.x+"px"}},e)},show:function(e){if(this._clear(),e){var t=this._createLayer();e.start.line===e.end.line?this._createHighlightMarkerDiv(t,e):this._createHighlightMarkerDivForEachLine(t,e),this._rtcView.switchLayer(t,this._layer),this._layer=t}},_createHighlightMarkerDivForEachLine:function(e,t){for(var i=t.start.line,n=t.end.line,o=i;o<=n;o++){var r=this._getStartAndEndColumnToHighlightForLine(t,o),a={start:{line:o,column:r.startColumn},end:{line:o,column:r.endColumn}};this._createHighlightMarkerDiv(e,a)}},_getStartAndEndColumnToHighlightForLine:function(e,t){var i=e.start.line;if(t===e.end.line)var n=this._getTrimmedStartColumn(t,1),o=e.end.column;else{var r=this._getLineLength(t);n=t===i?e.start.column:this._getTrimmedStartColumn(t,1),o=this._getTrimmedEndColumn(t,r+1)}return{startColumn:n,endColumn:o}},_getTrimmedStartColumn:function(e,t){for(var i=t,n=this._getLineLength(e),o=t;o<n&&" "===this._document.getTextCharacters(e-1,o-1,1);o++)i++;return i},_getTrimmedEndColumn:function(e,t){for(var n=this._matlabTokenManager.getTokensOnLine(e-1),o=t,r=n.length-1;r>=1;r--){var a=n[r];if(i.isDotDotDotToken(a)){o=a.getColumn()+1;var s=n[r-1];i.isWhitespaceToken(s)&&(o=s.getColumn()+1);break}}return o},_getLineLength:function(e){return this._internalDocument.getLineNode(e-1).getTextForPositioning().length},close:function(){this._clear()},_clear:function(){t.empty(this._layer)},destroy:function(){this._clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1966)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.document","rtc.autocompletions.contextmanager","rtc.shadowtextservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1967)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.cursorcontroller","rtc.autocompletions.contextmanager","rtc.domnode","rtc.autocompletions.eventbus","rtc.autocompletions.shadowtextview","rtc.tooltipservice","rtc.document","rtc.internaldocument","rtc.autocompletions.customizers"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d){return new i(e,t,n,o,r,a,s,l,c,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4140)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.autocompletions.contextmanager","rtc.document","rtc.autocompletions.customizers","rtc.autocompletions.views","rtc.autocompletions.shadowtextview","rtc.cursorcontroller"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(208),i(207),i(373),i(1964),i(1966),i(1967),i(4141),i(1112),i(815),i(584)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(n,{_LAYER_CSS:"mwAutoCompletionLayer",constructor:function(e,t,n,o,r,a,s){this._rtcView=e,this._contextManager=t,this._document=n,this._customizers=o,this._autoCompletionViews=r,this._shadowTextView=a,this._cursor=s.getCursors()[0],this._topView=new l,this.own(i.after(t,"onContextUpdated",this._handleContextUpdated.bind(this),!0)),this.own(i.after(e,"onViewUpdated",this._handleViewUpdated.bind(this),!0)),this._scrolledIntoViewNow=!1},_handleContextUpdated:function(e){switch(e){case c.CONTEXT_RESET:case c.LEAVING_RANGE:case c.SILENT_RESET:this._updateViewOnInvalidContext();break;case c.CONTEXT_SWITCHED:this._updateViewOnContextChanged()}},_handleViewUpdated:function(e){if(o.hasHeightEvent(e)||o.hasWidthEvent(e)||o.hasScrollEvent(e)){var t=this._contextManager.getContext();if(t&&this._topView.isDisplayed()){var i=t.position,n=i.getLineColumn().line;if(n!==this._cursor.getLineColumn().line)return void this.close();var r=i.isValid()&&this._rtcView.isLineInView(n,!0);if(!r&&this._shouldCloseView(t,e))return void this.close();r&&(this._scrolledIntoViewNow=!1),this._topView.reposition()}}},_shouldCloseView:function(e,t){return!this._scrolledIntoViewNow&&!o.hasClientOrOffsetHeightChange(t)},_updateViewOnInvalidContext:function(){this._shadowTextView.close(),this.closeTopView()},_updateViewOnContextChanged:function(){var e=this._contextManager.getContext();this._shadowTextView.close(),e.isWidgetReUsed||this.closeTopView(),d.isContextInOpaqueNode(e,this._document)?this._contextManager.reset():this._updateTopView(e)},sendEventToTopView:function(e){var t=this._topView.sendEvent(e),i=this._contextManager.getContext();if(i){var n=i.position.getLineColumn(),o=n.line;t&&this._isTabAction(e)&&!this._rtcView.isLineInView(o,!0)?(this._rtcView.scrollLineColumnIntoView(o,n.column),this._scrolledIntoViewNow=!0):this._scrolledIntoViewNow=!1}return t},_isTabAction:function(e){return e.hasOwnProperty("keyCode")&&e.keyCode===t.TAB},_updateTopView:function(e){var t,i,n=e.metaData,o=n.getData();this._autoCompletionViews.some((function(r){if(r.isViewApplicable(o))return r.canWidgetBeReused()&&(t=e.widget),t||(t=u.createWidget(n,this._customizers)),t&&(e.widget=t,i=r),!0}),this),i?(this._topView.setView(i),i.update(),e.doNotShowView||i.show()):this._updateViewOnInvalidContext()},isShadowTextViewDisplayed:function(){return this._shadowTextView.isDisplayed()},isTopViewDisplayed:function(e){return this._topView.isDisplayed(e)},closeShadowTextView:function(){this._shadowTextView.close()},closeTopView:function(){return this._scrolledIntoViewNow=!1,this._topView.close()},close:function(){return this.closeShadowTextView(),this.closeTopView()},show:function(){return this._topView.show()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1113)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){this._view=null},setView:function(e){t.assert(e instanceof i,"The view instance to configure must be of AutoCompletionAbstractView"),this._view=e},getView:function(){return this._view},sendEvent:function(e){return this._view&&this._view.sendEvent(e)},isDisplayed:function(e){return this._view&&this._view.isDisplayed(e)},reposition:function(){return this._view&&this._view.reposition()},show:function(e){return this._view&&this._view.show(e)},close:function(){return this._view&&this._view.close()},destroy:function(){this._view&&(this._view.destroy(),this._view=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4143)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.contextmenu.documentcontributor","rtc.contextualselection.plugins","rtc.contextualselection.utility"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,n){this._contextualSelectionUtility=n,this._contextualSelectionPlugins=t||[],this.own(i.after(e,"updateActions",this._handleUpdateActions.bind(this)))},_handleUpdateActions:function(){this._contextualSelectionPlugins.forEach((function(e){var t=this._contextualSelectionUtility.getTextInformation(),i=t?t.text:null;e.updateLabelForContextMenu(i)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1968)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.cursor","rtc.actionservice","rtc.executionservice","rtc.contextmenu.documentcontributor"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)},priority:function(){return 1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4146)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.helpservice","rtc.cursor","rtc.actionservice","rtc.contextualselection.utility","rtc.contextmenu.documentcontributor"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(253),i(451),i(1412)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{ACTION_ID:"help_on_selection",constructor:function(e,i,o,r,a){this._helpService=e,this._cursor=i,this._actionService=o,this._contextualSelectionUtility=r,this._contextMenuContributor=a;var s=[{id:this.ACTION_ID,key:"f1",shortcut:n.helpShortcut,text:n.helpOnSelectionLabel,enabled:!0,callback:t.hitch(this,"_helpOnSelection")}];o.loadActions(s),this.addActionsToContextMenu()},addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this.CONTEXT_MENU_GROUP,{actionId:this.ACTION_ID,priority:1,type:o.DEFAULT})},_helpOnSelection:function(){if(!this._actionService.getAction(this.ACTION_ID).enabled)return!1;var e=this._getText();return this._helpService.showInHelpBrowser(e),!0},_getText:function(){var e=this._contextualSelectionUtility.getTextInformation(),t="";return e&&(t=e.text),t},updateLabelForContextMenu:function(e){var t=this._contextualSelectionUtility.getUpdatedLabel(e,n.helpOnSelectionLabel,n.helpLabel,n.helpLabelTruncated);this._actionService.updateAction(this.ACTION_ID,{text:t})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1969)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursor","rtc.actionservice","rtc.executionservice","rtc.contextualselection.utility","rtc.contextmenu.documentcontributor","rtc.view","rtc.linenumberservice","matlab.languageanalysis.identifierservice","rtc.backingstore"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d){return new i(e,t,n,o,r,a,s,l,c,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(4149)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.view","rtc.actionservice","rtc.document","rtc.settings.service","rtc.indentutilities","rtc.contextmenu.documentcontributor","rtc.cursorcontroller","rtc.view.viewmeasurementservice"]}},createInstance:function(){return new n(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(253),i(208),i(207),i(234),i(249),i(266),i(333),i(294),i(451),i(4150),i(924),i(4152),i(320),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e(o,{_CONTEXT_MENU_GROUP:c.DEFAULT,constructor:function(e,o,r,a,s,l,c,d,u){this._internalDocument=e,this._view=o,this._actionService=r,this._document=a,this._settingService=s,this._indentUtilities=l,this._contextMenuContributor=c,this._cursorController=d,this._cursor=this._cursorController.getCursors()[0],this._viewMeasurementService=u;var p=[{id:g.COMMENT.WRAP_COMMENT.Action,key:"ctrl_j",platformKey:{mac:"meta_shift_w"},enabled:!0,text:i.wrapCommentDescription,callback:t.hitch(this,"_wrapComments")}];this._actionService.loadActions(p),this._wrapFromStartOfLineSetting=!0,this._maxColumnWidthSetting=h.WRAP_DEFAULT_WIDTH,this.own(n.after(this._cursorController,"onUpdate",t.hitch(this,this._updateActionState))),this.own(n.after(this._document,"onChange",t.hitch(this,this._updateActionOnDocumentChange),!0)),this._addActionToContextMenu()},_updateActionState:function(){this._updateAction(!this._cursorController.hasMultipleCursors()&&this._isCodeInRange()&&!this._cursor.isCursorReadOnly())},_updateAction:function(e){this._actionService.updateAction(g.COMMENT.WRAP_COMMENT.Action,{enabled:e})},_isCodeInRange:function(){var e=this._cursor,t=e.getSelection();return t?r.isCodeInRange(t.getStartPosition().getNode(),t.getEndPosition().getNode()):this._document.isLineCode(e.getLineColumn().line)},_updateActionOnDocumentChange:function(e){e&&t.isArray(e)&&e.some((function(e){if(e.type===a.READONLY_STATE_CHANGE_EVENT)return this._updateActionState(),!0}),this)},_addActionToContextMenu:function(){var e={actionId:g.COMMENT.WRAP_COMMENT.Action,priority:3,type:d.DEFAULT};this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,e)},_wrapComments:function(){if(!this._actionService.getAction(g.COMMENT.WRAP_COMMENT.Action).enabled)return!1;if(!this._wrapCommentsValid())return!1;this._wrapFromStartOfLineSetting=!this._settingService.get(h.WRAP_FROM_COMMENT_START_ID,!1),this._maxColumnWidthSetting=this._settingService.get(h.WRAP_WIDTH_ID,h.WRAP_DEFAULT_WIDTH),this._cursorHasSelection=this._cursor.hasSelection();var e=this._getTargetContent(),t=this._createCommentSections(e);return this._wrapCommentSectionsIfNotEmpty(t),!0},_wrapCommentsValid:function(){return!this._document.isReadOnly()&&!this._cursor.isCursorReadOnly()},_getTargetContent:function(){return this._cursorHasSelection?l.paragraphNodesInRange(this._cursor.getSelection()):this._getTargetNodesFromCaret()},_getTargetNodesFromCaret:function(){var e,t=this._cursor.getNode().rootContainer();return this._isNonEmptyLineComment(t)?(e=new s(this._findLineCommentStart(),this._findLineCommentEnd()),l.paragraphNodesInRange(e)):this._isBlockCommentNode(t)?(e=new s(this._findBlockCommentStart(),this._findBlockCommentEnd()),l.paragraphNodesInRange(e)):[]},_isLineComment:function(e){var t=this._indentUtilities.findFirstNonWhitespaceTokenInLine(e.startPosition().getLine()-1);return!!t&&f.isLineCommentToken(t)},_isNonEmptyLineComment:function(e){if(!this._isLineComment(e))return!1;var t=e.getText(),i=this._getLineCommentPrefix(t),n=t.substring(i.length).trim();return""!==n&&"*"!==n&&"#"!==n},_findLineCommentStart:function(){for(var e=this._cursor.getNode().rootContainer(),t=this._getLineCommentPrefix(e.getText());null!==e.previousSibling();){var i=e.previousSibling(),n=i.getText(),o=this._getLineCommentPrefix(n),r=h.COMMENT_BULLET_REGEX.test(n),a=n===o;if(!this._isLineComment(i)||o!==t||r||a)break;e=i}return e.startPosition()},_findLineCommentEnd:function(){for(var e=this._cursor.getNode().rootContainer(),t=this._getLineCommentPrefix(e.getText());null!==e.nextSibling();){var i=e.nextSibling(),n=i.getText(),o=this._getLineCommentPrefix(n),r=h.COMMENT_BULLET_REGEX.test(n),a=n===o;if(!this._isLineComment(i)||o!==t||r||a)break;e=i}return e.endPosition()},_getLineCommentPrefix:function(e){var t=e.match(h.COMMENT_ANNOTATION_REGEXP);return t?t[0]:null},_isBlockCommentNode:function(e){var t=this._indentUtilities.findFirstNonWhitespaceTokenInLine(e.startPosition().getLine()-1);return!!t&&f.isBlockCommentToken(t)},_findBlockCommentStart:function(){var e=this._cursor.getNode().rootContainer();if(e.getText().trim()===h.BLOCK_COMMENT_START||null===e.previousSibling())return e.startPosition();for(var t=1;null!==e.previousSibling()&&t>0;)(e=e.previousSibling()).getText().trim()===h.BLOCK_COMMENT_START&&t--,e.getText().trim()===h.BLOCK_COMMENT_END&&t++;return e.startPosition()},_findBlockCommentEnd:function(){var e=this._cursor.getNode().rootContainer();if(e.getText().trim()===h.BLOCK_COMMENT_END||null===e.nextSibling())return e.endPosition();for(var t=1;null!=e.nextSibling()&&t>0;)(e=e.nextSibling()).getText().trim()===h.BLOCK_COMMENT_END&&t--,e.getText().trim()===h.BLOCK_COMMENT_START&&t++;return e.endPosition()},_createCommentSections:function(e){var t=[],i=null;return e.forEach(function(e){if(r.isCodeContainer(e)){var n=e.getText();null!==i&&i.sectionShouldGrow(n)?i.growSection(e):this._isBlockCommentNode(e)?(i=new u(this._wrapFromStartOfLineSetting,this._maxColumnWidthSetting,e),t.push(i)):this._isLineComment(e)&&n!==this._getLineCommentPrefix(n)?(i=new p(this._wrapFromStartOfLineSetting,this._maxColumnWidthSetting,e),t.push(i)):i=null}else i=null}.bind(this)),t},_wrapCommentSectionsIfNotEmpty:function(e){if(0!==e.length){var t=this._document.startBlockEdit();e.forEach(function(e){e.generateWrapEvents(this._view,this._viewMeasurementService).forEach((function(e){e.doEvent(this._document)}),this)}.bind(this)),this._cursorHasSelection&&this._updateSelection(e),this._document.endBlockEdit(t)}},_updateSelection:function(e){var t=e[0],i=e[e.length-1],n=t.getStartLine(),o=i.getEndLine(),r=this._document.getLineLength(o)+1;this._cursor.setSelectionLineColumn(n,1,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1970),i(924),i(1971),i(1972),i(1973)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(t,{_START_WHITESPACE_REGEX:/^\s+/,_END_WHITESPACE_REGEX:/\s+$/,constructor:function(e,t,n){var o=n.getText();i.BLOCK_COMMENT_END_REGEX.test(o)&&(this._openBlockCount=0),this._openBlockCount=1,this._indentsQueue=[],this._indentStack=[],this._delimiterEdgeMarker=0,i.BLOCK_COMMENT_START_REGEX.test(o)||this._addIndentFromFirstNode(n)},sectionShouldGrow:function(e){return 0!==this._openBlockCount},growSection:function(e){this.inherited(arguments);var t=e.getText();i.BLOCK_COMMENT_START_REGEX.test(t)&&this._openBlockCount++,i.BLOCK_COMMENT_END_REGEX.test(t)&&this._openBlockCount--},_getPrefixRegex:function(){return new RegExp("^\\s*")},_isEdgeOfDelimiter:function(e){return!this._isContentOpaqueNode(e)&&(i.BLOCK_COMMENT_START_REGEX.test(e)||i.BLOCK_COMMENT_END_REGEX.test(e)||""===e.trim())},_addIndentFromFirstNode:function(e){var t=e.children[0];if(!this._isContentOpaqueNode(t)){var i=t.getText(),n=i.match(/\S/);if(n){var o=i.slice(0,n.index);return this._indentsQueue.unshift(o),void this._indentStack.unshift(o)}}this._indentsQueue.unshift(""),this._indentStack.unshift("")},_updateIndent:function(e){this._prefix=this._indentsQueue[e]},_handleDelimiterEdge:function(e,t,i){this._updateIndentLevels(e),e.match(/\S/)&&(this._removeEndingWhitespace(e,t,i),this._removeBeginningWhitespace(e,t,i)),this._content[i].unshift(this._delimiterEdgeMarker)},_updateIndentLevels:function(e){if(e.trim()===i.BLOCK_COMMENT_START){var t=this._getIndent(e);return this._indentsQueue.push(t),void this._indentStack.unshift(t)}if(e.trim()===i.BLOCK_COMMENT_END&&(this._indentStack.shift(),this._indentStack.length>0)){var n=this._indentStack[0];this._indentsQueue.push(n)}},_getIndent:function(e){return this._getRegexMatch(e,this._START_WHITESPACE_REGEX)||""},_getRegexMatch:function(e,t){var i=e.match(t);return i?i[0]:null},_removeEndingWhitespace:function(e,t,i){var o=this._getRegexMatch(e,this._END_WHITESPACE_REGEX);if(o){var r=e.length+1,a=r-o.length,s=new n(t,a,t,r,i,1);this._wrapEvents.push(s)}},_removeBeginningWhitespace:function(e,t,o){if(!i.BLOCK_COMMENT_START_REGEX.test(e)){var r=this._getRegexMatch(e,this._START_WHITESPACE_REGEX);if(r){var a=r.length+1,s=new n(t,1,t,a,o,1);this._wrapEvents.push(s)}}},_generateEventsToWrapContent:function(e,t){var n=0;this._updateIndent(n),this._content.forEach(function(o){if(o[0]===this._delimiterEdgeMarker){if(i.BLOCK_COMMENT_START_REGEX.test(o[1]))this._updateIndent(n++);else if(i.BLOCK_COMMENT_END_REGEX.test(o[1])){var a=new r(this._prefix,this._lineCache.getLine(),1);this._wrapEvents.push(a),this._updateIndent(n++)}this._lineCache.update(1,0,0,0),o=o.slice(2)}o.length>0&&this._wrapContentLine(o,e,t)}.bind(this))},_calculateMaxContentLength:function(){return this._wrapFromStartOfLineSetting?this._maxColumnWidth-this._prefix.length:this._maxColumnWidth}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){this._cachedCurrentLine=0,this._cachedLineWidth=0,this._cachedLineColumns=0,this._cachedLastWhitespaceLength=0,this._cachedStartLine=0,this._cachedEndLine=0},update:function(e,t,i,n){this._cachedCurrentLine+=e,this._cachedLineWidth=t,this._cachedLineColumns=i,this._cachedLastWhitespaceLength=n,this._cachedEndLine=this._cachedCurrentLine-1},setStartLine:function(e){this._cachedStartLine=e,this._cachedCurrentLine=e},getLine:function(){return this._cachedCurrentLine},getWidth:function(){return this._cachedLineWidth},getColumn:function(){return this._cachedLineColumns},getWhitespaceLength:function(){return this._cachedLastWhitespaceLength},getStartLine:function(){return this._cachedStartLine},getEndLine:function(){return this._cachedEndLine}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1970),i(924)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,n){this._prefix=n.getText().match(i.COMMENT_ANNOTATION_REGEXP)[0]},sectionShouldGrow:function(e){var t=e.match(i.COMMENT_ANNOTATION_REGEXP);return null!==t&&t[0]===this._prefix&&(!i.COMMENT_BULLET_REGEX.test(e)&&(!i.BLOCK_COMMENT_START_REGEX.test(e)&&t[0]!==e))},_getPrefixRegex:function(){return new RegExp("^"+this._prefix)},_isEdgeOfDelimiter:function(e){return!1},_generateEventsToWrapContent:function(e,t){this._wrapContentLine(this._content[0],e,t)},_calculateMaxContentLength:function(){if(this._wrapFromStartOfLineSetting)return this._maxColumnWidth-this._prefix.length;var e=this._prefix.length-this._prefix.search(/%/);return this._maxColumnWidth-e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4154)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internal.language","rtc.languagenotifier"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(209),i(546),i(471),i(1974),i(4155),i(909),i(454)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){const d={loadModulesWhenIdle:!0,idleLoadTimeout:1e3};return t([a,s],{_RESOURCE_NAME:"EditorLanguageSupportSpecification",constructor:function(t,i){this._language=t,this._languageNotifier=i,this._moduleLoader=new o,this._moduleInfoForLanguage={},this._pluginsForLanguage={},this._enabledPlugins=new Set,this._regHandle=l.setup(this._RESOURCE_NAME,r.JSON,e=>{e.resourcesFilesData.forEach(e=>{this._handleFileDataFound(e)})},this),this.own(e.after(t,"onSupportedLanguageUpdated",this._addSupportForLanguage.bind(this),!0))},registered:function(e){},unregistered:function(e){},enabled:function(e){this._handleFileDataFound(e)},disabled:function(e){},_handleFileDataFound:function(e){e.error?n.error("Error parsing JSON file: \n"+e.error):e.resourcesFileContents.forEach(e=>{this._handleLanguageAdded(e)})},_handleLanguageAdded:function(e){const t=i.clone(e);delete t.registryName,delete t.moduleDef;const n=e.languageName,o=e.alias,r=e.mimeType,a=this._priorityToEnum(e.languagePriority);t.languagePriority=a;const s=e.defaultSupportedFileTypes||[];this._validateLanguageMetadata(n,a)&&(this._language.isLanguageSupportedLanguage(n)||this._language.addSupportedLanguage(n,a,s,r,o),this._moduleInfoForLanguage[n]={language:n,registryName:e.registryName,moduleDef:e.moduleDef},this._language.areLanguagesAliases(this._language.getLanguage(),n)&&this._enableSupportForLanguage(n),this._languageNotifier.onLanguageInfoDiscovered(t))},_addSupportForLanguage:function(e){this._language.areLanguagesAliases(this._language.getLanguage(),e)&&this._enableSupportForLanguage(e)},_enableSupportForLanguage:function(e){const t=this._getModuleInfosForLanguage(e),i=this._loadModules(t);Promise.all(i).then(()=>{const t=this._getPluginsToEnableForLanguage(e);t.length>0&&this.onDependenciesFound(t)})},_getModuleInfosForLanguage:function(e){const t=[];let i=e;for(;this._language.isLanguageSupportedLanguage(i)&&(t.push(this._moduleInfoForLanguage[i]),this._language.getAliasForLanguage(i)!==i);)i=this._language.getAliasForLanguage(i);return t},_loadModules:function(e){const t=[];return e.forEach(e=>{const i=this._moduleLoader.register([e.moduleDef]),n=this._moduleLoader.loadExports(i,d);n.then(t=>{this._pluginsForLanguage[e.language]=t.exports[e.registryName];const i=t.exports[e.registryName+"L10n"];i&&i.description&&this._language.setDescriptionForLanguage(e.language,i.description)}),t.push(n)}),t},_getPluginsToEnableForLanguage:function(e){let t=[],i=e;for(;this._language.isLanguageSupportedLanguage(i);){let e=this._pluginsForLanguage[i];if(e=e.filter(e=>!this._enabledPlugins.has(e.id)&&(this._enabledPlugins.add(e.id),!0)),t=t.concat(e),this._language.getAliasForLanguage(i)===i)break;i=this._language.getAliasForLanguage(i)}const n=t.findIndex(e=>"language.common.lexer.preferences"===e.id);if(n>0){let e=t.splice(n,1)[0];t.unshift(e)}return t},_priorityToEnum:function(e){return-1===Object.keys(c.LANGUAGE_PRIORITY).indexOf(e)?c.LANGUAGE_PRIORITY.COMMON:c.LANGUAGE_PRIORITY[e]},_validateLanguageMetadata:function(e,t){let i=!0;return"string"==typeof e&&0!==e.length||(i=!1,n.error("Invalid language name: "+e)),t===c.LANGUAGE_PRIORITY.DEFAULT?(i=!1,n.error("Invalid language priority - only one language may be DEFAULT priority")):t===c.LANGUAGE_PRIORITY.PREFERRED&&(i=!1,n.error("Invalid language priority - only one language may be PREFERRED priority")),i},destroy:function(){this._regHandle.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},registered:function(e){},unregistered:function(e){},enabled:function(e){},disabled:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4157)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.settings.service","rtc.internal.language"]}}createInstance(e,i){return new t(e,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(207),i(903),i(1975),i(1976)],o=i.dj.d(n,(function(e,t,i,n,o){return class extends t{constructor(t,i){super(),this._SETTING_PATH="matlab.editor.language.",this._EXTENSIONS_SETTING_KEY=".Extensions",this._MLIKE_LANGUAGE_NAME="mLike",this._STRING_SEPARATOR=";",this._isLocalClient=n.isLocalClient(),this._settingsService=t,this._language=i,this.own(e.after(i,"onSupportedLanguageAdded",this._handleLanguageSetting.bind(this),!0))}async _handleLanguageSetting(e){var t=e.name;if("VRML/X3D"===t)return void this._language.isLanguageSupportAdded(!1);let n;this._language.isLanguageSupportAdded(!0),n=t===this._MLIKE_LANGUAGE_NAME?this._SETTING_PATH.concat(o.MATLAB.toLowerCase(),this._EXTENSIONS_SETTING_KEY):this._SETTING_PATH.concat(t.toLowerCase(),this._EXTENSIONS_SETTING_KEY);try{var r;if(void 0===(r=await this._settingsService.getSetting(n)))return;if(r=(r=r.split(this._STRING_SEPARATOR)).filter(e=>e),this._isLocalClient){switch(t){case o.C:i.removeExtensionsForLanguage(t),i.removeExtensionsForLanguage(o.CPP),this._checkAndUpdateLanguage(r,e.fileExtensions,o.CPP);break;case o.CPP:i.addFileExtensionsForLanguage(t,r);break;case o.HTML:this._checkAndUpdateLanguage(r,e.fileExtensions,o.XML);break;case o.XML:i.removeExtensionsForLanguage(t),i.removeExtensionsForLanguage(o.HTML),i.addFileExtensionsForLanguage(t,r);break;default:this._updateLanguageExtensions(t,r)}this._language.updateSupportForLanguage(e)}else this._updateLanguageExtensions(t,r),this._language.updateSupportForLanguage(e)}catch(i){this._updateLanguageExtensions(t,e.fileExtensions),this._language.updateSupportForLanguage(e)}}_checkAndUpdateLanguage(e,t,n){var o,r=t;t.forEach(i=>{e.includes(i)||(o=t.indexOf(i),r.splice(o,1))}),i.addFileExtensionsForLanguage(n,r)}_updateLanguageExtensions(e,t){i.removeExtensionsForLanguage(e),i.addFileExtensionsForLanguage(e,t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4159)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{onLanguageInfoDiscovered:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4161)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.styles.globalstylechanger"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4162),i(4163)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getCssSelector:function(){return t.CODE.CSS_CLASS}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{CODE:{FORMAT:"code",CSS_CLASS:".lineNode",DEFAULT_FONT_SIZE:14,DEFAULT_SIZE_UNIT:"px"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._globalStyleChanger=e},getCssSelector:function(){throw new Error("rtc.plugins.fontprefs.AbstractCssPropertyChanger Unimplemented method: getCssSelector")},changeProperty:function(e){this._globalStyleChanger.insertOrReplaceRule(this.getCssSelector(),e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4165)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.fontprefs.code.propertychanger","rtc.settings.service"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(244),i(4166),i(809)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_FONT_SIZE_UNIT:"pt",_CODE_FONT_TYPE:"CodeFont",_TEXT_FONT_TYPE:"TextFont",_CUSTOM_FONT_TYPE:"CustomFont",_FONT_TO_USE:"matlab.fonts.custom.editor.FontToUse",_CODE_FONT_NAME:"matlab.fonts.codefont.Name",_CODE_FONT_SIZE:"matlab.fonts.codefont.Size",_CODE_FONT_STYLE:"matlab.fonts.codefont.Style",_TEXT_FONT_NAME:"matlab.fonts.textfont.Name",_TEXT_FONT_SIZE:"matlab.fonts.textfont.Size",_TEXT_FONT_STYLE:"matlab.fonts.textfont.Style",_CUSTOM_FONT_NAME:"matlab.fonts.custom.editor.Name",_CUSTOM_FONT_SIZE:"matlab.fonts.custom.editor.Size",_CUSTOM_FONT_STYLE:"matlab.fonts.custom.editor.Style",_SCALING_FACTOR:"matlab.desktop.DisplayScaleFactor",constructor:function(e,t){this._cachedFontToUse=this._CODE_FONT_TYPE,this._cachedScalingFactor=1,this._initializeCacheAndListeners(),this.own(this._settingsService.listenToSettingChange(this._FONT_TO_USE,this._onFontToUseChanged.bind(this))),this.own(this._settingsService.listenToSettingChange(this._SCALING_FACTOR,this._handleDisplayScalingFactorChange.bind(this)))},_initializeCacheAndListeners:async function(){try{[this._cachedFontToUse,this._cachedScalingFactor]=await Promise.all([this._settingsService.getSetting(this._FONT_TO_USE),this._settingsService.getSetting(this._SCALING_FACTOR)])}catch(e){}this.initializeListeners()},_handleDisplayScalingFactorChange:function(e){this._cachedScalingFactor=e,this._onFontToUseChanged(this._cachedFontToUse)},_getSettingToCssPropertiesMap:function(){var e={};return e[this._CODE_FONT_NAME]=[n.getFontFamilyProperty()],e[this._CODE_FONT_SIZE]=[n.getFontSizeProperty()],e[this._CODE_FONT_STYLE]=[n.getFontWeightProperty(),n.getFontStyleProperty()],e[this._TEXT_FONT_NAME]=[n.getFontFamilyProperty()],e[this._TEXT_FONT_SIZE]=[n.getFontSizeProperty()],e[this._TEXT_FONT_STYLE]=[n.getFontWeightProperty(),n.getFontStyleProperty()],e[this._CUSTOM_FONT_NAME]=[n.getFontFamilyProperty()],e[this._CUSTOM_FONT_SIZE]=[n.getFontSizeProperty()],e[this._CUSTOM_FONT_STYLE]=[n.getFontWeightProperty(),n.getFontStyleProperty()],e},_isSettingApplicable:async function(e){try{return this._getSettingsForFontType(this._cachedFontToUse).indexOf(e)>=0}catch(e){return!1}},_convertSettingValueToCssValue:function(e,t){switch(e){case n.getFontFamilyProperty():return n.getFontFamilyValueFromSettingValue(t,n.getDefaultMonospacedFontFamilyValue());case n.getFontSizeProperty():return n.getFontSizeValueFromSettingValue(this._cachedScalingFactor*t,this._FONT_SIZE_UNIT);case n.getFontWeightProperty():return n.getFontWeightValueFromSettingValue(t);case n.getFontStyleProperty():return n.getFontStyleValueFromSettingValue(t)}return null},_getSettingsForFontType:function(e){switch(e){case this._CODE_FONT_TYPE:return[this._CODE_FONT_NAME,this._CODE_FONT_SIZE,this._CODE_FONT_STYLE];case this._TEXT_FONT_TYPE:return[this._TEXT_FONT_NAME,this._TEXT_FONT_SIZE,this._TEXT_FONT_STYLE];case this._CUSTOM_FONT_TYPE:return[this._CUSTOM_FONT_NAME,this._CUSTOM_FONT_SIZE,this._CUSTOM_FONT_STYLE]}return[]},_onFontToUseChanged:async function(e){this._cachedFontToUse=e;const i=this._getSettingsForFontType(e),n=[],o=i.map(e=>this._settingsService.getSetting(e).then(t=>{n.push({id:e,value:t})},e=>{}));t(o).then(()=>{this._applyCssStyling(n)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t){this._cssPropertyChanger=e,this._settingsService=t},initializeListeners:function(){const e=this._getSettingToCssPropertiesMap();this._applyAndRegisterSettings(Object.keys(e))},_applyAndRegisterSettings:function(e){e.forEach((function(e){this._settingsService.getSetting(e).then(function(t){this._handleSettingChange(e,t)}.bind(this),(function(e){})),this.own(this._settingsService.listenToSettingChange(e,this._handleSettingChange.bind(this,e)))}),this)},_getSettingToCssPropertiesMap:function(){throw new Error("rtc.plugins.fontprefs.AbstractCssPropertySettingManager Unimplemented method: _getSettingToCssPropertiesMap")},_convertSettingValueToCssValue:function(e,t){throw new Error("rtc.plugins.fontprefs.AbstractCssPropertySettingManager Unimplemented method: _convertSettingValueToCssValue")},_isSettingApplicable:async function(){throw new Error("rtc.plugins.fontprefs.AbstractCssPropertySettingManager Unimplemented method: _isSettingApplicable")},_handleSettingChange:async function(e,t){await this._isSettingApplicable(e)&&this._applyCssStyling([{id:e,value:t}])},_applyCssStyling:function(e){var t=[];e.forEach((function(e){var i=e.id,n=e.value;this._getSettingToCssPropertiesMap()[i].forEach((function(e){var i=this._convertSettingValueToCssValue(e,n);i&&t.push({name:e,value:i})}),this)}),this),this._cssPropertyChanger.changeProperty(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4168)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return e},requires:function(){return{isApplicable:["rtc.integration.touchmode"],createInstance:["rtc.keyhandler","rtc.internaldocument","rtc.document","rtc.cursorcontroller","rtc.view","rtc.actionservice","rtc.livecontrols.viewmodel","rtc.touch.events","rtc.touch.imeinput"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(206),i(208),i(207),i(1114),i(1115),i(474)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(r,{constructor:function(e,t,i,r,a,s,l,c,d){this._internalDocument=t,this._document=i,this._matlabMobileEventHandler=c,this._matlabMobileInputEventHandler=d,this._mobileKeyHandler=e,this._cursorController=r,this._view=a,this._rtcScrollPane=a.getDomtarget(),this._actionService=s,this._liveControlViewModel=l,this._matlabMobileEventHandler&&(this.own(o.before(this._matlabMobileEventHandler,"onkeydown",this._handleNativeKeyDown.bind(this))),this.own(o.before(this._matlabMobileEventHandler,"onkeypress",this._handleNativeKeyPress.bind(this))),this.own(o.before(this._matlabMobileEventHandler,"onclick",this._handleClick.bind(this))),this.own(o.before(this._matlabMobileEventHandler,"onSelectionChange",this._handleSelectionChanged.bind(this))),this.own(o.after(this._matlabMobileEventHandler,"onNativeCaretSync",this._onNativeCaretSync.bind(this))),this.own(o.after(this._matlabMobileEventHandler,"onBackSpaceDeletion",this._onBackSpaceDeletion.bind(this))),this.own(o.after(this._matlabMobileEventHandler,"onSyncOpaqueNodeOffset",this._onSyncOpaqueNodeOffset.bind(this)))),this._matlabMobileInputEventHandler&&(this.own(o.before(this._matlabMobileInputEventHandler,"onHandleClick",this._onHandleClick.bind(this))),this.own(o.before(this._mobileKeyHandler,"onKeyDownEnd",this._handleKeyDownEnd.bind(this)))),this.own(n(this._rtcScrollPane.ownerDocument,"touchstart",this._handleTouchStart.bind(this))),this.own(o.after(this._internalDocument,"onDocumentChanged",this._disableContentEditableForLiveControls.bind(this))),this.own(o.after(this._internalDocument,"onDocumentReset",this._disableContentEditableForLiveControls.bind(this)))},_handleKeyDownEnd:function(){const e=this._cursorController.getCursor().getNode();this.isLiveControlNodeOrWidget(e)&&this.isLiveControlWidgetFocused(e)&&this._actionService.executeAction(s.CONVERT_TO_CODE)},_onHandleClick:function(){const e=this._cursorController.getCursor().getNode();this.isLiveControlNodeOrWidget(e)&&this.isLiveControlWidgetFocused(e)?this._matlabMobileInputEventHandler.shouldHandleClick=!1:this._matlabMobileInputEventHandler.shouldHandleClick=!0},_handleTouchStart:function(e){if(e.target&&e.target.rteNode){const t=e.target.rteNode.endNode();this.isLiveControlNodeOrWidget(t)&&a.moveKeyCapture(this._view,this._cursorController.getCursor(),this._mobileKeyHandler)}},_onBackSpaceDeletion:function(){const e=this._cursorController.getCursor(),t=e.getNode();if(this.isLiveControlNodeOrWidget(t)){const i=this._view.getCoordinateForPosition(e.getCursorPosition()),n=this._view.getNodeBox(t);this._mobileKeyHandler.moveKeyCaptureToNode(i.y,i.x,n.parentNode)}},_handleSelectionChanged:function(e){if(this._matlabMobileEventHandler.clickHandled)return void(this._matlabMobileEventHandler.selectionChangeHandled=!0);const t=this._rtcScrollPane.ownerDocument.getSelection();if(!t.anchorNode||!t.anchorNode.rteNode)return;const i=t.anchorNode.rteNode.endNode(),n=this._cursorController.getCursor();if(this.isLiveControlNodeOrWidget(i)){n.setPosition(i.endPosition());const e=this._view.getCoordinateForPosition(n.getCursorPosition()),t=this._view.getNodeBox(i);this._mobileKeyHandler.moveKeyCaptureToNode(e.y,e.x,t.parentNode),this._matlabMobileEventHandler.selectionChangeHandled=!0}},_onSyncOpaqueNodeOffset:function(){const e=this._matlabMobileEventHandler.getSyncNode();if(this.isLiveControlNodeOrWidget(e)){const t=this.getLiveControlWidgetData(this._view.getNodeBox(e)).length;this._matlabMobileEventHandler.setOpaqueNodeOffset(t)}},_onNativeCaretSync:function(){const e=this._cursorController.getCursor().getNode();this.isLiveControlNodeOrWidget(e)&&this._matlabMobileEventHandler.setNativeCursorSync(!1)},_handleClick:function(e){const t=this._cursorController.getCursor(),i=t.getNode();if(this.isLiveControlNodeOrWidget(i)){const n=this._view.fixEvent(e),o=this._view.getPositionFromEvent(n);t.setPosition(o);const r=this._view.getCoordinateForPosition(t.getCursorPosition()),a=this._view.getNodeBox(i);this._mobileKeyHandler.moveKeyCaptureToNode(r.y,r.x,a.parentNode),this._matlabMobileEventHandler.clickHandled=!0}},_selectLiveControlNode:function(e,t){this._liveControlViewModel.getNodeWidget(t).navigate(e)},isLiveControlWidgetFocused:function(e){if(e){const t=this._liveControlViewModel.getNodeWidget(e);return t&&t.focused}return!1},_handleNativeKeyDown:function(e){const t=this._cursorController.getCursor().getNode();if(this.isLiveControlNodeOrWidget(t)){if("Backspace"===e.key){if(this.isLiveControlWidgetFocused(t))return void(this._matlabMobileEventHandler.keyDownHandled=!0);this._selectLiveControlNode(e,t)}else this.isLiveControlWidgetFocused(t)||this._document.insertTextAtCurrentPosition(e.key);this._matlabMobileEventHandler.keyDownHandled=!0,e.preventDefault(),e.stopPropagation()}},_handleNativeKeyPress:function(e){this.isLiveControlNodeOrWidget(this._cursorController.getCursor().getNode())&&(this._matlabMobileEventHandler.keyPressedHandled=!0)},isLiveControlNodeOrWidget:function(e){return l.isLiveControlNode(e)||l.isLiveControlWidget(e,this._liveControlViewModel)},getLiveControlWidgetData:function(e){return e&&e.getElementsByClassName(l.LIVE_CONTROL_DIV)[0].textContent},_disableContentEditableForLiveControls:function(){l.getLiveControlNodesInDocument(this._internalDocument).forEach(t.hitch(this,(function(e){this._view.getNodeBox(e).setAttribute("contenteditable",!1)})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4170),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.document","rtc.cursorcontroller","rtc.code.sections.sectionbreak","rtc.code.sections.model"]}},createInstance:function(e,i,n,o,r){return new t(e,i,n,o,r)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(209),i(207),i(234),i(364),i(1116),i(403),i(260),i(581),i(1977)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(o,{_UNDOREDO_BLOCK_TYPE:"LocalFunction",_BLOCK_TYPES_FOR_MERGE_AND_ADVANCE:["AutoIndent"],constructor:function(e,n,o,r,a){this._internalDocument=e,this._document=n,this._cursorController=o,this._sectionBreak=r,this._sectionModel=a,this.own(i.around(n,"insertBreak",t.hitch(this,"_onInsertBreak"))),this.own(i.after(a,"onAttributesUpdated",t.hitch(this,"_handleAttributesUpdate"),!0))},_onInsertBreak:function(e){return function(){var t,i=this._getApplicableSectionNumbersByCursors(),n=i.length>0;n&&(t=this._document.startBlockEdit());var o=e.apply(this._document,arguments);return o&&n&&this._convertCodeToTextForPreviousLineOfFirstLocalFunction(i),n&&this._document.endBlockEdit(t),o}.bind(this)},_getApplicableSectionNumbersByCursors:function(){var e=[];return this._cursorController.getCursors().forEach((function(t){var i=t.getLineColumn(),n=i.line,o=i.column,r=this._sectionModel.getSectionNumberForLine(n-1),a=this._sectionModel.getSection(r);if(u.hasLocalFunction(a)){var s=this._getFirstLocalFunctionLineNumber(a);n>=a.start.getLineColumn().line&&n<=s&&1===o&&e.push(r)}}),this),e},_convertCodeToTextForPreviousLineOfFirstLocalFunction:function(e){e.forEach((function(e){var t=this._sectionModel.getSection(e),i=this._getFirstLocalFunctionLineNumber(t)-1;this._convertCodeToTextIfApplicable(i-1)}),this)},_convertCodeToTextIfApplicable:function(e){var t=this._internalDocument.getLineNode(e);if(t&&"code"===this._internalDocument.containerType(t)){var i=this._document.startBlockEdit();this._internalDocument.convertParagraph("text",t);var n=[s.create(e,e,"code","text")];i.appendRedoEvents(n),i.appendUndoEvents(c.translateEventsForUndo(n)),this._internalDocument.emitDocumentEvents(n),this._document.endBlockEdit(i)}},_getFirstLocalFunctionLineNumber:function(e){return e.localFunctions[0].position.getLineColumn().line},_handleAttributesUpdate:function(e){if(e===d.LOCAL_FUNCTION_ATTRIBUTE){var t=this._sectionModel.getSections(),i=u.getFirstLocalFunction(t);if(i){var n=i.getStartLine(),o=this._internalDocument.getMaxLineNumber();if(this._needsUpdate(n,o)){var r=this._document.startBlockEdit(this._UNDOREDO_BLOCK_TYPE);r.setBlockTypesForMergeAndAdvance(this._BLOCK_TYPES_FOR_MERGE_AND_ADVANCE),this._sectionBreak.deleteSectionBreakInBetween(n,o);var a=this._getTopBoundary(n);this._sectionBreak.isLineSectionBreak(a-1)||this._sectionBreak.insertSectionBreakAtLineColumn(a,1),this._document.endBlockEdit(r)}}}},_needsUpdate:function(e,t){if(!(e>1))return!1;if(this._sectionBreak.hasSectionBreakInBetween(e,t))return!0;var i=this._sectionModel.getSectionForLine(e-1).start.getLineColumn().line;return this._getTopBoundary(e)!==i},_getTopBoundary:function(e){var t=this._sectionModel.getSectionForLine(e-1).start.getLineColumn().line;n.assert(t<=e,"Invalid start line of section or local function");for(var i=e-1;i>=t;i-=1){var o=this._internalDocument.getLineNode(i-1);if(r.isCodeContainer(o))break}return i+1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4172),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.code.sections.model","rtc.localfunctionnotifier"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1978),i(581)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i){},getSectionAttribute:function(){return i.LOCAL_FUNCTION_ATTRIBUTE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4174),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.code.sections.sectionbreak","rtc.code.sections.model"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(403),i(581)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_UNDOREDO_BLOCK_TYPE:"TopLevelFunction",_BLOCK_TYPES_FOR_MERGE_AND_ADVANCE:["AutoIndent"],constructor:function(e,n,o){this._document=e,this._sectionBreak=n,this._sectionModel=o,this.own(i.after(o,"onAttributesUpdated",t.hitch(this,"_handleAttributesUpdate"),!0))},_handleAttributesUpdate:function(e){if(e===r.TOP_LEVEL_FUNCTION_ATTRIBUTE){var t=this._sectionModel.getSections(),i=this._getTopLevelFunction(t);if(i){var n=Math.min(i.getEndLine(),this._document.getNumberOfLines()),o=this._getLastLineInSectionForLine(n-1);if(this._needsUpdate(1,o)){var a=this._document.startBlockEdit(this._UNDOREDO_BLOCK_TYPE);a.setBlockTypesForMergeAndAdvance(this._BLOCK_TYPES_FOR_MERGE_AND_ADVANCE),this._sectionBreak.deleteSectionBreakInBetween(1,o),this._document.endBlockEdit(a)}}}},_needsUpdate:function(e,t){return this._sectionBreak.hasSectionBreakInBetween(e,t)},_getTopLevelFunction:function(e){var t=null;return e.some((function(e){var i=e[r.TOP_LEVEL_FUNCTION_ATTRIBUTE];if(i&&i.length>0)return t=i[0],!0})),t},_getLastLineInSectionForLine:function(e){return this._sectionModel.getSectionForLine(e).end.getLine()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4176),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.code.sections.model","rtc.toplevelfunctionnotifier"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1978),i(581)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i){},getSectionAttribute:function(){return i.TOP_LEVEL_FUNCTION_ATTRIBUTE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(4178),i(203),i(205),i(4179)],o=i.dj.d(n,(function(e,t,i,n){return t(i,{requires:function(){return{createInstance:["rtc.id"]}},createInstance:function(t){var i=e(t);return new n(i)}})}),e,t),e.exports=o},function(e,t,n){var o,r;o=[n(1414),n(247)],r=n.dj.d(o,(function(e,t){function n(e){for(i=0;i<e.codeMessages.length;i++)for(e.codeMessages[i].message=t.treatHtmlLikeCommandWindow(e.codeMessages[i].message),j=0;j<e.codeMessages[i].fixes.length;j++)e.codeMessages[i].fixes[j].fixMessage=t.treatHtmlLikeCommandWindow(e.codeMessages[i].fixes[j].fixMessage);for(i=0;i<e.fileMessages.length;i++)e.fileMessages[i].message=t.treatHtmlLikeCommandWindow(e.fileMessages[i].message);return{getDocumentState:function(){return e.documentState},getCodeMessages:function(){return e.codeMessages.slice()},getFileMessages:function(){return e.fileMessages.slice()},isSuppressible:function(t){return e.suppressionTable[t]},isWarning:function(t){if(t in e.severityTable)return"Warning"===e.severityTable[t]},isError:function(t){if(t in e.severityTable)return"Error"===e.severityTable[t]},isInfo:function(t){if(t in e.severityTable)return"Info"===e.severityTable[t]},hasErrorMessage:function(){return e.hasErrorMessages}}}function o(e){if(e&&Object.getOwnPropertyNames(e).length){if(e.hasOwnProperty("documentState")&&e.codeMessages&&e.fileMessages&&e.severityTable&&e.hasOwnProperty("hasErrorMessages")&&e.suppressionTable)return!0;if(e.failure)return!0}return!1}return function(t,i){var r=new e("/codeanalyzer/responseChannel/messages/"+t,i);return{subscribeToCAMessages:function(e,t){r.addCAEventListener(e,t,n,o)},unsubscribeFromCAMessages:function(){r.removeCAEventListener()}}}}),e,t),e.exports=r},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this._messageNotifier=e,this._messageNotifierDataObject=null,this._messageNotifier.subscribeToCAMessages(this._handleUpdate.bind(this),this._handleError.bind(this))},_handleUpdate:function(e){this._messageNotifierDataObject=e,this.onDataUpdated()},_handleError:function(e){},hasData:function(){return!!this._messageNotifierDataObject},onDataUpdated:function(){},getDocumentState:function(){return this._messageNotifierDataObject.getDocumentState()},getCodeMessages:function(){return this._messageNotifierDataObject.getCodeMessages()},getFileMessages:function(){return this._messageNotifierDataObject.getFileMessages()},isSuppressible:function(e){return this._messageNotifierDataObject.isSuppressible(e)},isWarning:function(e){return this._messageNotifierDataObject.isWarning(e)},isError:function(e){return this._messageNotifierDataObject.isError(e)},hasErrorMessage:function(){return this._messageNotifierDataObject.hasErrorMessage()},destroy:function(){this.inherited(arguments),this._messageNotifier.unsubscribeFromCAMessages()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(378),i(4181),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{isApplicable:function(e){return t.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.document","rtc.internaldocument","rtc.cursorcontroller","rtc.cursor.view","rtc.actionservice","rtc.executionservice","rtc.featureinterface","rtc.backingstore","rtc.code.matlabfiletype","rtc.contextmenu.documentcontributor","rtc.code.sections.model","rtc.code.sections.view.section","rtc.code.sectionslist","rtc.execution.capabilityblacklist","rtc.markup.publishingmarkup"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f,null,g)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(221),i(297),i(363),i(229),i(207),i(907),i(234),i(237),i(270),i(266),i(294),i(1396),i(1108),i(251),i(253)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e(s,{_SECTION_EVALUATION_FUNCTION:"matlab.internal.editor.evaluateCode",_SECTION_EVAL_EDITOR_ID:"SectionEval",_CONTEXT_MENU_GROUP:p.SECTIONS,_SECTION_TOP_PERCENT:3,constructor:function(e,n,s,l,c,d,u,h,p,f,g,v,b,y,C,T){this._internalDocument=n,this._document=e,this._cursorController=s,this._cursorView=l,this._actionService=c,this._executionService=d,this._editorInterface=u,this._backingStore=h,this._fileType=p,this._contextMenuContributor=f,this._sectionModel=g,this._capabilityBlacklist=y,this._mvm=C||r.getInstance(),this._publishingMarkup=T,this._runOptions=new o,this._evalUid=a.generateUuid(),this._activeSection={},this.own(i.after(this._cursorView,"onChange",t.hitch(this,"_updateActiveSection"))),this.own(i.after(this._editorInterface,"onActivated",t.hitch(this,"_updateActiveSection"))),this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_updateActiveSection"))),this.own(i.after(this._sectionModel,"onModelUpdated",t.hitch(this,"_updateActiveSection")));var E=[{id:m.SECTIONS.INSERT_SECTION_ACTION,enabled:!0,description:_.insertSectionDescription,text:_.insertSectionLabel,icon:"smallInsertSection",callback:t.hitch(this,"_insertSectionCallback")},{id:m.SECTIONS.RUN_SECTION_ACTION,enabled:!1,text:_.runSectionLabel,key:"ctrl_enter",platformKey:{mac:"meta_enter"},callback:t.hitch(this,"_evaluateSectionCallback")}];this._actionService.loadActions(E),this._addActionsToContextMenu()},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,m.SECTIONS.INSERT_SECTION_ACTION),this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,m.SECTIONS.RUN_SECTION_ACTION)},_updateActiveSection:function(){var e=this._cursorController.getCursors()[0],t=e.getPosition();if(t){var i=t.line;if(this.hasSection()){var n=this.getSectionNumber(i),o=this._sectionModel.getSections();this._activeSection=o[n]||{}}else this._activeSection={};this._actionService.updateAction(m.SECTIONS.RUN_SECTION_ACTION,{enabled:this.hasSection()});var r=!this._cursorController.hasMultipleCursors()&&!e.isCursorReadOnly();this._actionService.updateAction(m.SECTIONS.INSERT_SECTION_ACTION,{enabled:r})}},_evaluateSectionCallback:function(){return!!this._actionService.getAction(m.SECTIONS.RUN_SECTION_ACTION).enabled&&this.evaluateActiveSection()},_insertSectionCallback:function(){return!!this._actionService.getAction(m.SECTIONS.INSERT_SECTION_ACTION).enabled&&(this._publishingMarkup.insertSection(),!0)},hasSection:function(){return this._sectionModel.hasSection()},evaluateActiveSection:function(){if(!this._executionService||void 0===this._activeSection.start)return!1;var e=this._fileType.getFileType()===this._fileType.FILE_TYPE.ClassDefinitionFile;if(null!==this._backingStore&&void 0!==this._backingStore&&!!this._backingStore.isInstanceOf&&this._backingStore.isInstanceOf(l)&&!e)this._evaluateActiveSectionInFileContext();else{var t=this._getActiveSectionContents();this._executionService.executionEval(t)}return!0},_evaluateActiveSectionInFileContext:function(){var e=this._internalDocument.getLineNode(this._activeSection.start.getLine()-1),t=this._internalDocument.getLineNode(this._activeSection.end.getLine()-1),i=new u(e,0),n=new u(t,t.getText().length),o=this._backingStore.getFileName(),r=this._backingStore.getAbsoluteFilePath();r=r.substring(0,r.length-o.length);var a=this._document.getCodeText(),s=(c.getMATLABStringFromCodeText(a),this._getAbsoluteCodeOffsetFromPosition(this._internalDocument,i)+1),l=[o,r,a+"\n",s,this._getAbsoluteCodeOffsetFromPosition(this._internalDocument,n)+1-s,this._document.getState(),this._SECTION_EVAL_EDITOR_ID+this._evalUid];this._capabilityBlacklist.excludeCurrentCapabilitiesFromRunOptions(this._runOptions),this._mvm.feval(this._SECTION_EVALUATION_FUNCTION,0,l,this._runOptions)},_getActiveSectionContents:function(){var e="";if(void 0!==this._activeSection.start){var t=this._activeSection.start.node.startPosition(),i=this._activeSection.end.node.endPosition(),n=new h(t,i);e=this._internalDocument.getTextInRange(n)}return e},_getAbsoluteCodeOffsetFromPosition:function(e,t){return c.getAbsoluteCodeOffsetFromPosition(e,t)},getSectionNumber:function(e){var t,i=-1,n=this._sectionModel.getSections();for(t=n.length-1;t>=0;t-=1){var o=n[t].start.getLine()-1,r=n[t].end.getLine()-1;if(e>=o&&e<=r){i=t;break}}return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(378),i(1108),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{isApplicable:function(e){return t.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.internaldocument","rtc.document.info","rtc.code.sections.model","matlab.languageanalysis.sectionslistservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4184),i(281)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(e){return!n.isLiveCodeFile(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.internaldocument","rtc.view","rtc.code.sections.model","rtc.code.sections.current","rtc.view.decoration","rtc.viewready","rtc.position.controller"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)},priority:function(){return 1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(260),i(237),i(1108),i(373),i(334),i(362)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(i,{_VIEW_LAYER_CLASS:"sectionViewLayer",_SECTION_SEPARATOR_CLASS:"matlab_section_separator",_SECTION_TITLE_CLASS:"section_title",_ACTIVE_SECTION_CLASS:"active_cell",_IMPLICIT_SECTION_ATTRIBUTE:"implicitSection",_PRIORITY:30,constructor:function(e,i,n,o,r,a,s){this._internalDocument=e,this._view=i,this._sectionModel=n,this._currentSectionModel=o,this._decorator=r.createDecorator(),this._decorator.registerUpdateCallback(this._updateDecorationOnLine.bind(this)),this._layerDecorator=r.createLayerDecorator(this._VIEW_LAYER_CLASS,this._PRIORITY),this._positionController=s,this.own(t.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0)),this.own(t.after(this._internalDocument,"onDocumentReset",this._handleDocumentChanged.bind(this),!0)),this.own(t.after(this._view,"onViewUpdated",this._handleViewUpdated.bind(this),!0)),this.own(t.after(this._sectionModel,"onModelUpdated",this._updateSectionViewLayer.bind(this),!0)),this.own(t.after(this._sectionModel,"onAttributesUpdated",this._handleAttributesUpdate.bind(this),!0)),this.own(t.after(this._currentSectionModel,"onCurrentSectionChanged",this._updateSectionViewLayer.bind(this),!0)),this._timers=[],this._currentSeparators=[],this.own(t.after(a,"onViewReady",this._handleDocumentChanged.bind(this),!0))},_handleDocumentChanged:function(e){const t=setTimeout(function(){let i=0,o=this._internalDocument.getMaxLineNumber()-1;if(e){const t=n.finalLineRangeFromEvents(e);i=t.startLine,o=Math.min(o,t.endLine)}this._updateSectionTitleCss(i,o),this._timers.splice(this._timers.indexOf(t),1)}.bind(this),0);this._timers.push(t)},_handleViewUpdated:function(e){(!this._view.canScroll()||a.hasSizingEvent(e)||a.hasScrollEvent(e))&&this._updateSectionViewLayer()},_updateSectionViewLayer:function(){this._clearSeparators(),this._addSectionSeparators(),this._layerDecorator.applyChanges()},_handleAttributesUpdate:function(e){e===this._IMPLICIT_SECTION_ATTRIBUTE&&this._updateSectionViewLayer()},getSectionDimensions:function(e){var t=this._sectionModel.getSection(e);if(!t)return null;var i=s.getVerticalDimensionsBetweenPositions(t.start,t.end,this._view),n=e>0?1:0;return{top:i.top-this._view.getScrollTop()+n,height:i.height-n}},isSectionVisible:function(e){var t=this._sectionModel.getSection(e);return!!t&&(this._view.isLineVisible(t.start.getLine())||this._view.isLineVisible(t.end.getLine()))},_isSectionStartLine:function(e){if(e<1)return!1;var t=this._sectionModel.getSectionNumberForLine(e);return!(t<0)&&t!==this._sectionModel.getSectionNumberForLine(e-1)},_addSectionSeparators:function(){if(this._sectionModel.hasExplicitSection()){var e=s.getZeroBasedVisibleLineNumbers(this._view);this._addCurrentSectionSeparators(e),e.forEach(function(e){this._isSectionStartLine(e)&&this._createSeparatorForLine(e,this._SECTION_SEPARATOR_CLASS)}.bind(this))}},_addCurrentSectionSeparators:function(e){var t=this._currentSectionModel.getCurrentSection();if(t&&t.number>-1){var i=t&&t.start.getLine()-1;e.indexOf(i)>=0&&i>0&&this._createSeparatorForLine(i,this._SECTION_SEPARATOR_CLASS+" "+this._ACTIVE_SECTION_CLASS);var n=t&&t.end.getLine();this._isSectionStartLine(n)&&e.indexOf(n)>=0&&this._createSeparatorForLine(n,this._SECTION_SEPARATOR_CLASS+" "+this._ACTIVE_SECTION_CLASS)}},_createSeparatorForLine:function(e,t){var i=o.getRangeFromLineNumber(this._positionController,e);this._layerDecorator.addClass(i,[t]),this._currentSeparators.push(i)},_clearSeparators:function(){this._currentSeparators.forEach((function(e){this._layerDecorator.clearRange(e)}),this),this._currentSeparators=[]},_updateSectionTitleCss:function(e,t){const i=this._getLineToDecorationInfoMap(e,t);this._decorator.updateLineRange(e,t,i),this._decorator.applyChanges()},_getLineToDecorationInfoMap:function(e,t){const i={};for(let n=e;n<=t;n++){const e=this._internalDocument.getLineNode(n);r.hasSectionTitle(e.getText())&&(i[n]=[0,e.maxOffset()])}return i},_updateDecorationOnLine:function(e,t){l.updateClassesByLineDecorationInfo(e,t,[this._SECTION_TITLE_CLASS],this._decorator,this._internalDocument)},destroy:function(){this._clearSeparators(),this._timers.forEach((function(e){clearTimeout(e)})),this._timers=[],this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4186),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.document","rtc.code.sections.model","rtc.viewready"]}},createInstance:function(e,i,n,o){return new t(e,i,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(208),i(210),i(206),i(234),i(249),i(260)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return t(null,{constructor:function(e,t,o,r){this._internalDocument=e,this._document=t,this._sectionModel=o,this._aspectHandles=[],this._aspectHandles.push(n.after(this._document,"onChange",i.hitch(this,"_updateSectionsOnDocLength"),!0)),this._aspectHandles.push(n.after(this._internalDocument,"onDocumentChanged",i.hitch(this,"_updateSectionsOnFormatChange"),!0)),this._aspectHandles.push(n.after(r,"onViewReady",i.hitch(this,"_updateSections"))),this._aspectHandles.push(n.after(this._internalDocument,"onDocumentReset",i.hitch(this,"_updateSections")))},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]},_updateSectionsOnDocLength:function(e){l.hasEventType(e,s.NUMBER_OF_LINES_CHANGED)&&this._updateSections()},_updateSectionsOnFormatChange:function(e){l.hasEventType(e,s.FORMAT_CHANGE_EVENT)&&this._updateSections()},_updateSections:function(){var e=this._getSectionsAsLineNodes();this._sectionModel.resetSections(e)},_getSectionsAsLineNodes:function(){for(var e=[],t=this._internalDocument.startNode(),i=this._getNextStartCodeNode(t);i;){var n=this._getSectionEndNode(i);e.push({startNode:i,endNode:n}),i=this._getNextSection(n)}return e},_getNextStartCodeNode:function(e){return e&&!a.isCodeContainer(e)?this._getNextStartCodeNode(e.rootContainer().nextSibling()):e},_getSectionEndNode:function(e){if(!a.isCodeContainer(e))return null;var t=e.rootContainer().nextSibling();return t&&a.isCodeContainer(t)?this._getSectionEndNode(t):e},_getNextSection:function(e){return a.isCodeContainer(e)&&(e=this._getNextStartNonCodeNode(e)),this._getNextStartCodeNode(e)},_getNextStartNonCodeNode:function(e){return e&&a.isCodeContainer(e)?this._getNextStartNonCodeNode(e.rootContainer().nextSibling()):e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4188),i(281)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(e){return!!e.getFileName&&n.isLiveCodeFile(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.internaldocument","rtc.view","rtc.code.sections.model","rtc.code.sections.current","rtc.scrollpane"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(210),i(4189),i(4190),i(399),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([a,r],{constructor:function(e,t,i,n,o){this._internalDocument=e,this._view=t,this._sectionModel=i,this._currentSectionModel=n,this._scrollPane=o,this._addListeners()},_addListeners:function(){this._handles=[],this._handles.push(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_updateView"))),this._handles.push(i.after(this._view,"onLayoutChange",t.hitch(this,"_updateView"))),this._handles.push(i.after(this._currentSectionModel,"onCurrentSectionChanged",t.hitch(this,"_updateView"))),this._handles.forEach((function(e){this.own(e)}),this)},enableForHiddenCode:function(){this._addListeners(),this._updateView()},disableForHiddenCode:function(){this._removeListeners()},getSectionBreakCSS:function(){return"highlightborder"},getSectionDimensions:function(e){var t=this._getSectionBlock(e);if(!t)return null;var i={top:0,left:0,height:0,width:0},n=t.getBoundingClientRect(),o=this._scrollPane.getBoundingClientRect();return i.top=n.top-o.top,i.left=n.left-o.left,i.height=n.height,i.width=n.width,i},isSectionVisible:function(e){return!!this._getSectionBlock(e)},isLineOnSectionBorder:function(e){return!this._sectionModel.getSectionForLine(e)},areSectionBreaksNodes:function(){return!0},_getSectionBlock:function(e){var t=this._sectionModel.getSection(e);if(!t)return null;for(var i=t.start.getLine(),n=t.end.getLine(),o=i;o<=n;o+=1){var r=this._getSectionBlockForLine(o);if(r)return r}return null},_getSectionBlockForLine:function(e){if(!this._view.isLineVisible(e))return null;var t=this._internalDocument.getLineNode(e-1),i=s.getDomNode(t,this._view);return this._getSectionBlockFromDomNode(i)},_getSectionBlockFromDomNode:function(e){for(;e&&e!==this._scrollPane;){if(e.classList.contains("SectionBlock"))return e;e=e.parentNode}return null},_updateView:function(){var e=this._currentSectionModel.getCurrentSectionNumber();if(e<0)this._updateDecoration();else{var t=this._getSectionBlock(e);t&&(this._currentSectionDomNode=t,this._updateDecoration())}},_updateDecoration:function(){var e=this._getSectionBlocks();if(0!==e.length)for(var t=0;t<e.length;t+=1){var i=e[t],o=e[t-1],r=[];0===t?r.push("first"):i!==this._currentSectionDomNode&&o!==this._currentSectionDomNode||r.push("highlightborder"),i===this._currentSectionDomNode&&r.push("active"),n.replace(i,r,["active","first","highlightborder"])}},_getSectionBlocks:function(){return o(".rootNode > .SectionBlock",this._scrollPane)},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},destroy:function(){this.inherited(arguments),this._removeListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(225),i(220),i(485)],o=i.dj.d(n,(function(e,t){return t(e,"lite",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{getSectionDimensions:function(e){throw new Error("Unimplemented method : getSectionDimensions")},isSectionVisible:function(e){throw new Error("Unimplemented method : isSectionVisible")},isLineOnSectionBorder:function(e){throw new Error("Unimplemented method : isLineOnSectionBorder")},getSectionBreakCSS:function(){throw new Error("Unimplemented method : getSectionBreakCSS")},areSectionBreaksNodes:function(){throw new Error("Unimplemented method : areSectionsBreaksNodes")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4192),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.cursor","rtc.cursorcontroller","rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.code.sections.model","rtc.markup.publishingmarkup"]}},createInstance:function(e,i,n,o,r,a,s){return new t(e,i,n,o,r,a,s)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(221),i(207),i(294),i(253)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{_INSERT_ACTION_ID:"rtc_insert_sectionbreak",_CONTEXT_MENU_GROUP:r.SECTIONS,constructor:function(e,n,o,r,s,l,c){this._cursorController=o,this._actionService=r,this._contextMenuContributor=s,this._sectionModel=l,this._internalDocument=e,this._publishingMarkup=c,this.own(i.after(n,"onChange",t.hitch(this,"_updateActiveSection"))),this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_updateActiveSection"))),this.own(i.after(this._sectionModel,"onModelUpdated",t.hitch(this,"_updateActiveSection")));var d=[{id:this._INSERT_ACTION_ID,key:"ctrl_alt_enter",platformKey:{mac:"meta_alt_enter"},enabled:!0,text:a.insertSectionLabel,callback:t.hitch(this,"_insertSectionBreak")}];this._actionService.loadActions(d),this._addActionsToContextMenu()},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,this._INSERT_ACTION_ID)},_updateActiveSection:function(){var e=this._cursorController.getCursors()[0];if(e.getPosition()){var t=!this._cursorController.hasMultipleCursors()&&!e.isCursorReadOnly();this._actionService.updateAction(this._INSERT_ACTION_ID,{enabled:t})}},_insertSectionBreak:function(){return!!this._actionService.getAction(this._INSERT_ACTION_ID).enabled&&(this._publishingMarkup.insertSection(),!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4194),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.cursorcontroller","rtc.actionservice","rtc.view","rtc.code.sections.model","rtc.code.sections.current","rtc.code.sections.view.section"]}},createInstance:function(e,i,n,o,r,a){return new t(e,i,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(270),i(1979)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_CHECK_FULLY_ONSCREEN:!0,_SECTION_TOP_PERCENT:3,constructor:function(e,t,i,n,o,r){this._sectionModel=n,this._currentSectionModel=o,this._sectionView=r,this.enable()},_updateActionState:function(){var e=null!=this._currentSectionModel.getNextSection(),t=null!=this._currentSectionModel.getPreviousSection();this._actionService.updateAction(this._NEXT_ACTION_ID,{enabled:e}),this._actionService.updateAction(this._PREVIOUS_ACTION_ID,{enabled:t})},_addListeners:function(){this._handles=[],this._handles.push(t.after(this._currentSectionModel,"onCurrentSectionChanged",this._updateActionState.bind(this))),this._handles.forEach((function(e){this.own(e)}),this)},_moveToPrevious:function(){this._cursorController.clearSelection();var e=this._cursorController.getPositions()[0],t=this._currentSectionModel.getCurrentSection().start,i=t.getLineColumn();if(e.line+1!==i.line||e.column+1!==i.column)return this._setCursorToPosition(t);var n=this._currentSectionModel.getPreviousSection();return!n||!n.start.getNode()||this._setCursorToPosition(n.start)},_moveToNext:function(){var e=this._currentSectionModel.getNextSection();if(!e||!e.start.getNode())return!0;var t=e.start.getNode(),n=this._currentSectionModel.getCurrentSectionNumber(),o=this._sectionModel.getSection(n),r=null;this._cursorController.clearSelection(),this._cursorController.setPositions([new i(t,0)]);var a=n+2,s=this._view.getClientHeight(),l=this._sectionView.getSectionDimensions(n+1).height,c=this._sectionModel.getSection(a),d=null,u=!1,h=!1;if(c&&(d=c.start.getNode(),u=this._view.isNodeInView(d,this._CHECK_FULLY_ONSCREEN),h=this._view.isNodeInView(t,this._CHECK_FULLY_ONSCREEN)),!u||!h){if(s>l){var p=this._sectionView.getSectionDimensions(n);r=p&&p.height+l<s?o.start.getNode():t}else r=t;this._view.scrollNodeToPercent(r,this._SECTION_TOP_PERCENT)}return!0},_setCursorToPosition:function(e){var t=e.getNode();return this._cursorController.setPositions([new i(t,0)]),this._view.isNodeInView(t,this._CHECK_FULLY_ONSCREEN)||this._view.scrollNodeToPercent(t,this._SECTION_TOP_PERCENT),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4196)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.actionservice","rtc.view","rtc.documentfragment.model","rtc.slides.slidecontroller"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(270),i(1979)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t,i,n,o){this._documentFragmentModel=n,this._slideController=o},_updateActionState:function(){var e=this._slideController.getCurrentSlideNumber(),t=e<this._slideController.getMaximumSlideNumber(),i=e>1;this._actionService.updateAction(this._NEXT_ACTION_ID,{enabled:t}),this._actionService.updateAction(this._PREVIOUS_ACTION_ID,{enabled:i})},_addListeners:function(){this._handles=[],this._handles.push(t.after(this._slideController,"onCurrentSlideUpdated",this._updateActionState.bind(this))),this._handles.forEach((function(e){this.own(e)}),this)},_moveToPrevious:function(){this._cursorController.clearSelection();var e=this._slideController.getCurrentSlideNumber(),t=this._documentFragmentModel.getDocumentFragments()[e-2];return!t||this._setCursorToNode(t)},_moveToNext:function(){this._cursorController.clearSelection();var e=this._slideController.getCurrentSlideNumber(),t=this._documentFragmentModel.getDocumentFragments()[e];return!t||(this._cursorController.clearSelection(),this._setCursorToNode(t))},_setCursorToNode:function(e){return this._cursorController.setPositions([new i(e,0)]),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4198),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.document","rtc.code.sections.model","rtc.viewready"]}},createInstance:function(e,i,n,o){return new t(e,i,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(249),i(260),i(274),i(473)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(n,{constructor:function(e,n,o,r){this._internalDocument=e,this._document=n,this._sectionModel=o,this.own(i.after(e,"onDocumentChanged",t.hitch(this,"_handleDocumentChanged"),!0)),this.own(i.after(e,"onDocumentReset",t.hitch(this,"_handleDocumentReset"))),this.own(i.after(r,"onViewReady",t.hitch(this,"_handleDocumentReset")))},_handleDocumentChanged:function(e){r.hasLengthChangingEvent(e)&&this._updateSections()},_handleDocumentReset:function(){this._updateSections()},_updateSections:function(){var e=this._getSectionsAsLineNodes();this._sectionModel.resetSections(e)},_getSectionsAsLineNodes:function(){for(var e=[],t=null,i=null,n=this._internalDocument.getMaxLineNumber(),o=0;o<n;o+=1){var r=this._internalDocument.getLineNode(o),l=a.isInType(r,s);l||(t||(t=r),i=r),(l||o===n-1)&&(t&&i)&&(e.push({startNode:t,endNode:i}),t=null,i=null)}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4200),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.code.sections.model","rtc.position.controller","rtc.code.codechange","rtc.code.codecontent","rtc.executionservice.statehandler","rtc.allfunctionnotifier","rtc.code.matlabfiletype"]}},createInstance:function(e,i,n,o,r,a,s,l){return new t(e,i,n,o,r,a,s,l)},destroyInstance:function(e){this.inherited(arguments),e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(282),i(234),i(274),i(313),i(266),i(925),i(581),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(n,{constructor:function(e,n,o,r,a,s,l,c){this._sectionModel=n,this._stateHandler=s,this._codeChangeService=r,this._positionController=o,this._codeContent=a,this._internalDocument=e,this._functionNotifier=l,this._fileTypeService=c,this._previousFunctionRange=null,this._upperBoundaryPosition=null,this._stalePositionInfoMap=new Map,this._pendingStalePositions=[],this._latestCompletedSectionNumber=null,this._isEnabled=!0,this._sectionNumbersWithDeletedCode=[],this.own(i.after(this._internalDocument,"onDocumentReset",t.hitch(this,"_clearAllStalePositionsAndEmitEvent"))),this.own(i.after(this._codeChangeService,"onCodeChanged",t.hitch(this,"_codeChangeListener"),!0)),this.own(i.after(this._stateHandler,"onStateChanged",t.hitch(this,"_stateChangeListener"),!0)),this.own(i.after(this._functionNotifier,"onValidFunctionsChange",t.hitch(this,"_handleValidFunctionChange"),!0)),this.own(i.after(this._fileTypeService,"onFileTypeChange",t.hitch(this,"_clearStalenessForFileTypeChange")))},destroy:function(){this.inherited(arguments),this._previousFunctionRange&&(this._previousFunctionRange.destroy(),this._previousFunctionRange=null),this._stalePositionInfoMap.clear(),this._upperBoundaryPosition&&this._positionController.deletePosition(this._upperBoundaryPosition)},onModelUpdated:function(e){},getEnablement:function(){return this._isEnabled},setEnablement:function(e){var t=this._isEnabled;return this._isEnabled=e,t},isSectionStale:function(e){if(this._fileTypeService.isClass()||this._fileTypeService.isFunction())return!1;var t=this._sectionModel.getSection(e);if(!t)return!1;if(-1!==this._sectionNumbersWithDeletedCode.indexOf(e))return!0;for(var i=t.start.getLine()-1,n=t.end.getLine()-1,o=i;o<=n;o++){var r=this._internalDocument.getLineNode(o);if(this._getStalePositionInfo(r))return!0}return!1},getStaleSectionNumbers:function(){const e=new Set;return this._sectionNumbersWithDeletedCode.forEach(t=>{e.add(t)}),this._stalePositionInfoMap.forEach(t=>{const i=t.position.getNode(),n=this._sectionModel.getSectionNumberForNode(i);e.add(n)}),[...e]},_codeChangeListener:function(e,t){if(!t&&this._isEnabled&&!this._fileTypeService.isClass()){this._processPendingStalePositions();var i=[],n=function(e){if(-1===i.indexOf(e)){var t=0;i.some((function(i){if(i<e)return t+=1,!0})),i.splice(t,0,e)}}.bind(this),o=function(t){var i=this._sectionModel.getSectionNumberForLine(t);-1!==i&&n(i-e.numberOfDeletedSections)}.bind(this);if(e.deletedCodeLines.length&&(o(e.deletedCodeLines[0]),e.deletedCodeLines.length>1&&!e.numberOfDeletedSections)){var a=this._sectionModel.getSectionNumberForLine(e.deletedCodeLines[0])+1;n(a)}e.formerCodeLines.forEach((function(e){o(e)}),this),this._sectionNumbersWithDeletedCode=i;var s=e.changedCodeLineNodes.filter((function(t){return!(!r.isCodeContainer(t)||this._nodeInFunction(t))&&(n(this._sectionModel.getSectionNumberForNode(t)-e.numberOfDeletedSections),!0)}),this);this._setNodesStale(s),this.onModelUpdated(i)}},_processPendingStalePositions:function(){var e=o.createSet();this._pendingStalePositions.forEach((function(t){var i=t.getNode();i&&(i.parent?e.add(t.getNode()):this._clearStalePosition(t))}),this),this._pendingStalePositions=[],this._clearDuplicateStalePositions(e)},_clearDuplicateStalePositions:function(e){e.forEach((function(e){var t=!1;s.getPositions(e).forEach((function(e){this._stalePositionInfoMap.has(e)&&(t?this._clearStalePosition(e):t=!0)}),this)}),this)},_clearStalenessForFileTypeChange:function(){this._fileTypeService.isClass()||this._fileTypeService.isFunction()?this._clearAllStalePositionsAndEmitEvent():this.onModelUpdated()},_handleValidFunctionChange:function(e){this._clearStalenessFromFunctions(e),this.onModelUpdated()},_clearStalenessFromFunctions:function(e){var t=this._getFunctionRange(e);if(this._hasFunctionRangeShrunk(t)){var i=this._getRangeDiffForFunctions(t);this._setPreviousFunctionNodesStale(i)}else this._clearStalenessFromLineRange(t);if(this._updateUpperBoundaryPosition(t),this._previousFunctionRange&&(this._previousFunctionRange.destroy(),this._previousFunctionRange=null),t){var n=this._positionController.createLinePositionInLine(t.startLine,!1,!0),o=this._positionController.createLinePositionInLine(t.endLine,!1,!0);this._previousFunctionRange=new l(n,o)}},_getFunctionRange:function(e){var t=this._getFunctionsFromEvent(e),i=null,n=null;t&&t.length>0&&t[0].isTopLevelFunction()?(i=[t[0]],n=t.slice(1)):n=t;var o=null;if(n&&n.length>0&&(o=n),!i&&!o)return null;var r={startLine:null,endLine:null};return i&&(r.startLine=0,r.endLine=i[0].getEndLine()-1),o&&(i||(r.startLine=o[0].getStartLine()-1),r.endLine=this._internalDocument.getMaxLineNumber()-1),r},_getFunctionsFromEvent:function(e){var t;switch(e.type){case c.VALID_FUNCTIONS_REMOVED:t=[];break;case c.VALID_FUNCTIONS_ADDED:case c.VALID_FUNCTIONS_CHANGED:case c.FUNCTIONS_ON_VALID_DOCUMENT_CHANGE:t=e.validFunctions}return t},_hasFunctionRangeShrunk:function(e){if(!e)return!0;if(!this._upperBoundaryPosition||!this._upperBoundaryPosition.isValid())return!1;var t=e.startLine,i=this._upperBoundaryPosition.getLine();return-1!==i&&(t>i||void 0)},_getRangeDiffForFunctions:function(e){if(!e&&!this._previousFunctionRange)return null;if(!e&&this._previousFunctionRange)return{startLine:this._previousFunctionRange.getStartPosition().getLine()-1,endLine:this._previousFunctionRange.getEndPosition().getLine()-1};var t=e.startLine;return{startLine:this._upperBoundaryPosition.getLine(),endLine:t-1}},_updateUpperBoundaryPosition:function(e){this._upperBoundaryPosition&&this._positionController.deletePosition(this._upperBoundaryPosition),e&&(this._upperBoundaryPosition=this._positionController.createLinePositionInLine(e.startLine,!1,!0))},_setPreviousFunctionNodesStale:function(e){if(e){for(var t=[],i=e.startLine;i<=e.endLine;i+=1){var n=this._internalDocument.getLineNode(i);r.isCodeContainer(n)&&t.push(n)}this._setNodesStale(t)}},_nodeInFunction:function(e){if(!this._previousFunctionRange)return!1;if(this._internalDocument.getLineNumber(e)>=this._previousFunctionRange.getStartPosition().getLine()-1)return!0;var t=this._sectionModel.getSectionForNode(e);return!!t&&(!!t[d.TOP_LEVEL_FUNCTION_ATTRIBUTE]||!!t[d.LOCAL_FUNCTION_ATTRIBUTE])},_setNodesStale:function(e){e.length>0&&e.forEach(this._setNodeStale,this)},_setNodeStale:function(e){var t=this._getStalePositionInfo(e);t?t.count++:this._createStalePositionInfo(e)},_createStalePositionInfo:function(e){var t=this._positionController.createLinePosition(e,!1,!0),i=this._handleStalePositionChange.bind(this,t);t.addChangeListener(i);var n={position:t,count:2};return this._stalePositionInfoMap.set(t,n),n},_handleStalePositionChange:function(e,t){t.nodeHasChanged&&this._pendingStalePositions.push(e)},_stateChangeListener:function(e,t){switch(e){case this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED:this._normalizeStaleness(),this._clearEmptySections(),this.onModelUpdated();break;case this._stateHandler.CHANGE_TYPE_ENUM.SECTION_EVAL_COMPLETE:var i=t;this._clearEmptyLinesInSectionNumber(i),this._setSectionUpToDate(i),this._latestCompletedSectionNumber=i,this.onModelUpdated();break;case this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE:this._updateMissedSections(t.requestedEvaluationRange,t.didRunToCompletion,this._latestCompletedSectionNumber),this._latestCompletedSectionNumber=null,this._sectionNumbersWithDeletedCode=[],this._normalizeStaleness()}},_sectionIsEmpty:function(e){var t=a.getParagraphNodesInRange(e.start.getNode(),e.end.getNode());return t=t.filter(r.isCodeContainer,r),!this._codeContent.lineNodesContainCode(t)},_clearEmptySections:function(){this._sectionModel.getSections().forEach((function(e,t){this._sectionIsEmpty(e)&&this._setSectionUpToDate(t)}),this)},_setSectionUpToDate:function(e){var t=this._sectionModel.getSection(e);if(t){var i=this._sectionNumbersWithDeletedCode.indexOf(e);-1!==i&&this._sectionNumbersWithDeletedCode.splice(i,1),this._setRangeUpToDate(t.start.getLine()-1,t.end.getLine()-1)}},_setRangeUpToDate:function(e,t){for(var i=e;i<=t;i++){var n=this._internalDocument.getLineNode(i),o=this._getStalePositionInfo(n);o&&this._setStaleNodeUpToDate(o)}},_setStaleNodeUpToDate:function(e){return e.count--,0!==e.count||(this._clearStalePosition(e.position),!1)},_updateMissedSections:function(e,t,i){if(t&&null!==i){var n=this._sectionModel.getSection(i+1);if(n){var o=n.start.line,r=e.getEndPosition().line;o<=r&&(this._setRangeUpToDate(o,r),this.onModelUpdated())}}},_normalizeStaleness:function(){this._stalePositionInfoMap.forEach((function(e){e.count=e.count>0?1:0}))},_clearEmptyLinesInSectionNumber:function(e){var t=this._sectionModel.getSection(e);t&&a.getParagraphNodesInRange(t.start.getNode(),t.end.getNode()).forEach((function(e){this._lineIsEmpty(e)&&this._clearStalenessFromNode(e)}),this)},_lineIsEmpty:function(e){return!this._codeContent.lineNodesContainCode([e])},_getStalePositionInfo:function(e){if(!e)return null;if(this._stalePositionInfoMap.size<=s.getNumberOfPositions(e)){for(let[t,i]of this._stalePositionInfoMap)if(t.getNode()===e)return i;return null}const t=s.getPositions(e);let i=null;return t.some((function(e){const t=this._stalePositionInfoMap.get(e);if(t)return i=t,!0}),this),i},_clearStalenessFromLineRange:function(e){if(e){this._sectionNumbersWithDeletedCode=this._sectionNumbersWithDeletedCode.filter((function(t){var i=this._sectionModel.getSection(t);if(!i||e.startLine<=i.start.line&&e.endLine>=i.end.line)return!0}),this);for(var t=e.startLine;t<=e.endLine;t++){var i=this._internalDocument.getLineNode(t);this._clearStalenessFromNode(i)}}},_clearStalenessFromNode:function(e){s.getPositions(e).forEach((function(e){this._stalePositionInfoMap.has(e)&&this._clearStalePosition(e)}),this)},_clearAllStalePositionsAndEmitEvent:function(){this._stalePositionInfoMap.forEach((function(e){this._clearStalePositionInfo(e)}),this),this._stalePositionInfoMap.clear(),this._pendingStalePositions=[],this._sectionNumbersWithDeletedCode=[],this.onModelUpdated()},_clearStalePosition:function(e){var t=this._stalePositionInfoMap.get(e);this._clearStalePositionInfo(t),this._stalePositionInfoMap.delete(e)},_clearStalePositionInfo:function(e){this._positionController.deletePosition(e.position)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4202)],o=i.dj.d(n,(function(e,t){return class extends e{createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(1415),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n){return class extends t{isStartToken(t){return e.assert(t,"Invalid token received"),n.isTokenStartOfBlock(t)||this._isOpeningBracket(t)}isMidToken(t){return e.assert(t,"Invalid token received"),n.isTokenStartOfMidBlock(t)}isEndToken(t){return e.assert(t,"Invalid token received"),n.isTokenEndOfBlock(t)||this._isClosingBracket(t)}areMatchingTokens(t,n){e.assert(t,"Invalid first token received"),e.assert(n,"Invalid second token received");let o=t.getType(),r=n.getType();switch(r===i.TOKENS.END&&(r=o,o=i.TOKENS.END),o){case i.TOKENS.LP:return r===i.TOKENS.RP;case i.TOKENS.RP:return r===i.TOKENS.LP;case i.TOKENS.LB:return r===i.TOKENS.RB;case i.TOKENS.RB:return r===i.TOKENS.LB;case i.TOKENS.LC:return r===i.TOKENS.RC;case i.TOKENS.RC:return r===i.TOKENS.LC;case i.TOKENS.IF:return[i.TOKENS.ELSE,i.TOKENS.ELSEIF].indexOf(r)>=0;case i.TOKENS.TRY:return r===i.TOKENS.CATCH;case i.TOKENS.SWITCH:return[i.TOKENS.CASE,i.TOKENS.OTHERWISE].indexOf(r)>=0;case i.TOKENS.ELSEIF:return[i.TOKENS.IF,i.TOKENS.ELSEIF,i.TOKENS.ELSE].indexOf(r)>=0;case i.TOKENS.ELSE:return[i.TOKENS.IF,i.TOKENS.ELSEIF].indexOf(r)>=0;case i.TOKENS.CATCH:return r===i.TOKENS.TRY;case i.TOKENS.CASE:return[i.TOKENS.SWITCH,i.TOKENS.CASE,i.TOKENS.OTHERWISE].indexOf(r)>=0;case i.TOKENS.OTHERWISE:return[i.TOKENS.SWITCH,i.TOKENS.CASE].indexOf(r)>=0;case i.TOKENS.END:return[i.TOKENS.FOR,i.TOKENS.WHILE,i.TOKENS.PARFOR,i.TOKENS.SPMD,i.TOKENS.IF,i.TOKENS.TRY,i.TOKENS.SWITCH,i.TOKENS.CLASSDEF,i.TOKENS.METHODS,i.TOKENS.PROPERTIES,i.TOKENS.ENUMERATION,i.TOKENS.EVENTS,i.TOKENS.FUNCTION,i.TOKENS.ELSEIF,i.TOKENS.ELSE,i.TOKENS.CATCH,i.TOKENS.CASE,i.TOKENS.OTHERWISE,i.TOKENS.NESTED,i.TOKENS.ARGUMENTS_BLOCK].indexOf(r)>=0}return!1}isMismatchAllowed(t){return e.assert(t,"Invalid token received"),t.getType()===i.TOKENS.FUNCTION}isTokenOfInterestForMatching(e,t){return!n.isEndOfLineToken(t)&&this.areSameClassOfBlockToken(e,t)}areSameClassOfBlockToken(e,t){const n=e.getType(),o=t.getType();switch(n){case i.TOKENS.LP:case i.TOKENS.RP:return o===i.TOKENS.LP||o===i.TOKENS.RP;case i.TOKENS.LB:case i.TOKENS.RB:return o===i.TOKENS.LB||o===i.TOKENS.RB;case i.TOKENS.LC:case i.TOKENS.RC:return o===i.TOKENS.LC||o===i.TOKENS.RC;default:return o!==i.TOKENS.LP&&o!==i.TOKENS.RP&&o!==i.TOKENS.LB&&o!==i.TOKENS.RB&&o!==i.TOKENS.LC&&o!==i.TOKENS.RC}}_isOpeningBracket(t){e.assert(t,"Invalid token received");const n=t.getType();return n===i.TOKENS.LP||n===i.TOKENS.LB||n===i.TOKENS.LC}_isClosingBracket(t){e.assert(t,"Invalid token received");const n=t.getType();return n===i.TOKENS.RP||n===i.TOKENS.RB||n===i.TOKENS.RC}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4204)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.view.decoration","matlab.code.variables.service","rtc.view.decoration.descriptorsstore"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(236),i(208),i(207),i(817),i(1343)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_HIGHLIGHT_CSS_CLASS:[o.NON_LOCAL_VARIABLE_HIGHLIGHTING],constructor:function(e,t,n,o){this._variableService=n,this._descriptorsStore=o,this._nonVariableHighlightEnabled=!0,this.own(i.after(this._variableService,"onVariablesUpdated",this._updateHighlights.bind(this)))},_updateHighlights:function(){if(this._nonVariableHighlightEnabled){var e=this._variableService.getNonlocalVariableInstances();this.updateDecorations(e)}},enable:function(e){this._HIGHLIGHT_CSS_CLASS=e,this._nonVariableHighlightEnabled=!0,this._updateHighlights()},disable:function(){this._nonVariableHighlightEnabled=!1,this.updateDecorations([])},getNonlocalInstance:function(e){return this._variableService.getNonLocalInstanceData(e)},_isInstancesSameAsLast:function(e){var t=this.inherited(arguments);if(t){if(0===e.length)return!0;var i=e[0],n=this._internalDocument.getRangeForLineColumn(i.startLine+1,i.startColumn+1,i.endLine+1,i.endColumn+1),o=this._descriptorsStore.getForRange(n);return o.some((function(e){if(e.getClasses().hasOwnProperty(this._HIGHLIGHT_CSS_CLASS))return!0}),this)}return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4206)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.settings.service","matlab.code.variables.nonlocalhighlighting","rtc.view.styles.globalstylechanger"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1981),i(817)],o=i.dj.d(n,(function(e,t,i){return e(t,{_HIGHLIGHT_CSS_CLASS:[i.NON_LOCAL_VARIABLE_HIGHLIGHTING],_HIGHLIGHT_COLOR:"matlab.colors.programmingtools.VariablesWithSharedScopeColor",_HIGHLIGHT_CHECKBOX:"matlab.colors.programmingtools.ShowVariablesWithSharedScope",_CLASS_SELECTORS:".rtePane ."+i.NON_LOCAL_VARIABLE_HIGHLIGHTING+":not(."+i.VARIABLE_HIGHLIGHT+")",_getCSSRules:function(){return[{name:"color",value:this.highlightRgbColor},{name:"-moz-color",value:this.highlightRgbColor},{name:"-o-color",value:this.highlightRgbColor}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4208)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursorcontroller","matlab.code.variables.nonlocalhighlighting","rtc.service.contextsensitivehelp"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4209),i(236),i(234),i(237),i(1950),i(1406),i(1097)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){const l={persistent:"var_persist",nonlocal:"var_nonlocal"};return e(s,{constructor:function(e,t,i,n){this._internalDocument=e,this._cursor=t.getCursors()[0],this._nonlocalHighlighting=i,this._contextSensitiveHelp=n,this._extendedHelpUrls={},this._initializeExtendedHelpUrls()},priority:function(){return 3},getTooltipContent:function(e,t,i){var n;if(this._isValidTargetNode(e)){var o=this._nonlocalHighlighting.getNonlocalInstance(t.getLineColumn());if(o&&!o.isGlobal){var r=this._createTooltipContent(o,t);r&&(n=r.tooltipContentNode,r.hideDivider()),i(n,!0)}else i(void 0)}else i(void 0)},_createTooltipContent:function(e,t){var i=o.getWordAtPosition(this._internalDocument,t),n={message:new r(this._getTooltipMessageToken(e,i.text)),className:"nonlocalVariableHighlightTooltip"};return new a(n)},_getTooltipMessageToken:function(e,n){var o={message:"",extendedHelpUrl:" "};return e.isPersistent?(o.message=i.substitute(t.persistentTooltipMessage,{0:n}),o.extendedHelpUrl=this._extendedHelpUrls[l.persistent]):e.isUsedAcrossFunctions&&(o.message=i.substitute(t.usedAcrossFunctionsTooltipMessage,{0:n}),o.extendedHelpUrl=this._extendedHelpUrls[l.nonlocal]),o},_initializeExtendedHelpUrls:function(){const e=Object.values(l);this._populateExtendedHelpUrls(e).then(()=>{setTimeout(this._populateExtendedHelpUrls.bind(this,e),1e4)})},_populateExtendedHelpUrls:function(e){return this._contextSensitiveHelp.getContextSensitiveHelp(e).then(t=>{e.forEach((e,i)=>{this._extendedHelpUrls[e]=t[i]})})},_isValidTargetNode:function(e){return n.isCodeContainer(e.parent)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(4210),i(4211),i(4212),i(4213)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/nonlocalVariableMessages",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={persistentExtendedTooltipMessage:'<strong>追加情報</strong><br/><p>永続と宣言された変数は、宣言を行った関数に対してローカルですが、MATLAB ではその関数に対する複数の呼び出し間で値がメモリに維持されます。永続変数は、宣言を行った関数内でのみ参照できます。このため、他の関数や MATLAB コマンド ラインで、永続変数の値が変更されることはありません。</p><p> メモリ内の関数を消去したり、変更したりすると、この関数によって宣言された永続変数もすべて消去されます。MATLAB を終了するまで関数をメモリ内に保持するには、<code><a href="matlab:doc mlock" target="_blank">mlock</a></code> を使用します。 </p><p> 次の場合、MATLAB ではエラーが返されます。<ul><li><p>変数を永続として宣言する際に、同じ名前の変数が現在のワークスペース内に存在する場合。</p></li><li><p>変数を関数の入力引数または出力引数として指定し、次にこの変数を同じ関数内で永続として宣言しようとする場合。たとえば、次の persistent 宣言は無効です: </p><p><code>function&nbsp;myfun(argA)<br/>persistent&nbsp;argA</code></p></li></ul></p><p>変数とそのワークスペースの詳細については、「<a href="matlab:helpview([docroot \'/techdoc/matlab_prog/matlab_prog.map\'],\'persistent_variables\')" target="_blank">永続変数</a>」を参照してください。</p><br/>',persistentTooltipMessage:"変数 '${0}' のスコープは同じ関数に対する複数の呼び出し間で変わりません。",usedAcrossFunctionsExtendedTooltipMessage:"<strong>追加情報</strong><br/><p>入れ子関数内の変数には、直接の関数だけでなく、他の関数もアクセスすることができます。入れ子関数内で値を割り当てたり、使用したりする変数 <code>x</code> は、この入れ子関数を含み <code>x</code> にアクセス可能な一番外側の関数のワークスペース内に格納されます。このため、<code>x</code> のスコープは、ワークスペースを所有する関数と、この関数内の任意のレベルにある入れ子関数となります。</p><p>この方法で意図的に変数を使用する場合、問題はありません。たとえば、入れ子関数に関する MATLAB Programming デモを参照してください。</p><p>ただし、この方法で意図せず変数を使用する場合は、予期しない動作が発生する可能性があります。強調表示によって変数のスコープが複数の関数にまたがっていることが示されており、これが意図的でない場合は、以下を検討してください。</p><ul><li><p>入れ子関数の変数名を変更して、外側の関数の変数名と一致しないようにする。</p></li><li><p>入れ子関数内で直接変数を使用する代わりに、入力引数として関数に変数を渡す。</p></li></ul><p>詳細については、「<a href=\"matlab:helpview([docroot '/techdoc/matlab_prog/matlab_prog.map'],'nested_functions_scope')\" target=\"_blank\">入れ子関数の変数のスコープ</a>」を参照してください。</p><br/>",usedAcrossFunctionsTooltipMessage:"変数 '${0}' のスコープは複数の関数にまたがります。"}},function(e,t,i){e.exports={persistentExtendedTooltipMessage:'<strong>추가 정보</strong><br/><p>영속 변수로 선언된 변수는 그 변수를 선언한 함수에 대해서는 로컬 변수입니다. 그러나 MATLAB은 해당 함수에 대한 호출 사이에 그 변수의 값을 메모리에 유지합니다. 영속 변수는 그 변수를 선언한 함수에서만 인식됩니다. 따라서 다른 함수나 MATLAB 명령줄에서 영속 변수의 값을 변경할 수 없습니다.</p><p> 메모리에 있는 함수를 지우거나 수정하면 MATLAB 또한 그 함수에 선언된 영속 변수를 모두 지웁니다. MATLAB을 종료할 때까지 함수를 메모리에 유지하려면 <code><a href="matlab:doc mlock" target="_blank">mlock</a></code>을 사용하십시오. </p><p> MATLAB은 다음과 같은 경우 오류를 반환합니다.<ul><li><p>변수를 영속 변수로 선언하려 할 때, 같은 이름을 가진 다른 변수가 현재 작업 공간에 있는 경우. </p></li><li><p>변수를 함수의 입력 인수나 출력 인수로 지정한 다음 동일한 함수 내에서 그 변수를 영속 변수로 선언하려고 할 경우. 예를 들어, 다음과 같은 persistent 선언은 유효하지 않습니다. </p><p><code>function&nbsp;myfun(argA)<br/>persistent&nbsp;argA</code></p></li></ul></p><p>변수와 작업 공간에 대한 자세한 내용은 <a href="matlab:helpview([docroot \'/techdoc/matlab_prog/matlab_prog.map\'],\'persistent_variables\')" target="_blank">영속 변수</a>를 참조하십시오.</p><br/>',persistentTooltipMessage:"'${0}' 변수의 범위는 동일한 함수에 대한 여러 호출에서 유지됩니다.",usedAcrossFunctionsExtendedTooltipMessage:"<strong>추가 정보</strong><br/><p>중첩 함수 내에 있는 변수는 그 변수의 직속 함수 외에 다른 함수에서도 액세스할 수 있습니다. 값을 대입하거나 중첩 함수 내에서 사용하는 변수 <code>x</code>는 중첩 함수를 포함하는 동시에 <code>x</code>에 액세스할 수 있는 가장 바깥쪽 함수의 작업 공간에 있습니다. 따라서 <code>x</code>의 범위는 이 작업 공간이 속한 함수와, 그 함수 내 어떤 수준으로든 중첩된 모든 함수입니다.</p><p>변수를 의도적으로 이와 같이 사용할 경우에는 문제가 되지 않습니다. 예제를 보려면 MATLAB Programming Demo on Nested Functions를 참조하십시오.</p><p>그러나 의도치 않게 변수를 이와 같이 사용할 경우 예기치 않은 동작이 발생할 수 있습니다. 변수의 범위가 여러 함수에 걸쳐 있다고 강조 표시되는 경우 그것이 의도한 바가 아니면 다음을 고려해 보십시오.</p><ul><li><p>중첩 함수의 변수 이름을 바깥쪽 함수의 변수 이름과 일치하지 않도록 바꿉니다.</p></li><li><p>변수를 중첩 함수 내에서 직접 사용하는 대신 함수에 입력 인수로 전달합니다.</p></li></ul><p>자세한 내용은 <a href=\"matlab:helpview([docroot '/techdoc/matlab_prog/matlab_prog.map'],'nested_functions_scope')\" target=\"_blank\">Variable Scope in Nested Functions</a>를 참조하십시오.</p><br/>",usedAcrossFunctionsTooltipMessage:"'${0}' 변수는 여러 함수에 걸쳐 사용됩니다."}},function(e,t,i){e.exports={persistentExtendedTooltipMessage:'<strong>附加信息</strong><br/><p>声明为持久变量的变量是声明它的函数的局部变量;然而,MATLAB 在多次调用该函数的过程中,会将它的值保留在内存中。持久变量仅对声明它们的函数可知。这可以防止其他函数或 MATLAB 命令行更改持久变量的值。</p><p>当您清除或修改内存中的函数时,MATLAB 会同时清除该函数声明的所有持久变量。要在 MATLAB 退出之前将函数保留在内存中,请使用 <code><a href="matlab:doc mlock" target="_blank">mlock</a></code>。</p><p>在以下情况下,MATLAB 将返回错误:<ul><li><p>您尝试将变量声明为持久变量,而当前工作区中存在另一个同名变量。</p></li><li><p>您将某个变量指定为函数输入或输出参数,然后尝试将该变量声明为同一函数内的持久变量。例如,以下持久变量声明无效: </p><p><code>function&nbsp;myfun(argA)<br/>persistent&nbsp;argA</code></p></li></ul></p><p>有关变量和工作区的详细信息,请参阅<a href="matlab:helpview([docroot \'/techdoc/matlab_prog/matlab_prog.map\'],\'persistent_variables\')" target="_blank">持久变量</a>。</p><br/>',persistentTooltipMessage:"变量 '${0}' 的作用域会应用于同一函数的所有调用。",usedAcrossFunctionsExtendedTooltipMessage:"<strong>附加信息</strong><br/><p>嵌套函数内的变量不仅仅可供其直接函数访问。您在某嵌套函数中赋值或使用的变量 <code>x</code> 位于包含该嵌套函数并访问 <code>x</code> 的最外层函数的工作区中。因此,<code>x</code> 的作用域是此工作区所属的函数,以及嵌套在该函数内的任何级别的所有函数。</p><p>如果您是有意以这种方式使用变量,则不是问题。例如,请参阅关于嵌套函数的 MATLAB 编程演示。</p><p>但如果您不是有意以这种方式使用变量,则可能会导致意外行为。如果高亮显示指示一个变量的作用域跨多个函数,但这不是您预期的使用方式,请考虑:</p><ul><li><p>重命名嵌套函数变量,使其与外部函数变量名称不匹配。</p></li><li><p>将变量作为输入参数传递给函数,而不是直接在嵌套函数中使用该变量。</p></li> </ul><p>有关详细信息,请参阅<a href=\"matlab:helpview([docroot '/techdoc/matlab_prog/matlab_prog.map'],'nested_functions_scope')\" target=\"_blank\">嵌套函数中的变量作用域</a>。</p><br/>",usedAcrossFunctionsTooltipMessage:"变量 '${0}' 的作用域跨多个函数。"}},function(e,t,i){e.exports={root:{persistentExtendedTooltipMessage:'<strong>Additional Information</strong><br/><p>A variable declared as persistent is local to the function in which you declare it; yet MATLAB retains its value in memory between calls to that function. Persistent variables are known only to the function in which you declare them. This prevents other functions or the MATLAB command line from changing the value of the persistent variable.</p><p> When you clear or modify a function that is in memory, MATLAB also clears all persistent variables declared by that function. To keep a function in memory until MATLAB quits, use <code><a href="matlab:doc mlock" target="_blank">mlock</a></code>. </p><p> MATLAB returns an error if:<ul><li><p>You attempt to declare a variable persistent and another variable with the same name exists in the current workspace. </p></li><li><p>You specify a variable as a function input or output argument, and then try to declare that variable as persistent within the same function. For example, the following persistent declaration is invalid: </p><p><code>function&nbsp;myfun(argA)<br/>persistent&nbsp;argA</code></p></li></ul></p><p>For more information on variables and the workspace, see <a href="matlab:helpview([docroot \'/techdoc/matlab_prog/matlab_prog.map\'],\'persistent_variables\')" target="_blank">Persistent Variables</a>.</p><br/>',persistentTooltipMessage:"The scope of variable '${0}' persists across calls to the same function.",usedAcrossFunctionsExtendedTooltipMessage:"<strong>Additional Information</strong><br/><p>Variables within nested functions are accessible to more than just their immediate function. A variable, <code>x</code>, to which you assign a value or use within a nested function resides in the workspace of the outermost function that both contains the nested function and accesses <code>x</code>. Therefore, the scope of <code>x</code> is the function to which this workspace belongs, and all functions nested to any level within that function.</p><p>If you intentionally use a variable in this manner, it is not a problem. For examples, see the MATLAB Programming Demo on Nested Functions.</p><p>However, if you unintentionally use a variable in this manner, it can result in unexpected behavior. If the highlighting indicates that the scope of a variable spans multiple functions, and that was not your intent, consider:</p><ul><li><p>Renaming the nested function variable so it does not match the outer function variable name.</p></li><li><p>Passing the variable into the function as an input argument instead of using the variable directly within the nested function.</p></li></ul><p>For more information, see <a href=\"matlab:helpview([docroot '/techdoc/matlab_prog/matlab_prog.map'],'nested_functions_scope')\" target=\"_blank\">Variable Scope in Nested Functions</a>.</p><br/>",usedAcrossFunctionsTooltipMessage:"The scope of variable '${0}' spans multiple functions."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(4215)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["matlab.code.variables.variablehighlighting","rtc.internaldocument","rtc.view.styles.globalstylechanger"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(921),i(208),i(282),i(1410),i(1959),i(1110),i(4216)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(r,{_VARIABLE_HIGHLIGHT_LAYER:"variableHighlightLayer",_VARIABLE:"variableMarker",constructor:function(e,t,i){this._internalDocument=t,this._globalStyleChanger=i,this.own(n.after(e,"onModelUpdated",this._updateMessages.bind(this),!0))},getMarkerClass:function(e){return e?(this._VARIABLE=e,this._VARIABLE):this._VARIABLE},handleVariableHighlightMarkerColor:function(e){this._VARIABLE=this.getMarkerClass();var t=[];t[0]=e[0],t[1]=e[1],t[2]=e[2],202===e[0]&&232===e[1]&&232===e[2]&&(t[0]=141,t[1]=162,t[2]=162);var i="rgb("+t[0]+","+t[1]+","+t[2]+")";this._globalStyleChanger.insertOrReplaceRule("."+this._VARIABLE,[{name:"background-color",value:i},{name:"zIndex",value:3}])},getLayerName:function(){return this._VARIABLE_HIGHLIGHT_LAYER},_updateMessages:function(e){this.clearLayer(this._VARIABLE_HIGHLIGHT_LAYER),this._getLinesWithHighlights(e).forEach((function(e,t){var i=this._createTooltipsForLine.bind(this,t,e);this.addMessage(this._VARIABLE_HIGHLIGHT_LAYER,this._VARIABLE,i,a.TEMPORARY_INFO,e[0].startLine,e[0].startColumn)}),this),this.updateLayer(this._VARIABLE_HIGHLIGHT_LAYER)},_createTooltipsForLine:function(e,t){const i=this._internalDocument.getLineNode(e).getCodeText(),n=[];return t.forEach((function(e){const t={startColumn:e.startColumn,endColumn:e.endColumn},o=l.trimLineAndStyleRange(i,t),r=new s({message:{getMessage:()=>o},className:this._VARIABLE_HIGHLIGHT_LAYER});n.push(r)}),this),n},_getLinesWithHighlights:function(e){var t=o.createMap();return e.forEach((function(e){var i=e.startLine;if(t.has(i)){var n=t.get(i);n.push(e),t.set(i,n)}else t.set(i,[e])})),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(211),i(237)],o=i.dj.d(n,(function(e,t,i){return{_MAX_LINE_LENGTH:75,_ELLIPSE:"...",_HIGHLIGHT_STYLE:"highlightedVariable",_CODE_STYLE:"codeContent",trimLineAndStyleRange:function(e,t){var n=i.getLeadingWhitespace(e);e=e.trim();var o=t.startColumn-n,r=t.endColumn-n,a=this._trimLineAroundRange(e,{startColumn:o,endColumn:r}),s=a.lineStart;e=a.trimmedLine,o-=s,r-=s;var l=this._styleText(e.substring(o,r),this._HIGHLIGHT_STYLE),c=e.substring(0,o)+l.outerHTML+e.substring(r);return this._styleText(c,this._CODE_STYLE).outerHTML},_trimLineAroundRange:function(e,t){var i=e,n=0;if(e.length>this._MAX_LINE_LENGTH){var o=t.startColumn,r=t.endColumn,a=e.length,s=r-o,l=a-r,c=Math.floor((this._MAX_LINE_LENGTH-s)/2),d=c,u=c;o<l&&o<c&&(u+=c-o),u+r<a&&(i=i.substring(0,r+u)+this._ELLIPSE),l<o&&l<c&&(d+=c-l),o>d&&(n=o-d,i=this._ELLIPSE+i.substring(n+3))}return{trimmedLine:i,lineStart:n}},_styleText:function(e,i){return t.create("span",{className:i,innerHTML:e})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4218)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.view.decoration","rtc.cursorcontroller","matlab.code.variables.service","rtc.actionservice","rtc.eventhandler"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(817),i(1982),i(1117),i(1343)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_UPDATE_TIMER_LENGTH:1333,_HIGHLIGHT_CSS_CLASS:[i.VARIABLE_HIGHLIGHT],_TEXT_COLOR:"#000000",constructor:function(e,i,n,o,r,a){this._internalDocument=e,this._cursorController=n,this._cursor=this._cursorController.getCursors()[0],this._variableService=o,this._eventHandler=a,this._varHighlightEnabled=!0,this.own(t.after(o,"onEnable",this._setListeners.bind(this))),this.own(t.after(o,"onDisable",this._removeListeners.bind(this))),this._handleArray=[],this._setListeners();var s=[{id:"rtc_variable_highlighting_escape",key:"escape",enabled:!0,callback:this._removeHighlights.bind(this)}];r.loadActions(s),this._showTimer=null,this._highlightedVariableText=""},_setListeners:function(){0===this._handleArray.length&&(this._handleArray.push(t.after(this._cursor,"onChange",this._handleCursorChange.bind(this))),this._handleArray.push(t.after(this._cursorController,"onUpdate",this._removeHighlightsForMultipleCursors.bind(this))),this._handleArray.push(t.after(this._variableService,"onVariablesUpdated",this._updateNow.bind(this))),this._handleArray.push(t.after(this._variableService,"onCacheUpdated",this._updateNow.bind(this))),this._handleArray.push(t.after(this._internalDocument,"onDocumentReset",this._removeHighlights.bind(this))),this._handleArray.push(t.after(this._eventHandler,"onMouseUp",this._handleMouseUp.bind(this))))},_handleMouseUp:function(){this._updateNow()},_updateHighlights:function(e){this._varHighlightEnabled&&this.updateDecorations(e)},_removeHighlights:function(){return this._highlightedVariableText="",this._updateHighlights([]),!1},_updateLater:function(){this._clearShowTimer(),this._showTimer=setTimeout(this._updateNow.bind(this),this._UPDATE_TIMER_LENGTH)},_handleCursorChange:function(){this._updateLater()},_updateNow:function(){if(this._clearShowTimer(),!this._removeHighlightsForMultipleCursors()){var e=this._getVariableUnderCursor(),t=this._variableService.getVariableInstances(e);t.length<=1?this._removeHighlights():(this._highlightedVariableText=e.text,this._updateHighlights(t))}},getHighlightedVariableText:function(){return this._variableService.getVariableBeingChangedText()||this._highlightedVariableText},_getVariableUnderCursor:function(){return n.getPossibleVariableAtCursorPosition(this._internalDocument,this._cursor)},enable:function(e){this._HIGHLIGHT_CSS_CLASS=e,this._varHighlightEnabled=!0,this._updateNow()},disable:function(){this._varHighlightEnabled=!1,this.updateDecorations([])},_shouldClearHighlights:function(){return o.selectionSpansOutsideVariable(this._cursor,this._getVariableUnderCursor())},_removeHighlightsForMultipleCursors:function(){return!!this._cursorController.hasMultipleCursors()&&(this._removeHighlights(),!0)},_removeListeners:function(){this._handleArray.forEach((function(e){e.remove()})),this._handleArray=[]},_clearShowTimer:function(){this._showTimer&&(clearTimeout(this._showTimer),this._showTimer=null)},destroy:function(){this.inherited(arguments),this._removeListeners(),this._clearShowTimer()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4220)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.settings.service","matlab.code.variables.variablehighlighting","rtc.view.styles.globalstylechanger","matlab.code.variablehighlightingmessagelayer"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(236),i(208),i(1981),i(817)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_HIGHLIGHT_CSS_CLASS:[o.VARIABLE_HIGHLIGHT],_HIGHLIGHT_COLOR:"matlab.colors.programmingtools.VariableHighlightColor",_HIGHLIGHT_CHECKBOX:"matlab.colors.programmingtools.AutomaticallyHighlightVariables",_CLASS_SELECTORS:".rtePane ."+o.VARIABLE_HIGHLIGHT,_VARIABLES_WITH_SHARED_SCOPE_COLOR_SETTING_ID:"matlab.colors.programmingtools.VariableHighlightColor",_VARIABLE:"variableMarker",constructor:function(e,t,i,n,o){this._internalDocument=e,this._settingService=t,this._variableHighlightMessageLayer=o,this.own(this._settingService.listenToSettingChange(this._VARIABLES_WITH_SHARED_SCOPE_COLOR_SETTING_ID,this._handleMarkerColor.bind(this))),this._settingService.getSetting(this._VARIABLES_WITH_SHARED_SCOPE_COLOR_SETTING_ID).then(function(e){this._markerColor=e,this._handleMarkerColor(this._markerColor)}.bind(this),(function(e){}))},_handleMarkerColor:function(e){void 0!==e&&(this._markerColor=e,this._variableHighlightMessageLayer.handleVariableHighlightMarkerColor(e))},_getCSSRules:function(){var e=this.highlightRgbColor;return[{name:"background-color",value:e},{name:"-moz-background-color",value:e},{name:"-o-background-color",value:e}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4222)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursorcontroller","matlab.code.variables.service","rtc.actionservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(1982)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i,n){this._internalDocument=e,this._cursorController=t,this._variableService=i,this._actionService=n;var o=[{id:"rtc_goto_next_variable",key:"alt_down",platformKey:{mac:"alt_down"},enabled:!0,callback:this._navigateToVariableInDirection.bind(this,!0)},{id:"rtc_goto_prev_variable",key:"alt_up",platformKey:{mac:"alt_up"},enabled:!0,callback:this._navigateToVariableInDirection.bind(this,!1)}];this._actionService.loadActions(o)},_navigateToVariableInDirection:function(e){if(!this._variableService.isReady())return!1;var t=this._getWordUnderCursor();if(!t)return!1;var i=this._variableService.getVariableInstances(t),n=this._findCurrentCursorVariableIndex(t,i);if(n<0)return!1;var o=null;o=e?this._findNextVariableInstance(n,i):this._findPreviousVariableInstance(n,i);var r=this._internalDocument.getPositionForLineColumn(o.startLine+1,o.startColumn+1);return this._cursorController.setPositions([r]),this._cursorController.scrollIntoView(),!0},_findNextVariableInstance:function(e,t){return t[(e+=1)%t.length]},_findPreviousVariableInstance:function(e,t){return e-1<0?t[t.length-1]:t[e-1]},_getWordUnderCursor:function(){if(this._cursorController.hasMultipleCursors())return null;var e=this._cursorController.getCursors()[0];return i.getPossibleVariableAtCursorPosition(this._internalDocument,e)},_findCurrentCursorVariableIndex:function(e,t){if(0===t.length)return-1;var i=e.startLineCol,n=-1;return t.some((function(e,t){if(e.startLine===i.line&&e.startColumn===i.column)return n=t,!0})),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4224)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","matlab.code.variables.rename.model","matlab.code.variables.rename.view","rtc.tooltipservice","rtc.settings.service","rtc.view.current","rtc.focusservice"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_VARIABLE_RENAME_SETTING_ID:"matlab.editor.language.matlab.EnableVariableAndFunctionRenaming",constructor:function(e,t,n,o,r,a,s){this._variableRenamingModel=t,this._tooltipService=o,this._settingService=r,this._currentViewService=a,this._focusService=s,this._variableRenamingEnabled=!0,this._settingService.getSetting(this._VARIABLE_RENAME_SETTING_ID).then(function(e){this._variableRenamingEnabled=e}.bind(this),(function(){})),this.own(this._settingService.listenToSettingChange(this._VARIABLE_RENAME_SETTING_ID,function(e){this._variableRenamingEnabled=e}.bind(this))),this._variableRenamingView=n,this.own(i.after(this._variableRenamingModel,"onModelUpdated",this._checkRenaming.bind(this))),this.own(i.after(this._variableRenamingModel,"exitRenaming",this._hideTooltip.bind(this))),this.own(i.after(s,"onBlur",this._notRenamingCallback.bind(this)));var l=[{id:"rtc_variable_renaming_action",key:"shift_enter",platformKey:{mac:"shift_enter"},enabled:!0,callback:this._doRenameCallback.bind(this)},{id:"rtc_variable_renaming_escape",key:"escape",enabled:!0,callback:this._notRenamingCallback.bind(this)}];e.loadActions(l),this._isRenaming=!1},_checkRenaming:function(){this._isRenaming=!1,this._variableRenamingModel.isRenaming()&&this._currentViewService.isCurrentView()&&this._variableRenamingEnabled?this._renaming():this._notRenaming()},_renaming:function(){this._tooltipServiceHandle=this._tooltipService.requestTooltip(t.hitch(this,"_renamingCallback"),t.hitch(this,"_notRenamingCallback"),this._tooltipService.PRIORITY.PROMPT)},_notRenaming:function(){this._variableRenamingModel.notRenaming(),this._variableRenamingView.closeTooltip()},_renamingCallback:function(){this._isRenaming=!0,this._variableRenamingModel.renaming();var e=this._variableRenamingModel.getCurrentVariable(),t=this._variableRenamingModel.getLastVariable();this._variableRenamingView.showToolTip(t,e,e.otherInstances.length+1)},_hideTooltip:function(){this._variableRenamingView.closeTooltip(),this._isRenaming=!1,this._tooltipServiceHandle&&(this._tooltipServiceHandle.remove(),this._tooltipServiceHandle=null)},destroy:function(){this._variableRenamingView.closeTooltip()},_doRenameCallback:function(){return!(!this._isRenaming||!this._variableRenamingView.isTooltipOpen())&&(this._variableRenamingModel.doRename(),!0)},_notRenamingCallback:function(){return!!this._isRenaming&&(this._variableRenamingModel.exitRenamingCompletely(),this._hideTooltip(),!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4226)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.cursorcontroller","rtc.document","matlab.code.variables.service","matlab.code.variables.rename.utility"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(234),i(237),i(1983),i(1117)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(i,{_EMPTY_BLOCK_TYPE_FOR_MERGE_WITH_LAST_BLOCK:[""],_VARIABLE_NAME_REGEXP:new RegExp("[a-zA-Z][a-zA-Z0-9_]*"),constructor:function(e,t,i,n,o){this._internalDocument=e,this._cursorController=t,this._cursor=this._cursorController.getCursors()[0],this._document=i,this._variableService=n,this._variableRenamingUtility=o,this.setListeners(),this._lastVariable=null,this._renamingVariable=null,this._inUndoRedoState=!1},onModelUpdated:function(){},exitRenaming:function(){},getCurrentVariable:function(){return this._renamingVariable},getLastVariable:function(){return this._lastVariable},setListeners:function(){this._handleArray=[],this._handleArray.push(t.after(this._internalDocument,"onDocumentChanged",this._documentChanged.bind(this),!0)),this._handleArray.push(t.after(this._internalDocument,"onDocumentReset",this._documentChanged.bind(this),!0)),this._handleArray.push(t.after(this._cursor,"onChange",this._cursorChanged.bind(this))),this._handleArray.push(t.after(this._variableService,"onVariablesUpdated",this._documentChanged.bind(this),!0)),this._clearVariables(),this._variableService.onEnable()},_documentChanged:function(e){if(e&&(e[0]||{}).isUndoRedo)return this._clearRenamingObjects(),void(this._inUndoRedoState=!0);if(this._inUndoRedoState=!1,!this._lastVariable||this._isCodeLine(this._lastVariable)){var t=this._getCurrentVariable();this._updateModel(t)}else this._clearVariables()},_cursorChanged:function(){if(!this._inUndoRedoState){var e=this._getCurrentVariable();if(a.selectionSpansOutsideVariable(this._cursor,e)||this._hasCursorMovedToAnotherLine(e))return this._clearRenamingObjects(),void(e&&this._variableRenamingUtility.clearLivePositionsFromVariable(e));this._updateModel(e)}},_getCurrentVariable:function(){if(this._cursorController.hasMultipleCursors())return this._clearVariables(),null;var e,t=o.getWordAtPosition(this._internalDocument,this._cursor.position);if(!t||-1===t.text.search(this._VARIABLE_NAME_REGEXP))return null;let i;if(t=new r(t.startLineCol,t.endLineCol,t.text),this._variableRenamingUtility.isLastVariablePositionInvalid(this._lastVariable)&&this._clearVariables(),this._isSameAsLastVariable(t)?(i=this._lastVariable.text,e=this._createNewVariableUsingLastVariable(t)):(this.exitRenamingCompletely(),e=this._createCurrentVariableWithLivePositions(t),i=e?e.text:null),!e)return null;if(0===e.otherInstances.length)return this._clearVariables(),null;return e.otherInstances.every(e=>{const t=e.startLine;if(!this._document.isLineCode(t+1))return!1;const n=e.endColumn-e.startColumn;return this._document.getTextCharacters(t,e.startColumn,n)===i})?a.isSameWordAndVariable(e,this._renamingVariable)?this._renamingVariable:this._variableRenamingUtility.updateVariableAndInstancesOnSameLineWithLivePosition(e):(this._clearVariables(),null)},_isSameAsLastVariable:function(e){return!(!this._lastVariable||!e)&&a.isSameWordAndVariableLocation(e,this._lastVariable)},_createNewVariableUsingLastVariable:function(e){var t=e;return t.isAssignment=this._lastVariable.isAssignment,this._lastVariable=this._variableRenamingUtility.updateVariableInstances(this._lastVariable),t.otherInstances=this._lastVariable.otherInstances,t},_createCurrentVariableWithLivePositions:function(e){return this._variableService.getVariableThatOverlapsRange(e)},_updateModel:function(e){this._notPossibleToRename(e)?e&&this._variableRenamingUtility.clearLivePositionsFromVariable(e):(this._setVariables(e),this.onModelUpdated())},_notPossibleToRename:function(e){return!(e&&!a.isVariableLengthInvalid(e))&&(this._variableService.startListeningToEDS(),this.exitRenaming(),!0)},_setVariables:function(e){this._lastVariable||(this._lastVariable=e),this._renamingVariable=e},_isCodeLine:function(e){var t=this._internalDocument.getLineNode(e.getStartLineColumn().line);return n.isCodeContainer(t)},_hasCursorMovedToAnotherLine:function(e){return!e&&this._renamingVariable&&this._renamingVariable.getStartLineColumn().line!==this._cursor.getLineColumn().line-1},isRenaming:function(){return this._variableRenamingUtility.isRenaming(this._lastVariable,this._renamingVariable)},notRenaming:function(){a.isSameVariableLocation(this._lastVariable,this._renamingVariable)||this._variableRenamingUtility.clearLivePositionsFromVariable(this._lastVariable),this._lastVariable=this._renamingVariable,this._variableService.startListeningToEDS()},renaming:function(){this._variableService.stopListeningToEDS(this._lastVariable);var e=this._getVariableInstances();this._variableService.setModifiedVariableLocationCache(this._lastVariable,e)},_getVariableInstances:function(){return this._checkForVariablesOnReadOnlyLine(),this._renamingVariable.getAllInstances()},_checkForVariablesOnReadOnlyLine:function(){for(var e=this._renamingVariable.otherInstances.length-1;e>=0;e--){var t=this._renamingVariable.otherInstances[e].startLine;this._internalDocument.getLineNode(t).isReadOnly()&&(!0,this._renamingVariable.otherInstances.splice(e,1))}},doRename:function(){this.removeListeners(),this._renameVariablesAndUpdateCache(),this.exitRenamingCompletely(),this._updateModel(this._getCurrentVariable())},_renameVariablesAndUpdateCache:function(){var e=this._document.startBlockEdit();e.setBlockTypesForMergeAndAdvance(this._EMPTY_BLOCK_TYPE_FOR_MERGE_WITH_LAST_BLOCK),this._renamingVariable=this._variableRenamingUtility.updateVariableInstances(this._renamingVariable),this._renamingVariable.otherInstances.reverse().forEach((function(e){this._document.replaceText(this._renamingVariable.text,e.startLine+1,e.startColumn+1,e.endLine+1,e.endColumn+1)}),this),this.setListeners(),this._document.endBlockEdit(e)},destroy:function(){this.removeListeners(),this._clearVariables()},removeListeners:function(){this._handleArray.forEach((function(e){e.remove()})),this._handleArray=[],this._variableService.onDisable()},_clearVariables:function(){this._lastVariable&&(this._variableRenamingUtility.clearLivePositionsFromVariable(this._lastVariable),this._lastVariable=null),this._renamingVariable&&(this._variableRenamingUtility.clearLivePositionsFromVariable(this._renamingVariable),this._renamingVariable=null)},exitRenamingCompletely:function(){this._clearVariables(),this._variableService.startListeningToEDS()},_clearRenamingObjects:function(){this._clearVariables(),this._variableService.startListeningToEDS(),this.exitRenaming()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4228)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.position.controller","rtc.internaldocument"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(1117)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_INVALID_KEYWORD_LIST:["varargin","varargout"],constructor:function(e,t){this._positionController=e,this._internalDocument=t},isRenaming:function(e,t){return!!e&&(!(!t||!t.text)&&(e.text!==t.text&&(!!n.isSameVariableLocation(e,t)&&(-1===this._INVALID_KEYWORD_LIST.indexOf(e.text.toLowerCase())&&(!!t.isAssignment&&!(t.otherInstances.length<1))))))},updateVariableAndInstancesOnSameLineWithLivePosition:function(e){e.startPos&&(e.startPos.destroy(),e.endPos.destroy());var t=e.startLineCol,i=e.endLineCol;return e.startPos=this._positionController.createPositionAtLineColumn(t.line,t.column,!1,!0),e.endPos=this._positionController.createPositionAtLineColumn(i.line,i.column,!0,!0),e.otherInstances.some((function(t){var i=e.getStartLineColumn().line,n=t.startLine;if(i===n)t.startLine<this._internalDocument.getMaxLineNumber()&&this.updateInstanceWithLivePosition(t);else if(i<n)return!0}),this),e},updateInstanceWithLivePosition:function(e){return e.startPos&&e.startPos.destroy(),e.startPos=this._positionController.createPositionAtLineColumn(e.startLine,e.startColumn,!1,!0),e.endPos&&e.endPos.destroy(),e.endPos=this._positionController.createPositionAtLineColumn(e.endLine,e.endColumn,!0,!0),e},clearLivePositionsFromVariable:function(e){e.otherInstances.forEach((function(e){e.startPos&&(e.startPos.destroy(),e.startPos=null),e.endPos&&(e.endPos.destroy(),e.endPos=null)}),this),e.startPos&&(e.startPos.destroy(),e.endPos.destroy(),e.startPos=null,e.endPos=null)},isLastVariablePositionInvalid:function(e){if(!e)return!1;var t=e.startPos.getLineColumn(),i=e.endPos.getLineColumn(),n=t.line===i.line;return!n||!(!n||t.column!==i.column)},updateVariableInstances:function(e){return e.otherInstances.forEach((function(e){var t=e.startPos,i=e.endPos;t&&i&&(e.startColumn=t.getLineColumn().column-1,e.startLine=t.getLineColumn().line-1,e.endColumn=i.getLineColumn().column-1,e.endLine=i.getLineColumn().line-1)}),this),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4230)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.cursor"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(277),i(30),i(203),i(208),i(211),i(253),i(236),i(207),i(437),i(373),i(377)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return i(s,{_VERTICAL_OFFSET_PX:7,constructor:function(e,i){this._view=e,this._cursor=i,this._tooltipInfo={tooltipDialog:new t({class:[l.TOOLTIP_CLASS,l.TOOLTIP_DIALOG_CLASS]}),isTooltipOpen:!1},this._renamingTooltipLayer=this._createLayer(),e.addLayer(this._renamingTooltipLayer),this._reopenTooltipListener=null,this._wasOutOfView=!0},_createLayer:function(){return o.create("div",{class:"variableRenamingTooltipHolder",id:"renamingNode"})},showToolTip:function(e,t,i){this._prepareTooltipInfo(),this._openTooltipIfInView(),this._updateTooltipContent(e,t,i),this._reopenTooltipListener&&this._reopenTooltipListener.remove(),this._reopenTooltipListener=n.after(this._view,"onViewUpdated",this._updateTooltipOnScroll.bind(this),!0),l.addClassNameToParentElement(this._tooltipInfo.tooltipDialog.domNode),d.refuseFocus(this._tooltipInfo.tooltipDialog.domNode)},_prepareTooltipInfo:function(){var e=this._tooltipInfo.tooltipDialog,t=this._getTooltipPosition();this._renamingTooltipLayer.style.top=t.y+"px",this._renamingTooltipLayer.style.left=t.x+"px",this._tooltipInfo={tooltipDialog:e,isTooltipOpen:!0}},_openTooltipIfInView:function(){this._view.isElementOutOfView(this._renamingTooltipLayer)||(this._wasOutOfView=!1,this._openTooltip(!0))},_openTooltip:function(){e.open({popup:this._tooltipInfo.tooltipDialog,around:this._renamingTooltipLayer,orient:["below-centered","below","above-centered","above"],onCancel:this.closeTooltip.bind(this)}),this._tooltipInfo.isTooltipOpen=!0,this._tooltipInfo.tooltipDialog.set("data-testid","variableRenaming_visible")},_getTooltipPosition:function(){var e=this._cursor.getLineColumn(),t=this._view.getCoordinateForLineColumn(e.line,e.column);return{y:t.y+this._VERTICAL_OFFSET_PX,x:t.x}},_updateTooltipContent:function(e,t,i){var n,o=this._getStyledVariableText(e.text,t.text);n=1===i-1?a.substitute(r.variableRenamingTooltipOne,{0:e.text,1:o}):a.substitute(r.variableRenamingTooltipMany,{0:i-1,1:e.text,2:o}),this._tooltipInfo.tooltipDialog.set("content",n)},_getStyledVariableText:function(e,t){var i="";t.split("").some((function(t,n){var o=e.charAt(n);if(o!==t)return!0;i+=o}));var n=t.substring(i.length,t.length);return""!==n?i+"<b>"+n+"</b>":i},_updateTooltipOnScroll:function(e){if(c.hasScrollEvent(e)){var t=this._view.isElementOutOfView(this._renamingTooltipLayer);this._wasOutOfView!==t&&(this._wasOutOfView=t,this._wasOutOfView?this.hideTooltip():this._openTooltip())}},hideTooltip:function(){return!!this._tooltipInfo.isTooltipOpen&&(this._tooltipInfo.tooltipDialog.set("data-testid","variableRenaming_hidden"),e.close(this._tooltipInfo.tooltipDialog),this._tooltipInfo.isTooltipOpen=!1,!0)},closeTooltip:function(){return this._reopenTooltipListener&&(this._reopenTooltipListener.remove(),this._reopenTooltipListener=null),this.hideTooltip()},isTooltipOpen:function(){return this._tooltipInfo.isTooltipOpen},destroy:function(){this.inherited(arguments),o.destroy(this._renamingTooltipLayer)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4232),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["variablerenamecontributors","matlab.code.variables.rename.model"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i){this._variableRenameContributors=e,this._variableRenamingModel=i,this._variableRenameContributors.forEach((function(e){this.own(n.after(e,"removeListeners",t.hitch(this,"_handleRemoveListeners"))),this.own(n.after(e,"setListeners",t.hitch(this,"_handleSetListeners")))}),this)},_handleRemoveListeners:function(){this._variableRenamingModel.removeListeners()},_handleSetListeners:function(){this._variableRenamingModel.setListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4234)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(206),i(207),i(716)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_DIRECTION:{UNSET:0,UP:1,DOWN:2,LEFT:3,RIGHT:4},_SET_SCROLL_TOP_DURATION:500,_SET_SCROLL_LEFT_DURATION:500,_SCROLL_DURATION:800,_SCROLL_POSITION_THRESHOLD:2,constructor:function(e){this._view=e,this._viewScrollListeners=[],this._targetDataMap={},this._isEnabled=!1},destroy:function(){this.inherited(arguments),this._clearMouseTimeEvents()},setEnabled:function(e){e&&!this._isEnabled?(this._isEnabled=!0,this._enable()):!e&&this._isEnabled&&(this._isEnabled=!1,this._disable())},_enable:function(){this.setSmoothScrolling(this._view.getDomtarget()),this._viewScrollListeners.push(t.before(this._view,"setScrollTop",this._animateSetScrollTop.bind(this))),this._viewScrollListeners.push(t.before(this._view,"setScrollLeft",this._animateSetScrollLeft.bind(this))),this._viewScrollListeners.push(t.before(this._view,"offsetScrollTop",this._animateOffsetScrollTop.bind(this))),this._viewScrollListeners.push(t.before(this._view,"offsetScrollLeft",this._animateOffsetScrollLeft.bind(this))),this._viewScrollListeners.forEach((function(e){this.own(e)}),this)},_disable:function(){this._clearScrollListeners(),this._clearMouseTimeEvents(),this._clearListeners(),this._targetDataMap={}},_clearScrollListeners:function(){Object.keys(this._targetDataMap).forEach((function(e){this._targetDataMap[e].scrollAction&&(this._targetDataMap[e].scrollAction.remove(),this._targetDataMap[e].scrollAction=null)}),this)},_clearMouseTimeEvents:function(){Object.keys(this._targetDataMap).forEach((function(e){this._targetDataMap[e].mouseTimeEvent&&(clearTimeout(this._targetDataMap[e].mouseTimeEvent),this._targetDataMap[e].mouseTimeEvent=null)}),this)},_clearListeners:function(){this._viewScrollListeners.forEach((function(e){e.remove()})),this._viewScrollListeners=[]},setSmoothScrolling:function(e){this._targetDataMap[e]||(this._targetDataMap[e]={scrollAction:i(e,o.MOUSEWHEEL,this._initiateAnimation.bind(this,e)),previousScrollDirectionV:this._DIRECTION.UNSET,previousScrollDirectionH:this._DIRECTION.UNSET,mouseTimeEvent:null,remainingDistanceV:0,remainingDistanceH:0},this.own(this._targetDataMap[e].scrollAction))},_initiateAnimation:function(e,t){if(!t.defaultPrevented&&!o.isBrowserZoomScrollEvent(t)){t.preventDefault();var i=this._calculateScrollDestination(e,t);this._animateSmoothScroll(e,i,this._SCROLL_DURATION)}},_calculateScrollDestination:function(e,t){var i,n=this._targetDataMap[e],r=o.getVerticalScrollDistance(t),a=e.scrollTop-r;(i=r>0?this._DIRECTION.UP:r<0?this._DIRECTION.DOWN:this._DIRECTION.UNSET)!==n.previousScrollDirectionV&&(n.remainingDistanceV=0),a+=n.remainingDistanceV,n.previousScrollDirectionV=i;var s,l=o.getHorizontalScrollDistance(t),c=e.scrollLeft-l;return(s=l>0?this._DIRECTION.LEFT:l<0?this._DIRECTION.RIGHT:this._DIRECTION.UNSET)!==n.previousScrollDirectionH&&(n.remainingDistanceH=0),c+=n.remainingDistanceH,n.previousScrollDirectionH=s,{v:a,h:c}},_easeFunction:function(e,t,i){if(i<=e)return 0;if(i>=t)return 1;var n=(i-e)/(t-e)-1;return 1+Math.pow(n,5)},_animateSmoothScroll:function(e,t,i){var n=this._targetDataMap[e],o=e.scrollLeft+n.remainingDistanceH,r=e.scrollTop+n.remainingDistanceV,a=void 0===t.v?r:t.v,s=void 0===t.h?o:t.h;if(a!==e.scrollTop||s!==e.scrollLeft){var l=Date.now(),c=l+i,d=e.scrollTop,u=a-d,h=e.scrollLeft,p={top:d,left:h},f={v:u,h:s-h},g={v:a,h:s};this._scrollFrame(e,l,c,p,f,g)}else n.mouseTimeEvent&&(clearTimeout(n.mouseTimeEvent),n.mouseTimeEvent=null)},_scrollFrame:function(e,t,i,n,o,r){var a=this._targetDataMap[e],s=Date.now(),l=this._easeFunction(t,i,s),c=n.top+o.v*l;this._view.setScrollTopWithoutEvents(c),a.remainingDistanceV=r.v-c;var d=n.left+o.h*l;if(this._view.setScrollLeftWithoutEvents(d),a.remainingDistanceH=r.h-d,s>=i||this._isPageFullyScrolled(e,c,d))return clearTimeout(a.mouseTimeEvent),a.mouseTimeEvent=null,void this._view.onScroll();var u=this._scrollFrame.bind(this,e,t,i,n,o,r);null!==a.mouseTimeEvent&&clearTimeout(a.mouseTimeEvent),a.mouseTimeEvent=setTimeout(u,2)},_isPageFullyScrolled:function(e,t,i){return Math.abs(e.scrollTop-t)>this._SCROLL_POSITION_THRESHOLD&&Math.abs(e.scrollLeft-i)>this._SCROLL_POSITION_THRESHOLD},_animateSetScrollTop:function(e){var t=this._view.getDomtarget();return this._targetDataMap[t].remainingDistanceV=0,this._animateSmoothScroll(t,{v:e},this._SET_SCROLL_TOP_DURATION),[t.scrollTop]},_animateSetScrollLeft:function(e){var t=this._view.getDomtarget();return this._targetDataMap[t].remainingDistanceH=0,this._animateSmoothScroll(t,{h:e},this._SET_SCROLL_LEFT_DURATION),[t.scrollLeft]},_animateOffsetScrollTop:function(e){var t=this._view.getDomtarget(),i=this._targetDataMap[t],n=t.scrollTop+i.remainingDistanceV+e;return this._animateSmoothScroll(t,{v:n},this._SET_SCROLL_TOP_DURATION),[0]},_animateOffsetScrollLeft:function(e){var t=this._view.getDomtarget(),i=this._targetDataMap[t],n=t.scrollLeft+i.remainingDistanceH+e;return this._animateSmoothScroll(t,{h:n},this._SET_SCROLL_LEFT_DURATION),[0]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4236)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.messagebar.rightmargincontainer"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(210),i(204),i(206),i(248),i(1984)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{constructor:function(e){this._rightMarginContainer=e,this._tooltips={},this._buttons={},this._handles=[]},destroy:function(){this.inherited(arguments),this._rightMarginContainer=null,this._tooltips={}},addButton:function(e,i,a){var s=t.create("div",{class:e,"data-buttonname":e});this._rightMarginContainer.addLayer(s,i),this._buttons[e]=s,this.own(o(this._buttons[e],"mouseover",n.hitch(this,"_generateTooltipMessage"))),this.own(o(this._buttons[e],"mouseout",n.hitch(this,"hideTooltip"))),this.own(o(this._buttons[e],r.release,a))},setTooltipMessage:function(e,t){this._tooltips[e]=t},_generateTooltipMessage:function(e){var t=this._tooltips[e.target.dataset.buttonname];null!=t&&this.showTooltip(t,e.target)},modifyButton:function(e,t){i.remove(this._buttons[e]),i.add(this._buttons[e],[e,t])},addClass:function(e,t){i.add(this._buttons[e],t)},removeClass:function(e,t){i.remove(this._buttons[e],t)},removeButton:function(e){this._rightMarginContainer.removeLayer(this._buttons[e])},destroyButton:function(e){t.destroy(this._buttons[e])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4238)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.domnode","rtc.bordercontainer","rtc.focusservice","rtc.tooltipservice"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(276),i(203),i(204),i(208),i(206),i(211),i(227),i(228),i(210),i(207),i(377)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return t(c,{_FIXED_LAYER_WIDTH:24,_LAYER_PRIORITY_PROPERTY:"rightMarginLayerPriority",_LAYER_HEIGHT_PROPERTY:"rightMarginLayerHeight",_TOP_REGION:"top",constructor:function(t,s,c,d){this._view=t,this._rtcDomNode=s,this._borderContainer=c,this._focusService=d,this._rightMarginContainer=new e({class:"rightMarginContainer"}),r.place(this._rightMarginContainer.domNode,this._rtcDomNode,"last"),this.own(this._rightMarginContainer),this._borderContainer.domNode.style.width="calc(100% - "+this._FIXED_LAYER_WIDTH+"px)",this.own(n.after(this._view,"onResize",i.hitch(this,"_handleViewResize"))),this.own(o(this._rightMarginContainer,"click",i.hitch(this,"_setFocus"))),this._buttonPanel=a.byId("toggleButtonPanel"),this._buttonPanel&&l.add(this._buttonPanel,"buttonPanelShift")},destroy:function(){this.inherited(arguments),this._buttonPanel&&l.remove(this._buttonPanel,"buttonPanelShift"),this._view=this._rtcDomNode=this._borderContainer=this._focusService=this._tooltipTimer=this._tooltipInfo=null},_setFocus:function(){this._focusService.setFocus()},addLayer:function(e,t){s.set(e,this._LAYER_PRIORITY_PROPERTY,t),r.place(e,this._rightMarginContainer.domNode,this._getPositionBasedOnPriority(t)),this.onLayersChanged()},removeLayer:function(e){this._rightMarginContainer.domNode.removeChild(e),this.onLayersChanged()},onLayersChanged:function(){},_getPositionBasedOnPriority:function(e){for(var t=0,i=0;i<this._rightMarginContainer.domNode.children.length;i+=1){var n=this._rightMarginContainer.domNode.children[i];s.get(n,this._LAYER_PRIORITY_PROPERTY)<=e&&(t+=1)}return t},_handleViewResize:function(){var e=this._borderContainer.getChildInRegion(this._TOP_REGION),t=(e?this._borderContainer.getFreeDimension(this._TOP_REGION):0)+"px";this._rightMarginContainer.domNode.style.top=t,this._rightMarginContainer.domNode.style.height="calc(100% - "+t+")",e&&(e.domNode.style.width="100%")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(281),i(4240)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.margin.button","rtc.code.codeanalyzer","rtc.code.codeanalyzer.enablestate","rtc.cursorcontroller","rtc.focusservice","rtc.view","rtc.margin.severitystatus.suppressclearstatus"]}},createInstance:function(e,t,i,o,r,a,s){return new n(e,t,i,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1407),i(313),i(399)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_SEVERITY_STATUS_BUTTON:"severityStatusButton",_SEVERITY_LEVEL_NONE:0,_SEVERITY_LEVEL_WARNING:1,_SEVERITY_LEVEL_ERROR:2,_BUTTON_POSITION_PRIORITY:2,constructor:function(e,t,i,n,o,r,a){this._messageBarButtonView=e,this._codeAnalyzerPlugin=t,this._codeAnalyzerEnableState=i,this._cursorController=n,this._focusService=o,this._view=r,this._CLEAR=!0===a?"statusClear_suppressed":"statusClear",this._WARNING="statusWarning",this._ERROR="statusError",this._BUSY="statusBusy",this._DISABLED="statusDisabled",this._messagePositions=[],this._severity=null,this._addButton(),this._addListeners(),this._setInitialState()},_addButton:function(){this._messageBarButtonView.addButton(this._SEVERITY_STATUS_BUTTON,this._BUTTON_POSITION_PRIORITY,t.hitch(this,"_buttonClick"))},_removeButton:function(){this._messageBarButtonView.removeButton(this._SEVERITY_STATUS_BUTTON)},_addListeners:function(){this._handles=[],this._handles.push(i.after(this._codeAnalyzerPlugin,"onPendingUpdate",t.hitch(this,"_setToBusy"))),this._handles.push(i.after(this._codeAnalyzerPlugin,"onModelUpdatedWithNoChange",t.hitch(this,"_unsetFromBusy"))),this._handles.push(i.after(this._codeAnalyzerPlugin,"onUpdateMessages",t.hitch(this,"_updateMarkerPositions"))),this._handles.forEach((function(e){this.own(e)}),this)},enableForHiddenCode:function(){this._addButton(),this._addListeners(),this._codeAnalyzerEnableState.isEnabled()?this._updateMarkerPositions():this._setToDisabled()},disableForHiddenCode:function(){this._removeListeners(),this._removeButton()},_buttonClick:function(){if(this._focusService.setFocus(),0!==this._messagePositions.length){var e=this._cursorController.getCursorPositions(!0)[0],t=this._getNextCursorPosition(e,this._messagePositions);this._view.scrollPositionIntoView(t,70,70),this._cursorController.setPositions([t])}},_getNextCursorPosition:function(e,t){for(var i=0;i<t.length;i++)if(o.comparePositions(e,t[i])<0)return t[i];return t[0]},_updateMarkerPositions:function(){if(this._codeAnalyzerEnableState.isEnabled()){var e=this._codeAnalyzerPlugin.hasError(),t=this._SEVERITY_LEVEL_NONE,i=[];this._codeAnalyzerPlugin.getAllMessages().forEach((function(n){n.isError()?(i.push(n.getStartPosition()),t=this._SEVERITY_LEVEL_ERROR):n.isWarning()&&!e&&(i.push(n.getStartPosition()),t=this._SEVERITY_LEVEL_WARNING)}),this),this._setSeverityStatus(t,i)}else this._setToDisabled()},_setSeverityStatus:function(e,t){switch(e){case this._SEVERITY_LEVEL_NONE:this._setToClear();break;case this._SEVERITY_LEVEL_WARNING:this._setToWarning(t);break;case this._SEVERITY_LEVEL_ERROR:this._setToError(t)}},_setToClear:function(){this._messageBarButtonView.modifyButton(this._SEVERITY_STATUS_BUTTON,this._CLEAR),this._messageBarButtonView.setTooltipMessage(this._SEVERITY_STATUS_BUTTON,n.noMessages),this._messagePositions=[],this._severity=this._SEVERITY_LEVEL_NONE},_setToWarning:function(e){var t=e.length>1?n.warningsFound:n.warningFound;this._messageBarButtonView.modifyButton(this._SEVERITY_STATUS_BUTTON,this._WARNING),this._messageBarButtonView.setTooltipMessage(this._SEVERITY_STATUS_BUTTON,t),this._messagePositions=e,this._severity=this._SEVERITY_LEVEL_WARNING},_setToError:function(e){var t=e.length>1?n.errorsFound:n.errorFound;this._messageBarButtonView.modifyButton(this._SEVERITY_STATUS_BUTTON,this._ERROR),this._messageBarButtonView.setTooltipMessage(this._SEVERITY_STATUS_BUTTON,t),this._messagePositions=e,this._severity=this._SEVERITY_LEVEL_ERROR},_setToBusy:function(){this._messageBarButtonView.addClass(this._SEVERITY_STATUS_BUTTON,this._BUSY)},_unsetFromBusy:function(){this._messageBarButtonView.removeClass(this._SEVERITY_STATUS_BUTTON,this._BUSY)},_setToDisabled:function(){this._messageBarButtonView.modifyButton(this._SEVERITY_STATUS_BUTTON,this._DISABLED),this._messageBarButtonView.setTooltipMessage(this._SEVERITY_STATUS_BUTTON,n.messagesDisabled),this._messagePositions=[]},_setInitialState:function(){this._setToClear(),this._setToBusy()},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},destroy:function(){this.inherited(arguments),this._removeListeners(),this._messageBarButtonView.destroyButton(this._SEVERITY_STATUS_BUTTON)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4242)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){this.own(t(window.document,"visibilitychange",this._handleVisibilityChange.bind(this)))},_handleVisibilityChange:function(){window.document.hidden?this.onPossibleReconnection():this.onPossibleDisconnection()},onPossibleDisconnection:function(){},onPossibleReconnection:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4244)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._layers={}},addLayer:function(e){this._layers[e]={name:e,messages:[]},this.onLayerAdded(e)},getLayerNames:function(){return Object.keys(this._layers)},getMessagesForLayer:function(e){return this._layers[e]?this._layers[e].messages:[]},resetLayer:function(e){this._layers[e].messages=[]},addMessage:function(e,t){this._layers[e].messages.push(t)},onLayerAdded:function(e){},onLayerUpdate:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4246)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.messagebar.view","rtc.messagebar.model","messagebarlayer"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(229),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,n,o){this._messageBarView=e,this._messageBarModel=n,this._messageBarLayers=o;for(var r=0;r<this._messageBarLayers.length;r++)this._initializeLayer(this._messageBarLayers[r].getLayerName()),this.own(i.after(this._messageBarLayers[r],"addMessage",t.hitch(this,"_handleAddMessage"),!0),i.after(this._messageBarLayers[r],"clearLayer",t.hitch(this,"_handleClearLayer"),!0),i.after(this._messageBarLayers[r],"updateLayer",t.hitch(this,"_handleUpdateLayer"),!0),i.after(this._messageBarLayers[r],"closeTooltip",t.hitch(this,"_handleTooltipClose")))},_handleAddMessage:function(e,t,i,n,o,r){var a={style:t,tooltip:i,priority:n,line:o,column:r,layerName:e};this._messageBarModel.addMessage(e,a)},_handleUpdateLayer:function(e){this._messageBarModel.onLayerUpdate(e)},_initializeLayer:function(e){this._messageBarModel.addLayer(e)},_handleClearLayer:function(e){this._messageBarModel.resetLayer(e)},_handleTooltipClose:function(){this._messageBarView.triggerTooltipClose()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4248)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.tooltipservice","messagebartooltip","rtc.domnode"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(30),i(277),i(203),i(208),i(211),i(207),i(437),i(377)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return i(r,{_TOOLTIP_TIMER_LENGTH:400,_MAX_WIDTH_OFFSET:20,constructor:function(t,i,o,r){this._tooltipService=i,this._rtcDomNode=r,this._tooltipTimer=null,this._isTooltipOpen=!1,this._tooltipDialog=new e({class:[a.TOOLTIP_CLASS,a.TOOLTIP_DIALOG_CLASS],onMouseDown:this.cancelHideTooltip.bind(this),onMouseEnter:this.cancelHideTooltip.bind(this),onMouseLeave:this.hideTooltipAfterTimeout.bind(this)}),this.own(this._tooltipDialog),s.refuseFocus(this._tooltipDialog.domNode),o.forEach((function(e){this.own(n.after(e,"hideTooltip",this.hideTooltip.bind(this),!0),n.after(e,"showTooltip",this.showTooltip.bind(this),!0),n.after(e,"hideTooltipAfterTimeout",this.hideTooltipAfterTimeout.bind(this),!0))}),this)},destroy:function(){this.inherited(arguments),this._tooltipTimer=null},showTooltip:function(e,t){this.cancelHideTooltip(),this._tooltipRequestHandle=this._tooltipService.requestTooltip(this._showTooltip.bind(this,e,t),this.hideTooltip.bind(this),this._tooltipService.PRIORITY.HOVER)},_showTooltip:function(e,i){this._isTooltipOpen=!0,this._tooltipDialog.set("content",e),this._tooltipDialog.set("data-testid","rightMarginTooltip_visible"),e&&e.domNode&&e.domNode.addEventListener("onResized",this._repositionTooltip.bind(this)),this._setMaxWidth(i),this._popupInfo={popup:this._tooltipDialog,around:i,orient:["before-centered","before"],onCancel:this.hideTooltip.bind(this),onExecute:this.hideTooltip.bind(this),onMouseOver:this.cancelHideTooltip.bind(this)},t.open(this._popupInfo),this._repositionTooltip()},_setMaxWidth:function(e){var t=e.getBoundingClientRect().left-this._MAX_WIDTH_OFFSET;this._tooltipDialog.domNode.style.maxWidth=t+"px"},_repositionTooltip:function(){if(this._popupInfo){var e=this._tooltipDialog.domNode.parentNode,i=e.getBoundingClientRect().left;t.open(this._popupInfo),e.style.overflowY="visible",e.style.left=i+"px"}},hideTooltip:function(){this._isTooltipOpen&&(this._tooltipDialog.set("data-testid","rightMarginTooltip_hidden"),t.close(this._tooltipDialog),this._isTooltipOpen=!1,clearTimeout(this._tooltipTimer),this._tooltipTimer=null,this._popupInfo=null,this._tooltipRequestHandle.remove())},hideTooltipAfterTimeout:function(){null!==this._tooltipTimer&&this.cancelHideTooltip(),this._tooltipTimer=setTimeout(this.hideTooltip.bind(this),this._TOOLTIP_TIMER_LENGTH)},cancelHideTooltip:function(){clearTimeout(this._tooltipTimer),this._tooltipTimer=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4250)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.cursorcontroller","messagebar.modifier","rtc.document.info","rtc.linenumberpreference","rtc.linenumberservice","rtc.messagebar.model","rtc.messagebar.rightmargincontainer","rtc.view"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(228),i(211),i(1407),i(206),i(248),i(208),i(1984),i(1956),i(399),i(373)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([d,l],{constructor:function(e,t,i,n,o,r,a,s){this._cursorController=e,this._messageBarModifiers=t,this._documentInfo=i,this._lineNumberPreference=n,this._lineNumberService=o,this._messageBarModel=r,this._rightMarginContainer=a,this._view=s,this._messageLayerNode=this._createLayer(),this._binModel=[],this._viewModel=[],this._offsetHeight=null,this._markerNodeCache=[],this._viewUpdateTimer=null,this._pendingViewUpdate=!1,this._addListeners()},_createLayer:function(){var e=n.create("div",{class:"messageBar"});return this._rightMarginContainer.addLayer(e,9),this.own(r(e,a.release,t.hitch(this,"_markerClick")),r(e,"mouseover",t.hitch(this,"_generateTooltipMessage")),r(e,"mouseout",t.hitch(this,"hideTooltipAfterTimeout"))),e},_addListeners:function(){this._handles=[],this._handles.push(s.after(this._messageBarModel,"onLayerUpdate",t.hitch(this,"_handleLayerUpdate"),!0)),this._handles.push(s.after(this._view,"onViewUpdated",t.hitch(this,"_handleViewUpdated"),!0)),this._handles.push(s.after(this._rightMarginContainer,"onLayersChanged",t.hitch(this,"_handleMarginChange"))),this._handles.forEach((function(e){this.own(e)}),this)},enableForHiddenCode:function(){this._addListeners(),this._rightMarginContainer.addLayer(this._messageLayerNode,9),this._updateAllLayers()},disableForHiddenCode:function(){this._removeListeners(),this._rightMarginContainer.removeLayer(this._messageLayerNode)},_handleLayerUpdate:function(e){this._pendingViewUpdate?this._updateAllLayers():this._updateLayer(e)},_handleViewUpdated:function(e){(u.hasHeightEvent(e)||!this._view.canScroll()&&u.hasLayoutEvent(e))&&(this._pendingViewUpdate=!0,u.hasClientOrOffsetHeightChange(e)&&this._updateOffsetHeight(),u.hasDocumentChangeSource(e)||(clearTimeout(this._viewUpdateTimer),this._viewUpdateTimer=setTimeout(this._updateAllLayers.bind(this),300)))},_handleMarginChange:function(){this._updateOffsetHeight(),this._updateAllLayers()},_updateOffsetHeight:function(){this._offsetHeight=this._messageLayerNode.offsetHeight},_updateAllLayers:function(){this._binModel=[],this._messageBarModel.getLayerNames().forEach(this._updateLayerModel,this),this._redraw(),this._pendingViewUpdate=!1},_updateLayer:function(e){this._updateLayerModel(e),this._redraw()},_updateLayerModel:function(e){this._resetLayerModel(e);var t=this._view.getScrollHeight(),i=this._documentInfo.getNumberOfLines();this._messageBarModel.getMessagesForLayer(e).forEach((function(e){this._placeIntoBin(e,t,i)}),this)},_resetLayerModel:function(e){this._binModel.forEach((function(t,i,n){n[i]=t.filter((function(t){return t.layerName!==e})),0===n[i].length&&delete n[i]}),this)},_placeIntoBin:function(e,t,i){if(e.line>=i)return;let n=this._getFeatureModifiedLine(e.line);if(!this._view.isLineVisible(n+1))return;let o=this._getBinIndexForLine(n,t,i);this._binModel[o]||(this._binModel[o]=[]),this._binModel[o].push(e)},_getFeatureModifiedLine:function(e){return this._messageBarModifiers.forEach(t=>{e=t.getModifiedLineNumber(e)}),e},_getBinIndexForLine:function(e,t,i){var n;i<400?n=this._view.getLineCenter(e)/t:n=e/i;return Math.floor(n*this._offsetHeight/4)},_sortBinByPriority:function(e){return e.sort((function(e,t){return t.priority-e.priority||e.line-t.line}))},_getHighestPriorityFromBin:function(e){return this._sortBinByPriority(e)[0]},_getTopPrioritiesFromBin:function(e,t){const i=this._sortBinByPriority(e);return i.slice(0,Math.min(i.length,t))},_redraw:function(){var e=this._generateViewModel();JSON.stringify(e)!==JSON.stringify(this._viewModel)&&(this._viewModel=e,this._renderViewModel())},_generateViewModel:function(){var e=[];return this._binModel.forEach((function(t,i){var n="top: "+4*i+"px",o="messageMarker "+this._getHighestPriorityFromBin(t).style;e[i]={position:n,class:o}}),this),e},_renderViewModel:function(){var e=document.createDocumentFragment(),t=this._markerNodeCache.slice(0);this._viewModel.forEach((function(i,o){var r=this._getMarkerNode(o,t);n.place(r,e)}),this),n.place(e,this._messageLayerNode,"only"),t.forEach(n.destroy)},_getMarkerNode:function(e,t){var o,r={style:this._viewModel[e].position,class:this._viewModel[e].class,"data-binid":e,"data-testid":this._viewModel[e].class};return t.length?(o=t.pop(),i.set(o,r)):(o=n.create("div",r),this._markerNodeCache.push(o)),o},_generateTooltipMessage:function(e){const t=e.target.dataset.binid,i=this._binModel[t],n=this._getTopPrioritiesFromBin(i,7),o=this._lineNumberPreference.isEnabled(),r=this._getTooltipContentInfoArray(n,7),a={domNode:c.getDomNode(r,o,this._lineNumberService)};this.showTooltip(a,e.target)},_getTooltipContentInfoArray:function(e,t){const i=[];for(let n=0;n<e.length;n++){const o=e[n].tooltip();for(let r=0;r<o.length;r++){if(!(i.length<t))return i;i.push({tooltipContent:o[r],lineNumber:e[n].line})}}return i},triggerTooltipClose:function(){this.hideTooltip()},_markerClick:function(e){var t=e.target.dataset.binid,i=this._getHighestPriorityFromBin(this._binModel[t]),n={line:i.line+1,column:i.column+1};try{this._view.scrollLineColumnIntoView(i.line+1,i.column+1,70,70),this._cursorController.setLineColumns([n])}catch(e){}},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},destroy:function(){this.inherited(arguments),this._removeListeners(),n.destroy(this._messageLayerNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(207),i(270),i(266),i(1985),i(1118),i(4252)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(i,{_DEFAULT_HORIZONTAL_ALIGNMENT:a.HORIZONTAL_POSITION.CENTER,_DEFAULT_VERTICAL_ALIGNMENT:a.VERTICAL_POSITION.TOP,_DEFAULT_CUSTOM_X:0,_DEFAULT_CUSTOM_Y:0,_DEFAULT_LINE_OFFSET:0,_DEFAULT_COLUMN_OFFSET:0,constructor:function(e,t,i){this._cursor=e,this._view=t,this._offscreenNotificationView=new s(t,i)},displayOffscreenNotificationForString:function(e,t,i,n){var o=this._offscreenNotificationView.displayNotificationForString;return this._displayOffscreenNotification(e,t,i,n,o)},displayOffscreenNotificationForDomNode:function(e,t,i,n){var o=this._offscreenNotificationView.displayNotificationForDomNode;return this._displayOffscreenNotification(e,t,i,n,o)},removeOffscreenNotification:function(e){this._offscreenNotificationView.removeNotification(e)},_displayOffscreenNotification:function(e,i,a,s,l){t.assert(e instanceof n||e instanceof o,"Expected first argument to be either a Position or a Range");var c=this._getRangeFromInput(e),d=a||new r;return l.call(this._offscreenNotificationView,c,i,d,s)},_getRangeFromInput:function(e){return e instanceof n?new o(e,e):e},_removeAllOffscreenNotifications:function(){this._offscreenNotificationView.removeAllNotifications()},destroy:function(){this.inherited(arguments),this._removeAllOffscreenNotifications(),this._offscreenNotificationView.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(209),i(4253)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_NOTIFICATION_ID_COUNTER:1,constructor:function(e,t){this._view=e,this._scrollPane=t,this._allNotifications={}},displayNotificationForString:function(e,i,n,o){var r=t.create("div",{innerHTML:i},null);return this.displayNotificationForDomNode(e,r,n,o)},displayNotificationForDomNode:function(e,t,i,o){var r=this._scrollPane.parentElement;if(!r)return null;var a=new n(e,t,i,o,this._view,r);a.forceUpdate();var s=this._NOTIFICATION_ID_COUNTER;return this._allNotifications[s]={notification:a},this._NOTIFICATION_ID_COUNTER++,s},removeNotification:function(e){this._removeNotification(e),delete this._allNotifications[e]},removeAllNotifications:function(){Object.keys(this._allNotifications).forEach((function(e){this._removeNotification(this._allNotifications[e])})),this._allNotifications={}},_removeNotification:function(e){i.assert("number"==typeof e,"Expected notification ID to be a valid ID"),i.assert(this._allNotifications[e],"ID provided does not match an existing notification"),this._allNotifications[e].notification.destroy()},destroy:function(){this.removeAllNotifications()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(228),i(211),i(213),i(209),i(373),i(1118)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(null,{_OFFSCREEN_NOTIFICATION:"offscreenNotification",constructor:function(e,t,n,r,a,s){this._range=e,this._alignment=n,this._view=a,this._scrollParent=s,n.horizontalAlignment===l.HORIZONTAL_POSITION.NEAREST&&(this._characterWidth=a.getCharacterWidthForLine(e.getStartPosition().getLine())),this.notificationDomNode=this._createNotification(t,r),this._aspectHandles=[],this._aspectHandles.push(i.after(a,"onViewUpdated",this._handleViewUpdated.bind(this),!0)),this._setTestId(),o.place(this.notificationDomNode,s),this._updatePosition()},forceUpdate:function(){this._updatePosition()},_createNotification:function(e,t){var i=o.create("div",{class:this._OFFSCREEN_NOTIFICATION},null);return o.place(e,i),this._setCss(i,t),i},_setCss:function(e,t){t&&Object.keys(t).forEach((function(i){e.style[i]=t[i]}))},_handleViewUpdated:function(e){s.hasScrollEvent(e)&&!s.hasSizingEvent(e)&&this._updatePosition()},_updatePosition:function(){var e=this._getHorizontalPositioning(),t=this._getVerticalPositioning();this._setCss(this.notificationDomNode,e),this._setCss(this.notificationDomNode,t)},_getHorizontalPositioning:function(){var e={left:"auto",right:"auto"};switch(this._alignment.horizontalAlignment){case l.HORIZONTAL_POSITION.LEFT:e.left=this._alignment.xOffset+"px";break;case l.HORIZONTAL_POSITION.RIGHT:if(this._view.getScrollWidth()===this._view.getClientWidth())e.right=-this._alignment.xOffset+"px";else{var t=this._scrollParent.clientWidth-this._view.getClientWidth();e.right=t-this._alignment.xOffset+"px"}break;case l.HORIZONTAL_POSITION.CENTER:var i=parseInt(r.getComputedStyle(this.notificationDomNode).width);e.left=(this._view.getClientWidth()-i)/2+this._alignment.xOffset+"px";break;case l.HORIZONTAL_POSITION.NEAREST:var n=this._getNearestHorizontalPosition();e.left=n+this._alignment.xOffset+"px";break;case l.HORIZONTAL_POSITION.CUSTOM:e.left=this._alignment.x+this._alignment.xOffset+"px";break;default:a.assert(!1,"Invalid horizontal alignment provided: "+this._alignment.horizontalAlignment)}return e},_getNearestHorizontalPosition:function(){var e=parseInt(r.getComputedStyle(this.notificationDomNode).width),t=this._view.getClientWidth()-e,i=this._view.getCoordinateForPosition(this._range.getStartPosition()).x-this._view.getScrollLeft()+this._alignment.columnOffset*this._characterWidth,n=i;return i>t?n=t:i<0&&(n=0),n},_getVerticalPositioning:function(){var e={top:"auto",bottom:"auto"};switch(this._alignment.verticalAlignment){case l.VERTICAL_POSITION.TOP:e.top=this._alignment.yOffset+"px";break;case l.VERTICAL_POSITION.BOTTOM:if(this._view.getScrollHeight()===this._view.getClientHeight())e.bottom=-this._alignment.yOffset+"px";else{var t=this._scrollParent.clientHeight-this._view.getClientHeight();e.bottom=t-this._alignment.yOffset+"px"}break;case l.VERTICAL_POSITION.CENTER:var i=parseInt(r.getComputedStyle(this.notificationDomNode).height);e.top=(this._view.getClientHeight()-i)/2+this._alignment.yOffset+"px";break;case l.VERTICAL_POSITION.NEAREST:var n=this._getNearestVerticalPosition();e.top=n+this._alignment.yOffset+"px";break;case l.VERTICAL_POSITION.CUSTOM:e.top=this._alignment.y+this._alignment.yOffset+"px";break;default:a.assert(!1,"Invalid vertical alignment provided: "+this._alignment.verticalAlignment)}return e},_getNearestVerticalPosition:function(){var e=parseInt(r.getComputedStyle(this.notificationDomNode).height),t=this._view.getClientHeight()-e,i=this._range.getStartPosition(),n=this._view.getCoordinateForPosition(i).y-this._view.getScrollTop(),o=this._view.getLineHeight(i.getLine()),a=n+this._alignment.lineOffset*o,s=a;return a>t?s=t:a<0&&(s=0),s},_setTestId:function(){var e=null,t=null;switch(this._alignment.horizontalAlignment){case l.HORIZONTAL_POSITION.LEFT:e="left";break;case l.HORIZONTAL_POSITION.RIGHT:e="right";break;case l.HORIZONTAL_POSITION.CENTER:e="center";break;case l.HORIZONTAL_POSITION.NEAREST:var i=this._alignment.columnOffset;e="nearest("+(i>=0?"+":"")+i+")";break;case l.HORIZONTAL_POSITION.CUSTOM:var o=this._alignment.x;e="custom("+(o>=0?"+":"")+o+")";break;default:a.assert(!1,"Invalid horizontal alignment provided: "+this._alignment.horizontalAlignment)}var r=this._alignment.xOffset;switch(e+=(r>=0?"+":"")+r+"x",this._alignment.verticalAlignment){case l.VERTICAL_POSITION.TOP:t="top";break;case l.VERTICAL_POSITION.BOTTOM:t="bottom";break;case l.VERTICAL_POSITION.CENTER:t="center";break;case l.VERTICAL_POSITION.NEAREST:var s=this._alignment.lineOffset;t="nearest("+(s>=0?"+":"")+s+")";break;case l.VERTICAL_POSITION.CUSTOM:var c=this._alignment.y;t="custom("+(c>=0?"+":"")+c+")";break;default:a.assert(!1,"Invalid vertical alignment provided: "+this._alignment.verticalAlignment)}var d=this._alignment.yOffset;t+=(d>=0?"+":"")+d+"y",n.set(this.notificationDomNode,"data-testid","offscreenNotification_"+e+"_"+t)},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),o.destroy(this.notificationDomNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4255)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(810)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._document=e},getCode:function(){return this._document.getCodeText()},getAbsolutePositionInCode:function(e){return i.getOffsetFromLine(this.getCode(),e.line-1)[0]+e.column-1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4257)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(363)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){e.getSetting("matlab.editor.codingui.Prewarm").then(function(e){e&&i.getInstance().feval("matlab.internal.codingui.warmupProgrammingAids",0,[]).then((function(){}),(function(){}))}.bind(this),(function(){}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4259)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore","rtc.cursor","rtc.code.codingui.codeprovider","rtc.view.id","rtc.settings.service","rtc.executionservice"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(229),i(207),i(281),i(4260)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,t,i,n,r,a){this._backingStore=e,this._cursor=t,this._codeProvider=i,this._editorViewId=n,this.messageService=o.getInstance(),this.messageService.subscribe("/tabcompletion/tcResponse/"+this._editorViewId,"_preprocessResultsCallback",this),this._callbacks={}},cancelRequest:function(){},isBusy:function(){},requestMetaData:function(e,t){var i=this._codeProvider.getCode(),n=this._codeProvider.getAbsolutePositionInCode(t);this.requestMetaDataForCodeAndOffset(e,i,n)},requestMetaDataForCodeAndOffset:function(e,i,n){this.isBusy()&&this.cancelRequest();var o=t.generateUuid();this._callbacks[o]=e;var r=this._cursor.getLineColumn(),a={uri:this._getFilePath(),document:i,cursor:n,line:r.line,column:r.column,requestId:o};this.messageService.publish("/tabcompletion/tcRequest/"+this._editorViewId,a)},_preprocessResultsCallback:function(e){var t=this._cursor.getLineColumn();if(e.data.line===t.line&&e.data.column===t.column){var i=this.getDataFromResponse(e);this._callbacks[e.data.requestId](i),"complete"===i.response&&delete this._callbacks[e.requestId]}},getDataFromResponse:function(e){if(e.data){var t=e.data.results,i=null;if(t)try{i=JSON.parse(t)}catch(e){}return i}},_getFilePath:function(){return n.getAbsoluteFilePathFromBackingStore(this._backingStore)},destroy:function(){this.inherited(arguments),this.messageService.unsubscribe("/tabcompletion/tcResponse/"+this._editorViewId,"_preprocessResultsCallback",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(904)],o=i.dj.d(n,(function(e,t){return new t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4262),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.service.documentloaded","rtc.documentrenderedcontributors"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(244),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,t){this._promiseList=[],this._documentRenderedContributors=t,e.whenDocumentLoadedWithText(function(){this._populateAllContributorRenderPromises(),this._handleAllContributorRenderPromises()}.bind(this))},_populateAllContributorRenderPromises:function(){this._documentRenderedContributors.forEach(function(e){this._promiseList=this._promiseList.concat(e.getRenderPromises())}.bind(this))},_handleAllContributorRenderPromises:function(){n(this._promiseList).then(function(){this._promiseList=[],this.onDocumentRendered()}.bind(this),{})},onDocumentRendered:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4264)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","language.interface.tokenmanager","rtc.indentutilities","rtc.settings.service"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(234),i(237),i(720),i(924),i(320),i(620),i(475),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(s,{SMART_FORMATTER_ID:"automaticcoding_autowrapcomment",_AUTOWRAP_ID:"matlab.editor.language.matlab.comments.WrapAutomatically",constructor:function(e,t,i,n){this._document=e,this._matlabTokenManager=t,this._indentUtilities=i,this._settingService=n,this.own(this._settingService.listenToSettingChange(this._AUTOWRAP_ID,this._onAutoWrapEnabledPreferenceChange.bind(this))),this._initializeEnablement()},_initializeEnablement:function(){this._settingService.getSetting(this._AUTOWRAP_ID).then(function(e){this._onAutoWrapEnabledPreferenceChange(e)}.bind(this),(function(e){}))},_onAutoWrapEnabledPreferenceChange:function(e){e?this.enable():this.disable()},_isTriggerTypeExpected:function(e){return e.type===l.INSERT_TEXT},_isTriggerPositionExpected:function(e){var n=this._getCurrentLine(e)-1,o=this._getCurrentColumn(e)-1;if(t.assert(n>=0&&o>=0,"Line and column numbers must be non-negative"),!i.isCodeContainer(e.triggerPos.getNode()))return!1;var r=this._indentUtilities.findFirstNonWhitespaceTokenInLine(n);return null!==r&&this._isCursorAtEndOfLine(e)&&a.isCommentToken(r)&&!a.isSectionTitleToken(r)&&this._isLineLongEnoughToBeWrapped(n+1)},_findAndRecordTarget:function(e){var t,i=this._getCurrentLine(e),o=i-1,r=this._getCurrentColumn(e)-1,a={};if(this._matlabTokenManager.isInBlockComment(o,r)){var s=this._getCurrentText(i),l=n.getLeadingWhitespace(s),c=n.getWhitespaceStringOfLength(l);if(c.length>=this._getMaxWidthForLine(i)||c.length>=this._getRowEnd(i))return!1;t=c}else{var d=this._getCommentAnnotation(i);if(!d)return!1;t=d}var u=this._getCurrentLine(e),h=this._getCommentBreakPosition(u,t);return!(h<0)&&(a.breakPosition=h,a.annotation=t,e.target=a,!0)},format:function(e){var t=this._getCurrentLine(e)-1,i=e.target.breakPosition;if(!(i<0)){var n=this._getRowEnd(t+1)-i,o=this._document.getTextCharacters(t,i,n),r=e.target.annotation+this._trimStart(o);t+=1,i+=1;var a=this._getRowEnd(t)+1;this._document.deleteText(t,i,t,a),this._document.insertBreakAt(t,i),this._document.insertText(r,t+1,i)}},postFormat:function(e){var t=e.cursorPos.getLineColumn();o.isAutoIndentEnabled()&&!this._matlabTokenManager.isInBlockComment(t.line-1,t.column-1)&&this._indentUtilities.format(t.line-1)},_getCurrentLine:function(e){return e.triggerPos.getLine()},_getCurrentColumn:function(e){return e.triggerPos.getColumn()},_isCursorAtEndOfLine:function(e){return this._getCurrentColumn(e)===this._getRowEnd(this._getCurrentLine(e))},_getRowEnd:function(e){return this._getCurrentText(e).length},_getCurrentText:function(e){return this._document.getLineText(e)},_isLineLongEnoughToBeWrapped:function(e){return this._getRowEnd(e)>this._getMaxWidthForLine(e)},_getMaxWidthForLine:function(e){var t=this._settingService.get(r.WRAP_WIDTH_ID,r.WRAP_DEFAULT_WIDTH);if(this._settingService.get(r.WRAP_FROM_COMMENT_START_ID,!1)){var i=this._getCurrentText(e);t+=n.getLeadingWhitespace(i)}return t},_getCommentAnnotation:function(e){var t=this._getCurrentText(e).match(r.COMMENT_ANNOTATION_REGEXP)[0],i=t.length;return i<1||i>=this._getMaxWidthForLine(e)?null:this._trimStart(t)},_trimStart:function(e){return null===e?"":e.replace(c.LEADING_SPACES_REGEXP,"")},_getCommentBreakPosition:function(e,t){for(var i=this._getRowEnd(e)-1,n=this._getMaxWidthForLine(e),o=-1,r=!1,a=t.length,s=this._getCurrentText(e),l=this._findCommentStartColumn(e-1)+a,c=i;c>=l;c--){var d=this._isWhitespace(s.charAt(c));if(r&&!d)break;d&&(o=c,c<=n&&(r=!0))}return o},_findCommentStartColumn:function(e){return this._matlabTokenManager.getFirstOnLineTokenToPassCheck(e,a.isCommentToken).getColumn()},_isWhitespace:function(e){return t.assert(1===e.length,"Expected input length of 1"),0===e.trim().length}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4266)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","rtc.code.comment","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(720),i(728),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_splitcomment",_TARGET_REGEXP:o.COMMENT_REGEXP,constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._commentCode=n,this._matlabTokenManager=o,this._actionService.loadActions(this._getActions())},_isTriggerPositionExpected:function(e){var i=e.triggerPos.getNode(),n=e.triggerPos.getLineColumn().line-1,r=e.triggerPos.getLineColumn().column-1;if(n<0||r<=0)return!1;var a=e.cursorPos.getLine()-1,s=e.cursorPos.getColumn()-1;return t.isCodeContainer(i)&&o.isFirstLayerContainer(e.triggerPos)&&o.isCursorPositionApplicableForSplitRule(e.cursorPos)&&this._matlabTokenManager.isInComment(n,r-1)&&!this._matlabTokenManager.isInBlockComment(n,r-1)&&!this._matlabTokenManager.isInComment(a,s)},format:function(e){if(!this._document.isReadOnly()&&!e.cursor.isCursorReadOnly()){var t=this._commentCode.getCommentAnnotation(),i=e.cursorPos.getLineColumn().line;this._document.insertText(t,i,e.cursorPos.getLineColumn().column),e.cursor.onUpdate()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4268)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1119),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_roundpareninsert",_OPEN_CHAR:o.ROUND_PAREN_OPEN_CHAR,_CLOSE_CHAR:o.ROUND_PAREN_CLOSE_CHAR,_ALLOWED_CHAR_AFTER_CURSOR:o.PAIR_INSERT_ALLOWED_CHAR_AFTER_CURSOR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4270)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","matlab.lexer.statemanager"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1416),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_roundparendelete",_OPEN_CHAR:o.ROUND_PAREN_OPEN_CHAR,_CLOSE_CHAR:o.ROUND_PAREN_CLOSE_CHAR})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4272)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1119),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_squarepareninsert",_OPEN_CHAR:o.SQUARE_PAREN_OPEN_CHAR,_CLOSE_CHAR:o.SQUARE_PAREN_CLOSE_CHAR,_ALLOWED_CHAR_AFTER_CURSOR:o.PAIR_INSERT_ALLOWED_CHAR_AFTER_CURSOR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4274)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","matlab.lexer.statemanager"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1416),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_squareparendelete",_OPEN_CHAR:o.SQUARE_PAREN_OPEN_CHAR,_CLOSE_CHAR:o.SQUARE_PAREN_CLOSE_CHAR})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4276)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1119),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_curlypareninsert",_OPEN_CHAR:o.CURLY_PAREN_OPEN_CHAR,_CLOSE_CHAR:o.CURLY_PAREN_CLOSE_CHAR,_ALLOWED_CHAR_AFTER_CURSOR:o.PAIR_INSERT_ALLOWED_CHAR_AFTER_CURSOR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4278)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","matlab.lexer.statemanager"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1416),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_curlyparendelete",_OPEN_CHAR:o.CURLY_PAREN_OPEN_CHAR,_CLOSE_CHAR:o.CURLY_PAREN_CLOSE_CHAR})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4280)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(234),i(237),i(1120),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(r,{SMART_FORMATTER_ID:"automaticcoding_singlequoteinsert",_OPEN_CHAR:a.SINGLE_QUOTE_OPEN_CHAR,_CLOSE_CHAR:a.SINGLE_QUOTE_CLOSE_CHAR,_ALLOWED_CHAR_AFTER_CURSOR:a.PAIR_INSERT_ALLOWED_CHAR_AFTER_CURSOR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4282)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1417),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_singlequotedelete",_OPEN_CHAR:o.SINGLE_QUOTE_OPEN_CHAR,_CLOSE_CHAR:o.SINGLE_QUOTE_CLOSE_CHAR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())},_checkPairDeleteIsApplicable:function(e){if(!this.inherited(arguments))return!1;var t=e.cursorPos.getLineColumn().line-1;return!o.lineHasUntermSingleQuoteString(t,this._matlabTokenManager)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4284)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(237),i(1120),i(475),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_TARGET_REGEXP:/[‘’]/g,_ALLOWED_CHAR_AFTER_CURSOR:r.PAIR_INSERT_ALLOWED_CHAR_AFTER_CURSOR,_OPEN_CHAR:r.SINGLE_SMART_QUOTE_OPEN_CHAR,_CLOSE_CHAR:r.SINGLE_SMART_QUOTE_CLOSE_CHAR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n},_isTriggerTypeExpected:function(e){return e.type===o.INSERT_TEXT},_findAndRecordTarget:function(e){if(e.text.length>1)return!1;var t=e.triggerPos.getLineColumn().line,n=i.getRangeAndTextOfTargetOnLine(this._internalDocument,t,this._TARGET_REGEXP);return!!n&&(e.target=n,!0)},format:function(e){var t=e.cursorPos.getLineColumn(),i=t.line,n=t.column;e.text=e.text.replace(this._TARGET_REGEXP,r.SINGLE_QUOTE_OPEN_CHAR+r.SINGLE_QUOTE_CLOSE_CHAR),this._document.replaceText(e.text,i,e.target.start,i,e.target.end),e.cursor.setLineColumn(i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4286)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(237),i(1120),i(475),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_TARGET_REGEXP:/[“”]/g,_ALLOWED_CHAR_AFTER_CURSOR:r.PAIR_INSERT_ALLOWED_CHAR_AFTER_CURSOR,_OPEN_CHAR:r.DOUBLE_SMART_QUOTE_OPEN_CHAR,_CLOSE_CHAR:r.DOUBLE_SMART_QUOTE_CLOSE_CHAR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n},_isTriggerTypeExpected:function(e){return e.type===o.INSERT_TEXT},_findAndRecordTarget:function(e){if(e.text.length>1)return!1;var t=e.triggerPos.getLineColumn().line,n=i.getRangeAndTextOfTargetOnLine(this._internalDocument,t,this._TARGET_REGEXP);return!!n&&(e.target=n,!0)},format:function(e){var t=e.cursorPos.getLineColumn(),i=t.line,n=t.column;e.text=e.text.replace(this._TARGET_REGEXP,r.DOUBLE_QUOTE_OPEN_CHAR+r.DOUBLE_QUOTE_CLOSE_CHAR),this._document.replaceText(e.text,i,e.target.start,i,e.target.end),e.cursor.setLineColumn(i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4288)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(237),i(234),i(620),i(475),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(r,{SMART_FORMATTER_ID:"automaticcoding_singlesmartquote",_TARGET_REGEXP:/[‘’](?![\'‘’\'])(?![\"“”\"])/g,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())},_isTriggerTypeExpected:function(e){return e.type===a.INSERT_TEXT},_isTriggerPositionExpected:function(e){var t=e.triggerPos.getNode(),i=e.triggerPos.getLine(),n=e.triggerPos.getColumn();return!!o.isCodeContainer(t)&&!this._matlabTokenManager.isInString(i-1,n-1)},_findAndRecordTarget:function(e){if(e.text.length>1)return!1;var t=e.triggerPos.getLineColumn().line,i=n.getRangeAndTextOfTargetOnLine(this._internalDocument,t,this._TARGET_REGEXP);return!!i&&(e.target=i,!0)},format:function(e){var t=e.cursorPos.getLineColumn(),i=t.line,n=t.column;e.text=e.text.replace(this._TARGET_REGEXP,s.SINGLE_QUOTE_OPEN_CHAR),this._document.replaceText(e.text,i,e.target.start,i,e.target.end),e.cursor.setLineColumn(i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4290)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(237),i(234),i(620),i(475),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(r,{SMART_FORMATTER_ID:"automaticcoding_doublesmartquote",_TARGET_REGEXP:/[“”](?![\"“”\"])(?![\'“”\'])/g,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())},_isTriggerTypeExpected:function(e){return e.type===a.INSERT_TEXT},_isTriggerPositionExpected:function(e){var t=e.triggerPos.getNode(),i=e.triggerPos.getLine(),n=e.triggerPos.getColumn();return!!o.isCodeContainer(t)&&!this._matlabTokenManager.isInString(i-1,n-1)},_findAndRecordTarget:function(e){if(e.text.length>1)return!1;var t=e.triggerPos.getLine(),i=n.getRangeAndTextOfTargetOnLine(this._internalDocument,t,this._TARGET_REGEXP);return!!i&&(e.target=i,!0)},format:function(e){var t=e.cursorPos.getLineColumn(),i=t.line,n=t.column;this._document.replaceText(s.DOUBLE_QUOTE_OPEN_CHAR,i,e.target.start,i,e.target.end),e.cursor.setLineColumn(i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4292)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1120),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_doublequoteinsert",_OPEN_CHAR:o.DOUBLE_QUOTE_OPEN_CHAR,_CLOSE_CHAR:o.DOUBLE_QUOTE_CLOSE_CHAR,_ALLOWED_CHAR_AFTER_CURSOR:o.PAIR_INSERT_ALLOWED_CHAR_AFTER_CURSOR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4294)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1417),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_doublequotedelete",_OPEN_CHAR:o.DOUBLE_QUOTE_OPEN_CHAR,_CLOSE_CHAR:o.DOUBLE_QUOTE_CLOSE_CHAR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())},_checkPairDeleteIsApplicable:function(e){if(!this.inherited(arguments))return!1;var t=e.cursorPos.getLineColumn().line-1;return!o.lineHasUntermDoubleQuoteString(t,this._matlabTokenManager)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4296)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","matlab.lexer.statemanager"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1418),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_roundparenoverwrite",_OPEN_CHAR:o.ROUND_PAREN_OPEN_CHAR,_CLOSE_CHAR:o.ROUND_PAREN_CLOSE_CHAR})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4298)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","matlab.lexer.statemanager"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1418),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_curlyparenoverwrite",_OPEN_CHAR:o.CURLY_PAREN_OPEN_CHAR,_CLOSE_CHAR:o.CURLY_PAREN_CLOSE_CHAR})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4300)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","matlab.lexer.statemanager"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1418),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_squareparenoverwrite",_OPEN_CHAR:o.SQUARE_PAREN_OPEN_CHAR,_CLOSE_CHAR:o.SQUARE_PAREN_CLOSE_CHAR})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4302)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1419),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_singlequoteoverwrite",_OPEN_CHAR:o.SINGLE_QUOTE_OPEN_CHAR,_CLOSE_CHAR:o.SINGLE_QUOTE_CLOSE_CHAR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())},_isCursorPositionApplicable:function(e){if(!this.inherited(arguments))return!1;var t=e.cursorPos.getLineColumn().line-1;return o.lineHasUntermSingleQuoteString(t,this._matlabTokenManager)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4304)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(324),i(927),i(1419),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(r,{SMART_FORMATTER_ID:"automaticcoding_doublequoteoverwrite",_OPEN_CHAR:a.DOUBLE_QUOTE_OPEN_CHAR,_CLOSE_CHAR:a.DOUBLE_QUOTE_CLOSE_CHAR,constructor:function(e,t,i,n){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._isolatedTokenizer=new o,this.own(this._isolatedTokenizer),this._actionService.loadActions(this._getActions())},_isCursorPositionApplicable:function(e){if(!this.inherited(arguments))return!1;if(this._insertedAtStartOfValidString(e))return!1;var t=e.cursorPos.getLineColumn().line-1;return a.lineHasUntermDoubleQuoteString(t,this._matlabTokenManager)},_insertedAtStartOfValidString:function(e){var t=e.triggerPos.getLine(),i=this._document.getLineText(t),o=e.triggerPos.getColumn();i=i.slice(0,o-1)+i.slice(o);var r=e.cursorPos.getColumn()-2;this._isolatedTokenizer.initializeLines(i);var a=this._isolatedTokenizer.getTokenOnLineColumn(0,r);return a.getType()===n.TOKENS.STRING_LITERAL&&a.getColumn()===r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i,n,o,r){this._index=e,this._type=t,this._line=i,this._column=n,this._length=o,this._value=r},getIndex:function(){return this._index},getLength:function(){return this._length},equals:function(e){return e&&this._index===e._index&&this._type===e._type&&this._line===e._line&&this._column===e._column&&this._length===e._length&&this._value===e._value},getColumn:function(){return this._column},getPositionInfo:function(){return{line:this._line,column:this._column}},getLine:function(){return this._line},setLine:function(e){this._line=e},getType:function(){return this._type},getValue:function(){return this._value}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4307)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(320),i(1988),i(305)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{SMART_FORMATTER_ID:"automaticcoding_splitdoublequotestring",_TRIGGER_POS_REQ_CHAR:o.DOUBLE_QUOTE_CLOSE_CHAR+" + "+o.LINE_CONTINUATION,_CURSOR_POS_REQ_CHAR:o.DOUBLE_QUOTE_OPEN_CHAR,_TRIGGER_POS_REQ_CHAR_ESC_CHAR:o.DOUBLE_QUOTE_CLOSE_CHAR+o.DOUBLE_QUOTE_CLOSE_CHAR+" + "+o.LINE_CONTINUATION,_QUOTE_TYPE:"double",constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=n,this._indentUtilities=o,this._actionService.loadActions(this._getActions())},_formatQuoteTypeSpecific:function(e,t,i){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4309)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(237),i(927),i(1988),i(305)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{SMART_FORMATTER_ID:"automaticcoding_splitsinglequotestring",_TRIGGER_POS_REQ_CHAR:r.SINGLE_QUOTE_CLOSE_CHAR+" "+r.LINE_CONTINUATION,_CURSOR_POS_REQ_CHAR:r.SINGLE_QUOTE_OPEN_CHAR,_STRING_OPEN_BRACKET:r.SQUARE_PAREN_OPEN_CHAR,_STRING_CLOSE_BRACKET:r.SQUARE_PAREN_CLOSE_CHAR,_TRIGGER_POS_REQ_CHAR_ESC_CHAR:r.SINGLE_QUOTE_CLOSE_CHAR+r.SINGLE_QUOTE_CLOSE_CHAR+r.LINE_CONTINUATION,_STRING_OPEN_REGEX:new RegExp("\\"+r.SQUARE_PAREN_OPEN_CHAR+"\\s*"+r.SINGLE_QUOTE_OPEN_CHAR),_STRING_CLOSE_REGEX:new RegExp(r.SINGLE_QUOTE_CLOSE_CHAR+"\\s*\\"+r.SQUARE_PAREN_CLOSE_CHAR),_STRING_CONTINUATION_REGEX:new RegExp(r.SINGLE_QUOTE_CLOSE_CHAR+"\\s*\\.\\.\\."),_QUOTE_TYPE:"single",constructor:function(e,t,i,o,r){this._internalDocument=e,this._document=t,this._actionService=i,this._matlabTokenManager=o,this._indentUtilities=r,this._actionService.loadActions(this._getActions()),this._isolatedTokenizer=new n,this.own(this._isolatedTokenizer)},_formatForFirstTimeSplitString:function(e,t){var i=this._getRange(this._internalDocument,e.getLine(),this._STRING_OPEN_REGEX),n=this._getRange(this._internalDocument,t.getLine(),this._STRING_CLOSE_REGEX),o=this._getRange(this._internalDocument,t.getLine(),this._STRING_CONTINUATION_REGEX);this._isFirstTimeSplit(e.getColumn()-1,t.getColumn()-1,i,n,o)&&(this._document.insertText(this._STRING_OPEN_BRACKET,e.getLine(),e.getColumn()),this._document.insertText(this._STRING_CLOSE_BRACKET,t.getLine(),t.getColumn()))},_isFirstTimeSplit:function(e,t,i,n,o){if(!i&&!n&&!o)return!0;var r=!0,a=!0,s=!0;return i&&(r=!(e>=i.end-2)),n&&(a=!(t<=n.start)),o&&(s=!(t===o.start)),r&&a&&s},_getRange:function(e,t,n){return i.getRangeAndTextOfTargetOnLine(e,t,n)},_formatQuoteTypeSpecific:function(e){var t=this._getEndSplitStringPosition(e.cursorPos);this._formatForFirstTimeSplitString(e.startOfSplitString,t),e.startOfSplitString.destroy(),t.destroy()},_getEndSplitStringPosition:function(e){var t=e.getLine(),i=t-1,n=e.getColumn()-1,o=this._document.getLineText(t);this._isolatedTokenizer.initializeLines(o);var r=this._isolatedTokenizer.getTokenOnLineColumn(0,n);return this._document.createPositionAtLineColumn(i,r.getColumn()+r.getLength())},_cacheDataForQuoteTypeSpecificFormat:function(e){var t=this._matlabTokenManager.getTokenOnLineColumn(e.triggerPos.getLine()-1,e.triggerPos.getColumn()-2),i=this._document.createPositionAtLineColumn(t.getLine(),t.getColumn());return e.startOfSplitString=i,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4311)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{SMART_FORMATTER_ID:"automaticcoding_endargumentsblock",_TARGET_REGEXP:n.getTokenValueById(i.TOKENS.ARGUMENTS_BLOCK),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4313)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endclassdefblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.CLASSDEF),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4315)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endenumerationblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.ENUMERATION),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4317)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endeventsblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.EVENTS),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4319)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endforblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.FOR),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4321)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endfunctionblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.FUNCTION),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())},isApplicable:function(e){return!!this.inherited(arguments)&&this._isValidDocumentState(e)},_isValidDocumentState:function(e){var t=e.triggerPos.getLine()-1,i=this._matlabTokenManager.getAllBlockTokens(),n=[],r=!1;return i.some((function(e){if(!o.isFunctionToken(e)||e.getLine()!==t)if(o.isTokenEndOfBlock(e)){if(0===n.length)return r=!0,!0;n.pop()}else n.push(e)})),!r&&0===n.length}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4323)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endifblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.IF),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4325)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endmethodsblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.METHODS),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4327)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endparforblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.PARFOR),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4329)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endpropertiesblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.PROPERTIES),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4331)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endspmdblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.SPMD),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4333)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endswitchblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.SWITCH),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4335)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endtryblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.TRY),_CATCH_STRING:"catch ME",constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())},_tokenSpecificFormat:function(e,t,i,n,o){this._document.insertText("\n\n",e,i+1),this._document.insertText(this._CATCH_STRING,e+1,1),t>1&&this._indentUtilities.changeLineIndent(e+1,t-1),n>0&&this._indentUtilities.changeLineIndent(e,n),o.cursor.setLineColumn(e,t,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4337)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","language.interface.tokenmanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(476),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{SMART_FORMATTER_ID:"automaticcoding_endwhileblock",_TARGET_REGEXP:o.getTokenValueById(n.TOKENS.WHILE),constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._actionService=i,this._indentUtilities=o,this._matlabTokenManager=n,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4339)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.actionservice","rtc.code.comment","language.interface.tokenmanager","matlab.lexer.statemanager","rtc.indentutilities"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(720),i(728),i(305),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{SMART_FORMATTER_ID:"automaticcoding_parentheseslinebreak",_LEFTPARENTHESIS:a.getTokenValueById(r.TOKENS.LP),_RIGHTPARENTHESIS:a.getTokenValueById(r.TOKENS.RP),constructor:function(e,t,i,n,o,r,a){this._internalDocument=e,this._document=t,this._actionService=i,this._commentCode=n,this._matlabTokenManager=o,this._matlabStateManager=r,this._actionService.loadActions(this._getActions()),this._indentUtilities=a},_isTriggerPositionExpected:function(e){var i=e.triggerPos.getNode(),n=e.triggerPos.getLine()-1,r=e.triggerPos.getColumn()-1;return!(n<0||r<0)&&(t.isCodeContainer(i)&&o.isFirstLayerContainer(e.triggerPos)&&o.isCursorPositionApplicableForSplitRule(e.cursorPos)&&!this._matlabTokenManager.isInComment(n,r-1)&&!this._matlabTokenManager.isInBlockComment(n,r-1)&&!this._matlabTokenManager.isInString(n)&&this._checkIsEllipsesNeeded(n))},_checkIsEllipsesNeeded:function(e){var t=this._matlabTokenManager.getTokensOnLine(e);if(this._checkHasPreThreeDots(t))return!1;var i=this._getAllParenthesesBeforeSplit(e);if(this._countOpenLeftParenthesis(i)<=0)return!1;var n=this._getAllParenthesesAfterSplit(e+1),o=i.concat(n);return a.checkTokensAreMatching(o,this._LEFTPARENTHESIS,this._RIGHTPARENTHESIS)},format:function(e){if(!this._document.isReadOnly()&&!e.cursor.isCursorReadOnly()){var t=e.triggerPos.getLine(),i=e.triggerPos.getColumn(),n=o.LINE_CONTINUATION;this._isSpaceNeeded(e)&&(n=" "+n),this._document.insertText(n,t,i)}},_isSpaceNeeded:function(e){var t=e.triggerPos.getColumn();if(1===t)return!1;var i=e.triggerPos.getLine()-1;t-=2;var n=this._matlabTokenManager.getTokenOnLineColumn(i,t);return!a.isWhitespaceToken(n)},postFormat:function(e){if(i.isAutoIndentEnabled()){var t=e.cursorPos.getLine();this._indentUtilities.format(t-1)}},_getParenthesesTokensOnLine:function(e){return this._matlabTokenManager.getTokensOnLineToPassCheck(e,e=>e.getValue()===this._LEFTPARENTHESIS||e.getValue()===this._RIGHTPARENTHESIS)},_getAllParenthesesBeforeSplit:function(e){if(0===e)return this._getParenthesesTokensOnLine(e);var t=null;if(this._checkIsLineContinuation(e)&&(t=this._getAllParenthesesBeforeSplit(e-1)),null===t)return this._matlabTokenManager.getTokensOnLine(e);var i=this._getParenthesesTokensOnLine(e);return t.concat(i)},_getAllParenthesesAfterSplit:function(e){var t=this._getParenthesesTokensOnLine(e);for(e++;this._checkIsLineContinuation(e);){var i=this._getParenthesesTokensOnLine(e);t=t.concat(i),e++}return t},_checkIsLineContinuation:function(e){return this._matlabStateManager.isLineContinuation(this._matlabStateManager.getLexStateForLine(e))},_checkHasPreThreeDots:function(e){for(var t=e.length-1;t>=0;){var i=e[t];if(!a.isWhitespaceToken(i)&&!a.isEndOfLineToken(i))return a.isDotDotDotToken(i);t--}return!1},_countOpenLeftParenthesis:function(e){for(var t=0,i=0;i<e.length;i++){var n=e[i].getValue();n===this._LEFTPARENTHESIS?t++:n===this._RIGHTPARENTHESIS&&t>0&&t--}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4341)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext.lists"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(1121),i(305)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{SMART_FORMATTER_ID:"markdown_bulletedlist",_TARGET_REGEXP:/^[\*+-]\s$/,_TRIGGER_CHAR:" ",_LIST_TYPE:"unordered",constructor:function(e,t,i){this._document=e,this._actionService=t,this._list=i,this._actionService.loadActions(this._getActions())},_isTriggerPositionExpected:function(e){var i=e.triggerPos.getNode();return!t.isCodeContainer(i)&&n.isFirstLayerContainer(e.triggerPos)&&i===i.rootContainer().startNode()},_format:function(e){var t=e.target,i=t.line,n=t.line;this._list.isLineListParagraph(i-1,this._LIST_TYPE)&&(t.line-=1,i-=1),this._list.convertLineRangeIntoList(i,n,this._LIST_TYPE);var o=e.cursorPos.getLineColumn();return t.left=o.column-e.cursorPos.getOffset(),t.right=o.column,this._document.deleteText(t.line,t.left,t.line,t.right),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4343)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.cursor","rtc.actionservice","rtc.richtext"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(237),i(582),i(728)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{SMART_FORMATTER_ID:"markdown_heading",_TARGET_REGEXP:/^#{2,4}(?!#)\s*\S/,constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._cursor=i,this._actionService=n,this._richText=o,this._actionService.loadActions(this._getActions())},_getTypeOfParagraph:function(e){var n=t.getRangeAndTextOfTargetOnLine(this._internalDocument,e,this._TARGET_REGEXP),o=(n?n.text:"").match(/^#{2,4}/)[0];return"###"===o?i.HEADING2.FORMAT:"####"===o?i.HEADING3.FORMAT:i.HEADING1.FORMAT}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4345)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext.lists"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(1121),i(305)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{SMART_FORMATTER_ID:"markdown_numberedlist",_TARGET_REGEXP:/^[1-9][0-9]*\.\s/,_TRIGGER_CHAR:" ",_LIST_TYPE:"ordered",constructor:function(e,t,i){this._document=e,this._actionService=t,this._list=i,this._actionService.loadActions(this._getActions())},_isTriggerPositionExpected:function(e){var i=e.triggerPos.getNode();return!t.isCodeContainer(i)&&n.isFirstLayerContainer(e.triggerPos)&&i===i.rootContainer().startNode()},_findAndRecordTarget:function(e){var t=this._getTextRangeForFormatting(e.cursorPos);if(!t)return!1;if(t.text.match(this._TARGET_REGEXP)[0].length+1!==e.cursorPos.getLineColumn().column)return!1;var i=this._getItemNumberFromExtractedText(t.text);return!!this._isItemNumberValidForLine(i,t.line)&&(e.target=t,!0)},_format:function(e){var t=e.target,i=t.line,n=t.line,o=this._getItemNumberFromExtractedText(t.text);this._canItemNumberJoinList(o,t.line-1)&&(t.line-=1,i-=1),this._list.convertLineRangeIntoList(i,n,this._LIST_TYPE);var r=e.cursorPos.getLineColumn();return t.left=r.column-e.cursorPos.getOffset(),t.right=r.column,this._document.deleteText(t.line,t.left,t.line,t.right),e},_getItemNumberFromExtractedText:function(e){return parseInt(e.slice(0,-2),10)},_isItemNumberValidForLine:function(e,t){return!!this._canItemNumberJoinList(e,t-1)||1===e},_canItemNumberJoinList:function(e,t){return this._list.isLineListParagraph(t,this._LIST_TYPE)&&e===this._list.getNumberOfItemsInList(t,this._LIST_TYPE)+1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4347)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.cursor","rtc.actionservice","rtc.richtext"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(582),i(728)],o=i.dj.d(n,(function(e,t,i){return e(i,{SMART_FORMATTER_ID:"markdown_title",_TARGET_REGEXP:/^#(?!#)\s*\S/,constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._cursor=i,this._actionService=n,this._richText=o,this._actionService.loadActions(this._getActions())},_getTypeOfParagraph:function(e){return t.TITLE.FORMAT}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4349)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(674)],o=i.dj.d(n,(function(e,t){return e(t,{SMART_FORMATTER_ID:"markdown_bold2",_OPEN_CHAR:"__",_CLOSE_CHAR:"__",_TARGET_REGEXP:/\_\_(?!\s)[^\_]*[^\_\s]\_\_$/,_TARGET_STYLE:["bold"],constructor:function(e,t,i){this._document=e,this._actionService=t,this._richText=i,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4351)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(674)],o=i.dj.d(n,(function(e,t){return e(t,{SMART_FORMATTER_ID:"markdown_bold",_OPEN_CHAR:"**",_CLOSE_CHAR:"**",_TARGET_REGEXP:/\*\*(?!\s)[^\*]*[^\*\s]\*\*$/,_TARGET_STYLE:["bold"],constructor:function(e,t,i){this._document=e,this._actionService=t,this._richText=i,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4353)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext.hyperlink"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(928)],o=i.dj.d(n,(function(e,t){return e(t,{SMART_FORMATTER_ID:"markdown_hyperlink_labelurl",_OPEN_CHAR:"[",_CLOSE_CHAR:")",_TARGET_REGEXP:/(\[(.+)\]\()(.+?)(\))$/,constructor:function(e,t,i){this._document=e,this._actionService=t,this._hyperlink=i,this._actionService.loadActions(this._getActions())},_format:function(){var e=this.inherited(arguments),t=e.target,i=t.text,n=i.split("]("),o=n[0].trim(),r=n[1].trim();return this._hyperlink.applyHyperlinkInLineColumn(r,o,t.line,t.left,t.right),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4355)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext.hyperlink"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(928),i(305)],o=i.dj.d(n,(function(e,t,i){return e(t,{SMART_FORMATTER_ID:"markdown_hyperlink_urltag",_OPEN_CHAR:"<",_CLOSE_CHAR:">",_TARGET_REGEXP:new RegExp("<"+i.URL_REGEXP_STRING+">$"),constructor:function(e,t,i){this._document=e,this._actionService=t,this._hyperlink=i,this._actionService.loadActions(this._getActions())},_format:function(){var e,t,i=this.inherited(arguments),n=i.target;return e=n.text,t=n.text,this._hyperlink.applyHyperlinkInLineColumn(e,t,n.line,n.left,n.right),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4357)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(674)],o=i.dj.d(n,(function(e,t){return e(t,{SMART_FORMATTER_ID:"markdown_italic2",_OPEN_CHAR:"_",_CLOSE_CHAR:"_",_TARGET_REGEXP:/\_(?!\s)[^\_]*[^\_\s]\_$/,_TARGET_STYLE:["italic"],constructor:function(e,t,i){this._document=e,this._actionService=t,this._richText=i,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4359)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(674)],o=i.dj.d(n,(function(e,t){return e(t,{SMART_FORMATTER_ID:"markdown_italicbold2",_OPEN_CHAR:"___",_CLOSE_CHAR:"___",_TARGET_REGEXP:/\_\_\_(?!\s)[^\_]*[^\_\s]\_\_\_$/,_TARGET_STYLE:["italic","bold"],constructor:function(e,t,i){this._document=e,this._actionService=t,this._richText=i,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4361)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(674)],o=i.dj.d(n,(function(e,t){return e(t,{SMART_FORMATTER_ID:"markdown_italicbold",_OPEN_CHAR:"***",_CLOSE_CHAR:"***",_TARGET_REGEXP:/\*\*\*(?!\s)[^\*]*[^\*\s]\*\*\*$/,_TARGET_STYLE:["italic","bold"],constructor:function(e,t,i){this._document=e,this._actionService=t,this._richText=i,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4363)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(674)],o=i.dj.d(n,(function(e,t){return e(t,{SMART_FORMATTER_ID:"markdown_italic",_OPEN_CHAR:"*",_CLOSE_CHAR:"*",_TARGET_REGEXP:/\*(?!\s)[^\*]*[^\*\s]\*$/,_TARGET_STYLE:["italic"],constructor:function(e,t,i){this._document=e,this._actionService=t,this._richText=i,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4365)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(674)],o=i.dj.d(n,(function(e,t){return e(t,{SMART_FORMATTER_ID:"markdown_monospace",_OPEN_CHAR:"`",_CLOSE_CHAR:"`",_TARGET_REGEXP:/`(?!\s)[^`]*[^`\s]`$/,_TARGET_STYLE:["monospace"],constructor:function(e,t,i){this._document=e,this._actionService=t,this._richText=i,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4367)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(674)],o=i.dj.d(n,(function(e,t){return e(t,{SMART_FORMATTER_ID:"matlab_monospace",_OPEN_CHAR:"|",_CLOSE_CHAR:"|",_TARGET_REGEXP:/\|(?!\s)[^\|]*[^\|\s]\|$/,_TARGET_STYLE:["monospace"],constructor:function(e,t,i){this._document=e,this._actionService=t,this._richText=i,this._actionService.loadActions(this._getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4369)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.cursor","rtc.actionservice","rtc.richtext","rtc.code.sections.sectionbreak"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(582),i(728)],o=i.dj.d(n,(function(e,t,i){return e(i,{SMART_FORMATTER_ID:"matlab_sectionbreak_heading",_TARGET_REGEXP:/^%{2}\s+\S/,constructor:function(e,t,i,n,o,r){this._internalDocument=e,this._document=t,this._cursor=i,this._actionService=n,this._richText=o,this._sectionBreak=r,this._actionService.loadActions(this._getActions())},_isEnabled:function(){var e=this.inherited(arguments);return this._sectionBreak.canInsertSectionBreak()||(e=!1),e},_format:function(e,t){this._sectionBreak.isLineAtStartOfSection(e)||(this._sectionBreak.insertSectionBreakAtLineColumn(e,1),e+=1),this._transformLineToParagraph(e,t)},_getTypeOfParagraph:function(e){return 1===e?t.TITLE.FORMAT:t.HEADING1.FORMAT}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4371)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.cursor","rtc.actionservice","rtc.code.sections.sectionbreak"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(497),i(403),i(260),i(728)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{SMART_FORMATTER_ID:"matlab_sectionbreak_separator",_TARGET_REGEXP:/^(%{2}|-{3,}|\*{3,})\s*$/,constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=t,this._cursor=i,this._actionService=n,this._sectionBreak=o,this._actionService.loadActions(this._getActions())},_isEnabled:function(){var e=this.inherited(arguments);return this._sectionBreak.canInsertSectionBreak()||(e=!1),e},_format:function(e,i){var o=this._internalDocument.getLineNode(e-1),r=e+1;if(this._sectionBreak.isLineAtStartOfSection(e)){var a=o.getTextForPositioning().length+1;this._document.deleteText(e,1,e,a),this._sectionBreak.insertSectionBreakAtLineColumn(r,1)}else{var s=this._internalDocument.getLineNode(r-1),l=this._document.startBlockEdit();this._internalDocument.deleteNode(o,{node:s.startNode(),offset:0});var c=e-2,d=e-1,u=[t.create(c,d,0)];l.appendRedoEvents(u),l.appendUndoEvents(n.translateEventsForUndo(u)),this._internalDocument.emitDocumentEvents(u),this._sectionBreak.insertSectionBreakAtLineColumn(e,1),this._document.endBlockEdit(l)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4373)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(928)],o=i.dj.d(n,(function(e,t){var i={C:"©",R:"®",TM:"™",SM:"℠"};return e(t,{SMART_FORMATTER_ID:"symbol_trademark_copyright",_OPEN_CHAR:"(",_CLOSE_CHAR:")",_TARGET_REGEXP:/\((C|R|TM|SM)\)$/i,_APPLY_ONLY_STANDALONE_SEGMENT:!1,constructor:function(e,t){this._document=e,this._actionService=t,this._actionService.loadActions(this._getActions())},_format:function(){var e=this.inherited(arguments),t=e.target,n=t.text.toUpperCase(),o=i[n];return this._document.replaceText(o,t.line,t.left,t.line,t.right),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4375)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext.hyperlink"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(305),i(475),i(1121)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{SMART_FORMATTER_ID:"hyperlink",_TARGET_REGEXP:new RegExp(i.URL_REGEXP_STRING+"$"),_TRIGGER_CHAR:" ",constructor:function(e,t,i){this._document=e,this._actionService=t,this._hyperlink=i,this._actionService.loadActions(this._getActions())},_isTriggerTypeExpected:function(e){return e.type===n.INSERT_TEXT&&e.text===this._TRIGGER_CHAR||e.type===n.INSERT_BREAK},_findAndRecordTarget:function(e){var t=this._getTextRangeForFormatting(e.triggerPos);return!!t&&(e.target=t,!0)},_isTriggerPositionExpected:function(e){var i=e.triggerPos;if(i.isAtLeftEdge()){var n=i.getNode().previousSibling();n&&(i=n.endPosition())}var o=i.getNode();return!t.isCodeContainer(o)&&!t.isNonExecutableCodeContainer(o)&&!this._hyperlink.isAtHyperlink(i)},_format:function(e){var t=e.target;return this._hyperlink.applyHyperlinkInLineColumn(t.text,t.text,t.line,t.left,t.right),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4377)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.richtext.equationcontroller"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(928)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{SMART_FORMATTER_ID:"markup_equation",_OPEN_CHAR:"$",_CLOSE_CHAR:"$",_TARGET_REGEXP:/\$(?=[^\s\$])(\S|\s(?!\$))*[^\\\s]\$$/,constructor:function(e,t,i){this._document=e,this._actionService=t,this._equation=i,this._actionService.loadActions(this._getActions()),this._aspectHandles=[],this._initialize()},_convertEquationToMarkup:function(e){var t=e.getTeXString();if(!(t.indexOf("\n")>=0)){var i=this._document.createPosition(e),n=i.getLineColumn(),o=n.line,r=n.column,a=this._document.startBlockEdit();return this._document.insertText("$"+t+"$",o,r),this._equation.deleteEquation(e),this._document.endBlockEdit(a),this._document.deletePosition(i),!0}},_format:function(){var e=this.inherited(arguments),t=e.target;return this._equation.convertRangeToEquation(t.text,t.line,t.left,t.line,t.right),e},enable:function(){this._isEnabled()||this._initialize(),this.inherited(arguments)},disable:function(){this.inherited(arguments),this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]},_initialize:function(){this._aspectHandles.push(i.after(this._equation,"onDelete",t.hitch(this,"_convertEquationToMarkup"),!0))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4379)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.cursor","rtc.undoredo.controller"]}},createInstance:function(e,t,n){return new i(e,t,n)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(249)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(e,t,i){this._document=e,this._cursor=t,this._undoRedoController=i,this._aspectHandles=[],this._cachedCursorPos=null},start:function(){this.reset(),this._cachedCursorPos=this._cursor.getLineColumn(),this._aspectHandles.push(i.after(this._document,"onChange",t.hitch(this,"reset"))),this._aspectHandles.push(i.after(this._cursor,"onChange",t.hitch(this,"_resetOnCursorChange"))),this._aspectHandles.push(i.around(this._document,"deleteTextAtCurrentPosition",t.hitch(this,"_oneTimeUndo")))},reset:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[],this._cachedCursorPos=null},_resetOnCursorChange:function(){var e=this._cursor.getLineColumn();e.line===this._cachedCursorPos.line&&e.column===this._cachedCursorPos.column||this.reset()},_oneTimeUndo:function(e){return t.hitch(this,(function(t){return this.reset(),t===n.BACKWARD_DELETE?(this._undoRedoController.undo(),!0):e.apply(this._document,arguments)}))},destroy:function(){this.reset()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4381)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.cursorcontroller","rtc.actionservice","rtc.smartformatter","rtc.smartformatting.backspaceundohandler","rtc.view.current"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(923),i(249),i(260),i(313),i(266),i(4382),i(475)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(n,{_SMART_FORMATTING_EDIT_BLOCK_TYPE:"SmartFormattingEditBlock",constructor:function(e,i,n,o,r,a,s){this._internalDocument=e,this._document=i,this._cursorController=n,this._actionService=o,this._smartFormatters=r,this._backspaceUndoHandler=a,this._currentView=s,this.enable(),this._actionService.loadActions([{id:"rtc_smartformatting_on",enabled:!0,callback:t.hitch(this,this.enable)},{id:"rtc_smartformatting_off",enabled:!0,callback:t.hitch(this,this.disable)}])},enable:function(){return this._enabled||(this._initialize(),this._enabled=!0),!0},disable:function(){return this._enabled&&(this.destroy(),this._backspaceUndoHandler.reset(),this._enabled=!1,this._smartFormatters.forEach((function(e){e.disable()}))),!0},getSmartFormattersIds:function(){return this._smartFormatters.map((function(e){return e.SMART_FORMATTER_ID}))},_initialize:function(){if(!this._smartFormatters.length)return null;this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_documentChanged"),!0)),this.own(i.after(this._document,"onDirectedDeletion",t.hitch(this,"_onDelete"),!0))},_documentChanged:function(e){if(this._enabled&&this._currentView.isCurrentView()){var t=this._cursorController.getCursors();if(!this._isSmartFormattingInvalidForDocChange(t,e))if(!(e[0]||{}).isUndoRedo){e=e.filter((function(e){var t=e.type;return t===r.INSERT_TEXT||t===r.INSERT_BREAK_EVENT}));var i=this._findSmartFormattersToApply(e,t);this._applySmartFormatters(i)&&this._backspaceUndoHandler.start()}}},_isSmartFormattingInvalidForDocChange:function(e,t){return!t||0===t.length||!(e.length===t.length&&a.allEventsOfSameType(t))},_findSmartFormattersToApply:function(e,t){var i=[];return e.forEach((function(e,n){var o=t[n],a=null;switch(e.type){case r.INSERT_BREAK_EVENT:a=this._createInsertBreakTriggerData(e,o);break;case r.INSERT_TEXT:a=this._createInsertTextTriggerData(e,o)}if(null!==a){var s=this._getFirstApplicable(this._smartFormatters,a);null!==s&&i.push({triggerData:a,smartFormatter:s})}}),this),i},_createInsertBreakTriggerData:function(e,t){if(!this._internalDocument.getLineNode(e.startLine).isTextContainerNode())return null;var i=t.getCursorPosition(),n=this._internalDocument.getPositionForLineColumn(e.startLine+1,e.column+1);if(s.comparePositions(i,n)<=0)return null;var o=d.INSERT_BREAK;return c.createInsertBreakEventTriggerData(o,n,t)},_createInsertTextTriggerData:function(e,t){var i=t.getCursorPosition().getLineColumn(),n=i.line,o=i.column,r=e.position.getLineColumn(),a=r.line,s=r.column+e.length;if(n!==a||o!==s)return null;var l=d.INSERT_TEXT,u=e.text;return c.createInsertTextEventTriggerData(l,e.position,u,t)},_applySmartFormatters:function(e){if(0!==e.length){this._enabled=!1;var t=this._document.startBlockEdit(this._SMART_FORMATTING_EDIT_BLOCK_TYPE),i=!1;return e.forEach((function(e){e.smartFormatter.format(e.triggerData)&&(i=!0)}),this),this._document.endBlockEdit(t),t=this._document.startBlockEdit(this._SMART_FORMATTING_EDIT_BLOCK_TYPE),e.forEach((function(e){e.smartFormatter.postFormat(e.triggerData)}),this),this._document.endBlockEdit(t),this._enabled=!0,i}},_findSmartFormatterAndApply:function(e){var t=this._getFirstApplicable(this._smartFormatters,e);if(!t)return null;this._enabled=!1;var i=t.format(e);return this._enabled=!0,i},_getFirstApplicable:function(e,t){for(var i=0;i<e.length;i+=1){var n=e[i];if(n.isApplicable(t))return n}return null},_onDelete:function(e,t){if(this._enabled&&this._currentView.isCurrentView()){var i=this._cursorController.getCursorsWithoutSelection(),n=new l(t.startPosition,t.endPosition),r=o.getCursorAtEdgeOfRange(i,n);if(null!==r){var a=r.getCursorPosition(),s=d.DELETE,u=c.createDeleteTriggerData(s,a,e,t,r);return!!this._findSmartFormatterAndApply(u)||void 0}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=e(null,{constructor:function(e,t,i,n,o,r){this.type=e,this.triggerPos=t,this.cursorPos=r.getCursorPosition(),this.text=i,this.direction=n,this.selection=o,this.cursor=r}});return{createInsertBreakEventTriggerData:function(e,i,n){return new t(e,i,null,null,null,n)},createInsertTextEventTriggerData:function(e,i,n,o){return new t(e,i,n,null,null,o)},createDeleteTriggerData:function(e,i,n,o,r){return new t(e,i,null,n,o,r)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4384)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service","rtc.actionservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1989)],o=i.dj.d(n,(function(e,t){return e(t,{_MASTER_SETTING:"matlab.editor.autocoding.EnableAutoCoding",_SETTING_TO_ACTION_MAP:{"matlab.editor.autocoding.Parentheses":["_automaticcoding_roundpareninsert","_automaticcoding_roundparendelete","_automaticcoding_roundparenoverwrite"],"matlab.editor.autocoding.CurlyBraces":["_automaticcoding_curlypareninsert","_automaticcoding_curlyparendelete","_automaticcoding_curlyparenoverwrite"],"matlab.editor.autocoding.SquareBrackets":["_automaticcoding_squarepareninsert","_automaticcoding_squareparendelete","_automaticcoding_squareparenoverwrite"],"matlab.editor.autocoding.SingleQuotes":["_automaticcoding_singlequoteinsert","_automaticcoding_singlequotedelete","_automaticcoding_singlequoteoverwrite"],"matlab.editor.autocoding.DoubleQuotes":["_automaticcoding_doublequoteinsert","_automaticcoding_doublequotedelete","_automaticcoding_doublequoteoverwrite"],"matlab.editor.autocoding.Comments":["_automaticcoding_splitcomment"],"matlab.editor.autocoding.CharacterVectors":["_automaticcoding_splitsinglequotestring"],"matlab.editor.autocoding.Strings":["_automaticcoding_splitdoublequotestring"],"matlab.editor.autocoding.SplitParentheses":["_automaticcoding_parentheseslinebreak"],"matlab.editor.autocoding.ControlFlows":["_automaticcoding_endifblock","_automaticcoding_endforblock","_automaticcoding_endwhileblock","_automaticcoding_endtryblock","_automaticcoding_endswitchblock","_automaticcoding_endspmdblock","_automaticcoding_endparforblock"],"matlab.editor.autocoding.Definitions":["_automaticcoding_endfunctionblock","_automaticcoding_endclassdefblock","_automaticcoding_endpropertiesblock","_automaticcoding_endmethodsblock","_automaticcoding_endeventsblock","_automaticcoding_endenumerationblock","_automaticcoding_endargumentsblock"]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4386)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service","rtc.actionservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1989)],o=i.dj.d(n,(function(e,t){return e(t,{_MASTER_SETTING:"matlab.editor.autoformat.EnableAutoFormatting",_SETTING_TO_ACTION_MAP:{"matlab.editor.autoformat.DollarSignForLatex":["_markup_equation"],"matlab.editor.autoformat.URLToHyperlink":["_hyperlink"],"matlab.editor.autoformat.AngleBracketsForHyperlink":["_markdown_hyperlink_urltag"],"matlab.editor.autoformat.LabelURLToHyperlink":["_markdown_hyperlink_labelurl"],"matlab.editor.autoformat.TrademarkCopyrightSymbol":["_symbol_trademark_copyright"],"matlab.editor.autoformat.AsteriskForItalicAndBold":["_markdown_italic","_markdown_bold","_markdown_italicbold"],"matlab.editor.autoformat.UnderscoreForItalicAndBold":["_markdown_italic2","_markdown_bold2","_markdown_italicbold2"],"matlab.editor.autoformat.BacktickAndBarForMonospace":["_markdown_monospace","_matlab_monospace"],"matlab.editor.autoformat.HashtagForTitle":["_markdown_title"],"matlab.editor.autoformat.HashtagsForHeading":["_markdown_heading"],"matlab.editor.autoformat.AutomaticBulletedList":["_markdown_bulletedlist"],"matlab.editor.autoformat.AutomaticNumberedList":["_markdown_numberedlist"],"matlab.editor.autoformat.SectionBreak":["_matlab_sectionbreak_separator"],"matlab.editor.autoformat.SectionBreakAndHeading":["_matlab_sectionbreak_heading"]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4388),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.actionservice","rtc.cursor","rtc.document","rtc.editortabservice"]}},createInstance:function(e,i,n,o){return new t(e,i,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(1962)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i,n,o){this._actionService=e,this._cursor=i,this._document=n,this._editorTabService=o;var r=[{id:"rtc_smart_tab",enabled:!0,key:"tab",callback:t.hitch(this,"_doSmartTab")}];this._actionService.loadActions(r)},_doSmartTab:function(){return n.doSmartTab(this._cursor,this._document,this._editorTabService)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4390)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.service.hover.domnodenotifierfactory","rtc.margin","rtc.margin.preview.preference","margin.execution.sectionsdecorator.utilities","rtc.code.sections.current","rtc.code.sections.stale.model"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_CURRENT_CSS_CLASS:"current",_SECTION_DECORATOR_CSS_CLASS:"section-highlight",_STALE_BACKGROUND_CSS_CLASS:"stale-background",_RUN_SECTION_ACTION:"rtc_run_section",constructor:function(e,i,o,r,a,s){this._domNodeActionHoverNotifierFactory=e,this._marginContainer=i,this._previewMarginPreference=o,this._sectionDecoratorUtilities=r,this._currentSectionModel=a,this._staleSectionModel=s,this._notifiers=[],this._marginContainer.onUpdate&&this.own(n.after(this._marginContainer,"onUpdate",t.hitch(this,"_handleMarginUpdate"),!0))},_handleMarginUpdate:function(e){if(this._cleanupNotifiers(),this._previewMarginPreference.isPreviewEnabled()){var t=this._marginContainer.lineMargin.getElementsByClassName(this._CURRENT_CSS_CLASS+" "+this._SECTION_DECORATOR_CSS_CLASS)[0],i=this._marginContainer.lineMargin.getElementsByClassName(this._STALE_BACKGROUND_CSS_CLASS);this._addNotifier(t,this._currentSectionModel.getCurrentSectionNumber());for(var n=this._sectionDecoratorUtilities.getSectionNumbersInView(e),o=0,r=0;r<i.length;r++){for(;!this._staleSectionModel.isSectionStale(n[o]);)o++;this._addNotifier(i[r],n[o]),o++}}},_addNotifier:function(e,t){if(e){var i=this._domNodeActionHoverNotifierFactory.createNotifier(e,this._RUN_SECTION_ACTION,{sectionNumber:t});i.enable(),this._notifiers.push(i)}},_cleanupNotifiers:function(){this._notifiers.forEach((function(e){e.destroy()})),this._notifiers=[]},destroy:function(){this.inherited(arguments),this._cleanupNotifiers()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4392)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.code.sections.model","rtc.code.sections.current","margin.execution.sectionsdecorator.utilities","margin.statusactionbar.evaluation","rtc.code.matlabfiletype"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(210),i(211),i(221),i(203),i(204),i(807),i(808)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return o([a],{_WIDTH:8,_UNIQUE_ID:"Sections",_CURRENT_CSS_CLASS:"current",_DECORATOR_CSS_CLASS:"section-highlight",_RUN_SECTION_ACTION:"rtc_run_section",constructor:function(t,i,n,o,a){this._sectionModel=t,this._currentSectionModel=i,this._sectionDecoratorUtilities=n,this._sectionEvaluation=o,this._divs=[],this.own(e.after(this._sectionModel,"onModelUpdated",r.hitch(this,"onUpdate"))),this.own(e.after(this._sectionModel,"onAttributesUpdated",r.hitch(this,"onUpdate"))),this.own(e.after(a,"onFileTypeChange",r.hitch(this,"onUpdate"))),this.own(e.after(this._currentSectionModel,"onCurrentSectionChanged",r.hitch(this,"_handleCurrentSectionChanged")))},getRangeDescriptions:function(e){var t=[];this._resetDivs();var i=this._sectionDecoratorUtilities.getSectionNumbersInView(e),n=this._currentSectionModel.getCurrentSectionNumber();return i.forEach((function(e){var i=this._getDescriptionForSection(e,n===e);i&&(this._divs[e]=i.div,t.push(i))}),this),t},_resetDivs:function(){this._divs=[]},_getDescriptionForSection:function(e,t){var n=i.create("div");this._sectionDecoratorUtilities.addDataTestTag(n,e),this._addClassesToDiv(n,e,t);var o=this._sectionModel.getSection(e),r=o.start.getLine(),a=o.end.getLine();return r<0||a<0?null:new s(n,r,a,this,!0,!0)},_addClassesToDiv:function(e,i,n){var o=this._sectionDecoratorUtilities.getDecorationClassesForSection(i);o.push(this._DECORATOR_CSS_CLASS),n&&o.push(this._CURRENT_CSS_CLASS),t.add(e,o)},_handleCurrentSectionChanged:function(){var e=this._currentSectionModel.getCurrentSectionNumber();this._divs.forEach((function(t,i){var n=e===i;t.className="",this._addClassesToDiv(t,i,n)}),this)},handleMouseClick:function(e,t){var i=this._sectionModel.getSectionNumberForLine(t);this._sectionEvaluation.handleMouseClick(e,i)},getWidth:function(){return this._WIDTH},getPriority:function(){return 2},getId:function(){return this._UNIQUE_ID},destroy:function(){this.inherited(arguments),this._resetDivs()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4394)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.code.sections.model","rtc.code.sections.stale.model","margin.execution.sectionsdecorator.utilities","matlab.execution.currentline","rtc.linenumberservice","rtc.code.matlabfiletype"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1990)],o=i.dj.d(n,(function(e,t){return e(t,{_STALE_CSS_CLASS:"stale",constructor:function(e,t,i,n,o,r){},getPriority:function(){return 4},getId:function(){return"Stale_Sections"},_getDecorationClassesForStaleSection:function(e){var t=this._sectionDecoratorUtilities.getDecorationClassesForSection(e);return t.push(this._STALE_CSS_CLASS),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4396)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.code.sections.model","rtc.code.sections.stale.model","margin.execution.sectionsdecorator.utilities","matlab.execution.currentline","rtc.linenumberservice","rtc.code.matlabfiletype"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1990)],o=i.dj.d(n,(function(e,t){return e(t,{_STALE_BACKGROUND_CSS_CLASS:"stale-background",_RUN_SECTION_ACTION:"rtc_run_section",constructor:function(e,t,i,n,o,r){},getPriority:function(){return 1},getId:function(){return"Stale_Sections_Background"},_getDecorationClassesForStaleSection:function(e){var t=this._sectionDecoratorUtilities.getDecorationClassesForSection(e);return t.push(this._STALE_BACKGROUND_CSS_CLASS),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1991)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","rtc.cursorcontroller","rtc.code.sections.model","rtc.code.sections.current","rtc.code.sections.stale.model","rtc.code.matlabfiletype"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)},priority:function(){return 1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4399)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.code.sections.model","rtc.code.sections.current","rtc.code.sections.view.section","margin.execution.sectionsdecorator.utilities","rtc.code.matlabfiletype"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(210),i(211),i(203),i(204),i(575),i(807),i(808),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return n([r,a],{_WIDTH:0,_ACTIVE_SECTION_CSS_CLASS:"active",_SECTION_BREAK_CSS_CLASS:"sectionBreak",constructor:function(t,i,n,r,a){this._sectionModel=t,this._currentSectionModel=i,this._sectionView=n,this._sectionDecoratorUtilities=r,this.own(e.after(this._sectionModel,"onModelUpdated",o.hitch(this,"_handleSectionsUpdated"))),this.own(e.after(this._sectionModel,"onAttributesUpdated",o.hitch(this,"_handleSectionsUpdated"))),this.own(e.after(a,"onFileTypeChange",o.hitch(this,"onUpdate"))),this.own(e.after(this._currentSectionModel,"onCurrentSectionChanged",o.hitch(this,"_handleSectionsUpdated")))},_handleSectionsUpdated:function(){this.onUpdate()},getRangeDescriptions:function(e){var t=[],i=this._sectionDecoratorUtilities.getOuterSectionNumbersInView(e);return i.forEach((function(e){var n=this._sectionModel.getSection(e),o=this._sectionView.isSectionVisible(e-1);if(n&&o){var r=n.start.getLine()-1,a=r;this._sectionView.areSectionBreaksNodes()&&(a-=1);var l=new s(this._buildDivForLineNumber(a,i),r+1,r+1,this,!0,!1);t.push(l)}}),this),t},handleBeginUpdate:function(){this._visibleSectionNumbers=this._sectionDecoratorUtilities.getOuterSectionNumbersInView()},hasLayerForLineNumber:function(e){if(!this._sectionView.isLineOnSectionBorder(e))return!1;var t=this._sectionModel.getOuterSectionNumberForLine(e-1);return this._sectionView.isSectionVisible(t)},createDecorationForLineNumber:function(e){return this._buildDivForLineNumber(e,this._visibleSectionNumbers)},_buildDivForLineNumber:function(e,n){var o=i.create("div"),r=this._currentSectionModel.getCurrentSectionNumber();if(-1!==r){var a=this._sectionModel.getOuterSectionNumberForLine(e-1),s=n.indexOf(a),l=n[s+1];a!==r&&l!==r||t.add(o,this._ACTIVE_SECTION_CSS_CLASS)}return t.add(o,this._SECTION_BREAK_CSS_CLASS),t.add(o,this._sectionView.getSectionBreakCSS()),o},getPriority:function(){return 10},getId:function(){return"SectionBreak"},getWidth:function(){return this._WIDTH},destroy:function(){this.inherited(arguments),this._visibleSectionNumbers=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4401)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.code.sections.model","rtc.code.matlabfiletype","rtc.view","margin.statusactionbar.evaluation"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(228),i(210),i(211),i(221),i(203),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return r(null,{_SECTION_CSS_CLASS:"section",_ONLY_SECTION_CSS_CLASS:"only",_FUNCTION_SECTION_CSS_CLASS:"function",_FIRST_SECTION_CSS_CLASS:"first",_LAST_SECTION_CSS_CLASS:"last",_EXECUTABLE_CSS_CLASS:"executable",constructor:function(e,t,i,n){this._sectionModel=e,this._fileTypeService=t,this._view=i,this._sectionEvaluation=n},getDecorationClassesForSection:function(e){var t=[this._SECTION_CSS_CLASS],i=this._sectionModel.getSections().length;if(e<0||e>=i)return[];var n=0===e,o=e===i-1,r=1===i,a=this._fileTypeService.isFunction()||this._fileTypeService.isClass(),s=!!this._sectionModel.getSection(e).localFunctions;return n&&t.push(this._FIRST_SECTION_CSS_CLASS),o&&t.push(this._LAST_SECTION_CSS_CLASS),r&&t.push(this._ONLY_SECTION_CSS_CLASS),(a||s)&&t.push(this._FUNCTION_SECTION_CSS_CLASS),this._sectionEvaluation.canBeEvaluated(e)&&t.push(this._EXECUTABLE_CSS_CLASS),t},getSectionNumbersInView:function(e){e||(e=a.getZeroBasedVisibleLineNumbers(this._view));let t=null;const i=[];return e.forEach((function(e){if(t&&e>=t.start.getLine()-1&&e<=t.end.getLine()-1)return;this._sectionModel.getAllSectionsForLine(e).forEach((function(e){e.isLeaf&&(t=e);const n=e.number,o=i.length;(0===o||n>i[o-1])&&i.push(n)}))}),this),this._addSectionNumberAboveIfNeeded(e,i),i},getOuterSectionNumbersInView:function(e){e||(e=a.getZeroBasedVisibleLineNumbers(this._view));let t=null;const i=[];return e.forEach((function(e){if(t&&e>=t.start.getLine()-1&&e<=t.end.getLine()-1)return;const n=this._sectionModel.getOuterSectionNumberForLine(e);t=this._sectionModel.getSection(n),-1!==n&&i.push(n)}),this),this._addSectionNumberAboveIfNeeded(e,i),i},_addSectionNumberAboveIfNeeded:function(e,t){if(e.length>0){var i=e[0],n=this._sectionModel.getSectionForLine(i);if(!n)return;i===n.start.getLine()-1&&t.length>0&&this._sectionModel.getSection(t[0]-1)&&t.unshift(t[0]-1)}},addDataTestTag:function(e,i){t.set(e,"data-testid","section_"+i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4403)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.margin.execution","rtc.code.sections.model","rtc.code.sections.view.section"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4404)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i){this._executionMargin=e,this._sectionModel=t,this._sectionView=i,this._executionMargin.setExpansionHandler(this)},calculateUpdatedDivDimensions:function(e,t,i,n,o){var r,a=t-1,s=i-1,l=this._sectionModel.getSectionForLine(a),c=this._sectionModel.getSectionForLine(s);if(!l||!c)return e;var d=l.start.getLine()-1===a,u=c.end.getLine()-1===s;return n&&d&&(r=this._getSectionDimensionsForLine(a))&&(e.height+=e.top-r.top,e.top=r.top),o&&u&&(r=this._getSectionDimensionsForLine(s))&&(e.height+=r.top+r.height-(e.top+e.height)),e},_getSectionDimensionsForLine:function(e){var t=this._sectionModel.getSectionNumberForLine(e);return this._sectionView.getSectionDimensions(t)},dispose:function(){this.inherited(arguments),this._executionMargin.removeExpansionHandler(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{calculateUpdatedDivDimensions:function(e,t,i,n,o){throw new Error("Unimplemented API: MW.rtc.margin.AbstractMarginRangeExpansionHandler.getDivDimensions")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4406)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.editordataservice","rtc.code.matlabfiletype","rtc.code.sections.model","rtc.internaldocument"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(668),i(1992)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,i,n,o,r){this._sectionModel=o,this._internalDocument=r,this.own(t.after(this._internalDocument,"onDocumentChanged",this._sendSectionsResponse.bind(this))),this.own(t.after(this._internalDocument,"onDocumentReset",this._sendSectionsResponse.bind(this)))},_getSections:function(){return this._sectionModel.getSections().map((function(e){return i.getSectionInfo(e.start.node,e.end.node,this._internalDocument)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4408)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.editordataservice","rtc.code.matlabfiletype","matlab.languageanalysis.sectionslistservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(204),i(1992)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,n,o,r){this._sectionsListDataService=r,this._sections=[],this.own(t.after(this._sectionsListDataService,"onSectionLocationUpdate",i.hitch(this,"_updateSectionsAndSendResponse"),!0))},_updateSectionsAndSendResponse:function(e){this._sections=e.reduce(function(e,t){if(t.isExplicit){var i={};i[this._LABEL]=t.name,i[this._LINE]=t.startLine+1,i[this._COLUMN]=1,e.push(i)}return e}.bind(this),[]),this._sendSectionsResponse()},_getSections:function(){return this._sections}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(4410)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.id","rtc.editordataservice","rtc.functionservice","rtc.code.matlabfiletype"]}},createInstance:function(e,t,i,o){return new n(e,t,i,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(668)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_FEATURE_ID:"rtc.dataservice.functions",_LABEL:"label",_LINE:"line",_COLUMN:"column",_EDITOR_ID:"editorId",_FUNCTIONS:"functions",constructor:function(e,n,o,r){this._editorId=e,this._editorDataService=n,this._functionService=o,this._fileType=r,this.own(i.after(o,"onUpdate",t.hitch(this,"_handleFunctionsChange")))},_handleFunctionsChange:function(){if(this._fileType.getFileType()!==this._fileType.FILE_TYPE.Unknown){var e={};e[this._EDITOR_ID]=this._editorId,e[this._FUNCTIONS]=this._getResponseFunctionsArray(!0,!0),this._editorDataService.request(this._FEATURE_ID,e)}},_getResponseFunctionsArray:function(e,t){e=!1!==e,t=!1!==t;var i=this._functionService.getAllFunctionDeclarations();return i.length<1?null:(t=t&&null!==this._functionService.getMainFunctionDeclaration(),e&&(i=o.sortFunctionDeclarations(i,t)),i.map((function(e){var t={};return t[this._LABEL]=e.getName(),t[this._LINE]=e.getStartLine(),t[this._COLUMN]=e.getStartColumn(),t}),this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4412)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.document.changenotifier","rtc.view","rtc.cursorcontroller","rtc.actionservice","rtc.code.sections.model","rtc.code.sections.current","rtc.code.sections.contributor.sectionbreak","rtc.code.matlabfiletype","rtc.contextmenu.documentcontributor"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u){return new i(e,t,n,o,r,a,s,l,d,u)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(253),i(209),i(234),i(249),i(260),i(237),i(497),i(403),i(294),i(581),i(399),i(473)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e(p,{ACTION_ID:"rtc_insert_sectionbreak",_UNDOREDO_BLOCK_TYPE:"RemoveSectionBreaks",_BLOCK_TYPES_FOR_MERGE_AND_ADVANCE:["AutoIndent"],_CONTEXT_MENU_GROUP:u.CODE_SECTIONS,constructor:function(e,i,o,r,a,s,l,c,d,u){this._internalDocument=e,this._document=i,this._documentChangeNotifier=o,this._cursorController=a,this._cursor=a.getCursors()[0],this._actionService=s,this._sectionModel=l,this._currentSectionModel=c,this._fileTypeService=d,this._contextMenuContributor=u,this._actions=[{id:this.ACTION_ID,key:"ctrl_alt_enter",platformKey:{mac:"meta_alt_enter"},enabled:!0,text:n.insertSectionLabel,callback:t.hitch(this,"_insertSectionBreakAtCursor")}],this._actionService.loadActions(this._actions),this._addListeners(),this._addActionsToContextMenu()},_addListeners:function(){this._handles=[],this._handles.push(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleDocumentChanged"),!0)),this._handles.push(i.after(this._documentChangeNotifier,"onPreDeletion",t.hitch(this,"_onDoDelete"))),this._handles.push(i.after(this._cursor,"onChange",t.hitch(this,"_updateActions"))),this._handles.push(i.after(this._currentSectionModel,"onCurrentSectionChanged",t.hitch(this,"_updateActions"))),this._handles.push(i.after(this._sectionModel,"onAttributesUpdated",t.hitch(this,"_updateActions"))),this._handles.push(i.after(this._fileTypeService,"onFileTypeChange",t.hitch(this,"_updateActions"))),this._handles.forEach((function(e){this.own(e)}),this)},_handleDocumentChanged:function(e){s.hasEventType(e,a.READONLY_STATE_CHANGE_EVENT)&&this._updateActions()},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,this.ACTION_ID)},enableForHiddenCode:function(){this._addListeners(),this._updateActions()},disableForHiddenCode:function(){this._actions.forEach((function(e){this._actionService.updateAction(e.id,{enabled:!1})}),this),this._removeListeners()},_updateActions:function(){var e=this.canInsertSectionBreak();this._actionService.updateAction(this.ACTION_ID,{enabled:e})},canInsertSectionBreak:function(){return!this._cursor.isCursorReadOnly()&&this.canInsertSectionBreakAt(this._cursor.getCursorPosition())},canInsertSectionBreakAt:function(e){if(this._internalDocument.isReadOnly()||this._fileTypeService.isFunction()||this._fileTypeService.isClass())return!1;var t=e.getNode();return!(!t||t.isReadOnly())&&!this._atLocalFunction(e)},_atLocalFunction:function(e){var t=this._sectionModel.getSectionForNode(e.getNode()),i=this._getFirstLocalFunctionFromSection(t);return!!i&&e.getLineColumn().line>=i.position.getLineColumn().line},_getFirstLocalFunctionFromSection:function(e){return e&&e[h.LOCAL_FUNCTION_ATTRIBUTE]&&e[h.LOCAL_FUNCTION_ATTRIBUTE].length>0?e[h.LOCAL_FUNCTION_ATTRIBUTE][0]:null},_canDeleteSectionBreak:function(e){if(this._internalDocument.isReadOnly()||this._cursor.isCursorReadOnly())return!1;var t=!0,i=1===e?this._currentSectionModel.getNextSection():this._currentSectionModel.getCurrentSection();return this._canMergeWithPreviousSection(i)||(t=!1),t},_canMergeWithPreviousSection:function(e){if(!this._getFirstLocalFunctionFromSection(e))return!0;var t=this._sectionModel.getSections().indexOf(e)-1,i=this._sectionModel.getSection(t).end.getLineColumn().line,n=this._internalDocument.getLineNode(i-1);return!r.isCodeContainer(n)},_onDoDelete:function(e,t){if(e||this._internalDocument.isReadOnly()||this._cursor.hasSelection())return e;var i,n=this._cursor.getCursorPosition(),o=this._cursor.getNode().rootContainer(),r=t[0];if(r===a.BACKWARD_DELETE&&l.isAtStartOfContainer(n,o)?i=o.previousSibling():r===a.FORWARD_DELETE&&l.isAtEndOfContainer(n,o)&&(i=o.nextSibling()),!i||!this._isContainerSectionBreak(i))return e;if(!this._canDeleteSectionBreak(r)){var s=r===a.FORWARD_DELETE?this._cursor.RIGHT:this._cursor.LEFT;return this._cursor.movePosition(s),!0}return this._deleteSectionBreak(i,r),this._cursor.onUpdate(!1,!0),!0},deleteSectionBreakInBetween:function(e,t){o.assert(e<=t,"Start line should be <= end line!"),this._document.startEdit();for(var i=t;i>=e;i-=1){var n=this._internalDocument.getLineNode(i-1);this._isContainerSectionBreak(n)&&this._deleteSectionBreak(n)}this._document.endEdit(),this._cursor.onUpdate()},hasSectionBreakInBetween:function(e,t){o.assert(e<=t,"Start line should be <= end line!");for(var i=e;i<=t;i+=1){var n=this._internalDocument.getLineNode(i-1);if(this._isContainerSectionBreak(n))return!0}return!1},_insertAtPosition:function(e){var t=this._document.startEdit(),i=new f,n=this._internalDocument.insertAtPosition(i,e),o=s.finalLineRangeFromEvents(n.events);return t.appendUndoEvents([d.create(o.startLine,o.endLine,-1)]),t.appendRedoEvents([d.create(o.startLine,o.endLine,1)]),this._document.endEdit(),{sectionBreakNode:i,insertionResults:n}},_deleteSectionBreak:function(e,t){var i=this._getLineRangeForSectionBreakDeletion(e,t),n=this._document.startEdit();this._internalDocument.deleteNode(e,{node:this._cursor.getNode(),offset:this._cursor.getOffset()});var o=[c.create(i.startLine,i.endLine,0)];n.appendUndoEvents([d.create(i.startLine,i.endLine,1)]),n.appendRedoEvents(o),this._document.endEdit(),this._internalDocument.emitDocumentEvents(o)},_getLineRangeForSectionBreakDeletion:function(e,t){var i=this._internalDocument.getLineNumber(e),n=i,o=i;return-1===t?o+=1:n-=1,{startLine:n,endLine:o}},_insertSectionBreakForSelection:function(e){var t=this._document.createPosition(e.startPosition.getNode(),e.startPosition.getOffset()),i=this._document.createPosition(e.endPosition.getNode(),e.endPosition.getOffset()),n=[];this._cursorController.suspendUpdates(),this._cursorController.clearSelection();var o=this._insertAtPosition(t),r=o.insertionResults,a=o.sectionBreakNode;return n=n.concat(r.events),this._shouldInsertSectionBreakAtEndPosition(e,a,i)&&(r=this._insertAtPosition(i).insertionResults,n=n.concat(r.events)),this._cursor.setPosition(r.insertedRange.getEndPosition()),this._cursorController.activateUpdates(),this._document.deletePosition(t),this._document.deletePosition(i),n},_shouldInsertSectionBreakAtEndPosition:function(e,t,i){return(!e.fileEndSelected||!e.startPosition.isEqualTo(e.endPosition))&&!(this._internalDocument.getLineNumber(t)>i.getLine()-1)},_insertSectionBreakAtCursor:function(){var e;if(!this._actionService.getAction(this.ACTION_ID).enabled)return!1;if(!this.canInsertSectionBreak())return!1;if(this._internalDocument.onPreDocumentChanged(),this._document.startEdit(),this._cursor.hasSelection())e=this._insertSectionBreakForSelection(this._cursor.selectionInfo());else{var t,i=this._shouldMoveCursorAfterBreak(),n=this._insertAtPosition(this._cursor.getCursorPosition()).insertionResults;if((e=n.events).length>1){var o=this._cursor.getCursorPosition(),r=n.insertedRange.getStartPosition(),a=n.insertedRange.getEndPosition();o.isEqualTo(r)||o.isEqualTo(a)||(i=!0),t=i?n.insertedRange.getEndPosition():n.insertedRange.getStartPosition()}t&&this._cursor.setPosition(t)}return this._document.endEdit(),this._emitInsertEvents(e),!0},_shouldMoveCursorAfterBreak:function(){var e=this._cursor.position,t=e.getNode().textContainer(),i=e.getNode().rootContainer(),n=t.previousSibling()||i.previousSibling(),o=t.nextSibling()||i.nextSibling();return!(!l.isAtStartOfContainer(e)||!n||n.isInstanceOf(f))||(!(!l.isAtEndOfContainer(e)||o)||(!(!l.isAtEndOfContainer(e)||!o.isInstanceOf(f))||!l.isAtStartOfContainer(e)&&!l.isAtEndOfContainer(e)))},insertSectionBreakAtLineColumn:function(e,t){this._internalDocument.onPreDocumentChanged();var i=this._internalDocument.getPositionForLineColumn(e,t),n=this._insertAtPosition(i).insertionResults;this._emitInsertEvents(n.events)},_emitInsertEvents:function(e){this._internalDocument.emitDocumentEvents(e),this._cursor.onUpdate(!1,!0)},isLineSectionBreak:function(e){var t=this._internalDocument.getLineNode(e-1);return this._isContainerSectionBreak(t)},_isContainerSectionBreak:function(e){return e instanceof f},isLineAtStartOfSection:function(e){var t=this._internalDocument.getLineNode(e-1);return this._isAtStartOfSection(t)},_isAtStartOfSection:function(e){var t=e.previousSibling();return!t||this._isContainerSectionBreak(t)},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},destroy:function(){this.inherited(arguments),this._removeListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4414)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(818),i(473)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(){},getApplicableNodeClass:function(){return i},isConvertibleTo:function(e){return!1},isConvertibleFrom:function(e){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4416)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(473)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return i},enter:function(e,t,i){e.addToBody("\n")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4418)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(621),i(473)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){this._view=e},getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4420)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(473)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1420)],o=i.dj.d(n,(function(e,t,i){return e(i,{pack:function(e){t.error("Unimplemented: pack")},unpack:function(e){t.error("Unimplemented: unpack")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4423)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(473),i(1994)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return t},getPositionFromCoordinate:function(){return null},getCoordinateFromPosition:function(){return null},getDomNode:function(){return null},getClosestRect:function(){return null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4425)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(391),i(473)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return i},layout:function(e,t){return e.layoutInto(t,"div",{class:"sectionBreak"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4427)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.backingstore"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(245),i(208),i(207),i(281),i(362),i(373)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(o,{_LIVE_CODE_CLASS:"selectLineLiveCode",constructor:function(e,t){this._view=e;const i=r.isLiveCodeFile(t);this._addSelectLineLayer(i),this.own(n.after(this._view,"onViewUpdated",this._handleViewUpdated.bind(this),!0))},_addSelectLineLayer:function(e){this._layer=t.create("div",{class:"clickToSelectLineLayer"}),this._view.addLayer(this._layer),i("mac")&&this._layer.classList.add("mac"),e&&this._layer.classList.add(this._LIVE_CODE_CLASS)},_handleViewUpdated:function(e){if(this._setLayerHeight(),s.hasHorizontalScrollEvent(e)){const e=this._view.getScrollLeft();this._setLayerLeft(-e)}},_setLayerHeight:function(){a.setLayerToFullHeight(this._layer,this._view)},_setLayerLeft:function(e){this._layer.style.left=e+"px"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4429)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return!e.hasStatesToTransfer()},requires:function(){return{isApplicable:["rtc.statestransfermanager"],createInstance:["rtc.document.modification","rtc.internaldocument","rtc.id","rtc.actionservice.external","rtc.viewready"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1122),i(219),i(251),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([a],{_APPLY_TAMPLATE_NAMESPLACE:"/templateService/applyTemplate/",TEMPLATE_CALLBACKS:{liveFunction:function(e){var t={className:"RootNode",children:[{className:"RichTextParagraphNode",align:"left",children:[{className:"RichTextNode",text:n.liveFunction.summary}]},{className:"RichTextParagraphNode",align:"left",children:[{className:"RichTextNode",text:n.liveFunction.description}]},{className:"LineNode",children:[{className:"PlainTextNode",text:"function z = "+e+"(x, y)"}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" z = x + y;"}]},{className:"LineNode",children:[{className:"PlainTextNode",text:"end"}]}]};this._insertJSONTemplateToDocument(t)},liveClass:function(e){var t={className:"RootNode",children:[{className:"RichTextParagraphNode",align:"left",children:[{className:"RichTextNode",text:n.liveClass.summary}]},{className:"RichTextParagraphNode",align:"left",children:[{className:"RichTextNode",text:n.liveClass.description}]},{className:"LineNode",children:[{className:"PlainTextNode",text:"classdef "+e}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" properties"}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" Property1 % "+n.liveClass.propertySummary}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" end"}]},{className:"LineNode",children:[{className:"PlainTextNode",text:""}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" methods"}]},{className:"RichTextParagraphNode",align:"left",children:[{className:"RichTextNode",text:n.liveClass.constructorSummary}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" function obj = "+e+"(x, y)"}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" obj.Property1 = x + y;"}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" end"}]},{className:"RichTextParagraphNode",align:"left",children:[{className:"RichTextNode",text:n.liveClass.methodSummary}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" function z = method1(obj, x)"}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" z = obj.Property1 + x;"}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" end"}]},{className:"LineNode",children:[{className:"PlainTextNode",text:" end"}]},{className:"LineNode",children:[{className:"PlainTextNode",text:"end"}]}]};this._insertJSONTemplateToDocument(t)},plainFunction:function(e){var t=this._updateTemplate(n.functionContent,e);this._insertPlainTemplateToDocument(t)},plainExample:function(){this._insertPlainTemplateToDocument(n.exampleContent)},plainClass:function(e){var t=this._updateTemplate(n.classContent,e);this._insertPlainTemplateToDocument(t)},plainTestClass:function(e){var t=this._updateTemplate(n.testClassContent,e);this._insertPlainTemplateToDocument(t)},basisSysObj:function(e){var t=this._updateTemplate(n.basisSysObj,e);this._insertPlainTemplateToDocument(t)},advancedSysObj:function(e){var t=this._updateTemplate(n.advancedSysObj,e);t=t.replace("vararginundefined","varargin{:}"),this._insertPlainTemplateToDocument(t)},simulinkExtensionSysObj:function(e){var t=this._updateTemplate(n.simulinkExtensionSysObj,e);t=t.replace("vararginundefined","varargin{:}"),this._insertPlainTemplateToDocument(t)}},constructor:function(e,t,i,n,r){this._document=e,this._internalDocument=t,this._editorId=i,this._actionService=n,this._viewReadyServiceWrapper=r,o.subscribe(this._APPLY_TAMPLATE_NAMESPLACE+this._editorId,"_handleApplyTemplate",this)},_updateTemplate:function(e,i){var n={fileName:i,fileNameCaps:i.toUpperCase()};return t.replace(e,n)},_insertPlainTemplateToDocument:function(e,t){this._document.setText(e)},_insertJSONTemplateToDocument:function(e){this._internalDocument.deserialize(e)},_handleApplyTemplate:function(e){var t=e.data.type,i=e.data.pendingName;this.applyTemplate(t,i)},applyTemplate:function(e,t){var i=this.TEMPLATE_CALLBACKS[e];i&&(i.call(this,t),this._formatWhenReady())},_formatWhenReady:function(){this._viewReadyServiceWrapper.whenInstanceAvailable(e=>{e.whenViewReady(this._formatTemplate.bind(this))})},_formatTemplate:function(){const e=this._actionService.getAction(r.FORMAT_CODE.SMART_INDENT_ALL_ACTION).enabled;this._actionService.updateAction(r.FORMAT_CODE.SMART_INDENT_ALL_ACTION,{enabled:!0}),this._actionService.executeAction(r.FORMAT_CODE.SMART_INDENT_ALL_ACTION,{readFunctionIndentingFormatSetting:!0}),this._actionService.updateAction(r.FORMAT_CODE.SMART_INDENT_ALL_ACTION,{enabled:e})},destroy:function(){o.unsubscribe(this._APPLY_TAMPLATE_NAMESPLACE+this._editorId,"_handleApplyTemplate",this)}})}),e,t),e.exports=o},function(e,t,i){e.exports={liveFunction:{summary:"この関数の簡単な概要です。",description:"この関数の詳細な説明です。"},liveClass:{summary:"このクラスの簡単な概要です。",description:"このクラスの詳細な説明です。",propertySummary:"このプロパティの簡単な概要",constructorSummary:"このクラスのオブジェクトを作成する方法の説明です。",methodSummary:"method1 の詳細な説明です。"},exampleContent:"%% 例のタイトル\n% 例の目的の概要\n\n%% セクション 1 のタイトル\n% 1 番目のコード ブロックの説明\na=1;\n\n%% セクション 2 のタイトル\n% 2 番目のコード ブロックの説明\na=2;\n\n",functionContent:"function [outputArg1,outputArg2] = {fileName}(inputArg1,inputArg2)\n%{fileNameCaps} この関数の概要をここに記述\n% 詳細説明をここに記述\noutputArg1 = inputArg1;\noutputArg2 = inputArg2;\nend",classContent:"classdef {fileName}\n %{fileNameCaps} このクラスの概要をここに記述\n % 詳細説明をここに記述\n\n properties\n Property1\n end\n\n methods\n function obj = {fileName}(inputArg1,inputArg2)\n %{fileNameCaps} このクラスのインスタンスを作成\n % 詳細説明をここに記述\n obj.Property1 = inputArg1 + inputArg2;\n end\n\n function outputArg = method1(obj,inputArg)\n %METHOD1 このメソッドの概要をここに記述\n % 詳細説明をここに記述\n outputArg = obj.Property1 + inputArg;\n end\n end\nend"}},function(e,t,i){e.exports={liveFunction:{summary:"여기에 이 함수에 대한 간단한 요약을 적어 주십시오.",description:"여기에 이 함수에 대한 자세한 설명을 적어 주십시오."},liveClass:{summary:"이 클래스에 대한 간단한 요약.",description:"이 클래스에 대한 자세한 설명.",propertySummary:"이 속성에 대한 간단한 요약",constructorSummary:"이 클래스의 객체를 생성하는 방법에 대한 설명.",methodSummary:"method1에 대한 자세한 설명."},exampleContent:"%% 예제 제목\n% 예제의 개요\n\n%% 섹션 1 제목\n% 첫 번째 코드 블록에 대한 설명\na=1;\n\n%% 섹션 2 제목\n% 두 번째 코드 블록에 대한 설명\na=2;\n\n",functionContent:"function [outputArg1,outputArg2] = {fileName}(inputArg1,inputArg2)\n%{fileNameCaps} 이 함수의 요약 설명 위치\n% 자세한 설명 위치\noutputArg1 = inputArg1;\noutputArg2 = inputArg2;\nend",classContent:"classdef {fileName}\n %{fileNameCaps} 이 클래스의 요약 설명 위치\n % 자세한 설명 위치\n\n properties\n Property1\n end\n\n methods\n function obj = {fileName}(inputArg1,inputArg2)\n %{fileNameCaps} 이 클래스의 인스턴스 생성\n % 자세한 설명 위치\n obj.Property1 = inputArg1 + inputArg2;\n end\n\n function outputArg = method1(obj,inputArg)\n %METHOD1 이 메서드의 요약 설명 위치\n % 자세한 설명 위치\n outputArg = obj.Property1 + inputArg;\n end\n end\nend"}},function(e,t,i){e.exports={liveFunction:{summary:"此函数的简短摘要。",description:"此函数的详细说明。"},liveClass:{summary:"此类的简短摘要。",description:"此类的详细说明。",propertySummary:"此属性的简短摘要",constructorSummary:"有关如何创建此类对象的说明。",methodSummary:"method1 的详细说明。"},exampleContent:"%% 示例标题\n% 示例目标的摘要\n\n%% 第 1 节标题\n% 第一个代码块的说明\na=1;\n\n%% 第 2 节标题\n% 第二个代码块的说明\na=2;\n\n",functionContent:"function [outputArg1,outputArg2] = {fileName}(inputArg1,inputArg2)\n%{fileNameCaps} 此处提供此函数的摘要\n% 此处提供详细说明\noutputArg1 = inputArg1;\noutputArg2 = inputArg2;\nend",classContent:"classdef {fileName}\n %{fileNameCaps} 此处提供此类的摘要\n % 此处提供详细说明\n\n properties\n Property1\n end\n\n methods\n function obj = {fileName}(inputArg1,inputArg2)\n %{fileNameCaps} 构造此类的实例\n % 此处提供详细说明\n obj.Property1 = inputArg1 + inputArg2;\n end\n\n function outputArg = method1(obj,inputArg)\n %METHOD1 此处提供此方法的摘要\n % 此处提供详细说明\n outputArg = obj.Property1 + inputArg;\n end\n end\nend"}},function(e,t,i){e.exports={root:{liveFunction:{summary:"Brief summary of this function.",description:"Detailed explanation of this function."},liveClass:{summary:"Brief summary of this class.",description:"Detailed explanation of this class.",propertySummary:"Brief summary of this property",constructorSummary:"Explanation of how to create an object of this class.",methodSummary:"Detailed explanation of method1."},exampleContent:"%% Example Title\n% Summary of example objective\n\n%% Section 1 Title\n% Description of first code block\na=1;\n\n%% Section 2 Title\n% Description of second code block\na=2;\n\n",functionContent:"function [outputArg1,outputArg2] = {fileName}(inputArg1,inputArg2)\n%{fileNameCaps} Summary of this function goes here\n% Detailed explanation goes here\noutputArg1 = inputArg1;\noutputArg2 = inputArg2;\nend",classContent:"classdef {fileName}\n %{fileNameCaps} Summary of this class goes here\n % Detailed explanation goes here\n\n properties\n Property1\n end\n\n methods\n function obj = {fileName}(inputArg1,inputArg2)\n %{fileNameCaps} Construct an instance of this class\n % Detailed explanation goes here\n obj.Property1 = inputArg1 + inputArg2;\n end\n\n function outputArg = method1(obj,inputArg)\n %METHOD1 Summary of this method goes here\n % Detailed explanation goes here\n outputArg = obj.Property1 + inputArg;\n end\n end\nend",testClassContent:'classdef {fileName} < matlab.unittest.TestCase\n\n methods(TestClassSetup)\n % Shared setup for the entire test class\n end\n\n methods(TestMethodSetup)\n % Setup for each test\n end\n\n methods(Test)\n % Test methods\n\n function unimplementedTest(testCase)\n testCase.verifyFail("Unimplemented test");\n end\n end\n\nend',basisSysObj:"classdef {fileName} < matlab.System\n% {fileName} Add summary here\n%\n% This template includes the minimum set of functions required\n% to define a System object with discrete state.\n\n % Public, tunable properties\n properties\n\n end\n\n properties(DiscreteState)\n \n end\n\n % Pre-computed constants\n properties(Access = private)\n\n end\n\n methods(Access = protected)\n function setupImpl(obj)\n % Perform one-time calculations, such as computing constants\n end\n\n function y = stepImpl(obj,u)\n % Implement algorithm. Calculate y as a function of input u and\n % discrete states.\n y = u;\n end\n\n function resetImpl(obj)\n % Initialize / reset discrete-state properties\n end\n end\nend\n",advancedSysObj:"classdef {fileName} < matlab.System\n % {fileName} Add summary here\n %\n % NOTE: When renaming the class name {fileName}, the file name\n % and constructor name must be updated to use the class name.\n %\n % This template includes most, but not all, possible properties,\n % attributes, and methods that you can implement for a System object.\n % Public, tunable properties\n properties\n end\n % Public, non-tunable properties\n properties(Nontunable)\n end\n properties(DiscreteState)\n end\n % Pre-computed constants\n properties(Access = private)\n end\n methods\n % Constructor\n function obj = {fileName}(varargin)\n % Support name-value pair arguments when constructing object\n setProperties(obj,nargin,varargin{:})\n end\n end\n methods(Access = protected)\n %% Common functions\n function setupImpl(obj)\n % Perform one-time calculations, such as computing constants\n end\n function y = stepImpl(obj,u)\n % Implement algorithm. Calculate y as a function of input u and\n % discrete states.\n y = u;\n end\n function resetImpl(obj)\n % Initialize / reset discrete-state properties\n end\n %% Backup/restore functions\n function s = saveObjectImpl(obj)\n % Set properties in structure s to values in object obj\n % Set public properties and states\n s = saveObjectImpl@matlab.System(obj);\n % Set private and protected properties\n %s.myproperty = obj.myproperty;\n end\n function loadObjectImpl(obj,s,wasLocked)\n % Set properties in object obj to values in structure s\n % Set private and protected properties\n % obj.myproperty = s.myproperty; \n % Set public properties and states\n loadObjectImpl@matlab.System(obj,s,wasLocked);\n end\n %% Advanced functions\n function validateInputsImpl(obj,u)\n % Validate inputs to the step method at initialization\n end\n function validatePropertiesImpl(obj)\n % Validate related or interdependent property values\n end\n function ds = getDiscreteStateImpl(obj)\n % Return structure of properties with DiscreteState attribute\n ds = struct([]);\n end\n function processTunedPropertiesImpl(obj)\n % Perform actions when tunable properties change\n % between calls to the System object\n end\n function flag = isInputSizeMutableImpl(obj,index)\n % Return false if input size cannot change\n % between calls to the System object\n flag = false;\n end\n function flag = isInactivePropertyImpl(obj,prop)\n % Return false if property is visible based on object \n % configuration, for the command line and System block dialog\n flag = false;\n end\n end\nend\n",simulinkExtensionSysObj:'classdef {fileName} < matlab.System\n % {fileName} Add summary here\n %\n % NOTE: When renaming the class name {fileName}, the file name\n % and constructor name must be updated to use the class name.\n %\n % This template includes most, but not all, possible properties, attributes,\n % and methods that you can implement for a System object in Simulink.\n % Public, tunable properties\n properties\n end\n % Public, non-tunable properties\n properties(Nontunable)\n end\n properties(DiscreteState)\n end\n % Pre-computed constants\n properties(Access = private)\n end\n methods\n % Constructor\n function obj = {fileName}(varargin)\n % Support name-value pair arguments when constructing object\n setProperties(obj,nargin,varargin{:})\n end\n end\n methods(Access = protected)\n %% Common functions\n function setupImpl(obj)\n % Perform one-time calculations, such as computing constants\n end\n function y = stepImpl(obj,u)\n % Implement algorithm. Calculate y as a function of input u and\n % discrete states.\n y = u;\n end\n function resetImpl(obj)\n % Initialize / reset discrete-state properties\n end\n %% Backup/restore functions\n function s = saveObjectImpl(obj)\n % Set properties in structure s to values in object obj\n % Set public properties and states\n s = saveObjectImpl@matlab.System(obj);\n % Set private and protected properties\n %s.myproperty = obj.myproperty;\n end\n function loadObjectImpl(obj,s,wasLocked)\n % Set properties in object obj to values in structure s\n % Set private and protected properties\n % obj.myproperty = s.myproperty; \n % Set public properties and states\n loadObjectImpl@matlab.System(obj,s,wasLocked);\n end\n %% Simulink functions\n function ds = getDiscreteStateImpl(obj)\n % Return structure of properties with DiscreteState attribute\n ds = struct([]);\n end\n function flag = isInputSizeMutableImpl(obj,index)\n % Return false if input size cannot change\n % between calls to the System object\n flag = false;\n end\n function out = getOutputSizeImpl(obj)\n % Return size for each output port\n out = [1 1];\n % Example: inherit size from first input port\n % out = propagatedInputSize(obj,1);\n end\n function icon = getIconImpl(obj)\n % Define icon for System block\n icon = mfilename("class"); % Use class name\n % icon = "My System"; % Example: text icon\n % icon = ["My","System"]; % Example: multi-line text icon\n % icon = matlab.system.display.Icon("myicon.jpg"); % Example: image file icon\n end\n end\n methods(Static, Access = protected)\n %% Simulink customization functions\n function header = getHeaderImpl\n % Define header panel for System block dialog\n header = matlab.system.display.Header(mfilename("class"));\n end\n function group = getPropertyGroupsImpl\n % Define property section(s) for System block dialog\n group = matlab.system.display.Section(mfilename("class"));\n end\n end\nend\n\n'},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(205),i(4435)],o=i.dj.d(n,(e,t)=>class extends e{requires(){return{createInstance:[]}}createInstance(){return new t(...arguments)}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(207)],o=i.dj.d(n,e=>class extends e{notifyAutoWhitespaceLineInserted(e){setTimeout(()=>{this.onAutoWhitespaceLineInserted(e)},0)}onAutoWhitespaceLineInserted(e){}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4437)],o=i.dj.d(n,(e,t)=>class extends e{requires(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.cursorcontroller","rtc.autowhitespacelinenotifier"]}}createInstance(){return new t(...arguments)}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(229),i(207),i(208),i(234),i(237)],o=i.dj.d(n,(e,t,i,n,o)=>class extends t{constructor(e,t,n,o){super(),this._documentWrapper=e,this._internalDocument=t,this._cursorControllerWrapper=n,this._autoWhitespaceLineNotifier=o,this._whitespaceLines=[],this._onDocumentChangedHandle=null,this._onAutoWhitespaceLineInsertedHandle=null,this.own(i.after(this._internalDocument,"onDocumentReset",this._clearLineCache.bind(this),!0)),this.enable()}enable(){this._onDocumentChangedHandle||(this._onDocumentChangedHandle=i.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0,i.priority.DEFAULT+5)),this._onAutoWhitespaceLineInsertedHandle||(this._onAutoWhitespaceLineInsertedHandle=i.after(this._autoWhitespaceLineNotifier,"onAutoWhitespaceLineInserted",this._handleAutoWhitespaceLineInserted.bind(this),!0))}disable(){this._onDocumentChangedHandle&&(this._onDocumentChangedHandle.remove(),this._onDocumentChangedHandle=null),this._onAutoWhitespaceLineInsertedHandle&&(this._onAutoWhitespaceLineInsertedHandle.remove(),this._onAutoWhitespaceLineInsertedHandle=null),this._clearLineCache()}_handleDocumentChanged(){const e=this._cursorControllerWrapper.getCurrentInstance().getCursorPositions().map(e=>e.getLine());this._whitespaceLines.forEach(t=>{this._documentWrapper.getCurrentInstance().startEdit();const i=t.getLine()-1;this._trimLineIfNecessary(i,e),t.destroy(),this._documentWrapper.getCurrentInstance().endEdit()}),this._whitespaceLines=[]}_handleAutoWhitespaceLineInserted(e){const t=this._documentWrapper.getCurrentInstance().createLinePositionInLine(e);t.setLive(),this._whitespaceLines.push(t)}_trimLineIfNecessary(t,i){const r=t+1;if(r<=0)return;const a=this._documentWrapper.getCurrentInstance().getLineText(r);-1===i.indexOf(r)&&e.isWhitespace(a)&&n.isCodeLine(this._internalDocument,t)&&o.isLineTextOnly(this._internalDocument,t)&&this._documentWrapper.getCurrentInstance().deleteText(r,1,r,a.length+1)}_clearLineCache(){this._whitespaceLines.forEach(e=>{e.destroy()}),this._whitespaceLines=[]}destroy(){super.destroy(...arguments),this.disable()}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4439)],o=i.dj.d(n,(e,t)=>class extends e{requires(){return{createInstance:["rtc.settings.service","rtc.trimautowhitespace"]}}createInstance(){return new t(...arguments)}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(207)],o=i.dj.d(n,e=>{const t="matlab.editor.indent.RemoveAutomaticWhitespace";return class extends e{constructor(e,i){super(),this._settingsService=e,this._trimAutoWhitespacePlugin=i,this.own(this._settingsService.listenToSettingChange(t,this._handleSettingChanged.bind(this))),this._getInitialValue()}_getInitialValue(){this._settingsService.getSetting(t).then(e=>{this._setEnabledState(e)},e=>{})}_handleSettingChanged(e){this._setEnabledState(e)}_setEnabledState(e){e?this._trimAutoWhitespacePlugin.enable():this._trimAutoWhitespacePlugin.disable()}}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(207),i(373)],o=i.dj.d(n,(function(e,t,i){return class extends t{constructor(t,i,n,o,r,a,s){super(),this._CLEAR_NOTIFICATIONS_ACTION="rtc_blockmatching_clearnotifications",this._view=t,this._cursorController=i,this._blockMatchingView=a,this._tokenMatcher=s,this.own(e.after(r,"onCursorMove",this._handleCursorMovement.bind(this),!0)),this.own(e.after(t,"onViewUpdated",this._handleViewUpdated.bind(this),!0)),this.own(e.after(n,"onBlur",this._removeNotifications.bind(this))),this.own(e.after(r,"onCursorChangeWhileSelection",this._removeNotifications.bind(this),!0)),o.loadActions([{id:this._CLEAR_NOTIFICATIONS_ACTION,key:"escape",enabled:!0,callback:this._removeNotifications.bind(this)}])}_handleCursorMovement(e){if(this._blockMatchingView.removePopups(),this._isCursorInvalidForMatching())return;const t=this._cursorController.getCursor().getCursorPosition(),i=this._getMatchedTokensAtPosition(t);i&&this._view.isPositionInView(t,!0)?this._blockMatchingView.showNotifications(i,e):this._blockMatchingView.removeHighlights()}_isCursorInvalidForMatching(){return this._cursorController.hasMultipleCursors()||this._cursorController.hasSelection()&&!this._cursorController.isActionInProgress()}_getMatchedTokensAtPosition(e){return 1===e.getColumn()?null:this._tokenMatcher.findMatchingTokens(e)}_handleViewUpdated(e){(i.hasScrollEvent(e)||i.hasSizingEvent(e))&&this._removeNotifications()}_removeNotifications(){this._blockMatchingView.removeNotifications()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(206),i(207),i(401),i(4442),i(4443),i(1985),i(1118)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return class extends i{constructor(e,t,i,n,o,r,a,s,l,c,d){super(),this._view=e,this._internalDocument=t,this._cursorController=i,this._focusService=n,this._lineNumberService=o,this._offscreenNotification=r,this._tokenManager=a,this._syntaxHighlightingColors=s,this._globalStyleChanger=l,this._lineNumberPreference=c,this._tokenHighlightingView=d,this._popupHandles=[]}showNotifications(e,t){this._showPopups(e),this._showHighlights(e,t)}removeNotifications(){this.removePopups(),this.removeHighlights()}removePopups(){return 0!==this._popupHandles.length&&(this._popupHandles.forEach(e=>{e.eventHandles.forEach(e=>{e.remove()}),this._offscreenNotification.removeOffscreenNotification(e.id)}),this._popupHandles=[],!0)}removeHighlights(){this._tokenHighlightingView.hide()}_showPopups(e){e.tokenMatchedFor!==e.startToken&&this._showPopupForToken(e.startToken),e.tokenMatchedFor!==e.endToken&&this._showPopupForToken(e.endToken)}_showPopupForToken(e){if(!this._shouldShowPopupForToken(e))return;const t=this._getTokenRange(e.token),i=t.getStartPosition().getLine(),n=this._cursorController.getCursor().getCursorPosition(),o=this._createPopup(i,n,t),r=this._getPopupAlignment(n,t);this._displayAndStorePopup(t,o,r)}_shouldShowPopupForToken(e){if(!e||e.isMismatch)return!1;const t=this._getTokenRange(e.token);return this._isRangeVisible(t)&&this._isRangeOffscreen(t)}_isRangeVisible(e){const t=e.getStartPosition(),i=e.getEndPosition(),n=this._view.getCoordinateForPosition(t),o=this._view.getCoordinateForPosition(i);return this._view.isValidCoordinate(n)&&this._view.isValidCoordinate(o)}_isRangeOffscreen(e){const t=e.getStartPosition(),i=e.getEndPosition();return!(this._view.isPositionInView(t,!0)&&this._view.isPositionInView(i))}_getTokenRange(e){const t=e.getPositionInfo();return this._internalDocument.getRangeForLineColumn(t.line+1,t.column+1,t.line+1,t.column+e.getLength()+1)}_createPopup(t,i,n){const o=e.create("div",{class:r.BLOCK_MATCHING_CODE});o.appendChild(this._getSyntaxHighlightedDomNodeForLine(t)),this._applyFontPropertiesToNode(o);const a=this._view.getCharacterWidthForLine(t);let s=this._getAvailableWidthInCharacters(a);const l=e.create("div",{class:r.BLOCK_MATCHING_POPUP});return this._lineNumberPreference.isEnabled()&&(s=this._addLineNumberToPopupIfNecessary(l,t,s,a)),this._truncatePopupIfNecessary(l,o,n,s,i,t),l}_getSyntaxHighlightedDomNodeForLine(t){const i=e.create("span");return this._tokenManager.getTokensOnLine(t-1).forEach(t=>{const n=this._syntaxHighlightingColors.getColorFromCategory(t.getType()),o=e.create("span");o.innerText=t.getValue(),o.style.color=n.toString(),i.appendChild(o)}),i}_getAvailableWidthInCharacters(e){const t=2*(r.POPUP_BORDER_WIDTH+r.POPUP_CONTENT_PADDING)+r.POPUP_OFFSET,i=this._view.getDomtarget().clientWidth;return Math.floor((i-t)/e)}_addLineNumberToPopupIfNecessary(t,i,n,o){if(this._view.isLineInView(i,!0))return n;const a=e.create("span",{class:r.BLOCK_MATCHING_LINE_NUMBER},t);this._applyFontPropertiesToNode(a);const s=this._lineNumberService.getCodeLineNumberFromLineNumber(i-1);a.innerText=s.toString();const l=a.innerText.length*o+2*r.POPUP_NUMBER_PADDING+r.POPUP_NUMBER_BORDER_WIDTH;return n-Math.ceil(l/o)}_applyFontPropertiesToNode(e){const t=this._globalStyleChanger.getCachedCssValue(".lineNode","font-size");void 0!==t&&(e.style.fontSize=t);const i=this._globalStyleChanger.getCachedCssValue(".lineNode","font-style");void 0!==i&&(e.style.fontStyle=i);const n=this._globalStyleChanger.getCachedCssValue(".lineNode","font-family");void 0!==n&&(e.style.fontFamily=n)}_truncatePopupIfNecessary(t,i,n,a,s,l){const c=e.create("div",{class:r.BLOCK_MATCHING_CONTENT},t),d=this._getBoundsOfTruncation(s,n,l,i),u=this._getAmountToTruncateAroundRange(i,n,a,d.leftBound,d.rightBound),h=u.left>0,p=u.right>0;let f=0;h&&(f=this._addEllipsesToDomNode(c,a,d.leftBound,d.rightBound),o.removeCharactersFromFrontOfDomNode(i,u.left+f)),e.place(i,c),p&&(f=this._addEllipsesToDomNode(c,a,d.leftBound,d.rightBound),o.removeCharactersFromBackOfDomNode(i,u.right+f))}_getBoundsOfTruncation(e,t,i,n){const o=e.getLine(),r=e.getColumn(),a=t.getStartPosition().getColumn();let s=1;o===i&&a>r&&(s=Math.min(t.getStartPosition().getColumn(),this._view.getRightmostVisibleColumnNumber(i)));let l=n.innerText.length+1;return o===i&&a<r&&(l=Math.max(t.getEndPosition().getColumn(),this._view.getLeftmostVisibleColumnNumber(i))),{leftBound:s,rightBound:l}}_getAmountToTruncateAroundRange(e,t,i,n,o){const r=e.innerText.length;n=void 0===n?1:n,o=void 0===o?r+1:o;const a=t.getStartPosition().getColumn(),s=t.getEndPosition().getColumn(),l=s-a,c=Math.floor((i-l)/2);let d=Math.min(c,a-n);const u=i-l-d,h=Math.min(u,o-s);h<u&&d===c&&(d=Math.min(c+(u-h),a-n));return{left:a-d-1,right:r-s-h+1}}_addEllipsesToDomNode(t,i,n,o){return e.create("span",{class:r.BLOCK_MATCHING_ELLIPSES},t).innerText=r.ELLIPSES,Math.max(Math.min(o-n-i+r.ELLIPSES.length,r.ELLIPSES.length),0)}_getPopupAlignment(e,t){const i=this._getTokenLocation(e,t);let n=null,o=null,l=0,c=0,d=0;switch(i.verticalLocation){case r.MATCHED_POSITION_VERTICAL.ABOVE:n=s.VERTICAL_POSITION.TOP,d=r.POPUP_OFFSET;break;case r.MATCHED_POSITION_VERTICAL.BELOW:n=s.VERTICAL_POSITION.BOTTOM,d=-r.POPUP_OFFSET;break;default:n=s.VERTICAL_POSITION.NEAREST}switch(i.horizontalLocation){case r.MATCHED_POSITION_HORIZONTAL.RIGHT_SAME_LINE:o=s.HORIZONTAL_POSITION.RIGHT,l=1,d=r.POPUP_BORDER_WIDTH,c=-r.POPUP_OFFSET;break;case r.MATCHED_POSITION_HORIZONTAL.LEFT_SAME_LINE:o=s.HORIZONTAL_POSITION.LEFT,l=-1,d=-r.POPUP_BORDER_WIDTH,c=r.POPUP_OFFSET;break;default:o=s.HORIZONTAL_POSITION.LEFT,c=r.POPUP_OFFSET}return new a(o,n,0,0,0,l,c,d)}_getTokenLocation(e,t){const i={horizontalLocation:null,verticalLocation:null},n=e.getLine(),o=t.getStartPosition().getLine(),a=this._view.getVisibleLineNumbers(!0);switch(!0){case o<a[0]:i.verticalLocation=r.MATCHED_POSITION_VERTICAL.ABOVE;break;case o>a[a.length-1]:i.verticalLocation=r.MATCHED_POSITION_VERTICAL.BELOW;break;default:i.verticalLocation=r.MATCHED_POSITION_VERTICAL.CENTER}const s=n===o,l=this._view.getDomtarget(),c=l.scrollLeft,d=c+l.clientWidth,u=this._view.getCoordinateForPosition(t.getStartPosition()).x,h=this._view.getCoordinateForPosition(t.getEndPosition()).x;switch(!0){case s&&h>d:i.horizontalLocation=r.MATCHED_POSITION_HORIZONTAL.RIGHT_SAME_LINE;break;case s&&u<c:i.horizontalLocation=r.MATCHED_POSITION_HORIZONTAL.LEFT_SAME_LINE;break;case h>d:i.horizontalLocation=r.MATCHED_POSITION_HORIZONTAL.RIGHT;break;case u<c:i.horizontalLocation=r.MATCHED_POSITION_HORIZONTAL.LEFT;break;default:i.horizontalLocation=r.MATCHED_POSITION_HORIZONTAL.CENTER}return i}_displayAndStorePopup(e,i,n){const o=this._offscreenNotification.displayOffscreenNotificationForDomNode(e,i,n);if(o){const n={id:o,eventHandles:[]};n.eventHandles.push(t(i,r.DOWN_EVENT,e=>{e.stopPropagation(),e.preventDefault()})),n.eventHandles.push(t(i,"click",t=>{t.stopPropagation(),this._handlePopupClicked(e)})),this._popupHandles.push(n)}}_handlePopupClicked(e){const t=new n(e.getStartPosition(),e.getEndPosition());this._cursorController.setSelection([t]),this._view.scrollPositionIntoView(e.getStartPosition()),this.removePopups(),this._focusService.setFocus()}_showHighlights(e,t){this._shouldShowHighlightsForTokens(e,t)&&(e.tokenMatchedFor.isMismatch?this._showMismatchedToken(e.tokenMatchedFor.token):this._shouldShowMatchedTokens(e)&&this._showMatchedTokens(e))}_shouldShowHighlightsForTokens(e,t){return!(e.tokenMatchedFor===e.startToken&&e.startToken.isMismatch&&t)}_showMismatchedToken(e){const t=this._getTokenLineColumnForMatchView(e);this._tokenHighlightingView.showMismatch([t])}_showMatchedTokens(e){let t=[];e.startToken&&!e.startToken.isMismatch&&t.push(this._getTokenLineColumnForMatchView(e.startToken.token));for(let i=0;i<e.midTokens.length;i++)e.midTokens[i].isMismatch||t.push(this._getTokenLineColumnForMatchView(e.midTokens[i].token));e.endToken&&!e.endToken.isMismatch&&t.push(this._getTokenLineColumnForMatchView(e.endToken.token)),t.length>1&&this._tokenHighlightingView.showMatch(t)}_shouldShowMatchedTokens(e){return e.tokenMatchedFor!==e.startToken||(!e.endToken||this._isRangeVisible(this._getTokenRange(e.endToken.token)))}_getTokenLineColumnForMatchView(e){const t=e.getPositionInfo();return this._tokenHighlightingView.getTokenLineColumnInfo(t,e.getLength())}destroy(){super.destroy(),this.removeNotifications()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211)],o=i.dj.d(n,(function(e){return{removeCharactersFromFrontOfDomNode:function(t,i){if(t.childNodes.length)for(;0<t.childNodes.length;){var n=t.childNodes[0];if(!(n.textContent.length<i))return void this.removeCharactersFromFrontOfDomNode(n,i);i-=n.textContent.length,e.destroy(n)}else t.textContent.length>i?t.textContent=t.textContent.substring(i):e.destroy(t)},removeCharactersFromBackOfDomNode:function(t,i){if(t.childNodes.length)for(var n=t.childNodes.length-1;n>=0;n--){var o=t.childNodes[n];if(!(o.textContent.length<i))return void this.removeCharactersFromBackOfDomNode(o,i);i-=o.textContent.length,e.destroy(o)}else t.textContent.length>i?t.textContent=t.textContent.substring(0,t.textContent.length-i):e.destroy(t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{BLOCK_MATCHING_POPUP:"blockMatchingPopup",BLOCK_MATCHING_LINE_NUMBER:"blockMatchingPopupLineNumber",BLOCK_MATCHING_CODE:"blockMatchingPopupCode",BLOCK_MATCHING_CONTENT:"blockMatchingPopupContent",BLOCK_MATCHING_ELLIPSES:"blockMatchingPopupEllipses",MATCHED_POSITION_HORIZONTAL:{RIGHT:1,RIGHT_SAME_LINE:2,LEFT:3,LEFT_SAME_LINE:4,CENTER:5},MATCHED_POSITION_VERTICAL:{ABOVE:1,BELOW:2,CENTER:3},POPUP_BORDER_WIDTH:1,POPUP_NUMBER_BORDER_WIDTH:1,POPUP_NUMBER_PADDING:5,POPUP_CONTENT_PADDING:5,POPUP_OFFSET:3,ELLIPSES:"...",DOWN_EVENT:window.PointerEvent?"pointerdown":"mousedown"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(207)],o=i.dj.d(n,e=>{const t="matlab.editor.indent.SmartIndentEntireDocument";return class extends e{constructor(e,i){super(),this._settingsService=e,this._smartIndentPlugin=i,this.own(this._settingsService.listenToSettingChange(t,this._handleSettingChanged.bind(this))),this._getInitialValue()}_getInitialValue(){this._settingsService.getSetting(t).then(e=>{this._smartIndentPlugin.setIndentingMode(e)},e=>{})}_handleSettingChanged(e){this._smartIndentPlugin.setIndentingMode(e)}}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(4446)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:[]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(207),i(585),i(1995)],o=i.dj.d(n,(function(e,t,i,n){return class extends t{constructor(){super(),this._colorMapDefaults={},this._typeMapDefaults={},this._pauseStack=0,this._colorMap=this.getDefaultColors()}onColorsUpdated(){this._didUpdateColorMap=!1}setDefaults(e,t){this._colorMapDefaults=e,this._typeMapDefaults=t,this._updateColorMap()}getDefaultColors(){return e.clone(this._colorMapDefaults)}getDefaultColor(e){return this._colorMapDefaults[e]||n.DEFAULT_TEXT_COLOR}getColorFromCategory(e){const t=e&&this._typeMapDefaults[e];return this.getColorFromType(t)}getColorFromType(e){return this._colorMap[e]||n.DEFAULT_TEXT_COLOR}setColorForType(e,t){this._areColorsEqual(this._colorMap[e],t)||(this._colorMap[e]=t,this._pauseStack>0?this._didUpdateColorMap=!0:this.onColorsUpdated())}pauseEvents(){this._pauseStack++}unpauseEvents(){this._pauseStack--,0===this._pauseStack&&this._didUpdateColorMap&&this.onColorsUpdated()}_areColorsEqual(e,t){return e instanceof i&&e.equals(t)}_updateColorMap(){this.pauseEvents();Object.keys(this._colorMapDefaults).forEach(e=>{this._colorMap[e]||this.setColorForType(e,this._colorMapDefaults[e])}),this.unpauseEvents()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(207)],o=i.dj.d(n,e=>class extends e{constructor(e,t){super(...arguments),this._settingsService=e,this._lexer=t,this._initializeSettings()}_initializeSettings(){this._settingsService.getSetting("matlab.editor.MaxTokenizationLineLength").then(e=>{this._lexer.setMaxTokenizationLineLength(e)},e=>{}),this.own(this._settingsService.listenToSettingChange("matlab.editor.MaxTokenizationLineLength",e=>{this._lexer.setMaxTokenizationLineLength(e,!0)}))}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(207),i(237),i(1980)],o=i.dj.d(n,(function(e,t,i,n){return class extends t{constructor(e,t,i){super(),this._SCAN_FORWARD=1,this._SCAN_BACKWARD=2,this._SCAN_FORWARD_AND_BACKWARD=3,this._internalDocument=e,this._tokenManager=t,this._matcherRules=i}findMatchingTokens(t){e.assert(t&&t.isValid(),"Invalid position provided");const i=this._getTokenForMatching(t);if(!i||!this._matcherRules.isMatchableToken(i))return null;const n=this._determineScanDirection(i);return this._scanForMatches(i,n)}_getTokenForMatching(e){const t=e.getLine()-1,i=e.getColumn()-1,n=this._tokenManager.getTokenOnLineColumn(t,i-1),o=this._tokenManager.getTokenOnLineColumn(t,i);if(!o||n===o)return n;if(!n)return o;return this._matcherRules.isMatchableToken(o)?o:n}_determineScanDirection(e){switch(this._matcherRules.getTokenTypeForMatching(e)){case n.START_TOKEN:return this._SCAN_FORWARD;case n.END_TOKEN:return this._SCAN_BACKWARD;default:return this._SCAN_FORWARD_AND_BACKWARD}}_scanForMatches(e,t){if(t===this._SCAN_FORWARD_AND_BACKWARD)return this._scanForMatchesBothDirections(e);const i=this._getMatchedTokensObject(e),o=t===this._SCAN_BACKWARD,r=this._tokenManager.iterateTokens(e,null,o);let a=0;for(;r&&r.next();)if(this._matcherRules.isTokenOfInterestForMatching(e,r))switch(this._matcherRules.getTokenTypeForMatching(r)){case n.START_TOKEN:if(0===a&&t===this._SCAN_BACKWARD){const t=!this._matcherRules.areMatchingTokens(e,r);return i.startToken=this._createTokenObject(r.clone(),t),i.tokenMatchedFor.isMismatch=t,i.tokenMatchedFor===i.endToken&&this._rippleThroughMidTokens(i),i}a++;break;case n.MID_TOKEN:if(0===a){const n=!this._matcherRules.areMatchingTokens(e,r),o=this._createTokenObject(r.clone(),n);t===this._SCAN_FORWARD?i.midTokens.push(o):i.midTokens.unshift(o)}break;case n.END_TOKEN:if(0===a&&t===this._SCAN_FORWARD){const t=!this._matcherRules.areMatchingTokens(e,r);return i.endToken=this._createTokenObject(r.clone(),t),i.tokenMatchedFor.isMismatch=t,i}a--}return this._matcherRules.isMismatchAllowed(i.tokenMatchedFor.token)||(i.tokenMatchedFor.isMismatch=!0),i}_scanForMatchesBothDirections(e){const t=this._scanForMatches(e,this._SCAN_BACKWARD);if(t.tokenMatchedFor.isMismatch)return t;const i=this._scanForMatches(e,this._SCAN_FORWARD);i.midTokens.shift();const n=t.midTokens.concat(i.midTokens);return{startToken:t.startToken,midTokens:n,endToken:i.endToken,tokenMatchedFor:t.tokenMatchedFor}}_getMatchedTokensObject(e){const t=this._createTokenObject(e,!1),i={startToken:null,midTokens:[],endToken:null,tokenMatchedFor:t};switch(this._matcherRules.getTokenTypeForMatching(e)){case n.START_TOKEN:i.startToken=t;break;case n.MID_TOKEN:i.midTokens.push(t);break;case n.END_TOKEN:i.endToken=t}return i}_createTokenObject(e,t){return{token:e,isMismatch:t}}_rippleThroughMidTokens(e){const t=e.startToken.token;e.midTokens.forEach(e=>{e.isMismatch=!this._matcherRules.areMatchingTokens(t,e.token)})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(4450),i(205)],o=i.dj.d(n,(function(e,t){return class extends t{requires(){return{createInstance:["rtc.cursorcontroller","rtc.actionservice","rtc.keyhandler","rtc.document","rtc.internaldocument","rtc.contextmenu.documentcontributor","rtc.internal.language","rtc.viewready","rtc.languagenotifier"]}}createInstance(){return new e(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(208),i(667),i(207),i(282),i(454),i(234),i(249),i(1107),i(670),i(294),i(451),i(251),i(253)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){const f=d.DEFAULT;return class extends n{constructor(i,n,a,s,l,c,d,u,h){super(...arguments),this._cursorController=i,this._document=s,this._internalDocument=l,this._actionService=n,this._keyHandler=a,this._contextMenuContributor=c,this._language=d,this._languageNotifier=h,this._commentMap=o.createMap(),this._commentMap.set(r.DEFAULT_SUPPORTED_LANGUAGES.MATLAB,"%"),this._loadActions(),this.own(t.after(this._cursorController,"onUpdate",e.hitch(this,this._updateActionState))),this.own(t.after(this._document,"onChange",e.hitch(this,this._updateActionsOnDocumentChange),!0)),this._addActionsToContextMenu(),this.own(t.after(this._languageNotifier,"onLanguageInfoDiscovered",this._handleLanguageInfoDiscovered.bind(this),!0)),this.own(t.after(u,"onViewReady",this._updateActionState.bind(this),!0))}_loadActions(){const t=[{id:h.COMMENT.COMMENT.Action,key:"ctrl_r",platformKey:{mac:"meta_/"},enabled:!1,text:h.COMMENT.COMMENT.Description,icon:h.COMMENT.COMMENT.Icon,callback:e.hitch(this,"_comment")},{id:h.COMMENT.UNCOMMENT.Action,key:"ctrl_shift_r",platformKey:{mac:"meta_alt_/"},enabled:!1,text:h.COMMENT.UNCOMMENT.Description,icon:h.COMMENT.UNCOMMENT.Icon,callback:e.hitch(this,"_uncomment")}];this._actionService.loadActions(t),this._keyHandler.addBinding({key:"ctrl_t",platformKey:{mac:"meta_t"}},h.COMMENT.UNCOMMENT.Action)}_handleLanguageInfoDiscovered(e){e.commentStyle&&e.commentStyle.lineComment&&this.setCommentStringForLanguage(e.languageName,e.commentStyle.lineComment)}setCommentStringForLanguage(e,t){this._commentMap.set(e,t),this._updateActionState()}removeCommentStringForLanguage(e){this._commentMap.delete(e),this._updateActionState()}getCommentString(){return this._commentMap.get(this._language.getLanguage())||""}getCommentAnnotation(){let e=this.getCommentString();return""!==e&&(e+=" "),e}_updateActions(e){this._actionService.updateAction(h.COMMENT.COMMENT.Action,{enabled:e}),this._actionService.updateAction(h.COMMENT.UNCOMMENT.Action,{enabled:e})}_addActionsToContextMenu(){this._contextMenuContributor.addActionToMap(f,{actionId:h.COMMENT.COMMENT.Action,type:u.DEFAULT,priority:2}),this._contextMenuContributor.addActionToMap(f,{actionId:h.COMMENT.UNCOMMENT.Action,type:u.DEFAULT,priority:2})}_commentValid(){return!this._document.isReadOnly()&&this._isRangeEditableForAllCursors()}_comment(){return!!this._actionService.getAction(h.COMMENT.COMMENT.Action).enabled&&(!!this._commentValid()&&(this._augmentSelection(e.hitch(this,"_commentAugmenter")),!0))}_uncomment(){return!(!this._actionService.getAction(h.COMMENT.UNCOMMENT.Action).enabled||!this._commentValid())&&(this._augmentSelection(e.hitch(this,"_uncommentAugmenter")),!0)}_augmentSelection(e){this._cursorController.holdCursors();const t=this._document.startBlockEdit();t.setEventCoalescingType(l.COALESCING_TYPE.COMBINE_INLINE_ONLY);this._cursorController.getCursors().forEach((function(t){this._augmentCursorLine(t,e)}),this),this._document.endBlockEdit(t),this._cursorController.resetCursors()}_augmentCursorLine(e,t){let i,n;const o=e.getSelection();if(o){i=o.getStartPosition().getLineColumn().line;const e=o.getEndPosition().getLineColumn();n=1!==e.column||o.fileEndSelected()?e.line:e.line-1}else{const t=e.getLineColumn().line;i=t,n=t}this._augmentLines(i,n,t,e)}_augmentLines(e,t,i,n){for(let o=e;o<=t;o++)this._document.isLineCode(o)&&i(o,n)}_commentAugmenter(e,t){const i=t.getSelection();let n,o;i&&(n=i.getStartPosition().getLine(),o=i.getEndPosition().getLine());const r=this._internalDocument.getLineNode(e-1).startPosition(),a=c.createTextNodeForPosition(this.getCommentAnnotation(),r);this._cursorController.holdCursors();const s=this._document.startBlockEdit(),l=this._internalDocument.insertAtPosition(a,r);s.appendUndoEvents(l.events),s.appendRedoEvents(l.events),this._internalDocument.emitDocumentEvents(l.events),this._document.endBlockEdit(s),this._cursorController.resetCursors(),this._checkAndExtendSelection(i,n,o,t)}_checkAndExtendSelection(e,t,i,n){if(!e||t===i||1===e.getEndPosition().getColumn())return;const o=this._internalDocument.getLineNode(t-1).startNode(),r=this._internalDocument.getLineNode(i-1).endNode();e.getStartPosition().setPosition(o,0);const a=e.getEndPosition();1!==a.getColumn()&&a.setPosition(r,r.maxOffset()),n.setSelection(e)}_uncommentAugmenter(e,t){const i=this._document.getLineText(e),n=this._getStringToRemove(i);if(""===n)return;const o=i.indexOf(n)+1,r=o+n.length,a=t.getSelection();let s,l;a&&(s=a.getStartPosition().getLine(),l=a.getEndPosition().getLine()),this._document.deleteText(e,o,e,r),this._checkAndExtendSelection(a,s,l,t)}_getStringToRemove(e){let t="";const n=this.getCommentAnnotation(),o=this.getCommentString();return 0===i.leftTrim(e).indexOf(n)?t=n:0===i.leftTrim(e).indexOf(o)&&(t=o),t}_updateActionsOnDocumentChange(t){t&&e.isArray(t)&&t.some(e=>{if(e.type===s.READONLY_STATE_CHANGE_EVENT)return this._updateActionState(),!0})}_updateActionState(){this._updateActions(this._shouldEnableActions())}_shouldEnableActions(){return this._isCodeInRange()&&this._isRangeEditableForAllCursors()&&this._doesCommentMapHaveValidString()}_isRangeEditableForAllCursors(){return this._cursorController.getCursors().every((function(e){return!e.isCursorReadOnly()}),this)}_isCodeInRange(){return this._cursorController.getCursors().every((function(e){const t=e.getSelection();return t?a.isCodeInRange(t.getStartPosition().getNode(),t.getEndPosition().getNode()):this._document.isLineCode(e.getLineColumn().line)}),this)}_doesCommentMapHaveValidString(){const e=this._commentMap.get(this._language.getLanguage());return"string"==typeof e&&""!==e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(4452),i(205)],o=i.dj.d(n,(function(e,t){return class extends t{requires(){return{createInstance:["rtc.internaldocument","rtc.view","rtc.cursor","language.interface.tokenmanager","rtc.view.current","rtc.view.decoration","rtc.tokenmatching.eventhandler","rtc.tokenhighlighting.view"]}}createInstance(){return new e(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(334),i(4453)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e,t,n,r,a,s,l,c){this._internalDocument=e,this._view=t,this._cursor=n,this._currentView=a,this._decoration=s,this._matchView=c,this.own(i.after(l,"onCursorMove",this._handleUpdate.bind(this),!0)),this.own(i.after(l,"onCursorChangeWhileSelection",this._matchView.hide.bind(this._matchView))),this._matcher=new o(e,r)},_handleUpdate:function(e){var t=this._cursor,i="",n=t.getPosition();if(!e||0!==n.column){if(t.hasSelection())i=t.charAtCursor(),this._matcher.isOpenOrClose(i)?t.isReversed()||(n.column=n.column-1):i="";else{const e=t.charAtCursor(-1),o=t.charAtCursor();""===o?(i=e,n.column=n.column-1):""===e||this._matcher.isOpenOrClose(o)?i=o:(i=e,n.column=n.column-1)}i&&this._scanAndShowAnyMatch(i,n)}},_scanAndShowAnyMatch:function(e,t){this._matcher.scanLeftOrRight(e,t),this._showMatch(this._matcher.Left,this._matcher.Right)},_showMatch:function(e,t){var i=this._matchView.getTokenLineColumnInfo(e,1),n=this._matchView.getTokenLineColumnInfo(t,1);e&&e.mismatch?this._matchView.showMismatch([i]):t&&t.mismatch?this._matchView.showMismatch([n]):this._currentView.isCurrentView()&&e&&t&&this._matchView.showMatch([i,n])},_getViewInformation:function(e){if(!e)return null;var t=this._getCoordinateForParen(e);return t&&e.mismatch&&(t.mismatch=!0),t},_getCoordinateForParen:function(e){var t=e.line,i=e.column,o=this._getPositionForParen(t,i),r=o.getNode();return n.hasViewOnlyText(r,this._view)?null:this._view.getCoordinateForPosition(o)},_getPositionForParen:function(e,t){var i=this._internalDocument.getPositionForLineColumn(e+1,t+1);if(i.isAtRightEdge()){var n=i.getNode(),o=n.nextNode();if(n!==n.textContainer().endNode()&&o.isTextNode())return o.startPosition()}return i},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t){this.Left=null,this.Right=null,this.isLastMatch=!0,this._internalDocument=e,this._matlabTokenManager=t,this._OPEN=["(","[","{"],this._CLOSE=[")","]","}"],this._PARENREG="(\\(|\\[|{)|(\\)|\\]|})"},scanLeftOrRight:function(e,t){var i=this._OPEN.indexOf(e),n=0;this.Left=null,this.Right=null,i>=0?(n=1,this.Left=t,this.Right=null):(i=this._CLOSE.indexOf(e))>=0&&(n=-1,this.Right=t,this.Left=null),0!==n&&this._scan(t,n,i)},_scan:function(e,t,i){var n=this._scanDocument(e,t,i);t>0?(n&&(this.Right=n),!this.Left||n&&!n.mismatch||(this.Left.mismatch=!0)):(n&&(this.Left=n),!this.Right||n&&!n.mismatch||(this.Right.mismatch=!0))},_scanDocument:function(e,t,i){var n=e.line,o=e.column,r="",a=1===t,s=a?-1:0,l=!1,c=this._internalDocument.getLineNode(n);if(!c||this._isInStringOrComment(n,o))return this.Left=null,this.Right=null,null;for(var d=c.getTextForPositioning(),u=this._internalDocument.containerType(c);;){r=a?d.substring(o):d.substring(0,o);var h=new RegExp(this._PARENREG,"g"),p="",f=h.exec(r);if(f&&(this.isLastMatch=this._checkLastMatchorNot(f[0],i)),this.isLastMatch&&(p=f),a&&!p)for(;f;)if((f=h.exec(r))&&(this.isLastMatch=this._checkLastMatchorNot(f[0],i),this.isLastMatch)){p=f;break}if(!a&&f)for(;f;)(f=h.exec(r))&&(this.isLastMatch=this._checkLastMatchorNot(f[0],i),this.isLastMatch&&(p=f));if(p){if(!this._isInStringOrComment(n,a?o+p.index:p.index))if(p[1]){if(!a&&0===s)return i!==this._OPEN.indexOf(p[0])&&(l=!0),{line:n,column:p.index,mismatch:l};s+=1}else{if(a&&0===s)return i!==this._CLOSE.indexOf(p[0])&&(l=!0),{line:n,column:o+p.index,mismatch:l};s-=1}o=a?o+p.index+p[0].length:p.index}if(a?(!p||o>=d.length)&&(n+=1,o=0):p&&0!==o||(n-=1,o=-1),o<=0){for(;;){if(!(c=this._internalDocument.getLineNode(n)))return null;if(u===this._internalDocument.containerType(c))break;n+=a?1:-1}d=c.getTextForPositioning(),o<0&&(o=d.length)}}return null},_checkLastMatchorNot:function(e,t){var i=this._OPEN.indexOf(e);return i<0&&(i=this._CLOSE.indexOf(e)),i===t},isOpenOrClose:function(e){return this.isOpen(e)||this.isClose(e)},isOpen:function(e){return this._OPEN.indexOf(e)>=0},isClose:function(e){return this._CLOSE.indexOf(e)>=0},_isInStringOrComment:function(e,t){return this._matlabTokenManager.isInString(e,t)||this._matlabTokenManager.isInComment(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1996)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.view.decoration","rtc.internaldocument","rtc.document.info","rtc.viewready","language.interface.tokenmanager","language.common.syntaxhighlighter.colors"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(821),i(4456)],o=i.dj.d(n,(function(e,t,i,n){return class extends t{requires(){return{createInstance:["language.common.syntaxhighlighter.colors"]}}createInstance(){return new i(n.colorMapDefaults,n.typeMapDefaults,...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(585),i(1998),i(324)],o=i.dj.d(n,(function(e,t,i,n){return{typeMapDefaults:function(){const e={};return e[n.TOKENS.FUNCTION]=i.KEYWORD,e[n.TOKENS.NESTED]=i.KEYWORD,e[n.TOKENS.IF]=i.KEYWORD,e[n.TOKENS.SWITCH]=i.KEYWORD,e[n.TOKENS.TRY]=i.KEYWORD,e[n.TOKENS.WHILE]=i.KEYWORD,e[n.TOKENS.FOR]=i.KEYWORD,e[n.TOKENS.END]=i.KEYWORD,e[n.TOKENS.ELSE]=i.KEYWORD,e[n.TOKENS.ELSEIF]=i.KEYWORD,e[n.TOKENS.BREAK]=i.KEYWORD,e[n.TOKENS.RETURN]=i.KEYWORD,e[n.TOKENS.PARFOR]=i.KEYWORD,e[n.TOKENS.GLOBAL]=i.KEYWORD,e[n.TOKENS.PERSISTENT]=i.KEYWORD,e[n.TOKENS.CATCH]=i.KEYWORD,e[n.TOKENS.CONTINUE]=i.KEYWORD,e[n.TOKENS.CASE]=i.KEYWORD,e[n.TOKENS.OTHERWISE]=i.KEYWORD,e[n.TOKENS.CLASSDEF]=i.KEYWORD,e[n.TOKENS.PROPERTIES]=i.KEYWORD,e[n.TOKENS.METHODS]=i.KEYWORD,e[n.TOKENS.EVENTS]=i.KEYWORD,e[n.TOKENS.ENUMERATION]=i.KEYWORD,e[n.TOKENS.SPMD]=i.KEYWORD,e[n.TOKENS.PARSECTION]=i.KEYWORD,e[n.TOKENS.SECTION]=i.KEYWORD,e[n.TOKENS.DOTDOTDOT]=i.KEYWORD,e[n.TOKENS.ARGUMENTS_BLOCK]=i.KEYWORD,e[n.TOKENS.STRING]=i.STRING,e[n.TOKENS.DUAL]=i.STRING,e[n.TOKENS.STRING_LITERAL]=i.STRING,e[n.TOKENS.UNTERM]=i.UNTERMINATED_STRING,e[n.TOKENS.UNTERM_STRING_LITERAL]=i.UNTERMINATED_STRING,e[n.TOKENS.BANG]=i.SYSTEM_COMMAND,e[n.TOKENS.DOLLAR]=i.ERROR,e[n.TOKENS.BACKQUOTE]=i.ERROR,e[n.TOKENS.DOUBLEQUOTE]=i.ERROR,e[n.TOKENS.SHARP]=i.ERROR,e[n.TOKENS.BADCHAR]=i.ERROR,e[n.TOKENS.RES_ERR]=i.ERROR,e[n.TOKENS.COMMENT]=i.COMMENT,e[n.TOKENS.BLKSTART]=i.COMMENT,e[n.TOKENS.BLKCOM]=i.COMMENT,e[n.TOKENS.BLKEND]=i.COMMENT,e[n.TOKENS.CPAD]=i.COMMENT,e[n.TOKENS.PRAGMA]=i.COMMENT,e[n.TOKENS.BEGIN_TYPE]=i.TYPE_SECTION,e[0]=i.PLAIN_TEXT,e[14]=i.KEYWORD,e[17]=i.KEYWORD,e[18]=i.KEYWORD,e[19]=i.KEYWORD,e[24]=i.KEYWORD,e[26]=i.KEYWORD,e[27]=i.KEYWORD,e[29]=i.KEYWORD,e}(),colorMapDefaults:function(){const e={};return e[i.ERROR]=new t(255,0,0),e[i.COMMENT]=new t(2,128,9),e[i.STRING]=new t(170,4,249),e[i.TYPE_SECTION]=new t(160,82,45),e[i.KEYWORD]=new t(14,0,255),e[i.UNTERMINATED_STRING]=new t(196,0,0),e[i.SYSTEM_COMMAND]=new t(178,140,0),e[i.PLAIN_TEXT]=new t(0,0,0),e}()}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1999)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.service"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.matlab.EnableSyntaxHighlighting",requires:function(){return{createInstance:["rtc.settings.service","language.matlab.syntaxhighlighter"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4460)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.integration.touchmode","rtc.integration.mobilemode"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,i){this._touchMode=e,this._mobileMode=i,!0===this._touchMode&&t.add("touchdevice",(function(){return!0}))},isStandAloneTouchModeEnabled:function(){return!this.isMobileModeEnabled()&&this.isTouchModeEnabled()},isMobileModeEnabled:function(){return!0===this._mobileMode},isTouchModeEnabled:function(){return!0===this._touchMode},isMultiTouch:function(){return window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>1},isIPad:function(){return(/iPad/.test(window.navigator.userAgent)||"MacIntel"===window.navigator.platform&&this.isMultiTouch())&&this.isTouchModeEnabled()},isIphone:function(){return(/iPhone/.test(window.navigator.userAgent)||"MacIntel"===window.navigator.platform&&this.isMultiTouch())&&this.isTouchModeEnabled()},isIosTouchDevice:function(){return this.isIPad()||this.isIphone()},isAndroidTouchDevice:function(){return/Android/.test(window.navigator.userAgent)},isAndroidPhoneDevice:function(){return this.isAndroidTouchDevice()&&/Mobile/.test(window.navigator.userAgent)},isAndroidTabletDevice:function(){return this.isAndroidTouchDevice()&&!this.isAndroidPhoneDevice()},isTouchDevice:function(){return this.isIosTouchDevice()||this.isAndroidTouchDevice()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4462)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e,t){return e&&(t.isIosTouchDevice()||t.isStandAloneTouchModeEnabled())},requires:function(){return{isApplicable:["rtc.integration.touchmode","rtc.touch.service"],createInstance:["rtc.domnode","rtc.keyhandler","rtc.clipboard","rtc.cutcopypaste","rtc.internaldocument","rtc.document","rtc.cursor","rtc.view","rtc.view.decoration","rtc.margin","rtc.actionservice","rtc.richtext","rtc.compacttoolstrip","rtc.touch.service"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(208),i(206),i(228),i(225),i(207),i(249),i(274),i(283),i(525),i(347),i(552)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(s,{constructor:function(e,t,i,a,s,l,c,d,u,h,p,f,g,m){this._mobileKeyHandler=t,this._domNode=e,this._clipboard=i,this._cutCopyPaste=a,this._internalDocument=s,this._document=l,this._cursor=c,this._view=d,this._viewDecoration=u,this._margin=h.getLineMargin(),this._richText=f,this._actionService=p,this._compactToolstrip=g,this._lastTapTime=0,this._rtcScrollPane=d.getDomtarget(),this._keyPressed=[],this._manualSelectionTrigger=!1,this._shouldNativeCursorSync=!0,this._opaqueNodeOffset=0,this._syncNode=null,this._touchService=m,this.keyPressedHandled=!1,this.keyDownHandled=!1,this.clickHandled=!1,this.selectionChangeHandled=!1,this._keyboardHidden=!1,this._isBackspaceDeletion=!1,this._backspaceLineColumn={},r.set(this._rtcScrollPane,"contentEditable",!0),r.set(this._rtcScrollPane,"spellcheck",!1),this._rtcScrollPane.setAttribute("autocapitalize","none"),this._rtcScrollPane.setAttribute("autocomplete","off"),this._rtcScrollPane.setAttribute("autocorrect","off"),this.own(o(this._margin,"touchstart",this._handleTouchStartOnMargin.bind(this))),this.own(n.after(this._view,"onLayoutChange",this._handleViewLayoutChanged.bind(this),!0)),this.own(n.after(this._viewDecoration,"onDecorationsChanged",this._syncNativeCursorOnDecorationsChanged.bind(this))),this.own(n.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this))),this.own(n.after(this._internalDocument,"onDocumentReset",this._handleDocumentReset.bind(this))),this._handleWindowResize(),this._handleWindowScroll(),this._setupEventHandlers()},_debounce:function(e,t,i,n){let o=!1;e.addEventListener(t,(function(){clearTimeout(o),o=setTimeout(i,n)}))},_handleWindowScroll(){const e=function(){this._drawNativeSelection()}.bind(this);this._debounce(this._rtcScrollPane,"scroll",e,150)},_handleWindowResize:function(){const e=function(){this._keyboardHidden?this._rtcScrollPane.blur():this._view.scrollNearestVisibleLineToPercent(this._cursor.getLineColumn().line,10)}.bind(this);this._debounce(window,"resize",e,250)},_handleTouchStartOnMargin:function(){this._margin.setAttribute("contenteditable",!1)},_drawNativeSelection:function(){if(this._cursor.hasSelection()){var e=this._cursor.getSelection(),t=e.getStartPosition().getNode(),i=e.getEndPosition().getNode(),n=this._view.getNodeBox(t),o=this._view.getNodeBox(i),r=window.getSelection(),a=document.createRange(),s=this._getSelectionNode(n,e.getStartPosition().getOffset()),l=this._getSelectionNode(o,e.getEndPosition().getOffset());a.setStart(s.node,s.result),a.setEnd(l.node,l.result),r.removeAllRanges(),r.addRange(a)}},_getSelectionNode:function(e,t){var i,n;if(e.childNodes&&1===e.childNodes.length)return{node:this._getTextFromContainer(e),result:t};for(var o=0;o<e.childNodes.length;o++){if(n=this._getTextFromContainer(e.childNodes[o]),0===t){i=t;break}if(!(e.childNodes[o].textContent.length<t)){i=t;break}i=t-=e.childNodes[o].textContent.length}return{node:n,result:i}},_syncNativeCursorOnDecorationsChanged:function(){this._internalDocument.onPreDocumentChanged();let e=this._cursor.getLineColumn();this._cursor.hasSelection()||this._syncNativeCursorWithCaret(e.line,e.column)},syncNativeCursor:function(){this._syncNativeCursorWithCaret(this._cursor.getLineColumn().line,this._cursor.getLineColumn().column)},onkeypress:function(e){},onkeydown:function(e){},onclick:function(e){this._backspaceLineColumn={}},onSelectionChange(e){},onNativeCaretSync:function(){},onBackSpaceDeletion(){},setSyncNode:function(e){this._syncNode=e},getSyncNode:function(){return this._syncNode},onSyncOpaqueNodeOffset(){this._opaqueNodeOffset=0},setNativeCursorSync:function(e){this._shouldNativeCursorSync=e},setOpaqueNodeOffset:function(e){this._opaqueNodeOffset=e},_attachKeyEvents:function(){this.own(o(this._rtcScrollPane,"keypress",t.hitch(this,(function(e){this._touchService.isAndroidTouchDevice()&&229===e.keyCode||(this.onkeypress(e),this.keyPressedHandled?this.keyPressedHandled=!1:d.isLiveAppInlineNode(this._cursor.getNode())||this._handleNativeKeyPress(e))})))),this.own(o(this._rtcScrollPane,"keydown",t.hitch(this,(function(e){this._touchService.isAndroidTouchDevice()&&229===e.keyCode||(this.onkeydown(e),this.keyDownHandled?this.keyDownHandled=!1:this._handleNativeKeyDown(e))})))),this.own(o(this._rtcScrollPane,"keyup",t.hitch(this,(function(e){this._touchService.isAndroidTouchDevice()&&229===e.keyCode||this._handleKeyUp(e)}))))},_setupEventHandlers:function(){this._attachKeyEvents(),this.own(o(this._rtcScrollPane.ownerDocument,"selectionchange",t.hitch(this,(function(e){this._handleNativeSelectionChange(e)})))),this.own(o(this._rtcScrollPane.ownerDocument,"cut",t.hitch(this,(function(e){this._handleNativeCut(e)})))),this.own(o(this._rtcScrollPane.ownerDocument,"selectstart",t.hitch(this,"_handleSelectStart"))),this.own(o(this._rtcScrollPane.ownerDocument,"touchend",t.hitch(this,"_detectDoubleTap"))),this.own(o(this._rtcScrollPane.ownerDocument,"click",t.hitch(this,(function(e){if(this.clickHandled=!1,this.onclick(e),!this.clickHandled){this._cursor.hasSelection()||-1==e.target.className.indexOf("mwIconNode")||this._syncNativeCursorWithCaret(this._cursor.getLineColumn().line,this._cursor.getLineColumn().column);var t=this._cursor.getNode();t&&d.isLiveAppInlineNode(t)&&(this._compactToolstrip.enableRichTextButtons(!1),this._compactToolstrip.enableCodeButtons(!1),this._compactToolstrip.setOnlineMode())}})))),this.own(o(this._rtcScrollPane.ownerDocument,"copy",t.hitch(this,(function(e){this._handleCopy(e)})))),this.own(o(this._rtcScrollPane.ownerDocument,"paste",t.hitch(this,(function(e){this._handlePaste(e)})))),window.onKeyboardWillShow=function(){this._keyboardHidden=!1,this._view.scrollNearestVisibleLineToPercent(this._cursor.getLineColumn().line,10)}.bind(this),window.onKeyboardWillHide=function(){this._keyboardHidden=!0,window.dispatchEvent(new Event("resize"))}.bind(this),window.insertText=function(e){this._document.insertTextAtCurrentPosition(e),this._syncNativeCursorWithCaret(this._cursor.getLineColumn().line,this._cursor.getLineColumn().column)}.bind(this),window.handleTouchStart=function(){this._rtcScrollPane.ownerDocument.addEventListener("click",t.hitch(this,"_syncNativeCursor"),{once:!0})}.bind(this)},_detectDoubleTap:function(e){var t=(new Date).getTime(),i=t-this._lastTapTime;i<500&&i>0&&this._isNodeWithinNativeSelection()&&(this._syncNativeCursor(e),e.preventDefault()),this._lastTapTime=t},_isNodeWithinNativeSelection:function(){var e=this._cursor.getSelectionStartNode(),t=this._view.getNodeBox(e),i=window.getSelection();return!i.isCollapsed&&i.containsNode(t,!0)},_syncNativeCursor:function(e){var t=this._view.getCoordinateForDomNode(e.target),i=this._view.getLineColumnFromCoordinate(t);this._syncNativeCursorWithCaret(i.line,i.column+e.target.textContent.length)},_handleViewLayoutChanged:function(){if(this._touchService.isAndroidTouchDevice()){r.set(this._rtcScrollPane,"contentEditable",!1);let e=a(".rootNode",this._scrollPane);r.set(e[0],"contentEditable",!0),r.set(e[0],"autocapitalize","none")}var e=this._view.getDomtarget().getElementsByTagName("input");if(e&&e.length>0)for(var t=0;t<e.length;t++)e[t].setAttribute("autocorrect","off"),e[t].setAttribute("autocomplete","off")},_handleDocumentChanged:function(e){if(!d.isLiveAppInlineNode(this._cursor.getNode()))return this._cursor.hasSelection()?(this._disableCursorSelection(),void this._drawNativeSelection()):void this._syncNativeCursorWithCaret(this._cursor.getLineColumn().line,this._cursor.getLineColumn().column)},_handleDocumentReset:function(){this._disableCursorSelection();let e=this._cursor.getLineColumn();this._cursor.hasSelection()||this._syncNativeCursorWithCaret(e.line,e.column)},_disableCursorSelection:function(){this._cursor.isSelectionHidden()||this._cursor.hideSelection()},handleBackspaceKey:function(e){this._isBackspaceDeletion=!0,this._handleBackspaceKey(e)},_handleBackspaceKey:function(e){this._cursor.getNode();this._document.deleteTextAtCurrentPosition(l.BACKWARD_DELETE),this.onBackSpaceDeletion(),this._syncNativeCursorWithCaret(this._cursor.getLineColumn().line,this._cursor.getLineColumn().column),this._isBackspaceDeletion&&(this._backspaceLineColumn={line:this._cursor.getLineColumn().line,column:this._cursor.getLineColumn().column}),e.preventDefault(),e.stopPropagation()},_handleKeyUp:function(e){delete this._keyPressed[e.key]},_handleNativeKeyDown:function(e){var t=this.getParentDivInfo();(!this._keyPressed.Meta||"a"!==e.key&&"x"!==e.key&&"v"!==e.key&&"c"!==e.key)&&(this._keyPressed[e.key]=!0,t.parentDiv&&this._isOpaqueOrBlockNode(t.parentDiv)||(this._keyPressed.Meta&&this._keyPressed.Shift&&"z"===e.key&&3===Object.keys(this._keyPressed).length?window.redo():this._keyPressed.Meta&&"z"===e.key&&2===Object.keys(this._keyPressed).length?window.undo():"Backspace"===e.key&&this._handleBackspaceKey(e)))},_handleNativeKeyPress:function(e){if(this._getParentDiv()){var t=e.key;"Enter"===e.key?this._document.insertBreak():this._document.insertTextAtCurrentPosition(t),this._syncNativeCursorWithCaret(this._cursor.getLineColumn().line,this._cursor.getLineColumn().column),this._keyPressed[t]&&delete this._keyPressed[t],e.preventDefault(),e.stopPropagation()}},_getParentDiv:function(){const e=this.getParentDivInfo();return e.parentDiv&&!e.parentDiv.rteNode&&(e.parentDiv=this._findRteNode(e.parentDiv)),e.parentDiv&&this._isOpaqueOrBlockNode(e.parentDiv)?(this._rtcScrollPane.blur(),null):e},_handleBlockNodes:function(e,t){var i={line:0,column:1};(e=this._isChildBlockNode(e)?e.parentElement:e).setAttribute("contenteditable",!1);for(var n=0;e&&this._isOpaqueOrBlockNode(e);)e=e.nextElementSibling,n++;return i.line=t.line+n,i},_getParent:function(e){return{parentDiv:this._findParentDiv(e),parentNode:e}},getParentDivInfo:function(){const e=this._rtcScrollPane.ownerDocument.getSelection(),t=e.anchorOffset;let i,n=!0;e.anchorNode&&(0!==e.anchorNode.childNodes.length&&c.isInType(this._cursor.getNode(),h)?(i=e.anchorNode.childNodes[0],n=!1):i=e.anchorNode.parentNode);const o=this._getNativeLineColumnBasedOnNodeType(i),r=this._getParent(i);return{selection:e,selectionOffset:t,parentNode:r.parentNode,adjustColumn:n,nativeCursorLineColumn:o,parentDiv:r.parentDiv}},_getNativeLineColumnBasedOnNodeType:function(e){const t=this._view.getCoordinateForDomNode(e);let i=this._view.getPositionFromCoordinate(t).getLineColumn(),n=this._findRteNode(e);return n&&n.rteNode&&c.isInType(n.rteNode,p)&&(i.column=n.rteNode.offsetInContainer()+1),i},handleRangeSelection:function(e){let t=this.getLineColumnFromSelection(e);this._cursor.hasSelection()&&this._cursor.isFileEndSelected()||this._cursor.setSelectionLineColumn(t.startLine,t.startColumn,t.endLine,t.endColumn),window._caretLine=t.startLine-1,window._caretColumn=t.endColumn},getLineColumnFromSelection:function(e){var t=e.anchorNode.parentNode,i=this._view.getCoordinateForDomNode(t),n=this._view.getLineColumnFromCoordinate(i),o=e.focusNode.parentNode,r=this._view.getCoordinateForDomNode(o),a=this._view.getLineColumnFromCoordinate(r);return{startLine:n.line,endLine:a.line,startColumn:n.column+e.anchorOffset,endColumn:a.column+e.focusOffset}},_handleNativeSelectionChange:function(e){const t=this._cursor.getLineColumn().line,i=this._cursor.getLineColumn().column;if(this._backspaceLineColumn&&this._backspaceLineColumn.line===t&&this._backspaceLineColumn.column===i&&(this._isBackspaceDeletion=!0),!this._manualSelectionTrigger){this._margin.setAttribute("contenteditable",!0);var n=this.getParentDivInfo(),o=n.selection,r=n.selectionOffset,a=n.parentNode,s=n.adjustColumn,l=n.nativeCursorLineColumn,c=n.parentDiv;if(this._isBackspaceDeletion)return this._backspaceLineColumn.line!==l.line&&this._syncNativeCursorWithCaret(t,i),this._isBackspaceDeletion=!1,void(this._backspaceLineColumn={});if(!c||-1==c.className.indexOf("scrollPane")){var u=this._cursor.getNode();if(u&&d.isLiveAppInlineNode(u)){var h=u.getWidget().domNode;if(!a||h.contains(a))return}if(s&&c&&c.getAttribute("class")&&-1!==c.getAttribute("class").indexOf("paragraphNode")&&(-1!==c.getAttribute("class").indexOf("paragraphNode")||-1!==c.getAttribute("class").indexOf("wrappable"))&&"span"===a.nodeName.toLowerCase()&&(l.column=this._getCursorColumn(a,c)),"Caret"===o.type){if(c&&this._isOpaqueOrBlockNode(c)){var p=this._handleBlockNodes(c,l,r);l.line=p.line,l.column=p.column,r=0}if(this.onSelectionChange(e),this.selectionChangeHandled)return void(this.selectionChangeHandled=!1);this._view.scrollNearestVisibleLineToPercent(l.line,10),this._cursor.showSelection(),this._cursor.setLineColumn(l.line,l.column+r,!0),this._cursor.hideSelection(),c&&this._isOpaqueOrBlockNode(c)&&this._syncNativeCursorWithCaret(l.line,l.column+r),window._caretLine=l.line,window._caretColumn=l.column}else"Range"===o.type&&this.handleRangeSelection(o);if(!c||"mwtextnode"!==c.className.toLowerCase()){var f=this._richText.getFormatAndStyle();this._touchService.isIphone()||this._touchService.isAndroidPhoneDevice()||(this._isLineNode(c)?(this._compactToolstrip.enableCodeButtons(!0),this._compactToolstrip.enableRichTextButtons(!1)):(this._compactToolstrip.enableRichTextButtons(!0),this._compactToolstrip.updateToggleButtonState({bold:f.bold,italic:f.italic,monospace:f.monospace,underline:f.underline}),this._compactToolstrip.enableCodeButtons(!1)))}}}},_findRteNode:function(e){for(;e&&!e.rteNode;)e=e.parentNode;return e},_isLineNode:function(e){for(;e;){if(e.className&&(-1!=e.className.indexOf("lineNode")||-1!=e.className.indexOf("inlineWrapper")))return!0;e=e.parentNode}return!1},_isOpaqueOrBlockNode:function(e){return this._isContainerBlockNode(e)||this._isChildBlockNode(e)},_isContainerBlockNode:function(e){return-1!=e.className.indexOf("CodeExampleBlock")},_isChildBlockNode:function(e){return-1!=e.className.indexOf("CodeExampleLine")},_getCursorColumn:function(e,t){var i=1;e.parentNode&&e.parentNode.setAttribute("selected",!0);for(var n=0;n<t.children.length;n++){var o=t.children[n];if("hyperlinkNode"!==o.getAttribute("class")&&"equationNode"!==o.getAttribute("class")||(o=o.children[0]),o.hasAttribute("selected"))return o.removeAttribute("selected"),i;i+=o.textContent.length}},_findParentDiv:function(e){if(null!=e)return!e.nodeName||"div"!==e.nodeName.toLowerCase()&&"h2"!==e.nodeName.toLowerCase()&&"h1"!==e.nodeName.toLowerCase()?this._findParentDiv(e.parentNode):e},_handleSelectStart:function(e){e.target===this._rtcScrollPane&&(this._cursor.selectAll(),this._drawNativeSelection(),e.preventDefault(),e.stopPropagation())},_handleNativeCut:function(e){"text"!==e.target.type&&"textarea"!==e.target.type&&(this._actionService.updateAction("rtc_cut",{enabled:!0}),this._cutCopyPaste._cut(),this._touchService.isIosTouchDevice()&&this._clipboard.getCopyPasteHandlers().cut(e),e.preventDefault())},_handleCopy:function(e){"text"!==e.target.type&&"textarea"!==e.target.type&&(this._actionService.updateAction("rtc_copy",{enabled:!0}),this._cutCopyPaste._copy(),this._touchService.isIosTouchDevice()&&this._clipboard.getCopyPasteHandlers().copy(e),e.preventDefault())},_handlePaste:function(e){"text"!==e.target.type&&"textarea"!==e.target.type&&(this._actionService.updateAction("rtc_paste",{enabled:!0}),this._cutCopyPaste._paste(),this._touchService.isIosTouchDevice()&&this._clipboard.getCopyPasteHandlers().paste(e),this._syncNativeCursorWithCaret(this._cursor.getLineColumn().line,this._cursor.getLineColumn().column),e.preventDefault())},_syncNativeCursorWithCaret:function(e,t){if(this.onNativeCaretSync(),this._shouldNativeCursorSync){if(i.place(this._mobileKeyHandler.getKeyCapture(),this._domNode),!(e<=0||t<=0)){this._manualSelectionTrigger=!0;var n=document.getSelection(),o=document.createRange(),r=t-1,a=this._view.getNodeBox(this._internalDocument.getLineNode(e-1));if(a){for(var s,l,c=a.textContent.length,d=0;d<a.children.length;d++){if(0===a.children[d].textContent.length){s=a.children[d],l=0;break}var u,h=a.children[d].textContent.length;if(a.children[d].rteNode||(a.children[d]=this._findRteNode(a.children[d])),this.setSyncNode(a.children[d].rteNode),this.onSyncOpaqueNodeOffset(),this._opaqueNodeOffset>0&&(h-=this._opaqueNodeOffset),!(r>h)){l=(s=(u=this._getContainerAtColumn(a.children[d],r,h)).containerNode)&&s.textContent&&1===s.textContent.length&&0===u.containerEndIndex?r:r-(u.containerEndIndex-s.textContent.length);break}r-=h,-1!==a.children[d].getAttribute("class").indexOf("RTClistItem")&&(r-=1),s=(u=this._getContainerAtColumn(a.children[d],r,c)).containerNode,l=h}l<0?l=0:l>s.textContent.length&&(l=s.textContent.length),o.setStart(s,l),o.setEnd(s,l),n.removeAllRanges(),n.addRange(o),this._manualSelectionTrigger=!1}else this._manualSelectionTrigger=!1}}else this._shouldNativeCursorSync=!0},_getContainerAtColumn:function(e,t,i){for(var n,o=0,r=0;r<e.children.length;r++)if(t>i&&(n=this._getTextFromContainer(e.children[r])),t<=(o+=e.children[r].textContent.length)){n=this._getTextFromContainer(e.children[r]);break}return{containerNode:n,containerEndIndex:o}},_getTextFromContainer:function(e){for(;e.childNodes[0];)e=e.childNodes[0];return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4464)],o=i.dj.d(n,(e,t,i)=>class extends t{requires(){return{isApplicable:["rtc.integration.touchmode","rtc.touch.service"],createInstance:["rtc.view","rtc.cursor","rtc.touch.imeinput","rtc.scrollpane","rtc.actionservice","rtc.cutcopypaste","rtc.keyhandler","rtc.focusservice"]}}isApplicable(e,t){return e&&t.isAndroidTouchDevice()}createInstance(){return new i(...arguments)}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(208),i(206),i(228),i(207),i(477),i(527),i(933),i(1114)],o=i.dj.d(n,(e,t,i,n,o,r,a,s,l,c,d)=>class extends a{constructor(e,t,i,n,o,a,l,c){super(),this._view=e,this._cursor=t,this._touchImeInputHandler=i,this._rtcScrollPane=n,this._actionService=o,this._cutCopyPasteService=a,this._touchKeyHandler=l,this._focusService=c,this._gestureDetector=new s(e.getDomtarget()),this._eventSubscriptions(),r.set(this._rtcScrollPane.parentNode,"contentEditable",!0)}_eventSubscriptions(){this.own(o(this._rtcScrollPane.ownerDocument,"selectstart",this._handleSelectAll.bind(this)));const e=l.tap({options:{pointerTypes:[c.TOUCH],numTaps:2},callbacks:{recognized:t.hitch(this,(function(e,i){this._handleTapGesture(e.srcEvent,i,t.hitch(this,"_onDoubleTap"))}))}}),i=l.tap({options:{pointerTypes:[c.TOUCH],numTaps:1},callbacks:{recognized:t.hitch(this,(function(e,i){this._handleTapGesture(e.srcEvent,i,t.hitch(this,"_onTap"))}))}});this._gestureDetector.add([e,i]),this.own(o(this._rtcScrollPane.ownerDocument,"cut",this._handleCut.bind(this))),this.own(o(this._rtcScrollPane.ownerDocument,"copy",this._handleCopy.bind(this))),this.own(o(this._rtcScrollPane.ownerDocument,"paste",this._handlePaste.bind(this)))}_handleTapGesture(e,t,i){i(e,t)}_onTap(e){if(this._cursor.showSelection(),this._touchImeInputHandler.hasCompositionStarted()){const e=new Event("compositionend");this._touchKeyHandler.keyCapture.dispatchEvent(e)}this._cursor.resetAction(),this._cursor.setCursorToEvent(e)}_onDoubleTap(){this._cursor.selectWordUnderCursor(),this._drawNativeSelection()}_handleSelectAll(e){e.target.children&&e.target.children.length>0&&e.target.children[0]===this._rtcScrollPane&&(this._cursor.selectAll(),this._drawNativeSelection(),e.preventDefault())}_drawNativeSelection(){const e=this._cursor.getSelection();if(e){const t=e.getStartPosition().getNode(),i=e.getEndPosition().getNode(),n=e.getStartPosition().getOffset(),o=e.getEndPosition().getOffset();setTimeout(function(){d.drawNativeSelection(this._view,t,i,n,o),this._rtcScrollPane.focus()}.bind(this),0)}}_handleCut(e){d.setRTCSelection(this._view,this._cursor,this._rtcScrollPane),this._actionService.updateAction("rtc_cut",{enabled:!0}),this._cutCopyPasteService._cut(),d.moveKeyCapture(this._view,this._cursor,this._touchKeyHandler),e.preventDefault()}_handleCopy(e){d.setRTCSelection(this._view,this._cursor,this._rtcScrollPane),this._actionService.updateAction("rtc_copy",{enabled:!0}),this._cutCopyPasteService._copy(),e.preventDefault()}_handlePaste(e){this._actionService.updateAction("rtc_paste",{enabled:!0}),this._cutCopyPasteService._paste(),d.moveKeyCapture(this._view,this._cursor,this._touchKeyHandler),e.preventDefault()}},e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1125),i(675),i(526),i(1426),i(1425)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e.addDomListener,a=e.preventDefault,s=e.stopPropagation,l=o.getActiveImplementations,c=o.getImplementationForEvent,d=o.addListenersToRemovable,u=o.updateLastTouch,h=o.isCompatibilityEvent,p=l(),f=null;return{fromNode:function(e,o){var l=n(),g=n(),m=n(),_=n(),v=n(),b=n(),y=e.ownerDocument,C=[],T=[],E=i(),S=function(e){var t=e;return f=u(e,f),h(e,f)&&(t=null),t},w=function(i){E.emit(t.createFromPointers(C,i,e))},I=function(e){(e=S(e))&&(c(e).addEventToPointers(C,e),w(e))},A=function(e){if(e=S(e)){var t=c(e);t.addEventToPointers(C,e),w(e),t.removeEventFromPointers(C,e),0===C.length&&g.remove()}},x=function(e){if(e=S(e)){var t=c(e);t&&t.addEventToPointers(C,e),g.remove(),w(e),C=[]}},N=function(i){(i=S(i))&&0===i.buttons&&(T=[i],function(i){E.emit(t.createFromPointers(T,i,e))}(i))};return l=d(p,l,e,{down:function(t){(t=S(t))&&(c(t).addEventToPointers(C,t),g=d(p,g,y,{move:I,up:A,cancel:x},!0),l.own(r(e,"dragstart",x,!1)),l.own(r(e,"drag",x,!1)),l.own(r(e,"dragend",x,!1)),w(t))}},!1),{EVENT_SET:"pointers",subscribe:E.subscribe,preventFocus:function(){m.remove(),m=d(p,m,e,{down:a},!1)},allowFocus:function(){m.remove()},stopPropagation:function(){_.remove(),_=d(p,_,e,{down:s,move:s,up:s},!1)},allowPropagation:function(){_.remove()},preventDefault:function(){v.remove(),v=d(p,v,e,{down:a,move:a,up:a},!1)},allowDefault:function(){v.remove()},clearInput:function(){g.remove(),C=[]},addHoverListeners:function(){return b.remove(),b=d(p,b,e,{move:N},!1)},destroy:function(){l.remove(),g.remove(),m.remove(),_.remove(),v.remove(),b.remove()}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{DOWN:"down",MOVE:"move",UP:"up",CANCEL:"cancel"}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){var e=function(e,t){var i=void 0,n=-1;for(i=0;i<e.length;i++)e[i].pointerId===t.pointerId&&(n=i);return-1===n&&(n=e.length),n};return{type:"pointer",down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel",addEventToPointers:function(t,i){t[e(t,i)]=i,i.pointerType||(i.pointerType="mouse")},removeEventFromPointers:function(t,i){var n=e(t,i);t.splice(n,1)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){var e=function(e,t){var i=void 0,n=-1;for(i=0;i<e.length;i++)e[i].identifier===t.identifier&&(n=i);return-1===n&&(n=e.length),n};return{type:"touch",down:"touchstart",move:"touchmove",up:"touchend",cancel:"touchcancel",addEventToPointers:function(t,i){var n=i.touches,o=i.changedTouches[0];for(var r in n)if(n.hasOwnProperty(r)&&"length"!==r){var a=e(t,n[r]);n[r].pointerId=a+1,t[a]=n[r]}i.pointerType="touch",["pageX","pageY","screenX","screenY","clientX","clientY","target"].forEach((function(e){try{e in i||(i[e]=o[e])}catch(e){}}))},removeEventFromPointers:function(e,t){t.changedTouches;e.splice(0,e.length)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{type:"mouse",down:"mousedown",move:"mousemove",up:"mouseup",cancel:"",addEventToPointers:function(e,t){if(0===t.button||2===t.button){t.pointerId=1,e[0]=t,t.pointerType="mouse"}},removeEventFromPointers:function(e,t){var i=function(e,t){var i=void 0,n=-1;for(i=0;i<e.length;i++)e[i].pointerId===t.pointerId&&(n=i);return-1===n&&(n=e.length),n}(e,t);e.splice(i,1)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1125),i(675),i(526),i(1426)],o=i.dj.d(n,(function(e,t,i,n){var o=e.addDomListener,r=e.preventDefault,a=e.stopPropagation;return{fromNode:function(e,s){var l=n(),c=n(),d=n(),u=i();return l.own(o(e,"wheel",(function(i){u.emit(t.createFromPointers([],i,e))}),!1)),{EVENT_SET:"wheel",subscribe:u.subscribe,stopPropagation:function(){c.remove(),c.own(o(e,"wheel",a,!1))},allowPropagation:function(){c.remove()},preventDefault:function(){d.remove(),d.own(o(e,"wheel",r,!1))},allowDefault:function(){d.remove()},destroy:function(){l.remove()}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(214),i(1426),i(4472),i(825),i(1427),i(933),i(675)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return function(s){var l=n.INACTIVE,c=null,d=t(),u=t(),h=void 0,p=[r.MOUSE,r.TOUCH,r.PEN],f={began:function(e,t){},progress:function(e,t){},recognized:function(e,t){},cancelled:function(e,t){},after:function(e,t){}},g=function(e){var t=!0;if(e.srcEvent&&e.srcEvent.pointerType&&(t=-1!==p.indexOf(e.srcEvent.pointerType)),a.isCancel(e)&&(t=!0),!(h.isPrevented()||o.isWaitingState(l)||o.isDisabledState(l))&&t){(l=function(e){return e===n.RECOGNIZED||e===n.CANCELLED?n.INACTIVE:e}(l))===n.INACTIVE&&u.remove();var i=s.recognize({inputData:e,currentState:l}),r=i.targetState,c=i.actionData;m(r,c)}},m=function(e,t){if(c=null,o.isActiveState(e)&&h.needsToWait()&&(c={targetState:e,actionData:t},e=n.WAITING),l=e,o.isActiveState(l)&&(h.resetPrevented(),h.failThoseWaiting()),o.isInactiveState(l)&&h.allowThoseWaiting(),o.isActiveState(l))try{f[l](t,_)}catch(e){console.error("Exception thrown. Message: "+e.message),e.stack&&console.error("Stack: ",e.stack)}if(o.isEndedState(l))try{f.after()}catch(e){console.error("Exception thrown. Message: "+e.message),e.stack&&console.error("Stack: ",e.stack)}};s.subscribe&&d.own(s.subscribe(g),"unsubscribe");var _={attachInputStream:function(e){var t=!1;if(s.EVENT_SETS.forEach((function(i){i===e.EVENT_SET&&(t=!0)})),!t)return{unsubscribe:function(){}};var i=e.subscribe(g);return d.own(i,"unsubscribe"),i},on:function(i,n){if("string"==typeof i){var o=e.after(f,i,n,!0);return d.own(o),o}var r=i,a=t();for(var s in r)if(r.hasOwnProperty(s)){var l=e.after(f,s,r[s],!0);d.own(l),a.own(l)}return a},onTemp:function(i,n){if("string"==typeof i){var o=e.after(f,i,n,!0);return u.own(o),o}var r=i,a=t();for(var s in r)if(r.hasOwnProperty(s)){var l=e.after(f,s,r[s],!0);u.own(l),a.own(l)}return a},enable:function(){l=n.INACTIVE},disable:function(){l=n.DISABLED},setPointerTypes:function(e){p=e},setOptions:function(e){s.setOptions&&s.setOptions(e)},reset:function(){m(n.INACTIVE),s.reset()},getCoordinator:function(){return h},destroy:function(){u.remove(),d.remove()},attemptProcess:function(e){if(l===n.WAITING&&c){var t=e?n.INACTIVE:c.targetState;m(t,c.actionData)}},isActive:function(){return o.isActiveState(l)},isPossible:function(){return o.isPossibleState(l)||o.isWaitingState(l)}};return h=i(_),_}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return function(e){var t=[],i=[],n=[],o=[];return{prevents:function(i){t.push(i),i.getCoordinator().isPreventedBy(e)},isPreventedBy:function(e){i.push(e)},resetPrevented:function(){t.forEach((function(e){return e.reset()}))},isPrevented:function(){return i.some((function(e){return e.isActive()}))},waitForFailure:function(t){n.push(t),t.getCoordinator().isWaitingFor(e)},isWaitingFor:function(e){o.push(e)},needsToWait:function(){return n.some((function(e){return e.isPossible()}))},failThoseWaiting:function(){o.forEach((function(e){e.reset(),e.attemptProcess(!0)}))},allowThoseWaiting:function(){o.forEach((function(e){e.attemptProcess(!1)}))}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(1127),i(586),i(526),i(676),i(675),i(824),i(1126),i(622),i(825),i(1427),i(2003),i(677)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=i.sequence,f=c.BEGAN,g=c.POSSIBLE,m=c.CANCELLED,_=o.trackInitial,v=o.trackUpdate,b=o.trackFinal,y=o.resetTracker,C=o.setActionData,T=l.createRecognizerData,E=l.markAsNoChange,S=l.markAsCancelled,w=l.markAsProgress,I=l.markAsInactive,A=l.markAsRecognized,x=l.applyIfUndetermined,N=l.applyOnTimeout,L=(l.applyWhenNotSinglePrimary,l.applyOnDown),D=l.applyOnMove,M=l.applyOnUp,P=l.applyIfBegun,O=l.applyIfTargetStateIsComplete,R=l.applyIfActive,k=l.applyIfInactive,F=l.applyIfTargetStateBegun,B=l.applyIfTargetStateIsActive,H=d.hasBegun,V=function(e){return e.internalData.tapCount},j=p(_,(function(e){return V(e).onDown(e.inputData),e}),P(S),x((function(e){return V(e).isTap()?e.targetState=f:H(e)?e.targetState=m:e.targetState=g,e})),F((function(e){return V(e).resetTimers(),e}))),U=p(v,x(P(w)),x(E)),W=p((function(e){return V(e).onUp(e.inputData),e}),x(P(p(b,A))),x(E)),G=p(N(I),x(L((function(e){return void 0!==e.inputData.srcEvent.button&&e.inputData.srcEvent.button!==e.internalData.tapMoveOptions.button&&(e=I(e)),e}))),x(L(j)),x(D(U)),x(M(W)),x(k(I)),x(R(S)),B(C),O(p(y,(function(e){return V(e).reset(),e}))));return function(t){var i=e.mixin({button:0},t||{}),n=new u(i),o=new h;return{EVENT_SETS:["pointers"],setOptions:function(t){i=e.mixin(i,t||{}),n.setOptions(i)},reset:p(n.reset.bind(n),o.reset.bind(o)),subscribe:n.observable.subscribe.bind(n.observable),recognize:function(e){var t=G(T("tapmove",e,{positionTracker:o,tapCount:n,tapMoveOptions:i}));return{targetState:t.targetState,actionData:t.actionData}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(1127),i(586),i(526),i(676),i(675),i(824),i(1126),i(622),i(2003),i(677)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){var u=i.sequence,h=o.trackInitial,p=o.trackUpdate,f=o.trackFinal,g=o.resetTracker,m=o.setActionData,_=l.createRecognizerData,v=l.markAsNoChange,b=l.markAsPossible,y=l.markAsInactive,C=l.markAsRecognized,T=l.applyWhen,E=l.applyIfUndetermined,S=l.applyIfTargetStateIsActive,w=l.applyOnTimeout,I=(l.applyWhenNotSinglePrimary,l.applyOnDown),A=l.applyOnMove,x=l.applyOnUp,N=l.applyIfTargetStateIsComplete,L=function(e){return e.internalData.tapCount},D=u(h,(function(e){return L(e).onDown(e.inputData),e}),E(b)),M=u(p,E(v)),P=u((function(e){return L(e).onUp(e.inputData),e}),E(T((function(e){return L(e).isTap()}),u(f,C))),E(T((function(e){return L(e).isEarlyTap()}),b))),O=u(w(y),E(I((function(e){return void 0!==e.inputData.srcEvent.button&&e.inputData.srcEvent.button!==e.internalData.tapOptions.button&&(e=y(e)),e}))),E(I(D)),E(A(M)),E(x(P)),E(y),S(m),N(u(g,(function(e){return L(e).reset(),e}))));return function(t){var i=e.mixin({button:0},t||{}),n=new c(i),o=new d;return{EVENT_SETS:["pointers"],setOptions:function(t){i=e.mixin(i,t||{}),n.setOptions(i)},reset:u(n.reset.bind(n),o.reset.bind(o)),subscribe:n.observable.subscribe.bind(n.observable),recognize:function(e){var t=O(_("tap",e,{positionTracker:o,tapCount:n,tapOptions:i}));return{targetState:t.targetState,actionData:t.actionData}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(526),i(586),i(676),i(1125),i(675),i(622),i(825),i(677)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=n.trackInitial,d=n.trackFinal,u=n.setActionData,h=o.isAncestorNode,p=i.sequence,f=s.RECOGNIZED,g=s.INACTIVE,m=s.POSSIBLE,_=a.createRecognizerData,v=a.applyWhen,b=a.applyWhenNotSinglePrimary,y=a.applyIfUndetermined,C=a.applyOnDown,T=a.applyOnMove,E=a.applyOnUp,S=a.markAsInactive,w=a.markAsNoChange,I=a.markAsPossible,A=a.applyIfTargetStateIsActive,x=p(v((function(e){var t=e.inputData,i=e.internalData.clickOptions,n=t.srcEvent,o=!1;return void 0!==n.button?o=n.button===i.button:0!==i.button&&(o=!0),o}),p(I,c)),y(S)),N=p(d,(function(e){return e.currentState===m&&function(e){var t=e.inputData;return h(t.srcNode,t.target)}(e)?e.targetState=f:e.targetState=g,e})),L=p(b(S),C(x),T(w),E(N),y(S),A(u));return function(i){var n=t(),o=e.mixin({button:0},i||{}),r=new l;return{EVENT_SETS:["pointers"],reset:r.reset.bind(r),subscribe:n.subscribe.bind(n),recognize:function(e){var t=L(_("click",e,{clickOptions:o,positionTracker:r}));return{targetState:t.targetState,actionData:t.actionData}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(586),i(526),i(622),i(676),i(824),i(825),i(1424),i(677)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=o.trackInitial,d=o.trackUpdate,u=(o.trackFinal,o.resetTracker),h=o.setActionData,p=t.sequence,f=r.computeMagnitude,g=n.createRecognizerData,m=n.markAsNoChange,_=n.markAsPossible,v=n.markAsRecognized,b=n.markAsInactive,y=n.applyIfUndetermined,C=n.applyIfPossible,T=n.applyOnDown,E=n.applyOnMove,S=n.applyWhen,w=n.applyOnUp,I=n.applyIfTargetStateIsActive,A=n.applyIfTargetStateIsComplete,x=s.DIRECTION_NONE,N=p(c,y(_)),L=C(p(d,S((function(e){var t=e.internalData.flickOptions,i=e.internalData.positionTracker.getActionProperties().center.direction,n=e.inputData.pointers.length===t.pointers;return(t.direction===x||t.direction===i)&&n}),m),y(b))),D=C(p(S((function(e){var t=e.internalData.flickOptions,i=e.internalData.positionTracker.getActionProperties(),n=f(i.center.delta),o=f(i.center.velocity);return n>=t.minDistance&&o>t.minVelocity}),v),y(b))),M=p(T(N),E(L),w(D),y(b),I(h),A(u));return function(t){var n=i(),o=new l,r=e.mixin({pointers:1,minDistance:20,direction:x,minVelocity:.3},t||{});return{EVENT_SETS:["pointers"],reset:o.reset.bind(o),subscribe:n.subscribe.bind(n),recognize:function(e){var t=M(g("flick",e,{positionTracker:o,flickOptions:r}));return{targetState:t.targetState,actionData:t.actionData}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(1127),i(586),i(526),i(1424),i(676),i(824),i(622),i(677)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=i.sequence,d=a.computeMagnitude,u=r.trackInitial,h=r.trackUpdate,p=r.trackFinal,f=r.resetTracker,g=r.setActionData,m=s.createRecognizerData,_=s.markAsNoChange,v=s.markAsCancelled,b=s.markAsInactive,y=s.markAsPossible,C=s.markAsBegan,T=s.markAsProgress,E=s.markAsRecognized,S=s.applyIfUndetermined,w=s.applyOnDown,I=s.applyOnMove,A=s.applyIfTargetStateIsActive,x=s.applyIfTargetStateIsComplete,N=s.applyOnUp,L=s.applyWhen,D=s.applyIfPossible,M=s.applyIfActive,P=s.applyIfInactive,O=s.applyIfBegun,R=o.DIRECTION_NONE,k=function(e){var t=e.internalData.panOptions;return e.inputData.pointers.length!==t.pointers},F=c(u,L(k,c(O(E),S(b))),S(O(E)),S(y)),B=c(h,O(L(k,E)),S(c(D(L((function(e){var t=e.internalData.panOptions,i=e.internalData.positionTracker.getActionProperties(),n=d(i.center.delta);return Math.abs(n)>=t.minDistance}),C)),O(T))),S(_)),H=c(p,O(E),S(b)),V=c(w(F),I(B),N(H),S(P(b)),S(M(v)),A(g),x(f));return function(t){var i=n(),o=new l,r=e.mixin({pointers:1,minDistance:20,direction:R},t||{});return{EVENT_SETS:["pointers"],reset:o.reset.bind(o),subscribe:i.subscribe.bind(i),recognize:function(e){var t=V(m("pan",e,{positionTracker:o,panOptions:r}));return{targetState:t.targetState,actionData:t.actionData}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(586),i(526),i(676),i(622),i(677)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=t.sequence,s=n.trackInitial,l=n.trackUpdate,c=n.trackFinal,d=n.resetTracker,u=n.setActionData,h=o.createRecognizerData,p=o.markAsNoChange,f=o.markAsCancelled,g=o.markAsInactive,m=o.markAsPossible,_=o.markAsBegan,v=o.markAsProgress,b=o.markAsRecognized,y=o.applyIfUndetermined,C=o.applyOnDown,T=o.applyOnMove,E=o.applyIfTargetStateIsActive,S=o.applyIfTargetStateIsComplete,w=o.applyOnUp,I=o.applyWhen,A=o.applyIfPossible,x=o.applyIfActive,N=o.applyIfInactive,L=o.applyIfBegun,D=function(e){var t=e.internalData.rotateOptions;return e.inputData.pointers.length!==t.pointers},M=a(s,I(D,a(L(b),y(g))),y(L(b)),y(m)),P=a(l,L(I(D,b)),y(a(A(I((function(e){var t=e.internalData.rotateOptions,i=e.internalData.positionTracker.getActionProperties().angle.delta;return Math.abs(i)>=t.minRotation}),_)),L(v))),y(p)),O=a(c,L(b),y(g)),R=a(C(M),T(P),w(O),y(N(g)),y(x(f)),E(u),S(d));return function(t){var n=i(),o=new r,a=e.mixin({pointers:2,minRotation:20},t||{});return{EVENT_SETS:["pointers"],reset:o.reset.bind(o),subscribe:n.subscribe.bind(n),recognize:function(e){var t=R(h("rotate",e,{positionTracker:o,rotateOptions:a}));return{targetState:t.targetState,actionData:t.actionData}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(204),i(586),i(526),i(676),i(622),i(677)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=t.sequence,s=n.trackInitial,l=n.trackUpdate,c=n.trackFinal,d=n.resetTracker,u=n.setActionData,h=o.createRecognizerData,p=o.markAsNoChange,f=o.markAsCancelled,g=o.markAsInactive,m=o.markAsPossible,_=o.markAsBegan,v=o.markAsProgress,b=o.markAsRecognized,y=o.applyIfUndetermined,C=o.applyOnDown,T=o.applyOnMove,E=o.applyIfTargetStateIsActive,S=o.applyIfTargetStateIsComplete,w=o.applyOnUp,I=o.applyWhen,A=o.applyIfPossible,x=o.applyIfActive,N=o.applyIfInactive,L=o.applyIfBegun,D=function(e){var t=e.internalData.pinchOptions;return e.inputData.pointers.length!==t.pointers},M=a(s,I(D,a(L(b),y(g))),y(L(b)),y(m)),P=a(l,L(I(D,b)),y(a(A(I((function(e){var t=e.internalData.pinchOptions,i=e.internalData.positionTracker.getActionProperties().spread.delta;return Math.abs(i)>=t.minDistance}),_)),L(v))),y(p)),O=a(c,L(b),y(g)),R=a(C(M),T(P),w(O),y(N(g)),y(x(f)),E(u),S(d));return function(t){var n=i(),o=new r,a=e.mixin({pointers:2,minDistance:3},t||{});return{EVENT_SETS:["pointers"],reset:o.reset.bind(o),subscribe:n.subscribe.bind(n),recognize:function(e){var t=R(h("pinch",e,{positionTracker:o,pinchOptions:a}));return{targetState:t.targetState,actionData:t.actionData}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(526),i(586),i(622)],o=i.dj.d(n,(function(e,t,i){var n=t.sequence,o=i.createRecognizerData,r=(i.applyWhen,i.applyIfUndetermined),a=i.markAsInactive,s=i.markAsRecognized,l=i.applyIfTargetStateIsActive,c=n((0,i.applyOnWheel)(s),r(a),l((function(e){return e.actionData={type:e.type,srcEvent:e.inputData.srcEvent},e})));return function(t){var i=e();return{EVENT_SETS:["wheel"],reset:function(){},subscribe:i.subscribe.bind(i),recognize:function(e){var t=c(o("wheel",e,{}));return{targetState:t.targetState,actionData:t.actionData}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(526),i(676),i(586),i(622),i(677)],o=i.dj.d(n,(function(e,t,i,n,o){var r=i.sequence,a=t.trackInitial,s=(t.trackUpdate,t.resetTracker),l=t.setActionData,c=n.createRecognizerData,d=n.applyWhen,u=n.applyIfUndetermined,h=n.markAsInactive,p=n.markAsRecognized,f=n.applyIfTargetStateIsActive,g=r(d((function(e){var t=e.inputData.srcEvent;return t&&0===t.buttons&&("pointermove"===t.type||"mousemove"===t.type)}),r(a,p)),u(h),f(l),s);return function(t){var i=e(),n=new o;return{EVENT_SETS:["pointers"],reset:n.reset.bind(n),subscribe:i.subscribe.bind(i),recognize:function(e){var t=g(c("hover",e,{positionTracker:n}));return{targetState:t.targetState,actionData:t.actionData}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4483)],o=i.dj.d(n,(e,t,i)=>class extends t{isApplicable(e,t){return e&&t.isAndroidTouchDevice()}requires(){return{isApplicable:["rtc.integration.touchmode","rtc.touch.service"],createInstance:["rtc.cursor","rtc.document","rtc.internaldocument","rtc.keyhandler","rtc.shadowtextservice","rtc.view","rtc.view.movehiddenkeycapture"]}}createInstance(){return new i(...arguments)}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(211),i(208),i(206),i(228),i(1128),i(2004),i(249),i(1114),i(283)],o=i.dj.d(n,(e,t,i,n,o,r,a,s,l,c,d,u)=>class extends l{constructor(e,t,i,n,o,r){super(...arguments),this._view=r,this._document=t,this._cursor=e,this._rtcScrollPane=r.getDomtarget(),this._mobileKeyHandler=n,this.shouldHandleClick=!0,this._compositionStarted=!1,this._handleSelection=!1,this._eventSubscriptions()}onKeyCaptureMoved(){}onHandleClick(){}_eventSubscriptions(){this._handlers.push(r(this._rtcScrollPane,"click",this.handleClick.bind(this))),this._handlers.push(r(this._rtcScrollPane.ownerDocument,"beforeinput",this._handlebeforeInput.bind(this))),this._handlers.push(r(this._rtcScrollPane,"keydown",this._handleKeyDown.bind(this))),this._handlers.push(r(this._rtcScrollPane.parentNode,"keydown",this._handleKeyDown.bind(this))),this._handlers.push(o.before(this._mobileKeyHandler,"_handleKeyDown",this._handleNavigationKeys.bind(this))),this._handlers.push(o.after(this._mobileKeyHandler,"onTextInput",this._handleTextInput.bind(this,!0))),this._handlers.push(o.after(this._mobileKeyHandler,"onAfterCompositionstart",this._onAfterCompositionstart.bind(this,!0))),this._handlers.push(o.after(this._document,"insertBreak",this._handleTextInput.bind(this,!0)))}_handleNavigationKeys(e){"ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key?(this._mobileKeyHandler._inputHandler=null,e.preventDefault()):null===this._mobileKeyHandler._inputHandler&&this._mobileKeyHandler.setDefaultInputHandler()}_handleKeyDown(e){if(229===e.keyCode)return;const t=window.getSelection();"Backspace"===e.key?(t.isCollapsed||this._cursor.hasSelection()||d.setRTCSelection(this._view,this._cursor,this._rtcScrollPane),this._document.deleteTextAtCurrentPosition(c.BACKWARD_DELETE),d.moveKeyCapture(this._view,this._cursor,this._mobileKeyHandler),e.preventDefault(),e.stopImmediatePropagation()):t.isCollapsed||this._handleNavigationKeys(e)}_onAfterCompositionstart(){if(this._handleSelection){this._handleSelection=!1;const e=new Event("compositionend");this._mobileKeyHandler.keyCapture.dispatchEvent(e)}}hasCompositionStarted(){return this._compositionStarted}_handlebeforeInput(e){const t=window.getSelection();let i=e.data;t.isCollapsed||(this._handleSelection=!0,d.setRTCSelection(this._view,this._cursor,this._rtcScrollPane),i||(i=""),this._document.insertTextAtCurrentPosition(i),d.moveKeyCapture(this._view,this._cursor,this._mobileKeyHandler),e.preventDefault())}_handleCompositionstart(e){if(this._compositionStarted=!0,this._cursor.isCursorReadOnly())return void(this._keyCapture.value="");this._keyhandler.setInputHandler(t.hitch(this,"_inputHandlerIME")),this._currentText="";const n={text:"",cssClass:"composingInIME",updateCallback:this._handleServiceUpdate.bind(this),caretRightAligned:!0};this._IMEnodeHandle||(this._IMEnodeHandle=this._shadowtextservice.requestTextAfterCursor(n));const o=i.getComputedStyle(this._view.getNodeBox(this._cursor.getNode()));i.set(this._keyCapture,"fontSize",o.fontSize)}_handleCompositionend(e){this._compositionStarted=!1,this._mobileKeyHandler.setInputHandler(this._insertText.bind(this)),this._mobileKeyHandler.handleInput(e,!0),this.onAfterCompositionend()}_insertText(e,t){if(this._mobileKeyHandler.setKeyCaptureValue(""),e.endsWith(s.Types.LF)){const t=e.slice(0,-1);this._document.insertTextAtCurrentPosition(t),this._document.insertBreak()}else this._document.insertTextAtCurrentPosition(e)}_handleTextInput(e){d.moveKeyCapture(this._view,this._cursor,this._mobileKeyHandler)}handleClick(e){this.onHandleClick(),this.shouldHandleClick&&!u.isLiveAppInlineNode(this._cursor.getNode())?d.moveKeyCapture(this._view,this._cursor,this._mobileKeyHandler):this.shouldHandleClick=!0}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4485)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.cursorcontroller","rtc.view","rtc.typocorrection.model"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(253),i(236),i(209),i(207),i(208),i(294)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{_TYPO_FIX_ACTION_ID:"rtc_typo_suggestion_fix",constructor:function(e,t,i,n,o){this._actionService=e,this._contextMenuContributor=t,this._cursorController=i,this._view=n,this._typoSuggestionModel=o;var s=[{id:this._TYPO_FIX_ACTION_ID,enabled:!0,text:"",callback:this._applyFix.bind(this)}];this._actionService.loadActions(s),this._contextMenuContributor.addActionToMap(a.TYPO_CORRECTION,this._TYPO_FIX_ACTION_ID),this.own(r.after(this._contextMenuContributor,"updateActions",this._updateActions.bind(this),!0))},_applyFix:function(){var e=this._getFixHandlerForCursorLine();return n.assert(e,"Typo correction fix being applied with no handler"),e.performFix(),!0},_getFixHandlerForLine:function(e){var t=this._typoSuggestionModel.getAllSuggestionHandlers(),i=null;return t.forEach((function(t){t.isFixForLineNumber(e)&&(i=t)})),i},_updateActions:function(e){this._shouldShowAction(e)?this._updateActionText():this._contextMenuContributor.hideGroup(a.TYPO_CORRECTION)},_updateActionText:function(){var e=this._getFixHandlerForCursorLine().getSuggestion(),n=i.substitute(t.typoCorrectionMenuLabel,[e]);this._actionService.updateAction(this._TYPO_FIX_ACTION_ID,{text:n})},_shouldShowAction:function(e){return!(this._cursorController.hasMultipleCursors()||!this._isCursorInClickedNode(e))&&null!==this._getFixHandlerForCursorLine()},_getFixHandlerForCursorLine:function(){var e=this._cursorController.getCursorPositions()[0].getLine();return this._getFixHandlerForLine(e)},_isCursorInClickedNode:function(e){var t=this._cursorController.getCursors()[0],i=this._view.getNodeBox(t.getNode());return i&&i.contains(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4487),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.document","rtc.embeddedoutputs.model","rtc.typocorrection.typocorrectionservice","rtc.code.sections.model","rtc.typocorrection.typocorrectionhandlerfactory","rtc.typocorrection.model"]}},createInstance:function(e,i,n,o,r,a){return new t(e,i,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(210),i(225),i(207),i(282),i(619)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(r,{constructor:function(e,n,o,r,a,s){this._document=e,this._embeddedOutputsModel=n,this._sectionModel=r,this._handlerFactory=a,this._typoSuggestionModel=s,this.own(i.after(this._embeddedOutputsModel,"onModelUpdated",t.hitch(this,"_handleSuggestions")))},_handleSuggestions:function(){var e=this._embeddedOutputsModel.getOutputs(),t=this._filterErrorOutputs(e);this._clearHandlersForNonExistentOutputs(t);var i=this._findNewSuggestionErrorOutputs(t);this._showSuggestionForErrors(i)},_filterErrorOutputs:function(e){return e.filter((function(e){return e.type===s.OUTPUT_TYPE}))},_clearHandlersForNonExistentOutputs:function(e){var t=e.map((function(e){return e.uid}));this._typoSuggestionModel.getAllSuggestionHandlers().forEach((function(e,i){-1===t.indexOf(i)?this._typoSuggestionModel.destroyAndRemoveHandler(i):e.isSuggestionOutputStale()&&this._typoSuggestionModel.destroyHandler(i)}),this)},_findNewSuggestionErrorOutputs:function(e){var t=[];return e.forEach((function(e){"error"!==e.type||this._containsSuggestion(e.getDomElement())||!this._hasSuggestion(e.identifier)||this._typoSuggestionModel.has(e.uid)||t.push(e)}),this),t},_hasSuggestion:function(e){return e&&e.length>0},_containsSuggestion:function(e){var t=n.contains(e,"typoFixApplied"),i=o(".errorRecoveryDiv",e);return t||0!==i.length},_showSuggestionForErrors:function(e){e.forEach((function(e){var t=this._handlerFactory.createHandler(e);t.handleSuggestion(e.identifier.trim()),this._typoSuggestionModel.set(e.uid,t)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4489)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(282)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(){this._typoSuggestionHandlerStore=i.createMap()},getAllSuggestionHandlers:function(){return this._typoSuggestionHandlerStore},has:function(e){return this._typoSuggestionHandlerStore.has(e)},set:function(e,t){this._typoSuggestionHandlerStore.set(e,t)},get:function(e){return this._typoSuggestionHandlerStore.get(e)},remove:function(e){this._typoSuggestionHandlerStore.delete(e)},destroyHandler:function(e){this._typoSuggestionHandlerStore.get(e).destroy()},destroyAndRemoveHandler:function(e){this.destroyHandler(e),this.remove(e)},destroy:function(){this.inherited(arguments),this._typoSuggestionHandlerStore.forEach((function(e){e.destroy()})),this._typoSuggestionHandlerStore.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4491),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.linenumberservice","rtc.cursor","rtc.embeddedoutputs.model","rtc.code.codechange","rtc.code.sections.model","rtc.embeddedoutputs","rtc.cursorcontroller","rtc.focusservice","language.common.syntaxhighlighter.colors"]}},createInstance:function(e,i,n,o,r,a,s,l,c,d,u){var h=l.getEmbeddedOutputsView();return new t(e,i,n,o,r,a,s,h,c,d,u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(4492)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t,i,n,o,r,a,s,l,c,d){this._document=e,this._internalDocument=t,this._lineNumberService=i,this._cursor=n,this._embeddedOutputsModel=o,this._codeChangeService=r,this._sectionModel=a,this._embeddedOutputsView=s,this._cursorController=l,this._focusService=c,this._syntaxHighlightingColors=d},createHandler:function(e){return new o(this._document,this._internalDocument,this._lineNumberService,this._cursor,this._embeddedOutputsModel,this._codeChangeService,this._sectionModel,e,this._embeddedOutputsView,this._cursorController,this._focusService,this._syntaxHighlightingColors)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(208),i(210),i(211),i(206),i(230),i(477),i(527),i(234),i(4493),i(4495)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(s,{_STALE_SUGGESTION_OUTPUT_CLASS:"typoFixApplied",_STALE_OUTPUT_CLASS:"stale_output",constructor:function(e,t,i,n,o,r,a,s,l,c,d,u){this._domElement=s.getDomElement(),this._document=e,this._internalDocument=t,this._lineNumberService=i,this._cursor=n,this._embeddedOutputsModel=o,this._codeChangeService=r,this._output=s,this._sectionModel=a,this._stackLineNumberLivePosition=s.stackLineNumber,this._embeddedOutputsView=l,this._cursorController=c,this._focusService=d,this._syntaxHighlightingColors=u,this._didYouMeanContainer=null,this._permanentlyDisabled=!1},isFixForLineNumber:function(e){return!(this._stackLineNumberLivePosition.getLine()!==e||this._isFixButtonDisabled()&&this._permanentlyDisabled)},handleSuggestion:function(e){this._suggestion=e;var t=new h(this._document,this._internalDocument,this._lineNumberService,this._suggestion,this._stackLineNumberLivePosition);this.initFixButton(t)},getSuggestion:function(){return this._suggestion},initFixButton:function(e){var t=this._domElement,o=u.getContent(e.getSuggestion(),this._syntaxHighlightingColors);this._didYouMeanContainer=o.didYouMeanContainer,this._suggestionDiv=o.suggestionDiv,this._fixButton=o.fixButton,this._fixObject=e,this._createGestureHandlerForDownEvent(this._fixButton),r.place(this._didYouMeanContainer,t),this._fixButtonHandler=a.pausable(this._fixButton,"click",i.hitch(this,"_fixButtonClick")),this.own(n.after(this._internalDocument,"readOnlyChanged",i.hitch(this,"_handleReadOnlyDocumentChange"),!0)),this.own(n.after(this._codeChangeService,"onCodeChanged",i.hitch(this,"_handleCodeChange"),!0)),this.own(n.after(this._codeChangeService,"onCodeReadOnlyChanged",i.hitch(this,"_handleReadyOnlyLineChange"),!0)),this.own(n.after(this._stackLineNumberLivePosition,"onChange",i.hitch(this,"_handleLivePositionChange"))),this.own(n.after(this._syntaxHighlightingColors,"onColorsUpdated",i.hitch(this,"_handleSyntaxHighlightingColorChange"))),this._updateFixButtonInitialState(),this._embeddedOutputsView.outputChanged()},_createGestureHandlerForDownEvent:function(e){var i=new l(e,[c.tapmove({options:{numTaps:0},callbacks:{began:function(e){var i=e.srcEvent;t.stop(i)}}})]);this.own(i)},_updateFixButtonInitialState:function(){this._stackLineNumberLivePosition.getNode().isReadOnly()&&this._disableFixButton()},_handleReadOnlyDocumentChange:function(e){e?this._disableFixButton():this._reEnableFixButton()},_handleCodeChange:function(e){if(!this._ignoreCodeLineChange(e)){var t=this._sectionModel.getSectionNumberForLine(this._stackLineNumberLivePosition.line);e.changedCodeLineNodes.forEach((function(e){t===this._sectionModel.getSectionNumberForNode(e)&&(this._permanentlyDisabled=!0,this._disableFixButton())}),this),e.formerCodeLines.concat(e.deletedCodeLines).forEach((function(e){t===this._sectionModel.getSectionNumberForLine(e)&&(this._permanentlyDisabled=!0,this._disableFixButton())}),this)}},_handleReadyOnlyLineChange:function(e){if(!this._ignoreCodeLineChange(e)){var t=this._stackLineNumberLivePosition.getNode().rootContainer();e.changedCodeLineNodes.forEach((function(e){t===e&&(e.isReadOnly()?this._disableFixButton():this._reEnableFixButton())}),this)}},_ignoreCodeLineChange:function(e){return!this._output.codeLinePositions||0===this._output.codeLinePositions.length||!e},_handleLivePositionChange:function(){d.isCodeContainer(this._stackLineNumberLivePosition.getNode())||this._disableFixButton()},_disableFixButton:function(){o.add(this._fixButton,"disabled"),this._fixButtonHandler.pause()},_reEnableFixButton:function(){this._permanentlyDisabled||(o.remove(this._fixButton,"disabled"),this._fixButtonHandler.resume())},_isFixButtonDisabled:function(){return o.contains(this._fixButton,"disabled")},_handleSyntaxHighlightingColorChange:function(){u.updateSuggestionSyntaxHighlightColors(this._suggestionDiv,this._suggestion,this._syntaxHighlightingColors)},_fixButtonClick:function(e){this.performFix(),e.stopPropagation(),this._focusService.setFocus()},performFix:function(){this._cursorController.holdCursors();var e=this._fixObject.performFix();this._cursorController.resetCursors(),r.destroy(this._didYouMeanContainer),this._cursorController.clearSelection(),this._cursor.setSelectionLineColumn(e.startLine,e.startColumn,e.endLine,e.endColumn),o.add(this._domElement,this._STALE_SUGGESTION_OUTPUT_CLASS),this._embeddedOutputsModel.onModelUpdated(),this._embeddedOutputsView.outputChanged()},isSuggestionOutputStale:function(){return o.contains(this._domElement,this._STALE_OUTPUT_CLASS)},destroy:function(){this.inherited(arguments),r.destroy(this._didYouMeanContainer)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(236),i(253),i(247),i(4494)],o=i.dj.d(n,(function(e,t,i,n,o){return{getContent:function(t,n){var r=e.create("div",{className:"errorRecoveryDiv doNotExport"});r.setAttribute("data-testid","errorRecoveryDiv"),e.create("div",{textContent:i.didYouMeanText},r);var a=o.getSyntaxHighlightedHTMLStringForText(t,n),s=e.create("div",{className:"suggestion",innerHTML:a},r),l=e.create("button",{className:"codeFixBtn",textContent:i.fixButtonLabel},r);return l.setAttribute("data-testid","typoFixButton"),{didYouMeanContainer:r,suggestionDiv:s,fixButton:l}},updateSuggestionSyntaxHighlightColors:function(e,t,i){var n=o.getSyntaxHighlightedHTMLStringForText(t,i);e.innerHTML=n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(247),i(1422),i(927)],o=i.dj.d(n,(function(e,t,i){return{getSyntaxHighlightedHTMLStringForText:function(e,t){var n=new i;n.initializeLines(e);var o=n.getTokenMap()[0];return n.destroy(),this._getSyntaxHighlightedHTMLString(e,o,t)},getSyntaxHighlightedHTMLStringForTokensOnLine:function(e,t){return this._getSyntaxHighlightedHTMLString(this._getTextFromTokens(e),e,t)},_getTextFromTokens:function(e){var t="";return e.forEach((function(e){t+=e.getValue()})),t},_getSyntaxHighlightedHTMLString:function(i,n,o){for(var r=i,a=t.processTokens([n],0,0,o)[0],s=a.length-1;s>=0;s-=3){var l=a[s-2],c=a[s-1],d=a[s],u=r.substring(l,c),h="<span style='color:"+d+";'>"+(u=e.escapeHtml(u))+"</span>";r=r.substring(0,l)+h+r.substring(c)}return r}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(209)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,t,i,n,o){this._document=e,this._internalDocument=t,this._lineNumberService=i,this._suggestion=n,this._stackLineNumberLivePosition=o},getSuggestion:function(){return this._suggestion},_getCodeLineNumberFromStackLivePosition:function(){return t.getCodeLineNumberFromPosition(this._internalDocument,this._stackLineNumberLivePosition)},_getUpdatedDocLineNumber:function(){return this._determineLineNumber(this._getCodeLineNumberFromStackLivePosition())},performFix:function(){var e=this._document.getLineText(this._getUpdatedDocLineNumber()),t=e.search(/\S/)+1,i=e.length+1;return this._document.replaceText(this._suggestion,this._getUpdatedDocLineNumber(),t,this._getUpdatedDocLineNumber(),i),i=t+this._suggestion.length,{startLine:this._getUpdatedDocLineNumber(),endLine:this._getUpdatedDocLineNumber(),startColumn:t,endColumn:i}},_determineLineNumber:function(e){return this._lineNumberService.getLineNumberFromCodeLineNumber(e)+1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4497)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.verticalborder.plugin","rtc.settings.service"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t){this._verticalBorder=e,this._getSettingPromises=[],this._getSettingPromises.push(t.getSetting("matlab.editor.displaysettings.linelimit.LineColumn").then(function(e){this._verticalBorderSettingChanged(e)}.bind(this),(function(){}))),this._getSettingPromises.push(t.getSetting("matlab.editor.displaysettings.linelimit.ShowLine").then(function(e){this._verticalBorder.updateLineVisibility(e)}.bind(this),(function(){}))),this._getSettingPromises.push(t.getSetting("matlab.editor.displaysettings.linelimit.LineColor").then(function(e){this._verticalBorder.updateLineColor(e)}.bind(this),(function(){}))),this.own(t.listenToSettingChange("matlab.editor.displaysettings.linelimit.ShowLine",this._verticalBorder.updateLineVisibility.bind(this._verticalBorder))),this.own(t.listenToSettingChange("matlab.editor.displaysettings.linelimit.LineColumn",this._verticalBorderSettingChanged.bind(this))),this.own(t.listenToSettingChange("matlab.editor.displaysettings.linelimit.LineColor",this._verticalBorder.updateLineColor.bind(this._verticalBorder)))},_verticalBorderSettingChanged:function(e){this._verticalBorder.updateLinePlacement(e)},destroy:function(){this.inherited(arguments),this._getSettingPromises.forEach((function(e){e.isFulfilled()||e.cancel()})),this._getSettingPromises=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4499)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.view.viewportopenedservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(211),i(207),i(1351),i(373)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{constructor:function(e,t){this._view=e,this._viewportService=t,this._handles=[],this._layerDiv=i.create("div",{className:"verticalBorderLayer"}),this._view.addLayer(this._layerDiv)},_enable:function(){this._borderDiv=i.create("div",{className:"verticalBorder"}),this._viewportService.whenViewportOpened(function(){this._updateBorderHeight(),this._updateBorderLeft(),this.updateLineColor(this._lineColor),this._borderDiv.style.width="1px",this._layerDiv.appendChild(this._borderDiv),this._handles.push(t.after(this._view,"onViewUpdated",this._handleViewUpdated.bind(this),!0)),this._handles.push(t.after(this._view,"onResize",this._updateBorderHeight.bind(this),!0))}.bind(this))},_disable:function(){i.destroy(this._borderDiv),this._borderDiv=null,this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},updateLinePlacement:function(e){e&&(this._placement=e,this._borderDiv&&this._updateBorderLeft())},updateLineColor:function(e){e&&(this._lineColor=e,this._borderDiv&&(this._borderDiv.style.backgroundColor=o.generateRgbaCssString(e[0],e[1],e[2],1)))},updateLineVisibility:function(e){e&&!this._borderDiv?this._enable():this._disable()},_handleViewUpdated:function(e){(r.hasStyleChangeSource(e)||r.hasHorizontalScrollEvent(e)||r.hasClientOrOffsetWidthChange(e))&&this._updateBorderLeft(),r.hasClientOrOffsetHeightChange(e)&&this._updateBorderHeight()},_updateBorderLeft:function(){const e=this._view.getCoordinateForLineColumn(1,1),t=this._view.getDomtarget().getBoundingClientRect(),i=t.left+e.x-this._view.getScrollLeft(),n=this._view.getFirstVisibleLineNumber(),o=this._view.getCharacterWidthForLine(n)*this._placement+i;t.left<o&&o<t.left+this._view.getClientWidth()?this._borderDiv.style.left=o+"px":this._borderDiv.style.left="-1px"},_updateBorderHeight:function(){this._borderDiv.style.height=this._view.getClientHeight()+"px"},destroy:function(){this._disable(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4501)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(207),i(282),i(333)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(){this._paragraphHostingMap=n.createMap()},set:function(e,t){e.isRootContainer()&&this._paragraphHostingMap.set(e,t)},get:function(e){return this._paragraphHostingMap.get(e)},getHostingNode:function(e){var t=this._getNodeRangePairs();if(0===t.length)return null;var i=null;return t.some((function(t){if(o.isParagraphNodeInRange(e,t.range))return i=t.node,!0}),this),i},_getNodeRangePairs:function(){var e=[];return this._paragraphHostingMap.forEach((function(t,i){e.push({node:i,range:t})})),e},getHostedNodes:function(e){var t=this.get(e);return t?o.paragraphNodesInRange(t):null},delete:function(e){this._paragraphHostingMap.delete(e)},destroy:function(){this.reset(),this._paragraphHostingMap=null},reset:function(){this._paragraphHostingMap.forEach((function(e){e.destroy()})),this._paragraphHostingMap.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1429)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4504)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel","rtc.scrollpane"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(1429)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{groupingType:"containment",_BLOCK_POSTFIX:"Block",_BLOCK_CLASS:"SectionBlock containment",constructor:function(e,t){this._viewModel=e,this._domTarget=t},getOperationsForLayout:function(e,t,i){return this._isApplicable(t)?this._hasToRedrawNeighboringBlocks(t,i)?this._redrawNeighboringBlocks(e,t):this._drawAroundSiblingBlocks(e,t):this._wrapDomNodeIntoBlock(e,t,i)},_hasToRedrawNeighboringBlocks:function(e,t){if(!this._domTarget.contains(t))return!1;var i=this._getBlock(e.previousSibling()),n=this._getBlock(e.nextSibling());return!this._isBlockElement(i)||!this._isBlockElement(n)||i.nextElementSibling!==n},_redrawNeighboringBlocks:function(e,t){var i={};i.nodeToPlace=e;var n=t.previousSibling(),o=t.nextSibling(),r=this._getNodesToRedraw(n,!0),a=this._getNodesToRedraw(o,!1);if(0===r.length&&0===a.length)return i;i.prevNodes=r,i.nextNodes=a;var s=r.length>0&&this._getBlockFromSiblingNodes(r),l=a.length>0&&this._getBlockFromSiblingNodes(a);return i.nodeToPlaceRefNode=s||l,i.nodeToPlaceRefPos=s?"after":"before",i.nodesToRemove=[],s&&i.nodesToRemove.push(s),l&&i.nodesToRemove.push(l),i},_getBlockFromSiblingNodes:function(e){var t=null;return e.some((function(e){var i=this._getBlock(e);if(i)return t=i,!0}),this),t},_drawAroundSiblingBlocks:function(e,t){var i=this._getBlock(t.previousSibling());if(i)return{nodeToPlace:e,nodeToPlaceRefNode:i,nodeToPlaceRefPos:"after"};var n=this._getBlock(t.nextSibling());return n?{nodeToPlace:e,nodeToPlaceRefNode:n,nodeToPlaceRefPos:"before"}:null},_wrapDomNodeIntoBlock:function(e,t,n){var o={};if(t.isRootContainer()&&!this._hasSiblingBlockReference(t,n)){var r=this._createBlock();i.place(e,r),o.nodeToPlace=r,o.mergeWithSiblingBlock=!0}return o},_hasSiblingBlockReference:function(e,t){var i={currentNode:e,iterator:"previousSibling"},n={currentNode:e,iterator:"nextSibling"};do{if((i=i&&this._stepSearchForSiblingBlockReference(e,i))&&i.found)return!0;if((n=n&&this._stepSearchForSiblingBlockReference(e,n))&&n.found)return!0;if(!this._domTarget.contains(t))break}while(i||n);return!1},_stepSearchForSiblingBlockReference:function(e,t){var i=t.currentNode[t.iterator]();if(!i)return null;if(i.groupingType===this.groupingType&&this._viewModel.getNodeBox(i)&&this._viewModel.getNodeBox(i).parentElement)return null;var n=this._getBlock(i);return n&&n.parentElement&&(t.found=!0),t.currentNode=i,t},getOperationsForRemove:function(e,t){return this._isApplicable(e)?this._removeAndMerge(e):this._removeBlockIfEmpty(e,t)},_removeAndMerge:function(e){var t=this._getDomNode(e),i=this._getSiblingBlocks(t);return{nodeToMerge:i?[i]:null,nodeToRemove:t}},_getSiblingBlocks:function(e){var t=e.previousElementSibling,i=e.nextElementSibling;return this._isBlockElement(t)&&this._isBlockElement(i)?[t,i]:null},_removeBlockIfEmpty:function(e,t){var i=this._getBlock(e);return i&&1===i.childElementCount&&this._hasElementInBlock(t,i)?{nodeToRemove:i}:null},_hasElementInBlock:function(e,t){return e.some((function(e){if(e.parentElement===t)return!0}),this)},getRefDomNode:function(e,t,i){var n=this._getDomNode(t);return n&&n.parentElement?this._isBlockElement(i)?this._getRefDomNodeForBlockObserver(e,t,n):this._getRefDomNodeForNonBlockObserver(e,t,n):null},_getRefDomNodeForBlockObserver:function(e,t,i){var n,o=this._getBlock(t);return o?n=o:this._isApplicable(t)&&(n=i),n?{domNode:n,position:this._getRefPosition(e,t)}:null},_getRefDomNodeForNonBlockObserver:function(e,t,i){if(!this._isApplicable(t))return null;var n=i.previousElementSibling,o=i.nextElementSibling;if(n||o){var r,a,s=e.nextSibling(),l=e.previousSibling();if(t===s){if(this._getBlock(e))r=i,a="before";else if(n){a="last",r=this._getBlock(l)||n}}else if(t===l){if(this._getBlock(e))r=i,a="after";else if(o){a="first",r=this._getBlock(s)||o}}else{var c=this._getRefPosition(e,t);if("after"===c&&this._isBlockElement(o)&&o.hasChildNodes()||"before"===c&&this._isBlockElement(n)&&n.hasChildNodes())return{domNode:null,position:null}}return r?{domNode:r,position:a}:null}},_createBlock:function(){return i.create("div",{class:this._getBlockClass()})},_getBlockClass:function(){return this._BLOCK_CLASS},_getBlock:function(e){if(e){for(var t=this._getDomNode(e);t;){if(this._isBlockElement(t))return t;t=t.parentElement}return null}},_isBlockElement:function(e){return!!e&&t.contains(e,this._BLOCK_CLASS)},_canMergeBlocks:function(e,t){if(!e||!t)return!1;var i=e.className.split(" "),n=t.className.split(" ");return e&&t&&i[0]===n[0]},_canGroupTogether:function(e,t){return t.groupingType!==this.groupingType},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4506)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel","rtc.scrollpane"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(1130),i(1429),i(334),i(662)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{groupingType:"contiguous",_BLOCK_SUFFIX:"Block",_BLOCK_CLASS:"contiguous",constructor:function(e,t){this._viewModel=e,this._domTarget=t},getOperationsForLayout:function(e,t,n,o){var r={};if(r.nodeToPlace=e,this._isApplicable(t)){var s=this._getSiblingBlockReferenceToJoin(t,n);if(s)return r.nodeToPlaceRefNode=s.domNode,r.nodeToPlaceRefPos=s.position,r;var l=this._createBlock(t);i.place(e,l),r.nodeToPlace=l}if(this._domTarget.contains(n)&&t.isRootContainer()&&(t.groupingType===a.BASE||t.groupingType===this.groupingType)){var c=t.previousSibling(),d=t.nextSibling(),u=this._getBlock(c),h=this._getBlock(d);if(this._needsToRedrawBlocks(c,u,d,h,o)){var p=this._getNodesToRedraw(c,!0),f=this._getNodesToRedraw(d,!1);r.prevBlock=this._getBlockByNodes(p),r.nextBlock=this._getBlockByNodes(f)}}return r},_needsToRedrawBlocks:function(e,t,i,o,r){return!(!t&&!o)||(!(!r||!n.isUpdateOperation(r)||r.node.groupingType===this.groupingType)||!(t||o||!this._needsToBreakMergedSiblingBlock(e,i)))},_needsToBreakMergedSiblingBlock:function(e,t){if(!e||!t)return!1;var i=this._getSiblingBlockReference(e,!1);if(!i)return!1;var n=this._getSiblingBlockReference(t,!0);return!!n&&i===n},_getSiblingBlockReference:function(e,t){var i=t?{currentNode:e,iterator:"nextSibling"}:{currentNode:e,iterator:"previousSibling"};do{if((i=i&&this._stepSearchForSiblingBlockReference(e,i))&&i.domNode)return this._getBlock(i.currentNode)}while(i);return null},_getSiblingBlockReferenceToJoin:function(e,t){var i={currentNode:e,iterator:"previousSibling"},n={currentNode:e,iterator:"nextSibling"};do{if((i=i&&this._stepSearchForSiblingBlockReference(e,i))&&i.domNode)return{domNode:i.domNode,position:"after"};if((n=n&&this._stepSearchForSiblingBlockReference(e,n))&&n.domNode)return{domNode:n.domNode,position:"before"};if((!i||!i.currentNode||this._viewModel.getNodeBox(i.currentNode))&&!this._domTarget.contains(t))break}while(i||n);return null},_stepSearchForSiblingBlockReference:function(e,i){var n=i.currentNode[i.iterator]();if(!n)return null;if(n.groupingType!==this.groupingType&&this._viewModel.getNodeBox(n)&&this._viewModel.getNodeBox(n).parentElement)return null;if("LineNode"===e.className&&"LineNode"===n.className&&e.groupingName!==n.groupingName)return null;var o=this._getBlock(n);return o&&o.parentElement&&t.contains(o,this._getBlockClass(e))&&(i.domNode=this._getDomNode(n)),i.currentNode=n,i},_getBlockByNodes:function(e){var t;if(e&&e.length){var i=e.map(this._getDomNode,this),n=i.map((function(e){return e.parentNode})).filter(this._isBlockElement,this);t={container:this._createBlock(e[0]),oldBlockDomNodes:n,childDomNodes:i,childNodes:e}}return t},getOperationsForRemove:function(e,t){return this._isApplicable(e)?this._removeNodeAndBlock(e):this._mergeSiblingBlocks(e)},_removeNodeAndBlock:function(e){var t,i,n=this._getDomNode(e),o={};o.nodeToMerge=[],o.nodeToRemove=n;var r=n.parentElement;return r&&this._isBlockElement(r)&&1===r.childElementCount&&(o.nodeToRemove=r,t=r.previousElementSibling,i=r.nextElementSibling,this._canMergeBlocks(t,i)&&o.nodeToMerge.push([t,i])),o},_mergeSiblingBlocks:function(e){var t=this._getDomNode(e),i={nodeToMerge:[]};i.nodeToRemove=t;var n=t.previousElementSibling,o=t.nextElementSibling;return n&&o&&n.childElementCount&&o.childElementCount&&this._canMergeBlocks(n.lastChild,o.firstChild)&&i.nodeToMerge.push([n.lastChild,o.firstChild]),this._canMergeBlocks(n,o)&&i.nodeToMerge.push([n,o]),i},getRefDomNode:function(e,t,i){if(!this._isApplicable(t))return null;var n=this._getRefPosition(e,t);if(!n)return null;var o,r=this._getDomNode(t);return!this._canGroupTogether(e,t,i,r)||e.nextSibling()!==t&&e.previousSibling()!==t?(o=this._getRefDomNodeFromParentElement(t,r),n=this._getRefPositionForParentOfTarget(n,o,e,r)):o=r,{domNode:o,position:n}},_getRefDomNodeFromParentElement:function(e,t){for(var i=r.getLineage(e,this._viewModel),n=i.length-1;n>=0;n-=1){var o=i[n],a=this._getBlock(o);if(a)return a}return t.parentElement},_getRefPositionForParentOfTarget:function(e,t,i,n){return t.firstChild===t.lastChild||("before"===e&&this._shouldPlaceAfterRefDomNode(t,i,n)?e="after":"after"===e&&this._shouldPlaceBeforeRefDomNode(t,i,n)&&(e="before")),e},_shouldPlaceAfterRefDomNode:function(e,t,i){if(i===e.firstChild)return!1;var n=this._getNodesToRedraw(t.nextSibling(),!1);if(0===n.length)return!1;var o=n[n.length-1];if(this._getDomNode(o)===e.lastChild)return!0;var r=o.nextSibling();return!r||this._getDomNode(r)===e.nextElementSibling},_shouldPlaceBeforeRefDomNode:function(e,t,i){if(i===e.lastChild)return!1;var n;n=t.previousSibling();var o=this._getNodesToRedraw(n,!0);if(0===o.length)return!1;if(i.parentElement!==e)return!1;if(!this._getBlock(n)&&o.length>0)return!1;var r=o[0];return this._getDomNode(r)===e.firstChild||(!(n=r.previousSibling())||this._getDomNode(n)===e.previousElementSibling)},_getBlock:function(e){if(e){var i=this._getDomNode(e),n=i&&i.parentElement;return n&&t.contains(n,this._getBlockClass(e))?n:null}},_createBlock:function(e){return i.create("div",{class:this._getBlockClass(e)+" "+this._BLOCK_CLASS})},_getBlockClass:function(e){return e.groupingName?e.groupingName:e.className+this._BLOCK_SUFFIX},_isBlockElement:function(e){return!!e&&t.contains(e,this._BLOCK_CLASS)},_canMergeBlocks:function(e,t){if(!(e&&t&&e.className&&t.className))return!1;var i=e.className.split(" "),n=t.className.split(" ");return i[0]===n[0]&&i[1]===n[1]&&i[1]===this.groupingType},_canGroupTogether:function(e,t,i,n){return e.groupingType===this.groupingType&&e.groupingType===t.groupingType&&(o=n&&!this._isBlockElement(n)&&this._isBlockElement(n.parentElement)?n.parentElement.className:this._getBlockClass(t),this._getBlockClass(e)===o);var o},priority:function(){return 1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4508)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(225),i(210),i(826),i(662)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{_EXPANSION_THRESHOLD:10,_EXPANDABLE_CLASSLIST:["equationNode","imageNode"],constructor:function(e){this.reset()},reset:function(){this._cachedExpandable=[],this._cachedWidth=[],this._currentMaxWidth=0},getOperationsForLayout:function(e,t,n){var o=[];return(o=(o=t.wrappable?i("*",e):t.groupingType===r.CONTAINMENT?this._getElementsInSiblingBlocks(e):[e]).filter(this._canExpandRootNode,this)).length?(o.forEach((function(e){var t=this._cachedExpandable.indexOf(e),i=this._getMarginWidth(e);t<0?(this._cachedExpandable.push(e),this._cachedWidth.push(i)):this._cachedWidth[t]=i}),this),this._currentMaxWidth=this._getMaxCachedWidth(),{rootNodeWidth:this._getExpandedWidth()}):null},_getElementsInSiblingBlocks:function(e){var t=e.previousElementSibling;if(t)var n=i("*",t);var o=e.nextElementSibling;if(o)var r=i("*",o);return n&&r?n.concat(r):n||r||[]},getOperationsForRemove:function(e,t){var n=this._getDomNode(e);if(!e.wrappable&&!this._canExpandRootNode(n))return null;var o=i("*",n);return o.push(n),o.forEach((function(e){if(this._canExpandRootNode(e)){var t=this._cachedExpandable.indexOf(e);t>=0&&(this._cachedExpandable.splice(t,1),this._cachedWidth.splice(t,1))}}),this),this._currentMaxWidth=this._getMaxCachedWidth(),{rootNodeWidth:this._getExpandedWidth()}},getOperationsForResize:function(){return this._cachedExpandable.length?(this._updateCachedWidth(),{rootNodeWidth:this._getExpandedWidth()}):null},_updateCachedWidth:function(){this._cachedWidth=this._cachedExpandable.map(this._getMarginWidth),this._currentMaxWidth=this._getMaxCachedWidth()},_getExpandedWidth:function(){return this._currentMaxWidth+this._EXPANSION_THRESHOLD},_getMaxCachedWidth:function(){return Math.max.apply(null,this._cachedWidth)},_getMarginWidth:function(e){var i=t.getMarginBox(e);return i.l+i.w},_canExpandRootNode:function(e){return!!e&&this._EXPANDABLE_CLASSLIST.some((function(t){return n.contains(e,t)}))},_isApplicable:function(e,t){return t.wrappable||this._canExpandRootNode(e)},priority:function(){return-4},destroy:function(){this.inherited(arguments),this._cachedExpandable=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4510)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(826),i(1129)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_INLINEELEMENT_CLASS:"inlineElement",constructor:function(e){},getOperationsForLayout:function(e,t,i){return this._isApplicable(t)?this._getOperationsForWidthSetting(e):null},getOperationsForRefresh:function(e){return this._isApplicable(e)?this._getOperationsForWidthSetting(this._getDomNode(e)):null},_getOperationsForWidthSetting:function(e){var i=t("."+this._INLINEELEMENT_CLASS,e);return i.length?{widthToSet:[{nodesToApply:i,widthOffset:this._getWidthOffset()}]}:null},_getWidthOffset:function(){return n.RIGHT_MARGIN_WIDTH},_isApplicable:function(e){return"LineNode"===e.className},priority:function(){return-3}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4512)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel","rtc.view.layoutmanager.paragraphhostingmodel"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(826)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t){this._paragraphHostingModel=t},getOperationsForLayout:function(e,t,i){return this._getParagraphHostingInfo(t)},getOperationsForRefresh:function(e){return this._getParagraphHostingInfo(e)},_getParagraphHostingInfo:function(e){if(!e.isRootContainer())return null;var t=this._paragraphHostingModel.getHostedNodes(e);if(t)return{hostedNodes:t,mapFunction:this._getDomNode.bind(this)};var i=this._paragraphHostingModel.getHostingNode(e);return i?{hostingNode:i}:void 0},getOperationsForRemove:function(e,t){if(!e.parent){var i=this._paragraphHostingModel.getHostedNodes(e);if(i)return this._paragraphHostingModel.delete(e),{nodesToLayout:i}}},priority:function(){return-2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4514)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(210),i(826),i(1129),i(662)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_WRAPPABLE_CLASS:"wrappable",constructor:function(e){this.reset()},reset:function(){this._cachedWrappable=[]},getOperationsForLayout:function(e,t,n){var o;return t.wrappable?(i.contains(e,"inlineWrapper")&&(e=e.firstChild),o=this._getOperationsForLayoutWrappable(e)):t.groupingType===r.CONTAINMENT&&(o=this._getOperationsForLayoutSiblingBlocks(e,t)),o},_getOperationsForLayoutWrappable:function(e,i){var n={};n.classToSet=[{nodesToApply:[e],name:this._WRAPPABLE_CLASS,value:!0}];var o=t("."+this._WRAPPABLE_CLASS,e);return o.push(e),n.widthToSet=[{nodesToApply:o,widthOffset:this._getWidthOffset()}],this._cachedWrappable.indexOf(e)<0&&this._cachedWrappable.push(e),n},_getOperationsForLayoutSiblingBlocks:function(e){var t=this._getWrappableInSiblingBlocks(e);return t.length?{widthToSet:[{nodesToApply:t,widthOffset:this._getWidthOffset()}]}:null},_getWrappableInSiblingBlocks:function(e){var i=e.previousElementSibling;if(i)var n=t("."+this._WRAPPABLE_CLASS,i);var o=e.nextElementSibling;if(o)var r=t("."+this._WRAPPABLE_CLASS,o);return n&&r?n.concat(r):n||r||[]},getOperationsForRemove:function(e){if(e.wrappable){var i=this._getDomNode(e),n=t("."+this._WRAPPABLE_CLASS,i);n.push(i),n.forEach((function(e){var t=this._cachedWrappable.indexOf(e);t>=0&&this._cachedWrappable.splice(t,1)}),this)}return null},getOperationsForResize:function(){return this._cachedWrappable.length?{widthToSet:[{nodesToApply:this._cachedWrappable,widthOffset:this._getWidthOffset()}]}:null},_getWidthOffset:function(){return o.RIGHT_MARGIN_WIDTH},priority:function(){return-1},destroy:function(){this.inherited(arguments),this._cachedWrappable=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4516)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.view.decoration"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(4517)],o=i.dj.d(n,(function(e,t,i){return e(t,{_LINE_HIGHLIGHT_CSS:"lineHighlighterLayer",constructor:function(e,t,i){this._document=e,this._internalDocument=t,this._decoration=i,this._highlighters=[]},createHighlighter:function(e){return this.createHighlighterWithClass(this._LINE_HIGHLIGHT_CSS,e)},createHighlighterWithClass:function(e,t){const n=this._decoration.createLayerDecorator(e,t),o=new i(this._document,this._internalDocument,n);return this._highlighters.push(o),o},destroy:function(){this._highlighters.forEach(e=>{e.destroy()})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(209),i(266),i(362)],o=i.dj.d(n,(function(e,t,i,n,o){return t(e,{constructor:function(e,t,i){this._document=e,this._internalDocument=t,this._decorator=i,this._batchChange=0,this._highlightedRanges=[]},highlightLine:function(e,t){this._highlightLine(e,t),this._applyChanges()},highlightLineRange:function(e,t,i){for(let n=e;n<=t;n++)this._highlightLine(n,i);this._applyChanges()},clearHighlightForLine:function(e){this._clearLine(e),this._applyChanges()},clearHighlightForLineRange:function(e,t){for(let i=e;i<=t;i++)this._clearLine(i);this._applyChanges()},clearAllHighlights:function(){this._highlightedRanges.forEach(e=>{this._decorator.clearRange(e)}),this._applyChanges(),this._highlightedRanges=[]},startBatchHighlight:function(){this._batchChange++},endBatchHighlight:function(){i.assert(this._batchChange>0,"No batch change started"),this._batchChange--,this._applyChanges()},_highlightLine:function(e,t){const i=this._getRangeForLineNumber(e),n={"background-color":t};this._decorator.setStyle(i,n),this._decorator.addClass(i,[o.HIGHLIGHTED_LINE_CSS]),this._highlightedRanges.push(i)},_clearLine:function(e){const t=this._getRangeForLineNumber(e);this._decorator.clearRange(t)},_getRangeForLineNumber:function(e){const t=this._document.createLinePositionInLine(e-1);t.setLive();const i=this._document.createLinePositionInLine(e-1,!0);return i.setLive(),new n(t,i)},_applyChanges:function(){0===this._batchChange&&this._decorator.applyChanges()},destroy:function(){this.inherited(arguments),this.clearAllHighlights()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4519)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.view.decoration"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(4520)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._internalDocument=e,this._decoration=t,this._highlighters=[]},createHighlighter:function(e){const t=this._decoration.createDecorator(e),n=new i(this._internalDocument,t);return this._highlighters.push(n),n},destroy:function(){this._highlighters.forEach(e=>{e.destroy()}),this._highlighters=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(209)],o=i.dj.d(n,(function(e,t,i){return t(e,{constructor:function(e,t){this._internalDocument=e,this._decorator=t,this._batchChange=0},highlightTextInRange:function(e,t,i,n,o){const r=this._internalDocument.getRangeForLineColumn(e,t,i,n);this._decorator.setStyle(r,"background-color",o),this._applyChanges()},clearHighlightInRange:function(e,t,i,n){const o=this._internalDocument.getRangeForLineColumn(e,t,i,n);this._decorator.clearRange(o),this._applyChanges()},clearAllHighlights:function(){this._decorator.clearRange(this._internalDocument.getFullRange()),this._applyChanges()},startBatchHighlight:function(){this._batchChange++},endBatchHighlight:function(){i.assert(this._batchChange>0,"No batch change started"),this._batchChange--,this._applyChanges()},_applyChanges:function(){0===this._batchChange&&this._decorator.applyChanges()},destroy:function(){this.inherited(arguments),this.clearAllHighlights()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4522)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["hideallcodeplugins"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4523)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._plugins=e},enablePlugins:function(){this._plugins.forEach((function(e){e.enableForHiddenCode()}))},disablePlugins:function(){this._plugins.forEach((function(e){e.disableForHiddenCode()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{enablePlugins:function(){throw new Error("Unimplemented API: MW.rtc.view.hidden.BasePluginDisabler.enablePlugins")},disablePlugins:function(){throw new Error("Unimplemented API: MW.rtc.view.hidden.BasePluginDisabler.disablePlugins")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4525)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.cursorcontroller","rtc.internaldocument","rtc.document","rtc.view.hidden.hiddennodemodel","rtc.view.hide.code.stateholder","rtc.view.hide.allcode.plugindisabler","rtc.view.hide.filters","rtc.scrollpane","rtc.document.eventcache"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d){return new i(e,t,n,o,r,a,s,l,c,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(274),i(499),i(2005),i(4526)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{_CODE_HIDDEN_CLASS:"codeHidden",_ADDITIONAL_READ_ONLY_NODES:[n],constructor:function(e,t,i,n,o,a,s,l,c){this._scrollPane=c,this._readOnlyStateCache=[],this._hideCounter=0,this._hideFilters=l||[],this._hideFilters.push(new r)},getLineDetails:function(e,t){for(var i=[],n=[],o=[],r=e;r<=t;r++){var a,s=this._internalDocument.getLineNode(r);this._hideFilters.some((function(e){return null!==(a=e.shouldHideInHideCodeView(s))}))&&(i.push(s),n.push(r),o.push(a))}return 0===i.length?null:{lineNodes:i,lineNumbers:n,hiddenNodeIndicators:o}},hide:function(e){t.replace(this._scrollPane,this._CODE_HIDDEN_CLASS,[]),this.inherited(arguments,[e,this._ADDITIONAL_READ_ONLY_NODES])},show:function(){t.replace(this._scrollPane,[],this._CODE_HIDDEN_CLASS),this.inherited(arguments,[this._ADDITIONAL_READ_ONLY_NODES])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(2006)],o=i.dj.d(n,(function(e,t,i){return e(i,{shouldHideInHideCodeView:function(e){return!!t.isExecutableCodeLine(e)||null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4528)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.cursorcontroller","rtc.internaldocument","rtc.document","rtc.view.hidden.hiddennodemodel","rtc.view.hide.text.stateholder","rtc.document.eventcache"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,null,null,null,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2005),i(525)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i,n,o,r){this._readOnlyStateCache=[],this._hideCounter=0},getLineDetails:function(e,t){return i.getRichTextLinesAndLineNodes(this._internalDocument,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4530)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2007)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4532)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2007)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4534)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.view.hide.code.service","rtc.actionservice"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2008)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,i,n){var o=[{id:"rtc_hide_all_code",enabled:!0,callback:t.hitch(this,"_hideShow")}];n.loadActions(o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4536)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.view.hide.text.service","rtc.actionservice"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2008)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,i,n){var o=[{id:"rtc_hide_all_text",enabled:!0,callback:t.hitch(this,"_hideShow")}];n.loadActions(o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(4538)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.view","rtc.view.viewmodel","rtc.view.viewmeasurementservice","rtc.settings.service","rtc.view.layoutmanager"]}},createInstance:function(e,t,i,o,r){return new n(e,t,i,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(207),i(4539)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_PAGINATED_CSSCLASS_NAME:"mwPaginated",_SETTING_NAME:"matlab.editor.EnablePagination",constructor:function(e,t,i,n,o){this._rtcView=e,this._rtcViewModel=t,this._domTarget=t.getDomTargetDomNode(),this._viewMeasurementService=i,this._layoutManager=o,this._scrollExpander=null,this._paginatorView=null,this.own(n.listenToSettingChange(this._SETTING_NAME,function(e){this._handleSettingsUpdated(e)}.bind(this))),n.getSetting(this._SETTING_NAME).then(function(e){this._handleSettingsUpdated(e)}.bind(this),(function(){})),this.enable()},getViewForTesting:function(){return this._paginatorView},enable:function(){this._domTarget.classList.add(this._PAGINATED_CSSCLASS_NAME),this._scrollExpander=t.create("div",{class:"scrollExpander"}),this._rtcView.addLayer(this._scrollExpander),this._paginatorView=new n(this._rtcViewModel,this._viewMeasurementService,this._scrollExpander,this._layoutManager),this._rtcViewModel.setPaginated(!0)},disable:function(){this._domTarget.classList.remove(this._PAGINATED_CSSCLASS_NAME),t.destroy(this._scrollExpander),this._scrollExpander=null,this._paginatorView&&this._paginatorView.destroy(),this._rtcViewModel.setPaginated(!1)},_handleSettingsUpdated:function(e){!0===e?this._rtcViewModel.isPaginated()||this.enable():this._rtcViewModel.isPaginated()&&this.disable()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(211),i(208)],o=i.dj.d(n,(function(e,t,i,n){return t(e,{constructor:function(e,t,i,o){this._viewModel=e,this._domTarget=e.getDomTargetDomNode(),this._viewMeasurementService=t,this._scrollExpander=i,this._layoutManager=o,this._firstVisibleLineIndex=0,this._viewModel.setDocumentDimensionGetter(function(){const e=getComputedStyle(this._domTarget).width;return{height:parseFloat(this._scrollExpander.style.height)||0,width:Math.max(parseFloat(this._scrollExpander.style.width),parseFloat(e))||0}}.bind(this)),this.own(n.after(this._viewModel,"willUpdate",this._handleViewModelWillUpdate.bind(this))),this.own(n.after(this._viewModel,"onModelUpdated",this._handleViewModelUpdated.bind(this)))},_handleViewModelWillUpdate:function(){var e=this._viewModel.getRootNode(),t=this._viewModel.getNodeBox(e);if(document.contains(t)){var i=this._viewModel.getSequentialViews(),n=this._viewMeasurementService.getSizeOfView(i),o=n.height+this._viewModel.getRootNodePaddingTop(),r=Math.max(n.width,1);this._scrollExpander.style.height=o+"px",this._scrollExpander.style.width=r+"px",t.style.width=r+"px"}},_handleViewModelUpdated:function(){if(!this._layoutManager.isLayoutPending()){var e=this._viewModel.getNodeBox(this._viewModel.getRootNode());if(document.contains(e)){var t=this._viewModel.getDerivedViewPort(),i=this._viewModel.getNodesInRange(t.top,t.bottom,!0);this._firstVisibleLineIndex=i.firstLineIndex,this._adjustTo(i.lineNodes),this._updateMarginTop(i.viewPortTop)}}},_updateMarginTop:function(e){var t=this._viewModel.getNodeBox(this._viewModel.getRootNode());t&&(t.style.marginTop=e+"px")},_adjustTo:function(e){var t=this._getLineNodesOnPage().map(this._viewModel.getNodeFromDomNode,this._viewModel),i=[],n=[],o=t.indexOf(e[0]);o>0?this._remove(this._getNodesInRange(t,0,o-1)):o=0;var r=e.indexOf(t[0]);r>0?n=this._getNodesInRange(e,0,r-1):r=0;for(var a=0;a+r<e.length&&o+a<t.length&&e[a+r]===t[o+a];)a++;o+a<t.length&&this._remove(this._getNodesInRange(t,o+a,t.length)),a+r<e.length&&(i=this._getNodesInRange(e,a+r,e.length-1)),this._prepend(n),this._append(i)},_refreshNodesToPatch:function(e,t){e.forEach(function(e){const i=this._viewModel.getNodeBox(e);if(this._shouldRelayoutDomNode(e,i,t))this._layoutManager.layoutNode(e);else if(this._layoutManager.refreshNode(e),e.children){const t=i.childNodes;for(let i=0;i<t.length;i++){const n=t[i].rteNode;(n&&!n.parent||n.parent!==e)&&this._removeNode(n)}this._refreshNodesToPatch(e.children)}}.bind(this))},_shouldRelayoutDomNode:function(e,t,i){return!t||!t.parentNode||(!e.isRootContainer()&&!this._viewModel.getNodeBox(e.parent).contains(t)||!!i)},_remove:function(e){0!==e.length&&(e.forEach(this._removeNode,this),this._viewModel.notifyNodesRemoved(e))},_removeNode:function(e){var t=this._viewModel.getNodeBox(e);t&&t.parentNode&&t.parentNode.removeChild(t)},_append:function(e){this._placeAt(e,"last")},_prepend:function(e){this._placeAt(e,"first")},_placeAt:function(e,t){if(0===e.length)return;this._viewModel.notifyNodesAdding(e);const n=this._createFragment(e),o=this._viewModel.getNodeBox(this._viewModel.getRootNode());i.place(n.fragment,o,t),n.lineNodesToRefresh.length>0&&this._refreshNodesToPatch(n.lineNodesToRefresh)},_createFragment:function(e){const t=document.createDocumentFragment(),i=[];return e.forEach(e=>{let n=this._viewModel.getNodeBox(e);n?i.push(e):(this._layoutManager.layoutNode(e),n=this._viewModel.getNodeBox(e)),n&&t.appendChild(n)}),{fragment:t,lineNodesToRefresh:i}},_getLineNodesOnPage:function(){var e=this._viewModel.getNodeBox(this._viewModel.getRootNode());if(!e)return[];for(var t=[],i=e.childNodes,n=0;n<i.length;n+=1)t.push(i[n]);return t},_getNodesInRange:function(e,t,i){for(var n=[],o=t;o<=i;o+=1)e[o]&&n.push(e[o]);return n},resetView:function(){var e=this._viewModel.getModelElements();this._refreshNodesToPatch(e,!0),this._append(e)},getFirstVisibleLineIndex:function(){return this._firstVisibleLineIndex},destroy:function(){this.resetView();var e=this._viewModel.getNodeBox(this._viewModel.getRootNode());e&&(e.style.marginTop="",e.style.width=""),i.destroy(this._scrollExpander),this._viewModel.setDocumentDimensionGetter(null),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4541)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return e},requires:function(){return{isApplicable:["rtc.integration.touchmode"],createInstance:["livecode.saveload.withoutputs","liveeditor.filename.banner","rtc.internaldocument","rtc.executionservice.statehandler","rtc.touch.service","rtc.dirtystate.manager","rtc.execution.capabilityblacklist"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(219),i(232),i(207),i(4542),i(1430)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(r,{constructor:function(e,t,o,r,a,l,c){if(this._liveEditorSaveLoad=e,this._fileNameBanner=t,this._internalDocument=o,this._isFileDirty=!1,this._isFileReadOnly=!1,this._isOfflineMode=!1,this._stateHandler=r,this._touchService=a,this._dirtyStateManager=l,this._matlabMobileBridge=s.getInstance(),this._setupNativeEvents(),this._touchService.isMobileModeEnabled()){c.disableCapability("InteractiveCommandLine"),c.disableCapability("RuntimeUserInput");const e=e=>this._handleDirtyStateUpdate(e);this.own(i.after(this._dirtyStateManager,"onDirtyStateChange",e,!0)),this.own(i.after(this._internalDocument,"onDocumentReset",this._updateReadOnlyState.bind(this),!0)),this.own(i.after(this._stateHandler,"onStateChanged",this._stateChangeListener.bind(this),!0)),this.own(i.after(n,"onFatallyDisconnected",this._sendMobileFatallyDisconnectedEventIfApplicable.bind(this),!0)),this.own(i.after(n.messageService._delegate,"onConnectionError",this._sendMobileDisconnectedEventIfApplicable.bind(this),!0))}},_handleDirtyStateUpdate:function(e){e===a.DIRTY&&this._updateFileBanner()},_updateReadOnlyState:function(){this._isFileReadOnly&&window.setFileReadOnly()},_updateFileBanner:function(){this._isFileDirty||this._isFileReadOnly||(this._fileNameBanner.markBannerTextDirty(),this._isFileDirty=!0,this._matlabMobileBridge.sendGenericMessage({message:"CONTENT_CHANGED",details:""}))},_stateChangeListener:function(e,t){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED&&this._matlabMobileBridge.sendGenericMessage({message:"RUN_STARTED",details:""}),e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&(t.didRunToCompletion?this._matlabMobileBridge.sendGenericMessage({message:"RUN_FINISHED",details:""}):this._matlabMobileBridge.sendGenericMessage({message:"RUN_ERROR",details:t.errorType})),this._updateFileBanner()},_sendMobileDisconnectedEventIfApplicable:function(){if(this._touchService.isIosTouchDevice()&&this._touchService.isMultiTouch()||this._touchService.isAndroidTouchDevice()){this._disableEditing();this._matlabMobileBridge.sendGenericMessage({details:"Message service disconnected",message:"MESSAGE_SERVICE_DISCONNECTED"})}},_sendMobileFatallyDisconnectedEventIfApplicable:function(){if(this._touchService.isIosTouchDevice()||this._touchService.isAndroidTouchDevice()){this._disableEditing();this._matlabMobileBridge.sendGenericMessage({details:"Message service fatally disconnected",message:"MESSAGE_SERVICE_FATALLY_DISCONNECTED"})}},_checkIfMessageServiceStarted:function(e){var t=function(){},i=this;n.subscribe("/dummy_tmp_channel/tmp",t,i).then((function(){e(),n.unsubscribe("/dummy_tmp_channel/tmp",t)}),(function(e){this._disableEditing(),i._postMessageToNative({message:"MESSAGE_SERVICE_FAILED_TO_START",details:e})}))},_setupMessageService:function(e,t,i){o.setComputeToken({computeSessionId:e}),o.setWorkerEndpoint(i,t),o.setEndpoint(i),this._postMessageToNative({message:"MESSAGE_SERVICE_ABOUT_TO_START",details:""}),n.start();var r=function(){this._enableEditing(this._isFileReadOnly),this._postMessageToNative({message:"MESSAGE_SERVICE_STARTED",details:""})}.bind(this);this._checkIfMessageServiceStarted(r)},_postMessageToNative:function(e){this._matlabMobileBridge.sendGenericMessage(e)},_disableEditing:function(){window.setFileReadOnly(),window.setToolstripOffline()},_enableEditing:function(e){e||window.setFileEditable(),window.setToolstripOnline()},_setOfflineMode:function(){this._isOfflineMode=!0,n.stop(),this._disableEditing(),this._fileNameBanner.markBannerTextClean(),this._fileNameBanner.markBannerTextOffline()},_startMessageService:function(){this._postMessageToNative({message:"MESSAGE_SERVICE_ABOUT_TO_START",details:""}),n.start();var e=function(){this._postMessageToNative({message:"MESSAGE_SERVICE_STARTED",details:""})}.bind(this);this._checkIfMessageServiceStarted(e)},_setOnlineMode:function(){this._isOfflineMode=!1,this._startMessageService(),this._fileNameBanner.markBannerTextClean(),this._isFileDirty&&!this._isFileReadOnly&&this._fileNameBanner.markBannerTextDirty(),this._isFileReadOnly?(this._fileNameBanner.markBannerTextReadOnly(),window.setToolstripOnline()):window.setFileEditable()},_startUnsecuredMessageService:function(e,t,i,n){if(this._postMessageToNative(e),this._postMessageToNative(t),this._postMessageToNative(i),this._postMessageToNative(n),o.getWorkerRoutingKey()!==i)this._setupMessageService(e,i,t);else{var r=function(){this._enableEditing(this._isFileReadOnly),this._postMessageToNative({message:"MESSAGE_SERVICE_STARTED",details:""})}.bind(this);this._checkIfMessageServiceStarted(r)}},_startSecuredMessageService:function(e,t){this._postMessageToNative(e),this._postMessageToNative(t),this._startMessageService()},_setupNativeEvents:function(){window.startMessageService=function(e,t,i,n){2===arguments.length?this._startSecuredMessageService(arguments[0],arguments[1]):this._startUnsecuredMessageService(arguments[0],arguments[1],arguments[2],arguments[3])}.bind(this),window.loadMMiOS=function(e,t,i){this._fileNameBanner.setFilePath(e),this._fileNameBanner.show(),this._isFileDirty=!1,n.start();var o=function(){this._liveEditorSaveLoad.sendLoadRequest(e),window.switchModeToInline(),window.handleTouchStart(),i?(window.setFileReadOnly(),this._isFileReadOnly=!0,this._fileNameBanner.markBannerTextReadOnly()):this._isFileReadOnly&&(window.setFileEditable(),this._isFileReadOnly=!1,this._fileNameBanner.markBannerTextClean())}.bind(this);this._checkIfMessageServiceStarted(o)}.bind(this),window.save=function(e,t){this._isFileReadOnly||this._isOfflineMode||(this._postMessageToNative(e),this._postMessageToNative(t),this._liveEditorSaveLoad.save(e).then(function(){this._fileNameBanner.markBannerTextClean(),this._isFileDirty=!1}.bind(this),(function(e){})))}.bind(this),window.renameFile=function(e,t){this._fileNameBanner.replaceFileName(t,this._isFileDirty)}.bind(this),window.onMatlabMobileOnline=function(){this._setOnlineMode()}.bind(this),window.onMatlabMobileOffline=function(){this._setOfflineMode()}.bind(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({DIRTY:"dirty",CLEAN:"clean"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2009)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._messageAPI=window.MATLABMobile},sendGenericMessage:function(e){this._messageAPI.postMessage(e.message,e.details)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{rtcLoaded:function(){return{message:"RTC_LOADED",details:""}},contentLoaded:function(){return{message:"CONTENT_LOADED",details:""}},messageServiceStarted:function(){return{message:"MESSAGE_SERVICE_STARTED",details:""}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2009)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._messageAPI=window.webkit.messageHandlers.MATLABMobile},sendGenericMessage:function(e){this._messageAPI.postMessage(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4547)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return!!e},requires:function(){return{isApplicable:["rtc.matlabmobile"],createInstance:["rtc.view","rtc.keyhandler","rtc.scrollpane","rtc.actionservice","liveeditor.view","rtc.internaldocument","rtc.execution.executionmanager","rtc.compacttoolstrip","rtc.service.documentloaded","rtc.undoredo.controller","rtc.touch.service"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(541),i(203),i(204),i(208),i(228),i(207),i(668),i(1431),i(1430)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return t(r,{constructor:function(e,t,o,r,a,s,c,d,u,h,p){this._view=e,this._keyHandler=t,this._internalDocument=s,this._executionManager=c,this._rtcScrollPane=o,this._actionService=r,this._liveEditorView=a,this._compactToolstrip=d,this._documentLoadedService=u,this._undoRedoController=h,this._touchService=p,this._matlabMobileBridge=l.getInstance(),(this._touchService.isIPad()||this._touchService.isAndroidTabletDevice()||this._touchService.isStandAloneTouchModeEnabled())&&(this._initializeToolstrip(),this._handleWindowResize());var f=document.getElementsByClassName("rightMarginContainer")[0];f&&f.parentNode&&f.parentNode.removeChild(f);var g=document.getElementsByClassName("rtePane")[0];g&&g.classList.add("matlabmobile"),this._rtcScrollPane.style.webkitUserSelect="text",this._touchService.isMobileModeEnabled()&&(this.own(n.after(this._documentLoadedService,"whenDocumentLoadedWithText",i.hitch(this,"_postRTCLoaded"))),this.own(n.after(this._internalDocument,"onDocumentChanged",i.hitch(this,"_updateNativeOnDocumentState"),!0)),this.own(n.after(this._undoRedoController,"onUndoRedoStackUpdated",i.hitch(this,"_handleUndoRedoStackUpdate"),!0)),this._addMetaTag(),this._setupNativeIosHandlers())},_initializeToolstrip:function(){var e=this._compactToolstrip.getCompactToolstrip();e.setAttribute("class","matlabMobile"),e.addEventListener("touchstart",this._handleTouchOnToolstrip.bind(this)),this._liveEditorView.style.height="calc(100% - 52px)",this._liveEditorView.parentNode.insertBefore(e,this._liveEditorView),this._actionService.updateAction(s.NEW_FILE,{callback:function(){this._postFileCreationToNative()}.bind(this)})},_handleTouchOnToolstrip:function(){this._rtcScrollPane.style.overflow="hidden",setTimeout(function(){this._rtcScrollPane.style.overflow="auto"}.bind(this),10)},_addMetaTag:function(){var e=document.createElement("meta");e.setAttribute("name","viewport"),e.content="width=device-width, user-scalable=no, initial-scale=1.0",document.getElementsByTagName("head")[0].appendChild(e)},_preventDefault:function(e){return e.preventDefault(),!1},_updateNativeWithCurrentStackState:function(){var e={isUndoable:this._undoRedoController.canUndo(),isRedoable:this._undoRedoController.canRedo()};this._handleUndoRedoStackUpdate(e)},_handleWindowResize:function(){var t=!1,i=function(){e.emit("resize")};window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout(i,250)}))},_setupNativeIosHandlers:function(){window.resetRTC=function(){this._internalDocument.newDocument(!1),this._matlabMobileBridge.sendGenericMessage({message:"RTC_RESET",details:""}),this._compactToolstrip.resetCompactToolstrip()}.bind(this),window.onAppforeground=function(){this._rtcScrollPane.focus()}.bind(this),window.run=function(){this._updateCompositionIfApplicable(),this._executionManager.executeAllSections()}.bind(this),window.stopExecution=function(){this._actionService.executeAction("rtc_stop_execution")}.bind(this),window.interrupt=function(){this._executionManager.interrupt()}.bind(this),window.switchModeToInline=function(){this._actionService.executeAction("rtc_inline_view"),this._compactToolstrip.resize()}.bind(this),window.gotoLineColumn=function(e,t){a.gotoDocumentLineColumn(this._internalDocument,this._cursor,e,t,this._view)}.bind(this),window.undo=function(){this._updateCompositionIfApplicable(),this._undoRedoController.canUndo()?this._undoRedoController.undo():this._updateNativeWithCurrentStackState()}.bind(this),window.redo=function(){this._updateCompositionIfApplicable(),this._undoRedoController.canRedo()?this._undoRedoController.redo():this._updateNativeWithCurrentStackState()}.bind(this),window.setFileReadOnly=function(){this._internalDocument.setReadOnly(!0),this._compactToolstrip.setReadOnlyMode(),this._rtcScrollPane.blur(),o.set(this._rtcScrollPane,"contentEditable",!1),this._rtcScrollPane.addEventListener("touchstart",i.hitch(this,"_handleTouchStartOnReadOnly"),!0)}.bind(this),window.setFileEditable=function(){this._internalDocument.setReadOnly(!1),this._compactToolstrip.resetCompactToolstrip(),o.set(this._rtcScrollPane,"contentEditable",!0),this._rtcScrollPane.removeEventListener("touchstart",i.hitch(this,"_handleTouchStartOnReadOnly"),!0)}.bind(this),window.setToolstripOffline=function(){this._compactToolstrip.setOfflineMode()}.bind(this),window.setToolstripOnline=function(){this._compactToolstrip.setOnlineMode()}.bind(this),window.onerror=function(e,t,i,n,o){this._matlabMobileBridge.sendGenericMessage({message:"WINDOW_ON_ERROR",details:{message:e,url:t,line:i,column:n,error:o}})}},_updateCompositionIfApplicable:function(){if(this._touchService.isAndroidTouchDevice()){const e=new Event("compositionend");this._keyHandler.keyCapture.dispatchEvent(e)}},_handleTouchStartOnReadOnly:function(e){window.getSelection().collapse(e.target,0)},_handleUndoRedoStackUpdate:function(e){var t={UNDOABLE:e.isUndoable,REDOABLE:e.isRedoable};this._matlabMobileBridge.sendGenericMessage({message:"UNDOREDO_STACK_UPDATE",details:JSON.stringify(t)})},_updateNativeOnDocumentState:function(){this._matlabMobileBridge.sendGenericMessage({message:"CONTENT_CHANGED",details:""})},_postRTCLoaded:function(){this._matlabMobileBridge.sendGenericMessage({message:"RTC_LOADED",details:""})},_postFileCreationToNative:function(){this._matlabMobileBridge.sendGenericMessage({message:"SHOW_CREATE_LIVESCRIPT_DIALOG",details:""})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4549)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return!!e},requires:function(){return{isApplicable:["rtc.matlabmobile"],createInstance:["rtc.embeddedoutputs.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._viewModel=e,this.own(i.after(this._viewModel,"onModelUpdated",t.hitch(this,"_viewModelUpdated"),!0))},_viewModelUpdated:function(){this._viewModel.getOutputDivs().forEach((function(e){e.setAttribute("contenteditable",!1)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4551)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return e},requires:function(){return{isApplicable:["rtc.integration.touchmode"],createInstance:["rtc.actionservice","rtc.compacttoolstrip.focusmanager","rtc.executionservice.statehandler","rtc.compacttoolstrip.actions"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(231),i(208),i(207),i(4552),i(4558),i(292),i(434),i(657),i(1301)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(r,{_TOOLSTRIP_TAG:"compactToolstrip",constructor:function(e,i,n){this._toolstripDiv=document.createElement("div"),this._toolstripDiv.setAttribute("id","toolstripDiv"),this._actionService=e,this._uiBuilder=l.getInstance({actionService:this._actionService}),this._focusManager=i,this._stateHandler=n,this._readOnlyMode=!1,this.own(o.after(this._stateHandler,"onStateChanged",t.hitch(this,"_stateChangeListener"),!0))},setReadOnlyMode:function(){s.setTextButtonsEnabled(this._uiBuilder,!1),s.setCodeButtonsEnabled(this._uiBuilder,!1),s.disableSectionBreak(this._uiBuilder),this._readOnlyMode=!0},setOfflineMode:function(){s.disableNewFileButton(this._uiBuilder),s.disableExecutionButtons(this._uiBuilder)},setOnlineMode:function(){s.enableNewFileButton(this._uiBuilder),s.enableExecutionButtons(this._uiBuilder)},_stateChangeListener:function(e,t){var i=this._uiBuilder.tagToId(this._TOOLSTRIP_TAG+".runAndStopColumn"),n=this._uiBuilder.tagToId(this._TOOLSTRIP_TAG+".run"),o=this._uiBuilder.tagToId(this._TOOLSTRIP_TAG+".stop");e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED&&(this._uiBuilder.remove(n),this._uiBuilder.add(o,i)),e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&(this._uiBuilder.remove(o),this._uiBuilder.add(n,i))},resetCompactToolstrip:function(){this.updateToggleButtonState({bold:!1,italic:!1,monospace:!1,underline:!1}),s.setTextButtonsEnabled(this._uiBuilder,!0),s.setCodeButtonsEnabled(this._uiBuilder,!0),s.enableSectionBreak(this._uiBuilder),s.enableNewFileButton(this._uiBuilder),s.enableExecutionButtons(this._uiBuilder),this._readOnlyMode=!1},updateToggleButtonState:function(e){s.updateToggleButtonState(this._uiBuilder,e)},enableCodeButtons:function(e){if(!this._readOnlyMode){var t=s.getCodeButtonsInDom(this._uiBuilder);s.setCodeButtonsEnabled(this._uiBuilder,e),e?(s.setToggleButtonSelectedState(this._uiBuilder,!1),this._focusManager.acceptFocus(t)):this._focusManager.refuseFocus(t)}},enableRichTextButtons:function(e){if(!this._readOnlyMode){var t=s.getTextButtonsInDom(this._uiBuilder);s.setTextButtonsEnabled(this._uiBuilder,e),e?this._focusManager.acceptFocus(t):this._focusManager.refuseFocus(t)}},resize:function(){this._uiBuilder.set(this._toolstripId,"displayState",d.STATIC)},getCompactToolstrip:function(){this._toolstripId=this._uiBuilder.create({type:c.TOOLSTRIP,tag:this._TOOLSTRIP_TAG,displayMode:u.COMPACT,displayState:d.STATIC}),this._uiBuilder.addTabGroupFromConfig(a,"compactToolstrip.globalTabGroupTest",this._TOOLSTRIP_TAG);var e=this._uiBuilder.tagToId(this._TOOLSTRIP_TAG+".stop");return this._uiBuilder.remove(e),this._uiBuilder.placeToolstripAt(this._TOOLSTRIP_TAG,this._toolstripDiv),this._focusManager.setupCompactToolstripDiv(this._toolstripDiv),this._toolstripDiv}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2010),i(1431),i(226),i(4553)],o=i.dj.d(n,(function(e,t,i,n){return{tag:"compactToolstrip.globalTabGroupTest",type:i.TAB_GROUP,children:[{tag:"compactToolstrip.matlabTab",type:i.TAB,title:n.liveEditorText,children:[{type:i.SECTION,title:n.fileText,collapsePriority:-1,children:[{type:i.COLUMN,children:[{tag:"compactToolstrip.newFile",type:i.PUSH_BUTTON,text:n.newFileText,description:n.newFileDescription,icon:"new_24",actionId:t.NEW_FILE}]}]},{type:i.SECTION,title:"Text",collapsePriority:0,icon:"text_formatting_24",children:[{type:i.COLUMN,children:[{tag:"compactToolstrip.insertText",type:i.PUSH_BUTTON,text:n.insertText,description:n.insertTextDescription,icon:"insert_text_24",actionId:e.INSERT_TEXT}]},{type:i.COLUMN,children:[{tag:"compactToolstrip.headingText",type:i.PUSH_BUTTON,text:n.headingText,description:n.headingDescription,icon:"heading_24",actionId:e.HEADING_TEXT},{tag:"compactToolstrip.bold",text:n.boldText,description:n.boldDescription,type:i.TOGGLE_BUTTON,icon:"bold_ts_16",actionId:e.BOLD_TEXT,selected:!1},{tag:"compactToolstrip.italic",text:n.italicText,description:n.italicDescription,type:i.TOGGLE_BUTTON,icon:"italic_ts_16",actionId:e.ITALIC_TEXT,selected:!1},{tag:"compactToolstrip.underline",text:n.underlineText,description:n.underlineDescription,type:i.TOGGLE_BUTTON,icon:"underline_ts_16",actionId:e.UNDERLINE_TEXT,selected:!1},{tag:"compactToolstrip.monospace",text:n.monospaceText,description:n.monospaceDescription,type:i.TOGGLE_BUTTON,icon:"monospaced_ts_16",actionId:e.MONOSPACE_TEXT,selected:!1}]},{type:i.COLUMN,children:[{tag:"compactToolstrip.unorderedlist",text:n.bulletedListText,description:n.bulletedListDescription,type:i.PUSH_BUTTON,icon:"bulleted_list_ts_16",actionId:e.UNORDERED_LIST,selected:!1},{tag:"compactToolstrip.orderedlist",type:i.PUSH_BUTTON,text:n.numberedListText,description:n.numberedListDescription,icon:"numbered_list_ts_16",actionId:e.ORDERED_LIST,selected:!1}]},{type:i.COLUMN,children:[{tag:"compactToolstrip.alignleft",type:i.PUSH_BUTTON,text:n.alignLeftText,description:n.alignLeftDescription,icon:"AlignedLeft_16",actionId:e.ALIGN_LEFT},{tag:"compactToolstrip.aligncenter",type:i.PUSH_BUTTON,text:n.alignCenterText,description:n.alignCenterDescription,icon:"AlignedCenter_16",actionId:e.ALIGN_CENTER},{tag:"compactToolstrip.alignright",type:i.PUSH_BUTTON,text:n.alignRightText,description:n.alignRightDescription,icon:"AlignedRight_16",actionId:e.ALIGN_RIGHT}]}]},{type:i.SECTION,collapsePriority:1,icon:"code_formatting_24",title:"Code",children:[{type:i.COLUMN,collapsePriority:-1,children:[{type:i.PUSH_BUTTON,tag:"compactToolstrip.code",text:n.insertCodeText,description:n.insertCodeDescription,icon:"insert_code_24",actionId:e.INSERT_CODE}]},{type:i.COLUMN,children:[{type:i.PUSH_BUTTON,tag:"compactToolstrip.comment",text:n.commentText,description:n.commentDescription,icon:"comment_ts_16",actionId:e.COMMENT},{type:i.PUSH_BUTTON,tag:"compactToolstrip.uncomment",text:n.uncommentText,description:n.uncommentDescription,icon:"uncomment_ts_16",actionId:e.UNCOMMENT}]},{type:i.COLUMN,children:[{type:i.PUSH_BUTTON,tag:"compactToolstrip.indent",text:n.indentText,description:n.indentDescription,icon:"Indent_24",actionId:e.INDENT},{type:i.PUSH_BUTTON,tag:"compactToolstrip.unindent",text:n.unIndentText,description:n.unIndentDescription,icon:"outdent_ts_16",actionId:e.UNINDENT}]}]},{type:i.SECTION,title:"Section",collapsePriority:-1,children:[{type:i.COLUMN,children:[{type:i.PUSH_BUTTON,tag:"compactToolstrip.insertSection",text:n.insertSectionText,description:n.insertSectionDescription,icon:"insert_section_break_24",actionId:e.SECTION_BREAK}]},{type:i.COLUMN,children:[{type:i.PUSH_BUTTON,tag:"compactToolstrip.runSection",text:n.runSectionText,description:n.runSectionDescription,icon:"run_section_24",actionId:e.RUN_SECTION}]}]},{type:i.SECTION,title:"Run",collapsePriority:-1,children:[{type:i.COLUMN,tag:"compactToolstrip.runAndStopColumn",children:[{type:i.PUSH_BUTTON,tag:"compactToolstrip.run",text:n.runAllText,description:n.runAllDescription,icon:"run_24",actionId:e.RUN_ALL},{type:i.PUSH_BUTTON,tag:"compactToolstrip.stop",text:n.stopText,description:n.stopDescription,icon:"end_24",actionId:e.STOP}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(4554),i(4555),i(4556),i(4557)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/editorCompactToolstrip",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={alignCenterDescription:"テキストを中央揃えします",alignCenterText:"中央揃え",alignLeftDescription:"テキストを左揃えします",alignLeftText:"左揃え",alignRightDescription:"テキストを右揃えします",alignRightText:"右揃え",boldDescription:"選択したテキストを太字にします",boldText:"太字",bulletedListDescription:"箇条書きリストを作成します",bulletedListText:"箇条書きリスト",commentDescription:"行の始めにコメント マーカーを挿入します",commentText:"コメント",fileText:"ファイル",headingDescription:"見出しを挿入します",headingText:"見出し",indentDescription:"選択したテキストを 1 インデント レベル右に移動します",indentText:"増やす",insertCodeDescription:"コードを挿入します",insertCodeText:"コード",insertSectionDescription:"セクション区切りを挿入します",insertSectionText:"セクション区切り",insertText:"テキスト",insertTextDescription:"テキストの挿入",italicDescription:"選択したテキストをイタリックにします",italicText:"イタリック",liveEditorText:"ライブ エディター",monospaceDescription:"選択したテキストを等幅にします",monospaceText:"等幅",newFileDescription:"新規ドキュメントを作成します",newFileText:"新規\nファイル",numberedListDescription:"番号付きリストを作成します",numberedListText:"番号付きリスト",runAllDescription:"すべてのセクションを実行します",runAllText:"実行",runSectionDescription:"現在のセクションを実行します",runSectionText:"セクションの実行",stopDescription:"実行を終了します",stopText:"停止",unIndentDescription:"選択したテキストを 1 インデント レベル左に移動します",unIndentText:"減らす",uncommentDescription:"行の始めのコメント マーカーを削除します",uncommentText:"コメント解除",underlineDescription:"選択したテキストに下線を引きます",underlineText:"下線"}},function(e,t,i){e.exports={alignCenterDescription:"텍스트를 가운데에 맞춰 정렬합니다.",alignCenterText:"가운데 맞춤",alignLeftDescription:"텍스트를 왼쪽에 맞춰 정렬합니다.",alignLeftText:"왼쪽 맞춤",alignRightDescription:"텍스트를 오른쪽에 맞춰 정렬합니다.",alignRightText:"오른쪽 맞춤",boldDescription:"선택한 텍스트를 굵게 표시합니다.",boldText:"굵게",bulletedListDescription:"글머리 기호 목록을 만듭니다.",bulletedListText:"글머리 기호 목록",commentDescription:"라인 시작 부분에 주석 마커를 삽입합니다.",commentText:"주석",fileText:"파일",headingDescription:"소제목을 삽입합니다.",headingText:"소제목",indentDescription:"선택한 텍스트를 오른쪽으로 한 수준 들여씁니다.",indentText:"들여쓰기",insertCodeDescription:"코드를 삽입합니다.",insertCodeText:"코드",insertSectionDescription:"섹션 나누기를 삽입합니다.",insertSectionText:"섹션 나누기",insertText:"텍스트",insertTextDescription:"텍스트를 삽입합니다.",italicDescription:"선택한 텍스트를 기울임꼴로 표시합니다.",italicText:"기울임꼴",liveEditorText:"라이브 편집기",monospaceDescription:"선택한 텍스트를 고정 폭으로 표시합니다.",monospaceText:"고정 폭",newFileDescription:"새 문서를 만듭니다.",newFileText:"새\n파일",numberedListDescription:"번호 매기기 목록을 만듭니다.",numberedListText:"번호 매기기 목록",runAllDescription:"모든 섹션을 실행합니다.",runAllText:"실행",runSectionDescription:"현재 섹션을 실행합니다.",runSectionText:"섹션 실행",stopDescription:"실행을 중지합니다.",stopText:"중지",unIndentDescription:"선택한 텍스트를 왼쪽으로 한 수준 내어씁니다.",unIndentText:"내어쓰기",uncommentDescription:"라인 시작 부분에서 주석 마커를 제거합니다.",uncommentText:"주석 해제",underlineDescription:"선택한 텍스트에 밑줄을 표시합니다.",underlineText:"밑줄"}},function(e,t,i){e.exports={alignCenterDescription:"将文本居中对齐",alignCenterText:"居中对齐",alignLeftDescription:"将文本左对齐",alignLeftText:"左对齐",alignRightDescription:"将文本右对齐",alignRightText:"右对齐",boldDescription:"将选定文本设置为粗体",boldText:"粗体",bulletedListDescription:"创建项目符号列表",bulletedListText:"项目符号列表",commentDescription:"在行开头插入注释标记",commentText:"注释",fileText:"文件",headingDescription:"插入题头",headingText:"题头",indentDescription:"将选定文本向右移动一个缩进级别",indentText:"增加",insertCodeDescription:"插入代码",insertCodeText:"代码",insertSectionDescription:"插入分节符",insertSectionText:"分节符",insertText:"文本",insertTextDescription:"插入文本",italicDescription:"将选定文本设置为斜体",italicText:"斜体",liveEditorText:"实时编辑器",monospaceDescription:"将选定文本设置为等宽",monospaceText:"等宽",newFileDescription:"创建新文档",newFileText:"新建\n文件",numberedListDescription:"创建编号列表",numberedListText:"编号列表",runAllDescription:"运行所有节",runAllText:"运行",runSectionDescription:"运行当前节",runSectionText:"运行节",stopDescription:"退出执行",stopText:"停止",unIndentDescription:"将选定文本向左移动一个缩进级别",unIndentText:"减少",uncommentDescription:"删除行开头的注释标记",uncommentText:"取消注释",underlineDescription:"对选定文本加下划线",underlineText:"下划线"}},function(e,t,i){e.exports={root:{alignCenterDescription:"Center text",alignCenterText:"Align center",alignLeftDescription:"Align text to the left",alignLeftText:"Align left",alignRightDescription:"Align text to the right",alignRightText:"Align Right",boldDescription:"Make the selected text bold",boldText:"Bold",bulletedListDescription:"Create bulleted list",bulletedListText:"Bulleted List",commentDescription:"Insert comment marker at beginning of line",commentText:"Comment",fileText:"File",headingDescription:"Insert heading",headingText:"Heading",indentDescription:"Move selected text right one indent level",indentText:"Increase",insertCodeDescription:"Insert code",insertCodeText:"Code",insertSectionDescription:"Insert section break",insertSectionText:"Section Break",insertText:"Text",insertTextDescription:"Insert text",italicDescription:"Italicize the selected text",italicText:"Italic",liveEditorText:"Live Editor",monospaceDescription:"Make the selected text monospaced",monospaceText:"Monospace",newFileDescription:"Create new document",newFileText:"New\nFile",numberedListDescription:"Create numbered list",numberedListText:"Numbered List",runAllDescription:"Run all sections",runAllText:"Run",runSectionDescription:"Run current section",runSectionText:"Run Section",stopDescription:"Quit execution",stopText:"Stop",unIndentDescription:"Move selected text left one indent level",unIndentText:"Decrease",uncommentDescription:"Remove comment marker from beginning of line",uncommentText:"Uncomment",underlineDescription:"Underline the selected text",underlineText:"Underline"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(227)],o=i.dj.d(n,(function(e){return{_TOOLSTRIP_TAG:"compactToolstrip",getCompactToolstripTag:function(){return this._TOOLSTRIP_TAG},getTextButtonsInDom:function(t){var i=[];return this._getTextButtonsId(t).forEach((function(t){i.push(e.byId(t))})),i},setCodeButtonsEnabled:function(e,t){this._getCodeButtonsId(e).forEach((function(i){e.set(i,"enabled",t)}))},setTextButtonsEnabled:function(e,t){this._getTextButtonsId(e).forEach((function(i){e.set(i,"enabled",t)}))},setToggleButtonSelectedState:function(e,t){this._getToggleButtonsId(e).forEach((function(i){e.set(i,"selected",t)}))},updateToggleButtonState:function(e,t){e.set(this._getBoldButtonId(e),"selected",t.bold),e.set(this._getItalicsButtonId(e),"selected",t.italic),e.set(this._getMonospaceButtonId(e),"selected",t.monospace),e.set(this._getUnderlineButtonId(e),"selected",t.underline)},getCodeButtonsInDom:function(t){var i=[];return this._getCodeButtonsId(t).forEach((function(t){i.push(e.byId(t))})),i},disableNewFileButton:function(e){var t=e.tagToId(this._TOOLSTRIP_TAG+".newFile");e.set(t,"enabled",!1)},enableNewFileButton:function(e){var t=e.tagToId(this._TOOLSTRIP_TAG+".newFile");e.set(t,"enabled",!0)},disableExecutionButtons:function(e){var t=e.tagToId(this._TOOLSTRIP_TAG+".run");e.set(t,"enabled",!1);t=e.tagToId(this._TOOLSTRIP_TAG+".runSection");e.set(t,"enabled",!1)},enableExecutionButtons:function(e){var t=e.tagToId(this._TOOLSTRIP_TAG+".run");e.set(t,"enabled",!0);t=e.tagToId(this._TOOLSTRIP_TAG+".runSection");e.set(t,"enabled",!0)},disableSectionBreak:function(e){var t=e.tagToId(this._TOOLSTRIP_TAG+".insertSection");e.set(t,"enabled",!1)},enableSectionBreak:function(e){var t=e.tagToId(this._TOOLSTRIP_TAG+".insertSection");e.set(t,"enabled",!0)},_getBoldButtonId:function(e){return e.tagToId(this._TOOLSTRIP_TAG+".bold")},_getItalicsButtonId:function(e){return e.tagToId(this._TOOLSTRIP_TAG+".italic")},_getMonospaceButtonId:function(e){return e.tagToId(this._TOOLSTRIP_TAG+".monospace")},_getUnderlineButtonId:function(e){return e.tagToId(this._TOOLSTRIP_TAG+".underline")},_getToggleButtonsId:function(e){var t=[];return t.push(this._getBoldButtonId(e)),t.push(this._getItalicsButtonId(e)),t.push(this._getMonospaceButtonId(e)),t.push(this._getUnderlineButtonId(e)),t},_getTextButtonsId:function(e){var t=[];return t.push(e.tagToId(this._TOOLSTRIP_TAG+".headingText")),t.push(this._getToggleButtonsId(e)),t.push(e.tagToId(this._TOOLSTRIP_TAG+".orderedlist")),t.push(e.tagToId(this._TOOLSTRIP_TAG+".unorderedlist")),t.push(e.tagToId(this._TOOLSTRIP_TAG+".alignleft")),t.push(e.tagToId(this._TOOLSTRIP_TAG+".aligncenter")),t.push(e.tagToId(this._TOOLSTRIP_TAG+".alignright")),t.push(e.tagToId(this._TOOLSTRIP_TAG+".code")),[].concat.apply([],t)},_getCodeButtonsId:function(e){var t=[];return t.push(e.tagToId(this._TOOLSTRIP_TAG+".comment")),t.push(e.tagToId(this._TOOLSTRIP_TAG+".uncomment")),t.push(e.tagToId(this._TOOLSTRIP_TAG+".indent")),t.push(e.tagToId(this._TOOLSTRIP_TAG+".unindent")),t.push(e.tagToId(this._TOOLSTRIP_TAG+".insertText")),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4560)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(4561),i(4562)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{_SELECTED_PROPERTY_STRING:"selected",constructor:function(e){this._actionService=e,this._liveEditorActions=i.actions,this._defaultActions=n.actions,this._actionService.loadActions(this._liveEditorActions),this._actionService.loadActions(this._defaultActions),this._updateLiveEditorCallbacks()},_updateLiveEditorCallbacks:function(){this._liveEditorActions.forEach((function(e){var t=i.getRTCActionIdFromGlobalActionId(e.id);t&&this._actionService.actionHasProperty(e.id,this._SELECTED_PROPERTY_STRING)&&this._actionService.addActionChangeCallback(e.id,function(t){this._handleToggleButtonActionChanged(e.id,t)}.bind(this)),t&&this._actionService.updateAction(e.id,{callback:function(){this._actionService.executeAction(t)}.bind(this)})}),this)},_handleToggleButtonActionChanged:function(e,t){if(t.property===this._SELECTED_PROPERTY_STRING){var n=i.getRTCActionIdFromGlobalActionId(e);this._actionService.updateAction(n,{selected:t.newValue})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2010),i(1432),i(209)],o=i.dj.d(n,(function(e,t,i,n){var o=new(e(i,{constructor:function(){this.actions=[]},_getPrefix:function(){return"compacttoolstrip.liveeditor."}})),r=function(e){return{id:e,enabled:!0,callback:function(){n.warn("Action "+e+" does not do anything yet")}}},a=function(e){return{id:e,enabled:!0,selected:!1,callback:function(){n.warn("Action "+e+" does not do anything yet")}}};return o.actions.push(r(t.RUN_ALL)),o.actions.push(r(t.STOP)),o.actions.push(r(t.RUN_SECTION)),o.actions.push(r(t.INSERT_TEXT)),o.actions.push(r(t.HEADING_TEXT)),o.actions.push(a(t.BOLD_TEXT)),o.actions.push(a(t.ITALIC_TEXT)),o.actions.push(a(t.UNDERLINE_TEXT)),o.actions.push(a(t.MONOSPACE_TEXT)),o.actions.push(r(t.UNORDERED_LIST)),o.actions.push(r(t.ORDERED_LIST)),o.actions.push(r(t.ALIGN_LEFT)),o.actions.push(r(t.ALIGN_CENTER)),o.actions.push(r(t.ALIGN_RIGHT)),o.actions.push(r(t.INSERT_CODE)),o.actions.push(r(t.COMMENT)),o.actions.push(r(t.UNCOMMENT)),o.actions.push(r(t.INDENT)),o.actions.push(r(t.UNINDENT)),o.actions.push(r(t.SECTION_BREAK)),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1431),i(209)],o=i.dj.d(n,(function(e,t){var i={actions:[]};return i.actions=[{id:e.NEW_FILE,enabled:!0,callback:function(){t.warn("Action "+e.NEW_FILE+" does not do anything yet")}}],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4564)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return e},requires:function(){return{isApplicable:["rtc.integration.touchmode"],createInstance:["rtc.scrollpane"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._rtcScrollPane=e,this._compactToolstripDiv=null,this._setupDocument()},setupCompactToolstripDiv:function(e){this._compactToolstripDiv=e,this._compactToolstripDiv.addEventListener("touchmove",this._preventDefault,{passive:!1}),this._compactToolstripDiv.addEventListener("mousedown",this._preventDefault,{passive:!1})},refuseFocus:function(e){e.forEach((function(e){e.addEventListener("touchstart",this._preventDefault,{passive:!1})}),this)},acceptFocus:function(e){e.forEach((function(e){e.removeEventListener("touchstart",this._preventDefault,{passive:!1})}),this)},stopFocusPropagation:function(e){e.addEventListener("touchstart",t.hitch(this,"_stopPropagation"),{passive:!1})},_stopPropagation:function(e){this._preventDefault(e),e.stopPropagation()},_preventDefault:function(e){e.preventDefault()},_setupDocument:function(){document.body.addEventListener("focusin",(function(){document.body.scrollTop=0}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4566)],o=i.dj.d(n,(e,t,i)=>class extends t{isApplicable(e,t){return e&&t.isAndroidTabletDevice()}requires(){return{isApplicable:["rtc.integration.touchmode","rtc.touch.service"],createInstance:["rtc.cursor","rtc.compacttoolstrip","rtc.touch.imeinput"]}}createInstance(){return new i(...arguments)}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(207),i(525)],o=i.dj.d(n,(e,t,i,n)=>class extends i{constructor(e,t,i){super(),this._cursor=e,this._compactToolstrip=t,this._touchInputEvent=i,this._eventSubscriptions()}_eventSubscriptions(){this.own(t.after(this._touchInputEvent,"onKeyCaptureMoved",this._updateCompactToolstripState.bind(this)))}_updateCompactToolstripState(){"code"===n.getParagraphFormat(this._cursor)?(this._compactToolstrip.enableRichTextButtons(!1),this._compactToolstrip.enableCodeButtons(!0)):(this._compactToolstrip.enableCodeButtons(!1),this._compactToolstrip.enableRichTextButtons(!0))}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4568)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.viewmanager","rtc.actionservice.external","rtc.focusservice","rtc.view","rtc.contextmenu.documentcontributor","rtc.cursor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(253),i(276),i(207),i(492),i(451),i(294),i(208)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([r,a],{_SPLIT_DIRECTION:{NONE:"rtc_split_none",LEFT_RIGHT:"rtc_split_left_right",TOP_BOTTOM:"rtc_split_top_bottom"},constructor:function(e,i,o,r,a,s){if(this._rtcViewManager=e,this._splitScreenBorderContainer=e.getExternalBorderContainer(),this._actionDataService=i,this._focusServiceWrapper=o,this._viewWrapper=r,this._documentContextMenuContributorWrapper=a,this._cursorWrapper=s,this._currentSplitDirection=this._SPLIT_DIRECTION.NONE,this._secondaryViewContentPane=null,this._directionToRegionMapping={},this._directionToRegionMapping[this._SPLIT_DIRECTION.LEFT_RIGHT]="right",this._directionToRegionMapping[this._SPLIT_DIRECTION.TOP_BOTTOM]="bottom",this._directionToRegionMapping[this._SPLIT_DIRECTION.NONE]=null,this._splitScreenBorderContainer){var l=[{id:this._SPLIT_DIRECTION.LEFT_RIGHT,enabled:!0,text:n.splitLeftRight,selected:!1,callback:t.hitch(this,"_handleSplit",this._SPLIT_DIRECTION.LEFT_RIGHT)},{id:this._SPLIT_DIRECTION.TOP_BOTTOM,enabled:!0,text:n.splitTopBottom,selected:!1,callback:t.hitch(this,"_handleSplit",this._SPLIT_DIRECTION.TOP_BOTTOM)},{id:this._SPLIT_DIRECTION.NONE,enabled:!0,text:n.splitNone,selected:!0,callback:t.hitch(this,"_handleSplit",this._SPLIT_DIRECTION.NONE)},{id:"rtc_split_switch",text:n.splitSwitch,enabled:!0,callback:t.hitch(this,"_switchView")}];this._actionDataService.loadActions(l),this._updateAllActions(),this.own(c.after(this._actionDataService,"onActionChange",this._onActionChange.bind(this),!0)),this.own(c.after(this._documentContextMenuContributorWrapper,"onPluginAdded",this._addActionsToContextMenu.bind(this),!0))}},_addActionsToContextMenu:function(e){var t={label:n.splitScreen,type:s.POPUP,children:[]};t.children.push({actionId:this._SPLIT_DIRECTION.TOP_BOTTOM,type:s.RADIOBUTTON}),t.children.push({actionId:this._SPLIT_DIRECTION.LEFT_RIGHT,type:s.RADIOBUTTON}),t.children.push({actionId:this._SPLIT_DIRECTION.NONE,type:s.RADIOBUTTON}),e.addActionToMap(l.SPLIT_SCREEN,t)},_updateAllActions:function(){var e=this._currentSplitDirection;this._actionDataService.updateAction(this._SPLIT_DIRECTION.NONE,{selected:e===this._SPLIT_DIRECTION.NONE}),this._actionDataService.updateAction(this._SPLIT_DIRECTION.LEFT_RIGHT,{selected:e===this._SPLIT_DIRECTION.LEFT_RIGHT}),this._actionDataService.updateAction(this._SPLIT_DIRECTION.TOP_BOTTOM,{selected:e===this._SPLIT_DIRECTION.TOP_BOTTOM})},_isSplitAction:function(e){return"rtc_split"===e.substring(0,"rtc_split".length)},_onActionChange:function(e){var t=e.id;if("selected"===e.key&&e.newValue&&this._isSplitAction(t)){var i=t;this._doSplit(i)}},_handleSplit:function(e,t){this._doSplit(e)},_doSplit:function(e,t){var i=this._currentSplitDirection;if(this._currentSplitDirection=e,this._updateAllActions(),e!==i){if(e===this._SPLIT_DIRECTION.NONE)return this._removeViewFromRegion(),this._destroyView(),void this._focusServiceWrapper.getCurrentInstance().setFocus();var n=this._getDataToMirror(i);i===this._SPLIT_DIRECTION.NONE?this._createView():this._removeViewFromRegion(),this._addViewToRegion(e,t),this._applyMirrorData(n)}},_createView:function(){var e=new o,t=i.create("div");i.place(t,e.domNode,"last"),this._rtcViewManager.createSecondaryView(t),this._secondaryViewContentPane=e},_destroyView:function(){this._rtcViewManager.destroySecondaryView(),this._secondaryViewContentPane=null},_getDataToMirror:function(e){const t=e===this._SPLIT_DIRECTION.NONE?0:1,i=this._viewWrapper.getAllInstances()[t],n=this._cursorWrapper.getAllInstances()[t];return i&&n?{scrollLine:i.getLineAtPercent(0),scrollLeft:i.getScrollLeft(),cursorLine:n.getPosition().line+1,cursorColumn:n.getPosition().column+1}:null},_applyMirrorData:function(e){const t=this._viewWrapper.getAllInstances()[1],i=this._cursorWrapper.getAllInstances()[1];e&&t&&i&&(t.scrollLineToPercent(e.scrollLine,0),t.setScrollLeft(e.scrollLeft),i.setLineColumn(e.cursorLine,e.cursorColumn,!1))},_addViewToRegion:function(e,t){void 0===t&&(t=.5);var i=this._getRegionFromDirection(e);this._splitScreenBorderContainer.addWithProperties(this._secondaryViewContentPane,{region:i,hasSplitter:!0,minSize:100,isResizable:!0,isCollapsible:!1,proportion:t,isProportional:!0}),this._splitScreenBorderContainer.resize()},_removeViewFromRegion:function(){var e=this._secondaryViewContentPane;this._splitScreenBorderContainer.removeChild(e),e.domNode.style.width=null,e.domNode.style.height=null},_getRegionFromDirection:function(e){return this._directionToRegionMapping[e]},_switchView:function(){if(this._currentSplitDirection===this._SPLIT_DIRECTION.NONE)return!1;var e=this._focusServiceWrapper.getCurrentInstance();return this._focusServiceWrapper.getAllInstances().some((function(t){return t!==e&&(t.setFocus(),!0)})),!0},serializePlugin:function(){if(this._currentSplitDirection!==this._SPLIT_DIRECTION.NONE){var e=this._getRegionFromDirection(this._currentSplitDirection);return{direction:this._currentSplitDirection,proportion:this._splitScreenBorderContainer.getProportion(e)}}},deserializePlugin:function(e,t){t.whenPrimaryViewReady(function(){this._doSplit(e.direction,e.proportion)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(4570)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.id","rtc.clientId"]}},createInstance:function(e,t){return new n(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(880),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){var r={ML_EDITOR_ACTIONS:{actionId:"",gesture:"",gestureSubType:"",metadata1:"",metadata2:"",metadata3:""}};return e(i,{constructor:function(e,t){this._rtcId=e,this._clientId=t,this._enabled=!0,t||(o.error("DDUX logging will not be enabled without a clientId"),this._enabled=!1),this._rtcBaseEvent={rtcSessionId:this._rtcId,clientId:this._clientId},n.start({product:"ML",appComponent:"ML_EDITOR",eventKey:"ML_EDITOR_ACTIONS"})},logEvent:function(e,i){if(this._enabled){i=i||"ML_EDITOR_ACTIONS";var a={};t.mixin(a,this._rtcBaseEvent),t.mixin(a,r[i]),t.mixin(a,e),"string"==typeof a.metadata1&&"string"==typeof a.metadata2&&"string"==typeof a.metadata3||o.error("Metadata keys should all be strings"),n.logData(a,{product:"ML",appComponent:"ML_EDITOR",eventKey:i})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(4572)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.actionservice","rtc.actionlistenerserviceblacklist"]}},createInstance:function(e,t){return new n(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,n){this._actionService=e,this._originalCallbacks={},this._reentrantGuard=!1,this._actionListenerServiceBlacklist=n,this.own(i.after(this._actionListenerServiceBlacklist,"onActionRemove",t.hitch(this,"_enableActionListener"),!0)),this.own(i.after(this._actionListenerServiceBlacklist,"onActionAdd",t.hitch(this,"_disableActionListener"),!0)),this.own(i.after(this._actionService,"addAction",t.hitch(this,"_handleAddAction"),!0)),this.own(i.after(this._actionService,"updateAction",t.hitch(this,"_handleUpdateAction"),!0)),this._addExistingActions()},_enableActionListener:function(e){if(!this._hasBeenAdded(e)){var t=this._actionService.getAction(e);t&&this._addListenerToExistingAction(t)}},_disableActionListener:function(e){this._hasBeenAdded(e)&&this._restoreCallback(e)},onPreAction:function(e,t){},onExecuteAction:function(e,t){},_addExistingActions:function(){this._actionService.getAllActions().forEach((function(e){this._addListenerToExistingAction(e)}),this)},_addListenerToExistingAction:function(e){this._hasBeenAdded(e.id)||!e.callback||this._actionListenerServiceBlacklist.isAdded(e.id)||this._wrapActionCallback(e.id,e.callback)},_hasBeenAdded:function(e){return this._originalCallbacks[e]},_handleAddAction:function(e){this._addListenerToExistingAction(e)},_restoreCallback:function(e){if(this._originalCallbacks.hasOwnProperty(e)){var t=this._originalCallbacks[e];delete this._originalCallbacks[e],this._actionService.updateAction(e,{callback:t})}},_newCallback:function(e,t,i){this.onPreAction(e,i);var n=t(i);return n&&this.onExecuteAction(e,i),n},_handleUpdateAction:function(e,t,i){t.callback&&!this._actionListenerServiceBlacklist.isAdded(e)&&this._wrapActionCallback(e,t.callback)},_wrapActionCallback:function(e,i){if(!this._reentrantGuard){this._reentrantGuard=!0,this._originalCallbacks[e]=i;var n={};n.callback=t.hitch(this,"_newCallback",e,i),this._actionService.updateAction(e,n),this._reentrantGuard=!1}},destroy:function(){this.inherited(arguments),this._originalCallbacks={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(4574)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:[]}},createInstance:function(){return new n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){this._blacklistedActions={}},isAdded:function(e){return!0===this._blacklistedActions[e]},onActionAdd:function(e){},onActionRemove:function(e){},addAction:function(e){this._blacklistedActions[e]=!0,this.onActionAdd(e)},removeAction:function(e){delete this._blacklistedActions[e],this.onActionRemove(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(4576)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.dduxusagelogger","rtc.actionlistenerservice","rtc.actionloggerserviceblacklist"]}},createInstance:function(e,t,i){return new n(e,t,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(512),i(410),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_BATCH_TIME_PERIOD:0,constructor:function(e,n,o){this._dduxUsageLogger=e,this._actionListenerService=n,this._actionLoggerServiceBlacklist=o,this._actionCache={},this.initializeAsyncBatchedActionLoggingCallback(),this.own(i.after(this._actionListenerService,"onExecuteAction",t.hitch(this,"_handleExecuteAction"),!0))},initializeAsyncBatchedActionLoggingCallback:function(){this._asyncLogActionCache=o(this._logActionCache,this._BATCH_TIME_PERIOD)},_handleExecuteAction:function(e,t){if(!this._actionLoggerServiceBlacklist.isAdded(e)){var i="other";t&&t.actionOrigin&&(i=t.actionOrigin),this._logAction(e,i)}},_cacheAction:function(e){var t=n.stringify(e);this._actionCache[t]||(this._actionCache[t]=0),this._actionCache[t]+=1},_logActionCache:function(){for(var e=Object.keys(this._actionCache),t=0;t<e.length;t++){var i=e[t],o=n.parse(i);o.count=this._actionCache[i],this._dduxUsageLogger.logEvent(o)}this._actionCache={}},_logAction:function(e,t){var i={actionId:e,gesture:t};this._BATCH_TIME_PERIOD>0?(this._cacheAction(i),this._asyncLogActionCache()):this._dduxUsageLogger.logEvent(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4578)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(207),i(281)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._backingStore=e},getArtifactId:function(){return""===n.getAbsoluteFilePathFromBackingStore(this._backingStore)?null:this._backingStore.getFilePath()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4580)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.ddux.compositionlogging.trigger","rtc.ddux.composition.contributors","rtc.ddux.compositionlogging.artifact"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(880),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){var r=/[^0-9a-zA-Z]/g,a=/[a-z]/g;return e(t,{constructor:function(e,t,n){this._artifactService=n,this._compositionContributors=t||[],this.componentCounts=null,i.after(e,"onTrigger",this._handleTrigger.bind(this),!0)},_handleTrigger:function(){var e={};this._compositionContributors.forEach((function(t){var i=t.getComponents();i&&Object.keys(i).forEach((function(t){if(e.hasOwnProperty(t))o.error("Trying to overwrite existing property");else{var n=this._processKey(t);e[n]=i[t]}}),this)}),this),this.componentCounts=e,this._logComposition(e)},_logComposition:function(e){var t=this._artifactService.getArtifactId();if(null!=t){var i={artifactType:"MATLAB_FILE",artifactId:t};n.logComposition(i,{},e)}},_processKey:function(e){return(e=(e=e.replace(r,"")).slice(-64)).charAt(0).match(a)||(e=64===e.length?"a"+e.slice(1):"a"+e),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4582)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._backingStore=e,"function"==typeof this._backingStore.onSaveCompleted&&i.after(e,"onSaveCompleted",this._handleSave.bind(this)),"function"==typeof this._backingStore.onLocationUpdated&&i.after(e,"onLocationUpdated",this._handleFileNameUpdated.bind(this))},_handleFileNameUpdated:function(e){this.onTrigger()},_handleSave:function(){if("function"==typeof this._backingStore.getFileLocation){if(""===this._backingStore.getFileLocation())return;this.onTrigger()}},onTrigger:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(4584)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.dduxusagelogger","rtc.ddux.contributors"]}},createInstance:function(e,t){return new n(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,n){this._dduxUsageLogger=e,this._dduxContributors=n,this._dduxContributors.forEach((function(e){this.own(i.after(e,"onLogEvent",t.hitch(this,"_logData"),!0))}),this)},_logData:function(e){this._dduxUsageLogger.logEvent(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4586)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursorcontroller","rtc.imeinput","rtc.keyhandler","screenReaderContributors"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(221),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){var r=String.fromCharCode(8230);return e(o,{constructor:function(e,t,i,n,o){this._internalDocument=e,this._cursorController=t,this._keyHandler=n,this._imeInput=i,this._handlers=[],this._keyCaptureHandled=!1,this._paused=!1,this._contributors=o||[],this.toggleScreenReaderAccessibility(!0)},toggleScreenReaderAccessibility:function(e){e?this._enableScreenReaderAccessibility():this._disableScreenReaderAccessibility()},setTitleLabel:function(e){this._keyHandler.keyCapture.setAttribute("aria-label",e)},_enableScreenReaderAccessibility:function(){this._handlers.push(i.after(this._keyHandler,"onKeyDownBegin",t.hitch(this,this._handleOnKeyDownBegin))),this._handlers.push(i.after(this._keyHandler,"onKeyDownEnd",t.hitch(this,this._handleOnKeyDownEnd))),this._handlers.push(i.before(this._keyHandler,"prepareKeyCapture",t.hitch(this,this._handleBeforePrepareKeyCapture))),this._handlers.push(i.after(this._keyHandler,"prepareKeyCapture",t.hitch(this,this._handleAfterPrepareKeyCapture),!0)),this._addSupportForIME()},_addSupportForIME:function(){(n("safari")||n("ff"))&&(this._handlers.push(i.after(this._imeInput,"onCompositionstart",this._handleCompositionstart.bind(this))),this._handlers.push(i.after(this._imeInput,"onAfterCompositionend",this._handleCompositionend.bind(this))));var e="en-us"!==window.navigator.language.toLowerCase()||"en"!==window.navigator.language.toLowerCase();n("ff")&&e?this._keyHandler.listenTo("keypress",this._handleOnKeyDownBegin.bind(this)):n("mac")&&n("safari")?this._keyHandler.listenTo("textInput",this._handleOnKeyDownBegin.bind(this)):this._keyHandler.listenTo("beforeinput",this._handleOnKeyDownBegin.bind(this))},_handleCompositionstart:function(){this._handleOnKeyDownBegin(),this._paused=!0},_handleCompositionend:function(){this._paused=!1},_disableScreenReaderAccessibility:function(){this._destroyHandlers(),this._keyHandler.resetSelectedText()},_handleOnKeyDownBegin:function(){this._paused||(this._keyCaptureHandled=!1,this._cursorController.hasSelection()||this._keyHandler.setKeyCaptureValue(""))},_handleOnKeyDownEnd:function(){this._paused||this._cursorController.hasSelection()||this._keyCaptureHandled||this._handleAfterPrepareKeyCapture(!1)},_getSegmentsForMultipleCursors:function(){for(var e=this._cursorController.getCursors(!0),t="",i="",n=0;n<10;n++)t+=e[n].selectedText(),i=e[e.length-n-1].selectedText()+i,9!==n&&(t+="\n",i="\n"+i);return{topSegment:t,bottomSegment:i}},_getSegmentsForSingleCursor:function(e){var t,i,n=e.start.line,o=e.end.line,r=e.start.column,a=e.end.column;if(n>o){var s=n;n=o,o=s,s=r,r=a,a=s}return t=this._internalDocument.getRangeForLineColumn(n,r,n+10,1),i=this._internalDocument.getRangeForLineColumn(o-10+1,1,o,a),{topSegment:this._internalDocument.getTextInRange(t),bottomSegment:this._internalDocument.getTextInRange(i)}},_trimSegments:function(e){var t=e.topSegment.length,i=e.bottomSegment.length;return t>500&&(e.topSegment=e.topSegment.substring(0,500)),i>500&&(e.bottomSegment=e.bottomSegment.substring(i-500)),e},_getClippedSelectedText:function(){var e,t,i=this._cursorController.getSelectionLineColumn();return e=i.length>1?this._getSegmentsForMultipleCursors():this._getSegmentsForSingleCursor(i[0]),(t=(t=(e=this._trimSegments(e)).topSegment+r+e.bottomSegment).trim())===r?"":t},getSegmentMaxLines:function(){return 10},getSegmentSeparator:function(){return r},_handleBeforePrepareKeyCapture:function(e){var t;e&&(""!==(t=this._cursorController.getNumberOfSelectedLines()>20?this._getClippedSelectedText():this._cursorController.selectedText())?this._keyHandler.setSelectedText(t):this._keyHandler.resetSelectedText())},_handleAfterPrepareKeyCapture:function(e){if(!this._paused&&!e){var t=this._cursorController.getCursor(),i=t.getNode().rootContainer(),n=t.getLineColumn().column,o="";this._contributors.forEach((function(e){var t=e.appendInformation();t&&(o=o+t+" ")}));var r=o.length;o=o+i.getText()+"\n",this._keyHandler.setKeyCaptureValue(o),this._setCaretPosition(this._keyHandler.keyCapture,r+n-1),this._keyCaptureHandled=!0}},_setCaretPosition:function(e,t){e.selectionStart&&e.setSelectionRange(t,t)},_destroyHandlers:function(){this._handlers.forEach((function(e){e.remove()})),this._handlers=[]},destroy:function(){this._destroyHandlers(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4588)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.linenumberpreference","rtc.cursorcontroller","rtc.linenumberservice"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(253),i(4589)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t,i){this._cursorController=t,this._lineNumberPreference=e,this._lineNumberService=i},appendInformation:function(){var e=null;if(!this._cursorController.hasSelection()&&this._lineNumberPreference.isEnabled()){var t=this._cursorController.getCursor();e="Line "+(this._lineNumberService.getLineNumberFromCodeLineNumber(t.getLineColumn().line)+1)}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{appendInformation:function(){throw new Error("Unimplemented API: contribute")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2012)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service","rtc.view.styles.globalstylechanger"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4592)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document.info","rtc.document.modification","rtc.backingstore","rtc.settings.service"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,n,o){this.own(i.before(n,"onBeforeSave",this._checkAndAddLineAtEnd.bind(this,e,t,o)))},_checkAndAddLineAtEnd:function(e,t,i){var n=e.getEndOfDocumentLineColumn(),o=e.getLineText(n.line),r=i.get("matlab.editor.AddLineTerminationOnSave",!1);""!==o.trim()&&r&&t.insertText("\n",n.line,n.column)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4594)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.actionservice.external","rtc.domnode.external","rtc.contextmenu.documentcontributor","rtc.keyhandler","rtc.settings.service","rtc.view.zoommodel","rtc.zoom.configuration","zoomhandlers"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(245),i(208),i(253),i(477),i(527),i(933),i(209),i(251),i(207),i(294),i(451)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(u,{_ALLOW_ZOOM_GESTURES_SETTING:"matlab.editor.displaysettings.EnableZoomOnScroll",_DISABLE_RESET_ZOOM_SHORTCUTS:"matlab.editor.displaysettings.DisableResetZoomKeyboardShortcut",constructor:function(e,t,i,n,o,r,a,s,l){this._view=e,this._actionService=t,this._rtcExternalDomNode=i,this._documentContextMenuContributorWrapper=n,this._keyHandlerWrapper=o,this._settingService=r,this._zoomModel=a,this._zoomConfiguration=s,this._zoomHandlers=l.getCurrentInstance?[]:l,this._gestureDetector=null,this._setUpActions(),this._scrollDelta=0,this._allowGestures=!0,this._setUpAdditionalKeybindingsAndGestures(),this._synchronizeZoomAcrossAllEditors()},_setUpActions:function(){this._actions=[{id:d.ZOOM.ZOOM_IN.Action,enabled:!0,key:"ctrl_+",platformKey:{mac:"meta_shift_+"},description:d.ZOOM.ZOOM_IN.Description,text:d.ZOOM.ZOOM_IN.Text,callback:i.hitch(this,"_zoomIn")},{id:d.ZOOM.ZOOM_OUT.Action,enabled:!0,key:"ctrl_-",platformKey:{mac:"meta_shift_-"},description:d.ZOOM.ZOOM_OUT.Description,text:d.ZOOM.ZOOM_OUT.Text,callback:i.hitch(this,"_zoomOut")},{id:d.ZOOM.RESET_ZOOM.Action,enabled:!0,key:"ctrl_alt_0",platformKey:{mac:"meta_alt_0"},description:d.ZOOM.RESET_ZOOM.Description,text:d.ZOOM.RESET_ZOOM.Text,callback:i.hitch(this,"_resetZoom")}],this._actionService.loadActions(this._actions)},_setUpAdditionalKeybindingsAndGestures:function(){this.own(o.after(this._keyHandlerWrapper,"onPluginAdded",this._addAdditionalKeyBindings.bind(this),!0)),this.own(this._settingService.listenToSettingChange(this._ALLOW_ZOOM_GESTURES_SETTING,function(e){this._handleGestureSettingUpdated(e)}.bind(this))),this._settingService.getSetting(this._ALLOW_ZOOM_GESTURES_SETTING).then(function(e){this._handleGestureSettingUpdated(e)}.bind(this),function(e){c.warn(e),this._handleGestureSettingUpdated(!0)}.bind(this))},_addAdditionalKeyBindings:function(e){e.addBinding({key:"ctrl_=",platformKey:{mac:"meta_="}},d.ZOOM.ZOOM_IN.Action),e.addBinding({key:"ctrl_shift_=",platformKey:{mac:"meta_shift_="}},d.ZOOM.ZOOM_IN.Action),e.addBinding({key:"ctrl_numpad-+",platformKey:{mac:"meta_numpad-+"}},d.ZOOM.ZOOM_IN.Action),e.addBinding({platformKey:{mac:"meta_+"}},d.ZOOM.ZOOM_IN.Action),e.addBinding({key:"ctrl_numpad--",platformKey:{mac:"meta_numpad--"}},d.ZOOM.ZOOM_OUT.Action),e.addBinding({platformKey:{mac:"meta_-"}},d.ZOOM.ZOOM_OUT.Action),this.own(this._settingService.listenToSettingChange(this._DISABLE_RESET_ZOOM_SHORTCUTS,function(t){this._handleResetZoomShortcutDisablementSettingUpdated(e,t)}.bind(this))),this._settingService.getSetting(this._DISABLE_RESET_ZOOM_SHORTCUTS).then(function(t){this._handleResetZoomShortcutDisablementSettingUpdated(e,t)}.bind(this),function(t){c.warn(t),this._handleResetZoomShortcutDisablementSettingUpdated(e,!1)}.bind(this))},_setUpGestureHandling:function(){this._view.whenInstanceAvailable(this._addGestureHandling.bind(this))},_handleGestureSettingUpdated:function(e){this._allowGestures=e,e?this._setUpGestureHandling():this._removeGestureHandling()},_handleResetZoomShortcutDisablementSettingUpdated:function(e,t){let i=t?e.removeBinding.bind(e):e.addBinding.bind(e);this._updateResetZoomShortcuts(i)},_updateResetZoomShortcuts:function(e){e({key:"ctrl_alt_0",platformKey:{mac:"meta_alt_0"}},d.ZOOM.RESET_ZOOM.Action),e({key:"ctrl_alt_numpad-0",platformKey:{mac:"meta_alt_numpad-0"}},d.ZOOM.RESET_ZOOM.Action)},_addGestureHandling:function(){this._gestureDetector||this._allowGestures&&this._createGestureDetector()},_createGestureDetector:function(){this._gestureDetector=new a(this._rtcExternalDomNode);var e=s.wheel({options:{pointerTypes:[l.MOUSE,l.TOUCH,l.PEN]},callbacks:{recognized:this._handleWheelGestureRecognized.bind(this)}});this._gestureDetector.add(e)},_removeGestureHandling:function(){this._gestureDetector&&(this._gestureDetector.destroy(),this._gestureDetector=null)},_handleWheelGestureRecognized:function(e){var i=e.srcEvent;(n("mac")?i.metaKey:i.ctrlKey)&&(t.stop(i),this._scrollDelta+=i.deltaY,this._scrollDelta>=this._zoomConfiguration.SCROLL_THRESHOLD?(this._zoomOut(),this._scrollDelta=0):this._scrollDelta<=-1*this._zoomConfiguration.SCROLL_THRESHOLD&&(this._zoomIn(),this._scrollDelta=0))},_synchronizeZoomAcrossAllEditors:function(){this.own(this._settingService.listenToSettingChange(this._zoomConfiguration.CURRENT_ZOOM_FACTOR_SETTING,function(e){this._handleCurrentZoomSettingUpdated(e)}.bind(this))),this._settingService.getSetting(this._zoomConfiguration.CURRENT_ZOOM_FACTOR_SETTING).then(function(e){this._updateActions(),this._handleCurrentZoomSettingUpdated(e)}.bind(this),function(e){c.warn(e),this._initializeDefaultZoomLevel()}.bind(this))},_handleCurrentZoomSettingUpdated:function(e){this._zoomModel.getZoomFactor()!==e&&(this._zoomModel.setZoomFactor(e,!1),this._updateActions())},_initializeDefaultZoomLevel:function(){var e=this._zoomConfiguration.getDefaultZoomFactor();e!==this._zoomModel.getZoomFactor()?this._setZoomLevel(e):this._updateActions()},_addActionsToContextMenu:function(e){var t=[{actionId:d.ZOOM.ZOOM_IN.Action,type:p.DEFAULT},{actionId:d.ZOOM.ZOOM_OUT.Action,type:p.DEFAULT},{actionId:d.ZOOM.RESET_ZOOM.Action,type:p.DEFAULT}],i={label:r.zoomLabel,type:p.POPUP,children:t,priority:-1};e.addActionToMap(h.DEFAULT,i)},_zoomIn:function(){if(!this._canZoomIn())return!1;var e=this._zoomConfiguration.getNextZoomFactor(this._zoomModel.getZoomFactor());return this._setZoomLevel(e),!0},_zoomOut:function(){if(!this._canZoomOut())return!1;var e=this._zoomConfiguration.getPreviousZoomFactor(this._zoomModel.getZoomFactor());return this._setZoomLevel(e),!0},_resetZoom:function(){if(!this._canReset())return!1;var e=this._zoomConfiguration.getDefaultZoomFactor();return this._setZoomLevel(e),!0},_setZoomLevel:function(e){this._zoomModel.setZoomFactor(e,!0),this._zoomHandlers.forEach((function(t){try{t.setZoomFactor(e)}catch(e){c.error(e)}})),this._updateActions()},_updateActions:function(){this._actionService.updateAction(d.ZOOM.ZOOM_IN.Action,{enabled:this._canZoomIn()}),this._actionService.updateAction(d.ZOOM.ZOOM_OUT.Action,{enabled:this._canZoomOut()}),this._actionService.updateAction(d.ZOOM.RESET_ZOOM.Action,{enabled:this._canReset()})},_canZoomIn:function(){return!this._zoomConfiguration.isMaximumZoomFactor(this._zoomModel.getZoomFactor())},_canZoomOut:function(){return!this._zoomConfiguration.isMinimumZoomFactor(this._zoomModel.getZoomFactor())},_canReset:function(){return!this._zoomConfiguration.isDefaultZoomFactor(this._zoomModel.getZoomFactor())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4596)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{SCROLL_THRESHOLD:100,_ZOOM_FACTORS:[.25,.33,.5,.67,.75,.8,.9,1,1.1,1.25,1.5,1.75,2,2.5,3,4,5],CURRENT_ZOOM_FACTOR_SETTING:"matlab.editor.displaysettings.CurrentZoomFactor",constructor:function(e){e||(e=1),this._defaultZoomIndex=Math.max(this._getIndexForZoomFactor(e),0)},_getIndexForZoomFactor:function(e){var i=this._ZOOM_FACTORS.indexOf(e);return i>=0?i:(t.error("Zoom factor "+e+" does not exist in the allowable zoom levels. Defaulting to minimum zoom."),-1)},getDefaultZoomFactor:function(){return this._ZOOM_FACTORS[this._defaultZoomIndex]},getNextZoomFactor:function(e){var t=this._getIndexForZoomFactor(e)+1;return t=Math.min(t,this._ZOOM_FACTORS.length-1),this._ZOOM_FACTORS[t]},getPreviousZoomFactor:function(e){var t=this._getIndexForZoomFactor(e)-1;return t=Math.max(t,0),this._ZOOM_FACTORS[t]},isDefaultZoomFactor:function(e){return this._ZOOM_FACTORS[this._defaultZoomIndex]===e},isMinimumZoomFactor:function(e){return this._ZOOM_FACTORS[0]>=e},isMaximumZoomFactor:function(e){var t=this._ZOOM_FACTORS.length-1;return this._ZOOM_FACTORS[t]<=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4598)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.domnode.external","rtc.view.zoommodel"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_CSS_CLASS:"zoomLevelIndicator",_DEFAULT_TIMEOUT:1e3,constructor:function(e,t){this._rtcExternalDomNode=e,this._zoomModel=t,this._zoomIndicator=null,this.own(n.after(this._zoomModel,"onZoomFactorUpdate",this._handleZoomFactorUpdate.bind(this),!0))},_handleZoomFactorUpdate:function(e,t){t&&(this._timer&&(clearTimeout(this._timer),this._timer=null),this._zoomIndicator||(this._zoomIndicator=this._createIndicator()),this._zoomIndicator.innerHTML=Math.round(100*e)+"%",this._timer=setTimeout(this._removeIndicator.bind(this),this._DEFAULT_TIMEOUT))},_createIndicator:function(){return t.create("div",{className:this._CSS_CLASS},this._rtcExternalDomNode,"last")},_removeIndicator:function(){this._zoomIndicator&&(t.destroy(this._zoomIndicator),this._zoomIndicator=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4600)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service","rtc.zoom.configuration"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(4601)],o=i.dj.d(n,(function(e,t,i){return e(i,{_ZOOM_LEVEL_CHANGE_REQUEST:"setZoomLevel:zoomIn:",constructor:function(e,t){this._settingService=e,this._zoomConfiguration=t},setZoomFactor:function(e){if(window.cefQuery){var i=Math.round(100*e);window.cefQuery({request:this._getZoomChangeRequest(i)}),this._settingService.setSetting(this._zoomConfiguration.CURRENT_ZOOM_FACTOR_SETTING,e)}else t.error("window.cefQuery does not exist. Cannot set the zoom factor.")},_getZoomChangeRequest:function(e){return this._ZOOM_LEVEL_CHANGE_REQUEST+e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},setZoomFactor:function(e){throw new Error("rtc.plugins.zoom.AbstractZoomHandler Unimplemented method: setZoomFactor")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4603)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._currentZoomFactor=1},onZoomFactorUpdate:function(e,t){},getZoomFactor:function(){return this._currentZoomFactor},setZoomFactor:function(e,t){e!==this._currentZoomFactor&&(this._currentZoomFactor=e,this.onZoomFactorUpdate(e,t))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4605)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i(null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(219),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_NOTIFY_CHANNEL:"/editor/event-notification",_REQUEST_CHANNEL:"/editor/event-notification-request",constructor:function(e){this._messageService=e||n},publish:function(e,t,n){i.assert("boolean"==typeof n,'Input argument "shouldCache" must be a boolean.');const o=this._createPublishDataMap(e,t,n);this._messageService.publish(this._NOTIFY_CHANNEL,o)},request:function(e){const t=this._createRequestDataMap(e);this._messageService.publish(this._REQUEST_CHANNEL,t)},_createPublishDataMap:function(e,t,i){return{messageChannel:e,messageData:t,shouldCacheData:i}},_createRequestDataMap:function(e){return{messageChannel:e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4607)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursor","rtc.actionservice","rtc.nodeconversionrulesservice","rtc.richtext"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(253),i(1433),i(582),i(399),i(251),i(347),i(525)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(a,{constructor:function(e,i,o,r,a){this._internalDocument=e,this._cursor=i,this._actionService=o,this._nodeConversionRules=r,this._richText=a,this._actions=[{id:s.RICH_TEXT.TOGGLE_CODE_AND_TEXT_ACTION,text:n.toggleCodeText,enabled:!c.isReadOnly(this._internalDocument,this._cursor),callback:t.hitch(this,"_toggleCodeAndText")}],this._actionService.loadActions(this._actions),this._addListeners()},_addListeners:function(){this._handles=[],this._handles.push(i.after(this._cursor,"onChange",t.hitch(this,"_updateActions"))),this._handles.forEach((function(e){this.own(e)}),this)},enableForHiddenCode:function(){this._addListeners(),this._updateActions()},disableForHiddenCode:function(){this._actions.forEach((function(e){this._actionService.updateAction(e.id,{enabled:!1})}),this),this._removeListeners()},_updateActions:function(){this._actionService.updateAction(s.RICH_TEXT.TOGGLE_CODE_AND_TEXT_ACTION,{enabled:this.isActionEnabled()})},isActionEnabled:function(){return o.textContainersInCursorConvertibleTo(this._cursor,l,this._nodeConversionRules)&&!c.isReadOnly(this._internalDocument,this._cursor)},_toggleCodeAndText:function(){return!(!this._actionService.getAction(s.RICH_TEXT.TOGGLE_CODE_AND_TEXT_ACTION).enabled||c.isReadOnly(this._internalDocument,this._cursor))&&("code"===c.getParagraphFormat(this._cursor)?this._richText.setParagraphFormat(r.NORMAL.FORMAT):this._richText.setParagraphFormat("code"),!0)},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},destroy:function(){this.inherited(arguments),this._removeListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4609)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.toggletextandcode"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(251),i(294),i(525)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(null,{_CONTEXT_MENU_GROUP:i.DEFAULT,_ACTIONS:[{id:t.RICH_TEXT.TOGGLE_CODE_AND_TEXT_ACTION,key:"ctrl_e",platformKey:{mac:"ctrl_meta_e"}}],constructor:function(e,t){n.updateActionShortcuts(e,this._ACTIONS),this._contextMenuContributor=t,this._addActionsToContextMenu()},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,t.RICH_TEXT.TOGGLE_CODE_AND_TEXT_ACTION)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(678),i(4611),i(4613),i(4615),i(4617),i(4619),i(4622),i(4624),i(4627),i(4629),i(4631),i(4633),i(4634),i(4636),i(4638),i(4640),i(4642),i(4649),i(4651),i(4653),i(4655),i(4657),i(2018),i(4665),i(4667),i(4669),i(4671),i(4673),i(4675),i(4677),i(4679),i(4681),i(4683),i(4686),i(4688),i(4695),i(4698),i(4700),i(4702),i(4704),i(4706),i(4707),i(4709),i(4711),i(4713),i(4750),i(4752),i(4754),i(4756),i(4758),i(4760),i(4764),i(4766),i(4768),i(4769),i(4771),i(4773),i(4775),i(4880),i(4884),i(4886),i(4888),i(4890),i(4892),i(4895),i(4897),i(4900),i(4902),i(4904),i(4907),i(4909),i(4911),i(4913),i(4915),i(4917),i(4919),i(4923),i(4925),i(4927),i(4931),i(4934),i(4936),i(4940),i(4942),i(4944),i(4946),i(4948),i(4950),i(4953),i(4955),i(4957),i(4961),i(4963),i(4966),i(4968),i(4970),i(1910),i(4971),i(4974),i(4977),i(4979),i(4982),i(4984),i(4986),i(4989),i(4991)],o=i.dj.d(n,(function(e){return new e("EmbeddedOutputsPluginRegistry",[{id:"rtc.outputhandlerservice",path:"rtc/plugins/service/OutputHandlerServiceProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.synchronousrequestexecutor",path:"rtc/plugins/execution/SynchronousRequestExecutorProvider",family:"embeddedoutputs",subsystem:"rtc.requestexecutors"},{id:"rtc.embeddedoutputs.accessibility.featureflag",path:"rtc/plugins/embeddedoutputs/AccessibilityFeatureFlagProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.linecontinuationtracker",path:"rtc/plugins/embeddedoutputs/executiontracking/LineContinuationTrackerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.outputremover",path:"rtc/plugins/embeddedoutputs/OutputRemoverProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.syntaxerrors",path:"rtc/plugins/embeddedoutputs/SyntaxErrorHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.loadinterceptors.manager",path:"rtc/plugins/embeddedoutputs/loadinterceptors/EmbeddedOutputsLoadInterceptorManagerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.loadinterceptors.deferredloader",path:"rtc/plugins/embeddedoutputs/loadinterceptors/DeferredLoadInterceptorProvider",family:"embeddedoutputs",subsystem:"rtc.embeddedoutputs.loadinterceptors"},{id:"rtc.embeddedoutputs.model.load",path:"rtc/plugins/embeddedoutputs/model/EmbeddedOutputsLoadProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.model",path:"rtc/plugins/embeddedoutputs/model/EmbeddedOutputsModelProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.model.save",path:"rtc/plugins/embeddedoutputs/model/EmbeddedOutputsSaveProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.model.io.outputchangenotifier",path:"rtc/plugins/embeddedoutputs/model/io/OutputChangeNotifierProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.alert",path:"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsAlertProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.unrequestedrequestexecutor",path:"rtc/plugins/embeddedoutputs/UnrequestedRequestExecutorProvider",family:"embeddedoutputs",subsystem:"rtc.requestexecutors"},{id:"rtc.embeddedoutputs.view",path:"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsViewProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.view.viewmodel",path:"rtc/plugins/embeddedoutputs/view/EmbeddedOutputsViewModelProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.readybusyerrorcontributor",path:"rtc/plugins/embeddedoutputs/view/ReadyBusyErrorContributorProvider",family:"embeddedoutputs",subsystem:"rtc.readybusyindicator.contributors"},{id:"rtc.embeddedoutputs.view.rightpanel",path:"rtc/plugins/embeddedoutputs/view/RightPanelProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.view.suggestionsicon",path:"rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsIconProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.view.suggestionsnotifier",path:"rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsNotifierProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.view.suggestionsnotifiersetting",path:"rtc/plugins/embeddedoutputs/view/suggestions/SuggestionsNotifierSettingProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.copyoutputs",path:"rtc/plugins/embeddedoutputs/CopyOutputsProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.clearoutputscache",path:"rtc/plugins/embeddedoutputs/ClearOutputsCacheProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.currentoutputservice",path:"rtc/plugins/embeddedoutputs/CurrentOutputServiceProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.figureoutputhandler",path:"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureOutputHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.contextmenu",path:"rtc/plugins/embeddedoutputs/EmbeddedOutputsContextMenuContributorProvider",family:"embeddedoutputs",subsystem:"contextmenucontributor"},{id:"rtc.embeddedoutputs",path:"rtc/plugins/embeddedoutputs/EmbeddedOutputsProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.executiontracker",path:"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsExecutionStateTrackerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.disconnectionrecovery",path:"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsDisconnectionRecoveryManagerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.missingoutputsupport",path:"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsMissingOutputSupportProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.malformedexecutionsupport",path:"rtc/plugins/embeddedoutputs/executionState/EmbeddedOutputsMalformedExecutionSupportProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.dataservice",path:"rtc/plugins/embeddedoutputs/EmbeddedOutputDataServiceProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.regiondataservice",path:"rtc/plugins/embeddedoutputs/RegionDataServiceProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.embeddedoutputsrequestexecutor",path:"rtc/plugins/embeddedoutputs/EmbeddedOutputsRequestExecutorProvider",family:"embeddedoutputs",subsystem:"rtc.requestexecutors"},{id:"rtc.embeddedoutputs.externaloutputhandler",path:"rtc/plugins/embeddedoutputs/ExternalEmbeddedOutputsEvaluationLifecycleHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.externalstatehandler",path:"rtc/plugins/embeddedoutputs/ExternalStateHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.outputhandler",path:"rtc/plugins/embeddedoutputs/OutputHandlerProvider",family:"embeddedoutputs",subsystem:"rtc.embeddedoutputs.outputhandler.optional"},{id:"rtc.embeddedoutputs.outputmodelcontroller",path:"rtc/plugins/embeddedoutputs/OutputModelControllerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.saveready",path:"rtc/plugins/embeddedoutputs/EmbeddedOutputsDBQuitSaveReadyProvider"},{id:"rtc.embeddedoutputs.saveinterceptor",path:"rtc/plugins/embeddedoutputs/EmbeddedOutputsReadySaveInterceptorProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.groupingtracker",path:"rtc/plugins/embeddedoutputs/executiontracking/GroupingTrackerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.figureconnectionmanager",path:"rtc/plugins/embeddedoutputs/outputhandlers/figure/FigureConnectionManagerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.codegen",path:"rtc/plugins/embeddedoutputs/codegen/CodeGenFactoryProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.matrixoutputhandler",path:"rtc/plugins/embeddedoutputs/outputhandlers/matrix/MatrixOutputHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.variableoutputhandler",path:"rtc/plugins/embeddedoutputs/outputhandlers/variable/VariableOutputHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.variablestringoutputhandler",path:"rtc/plugins/embeddedoutputs/outputhandlers/variablestring/VariableStringOutputHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.suggestionscodepreview",path:"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SuggestionsCodePreviewProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.symbolicautoevaluationsetting",path:"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicAutoEvaluationSettingProvider",family:"embeddedoutputs"},{id:"rtc.contextmenu.symboliccontributor",path:"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicContextMenuContributorProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.symbolicequationmanager",path:"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicEquationManagerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.symbolicoutputhandler",path:"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/SymbolicOutputHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.textoutputhandler",path:"rtc/plugins/embeddedoutputs/outputhandlers/text/TextOutputHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.warningoutputhandler",path:"rtc/plugins/embeddedoutputs/outputhandlers/warning/WarningOutputHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.erroroutputhandler",path:"rtc/plugins/embeddedoutputs/outputhandlers/error/ErrorOutputHandlerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.view.alignmentmanager",path:"rtc/plugins/embeddedoutputs/view/onright/AlignmentManagerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.view.alignmentcache",path:"rtc/plugins/embeddedoutputs/view/onright/AlignmentCacheProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.view.currentelementmanager",path:"rtc/plugins/embeddedoutputs/view/onright/CurrentElementManagerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.view.onright",path:"rtc/plugins/embeddedoutputs/view/onright/OnrightViewProvider",family:"embeddedoutputs",subsystem:"embeddedoutputsviews",requiredForSubsystem:!0},{id:"rtc.embeddedoutputs.view.splitterpositioncontroller",path:"rtc/plugins/embeddedoutputs/view/onright/SplitterPositionControllerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.viewbuttonpanel",path:"rtc/plugins/embeddedoutputs/view/ViewButtonPanelProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.viewnametoviewmap",path:"rtc/plugins/embeddedoutputs/view/ViewNameToViewMapProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.view.inline",path:"rtc/plugins/embeddedoutputs/view/inline/InlineViewProvider",family:"embeddedoutputs",subsystem:"embeddedoutputsviews",requiredForSubsystem:!0},{id:"rtc.embeddedoutputs.view.hidecode",path:"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeViewProvider",family:"embeddedoutputs",subsystem:"embeddedoutputsviews",requiredForSubsystem:!0},{id:"rtc.embeddedoutputs.view.hidecode.codegencontributors",path:"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeViewCodeGenContributorProvider",family:"embeddedoutputs",subsystem:"rtc.embeddedoutputs.codegencontributors"},{id:"rtc.embeddedoutputs.view.hidecodeswitch",path:"rtc/plugins/embeddedoutputs/view/hidecode/HideCodeViewSwitchProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.view.slide",path:"rtc/plugins/embeddedoutputs/view/slide/SlideViewProvider",family:"slideview"},{id:"rtc.embeddedoutputs.warningbanner",path:"rtc/plugins/embeddedoutputs/WarningBannerProvider",family:"embeddedoutputs",subsystem:"rtc.ddux.contributors"},{id:"rtc.embeddedoutputs.splitterpositionmodel",path:"rtc/plugins/embeddedoutputs/model/SplitterPositionModelProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.focusableoutputsactions",path:"rtc/plugins/embeddedoutputs/FocusableOutputsActionsProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.keyboardshortcuts",path:"rtc/plugins/embeddedoutputs/KeyboardShortcutsProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.keyboardshortcutforwarding",path:"rtc/plugins/embeddedoutputs/KeyboardShortcutForwardingProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.outputfocusmanager",path:"rtc/plugins/embeddedoutputs/OutputFocusManagerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.toggleoutputcode",path:"rtc/plugins/embeddedoutputs/ToggleOutputCodeProvider",family:"embeddedoutputs"},{id:"rtc.execution.margin.readybusyindicator",path:"rtc/plugins/execution/margin/ReadyBusyIndicatorProvider",family:"embeddedoutputs"},{id:"rtc.export.html.linenode",path:"rtc/plugins/export/html/LineNodeWithOutput2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"embeddedoutputs"},{id:"rtc.export.output.docbookxml.variableelement",path:"rtc/plugins/embeddedoutputs/outputhandlers/variable/export/VariableElement2DocBookXMLProvider",subsystem:"rtc.export.docbookxmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.docbookxml.variablestringelement",path:"rtc/plugins/embeddedoutputs/outputhandlers/variablestring/export/VariableStringElement2DocBookXMLProvider",subsystem:"rtc.export.docbookxmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.docbookxml.textelement",path:"rtc/plugins/embeddedoutputs/outputhandlers/text/export/TextElement2DocBookXMLProvider",subsystem:"rtc.export.docbookxmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.docbookxml.figure",path:"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2DocBookXMLProvider",subsystem:"rtc.export.docbookxmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.docbookxml.symbolic",path:"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2DocBookXMLProvider",subsystem:"rtc.export.docbookxmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.docbookxml.matrix",path:"rtc/plugins/embeddedoutputs/outputhandlers/matrix/export/MatrixElement2DocBookXMLProvider",subsystem:"rtc.export.docbookxmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.docbookxml.warning",path:"rtc/plugins/embeddedoutputs/outputhandlers/warning/export/Warning2DocBookXMLProvider",subsystem:"rtc.export.docbookxmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.xslfo.output",path:"rtc/plugins/embeddedoutputs/outputhandlers/OutputElement2XSLFOProvider",subsystem:"rtc.export.xslfooutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.xslfo.basetext",path:"rtc/plugins/embeddedoutputs/outputhandlers/BaseText2XSLFOProvider",subsystem:"rtc.export.xslfooutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.xslfo.matrix",path:"rtc/plugins/embeddedoutputs/outputhandlers/matrix/export/MatrixElement2XSLFOProvider",subsystem:"rtc.export.xslfooutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.xslfo.symbolic",path:"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2XSLFOProvider",subsystem:"rtc.export.xslfooutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.xslfo.figure",path:"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2XSLFOProvider",subsystem:"rtc.export.xslfooutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.latex.basetext",path:"rtc/plugins/embeddedoutputs/outputhandlers/BaseText2LaTeXProvider",subsystem:"rtc.export.latexoutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.latex.symbolic",path:"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2LaTeXProvider",subsystem:"rtc.export.latexoutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.latex.figure",path:"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2LaTeXProvider",subsystem:"rtc.export.latexoutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.html.basetext",path:"rtc/plugins/embeddedoutputs/outputhandlers/BaseText2HTMLProvider",subsystem:"rtc.export.htmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.html.figure",path:"rtc/plugins/embeddedoutputs/outputhandlers/figure/export/Figure2HTMLProvider",subsystem:"rtc.export.htmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.html.matrix",path:"rtc/plugins/embeddedoutputs/outputhandlers/matrix/export/MatrixElement2HTMLProvider",subsystem:"rtc.export.htmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.html.outputparagraph",path:"rtc/plugins/export/html/OutputParagraph2HTMLProvider",subsystem:"rtc.export.htmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.html.symbolic",path:"rtc/plugins/embeddedoutputs/outputhandlers/symbolic/export/Symbolic2HTMLProvider",subsystem:"rtc.export.htmloutputwriters",family:"embeddedoutputs"},{id:"rtc.export.output.html.variableelement",path:"rtc/plugins/embeddedoutputs/outputhandlers/variable/export/VariableElement2HTMLProvider",subsystem:"rtc.export.htmloutputwriters",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.triggers.synchronousrunall",path:"rtc/plugins/embeddedoutputs/triggers/SynchronousRunAllTriggerProvider",family:"embeddedoutputs"},{id:"rtc.embeddedoutputs.hitlineindicator",path:"rtc/plugins/embeddedoutputs/view/HitLineIndicatorProvider"},{id:"rtc.execution.executiondataservice",path:"rtc/plugins/execution/ExecutionDataServiceProvider",family:"embeddedoutputs",subsystem:"rtc.execution.dataservices",isSharedPlugin:!0},{id:"rtc.execution.regionevaluator",path:"rtc/plugins/execution/RegionEvaluatorProvider",family:"embeddedoutputs",subsystem:"rtc.execution.dataservices",isSharedPlugin:!0},{id:"rtc.nodes.noderangeretriever",path:"rtc/nodes/noderangeretriever/NodeRangeRetrieverProvider",family:["embeddedoutputs","slideview"]},{id:"rtc.export.docbookxml.linenode",path:"rtc/plugins/export/docbookxml/LineNode2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"embeddedoutputs"},{id:"rtc.export.xslfo.linenode",path:"rtc/plugins/export/xslfo/LineNode2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"embeddedoutputs"},{id:"rtc.export.docx.linenode",path:"rtc/plugins/export/docx/LineNode2DOCXProvider",subsystem:"rtc.export.docxwriters",family:"embeddedoutputs"},{id:"rtc.export.latex.linenode",path:"rtc/plugins/export/latex/LineNode2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"embeddedoutputs"}])}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4612)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._startNode=null,this._endNode=null},updateNodes:function(e,t){this._startNode=e,this._endNode=t,this.onNodeRangeUpdated()},onNodeRangeUpdated:function(){},hasNodeRange:function(){return!!this._startNode&&!!this._endNode},getNodeRange:function(){return this.hasNodeRange()?{start:this._startNode,end:this._endNode}:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4614)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(207)],o=i.dj.d(n,(function(e,t,i){const n="matlab.editor.accessibility.TempOutputFocus";return e(i,{constructor:function(e){this._settingService=e,this._deferred=new t,this._settingService.getSetting(n).then(function(e){e&&this._deferred.resolve()}.bind(this),()=>{}),this._listener=this._settingService.listenToSettingChange(n,function(e){e&&this._deferred.resolve()}.bind(this))},isFeatureOn:function(){return this._deferred.isResolved()},whenFirstEnabled:function(e){this._deferred.then(e,()=>{})},destroy:function(){this.inherited(arguments),this._deferred&&(this._deferred.cancel("destroy"),this._deferred=null),this._listener&&(this._listener.remove(),this._listener=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4616),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.embeddedoutputs.model","rtc.embeddedoutputs","rtc.clipboard","rtc.cursor","rtc.actionservice","rtc.contextmenu.generator","rtc.clipboardtempdirpath","rtc.embeddedoutputs.view.rightpanel","rtc.embeddedoutputs.contextmenu"]}},createInstance:function(e,i,n,o,r,a,s,l,c){return new t(e,i,n,o,r,a,s,l,c)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(314),i(294),i(253)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{RTC_COPY_OUTPUT:"rtc_copy_output",RTC_COPY_ALL_OUTPUT:"rtc_copy_all_output",_CONTEXT_MENU_GROUP:r.COPY_PASTE,constructor:function(e,n,o,r,s,l,c,d,u){this._outputModel=e,this._outputView=n.getEmbeddedOutputsView(),this._clipboard=o,this._cursor=r,this._actionService=s,this._tempDirPath=c,this._rightPanel=d.getScrollPane(),this._contextMenuContributor=u,this._actions=[{id:this.RTC_COPY_OUTPUT,enabled:!1,contextMenuGroup:"copyPaste",text:a.copyOutput,callback:t.hitch(this,this._copyCurrentOutputs)},{id:this.RTC_COPY_ALL_OUTPUT,enabled:!0,contextMenuGroup:"copyPaste",text:a.copyAllOutput,callback:t.hitch(this,this._copyAllOutputs)}],this._addActionsToContextMenu(),this._selectedOutputs=[],this._handleEmbeddedOutputsStateChange(n.isEmbeddedOutputsEnabled()),this.own(i.after(l,"willOpen",t.hitch(this,"_updateSelectedOutputs"),!0)),this.own(i.after(n,"onEmbeddedOutputsStateChange",t.hitch(this,"_handleEmbeddedOutputsStateChange"),!0))},_addActionsToContextMenu:function(){this._actions.forEach((function(e){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,e.id)}),this)},_updateSelectedOutputs:function(e,t){var i,n=this._outputView.getOutputWrapperFromElement(t),o=e===this._rightPanel;if(n)i=[n];else if(o)i=[];else{var r=this._getSelectionRange();i=this._outputView.getOutputDivsForRange(r.start,r.end)}this._selectedOutputs=i.map((function(e){return this._outputView.getOutputFromOutputDiv(e)}),this);var a=this._selectedOutputs.length>0;this._actionService.updateAction("rtc_copy_output",{enabled:a});var s=this._outputModel.hasOutputs();this._actionService.updateAction("rtc_copy_all_output",{enabled:s})},_copyOutputs:function(e){var t={text:"",html:""},i=e.length>1,n=this._tempDirPath,r=[],a=[];if(i&&(t.html+="<p>"),e.forEach((function(o,a){if(i&&a>0){var s=o.codeLinePositions[o.codeLinePositions.length-1],l=e[a-1],c=l.codeLinePositions[l.codeLinePositions.length-1];s.line!==c.line&&(t.html+="</p><p>")}var d=o.getText();t.text+=(t.text?"\n":"")+d,t.html+=o.getHTML(n,r)})),i&&(t.html+="</p>"),1===e.length){var s=e[0];s.getMIMEContent&&(a=a.concat(s.getMIMEContent()))}a=[{flavor:o.HTML,content:t.html},{flavor:o.TEXT,content:t.text},{flavor:o.COPY_FOR_COMMAND_WINDOW,content:t.text}].concat(a),r.length&&a.push({flavor:o.IMAGE_LIST,content:r});for(var l=[],c=a.length-1;c>=0;c-=1){var d=a[c].flavor;(l.indexOf(d)>=0||void 0===a[c].content)&&a.splice(c,1),l.push(d)}this._clipboard.setClipboardData(a)},_getSelectionRange:function(){var e=this._cursor.selectionInfo();return{start:e.startNode.rootContainer(),end:e.endNode.rootContainer()}},_copyCurrentOutputs:function(){return this._copyOutputs(this._selectedOutputs),!0},_copyAllOutputs:function(){var e=this._outputModel.getOutputs();return this._copyOutputs(e),!0},_handleEmbeddedOutputsStateChange:function(e){e?this._actionService.loadActions(this._actions):this._actions.forEach((function(e){this._actionService.getAction(e.id)&&this._actionService.removeAction(e.id)}),this)},destroy:function(){this.inherited(arguments);var e=this._actionService;this._actions.forEach((function(t){e.getAction(t.id)&&e.removeAction(t.id)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4618),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.actionservice","rtc.embeddedoutputs.model","rtc.embeddedoutputs.contextmenu","rtc.embeddedoutputs","rtc.embeddedoutputs.currentoutputservice"]}},createInstance:function(e,i,n,o,r){return new t(e,i,n,o,r)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(253),i(207),i(208),i(294),i(455)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{_CLEAR_OUTPUT_ACTION_ID:"rtc_clear_output",_CLEAR_ALL_OUTPUT_ACTION_ID:"rtc_clear_all_output",_CONTEXT_MENU_GROUP:r.CLEAR_OUTPUT,constructor:function(e,n,r,s,l){this._messageService=a.getInstance(),this._actionService=e,this._outputsModel=n,this._contextMenuContributor=r,this._currentOutputService=l,this._enabled=!1,this._selectedOutputs=[],this.own(o.after(s,"onEmbeddedOutputsStateChange",t.hitch(this,"_handleEmbeddedOutputsStateChange"),!0)),this.own(o.after(this._currentOutputService,"onOutputSelected",t.hitch(this,"_handleOutputSelectionChanges"),!0)),this._actions=[{id:this._CLEAR_OUTPUT_ACTION_ID,enabled:!1,text:i.clearOutput,callback:t.hitch(this,"_clearSelectedOutput")},{id:this._CLEAR_ALL_OUTPUT_ACTION_ID,enabled:!1,text:i.clearAllOutput,callback:t.hitch(this,"_clearAllOutput")}],this._addActionsToContextMenu(),this._aspectHandles=[],this._handleEmbeddedOutputsStateChange(s.isEmbeddedOutputsEnabled())},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,this._CLEAR_OUTPUT_ACTION_ID),this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,this._CLEAR_ALL_OUTPUT_ACTION_ID)},_clearSelectedOutput:function(){return this._clearOutputs(this._selectedOutputs),this._selectedOutputs=[],!0},_clearAllOutput:function(){return this._outputsModel.clearAllOutputs(),this._selectedOutputs=[],this.onOutputsCleared(!0),!0},_clearOutputs:function(e){0!==e.length&&(this._outputsModel.startBatchOperation(),e.forEach((function(e){this._outputsModel.removeOutput(e)}),this),this._outputsModel.finishBatchOperation(),this.onOutputsCleared(!1))},onOutputsCleared:function(e){},_updateActionState:function(){var e=this._selectedOutputs.length>0;this._actionService.updateAction(this._CLEAR_OUTPUT_ACTION_ID,{enabled:e});var t=this._outputsModel.hasOutputs();this._actionService.updateAction(this._CLEAR_ALL_OUTPUT_ACTION_ID,{enabled:t})},_enableClearOutputs:function(){this._enabled||(this._aspectHandles.push(o.after(this._outputsModel,"onModelUpdated",t.hitch(this,"_updateActionState"))),this._actionService.loadActions(this._actions),this._enabled=!0)},_disableClearOutputs:function(){this._enabled&&this._actionService.getAction(this._CLEAR_ALL_OUTPUT_ACTION_ID)&&this._actionService.getAction(this._CLEAR_OUTPUT_ACTION_ID)&&(this._actionService.removeAction(this._CLEAR_OUTPUT_ACTION_ID),this._actionService.removeAction(this._CLEAR_ALL_OUTPUT_ACTION_ID),this._enabled=!1,this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[],this._selectedOutputs=[])},_handleEmbeddedOutputsStateChange:function(e){e?this._enableClearOutputs():this._disableClearOutputs()},_handleOutputSelectionChanges:function(e){this._selectedOutputs=e.selectedOutputs;var t=e.selectedOutputs.length>0;this._actionService.updateAction(this._CLEAR_OUTPUT_ACTION_ID,{enabled:t})},destroy:function(){this._disableClearOutputs(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4620),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.cursor.view","rtc.embeddedoutputs.view.viewmodel","rtc.embeddedoutputs.view","rtc.exportnotifier","rtc.embeddedoutputs.view.currentelementmanager","rtc.embeddedoutputs.currentoutputservice.handlers","rtc.embeddedoutputs.accessibility.featureflag"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(229),i(207),i(270),i(4621)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{_cursor:null,constructor:function(e,n,o,r,s,l,c){this._cursorController=e,this._cursor=e.getCursors()[0],this._cursorView=n,this._viewModel=o,this._embeddedOutputsView=r,this._currentElementManager=l,this._selectedOutputs=[],this._focusedOutput=null,this._lastCursorPosition={},this._isHandlingOutputClick=!1,this.own(i.after(this._cursorView,"onChange",t.hitch(this,"_handleCursorViewOnUpdate"),!0)),this.own(i.after(this._embeddedOutputsView,"onOutputClick",t.hitch(this,"_handleOutputClick"),!0)),this.own(i.after(this._embeddedOutputsView,"onViewToggled",t.hitch(this,"_handleViewToggled"),!0)),this.own(i.after(this._viewModel,"onModelUpdated",t.hitch(this,"_handleViewModelUpdated"),!0)),this.own(i.after(s,"onExportStart",t.hitch(this,"_handleOnExportStart"),!0)),this._currentElementManager.registerCurrentOutputService(this);var d=new a(e);(c=c||[]).push(d),this._currentOutputHandlers=c},_handleViewModelUpdated:function(){var e=this._focusedOutput,t=this._selectedOutputs;this._focusedOutput&&(this._viewModel.doesOutputExist(this._focusedOutput)||(this._focusedOutput=null)),this._selectedOutputs=this._getOutputsAssociatedWithCursor(),this._focusedOutput===e&&n.arrayEquals(this._selectedOutputs,t)||this._emitCurrentState()},_handleCursorViewOnUpdate:function(){var e=this._getCursorPosition();this._isCursorPositionSameAsLastUpdate(e)||(this._lastCursorPosition=this._cloneCursorPosition(e),this._isHandlingOutputClick||(this._selectedOutputs=this._getOutputsAssociatedWithCursor(),this._focusedOutput=null,this._emitCurrentState()))},_getCursorPosition:function(){var e,t;if(this._cursor.hasSelection()){var i=this._cursor.getSelection();e=i.getStartPosition(),t=i.getEndPosition()}else e=this._cursor.position,t=this._cursor.position;return{start:e,end:t}},_isCursorPositionSameAsLastUpdate:function(e){return e.start.isEqualTo(this._lastCursorPosition.start)&&e.end.isEqualTo(this._lastCursorPosition.end)},_cloneCursorPosition:function(e){return{start:new r(e.start.getNode(),e.start.getOffset()),end:new r(e.end.getNode(),e.end.getOffset())}},_handleOnExportStart:function(){this._focusedOutput=null,this._emitCurrentState()},_handleOutputClick:function(e,t){this._handleOutputClickByHandlers(e,t),this._focusedOutput=e,this._selectedOutputs=[e],this._emitCurrentState()},_handleOutputClickByHandlers:function(e,t){this._isHandlingOutputClick=!0,this._currentOutputHandlers.some((function(i){if(i.handleOutputClick(e,this._embeddedOutputsView.getLayoutView(),t))return!0}),this),this._isHandlingOutputClick=!1},_handleViewToggled:function(){this._focusedOutput=null,this._selectedOutputs=[],this._emitCurrentState(),this._lastCursorPosition=this._cloneCursorPosition(this._getCursorPosition()),this._selectedOutputs=this._getOutputsAssociatedWithCursor(),this._emitCurrentState()},_emitCurrentState:function(){this.onOutputSelected({selectedOutputs:this._selectedOutputs,focusedOutput:this._focusedOutput})},_getOutputsAssociatedWithCursor:function(){var e=[];return this._currentOutputHandlers.some((function(t){var i=t.getOutputsAssociatedWithCursor(this._cursor,this._viewModel);if(i)return e=i,!0}),this),e},onOutputSelected:function(e){},requestFocus:function(e){this._handleOutputClick(e)},getSelectedOutputs:function(){return this._selectedOutputs}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(528),i(2013)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._cursorController=e},handleOutputClick:function(e,i,n){if(i!==t.ON_RIGHT_VIEW_STATE)return!1;var o=e.codeLinePositions[e.codeLinePositions.length-1];return this._cursorController.clearSelection(),this._cursorController.setPositions([o]),!0},getOutputsAssociatedWithCursor:function(e,t){var i=e.getNode().rootContainer();return t.getOutputDivsForNode(i).map((function(e){return t.getOutputFromOutputDiv(e)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4623)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.scrollpane","rtc.embeddedoutputs.view.rightpanel"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(616),i(294)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t){this._scrollPane=e,this._outputScrollPane=t.getScrollPane(),this.inherited(arguments)},_getGroupsToContribute:function(e){return Object.keys(this.groupMenuItemsMap).filter((function(t){var i=this._outputScrollPane.contains(e),n=this._scrollPane.contains(e);return!(t===o.ALIGN&&!i)&&!(!n&&!i)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4625),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.id","rtc.embeddedoutputs.outputhandler","rtc.internaldocument"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(207),i(455),i(4626)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{_OUTPUT_STREAM_EVENT_NAMESPACE:"/embeddedOutputs/outputStreamEvent/",_OUTPUT_STREAM_STATUS_NAMESPACE:"/embeddedOutputs/outputStreamStatus/",constructor:function(e,t,i){this._editorId=e,this._outputsHandler=t,this._outputQueue=new o(this._outputsHandler,i),this._currentRequest=null,this._messageService=n.getInstance(),this._messageService.subscribe(this._OUTPUT_STREAM_STATUS_NAMESPACE+this._editorId,"_handleOutputStreamStatus",this),this._subscribedToOutputEvents=!1},enable:function(){this._enableOutputStreaming()},disable:function(){this._disableOutputStreaming()},handleStartOfEvaluation:function(e){this._outputsHandler.handleStartOfEvaluation(e.getEvaluationRange()),this._currentRequest=e},handleEndOfEvaluation:function(e,t){var i=this._currentRequest.getRequestId();if(i===e.getRequestId()){var n=this._currentRequest.getEvaluationRange();this._outputsHandler.handleEndOfEvaluation(n,i,t),this._currentRequest=null}},onOutputsStreamingFinished:function(e){},flushOutputs:function(){this._outputQueue.flushNow()},_outputStreamEvent:function(e){var t=e.data.requestId,i=e.data.outputs,n=e.data.completedRegionNumbers,o=e.data.batchId;if(this._currentRequest&&this._currentRequest.isValid()&&(this.onOutputBatchReceived(o),0!==i.length||0!==n.length)){var r=this._currentRequest.getEvaluationRange();this._outputQueue.addToQueue(i,n,t,r)}},onOutputBatchReceived:function(e){},onOutputStreamingDisabled:function(){},_handleOutputStreamStatus:function(e){e.data.streamingFinished&&this._handleOutputStreamingFinished(e.data.lastOutputBatchId)},_handleOutputStreamingFinished:function(e){try{this._outputQueue.flushNow()}catch(e){t.error("Exception occurred while flushing outputs: "+e)}this.onOutputsStreamingFinished(e)},_enableOutputStreaming:function(){this._subscribedToOutputEvents||(this._messageService.subscribe(this._OUTPUT_STREAM_EVENT_NAMESPACE+this._editorId,"_outputStreamEvent",this),this._subscribedToOutputEvents=!0)},_disableOutputStreaming:function(){this.onOutputStreamingDisabled(),this._subscribedToOutputEvents&&(this._messageService.unsubscribe(this._OUTPUT_STREAM_EVENT_NAMESPACE+this._editorId,"_outputStreamEvent",this),this._subscribedToOutputEvents=!1)},destroy:function(){this._outputQueue.destroy(),this._outputQueue=null,this._disableOutputStreaming(),this._messageService.unsubscribe(this._OUTPUT_STREAM_STATUS_NAMESPACE+this._editorId,"_handleOutputStreamStatus",this),this._currentRequest=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(208)],o=i.dj.d(n,(function(e,t,i,n){return t([e],{_TIMEOUT_PERIOD:33,constructor:function(e,t){this._outputsHandler=e,this._internalDocument=t,this._outputQueue=[],this._regionNumberQueue=[],this._currentEvaluationId=null,this._currentEvaluationRange=null,this._queueTimeout=null,this.own(n.after(this._internalDocument,"onDocumentReset",i.hitch(this,"_handleOnDocumentReset")))},destroy:function(){clearTimeout(this._queueTimeout),this._queueTimeout=null,this.inherited(arguments)},addToQueue:function(e,t,n,o){this._outputQueue=this._outputQueue.concat(e),this._regionNumberQueue=this._regionNumberQueue.concat(t),this._currentEvaluationId=n,this._currentEvaluationRange=o,0!==this._TIMEOUT_PERIOD?this._queueTimeout||(this._queueTimeout=setTimeout(i.hitch(this,"_flushQueue"),this._TIMEOUT_PERIOD)):this._flushQueue()},flushNow:function(){clearTimeout(this._queueTimeout),this._queueTimeout=null,this._flushQueue()},_flushQueue:function(){var e=this._outputQueue,t=this._regionNumberQueue;this._outputQueue=[],this._regionNumberQueue=[],this._queueTimeout=null,0===e.length&&0===t.length||this._outputsHandler.handleOutputsData(e,t,this._currentEvaluationId,this._currentEvaluationRange)},_handleOnDocumentReset:function(){clearTimeout(this._queueTimeout),this._outputQueue=[],this._regionNumberQueue=[],this._queueTimeout=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4628)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.executionservice.statehandler","rtc.embeddedoutputs.model"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(207),i(1434)],o=i.dj.d(n,(function(e,t,i,n,o){return t([n,o],{_SAVE_READY_TIMEOUT:1e3,constructor:function(t,n){this._stateHandler=t,this._outputsModel=n,this.markClean(),this.own(e.after(this._stateHandler,"onStateChanged",i.hitch(this,"_handleStateChanged"),!0))},_handleStateChanged:function(e){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED?this.markDirty():e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&this._handleEvalEnded()},_handleEvalEnded:function(){this._outputsModel.whenOutputsReady(i.hitch(this,(function(){this.markClean()}))),this.setReadyTimeout(this._SAVE_READY_TIMEOUT)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(4630)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{createInstance:["rtc.backingstore","rtc.embeddedoutputs.model"]}},createInstance:function(e,t){var o=i.getInstance();return new n(e,o,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(212),i(207),i(1434)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t([o,r],{_SAVE_READY_TIMEOUT:1e3,constructor:function(t,n,o){this._backingStore=t,this._debugServices=n,this._outputsModel=o,this._isReadyToSavePromise=null,this.markClean(),this._backingStore.registerSaveInterceptor&&(this._backingStore.registerSaveInterceptor(this._interceptSave.bind(this)),this.own(e.after(this._debugServices,"onDebugModeChanged",i.hitch(this,"_handleDebugModeChanged"),!0)))},_interceptSave:function(){return this._isReadyToSavePromise=new n,this.whenReady(this._onOutputsReadyToSave.bind(this)),this._isReadyToSavePromise.promise},_onOutputsReadyToSave:function(){this._isReadyToSavePromise.resolve()},_handleDebugModeChanged:function(e){e?this.markDirty():this._markCleanWhenOutputsReady()},_markCleanWhenOutputsReady:function(){this._outputsModel.whenOutputsReady(this.markClean.bind(this)),this.setReadyTimeout(this._SAVE_READY_TIMEOUT)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4632)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.id","rtc.executionservice.statehandler","rtc.embeddedoutputs.model","rtc.embeddedoutputs.outputhandler","rtc.embeddedoutputs.splitterpositionmodel","rtc.execution.triggers","rtc.embeddedoutputs.view.viewmodel","rtc.execution.margin.readybusyindicator","rtc.validscriptfiletypenotifier","rtc.embeddedoutputs.dataservice","rtc.embeddedoutputs.warningbanner","rtc.embeddedoutputs.view","rtc.embeddedoutputs.model.save","rtc.embeddedoutputs.model.load"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(253),i(209),i(229),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{EMPTY_SAVE_STATE:{metaData:{evaluationState:"manual",layoutState:"code",outputStatus:"ready"},outputArray:[],regionArray:[]},constructor:function(e,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){this._internalDocument=n,this._document=e,this._stateHandler=r,this._editorId=o,this._outputsModel=a,this._outputHandler=s,this._splitterPositionModel=l,this._triggers=c,this._viewModel=d,this._readyBusyIndicator=u,this._outputLoadInterceptors=[],this._validScriptFileTypeNotifier=h,this._embeddedOutputDataService=p,this._warningBanner=f,this._view=g,this._embeddedOutputsSave=m,this._embeddedOutputsLoad=_,this.own(i.after(this._validScriptFileTypeNotifier,"onScriptFileTypeChange",t.hitch(this,"_handleScriptFileTypeChange"),!0)),this._view.enable(),this._embeddedOutputDataService.enable(),this._viewModel.enable(),this._triggers.enableTriggers(),this._embeddedOutputsEnabled=!0},_handleScriptFileTypeChange:function(e){e?this._enableEmbeddedOutputs():this._disableEmbeddedOutputs()},_enableEmbeddedOutputs:function(){this._embeddedOutputsEnabled||(this._view.enable(),this._embeddedOutputDataService.enable(),this._viewModel.enable(),this._viewModel.refreshViewModel(),this._triggers.enableTriggers(),this._embeddedOutputsEnabled=!0,this.onEmbeddedOutputsStateChange(this._embeddedOutputsEnabled))},_disableEmbeddedOutputs:function(){this._embeddedOutputsEnabled&&(this._view.disable(),this._viewModel.disable(),this._outputsModel.clearAllOutputs(),this._triggers.disableTriggers(),this._embeddedOutputDataService.disable(),this._embeddedOutputsEnabled=!1,this.onEmbeddedOutputsStateChange(this._embeddedOutputsEnabled))},onEmbeddedOutputsStateChange:function(e){},isEmbeddedOutputsEnabled:function(){return this._embeddedOutputsEnabled},save:function(){if(!this._embeddedOutputsEnabled)return this.EMPTY_SAVE_STATE;try{return this._embeddedOutputsSave.get16aSaveObject()}catch(e){return o.assert(!1,"Exception occurred while saving outputs. Outputs will not be saved.\nException: "+e+"\nStack: "+e.stack),this._warningBanner.show("errorSavingAllOutputs"),this.EMPTY_SAVE_STATE}},load:function(e){if(!this._outputLoadInterceptors.some((function(t){return t.interceptLoading(e)}))){var t=this._view.getLayoutView(),i=this._triggers.getEvaluationState(),n=this._readyBusyIndicator.getState();try{var r=this._embeddedOutputsLoad.loadFrom16a(e);r.hasWarning&&this._warningBanner.log(r.messageId)}catch(e){o.assert(!1,"Exception occurred while loading outputs. Outputs will not be loaded:"+e),this._warningBanner.show("errorLoadingAllOutputs"),this._splitterPositionModel.setDefaultRightPanelProportion(),this._view.setLayoutState(t),this._outputsModel.clear(),this._triggers.setEvaluationState(i),this._readyBusyIndicator.setState(n)}}},registerLoadInterceptor:function(e){this._outputLoadInterceptors.push(e)},getEmbeddedOutputsView:function(){return this._view},destroy:function(){this.inherited(arguments),this._outputLoadInterceptors=[],this._stateHandler.destroy(),this._disableEmbeddedOutputs()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2014)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.embeddedoutputs.model","rtc.executionservice.statehandler","rtc.embeddedoutputs.dataservice","rtc.execution.executiondataservice","rtc.code.sections.model","rtc.internaldocument","rtc.connectivity.service"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4635)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.outputhandler","rtc.internaldocument","rtc.embeddedoutputs.model","rtc.code.sections.model"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(623)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t,i,n){this._outputHandler=e,this._internalDocument=t,this._outputsModel=i,this._sectionModel=n},handleEvaluationRequestCreation:function(e){var i=e.request,n=i.getEvaluationRange();return i.setExecutableRegions(t.updateAndGetExecutableRegionsForRange(this._internalDocument,this._sectionModel,this._outputsModel,n.getStartPosition(),n.getEndPosition())),i},handleStartOfEvaluation:function(e){this._outputHandler.handleStartOfEvaluation(e.evaluationRange)},handleOutputsData:function(e){this._outputHandler.handleOutputsData(e.rawOutputs,e.completedRegionNumbers,e.evaluationId,e.replacementRange)},handleEndOfEvaluation:function(e){this._outputHandler.handleEndOfEvaluation(e.evaluationRange,e.evaluationId,e.errorType)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4637)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.executionservice.statehandler"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{CHANGE_TYPE_ENUM:{EVAL_INITIALIZED:1,EVAL_COMPLETE:2},constructor:function(e){this._stateHandler=e},stateChanged:function(e,t){this._stateHandler.stateChanged(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4639)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.currentoutputservice","rtc.embeddedoutputs.view.viewmodel","rtc.embeddedoutputs.keyboardshortcuts","rtc.embeddedoutputs.outputfocusmanager"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(221),i(342),i(207),i(1435)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{constructor:function(e,t,i,n){this._currentOutputService=e,this._viewModel=t,this._keyboardShortcuts=i,this._outputFocusManager=n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4641)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.model","rtc.document","rtc.internaldocument","rtc.executionservice.linenumbertracker","rtc.outputhandlerservice","rtc.embeddedoutputs.linecontinuationtracker","rtc.embeddedoutputs.outputmodelcontroller","rtc.embeddedoutputs.groupingtracker"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(229),i(207),i(208),i(234),i(266),i(623),i(529),i(679),i(619)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(n,{constructor:function(e,t,i,n,o,r,a,s){this._embeddedOutputsModel=e,this._document=t,this._internalDocument=i,this._lineNumberTracker=n,this._lineContinuationTracker=r,this._outputHandlerService=o,this._outputModelController=a,this._groupingTracker=s,this._lastOutputAdded=null},_getOutputFromRawOutput:function(e,t){var i=this._createOutputMetaData(e,t);return this._outputHandlerService.handleRawOutput(e,i)},handleOutputsData:function(e,t,n,o){var r=this._embeddedOutputsModel.getRegions();this._embeddedOutputsModel.startBatchOperation(),e.forEach((function(e){if(this._outputModelController.shouldCreateOutput(n,e.type)){var t,a=i.unique(e.lineNumbers);a.sort((function(e,t){return e-t})),e.lineNumbers=a;var u=this._getCodeLinePositions(e);if(null!==u){var h=u[u.length-1],p=!1;if(r.length>0){var f=c.convertPositionToRegionNumber(h,r),g=r[f];p=s.isPositionWithinRegionRange(h,g,g)}t=p?f:this._embeddedOutputsModel.addRegionForPosition(h);var m=this._getOutputFromRawOutput(e,n),_=m.getInstruction(),v=m.getOutput();if(_!==l.IGNORE_OUTPUT){if(_===l.REMOVE_OUTPUT)return this._embeddedOutputsModel.removeOutput(v),void(this._lastOutputAdded=null);switch(v.evaluationId=n,this._lastOutputAdded=v,_){case l.ADD_OUTPUT:if(v.setCodeLinePositions(u),"error"===v.type&&v.getErrorType()===d.SYNTAX_ERROR_TYPE)return this._embeddedOutputsModel.clearReplacementRange(),void this._embeddedOutputsModel.prependOutput(t,v);this._outputModelController.addOutput(t,v,o);break;case l.REASSOCIATE_AND_UPDATE:v.setCodeLinePositions(c.mergeCodeLinePositions(v.codeLinePositions,u)),this._embeddedOutputsModel.updateOutputAssociations(v,t);break;case l.UPDATE:v.setCodeLinePositions(u),this._embeddedOutputsModel.updateOutput(v)}}}}}),this),this._clearOldOutputs(t,o,n),this._embeddedOutputsModel.finishBatchOperation()},_clearOldOutputs:function(e,t,i){if(e.length>0){var n=e[e.length-1]+1,o=this._groupingTracker.getStartLineNumberForRegionNumber(n);if(null!=o){var r=this._lineNumberTracker.getNewLineNumberFromOldLineNumber(o-1),s=this._internalDocument.getLineNode(r),l=t.getStartPosition(),c=s.endPosition(),d=new a(l,c);this._embeddedOutputsModel.clearOldOutputsInRange(d,i)}}},handleStartOfEvaluation:function(e){this._embeddedOutputsModel.setReplacementRange(e)},handleEndOfEvaluation:function(e,t,i){this._embeddedOutputsModel.clearReplacementRange(),i===d.SYNTAX_ERROR_TYPE||this._embeddedOutputsModel.clearOldOutputsInRange(e,t)},destroy:function(){},_hasLineNumberInformation:function(e){return null!=e.lineNumbers&&e.lineNumbers.length>0},_getCodeLinePositions:function(e){if(!this._hasLineNumberInformation(e))return t.error("Output with no line numbers received. Skipping output. Output data: "+JSON.stringify(e)),null;var n=e.lineNumbers.map((function(e){return this._lineContinuationTracker.getAllContinuationLines(e)}),this);return(n=[].concat.apply([],n)).sort((function(e,t){return e-t})),(n=i.unique(n)).map((function(t){return this._lineNumberTracker.createPositionFromOldLineNumber(t-1,e)}),this)},_createOutputMetaData:function(e,t){var i={};return i.evaluationId=t,"matrix"===e.type&&(i.createPromptController=!0),"text"===e.type&&(i.lineNumber=e.lineNumbers[0],i.lastAddedOutput=this._lastOutputAdded),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4643)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.model","rtc.document","rtc.diagnosticmessage","rtc.embeddedoutputs.outputlimitsettings","rtc.settings.service"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(212),i(1131),i(207),i(313),i(619),i(1436),i(1437)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(r,{_DEFAULT_SETTING:-1,_DEFAULT_OUTPUT_LIMIT:5e3,_DEFAULT_ENABLEMENT:!0,_CANCEL_REASON_ABOVE_LIMIT:"above limit",_ENABLE_LIMIT_SETTING_ID:"matlab.editor.outputs.EnableOutputLimit",_LIMIT_SETTING_ID:"matlab.editor.outputs.OutputLimit",constructor:function(e,i,n,o,r){this._outputsModel=e,this._document=i,this._diagnosticMessageFormatter=n,this._outputLimitSettings=o,this._settingsService=r,this._currentEvaluationId=null,this._latestLimitedEvaluationId=null,this._limitEnabled=this._DEFAULT_ENABLEMENT,this._settingsService.getSetting(this._ENABLE_LIMIT_SETTING_ID).then(function(e){this._limitEnabled=e}.bind(this),(function(e){})),this._outputLimit=this._DEFAULT_OUTPUT_LIMIT,this._settingsService.getSetting(this._LIMIT_SETTING_ID).then(function(e){this._outputLimit=e,this._outputLimit===this._DEFAULT_SETTING&&(this._outputLimit=this._DEFAULT_OUTPUT_LIMIT)}.bind(this),(function(e){})),this.own(this._settingsService.listenToSettingChange(this._ENABLE_LIMIT_SETTING_ID,t.hitch(this,"_handleEnableSettingChange"))),this.own(this._settingsService.listenToSettingChange(this._LIMIT_SETTING_ID,t.hitch(this,"_handleLimitSettingChange"))),this._loadOutputLimitSettings()},addOutput:function(e,t,i){if(!this._limitEnabled)return this._outputsModel.addOutput(e,t);this._isLimiting(t.evaluationId)&&this._allowSuppression(t)?t.destroy():(this._updateState(t,i),this._shouldStartLimiting(t,e)?t.destroy():this._outputsModel.addOutput(e,t))},shouldCreateOutput:function(e,t){return t===l.OUTPUT_TYPE||t===s.OUTPUT_TYPE||!this._isLimiting(e)},_loadOutputLimitSettings:function(){this._outputLimitSettings&&("false"===this._outputLimitSettings.enabled&&this._handleEnableSettingChange(!1),void 0!==this._outputLimitSettings.limit&&this._handleLimitSettingChange(parseInt(this._outputLimitSettings.limit,10)))},_handleEnableSettingChange:function(e){this._limitEnabled=e},_handleLimitSettingChange:function(e){e===this._DEFAULT_SETTING?this._outputLimit=this._DEFAULT_OUTPUT_LIMIT:this._outputLimit=e},_isLimiting:function(e){return this._latestLimitedEvaluationId===e},_shouldStartLimiting:function(e,t){if(this._approximateOutputCount>=this._outputLimit&&(this._approximateOutputCount=this._getOutputCount()),this._approximateOutputCount>=this._outputLimit&&this._allowSuppression(e)){var i=this._createWarningFromOutput(e);return this._latestLimitedEvaluationId=i.evaluationId,this._outputsModel.addOutput(t,i),!0}return!1},_allowSuppression:function(e){return e.type!==s.OUTPUT_TYPE},_updateState:function(e,t){this._currentEvaluationId===e.evaluationId?this._approximateOutputCount++:(this._currentEvaluationRange=t,this._currentEvaluationId=e.evaluationId,this._approximateOutputCount=1/0,this._latestLimitedEvaluationId=null)},_getOutputCount:function(){var e=t.hitch(this,(function(e){var t=e.codeLinePositions,i=t[t.length-1];return!a.isPositionInRange(i,this._currentEvaluationRange)||e.evaluationId===this._currentEvaluationId}));return this._outputsModel.getPendingOutputCountIf(e)},_createWarningFromOutput:function(e){var t={text:o.outputLimitExceeded,diagnosticMessageFormatter:this._diagnosticMessageFormatter},i=new c(t);i.evaluationId=e.evaluationId;var n=e.codeLinePositions,r=n[n.length-1].getNode(),a=this._document.createLinePosition(r,!1);return i.codeLinePositions=[a],i}})}),e,t),e.exports=o},function(e,t,i){e.exports={errorLoadingAllOutputs:"警告: 出力を読み込めません。詳細はテクニカル サポートにお問い合わせください。",errorSavingAllOutputs:"警告: 出力を保存できません。詳細はテクニカル サポートにお問い合わせください。",errorSavingIndividualOutput:"警告: 一部の出力を保存できません。詳細はテクニカル サポートにお問い合わせください。",exportDialogTitle:"アニメーションのエクスポート",missingOutputsDetected:"警告: ネットワークの中断により、一部の出力が欠落している可能性があります。欠落している出力を取得するには、スクリプトを再実行してください。",outputLimitExceeded:"警告: パフォーマンス向上のため、残りの出力は表示されません。出力の数を減らすことを検討してください。",suggestionsPopupDontShow:"次回から表示しない",suggestionsPopupLinkText:"シンボリックに関する推奨事項",suggestionsPopupOK:"OK",suggestionsPopupText:"このアイコンをクリックするか、シンボリック出力を右クリックして、次のステップの ${0} を表示してください。",suggestionsPopupTitle:"使用可能な次の推奨ステップ",warningLoadingAllOutputs:"警告: 出力を完全に読み込むことができません。ライブ スクリプトを再実行してください。",warningSynchronizingRegions:"警告: 出力がクリアされました。ライブ スクリプトを再実行して出力を再作成してください。"}},function(e,t,i){e.exports={errorLoadingAllOutputs:"경고: 출력값을 불러올 수 없습니다. 도움이 필요하면 기술 지원팀에 문의하십시오.",errorSavingAllOutputs:"경고: 출력값을 저장할 수 없습니다. 도움이 필요하면 기술 지원팀에 문의하십시오.",errorSavingIndividualOutput:"경고: 일부 출력값을 저장할 수 없습니다. 도움이 필요하면 기술 지원팀에 문의하십시오.",exportDialogTitle:"애니메이션 내보내기",missingOutputsDetected:"경고: 네트워크 중단으로 인해 일부 출력값이 누락되었을 수 있습니다. 누락된 출력값을 가져오려면 스크립트를 다시 실행하십시오.",outputLimitExceeded:"경고: 성능 향상을 위해 나머지 출력값이 표시되지 않습니다. 출력값 개수를 줄여 보십시오.",suggestionsPopupDontShow:"다시 표시 안 함",suggestionsPopupLinkText:"기호 작업 제안",suggestionsPopupOK:"확인",suggestionsPopupText:"이 아이콘을 클릭하거나 기호 출력값을 마우스 오른쪽 버튼으로 클릭하여 다음 단계를 위한 ${0}을(를) 확인하십시오.",suggestionsPopupTitle:"다음 단계에 가능한 작업 제안",warningLoadingAllOutputs:"경고: 출력값을 완전히 불러올 수 없습니다. 라이브 스크립트를 다시 실행하십시오.",warningSynchronizingRegions:"경고: 출력값이 지워졌습니다. 라이브 스크립트를 다시 실행하여 출력값을 다시 생성하십시오."}},function(e,t,i){e.exports={errorLoadingAllOutputs:"警告: 无法加载输出。请与技术支持联系以获取帮助。",errorSavingAllOutputs:"警告: 无法保存输出。请与技术支持联系以获取帮助。",errorSavingIndividualOutput:"警告: 无法保存某些输出。请与技术支持联系以获取帮助。",exportDialogTitle:"导出动画",missingOutputsDetected:"警告: 由于网络中断,某些输出可能丢失。要找回丢失的输出,请重新运行脚本。",outputLimitExceeded:"警告: 为了提高性能,未显示其余的输出。请考虑减少输出数量。",suggestionsPopupDontShow:"不再显示",suggestionsPopupLinkText:"符号建议",suggestionsPopupOK:"确定",suggestionsPopupText:"通过点击此图标或右键点击符号输出,查看 ${0} 以了解后续步骤。",suggestionsPopupTitle:"存在建议的后续步骤",warningLoadingAllOutputs:"警告: 无法完全加载输出。请重新运行实时脚本。",warningSynchronizingRegions:"警告: 输出已清除。请重新运行实时脚本以重新创建输出。"}},function(e,t,i){e.exports={root:{errorLoadingAllOutputs:"Warning: Unable to load outputs. Contact Technical Support for assistance.",errorSavingAllOutputs:"Warning: Unable to save outputs. Contact Technical Support for assistance.",errorSavingIndividualOutput:"Warning: Unable to save some outputs. Contact Technical Support for assistance.",exportDialogTitle:"Export Animation",missingOutputsDetected:"Warning: Some output might be missing due to a network interruption. To get the missing output, rerun the script.",outputLimitExceeded:"Warning: For increased performance, remaining outputs are not shown. Consider reducing the number of outputs.",suggestionsPopupDontShow:"Don't show again",suggestionsPopupLinkText:"symbolic suggestions",suggestionsPopupOK:"OK",suggestionsPopupText:"View ${0} for next steps by clicking this icon or right-clicking the symbolic output.",suggestionsPopupTitle:"Suggested Next Steps Available",warningLoadingAllOutputs:"Warning: Unable to fully load outputs. Rerun the live script.",warningSynchronizingRegions:"Warning: Outputs cleared. Rerun the live script to recreate the outputs."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(230),i(203),i(246),i(204),i(227),i(206),i(477),i(527),i(209),i(716)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return t([e],{constructor:function(){this._listeners=null},destroy:function(){this._removeListeners(),this.inherited(arguments)},_addListenersIfNeeded:function(e,t){if(this._listeners){if(o.isDescendant(e,document.body))return;l.error("Listeners are on elements not in the dom. Recreating listeners. This is not a customer-facing bug; there are no functional side effects."),this._removeListeners()}var i=r(e,c.MOUSEWHEEL,n.hitch(this,"_checkScroll",e)),d=r(e,"scroll",n.hitch(this,"_handleScrollEvent",t,e)),u=new a(e,[s.tapmove({options:{numTaps:0},callbacks:{began:n.hitch(this,"_handleDownEvent")}})]);this._listeners={mouseWheelScrollListener:i,scrollListener:d,gestureDetector:u}},_removeListeners:function(){this._listeners&&(this._listeners.mouseWheelScrollListener.remove(),this._listeners.scrollListener.remove(),this._listeners.gestureDetector.destroy(),this._listeners=null)},_checkScroll:function(e,t){var i=this._checkVerticalScroll(e,t),n=this._checkHorizontalScroll(e,t);(i||n)&&t.stopPropagation()},_handleScrollEvent:function(e,t,i){this._updateScrollTopAttribute(e,t),this._updateScrollLeftAttribute(e,t)},_updateScrollTopAttribute:function(e,t){var i=t.scrollTop;e.setAttribute("data-scroll-top",i)},_updateScrollLeftAttribute:function(e,t){var i=t.scrollLeft;e.setAttribute("data-scroll-left",i)},_checkVerticalScroll:function(e,t){var i=!1,n=e.scrollTop,o=e.scrollHeight-e.clientHeight,r=c.getVerticalScrollDistance(t);return r>0?i=0!==n:r<0&&(i=n!==o),i},_checkHorizontalScroll:function(e,t){var i=!1,n=e.scrollLeft,o=e.scrollWidth-e.clientWidth,r=c.getHorizontalScrollDistance(t);return r>0?i=0!==n:r<0&&(i=n!==o),i},_handleDownEvent:function(e){var t=e.srcEvent;c.isEventInScrollbarTrack(t)&&i.stop(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4650),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.embeddedoutputs","rtc.localfunctionnotifier","rtc.internaldocument","rtc.code.sections.model","rtc.embeddedoutputs.syntaxerrors"]}},createInstance:function(e,i,n,o,r){var a=e._outputsModel;return new t(a,i,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(925)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(e,n,o,r,a){this._embeddedOutputsModel=e,this._localFunctionNotifier=n,this._internalDocument=o,this._sectionModel=r,this._syntaxErrorHandler=a,this._functionInfo=null,this._aspectHandles=[],this._aspectHandles.push(i.after(this._localFunctionNotifier,"onValidFunctionsChange",t.hitch(this,"_functionListener"),!0))},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]},_functionListener:function(e){e.type===n.VALID_FUNCTIONS_ADDED||e.type===n.VALID_FUNCTIONS_CHANGED?(this._functionInfo={startLine:e.validFunctions[0].getStartLine()-1,endLine:e.validFunctions[e.validFunctions.length-1].getEndLine()-1},this._clearOutputsFromFunction()):e.type===n.VALID_FUNCTIONS_REMOVED&&(this._functionInfo=null)},_clearOutputsFromFunction:function(){var e=this._functionInfo.startLine,t=this._functionInfo.endLine,i=this._internalDocument.getLineNode(e),n=this._internalDocument.getLineNode(t),o=this._embeddedOutputsModel.getSectionRegionsFromNodeRange(i,n);o.length>0&&this._embeddedOutputsModel.clearOutputsForward(o[0].code.regionNumber,this._syntaxErrorHandler.isSyntaxError)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4652)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.embeddedoutputs.model","rtc.internaldocument"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(623),i(219)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{_GET_REGIONS_DATA_REQUEST_NAMESPACE:"/embeddedOutputs/getRegionsDataRequest/",_GET_REGIONS_DATA_RESPONSE_NAMESPACE:"/embeddedOutputs/getRegionsDataResponse/",constructor:function(e,t,i,n){this._editorId=e,this._outputsModel=t,this._internalDocument=i,this._messageService=n||o,this._messageService.subscribe(this._GET_REGIONS_DATA_REQUEST_NAMESPACE+this._editorId,"_getRegionsDataRequest",this)},_getRegionsDataRequest:function(){var e={status:!0,exception:""};try{e.regionsData=n.updateAndGetAllExecutableRegions(this._outputsModel,this._internalDocument)}catch(t){e.status=!1,e.exception=t}this._messageService.publish(this._GET_REGIONS_DATA_RESPONSE_NAMESPACE+this._editorId,e)},destroy:function(){this._messageService.unsubscribe(this._GET_REGIONS_DATA_REQUEST_NAMESPACE+this._editorId,"_getRegionsDataRequest",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4654),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.executionservice.statehandler","rtc.embeddedoutputs.model"]}},createInstance:function(e,i){return new t(e,i)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(619)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(e,n){this._stateHandler=e,this._eoModel=n,this._hasEvaluatedFirstRegion=!1,this._previousSyntaxError=null,this._evalArgs=[],this._aspectHandles=[],this._aspectHandles.push(i.after(this._stateHandler,"onStateChanged",t.hitch(this,"_stateChangeListener"),!0))},_stateChangeListener:function(e,t){if(e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED)this._previousSyntaxError=this.getFirstSyntaxErrorOutput(),this._evalArgs=t;else if(e===this._stateHandler.CHANGE_TYPE_ENUM.REGION_EVAL_STARTED)this._hasEvaluatedFirstRegion||(this._hasEvaluatedFirstRegion=!0,this._clearSyntaxError(this._previousSyntaxError),this.onParseCompletedWithNoSyntaxErrors(this._evalArgs));else if(e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE)if(this._hasEvaluatedFirstRegion=!1,this._evalArgs=[],"syntax"===t.errorType){var i=this.getFirstSyntaxErrorOutput();this._syntaxErrorsAreSame(this._previousSyntaxError,i)?this._clearSyntaxError(i):(this._clearSyntaxError(this._previousSyntaxError),this._previousSyntaxError=null),this.onSyntaxError(t)}else this.onEvaluationCompletedWithNoSyntaxErrors(t)},onSyntaxError:function(e){},onParseCompletedWithNoSyntaxErrors:function(e){},onEvaluationCompletedWithNoSyntaxErrors:function(e){},_syntaxErrorsAreSame:function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;if(!e.codeLinePositions||!t.codeLinePositions||e.codeLinePositions.length!==t.codeLinePositions.length)return!1;var i=e.codeLinePositions.every((function(e,i){return e.line===t.codeLinePositions[i].line})),n=e.getErrorType()===t.getErrorType()&&e.getText()===t.getText(),o=e.identifier===t.identifier&&!t.identifier;return i&&n&&o},_clearSyntaxError:function(e){e&&this._eoModel.removeOutput(e)},getFirstSyntaxErrorOutput:function(){return this._eoModel.findOutput(this.isSyntaxError)},isSyntaxError:function(e){return e.type===n.OUTPUT_TYPE&&e.getErrorType()===n.SYNTAX_ERROR_TYPE},hasSyntaxError:function(e){return e.some(this.isSyntaxError)},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4656)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.embeddedoutputs.model","rtc.executionservice.statehandler","rtc.embeddedoutputs.dataservice","rtc.execution.executiondataservice","rtc.code.sections.model","rtc.internaldocument","rtc.execution.controlc"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2014),i(203),i(204),i(208),i(237),i(2017)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(e,{_REQUEST_TYPE:"Unrequested",constructor:function(e,t,i,n,o,r,a,s){this._controlCService=s},_startFeature:function(){},executeRequest:function(e){this._startRequest(e)},interrupt:function(e){this._controlCService.interrupt()},getType:function(){return this._REQUEST_TYPE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4658),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.domnode.external","rtc.featureinterface","rtc.focusservice","rtc.bannermanager","rtc.backingstore"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1131),i(207),i(208),i(1438),i(805),i(827)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(r,{constructor:function(e,t,i,n,o){this._rtcDomNodeExternal=e,this._featureInterface=t,this._focusService=i,this._bannerManager=n,this._backingStore=o,this._banner=null},show:function(e){this._currentId!==e&&this._logDduxEvent(e),this._banner&&this._banner.closeBanner(),this._banner=new a({bannerText:t[e],closable:!0,parent:this._bannerManager.getTopBannerContainer(),type:"top",resizer:this._featureInterface.resize,focusService:this._focusService,sibling:this._rtcDomNodeExternal}),this._currentId=e,this._bannerAspect=n.after(this._banner,"onClosed",this._handleBannerClosed.bind(this)),this._bannerManager.registerBanner(this._banner,this._rtcDomNodeExternal)},log:function(e){this._logDduxEvent(e)},_logDduxEvent:function(e){if(!e)return;const t=this._backingStore.getFileName();o.generateHash(t).then(function(t){this.onLogEvent({actionId:"rtc.embeddedoutputs.warningevent",gesture:"outputEvent",metadata1:e,metadata2:t||"UnknownFileName"})}.bind(this))},_handleBannerClosed:function(){this._bannerAspect.remove(),this._bannerAspect=null,this._bannerManager.deregisterBanner(this._banner,this._rtcDomNodeExternal),this._banner=null,this._currentId=null},destroy:function(){this._banner&&this._banner.closeBanner(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="bannerWidget">\n <div class="icon" data-dojo-attach-point="iconNode"></div>\n <div type="button" class ="closeButton" data-dojo-attach-point="closeButtonNode" data-dojo-attach-event="onClick:closeBanner"></div>\n <div class="buttonsContainer" data-dojo-attach-point="buttonsContainer"></div>\n <div class="bannerText" data-dojo-attach-point="bannerTextNode"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(4661),i(4664)],o=i.dj.d(n,(function(e,t,i){return e(null,{_editorDocumentProxy:null,constructor:function(e){this._editorDocumentProxy=new i({_sectionModel:e.sectionModel,_staleSectionModel:e.staleSectionModel,_clipboard:e.clipboard,_document:e.document,_internalDocument:e.internalDocument,_embeddedOutputsModel:e.embeddedOutputsModel,_focusService:e.focusService,_cursor:e.cursor,_cursorController:e.cursorController,_embeddedOutputsView:e.embeddedOutputsView,_codeGenContributors:e.codeGenContributors||[],_variableService:e.variableService}),this._embeddedOutputsDependencies={stateHandler:e.stateHandler,embeddedOutputsModel:e.embeddedOutputsModel,embeddedOutputsView:e.embeddedOutputsView}},createEditorCodeGenerator:function(){var e=new t;return e.setEditorDocumentProxy(this._editorDocumentProxy),e.setEmbeddedOutputsDependencies(this._embeddedOutputsDependencies),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(253),i(213),i(4662),i(217),i(210),i(222),i(208),i(2019)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([r,l],{_clipboard:null,_output:null,_generatedCode:null,_insertedCode:null,_editorDocumentProxy:null,_stalenessChangeListener:null,_outputPositions:null,_shouldForceDisablement:!1,_stateHandler:null,_embeddedOutputsModel:null,_embeddedOutputsView:null,_enablementConditionCallback:null,_wasDestroyed:!1,_stateHandlerAspects:null,_documentEditedTooltip:n.disableWhenDocumentEdited,_DISABLED_WHILE_RUNNING_TOOLTIP:n.disabledDuringExecution,_CODEGEN_INTERACTION:"CodeGenInteraction",_MIN_TOP:3,_MAX_TOP:13,_READONLY_STATE:"readOnlyStateChange",_overrideInlinePosition:!1,_DISABLED_WHILE_READONLY_TOOLTIP:n.disableWhenReadOnly,_attachAtNextUpdate:!1,constructor:function(){this._stateHandlerAspects=[]},postCreate:function(){this.inherited(arguments),this.disableUpdateCodeBtn(this._DISABLED_WHILE_RUNNING_TOOLTIP)},setEditorDocumentProxy:function(e){this._editorDocumentProxy=e;var n=this._editorDocumentProxy.getInternalDocument();null!=n&&(this.own(c.after(n,"readOnlyChanged",i.hitch(this,"_readOnlyStateChanged"),!0)),this.own(c.after(n,"onDocumentChanged",i.hitch(this,"_documentReadOnlyChanged"),!0))),this._stalenessChangeListener=t(this._editorDocumentProxy,"stalenessChange",i.hitch(this,"_documentEdited"))},_documentReadOnlyChanged:function(e){for(var t=0;t<e.length;t++){e[t].type===this._READONLY_STATE&&this._setCodeGenButtonState()}},_readOnlyStateChanged:function(e){if(e){if(this._updateButtonTooltip.label)return;this.disableUpdateCodeBtn(this._DISABLED_WHILE_READONLY_TOOLTIP)}else{if(this._wasDestroyed)return;if(this._updateButtonTooltip.label!==this._DISABLED_WHILE_READONLY_TOOLTIP)return;this.enableUpdateCodeBtn()}},setCodeGenDependencies:function(e){this._output=e.output,this._outputPositions=e.outputPositions,e.overrideInlinePosition&&(this._overrideInlinePosition=e.overrideInlinePosition)},updateUsedVariableNames:function(e){return this._editorDocumentProxy.updateUsedOutputVariableNames(e)},attachWhenReady:function(e){this._generatedCode?this.attach(e):this._attachAtNextUpdate=!0},updateWidget:function(e,t,i,n){if(i)this.detach();else if(t&&t.length>0){(n||this._attachAtNextUpdate)&&this.attach(e),this.setGeneratedCode(t);var o=this;if(this._deferredObj){var r=this._deferredObj.promise;r&&!r.isResolved()?r.then((function(){o.updateCodeArea()})):this.updateCodeArea()}else this.updateCodeArea()}},updateCodeArea:function(){this.setText(this.combineCodeLines(this._generatedCode))},setGeneratedCode:function(e){this._generatedCode=e},combineCodeLines:function(e){for(var t=e[0],i=1;i<e.length;i++)t=t+"\n"+e[i];return t},_canEnableCodeBtn:function(){return!this._shouldForceDisablement},_documentEdited:function(e){if(!this._isUpdateCodeButtonDisabled()&&this._output.codeLinePositions&&0!==this._output.codeLinePositions.length&&e){var t=this._editorDocumentProxy.getSectionNumberForNode(this._output.codeLinePositions[this._output.codeLinePositions.length-1].node);e.forEach((function(e){t===e&&(this.disableUpdateCodeBtn(this._documentEditedTooltip),this._shouldForceDisablement=!0)}),this)}},_insertGeneratedCode:function(){var e=this._generatedCode;if(e&&0!==e.length){var t=this._output.codeLinePositions[this._output.codeLinePositions.length-1].line+1;e.unshift("");var i=this.combineCodeLines(e);if(this._insertedCode){var n=this._insertedCode[this._insertedCode.length-1].length,o=(t-=this._insertedCode.length)+1,r=t+this._insertedCode.length,a=n+1;this._editorDocumentProxy.replaceCode(i,o,r,a)}else this._editorDocumentProxy.insertCode(i,t);this._insertedCode=this._generatedCode,this._editorDocumentProxy.remapInjectedCodeLinesToOutputs(this._output,this._generatedCode.length,t);var s=t+e.length,l=e[e.length-1].length;this._editorDocumentProxy.setCursor(s,l+1,!0)}},_updateBtnClick:function(e){var t=this._editorDocumentProxy.getDocument();t.startEdit(),this._insertGeneratedCode(),this._addInteractionsToUndoRedo(t),t.endEdit(),this.detach(),e.stopPropagation(),this._editorDocumentProxy.setDocumentFocus(),this._embeddedOutputsView.outputChanged()},_addInteractionsToUndoRedo:function(e){var t={interactionType:this._CODEGEN_INTERACTION,imgNode:this._previousDomNode},i=this;e.undoable((function(e){e.appendCommand(new d(i,t))}))},copyBtnClick:function(){var e=this.inherited(arguments);this._editorDocumentProxy.copyCode(e),event.stopPropagation()},destroy:function(){this.inherited(arguments),this._stalenessChangeListener&&this._stalenessChangeListener.remove(),this._stateHandlerAspects.forEach((function(e){e.remove()})),this._stateHandlerAspects=[],this._wasDestroyed=!0},attach:function(e){return this.inherited(arguments),this.containerNode&&this.containerNode.parentNode&&(this._setCodeGenButtonState(),this._setCodeGenLayout(e),this._setCodeGenTopMargin(e)),this._deferredObj.promise},_setCodeGenButtonState:function(){var e=this._editorDocumentProxy.getInternalDocument();if(null!=e){var t=!0;if(this._output&&this._output.codeLinePositions&&0!==this._output.codeLinePositions.length){var i=this._output.codeLinePositions[this._output.codeLinePositions.length-1].line,n=i+1,o=void 0===e.getLineNode(n)&&e.getLineNode(i).isReadOnly(),r=void 0!==e.getLineNode(n)&&e.getLineNode(n).isReadOnly();t=!(o||r),this._editorDocumentProxy._codeGenContributors.some((function(n){var o=n.canUpdateCode(e.getLineNode(i));if(void 0!==o)return t=o,!o}))}this._readOnlyStateChanged(e.isReadOnly()||!t)}},_setCodeGenTopMargin:function(e){0===this._getBottomRef(e)?(s.add(this.containerNode,"noTopMargin"),s.remove(this.containerNode,"addTopMargin")):(s.add(this.containerNode,"addTopMargin"),s.remove(this.containerNode,"noTopMargin"))},_setCodeGenLayout:function(e){var t=a.position(e).w;this._overrideInlinePosition||this.changeCodeGenLayout(t)},changeCodeGenLayout:function(e){this.containerNode&&(null!=e&&"number"==typeof e&&this._setCodeGenWidgetWidth(e),this._doInlineElementResize())},_setCodeGenWidgetWidth:function(e){this.containerNode.parentNode&&this.isInline(this.containerNode.parentNode)&&o.set(this.containerNode,"width","calc(100% - "+(e+10)+"px)")},resizeCodeGen:function(){this.inherited(arguments),this._setCodeGenPosition()},_getRefPosition:function(){var e,t=this._outputPositions;return Array.isArray(t)?e=Array.isArray(t[0])?t[0]:t:t&&0!==t.length||(t=[e=[0,0,1,1]]),t.forEach((function(t){t[1]>=e[1]&&(e=t)})),this._getRefPlotBox(e)},_setCodeGenPosition:function(){var e=this._getTopForElement(this.arrowImgNode);o.set(this.containerNode,{top:e+"px"})},_getElementBounds:function(e){var t=a.position(e);return{width:t.w,height:t.h,left:t.x,top:t.y}},_getTopRef:function(){var e=this._getRefPosition(),t=this._getElementBounds(this._previousDomNode);return e.yLow-t.top},_getBottomRef:function(e){var t=this._getRefPosition(),i=this._getElementBounds(e);return t.yHigh-(i.top+i.height)},_getRefPlotBox:function(e){var t=a.position(this._previousDomNode),i=t.h-(e[1]+e[3])*t.h+t.y,n=t.h-e[1]*t.h+t.y,o=(e[0]+e[2])*t.w+t.x;return{xLow:e[0]*t.w+t.x,xHigh:o,yLow:i,yHigh:n}},_getTopForElement:function(e){var t=this._getTopRef()-(this._getElementBounds(e).height+this._MAX_TOP);return t<this._MIN_TOP+2?t=this._MIN_TOP+2:t>this._MAX_TOP&&(t=this._MAX_TOP),t},setEnablementCondition:function(e,t){this._enablementConditionCallback=e,this._disableUpdateCodeBtnTooltipMessage=t},setEmbeddedOutputsDependencies:function(e){this._stateHandler=e.stateHandler,this._embeddedOutputsModel=e.embeddedOutputsModel,this._embeddedOutputsView=e.embeddedOutputsView,this._stateHandlerAspects.push(c.after(this._stateHandler,"onStateChanged",i.hitch(this,"_handleStateChanged"),!0)),this.own(t(this.containerNode,this._eventName,i.hitch(this,(function(e){this._embeddedOutputsView.outputChanged()}))))},_handleStateChanged:function(e){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED?this._handleEvaluationStart():e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&this._handleEvaluationEnd()},_handleEvaluationStart:function(){this._updateButtonTooltip.label||(this.disableUpdateCodeBtn(this._DISABLED_WHILE_RUNNING_TOOLTIP),this.disableCopyBtn())},_handleEvaluationEnd:function(){var e=i.hitch(this,(function(){this._wasDestroyed||this._updateButtonTooltip.label===this._DISABLED_WHILE_RUNNING_TOOLTIP&&(!this._enablementConditionCallback||this._enablementConditionCallback()?this.enableUpdateCodeBtn():this.disableUpdateCodeBtn(this._disableUpdateCodeBtnTooltipMessage),this.enableCopyBtn())}));this._embeddedOutputsModel.whenOutputsReady(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(213),i(203),i(210),i(228),i(279),i(206),i(248),i(204),i(211),i(215),i(216),i(4663),i(253),i(312),i(614),i(771),i(212),i(221),i(437),i(828)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b=!0;return t([c,d],{baseClass:"codeGen",templateString:u,_MAX_TEXT_SIZE:6,_MIN_TEXT_SIZE:1,_TOOLTIP_SHOW_DELAY:0,_TOOLTIP_HIDE_DELAY:100,_MIN_CODE_WIDTH:10,_updateCodeHandler:null,_copyLabel:h.copyLabel,_codeLabel:h.codeLabel,_updateCodeLabel:h.updateCodeLabel,_isCodeExpanded:!1,_updateButtonTooltip:null,_codeGenAreaSlideAnim:null,_codeDivMinWidth:0,_animationDuration:300,_windowMouseMoveListener:null,_windowMouseUpListener:null,_previousDomNode:null,_animationCompleteEvent:document.createEvent("CustomEvent"),_eventName:"AnimationDone",_deferredObj:null,_HAS_POINTER_EVENTS:window.PointerEvent,postCreate:function(e){this.inherited(arguments),this._addEventHandlers(),this._setupTooltip(),this._animationCompleteEvent.initEvent(this._eventName,!0,!0)},attach:function(t){return this.containerNode&&this.containerNode.parentNode&&this._previousDomNode===t?null:(this._deferredObj=new m,this._previousDomNode=t,l.place(this.containerNode,this._previousDomNode,"after"),0===this._codeDivMinWidth&&(this._codeDivMinWidth=e.get(this.codeDiv,"min-width")),this._setBusyIndicator(),this.toggleCode(),this._output&&this._output._figureProxy&&this._output._figureProxy&&this._output._figureProxy.figureView.codeGenAttached(),this._deferredObj.promise)},detach:function(){this.containerNode&&this.containerNode.parentNode&&this.containerNode.parentNode.removeChild(this.containerNode)},destroy:function(){this.inherited(arguments),this._updateCodeHandler&&this._updateCodeHandler.remove(),this._windowMouseMoveListener&&this._windowMouseMoveListener.remove()},_WindowButtonMouseMove:function(e){n.set(this.textarea,"readOnly",!1),e.stopPropagation()},_WindowButtonMouseUp:function(e){n.set(this.textarea,"readOnly",!0),this._windowMouseMoveListener.pause(),window.removeEventListener(this._HAS_POINTER_EVENTS?"pointerup":"mouseup",this._windowMouseUpListener,!0),e.stopPropagation()},_addEventHandlers:function(){this.own(r(this.codeDiv,"click",s.hitch(this,"_setToggleAction"))),this._updateCodeHandler=r.pausable(this.updateBtn,"click",s.hitch(this,"_updateBtnClick")),this.own(r(this.copyBtn,"click",s.hitch(this,"copyBtnClick"))),this.own(r(this.containerNode,a.press,s.hitch(this,(function(e){e.stopPropagation()})))),this.own(r(this.textarea,"click",s.hitch(this,(function(e){e.stopPropagation()})))),this.own(r(this.textarea,"dragstart",(function(e){dojo.stopEvent(e)}))),this.own(r(this.textarea,"dragend",(function(e){dojo.stopEvent(e)}))),this.own(r(this.textarea,a.press,s.hitch(this,(function(e){this._windowMouseMoveListener||(this._windowMouseMoveListener=r.pausable(window,a.move,s.hitch(this,"_WindowButtonMouseMove"))),this._windowMouseMoveListener.resume(),this._windowMouseUpListener=s.hitch(this,"_WindowButtonMouseUp"),window.addEventListener(this._HAS_POINTER_EVENTS?"pointerup":"mouseup",this._windowMouseUpListener,!0),e.stopPropagation()})))),this.own(r(this.textarea,"keydown",s.hitch(this,(function(e){this._isCopyKeyDownEvent(e)||e.preventDefault()})))),this.own(r(this.containerNode,"mousewheel",s.hitch(this,(function(e){e.stopPropagation()})))),this.own(r(this.containerNode,a.release,s.hitch(this,(function(e){e.stopPropagation()})))),this.own(r(this.updateBtn,a.leave,s.hitch(this,(function(e){this.isValidLeaveEvent(e)&&p.hide(this.updateBtn)})))),(_("trident")||_("ie")||_("edge"))&&this.own(r(this.textarea,"selectstart",(function(e){e.stopPropagation()})))},_isCopyKeyDownEvent:function(e){if("keydown"===e.type){var t=this._getKeyCode(e);return t&&67===t&&(e.ctrlKey||e.metaKey)}},_getKeyCode:function(e){return e.which?e.which:e.keyCode?e.keyCode:e.charCode?e.charCode:e.key?e.key:null},isValidLeaveEvent:function(e){return!(e.relatedTarget&&i.contains(e.relatedTarget,"dijitTooltipConnector"))},_setupTooltip:function(){this._updateButtonTooltip=new p({class:v.TOOLTIP_CLASS,connectId:this.updateBtn,position:["below","before","after","above"],showDelay:this._TOOLTIP_SHOW_DELAY,hideDelay:this._TOOLTIP_HIDE_DELAY})},_setCodeGenSlideInTransition:function(){e.set(this.codeGenArea,"display","none");var t=this;this._codeGenAreaSlideAnim=f.wipeIn({node:this.codeGenArea,duration:this._animationDuration,easing:g.linear,beforeBegin:function(){t.arrowImgNode.classList.remove("blueArrowDownImage"),t.arrowImgNode.classList.add("blueArrowUpImage"),i.add(t.codeGenArea,"expanded")}}),r(this._codeGenAreaSlideAnim,"End",(function(){t.containerNode&&(t._doInlineElementResize(),t.containerNode.dispatchEvent(t._animationCompleteEvent),t._scrollCodeGenToView(),void 0!==t._deferredObj&&null!==t._deferredObj&&t._deferredObj.resolve("success"))}),!0),this._codeGenAreaSlideAnim.play()},_setCodeGenSlideOutTransition:function(){var t=this;e.set(this.codeGenArea,"display","block"),this._codeGenAreaSlideAnim=f.wipeOut({node:this.codeGenArea,duration:this._animationDuration,easing:g.linear}),r(this._codeGenAreaSlideAnim,"End",(function(){t.containerNode&&(t.arrowImgNode.classList.remove("blueArrowUpImage"),t.arrowImgNode.classList.add("blueArrowDownImage"),i.remove(t.codeGenArea,"expanded"),t._doInlineElementResize(),t.containerNode.dispatchEvent(t._animationCompleteEvent),void 0!==t._deferredObj&&null!==t._deferredObj&&t._deferredObj.resolve("success"))}),!0),this._codeGenAreaSlideAnim.play()},toggleCode:function(){b?this._showCode():this._hideCode()},_setToggleAction:function(){this._isCodeExpanded?this._hideCode():this._showCode()},_hideCode:function(){b=!1,this._isCodeExpanded=!1,this._setCodeGenSlideOutTransition()},_showCode:function(){b=!0,this._isCodeExpanded=!0,this._setCodeGenSlideInTransition()},_updateLayout:function(){var t=this.textarea.value,n=this._MIN_TEXT_SIZE,o=t.split("\n"),r=o.length;r>this._MAX_TEXT_SIZE?(n=this._MAX_TEXT_SIZE,i.remove(this.textarea,"nohover")):r>=this._MIN_TEXT_SIZE&&(n=r,i.add(this.textarea,"nohover")),this.textarea.rows=n,this.textarea.scrollTop=this.textarea.scrollHeight,e.set(this.textarea,"height",n+"rem"),e.set(this.codeGenArea,"height",n+2.7+"rem"),this._setCodeAreaWidth(o)},_setCodeAreaWidth:function(t){var i=t.sort((function(e,t){return t.length-e.length}))[0].length/2+2;i>this._MIN_CODE_WIDTH&&e.set(this.codeGenArea,"min-width",i+"rem"),this._doInlineElementResize()},copyBtnClick:function(){return this.getSelectedText()},getSelectedText:function(){var e={text:"",html:""};if("selectionStart"in this.textarea)this.textarea.selectionStart!=this.textarea.selectionEnd&&(e.text=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd));else{var t=document.selection.createRange();t.parentElement()===this.textarea&&(e.text=t.text)}return""===e.text&&(e.text=this.textarea.value),this.textarea.selectionStart=this.textarea.selectionEnd,e},setText:function(e){i.remove(this.textarea,"codegenprogressbar"),null!=e&&"string"==typeof e&&(this.textarea.value=e,this._updateLayout())},_updateBtnClick:function(e){},_setBusyIndicator:function(){""===this.textarea.value&&i.add(this.textarea,"codegenprogressbar")},disableUpdateCodeBtn:function(e){i.add(this.updateBtn,"disabled"),this._updateCodeHandler.pause(),this._updateButtonTooltip.label=e},enableUpdateCodeBtn:function(){this._canEnableCodeBtn()&&(this._updateButtonTooltip.label="",i.remove(this.updateBtn,"disabled"),this._updateCodeHandler.resume())},disableCopyBtn:function(){this.copyBtn.disabled=!0},enableCopyBtn:function(){this.copyBtn.disabled=!1},_canEnableCodeBtn:function(){return!0},_isUpdateCodeButtonDisabled:function(){return i.contains(this.updateBtn,"disabled")},_scrollCodeGenToView:function(){o.scrollIntoView(this.containerNode)},disable:function(){i.add(this.containerNode,"disabled")},enable:function(){i.remove(this.containerNode,"disabled")},_doInlineElementResize:function(){this.containerNode.parentNode&&this.isInline(this.containerNode.parentNode)&&this.resizeCodeGen()},resizeCodeGen:function(){var t=e.get(this.containerNode,"width");this._codeDivMinWidth>t?(i.add(this.codeLabel,"hideLabel"),i.add(this.codeDiv,"diminishCode")):(i.remove(this.codeLabel,"hideLabel"),i.remove(this.codeDiv,"diminishCode")),e.get(this.codeGenArea,"width")>t&&this._isCodeExpanded?(i.add(this.codeDiv,"outlineBorder"),i.add(this.codeGenArea,"outerBorder")):(i.remove(this.codeDiv,"outlineBorder"),i.remove(this.codeGenArea,"outerBorder"))},isInline:function(e){for(var t=e.parentNode;t&&t!==document;){if(i.contains(t,"inlineElement"))return!0;t=t.parentNode}return!1},isCodeGenAttached:function(){return this.containerNode&&this.containerNode.parentNode}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point=\'containerNode\' class="${baseClass} figureWidget">\n <div data-dojo-attach-point="codeDiv" class="codeexpander">\n <span class="codepopuplabel" data-dojo-attach-point="codeLabel">${_codeLabel}</span>\n <div data-dojo-attach-point="arrowImgNode" class="codepopuparrow"></div>\n </div>\n <div data-dojo-attach-point="codeGenArea" class="codegentoggle overlay">\n <textarea spellcheck="false" name="codearea" data-dojo-attach-point="textarea" class="textcodepopup" readonly rows="${_MIN_TEXT_SIZE}" dojoType="dijit.form.Textarea"></textarea>\n <button type="button" data-dojo-attach-point="updateBtn" class="codebtn" data-dojo-type="dijit.form.Button">${_updateCodeLabel}</button>\n <button type="button" data-dojo-attach-point="copyBtn" class="codebtn copybutton" data-dojo-type="dijit.form.Button">${_copyLabel}</button>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(208),i(237),i(266),i(1352)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(i,{_sectionModel:null,_staleSectionModel:null,_clipboard:null,_document:null,_internalDocument:null,_embeddedOutputsModel:null,_focusService:null,_documentStaleEditAspect:null,_cursor:null,_cursorController:null,_codeGenContributors:null,_variableService:null,constructor:function(e){t.mixin(this,e),this._staleSectionModel&&(this._documentStaleEditAspect=n.after(this._staleSectionModel,"onModelUpdated",t.hitch(this,"_documentEdited"),!0))},setDocumentFocus:function(){this._focusService.setFocus()},getInternalDocument:function(){return this._internalDocument},_documentEdited:function(e){this.emit("stalenessChange",e)},getDocument:function(){return this._document},updateUsedOutputVariableNames:function(e){return e.forEach((function(t,i){var n=t.indexOf("=");if(n>0){var o=t.substr(0,n).trim();if(this._variableService.isReady())var r=this._variableService.generateUnusedVariableName(o);else r=o;if(o!==r)for(var a=new RegExp(o,"g"),s=i;s<e.length;s++)e[s]=e[s].replace(a,r)}}),this),e},insertCode:function(e,i){this._staleSectionModel&&this._documentStaleEditAspect.remove();var o=this._document.getLineText(i);this.setCursor(i,o.length+1,!1),this._document.insertBreak(),this._document.insertText(e,i+1,o.length+1),this._staleSectionModel&&(this._documentStaleEditAspect=n.after(this._staleSectionModel,"onModelUpdated",t.hitch(this,"_documentEdited"),!0))},setCursor:function(e,t,i){this._cursorController.clearSelection(),this._cursor.setLineColumn(e,t,i)},replaceCode:function(e,i,o,r){this._staleSectionModel&&this._documentStaleEditAspect.remove(),this._document.replaceText(e,i,1,o,r),this._staleSectionModel&&(this._documentStaleEditAspect=n.after(this._staleSectionModel,"onModelUpdated",t.hitch(this,"_documentEdited"),!0))},copyCode:function(e){a.copyContent(this._clipboard,e)},getSectionNumberForNode:function(e){return this._sectionModel.getSectionNumberForNode(e)},remapInjectedCodeLinesToOutputs:function(e,t,i){var n=this._addGeneratedCodeLinePositions(e.codeLinePositions,i,t);e.codeLinePositions=n;var o=n[n.length-1],a=this._embeddedOutputsModel.addRegionForPosition(o);this._embeddedOutputsModel.setReplacementRange(new r(o,o)),this._embeddedOutputsModel.updateOutputAssociations(e,a),this._embeddedOutputsModel.clearReplacementRange()},_addGeneratedCodeLinePositions:function(e,t,i){var n=[];e.forEach((function(e){e.line>t-1?e.destroy():n.push(e)})),e=n;for(var o=0;o<i;o++){var r=this._internalDocument.getLineNode(t+o);if(null!=r&&r.getText().length>0){var a=this._document.createLinePosition(r,!1);e.push(a)}}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4666),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.id"]}},createInstance:function(e){return new t(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(207),i(219),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,t){this._messageService=t||n,this._editorId=e,this._lastDataRequestId=null,this._requestPromise=null,this._messageService.subscribe("/executionTracker/dataResponse/"+e,"_handleResponse",this)},_handleResponse:function(e){var t=e.data;this._lastDataRequestId===t.requestId&&this._requestPromise&&(delete t.requestId,this._requestPromise.resolve(t),this._lastDataRequestId=null,this._requestPromise=null)},requestData:function(){return this._requestPromise||(this._requestPromise=new t),this._lastDataRequestId=o.generateUuid(),this._messageService.publish("/executionTracker/dataRequest",{editorId:this._editorId,requestId:this._lastDataRequestId}),this._requestPromise.promise},destroy:function(){this.inherited(arguments),this._requestPromise=null,this._messageService.unsubscribe("/executionTracker/dataResponse/"+this._editorId,"_handleResponse",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4668),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.embeddedoutputs.executiontracker","rtc.connectivity.service","rtc.executionservice.statehandler","rtc.embeddedoutputs.embeddedoutputsrequestexecutor","rtc.embeddedoutputs.dataservice","rtc.internaldocument"]}},createInstance:function(e,i,n,o,r,a){return new t(e,i,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,i,n,o,r,a){this._executionStateTracker=e,this._stateHandler=n,this._embeddedOutputsRequestExecutor=o,this.own(t.after(i,"onPossibleReconnection",this._handlePossibleReconnection.bind(this))),this.own(t.after(i,"onFatallyDisconnected",this._handleFatalDisconnection.bind(this))),this.own(t.after(r,"onOutputBatchReceived",this._handleOutputBatch.bind(this),!0)),this.own(t.after(r,"onOutputStreamingDisabled",this._handleOutputStreamingDisabled.bind(this),!0)),this.own(t.after(n,"onStateChanged",this._handleStateChanged.bind(this),!0)),this.own(t.after(a,"onDocumentReset",this._handleDocumentReset.bind(this),!0)),this._lastRequest=null,this._isRetry=!1,this._lastKnownOutputBatch=-1,this._hasAlreadyNotifiedOfMissingOutputs=!1,this._hasOutputStreamingBeenDisabled=!1,this._currentRequest=null},_handleDocumentReset:function(){this._currentRequest=null},_handleFatalDisconnection:function(){this._currentRequest&&this.onImproperlyFinishedExecution(this._currentRequest,this._lastKnownOutputBatch)},_handleStateChanged:function(e,t){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED?this._handleStartOfExecution():e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&this._handleEndOfExecution(t)},_handleOutputStreamingDisabled:function(){this._hasOutputStreamingBeenDisabled=!0},_handleOutputBatch:function(e){if(this._currentRequest){var t=this._lastKnownOutputBatch;this._lastKnownOutputBatch=e,e!==t+1&&this._sendMissingOutputsEvent()}},_handleStartOfExecution:function(){this._lastKnownOutputBatch=0,this._hasAlreadyNotifiedOfMissingOutputs=!1,this._hasOutputStreamingBeenDisabled=!1,this._currentRequest=this._stateHandler.getCurrentRequest()},_handleEndOfExecution:function(e){if(this._shouldHandleForCurrentRequest()){var t=e.lastOutputBatchId;-1!==t&&this._lastKnownOutputBatch!==t&&(this._lastKnownOutputBatch=t,this._sendMissingOutputsEvent())}this._currentRequest=null},_sendMissingOutputsEvent:function(){this._hasAlreadyNotifiedOfMissingOutputs||this._hasOutputStreamingBeenDisabled||(this._hasAlreadyNotifiedOfMissingOutputs=!0,this.onMissingOutputBatch(this._currentRequest))},_handlePossibleReconnection:function(){this._initiateRequest()},_initiateRequest:function(){var e=this._executionStateTracker.requestData();this._lastRequest||(this._lastRequest=e,e.then(function(e){this._handleServersideDataUpdated(e.lastKnownExecution,e.isLastKnownExecutionComplete,e.lastKnownOutputBatch)}.bind(this)))},_shouldHandleForCurrentRequest:function(){var e=this._currentRequest;return e&&e.getRequestType()===this._embeddedOutputsRequestExecutor.getType()},_handleServersideDataUpdated:function(e,t,i){this._lastRequest=null;var n=this._currentRequest;if(this._shouldHandleForCurrentRequest()){var o=n.getRequestId();if(e===o){if(o===e&&t){if(!this._isRetry)return this._isRetry=!0,void this._initiateRequest();this.onImproperlyFinishedExecution(n,i)}this._isRetry=!1}}else this._isRetry=!1},onImproperlyFinishedExecution:function(e,t){},onMissingOutputBatch:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4670),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.diagnosticmessage","rtc.embeddedoutputs.disconnectionrecovery","rtc.embeddedoutputs.model","rtc.document"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(679),i(623),i(1437),i(1131)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(i,{constructor:function(e,i,n,o){this._diagnosticMessageFormatter=e,this._outputsModel=n,this._document=o,this.own(t.after(i,"onMissingOutputBatch",this._handleMissingOutputBatch.bind(this),!0))},_handleMissingOutputBatch:function(e){var t=this._createWarningForRequest(e);this._outputsModel.addUnassociatedOutput(t,e.getEvaluationRange())},_createWarningForRequest:function(e){var t={text:a.missingOutputsDetected,diagnosticMessageFormatter:this._diagnosticMessageFormatter},i=new r(t);return i.evaluationId=e.getRequestId(),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4672),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.embeddedoutputs.disconnectionrecovery","rtc.executionandoutputscontroller","rtc.embeddedoutputs.embeddedoutputsrequestexecutor"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,i,n){this._executionAndOutputsDataServiceController=i,this._embeddedOutputsRequestExecutor=n,this.own(t.after(e,"onImproperlyFinishedExecution",this._handleImproperlyFinishedExecution.bind(this),!0))},_handleImproperlyFinishedExecution:function(e,t){this._clearExecutionQueueAndInterrupt(),this._notifyEndOfExecution(t)},_clearExecutionQueueAndInterrupt:function(){this._executionAndOutputsDataServiceController.interrupt()},_notifyEndOfExecution:function(e){this._embeddedOutputsRequestExecutor.forceExecutionComplete(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4674)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.executionservice.executiontrackingstore","rtc.embeddedoutputs.model"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(234),i(1440)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_EXECUTION_TRACKING_STORE_ID:"GroupingTrackerKey",constructor:function(e,i,n){this._internalDocument=e,this._executionTrackingStore=i,this._embeddedOutputsModel=n,this.own(t.after(this._internalDocument,"onDocumentReset",this._reset.bind(this))),this._executionTrackingStore.registerTracker(this)},getStartLineNumberForRegionNumber:function(e){var t=this._executionTrackingStore.get(this._EXECUTION_TRACKING_STORE_ID);if(t)return t[e]},getId:function(){return this._EXECUTION_TRACKING_STORE_ID},getDataAtRequestTime:function(e){var t=this._embeddedOutputsModel.getRegions(),n=[];return t.forEach((function(e,t){var o=e.code.regionPositions[0];i.isCodeContainer(o.getNode(),!0)?n[t]=i.getCodeLineNumberFromPosition(this._internalDocument,o)-1:n[t]=null}),this),n},destroyTrackedData:function(e,t){},_reset:function(){this._executionTrackingStore.remove(this._EXECUTION_TRACKING_STORE_ID)},destroy:function(){this.inherited(arguments),this._reset()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4676)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","matlab.lexer.statemanager","rtc.linenumberservice","rtc.executionservice.executiontrackingstore"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(234),i(1440)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_EXECUTION_TRACKING_STORE_ID:"LineContinuationTrackerKey",constructor:function(e,n,o,r,a){this._document=e,this._internalDocument=n,this._matlabStateManager=o,this._lineNumberService=r,this._executionTrackingStore=a,this._currentLineNumberMap=null,this.own(i.after(this._internalDocument,"onDocumentReset",t.hitch(this,"_reset"))),this._executionTrackingStore.registerTracker(this)},getAllContinuationLines:function(e){var t=this._executionTrackingStore.get(this._EXECUTION_TRACKING_STORE_ID);return t?this._currentLineNumberMap=t:this._currentLineNumberMap||(this._currentLineNumberMap=this.getDataAtRequestTime(null)),this._currentLineNumberMap[e-1]},getId:function(){return this._EXECUTION_TRACKING_STORE_ID},getDataAtRequestTime:function(e){for(var t=n.getCodeLineNodes(this._internalDocument),i=[],o=[],r=t.length-1;r>=0;r--){var a=r+1;i.push(a);var s=this._matlabStateManager.getLexStateForLine(this._lineNumberService.getLineNumberFromCodeLineNumber(a));this._matlabStateManager.isLineContinuation(s)||(i.forEach((function(e){o[e-1]=i}),this),i=[])}return o},destroyTrackedData:function(e,t){},_reset:function(){this._executionTrackingStore.remove(this._EXECUTION_TRACKING_STORE_ID),this._currentLineNumberMap=null},destroy:function(){this.inherited(arguments),this._reset()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4678)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.keyhandler.keyboardshortcutsmodel","rtc.embeddedoutputs.keyboardshortcuts","rtc.focusservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(368),i(342),i(209),i(229),i(207),i(208),i(615)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){const c={META:n.Keys.COMMAND},d=["rtc_run","rtc_continue","rtc_run_section","rtc_run_section_advance","rtc_goTo_dialog","rtc_debug_step_in","rtc_debug_step_out","rtc_stop_execution","rtc_step","rtc_pause","rtc_find_dialog","rtc_replace_dialog","rtc_undo","rtc_redo","save","mac_only_debug_no_op_debug_continue","mac_only_debug_no_op_debug_quit","mac_only_debug_no_op_debug_step","mac_only_debug_no_op_debug_step_in","mac_only_debug_no_op_debug_step_out","rtc_page_setup","rtc_print","rtc_open","rtc_new_mfile","rtc_save_all","rtc_save_as","rtc_save_backup","rtc_find_files","rtc_copy_full_path","rtc_change_current_folder","rtc_clear_all_breakpoints","rtc_split_none","rtc_split_top_bottom","rtc_split_left_right","rtc_split_switch"];return e(a,{constructor:function(e,t,i){this._keyboardShortcutsModel=e,this._keyboardShortcuts=t,this._focusService=i,this._cleanupObjects={},this._initializeForwarding(),this.own(s.after(this._keyboardShortcutsModel,"onBindingChanged",this._handleOnBindingChanged.bind(this),!0))},_initializeForwarding:function(){this._keyboardShortcutsModel.getActiveKeyBindings().forEach((function(e){const t=this._keyboardShortcutsModel.getActionGroupsForKeyStroke(e);this._handleOnBindingChanged(e,[],t[0].getActionIds())}),this)},_handleOnBindingChanged:function(e,t,i){const n=this._containsActionToForward(t),o=this._containsActionToForward(i);n&&!o?this._removeForwarding(e):!n&&o&&this._addForwarding(e)},_addForwarding:function(e){const t=this._convertRtcShortcutToMwKeybindings(e);t&&(this._cleanupObjects[e]=this._keyboardShortcuts.addAction(".eoOutputWrapper",t,{id:"rtc_embeddedoutputs_forward_"+e,enabled:!0,callback:this._executeAction.bind(this,e)}))},_removeForwarding:function(e){this._cleanupObjects[e]&&(this._cleanupObjects[e].remove(),delete this._cleanupObjects[e])},_executeAction:function(e){let t=this._keyboardShortcutsModel.getEnabledActionsForKeyBinding(e);t=t.filter((function(e){return this._isRtcWideAction(e.id)}),this),l.executeActions(t),this._focusService.setFocus()},_containsActionToForward:function(e){return e.some(this._isRtcWideAction,this)},_isRtcWideAction:function(e){return d.indexOf(e)>-1},_convertRtcShortcutToMwKeybindings:function(e){const t=e.toUpperCase().split("_"),i=[];for(let r=0;r<t.length;r++){const a=t[r],s=n.Keys[a]||c[a];if(!s)return o.error("Cannot create binding for unknown key: "+a+" ("+e+")"),null;i.push(s)}return i},destroy:function(){this.inherited(arguments),Object.values(this._cleanupObjects).forEach((function(e){e.remove()}),this),this._cleanupObjects=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4680)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.domnode.external"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(368),i(342),i(229),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){this._rtcExternalDomNode=e,this._actionService=new t,this._keyBindings=new i(this._actionService)},addAction:function(e,t,i,n){this._actionService.addAction(i);const o=this._keyBindings.getBinding(t),r=this._getScopedSelector(e);return o.setAction(r,i.id,n),{remove:function(){o.removeAction(r),this._actionService.removeAction(i.id)}.bind(this)}},blockShortcut:function(e,t,i){const o={id:"rtc_embeddedoutputs_no_op_"+n.generateUuid(),enabled:!0,callback:()=>{}};return this.addAction(e,t,o,i)},_getScopedSelector:function(e){return e.split(",").map((function(e){return"#"+this._rtcExternalDomNode.id+" "+e}),this).join(",")},destroy:function(){this.inherited(arguments),this._keyBindings.cleanup(),this._keyBindings=null,this._actionService.destroy(),this._actionService=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4682)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs","rtc.embeddedoutputs.loadinterceptors"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t){this._embeddedOutputs=e,this._registerInterceptors(t)},_registerInterceptors:function(e){e.forEach((function(e){this._embeddedOutputs.registerLoadInterceptor(e)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4684)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.embeddedoutputs"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(212),i(4685)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,t){this._document=e,this._embeddedOutputs=t,this.own(i.after(this._embeddedOutputs,"onEmbeddedOutputsStateChange",this._handleStateChange.bind(this),!0))},interceptLoading:function(e){if(this._embeddedOutputs.isEmbeddedOutputsEnabled())return!1;this._deferred&&this._deferred.reject();var i=this._document.getState();return this._deferred=new n,this._deferred.promise.then(t.hitch(this,(function(e,t){this._document.getState()===t&&this._embeddedOutputs.load(e)}),e,i),(function(e){})),!0},_handleStateChange:function(e){this._deferred&&(e?this._deferred.resolve():this._deferred.reject(),this._deferred=null)},destroy:function(){this.inherited(arguments),this._deferred&&(this._deferred.reject(),this._deferred=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{interceptLoading:function(e){throw new Error("Unimplemented API: MW.rtc.plugins.embeddedoutputs.loadinterceptors.AbstractOutputLoadInterceptor.interceptLoading")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4687)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.id","rtc.embeddedoutputs.model","rtc.embeddedoutputs.outputhandler","rtc.embeddedoutputs.view","rtc.execution.triggers","rtc.embeddedoutputs.splitterpositionmodel"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(207),i(234),i(237),i(266),i(679),i(2020),i(623),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(n,{constructor:function(e,t,i,n,o,r,a,s){this._document=e,this._internalDocument=t,this._editorId=i,this._outputsModel=n,this._outputHandler=o,this._eoView=r,this._triggers=a,this._splitterPositionModel=s},loadFrom16a:function(e){var t=!1;return e.metaData&&(this._eoView.setLayoutState(e.metaData.layoutState),this._splitterPositionModel.loadSplitterPosition(e)),e.regionArray&&e.outputArray&&(t=this._loadRegionsAndOutputs(e.regionArray,e.outputArray)),e.metaData&&(this._triggers.setEvaluationState(e.metaData.evaluationState),this._eoView.setReadyBusyIndicatorState(e.metaData.outputStatus)),{hasWarning:t,messageId:"warningLoadingAllOutputs"}},_loadRegionsAndOutputs:function(e,t){this._cleanData(e,t),this._loadRegionsWithoutOutputs(e);var n=this._prepareOutputs(e,t);this._loadRawOutputs(n.rawOutputs,n.completedRegionNumbers);var o=this._outputsModel.getRegions(),r=c.validateRegions(o,!1);return!!r.hasError&&(i.error("Error loading outputs. Attempting recovery. Please geck to MATLAB Editor::Embedded Output and attach file. Regions are invalid: "+r.firstError+"\n"),this._recoverOutputs(n.rawOutputs),!0)},_loadRegionsWithoutOutputs:function(e){var t=[],n=this._internalDocument.getLineNode(0);e.forEach((function(e,o){var r=this._internalDocument.getLineNode(e.startLine),a=this._internalDocument.getLineNode(e.endLine);r&&a||(i.error("Error loading outputs. Region line doesn't exist:\nRegion number: "+o+"\nStartLine: "+e.startLine+"\nEndLine: "+e.endLine+"\nInternalDocument last line number: "+(this._internalDocument.getMaxLineNumber()-1)+"\n"),r=n,a=n),n=a;var s={sectionBreak:e.code.sectionBreak,endOfSection:e.code.endOfSection,regionString:e.code.regionString,regionNumber:e.code.regionNumber,regionPositions:this._document.getPositionsInNodeRange(r,a)},c=new l(s,d.generateUuid());t.push(c)}),this),this._outputsModel.setRegions(t)},_prepareOutputs:function(e,t){var i=[],n=[],o=[],r=this._outputsModel.getRegions();return e.forEach((function(e){e.outputIndexes.forEach((function(n){i[n]||(i[n]={outputData:t[n],regionNumbers:[]}),i[n].regionNumbers.push(e.code.regionNumber)}))})),e.forEach((function(e,t){e.outputIndexes.forEach((function(e){var o=i[e],a=o.regionNumbers[o.regionNumbers.length-1];if(t===a){var s=o.outputData;s.lineNumbers=this._getLineNumbers(s,o.regionNumbers,r),s.lineNumbers.length>0&&n.push(s)}}),this),o.push(t)}),this),{rawOutputs:n,completedRegionNumbers:o}},_recoverOutputs:function(e){this._outputsModel.clear(),this._outputsModel.synchronizeRegions();var t=this._outputsModel.getRegions(),i={};t.forEach((function(e){e.code.regionPositions.forEach((function(e){i[e.line]=!0}))}));var n=o.getCodeLineNodes(this._internalDocument);e.forEach((function(e){e.lineNumbers=e.lineNumbers.map((function(e){return Math.min(e,n.length)})),e.lineNumbers.forEach((function(e){var t=n[e-1],o=this._internalDocument.getLineNumber(t);if(!i[o]){var r=this._document.createLinePosition(t,!1);this._outputsModel.addRegionForPosition(r),this._document.deletePosition(r)}}),this)}),this);var r=(t=this._outputsModel.getRegions()).map((function(e,t){return t}));this._loadRawOutputs(e,r)},_loadRawOutputs:function(e,t){var i=this._document,n=this._document,o=r.createFullFileRange(i,n);this._outputHandler.handleStartOfEvaluation(o),this._outputHandler.handleOutputsData(e,t,s.LOADED_FROM_DISK_EVALUATION_ID,o),this._outputHandler.handleEndOfEvaluation(o,s.LOADED_FROM_DISK_EVALUATION_ID,""),o.destroy()},_getLineNumbers:function(e,t,i){return e.lineNumbers&&e.lineNumbers.length>0?e.lineNumbers:s.getLineNumbersFromRegionNumbers(t,i,this._internalDocument)},_cleanData:function(e,t){this._cleanRegionData(e),this._cleanOutputsRegionData(t),this._cleanOutputsFigureSizeData(t)},_cleanRegionData:function(e){e.forEach((function(e){e.outputIndexes.forEach((function(t,i){e.outputIndexes[i]=parseInt(t,10)}),this),e.code.sectionBreak="true"===e.code.sectionBreak||!0===e.code.sectionBreak,e.code.endOfSection="true"===e.code.endOfSection||!0===e.code.endOfSection,e.code.regionNumber=parseInt(e.code.regionNumber,10),e.startLine=parseInt(e.startLine,10),e.endLine=parseInt(e.endLine,10)}),this)},_cleanOutputsRegionData:function(e){e.forEach((function(e){var t=e.outputData;if(t.regionNumbers&&(t.regionNumbers=t.regionNumbers.map((function(e){return parseInt(e,10)}))),t.truncationInfo){var i=t.truncationInfo;t.truncationInfo.wasTruncatedMidLine="true"===i.wasTruncatedMidLine||!0===i.wasTruncatedMidLine,t.truncationInfo.wasTruncatedAtLineBreak="true"===i.wasTruncatedAtLineBreak||!0===i.wasTruncatedAtLineBreak}e.lineNumbers?e.lineNumbers=e.lineNumbers.map((function(e){return parseInt(e,10)})):e.lineNumbers=[]}))},_cleanOutputsFigureSizeData:function(e){e.forEach((function(e){var t=e.outputData;t.figureSize&&(t.figureSize=t.figureSize.map((function(e){return parseInt(e,10)})))}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4689),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.code.sections.model","rtc.document.executablecode.executablecodeconverter","rtc.embeddedoutputs.warningbanner"]}},createInstance:function(){return new t(...arguments)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(212),i(209),i(237),i(274),i(229),i(4690),i(2020),i(4691),i(623),i(619)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(null,{CHANGE_TYPE:{ADD:0,REMOVE:1,REPLACE:2,UPDATE:3,CLEAR_ALL:4},_RELATION:{BEFORE:0,AFTER:1},_COMPARISON:{BEFORE:-1,WITHIN:0,AFTER:1},constructor:function(e,n,o,r,a){this._internalDocument=e,this._document=n,this._sectionModel=o,this._warningBanner=a,this._regionParser=new d(this._document,r),this._regions=[],this._HEAD=new l(null,{}),this._TAIL=new l(null,{}),this._HEAD.setNext(this._TAIL),this._TAIL.setPrevious(this._HEAD),this._replacementRange=null,this._allOutputsReadyPromise=null,this._unresolvedOutputCount=0,this._isBatchOperationInProgress=!1,this._changes=[],this._aspectHandles=[],this._aspectHandles.push(i.after(this._internalDocument,"onDocumentReset",t.hitch(this,"clear")))},destroy:function(){this.clear(),this._aspectHandles.forEach((function(e){e.remove()}))},startBatchOperation:function(){this._isBatchOperationInProgress=!0},finishBatchOperation:function(){this._flushPendingChanges(),this._isBatchOperationInProgress=!1},onModelUpdated:function(e,t){this._updateAllOutputsReadyPromise()},onBeforeModelUpdated:function(){},_flushPendingChanges:function(){this._changes.length>0&&(this.onBeforeModelUpdated(),this.onModelUpdated(!0,this._changes),this._changes=[])},_emitRegionChangeEvent:function(){this._changes.length>0?this._flushPendingChanges():this.onModelUpdated()},_emitOutputChangeEvent:function(e){this._isBatchOperationInProgress?this._changes.push(e):(this.startBatchOperation(),this._changes.push(e),this.finishBatchOperation())},_createInsertionChange:function(e){var t=this._findFirstReadyOutputContainerIf((function(){return!0}),e,this._TAIL).getOutput(),i=t?t.uid:null;return{type:this.CHANGE_TYPE.ADD,output:e.getOutput(),referenceOutputId:i}},synchronizeRegions:function(){this.synchronizeRegionsPartial(0,this._getLastSectionNumber())},synchronizeRegionsPartial:function(e,t,i=!1){if(!i){var n=u.validateRegions(this._regions,!1);if(n.hasError)return this._logInvalidRegions(n,"before_sync"),void this.synchronizeRegionsPartial(0,this._getLastSectionNumber(),!0)}var r=this._getUpdatedCodeRegions(e,t),a=r.regions;e=r.startSectionNumber,t=r.endSectionNumber;var l=[],d=[];if(a.forEach((function(i,n){i.regionNumber=n,i.sectionBreak||(i.sectionBreak=!1),i.endOfSection||(i.endOfSection=!1);var o,r=i.regionPositions[0].getNode();if(!d.some((function(e){return r===e}),this)){var a=this._mergeAllOutputsInCollapsedRegionsForStartNode(this._regions,r);d.push(r)}if(a){var u=i.sectionNumber;u>=e&&u<=t&&this._clearRegionPositions(a),o=new c(i,a.uid),this._getOutputContainersForRegion(a,!0).forEach((function(e){e.setRegion(o)}))}else o=new c(i,s.generateUuid());l[i.regionNumber]=o}),this),this._clearStaleRegions(l),this._regions=l,(n=u.validateRegions(this._regions,!1)).hasError)return this._logInvalidRegions(n,"after_sync"),i?(o.error("Output region recovery failed. Removing all outputs to prevent bad state.\n"),this.clear(),void this._warningBanner.show("warningSynchronizingRegions")):void this.synchronizeRegionsPartial(0,this._getLastSectionNumber(),!0);this._emitRegionChangeEvent()},_logInvalidRegions:function(e,t){let i="";try{this._regions.forEach((function(e){i+="regionNumber: "+e.code.regionNumber+"\n",i+=" regionString: "+e.code.regionString+"\n",i+=" sectionBreak: "+e.code.sectionBreak+"\n",i+=" endOfSection: "+e.code.endOfSection+"\n",e.code.regionPositions.forEach((function(e){i+=" line: "+e.line+"\n"}))}))}catch(e){i+="Error printing region info."}o.error("synchronizeRegionsPartial: Regions are not valid and will be regenerated.\nPlease geck to MATLAB Editor::Embedded Output. Include information about what you were doing leading up to this error.\nID: "+t+"\nFirst error: "+e.firstError+"\nRegions:\n"+i+"\n")},_mergeAllOutputsInCollapsedRegionsForStartNode:function(e,t){var i=null,n=[];return e.forEach((function(e){if(u.checkRegionIsValid(e),e.code.regionPositions.length&&e.code.regionPositions[0].getNode()===t){var o=this._getOutputContainersForRegion(e,!0);o&&o.length>0&&(n=n.concat(o)),i=e,n.forEach((function(e){e.setRegion(i)}),this)}}),this),i},_getLastSectionNumber:function(){return this._sectionModel.getSections().length-1},_getUpdatedCodeRegions:function(e,t){const i=this._getLastSectionNumber();var n=[],o=[];let r=t===i,a=0===e&&r;if(!a){const s=this._updateOldRegionsAndExpandSynchronizationSelection(e,t);e=s.startSectionNumber,r=(t=s.endSectionNumber)===i,a=0===e&&r,n=this._getRegionsBeforeSection(e),r||(o=this._getRegionsAfterSection(t))}var s=this._sectionModel.getSections().slice(e,t+1),l=this._getNewRegions(s,e);return{regions:[].concat(n,l,o),startSectionNumber:e,endSectionNumber:t}},_getRegionsBeforeSection:function(e){return this._regions.filter((function(t){return t.code.sectionNumber<e})).map((function(e){return e.code}))},_getRegionsAfterSection:function(e){return this._regions.filter((function(t){return t.code.sectionNumber>e})).map((function(e){return e.code}))},_updateOldRegionsAndExpandSynchronizationSelection:function(e,t){for(var i=-1,n=e,o=t,r=0;r<this._regions.length;r++){var a=this._regions[r].code;if(-1===a.sectionNumber)return;var s=a.regionPositions[0].node,l=this._sectionModel.getSectionNumberForNode(s),c=a.regionPositions[a.regionPositions.length-1].node,d=this._sectionModel.getSectionNumberForNode(c);if(l!==d){const e=l>=n&&d<=o;if(!(d<n||l>o)&&!e){n=Math.min(l,n),o=Math.max(o,d),i=-1,r=0;continue}}a.sectionNumber=l,a.endOfSection=!1,l!==i?(a.sectionBreak=!0,0!==r&&(this._regions[r-1].code.endOfSection=!0)):a.sectionBreak=!1,i=l}return this._regions.length>0&&(this._regions[this._regions.length-1].code.endOfSection=!0),{startSectionNumber:n,endSectionNumber:o}},_getNewRegions:function(e,t){var i=[];return e=e||this._sectionModel.getSections(),t=t||0,e.forEach((function(e,n){var o=e.start.getNode(),r=e.end.getNode(),a=this._regionParser.getCodeRegionsInRange(o,r);a.executableRegions.length>0&&(a.executableRegions[0].sectionBreak=!0,a.executableRegions[a.executableRegions.length-1].endOfSection=!0,a.executableRegions.forEach((function(e){e.sectionNumber=t+n})),i=i.concat(a.executableRegions))}),this),i},prependOutput:function(e,t){if(!t.isReady())throw new Error("prependOutput API expects a resolved output");if(this._replacementRange)throw new Error("prependOutput should not be used while a replacement is in progress.");var i=this._findFirstOutputContainerIf((function(t){return t.getFinalReplacement().getRegion().code.regionNumber>=e}),this._HEAD,this._TAIL);i=i.getTopMostReplacement();var n=new l(t,this._regions[e]);this._spliceInOutputContainer(n,i,this._RELATION.BEFORE),this._emitOutputChangeEvent(this._createInsertionChange(n))},setReplacementRange:function(e){var t=this._getOutputContainerListForDocumentRange(e);this._replacementRange={head:t.head,insertionPoint:t.head.next(),tail:t.tail}},clearReplacementRange:function(){this._replacementRange=null},_setInsertionPoint:function(e,t){if(e===this._HEAD||null===e.next()&&null===e.previous())throw new Error("Invalid output container");var i=e.getOutput();if(e!==this._TAIL&&i.evaluationId===t&&!i.isReady())throw new Error("There shouldn't be any non ready outputs for the current evaluation after the execution point.");if(e!==e.getTopMostReplacement())throw new Error("The insertion point should never be in the middle of a replacement chain");this._replacementRange.insertionPoint=e},addOutput:function(e,t){this._insertWithReplacement(e,t)},addUnassociatedOutput:function(e,t){if(e.codeLinePositions&&e.codeLinePositions.length>0)throw new Error("Output already has an association.");var i,n,o,r=this._getLastOutputContainerAddedIfAny(e.evaluationId);if(r){var a=r.getOutput().getCodeLinePositions();o=a[a.length-1],i=r.getRegion().code.regionNumber}else{var s=null;this._regions.length>0&&(s=u.getFirstRegionInRange(t,this._regions)),s?(i=s.code.regionNumber,o=s.code.regionPositions[0]):(i=this.addRegionForPosition(t.getStartPosition()),o=t.getStartPosition())}n=this._document.createLinePosition(o.getNode(),!1),e.setCodeLinePositions([n]),this.addOutput(i,e)},_getLastOutputContainerAddedIfAny:function(e){var t=this._replacementRange.insertionPoint.previous().getFinalReplacement();return t===this._HEAD||t.getOutput().evaluationId!==e?null:t},_setFullDocumentReplacementRangeIfNecessary:function(){if(!this._replacementRange){var e=this._document,t=this._document;this.setReplacementRange(r.createFullFileRange(e,t))}},_insertWithReplacement:function(e,t){var i=new l(t,this._regions[e]);this._insertContainerWithReplacement(e,i)},_insertContainerWithReplacement:function(e,t){var i=t.getOutput(),n=this._replacementRange.insertionPoint;this._setInsertionPoint(n,i.evaluationId);var o=n.getFinalReplacement();if(n!==this._replacementRange.tail&&this._isOutputReplaceable(o,i))return this._replaceOutput(t,o),t;this._insertOutput(t,n.getTopMostReplacement(),this._RELATION.BEFORE)},_replaceOutput:function(e,i){i.setBeingReplacedBy(e),e.setContainerToReplace(i),this._spliceInOutputContainer(e,i,this._RELATION.AFTER);var n=e.getOutput().evaluationId,o=e.getBottomMostReplacement();this._setInsertionPoint(o.next(),n),this._unresolvedOutputCount++,e.then(t.hitch(this,"_handleDeferredResolved",e),t.hitch(this,"_handleDeferredCancellation"),t.hitch(this,"_handleOutputPromiseRejection",e))},_handleDeferredResolved:function(e){this._ensureBatched(t.hitch(this,(function(){for(var t=e.getContainerToReplace();t;){var i=t.getContainerToReplace();this._destroyOutputContainer(t),t=i}this._unresolvedOutputCount--,this._emitOutputChangeEvent(this._createInsertionChange(e))})))},_handleDeferredCancellation:function(){this._unresolvedOutputCount--,this._updateAllOutputsReadyPromise()},_insertOutput:function(e,i,n){this._spliceInOutputContainer(e,i,n),this._setInsertionPoint(e.next(),e.getOutput().evaluationId),this._unresolvedOutputCount++,e.then(t.hitch(this,"_handleDeferredResolved",e),t.hitch(this,"_handleDeferredCancellation"),t.hitch(this,"_handleOutputPromiseRejection",e))},_handleOutputPromiseRejection:function(e,t){if(!e.getBeingReplacedBy())for(var i=e;i;){var n=i.getContainerToReplace();this._destroyOutputContainer(i),i=n}else this._destroyOutputContainer(e);this._updateAllOutputsReadyPromise()},_spliceInOutputContainer:function(e,t,i){i===this._RELATION.BEFORE?(e.setNext(t),e.setPrevious(t.previous()),t.previous().setNext(e),t.setPrevious(e)):(e.setNext(t.next()),e.setPrevious(t),t.next().setPrevious(e),t.setNext(e))},_spliceOutOutputContainer:function(e){e.previous().setNext(e.next()),e.next().setPrevious(e.previous()),e.setPrevious(null),e.setNext(null)},_removeReplacementReferences:function(e){var t=e.getContainerToReplace(),i=e.getBeingReplacedBy();t&&t.setBeingReplacedBy(i),i&&i.setContainerToReplace(t),e.setContainerToReplace(null),e.setBeingReplacedBy(null)},_destroyOutputContainer:function(e){if(this._isContainerInModel(e)){e.isResolved()||e.cancel();var t=e.getOutput();t.isReady()||t.getReadyPromise().cancel(),this._removeContainerAndEmitChangeEvent(e),e.destroy(),this._destroyOutput(e.getOutput())}else o.error("Tried to remove a container that wasn't in the model.")},_removeContainerAndEmitChangeEvent:function(e){this._replacementRange&&(e===this._replacementRange.insertionPoint&&(this._replacementRange.insertionPoint=e.next()),e===this._replacementRange.head&&(this._replacementRange.head=e.previous()),e===this._replacementRange.tail&&(this._replacementRange.tail=e.next())),this._spliceOutOutputContainer(e),this._removeReplacementReferences(e),e.getOutput().isReady()&&this._emitOutputChangeEvent({type:this.CHANGE_TYPE.REMOVE,referenceOutputId:e.getOutput().uid})},_isOutputReplaceable:function(e,t){var i=!!e.getBeingReplacedBy();o.assert(!i,"Trying to replace an output that is already scheduled to be replaced.");var n=this._findFirstOutputContainerIf((function(t){return t===e}),this._replacementRange.head,this._replacementRange.tail),r=!this._isOutputUsedByCurrentEvaluation(t.evaluationId,e),a=e.getOutput().type===t.type;return!i&&n&&r&&a},clear:function(){this.clearAllOutputs(),this._clearAllRegions(),this._emitRegionChangeEvent(),this._isBatchOperationInProgress=!1,this._changes=[]},clearOldOutputsInRange:function(e,i){var n=this._getOutputContainerListForDocumentRange(e),o=t.hitch(this,(function(e){return!this._isOutputUsedByCurrentEvaluation(i,e)}));this._clearOutputsIf(o,n.head,n.tail)},clearOutputsForward:function(e,i){i=i||function(){return!1},this._ensureBatched(t.hitch(this,(function(){this._clearOutputsIf((function(t){var n=t.getRegion().code.regionNumber>=e,o=i(t.getOutput());return n&&!o}))})))},clearAllOutputs:function(){this._blockEvents(t.hitch(this,(function(){this._clearOutputsIf()}))),this._HEAD.next()!==this._TAIL&&(o.error("Some outputs remained after clearing outputs. This might be because an output was rejected, but no one cleaned it up. Removing all remaining outputs."),this._HEAD.setNext(this._TAIL),this._TAIL.setPrevious(this._HEAD)),this._emitOutputChangeEvent({type:this.CHANGE_TYPE.CLEAR_ALL})},removeOutput:function(e){this._clearOutputsIf((function(t){return t.getOutput()===e}))},_clearOutputsIf:function(e,i,n){e=e||function(){return!0},i=i||this._HEAD,n=n||this._TAIL;var o=this._findOutputContainersIf(e,i,n);this._ensureBatched(t.hitch(this,(function(){o=o.forEach((function(e){this._destroyOutputContainer(e)}),this)})))},updateOutput:function(e){var t=this._findOutputContainerForOutput(e);if(!t)throw new Error("Output not found");e.isReady()&&this._emitOutputChangeEvent({type:this.CHANGE_TYPE.UPDATE,output:t.getOutput(),referenceOutputId:t.getOutput().uid})},updateOutputAssociations:function(e,i){var n=this._findOutputContainerForOutput(e);if(!n)throw new Error("Output not found");if(!this._replacementRange)throw new Error("No active replacement range");if(n.getBeingReplacedBy())throw new Error("Trying to update an output that is going to be replaced.");this._ensureBatched(t.hitch(this,(function(){var t=n.getContainerToReplace();t&&(n.getBottomMostReplacement().next()===this._replacementRange.insertionPoint?this._setInsertionPoint(t.getTopMostReplacement(),e.evaluationId):this._destroyOutputContainer(t)),this._removeContainerAndEmitChangeEvent(n),this._resetContainerForReuse(n,i),this._insertContainerWithReplacement(i,n)})))},_resetContainerForReuse:function(e,t){e.setRegion(this._regions[t]),e.isResolved()||(this._unresolvedOutputCount--,this._updateAllOutputsReadyPromise())},_ensureBatched:function(e){if(this._isBatchOperationInProgress)return e();this.startBatchOperation();var t=e();return this.finishBatchOperation(),t},_blockEvents:function(e){var t=!1;this._isBatchOperationInProgress&&(this.finishBatchOperation(),t=!0),this.startBatchOperation();var i=e();return this._changes=[],this.finishBatchOperation(),t&&this.startBatchOperation(),i},_isOutputUsedByCurrentEvaluation:function(e,t){return t.getFinalReplacement().getOutput().evaluationId===e},_destroyOutput:function(e){e.destroy(),e.codeLinePositions.forEach((function(e){this._document.deletePosition(e)}),this),e.codeLinePositions=[]},_clearRegionPositions:function(e){e.code.regionPositions.forEach((function(e){this._document.deletePosition(e)}),this),e.code.regionPositions=[]},_clearAllRegions:function(){this._regions.forEach(this._clearRegionPositions,this),this._regions=[]},_clearStaleRegions:function(e){var i=[];this._regions.forEach((function(n){n.code.regionPositions&&n.code.regionPositions.length&&(e.some(t.hitch(u,"regionStartNodesMatch",n))||(i.push(n),this._clearRegionPositions(n)))}),this);this._clearOutputsIf((function(e){return i.indexOf(e.getRegion())>-1}))},getRegions:function(e,t){return null==e?this._regions:this._regions.slice(e,t)},getOutputs:function(){var e=this._getOutputContainers(!1,!0);return this._getOutputsFromContainers(e)},internalGetAllOutputs:function(){var e=this._getOutputContainers(!0,!0);return this._getOutputsFromContainers(e)},getPendingOutputCountIf:function(e){for(var t=0,i=this._HEAD.next();i!==this._TAIL;)e(i.getOutput())&&t++,i=i.next();return t},_getOutputContainers:function(e,t){if(e&&!t){return this._findOutputContainersIf((function(e){return!e.getOutput().isReady()}),this._HEAD,this._TAIL)}return t&&!e?this._findReadyOutputContainersIf((function(){return!0}),this._HEAD,this._TAIL):this._findOutputContainersIf((function(){return!0}),this._HEAD,this._TAIL)},_getOutputsFromContainers:function(e){return e.map((function(e){return e.getOutput()}))},getOutputsForRegion:function(e){var t=this._getOutputContainersForRegion(e,!1);return this._getOutputsFromContainers(t)},_getOutputContainersForRegion:function(e,t){var i=function(t){return e===t.getRegion()};return t?this._findOutputContainersIf(i,this._HEAD,this._TAIL):this._findReadyOutputContainersIf(i,this._HEAD,this._TAIL)},setRegions:function(e){this.clearAllOutputs(),this._clearAllRegions(),this._regions=e,this._emitRegionChangeEvent()},hasOutputs:function(){return this._findFirstReadyOutputContainerIf((function(){return!0}),this._HEAD,this._TAIL)!==this._TAIL},getSectionRegionsFromNodeRange:function(e,t){var i=a.getLineNumberForNode(e,this._internalDocument),n=a.getLineNumberForNode(t,this._internalDocument),o=[];return this._regions.some((function(e){var t=e.code.regionPositions,r=t[0].line,a=t[t.length-1].line;if(r>=i&&a<=n&&o.push(e),a>n)return!0}),this),o},hasError:function(){return this._findFirstReadyOutputContainerIf((function(e){return e.getOutput().type===h.OUTPUT_TYPE}),this._HEAD,this._TAIL)!==this._TAIL},findOutput:function(e){var t=this._findFirstReadyOutputContainerIf((function(t){return e(t.getOutput())}),this._HEAD,this._TAIL);return t!==this._TAIL?t.getOutput():null},whenOutputsReady:function(e){this._hasUnresolvedOutputs()?(this._allOutputsReadyPromise||(this._allOutputsReadyPromise=new n),this._allOutputsReadyPromise.then(e)):e()},_updateAllOutputsReadyPromise:function(){this._allOutputsReadyPromise&&!this._hasUnresolvedOutputs()&&(this._allOutputsReadyPromise.resolve(),this._allOutputsReadyPromise=null)},_hasUnresolvedOutputs:function(){return this._unresolvedOutputCount>0},getOutputsForPosition:function(e){var t=this._findReadyOutputContainersIf((function(t){var i=t.getOutput().getCodeLinePositions(),n=i[i.length-1];return e.line===n.line}),this._HEAD,this._TAIL);return this._getOutputsFromContainers(t)},getOutputsForRange:function(e,t){var i=this._internalDocument.getLineNumber(e),n=e===t?i:this._internalDocument.getLineNumber(t),o=this._findReadyOutputContainersIf((function(e){return e.getOutput().getCodeLinePositions().some((function(e){var t=e.line;return t>=i&&t<=n}))}),this._HEAD,this._TAIL);return this._getOutputsFromContainers(o)},_findFirstReadyOutputContainerIf:function(e,t,i){this._assertHeadNotEqualToTail(t,i);for(var n=t.next();n!==i;){if(n.getOutput().isReady()&&e(n))return n;n=n.next()}return i},_findFirstOutputContainerIf:function(e,t,i){this._assertHeadNotEqualToTail(t,i);for(var n=t.next();n!==i;){if(e(n))return n;n=n.next()}return i},_findReadyOutputContainersIf:function(e,t,i){this._assertHeadNotEqualToTail(t,i);for(var n=[],o=t.next();o!==i;)o.getOutput().isReady()&&e(o)&&n.push(o),o=o.next();return n},_findOutputContainersIf:function(e,t,i){this._assertHeadNotEqualToTail(t,i);for(var n=[],o=t.next();o!==i;)e(o)&&n.push(o),o=o.next();return n},_findOutputContainerForOutput:function(e){var t=this._findFirstOutputContainerIf((function(t){return e===t.getOutput()}),this._HEAD,this._TAIL);return t===this._TAIL?null:t},_getOutputContainerListForDocumentRange:function(e){var i={head:null,tail:null},n=e.getStartPosition().getLine(),o=this._findFirstOutputContainerIf(t.hitch(this,(function(e){return this._getPrimaryLineForContainer(e)>=n})),this._HEAD,this._TAIL);i.head=o.previous();var r=e.getEndPosition().getLine();return i.tail=this._findFirstOutputContainerIf(t.hitch(this,(function(e){return this._getPrimaryLineForContainer(e)>r})),i.head,this._TAIL),i},_getPrimaryLineForContainer:function(e){var t=e.getOutput().codeLinePositions;return t[t.length-1].getLine()},addRegionForPosition:function(e){var t=this._createNewRegionTemplate(),i=this._document.createLinePosition(e.node,!1);t.code.regionPositions=[i],t.code.regionString=e.node.getText();var n=this._getNewRegionNumberForPosition(e);return this._regions.splice(n,0,t),this._regions.forEach((function(e,t){e.code.regionNumber=t})),this._updateOldRegionsAndExpandSynchronizationSelection(0,this._getLastSectionNumber()),this._emitRegionChangeEvent(),n},_getNewRegionNumberForPosition:function(e){for(var t=0;t<this._regions.length;t++){var i=this._regions[t].code.regionPositions[0].line;if(e.line<i)return t}return this._regions.length},_createNewRegionTemplate:function(){return new c({regionNumber:null,regionPositions:null,regionString:null,sectionBreak:null,endOfSection:null,sectionNumber:null},s.generateUuid())},_assertHeadNotEqualToTail:function(e,t){if(e===t)throw new Error("Head should not be equal to tail.")},_isContainerInModel:function(e){var t=e.previous(),i=e.next();return(null===t&&null!==i||null!==t&&null===i)&&o.error("Unexpected previous/next value: previous: "+t+" next: "+i),null!==t&&null!==i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,n){if(this._output=e,this._deferredModelChange=null,this._beingReplacedBy=null,this._containerToReplace=null,this._region=n,this._next=null,this._previous=null,this._thenCallback=null,this._cancelCallback=null,this._outputErrorCallback=null,!n)throw new Error("Tried to set an undefined region");e&&!e.isReady()&&(this._deferredModelChange=new i,this._deferredModelChange.then(t.hitch(this,"_handleResolve"),t.hitch(this,"_handleCancel")),e.getReadyPromise().then(t.hitch(this,"resolve"),t.hitch(this,"_handleOutputError")))},destroy:function(){this.cancel(),this._deferredModelChange=null},_handleResolve:function(){this._thenCallback&&(this._thenCallback(),this._deferredModelChange=null)},_handleCancel:function(){this._cancelCallback&&(this._cancelCallback(),this._deferredModelChange=null)},_handleOutputError:function(e){this._outputErrorCallback&&(this._outputErrorCallback(e),this._deferredModelChange=null)},getOutput:function(){return this._output},getRegion:function(){return this._region},setRegion:function(e){if(!e)throw new Error("Tried to set an undefined region");this._region=e},next:function(){return this._next},setNext:function(e){this._next=e},previous:function(){return this._previous},setPrevious:function(e){this._previous=e},getBeingReplacedBy:function(){return this._beingReplacedBy},setBeingReplacedBy:function(e){this._beingReplacedBy=e},getFinalReplacement:function(){for(var e=this;e.getBeingReplacedBy();)e=e.getBeingReplacedBy();return e},getBottomMostReplacement:function(){for(var e=this._getReplacementChain(),t=this;e.indexOf(t.next())>-1;)t=t.next();return t},getTopMostReplacement:function(){for(var e=this._getReplacementChain(),t=this;e.indexOf(t.previous())>-1;)t=t.previous();return t},_getReplacementChain:function(){for(var e=[],t=this.getFinalReplacement();t;)e.unshift(t),t=t.getContainerToReplace();return e},getContainerToReplace:function(){return this._containerToReplace},setContainerToReplace:function(e){this._containerToReplace=e},cancel:function(e){this._deferredModelChange&&(this._outputErrorCallback=null,this._deferredModelChange.cancel(e),this._deferredModelChange=null)},isResolved:function(){return!this._deferredModelChange||this._deferredModelChange.isResolved()},then:function(e,t,i){this._deferredModelChange?(this._thenCallback=e,this._cancelCallback=t,this._outputErrorCallback=i):e()},resolve:function(e){this._deferredModelChange&&this._deferredModelChange.resolve(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4692),i(234),i(274)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(e,i){this._document=e,this._executableCodeConverter=i,this._parser=new t},getCodeRegionsInRange:function(e,t){var o,r=[],a="",s=null,l=null,c="",d=!1,u=n.getParagraphNodesInRange(e,t);if(u.forEach((function(e){var t=this._executableCodeConverter.getEvalTextFromNode(e);if(null!==t){var n="";try{n=this._parser.classifyCode(c+t)}catch(e){console.log("Error parsing code: "+e)}if(!d){if(n===this._parser.BLANK_OR_COMMENT&&!this._isAfterLineContinuation(a))return void(c="");if(n===this._parser.IN_BLOCK_COMMENT)return void(c=c+t+"\n")}c="",a.length>0?a=a+"\n"+t:(a=t,s=e),l=e;var o="";try{o=this._parser.classifyCode(a)}catch(e){console.log("Error parsing code: "+e)}var u=o===this._parser.COMPLETE_NONTRIVIAL_COMMAND,h=o===this._parser.FUNCTION;if(u||h){var p=i.getCodePositionsInNodeRange(this._document,s,l);r.push({regionString:a,regionPositions:p}),a="",d=!1}else d=!0}}),this),a.length>0&&(o=i.getCodePositionsInNodeRange(this._document,s,l),r.push({regionString:a,regionPositions:o})),0===r.length){o=i.getCodePositionsInNodeRange(this._document,e,t);var h=[];u.forEach((function(e){var t=this._executableCodeConverter.getEvalTextFromNode(e);null!==t&&h.push(t)}),this),0!==h.length&&r.push({regionString:h.join("\n"),regionPositions:o})}return{executableRegions:r}},_isAfterLineContinuation:function(e){if(0===e.length)return!1;var t=e.lastIndexOf("\n");return-1!==e.indexOf("...",t+1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1441),i(4693),i(4694)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(){this._inScript=!1},makeSymbolMap:function(){var e,t={},i=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigma","tau","upsilon","phi","chi","psi","omega","varepsilon","vartheta","varomega","Gamma","Delta","Theta","Lambda","Eta","Pi","Sigma","Phi","Psi","Omega"];for(e=0;e<i.length;e+=1)t[i[e]]=i[e];return t},makePEG:function(){return new n(i.rulenames,i.rules,0)},makeActionMap:function(){var e,t={},i=this.peg.names,n=[this.appendChildren];for(e=0;e<i.length;e+=1)t[i[e]]=n;return t.S14=[this.appendAssignment],t.S14=[this.appendCmd,"if"],t.S15=[this.appendCmd,"elseif"],t.S16=[this.appendCmd,"else"],t.S17=[this.appendCmd,"switch"],t.S18=[this.appendCmd,"case"],t.S19=[this.appendCmd,"otherwise"],t.S20=[this.appendCmd,"for"],t.S21=[this.appendCmd,"parfor"],t.S22=[this.appendCmd,"while"],t.S26=[this.appendCmd,"try"],t.S27=[this.appendCmd,"catch"],t.S33=[this.appendCmd,"!"],t.S28=[this.appendRawString,"code"],t.x5=[this.appendSymbol],t.x6=[this.appendSymbol],t.x7=[this.appendSymbol],t.x8=[this.appendSymbol],t.X10=[this.appendSymbol],t.x11=[this.appendSymbol],t.X13=[this.appendSymbol],t.X14=[this.appendProd],t.X15=[this.appendProdOp],t.X17=[this.appendSymbol],t.X18=[this.appendPostfix],t.X19=t.X17,t.X20=t.X17,t.X21=[this.appendSymbol],t.x23=[this.appendParenExpr],t.X25=[this.appendRawString,"number"],t.X28=[this.appendVariable],t.X29=[this.appendExprList],t.X39=[this.appendMatrix],t.X44=t.X39,t.X45=[this.appendRawString,"code"],t.X46=[this.appendID],t.SO2=[this.appendSymMatrix],t},parseSymOutput:function(e){this.peg||this.initMaps();var t=this.peg,i=t.root;t.root=1;var n=t.parse(e);return t.root=i,n},COMPLETE_NONTRIVIAL_COMMAND:1,BLANK_OR_COMMENT:2,IN_BLOCK_COMMENT:3,SYNTAX_ERROR:4,FUNCTION:5,classifyCode:function(e){this.peg||this.initMaps(),e=e.trim();var t=this.peg.parse(e);if(!t.tree)return this.SYNTAX_ERROR;var i=t.tree,n=this.peg.names;return this._hasOpenBlockComment(i,n)?this.IN_BLOCK_COMMENT:this._hasFunctions(i,n)?this.FUNCTION:this._hasBadEnds(i,n)?this.SYNTAX_ERROR:this._trivialStmts(i,n)?this.BLANK_OR_COMMENT:this.COMPLETE_NONTRIVIAL_COMMAND},isIncompleteCommand:function(e){return this.classifyCode(e)>this.BLANK_OR_COMMENT},_hasOpenBlockComment:function(e,t){if(e.children.length>0){var i=e.children[0];if("BC1"===t[i.name]&&i.children.length>1){var n=i.children;if("B1"===t[n[n.length-2].name])return!0}}return!1},_hasBadEnds:function(e,t){return this._hasNodes(e,t,["B1","B2","B4"])},_hasFunctions:function(e,t){return this._hasNodes(e,t,["FN1","FN2"])},_hasNodes:function(e,t,i){var n;return(n=function(e){var o=t[e.name],r=!1;if(i.forEach((function(e){e===o&&(r=!0)})),r)return!0;var a,s=e.children;for(a=0;a<s.length;a+=1)if(n(s[a]))return!0;return!1})(e)},_trivialStmts:function(e,t){var i=e.children;if(i.length<2)return!1;for(var n=1,o=i[n];n<i.length-1&&"LineC"===t[o.name];)o=i[n+=1];return"S1"===t[o.name]&&0===(i=o.children).length},bubbleWraps:function(e){var t=!1;if(e){"LW"===this.peg.names[e.name]&&(t=!0);var i,n=e.children;for(i=0;i<n.length;i+=1)t=t||this.bubbleWraps(n[i]);e.wrap=t}return t},appendCmd:function(e,t){this.startSubRow(),this.pushText(t,"code"),this.appendChildren(e),this.endSubRow()},appendAssignment:function(e){this.startSubRow(),this.append(e.children[0]),this.pushText("=","symbol"),this.append(e.children[1]),this.endSubRow()},fillLineWrap:function(e,t){alert("line wrap not done")},appendSep:function(e){var t=this.slice(e);if(t.length>0){var i=t.charAt(0);if(", "===i||";"===i)this.pushText(t,"code");else if(i===String.fromCharCode(10)||i===String.fromCharCode(13)||"%"===i){var n=e.children,o=function(e){return this.makeRow()};if("%"!==i&&(this.row=o(this.row)),n.length>0){var r;for(r=0;r<n.length;r+=1)t=this.slice(n[r]),this.pushText(t,"code"),r<n.length-1&&(this.row=o(this.row));this.row=o(this.row)}}else alert(i+" not done")}},appendExprList:function(e){var t,i=e.children;for(t=0;t<i.length;t+=1){this.append(i[t]);var n=this.name(i[t]);t!==i.length-1&&"LW"!==n&&this.pushText(", ","code")}},appendParenExpr:function(e){var t=this.makeFenced();this.push(t),this.fillRow(e.children[0],t.children[0])},fillRowNoFence:function(e,t){"x23"===this.name(e)?this.fillRow(e.children[0],t):this.fillRow(e,t)},appendProd:function(e){var t=e.children;if(3!==t.length)this.appendChildren(e);else{var i=t[1];if("/"===this.slice(i)&&!this._inScript){var n=this.makeFraction();this.push(n),this.fillRowNoFence(t[0],n.children[0]),this.fillRowNoFence(t[2],n.children[1])}else this.appendChildren(e)}},appendPostfix:function(e){var t=e.children;if(3!==t.length)this.appendChildren(e);else{var i=t[1];if("^"===this.slice(i)||this._inScript){var n=this.makeScript();this.push(n),this.fillRow(t[0],n.children[0]);var o=this._inScript;this._inScript=!0,this.fillRowNoFence(t[2],n.children[2]),this._inScript=o}else this.appendChildren(e)}},appendSymMatrix:function(e){1===e.children.length&&1===e.children[0].children.length?this.append(e.children[0].children[0]):this.appendMatrix(e)},appendMatrix:function(e){var t,i=this.name(e);"X44"===i&&"{";var n,o=((t="SO2"===i?e.children:e.children[0].children).length+1)/2,r=0;for(n=0;n<t.length;n+=2)r=Math.max(r,t[n].children.length);var a=this.makeMatrix(o,r);for(n=0;n<t.length;n+=2){var s,l=t[n].children;for(s=0;s<r;s+=1){var c=this.makeRow();a.children.push(c),this.pushRow(c),s<l.length&&(this.append(l[s]),this.validateRow()),this.popRow()}}this.push(a)},lookupSymbol:function(e){return!!this.symbolMap[e]&&(this.pushText(e,"symbol"),!0)},appendID:function(e){var t=this.slice(e);this.lookupSymbol(t)||this.pushText(t,"id")},appendSqrt:function(e){var t=this.makeRadical();this.push(t),this.fillRow(e.children[2],t.children[0])},appendSpecialFunctionCall:function(e){var t=e.children;if(3===t.length&&"X33"===this.name(t[1])&&"sqrt"===this.slice(t[0]))return this.appendSqrt(e),!0;return!1},appendVariable:function(e){this.appendSpecialFunctionCall(e)||(e.children.length>1?(this.startSubRow(),this.appendVariableRow(e),this.endSubRow()):this.appendVariableRow(e))},appendVariableRow:function(e){var t,i=e.children;for(this.append(i[0]),t=1;t<i.length;){var n=i[t];switch(t+=1,this.name(n)){case"X33":this.pushDelim("("),t<i.length&&this.append(i[t]),this.pushDelim(")"),t+=1;break;case"X36":this.pushDelim("{"),this.append(i[t]),this.pushDelim("}"),t+=1;break;case"X37":this.pushText(".","code"),this.append(i[t]),t+=1;break;case"X35":alert("DotLRB not done");break;case"X38":alert("At not done")}}},appendProdOp:function(e){var t=this.slice(e);"*"===t?this.pushText("ImplicitMult","symbol"):this.pushText(t,"code")},fillMulti:function(e,t,i){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{rulenames:["F","SO1","SO2","SO3","B1","B2","B3","B4","B5","B6","w","ws","s","LW","E1","E2","E3","E4","E5","E6","E7","C1","C2","C3","C4","BC1","BC2","BC3","BC4","LineC","WhiteLine","FN1","FN2","FN3","FN4","FN5","FN6","FN7","FN8","FN9","S1","SC","S4","S5","S7","S8","S9","S10","S11","S12","S13","IG","S14","S15","S16","S17","S18","S19","S20","s20","S21","s21","S22","S23","S24","S25","S26","S27","S28","D1","D2","D3","D3a","D4","D5","D6","D7","D6a","D8","D9","S29","S30","S31","S32","S33","S34","X0","X1","X2","X3","X4","X5","x5","X6","x6","X7","x7","X8","x8","X9","X10","X11","x11","X12","X13","X14","X15","X16","XX1","X17","X18","X19","X20","X21","X22","X23","x23","X24","X25","X26","X27","X28","X29","X30","X31","X32","X33","X34","X35","X36","X37","X38","X39","X40","X41","X42","X43","X44","X45","X45a","X45b","X46","X47","X48","E0","Y1","Y2","Y3","Y4","Y5","Y6","Y7","Y8","Y9","Y10","Y11","Y12","YY1","Y13","Y14","Y15","Y16","T1","T2","T3","T4","T5","T6","T7","T8","T9","T10","T11","T12","T13","T14","T15","T16","T17","T18","T19","T20","T21","T22","T23","T24","T25","T26","T27"],rules:[[0,2,22,10,35,0,2,32,11,21,0,2,163,10,11,2,24,10,7,0,2,32,4,1,11,5,2,41,1,10,9,2,24,10,5,2,19,1,13,0],[0,2,12,10,16,2,3,10,12,2,24,10,8,2,12,10,4,26,1,13,0],[9,0,0,2,12,10,18,2,4,10,14,2,12,10,10,0,2,137,11,4,26,1,1,5,-21,13,2],[0,0,3,1,91,10,24,2,89,10,20,0,0,3,1,44,10,5,2,89,1,6,-9,10,6,3,1,93,1,11,5,2,89,1,13,2],[14,13,2],[14,13,2],[14,13,2],[14,13,2],[14,13,2],[14,13,2],[16,2,32,32,9,9],[0,2,11,6,-2],[0,0,16,2,32,32,9,9,6,-6,10,8,0,2,14,6,-2,1],[0,3,3,46,46,46,10,19,2,15,10,15,0,2,16,11,5,2,6,1,10,5,2,12,1,13,2],[0,17,1,10,13,6,-4,13,0],[0,0,16,1,10,12,11,17,0,16,1,13,13,10,9,0,16,1,10,10,4,1,1,10,5,2,23,1,13,0],[0,2,16,11,4,26,1,13,0],[0,2,15,10,5,2,17,1,13,0],[26,13,0],[0,16,1,10,12,11,17,0,16,1,13,13,10,9,0,16,1,10,10,4,1,1,13,0],[0,16,1,26,26,10,7,0,21,6,-1,1,13,0],[0,2,12,10,32,0,0,0,2,26,11,13,2,30,11,9,2,16,11,5,2,21,1,10,5,2,12,1,6,-22,10,5,2,12,1,13,0],[0,0,0,2,12,10,5,2,26,1,6,-8,10,5,2,12,1,13,0],[0,2,12,10,19,0,0,0,2,30,11,5,2,17,1,10,5,2,22,1,4,1,13,0],[0,0,2,30,11,5,2,16,1,10,5,2,22,1,13,0],[0,2,28,10,36,2,31,10,32,0,0,2,12,10,5,2,27,1,6,-8,10,19,2,12,10,15,0,2,29,11,5,2,5,1,10,5,2,18,1,13,0],[0,2,26,11,19,0,0,2,29,7,10,11,0,2,19,7,10,5,2,18,1,1,13,0],[3,2,37,123,13,0],[3,2,37,125,13,0],[0,3,1,37,10,5,2,18,1,13,2],[0,0,16,2,32,32,9,9,6,-6,10,5,2,17,1,13,0],[0,2,33,10,14,0,0,2,24,10,5,2,33,1,6,-8,1,13,0],[0,3,8,102,117,110,99,116,105,111,110,10,31,2,145,10,27,2,13,10,23,2,35,10,19,2,39,10,15,2,12,10,11,0,2,34,11,5,2,5,1,1,13,0],[2,118,13,2],[0,0,2,36,4,10,39,0,2,126,11,5,2,118,1,10,29,2,13,10,25,0,2,38,4,10,19,2,12,10,15,0,16,2,44,44,59,59,4,10,5,2,24,1,13,0],[0,0,2,37,11,5,2,142,1,10,14,2,13,10,10,3,1,61,10,5,2,13,1,13,2],[0,3,1,91,10,50,2,13,10,46,0,2,142,4,10,40,2,13,10,36,0,0,0,3,1,44,4,10,13,2,13,10,9,2,142,10,5,2,13,1,6,-19,10,12,0,3,1,93,11,5,2,5,1,1,13,2],[0,3,1,40,10,60,2,13,10,56,0,0,2,142,11,5,2,52,1,4,10,44,2,13,10,40,0,0,3,1,44,10,19,2,13,10,15,0,2,142,11,5,2,52,1,10,5,2,13,1,6,-23,10,12,0,3,1,41,11,5,2,5,1,1,13,2],[2,40,13,2],[0,2,13,10,24,0,0,0,2,33,11,9,2,45,11,5,2,30,1,10,5,2,13,1,6,-18,1,13,0],[0,2,13,10,14,0,0,2,42,10,5,2,13,1,6,-8,1,13,0],[0,2,45,11,5,2,30,1,13,0],[0,0,16,2,44,44,59,59,10,5,2,24,1,11,5,2,25,1,13,2],[0,2,43,11,4,26,1],[0,2,43,11,5,2,46,1,13,0],[0,2,69,11,5,2,47,1],[0,0,2,51,10,9,2,13,10,5,2,44,1,11,40,0,2,48,10,5,2,44,1,11,30,0,0,0,3,3,101,110,100,10,5,2,145,1,7,10,13,2,89,10,9,2,13,10,5,2,44,1,1],[0,2,49,10,22,2,13,10,18,3,1,61,10,13,2,13,10,9,2,88,10,5,2,13,1,13,0],[0,2,122,11,5,2,50,1,13,0],[0,2,128,10,76,2,13,10,72,0,2,122,11,5,2,52,1,10,62,0,0,2,13,10,22,0,3,1,44,4,10,15,2,13,10,11,0,2,122,11,5,2,52,1,1,6,-25,10,32,2,13,10,28,0,3,1,93,11,21,0,3,1,44,10,10,2,13,10,6,3,1,93,1,11,5,2,5,1,1,13,0],[0,2,53,11,45,2,56,11,41,2,59,11,37,2,63,11,33,2,83,11,29,2,84,11,25,2,64,11,21,2,85,11,17,2,67,11,13,2,86,11,9,2,81,11,5,2,60,1,13,0],[3,1,126,13,0],[0,3,2,105,102,10,36,2,145,10,32,2,88,10,28,2,41,10,24,0,2,54,6,-2,10,17,0,2,55,4,10,11,0,2,118,11,5,2,5,1,1,13,0],[0,3,6,101,108,115,101,105,102,10,13,2,145,10,9,2,88,10,5,2,41,1,13,0],[0,3,4,101,108,115,101,10,9,2,145,10,5,2,41,1,13,0],[0,3,6,115,119,105,116,99,104,10,47,2,145,10,43,2,88,10,39,0,2,43,6,-2,10,32,2,24,10,28,2,12,10,24,0,2,57,6,-2,10,17,0,2,58,4,10,11,0,2,118,11,5,2,5,1,1,13,0],[0,3,4,99,97,115,101,10,17,2,145,10,13,2,88,10,9,2,43,10,5,2,41,1,13,0],[0,3,9,111,116,104,101,114,119,105,115,101,10,9,2,145,10,5,2,41,1,13,0],[0,3,3,102,111,114,10,27,2,145,10,23,2,13,10,19,2,61,10,15,2,41,10,11,0,2,118,11,5,2,5,1,1,13,0],[0,3,6,112,97,114,102,111,114,10,27,2,145,10,23,2,13,10,19,2,62,10,15,2,41,10,11,0,2,118,11,5,2,5,1,1,13,0],[0,0,2,142,10,14,2,13,10,10,3,1,61,10,5,2,88,1,11,34,0,3,1,40,10,27,2,13,10,23,2,142,10,19,2,13,10,15,3,1,61,10,10,2,88,10,6,3,1,41,1,1,13,0],[0,0,2,142,10,14,2,13,10,10,3,1,61,10,5,2,88,1,11,51,0,3,1,40,10,44,2,13,10,40,2,142,10,36,2,13,10,32,3,1,61,10,27,2,88,10,23,0,0,3,1,44,10,9,2,13,10,5,2,123,1,4,10,6,3,1,41,1,1,13,0],[0,3,5,119,104,105,108,101,10,23,2,145,10,19,2,88,10,15,2,41,10,11,0,2,118,11,5,2,5,1,1,13,0],[0,0,2,65,11,5,2,66,1,10,15,9,0,0,2,13,10,5,2,142,1,5,-8,1,13,0],[0,3,6,103,108,111,98,97,108,10,5,2,145,1,13,0],[0,3,10,112,101,114,115,105,115,116,101,110,116,10,5,2,145,1,13,0],[0,3,3,116,114,121,10,25,2,145,10,21,2,41,10,17,0,2,68,4,10,11,0,2,118,11,5,2,5,1,1,13,0],[0,3,5,99,97,116,99,104,10,29,2,145,10,25,0,0,2,12,10,13,2,142,10,9,2,13,10,5,2,43,1,4,10,5,2,41,1,13,0],[0,2,79,10,17,2,70,10,13,2,75,10,9,2,13,10,5,2,44,1,13,0],[0,9,0,2,11,5,-2,10,7,0,2,71,7,1,13,0],[0,16,7,40,40,41,41,44,44,59,59,37,37,123,123,125,125,11,36,0,16,1,61,61,10,9,0,16,1,61,61,7,1,11,20,2,20,11,16,3,3,46,46,46,11,9,2,72,11,5,2,73,1,13,0],[0,0,3,1,46,4,10,25,16,8,43,43,45,45,42,42,47,47,92,92,39,39,40,40,94,94,10,5,2,74,1,13,0],[0,0,2,101,11,27,3,2,38,38,11,21,3,2,124,124,11,15,16,5,38,38,124,124,94,94,64,64,58,58,1,10,5,2,74,1,13,0],[0,9,0,2,11,5,-2,10,49,0,3,3,46,46,46,11,40,0,3,1,46,10,7,16,1,48,57,1,11,27,16,11,97,122,65,90,48,57,95,95,39,39,92,92,40,40,92,92,91,91,92,92,123,123,1,1,13,0],[9,0,0,0,2,139,10,5,2,13,1,11,11,0,2,76,10,5,2,13,1,1,5,-20,13,0],[9,0,0,2,77,11,30,17,5,44,44,59,59,32,32,10,13,46,46,11,16,0,3,1,46,10,9,0,3,2,46,46,7,1,1,5,-33,13,0],[0,16,3,40,40,123,123,91,91,10,17,2,78,10,13,0,16,3,41,41,125,125,93,93,4,1,13,2],[9,0,0,2,77,11,30,0,3,3,46,46,46,10,5,2,18,1,11,17,17,6,41,41,125,125,93,93,59,59,37,37,10,13,1,5,-33,13,0],[0,2,144,18,2,2,80,19,13,2],[0,3,2,105,102,11,244,3,3,102,111,114,11,237,3,3,101,110,100,11,230,3,3,116,114,121,11,223,3,4,99,97,115,101,11,215,3,6,101,108,115,101,105,102,11,205,3,4,115,112,109,100,11,197,3,5,99,97,116,99,104,11,188,3,5,119,104,105,108,101,11,179,3,5,98,114,101,97,107,11,170,3,4,101,108,115,101,11,162,3,6,115,119,105,116,99,104,11,152,3,6,103,108,111,98,97,108,11,142,3,6,114,101,116,117,114,110,11,132,3,6,112,97,114,102,111,114,11,122,3,8,102,117,110,99,116,105,111,110,11,110,3,8,99,111,110,116,105,110,117,101,11,98,3,8,99,108,97,115,115,100,101,102,11,86,3,9,111,116,104,101,114,119,105,115,101,11,73,3,10,112,101,114,115,105,115,116,101,110,116,11,59,3,2,112,105,11,53,3,3,101,112,115,11,46,3,3,110,97,110,11,39,3,3,78,97,78,11,32,3,3,105,110,102,11,25,3,3,73,110,102,11,18,3,1,105,11,13,3,1,106,11,8,3,3,97,110,115,1,13,0],[0,2,82,10,30,2,13,10,26,0,0,2,127,10,10,2,123,10,6,3,1,41,1,4,10,9,2,41,10,5,2,118,1,13,0],[0,3,4,115,112,109,100,10,5,2,145,1,13,0],[0,3,5,98,114,101,97,107,10,5,2,145,1,13,0],[0,3,6,114,101,116,117,114,110,10,5,2,145,1,13,0],[0,3,1,33,10,5,2,15,1,13,0],[0,3,8,99,111,110,116,105,110,117,101,10,5,2,145,1,13,0],[0,2,13,10,37,0,0,2,142,10,21,2,13,10,17,3,1,61,10,12,0,3,1,61,7,10,5,2,13,1,4,10,9,2,89,10,5,2,13,1,13,0],[0,2,13,10,11,0,2,90,4,10,5,2,13,1,13,0],[0,2,13,10,9,2,90,10,5,2,13,1,13,0],[0,0,2,132,10,31,2,13,10,27,3,1,40,10,22,2,13,10,18,2,91,10,14,3,1,41,10,9,2,13,10,5,2,88,1,11,5,2,92,1,13,0],[0,0,0,2,142,11,5,2,52,1,4,10,37,2,13,10,33,0,0,3,1,44,10,23,2,13,10,19,0,2,142,11,9,2,52,11,5,2,9,1,10,5,2,13,1,6,-27,1,13,0],[0,2,94,10,24,0,0,2,93,10,15,2,13,10,11,0,2,94,11,5,2,8,1,1,6,-18,1,13,0],[3,2,124,124,13,0],[0,2,96,10,24,0,0,2,95,10,15,2,13,10,11,0,2,96,11,5,2,8,1,1,6,-18,1,13,0],[3,2,38,38,13,0],[0,2,98,10,24,0,0,2,97,10,15,2,13,10,11,0,2,98,11,5,2,8,1,1,6,-18,1,13,0],[0,3,1,124,10,8,0,3,1,124,7,1,13,0],[0,2,100,10,24,0,0,2,99,10,15,2,13,10,11,0,2,100,11,5,2,8,1,1,6,-18,1,13,0],[0,3,1,38,10,8,0,3,1,38,7,1,13,0],[0,2,102,10,18,0,0,2,101,10,9,2,13,10,5,2,102,1,6,-12,1,13,0],[0,0,16,4,61,61,62,62,60,60,126,126,10,7,16,1,61,61,1,11,9,16,2,60,60,62,62,1,13,0],[0,2,104,10,24,0,0,2,103,10,15,2,13,10,11,0,2,104,11,5,2,8,1,1,6,-18,1,13,0],[3,1,58,13,0],[0,2,106,10,32,2,13,10,28,0,0,2,105,10,19,2,13,10,15,0,2,106,11,5,2,8,1,10,5,2,13,1,6,-22,1,13,0],[16,2,43,43,45,45,13,0],[0,2,108,10,22,0,0,2,13,10,13,2,107,10,9,2,13,10,5,2,108,1,6,-16,1,13,0],[0,0,3,1,46,4,10,11,16,3,42,42,47,47,92,92,1,13,0],[0,0,0,0,2,110,10,5,2,13,1,6,-8,10,5,2,111,1,11,5,2,109,1,13,0],[0,2,132,10,39,2,13,10,35,0,0,3,1,40,10,22,2,13,10,18,2,91,10,14,3,1,41,10,9,2,13,10,5,2,88,1,11,5,2,126,1,1,13,0],[16,3,126,126,43,43,45,45,13,0],[0,2,115,10,44,0,0,2,112,11,35,0,2,13,10,5,2,113,1,11,25,0,2,13,10,19,2,114,10,15,2,13,10,11,0,2,108,11,5,2,8,1,1,1,6,-38,1,13,0],[16,1,39,39,13,0],[3,2,46,39,13,0],[0,0,3,1,46,4,10,6,3,1,94,1,13,0],[0,2,116,11,13,0,16,1,63,63,10,5,2,126,1,1,13,0],[0,2,119,11,25,2,117,11,21,2,122,11,17,2,133,11,13,2,138,11,9,2,139,11,5,2,118,1,13,0],[0,3,1,40,10,16,2,89,10,12,0,3,1,41,11,5,2,5,1,1,13,2],[0,3,3,101,110,100,10,5,2,145,1,13,0],[0,0,0,0,3,1,48,10,23,16,2,120,120,88,88,10,15,9,0,16,3,48,57,65,70,97,102,5,-8,1,11,28,0,3,1,48,10,21,16,2,98,98,66,66,10,13,9,0,16,2,48,48,49,49,5,-6,1,1,10,38,0,0,16,2,115,115,117,117,10,26,0,3,1,56,11,19,3,2,49,54,11,13,3,2,51,50,11,7,3,2,54,52,1,1,4,1,11,106,0,9,0,16,1,48,57,5,-4,10,48,0,0,16,1,46,46,10,26,0,16,5,42,42,47,47,92,92,94,94,39,39,7,10,10,0,16,1,48,57,6,-4,1,4,10,13,0,2,120,4,10,7,0,2,121,4,1,11,47,0,16,1,46,46,10,39,0,16,5,42,42,47,47,92,92,94,94,39,39,7,10,23,9,0,16,1,48,57,5,-4,10,13,0,2,120,4,10,7,0,2,121,4,1,1,13,2],[0,16,4,101,101,69,69,100,100,68,68,10,21,0,16,2,43,43,45,45,4,10,11,9,0,16,1,48,57,5,-4,1,13,0],[0,16,2,105,105,106,106,10,5,2,145,1,13,0],[0,2,142,10,145,2,13,10,141,0,0,0,2,131,10,13,2,13,10,9,2,144,10,5,2,13,1,11,118,0,2,130,10,20,2,123,10,16,0,3,1,125,11,5,2,5,1,10,5,2,13,1,11,93,0,2,127,10,20,2,125,10,16,0,3,1,41,11,5,2,5,1,10,5,2,13,1,11,68,0,2,129,10,20,2,89,10,16,0,3,1,41,11,5,2,5,1,10,5,2,13,1,11,43,0,2,132,10,37,2,13,10,33,2,126,10,29,0,0,3,1,40,10,16,2,125,10,12,0,3,1,41,11,5,2,5,1,1,4,10,5,2,13,1,1,6,-135,1,13,0],[0,2,13,10,47,0,2,124,11,5,2,87,1,10,37,2,13,10,33,0,0,3,1,44,10,23,2,13,10,19,0,2,124,11,9,2,87,11,5,2,8,1,10,5,2,13,1,6,-27,1,13,2],[3,1,58,13,0],[0,2,123,11,5,2,13,1,13,0],[0,2,142,10,14,0,0,2,131,10,5,2,142,1,6,-8,1,13,0],[3,1,40,13,0],[3,1,91,13,0],[3,2,46,40,13,0],[3,1,123,13,0],[3,1,46,13,0],[3,1,64,13,0],[0,3,1,91,10,24,2,13,10,20,2,134,10,16,2,13,10,12,0,3,1,93,11,5,2,5,1,1,13,2],[0,2,135,10,32,0,0,2,13,10,6,3,1,44,1,6,-9,10,18,0,0,2,13,10,9,2,136,10,5,2,135,1,6,-12,1,13,2],[0,0,0,2,13,10,6,3,1,44,1,6,-9,10,52,2,13,10,48,0,2,146,4,10,42,0,0,0,0,2,13,10,6,3,1,44,1,6,-9,10,9,2,13,10,5,2,146,1,6,-22,10,15,0,0,2,13,10,6,3,1,44,1,6,-9,1,13,2],[9,0,0,2,13,10,5,2,137,1,5,-8,13,2],[0,3,1,59,11,9,2,16,11,5,2,30,1,13,0],[0,3,1,123,10,18,2,13,10,14,2,134,10,10,2,13,10,6,3,1,125,1,13,2],[0,2,140,11,5,2,141,1,13,0],[0,3,1,39,10,31,0,0,3,2,39,39,11,9,17,2,10,13,39,39,1,6,-14,10,12,0,3,1,39,11,5,2,10,1,1,13,2],[0,3,1,34,10,31,0,0,3,2,34,34,11,9,17,2,10,13,34,34,1,6,-14,10,12,0,3,1,34,11,5,2,10,1,1,13,2],[0,2,144,18,2,2,143,19,13,2],[0,3,2,105,102,11,186,3,3,102,111,114,11,179,3,3,101,110,100,11,172,3,3,116,114,121,11,165,3,4,99,97,115,101,11,157,3,6,101,108,115,101,105,102,11,147,3,4,115,112,109,100,11,139,3,5,99,97,116,99,104,11,130,3,5,119,104,105,108,101,11,121,3,5,98,114,101,97,107,11,112,3,4,101,108,115,101,11,104,3,6,115,119,105,116,99,104,11,94,3,6,103,108,111,98,97,108,11,84,3,6,114,101,116,117,114,110,11,74,3,6,112,97,114,102,111,114,11,64,3,8,102,117,110,99,116,105,111,110,11,52,3,8,99,111,110,116,105,110,117,101,11,40,3,8,99,108,97,115,115,100,101,102,11,28,3,9,111,116,104,101,114,119,105,115,101,11,15,3,10,112,101,114,115,105,115,116,101,110,116,1,13,0],[0,16,2,97,122,65,90,10,16,0,16,4,97,122,65,90,95,95,48,57,6,-10,1,13,0],[0,16,4,97,122,65,90,95,95,48,57,7],[2,147,13,0],[0,0,2,132,10,31,2,13,10,27,3,1,40,10,22,2,13,10,18,2,91,10,14,3,1,41,10,9,2,13,10,5,2,146,1,11,5,2,148,1,13,0],[0,2,149,10,22,0,0,2,13,10,13,2,93,10,9,2,13,10,5,2,149,1,6,-16,1,13,0],[0,2,150,10,22,0,0,2,13,10,13,2,95,10,9,2,13,10,5,2,150,1,6,-16,1,13,0],[0,2,151,10,22,0,0,2,13,10,13,2,97,10,9,2,13,10,5,2,151,1,6,-16,1,13,0],[0,2,152,10,22,0,0,2,13,10,13,2,99,10,9,2,13,10,5,2,152,1,6,-16,1,13,0],[0,2,153,10,22,0,0,2,13,10,13,2,101,10,9,2,13,10,5,2,153,1,6,-16,1,13,0],[0,2,154,10,22,0,0,2,13,10,13,2,103,10,9,2,13,10,5,2,154,1,6,-16,1,13,0],[0,2,156,10,18,0,0,2,155,10,9,2,13,10,5,2,156,1,6,-12,1,13,0],[0,0,2,11,10,17,2,13,10,13,2,105,10,9,2,11,10,5,2,13,1,11,5,2,105,1,13,0],[0,2,157,10,22,0,0,2,13,10,13,2,107,10,9,2,13,10,5,2,157,1,6,-16,1,13,0],[0,0,0,0,2,110,10,5,2,13,1,6,-8,10,5,2,159,1,11,5,2,158,1,13,0],[0,2,132,10,39,2,13,10,35,0,0,3,1,40,10,22,2,13,10,18,2,91,10,14,3,1,41,10,9,2,13,10,5,2,146,1,11,5,2,126,1,1,13,0],[0,2,160,10,44,0,0,2,112,11,35,0,2,13,10,5,2,113,1,11,25,0,2,13,10,19,2,114,10,15,2,13,10,11,0,2,157,11,5,2,8,1,1,1,6,-38,1,13,0],[0,2,161,11,13,0,16,1,63,63,10,5,2,126,1,1,13,0],[0,2,119,11,25,2,117,11,21,2,162,11,17,2,133,11,13,2,138,11,9,2,139,11,5,2,118,1,13,0],[0,2,142,10,137,0,0,0,2,13,10,13,2,131,10,9,2,13,10,5,2,144,1,11,114,0,2,130,10,16,2,123,10,12,0,3,1,125,11,5,2,5,1,1,11,93,0,2,127,10,16,2,125,10,12,0,3,1,41,11,5,2,5,1,1,11,72,0,2,13,10,20,2,129,10,16,2,89,10,12,0,3,1,41,11,5,2,5,1,1,11,47,0,2,13,10,41,2,132,10,37,2,13,10,33,2,126,10,29,0,0,2,13,10,21,3,1,40,10,16,2,125,10,12,0,3,1,41,11,5,2,5,1,1,4,1,1,6,-131,1,13,0],[0,2,164,10,29,2,24,10,25,2,12,10,21,0,2,170,4,10,15,2,118,10,11,2,24,10,7,0,2,32,4,1,13,0],[0,3,8,99,108,97,115,115,100,101,102,10,23,2,145,10,19,2,13,10,15,0,2,167,4,10,9,2,165,10,5,2,43,1,13,0],[0,2,126,10,26,2,13,10,22,0,0,3,1,60,10,13,2,13,10,9,2,166,10,5,2,13,1,4,1,13,0],[0,2,126,10,27,2,13,10,23,0,0,3,1,38,10,13,2,13,10,9,2,126,10,5,2,13,1,6,-17,1,13,0],[0,3,1,40,10,36,2,13,10,32,2,168,10,28,0,0,3,1,44,10,9,2,13,10,5,2,168,1,6,-13,10,10,3,1,41,10,5,2,13,1,13,0],[0,0,0,2,169,10,5,2,13,1,4,10,30,2,142,10,26,0,0,2,13,10,14,3,1,61,10,9,2,13,10,5,2,89,1,4,10,5,2,13,1,13,0],[3,1,126,13,0],[0,0,0,2,171,11,17,2,179,11,13,2,182,11,9,2,175,11,5,2,43,1,10,9,2,24,10,5,2,12,1,6,-30,13,0],[0,3,10,112,114,111,112,101,114,116,105,101,115,10,23,2,145,10,19,2,13,10,15,0,2,167,4,10,9,2,172,10,5,2,118,1,13,0],[0,0,2,173,10,5,2,13,1,6,-8,13,0],[0,2,43,11,24,0,2,174,10,18,0,0,2,13,10,10,3,1,61,10,5,2,89,1,4,1,1,13,0],[0,2,142,10,30,0,0,2,13,10,22,2,132,10,18,2,13,10,14,0,0,2,126,10,5,2,13,1,6,-8,1,4,1,13,0],[0,3,11,101,110,117,109,101,114,97,116,105,111,110,10,23,2,145,10,19,2,13,10,15,0,2,167,4,10,9,2,176,10,5,2,118,1,13,0],[0,0,2,177,10,5,2,13,1,6,-8,13,0],[0,2,43,11,29,0,2,142,10,23,2,13,10,19,0,0,3,1,40,10,10,2,178,10,6,3,1,41,1,4,1,1,13,0],[0,2,89,10,15,0,0,3,1,44,10,5,2,89,1,6,-9,1,13,0],[0,3,7,109,101,116,104,111,100,115,10,23,2,145,10,19,2,13,10,15,0,2,167,4,10,9,2,180,10,5,2,118,1,13,0],[0,0,2,181,10,5,2,13,1,6,-8,13,0],[0,2,43,11,32,0,2,185,10,5,2,24,1,11,22,0,0,0,3,3,101,110,100,10,5,2,145,1,7,10,5,2,35,1,1,13,0],[0,3,6,101,118,101,110,116,115,10,23,2,145,10,19,2,13,10,15,0,2,167,4,10,9,2,183,10,5,2,118,1,13,0],[0,0,2,184,10,5,2,13,1,6,-8,13,0],[0,0,0,2,142,10,31,2,13,10,27,0,0,3,1,40,10,18,2,13,10,14,2,126,10,10,2,13,10,6,3,1,41,1,4,1,4,10,5,2,43,1,13,0],[0,3,8,102,117,110,99,116,105,111,110,10,25,2,145,10,21,2,13,10,17,2,35,10,13,2,186,10,9,2,24,10,5,2,34,1,13,0],[0,0,2,12,10,23,0,2,187,11,17,2,185,11,13,0,0,2,189,7,10,5,2,188,1,1,1,6,-26,13,0],[0,2,13,10,15,9,0,0,2,42,10,5,2,13,1,5,-8,1,13,0],[0,2,12,10,15,0,2,30,11,5,2,17,1,10,5,2,22,1,13,0],[26,13,0]]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i){this.rules=t,this.names=e,this.root=i},my_strcmp:function(e,t,i,n,o,r){if(i+r>t)return!1;e=e.substring(i,i+r);var a,s="",l=r+o;for(a=o;a<l;a+=1)s+=String.fromCharCode(n[a]);return e===s},recordRule:function(e,t,i,n,o,r,a,s,l){var c=a.length;if(0===t&&1===c)e[i-1]=a;else{var d=a;e[i-1]=[{name:n,start:o,end:r,children:d}]}},joinRecords:function(e,t){var i=e.length;0===i&&console.log("empty record list");var n=e.pop();i>1&&n.length>0&&t&&(e[i-2]=e[i-2].concat(n))},pretty:function(e,t,i,n){arguments.length<4&&(n="long"),arguments.length<3&&(i="");var o=i;if(e){var r=e.children;if(r){var a=String.fromCharCode(10);if("short"===n&&(o+="("),o+=this.names[e.name],"long"===n){var s=t.substring(e.start,e.end);(s=(s=s.replace(a,"")).replace(/^[ ]*/,"")).length>10&&(s=s.substring(0,10)+"..."),o=o+" "+s+a}if(0===r.length&&"short"===n)o+=" "+e.start.toString()+" "+e.end.toString()+")";else{var l;for(l=0;l<r.length;l+=1)o+="long"===n?this.pretty(r[l],t,i+" ",n):" "+this.pretty(r[l],t,i,n);"short"===n&&(o+=")")}}}return o},parse:function(e){var t=this.rules,i=this.root,n=e.length,o=(t.length,0),r=0,a=[],s=0,l=[],c=[],d=[],u=0,h=[],p=!0;c.push(0,0,i);var f,g=[];for(h.push(g),s=(a=t[i]).length;c.length>0;){var m=c.length;if(r>=s){m>3&&(s=(a=t[c[m-4]]).length,r=c[m-2],f=l.pop(),p||(o=f),this.joinRecords(h,p)),c.pop(),c.pop(),c.pop(),m=c.length}else{var _,v,b=a[r];switch(f=0,b){case 0:l.push(o),h.push(g),r+=1;break;case 1:f=l.pop(),p||(o=f),this.joinRecords(h,p),r+=1;break;case 2:_=a[r+1]-1,r+=2,s=(a=t[_]).length,l.push(o),h.push(g),c.push(o,r,_),r=0;break;case 3:v=a[r+1],u=r+2,(p=this.my_strcmp(e,n,o,a,u,v))&&(o+=v),r+=v+2;break;case 4:f=l.pop(),p||(o=f),this.joinRecords(h,p),p=!0,r+=1;break;case 5:p&&l[l.length-2]>0?(r+=a[r+1],l[l.length-1]=o):p?(r+=a[r+1],l[l.length-1]=o,l[l.length-2]=1,this.joinRecords(h,p),h.push(g)):(r+=2,o=l[l.length-1],p=l[l.length-2]>0,l.pop(),l.pop(),this.joinRecords(h,p));break;case 6:this.joinRecords(h,p),p?(r+=a[r+1],l[l.length-1]=o,h.push(g)):(r+=2,o=l.pop(),p=!0);break;case 7:case 8:7===b&&(p=!p),o=l.pop(),this.joinRecords(h,!1),r+=1;break;case 9:l.push(0),r+=1;break;case 10:this.joinRecords(h,p),p?(r+=2,h.push(g)):(o=l.pop(),r+=a[r+1]);break;case 11:this.joinRecords(h,p),p?(l.pop(),r+=a[r+1]):(r+=2,h.push(g));break;case 12:case 15:if(o>=n)p=!1;else{var y=String.fromCharCode(a[r+1]);p=e[o]===y}p&&(o+=1),r+=2;break;case 13:if(p){var C=a[r+1],T=c[c.length-1];u=0;l.length>0&&(u=l[l.length-1]);var E=h.length,S=h[E-1],w=[];E>1&&(w=h[E-2]),this.recordRule(h,C,E,T,u,o,S,w,g)}r+=2;break;case 14:p=!0,r+=1;break;case 16:case 17:var I=r+2;if(r+=2+2*(v=a[r+1]),o>=n)p=!1;else{for(var A=e.charCodeAt(o);v;){v-=1;var x=a[I],N=a[I+=1];if(I+=1,p=A>=x&&A<=N)break}17===b&&(p=!p)}p&&(o+=1);break;case 18:if(p){d.push(e);var L=l[l.length-1];e=e.substring(L),n=o-L,o=0,r+=2}else r+=3+a[r+1],o=l.pop(),this.joinRecords(h,p);break;case 19:f=l.pop(),o===n&&p?(o=f,p=!1):(o=f+n,p=!0),n=(e=d.pop()).length,this.joinRecords(h,!1),r+=1;break;case 21:(p=o<n)&&(o+=1),r+=1;break;case 26:p=o===n,r+=1;break;default:console.log("not done "+String(b))}}}return p&&h.length>0&&h[0].length>0?{tree:h[0][0],str:e}:{tree:null,str:e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4696)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.embeddedoutputs.model","rtc.execution.triggers","rtc.embeddedoutputs.splitterpositionmodel","rtc.embeddedoutputs.warningbanner","rtc.embeddedoutputs.view"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(241),i(207),i(234),i(679),i(4697)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(o,{constructor:function(e,t,i,n,o,r){this._internalDocument=e,this._outputsModel=t,this._eoView=r,this._triggers=i,this._splitterPositionModel=n,this._warningBanner=o},get16aSaveObject:function(){var e=this._outputsModel.getRegions(),t=this._get16aDataStructureFrom18aPlusModel(e),i=!1,n=[],o=[],a={};t.forEach((function(e){var t=e.code.regionPositions[0],l=e.code.regionPositions[e.code.regionPositions.length-1];if(!t.isValid()||!l.isValid())throw new Error("Position not valid.");var c=this._internalDocument.getLineNumber(t.getNode()),d=this._internalDocument.getLineNumber(l.getNode()),u={code:{sectionBreak:e.code.sectionBreak,endOfSection:e.code.endOfSection,regionNumber:e.code.regionNumber},startLine:c,endLine:d,outputIndexes:[]};e.outputs.forEach((function(e){var t=[],o=e.uid,l=a[o];if(void 0===l){if(e.codeLinePositions.forEach((function(e){if(r.isCodeContainer(e.getNode())){var i=r.getCodeLineNumberFromPosition(this._internalDocument,e);i>0&&t.push(i)}}),this),0===t.length)return;try{var c=e.getSerializableData(),d=s.validateValue(c);if(d!==s.VALIDATION_RESULT.VALID&&this._logOutputError(e,c),d===s.VALIDATION_RESULT.ERROR)return void(i=!0)}catch(t){return void this._logOutputException(t,e,n.length)}n.push({type:e.type,outputData:c,lineNumbers:t}),l=n.length-1,a[o]=l}u.outputIndexes.push(l)}),this),o.push(u)}),this);var l={evaluationState:this._triggers.getEvaluationState(),layoutState:this._eoView.getSerializedView(),outputStatus:this._eoView.getReadyBusyIndicatorState(),splitterState:{proportion:this._splitterPositionModel.getRightPanelProportion()}};return i&&this._warningBanner.show("errorSavingIndividualOutput"),{metaData:l,outputArray:n,regionArray:o}},_get16aDataStructureFrom18aPlusModel:function(e){var t,i=[];return t=e.map((function(e){var t=this._outputsModel.getOutputsForRegion(e);return i=i.concat(t),{code:e.code,outputs:[]}}),this),i.forEach((function(i){i.codeLinePositions.forEach((function(n){var o=a.convertPositionToRegionNumber(n,e),r=t[o].outputs;-1===r.indexOf(i)&&r.push(i)}))})),t},_logOutputException:function(e,t,n){var o=t.type,r="n/a";"variableString"!==o&&"matrix"!==o||(r=Object.keys(t).join(", "));var s=a.isLoadedFromDisk(t.evaluationId);i.error("Exception occurred while saving output.\nException: "+e+"\nOutput index: "+n+"\nOutput type: "+o+"\nOutput properties: "+r+"\nLoaded from disk: "+s+"\nStack: "+e.stack)},_logOutputError:function(e,t){var n=a.isLoadedFromDisk(e.evaluationId),o=e.type;"variableString"!==o&&"matrix"!==o||!t||(t.subtype&&(o+=", subtype: "+t.subtype),t.varType&&(o+=", varType: "+t.varType));i.error("Error saving output. \nOutput type: "+o+"\nLoaded from disk: "+n+"\nOutput object: "+JSON.stringify(t,(function(e,t){switch(typeof t){case"function":return"<<<FUNCTION>>>";case"symbol":return"<<<SYMBOL>>>";case"undefined":return"<<<UNDEFINED>>>"}return t})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209)],o=i.dj.d(n,(function(e){return{VALIDATION_RESULT:{VALID:0,WARNING:1,ERROR:2},validateValue:function(e){if("function"==typeof e)return this._logError("Functions cannot be serialized"),this.VALIDATION_RESULT.ERROR;if("symbol"==typeof e)return this._logError("symbols cannot be serialized"),this.VALIDATION_RESULT.ERROR;if(void 0===e)return this._logError("value should not be undefined"),this.VALIDATION_RESULT.WARNING;if(null===e)return this._logError("value should not be null"),this.VALIDATION_RESULT.WARNING;if(Array.isArray(e))return this._validateArray(e);if("object"==typeof e){var t=Object.keys(e).map((function(t){return e[t]}));return this._validateValues(t)}return this.VALIDATION_RESULT.VALID},_validateValues:function(e){var t=this.VALIDATION_RESULT.VALID;return e.some((function(e){var i=this.validateValue(e);return(t=this._maxSeverity(i,t))===this.VALIDATION_RESULT.ERROR}),this),t},_maxSeverity:function(e,t){return Math.max(e,t)},_validateArray:function(e){var t=Object.keys(e).length;return e.length!==t?(this._logError("array contains custom properties"),this.VALIDATION_RESULT.ERROR):this._validateValues(e)},_logError:function(t){e.error("Unsupported value for serialization: "+t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4699),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:[]}},createInstance:function(){return new t},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},onOutputChanged:function(){},outputChanged:function(){this.onOutputChanged()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4701)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.backingstore"]}},createInstance:function(e){return new i(e)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(233),i(281)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_DEFAULT_RIGHT_PANEL_PROPORTION:.4,constructor:function(e){this._backingStore=e,this._updatedRightPanelProportion=null,this._handleNewScript()},_handleNewScript:function(){i.locationFromPath(n.getAbsoluteFilePathFromBackingStore(this._backingStore))||(this._updatedRightPanelProportion=this._DEFAULT_RIGHT_PANEL_PROPORTION)},loadSplitterPosition:function(e){e.metaData.splitterState?this.setRightPanelProportion(parseFloat(e.metaData.splitterState.proportion)):this.setDefaultRightPanelProportion()},setDefaultRightPanelProportion:function(){this.setRightPanelProportion(this._DEFAULT_RIGHT_PANEL_PROPORTION)},onProportionSet:function(){},setRightPanelProportion:function(e){this._updatedRightPanelProportion=e,this.onProportionSet()},getRightPanelProportion:function(){return null!==this._updatedRightPanelProportion?this._updatedRightPanelProportion:this._DEFAULT_RIGHT_PANEL_PROPORTION},hasSplitterPosition:function(){return null!==this._updatedRightPanelProportion},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4703)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.domnode","rtc.embeddedoutputs.currentoutputservice","rtc.focusservice","rtc.embeddedoutputs.view","rtc.embeddedoutputs.view.viewmodel","rtc.embeddedoutputs.accessibility.featureflag"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(207),i(208),i(1435)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,t,i,o,r,a){this._rtcDomNode=e,this._currentOutputService=t,this._focusService=i,this._embeddedOutputsView=o,this._viewModel=r,a.whenFirstEnabled(function(){this.own(n.after(this._viewModel,"onModelUpdated",this._handleAfterViewModelUpdated.bind(this)))}.bind(this))},_handleAfterViewModelUpdated:function(){this._viewModel.getOutputDivs().forEach((function(e){this._getNavigationLayer(e)||this._addNavigationLayer(e)}),this)},_addNavigationLayer:function(e){const i=t.create("div",{className:"navigationFocusLayer"});o.enableProgrammaticFocus(i),t.place(i,e,"last")},_getNavigationLayer:function(e){return e.querySelector(".navigationFocusLayer")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4705)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(225),i(936),i(348),i(1884),i(1886),i(1888),i(1889)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([o],{constructor:function(e){this._view=e,this._firstVisit=!0},getApplicableDomNodeClasses:function(){return["embeddedOutputsWarningElement","embeddedOutputsVariableStringElement","embeddedOutputsTextElement","embeddedOutputsErrorElement"]},reset:function(){this._firstVisit=!0},enter:function(e,t,i){if(this._firstVisit&&e.addCSSToStyle){var o=r+s+l+a;e.addCSSToStyle(n.cleanUpCSS(o)),this._firstVisit=!1}var c=t.cloneNode(!0);n.convertToInlineStyles(c,t),t=c;var d=n.removeElementsWithClass(t,".doNotExport");return d=this._removeMATLABLinks(d),e.addToBody(d.outerHTML),!0},_removeMATLABLinks:function(e){var n=i("a",e);if(0===n.length)return e;var o,r=0,a=e.cloneNode(!0);for(n=i("a",a),r=0;r<n.length;r+=1)"matlab:"===n[r].href.substring(0,7)&&(o=document.createTextNode(n[r].textContent),t.place(o,n[r],"replace"));return a}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2021)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4708)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(213),i(225),i(348),i(357),i(426)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([o],{constructor:function(e){this._view=e},_STYLES:["font-family","font-size","white-space"],getApplicableDomNodeClasses:function(){return["embeddedOutputsWarningElement","embeddedOutputsVariableStringElement","embeddedOutputsVariableElement","embeddedOutputsTextElement","embeddedOutputsErrorElement"]},enter:function(e,t,i){var n=this._createElement(e,t,i);a.getAttributesForStyle(t,this._STYLES,this._view).forEach((function(e){n.setAttribute(e.name,e.value)})),n.setAttribute("white-space-collapse","false"),n.setAttribute("white-space-treatment","preserve"),n.setAttribute("linefeed-treatment","preserve"),e.appendElement(n)},_createElement:function(e,n,o){for(var r=i.getComputedStyle(n),s=this._getDisplayType(r,n),l=a.createFOElementWithStyles(s,n,["color","font-weight","font-style"]),c=0;c<n.childNodes.length;c++){var d=n.childNodes[c];t.contains(d,"doNotExport")||(1===d.nodeType?l.appendChild(this._createElementNode(e,d)):3===d.nodeType&&l.appendChild(document.createTextNode(d.data)))}return l},_createElementNode:function(e,i,n){if("A"===i.nodeName)return document.createTextNode(i.text);if("BR"===i.nodeName)return document.createTextNode("\n");if(t.contains(i,"verticalEllipsis")){var o=a.createFOElement(r.BLOCK);return o.appendChild(a.createVerticalEllipsisElement()),o}return this._createElement(e,i,n)},_getDisplayType:function(e,t){return"inline"===i.getComputedStyle(t).display||t.displayType&&"inline"===t.displayType?r.INLINE:r.BLOCK}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4710)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(348),i(357),i(426)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{_STYLES:["padding-left","padding-right","padding-top","padding-bottom"],constructor:function(e){this._view=e},getApplicableDomNodeClasses:function(){return["outputParagraph"]},enter:function(e,t,i){e.openWrapperElement()},leave:function(e,t,o){var r=n.createFOElementWithStyles(i.BLOCK,t,this._STYLES,this._view);e.closeWrapperElement(r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4712)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.outputhandlerservice","rtc.diagnosticmessage","rtc.service.colorsettingservice","rtc.executionservice.linenumbertracker"]}},createInstance:function(e,t,n,o){var r=new i(t,n,o);return e.registerOutputPlugin(r),r},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(553),i(587),i(529),i(624),i(2022),i(619)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([i],{OUTPUT_TYPE:s.OUTPUT_TYPE,_SETTING_PATH:"matlab.colors.commandwindow.ErrorColor",_ERROR_TEXT_CSS:".diagnosticMessage-errorType",_ERROR_LINK_CSS:".diagnosticMessage-errorType a",constructor:function(e,t,i){this._diagnosticMessageFormatter=e,this._lineNumberTracker=i,this._registerColorSettings(t)},getOutputFromData:function(e,i){e=t.clone(e),this._cleanData(e);var r=new a({data:e,diagnosticMessageFormatter:this._diagnosticMessageFormatter,lineNumberTracker:this._lineNumberTracker});return new n(o.ADD_OUTPUT,r)},_registerColorSettings:function(e){e.register(this._SETTING_PATH,this._ERROR_TEXT_CSS),e.register(this._SETTING_PATH,this._ERROR_LINK_CSS)},_cleanData:function(e){var t=r.removeControlCharacters(e.text);e.text=r.processBackspaceCharacters(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4714)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs","rtc.embeddedoutputs.currentoutputservice","rtc.id","rtc.embeddedoutputs.model","rtc.contextmenu.generator","rtc.actionservice","rtc.code.sections.model","rtc.code.sections.stale.model","rtc.clipboard","rtc.document","rtc.embeddedoutputs.codegen","rtc.view","rtc.focusservice","rtc.outputhandlerservice","rtc.executionservice.statehandler","rtc.embeddedoutputs.figureconnectionmanager","rtc.embeddedoutputs.contextmenu","rtc.embeddedoutputs.figuretypes","rtc.bordercontainer"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){var y=new i(e.getEmbeddedOutputsView(),t,n,o,h,a,r,s,l,c,d,u,p,g,m,_,v,b);return f.registerOutputPlugin(y),y}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(679),i(553),i(587),i(529),i(4715),i(4716),i(4741),i(4742),i(937),i(4745),i(4746),i(4747),i(623),i(4748),i(455),i(4749)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e([o],{OUTPUT_TYPE:u.OUTPUT_TYPE,_MISSING_FIGURE_URI_ERROR:"A figure image or figureURI is required.",_snapshotManager:null,_FIGURE_SNAPSHOT_DELETE_CHANNEL:"/liveeditor/figuresnapshots",_hasSubcribedToAnimationListener:!1,constructor:function(e,n,o,r,a,s,l,d,u,g,_,b,y,C,T,E,S,w){this._aspectHandles=[],this._currentouputservice=n,this._editorId=o,this._outputsModel=r,this._view=a,this._actionService=s,this._contextMenuGenerator=l,this._sectionModel=d,this._staleSectionModel=u,this._clipboard=g,this._document=_,this._codeGenFactory=b,this._focusService=y,this._embeddedOutputsView=e,this._stateHandler=C,this._figureConnectionManager=T,this._contextMenuContributor=E,this._hasSubcribedToAnimationListener=!1,this._figureFactory=Array.isArray(S)?S[0]:null,this._figurePoolManager=new c,this._outputsInProgressMap={},this._numberOfSectionsRemaining=0,this._toolstripActionController=new f(o,this._actionService),this._aspectHandles.push(i.after(this._currentouputservice,"onOutputSelected",t.hitch(this,"_handleOutputSelectionAndModelChanges"),!0)),this._aspectHandles.push(i.after(this._stateHandler,"onStateChanged",t.hitch(this,"_handleStateChanged"),!0)),this._snapshotManager=new m(o,this._FIGURE_SNAPSHOT_DELETE_CHANNEL),this._focusedFigure=new h,this._javaFigureManager=new p(o),this._altTextParser=new v,this._borderContainer=w},_removeAnimatedOutput:function(e){for(var t=e.data.serialization.keys,i=0;i<t.length;i++){var n=this._outputsInProgressMap[t[i]];n&&(this._outputsModel.removeOutput(n),delete this._outputsInProgressMap[t[i]])}this._hasSubcribedToAnimationListener&&(this._hasSubcribedToAnimationListener=!1,_.getInstance().unsubscribe("/liveeditor/removePendingOutput/animation","_removeAnimatedOutput",this))},getOutputFromData:function(e,i){var n;this._modifyDataFormat(e);var o=e.lineNumbers,l=e.figurePlaceHolderId||e.figureId,c=this._outputsInProgressMap[l],d=!!c,h=e.figurePlaceHolderId,p=e.isPending,f=!h&&!p,g=d&&this._isPending(c),m=a.REASSOCIATE_AND_UPDATE;if(c||(c=new s({figureId:l,onOutputDestroyedCallback:t.hitch(this,"onOutputDestroyed")}),this._outputsInProgressMap[l]=c,m=a.ADD_OUTPUT),h)return c.getState()!==u.STATE.PENDING&&c.setState(u.STATE.PLACEHOLDER),new r(m,c);p?c.setState(u.STATE.PENDING):c.setState(u.STATE.FINAL_SNAPSHOT),m=d?a.UPDATE:a.ADD_OUTPUT,f&&delete this._outputsInProgressMap[l];var v={editorId:this._editorId,figureId:e.figureId,lineNumbers:o,snapshotManager:this._snapshotManager},b=e.hasOwnProperty("figureUri");if(e.hasOwnProperty("figureImage")){var y=!1,C=!1;this._resolveUriFigure(v,e.figureImage,e,c,y,C)}else if(b)y=!0,C=!1,this._resolveUriFigure(v,e.figureUri,e,c,y,C);else if(e.isDeferredJavaImage)this._javaFigureManager.whenImageReady(e.figureId,function(t){this._resolveUriFigure(v,t,e,c,!1,!0)}.bind(this),(function(e){c.getReadyPromise().reject()}));else{if(g){var T=c.getAnimatedFigureFrameInMap();(n=this.createFigureProxyForWebCanvas(e,v,c.getContentPane())).setAnimatedFigureFrameInMap(T),e.showPlaybackControls&&n.setRequiredNumberOfAnimationFrames()}else n=this.createFigureProxyForWebCanvas(e,v);n.setPendingState(p),n.addFigureURIChangedListener(t.hitch(this,(function(t){if(e.alt){var i=this._altTextParser.parseAltTextJSON(e.alt);n.setAltText(i)}c.getReadyPromise().resolve()}))),n.addFigureStateChangedListener(t.hitch(this,(function(e){this.onOutputFocused(e.figureProperties)}))),n.addUpdateLayoutListener(t.hitch(this,(function(e){this._embeddedOutputsView.onAlign()}))),c.initializeFigure({figureProxy:n,figureSize:e.figureSize,getRegionNumbersFromPositions:t.hitch(this,"_convertPositionsToRegionNumbers")}),n.setOutput(c),n.setDocumentView(this._view),n.setFigureUndoRedo(this._document),n.setContextMenuService(this._actionService,this._contextMenuGenerator,this._contextMenuContributor),n.setCodeGenFactory(this._codeGenFactory),n.setFocusService(this._focusService),e.figureData.iFigureMetaData?("function"==typeof n.shouldCaptureAnimationFrames&&(n.shouldCaptureAnimationFrames(!1),n.setEmbeddedOutputsView(this._embeddedOutputsView)),n.addInteractionFeatures()):(e.useEmbedded&&1===e.useEmbedded&&n.addResizeListeners(),"function"==typeof n.shouldCaptureAnimationFrames&&(n.shouldCaptureAnimationFrames(!0),this._hasSubcribedToAnimationListener||(this._hasSubcribedToAnimationListener=!0,_.getInstance().subscribe("/liveeditor/removePendingOutput/animation","_removeAnimatedOutput",this)))),n.setFocusedFigure(this._focusedFigure),n.setGetNumberOfOutputsOnLineCallback(t.hitch(this,(function(){var e=c.codeLinePositions[c.codeLinePositions.length-1];return this._outputsModel.getOutputsForPosition(e).filter((function(e){return e.type===u.OUTPUT_TYPE})).length}))),c.getState()!==u.STATE.FINAL_SNAPSHOT?this._figureConnectionManager.registerOutput(e.figureId,c):this._figureConnectionManager.removeOutput(e.figureId)}return n&&n.addCustomEventListener("startEditing",t.hitch(this,(function(e){this._focusService.setBlur()}))),new r(m,c)},_resolveUriFigure:function(e,i,n,o,r,a){var s=a?this.createFigureProxyForGUI(e,i,n.figureSize,n.useEmbedded):this.createFigureProxyForLoadedFigure(e,i,n.figureSize,n.useEmbedded);r&&s.showRunCodePrompt(),o.initializeFigure({figureProxy:s,figureSize:n.figureSize,getRegionNumbersFromPositions:t.hitch(this,"_convertPositionsToRegionNumbers")});var l=o.getReadyPromise();if(l.isFulfilled()?this._outputsModel.updateOutput(o):l.resolve(),n.alt){var c=this._altTextParser.parseAltTextJSON(n.alt);s.setAltText(c)}return s},_convertPositionsToRegionNumbers:function(e){var t=[],i=this._outputsModel.getRegions();return e?(e.forEach((function(e){var o=n.convertPositionToRegionNumber(e,i),r=i[o];g.isPositionWithinRegionRange(e,r,r)&&t.push(o)}),this),t):[]},createFigureProxyForURI:function(e,t,i,n){var o;return(o=n?new d(e):new l(e)).createViewForLoadedFigure(e,t,i),o},createFigureProxyForLoadedFigure:function(e,t,i,n){return this.createFigureProxyForURI(e,t,i,n)},createFigureProxyForGUI:function(e,t,i,n){var o;return(o=n?new d(e):new l(e)).createViewForGUI(e,t,i),o},createFigureProxyForWebCanvas:function(e,t,i){var n;if(e.useEmbedded&&1===e.useEmbedded){n=d(t);var o=this._figureFactory?this._figureFactory.getEmbeddedFigureFactory():null;n.createViewForWebCanvas(t,e.serverID,i,e.figureSize,e.figureData.iFigureMetaData,o,this._figurePoolManager,this._borderContainer,this._view)}else{n=l(t);var r=this._figureFactory?this._figureFactory.getGraphicsViewFactory():null;n.createViewForWebCanvas(t,e.serverID,i,e.figureSize,e.figureData.iFigureMetaData,r)}return n},onOutputFocused:function(e){e&&(this._focusedFigure.figureId!==e.figureId&&_.getInstance().publish("/graphics/"+this._focusedFigure.figureId+"/focusLost",{Event:"FigureFocused",editorID:this._editorId,figureID:this._focusedFigure.figureId}),this._focusedFigure.figureId=e.figureId,_.getInstance().publish("/graphics/"+this._focusedFigure.figureId+"/event",{Event:"FigureFocused",editorID:this._editorId,figureID:this._focusedFigure.figureId}))},onOutputBlurred:function(){this._focusedFigure.figureId="",this._disableFigureInteractions()},onOutputDestroyed:function(e){this._figureConnectionManager.removeOutput(e),delete this._outputsInProgressMap[e]},_handleOutputSelectionAndModelChanges:function(e){e.focusedOutput&&e.focusedOutput.type===this.OUTPUT_TYPE?(this.onOutputFocused(e.focusedOutput.getFigureProperties()),this._enableFigureInteractions(e.focusedOutput)):this.onOutputBlurred()},_enableFigureInteractions:function(e){e&&e._figureProxy&&e._figureProxy.figureView.isFigureEmbedded&&(this._lastOutputFocused!==e&&this._disableFigureInteractions(),e._figureProxy.figureView.enableFigureInteractions(),this._lastOutputFocused=e)},_disableFigureInteractions:function(){this._lastOutputFocused&&(this._lastOutputFocused._figureProxy.figureView.disableFigureInteractions(),this._lastOutputFocused=null)},_handleStateChanged:function(e,t){return e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED?(this._clearIncompleteFigures(),void(this._numberOfSectionsRemaining=this._sectionModel.getSections().length)):e===this._stateHandler.CHANGE_TYPE_ENUM.SECTION_EVAL_COMPLETE?(this._numberOfSectionsRemaining--,void(0!==this._numberOfSectionsRemaining&&this._clearIncompleteFigures())):void(e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE?(this._clearIncompleteFigures(),this._snapshotManager.evalComplete()):e===this._stateHandler.CHANGE_TYPE_ENUM.REGION_EVAL_STARTED&&this._snapshotManager.evalStarted())},_clearIncompleteFigures:function(){Object.keys(this._outputsInProgressMap).forEach((function(e){var t=this._outputsInProgressMap[e];t.isReady()?t.setState(u.STATE.FINAL_PENDING_SNAPSHOT):t.getReadyPromise().reject()}),this),this._outputsInProgressMap={}},_isPending:function(e){return e.getState()===u.STATE.PENDING},_isFinalSnapshot:function(e){return e.getState()===u.STATE.FINAL_SNAPSHOT||e.getState()===u.STATE.FINAL_PENDING_SNAPSHOT},_modifyDataFormat:function(e){Object.keys(e).forEach((function(t){var i=e[t],n=Array.isArray(i);n&&0===i.length?delete e[t]:"boolean"==typeof i&&"iEnableMOLFigureToolstrip"!==t&&"isPending"!==t?e[t]=i?1:0:!n&&i&&"object"==typeof i&&this._modifyDataFormat(i)}),this)},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[],this._toolstripActionController.destroy(),this._snapshotManager.destroy(),this._figurePoolManager.destroy(),this._hasSubcribedToAnimationListener&&(this._hasSubcribedToAnimationListener=!1,_.getInstance().unsubscribe("/liveeditor/removePendingOutput/animation","_removeAnimatedOutput",this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(452),i(314),i(935),i(937)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{_IMG_URI_DATA_ATTRIBUTE:"data-imguri",type:r.OUTPUT_TYPE,constructor:function(e){this._isReadyPromise=new t,this._state=r.STATE.NOT_INITIALIZED,this._figureId=e.figureId,this._onOutputDestroyedCallback=e.onOutputDestroyedCallback},initializeFigure:function(e){this._figureProxy&&this._figureProxy.destroy(),this._figureProxy=e.figureProxy,this._figureSize=e.figureSize,this._getRegionNumbersFromPositions=e.getRegionNumbersFromPositions},destroy:function(){this._isReadyPromise.reject(),this._isReadyPromise=null,this._figureProxy&&this._figureProxy.destroy(),this._onOutputDestroyedCallback(this._figureId)},getCssTag:function(){return r.CSS_TAG},getDomElement:function(){return this._figureProxy.getFigureView().getWrapperNode()},getSerializableData:function(){var e={};e.figureId=this._figureId,e.figureUri=this._figureProxy.getFigureURI(),altText=this._figureProxy.getAltText(),altText&&(e.alt=altText),this._figureSize&&(e.figureSize=this._figureSize);var t=this._getRegionNumbersFromPositions(this.getCodeLinePositions());return e.regionNumbers=t,e.originalRegionNumber=t[0],e},getText:function(){return""},getHTML:function(e,t){var n="<div><img ",o=this._figureProxy.getFigureURI();e?(n+='src="'+i.pushImageAndGetPathFromURI(o,e,t)+'"',n+=this._IMG_URI_DATA_ATTRIBUTE+'="'+o+'"'):n+='src="'+o+'"';return n+="></div>"},getMIMEContent:function(){return[{flavor:n.IMAGE,content:this._figureProxy.getFigureURI()}]},isReady:function(){return this._isReadyPromise.isResolved()},getReadyPromise:function(){return this._isReadyPromise},printToFile:function(e,t,i){return this._figureProxy.printToFile(["format",e,"resolution",t,"destination",i,"background",null,"margins","loose"])},canPrintToFile:function(){var e=this._figureProxy.getEmbeddedFigureSettingState();return null!=this._figureProxy.figureModel.getFigureProperties(e)},getFigureProperties:function(){return this._figureProxy.getFigureProperties()},getContentPane:function(){return this._figureProxy.getFigureContentPane()},getFigureId:function(){return this._figureId},getFigureUri:function(){return this._figureProxy.getFigureURI()},getFigureSize:function(){return this._figureSize},getState:function(){return this._state},setState:function(e){this._state=e},getAnimatedFigureFrameInMap:function(){return this._figureProxy.getAnimatedFigureFrameInMap()},reconnect:function(){this._figureProxy.reconnectView()},disconnect:function(){this._figureProxy.disconnectView()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(246),i(210),i(206),i(212),i(222),i(230),i(238),i(253),i(247),i(2023),i(4717),i(4722),i(4725),i(4738),i(2036),i(2037),i(2039),i(2040),i(937),i(2041),i(455)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){return e([a,s],{figureModel:null,figureView:null,_paletteController:null,_promptController:null,_modeManager:null,_modelessManager:null,_layoutManager:null,_windowMouseMoveListener:null,_windowMouseUpListener:null,_enableInteraction:!1,_enableModelessInteraction:!1,_output:null,_dependencies:null,_codeGenFactory:null,_codeGenerator:null,_actionService:null,_contextMenuGenerator:null,_paletteDisabled:!1,_contextMenuContributor:null,_embeddedFigureView:!1,_actionManager:null,_figureUndoRedoManager:null,_focusService:null,_IMAGE_PATH:require.toUrl("rtc/images/"),_eventHandler:null,_figureViewInteractionListeners:null,_cannotidentifyFigureTooltip:c.disabledWhenCannotIdentifyFigure,_getNumberOfOutputsOnLineCallback:null,_snapshotManager:null,_pending:!1,constructor:function(e){this.figureModel=new u(e),this._IMAGE_PATH=this._getImageUrl(),this._snapshotManager=e.snapshotManager},createViewForURI:function(e,t,i){this.figureView=new h(i,e.editorId,e.figureId),this.own(this.figureView),this.figureView.createImageNode(t,e.editorId,e.figureId)},createViewForLoadedFigure:function(e,t,i){this.createViewForURI(e,t,i)},createViewForGUI:function(e,t,i){this.createViewForURI(e,t,i),this.figureView.notifyGUIImageCreated(e.editorId,e.figureId)},createViewForWebCanvas:function(e,i,n,r,a,s){this.figureView=new h(r,e.editorId,e.figureId,s),this.own(this.figureView),a&&this._setFigureMetaData(a),this.figureView.createWebGraphicsNode(i,n),this.own(o(this.figureView,"refreshURI",t.hitch(this,(function(){this._setupFigureViewListeners(),this.emit("FigureURIChanged",{uri:this.getFigureURI()})}))))},_replaceWebCanvas:function(e){this.figureView.createWebGraphicsNode(e,this.figureView.getGraphicsViewContainerNode()),this.addInteractionFeatures()},getFigureContentPane:function(){return this.figureView.getGraphicsViewContainerNode()},setOutput:function(e){this._output=e,this.figureModel&&this.figureModel.setFigureToolstripEnablementCallback(t.hitch(this,"_shouldFigureToolstripBeEnabled"))},_shouldFigureToolstripBeEnabled:function(){if(!this._output)return!1;var e=this._output.getState();return this._isEnabledFigure()&&(e===y.STATE.FINAL_SNAPSHOT||e===y.STATE.FINAL_PENDING_SNAPSHOT)},setContextMenuService:function(e,t,i){this._actionService=e,this._contextMenuGenerator=t,this._contextMenuContributor=i},setFocusService:function(e){this._focusService=e},setCodeGenFactory:function(e){this._codeGenFactory=e},setDocumentView:function(e){this.figureView.setDocumentView(e)},setGetNumberOfOutputsOnLineCallback:function(e){this._getNumberOfOutputsOnLineCallback=e},showRunCodePrompt:function(){this.figureView.showRunCodePrompt()},_getImageUrl:function(){var e=d.parseUrl(this._IMAGE_PATH);return e.protocol+"//"+e.hostname+":"+e.port+e.pathname},_getMouseEventData:function(e){return this.getFigureModel().getMouseEventData(e,this.figureView,this._modeManager._cursorHotSpot)},notify:function(e,t){this.emit(e,t)},setAltText:function(e){this.figureView.setAltText(e)},getAltText:function(){return this.figureView.getAltText()},_setupFigureViewListeners:function(){this._enableModelessInteraction||T.getInstance().subscribe(this.figureModel.getModelessChannel(),"_modelessDataUpdate",this),this._enableModelessInteraction=!0,this._figureViewInteractionListeners||(this._figureViewInteractionListeners=[o(this.figureView,"WindowButtonMouseDown",t.hitch(this,"notify","WindowButtonMouseDown")),o(this.figureView,"WindowButtonMouseMove",t.hitch(this,"notify","WindowButtonMouseMove")),o(this.figureView,"WindowButtonMouseEnter",t.hitch(this,"notify","WindowButtonMouseEnter")),o(this.figureView,"WindowButtonMouseLeave",t.hitch(this,"notify","WindowButtonMouseLeave")),o(this.figureView,"WrapperElementMouseLeave",t.hitch(this,"notify","_WrapperElementMouseLeave")),o(this.figureView,"dblclick",t.hitch(this,"_WindowDblClickHandler")),o(this.figureView,"contextmenu",t.hitch(this,"_WindowContextMenuEventHandler")),o(this.figureView,"mousewheel",t.hitch(this,"notify","WindowButtonMouseWheel")),o(this.figureView,"LayoutResize",t.hitch(this,"notify","LayoutResize")),o(this.figureView,"InlineViewLayout",t.hitch(this,"notify","InlineViewLayout")),o(this.figureView,"click",t.hitch(this,"_WindowClickHandler")),o(this.figureView,"WrapperElementMouseMove",t.hitch(this,"_WrapperMouseMoveHandler"))],this.own.apply(this,this._figureViewInteractionListeners))},getFigureProperties:function(){return this.figureModel.getFigureProperties(this._embeddedFigureView)},destroy:function(){this._destroyed||(this._enableModelessInteraction&&T.getInstance().unsubscribe(this.figureModel.getModelessChannel(),"_modelessDataUpdate",this),this._enableInteraction&&T.getInstance().unsubscribe(this.figureModel.getRefreshChannel(),"_refreshFromServer",this),this._paletteController&&this._paletteController.destroyView(),this._promptController&&this._promptController.destroyView(),this._modeManager&&this._modeManager.destroy(),this._modelessManager&&this._modelessManager.destroy(),this._codeGenerator&&this._codeGenerator.destroy(),this._eventHandler&&this._eventHandler.destroy(),this._snapshotManager&&!this._pending&&this._snapshotManager.removeSnapshot(this.figureModel.figureId)),this.inherited(arguments)},setPendingState:function(e){this._pending=e,this.figureView&&this.figureView.setSynchronizedDrawnowState(e)},setRequiredNumberOfAnimationFrames:function(){this.figureView.setRequiredNumberOfAnimationFrames()},getEmbeddedFigureSettingState:function(){return this._embeddedFigureView},getFigureModel:function(){return this.figureModel},getFigureView:function(){return this.figureView},getFigureURI:function(){return this.getFigureView().getFigureURI()},feval:function(e,t){T.getInstance().publish(this.figureModel.getInteractionChannel(),JSON.stringify({method:e,args:t}))},printToFile:function(e){var i=new r,n=t.hitch(this,(function(e){T.getInstance().unsubscribe(this.figureModel.getInteractionChannel()+"/printed",n,this),i.resolve(e)}));return T.getInstance().subscribe(this.figureModel.getInteractionChannel()+"/printed",n,this),T.getInstance().publish(this.figureModel.getInteractionChannel(),JSON.stringify({method:"printToFile",args:e})),i},_modelessDataUpdate:function(e){figureInteractionData=e.data.iFigureInteractionData,this.isEmptyArray(figureInteractionData)&&(figureInteractionData=null),figureInteractionData&&this._modelessManager.handleModelessEvent(figureInteractionData),this._setDocumentFocusIfNeeded()},_refreshFromServer:function(e){var t=e.data.iFigureInteractionData,i=e.data.iFigureMetaData,n=e.data.iFigureUndoRedoData,o=e.data.iServerID;this.isEmptyArray(n)&&(n=null),this.isEmptyArray(i)&&(i=null),this.isEmptyArray(t)&&(t=null),this._refresh(t,i,n,o)},setEmbeddedOutputsView:function(e){this.figureView&&this.figureView.setEmbeddedOutputsView(e)},shouldCaptureAnimationFrames:function(e){if(this.figureView&&this.figureView._graphicsView)if(e){this.figureView.setArrOfURIandTimeToEmpty();var t=this.figureView.animationListener.bind(this.figureView);this.figureView._graphicsView.setPictureListener(t)}else this.figureView._graphicsView.setPictureListener(null)},_refresh:function(e,t,i,n){if("string"!=typeof n||""===n||this.figureView.getServerID()===n){if(i)return this._setFigureUndoRedoData(t,i,e),this.emit("FigureStateChanged",{figureProperties:this.figureModel.getFigureProperties(this._embeddedFigureView)}),void this.emit("InteractionEventProcessed",{});t&&(this._setFigureMetaData(t),this._setFigureInteractionData(null),this._updateFigureState()),e&&(this._setFigureInteractionData(e),"subplot"===e.iAtomicActionID?this.emit("FigureStateChanged",{figureProperties:this.figureModel.getFigureProperties(this._embeddedFigureView)}):this.emit("InteractionEventProcessed",{})),this._modelessManager&&this._modelessManager.forceCommit(),this._setDocumentFocusIfNeeded()}else this._replaceWebCanvas(n)},_setFigureUndoRedoData:function(e,t,i){this._setFigureMetaData(e),this.figureModel.setUndoRedoData(t),this._setFigureInteractionData(i),this._updateFigureState(),this._modelessManager&&this._modelessManager.forceRollback(),this._setDocumentFocusIfNeeded()},_setFigureMetaData:function(e){this.figureView.deleteRunCodePrompt(),this.figureModel.setFigureModelState(e)},_updateFigureState:function(){this._paletteController.setState(this.figureModel),this._promptController.setState(this.figureModel),this._modeManager.isInSpringLoadedMode()?(this._paletteController.disablePalette(),this._paletteDisabled=!0):(this._paletteController.enablePalette(),this._paletteDisabled=!1)},_updateCodeGen:function(){var e=this.figureModel._interactionData;if(e){var t=e.iClearCode,i=e.iShowCode||""!==e.iAtomicActionID,n=e.iCode;Array.isArray(n)&&(n=this._codeGenerator.updateUsedVariableNames(n)),this._codeGenerator.updateWidget(this.figureView.getGraphicsViewContainerNode(),n,t,i)}},_setDocumentFocusIfNeeded:function(){null===l.curNode&&this._focusService.setFocus()},_setupInteractionEvents:function(e){var t=this;this.own(e.on("interaction",(function(e){t.feval(e.fcn,e.args),e.args&&void 0!==e.args.mode&&!t._modeManager.isSpringLoadedMode(e.args.mode)&&t._modeManager.setModeFromClient(e.args.mode)})))},_WindowClickHandler:function(e){this._isValidFigure()&&this._modelessManager&&this._modelessManager.WindowMouseClick(this._getMouseEventData(e))},_WrapperMouseMoveHandler:function(e){this._isValidFigure()&&this._modelessManager&&this._modelessManager.WindowButtonMouseMove(this._getMouseEventData(e))},_WindowDblClickHandler:function(e){this.figureModel.getMode()&&""!==this.figureModel.getMode()&&(this._isValidFigure()&&this._modeManager.WindowMouseDblClick(this._getMouseEventData(e)),i.stop(e))},_WindowContextMenuEventHandler:function(e){if(this.figureModel.getMode()&&""!==this.figureModel.getMode()){this._isValidFigure()&&this._modeManager.updateContextMenuEventData(this._getMouseEventData(e))}},undockFigure:function(){T.getInstance().publish(this.figureModel.getInteractionChannel(),JSON.stringify({method:"launchFigure",args:{editorId:this.figureModel.editorId}}))},addInteractionEventProcessedListener:function(e){this.own(o(this,"InteractionEventProcessed",e))},addFigureStateChangedListener:function(e){this.own(o(this,"FigureStateChanged",e))},addFigureURIChangedListener:function(e){this.own(o(this,"FigureURIChanged",e))},addUpdateLayoutListener:function(e){this.own(o(this,"updateLayout",e))},addWindowMouseListener:function(e,t){this.addCustomEventListener(e,t)},addCustomEventListener:function(e,t){this.own(o(this,e,t))},_isValidFigure:function(){return this._isEnabledFigure()&&(this._isInlineFigure()||this._isRHSSelectedFigure())},_isEnabledFigure:function(){var e=this.figureView.getWrapperNode();return e.parentElement&&!n.contains(e,"stale_output")},_isInlineFigure:function(){var e=this.figureView.getWrapperNode();return e.parentElement&&n.contains(e.parentElement,"inlineElement")},_isRHSSelectedFigure:function(){return this.figureView.getWrapperNode().parentElement&&this._focusedFigure&&this._focusedFigure.figureId&&this.figureModel.figureId===this._focusedFigure.figureId},_isInsideAxes:function(e,t){return this.figureView.isInsideAxes(e,t,this._modeManager._cursorHotSpot)},toggleFigureComponents:function(){this.figureView.hasRenderingSize()?(this._codeGenerator.enable(),this._paletteDisabled||this.figureView.hasDisabledInteractions||this._paletteController.enablePalette()):(this._isValidFigure()&&this._codeGenerator.disable(),this._paletteController.disablePalette())},addInteractionFeatures:function(){if(this._createCodeGenWidget(),this._eventHandler=new C,this._actionManager=new v({figureView:this.figureView,figureModel:this.figureModel,codeGenerator:this._codeGenerator}),this._actionManager.setUndoRedoManager(this._figureUndoRedoManager),this._modelessManager=new p({figureView:this.figureView,figureModel:this.figureModel,codeGenerator:this._codeGenerator}),this._modelessManager.setUndoRedoManager(this._figureUndoRedoManager),this._modelessManager.setEventHandler(this._eventHandler),this._modeManager=new f({figureView:this.figureView,figureModel:this.figureModel,codeGenerator:this._codeGenerator,actionService:this._actionService,contextMenuGenerator:this._contextMenuGenerator,contextMenuContributor:this._contextMenuContributor}),this._modeManager.setUndoRedoManager(this._figureUndoRedoManager),this._modeManager.setCursorImagePath(this._IMAGE_PATH),this._modeManager.setEventHandler(this._eventHandler),this._modelessManager.setCursorImagePath(this._IMAGE_PATH),this._setupInteractionEvents(this._modeManager),this._setupInteractionEvents(this._modelessManager),this.own(o(this._modeManager,"startEditing",t.hitch(this,(function(e){this.emit("startEditing",e)})))),this.own(o(this._modelessManager,"startEditing",t.hitch(this,(function(e){this.emit("startEditing",e)})))),this.addInteractionEventProcessedListener(t.hitch(this,(function(){this._eventHandler.processNextPendingEvent()}))),this._paletteController=new g({figureView:this.figureView,figureModel:this.figureModel}),this._setupInteractionEvents(this._paletteController),this._promptController=new m({figureView:this.figureView,figureModel:this.figureModel}),this._setupInteractionEvents(this._promptController),this.addWindowMouseListener("LayoutResize",t.hitch(this,"_handleLayoutResizeEvent")),this.addWindowMouseListener("InlineViewLayout",t.hitch(this,"_inlineViewLayoutEventHandler")),this.addWindowMouseListener("WindowButtonMouseDown",t.hitch(this,(function(e){this._isEnabledFigure()&&(this._paletteController._handleMouseClick(this._getMouseEventData(e)),this._promptController._handleMouseClick(e),this._isValidFigure()&&(this._modeManager.WindowButtonMouseDown(this._getMouseEventData(e)),this._modelessManager.WindowButtonMouseDown(this._getMouseEventData(e))))}))),this.addWindowMouseListener("WindowButtonMouseWheel",t.hitch(this,"handleWheelEvent")),this.addWindowMouseListener("WindowButtonMouseEnter",t.hitch(this,(function(e){this.toggleFigureComponents(),this._codeGenerator.changeCodeGenLayout(this.figureView.getFigureWidth()),this._isValidFigure()&&(e=this._getMouseEventData(e),this._paletteController._handleMouseEnter(e),this._promptController._handleMouseEnter(e))}))),this.addWindowMouseListener("WindowButtonMouseLeave",t.hitch(this,(function(e){e=this._getMouseEventData(e),this._paletteController._handleMouseLeave(e),this._modelessManager._handleMouseLeave(e)}))),this.addWindowMouseListener("_WrapperElementMouseLeave",t.hitch(this,(function(e){this._paletteController._handleMouseLeave(e),this._promptController._handleMouseLeave(e)}))),this.addWindowMouseListener("WindowButtonMouseMove",(function(e){this._isValidFigure()&&(e=this._getMouseEventData(e),this._modelessManager._handleMouseMove(e),this._modeManager.WindowButtonMouseMove(e),this._paletteController._handleMouseMove(e),this._promptController._handleMouseMove(e))})),!this.figureView.hasCreatedPlaybackControls()){var e=new _;e.setFigureViewAndModel(this.figureView,this.figureModel),this.figureView.setPlaybackControls(e),this.figureView.setPaletteAndPromptController(this._paletteController,this._promptController)}T.getInstance().subscribe(this.figureModel.getRefreshChannel(),"_refreshFromServer",this),this._enableInteraction=!0},setAnimatedFigureFrameInMap:function(e){this.figureView.setAnimatedFigureFrameInMap(e)},getAnimatedFigureFrameInMap:function(){return this.figureView.getAnimatedFigureFrameInMap()},handleWheelEvent:function(e){var t=this._getMouseEventData(e);this._isValidFigure()&&t.MouseOverAxes&&t.MouseOverAxes.isInside&&(this._modeManager.WindowButtonMouseWheel(t),this._modelessManager.WindowButtonMouseWheel(t))},_handleLayoutResizeEvent:function(e){this.toggleFigureComponents(),this._codeGenerator.changeCodeGenLayout(this.figureView.getFigureWidth()),this._modeManager.switchLayouts(),this._modelessManager.forceCommit(),this.figureView.recalculateAxesPositionForPlaybackControls(),this.figureView.shouldHidePlaybackControls()},_inlineViewLayoutEventHandler:function(){var e=this.figureView.getWrapperNode();e.parentElement&&n.contains(e.parentElement,"inlineElement")&&this._codeGenerator.changeCodeGenLayout(this.figureView.getFigureWidth()),this.figureView.recalculateAxesPositionForPlaybackControls(),this.figureView.shouldHidePlaybackControls()},setFigureUndoRedo:function(e){this._figureUndoRedoManager=new b({document:e})},_createCodeGenWidget:function(){this._codeGenFactory&&(this._codeGenerator=this._codeGenFactory.createEditorCodeGenerator(),this._codeGenerator.setCodeGenDependencies({output:this._output,outputPositions:this.figureModel.getVisibleAxesPositions()}),this._codeGenerator.setEnablementCondition(t.hitch(this,(function(){return 1===this._getNumberOfOutputsOnLineCallback()})),this._cannotidentifyFigureTooltip))},_setFigureInteractionData:function(e){this.figureModel.setInteractionData(e),this._actionManager.setState(this.figureModel),this._modeManager.setState(this.figureModel),this._modelessManager.setState(this.figureModel),this._updateCodeGen(),e&&e.isFakeCode&&this._codeGenerator.disableUpdateCodeBtn(this._cannotidentifyFigureTooltip)},reconnectView:function(){this.figureView&&this.figureView.reconnectView()},disconnectView:function(){this.figureView&&this.figureView.disconnectView()},setFocusedFigure:function(e){this._focusedFigure=e,this._modelessManager&&this._modelessManager.setFocusedFigure(e)},isEmptyArray:function(e){return Array.isArray(e)&&0==e.length}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(211),i(210),i(222),i(257),i(212),i(230),i(206),i(248),i(204),i(217),i(213),i(225),i(208),i(232),i(716),i(681),i(2024),i(455)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return e([o,s,_],{_figureId:"",_editorId:"",_figureUri:null,_imgElement:null,_wrapperElement:null,_runInfoElement:null,_figureSize:null,_sceneWidgetAttachedHandler:null,_serverID:"",_isDisconnected:!1,_figureContainerPane:null,_graphicsView:null,_playbackControls:null,_embeddedOutputsView:null,_hasRequiredNumberOfAnimationFrames:!1,_paletteController:null,_promptController:null,_documentView:null,_viewThreshold:{Width:200,Height:100},_isFirstOutput:null,_TOLERANCE:200,_MAXWIDTH:800,_MAXHEIGHT:800,_cachedBlankImageSrc:null,_figureViewInteractionListeners:null,_playbackFigureInteractionListeners:null,_synchronizedDrawnowState:!1,_arrOfURIandTime:[],_trackFigureAnimation:new Map,_animationTimeout:null,_didUserPause:!1,_finalImageElement:null,_animationSpeed:1,_figureImageElement:null,hasDisabledInteractions:!1,_REMOTE_CLASSIFIER_ROOT:"FEvalClearDrawnowSync",constructor:function(e,t,n,o){if(this._wrapperElement=i.create("div",{className:"figureElement"}),null!=e&&"number"==typeof e[0]){var r=Math.max(window.innerWidth,this._MAXWIDTH),a=Math.max(window.innerHeight,this._MAXHEIGHT);this._figureSize=this._scaleFigureSize(e,r,a)}this._editorId=t,this._figureId=n,this._graphicsViewFactory=o,this._arrOfURIandTime=[],this._trackFigureAnimation=new Map,this._hasRequiredNumberOfAnimationFrames=!1},reconnectView:function(){this._graphicsView&&this._graphicsView.setSceneChannel(this._serverID),this._isDisconnected=!1},disconnectView:function(){this._graphicsView&&this._graphicsView.setSceneChannel(""),this._isDisconnected=!0},_attachInteractionListeners:function(){if(!this._figureViewInteractionListeners){var e=this;this.showPlaybackControls(),this._figureViewInteractionListeners=[],this._figureViewInteractionListeners.push(l(this._imgElement,c.move,(function(t){e.emit("WindowButtonMouseMove",t)}))),this._figureViewInteractionListeners.push(l(this._imgElement,c.press,(function(t){r.isLeft(t)&&e.emit("WindowButtonMouseDown",t)}))),this._figureViewInteractionListeners.push(l(this._imgElement,c.release,(function(t){r.isLeft(t)&&e.emit("WindowButtonMouseUp",t)}))),this._figureViewInteractionListeners.push(l(this._imgElement,c.enter,(function(t){e.emit("WindowButtonMouseEnter",t)}))),this._figureViewInteractionListeners.push(l(this._wrapperElement,c.leave,(function(t){e.emit("WrapperElementMouseLeave",t)}))),this._figureViewInteractionListeners.push(l(this._imgElement,c.leave,(function(t){e.emit("WindowButtonMouseLeave",t)}))),this._figureViewInteractionListeners.push(l(this._imgElement,"dblclick",(function(t){r.isLeft(t)&&e.emit("dblclick",t)}))),this._figureViewInteractionListeners.push(l(this._wrapperElement,"click",(function(t){r.isLeft(t)&&e.emit("click",t)}))),this._figureViewInteractionListeners.push(l(this._wrapperElement,c.move,(function(t){e.emit("WrapperElementMouseMove",t)}))),this._figureViewInteractionListeners.push(l(this._imgElement,"contextmenu",(function(t){e.emit("contextmenu",t)}))),this._figureViewInteractionListeners.push(l(this._imgElement,m.MOUSEWHEEL,(function(t){e.emit("mousewheel",t)}),!0)),this._figureViewInteractionListeners.push(l(this._imgElement,"dragstart",(function(e){dojo.stopEvent(e)}),!0)),this._figureViewInteractionListeners.push(l(this._imgElement,"dragend",(function(e){dojo.stopEvent(e)}),!0)),this.own.apply(this,this._figureViewInteractionListeners)}},createImageNode:function(e,t,n){var o={className:"figureImage figureContainingNode",src:e};this._imgElement=i.create("img",o,this._wrapperElement),this._figureSize&&this._figureSize.length>0&&h.set(this._imgElement,{width:this._figureSize[0]+"px"}),this._figureContainerPane=this._imgElement,this._attachInteractionListeners()},notifyGUIImageCreated:function(e,t){this._imgElement&&(this._imgElement.onload=d.hitch(this,(function(){b.getInstance().publish("/graphics/guiclientready",{Event:"NewClient",EditorID:e,FigureID:t}),this._imgElement.onload=void 0})))},createWebGraphicsNode:function(e,t){this._figureViewInteractionListeners=null;var o=i.create("div",null);if(t){var r=d.clone(t);this._replaceFigureContainingDOMNode(r)}else{if(this._cachedBlankImageSrc&&this._cachedBlankImageSrc.width===this._figureSize[0]&&this._cachedBlankImageSrc.height===this._figureSize[1])var a=i.create("img",{src:this._cachedBlankImageData.src},this._wrapperElement);else{var s=document.createElement("canvas");s.width=this._figureSize[0],s.height=this._figureSize[1],this._cachedBlankImageData={src:s.toDataURL("image/png"),width:this._figureSize[0],height:this._figureSize[1]};a=i.create("img",{src:this._cachedBlankImageData.src},this._wrapperElement)}n.add(a,"figureContainingNode"),h.set(a,"max-width","100%")}if(n.add(o,"figureContainingNode"),h.set(o,{width:this._figureSize[0]+"px",height:"","max-width":"100%",display:"inline-block"}),"string"==typeof e){var l=e;this._serverID=l;var c=this._graphicsViewFactory.createGraphicsView(o);c.setInteractionEnabled(!1),c.startup(),this._createSceneWidgetAttachedHandler(c),c.set("ServerId",l),this._graphicsView=c,this._isDisconnected&&this.disconnectView(),this._addGraphicsCompleteHandler(this._figureSize,c,o)}else i.place(e.domNode,o,"only"),this._addGraphicsCompleteHandler(this._figureSize,e,o)},_createSceneWidgetAttachedHandler:function(e){this._sceneWidgetAttachedHandler=e.on("attached",(function(t){var i="/graphics/"+e.get("ServerId")+"/event";if(this._imgElement)b.getInstance().publish(i,{Event:"NewClient"});else var n=e.onEvent("graphicscomplete",d.hitch(this,(function(){b.getInstance().publish(i,{Event:"NewClient"}),n.remove()})))}))},_addGraphicsCompleteHandler:function(e,i,o){i.onEvent("graphicscomplete",d.hitch(this,(function(){t.isDescendant(o,this._wrapperElement)||this._replaceFigureContainingDOMNode(o),this._figureContainerPane=o,this._imgElement=p("img",i.domNode)[0],this._imgElement&&(n.add(this._imgElement,"figureImage"),this._attachInteractionListeners(),this._serverID=i.get("ServerId"),this.emit("refreshURI",{}))})))},getServerID:function(){return this._serverID},setSynchronizedDrawnowState:function(e){this._synchronizedDrawnowState=e},_registerRemoteService:function(){g.registerResponseHandler("FEvalResponse:"+this._REMOTE_CLASSIFIER_ROOT+this._figureId,this._handleEvalResponse,this),g.registerFaultHandler("FEval:"+this._REMOTE_CLASSIFIER_ROOT+this._figureId,this._handleFaultResponse,this)},_deregisterRemoteService:function(){g.deregisterResponseHandler("FEvalResponse:"+this._REMOTE_CLASSIFIER_ROOT+this._figureId),g.deregisterFaultHandler("FEval:"+this._REMOTE_CLASSIFIER_ROOT+this._figureId)},_handleEvalResponse:function(e,t){this._deregisterRemoteService(),this._synchronizedDrawnowState=!1,this.disconnectView(),this._graphicsView.destroy(),t.resolve()},_handleFaultResponse:function(e,t){t.reject(e)},destroy:function(){this.inherited(arguments),this.destroyPlaybackControls(),this._runInfoElement&&this._runInfoElement.destroyView(),this._graphicsView&&(this._synchronizedDrawnowState?(this._registerRemoteService(),g.sendMessage({FEval:{function:"matlab.internal.editor.FigureManager.setDrawnowSyncEnabledForFigureID",arguments:[this._editorId,this._figureId,!1],nargout:0,priority:1,dequeMode:"ppe"}},new a,this._REMOTE_CLASSIFIER_ROOT+this._figureId)):(this.disconnectView(),this._graphicsView.destroy()))},destroyPlaybackControls:function(){this._playbackControls&&this._playbackControls.hasCreatedPlaybackControls()&&(this.hasDisabledInteractions&&(this._figureViewInteractionListeners=null,this._attachInteractionListeners(),this._clearPreventPlaybackOutputDefaultEventsHandlers(),this.hasDisabledInteractions=!1,this._paletteController&&this._paletteController.enablePalette()),this._playbackControls.destroyPlaybackControls(),this._playbackControls=null)},hasCreatedPlaybackControls:function(){return!(!this._playbackControls||!this._playbackControls.hasCreatedPlaybackControls())},showRunCodePrompt:function(){this._runInfoElement||(this._runInfoElement=new v,this._runInfoElement.setTarget(this._wrapperElement))},deleteRunCodePrompt:function(){this._runInfoElement&&(this._runInfoElement.destroy(),this._runInfoElement=null)},getWrapperNode:function(){return this._isFirstOutput=null,this._wrapperElement},getDomNode:function(){return this._imgElement},getGraphicsViewContainerNode:function(){return this._figureContainerPane?this._figureContainerPane:null},getFigureURI:function(){return this._imgElement?this._imgElement.src:""},getPosition:function(){return u.position(this.getDomNode())},getFigureWidth:function(){return this._figureSize[0]},_scaleFigureSize:function(e,t,i){return e[0]>t&&e[0]>0&&(e[1]=t/e[0]*e[1],e[0]=t),e[1]>i&&e[1]>0&&(e[0]=i/e[1]*e[0],e[1]=i),e},getFigureSize:function(){return this._figureSize},setDocumentView:function(e){this._documentView=e,this.setupResizeAspect(),this._setupLayoutChangeAspect()},setupResizeAspect:function(){this.own(f.after(this._documentView,"onResize",d.hitch(this,(function(e){this.emit("LayoutResize",{})}))))},_setupLayoutChangeAspect:function(){this.own(f.after(this._documentView,"onLayoutChange",d.hitch(this,(function(e){this.emit("InlineViewLayout",{})}))))},hasRenderingSize:function(){var e=!1;if(this._wrapperElement&&t.isDescendant(this._wrapperElement,document.body)){var i=u.position(this._wrapperElement);e=this._viewThreshold.Width<i.w&&this._viewThreshold.Height<i.h}return e},getAxesPlotBox:function(e){var t=this.getPosition(),i=t.h-(e[1]+e[3])*t.h+t.y,n=t.h-e[1]*t.h+t.y,o=(e[0]+e[2])*t.w+t.x;return{xLow:e[0]*t.w+t.x,xHigh:o,yLow:i,yHigh:n}},isInsideAxes:function(e,t,i){var n=this.getAxesPlotBox(e),o=null;void 0!==t.clientX&&null!==t.clientX?o={x:t.clientX,y:t.clientY}:void 0!==t.x&&null!==t.x&&(o={x:t.x,y:t.y});var r=o.x+i[0],a=o.y+i[1],s=a>n.yLow&&a<n.yHigh&&r>n.xLow&&r<n.xHigh;return{isInside:s,axesPlotBox:s?n:{}}},isInsideLabel:function(e,t,i){var n=this.getAxesPlotBox(i),o=this.getEventPosition(e);return{isInside:o.y>n.yLow&&o.y<n.yHigh&&o.x>n.xLow&&o.x<n.xHigh}},isInsideAnnotations:function(e,t){var i=this.getPosition(),n=[t[0]*i.w,t[1]*i.h,t[2]*i.w,t[3]*i.h],o=this.getEventPosition(e);o.x=o.x-i.x,o.y=o.y-i.y;var r=n[0]*(n[3]-o.y),a=n[2]*(o.y-n[1]),s=o.x*(n[1]-n[3]);return{isInside:Math.abs(r+a+s)/2<this._TOLERANCE}},_replaceFigureContainingDOMNode:function(e){var t=p(".figureContainingNode",this._wrapperElement);t.length>0?i.place(e,t[0],"replace"):i.place(e,this._wrapperElement,"only")},isFigureInline:function(){var e=this.getWrapperNode();return e.parentElement&&n.contains(e.parentElement,"inlineElement")},setArrOfURIandTimeToEmpty:function(){this._arrOfURIandTime=[]},_setAnimationMap:function(e,t,i){var n={};n.index=t,n.arrOfURIandTime=i,this._trackFigureAnimation.set(e,n)},setAnimatedFigureFrameInMap:function(e){this._trackFigureAnimation=e},getAnimatedFigureFrameInMap:function(){return this._trackFigureAnimation},animationListener:function(e,t){this._arrOfURIandTime.push({imageURI:e,timeStamp:t}),this._setAnimationMap(this._figureId,0,this._arrOfURIandTime)},_setAnimationSpeed:function(e){this._animationSpeed=e},exportAnimations:function(){g.sendMessage({FEval:{function:"matlab.internal.editor.ExportAnimationTo",arguments:[this._trackFigureAnimation.get(this._figureId)],nargout:0}})},_disableInteractions:function(){if(!this._hasDisabledInteractions){if(this._figureViewInteractionListeners)for(let e=0;e<this._figureViewInteractionListeners.length;e++)this._figureViewInteractionListeners[e].remove();this._addPreventPlaybackOutputDefaultEventsHandlers(),this._paletteController&&this._paletteController.disablePalette(),this._promptController&&this._promptController.setVisible(!1),this.hasDisabledInteractions=!0}},_addPreventPlaybackOutputDefaultEventsHandlers:function(){this._clearPreventPlaybackOutputDefaultEventsHandlers(),this._playbackFigureInteractionListeners=[],this._playbackFigureInteractionListeners.push(l(this._imgElement,c.press,(function(e){dojo.stopEvent(e)}))),this.own.apply(this,this._playbackFigureInteractionListeners)},_clearPreventPlaybackOutputDefaultEventsHandlers:function(){if(this._playbackFigureInteractionListeners)for(let e=0;e<this._playbackFigureInteractionListeners.length;e++)this._playbackFigureInteractionListeners[e].remove();this._playbackFigureInteractionListeners=null},shouldHidePlaybackControls:function(){if(this._playbackControls&&this._playbackControls.hasCreatedPlaybackControls()){var e=this.getPosition().w,t=this.getPosition().h;e<300||t<150?this._playbackControls.hidePlaybackControls():this._playbackControls.displayPlaybackControls()}},setEmbeddedOutputsView:function(e){this._embeddedOutputsView=e},_replayAnimationFrames:function(e){var t=e.currentTarget;h.set(t,{display:"none"});var i=dojo.query(".pauseButton",t.parentNode);h.set(i[0],{display:"block"});var n=this;this._figureImageElement=dojo.query(".figureImage",this.getWrapperNode()),this._disableInteractions();var o=n._trackFigureAnimation.get(n._figureId),r=o.arrOfURIandTime;o.index==r.length&&n._setAnimationMap(n._figureId,0,r),function e(){var o=n._trackFigureAnimation.get(n._figureId);if(o){var r=o.arrOfURIandTime,a=o.index;a<n._playbackControls.getMaxSliderValue()?(dojo.attr(n._figureImageElement[0],"src",r[a].imageURI),n._animationTimeout=setTimeout(e,32/n._animationSpeed),a++,n._playbackControls.changeSliderValue(a)):(dojo.attr(n._figureImageElement[0],"src",n._finalImageElement),h.set(i[0],{display:"none"}),h.set(t,{display:"block"}),a=0,n.hasDisabledInteractions&&(n._figureViewInteractionListeners=null,n._attachInteractionListeners(),n._clearPreventPlaybackOutputDefaultEventsHandlers(),n._paletteController.enablePalette(),n.hasDisabledInteractions=!1)),n._didUserPause&&(n._didUserPause=!1,clearTimeout(n._animationTimeout)),n._setAnimationMap(n._figureId,a,r)}}()},changeAnimationSpeed:function(e){this._animationSpeed=e},onSliderChange:function(e,t){this._disableInteractions(),this._figureImageElement||(parentNode=e.domNode.parentNode.parentNode,this._figureImageElement=dojo.query(".figureImage",this.getWrapperNode()));var i=this._trackFigureAnimation.get(this._figureId).arrOfURIandTime;t<this._playbackControls.getMaxSliderValue()?dojo.attr(this._figureImageElement[0],"src",i[t].imageURI):this.hasDisabledInteractions&&(dojo.attr(this._figureImageElement[0],"src",this._finalImageElement),t=i.length),this._setAnimationMap(this._figureId,t,i),t>=this._playbackControls.getMaxSliderValue()&&this.hasDisabledInteractions&&(this._figureViewInteractionListeners=null,this.hasDisabledInteractions=!1,this._attachInteractionListeners(),this._clearPreventPlaybackOutputDefaultEventsHandlers(),this._paletteController.enablePalette())},_pauseAnimation:function(e){var t=e.currentTarget;h.set(t,{display:"none"});var i=dojo.query(".playButton",t.parentNode);h.set(i[0],{display:"block"}),this._didUserPause=!0},setPlaybackControls:function(e){this._playbackControls=e},setRequiredNumberOfAnimationFrames:function(){this._hasRequiredNumberOfAnimationFrames=!0},setPaletteAndPromptController:function(e,t){this._paletteController=e,this._promptController=t},showPlaybackControls:function(){if(this._playbackControls){var e=this._trackFigureAnimation.get(this._figureId);if(e&&(this._hasRequiredNumberOfAnimationFrames||e.arrOfURIandTime.length>9)&&!this.hasCreatedPlaybackControls()){this._playbackControls.createPlaybackControls();var t=dojo.query(".figureImage",this.getWrapperNode());null==this._finalImageElement&&t[0]&&(this._finalImageElement=t[0].src),this._embeddedOutputsView&&this._embeddedOutputsView.outputChanged(),this.shouldHidePlaybackControls()}}},recalculateAxesPositionForPlaybackControls:function(){this.hasCreatedPlaybackControls()&&this._playbackControls.setPlaybackLeftPosition()},totalNumberOfAnimationFrames:function(){var e=this._trackFigureAnimation.get(this._figureId);if(e&&e.arrOfURIandTime.length>1)return e.arrOfURIandTime.length-1},hidePlaybackControls:function(){this._playbackControls&&this._playbackControls.hidePlaybackControls()},codeGenAttached:function(){var e=this._trackFigureAnimation.get(this._figureId);e&&e.arrOfURIandTime.length>1&&this.hasCreatedPlaybackControls()&&(this.destroyPlaybackControls(),this._trackFigureAnimation.delete(this._figureId))},setAltText:function(e){var t=p(".figureContainingNode",this._wrapperElement);t&&t.length>0&&t[0].setAttribute("alt",e)},getAltText:function(){var e=p(".figureContainingNode",this._wrapperElement);return e&&e.length>0?e[0].getAttribute("alt"):""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1445),i(4719),i(4720),i(4721)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1445)],o=i.dj.d(n,(function(e,t){return e([t],{_zoomDirection:null,_init:function(e){this.inherited(arguments),e.direction&&(this._zoomDirection=e.direction)},notify:function(e,t){var i=t;i.elementEvent=e,i.mode=t.mode,i.direction=this._zoomDirection,this.emit(e,i)},setState:function(e){void 0!==e.mode&&void 0!==e.direction&&(e.mode!==this._mode||e.direction!==this._zoomDirection?this.isStateSet=!1:this.isStateSet=!0,this.setStyle(this.isStateSet))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(1445)],o=i.dj.d(n,(function(e,t,i){return e([i],{setState:function(e){if(this.inherited(arguments),void 0!==e.is2D){var i=0===e.is2D;!0===i?t.add(this.domNode,"showButton"):!1===i&&t.remove(this.domNode,"showButton")}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(217),i(213),i(204),i(257),i(206),i(411),i(2027),i(2028)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([s,l,c],{constructor:function(e){e&&this._init(e)},_init:function(e){e.iconClass&&(this.baseClass=e.iconClass),e.action&&(this._action=e.action),e.tooltip?this.setToolTipText(e.tooltip):this.setToolTipText(this._action.replace("Action.",""))},startup:function(){this.inherited(arguments),this.createToolTip(this.domNode),this.createMouseListeners(this.domNode),t.add(this.domNode,"palettebutton")},onClick:function(){this.notify(this._elementEvents.elementClicked,{action:this._action},this.direction)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(230),i(217),i(213),i(206),i(246),i(681),i(1446),i(4723),i(4724)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([i,n,l],{_figureView:null,_figureModel:null,_textInputElement:null,_editedLegendEntryIndex:null,_labelAxesIndex:null,_editType:null,_undoRedoManager:null,_editedAnnotation:null,_codeGen:null,_chartHandler:null,_eventHandler:null,_cursorImagePath:null,_chartClicked:!1,_TITLE_EDITED:"TITLE_EDITED",_XLABEL_EDITED:"XLABEL_EDITED",_YLABEL_EDITED:"YLABEL_EDITED",_LEGEND_EDITED:"LEGEND_EDITED",_ANNOTATION_EDITED:"ANNOTATION_EDITED",_MODELESS_INTERACTION:"modeLessInteractionCallback",_textFieldBeingEdited:!1,_MATLAB_returned:!0,_annotationMouseDownEvent:null,_focusedFigure:null,constructor:function(e){this._figureView=e.figureView,this._figureModel=e.figureModel,this._codeGen=e.codeGenerator},setEventHandler:function(e){this._eventHandler=e},handleModelessEvent:function(e){this._MATLAB_returned=!0,e.ilegendTextPosition&&e.iLegendEntryString&&e.iLegendEntryIndex&&(!Array.isArray(e.ilegendTextPosition)||0!=e.ilegendTextPosition.length)&&this.showTextEditBoxForLegend(e.iLegendEntryIndex,e.ilegendTextPosition,e.iLegendEntryString),e.editedAnnotationType&&""!==e.editedAnnotationType&&this._initAnnotation(e.editedAnnotationType,e.editedAnnotationPosition,e.editedAnnotationText)},WindowButtonMouseMove:function(e){this._updateMouseCursor(e)},_isValidMouseEvent:function(e){return e.MouseOverAxes&&(e.MouseOverAxes.isInside||e.isMouseOverChart)&&""===this._figureModel.getMode()},_handleMouseMove:function(e){this._figureView.isFigureInline()&&!this._isFigureFocused()||this._editType||(!this._isValidMouseEvent(e)||e.isInsideAnnotation||e.isInsideTextAnnotation?this._handleMouseLeave(e):(this._initChartHandlerIfNeeded(),this._chartHandler.WindowMouseMoveHandler(e)))},_handleMouseLeave:function(e){this._initChartHandlerIfNeeded(),this._chartHandler.WindowMouseLeaveHandler(e)},_initChartHandlerIfNeeded:function(){null===this._chartHandler&&(this._chartHandler=new u(this._figureView,this._figureModel,this._eventHandler,this._cursorImagePath,this._codeGen),this.own(this._chartHandler.on("CHART_INTERACTION",t.hitch(this,(function(e){this.emit("interaction",e),"heatmap"===e.args.chartType&&this._insertFigureInteractionsToUndoRedo({type:e.args.type,interactionType:this._MODELESS_INTERACTION})})))))},WindowButtonMouseDown:function(e){if(e.isInsideAnnotation&&""===this._figureModel.getMode()){if(this._MATLAB_returned){if(this._editedAnnotation&&null!==this._editedAnnotation._annotationElement)return;e.editedAnnotation=!0,this.notify("AnnotationSelection",e),this._textFieldBeingEdited=!1,this._MATLAB_returned=!1,this._annotationMouseDownEvent=e,s.stop(e)}}else this._isValidMouseEvent(e)&&!e.isInsideAnnotation&&(this._initChartHandlerIfNeeded(),this._chartHandler.WindowMouseDownHandler(e))},WindowButtonMouseWheel:function(e){if(this._isValidMouseEvent(e)){if(this._figureView.isFigureInline()&&!this._isFigureFocused())return;this._initChartHandlerIfNeeded(),this._chartHandler.WindowMouseWheelHandler(e)}},WindowMouseClick:function(e){if(""===this._figureModel.getMode())if(e.isInsideLegend&&this._MATLAB_returned&&(this._labelAxesIndex=e.labelAxesIndex,this._MATLAB_returned=!1,this.notify("WindowMouseClick",e),s.stop(e)),e.isInsideTextAnnotation){if(this._MATLAB_returned){if(this._editedAnnotation&&null!==this._editedAnnotation._annotationElement)return;e.editedAnnotation=!0,this.notify("AnnotationSelection",e),s.stop(e),this._MATLAB_returned=!1,this._textFieldBeingEdited=!0,this.emit("startEditing",e)}}else if(e.isInsideTitle||e.isInsideXLabel||e.isInsideYLabel){if(null!==this._textInputElement)return;this._labelAxesIndex=e.labelAxesIndex;var t="",i="",n="";e.isInsideTitle?(t=this._TITLE_EDITED,i=this._figureModel.getTitlePositions()[e.labelAxesIndex],n=this._figureModel.getTitles()[e.labelAxesIndex]):e.isInsideXLabel?(t=this._XLABEL_EDITED,i=this._figureModel.getXLabelPositions()[e.labelAxesIndex],n=this._figureModel.getXLabels()[e.labelAxesIndex]):e.isInsideYLabel&&(t=this._YLABEL_EDITED,i=this._figureModel.getYLabelPositions()[e.labelAxesIndex],n=this._figureModel.getYLabels()[e.labelAxesIndex]),this._showTextBoxForLabel(i,n,t),s.stop(e)}},forceCommit:function(e){this._textInputElement&&this._textInputElement.isVisible()&&(this._doCommit(this._textInputElement.get("value")),this._doReset()),this.commitPendingAnnotation()},forceRollback:function(){this._textInputElement&&this._textInputElement.isVisible()&&this._doReset()},showTextEditBoxForLegend:function(e,t,i){e&&(this._editedLegendEntryIndex=e),this._showTextBoxForLabel(t,i,this._LEGEND_EDITED)},setCursorImagePath:function(e){this._cursorImagePath=e},setState:function(e){this._chartHandler&&this._chartHandler.setState(e)},_updateMouseCursor:function(e){""===this._figureModel.getMode()?e.isInsideTextAnnotation||null===this._textInputElement&&(e.isInsideLegend||e.isInsideTitle||e.isInsideXLabel||e.isInsideYLabel)?r.set(this._figureView._wrapperElement,"cursor","text"):e.isInsideAnnotation?r.set(this._figureView._wrapperElement,"cursor","pointer"):r.set(this._figureView._wrapperElement,"cursor","default"):r.set(this._figureView._wrapperElement,"cursor","default")},_showTextBoxForLabel:function(e,t,i){this._editType=i,this._initTextBox(),this._positionTextBox(e),this._textInputElement.show(),this._textInputElement.setText(t),this._textInputElement.focus(),this._textInputElement.startEditing(),this.emit("startEditing",{})},_initTextBox:function(){this._textInputElement=new c({widgetClass:"legendEdit"}),this.own(a(this._textInputElement,"startEditing",t.hitch(this,(function(e){this.emit("startEditing",e)})))),this._textInputElement.placeAt(this._figureView.getWrapperNode()),this._textInputElement.setTextAlignement("left"),this._addCommitListener(this._textInputElement.domNode),this._textInputElement.START_WIDTH=10,this._textInputElement.setPromptingState(!1)},_addCommitListener:function(e){this.own(a(e,"textcommit",t.hitch(this,(function(e){this._doCommit(e.textValue),this._insertFigureInteractionsToUndoRedo({type:this._editType,newText:e.textValue,entryIndex:this._editedLegendEntryIndex,legendAxesIndex:this._labelAxesIndex,interactionType:this._MODELESS_INTERACTION})}))))},_addAnnotationInteractionListener:function(e){this.own(a(e,"annotationInteraction",t.hitch(this,(function(e){this.emit("interaction",e),this._insertFigureInteractionsToUndoRedo({type:e.type,interactionType:this._MODELESS_INTERACTION})}))))},_doCommit:function(e){var t={fcn:this._MODELESS_INTERACTION,args:{type:this._editType,newText:e,entryIndex:this._editedLegendEntryIndex,legendAxesIndex:this._labelAxesIndex}};this.emit("interaction",t),this._editedLegendEntryIndex=null,this._editType=null},_doReset:function(){this._editedLegendEntryIndex=null,this._textInputElement.stopEditing(),this._removeEditedElement()},_positionTextBox:function(e){var t=this._figureView.getAxesPlotBox(e),i=o.position(this._figureView.getWrapperNode(),!1),n=t.yLow-i.y,a=t.xHigh-i.x-(t.xHigh-t.xLow);t.yHigh-t.yLow>t.xHigh-t.xLow&&(n=(t.yHigh+t.yLow)/2-i.y),r.set(this._textInputElement.domNode,{position:"absolute",left:a+"px",top:n+"px",height:"20px"})},notify:function(e,t){var i=this.getEventPosition(t),n={x:i.x,y:i.y,type:t.type},o={type:e,x:(n=this.convertEventToMatlabRelativeCoords(n,this._figureView.getDomNode())).x,y:n.y,isInsideLegend:t.isInsideLegend,isInsideAnnotation:t.isInsideAnnotation||t.isInsideTextAnnotation},r={fcn:this._MODELESS_INTERACTION,args:o};this.emit("interaction",r),this._editType=null},destroy:function(){this._removeEditedElement(),this._chartHandler&&this._chartHandler.destroy()},_removeEditedElement:function(){this._textInputElement&&(this._textInputElement.destroy(),this._textInputElement=null),this._editedAnnotation&&(this._editedAnnotation.destroy(),this._editedAnnotation=null)},setUndoRedoManager:function(e){this._undoRedoManager=e},_insertFigureInteractionsToUndoRedo:function(e){e.type,this._figureModel.getMode();e.codeGenState={attachCodeGenOnUndo:!1,attachCodeGenOnRedo:!0},this._codeGen&&this._codeGen.isCodeGenAttached()&&(e.codeGenState.attachCodeGenOnUndo=!0),this._undoRedoManager.insertInteractionsForUndoRedo(this._figureModel,e)},_initAnnotation:function(e,t,i){this._editedAnnotation=new d({figureView:this._figureView,figureModel:this._figureModel,type:e,text:i,position:t}),this._addAnnotationInteractionListener(this._editedAnnotation),this._textFieldBeingEdited?this._editedAnnotation.focusTextField():this._editedAnnotation.performMouseDown(this._annotationMouseDownEvent)},commitPendingAnnotation:function(){this._editedAnnotation&&this._editedAnnotation.commitAnnotation()},setFocusedFigure:function(e){this._focusedFigure=e},_isFigureFocused:function(){return this._focusedFigure&&this._focusedFigure.figureId===this._figureModel.figureId}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(230),i(206),i(246),i(681),i(1446),i(2030),i(1449),i(2031),i(2032)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([i,n,a],{_ANNOTATION_EDITED:"ANNOTATION_EDITED",_ANNOTATION_CLEARED:"ANNOTATION_CLEARED",_annotationElement:null,_MODELESS_INTERACTION:"modeLessInteractionCallback",constructor:function(e){var t=e.figureModel,i=e.figureView;switch(e.type){case"lineshape":this._annotationElement=new l(t,i);break;case"arrowshape":this._annotationElement=new c(t,i);break;case"doubleendarrowshape":this._annotationElement=new d(t,i);break;case"textarrowshape":this._annotationElement=new u(t,i)}this._annotationElement.showAffordances(t.getAxesPositions(),i.getWrapperNode(),i.getDomNode()),this._setAnnotationProperties(e.position,e.text)},_setAnnotationProperties:function(e,t){this._addInteractionListener();var i=[e[0]*this._annotationElement._imageNodePosition.w,e[1]*this._annotationElement._imageNodePosition.h,e[2]*this._annotationElement._imageNodePosition.w,e[3]*this._annotationElement._imageNodePosition.h];this._annotationElement.setAnnotationEndPoints([i[0],i[1]],[i[2],i[3]]),this._annotationElement.show(),this._annotationElement.draw(this._annotationElement._anchorPoint,this._annotationElement._endPoint),this._annotationElement._textField&&(this._annotationElement._textField.value=t,this._annotationElement.removeTextFocusListener(),this._annotationElement.doResize()),this._annotationElement._canvas.focus()},performMouseDown:function(e){this._annotationElement.addMouseMoveForExistingAnnotation(e)},focusTextField:function(){this._annotationElement._textField.focus(),this._annotationElement.createFocusTextListener()},_addInteractionListener:function(){this.own(this._annotationElement.on("interaction",t.hitch(this,(function(e){this._emitAnnotationCommit(e)}))))},_emitAnnotationCommit:function(e){if("clearMode"===e.args.type){if(e.args.editType){this._annotationElement.clearWait(),this._annotationElement.destroy();var t={fcn:this._MODELESS_INTERACTION,args:{type:this._ANNOTATION_CLEARED,editType:e.args.editType}};this.emit("annotationInteraction",t)}}else{var i=e.args.configurationData;t={fcn:this._MODELESS_INTERACTION,args:{type:this._ANNOTATION_EDITED,editType:e.args.type,relativePosition:i.relativePosition,editedText:i.text?i.text:""}};this.emit("annotationInteraction",t)}},commitAnnotation:function(){this._annotationElement&&(this._annotationElement.clearWait(),this._annotationElement.hide(!1),this.destroy())},destroy:function(){this._annotationElement&&(this._annotationElement.destroy(),this._annotationElement=null),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(230),i(248),i(206),i(213),i(204),i(246),i(681)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([t,i,l],{_figureView:null,_figureModel:null,_eventHandler:null,_cursorHotSpot:null,_windowMouseUpListener:null,_windowMouseMoveListener:null,_lastMouseDownLocation:null,_currentAxesIndex:null,_cursorImagePath:null,_overChartOrAxes:!1,_MODELESS_INTERACTION:"modeLessInteractionCallback",_CHART_INTERACTION:"CHART_INTERACTION",_codeGen:null,constructor:function(e,t,i,n,o){this._figureView=e,this._figureModel=t,this._eventHandler=i,this._cursorImagePath=n,this._cursorHotSpot=[0,0],this._codeGen=o},setState:function(e){this._figureModel=e},_getMouseEventData:function(e){return this._figureModel.getMouseEventData(e,this._figureView,this._cursorHotSpot)},_checkIfMouseOverInteractiveChart:function(e){var t=this._figureModel.getChartType()[e.MouseOverAxes.Index];return"geobubble"===t||"heatmap"===t||"axes"===t||"geoaxes"===t||"stackedplot"===t},WindowMouseDownHandler:function(e){if(this._checkIfMouseOverInteractiveChart(e)){this._windowMouseMoveListener||(this._windowMouseMoveListener=o.pausable(window,n.move,a.hitch(this,"WindowMouseMoveHandler"))),this._windowMouseMoveListener.resume(),this.removeEventListener(window,"mouseup",this._windowMouseUpListener),this._windowMouseUpListener=a.hitch(this,"WindowMouseUpHandler"),this.addEventListener(window,"mouseup",this._windowMouseUpListener);var t=this;t._eventHandler.processEvent((function(e){t._emitChartInteraction("WindowMousePress",e)}),e),this._currentAxesIndex=e.MouseOverAxes.Index,e.stopPropagation()}this._lastMouseDownLocation=this.getEventPosition(e)},WindowMouseMoveHandler:function(e){if(e=this._getMouseEventData(e),this._overChartOrAxes=e.isMouseOverChart||e.MouseOverAxes.isInside,!this.hasMouseClicked(e,this._lastMouseDownLocation)&&(null!=this._currentAxesIndex||e.MouseOverAxes.Index>-1)){var t=this;e.isDragEvent=this._isDragEvent(e);t._eventHandler.processEvent((function(e){t._emitChartInteraction("WindowMouseMotion",e)}),e)}},WindowMouseLeaveHandler:function(e){if(this._overChartOrAxes){this._overChartOrAxes=!1,e=this._getMouseEventData(e);var t=this;t._eventHandler.processEvent((function(e){t._emitChartInteraction("WindowMouseLeave",e)}),e)}},WindowMouseUpHandler:function(e){e=this._getMouseEventData(e);var t=this;this._codeGen&&this._isDragEvent(e)&&this._codeGen.attachWhenReady(this._figureView.getGraphicsViewContainerNode());t._eventHandler.processEvent((function(e){t._emitChartInteraction("WindowMouseRelease",e),t._currentAxesIndex=null}),e),this._windowMouseMoveListener&&this._windowMouseMoveListener.pause(),this._lastMouseDownLocation=null,this.removeEventListener(window,"mouseup",this._windowMouseUpListener),s.stop(e)},WindowMouseWheelHandler:function(e){if(this._checkIfMouseOverInteractiveChart(e)){var t=this;t._eventHandler.processEvent((function(e){t._emitChartInteraction("WindowScrollWheel",e)}),e),s.stop(e)}},_isDragEvent:function(e){return!this.hasMouseClicked(e,this._lastMouseDownLocation)&&null!=this._lastMouseDownLocation},_emitChartInteraction:function(e,t){var i=this.getEventPosition(t),n={x:i.x,y:i.y};n=this.addCursorOffset(n,this._cursorHotSpot),n=this.convertEventToMatlabRelativeCoords(n,this._figureView.getDomNode());var o={type:this._CHART_INTERACTION,interaction:e,x:n.x,y:n.y,isDragEvent:!!t.isDragEvent&&t.isDragEvent};this.isEventInsideAxes(t,this._figureView.getDomNode())?o.axesIndex=t.MouseOverAxes.Index:o.axesIndex=this._currentAxesIndex,o.chartType=this._figureModel._chartType[o.axesIndex],"WindowScrollWheel"===e&&(o.wheelDelta=t.deltaY/120||t.detail/3);var r={fcn:this._MODELESS_INTERACTION,args:o};this.emit(this._CHART_INTERACTION,r)},destroy:function(){this.removeEventListener(window,"mouseup",this._windowMouseUpListener),this._windowMouseMoveListener&&this._windowMouseMoveListener.pause()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(246),i(210),i(211),i(213),i(217),i(206),i(248),i(222),i(230),i(221),i(2033),i(4726),i(4727),i(4732),i(1451),i(4733),i(4734),i(4735),i(4736),i(4737),i(2030),i(1449),i(2031),i(2032),i(681)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){return e([c,d,I],{_figureView:null,_figureModel:null,_windowMouseMoveListener:null,_windowMouseUpListener:null,_ROI:null,_codeGen:null,_eventHandler:null,_maintainROI:!1,_lastMouseDownLocation:null,_currentAxesPosition:null,_cursorTimeout:null,_cursorHotSpot:null,_interactionsContextMenu:null,_lastMouseMoveEvent:null,_isIEBrowser:!1,_springLoadedAffordanceObjects:null,_springLoadedAffordanceModules:null,_undoRedoManager:null,_MODE_INTERACTION:"modeInteraction",_cursorImagePath:null,constructor:function(e){this._figureView=e.figureView,this._figureModel=e.figureModel,this._codeGen=e.codeGenerator,e.actionService&&e.contextMenuContributor&&this._addInteractionsContextMenu(e.actionService,e.contextMenuGenerator,e.contextMenuContributor),this._cursorHotSpot=[0,0],this._isIEBrowser=this._checkIfIEBrowser(),this._springLoadedAffordanceObjects={placedLegendMode:null,placedColorbarMode:null,placedGridMode:null,placedXGridMode:null,placedYGridMode:null,placedTitleMode:null,placedXLabelMode:null,placedYLabelMode:null,placedLineMode:null,placedArrowMode:null,placedDoubleArrowMode:null,placedTextArrowMode:null},this._springLoadedAffordanceModules={placedLegendMode:f,placedColorbarMode:g,placedGridMode:m,placedXGridMode:_,placedYGridMode:v,placedTitleMode:b,placedXLabelMode:y,placedYLabelMode:C,placedLineMode:T,placedArrowMode:E,placedDoubleArrowMode:S,placedTextArrowMode:w}},setCursorImagePath:function(e){this._cursorImagePath=e},setEventHandler:function(e){this._eventHandler=e},_addInteractionsContextMenu:function(e,i,n){this._interactionsContextMenu=new p(e,i,n,this._figureView,this._figureModel),s(this._interactionsContextMenu,"ModeContextMenuAction",t.hitch(this,"_WindowMouseRightClick"))},WindowButtonMouseDown:function(e){if(this._springLoadedAffordanceModules.hasOwnProperty(this._figureModel.getMode()))return this.notify("ModeWindowButtonMouseDown",e),this.removeEventListener(window,"mouseup",this._windowMouseUpListener),this._windowMouseUpListener=t.hitch(this,(function(e){this.notify("ModeWindowButtonMouseUp",e),this.removeEventListener(window,"mouseup",this._windowMouseUpListener)})),void this.addEventListener(window,"mouseup",this._windowMouseUpListener);if(""!==this._figureModel.getMode()&&this.isEventInsideAxes(e,this._figureView.getDomNode())||"Exploration.Datacursor"===this._figureModel.getMode()){if(this._isPZRenabled(e)){this._windowMouseMoveListener||(this._windowMouseMoveListener=s.pausable(window,l.move,t.hitch(this,"ModeWindowButtonMouseMove"))),this._windowMouseMoveListener.resume(),this.removeEventListener(window,"mouseup",this._windowMouseUpListener),this._windowMouseUpListener=t.hitch(this,"ModeWindowButtonMouseUp"),this.addEventListener(window,"mouseup",this._windowMouseUpListener);var n=this;if(n._eventHandler.processEvent((function(e){n.notify("WindowButtonMouseDown",e)}),e),"Exploration.Zoom"===this._figureModel.getMode()&&"in"===this._figureModel.getZoomDirection()){this._ROI||(this._ROI=new h(this._figureView._wrapperElement));var o=a.position(this._figureView._wrapperElement);this._ROI.setTopLeft(o.y,o.x);var r=this.addCursorOffset(e,this._cursorHotSpot);this._ROI.setAnchorPoint(r.x,r.y),this._currentAxesPosition=e.MouseOverAxes.axesPlotBox}}i.stop(e)}this._lastMouseDownLocation=this.getEventPosition(e)},WindowButtonMouseMove:function(e){var t=this._figureModel.getMode(),i=this._figureModel.getZoomDirection();if(this._lastMouseMoveEvent=e,this.removeCursorStyle(),this.isEventInsideAxes(e,this._figureView.getDomNode())){if(!this._isPZRenabled(e))return;this.applyCursorStyle(t,i,e)}},_isPZRenabled:function(e){var t=!0,i=this._figureModel.getIsPZREnabled();return this.isEventInsideAxes(e,this._figureView.getDomNode())&&i&&i.length>=e.MouseOverAxes.Index&&(t=0!==i[e.MouseOverAxes.Index]),t},WindowMouseDblClick:function(e){if(""!==this._figureModel.getMode()&&this.isEventInsideAxes(e,this._figureView.getDomNode())){var t=this;t._eventHandler.processEvent((function(e){t.notify("WindowMouseDblClick",e),t._insertFigureInteractions({type:"WindowMouseDblClick",interactionType:t._MODE_INTERACTION})}),e)}},_WindowMouseRightClick:function(e){this._eventHandler.clearEventQueue(),""!==this._figureModel.getMode()&&this.isEventInsideAxes(e,this._figureView.getDomNode())&&(this.notify("WindowMouseRightClick",e),this._insertFigureInteractions({type:"WindowMouseRightClick",interactionType:this._MODE_INTERACTION,tag:e.Tag}),"ResetView"!==e.Tag&&"Reset"!==e.Tag&&this._codeGen&&this._codeGen.attach(this._figureView.getGraphicsViewContainerNode())),i.stop(e)},updateContextMenuEventData:function(e){this._interactionsContextMenu.updateContextMenuEventData(e)},WindowButtonMouseWheel:function(e){if("Exploration.Zoom"===this._figureModel.getMode()&&!e.isMouseOverChart){var t=this;t._eventHandler.processEvent((function(e){t.notify("WindowButtonMouseWheel",e),t._insertFigureInteractions({type:"WindowButtonMouseWheel",interactionType:t._MODE_INTERACTION})}),e),i.stop(e)}},ModeWindowButtonMouseMove:function(e){if(e=this._getMouseEventData(e),"Exploration.Zoom"===this._figureModel.getMode()&&"in"===this._figureModel.getZoomDirection()){var t=null;if(this.isEventInsideAxes(e,this._figureView.getDomNode())&&this._isEventOverTheSameAxes(e)&&this._isCurrentAxes2D(e)){var n=this.addCursorOffset(e,this._cursorHotSpot);t=this._clipXYbyAxesPlotBox(e.MouseOverAxes.axesPlotBox,n.x,n.y),this._maintainROI=!0}else if(this._maintainROI){var o=this.getEventPosition(e);t=this._clipXYbyAxesPlotBox(this._currentAxesPosition,o.x,o.y)}if(t)return void this._ROI.drawROI(t.x,t.y)}if(!this.hasMouseClicked(e,this._lastMouseDownLocation)){var r=this;r._eventHandler.processEvent((function(e){r.notify("ModeWindowButtonMouseMove",e)}),e)}i.stop(e)},ModeWindowButtonMouseUp:function(e){this._windowMouseMoveListener.pause(),this.removeEventListener(window,"mouseup",this._windowMouseUpListener),e=this._getMouseEventData(e),this._ROI&&(this._ROI.hide(),this._ROI.resetAnchorPoint()),this._maintainROI=!1;var t=this;t._eventHandler.processEvent((function(e){t.notify("ModeWindowButtonMouseUp",e);var i=t.getEventPosition(e);t._insertFigureInteractions({type:"ModeWindowButtonMouseUp",x:i.x,y:i.y,interactionType:t._MODE_INTERACTION});var n="Exploration.Pan"===t._figureModel.getMode()||"Exploration.Rotate3d"===t._figureModel.getMode();t._codeGen&&(n&&!t.hasMouseClicked(e,t._lastMouseDownLocation)?t._codeGen.attach(t._figureView.getGraphicsViewContainerNode()):n||t._codeGen.attach(t._figureView.getGraphicsViewContainerNode()))}),e),this._currentAxesPosition=null,i.stop(e)},removeCursorStyle:function(){var e=this._figureView.getDomNode();this._checkIfIEBrowser()?r.set(e,"cursor",""):(n.remove(e,"panCursor"),n.remove(e,"rotateCursor"),n.remove(e,"zoomCursor"),n.remove(e,"zoom3DCursor"),n.remove(e,"zoomOutCursor"),n.remove(e,"datatipCursor"))},applyCursorStyle:function(e,t,i){if(!i||!i.isMouseOverChart){var n=this._figureView.getDomNode();this._setCursorStyle(e,t,i,n),this._cursorHotSpot=this._isIEBrowser?[0,0]:[7,7]}},_setCursorStyle:function(e,t,i,o){switch(e){case"Exploration.Pan":this._isIEBrowser?this._setCursorImageStyleForIE(o,"pan_cursor.cur"):n.add(o,"panCursor");break;case"Exploration.Rotate3d":this._isIEBrowser?this._setCursorImageStyleForIE(o,"rotate_cursor.cur"):n.add(o,"rotateCursor");break;case"Exploration.Zoom":"in"===t?i&&this._isCurrentAxes2D(i)?this._isIEBrowser?this._setCursorImageStyleForIE(o,"zoomin_cursor.cur"):n.add(o,"zoomCursor"):this._isIEBrowser?this._setCursorImageStyleForIE(o,"zoomin_cursor3D.cur"):n.add(o,"zoom3DCursor"):"out"===t&&(this._isIEBrowser?this._setCursorImageStyleForIE(o,"zoomout_cursor.cur"):n.add(o,"zoomOutCursor"));break;case"Exploration.Datacursor":this._isIEBrowser?this._setCursorImageStyleForIE(o,"datatip_cursor.cur"):n.add(o,"datatipCursor")}},_setCursorImageStyleForIE:function(e,t){var i="url("+this._cursorImagePath+"figurefloatingpalette/"+t+"), default";r.set(e,"cursor",i)},_isEventOverTheSameAxes:function(e){return this._currentAxesPosition&&this._currentAxesPosition.xLow===e.MouseOverAxes.axesPlotBox.xLow&&this._currentAxesPosition.xHigh===e.MouseOverAxes.axesPlotBox.xHigh&&this._currentAxesPosition.yLow===e.MouseOverAxes.axesPlotBox.yLow&&this._currentAxesPosition.yHigh===e.MouseOverAxes.axesPlotBox.yHigh},_isCurrentAxes2D:function(e){return 1===this._figureModel.getIs2D()[e.MouseOverAxes.Index]},_setupInteractionEvents:function(e){this.own(e.on("interaction",t.hitch(this,(function(e){this.emit("interaction",e)}))))},isInSpringLoadedMode:function(){return this._springLoadedAffordanceObjects.hasOwnProperty(this._figureModel.getMode())},setState:function(e){this._figureModel=e,this.removeCursorStyle(),this.applyCursorStyle(this._figureModel.getMode(),this._figureModel.getZoomDirection(),this._lastMouseMoveEvent),this._cursorTimeout&&clearTimeout(this._cursorTimeout);var i=this._figureView.getDomNode();i&&n.remove(i,"waitCursor");var o=!1;for(var r in null!==e.getUndoRedoData()&&e.getUndoRedoData().isUndoRedo&&(o=!0),this._springLoadedAffordanceObjects)this._figureModel.getMode()!==r&&this._springLoadedAffordanceObjects[r]?(this._springLoadedAffordanceObjects[r].clearWait(),this._springLoadedAffordanceObjects[r].hide(o)):this._figureModel.getMode()===r&&(this._springLoadedAffordanceObjects[r]?this._springLoadedAffordanceObjects[r].showAffordances(this._figureModel.getAxesPositions(),this._figureView.getWrapperNode(),this._figureView.getDomNode()):(this._springLoadedAffordanceObjects[r]=new this._springLoadedAffordanceModules[r](this._figureModel,this._figureView),this.own(s(this._springLoadedAffordanceObjects[r],"WindowButtonMouseDown",t.hitch(this,(function(e){this.WindowButtonMouseDown(e)})))),this.own(s(this._springLoadedAffordanceObjects[r],"startEditing",t.hitch(this,(function(e){this.emit("startEditing",e)})))),this._springLoadedAffordanceObjects[r].showAffordances(this._figureModel.getAxesPositions(),this._figureView.getWrapperNode(),this._figureView.getDomNode()),this._setupInteractionEvents(this._springLoadedAffordanceObjects[r])))},setUndoRedoManager:function(e){this._undoRedoManager=e},notify:function(e,t){var i=this.getEventPosition(t),n={x:i.x,y:i.y};n=this.addCursorOffset(n,this._cursorHotSpot);var o={type:e,x:(n=this.convertEventToMatlabRelativeCoords(n,this._figureView.getDomNode())).x,y:n.y};this.isEventInsideAxes(t,this._figureView.getDomNode())&&(o.axesIndex=t.MouseOverAxes.Index),"WindowButtonMouseWheel"===e&&(o.wheelDelta=t.deltaY/120||t.detail/3),"WindowMouseRightClick"===e&&(o.Tag=t.Tag);var r={fcn:"modeInteractionCallback",args:o};this.emit("interaction",r)},destroy:function(){for(var e in this._ROI&&this._ROI.destroy(),this._codeGen&&this._codeGen.destroy(),this._interactionsContextMenu&&this._interactionsContextMenu.destroy(),this._windowMouseMoveListener&&this._windowMouseMoveListener.pause(),this._springLoadedAffordanceObjects)this._springLoadedAffordanceObjects[e]&&this._springLoadedAffordanceObjects[e].destroy();this.removeEventListener(window,"mouseup",this._windowMouseUpListener)},_clipXYbyAxesPlotBox:function(e,t,i){var n=e.yHigh,o=e.yLow,r=e.xHigh,a=e.xLow,s={};return s.y=i>n?n:i<o?o:i,s.x=t<a?a:t>r?r:t,s},switchLayouts:function(){this._springLoadedAffordanceObjects[this._figureModel.getMode()]&&this._springLoadedAffordanceObjects[this._figureModel.getMode()].hide()},setModeFromClient:function(e){this._cursorTimeout&&clearTimeout(this._cursorTimeout),e&&e!==this._figureModel.getMode()&&(this._cursorTimeout=setTimeout(t.hitch(this,(function(){n.add(this._figureView.getDomNode(),"waitCursor")})),300)),this._figureModel.setMode(e),this._figureModel.setIsPZREnabled("Exploration.Pan"===e||"Exploration.Zoom"===e||"Exploration.Rotate3d"===e)},isSpringLoadedMode:function(e){return this._springLoadedAffordanceModules.hasOwnProperty(e)},_getMouseEventData:function(e){return this._figureModel.getMouseEventData(e,this._figureView,this._cursorHotSpot)},_checkIfIEBrowser:function(){return u("trident")||u("ie")||u("edge")},_insertFigureInteractions:function(e){e.codeGenState={attachCodeGenOnUndo:!1,attachCodeGenOnRedo:!0},this._codeGen&&this._codeGen.isCodeGenAttached()&&(e.codeGenState.attachCodeGenOnUndo=!0),this._undoRedoManager.insertInteractionsForUndoRedo(this._figureModel,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(222),i(204),i(368),i(253),i(208),i(294)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([i],{_actionService:null,_modeActions:null,_contextMenuEvent:{},_contextMenuGenerator:null,_figureView:null,_figureModel:null,_ZOOM_IN_INDEX:0,_ZOOM_OUT_INDEX:1,_RESET_VIEW_INDEX:2,_RESET_INDEX:3,_ROTATEXY_INDEX:4,_ROTATEXZ_INDEX:5,_ROTATEYZ_INDEX:6,_DELETE_DATATIPS_INDEX:7,_CONTEXT_MENU_GROUP:s.MODE_INTERACTION,constructor:function(e,t,i,n,o){this._actionService=e,this._contextMenuGenerator=t,this._contextMenuContributor=i,this._figureView=n,this._figureModel=o,this._setModeActions(),this._setAspectHandles()},_setAspectHandles:function(){this._aspectHandles=[],this._aspectHandles.push(a.before(this._contextMenuGenerator,"willOpen",n.hitch(this,"_removeModeMenuActions"),!0)),this._aspectHandles.push(a.after(this._contextMenuGenerator,"willOpen",n.hitch(this,"_updateContextMenu"),!0)),this._aspectHandles.push(a.after(this._contextMenuGenerator,"onClose",n.hitch(this,"_enableActions"),!0))},destroy:function(){this._removeModeActions(this._modeActions),this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]},updateContextMenuEventData:function(e){this._contextMenuEvent=e},_setModeActions:function(){this._modeActions=[],this._modeActions[this._ZOOM_IN_INDEX]={id:"figure_zoom_in",enabled:!0,contextMenuGroup:"ModeInteraction",text:r.zoomInLabel,callback:n.hitch(this,this._modeEventData,"ZoomInOut")},this._modeActions[this._ZOOM_OUT_INDEX]={id:"figure_zoom_out",enabled:!0,contextMenuGroup:"ModeInteraction",text:r.zoomOutLabel,callback:n.hitch(this,this._modeEventData,"ZoomInOut")},this._modeActions[this._RESET_VIEW_INDEX]={id:"figure_reset_mode",enabled:!0,contextMenuGroup:"ModeInteraction",text:r.resetFigure,callback:n.hitch(this,this._modeEventData,"ResetView")},this._modeActions[this._ROTATEXY_INDEX]={id:"figure_rotate_xy",enabled:!0,contextMenuGroup:"ModeInteraction",text:r.XYRotate,callback:n.hitch(this,this._modeEventData,"SnapToXY")},this._modeActions[this._ROTATEXZ_INDEX]={id:"figure_rotate_xz",enabled:!0,contextMenuGroup:"ModeInteraction",text:r.XZRotate,callback:n.hitch(this,this._modeEventData,"SnapToXZ")},this._modeActions[this._ROTATEYZ_INDEX]={id:"figure_rotate_yz",enabled:!0,contextMenuGroup:"ModeInteraction",text:r.YZRotate,callback:n.hitch(this,this._modeEventData,"SnapToYZ")},this._modeActions[this._RESET_INDEX]={id:"figure_reset_rotatemode",enabled:!0,contextMenuGroup:"ModeInteraction",text:r.resetFigure,callback:n.hitch(this,this._modeEventData,"Reset")},this._modeActions[this._DELETE_DATATIPS_INDEX]={id:"figure_delete_datatips",enabled:!0,contextMenuGroup:"ModeInteraction",text:r.deleteAllDataTips,callback:n.hitch(this,this._modeEventData,"deleteAllDataTips")},this._addActionsToContextMenu()},_addActionsToContextMenu:function(){this._modeActions.forEach((function(e){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,e.id)}),this)},_removeModeMenuActions:function(){this._removeModeActions(this._modeActions)},_updateContextMenu:function(e,i){if(i===this._figureView._imgElement){var n=this._actionService,o=t.get(i,"cursor");o.indexOf("pan_cursor")>=0?(this._setPanModeAction(),n.disableAction("rtc_clear_all_output")):o.indexOf("zoomout_cursor")>=0?(this._setZoomOutAction(),n.disableAction("rtc_clear_all_output")):o.indexOf("rotate_cursor")>=0?(this._setRotateAction(),n.disableAction("rtc_clear_all_output")):o.indexOf("zoomin_cursor")>=0||o.indexOf("zoomin_cursor3D")>=0?(this._setZoomInAction(),n.disableAction("rtc_clear_all_output")):o.indexOf("datatip_cursor")>=0&&(this._setDataTipAction(),n.disableAction("rtc_clear_all_output"))}},_setZoomInAction:function(){this._addModeActions([this._modeActions[this._ZOOM_OUT_INDEX],this._modeActions[this._RESET_VIEW_INDEX]]),this._removeModeActions([this._modeActions[this._ZOOM_IN_INDEX],this._modeActions[this._RESET_INDEX],this._modeActions[this._ROTATEXY_INDEX],this._modeActions[this._ROTATEXZ_INDEX],this._modeActions[this._ROTATEYZ_INDEX],this._modeActions[this._DELETE_DATATIPS_INDEX]])},_setPanModeAction:function(){this._addModeActions([this._modeActions[this._RESET_VIEW_INDEX]]),this._removeModeActions([this._modeActions[this._ZOOM_OUT_INDEX],this._modeActions[this._ZOOM_IN_INDEX],this._modeActions[this._RESET_INDEX],this._modeActions[this._ROTATEXY_INDEX],this._modeActions[this._ROTATEXZ_INDEX],this._modeActions[this._ROTATEYZ_INDEX],this._modeActions[this._DELETE_DATATIPS_INDEX]])},_setZoomOutAction:function(){this._addModeActions([this._modeActions[this._ZOOM_IN_INDEX],this._modeActions[this._RESET_VIEW_INDEX]]),this._removeModeActions([this._modeActions[this._ZOOM_OUT_INDEX],this._modeActions[this._RESET_INDEX],this._modeActions[this._ROTATEXY_INDEX],this._modeActions[this._ROTATEXZ_INDEX],this._modeActions[this._ROTATEYZ_INDEX],this._modeActions[this._DELETE_DATATIPS_INDEX]])},_setRotateAction:function(){this._addModeActions([this._modeActions[this._RESET_INDEX],this._modeActions[this._ROTATEXY_INDEX],this._modeActions[this._ROTATEXZ_INDEX],this._modeActions[this._ROTATEYZ_INDEX]]),this._removeModeActions([this._modeActions[this._ZOOM_IN_INDEX],this._modeActions[this._ZOOM_OUT_INDEX],this._modeActions[this._RESET_VIEW_INDEX],this._modeActions[this._DELETE_DATATIPS_INDEX]])},_setDataTipAction:function(){this._addModeActions([this._modeActions[this._DELETE_DATATIPS_INDEX]]),this._removeModeActions([this._modeActions[this._ZOOM_OUT_INDEX],this._modeActions[this._ZOOM_IN_INDEX],this._modeActions[this._RESET_INDEX],this._modeActions[this._ROTATEXY_INDEX],this._modeActions[this._ROTATEXZ_INDEX],this._modeActions[this._ROTATEYZ_INDEX],this._modeActions[this._RESET_VIEW_INDEX]])},_addModeActions:function(e){var t=this._actionService;e.forEach((function(e){t.getAction(e.id)||t.addAction(e)}))},_removeModeActions:function(e){var t=this._actionService;e.forEach((function(e){t.getAction(e.id)&&t.removeAction(e.id)}))},_enableActions:function(){this._actionService.enableAction("rtc_clear_all_output")},_modeEventData:function(e){var t=this._contextMenuEvent;t.Tag=e,this.emit("ModeContextMenuAction",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(217),i(213),i(210),i(206),i(1450),i(682)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([s],{mode:"placedLegendMode",addLegendText:l.addLegendText,legendTooltipText:l.addLegendTooltipText,showAffordances:function(e,t,i){var o=n.position(i),r=n.position(t);e.forEach((function(e,i){if(!this.figureModel.isAxesObscuredByEarlierChild(i)){var n=e[2]*o.w*.02,a=e[3]*o.h*.05,s=(e[0]+e[2])*o.w+o.x-r.x-n,l=(1-e[1]-e[3])*o.h+o.y-r.y+a;this.positionAffordance(null,s,l,t,"legend",i,"placeableGhostLegend",this.legendTooltipText)}}),this),this.show()},createDomNodes:function(e,t,n){var o=i.create("div",{title:t,innerHTML:"<div class='legendIcon'></div><span>"+this.addLegendText+"</span>"},e);return r.add(o,n),o}})}),e,t),e.exports=o},function(e,t,i){e.exports={addColorBarText:"カラー バーの追加",addColorBarTooltipText:"クリックしてカラー バーをここに追加します",addGridText:"グリッドの追加",addGridTooltipText:"クリックしてグリッドをここに追加します",addLegendText:"凡例の追加",addLegendTooltipText:"クリックして凡例をここに追加します",addTitleText:"タイトルの追加",addXGridText:"X グリッドの追加",addXGridTextTooltipText:"クリックして x 軸グリッドをここに追加します",addYGridText:"Y グリッドの追加",addYGridTooltipText:"クリックして y 軸グリッドをここに追加します",addXLabelText:"X ラベルの追加",addYLabelText:"Y ラベルの追加"}},function(e,t,i){e.exports={addColorBarText:"컬러바 추가",addColorBarTooltipText:"여기에 컬러바를 추가하려면 클릭합니다.",addGridText:"그리드 추가",addGridTooltipText:"여기에 그리드를 추가하려면 클릭합니다.",addLegendText:"범례 추가",addLegendTooltipText:"여기에 범례를 추가하려면 클릭합니다.",addTitleText:"제목 추가",addXGridText:"X 그리드 추가",addXGridTextTooltipText:"여기에 x축 그리드를 추가하려면 클릭합니다.",addYGridText:"Y 그리드 추가",addYGridTooltipText:"여기에 y축 그리드를 추가하려면 클릭합니다.",addXLabelText:"X 레이블 추가",addYLabelText:"Y 레이블 추가"}},function(e,t,i){e.exports={addColorBarText:"添加颜色栏",addColorBarTooltipText:"点击以在此处添加颜色栏",addGridText:"添加网格",addGridTooltipText:"点击以在此处添加网格",addLegendText:"添加图例",addLegendTooltipText:"点击以在此处添加图例",addTitleText:"添加标题",addXGridText:"添加 X 网格",addXGridTextTooltipText:"点击以在此处添加 x 轴网格",addYGridText:"添加 Y 网格",addYGridTooltipText:"点击以在此处添加 y 轴网格",addXLabelText:"添加 X 标签",addYLabelText:"添加 Y 标签"}},function(e,t,i){e.exports={root:{addColorBarText:"Add Colorbar",addColorBarTooltipText:"Click to add colorbar here",addGridText:"Add Grid",addGridTooltipText:"Click to add grid here",addLegendText:"Add Legend",addLegendTooltipText:"Click to add legend here",addTitleText:"Add Title",addXGridText:"Add X-Grid",addXGridTextTooltipText:"Click to add x-axis grid here",addYGridText:"Add Y-Grid",addYGridTooltipText:"Click to add y-axis grid here",addXLabelText:"Add X-Label",addYLabelText:"Add Y-Label"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(217),i(213),i(210),i(206),i(225),i(1450),i(682)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([l],{mode:"placedColorbarMode",promptText:c.addColorBarText,colorbarTooltipText:c.addColorBarTooltipText,showAffordances:function(e,t,i){var r=n.position(i),a=n.position(t);e.forEach((function(e,i){if(!this.figureModel.isAxesObscuredByEarlierChild(i)){var n={w:e[2]*r.w*.06,h:e[3]*r.h*.9};n.w=n.w<20?20:n.w;var l=n.w,c={w:n.h,h:n.w},d=e[3]*r.h*.05,u=(e[0]+e[2])*r.w+r.x-a.x+1.2*l,h=(1-e[1]-e[3])*r.h+r.y-a.y+d;this.positionAffordance(c,u,h,t,"colorbar",i,"placeableGhostColorbar",this.colorbarTooltipText);var p=.5*n.w;o.set(this.previewDomNodes[i],"font-size",p+"px");var f=this._getStringWidthInPixels(this.promptText,this.previewDomNodes[i])<n.h;s("p",this.previewDomNodes[i]).forEach((function(e){f?o.set(e,"visibility","visible"):o.set(e,"visibility","hidden")}))}}),this),this.show()},createDomNodes:function(e,t,n){var o=i.create("div",{title:t,innerHTML:"<p>"+this.promptText+"</p>"},e);return r.add(o,n),o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(211),i(217),i(213),i(1451),i(682)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([a],{matlabInteractionFunction:"xgrid",mode:"placedXGridMode",text:s.addXGridText,gridIconClass:"xgridIcon",tooltipText:s.addXGridTextTooltipText})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(211),i(217),i(213),i(1451),i(682)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([a],{matlabInteractionFunction:"ygrid",mode:"placedYGridMode",text:s.addYGridText,gridIconClass:"ygridIcon",tooltipText:s.addYGridTooltipText})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(228),i(217),i(213),i(211),i(1452),i(682)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([a],{promptText:s.addTitleText,mode:"placedTitleMode",positionMatrix:[[0,1,.5],[0,1,1]],actionId:"title",getLabels:function(){return this.figureModel.getTitles()},positionAffordance:function(e,t,r,a,s,l,c,d){this.previewDomNodes||(this.previewDomNodes=[]),this.previewDomNodes[l]||(this.previewDomNodes[l]=this.createDomNodes(a,d,c,s,l),this.addClickListener(this.previewDomNodes[l],s,l));var u=n.position(a),h=100*o.get(this.previewDomNodes[l],"width")/u.w,p=100*o.get(this.previewDomNodes[l],"height")/u.h;r+p>100&&(r=100-p),o.set(this.previewDomNodes[l],{position:"absolute",bottom:r+"%",left:t-h/2+"%"}),this._textInputElements[l].originalPosition=null,i.set(this.previewDomNodes[l],"data-tag",s+"."+l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(228),i(217),i(213),i(211),i(1452),i(682)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([a],{promptText:s.addXLabelText,mode:"placedXLabelMode",positionMatrix:[[0,1,.5],[1,-1,0]],actionId:"xlabel",getLabels:function(){return this.figureModel.getXLabels()},positionAffordance:function(e,t,r,a,s,l,c,d){this.parentNode=a,this.previewDomNodes||(this.previewDomNodes=[]),this.previewDomNodes[l]||(this.previewDomNodes[l]=this.createDomNodes(a,d,c,s,l),this.addClickListener(this.previewDomNodes[l],s,l));var u=n.position(a),h=100*o.get(this.previewDomNodes[l],"width")/u.w;if(r+=6/(this.previewDomNodes.length<=2?1:this.previewDomNodes.length),this.figureModel.getIs2D()[l])o.set(this.previewDomNodes[l],{position:"absolute",top:r+"%",left:t-h/2+"%"});else{var p=this.figureModel.getXLabelPositions()[l];if(Math.abs(p[0])>0&&Math.abs(p[1])>0){var f=this.figureView.getAxesPlotBox(p);o.set(this.previewDomNodes[l],{position:"absolute",top:f.yLow-u.y+"px",left:f.xLow-u.x+"px"})}else{var g=this.figureView.getAxesPlotBox(this.figureModel.getAxesPositions()[l]);t=g.xLow+Math.abs(g.xHigh-g.xLow)/2;o.set(this.previewDomNodes[l],{position:"absolute",top:g.yHigh-u.y+"px",left:t-u.x+"px"})}}i.set(this.previewDomNodes[l],"data-tag",s+"."+l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(228),i(217),i(213),i(211),i(1452),i(682)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([a],{promptText:s.addYLabelText,textInputElementCSSClass:"ghostYLabel",mode:"placedYLabelMode",positionMatrix:[[0,1,0],[1,-1,-.5]],actionId:"ylabel",getLabels:function(){return this.figureModel.getYLabels()},positionAffordance:function(e,t,r,a,s,l,c,d){this.parentNode=a,this.previewDomNodes||(this.previewDomNodes=[]),this.previewDomNodes[l]||(this.previewDomNodes[l]=this.createDomNodes(a,d,c,s,l),this.addClickListener(this.previewDomNodes[l],s,l),this._textInputElements[l].setTextAlignement("left")),o.set(this.previewDomNodes[l],{position:"absolute",top:r+"%",left:t+"%"});var u=n.position(this.figureView.getDomNode(),!1),h=this.figureModel.getYLabelPositions()[l];if(Math.abs(h[0])>0&&Math.abs(h[1])>0){var p=this.figureView.getAxesPlotBox(h),f=o.get(this.previewDomNodes[l],"width");p.xLow+f>u.x+u.w&&(t=p.xHigh-u.x-f,o.set(this.previewDomNodes[l],{position:"absolute",left:t+"px"})),this.figureModel.getIs2D()[l]||o.set(this.previewDomNodes[l],{position:"absolute",top:p.yLow-u.y+"px",left:p.xLow-u.x+"px"})}else if(!this.figureModel.getIs2D()[l]){var g=this.figureView.getAxesPlotBox(this.figureModel.getAxesPositions()[l]);if(this.figureModel.isAxesObscuredByEarlierChild(l))o.set(this.previewDomNodes[l],{visibility:"hidden"});else{t=g.xLow+Math.abs(g.xHigh-g.xLow)/8;o.set(this.previewDomNodes[l],{position:"absolute",top:g.yHigh-u.y+"px",left:t-u.x+"px"})}}this._textInputElements[l].originalPosition=null,i.set(this.previewDomNodes[l],"data-tag",s+"."+l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(213),i(221),i(2025),i(1443),i(1444),i(2034),i(206),i(257),i(210),i(227)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([l],{_leftMaxForFirstElement:370,_leftPadForFirstElement:35,_suspendAllListeners:!1,getView:function(e,n,o){if(this._palette&&this._palette.dataTag===e)this.setViewState({is2D:this.getCurrentTarget().is2D,backgroundColor:this._figureModel.getBackgroundColor()}),o&&"function"==typeof o&&o(this._palette);else{var r=a.getPalette(e);void 0===r&&(this._palette=null),null!==this._palette&&i.destroy(this._palette.domNode),s.getPalette(r,t.hitch(this,(function(e){this._palette=e,this._palette.startup(),this._setupPaletteListeners(),this.setViewState(this.getState(this._figureModel)),o&&"function"==typeof o&&o(e)})))}return this._palette},_setupPaletteListeners:function(){this._paletteListener||(this._paletteListener=this._palette.on("elementClicked",t.hitch(this,(function(e){var t={};if(e.action)t={fcn:"paletteActionInteractionCallback",args:{action:e.action,axesIndex:this.getCurrentTarget().targetIndex,direction:e.direction||""}};else if(null!==e.mode||void 0!==e.mode){t={fcn:"setMode",args:{mode:e.mode,direction:e.direction||""}};var i={mode:e.mode,backgroundColor:this._figureModel.getBackgroundColor(),direction:e.direction||""};this.setViewState(i)}this._paletteListener=null,this.notify("interaction",t)})))),this._paletteListener=null},setViewState:function(e){this._palette&&this._palette.setState(e)},getState:function(e){return{mode:e.getMode(),is2D:this.getCurrentTarget()?this.getCurrentTarget().is2D:0,backgroundColor:e.getBackgroundColor(),direction:e.getZoomDirection()}},_handleMouseClick:function(e){this._doSetPalettePosition=!0,this._handleClickOrMove(e)},_handleMouseMove:function(e){this._handleClickOrMove(e)},_handleMouseEnter:function(e){this._doSetPalettePosition=!0,this._handleClickOrMove(e)},setCurrentTarget:function(e){this._currentTarget=e},getCurrentTarget:function(){return null===this._currentTarget?null:{targetIndex:this._currentTarget,is2D:this._figureModel.getIsSubplot3D()?0:this._figureModel.getIs2D()[this._currentTarget],axesPosition:this._figureModel.getAxesPositions()[this._currentTarget],chartType:this._figureModel.getChartType()[this._currentTarget],toolbarEnabled:this._figureModel.getAxesToolbarEnabled()[this._currentTarget]}},_handleClickOrMove:function(e){if(!this._suspendAllListeners){var t=this,n=!1;if(e.MouseOverAxes&&e.MouseOverAxes.isInside){n=!0;var r=t.getCurrentTarget();if(r&&e.MouseOverAxes.Index===r.targetIndex)this._palette&&this._doSetPalettePosition&&(t._setPalettePosition(e.MouseOverAxes.axesPlotBox),this._doSetPalettePosition=!1);else{t.setCurrentTarget(e.MouseOverAxes.Index);var a=1===t.getCurrentTarget().is2D?"2DAxes":"3DAxes",s=t.getCurrentTarget().chartType,l="";if(t.getCurrentTarget().toolbarEnabled)!0===o("touchdevice")?l="EmptyPalette":"axes"===s?l="FigurePalette":"geobubble"===s?l="ActionPalette":"geoaxes"===s&&(l="GeoAxesPalette");t.getView(l,a,(function(n){t._figureView.hasRenderingSize()?t.enablePalette():t.disablePalette(),i.place(n.domNode,t._figureView.getWrapperNode()),t._setPalettePosition(e.MouseOverAxes.axesPlotBox)}))}}this.setVisible(n)}},_handleAxesPositionUpdate:function(e){if(this._palette&&!u.contains(this._palette.domNode,"disabled")){this._currentTarget>e.newAxesPositions.length-1&&this.setCurrentTarget(e.newAxesPositions.length-1);var t=this.getCurrentTarget(),i=this._figureView.getAxesPlotBox(t.axesPosition);this._setPalettePosition(i)}},getTopForElement:function(e,t){var i=this.getTopForAxesRef(e),n=this.getElementBounds(t).height;return i-n<this._MIN_TOP?this._MIN_TOP:i-n},getLeftForElement:function(e,t){return this.getRightForAxesRef(e)-this.getElementBounds(t).width},enablePalette:function(){this.inherited(arguments),this._suspendAllListeners=!1},disablePalette:function(){this.inherited(arguments),this._suspendAllListeners=!0},_setPalettePosition:function(e){var t=this.getTopForElement(e,this._palette.domNode),i=this.getRightForAxesRef(e),o=this.getElementBounds(this._figureView.getWrapperNode());n.set(this._palette.domNode,{position:"absolute",right:o.width-i+"px",top:t+"px"})}})}),e,t),e.exports=o},function(e,t){e.exports='<table class="dijit dijitReset dijitSlider dijitSliderH" cellspacing="0" cellpadding="0" border="0" rules="none" data-dojo-attach-event="onkeydown:_onKeyDown, onkeyup:_onKeyUp"\n\trole="presentation"\n\t><tr class="dijitReset"\n\t\t><td class="dijitReset" colspan="2"></td\n\t\t><td data-dojo-attach-point="topDecoration" class="dijitReset dijitSliderDecoration dijitSliderDecorationT dijitSliderDecorationH"></td\n\t\t><td class="dijitReset" colspan="2"></td\n\t></tr\n\t><tr class="dijitReset"\n\t\t><td class="dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH"\n\t\t\t><div class="dijitSliderDecrementIconH" style="display:none" data-dojo-attach-point="decrementButton"><span class="dijitSliderButtonInner">-</span></div\n\t\t></td\n\t\t><td class="dijitReset"\n\t\t\t><div class="dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper" data-dojo-attach-event="press:_onClkDecBumper"></div\n\t\t></td\n\t\t><td class="dijitReset"\n\t\t\t><input data-dojo-attach-point="valueNode" type="hidden" ${!nameAttrSetting}\n\t\t\t/><div class="dijitReset dijitSliderBarContainerH" role="presentation" data-dojo-attach-point="sliderBarContainer"\n\t\t\t\t><div role="presentation" data-dojo-attach-point="progressBar" class="dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH" data-dojo-attach-event="press:_onBarClick"\n\t\t\t\t\t><div class="dijitSliderMoveable dijitSliderMoveableH"\n\t\t\t\t\t\t><div data-dojo-attach-point="sliderHandle,focusNode" class="dijitSliderImageHandle dijitSliderImageHandleH" data-dojo-attach-event="press:_onHandleClick" role="slider"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t\t><div role="presentation" data-dojo-attach-point="remainingBar" class="dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH" data-dojo-attach-event="press:_onBarClick"></div\n\t\t\t></div\n\t\t></td\n\t\t><td class="dijitReset"\n\t\t\t><div class="dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper" data-dojo-attach-event="press:_onClkIncBumper"></div\n\t\t></td\n\t\t><td class="dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH"\n\t\t\t><div class="dijitSliderIncrementIconH" style="display:none" data-dojo-attach-point="incrementButton"><span class="dijitSliderButtonInner">+</span></div\n\t\t></td\n\t></tr\n\t><tr class="dijitReset"\n\t\t><td class="dijitReset" colspan="2"></td\n\t\t><td data-dojo-attach-point="containerNode,bottomDecoration" class="dijitReset dijitSliderDecoration dijitSliderDecorationB dijitSliderDecorationH"></td\n\t\t><td class="dijitReset" colspan="2"></td\n\t></tr\n></table>\n'},function(e,t,i){var n,o;n=[i(203),i(455),i(680)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(i,{_figureModel:null,_clientEventArgs:null,_eventCallBack:null,_UNDO_EVENT_TYPE:"Undo",_REDO_EVENT_TYPE:"Redo",constructor:function(e,t,i){this._figureModel=e,this._eventCallBack=t,this._clientEventArgs=i},execute:function(){this._setInteractionEventType(this._REDO_EVENT_TYPE),this._feval(this._eventCallBack,this._clientEventArgs)},unexecute:function(){this._setInteractionEventType(this._UNDO_EVENT_TYPE),this._feval(this._eventCallBack,this._clientEventArgs)},_setInteractionEventType:function(e){this._clientEventArgs.type=e},_feval:function(e,i){t.getInstance().publish(this._figureModel.getInteractionChannel(),JSON.stringify({method:e,args:i}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){this._embeddedFigureCache=new Map},deleteFigure:function(e){this._embeddedFigureCache.has(e)&&(this._embeddedFigureCache.get(e).destroy(),this._embeddedFigureCache.delete(e))},addFigure:function(e,t){this._embeddedFigureCache.set(e,t)},getFigure:function(e){return this._embeddedFigureCache.get(e)},destroy:function(){this._embeddedFigureCache.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(206),i(212),i(222),i(230),i(238),i(253),i(455),i(2023),i(4743),i(2036),i(2037),i(2039),i(2040),i(937),i(247),i(2041)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e([r,a],{figureModel:null,figureView:null,_promptController:null,_layoutManager:null,_enableInteraction:!1,_output:null,_dependencies:null,_codeGenFactory:null,_codeGenerator:null,_actionService:null,_contextMenuGenerator:null,_paletteDisabled:!1,_contextMenuContributor:null,_actionManager:null,_figureUndoRedoManager:null,_focusService:null,_IMAGE_PATH:require.toUrl("images/"),_eventHandler:null,_figureViewInteractionListeners:null,_cannotidentifyFigureTooltip:l.disabledWhenCannotIdentifyFigure,_getNumberOfOutputsOnLineCallback:null,_snapshotManager:null,_pending:!1,_embeddedFigureView:null,constructor:function(e){this.figureModel=new d(e),this._IMAGE_PATH=this._getImageUrl(),this._snapshotManager=e.snapshotManager},createViewForURI:function(e,t,i){this.figureView=new u(i,e.editorId,e.figureId),this.own(this.figureView),this.figureView.createImageNode(t,e.editorId,e.figureId)},createViewForLoadedFigure:function(e,t,i){this.createViewForURI(e,t,i)},createViewForGUI:function(e,t,i){this.createViewForURI(e,t,i),this.figureView.notifyGUIImageCreated(e.editorId,e.figureId)},createViewForWebCanvas:function(e,i,o,r,a,s,l,c,d){this._embeddedFigureView=!0,this.figureView=new u(r,e.editorId,e.figureId,l,c,d),this.own(this.figureView),a&&this._setFigureMetaData(a),this.figureView.createWebGraphicsNode(i,o,s),this.own(n(this.figureView,"refreshURI",t.hitch(this,(function(e){this._setupFigureViewListeners(),this.emit("FigureURIChanged",{uri:this.getFigureURI()})}))))},_replaceWebCanvas:function(e){this.figureView.createWebGraphicsNode(e,this.figureView.getGraphicsViewContainerNode())},getFigureContentPane:function(){return this.figureView.getGraphicsViewContainerNode()},setOutput:function(e){this._output=e,this.figureModel&&this.figureModel.setFigureToolstripEnablementCallback(t.hitch(this,"_shouldFigureToolstripBeEnabled"))},_shouldFigureToolstripBeEnabled:function(){if(!this._output)return!1;var e=this._output.getState();return this._isEnabledFigure()&&(e===m.STATE.FINAL_SNAPSHOT||e===m.STATE.FINAL_PENDING_SNAPSHOT)},setContextMenuService:function(e,t,i){this._actionService=e,this._contextMenuGenerator=t,this._contextMenuContributor=i},setFocusService:function(e){this._focusService=e},setCodeGenFactory:function(e){this._codeGenFactory=e},setDocumentView:function(e){this.figureView.setDocumentView(e)},setGetNumberOfOutputsOnLineCallback:function(e){this._getNumberOfOutputsOnLineCallback=e},showRunCodePrompt:function(){this.figureView.showRunCodePrompt()},_getImageUrl:function(){var e=_.parseUrl(this._IMAGE_PATH);return e.protocol+"//"+e.hostname+":"+e.port+e.pathname},_getMouseEventData:function(e){return this.getFigureModel().getMouseEventData(e,this.figureView,this._modeManager._cursorHotSpot)},notify:function(e,t){this.emit(e,t)},_setupFigureViewListeners:function(){this._figureViewInteractionListeners||(this._figureViewInteractionListeners=[n(this.figureView,"LayoutResize",t.hitch(this,"notify","LayoutResize")),n(this.figureView,"InlineViewLayout",t.hitch(this,"notify","InlineViewLayout")),n(this.figureView,"WindowButtonMouseDown",t.hitch(this,"notify","WindowButtonMouseDown")),n(this.figureView,"WindowButtonMouseMove",t.hitch(this,"notify","WindowButtonMouseMove")),n(this.figureView,"WindowButtonMouseEnter",t.hitch(this,"notify","WindowButtonMouseEnter")),n(this.figureView,"WindowButtonMouseLeave",t.hitch(this,"notify","WindowButtonMouseLeave")),n(this.figureView,"WrapperElementMouseLeave",t.hitch(this,"notify","_WrapperElementMouseLeave"))],this.own.apply(this,this._figureViewInteractionListeners))},getFigureProperties:function(){return this.figureModel.getFigureProperties(this._embeddedFigureView)},destroy:function(){this._destroyed||(this._enableInteraction&&c.getInstance().unsubscribe(this.figureModel.getRefreshChannel(),"_refreshFromServer",this),this._promptController&&this._promptController.destroyView(),this._codeGenerator&&this._codeGenerator.destroy(),this._eventHandler&&this._eventHandler.destroy(),this._snapshotManager&&!this._pending&&this._snapshotManager.removeSnapshot(this.figureModel.figureId)),this.inherited(arguments)},setPendingState:function(e){this._pending=e,this.figureView&&this.figureView.setSynchronizedDrawnowState(e)},getEmbeddedFigureSettingState:function(){return!0},getFigureModel:function(){return this.figureModel},getFigureView:function(){return this.figureView},getFigureURI:function(){return this.getFigureView().getFigureURI()},feval:function(e,t){c.getInstance().publish(this.figureModel.getInteractionChannel(),JSON.stringify({method:e,args:t}))},printToFile:function(e){var i=new o,n=t.hitch(this,(function(e){c.getInstance().unsubscribe(this.figureModel.getInteractionChannel()+"/printed",n,this),i.resolve(e)}));return c.getInstance().subscribe(this.figureModel.getInteractionChannel()+"/printed",n,this),c.getInstance().publish(this.figureModel.getInteractionChannel(),JSON.stringify({method:"printToFile",args:e})),i},_modelessDataUpdate:function(e){},_refreshFromServer:function(e){var t=e.data.iFigureInteractionData,i=e.data.iFigureMetaData,n=e.data.iFigureUndoRedoData,o=e.data.iServerID;this._refresh(t,i,n,o)},_refresh:function(e,t,i,n){if("string"!=typeof n||""===n||this.figureView.getServerID()===n){if(i)return this._setFigureUndoRedoData(t,i,e),this.emit("FigureStateChanged",{figureProperties:this.getFigureProperties()}),void this.emit("InteractionEventProcessed",{});t&&(this._setFigureMetaData(t),this._setFigureInteractionData(null),this._updateFigureState()),e&&(this._setFigureInteractionData(e),"subplot"===e.iAtomicActionID?this.emit("FigureStateChanged",{figureProperties:this.getFigureProperties()}):this.emit("InteractionEventProcessed",{})),this._setDocumentFocusIfNeeded()}else this._replaceWebCanvas(n)},_setFigureUndoRedoData:function(e,t,i){this._setFigureMetaData(e),this.figureModel.setUndoRedoData(t),this._setFigureInteractionData(i),this._updateFigureState(),this._setDocumentFocusIfNeeded()},_setFigureMetaData:function(e){this.figureView.deleteRunCodePrompt(),this.figureModel.setFigureModelState(e)},_updateFigureState:function(){this._promptController.setState(this.figureModel)},_updateCodeGen:function(){var e=this.figureModel._interactionData;if(e){var t=e.iClearCode,i=e.iShowCode||""!==e.iAtomicActionID,n=e.iCode;Array.isArray(n)&&(n=this._codeGenerator.updateUsedVariableNames(n)),this._codeGenerator.updateWidget(this.figureView.getGraphicsViewContainerNode(),n,t,i)}},_setDocumentFocusIfNeeded:function(){null===s.curNode&&this._focusService.setFocus()},_setupInteractionEvents:function(e){var t=this;this.own(e.on("interaction",(function(e){t.feval(e.fcn,e.args)})))},undockFigure:function(){c.getInstance().publish(this.figureModel.getInteractionChannel(),JSON.stringify({method:"launchFigure",args:{editorId:this.figureModel.editorId}}))},addInteractionEventProcessedListener:function(e){this.own(n(this,"InteractionEventProcessed",e))},addFigureStateChangedListener:function(e){this.own(n(this,"FigureStateChanged",e))},addFigureURIChangedListener:function(e){this.own(n(this,"FigureURIChanged",e))},addUpdateLayoutListener:function(e){this.own(n(this,"updateLayout",e))},addWindowMouseListener:function(e,t){this.addCustomEventListener(e,t)},addCustomEventListener:function(e,t){this.own(n(this,e,t))},_isValidFigure:function(){return this._isEnabledFigure()&&(this._isInlineFigure()||this._isRHSSelectedFigure())},_isEnabledFigure:function(){var e=this.figureView.getWrapperNode();return e.parentElement&&!i.contains(e,"stale_output")},_isInlineFigure:function(){var e=this.figureView.getWrapperNode();return e.parentElement&&i.contains(e.parentElement,"inlineElement")},_isRHSSelectedFigure:function(){var e=this.figureView.getWrapperNode();return e.parentElement&&(i.contains(e.parentElement,"focusedOutput")||i.contains(e.parentElement,"selectedOutput"))&&i.contains(e.parentElement,"rightPaneElement")},addResizeListeners:function(){this.addWindowMouseListener("LayoutResize",t.hitch(this,"_handleLayoutResizeEvent")),this.addWindowMouseListener("InlineViewLayout",t.hitch(this,"_inlineViewLayoutEventHandler"))},addInteractionFeatures:function(){if(this._createCodeGenWidget(),this._eventHandler=new v,this._actionManager=new f({figureView:this.figureView,figureModel:this.figureModel,codeGenerator:this._codeGenerator}),this._actionManager.setUndoRedoManager(this._figureUndoRedoManager),this.addInteractionEventProcessedListener(t.hitch(this,(function(){this._eventHandler.processNextPendingEvent()}))),this._promptController=new h({figureView:this.figureView,figureModel:this.figureModel}),this._setupInteractionEvents(this._promptController),this.addResizeListeners(),this.addWindowMouseListener("WindowButtonMouseMove",(function(e){this._isValidFigure()&&this._promptController._handleMouseMove(e)})),this.addWindowMouseListener("WindowButtonMouseEnter",t.hitch(this,(function(e){this._promptController._handleMouseEnter(e)}))),this.addWindowMouseListener("_WrapperElementMouseLeave",t.hitch(this,(function(e){this._promptController._handleMouseLeave(e)}))),!this.figureView.hasCreatedPlaybackControls()){var e=new p;e.setFigureViewAndModel(this.figureView),this.figureView.setplaybackControls(e),this.figureView.setPromptController(this._promptController)}c.getInstance().subscribe(this.figureModel.getRefreshChannel(),"_refreshFromServer",this),this._enableInteraction=!0},_handleLayoutResizeEvent:function(e){this._codeGenerator&&this._codeGenerator.changeCodeGenLayout(this.figureView.getFigureWidth()),this.toggleFigureComponents(),this.figureView.recalculateAxesPositionForPlaybackControls(),this.figureView.shouldHidePlaybackControls(),this.figureView._handleLayoutResizeEvent(!1)},toggleFigureComponents:function(){this.figureView.hasRenderingSize()?this._codeGenerator.enable():this._isValidFigure()&&this._codeGenerator.disable()},_inlineViewLayoutEventHandler:function(){var e=this.figureView.getWrapperNode();e.parentElement&&i.contains(e.parentElement,"inlineElement")&&this._codeGenerator&&this._codeGenerator.changeCodeGenLayout(this.figureView.getFigureWidth()),this.toggleFigureComponents(),this.figureView.recalculateAxesPositionForPlaybackControls(),this.figureView.shouldHidePlaybackControls()},setRequiredNumberOfAnimationFrames:function(){this.figureView.setRequiredNumberOfAnimationFrames()},setEmbeddedOutputsView:function(e){this.figureView&&this.figureView.setEmbeddedOutputsView(e)},shouldCaptureAnimationFrames:function(e){if(this.figureView&&this.figureView._graphicsView)if(e){this.figureView.setArrOfURIandTimeToEmpty();var t=this.figureView.animationListener.bind(this.figureView);this.figureView._graphicsView.setPictureListener(t)}else this.figureView._graphicsView.setPictureListener(null)},setAnimatedFigureFrameInMap:function(e){this.figureView.setAnimatedFigureFrameInMap(e)},getAnimatedFigureFrameInMap:function(){return this.figureView.getAnimatedFigureFrameInMap()},setFigureUndoRedo:function(e){this._figureUndoRedoManager=new g({document:e})},_createCodeGenWidget:function(){this._codeGenFactory&&(this._codeGenerator=this._codeGenFactory.createEditorCodeGenerator(),this._codeGenerator.setCodeGenDependencies({output:this._output,outputPositions:this.figureModel.getVisibleAxesPositions()}),this._codeGenerator.setEnablementCondition(t.hitch(this,(function(){return 1===this._getNumberOfOutputsOnLineCallback()})),this._cannotidentifyFigureTooltip))},_setFigureInteractionData:function(e){this.figureModel.setInteractionData(e),this._actionManager.setState(this.figureModel),this._registerUndoRedoInteraction(e),this._updateCodeGen(),e&&e.isFakeCode&&this._codeGenerator.disableUpdateCodeBtn(this._cannotidentifyFigureTooltip)},_registerUndoRedoInteraction:function(e){if(e.iRegisterAction){let e={actionID:"registerAction",interactionType:"modelessInteraction",codeGenState:{attachCodeGenOnUndo:!1,attachCodeGenOnRedo:!0}};this._codeGenerator&&this._codeGenerator.isCodeGenAttached()&&(e.codeGenState.attachCodeGenOnUndo=!0),this._figureUndoRedoManager.insertInteractionsForUndoRedo(this.figureModel,e)}},reconnectView:function(){this.figureView&&this.figureView.reconnectView()},getAltText:function(){},disconnectView:function(){this.figureView&&this.figureView.disconnectView()},setFocusedFigure:function(e){this._focusedFigure=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(211),i(210),i(1133),i(222),i(230),i(206),i(248),i(204),i(217),i(213),i(225),i(223),i(208),i(232),i(455),i(681),i(4744),i(2024)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return e([r,a,_],{_figureId:"",_editorId:"",_figureUri:null,_imgElement:null,_wrapperElement:null,_runInfoElement:null,_figureSize:null,_isDisconnected:!1,_figureContainerPane:null,_embeddedFigureFactory:null,_resizeCompleteLister:null,isFigureEmbedded:!0,_playbackControls:null,_embeddedOutputsView:null,_hasRequiredNumberOfAnimationFrames:!1,_FIGURE_DEFAULT_WIDTH:560,_firstLayoutEvent:!0,_promptController:!1,_finalCanvasElement:null,_documentView:null,_viewThreshold:{Width:200,Height:100},_isFirstOutput:null,_TOLERANCE:200,_MAXWIDTH:800,_MAXHEIGHT:800,_MINFIGSIZE:5,_FIGURE_ASPECT_RATIO:.75,_cachedBlankImageSrc:null,_figureViewInteractionListeners:null,_playbackFigureInteractionListeners:null,_synchronizedDrawnowState:!1,_arrOfURIandTime:[],_trackFigureAnimation:new Map,_animationTimeout:null,_didUserPause:!1,_finalImageElement:null,_animationSpeed:1,_figureImageElement:null,_hasDisabledInteractions:!1,_isFirstTimeResize:!0,_REMOTE_CLASSIFIER_ROOT:"FEvalClearDrawnowSync",constructor:function(e,t,n,o,r,a){if(this._wrapperElement=i.create("div",{className:"figureElement"}),null!=e&&"number"==typeof e[0]){var s=Math.max(window.innerWidth,this._MAXWIDTH),l=Math.max(window.innerHeight,this._MAXHEIGHT);this._figureSize=this._scaleFigureSize(e,s,l)}this._editorId=t,this._figureId=n,this._figurePoolManager=o,this._arrOfURIandTime=[],this._trackFigureAnimation=new Map,this._hasRequiredNumberOfAnimationFrames=!1,this._borderContainer=r,this.setDocumentView(a)},reconnectView:function(){},disconnectView:function(){},_attachInteractionListeners:function(){this._figureViewInteractionListeners=[];var e=this;this._figureViewInteractionListeners.push(s(this._imgElement,l.move,(function(t){e.emit("WindowButtonMouseMove",t)}))),this._figureViewInteractionListeners.push(s(this._imgElement,l.enter,(function(t){e.emit("WindowButtonMouseEnter",t)}))),this._figureViewInteractionListeners.push(s(this._wrapperElement,l.leave,(function(t){e.emit("WrapperElementMouseLeave",t)}))),this._figureViewInteractionListeners.push(s(this._imgElement,l.leave,(function(t){e.emit("WindowButtonMouseLeave",t)}))),this._figureViewInteractionListeners.push(s(this._imgElement,"dragstart",(function(e){dojo.stopEvent(e)}),!0)),this._figureViewInteractionListeners.push(s(this._imgElement,"dragend",(function(e){dojo.stopEvent(e)}),!0)),this.own.apply(this,this._figureViewInteractionListeners)},createImageNode:function(e,t,n){var o={className:"figureImage figureContainingNode",src:e};this._imgElement=i.create("img",o,this._wrapperElement),this._figureSize&&this._figureSize.length>0&&u.set(this._imgElement,{width:this._figureSize[0]+"px"}),this._figureContainerPane=this._imgElement,this._attachInteractionListeners()},notifyGUIImageCreated:function(e,t){this._imgElement&&(this._imgElement.onload=c.hitch(this,(function(){m.getInstance().publish("/graphics/guiclientready",{Event:"NewClient",EditorID:e,FigureID:t}),this._imgElement.onload=void 0})))},createWebGraphicsNode:function(e,t,o){if(this._figureViewInteractionListeners=null,this._figureContainerPane=i.create("div",null),t)this._replaceFigureContainingDOMNode(t);else{if(this._cachedBlankImageSrc&&this._cachedBlankImageSrc.width===this._figureSize[0]&&this._cachedBlankImageSrc.height===this._figureSize[1])var r=i.create("img",{src:this._cachedBlankImageData.src},this._wrapperElement);else{var a=document.createElement("canvas");a.width=this._figureSize[0],a.height=this._figureSize[1],this._cachedBlankImageData={src:a.toDataURL("image/png"),width:this._figureSize[0],height:this._figureSize[1]};r=i.create("img",{src:this._cachedBlankImageData.src},this._wrapperElement)}n.add(r,"figureContainingNode"),u.set(r,"max-width","100%")}if(n.add(this._figureContainerPane,"figureContainingNode"),u.set(this._figureContainerPane,{width:this._figureSize[0]+"px",height:"","max-width":"100%",display:"inline-block"}),o){this._packet=JSON.parse(e),this.embeddedFigure=this._figurePoolManager.getFigure(this._packet.channel),this.embeddedFigure||(this.embeddedFigure=this._createEmbeddedFigure(o),this._figurePoolManager.addFigure(this._packet.channel,this.embeddedFigure)),this._imgElement=this.embeddedFigure.domNode,this._createEmbeddedWebGraphicsNode(),this._attachInteractionListeners();var l=s(this.embeddedFigure._graphicsCompleteHandler,"graphicscomplete",function(){if(this.embeddedFigure){var e=null!==this.embeddedFigure.domNode.querySelector(".ImageView"),t=this.embeddedFigure.domNode.querySelector(".SceneView");(e||0!==t.height)&&(this._handleGraphicsComplete(),l.remove())}}.bind(this));this.embeddedFigure.figureManager.propertyChanged({property:"Visible",value:!0}),this._parentOffScreen(),this._setInitialDimensions(),this.own(s(window,"resize",c.hitch(this,(function(){this._handleLayoutResizeEvent(!0)}))))}else{this.embeddedFigure=e,this._imgElement=this.embeddedFigure.domNode,this._packet=this.embeddedFigure._packet,i.place(this.embeddedFigure.domNode,this._figureContainerPane,"only"),this._replaceFigureContainingDOMNode(this._figureContainerPane);l=s(this.embeddedFigure._graphicsCompleteHandler,"graphicscomplete",function(){this.emit("refreshURI")}.bind(this))}},_setInitialDimensions:function(){if(this.embeddedFigure){var e=this._calculateInitDimensions();this._setViewDimensions(this._offscreenNode,e),this._setViewDimensions(this.embeddedFigure.domNode,e),this._setModelDimensions(e),this._setViewDimensions(this._getGbtFrame(),e)}},_calculateInitDimensions:function(){var e,t=this._packet.Position,i=t[2],n=t[3],o=n/i,r=document.querySelector(".outputsOnRight");if(r){var a=r.getBoundingClientRect(),s=r.querySelector(".outputContentPane");s&&(a=s.getBoundingClientRect()),e=a.width-20}else e=this._documentView.getClientWidth()-100;return{width:i=Math.round(Math.min(i,e)),height:n=Math.round(i*o)}},_parentOffScreen:function(){this._offscreenNode=i.create("div",{style:"height:100%; width:100%; visibility: visible; position: absolute; top: -9999px; left: -9999px"},document.body),this._offscreenNode.appendChild(this._wrapperElement)},_handleGraphicsComplete:function(){this.embeddedFigure&&(this.emit("refreshURI",{serverId:this._packet.channel}),u.set(this.embeddedFigure.domNode,{width:"100%",height:"100%"}),this._offscreenNode.remove(),this._handleLayoutResizeEvent(!0))},_createEmbeddedFigure:function(e){var t=new v;this._packet.graphicsCompleteHandler=t.handleGraphicsComplete.bind(t);var i=e.createWidget(this,this._packet,this._handleServerMessage.bind(this));return i._graphicsCompleteHandler=t,i},_handleServerMessage:function(e){"windowClosed"===e.data.eventType&&this._figurePoolManager.deleteFigure(this._packet.channel)},_createEmbeddedWebGraphicsNode:function(){t.isDescendant(this._figureContainerPane,this._wrapperElement)||this._replaceFigureContainingDOMNode(this._figureContainerPane),this._figureContainerPane.appendChild(this.embeddedFigure.domNode);var e="/graphics/"+this.getServerID()+"/event";m.getInstance().publish(e,{Event:"NewClient"}),this.own(s(this._imgElement,l.press,(function(e){e.stopPropagation()}))),this.own(s(this._imgElement,"keydown",function(e){this._blockKeyboardKeys(e)}.bind(this)))},_blockKeyboardKeys:function(e){if("textarea"!==e.target.type)switch(e.keyCode){case p.RIGHT_ARROW:case p.LEFT_ARROW:case p.UP_ARROW:case p.DOWN_ARROW:e.stopPropagation(),e.preventDefault()}},getServerID:function(){return this._packet.channel},destroy:function(){this.inherited(arguments),this._runInfoElement&&this._runInfoElement.destroyView(),this.embeddedFigure&&(this.embeddedFigure.figureManager.propertyChanged({property:"Visible",value:"off"}),this.embeddedFigure=null),this.destroyPlaybackControls()},hasCreatedPlaybackControls:function(){return!(!this._playbackControls||!this._playbackControls.hasCreatedPlaybackControls())},showRunCodePrompt:function(){this._runInfoElement||(this._runInfoElement=new b,this._runInfoElement.setTarget(this._wrapperElement))},deleteRunCodePrompt:function(){this._runInfoElement&&(this._runInfoElement.destroy(),this._runInfoElement=null)},getWrapperNode:function(){return this._isFirstOutput=null,this._wrapperElement},getDomNode:function(){return this._imgElement},getGraphicsViewContainerNode:function(){return this._figureContainerPane?this._figureContainerPane:null},getFigureURI:function(){var e=h(".SceneView",this._figureContainerPane)[0];if(e)return e.toDataURL();var t=h("img",this._figureContainerPane)[0];return t?t.src:n.contains(this._figureContainerPane,"figureImage")?this._figureContainerPane.src:void 0},getPosition:function(){return d.position(this.getDomNode())},getFigureWidth:function(){return this._figureSize[0]},_scaleFigureSize:function(e,t,i){return e[0]>t&&e[0]>0&&(e[1]=t/e[0]*e[1],e[0]=t),e[1]>i&&e[1]>0&&(e[0]=i/e[1]*e[0],e[1]=i),e},getFigureSize:function(){return this._figureSize},setDocumentView:function(e){e&&(this._documentView=e,this.setupResizeAspect(),this._setupLayoutChangeAspect())},setupResizeAspect:function(){this.onProgressResizeThrottled=o(c.hitch(this,(function(){this._handleLayoutResizeEvent(!0)}),100)),this.own(f.after(this._documentView,"onResize",c.hitch(this,(function(e){this.emit("LayoutResize",{}),this._resizingInProgress||this.onProgressResizeThrottled()})))),this.own(f.after(this._borderContainer,"_beginSplitterDrag",c.hitch(this,(function(e){this._resizingInProgress=!0})))),this.own(f.after(this._borderContainer,"_endSplitterDrag",c.hitch(this,(function(e){this._resizingInProgress=!1,this._handleLayoutResizeEvent(!0)}))))},_setupLayoutChangeAspect:function(){this.own(f.after(this._documentView,"onLayoutChange",c.hitch(this,(function(e){this.emit("InlineViewLayout",{}),this._handleLayoutResizeEvent(!0),this.disableFigureInteractions()}))))},hasRenderingSize:function(){var e=!1;if(this._wrapperElement&&t.isDescendant(this._wrapperElement,document.body)){var i=d.position(this._wrapperElement);e=this._viewThreshold.Width<i.w&&this._viewThreshold.Height<i.h}return e},getAxesPlotBox:function(e){},isInsideAxes:function(e,t,i){},isInsideLabel:function(e,t,i){},isInsideAnnotations:function(e,t){},_replaceFigureContainingDOMNode:function(e){var t=h(".figureContainingNode",this._wrapperElement);t.length>0?i.place(e,t[0],"replace"):i.place(e,this._wrapperElement,"only")},isFigureInline:function(){var e=this.getWrapperNode();return e.parentElement&&n.contains(e.parentElement,"inlineElement")},setArrOfURIandTimeToEmpty:function(){this._arrOfURIandTime=[]},_setAnimationMap:function(e,t,i){var n={};n.index=t,n.arrOfURIandTime=i,this._trackFigureAnimation.set(e,n)},exportAnimations:function(){g.sendMessage({FEval:{function:"matlab.internal.editor.ExportAnimationTo",arguments:[this._trackFigureAnimation.get(this._figureId)],nargout:0}})},setAnimatedFigureFrameInMap:function(e){this._trackFigureAnimation=e},getAnimatedFigureFrameInMap:function(){return this._trackFigureAnimation},animationListener:function(e,t){this._arrOfURIandTime.push({imageURI:e,timeStamp:t}),this._setAnimationMap(this._figureId,0,this._arrOfURIandTime)},_setAnimationSpeed:function(e){this._animationSpeed=e},_enableInteractions:function(){this._hasDisabledInteractions&&(this._hasDisabledInteractions=!1,this.enableFigureInteractions(),this._figureViewInteractionListeners=null,this._attachInteractionListeners())},_disableInteractions:function(){if(!this._hasDisabledInteractions){if(this._figureViewInteractionListeners)for(var e=0;e<this._figureViewInteractionListeners.length;e++)this._figureViewInteractionListeners[e].remove();this._hasDisabledInteractions=!0,this._addPreventPlaybackOutputDefaultEventsHandlers(),this._promptController&&this._promptController.setVisible(!1),this.disableFigureInteractions()}},shouldHidePlaybackControls:function(){if(this._playbackControls&&this._playbackControls.hasCreatedPlaybackControls()){var e=this.getPosition(),t=Math.round(e.w),i=Math.round(e.w*this._FIGURE_ASPECT_RATIO);t<300||i<150?this._playbackControls.hidePlaybackControls():this._playbackControls.displayPlaybackControls()}},setEmbeddedOutputsView:function(e){this._embeddedOutputsView=e},_createNewPlaybackControlsNode:function(){var e=this._getCanvas(),t=this._getImage(),o=this.getFigureURI(),r=e||t,a=h(".GraphicsView",this._figureContainerPane)[0],s=i.create("img",{src:o,style:{width:"100%",height:"100%",display:"inline"}});i.place(s,a,"last"),n.add(s,"PlaybackControlsView"),u.set(r,"display","none")},_getCanvas:function(){return h(".SceneView",this._figureContainerPane)[0]},_getImage:function(){return h(".ImageView",this._figureContainerPane)[0]},_replayAnimationFrames:function(e){var t=e.currentTarget;u.set(t,{display:"none"});var i=dojo.query(".pauseButton",t.parentNode);u.set(i[0],{display:"block"}),this._switchPlaybackControlsView();var n=this;this._disableInteractions();var o=n._trackFigureAnimation.get(n._figureId),r=o.arrOfURIandTime;o.index===r.length&&n._setAnimationMap(n._figureId,0,r),this._figureImageElement||this._createNewPlaybackControlsNode(),this._figureImageElement=h(".PlaybackControlsView",this._figureContainerPane)[0],function e(){var o=n._trackFigureAnimation.get(n._figureId),r=o.arrOfURIandTime,a=o.index;a<n._playbackControls.getMaxSliderValue()?(dojo.attr(n._figureImageElement,"src",r[a].imageURI),n._animationTimeout=setTimeout(e,32/n._animationSpeed),a++,n._playbackControls.changeSliderValue(a)):(u.set(i[0],{display:"none"}),u.set(t,{display:"block"}),a=0,n.hasDisabledInteractions&&(n._enableInteractions(),n._clearPreventPlaybackOutputDefaultEventsHandlers())),n._didUserPause&&(n._didUserPause=!1,clearTimeout(n._animationTimeout)),n._setAnimationMap(n._figureId,a,r)}()},changeAnimationSpeed:function(e){this._animationSpeed=e},onSliderChange:function(e,t){this._disableInteractions(),this._figureImageElement||this._createNewPlaybackControlsNode(),this._figureImageElement||(this._figureImageElement=h(".PlaybackControlsView",this._figureContainerPane)[0]);var i=this._trackFigureAnimation.get(this._figureId).arrOfURIandTime;t<this._playbackControls.getMaxSliderValue()?dojo.attr(this._figureImageElement,"src",i[t].imageURI):this._hasDisabledInteractions&&(this._switchPlaybackControlsView(),t=i.length),this._setAnimationMap(this._figureId,t,i),t>=this._playbackControls.getMaxSliderValue()&&this._hasDisabledInteractions&&(this._enableInteractions(),this._clearPreventPlaybackOutputDefaultEventsHandlers())},_switchPlaybackControlsView:function(){var e=this._getCanvas(),t=this._getImage(),i=e||t;i&&u.set(i,"display","block"),dojo.query(".PlaybackControlsView").forEach(dojo.destroy),this._figureImageElement=null},_pauseAnimation:function(e){var t=e.currentTarget;u.set(t,{display:"none"});var i=dojo.query(".playButton",t.parentNode);u.set(i[0],{display:"block"}),this._didUserPause=!0},setplaybackControls:function(e){this._playbackControls=e},setRequiredNumberOfAnimationFrames:function(){this._hasRequiredNumberOfAnimationFrames=!0},showPlaybackControls:function(){if(this._playbackControls){var e=this._trackFigureAnimation.get(this._figureId);e&&(this._hasRequiredNumberOfAnimationFrames||e.arrOfURIandTime.length>9)&&!this.hasCreatedPlaybackControls()&&(this._playbackControls.createPlaybackControls(),this._embeddedOutputsView&&this._embeddedOutputsView.outputChanged(),this.shouldHidePlaybackControls())}},recalculateAxesPositionForPlaybackControls:function(){this.hasCreatedPlaybackControls()&&this._playbackControls.setPlaybackLeftPosition()},totalNumberOfAnimationFrames:function(){var e=this._trackFigureAnimation.get(this._figureId);if(e&&e.arrOfURIandTime.length>1)return e.arrOfURIandTime.length-1},enableFigureInteractions:function(){if(!this._hasDisabledInteractions){var e=this._getGbtFrame();e&&n.add(e,"enableFigureInteractions")}},disableFigureInteractions:function(){var e=this._getGbtFrame();e&&n.remove(e,"enableFigureInteractions")},hidePlaybackControls:function(){this._playbackControls&&this._playbackControls.hidePlaybackControls()},codeGenAttached:function(){var e=this._trackFigureAnimation.get(this._figureId);e&&e.arrOfURIandTime.length>1&&this.hasCreatedPlaybackControls()&&(this.destroyPlaybackControls(),this._trackFigureAnimation.delete(this._figureId))},destroyPlaybackControls:function(){this._playbackControls&&this.hasCreatedPlaybackControls()&&(this._switchPlaybackControlsView(),this._clearPreventPlaybackOutputDefaultEventsHandlers(),this._playbackControls.destroyPlaybackControls(),this._playbackControls=null)},_addPreventPlaybackOutputDefaultEventsHandlers:function(){this._clearPreventPlaybackOutputDefaultEventsHandlers(),this._playbackFigureInteractionListeners=[],this._playbackFigureInteractionListeners.push(s(this._imgElement,l.press,(function(e){dojo.stopEvent(e)}))),this.own.apply(this,this._playbackFigureInteractionListeners)},_clearPreventPlaybackOutputDefaultEventsHandlers:function(){if(this._playbackFigureInteractionListeners)for(var e=0;e<this._playbackFigureInteractionListeners.length;e++)this._playbackFigureInteractionListeners[e].remove();this._playbackFigureInteractionListeners=null},setPromptController:function(e){this._promptController=e},setSynchronizedDrawnowState:function(e){this._synchronizedDrawnowState=e},_handleLayoutResizeEvent:function(e){if(this.embeddedFigure&&this.embeddedFigure.domNode&&t.isDescendant(this.embeddedFigure.domNode,document)){this.showPlaybackControls();var i=this._packet.Position,n={width:Math.round(i[2]),height:Math.round(i[3])},o=this.getPosition();if(o.w<n.width||o.h<n.height){var r=i[3]/i[2];n.height=Math.round(o.w*r),n.width=Math.round(o.w)}this._setViewDimensions(this._getGbtFrame(),n),e&&this._setModelDimensions(n)}},_getGbtFrame:function(){var e=null;return this.embeddedFigure&&this.embeddedFigure.domNode&&(e=h(".gbtFigureFrame",this.embeddedFigure.domNode)[0]),e},_setViewDimensions:function(e,t){e&&(this._restrictDimensions(t),u.set(e,{width:t.width+"px",height:t.height+"px"}))},_setModelDimensions:function(e){this._restrictDimensions(e),this.embeddedFigure.figureManager.propertyChanged({property:"Position",value:[1,1,e.width,e.height]})},_restrictDimensions:function(e){e.width=Math.min(Math.max(e.width,this._MINFIGSIZE),this._MAXWIDTH),e.height=Math.min(Math.max(e.height,this._MINFIGSIZE),this._MAXHEIGHT)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){return e(t,{handleGraphicsComplete:function(){this.emit("graphicscomplete")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{figureId:""})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(455)],o=i.dj.d(n,(function(e,t,i){return e([],{_DEFERRED_IMAGE_NAMESPACE:"/liveeditor/figure/deferredjavaimage/",constructor:function(e){this._editorId=e,this._messageService=i.getInstance(),this._images={},this._deferreds={},this._messageService.subscribe(this._DEFERRED_IMAGE_NAMESPACE+this._editorId,"_handleDeferredImage",this)},whenImageReady:function(e,i,n){if(this._images[e])return i(this._images[e]),void delete this._images[e];this._deferreds[e]=new t,this._deferreds[e].then(function(t){i(t),delete this._deferreds[e]}.bind(this),function(t){n(),delete this._deferreds[e]}.bind(this))},_handleDeferredImage:function(e){var t=e.data.figureId,i=e.data.image;this._deferreds[t]?this._deferreds[t].resolve(i):this._images[t]=i},destroy:function(){this._messageService.unsubscribe(this._DEFERRED_IMAGE_NAMESPACE+this._editorId,"_handleDeferredImage",this),this._images=null,this._deferreds=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(455),i(937)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{channel:null,pendingActions:null,_actionService:null,_aspectHandles:null,_embeddedFigureSetting:null,_FIGURE_TOOLSTRIP_PUSH_ACTION_IDS:["figure.grid","figure.colorbar","figure.legend","figure.cleargrid","figure.clearcolorbar","figure.clearlegend","figure.xlabel","figure.ylabel","figure.title","figure.xgrid","figure.ygrid"],_FIGURE_TOOLSTRIP_TOGGLE_ACTION_IDS:["figure.line","figure.arrow","figure.doublearrow","figure.textarrow"],constructor:function(e,t){this._actionService=t,this.channel="/toolstrip/toolstripactionevent/"+e,n.getInstance().subscribe(this.channel,"_actionCallback",this),this.pendingActions=[],this._aspectHandles=[],this._loadActions()},_loadActions:function(){var e=[],o=this;this._FIGURE_TOOLSTRIP_PUSH_ACTION_IDS.forEach((function(t){e.push({id:t,enabled:!0,selected:!1,callback:function(){return n.getInstance().publish(o.channel,{actionId:t}),!0}})})),this._FIGURE_TOOLSTRIP_TOGGLE_ACTION_IDS.forEach((function(t){e.push({id:t,enabled:!0,selected:!1,callback:function(){return!0}})})),this._actionService.loadActions(e),this._aspectHandles.push(i.after(this._actionService,"onActionChange",t.hitch(this,"_handleActionChange"),!0))},_handleActionChange:function(e){"selected"===e.key&&e.newValue!==e.oldValue&&this._FIGURE_TOOLSTRIP_TOGGLE_ACTION_IDS.some((function(t){return t===e.id}))&&this._feval(e)},_feval:function(e){this.pendingActions.push(e),n.getInstance().publish(this.channel,{actionId:e.id,Selected:e.newValue})},_actionCallback:function(e){var t=this,i=e.data.id;if(e.data.operator&&"not"===e.data.operator){this.pendingActions.forEach((function(e){e.id!==i&&t._actionService.updateAction(e.id,{selected:!1})}));var n=this.pendingActions.find((function(e){return e.id==i}));n&&this.pendingActions&&this.pendingActions.length>0?this.pendingActions=[n]:this.pendingActions=[]}else{var o=-1;this.pendingActions.some((function(e,n){e.id===i&&(t._actionService.updateAction(e.id,{selected:!1}),o=n)})),o>=0&&this.pendingActions.splice(o,1)}},destroy:function(){n.getInstance().unsubscribe(this.channel,"_actionCallback",this),this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(455)],o=i.dj.d(n,(function(e,t,i){return e(null,{_REMOVE_DELAY:100,_isEvalRunning:!1,constructor:function(e,t){this._editorId=e,this._idsPendingRemoval=[],this._deletionChannel=t},destroy:function(){this._flushSnapshotsToRemoveQueue()},removeSnapshot:function(e){this._idsPendingRemoval.push(e),1===this._idsPendingRemoval.length&&setTimeout(t.hitch(this,"_flushSnapshotsToRemoveQueue"),this._REMOVE_DELAY)},_flushSnapshotsToRemoveQueue:function(){if(!this._isEvalRunning&&0!==this._idsPendingRemoval.length){var e="{'"+this._idsPendingRemoval.join("', '")+"'}",t={editorId:this._editorId,figureIds:e};i.getInstance().publish(this._deletionChannel,t),this._idsPendingRemoval=[]}},evalComplete:function(){this._isEvalRunning=!1,this._flushSnapshotsToRemoveQueue()},evalStarted:function(){this._isEvalRunning=!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(548),i(1357)],o=i.dj.d(n,(function(e,t,i){return e(null,{parseAltTextJSON:function(e){try{var t=JSON.parse(e)}catch(e){return i=""}"string"==typeof t.Tex&&(t.Tex=[t.Tex]),"string"==typeof t.LaTex&&(t.LaTex=[t.LaTex]);var i=t.String;return Array.isArray(t.Tex)&&t.Tex.length>0&&t.Tex.forEach(function(e){var t=this.parseTex(e,"tex");i=i.split(e).join(t)}.bind(this)),Array.isArray(t.LaTex)&&t.LaTex.length>0&&t.LaTex.forEach(function(e){var t=this.parseTex(e,"latex");i=i.split(e).join(t)}.bind(this)),i},parseTex:function(e,n){if(e.match(/[{_^\\]/)){var o=new t({equationFormat:"tex"===n?"simpletex":"tex"}).getModel(e);return i.export([o])}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4751)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(455)],o=i.dj.d(n,(function(e,t){return e(null,{CONNECTION_STATE:{CONNECTED:1,DISCONNECTED:0},constructor:function(e){this._editorId=e,this._connections={},t.getInstance().subscribe("/liveeditor/figure/disconnect/*","_disconnectionHandler",this),t.getInstance().subscribe("/liveeditor/figure/reconnect/*","_reconnectionHandler",this)},_disconnectionHandler:function(e){var t=e.data,i=this._connections[t];i||(i=this._createEmptyConnection()),i.state=this.CONNECTION_STATE.DISCONNECTED,this._connections[t]=i,i.output&&i.output.disconnect()},_reconnectionHandler:function(e){var t=e.data,i=this._connections[t];i||(i=this._createEmptyConnection()),i.state=this.CONNECTION_STATE.CONNECTED,this._connections[t]=i,i.output&&i.output.reconnect()},registerOutput:function(e,t){this._connections[e]||(this._connections[e]=this._createEmptyConnection()),this._connections[e].output=t,!this._connections[e].state===this.CONNECTION_STATE.CONNECTED?t.disconnect():t.reconnect()},getConnectionStatus:function(e){return this._connections[e].state},removeOutput:function(e){delete this._connections[e]},_createEmptyConnection:function(){return{output:null,state:this.CONNECTION_STATE.CONNECTED}},destroy:function(){t.getInstance().unsubscribe("/liveeditor/figure/disconnect/*","_disconnectionHandler",this),t.getInstance().unsubscribe("/liveeditor/figure/reconnect/*","_reconnectionHandler",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4753)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(452),i(402),i(438),i(348)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r],{constructor:function(){},getApplicableDomNodeClasses:function(){return["embeddedOutputsFigure"]},enter:function(e,r,a){var s=t(".figureContainingNode",r)[0],l=(s.parentNode?t("img",s.parentNode)[0]:t("img",s)[0]).getAttribute("src"),c=parseInt(s.style.width,10),d=i.splitImageDataURI(l);if(d){var u=e.getImageFileName(a.exampleName,d.format),h=document.createElement(n.IMAGEDATA);h.setAttribute(n.FILEREF,a.imageLocation+u),c&&h.setAttribute("width",c);var p=o.nestElement(h,[n.IMAGEOBJECT,n.MEDIAOBJECT,n.INFORMALFIGURE]);if(s.getAttribute("alt")){var f=document.createElement("alt"),g=document.createTextNode(s.getAttribute("alt"));f.appendChild(g),h.parentNode.before(f)}e.appendElement(p),e.addToImageList({fileName:u,base64Data:l,canBeThumbnail:!0})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4755)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(213),i(225),i(452),i(936),i(348),i(829)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([s],{DEFAULT_CONTEXT:{figureFormat:"png",figureResolution:600},_FILE_SCHEME:"file:///",_PX_PT_RATIO:.75,_FIGUREFILE_PREFIX:"figure",constructor:function(e){this._outputView=e.getEmbeddedOutputsView()},getApplicableDomNodeClasses:function(){return["embeddedOutputsFigure"]},reset:function(){this._figureCounter=0},_checkContext:function(e){return e.figurePath?t.mixin({},this.DEFAULT_CONTEXT,e):e},enter:function(e,t,i){if(this._isEmbeddedFigureOutput(t)){var n=this._outputView.getOutputFromOutputDiv(t);if(i=this._checkContext(i),n&&i.figurePath&&n.canPrintToFile())this._waitForGraphicsToUpdateToAddToDOM(e,t,n,i);else{var o=t.firstChild.querySelector("canvas.SceneView")||t.firstChild.querySelector("img.ImageView"),r=new Image;r.src=o.toDataURL?o.toDataURL():o.src,e.addToBody(r.outerHTML)}}else{t=t.cloneNode(!0);var s=a.removeElementsWithClass(t,".figureWidget");if(i.availableWidth){var l=i.scaleFiguresToFit?i.availableWidth:-1;this._updateFiguresForFixedSize(s,l,i.imageSizeInPoints)}else this._updateFiguresInOutputs(s);i.imagePath?e.addToBody(this._convertDataURIToPath(s,i).then((function(){return s.outerHTML}))):e.addToBody(s.outerHTML)}return!0},_updateFiguresInOutputs:function(e){o(".ImageView",e).forEach((function(e){n.set(e,"height","auto"),n.set(e.parentNode,"height","auto")}))},_updateFiguresForFixedSize:function(e,t,i){var r=i?this._PX_PT_RATIO:1;o(".figureImage",e).forEach((function(e){var i=n.getComputedStyle(e),o=parseInt(i.height)*r;o=o||parseInt(e.height)*r;var a=parseInt(i.width)*r;if(a=a||parseInt(e.width)*r,-1!==t&&a>t){var s=t/a;a=t,o*=s}e.setAttribute("height",o),e.setAttribute("width",a)}),this)},_convertDataURIToPath:function(e,t){var i=o("img",e);if(i.length){var n,a=i[0],s=r.splitImageDataURI(a.src);return n=t.imagePath+this._FIGUREFILE_PREFIX+this._figureCounter+"."+s.format,this._figureCounter+=1,l.writeToPath(a.src,n).then((function(){a.setAttribute("src","file:///"+n)}))}},_isEmbeddedFigureOutput:function(e){var t=e.firstChild.querySelector("canvas.SceneView"),i=e.firstChild.querySelector("img.ImageView"),n=e.firstChild.querySelector("img.figureImage");return!!t||!(!i||n)},_waitForGraphicsToUpdateToAddToDOM:function(e,t,o,r){var a=t.firstChild.querySelector("canvas.SceneView")||t.firstChild.querySelector("img.ImageView");a=t.firstChild.querySelector("img.PlaybackControlsView")||a;var s=new i,l=r.figurePath+"/"+o.uid+"."+r.figureFormat;o.printToFile(r.figureFormat,r.figureResolution,l).then(function(){var e=new Image;e.src=a.toDataURL?a.toDataURL():a.src;const t=this._PX_PT_RATIO;if(r.availableWidth){const o=r.scaleFiguresToFit?r.availableWidth:-1,s=r.imageSizeInPoints?t:1,l=n.getComputedStyle(a);let c=parseInt(l.height)*s;c=c||parseInt(a.height)*s;let d=parseInt(l.width)*s;if(d=d||parseInt(a.width)*s,-1!==o&&d>o){var i=o/d;d=o,c*=i}e.height=c,e.width=d}else n.set(e,"height","auto");s.resolve(e.outerHTML)}.bind(this)),e.addToBody(s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4757)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(495),i(829),i(1442),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{_FIGURE_PREFIX:"figure_",_FIGURE_DEFAULT_EXT:".eps",_FIGURE_DEFAULT_FORMAT:"epsc",_FIGURE_DEFAULT_RESOLUTION:"0",_FIGURE_DEFAULT_SIZE:560,_IMAGE_DEFAULT_EXT:".png",_PIXELS_TO_EM:9.965,_GRAPHICS_COMMAND:"includegraphics",_MAX_WIDTH_COMMAND:"maxwidth",_SUPPORTED_FIGURE_FORMATS:{eps:{extension:".eps",format:"epsc",vector:!0},pdf:{extension:".pdf",format:"pdf",vector:!0},png:{extension:".png",format:"png",vector:!1},jpeg:{extension:".jpeg",format:"jpeg",vector:!1}},constructor:function(){},getApplicableTypes:function(){return["figure"]},getEnvironment:function(){return""},reset:function(){this._figureCount=0},enter:function(e,o,r){var a,s=this._FIGURE_PREFIX+this._figureCount,l=r.imagePath+s,c=this._FIGURE_DEFAULT_EXT;this._figureCount+=1;var d=this._SUPPORTED_FIGURE_FORMATS[r.figureFormat];c=this._IMAGE_DEFAULT_EXT;o.canPrintToFile()?(l+=c=d?d.extension:this._FIGURE_DEFAULT_EXT,a=o.printToFile(d?d.format:this._FIGURE_DEFAULT_FORMAT,d&&d.vector?this._FIGURE_DEFAULT_RESOLUTION:r.figureResolution,l)):(l+=c,a=n.writeToPath(o.getFigureUri(),l));var u=o.getFigureSize(),h=u?u[0]:this._FIGURE_DEFAULT_SIZE,p=i.wrapInCommand(this._MAX_WIDTH_COMMAND,h/this._PIXELS_TO_EM+"em"),f=i.wrapInCommand(this._GRAPHICS_COMMAND,s+c,"width="+p),g=new t;a.then((function(e){e&&e.isError?g.reject(e.errorMessage):g.resolve(f+"\n")})),r.dontWaitForImageFiles_forTestingOnly&&(a.cancel(),g.resolve(f+"\n")),e.openEnvironment("center"),e.addToBody(g),e.closeEnvironment("center")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4759)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(225),i(348),i(357),i(426)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([o],{DEFAULT_CONTEXT:{figureFormat:"png",figureResolution:600,availableWidth:525},_FILE_SCHEME:"file:///",constructor:function(e){this._outputView=e.getEmbeddedOutputsView()},getApplicableDomNodeClasses:function(){return["embeddedOutputsFigure"]},_checkContext:function(e){return e.figurePath?t.mixin({},this.DEFAULT_CONTEXT,e):e},enter:function(e,t,n){var o,s=new i,l=(n=this._checkContext(n),a.createFOElement(r.BLOCK)),c=a.createFOElement(r.EXTERNAL_GRAPHIC);l.appendChild(c),o=t.firstChild.querySelector("canvas.SceneView")?t.firstChild.querySelector("canvas.SceneView"):t.firstChild.querySelector("img.ImageView")&&!t.firstChild.querySelector("img.figureImage")?t.firstChild.querySelector("img.ImageView"):t.firstChild.querySelector("img.figureImage");var d=(o=t.firstChild.querySelector("img.PlaybackControlsView")||o).clientWidth*r.PX_PT_RATIO,u=o.offsetLeft;o.offsetParent===o.parentElement&&(u+=o.parentElement.offsetLeft);var h=n.availableWidth-2*u;d>h&&(d=h),c.setAttribute("content-width",d+"pt");var p=this._outputView.getOutputFromOutputDiv(t);if(p&&n.figurePath&&p.canPrintToFile()){var f=n.figurePath+"/"+p.uid+"."+n.figureFormat;c.setAttribute("src",this._FILE_SCHEME+f),p.printToFile(n.figureFormat,n.figureResolution,f).then((function(){s.resolve(l)}))}else t.firstChild.querySelector("canvas.SceneView")?(c.setAttribute("src",o.toDataURL()),s.resolve(l)):(c.setAttribute("src",o.src),s.resolve(l));e.appendElement(s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4761)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.outputhandlerservice","rtc.executionservice"]}},createInstance:function(e,t,n){var o=new i(e,n);return t.registerOutputPlugin(o),o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(553),i(587),i(529),i(2042),i(1455),i(4763)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t],{OUTPUT_TYPE:r.OUTPUT_TYPE,constructor:function(e,t){this._snapshotManager=new a(e,t)},getOutputFromData:function(e,t){var r=new o({data:e,outputMetaData:t,executionService:this._executionService,snapshotManager:this._snapshotManager});return new i(n.ADD_OUTPUT,r)},destroy:function(){this._snapshotManager.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1453)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){this.paletteRegistryId="RunScriptPalette"},_setupPaletteListeners:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(236)],o=i.dj.d(n,(function(e,t,i){return e(null,{_OPEN_VARIABLE_COMMAND:"matlab.internal.editor.VariableManager.openVariableEditor('${editorId}', '${variableId}');",_REMOVE_VARIABLE_COMMAND:"matlab.internal.editor.VariableManager.removeVariables('${editorId}', ${variableIds});",_REMOVE_VARIABLE_DELAY:500,constructor:function(e,t){this._editorId=e,this._executionService=t,this._idsPendingRemoval=[]},destroy:function(){this._flushVariablesToRemoveQueue()},openVariableSnapshot:function(e){var t={editorId:this._editorId,variableId:e},n=i.substitute(this._OPEN_VARIABLE_COMMAND,t);this._executionService.executionEval(n,!0)},removeVariableSnapshot:function(e){this._idsPendingRemoval.push(e),1===this._idsPendingRemoval.length&&setTimeout(t.hitch(this,"_flushVariablesToRemoveQueue"),this._REMOVE_VARIABLE_DELAY)},_flushVariablesToRemoveQueue:function(){if(0!==this._idsPendingRemoval.length){var e="{'"+this._idsPendingRemoval.join("', '")+"'}",t={editorId:this._editorId,variableIds:e},n=i.substitute(this._REMOVE_VARIABLE_COMMAND,t);this._executionService.executionEval(n,!0),this._idsPendingRemoval=[]}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4765)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(225),i(1136),i(438),i(348)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r,n],{_SCALING_FACTOR_CLASS:"veScalingFactor",_SCALING_FACTOR_BASE:"10",_SCALING_EXPONENT_CLASS:"scaleExponent",_MULTIPLIER_CLASS:"multiply",_VARIABLE_VALUE_CLASS:"variableValue",_VERTICAL_ELLIPSIS_UC:"⋮",_MIDLINE_HORIZONTAL_ELLIPSIS_UC:"⋯",constructor:function(){},getApplicableDomNodeClasses:function(){return["embeddedOutputsMatrixElement","embeddedOutputsVariableMatrixElement"]},enter:function(e,n,r){var a=o.createOutputProgramlisting();this.handleVariableNameElement(n,a);var s=n.getElementsByClassName(this._SCALING_FACTOR_CLASS),l="";if(s.length>0){a.appendChild(document.createTextNode("\n"+this._SCALING_FACTOR_BASE));var c=document.createElement("superscript");c.textContent=s[0].getElementsByClassName(this._SCALING_EXPONENT_CLASS)[0].textContent,a.appendChild(c);var d=s[0].getElementsByClassName(this._MULTIPLIER_CLASS)[0].textContent;a.appendChild(document.createTextNode(d)),l=n.getElementsByClassName(this._VARIABLE_VALUE_CLASS)[0].textContent}else l=n.childNodes[0].childNodes[1].textContent;var u=i(".verticalEllipsis",n);return u.length>0&&!t.contains(u[0],"hide")&&(l+=" "+this._VERTICAL_ELLIPSIS_UC+"\n"),a.appendChild(document.createTextNode("\n\n"+l+"\n")),e.appendElement(a),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4767)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1455),i(936),i(348),i(1363),i(1364)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{constructor:function(){this._firstVisit=!0},getApplicableDomNodeClasses:function(){return[t.CSS_TAG]},reset:function(){this._firstVisit=!0},enter:function(e,t,n){this._firstVisit&&e.addCSSToStyle&&(e.addCSSToStyle(".variableValue { width: 100% !important; }\n"),e.addCSSToStyle(i.cleanUpCSS(o)),e.addCSSToStyle(i.cleanUpCSS(r)),this._firstVisit=!1);var a=i.removeElementsWithClass(t,".figureWidget");return e.addToBody(a.outerHTML),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2043)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4770)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.shadowtextservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(209),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_FUNCTION_PREVIEW_CLASS:"functionCallPreviewClass",constructor:function(e){this._shadowTextService=e,this._codePreviewHandle=null},destroy:function(){this.hide(),this.inherited(arguments)},isVisible:function(){return null!==this._codePreviewHandle},show:function(e,t){let i={text:"\n"+e,cssClass:this._FUNCTION_PREVIEW_CLASS,caretRightAligned:!0,position:t};this._codePreviewHandle=this._shadowTextService.requestTextAtPosition(i)},hide:function(){this._codePreviewHandle&&this._codePreviewHandle.remove(),this._codePreviewHandle=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4772)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{_SETTING_ID:"matlab.liveeditor.AutoEvaluateSymbolicSuggestions",constructor:function(e){this._settingsService=e,this.own(this._settingsService.listenToSettingChange(this._SETTING_ID,this._settingChanged.bind(this))),this._settingChanged()},setValue:function(e){this._value=e,this._settingsService.setSetting(this._SETTING_ID,e)},getValue:function(){return this._value},_settingChanged:function(){this._settingsService.getSetting(this._SETTING_ID).then(e=>{this._value=e},()=>{this._value=!0})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4774)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(616)],o=i.dj.d(n,(function(e,t){return e(t,{removeGroupFromMap:function(e){this.groupMenuItemsMap[e]&&delete this.groupMenuItemsMap[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(208),i(1350),i(4776)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{requires:function(){return{createInstance:["matlab.code.variables.service","rtc.actionservice","rtc.clipboard","rtc.clipboardtempdirpath","rtc.contextmenu.symboliccontributor","rtc.contextmenu.generator","rtc.contextmenu.model","rtc.cursor","rtc.cursorcontroller","rtc.document","rtc.internaldocument","rtc.embeddedoutputs.contextmenu","rtc.embeddedoutputs.suggestionscodepreview","rtc.embeddedoutputs.symbolicautoevaluationsetting","rtc.embeddedoutputs.view","rtc.embeddedoutputs.view.suggestionsicon","rtc.execution.executionmanager","rtc.focusservice","rtc.keyhandler","rtc.keyhandler.keyboardshortcutsmodel","rtc.liveapps.controller","rtc.code.sections.model","rtc.code.sections.stale.model","rtc.equations.manager"]}},createInstance:function(e,t,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){return this._contextMenuGenerator||(l instanceof n?this._contextMenuGenerator=l:(this._contextMenuGenerator=new n(c),this._willOpenHandle=i.after(this._contextMenuGenerator,"willOpen",(function(e,t){l.willOpen(e,t)}),!0),this._needsCleanup=!0)),new o({variableService:e,actionService:t,clipboard:r,clipboardTempDirpath:a,embeddedOutputsContextMenuContributor:f,symbolicContextMenuContributor:s,contextMenuGenerator:this._contextMenuGenerator,contextMenuModel:c,cursor:d,cursorController:u,document:h,internalDocument:p,executionManager:b,focusService:y,keyHandler:C,keyboardShortcutsModel:T,liveAppsController:E,suggestionsCodePreview:g,symbolicAutoEvaluationSetting:m,suggestionsIcon:v,sectionModel:S,staleSectionModel:w,embeddedoutputsView:_,equationEditorManager:I})},destroy:function(){this.inherited(arguments),this._needsCleanup&&(delete this._contextMenuGenerator,this._willOpenHandle.remove())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(4777)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._editorPlugins=e,this._activeOutput=null,this._equationEditorActive=null},createSymbolicEquation:function(e,t,n){return new i(e,t,this._editorPlugins,n)},enableSymbolicOutput:function(e,t){this._activeOutput!==e&&(this.disableActiveSymbolicOutput(this._activeOutput),e.enable(),e.setCodeLinePositions(t)),this._activeOutput=e},disableActiveSymbolicOutput:function(e){this._activeOutput&&this._activeOutput===e&&(this._activeOutput.disable(),this._activeOutput=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(211),i(225),i(665),i(578),i(2044),i(2045),i(209),i(1083),i(208),i(452),i(314),i(528),i(4866),i(4867),i(4878),i(4879)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e(d,{_OUTPUT_VERSION:"1.0",_NBSP:" ",_IMG_URI_DATA_ATTRIBUTE:"data-imguri",_PX_PER_EM:14,constructor:function(e,t,i,n){if(this._editorPlugins=i,this._name=e,this._value=t,this._isReady=!1,this._suggestionsButton=null,this._localActionService=new s(this._editorPlugins.actionService,{accessParentActions:!1}),this._localActionService.detach(),this._equationEditor=this._createEquationInstance(t),this._usedAsOutput=n,n){let t=this._equationEditor.getEquation(),i=t.getAnnotations();i.OutputVersion&&(i.OutputVersion,this._OUTPUT_VERSION),this._codeVisible=this._editorPlugins.embeddedoutputsView.getLayoutView()!==f.HIDE_CODE_VIEW_STATE,this._suggestionsAvailable=!!i.Suggestions,this._suggestionsAvailable&&(this._suggestions=this._createSuggestions(e,t))}},_createEquationInstance:function(e){let t=new l({enable:["equationeditor.rtc-output-bridge"],disable:["action.undoredo","controller.contextmenu","view.highlightactiverow","view.movekeycaptureonfocus"],inject:{"external.actionservice":this._localActionService,"external.clipboard":this._editorPlugins.clipboard,"external.clipboardtempdirpath":this._editorPlugins.clipboardTempDirpath,"external.contextmenumodel":this._editorPlugins.contextMenuModel,"external.contextmenucontributor":this._editorPlugins.symbolicContextMenuContributor,"rtc.keyhandler":this._editorPlugins.keyHandler,"rtc.keyhandler.keyboardshortcutsmodel":this._editorPlugins.keyboardShortcutsModel,"rtc.cursor":this._editorPlugins.cursor},registry:m});return t.set("disabled",!0),t.set("readonly",!0),t.set("cacheFontMetrics",!1),t.set("pxPerEm",this._PX_PER_EM),t.getEquation().fromMathML(e),t.getCursor().hide(),t.getEquation().setDisplayStyle(!0),t},_placeAt:function(e){return this._contextMenu=this._editorPlugins.contextMenuGenerator.createContextMenu(e.parentNode,[this._editorPlugins.symbolicContextMenuContributor,this._editorPlugins.embeddedOutputsContextMenuContributor]),this.own(u.after(this._contextMenu,"onClose",this._onCloseContextMenu.bind(this))),this._equationEditor.placeAt(e)},_onCloseContextMenu:function(){this._suggestions&&this._suggestions.cleanupOnCloseContextMenu()},_getEquation:function(){return this._equationEditor.getEquation()},destroy:function(){this.disable(),this._contextMenu.destroy(),this._suggestionsButton&&this._suggestionsButton.destroy(),this._symbolicRunScriptController&&this._symbolicRunScriptController.destroy(),this._tooltip.destroy(),this._equationEditor.destroy(),this._suggestions&&this._suggestions.destroy(),this._localActionService.destroy(),delete this._contextMenu,delete this._suggestionsButton,delete this._tooltip,delete this._equationEditor,delete this._suggestions,delete this._localActionService,this.inherited(arguments)},_createSuggestions:function(e,t){return new v(e,t,this._localActionService,this._editorPlugins.symbolicContextMenuContributor,this._editorPlugins.cursor,this._editorPlugins.document,this._editorPlugins.internalDocument,this._editorPlugins.executionManager,this._editorPlugins.liveAppsController,this._editorPlugins.variableService,this._editorPlugins.suggestionsCodePreview,this._editorPlugins.symbolicAutoEvaluationSetting,this._editorPlugins.sectionModel,this._editorPlugins.staleSectionModel,this._suggestionsButton)},enable:function(){this._editorPlugins.cursorController.clearSelection(),this._editorPlugins.equationEditorManager.attachActionService(this._localActionService),this._suggestions&&this._suggestions.updateContextMenu(this._codeVisible),this._equationEditor.set("disabled",!1),this._equationEditor.focus(),this._editorPlugins.symbolicContextMenuContributor.hideAction("equationeditor.cut"),this._editorPlugins.symbolicContextMenuContributor.hideAction("equationeditor.paste"),this._editorPlugins.symbolicContextMenuContributor.hideAction("equationeditor.paste.latex"),this._editorPlugins.symbolicContextMenuContributor.hideAction("equationeditor.paste.mathml"),this._equationEditor.getCursor().show(),this._triggerFocus(this._equationEditor),this._focusThief=u.after(this._editorPlugins.keyHandler,"onFocus",t.hitch(this,"_triggerFocus",this._equationEditor)),this._editorPlugins.focusService.setFocus(),this._editorPlugins.cursor.resetAction(),this._editorPlugins.cursor.releaseAnchor(),this._editorPlugins.cursor.externalMouseDown()},setCodeLinePositions:function(e){this._suggestionsAvailable&&(this._suggestions.updateCodePositions(e,this._codeVisible),this._suggestionsButton.show())},_triggerFocus:function(e){if(this._focusTriggered!==e&&e){if(this._focusTriggered=e,this._equationEditor===e){let t=e.get("disabled");e.set("disabled",!1),t&&(e.focus(),this.onFocus())}this._focusTriggered=!1}},disable:function(){this._focusThief&&(this._equationEditor.set("disabled",!0),this._focusThief.remove(),this._focusThief=null),this._editorPlugins.equationEditorManager.detachActionService(this._localActionService),this._suggestionsButton&&this._suggestionsButton.hide(),this._editorPlugins.focusService.setFocus(),this.onBlur()},onFocus:function(){},onBlur:function(){},isReady:function(){return this._isReady},startup:function(){this._suggestionsButton&&this._suggestionsButton.startup()},getReadyPromise:function(){return this._renderedEquationPromise},_handleOutputViewChanges:function(e){this._codeVisible=e!==f.HIDE_CODE_VIEW_STATE,this._suggestionsButton.setEnabled(this._codeVisible),this._suggestions.updateContextMenu(this._codeVisible)},createDomElement:function(){let e=n.create("div",{class:"symbolicOutputWrapper"}),t=n.create("div",{class:"symbolicElement"});return n.place(t,e),e.renderedEquationPromise=this._placeAt(t),e.renderedEquationPromise.then(function(){this._addSymbolicOutput(t),this._usedAsOutput&&(this._suggestionsAvailable?(this._suggestionsButton=this._editorPlugins.suggestionsIcon.createContextMenuButton(e,this._contextMenu),this._suggestionsButton.setEnabled(this._codeVisible),this._suggestionsButton.startup(),this._suggestions.setSuggestionsIcon(this._suggestionsButton),this.own(u.after(this._editorPlugins.embeddedoutputsView,"onViewToggled",this._handleOutputViewChanges.bind(this),!0))):(this._symbolicRunScriptController=new _,this._symbolicRunScriptController.setTarget(e)),n.place(t,e)),this._isReady=!0}.bind(this)),this._renderedEquationPromise=e.renderedEquationPromise,e},_getRenderedEquation:function(e){let t=o(".MathEquation",e);return t.length>0?t[0]:null},_getImageObject:function(){let e=this._getRenderedEquation(this._domElement);return e?r.exportDomnodeToImageURL(e):null},getMIMEContent:function(e){let t=[];if(e&&this._equationEditor.getCursor().hasSelection())return this._getEquation().selectionToClipboardData();let i=this._getImageObject();return t.push({flavor:p.MATHML_PRESENTATION,content:this.getMathML()}),t.push({flavor:p.TEXT,content:this.getMATLABCode()}),i&&t.push({flavor:p.IMAGE,content:i.dataURL}),t},getMATLABCode:function(){let e=this._getEquation();return e?e.toMATLABCode():""},getMathML:function(){let e=this._getEquation();return e?e.toMathML():""},_equationImageToHTML:function(e,t,i){let n='<span style="vertical-align: '+Math.round(e.verticalAlign)+'px;" mathmlencoding="'+a.escapeHTML(this.getMathML())+'">';if(n+="<img ",t){n+="src='"+h.pushImageAndGetPathFromURI(e.dataURL,t,i)+"'",n+=" "+this._IMG_URI_DATA_ATTRIBUTE+"='"+e.dataURL+"'"}else n+="src='"+e.dataURL+"'";return n+=' width="'+e.width+'" height="'+e.height+'"',n+="></span>",n},getHTML:function(e,t){let i=this._getImageObject();if(!i)return"";let n='<p class="symbolicElement">';return this._name&&(n+="<pre>",n+=this._name+this._NBSP+"="+this._NBSP+"\n",n+="</pre>",n+=this._NBSP+this._NBSP+this._NBSP),n+=this._equationImageToHTML(i,e,t),n+="</p>",n},_isTall:function(e){return e>2*this._PX_PER_EM},_addSymbolicOutput:function(e){let t,o=!1,r=this._getRenderedEquation(e.lastChild);r&&(o=this._isTall(r["data-eqn-height"])),this._tooltip=new g,this._name&&(t=n.create(o?"div":"span"),t.textContent=this._name+this._NBSP+"="+this._NBSP,i.add(t,"embeddedOutputsVariableElement"),1===e.children.length?n.place(t,e,"first"):n.place(t,".embeddedOutputsVariableElement","replace")),i.add(e.lastChild,o?"displaySymbolicElement":"inlineSymbolicElement")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2046),i(2048),i(4780),i(4785),i(4786),i(4787),i(4789),i(4790),i(4791),i(4792),i(4793),i(4794),i(4795),i(4796),i(4797),i(4798),i(4799),i(4800),i(4801),i(4802),i(4803),i(4804),i(4805),i(4806),i(4807),i(4808),i(4809),i(4810),i(4818),i(4819),i(4820),i(4821),i(4822),i(2051),i(4823),i(4824),i(4825),i(4826),i(4827),i(4828),i(4829),i(4830),i(4831),i(4832),i(4833),i(4834),i(4836),i(4837),i(4838),i(4839),i(4840),i(4841),i(4842),i(4843),i(4844),i(4845),i(4846),i(4847),i(4848),i(4849),i(4852),i(4853),i(4854),i(4855),i(4856),i(4857),i(4858),i(4859),i(4860)],o=i.dj.d(n,(function(){"use strict";return Array.prototype.slice.call(arguments)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return{search:function(e,t,i){if(e>t){var n=this.search(-e,-t,(function(e){return i(-e)}));return n&&(n.index=-n.index),n}for(var o={},r=e,a=2,s=!1;e<r-1||!s;){var l=s?Math.round((e+r)/2):r,c=i(l);if(c?(o.index=l,o.value=c,r=l,s=!0):e=l,!s){if(r===t)break;(r=e+(a*=2))>t&&(r=t)}}return s?o:void 0}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(214),i(261),i(268),i(831),i(494),i(683),i(1456),i(618),i(209),i(294),i(314),i(253),i(2049)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){"use strict";return t(o,{pluginId:"action.cutcopypaste",pluginFamily:"actions",pluginDependencies:["api.attributes","controller.cursor","controller.editmanager","controller.selection","external.actionservice","external.clipboard","helper.delete","helper.import","helper.inserttemplate","helper.mimetype","helper.mimetypeexport","model.categorizer","model.cursor","model.equation","view.keyhandler","external.contextmenucontributor"],constructor:function(e,t,o,r,a,s,l,c,d,u,h,p,m,_,v,b){if(this._attributes=e,this._importHelper=c,this._insertTemplateHelper=d,this._mimeTypeHelper=u,this._mimeTypeExportHelper=h,this._categorizer=p,this._deleteHelper=l,this._cursorController=t,this._editmanager=o,this._selectionController=r,this._actionService=a,this._clipboard=s,this._equation=_,this._keyHandler=v,this._contextMenuContributor=b,"function"==typeof this._clipboard.getCopyPasteHandlers){var y=this._clipboard.getCopyPasteHandlers();this._keyHandler.enableBrowserCopyPaste(y)}else this._keyHandler.listenTo("copy",this._preventDefault),this._keyHandler.listenTo("cut",this._preventDefault),this._keyHandler.listenTo("paste",this._preventDefault);this._actions=[{id:"equationeditor.cut",enabled:!1,key:"ctrl_x",platformKey:{mac:"meta_x"},text:f.cutLabel,callback:i.hitch(this,"_handleCut")},{id:"equationeditor.copy",enabled:!1,key:"ctrl_c",keyPriority:1,platformKey:{mac:"meta_c"},text:f.copyLabel,callback:i.hitch(this,"_handleCopy")},{id:"equationeditor.copy.latex",enabled:!1,text:g.copyLaTeX,callback:i.hitch(this,"_handleCopyLaTeX")},{id:"equationeditor.copy.mathml",enabled:!1,text:g.copyMathML,callback:i.hitch(this,"_handleCopyMathML")},{id:"equationeditor.paste",enabled:!0,key:"ctrl_v",platformKey:{mac:"meta_v"},text:f.pasteLabel,callback:i.hitch(this,"_handlePaste")},{id:"equationeditor.paste.latex",enabled:!0,text:g.pasteLaTeX,callback:i.hitch(this,"_handlePasteAs","tex")},{id:"equationeditor.paste.mathml",enabled:!0,text:g.pasteMathML,callback:i.hitch(this,"_handlePasteAs","mathml")}],a.loadActions(this._actions),this._addActionsToContextMenu(),this.own(e.observe("readonly",i.hitch(this,"_updateActions"))),this.own(n.after(m,"onChange",i.hitch(this,"_updateActions"))),this.own(n.after(b,"updateActions",i.hitch(this,"_maybeHideActions")))},_addActionsToContextMenu:function(){this._actions.forEach((function(e){this._contextMenuContributor.addActionToMap(h.COPY_PASTE,e.id)}),this)},_updateActions:function(){var e=this._attributes.get("readonly"),t=this._cursorController.hasSelection(),i=r.isEmptyEquation(this._equation.getRoot());this._actionService.updateAction("equationeditor.cut",{enabled:t&&!e}),this._actionService.updateAction("equationeditor.copy",{enabled:!i}),this._actionService.updateAction("equationeditor.copy.latex",{enabled:!i}),this._actionService.updateAction("equationeditor.copy.mathml",{enabled:!i}),this._actionService.updateAction("equationeditor.paste",{enabled:!e}),this._actionService.updateAction("equationeditor.paste.latex",{enabled:!e}),this._actionService.updateAction("equationeditor.paste.mathml",{enabled:!e})},_maybeHideActions:function(){this._attributes.get("readonly")&&(this._contextMenuContributor.hideAction("equationeditor.cut"),this._contextMenuContributor.hideAction("equationeditor.paste"),this._contextMenuContributor.hideAction("equationeditor.paste.latex"),this._contextMenuContributor.hideAction("equationeditor.paste.mathml"))},_preventDefault:function(e){e.preventDefault()},_handleCut:function(){return u.assert(this._cursorController.hasSelection(),"Equation should have selection"),this._handleCopy(),this._editmanager.createBlock(i.hitch(this,(function(e){this._deleteHelper.deleteSelection(e)}))),!0},_handleCopy:function(){var e;if(this._selectionController.hasSelection())e=this._mimeTypeExportHelper.convertSelection();else{var t=this._equation.getRoot().children[0];e=this._mimeTypeExportHelper.convertRange({node:t,left:0,right:t.children.length})}return this._clipboard.setClipboardData(e).then((function(){}),(function(){})),!0},_getSelectedNodes:function(){if(u.assert(!r.isEmptyEquation(this._equation.getRoot()),"Equation should not be empty"),!this._cursorController.hasSelection())return[this._equation.getRoot()];var e=this._selectionController.getSelectionSpan();if("MathRow"===e.node.className)var t=e.node.children.slice(e.left,e.right);else"MathText"===e.node.className&&(t=[d.createNode("MathText",i.mixin(e.node.getContents(),{text:e.node.text.substring(e.left,e.right)}))]);return t},_handleCopyLaTeX:function(){var e=s.export(this._getSelectedNodes(),{attribBlackList:["id","data-category"]});this._clipboard.setClipboardData([{flavor:p.TEXT,content:e}])},_handleCopyMathML:function(){var e=l.export(this._getSelectedNodes(),{attribBlackList:this._equation.serializationBlacklist()});this._clipboard.setClipboardData([{flavor:p.TEXT,content:e}])},_handleCopyMATLABCode:function(){var e=c.export(this._getSelectedNodes()).code();this._clipboard.setClipboardData([{flavor:p.TEXT,content:e}])},_handlePaste:function(){if(!this._attributes.get("readonly")){var t=this._mimeTypeHelper.acceptedMimeTypes();return this._clipboard.getClipboardData(t).then(i.hitch(this,(function(t){0!==e.filter(Object.keys(t),(function(e){return t[e]})).length&&this._editmanager.createBlock(i.hitch(this,(function(e){this._cursorController.hasSelection()&&this._deleteHelper.deleteSelection(e),this._mimeTypeHelper.insertContent(e,t)})))}))),!0}},_handlePasteAs:function(e){this._attributes.get("readonly")||this._clipboard.getClipboardData(["text/plain"]).then(i.hitch(this,(function(t){var n=this._importHelper.importModel(t["text/plain"],e);if(n){n=this._categorizer.categorizeTree(n);var o=a.serializeRange(n.children[0]);this._editmanager.createBlock(i.hitch(this,(function(e){this._insertTemplateHelper.insertTemplate(e,o)})))}})))}})}),e,t),e.exports=o},function(e,t,i){e.exports={copyLaTeX:"LaTeX としてコピー",copyMathML:"MathML としてコピー",matrixDeleteColumn:"列の削除",matrixDeleteRow:"行の削除",matrixInsertColumnLeft:"左に列を挿入",matrixInsertColumnRight:"右に列を挿入",matrixInsertRowAbove:"上に行を挿入",matrixInsertRowBelow:"下に行を挿入",matrixRemoveDelimiters:"行列区切り記号を削除",matrixUseBrackets:"行列の周りに大かっこを使用",matrixUseParentheses:"行列の周りに小かっこを使用",pasteLaTeX:"LaTeX として貼り付け",pasteMathML:"MathML として貼り付け"}},function(e,t,i){e.exports={copyLaTeX:"LaTeX으로 복사",copyMathML:"MathML로 복사",matrixDeleteColumn:"열 삭제",matrixDeleteRow:"행 삭제",matrixInsertColumnLeft:"왼쪽에 열 삽입",matrixInsertColumnRight:"오른쪽에 열 삽입",matrixInsertRowAbove:"위에 행 삽입",matrixInsertRowBelow:"아래에 행 삽입",matrixRemoveDelimiters:"행렬 구분 기호 제거",matrixUseBrackets:"행렬 둘레에 대괄호 사용",matrixUseParentheses:"행렬 둘레에 소괄호 사용",pasteLaTeX:"LaTeX으로 붙여넣기",pasteMathML:"MathML로 붙여넣기"}},function(e,t,i){e.exports={copyLaTeX:"复制为 LaTeX",copyMathML:"复制为 MathML",matrixDeleteColumn:"删除列",matrixDeleteRow:"删除行",matrixInsertColumnLeft:"在左侧插入列",matrixInsertColumnRight:"在右侧插入列",matrixInsertRowAbove:"在上方插入行",matrixInsertRowBelow:"在下方插入行",matrixRemoveDelimiters:"删除矩阵分隔符",matrixUseBrackets:"使用方括号将矩阵括起来",matrixUseParentheses:"使用圆括号将矩阵括起来",pasteLaTeX:"粘贴为 LaTeX",pasteMathML:"粘贴为 MathML"}},function(e,t,i){e.exports={root:{copyLaTeX:"Copy as LaTeX",copyMathML:"Copy as MathML",matrixDeleteColumn:"Delete column",matrixDeleteRow:"Delete row",matrixInsertColumnLeft:"Insert column left",matrixInsertColumnRight:"Insert column right",matrixInsertRowAbove:"Insert row above",matrixInsertRowBelow:"Insert row below",matrixRemoveDelimiters:"Remove matrix delimiters",matrixUseBrackets:"Use brackets around matrix",matrixUseParentheses:"Use parentheses around matrix",pasteLaTeX:"Paste as LaTeX",pasteMathML:"Paste as MathML"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(588),i(261),i(684),i(268)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e(n,{pluginId:"action.delete",pluginDependencies:["api.attributes","controller.editmanager","controller.cursor","controller.keyhandler","external.actionservice","helper.delete","model.cursor","model.equation"],constructor:function(e,i,n,o,r,a,s,l){this._attributes=e,this._deleteHelper=a,this._editmanager=i,this._cursor=s,this._equation=l,this._cursorController=n;var c=[{id:"equationeditor.backspace",key:"backspace",keyPriority:-1,enabled:!0,callback:t.hitch(this,"_handleDelete",-1)},{id:"equationeditor.delete",enabled:!0,key:"delete",callback:t.hitch(this,"_handleDelete",1)}];r.loadActions(c)},_handleDelete:function(e){if(!this._attributes.get("readonly"))return!this._cursor.hasSelection()&&this._deleteHelper.handleDelete(e)||this._editmanager.createBlock(t.hitch(this,(function(t){if(this._cursor.hasSelection())return this._deleteHelper.deleteSelection(t);var i=this._cursor.getPosition(),n=this._equation.getById(i.id);this._delete(t,e,n,i.offset),this.onTextDeleted()}))),!0},onTextDeleted:function(){},_delete:function(e,t,n,o){var a=r.categorizeNode(n),s=-1===t?o-1:o;if("atom"===a)if(s>=0&&s<n.text.length)this._deleteHelper.deleteInAtom(e,n,s,1);else{var l=-1===t?this._equation.getPreviousSibling(n):this._equation.getNextSibling(n);l?(o=-1===t?i.nodeLength(l):0,this._delete(e,t,l,o)):this._findAndSelectStructure(n)}else"placeholder"===a&&s>=0&&s<n.children.length?this._delete(e,t,n.children[s],0):"structure"===a?this._shouldSelectStructure(n)?this._selectStructure(n):e.deleteNode(n.id):this._findAndSelectStructure(n)},_shouldSelectStructure:function(e){return"MathDelimiter"!==e.className&&"MathText"!==e.className&&"MathSpace"!==e.className},_selectStructure:function(e){var t=this._equation.getParentAndIndex(e);this._cursorController.setPosition({id:t.parent.id,offset:t.index}),this._cursorController.setPosition({id:t.parent.id,offset:t.index+1},!0)},_findAndSelectStructure:function(e){var t=this._findStructure(e);t&&this._selectStructure(t)},_findStructure:function(e){return this._equation.iterate({start:e,direction:o.UP,structure:function(e,t){t.stop(e)}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(217),i(206),i(261)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(o,{pluginId:"action.draganddrop",pluginFamily:"actions",pluginDependencies:["api.attributes","controller.caret","controller.cursor","controller.editmanager","controller.mouse","controller.selection","helper.delete","helper.mimetype","helper.mimetypeexport","view.selection","view.keyhandler","view.rootnode"],constructor:function(e,i,o,r,a,s,l,c,d,u,h,p){this._attributes=e,this._deleteHelper=l,this._caretController=i,this._cursorController=o,this._editmanager=r,this._selectionController=s,this._mimeTypeHelper=c,this._mimeTypeExportHelper=d,this._rootNode=p,this._selectionView=u,this._keyHandler=h,this._selectionView.getNode().draggable="true",this._mouseController=a,this.own(this._mouseController.addMouseDown(t.hitch(this,"_handleMouseDown"),1)),this.own(this._mouseController.addMouseMove(t.hitch(this,"_handleMouseMove"),1)),this.own(n(p,"mouseup",t.hitch(this,"_handleMouseUp"))),this.own(n(p,"dragstart",t.hitch(this,"_handleDragStart"))),this.own(n(p,"dragover",t.hitch(this,"_handleDragOver"))),this.own(n(p,"drop",t.hitch(this,"_handleDrop"))),this.own(n(p,"dragend",t.hitch(this,"_handleDragEnd")))},_handleDragStart:function(e){this._dragging?this._mimeTypeExportHelper.convertSelection().forEach((function(t){e.dataTransfer.setData(t.flavor,t.content)})):e.preventDefault()},_handleDragOver:function(e){if(!this._attributes.get("readonly")){var t=this._caretController.getPositionFromAbsoluteXY(e.pageX,e.pageY);t&&(this._dragPosition=t,this._caretController.drawCaretAt(t),e.preventDefault())}},_handleDrop:function(e){this._dragging=!1,this._attributes.get("readonly")||(e.stopPropagation(),e.preventDefault(),this._editmanager.createBlock(t.hitch(this,(function(t){var i=this._cursorController.hasSelection()&&this._selectionController.getSelectionSpan();this._cursorController.setPosition(this._dragPosition),i&&!e.ctrlKey&&this._deleteHelper.deleteRange(t,i);var n={};this._mimeTypeHelper.acceptedMimeTypes().forEach((function(t){var i=e.dataTransfer.getData(t);i&&(n[t]=i)})),this._mimeTypeHelper.insertContent(t,n)}))),window.setTimeout(t.hitch(this._keyHandler,"focus"),0))},_handleDragEnd:function(){this._dragging=!1,this._caretController.redraw()},_handleMouseDown:function(e){if(e.target&&"selection"===e.target.className&&0===e.button)return this._dragging=!0,!0},_handleMouseMove:function(e){return this._dragging},_handleMouseUp:function(e){if(this._dragging){this._dragging=!1;var t=i.position(this._rootNode,!0);this._caretController.fromXY(e.pageX-t.x,e.pageY-t.y,e.shiftKey),this._lastX=e.pageX,this._lastY=e.pageY}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(261),i(831),i(729)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return t(n,{pluginId:"action.inserttemplate",pluginFamily:"actions",pluginDependencies:["api.attributes","controller.editmanager","external.actionservice","helper.inserttemplate"],constructor:function(t,n,o,a){this._attributes=t,this._editmanager=n,this._actionService=o,this._insertTemplateHelper=a,this._disabled=this._attributes.get("disabled"),this._readonly=this._attributes.get("readonly"),this._templates=r.getById();var s=e.map(Object.keys(this._templates),(function(e){var t=this._templates[e];return i.mixin({enabled:!this._disabled&&!this._readonly,callback:i.hitch(this,"_insertTemplate",t.template)},t.attributes,{id:"equationeditor.insert."+t.attributes.id})}),this);this._actionService.loadActions(s),this.own(t.observe("disabled",i.hitch(this,"_handleDisabledChange"))),this.own(t.observe("readonly",i.hitch(this,"_handleReadonlyChange"))),this._updateActions()},_handleDisabledChange:function(e){this._disabled=e,this._updateActions()},_handleReadonlyChange:function(e){this._readonly=e,this._updateActions()},_updateActions:function(){e.map(Object.keys(this._templates),(function(e){var t=this._templates[e];this._actionService.updateAction("equationeditor.insert."+t.attributes.id,{enabled:!this._readonly&&!this._disabled})}),this)},_insertTemplate:function(e){this._editmanager.createBlock(i.hitch(this,(function(t){this._insertTemplateHelper.insertTemplate(t,e)})))}})}),e,t),e.exports=o},function(e,t){e.exports='<root>\n \x3c!--\n This file contains all available structures.\n\n The \'id\' will be used to generated the action-id by prepending \'equationeditor.insert.\'.\n\n If no command-id is given, the id will also be used as command-id\n (for LaTeX-style backslash commands).\n --\x3e\n\n \x3c!-- Structures --\x3e\n \x3c!-- Script --\x3e\n <template id="superscript">\n <MathScript data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder" />\n <Null/>\n <MathRow data-cursor="1" data-category="placeholder" />\n </MathScript>\n </template>\n\n <template id="subscript">\n <MathScript data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder" />\n <MathRow data-cursor="1" data-category="placeholder" />\n <Null/>\n </MathScript>\n </template>\n\n <template id="subsuperscript">\n <MathScript data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder" />\n <MathRow data-cursor="1" data-category="placeholder" />\n <MathRow data-cursor="2" data-category="placeholder" />\n </MathScript>\n </template>\n\n <template id="multiscript">\n <MathMultiScript numPostPairs ="1" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder" />\n <MathRow data-cursor="1" data-category="placeholder" />\n <MathRow data-cursor="2" data-category="placeholder" />\n <MathRow data-cursor="3" data-category="placeholder" />\n <MathRow data-cursor="4" data-category="placeholder" />\n </MathMultiScript>\n </template>\n\n <template id="over">\n <MathScript limitStyle="stack" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-cursor="1" data-category="placeholder" />\n </MathScript>\n </template>\n\n <template id="under">\n <MathScript limitStyle="stack" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <MathRow data-cursor="1" data-category="placeholder" />\n <Null/>\n </MathScript>\n </template>\n\n <template id="underover">\n <MathScript limitStyle="stack" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <MathRow data-cursor="1" data-category="placeholder" />\n <MathRow data-cursor="2" data-category="placeholder" />\n </MathScript>\n </template>\n\n \x3c!-- Fractions and Radicals --\x3e\n <template id="frac">\n <MathFraction data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <MathRow data-cursor="1" data-category="placeholder"/>\n </MathFraction>\n </template>\n\n <template id="fracbevelled">\n <MathFraction data-category="structure" bevelled="true">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <MathRow data-cursor="1" data-category="placeholder"/>\n </MathFraction>\n </template>\n\n <template id="fracinline">\n <MathRow data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <MathText kind="symbol" text="&#x002F;" symbolName="slash" data-category="static" />\n <MathRow data-cursor="1" data-category="placeholder"/>\n </MathRow>\n </template>\n\n <template id="sqrt">\n <MathRadical data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder" />\n <MathRow data-category="static" />\n </MathRadical>\n </template>\n\n <template id="root">\n <MathRadical data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder" />\n <MathRow data-cursor="1" data-category="placeholder" />\n </MathRadical>\n </template>\n\n \x3c!-- Operators --\x3e\n <template id="int">\n <MathRow data-category="structure">\n <MathText data-category="static" kind="symbol" text="&#x222B;" symbolName="intop" />\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n <template id="intdef">\n <MathRow data-category="structure">\n <MathScript data-category="structure-part">\n <MathRow data-category="static">\n <MathText kind="symbol" text="&#x222B;" symbolName="intop" />\n </MathRow>\n <MathRow data-category="placeholder" data-cursor="1" />\n <MathRow data-category="placeholder" data-cursor="2" />\n </MathScript>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n <template id="oint">\n <MathRow data-category="structure">\n <MathText data-category="static" kind="symbol" text="&#x222E;" symbolName="contourintop" />\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n <template id="ointdef">\n <MathRow data-category="structure">\n <MathScript data-category="structure-part">\n <MathRow data-category="static">\n <MathText kind="symbol" text="&#x222E;" symbolName="contourintop" />\n </MathRow>\n <MathRow data-category="placeholder" data-cursor="1" />\n <MathRow data-category="placeholder" data-cursor="2" />\n </MathScript>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n <template id="sum">\n <MathRow data-category="structure">\n <MathScript data-category="structure-part">\n <MathRow data-category="static">\n <MathText kind="symbol" text="&#x2211;" symbolName="sum" />\n </MathRow>\n <MathRow data-category="placeholder" data-cursor="1" />\n <Null/>\n </MathScript>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n <template id="sumdef">\n <MathRow data-category="structure">\n <MathScript data-category="structure-part">\n <MathRow data-category="static">\n <MathText kind="symbol" text="&#x2211;" symbolName="sum" />\n </MathRow>\n <MathRow data-category="placeholder" data-cursor="1" />\n <MathRow data-category="placeholder" data-cursor="2" />\n </MathScript>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n <template id="prod">\n <MathRow data-category="structure">\n <MathScript data-category="structure-part">\n <MathRow data-category="static">\n <MathText kind="symbol" text="&#x220F;" symbolName="prod" />\n </MathRow>\n <MathRow data-category="placeholder" data-cursor="1" />\n <Null/>\n </MathScript>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n <template id="proddef">\n <MathRow data-category="structure">\n <MathScript data-category="structure-part">\n <MathRow data-category="static">\n <MathText kind="symbol" text="&#x220F;" symbolName="prod" />\n </MathRow>\n <MathRow data-category="placeholder" data-cursor="1" />\n <MathRow data-category="placeholder" data-cursor="2" />\n </MathScript>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n <template id="lim">\n <MathRow data-category="structure">\n <MathScript limitStyle="stack" data-category="structure-part">\n <MathRow data-category="static">\n <MathText kind="code" text="lim" />\n </MathRow>\n <MathRow data-category="placeholder" data-cursor="1" />\n <Null/>\n </MathScript>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n\n\n \x3c!-- Misc_Structures --\x3e\n <template id="cases">\n <MathRow data-category="structure">\n <MathDelimiter symbolName="braceleft" data-category="static"/>\n <MathMatrix data-category="structure-part" rows="2" cols="2" colspec="l">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <MathRow data-cursor="1" data-category="placeholder"/>\n <MathRow data-cursor="2" data-category="placeholder"/>\n <MathRow data-cursor="3" data-category="placeholder"/>\n </MathMatrix>\n </MathRow>\n </template>\n\n <template id="derivative">\n <MathRow data-category="structure">\n <MathFraction data-category="structure-part">\n <MathRow data-category="static">\n <MathText kind="code" text="d" />\n </MathRow>\n <MathRow data-category="structure-part">\n <MathText data-category="static" kind="code" text="d" />\n <MathRow data-category="placeholder" data-cursor="1" />\n </MathRow>\n </MathFraction>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n <template id="derivativePrime">\n <MathScript data-category="structure">\n <MathRow data-category="placeholder" data-cursor="0" />\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="prime" />\n </MathRow>\n </MathScript>\n </template>\n\n <template id="derivativeN">\n <MathRow data-category="structure">\n <MathFraction data-category="structure-part">\n <MathRow data-category="structure-part">\n <MathScript>\n <MathRow data-category="static">\n <MathText kind="code" text="d" />\n </MathRow>\n <Null/>\n <MathRow data-category="placeholder" data-cursor="1" />\n </MathScript>\n </MathRow>\n <MathRow data-category="structure-part">\n <MathText kind="code" text="d" data-category="static" />\n <MathScript>\n <MathRow data-category="placeholder" data-cursor="2" />\n <Null/>\n <MathRow data-category="placeholder" data-cursor="3" />\n </MathScript>\n </MathRow>\n </MathFraction>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n <template id="partialderivative">\n <MathRow data-category="structure">\n <MathFraction data-category="structure-part">\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="partial" />\n </MathRow>\n <MathRow data-category="structure-part">\n <MathText kind="symbol" symbolName="partial" data-category="static" />\n <MathRow data-category="placeholder" data-cursor="1" />\n </MathRow>\n </MathFraction>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n\n <template id="partialderivativeN">\n <MathRow data-category="structure">\n <MathFraction data-category="structure-part">\n <MathRow data-category="structure-part">\n <MathScript>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="partial" />\n </MathRow>\n <Null/>\n <MathRow data-category="placeholder" data-cursor="1" />\n </MathScript>\n </MathRow>\n <MathRow data-category="structure-part">\n <MathText kind="symbol" symbolName="partial" data-category="static" />\n <MathScript>\n <MathRow data-category="placeholder" data-cursor="2" />\n <Null/>\n <MathRow data-category="placeholder" data-cursor="3" />\n </MathScript>\n </MathRow>\n </MathFraction>\n <MathRow data-category="placeholder" data-cursor="0" />\n </MathRow>\n </template>\n\n\n \x3c!-- Brackets --\x3e\n <template id="parentheses">\n <MathRow data-category="structure">\n <MathDelimiter symbolName="parenleft" data-category="static" />\n <MathRow data-category="placeholder" data-cursor="0" />\n <MathDelimiter symbolName="parenright" data-category="static" />\n </MathRow>\n </template>\n\n <template id="brackets">\n <MathRow data-category="structure">\n <MathDelimiter symbolName="bracketleft" data-category="static" />\n <MathRow data-category="placeholder" data-cursor="0" />\n <MathDelimiter symbolName="bracketright" data-category="static" />\n </MathRow>\n </template>\n\n <template id="braces">\n <MathRow data-category="structure">\n <MathDelimiter symbolName="braceleft" data-category="static" />\n <MathRow data-category="placeholder" data-cursor="0" />\n <MathDelimiter symbolName="braceright" data-category="static" />\n </MathRow>\n </template>\n\n <template id="ceil">\n <MathRow data-category="structure">\n <MathDelimiter symbolName="ceilleft" data-category="static" />\n <MathRow data-category="placeholder" data-cursor="0" />\n <MathDelimiter symbolName="ceilright" data-category="static" />\n </MathRow>\n </template>\n\n <template id="floor">\n <MathRow data-category="structure">\n <MathDelimiter symbolName="floorleft" data-category="static" />\n <MathRow data-category="placeholder" data-cursor="0" />\n <MathDelimiter symbolName="floorright" data-category="static" />\n </MathRow>\n </template>\n\n <template id="anglebracket">\n <MathRow data-category="structure">\n <MathDelimiter symbolName="anglebracketleft" data-category="static" />\n <MathRow data-category="placeholder" data-cursor="0" />\n <MathDelimiter symbolName="anglebracketright" data-category="static" />\n </MathRow>\n </template>\n\n <template id="bars">\n <MathRow data-category="structure">\n <MathDelimiter symbolName="verticalbar" data-category="static" />\n <MathRow data-category="placeholder" data-cursor="0" />\n <MathDelimiter symbolName="verticalbar" data-category="static" />\n </MathRow>\n </template>\n\n <template id="doublebars">\n <MathRow data-category="structure">\n <MathDelimiter symbolName="dblverticalbar" data-category="static" />\n <MathRow data-category="placeholder" data-cursor="0" />\n <MathDelimiter symbolName="dblverticalbar" data-category="static" />\n </MathRow>\n </template>\n\n \x3c!-- Accents --\x3e\n \x3c!-- Accents above --\x3e\n <template id="hat">\n <MathScript accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="circumflex"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="breve">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="breve"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="grave">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="grave"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="bar">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" stretchy="false" symbolName="macron"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="dot">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="dotabove"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="check">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="caron"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="acute">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="acute"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="tilde">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="sim"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="vec">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="rightarrow"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="ddot">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathText kind="symbol" symbolName="diaresis"/>\n </MathRow>\n </MathScript>\n </template>\n\n\n <template id="widehat">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathDelimiter stretchy="true" symbolName="circumflex"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="widetilde">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathDelimiter stretchy="true" symbolName="sim"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="overleftarrow">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathDelimiter symbolName="leftarrow"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="overrightarrow">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathDelimiter symbolName="rightarrow"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="overleftrightarrow">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathDelimiter symbolName="leftrightarrow"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="overbrace">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathDelimiter symbolName="overbrace"/>\n </MathRow>\n </MathScript>\n </template>\n\n <template id="overline">\n <MathScript limitStyle="stack" accent="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <Null/>\n <MathRow data-category="static">\n <MathDelimiter symbolName="macron" stretchy="true"/>\n </MathRow>\n </MathScript>\n </template>\n\n\n \x3c!-- Accents below --\x3e\n <template id="underbrace">\n <MathScript limitStyle="stack" accentunder="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <MathRow data-category="static">\n <MathDelimiter symbolName="underbrace"/>\n </MathRow>\n <Null/>\n </MathScript>\n </template>\n\n <template id="underline">\n <MathScript limitStyle="stack" accentunder="true" data-category="structure">\n <MathRow data-cursor="0" data-category="placeholder"/>\n <MathRow data-category="static">\n <MathDelimiter symbolName="macron"/>\n </MathRow>\n <Null/>\n </MathScript>\n </template>\n\n</root>\n'},function(e,t,i){var n,o;n=[i(203),i(204),i(261),i(940),i(268),i(400)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e(i,{pluginId:"action.inserttext",pluginDependencies:["api.attributes","controller.cursor","controller.editmanager","controller.keyhandler","helper.delete","helper.insert","model.equation"],constructor:function(e,i,n,o,r,a,s){this._attributes=e,this._deleteHelper=r,this._insertHelper=a,this._editmanager=n,this._cursorController=i,this._equation=s,this.own(o.addTypeHandler(t.hitch(this,"insert")))},insert:function(e){var i;this._attributes.get("readonly")||(this._editmanager.createBlock(t.hitch(this,(function(t){this._cursorController.hasSelection()&&this._deleteHelper.deleteSelection(t);var n=this._cursorController.getPosition(),a=n.node,s=o.kindOfText(e);if(s===o.TEXT_KIND.WHITESPACE)s=o.TEXT_KIND.TEXT,e=" ";else if(s===o.TEXT_KIND.DELIMITER){var l=this._insertHelper.getInsertPosition(t);return void(i=t.insertNode(l.id,l.offset,"MathDelimiter",{symbolName:r.getSymbolName(e)}))}var c={kind:s,text:e};if("symbol"===(c=this._insertHelper.prepareTextAttributes(c,a,n.offset)).kind&&(c.symbolName=r.getSymbolName(e),c.TeXSpacing=r.getSpacing(e),r.isStretchyOperatorByDefault(e)&&(c.stretchy=!1)),this._nodeMatches(a,c))return i=a,void t.replaceText(n.id,n.offset,0,e);"placeholder"===o.categorizeNode(a)&&(a=a.children[n.offset-1]),"mtext"!==s&&this._insertHelper.autoRemoveSpace(t,a,c),n=this._insertHelper.getInsertPosition(t),i=t.insertNode(n.id,n.offset,"MathText",c)}))),this.onTextInserted(e,i))},onTextInserted:function(e,t){},_nodeMatches:function(e,t){return"placeholder-atom"!==e["data-category"]&&("MathText"===e.className&&("symbol"!==e.kind&&(e.kind===t.kind||"code"===e.kind&&"id"===t.kind||"id"===e.kind&&"code"===t.kind)))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(214),i(261),i(268),i(729)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";return t(o,{pluginId:"action.latexcommands",pluginFamily:"actions",pluginDependencies:["action.inserttext","controller.cursor","controller.editmanager","controller.keyhandler","external.actionservice","helper.insert","model.equation"],constructor:function(e,t,o,r,s,l,c){this._insertHelper=l,this._insertTextAction=e,this._cursorController=t,this._actionService=s,this._editManager=o,this._equation=c,this.own(n.after(e,"onTextInserted",i.hitch(this,"_handleTextInserted"),!0));var d=[{id:"equationeditor.enter",keyPriority:10,enabled:!0,key:"enter",callback:i.hitch(this,"_handleEnter")}];s.loadActions(d),this.own(r.add("{",i.hitch(this,"_handleCurlyBrace")),10),this._templates=a.getByCommandId()},_handleCurlyBrace:function(){return this._detectAndExecuteCommand()},_handleEnter:function(){return this._detectAndExecuteCommand()},_handleTextInserted:function(e,t){var i=this._equation.getPreviousSibling(t);i&&"atom"===r.categorizeNode(i)&&this._executeCommand(i,t)},_detectAndExecuteCommand:function(){var e=this._cursorController.getPosition(),t=e.node;if("atom"===r.categorizeNode(t)&&e.offset===t.text.length)return this._executeCommand(t)},_executeCommand:function(e,t){var i=this._equation.getPreviousSibling(e);if(i&&"MathText"===i.className&&"backslash"===i.symbolName){var n=e.text;return this.handleLaTeXCommand(e,n,t),!0}},getLaTeXCommands:function(){var t=Object.keys(this._templates);return e.filter(t,(function(e){return e.match(/^[a-z]/i)})).sort((function(e,t){return e.toLowerCase()===t.toLowerCase()?e.localeCompare(t):e.toLowerCase().localeCompare(t.toLowerCase())}))},handleLaTeXCommand:function(e,t,n){this._templates[t]&&this._editManager.createBlock(i.hitch(this,(function(i){var o,r,a,s=this._templates[t].template;if("MathText"===e.className&&"backslash"!==e.symbolName){var l=this._equation.getPreviousSibling(e);l&&i.deleteNode(l.id)}if(this._cursorController.getPosition().node!==e)o=(a=this._equation.getParentAndIndex(e)).parent,r=a.index;else{var c=this._insertHelper.getInsertPosition(i);r=c.offset-1,o=c.node}i.deleteNode(e.id);var d=this._insertHelper.insertTemplate(i,s,o,r);d.length>0&&n&&(a=this._equation.getParentAndIndex(n),i.moveChildren(d[0].id,0,a.parent.id,a.index,a.index+1))})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(832),i(214),i(211),i(217),i(223),i(206),i(261),i(1961)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){"use strict";return e(l,{_CONTAINER_NAME:"latexCompletionContainer",_CONTAINER_CSS:"latexCompletionContainer",pluginId:"action.latexcompletion",pluginFamily:"actions",pluginDependencies:["action.inserttext","action.delete","action.latexcommands","external.actionservice","model.equation","view.rootnode"],constructor:function(e,i,r,l,c,d){this._equation=c,this._latexCommandsActions=r,this._insertTextAction=e,this._actionService=l,this._viewRootNode=d,this.own(n.after(e,"onTextInserted",t.hitch(this,"_handleTextInserted"),!0)),this.own(n.after(i,"onTextDeleted",t.hitch(this,"_handleTextDeleted"))),this.own(n.after(c,"changed",t.hitch(this,"_handleModelChange")));var u=[{id:"equationeditor.completion.down",keyPriority:11,enabled:!0,key:"down",callback:t.hitch(this,"_handleKey",{keyCode:a.DOWN_ARROW})},{id:"equationeditor.completion.up",keyPriority:11,enabled:!0,key:"up",callback:t.hitch(this,"_handleKey",{keyCode:a.UP_ARROW})},{id:"equationeditor.completion.left",keyPriority:11,enabled:!0,key:"left",callback:t.hitch(this,"_handleKey",{keyCode:a.LEFT_ARROW})},{id:"equationeditor.completion.right",keyPriority:11,enabled:!0,key:"right",callback:t.hitch(this,"_handleKey",{keyCode:a.RIGHT_ARROW})},{id:"equationeditor.completion.home",keyPriority:11,enabled:!0,key:"home",callback:t.hitch(this,"_handleKey",{keyCode:a.HOME})},{id:"equationeditor.completion.end",keyPriority:11,enabled:!0,key:"end",callback:t.hitch(this,"_handleKey",{keyCode:a.END})},{id:"equationeditor.completion.pageup",keyPriority:11,enabled:!0,key:"pageup",callback:t.hitch(this,"_handleKey",{keyCode:a.PAGE_UP})},{id:"equationeditor.completion.pagedown",keyPriority:11,enabled:!0,key:"pagedown",callback:t.hitch(this,"_handleKey",{keyCode:a.PAGE_DOWN})},{id:"equationeditor.completion.enter",keyPriority:11,enabled:!0,key:"enter",callback:t.hitch(this,"_handleKey",{keyCode:a.ENTER})},{id:"equationeditor.completion.tab",keyPriority:11,enabled:!0,key:"tab",callback:t.hitch(this,"_handleKey",{keyCode:a.TAB})},{id:"equationeditor.completion.escape",keyPriority:11,enabled:!0,key:"escape",callback:t.hitch(this,"_handleEscape")}];l.loadActions(u),this._clickCallback=this._handleMouseClick.bind(this),this._container=this._createContainer(),this._mouseType=window.PointerEvent?"pointer":"mouse",this.own(s(this._container,this._mouseType+"down",t.hitch(this,"_stopEventPropagation"))),this.own(s(this._container,this._mouseType+"up",t.hitch(this,"_stopEventPropagation"))),this.own(s(this._container,this._mouseType+"move",t.hitch(this,"_stopEventPropagation"))),o.place(this._container,this._viewRootNode)},_handleKey:function(e){return!!this._completionWidget&&(e.keyCode===a.LEFT_ARROW||e.keyCode===a.RIGHT_ARROW?(this._stopCompletion(),!1):(this._completionWidget.navigate(e),!0))},_handleEscape:function(){this._stopCompletion()},_handleMouseClick:function(e){return!!this._completionWidget&&(this._stopCompletion(),!0)},_createContainer:function(){return o.create("div",{className:this._CONTAINER_CSS,style:{position:"absolute",display:"none"},"data-testid":this._CONTAINER_NAME})},_handleTextDeleted:function(){this._completionNode&&(""!==this._completionInput?(this._completionInput=this._completionInput.slice(0,-1),this._updateCompletion(this._completionInput)):this._stopCompletion())},_handleModelChange:function(){this._completionNode&&(this._equation.getById(this._completionNode.id)||this._stopCompletion())},_handleTextInserted:function(e,t){if("\\"===e)return this._initCompletion(t),void this._updateCompletion("");this._completionNode&&(this._completionInput+=e,this._updateCompletion(this._completionInput))},_getCompletions:function(e){var t=this._latexCommandsActions.getLaTeXCommands();return{choices:(t=t.filter((function(t){return t.slice(0,e.length)===e}))).map((function(e){return{completion:e}}))}},_stopEventPropagation:function(e){e.stopPropagation()},_initCompletion:function(e){this._completionNode=e,this._completionInput="",window.addEventListener("click",this._clickCallback);var t=i("*[id='"+this._completionNode.id+"']",this._viewRootNode);if(0!==t.length){var n=t[0],o=r.position(n),a=r.position(this._viewRootNode),s=o.y+o.h-a.y,l=o.x-a.x;this._container.style.top=s+"px",this._container.style.left=l+"px"}},_updateCompletion:function(e){this._closeCompletion();var i=this._getCompletions(e);0!==i.choices.length?(this._completionWidget=new c(i),this._completionWidget.placeAt(this._container),this._container.style.display="",this._completionWidget.startup(),this._completionWidget.navigate({keyCode:a.DOWN_ARROW}),this._completionWidget.on("change",t.hitch(this,this._handleChange))):this._stopCompletion()},_handleChange:function(e){var t=this._completionNode,i=t;""!==this._completionInput&&(i=this._equation.getNextSibling(t)||t),this._latexCommandsActions.handleLaTeXCommand(i,e.mwEventData.newValue),this._stopCompletion()},_stopCompletion:function(){window.removeEventListener("click",this._clickCallback),this._closeCompletion(),this._completionNode=null,this._completionInput=""},_closeCompletion:function(){this._completionWidget&&(this._completionWidget.destroy(),this._completionWidget=null,this._container.style.display="none",o.empty(this._container))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(261),i(268),i(831),i(729),i(400)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";return e(n,{pluginId:"action.linebreak",pluginFamily:"actions",pluginDependencies:["api.attributes","controller.cursor","controller.editmanager","external.actionservice","helper.delete","helper.insert","model.equation"],constructor:function(e,i,n,o,r,a,s){this._attributes=e,this._cursorController=i,this._editmanager=n,this._equation=s,this._deleteHelper=r,this._insertHelper=a;var l=[{id:"equationeditor.linebreak",enabled:!0,key:"enter",callback:t.hitch(this,"_handleLineBreak",!1)},{id:"equationeditor.linebreak_alt",enabled:!0,key:"shift_enter",callback:t.hitch(this,"_handleLineBreak",!1)}];o.loadActions(l),this.own(r.addDeleteHandler(t.hitch(this,"_handleDelete")))},_handleDelete:function(e){var t=this._detectLine();return t&&-1===e&&t.left?(this._mergeLines(t.left,t.line),!0):t&&1===e&&t.right?(this._mergeLines(t.line,t.right),!0):void 0},_mergeLines:function(e,i){var n=e.parent;this._editmanager.createBlock(t.hitch(this,(function(t){var r=e.children.length;t.moveChildren(e.id,e.children.length,i.id),e.children[r-1]&&e.children[r]&&o.mergeIfCompatible(t,e.children[r-1],e.children[r]),t.deleteNode(i.id);var a=n.rows;if(1===(a-=1)){var s=this._equation.getParentAndIndex(n);t.moveChildren(s.parent.id,s.index,e.id),t.updateAttributes(s.parent.id,{"data-category":o.CATEGORY.PLACEHOLDER_ROW}),t.deleteNode(n.id)}else t.updateAttributes(n.id,{rows:a})})))},_detectLine:function(){var e,t=this._cursorController.getPosition(),i={},n=!0,r=!0,a=t.node;o.categorizeNode(a)===o.CATEGORY.ATOM||o.categorizeNode(a)===o.CATEGORY.PLACEHOLDER_ATOM?(n=0===t.offset,r=t.offset===a.text.length,a=(e=this._equation.getParentAndIndex(a)).parent,n=n&&0===e.index,r=r&&e.index===a.children.length-1):(n=0===t.offset,r=t.offset===a.children.length);var s=(e=this._equation.getParentAndIndex(a)).parent;if("MathMatrix"===s.className&&1===s.cols&&(n=n&&e.index>0,r=r&&e.index<s.children.length,n||r)){var l=s.parent;if("MathRow"===l.className&&(l=l.parent),"MathRoot"===l.className)return i.line=s.children[e.index],n&&(i.left=s.children[e.index-1]),r&&(i.right=s.children[e.index+1]),i}},_handleLineBreak:function(){if(!this._attributes.get("readonly")){var e=this._cursorController.getPosition(),i=e.node;o.categorizeNode(i)===o.CATEGORY.ATOM&&(i=this._equation.getParent(i));var n=this._equation.getParentAndIndex(i),a=n.parent;if("MathMatrix"===a.className){var s=a;return"MathRow"===(a=a.parent).className&&(a=a.parent),"MathRoot"===a.className&&this._insertAdditionalNewline(s,n.index),!0}if("MathRoot"===a.className)return this._editmanager.createBlock(t.hitch(this,(function(t){var n=this._insertHelper.getInsertPosition(t,e),a=r.serializeRange(n.node,0,n.offset),s=r.serializeRange(n.node,n.offset);this._deleteHelper.deleteRange(t,{node:n.node,left:0,right:n.node.children.length}),t.updateAttributes(i.id,{"data-category":o.CATEGORY.STRUCTURE_PART});var l=t.insertNode(i.id,0,"MathMatrix",{cols:1,rows:2,colspec:"l","data-category":o.CATEGORY.MULTILINEEQUATION}),c=t.insertNode(l.id,0,"MathRow",{"data-category":o.CATEGORY.PLACEHOLDER_ROW}),d=t.insertNode(l.id,1,"MathRow",{"data-category":o.CATEGORY.PLACEHOLDER_ROW});this._insertHelper.insertTemplate(t,a,c,0),this._insertHelper.insertTemplate(t,s,d,0),this._cursorController.setPosition({id:d.id,offset:0})}))),!0}},_insertAdditionalNewline:function(e,i){var n=this._cursorController.getPosition();this._editmanager.createBlock(t.hitch(this,(function(t){var r=this._insertHelper.getInsertPosition(t,n);t.updateAttributes(e.id,{rows:e.rows+1});var a=t.insertNode(e.id,i+1,"MathRow",{"data-category":o.CATEGORY.PLACEHOLDER_ROW});t.moveChildren(a.id,0,r.node.id,r.offset)})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(261),i(940),i(268)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e(n,{pluginId:"action.mathmlformatting",pluginFamily:"actions",pluginDependencies:["helper.insert","model.equation"],constructor:function(e,n){this._insertHelper=e,this._equation=n,this.own(i.after(e,"prepareTextAttributes",t.hitch(this,"_handlePrepareTextAttributes"))),this.own(i.after(n,"beforeUpdateAttributes",t.hitch(this,"_handleUpdateAttributes"),!0)),this.own(i.after(n,"beforeReplaceText",t.hitch(this,"_handleReplaceText"),!0))},_handlePrepareTextAttributes:function(e,t){return"id"!==e.kind||t&&t.mathvariant||(1===e.text.length?e.mathvariant=o.add(e.mathvariant,"italic"):e.mathvariant=o.remove(e.mathvariant,"italic")),e},_handleReplaceText:function(e,t,i,n,o){var r=this._equation.getById(t);this._isAutoUpdateNode(r)&&this._handleTextChange(e,r,r.text.length,r.text.length-n+o.length)},_handleUpdateAttributes:function(e,t,i){if(i.hasOwnProperty("text")){var n=this._equation.getById(t);this._isAutoUpdateNode(n)&&this._handleTextChange(e,n,n.text.length,i.text.length)}},_isAutoUpdateNode:function(e){return"id"===e.kind},_handleTextChange:function(e,t,i,n){var r=1===n;if(1===i!==r){var a=r?o.add(t.mathvariant,"italic"):o.remove(t.mathvariant,"italic");e.updateAttributes(t.id,{mathvariant:a})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(261),i(684),i(268),i(294),i(2049)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";return e(n,{pluginId:"action.matrix",pluginFamily:"actions",pluginDependencies:["action.inserttext","api.attributes","controller.cursor","controller.editmanager","external.actionservice","model.cursor","model.equation","external.contextmenucontributor"],constructor:function(e,n,o,r,a,l,c,d){this._insertTextAction=e,this._attributes=n,this._cursorController=o,this._actionService=a,this._editManager=r,this._equation=c,this._contextMenuContributor=d,this.own(n.observe("readonly",t.hitch(this,"_updateActions"))),this.own(i.after(e,"onTextInserted",t.hitch(this,"_handleTextInserted"),!0)),this._actions=[{id:"equationeditor.matrix.insertcolumnleft",enabled:!1,text:s.matrixInsertColumnLeft,callback:t.hitch(this,"_handleInsertColumn",-1)},{id:"equationeditor.matrix.insertcolumnright",enabled:!1,text:s.matrixInsertColumnRight,callback:t.hitch(this,"_handleInsertColumn",1)},{id:"equationeditor.matrix.deletecolumn",enabled:!1,text:s.matrixDeleteColumn,callback:t.hitch(this,"_handleDeleteColumn")},{id:"equationeditor.matrix.insertrowabove",enabled:!1,text:s.matrixInsertRowAbove,callback:t.hitch(this,"_handleInsertRow",-1)},{id:"equationeditor.matrix.insertrowbelow",enabled:!1,text:s.matrixInsertRowBelow,callback:t.hitch(this,"_handleInsertRow",1)},{id:"equationeditor.matrix.deleterow",enabled:!1,text:s.matrixDeleteRow,callback:t.hitch(this,"_handleDeleteRow")},{id:"equationeditor.matrix.removerdelimiters",enabled:!1,text:s.matrixRemoveDelimiters,callback:t.hitch(this,"_handleRemoveDelimiters")},{id:"equationeditor.matrix.usebrackets",enabled:!1,text:s.matrixUseBrackets,callback:t.hitch(this,"_handleDelimiters","bracket")},{id:"equationeditor.matrix.useparentheses",enabled:!1,text:s.matrixUseParentheses,callback:t.hitch(this,"_handleDelimiters","paren")}],a.loadActions(this._actions),this.own(i.after(l,"onChange",t.hitch(this,"_updateActions"))),this.own(i.after(d,"updateActions",t.hitch(this,"_maybeHideActions"))),this._updateActions(),this._addActionsToContextMenu()},_addActionsToContextMenu:function(){this._actions.forEach((function(e){this._contextMenuContributor.addActionToMap(a.MATRIX,e.id)}),this)},_getCurrentMatrixInfo:function(){var e=this._attributes.get("readonly"),t=this._equation.iterate({start:this._cursorController.getPosition().node,direction:o.UP,MathMatrix:function(e,t){r.isMatrix(e)&&t.stop(e)}}),i=!e&&t,n=!!i&&r.isCases(t),a=!!i&&!n,s=a&&r.isMatrixWithDelimiters(i,"bracket"),l=a&&r.isMatrixWithDelimiters(i,"paren");return{inCases:n,inMatrix:a,hasBrackets:s,hasDelimiters:s||l,hasParentheses:l}},_updateActions:function(){var e=this._getCurrentMatrixInfo();["equationeditor.matrix.deletecolumn","equationeditor.matrix.insertcolumnleft","equationeditor.matrix.insertcolumnright","equationeditor.matrix.insertrowbelow","equationeditor.matrix.insertrowabove","equationeditor.matrix.deleterow"].forEach((function(t){this._actionService.updateAction(t,{enabled:e.inMatrix||e.inCases})}),this),this._actionService.updateAction("equationeditor.matrix.removerdelimiters",{enabled:e.inMatrix&&e.hasDelimiters}),this._actionService.updateAction("equationeditor.matrix.useparentheses",{enabled:e.inMatrix&&!e.hasParentheses}),this._actionService.updateAction("equationeditor.matrix.usebrackets",{enabled:e.inMatrix&&!e.hasBrackets})},_maybeHideActions:function(){if(!this._attributes.get("disabled")){var e=this._getCurrentMatrixInfo();this._attributes.get("readonly")||!e.inMatrix&&!e.inCases?this._contextMenuContributor.hideGroup(a.MATRIX):(e.hasDelimiters&&e.inMatrix||this._contextMenuContributor.hideAction("equationeditor.matrix.removerdelimiters"),!e.hasParentheses&&e.inMatrix||this._contextMenuContributor.hideAction("equationeditor.matrix.useparentheses"),!e.hasBrackets&&e.inMatrix||this._contextMenuContributor.hideAction("equationeditor.matrix.usebrackets"))}},_handleDeleteColumn:function(){var e=this._findMatrix();this._editManager.createBlock(t.hitch(this,(function(t){var i=e.matrix,n=e.row,o=e.column;if(1===i.cols)t.deleteNode(e.fullStructure.id);else{t.updateAttributes(i.id,{cols:i.cols-1});for(var r=0;r<i.rows;r+=1)t.deleteNode(i.children[i.cols*r+o].id);this._cursorController.setPosition({id:i.children[n*i.cols+Math.min(o,i.cols-1)].id,offset:0})}})))},_handleDeleteRow:function(){var e=this._findMatrix();this._editManager.createBlock(t.hitch(this,(function(t){var i=e.matrix,n=e.row,o=e.column;if(1===i.rows)t.deleteNode(e.fullStructure.id);else{t.updateAttributes(i.id,{rows:i.rows-1});for(var r=i.cols-1;r>=0;r-=1)t.deleteNode(i.children[i.cols*n+r].id);this._cursorController.setPosition({id:i.children[Math.min(n,i.rows-1)*i.cols+o].id,offset:0})}})))},_handleInsertColumn:function(e){var i=this._findMatrix();this._editManager.createBlock(t.hitch(this,(function(t){var n=i.matrix,o=i.column,r=i.row,a=o+(-1===e?0:1);this._insertColumn(t,n,a,r),this._cursorController.setPosition({id:n.children[r*n.cols+a].id,offset:0})})))},_handleInsertRow:function(e){var i=this._findMatrix();this._editManager.createBlock(t.hitch(this,(function(t){var n=i.matrix,o=i.column,r=i.row+(-1===e?0:1);this._insertRow(t,n,o,r),this._cursorController.setPosition({id:n.children[r*n.cols+o].id,offset:0})})))},_findMatrix:function(){return this._equation.iterate({start:this._cursorController.getPosition().node,direction:o.UP,MathRow:t.hitch(this,(function(e,t){var i=t.getParent();if("MathMatrix"===i.className){var n=t.getParentIndex(),o=n%i.cols,r=(n-o)/i.cols,a=this._equation.getParent(i);t.stop({fullStructure:a,matrix:i,index:n,row:r,column:o})}}))})},_handleTextInserted:function(e,i){if(","===e||";"===e){var n=this._equation.getParentAndIndex(i);if("MathRow"===n.parent.className&&n.parent.children.length===n.index+1&&"MathMatrix"===(n=this._equation.getParentAndIndex(n.parent)).parent.className){var o=n.parent;if(r.isMatrix(o)&&!r.isCases(o)){var a=n.index%o.cols,s=(n.index-a)/o.cols;this._editManager.createBlock(t.hitch(this,(function(t){t.deleteNode(i.id),","===e?(a===o.cols-1&&this._insertColumn(t,o,a+1,s),this._cursorController.setPosition({id:o.children[s*o.cols+a+1].id,offset:0})):";"===e&&s===o.rows-1&&(this._insertRow(t,o,a,s+1),this._cursorController.setPosition({id:o.children[(s+1)*o.cols].id,offset:0}))})))}}}},_insertColumn:function(e,t,i,n){e.updateAttributes(t.id,{cols:t.cols+1});for(var o=0;o<t.rows;o+=1)e.insertNode(t.id,t.cols*o+i,"MathRow",{"data-category":"placeholder"})},_insertRow:function(e,t,i,n){e.updateAttributes(t.id,{rows:t.rows+1});for(var o=0;o<t.cols;o+=1)e.insertNode(t.id,t.cols*n+o,"MathRow",{"data-category":"placeholder"})},_maybeRemoveDelimiters:function(e,t){var i=t.fullStructure;3===i.children.length&&(e.deleteNode(i.children[2].id),e.deleteNode(i.children[0].id))},_handleRemoveDelimiters:function(){var e=this._findMatrix();this._editManager.createBlock(t.hitch(this,(function(t){this._maybeRemoveDelimiters(t,e)})))},_handleDelimiters:function(e){var i=this._findMatrix();this._editManager.createBlock(t.hitch(this,(function(t){this._maybeRemoveDelimiters(t,i);var n=i.fullStructure;t.insertNode(n.id,0,"MathDelimiter",{"data-category":"static",symbolName:e+"left"}),t.insertNode(n.id,2,"MathDelimiter",{"data-category":"static",symbolName:e+"right"})})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(217),i(221),i(206),i(261),i(268),i(1457)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";return e(r,{pluginId:"action.mouse",pluginFamily:"actions",pluginDependencies:["controller.caret","controller.cursor","controller.mouse","model.equation","view.keyhandler","view.rootnode"],constructor:function(e,i,n,o,r,a){this._caretController=e,this._cursorController=i,this._equation=o,this._rootNode=a,this._keyHandler=r,n.addMouseDown(t.hitch(this,"_handleMouseDown"),-1),n.addMouseUp(t.hitch(this,"_handleMouseUp"),10),n.addMouseMove(t.hitch(this,"_handleMouseMove"),-1),n.addMouseDoubleClick(t.hitch(this,"_handleDoubleClick"),-1)},_handleDoubleClick:function(e){var t=this._cursorController.getPosition();if("atom"===a.categorizeNode(t.node)){if(0===t.offset){var i=this._equation.getPreviousSibling(t.node);if(i)return this._makeSelection(i,t.node)}else if(t.offset===t.node.text.length){var n=this._equation.getNextSibling(t.node);if(n)return this._makeSelection(t.node,n)}this._cursorController.setPosition({id:t.id,offset:0}),this._cursorController.setPosition({id:t.id,offset:t.node.text.length},!0)}},_makeSelection:function(e,t){var i=this._equation.getParentAndIndex(e),n=i.index,o=i.index+1;n>0&&a.qualifiesAsOperator(e)&&(n-=1),o<i.parent.children.length-1&&a.qualifiesAsOperator(t)&&(o+=1),this._cursorController.setPosition({id:i.parent.id,offset:n}),this._cursorController.setPosition({id:i.parent.id,offset:o+1},!0)},_handleMouseDown:function(e){var t=i.position(this._rootNode,!0);this._caretController.fromXY(e.pageX-t.x,e.pageY-t.y,e.shiftKey),0===e.button&&(this._primaryButtonPressed=n("safari"))},_handleMouseMove:function(e){if(this._primaryButtonPressed||1==(1&e.buttons)){e.preventDefault();var t=this._caretController.getPositionFromAbsoluteXY(e.pageX,e.pageY);t&&this._cursorController.setPosition(t,!0)}},_handleMouseUp:function(e){window.setTimeout(t.hitch(this._keyHandler,"focus"),0),0===e.button&&(this._primaryButtonPressed=!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(261),i(268),i(729)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";var a={"^":{templateName:"superscript"},_:{templateName:"subscript"},"/":{templateName:"frac"},"'":{templateName:"derivativePrime",needsTransferPart:!0}};return e(n,{pluginId:"action.smartediting",pluginFamily:"actions",pluginDependencies:["action.inserttext","api.attributes","controller.cursor","controller.editmanager","controller.keyhandler","helper.backspacetoundo","helper.inserttemplate","model.equation"],constructor:function(e,n,o,s,l,c,d,u){this._attributes=n,this._insertTemplateHelper=d,this._cursorController=o,this._editmanager=s,this._equation=u,this._backspaceToUndoHelper=c,Object.keys(a).forEach((function(e){this.own(l.add(e,t.hitch(this,"_handleSmartEdit",e)))}),this),this.own(i.after(e,"onTextInserted",t.hitch(this,"_handleTextInserted"),!0)),this._templates=r.getById()},_handleSmartEdit:function(e){if(!this._cursorController.hasSelection()||this._attributes.get("readonly"))return!1;var i=a[e];return this._editmanager.createBlock(t.hitch(this,(function(e){var t=this._templates[i.templateName].template;1===this._insertTemplateHelper.insertTemplate(e,t).length&&this._cursorController.setLogical(this._cursorController.getLogical()+1)}))),!0},_handleTextInserted:function(e,i){var n=a[e];n&&(this._editmanager.createBlock(t.hitch(this,(function(t){var r=n.templateName,s=this._findTransferPart(i);if(s||!a[e].needsTransferPart){if(s&&s.left===s.right-1){var l=s.node.children[s.left];if("MathScript"===l.className){var c={subscript:1,superscript:2}[r];if(c&&!l.children[c]){t.updateAttributes(l.id,{children:l.children.slice(0,c).concat(l.children.slice(c+1))});var d=t.insertNode(l.id,c,"MathRow",{"data-category":o.CATEGORY.PLACEHOLDER_ROW});return this._cursorController.setPosition({id:d.id,offset:0}),void t.deleteNode(i.id)}}}var u=this._templates[r].template;t.deleteNode(i.id),1===this._insertTemplateHelper.insertTemplate(t,u,s).length&&this._cursorController.setLogical(this._cursorController.getLogical()+1)}}))),this._backspaceToUndoHelper.start())},_findTransferPart:function(e){var t=this._equation.getParentAndIndex(e),i=this._equation.getPreviousSibling(e);if(i){var n,r=t.index-1;return this._isParenthesis(i)&&(n=this._equation.getPreviousSibling(i),o.qualifiesAsIdentifier(n)?r-=1:n=null),{node:t.parent,left:r,right:t.index}}},_isParenthesis:function(e){return"MathRow"===e.className&&e.children.length>2&&"MathDelimiter"===e.children[0].className&&"parenleft"===e.children[0].symbolName&&"MathDelimiter"===e.children[e.children.length-1].className&&"parenright"===e.children[e.children.length-1].symbolName}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(261),i(684),i(268),i(729)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";var s={"(":["parenleft","parenright"],"[":["bracketleft","bracketright"],"{":["braceleft","braceright"]};return e(n,{pluginId:"action.smartparens",pluginFamily:"actions",pluginDependencies:["action.inserttext","api.attributes","controller.cursor","controller.editmanager","controller.keyhandler","helper.backspacetoundo","helper.insert","helper.inserttemplate","model.cursor","model.equation"],constructor:function(e,n,o,r,s,l,c,d,u,h){this._attributes=n,this._insertTextAction=e,this._insertTemplateHelper=d,this._backspaceToUndoHelper=l,this._insertHelper=c,this._cursorController=o,this._editmanager=r,this._equation=h,this.own(i.after(e,"onTextInserted",t.hitch(this,"_handleTextInserted"),!0)),this.own(i.after(u,"onChange",t.hitch(this,"_handleCursorMove"))),this._templates=a.getById(),this.own(s.add("(",t.hitch(this,"_handleParen","("))),this.own(s.add("[",t.hitch(this,"_handleParen","["))),this.own(s.add("{",t.hitch(this,"_handleParen","{"))),this._smartLeave=[]},_handleParen:function(e){if(!this._cursorController.hasSelection()||this._attributes.get("readonly"))return!1;var i={"(":"parentheses","[":"brackets","{":"braces"}[e];return this._editmanager.createBlock(t.hitch(this,(function(e){var t=this._insertTemplateHelper.insertTemplate(e,this._templates[i].template),n=this._findStructure(this._equation.getById(t[0].id));this._enableSmartLeave(n)}))),!0},_handleTextInserted:function(e,t){var i=s[e];if(i)return this._insertAutoCompleteParen(i,t);"MathDelimiter"===t.className&&this._checkAutoSkipParen(t)},_handleCursorMove:function(){if(0!==this._smartLeave.length){var e=this._cursorController.getPosition();this._equation.iterate({from:e.node,direction:o.UP,structure:t.hitch(this,(function(e,t){var i=this._smartLeave.indexOf(e.id);i>=0&&(this._smartLeave.splice(i+1),t.stop())})),MathRoot:t.hitch(this,(function(){this._smartLeave=[]}))})}},_enableSmartLeave:function(e){this._smartLeave.push(e.id)},_checkAutoSkipParen:function(e){if(0!==this._smartLeave.length){var i=this._equation.getParentAndIndex(e);if(i.index===i.parent.children.length-1){var n=i.parent.parent;this._smartLeave[this._smartLeave.length-1]===n.id&&(this._smartLeave.pop(),this._editmanager.createBlock(t.hitch(this,(function(t){t.deleteNode(e.id),i=this._equation.getParentAndIndex(n),this._cursorController.setPosition({id:i.parent.id,offset:i.index+1})}))))}}},_insertAutoCompleteParen:function(e,i){this._editmanager.createBlock(t.hitch(this,(function(t){var n=this._equation.getParentAndIndex(i),o=this._insertHelper.insertTemplate(t,["MathRow",{"data-category":"structure"},[["MathDelimiter",{symbolName:e[0],"data-category":"static"}],["MathRow",{"data-category":"placeholder","data-cursor":0}],["MathDelimiter",{symbolName:e[1],"data-category":"static"}]]],n.parent,n.index),r=this._findStructure(this._equation.getById(o[0].id));this._enableSmartLeave(r),t.deleteNode(i.id)}))),this._backspaceToUndoHelper.start()},_findStructure:function(e){return this._equation.iterate({from:e,direction:o.UP,structure:function(e,t){t.stop(e)}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(261),i(729),i(400)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";var a={mid:{mid:"parallel","=":"models","-":"vdash"},"~":{"=":"neq"},"-":{">":"rightarrow",mid:"dashv"},"<":{"=":"leq",">":"neq","-":"leftarrow"},"=":{">":"Rightarrow"},">":{"=":"geq"},leq:{">":"Leftrightarrow"},"!":{"=":"neq","<":"notlt",">":"notgt"},notlt:{"=":"notleq"},notgt:{"=":"notgeq"},leftarrow:{"-":"longleftarrow",">":"leftrightarrow"},longleftarrow:{">":"longleftrightarrow"}};return e(n,{pluginId:"action.smartsymbols",pluginFamily:"actions",pluginDependencies:["action.inserttext","controller.editmanager","model.equation"],constructor:function(e,n,r){this._editmanager=n,this._equation=r,this.own(i.after(e,"onTextInserted",t.hitch(this,"_handleTextInserted"),!0)),this._templates=o.getById()},_handleTextInserted:function(e,i){if("symbol"===i.kind){var n=this._equation.getPreviousSibling(i);if(n&&"symbol"===n.kind){var o=n.symbolName||n.text,r=a[o];o=i.symbolName||i.text,(r=r&&r[o])&&this._editmanager.createBlock(t.hitch(this,(function(e){e.deleteNode(i.id),e.updateAttributes(n.id,{symbolName:r})})))}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(261),i(268)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return t(n,{pluginId:"action.tab",pluginFamily:"actions",pluginDependencies:["controller.cursor","controller.keyhandler","external.actionservice","model.equation"],constructor:function(e,t,n,o){this._cursorController=e,this._equation=o;var r=[{id:"equationeditor.jumptoplaceholder",key:"tab",keyPriority:-1,enabled:!0,callback:i.hitch(this,"_handleTab",!0)},{id:"equationeditor.jumptopreviousplaceholder",key:"shift_tab",keyPriority:-1,enabled:!0,callback:i.hitch(this,"_handleTab",!1)}];n.loadActions(r)},_handleTab:function(e){var t=this._searchPlaceholderAtom(e);if(t)return this._cursorController.setPosition({id:t.id,offset:0}),!0},_searchPlaceholderAtom:function(e){var t,i,n=this._cursorController.getPosition();return this._equation.iterate({"placeholder-atom":function(o,r){n.id!==o.id&&(!i&&e||(t=o),i&&e?r.stop():t||(t=o))},all:function(o,r){n.id===o.id&&(i=!0,t&&!e&&r.stop())}}),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(261),i(684),i(268)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return t(n,{pluginId:"action.tableavesstructure",pluginFamily:"actions",pluginDependencies:["controller.cursor","controller.keyhandler","external.actionservice","model.equation"],constructor:function(e,t,n,o){this._cursorController=e,this._equation=o;var r=[{id:"equationeditor.leavestructure",enabled:!0,callback:i.hitch(this,"_leaveStructure")}];n.loadActions(r),this.own(t.add("tab",i.hitch(this,"_leaveStructure"),-5))},_leaveStructure:function(){var e=this._cursorController.getPosition();return this._equation.iterate({start:e.node,direction:o.UP,structure:i.hitch(this,(function(e,t){r.isPlaceholderRow(t.getParent())&&(this._cursorController.setPosition({id:t.getParent().id,offset:t.getParentIndex()+1}),t.stop())}))}),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(261),i(940),i(268)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e(n,{pluginId:"action.textformatting",pluginFamily:"actions",pluginDependencies:["api.attributes","action.inserttext","controller.cursor","controller.editmanager","controller.selection","external.actionservice","helper.insert","model.cursor","model.equation"],constructor:function(e,n,o,r,a,s,l,c,d){this._attributes=e,this._insertHelper=l,this._cursorController=o,this._editmanager=r,this._selectionController=a,this._actionService=s,this._equation=d,this._disabled=this._attributes.get("disabled"),this._readonly=this._attributes.get("readonly"),this._inAtom=!1,this._selectBold=!1,this._selectItalic=!1;var u=[{id:"equationeditor.format.bold",enabled:!this._disabled&&!this._readonly,key:"ctrl_b",platformKey:{mac:"meta_b"},callback:t.hitch(this,"_handleBold")},{id:"equationeditor.format.italic",enabled:!this._disabled&&!this._readonly,key:"ctrl_i",platformKey:{mac:"meta_i"},callback:t.hitch(this,"_handleItalic")}];s.loadActions(u),this.own(i.after(l,"prepareTextAttributes",t.hitch(this,"_handlePrepareTextAttributes"))),this.own(i.after(c,"onChange",t.hitch(this,"_handleCursorMove"))),this.own(i.after(s,"onRemoteActionChange",t.hitch(this,"_handleActionChange"),!0)),this.own(e.observe("disabled",t.hitch(this,"_handleDisabledChange"))),this.own(e.observe("readonly",t.hitch(this,"_handleReadonlyChange"))),this._updateActions()},_handleDisabledChange:function(e){this._disabled=e,this._updateActions()},_handleReadonlyChange:function(e){this._readonly=e,this._updateActions()},_updateActions:function(){this._actionService.updateAction("equationeditor.format.bold",{enabled:this._inAtom&&!this._readonly&&!this._disabled,selected:this._selectBold&&this._inAtom}),this._actionService.updateAction("equationeditor.format.italic",{enabled:this._inAtom&&!this._readonly&&!this._disabled,selected:this._selectItalic&&this._inAtom})},_handleActionChange:function(e){if(!this._attributes.get("readonly")&&"selected"===e.key)switch(e.id){case"equationeditor.format.bold":this._applyStyle("bold",!e.newValue);break;case"equationeditor.format.italic":this._applyStyle("italic",!e.newValue)}},_handleCursorMove:function(){var e=!1,t=!1;if(this._inAtom=!1,this._selectBold=!1,this._selectItalic=!1,this._cursorController.hasSelection())this._selectionController.iterateSelection({atom:function(i,n){if("id"===i.kind){var o=i.mathvariant?i.mathvariant.split("-"):[];this._selectBold=this._selectBold||o.indexOf("bold")>=0,this._selectItalic=this._selectBold||o.indexOf("italic")>=0,e=e||o.indexOf("bold")<0,t=t||o.indexOf("italic")<0,this._selectBold&&e&&this._selectItalic&&t&&n.stop(),this._inAtom=!0}}.bind(this)}),this._selectBold=!e,this._selectItalic=!t;else{var i=this._cursorController.getPosition().node;if("atom"===r.categorizeNode(i)&&"id"===i.kind){var n=i.mathvariant?i.mathvariant.split("-"):[];this._selectBold=n.indexOf("bold")>=0,this._selectItalic=n.indexOf("italic")>=0,this._inAtom=!0}}this._updateActions()},_handlePrepareTextAttributes:function(e,t){return"id"!==e.kind||(e.mathvariant=e.mathvariant||t&&t.mathvariant||"italic"),e},_handleBold:function(){return this._applyStyleFromAction("equationeditor.format.bold","bold"),!0},_handleItalic:function(){return this._applyStyleFromAction("equationeditor.format.italic","italic"),!0},_applyStyleFromAction:function(e,t){var i=this._actionService.getAction(e),n=i.selected;this._actionService.updateAction(e,{selected:!i.selected}),this._applyStyle(t,n)},_applyStyle:function(e,i){var n=this._cursorController.hasSelection();this._editmanager.createBlock(t.hitch(this,(function(t){if(n)this._applyStyleToSelection(t,e,i);else{var o=this._cursorController.getPosition();this._applyStyleToAtom(t,e,i,o.node)}})))},_applyStyleToSelection:function(e,i,n){this._selectionController.iterateSelection({atom:t.hitch(this,"_applyStyleToAtom",e,i,n)})},_applyStyleToAtom:function(e,t,i,n){if("id"===n.kind){var r=n.mathvariant;r=i?o.remove(r,t):o.add(r,t),e.updateAttributes(n.id,{mathvariant:r})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(261)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(n,{pluginId:"action.undoredo",pluginDependencies:["controller.undoredo","external.actionservice"],constructor:function(e,n){this._undoRedoController=e,this._actionService=n;var o=[{id:"equationeditor.undo",enabled:e.canUndo(),key:"ctrl_z",platformKey:{mac:"meta_z"},callback:function(){return e.undo(),!0}},{id:"equationeditor.redo",enabled:e.canRedo(),key:"ctrl_y",platformKey:{mac:"meta_shift_z"},callback:function(){return e.redo(),!0}}];n.loadActions(o),this.own(i.after(e,"onChange",t.hitch(this,"_updateAttributes")))},_updateAttributes:function(){this._actionService.updateAction("equationeditor.undo",{enabled:this._undoRedoController.canUndo()}),this._actionService.updateAction("equationeditor.redo",{enabled:this._undoRedoController.canRedo()})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(588),i(268)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return t(null,{pluginId:"action.visualcursor",pluginFamily:"actions",pluginDependencies:["controller.cursor","controller.selection","external.actionservice","model.equation"],constructor:function(e,t,n,o){this._cursorController=e,this._selectionController=t,this._equation=o;var r=[{id:"equationeditor.left.visual",enabled:!0,keyPriority:2,key:"left",callback:i.hitch(this,"_handleLinearMove",-1)},{id:"equationeditor.selectleft.visual",enabled:!0,keyPriority:2,key:"shift_left",callback:i.hitch(this,"_handleLinearMove",-1,!0)},{id:"equationeditor.right.visual",enabled:!0,keyPriority:2,key:"right",callback:i.hitch(this,"_handleLinearMove",1)},{id:"equationeditor.selectright.visual",enabled:!0,keyPriority:2,key:"shift_right",callback:i.hitch(this,"_handleLinearMove",1,!0)}];n.loadActions(r)},_handleLinearMove:function(e,t){var i;if(this._cursorController.hasSelection())return!1;var n,r,a=this._cursorController.getPosition(),s=a.node,l=a.offset;return o.categorizeNode(s)===o.CATEGORY.ATOM?-1===e&&0===l?(n=(i=this._equation.getParentAndIndex(s)).parent,l=i.index):1===e&&l===s.text.length&&(n=(i=this._equation.getParentAndIndex(s)).parent,l=i.index+1):o.categorizeNode(s)===o.CATEGORY.PLACEHOLDER_ATOM?(n=(i=this._equation.getParentAndIndex(s)).parent,l=-1===e?0:1):o.categorizeNode(s)===o.CATEGORY.PLACEHOLDER_ROW&&(n=s),n&&(r=this._moveInRow(n,l,e)),!!r&&(this._cursorController.setPosition(r,t),!0)},_moveInRow:function(e,t,i){var n,r;if(-1===i&&0===t||1===i&&t===e.children.length){var a=this._equation.getParentAndIndex(e),s=a.parent,l=a.index;return s&&this[r="_leaveRowIn"+s.className]&&(n=this[r](s,i,l)),n}var c=t+(-1===i?-1:0),d=e.children[c];return o.categorizeNode(d)===o.CATEGORY.STATIC?(1===i&&(c+=1),this._moveInRow(e,c,i)):this[r="_enter"+d.className]?this[r](d,i):void 0},_enterMathRow:function(e,t){if(o.categorizeNode(e)===o.CATEGORY.PLACEHOLDER_ROW)return{id:e.id,offset:1===t?0:-1};var i=-1===t?e.children.length:0;return this._moveInRow(e,i,t)},_leaveRowInMathRow:function(e,t,i){var n=i;return 1===t&&(n+=1),o.categorizeNode(e)===o.CATEGORY.PLACEHOLDER_ROW?{id:e.id,offset:n}:this._moveInRow(e,n,t)},_enterMathFraction:function(e,t){return this._tryChildren(e,t,[0,1])},_leaveRowInMathFraction:function(e,t,i){return e.bevelled&&(1===t&&0===i||-1===t&&1===i)?this._tryChildren(e,t,[1-i]):this._leaveNode(e,t)},_enterMathScript:function(e,t){return e.isStacked()||1===t?this._tryChildren(e,t,[0,2,1]):this._tryChildren(e,t,[2,1,0])},_leaveRowInMathScript:function(e,t,i){return e.isStacked()?this._leaveNode(e,t):1===t?0===i?this._tryChildren(e,t,[2,1]):this._leaveNode(e,t):-1===t?0!==i?this._tryChildren(e,t,[0]):this._leaveNode(e,t):void 0},_enterMathRadical:function(e,t){return-1===t?this._tryChildren(e,t,[0,1]):this._tryChildren(e,t,[1,0])},_leaveRowInMathRadical:function(e,t,i){return 1===t?1===i?this._tryChildren(e,t,[0]):this._leaveNode(e,t):0===i?this._tryChildren(e,t,[1]):this._leaveNode(e,t)},_enterMathMultiScript:function(e,t){var i=this._getMultiScriptPositions(e,t);return this._tryChildren(e,t,i)},_leaveRowInMathMultiScript:function(e,t,i){var n=this._getMultiScriptPositions(e,t),o=n.lastIndexOf(i);return this._tryChildren(e,t,n.slice(o+2))},_getMultiScriptPositions:function(e,t){var i,n=[];for(i=2*e.numPostPairs+1;i<e.children.length;i+=2)n.push(i+1),n.push(i);for(n.push(0),n.push(0),i=1;i<2*e.numPostPairs;i+=2)n.push(i),n.push(i+1);return-1===t&&n.reverse(),n},_leaveNode:function(e,t){var i=this._equation.getParentAndIndex(e),n=i.index+(-1===t?0:1),r=i.parent;return o.categorizeNode(r)!==o.CATEGORY.PLACEHOLDER_ROW?this._moveInRow(r,n,t):{id:r.id,offset:n}},_tryChildren:function(e,t,i){for(var n=0;n<=i.length;n+=1){var r=i[n],a=e.children[r];if(a&&o.categorizeNode(a)!==o.CATEGORY.STATIC)return this._enterMathRow(a,t)}return this._leaveNode(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214)],o=i.dj.d(n,(function(e,t){"use strict";return e(null,{pluginId:"api.attributes",pluginFamily:"api",pluginDependencies:[],constructor:function(){this._values={}},set:function(e,t){this._values[e]!==t&&this._set(e,t)},get:function(e){return this._values[e]},_set:function(e,t){this._values[e]=t},observe:function(e,i){return t.after(this,"_set",(function(t,n){t===e&&i(n)}),!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214)],o=i.dj.d(n,(function(e,t){"use strict";return e(null,{pluginId:"api.cursor",pluginFamily:"api",pluginDependencies:["model.cursor","view.caret"],constructor:function(e,t){this._cursor=e,this._caret=t},hide:function(){this._caret.hide("api")},show:function(e){this._caret.show("api")},hasSelection:function(){return this._cursor.hasSelection()},clearSelection:function(){this._cursor.clearSelection(),this._cursor.onChange()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){"use strict";return e(null,{pluginId:"api.equation",pluginFamily:"api",pluginDependencies:["controller.editmanager","helper.mimetypeexport","model.equation"],constructor:function(e,t,i){this._editController=e,this._mimeTypeExportHelper=t,this._equation=i},fromMathML:function(e){this._editController.setEquation(e)},fromTeX:function(e){this._editController.setEquation(e,"tex")},toMATLABCode:function(){return this._equation.serializeToMATLABCode().code()},toAriaLabel:function(){return this._equation.serializeToAriaLabel()},toMathML:function(){return this._equation.serializeToMathMl()},toTeX:function(){return this._equation.serializeToTeX()},getAnnotations:function(){return this._equation.getAnnotations()},selectionToClipboardData:function(){return this._mimeTypeExportHelper.convertSelection()},setDisplayStyle:function(e){this._equation.getRoot().inline!==!e&&(this._equation.getRoot().inline=!e,this._equation.changed())},getDisplayStyle:function(){return!this._equation.getRoot().inline}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(214),i(210),i(211),i(217),i(225),i(2050),i(261),i(684),i(268)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){"use strict";return t(c,{pluginId:"controller.caret",pluginDependencies:["api.attributes","controller.cursor","controller.selection","model.cursor","model.equation","view.caret","view.helper","view.renderer","view.selection"],constructor:function(e,t,o,r,a,s,l,c,d){this._attributes=e,this.own(e.observe("active",i.hitch(this,"_handleActiveChange"))),this.own(e.observe("disabled",i.hitch(this,"_handleDisabledChange"))),this.own(e.observe("readonly",i.hitch(this,"_handleReadonlyChange"))),this._cursorController=t,this._selectionController=o,this._cursor=r,this._equation=a,this._caret=s,this._renderTarget=l.getRenderTarget(),this._viewHelper=l,this._selection=d,this.own(n.after(this._cursor,"onChange",i.hitch(this,"redraw"))),this.own(n.after(c,"onRedraw",i.hitch(this,"redraw")))},_handleActiveChange:function(e){e?this._caret.show("blurred"):this._caret.hide("blurred")},_handleDisabledChange:function(e){e?(this._caret.hide("disabled"),this._selection.hide()):(this._caret.show("disabled"),this.redraw())},_handleReadonlyChange:function(e){this._caret.setReadonly(e)},beforeCaretRedraw:function(){},fromXY:function(e,t,i){var n=this.getPositionFromXY(e,t);n&&this._cursorController.setPosition(n,i)},getPositionFromXY:function(e,t){var i=a.position(this._renderTarget,!0);return this.getPositionFromAbsoluteXY(e+i.x,t+i.y)},_getScrollOffset:function(){return{x:window.hasOwnProperty("scrollX")?window.scrollX:document.documentElement.scrollLeft,y:window.hasOwnProperty("scrollY")?window.scrollY:document.documentElement.scrollTop}},getPositionFromAbsoluteXY:function(e,t){var i=this._viewHelper.getRootGeometry();e<i.x?e=i.x:e>i.x+i.w-1&&(e=i.x+i.w-1),t<i.y?t=i.y:t>i.y+i.h-1&&(t=i.y+i.h-1);var n=this._getScrollOffset(),r=document.elementFromPoint(e-n.x,t-n.y);if(r){if(o.contains(r,"selection")||o.contains(r,"cursor")){var a=r.style.display;r.style.display="none";var s=this.getPositionFromAbsoluteXY(e,t);return r.style.display=a,s}if(this._renderTarget.contains(r)){if(u.isEmptyEquation(this._equation.getRoot()))return{id:this._equation.getRoot().children[0].children[0].id,offset:0};this._searched=[];var l=this._searchFromNode(r,e,t);return this._searched=void 0,l&&this._cursorController.fixPosition(l)}}},drawCaretAt:function(e){if(this._viewHelper.isAttachedToDocument()){var t=this._getCoordinatesFromPosition(e);return this._caret.setXY(t.x,t.y,t.height),t}},_searchFromNode:function(e,t,i){var n=[];if(e===this._renderTarget){var o=s(".MathRoot",e);o.length>0&&(e=o[0])}for(;e&&e!==this._renderTarget;){if((n=n.concat(this._searchChildren(e,t,i))).length>0){var r=a.position(e,!0);if(t>=r.x&&i>=r.y&&t<=r.x+r.w&&i<=r.y+r.h)break}this._searched.push(e),e=e.parentNode}if(n.length>0){if(e.id){var l=this._equation.getById(e.id);if("placeholder"!==u.categorizeNode(l)){var c=this._equation.iterate({from:l,direction:d.UP,placeholder:function(e,t){t.stop(e)}});c&&n.push(this._findCursorPositionInRow(c,t,i))}}return{id:(n=n.sort((function(e,t){return e.distance-t.distance})))[0].id,offset:n[0].offset}}},_searchChildren:function(t,i,n){var o=[];if(t.id){var r=this._equation.getById(t.id);if(!this._nodeClickable(r))return[];var a=u.categorizeNode(r);if("atom"===a)return[this._findCursorPositionInAtom(r,i,n)];"placeholder"===a&&o.push(this._findCursorPositionInRow(r,i,n))}if(t.children.length>=0){var s=this._getSearchableChildren(t);s=this._sortByDistance(s,i,n),e.forEach(s,(function(e){o=o.concat(this._searchChildren(e.node,i,n))}),this)}return o},_getSearchableChildren:function(t){return e.filter(t.children,(function(e){return!(this._searched.indexOf(e)>=0)&&(!e.id||(e=this._equation.getById(e.id),this._nodeClickable(e)))}),this)},_sortByDistance:function(t,i,n){return e.map(t,(function(e){var t=a.position(e,!0);return{node:e,distance:this._distanceTo(t,i,n)}}),this).sort((function(e,t){return e.distance-t.distance}))},_distanceTo:function(e,t,i){var n=0,o=0;return t<=e.x?n=e.x-t:t>=e.x+e.w&&(n=t-(e.x+e.w)),i<=e.y?o=e.y-i:i>=e.y+e.h&&(o=i-(e.y+e.h)),n+o},_nodeClickable:function(e){for(;e;){if("static"===u.categorizeNode(e))return!1;e=this._equation.getParent(e)}return!0},_findCursorPositionInRow:function(e,t,n){var o,r;if(0===e.children.length)return o=this._viewHelper.getNodeGeometry(e),{id:e.id,offset:0,distance:this._distanceTo(i.mixin(o,{w:1}),t,n)};for(r=0;r<e.children.length&&!(t<(o=this._viewHelper.getNodeGeometry(e.children[r])).x+o.w/2);r+=1);return{id:e.id,offset:r,distance:this._distanceTo(i.mixin(o,{w:1,x:r<e.children.length?o.x:o.x+o.w}),t,n)}},_findCursorPositionInAtom:function(e,t,n){var o=this._viewHelper.getNodeGeometry(e),r=t-o.x,a=Math.min(Math.max(0,o.w>0?r/o.w:0),1),s=Math.max(0,Math.floor((e.text.length+1)*a));return s>e.text.length&&(s=e.text.length),{id:e.id,offset:s,distance:this._distanceTo(i.mixin(o,{w:1,x:o.x+o.w*a}),t,n)}},redraw:function(){if(!this._attributes.get("disabled")){this.beforeCaretRedraw();var e=this._cursor.getPosition(),t=this.drawCaretAt(e);if(t&&this._cursor.hasSelection()){var i=this._selectionController.getSelectionSpan(),n=l.coordinatesFromSelection(i,this._renderTarget);i.reversed?(n.w=n.w+n.x-(t.x-1),n.x=t.x+1):n.w=t.x-n.x,this._selection.show(),this._selection.set(n.x,n.y,n.w,n.h)}else this._selection.hide()}},_getCoordinatesFromPosition:function(e){return l.coordinatesFromPosition(e,this._renderTarget)||{x:0,y:0,height:0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(588),i(261)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(o,{pluginId:"controller.contextmenu",pluginDependencies:["controller.caret","controller.focus","controller.mouse","controller.selection","external.contextmenugenerator","external.contextmenucontributor","model.equation","view.rootnode"],constructor:function(e,n,o,r,a,s,l,c){var d;this._caretController=e,this._focusController=n,this._selectionController=r,this._equation=l,this._rootNode=c,o.addMouseDown(t.hitch(this,"_handleMouseDown"),1),a.createContextMenu(this._rootNode,[s]),i.after(a,"onOpen",t.hitch(this,(function(){d=d||this._focusController.add("context-menu")}))),i.after(a,"onClose",(function(){d&&d.remove(),d=null}))},_handleMouseDown:function(e){if(2==(2&e.button)&&this._selectionController.hasSelection()){var t=this._caretController.getPositionFromAbsoluteXY(e.pageX,e.pageY);if(t){var i=n.logicalFromPosition(t,this._equation.getRoot()),o=this._selectionController.getSelectionLogical();return o.left<=i||i<=o.right}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(588),i(684),i(268)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return t(null,{pluginId:"controller.cursor",pluginDependencies:["controller.selection","model.cursor","model.equation"],constructor:function(e,t,i){this._selectionController=e,this._cursor=t,this._equation=i,this.setLogical(0)},availableCursorPositions:function(){var e=this._equation.getRoot();return n.availableCursorPosition(e)},setLogical:function(e,t){e<0&&(e=0);var i=this._equation.getRoot(),o=n.positionFromLogical(e,i);o||(e=n.availableCursorPosition(i)-1,o=n.positionFromLogical(e,i)),this.setPosition(o,t)},getLogical:function(){var e=this._cursor.getPosition();return n.logicalFromPosition(e,this._equation.getRoot())},getAnchorLogical:function(){var e=this._cursor.getAnchor();return e&&n.logicalFromPosition(e,this._equation.getRoot())},hasSelection:function(){return this._cursor.hasSelection()},setPosition:function(e,t){e={id:e.id,offset:e.offset};var i=this._equation.getById(e.id);if(e.offset<0&&(e.offset+=n.nodeLength(i)+1),t){r.isMultiLineEquation(this._equation.getRoot())&&(e=this._fixPositionInLine(e));var o=this._cursor.hasSelection()?this._cursor.getAnchor():this._cursor.getPosition(),a=this._selectionController.getSpan(o,e);e={id:a.id,offset:a.reversed?a.left:a.right},i=this._equation.getById(e.id)}e=this.fixPosition(e),this._cursor.setPosition(e,t)},setSelectionLogical:function(e,t){this._cursor.pauseEvents("selecting"),this.setLogical(e),this.setLogical(t,!0),this._cursor.unpauseEvents("selecting")},_fixPositionInLine:function(e){var t=this.getPosition(),i=this._equation.getById(e.id),n=this._getLineOf(t.node),o=this._getLineOf(i);if(n!==o){var r=this._equation.getRoot().children[0].children[0].children[n];e.id=r.id,e.offset=n<o?r.children.length:0,e=this.fixPosition(e)}return e},_getLineOf:function(e){return this._equation.iterate({from:e,direction:o.UP,MathMatrix:i.hitch(this,(function(e,t){var i=this._equation.getParentAndIndex(e);"MathRoot"===this._equation.getParent(i.parent).className&&(i=this._equation.getParentAndIndex(t.getLastNode()),t.stop(i.index))}))})||0},fixPosition:function(e){var t=this._equation.getById(e.id),i=r.categorizeNode(t);if("placeholder"===i){var o=t.children[e.offset-1],a=t.children[e.offset];e=n.adaptPositionToAtoms(e,o,a)}else if("atom"===i)if(0===e.offset){var s=this._equation.getPreviousSibling(t);s&&"atom"===r.categorizeNode(s)&&n.shouldCursorMergeToLeft(s,t)&&(e.id=s.id,e.offset=s.text.length)}else if(e.offset===t.text.length){var l=this._equation.getNextSibling(t);l&&"atom"===r.categorizeNode(l)&&!n.shouldCursorMergeToLeft(t,l)&&(e.id=l.id,e.offset=0)}return e},getPosition:function(){var e=this._cursor.getPosition();return e.node=this._equation.getById(e.id),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4811),i(4817),i(209)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(null,{pluginId:"controller.editmanager",pluginDependencies:["controller.cursor","model.cursor","model.equation","controller.placeholderatomcontroller","controller.livecursor"],constructor:function(e,t,i){this._cursorController=e,this._equationModel=i,this._cursor=t},createBlock:function(e){this.beforeBlock();var o=this._cursor.getState();this._equationModel.pauseEvents(),this._cursor.pauseEvents();var r=[],a=new t(this._equationModel,r);try{e(a)}catch(e){n.error("Error while executing block: "+e)}if(this._equationModel.clearAnnotations(),this._equationModel.unpauseEvents(),this._cursor.unpauseEvents(),r.length>0){var s=new i(r,o,this._cursor.getState(),this._cursor,this._equationModel);this.onNewStep(s)}this.afterBlock()},beforeBlock:function(){},afterBlock:function(){},onNewStep:function(e){},onReset:function(){},setEquation:function(e,t){this._equationModel.pauseEvents(),this._cursor.pauseEvents(),this.onReset(),this._equationModel.setEquation(e,t),this._cursorController.setLogical(0),this._equationModel.unpauseEvents(),this._cursor.unpauseEvents()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(4812),i(4813),i(4814),i(4815),i(4816)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";return e(null,{constructor:function(e,t){this._equation=e,this._actions=t},deleteNode:function(e){this._equation.beforeDeleteNode(this,e),this._storeAndExecute(new i(e))},insertNode:function(e,i,o,r){r=t.mixin({},r);var a=this._storeAndExecute(new n(e,i,o,r));return this._equation.afterNodeInserted(this,e,i,a),a},replaceNode:function(e,t,i){var n=this._equation.getById(e),o=this._equation.getParentAndIndex(n);return this.deleteNode(e),this.insertNode(o.parent.id,o.index,t,i)},replaceText:function(e,t,i,n){this._equation.beforeReplaceText(this,e,t,i,n),this._storeAndExecute(new r(e,t,i,n))},updateAttributes:function(e,t){this._equation.beforeUpdateAttributes(this,e,t),this._storeAndExecute(new a(e,t))},moveChildren:function(e,t,i,n,r){n=n||0,r=r||this._equation.getById(i).children.length,this._storeAndExecute(new o(e,t,i,n,r)),this._equation.afterChildrenMoved(this,e,t,i,n,r)},mergeNodes:function(e,t){this._equation.beforeMergeNodes(this,e,t);var i=this._equation.getById(e),n=this._equation.getById(t);this.updateAttributes(i.id,{text:i.text+n.text}),this.deleteNode(t)},_storeAndExecute:function(e){var t=e.execute(this._equation);return this._actions.push(e),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){"use strict";return e(null,{constructor:function(e){this._targetId=e},execute:function(e){this._removedNode=e.getById(this._targetId);var t=e.getParent(this._removedNode);this._parentId=t.id,this._deletedIndex=t.children.indexOf(this._removedNode),t.children.splice(this._deletedIndex,1),e.changed()},unexecute:function(e){e.getById(this._parentId).children.splice(this._deletedIndex,0,this._removedNode),e.changed()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(618),i(1441),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(null,{constructor:function(e,t,i,n){this._targetId=e,this._offset=t,this._name=i,this._attributes=n||{},this._attributes.id||(this._attributes.id=o.generateUuid())},execute:function(e){var t=e.getById(this._targetId),i=this._createNode();return i&&(i.parent=t),t.children.splice(this._offset,0,i),e.changed(),i},unexecute:function(e){e.getById(this._targetId).children.splice(this._offset,1),e.changed()},_createNode:function(){return i.createNode(this._name,this._attributes)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(618),i(1441),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(null,{constructor:function(e,t,i,n,o){this._targetId=e,this._targetOffset=t,this._sourceId=i,this._start=n||0,this._end=o},execute:function(e){var t=e.getById(this._targetId),i=e.getById(this._sourceId),n=i.children.slice(this._start,this._end);i.children.splice(this._start,this._end-this._start),n.forEach((function(e){e&&(e.parent=t)}));var o=[this._targetOffset,0].concat(n);t.children.splice.apply(t.children,o),e.changed()},unexecute:function(e){var t=e.getById(this._targetId),i=e.getById(this._sourceId),n=t.children.slice(this._targetOffset,this._targetOffset-this._start+this._end);t.children.splice(this._targetOffset,this._end-this._start),n.forEach((function(e){e&&(e.parent=i)}));var o=[this._start,0].concat(n);i.children.splice.apply(i.children,o),e.changed()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){"use strict";return e(null,{constructor:function(e,t,i,n){this._targetId=e,this._offset=t,this._length=i,this._text=n},execute:function(e){var t=e.getById(this._targetId);return this._replacement=t.text.substr(this._offset,this._length),t.text=t.text.substr(0,this._offset)+this._text+t.text.substr(this._offset+this._length),e.changed(),t},unexecute:function(e){var t=e.getById(this._targetId);return t.text=t.text.substr(0,this._offset)+this._replacement+t.text.substr(this._offset+this._text.length),e.changed(),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){"use strict";return e(null,{constructor:function(e,t){this._targetId=e,this._newAttributes=t},execute:function(e){var t=e.getById(this._targetId);for(var i in this._oldAttributes={},this._newAttributes)this._newAttributes.hasOwnProperty(i)&&(this._oldAttributes[i]=t[i],t[i]=this._newAttributes[i]);e.changed()},unexecute:function(e){var t=e.getById(this._targetId);for(var i in this._oldAttributes)this._oldAttributes.hasOwnProperty(i)&&(t[i]=this._oldAttributes[i]);e.changed()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){"use strict";return e(null,{constructor:function(e,t,i,n,o){this._commands=e,this._cursorStart=t,this._cursorEnd=i,this._cursor=n,this._equation=o},execute:function(){this._equation.pauseEvents(),this._cursor.pauseEvents(),this._commands.forEach((function(e){e.execute(this._equation)}),this),this._cursor.setState(this._cursorEnd),this._equation.unpauseEvents(),this._cursor.unpauseEvents()},unexecute:function(){this._equation.pauseEvents(),this._cursor.pauseEvents();for(var e=this._commands.length-1;e>=0;e-=1){this._commands[e].unexecute(this._equation)}this._cursor.setState(this._cursorStart),this._equation.unpauseEvents(),this._cursor.unpauseEvents()},isSufficientForUndoTask:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(214),i(206),i(261)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return t(r,{pluginId:"controller.focus",pluginDependencies:["api.attributes","view.keyhandler"],constructor:function(e,t){this._attributes=e,this._keyHandler=t,this._focusStack=[],this.own(n.after(t,"onBlur",i.hitch(this,"_handleBlur"))),this.own(n.after(t,"onFocus",i.hitch(this,"_handleFocus"))),this._windowblurred=!1,this.own(n.after(window,"onfocus",i.hitch(this,"_handleWindowFocus"))),this.own(n.after(window,"onblur",i.hitch(this,"_handleWindowBlur")))},_handleWindowFocus:function(){this._focused=!0,this._windowblurred=!1,this._enqueueFocusCheck()},_handleWindowBlur:function(){this._focused=!1,this._windowblurred=!0,this._enqueueFocusCheck()},focus:function(){this._attributes.set("active",!0),0===this._focusStack.length&&this._keyHandler.focus()},add:function(t){return this._attributes.set("active",!0),0!==this._focusStack.length&&this._focusStack[0].group===t||this._focusStack.unshift({group:t}),{remove:i.hitch(this,(function(){e.some(this._focusStack,i.hitch(this,(function(e,i){if(e.group===t)return this._focusStack.splice(i,1),!0})))&&!this._windowblurred&&0===this._focusStack.length&&this._attributes.get("active")&&this._keyHandler.focus()}))}},_handleFocus:function(){this._focused=!0,this._enqueueFocusCheck()},_handleBlur:function(){this._focused=!1,this._enqueueFocusCheck()},_enqueueFocusCheck:function(){this._focusCheckEnqueued||(this._focusCheckEnqueued=!0,window.setTimeout(i.hitch(this,(function(){this._focusCheckEnqueued=!1,this._attributes.set("active",!this._windowblurred&&(this._focused||this._focusStack.length>0))})),0))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(214),i(221),i(229),i(261),i(1457)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";return t(a,{pluginId:"controller.keyhandler",pluginDependencies:["api.attributes","external.actionservice"],constructor:function(e,t){this._attributes=e,this._bindings={},this._typeHandlers=new s,this._actionService=t,t.getAllActions().forEach((function(e){(e.key||e.platformKey)&&this._addAction(e)}),this),this.own(n.after(this._actionService,"addAction",i.hitch(this,"_addAction"),!0)),this.own(n.after(this._actionService,"removeAction",i.hitch(this,"_removeAction"),!0))},add:function(e,t,i){var n=e;if("string"!=typeof e&&(n=e.key,e.platformKey))for(var r in e.platformKey)if(e.platformKey.hasOwnProperty(r)&&o(r)){n=e.platformKey[r];break}return this._ensureBinding(n),this._bindings[n].add(t,i)},addTypeHandler:function(e,t){return this._typeHandlers.add(e,t)},registerView:function(e){this._keyHandler=e,Object.keys(this._bindings).forEach(i.hitch(this,"_makeBinding"))},handleType:function(e){this._attributes.get("disabled")||1===e.length&&this._bindings[e]&&this._bindings[e].fire()||this._typeHandlers.fire(e)},_ensureBinding:function(e){this._bindings[e]||(this._bindings[e]=new s,this._makeBinding(e))},_makeBinding:function(e){if(this._keyHandler){var t={id:e+"_"+r.generateUuid(),enabled:!0,callback:i.hitch(this,"_handleKey",e)};this._keyHandler.addBinding({key:e},t)}},_handleKey:function(e){this._bindings[e]&&(this._attributes.get("disabled")||this._bindings[e].fire()||1!==e.length||this._typeHandlers.fire(e))},_addAction:function(e){(e.key||e.platformKey)&&this.add(e,i.hitch(this,(function(){var t=this._actionService.getAction(e.id);if(t&&t.enabled&&t.callback)return t.callback.call(void 0)})),e.keyPriority)},_removeAction:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(588),i(261),i(684),i(268)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";return e(o,{pluginId:"controller.livecursor",pluginDependencies:["controller.cursor","model.cursor","model.equation"],constructor:function(e,n,o){this._cursorController=e,this._cursor=n,this._equation=o,this.own(i.before(this._equation,"beforeDeleteNode",t.hitch(this,"_handleDeleteNode"))),this.own(i.before(this._equation,"afterNodeInserted",t.hitch(this,"_handleNodeInserted"))),this.own(i.before(this._equation,"beforeReplaceText",t.hitch(this,"_handleReplaceText"))),this.own(i.before(this._equation,"afterChildrenMoved",t.hitch(this,"_handleChildrenMoved"),!0)),this.own(i.before(this._equation,"beforeMergeNodes",t.hitch(this,"_handleBeforeMergeNodes"),!0))},_handleBeforeMergeNodes:function(e,t,i){var n=this._cursorController.getPosition();if(n.id===i){var o=this._equation.getById(t),r={id:t,offset:n.offset+o.text.length};this._cursor.setPosition(r)}},_handleNodeInserted:function(e,t,i){this._cursor.clearSelection();var n=this._cursorController.getPosition();if(n.id===t)n.offset>=i&&this._cursorController.setPosition({id:n.id,offset:n.offset+1});else{var o=this._equation.getParentAndIndex(n.node),r=o.parent,a=o.index;"MathText"===n.node.className&&r.id===t&&(a===i-1&&n.offset===n.node.text.length?this._cursorController.setPosition({id:r.id,offset:a+2}):a===i+1&&0===n.offset&&this._cursorController.setPosition({id:r.id,offset:a}))}},_handleDeleteNode:function(e,t){this._cursor.clearSelection();var i,o,r,s,l=this._cursor.getPosition();if(l.id===t)s=this._equation.getById(l.id),o=(i=this._equation.getParentAndIndex(s)).parent,r=i.index,l={id:o.id,offset:r},l=n.adaptPositionToAtoms(l,o.children[r-1],o.children[r+1]),this._cursor.setPosition(l);else{if(s=this._equation.getById(t),o=(i=this._equation.getParentAndIndex(s)).parent,r=i.index,o.id===l.id){if(l.offset>r){r=l.offset-1;var c={id:o.id,offset:r},d=r-(i.index===l.offset-1?1:0);c=n.adaptPositionToAtoms(c,o.children[d],o.children[r+1]),this._cursor.setPosition(c)}return}for(var u=this._equation.getById(l.id);u&&(i=this._equation.getParentAndIndex(u));)if(u=i.parent,r=i.index,u.id===t)return o=(i=this._equation.getParentAndIndex(u)).parent,r=i.index,"placeholder"!==a.categorizeNode(o)?this._findCursorPosition(u):(l={id:o.id,offset:r},l=n.adaptPositionToAtoms(l,o.children[r-1],o.children[r+1]),void this._cursor.setPosition(l))}},_findCursorPosition:function(e){this._equation.iterate({start:e,direction:r.RIGHT_LEFT_DOWN_UP,skipFirst:!0,placeholder:t.hitch(this,(function(e,t){var i=0;"left"===t.getDirection()&&(i=-1),this._cursorController.setPosition({id:e.id,offset:i}),t.stop()}))})},_handleReplaceText:function(e,t,i,n,o){this._cursor.clearSelection();var r=this._cursor.getPosition();if(!(r.id!==t||r.offset<i)){var a=r.offset;a<i+n?a=i:a-=n,a+=o.length,this._cursorController.setPosition({id:t,offset:a})}},_handleChildrenMoved:function(e,t,i,n,o,r){var s=this._cursorController.getPosition();s.id===n&&s.offset>=o&&s.offset<=r&&this._cursorController.setPosition({id:t,offset:i+s.offset-o});var l=a.categorizeNode(s.node),c=this._equation.getParentAndIndex(s.node),d=c.parent;"atom"===l&&d.id===n&&s.offset===s.node.text.length&&c.index===o-1&&this._cursorController.setPosition({id:t,offset:i})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(261),i(1457)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(n,{pluginId:"controller.mouse",pluginDependencies:["api.attributes","controller.focus","view.rootnode"],_DOUBLE_CLICK_TIME:400,constructor:function(e,n,r){this._attributes=e,this._rootNode=r,this._focusController=n,this._mouseDownHandlers=new o,this._mouseMoveHandlers=new o,this._mouseUpHandlers=new o,this._mouseDoubleClickHandlers=new o,this._mouseType=window.PointerEvent?"pointer":"mouse",this.own(i(r,this._mouseType+"down",t.hitch(this,"_handleMouseDown"))),this.own(i(r,this._mouseType+"move",t.hitch(this,"_handleMouseMove"))),this.own(i(r,this._mouseType+"up",t.hitch(this,"_handleMouseUp")))},addMouseUp:function(e,t){return this._mouseUpHandlers.add(e,t)},addMouseDown:function(e,t){return this._mouseDownHandlers.add(e,t)},addMouseDoubleClick:function(e,t){return this._mouseDoubleClickHandlers.add(e,t)},addMouseMove:function(e,t){return this._mouseMoveHandlers.add(e,t)},_addWindowMouseMoveHandler:function(){this._windowMouseMoveHandler||(this._windowMouseMoveHandler=i(window,this._mouseType+"move",t.hitch(this,"_handleWindowMouseMove")))},_handleWindowMouseMove:function(e){if(1!=(1&e.buttons))return this._windowMouseMoveHandler.remove(),void(this._windowMouseMoveHandler=null);this._rootNode.contains(e.target)||this._mouseMoveHandlers.fire(e)},_addWindowMouseUpHandler:function(){this._windowMouseUpHandler||(this._mouseDownFocus=this._focusController.add("mouse-down"),this._windowMouseUpHandler=i(window,this._mouseType+"up",t.hitch(this,"_handleWindowMouseUp")))},_handleWindowMouseUp:function(e){this._windowMouseUpHandler.remove(),this._windowMouseUpHandler=null,this._mouseDownFocus.remove()},_handleMouseMove:function(e){this._attributes.get("disabled")||e.pageX===this._lastX&&e.pageY===this._lastY||(this._lastX=e.pageX,this._lastY=e.pageY,this._mouseMoveHandlers.fire(e))},_handleMouseDown:function(e){if(!this._attributes.get("disabled")){this._addWindowMouseMoveHandler(),this._addWindowMouseUpHandler();var t=e.timeStamp;if(t-this._lastClickTime<this._DOUBLE_CLICK_TIME&&0===e.button&&e.pageX===this._lastX&&e.pageY===this._lastY)return this._mouseDoubleClickHandlers.fire(e),!0;this._lastX=e.pageX,this._lastY=e.pageY,this._lastClickTime=t,this._mouseDownHandlers.fire(e)}},_handleMouseUp:function(e){this._windowMouseUpHandler&&this._handleWindowMouseUp(e),this._attributes.get("disabled")||this._mouseUpHandlers.fire(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(588),i(261)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(o,{pluginId:"controller.placeholderatomcontroller",pluginDependencies:["model.equation"],constructor:function(e){this._equation=e,this.own(i.after(this._equation,"beforeDeleteNode",t.hitch(this,"_handleDeleteNode"),!0)),this.own(i.after(this._equation,"afterNodeInserted",t.hitch(this,"_handleNodeInserted"),!0)),this.own(i.after(this._equation,"afterChildrenMoved",t.hitch(this,"_handleChildrenMoved"),!0))},_handleNodeInserted:function(e,t,i,n){var o=this._equation.getById(t);2===o.children.length&&o.children[1]&&"placeholder-atom"===o.children[1]["data-category"]?e.deleteNode(o.children[1].id):n&&"placeholder"===n["data-category"]&&this._insertPlaceholderAtom(e,n.id)},_handleDeleteNode:function(e,t){var i=this._equation.getParent(this._equation.getById(t));"placeholder"===i["data-category"]&&1===i.children.length&&this._insertPlaceholderAtom(e,i.id)},_handleChildrenMoved:function(e,t,i,n,o,r){var a=this._equation.getById(t);a.children.length>1&&(a.children[a.children.length-1]&&"placeholder-atom"===a.children[a.children.length-1]["data-category"]&&e.deleteNode(a.children[a.children.length-1].id),a.children.length>1&&i<a.children.length-1&&a.children[i]&&"placeholder-atom"===a.children[i]["data-category"]&&e.deleteNode(a.children[i].id),a.children.length>1&&a.children[0]&&"placeholder-atom"===a.children[0]["data-category"]&&e.deleteNode(a.children[0].id));var s=this._equation.getById(n);"placeholder"===s["data-category"]&&0===s.children.length&&this._insertPlaceholderAtom(e,s.id)},_insertPlaceholderAtom:function(e,t){e.insertNode(t,0,"MathText",{"data-category":"placeholder-atom",text:""})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(261)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(n,{pluginId:"controller.undoredo",pluginDependencies:["controller.editmanager","model.cursor","model.equation"],constructor:function(e,n,o){this._undoStack=[],this._redoStack=[],this._equationModel=o,this._cursorModel=n,this.own(i.after(e,"onNewStep",t.hitch(this,"_insert"),!0)),this.own(i.after(e,"onReset",t.hitch(this,"_clear"),!0))},onChange:function(){},_clear:function(){this._undoStack=[],this._redoStack=[],this.onChange()},canUndo:function(){return this._undoStack.length>0},canRedo:function(){return this._redoStack.length>0},undo:function(){if(this.canUndo()){var e=this._undoStack.pop();e.unexecute(),this._redoStack.push(e),this.onChange()}},redo:function(){if(this.canRedo()){var e=this._redoStack.pop();e.execute(),this._undoStack.push(e),this.onChange()}},_insert:function(e){this._undoStack.push(e),this._redoStack=[],this.onChange()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(261)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(n,{pluginId:"helper.backspacetoundo",pluginDependencies:["controller.undoredo","controller.keyhandler","model.cursor","model.equation"],constructor:function(e,n,o,r){this._undoRedoController=e,this.own(n.add("backspace",t.hitch(this,"_handleBackspace",-1),10)),this.own(i.after(o,"onChange",t.hitch(this,"_reset"))),this.own(i.after(r,"onChange",t.hitch(this,"_reset")))},start:function(){this._mapBackspaceToUndo=!0},_reset:function(){this._mapBackspaceToUndo=!1},_handleBackspace:function(){if(this._mapBackspaceToUndo)return this._undoRedoController.undo(),this._mapBackspaceToUndo=!1,!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(268)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return t(null,{pluginId:"helper.delete",pluginDependencies:["controller.selection","model.equation"],constructor:function(e,t){this._selectionController=e,this._equation=t,this._deleteHandlers=[]},addDeleteHandler:function(e){return this._deleteHandlers.push(e),{remove:i.hitch(this,(function(){var t=this._deleteHandlers.indexOf(e);t>=0&&this._deleteHandlers.splice(t,1)}))}},handleDelete:function(t){return e.some(this._deleteHandlers,(function(e){return e(t)}))},deleteSelection:function(e){this.deleteRange(e,this._selectionController.getSelectionSpan())},deleteRange:function(e,t){var i=t.node,o=n.categorizeNode(i);if("atom"===o)this.deleteInAtom(e,i,t.left,t.right-t.left);else if("placeholder"===o){for(var r=t.right-1;r>=t.left;r-=1)e.deleteNode(i.children[r].id);var a=i.children[t.left-1],s=i.children[t.left];a&&s&&n.mergeIfCompatible(e,a,s)}},deleteInAtom:function(e,t,i,o){if(t.text.length===o){var r=this._equation.getPreviousSibling(t),a=this._equation.getNextSibling(t);e.deleteNode(t.id),r&&a&&n.mergeIfCompatible(e,r,a)}else e.replaceText(t.id,i,o,"")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(261),i(268),i(683),i(452),i(314)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){"use strict";return e(n,{pluginId:"helper.exporthtmlimage",pluginFamily:"copypaste",pluginDependencies:["external.clipboardtempdirpath","helper.mimetypeexport","model.equation","view.renderer","view.rootnode"],constructor:function(e,i,n,o,r){this._equation=n,this._clipboardTempDirpath=e,this._renderer=o,this._rootNode=r,this.own(i.addExportContributor(t.hitch(this,"_convertToImage")))},_convertToImage:function(e){if("MathText"===e.node.className)return[];var t=i.getComputedStyle(this._rootNode).fontSize,n=o.getNodeListForSelection(e),l=r.export(n,{attribBlackList:this._equation.serializationBlacklist(),inline:this._equation.getRoot().inline}),c=this._renderer.getEquationRenderer().renderToImageURLSynch(l,t,2),d="<span ";d+='style="vertical-align: '+Math.round(c.verticalAlign)+'">',d+="<img ";var u=[];this._clipboardTempDirpath?d+='src="'+a.pushImageAndGetPathFromURI(c.dataURL,this._clipboardTempDirpath,u)+'"':d+='src="'+c.dataURL+'"';return d+=' width="'+c.width/2+'" height="'+c.height/2+'"',d+="></span>",[{flavor:s.HTML,content:d}].concat(u.length>0?[{flavor:s.IMAGE_LIST,content:u}]:[])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(261),i(268),i(683),i(314)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";return e(n,{pluginId:"helper.exportimage",pluginFamily:"copypaste",pluginDependencies:["helper.mimetypeexport","model.equation","view.renderer","view.rootnode"],constructor:function(e,i,n,o){this._equation=i,this._renderer=n,this._rootNode=o,this.own(e.addExportContributor(t.hitch(this,"_convertToImage")))},_convertToImage:function(e){var t=i.getComputedStyle(this._rootNode).fontSize,n=o.getNodeListForSelection(e),s=r.export(n,{attribBlackList:this._equation.serializationBlacklist(),inline:this._equation.getRoot().inline}),l=this._renderer.getEquationRenderer().renderToImageURLSynch(s,t,1);return[{flavor:a.IMAGE,content:l.dataURL}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(261),i(268),i(683),i(314)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e(i,{pluginId:"helper.exportmathml",pluginFamily:"copypaste",pluginDependencies:["helper.mimetypeexport","model.equation"],constructor:function(e,i){this._equation=i,this.own(e.addExportContributor(t.hitch(this,"_generateMathMLContent")))},_generateMathMLContent:function(e){var t=n.getNodeListForSelection(e),i=o.export(t,{attribBlackList:this._equation.serializationBlacklist()});return[{flavor:r.MATHML_PRESENTATION,content:i}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(261),i(314)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(i,{pluginId:"helper.exportplaintext",pluginFamily:"copypaste",pluginDependencies:["helper.mimetypeexport","helper.plaintextgenerator"],constructor:function(e,i){this._plainTextGeneratorHelper=i,this.own(e.addExportContributor(t.hitch(this,"_generateTextMIMEType")))},_generateTextMIMEType:function(e){var t=this._plainTextGeneratorHelper.convertSelection(e);return[{flavor:n.TEXT,content:t},{flavor:n.COPY_FOR_COMMAND_WINDOW,content:t}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(548)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(t,{pluginId:"helper.import",pluginDependencies:[],constructor:function(e,t){this._renderer={}},importModel:function(e,t){var i=this._rendererFor(t||"mathml");return"tex"===t&&(e=i.setDisplaystyleIfNeeded(e)),i.getModel(e)},_rendererFor:function(e){return this._renderer[e]||(this._renderer[e]=new i({equationFormat:e,cacheFontMetrics:!1})),this._renderer[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(940),i(268),i(523),i(400)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e(null,{pluginId:"helper.insert",pluginDependencies:["controller.cursor","model.equation"],constructor:function(e,t){this._cursorController=e,this._equation=t},getInsertPosition:function(e,t){t=t||this._cursorController.getPosition();var i=this._equation.getById(t.id),o=n.categorizeNode(i);if("atom"===o||"placeholder-atom"===o){var r=this._equation.getParentAndIndex(i),a=r.parent,s=r.index;return 0===t.offset?{id:a.id,node:a,offset:s}:(t.offset<i.text.length&&this._splitNode(e,i,t.offset),{id:a.id,node:a,offset:s+1})}return t},insertTemplate:function(e,i,o,r){this._cursorPositions=[];var a=r?o.children[r-1]:null,s=r<o.children.length?o.children[r]:null;if(t.isArray(i[0])?i.forEach((function(t,i){this._insertRecursive(e,t,o,r+i)}),this):this._insertRecursive(e,i,o,r),a){var l=this._equation.getNextSibling(a);l&&(n.mergeIfCompatible(e,a,l),l=this._equation.getNextSibling(a)),this.autoRemoveSpace(e,a,l)}if(s){var c=this._equation.getPreviousSibling(s);c&&n.mergeIfCompatible(e,c,s)}return this._cursorPositions},_insertRecursive:function(e,t,i,n){if(0!==t.length){var o=e.insertNode(i.id,n,t[0],t[1]);if(t[2]&&t[2].forEach((function(t,i){this._insertRecursive(e,t,o,i)}),this),t[1]&&t[1].hasOwnProperty("data-cursor")){var r={id:o.id,offset:0};this._cursorPositions[t[1]["data-cursor"]]=r,0===t[1]["data-cursor"]&&this._cursorController.setPosition(r)}}},autoRemoveSpace:function(e,t,i){if(t&&"MathText"===t.className&&"mtext"===t.kind){var o=this._equation.getPreviousSibling(t);if(o&&i&&("atom"!==n.categorizeNode(o)||"symbol"===o.kind||"symbol"===i.kind)){var r=this._hasSpacingRight(o);(r=r||this._hasSpacingLeft(i))&&(" "===t.text?e.deleteNode(t.id):t.text.match(/^\u2009+$/)&&e.replaceText(t.id,0,1,""))}}},_hasSpacingRight:function(e){return!("symbol"!==e.kind||!r.symbolMap[e.symbolName])&&[o.OP,o.BIN,o.REL,o.PUNCT,o.INNER].indexOf(r.symbolMap[e.symbolName].spacing)>=0},_hasSpacingLeft:function(e){return!("symbol"!==e.kind||!r.symbolMap[e.symbolName])&&[o.OP,o.BIN,o.REL,o.INNER].indexOf(r.symbolMap[e.symbolName].spacing)>=0},prepareTextAttributes:function(e,t,i){return"number"===e.kind&&t&&"id"===t.kind&&i>0&&(e.kind="id"),e},_splitNode:function(e,t,i){var o=this._equation.getParentAndIndex(t),r={text:t.text.substr(i),kind:t.kind,mathvariant:t.mathvariant};"number"===n.kindOfText(r.text)&&(r.kind="number"),e.insertNode(o.parent.id,o.index+1,"MathText",this.prepareTextAttributes(r)),e.replaceText(t.id,i,t.text.length-i,"")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(831)],o=i.dj.d(n,(function(e,t){"use strict";return e(null,{pluginId:"helper.inserttemplate",pluginDependencies:["controller.cursor","controller.selection","helper.delete","helper.insert","model.equation"],constructor:function(e,t,i,n,o){this._deleteHelper=i,this._insertHelper=n,this._selectionController=t,this._equation=o,this._cursorController=e},insertTemplate:function(e,t,i){var n=null;i?(n=this._serializeRange(i),this._deleteHelper.deleteRange(e,i)):this._cursorController.hasSelection()&&(n=this._serializeRange(this._selectionController.getSelectionSpan()),this._deleteHelper.deleteSelection(e));var o=this._insertHelper.getInsertPosition(e),r=this._equation.getById(o.id),a=this._insertHelper.insertTemplate(e,t,r,o.offset);return n&&n.length>0&&a[0]&&(o=this._insertHelper.getInsertPosition(e),r=this._equation.getById(o.id),this._insertHelper.insertTemplate(e,n,r,o.offset),a[1]&&this._cursorController.setPosition(a[1])),a},_serializeRange:function(e){return t.serializeRange(e.node,e.left,e.right)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(831)],o=i.dj.d(n,(function(e,t){"use strict";return e(null,{pluginId:"helper.mimetypeexport",pluginDependencies:["controller.selection"],constructor:function(e){this._selectionController=e,this._exportContributor=[]},addExportContributor:function(e){return this._exportContributor.push(e),{remove:function(){var t=this._exportContributor.indexOf(e);t>=0&&this._exportContributor.splice(t,1)}.bind(this)}},convertSelection:function(){var e=this._selectionController.getSelectionSpan();return this.convertRange(e)},convertRange:function(e){var i=[],n=JSON.stringify(t.serializeRange(e.node,e.left,e.right));return i.push({flavor:"application/matlab_json_equation",content:n}),this._exportContributor.forEach((function(t){i=i.concat(t(e))})),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4835),i(831),i(314)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(null,{pluginId:"helper.mimetype",pluginDependencies:["helper.import","helper.insert","model.categorizer"],constructor:function(e,t,i){this._importHelper=e,this._insertHelper=t,this._categorizer=i},acceptedMimeTypes:function(){return["application/matlab_json_equation",n.TEXT,n.MATHML_PRESENTATION]},insertContent:function(e,o){var r,a;if(o["application/matlab_json_equation"])try{a=JSON.parse(o["application/matlab_json_equation"]),r=this._insertHelper.getInsertPosition(e),this._insertHelper.insertTemplate(e,a,r.node,r.offset)}catch(e){}else if(o[n.MATHML_PRESENTATION]){var s=o[n.MATHML_PRESENTATION],l=this._importHelper.importModel(s,"mathml");if(!l)return;l=this._categorizer.categorizeTree(l),a=i.serializeRange(l.children[0]),r=this._insertHelper.getInsertPosition(e),this._insertHelper.insertTemplate(e,a,r.node,r.offset)}else(o[n.TEXT]||o[n.UNICODE_STRING])&&(a=t.parse(o[n.TEXT]||o[n.UNICODE_STRING]),r=this._insertHelper.getInsertPosition(e),this._insertHelper.insertTemplate(e,a,r.node,r.offset))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(268),i(400)],o=i.dj.d(n,(function(e,t){"use strict";function i(e,i){if("delimiter"===e)return["MathDelimiter",{symbolName:t.getSymbolName(i)},[]];var n={kind:e,text:i};return"symbol"===e&&(n.symbolName=t.getSymbolName(i)),["MathText",n,[]]}var n=[e.TEXT_KIND.IDENTIFIER,e.TEXT_KIND.NUMBER];return{parse:function(t){for(var o,r,a=[],s=0;s<t.length;){var l=t.substr(s,1),c=e.kindOfText(l);o===e.TEXT_KIND.IDENTIFIER&&c===e.TEXT_KIND.NUMBER&&(c=e.TEXT_KIND.IDENTIFIER),(c!==o||n.indexOf(c)<0)&&(o&&o!==e.TEXT_KIND.WHITESPACE&&a.push(i(o,t.substring(r,s))),o=c,r=s),s+=1}return o&&o!==e.TEXT_KIND.WHITESPACE&&a.push(i(o,t.substr(r))),a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268),i(1456)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(t,{pluginId:"helper.plaintextgenerator",pluginDependencies:["model.equation"],constructor:function(e){this._equation=e},convertSelection:function(e){var t=i.getNodeListForSelection(e);return n.export(t,{equation:this._equation.getRoot()}).code()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(453),i(2047),i(261),i(268)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";var a=[],s=new n;return t(o,{pluginId:"model.categorizer",pluginDependencies:["model.categorizers","model.flattener"],constructor:function(e,t){e.forEach(function(e){this._addCategorizer(e.categorize,e.priority||0)}.bind(this)),this._flattener=t,this._symbolicOutput=!1},_classifyTree:function(t){return t?(t["data-category"]?t["data-category"]===r.CATEGORY.PLACEHOLDER_ATOM&&t.kind!==r.CATEGORY.PLACEHOLDER_ROW&&(t.kind=r.CATEGORY.PLACEHOLDER_ROW):e.some(a,function(e){var i=e.callback(t);return!!i&&(i["data-category"]!==r.CATEGORY.STRUCTURE||this._symbolicOutput||(i=r.ensureParentEditable(i)),t=i,!0)}.bind(this)),t.children&&(t.children=e.map(t.children,this._classifyTree.bind(this))),this._symbolicOutput||(t=this._flattener.flattenNode(t)),t):t},_clasifyMultiLineEquation:function(e){if("MathRoot"!==e.className||!e.children||1!==e.children.length)return e;var t=e.children[0];if("MathRow"!==t.className||!t.children||1!==t.children.length)return e;var i=t.children[0];return"MathMatrix"===i.className&&(i["data-category"]=r.CATEGORY.MULTILINEEQUATION,t["data-category"]=r.CATEGORY.STRUCTURE_PART),e},_clasifySingleLineEquation:function(e){if("MathRoot"!==e.className||!e.children||1!==e.children.length)return e;var t=e.children[0];return"MathRow"===t.className&&t.children?(t["data-category"]||(t["data-category"]=r.CATEGORY.PLACEHOLDER_ROW),this._symbolicOutput&&t["data-category"]===r.CATEGORY.STRUCTURE&&t.children.length>0&&t.children[0]["data-category"]!==r.CATEGORY.PLACEHOLDER_ROW&&(t=r.ensureParentEditable(t)),e):e},_addCategorizer:function(e,t){var i={callback:e,priority:t||0};a.push(i),a.sort((function(e,t){return t.priority-e.priority}))},categorizeTree:function(e){return this._symbolicOutput=e[i.XMLNSMWMMLX_PREFIX],e=this._flattener.flattenMathStyle(e,""),e=this._classifyTree(e),e=this._clasifyMultiLineEquation(e),0===function(e){return s.visit(e),s.visitedCounter()}((e=this._clasifySingleLineEquation(e)).children[0])&&(e.children[0]=r.ensureParentEditable(e.children[0])),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268)],o=i.dj.d(n,(function(e,t,i){"use strict";var n={className:"MathScript"};return e(t,{pluginId:"model.categorizer.accent",pluginFamily:"model.categorizers",priority:10,categorize:function(e){if(i.matchTemplate(e,n)){var t=!0===e.accent,o=e.children[2];if("auto"===e.accent&&o&&(t=null!==o.getAccent()),t)return i.setCategories(e,[i.CATEGORY.STRUCTURE,i.CATEGORY.PLACEHOLDER_ROW,i.CATEGORY.STATIC,i.CATEGORY.STATIC]),e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268),i(618),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(t,{pluginId:"model.categorizer.delimiterpair",pluginFamily:"model.categorizers",categorize:function(e){if("MathRow"===e.className&&e.children&&!(e.children.length<3)){var t=e.children[0],r=e.children[e.children.length-1];if("MathDelimiter"===t.className&&"MathDelimiter"===r.className){var a;e["data-category"]=i.CATEGORY.STRUCTURE,t["data-category"]=i.CATEGORY.STATIC,r["data-category"]=i.CATEGORY.STATIC;var s=e.children[1].className,l=i.categorizeNode(e.children[1]);return e.children.length>3||"MathRow"!==s&&l!==i.CATEGORY.STRUCTURE_PART?(a=n.createNode("MathRow",{id:o.generateUuid(),"data-category":i.CATEGORY.PLACEHOLDER_ROW}),i.moveChildren(e,a,1,e.children.length-1),a.parent=e,e.children.splice(1,0,a)):(a=e.children[1])["data-category"]=i.CATEGORY.PLACEHOLDER_ROW,e}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(t,{pluginId:"model.categorizer.editablechildren",pluginFamily:"model.categorizers",categorize:function(e){if(e.children&&("MathFraction"===e.className||"MathMultiScript"===e.className||"MathScript"===e.className)){var t;for(e["data-category"]=i.CATEGORY.STRUCTURE,t=0;t<e.children.length;t+=1){var n=e.children[t];n&&i.categorizeNode(n)===i.CATEGORY.PLACEHOLDER_ROW&&(n["data-category"]=i.CATEGORY.PLACEHOLDER_ROW)}return e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268)],o=i.dj.d(n,(function(e,t,i){"use strict";var n={className:"MathRow",children:[{className:"MathRow"},{},{className:"MathRow"}]};return e(t,{pluginId:"model.categorizer.inlinefraction",pluginFamily:"model.categorizers",categorize:function(e){if(i.matchTemplate(e,n)){var t,o=e.children[1];if("MathText"===(t=o&&"MathRow"===o.className&&1===o.children.length?o.children[0]:o).className&&"symbol"===t.kind&&"slash"===t.symbolName)return i.setCategories(e,[i.CATEGORY.STRUCTURE,i.CATEGORY.PLACEHOLDER_ROW,i.CATEGORY.STATIC,i.CATEGORY.PLACEHOLDER_ROW]),e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268)],o=i.dj.d(n,(function(e,t,i){"use strict";var n=["contourintop","fpartintop","intop"];return e(t,{pluginId:"model.categorizer.integral",pluginFamily:"model.categorizers",categorize:function(e){if(!e.parent||i.categorizeNode(e.parent)!==i.CATEGORY.PLACEHOLDER_ROW)return!1;if("MathRow"===e.className&&e.children&&2===e.children.length){var t,o=e.children[0];if("MathText"===(t=o&&"MathRow"===o.className&&1===o.children.length?o.children[0]:o).className&&"symbol"===t.kind&&n.indexOf(t.symbolName)>=0)return i.setCategories(e,[i.CATEGORY.STRUCTURE,i.CATEGORY.STATIC,i.CATEGORY.PLACEHOLDER_ROW]),e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268)],o=i.dj.d(n,(function(e,t,i){"use strict";var n={className:"MathRow",children:[{className:"MathDelimiter"},{},{className:"MathDelimiter"}]};return e(t,{pluginId:"model.categorizer.matrix",pluginFamily:"model.categorizers",priority:9,categorize:function(e){if(i.matchTemplate(e,n)){var t=e.children[1];if("MathRow"===t.className&&1===t.children.length){if("MathMatrix"!==(t=t.children[0]).className)return;e.children.splice(1,1,t),t.parent=e}else if("MathMatrix"!==t.className)return;return i.setCategories(e,[i.CATEGORY.STRUCTURE,i.CATEGORY.STATIC,i.CATEGORY.STRUCTURE_PART,i.CATEGORY.STATIC]),e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268),i(400)],o=i.dj.d(n,(function(e,t,i,n){"use strict";var o={className:"MathRow",children:[{className:"MathScript",children:[{className:"MathRow",children:[{className:"MathText",kind:"symbol"}]},{},{}]},{className:"MathRow"}]},r=["prod","contourintop","fpartintop","sum","intop"],a={className:"MathScript",children:[{className:"MathRow",children:[{className:"MathText",kind:"symbol"}]},{},{}]};return e(t,{pluginId:"model.categorizer.operatortemplate",pluginFamily:"model.categorizers",priority:5,categorize:function(e){var t;if(i.matchTemplate(e,o))t=e.children[0];else{if(!i.matchTemplate(e,a))return!1;t=e}return!!function(e){return"MathRow"===e.className&&e.children&&1===e.children.length?n.isLargeOpSymbol(e.children[0]):e&&"MathText"===e.className&&"symbol"===e.kind&&r.indexOf(e.symbolName)>=0}(t.children[0])&&(i.setCategories(t,[i.CATEGORY.STRUCTURE_PART,i.CATEGORY.STATIC,i.CATEGORY.PLACEHOLDER_ROW,i.CATEGORY.PLACEHOLDER_ROW]),e!==t?i.setCategories(e,[i.CATEGORY.STRUCTURE,i.CATEGORY.STRUCTURE_PART,i.CATEGORY.PLACEHOLDER_ROW]):i.setCategories(e,[i.CATEGORY.STRUCTURE]),e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(t,{pluginId:"model.categorizer.radical",pluginFamily:"model.categorizers",categorize:function(e){if("MathRadical"===e.className&&e.children&&2===e.children.length)return i.setCategories(e,[i.CATEGORY.STRUCTURE,i.CATEGORY.PLACEHOLDER_ROW,i.CATEGORY.PLACEHOLDER_ROW]),i.isEmptyRow(e.children[1])&&(e.children[1]["data-category"]=i.CATEGORY.STATIC),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(t,{pluginId:"model.categorizer.tooltip",pluginFamily:"model.categorizers",categorize:function(e){if("MathAction"===e.className&&e.children&&2===e.children.length)return i.setCategories(e,[i.CATEGORY.STRUCTURE,i.CATEGORY.PLACEHOLDER_ROW,i.CATEGORY.STATIC]),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(268)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(t,{pluginId:"model.categorizer.underbrace",pluginFamily:"model.categorizers",priority:2,categorize:function(e){if("MathScript"===e.className&&e.children&&3===e.children.length&&e.children[1]&&e.children[1].children&&1===e.children[1].children.length&&"MathDelimiter"===e.children[1].children[0].className&&e.children[1].children[0].getAccent())return i.setCategories(e,[i.CATEGORY.STRUCTURE,i.CATEGORY.STRUCTURE_PART,i.CATEGORY.STATIC]),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){"use strict";return e(null,{pluginId:"model.cursor",constructor:function(){this._position={},this._paused={}},clearSelection:function(){this._anchor=void 0},getPosition:function(){return t.mixin({},this._position)},getAnchor:function(){return this._anchor&&t.mixin({},this._anchor)},setPosition:function(e,t){t?(this._anchor=this._anchor||this.getPosition(),this._anchor.id===e.id&&this._anchor.offset===e.offset&&(this._anchor=void 0)):this._anchor=void 0,this._position=e,this._onChange()},hasSelection:function(){return!!this._anchor},getSelection:function(){return[t.mixin({},this._anchor),t.mixin({},this._position)]},getState:function(){return[this._anchor?t.mixin({},this._anchor):void 0,this.getPosition()]},setState:function(e){this.setPosition(e[1]),e[0]&&(this._anchor=t.mixin({},e[0]))},pauseEvents:function(e){this._paused[e||"default"]=!0},unpauseEvents:function(e){delete this._paused[e||"default"],this._shouldFire&&!this._isPaused()&&this._onChange()},_isPaused:function(){return Object.keys(this._paused).length>0},onChange:function(){},_onChange:function(){this._isPaused()?this._shouldFire=!0:(this.onChange(),this._shouldFire=!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(1357),i(453),i(4850),i(494),i(1456),i(683),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){"use strict";return t(null,{pluginId:"model.equation",pluginDependencies:["helper.import","model.categorizer"],constructor:function(e,t){this._importHelper=e,this._categorizer=t,this._idCache={},this.setEquation('<math><mrow><mi data-category="placeholder-atom"></mi></mrow></math>')},serializationBlacklist:function(){return["id","data-category",n.XMLNSMWMMLX_PREFIX,n.MWMMLX_TEMPLATE,n.MWMMLX_VARNAME,n.MWMMLX_DATACATEGORY,n.MWMMLX_EXTRAS]},changed:function(){this._eventsPaused?this._triggered=!0:(this._triggered=!1,this.onChange())},pauseEvents:function(){this._eventsPaused=!0},unpauseEvents:function(){this._eventsPaused=!1,this._triggered&&this.changed()},getRoot:function(){return this._root},getById:function(e){return this._searchById(e,this._root)},_searchById:function(t,i){var n;return i.id===t?i:this._idCache[t]?this._idCache[t]:(e.some(i.children,(function(e){if(e)return n=this._searchById(t,e)}),this),this._idCache[t]=n,n)},getParent:function(e){var t=this.getParentAndIndex(e);return t&&t.parent},getParentAndIndex:function(e){return this._getParentAndIndex(e,this._root)},_getParentAndIndex:function(e){var t=e.parent;if(t)return{parent:t,index:t.children.indexOf(e)}},getPreviousSibling:function(e){var t=this.getParentAndIndex(e);if(t&&t.index>0)return t.parent.children[t.index-1]},getNextSibling:function(e){var t=this.getParentAndIndex(e);if(t&&t.index<t.parent.children.length-1)return t.parent.children[t.index+1]},onChange:function(){this._idCache={}},clearAnnotations:function(){this._root.annotations={}},addAnnotation:function(e,t){this._root.annotations[e]=t},getAnnotations:function(){return this._root.annotations},beforeDeleteNode:function(e,t){},afterNodeInserted:function(e,t,i,n){},afterChildrenMoved:function(e,t,i,n,o,r){},beforeReplaceText:function(e,t,i,n,o){},beforeUpdateAttributes:function(e,t,i){},beforeMergeNodes:function(e,t,i){},setEquation:function(e,t){this._root=this._importHelper.importModel(e,t),this._prepareEquation(this._root),this._categorizer.categorizeTree(this._root),this.changed()},serializeToMATLABCode:function(){return a.export([this._root])},serializeToAriaLabel:function(){return i.export([this._root])},serializeToMathMl:function(){var e={attribBlackList:this.serializationBlacklist()};return s.export([this._root],e)},serializeToTeX:function(){return r.export([this._root],{attribBlackList:this.serializationBlacklist()})},iterate:function(e){var t=new o(this,e);return t.iterate(),t.getResult()},_prepareEquation:function(e){e.id||(e.id=l.generateUuid()),e.children&&e.children.forEach((function(t){t&&(t.parent=e,this._prepareEquation(t))}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(684),i(4851),i(268)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return t(null,{constructor:function(e,t){this._equation=e,this._options=i.mixin({start:t.from||e.getRoot(),direction:n.DOWN},t)},stop:function(e){this._result=e,this._stopped=!0},isStopped:function(){return this._stopped},getResult:function(){return this._result},getParent:function(){return this._equation.getParent(this._currentNode)},getParentIndex:function(){var e=this._equation.getParentAndIndex(this._currentNode);return e&&e.index},getLastNode:function(){return this._lastNode},getCurrentNode:function(){return this._currentNode},getDirection:function(){return this._moveDirection||"down"},iterate:function(){var t=this._options.start;i.isArray(t)||(t=[t]),e.some(t,i.hitch(this,(function(e){return this._iterateNode(e),this.isStopped()})))},_iterateNode:function(e){var t,i=o.build(this._options.direction,e,this._equation);for(this._options.skipFirst&&(e=(t=i.getNext()).node,this._moveDirection=t.direction);e;){if(this._lastNode=this._currentNode,this._currentNode=e,this._handleNode(),this.isStopped()||!i.hasNext())return;e=(t=i.getNext()).node,this._moveDirection=t.direction}},_handleNode:function(){var e=r.categorizeNode(this._currentNode);this._options[e]&&this._options[e].call(void 0,this._currentNode,this),this._options[this._currentNode.className]&&this._options[this._currentNode.className].call(void 0,this._currentNode,this),this._options.all&&this._options.all.call(void 0,this._currentNode,this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203)],o=i.dj.d(n,(function(e,t){"use strict";var i=t(null,{constructor:function(e,t,i){this._state={current:e,sequence:i,index:0},this._stateStack=[],this._visitStack=[],this._equationModel=t,this._resolveNext()},_resolveNext:function(){if(this._next=null,this._state.index>=this._state.sequence.length)return this._currentSequenceEnded();var e,t=this._state.sequence[this._state.index],i=t.repeat,n=!0;switch(t.direction){case"children":for(0===this._visitStack.length&&this._state.current.children&&(this._visitStack=this._state.current.children.slice(0));!e&&this._visitStack.length>0;)e=this._visitStack.shift();e&&e.children&&(this._visitStack=e.children.concat(this._visitStack)),i=this._visitStack.length>0,n=!1;break;case"up":e=this._equationModel.getParent(this._state.current);break;case"right":e=this._equationModel.getNextSibling(this._state.current);break;case"left":e=this._equationModel.getPreviousSibling(this._state.current);break;case"sequence":return this._state.index+=1,this._stateStack.push(this._state),this._state={current:this._state.current,sequence:t.children,repeat:t.repeat,index:0},this._resolveNext()}e?(this._state.foundNode=!0,this._next={node:e,direction:t.direction},i||(this._state.index+=1),n&&(this._state.current=e)):(this._next=null,this._state.index+=1,t.require&&(this._state.index=this._state.sequence.length+1),this._resolveNext())},_currentSequenceEnded:function(){this._state.repeat&&this._state.foundNode&&(this._state.index=0,this._state.foundNode=!1,this._resolveNext(),this._next)||this._stateStack.length>0&&(this._state=this._stateStack.pop(),this._resolveNext())},hasNext:function(){return!!this._next},getNext:function(){var e=this._next;return this._resolveNext(),e}});return{build:function(t,n,o){var r=function(e){var t=[],i={},n=[];return e.forEach((function(e){switch(Object.keys(i).length>0&&("paren"===e.type||i[e.type])&&(t.push(i),i={}),e.type){case"direction":i.direction=e.match;break;case"repeat":case"require":i[e.type]=!0;break;case"paren":if("("===e.match)n.push(t),t=[];else{var o=t;t=n.pop(),i={direction:"sequence",children:o}}}})),Object.keys(i).length>0&&t.push(i),t}(function(t){for(var i,n=[["direction","[a-z]+"],["repeat","\\*"],["paren","[()]"],["require","\\+"]],o=new RegExp("(?:("+e.map(n,(function(e){return e[1]})).join(")|(")+")|(.))","g"),r=[];i=o.exec(t);)for(var a=0;a<n.length;a+=1)if(i[a+1]){r.push({type:n[a][0],match:i[a+1]});break}return r}(t));return new i(n,o,r)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(940),i(268)],o=i.dj.d(n,(function(e,t,i,n){"use strict";var o=["text","number","id"],r=[];return r.push((function(e){if(n.categorizeNode(e)===n.CATEGORY.PLACEHOLDER_ROW)for(var t=0;t<e.children.length;t+=1)if(e.children[t]&&n.categorizeNode(e.children[t])===n.CATEGORY.PLACEHOLDER_ROW&&e.class===e.children[t].class)return e.children[t].children.forEach((function(t){t&&(t.parent=e)})),e.children.splice.apply(e.children,[t,1].concat(e.children[t].children)),e})),r.push((function(e){function t(e){return!e||"MathRow"===e.className&&0===e.children.length}if("MathScript"===e.className&&e.children&&3===e.children.length)return t(e.children[1])&&t(e.children[2])?e.children[0]:void 0})),e(t,{pluginId:"model.flattener",constructor:function(){},flattenMathStyle:function(e,t){if("MathText"===e.className&&o.indexOf(e.kind)>=0&&!e.mathvariant&&""!==t&&(e.mathvariant=t),!e.children)return e;for(var n=0;n<e.children.length;n+=1)if(e.children[n])if("MathStyle"===e.children[n].className){var r=i.add(t,e.children[n].mathvariant);e.children[n].children.forEach(function(t){t&&(t.parent=e,this.flattenMathStyle(t,r))}.bind(this));var a=e.children[n].children.length;e.children.splice.apply(e.children,[n,1].concat(e.children[n].children)),n+=a-1}else e.children[n]=this.flattenMathStyle(e.children[n],t);return e},flattenNode:function(e){for(var t=0;t<r.length;){var i=(0,r[t])(e);i?(e=i,t=0):t+=1}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(213),i(2052)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(null,{pluginId:"view.caret",pluginDependencies:["view.rootnode"],constructor:function(e){this._hidden={},this._rtcCursorAdapter={position:void 0,onUpdate:function(e){},isSelectionHidden:function(){},isHidden:t.hitch(this,"isHidden"),getNode:t.hitch(this,(function(){return{isReadOnly:t.hitch(this,(function(){return this._isReadonly}))}}))},this._rtcCursorViewAdapter={onUpdate:function(){},onScrollCursorIntoView:function(){}},this._cursorControllerAdapter={getCursors:t.hitch(this,(function(){return[this._rtcCursorAdapter]}))};var n={addLayer:t.hitch(this,(function(t){i.place(t,e),this._node=t.children[0]})),switchLayer:t.hitch(this,(function(e,t){t.parentNode.replaceChild(e,t),this._node=e.children[0]})),scrollPositionIntoView:function(){},getCoordinateForPosition:t.hitch(this,(function(e){return{x:this._x||.1,y:this._y,height:this._h}})),isValidCoordinate:function(e){return!!e&&(0!==e.x||0!==e.y||0!==e.width||0!==e.height)}};this._divCaret=new o(this._rtcCursorViewAdapter,n,this._cursorControllerAdapter)},isHidden:function(){return Object.keys(this._hidden).length>0},setReadonly:function(e){this._isReadonly=e,this._rtcCursorAdapter.onUpdate()},getGeometry:function(){return{x:this._x,y:this._y,h:this._h,w:1}},getNode:function(){return this._divCaret.getBox()},hide:function(e){this._hidden[e||"default"]=!0,this._rtcCursorViewAdapter.onUpdate()},show:function(e){delete this._hidden[e||"default"],this._rtcCursorViewAdapter.onUpdate()},setXY:function(e,t,i){this._x=e,this._y=t,this._h=i||16,this._rtcCursorViewAdapter.onUpdate()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(217),i(225),i(261)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e(r,{pluginId:"view.helper",pluginDependencies:["view.renderer","view.rootnode"],constructor:function(e,n){this._rootNode=n,this.own(i.after(e,"onRedraw",t.hitch(this,"_handleRedraw")))},getNodeGeometry:function(e){return this._getNodeGeometryById(e.id)},isAttachedToDocument:function(){for(var e=this._rootNode;e&&!e.body;)e=e.parentNode;return!!e},getRootGeometry:function(){return n.position(this._rootNode.querySelector(".render-target")||this._rootNode,!0)},getRenderTarget:function(){return this._rootNode.querySelector(".render-target")},_getNodeGeometryById:function(e){var i=n.position(this._rootNode,!0);if(!this._cache[e]){var r=o("*[id='"+e+"']",this._rootNode)[0],a=n.position(r,!0);this._cache[e]={relativeX:a.x-i.x,relativeY:a.y-i.y,h:a.h,w:a.w}}return t.mixin({x:this._cache[e].relativeX+i.x,y:this._cache[e].relativeY+i.y},this._cache[e])},_handleRedraw:function(){this._cache={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(210),i(225),i(261)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e(r,{pluginId:"view.highlightactiverow",pluginDependencies:["api.attributes","model.cursor","controller.caret","view.rootnode"],constructor:function(e,n,o,r){this._attributes=e,this._cursor=n,this._rootnode=r,this.own(e.observe("disabled",t.hitch(this,"_highlightRow"))),this.own(i.after(o,"beforeCaretRedraw",t.hitch(this,"_highlightRow")))},_highlightRow:function(){for(var e=o(".MathRow",this._rootnode),t=0;t<e.length;t+=1)n.remove(e[t],"highlight");if(!this._cursor.hasSelection()&&!this._attributes.get("disabled")){var i=this._cursor.getPosition();if((e=o('*[id="'+i.id+'"]',this._rootnode)).length>0){for(var r=e[0];r&&!r.className.match(/MathRow/);)if(r=r.parentNode,!this._rootnode.contains(r))return;if(r){if(r.parentNode.className.match(/MathRoot/))return;n.add(r,"highlight")}}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(206),i(368),i(261),i(2053),i(2054),i(2055),i(2056)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){"use strict";return e(r,{pluginId:"view.keyhandler",pluginDependencies:["controller.keyhandler","view.rootnode"],constructor:function(e,i){var r={insertTextAtCurrentPosition:t.hitch(e,"handleType")};this._equationActionService=new o;var d=new a(this._equationActionService),u=new s(d),h=new c(u);this._rtcKeyHandler=new l(r,this._equationActionService,i,u,d,h),e.registerView(this),this.own(n(this._rtcKeyHandler.keyCapture,"blur",t.hitch(this,"onBlur"))),this.own(n(this._rtcKeyHandler.keyCapture,"focus",t.hitch(this,"onFocus")))},getKeyCapture:function(){return this._rtcKeyHandler.keyCapture},enableBrowserCopyPaste:function(e){this._rtcKeyHandler.enableBrowserCopyPaste(e)},addBinding:function(e,t){this._equationActionService.addAction(t),this._rtcKeyHandler.addBinding(e,t.id,this._equationActionService)},listenTo:function(e,t){this._rtcKeyHandler.listenTo(e,t)},focus:function(){this.getKeyCapture().style.visibility="visible",this._rtcKeyHandler.focus()},onBlur:function(){this.getKeyCapture().style.visibility="hidden"},onFocus:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(213),i(261)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(o,{pluginId:"view.movekeycaptureonfocus",pluginDependencies:["view.caret","view.keyhandler"],constructor:function(e,n){this._caret=e,this._keyHandlerView=n,this.own(i.before(n,"focus",t.hitch(this,"_beforeFocus")))},_beforeFocus:function(){var e=this._caret.getGeometry(),t=this._keyHandlerView.getKeyCapture();n.set(t,{top:e.y+"px",left:e.x+"px",position:"absolute"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(212),i(210),i(211),i(261),i(268),i(548)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){"use strict";return e(a,{pluginId:"view.renderer",pluginDependencies:["api.attributes","model.equation","view.rootnode"],constructor:function(e,n,o){this._attributes=e,this._rootNode=o,this._renderTarget=r.create("div",{className:"render-target"},this._rootNode),this._equation=n,this.own(i.after(n,"onChange",t.hitch(this,"redraw"))),this._createRenderer(),["pxPerEm","cacheFontMetrics"].forEach((function(i){this.own(e.observe(i,t.hitch(this,"_handleRendererAttributeChange",i)))}),this),this.own(e.observe("disabled",t.hitch(this,"_handleAttributeChange","disabled","enabled"))),this.own(e.observe("readonly",t.hitch(this,"_handleAttributeChange","readonly","writable"))),this.own(e.observe("emptyEquation",t.hitch(this,"_handleEmptyEquationChanged")))},getEquationRenderer:function(){return this._renderer},_handleAttributeChange:function(e,t){this._attributes.get(e)?(o.add(this._rootNode,e),o.remove(this._rootNode,t)):(o.add(this._rootNode,t),o.remove(this._rootNode,e))},_handleEmptyEquationChanged:function(e){this._isEmptyEquation()&&this.redraw()},_createRenderer:function(){var e={equationFormat:"mathml",cacheFontMetrics:this._attributes.get("cacheFontMetrics")||!1};this._attributes.get("pxPerEm")&&(e.pxPerEm=this._attributes.get("pxPerEm")),this._renderer=new l(e)},_handleRendererAttributeChange:function(){this._createRenderer(),this._renderTarget&&this.redraw()},onRedraw:function(){},redraw:function(){if(this._isEmptyEquation()){var e=this._attributes.get("emptyEquation");if("string"==typeof e){var i=this._equation.getRoot().children[0].children[0].id;r.empty(this._renderTarget),this._renderTarget.innerHTML=e;var o=this._renderTarget.firstElementChild;o&&(o.id=i);var a=new n((function(){}),(function(){}));return a.resolve(this._renderTarget),a}}var s=this._renderer.draw(this._equation.getRoot(),this._renderTarget);return s.then(t.hitch(this,(function(){this.onRedraw()}))),s},_isEmptyEquation:function(){return s.isEmptyEquation(this._equation.getRoot())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211)],o=i.dj.d(n,(function(e,t){"use strict";return e(null,{pluginId:"view.rootnode",pluginResolver:"getNode",constructor:function(){this._rootNode=t.create("div",{className:"mwEquationEditor",style:{position:"relative",display:"inline-block"}})},getNode:function(){return this._rootNode},destroy:function(){t.destroy(this._rootNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(null,{pluginId:"view.selection",pluginDependencies:["view.rootnode"],constructor:function(e){this._node=t.create("span",{class:"selection",style:{display:"none",position:"absolute",width:"1px",backgroundColor:"rgba(0,132,230,.35)",height:"16px",zIndex:999}},e),this._hidden={}},getNode:function(){return this._node},hide:function(e){this._hidden[e||"default"]=!0,this._node.style.display="none"},show:function(e){delete this._hidden[e||"default"],this.isHidden()||(this._node.style.display="inline-block")},getGeometry:function(){return{x:this._x,y:this._y,h:this._h,w:this._w}},isHidden:function(){return Object.keys(this._hidden).length>0},set:function(e,t,n,o){this._x=e,this._y=t,this._h=o,this._w=n,i.set(this._node,{left:e+"px",display:this.isHidden()?"none":"inline-block",top:t+"px",height:o+"px",width:n+"px"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204)],o=i.dj.d(n,(function(e,t,i){"use strict";return t(null,{constructor:function(e){e=e||{},this._disable=e.disable||[],this._dependencies=i.mixin({},e.inject),this._dependencies["core.resolver"]=this,this._destroyOrder=[],this._byPluginId={},this._byPluginFamily={},this._registry=e.registry||[],this._resolveNames(),this._resolveDependencies(e.enable||[])},get:function(e){return this._dependencies[e]},inject:function(e,t){this._dependencies[e]=t},destroy:function(){this._destroyOrder.forEach((function(e){i.isObject(e)&&i.isFunction(e.destroy)&&e.destroy()}),this),this._destroyOrder=[],this._dependencies=[]},_resolveNames:function(){this._registry.forEach((function(e){var t=e.prototype,i=t.pluginId,n=t.pluginFamily;i&&(this._byPluginId[i]||(this._byPluginId[i]=[]),this._byPluginId[i].push(e),this._byPluginId[i].sort((function(e,t){return(t.prototype.pluginPriority||0)-(e.prototype.pluginPriority||0)})),n&&(this._byPluginFamily[n]||(this._byPluginFamily[n]=[]),this._byPluginFamily[n].push(i)))}),this)},_resolveDependencies:function(e){e.forEach((function(e){this._getOrCreate(e)}),this)},_getOrCreate:function(e){if(this._dependencies.hasOwnProperty(e))return this._dependencies[e];if(this._byPluginId[e])return this._createById(e);if(this._byPluginFamily[e]){var t=[];return this._byPluginFamily[e].forEach(i.hitch(this,(function(e){this._disable.indexOf(e)<0&&t.push(this._getOrCreate(e))}))),t}console.warn("Could not resolve id "+e)},_createById:function(t){var n=this._byPluginId[t][0],o=[];n.prototype.pluginDependencies&&(o=e.map(n.prototype.pluginDependencies,i.hitch(this,"_getOrCreate")));var r=new(Function.prototype.bind.apply(n,[null].concat(o)));this._destroyOrder.unshift(r);var a=n.prototype.pluginResolver;return a&&(r=r[a]()),this.inject(t,r),r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(1458)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(){this._clipboardData={}},setClipboardData:function(e){var t=new i,n=this.getAllFlavors();try{e&&(this._clipboardData={},e.forEach((function(e){this._setData(e.flavor,e.content)}),this)),t.resolve(),this.onClipboardDataChange(n,this.getAllFlavors())}catch(e){this._clipboardData={},t.reject()}return t.promise},_setData:function(e,t){return!(!e||!t)&&(this._clipboardData[e]=t,!0)},getClipboardData:function(e){var n={},o=new i;return e.forEach(t.hitch(this,(function(e){n[e]=this._clipboardData[e]}))),o.resolve(n),o.promise},clearClipboardData:function(){var e=this.getAllFlavors();this._clipboardData={},this.onClipboardDataChange(e,this.getAllFlavors())},getAllFlavors:function(){var e=[];return this._clipboardData&&(e=Object.keys(this._clipboardData)),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(221),i(212),i(1458),i(4864),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{REQUEST_ID:"requestId",RESPONSE_ID:"responseId",CONTENTS:"contents",SUCCESS_FLAG:"success",DUMMY_FLAVOR:"dummyFlavor",constructor:function(e){this._getDataPromise={},this._setDataPromise={},this._listOfAvaialableFlavors=[],this._messageService=e,this._installListeners()},_installListeners:function(){this._messageService.subscribe(r.RECEIVE_AVAILABLE_DATA_FLAVORS,"_handleAvailableDataFlavors",this),this._messageService.publish(r.REQUEST_AVAILABLE_DATA_FLAVORS,{}),this._messageService.subscribe(r.GET_CLIPBOARD_DATA_RESPONSE,"_handleGetClipboardData",this),this._messageService.subscribe(r.SET_CLIPBOARD_DATA_RESPONSE,"_handleSetClipboardDataResponse",this)},setClipboardData:function(e){var t=new n,i=a.generateUuid();this._setDataPromise[i]=t;var o={requestId:i,contents:e};return this._messageService.publish(r.SET_CLIPBOARD_DATA_REQUEST,o),t.promise},_handleSetClipboardDataResponse:function(e){var t=e.data,i=t[this.SUCCESS_FLAG],n=t[this.RESPONSE_ID],o=this._setDataPromise[n];delete this._setDataPromise[n],o&&(i?o.resolve():o.reject())},getClipboardData:function(e){var t=new n,i=a.generateUuid();this._getDataPromise[i]=t;var o={requestId:i,flavors:e};return this._messageService.publish(r.GET_CLIPBOARD_DATA_REQUEST,o),t.promise},_handleGetClipboardData:function(e){var t=e.data,i=t[this.CONTENTS],n=t[this.RESPONSE_ID],o=this._getDataPromise[n];o&&(delete this._getDataPromise[n],i?o.resolve(i):o.reject(" [Clipboard Error] The data could not be retrieved "))},clearClipboardData:function(){var e=this.getAllFlavors();this._listOfAvaialableFlavors=[],this.onClipboardDataChange(e,[])},getAllFlavors:function(){return i("windows")||0!==this._listOfAvaialableFlavors.length||(this._listOfAvaialableFlavors=[this.DUMMY_FLAVOR]),this._listOfAvaialableFlavors},_handleAvailableDataFlavors:function(e){var t=this.getAllFlavors();this._listOfAvaialableFlavors=e.data,this.onClipboardDataChange(t,this.getAllFlavors())},_uninstallListeners:function(){this._messageService.unsubscribe(r.RECEIVE_AVAILABLE_DATA_FLAVORS,"_handleAvailableDataFlavors",this),this._messageService.unsubscribe(r.GET_CLIPBOARD_DATA_RESPONSE,"_handleGetClipboardData",this),this._messageService.unsubscribe(r.SET_CLIPBOARD_DATA_RESPONSE,"_handleSetClipboardDataResponse",this)},destroy:function(){Object.values(this._setDataPromise).forEach((function(e){e.reject()})),Object.values(this._getDataPromise).forEach((function(e){e.reject()})),this._setDataPromise=this._getDataPromise=null,this._uninstallListeners(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{SET_CLIPBOARD_DATA_REQUEST:"/clipboardservice/setClipboardDataRequest",GET_CLIPBOARD_DATA_REQUEST:"/clipboardservice/getClipboardDataRequest",REQUEST_AVAILABLE_DATA_FLAVORS:"/clipboardservice/requestAvailableDataFlavors",SET_CLIPBOARD_DATA_RESPONSE:"/clipboardservice/setClipboardDataResponse",GET_CLIPBOARD_DATA_RESPONSE:"/clipboardservice/getClipboardDataResponse",RECEIVE_AVAILABLE_DATA_FLAVORS:"/clipboardservice/sendAvailableDataFlavors"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(221),i(209),i(1458),i(314)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(r,{DUMMY_FLAVOR:"dummyFlavor",IE_TEXT_FLAVOR:"text",constructor:function(){this._availableFlavors=[],this._getDataPromise=null,this._setDataPromise=null},getCopyPasteHandlers:function(){return{cut:t.hitch(this,this._copyHandler),copy:t.hitch(this,this._copyHandler),paste:t.hitch(this,this._pasteHandler)}},setClipboardData:function(e){var t=new i;return this._setDataPromise={object:t,data:e},t.promise},_copyHandler:function(e){e.preventDefault();var t=n("mac")&&n("ff");if(null!==this._setDataPromise){var i=this._setDataPromise.data,r=[];if(e.clipboardData&&e.clipboardData.setData)i.forEach((function(i){try{t&&"text/rtf"===i.flavor||(e.clipboardData.setData(i.flavor,i.content),r.push(i.flavor))}catch(e){o.warn("Custom flavors could not be copied")}}));else if(window.clipboardData){o.warn(!1,"Non-plaintext flavors could not be copied");var s=this.IE_TEXT_FLAVOR;i.forEach((function(e){e.flavor===a.TEXT&&window.clipboardData.setData(s,e.content)}))}this._availableFlavors=r,this._setDataPromise.object.resolve(),this._setDataPromise=null}},getClipboardData:function(e){var t=new i;return this._getDataPromise={object:t,data:e},t.promise},_pasteHandler:function(e){e.preventDefault();var t={};if(e.clipboardData&&e.clipboardData.getData&&e.clipboardData.types)for(var i=e.clipboardData.types,n=this._getDataPromise.data,r=0;r<i.length;r+=1){var a=i[r];n.indexOf(a)>-1&&(t[a]=e.clipboardData.getData(a))}else window.clipboardData&&(o.warn(e.clipboardData&&e.clipboardData.getData,"Non-plaintext flavors could not be accessed"),t={"text/plain":window.clipboardData.getData(this.IE_TEXT_FLAVOR)});this._availableFlavors=Object.keys(t),this._getDataPromise.object.resolve(t),this._getDataPromise=null},clearClipboardData:function(){this._availableFlavors=[]},getAllFlavors:function(){return 0==this._availableFlavors.length?[this.DUMMY_FLAVOR]:this._availableFlavors}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(277),i(231),i(30),i(203),i(204),i(227),i(210),i(206),i(225),i(437)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return n(null,{constructor:function(){this._tooltip=t.byId("MathEquationRendererTooltip"),this._tooltip||(this._tooltip=new i({class:[l.TOOLTIP_CLASS,l.TOOLTIP_DIALOG_CLASS],id:"MathEquationRendererTooltip",content:"none",onMouseLeave:o.hitch(this,"_closeTooltip")})),this._localHandlers=[],this._handlers=[],this._handlers.push(s(document.body,".hasTooltip:mouseover",o.hitch(this,"_handleTooltipMouseover")))},destroy:function(){this._handlers.forEach((function(e){e.remove()})),this._handlers=[]},_handleTooltipMouseover:function(t){for(var i=t.target;i&&i.parentNode&&!a.contains(i,"hasTooltip");)i=i.parentNode;delete i.title,this._tooltip.set("content",i["data-eqn-tooltip"]),e.open({popup:this._tooltip,around:i}),this._localHandlers.push(s(i,"DOMNodeRemoved, DOMNodeRemovedFromDocument",o.hitch(this,"_closeTooltip"))),this._timeout&&window.clearTimeout(this._timeout),this._timeout=setTimeout(o.hitch(this,"_closeTooltip"),3e3)},_closeTooltip:function(){e.close(this._tooltip),this._localHandlers.forEach((function(e){e.remove()})),this._localHandlers=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(4868),i(4869),i(4870),i(4871),i(4872),i(4873),i(4874),i(4875),i(4876),i(4877)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return[e,t,i,n,o,r,a,s,l,c]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(453),i(261),i(268)],o=i.dj.d(n,(function(e,t,i,n){let o={className:"MathMatrix"};function r(e,t){let i=e;for(let e=0;e<t.length;e+=1)i=i.children[t[e]];return i}function a(e,t,i){r(e,t)["data-category"]=i}return o[t.MWMMLX_TEMPLATE]="abbreviation",o[t.MWMMLX_DATACATEGORY]="structure",e(i,{pluginId:"model.categorizer.abbreviation",pluginFamily:"model.categorizers",priority:10,categorize:function(e){if(n.matchTemplate(e,o)){a(e,[0],n.CATEGORY.PLACEHOLDER_ROW),a(e,[1],n.CATEGORY.STATIC),a(e,[2],n.CATEGORY.STATIC);for(let t=3;t<e.children.length;t+=2){a(e,[t],n.CATEGORY.STATIC),a(e,[t+1],n.CATEGORY.SHALLOW),a(e,[t+1,0],n.CATEGORY.SHALLOW),a(e,[t+1,0,0],n.CATEGORY.SHALLOW),a(e,[t+1,0,0,0],n.CATEGORY.STATIC),a(e,[t+1,0,0,1],n.CATEGORY.SHALLOW),a(e,[t+1,0,0,2,0],n.CATEGORY.STRUCTURE_PART),a(e,[t+1,0,0,2,0,0],n.CATEGORY.STATIC);let i=r(e,[t+1,0,0,2,0,0]);"symbolicMatrix_rxc"===i["mwmmlx:template"]&&(a(i,[0],n.CATEGORY.STATIC),i=r(i,[0]),a(i,[0],n.CATEGORY.STATIC),i=r(i,[0])),a(i,[0],n.CATEGORY.STATIC),a(i,[1],n.CATEGORY.STATIC);let o=r(e,[t+1,0,0,2,0,2]);o=n.ensureParentEditable(o)}return e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(453),i(261),i(268)],o=i.dj.d(n,(function(e,t,i,n,o){let r={className:"MathRow"};r[i.MWMMLX_TEMPLATE]="in",r[i.MWMMLX_DATACATEGORY]="structure";let a=t.mixin({},r);return a[i.MWMMLX_TEMPLATE]="notin",e(n,{pluginId:"model.categorizer.in",pluginFamily:"model.categorizers",priority:10,categorize:function(e){if(o.matchTemplate(e,r)||o.matchTemplate(e,a))return o.moveChildrenIntoPlaceholderRow(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(453),i(261),i(268)],o=i.dj.d(n,(function(e,t,i,n){let o={className:"MathScript"};function r(e){e&&(e.children?(n.setCategories(e,[n.CATEGORY.STRUCTURE_PART]),e.children.forEach(r)):n.setCategories(e,[n.CATEGORY.STATIC]))}return o[t.MWMMLX_VARNAME]=/.*/,e(i,{pluginId:"model.categorizer.indexedidentifier",pluginFamily:"model.categorizers",priority:11,categorize:function(e){if(n.matchTemplate(e,o))return e.children.forEach(r),n.setCategories(e,[n.CATEGORY.STRUCTURE]),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(453),i(261),i(268)],o=i.dj.d(n,(function(e,t,i,n){let o={className:"MathRow"};return o[t.MWMMLX_TEMPLATE]="piecewise3",o[t.MWMMLX_DATACATEGORY]="structure",e(i,{pluginId:"model.categorizer.piecewise",pluginFamily:"model.categorizers",priority:10,categorize:function(e){if(n.matchTemplate(e,o)){let t=e.children[1];for(let e=1;e<t.children.length;e+=2){let i=t.children[e];i["data-category"]=n.CATEGORY.STRUCTURE_PART;let o=i.children[0];"code"===o.kind&&" otherwise"===o.text&&(o["data-category"]=n.CATEGORY.STATIC)}return e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(453),i(261),i(268)],o=i.dj.d(n,(function(e,t,i,n){var o={className:"MathRow",children:[{className:"MathRow",children:[{className:"MathScript"}]}]};return o[t.MWMMLX_TEMPLATE]="symbolicMatrix_rxc",o[t.MWMMLX_DATACATEGORY]="structure",e(i,{pluginId:"model.categorizer.symbolicmatrixabbreviationvariable",pluginFamily:"model.categorizers",priority:10,categorize:function(e){n.matchTemplate(e,o)&&e.children[0].children[0][t.MWMMLX_VARNAME]&&(e[t.MWMMLX_VARNAME]=e.children[0].children[0][t.MWMMLX_VARNAME])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1358),i(261),i(268)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(i,{pluginId:"model.categorizer.symtooltip",pluginFamily:"model.categorizers",priority:10,categorize:function(e){if(e instanceof t&&e.children&&2===e.children.length)return n.setCategories(e,[n.CATEGORY.STRUCTURE,n.CATEGORY.STATIC,n.CATEGORY.STATIC]),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1092),i(1359),i(2051),i(268)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{pluginPriority:1,getSpan:function(e,n){let r=this.inherited(arguments),a=r.node;if(a instanceof i&&o.qualifiesAsOperator(a)){let e=this._equation.getParentAndIndex(a),t={id:e.parent.id,offset:e.index},i={id:e.parent.id,offset:e.index+1};return this.getSpan(t,i)}if(a instanceof i)return r.left=0,r.right=a.text.length,r.reversed=!1,r;if(a instanceof t){let e=a.children[r.left],t=a.children[r.right-1];if(e&&r.left>0&&o.qualifiesAsOperator(e)&&!o.qualifiesAsPrefixOperator(e)&&(r.left-=1,e=a.children[r.left]),t&&r.right<a.children.length&&o.qualifiesAsOperator(t)&&(r.right+=1),r.left>0&&r.right-r.left>1&&!o.qualifiesAsOperator(e)){let e=a.children[r.left-1];o.isOperatorMinus(e)&&(r.left-=1)}}return r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(261)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(n,{pluginId:"equationeditor.rtc-output-bridge",pluginDependencies:["controller.mouse","rtc.cursor"],constructor:function(e,i){this._mouseController=e,this._rtcCursor=i,this._installMouseTrap(),e.addMouseUp(t.hitch(this,"_handleMouseUp"),20)},_handleMouseUp:function(e){if(2===e.button)return!0},_installMouseTrap:function(){let e=!1;this.own(this._mouseController.addMouseDown(t.hitch(this,(function(t){if(this._rtcCursor.externalMouseDown(),t.stopPropagation(),e=!0,2===t.button)return!0})),15)),this.own(this._mouseController.addMouseDoubleClick((function(t){t.stopPropagation(),e=!0}),15)),this.own(this._mouseController.addMouseUp((function(t){e&&(t.stopPropagation(),e=!1)}),15))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2046)],o=i.dj.d(n,(function(e,t){return e(t,{pluginPriority:1,_handleUp:function(e){return this.inherited(arguments),!0},_handleDown:function(e){return this.inherited(arguments),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2048)],o=i.dj.d(n,(function(e,t){return e(t,{pluginPriority:1,_handleLinearMove:function(e,t){return this.inherited(arguments),!0},_shrinkSelection:function(e){let t=this._cursorController.getPosition(),i=this._selectionController.getSelectionShrinkPosition();this._cursorController.setPosition(i,!0);let n=this._cursorController.getPosition();t.id===n.id&&t.offset===n.offset&&(1===e&&i.id===t.id&&i.offset<t.node.children.length-1||-1===e&&i.offset>0)&&(i.offset+=e,this._cursorController.setPosition(i,!0))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(938)],o=i.dj.d(n,(function(e,t,i){return e([i,t],{constructor:function(){this.paletteRegistryId="RunScriptPalette"},getPreferredLeftPosition:function(){return this._outputDomNode.offsetLeft+this._outputDomNode.offsetWidth},_setupPaletteListeners:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(1083),i(208),i(260),i(323),i(389),i(294),i(451),i(932)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(n,{_SYMBOLIC_SUGGESTIONS_PREFIX:"symbolic.suggestions.",_ASSIGNMENT_VARIABLE:"var",_COMMENT:"% ",constructor:function(e,t,i,n,r,a,s,l,c,d,u,h,p,f){this._equation=t,this._localActionService=i,this._contextMenuContributor=n,this._cursor=r,this._document=a,this._internalDocument=s,this._executionManager=l,this._liveAppsController=c,this._variableService=d,this._suggestionsCodePreview=u,this._symbolicAutoEvaluationSetting=h,this._sectionModel=p,this._staleSectionModel=f,this._actions=[],this._substitutions={variable:e,equation:this._equation.toMATLABCode()},this._contextMenuActions=null,this._enabled=!0,this._suspendedCursorChanges=!1,this.own(o.after(this._staleSectionModel,"onModelUpdated",this._invalidateContextMenu.bind(this),!0))},destroy:function(){delete this._substitutions,delete this._actions,delete this._contextMenuActions,this.inherited(arguments)},updateCodePositions:function(e,t){if(!this._enabled||!e||0===e.length)return;this._codeLine=e[e.length-1].line+1;const i=this._internalDocument.getLineNode(this._codeLine-1);i&&i.readOnly?this._permanentlyDisable():this.updateContextMenu(t)},_permanentlyDisable:function(){this._enabled=!1,this._hideCodePreview(),this._contextMenuActions=[],this.updateContextMenu(!1),this._suggestionsIcon&&this._suggestionsIcon.permanentlyDisable()},setSuggestionsIcon:function(e){this._suggestionsIcon=e},_invalidateContextMenu:function(){const e=this._staleSectionModel.getStaleSectionNumbers(),t=this._sectionModel.getSectionNumberForLine(this._codeLine-1);-1!==t&&-1!==e.indexOf(t)&&this._permanentlyDisable()},updateContextMenu:function(e){this._getSuggestions(),this._contextMenuContributor.removeGroupFromMap(l.SYMBOLIC_SUGGESTIONS),e&&this._addActionsToContextMenu()},_showCodePreview:function(e){return function(){if(this._suggestionsCodePreview.isVisible())return;const t=this._codeLine,i=this._document.getLineText(t),n=this._internalDocument.getPositionForLineColumn(t,i.length+1);this._suggestionsCodePreview.show(e,n)}.bind(this)},_hideCodePreview:function(){this._suggestionsCodePreview.hide()},cleanupOnCloseContextMenu:function(){window.setTimeout(this._hideCodePreview.bind(this),0)},_getSuggestions:function(){if(this._contextMenuActions)return;let e=this._equation.getAnnotations(),t=[];if(e.Suggestions)try{let i=JSON.parse(e.Suggestions);t=this._registerActions(i)}catch(e){}this._localActionService.loadActions(this._actions),this._contextMenuActions=t},_substitutePlaceholders:function(e){let t={};return Object.entries(e).forEach((function(e){let i=e[0],n=e[1];"string"==typeof n&&/%\{\w+\}/.test(n)&&Object.keys(this._substitutions).forEach((function(e){let t=this._substitutions[e];"variable"!==e||t||(t=this._substitutions.equation);let i=new RegExp("%{"+e+"}","g");t&&(n=n.replace(i,t))}),this),"object"==typeof n&&(n=this._substitutePlaceholders(n)),t[i]=n}),this),t},_registerActions:function(e){let t={function:this._makeFunctionCallAction.bind(this),task:this._makeLiveAppAction.bind(this),menu:this._makeMenuAction.bind(this),separator:this._ignoreAction},n=[];return e.forEach((function(e){let o=t[e.entryType];i.assert(e.ID,"Suggestion has no ID: "+JSON.stringify(e)),i.assert(o,"Unknown type of suggestion: "+e.entryType);let r=o(e);r&&n.push(r)}),this),n},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionsToMap(l.SYMBOLIC_SUGGESTIONS,this._contextMenuActions)},_nextVariableName:function(){let e=this._variableService.generateUnusedVariableName(this._ASSIGNMENT_VARIABLE,0,0,this._blackList);return this._blackList.push(e),e},_assignmentPrefix:function(e){if(0===e)return"";this._blackList=[];let t=this._nextVariableName();if(e>1){for(let i=1;i<e;i+=1)t+=", "+this._nextVariableName();t="["+t+"]"}return t+" = "},_getActionID:function(e){let t=this._actions.some(function(t){return this._SYMBOLIC_SUGGESTIONS_PREFIX+e===t.id}.bind(this));return t?(i.assert(!t,'Action ID "'+e+'"" already in use, ignored'),null):this._SYMBOLIC_SUGGESTIONS_PREFIX+e},_getCommentedString:function(e){return this._COMMENT+e.split("\n").join("\n"+this._COMMENT)},_makeFunctionCallAction:function(e){(e=this._substitutePlaceholders(e)).nargOut=e.hasOwnProperty("nargOut")?e.nargOut:1,e.code=this._assignmentPrefix(e.nargOut)+e.code;let i=this._getActionID(e.ID);if(!i)return null;let n=this._getCommentedString(e.description)+"\n"+e.code,o=t.mixin({},e,{id:i,enabled:!0,callback:()=>this._makeInsertFunctionCall(e)});return this._actions.push(o),{actionId:i,type:c.DEFAULT,onFocusItemCallback:this._showCodePreview(n),onBlurItemCallback:this._hideCodePreview.bind(this)}},_makeLiveAppAction:function(e){e=this._substitutePlaceholders(e);let i=this._getActionID(e.ID);if(!i)return null;e.pseudoCode=e.pseudoCode||"";let n=this._getCommentedString(e.description+"\n"+e.pseudoCode),o=t.mixin({enabled:!0},e,{id:i,enabled:!0,callback:()=>this._makeInsertLiveApp(e)});return this._actions.push(o),{actionId:i,type:c.DEFAULT,onFocusItemCallback:this._showCodePreview(n),onBlurItemCallback:this._hideCodePreview.bind(this)}},_makeMenuAction:function(e){let t=this._registerActions(e.children),i=this._getActionID(e.ID);return i?{actionId:i,id:i,type:c.POPUP,label:e.text,children:t}:null},_ignoreAction:function(){},_runSection:function(){this._executionManager.executeCurrentSection(!1,!1)},_prepareInsertion:function(){this._hideCodePreview();let e=this._codeLine,t=this._document.getLineText(e);this._cursor.setLineColumn(e,t.length+1,!1)},_insertCodeAtCursorPosition:function(e){let t=e.split("\n"),i=this._document.startBlockEdit(),n=this._cursor.getCursorPosition(),o=t.map((function(e){return new a([new s({text:e})])})),l=this._internalDocument.insertAtPosition(o,n).events;i.appendRedoEvents(l),i.appendUndoEvents(r.translateEventsForUndo(l)),this._internalDocument.emitDocumentEvents(l),this._document.endBlockEdit(i);let c=o[o.length-1].children[0];this._cursor.setPosition(c,c.text.length)},_makeInsertFunctionCall:function(e){this._prepareInsertion(),this._insertCodeAtCursorPosition(e.code),this._symbolicAutoEvaluationSetting.getValue()&&e.runOnInsert&&this._runSection()},_makeInsertLiveApp:function(e){this._prepareInsertion();let i=t.mixin({appIdentifier:"",appName:"",appVariables:"",appOperation:"",appVariablesUserMap:"{}",view:d.DEFAULT,autorun:!0,collapsed:!1,generateCodeAfterInsertion:!0,appState:JSON.stringify(e.appState)},e.appConfig);this._liveAppsController.insertLiveAppWithArgsAtCurrentPosition(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4881)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.outputhandlerservice","rtc.embeddedoutputs.currentoutputservice","rtc.embeddedoutputs.symbolicequationmanager"]}},createInstance:function(e,t,n,o){let r=new i(e,n,o);return t.registerOutputPlugin(r),r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(553),i(587),i(529),i(4882),i(2058)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t],{OUTPUT_TYPE:r.OUTPUT_TYPE,constructor:function(e,t,i){this._cursor=e,this._currentOutputService=t,this._symbolicEquationManager=i},getOutputFromData:function(e){let t=new o({data:e,cursor:this._cursor,currentOutputService:this._currentOutputService,symbolicEquationManager:this._symbolicEquationManager});return new i(n.ADD_OUTPUT,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1083),i(208),i(934),i(4883),i(2058)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n,t],{type:r.OUTPUT_TYPE,constructor:function(e){this._name=e.data.name||"",this._value=e.data.value;const t=e.data.isPreview;this._cursor=e.cursor,this._symbolicEquationManager=e.symbolicEquationManager,this._equationOutput=this._symbolicEquationManager.createSymbolicEquation(this._name,this._value,!t),this.own(i.after(e.currentOutputService,"onOutputSelected",this._handleOutputSelectionChanges.bind(this),!0)),this._domElement=this._equationOutput.createDomElement(),this._symbolicStyler=new o(this)},getStyler:function(){return this._symbolicStyler},destroy:function(){this._symbolicEquationManager.disableActiveSymbolicOutput(this._equationOutput),this._equationOutput.destroy(),this._symbolicStyler.destroy(),delete this._equationOutput,this.inherited(arguments)},isReady:function(){return this._equationOutput.isReady()},startup:function(){this._equationOutput.startup()},getReadyPromise:function(){return this._equationOutput.getReadyPromise()},getCssTag:function(){return r.CSS_TAG},getDomElement:function(){return this._domElement},getSerializableData:function(){let e={};return e.value=this._stripSuggestionsFromMathML(this._value),e.name=this._name,e},_stripSuggestionsFromMathML:function(e){const t=new RegExp("<annotation encoding='Suggestions'>[^<]*</annotation>","g");return e.replace(t,"")},getText:function(){return this._equationOutput?this._equationOutput.getMATLABCode():""},getMathML:function(e){return this._equationOutput?this._equationOutput.getMathML(e):""},getHTML:function(e,t){return this._equationOutput?this._equationOutput.getHTML(e,t):""},_handleOutputSelectionChanges:function(e){let t=e.focusedOutput||e.selectedOutputs.length&&e.selectedOutputs[0];t&&t.type===this.type?t!==this||this._cursor.hasSelection()||this._symbolicEquationManager.enableSymbolicOutput(this._equationOutput,this.getCodeLinePositions()):this._symbolicEquationManager.disableActiveSymbolicOutput(this._equationOutput)},getMIMEContent:function(e){return this._equationOutput?this._equationOutput.getMIMEContent(e):[]},getName:function(){return this._name},getValue:function(){return this._value}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2015)],o=i.dj.d(n,(function(e,t){return e(t,{_getOutputContent:function(e){return e.querySelector(".symbolicElement")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4885)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(832),i(211),i(683),i(453),i(402),i(438),i(348)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([s],{constructor:function(e){this._embeddedOutputsView=e},getApplicableDomNodeClasses:function(){return["embeddedOutputsSymbolicElement"]},enter:function(e,t){return this._exportEquationsAsMathML(e,t),!0},_exportEquationsAsMathML:function(e,n){let o=a.createOutputProgramlisting(),s=this._getVariableName(n),l=n.children[0].renderedEquationPromise;e.appendElement(l.then(function(){let e=t(".inlineSymbolicElement",n).length>0;s&&(o.textContent=s+" = "+(e?"":"\n"));let a=this._getMathML(n),l=document.createElement(e?r.INLINEEQUATION:r.INFORMALEQUATION);return l.innerHTML=a,i.place(l,o),o}.bind(this)))},_getVariableName:function(e){return this._embeddedOutputsView.getOutputFromOutputDiv(e).getName()},_getMathML:function(e){let t=this._embeddedOutputsView.getOutputFromOutputDiv(e).getMathML();return 0===t.indexOf("<math ")&&(t="<math "+o.XMLNSMWMMLX+t.slice(5)),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4887)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(225),i(285),i(578),i(579),i(348),i(829)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){"use strict";return e([s],{_PX_PT_RATIO:.75,_SYMEQIMAGEFILE_PREFIX:"symeq",_SYMEQIMAGE_EXTENSION:".png",constructor:function(e){this._outputView=e.getEmbeddedOutputsView()},getApplicableDomNodeClasses:function(){return["embeddedOutputsSymbolicElement"]},reset:function(){this._symEquationCounter=0},enter:function(e,t,i){if(i.equationsAsMathML){let i=this._getMathML(t);e.addToBody(i)}else this._writeImageURI(e,t,i);return!0},_writeImageURI:function(e,s,l){let c=this._outputView.getOutputFromOutputDiv(s),d=l.imageSizeInPoints?this._PX_PT_RATIO:1,u=a.exportDomnodeToImageURLPromise(s.children[0].renderedEquationPromise,2);u&&e.addToBody(u.then(function(e){let u,h=s.cloneNode(!0),p=n(".symbolicElement",h);return e.simpleEquation?(p[0].lastChild.innerHTML=a.simpleEquationToHTML(e.simpleEquation),t.add(p[0],"MathEquation"),p[0].outerHTML):o(this._getSrc(e.dataURL,l),(function(t){return u=i.create("span",{class:"MathEquation",mathmmlencoding:r.escapeHTML(c.getValue()),style:{verticalAlign:Math.round(e.verticalAlign)+"px"}},p[0].lastChild,"replace"),i.create("img",{src:t,width:e.width/2*d,height:e.height/2*d},u),p[0].outerHTML}))}.bind(this)))},_getMathML:function(e){return this._outputView.getOutputFromOutputDiv(e).getValue()},_getSrc:function(e,t){if(t.imagePath){this._symEquationCounter+=1;let i=t.imagePath+this._SYMEQIMAGEFILE_PREFIX+this._symEquationCounter+this._SYMEQIMAGE_EXTENSION;return this._imageCounter+=1,t.dontWaitForImageFiles_forTestingOnly?"file:///"+i:l.writeToPath(e,i).then((function(){return"file:///"+i}),(function(){return e}))}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4889)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(548),i(495),i(1442)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{constructor:function(){this._mathMLRenderer=new t({equationFormat:"mathml",cacheFontMetrics:!1})},getApplicableTypes:function(){return["symbolic"]},getEnvironment:function(){return"matlabsymbolicoutput"},enter:function(e,t,n){let o=t.getName(),r=""===o?"":o.replace(/_/g,"\\_")+" = \n\n",a=t.getValue(),s=this._mathMLRenderer.getModel(a).exportLaTeX({});s=i.getEscapedOutputText(s),e.addToBody(r+"\\hskip1em $\\displaystyle "+s+"$\n")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4891)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(225),i(579),i(348),i(357),i(426)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([o],{_UP_SCALING:4,_MAX_CLIENT_WIDTH:1920,_STYLES:["font-family","font-size"],constructor:function(e){this._view=e},getApplicableDomNodeClasses:function(){return["embeddedOutputsSymbolicElement"]},enter:function(e,t,o){let s,l,c=t.childNodes[0],d=i(".inlineSymbolicElement",c).length>0,u="",h=i(".embeddedOutputsVariableElement",c);h.length>0&&(u+=h[0].textContent);let p=i(".MathEquation",c);p.length>0&&(l=p[0],d||(u+="\n"),s=n.exportDomnodeToImageURL(l,r.PX_PT_RATIO*this._UP_SCALING,this._MAX_CLIENT_WIDTH));let f=a.createFOElement(r.BLOCK);if(""!==u){let e=a.createFOElementWithStyles(d?r.INLINE:r.BLOCK,t,this._STYLES,this._view);e.textContent=u,f.appendChild(e)}if(s){let e=a.createFOElementWithStyles(d?r.INLINE:r.BLOCK,l,["margin-left","margin-top","margin-bottom"],this._view),t=a.createFOElement(r.EXTERNAL_GRAPHIC);t.setAttribute("src",s.dataURL),t.setAttribute("content-height",Math.floor(s.height/this._UP_SCALING)+r.POINT),t.setAttribute("content-width",Math.floor(s.width/this._UP_SCALING)+r.POINT),t.setAttribute("vertical-align",s.verticalAlign*r.PX_PT_RATIO+r.POINT),e.appendChild(t),f.appendChild(e)}return e.appendElement(f),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4893)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.outputhandlerservice","rtc.embeddedoutputs.model"]}},createInstance:function(e,t){var n=new i(t);return e.registerOutputPlugin(n),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(679),i(553),i(587),i(529),i(624),i(4894),i(2059)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([n],{OUTPUT_TYPE:l.OUTPUT_TYPE,constructor:function(e){this._embeddedOutputsModel=e,this.own(t.after(this._embeddedOutputsModel,"onBeforeModelUpdated",this._handleOnBeforeModelUpdated.bind(this)))},getOutputFromData:function(e,t){var i=t.lineNumber,n=t.evaluationId;this._cleanData(e);var a=t.lastAddedOutput;if(this._shouldUpdateLastOutput(a,i,n))return a.updateDomElement(e),a.isEmpty()?new o(r.REMOVE_OUTPUT,a):new o(r.UPDATE,a);var l=new s({text:e.text,truncationInfo:e.truncationInfo,lineNumber:i});return l.isEmpty()?new o(r.IGNORE_OUTPUT,null):new o(r.ADD_OUTPUT,l)},_shouldUpdateLastOutput:function(e,t,n){return!i.isLoadedFromDisk(n)&&(!(!e||e.type!==l.OUTPUT_TYPE||e.getWasDestroyed())&&!(e.evaluationId!==n||e.getServerLineNumber()!==t))},_handleOnBeforeModelUpdated:function(){for(var e=this._embeddedOutputsModel.internalGetAllOutputs(),t=null,i=e[0],n=1;n<e.length;n++){var o=e[n];o.type===l.OUTPUT_TYPE&&this._shouldUpdateLastOutput(i,o.getServerLineNumber(),o.evaluationId)?(i.updateDomElement(o.getSerializableData()),this._embeddedOutputsModel.removeOutput(o),t!==i&&(this._embeddedOutputsModel.updateOutput(i),t=i)):i=o}},_cleanData:function(e){e.text=a.removeControlCharacters(e.text)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(247),i(667),i(229),i(934),i(624),i(2059)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([a],{_ELLIPSIS:"...",_MAX_LENGTH:6e4,type:l.OUTPUT_TYPE,constructor:function(e){this._truncationInfo=e.truncationInfo,this._text=s.processBackspaceCharacters(e.text),this._displayText=this._getDisplayText(),this._domElement=this._createDomElement(),this._serverLineNumber=e.lineNumber,this._destroyed=!1},destroy:function(){this.inherited(arguments),this._destroyed=!0},getCssTag:function(){return l.CSS_TAG},getDomElement:function(){return this._domElement},getSerializableData:function(){return{text:this._text,truncationInfo:this._truncationInfo}},getText:function(){var e=this._createDomElement();e.innerHTML=e.innerHTML.replace(/<br>/g,"\n");var t=e.textContent;return i.destroy(e),t},getHTML:function(e,t){return"<pre>"+this._displayText+"</pre>"},isReady:function(){return!0},_createDomElement:function(){var e={innerHTML:this._displayText,className:"textElement"},t=i.create("div",e);return s.limitTextNodeLength(t),t},_cleanupText:function(e){return e=o.normalizeNewlines(e),e=r.removeSurroundingNewLines(e),e=n.treatHtmlLikeCommandWindow(e)},updateDomElement:function(e){if(!this._truncationInfo||!this._truncationInfo.wasTruncatedMidLine){this._text+=e.text,this._reapplyTruncation(e),this._text=s.processBackspaceCharacters(this._text),this._displayText=this._getDisplayText();var t=this.getDomElement();t.innerHTML=this._displayText,s.limitTextNodeLength(t)}},_getDisplayText:function(){var e=this._cleanupText(this._text);return e=this._showTruncationIfNeeded(e,this._truncationInfo)},_reapplyTruncation:function(e){var t=!1;this._text.length>this._MAX_LENGTH&&(this._text=this._text.slice(0,this._MAX_LENGTH),t=!0),t|=e.truncationInfo&&e.truncationInfo.wasTruncatedMidLine,this._truncationInfo={wasTruncatedMidLine:!!t}},_showTruncationIfNeeded:function(e,t){return t&&t.wasTruncatedMidLine?e+this._ELLIPSIS:e},isEmpty:function(){return 0===this._displayText.length},getServerLineNumber:function(){return this._serverLineNumber},getWasDestroyed:function(){return this._destroyed}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4896)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(438),i(348)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(){},getApplicableDomNodeClasses:function(){return["embeddedOutputsTextElement"]},enter:function(e,i,n){var o=t.createOutputProgramlisting();return o.textContent=i.textContent+"\n",e.appendElement(o),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4898)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.outputhandlerservice"]}},createInstance:function(e){var t=new i;return e.registerOutputPlugin(t),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(553),i(587),i(529),i(4899)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{OUTPUT_TYPE:"variable",CSS_TAG:"embeddedOutputsVariableElement",constructor:function(){},getOutputFromData:function(e){var t=new o({data:e});return new i(n.ADD_OUTPUT,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(935),i(939),i(247)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{_CSS_TAG:"embeddedOutputsVariableElement",type:"variable",constructor:function(e){this._data=e.data,this._domElement=this._createDomElement()},getCssTag:function(){return this._CSS_TAG},getDomElement:function(){return this._domElement},getSerializableData:function(){var e={};return e.name=this._data.name,e.value=this._data.value,this._data.header&&(e.header=this._data.header),this._data.rows&&(e.rows=this._data.rows),this._data.columns&&(e.columns=this._data.columns),e},getText:function(){return this._createNameAndValue()},getHTML:function(e,t){var i=r.treatHtmlLikeCommandWindow(this._data.name),n="";return this._data.header&&(n=this._createHeader(this._data.header).textContent),"<pre>"+i+" = "+n+(n?"\n":"")+this._data.value+"</pre>"},_createDomElement:function(){var e={innerHTML:this._createNameValueAndHeader(this._data),className:"variableElement"};return i.create("div",e)},_createNameAndValue:function(){return r.treatHtmlLikeCommandWindow(this._data.name)+" = "+this._data.value},_createNameValueAndHeader:function(){var e=r.treatHtmlLikeCommandWindow(this._data.name);if(this._data.header){var t=this._createHeader(this._data.header);return i.create("span",{innerHTML:e+" = "+t.outerHTML,className:"variableNameElement"}).outerHTML+"\n "+this._data.value}return e+" = "+this._data.value},_createHeader:function(e){return o.createHeader(r.treatHtmlLikeCommandWindow(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4901)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1136),i(438),i(348)],o=i.dj.d(n,(function(e,t,i,n){return e([n,t],{constructor:function(){},getApplicableDomNodeClasses:function(){return["embeddedOutputsVariableElement"]},enter:function(e,t,n){var o=i.createOutputProgramlisting(),r=this.handleVariableNameElement(t,o);return r?o.appendChild(document.createTextNode(r.nextSibling.textContent+"\n")):o.textContent=t.textContent+"\n",e.appendElement(o),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4903)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(721),i(348)],o=i.dj.d(n,(function(e,t,i){return e([i],{_STYLES:["font-family","font-size"],constructor:function(){},getApplicableDomNodeClasses:function(){return["embeddedOutputsVariableElement"]},enter:function(e,i,n){var o=t.getStyleValuesForDomNode(i,this._STYLES),r="<div class='variableElement' style='"+(o=o.replace(/'/g,"&quot;"))+"'>"+i.textContent+"</div>";return e.addToBody(r),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4905)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.outputhandlerservice"]}},createInstance:function(e){var t=new i;return e.registerOutputPlugin(t),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(624),i(553),i(587),i(529),i(4906),i(1436)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([n],{OUTPUT_TYPE:s.OUTPUT_TYPE,constructor:function(){},getOutputFromData:function(e){e=t.clone(e),this._cleanData(e);var i=new a({data:e});return new o(r.ADD_OUTPUT,i)},_cleanData:function(e){var t=i.removeControlCharacters(e.value);e.value=i.processBackspaceCharacters(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(247),i(667),i(229),i(934),i(624),i(939),i(1436)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([a],{_ELLIPSIS:"...",type:c.OUTPUT_TYPE,constructor:function(e){this._data=e.data,this._domElement=this._createDomElement()},getCssTag:function(){return c.CSS_TAG},getDomElement:function(){return this._domElement},getSerializableData:function(){var e={};return e.name=this._data.name,e.value=this._data.value,this._data.truncationInfo&&(e.truncationInfo=this._data.truncationInfo),this._data.header&&(e.header=this._data.header),this._data.rows&&(e.rows=this._data.rows),this._data.columns&&(e.columns=this._data.columns),e},getText:function(){var e=this._createText(this._data.value),t=-1!==e.search("\n")?"\n":"",n=i.create("div",{innerHTML:e});return this._createName(this._data.name)+t+n.textContent},getHTML:function(e,t){var i="";this._data.header&&(i=this._createHeader(this._data.header).textContent);var n=o.normalizeNewlines(this._data.value),r=i||-1!==n.search("\n")?"\n":"";return"<pre>"+this._createName(this._data.name)+i+r+this._createText(this._data.value)+"</pre>"},_createHeader:function(e){return l.createHeader(n.treatHtmlLikeCommandWindow(e))},_createName:function(e){return n.treatHtmlLikeCommandWindow(e)+" = "},_createText:function(e){var t;return t=o.normalizeNewlines(e),t=n.treatHtmlLikeCommandWindow(t)},_createDomElement:function(){var e,t,n=i.create("div",{className:"textElement"}),o=this._createText(this._data.value);if(this._data.header){var r=this._createHeader(this._data.header);t=i.create("span",{innerHTML:this._data.name+" = "+r.outerHTML,className:"variableNameElement"})}else t=i.create("span",{innerHTML:this._data.name+" = ",className:"variableNameElement"});var a={innerHTML:t.outerHTML},l=i.create("div",a,n,"last"),c=this._data.truncationInfo&&this._data.truncationInfo.wasTruncatedAtLineBreak;return-1===this._data.value.search("\n")&&!c?(this._data.header&&(l.innerHTML+="\n"),l.innerHTML+=o):e=i.create("div",{innerHTML:o},n,"last"),this._addTruncationEllipses(this._data.truncationInfo,l,e),s.limitTextNodeLength(n),n},_addTruncationEllipses:function(e,t,n){if(t&&e&&e.wasTruncatedMidLine&&(t.innerHTML+=this._ELLIPSIS),n&&e&&e.wasTruncatedAtLineBreak){var o=i.create("div",{className:"verticalEllipsis"});n.appendChild(o)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4908)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1136),i(438),i(348)],o=i.dj.d(n,(function(e,t,i,n){return e([n,t],{constructor:function(){},getApplicableDomNodeClasses:function(){return["embeddedOutputsVariableStringElement"]},enter:function(e,t,n){var o=i.createOutputProgramlisting(),r=this.handleVariableNameElement(t,o);if(r){var a=r.nextSibling||r.parentNode.nextSibling;o.appendChild(document.createTextNode("\n"+a.textContent+"\n"))}else o.textContent=t.textContent+"\n";return e.appendElement(o),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4910)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.outputhandlerservice","rtc.service.colorsettingservice","rtc.diagnosticmessage"]}},createInstance:function(e,t,n){var o=new i(t,n);return e.registerOutputPlugin(o),o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(553),i(587),i(529),i(624),i(1437),i(1439)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([i],{OUTPUT_TYPE:s.OUTPUT_TYPE,_SETTING_PATH:"matlab.colors.commandwindow.WarningColor",_WARNING_TEXT_CSS:".diagnosticMessage-warningType",_WARNING_LINK_CSS:".diagnosticMessage-warningType a",constructor:function(e,t){this._diagnosticMessageFormatter=t,this._registerColorSettings(e)},getOutputFromData:function(e,i){e=t.clone(e),this._cleanData(e);var r=new a({text:e.text,diagnosticMessageFormatter:this._diagnosticMessageFormatter});return new n(o.ADD_OUTPUT,r)},_registerColorSettings:function(e){e.register(this._SETTING_PATH,this._WARNING_TEXT_CSS),e.register(this._SETTING_PATH,this._WARNING_LINK_CSS)},_cleanData:function(e){var t=r.removeControlCharacters(e.text);e.text=r.processBackspaceCharacters(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4912)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(438),i(348)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(){},getApplicableDomNodeClasses:function(){return["embeddedOutputsWarningElement"]},enter:function(e,i,n){var o=i.childNodes[0].childNodes[0].innerHTML;o=o.replace(/&nbsp;/g," ").replace(/<br>/g,"\n").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">");var r=t.createOutputProgramlisting();return r.textContent=o+"\n",e.appendElement(r),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4914)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.actionservice","rtc.focusservice","rtc.embeddedoutputs.view.viewmodel","rtc.embeddedoutputs.view","rtc.embeddedoutputs.contextmenu","rtc.embeddedoutputs.currentoutputservice","rtc.embeddedoutputs.keyboardshortcuts","rtc.embeddedoutputs.outputfocusmanager"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(253),i(368),i(342),i(207),i(208),i(1435),i(294),i(528)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(r,{constructor:function(e,t,i,n,o,r,a,s,l){this._cursor=e,this._actionService=t,this._focusService=i,this._viewModel=n,this._eoView=o,this._contextMenuContributor=r,this._currentOutputService=a,this._keyboardShortcuts=s,this._outputFocusManager=l}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4916)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.actionservice","rtc.keyhandler","rtc.code.sections.model","rtc.code.sections.current","rtc.execution.executionmanager","rtc.settings.service"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1398)],o=i.dj.d(n,(function(e,t,i){return e(i,{_SETTING_NAME:"matlab.editor.EnableSynchronousEvaluation",constructor:function(e,i,n,o,r,a){this._actionService=e,this._keyHandler=i,this._sectionModel=n,this._currentSectionModel=o,this._executionManager=r,this._settingsService=a,this._actions=[{id:"rtc_synchronous_run",enabled:!1,key:"f8",platformKey:{mac:"meta_alt_s"},callback:t.hitch(this,"_runAll")}],this._actionService.loadActions(this._actions),this._handleSettingsChange(!1),this._settingsService.getSetting(this._SETTING_NAME).then(function(e){this._handleSettingsChange(e)}.bind(this),(function(e){})),this.own(this._settingsService.listenToSettingChange(this._SETTING_NAME,t.hitch(this,"_handleSettingsChange"))),this._handles=[]},enable:function(){this._handleSettingsChange(!0)},_runAll:function(){var e=this._actionService.getAction("rtc_synchronous_run");return!(!e||!e.enabled)&&(this._executionManager.executeAllSections(!0,!1,"Synchronous"),!0)},_handleSettingsChange:function(e){this._actionService.updateAction("rtc_synchronous_run",{enabled:e})},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(4918),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.embeddedoutputs","rtc.alert.model","rtc.diagnosticmessage","rtc.embeddedoutputs.syntaxerrors"]}},createInstance:function(e,i,n,o){return new t(e._outputsModel,i,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(210),i(225),i(333),i(812),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(null,{constructor:function(e,n,o,r){this._embeddedOutputsModel=e,this._alertModel=n,this._diagnosticMessageFormatter=o,this._syntaxErrorHandler=r,this._aspectHandles=[i.after(this._embeddedOutputsModel,"onModelUpdated",t.hitch(this,"_handleOnModelUpdated")),i.after(this._syntaxErrorHandler,"onParseCompletedWithNoSyntaxErrors",t.hitch(this,"_handleEvaluationHasNoSyntaxErrors"),!0)],this._handleOnModelUpdated()},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[],this._alertModel.removeAllAlerts()},_handleOnModelUpdated:function(){var e=[],t=[],i=this._getAlertOutputsFromModel();if((i=this._removeDuplicateWarnings(i)).forEach((function(n){var o=this._shouldBeStale(n,i),r={type:"error"===n.type?a.ERROR:a.WARNING,line:n.codeLinePositions[0].getLineColumn().line,payload:{isStale:o},output:n};if(this._enableTooltips)if("error"===n.type){var s=this._diagnosticMessageFormatter.createErrorMessageWithStack(n.getHTML());r.payload.message=s.getDomNode().outerHTML,r.payload.isActive=!0}else{var l=this._diagnosticMessageFormatter.createWarningMessageWithStack(n.getHTML());r.payload.message=l.getDomNode().outerHTML}var c=this._findMatchingAlert(n);c&&!o?t.push(c):e.push(r)}),this),this._removeAllAlertsExceptFor(t),e.length>0){var n=this._alertModel.addAlerts(e);e.forEach((function(e,t){e.output.associatedAlertUid=n[t]}),this)}},_shouldBeStale:function(e,t){var i=e.getDomElement(),o=n.contains(i,"typoFixApplied"),r=this._syntaxErrorHandler.isSyntaxError(e),a=this._syntaxErrorHandler.hasSyntaxError(t);return o||a&&!r},_getAlertOutputsFromModel:function(){return this._embeddedOutputsModel.getOutputs().filter((function(e){return"error"===e.type||"warning"===e.type}))},_removeDuplicateWarnings:function(e){if(this._enableTooltips)return e;const t=[];return e.filter((function(e){if("warning"!==e.type)return!0;const i=e.codeLinePositions[0].getLineColumn().line;return!t[i]&&(t[i]=!0,!0)}))},_findMatchingAlert:function(e){var t=null;return this._alertModel.getAlerts().some((function(i){var n=e.associatedAlertUid===i.id;return t=n?i:null,n})),t},_removeAllAlertsExceptFor:function(e){var t=this._alertModel.getAlerts(),i=s.differenceOfArrays(t,e).map((function(e){return e.id}));i.length>0&&this._alertModel.removeAlerts(i)},_handleEvaluationHasNoSyntaxErrors:function(e){var t=e.evaluationRange;this._clearAllStale(),this._setAlertsInRangeAsStale(t)},_setAlertsInRangeAsStale:function(e){this._alertModel.getAlerts().forEach((function(t){var i=t.position.getNode();if(r.isParagraphNodeInRange(i,e)){this._alertModel.updateAlert(t.id,{payload:{isStale:!0}})}}),this)},_clearAllStale:function(){this._alertModel.getAlerts().forEach((function(e){var t={payload:{isStale:this._isAlertTypoFixed(e)}};this._alertModel.updateAlert(e.id,t)}),this)},_isAlertTypoFixed:function(e){var t=this._getAlertOutputsFromModel(),i=!1;return t.some((function(t){if(t.codeLinePositions[0].line===e.position.line){var o=t.getDomElement();return n.contains(o,"typoFixApplied")&&(i=!0),!0}})),i},enableTooltips:function(e){this._enableTooltips=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4920)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.model","rtc.bordercontainer","rtc.focusservice","rtc.executionservice.statehandler","rtc.actionservice","rtc.domnode","rtc.embeddedoutputs.syntaxerrors","rtc.executionmanager.viewservice","embeddedoutputsviews","rtc.embeddedoutputs.viewbuttonpanel","rtc.embeddedoutputs.view.viewmodel","rtc.execution.margin.readybusyindicator","rtc.margin.execution.currentlinedecorator","rtc.embeddedoutputs.viewnametoviewmap","rtc.document","rtc.settings.service","rtc.viewmanager","rtc.backingstore","rtc.view.viewportopenedservice"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(208),i(206),i(221),i(209),i(207),i(281),i(1459),i(4921),i(528),i(4922)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(s,{_DEFAULT_VIEW_SETTING_PATH:"matlab.editor.displaysettings.DefaultView",_CANCEL_REASON_VIEW_EXPLICITLY_SET:"VIEW_EXPLICITLY_SET",_CANCEL_REASON_IN_DESTROY:"IN_DESTROY",_CANCEL_REASON_NO_SETTING:"Setting not found: matlab.editor.displaysettings.DefaultView",constructor:function(e,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){this._outputsModel=e,this._parentBorderContainer=o,this._focusService=r,this._stateHandler=a,this._actionService=s,this._rtcDomNode=l,this._syntaxErrorHandler=c,this._viewService=d,this._embeddedOutputsViews=u,this._viewButtonPanel=h,this._readyBusyIndicator=f,this._currentLineDecorator=g,this._viewNameToViewMap=m,this._document=_,this._settingsService=v,this._rtcViewManager=b,this._backingStore=y,this._viewportOpenedService=C,this._aspectHandles=[],this._savedViewState=null,this._shouldTryUsingDefaultView=!0,this._viewModel=p,this._viewModel.setCreateWrapperCallback(t.hitch(this,"_createOutputDivsFromOutputs")),this._whenFirstViewEnabled=new i,this.own(n.after(this._rtcViewManager,"onStarted",this._handleOnStarted.bind(this)))},enable:function(){this._staleOutputManager=new d(this._viewModel,this._stateHandler,this._syntaxErrorHandler,this._viewService,this._outputsModel,this._document),this._aspectHandles.push(n.after(this._viewModel,"onModelUpdated",t.hitch(this,"_layoutView",!1,!1,!1),!0)),this._viewButtonPanel.enable(this._savedViewState),this._setupStyler(this._parentBorderContainer,this._viewModel),this._actions=[],this._currentView=this._getOnRightView(),this._setupViews();var e=!1;this._savedViewState?(this.setLayoutState(this._savedViewState),this._savedViewState=null,e=!0):this._currentView.enable(),this._setupViewActions(),this._readyBusyIndicator.enable(),this._currentLineDecorator.enable(),this._aspectHandles.push(n.after(this._parentBorderContainer,"layout",t.hitch(this,"_layoutView",!1,!0,!1),!0)),this._actionService.loadActions(this._actions),this._aspectHandles.push(n.after(this._actionService,"onActionChange",t.hitch(this,"_onActionChange"),!0)),e||this._viewportOpenedService.whenViewportOpened(function(){this._defaultViewSetup()}.bind(this)),this._whenFirstViewEnabled.resolve()},_defaultViewSetup:function(){this._shouldTryUsingDefaultView&&(this._defaultViewPromise=this._settingsService.getSetting(this._DEFAULT_VIEW_SETTING_PATH),this._defaultViewPromise.then(function(e){this._savedViewState?this._savedViewState=e:this.setLayoutState(e)}.bind(this),function(e){this._defaultViewPromise=null,e!==this._CANCEL_REASON_IN_DESTROY&&e!==this._CANCEL_REASON_VIEW_EXPLICITLY_SET&&e!==this._CANCEL_REASON_NO_SETTING&&a.error("Default view error: Default view will not be used")}.bind(this)))},_setupViews:function(){this._embeddedOutputsViews.forEach((function(e){e.setup(this._viewModel,this._scrollableOutputStyler),this._aspectHandles.push(n.after(e,"onOutputClicked",t.hitch(this,"_handleOutputClicked"),!0)),this._aspectHandles.push(n.after(e,"onOutputContextMenuClose",t.hitch(this,"onOutputContextMenuClose"),!0)),this._viewNameToViewMap.addViewToMap(e)}),this)},_setupViewActions:function(){this._embeddedOutputsViews.forEach((function(e){var i=[{id:e.ACTION_ID,enabled:!0,selected:this._currentView===e,callback:t.hitch(this,"_toggleState",e.getName(),!0)},{id:e.ACTION_ID_NO_ANIMATION,enabled:!0,callback:t.hitch(this,"_toggleState",e.getName(),!1)}];this._actions=this._actions.concat(i)}),this)},disable:function(){var e=this;this._actions.forEach((function(t){e._actionService.getAction(t.id)&&(e._actionService.updateAction(t.id,{enabled:!1}),e._actionService.removeAction(t.id))})),this._viewModel.clear(),this._staleOutputManager.destroy(),this._readyBusyIndicator.disable(),this._currentLineDecorator.disable(),this._scrollableOutputStyler.destroy(),this._viewButtonPanel.disable(),this._savedViewState=this.getLayoutView(),this._savedStateForSetup=this.getLayoutView(),this._embeddedOutputsViews.forEach((function(e){e.disableView()}),this),this._currentView=null,this._aspectHandles.forEach((function(e){e.remove()}))},onAlign:function(){this._scrollableOutputStyler.layout()},outputChanged:function(){this._outputStyleChanged(!1,!0,!0)},onViewToggled:function(e){},_setupStyler:function(e,i){this._scrollableOutputStyler=new h(i,this._rtcDomNode),this._aspectHandles.push(n.after(this,"_layoutView",t.hitch(this._scrollableOutputStyler,"layout"),!0)),this._aspectHandles.push(n.after(this._scrollableOutputStyler,"onStyledWithHeightChange",t.hitch(this,"_handleOnStyledWithHeightChange"),!0))},toggle:function(e,t){if(!this._toggling){this._toggling=!0;var i=this._currentView.disable(e);if(this._updateCurrentViewAndActions(t),this._viewModel.refreshViewModel(),i&&e)var n=this,r=o(i,"End",(function(){r.remove(),n._toggleComplete(e)}));else this._toggleComplete(e);this._focusService.setFocus()}},_updateCurrentViewAndActions:function(e){for(var t=0;t<this._embeddedOutputsViews.length;t++){var i=this._embeddedOutputsViews[t],n=!1;e===i.getName()&&(this._currentView=i,n=!0),this._actionService.updateAction(i.ACTION_ID,{enabled:!0,selected:n})}},_toggleComplete:function(e){if(this._redrawCurrentView(e),this._whenFirstViewEnabled.isResolved()&&this._currentView.startup(),this._toggling=!1,this.onViewToggled(this._currentView.getName()),this._lastToggleRequest){var t=this._lastToggleRequest;this._lastToggleRequest=null,this._toggleState(t,e)}},_redrawCurrentView:function(e){this._currentView.enable(e),this._layoutView(e,!1,!0)},_handleOnStyledWithHeightChange:function(e){this._outputStyleChanged(e,!0,!1)},_outputStyleChanged:function(e,t,i){this._currentView.outputStyleChanged(e,t,i)},isInView:function(e){return this._currentView===e},_getOnRightView:function(){for(var e=0;e<this._embeddedOutputsViews.length;e++){var t=this._embeddedOutputsViews[e];if(t.getName()===u.ON_RIGHT_VIEW_STATE)return t}},_toggleState:function(e,t){return this._currentView.getName()!==e?this.toggle(t,e):this._currentView.isEnabled()||this._currentView.enable(),l.hasFileLocation(this._backingStore)&&(this._shouldTryUsingDefaultView=!1,this._defaultViewPromise&&!this._defaultViewPromise.isResolved()&&this._defaultViewPromise.cancel(this._CANCEL_REASON_VIEW_EXPLICITLY_SET)),!0},_layoutView:function(e,t,i){this._currentView.layout(e,t,i)},_createOutputDivsFromOutputs:function(e){return this._currentView.createOutputDivsFromOutputs(e)},getOutputsAssociatedWithNode:function(e){return this._viewModel.getOutputsAssociatedWithNode(e)},_onActionChange:function(e){var t=e.id;if("selected"===e.key&&e.newValue)for(var i=0;i<this._embeddedOutputsViews.length;i++)t===this._embeddedOutputsViews[i].ACTION_ID&&this._toggleOnActionChanged(this._embeddedOutputsViews[i].getName())},_toggleOnActionChanged:function(e){this._toggling?this._lastToggleRequest=e:this._toggleState(e,!0)},setLayoutState:function(e){var t=this._getViewFromViewName(e);if(t)for(;!t.isEnableable();)e=t.getFallbackView(),t=this._getViewFromViewName(e);this._toggleState(e,!1)},setReadyBusyIndicatorState:function(e){this._readyBusyIndicator.setState(e)},getLayoutView:function(){return this._currentView.getName()},getSerializedView:function(){var e=this.getLayoutView(),t=this._currentView.getRequiresRelease();return t?new c(e,t,this._currentView.getFallbackView()):e},getReadyBusyIndicatorState:function(){return this._readyBusyIndicator.getState()},getOutputFromOutputDiv:function(e){return this._viewModel.getOutputFromOutputDiv(e)},getOutputDivsForRange:function(e,t){return this._viewModel.getOutputDivsForRange(e,t)},getOutputWrapperFromElement:function(e){return this._viewModel.getOutputWrapperFromElement(e)},_handleOutputClicked:function(e,t){var i=this.getOutputWrapperFromElement(e);if(i){var n=this._viewModel.getOutputFromOutputDiv(i);this.onOutputClick(n,t)}},onOutputClick:function(e,t){},onOutputContextMenuClose:function(){},_getViewFromViewName:function(e){for(var t=0;t<this._embeddedOutputsViews.length;t++){var i=this._embeddedOutputsViews[t];if(i.getName()===e)return i}return null},_handleOnStarted:function(){this._whenFirstViewEnabled.then(function(){this._currentView&&this._currentView.startup()}.bind(this))},destroy:function(){this.inherited(arguments),this._whenFirstViewEnabled.cancel(),this._whenFirstViewEnabled=null,this._shouldTryUsingDefaultView=!1,this._defaultViewPromise&&(this._defaultViewPromise.cancel(this._CANCEL_REASON_IN_DESTROY),this._defaultViewPromise=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(225),i(210),i(208),i(266)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{_STALE_OUTPUT_CLASS:"stale_output",_STALE_OUTPUT_SELECTOR:".stale_output",constructor:function(e,i,n,o,a,s){this._stateHandler=i,this._viewModel=e,this._syntaxErrorHandler=n,this._viewService=o,this._outputsModel=a,this._document=s,this._latestEvaluationId=null,this._latestEvaluationRange=null,this._aspectHandles=[r.after(this._stateHandler,"onStateChanged",t.hitch(this,"_stateChangeListener"),!0),r.after(this._syntaxErrorHandler,"onEvaluationCompletedWithNoSyntaxErrors",t.hitch(this,"_handleEvaluationEnd")),r.after(this._syntaxErrorHandler,"onSyntaxError",t.hitch(this,"_unstaleSyntaxError")),r.after(this._viewModel,"onModelUpdated",t.hitch(this,"_handleViewModelUpdated"))]},_handleViewModelUpdated:function(){if(this._latestEvaluationRange){var e=this._viewModel.getOutputDivsWithPrimaryAssociationInRange(this._latestEvaluationRange).filter((function(e){var t=this._viewModel.getOutputFromOutputDiv(e);return this._latestEvaluationId!==t.evaluationId}),this);this._setOutputDivsStale(e)}},_stateChangeListener:function(e,t){if(e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED){this._latestEvaluationId=t.evaluationId;var i=t.evaluationRange,n=i.getStartPosition().getNode(),o=i.getEndPosition().getNode(),r=this._document.createLinePosition(n,!1),s=this._document.createLinePosition(o,!1);this._latestEvaluationRange&&this._latestEvaluationRange.destroy(),this._latestEvaluationRange=new a(r,s);var l=this._viewModel.getOutputDivsWithPrimaryAssociationInRange(this._latestEvaluationRange);this._setOutputDivsStale(l)}},_handleEvaluationEnd:function(){this._outputsModel.whenOutputsReady(t.hitch(this,(function(){this._stateHandler.isRunning()||this._clearAllStale()})))},_unstaleSyntaxError:function(){var e=this._syntaxErrorHandler.getFirstSyntaxErrorOutput();e&&o.remove(e.getDomElement(),this._STALE_OUTPUT_CLASS)},_clearAllStale:function(){this._viewModel.getOutputDivs().forEach((function(e){o.remove(this._getTargetDiv(e),this._STALE_OUTPUT_CLASS)}),this)},_setOutputDivsStale:function(e){this._viewService.executeViewAction(t.hitch(this,"_addStaleClassToOutputDivs",e))},_addStaleClassToOutputDivs:function(e){e.forEach((function(e){o.add(this._getTargetDiv(e),this._STALE_OUTPUT_CLASS)}),this)},_getTargetDiv:function(e){return e.children[0]},destroy:function(){this._latestEvaluationRange&&this._latestEvaluationRange.destroy(),this._latestEvaluationRange=null,this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t){this._viewModel=e,this._rtcDomNode=t},destroy:function(){},layout:function(e,t){this._styleScrollableOutputs(t)},onStyledWithHeightChange:function(e){},_styleScrollableOutputs:function(e){var t=this._viewModel.getOutputDivs(),i=t.map((function(e){return this._viewModel.getOutputFromOutputDiv(e)}),this),n=[],o=[];i.forEach((function(e,i){e.getStyler&&e.getStyler()&&(o.push(e.getStyler()),n.push(t[i]))})),this._styleOutputs(n,o)&&this.onStyledWithHeightChange(e)},_styleOutputs:function(e,t){for(var i=!1,n=e.map((function(e,i){return{styler:t[i],outputDiv:e}}));n.length>0;)n=(n=(n=(n=n.map((function(e){return e.styler.getStyleChange(e)}))).filter((function(e){return!!e}))).map((function(e){var t=e.styler.applyStyleChange(e);return i=i||t.heightChanged,t.nextChange}))).filter((function(e){return!!e}));return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4924)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.model"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(204),i(211),i(210),i(213),i(209),i(229),i(207),i(282),i(274),i(313)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(l,{constructor:function(e){this._createWrapperCallback=null,this._outputsModel=e,this._HEAD={},this._TAIL={},this._resetOutputList(),this._positionToOutputMap=c.createMap(),this._uidToOutputMap={},this._rebuildViewModel()},enable:function(){this._startListeners()},disable:function(){this._stopListeners(),this.clear()},setCreateWrapperCallback:function(e){this._createWrapperCallback=e,this._rebuildViewModel()},getOutputsAssociatedWithNode:function(e){return this.getOutputDivsForNode(e.rootContainer()).map((function(e){return this.getOutputFromOutputDiv(e)}),this)},getOutputDivs:function(){var e=[];return this._forEachOutput((function(t){e.push(t.domElement)})),e},getOutputDivsForNode:function(e){return this._getOutputDivsForNodes([e])},getOutputDivsForRange:function(e,t){var i=d.getParagraphNodesInRange(e,t);return this._getOutputDivsForNodes(i)},getOutputDivsWithPrimaryAssociationInRange:function(e){var t=e.getStartPosition().getNode(),i=e.getEndPosition().getNode(),n=d.getParagraphNodesInRange(t,i),o=[];return this._forEachOutput((function(e){var t=e.codeLinePositions,i=t[t.length-1];n.indexOf(i.getNode())>-1&&o.push(e.domElement)}),this),o},doesOutputExist:function(e){return!!this._uidToOutputMap[e.uid]},getPreviousSibling:function(e){var t=e.getAttribute("uid"),i=this._uidToOutputMap[t];if(!i)return a.error("Can't get previous output: invalid reference output."),null;var n=i.previous;return n?n.domElement:null},getNextSibling:function(e){var t=e.getAttribute("uid"),i=this._uidToOutputMap[t];if(!i)return a.error("Can't get next output: invalid reference output."),null;var n=i.next;return n?n.domElement:null},_getOutputDivsForNodes:function(e){var t=[],i=this;return this._forEachOutput((function(n){i._isOutputAssociatedWithNodes(n,e)&&t.push(n.domElement)}),this),t},_forEachOutput:function(e){for(var t=this._HEAD.next;t!==this._TAIL;)e(t),t=t.next},_isOutputAssociatedWithNodes:function(e,t){for(var i=e.codeLinePositions,n=0;n<i.length;n++){if(t.indexOf(i[n].getNode())>-1)return!0}return!1},doesNodeHaveOutputs:function(e){for(var t=u.getPositions(e),i=0;i<t.length;i++){if(void 0!==this._positionToOutputMap.get(t[i]))return!0}return!1},refreshViewModel:function(){this._rebuildViewModel()},onModelUpdated:function(){},clear:function(){this._resetOutputList(),this._positionToOutputMap.clear(),this._uidToOutputMap={},this.onModelUpdated()},destroy:function(){this._stopListeners(),this.clear(),this._positionToOutputMap=null,this._uidToOutputMap=null,this.inherited(arguments)},getLineNumbersForOutput:function(e){var t=e.getAttribute("uid");return this._uidToOutputMap[t].codeLinePositions.map((function(e){return e.getLineColumn().line-1}))},_startListeners:function(){this._modelListener||(this._modelListener=t.after(this._outputsModel,"onModelUpdated",i.hitch(this,"_updateViewModel"),!0))},_stopListeners:function(){this._modelListener&&(this._modelListener.remove(),this._modelListener=null)},_updateViewModel:function(e,t){t&&(this._updateViewModelFromChangelist(t),this.onModelUpdated(e))},_rebuildViewModel:function(){this._preserveExistingHeights(),this._positionToOutputMap.clear(),this._uidToOutputMap={},this._resetOutputList(),this._outputsModel.getOutputs().forEach((function(e){this._addOutput(e)}),this),this.onModelUpdated()},_preserveExistingHeights:function(){var e=[];this._forEachOutput((function(t){var i=t.domElement.parentElement;i&&e.push({previousWrapper:i,previousClientHeight:t.domElement.clientHeight})})),e.forEach((function(e){r.set(e.previousWrapper,"height",e.previousClientHeight+"px")}))},_updateViewModelFromChangelist:function(e){e.forEach((function(e){var t=e.output,i=e.referenceOutputId;if((e.type===this._outputsModel.CHANGE_TYPE.REMOVE||e.type===this._outputsModel.CHANGE_TYPE.REPLACE||e.type===this._outputsModel.CHANGE_TYPE.UPDATE||e.type===this._outputsModel.CHANGE_TYPE.ADD&&null!==i)&&void 0===this._uidToOutputMap[i])a.error("Invalid reference output; skipping output.");else switch(e.type){case this._outputsModel.CHANGE_TYPE.ADD:this._addOutput(t,i);break;case this._outputsModel.CHANGE_TYPE.REMOVE:this._removeOutput(i);break;case this._outputsModel.CHANGE_TYPE.CLEAR_ALL:this.clear();break;case this._outputsModel.CHANGE_TYPE.UPDATE:case this._outputsModel.CHANGE_TYPE.REPLACE:this._replaceOutput(t,i)}}),this)},_addOutput:function(e,t){var i=this._uidToOutputMap[t];i=i||this._TAIL;var n=this._createViewModelOutput(e.codeLinePositions,e);this._uidToOutputMap[e.uid]=n,this._addViewModelOutputToPositionMap(n),this._spliceIn(n,i)},_removeOutput:function(e){var t=this._uidToOutputMap[e];this._removeViewModelOutputFromPositionMap(t),this._spliceOut(t),delete this._uidToOutputMap[e]},_replaceOutput:function(e,t){var i=this._createViewModelOutput(e.codeLinePositions,e),n=this._uidToOutputMap[t];this._removeViewModelOutputFromPositionMap(n),this._addViewModelOutputToPositionMap(i),this._spliceIn(i,n),this._spliceOut(n),delete this._uidToOutputMap[t],this._uidToOutputMap[e.uid]=i},_spliceIn:function(e,t){e.next=t,e.previous=t.previous,t.previous.next=e,t.previous=e},_spliceOut:function(e){e.previous.next=e.next,e.next.previous=e.previous,e.previous=null,e.next=null},_createViewModelOutput:function(e,t){return{domElement:this._createOutputWrapper(t),codeLinePositions:e,_modelOutput:t}},_resetOutputList:function(){this._HEAD.next&&this._HEAD.next!==this._TAIL&&(this._HEAD.next.previous=null,this._TAIL.previous.next=null),this._HEAD.next=this._TAIL,this._TAIL.previous=this._HEAD},_addViewModelOutputToPositionMap:function(e){e.codeLinePositions.forEach((function(t){this._positionToOutputMap.set(t,e)}),this)},_removeViewModelOutputFromPositionMap:function(e){e.codeLinePositions.forEach((function(e){this._positionToOutputMap.delete(e)}),this)},_createOutputWrapper:function(e){var t=this._createWrapperCallback(e.codeLinePositions);o.add(t,e.getCssTag()),t.setAttribute("uid",e.uid);var i=e.getDomElement();o.add(i,"eoOutputContent");var r=i.parentElement;return r&&(t.setAttribute("data-scroll-top",r.getAttribute("data-scroll-top")),t.setAttribute("data-scroll-left",r.getAttribute("data-scroll-left"))),n.place(i,t,"last"),t},getOutputFromOutputDiv:function(e){var t=e.getAttribute("uid"),i=this._uidToOutputMap[t];return i?i._modelOutput:null},getOutputDivFromOutput:function(e){var t=this._uidToOutputMap[e.uid];return t?t.domElement:null},hasOutputs:function(){return this._HEAD.next!==this._TAIL},getOutputWrapperFromElement:function(e){for(var t=e,i=o.contains(t,"rightPaneElement"),n=o.contains(t,"inlineElement"),r=o.contains(t,"rtePane");!i&&!n&&!r;){if(!(t=t.parentElement))return null;i=o.contains(t,"rightPaneElement"),n=o.contains(t,"inlineElement"),r=o.contains(t,"rtePane")}return o.contains(t,"rtePane")?null:t},startupOutputs:function(){this._forEachOutput((function(e){e._modelOutput.startup()}))},startupOutputsForOutputDivs:function(e){e.forEach((function(e){var t=this.getOutputFromOutputDiv(e);t&&t.startup()}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4926)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.executionservice.statehandler","rtc.view.decoration","rtc.internaldocument","language.interface.tokenmanager","matlab.lexer.statemanager","rtc.embeddedoutputs.model","rtc.execution.executiondatamanager","rtc.linenumberservice"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(320)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_NON_HIT_CODE_CLASS:"notHitCode",constructor:function(e,t,n,o,r,a,s,l){this._stateHandler=e,this._decorator=t.createDecorator(),this._internalDocument=n,this._matlabTokenManager=o,this._matlabStateManager=r,this._embeddedOutputsModel=a,this._executionDataManager=s,this._lineNumberService=l,this.own(i.after(this._stateHandler,"onStateChanged",this._handleEvalType.bind(this),!0)),this._ignoreOpacityLines={},this._continuationLines={},this._functionFirstLines={}},_handleEvalType:function(e,t){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED?(this._preProcessTokens(),this._setCodeOpacity(),this._addExecutionDataListener(),this._documentListener||this._addDocumentListener()):e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&(this._executionDataListener&&(t.didRunToCompletion&&this._postProcessColoring(),this._removeExecutionDataListener()),this._ignoreOpacityLines={},this._continuationLines={},this._functionFirstLines={})},_setCodeOpacity:function(){for(var e=this._lineNumberService.getNumberOfCodeLines(),t=1;t<=e;t++){var i=this._lineNumberService.getLineNumberFromCodeLineNumber(t)+1,n=this._internalDocument.getRangeForLine(i);this._decorator.addClass(n,[this._NON_HIT_CODE_CLASS])}this._decorator.applyChanges()},_handleDocumentChange:function(){this._executionDataListener&&this._removeExecutionDataListener(),this._removeDocumentListener();for(var e=this._lineNumberService.getNumberOfCodeLines(),t=1;t<=e;t++){var i=this._lineNumberService.getLineNumberFromCodeLineNumber(t)+1,n=this._internalDocument.getRangeForLine(i);this._decorator.clearRange(n)}this._decorator.applyChanges()},_preProcessTokens:function(){this._mostRecentContinuationStart=1;const e=this._matlabTokenManager.getTokens();for(let t=0;t<e.length;t++){const i=e[t],n=t+1;i.forEach(e=>{this._locateEndsAndFunctions(e,n),this._locateFunctionFirstLines(e,n),this._locateContinuations(n)}),this._locateStandaloneComments(i)}},_locateEndsAndFunctions:function(e,t){(o.isTokenEndOfBlock(e)||o.isFunctionToken(e))&&(this._ignoreOpacityLines[t]=!0)},_locateFunctionFirstLines:function(e,t){o.isFunctionToken(e)&&(this._functionFirstLines[this._lineNumberService.getLineNumberFromCodeLineNumber(t+1)]=t)},_locateContinuations:function(e){this._matlabStateManager.hasLineContinuation(e-1)&&(this._continuationLines.hasOwnProperty(e)||(this._mostRecentContinuationStart=e),this._continuationLines[e+1]=this._mostRecentContinuationStart)},_locateStandaloneComments:function(e){var t=e.getToken(0);"%"===t.getValue().trim().substring(0,1)&&(this._ignoreOpacityLines[t.getPositionInfo().line+1]=!0)},_handleLineData:function(e,t,i,n){for(var o=0;o<n.length;o++){var r=o+1,a=this._lineNumberService.getLineNumberFromCodeLineNumber(r)+1,s=this._internalDocument.getRangeForLine(a);n[o]>0?(this._decorator.clearRange(s),this._handleFunctionHeaders(a)):(this._handleContinuations(s,n,a),this._handleEndsAndComments(s,n,a,e))}this._decorator.applyChanges()},_handleContinuations:function(e,t,i){if(this._continuationLines.hasOwnProperty(i)){var n=this._continuationLines[i];t[this._lineNumberService.getCodeLineNumberFromLineNumber(n-1)-1]>0&&this._decorator.clearRange(e)}},_handleFunctionHeaders:function(e){if(this._functionFirstLines.hasOwnProperty(e)){var t=this._internalDocument.getRangeForLine(this._functionFirstLines[e]);this._decorator.clearRange(t)}},_handleEndsAndComments:function(e,t,i,n){var o=this._embeddedOutputsModel.getRegions()[n];o&&(i<=o.code.regionPositions[0].line&&this._ignoreOpacityLines.hasOwnProperty(i)&&this._decorator.clearRange(e))},_postProcessColoring:function(){Object.keys(this._ignoreOpacityLines).forEach((function(e){var t=this._internalDocument.getRangeForLine(parseInt(e));this._decorator.clearRange(t)}),this),this._decorator.applyChanges()},_addDocumentListener:function(){this._documentListener=i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleDocumentChange"),!0)},_removeDocumentListener:function(){this._documentListener.remove(),this._documentListener=null},_addExecutionDataListener:function(){this._executionDataListener=i.after(this._executionDataManager,"onDataUpdate",t.hitch(this,"_handleLineData"),!0)},_removeExecutionDataListener:function(){this._executionDataListener.remove(),this._executionDataListener=null},destroy:function(){this.inherited(arguments),this._removeExecutionDataListener(),this._removeDocumentListener()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4928)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.model","rtc.cursor","rtc.view","rtc.embeddedoutputs.syntaxerrors","rtc.cursorcontroller","rtc.focusservice"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(253),i(4929),i(208),i(2022),i(4930)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{_CONTRIBUTOR_TYPE:"error",_CSS_CLASS:"error",_ERROR_MESSAGE:i.scriptHasError,constructor:function(e,t,i,n,r,a){this._eoModel=e,this._cursor=t,this._rtcView=i,this._syntaxErrorHandler=n,this._cursorController=r,this._focusService=a,this.own(o.after(this._eoModel,"onModelUpdated",this._handleEOModelUpdated.bind(this))),this.own(o.after(this._syntaxErrorHandler,"onSyntaxError",this._handleSyntaxError.bind(this)))},_handleEOModelUpdated:function(){this.onUpdate()},hasContribution:function(){return this._eoModel.hasError()},getContributorType:function(){return this._CONTRIBUTOR_TYPE},getDomClass:function(){return this._CSS_CLASS},getTooltipText:function(){return this._ERROR_MESSAGE},getIcon:function(){return n},getPosition:function(){var e=this._eoModel.findOutput((function(e){return e.isInstanceOf(r)}));return e?e.codeLinePositions[0]:null},_handleSyntaxError:function(){var e=this._syntaxErrorHandler.getFirstSyntaxErrorOutput();if(e){this._cursorController.clearSelection();var t=e.codeLinePositions[0],i=t.getLineColumn().line;i!==this._cursor.getLineColumn().line&&this._cursor.setPosition(t.getNode(),0,!1),this._rtcView.scrollNearestVisibleLineToPercent(i,50),this._focusService.setFocus()}}})}),e,t),e.exports=o},function(e,t){e.exports='<span>\n <svg class="errorImg" width="14" height="15" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">\n <circle id="error_circle" cx="7" cy="8" r="7" fill="rgb(204, 55, 41)"/>\n <rect id="top_bang" fill="white" x="6" y="3" width="2" height="6"/>\n <rect id="bottom_bang" fill="white" x="6" y="11" width="2" height="2"/>\n </svg>\n</span>'},function(e,t,i){var n,o;n=[i(203),i(209),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){},getPosition:function(){t.error("AbstractReadyBusyIndicatorContributor.getPosition Unimplemented")},hasContribution:function(){t.error("AbstractReadyBusyIndicatorContributor.hasContribution Unimplemented")},getContributorType:function(){t.error("AbstractReadyBusyIndicatorContributor.getContributorType Unimplemented")},getDomClass:function(){t.error("AbstractReadyBusyIndicatorContributor.getDomClass Unimplemented")},onUpdate:function(){},getIcon:function(){t.error("AbstractReadyBusyIndicatorContributor.getIcon Unimplemented")},getTooltipText:function(){t.error("AbstractReadyBusyIndicatorContributor.getTooltipText Unimplemented")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4932)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.bordercontainer","rtc.embeddedoutputs.view.splitterpositioncontroller","rtc.embeddedoutputs.splitterpositionmodel"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(356),i(211),i(213),i(206),i(276),i(209),i(207),i(4933)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(s,{_PLACEMENT_CONFIG:{hasSplitter:!0,isResizable:!0,isProportional:!0,isCollapsible:!1,region:"right",minSize:10,proportion:null},constructor:function(e,t,n){this._hidden=!1,this._outputScrollPane=i.create("div",{className:"outputScrollPane mwDoNotApplyCustomScrollbarCSS"}),this._setDataTestId(this._outputScrollPane,"rtc_outputScrollPane"),this._parentBorderContainer=e,this._splitterPositionModel=n,this._splitterPositionController=t,this._contentPanel=new r({className:"outputsOnRight",content:this._outputScrollPane}),this._initializeAndSetupBorderContainer()},_initializeAndSetupBorderContainer:function(){l.setup(this._parentBorderContainer),a.assert(this._parentBorderContainer,"BorderContainer should have been constructed"),a.assert(!this._parentBorderContainer.getChildInRegion(this._PLACEMENT_CONFIG.region),"There should have been no child placed here"),this._parentBorderContainer.getChildInRegion(this._PLACEMENT_CONFIG.region)||(this._parentBorderContainer.installConnections(),this._parentBorderContainer.hoverOverSplitter(this._PLACEMENT_CONFIG.region))},getScrollPane:function(){return this._outputScrollPane},getContentPane:function(){return this._contentPanel.domNode},canScroll:function(){return this._outputScrollPane.scrollHeight>this._outputScrollPane.clientHeight},replaceContent:function(e){i.place(e,this._outputScrollPane,"only"),this.contentChanged()},contentChanged:function(){},onShow:function(){},onHide:function(){},show:function(e){this._splitterPositionModel.getRightPanelProportion();return e?(n.set(this.getContentPane(),"opacity","0"),this._splitterPositionController.addContentPanel(this._PLACEMENT_CONFIG,this._contentPanel),this.onShow(),t.fadeIn({node:this.getContentPane()}).play()):(n.set(this.getContentPane(),"opacity","1"),this._splitterPositionController.addContentPanel(this._PLACEMENT_CONFIG,this._contentPanel),this.onShow(),[])},hide:function(e){if(e){var r=this;return this._fadeAnim=t.fadeOut({node:this.getContentPane()}).play(),o(this._fadeAnim,"End",(function(){i.empty(r._outputScrollPane)})),this._parentBorderContainer.removeChild(this._contentPanel),this.onHide(),this._fadeAnim}return n.set(this.getContentPane(),"opacity","0"),i.empty(this._outputScrollPane),this._parentBorderContainer.removeChild(this._contentPanel),this.onHide(),[]},destroy:function(){a.assert(this._parentBorderContainer,"BorderContainer should have been constructed"),this._parentBorderContainer.uninstallConnections(),this._contentPanel&&this._contentPanel.content.parentElement&&this._parentBorderContainer.removeChild(this._contentPanel),i.destroy(this._outputScrollPane),this._contentPanel&&this._contentPanel.destroy(),this._contentPanel=null,this.inherited(arguments)},_setDataTestId:function(e,t){e.setAttribute("data-testid",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(208),i(210),i(213),i(257)],o=i.dj.d(n,(function(e,t,i,n,o){return{_MIN_RIGHT_WIDTH:50,installConnections:function(){this._aspectHandles.push(t.after(this,"_setupChild",e.hitch(this,this._setupSplitterLayout))),this._aspectHandles.push(t.before(this,"_beginSplitterDrag",e.hitch(this,this._makeSplitterVisible))),this._aspectHandles.push(t.before(this,"_endSplitterDrag",e.hitch(this,this._updateAfterSplitterDrag))),this._aspectHandles.push(t.after(this,"setFreeDimension",e.hitch(this,this.cache))),this._aspectHandles.push(t.after(this,"addChild",e.hitch(this,this._updateAfterChildAdded),!0))},_updateAfterChildAdded:function(e){var t=e.region;this._initializedRegions[t]||(this._cacheIfRegionsExist(),this._initializedRegions[t]=!0)},uninstallConnections:function(){this._aspectHandles.forEach((function(e){e.remove()}))},setup:function(t){this._aspectHandles=[],this._initializedRegions={},e.mixin(t,this),i.add(t.domNode,"borderContainerWithSplitter")},hoverOverSplitter:function(e){this._splitterToMakeInvisible=e},_setupSplitterLayout:function(){this.splitter=this._borderInfo[this._splitterToMakeInvisible]},_makeSplitterVisible:function(e,t){(o.isLeft(t)||o.isRight(t))&&i.add(this.splitter.splitterNode,"visibleSplitter")},_updateAfterSplitterDrag:function(){this._makeSplitterInvisible(),this._cacheIfRegionsExist()},_makeSplitterInvisible:function(){i.remove(this.splitter.splitterNode,"visibleSplitter")},cache:function(){var e=this.getChildInRegion("center"),t=this.getChildInRegion("right");e&&(this._centerWidth=n.get(e.domNode,"width")),t&&(this._rightWidth=n.get(t.domNode,"width"))},_cacheIfRegionsExist:function(){var e=this.getChildInRegion("center"),t=this.getChildInRegion("right");if(e&&t){var i=n.get(e.domNode,"width"),o=n.get(t.domNode,"width");i&&o&&this.cache()}},getDerivedRightProportion:function(){var e=this.getChildInRegion("left"),t=e?n.get(e.domNode,"width"):0,i=this._centerWidth,o=this._rightWidth,r=t+i+o;return o<this._MIN_RIGHT_WIDTH&&(o=this._MIN_RIGHT_WIDTH),o/r}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4935)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.view.suggestionsnotifier"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(243),i(209),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){const s=window.PointerEvent?"pointerdown":"mousedown";return e(r,{constructor:function(e){this._suggestionsNotifier=e},createContextMenuButton:function(e,r){const l=i.create("div",{class:"eoOutputButtonsContainer doNotExport"},e,"first"),c=new n({iconAlignment:"top",horizontalAlignment:"center",icon:"eoOutputKebapMenuIcon"});let d=!1,u=!0;c.placeAt(l);const h=c.on(s,(function(e){if(0===e.x&&0===e.y){let t=c.domNode.getBoundingClientRect();e={x:t.x,y:t.y+t.height}}e.stopPropagation(),e.preventDefault(),c.emit("contextmenu",e)}));return l.startup=()=>{c.startup()},l.permanentlyDisable=()=>{d=!0,l.setEnabled(!1)},l.setEnabled=e=>{!d&&e?(u=!0,t.remove(l,"eoKebabIconHidden")):(u=!1,t.add(l,"eoKebabIconHidden"),l.hide())},l.destroy=()=>{this._suggestionsNotifier.hide(),c.destroy(),h.remove()},l.show=()=>{u?(t.add(l,"eoKebabIconVisible"),window.setTimeout(()=>{this._suggestionsNotifier.show(c)})):l.hide()},l.hide=()=>{t.remove(l,"eoKebabIconVisible"),this._suggestionsNotifier.hide()},r?(a.after(r,"onOpen",()=>{t.add(l,"eoKebabIconVisible"),this._suggestionsNotifier.hide()}),a.after(r,"onClose",()=>{t.remove(l,"eoKebabIconVisible")}),l):(o.error("contextMenu must be defined"),l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4937)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.datatip","rtc.embeddedoutputs.view.alignmentmanager","rtc.embeddedoutputs.view.suggestionsnotifiersetting","rtc.focusservice","rtc.view","rtc.actionservice","rtc.keyhandler"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(4938)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i,n,o,r,a){this._dataTip=e,this._alignmentManager=t,this._focusService=n,this._suggestionsNotifierSetting=i,this._actionService=r,this._keyHandler=a,this._rtcView=o,this._notifier=null,this._notificationAlreadyShown=!1},_createSuggestionsNotifier:function(){this._notifier=new i(this._acceptCallback.bind(this),this._dataTip,this._focusService,this._rtcView,this._alignmentManager,this._actionService,this._keyHandler),this.own(this._notifier)},_acceptCallback:function(e){this._suggestionsNotifierSetting.setValue(!e),this._notificationAlreadyShown=!0},show:function(e){this._notificationAlreadyShown||!1===this._suggestionsNotifierSetting.getValue()||(this._notifier||this._createSuggestionsNotifier(),this._notifier.show(e))},hide:function(){this._notifier&&this._notifier.hide()},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(277),i(30),i(203),i(210),i(223),i(206),i(236),i(243),i(308),i(269),i(1708),i(377),i(208),i(437),i(373),i(1131),i(4939)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return r([t,e,i],{templateString:b,_SUGGESTIONS_NOTIFIER_ID:"eoSuggestionsNotifier",_SUGGESTIONS_NOTIFIER_CLS:"eoSuggestionsNotifier",_TITLE:"eoSuggestionsNotifierTitle",_TEXT:"eoSuggestionsNotifierText",_DONT_SHOW_AGAIN:"eoSuggestionsNotifierCheckBox",_OK_BUTTON:"eoSuggestionsNotifierOkButton",_ORIENTENTATION:["before-centered"],_DOCLINK_TARGET:'"matlab:helpview symbolic InteractiveContextMenusInSymbolicMathToolboxExample"',constructor:function(e,t,i,n,o,r,a){this._acceptCallBack=e,this._dataTip=t,this._focusService=i,this._rtcView=n,this._actionService=r,this._keyHandler=a,this._dontShowAgain=!1,this.own(g.after(this._keyHandler,"onBlur",this._handleBlur.bind(this),!0)),this.own(g.after(this._rtcView,"onViewUpdated",this._handleOnViewUpdated.bind(this),!0)),this.own(g.after(o,"updateAlignment",this._hideIfOutsideView.bind(this)))},postCreate:function(){this.inherited(arguments),this._suggestionsNotifierWidget=new o({content:this,"data-test-id":this._SUGGESTIONS_NOTIFIER_ID,class:[this._SUGGESTIONS_NOTIFIER_CLS,m.TOOLTIP_CLASS,m.TOOLTIP_DIALOG_CLASS],closeOnEscape:!0,resizable:!1}),n.moveOffScreen(this._suggestionsNotifierWidget),this._createContent(),this._suggestionsNotifierWidget.startup();const e=[{id:"rtc.suggestions.escape",enabled:!0,key:"escape",callback:()=>{this.hide()}}];this._actionService.loadActions(e)},_createContent:function(){const e=this._suggestionsNotifierWidget.domNode;e.getElementsByClassName(this._TITLE)[0].textContent=v.suggestionsPopupTitle;let t=e.getElementsByClassName(this._TEXT)[0];const i=v.suggestionsPopupLinkText,n="<a href="+this._DOCLINK_TARGET+">"+i+"</a>";t.innerHTML=c.substitute(v.suggestionsPopupText,[n]);let o=e.getElementsByClassName(this._DONT_SHOW_AGAIN)[0];this._dontShowAgainCheckBox=new u({text:v.suggestionsPopupDontShow,checked:!1}),this._dontShowAgainCheckBox.on("change",e=>{this._dontShowAgain=e.mwEventData.newValue}),o.appendChild(this._dontShowAgainCheckBox.domNode),this._dontShowAgainCheckBox.startup();let r=e.getElementsByClassName(this._OK_BUTTON)[0];this._okButton=new d({text:v.suggestionsPopupOK,checked:!1}),this._okButton.on("click",e=>{this._onOK()}),r.appendChild(this._okButton.domNode),this._okButton.startup()},_handleOnViewUpdated:function(e){_.hasVerticalScrollEvent(e)&&this._hideIfOutsideView()},_hideIfOutsideView:function(){const e=this._suggestionsNotifierWidget.domNode.getBoundingClientRect();if(0===e.height)return;const t=this._rtcView.getDomtarget().getBoundingClientRect();(e.top+e.height/2<t.top||e.bottom-e.height/2>t.bottom)&&this.hide()},_handleBlur:function(e){this._insideNotifierPopup(e.relatedTarget)||this.hide()},_insideNotifierPopup:function(e){return!(!e||!a.contains(e,this._SUGGESTIONS_NOTIFIER_CLS))||!(!e||"BODY"===e.tagName)&&this._insideNotifierPopup(e.parentNode)},show:function(e){n.open({popup:this._suggestionsNotifierWidget,around:e.domNode,orient:this._ORIENTENTATION}),this._focusService.setFocus(),this._dataTipEnabled=this._dataTip.setEnabled(!1)},hide:function(){this._dataTip.setEnabled(this._dataTipEnabled),n.close(this._suggestionsNotifierWidget)},_onOK:function(){this._acceptCallBack(this._dontShowAgain),this.hide(),this._focusService.setFocus()},destroy:function(){this.inherited(arguments),this._suggestionsNotifierWidget.destroy()}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="eoSuggestionsNotifier" data-dojo-attach-point ="eoSuggestionsNotifierContentNode">\n <h1 class="eoSuggestionsNotifierTitle"></h1>\n <div class="eoSuggestionsNotifierContent">\n \t<div class="eoSuggestionsNotifierText"></div>\n\t <table class="eoSuggestionsNotifierFooterTable">\n\t <tr class="eoSuggestionsNotifierFooterRow">\n\t <td class="eoSuggestionsNotifierCheckBox"></td>\n\t <td class="eoSuggestionsNotifierOkButton"></td>\n\t </tr>\n\t </table>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(205),i(4941)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{_SETTING_ID:"matlab.liveeditor.SuggestionsNotifierSetting",constructor:function(e){this._settingsService=e,this.own(this._settingsService.listenToSettingChange(this._SETTING_ID,this._settingChanged.bind(this))),this._settingChanged()},setValue:function(e){this._value=e,this._settingsService.setSetting(this._SETTING_ID,e)},getValue:function(){return this._value},_settingChanged:function(){this._settingsService.getSetting(this._SETTING_ID).then(e=>{this._value=e},()=>{this._value=!0})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4943)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.messagebar.rightmargincontainer","rtc.actionservice","rtc.id","embeddedoutputsviews"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(228),i(211),i(206),i(446),i(207),i(719),i(528),i(437)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(s,{_TOGGLE_PANEL:"toggleButtonPanel",_TOGGLE_PANEL_PRIORITY:1,_BUTTON_GROUP:"embeddedOutputsViewToggleGroup",_DEFAULT_VIEW_STATE:c.ON_RIGHT_VIEW_STATE,constructor:function(e,t,i,n){this._rightMarginContainer=e,this._actionDataService=t,this._editorId=i,this._embeddedOutputsViews=n,this._isEnabled=!1,this._handles=[],this._setListeners()},enable:function(e){this._viewState=e||this._DEFAULT_VIEW_STATE,this._setListeners(),this._isEnabled||(this._setupButtons(),this._isEnabled=!0)},_setListeners:function(){this._handles.length>0||this._handles.push(i.after(this._actionDataService,"onActionChange",t.hitch(this,"_handleActionChange"),!0))},_handleActionChange:function(e){"selected"===e.key&&e.newValue&&this._highlightButtonBasedOnAction(e.id)},_highlightButtonBasedOnAction:function(e){this._embeddedOutputsViews.forEach((function(t){var i=t.getName(),n=this._viewButtons[i];e===t.ACTION_ID&&this._highlightViewButton(i,n)}),this)},_setupButtons:function(){this._addButtonPanel(),this._embeddedOutputsViews.forEach((function(e){var i=e.getName(),n=this._viewButtons[i];this.own(n.on("change",t.hitch(this,"_switchToView",i,e.ACTION_ID)))}),this)},_addButtonPanel:function(){this._createButtonPanel(),this._setupTooltips(),this._initializeButtonPanelPosition()},_createButtonPanel:function(){var e=o.create("div",{className:this._TOGGLE_PANEL});this._viewButtons=[],this._embeddedOutputsViews.forEach((function(t){var i=this._createButton(t.BUTTON_CSS_CLASS,this._viewState===t.getName());this._viewButtons[t.getName()]=i,n.set(i.domNode,"data-testid",t.DATATEST_ID),i.placeAt(e),i.startup()}),this),this._buttonPanel=e},_createButton:function(e,t){return new a({icon:"toggleButton "+e,checked:t,buttonGroup:this._BUTTON_GROUP+this._editorId})},_initializeButtonPanelPosition:function(){this._rightMarginContainer.addLayer(this._buttonPanel,this._TOGGLE_PANEL_PRIORITY)},_setupTooltips:function(){this._viewTooltips=[],this._embeddedOutputsViews.forEach((function(e){var t=e.getName();this._viewTooltips[t]=new l({targetNode:this._viewButtons[t].domNode,label:d.createUnfocusableTooltipTextHTML(e.TOOLTIP_MESSAGE)})}),this)},_switchToView:function(e,t,i){if(this._viewState!==e){var n=i.mwEventData.newValue;this._actionDataService.updateAction(t,{selected:n})}},_highlightViewButton:function(e,t){this._viewState=e,t.set("checked",!0)},_destroyTooltips:function(){this._embeddedOutputsViews.forEach((function(e){this._viewTooltips[e.getName()].destroy()}),this)},_removeListeners:function(){this._handles.forEach((function(e){e.remove()})),this._handles=[]},_removeButtonPanel:function(){this._rightMarginContainer.removeLayer(this._buttonPanel)},_destroyButtonPanel:function(){o.destroy(this._buttonPanel)},disable:function(){this._removeButtonPanel(),this._destroyTooltips(),this._removeListeners(),this._isEnabled=!1},destroy:function(){this.inherited(arguments),this._destroyButtonPanel(),this._destroyTooltips(),this._removeListeners(),this._isEnabled=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4945)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._viewNameToViewMap={}},addViewToMap:function(e){this._viewNameToViewMap[e.getName()]=e},getViewFromViewName:function(e){return this._viewNameToViewMap[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4947)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.cursor","rtc.internaldocument","rtc.embeddedoutputs.model","rtc.embeddedoutputs.syntaxerrors","rtc.focusservice","rtc.view.decoration.layerviewmodel","rtc.view.hidden.hiddennodemodel","rtc.eventhandler","rtc.domnode","rtc.cursorcontroller","rtc.view.hide.code.service","rtc.embeddedoutputs.view.hidecodeswitch","rtc.settings.service","rtc.scrollpane"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(253),i(477),i(527),i(2060),i(528),i(2064),i(425)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(r,{_VIEW_STATE_NAME:a.HIDE_CODE_VIEW_STATE,ACTION_ID:"rtc_hide_code_view",ACTION_ID_NO_ANIMATION:"rtc_hide_code_view_no_animation",BUTTON_CSS_CLASS:"hidecode",DATATEST_ID:"hideCodeButton",TOOLTIP_MESSAGE:'<div data-testid="hideCodeTooltip">'+i.showHideCode+"</div>",NODES_NOT_DISABLED:[l],_DEFAULT_VIEW_SETTING_PATH:"matlab.editor.displaysettings.DefaultView",_DEFAULT_FALLBACK_VIEW:a.ON_RIGHT_VIEW_STATE,_VIEW_REQUIRES_RELEASE:"R2019a",_RESPONSIVENESS_SETTING_ID:"matlab.editor.layout.Responsive",_RESPONSIVENESS_CLASS:"responsiveView",constructor:function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){this._rtcView=e,this._internalDocument=i,this._focusService=r,this._layerViewModel=a,this._hiddenNodeModel=s,this._eventHandler=l,this._domNode=c,this._cursorController=d,this._hideAllCodeService=u,this._hideCodeViewSwitch=h,this._settingsService=p,this._hideCodeViewSwitch.registerGetFallbackViewCallback(this.getFallbackView.bind(this)),this._scrollPane=f,this._responsivenessEnabled=!1,this._settingsService.getSetting(this._RESPONSIVENESS_SETTING_ID).then(function(e){this._responsivenessEnabled=e}.bind(this),(function(e){})),this.own(this._settingsService.listenToSettingChange(this._RESPONSIVENESS_SETTING_ID,this._handleEnableSettingChange.bind(this))),this._enabled=!1},_handleEnableSettingChange:function(e){this._responsivenessEnabled=e},getName:function(){return this._VIEW_STATE_NAME},shouldUpdateNodeGroupingName:function(){return this._enabled&&this._responsivenessEnabled},enable:function(){this._enabled||(this.inherited(arguments),this._rtcView.registerLayouter(new s(this._layerViewModel,this._hiddenNodeModel,this,this._rtcView)),this._cursorController.clearSelection(),this._responsivenessEnabled&&t.replace(this._scrollPane,this._RESPONSIVENESS_CLASS,[]),this._hideAllCodeService.hide(this.NODES_NOT_DISABLED),this._hideCodeViewSwitch.enable(),this._onlyOutputsVisible()&&(this._eventHandler.disableGesture(),this._focusService.setShowHideCursor(!1),this._addDetector()))},disable:function(){this._enabled&&(this.inherited(arguments),this._removeDetector(),this._focusService.setShowHideCursor(!0),this._eventHandler.enableGesture(),t.replace(this._scrollPane,[],this._RESPONSIVENESS_CLASS),this._hideCodeViewSwitch.disable(),this._hideAllCodeService.show(),this._cursor.show())},_onlyOutputsVisible:function(){for(var e=0;e<this._internalDocument.getMaxLineNumber();e++){var t=this._internalDocument.getLineNode(e);if(!this._hiddenNodeModel.isHidden(t))for(var i=0;i<t.children.length;i++)if(!this._hiddenNodeModel.isHidden(t.children[i]))return!1}return!0},_addDetector:function(){this._detector=new n(this._domNode,[o.tapmove({options:{numTaps:0},callbacks:{began:this._handleDown.bind(this)}})]),this.own(this._detector)},_removeDetector:function(){this._detector&&(this._detector.destroy(),this._detector=null)},_handleDown:function(e){var t=e.srcEvent;t.stopPropagation(),t.preventDefault()},getFallbackView:function(){return this._settingsService.get(this._DEFAULT_VIEW_SETTING_PATH,this._DEFAULT_FALLBACK_VIEW)},getRequiresRelease:function(){return this._VIEW_REQUIRES_RELEASE},isEnableable:function(){return!this._hideCodeViewSwitch.shouldSwitchToFallbackView()},destroy:function(){this.inherited(arguments),this._removeDetector()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4949)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.view.hidecode"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2066)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._hideCodeView=e},canUpdateCode:function(){if(this._hideCodeView.isEnabled())return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4951)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursor","rtc.view.hidden.hiddennodemodel","debug.documentdebugservices","rtc.embeddedoutputs.viewnametoviewmap","rtc.actionservice","rtc.hidecode.switchview.rules"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(249),i(260),i(234),i(4952)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(i,{constructor:function(e,t,i,n,o,r,a){this._internalDocument=e,this._cursor=t,this._hiddenNodeModel=i,this._documentDebugServices=n,this._viewNameToViewMap=o,this._actionService=r,this._setupRules(a),this._getFallbackView=null,this._lastNumberOfLineNodes=0},_setupRules:function(e){e&&0!==e.length?this._hideCodeSwitchViewRules=e.sort((function(e,t){return t.priority()-e.priority()})):this._hideCodeSwitchViewRules=[]},enable:function(){this._handles=[],this._handles.push(t.after(this._documentDebugServices,"onStackChanged",this._handleStackChanged.bind(this))),this._handles.push(t.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0)),this._handles.push(t.after(this._cursor,"onUpdate",this._handleCursorUpdate.bind(this))),this._handles.forEach((function(e){this.own(e)}),this),this._cacheNumberOfLineNodes()},disable:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[],this._lastNumberOfLineNodes=0},_handleStackChanged:function(){this.shouldSwitchToFallbackView()&&this._switchToFallbackView()},_switchToFallbackView:function(){var e=this._getFallbackView(),t=this._viewNameToViewMap.getViewFromViewName(e);this._actionService.updateAction(t.ACTION_ID,{selected:!0})},_handleDocumentChanged:function(e){a.doesEventRequireCodeView(this._internalDocument,e,this._hideCodeSwitchViewRules,this._lastNumberOfLineNodes)&&this._switchToFallbackView(),this._cacheNumberOfLineNodes()},_handleCursorUpdate:function(){a.doesCursorChangeOnLineRequireCodeView(this._cursor,this._hiddenNodeModel,this._hideCodeSwitchViewRules)&&this._switchToFallbackView()},shouldSwitchToFallbackView:function(){return!(!this._documentDebugServices.getExecutionPoint()&&!this._documentDebugServices.getActiveWorkspace())},_cacheNumberOfLineNodes:function(){this._lastNumberOfLineNodes=r.getNumberOfCodeLineNodes(this._internalDocument.root)},registerGetFallbackViewCallback:function(e){this._getFallbackView=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(234),i(249)],o=i.dj.d(n,(function(e,t){return{doesEventRequireCodeView:function(e,t,i,n){var o=this._getChangedLines(e,t);return!i.some((function(e){if(e.preventSwitchingViewForDocChange(o))return!0}))&&(!!this._isInsertOnCodeLine(e,t)||(!(!t[0].isUndoRedo||!this._hasNumberOfLineNodesChanged(e,n))||!!i.some((function(e){if(e.requireSwitchingViewForDocChange(o))return!0}))))},_hasNumberOfLineNodesChanged:function(t,i){return e.getNumberOfCodeLineNodes(t.root)!==i},doesCursorChangeOnLineRequireCodeView:function(e,t,i){return!!t.isHidden(e.getNode())&&!i.some((function(e){if(e.preventSwitchingViewForCursorChange())return!0}))},_isInsertOnCodeLine:function(i,n){return n.some((function(n){if(n.type===t.INSERT_TEXT)for(var o=n.startLine;o<=n.endLine;o++)if(e.isCodeLine(i,o,!0))return!0}),this)},_getChangedLines:function(e,t){var i={};return t.forEach((function(e){for(var t=e.startLine;t<=e.endLine;t++)i[t]=!0})),(i=Object.keys(i).sort()).map((function(t){return e.getLineNode(Number(t))}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4954)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.cursor","rtc.internaldocument","rtc.embeddedoutputs.model","rtc.embeddedoutputs.syntaxerrors","rtc.focusservice","rtc.view.decoration.layerviewmodel","rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(253),i(234),i(2060),i(528),i(2063),i(2064)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{_VIEW_STATE_NAME:o.INLINE_VIEW_STATE,ACTION_ID:"rtc_inline_view",ACTION_ID_NO_ANIMATION:"rtc_inline_view_no_animation",BUTTON_CSS_CLASS:"inline",DATATEST_ID:"outputsInlineButton",TOOLTIP_MESSAGE:'<div data-testid="inlineTooltip">'+t.showInline+"</div>",constructor:function(e,t,i,n,o,r,s,l){this._layerViewModel=s,this._hiddenNodeModel=l,this._view.registerLayouter(new a(this._layerViewModel,this._hiddenNodeModel,this,this._view)),this._enabled=!1},getName:function(){return this._VIEW_STATE_NAME},enable:function(e){var t=this.inherited(arguments);return this._view.registerLayouter(new a(this._layerViewModel,this._hiddenNodeModel,this,this._view)),t},disable:function(){this.inherited(arguments)},disableView:function(){this.disable()},getFallbackView:function(){return o.INLINE_VIEW_STATE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4956)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){this._scrollTop=0,this._scrollPaneScrollHeight=0,this._scrollPaneOffsetHeight=0,this._scrollPaneClientHeight=0,this._topPadOffsetTop=0,this._topPadHeight=0,this._bottomPadHeight=0,this._outputViewInfoMap=new Map},recordViewInfo:function(e,t,i,n){this._scrollPaneOffsetHeight=t.offsetHeight,this._scrollPaneClientHeight=t.clientHeight,this.setTopPadHeight(i.getBoundingClientRect().height),this._setTopPadOffsetTop(i.offsetTop),this.setBottomPadHeight(n.getBoundingClientRect().height),e.forEach((function(e){var t=parseFloat(e.style.marginTop)||0,i=parseFloat(e.style.marginBottom)||0,n=e.getBoundingClientRect().height,o={outputDiv:e,marginTop:t,marginBottom:i,_height:n};this._outputViewInfoMap.set(e,o),this._updateScrollHeight(0,t+i+n),this._validateMargins(o)}),this),this.setScrollTop(t.scrollTop)},reset:function(){this._scrollTop=0,this._scrollPaneScrollHeight=0,this._scrollPaneOffsetHeight=0,this._scrollPaneClientHeight=0,this._topPadOffsetTop=0,this._topPadHeight=0,this._bottomPadHeight=0,this._outputViewInfoMap.clear()},setProperty:function(e,t,i){var n=this.getOutputViewInfo(e),o=n[t];this._updateScrollHeight(o,i),n[t]=i,this._validateMargins(n)},addToProperty:function(e,t,i){var n=this.getOutputViewInfo(e),o=n[t];this._updateScrollHeight(o,o+i),n[t]+=i,this._validateMargins(n)},setTopPadHeight:function(e){this._updateScrollHeight(this._topPadHeight,e),this._topPadHeight=e},setBottomPadHeight:function(e){this._updateScrollHeight(this._bottomPadHeight,e),this._bottomPadHeight=e},setScrollTop:function(e){this._scrollTop=this._limitScrollTop(e)},getOutputViewInfo:function(e){return this._outputViewInfoMap.get(e)},getOutputViewInfoArray:function(e){return e.map((function(e){return this.getOutputViewInfo(e)}),this)},getScrollTop:function(){return this._scrollTop=this._limitScrollTop(this._scrollTop),this._scrollTop},getScrollPaneOffsetHeight:function(){return this._scrollPaneOffsetHeight},getTopPadHeight:function(){return this._topPadHeight},getBottomPadHeight:function(){return this._bottomPadHeight},getOffsetTop:function(e){return this.getOffsets([e])[0].offsetTop},getOffsets:function(e){for(var t=[],i=this._topPadOffsetTop+this._topPadHeight,n=this._outputViewInfoMap.entries(),o=n.next(),r=0;!o.done;){var a=o.value[0],s=o.value[1],l=i+=s.marginTop,c=i+=s._height;i+=s.marginBottom,a===e[r]&&(t.push({offsetTop:Math.round(l),offsetBottom:Math.round(c)}),r++),o=n.next()}return t},forEachViewInfo:function(e){this._outputViewInfoMap.forEach(e)},_setTopPadOffsetTop:function(e){this._updateScrollHeight(this._topPadOffsetTop,e),this._topPadOffsetTop=e},_validateMargins:function(e){e.marginTop<0&&(this._updateScrollHeight(e.marginTop,0),e.marginTop=0,t.error("AlignmentCache: Tried to assign a negative marginTop. Setting to 0.")),e.marginBottom<0&&(this._updateScrollHeight(e.marginBottom,0),e.marginBottom=0,t.error("AlignmentCache: Tried to assign a negative marginBottom. Setting to 0."))},_updateScrollHeight:function(e,t){this._scrollPaneScrollHeight=this._scrollPaneScrollHeight-e+t},_limitScrollTop:function(e){if(this._scrollPaneScrollHeight<=this._scrollPaneClientHeight)return 0;var t=this._scrollPaneScrollHeight-this._scrollPaneClientHeight;return Math.floor(Math.min(e,t))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4958)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.embeddedoutputs.view.viewmodel","rtc.cursorcontroller","rtc.cursor.view","rtc.embeddedoutputs.view.rightpanel","rtc.actionservice","rtc.internaldocument","rtc.embeddedoutputs.contextmenu","rtc.nodes.noderangeretriever","rtc.embeddedoutputs.view.alignmentrules","rtc.embeddedoutputs.view.alignmentcache"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u){return new i(e,t,n,o,r,a,s,l,c,d,u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(211),i(213),i(253),i(206),i(248),i(207),i(716),i(333),i(294),i(373),i(334),i(229),i(4959)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m=1,_=-1;return e(l,{_TOP_BOUND:0,_BOTTOM_BOUND:100,_ACTION_ID:"rtc_alignment_toggle",_CONTEXT_MENU_GROUP:u.ALIGN,_LARGE_SCROLL_TOP:999999999,_ENABLE_DEBUG_HELPERS:!1,constructor:function(e,n,o,l,d,u,h,p,f,g,m){this._rtcView=e,this._viewModel=n,this._cursorView=l,this._outputScrollPane=d.getScrollPane(),this._actionService=u,this._internalDocument=h,this._contextMenuContributor=p,this._cursorController=o,this._cursor=this._cursorController.getCursors()[0],this._nodeRangeRetriever=f,this._alignmentCache=m,this._allowed=!1,this._userEnabledState=!0,this._enablement={alignOnLayout:!0,alignOnViewChange:!0,alignOnScroll:!0,autoScroll:!0},this._topPad=null,this._bottomPad=null,this._initializePadding(),this._lastAlignedPercentage=0,this._alignStack=[],this._scrollPercent=0,this._updateScrollData(),this._resetEquation(),this._overScrollListener=a(this._rtcView.getDomtarget(),c.MOUSEWHEEL,t.hitch(this,"_scroll"),!0),this._lastCursorLine=-1,this.own(i.after(this._cursorView,"onChange",t.hitch(this,"_updateOnLineChange"))),this.own(a(this._rtcView.getDomtarget(),s.release,t.hitch(this,"_updateOnMouseUp"))),this.own(i.after(this._rtcView,"onViewUpdated",t.hitch(this,"_updateOnViewChange"),!0));var _=[{id:this._ACTION_ID,enabled:!0,text:r.disableAlignment,callback:t.hitch(this,"_toggle")}];this._actionService.loadActions(_),this._addActionsToContextMenu(),this._initializeAlignmentRules(g)},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,this._ACTION_ID)},_initializeAlignmentRules:function(e){e=e||[],this._alignmentRules=e.sort((function(e,t){return t.priority()-e.priority()}))},_updateScrollData:function(){var e=this._rtcView.getDomTargetPosition();this._scrollPercent=100*e.scrollTop/(e.scrollHeight-e.clientHeight)||0},_toggle:function(){return this._userEnabledState=!this._userEnabledState,this._updateEnabledState(),!0},_updateEnabledState:function(){var e;this._userEnabledState?(e=r.disableAlignment,this.layout()):(e=r.enableAlignment,g.removeAllAlignment(this._viewModel.getOutputDivs(),this._getAlignmentData())),this._actionService.updateAction(this._ACTION_ID,{text:e})},destroy:function(){this._actionService.removeAction(this._ACTION_ID),this._contextMenuContributor.removeActionFromMap(this._ACTION_ID),this._overScrollListener.remove(),this._overScrollListener=null,this._equation=null,this._alignStack=[],this.inherited(arguments)},disable:function(){this._allowed=!1},enable:function(){this._allowed=!0},isEnabled:function(){return this._allowed&&this._userEnabledState},setEnablement:function(e){t.mixin(this._enablement,e)},markAsAligned:function(){this._updateInternalState()},_scroll:function(e){if(!this._dontAlign()&&this._enablement.alignOnScroll&&c.isVerticalScroll(e)&&!c.isBrowserZoomScrollEvent(e)){var t=c.getVerticalScrollDistance(e),i=0!==this._alignStack.length,n=this._rtcView.getDomTargetPosition(),o=100===this._scrollPercent||n.clientHeight===n.scrollHeight,r=o&&t<0,a=0===this._scrollPercent&&t>0,s=o&&t>0,l=0===this._scrollPercent&&t<0,d=r||a;if(i||d){var u,h=!0;i&&(l||s)&&!d?h=u=this._reverseOverscroll():u=this._overscroll(t,r,a),h&&(this._stopScrollEvent(e),this._scrollHorizontal(e)),u&&(this._lastAlignedPercentage=this._alignStack[this._alignStack.length-1],this.updateAlignment(this._rtcView.getPositionAtPercent(this._lastAlignedPercentage)))}}},_reverseOverscroll:function(){return this._alignStack.pop(),0!==this._alignStack.length},_overscroll:function(e,t,i){var n,o=this._rtcView.getDomTargetPosition(),r=-100*e/(o.scrollHeight-o.clientHeight),a=Math.min(Math.max(this._lastAlignedPercentage+r,0),100);if(t){if(!(n=this._getNextUnalignedBelow(this._lastAlignedPercentage)))return!1;n=Math.max(a,n)}if(i){if(!(n=this._getNextUnalignedAbove(this._lastAlignedPercentage)))return!1;n=Math.min(a,n)}return this._alignStack[this._alignStack.length-1]!==n&&(0===this._alignStack.length&&this._alignStack.push(this._lastAlignedPercentage),this._alignStack.push(n),!0)},_stopScrollEvent:function(e){e.stopPropagation(),e.preventDefault()},_scrollHorizontal:function(e){var t=c.getHorizontalScrollDistance(e);0!==t&&this._rtcView.setScrollLeft(this._rtcView.getDomTargetPosition().scrollLeft-t)},_getNextUnalignedAbove:function(e){for(var t=this._rtcView.getPositionAtPercent(e).getNode().rootContainer().previousSibling();t;){if(!this._nodeIsAligned(t))return this._rtcView.getNodePercentScrolled(t,!0);t=t.previousSibling()}},_getNextUnalignedBelow:function(e){for(var t=this._rtcView.getPositionAtPercent(e).getNode().rootContainer().nextSibling();t;){if(!this._nodeIsAligned(t))return this._rtcView.getNodePercentScrolled(t,!0);t=t.nextSibling()}},_nodeIsAligned:function(e){var t=this._getNodeToAlignForNode(e),i=this._getOutputDivsForNode(t);if(0===i.length)return!0;var n=this._getAlignmentData().rtcDomTargetData.scrollTop,o=this._getAlignmentTargetRange(t,n);return g.areOutputsAligned(o,i,this._outputScrollPane,!0)},_resetEquation:function(){this._equation=g.generateLinearStepwiseFunction(this._scrollPercent,this._lastAlignedPercentage,this._rtcView.getDomTargetPosition()),this._alignStack=[]},layoutFromScratch:function(){this._updateInternalState(),this.layout()},layout:function(){if(this._restorePadding(),this._hasOutputs()||(this._setTopPadHeight(0),this._setBottomPadHeight(0)),!this._dontAlign()&&this._enablement.alignOnLayout){var e=this._outputScrollPane.scrollTop;this.updateAlignment(this._rtcView.getPositionAtPercent(this._lastAlignedPercentage)),this._enablement.autoScroll||(this._outputScrollPane.scrollTop=e)}},_updateInternalState:function(){this._lastCursorLine=this._cursor.getLineColumn().line,this._updateScrollData(),this._lastAlignedPercentage=this._rtcView.getLinePercentScrolled(this._lastCursorLine,!0),this._resetEquation()},_updateOnLineChange:function(){var e=this._cursor.getLineColumn().line;if(this._lastCursorLine!==e&&(this._lastCursorLine=e,!this._dontAlign())){var t=this._cursor.getNode().rootContainer();this._getOutputsInfoForNode(t).hasOutputs&&(this._updateInternalState(),this.updateAlignment(this._cursor))}},_updateOnMouseUp:function(){this._dontAlign()||(this._updateInternalState(),this.updateAlignment(this._cursor))},_updateOnViewChange:function(e){if(this._updateScrollData(),!this._skipAlignmentOnViewChange(e)){var t,i=null;if(h.hasVerticalScrollEvent(e))this._lastAlignedPercentage=this._equation(this._scrollPercent),i=this._rtcView.getPositionAtPercent(this._lastAlignedPercentage);else this._cursor.isInVisualBounds(this._TOP_BOUND,this._BOTTOM_BOUND)?(i=this._cursor,t=this._rtcView.getLinePercentScrolled(this._cursor.getLineColumn().line,!0)):(i=this._rtcView.getPositionAtPercent(this._lastAlignedPercentage),t=this._lastAlignedPercentage),this._lastAlignedPercentage=t,this._resetEquation();var n=this._outputScrollPane.scrollTop;this.updateAlignment(i),this._enablement.autoScroll||(this._outputScrollPane.scrollTop=n)}},_skipAlignmentOnViewChange:function(e){return!(!this._dontAlign()&&this._enablement.alignOnViewChange)||!h.hasLayoutEvent(e)&&(!(!h.hasSizingEvent(e)||h.hasScrollHeightChange(e))||!h.hasVerticalEvents(e))},_dontAlign:function(){return!this.isEnabled()||!this._hasOutputs()},_hasOutputs:function(){var e=this._nodeRangeRetriever.getNodeRange();if(null===e)return this._viewModel.hasOutputs();var t=e.start,i=e.end;return null!==t.parent&&null!==i.parent&&this._viewModel.getOutputDivsForRange(t,i).length>0},_initializePadding:function(){this._topPad=n.create("div",{className:"outputTopPad"}),this._bottomPad=n.create("div",{className:"outputBottomPad"})},_restorePadding:function(){this._outputScrollPane.children[0]&&(n.place(this._topPad,this._outputScrollPane.children[0],"first"),n.place(this._bottomPad,this._outputScrollPane.children[0],"last"))},updateAlignment:function(e){var t=e.getLineColumn().line-1,i=this._getTargetWithOutputToAlign(t);if(i){var n,o=i[0],r=this._internalDocument.getLineNumber(i[0]);n=1===i.length?r:this._internalDocument.getLineNumber(i[i.length-1]);var a=g.getOutputs(r,n,this._getOutputDivsForNode(o),this._viewModel,this._outputScrollPane);a.outputsAbove=a.outputsAbove.reverse();var s=this._getAlignmentData(),l=s.rtcDomTargetData.scrollTop,c=this._getAlignmentTargetRange(o,l);this._ENABLE_DEBUG_HELPERS&&g.enableDebugHelper(this._applyAlignment.bind(this)),this._alignmentCache.recordViewInfo(this._viewModel.getOutputDivs(),s.outputScrollPane,s.topPad,s.bottomPad),g.clearMarginsUsingCache(a.comingledOutputs,this._alignmentCache),g.clearInnerMarginsUsingCache(a.currentOutputs,this._alignmentCache),g.alignCurrentTargetUsingCache(c,a,this._alignmentCache),this._updateAlignment(r,n,a),this._applyAlignment(),this._alignmentCache.reset(),this._ENABLE_DEBUG_HELPERS&&g.disableDebugHelper(),this.checkExtraWhiteSpace(),this.onAlign()}},_getTargetWithOutputToAlign:function(e){var t=this._getOnscreenNodesWithOutput(e);return t||(t=this._getClosestNodesWithOutputToLineNumber(e)),t},_getOnscreenNodesWithOutput:function(e){var t=this._rtcView.getFirstVisibleLineNumber()-1,i=this._rtcView.getLastVisibleLineNumber()-1;return this._getClosestNodesWithOutputToLineNumber(e,t,i)},_getClosestNodesWithOutputToLineNumber:function(e,t,i){var n,o=e,r=this._internalDocument.getLineNode(o),a=o,s=o,l=m;for(t=t||0,void 0===i&&(i=this._internalDocument.getMaxLineNumber()-1);r;){var c=this._getOutputsInfoForNode(r);if(n=c.associatedNodes,c.hasOutputs)break;n.length>1&&(r=l===m?n[n.length-1]:n[0],o=this._internalDocument.getLineNumber(r));var d=this._getNextIterationInfo(o,l,a,s,t,i);if(!d)return null;l=d.direction,a=d.currentAboveLine,s=d.currentBelowLine,o=d.currentLine,r=this._internalDocument.getLineNode(o)}return n},_getNextIterationInfo:function(e,t,i,n,o,r){var a=i-1>=o,s=n+1<=r;if(t===m&&a||t===_&&s)t*=-1;else if(!a&&!s)return null;return t===m?e=++n:t===_&&(e=--i),{currentLine:e,direction:t,currentAboveLine:i,currentBelowLine:n}},checkExtraWhiteSpace:function(){var e,t,i=this._outputScrollPane.scrollTop,n=i+this._outputScrollPane.clientHeight,o=this._bottomPad.clientHeight,r=this._bottomPad.offsetTop+o;r>n&&(e=r-n,t=Math.max(0,o-e),this._setBottomPadHeight(t));var a=this._topPad.clientHeight,s=this._topPad.offsetTop;if(s<i){e=i-s;var l=a-(t=Math.max(0,a-e));this._setTopPadHeight(t),this._outputScrollPane.scrollTop=i-l}},_setTopPadHeight:function(e){o.set(this._topPad,"height",e+"px")},_setBottomPadHeight:function(e){o.set(this._bottomPad,"height",e+"px")},onAlign:function(){},_updateAlignment:function(e,t,i){var n=this._alignmentCache.getScrollTop(),o=this._getAlignmentsAboveAndBelowCurrent(e,t),r=o.alignmentsAbove,a=o.alignmentsBelow,s=i.currentOutputs.concat(i.comingledOutputs,i.dontAlign);s=g.alignTargetsBelowUsingCache(a,i.outputsBelow,s,this._alignmentCache),g.alignTargetsAboveUsingCache(r,i.outputsAbove,s,this._alignmentCache),this._alignmentCache.setScrollTop(n)},_applyAlignment:function(){this._topPad.style.height=this._alignmentCache.getTopPadHeight()+"px",this._alignmentCache.forEachViewInfo(function(e,t){g.setOrClearMargin(t,"margin-top",e.marginTop),g.setOrClearMargin(t,"margin-bottom",e.marginBottom)}.bind(this)),this._bottomPad.style.height=this._alignmentCache.getBottomPadHeight()+"px";var e=this._alignmentCache.getScrollTop()===this._alignmentCache._scrollPaneScrollHeight-this._alignmentCache._scrollPaneClientHeight;this._outputScrollPane.scrollTop=this._alignmentCache.getScrollTop(),e&&(this._outputScrollPane.scrollTop=this._LARGE_SCROLL_TOP)},_getAlignmentsAboveAndBelowCurrent:function(e,t){var i=this._getAlignmentData().rtcDomTargetData.scrollTop,n=this._internalDocument.root.children,o=[],r=[];return n.forEach((function(n,a){var s=this._viewModel.getOutputDivsForNode(n);if(0!==s.length){var l=this._getNodeToAlignForNode(n),c={target:this._getAlignmentTargetRange(l,i),associatedOutputs:s};a<e?o.push(c):a>t&&r.push(c)}}),this),{alignmentsAbove:o,alignmentsBelow:r}},_getAlignmentData:function(){return{topPad:this._topPad,bottomPad:this._bottomPad,outputScrollPane:this._outputScrollPane,rtcDomTargetData:this._rtcView.getDomTargetPosition()}},_getAlignmentTargetRange:function(e,t){var i=this._rtcView.getNodeTopAndBottom(e,!0);return{top:i.top-t,bottom:i.bottom-t}},_getOutputsInfoForNode:function(e){var t=this._getNodesOfAssociatedRange(e),i=t.some((function(e){return this._viewModel.doesNodeHaveOutputs(e)}),this);return{associatedNodes:t,hasOutputs:i}},_getOutputDivsForNode:function(e){var t=this._getNodesOfAssociatedRange(e),i=t[0],n=t[t.length-1];return this._viewModel.getOutputDivsForRange(i,n)},_getNodesOfAssociatedRange:function(e){var t=this._getAssociatedRange(e);return t?d.paragraphNodesInRange(t):[e]},_getNodeToAlignForNode:function(e){var t=this._getAssociatedRange(e);return t?t.getStartPosition().getNode().rootContainer():e},_getAssociatedRange:function(e){var t=null;return this._alignmentRules.some((function(i){return!!(t=i.getAssociatedRange(e))})),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(213),i(771),i(4960),i(209),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{getOutputs:function(e,t,i,n,o){var a=this._getViewableOutputs(o),s=i.map((function(e){return a.indexOf(e)})).sort((function(e,t){return e-t})),l=a.slice(s[0],s[s.length-1]+1),c=l.filter((function(e){return i.indexOf(e)<0})),d=l.filter((function(e){return i.indexOf(e)>=0})),u=a.slice(0,s[0]),h=a.slice(s[s.length-1]+1);u=this._removeOutputsBelongingToLineNumber(u,e,n,this._isOnlyAbove),h=this._removeOutputsBelongingToLineNumber(h,t,n,this._isOnlyBelow);var p=d.concat(c,u,h);return{outputsAbove:u,outputsBelow:h,comingledOutputs:c,currentOutputs:d,dontAlign:r.differenceOfArrays(a,p)}},_removeOutputsBelongingToLineNumber:function(e,t,i,n){return e.filter((function(e){var o=i.getLineNumbersForOutput(e);return n(o,t)}),this)},_isOnlyAbove:function(e,t){return(e=e.sort((function(e,t){return e-t})))[e.length-1]<t},_isOnlyBelow:function(e,t){return(e=e.sort((function(e,t){return e-t})))[0]>t},_getViewableOutputs:function(t){var i=t.children[0].children;i=[].slice.call(i);var n=e.contains(i[0],"outputTopPad"),o=e.contains(i[i.length-1],"outputBottomPad");return n&&(i=i.slice(1)),o&&(i=i.slice(0,i.length-1)),i},clearMarginsUsingCache:function(e,t){e.forEach((function(e){t.setProperty(e,"marginTop",0),t.setProperty(e,"marginBottom",0)}))},clearInnerMarginsUsingCache:function(e,t){if(!(e.length<2)){t.setProperty(e[0],"marginBottom",0),t.setProperty(e[e.length-1],"marginTop",0);for(var i=1;i<e.length-1;i+=1)t.setProperty(e[i],"marginBottom",0),t.setProperty(e[i],"marginTop",0)}},generateLinearStepwiseFunction:function(e,t,i){var n=100/(i.clientHeight/i.scrollHeight*100||0),o=Math.min(t/e||0,n),r=t-o*e,a=Math.min((100-t)/(100-e)||0,n),s=t-a*e;return function(i){var n,l;if(i<e)n=o,l=r;else{if(!(i>e))return t;n=a,l=s}var c=n*i+l;return Math.max(Math.min(c,100),0)}},areOutputsAligned:function(e,t,i,n){var o=this._areOutputsAlignedToCode(e,t,i),r=!n||this._areOutputsOnScreen(t,i);return o&&r},removeAllAlignment:function(e,t){var i=t.topPad,n=t.bottomPad;i.style.height="0px",n.style.height="0px",e.forEach((function(e){e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom")}))},alignCurrentTargetUsingCache:function(e,t,i){var n=t.currentOutputs,o=t.outputsAbove,r=t.outputsBelow;if(this._moveMarginUpUsingCache(n,o,i),this._moveMarginDownUsingCache(n,r,i),this._needToAlignUsingCache(e,n,i)){var a=i.getScrollTop(),s=e.bottom-e.top,l=this._getTopAndBottomOfDivListUsingCache(n,i);if(l){var c=l.bottom,d=l.bottom-a;if(r.length)var u=r[r.length-1];if(u)var h=i.getOffsets([u])[0].offsetBottom;else h=c;var p=h-c,f=i.getScrollPaneOffsetHeight()-d,g=Math.max(0,f-p);i.setBottomPadHeight(g);var m,_=(l=this._getTopAndBottomOfDivListUsingCache(n,i)).top,v=(c=l.bottom)-_;if(v>=i.getScrollPaneOffsetHeight()){if(0===(m=a-_))return;return m>0?m=this._moveOutputDownUsingCache(m,n,o,r,!0,i):m<0&&(m=Math.abs(m),m=this._moveOutputUpUsingCache(m,n,o,r,!0,i)),void(m>0&&i.setScrollTop(_))}if(!(_<a&&(m=a-_,m=this._moveOutputDownUsingCache(m,n,o,r,!0,i),this._areOutputsAlignedToCodeUsingCache(e,n,i)))){var b,y,C,T=a+i.getScrollPaneOffsetHeight();if(!(c>T)||(m=c-T,m=this._moveOutputUpUsingCache(m,n,o,r,!0,i),!this._areOutputsAlignedToCodeUsingCache(e,n,i))){_=(l=this._getTopAndBottomOfDivListUsingCache(n,i)).top,v=(c=l.bottom)-_,a=i.getScrollTop();var E=e.top,S=_-a,w=e.bottom,I=c-a;if(E>S){if(m=s>v?E-S:w-I,m=this._moveOutputDownUsingCache(m,n,o,r,!1,i),this._areOutputsAlignedToCodeUsingCache(e,n,i))return;b=(b=a-m)>0?b:0,i.setScrollTop(b),(y=m-(a-b))>0&&(C=i.getTopPadHeight(),i.setTopPadHeight(y+C))}else{if(m=s<v?E-S:w-I,m=Math.abs(m),m=this._moveOutputUpUsingCache(m,n,o,r,!1,i),this._areOutputsAlignedToCodeUsingCache(e,n,i))return;(b=a+m)!==a&&i.setScrollTop(b),(y=b-(a=i.getScrollTop()))>0&&(C=i.getBottomPadHeight(),i.setBottomPadHeight(y+C),i.setScrollTop(b))}}}}}},enableDebugHelper:function(e){this._applyAlignment=e},disableDebugHelper:function(){this._applyAlignment=void 0},alignTargetsBelowUsingCache:function(e,t,i,n){for(var o,r,a,s=0;s<e.length;s++)if(r=e[s].target,a=(o=e[s].associatedOutputs).length,t=t.slice(a,t.length),0!==a)i=this._alignTargetBelowUsingCache(r,o,t,i,n);else if(0===t.length)break;return i},alignTargetsAboveUsingCache:function(e,t,i,n){for(var o,r,a,s=e.length-1;s>=0;s--)if(r=e[s].target,a=(o=e[s].associatedOutputs).length,t=t.slice(a,t.length),0!==a)i=this._alignTargetAboveUsingCache(r,o,t,i,n);else if(0===t.length)break},_alignTargetBelowUsingCache:function(e,t,i,n,o){if(this._moveMarginDownUsingCache(t,i,o),t.some((function(e){return n.indexOf(e)>=0})))return n=n.concat(t);if(this._areOutputsAlignedToCodeUsingCache(e,t,o))return n=n.concat(t);var a,s=this._getHeightOfOutputDivsUsingCache(t[0],t[t.length-1],o),l=e.top,c=e.bottom,d=c-l,u=o.getOffsetTop(t[0])-o.getScrollTop(),h=u+s,p=h-u,f=o.getOutputViewInfo(t[0]).marginTop;if(l>u)a=0,a=d>p?l-u:c-h,o.setProperty(t[0],"marginTop",f+a),n=n.concat(t),this._removeMarginFromBelowUsingCache(a,i,t,o);else{a=0,a=d>p?h-c:u-l;var g=Math.max(0,f-a),m=f-g;o.setProperty(t[0],"marginTop",g);var _=r.getFirstUniqueElement(t,i);this._addSpaceAboveUsingCache(_,m,o),n=n.concat(t)}return n},_alignTargetAboveUsingCache:function(e,t,i,n,o){if(this._moveMarginUpUsingCache(t,i,o),t.some((function(e){return n.indexOf(e)>=0})))return n=n.concat(t);if(this._moveMarginsUpUsingCache(t,i,o),this._areOutputsAlignedToCodeUsingCache(e,t,o))return n=n.concat(t);var a,s=this._getHeightOfOutputDivsUsingCache(t[0],t[t.length-1],o),l=e.top,c=e.bottom,d=c-l,u=o.getOffsetTop(t[0])-o.getScrollTop(),h=u+s,p=t[t.length-1],f=o.getOutputViewInfo(p).marginBottom;if(l>u){a=0,a=d>s?l-u:c-h;var g=Math.max(0,f-a),m=f-g;o.setProperty(p,"marginBottom",g);var _=r.getFirstUniqueElement(t,i);this._addSpaceBelowUsingCache(_,m,o),n=n.concat(t)}else a=0,a=d>s?h-c:u-l,a=Math.min(a,this._getAvailableSpaceAboveUsingCache(i,t,o)),o.setProperty(p,"marginBottom",f+a),n=n.concat(t),this._removeMarginFromAboveUsingCache(a,i,t,o);return n},_moveMarginUpUsingCache:function(e,t,i){var n=i.getOutputViewInfo(e[0]).marginTop;if(0!==n){i.setProperty(e[0],"marginTop",0);var o=r.getFirstUniqueElement(e,t);this._addSpaceBelowUsingCache(o,n,i)}},_moveMarginsUpUsingCache:function(e,t,i){var n=0,o=i.getOutputViewInfoArray(e),a=o.length-1;o.forEach((function(e,t){n+=e.marginTop,t!==a&&(n+=e.marginBottom)}));var s=r.getFirstUniqueElement(e,t);this._addSpaceBelowUsingCache(s,n,i),o.forEach((function(e,t){i.setProperty(e.outputDiv,"marginTop",0),t!==a&&i.setProperty(e.outputDiv,"marginBottom",0)}))},_moveMarginDownUsingCache:function(e,t,i){var n=i.getOutputViewInfo(e[e.length-1]).marginBottom;if(0!==n){i.setProperty(e[e.length-1],"marginBottom",0);var o=r.getFirstUniqueElement(e,t);this._addSpaceAboveUsingCache(o,n,i)}},_addSpaceBelowUsingCache:function(e,t,i){if(e)i.addToProperty(e,"marginBottom",t);else{var n=i.getTopPadHeight();i.setTopPadHeight(n+t)}},_addSpaceAboveUsingCache:function(e,t,i){if(e)i.addToProperty(e,"marginTop",t);else{var n=i.getBottomPadHeight();i.setBottomPadHeight(n+t)}},_moveOutputUpUsingCache:function(e,t,i,n,o,a){if(o){var s=a.getScrollTop()+e;a.setScrollTop(s)}else{var l=r.getFirstUniqueElement(t,n);this._addSpaceAboveUsingCache(l,e,a)}return this._removeMarginFromAboveUsingCache(e,i,t,a)},_moveOutputDownUsingCache:function(e,t,i,n,o,a){if(o){var s=this._getTopAndBottomOfDivListUsingCache(t,a);if(!s)return;var l=s.top-5;a.setScrollTop(l)}else{var c=r.getFirstUniqueElement(t,i);this._addSpaceBelowUsingCache(c,e,a)}return this._removeMarginFromBelowUsingCache(e,n,t,a)},_removeMarginFromAboveUsingCache:function(e,t,i,n){return this._removeMarginFromAboveOrBelowUsingCache(e,t,i,!0,n)},_removeMarginFromBelowUsingCache:function(e,t,i,n){return this._removeMarginFromAboveOrBelowUsingCache(e,t,i,!1,n)},_removeMarginFromAboveOrBelowUsingCache:function(e,t,i,n,o){if(n)var r="marginBottom",a="marginTop";else r="marginTop",a="marginBottom";for(var s=0;s<t.length;s++){if(e<=0)return 0;var l=t[s];if(!(i.indexOf(l)>=0)){var c=o.getOutputViewInfo(l),d=c[r],u=Math.max(d-e,0);e-=d-u;var h=c[a],p=Math.max(h-e,0);e-=h-p,o.setProperty(l,r,u),o.setProperty(l,a,p)}}if(e<=0)return 0;if(n){var f=o.getTopPadHeight(),g=Math.max(f-e,0);o.setTopPadHeight(g)}else f=o.getBottomPadHeight(),g=Math.max(f-e,0),o.setBottomPadHeight(g);return e-(f-g)},setOrClearMargin:function(e,t,i){0===i?e.style.removeProperty(t):e.style[t]=i+"px"},_areOutputsAlignedToCode:function(e,t,i){var n=this._getTopAndBottomOfDivList(t);if(!n)return!1;var o=i.scrollTop,r=n.top-o,a=n.bottom-o,s=e.top>=r&&e.bottom<=a,l=r>=e.top&&a<=e.bottom;return s||l},_areOutputsAlignedToCodeUsingCache:function(e,t,i){var n=this._getTopAndBottomOfDivListUsingCache(t,i);if(!n)return!1;var o=i.getScrollTop(),r=n.top-o,a=n.bottom-o,s=e.top>=r&&e.bottom<=a,l=r>=e.top&&a<=e.bottom;return s||l},_getTopAndBottomOfDivList:function(e){return e&&0!==e.length?{top:e[0].offsetTop,bottom:e[e.length-1].offsetTop+e[e.length-1].offsetHeight}:null},_getTopAndBottomOfDivListUsingCache:function(e,t){if(!e||0===e.length)return null;if(1===e.length||e[0]===e[e.length-1])var i=t.getOffsets([e[0]]),n=i[0].offsetTop,o=i[0].offsetBottom;else n=(i=t.getOffsets([e[0],e[e.length-1]]))[0].offsetTop,o=i[1].offsetBottom;return{top:n,bottom:o}},_getHeightOfOutputDivsUsingCache:function(e,t,i){var n=this._getTopAndBottomOfDivListUsingCache([e,t],i);return n.bottom-n.top},_getAvailableSpaceAboveUsingCache:function(e,t,i){var n=i.getTopPadHeight();return e.forEach((function(e){if(-1===t.indexOf(e)){var o=i.getOutputViewInfo(e);n+=o.marginTop,n+=o.marginBottom}})),n},_needToAlignUsingCache:function(e,t,i){return!(this._areOutputsAlignedToCodeUsingCache(e,t,i)&&this._areOutputsOnScreenUsingCache(t,i))},_areOutputsOnScreen:function(e,t){var i=t.scrollTop,n=this._getTopAndBottomOfDivList(e);if(!n)return!1;var o=n.top>=i,r=i+t.offsetHeight,a=n.bottom<=r;return o&&a},_areOutputsOnScreenUsingCache:function(e,t){var i=t.getScrollTop(),n=this._getTopAndBottomOfDivListUsingCache(e,t);if(!n)return!1;var o=n.top>=i,r=i+t.getScrollPaneOffsetHeight(),a=n.bottom<=r;return o&&a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(623),i(619),i(1439)],o=i.dj.d(n,(function(e,t,i,n){return{filterErrorsAndWarnings:function(e){var t={clean:[],errors:[],warnings:[],errorsAndWarnings:[]};return e?(e.forEach((function(e){this.isErrorOutputDiv(e)?t.errors.push(e):this.isWarningOutputDiv(e)?t.warnings.push(e):t.clean.push(e)}),this),t.errorsAndWarnings=t.errors.concat(t.warnings),t):t},isErrorOutputDiv:function(t){return e.contains(t,i.CSS_TAG)},isWarningOutputDiv:function(t){return e.contains(t,n.CSS_TAG)},getHeightOfNodes:function(e){if(0===e.length)return 0;var t=e[0],i=e[e.length-1],n=t.offsetTop;return i.offsetTop+i.offsetHeight-n},doNodeSetsIntersect:function(e,t){return e.filter((function(e){return-1!=t.indexOf(e)})).length>0}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4962)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.cursor","rtc.actionservice","rtc.embeddedoutputs.view.viewmodel"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(224),i(204),i(208),i(210),i(225),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{_LINE_CLASS:"selectedLine",_OUTPUT_CLASS:"selectedOutput",_FOCUSED_CLASS:"focusedOutput",_OUTPUT_START_CLASS:"selectionStart",_OUTPUT_END_CLASS:"selectionEnd",_OOR_OUTPUT_SELECTOR:".outputsOnRight .selectedOutput",_OOR_FOCUSED_OUTPUT_SELECTOR:".outputsOnRight .focusedOutput",_OOR_ALL_OUTPUTS_SELECTOR:".outputsOnRight .rightPaneElement",_RTC_LINE_SELECTOR:".rtePane .selectedLine",_HIGHLIGHT_ON_HOVER_CLASS:"highlightOnHover",_ACTION_ID:"rtc_current_element_manager_hover_highlighting_toggle",constructor:function(e,t,i,n){this._rtcView=e,this._cursor=t,this._actionService=i,this._viewModel=n,this._currentOutputService=null,this._highlightOnHoverEnabled=!1,this._highlightCodeEnabled=!1,this._currentOutputDivs=[],this._focusedOutput=null,this._isEnabled=!1,this._currentOutputServiceHandle=null},registerCurrentOutputService:function(e){this._currentOutputService!==e&&(this._currentOutputService=e,this.disable(),this.enable())},enable:function(){this._currentOutputService&&!this._isEnabled&&(this._currentOutputServiceHandle=n.after(this._currentOutputService,"onOutputSelected",i.hitch(this,"_handleOnOutputSelected"),!0),this._selectOutputs(this._currentOutputService.getSelectedOutputs()),this._isEnabled=!0)},disable:function(){this._isEnabled&&(this._currentOutputServiceHandle.remove(),this._currentOutputServiceHandle=null,this._clearAllStyles(),this._currentOutputDivs=[],this._isEnabled=!1)},_handleOnOutputSelected:function(e){var t=e.focusedOutput;t&&this._getOutputDivFromOutput(t)?this._focusOutput(this._getOutputDivFromOutput(t)):this._selectOutputs(e.selectedOutputs)},_focusOutput:function(e){this._clearAllStyles(),this._currentOutputDivs=[],this._focusedOutput=e,o.add(this._focusedOutput,this._FOCUSED_CLASS)},_selectOutputs:function(e){this._clearFocusStyles(),this._focusedOutput=null,this._updateCurrentOutputsDecoration(e)},_updateCurrentOutputsDecoration:function(e){if(!e.length)return this._clearAllStyles(),void(this._currentOutputDivs=[]);var t=this._getOutputDivsFromOutputs(e),i=a.differenceOfArrays(this._currentOutputDivs,t),n=this._currentOutputDivs.length-i.length<t.length;this._currentOutputDivs=t,this._clearCodeStyles(),this._clearOutputStyles(i),this._setCurrentLineBackground(),(n||i.length>0)&&this._setCurrentOutputsDecoration(t)},_getOutputDivsFromOutputs:function(e){return e.map(this._getOutputDivFromOutput,this)},_getOutputDivFromOutput:function(e){return e.getDomElement().parentElement},_setCurrentOutputsDecoration:function(e){e.forEach(this._setCurrentOutputsBackground,this)},_setCurrentLineBackground:function(){if(this._highlightCodeEnabled){var e=this._rtcView.getNodeBox(this._cursor.getNode().rootContainer());o.add(e,this._LINE_CLASS)}},_setCurrentOutputsBackground:function(e,t,i){var n=i[t-1],r=i[t+1],a=!n||n!==this._viewModel.getPreviousSibling(e);o.toggle(e,this._OUTPUT_START_CLASS,a);var s=!r||r!==this._viewModel.getNextSibling(e);o.toggle(e,this._OUTPUT_END_CLASS,s),o.add(e,this._OUTPUT_CLASS)},_clearAllStyles:function(){this._clearCodeStyles(),this._clearAllOutputStyles()},_clearCodeStyles:function(){this._clearCurrentLineBackground()},_clearCurrentLineBackground:function(){this._highlightCodeEnabled&&r(this._RTC_LINE_SELECTOR).removeClass(this._LINE_CLASS)},_clearAllOutputStyles:function(){var e=r(this._OOR_OUTPUT_SELECTOR);e.removeClass(this._OUTPUT_CLASS),e.removeClass(this._OUTPUT_START_CLASS),e.removeClass(this._OUTPUT_END_CLASS),this._clearFocusStyles()},_clearOutputStyles:function(e){e.forEach((function(e){o.remove(e,[this._OUTPUT_CLASS,this._OUTPUT_START_CLASS,this._OUTPUT_END_CLASS])}),this),this._clearFocusStyles()},_clearFocusStyles:function(){this._focusedOutput&&o.remove(this._focusedOutput,this._FOCUSED_CLASS)},_toggleHighlightOnHover:function(){this._highlightOnHoverEnabled?(this._highlightOnHoverEnabled=!1,r(this._OOR_ALL_OUTPUTS_SELECTOR).removeClass(this._HIGHLIGHT_ON_HOVER_CLASS)):(this._highlightOnHoverEnabled=!0,this._addSingleOutputHighlightingClass())},_addSingleOutputHighlightingClass:function(){this._highlightOnHoverEnabled&&r(this._OOR_ALL_OUTPUTS_SELECTOR).addClass(this._HIGHLIGHT_ON_HOVER_CLASS)},destroy:function(){this.disable(),this._currentOutputServiceHandle&&(this._currentOutputServiceHandle.remove(),this._currentOutputServiceHandle=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4964)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.cursor","rtc.cursor.view","rtc.focusservice","rtc.actionservice","rtc.contextmenu.generator","rtc.executionservice.statehandler","rtc.internaldocument","rtc.cursorcontroller","rtc.bordercontainer","rtc.embeddedoutputs.view.viewmodel","rtc.embeddedoutputs.view.splitterpositioncontroller","rtc.embeddedoutputs.view.rightpanel","rtc.embeddedoutputs.view.currentelementmanager","rtc.nodes.noderangeretriever","rtc.embeddedoutputs.view.alignmentmanager"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(211),i(210),i(253),i(257),i(270),i(2067),i(528),i(4965)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(l,{_VIEW_STATE_NAME:c.ON_RIGHT_VIEW_STATE,ACTION_ID:"rtc_on_right_view",ACTION_ID_NO_ANIMATION:"_rtc_on_right_view_no_animation",_MIN_THRESHOLD:5,_MAX_THRESHOLD:95,BUTTON_CSS_CLASS:"onright",DATATEST_ID:"outputsOnRightButton",TOOLTIP_MESSAGE:'<div data-testid="onRightTooltip">'+r.showOnRight+"</div>",constructor:function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){this._alignmentManager=g},setup:function(e,n,o){this.inherited(arguments),this._alignmentDisabler=new d(this._stateHandler,this._alignmentManager),this.own(this._alignmentDisabler),this.own(i.after(this._alignmentManager,"onAlign",t.hitch(this,"_handleAlign")))},outputStyleChanged:function(e,t,i){t&&this.align(e)},_handleAlign:function(){this._scrollableOutputStyler.layout()},enable:function(e){var t=this.inherited(arguments);return this._alignmentManager.enable(),t},disable:function(e){this._alignmentManager.disable();var t=this.inherited(arguments);return t},getName:function(){return this._VIEW_STATE_NAME},_moveCursorToOutputAndEmitEvent:function(e,t){this._alignmentManager.isEnabled()?(this._alignmentManager.disable(),this.inherited(arguments),this._scrollPositionToOutput(e,t)||(this._alignmentManager.markAsAligned(),this._alignmentManager.enable())):this.inherited(arguments)},_scrollPositionToOutput:function(e,t){if(this._rtcView.isNodeInView(e.getNode(),!0)&&this._rtcView.isLineVisible(e.getLine()))return!1;this._clickAspect&&(this._clickAspect.remove(),this._clickAspect=null),this._clickAspect=i.after(this._rtcView,"onScroll",function(){this._alignmentManager.markAsAligned(),this._alignmentManager.enable(),this._clickAspect.remove(),this._clickAspect=null}.bind(this));var n=Math.max(Math.min(this._getOutputsPercent(t),this._MAX_THRESHOLD),this._MIN_THRESHOLD);return this._rtcView.scrollNearestVisibleLineToPercent(e.getLine(),n),!0},_getOutputsPercent:function(e){var t=this._rightPanel.getScrollPane().getBoundingClientRect();return e.getBoundingClientRect().top/t.height*100},_postProcessOutputs:function(){this.inherited(arguments),this._alignmentManager.layout()},align:function(e){e?this._alignmentManager.checkExtraWhiteSpace():this._alignmentManager.layout()},getFallbackView:function(){return c.ON_RIGHT_VIEW_STATE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(275)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(e,o){this._stateHandler=e,this._alignmentManager=o,this._debugServices=n.getInstance(),this._aspectHandles=[],this._aspectHandles.push(i.after(this._stateHandler,"onStateChanged",t.hitch(this,"_handleStateChange"),!0)),this._aspectHandles.push(i.after(this._debugServices,"onDBStop",t.hitch(this,"_handleDBStop"),!0)),this._aspectHandles.push(i.after(this._debugServices,"onDBCont",t.hitch(this,"_handleDBCont"),!0)),this._isBeingDisabled=!1},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]},_handleDBStop:function(){this._isBeingDisabled&&this._enableAlignment()},_handleDBCont:function(){this._isBeingDisabled&&this._disableAlignment()},_handleStateChange:function(e){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED?this._handleEvaluationStarted():e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&this._handleEvaluationCompleted()},_handleEvaluationStarted:function(){this._isBeingDisabled=!0,this._disableAlignment()},_disableAlignment:function(){this._alignmentManager.setEnablement({alignOnScroll:!1,autoScroll:!1})},_handleEvaluationCompleted:function(){this._isBeingDisabled=!1,this._enableAlignment()},_enableAlignment:function(){this._isBeingDisabled=!0,this._alignmentManager.setEnablement({alignOnScroll:!0,autoScroll:!0}),this._alignmentManager.isEnabled()&&this._alignmentManager.layout()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4967)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.splitterpositionmodel","rtc.bordercontainer"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(212),i(209),i(355),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{constructor:function(e,n){this._splitterPositionModel=e,this._parentBorderContainer=n,this._splitterDeferred=null,this.own(i.after(this._splitterPositionModel,"onProportionSet",t.hitch(this,"_resolveSplitterDeferred"))),this._evtListener=this._parentBorderContainer.on(r.SPLITTER_DRAG_ENDED,t.hitch(this,"_updateModel")),this._isEnabled=!1},enable:function(){this._isEnabled=!0},disable:function(){this._isEnabled=!1},addContentPanel:function(e,i){if(this._splitterDeferred=new n,this._splitterPositionModel.hasSplitterPosition()){var r=this._splitterPositionModel.getRightPanelProportion();this._splitterDeferred.resolve(r)}this._splitterDeferred.then(t.hitch(this,(function(t){this._parentBorderContainer.addWithProperties(i,e),this._parentBorderContainer.setProportion("right",t)})),(function(e){o.assert("The Deferred that gets the Splitter Position is cancelled: "+e)}))},_resolveSplitterDeferred:function(){if(this._isEnabled){var e=this._splitterPositionModel.getRightPanelProportion();this._splitterDeferred.resolve(e)}else this._splitterDeferred.cancel("opening a file with outputs inline")},_updateModel:function(){var e=this._parentBorderContainer.getDerivedRightProportion();this._splitterPositionModel.setRightPanelProportion(e)},destroy:function(){this.inherited(arguments),this._evtListener.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4969)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.cursor","rtc.cursor.view","rtc.focusservice","rtc.actionservice","rtc.contextmenu.generator","rtc.executionservice.statehandler","rtc.internaldocument","rtc.cursorcontroller","rtc.bordercontainer","rtc.embeddedoutputs.view.viewmodel","rtc.embeddedoutputs.view.splitterpositioncontroller","rtc.embeddedoutputs.view.rightpanel","rtc.embeddedoutputs.view.currentelementmanager","rtc.nodes.noderangeretriever","rtc.documentfragment.model","rtc.documentfragment.contributor.heading","rtc.documentfragment.contributor.section","rtc.slides.slidecontroller","rtc.navigate.sections","rtc.navigate.slides"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(211),i(253),i(2067),i(528)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{_VIEW_STATE_NAME:r.SLIDE_VIEW_STATE,ACTION_ID:"rtc_slide_view",ACTION_ID_NO_ANIMATION:"rtc_slide_view_no_animation",BUTTON_CSS_CLASS:"slide",DATATEST_ID:"outputsSlideButton",TOOLTIP_MESSAGE:'<div data-testid="slideTooltip">'+n.showSlide+"</div>",_VIEW_REQUIRES_RELEASE:"R2019a",constructor:function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){this._documentFragmentModel=g,this._fragmentContributors=[m,_],this._slideController=v,this._sectionNavigation=b,this._slideNavigation=y},enable:function(e){return this._setupView(),this.inherited(arguments)},disable:function(e){return this._teardownView(),this.inherited(arguments)},_setupView:function(){this._documentFragmentModel.resetContributors(this._fragmentContributors),this._slideController.enable(),this._sectionNavigation.disable(),this._slideNavigation.enable(),this._refreshOutputsListener=t.after(this._slideController,"onCurrentSlideUpdated",this._handleCurrentSlideUpdated.bind(this))},_teardownView:function(){this._slideController.disable(),this._documentFragmentModel.resetContributors([]),this._slideNavigation.disable(),this._sectionNavigation.enable(),this._refreshOutputsListener&&(this._refreshOutputsListener.remove(),this._refreshOutputsListener=null)},_handleCurrentSlideUpdated:function(){this.layout(!1,!1,!1)},_getOutputDivsForOutputPane:function(){var e=this._slideController.getCurrentSlideNodes();if(0===e.length)return[];var t=e[0],i=e[e.length-1];return this._viewModel.getOutputDivsForRange(t,i)},getName:function(){return this._VIEW_STATE_NAME},getFallbackView:function(){return r.ON_RIGHT_VIEW_STATE},getRequiresRelease:function(){return this._VIEW_REQUIRES_RELEASE},destroy:function(){this._teardownView(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2017)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.internaldocument","rtc.execution.regionevaluator"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4972)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.execution.capabilityblacklist"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(204),i(209),i(1088),i(801),i(297),i(617),i(207),i(4973)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return t(l,{_BUILTIN_FUNCTION:"builtin",_BREAKPOINTLESS_FEVAL_FUNCTION:"_executionPortal",_EVAL_REGIONS_FUNCTION:"matlab.internal.editor.EvaluationOutputsService.evalRegions",_DEBUGGING_CAPABILITY:"Debugging",constructor:function(e,t,i){this._capabilityBlacklist=t,this._mvm=i||c.getInstance(),this._editorId=e,this._lastRequestPromise=null,this._lastRequestId=null,this._runOptions=new a},executeRequest:function(e){this._capabilityBlacklist.excludeCurrentCapabilitiesFromRunOptions(this._runOptions),this._runOptions.setOutTextCallback(null),this._runOptions.setErrTextCallback(null),this._runOptions.dequeueMode=s.DEQUEUE_AT_NON_DEBUG_PROMPT;var t=e.getExecutionMessage(),i=t.requestId,n=[this._BREAKPOINTLESS_FEVAL_FUNCTION,this._EVAL_REGIONS_FUNCTION,this._editorId,i,t.regionArray,t.fullText,!t.partialEval,!1,t.fullFilePath,t.documentStateToken,t.customExecutionData];this._lastRequestPromise=this._mvm.feval(this._BUILTIN_FUNCTION,0,n,this._runOptions),this._lastRequestPromise.then(this._handleSuccess.bind(this,i),this._handleError.bind(this,i),this._runOptions),this._lastRequestId=i},interrupt:function(e){null!=this._lastRequestPromise&&this._lastRequestId===e&&this._lastRequestPromise.cancel()},_handleSuccess:function(e){this._handleRequestComplete(e)},_handleRequestComplete:function(e){this._lastRequestId===e&&(this._lastRequestPromise=null,this._lastRequestId=null)},_handleError:function(e,t){if(this._cleanupServerside(e,!1),!this._isInterruptError(t)&&!this._isDbquit(t))try{this._logError(t.getMsg(),t.getStackFrames())}catch(e){this._logError("Error while evaluating.")}this._handleRequestComplete(e)},_cleanupServerside:function(e,t){this._mvm.feval("matlab.internal.editor.EvaluationOutputsService.cleanupOnInterruption",0,[this._editorId,e]).then((function(){}),function(){t||this._cleanupServerside(e,!0)}.bind(this))},_isInterruptError:function(e){return!e.getExecutionStatus||4===e.getExecutionStatus()},_isDbquit:function(e){return e.getExecutionStatus&&3===e.getExecutionStatus()},_logError:function(e,t){n.error(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(363)],o=i.dj.d(n,(function(e,t){return new(e(null,{constructor:function(){this._mockInstance=null},getInstance:function(){return this._mockInstance||t.getInstance()},installCustomInstance:function(e){this._mockInstance=e},clearCustomInstance:function(){this._mockInstance=null}}))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4975)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.embeddedoutputs.externaloutputhandler","rtc.embeddedoutputs.externalstatehandler"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(4976),i(1707),i(1703)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{_REQUEST_TYPE:"Synchronous",_SERVICE_URL:"/messageservice/json/secure?snc=dev",constructor:function(e,t,i){this._messageService=new o,n.setupSerializers(this._messageService)},createRequest:function(e){return{messages:{FEval:[{function:"matlab.internal.editor.evaluateSynchronousRequest",arguments:[e.getExecutionMessage()],nargout:1}]}}},getType:function(){return this._REQUEST_TYPE},getServiceUrl:function(){return this._SERVICE_URL},processResponse:function(e){if(e.messages&&e.messages.FEvalResponse){e={data:JSON.parse(e.messages.FEvalResponse[0].results[0])};e=this._messageService.deserialize(e)}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(649),i(1105)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{constructor:function(e,t,i){this._externalEmbeddedOutputsEvaluationLifecycleHandler=t,this._externalStateHandler=i,this._serviceUrl=this.getServiceUrl()},executeRequest:function(e){this._startRequest(e),this.sendRequest(e)},getType:function(){throw new Error("Unimplemented method: getType")},getServiceUrl:function(){throw new Error("Unimplemented method: getServiceUrl")},sendRequest:function(e){this._currentlyRunningHttpRequest=n(this._serviceUrl,{handleAs:"json",data:JSON.stringify(this.createRequest(e)),method:"post"}).then(t.hitch(this,(function(t){this._processOutputs(e,t)})),t.hitch(this,(function(t){this._processOutputs(e,t)})))},interrupt:function(){this._currentlyRunningHttpRequest&&!this._currentlyRunningHttpRequest.isResolved()&&(this._currentlyRunningHttpRequest.cancel(),this._currentlyRunningHttpRequest=null)},createRequest:function(e){throw new Error("Unimplemented method: createRequest")},processResponse:function(e){throw new Error("Unimplemented method: processResponse")},_handleRequestCompleted:function(e){var t,i={didRunToCompletion:e.data.didRunToCompletion,errorType:e.data.errorType,errorLine:e.data.errorLine},n=i.didRunToCompletion,o=i.errorType;if(!this._currentlyRunningRequest)throw new Error("Received message to finish request, but there is no currently running request");var r={didRunToCompletion:n,errorType:o,requestedEvaluationRange:t=this._currentlyRunningRequest.getEvaluationRange()};this._externalStateHandler.stateChanged(this._externalStateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE,r),r={evaluationRange:t,evaluationId:this._currentlyRunningRequest.getRequestId(),errorType:o},this._externalEmbeddedOutputsEvaluationLifecycleHandler.handleEndOfEvaluation(r),this._currentlyRunningRequest=null,this._currentlyRunningHttpRequest=null,this.onRequestComplete(e)},_startRequest:function(e){this._currentlyRunningRequest=e;var t={evaluationRange:e.getEvaluationRange(),evaluationId:e.getRequestId(),request:e};this._externalStateHandler.stateChanged(this._externalStateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED,t),this._externalEmbeddedOutputsEvaluationLifecycleHandler.handleStartOfEvaluation({evaluationRange:e.getEvaluationRange()})},_processOutputs:function(e,t){try{var n=(t=this.processResponse(t)).data.requestId,o=t.data.outputs,r=t.data.completedRegionNumbers||[],a={didRunToCompletion:t.data.evalEndData.didRunToCompletion};if(t.data.evalEndData.errorType&&(a.errorType=t.data.evalEndData.errorType),0!==o.length||0!==r.length){var s={rawOutputs:o,completedRegionNumbers:r,evaluationId:n,replacementRange:e.getEvaluationRange()};this._externalEmbeddedOutputsEvaluationLifecycleHandler.handleOutputsData(s)}this._handleRequestCompleted({data:a})}catch(e){this._handleRequestCompleted({data:{didRunToCompletion:0}}),i.warn(!1,"Unable to display outputs:"+e+t)}},initializeRequest:function(e){return this._externalEmbeddedOutputsEvaluationLifecycleHandler.handleEvaluationRequestCreation({request:e})},destroy:function(){this._currentlyRunningRequest&&(this._currentlyRunningRequest.destroy(),this._currentlyRunningRequest=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4978)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs","rtc.export.docbookxmloutputwriters","rtc.view","rtc.liveapps.hierarchymanager"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(323),i(283),i(499),i(685),i(402),i(1137),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([r],{_MATLABCODE:"matlabcode",_OUTPUTPARAGRAPH_CLASS:"outputParagraph",constructor:function(e,t,i,n){this._embeddedOutputsView=e.getEmbeddedOutputsView(),this._outputexporter=new s(t),this._view=i,this._liveAppHierarchyManager=n},getApplicableNodeClass:function(){return i},reset:function(){this._outputexporter.reset()},enter:function(e,t,r){var a=l.getVisibleRootContainerAbove(t,this._view),s=this._isNodeInView(t),c=this._liveAppHierarchyManager.getLiveAppLineNode(t);if(c){var d=n.isInControlsAndCodeView(c),u=n.isInCodeOnlyView(c);if(d&&s)return!1;if((null===a||!(a instanceof i))&&u&&s)return this.inherited(arguments),!1;if(!s)return!0}if(a&&(a instanceof i||a instanceof o)&&a.groupingType===t.groupingType&&!this._getOutputParagraph(a)||s&&this.inherited(arguments),!s)return!0},leave:function(e,t,n){var r=this._getOutputParagraph(t),a=l.getVisibleRootContainerBelow(t,this._view),s=this._isNodeInView(t);a&&(a instanceof i||a instanceof o)&&a.groupingType===t.groupingType&&!r?s&&e.appendElement(document.createTextNode("\n")):s&&this.inherited(arguments),r&&this._outputexporter.export(r,e,n)},_processElement:function(e){return e.setAttribute(a.COLORSCHEME,this._MATLABCODE),e},_getOutputParagraph:function(e){var i=this._view.getNodeBox(e);if(null===i)return null;var n=i.nextSibling;return n&&t.contains(n,this._OUTPUTPARAGRAPH_CLASS)?n:null},_getTagName:function(e){return a.PROGRAMLISTING},_isNodeInView:function(e){return this._view.getNodeBox(e)&&this._view.getNodeBox(e).hasChildNodes()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4980)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.serializers.containers.codecontainer","rtc.embeddedoutputs","rtc.export.htmloutputwriters","rtc.view"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(285),i(212),i(244),i(323),i(806),i(252),i(1137),i(524),i(4981)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([l],{_STYLE_CODE:{id:"code",name:"Code",type:"paragraph",basedOn:"Standard",fontFamily:"Consolas",fontSize:"21",bold:!1,italic:!1,underline:!1,color:"",backgroundColor:"F2F2F2",borderColor:"D9D9D9",spacing:{after:"140",before:"140",line:"280",contextualSpacing:!0},indentation:"57",indFirstLine:"113",rowSpacing:"0"},_STYLE_OUTPUT:{id:"normal",name:"Normal",type:"paragraph",basedOn:"",default:"1",fontFamily:"Helvetica",fontSize:"21",bold:!1,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"0",before:"0",line:"",contextualSpacing:!1},indentation:"",rowSpacing:"0"},_DEFAULT_CONTEXT:{maxTableRows:100,maxMatrixRows:10},constructor:function(e,t,i,n){this._codeContainerSerializer=e,this._embeddedOutputsView=t.getEmbeddedOutputsView(),this._outputexporter=new c(i),this._exportDocument=this._defineExportDocument(),this._view=n},_defineExportDocument:function(){return{addToBody:this._addToBody.bind(this),getAttributesForStyle:function(){return""}}},_addToBody:function(e){n(e,function(e){this._contentFragment+=e}.bind(this)),this._contentParts.push(e)},getApplicableNodeClass:function(){return a},enter:function(e,i,n){n=t.mixin({},this._DEFAULT_CONTEXT,n),this._contentFragment="",this._contentParts=[],s.isHiddenCodeNode(i,n)||e.write(this._codeContainerSerializer,i);var a=this._getOutputParagraph(i);if(a){this._outputexporter.export(a,this._exportDocument,n);var l=document.createElement(d.DIV);l.setAttribute(d.STYLE,d.OUTPUT_STYLE);var c=new o;r(this._contentParts).then(function(e){l.innerHTML=this._contentFragment,c.resolve(u.convert(l.outerHTML)),this._contentFragment=""}.bind(this)),e.addOutput(c)}return!0},_getOutputParagraph:function(e){var t=this._view.getNodeBox(e);if(!t)return null;var n=t.nextSibling;return n&&i.contains(n,"outputParagraph")?n:null},finalize:function(e){e.addStyle(this._STYLE_CODE),e.addStyle(this._STYLE_OUTPUT)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_BASE64_MAX_LINE_CHAR:75,convert:function(e,t){var i={open:"",head:"",body:"",close:"",binary:"",context:t||{title:"MATLAB Output",from:"Exported by MATLAB",subject:"Output",location:"https://www.mathworks.com",partId:"01"}};this._createOpen(i),this._createHead(i,e);var n=this._createBody(i,e);return this._createClose(i,e),this._createBinaryPart(i,n),i.open+i.head+i.body+i.close+i.binary},_createHead:function(e,t){t.match(/<HTML>/i)||(e.head+="<html><head><title>"+e.context.title+'</title>\n<meta https-equiv=3D"Content-Type"content=3D"text/html; charset=3Dutf-8"></head>\n<body>\n')},_createOpen:function(e){e.open+="From: "+e.context.from+"\n",e.open+="Subject: "+e.context.subject+"\n",e.open+="Date: "+Date()+"\n",e.open+="MIME-Version: 1.0\n",e.open+="Content-Type: multipart/related;\n",e.open+=' type="text/html";\n',e.open+=' boundary="----=_NextPart_'+e.context.partId+'"\n',e.open+="X-MimeOLE: Produced By MATLAB\n\n\n",e.open+="------=_NextPart_"+e.context.partId+"\n",e.open+="Content-Type: text/html;\n charset=utf-8\n",e.open+="Content-Transfer-Encoding: quoted-printable\n",e.open+="Content-Location: "+e.context.location+"/\n\n"},_createBody:function(e,t){var i="",n=t.match(/<img\s.*?src=(?:'|")([^'">]+)(?:'|")/g);return n&&this._processImages(e,n).forEach((function(e){t=t.replace(e.src,'src="'+e.fileName+'"'),i+=e.mhtImage}),this),t=t.replace(/=/g,"=3D"),e.body=t,i},_createClose:function(e,t){t.match(/<HTML>/i)||(e.close+="\n</body></html>\n\n")},_createBinaryPart:function(e,t){e.binary+=t,e.binary+="\n\n------=_NextPart_"+e.context.partId+"--\n"},_processImages:function(e,t){var i=[];return t.forEach((function(t){var n=i.length,o=(t=t.match(/src=\"(.*?)\"/g)[0]).substring(10,20),r=t.substring(27,t.length-1),a=t.substring(16,19),s=e.context.location+"/file"+n+"."+a,l={mhtImage:this._createImage(o,s,r,e.context.partId),src:t,fileName:s};i[n]=l}),this),i},_createImage:function(e,t,i,n){return"\n\n------=_NextPart_"+n+"\n"+("Content-Type: "+e+"\n")+"Content-Transfer-Encoding: base64\n"+("Content-Location: "+t+"\n\n")+this._sliceLine(i,this._BASE64_MAX_LINE_CHAR)},_sliceLine:function(e,t){for(var i="";e.length>t;)i+=e.slice(0,t),i+="\n",e=e.slice(t,e.length);return i+=e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4983)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs","rtc.export.htmloutputwriters","rtc.view"]}},createInstance:function(e,t,n){return new i(e,t,n)},priority:function(){return 50}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(323),i(806),i(1137),i(334),i(722),i(721)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([a],{_STYLES:["border-left","border-right","border-top","border-bottom","border-radius","padding","line-height","min-height","white-space","color","font-family","font-size"],_CODEBLOCK_CSS:"background-color: #F7F7F7; margin: 10px 0 10px 0;",constructor:function(e,t,i){this._embeddedOutputsView=e.getEmbeddedOutputsView(),this._outputexporter=new o(t),this._view=i},getApplicableNodeClass:function(){return i},reset:function(){this._outputexporter.reset(),this._firstVisit=!0},enter:function(e,t,i){if(n.isHiddenCodeNode(t,i))return!0;var o=!i.hideOutputs&&this._getOutputParagraph(t);if(t.groupingType){var a=r.getVisibleRootContainerAbove(t,this._view);a&&a.groupingType===t.groupingType||("inline"===i.styles?e.addToBody('<div style="'+this._CODEBLOCK_CSS+'">'):(e.addToBody('<div class="CodeBlock">'),this._firstVisit&&e.addCSSToStyle&&(e.addCSSToStyle(".CodeBlock { "+this._CODEBLOCK_CSS+"}"),this._firstVisit=!1))),o?e.addToBody('<div class="inlineWrapper outputs">'):e.addToBody('<div class="inlineWrapper">')}this.inherited(arguments)},leave:function(e,t,i){n.isHiddenCodeNode(t,i)||this.inherited(arguments);var o=!i.hideOutputs&&this._getOutputParagraph(t);if(o&&this._outputexporter.export(o,e,i),n.isHiddenCodeNode(t,i))return!0;if(t.groupingType){e.addToBody("</div>");var a=r.getVisibleRootContainerBelow(t,this._view);a&&a.groupingType===t.groupingType||e.addToBody("</div>")}},_getOutputParagraph:function(e){var i=this._view.getNodeBox(e).nextSibling;return i&&t.contains(i,"outputParagraph")?i:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4985)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(348)],o=i.dj.d(n,(function(e,t){return e([t],{_STYLES:["color","padding","background","font-family","font-size","overflow-x","line-height"],constructor:function(){},getApplicableDomNodeClasses:function(){return["outputParagraph"]},enter:function(e,t,i){var n=e.getAttributesForStyle(t,this._STYLES),o="<div ";n&&(o+=n),o+=">",e.addToBody(o)},leave:function(e,t,i){e.addToBody("</div>")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4987)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs.model","rtc.export.latexoutputwriters"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(282),i(323),i(806),i(252),i(495),i(4988)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([o],{_ENVIRONMENT:"matlabcode",constructor:function(e,t){this._embeddedOutputsModel=e,this.outputExporter=new a(t)},getApplicableNodeClass:function(){return i},reset:function(){this._regions=this._embeddedOutputsModel.getRegions(),this.outputExporter.reset()},enter:function(e,t,o){if(n.isHiddenCodeNode(t,o))return!0;t.anchorId&&e.addToBody(r.getLabelCommand(t.anchorId)+"\n");var a=t.previousSibling();return a&&a instanceof i&&0===this._getGroupedOutputsForNode(a).length||e.openEnvironment(this._ENVIRONMENT),e.addToBody(t.getText()+"\n"),!0},leave:function(e,t,o){var r=this._getGroupedOutputsForNode(t);if(n.isHiddenCodeNode(t,o))r.length&&this.outputExporter.export(r,e,o);else{var a=t.nextSibling();a&&a instanceof i&&!(r.length>0)||e.closeEnvironment(this._ENVIRONMENT),r.length&&this.outputExporter.export(r,e,o),a&&a instanceof i||e.addToBody("\n")}},_getGroupedOutputsForNode:function(e){var i=[],n=t.indexOf(e.parent.children,e);return this._regions.forEach((function(e){var t=e.code.regionPositions;t[t.length-1].line===n&&(i=i.concat(this._embeddedOutputsModel.getOutputsForRegion(e)))}),this),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(209)],o=i.dj.d(n,(function(e,t,i){return t([],{constructor:function(e){this._outputExporters={},e.forEach((function(e){this._registerExportPlugin(e)}),this)},_registerExportPlugin:function(e){e.getApplicableTypes().forEach((function(t){i.assert(!this._outputExporters[t],"Writer for type '"+t+"'' already exists."),this._outputExporters[t]=e}),this)},reset:function(){for(var e in this._outputExporters)this._outputExporters.hasOwnProperty(e)&&this._outputExporters[e].reset()},export:function(e,t,i){var n,o;e.forEach(function(e){if(n=this._getOutputExporter(e)){var r=n.getEnvironment();r!==o&&(o&&(t.closeEnvironment(o),o=null),""!==r&&(t.openEnvironment(r),o=r)),n.enter(t,e,i)}}.bind(this)),o&&t.closeEnvironment(o)},_getOutputExporter:function(e){return e.getVariableType&&this._outputExporters[e.getVariableType()]?this._outputExporters[e.getVariableType()]:this._outputExporters[e.type]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(4990)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs","rtc.export.xslfooutputwriters","rtc.view"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(323),i(806),i(252),i(1137),i(334),i(357),i(426)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([o],{_STYLES:["border-left","border-right","border-top","border-bottom","line-height","min-height","color","font-family","font-size"],_CODEBLOCK_STYLES:["background-color","margin"],_PADDINGS:["padding-top","padding-left","padding-bottom","padding-right"],_CODEBLOCK_BG_COLOR:"#F7F7F7",_CODEBLOCK_LEFT_MARGIN:"3pt",constructor:function(e,t,i){this._outputexporter=new r(t),this._view=i},getApplicableNodeClass:function(){return i},reset:function(){this._outputexporter.reset()},enter:function(e,t,i){if(n.isHiddenCodeNode(t,i))return!0;if(t.groupingType){var o=a.getVisibleRootContainerAbove(t,this._view);o&&o.groupingType===t.groupingType&&!this._getOutputParagraph(o)||e.openWrapperElement()}e.openWrapperElement(),e.openWrapperElement()},leave:function(e,t,i){var o=this._getOutputParagraph(t);if(n.isHiddenCodeNode(t,i))o&&this._outputexporter.export(o,e,i);else{var r=l.createFOElementWithStyles(s.BLOCK,t,this._PADDINGS,this._view);e.closeWrapperElement(r);var c=l.createFOElementWithStyles(s.BLOCK,t,this._STYLES,this._view);if(c.setAttribute("white-space","pre"),t.isEmpty()&&c.appendChild(l.createFOElement("fo:leader")),t.anchorId&&c.setAttribute("id",t.anchorId),e.closeWrapperElement(c),t.groupingType){var d=a.getVisibleRootContainerBelow(t,this._view);if(!d||d.groupingType!==t.groupingType||o){var u=l.createFOElement(s.BLOCK);u.setAttribute("background-color",this._CODEBLOCK_BG_COLOR),u.setAttribute("margin-left",this._CODEBLOCK_LEFT_MARGIN),e.closeWrapperElement(u)}}o&&this._outputexporter.export(o,e,i)}},_getOutputParagraph:function(e){var i=this._view.getNodeBox(e).nextSibling;return i&&t.contains(i,"outputParagraph")?i:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(4992)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:[]}},createInstance:function(){return new n},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(587),i(529)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(){this._outputHandlers={}},handleRawOutput:function(e,o){var r=e.outputData,a=e.type,s=this._outputHandlers[a];try{var l=s.getOutputFromData(r,o);if(l)return l;t.error("getOutputFromData returned nothing. Skipping output.\nOutput type: "+a+"\nOutput data: "+JSON.stringify(r))}catch(e){t.error("Error in getOutputFromData. Skipping output.\nOutput type: "+a+"\nOutput data: "+JSON.stringify(r),e)}return new i(n.IGNORE_OUTPUT,null)},registerOutputPlugin:function(e){e&&e.OUTPUT_TYPE&&(this._outputHandlers[e.OUTPUT_TYPE]=e)},destroy:function(){this._outputHandlers={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(678),i(4994),i(4995),i(5004),i(5006),i(5008),i(5010),i(5012),i(5014),i(5016),i(5018),i(5020),i(5022)],o=i.dj.d(n,(function(e){return new e("EquationEditorPluginRegistry",[{id:"rtc.richtext.equationeditor",family:"equationeditors",path:"rtc/plugins/equations/equationeditor/EquationEditorProvider"},{id:"rtc.richtext.equationeditor.focusevents",family:"equationeditors",path:"rtc/plugins/equations/equationeditor/EquationFocusEventsProvider",subsystem:"rtc.focusables"},{id:"rtc.richtext.mathmlconverter",family:"equationeditors",path:"rtc/plugins/equations/equationeditor/MathMLMimeConverterProvider"},{id:"rtc.richtext.latexeditor",family:"equationeditors",path:"rtc/plugins/equations/latexeditor/LaTeXEditorProvider"},{id:"rtc.export.docbookxml.equation",path:"rtc/plugins/equations/export/Equation2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"equationeditors"},{id:"rtc.export.xslfo.equation",path:"rtc/plugins/equations/export/Equation2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"equationeditors"},{id:"rtc.export.docx.equation",path:"rtc/plugins/equations/export/EquationDocxSerializerProvider",subsystem:"rtc.export.docxwriters.serializers",family:"equationeditors"},{id:"rtc.export.latex.equation",path:"rtc/plugins/equations/export/Equation2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"equationeditors"},{id:"rtc.export.html.equation",path:"rtc/plugins/equations/export/Equation2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"equationeditors"},{id:"rtc.export.m.equation",path:"rtc/plugins/equations/export/Equation2MProvider",subsystem:"rtc.export.mwriters",family:"equationeditors"},{id:"rtc.contextmenu.equationcontributor",path:"rtc/plugins/contextmenu/EquationContextMenuContributorProvider",family:"equationeditors"},{id:"rtc.export.helptext.equation",path:"rtc/plugins/equations/export/Equation2HelpTextProvider",subsystem:"rtc.export.helptextwriters",family:"equationeditors"}])}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2057)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(4996),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{requires:function(){return{createInstance:["rtc.focusservice","rtc.cursor","rtc.actionservice","rtc.hyperlinkservice","rtc.richtext.equationcontroller","rtc.internaldocument","rtc.eventhandler","rtc.keyhandler","rtc.keyhandler.keyboardshortcutsmodel","rtc.clipboard","rtc.contextmenu.generator","rtc.contextmenu.model","rtc.contextmenu.equationcontributor","rtc.document","rtc.clipboardtempdirpath","rtc.divcaret","rtc.undoredo.controller","rtc.undoredo.editblock","rtc.view","rtc.scrollpane","rtc.richtext.equationeditor.focusevents","rtc.equations.manager"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){var E={};return E.focusService=e,E.cursor=t,E.actionService=n,E.hyperlinkService=o,E.equationController=r,E.internalDocument=a,E.eventHandler=s,E.keyHandler=l,E.keyboardShortcutsModel=c,E.clipboard=d,E.contextMenuGenerator=u,E.contextMenuModel=h,E.contextMenuContributor=p,E.document=f,E.clipboardTempDirpath=g,E.divCaret=m,E.undoredoController=_,E.editBlockController=v,E.view=b,E.scrollpane=y,E.focusEvents=C,E.equationEditorManager=T,new i(E)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(238),i(203),i(204),i(208),i(210),i(2044),i(2045),i(249),i(237),i(364),i(274),i(270),i(313),i(439),i(5002),i(5003),i(1460),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return t(null,{constructor:function(e){e=e||{},this._focusService=e.focusService,this._cursor=e.cursor,this._actionService=e.actionService,this._hyperlinkService=e.hyperlinkService,this._equationController=e.equationController,this._internalDocument=e.internalDocument,this._eventHandler=e.eventHandler,this._keyHandler=e.keyHandler,this._keyboardShortcutsModel=e.keyboardShortcutsModel,this._clipboard=e.clipboard,this._contextMenuGenerator=e.contextMenuGenerator,this._contextMenuModel=e.contextMenuModel,this._contextMenuContributor=e.contextMenuContributor,this._document=e.document,this._clipboardTempDirpath=e.clipboardTempDirpath,this._divCaret=e.divCaret,this._undoredoController=e.undoredoController,this._editBlockController=e.editBlockController,this._view=e.view,this._scrollpane=e.scrollpane,this._focusEvents=e.focusEvents,this._equationEditorManager=e.equationEditorManager,this._handles=[],this._previousPosition=null,this._handles.push(n.around(e.document,"deleteTextAtCurrentPosition",i.hitch(this,"_handleDelete"))),this._actionService.addAction({id:_.EQUATIONS.WYSIWYG_EDITOR_ACTION,enabled:!0,key:"ctrl_shift_e",platformKey:{mac:"meta_shift_e"},callback:i.hitch(this,"_insertEquationCallback")}),this._connections=[],this._connections.push(n.after(this._cursor,"onChange",i.hitch(this,this._handleCursorChanges))),this._connections.push(n.after(this._equationController,"onActionsNeedUpdate",i.hitch(this,this._handleCursorChanges)))},_handleDelete:function(e){return i.hitch(this,(function(t){var i=this._equationController.equationUnderCursor("mathml",t);if(this._cursor.hasSelection()||!i)return e.apply(this._document,arguments);var n=this._cursor.getPosition(),o=this._cursor.getNode();if(t===s.BACKWARD_DELETE&&o===i&&n.posInNode===i.maxOffset())this._cursor.movePosition(this._cursor.LEFT);else{if(t!==s.FORWARD_DELETE||!(o===i.previousSibling()||o instanceof p&&0===n.posInNode))return e.apply(this._document,arguments);this._cursor.movePosition(this._cursor.RIGHT)}}))},_handleCursorChanges:function(){this._cursor.hasSelection()&&this._expandSelectionOverEquations();var e=this._equationController.equationUnderCursor("mathml");this._actionService.updateAction(_.EQUATIONS.WYSIWYG_EDITOR_ACTION,{enabled:this._equationController.canEditMathMLEquation()}),e?this._handleCursorInsideEquation(e):this._handleCursorOutsideEquation(),this._previousPosition=new u(this._cursor.position.getNode(),this._cursor.position.getOffset())},_expandSelectionOverEquations:function(){var e=this._cursor.position,t=this._cursor.anchor,i=!1,n=!1,o=this._cursor.isReversed(),r=this._previousPosition?h.comparePositions(e,this._previousPosition):0,a=e.node,s=a.maxOffset();if(a.isInstanceOf(p)&&e.offset>0&&e.offset<s&&(i=!0),t.node&&t.node.isInstanceOf(p)&&t.offset>0&&t.offset<t.node.maxOffset()&&(n=!0),!(t&&t.node===e.node&&i&&n)){if(i){if(!1===o&&e.offset===s-1&&r<0)return void this._cursor.setPosition(a,0);if(!0===o&&1===e.offset&&r>0)return void this._cursor.setPosition(a,s);this._cursor.setPosition(a,o?0:s)}n&&(this._cursor.anchor.offset=o?t.node.maxOffset():0,this._cursor.onUpdate())}},_handleCursorInsideEquation:function(e){var t=this._cursor.getPosition(),i=e.getEditor();if(!i){var n=e.posRightOfEquation(),o=e.posRightmostInsideEquation(),r=e.posInsideOfEquation();if(i=this._createEditorInstance(e),t.posInNode===n){var a=e.endPosition();t.posInNode=a.offset,this._cursor.releaseAnchor(),this._cursor.setPosition(e,t.posInNode)}else if(t.posInNode===o){a=e.getPositionFromOffset(e.posRightmostInsideEquation());t.posInNode=a.offset,this._cursor.releaseAnchor(),this._cursor.setPosition(e,t.posInNode)}else if(t.posInNode===r&&e.lastClickCoordinates){a=this._view.getPositionFromCoordinate(e.lastClickCoordinates);t.posInNode=a.offset,this._cursor.releaseAnchor(),this._cursor.setPosition(e,t.posInNode),e.lastClickCoordinates=null}}if(0!==t.posInNode&&t.posInNode!==e.maxOffset()&&this._cursor.getNode()===e){var s=e.isReadOnly();i.get("readonly")!==s&&i.set("readonly",s),s?this._equationEditorActive&&this._disableActiveEditor():this._equationEditorActive!==i&&this._enableEditor(i),e.getEditorBridge().setCursor(t.posInNode-1,t.anchor&&t.anchor.posInNode?t.anchor.posInNode-1:void 0)}else this._handleCursorOutsideEquation()},_handleCursorOutsideEquation:function(){this._equationEditorActive&&this._disableActiveEditor()},_enableEditor:function(e){this._equationEditorActive&&this._disableActiveEditor(),this._equationEditorActive=e,this._triggerFocus(e),this._focusThief=n.after(this._keyHandler,"onFocus",i.hitch(this,"_triggerFocus",e)),this._cursor.resetAction(),this._cursor.releaseAnchor(),this._cursor.externalMouseDown()},_triggerFocus:function(t){if(this._focusTriggered!==t){if(this._focusTriggered=t,this._equationEditorActive===t){var i=t.get("disabled");t.set("disabled",!1),(i||this._isRTC(e.curNode))&&(t.focus(),this._focusEvents.onFocus())}this._focusTriggered=!1}},_isRTC:function(e){for(;e&&e.parentNode;){if(o.contains(e,"mwRichTextComponent"))return!0;e=e.parentNode}},_disableActiveEditor:function(){this._equationEditorActive.set("disabled",!0),this._equationEditorActive=null,this._focusThief.remove(),this._focusService.setFocus(),this._focusEvents.onBlur()},_createEditorInstance:function(e){var t=new r(this._actionService);t.detach(),t.addAction({id:"rtc.equationeditor-active",enabled:!0});var n=new a({enable:["equationeditor.rtc-bridge"],disable:["action.undoredo","view.movekeycaptureonfocus"],inject:{"external.actionservice":t,"external.clipboard":this._clipboard,"external.clipboardtempdirpath":this._clipboardTempDirpath,"external.contextmenugenerator":this._contextMenuGenerator,"external.contextmenumodel":this._contextMenuModel,"external.contextmenucontributor":this._contextMenuContributor,"controller.undoredo":{canUndo:function(){return!1},undo:function(){this._undoredoController.undo()}.bind(this),redo:function(){},canRedo:function(){return!1}},"rtc.divcaret":this._divCaret,"rtc.keyhandler":this._keyHandler,"rtc.keyhandler.keyboardshortcutsmodel":this._keyboardShortcutsModel,"rtc.cursor":this._cursor,"rtc.document":this._document,"rtc.equationnode":e,"rtc.undoredo.editblock":this._editBlockController,"rtc.updatenode":i.hitch(this,(function(){var t=this._document.startEdit();this._internalDocument.changeNodeAttributes(e,{mathmlString:"",texString:""});var i=e.rootContainer(),n=this._internalDocument.getLineNumber(i),o=[c.create(n,n)];t.appendRedoEvents(o),t.appendUndoEvents(o),this._document.endEdit(),this._internalDocument.emitDocumentEvents(o)})),"rtc.deletenode":i.hitch(this,(function(){this._equationController.deleteEquation(e)})),"rtc.scrollpane":this._scrollpane,"rtc.view":this._view,"rtc.equations.manager":this._equationEditorManager},registry:[f,g]});return n.getEquation().fromMathML(e.getMathMLString()),n.getCursor().hide(),n.set("disabled",!0),n.set("cacheFontMetrics",!1),n.set("pxPerEm",14),n.set("emptyEquation",m.emptyEquationEncoding),n.getEquation().setDisplayStyle(e.getDisplayStyle()),e.setEditor(n),this._view.layoutNode(e),n},_insertEquationCallback:function(){if(this._actionService.getAction(_.EQUATIONS.WYSIWYG_EDITOR_ACTION).enabled)return this._insertEquation()},_insertEquation:function(){if(this._equationController.canEditMathMLEquation()){var e=this._equationController.equationUnderCursor("mathml");if(e){var t=this._cursor.position;if(t.node===e&&t.offset>0&&t.offset<e.maxOffset())return}this._equationController.updateDocument({encoding:"mathml",mathmlString:'<math><mrow><mi data-category="placeholder-atom">&nbsp;</mi></mrow></math>'})}},dispose:function(){this._connections.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(4998),i(4999),i(5e3),i(5001)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/equationEditor",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={emptyEquation:"式を入力してください。"}},function(e,t,i){e.exports={emptyEquation:"수식을 입력하십시오."}},function(e,t,i){e.exports={emptyEquation:"输入您的方程。"}},function(e,t,i){e.exports={root:{emptyEquation:"Enter your equation."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(210),i(221),i(206),i(2050),i(588),i(261),i(268),i(615)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){"use strict";var u=["up","down","left","right","home","end","pageup","pagedown","ctrl_a","meta_a","meta_shift_left","meta_shift_right","meta_left","meta_right"],h=["alt_delete","alt_backspace","shift_delete","shift_backspace","ctrl_delete","ctrl_backspace","meta_delete","meta_backspace"];return e(l,{pluginId:"equationeditor.rtc-bridge",pluginDependencies:["api.attributes","controller.caret","controller.cursor","controller.editmanager","controller.focus","controller.keyhandler","controller.mouse","controller.selection","external.actionservice","external.contextmenucontributor","helper.plaintextgenerator","helper.mimetype","helper.mimetypeexport","model.cursor","model.equation","rtc.divcaret","rtc.cursor","rtc.deletenode","rtc.document","rtc.equationnode","rtc.keyhandler.keyboardshortcutsmodel","rtc.undoredo.editblock","rtc.updatenode","rtc.scrollpane","rtc.view","view.caret","view.helper","view.keyhandler","view.rootnode","view.selection","rtc.equations.manager"],constructor:function(e,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M){this._attributes=e,this._caretController=n,this._cursorController=o,this._editManager=r,this._selectionController=c,this._actionService=d,this._contextmenuContributor=u,this._plainTextGeneratorHelper=h,this._mimeTypeHelper=p,this._mimeTypeExportHelper=f,this._cursor=g,this._deleteNode=b,this._equation=m,this._rtcCursor=v,this._rtcDocument=y,this._equationnode=C,this._viewHelper=x,this._updateNode=S,this._scrollPane=w,this._view=I,this._focusController=a,this._keyHandlerView=N,this._rootNode=L,this._mouseController=l,this._keyboardShortcutsModel=T,this._rtcEditBlockController=E,this._keyHandlerController=s,this._equationEditorManager=M,D.hide("rtc"),this._equationnode.setEditorBridge(this),this._rtcOffset=0,this._installMouseTrap(),this.own(i.after(A,"getNode",(function(){return _.getBox()}))),d.loadActions([{id:"equation-editor-bridge.backspace",key:"backspace",enabled:!0,keyPriority:5,callback:t.hitch(this,"_handleDelete")},{id:"equation-editor-bridge.backspace",key:"delete",enabled:!0,keyPriority:5,callback:t.hitch(this,"_handleDelete")},{id:"equation-editor-bridge.escape",key:"escape",enabled:!0,callback:t.hitch(this,"_handleESC")},{id:"equation-editor-bridge.enter",enabled:!0,key:"enter",keyPriority:-5,callback:t.hitch(this,"_handleLineBreak")}]),this.own(i.after(r,"beforeBlock",t.hitch(this,"_handleBeforeBlock"))),this.own(i.after(r,"afterBlock",t.hitch(this,"_handleAfterBlock"))),this.own(i.after(r,"onNewStep",t.hitch(this,"_handleNewUndoStep"),!0)),this.own(i.after(g,"onChange",t.hitch(this,"_handleEquationCursorChange"))),this.own(e.observe("disabled",t.hitch(this,"_handleDisabledChange"))),this._installKeyDelegates(),this.own(i.after(N,"onFocus",t.hitch(this,"_showCursor"))),this.own(e.observe("active",function(t){e.get("disabled")||(t?this._showCursor():this._hideCursor())}.bind(this)))},_showCursor:function(){this._rtcCursor.show()},_hideCursor:function(){this._rtcCursor.hide()},convertToText:function(){return this._plainTextGeneratorHelper.convertSelection({node:this._equation.getRoot(),left:0,right:1})},handlePaste:function(e){var i={};this._mimeTypeHelper.acceptedMimeTypes().forEach((function(t){var n=e(t);n&&(i[t]=n)})),this._editManager.createBlock(t.hitch(this,(function(e){this._mimeTypeHelper.insertContent(e,i)})))},convertSelection:function(){if(!this._cursorController.hasSelection()){var e=this._equation.getRoot().children[0];return this._mimeTypeExportHelper.convertRange({node:e,left:0,right:e.children.length})}return this._mimeTypeExportHelper.convertSelection()},_handleDelete:function(){if(1===this._cursorController.availableCursorPositions())return this._deleteNode.call(null),!0},_handleESC:function(){c.isEmptyEquation(this._equation.getRoot())?this._deleteNode.call(null):this._rtcCursor.setPosition(this._equationnode.endPosition())},_handleLineBreak:function(){var e=this._cursorController.getPosition();if(c.categorizeNode(e.node)===c.CATEGORY.PLACEHOLDER_ATOM){var t=e.node.parent,i=this._equation.getParentAndIndex(t),n=i.parent;if("MathMatrix"===n.className&&1===n.cols&&i.index===n.children.length-1){var o=n.parent;if("MathRow"===o.className)if("MathRoot"===o.parent.className)return this._actionService.executeAction("equationeditor.backspace"),this._rtcCursor.setPosition(this._equationnode.endPosition()),this._rtcDocument.insertBreak(),!0}}},cursorOffsetFromXY:function(e,t){var i=this._caretController.getPositionFromXY(e,t);return i&&s.logicalFromPosition(i,this._equation.getRoot())||0},_getMathRootBox:function(){return n.contains(this._rootNode,"mwEquationEditor")?this._rootNode:this._rootNode.children[0]},_getEquationLeft:function(){return this._getMathRootBox().offsetLeft},_getEquationTop:function(){return this._getMathRootBox().offsetTop},caretCoordinatesFor:function(e){var t;if(e===this._rtcAnchorOffset&&this._cursor.hasSelection()){var i=this._selectionController.getSelectionSpan(),n=a.coordinatesFromSelection(i,this._rootNode);t={y:n.y,height:n.h,x:i.reversed?n.x+n.w:n.x}}if(!t){var o=s.positionFromLogical(e,this._equation.getRoot());t=a.coordinatesFromPosition(o,this._rootNode)}return t||(t={height:10,x:0,y:0}),t.width=1,t.pageX=this._viewHelper.getRootGeometry().x+t.x,t.x+=this._getEquationLeft(),t.y+=this._getEquationTop(),t},maxOffset:function(){return this._cursorController.availableCursorPositions()-1},setCursor:function(e,t){this._rtcOffset===e&&this._rtcAnchorOffset===t||(void 0===t?this._cursorController.setLogical(e):this._cursorController.setSelectionLogical(t,e),this._rtcOffset=e,this._rtcAnchorOffset=t)},_installMouseTrap:function(){var e=!1;this.own(this._mouseController.addMouseDown(t.hitch(this,(function(t){this._rtcCursor.externalMouseDown(),t.stopPropagation(),e=!0})),12)),this.own(this._mouseController.addMouseDoubleClick((function(t){t.stopPropagation(),e=!0}),12)),this.own(this._mouseController.addMouseMove((function(t){e&&t.stopPropagation()}),12)),this.own(this._mouseController.addMouseUp((function(t){e&&(t.stopPropagation(),e=!1)}),12))},_installKeyDelegates:function(){this._keyboardShortcutsModel.getActiveKeyBindings().forEach((function(e){this._keyHandlerController.add(e,t.hitch(this,(function(){if(!(1!==this._keyHandlerController._bindings[e]._handlers.length&&u.indexOf(e)<0||h.indexOf(e)>=0)){var t=this._keyboardShortcutsModel.getEnabledActionsForKeyBinding(e);d.executeActions(t)}})))}),this)},_handleBeforeBlock:function(){this._rtcEditBlockController.startEdit()},_handleNewUndoStep:function(e){var i=this._rtcEditBlockController.getActiveBlock();i.addCommands([e]),this._updateNode(),i.pushAndExecuteCommand({execute:t.hitch(this._focusController,"focus"),unexecute:function(){}})},_handleAfterBlock:function(){this._rtcEditBlockController.endEdit(),this._handleEquationCursorChange(),this._rtcCursor.onUpdate(!1,!1)},_handleDisabledChange:function(){this._attributes.get("disabled")?(this._cursor.clearSelection(),this._rtcOffset=void 0,this._rtcAnchorOffset=void 0,this._equationEditorManager.detachActionService(this._actionService),this._contextmenuContributor.disable()):(this._equationEditorManager.attachActionService(this._actionService),this._contextmenuContributor.enable())},_handleEquationCursorChange:function(){var e,t,i=this._cursorController.getLogical(),n=this._cursorController.getAnchorLogical();this._rtcOffset===i&&n===this._rtcAnchorOffset||(void 0!==n?(this._rtcOffset=n,this._rtcAnchorOffset=void 0,this._rtcCursor.releaseAnchor(),this._rtcCursor.setPosition(this._equationnode,{posInNode:n+1}),this._rtcCursor.fixAnchor(!0)):this._rtcCursor.releaseAnchor(),this._rtcOffset=i,this._rtcAnchorOffset=n,this._rtcCursor.setPosition(this._equationnode,{posInNode:i+1},!0),o("safari")&&(e=this._scrollPane.scrollLeft,t=this._scrollPane.scrollTop),this._focusController.focus(),o("safari")&&(this._scrollPane.scrollLeft=e,this._scrollPane.scrollTop=t))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(261),i(314)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(t,{pluginId:"helper.exportplaintext",pluginFamily:"copypaste",pluginPriority:20,pluginDependencies:["helper.mimetypeexport"],constructor:function(e){this.own(e.addExportContributor(this._generateTextMIMEType))},_generateTextMIMEType:function(){return[{flavor:i.TEXT,content:""},{flavor:i.COPY_FOR_COMMAND_WINDOW,content:""}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(5005),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},onFocus:function(){},onBlur:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5007)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(313),i(314),i(439)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e(null,{_PRIORITY:55,constructor:function(e){e.registerMimeHandler(n.MATHML_PRESENTATION,t.hitch(this,"_convertFromMimeData"),this._PRIORITY),e.registerNodeConverter(o,t.hitch(this,"_convertFromEquationNode")),e.registerPasteHandler(o,t.hitch(this,"_handlePaste"))},_handlePaste:function(e,t,i){return(!e||0!==e.getStartPosition().getOffset()&&e.getEndPosition().getOffset()!==e.getEndPosition().getNode().maxOffset())&&((!t||0!==t.getOffset()&&t.getOffset()!==t.getNode().maxOffset())&&((e?e.getStartPosition().getNode():t.getNode()).getEditorBridge().handlePaste(i),!0))},_convertFromEquationNode:function(e){var t=e.getStartPosition().getNode();if(t.isInstanceOf(o)){var r=e.getStartPosition(),a=e.getEndPosition();if(0===i.comparePositions(r,a))return[];var s=t.getEditorBridge();if(s){var l=s.convertSelection();return l.push({flavor:n.MATLAB_RICHTEXT,content:void 0}),l}}return[]},_convertFromMimeData:function(e){return[new o({className:"EquationNode",encoding:"mathml",mathmlString:e}).serialize()]},priority:function(){return 55}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5009)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(683),i(453),i(548),i(439),i(402),i(252)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([a],{constructor:function(){},getApplicableNodeClass:function(){return o},visit:function(e,t,i,n){this._writeMathML(e,t)},_writeMathML:function(e,n){var o=n.getMathMLString();if(""===o){var a=this._getTeXRenderer(),s=a.setDisplaystyleIfNeeded(n.getTeXString(),!0),l=a.getModel(s),c={},d=n.getAltTextString();d&&(c.annotations={},c.annotations.altText=d),o=t.export([l],c)}0===o.indexOf("<math")&&-1===o.indexOf(i.XMLNSMWMMLX_PREFIX)&&(o="<math "+i.XMLNSMWMMLX+o.slice(5));var u=n.parent.parent&&n.parent.parent.childrenAreContainers,h=document.createElement(!u&&n.getDisplayStyle()?r.INFORMALEQUATION:r.INLINEEQUATION);h.innerHTML=o,e.appendElement(h)},_getTeXRenderer:function(){return this._texRenderer||(this._texRenderer=new n({equationFormat:"tex",cacheFontMetrics:!1})),this._texRenderer}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5011)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(439),i(252)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(){},getApplicableNodeClass:function(){return t},visit:function(e){return e.addHelpText("<equation>"),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5013)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(683),i(548),i(578),i(452),i(439),i(579),i(252),i(829)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){"use strict";return e([s],{_SCALING:2,_EQIMAGEFILE_PREFIX:"eq",_EQIMAGE_EXTENSION:".png",constructor:function(){this._texRenderer=null},getApplicableNodeClass:function(){return r},reset:function(){this._equationCounter=0},visit:function(e,t,i,n,o){return o.equationsAsMathML?this._writeMathML(e,t,o):this._writeImageURI(e,t,o),!0},_writeImageURI:function(e,t,i){var o=this._SCALING;if(t.renderedEquationPromise){var r=a.exportDomnodeToImageURLPromise(t.renderedEquationPromise,o);e.addToBody(r.then(function(e){if(!e)return"";if(e.simpleEquation)return a.simpleEquationToHTML(e.simpleEquation);var o="";o="tex"===t.getEncoding()?'texencoding="'+n.escapeHTML(t.getTeXString())+'"':'mathmlencoding="'+n.escapeHTML(t.getMathMLString())+'"';var r=t.getAltTextString();return r&&(r='alt="'+n.escapeHTML(r)+'" '),i.imagePath?this._writeToPath(e.dataURL,i.imagePath).then(function(t){return this._createSpan(e,t,o,r)}.bind(this)):this._createSpan(e,e.dataURL,o,r)}.bind(this)))}},_writeMathML:function(e,i,n){var o=i.getMathMLString();if(""===o){var r=this._getTeXRenderer(),a=i.getTeXString();r.hasExplictMathMode(a)||(a=i.getDisplayStyle()?"$$"+a+"$$":"$"+a+"$");var s=r.getModel(a);o=t.export([s])}e.addToBody(o)},_getTeXRenderer:function(){return this._texRenderer||(this._texRenderer=new i({equationFormat:"tex",cacheFontMetrics:!1})),this._texRenderer},_createSpan:function(e,t,i,n){var o=this._SCALING;return"<span "+i+' style="vertical-align:'+Math.round(e.verticalAlign)+'px"><img src="'+t+'" width="'+e.width/o+'" height="'+e.height/o+'" '+n+"/></span>"},_writeToPath:function(e,t){this._equationCounter+=1;var i=t+this._EQIMAGEFILE_PREFIX+this._equationCounter+this._EQIMAGE_EXTENSION;return l.writeToPath(e,i).then((function(){return"file:///"+i}),(function(){return e}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5015)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(548),i(439),i(579),i(252)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e([o],{_EQUATION_INLINE_DELIMITER:"$",_EQUATION_DISPLAY_DELIMITER:"$$",constructor:function(){this._texRenderer=null},getApplicableNodeClass:function(){return i},visit:function(e,t,i,n,o){var r=t.getTeXString();r=r.split("\n").join("");var a=t.getDisplayStyle()&&!t.rootContainer().childrenAreContainers?this._EQUATION_DISPLAY_DELIMITER:this._EQUATION_INLINE_DELIMITER;return e.addMCode(a+r+a),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5017)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(439),i(252)],o=i.dj.d(n,(function(e,t,i){"use strict";return e([i],{_DISPLAY_STYLE_COMMAND:"\\displaystyle ",_EQUATION_INLINE_DELIMITER:"$",_EQUATION_DISPLAY_DELIMITER:"$$",_DisplayModeEnum:{FULL_DISPLAY:0,MIXED:1,FULL_INLINE:2},constructor:function(){},getApplicableNodeClass:function(){return t},visit:function(e,t,i,n,o){var r=t.getTeXStringFromModel();if(""===r)return!0;var a=this._getDisplayModeForEquation(t);return e.addToBody(this._wrapEquation(a,r)),!0},_getDisplayModeForEquation:function(e){var t=this._DisplayModeEnum.FULL_INLINE;return e.getDisplayStyle()&&(t=e.rootContainer().childrenAreContainers?this._DisplayModeEnum.MIXED:this._DisplayModeEnum.FULL_DISPLAY),t},_wrapEquation:function(e,t){return t=(t=t.replace(/^\$+/,"")).replace(/\$+$/,""),e===this._DisplayModeEnum.FULL_DISPLAY?this._EQUATION_DISPLAY_DELIMITER+t+this._EQUATION_DISPLAY_DELIMITER:(e===this._DisplayModeEnum.MIXED&&(t=this._DISPLAY_STYLE_COMMAND+t),this._EQUATION_INLINE_DELIMITER+t+this._EQUATION_INLINE_DELIMITER)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5019)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(221),i(225),i(439),i(579),i(252),i(357),i(426)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([a],{_UP_SCALING:4,_STYLES:["font-family","font-size","font-style","font-weight","color"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return o},visit:function(e,t,n,o,a){var c=this._isSimpleEquation(this._view.getNodeBox(t));if(c){var d=l.createFOElementWithStyles(s.INLINE,c,this._STYLES,this._view);return d.textContent=c.textContent,void e.appendElement(d)}var u=l.createFOElement(s.EXTERNAL_GRAPHIC),h=r.exportDomnodeToImageURL(this._view.getNodeBox(t),s.PX_PT_RATIO*this._UP_SCALING);if(h){u.setAttribute("src",h.dataURL),u.setAttribute("content-height",Math.floor(h.height/this._UP_SCALING)+s.POINT),u.setAttribute("content-width",Math.floor(h.width/this._UP_SCALING)+s.POINT);var p=h.verticalAlign*s.PX_PT_RATIO+(i("mac")?0:1);u.setAttribute("vertical-align",p+s.POINT),e.appendElement(u)}},_isSimpleEquation:function(e){var i,o,r,a=n(".MathEquation",e)[0];if(a&&1===a.children.length&&(i=a.children[0]),i&&1===i.children.length&&(o=i.children[0]),o&&1===o.children.length&&(r=o.children[0]),r&&t.contains(r,"MathTextBox")&&!t.contains(r,"symbol"))return r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5021)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.serializers.nodes.equation","rtc.export.docx.image","rtc.view"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(319),i(300),i(579)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{_MAX_WIDTH_4_EQUATIONS:1920,_SCALING_EQUATIONS:2,constructor:function(e,t,i){this._equation=e,this._image=t,this._view=i},write:function(e,r){t.assert(r.opcPackage,"Required argument missed: 'opcPackage'");var a=o.exportDomnodeToImageURL(this._view.getNodeBox(e.node),this._SCALING_EQUATIONS,this._MAX_WIDTH_4_EQUATIONS);return a?this._image.write(a,{opcPackage:r.opcPackage,scalingFactor:this._SCALING_EQUATIONS}):n.createXMLElement(i.RUN_OF_TEXT_TAG_NAME)},getXMLType:function(){return this._equation.getXMLType()},getNodeType:function(){return this._equation.getNodeType()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5023),i(205)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(i,{requires:function(){return{createInstance:["rtc.focusservice","rtc.cursor","rtc.actionservice","rtc.hyperlinkservice","rtc.richtext.equationcontroller","rtc.executionservice"]}},createInstance:function(e,i,n,o,r,a){var s={};return s.focusService=e,s.cursor=i,s.actionService=n,s.hyperlinkService=o,s.equationController=r,s.executionService=a,new t(s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(251),i(5024)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(null,{constructor:function(e){e=e||{},this._focusService=e.focusService,this._cursor=e.cursor,this._actionService=e.actionService,this._hyperlinkService=e.hyperlinkService,this._equationController=e.equationController,this._executionService=e.executionService,this._actionService.loadActions([{id:i.EQUATIONS.LATEX_EDITOR_ACTION,enabled:!0,key:"ctrl_shift_l",platformKey:{mac:"meta_shift_l"},callback:this._editLaTeXEquation.bind(this)}]),this._connections=[],this._connections.push(t.after(this._cursor,"onChange",this._updateActions.bind(this))),this._connections.push(t.after(this._equationController,"onActionsNeedUpdate",this._updateActions.bind(this))),this._connections.push(t.after(this._cursor,"onDoubleClick",this._doubleClick.bind(this)))},_updateActions:function(){this._actionService.updateAction(i.EQUATIONS.LATEX_EDITOR_ACTION,{enabled:this._equationController.canEditLaTeXEquation()})},_doubleClick:function(){this._equationController.equationUnderCursor("tex")&&(this._cursor.resetAction(),this._editLaTeXEquation())},_dlgHelp:function(){this._executionService.isMessageServiceRunning&&this._executionService.isMessageServiceRunning()?this._hyperlinkService.openUrl("matlab:helpview(fullfile(docroot,'matlab','helptargets.map'),'edit_equation')"):this._hyperlinkService.openUrl("https://www.mathworks.com/help/matlab/matlab_prog/insert-equations.html")},_dlgClose:function(){this.eqnDlg=null,this._focusService.setFocus()},_dlgAccept:function(e){this._equationController.updateDocument(e),setTimeout(function(){this._focusService.setFocus()}.bind(this),0)},_editLaTeXEquation:function(){if(!this._actionService.getAction(i.EQUATIONS.LATEX_EDITOR_ACTION).enabled)return!1;if(!this._equationController.canEditLaTeXEquation())return!1;var e=this._equationController.equationUnderCursor("tex"),t={encoding:"tex",currentNode:e,texString:e?e.getTeXString():this._cursor.selectedText(),altTextString:e?e.getAltTextString():"",displayStyle:e?e.getDisplayStyle():""===this._cursor.getNode().getText().trim()};return this.eqnDlg=new n(this._dlgClose.bind(this),this._dlgAccept.bind(this),this._dlgHelp.bind(this),t),!0},dispose:function(){this._connections.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(832),i(208),i(211),i(223),i(206),i(215),i(216),i(255),i(1461),i(258),i(900),i(5025),i(273),i(262),i(548),i(243),i(413),i(5030)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return e([s,l,c],{templateString:b,_DIALOG_CSS_CLASS:"rteEquationsDialog",_DIALOG_TEXTAREA_MINWIDTH:"140px",_DIALOG_TEXTAREA_MINHEIGHT:"40px",_DIALOG_TEXTAREA_WIDTH:"100%",_DIALOG_TEXTAREA_HEIGHT:"100%",_DIALOG_MINHEIGHT:"300px",constructor:function(e,t,i,n){this._closeCallBack=e,this._acceptCallBack=t,this._helpCallBack=i,this._info=n},postCreate:function(){this.inherited(arguments),this.equationCodeLabel.innerHTML=p.codeLabel,this.previewLabel.innerHTML=p.previewLabel,this.equationAltTextLabel.innerHTML=p.altTextLabel,this._equationDialogWidget=g.createDialog({title:p.title,content:this,buttons:[f.OK,f.CANCEL,f.HELP],className:this._DIALOG_CSS_CLASS,dialogType:g.MODAL,draggable:!0,resizable:!0}),this._equationDialogWidget.addButtonEventListener(f.OK,t.hitch(this,"onOK"),!1),this._equationDialogWidget.addButtonEventListener(f.CANCEL,t.hitch(this,"onCancel"),!1),this._equationDialogWidget.addButtonEventListener(f.HELP,t.hitch(this,"onHelp"),!1),this._equationDialogWidget.domNode.style.minHeight=this._DIALOG_MINHEIGHT,this._createTextAreaField(),this._createTextInputField();var e={equationFormat:"tex",strictTeX:!0};this.renderer=new m(e),this._renderPreview(!0)},_createTextAreaField:function(){this.codeTextInput=new v,this.codeTextInput.placeAt(this._equationDialogWidget.domNode.querySelector(".textAreaWidgetContainer")),this.codeTextInput.startup(),this.codeTextInput.domNode.style.width=this._DIALOG_TEXTAREA_WIDTH,this.codeTextInput.domNode.style.height=this._DIALOG_TEXTAREA_HEIGHT,this.codeTextInput.domNode.style.minWidth=this._DIALOG_TEXTAREA_MINWIDTH,this.codeTextInput.domNode.style.minHeight=this._DIALOG_TEXTAREA_MINHEIGHT,this.codeTextInput.on("input",t.hitch(this,"onInput")),this.codeTextInput.inputNode.value=this._info.texString,this.codeTextInput.inputNode.resizable=!0,setTimeout(function(){this.codeTextInput.inputNode.focus()}.bind(this),0)},_createTextInputField:function(){this.altTextInput=new u,this.altTextInput.placeAt(this._equationDialogWidget.domNode.querySelector(".eqnAltText")),this.altTextInput.startup(),this.altTextInput.domNode.style.width=this._DIALOG_TEXTAREA_WIDTH,this.altTextInput.inputNode.value=this._info.altTextString},onTextKeyup:function(e){},onInput:function(){this.textDirty||(setTimeout(function(){this._renderPreview()}.bind(this),250),this.textDirty=!0)},_renderPreview:function(e){if(!this._closing&&(this.textDirty||e)){o.empty(this.previewTextInput);var t=this.codeTextInput.inputNode.value;if(this._equationDialogWidget.disableButton(f.OK),this.textDirty=!1,t.length)this.renderer.render(this.renderer.setDisplaystyleIfNeeded(t,!0),this.previewTextInput,{displaystyle:this._info.displayStyle}).then(function(e){e&&!e.foundEncodingIssues?this._equationDialogWidget.enableButton(f.OK):this._equationDialogWidget.disableButton(f.OK)}.bind(this))}},onClose:function(){this._closing=!0,this._closeCallBack()},onCancel:function(){this._closing=!0,this._equationDialogWidget.close()},onHelp:function(){this._helpCallBack()},onOK:function(){this._closing=!0,this._info.texString=this.codeTextInput.inputNode.value,this._info.altTextString=this.altTextInput.inputNode.value,this._acceptCallBack(this._info),this._equationDialogWidget.close()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(5026),i(5027),i(5028),i(5029)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/equationDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={altTextLabel:"代替テキスト:",codeLabel:"LaTeX の数式コードを入力:",helpLabel:"ヘルプ",previewLabel:"プレビュー:",title:"式の編集"}},function(e,t,i){e.exports={altTextLabel:"대체 텍스트:",codeLabel:"LaTeX 수식 코드 입력:",helpLabel:"도움말",previewLabel:"미리보기:",title:"수식 편집"}},function(e,t,i){e.exports={altTextLabel:"替换文本:",codeLabel:"输入 LaTeX 方程代码:",helpLabel:"帮助",previewLabel:"预览:",title:"编辑方程"}},function(e,t,i){e.exports={root:{altTextLabel:"Alt Text:",codeLabel:"Enter LaTeX equation code:",helpLabel:"Help",previewLabel:"Preview:",title:"Edit Equation"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="rteEquationsDialog" data-dojo-attach-point="contentNode" data-dojo-attach-event="onkeyup:onTextKeyup" style="height: calc(100% - 20px);">\n\n <div class="label">\n <label data-dojo-attach-point =\'equationCodeLabel\'></label>\n </div>\n <div class="eqnCode textAreaWidgetContainer" style="height: calc(60% - 43px);" > </div>\n\n <div class="label" tabindex="-1">\n <label tabindex="-1" data-dojo-attach-point =\'previewLabel\'></label>\n </div>\n <div class="preview" tabindex="-1" style="height: calc(40% - 12px); ">\n <div class="previewTextarea" tabindex="-1" data-dojo-attach-point="previewTextInput"\n name="previewTextInput" id="previewTextInput" style="width: calc(100% - 7px); height: calc(100% - 12px); min-width: 60px; min-height: 40px;"></div>\n </div>\n <div class="alttextlabel">\n <label data-dojo-attach-point =\'equationAltTextLabel\'></label>\n </div>\n <div class="eqnAltText" > </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(678),i(5032),i(5034),i(5036),i(5042),i(5045),i(5047),i(5049),i(5051),i(5053),i(5055),i(5057),i(5059),i(5061),i(5063),i(5065),i(5067),i(5069),i(5071),i(5073),i(5075),i(5078),i(5080),i(5082),i(5085),i(5090),i(5092),i(5094),i(5096),i(5098),i(5101),i(5103),i(5105),i(5107),i(5109),i(5111),i(5113),i(5115),i(5117),i(5119),i(5120),i(5121),i(5122),i(5123),i(5125),i(5127),i(5129),i(5131),i(5133),i(5134),i(5135),i(5137),i(5139),i(5141),i(5143),i(5146),i(5148),i(5150)],o=i.dj.d(n,(function(e){return new e("LiveAppsPluginRegistry",[{id:"rtc.liveapps.actionhandler",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppActionHandlerProvider",family:"rtc.liveapps",subsystem:"hideallcodeplugins"},{id:"rtc.liveapps.componentddux",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppComponentCounterDDUXProvider",family:"rtc.liveapps",subsystem:"rtc.ddux.composition.contributors"},{id:"rtc.liveapps.ddux",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppActionDDUXContributorProvider",family:"rtc.liveapps",subsystem:"rtc.ddux.contributors"},{id:"rtc.liveapps.visualizetaskmetadata",path:"rtc/plugins/language/matlab/codingui/liveapps/tasks/visualize/LiveAppVisualizeMetadataProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.visualizecodemetadata",path:"rtc/plugins/language/matlab/codingui/liveapps/tasks/visualize/LiveAppVisualizeCodeMetadataProvider",family:"rtc.liveapps",subsystem:"rtc.liveappcodemetadata"},{id:"rtc.liveapps.touch",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppTouchHandlerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.autorun",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppAutorunProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.backend",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppBackendServiceProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.codemanager",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppCodeManagerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.contextmenumanager",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppContextMenuManagerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.cursorhandler",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppCursorHandlerProvider",family:"rtc.liveapps",subsystem:"hideallcodeplugins"},{id:"rtc.liveapps.controller",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppControllerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.ddux.cleaner",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDDUXCleanerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.documentdeletionhandler",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentDeletionHandlerProvider",family:"rtc.liveapps",subsystem:"hideallcodeplugins"},{id:"rtc.liveapps.documenthandler",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentHandlerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.documentinsertbreakhandler",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentInsertBreakHandlerProvider",family:"rtc.liveapps",subsystem:"hideallcodeplugins"},{id:"rtc.liveapps.documentinserttexthandler",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppDocumentInsertTextHandlerProvider",family:"rtc.liveapps",subsystem:"hideallcodeplugins"},{id:"rtc.liveapps.editorkeyhandler",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppEditorKeyHandlerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.enablestate",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppEnableStateProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.executionmanager",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppExecutionManagerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.focusmanager",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppFocusManagerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.helphandler",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppHelpHandlerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.hierarchymanager",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppHierarchyManagerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.insertemptycodeline",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppInsertEmptyCodeLineHandlerProvider",family:"rtc.liveapps",subsystem:"hideallcodeplugins"},{id:"rtc.liveapps.uifigurehandler",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppUIFigureHandlerProvider",family:"rtc.liveapps",subsystem:"rtc.documentrenderedcontributors"},{id:"rtc.liveapps.viewmodel",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppViewModelProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.viewstatemanager",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppViewStateManagerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.widgetkeyhandler",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppWidgetKeyHandlerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.alignmentrules",path:"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppAlignmentRulesContributorProvider",family:"rtc.liveapps",subsystem:"rtc.embeddedoutputs.view.alignmentrules"},{id:"rtc.liveapps.currentoutputhandler",path:"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCurrentOutputHandlerProvider",family:"rtc.liveapps",subsystem:"rtc.embeddedoutputs.currentoutputservice.handlers"},{id:"rtc.liveapps.customexecutiondatacontributor",path:"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCustomExecutionDataContributorProvider",family:"rtc.liveapps",subsystem:"rtc.embeddedoutputs.customexecutiondatacontributors"},{id:"rtc.liveapps.cutcopypastehandler",path:"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCutCopyPasteHandlerProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.editorcodegencontributor",path:"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppEditorCodeGenContributorProvider",family:"rtc.liveapps",subsystem:"rtc.embeddedoutputs.codegencontributors"},{id:"rtc.liveapps.currentexecutionlinecontributor",path:"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppCurrentExecutionLineContributorProvider",family:"rtc.liveapps",subsystem:"rtc.currentlinedecorator.contributors"},{id:"rtc.liveapps.hidefilter",path:"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppHideFilterProvider",family:"rtc.liveapps",subsystem:"rtc.view.hide.filters"},{id:"rtc.liveapps.switchviewrule",path:"rtc/plugins/language/matlab/codingui/liveapps/contributors/LiveAppSwitchViewRuleProvider",family:"rtc.liveapps",subsystem:"rtc.hidecode.switchview.rules"},{id:"rtc.liveapps.mvm",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppMvmServiceProvider",family:"rtc.liveapps"},{id:"rtc.liveapps.nodes.inlinenode.contentconverter",path:"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppInlineNodeContentConverterProvider",family:"rtc.liveapps",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.liveapps.nodes.integratedinlinenode.contentconverter",path:"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppIntegratedInlineNodeContentConverterProvider",family:"rtc.liveapps",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.liveapps.nodes.integratedinlinenode.insertionrules",path:"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppIntegratedInlineNodeInsertionRulesProvider",family:"rtc.liveapps",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.liveapps.nodes.linenode.contentconverter",path:"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppLineNodeContentConverterProvider",family:"rtc.liveapps",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.liveapps.nodes.linenode.nodeconversionrules",path:"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppLineNodeConversionRulesProvider",family:"rtc.liveapps",subsystem:"rtc.nodeconversionrule"},{id:"rtc.liveapps.nodes.linenode.insertionrules",path:"rtc/plugins/language/matlab/codingui/liveapps/nodes/LiveAppLineNodeInsertionRulesProvider",family:"rtc.liveapps",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.liveapps.view.inlinenode.coordinateconverter",path:"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppInlineNodeCoordinateConverterProvider",family:"rtc.liveapps",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.liveapps.view.inlinenode.layouter",path:"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppInlineNodeLayouterProvider",family:"rtc.liveapps",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.liveapps.view.integratedinlinenode.coordinateconverter",path:"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppIntegratedInlineNodeCoordinateConverterProvider",family:"rtc.liveapps",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.liveapps.view.integratedinlinenode.layouter",path:"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppIntegratedInlineNodeLayouterProvider",family:"rtc.liveapps",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.liveapps.view.linenode.coordinateconverter",path:"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppLineNodeCoordinateConverterProvider",family:"rtc.liveapps",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.liveapps.view.linenode.layouter",path:"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppLineNodeLayouterProvider",family:"rtc.liveapps",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.liveapps.toolstripactionmanager",path:"rtc/plugins/language/matlab/codingui/liveapps/view/LiveAppToolstripActionManagerProvider",family:"rtc.liveapps"},{id:"rtc.export.docbookxml.liveapplinenode",path:"rtc/plugins/language/matlab/codingui/liveapps/export/LiveAppLineNode2DocBookXMLProvider",family:"rtc.liveapps",subsystem:"rtc.export.docbookxmlwriters"},{id:"rtc.export.xslfo.liveapplinenode",path:"rtc/plugins/language/matlab/codingui/liveapps/export/LiveAppLineNode2XSLFOProvider",family:"rtc.liveapps",subsystem:"rtc.export.xslfowriters"},{id:"rtc.export.docx.liveapplinenode",path:"rtc/plugins/language/matlab/codingui/liveapps/export/LiveAppLineNode2DOCXProvider",family:"rtc.liveapps",subsystem:"rtc.export.docxwriters"},{id:"rtc.export.html.liveapplinenode",path:"rtc/plugins/language/matlab/codingui/liveapps/export/LiveAppLineNode2HTMLProvider",family:"rtc.liveapps",subsystem:"rtc.export.htmlwriters"},{id:"rtc.matlabmobile.liveapps",path:"rtc/plugins/language/matlab/codingui/liveapps/LiveAppMobileHandlerProvider",family:"rtc.liveapps"},{id:"rtc.serializers.containers.liveapplinecontainer",path:"rtc/model/io/serializers/providers/containers/LiveAppLineContainerSerializerProvider",subsystem:"rtc.serializer",family:"rtc.liveapps"},{id:"rtc.serializers.nodes.liveappintegratedinline",path:"rtc/model/io/serializers/providers/nodes/LiveAppIntegratedInlineSerializerProvider",subsystem:"rtc.serializer",family:"rtc.liveapps"}])}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5033)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.cursorcontroller","rtc.actionservice","rtc.eventhandler","rtc.viewready","rtc.liveapps.documentdeletionhandler","rtc.liveapps.codemanager","rtc.liveapps.hierarchymanager","rtc.liveapps.backend","rtc.liveapps.uifigurehandler","rtc.liveapps.helphandler","rtc.liveapps.executionmanager","rtc.liveapps.viewstatemanager","rtc.liveapps.focusmanager","rtc.liveapps.documenthandler","rtc.liveapps.cursorhandler","rtc.liveapps.ddux","rtc.actionloggerserviceblacklist","rtc.liveapps.enablestate","rtc.liveapps.toolstripactionmanager","rtc.liveapps.autorun"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(253),i(249),i(260),i(399),i(251),i(941),i(625),i(942),i(283),i(932)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(r,{constructor:function(e,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){this._document=e,this._internalDocument=i,this._cursorController=n,this._actionService=o,this._liveAppDocumentDeletionHandler=s,this._liveAppHierarchyManager=c,this._liveAppBackendService=d,this._liveAppHelpHandler=h,this._liveAppExecutionManager=p,this._liveAppViewStateManager=f,this._liveAppFocusManager=g,this._liveAppDocumentHandler=m,this._liveAppCursorHandler=_,this._liveAppDDUXContributor=v,this._actionLoggerServiceBlacklist=b,this._liveAppEnableState=y,this._toolstripActionManager=C,this._liveAppAutorun=T,this._cursor=n.getCursors()[0],this._inHiddenCode=!1,o.loadActions(this._getActions()),this._blacklistLoggingOfLiveAppActions();var E=t.after(a,"onViewReady",function(){this.own(t.after(this._cursor,"onChange",this._updateActionsOnCursorChange.bind(this)),t.after(n,"onUpdate",this._updateActionsOnCursorChange.bind(this)),t.after(l,"onCodeModelUpdated",this._updateActionsOnCodeModelUpdated.bind(this),!0),t.after(u,"onLiveAppLineInitialized",this._updateActionsOnLiveAppLineInitialized.bind(this),!0),t.after(y,"onNotifyingEnableStateUpdate",this._updateActionsOnNotifyingEnableStateUpdate.bind(this),!0),t.after(e,"onChange",this._updateActionsOnDocumentChange.bind(this),!0),t.after(u,"onLiveAppUpdateEditDone",this._updateActionsOnLiveAppUpdateEditDone.bind(this),!0),t.after(u,"onGeneratedCodeUpdated",this._updateActionsOnGeneratedCodeUpdated.bind(this),!0),t.after(r,"onMouseDown",this._updateActionsOnMouseDown.bind(this)),t.after(C,"onItemsLoaded",this._handleItemsLoaded.bind(this))),this._updateActionsOnViewReady(),E.remove()}.bind(this));this.own(E)},_getActions:function(){return[{id:l.INSERTTASK,enabled:!1,callback:function(){return!0}},{id:l.HELP,key:"f1",shortcut:i.helpShortcut,enabled:!1,callback:this._handleHelp.bind(this),text:i.help},{id:l.RESET,enabled:!1,callback:this._handleReset.bind(this),text:i.reset},{id:l.CONVERT_TO_CODE,enabled:!1,callback:this._handleConvertToCode.bind(this),text:i.convertTaskToEditableCode},{id:l.REMOVE_TASK,enabled:!1,callback:this._handleRemoveTask.bind(this),text:i.removeTask},{id:l.TOGGLE_CONTROLS_AND_CODE,enabled:!1,callback:this._handleToggleControlsAndCode.bind(this),text:i.controlsAndCode},{id:l.TOGGLE_CONTROLS_ONLY,enabled:!1,callback:this._handleToggleControlsOnly.bind(this),text:i.controlsOnly},{id:l.TOGGLE_CODE_ONLY,enabled:!1,callback:this._handleToggleCodeOnly.bind(this),text:i.codeOnly},{id:l.TOGGLE_AUTORUN_SECTION,enabled:!1,callback:this._handleToggleAutorunSection.bind(this),text:i.autorunSection},{id:l.EXPAND_ALL_LIVE_APPS,enabled:!0,callback:this._handleExpandAllLiveApps.bind(this)}]},_blacklistLoggingOfLiveAppActions:function(){this._actionLoggerServiceBlacklist.addAction(l.TOGGLE_AUTORUN_SECTION),this._actionLoggerServiceBlacklist.addAction(l.TOGGLE_CODE_ONLY),this._actionLoggerServiceBlacklist.addAction(l.TOGGLE_CONTROLS_ONLY),this._actionLoggerServiceBlacklist.addAction(l.TOGGLE_CONTROLS_AND_CODE),this._actionLoggerServiceBlacklist.addAction(l.CONVERT_TO_CODE)},enableForHiddenCode:function(){this._inHiddenCode=!1,this._updateInsertTaskAction()},disableForHiddenCode:function(){this._inHiddenCode=!0,this._updateInsertTaskAction()},_updateActionsOnCursorChange:function(){var e=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();this._updateInsertTaskAction(),this._updateHelpAction(e),this._updateResetAction(e),this._updateConvertToCodeAction(e),this._updateRemoveTaskAction(e),this._updateToggleViewActions(e),this._updateToggleAutorunSectionAction(e),this._updateActionStatesOfOtherFeatures()},_updateActionsOnCodeModelUpdated:function(e){var t=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();t===e&&(this._updateConvertToCodeAction(t),this._updateToggleViewActions(t),this._updateToggleAutorunSectionAction(t),this._updateActionStatesOfOtherFeatures())},_updateActionsOnLiveAppLineInitialized:function(e){var t=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();t===e&&(this._updateHelpAction(t),this._updateResetAction(t),this._updateToggleViewActions(t),this._updateToggleAutorunSectionAction(t))},_updateActionsOnNotifyingEnableStateUpdate:function(){this._updateInsertTaskAction()},_updateActionsOnDocumentChange:function(e){o.hasEventType(e,n.READONLY_STATE_CHANGE_EVENT)&&this._updateActionStatesOfOtherFeatures()},_updateActionsOnLiveAppUpdateEditDone:function(){this._updateActionStatesOfOtherFeatures()},_updateActionsOnGeneratedCodeUpdated:function(){this._updateActionStatesOfOtherFeatures()},_updateActionsOnMouseDown:function(){this._updateActionStatesOfOtherFeatures()},_updateActionsOnViewReady:function(){this._updateInsertTaskAction()},_handleItemsLoaded:function(){this._updateInsertTaskAction()},_updateInsertTaskAction:function(){var e={enabled:!this._inHiddenCode&&this._liveAppEnableState.isEnabledAtCurrentPosition()&&!this._cursorController.hasMultipleCursors()&&!this._cursor.isCursorReadOnly()&&this._toolstripActionManager.haveItemsLoaded()};this._actionService.updateAction(l.INSERTTASK,e)},_updateHelpAction:function(e){var t={enabled:this._isInitializedApp(e)};this._actionService.updateAction(l.HELP,t)},_updateResetAction:function(e){var t={enabled:this._isInitializedApp(e)};this._actionService.updateAction(l.RESET,t)},_updateConvertToCodeAction:function(e){var t={enabled:!!e&&!e.isReadOnly()&&d.hasGeneratedCode(e)};this._actionService.updateAction(l.CONVERT_TO_CODE,t)},_updateRemoveTaskAction:function(e){var t={enabled:!!e&&!e.isReadOnly()};this._actionService.updateAction(l.REMOVE_TASK,t)},_updateToggleViewActions:function(e){this._updateToggleControlsAndCodeAction(e),this._updateToggleControlsOnlyAction(e),this._updateToggleCodeOnlyAction(e)},_updateToggleControlsAndCodeAction:function(e){var t={enabled:this._isViewOptionEnabled(e)};this._actionService.updateAction(l.TOGGLE_CONTROLS_AND_CODE,t)},_updateToggleControlsOnlyAction:function(e){var t={enabled:this._isViewOptionEnabled(e)};this._actionService.updateAction(l.TOGGLE_CONTROLS_ONLY,t)},_updateToggleCodeOnlyAction:function(e){var t={enabled:this._isViewOptionEnabled(e)};this._actionService.updateAction(l.TOGGLE_CODE_ONLY,t)},_updateToggleAutorunSectionAction:function(e){var t={enabled:this._isInitializedApp(e)&&!d.isInCodeOnlyView(e)};this._actionService.updateAction(l.TOGGLE_AUTORUN_SECTION,t)},_updateActionStatesOfOtherFeatures:function(){var e=this._liveAppCursorHandler.getSelectedLiveApp();e&&(e.some((function(e){return d.hasGeneratedCode(e)}))&&(this._liveAppCursorHandler.isPendingReadOnlyStateChange()||[a.COMMENT.COMMENT.Action,a.COMMENT.UNCOMMENT.Action,a.FORMAT_CODE.SMART_INDENT_ACTION,a.INDENT.INDENT_ACTION,a.INDENT.OUTDENT_ACTION,a.COMMENT.WRAP_COMMENT.Action,"rtc_changecase"].forEach((function(e){this._actionService.updateAction(e,{enabled:!1})}),this)))},_handleHelp:function(){var e=d.getLiveAppLineNode(this._cursor.getCursorPosition());return!!e&&(this._liveAppFocusManager.getSelectedLiveApp()===e&&(this._liveAppDDUXContributor.logLiveTaskAction(l.HELP,e.getAppIdentifier(),"contextMenu"),this._liveAppHelpHandler.openHelp(e),!0))},_handleReset:function(){var e=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();return!!e&&(this._liveAppDDUXContributor.logLiveTaskAction(l.RESET,e.getAppIdentifier(),"contextMenu"),this._liveAppBackendService.resetApp(e),!0)},_handleConvertToCode:function(){var e=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();return!!e&&(this._liveAppDDUXContributor.logLiveTaskAction(l.CONVERT_TO_CODE,e.getAppIdentifier(),"contextMenu"),this._liveAppDocumentDeletionHandler.convertLiveAppIntoPlainCodeWithUndoRedo(e,!0),this._cursorController.onUpdate(!1,!0),!0)},_handleRemoveTask:function(){var e=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();return!!e&&(this._liveAppDDUXContributor.logLiveTaskAction(c.DELETE,e.getAppIdentifier(),"contextMenu"),this._liveAppDocumentDeletionHandler.removeLiveAppCompletelyWithUndoRedo(e),this._cursorController.onUpdate(!1,!0),!0)},_handleToggleControlsAndCode:function(){var e=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();return!(!e||d.isInControlsAndCodeView(e))&&(this._liveAppDDUXContributor.logLiveTaskAction(l.TOGGLE_CONTROLS_AND_CODE,e.getAppIdentifier(),"contextMenu"),this._liveAppViewStateManager.updateViewState(e,u.CONTROLS_AND_CODE),this._liveAppFocusManager.focusLiveApp(e),!0)},_handleToggleControlsOnly:function(){var e=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();return!(!e||d.isInControlsOnlyView(e))&&(this._liveAppDDUXContributor.logLiveTaskAction(l.TOGGLE_CONTROLS_ONLY,e.getAppIdentifier(),"contextMenu"),this._liveAppViewStateManager.updateViewState(e,u.CONTROLS_ONLY),this._liveAppFocusManager.focusLiveApp(e),!0)},_handleToggleCodeOnly:function(){var e=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();return!(!e||d.isInCodeOnlyView(e))&&(this._liveAppDDUXContributor.logLiveTaskAction(l.TOGGLE_CODE_ONLY,e.getAppIdentifier(),"contextMenu"),this._liveAppViewStateManager.updateViewState(e,u.CODE_ONLY),this._liveAppFocusManager.focusLiveApp(e),!0)},_handleToggleAutorunSection:function(){return this._liveAppAutorun.handleToggleAutorunSection()},_handleExpandAllLiveApps:function(){var e=this._internalDocument.getFullRange(),t=d.getLiveAppLines(e),i=this._document.startBlockEdit();return t.forEach((function(e){this._liveAppDocumentHandler.updateContextWithoutUndoRedo(e,{view:u.CONTROLS_AND_CODE,collapsed:!1})}),this),this._document.endBlockEdit(i),!0},_isViewOptionEnabled:function(e){return this._isInitializedApp(e)&&!e.isReadOnly()&&!d.isCollapsed(e)&&d.hasGeneratedCode(e)},_isInitializedApp:function(e){return!(!e||!e.getStore().appName)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5035)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.ddux.cleaner"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(805),i(209)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_DEFAULT_GESTURE:"LiveApp",constructor:function(e){this._dduxCleaner=e},logLiveTaskAction:function(e,t,i){i=i||this._DEFAULT_GESTURE,this._dduxCleaner.clean(t).then(this._logCleanedData.bind(this,e,i))},_logCleanedData:function(e,t,i){var n={actionId:e,gesture:t,gestureSubType:i||""};this.onLogEvent(n)},onLogEvent:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5037)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.backend","rtc.liveapps.hierarchymanager","rtc.liveapps.ddux","rtc.liveapps.executionmanager","rtc.liveapps.viewmodel"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1462),i(207),i(208),i(625),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(i,{constructor:function(e,t,i,o,r){this._liveAppBackendService=e,this._liveAppHierarchyManager=t,this._liveAppDDUXContributor=i,this._liveAppExecutionManager=o,this.own(n.after(r,"onLiveAppViewCreated",this._handleLiveAppViewCreated.bind(this),!0)),this.own(n.after(e,"onAutoRunBackendChanged",this._handleAutorunBackendChanged.bind(this),!0))},_handleLiveAppViewCreated:function(e){r.isLiveAppLineNode(e)&&e.getWidget().on("autorunbuttonclick",this._handleAutorunButtonClick.bind(this,e))},_handleAutorunButtonClick:function(e,t){this._liveAppBackendService.autorunFrontendChanged(e);var i=o.TOGGLE_AUTORUN_SECTION+(t.mwEventData.newValue?"_on":"_off");this._liveAppDDUXContributor.logLiveTaskAction(i,e.getAppIdentifier(),"contextual_button"),this._liveAppExecutionManager.updateAutorunState(e,t.mwEventData.newValue)},_handleAutorunBackendChanged:function(e){var i=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();if(!i)return!1;this._updateAutorun(i,e.data),i.getInlineNode().getWidget().updateAutorunSectionTooltip(t.toolbarAutorunButtonEnabledWarningLabel,t.toolbarAutorunButtonDisabledWarningLabel,"warning")},_updateAutorun:function(e,t,i){var n=o.TOGGLE_AUTORUN_SECTION+(t?"_on":"_off");this._liveAppDDUXContributor.logLiveTaskAction(n,e.getAppIdentifier(),i),this._liveAppExecutionManager.updateAutorunState(e,t,i)},handleToggleAutorunSection:function(){var e=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();return!!e&&(this._updateAutorun(e,!e.getContext("autorun"),"contextMenu"),this._liveAppBackendService.autorunFrontendChanged(e),!0)}})}),e,t),e.exports=o},function(e,t,i){e.exports={AbstractTaskErrorMsg:"クラス ${0} は抽象クラスであるため、インスタンス化できません。matlab.task.LiveTask から継承した setup メソッド、generateCode メソッド、reset メソッドを含め、すべての抽象メソッドが実装されていることを確認してください。",BrowseLabel:"参照",CancelLabel:"キャンセル",DefaultDescription:"${0} の目的行",DescriptionLabel:"説明",DescriptionTooltip:"ライブ エディターのタスク ギャラリーと、コードの自動候補と自動補完に表示されるタスクの目的行。",DocLinkLabel:"ドキュメンテーションのリンク",DocLinkTooltip:"タスクのヘルプ アイコンをクリックしたときに開くタスク ドキュメンテーションにリンクします。",FileInPrivateFolder:"Cannot create metadata for files in private folder.",FileNameIsKeyword:"Name cannot be a MATLAB keyword. Rename file, and then open.",FileNameIsVarName:"File name '${0}' must start with a letter, contain only letters, numbers and underscores, and be shorter than 63 characters.",HelpIconTooltip:"タスクのクラス定義ファイルとタスクのメタデータが含まれるフォルダーを MATLAB パスに追加して、ライブ エディターのタスク ギャラリーと、コードの自動候補と自動補完にタスクを表示します。",HelpLabel:"ヘルプ",IconFileErrorMsg:"イメージは PNG、JPEG、JPG または GIF でなければなりません。",IconLabel:"アイコン",IconTooltip:"ライブ エディターのタスク ギャラリーに表示されるタスク アイコン。",InvalidFileName:"File '${0}' not found.",InvalidFilePath:"Invalid file path.",InvalidGeneralFileExtension:"File '${0}' must have a ${1} extension",InvalidInput:"The input argument must be a full or partial file path, or a file name.",InvalidModelErrorMsg:"タスクが含まれるフォルダーの resources フォルダー内にあるメタデータ ファイルが無効です。",InvalidModelWarningMsg:"タスクが含まれるフォルダー内の resources フォルダーにあるメタデータ ファイルが無効です。\n\nこのタスクのメタデータを保存すると、既存のメタデータ ファイルが上書きされます。",InvalidTaskFileFormat:"ファイル '${0}' は M ファイルではありません。",InvalidURLErrorMsg:"無効な外部 URL",KeywordsLabel:"キーワード",KeywordsTooltip:"コードの自動候補と自動補完にタスクを表示するときに使用するキーワード。",MetadataUITitle:"タスクのメタデータ",NameLabel:"名前 *",NameTooltip:"ライブ エディターのタスク ギャラリーと、コードの自動候補と自動補完に表示されるタスク名。",NoWriteAccessErrorMsg:"MATLAB には、タスクが含まれるフォルダーへの書き込みアクセス権限がありません。\n\nライブ タスクのメタデータが含まれる resources フォルダーを作成するには、書き込みアクセス権限が必要です。",NotOnPathDialogHeader:"フォルダーをパスに追加",NotOnPathDialogMessage:"ライブ エディターでタスクにアクセスできるようにするには、タスクのクラス定義ファイルとタスクのメタデータが含まれるフォルダーが MATLAB パス上になければなりません。",NotTaskClass:"File ${0} is not a valid live task class definition file because it does not inherit from ${1}.",NotValidTaskClass:"File ${0} is not a valid task class definition file.",OkLabel:"OK",PathCheckbox:"タスク ファイルが含まれるフォルダーを MATLAB パスに追加",RegistrationErrorMsg:"タスクのメタデータを構成中にエラーが発生しました。\n\n${0}",RegistrationInProgressMsg:"タスクのメタデータを構成しています...",RegistrationSuccessMsg:"タスクのメタデータが正常に構成されました。\n\nタスクをライブ エディターで使用するには、タスクとリソースが含まれるフォルダーを MATLAB パスに追加または保存します。",RegistrationSuccessMsgOnPath:"タスクのメタデータが正常に構成されました。",SelectFileHeader:"クラス定義ファイルの選択",TaskDetailsLabel:"タスクの詳細",TaskFileLabel:"タスクのクラス定義ファイル",TaskNameEmptyErrorMsg:"タスク名は空にできません",TaskRegistrationHeader:"ライブ タスク",UniqueIdLabel:"固有 ID",UniqueIdTooltip:"タスクの固有 ID",UpdateSuccessMsg:"タスクのメタデータが正常に更新されました。\n\nタスクをライブ エディターで使用するには、タスクとリソースが含まれるフォルダーを MATLAB パスに追加または保存します。",UpdateSuccessMsgOnPath:"タスクのメタデータが正常に更新されました。",componentNotInGridLayout:"Figure must contain only one GridLayout object, and no other objects.",hideCode:"コードを非表示",showCode:"コードの表示",toolbarAutorunButtonDisabledLabel:"セクションの自動実行が無効です。\n現在のセクションとタスクを実行するには、[セクションの実行] をクリックします。",toolbarAutorunButtonDisabledWarningLabel:"タスクによってセクションの自動実行が無効になりました。\n[セクションの実行] をクリックして、現在のセクションとタスクを実行してください。",toolbarAutorunButtonEnabledLabel:"セクションの自動実行が有効です。\nタスクを含む現在のセクションは変更時に自動的に実行されます。",toolbarAutorunButtonEnabledWarningLabel:"タスクによってセクションの自動実行が有効になりました。\nタスクが含まれる現在のセクションは、変更時に自動実行されます。",toolbarCodeButtonLabel:"コードの表示",toolbarHelpButtonLabel:"ヘルプ",validateVariableNameErrorMsgUnique:"変数名は一意でなければなりません",validateVariableNameErrorMsgValid:"変数名は有効でなければなりません"}},function(e,t,i){e.exports={AbstractTaskErrorMsg:"${0} 클래스는 추상 클래스이기 때문에 인스턴스화할 수 없습니다. matlab.task.LiveTask에서 상속된 setup, generateCode 및 reset 메서드를 포함하여 모든 추상 메서드를 구현했는지 확인하십시오.",BrowseLabel:"찾아보기",CancelLabel:"취소",DefaultDescription:"${0}의 목적을 요약하는 행",DescriptionLabel:"설명",DescriptionTooltip:"작업의 목적을 요약하는 행으로, 라이브 편집기 작업 갤러리와 자동 코드 제안 및 완성에 표시됩니다.",DocLinkLabel:"문서 링크",DocLinkTooltip:"작업 도움말 아이콘을 클릭하면 열리는 작업 문서로 연결되는 링크입니다.",FileInPrivateFolder:"Cannot create metadata for files in private folder.",FileNameIsKeyword:"Name cannot be a MATLAB keyword. Rename file, and then open.",FileNameIsVarName:"File name '${0}' must start with a letter, contain only letters, numbers and underscores, and be shorter than 63 characters.",HelpIconTooltip:"라이브 편집기 작업 갤러리와 자동 코드 제안 및 완성에 작업을 표시하려면 작업 클래스 정의 파일과 작업 메타데이터가 포함된 폴더를 MATLAB경로에 추가합니다.",HelpLabel:"도움말",IconFileErrorMsg:"이미지는 PNG, JPEG, JPG 또는 GIF여야 합니다.",IconLabel:"아이콘",IconTooltip:"라이브 편집기 작업 갤러리에 표시할 작업 아이콘입니다.",InvalidFileName:"File '${0}' not found.",InvalidFilePath:"Invalid file path.",InvalidGeneralFileExtension:"File '${0}' must have a ${1} extension",InvalidInput:"The input argument must be a full or partial file path, or a file name.",InvalidModelErrorMsg:"작업이 포함된 폴더의 리소스 폴더 아래에 있는 메타데이터 파일이 유효하지 않습니다.",InvalidModelWarningMsg:"작업이 포함된 폴더의 리소스 폴더 아래에 있는 메타데이터 파일이 유효하지 않습니다.\n\n이 작업의 메타데이터를 저장하면 기존 메타데이터 파일을 덮어쓰게 됩니다.",InvalidTaskFileFormat:"파일 '${0}'은(는) M 파일이 아닙니다.",InvalidURLErrorMsg:"유효하지 않은 외부 URL임",KeywordsLabel:"키워드",KeywordsTooltip:"자동 코드 제안 및 완성에 작업을 표시하는 데 사용되는 키워드입니다.",MetadataUITitle:"작업 메타데이터",NameLabel:"이름 *",NameTooltip:"라이브 편집기 작업 갤러리와 자동 코드 제안 및 완성에 표시할 작업 이름입니다.",NoWriteAccessErrorMsg:"작업이 포함된 폴더에 대한 쓰기 권한이 MATLAB에 없습니다.\n\n라이브 작업 메타데이터가 포함된 리소스 폴더를 생성하려면 쓰기 권한이 필요합니다.",NotOnPathDialogHeader:"경로에 폴더 추가",NotOnPathDialogMessage:"라이브 편집기에서 작업에 액세스할 수 있으려면 작업 클래스 정의 파일과 작업 메타데이터가 포함된 폴더가 MATLAB 경로에 있어야 합니다.",NotTaskClass:"File ${0} is not a valid live task class definition file because it does not inherit from ${1}.",NotValidTaskClass:"File ${0} is not a valid task class definition file.",OkLabel:"확인",PathCheckbox:"MATLAB 경로에 작업 파일이 포함된 폴더 추가",RegistrationErrorMsg:"작업의 메타데이터를 구성하는 중 오류가 발생했습니다.\n\n${0}",RegistrationInProgressMsg:"작업 메타데이터 구성 중...",RegistrationSuccessMsg:"작업 메타데이터가 성공적으로 구성되었습니다.\n\n라이브 편집기에서 작업을 사용하려면 작업과 리소스가 포함된 폴더를 MATLAB 경로에 추가하거나 저장하십시오.",RegistrationSuccessMsgOnPath:"작업 메타데이터가 성공적으로 구성되었습니다.",SelectFileHeader:"클래스 정의 파일 선택",TaskDetailsLabel:"작업 세부 정보",TaskFileLabel:"작업 클래스 정의 파일",TaskNameEmptyErrorMsg:"작업 이름은 비어 있지 않아야 함",TaskRegistrationHeader:"라이브 작업",UniqueIdLabel:"고유 ID",UniqueIdTooltip:"작업 고유 ID",UpdateSuccessMsg:"작업 메타데이터가 성공적으로 업데이트되었습니다.\n\n라이브 편집기에서 작업을 사용하려면 작업과 리소스가 포함된 폴더를 MATLAB 경로에 추가하거나 저장하십시오.",UpdateSuccessMsgOnPath:"작업 메타데이터가 성공적으로 업데이트되었습니다.",componentNotInGridLayout:"Figure must contain only one GridLayout object, and no other objects.",hideCode:"코드 숨기기",showCode:"코드 표시",toolbarAutorunButtonDisabledLabel:"[섹션 자동 실행]이 비활성화되었습니다.\n현재 섹션과 작업을 실행하려면 [섹션 실행]을 클릭하십시오.",toolbarAutorunButtonDisabledWarningLabel:"[섹션 자동 실행]이 작업에 의해 비활성화되었습니다.\n현재 섹션과 작업을 실행하려면 [섹션 실행]을 클릭하십시오.",toolbarAutorunButtonEnabledLabel:"[섹션 자동 실행]이 활성화되었습니다.\n변경 시에 현재 섹션이 작업을 포함해 자동으로 실행됩니다.",toolbarAutorunButtonEnabledWarningLabel:"[섹션 자동 실행]이 작업에 의해 활성화되었습니다.\n변경 시에 현재 섹션이 작업을 포함해 자동으로 실행됩니다.",toolbarCodeButtonLabel:"코드 표시",toolbarHelpButtonLabel:"도움말",validateVariableNameErrorMsgUnique:"변수 이름은 고유해야 함",validateVariableNameErrorMsgValid:"변수 이름은 유효해야 함"}},function(e,t,i){e.exports={AbstractTaskErrorMsg:"类 ${0} 无法实例化,因为它是抽象类。请确保您已实现所有抽象方法,包括从 matlab.task.LiveTask 继承的 setup、generateCode 和 reset 方法。",BrowseLabel:"浏览",CancelLabel:"取消",DefaultDescription:"${0} 的目的行",DescriptionLabel:"说明",DescriptionTooltip:"要在实时编辑器任务库中以及自动代码建议和自动填充项中显示的任务目的行。",DocLinkLabel:"文档链接",DocLinkTooltip:"链接到点击任务帮助图标时打开的任务文档。",FileInPrivateFolder:"Cannot create metadata for files in private folder.",FileNameIsKeyword:"Name cannot be a MATLAB keyword. Rename file, and then open.",FileNameIsVarName:"File name '${0}' must start with a letter, contain only letters, numbers and underscores, and be shorter than 63 characters.",HelpIconTooltip:"将包含任务类定义文件和任务元数据的文件夹添加到 MATLAB 路径,以在实时编辑器任务库中以及自动代码建议和自动填充项中显示任务。",HelpLabel:"帮助",IconFileErrorMsg:"图像必须为 PNG、JPEG、JPG 或 GIF。",IconLabel:"图标",IconTooltip:"要在实时编辑器任务库中显示的任务图标。",InvalidFileName:"File '${0}' not found.",InvalidFilePath:"Invalid file path.",InvalidGeneralFileExtension:"File '${0}' must have a ${1} extension",InvalidInput:"The input argument must be a full or partial file path, or a file name.",InvalidModelErrorMsg:"包含任务的文件夹中的资源文件夹下的元数据文件无效。",InvalidModelWarningMsg:"任务所在文件夹下的资源文件夹中的元数据文件无效。\n\n保存此任务的元数据将覆盖现有元数据文件。",InvalidTaskFileFormat:"文件 '${0}' 不是 M 文件。",InvalidURLErrorMsg:"无效的外部 URL",KeywordsLabel:"关键字",KeywordsTooltip:"用于在自动代码建议和自动填充项中显示任务的关键字。",MetadataUITitle:"任务元数据",NameLabel:"名称 *",NameTooltip:"要在实时编辑器任务库中以及自动代码建议和自动填充项中显示的任务名称。",NoWriteAccessErrorMsg:"MATLAB 对包含该任务的文件夹没有写入权限。\n\n使用实时任务元数据创建资源文件夹需要写入权限。",NotOnPathDialogHeader:"将文件夹添加到路径",NotOnPathDialogMessage:"包含任务类定义文件和任务元数据的文件夹必须位于 MATLAB 路径中,才能在实时编辑器中访问该任务。",NotTaskClass:"File ${0} is not a valid live task class definition file because it does not inherit from ${1}.",NotValidTaskClass:"File ${0} is not a valid task class definition file.",OkLabel:"确定",PathCheckbox:"将包含任务文件的文件夹添加到 MATLAB 路径",RegistrationErrorMsg:"为任务配置元数据时出错。\n\n${0}",RegistrationInProgressMsg:"正在配置任务元数据...",RegistrationSuccessMsg:"任务元数据已成功配置。\n\n要在实时编辑器中使用该任务,请将包含该任务和资源的文件夹添加或保存到 MATLAB 路径中。",RegistrationSuccessMsgOnPath:"任务元数据已成功配置。",SelectFileHeader:"选择类定义文件",TaskDetailsLabel:"任务详细信息",TaskFileLabel:"任务类定义文件",TaskNameEmptyErrorMsg:"任务名称不能为空",TaskRegistrationHeader:"实时任务",UniqueIdLabel:"唯一 ID",UniqueIdTooltip:"任务唯一 ID",UpdateSuccessMsg:"任务元数据已成功更新。\n\n要在实时编辑器中使用该任务,请将包含该任务和资源的文件夹添加或保存到 MATLAB 路径中。",UpdateSuccessMsgOnPath:"任务元数据已成功更新。",componentNotInGridLayout:"Figure must contain only one GridLayout object, and no other objects.",hideCode:"隐藏代码",showCode:"显示代码",toolbarAutorunButtonDisabledLabel:'自动运行节已禁用。\n点击 "运行节" 以运行当前节和任务。',toolbarAutorunButtonDisabledWarningLabel:'任务禁用了自动运行节。\n点击 "运行节" 以运行当前节和任务。',toolbarAutorunButtonEnabledLabel:"自动运行节已启用。\n包含任务的当前节在更改后会自动运行。",toolbarAutorunButtonEnabledWarningLabel:"任务启用了自动运行节。\n包含任务的当前节在更改后会自动运行。",toolbarCodeButtonLabel:"显示代码",toolbarHelpButtonLabel:"帮助",validateVariableNameErrorMsgUnique:"变量名称必须唯一",validateVariableNameErrorMsgValid:"变量名称必须有效"}},function(e,t,i){e.exports={root:{AbstractTaskErrorMsg:"The class ${0} cannot be instantiated because it is abstract. Ensure you have implemented all abstract methods, including the setup, generateCode, and reset methods inherited from matlab.task.LiveTask.",BrowseLabel:"Browse",CancelLabel:"Cancel",DefaultDescription:"Purpose line for ${0}",DescriptionLabel:"Description",DescriptionTooltip:"Task purpose line to display in the Live Editor Task gallery and in automatic code suggestions and completions.",DocLinkLabel:"Documentation Link",DocLinkTooltip:"Link to the task documentation that opens when the task help icon is clicked.",FileInPrivateFolder:"Cannot create metadata for files in private folder.",FileNameIsKeyword:"Name cannot be a MATLAB keyword. Rename file, and then open.",FileNameIsVarName:"File name '${0}' must start with a letter, contain only letters, numbers and underscores, and be shorter than 63 characters.",HelpIconTooltip:"Add the folder containing the task class definition file and task metadata to the MATLAB path to display the task in the Live Editor Task gallery and in automatic code suggestions and completions.",HelpLabel:"Help",IconFileErrorMsg:"Image must be a PNG, JPEG, JPG, or GIF.",IconLabel:"Icon",IconTooltip:"Task icon to display in the Live Editor Task gallery.",InvalidFileName:"File '${0}' not found.",InvalidFilePath:"Invalid file path.",InvalidGeneralFileExtension:"File '${0}' must have a ${1} extension",InvalidInput:"The input argument must be a full or partial file path, or a file name.",InvalidModelErrorMsg:"Metadata file under the resources folder in the folder containing task is invalid.",InvalidModelWarningMsg:"Metadata file under the resources folder in the folder containing task is invalid.\n\nSaving metadata for this task will overwrite existing metadata file.",InvalidTaskFileFormat:"File '${0}' is not a M file.",InvalidURLErrorMsg:"Invalid external URL",KeywordsLabel:"Keywords",KeywordsTooltip:"Keywords used to show the task in the automatic code suggestions and completions.",MetadataUITitle:"Task Metadata",NameLabel:"Name *",NameTooltip:"Task name to display in the Live Editor Task gallery and in automatic code suggestions and completions.",NoWriteAccessErrorMsg:"MATLAB doesn't have write access to the folder containing the task.\n\nWrite access is required to create the resources folder with the Live Task metadata.",NotOnPathDialogHeader:"Add folder to path",NotOnPathDialogMessage:"The folder containing the task class definition file and task metadata must be on the MATLAB path to make the task accessible in the Live Editor.",NotTaskClass:"File ${0} is not a valid live task class definition file because it does not inherit from ${1}.",NotValidTaskClass:"File ${0} is not a valid task class definition file.",OkLabel:"Ok",PathCheckbox:"Add folder containing task files to MATLAB path",RegistrationErrorMsg:"An error occurred while configuring metadata for the task.\n\n${0}",RegistrationInProgressMsg:"Configuring task metadata...",RegistrationSuccessMsg:"Task metadata successfully configured.\n\nTo use the task in Live Editor, add or save the folder containing the task and resources to the MATLAB path.",RegistrationSuccessMsgOnPath:"Task metadata successfully configured.",SelectFileHeader:"Select a class definition file",TaskDetailsLabel:"Task Details",TaskFileLabel:"Task Class Definition File",TaskNameEmptyErrorMsg:"Task name must not be empty",TaskRegistrationHeader:"Live Task",UniqueIdLabel:"Unique Id",UniqueIdTooltip:"Task unique ID",UpdateSuccessMsg:"Task metadata successfully updated.\n\nTo use the task in Live Editor, add or save the folder containing the task and resources to the MATLAB path.",UpdateSuccessMsgOnPath:"Task metadata successfully updated.",componentNotInGridLayout:"Figure must contain only one GridLayout object, and no other objects.",hideCode:"Hide code",showCode:"Show code",toolbarAutorunButtonDisabledLabel:"Autorun section disabled.\nClick Run Section to run the current section and task.",toolbarAutorunButtonDisabledWarningLabel:"Autorun section was disabled by the task.\nClick Run Section to run the current section and task.",toolbarAutorunButtonEnabledLabel:"Autorun section enabled.\nCurrent section including task runs automatically on change.",toolbarAutorunButtonEnabledWarningLabel:"Autorun section was enabled by the task.\nCurrent section including task runs automatically on change.",toolbarCodeButtonLabel:"Show code",toolbarHelpButtonLabel:"Help",validateVariableNameErrorMsgUnique:"Variable name must be unique",validateVariableNameErrorMsgValid:"Variable name must be valid"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(5043)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.code.codingui.backendservice.pubsub","rtc.liveapps.controller","rtc.liveapps.ddux","rtc.liveappcodemetadata","rtc.liveapps.documenthandler","rtc.liveapps.mvm"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(625),i(942),i(5044)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e,t,i,n,o,r,a){this._rtcId=e,this._codingUIBackendService=t,this._liveAppsController=i,this._liveAppDDUXContributor=n,this._liveAppCodeMetaData=o,this._liveAppDocumentHandler=r,this._liveAppMvmService=a,this._appData={},this._pendingAppIds=[],this._install()},_install:function(){this._deferred=this._liveAppMvmService.requestData("matlab.internal.editor.LiveAppManager.install",0,[this._rtcId],(function(){}),(function(){})),this._messageService=o.getMessageServiceFactory().getInstance(),this._messageService.subscribe("/liveapps/insertRequest/"+this._rtcId,"_handleInsertRequest",this),this._messageService.subscribe("/liveapps/changedRequest/"+this._rtcId,"_handleChangedRequest",this),this._messageService.subscribe("/liveapps/autorunBackendChanged/"+this._rtcId,"_handleAutorunChanged",this),this._messageService.subscribe("/liveapps/getCodegenDataResponse/"+this._rtcId,"_handleGetCodegenDataResponse",this)},_uninstall:function(){this._liveAppMvmService.requestData("matlab.internal.editor.LiveAppManager.uninstall",0,[this._rtcId],(function(){}),(function(){})),this._messageService.unsubscribe("/liveapps/insertRequest/"+this._rtcId,"_handleInsertRequest",this),this._messageService.unsubscribe("/liveapps/changedRequest/"+this._rtcId,"_handleChangedRequest",this),this._messageService.unsubscribe("/liveapps/autorunBackendChanged/"+this._rtcId,"_handleAutorunChanged",this),this._messageService.unsubscribe("/liveapps/getCodegenDataResponse/"+this._rtcId,"_handleGetCodegenDataResponse",this)},_handleInsertRequest:function(e){var t=e.data;t&&(this._liveAppsController.insertLiveAppAtCurrentPosition(t.appIdentifier),this._liveAppDDUXContributor.logLiveTaskAction(i.INSERTTASK,t.appIdentifier,"toolstrip"))},_handleChangedRequest:function(e){var t=e.data;if(t&&this._isAppExistingInDocument(t.appId)){var i=this._getAppData(t.appId).appNode;this._liveAppDDUXContributor.logLiveTaskAction(n.CHANGED,t.appIdentifier),this.onAppChanged(i,t)}},onAppChanged:function(e,t){},_handleAutorunChanged:function(e){this.onAutoRunBackendChanged(e)},onAutoRunBackendChanged:function(e){},autorunFrontendChanged:function(e){this._messageService.publish("/liveapps/autorunFrontendChanged/"+this._rtcId,{editorId:this._rtcId,appId:this._getAppId(e)})},shouldInitialize:function(e){return!this._appData[this._getAppId(e)]},initializeApp:function(e,t){this._deferred.promise.then(function(){var i=this._getAppId(e);this._appData[i]={appNode:e,callback:t},this._pendingAppIds.push(i),1===this._pendingAppIds.length&&this._initializeNextApp()}.bind(this))},_handleInitializeResponse:function(e){var t=e[0].mwdata?e[0].mwdata[0]:e[0];if(t){var i=(t=this._parseData(t)).appId,n=this._getAppData(i);n&&(this._isAppExistingInDocument(i)?(n.callback(t),delete n.callback):this.removeApp(n.appNode));var o=this._pendingAppIds.indexOf(i);this._pendingAppIds.splice(o,1),this._initializeNextApp()}},_parseData:function(e){return"object"==typeof e&&Object.keys(e).forEach(function(t){"object"==typeof e[t]&&(e[t].mwdata?e[t].mwdata[0]?e[t]=e[t].mwdata[0]:e[t]=this._parseData(e[t].mwdata):e[t]=this._parseData(e[t]))}.bind(this)),e},_initializeNextApp:function(){var e=this._pendingAppIds[0],t=this._getAppData(e);if(t){var i=t.appNode.getAppIdentifier(),n=t.appNode.getContext("appState");if(""===n)if(this._liveAppCodeMetaData.find(e=>e.getAppId()===i)){var o=t.appNode.getStore().metadataCode;""!==o&&(n=JSON.stringify({code:o}))}var r=[this._rtcId,{editorId:this._rtcId,appId:e,appIdentifier:i,appState:n}],a=this._handleInitializeResponse.bind(this),s=this._handleInitializationError.bind(this,e);this._liveAppMvmService.requestData("matlab.internal.editor.LiveAppManager.initialize",1,r,a,s)}},_handleInitializationError:function(e,t){var i=this._appData[e];if(i){var n=i.appNode;n&&(this._liveAppDocumentHandler.removeLiveAppCompletelyWithoutUndoRedo(n),delete i.callback,this.removeApp(i.appNode));var o=this._pendingAppIds.indexOf(e);this._pendingAppIds.splice(o,1)}},_isAppExistingInDocument:function(e){var t=this._getAppData(e);return!!(t&&t.appNode&&t.appNode.parent)},_getAppData:function(e){return this._appData[e]},loadData:function(e){this._messageService.publish("/liveapps/loadDataRequest/"+this._rtcId,{editorId:this._rtcId,appId:this._getAppId(e),appState:e.getContext("appState")})},resetApp:function(e){this._messageService.publish("/liveapps/resetRequest/"+this._rtcId,{editorId:this._rtcId,appId:this._getAppId(e)})},removeApp:function(e){var t=this._getAppId(e);delete this._appData[t],this._messageService.publish("/liveapps/removeRequest/"+this._rtcId,{editorId:this._rtcId,appId:t})},getMetaDataForApp:function(e,t){var i=e.getAppIdentifier();this._codingUIBackendService.requestMetaDataForCodeAndOffset(t,i,i.length)},generateCode:function(e){this.getCodegenData(e,function(t){this.onAppChanged(e,t)}.bind(this))},getCodegenData:function(e,t){var i=this._getAppId(e);this._appData[i]={appNode:e,callback:t},this._messageService.publish("/liveapps/getCodegenDataRequest/"+this._rtcId,{editorId:this._rtcId,appId:i})},_handleGetCodegenDataResponse:function(e){var t=e.data;if(t&&this._isAppExistingInDocument(t.appId)){var i=this._getAppData(t.appId);i.callback(t),delete i.callback}},_getAppId:function(e){return e.uid},destroy:function(){this.inherited(arguments),this._uninstall(),this._appData={},this._pendingAppIds=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(904)],o=i.dj.d(n,(function(e){var t=new e,i="FEval",n="FEvalResponse:LiveAppInstaller";return{getMessageServiceFactory:function(){return t},setInstallMessageType:function(e){i=e,n=e+":LiveAppInstaller"},getInstallMessageType:function(){return i},getInstallMessageClassifier:function(e){return"LiveAppInstaller:"+e},getInstallMessageResponseHandlerType:function(e){return n+":"+e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5046)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.cursorcontroller","rtc.linenumberservice","rtc.liveapps.documenthandler","rtc.view.layoutmanager.paragraphhostingmodel"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(209),i(207),i(234),i(260),i(266),i(333),i(364),i(496),i(833),i(943),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(n,{constructor:function(e,i,n,o,r,a){this._document=e,this._internalDocument=i,this._lineNumberService=o,this._liveAppDocumentHandler=r,this._layoutParagraphHostingModel=a,this._cursor=n.getCursors()[0],this.own(t.after(r,"onReset",this._handleReset.bind(this),!0),t.after(r,"onUpdate",this._handleUpdate.bind(this),!0))},_handleReset:function(e){var t=this._internalDocument.startBlockEdit();e.forEach((function(e){this._configureLiveApp(e),this._configureCodeContextForReset(e)}),this),this._internalDocument.endBlockEdit(t)},_handleUpdate:function(e,t){var i=this._internalDocument.startBlockEdit();e.forEach(this._configureLiveApp,this),this._internalDocument.endBlockEdit(i)},_configureLiveApp:function(e){var t=this._createRangeOfGeneratedCode(e);t?this._updateGeneratedCodeRangeInfo(e,t):this._removeAllGeneratedCodeInfo(e);var i=this._document.createLinePosition(e,!1),n=this._handleLiveAppLinePositionChange.bind(this,e);h.setLiveAppLineTracker(e,i,n),this.onCodeModelUpdated(e)},_updateGeneratedCodeRangeInfo:function(e,t){var i=this._layoutParagraphHostingModel.get(e);i&&i.destroy(),this._layoutParagraphHostingModel.set(e,t),h.setCodeRange(e,t)},onCodeModelUpdated:function(e){},_handleLiveAppLinePositionChange:function(e){e.parent!==this._internalDocument.root&&(this._liveAppDocumentHandler.onStartRemove(e),h.setReadOnly(e,!1,this._document),h.removeLiveAppLineTracker(e),this._removeAllGeneratedCodeInfo(e),this._liveAppDocumentHandler.onEndRemove(e))},_removeAllGeneratedCodeInfo:function(e){this._layoutParagraphHostingModel.delete(e),h.removeCodeRange(e)},_createRangeOfGeneratedCode:function(e){var t=e.getContext("numOfCodeLines")||0;if(t<1)return null;var i=this._internalDocument.getLineNumber(e)+1,n=this._lineNumberService.getCodeLineNumberFromLineNumber(i)+t-1,o=this._lineNumberService.getLineNumberFromCodeLineNumber(n),r=this._document.createLinePositionInLine(i,!1),s=this._document.createLinePositionInLine(o,!1);return new a(r,s)},_configureCodeContextForReset:function(e){e.setContext("code",null)},updateGeneratedCode:function(e,t,n){i.assert(h.isLiveAppLineNode(e),"The given node must be a LiveAppLineNode!"),this._pendingUpdatedLiveAppLine=e;var o,r=this._document.startBlockEdit();this._cursor.suspendChangeEvent(),t?this._canPerformEdit(e,n)?this._editGeneratedCode(e,t):this._setGeneratedCode(e,t):this._removeGeneratedCode(e),void 0===n?o=this._createContext(t):null!==n&&(o=this._createContext(n)),o&&this._liveAppDocumentHandler.updateContextWithUndoRedo(e,o),this._cursor.activateChangeEvent(!0),this._document.endBlockEdit(r),this._pendingUpdatedLiveAppLine=null},isPendingUpdatingCode:function(e){return this._pendingUpdatedLiveAppLine===e},_setGeneratedCode:function(e,t){this._liveAppDocumentHandler.replaceGeneratedCodeWithUndoRedo(e,t),h.setDirtyState(e,!0)},_editGeneratedCode:function(e,t){var i=t.split("\n"),n={},o=h.getGeneratedCode(e);if(o){var r=o.split("\n");i.forEach((function(e,t){e!==r[t]&&(n[t]=e)}))}else i.forEach((function(e,t){n[t]=e}));this._liveAppDocumentHandler.editGeneratedCodeWithUndoRedo(e,n),h.setDirtyState(e,!0)},_removeGeneratedCode:function(e){this._liveAppDocumentHandler.replaceGeneratedCodeWithUndoRedo(e,""),this._liveAppDocumentHandler.mergeLiveAppLineWithEmptyLineWithUndoRedo(e,e.nextSibling()),this._removeAllGeneratedCodeInfo(e),h.setDirtyState(e,!0)},_createContext:function(e){return{code:e=e||"",numOfCodeLines:e?e.split("\n").length:0}},_canPerformEdit:function(e,t){var i=e.getContext("code");if(!i)return!1;var n=i.split("\n"),o=[];return null===t?o=n:t&&(o=t.split("\n")),n.length===o.length}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5048)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.uifigurehandler","rtc.liveapps.documenthandler","rtc.liveapps.viewmodel","rtc.liveapps.ddux.cleaner"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(282),i(208),i(2068)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,t,o,r){this._liveAppDDUXCleaner=r,this._liveAppCounts={},this._liveAppUids=i.createSet(),this.own(n.after(e,"onLiveAppLineInitialized",this._handleLiveAppInitialized.bind(this),!0)),this.own(n.after(o,"onLiveAppViewRendered",this._handleLiveAppInitialized.bind(this),!0)),this.own(n.after(t,"onEndRemove",this._handleLiveAppRemove.bind(this),!0))},_handleLiveAppInitialized:function(e){var t=e.children[0],i=t.getUid(),n=t.getAppIdentifier();this._liveAppDDUXCleaner.clean(n).then(function(e){this._liveAppUids.has(i)||(this._liveAppCounts.hasOwnProperty(e)||(this._liveAppCounts[e]=0),this._liveAppCounts[e]+=1,this._liveAppUids.add(i))}.bind(this))},_handleLiveAppRemove:function(e){var t=e.children[0],i=t.getUid(),n=t.getAppIdentifier();this._liveAppDDUXCleaner.clean(n).then(function(e){this._liveAppUids.has(i)&&(this._liveAppCounts[e]-=1,0===this._liveAppCounts[e]&&delete this._liveAppCounts[e],this._liveAppUids.delete(i))}.bind(this))},getComponents:function(){return this._liveAppCounts}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5050)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.contextmenu.generator","rtc.code.sections.sectionbreak","rtc.helponselection","rtc.liveapps.viewmodel","rtc.liveapps.focusmanager"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(253),i(616),i(451),i(294),i(371),i(251),i(941),i(833),i(730),i(625),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(n,{constructor:function(e,i,n,o,r,a){this._cursorController=e,this._contextMenuGenerator=i,this._sectionBreak=n,this._helpOnSelection=o,this._liveAppFocusManager=a,this._cursor=e.getCursors()[0],this._setupMenuItems(),this.own(t.after(r,"onLiveAppViewCreated",this._handleLiveAppViewCreated.bind(this),!0))},_handleLiveAppViewCreated:function(e){if(h.isLiveAppLineNode(e)){var t=e.getStore();t.cm||(t.cm=this._contextMenuGenerator.createContextMenu(e.getWidget().domNode,[this]))}},contributeToContextMenu:function(e){return this._shouldNotContributeToContextMenu(e)?{}:this.inherited(arguments)},_shouldNotContributeToContextMenu:function(e){var t=d.getEnclosingLiveAppLineWidget(e).node;return this._liveAppFocusManager.getSelectedLiveApp()!==t&&c.isLiveAppInCursorSelection(t,this._cursorController)},updateActions:function(e){this.inherited(arguments);var t,i=this._cursor.getNode().rootContainer();if(h.isLiveAppLineNode(i))this.hideGroup(r.SELECTIONS),t=i;else{this.hideAction(u.HELP);var n=d.getEnclosingLiveAppLineWidget(e);t=n.node}this._configureMenuItemsState(t)},_setupMenuItems:function(){this._createMenuItems(),this.addActionsToMap(r.SELECTIONS,[s.EVALUATE_SELECTION.EVALUATE_SELECTION_ACTION,s.OPEN_SELECTION.OPEN_SELECTION_ACTION,this._helpOnSelection.ACTION_ID]),this.addActionsToMap(r.LIVE_APPS_VIEWS,[this._toggleControlsAndCodeMenuItem,this._toggleControlsOnlyMenuItem,this._toggleCodeOnlyMenuItem]),this.addActionsToMap(r.LIVE_APPS_AUTORUN_SECTION,[this._toggleAutorunMenuItem]),this.addActionsToMap(r.LIVE_APPS_ACTIONS,[a.RUN_SECTION,u.RESET,u.CONVERT_TO_CODE,u.REMOVE_TASK,this._sectionBreak.ACTION_ID]),this.addActionsToMap(r.LIVE_APPS_COPYPASTE,[s.CUT_COPY_PASTE.CUT_ACTION,s.CUT_COPY_PASTE.COPY_ACTION,s.CUT_COPY_PASTE.PASTE_ACTION]),this.addActionsToMap(r.LIVE_APPS_GENERAL,[u.HELP])},_createMenuItems:function(){this._toggleControlsAndCodeMenuItem={actionId:u.TOGGLE_CONTROLS_AND_CODE,type:o.RADIOBUTTON,selected:!1},this._toggleControlsOnlyMenuItem={actionId:u.TOGGLE_CONTROLS_ONLY,type:o.RADIOBUTTON,selected:!1},this._toggleCodeOnlyMenuItem={actionId:u.TOGGLE_CODE_ONLY,type:o.RADIOBUTTON,selected:!1},this._toggleAutorunMenuItem={actionId:u.TOGGLE_AUTORUN_SECTION,type:o.CHECKBOX,selected:!1}},_configureMenuItemsState:function(e){this._toggleControlsAndCodeMenuItem.selected=h.isInControlsAndCodeView(e),this._toggleControlsOnlyMenuItem.selected=h.isInControlsOnlyView(e),this._toggleCodeOnlyMenuItem.selected=h.isInCodeOnlyView(e),this._toggleAutorunMenuItem.selected=h.isAutorun(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5052)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.document","rtc.liveapps.documenthandler","rtc.liveapps.focusmanager","rtc.view"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(943)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_SCROLL_PADDING:100,constructor:function(e,t,i,n,o){this._cursor=e.getCursors()[0],this._document=t,this._liveAppDocumentHandler=i,this._liveAppFocusManager=n,this._rtcView=o},insertLiveAppAtCurrentPosition:function(e,i){(i=t.mixin({},i)).appIdentifier=e||"";let n=this._cursor.getLineColumn().line,o="";return i.detectUserOutputVariable&&(o=this._document.getLineText(n),this._document.deleteText(n,1,n,o.length+1)),this.insertLiveAppWithArgsAtCurrentPosition(i,o)},insertLiveAppWithArgsAtCurrentPosition:function(e,t){let i;t=t||"";let n=this._liveAppFocusManager.getSelectedLiveApp();n?(this._liveAppFocusManager.blurLiveAppAndReturnFocusToEditor(),i=n.endPosition()):i=this._cursor.getCursorPosition();let o=this._liveAppDocumentHandler.insertLiveAppWithUndoRedo(e,i);return e.detectUserOutputVariable&&this._prepareForInitialVariable(o,t,e.bounds),this._liveAppFocusManager.focusLiveApp(o),this._rtcView.scrollPositionIntoView(i,this._SCROLL_PADDING),o},_prepareForInitialVariable:function(e,t,i){let n=t.substring(0,i.left-1).lastIndexOf("=");if(-1===n)return;let r=t.substring(0,n),a=r.lastIndexOf(",");-1===a&&(a=r.lastIndexOf(";"));let s=t.substring(a+1,n).trim();s.length<=o.VARIABLE_MAX_LENGTH&&o.isValidVariableName(s)&&(e.getStore().initialVariable=s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5054)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.view","rtc.cursorcontroller","rtc.eventhandler","rtc.liveapps.hierarchymanager","rtc.liveapps.documenthandler","rtc.liveapps.codemanager"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(274),i(333),i(399),i(499),i(833),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(o,{constructor:function(e,i,n,o,r,a,s,l){this._internalDocument=e,this._document=i,this._view=n,this._cursorController=o,this._liveAppHierarchyManager=a,this._liveAppDocumentHandler=s,this._cursor=o.getCursors()[0],this._resetSelectedLiveApps(),this._changeReadOnlyEnabled=!0,this._pendingSelect=!1,this._pendingCursorHandling=!1,this._pendingReadOnlyStateChange=!1,this.own(t.after(r,"onMouseUp",this._handleMouseUp.bind(this),!0)),this.own(t.after(this._cursor,"onUpdate",this._handleCursorUpdate.bind(this),!0)),this.own(t.before(this._cursor,"onChange",this._handleCursorChange.bind(this),!0)),this.own(t.after(l,"onCodeModelUpdated",this._handleCodeModelUpdated.bind(this),!0))},enableForHiddenCode:function(){this._changeReadOnlyEnabled=!0},disableForHiddenCode:function(){this._resetSelectedLiveApps(),this._changeReadOnlyEnabled=!1},_handleCodeModelUpdated:function(e){this._isLiveAppSelected(e)||this._setReadOnlyForLiveApps([e],!0)},_handleCursorUpdate:function(){var e=this._cursor.getSelection();if(e&&this._hasSelectedLiveApps()&&this._isSetReadOnlyForLiveAppsAllowed()&&!this._liveAppDocumentHandler.isPendingEditing()){var t=this._selectedLiveAppLines.some((function(t){return a.isSelectionInCodeRange(e,t)}),this);if(!t)if(this._selectedLiveAppLines.some((function(e){return!a.isLiveAppInCursorSelection(e,this._cursorController)}),this))return void this._adjustCursor(!1);this._setReadOnlyForLiveApps(this._selectedLiveAppLines,t)}},_handleCursorChange:function(){this._adjustCursor(!1)},_handleMouseUp:function(){this._pendingReadOnlyStateChange&&(this._pendingReadOnlyStateChange=!1,this._adjustCursor(!0))},_adjustCursor:function(e){if(!this._pendingCursorHandling){this._pendingCursorHandling=!0;var t=this._cursor.getSelection();t?(!e&&this._cursorController.isActionInProgress()&&(this._pendingReadOnlyStateChange=!0),t=this._adjustSelection(t)||t,this._handleLiveAppsDeselectedIfAny(),this._handleLiveAppsSelectedIfAny(t)):(this._handleLiveAppsDeselectedIfAny(),this._adjustPosition(this._cursor.getCursorPosition())),this._pendingCursorHandling=!1}},_adjustPosition:function(e){var t=e.getNode().rootContainer();if(!this._view.isRootContainerVisible(t)){var i=this._liveAppHierarchyManager.getLiveAppLineNode(t);i&&e.isEqualTo(s.getEndPositionOfLiveApp(i))&&this._cursor.setPosition(i.endPosition())}},_adjustSelection:function(e){if(this._pendingSelect)return null;var t=a.getAdjustedSelection(e,this._view);return t?(this._cursorController.suspendUpdates(),this._cursorController.setSelection([t]),this._cursorController.activateUpdates(),t):null},_handleLiveAppsSelectedIfAny:function(e){var t=s.getLiveAppLines(e);0!==t.length&&(this._selectedLiveAppLines=t,this._setReadOnlyForLiveAppsIfAllowed(t,!1))},_handleLiveAppsDeselectedIfAny:function(){if(this._hasSelectedLiveApps()){var e=this._selectedLiveAppLines;this._resetSelectedLiveApps(),this._setReadOnlyForLiveAppsIfAllowed(e,!0)}},_setReadOnlyForLiveAppsIfAllowed:function(e,t){this._isSetReadOnlyForLiveAppsAllowed()&&(this._setReadOnlyForLiveApps(e,t),this._cursor.onUpdate(!0,!1))},_isSetReadOnlyForLiveAppsAllowed:function(){return this._changeReadOnlyEnabled&&!this._pendingReadOnlyStateChange},_setReadOnlyForLiveApps:function(e,t){var i=this._internalDocument.startBlockEdit();e.forEach((function(e){s.setReadOnly(e,t,this._document)}),this),this._internalDocument.endBlockEdit(i)},selectLiveApp:function(e){this._pendingSelect=!0;var t=a.getSelectionOfLiveApp(e),i=this._cursor.getSelection();a.isSelectionOfLiveAppSame(i,t)&&!n.isRangeReadOnly(t)||(this._cursorController.suspendUpdates(),this._cursorController.clearSelection(),this._cursorController.setSelection([t]),this._cursorController.activateUpdates()),this._pendingSelect=!1},_resetSelectedLiveApps:function(){this._setSelectedLiveApps([])},_setSelectedLiveApps:function(e){this._selectedLiveAppLines=e},_hasSelectedLiveApps:function(){return this.getSelectedLiveApp().length>0},_isLiveAppSelected:function(e){return this.getSelectedLiveApp().indexOf(e)>=0},getSelectedLiveApp:function(){return this._selectedLiveAppLines},isPendingReadOnlyStateChange:function(){return this._pendingReadOnlyStateChange}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5056)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(282),i(363)],o=i.dj.d(n,(function(e,t,i,n){var o={};return e(t,{constructor:function(e){this._hashCache={},this._mvm=e||n.getInstance(),this._pendingMVMCalls=i.createMap()},clean:async function(e){return e?await this._isKnownAppIdentifier(e)?e:await this._hashIdentifier(e):e},_isKnownAppIdentifier:async function(e){if(void 0!==o[e])return o[e];var t=null;if(this._pendingMVMCalls.has(e))t=this._pendingMVMCalls.get(e);else try{t=this._mvm.feval("matlab.internal.editor.LiveTaskUtilities.isMathworksAuthored",1,[e]),this._pendingMVMCalls.set(e,t)}catch(e){}var i=null;try{i=await t}catch(e){return!1}return this._pendingMVMCalls.delete(e),!(!i.length||1!==i.length)&&(o[e]=i[0],i[0])},_hashIdentifier:async function(e){if(!window.crypto||!window.crypto.subtle)return"UserAuthoredTaskId";if(this._hashCache[e])return this._hashCache[e];const t=await this._digestMessage(e);return this._hashCache[e]=t,t},_digestMessage:async function(e){const t=(new TextEncoder).encode(e);try{const e=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join("")}catch(e){return"UserAuthoredTaskId"}},destroy:function(){this._pendingMVMCalls.forEach((function(e){e.cancel()}),this),this._pendingMVMCalls.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5058)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.document.changenotifier","rtc.liveapps.documenthandler","rtc.liveapps.ddux"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(260),i(333),i(401),i(379),i(403),i(389),i(399),i(833),i(942),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(l,{constructor:function(e,t,i,n,o){this._document=e,this._internalDocument=t,this._documentChangeNotifier=i,this._liveAppDocumentHandler=n,this._liveAppDDUXContributor=o,this._enabled=!0,this._addListener()},enableForHiddenCode:function(){this._enabled||(this._enabled=!0,this._addListener())},disableForHiddenCode:function(){this._enabled&&(this._enabled=!1,this._removeListener())},_addListener:function(){this._handle=t.after(this._documentChangeNotifier,"onPreDeletion",this._handlePreDeletion.bind(this),!0),this.own(this._handle)},_removeListener:function(){this._handle.remove(),this._handle=null},convertLiveAppIntoPlainCodeWithUndoRedo:function(e,t){this._enabled&&this._liveAppDocumentHandler.convertLiveAppIntoPlainCodeWithUndoRedo(e,t)},removeLiveAppCompletelyWithUndoRedo:function(e){this._enabled&&(this._liveAppDDUXContributor.logLiveTaskAction(d.DELETE,e.getAppIdentifier()),this._liveAppDocumentHandler.removeLiveAppCompletelyWithUndoRedo(e))},_handlePreDeletion:function(e,t){if(!this._document.isReadOnly())return t.hasSelection()?this._removeLiveAppsInSelectionIfAny(t):void 0},_removeLiveAppsInSelectionIfAny:function(e){var t=e.getSelection(),i=this._adjustSelectionForDeletion(t);i&&(e.setSelection(i),t=i);var o=this._getLiveAppLinesFromCursor(e);if(0!==o.length){if(o.some((function(e){var i=c.getSelectionOfLiveApp(e);return!n.isRangeContainedInRange(i,t)}),this))return!0;var r=this._document.startBlockEdit();o.forEach(function(e){this._liveAppDDUXContributor.logLiveTaskAction(d.DELETE,e.getAppIdentifier()),this._liveAppDocumentHandler.removeLiveAppLineAndRevertReadOnlyStateWithUndoRedo(e)}.bind(this)),this._document.endBlockEdit(r)}},_adjustSelectionForDeletion:function(e){var t,i=e.getStartPosition(),n=e.getEndPosition(),r=u.getLiveAppNode(i),a=u.getLiveAppNode(n);if(n.isAtLeftEdge()&&a){var s=this._insertHelperLineNodeAt(n);t=new o(e.getStartPosition(),s.endPosition(),e.isReversed,e.fileEndSelected())}else r&&a&&r===a&&u.isInControlsOnlyView(r)&&(t=new o(e.getStartPosition(),u.getEndPositionOfLiveApp(a),e.isReversed,e.fileEndSelected()));return t},_insertHelperLineNodeAt:function(e){var t=new s({text:""}),n=this._document.startBlockEdit(),o=this._internalDocument.insertAtPosition(t,e);return n.appendRedoEvents(o.events),n.appendUndoEvents(i.translateEventsForUndo(o.events)),this._internalDocument.emitDocumentEvents(o.events),this._document.endBlockEdit(n),t.rootContainer()},_getLiveAppLinesFromCursor:function(e){return u.getLiveAppLines(e.getSelection())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5060)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.view","rtc.cursorcontroller","rtc.liveapps.viewmodel","language.interface.tokenmanager","matlab.lexer.statemanager","rtc.viewready","rtc.document.eventcache"]}},createInstance:function(e,t,n,o,r,a,s,l,c){return new i(e,t,n,o,r,a,s,l,c)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(249),i(260),i(270),i(364),i(403),i(496),i(822),i(823),i(941),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(i,{constructor:function(e,i,n,o,r,a,s,l,c){this._internalDocument=e,this._document=i,this._view=n,this._cursorController=o,this._documentEventCache=c,this._cursor=o.getCursors()[0],this._editCount=0,this.own(t.after(r,"onLiveAppViewCreated",this._handleLiveAppViewCreated.bind(this),!0),t.before(e,"onDocumentReset",this._handleBeforeDocumentReset.bind(this),!0),t.after(e,"onDocumentReset",this._handleAfterDocumentReset.bind(this),!0),t.after(l,"onViewReady",this._handleAfterDocumentReset.bind(this),!0),t.after(e,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0)),this._appNodes=[]},_handleLiveAppViewCreated:function(e){this._appNodes.push(e)},_handleBeforeDocumentReset:function(){0!==this._appNodes.length&&(this.onPermanentlyRemove(this._appNodes),this._appNodes=[])},_handleAfterDocumentReset:function(){var e=this._internalDocument.root.children.filter(h.isLiveAppLineNode,h);e.length>0&&this.onReset(e)},onReset:function(e){},_handleDocumentChanged:function(e){for(var t=[],i=e[0].isUndoRedo,n=this._documentEventCache.finalLineRangeFromEvents(),o=n.startLine;o<=n.endLine;o++){var r=this._internalDocument.getLineNode(o);h.isLiveAppLineNode(r)&&t.push(r)}0!==t.length&&(this.onUpdate(t,i),t.forEach((function(e){this._view.refreshNode(e)}),this),this._view.onLayoutChange())},onUpdate:function(e,t){},mergeLiveAppLineWithEmptyLineWithUndoRedo:function(e,t){var i=this._startEdit(),n=this._mergeLiveAppLineAndEmptyLine(e,t);this._processEventsFromResult(n,i),this._endEdit(i)},_mergeLiveAppLineAndEmptyLine:function(e,t){var i=Math.max(0,this._internalDocument.getLineNumber(t)-1),n=[s.create(i,i+1,-1)],o=e.getInlineNode();return this._internalDocument.deleteNode(t,{node:o,offset:1}),{events:n}},replaceGeneratedCodeWithUndoRedo:function(e,t){var i=this._startEdit();if(this._removeGeneratedCodeOrInsertEmptyCodeLineWithUndoRedo(e),t){var n=this._internalDocument.getLineNumber(e)+1+1,o=n+t.split("\n").length-1;this._document.insertText(t,n,1);for(var r=n;r<=o;r+=1)this._document.setReadOnlyLine(r,!0)}this._endEdit(i)},editGeneratedCodeWithUndoRedo:function(e,t){var i=this._startEdit(),n=this._internalDocument.getLineNumber(e)+1;Object.keys(t).forEach((function(e){var i=n+parseInt(e,10)+1,o=this._document.getLineLength(i)+1;this._document.setReadOnlyLine(i,!1),this._document.replaceText(t[e],i,1,i,o),this._document.setReadOnlyLine(i,!0)}),this),this._endEdit(i)},removeLiveAppCompletelyWithUndoRedo:function(e){this.onStartRemove(e);var t=this._startEdit();this._removeGeneratedCodeOrInsertEmptyCodeLineWithUndoRedo(e);var i=this._removeLiveAppLine(e);this._processEventsFromResult(i,t),this._endEdit(t),this.onEndRemove(e)},removeLiveAppLine:function(e){return this._removeLiveAppLine(e)},_removeGeneratedCodeOrInsertEmptyCodeLineWithUndoRedo:function(e){var t=this._startEdit();if(h.hasGeneratedCode(e))h.removeGeneratedCode(e,this._document);else{var i=this._insertEmptyCodeLine(e.endPosition());this._processEventsFromResult(i,t)}this._endEdit(t)},convertLiveAppsIntoPlainCodeWithUndoRedo:function(e){var t=this._startEdit();e.forEach((function(e){this.convertLiveAppIntoPlainCodeWithUndoRedo(e,!1)}),this),this._endEdit(t)},convertLiveAppIntoPlainCodeWithUndoRedo:function(e,t){this.onStartRemove(e);var i=this._startEdit();this._convertLiveAppIntoPlainCodeWithUndoRedo(e,t),this._endEdit(i),this.onEndRemove(e)},removeLiveAppLineAndRevertReadOnlyStateWithUndoRedo:function(e){this.onStartRemove(e);var t,i=this._startEdit();h.setReadOnly(e,!1,this._document),h.hasGeneratedCode(e)||(t=this._insertEmptyCodeLine(e.endPosition()),this._processEventsFromResult(t,i)),t=this._removeLiveAppLine(e),this._processEventsFromResult(t,i),this._endEdit(i),this.onEndRemove(e)},onStartRemove:function(e){e.getStore().pendingRemoval=!0},onEndRemove:function(e){e.getStore().pendingRemoval=!1},onPermanentlyRemove:function(e){},_convertLiveAppIntoPlainCodeWithUndoRedo:function(e,t){var i,n=this._startEdit();if(h.hasGeneratedCode(e)){if(t){var o=h.getEndPositionOfGeneratedCode(e);this._cursor.hasAnchor()&&this._cursor.releaseAnchor(),this._cursor.setPosition(o.getNode(),o.getOffset(),!0)}}else i=this._insertEmptyCodeLine(e.endPosition()),this._processEventsFromResult(i,n);i=this._removeLiveAppLine(e),this._processEventsFromResult(i,n),this._endEdit(n)},_removeLiveAppLine:function(e){var t=this._internalDocument.getLineNumber(e),i=e.nextNode(),n=i?{node:i,offset:0}:null;return this._internalDocument.deleteNode(e,n),{events:[s.create(t,t+1,-1)]}},removeLiveAppCompletelyWithoutUndoRedo:function(e){this.onStartRemove(e);var t=this._startEdit(l.AUTO);this._removeGeneratedCodeOrInsertEmptyCodeLineWithUndoRedo(e);var i=this._removeLiveAppLine(e);this._processEventsFromResult(i,t),this._endEdit(t),this.onEndRemove(e)},insertEmptyCodeLineWithUndoRedo:function(e,t){var i=this._startEdit(),n=this._document.createPosition(e.getNode(),e.getOffset(),!0),o=this._insertEmptyCodeLine(n);this._processEventsFromResult(o,i),this._endEdit(i),this._cursorController.clearSelection(),t?this._cursor.setPosition(o.lineNode,0,!0):this._cursor.setPosition(n.getNode(),n.getOffset(),!0),n.destroy()},_insertEmptyCodeLine:function(e){var t=e.getNode().rootContainer(),i=this._internalDocument.createContainerForType("code").container,n=this._internalDocument.createNode(i.getDefaultChild());i.addChild(n);var o=t.readOnly;t.readOnly=!1;var r=this._internalDocument.insertAtPosition(i,e);return t.readOnly=o,{events:r.events,lineNode:i}},updateContextWithUndoRedo:function(e,t){var i=this._startEdit();h.isLiveAppLineNode(e)&&(e=e.getInlineNode()),this._internalDocument.changeNodeAttributes(e,t);var n=this._internalDocument.getLineNumber(e.rootContainer()),o=[a.create(n,n,0)];i.appendUndoEvents(o),i.appendRedoEvents(o),this._internalDocument.emitDocumentEvents(o),this._endEdit(i)},updateContextWithoutUndoRedo:function(e,t){h.isLiveAppLineNode(e)&&(e=e.getInlineNode()),e.updateAttributes(t);var i=this._internalDocument.getLineNumber(e.rootContainer()),n=[a.create(i,i,0)];this._internalDocument.emitDocumentEvents(n)},insertLiveAppWithUndoRedo:function(e,t){var i=this._startEdit();this._cursorController.hasSelection()&&this._document.deleteTextAtCurrentPosition(n.BACKWARD_DELETE);var o=t.getNode().rootContainer().isEmpty(),a=this._insertLiveApp(e,t);if(this._processEventsFromResult(a,i),o){var s=a.inlineNode.parent;if(h.isLiveAppLineNode(s)){var l=s.nextSibling();this.mergeLiveAppLineWithEmptyLineWithUndoRedo(s,l)}}this._endEdit(i);var c=new r(a.inlineNode,0);return this._cursorController.setPositions([c]),h.getLiveAppNode(this._cursor.getCursorPosition())},_insertLiveApp:function(e,t){var i=new d(e);return{events:this._internalDocument.insertAtPosition(i,t).events,inlineNode:i}},isPendingEditing:function(){return this._editCount>0},getAppNodes:function(){return this._appNodes},_processEventsFromResult:function(e,t){var i=e.events;t.appendRedoEvents(i),t.appendUndoEvents(o.translateEventsForUndo(i)),this._internalDocument.emitDocumentEvents(i)},_startEdit:function(e){return this._editCount+=1,this._document.startBlockEdit(e)},_endEdit:function(e){this._document.endBlockEdit(e),this._editCount-=1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5062)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.cursorcontroller","rtc.actionservice","rtc.liveapps.documenthandler","rtc.liveapps.hierarchymanager"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(237),i(399),i(283)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,i,n,o,r,a){this._document=e,this._internalDocument=i,this._cursorController=n,this._liveAppDocumentHandler=r,this._liveAppHierarchyManager=a,this._cursor=n.getCursors()[0],this.own(t.around(e,"insertBreak",this._handleInsertBreak.bind(this))),this.own(t.around(e,"insertBreakAt",this._handleInsertBreakAt.bind(this))),o.loadActions(this._getActions()),this._enabled=!0},enableForHiddenCode:function(){this._enabled=!0},disableForHiddenCode:function(){this._enabled=!1},_getActions:function(){return[{id:"rtc_live_app_enter",key:"enter",enabled:!0,callback:this._handleEnterKey.bind(this)},{id:"rtc_live_app_shift_enter",key:"shift_enter",enabled:!0,callback:this._handleEnterKey.bind(this)}]},_handleEnterKey:function(){if(!this._enabled&&o.getLiveAppLineNode(this._cursor.getCursorPosition()))return!0;return!1},_handleInsertBreak:function(e){return function(){var t=this._handleInsertBreakForAppAtCursor();return t||e.apply(this._document,arguments)}.bind(this)},_handleInsertBreakAt:function(e){return function(t,i){var n=this._handleInsertBreakAtForApp(t,i);return n||e.apply(this._document,arguments)}.bind(this)},_handleInsertBreakForAppAtCursor:function(){return!this._document.isReadOnly()&&this._handleInsertBreakForAppAtPosition(this._cursor.getCursorPosition())},_handleInsertBreakAtForApp:function(e,t){if(this._document.isReadOnly())return!1;var i=this._internalDocument.getLineNode(e-1).getPositionFromOffset(t-1);return this._handleInsertBreakForAppAtPosition(i)},_handleInsertBreakForAppAtPosition:function(e){var t,i=e.getNode().rootContainer(),n=this._liveAppHierarchyManager.getLiveAppLineNode(i);return!!n&&(this._shouldInsertEmptyCodeLineBelowGeneratedCode(e,n)?t=o.getEndPositionOfGeneratedCode(n):i===n&&(t=e),!!t&&(this._liveAppDocumentHandler.insertEmptyCodeLineWithUndoRedo(t),!0))},_shouldInsertEmptyCodeLineBelowGeneratedCode:function(e,t){if(!o.hasGeneratedCode(t))return!1;if(i.isAtEndOfContainer(e,t))return!0;var n=o.getEndLineOfGeneratedCode(t);return!!i.isAtEndOfContainer(e,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5064)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.cursorcontroller","rtc.liveapps.documenthandler"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(399),i(283)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i,n){this._document=e,this._liveAppDocumentHandler=n,this._cursor=i.getCursors()[0],this.own(t.around(e,"insertTextAtCurrentPosition",this._handleInsertText.bind(this))),this._enabled=!0},enableForHiddenCode:function(){this._enabled=!0},disableForHiddenCode:function(){this._enabled=!1},_handleInsertText:function(e){return function(){var t=this._getApplicableLiveAppLineAtInsertionPosition(),i=e.apply(this._document,arguments);return t&&i&&this._moveCursorToEndOfInsertedText(t.node,t.insertFromLeftEdge,arguments[0]),i}.bind(this)},_getApplicableLiveAppLineAtInsertionPosition:function(){if(this._document.isReadOnly()||!this._enabled)return null;var e=this._cursor.getCursorPosition(),t=n.getLiveAppLineNode(e);return t?{node:t,insertFromLeftEdge:0===e.getOffset()}:null},_moveCursorToEndOfInsertedText:function(e,t,i){var n=this._getTargetLine(e,t,i),o=this._document.getLineLength(n)+1;this._cursor.setLineColumn(n,o)},_getTargetLine:function(e,t,i){return e.parent?t?n.getStartPositionOfLiveApp(e).getLine()-1:n.getEndPositionOfLiveApp(e).getLine()+i.split("\n").length:this._cursor.getCursorPosition().getLine()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5066)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.cursorcontroller","rtc.actionservice","rtc.liveapps.documenthandler","rtc.liveapps.focusmanager","rtc.liveapps.hierarchymanager","rtc.view"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(223),i(207),i(249),i(237),i(270),i(941),i(833),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(n,{constructor:function(e,t,i,n,o,r,a){this._document=e,this._cursorController=t,this._view=a,this._liveAppDocumentHandler=n,this._liveAppFocusManager=o,this._liveAppHierarchyManager=r,this._cursor=t.getCursors()[0];var l=[{id:"rtc_live_app_backspace",enabled:!0,key:"backspace",callback:this._handleRemoveKeys.bind(this,s.FROM_RIGHT)},{id:"rtc_live_app_delete",enabled:!0,key:"delete",callback:this._handleRemoveKeys.bind(this,s.FROM_LEFT)},{id:"rtc_live_app_left",enabled:!0,key:"left",callback:this._handleArrowsKey.bind(this,s.FROM_RIGHT)},{id:"rtc_live_app_right",enabled:!0,key:"right",callback:this._handleArrowsKey.bind(this,s.FROM_LEFT)},{id:"rtc_live_app_tab",enabled:!0,key:"tab",callback:this._handleNavigation.bind(this,s.FROM_LEFT,!0)},{id:"rtc_live_app_shift_tab",enabled:!0,key:"shift_tab",callback:this._handleNavigation.bind(this,s.FROM_RIGHT,!0)},{id:"rtc_live_app_select_all",enabled:!0,key:"ctrl_a",platformKey:{mac:"meta_a"},callback:this._handleSelectAll.bind(this)}];i.loadActions(l)},_handleRemoveKeys:function(e){if(this._cursor.hasSelection())return!1;if(this._cursor.isCursorReadOnly())return!1;if(this._handleNavigation(e,!1))return!0;var t=this._cursor.getCursorPosition();return t=s.getAdjustedPositionFromDirection(t,e),this._moveCursorOrRemoveEmptySiblingContainer(t,e)},_moveCursorOrRemoveEmptySiblingContainer:function(e,t){var i=this._getSiblingContainerIfTriggerPositionExpected(e,t);if(!i)return!1;var n,r=e.getNode().rootContainer();if(c.isLiveAppLineNode(r)?n=r:c.isLiveAppLineNode(i)&&(n=i,i=r),!n)return!1;i.isEmpty()&&this._liveAppDocumentHandler.mergeLiveAppLineWithEmptyLineWithUndoRedo(n,i);var a=t===o.BACKWARD_DELETE;return r===i?this._cursor.setPosition(n,a?1:0,!0):i.isEmpty()?this._cursor.setPosition(n,a?0:1,!0):this._cursor.setPosition(i,a?i.maxOffset():0,!0),!0},_getSiblingContainerIfTriggerPositionExpected:function(e,t){return this._isTriggerPositionExpected(e,t)?this._getSiblingByDirection(e,t):null},_isTriggerPositionExpected:function(e,t){var i=e.getNode().rootContainer();return t===o.BACKWARD_DELETE?r.isAtStartOfContainer(e,i):r.isAtEndOfContainer(e,i)},_getSiblingByDirection:function(e,t){var i=e.getNode().rootContainer();if(t===o.BACKWARD_DELETE){var n=i.previousSibling();if(n){var r=new a(n,0),s=c.getLiveAppLineNodeFromViewModel(r,this._view)||this._liveAppHierarchyManager.getLiveAppLineNode(n);return s||n}}return t===o.FORWARD_DELETE?(c.isLiveAppLineNode(i)&&c.hasGeneratedCode(i)&&(i=c.getEndLineOfGeneratedCode(i)),i.nextSibling()):null},_handleArrowsKey:function(e){if(this._cursor.hasSelection())return!1;var t=this._cursor.getCursorPosition(),i=s.getPositionForNavigationFromDirection(t,e,this._view);return i?(this._cursor.setPosition(i.getNode(),i.getOffset(),!0),!0):this._handleNavigation(e,!0)},_handleNavigation:function(e,t){var i=this._cursor.getCursorPosition();i=s.getAdjustedPositionFromDirection(i,e);var n=c.getLiveAppNode(i);if(!n)return!1;var o=e===s.FROM_LEFT?0:1;return o===i.getOffset()&&(t&&this._cursor.setPosition(n,0===o?1:0,!1),this._liveAppFocusManager.focusLiveApp(n),!0)},_handleSelectAll:function(){var e=this._cursor.getNode().rootContainer(),t=this._liveAppHierarchyManager.getLiveAppLineNode(e);return!!t&&(!this._cursorController.getCursors().some(this._shouldDelegateSelectAllToRtc.bind(this,t))&&(this._cursorController.setSelection([l.getSelectionOfGeneratedCode(t)]),!0))},_shouldDelegateSelectAllToRtc:function(e,t){var i;if(t.hasSelection()){var n=t.getSelection(),o=n.getStartPosition(),r=n.getEndPosition(),a=o.getNode().rootContainer(),s=r.getNode().rootContainer();i=!c.isGeneratedCodeLine(a,e)||!c.isGeneratedCodeLine(s,e)||o.isEqualTo(c.getStartPositionOfGeneratedCode(e))&&r.isEqualTo(c.getEndPositionOfGeneratedCode(e))}else{var l=t.getNode().rootContainer();i=!c.isGeneratedCodeLine(l,e)}return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5068)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.cursorcontroller","rtc.code.sections.model","rtc.code.matlabfiletype","rtc.liveapps.documenthandler"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(229),i(207),i(208),i(266),i(581),i(1977),i(496),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(i,{constructor:function(e,t,i,o,r,a){this._internalDocument=e,this._document=t,this._cursor=i.getCursors()[0],this._sectionModel=o,this._fileTypeService=r,this._liveAppDocumentHandler=a;var s=window.document.createElement("div");this._isGridSupported="string"==typeof s.style.grid||"string"==typeof s.style.msGridRow,this.own(n.after(o,"onAttributesUpdated",this._handleAttributeUpdated.bind(this),!0),n.after(r,"onFileTypeChange",this._handleFileTypeChange.bind(this),!0))},_handleCurrentSectionChanged:function(){this.onNotifyingEnableStateUpdate()},_handleAttributeUpdated:function(e){e===r.LOCAL_FUNCTION_ATTRIBUTE&&this._convertLiveAppsInLocalFunctionIntoPlainCode(),this.onNotifyingEnableStateUpdate()},_handleFileTypeChange:function(e,t){e!==this._fileTypeService.FILE_TYPE.FunctionFile&&e!==this._fileTypeService.FILE_TYPE.ClassDefinitionFile||this._convertAllLiveAppsIntoPlainCode(),this.onNotifyingEnableStateUpdate()},onNotifyingEnableStateUpdate:function(){},isEnabledAtCurrentPosition:function(){return this.isEnabledAtPosition(this._cursor.getCursorPosition())},isEnabledAtPosition:function(e){return this._isGridSupported&&!this._fileTypeService.isFunction()&&!this._fileTypeService.isClass()&&!this._isAtLocalFunctionSection(e)},_convertAllLiveAppsIntoPlainCode:function(){this._convertLiveAppIntoPlainCodeInRange(this._internalDocument.getFullRange())},_convertLiveAppsInLocalFunctionIntoPlainCode:function(){var e=this._sectionModel.getSections(),t=a.getFirstLocalFunction(e);if(t){var i=t.getStartLine()-1,n=this._createRangeFromLineToEnd(i);this._convertLiveAppIntoPlainCodeInRange(n)}},_convertLiveAppIntoPlainCodeInRange:function(e){var t=l.getLiveAppLines(e);if(t.length>0){var i=this._document.startBlockEdit(s.AUTO);this._liveAppDocumentHandler.convertLiveAppsIntoPlainCodeWithUndoRedo(t),this._document.endBlockEdit(i)}},_createRangeFromLineToEnd:function(e){return new o(this._internalDocument.getLineNode(e).startPosition(),this._internalDocument.root.endPosition())},_isAtLocalFunctionSection:function(e){var t=this._sectionModel.getSectionForNode(e.getNode());return a.hasLocalFunction(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5070)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.sections.model","rtc.execution.executionmanager","rtc.liveapps.uifigurehandler","rtc.liveapps.documenthandler","rtc.liveapps.ddux"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(942),i(283)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,i,n,o,r){this._sectionModel=e,this._executionManager=i,this._liveAppDocumentHandler=o,this._liveAppDDUXContributor=r,this.own(t.after(n,"onGeneratedCodeUpdated",this._handleGeneratedCodeUpdated.bind(this),!0))},updateAutorunState:function(e,t){this._liveAppDocumentHandler.updateContextWithoutUndoRedo(e,{autorun:t}),t&&this._checkDirtyStateAndRunSection(e)},_handleGeneratedCodeUpdated:function(e,t){this._checkDirtyStateAndRunSection(e)},_checkDirtyStateAndRunSection:function(e){if(e.getContext("autorun")&&o.isDirty(e)){var t=this._sectionModel.getSectionNumberForNode(e);this._liveAppDDUXContributor.logLiveTaskAction(n.SECTION_EXECUTION,e.getAppIdentifier()),this._executionManager.executeSection(t,!1,!0,!0),o.setDirtyState(e,!1)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5072)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.cursorcontroller","rtc.cursor.view","rtc.focusservice","rtc.liveapps.viewmodel","rtc.liveapps.hierarchymanager","rtc.liveapps.cursorhandler","rtc.liveapps.documenthandler"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(833),i(730),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(i,{constructor:function(e,i,n,o,r,a,s,l){this._view=e,this._cursorController=i,this._focusService=o,this._liveAppHierarchyManager=a,this._liveAppCursorHandler=s,this._cursor=i.getCursors()[0],this.own(t.after(n,"onChange",this._handleCursorChange.bind(this),!0),t.after(r,"onLiveAppViewCreated",this._handleLiveAppViewCreated.bind(this),!0),t.after(l,"onStartRemove",this._handleStartRemove.bind(this)),t.after(o,"onFocus",this._handleOnFocus.bind(this))),this._activeLiveApp=null,this._selectedLiveApp=null,this._positionOfActiveLiveApp=null,this._pendingSelectAndActivate=!1},_handleCursorChange:function(){if(!this._pendingSelectAndActivate){var e=this._getSelectedLiveAppRespectingCursorSelection();if(e)this._restoreFocusToLiveAppWidget(e);else{var t=this._activeLiveApp,i=this._getActiveLiveAppAtCursor();this._setActiveLiveApp(i),t&&!i&&this._returnFocusToEditor()}}},_handleLiveAppViewCreated:function(e){var t=e.getWidget();t.addDownHandler(this._handleDown.bind(this,e,!0),!0),t.addDownHandler(this._handleDown.bind(this,e,!1),!1)},_handleStartRemove:function(){this._returnFocusToEditor(!0)},_handleOnFocus:function(){if(this._activeLiveApp){var e=this._getSelectedLiveAppRespectingCursorSelection();if(!e||e!==this._activeLiveApp)this._getActiveLiveAppAtCursor()||(this._setActiveLiveApp(null),this._cursor.isSelectionHidden()&&this._cursor.showSelection())}},_handleDown:function(e,t,i){if(this._shouldCancelDownEvent(e,t,i))return i.stopPropagation(),void i.preventDefault();t?this._shouldReturnFocusToEditorForDownEvent(i,e)||(this._shouldSelectLiveAppForDownEvent(i,e)?this._selectAndActivateLiveApp(e):this._setActiveLiveApp(e)):this._shouldReturnFocusToEditorForDownEvent(i,e)?(i.preventDefault(),this._returnFocusToEditor(!1)):i.stopPropagation()},focusLiveApp:function(e){this._selectAndActivateLiveApp(e),this._focusLiveAppWidget(e)},setActiveLiveAppUsingPosition:function(e){var t=e.startPosition();this._cursorController.clearSelection(),this._cursorController.setPositions([t]),this._positionOfActiveLiveApp=t,this._cursor.isSelectionHidden()||this._cursor.hideSelection(),this._setActiveLiveApp(e)},restoreFocus:function(e,t){t&&(this._selectAndActivateLiveApp(e),t!==document.body&&t.focus())},blurLiveAppAndReturnFocusToEditor:function(){this._returnFocusToEditor(),this._getLiveAppLineNodeAtCursorInGeneratedCode()||(this._cursor.hasAnchor()&&this._cursor.releaseAnchor(),this._setActiveLiveApp(null))},_selectAndActivateLiveApp:function(e){this._pendingSelectAndActivate=!0,this._selectedLiveApp=e,this._liveAppCursorHandler.selectLiveApp(e),this._cursor.isSelectionHidden()||this._cursor.hideSelection(),this._setActiveLiveApp(e),this._pendingSelectAndActivate=!1},_setActiveLiveApp:function(e){this._activeLiveApp!==e&&(this._activeLiveApp&&this._activeLiveApp.setActive(!1),this._activeLiveApp=e,this._activeLiveApp&&this._activeLiveApp.setActive(!0))},_restoreFocusToLiveAppWidget:function(e){this._clearTimer(),this._timer=window.setTimeout(function(){var t=this._getSelectedLiveAppRespectingCursorSelection();t&&t===e&&this._focusLiveAppWidget(t)}.bind(this),0)},_focusLiveAppWidget:function(e){var t=e.getWidget().domNode,i=document.activeElement;if(!i||!t.contains(i)){var n=this._view.getScrollTop(),o=this._view.getScrollLeft();e.getWidget().focus();var r=this._view.getDomtarget();r.scrollTop=n,r.scrollLeft=o}},_returnFocusToEditor:function(e){this._selectedLiveApp&&(this._selectedLiveApp=null,e||this._cursorController.clearSelection()),this._cursor.isSelectionHidden()&&this._cursor.showSelection(),this._focusService.hasFocus()||this._focusService.setFocus()},_getActiveLiveAppAtCursor:function(){var e;return(e=this._getLiveAppLineNodeAtCursorInGeneratedCode())?(this._positionOfActiveLiveApp=null,e):this._positionOfActiveLiveApp&&this._cursor.getCursorPosition().isEqualTo(this._positionOfActiveLiveApp)?this._positionOfActiveLiveApp.getNode().rootContainer():(this._positionOfActiveLiveApp=null,null)},_getLiveAppLineNodeAtCursorInGeneratedCode:function(){var e=this._cursor.getNode();if(r.isLiveAppInlineNode(e))return null;var t=e.rootContainer();return this._liveAppHierarchyManager.getLiveAppLineNode(t)},_getSelectedLiveAppRespectingCursorSelection:function(){var e=this._selectedLiveApp,t=this._cursor.getSelection();return e&&t&&e===t.getStartPosition().getNode().rootContainer()?e:null},getSelectedLiveApp:function(){return this._selectedLiveApp},getActiveLiveApp:function(){return this._activeLiveApp},_shouldCancelDownEvent:function(e,t,i){return 2===i.button&&!this._selectedLiveApp&&t&&n.isLiveAppInCursorSelection(e,this._cursorController)},_shouldReturnFocusToEditorForDownEvent:function(e,t){return!this._pendingSelectAndActivate&&r.isLiveAppLineNode(t)&&t.getWidget().isEventFromCodeLine(e)},_shouldSelectLiveAppForDownEvent:function(e,t){return!t.getWidget().isEventFromElementOfClass(e,"mwEquationEditor")},_clearTimer:function(){this._timer&&(window.clearTimeout(this._timer),this._timer=null)},destroy:function(){this._clearTimer()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5074)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.hyperlinkservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(1124),i(1423)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e){this._hyperlinkService=e},openHelp:function(e){var t=this._getMetadataForAppIdentifier(e.getAppIdentifier());if(t){var i=t.docLink;(i=this._getUpdatedDocLinkForURL(i))?this._hyperlinkService.openUrl("matlab:helpview("+i+")"):this._hyperlinkService.openUrl('matlab:doc("'+t.appIdentifier+'")')}},_getMetadataForAppIdentifier:function(e){var t=i.getEntryWithAppIdentifier(e);if(!t){var o=n.getTaskIDFromAppIdentifier(e);t=i.getEntryWithUniqueId(o)}return t},_getUpdatedDocLinkForURL:function(e){try{return new URL(e),"'"+e+"'"}catch(t){return e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5076)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.folding.foldingcontroller","rtc.folding.foldingmodel","rtc.internaldocument","rtc.view","rtc.cursorcontroller","rtc.liveapps.viewmodel","rtc.liveapps.documenthandler","rtc.liveapps.codemanager","rtc.viewready"]}},createInstance:function(e,t,n,o,r,a,s,l,c){return new i(e,t,n,o,r,a,s,l,c)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(1924),i(5077),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{constructor:function(e,i,n,o,r,a,s,l,c){this._foldingController=e,this._foldingModel=i,this._internalDocument=n,this._view=o,this._liveAppDocumentHandler=s,this._cursor=r.getCursors()[0],this.own(t.after(this._internalDocument,"onDocumentReset",this._handleDocumentReset.bind(this),!0),t.after(c,"onViewReady",this._handleDocumentReset.bind(this),!0),t.after(a,"onLiveAppViewCreated",this._handleLiveAppViewCreated.bind(this),!0),t.after(s,"onUpdate",this._handleUpdate.bind(this),!0),t.after(e,"onCandidatesFolded",this._handleCandidatesFolded.bind(this),!0),t.after(e,"onCandidatesUnfolded",this._handleCandidatesUnfolded.bind(this),!0),t.after(l,"onCodeModelUpdated",this._handleCodeModelUpdated.bind(this),!0),t.after(s,"onStartRemove",this._handleStartRemove.bind(this),!0))},_handleDocumentReset:function(){var e=this._foldingModel.getAllFoldCandidates();e=e.filter((function(e){return!!this._isLiveAppFoldCandidate(e)&&e.getStartPosition().getNode().rootContainer().parent!==this._internalDocument.root}),this),this._foldingModel.removeFoldCandidates(e)},_handleLiveAppViewCreated:function(e){r.isLiveAppLineNode(e)&&(this._addFoldCandidates([e]),e.getWidget().on("foldbuttonclick",function(t){this._liveAppDocumentHandler.updateContextWithoutUndoRedo(e,{collapsed:!t.mwEventData.isFolded})}.bind(this)))},_handleUpdate:function(e,t){t&&this._addFoldCandidates(e,t)},_handleCodeModelUpdated:function(e){var t=e.getStore().foldCandidate;t&&(e.getContext("collapsed")&&!t.isFolded()?this._foldingController.fold(t):!e.getContext("collapsed")&&t.isFolded()&&this._foldingController.unfold(t))},_addFoldCandidates:function(e,t){var i=[];e.forEach((function(e){var n=e.getStore().foldCandidate;n||(n=new o(e),e.getStore().foldCandidate=n,t&&(e.getContext("collapsed")?n.setFolded():n.setUnfolded()),i.push(n))}),this),i.length>0&&this._foldingModel.addFoldCandidates(i)},startTemporaryExpansion:function(e){var t=e.getStore().foldCandidate;t.isFolded()&&(e.getStore().tempExpanded=!0,this._foldingController.unfold(t))},endTemporaryExpansion:function(e){e.getStore().tempExpanded&&(this._foldingController.fold(e.getStore().foldCandidate),delete e.getStore().tempExpanded)},_handleCandidatesFolded:function(e){var t=this._getLiveAppLinesFromFoldCandidates(e);0!==t.length&&(this._isInTemporaryExpansion(t)||(t.forEach((function(e){e.getContext("collapsed")||(this._isLiveAppConnectedToDocument(e)?this._liveAppDocumentHandler.updateContextWithoutUndoRedo(e,{collapsed:!0}):e.setContext("collapsed",!0)),e.getWidget().collapse()}),this),this._view.onLayoutChange()))},_handleCandidatesUnfolded:function(e){var t=this._getLiveAppLinesFromFoldCandidates(e);0!==t.length&&(this._isInTemporaryExpansion(t)||t.forEach((function(e){e.getStore().pendingRemoval||(e.getContext("collapsed")&&(this._isLiveAppConnectedToDocument(e)?this._liveAppDocumentHandler.updateContextWithoutUndoRedo(e,{collapsed:!1}):e.setContext("collapsed",!1)),e.getWidget().expand())}),this))},_isInTemporaryExpansion:function(e){return 1===e.length&&e[0].getStore().tempExpanded},_isLiveAppConnectedToDocument:function(e){return e.parent===this._internalDocument.root},_getLiveAppLinesFromFoldCandidates:function(e){var t=[];return e.forEach((function(e){if(this._isLiveAppFoldCandidate(e)){var i=this._getLiveAppLineNodeFromFoldCandidate(e);i&&t.push(i)}}),this),t},_handleStartRemove:function(e){var t=e.getStore(),i=t.foldCandidate;i&&(this._foldingController.unfold(i),this._foldingModel.removeFoldCandidates([i]),t.foldCandidate=null)},getLiveAppLineNodeAtCursor:function(){var e=this._cursor.getCursorPosition().getNode().rootContainer();return this.getLiveAppLineNode(e)},getLiveAppLineNode:function(e){if(r.isLiveAppLineNode(e))return e;var t=this._internalDocument.getLineNumber(e),i=this._foldingModel.getFoldCandidateForDocumentLine(t);if(!i)return null;var n=this._foldingModel.getCandidateLineage(i);return n.length>0?this._getLiveAppLineNodeFromFoldCandidate(n[n.length-1]):null},_getLiveAppLineNodeFromFoldCandidate:function(e){return this._isLiveAppFoldCandidate(e)?e.getStartPosition().getNode().rootContainer():null},_isLiveAppFoldCandidate:function(e){return e instanceof o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(274),i(266),i(1389),i(283)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e){this._appNode=e},destroy:function(){},getRange:function(){return new i(this.getStartPosition(),this.getEndPosition())},getStartLine:function(){return this.getStartPosition().getLine()-1},getEndLine:function(){return this.getEndPosition().getLine()-1},getStartPosition:function(){return o.getStartPositionOfLiveApp(this._appNode)},getEndPosition:function(){return o.getEndPositionOfLiveApp(this._appNode)},getFoldableNodes:function(){var e=[];return o.getGeneratedCodeLineNodes(this._appNode).forEach((function(t){e=e.concat(t.children)})),e},getHiddenRange:function(){return o.getCodeRange(this._appNode)?new i(o.getStartPositionOfGeneratedCode(this._appNode),o.getEndPositionOfGeneratedCode(this._appNode)):null},containsNode:function(e){var i=e.rootContainer(),n=this.getStartPosition().getNode(),o=this.getEndPosition().getNode();return t.getParagraphNodesInRange(n,o).indexOf(i)>=0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5079)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.view","rtc.liveapps.hierarchymanager","rtc.liveapps.documenthandler","rtc.viewready"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(477),i(527),i(399),i(730),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{constructor:function(e,t,i,n,o){this._internalDocument=e,this._document=document,this._view=t,this._liveAppHierarchyManager=i,this._liveAppDocumentHandler=n,this._viewReadyService=o,this._enabled=!0,this._addListener()},enableForHiddenCode:function(){this._enabled||(this._enabled=!0,this._addListener(),this._addDetector())},disableForHiddenCode:function(){this._enabled&&(this._enabled=!1,this._removeListener(),this._removeDetector())},_addListener:function(){this._handle=t.after(this._internalDocument,"onDocumentReset",this._handleDocumentReset.bind(this)),this._viewReadyHandle=t.after(this._viewReadyService,"onViewReady",this._handleDocumentReset.bind(this)),this.own(this._handle),this.own(this._viewReadyHandle)},_removeListener:function(){this._handle.remove(),this._handle=null,this._viewReadyHandle.remove(),this._viewReadyHandle=null},_handleDocumentReset:function(){this._removeDetector(),this._addDetector()},_removeDetector:function(){this._detector&&(this._detector.destroy(),this._detector=null)},_addDetector:function(){var e=this._view.getNodeBox(this._internalDocument.root);this._detector=new i(e,[n.tapmove({options:{numTaps:0},callbacks:{began:this._handleDown.bind(this)}})]),this.own(this._detector)},_handleDown:function(e){if(!this._internalDocument.isReadOnly()){var t=e.srcEvent,i=this._view.fixEvent(t),n=this._view.getPositionFromEvent(i);if(n){var o=n.getNode().rootContainer(),a=this._liveAppHierarchyManager.getLiveAppLineNode(o);if(a){var s,l=r.getCoordinatesOfWidget(a,this._view),c=this._view.getCoordinateFromEvent(i).y,d=l.y,u=c-(c<=d?d:d+l.height);Math.abs(u)>30||(s=this._getInsertionPosition(c,d,u,a))&&(this._liveAppDocumentHandler.insertEmptyCodeLineWithUndoRedo(s,!0),t.stopPropagation())}}}},_getInsertionPosition:function(e,t,i,n){return e>t&&i>0?this._getInsertionPositionBelowLiveApp(n):e<=t&&i<0?this._getInsertionPositionAboveLiveApp(n):null},_getInsertionPositionAboveLiveApp:function(e){var t=a.getStartPositionOfLiveApp(e),i=t.getNode().rootContainer();return this._internalDocument.startNode().rootContainer()!==i&&i.previousSibling().getDefaultChild()?null:t},_getInsertionPositionBelowLiveApp:function(e){var t=a.getEndPositionOfLiveApp(e),i=t.getNode().rootContainer();return this._internalDocument.endNode().rootContainer()!==i&&i.nextSibling().getDefaultChild()?null:t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5081)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return e},requires:function(){return{isApplicable:["rtc.integration.touchmode"],createInstance:["rtc.liveapps.focusmanager","rtc.liveapps.viewmodel"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(312),i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n){return t(i,{constructor:function(t,i){this._liveAppFocusManager=t,this._liveAppViewModel=i,this.own(n.after(this._liveAppViewModel,"onLiveAppViewCreated",this._handleLiveAppViewCreated.bind(this),!0)),this.own(n.around(e,"show",this._handleShowTooltip.bind(this)))},_handleLiveAppViewCreated:function(e){var t=e.getWidget();t.domNode.parentNode.setAttribute("contenteditable",!1),t.domNode.setAttribute("contenteditable",!1),t.domNode.setAttribute("spellcheck",!1)},_handleShowTooltip:function(t){return function(){var i=this._liveAppFocusManager.getSelectedLiveApp();if(i){var n=arguments[1],o=i.getWidget().domNode;return!o.contains(n)}return t.apply(e,arguments)}.bind(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5083)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.view","matlab.code.variables.service","rtc.liveapps.viewmodel","rtc.liveapps.backend","rtc.liveapps.codemanager","rtc.liveapps.documenthandler","rtc.liveapps.focusmanager","rtc.liveapps.helphandler","rtc.liveapps.ddux"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u){return new i(e,t,n,o,r,a,s,l,c,d,u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(212),i(206),i(207),i(5084),i(943),i(625),i(1423),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([o,r],{_DELAY:50,constructor:function(e,i,n,o,r,a,s,l,c,d,u){this._internalDocument=e,this._document=i,this._view=n,this._variableService=o,this._liveAppBackendService=a,this._liveAppCodeManager=s,this._liveAppDocumentHandler=l,this._liveAppFocusManager=c,this._liveAppHelpHandler=d,this._liveAppDDUXContributor=u,this._renderPromiseList=[],this.own(t.after(r,"onLiveAppViewCreated",this._handleLiveAppViewCreated.bind(this),!0),t.after(r,"onLiveAppViewRendered",this._handleLiveAppViewRendered.bind(this),!0),t.after(l,"onUpdate",this._handleUpdate.bind(this),!0),t.after(a,"onAppChanged",this._handleAppChanged.bind(this),!0),t.after(l,"onPermanentlyRemove",this._handlePermanentlyRemove.bind(this),!0))},_handleLiveAppViewCreated:function(e){this._initializeAppSetup(e),e.getStore().initPromise=new i,this._renderPromiseList.push(e.getStore().initPromise.promise)},getRenderPromises:function(){return this._renderPromiseList},_handleLiveAppViewRendered:function(e){this._initializeAppSetup(e)},_initializeAppSetup:function(e){var t=e.getAppIdentifier(),i=e.getTaskId();i?l.addCallbackForAppIdentifierAvailability(function(){var t=l.getAppIdentifierFromTaskID(e.getTaskId());e.setAppIdentifier(t),this._initializeAppIfNeeded(e)}.bind(this),i):t&&this._initializeAppIfNeeded(e)},_initializeAppIfNeeded:function(e){this._liveAppBackendService.shouldInitialize(e)&&(e.getWidget().setBusy(!0),this._liveAppBackendService.initializeApp(e,this._initializeApp.bind(this,e)))},_initializeApp:function(e,t){var i=e.getWidget();if(i){var n=t.clientData;if(n.errorMessage)e.setContext("appErrorMessage",n.errorMessage);else if(c.isLiveAppLineNode(e))e.getStore().appName=c.getAppName(e),e.setContext("appOperation",n.summary),e.setContext("appState",n.state),null===e.getContext("autorun")&&e.setContext("autorun",n.autorun),i.on("variablenamechange",this._handleVariableNameChange.bind(this,e)),i.on("helpbuttonclick",this._handleHelpButtonClick.bind(this,e)),i.on("positionchange",this._handlePositionChange.bind(this,e)),e.getContext("generateCodeAfterInsertion")&&this._liveAppBackendService.generateCode(e),this.onLiveAppLineInitialized(e);var o=i.initialize(t,e.getStore().initPromise);o?o.then(this._displayLiveApp.bind(this,i)):this._displayLiveApp(i)}},_displayLiveApp:function(e){e.setBusy(!1),this._view.onLayoutChange()},onLiveAppLineInitialized:function(e){},_handleAppChanged:function(e,t){var i=e.getStore();i.changedTimer&&(window.clearTimeout(i.changedTimer),i.changedTimer=null),i.changedTimer=window.setTimeout(function(){i.changedTimer=null;var n=this._updateLiveApp(e,t);n&&!n.codeSame&&this.onGeneratedCodeUpdated(e,t.context)}.bind(this),this._DELAY)},_updateLiveApp:function(e,t){t.outputs=t.outputs.join(",");var i=c.compareContext(e,t.code,t.outputs,t.summary,t.state,t.lineOffsetForUpdate);return i.allSame?null:(this._updateLiveAppWithBlockEdit(e,function(){var n={};if(!i.codeSame){var o=a.analyzeCode(t.code),r=a.getRenamableLhsVariables(o),s=this._deriveVariablesUserMapUsingLhsVariables(e,r,t);this._updateAppVariablesUserMap(e,n,s);var l=t.code?a.getCodeWithUserVariableNamesUsingAnalyzedData(o,s):"";this._liveAppCodeManager.updateGeneratedCode(e,l,t.code)}if(i.outputsSame||(n.appVariables=t.outputs),i.summarySame||(n.appOperation=t.summary),i.stateSame||(n.appState=t.state),i.lineOffsetForUpdateSame||(n.lineOffsetForUpdate=t.lineOffsetForUpdate),Object.keys(n).length>0){this._liveAppDocumentHandler.updateContextWithUndoRedo(e,n);var c=e.getWidget();!i.outputsSame&&c.updateVariables(),!i.summarySame&&c.updateOperation()}}.bind(this)),i)},_deriveVariablesUserMapUsingLhsVariables:function(e,t,i){var n=e.getContext("appVariablesUserMap"),o={},r=this._getBackupVariablesUserMap(e),a=this._internalDocument.getLineNumber(e),s=c.getEndPositionOfLiveApp(e).getLine()-1,l=e.getContext("appVariables").split(","),d=i.outputs.split(",");t.forEach((function(t){var c,u=d.indexOf(t);u>=0&&(c=l.indexOf(t)>=0&&n[t]||r[t]),0!==u||c||(c=e.getStore().initialVariable)&&i.variableBlackList.push(c),c=c||this._variableService.generateUnusedVariableName(t,a,s,i.variableBlackList),o[t]=c}),this);var u=[];return d.forEach((function(e){-1===l.indexOf(e)&&u.push(e)}),this),u.forEach((function(e){l.some((function(t){if(o[e]&&o[e]===o[t])return o[e]=this._variableService.generateUnusedVariableName(o[t],a,s,i.variableBlackList),!0}),this)}),this),o},_updateAppVariablesUserMap:function(e,t,i){var n=e.getContext("appVariablesUserMap");if(!a.variableMapsEqual(n,i)){t.appVariablesUserMap=i;var o=e.getContext("appVariables").split(","),r=this._getBackupVariablesUserMap(e);Object.keys(n).forEach((function(e){o.indexOf(e)>=0&&(r[e]=n[e])}))}},_getBackupVariablesUserMap:function(e){var t=e.getStore(),i=t.outputVariablesUserMap||{};return t.outputVariablesUserMap=i,i},_handleVariableNameChange:function(e,t){this._liveAppBackendService.getCodegenData(e,function(i){var n=this._document.startBlockEdit();null===e.getContext("code")&&this._updateLiveApp(e,i);var o=this._deriveVariablesUserMapUsingNewVariableName(e,t,i),r=this._updateGeneratedCodeUsingVariablesMap(e,o);this._document.endBlockEdit(n),r&&this.onGeneratedCodeUpdated(e,c.GENERATED_CODE_UPDATE_CONTEXT.VARIABLE_RENAME)}.bind(this))},_deriveVariablesUserMapUsingNewVariableName:function(e,t,i){var n=t.mwEventData.originalVariableName,o=t.mwEventData.newValue,r=e.getContext("appVariablesUserMap"),a=JSON.parse(JSON.stringify(r)),s=e.getContext("appVariables").split(","),l=this._internalDocument.getLineNumber(e),d=c.getEndPositionOfLiveApp(e).getLine()-1;return i.variableBlackList=i.variableBlackList||[],Object.keys(a).forEach((function(e){a[e]!==o||s.indexOf(e)>=0||(i.variableBlackList.push(o),a[e]=this._variableService.generateUnusedVariableName(e,l,d,i.variableBlackList))}),this),a[n]=o,a},_updateGeneratedCodeUsingVariablesMap:function(e,t){var i=!1;return this._updateLiveAppWithBlockEdit(e,function(){var n={appVariablesUserMap:t};this._liveAppDocumentHandler.updateContextWithUndoRedo(e,n);var o=e.getContext("code");if(o){var r=a.getCodeWithUserVariableNames(o,t);this._liveAppCodeManager.updateGeneratedCode(e,r,null),i=!0}}.bind(this)),i},_updateLiveAppWithBlockEdit:function(e,t){var i=document.activeElement,n=this._view.getScrollTop(),o=this._view.getScrollLeft(),r=this._document.startBlockEdit();r.preventMerge(),t(),this._document.endBlockEdit(r),this.onLiveAppUpdateEditDone(e),this._view.setScrollTop(n),this._view.setScrollLeft(o),this._liveAppFocusManager.restoreFocus(e,i);var a=this._view.getDomtarget();a.scrollTop=n,a.scrollLeft=o},onLiveAppUpdateEditDone:function(e){},onGeneratedCodeUpdated:function(e,t){},_handleUpdate:function(e,t){t&&e.forEach((function(e){this._liveAppBackendService.loadData(e)}),this)},_handleHelpButtonClick:function(e){this._liveAppDDUXContributor.logLiveTaskAction(s.HELP,e.getAppIdentifier(),"contextual_button"),this._liveAppHelpHandler.openHelp(e)},_handlePositionChange:function(){this._view.onLayoutChange()},_handlePermanentlyRemove:function(e){e.forEach(this._liveAppBackendService.removeApp,this._liveAppBackendService)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},getRenderPromises:function(){throw new Error("Unimplemented API: rtc.plugins.view.renderednotifier.getRenderPromises")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5086)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.uifigurewidgetfactory","rtc.diagnosticmessage"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(5087),i(5088),i(283)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e,t){this._liveAppUIFigureWidgetFactory=e,this._diagnosticMessageFormatter=t},createInlineDomNode:function(e,t){return this._createInlineWidgetView(e,t),t.classList.add("liveAppInlineNode"),t},_createInlineWidgetView:function(e,t){var i=e.getWidget();i?(i.placeAt(t),o.isLiveAppLineNode(e.parent)||this.onLiveAppViewRendered(e)):((i=this._createAndSetInlineWidget(e)).placeAt(t),i.startup(),o.isLiveAppLineNode(e.parent)||this.onLiveAppViewCreated(e))},_createAndSetInlineWidget:function(e){var t=new i({node:e,uifigureWidgetFactory:this._liveAppUIFigureWidgetFactory,diagnosticMessageFormatter:this._diagnosticMessageFormatter});return e.setWidget(t),t},createLineDomNode:function(e,t){return this._createLineWidgetView(e,t),t.classList.add("liveAppLineNode"),t},_createLineWidgetView:function(e,t){var i=e.getWidget();i?(i.layout(t),this.onLiveAppViewRendered(e)):((i=this._createAndSetLineWidget(e,t)).layout(t),i.startup(),this.onLiveAppViewCreated(e))},_createAndSetLineWidget:function(e){var t=new n({node:e});return e.setWidget(t),t},placeCodeIntoWidget:function(e,t){e.getWidget().addCodeLines(t),this.onLiveAppCodePlaced(e)},onLiveAppViewCreated:function(e){},onLiveAppViewRendered:function(e){},onLiveAppCodePlaced:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(221),i(253),i(1462),i(223),i(206),i(2069),i(308),i(243),i(446),i(247),i(493),i(943),i(730),i(283),i(2070),i(2071)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e(_,{templateString:s,constructor:function(e){this._editFields={},this._autorunButtonTooltip=null,this._helpButtonTooltip=null},buildRendering:function(){this.inherited(arguments),this._uifigureWidget=this._createUIFigureWidget(),this.own(this._uifigureWidget),this._configureForGeneralOnRendering(),g.isLiveAppIntegratedInlineNode(this.node)?this._configureForIntegratedAppOnRendering():this._configureForDemoAppOnRendering()},_createUIFigureWidget:function(){var e;return(e=this.uifigureWidgetFactory?this.uifigureWidgetFactory.createWidget(null,this.uifigureContainer):new m(null,this.uifigureContainer)).startup(),this.on("wheel",(function(t){f.hasScrollableElementInHierarchy(e.domNode,t)&&t.stopPropagation()})),e},_configureForGeneralOnRendering:function(){this.on("dragstart",this._handleDragstart.bind(this))},_handleDragstart:function(e){e.stopPropagation(),e.preventDefault()},_configureForDemoAppOnRendering:function(){this.domNode.removeChild(this.summaryContainer)},_configureForIntegratedAppOnRendering:function(){this.updateName(),this._configureToolButtons()},_configureToolButtons:function(){this._createAutorunButton(),this._createHelpButton(),this._createOptionsMenu(),this.updateToolButtonsState()},_createAutorunButton:function(){this._autorunButton=new d({icon:"liveAppAutorunButton",iconAlignment:"top",horizontalAlignment:"center"}),this._autorunButton.placeAt(this.autorunButtonContainer),this._autorunButton.startup(),this._autorunButton.on("change",this._handleAutorunButtonChange.bind(this)),this._createAutoRunButtonTooltip(),this.own(this._autorunButton)},_handleAutorunButtonChange:function(e){e.mwEventData&&"checked"===e.mwEventData.propertyName&&(this.updateAutorunSectionTooltip(o.toolbarAutorunButtonEnabledLabel,o.toolbarAutorunButtonDisabledLabel),this.emit("autorunbuttonclick",e))},_createHelpButton:function(){this._helpButton=new c({icon:"liveAppHelpButton",iconAlignment:"top",horizontalAlignment:"center"}),this._helpButton.placeAt(this.helpButtonContainer),this._helpButton.startup(),this._helpButton.on("click",this._handleHelpButtonClick.bind(this)),this._createAndUpdateHelpButtonTooltip(),this.own(this._helpButton)},_handleHelpButtonClick:function(e){this.emit("helpbuttonclick",e)},_createOptionsMenu:function(){this._optionsMenuButton=new c({icon:"liveAppActionMenu",iconAlignment:"top",horizontalAlignment:"center"}),this._optionsMenuButton.placeAt(this.optionsMenuButtonContainer),this._optionsMenuButton.startup(),this._optionsMenuButton.on("click",this._handleOptionsMenuButtonClick.bind(this)),this.own(this._optionsMenuButton)},_handleOptionsMenuButtonClick:function(e){if(0===e.x&&0===e.y){var t=this._optionsMenuButton.domNode.getBoundingClientRect();e={x:t.x,y:t.y+t.height}}this.emit("contextmenu",e)},initialize:function(e,t){var i=e.clientData;if(i.errorMessage)return this._showErrorMessage(i.errorMessage),this.domNode.classList.add(f.ERROR_INIT_CSS),null;var n=this._uifigureWidget.initialize(e,t);return n?n.then(this._handleInitialized.bind(this)):this._handleInitialized(),this.updateView(),n},_handleInitialized:function(){this._uifigureWidget.isInitialized()&&this.domNode.classList.add(f.UIFIGURE_INIT_CSS)},updateView:function(){g.isLiveAppIntegratedInlineNode(this.node)&&(this.updateName(),this.updateVariables(),this.updateOperation(),this.updateToolButtonsState())},updateName:function(){this.appName.textContent=g.getAppName(this.node)},updateOperation:function(){this.appOperation.innerHTML="";var e=this.node.getContext("appErrorMessage");if(e)this._showErrorMessageInSummary(e);else{this.appVariables.style.display="";var t=this.node.getContext("appOperation")||"",i=f.getDecoratedDomFragment(t);this.appOperation.appendChild(i),this._updateDescriptionDisplayState()}},updateVariables:function(){var e=this.node.getContext("appVariables"),t=e?e.split(","):[];e===this._appVariables?this._setVariables(t):(this._buildVariables(t),this._appVariables=e)},updateToolButtonsState:function(){this._updateAutorunSectionButton(),this._createAndUpdateHelpButtonTooltip()},_setVariables:function(e){var t=this.node.getContext("appVariablesUserMap");e.forEach((function(e){var i=this._editFields[e],n=i.inputWidget,o=i.textView,r=t[e]||e;n.get("value")!==r&&(n.set("value",r),o.textContent=r),this._applyStyleOfWidgetToEditField(n,o)}),this)},_buildVariables:function(e){this.appVariablesList.innerHTML="",this._cleanupInputWidgets();var t=this.node.getContext("appVariablesUserMap");e.forEach((function(i,n){var o=t[i]||i;this._addVariableName(i,o),n<e.length-1&&this._addComma()}),this),e.length>0&&this._addEqualSign(),this._updateDescriptionDisplayState()},_cleanupInputWidgets:function(){Object.keys(this._editFields).forEach((function(e){this._editFields[e].inputWidget.destroy()}),this),this._editFields={}},_addVariableName:function(e,t){var i=p.getEditField(t);this._editFields[e]=i;var n=i.textView,o=i.inputWidget;o.on(f.DOWN_EVENT,this._handleDownForEditField.bind(this,o)),o.on("input",this._handleInputForEditField.bind(this,o,n)),o.on("change",this._handleChangeForEditField.bind(this,o,n,e)),o.own(f.addEventListenerWithHandle(o.inputNode,"blur",this._handleBlurForEditField.bind(this,o))),o.own(f.addEventListenerWithHandle(o.domNode,"keydown",this._handleKeyDown.bind(this))),o.startup(),this.appVariablesList.appendChild(i.domNode),this._applyStyleOfWidgetToEditField(o,n)},_applyStyleOfWidgetToEditField:function(e,t){var n=window.getComputedStyle(e.inputNode),o=parseInt(n.paddingLeft,10),r=parseInt(n.paddingRight,10),a=i("edge")?4:2;t.style.paddingLeft=Math.max(a,o)+"px",t.style.paddingRight=Math.max(a,r)+"px"},_addComma:function(){var e=document.createElement("span");e.textContent=",",this.appVariablesList.appendChild(e)},_addEqualSign:function(){var e=document.createElement("span");e.textContent=" = ",this.appVariablesList.appendChild(e)},_updateDescriptionDisplayState:function(){this.appDescription.textContent.trim()?this.appDescription.style.display="":this.appDescription.style.display="none"},_showErrorMessage:function(e){g.isLiveAppIntegratedInlineNode(this.node)?this._showErrorMessageInSummary(e):this._showErrorMessageInUIFigure(e)},_showErrorMessageInSummary:function(e){this.appVariables.style.display="none";var t=this._createErrorMessageDomNode(e);this.appOperation.appendChild(t),this._updateDescriptionDisplayState()},_showErrorMessageInUIFigure:function(e){var t=this._createErrorMessageDomNode(e);this.uifigureContainer.appendChild(t)},_createErrorMessageDomNode:function(e){return e=u.treatHtmlLikeCommandWindow(e),this.diagnosticMessageFormatter.createErrorMessageWithStack(e).getDomNode()},_updateAutorunSectionButton:function(){this._autorunButton.set("checked",g.isAutorun(this.node)),this.updateAutorunSectionTooltip(o.toolbarAutorunButtonEnabledLabel,o.toolbarAutorunButtonDisabledLabel)},updateAutorunSectionTooltip:function(e,t,i){this._createAutoRunButtonTooltip(),this._autorunButtonTooltip.content&&"warning"===this._autorunButtonTooltip.content.type&&g.isAutorun(this.node)===this._currentAutorunState||(this._autorunButtonTooltip.content={text:g.isAutorun(this.node)?e:t,type:i},this._currentAutorunState=g.isAutorun(this.node))},_createAutoRunButtonTooltip:function(){this._autorunButtonTooltip||(this._autorunButtonTooltip=h.createTooltip({referenceNode:this.autorunButtonContainer}))},_createAndUpdateHelpButtonTooltip:function(){this._helpButtonTooltip||(this._helpButtonTooltip=h.createTooltip({referenceNode:this.helpButtonContainer,content:{text:o.toolbarHelpButtonLabel+" ("+n.helpShortcut+")"}}))},_handleDownForEditField:function(e,t){var i=e.inputNode;document.activeElement!==i&&(i.select(),t.preventDefault())},_handleInputForEditField:function(e,t){var i=e.inputNode;t.textContent=i.value,this._validateVariableField(e)},_handleChangeForEditField:function(e,t,i,n){if(!p.isVariableNameAllowed(n.mwEventData.newValue,this._editFields,e))return e.set("value",n.mwEventData.oldValue),e.set("validationState","normal"),void(t.textContent=n.mwEventData.oldValue);this.emit("variablenamechange",{mwEventData:{originalVariableName:i,oldValue:n.mwEventData.oldValue,newValue:n.mwEventData.newValue}})},_handleBlurForEditField:function(e){var t=e.inputNode;t.selectionStart!==t.selectionEnd&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(document.createRange()))},_handleKeyDown:function(e){e.keyCode===r.ENTER&&e.shiftKey&&e.stopPropagation()},_validateVariableField:function(e){var t=e.inputNode.value;p.isValidVariableName(t)?p.isVariableNameNotUsedInSameLiveApp(t,this._editFields,e)?(e.set("errorText",""),e.set("validationState","normal")):(e.set("errorText",o.validateVariableNameErrorMsgUnique),e.set("validationState","error")):(e.set("errorText",o.validateVariableNameErrorMsgValid),e.set("validationState","error"))},resize:function(){this._uifigureWidget.resize()},close:function(){this._destroyTooltips(),this.hideMainAppUI()},hideMainAppUI:function(){this._uifigureWidget.hide()},showMainAppUI:function(){this._uifigureWidget.show()},addDomNode:function(e){this.domNode.appendChild(e)},isEventFromInnerControl:function(e){return this.summaryContainer.contains(e)||this._uifigureWidget.isEventFromInnerControl(e)},findTabbableElements:function(){var e=[];if("none"!==t.get(this.appVariables,"pointer-events")){var i=this.appVariables.querySelectorAll(f.TABBABLE_ELEMENTS_CSS);f.addNodeListToArray(i,e)}var n=this.toolButtonsContainer.querySelectorAll(f.TABBABLE_ELEMENTS_CSS);if(f.addNodeListToArray(n,e),!this._uifigureWidget.isHidden()){var o=this._uifigureWidget.findTabbableElements();f.addNodeListToArray(o,e)}return e},_destroyTooltips:function(){this._autorunButtonTooltip&&(this._autorunButtonTooltip.destroy(),this._autorunButtonTooltip=null),this._helpButtonTooltip&&(this._helpButtonTooltip.destroy(),this._helpButtonTooltip=null)},destroy:function(){this.inherited(arguments),this._destroyTooltips()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1462),i(5089),i(223),i(206),i(493),i(730),i(283),i(2071)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(l,{templateString:i,constructor:function(e){this._codeExpanderTooltip=null},buildRendering:function(){this.inherited(arguments),this._inlineWidget=this.node.getInlineNode().getWidget(),this.own(this._inlineWidget),this._configureFocus(),this._configureFoldButton(),this._configureCodeExpander(),this.domNode.setAttribute("data-appid",this.node.uid)},_configureFocus:function(){this._inlineWidget.domNode.removeAttribute("tabindex")},_configureFoldButton:function(){this._inlineWidget.addDomNode(this.foldingButtonContainer),this.own(o(this.foldingButtonContainer,a.DOWN_EVENT,this._handleFoldingButtonClick.bind(this)))},_handleFoldingButtonClick:function(){this.emit("foldbuttonclick",{mwEventData:{isFolded:this.domNode.classList.contains("collapsed")}})},_configureCodeExpander:function(){this._inlineWidget.addDomNode(this.codeExpanderButtonContainer),this._createAndUpdateCodeExpanderTooltip(),this.own(o(this.codeExpanderButtonContainer,a.DOWN_EVENT,this._handleCodeExpanderClick.bind(this)),o(this.codeExpanderButtonContainer,"keydown",this._handleCodeExpanderKeydown.bind(this)))},_handleCodeExpanderKeydown:function(e){e.keyCode!==n.ENTER&&e.keyCode!==n.SPACE||(this._handleCodeExpanderClick(),e.stopPropagation(),e.preventDefault())},_handleCodeExpanderClick:function(){this.emit("codeexpanderclick")},initialize:function(e,t){var i=this._inlineWidget.initialize(e,t);return this.resize(),this.updateGeneratedCodeState(),i},updateView:function(){this._inlineWidget.updateView(),this.updateGeneratedCodeState(),this._createAndUpdateCodeExpanderTooltip()},updateVariables:function(){this._inlineWidget.updateVariables()},updateOperation:function(){this._inlineWidget.updateOperation()},updateGeneratedCodeState:function(){s.hasGeneratedCode(this.node)?this.domNode.classList.add("hasCode"):this.domNode.classList.remove("hasCode"),s.isShowCode(this.node)?this.domNode.classList.remove("codeHidden"):this.domNode.classList.add("codeHidden")},_createAndUpdateCodeExpanderTooltip:function(){this._codeExpanderTooltip||(this._codeExpanderTooltip=r.createTooltip({referenceNode:this.codeExpanderButtonContainer})),s.isInControlsOnlyView(this.node)?this._codeExpanderTooltip.content={text:t.showCode}:s.isInControlsAndCodeView(this.node)&&(this._codeExpanderTooltip.content={text:t.hideCode})},expand:function(){this.domNode.classList.contains("collapsed")&&(this.domNode.classList.remove("collapsed"),this._updateMainAppUIHiddenState())},collapse:function(){this.domNode.classList.contains("collapsed")||(this.domNode.classList.add("collapsed"),this._updateMainAppUIHiddenState())},hideControls:function(){this.domNode.classList.contains("controlsHidden")||(this.domNode.classList.add("controlsHidden"),this._updateMainAppUIHiddenState())},showControls:function(){this.domNode.classList.contains("controlsHidden")&&(this.domNode.classList.remove("controlsHidden"),this._updateMainAppUIHiddenState())},updateWidth:function(e){var t=this._getCodeContainerWith();this.domNode.style.width=Math.max(e-40,500,t)+"px"},_getCodeContainerWith:function(){this.codeContainer.style.display="inline-block";var e=this.codeContainer.getBoundingClientRect().width;return this.codeContainer.style.display="",e},addDownHandler:function(e,t){this._inlineWidget.addDownHandler(e,t),this.own(a.addEventListenerWithHandle(this.codeContainer,a.DOWN_EVENT,e,t))},layout:function(e){var t=e.childNodes[0];this.domNode.insertBefore(t,this.codeContainer),this.placeAt(e),this._updateMainAppUIHiddenState()},addCodeLines:function(e){e.forEach((function(e){e&&!e.contains(this.domNode)&&this.codeContainer.appendChild(e)}),this)},resize:function(){this._inlineWidget.resize()},_updateMainAppUIHiddenState:function(){return!this.node.getStore().pendingRemoval&&(this._isMainAppUIHidden()?this._inlineWidget.hideMainAppUI():this._inlineWidget.showMainAppUI(),!0)},hasCode:function(){for(var e=this.codeContainer.querySelectorAll(".liveAppCode .lineNode"),t=0;t<e.length;t+=1)if(e[t].textContent)return!0;return!1},isEventFromCodeLine:function(e){return this.isEventFromElementOfClass(e,"lineNode")},isEventFromElementOfClass:function(e,t){for(var i=e.target;i&&i!==this.codeContainer;){if(i.classList&&i.classList.contains(t))return!0;i=i.parentNode}return!1},isEventFromInnerControl:function(e){return this._inlineWidget.isEventFromInnerControl(e)||this.codeContainer.contains(e)},findTabbableElements:function(){var e=this._inlineWidget.findTabbableElements();return a.addNodeListToArray([this.codeExpanderButtonContainer],e),e},close:function(){this._inlineWidget.close(),this._destroyTooltips()},_isMainAppUIHidden:function(){return this.domNode.classList.contains("collapsed")||this.domNode.classList.contains("controlsHidden")},_destroyTooltips:function(){this._codeExpanderTooltip&&(this._codeExpanderTooltip.destroy(),this._codeExpanderTooltip=null)},destroy:function(){this.inherited(arguments),this._destroyTooltips()}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="liveAppLineWidget" tabindex="-1">\n <div class="liveAppFoldingButtonContainer" data-dojo-attach-point="foldingButtonContainer">\n <div class="liveAppFoldingButton"></div>\n </div>\n <div class="liveAppCode" data-dojo-attach-point="codeContainer"></div>\n <div class="liveAppCodeExpanderButtonContainer" data-dojo-attach-point="codeExpanderButtonContainer" tabindex="-1">\n <div class="liveAppCodeExpanderButtonInnerContainer">\n <div class="liveAppCodeExpanderButton"></div>\n </div>\n </div>\n <div class="liveAppLayer"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(205),i(5091)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursorcontroller","rtc.view","rtc.view.hidden.hiddennodemodel","rtc.view.layoutmanager.paragraphhostingmodel","rtc.liveapps.viewmodel","rtc.liveapps.documenthandler","rtc.liveapps.codemanager","rtc.liveapps.hierarchymanager","rtc.liveapps.ddux"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u){return new i(e,t,n,o,r,a,s,l,c,d,u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(229),i(207),i(373),i(625),i(283),i(932)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(n,{constructor:function(e,n,o,r,a,s,l,c,d,u){this._internalDocument=e,this._view=o,this._hiddenNodeModel=r,this._layoutParagraphHostingModel=a,this._liveAppDocumentHandler=l,this._liveAppHierarchyManager=d,this._liveAppDDUXContributor=u,this._cursor=n.getCursors()[0],this._featureId=i.generateUuid(),this.own(t.after(s,"onLiveAppViewCreated",this._handleLiveAppViewCreated.bind(this),!0),t.after(s,"onLiveAppCodePlaced",this._handleLiveAppCodePlaced.bind(this),!0),t.after(c,"onCodeModelUpdated",this._handleCodeModelUpdated.bind(this),!0),t.after(l,"onStartRemove",this._handleStartRemove.bind(this),!0),t.after(this._cursor,"onChange",this._handleCursorChanged.bind(this)),t.after(e,"readOnlyChanged",this._handleReadOnlyChanged.bind(this)),t.after(o,"onViewUpdated",this._handleViewUpdated.bind(this),!0))},_handleLiveAppViewCreated:function(e){e.getWidget().on("codeexpanderclick",function(){var t=this._liveAppHierarchyManager.getLiveAppLineNodeAtCursor();a.isInControlsOnlyView(e)?(this._liveAppDDUXContributor.logLiveTaskAction(r.TOGGLE_CONTROLS_AND_CODE,t.getAppIdentifier(),"codeExpander"),this.updateViewState(e,s.CONTROLS_AND_CODE)):a.isInControlsAndCodeView(e)&&(this._liveAppDDUXContributor.logLiveTaskAction(r.TOGGLE_CONTROLS_ONLY,t.getAppIdentifier(),"codeExpander"),this.updateViewState(e,s.CONTROLS_ONLY))}.bind(this)),this._updateWidth(e)},_handleLiveAppCodePlaced:function(e){this._tempShowGeneratedCode||this.updateGeneratedCodeHiddenState(e,!1,!1,!0)},_handleCodeModelUpdated:function(e){!a.isInCodeOnlyView(e)||a.hasGeneratedCode(e)?(this._updateToolButtonsState(e),this._updateControlsHiddenState(e),this._updateGeneratedCodeState(e),this.updateGeneratedCodeHiddenState(e,!1,!1,!1),this._updateWidth(e)):this.updateViewState(e,s.CONTROLS_ONLY)},_handleStartRemove:function(e){e.getWidget().close(),a.hasGeneratedCode(e)&&this.updateGeneratedCodeHiddenState(e,!0,!1,!1)},_handleCursorChanged:function(){var e=this._cursor.getNode().rootContainer(),t=this._liveAppHierarchyManager.getLiveAppLineNode(e);t&&(a.isShowCode(t)||a.isGeneratedCodeLine(e,t)&&(this.updateViewState(t,s.CONTROLS_AND_CODE),this._cursor.onUpdate(!1,!0)))},_handleReadOnlyChanged:function(){var e=this._internalDocument.getFullRange(),t=this._internalDocument.isReadOnly();a.getLiveAppLines(e).forEach((function(e){e.getWidget().setDisabled(t)}))},_handleViewUpdated:function(e){o.hasSizingEvent(e)&&this._liveAppDocumentHandler.getAppNodes().forEach(this._updateWidth,this)},updateViewState:function(e,t){this._liveAppDocumentHandler.updateContextWithoutUndoRedo(e,{view:t})},startExport:function(e){e.forEach((function(e){this._liveAppHierarchyManager.startTemporaryExpansion(e),a.hasGeneratedCode(e)&&(this._layoutParagraphHostingModel.delete(e),this.updateGeneratedCodeHiddenState(e,!0,!0,!0)),this.hideLiveAppLine(e)}),this)},hideLiveAppLine:function(e){this._hiddenNodeModel.setHidden(e,this._featureId),this._view.layoutNode(e)},endExport:function(e){e.forEach((function(e){this._liveAppHierarchyManager.endTemporaryExpansion(e),a.hasGeneratedCode(e)&&(this._layoutParagraphHostingModel.set(e,a.getCodeRange(e)),this.updateGeneratedCodeHiddenState(e,!1,!1,!0)),this._hiddenNodeModel.setVisible(e,this._featureId),this._view.layoutNode(e)}),this),this._view.onLayoutChange()},_updateToolButtonsState:function(e){e.getInlineNode().getWidget().updateToolButtonsState()},_updateControlsHiddenState:function(e){var t=e.getWidget();a.isInCodeOnlyView(e)||!this._view.getDomtarget().contains(t.domNode)?t.hideControls():t.showControls()},_updateGeneratedCodeState:function(e){e.getWidget().updateGeneratedCodeState()},updateGeneratedCodeHiddenState:function(e,t,i,n){var o=a.getGeneratedCodeLineNodes(e);if(0!==o.length){var r=[];o.forEach((function(i){var n=!1;i.children.forEach((function(i){var o=t||a.isShowCode(e)&&!a.isCollapsed(e)?this._hiddenNodeModel.setVisible(i,this._featureId):this._hiddenNodeModel.setHidden(i,this._featureId);n=n||o}),this),n&&r.push(i)}),this),i&&(r=o),0!==r.length&&(t?(this._tempShowGeneratedCode=!0,this._relayoutNodes(r),this._tempShowGeneratedCode=!1):this._relayoutNodes(r),n||this._view.onLayoutChange())}},_relayoutNodes:function(e){e.forEach((function(e){this._view.layoutNode(e)}),this)},_updateWidth:function(e){e.parent&&a.isLiveAppLineNode(e)&&e.getWidget().updateWidth(this._view.getClientWidth())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5093)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.actionservice","rtc.keyhandler.keyboardshortcutsmodel","rtc.keyhandler.multistrokeshortcuts","rtc.liveapps.viewmodel","rtc.liveapps.documentdeletionhandler","rtc.liveapps.focusmanager"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(221),i(223),i(207),i(615),i(799),i(371),i(251),i(941),i(625),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=i("mac")?["meta_a","meta_x","meta_c","meta_v","meta_z","meta_shift_z","home","end","shift_home","shift_end","pageup","pagedown","shift_pageup","shift_pagedown"]:i("linux")?["ctrl_a","ctrl_x","ctrl_c","ctrl_v","ctrl_z","ctrl_shift_z","home","end","ctrl_home","ctrl_end","shift_home","shift_end","ctrl_shift_home","ctrl_shift_end","pageup","pagedown","shift_pageup","shift_pagedown"]:["ctrl_a","ctrl_x","ctrl_c","ctrl_v","ctrl_z","ctrl_y","home","end","ctrl_home","ctrl_end","shift_home","shift_end","ctrl_shift_home","ctrl_shift_end","pageup","pagedown","shift_pageup","shift_pagedown"];return e(o,{constructor:function(e,i,n,o,r,a,s){this._actionService=i,this._keyboardShortcutsModel=n,this._multistrokeShortcuts=o,this._liveAppDocumentDeletionHandler=a,this._liveAppFocusManager=s,this._cursor=e.getCursors()[0],this._isInMultistroke=!1,this.own(t.after(r,"onLiveAppViewCreated",this._handleLiveAppViewCreated.bind(this),!0))},_handleLiveAppViewCreated:function(e){e.getWidget().addKeydownHandler(this._handleKeydown.bind(this,e))},_handleKeydown:function(e,t){var i;switch(t.keyCode){case n.ESCAPE:i=this._handleEscapeKey(t);break;case n.TAB:i=this._handleTabKey(e,t);break;case n.LEFT_ARROW:i=this._handleLeftKey(e,t);break;case n.RIGHT_ARROW:i=this._handleRightKey(e,t);break;case n.UP_ARROW:i=this._handleUpKey(e,t);break;case n.DOWN_ARROW:i=this._handleDownKey(e,t);break;case n.DELETE:case n.BACKSPACE:i=this._handleDeleteBackspaceKey(e,t);break;default:i=this._handleOtherKeyboardShortcuts(t)}return i&&(i.needToBlur&&this._liveAppFocusManager.blurLiveAppAndReturnFocusToEditor(),i.newOffset>=0&&this._cursor.setPosition(e,i.newOffset,!0),i.stopPropagation&&t.stopPropagation(),i.preventDefault&&t.preventDefault(),i.actionsToExecute&&r.executeActions(i.actionsToExecute)),i},_handleEscapeKey:function(e){return this._isEventFromInputWidget(e)?this._createNotHandleReturnPacket():this._createHandleAndBlurReturnPacket()},_handleTabKey:function(e,t){var i,n=e.getWidget().findTabbableElements(),o=this._findElementInNodeList(n,t.target),r=!1;return t.shiftKey?(o<0&&!this._focusOnLastTabbableElement(n)||o>=0&&!this._focusOnPreviousTabbableElement(n,o-1))&&(i=0,r=!0):(o<0&&!this._focusOnFirstTabbableElement(n)||o>=0&&!this._focusOnNextTabbableElement(n,o+1))&&(i=1,r=!0),this._createKeyHandlerReturnPacket(r,!0,!0,r?i:void 0)},_handleLeftKey:function(e,t){return this._isEventFromInnerControlOfLiveApp(e,t)?this._handleArrowKey(e,t):this._createHandleBlurAndMoveOffsetReturnPacket(0)},_handleRightKey:function(e,t){return this._isEventFromInnerControlOfLiveApp(e,t)?this._handleArrowKey(e,t):this._createHandleBlurAndMoveOffsetReturnPacket(1)},_handleUpKey:function(e,t){return this._isEventFromInnerControlOfLiveApp(e,t)?this._handleArrowKey(e,t):(this._cursor.movePosition(this._cursor.UP),this._createHandleAndBlurReturnPacket())},_handleDownKey:function(e,t){if(this._isEventFromInnerControlOfLiveApp(e,t))return this._handleArrowKey(e,t);if(u.hasGeneratedCodeInView(e)){var i=u.getEndLineOfGeneratedCode(e).startPosition();this._cursor.setPosition(i.getNode(),i.getOffset(),!0)}return this._cursor.movePosition(this._cursor.DOWN),this._createHandleAndBlurReturnPacket()},_handleArrowKey:function(e,t){return this._isEventFromInputWidget(t)?this._createNotHandleReturnPacket():this._createHandleAndPreventDefaultReturnPacket()},_handleDeleteBackspaceKey:function(e,t){return this._isEventFromInputWidget(t)?this._createNotHandleReturnPacket():(this._liveAppDocumentDeletionHandler.removeLiveAppCompletelyWithUndoRedo(e),this._createHandleAndBlurReturnPacket())},_handleOtherKeyboardShortcuts:function(e){var t=r.getKeyStrokeFromEvent(e);if(!this._isInMultistroke&&this._isEventFromInputWidget(e)&&this._isKeyStrokeAllowedForInputWidget(t))return this._createKeyHandlerReturnPacket(!1,!0,!1);var i,n,o=!1;switch(this._applyKeyStroke(t)){case a.STATUS_ENUM.INVALID_START_OF_SEQUENCE:case a.STATUS_ENUM.INVALID_MIDDLE_OF_SEQUENCE:i=this._isInMultistroke,this._isInMultistroke=!1;break;case a.STATUS_ENUM.PARTIAL_MATCH:this._isInMultistroke=!0,i=!0;break;case a.STATUS_ENUM.COMPLETE_MATCH:this._isInMultistroke=!1,i=!0;var s=this._multistrokeShortcuts.getCompleteSequence();n=this._getSupportedActions(s),this._needToReturnFocusToEditorForActions(n)&&(o=!0)}return this._createKeyHandlerReturnPacket(o,!0,i,void 0,n)},_findElementInNodeList:function(e,t){for(var i=0;i<e.length;i+=1)if(e[i]===t)return i;return-1},_focusOnLastTabbableElement:function(e){return this._focusOnPreviousTabbableElement(e,e.length-1)},_focusOnFirstTabbableElement:function(e){return this._focusOnNextTabbableElement(e,0)},_focusOnPreviousTabbableElement:function(e,t){for(var i=t;i>=0;i-=1){var n=e[i];if(this._checkTabbableElement(n))return!0}return!1},_focusOnNextTabbableElement:function(e,t){for(var i=t;i<e.length;i+=1){var n=e[i];if(this._checkTabbableElement(n))return!0}return!1},_checkTabbableElement:function(e){return e.focus(),document.activeElement===e},_createNotHandleReturnPacket:function(){return this._createKeyHandlerReturnPacket(!1,!0,!1)},_createHandleAndPreventDefaultReturnPacket:function(){return this._createKeyHandlerReturnPacket(!1,!0,!0)},_createHandleAndBlurReturnPacket:function(){return this._createKeyHandlerReturnPacket(!0,!0,!0)},_createHandleBlurAndMoveOffsetReturnPacket:function(e){return this._createKeyHandlerReturnPacket(!0,!0,!0,e)},_createKeyHandlerReturnPacket:function(e,t,i,n,o){return{needToBlur:e,stopPropagation:t,preventDefault:i,newOffset:n,actionsToExecute:o}},_isEventFromInnerControlOfLiveApp:function(e,t){return e.getWidget().isEventFromInnerControl(t.target)},_isKeyStrokeAllowedForInputWidget:function(e){return h.indexOf(e)>-1},_isEventFromInputWidget:function(e){return["input","textarea"].indexOf(e.target.tagName.toLowerCase())>=0},_needToReturnFocusToEditorForActions:function(e){return e.some((function(e){return["rtc_select_all","rtc_move_start","rtc_move_end","rtc_move_line_start","rtc_move_line_end","rtc_move_page_up","rtc_move_page_down"].indexOf(e.id)>=0}))},_applyKeyStroke:function(e){var t=this._multistrokeShortcuts.applyKeyStroke(e),i=t;switch(t){case a.STATUS_ENUM.INVALID_START_OF_SEQUENCE:case a.STATUS_ENUM.INVALID_MIDDLE_OF_SEQUENCE:i=a.STATUS_ENUM.INVALID_START_OF_SEQUENCE;break;case a.STATUS_ENUM.PARTIAL_MATCH:this._multistrokeShortcuts.getPotentialSequences().some((function(e){return this._getSupportedActions(e).length>0}),this)||(i=a.STATUS_ENUM.INVALID_START_OF_SEQUENCE,this._multistrokeShortcuts.cancelCurrentSequence());break;case a.STATUS_ENUM.COMPLETE_MATCH:var n=this._multistrokeShortcuts.getCompleteSequence();0===this._getSupportedActions(n).length&&(i=a.STATUS_ENUM.INVALID_START_OF_SEQUENCE,this._multistrokeShortcuts.cancelCurrentSequence())}return i},_getSupportedActions:function(e){return["enter"].indexOf(e)>=0?[]:this._keyboardShortcutsModel.getEnabledActionsForKeyBinding(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5095)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(363),i(471),i(207),i(909)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_METADATA_FILE_NAME:"functionSignatures",_METADATA_FUNCTION:"matlab.visualize.task.internal.utils.FunctionMetaData.updateMetaData",constructor:function(){this._metaDataFilePath=new Set,this._mvm=t.getInstance(),this._regHandle=o.setup(this._METADATA_FILE_NAME,i.JSON,this._setFunctionMetadata.bind(this),[])},_setFunctionMetadata:function(e){e.resourcesFilesData.forEach((function(e){let t=e.resourcesFileContents,i=e.resourcesFile;"object"==typeof t&&this._addFunctionMetadata(i,t)}),this),this._updateMetaData()},_updateMetaData:function(){let e=JSON.stringify({functionMetaData:Array.from(this._metaDataFilePath)});this._mvm.feval(this._METADATA_FUNCTION,0,[e]).then(function(){this.destroy()}.bind(this))},_addFunctionMetadata:function(e,t){Object.keys(t).forEach((function(i){let n=t[i];n.fileName=e,n.forEach((function(t){t.taskInfo&&t.taskInfo.VisualizeTaskInfo&&this._metaDataFilePath.add(e)}),this)}),this)},destroy:function(){this.inherited(arguments),this._regHandle.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5097)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{getAppId:function(){return"matlab.visualize.task.internal.VisualizeDataTask"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5099)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.hierarchymanager"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(266),i(5100),i(283)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._liveAppHierarchyManager=e},getAssociatedRange:function(e){var i=this._liveAppHierarchyManager.getLiveAppLineNode(e);if(!i||!n.hasGeneratedCode(i))return null;var o=n.getStartPositionOfLiveApp(i),r=n.getEndPositionOfLiveApp(i);return o.isValid()&&r.isValid()?new t(n.getStartPositionOfLiveApp(i),n.getEndPositionOfLiveApp(i)):null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{getAssociatedRange:function(e){throw new Error("Unimplemented method")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5102)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.liveapps.focusmanager","rtc.liveapps.hierarchymanager"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(528),i(2013),i(283)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,t,i){this._cursorController=e,this._liveAppFocusManager=t,this._liveAppHierarchyManager=i},handleOutputClick:function(e,i,o){var r=e.codeLinePositions[e.codeLinePositions.length-1].getNode(),a=this._liveAppHierarchyManager.getLiveAppLineNode(r);return!(!a||n.hasGeneratedCodeInView(a)||"error"===e.type)&&("symbolic"===e.type?i!==t.ON_RIGHT_VIEW_STATE&&this._liveAppFocusManager.getActiveLiveApp()!==a?(this._liveAppFocusManager.focusLiveApp(a),!0):(this._liveAppFocusManager.setActiveLiveAppUsingPosition(a),!0):i===t.ON_RIGHT_VIEW_STATE&&(this._liveAppFocusManager.focusLiveApp(a),!0))},getOutputsAssociatedWithCursor:function(e,t){var i=this._liveAppFocusManager.getSelectedLiveApp();if(!i)return null;var o=n.getCodeRange(i);return o?t.getOutputDivsForRange(o.getStartPosition().getNode(),o.getEndPosition().getNode()).map((function(e){return t.getOutputFromOutputDiv(e)})):null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5104)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.linenumberservice","rtc.id","matlab.lexer.statemanager","rtc.liveapps.ddux"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(943),i(942),i(283)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e,t,i,n,o){this._internalDocument=e,this._lineNumberService=t,this._rtcId=i,this._matlabStateManager=n,this._liveAppDDUXContributor=o},getMatlabHandler:function(){return"matlab.internal.editor.LiveAppManager.configureUpdateCallback"},getData:function(e,t){for(var i=e.getLine()-1,r=t.getLine()-1,a=[],s=i;s<=r;s+=1){var l=this._internalDocument.getLineNode(s);if(o.isLiveAppLineNode(l))if(this._shouldAddDataForLiveAppLineNode(l)){var c=this._getDataForLiveAppLine(l);c&&a.push(c),this._liveAppDDUXContributor.logLiveTaskAction(n.POST_EXECUTION,l.uid)}else this._liveAppDDUXContributor.logLiveTaskAction(n.POST_EXECUTION_NO_CODE,l.uid)}return{editorId:this._rtcId,appLineVariableList:a}},_shouldAddDataForLiveAppLineNode:function(e){return o.hasGeneratedCode(e)&&e.getContext("lineOffsetForUpdate")>=0},_getDataForLiveAppLine:function(e){return{appId:e.uid,variableMappings:this._getVariableMappingsString(e),line:this._getCodeLineForUpdate(e)}},_getVariableMappingsString:function(e){var t=i.getVariableNameInfo(e);return this._convertVariableNameInfoToNameValuePairs(t)},_convertVariableNameInfoToNameValuePairs:function(e){return e.map((function(e){return this._buildNameValuePair(e.originalVariable,e.userVariable)}),this).join(",")},_buildNameValuePair:function(e,t){return"'"+e+"',{"+t+"}"},_getCodeLineForUpdate:function(e){var t=o.getStartPositionOfLiveApp(e).getLine()-1+1,i=t+e.getContext("lineOffsetForUpdate"),n=this._getExecutableDocLineNumber(t,i);return this._lineNumberService.getCodeLineNumberFromLineNumber(n)},_getExecutableDocLineNumber:function(e,t){for(var i=t;i>=e;i--)if(this._matlabStateManager.isLineExecutable(i))return i;return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5106)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.document.modification","rtc.cutcopypaste.converter","rtc.liveapps.documenthandler","rtc.liveapps.enablestate"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(237),i(323),i(314),i(499),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(t,{constructor:function(e,t,n,o,r){this._document=e,this._converter=n,this._liveAppDocumentHandler=o,this._liveAppEnableState=r,n.registerNodeConverter(a,this._handleSerializeSelection.bind(this)),n.registerPasteHandler(a,this._handlePaste.bind(this)),this.own(i.before(t,"insertContentAt",this._handleInsertContentAt.bind(this)))},_handleSerializeSelection:function(e){var t=[],i=e.getStartPosition().getNode().rootContainer();return t.push(i.serialize()),s.getGeneratedCodeLineNodes(i).forEach((function(e){t.push(e.serialize())})),[{flavor:r.MATLAB_RICHTEXT,content:JSON.stringify(t)},{flavor:r.TEXT,content:s.getTextFromCodeRange(i)}]},_handlePaste:function(e,t,i){if(t){var n=this._converter.convertContentFromSource(i);if(n)return this._liveAppDocumentHandler.insertEmptyCodeLineWithUndoRedo(t,!0),this._document.insertContentAtCurrentPosition(n),!0}},_handleInsertContentAt:function(e,t,i){var n,r,s=function(){return n||(n=new o([]).className),n};return e.forEach((function(e){e.className===(r||(r=new a([]).className),r)&&(this._liveAppEnableState.isEnabledAtPosition(t)?0===e.children.length&&(e.className=s()):(e.className=s(),e.children=[]))}),this),[e,t,i]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5108)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.liveapps.hierarchymanager"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2066),i(283)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._internalDocument=e,this._liveAppHierarchyManager=t},canUpdateCode:function(e){if(!this._internalDocument.isReadOnly()){var t=this._liveAppHierarchyManager.getLiveAppLineNode(e);if(t)return e===this._getLastLineOfGeneratedCodeLine(t)}},_getLastLineOfGeneratedCodeLine:function(e){var t=i.getGeneratedCodeLineNodes(e);return t[t.length-1]||null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5110)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.view","rtc.view.layoutmanager.paragraphhostingmodel"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(266),i(283)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e,t,i){this._internalDocument=e,this._view=t,this._paragraphHostingModel=i},getRangeForCurrentLine:function(e,t){var i=this._internalDocument.getPositionForLineColumn(e,1);return n.getLiveAppLineNodeForNodeFromViewModel(i.getNode(),this._view)?null:this._getRangeFromInlineNodeForCurrentLine(e,t)},_getRangeFromInlineNodeForCurrentLine:function(e,t){var o=this._getHostingInlineNode(e);if(o){var r=n.getStartPositionOfLiveApp(o),a=n.getEndPositionOfLiveApp(o);if(e>=r.getLine()&&t<=a.getLine())return new i(r,r)}return null},_getHostingInlineNode:function(e){return this._paragraphHostingModel.getHostingNode(this._internalDocument.getLineNode(e-1))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5112)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2006),i(283)],o=i.dj.d(n,(function(e,t,i){return e(t,{shouldHideInHideCodeView:function(e){return!!i.isLiveAppLineNode(e)||null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5114)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.hierarchymanager","rtc.liveapps.codemanager","rtc.cursor","rtc.internaldocument"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2072),i(283)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i,n){this._liveAppHierarchyManager=e,this._liveAppCodeManager=t,this._cursor=i,this._internalDocument=n},preventSwitchingViewForDocChange:function(e){return!1},preventSwitchingViewForCursorChange:function(){var e=this._cursor.getSelection();if(e){var t=i.getLiveAppLines(e);if(t.length>0){var n=t[0],o=i.getStartLineOfGeneratedCode(n);if(i.isInCodeOnlyView(n)&&e.getStartPosition().getLineColumn().line===this._internalDocument.getLineNumber(o)+1)return!1;var r=t[t.length-1],a=i.getEndLineOfGeneratedCode(r);return!i.isInCodeOnlyView(r)||e.getEndPosition().getLineColumn().line!==this._internalDocument.getLineNumber(a)+1}var s=e.getStartPosition().getNode().rootContainer(),l=this._liveAppHierarchyManager.getLiveAppLineNode(s);return!!l&&this._liveAppCodeManager.isPendingUpdatingCode(l)}var c=this._cursor.getNode().rootContainer();return!!this._liveAppHierarchyManager.getLiveAppLineNode(c)},requireSwitchingViewForDocChange:function(e){var t=null;return e.some((function(e){if(t=this._liveAppHierarchyManager.getLiveAppLineNode(e))return!0}),this),!!t},priority:function(){return 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5116)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(297),i(617),i(363),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(){this._mvm=n.getInstance()},requestData:function(e,n,o,r,a){var s=new t;s.dequeueMode=i.DEQUEUE_AT_PPE;var l=this._mvm.feval(e,n,o,s);return l.then(r,a),l},destroy:function(){this.inherited(arguments),this._mvm=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5118)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.viewstatemanager","rtc.view"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(1463),i(323),i(685),i(402),i(283),i(452),i(1464),i(1138),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([c,o],{_MATLABCODE:"matlabcode",_OUTPUTPARAGRAPH_CLASS:"outputParagraph",constructor:function(e,t){this._view=t,this._liveAppViewStateManager=e},reset:function(e){var i=a.getLiveAppLines(e.range);if(0!==i.length&&!e.hideCode){var n=new t;return setTimeout(function(){this._liveTaskNodePromiseList=this._getLiveTaskNodePromises(i),n.resolve()}.bind(this),1e3),this._liveAppLines=i,n.promise}},_getLiveTaskNodePromises:function(e){var t={};return e.forEach((function(e){var n=a.isInControlsOnlyView(e);if(!a.isInCodeOnlyView(e)){var o=this._view.getNodeBox(e).firstChild.children[0];t[e.uid]=i.domToPngDataUri(o)}n||(this._liveAppViewStateManager.updateGeneratedCodeHiddenState(e,!0,!0,!0),this._liveAppViewStateManager.hideLiveAppLine(e))}),this),t},enter:function(e,i,o){if(o.hideCode||a.isCollapsed(i))return!0;var r=d.getVisibleRootContainerAbove(i,this._view);if(!this._getOutputParagraph(r)&&r instanceof n||this.inherited(arguments),a.isInCodeOnlyView(i))return!0;var c=new t;return this._liveTaskNodePromiseList[i.uid].then((function(t){var i=s.splitImageDataURI(t);i||c.reject("Image not found");var n=l.getImageDetails(e,i,o),r=n.imageData,a=n.imageFileName;r.setAttribute("liveTask","yes");var d=l.getInformalFigureGraphicElement(r);e.addToImageList({fileName:a,base64Data:t,canBeThumbnail:!1}),c.resolve(d)}),(function(e){c.reject(e)})),e.appendElement(c),!0},leave:function(e,t,i){if(i.hideCode||a.isCollapsed(t))return!0;var o=d.getVisibleRootContainerBelow(t,this._view);o instanceof n&&!this._getOutputParagraph(t)||this.inherited(arguments)},_processElement:function(e){return e.setAttribute(r.COLORSCHEME,this._MATLABCODE),e},_getTagName:function(){return r.PROGRAMLISTING},_getOutputParagraph:function(e){var t=this._view.getNodeBox(e);if(null===t)return null;var i=t.nextSibling;return i&&i.classList.contains(this._OUTPUTPARAGRAPH_CLASS)?i:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1138)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.viewstatemanager"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1138)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.viewstatemanager"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1138)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.viewstatemanager"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2073)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5124)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2073),i(823)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5126)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(424),i(390),i(2074),i(283),i(823),i(499)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(t,{_compatibleParents:[],constructor:function(){},getApplicableNodeClass:function(){return r},getReceivingInstruction:function(e){var t;if(e.isAtRightEdge()){var r=o.getLiveAppLineNode(e);r&&o.hasGeneratedCode(r)&&(e=o.getEndPositionOfGeneratedCode(r)),t=i.RELATION.AFTER}else t=i.RELATION.BEFORE;return new n(e,t)},getTopLevelInsertionInstruction:function(e,t,n,o,r){return{insertInRoot:{relationToPosition:e.getNode().rootContainer().isEmpty()||e.isAtLeftEdge()?i.RELATION.BEFORE:e.isAtRightEdge()?i.RELATION.AFTER:i.RELATION.AT,containerConstructor:a}}},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5128)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(499)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5130)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(818),i(499)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(){},getApplicableNodeClass:function(){return i},isConvertibleTo:function(e){return!1},isConvertibleFrom:function(e){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5132)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(270),i(323),i(424),i(390),i(499)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_compatibleParents:[],constructor:function(){},getApplicableNodeClass:function(){return r},getTopLevelInsertionInstruction:function(e,t,i,n,r){return r.isAtLeftEdge()?{insertInRoot:{relationToPosition:o.RELATION.BEFORE}}:r.isAtRightEdge()?{insertInRoot:{relationToPosition:o.RELATION.AFTER}}:{insertInRoot:{insertionPosition:r}}},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2075)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2076)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.viewmodel","rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5136)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(270),i(500),i(944),i(823),i(283),i(2075)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(s,{constructor:function(e){this._viewModel=e},getApplicableNodeClass:function(){return r},getPositionFromCoordinate:function(e,t){var o=this._getClientRects(t)[0];if(!n.isCoordinateWithinRect(e,o))return null;var r=0;return e.x>=o.left+.95*o.width&&(r=1),new i(t,r)},getCoordinateFromPosition:function(e){var t,i=e.getOffset(),n=a.getLiveAppNode(e).getWidget().domNode,o=this._getCoordinateFromDomNode(n,i);return t=o.height>40?20:o.height,1===e.getOffset()?o.y+=o.height-t:(o.x-=1,o.pageX-=1),o.height=t,o},_getCoordinateFromDomNode:function(e,i){var o=e?t.position(e):{x:0,w:0},r=n.convertFromClientToOffset(o,this._viewModel);return{x:i?r.x+o.w:r.x,y:r.y,width:o.w,height:o.h,pageX:o.x+(i?o.w:0)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5138)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.viewmodel","rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(823),i(1130),i(2076)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{getApplicableNodeClass:function(){return t},getNodeToLayout:function(e,t){return i.isUpdateOperation(t)?null:e.parent}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5140)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(500),i(686),i(283),i(499)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return o},_getSubClientRects:function(e,i,o){var r=e.startNode(),a=[o(r)],s=a[0][0];if(!s||t.isCoordinateRightOfRect(i,s))return this.inherited(arguments);var l=n.getGeneratedCodeLineNodes(e);return l.forEach((function(e){a.push(o(e))})),Array.prototype.concat.apply([],a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5142)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.liveapps.viewmodel","rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(499),i(391)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t){this._liveAppViewModel=e,this._hiddenNodeModel=t},getApplicableNodeClass:function(){return t},createDomNode:function(e,t){return this._hiddenNodeModel.isHidden(t)||this._hiddenNodeModel.isHidden(t.getInlineNode())?(e.removeAndDisconnectNode(t),null):this.layout(e,t)},layout:function(e,t){var i=e.layoutInto(t,"div");return i=this._liveAppViewModel.createLineDomNode(t,i)},refresh:function(e,t){return t.getWidget().updateView(),null},place:function(e,t){this._liveAppViewModel.placeCodeIntoWidget(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5144)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.liveapps.controller","rtc.liveapps.ddux","rtc.id"]}},createInstance:function(e,t,n,o){return new i(null,e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(207),i(208),i(625),i(2077)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(i,{_LIVE_APPS_REMOVE_CHANNEL:"/liveapps/removeTasksFromGallery",constructor:function(e,i,o,a,s){this.messageService=e||t,this._actionService=i,this._liveAppsController=o,this._liveAppDDUXContributor=a,this._rtcId=s,this._liveAppDataModel=r.getInstance(),this.own(n.after(this._liveAppDataModel,"onTasksAdded",this._handleTasksAdded.bind(this),!0)),this.own(n.after(this._liveAppDataModel,"onTasksRemoved",this._handleTasksRemoved.bind(this),!0)),this.own(n.after(this._liveAppDataModel,"onItemsLoaded",this._handleItemsLoaded.bind(this)))},_handleItemsLoaded:function(){this.onItemsLoaded()},onItemsLoaded:function(){},haveItemsLoaded:function(){return this._liveAppDataModel.haveItemsLoaded()},_handleTasksAdded:function(e){e.forEach(function(e){let t="rtc_"+e.toolId;if(!this._actionService.getAction(t)){let i=[{id:t,enabled:!0,callback:this._handleInsertion.bind(this,e.appIdentifier)}];this._actionService.loadActions(i)}}.bind(this))},_handleTasksRemoved:function(e){e.forEach(function(e){let t="rtc_"+e.toolId;this._actionService.getAction(t)&&this._actionService.removeAction(t)}.bind(this)),this.messageService.publish(this._LIVE_APPS_REMOVE_CHANNEL+this._rtcId,e)},_handleInsertion:function(e){this._liveAppsController.insertLiveAppAtCurrentPosition(e),this._liveAppDDUXContributor.logLiveTaskAction(o.INSERTTASK,e,"toolstrip")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(209),i(219),i(909),i(1124),i(471)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(e,{_LIVE_APP_METADATA_FILE_NAME:"liveTasks",_LIVE_APPS_ADD_CHANNEL:"/liveapps/addTasksToGallery",_LIVE_APPS_REMOVE_CHANNEL:"/liveapps/removeTasksFromGallery",_LIVE_APPS_ITEMS_LOADED_CHANNEL:"/liveapps/itemsLoaded",_LIVE_TASKS_SETTING_ID:"matlab.editor.codingui.UseRegFwForLiveTaskJava",_DEFAULT_TASK_CATEGORY:"my_tasks",constructor:function(e){this.messageService=e||n;let t={enabled:this._liveAppEnabledCallback.bind(this),disabled:this._liveAppDisabledCallback.bind(this)};this._regHandle=o.setup(this._LIVE_APP_METADATA_FILE_NAME,a.JSON,this._liveAppsOnPathCallback.bind(this),t),this.messageService.subscribe(this._LIVE_APPS_ITEMS_LOADED_CHANNEL,"handleItemsLoaded",this),this._itemsLoaded=!1},handleItemsLoaded:function(){this._itemsLoaded||(this._itemsLoaded=!0,this.onItemsLoaded())},onItemsLoaded:function(){},haveItemsLoaded:function(){return this._itemsLoaded},onTasksAdded:function(e){this.messageService.publish(this._LIVE_APPS_ADD_CHANNEL,e)},onTasksRemoved:function(e){this.messageService.publish(this._LIVE_APPS_REMOVE_CHANNEL,e)},_liveAppsOnPathCallback:function(e){let t=[];e.resourcesFilesData.forEach((function(e){t=t.concat(this._getTasksInfoFromResourceFile(e))}),this),t.length>0&&this.onTasksAdded(t)},_liveAppEnabledCallback:function(e){let t=this._getTasksInfoFromResourceFile(e);t.length>0&&this.onTasksAdded(t)},_getTasksInfoFromResourceFile:function(e){let t=[],i=e.resourcesFileContents;if("object"==typeof i){let n=e.resourcesFile;Object.keys(i).forEach((function(e){let o=i[e];o.role&&"master"!==o.role||t.push(this._addNewTask(e,o,n))}),this)}return t},_liveAppDisabledCallback:function(e){let t=[],i=e.resourcesFile;Object.keys(r.getAllEntriesWithUniqueId()).forEach((function(e){r.getEntryWithUniqueId(e).fileName===i&&t.push(r.removeEntryWithUniqueId(e))}),this),Object.keys(r.getAllEntriesWithAppIdentifier()).forEach((function(e){r.getEntryWithAppIdentifier(e).fileName===i&&t.push(r.removeEntryWithAppIdentifier(e))}),this),t.length>0&&this.onTasksRemoved(t)},_addNewTask:function(e,t,i){let n={toolId:this._getToolId(t),category:this._getToolCategory(t),label:this._getToolLabel(t),description:this._getToolDescription(t),icon:this._getToolIcon(t),iconAbsolutePath:this._getToolIconAbsolutePath(t),quickAccessIcon:this._getToolQuickAccessIcon(t),quickAccessIconAbsolutePath:this._getToolQuickAccessIconAbsolutePath(t),appIdentifier:e,fileName:i,docLink:t.docLink};return t.uniqueId?r.addEntryWithUniqueId(t.uniqueId,n):r.addEntryWithAppIdentifier(e,n),n},_getToolId:function(e){let t=e.toolId;return i.assert(t,"Tool id not present. Should be sent via C++ metadata transform."),t},_getToolCategory:function(e){return e.category||this._DEFAULT_TASK_CATEGORY},_getToolLabel:function(e){return e.toolLabel||e.name||e.toolId},_getToolDescription:function(e){return e.toolDescription||e.description||""},_getToolIcon:function(e){return e.icon||""},_getToolIconAbsolutePath:function(e){return e.iconAbsolutePath||""},_getToolQuickAccessIcon:function(e){return e.quickAccessIcon||""},_getToolQuickAccessIconAbsolutePath:function(e){return e.quickAccessIconAbsolutePath||""},destroy:function(){this.inherited(arguments),this._regHandle.remove(),this.messageService.unsubscribe(this._LIVE_APPS_ITEMS_LOADED_CHANNEL,"handleItemsLoaded",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5147)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:()=>({isApplicable:["rtc.integration.touchmode","rtc.touch.service"],createInstance:["rtc.document","rtc.keyhandler","rtc.cursorcontroller","rtc.touch.imeinput","rtc.liveapps.cursorhandler"]}),isApplicable:(e,t)=>e&&t.isAndroidTouchDevice(),createInstance(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(206),i(208),i(207),i(249),i(1114),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(r,{constructor:function(e,t,i,n,r){this._document=e,this._keyHandler=t,this._cursorController=i,this._matlabMobileInputEventHandler=n,this._liveAppCursorHandler=r,this._matlabMobileInputEventHandler&&(this.own(o.before(this._matlabMobileInputEventHandler,"onHandleClick",this._onHandleClick.bind(this))),this.own(o.before(this._keyHandler,"onKeyDownEnd",this._handleKeyDownEnd.bind(this))))},_handleKeyDownEnd:function(){const e=this._cursorController.getCursor().getNode();if(l.isLiveAppInlineNode(e))return this._liveAppCursorHandler.selectLiveApp(e),void this._document.deleteTextAtCurrentPosition(a.BACKWARD_DELETE)},_onHandleClick:function(){const e=this._cursorController.getCursor().getNode();l.isLiveAppInlineNode(e)?this._matlabMobileInputEventHandler.shouldHandleClick=!1:this._matlabMobileInputEventHandler.shouldHandleClick=!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5149)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(319),i(521),i(300)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{_INTRODUCED_VERSION:"R2019b",write:function(e,t){i.assert(t.serializers,"Required argument missed: 'serializers'");var n=document.createElement(this.getNodeType());return e.forEach((function(e){var i=this._getLiveAppContainer(e,t);n.appendChild(i)}),this),n},_getLiveAppContainer:function(e,t){var i=r.createXMLElement(),o=r.createParagraphProperty(this.getXMLType());i.appendChild(o);var a=e.anchorId;if(a){var s=r.createBookmarkStart(n.BOOKMARK_PREFIX+a,a);i.appendChild(s)}var l=e.children[0],c=t.serializers.getSerializer(l.className).write(l,t);i.appendChild(c);var d=r.createTextParagraph("");return r.createAlternateContent(this._INTRODUCED_VERSION,i,d)},getXMLType:function(){return"LiveAppLine"},getNodeType:function(){return"LiveAppLineNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5151)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(300),i(319),i(574)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{write:function(e,n){var o=t.createCustomXMLTag(this.getXMLType()),r=t.createXMLElement(i.CUSTOM_XML_PROPERTY);return r=this._writeAttributes(r,e),o.appendChild(r),o},_writeAttributes:function(e,t){var n=t.taskID,o=t.appIdentifier;return e=this._writeAttribute(e,i.LIVE_APP_TASK_ID,n),e=this._writeAttribute(e,i.LIVE_APP_IDENTIFIER,o),e=this._writeAttribute(e,i.LIVE_APP_VARIABLES,t.appVariables),e=this._writeAttribute(e,i.LIVE_APP_VARIABLESUSERMAP,t.appVariablesUserMap),e=this._writeAttribute(e,i.LIVE_APP_STATE,t.appState),e=this._writeAttribute(e,i.LIVE_APP_NUM_OF_CODE_LINES,t.numOfCodeLines),e=this._writeAttribute(e,i.LIVE_APP_LINE_OFFSET_FOR_UPDATE,t.lineOffsetForUpdate),e=this._writeAttribute(e,i.LIVE_APP_VIEW,t.view),e=this._writeAttribute(e,i.LIVE_APP_AUTORUN,t.autorun),e=this._writeAttribute(e,i.LIVE_APP_COLLAPSED,t.collapsed)},_writeAttribute:function(e,i,n){var o=t.createCustomXMLAttribute(i,n);return e.appendChild(o),e},read:function(e,t){for(var n={className:this.getNodeType()},o=e.getElementsByTagNameNS(i.NAMESPACE_URL,i.CUSTOM_XML_PROPERTY)[0].getElementsByTagNameNS(i.NAMESPACE_URL,i.CUSTOM_XML_ATTRIBUTE),r=0;r<o.length;r++){var a=o[r].getAttributeNS(i.NAMESPACE_URL,i.NAME_TAG),s=o[r].getAttributeNS(i.NAMESPACE_URL,i.CUSTOM_XML_VALUE_TAG);n[a]=s}return{readObject:n,readStatus:!0}},getXMLType:function(){return"LiveAppIntegratedInline"},getNodeType:function(){return"LiveAppIntegratedInlineNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(678),i(5153),i(5155),i(5158),i(5160),i(5162),i(5164),i(5166),i(5168),i(5171),i(5173),i(5174),i(5176),i(5179),i(5182),i(5184),i(5186),i(5188),i(5190),i(5192),i(5194),i(5196),i(5198),i(5200),i(5202),i(5203),i(5223),i(5230),i(5237),i(5243),i(5247),i(5249),i(5251),i(5253),i(5255),i(5257),i(5259),i(5261),i(5264)],o=i.dj.d(n,(function(e){return new e("LiveControlsPluginRegistry",[{id:"rtc.livecontrols.actionhandler",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlActionHandlerProvider",family:"rtc.livecontrols"},{id:"rtc.livecontrols.contextmanager",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlContextManagerProvider",family:"rtc.livecontrols"},{id:"rtc.livecontrols.contextmenu",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlContextMenuProvider",family:"rtc.livecontrols"},{id:"rtc.livecontrols.componentddux",path:"rtc/plugins/language/matlab/codingui/livecontrols/ddux/LiveControlComponentCounterDDUXProvider",family:"rtc.livecontrols",subsystem:"rtc.ddux.composition.contributors"},{id:"rtc.livecontrols.enabledisable",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlEnableDisableProvider",family:["rtc.livecontrols","rtc.livecontrols.view"]},{id:"rtc.livecontrols.execution",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlExecutionProvider",family:["rtc.livecontrols","rtc.livecontrols.execution"]},{id:"rtc.livecontrols.executionmodel",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlExecutionModelProvider",family:["rtc.livecontrols","rtc.livecontrols.execution"]},{id:"rtc.livecontrols.focusmanager",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlFocusManagerProvider",family:"rtc.livecontrols"},{id:"rtc.livecontrols.nodefactory",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlNodeFactoryProvider",family:"rtc.livecontrols"},{id:"rtc.livecontrols.insertion",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlInsertionProvider",family:"rtc.livecontrols",subsystem:"hideallcodeplugins"},{id:"rtc.livecontrols.keyhandler",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlKeyHandlerProvider",family:"rtc.livecontrols"},{id:"rtc.livecontrols.nodeupdater",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlNodeUpdaterProvider",family:["rtc.livecontrols","rtc.livecontrols.execution"]},{id:"rtc.livecontrols.widgetchangehandler",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlWidgetChangeHandlerProvider",family:["rtc.livecontrols","rtc.livecontrols.execution"]},{id:"rtc.livecontrols.widgethandler",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlWidgetHandlerProvider",family:"rtc.livecontrols"},{id:"rtc.livecontrols.contentconverter",path:"rtc/plugins/language/matlab/codingui/livecontrols/nodes/LiveControlNodeContentConverterProvider",family:["rtc.livecontrols","rtc.livecontrols.view"],subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.livecontrols.executablecodeconverter",path:"rtc/plugins/language/matlab/codingui/livecontrols/nodes/LiveControlNodeExecutableCodeConverterProvider",family:["rtc.livecontrols","rtc.livecontrols.execution"],isSharedPlugin:!0,subsystem:"rtc.document.executablecode.executablecodeconverter.converter"},{id:"rtc.hidecode.switchview.livecontrol.rules",path:"rtc/plugins/language/matlab/codingui/livecontrols/rules/LiveControlSwitchViewRuleProvider",family:["rtc.livecontrols","rtc.livecontrols.view"],subsystem:"rtc.hidecode.switchview.rules"},{id:"rtc.livecontrols.coordinateconverter",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/converters/LiveControlCoordinateConverterProvider",family:["rtc.livecontrols","rtc.livecontrols.view"],subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.livecontrols.viewmodel",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlViewModelProvider",family:["rtc.livecontrols","rtc.livecontrols.view"]},{id:"rtc.livecontrols.widgetstate",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlWidgetStateProvider",family:["rtc.livecontrols","rtc.livecontrols.view"]},{id:"rtc.livecontrols.sizer",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlSizerProvider",family:["rtc.livecontrols","rtc.livecontrols.view"]},{id:"rtc.livecontrols.decorator",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlDecoratorProvider",family:["rtc.livecontrols","rtc.livecontrols.view"]},{id:"rtc.livecontrols.layouter",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/LiveControlLayouterProvider",family:["rtc.livecontrols","rtc.livecontrols.view"]},{id:"rtc.livecontrols.dropdownlayouter",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/DropdownControlLayouterProvider",family:["rtc.livecontrols","rtc.livecontrols.view"],subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.livecontrols.sliderlayouter",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/SliderControlLayouterProvider",family:["rtc.livecontrols","rtc.livecontrols.view"],subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.livecontrols.checkboxlayouter",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/CheckboxControlLayouterProvider",family:["rtc.livecontrols","rtc.livecontrols.view"],subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.livecontrols.editfieldlayouter",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/EditfieldControlLayouterProvider",family:["rtc.livecontrols","rtc.livecontrols.view"],subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.livecontrols.buttonlayouter",path:"rtc/plugins/language/matlab/codingui/livecontrols/view/ButtonControlLayouterProvider",family:["rtc.livecontrols","rtc.livecontrols.view"],subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.livecontrols.insertionrule",path:"rtc/nodes/insertionrules/LiveControlNodeInsertionRulesProvider",family:"rtc.livecontrols",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.livecontrols.workspacedatacontributor",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlWorkspaceDataContributorProvider",family:"rtc.livecontrols"},{id:"rtc.export.docbookxml.livecontrol",path:"rtc/plugins/language/matlab/codingui/livecontrols/export/LiveControl2DocBookXMLProvider",subsystem:"rtc.export.docbookxmlwriters",family:"rtc.livecontrols"},{id:"rtc.export.xslfo.livecontrol",path:"rtc/plugins/language/matlab/codingui/livecontrols/export/LiveControl2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.livecontrols"},{id:"rtc.export.docx.livecontrol",path:"rtc/plugins/export/docx/LiveControlDocxSerializerProvider",subsystem:"rtc.export.docxwriters.serializers",family:"rtc.livecontrols"},{id:"rtc.export.html.livecontrol",path:"rtc/plugins/language/matlab/codingui/livecontrols/export/LiveControl2HTMLProvider",subsystem:"rtc.export.htmlwriters",family:"rtc.livecontrols"},{id:"rtc.serializers.nodes.livecontrol",path:"rtc/model/io/serializers/providers/nodes/LiveControlSerializerProvider",subsystem:"rtc.serializer",family:["rtc.livecontrols","rtc.livecontrols.view"]},{id:"rtc.view.hide.code.livecontrolpreventdisablerule",path:"rtc/view/hidden/HideCodeLiveControlPreventDisableRuleProvider",family:["rtc.livecontrols","rtc.livecontrols.view"],subsystem:"rtc.livecontrol.preventdisable"},{id:"rtc.livecontrolexecutiondduxcontributor",path:"rtc/plugins/language/matlab/codingui/livecontrols/ddux/LiveControlExecutionDDUXContributorProvider",family:["rtc.livecontrols","rtc.livecontrols.execution"],subsystem:"rtc.ddux.contributors"},{id:"rtc.livecontroldduxcontributor",path:"rtc/plugins/language/matlab/codingui/livecontrols/ddux/LiveControlDDUXContributorProvider",family:["rtc.livecontrols","rtc.livecontrols.view"],subsystem:"rtc.ddux.contributors"}])}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5154)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursorcontroller","rtc.actionservice","rtc.livecontrols.nodeupdater","rtc.document","rtc.document.changenotifier","rtc.livecontrols.viewmodel","rtc.focusservice","rtc.livecontroldduxcontributor"]}},createInstance:function(e,t,n,o,r,a,s,l,c){return new i(e,t,n,o,r,a,s,l,c)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(253),i(223),i(207),i(1115),i(425),i(474),i(414)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(r,{_EMPTY_WIDGET_VALUE:"",constructor:function(e,r,s,l,c,d,u,h,p){this._internalDocument=e,this._cursor=r.getCursors()[0],this._document=c,this._documentChangeNotifier=d,this._liveControlNodeUpdater=l,this._liveControlViewModel=u,this._focusService=h,this._liveControlDDUXContributor=p;var f=[{id:"rtc_live_control_delete",enabled:!0,key:"delete",callback:t.hitch(this,"_handleNavigation",{keyCode:o.DELETE},!0)},{id:"rtc_live_control_tab",enabled:!0,key:"tab",callback:t.hitch(this,"_handleNavigation",{keyCode:o.TAB},!0)},{id:"rtc_live_control_right",enabled:!0,key:"right",callback:t.hitch(this,"_handleNavigation",{keyCode:o.RIGHT_ARROW},!0)},{id:"rtc_live_control_left",enabled:!0,key:"left",callback:t.hitch(this,"_handleNavigation",{keyCode:o.LEFT_ARROW},!1)},{id:"rtc_live_control_backspace",enabled:!0,key:"backspace",callback:t.hitch(this,"_handleNavigation",{keyCode:o.BACKSPACE},!1)},{id:a.CONVERT_TO_CODE,enabled:!0,callback:t.hitch(this,"_convertToCode"),text:n.convertToCode},{id:a.REMOVE_CONTROL,enabled:!0,callback:t.hitch(this,"_removeControl"),text:n.removeControl}];s.loadActions(f),this.own(i.after(this._documentChangeNotifier,"onPreDeletion",this._handlePreDeletion.bind(this),!0)),this.own(i.after(this._document,"insertContent",this._handleInsertContent.bind(this),!0))},_handleNavigation:function(e,t){if(this._cursor.hasSelection())return!1;var i=this._cursor.getNode(),n=this._cursor.position;return t?this._navigateToControlAfterCursor(e,i,n):this._navigateToControlBeforeCursor(e,i,n)},_navigateToControlAfterCursor:function(e,t,i){var n=l.getControlAfterCursor(t,i);if(!n)return!1;var o=n.endPosition().getLineColumn(),r=this._sendEventToEnabledWidget(n,e);return r&&this._cursor.setLineColumn(o.line,o.column),r},_navigateToControlBeforeCursor:function(e,t,i){var n=l.getControlBeforeCursor(t,i);return!!n&&this._sendEventToEnabledWidget(n,e)},_sendEventToEnabledWidget:function(e,t){var i=this._liveControlViewModel.getNodeWidget(e);return c.getDisabled(i)?this._handleForDisabledWidget(e,t.keyCode):i.navigate(t)},_handleForDisabledWidget:function(e,t){return(t===o.BACKSPACE||t===o.DELETE)&&(this._liveControlNodeUpdater.replaceNodeWithText(e),!0)},_convertToCode:function(){var e=l.getControlNearCursor(this._cursor.getNode(),this._cursor.position);e&&(this._liveControlNodeUpdater.replaceNodeWithText(e,-1),this._focusService.setFocus())},_removeControl:function(){var e=l.getControlNearCursor(this._cursor.getNode(),this._cursor.position);e&&this._liveControlNodeUpdater.deleteNode(e)},_handlePreDeletion:function(){var e=this._cursor.getSelection();if(e&&!this._internalDocument.isReadOnly()){var t=this._cursor.getSelectionLineColumn(),i=l.getLiveControlNodesInRange(e);if(0!==i.length){this._isAnyNodeReadOnly(i)||i.forEach((function(e){this._replaceNodeWithText(e),this._liveControlViewModel.getNodeWidget(e).hideTooltip&&this._liveControlViewModel.getNodeWidget(e).hideTooltip()}),this);var n=t.start,o=t.end;this._cursor.setSelectionLineColumn(n.line,n.column,o.line,o.column)}}},_handleInsertContent:function(e){e.forEach(function(e){"LiveControlNode"===e.className&&this._liveControlDDUXContributor.logDDUXForControlPasted(e.context.type)}.bind(this))},_isAnyNodeReadOnly:function(e){return e.some((function(e){if(e.rootContainer().isReadOnly())return!0}))},_replaceNodeWithText:function(e){var t=e.startPosition().getLineColumn(),i=e.getText();this._internalDocument.deleteNode(e),this._document.insertText(i,t.line,t.column)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5156)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(5157)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(){this._context=null},createContextAndSetup:function(e){this._cleanupOldContext();var t=new o(e);this._setContext(t)},_cleanupOldContext:function(){this._context=null},_setContext:function(e){this._context=e},getContext:function(){return this._context},reset:function(){this._cleanupOldContext()},destroy:function(){this._cleanupOldContext()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){this.selectedText=e.selectedText}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5159)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.actionservice","rtc.cursorcontroller","rtc.contextmenu.generator","rtc.internaldocument"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(253),i(333),i(616),i(294),i(371),i(1115),i(474),i(414)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(o,{constructor:function(e,n,o,l,c){this._liveControlViewModel=e,this._actionService=n,this._cursorController=o,this._cursor=o.getCursors()[0],this._contextMenuGenerator=l,this._internalDocument=c;var d=[{id:s.CONFIGURE_CONTROL,enabled:!1,callback:this._handleConfigureControl.bind(this),text:i.configureControl},{id:s.RESET,enabled:!1,callback:this._handleReset.bind(this),text:i.resetControl}];n.loadActions(d),this.addActionsToMap(r.LIVE_CONTROLS,[s.CONFIGURE_CONTROL,s.RESET]),this.addActionsToMap(r.DELETE,[s.CONVERT_TO_CODE,s.REMOVE_CONTROL]),this.addActionsToMap(r.CODE_SECTIONS,["rtc_insert_sectionbreak",a.RUN_SECTION]),this.own(t.after(this._cursor,"onChange",this._handleCursorChange.bind(this))),this.own(t.after(e,"onWidgetCreated",this._handleWidgetCreated.bind(this),!0)),this.own(t.after(e,"onRightClick",this._handleRightClick.bind(this),!0)),this.own(t.after(e,"onLiveControlHolderCreated",this._handleHolderCreated.bind(this),!0)),this._nodeNextToCursor=null,this._rightClickedWidget=null},_handleCursorChange:function(){var e,t=this._cursor.getNode(),i=this._cursor.position,n=l.getControlBeforeCursor(t,i),o=l.getControlAfterCursor(t,i),r=n||o;if(r){this._nodeNextToCursor=r;var a=this._liveControlViewModel.getNodeWidget(r);e=!c.getDisabled(a)}else this._nodeNextToCursor=null,this._rightClickedWidget=null,e=!1;this._updateActions(e)},_updateActions:function(e){void 0===e&&(e=!!this._nodeNextToCursor),this._actionService.updateAction(s.CONFIGURE_CONTROL,{enabled:e});let t=this._liveControlViewModel.getNodeWidget(this._nodeNextToCursor);if(!c.isWidgetResettable(t))this.hideAction(s.RESET);else{let i=e&&c.isResetAllowed(t);this._actionService.updateAction(s.RESET,{enabled:i})}var i=this._cursor.getLineColumn().line-1,n=this._internalDocument.getLineNode(i).readOnly,o=e&&!n;this._actionService.updateAction(s.REMOVE_CONTROL,{enabled:o});var r=o&&""!==this._nodeNextToCursor.text.trim();this._actionService.updateAction(s.CONVERT_TO_CODE,{enabled:r})},_handleWidgetCreated:function(e,t){if(t){var i=this._liveControlViewModel.getNodeWidget(e);this._contextMenuGenerator.createContextMenu(i.domNode,[this])}},_handleRightClick:function(e){this._isNodeInSelection(e)||(this._rightClickedWidget=this._liveControlViewModel.getNodeWidget(e),l.setCursorAndClearSelection(this._cursorController,e))},_handleHolderCreated:function(e,t){t.addEventListener("pointerdown",function(t){2===t.button&&this._isNodeInSelection(e)&&t.preventDefault()}.bind(this),!0)},_isNodeInSelection:function(e){var t=!1;if(this._cursorController.hasSelection())for(var i=this._cursorController.getSelection(),o=0;o<i.length;o++)if(n.isNodeInRange(e,i[o])){t=!0;break}return t},_handleConfigureControl:function(){return setTimeout(function(){c.setEditMode(this._rightClickedWidget,!0)}.bind(this),0),!0},_handleReset:function(){let e=this._liveControlViewModel.getNodeWidget(this._nodeNextToCursor);e&&c.resetControl(e)},getRightClickedWidget:function(){return this._rightClickedWidget},contributeToContextMenu:function(e){return this._rightClickedWidget?this.inherited(arguments):{}},updateActions:function(){this.inherited(arguments),this._updateActions()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5161)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","language.interface.tokenmanager","rtc.livecontrols.viewmodel","rtc.livecontrol.preventdisable","rtc.viewready","rtc.document.eventcache","rtc.focusservice"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(234),i(260),i(474)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(i,{constructor:function(e,i,n,o,r,a,s){this._internalDocument=e,this._matlabTokenManager=i,this._liveControlViewModel=n,this._preventDisableRules=o,this._documentEventCache=a,this._focusService=s,this.own(t.after(i,"onTokensUpdated",this._handleTokensUpdated.bind(this),!0)),this.own(t.after(e,"onDocumentChanged",this._handleDocumentChanged.bind(this))),this.own(t.after(r,"onViewReady",this._updateControlState.bind(this))),this.own(t.after(e,"onDocumentReset",this._updateControlState.bind(this))),this.own(t.after(e,"readOnlyChanged",this._updateControlState.bind(this)))},_handleTokensUpdated:function(e){this._enableDisableControlInLines(e.getFirstLineNumber(),e.getLastLineNumber())&&this._focusService.setFocus()},_handleDocumentChanged:function(){var e=this._documentEventCache.finalLineRangeFromEvents();e&&this._enableDisableControlInLines(e.startLine,e.endLine)},_updateControlState:function(){this._enableDisableControlInLines(0,this._internalDocument.getMaxLineNumber()-1)},_enableDisableControlInLines:function(e,t){var i=!1;if(!this._preventDisablingControls()){for(var o=e;o<=t;o++){var a=this._internalDocument.getLineNode(o);if(a&&n.isCodeContainer(a)){var s=a.children;s&&0!==s.length&&(a.isReadOnly()?r.setDisabledPropertyOfControlInNodes(s,!0,this._liveControlViewModel):r.enableOrDisableControl(s,this._matlabTokenManager,this._liveControlViewModel)&&(i=!0))}}return i}},_preventDisablingControls:function(){return this._preventDisableRules.some((function(e){if(e.preventDisabling())return!0}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5163)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.sections.model","rtc.executionmanager.viewservice","rtc.execution.executionstalenessaugmentor"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(816),i(1139)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e,t,i){this._sectionModel=e,this._viewService=t,this._executionStalenessAugmentor=i},execute:function(e,t,o,r){var a=this._sectionModel.getSectionNumberForLine(e),s=r&&o===n.VALUE_CHANGING;switch(t){case i.CURRENT_SECTION:this._viewService.executeSectionWithVisualDelay(a,!1,!0,s,!0);break;case i.CURRENT_SECTION_TO_END:this._viewService.executeSectionWithVisualDelay(a,!0,!0,s,!0);break;case i.ALL:this._viewService.executeAllSectionsWithVisualDelay(!0,s,!0);break;case i.CURRENT_SECTION_AND_STALE_SECTIONS_ABOVE:var l=this._executionStalenessAugmentor.augmentStartSection(a);this._viewService.executeSectionRangeWithVisualDelay(l,a,!0,s,!0,!0)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5165)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.functionservice","rtc.code.matlabfiletype","rtc.localfunctionnotifier","rtc.livecontrols.viewmodel"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(474),i(414)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,i,n,o,r){this._internalDocument=e,this._functionService=i,this._fileTypeService=n,this._localFunctionNotifier=o,this._liveControlViewModel=r,this.own(t.after(n,"onFileTypeChange",this._handleFileTypeChange.bind(this),!0)),this.own(t.after(o,"onValidFunctionsChange",this._handleFunctionChange.bind(this))),this.own(t.after(r,"onWidgetCreated",this._handleWidgetCreated.bind(this),!0))},_handleFileTypeChange:function(e,t){var i=this._isFileTypeFunctionOrClass(e),n=this._isFileTypeFunctionOrClass(t);n&&i||(n&&!i&&this._enableDisableExecutionControlCategory(!1),!n&&i&&this._enableDisableExecutionControlCategory(!0))},_handleFunctionChange:function(){n.getLiveControlNodesInDocument(this._internalDocument).forEach((function(e){var t=e.startPosition().getLineColumn().line,i=this._functionService.isLineInFunction(t),n=this._liveControlViewModel.getNodeWidget(e);i?this._updateWidgetInLocalFunction(n):this._updateWidgetNotInFunction(n)}),this)},_handleWidgetCreated:function(e){var t=this._liveControlViewModel.getNodeWidget(e);this._isWidgetInLiveFunctionOrClass()?this._updateExecutionControl(t,!0):this._isWidgetInLocalFunction(e)?this._updateWidgetInLocalFunction(t):this._updateExecutionControl(t,!1)},_enableDisableExecutionControlCategory:function(e){n.getLiveControlNodesInDocument(this._internalDocument).forEach((function(t){var i=this._liveControlViewModel.getNodeWidget(t);this._updateExecutionControl(i,e)}),this)},_isFileTypeFunctionOrClass:function(e){return e===this._fileTypeService.FILE_TYPE.FunctionFile||e===this._fileTypeService.FILE_TYPE.ClassDefinitionFile},_updateExecutionControl:function(e,t){o.disableCategory(e,"ExecutionControl",t)},_isWidgetInLiveFunctionOrClass:function(){if(this._fileTypeService.isFunction()||this._fileTypeService.isClass())return!0},_isWidgetInLocalFunction:function(e){var t=e.startPosition().getLineColumn().line;return this._functionService.isLineInFunction(t)},_updateWidgetInLocalFunction:function(e){o.setExecutionModelToLocalFunctions(e)},_updateWidgetNotInFunction:function(e){o.setExecutionModelToAll(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5167)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.cursorcontroller","rtc.focusservice","rtc.livecontrols.contextmenu","rtc.domnode"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(208),i(207),i(474)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,n,o,r,a){this._liveControlViewModel=e,this._cursorController=n,this._cursor=n.getCursors()[0],this._focusService=o,this._liveControlContextMenu=r,this.own(i.after(e,"onClick",this._handleClick.bind(this),!0)),this.own(i.after(e,"onBlur",this._handleBlur.bind(this),!0)),this.own(i.after(e,"onBlurLeft",this._handleBlurLeft.bind(this),!0)),this.own(i.after(e,"onBlurRight",this._handleBlurRight.bind(this),!0)),this._rtcBlur=!1,this.own(t(a,"focusin",this._handleRTCFocus.bind(this))),this.own(t(a,"focusout",this._handleRTCBlur.bind(this)))},_handleRTCFocus:function(){this._rtcBlur=!1},_handleRTCBlur:function(){this._rtcBlur=!0},_handleClick:function(e){o.setCursorAndClearSelection(this._cursorController,e)},_handleBlur:function(e){setTimeout(function(){var t=this._liveControlViewModel.getNodeWidget(e);t&&(t.focused||this._rtcBlur||this._cursorController.hasSelection()||this._liveControlContextMenu.getRightClickedWidget()||this._focusService.setFocus())}.bind(this),0)},_handleBlurLeft:function(e){this._cursor.setPosition(e,0),this._focusService.setFocus()},_handleBlurRight:function(e){this._cursor.setPosition(e,e.maxOffset()),this._focusService.setFocus()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5169)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.cursorcontroller","rtc.actionservice","rtc.livecontrols.contextmanager","language.interface.tokenmanager","rtc.livecontrols.nodefactory","rtc.livecontrols.viewmodel","rtc.viewready","rtc.livecontroldduxcontributor","rtc.actionloggerserviceblacklist"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u){return new i(e,t,n,o,r,a,s,l,c,d,u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(260),i(414),i(474),i(1465),i(5170),i(399)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(s,{constructor:function(e,t,i,n,o,a,s,l,c,d,u){this._internalDocument=e,this._document=t,this._cursorController=i,this._cursor=i.getCursors()[0],this._actionService=n,this._contextManager=o,this._matlabTokenManager=a,this._liveControlNodeFactory=s,this._liveControlViewModel=l,this._viewReadyService=c,this._liveControlDDUXContributor=d,this._actionLoggerServiceBlacklist=u,this._actions=[{id:"rtc_insert_live_control",enabled:!1,callback:()=>!0}],Object.values(r).forEach(e=>{var t={id:e,enabled:!0,callback:this._insertLiveControlNode.bind(this,{id:e})};this._actions.push(t),this._actionLoggerServiceBlacklist.addAction(e)}),this._actionService.loadActions(this._actions),this._addListeners()},_addListeners:function(){this._handles=[],this._handles.push(t.after(this._viewReadyService,"onViewReady",this._handleViewReady.bind(this))),this._handles.push(t.after(this._cursorController,"onUpdate",this._handleCursorUpdate.bind(this))),this._handles.forEach((function(e){this.own(e)}),this)},enableForHiddenCode:function(){this._addListeners(),this._updateActionState()},disableForHiddenCode:function(){this._actions.forEach((function(e){this._actionService.updateAction(e.id,{enabled:!1})}),this),this._removeListeners()},_handleViewReady:function(){this._updateLiveControlAction(!0)},_handleCursorUpdate:function(){this._updateActionState()},_updateActionState:function(){var e=this._cursor.getSelection();if(this._internalDocument.isReadOnly()||this._cursor.isCursorReadOnly()||this._cursorController.hasMultipleCursors()||this._isCursorInCommentedCode(e))this._resetModelAndUpdateActions(!1);else if(e)if(e.getStartPosition().getNode().parent===e.getEndPosition().getNode().parent)if(o.isLiveControlNodeInRange(e))this._resetModelAndUpdateActions(!1);else{var t=this._parseSelection();this._updateLiveControlAction(!0),this._updateActions(this._getValidWidgetActions(t))}else this._resetModelAndUpdateActions(!1);else this._resetModelAndUpdateActions(!0)},_isCursorInCommentedCode:function(e){if(e)return!1;var t=this._cursor.getLineColumn(),i=t.line,n=t.column;return o.isLineColumnInComment(i,n,this._matlabTokenManager)},_resetModelAndUpdateActions:function(e){this._contextManager.reset(),this._updateAllActions(e)},_parseSelection:function(){var e=this._cursor.selectedText(),t=o.getWidgetTypes(e);return this._contextManager.createContextAndSetup({selectedText:e}),{text:e,widgetTypes:t}},_updateAllActions:function(e){Object.values(r).forEach(t=>{this._actionService.updateAction(t,{enabled:e})}),this._updateLiveControlAction(e)},_updateLiveControlAction:function(e){this._actionService.updateAction("rtc_insert_live_control",{enabled:e})},_updateActions:function(e){Object.values(r).forEach(t=>{let i=e.indexOf(t)>-1;this._actionService.updateAction(t,{enabled:i})})},_getValidWidgetActions:function(e){var t=e.widgetTypes,i=[];return t.forEach((function(e){var t=a[e];i=i.concat(t)})),i},_insertLiveControlNode:function(e){if(!this._actionService.getAction(e.id).enabled)return!1;var t=this._document.startBlockEdit(),o=this._cursor.hasSelection(),r=this._createNodeData(),a=this._liveControlNodeFactory.createNode(e.id,r),s=this._internalDocument.insertAtPosition(a,this._cursor.position).events;t.appendUndoEvents(i.translateEventsForUndo(s)),t.appendRedoEvents(s),this._internalDocument.emitDocumentEvents(s);var l=a.endPosition().getLineColumn();this._cursor.setLineColumn(l.line,l.column),this._document.endBlockEdit(t);let c=this._liveControlViewModel.getNodeWidget(a);return this._initializeWidgetLabel(a,c),n.setEditMode(c,!o),this._liveControlDDUXContributor.logDDUXForSelectedInsertion(e.id,o),!0},_initializeWidgetLabel:function(e,t){let i=this._findAssignmentVariable(e);i&&(n.setLabel(t,i),e.setContextDataProperty(n._CONTROL_LABEL_PROPERTY,i))},_createNodeData:function(){var e=this._contextManager.getContext(),t={};if(e){var i=e.selectedText.trim();this._document.deleteTextAtCurrentPosition(),t={context:{data:{value:i}}}}return t},_findAssignmentVariable:function(e){var t=e.startPosition().getLineColumn(),i=t.column,n=t.line,r=this._internalDocument.getLineNode(n-1).getText();return o.getAssignmentVariable(r,i)},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},destroy:function(){this.inherited(arguments),this._removeListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1465),i(673)],o=i.dj.d(n,(function(e,t){let i={};return i[t.SCALAR]=[e.NUMERIC_SLIDER_INSERT_ACTION,e.COMBO_BOX_INSERT_ACTION,e.EDIT_FIELD_INSERT_ACTION],i[t.NONE]=[e.COMBO_BOX_INSERT_ACTION,e.EDIT_FIELD_INSERT_ACTION],i[t.BOOLEAN]=[e.CHECK_BOX_INSERT_ACTION,e.COMBO_BOX_INSERT_ACTION,e.EDIT_FIELD_INSERT_ACTION],i[t.STRING]=[e.COMBO_BOX_INSERT_ACTION,e.EDIT_FIELD_INSERT_ACTION],i[t.EMPTY_STRING]=[e.EDIT_FIELD_INSERT_ACTION],i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5172)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.livecontrols.nodeupdater","rtc.internaldocument","rtc.document","rtc.cursorcontroller","rtc.keyhandler.keyboardshortcutsmodel","rtc.focusservice","rtc.keyhandler.multistrokeshortcuts"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(223),i(207),i(208),i(615),i(799),i(249),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=[l.UNDO_REDO.UNDO_ACTION,l.UNDO_REDO.REDO_ACTION,"rtc_move_page_up","rtc_move_page_down","rtc_insert_sectionbreak"];return e(n,{constructor:function(e,t,i,n,r,a,s,l){this._liveControlNodeUpdater=t,this._internalDocument=i,this._document=n,this._cursorController=r,this._cursor=r.getCursors()[0],this._keyboardShortcutsModel=a,this._focusService=s,this._multiStrokeShortcuts=l,this.own(o.after(e,"onKeyEvents",this._handleKeyEvents.bind(this),!0))},_handleKeyEvents:function(e,t){if(e){var n={stopPropagation:!0,preventDefault:!0};switch((e=e.mwEventData.event).keyCode){case i.LEFT_ARROW:!e.metaKey||e.shiftKey||e.ctrlKey||e.altKey?this._placeCursorBeforeNode(t):this._placeCursorAtStartOfLine(t);break;case i.RIGHT_ARROW:!e.metaKey||e.shiftKey||e.ctrlKey||e.altKey?this._placeCursorAfterNode(t):this._placeCursorAtEndOfLine(t);break;case i.TAB:e.shiftKey?this._placeCursorBeforeNode(t):this._placeCursorAfterNode(t);break;case i.ENTER:e.ctrlKey||e.metaKey||e.altKey?n=this._handleOtherKeyboardShortcuts(e):this._placeCursorAfterNode(t);break;case i.BACKSPACE:t.rootContainer().isReadOnly()||(this._liveControlNodeUpdater.replaceNodeWithText(t,s.BACKWARD_DELETE),this._focusService.setFocus());break;case i.DELETE:t.rootContainer().isReadOnly()||(this._liveControlNodeUpdater.replaceNodeWithText(t,s.FORWARD_DELETE),this._focusService.setFocus());break;case i.ESCAPE:this._placeCursorAfterNode(t);break;default:n=this._handleOtherKeyboardShortcuts(e)}n.stopPropagation&&e.stopPropagation(),n.preventDefault&&e.preventDefault()}},_placeCursorAtStartOfLine:function(e){this._cursor.setPosition(e.rootContainer().startPosition()),this._focusService.setFocus()},_placeCursorAtEndOfLine:function(e){this._cursor.setPosition(e.rootContainer().endPosition()),this._focusService.setFocus()},_placeCursorBeforeNode:function(e){var t=e.startPosition();this._cursor.setPosition(t),this._focusService.setFocus()},_placeCursorAfterNode:function(e){var t=e.endPosition();this._cursor.setPosition(t),this._focusService.setFocus()},_handleOtherKeyboardShortcuts:function(e){var t=r.getKeyStrokeFromEvent(e),i=this._multiStrokeShortcuts.applyKeyStroke(t),n=a.handleMultistrokeState(i,this._multiStrokeShortcuts,this._keyboardShortcutsModel),o=n.actions;return o.length>0&&r.executeActions(o),(o.some((function(e){return c.indexOf(e.id)>=0}))||this._cursor.hasSelection())&&this._focusService.setFocus(),{stopPropagation:!0,preventDefault:n.preventDefault}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2078)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5175)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.livecontrols.viewmodel","rtc.cursorcontroller","rtc.focusservice"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(249),i(945),i(497),i(364),i(2079)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(t,{constructor:function(e,t,i,n,o){this._document=e,this._internalDocument=t,this._liveControlViewModel=i,this._cursor=n.getCursors()[0],this._focusService=o},updateNodeAndRecord:function(e,t){if(!a.shouldUpdate(e,this._liveControlViewModel.getNodeWidget(e),t))return[];var i=e.getText(),s=e.startPosition(),l=s.getLine()-1,c=s.getColumn()-1,d=this._document.startEdit(a.getUndoRedoBlockType(e)),u=[r.create(l,l)];if(t!==i){this._internalDocument.updateTextInNode(e,t,0,e.getText().length);var h=[o.create(l,l,c),n.create(l,l,s,i)],p=[n.create(l,l,s,t),o.create(l,l,c)]}return this._internalDocument.changeNodeAttributes(e,{context:a.createContextFromWidget(e,this._liveControlViewModel.getNodeWidget(e))}),e.intermediateEvalText=null,d.appendUndoEvents(h||u),d.appendRedoEvents(p||u),this._document.endEdit(d),p||u},deleteNode:function(e){var t=e.startPosition().getLineColumn().line-1,i=this._document.startEdit(a.getUndoRedoBlockType(e));this._internalDocument.deleteNode(e),this._liveControlViewModel.getNodeWidget(e).destroy(),this._liveControlViewModel.setNodeWidget(e,null);var n=[o.create(t,t,0)];i.appendUndoEvents(n),i.appendRedoEvents(n),this._document.endEdit(i),this._internalDocument.emitDocumentEvents(n),this._focusService.setFocus()},replaceNodeWithText:function(e,t){var n=this._document.startBlockEdit(),r=e.startPosition().getLineColumn(),a=e.endPosition().getLineColumn(),s=e.getText();this._document.replaceText(s,r.line,r.column,a.line,a.column);var l=this._cursor.getLineColumn().line,c=[o.create(l-1,l-1,0)];t===i.BACKWARD_DELETE?this._cursor.setLineColumn(r.line,r.column+s.length):t===i.FORWARD_DELETE&&this._cursor.setLineColumn(r.line,r.column),n.appendUndoEvents(c),n.appendRedoEvents(c),this._internalDocument.emitDocumentEvents(c),this._document.endBlockEdit(n)},updateNodeIntermediately:function(e,t){e.intermediateEvalText=t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5177)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.sections.stale.model","rtc.cursorcontroller","rtc.internaldocument","rtc.livecontrols.viewmodel","rtc.livecontrols.nodeupdater","rtc.livecontrols.execution"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(364),i(5178),i(2079),i(414)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(t,{constructor:function(e,t,n,o,r,a){this._staleSectionModel=e,this._cursor=t.getCursors()[0],this._internalDocument=n,this._liveControlViewModel=o,this._liveControlNodeUpdater=r,this._liveControlExecution=a,this.own(i.after(o,"onControlClick",this._handleControlClick.bind(this),!0)),this.own(i.after(o,"onControlChange",this._handleControlChange.bind(this),!0)),this.own(i.after(o,"onIntermediateValueChange",this._handleIntermediateValueChange.bind(this),!0))},_handleControlClick:function(e){let t=this._liveControlViewModel.getNodeWidget(e),i=a.getExecutionModel(t),n=e.startPosition().getLine()-1;this._liveControlExecution.execute(n,i),this.onNonIntermediateExecute(e.context,i,!1)},_handleControlChange:function(e,t,i){this._updateNodeBasedOnEvent(e,i);let n=this._liveControlViewModel.getNodeWidget(e),r=a.getExecutionModel(n),s=a.getExecuteOn(n),l=o.shouldExecute(s,r,i);if(o.alreadyExecuted(s,i,t.mwEventData))return this._handleStalenessAndEmitDocEvent(e,!0),void(l&&this._fireNonIntermediateExecutionEvent(i,r,e.context));if(this._handleStalenessAndEmitDocEvent(e,l),!i&&this._isNodeEndSameAsCursor(e)&&n.focus(),l){this._fireNonIntermediateExecutionEvent(i,r,e.context);let t=e.startPosition().getLine()-1;this._liveControlExecution.execute(t,r,s,i)}},_handleIntermediateValueChange:function(e,t){let i=e.getText(),n=t.mwEventData.newValue.toString();n!==i&&this._internalDocument.updateTextInNode(e,n,0,i.length),this._internalDocument.changeNodeAttributes(e,{context:r.createContextFromWidget(e,this._liveControlViewModel.getNodeWidget(e))}),this._handleStalenessAndEmitDocEvent(e,!0)},_updateNodeBasedOnEvent:function(e,t){let i=this._liveControlViewModel.getNodeWidget(e),n=a.getValue(i).toString();t?this._liveControlNodeUpdater.updateNodeIntermediately(e,n):this._liveControlNodeUpdater.updateNodeAndRecord(e,n)},_handleStalenessAndEmitDocEvent:function(e,t){let i=this._staleSectionModel.getEnablement();t&&this._staleSectionModel.setEnablement(!1);let o=e.startPosition().getLine()-1,r=[n.create(o,o)];this._internalDocument.emitDocumentEvents(r),this._staleSectionModel.setEnablement(i)},_isNodeEndSameAsCursor:function(e){let t=e.endPosition().getLineColumn(),i=this._cursor.getLineColumn();return t.line===i.line&&t.column===i.column},_fireNonIntermediateExecutionEvent:function(e,t,i){o.isNonIntermediateExecution(e,t)&&this.onNonIntermediateExecute(i,t,e)},onNonIntermediateExecute:function(e,t,i){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(816),i(1139)],o=i.dj.d(n,(function(e,t){return{shouldExecute:function(i,n,o){return n!==e.NOTHING&&!(o&&i!==t.VALUE_CHANGING)},alreadyExecuted:function(e,i,n){return!i&&n.oldValue===n.newValue&&e===t.VALUE_CHANGING},isNonIntermediateExecution:function(t,i){return!t&&i&&i!==e.NOTHING}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5180)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.view","rtc.internaldocument","rtc.document","rtc.cursorcontroller","rtc.scrollpane","rtc.viewready","rtc.livecontrols.widgetstate","rtc.domnode","rtc.livecontrols.nodeupdater"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d){return new i(e,t,n,o,r,a,s,l,c,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(208),i(207),i(364),i(373),i(5181),i(414)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(n,{constructor:function(e,n,o,r,a,s,l,c,d,u){this._liveControlViewModel=e,this._view=n,this._cursor=a.getCursors()[0],this._internalDocument=o,this._document=r,this._cursorController=a,this._scrollPane=s,this._liveControlWidgetState=c,this._liveControlNodeUpdater=u,this.own(i.after(e,"onWidgetDataUpdated",this._handleWidgetDataUpdated.bind(this),!0)),this.own(i.after(e,"onEditModeStart",this._handleEditModeStart.bind(this),!0)),this.own(i.after(e,"onEditModeEnd",this._handleEditModeEnd.bind(this),!0)),this.own(i.after(e,"onConfigPanelVisible",this._handleConfigPanelVisible.bind(this),!0)),this.own(i.after(n,"onViewUpdated",this._handleViewUpdated.bind(this),!0)),this._rtcBlur=!1,this.own(t(d,"focusin",this._handleRTCFocus.bind(this))),this.own(t(d,"focusout",this._handleRTCBlur.bind(this))),this._nodeInEditMode=null},_handleRTCFocus:function(){this._rtcBlur=!1},_handleRTCBlur:function(){this._rtcBlur=!0},_handleEditModeStart:function(e){this._nodeInEditMode=e,this._liveControlWidgetState.updateWidgetDisplay(e),this._cursorController.clearSelection()},_handleEditModeEnd:function(e){this._nodeInEditMode=null;var t=this._liveControlViewModel.getNodeWidget(e),i=s.getValue(t).toString();if(this._liveControlWidgetState.updateWidgetDisplay(e),e.parent)if(""===i&&e.shouldDeleteIfEmpty())this._liveControlNodeUpdater.deleteNode(e);else{var n=this._liveControlNodeUpdater.updateNodeAndRecord(e,i);this._internalDocument.emitDocumentEvents(n)}this._view.onViewUpdated([r.createEvent(r.EVENTS.renderUpdate)]),this._rtcBlur||this._cursor.show()},_handleWidgetDataUpdated:function(e){let t=this._liveControlViewModel.getNodeWidget(e),i=s.getData(t,e.getDataProperties());e.setContextData(i);let n=e.getText(),r=t.get("value").toString();if(r.trim()!==n.trim()){this._internalDocument.updateTextInNode(e,r,0,n.length);let t=e.startPosition().getLine()-1,i=[o.create(t,t)];this._internalDocument.emitDocumentEvents(i)}},_handleConfigPanelVisible:function(e){a.reposition(this._view,e,this._liveControlViewModel.getNodeWidget(e))},_handleViewUpdated:function(e){this._nodeInEditMode&&r.hasHeightEvent(e)&&a.repositionVertically(this._view,this._nodeInEditMode,this._liveControlViewModel.getNodeWidget(this._nodeInEditMode))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(816),i(1139),i(414)],o=i.dj.d(n,(function(e,t,i){return{reposition:function(e,t,i){this.repositionHorizontally(e,t,i),this.repositionVertically(e,t,i)},repositionHorizontally:function(e,t,n){var o=e.getCoordinateForNode(t),r=i.getWidth(n);(i.getPanelWidth(n)-r)/2>o.x?i.setAlign(n,"left"):i.setAlign(n,"center")},repositionVertically:function(e,t,n){this._shouldShowBelow(e,t,n)?i.setPosition(n,"bottom"):i.setPosition(n,"top")},_shouldShowBelow:function(e,t,n){var o=e.getCoordinateForNode(t),r=e.getDomTargetPosition(),a=r.offsetHeight,s=o.y-r.scrollTop,l=a-(s+o.height),c=i.getPanelHeight(n);return l>=c||l>s||s<=c}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5183)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(1463),i(452),i(1464),i(252),i(425)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([r],{constructor:function(e){this._view=e},getApplicableNodeClass:function(){return a},visit:function(e,r,a,s,l){var c=this._view.getNodeBox(r).getElementsByClassName("liveControlDiv")[0].firstChild,d=r.getCodeText(),u=new t;i.domToPngDataUri(c).then((function(t){var i=n.splitImageDataURI(t);i||u.reject("Image not found");var a=o.getImageDetails(e,i,l),s=a.imageData,c=a.imageFileName;s.setAttribute("livecontrolvalue",d);var h=o.getOuterElement(r,s);e.addToImageList({fileName:c,base64Data:t,canBeThumbnail:!1}),u.resolve(h)}),(function(e){u.reject(e)})),e.appendElement(u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5185)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(425)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){this._view=e},getApplicableNodeClass:function(){return i},visit:function(e,t,i,n,o){var r=this._view.getNodeBox(t).getElementsByClassName("liveControlTextView")[0];return e.addToBody(r.innerHTML),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5187)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(252),i(357),i(426),i(425)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t([i],{constructor:function(e){this._view=e},getApplicableNodeClass:function(){return r},visit:function(t,i,r,a,s){var l,c=this._view.getNodeBox(i).getElementsByClassName("liveControlTextView")[0];return e.forEach(c.childNodes,(function(e){(l=o.createFOElement(n.INLINE)).textContent=e.textContent,e.style.color&&l.setAttribute("color",e.style.color),t.appendElement(l)})),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5189)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(1465),i(1466),i(1467),i(1468),i(1469),i(1470)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l={};return l[i.COMBO_BOX_INSERT_ACTION]=r,l[i.NUMERIC_SLIDER_INSERT_ACTION]=s,l[i.CHECK_BOX_INSERT_ACTION]=o,l[i.EDIT_FIELD_INSERT_ACTION]=a,l[i.BUTTON_INSERT_ACTION]=n,e(t,{createNode:function(e,t){return new l[e](t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5191)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(731),i(1466),i(1467),i(1468),i(1469),i(425),i(1470),i(673)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c={};return c[l.COMBO_BOX]=o,c[l.SLIDER]=s,c[l.CHECK_BOX]=n,c[l.EDIT_FIELD]=r,c[l.BUTTON]=i,e(t,{getApplicableNodeClass:function(e){return e?c[e]:a},unpack:function(e){return new(this.getApplicableNodeClass(e.context.type))(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5193)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1471),i(425)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(){},getApplicableNodeClass:function(){return i},getEvalTextFromNode:function(e){return e.intermediateEvalText||e.text}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5195)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursor"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2072),i(425)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._internalDocument=e,this._cursor=t},preventSwitchingViewForDocChange:function(e){return e.some((function(e){if(e)return e.children.some((function(e){if(e instanceof i)return!0}),this)}),this)},preventSwitchingViewForCursorChange:function(){if(this._cursor.getNode()instanceof i)return!0},priority:function(){return 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5197)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(270),i(425),i(944),i(500)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{BOUNDARY_OFFSET:1,constructor:function(e){},getApplicableNodeClass:function(){return i},getCoordinateFromPosition:function(e){var t=this.inherited(arguments),i=e.getOffset();return i===e.getNode().maxOffset()?(t.x+=this.BOUNDARY_OFFSET,t.pageX+=this.BOUNDARY_OFFSET):0===i&&(t.x-=this.BOUNDARY_OFFSET,t.pageX-=this.BOUNDARY_OFFSET),t},getPositionFromCoordinate:function(e,i){var n=this._getClientRects(i)[0];if(!o.isCoordinateWithinRect(e,n))return null;var r=0;return e.x>=n.left+n.width/2&&(r=i.maxOffset()),new t(i,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5199)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.view.decoration.viewmodel","rtc.livecontroldduxcontributor"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(221),i(208),i(207),i(414),i(474),i(362),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(r,{_LIVE_CONTROL_INNER_NODE:"liveControlInnerNode",_LIVE_CONTROL_TEXT_VIEW:"liveControlTextView",constructor:function(e,t,i){this._internalDocument=e,this._decorationViewModel=t,this._liveControlDDUXContributor=i,this._widgetUid=c.generateUuid()},createLiveControl:function(e,t){var i=this._createWrapperDomNode(),n=this._createWidgetView(e,t);i.appendChild(n);var o=this._createTextView(e);return i.appendChild(o),i},updateTextView:function(e,t){var i=this._createTextView(e),n=t.querySelector("."+this._LIVE_CONTROL_TEXT_VIEW);n.parentNode.replaceChild(i,n)},_createWrapperDomNode:function(){return i.create("div",{class:this._LIVE_CONTROL_INNER_NODE})},_createTextView:function(e){var t=e.getText(),n=this._decorationViewModel.getDecoration(e),o=i.create("span"),r=i.create("div",{class:this._LIVE_CONTROL_TEXT_VIEW});return l.createViewForTextNode(t,n,o,r),r},_createWidgetView:function(e,t){var n=!1,o=i.create("div",{class:s.LIVE_CONTROL_DIV});this.onLiveControlHolderCreated(e,o);var r=this.getNodeWidget(e);return r?(!e.intermediateEvalText&&r.set("data",e.getContextData()),r.placeAt(o)):((r=this._createAndSetWidget(e,t)).placeAt(o),r.startup(),n=!0),a.setDDUXContributor(r,this._liveControlDDUXContributor),o.addEventListener("pointerdown",function(e){a.getDisabled(r)||e.stopPropagation()}.bind(this)),o.addEventListener("contextmenu",function(e){a.getEditMode(r)&&(e.preventDefault(),e.stopPropagation())}.bind(this),!0),this.onWidgetCreated(e,n),o},_createAndSetWidget:function(e,t){var i=new t({data:e.getContextData()});i.on("intermediatevaluechange",function(t){this._handleIntermediateValueChangeEvent(e,t)}.bind(this)),this.setNodeWidget(e,i);let n=a.getData(i,e.getDataProperties());return e.setContextData(n),this._attachListenersOnWidget(e),i},_attachListenersOnWidget:function(e){var i=this.getNodeWidget(e);i.on("change",t.hitch(this,(function(t){this._handleChangeEvent(e,t)}))),i.on("changing",t.hitch(this,(function(t){this._handleChangingEvent(e,t)}))),i.on("clicked",t.hitch(this,(function(){this._handleClickEvent(e)}))),i.on("keyonwidgets",t.hitch(this,(function(t){this.onKeyEvents(t,e)}))),i.watch("editMode",t.hitch(this,(function(){this._handleEditModeChange(e)}))),i.on("focusout",t.hitch(this,(function(){this.onBlur(e)}))),i.on("widgetmousedown",t.hitch(this,(function(t){this._handleWidgetMouseDown(e,t)}))),i.on("configpanelvisible",t.hitch(this,(function(){this.onConfigPanelVisible(e)}))),i.on("blurleft",t.hitch(this,(function(){this.onBlurLeft(e)}))),i.on("blurright",t.hitch(this,(function(){this.onBlurRight(e)}))),i.on("dataupdated",t.hitch(this,(function(){this.onWidgetDataUpdated(e)})))},_handleChangeEvent:function(e,t){this.onControlChange(e,t,!1)},_handleChangingEvent:function(e,t){this.onControlChange(e,t,!0)},_handleIntermediateValueChangeEvent:function(e,t){this.onIntermediateValueChange(e,t)},_handleClickEvent:function(e){e.isActionable()&&this.onControlClick(e)},_handleEditModeChange:function(e){a.getEditMode(this.getNodeWidget(e))?this.onEditModeStart(e):this.onEditModeEnd(e)},_handleWidgetMouseDown:function(e,t){var i=t.mwEventData.event,o=i.button;2===o||n("mac")&&i.ctrlKey&&0===o?this.onRightClick(e):0===o&&this.onClick(e)},onControlChange:function(e,t,i){},onIntermediateValueChange:function(e,t){},onControlClick:function(e){},onEditModeStart:function(e){},onEditModeEnd:function(e){},onKeyEvents:function(e,t){},onClick:function(e){},onRightClick:function(e){},onBlur:function(e){},onBlurLeft:function(e){},onBlurRight:function(e){},onConfigPanelVisible:function(e){},onWidgetCreated:function(e){},onLiveControlHolderCreated:function(e,t){},onWidgetDataUpdated:function(e){},setNodeWidget:function(e,t){e.widgets||(e.widgets={}),e.widgets[this._widgetUid]=t},getNodeWidget:function(e){return e&&e.widgets&&e.widgets[this._widgetUid]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5201)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{addDecoration:function(e,i){e.forEach((function(e){var n=e.domNodes;n&&n.forEach((function(e,n){t.place(n,i,e.domPlacement)}))}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(834)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.view.decoration.viewmodel","rtc.livecontrols.decorator","rtc.view.hidden.hiddennodemodel","rtc.livecontrols.sizer","rtc.livecontrols.widgetstate"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5204)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.view.decoration.viewmodel","rtc.livecontrols.decorator","rtc.view.hidden.hiddennodemodel","rtc.livecontrols.sizer","rtc.livecontrols.widgetstate"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1468),i(834),i(5205)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{getApplicableNodeClass:function(){return t},getWidgetClass:function(){return n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(626),i(223),i(5210),i(232),i(229),i(946),i(5221),i(5222),i(2081),i(2082),i(2080),i(501),i(550)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){const g=s.BASE_CLASS+"--focused",m=t([s,c,d,u],{liveControlClass:"mwLiveControlComboBox",type:"ComboBox",text:i.DROPDOWN_CAP,_DEFAULT_LINKED_VARIABLE_CHOICE:"",linkedVariable:"",value:"",constructor:function(){this.childWidget=new l,this.childWidget.set("height",20),this.childWidget.set("width",146),this._widgetPropertyData=JSON.parse(o),this._userEnteredPropertyData={}},_setItemsAttr:function(e){this._initializeItemLabels(e),this._set("items",e),this.set("codeItems",e),this._updateChildWidgetItems()},_updateChildWidgetItems:function(){var e=this.get("itemLabels"),t=this.get("codeItems"),i=this._prepareItemsForChildWidget(t,e);this.childWidget.set("items",i)},_prepareItemsForChildWidget:function(e,t){var i=[];return e.forEach((function(e,n){var o={};o.label=t[n],o.value=e,i.push(o)})),i},_setCodeItemsAttr:function(e){var t=h.getItemValues(e);this._quoteType=h.getQuoteTypeFromItemValues(t),this._set("codeItems",t)},_setValueAttr:function(e){this.inherited(arguments),this._updateDefaultState()},_setDataAttr:function(e){let t=e.itemLabels;t&&this.set("itemLabels",t);let i=e.items;i&&this.set("items",i),this.inherited(arguments)},postCreate:function(){this.get("items")||this._setComboBoxItems(),this.inherited(arguments),this._filteringCallback=this._filterStringArrayVariables.bind(this),this._eventHandlers.push(f.setEventListener(this.domNode,"doubleclick",this._handleDoubleClick.bind(this))),this.childWidget.watch("value",this._updateValue.bind(this)),this.childWidget.watch("menuOpen",this._handleFocusedChange.bind(this));var e=this.childWidget.get("menu").domNode;this._eventHandlers.push(f.setEventListener(e,"keydown",this._handleChildWidgetMenuKeyDown.bind(this))),this._eventHandlers.push(f.setEventListener(this.domNode,"delimitedlistpasted",this._handleDropdownDelimitedListPasted.bind(this)))},_setControlValueToDefault:function(e){let t=h.findValueToSet(this.childWidget.get("items"),e);this.inherited(arguments,[t])},_handleWorkspaceVariableUpdate:function(){let e=[],t=[],i=this.get("linkedVariable");if(this._isDefaultLinkedVariableChoice(i)||!this._linkedVariableExists(i))e=this.get("itemLabels"),t=this.get("codeItems"),this._updateItemsAndLabelsAfterWorkspaceVariableUpdate(e,t);else{var n=a.generateUuid();this._getItemLabelsAndValuesForVariable(this._handleWorkspaceVariableUpdateAsync.bind(this,n),n)}},_handleWorkspaceVariableUpdateAsync:function(e,t){let i=t[0].results[0];if(i){var n=i.CodeValue,o=h.getLinkedVariableValuesAccessCode(this.get("linkedVariable"),n);this._updateItemsAndLabelsAfterWorkspaceVariableUpdate(n,o)}r.deregisterResponseHandler("FEvalResponse:"+this._WORKSPACE_INFO_REQUEST_ID+":"+e,this._handleWorkspaceVariableUpdateAsync,this)},_updateItemsAndLabelsAfterWorkspaceVariableUpdate:function(e,t){this._updateItemsAndValue(e,t),this.emit("dataupdated")},_initializeItemLabels:function(e){if(!this.get("itemLabels")&&e){var t=h.getItemLabels(e);this.set("itemLabels",t)}},_setComboBoxItems:function(){var e=[],t=this.get("value"),i=h.modifyItems(t),n=[];n.push(i),this.set("itemLabels",n);var o={label:t,value:t};e.push(o),this.set("items",e)},_handlePropertyChange:function(e,t){switch(e){case"itemLabels":this._handleItemLabelsPropertyChange(t);break;case"codeItems":this._handleCodeItemsPropertyChange(t);break;case"linkedVariable":this._handleLinkedVariableChange(t);break;default:this.inherited(arguments)}},_handleItemLabelsPropertyChange:function(e){var t=this.get("itemLabels"),i=this.get("codeItems");i=this._generateTarget(t,e,i,"codeItems"),this._updateItemsAndValue(e,i)},_handleCodeItemsPropertyChange:function(e){this._quoteType=h.getQuoteTypeFromItemValues(e);var t=this.get("codeItems"),i=this.get("itemLabels");i=this._generateTarget(t,e,i,"itemLabels"),this._updateItemsAndValue(i,e)},_handleLinkedVariableChange:function(e){if(!this._linkedVariableExists(e)&&e!==this._WORKSPACE_DROPDOWN_PLACEHOLDER_ITEM_VALUE){let e=this.get("linkedVariable"),t=this._isDefaultLinkedVariableChoice(e)?this._WORKSPACE_DROPDOWN_PLACEHOLDER_ITEM_VALUE:e;return void p.updateConfigPanelPropertyValue(this.configPanel,"linkedVariable",t)}e===this._WORKSPACE_DROPDOWN_PLACEHOLDER_ITEM_VALUE&&(e=this._DEFAULT_LINKED_VARIABLE_CHOICE),this.set("linkedVariable",e);var t=a.generateUuid();let i=this._getItemLabelsAndValuesForVariable(this._handleLinkedVariableChangeAsync.bind(this,e,t),t);i&&this._updateItemsAndLabelsAfterVariableChange(i.itemLabels,i.itemValues,e)},_handleLinkedVariableChangeAsync:function(e,t,i){let n=i[0].results[0];if(n){var o=n.CodeValue,a=h.getLinkedVariableValuesAccessCode(this.get("linkedVariable"),o);this._updateItemsAndLabelsAfterVariableChange(o,a,e)}r.deregisterResponseHandler("FEvalResponse:"+this._WORKSPACE_INFO_REQUEST_ID+":"+t,this._handleLinkedVariableChangeAsync,this)},_updateItemsAndLabelsAfterVariableChange:function(e,t,i){this._updateItemsAndValue(e,t),p.updateConfigPanelPropertyValue(this.configPanel,"itemLabels",this.get("itemLabels")),p.updateConfigPanelPropertyValue(this.configPanel,"codeItems",this.get("codeItems"));let n=!this._isDefaultLinkedVariableChoice(i);this._updateLabelAndValuesDisabledState(n)},_areItemsEmpty:function(e){return 0===e.length},_getItemLabelsAndValuesForVariable:function(e,t){let i=this.get("linkedVariable");return this._isDefaultLinkedVariableChoice(i)?{itemLabels:[],itemValues:[]}:this._getLinkedVariableValue(i,e,t)},_generateTarget:function(e,t,i,n){var o=h.generateTargetElements(e,t,i,n,this._quoteType);return h.updateConfigPanelPropertyValue(this.configPanel,n,o),o},_updateItemsAndValue:function(e,t){this.set("itemLabels",e);var i=h.createItemsToSet(t),n=this.get("value"),o=h.findValueToSet(i,n);this.set("items",i),this._handleDefaultValueOnItemUpdate(o,i),this.set("value",o)},_handleDefaultValueOnItemUpdate:function(e,t){let i=this.get(this._DEFAULT_PROPERTY);this._isInDefaultState&&e!==i?this.set(this._DEFAULT_PROPERTY,e):0===t.length||this.get("codeItems").includes(i)||this.set(this._DEFAULT_PROPERTY,t[0].value),this.configPanel&&this.configPanel.domNode&&this._populateDefaultValueItems()},_getValidDefaultValue:function(e){return""===e||this.get("codeItems").includes(e)?e:this.get(this._DEFAULT_PROPERTY)},_getValidCustomValue:function(e){return""===e||this.get("codeItems").includes(e)?e:null},_handleDoubleClick:function(){this.get("editMode")||this._enterEditModeOnDoubleClick()},handleKeyDown:function(e){var t=!1;switch(e.keyCode){case n.ENTER:p.hasModifier(e)&&(this.emitKeyOnWidgetsEvent(e),e.stopImmediatePropagation()),t=!0;break;case n.UP_ARROW:case n.DOWN_ARROW:t=!0}t?this._logKeyEvents(e):this.inherited(arguments)},_handleChildWidgetMenuKeyDown:function(e){this._liveControlDDUXContributor.logDDUXForKeyEvents(e,this.get("type"))},_handleChildWidgetBlur:function(){this.childWidget.get("menuOpen")||this.domNode.classList.remove(g)},_handleFocusedChange:function(e,t,i){this.domNode&&(i||document.activeElement===this.childWidget.domNode?this.domNode.classList.add(g):this.domNode.classList.remove(g))},_updateValue:function(e,t,i){this._set("value",i)},_handleDropdownDelimitedListPasted:function(e){this._liveControlDDUXContributor.logDropdownDelimitedListPasted(e.mwEventData,this.get("type"))}});return m.LIVE_CONTROL_CLASS="mwLiveControlComboBox",m.BASE_CLASS=s.BASE_CLASS,m}),e,t),e.exports=o},function(e,t,i){e.exports={DROPDOWN_CAP:"ドロップ ダウン",DROPDOWN_LOWER:"ドロップ ダウン",SLIDER_CAP:"スライダー",SLIDER_LOWER:"スライダー",EDIT_FIELD_CAP:"編集フィールド",EDIT_FIELD_LOWER:"編集フィールド",CHECK_BOX_CAP:"チェック ボックス",CHECK_BOX_LOWER:"チェック ボックス",BUTTON_CAP:"ボタン",BUTTON_LOWER:"ボタン",CLICKED:"がクリックされた",VALUE_CHANGES:"の値が変化する",LABEL_UPPER:"ラベル",LABEL_CAP:"ラベル",LABEL_SUB_HEADER:"コードが非表示の場合に表示するテキストを入力",LABEL_TEXT_LOWER:"ラベル テキスト",ITEMS_UPPER:"項目",EXECUTION_UPPER:"実行",TYPE_UPPER:"タイプ",ITEM_LABELS:"項目のラベル",ITEM_VALUES:"項目の値",VALUE_LOWER:"値",ITEM_LOWER:"項目",DEFAULT_UPPER:"既定",CHECKBOX_DEFAULTS_SUB_HEADER:"論理値を入力またはワークスペースから選択",DROPDOWN_DEFAULTS_SUB_HEADER:"既定のドロップ ダウン項目を選択",DEFAULTS_SUB_HEADER:"入力またはワークスペースから選択",DEFAULT_LABEL:"既定の${0}",DEFAULT_PROPERTY_TOOLTIP:"既定の${0}値",ITEMS_SUB_HEADER:"ドロップ ダウンに追加するラベルまたは値を入力",LINKED_VARIABLE_SUB_HEADER:"変数を選択してその内容をドロップ ダウンに追加",LINKED_VARIABLE_TOOLTIP_MAIN_TEXT:"選択したワークスペース変数の内容がドロップ ダウンに追加される",VARIABLE:"変数",RUN_CAP:"実行",VALUES_UPPER:"値",VALUES_SUB_HEADER:"値を入力またはワークスペース変数を選択",SLIDER_MIN:"最小値",SLIDER_MAX:"最大値",SLIDER_STEP:"ステップ",SLIDER_DEFAULT_SUB_HEADER:"値を入力またはワークスペース変数を選択",SLIDER_RUN_ON:"実行タイミング",MIN_PROPERTY_TOOLTIP:"スライダーの最小値",MAX_PROPERTY_TOOLTIP:"スライダーの最大値",STEP_PROPERTY_TOOLTIP:"スライダーのステップ値",MIN_PROPERTY_ERROR_TOOLTIP:"[最小値] は [最大値] 以下でなければならない",MAX_PROPERTY_ERROR_TOOLTIP:"[最大値] は [最小値] 以上でなければならない",STEP_PROPERTY_ERROR_TOOLTIP:"[ステップ] はスライダー範囲より小さくなければならない",DEFAULT_PROPERTY_ERROR_TOOLTIP:"既定値は有効なスライダーの値でなければならない",SLIDER_ERROR_TOOLTIP_SUFFIX:"コントロールを設定するかリンクされた変数の値を変更することで、[最小値]、[最大値]、[ステップ]、[既定] の有効な値を設定します。",CURRENT_SECTION:"現在のセクション",CURRENT_SECTION_TO_END:"現在のセクションから最後まで",ALL:"すべてのセクション",CURRENT_SECTION_AND_STALE_SECTIONS_ABOVE:"現在のセクションと、上のセクションのうち変更済みまたは未実行のセクション",NOTHING:"なし",VALUE_CHANGING:"値の変化中",VALUE_CHANGED:"値の変化後",ITEM_LABEL_TOOLTIP_MAIN_TEXT:"ドロップダウンに表示される項目",ITEM_LABEL_TOOLTIP_SUB_TEXT:"1 行に 1 項目を入力してください",ITEM_VALUE_TOOLTIP_MAIN_TEXT:"ドロップダウン項目のコード値",ITEM_VALUE_TOOLTIP_SUB_TEXT:"1 行に 1 つのコード値を入力",WHAT_TO_RUN_WHEN:"${0}${1}ときに実行する処理",WHEN_TO_RUN:"実行するタイミング",LABEL_TEXT:"${0} ラベル テキスト",DATA_TYPE:"データ型",DATA_TYPE_TOOLTIP:"入力のデータ型",STRING:"string",CHAR:"char",DOUBLE:"double",MATLAB_CODE:"MATLAB コード",ONE_ITEM_PER_LINE_WARNING:"1 行に 1 項目を入力してください",QUOTE_WARNING:"項目ラベルに引用符は不要です",ERROR_FOR_DOUBLE_TYPE:"double のスカラーでなければなりません",TEXT_PLACEHOLDER:"テキストを入力します",DOUBLE_PLACEHOLDER:"数値を入力します",CODE_PLACEHOLDER:"MATLAB コードを入力します",PLACEHOLDER_ITEM_ONE:"1",PLACEHOLDER_ITEM_TWO:"2",PLACEHOLDER_ITEM_ONE_WITH_QUOTES:'"1"',PLACEHOLDER_ITEM_TWO_WITH_QUOTES:'"2"'}},function(e,t,i){e.exports={DROPDOWN_CAP:"드롭다운",DROPDOWN_LOWER:"드롭다운",SLIDER_CAP:"슬라이더",SLIDER_LOWER:"슬라이더",EDIT_FIELD_CAP:"편집 필드",EDIT_FIELD_LOWER:"편집 필드",CHECK_BOX_CAP:"체크박스",CHECK_BOX_LOWER:"체크박스",BUTTON_CAP:"버튼",BUTTON_LOWER:"버튼을",CLICKED:"클릭할",VALUE_CHANGES:"값이 변경될",LABEL_UPPER:"레이블",LABEL_CAP:"레이블",LABEL_SUB_HEADER:"코드가 숨겨진 경우 표시할 텍스트 입력",LABEL_TEXT_LOWER:"레이블 텍스트",ITEMS_UPPER:"항목",EXECUTION_UPPER:"실행",TYPE_UPPER:"유형",ITEM_LABELS:"항목 레이블",ITEM_VALUES:"항목 값",VALUE_LOWER:"값",ITEM_LOWER:"항목",DEFAULT_UPPER:"디폴트 값",CHECKBOX_DEFAULTS_SUB_HEADER:"논리값 입력 또는 작업 공간에서 선택",DROPDOWN_DEFAULTS_SUB_HEADER:"디폴트 드롭다운 항목 선택",DEFAULTS_SUB_HEADER:"값 입력 또는 작업 공간에서 선택",DEFAULT_LABEL:"디폴트 ${0}",DEFAULT_PROPERTY_TOOLTIP:"디폴트 ${0} 값",ITEMS_SUB_HEADER:"드롭다운에 추가할 레이블 또는 값 입력",LINKED_VARIABLE_SUB_HEADER:"드롭다운에 내용을 추가할 변수 선택",LINKED_VARIABLE_TOOLTIP_MAIN_TEXT:"선택한 작업 공간 변수 내용이 드롭다운에 추가됩니다.",VARIABLE:"변수",RUN_CAP:"실행",VALUES_UPPER:"값",VALUES_SUB_HEADER:"값 입력 또는 작업 공간 변수 선택",SLIDER_MIN:"최소",SLIDER_MAX:"최대",SLIDER_STEP:"간격",SLIDER_DEFAULT_SUB_HEADER:"값 입력 또는 작업 공간 변수 선택",SLIDER_RUN_ON:"실행 지점",MIN_PROPERTY_TOOLTIP:"최소 슬라이더 값",MAX_PROPERTY_TOOLTIP:"최대 슬라이더 값",STEP_PROPERTY_TOOLTIP:"슬라이더 간격 값",MIN_PROPERTY_ERROR_TOOLTIP:"최솟값은 최댓값보다 작거나 같아야 함",MAX_PROPERTY_ERROR_TOOLTIP:"최댓값은 최솟값보다 크거나 같아야 함",STEP_PROPERTY_ERROR_TOOLTIP:"간격은 슬라이더 범위보다 작아야 함",DEFAULT_PROPERTY_ERROR_TOOLTIP:"디폴트 값은 유효한 슬라이더 값이어야 함",SLIDER_ERROR_TOOLTIP_SUFFIX:"컨트롤을 구성하거나 연결된 변수의 값을 변경하여 유효한 최솟값, 최댓값, 간격 값 및 디폴트 값을 설정하십시오.",CURRENT_SECTION:"현재 섹션",CURRENT_SECTION_TO_END:"현재 섹션부터 끝까지",ALL:"모든 섹션",CURRENT_SECTION_AND_STALE_SECTIONS_ABOVE:"현재 섹션 및 위에서 수정되었거나 아직 실행되지 않은 섹션",NOTHING:"실행 안 함",VALUE_CHANGING:"변경되는 값",VALUE_CHANGED:"변경된 값",ITEM_LABEL_TOOLTIP_MAIN_TEXT:"드롭다운에 표시되는 항목",ITEM_LABEL_TOOLTIP_SUB_TEXT:"한 줄에 하나씩 입력",ITEM_VALUE_TOOLTIP_MAIN_TEXT:"드롭다운 항목의 코드 값",ITEM_VALUE_TOOLTIP_SUB_TEXT:"한 줄에 하나씩 코드 값 입력",WHAT_TO_RUN_WHEN:"${0} ${1} 때 실행할 섹션",WHEN_TO_RUN:"실행 시점",LABEL_TEXT:"${0} 레이블 텍스트",DATA_TYPE:"데이터형",DATA_TYPE_TOOLTIP:"입력값의 데이터형",STRING:"string형",CHAR:"문자형",DOUBLE:"double형",MATLAB_CODE:"MATLAB 코드",ONE_ITEM_PER_LINE_WARNING:"한 줄에 하나씩 입력",QUOTE_WARNING:"항목 레이블에는 따옴표가 필요하지 않음",ERROR_FOR_DOUBLE_TYPE:"double형 스칼라여야 함",TEXT_PLACEHOLDER:"텍스트 입력",DOUBLE_PLACEHOLDER:"숫자 입력",CODE_PLACEHOLDER:"MATLAB 코드 입력",PLACEHOLDER_ITEM_ONE:"1",PLACEHOLDER_ITEM_TWO:"2",PLACEHOLDER_ITEM_ONE_WITH_QUOTES:'"1"',PLACEHOLDER_ITEM_TWO_WITH_QUOTES:'"2"'}},function(e,t,i){e.exports={DROPDOWN_CAP:"下拉列表",DROPDOWN_LOWER:"下拉列表",SLIDER_CAP:"滑块",SLIDER_LOWER:"滑块",EDIT_FIELD_CAP:"编辑字段",EDIT_FIELD_LOWER:"编辑字段",CHECK_BOX_CAP:"复选框",CHECK_BOX_LOWER:"复选框",BUTTON_CAP:"按钮",BUTTON_LOWER:"按钮",CLICKED:"点击",VALUE_CHANGES:"值更改",LABEL_UPPER:"标签",LABEL_CAP:"标签",LABEL_SUB_HEADER:"输入隐藏代码时要显示的文本",LABEL_TEXT_LOWER:"标签文本",ITEMS_UPPER:"项目",EXECUTION_UPPER:"执行",TYPE_UPPER:"类型",ITEM_LABELS:"项目标签",ITEM_VALUES:"项目值",VALUE_LOWER:"值",ITEM_LOWER:"项目",DEFAULT_UPPER:"默认值",CHECKBOX_DEFAULTS_SUB_HEADER:"输入逻辑值或从工作区中选择",DROPDOWN_DEFAULTS_SUB_HEADER:"选择默认下拉项目",DEFAULTS_SUB_HEADER:"输入或从工作区中选择",DEFAULT_LABEL:"默认值 ${0}",DEFAULT_PROPERTY_TOOLTIP:"默认的 ${0} 值",ITEMS_SUB_HEADER:"输入要添加到下拉列表中的标签或值",LINKED_VARIABLE_SUB_HEADER:"选择变量以将其内容添加到下拉列表中",LINKED_VARIABLE_TOOLTIP_MAIN_TEXT:"所选工作区变量内容将添加到下拉列表中",VARIABLE:"变量",RUN_CAP:"运行",VALUES_UPPER:"值",VALUES_SUB_HEADER:"输入值或选择工作区变量",SLIDER_MIN:"最小值",SLIDER_MAX:"最大值",SLIDER_STEP:"步长",SLIDER_DEFAULT_SUB_HEADER:"输入值或选择工作区变量",SLIDER_RUN_ON:"运行位置",MIN_PROPERTY_TOOLTIP:"滑块最小值",MAX_PROPERTY_TOOLTIP:"滑块最大值",STEP_PROPERTY_TOOLTIP:"滑块步长值",MIN_PROPERTY_ERROR_TOOLTIP:"最小值必须小于或等于最大值",MAX_PROPERTY_ERROR_TOOLTIP:"最大值必须大于或等于最小值",STEP_PROPERTY_ERROR_TOOLTIP:"步长必须小于滑块范围",DEFAULT_PROPERTY_ERROR_TOOLTIP:"默认值必须为有效的滑块值",SLIDER_ERROR_TOOLTIP_SUFFIX:"通过配置控件或更改链接变量的值,设置有效的最小值、最大值、步长值和默认值。",CURRENT_SECTION:"当前节",CURRENT_SECTION_TO_END:"从当前节到结束",ALL:"所有节",CURRENT_SECTION_AND_STALE_SECTIONS_ABOVE:"当前节以及上面已修改但尚未运行的节",NOTHING:"无内容",VALUE_CHANGING:"正在更改的值",VALUE_CHANGED:"已经更改的值",ITEM_LABEL_TOOLTIP_MAIN_TEXT:"下拉列表中显示的项",ITEM_LABEL_TOOLTIP_SUB_TEXT:"每行输入一个项目",ITEM_VALUE_TOOLTIP_MAIN_TEXT:"下拉列表项的代码值",ITEM_VALUE_TOOLTIP_SUB_TEXT:"每行输入一个代码值",WHAT_TO_RUN_WHEN:"当 ${0} ${1} 时要运行的内容",WHEN_TO_RUN:"何时运行",LABEL_TEXT:"${0} 标签文本",DATA_TYPE:"数据类型",DATA_TYPE_TOOLTIP:"输入的数据类型",STRING:"字符串",CHAR:"字符",DOUBLE:"双精度",MATLAB_CODE:"MATLAB 代码",ONE_ITEM_PER_LINE_WARNING:"每行输入一个项目",QUOTE_WARNING:"项目标签不需要引号",ERROR_FOR_DOUBLE_TYPE:"必须为双精度标量",TEXT_PLACEHOLDER:"输入文本",DOUBLE_PLACEHOLDER:"输入数字",CODE_PLACEHOLDER:"输入 MATLAB 代码",PLACEHOLDER_ITEM_ONE:"one",PLACEHOLDER_ITEM_TWO:"two",PLACEHOLDER_ITEM_ONE_WITH_QUOTES:'"one"',PLACEHOLDER_ITEM_TWO_WITH_QUOTES:'"two"'}},function(e,t,i){e.exports={root:{DROPDOWN_CAP:"Drop down",DROPDOWN_LOWER:"drop down",SLIDER_CAP:"Slider",SLIDER_LOWER:"slider",EDIT_FIELD_CAP:"Edit field",EDIT_FIELD_LOWER:"edit field",CHECK_BOX_CAP:"Check box",CHECK_BOX_LOWER:"check box",BUTTON_CAP:"Button",BUTTON_LOWER:"button",CLICKED:"clicked",VALUE_CHANGES:"value changes",LABEL_UPPER:"LABEL",LABEL_CAP:"Label",LABEL_SUB_HEADER:"Enter text to display when code is hidden",LABEL_TEXT_LOWER:"label text",ITEMS_UPPER:"ITEMS",EXECUTION_UPPER:"EXECUTION",TYPE_UPPER:"TYPE",ITEM_LABELS:"Item labels",ITEM_VALUES:"Item values",VALUE_LOWER:"value",ITEM_LOWER:"item",DEFAULT_UPPER:"DEFAULTS",CHECKBOX_DEFAULTS_SUB_HEADER:"Enter logical value or select from workspace",DROPDOWN_DEFAULTS_SUB_HEADER:"Select default drop down item",DEFAULTS_SUB_HEADER:"Enter or select from workspace",DEFAULT_LABEL:"Default ${0}",DEFAULT_PROPERTY_TOOLTIP:"Default ${0} value",ITEMS_SUB_HEADER:"Enter labels or values to add to drop down",LINKED_VARIABLE_SUB_HEADER:"Select a variable to add its content to drop down",LINKED_VARIABLE_TOOLTIP_MAIN_TEXT:"Selected workspace variable content will be added to drop down",VARIABLE:"Variable",RUN_CAP:"Run",VALUES_UPPER:"VALUES",VALUES_SUB_HEADER:"Enter value or select workspace variable",SLIDER_MIN:"Min",SLIDER_MAX:"Max",SLIDER_STEP:"Step",SLIDER_DEFAULT_SUB_HEADER:"Enter value or select workspace variable",SLIDER_RUN_ON:"Run On",MIN_PROPERTY_TOOLTIP:"Minimum slider value",MAX_PROPERTY_TOOLTIP:"Maximum slider value",STEP_PROPERTY_TOOLTIP:"Slider step value",MIN_PROPERTY_ERROR_TOOLTIP:"Min must be smaller than or equal to Max",MAX_PROPERTY_ERROR_TOOLTIP:"Max must be greater than or equal to Min",STEP_PROPERTY_ERROR_TOOLTIP:"Step must be smaller than the slider range",DEFAULT_PROPERTY_ERROR_TOOLTIP:"Default must be a valid slider value",SLIDER_ERROR_TOOLTIP_SUFFIX:"Set valid Min, Max, Step, and Default values by configuring the control or changing the value of linked variables.",CURRENT_SECTION:"Current section",CURRENT_SECTION_TO_END:"Current section to end",ALL:"All sections",CURRENT_SECTION_AND_STALE_SECTIONS_ABOVE:"Current section and modified or not yet run sections above",NOTHING:"Nothing",VALUE_CHANGING:"Value changing",VALUE_CHANGED:"Value changed",ITEM_LABEL_TOOLTIP_MAIN_TEXT:"Items displayed in dropdown",ITEM_LABEL_TOOLTIP_SUB_TEXT:"Enter one item per line",ITEM_VALUE_TOOLTIP_MAIN_TEXT:"Code values for dropdown items",ITEM_VALUE_TOOLTIP_SUB_TEXT:"Enter one code value per line",WHAT_TO_RUN_WHEN:"What to run when ${0} ${1}",WHEN_TO_RUN:"When to run",LABEL_TEXT:"${0} label text",DATA_TYPE:"Data type",DATA_TYPE_TOOLTIP:"Data type of the input",STRING:"String",CHAR:"Char",DOUBLE:"Double",MATLAB_CODE:"MATLAB code",ONE_ITEM_PER_LINE_WARNING:"Enter one item per line",QUOTE_WARNING:"Quotes not needed for item labels",ERROR_FOR_DOUBLE_TYPE:"Must be a double scalar",TEXT_PLACEHOLDER:"Enter text",DOUBLE_PLACEHOLDER:"Enter number",CODE_PLACEHOLDER:"Enter MATLAB code",PLACEHOLDER_ITEM_ONE:"one",PLACEHOLDER_ITEM_TWO:"two",PLACEHOLDER_ITEM_ONE_WITH_QUOTES:'"one"',PLACEHOLDER_ITEM_TWO_WITH_QUOTES:'"two"'},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='{\n "Label": {\n "sharedEntityKey": "Label",\n "placeholderKeys_RSRC": {\n "mainText_RSRC": [\n "DROPDOWN_CAP"\n ]\n }\n },\n "Items": {\n "header_RSRC": "ITEMS_UPPER",\n "sections": [\n {\n "subHeader_RSRC": "ITEMS_SUB_HEADER",\n "properties": [\n {\n "controlPropertyName": "itemLabels",\n "displayName_RSRC": "ITEM_LABELS",\n "editor": "TextArea",\n "tooltip": {\n "mainText_RSRC": "ITEM_LABEL_TOOLTIP_MAIN_TEXT",\n "subText_RSRC": "ITEM_LABEL_TOOLTIP_SUB_TEXT"\n }\n },\n {\n "controlPropertyName": "codeItems",\n "displayName_RSRC": "ITEM_VALUES",\n "editor": "TextArea",\n "tooltip": {\n "mainText_RSRC": "ITEM_VALUE_TOOLTIP_MAIN_TEXT",\n "subText_RSRC": "ITEM_VALUE_TOOLTIP_SUB_TEXT"\n }\n }\n ]\n },\n {\n "subHeader_RSRC": "LINKED_VARIABLE_SUB_HEADER",\n "properties": [\n {\n "controlPropertyName": "linkedVariable",\n "displayName_RSRC": "VARIABLE",\n "editor": "WorkspaceDropdown",\n "placeholderItem": "select",\n "tooltip": {\n "mainText_RSRC": "LINKED_VARIABLE_TOOLTIP_MAIN_TEXT"\n }\n }\n ]\n }\n ]\n },\n "Defaults": {\n "header_RSRC": "DEFAULT_UPPER",\n "properties": [\n {\n "sharedEntityKey": "Defaults",\n "editor": "ComboBox",\n "value_RSRC": [\n "select"\n ],\n "placeholderKeys_RSRC": {\n "displayName_RSRC": [\n "ITEM_LOWER"\n ],\n "mainText_RSRC": [\n "DROPDOWN_LOWER"\n ]\n }\n }\n ]\n },\n "ExecutionControl": {\n "header_RSRC": "EXECUTION_UPPER",\n "properties": [\n {\n "sharedEntityKey": "ExecutionControl",\n "placeholderKeys_RSRC": {\n "mainText_RSRC": [\n "DROPDOWN_LOWER",\n "VALUE_CHANGES"\n ]\n }\n }\n ]\n }\n}'},function(e,t){e.exports='{\n "Label": {\n "header_RSRC": "LABEL_UPPER",\n "subHeader_RSRC": "LABEL_SUB_HEADER",\n "properties": [\n {\n "controlPropertyName": "text",\n "displayName_RSRC": "LABEL_CAP",\n "editor": "TextField",\n "tooltip": {\n "mainText_RSRC": "LABEL_TEXT"\n }\n }\n ]\n },\n "Defaults": {\n "controlPropertyName": "defaultValue",\n "displayName_RSRC": "DEFAULT_LABEL",\n "tooltip": {\n "mainText_RSRC": "DEFAULT_PROPERTY_TOOLTIP"\n }\n },\n "ExecutionControl": {\n "controlPropertyName": "executionModel",\n "displayName_RSRC": "RUN_CAP",\n "editor": "ComboBox",\n "value_RSRC": [\n "CURRENT_SECTION",\n "CURRENT_SECTION_AND_STALE_SECTIONS_ABOVE",\n "CURRENT_SECTION_TO_END",\n "ALL",\n "NOTHING"\n ],\n "tooltip": {\n "mainText_RSRC": "WHAT_TO_RUN_WHEN"\n }\n }\n}'},function(e,t,i){var n,o;n=[i(238),i(231),i(203),i(223),i(5213)],o=i.dj.d(n,(function(e,t,i,n,o){return i(null,{editMode:!1,postCreate:function(){this.inherited(arguments),this.editorContainer.addEventListener("blur",this._removePanelFocusedClass.bind(this))},_setEditModeAttr:function(e){if(e!==this.get("editMode")&&!this.disabled){var t=this.baseClass+"--editMode";this._updateLabelDisabledState(e),this._updateChildWidgetState(e),e?(this.domNode.classList.add(t),this._set("editMode",e),this._showConfigMode(),this._attachEventListeners(),this._hideTooltip()):(this._removeEventListeners(),this.domNode.classList.remove(t),this._hideConfigMode(),this._set("editMode",e))}},_attachEventListeners:function(){this._hookUpFocusWatch(),this._keyUpCallback=this._handleEditModeKeyUp.bind(this),setTimeout(function(){this.editorContainer.addEventListener("keyup",this._keyUpCallback)}.bind(this),0)},_removeEventListeners:function(){this._keyUpCallback&&this.editorContainer.removeEventListener("keyup",this._keyUpCallback),this._focusWatch&&this._focusWatch.unwatch()},_hookUpFocusWatch:function(){this._focusWatch=e.watch("curNode",function(e,t,i){!i&&this._isDropDownMenuItem(t)&&(i=this.domNode,this.editorContainer.focus()),!this.domNode||this.domNode.contains(i)||this.domNode.contains(document.activeElement)||this._isMenuItemFocused()||this.get("editMode")&&setTimeout(function(){this.set("editMode",!1)}.bind(this),0)}.bind(this)),this.own(this._focusWatch)},_handleEditModeKeyUp:function(e){var t=e.keyCode;e.stopPropagation();var i=document.activeElement;switch(this.configPanel&&this.configPanel.set("commit",!0),t){case n.ENTER:var o=e.target.type;"textarea"!==o&&"text"!==o&&(this.emitRestoreFocusEvent(),this.set("editMode",!1));break;case n.ESCAPE:this.configPanel.set("commit",!1),i===this.editorContainer||i===this.configPanel.domNode?(this.emitRestoreFocusEvent(),this.set("editMode",!1)):this.configPanel.focus()}},_isDropDownMenuItem:function(e){for(;e;){if(e.classList&&e.classList.contains("mwComboBoxPopup"))return!0;e=e.parentNode}return!1},_isMenuItemFocused:function(){var e=document.activeElement,i=document.querySelectorAll(".propertyEditor.mwHasMenuOpened.mwWidget.mwComboBox.mwWidgetFocused.mwComboBoxFocused")[0];return!!i&&t.getEnclosingWidget(i).get("menu").domNode.contains(e)},setWorkspaceDropdownWidget:function(e){this._workspaceDropdown=e},_showConfigMode:function(){this._createView(),this._saveEditor=!0,this.editorContainer.focus(),this._addPanelFocusedClass()},_hideConfigMode:function(){this.editorContainer.children.length>0&&(this.editorContainer.removeChild(this.configPanel.domNode),this._cleanupControlConfigPanel(),setTimeout(function(){this.configPanel.destroy()}.bind(this),0))},_setupControlConfigPanel:function(){},_cleanupControlConfigPanel:function(){},_createView:function(){this.configPanel=new o({properties:this._widgetPropertyData,additionalWidgets:this._getAdditionalWidgetsForConfigPanel()}),this.configPanel.startup(),this.own(this.configPanel),this.editorContainer.appendChild(this.configPanel.domNode),this._setupControlConfigPanel();var e=this._getPropertyContent();this.configPanel.set("content",e),this.emit("configpanelvisible"),this.configPanel.disableCategories(this._disabledCategories)},_getAdditionalWidgetsForConfigPanel:function(){let e={};return e.WorkspaceDropdown=this._workspaceDropdown,e},_getPropertyContent:function(){var e={};return this._configurableProperties.forEach((function(t){let i=this._propertyToDisplayInConfigPanel(t);e[t]=this.get(i)}),this),e},_propertyToDisplayInConfigPanel:function(e){return e},_updateLabelDisabledState:function(e){this._label&&this._label.set("disabled",e)},_removePanelFocusedClass:function(){this.domNode.classList.remove("mwLiveControl--panelFocused")},_addPanelFocusedClass:function(){this.domNode.classList.add("mwLiveControl--panelFocused")},_hideTooltip:function(){this._tooltip&&this.setTooltipState("DORMANT")},_updateChildWidgetState:function(e){this.childWidget.set("disabled",e)},destroy:function(){this._removeEventListeners(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(231),i(312),i(203),i(221),i(626),i(223),i(236),i(286),i(413),i(258),i(437),i(550),i(1472),i(947)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){function g(e){var t=function(e){for(;e;){if(e.classList.contains("propertyCategory"))return e;e=e.parentNode}return null}(e.target);if(t){var i=t.classList.contains("expanded"),n=i?"collapsed":"expanded",o=i?"expanded":"collapsed";t.classList.add(n),t.classList.remove(o)}}var m=n(e,{baseClass:"propertyContainer",commit:!0,constructor:function(e){this._widgetProperties=JSON.parse(JSON.stringify(e.properties)),this._eventListeners=[]},buildRendering:function(){this.inherited(arguments),this._buildConfigPanel(),this.domNode.setAttribute("tabindex","-1")},postCreate:function(){this.inherited(arguments),this._eventListeners.push(h.setEventListener(this.domNode,"change",this._handleConfigModeEdits.bind(this)))},focus:function(){this.domNode.focus()},_setContentAttr:function(e){Object.keys(e).forEach((function(t){var i=e[t];f.updateEditorDisplayValue(this.domNode,t,i)}),this),this._set("content",e)},_setCommitAttr:function(e){this._set("commit",e)},setEditorValue:function(e,t){f.updateEditorDisplayValue(this.domNode,e,t),this._updateContentForProperty(e,t)},setEditorDisabled:function(e,t){f.getPropertyEditor(this.domNode,e).set("disabled",t)},disableCategories:function(e){e.forEach((function(e){f.getNodeForAttribute(this.domNode,"data-propertyCategory",e).classList.add("disabled")}),this)},setupEventListeners:function(e,t,i,n){var o=f.getNodeForAttribute(this.domNode,"data-propertyEditor",e);return h.setEventListener(o,t,i,n)},setupPropertyWatch:function(e,t,i){var n=f.getPropertyEditor(this.domNode,e).watch(t,i);return{remove:function(){n.unwatch()}}},_buildConfigPanel:function(){this._buildPropertyCategories()},_handleConfigModeEdits:function(e){var t=this._preparePropertyData(e);this.setEditorValue(t.propertyName,t.newValue),this.emit("propertychanged",t)},_preparePropertyData:function(e){var t=e.target,i=e.mwEventData,n=this.get("commit"),o=t.getAttribute("data-propertyEditor"),r=n?i.newValue:i.oldValue;return r=this._getNewValueForProperty(o,r),{propertyName:o,oldValue:i.oldValue,newValue:r}},_buildPropertyCategories:function(){Object.keys(this._widgetProperties).forEach((function(e){var t=h.buildNode("div",{className:"propertyCategory",parent:this.domNode,useOwnClass:!0},this.baseClass);t.setAttribute("data-propertyCategory",e),t.classList.add("expanded");var i=h.buildNode("div",{className:"categoryHeader",parent:t,useOwnClass:!0},this.baseClass);this._eventListeners.push(h.setEventListener(i,"click",g)),h.buildNode("div",{className:"expandCollapseArrow",parent:i,useOwnClass:!0},this.baseClass);let n=this._widgetProperties[e],o=r[n.header_RSRC];h.buildNode("span",{className:"categoryHeaderText",parent:i,text:o,useOwnClass:!0},this.baseClass);let a=n.sections;if(a)a.forEach(e=>{let i=e.properties;this._buildSubHeaderAndPropertyRows(e,i,t)});else{let e=n.properties,i=n.placeholderKeys_RSRC;this._buildSubHeaderAndPropertyRows(n,e,t,i)}}),this)},_buildSubHeaderAndPropertyRows:function(e,t,i,n){let o=h.buildNode("div",{className:"section",parent:i,useOwnClass:!0},this.baseClass),a=e.subHeader_RSRC;if(a){let e=r[a];h.buildNode("div",{className:"categorySubHeader",parent:o,useOwnClass:!0,text:e},this.baseClass)}this._buildPropertyRows(t,o,n)},_buildPropertyRows:function(e,t,i){e.forEach((function(e){var n=r[e.displayName_RSRC];n=(i=i||e.placeholderKeys_RSRC)&&i.displayName_RSRC?this._substitutePlaceholderText(i,"displayName_RSRC",n):n;var o=h.buildNode("div",{className:"propertyRow",parent:t,useOwnClass:!0},this.baseClass);o.setAttribute("data-propertyRow",e.controlPropertyName),h.buildNode("div",{className:"propertyName",parent:o,text:n,useOwnClass:!0},this.baseClass);var a=h.buildNode("div",{className:"propertyValue",parent:o,useOwnClass:!0},this.baseClass);this._buildPropertyEditor(e,a,"propertyEditor"),this._buildPropertyTooltip(e,o,i)}),this)},_buildPropertyEditor:function(e,t,i){var n,o=e.editor,r=e.controlPropertyName;switch(o){case"TextField":(n=new d).startup();break;case"ComboBox":var s=e.value_RSRC,u=this._prepareComboBoxItems(s);n=new l({items:u,value:u[0].value,editable:!0}),this._eventListeners.push(h.setEventListener(n.domNode,"pointerdown",this._handlePointerDownOnEditableDropdown.bind(this,n))),n.startup(),n._textField._preventTypingEventForKeys.push(a.TAB),n.get("menu").domNode.setAttribute("data-focus","temporary");break;case"TextArea":(n=new c).startup();break;case"WorkspaceDropdown":let t=this.additionalWidgets.WorkspaceDropdown;if(!t)return;if(n=new t({editable:!0}),e.hasOwnProperty("placeholderItem")){var p=e.placeholderItem;n.set("placeholderItem",p)}n.startup(),n.get("menu").domNode.setAttribute("data-focus","temporary")}n.domNode.classList.add(i),n.set("width",140),n.domNode.setAttribute("data-propertyEditor",r),n.focusNode.setAttribute("tabindex","0"),t.appendChild(n.domNode),this.own(n)},_handlePointerDownOnEditableDropdown:function(e,t){e.focused&&!e.arrowNode.contains(t.target)||setTimeout((function(){e.inputNode.select()}),0)},_buildPropertyTooltip:function(e,t,n){var o=e.controlPropertyName,a=e.tooltip,s=r[a.mainText_RSRC],l=r[a.subText_RSRC],c=n?this._substitutePlaceholderText(n,"mainText_RSRC",s):s;(l=n?this._substitutePlaceholderText(n,"subText_RSRC",l):l)&&(c="<span style='font-weight: bold'>"+s+"</span><br/>"+l);var d=f.getNodeForSelector(t,".propertyName"),p=f.getNodeForSelector(t,".propertyValue"),g=[];d&&g.push(d),p&&g.push(p);var m=new i({class:u.TOOLTIP_CLASS,connectId:g,label:'<div style="cursor:default" data-tooltip="'+o+'Tooltip">'+c+"</div>",position:["before","above","below","after"],showDelay:1e3});d&&(this._eventListeners.push(h.setEventListener(d,"click",(function(){m.set("state","DORMANT")}))),this._eventListeners.push(h.setEventListener(d,"wheel",(function(){m.set("state","DORMANT")})))),p&&(this._eventListeners.push(h.setEventListener(p,"focusin",(function(){m.set("state","DORMANT")}))),this._eventListeners.push(h.setEventListener(p,"wheel",(function(){event.ctrlKey||event.stopPropagation(),m.set("state","DORMANT")})))),this.own(m),m.startup()},_substitutePlaceholderText:function(e,t,i){var n=e[t];if(!n)return i;var o=n.map((function(e){return r[e]}));return i=s.substitute(i,o)},_prepareComboBoxItems:function(e){var t=[];return e.forEach((function(e){var i={label:r[e],value:p[e]};t.push(i)})),t},_getNewValueForProperty:function(e,t){switch(e){case"itemLabels":case"codeItems":t=f._splitAtDelimiterAndTrimValues(t,"\n")}return t},_updateContentForProperty:function(e,t){this.get("content")[e]=t},destroy:function(){this._eventListeners.forEach((function(e){e.remove()})),this.inherited(arguments)}});return m._CATEGORY_HEADER_TEXT="header_RSRC",m._CATEGORY_PROPERTIES_LIST="properties",m._PROPERTY_DISPLAY_NAME="displayName_RSRC",m._PROPERTY_EDITOR="editor",m._CATEGORY_SECTIONS="sections",m._PLACEHOLDER_TEXT_KEYS="placeholderKeys_RSRC",m}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(816)],o=i.dj.d(n,(function(e,t){var i=t.CURRENT_SECTION;return e(null,{executionModel:t.CURRENT_SECTION,_setExecutionModelAttr:function(e){var n,o=Object.keys(t).some((function(i){return(n=t[i])===e}));n=o?n:i,this._set("executionModel",n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_setDataAttr:function(e){0!==Object.keys(e).length&&Object.keys(e).forEach((function(t){this.set(t,e[t])}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(330)],o=i.dj.d(n,(function(e,t){return e(t,{disabled:!1,buildRendering:function(){this.inherited(arguments),this.focusNode=this.domNode},_setDisabledAttr:function(e){var t=this.baseClass+"--disabled";e?(this.domNode.classList.add(t),this.set("editMode",!1)):this.domNode.classList.remove(t),this.childWidget&&this.childWidget.set("disabled",e),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(269),i(550),i(501)],o=i.dj.d(n,(function(e,t,i,n){var o=["left","right"];return e(null,{text:"Text",labelPosition:"left",_setTextAttr:function(e){this._setLabelWidthToAuto(),this._label&&this._label.set("text",e),this._updateContainerClassList(e),this._set("text",e)},_setLabelPositionAttr:function(e){if(-1===o.indexOf(e))throw new Error("Given position for label not supported");this._set("labelPosition",e)},createLabel:function(){this._labelContainer=i.buildNode("div",{className:"mwLiveControl__outerContainer__labelContainer",useOwnClass:!0},this.baseClass),"left"===this.get("labelPosition")?this._widgetOuterContainer.insertBefore(this._labelContainer,this._widgetContainer):this._widgetOuterContainer.appendChild(this._labelContainer),this._label=new t({text:this.get("text"),height:20}),n.addVisibleElementAttribute(this._label.domNode),this._labelContainer.appendChild(this._label.domNode),this._label.startup(),this.own(this._label)},_updateContainerClassList:function(e){var t;""===e?(t=!0,this._widgetOuterContainer.classList.add("emptyLabel")):(t=!1,this._widgetOuterContainer.classList.remove("emptyLabel")),this._updateLabelDisplayToggleDetails(t)},_updateLabelDisplayToggleDetails:function(e){var t=this.getLabelContainerElement(),i={element:t,visibleInHideCodeView:!e,visibleInEditMode:!e,isEmpty:e};this._updateElementsToToggleList(t,i)},_setLabelWidthToAuto:function(){this._hasLabel&&this._label.set("width","auto")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t={center:"center",left:"left"},i={top:"top",bottom:"bottom"};return e(null,{position:i.bottom,align:t.center,_setPositionAttr:function(e){-1!==Object.keys(i).indexOf(e)&&(this.domNode.classList.remove(this.baseClass+"--"+this.position),this.domNode.classList.add(this.baseClass+"--"+e),this._set("position",e))},_setAlignAttr:function(e){if(-1!==Object.keys(t).indexOf(e)){if(e===t.center){var i=this.get("panelWidth"),n=this.domNode.getBoundingClientRect().width;this.editorContainer.style.left=n/2+"px",this.editorContainer.style.transform="translateX(-"+i/2+"px)"}else this.editorContainer.style.left="0",this.editorContainer.style.transform="translateX(0)";this._set("align",e)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{mergePropertySheet:function(e,t){e=JSON.parse(e),t=JSON.parse(t);var i=this._replaceSharedEntityKeys(e,t,e);return JSON.stringify(i)},_replaceSharedEntityKeys:function(e,t,i){return e instanceof Array?e.forEach(function(e){this._replaceSharedEntityKeys(e,t,i)}.bind(this)):Object.keys(e).forEach(function(n){var o=e[n];if("sharedEntityKey"===n){var r=t[o];r&&(delete e[n],this._addAllSharedProperties(e,r))}else"object"==typeof o&&this._replaceSharedEntityKeys(o,t,i)}.bind(this)),i},_addAllSharedProperties:function(e,t){Object.keys(t).forEach((function(i){e[i]=t[i]}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(208)],o=i.dj.d(n,(function(e,t,i){return t([e],{constructor:function(e,t,n){this.own(i.after(this,"onFocusControl",e,!0)),this.own(i.after(this,"onBlurLeft",t,!0)),this.own(i.after(this,"onBlurRight",n,!0))},handleWidgetMousedown:function(e,t){var i=this._getBoundaryOfVisibleElementsInWidget(t);this._isEventLeftOfRange(e,i)?this.onBlurLeft(e):this._isEventRightOfRange(e,i)?this.onBlurRight(e):this.onFocusControl(e)},_getBoundaryOfVisibleElementsInWidget:function(e){var t=this._getFirstVisibleElement(e),i=this._getLastVisibleElement(e);return{leftX:t.getBoundingClientRect().left,rightX:i.getBoundingClientRect().right}},_getFirstVisibleElement:function(e){var t=this._getFirstChildDisplayed(e);return this._getFirstVisibleElementDisplayed(t)},_getLastVisibleElement:function(e){var t=this._getLastChildDisplayed(e);return this._getLastVisibleElementDisplayed(t)},_getFirstChildDisplayed:function(e){for(var t=e.children,i=0;i<t.length&&!this._isChildDisplayed(t[i]);)i++;return t[i]},_getLastChildDisplayed:function(e){for(var t=e.children,i=t.length-1;i>=0&&!this._isChildDisplayed(t[i]);)i--;return t[i]},_getFirstVisibleElementDisplayed:function(e){if(this._isVisibleElement(e)&&this._isChildDisplayed(e))return e;for(var t=e.children,i=0;i<t.length;){var n=this._getFirstVisibleElementDisplayed(t[i]);if(n)return n;i++}return null},_getLastVisibleElementDisplayed:function(e){if(this._isVisibleElement(e)&&this._isChildDisplayed(e))return e;for(var t=e.children,i=t.length-1;i>=0;){var n=this._getLastVisibleElementDisplayed(t[i]);if(n)return n;i--}return null},_isVisibleElement:function(e){return null!==e.getAttribute("visible-element")},_isChildDisplayed:function(e){var t=window.getComputedStyle(e).display,i=window.getComputedStyle(e).visibility;return"none"!==t&&"hidden"!==i},_isEventLeftOfRange:function(e,t){return e.pageX<t.leftX},_isEventRightOfRange:function(e,t){return e.pageX>t.rightX},onFocusControl:function(e){},onBlurLeft:function(e){},onBlurRight:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(312),i(203),i(286),i(437),i(2080),i(948)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i([n],{postCreate:function(){this.domNode.addEventListener("mousedown",this._handleMouseDown.bind(this),!0),this.inherited(arguments),this.domNode.addEventListener("click",a.createCallback(this._handleClick.bind(this),this._handleDoubleClick.bind(this),220)),this._addItemTooltip(),this.get("menu").domNode.setAttribute("data-focus","temporary")},_openComboBoxMenu:function(){this.set("menuOpen",!0),this.inherited(arguments)},closeMenu:function(){this.inherited(arguments),this.set("menuOpen",!1)},_handleClick:function(e){e.mwEventData&&e.mwEventData.keyCode||this._handleArrowNodeMouseDown(e)},_handleMouseDown:function(e){e.stopImmediatePropagation()},_handleDoubleClick:function(e){this.emit("doubleclick",{}),e.stopPropagation()},_handleMenuClick:function(e){if(this._isSeparator(e.target)||!e.target.classList.contains("mwMenuItem")&&!e.target.classList.contains("mwTextNode"))e.preventDefault();else{var t=this._getItemForNode(e.target).value,i=this.get("value");this.set("value",t),i!==t&&this._triggerChangeEvent("value",i,t),this.closeMenu()}},_setValueAttr:function(e){var t=this._getSelectedItemFromValue(e);if(("number"==typeof e?e.toString():e)&&t&&void 0!==t.index){var i=t.label;this._textField.set("value",i),this._isTextEmpty=!0,this._removeSelectedMenuItemColor(),this.get("menu").getChildren().length>0&&void 0!==t.index&&this.get("menu").getChildren()[t.index].classList.add("mwComboBoxSelectedMenuItem")}else if(("number"==typeof e?e.toString():e)&&!t){if(!this.get("editable")){if(this.get("items")&&0!==this.get("items").length)throw new Error("Value must match an existing item for non-editable combo box");return void(this._pendingValue=e)}this._removeSelectedMenuItemColor(),this._textField.set("value",e),this._isTextEmpty=!1}else""===e&&(this._textField.set("value",""),void 0!==this._get("value")&&(this._removeSelectedMenuItemColor(),this._isTextEmpty=!0),""!==this.get("text")&&(this._isTextEmpty=!1));!0===this._isTextEmpty?this.set("text",""):this.set("text",e),this._set("value",e)},_addItemTooltip:function(){var e=this.get("menu").menuItemsNode,i=new t({class:o.TOOLTIP_CLASS,connectId:e,selector:".mwMenuItem",getContent:function(e){return this._getTooltipContent(e)}.bind(this),showDelay:1e3});this.own(i)},_getTooltipContent:function(e){return"<span class=comboBoxItemTooltip>"+this._getValueForItemNode(e)+"</span>"},_getItemForNode:function(e){var t=this.get("menu"),i=this.get("items");return r.getItemForNode(t,i,e)},_getValueForItemNode:function(e){return this._getItemForNode(e).value}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(203),i(626),i(1141),i(615),i(1140),i(501),i(947),i(550)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=188,d=186,u=32,h=222,p=[",",";"," "],f={";":1,",":2," ":3},g=i.ONE_ITEM_PER_LINE_WARNING,m=i.QUOTE_WARNING,_={delimiters:p,quote:['"',"'"]},v={delimiters:g,quote:m},b=i.PLACEHOLDER_ITEM_ONE+"<br>"+i.PLACEHOLDER_ITEM_TWO,y=i.PLACEHOLDER_ITEM_ONE_WITH_QUOTES+"<br>"+i.PLACEHOLDER_ITEM_TWO_WITH_QUOTES;function C(e){return f[e]}return t(n,{_WORKSPACE_DROPDOWN_PLACEHOLDER_ITEM_VALUE:"placeholder item",_setupControlConfigPanel:function(){this._createPlaceholderNode("itemLabels"),this._createPlaceholderNode("codeItems"),this._setupWorkspaceDropdown("linkedVariable"),this._updateLabelAndValuesDisabledState(!this._isDefaultLinkedVariableChoice(this.get("linkedVariable"))),this._attachEventListenersInConfigPanel(),this._populateDefaultValueItems()},_attachEventListenersInConfigPanel:function(){this._eventHandlers=[],this._eventHandlers.push(this.configPanel.setupEventListeners("itemLabels","keyup",this._handleTextAreaTyping.bind(this))),this._eventHandlers.push(this.configPanel.setupEventListeners("codeItems","keyup",this._handleTextAreaTyping.bind(this))),this._eventHandlers.push(this.configPanel.setupEventListeners("itemLabels","paste",this._handlePasteForDelimitedList.bind(this))),this._eventHandlers.push(this.configPanel.setupEventListeners("codeItems","paste",this._handlePasteForDelimitedList.bind(this))),this._eventHandlers.push(this.configPanel.setupPropertyWatch("itemLabels","value",this._handlePlaceholderOnValueChangeForItemLabels.bind(this))),this._eventHandlers.push(this.configPanel.setupPropertyWatch("codeItems","value",this._handlePlaceholderOnValueChangeForItemValues.bind(this)))},_filterStringArrayVariables:function(e){if(this._isVariableOfType(e,"string")&&this._isVariableDetailSummary(e)){let t=this._getVariableSizeDimensions(e),i=t.row,n=t.col;return 1===i&&n>1||i>1&&1===n}return!1},_populateDefaultValueItems:function(){let e=this.childWidget.get("items"),t=s.getPropertyEditor(this.configPanel.domNode,this._DEFAULT_PROPERTY);if(t){t.set("items",e);let i=this._getPropertyContent();t.set("text",i[this._DEFAULT_PROPERTY])}let i=this._areItemsEmpty(e);a.updateConfigPanelPropertyDisabledState(this.configPanel,"defaultValue",i)},_updateLabelAndValuesDisabledState:function(e){a.updateConfigPanelPropertyDisabledState(this.configPanel,"itemLabels",e),a.updateConfigPanelPropertyDisabledState(this.configPanel,"codeItems",e)},_handlePlaceholderOnValueChangeForItemLabels:function(){var e=s.getPropertyEditor(this.configPanel.domNode,"itemLabels");this._handlePlaceholderOnValueChange(e)},_handlePlaceholderOnValueChangeForItemValues:function(){var e=s.getPropertyEditor(this.configPanel.domNode,"codeItems");this._handlePlaceholderOnValueChange(e)},_handlePlaceholderOnValueChange:function(e){var t=e.inputNode.value,i=this._getPlaceHolderNode(e.domNode);""===t?this._showPlaceholder(i):this._hidePlaceholder(i)},_createPlaceholderNode:function(e){var t=s.getPropertyEditor(this.configPanel.domNode,e).domNode;l.buildNode("div",{className:"placeholder",useOwnClass:!0,parent:t},this.BASE_CLASS).innerHTML="itemLabels"===e?b:y,t.addEventListener("keydown",this._handlePlaceholderOnKeyDown.bind(this)),t.addEventListener("keyup",this._handlePlaceholderOnKeyUp.bind(this))},_handlePlaceholderOnKeyDown:function(e){var t=e.target,i=this._getPlaceHolderNode(t);o.isModifierKey(e.key)||this._hidePlaceholder(i)},_getPlaceHolderNode:function(t){return e.getEnclosingWidget(t).domNode.querySelector(".placeholder")},_hidePlaceholder:function(e){e.classList.add("placeholder--inactive")},_handlePlaceholderOnKeyUp:function(e){var t=e.target,i=this._getPlaceHolderNode(t);0===t.value.length&&this._showPlaceholder(i)},_showPlaceholder:function(e){e.classList.remove("placeholder--inactive")},_handleTextAreaTyping:function(e){var t=e.target,i=e.keyCode;this._displayTextAreaWarning(t,i)},_displayTextAreaWarning:function(t,i){var n,o=e.getEnclosingWidget(t),r=o.domNode.getAttribute("data-propertyEditor");switch(r){case"itemLabels":n=this._getWarningForItemLabels(t,i);break;case"codeItems":n=this._getWarningForItemValues(i)}n&&o.get("warningText")!==n?(o.set("validationState","warning"),o.set("warningText",n),this.emit("configpanelwarningdisplayed",{mwEventData:{propertyEditor:r,warningType:n===v.quote?"quote":"delimiter"}})):n||(o.set("validationState","normal"),o.set("warningText",""))},_getWarningForItemLabels:function(e,t){var i,n=this._getWarningForDelimiters(t)||this._getWarningForQuotes(t);if(!n){var o=e.value.split("\n")[(i=e).value.substr(0,i.selectionStart).split("\n").length-1];n=this.getMostRecentWarning(o)}return n},_getWarningForItemValues:function(e){return this._getWarningForDelimiters(e)},_getWarningForDelimiters:function(e){return e===d||e===c||e===u?g:""},_getWarningForQuotes:function(e){return e===h?m:""},getMostRecentWarning:function(e){var t="",i=-1;return Object.keys(_).forEach((function(n){var o=_[n],r=a.getLargestIndexOf(e,o);r>i&&(i=r,t=n)}),this),t?v[t]:t},_handlePasteForDelimitedList:function(t){var i=t.target,n=e.getEnclosingWidget(i),o=(t.clipboardData||window.clipboardData).getData("text"),a=this._getHighestPriorityDelimiter(o);if(a){t.preventDefault(),t.stopPropagation(),o=s._splitAtDelimiterAndTrimValues(o,a);var l=n.domNode.getAttribute("data-propertyEditor");"itemLabels"===l&&(o=o.map((function(e){return r.removeSurroundingQuotes(e)}))),o=o.join("\n"),window.document.execCommand("insertText",!1,o),this.emit("delimitedlistpasted",{mwEventData:{delimiter:a,propertyEditor:l}})}},_getHighestPriorityDelimiter:function(e){var t,i;return p.forEach((function(n){-1!==e.indexOf(n)&&(!t||C(n)<t)&&(t=C(n),i=n)})),i},_cleanupControlConfigPanel:function(){this._eventHandlers.forEach((function(e){e.remove()}))},_getIndividualPropertyContent:function(e){let t;if("linkedVariable"===e&&this._isDefaultLinkedVariableChoice(this.get("linkedVariable")))t="placeholder item";else if(e===this._DEFAULT_PROPERTY){let i=this.get("itemLabels"),n=this.get("codeItems").indexOf(this.get(e));t=-1!==n?i[n]:""}else t=this.get(e);return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5224)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.view.decoration.viewmodel","rtc.livecontrols.decorator","rtc.view.hidden.hiddennodemodel","rtc.livecontrols.sizer","rtc.livecontrols.widgetstate"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1470),i(834),i(5225)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{getApplicableNodeClass:function(){return t},getWidgetClass:function(){return n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(231),i(203),i(626),i(223),i(5226),i(258),i(232),i(229),i(1139),i(946),i(5227),i(5229),i(1474),i(948),i(2085),i(2086),i(501),i(550)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){const b=c.VALUE_CHANGING,y={minimum:"minLinkedVariable",maximum:"maxLinkedVariable",step:"stepLinkedVariable"},C={};C.minimum={errorState:!1,errorText:n.MIN_PROPERTY_ERROR_TOOLTIP},C.maximum={errorState:!1,errorText:n.MAX_PROPERTY_ERROR_TOOLTIP},C.step={errorState:!1,errorText:n.STEP_PROPERTY_ERROR_TOOLTIP},C.defaultValue={errorState:!1,errorText:n.DEFAULT_PROPERTY_ERROR_TOOLTIP};const T=n.SLIDER_ERROR_TOOLTIP_SUFFIX,E=i([d,h,p],{_WIDGET_PROPERTY_TO_LINKED_VARIABLE_PROPERTY_MAP:y,liveControlClass:"mwLiveControlSlider",LIVE_CONTROL_ERROR_CLASS:"mwLiveControlSlider--error",type:"Slider",text:n.SLIDER_CAP,value:0,executionOn:c.VALUE_CHANGING,minLinkedVariable:"",maxLinkedVariable:"",stepLinkedVariable:"",errorState:!1,constructor:function(){this.childWidget=new u,this._widgetPropertyData=JSON.parse(r),this._userEnteredPropertyData={},this._propertyData={},this._PROPERTY_ERROR_INFO=C},buildRendering:function(){this.inherited(arguments),this._buildSliderAndValueContainer()},_buildSliderAndValueContainer:function(){this._buildValueContainer(),this._buildSliderContainer()},_buildValueContainer:function(){this._valueContainer=v.buildNode("div",{className:"valueContainer",parent:this._widgetContainer},"mwLiveControlSlider"),this._valueNode=v.buildNode("div",{className:"value",parent:this._valueContainer},"mwLiveControlSlider"),this._valueTextNode=v.buildNode("span",{className:"valueText",parent:this._valueNode},"mwLiveControlSlider"),this._createValueEditor(),this._ELEMENTS_DISPLAY_TO_TOGGLE.push({element:this.valueEditor.domNode,visibleInHideCodeView:!0}),this._ELEMENTS_DISPLAY_TO_TOGGLE.push({element:this._valueNode,visibleInHideCodeView:!1}),_.addVisibleElementAttribute(this._valueTextNode),_.addCodeValueClassName(this._valueTextNode)},_buildSliderContainer:function(){this._sliderContainer=v.buildNode("div",{className:"mwSliderContainer",parent:this._widgetContainer},"mwLiveControlSlider"),this._buildSliderLabels(),this._sliderContainer.appendChild(this.childWidget.domNode)},_buildSliderLabels:function(){this._minLabel=v.buildNode("span",{className:"minLabel",parent:this._sliderContainer},"mwLiveControlSlider"),this._maxLabel=v.buildNode("span",{className:"maxLabel",parent:this._sliderContainer},"mwLiveControlSlider")},_setDefaultLimits:function(){var e=this.get("value");if(void 0===this.get("maximum")){var t=e?Math.max(0,2*e):100;this.set("maximum",t)}if(void 0===this.get("minimum")){var i=e?Math.min(0,2*e):-100;this.set("minimum",i)}},_setValueAttr:function(e){e=parseFloat(e),this.inherited(arguments),this._updateValueTextAndEditor(e),this._resizeValueNode(),this._updateDefaultState()},_setMinimumAttr:function(e){this.childWidget.set("minimum",e),this._setMinLimitLabel(e),this._set("minimum",e),this._resizeValueNode()},_setMaximumAttr:function(e){this.childWidget.set("maximum",e),this._setMaxLimitLabel(e),this._set("maximum",e),this._resizeValueNode()},_setStepAttr:function(e){this.childWidget.set("step",e),this._set("step",e)},_getValidCustomValue:function(e){return g.isScalarWidgetType(e.toString())?parseFloat(e):null},_updateDefaultAfterPropertyChanges:function(e,t){this._updateSliderPropertiesAfterPropertyChanges(this._DEFAULT_PROPERTY,e,"defaultValueLinkedVariable",t)},_updateDefaultAfterWorkspaceVariableUpdate:function(e){this._hasLinkedVariableChanged(this._DEFAULT_PROPERTY,e)&&(this._propertyData[this._DEFAULT_PROPERTY]=e,this._updateSliderPropertiesAfterWorkspaceVariableUpdate())},_updateUnlinkedDefaultAfterWorkspaceVariableUpdate:function(e){const t=e?parseFloat(e):this.get(this._DEFAULT_PROPERTY);this._propertyData[this._DEFAULT_PROPERTY]=t},isControlResetAllowed:function(){return!this.get("errorState")},_getStepAttr:function(){return this.childWidget.get("step")?this.childWidget.get("step"):this.childWidget.get("defaultStep")},_setExecutionOnAttr:function(e){var t,i=Object.keys(c).some((function(i){return(t=c[i])===e}));t=i?t:b,this._set("executionOn",t)},_setMaxLimitLabel:function(e){this._maxLabel.textContent=g.getLimitLabel(e)},_setMinLimitLabel:function(e){this._minLabel.textContent=g.getLimitLabel(e)},postCreate:function(){this.inherited(arguments),this.set("value",this.value),this._setDefaultLimits(),this._filteringCallback=this._filterDoubleVariables.bind(this),this._clickCallback=this._handleClick.bind(this),this._doubleClickCallback=this._handleDoubleClick.bind(this),this._doubleClickHandlerCallback=f.createCallback(this._clickCallback,this._doubleClickCallback),this._eventHandlers.push(v.setEventListener(this._valueTextNode,"click",this._doubleClickHandlerCallback)),this._eventHandlers.push(v.setEventListener(this._sliderContainer,"click",this._handleClick.bind(this)));var e=this.childWidget.domNode;this._eventHandlers.push(v.setEventListener(e,"dblclick",this._handleDoubleClick.bind(this))),this._eventHandlers.push(v.setEventListener(e,"mousedragging",this.focus.bind(this),!0)),this._eventHandlers.push(v.setEventListener(e,"mousedragreleased",this.focus.bind(this),!0)),this._eventHandlers.push(v.setEventListener(e,"mouseclicked",this._handleMouseClicked.bind(this),!0)),this._valueWatchHandle=this.childWidget.watch("value",this._updateValue.bind(this)),this._addValueEditorListeners()},_handleMouseClicked:function(e){void 0===e.button&&(e.button=0),this._handleWidgetMouseDown(e),this.focus()},_handleWorkspaceVariableUpdate:function(){let e=Object.keys(this._WIDGET_PROPERTY_TO_LINKED_VARIABLE_PROPERTY_MAP);e.forEach(e=>{let t,i=this._WIDGET_PROPERTY_TO_LINKED_VARIABLE_PROPERTY_MAP[e],n=this._userEnteredPropertyData[e],o=n||this.get(i);if(this._linkedVariableExists(o)){var r=l.generateUuid();this._getLinkedVariableValue(o,this._handleWorkspaceVariableUpdateAsync.bind(this,e,r),r)}else t=n?parseFloat(n):this.get(e),this._propertyData[e]=t}),this.inherited(arguments)},_handleWorkspaceVariableUpdateAsync:function(e,t,i){let n=i[0].results[0];n&&this._hasLinkedVariableChanged(e,n.CodeValue)&&(this._propertyData[e]=n.CodeValue,this._updateSliderPropertiesAfterWorkspaceVariableUpdate()),s.deregisterResponseHandler("FEvalResponse:"+this._WORKSPACE_INFO_REQUEST_ID+":"+t,this._handleWorkspaceVariableUpdateAsync,this)},_hasLinkedVariableChanged:function(e,t){return this._propertyData[e]!==t},_updateSliderPropertiesAfterWorkspaceVariableUpdate:function(){let e=this._getPropertyValuesAfterChange(this._propertyData);this._updateSliderAndPropertiesErrorState(e),this.get("errorState")||(this._updateSliderProperties(e),this.emit("dataupdated"))},_setErrorStateAttr:function(e){if(e){if(this.domNode.classList.add("mwLiveControlSlider--error"),!this._errorTooltip){let e=this._errorInfo.errorText+".<br>"+T;this._errorTooltip=v.buildTooltip(this.domNode,e,["below","above","after","before"])}}else this.domNode.classList.remove("mwLiveControlSlider--error"),this._errorTooltip&&(this._errorTooltip.destroy(),this._errorTooltip=null);this.childWidget.set("disabled",e),this.valueEditor.set("disabled",e),this._set("errorState",e)},_updateChildWidgetState:function(e){this.get("errorState")?this.childWidget.set("disabled",!0):this.inherited(arguments)},_handlePropertyChange:function(e,t){this._propertyData[e]=t;let i=Object.keys(this._WIDGET_PROPERTY_TO_LINKED_VARIABLE_PROPERTY_MAP);-1!==i.indexOf(e)?this._handleSliderPropertyValueChanges(e,t):this.inherited(arguments)},_setEditModeAttr:function(e){this.inherited(arguments),this.editMode&&this._updatePropertyErrorTooltipsInConfigPanel(this._PROPERTY_ERROR_INFO)},_handleSliderPropertyValueChanges:function(e,t){let i,n=this._linkedVariableExists(t),o=this._WIDGET_PROPERTY_TO_LINKED_VARIABLE_PROPERTY_MAP[e];if(this._userEnteredPropertyData[e]=t,n){i=t;var r=l.generateUuid();this._getLinkedVariableValue(i,this._handleSliderPropertyValueChangesAsync.bind(this,e,o,i,r),r)}else{g.isScalarWidgetType(t.toString())?i="":(i=this.get(o),this._updateConfigPanelPropertyValues(e));this._updateSliderPropertiesAfterPropertyChanges(e,t,o,i)}},_handleSliderPropertyValueChangesAsync:function(e,t,i,n,o){let r=o[0].results[0];if(r){var a=r.CodeValue;this._updateSliderPropertiesAfterPropertyChanges(e,a,t,i)}s.deregisterResponseHandler("FEvalResponse:"+this._WORKSPACE_INFO_REQUEST_ID+":"+n,this._handleSliderPropertyValueChangesAsync,this)},_updateSliderPropertiesAfterPropertyChanges:function(e,t,i,n){this._propertyData[e]=g.getFloatValueOrDefault(t,this.get(e));let o=this._getPropertyValuesAfterChange(this._propertyData);this._updateSliderAndPropertiesErrorState(o),this.get("errorState")||(this.set(i,n),this._updateSliderProperties(o))},_updateSliderAndPropertiesErrorState:function(e){this._handleInvalidProperties(e),this.get("editMode")&&this._updatePropertyErrorTooltipsInConfigPanel(this._PROPERTY_ERROR_INFO),this._errorInfo=this._getErroredPropertyInfo();let t=!!this._errorInfo&&this._errorInfo.errorState;this.set("errorState",t)},_getErroredPropertyInfo:function(){let e=Object.keys(this._PROPERTY_ERROR_INFO).find(e=>this._PROPERTY_ERROR_INFO[e].errorState);return this._PROPERTY_ERROR_INFO[e]},_handleInvalidProperties:function(e){let t=!g.areLimitsValid(e.minimum,e.maximum);this._PROPERTY_ERROR_INFO.minimum.errorState=t,this._PROPERTY_ERROR_INFO.maximum.errorState=t,this._PROPERTY_ERROR_INFO.step.errorState=!g.isStepValid(e.minimum,e.maximum,e.step),this._PROPERTY_ERROR_INFO.defaultValue.errorState=!g.isDefaultValid(e.minimum,e.maximum,e.defaultValue)},_getPropertyValuesAfterChange:function(e){let t=g.checkForNonEmptyDoubleValue(e.minimum)?e.minimum:this.get("minimum"),i=g.checkForNonEmptyDoubleValue(e.maximum)?e.maximum:this.get("maximum"),n=g.checkForNonEmptyDoubleValue(e.step)?e.step:this.get("step"),o=g.checkForNonEmptyDoubleValue(e[this._DEFAULT_PROPERTY])?e[this._DEFAULT_PROPERTY]:this.get(this._DEFAULT_PROPERTY),r=this._isInDefaultState?o:this.get("value");return r=g.getSliderValueForLimits(r,t,i),{defaultValue:o,value:r,minimum:t,maximum:i,step:n}},_showFocusedValueEditor:function(){this._valueEditorDisplayedTemporarily=!0,this._updateValueEditingMode(!0),this._focusValueEditor()},_focusValueEditor:function(){this.valueEditor.focusNode.focus()},_createValueEditor:function(){var e=this._valueContainer,t=new a;this.valueEditor=t,t.domNode.classList.add("mwValueEditor"),_.addVisibleElementAttribute(t.domNode),e.appendChild(t.domNode),t.startup(),t.set("width","auto"),t.set("height",18)},_addValueEditorListeners:function(){this._editorBlurCallback=this._handleValueEditorBlur.bind(this),this.valueEditor.focusNode.addEventListener("blur",this._editorBlurCallback)},_setValueEditorContent:function(){this.valueEditor.set("value",this.get("value"))},_handleValueEditorBlur:function(){if(this._shouldCommitValue()){var e=this.valueEditor.focusNode.value,t=this.get("value"),i=g.getFloatValueOrDefault(e,t);t!==(i=g.getSliderValueForLimits(i,this.get("minimum"),this.get("maximum")))&&(this.set("value",i),this.childWidget._triggerChangeEvent("value",t,i),this._liveControlDDUXContributor.logDDUXForSliderValueConfigured(this.get("type")))}this._setValueEditorContent(),this._valueEditorDisplayedTemporarily&&(this._valueEditorDisplayedTemporarily=!1,this._updateValueEditingMode(!1))},_updateSliderProperties:function(e){this.childWidget.propertyChangesPending=!0,Object.keys(e).forEach(t=>{let i=e[t];this.set(t,i)}),this.childWidget.propertyChangesPending=!1},_handleClick:function(e){!this._isTargetWithinValueTextNode(e.target)||this._isInValueEditingMode()||this.get("errorState")||this._showFocusedValueEditor(),e.stopPropagation()},_handleDoubleClick:function(e){this.get("editMode")||this._isInValueEditingMode()&&this._isTargetWithinValueEditor(e.target)||(this._enterEditModeOnDoubleClick(),e.stopPropagation())},_updateValue:function(e,t,i){this._set("value",i),this._updateDefaultState(),this._updateValueTextAndEditor(i)},_updateValueTextAndEditor:function(e){this._valueTextNode.textContent=e,this.valueEditor.set("value",e)},_resizeValueNode:function(){var e=this.get("value"),t=this.get("step"),i=this.get("minimum"),n=this.get("maximum"),o=g.findMaxCharactersToReserve(n,i,t,e)+"ch";this._valueContainer.style.width!==o&&(this._valueContainer.style.width=o)},navigate:function(e){var t=e.keyCode,i=document.activeElement,n=!1;switch(t){case o.BACKSPACE:case o.DELETE:case o.TAB:i===this.domNode||this.get("editMode")||(this.focus(),n=!0);break;case o.LEFT_ARROW:if(i!==this.domNode){this._showOrFocusValueEditor();var r=(i=document.activeElement).value.length;i.setSelectionRange(r,r),n=!0}break;case o.RIGHT_ARROW:i!==this.domNode&&(this._showOrFocusValueEditor(),document.activeElement.setSelectionRange(0,0),n=!0)}return n},handleKeyDown:function(e){var i=e.keyCode,n=document.activeElement;this.enableCommitInEditMode(),this._enableValueCommits(!0);var r=!1,a=!_.hasModifier(e);switch(i){case o.LEFT_ARROW:a&&(r=!0,this._isInValueEditingMode()&&0===n.selectionStart&&(this._handleValueEditorBlur(),this.emitKeyOnWidgetsEvent(e)));break;case o.RIGHT_ARROW:if(a&&(r=!0,this._isInValueEditingMode())){var s=this._valueContainer.querySelector(".mwTextField"),l=t.getEnclosingWidget(s);n.selectionStart===l.focusNode.value.length&&(this._handleValueEditorBlur(),this.emitKeyOnWidgetsEvent(e))}break;case o.ESCAPE:this._enableValueCommits(!1),this.configPanel&&this.configPanel.set("commit",!1),this._isInValueEditingMode()&&(this._handleValueEditorBlur(),this.emitRestoreFocusEvent(),r=!0);break;case o.ENTER:a&&(this._isInValueEditingMode()?(this._handleValueEditorBlur(),this.emitKeyOnWidgetsEvent(e),r=!0):n===this.childWidget.focusNode&&(this.emitKeyOnWidgetsEvent(e),r=!0));break;case o.HOME:case o.END:r=!0}!r&&this._isInValueEditingMode()&&(r=m.isHandledByTextField(e)),r?this._logKeyEvents(e):this.inherited(arguments)},handleKeyUp:function(e){var t=e.keyCode;t===o.TAB&&this._isInValueEditingMode()&&(this._handleValueEditorBlur(),this.childWidget.focusNode.focus()),this.inherited(arguments)},_isTargetWithinValueTextNode:function(e){return this._valueTextNode.contains(e)},_isTargetWithinValueEditor:function(e){return this.valueEditor.domNode.contains(e)},_enableValueCommits:function(e){this._saveEditor=e},_shouldCommitValue:function(){return this._saveEditor},_updateValueEditingMode:function(e){this.valueEditor.domNode.style.display=e?"block":"none",this._valueNode.style.display=e?"none":"block"},_isInValueEditingMode:function(){return"block"===this.valueEditor.domNode.style.display},_showOrFocusValueEditor:function(){this._isInValueEditingMode()?this._focusValueEditor():this._showFocusedValueEditor()},destroy:function(){this._valueWatchHandle.unwatch(),this.valueEditor&&(this.valueEditor.focusNode.removeEventListener("blur",this._editorBlurCallback),this.valueEditor.destroy()),this.domNode.removeEventListener("click",this._doubleClickHandlerCallback),this.inherited(arguments)}});return E.LIVE_CONTROL_CLASS="mwLiveControlSlider",E.BASE_CLASS=d.BASE_CLASS,E}),e,t),e.exports=o},function(e,t){e.exports='{\n "Label category": {\n "sharedEntityKey": "Label",\n "placeholderKeys_RSRC": {\n "mainText_RSRC": [\n "SLIDER_CAP"\n ]\n }\n },\n "Values": {\n "header_RSRC": "VALUES_UPPER",\n "subHeader_RSRC": "VALUES_SUB_HEADER",\n "properties": [\n {\n "controlPropertyName": "minimum",\n "displayName_RSRC": "SLIDER_MIN",\n "editor": "WorkspaceDropdown",\n "placeholderItem": "",\n "tooltip": {\n "mainText_RSRC": "MIN_PROPERTY_TOOLTIP"\n }\n },\n {\n "controlPropertyName": "maximum",\n "displayName_RSRC": "SLIDER_MAX",\n "editor": "WorkspaceDropdown",\n "placeholderItem": "",\n "tooltip": {\n "mainText_RSRC": "MAX_PROPERTY_TOOLTIP"\n }\n },\n {\n "controlPropertyName": "step",\n "displayName_RSRC": "SLIDER_STEP",\n "editor": "WorkspaceDropdown",\n "placeholderItem": "",\n "tooltip": {\n "mainText_RSRC": "STEP_PROPERTY_TOOLTIP"\n }\n }\n ]\n },\n "Defaults": {\n "header_RSRC": "DEFAULT_UPPER",\n "subHeader_RSRC": "DEFAULTS_SUB_HEADER",\n "properties": [\n {\n "sharedEntityKey": "Defaults",\n "editor": "WorkspaceDropdown",\n "placeholderItem": "",\n "placeholderKeys_RSRC": {\n "displayName_RSRC": [\n "VALUE_LOWER"\n ],\n "mainText_RSRC": [\n "SLIDER_LOWER"\n ]\n }\n }\n ]\n },\n "ExecutionControl": {\n "header_RSRC": "EXECUTION_UPPER",\n "properties": [\n {\n "controlPropertyName": "executionOn",\n "displayName_RSRC": "SLIDER_RUN_ON",\n "editor": "ComboBox",\n "value_RSRC": [\n "VALUE_CHANGING",\n "VALUE_CHANGED"\n ],\n "tooltip": {\n "mainText_RSRC": "WHEN_TO_RUN"\n }\n },\n {\n "sharedEntityKey": "ExecutionControl",\n "placeholderKeys_RSRC": {\n "mainText_RSRC": [\n "SLIDER_LOWER",\n "VALUE_CHANGES"\n ]\n }\n }\n ]\n }\n}'},function(e,t,i){var n,o;n=[i(203),i(223),i(215),i(2083),i(2085),i(501)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i,n],{discrete:!0,minimum:0,maximum:100,value:0,width:150,defaultStep:1,step:null,propertyChangesPending:!1,constructor:function(){this.minorTicks=[],this.majorTicks=[],this.majorTickLabels=["","","","","",""]},_setWidthAttr:function(e){this.set("outerWidth",e),this._set("width",e)},postCreate:function(){this.inherited(arguments),this.set("outerHeight",16),this.set("outerWidth",this.get("width")),this.set("minimum",this.minimum),this.set("value",this.value),this.domNode.addEventListener("keydown",this._handleKeyboardEvents.bind(this))},_emitChangeEvent:function(){var e=this.get("value");this._lastChangeValueEmitted!==e&&(this._triggerChangeEvent("value",e,e),this._lastChangeValueEmitted=e)},_triggerChangeEvent:function(e,t,i){this.emit("change",{mwEventData:{propertyName:e,oldValue:t,newValue:i}})},_triggerChangingEvent:function(e,t){this.emit("changing",{mwEventData:{propertyName:"value",oldValue:e,newValue:t}})},_setMinimumAttr:function(e){e=parseFloat(e),isNaN(e)||(this.inherited(arguments),this._set("minimum",e),this._calculateStepSize())},_setMaximumAttr:function(e){e=parseFloat(e),isNaN(e)||(this.inherited(arguments),this._set("maximum",e),this._calculateStepSize())},_setValueAttr:function(e){this.inherited(arguments),this._set("value",e),e%1!=0?(this.set("discrete",!1),this._calculateStepSize()):this.set("discrete",!0)},_setStepAttr:function(e){e=parseFloat(e),isNaN(e)||this._set("step",e)},_calculateStepSize:function(){var e=o.findSuitableStepSize(this.get("value"),this.get("maximum"),this.get("minimum"),this.get("discrete"));this.set("defaultStep",e)},_handleKeyboardEvents:function(e){if(!this.get("disabled")){var i=parseFloat(this.get("value")),n=this.get("step")?this.get("step"):this.get("defaultStep"),a=i,s=!r.hasModifier(e);!s||e.keyCode!==t.LEFT_ARROW&&e.keyCode!==t.DOWN_ARROW?!s||e.keyCode!==t.RIGHT_ARROW&&e.keyCode!==t.UP_ARROW?e.keyCode===t.HOME?a=this.get("minimum"):e.keyCode===t.END&&(a=this.get("maximum")):(a=i+n)>this.get("maximum")&&(a=this.get("maximum")):(a=i-n)<this.get("minimum")&&(a=this.get("minimum"));var l=o.findSuitablePrecision(n,this.get("value"));a=parseFloat(a.toFixed(l)),this.set("value",a),i!==a&&this._triggerChangeEvent("value",i,a),e.preventDefault()}},_setPixelValue:function(e,t){if(!this.disabled&&!this.readOnly){var i,n=this.get("value"),r=this.get("step")?this.get("step"):this.get("defaultStep"),a=o.findSuitablePrecision(r,this.get("value"));e<0?i=this.get("minimum"):e>t?i=this.get("maximum"):(i=Math.max(Math.min((this.maximum-this.minimum)*e/t+this.minimum,this.maximum),this.minimum),i=o.findValidSliderValue(i,this.get("minimum"),this.get("maximum"),r)),i=parseFloat(i.toFixed(a)),this._set("value",i),n!==i&&this._triggerChangingEvent(n,i)}},computePreferredSize:function(){0===this.domNode.getBoundingClientRect().width||this.propertyChangesPending||this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-event="press:_onSliderMouseDown"\n ><input type="hidden" data-dojo-attach-point="valueNode"\n ><div class="mwSliderTrack" data-dojo-attach-point="sliderTrackNode"\n ><div class="mwSliderThumb" data-dojo-attach-point="sliderThumbNode, focusNode"></div\n ></div\n ><div class="mwSliderRuleAndLabelContainer" data-dojo-attach-point="containerNode"></div\n></div>'},function(e,t,i){var n,o;n=[i(203),i(1141),i(947)],o=i.dj.d(n,(function(e,t,i){return e(t,{_setupControlConfigPanel:function(){let e=Object.keys(this._WIDGET_PROPERTY_TO_LINKED_VARIABLE_PROPERTY_MAP);e.push(this._DEFAULT_PROPERTY),e.forEach(e=>{this._setupWorkspaceDropdown(e)})},_filterDoubleVariables:function(e){if(this._isVariableOfType(e,"double")&&!this._isVariableValueNaN(e)&&!this._isVariableDetailSummary(e)){let t=this._getVariableSizeDimensions(e),i=t.row,n=t.col;return 1===i&&1===n}return!1},_getVariableLinkedToProperty:function(e){let t=this._WIDGET_PROPERTY_TO_LINKED_VARIABLE_PROPERTY_MAP,i=t[e];if(i)return this.get(i);this.inherited(arguments)},_updatePropertyErrorTooltipsInConfigPanel:function(e){Object.keys(e).forEach(t=>{let n=i.getPropertyEditor(this.configPanel.domNode,t),o=e[t];n&&(o.errorState?this._setErrorState(n,o.errorText):this._setNormalState(n))})},_setNormalState:function(e){e.set("validationState","normal")},_setErrorState:function(e,t){e.set("validationState","error"),e.set("errorText",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5231)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.view.decoration.viewmodel","rtc.livecontrols.decorator","rtc.view.hidden.hiddennodemodel","rtc.livecontrols.sizer","rtc.livecontrols.widgetstate"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1467),i(834),i(5232)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{getApplicableNodeClass:function(){return t},getWidgetClass:function(){return n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(626),i(223),i(5233),i(946),i(5234),i(5235),i(1475),i(1474),i(550),i(5236)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){const h=t([r,l,s,c],{liveControlClass:"mwLiveControlCheckBox",type:"CheckBox",text:i.CHECK_BOX_CAP,labelPosition:"right",value:!1,constructor:function(){this.childWidget=new a({text:""}),this.childWidget.set("height",20),this.childWidget.set("width",14),this._widgetPropertyData=JSON.parse(o),this._userEnteredPropertyData={}},_setValueAttr:function(e){"boolean"!=typeof e&&(e="true"===e||"1"===e),this.childWidget.set("checked",e),this._set("value",e),this.setTooltipLabelToValue(e),this._updateDefaultState()},postCreate:function(){this.inherited(arguments),this._filteringCallback=this._filterLogicalVariables.bind(this),this.childWidget.watch("checked",this._updateValue.bind(this)),this._eventHandlers.push(d.setEventListener(this.childWidget.focusNode,"blur",this._handleCheckBoxBlur.bind(this))),this._eventHandlers.push(d.setEventListener(this.childWidget.focusNode,"focus",this._handleCheckBoxFocus.bind(this))),this._eventHandlers.push(d.setEventListener(this.domNode,"doubleclick",this._handleDoubleClick.bind(this)))},_getValidCustomValue:function(e){return u.getValidBooleanValue(e)},getResizableWidgetElement:function(){return this._widgetContainer},_handleCheckBoxFocus:function(){this.domNode.classList.add("mwLiveControlCheckBox--focused")},_handleCheckBoxBlur:function(){this.domNode.classList.remove("mwLiveControlCheckBox--focused")},_updateValue:function(e,t,i){this._set("value",i)},_handleDoubleClick:function(){this.get("editMode")||this._enterEditModeOnDoubleClick()}});return h.BASE_CLASS=r.BASE_CLASS,h.LIVE_CONTROL_CLASS="mwLiveControlCheckBox",h}),e,t),e.exports=o},function(e,t){e.exports='{\n "Label": {\n "sharedEntityKey": "Label",\n "placeholderKeys_RSRC": {\n "mainText_RSRC": [\n "CHECK_BOX_CAP"\n ]\n }\n },\n "Defaults": {\n "header_RSRC": "DEFAULT_UPPER",\n "subHeader_RSRC": "CHECKBOX_DEFAULTS_SUB_HEADER",\n "properties": [\n {\n "sharedEntityKey": "Defaults",\n "editor": "WorkspaceDropdown",\n "placeholderItem": "",\n "placeholderKeys_RSRC": {\n "displayName_RSRC": [\n "VALUE_LOWER"\n ],\n "mainText_RSRC": [\n "CHECK_BOX_LOWER"\n ]\n }\n }\n ]\n },\n "ExecutionControl": {\n "header_RSRC": "EXECUTION_UPPER",\n "properties": [\n {\n "sharedEntityKey": "ExecutionControl",\n "placeholderKeys_RSRC": {\n "mainText_RSRC": [\n "CHECK_BOX_LOWER",\n "VALUE_CHANGES"\n ]\n }\n }\n ]\n }\n}'},function(e,t,i){var n,o;n=[i(215),i(203),i(223),i(308),i(208),i(948)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t([n],{postCreate:function(){this._singleClickCallback=this._handleClick.bind(this),this._doubleClickCallback=this._handleDoubleClick.bind(this),this._eventCallback=r.createCallback(this._singleClickCallback,this._doubleClickCallback,300).bind(this),this.inherited(arguments),this.domNode.addEventListener("click",this._eventCallback,!0),this.own(o.after(this,"_onClick",this._handledCheckedState.bind(this)))},_handleClick:function(){this.domNode&&!this._stateToggled?(this._onClick(),this._stateToggled=!1):this._stateToggled=!1},_handleDoubleClick:function(e){this.emit("doubleclick",{}),e.stopPropagation()},_handledCheckedState:function(){this._stateToggled=!0},destroy:function(){this.domNode.removeEventListener("click",this._eventCallback,!0),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1141)],o=i.dj.d(n,(function(e,t){return e(t,{_filterLogicalVariables:function(e){if(this._isVariableOfType(e,"logical")&&!this._isVariableDetailSummary(e)){let t=this._getVariableSizeDimensions(e),i=t.row,n=t.col;return 1===i&&1===n}return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(474),i(501)],o=i.dj.d(n,(function(e,t,i){const n=["true","false","0","1"];return e.mixin(i,t,{getValidBooleanValue:function(e){return-1!==n.indexOf(e)?"true"===e||"1"===e:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5238)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.view.decoration.viewmodel","rtc.livecontrols.decorator","rtc.view.hidden.hiddennodemodel","rtc.livecontrols.sizer","rtc.livecontrols.widgetstate"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1469),i(834),i(5239)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{getApplicableNodeClass:function(){return t},getWidgetClass:function(){return n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(626),i(223),i(5240),i(946),i(5241),i(1475),i(5242),i(1474),i(1140),i(948),i(2087),i(2086),i(550)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){const g=t([r,s,l,c],{liveControlClass:"mwLiveControlEditField",type:"EditField",text:i.EDIT_FIELD_CAP,value:"",allWorkspaceVariables:[],constructor:function(){this.childWidget=new a({value:""}),this.childWidget.set("height",20),this.childWidget.set("width",146),this._widgetPropertyData=JSON.parse(o),this._userEnteredPropertyData={}},_setDataAttr:function(e){e.valueType&&this.set("valueType",e.valueType),this.inherited(arguments)},_setValueAttr:function(e){this.get("valueType")||this._findAndSetValueType(e),e=h.getFormattedValue(e,this.get("valueType")),this._updateErrorState()&&(this.setTooltipLabelToValue(e),e=this._modifyEmptyValue(e),this._set("value",e),this._setDisplayValue(e),this._updateDefaultState())},_setValueTypeAttr:function(e){e=h.isValidValueType(e)?e:h.getDefaultValueType(),this._setPlaceholderText(e);var t=this.get("valueType");this._set("valueType",e);let i=this.get("value");e!==t&&(this._updateDefaultForNewDataType(e),i=h.modifyValueForValueType(i,e)),this._isValueInvalid()?this._updateValueAndEditFieldContents(" "):this._isInDefaultState||this.set("value",i)},_updateDefaultForNewDataType:function(e){this._updateFilteredWorkspaceVariables();let t=this.get(this._DEFAULT_PROPERTY);if(!t)return;let i=d.removeSurroundingQuotes(t),n=this.get("defaultValueLinkedVariable"),o=!this._isDefaultLinkedVariableChoice(n);if(this._isValueInvalidForDataType(i,e)){let e=" ";return o&&(this._userEnteredPropertyData[this._DEFAULT_PROPERTY]=e),void this.set(this._DEFAULT_PROPERTY,e)}if(o)this._handleWorkspaceVariableUpdate();else{let i=h.modifyValueForValueType(t,e);i=this._modifyEmptyValue(i),this._handleDefaultValueChange(i)}},_setDisplayValue:function(e){var t=this.get("valueType"),i=h.getFormattedValueForDisplay(e,t);i=h.isValueEqualToWhitespace(this.get("value"))?"":i,this.childWidget.set("value",i),this._prepareAndEmitIntermediateValueChangeEvent()},postCreate:function(){this.inherited(arguments),this.childWidget.watch("value",this._updateValue.bind(this)),this._filteringCallback=this._filterVariablesForDataType.bind(this),this._singleClickCallback=this._handleInputNodeSingleClick.bind(this),this._doubleClickCallback=this._handleInputNodeDoubleClick.bind(this),this._mousedownEventCallback=u.createCallback(this._singleClickCallback,this._doubleClickCallback,250).bind(this),this._eventHandlers.push(f.setEventListener(this.childWidget.focusNode,"mousedown",this._mousedownEventCallback.bind(this),!0)),this._eventHandlers.push(f.setEventListener(this.domNode,"dblclick",this._handleDoubleClickOutsideInputNode.bind(this))),this._eventHandlers.push(f.setEventListener(this.domNode,"click",this._handleClick.bind(this),!0)),this._eventHandlers.push(f.setEventListener(this.childWidget.focusNode,"blur",this._handleBlur.bind(this)))},handleChange:function(e){this.inherited(arguments),this.get("editMode")||this.emitRestoreFocusEvent()},_updateFilteredWorkspaceVariables:function(){let e=this.get("allWorkspaceVariables");if(0!==Object.keys(e).length){let t=this._getFilteredWorkspaceVariables(e);this._set("workspaceVariables",t)}},_setWorkspaceVariablesAttr:function(e){this.set("allWorkspaceVariables",e),this.inherited(arguments)},_getValidCustomValue:function(e){let t=this.get("valueType");return e=h.getFormattedValue(e,t),this._isValueInvalidForDataType(e,t)&&" "!==e?null:e},_formatDefaultValueForDataType:function(e){return"number"==typeof e&&(e=e.toString()),e=h.getFormattedValue(e,this.get("valueType"))},_updateDefaultAfterPropertyChanges:function(e,t){let i=this._formatDefaultValueForDataType(e);this.inherited(arguments,[i,t])},_updateDefaultAfterWorkspaceVariableUpdate:function(e){let t=this._formatDefaultValueForDataType(e);this.inherited(arguments,[t])},_handleTyping:function(){this.setTooltipState("DORMANT"),this._updateErrorState(),this._prepareAndEmitIntermediateValueChangeEvent()},_prepareAndEmitIntermediateValueChangeEvent:function(){if(!this._isValueInvalid()){var e=this.childWidget.focusNode.value,t=this._getIntermediateControlValuesAfterTypingEvent(this._previousInputValue,e);this._emitIntermediateValueChangeEvent(t.oldValue,t.newValue),this._previousInputValue=e}},_getIntermediateControlValuesAfterTypingEvent:function(e,t){return{oldValue:this._getFormattedControlValueFromChildWidgetText(e),newValue:this._getFormattedControlValueFromChildWidgetText(t)}},_getFormattedControlValueFromChildWidgetText:function(e){return e=e||"",e=h.getFormattedValue(e,this.get("valueType")),this._modifyEmptyValue(e)},_emitIntermediateValueChangeEvent:function(e,t){e!==t&&this.emit("intermediatevaluechange",{mwEventData:{oldValue:e,newValue:t}})},_findAndSetValueType:function(e){var t=h.determineValueType(e)||h.getDefaultValueType();this.set("valueType",t)},_updateErrorState:function(){return this._isValueInvalid()?(h.displayErrorForDoubleType(this.childWidget),!1):(h.removeError(this.childWidget),!0)},_isValueInvalid:function(){if(!this.childWidget.inputNode)return!1;var e=this.childWidget.inputNode.value,t=this.get("valueType");return this._isValueInvalidForDataType(e,t)},_isValueInvalidForDataType:function(e,t){return e&&h.isDoubleValueType(t)&&!h.isScalarValue(e)},_setPlaceholderText:function(e){var t=h.getPlaceholder(e);this.childWidget.set("placeholder",t)},_updateValue:function(e,t,i){i=h.getFormattedValue(i,this.get("valueType")),this._updateErrorState()&&(i=this._modifyEmptyValue(i),this._set("value",i))},_modifyEmptyValue:function(e){return""===e?" ":e},_handleClick:function(e){var t=this.childWidget.focusNode;this._widgetContainer.contains(e.target)&&document.activeElement!==t&&t.focus(),h.getReadOnlyAttribute(t)&&h.setReadOnlyAttribute(t,!1)},_handleInputNodeSingleClick:function(){this._widgetFocused=!0},_handleInputNodeDoubleClick:function(e){if(!this._widgetFocused){var t=e.target,i=window.getComputedStyle(t),n=i.fontFamily,o=i.fontSize,r=this.get("characterWidthService").getNumericCharacterWidthForFontFamilyAndSize(n,o);e.clientX>t.getBoundingClientRect().x+t.value.length*r&&(e.preventDefault(),this.get("editMode")||this._enterEditModeOnDoubleClick())}},_handleDoubleClickOutsideInputNode:function(e){this.childWidget.domNode.contains(e.target)||this.get("editMode")||this._enterEditModeOnDoubleClick()},_handleChildWidgetBlur:function(){this.inherited(arguments),this._widgetFocused=!1},_handleBlur:function(){if(this._isValueInvalid()){h.removeError(this.childWidget);var e=this.get("value");this._updateValueAndEditFieldContents(e)}},_updateValueAndEditFieldContents:function(e){this._set("value",e),this._setDisplayValue(e)},navigate:function(e){var t=e.keyCode,i=!1,o=this.childWidget.focusNode;switch(t){case n.BACKSPACE:case n.DELETE:case n.TAB:h.setReadOnlyAttribute(o,!0),this.focus(),i=!0;break;case n.LEFT_ARROW:this.focus();var r=o.value.length;o.setSelectionRange(r,r),i=!0;break;case n.RIGHT_ARROW:this.focus(),o.setSelectionRange(0,0),i=!0}return i},handleKeyDown:function(e){var t=e.keyCode,i=document.activeElement,o=this.childWidget.focusNode,r=o.value.length;this.enableCommitInEditMode();var a=!1;switch(t){case n.LEFT_ARROW:if(e.shiftKey)return;0===i.selectionStart&&this.emitKeyOnWidgetsEvent(e),a=!0;break;case n.RIGHT_ARROW:if(e.shiftKey)return;i.selectionStart===r&&this.emitKeyOnWidgetsEvent(e),a=!0;break;case n.BACKSPACE:case n.DELETE:i===o&&h.getReadOnlyAttribute(o)&&(e.preventDefault(),this.emitKeyOnWidgetsEvent(e)),a=!0}a||(a=p.isHandledByTextField(e)),h.setReadOnlyAttribute(o,!1),a?this._logKeyEvents(e):this.inherited(arguments)},handleKeyUp:function(){this.inherited(arguments),this._handleTyping()},shouldShowTooltip:function(){return" "!==this.value&&!this.domNode.contains(document.activeElement)&&!h.hasErrorState(this.childWidget)}});return g.BASE_CLASS=r.BASE_CLASS,g.LIVE_CONTROL_CLASS="mwLiveControlEditField",g}),e,t),e.exports=o},function(e,t){e.exports='{\n "Label": {\n "sharedEntityKey": "Label",\n "placeholderKeys_RSRC": {\n "mainText_RSRC": [\n "EDIT_FIELD_CAP"\n ]\n }\n },\n "Type": {\n "header_RSRC": "TYPE_UPPER",\n "properties": [\n {\n "controlPropertyName": "valueType",\n "displayName_RSRC": "DATA_TYPE",\n "editor": "ComboBox",\n "value_RSRC": [\n "STRING",\n "CHAR",\n "DOUBLE",\n "MATLAB_CODE"\n ],\n "tooltip": {\n "mainText_RSRC": "DATA_TYPE_TOOLTIP"\n }\n }\n ]\n },\n "Defaults": {\n "header_RSRC": "DEFAULT_UPPER",\n "subHeader_RSRC": "DEFAULTS_SUB_HEADER",\n "properties": [\n {\n "sharedEntityKey": "Defaults",\n "editor": "WorkspaceDropdown",\n "placeholderItem": "",\n "placeholderKeys_RSRC": {\n "displayName_RSRC": [\n "VALUE_LOWER"\n ],\n "mainText_RSRC": [\n "EDIT_FIELD_LOWER"\n ]\n }\n }\n ]\n },\n "ExecutionControl": {\n "header_RSRC": "EXECUTION_UPPER",\n "properties": [\n {\n "sharedEntityKey": "ExecutionControl",\n "placeholderKeys_RSRC": {\n "mainText_RSRC": [\n "EDIT_FIELD_LOWER",\n "VALUE_CHANGES"\n ]\n }\n }\n ]\n }\n}'},function(e,t,i){var n,o;n=[i(215),i(203),i(258),i(889)],o=i.dj.d(n,(function(e,t,i,n){return t([i],{postCreate:function(){this.inherited(arguments),this._handleRightClickCallback=this._handleRightClick.bind(this),this.domNode.addEventListener("contextmenu",this._handleRightClickCallback,!0),this._rightClicked=!1},_handleRightClick:function(){this._rightClicked=!0},_onBlur:function(){var e=this.inputNode.value,t=this.get("value"),i=this.getParent(),o=i.get("validationState"),r=i.valuePrecision;if(null!=i&&void 0!==o&&null!=o&&"normal"===o&&void 0!==r&&null!=r){var a=n.convertValueToNumber(e).toFixed(r),s=n.convertValueToNumber(t).toFixed(r);i.get("editable")&&a!==s&&this._setValueAndTriggerChangeEvent(t,e)}else this._setValueAndTriggerChangeEvent(t,e);this._rightClicked=!1,this.inherited(arguments)},_setValueAndTriggerChangeEvent:function(e,t){this._set("value",t);const i=this.get("value");e!==i&&!this._rightClicked&&document.contains(this.domNode)&&this._triggerChangeEvent("value",e,i)},destroy:function(){this.domNode.removeEventListener("contextmenu",this._handleRightClickCallback,!0),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1141),i(947),i(2087)],o=i.dj.d(n,(function(e,t,i,n){const o={String:"string",Char:"char",Double:"double"};return e(t,{_filterVariablesForDataType:function(e){let t=o[this.get("valueType")];if(t&&this._isVariableOfType(e,t)&&!this._isVariableDetailSummary(e)&&!this._isVariableValueNaN(e)){let i=this._getVariableSizeDimensions(e),n=i.row,o=i.col;return 1===n&&(1===o||"char"===t)}return!1},_getIndividualPropertyContent:function(e){let t,i=this.get(e);return e===this._DEFAULT_PROPERTY&&(t=this.get("defaultValueLinkedVariable"),i=t||i,i=n.getFormattedValueForDisplay(i,this.get("valueType"))),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5244)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.view.decoration.viewmodel","rtc.livecontrols.decorator","rtc.view.hidden.hiddennodemodel","rtc.livecontrols.sizer","rtc.livecontrols.widgetstate"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1466),i(834),i(5245)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{getApplicableNodeClass:function(){return t},getWidgetClass:function(){return n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(626),i(223),i(5246),i(243),i(946),i(1472),i(1475),i(948),i(501),i(550)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=t([a,l],{liveControlClass:"mwLiveControlButton",type:"Button",text:i.RUN_CAP,constructor:function(){this.childWidget=new r,this.childWidget.set("height",20),this.childWidget.set("width","auto"),this._widgetPropertyData=JSON.parse(o),this._hasLabel=!1},_setTextAttr:function(e){this.childWidget.set("width","auto"),this.childWidget.set("text",e),this._set("text",e)},_setExecutionModelAttr:function(e){this.inherited(arguments),this._setTooltipText()},postCreate:function(){this.inherited(arguments),this.set("value"," "),this._setTooltipText(),this._clickCallback=c.createCallback(this._handleClick.bind(this),this._handleDoubleClick.bind(this),220),this._eventHandlers.push(u.setEventListener(this.domNode,"click",this._clickCallback.bind(this)))},_handleClick:function(){this.get("editMode")||(this.emit("clicked"),this.emitRestoreFocusEvent())},_handleDoubleClick:function(){this.get("editMode")||this._enterEditModeOnDoubleClick()},_setTooltipText:function(){var e=this._getTextForTooltip();this.setTooltipLabelToValue(e)},_getTextForTooltip:function(){var e=this.get("executionModel"),t=d.getDisplayStringForPropertyValue(e);return i.RUN_CAP+" "+t},isResettable:function(){return!1}});return h.BASE_CLASS=a.BASE_CLASS,h.LIVE_CONTROL_CLASS="mwLiveControlButton",h}),e,t),e.exports=o},function(e,t){e.exports='{\n "Label": {\n "sharedEntityKey": "Label",\n "placeholderKeys_RSRC": {\n "mainText_RSRC": [\n "BUTTON_CAP"\n ]\n }\n },\n "ExecutionControl": {\n "header_RSRC": "EXECUTION_UPPER",\n "properties": [\n {\n "sharedEntityKey": "ExecutionControl",\n "placeholderKeys_RSRC": {\n "mainText_RSRC": [\n "BUTTON_LOWER",\n "CLICKED"\n ]\n }\n }\n ]\n }\n}'},function(e,t,i){var n,o;n=[i(203),i(205),i(5248)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.view.hide.code.stateholder"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(414),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t){this._liveControlViewModel=e,this._allCodeHiddenStateHolder=t},updateWidgetDisplay:function(e){var i=this._liveControlViewModel.getNodeWidget(e),n=i.getElementsDisplayToToggle(),o=this._allCodeHiddenStateHolder.getHiddenState(),r=t.getEditMode(i);this._toggleAdditionalElementsState(n,o,r)},_toggleAdditionalElementsState:function(e,t,i){e.forEach(function(e){var n=e.element,o=!1;e.isEmpty||(o=this._getElementDisplayBasedOnView(t,e),i&&e.hasOwnProperty("visibleInEditMode")&&(o=this._getElementDisplayBasedOnEditMode(e))),n.style.display=o?"block":"none"}.bind(this))},_getElementDisplayBasedOnView:function(e,t){var i=t.visibleInHideCodeView;return e?i:!i},_getElementDisplayBasedOnEditMode:function(e){return e.visibleInEditMode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5250)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.view.viewmeasurementservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(203),i(207),i(208),i(414)],o=i.dj.d(n,(function(e,t,i,n,o){return t(i,{constructor:function(e,t){this._liveControlViewModel=e,this._viewMeasurementService=t,this.own(n.after(e,"onWidgetCreated",this._handleWidgetCreated.bind(this),!0))},resize:function(e){var t=this._liveControlViewModel.getNodeWidget(e);this._updateControlSize(t)},_updateControlSize:function(t){var i=t.domNode.getBoundingClientRect().width;if(0!==i){var n=this._viewMeasurementService.getNextMultipleOfNumericCharacterWidth(i),r=o.isLabelDisplayed(t),a=this._getResizableControlElement(t,r),s=n-i+a.getBoundingClientRect().width;e.getEnclosingWidget(a).set("width",s)}},_getResizableControlElement:function(e,t){return t?e.getResizableLabelElement():e.getResizableWidgetElement()},_handleWidgetCreated:function(e){var t=this._liveControlViewModel.getNodeWidget(e);o.setCharacterWidthService(t,this._viewMeasurementService)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5252)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.backingstore"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(2068),i(474)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t){this._internalDocument=e,"function"==typeof t.onSaveCompleted&&i.after(t,"onSaveCompleted",this._handleSave.bind(this)),this._liveControlCounts={}},_handleSave:function(){this._liveControlCounts={},o.getLiveControlNodesInDocument(this._internalDocument).forEach((function(e){var t=e.context.type;this._liveControlCounts.hasOwnProperty(t)||(this._liveControlCounts[t]=0),this._liveControlCounts[t]+=1}),this)},getComponents:function(){return this._liveControlCounts}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5254)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(805),i(1115),i(501)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};r.Slider={[t.LEFT_ARROW]:"navigate_left",[t.RIGHT_ARROW]:"navigate_right",[t.HOME]:"navigate_begin",[t.END]:"navigate_end"},r.ComboBox={[t.ENTER]:"commit_value",[t.UP_ARROW]:"navigate_up",[t.DOWN_ARROW]:"navigate_down"},r.EditField={[t.ENTER]:"commit_value",[t.LEFT_ARROW]:"navigate_left",[t.RIGHT_ARROW]:"navigate_right"},r.CheckBox={[t.SPACE]:"toggle_state"},r.Button={[t.SPACE]:"push"};var a=["executionModel","executionOn","valueType"],s={",":"comma",";":"semicolon"," ":"space"};return e(i,{constructor:function(){},onLogEvent:function(e){},logDDUXForDoubleClickConfigMode:function(e){this._logLiveControlDDUXAction(n.CONFIGURE_CONTROL,"mouse",e)},logDDUXForKeyEvents:function(e,t){if(!o.hasModifier(e)){var i=e.keyCode,n=r[t];n.hasOwnProperty(i)&&this._logLiveControlDDUXAction("live_control_"+n[i],"keyboard",t)}},logDDUXForPropertyChange:function(e,t){var i,n=e.propertyName;-1!==a.indexOf(n)&&(i=e.newValue);var o=i||n;this._logLiveControlDDUXAction("live_control_property_changed_"+o,"mouse",t)},logDDUXForControlPasted:function(e){this._logLiveControlDDUXAction("live_control_pasted","dependent",e)},logDDUXForSelectedInsertion:function(e,t){t&&(e+="_for_selected_code"),this._logLiveControlDDUXAction(e,"javaToolstrip")},logDDUXForSliderValueConfigured:function(e){this._logLiveControlDDUXAction("live_control_slider_value_configured","keyboard",e)},logConfigPanelWarningDisplayed:function(e,t){var i=e.propertyEditor,n="live_control_typed_"+e.warningType+"_warning_for_"+i;this._logLiveControlDDUXAction(n,"keyboard",t)},logDropdownDelimitedListPasted:function(e,t){var i=e.propertyEditor,n="live_control_dropdown_pasted_"+s[e.delimiter]+"_delimited_list_for_"+i;this._logLiveControlDDUXAction(n,"keyboard",t)},_logLiveControlDDUXAction:function(e,t,i){var n={actionId:e,gesture:t||"",gestureSubType:i||""};this.onLogEvent(n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5256)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(323),i(424),i(390),i(425)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{_compatibleParents:[t],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return o},getTopLevelInsertionInstruction:function(e,i,o,r,a){return e.isAtLeftEdge()?{insertInRoot:{relationToPosition:n.RELATION.BEFORE,containerConstructor:t}}:e.isAtRightEdge()?{insertInRoot:{relationToPosition:n.RELATION.AFTER,containerConstructor:t}}:{insertInRoot:{insertionPosition:a,containerConstructor:t}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5258)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(319),i(574),i(300)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{write:function(e){var t=document.createElement(this.getXMLType()),n=o.createXMLElement(i.RUN_OF_TEXT_TAG_NAME);return t.appendChild(n),t.childNodes[0]},getXMLType:function(){return"livecontrol"},getNodeType:function(){return"LiveControlNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5260)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(300),i(319),i(574)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_INTRODUCED_VERSION:"R2018a",write:function(e){var n=document.createElement(this.getXMLType()),o=t.createCustomXMLTag(this.getXMLType()),r=t.createXMLElement(i.CUSTOM_XML_PROPERTY);r=this._writeAttributes(r,e),o.appendChild(r);var a=t.createAlternateContentXMLElementNS(i.MCNAMESPACE_TAG,i.ALTERNATECONTENT_TAG),s=t.createAlternateContentXMLElementNS(i.MCNAMESPACE_TAG,i.CHOICE_TAG),l=t.createAlternateContentXMLElementNS(i.MCNAMESPACE_TAG,i.FALLBACK_TAG),c=i.REQUIRES_ATTRIBUTE_NAME;return s.setAttribute(c,e.introducedRelease),s.appendChild(o),a.appendChild(s),a.appendChild(l),n.appendChild(a),n.childNodes[0]},_writeAttributes:function(e,t){return e=this._writeAttribute(e,i.LIVE_CONTROL_CONTEXT_ATTRIBUTE_NAME,JSON.stringify(t.context)),e=this._writeAttribute(e,i.LIVE_CONTROL_TEXT_ATTRIBUTE_NAME,t.text),e=this._writeAttribute(e,i.LIVE_CONTROL_START_OFFSET_LINE_ATTRIBUTE_NAME,t.startOffsetLine),e=this._writeAttribute(e,i.LIVE_CONTROL_START_COLUMN_ATTRIBUTE_NAME,t.startColumn),e=this._writeAttribute(e,i.LIVE_CONTROL_END_OFFSET_LINE_ATTRIBUTE_NAME,t.endOffsetLine),e=this._writeAttribute(e,i.LIVE_CONTROL_END_COLUMN_ATTRIBUTE_NAME,t.endColumn)},_writeAttribute:function(e,i,n){var o=t.createCustomXMLAttribute(i,n);return e.appendChild(o),e},read:function(e,t,n){for(var o={className:this.getNodeType()},r=e.getElementsByTagNameNS(i.NAMESPACE_URL,i.CUSTOM_XML_PROPERTY)[0].getElementsByTagNameNS(i.NAMESPACE_URL,i.CUSTOM_XML_ATTRIBUTE),a=0;a<r.length;a++){var s=r[a].getAttributeNS(i.NAMESPACE_URL,i.NAME_TAG);o[s]=r[a].getAttributeNS(i.NAMESPACE_URL,i.CUSTOM_XML_VALUE_TAG),"context"===s&&(o[s]=JSON.parse(o[s]))}return this._modifyLastPlainTextNode(n,o)},_modifyLastPlainTextNode:function(e,t){for(var i=t.startOffsetLine,n=e[i].children,o=n.length,r=n[o-1].text,a="",s=0;s<o-1;s++)a+=n[s].text;e[i].children.splice(-1,1);var l=a.length,c=t.startColumn-l,d=t.endColumn-l,u=r.substring(0,c),h=r.substring(d,r.length);return(e=this._appendPlainTextNodeIfValid(u,e,i))[i].children.push(t),this._appendPlainTextNodeIfValid(h,e,i)},_appendPlainTextNodeIfValid:function(e,t,i){if(e){var n={text:e,className:"PlainTextNode"};t[i].children.push(n)}return t},getXMLType:function(){return"livecontrol"},getNodeType:function(){return"LiveControlNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5262)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hide.code.stateholder"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5263)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._allCodeHiddenStateHolder=e},preventDisabling:function(){return this._allCodeHiddenStateHolder.getHiddenState()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{preventDisabling:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(5265)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.livecontrols.widgetchangehandler"]}},createInstance:function(e){return new n(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(805),i(371),i(816)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};return r[o.CURRENT_SECTION]=n.RUN_SECTION,r[o.CURRENT_SECTION_TO_END]=n.RUN_SECTION_END,r[o.CURRENT_SECTION_AND_STALE_SECTIONS_ABOVE]=n.RUN_SECTION_AND_PRIOR_STALE,r[o.ALL]=n.RUN_ALL,e(i,{EXECUTION_ORIGIN:"LiveControl",constructor:function(e){this._liveControlWidgetChangeHandler=e,this.own(t.after(this._liveControlWidgetChangeHandler,"onNonIntermediateExecute",this._onNonIntermediateExecuteLiveControl.bind(this),!0))},_onNonIntermediateExecuteLiveControl:function(e,t){var i={actionId:this._getExecutionActionFromExecutionModel(t),gesture:this.EXECUTION_ORIGIN,gestureSubType:e.type||""};this.onLogEvent(i)},_getExecutionActionFromExecutionModel:function(e){return r[e]||"UnknownExecutionAction"},onLogEvent:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5267),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.view","rtc.cursor","rtc.cursor.navigator","rtc.cursor.view","rtc.actionservice"]}},createInstance:function(e,i,n,o,r,a,s){return new t(e,i,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(248),i(209),i(207),i(208),i(249),i(260),i(237),i(403),i(274),i(379),i(732),i(416),i(835),i(251),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e(r,{constructor:function(e,o,r,s,l,c,d){this._document=e,this._internalDocument=o,this._view=r,this._cursor=s,this._cursorNavigator=l,this._actionService=d;var u=[{name:p.MATLAB,method:t.hitch(this,this.formatTemplate,p.MATLAB)},{name:p.PLAIN,method:t.hitch(this,this.formatTemplate,p.PLAIN)}];o.registerFormatTemplates(u),this.own(a.after(c,"onChange",t.hitch(this,"_updateView"))),this.own(a.after(this._cursor,"onChange",t.hitch(this,this._updateActions))),this.own(a.after(this._cursor,"onChange",t.hitch(this,this._fixPartialSelection))),this.own(i(r.getDomtarget(),n.press,t.hitch(this,(function(){this._mousePressed=!0})))),this.own(i(r.getDomtarget(),n.release,t.hitch(this,(function(){this._mousePressed=!1})))),d.loadActions(this._actions())},formatTemplate:function(e){var t={};return t.container=new f([],{type:e}),t.textContainer=new g([]),t.container.addChild(t.textContainer,0),t},_actions:function(){return[{id:m.CODE_EXAMPLE.DEFAULT_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,"_insertDefaultCallback")},{id:m.CODE_EXAMPLE.MATLAB_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,"_insertMatlabCallback")},{id:m.CODE_EXAMPLE.PLAIN_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,"_insertPlainCallback")}]},_insertDefaultCallback:function(){return!!this._actionService.getAction(m.CODE_EXAMPLE.DEFAULT_ACTION).enabled&&this._insertCodeExample(p.MATLAB)},_insertMatlabCallback:function(){return!!this._actionService.getAction(m.CODE_EXAMPLE.MATLAB_ACTION).enabled&&this._insertCodeExample(p.MATLAB)},_insertPlainCallback:function(){return!!this._actionService.getAction(m.CODE_EXAMPLE.PLAIN_ACTION).enabled&&this._insertCodeExample(p.PLAIN)},_updateActions:function(){var e=this._getParagraphFormat();this._actionService.updateAction(m.CODE_EXAMPLE.DEFAULT_ACTION,{enabled:this._canSetFormat(),selected:e===p.MATLAB}),this._actionService.updateAction(m.CODE_EXAMPLE.MATLAB_ACTION,{enabled:this._canSetFormat(),selected:e===p.MATLAB}),this._actionService.updateAction(m.CODE_EXAMPLE.PLAIN_ACTION,{enabled:this._canSetFormat(),selected:e===p.PLAIN})},_treatSelection:function(){var e;return this._cursor.hasSelection()&&(e=this._cursor.selectedText(),this._document.deleteTextAtCurrentPosition(s.BACKWARD_DELETE)),e},_insertEmptyCodeExample:function(e){var t=this._cursor.position;this._cursor.hasSelection()&&o.assert("_insertEmptyCodeExample: Selection must be empty!");var i=this._internalDocument.createContainerForType(e),n=i.container,r=i.textContainer,a=this._internalDocument.createNode(r.getDefaultChild());r.addChild(a);var s=this._internalDocument.insertAtPosition(n,t);return this._cursor.setPosition(a.startPosition()),this._cursor.onUpdate(!1,!0),s.events},_insertCodeExample:function(e){var t=this._getParagraphFormat();if(!this._canSetFormat())return!1;if(t===e)return!1;var i=this._cursor.isReversed(),n=this._cursor.selectionInfo();n.startPosition.getLineColumn().line,n.endPosition.getLineColumn().line;this._internalDocument.onPreDocumentChanged();var o=this._document.startBlockEdit(),r=this._treatSelection(),a=this._insertEmptyCodeExample(e);if(r){var s=c.textToContent(r,this._cursor.getNode());this._document.insertContent(s,this._cursor.position,this._cursor)}if(!n.isNull){var d=this._cursor.getNode().rootContainer(),u=d.startPosition().getLineColumn(),h=d.endPosition().getLineColumn();i?this._cursor.setSelectionLineColumn(h.line,h.column,u.line,u.column):this._cursor.setSelectionLineColumn(u.line,u.column,h.line,h.column)}return o.appendRedoEvents(a),o.appendUndoEvents(l.translateEventsForUndo(a)),this._internalDocument.emitDocumentEvents(a),this._document.endBlockEdit(o),this._cursor.onUpdate(!1,!0),!0},_updateView:function(){var e=this._cursor.getSelectionStartContainer();this._prevActiveContainer!==e&&(this._blur(this._prevActiveContainer),this._focus(e),this._prevActiveContainer=e)},_focus:function(e){e instanceof f&&(e.focus(),this._view.applyClassToLine(this._internalDocument.getLineNumber(e),e.getFocusedCssClass()))},_blur:function(e){e instanceof f&&(e.blur(),this._view.removeClassFromLine(this._internalDocument.getLineNumber(e),e.getFocusedCssClass()))},_fixPartialSelection:function(){if(this._cursor.hasSelection()){var e=this._cursor.getNode().rootContainer(),t=this._cursor.anchor.getNode().rootContainer(),i=this._cursor.isReversed(),n=this._lastPosition?this._comparePositions(this._cursor.getPosition(),this._lastPosition):0,o=!!(i&&n<0||!i&&n>0);if(e===t||e.isInstanceOf(f)&&h.isInFullSelection(this._cursor,this._internalDocument,e)||!e.isInstanceOf(f)&&!t.isInstanceOf(f))return;this._cursor.suspendChangeEvent(),e.isInstanceOf(f)&&this._selectionEnterCodeExampleBlock(e,i,o),t.isInstanceOf(f)&&this._selectionExitCodeExampleBlock(t,i),this._cursor.activateChangeEvent(!0)}this._mousePressed||(this._lastPosition=this._cursor.getPosition())},_selectionEnterCodeExampleBlock:function(e,t,i){if(t)if(i)this._cursor.setPosition(e,0,!0);else{var n=(r=_.getVisibleRootContainerBelow(e,this._view))?r.startNode():e;this._cursor.setPosition(n,0,!0)}else{var o=this._cursor.anchor.getNode().textContainer();if(!this._detectTrippleClick(o,e))if(i){n=(r=_.getVisibleRootContainerBelow(e,this._view))?r.startNode():e;var r,a=r?0:e.maxOffset();this._cursor.setPosition(n,a,!0)}else{var s=_.getVisibleRootContainerAbove(e,this._view);n=s?s.endNode():e;this._cursor.setPosition(n,n.maxOffset(),!0)}}},_selectionExitCodeExampleBlock:function(e,t){c.isAtStartOfContainer(this._cursor.anchor,e)||(t?this._selectOutOfContainerFromTop(e,this._cursor,this._cursorNavigator):this._selectOutOfContainerFromBottom(e,this._cursor))},_comparePositions:function(e,t){return e.line===t.line?e.column-t.column:e.line-t.line},_detectTrippleClick:function(e,t){return c.isAtStartOfContainer(this._cursor.anchor,e)&&t.isInstanceOf(f)&&c.isAtStartOfContainer(this._cursor.position,t)},_selectIntoContainerFromBottom:function(e,t){t.fixAnchor(),t.setPosition(e.startNode(),0,!0)},_selectIntoContainerFromTop:function(e,t){t.isFileEndSelected()||(t.fixAnchor(),t.setPosition(e,e.maxOffset(),!0))},_selectOutOfContainerFromBottom:function(e,t){t.anchor.setPosition(e.startNode(),0)},_selectOutOfContainerFromTop:function(e,t,i){if(!t.isFileEndSelected()){var n=i.moveRight(e.endPosition());n&&n.node?t.anchor.setPosition(n.node,0):t.anchor.setPosition(e.endNode(),e.endNode().maxOffset())}},_getParagraphFormat:function(){if(!this._cursor)return"none";var e=this._cursor.getSelectionStartNode(),t=this._cursor.getSelectionEndNode();return u.getParagraphFormat({startNode:e,endNode:t})},_canSetFormat:function(){return!this._isReadOnly()&&!this._isCodeExample()},_isReadOnly:function(){return!(!this._internalDocument||!this._internalDocument.isReadOnly())||!(!this._cursor||!this._cursor.isCursorReadOnly())},_isCodeExample:function(){var e=this._getParagraphFormat();for(var t in p)if(p.hasOwnProperty(t)&&p[t]===e)return!0;return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5269)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(910),i(416),i(835)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{_CONTAINER_ELEMENT_TYPE:"div",_MAX_PREVIEW_LINES:5,_TEXT_ELEMENT_TYPE:"span",constructor:function(e){this._internalDocument=e},createPreview:function(e,t,i){return e.isRootContainer()&&e.isInstanceOf(n)?this._createPlainTextPreview(e,t,i):null},_createPlainTextPreview:function(e,i,n){var r=document.createElement(this._CONTAINER_ELEMENT_TYPE),a=t.getComputedStyle(n.getBox(e));r.style.fontFamily=a.fontFamily,r.style.whiteSpace=a.whiteSpace;for(var s=e.firstChild(),l=1;s&&s.isInstanceOf(o);){var c=n.getBox(s).cloneNode(!0);if(c.innerText||(c.innerText=" "),r.appendChild(c),l++,(s=s.nextSibling())&&this._MAX_PREVIEW_LINES<l){var d=document.createElement(this._TEXT_ELEMENT_TYPE);d.innerText=n.MORE,r.appendChild(d);break}}return{node:r,usedSize:i}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5271)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(416)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5273)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(416),i(391)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return t},layout:function(e,t){var i=t.isFocused()?" "+t.getFocusedCssClass():"",n={class:"CodeExampleBlock "+t.type+i};return e.layoutInto(t,"div",n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5275)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(416),i(1143)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5277)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(323),i(416),i(424),i(390)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{_compatibleParents:[],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return i},getTopLevelInsertionInstruction:function(e,i,n,r,a){return e.isAtRightEdge()&&e.isAtLeftEdge()?{insertInRoot:{relationToPosition:o.RELATION.AT}}:a.isAtRightEdge()&&!n?{insertInRoot:{relationToPosition:o.RELATION.AFTER,insertSibling:!0,siblingConstructor:t}}:{insertInRoot:{insertionPosition:a}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5279)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(835)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5281)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(835),i(391)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return t},layout:function(e,t){return e.layoutInto(t,"div",{class:"CodeExampleLine"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5283)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(389),i(416),i(835),i(424),i(390),i(920)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([o],{_compatibleParents:[i],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return n},getReceivingInstruction:function(e,i){return i instanceof t?this.inherited(arguments):new a},getTopLevelInsertionInstruction:function(e,t,n,o,a){return{insertInRoot:{relationToPosition:r.RELATION.AT,containerConstructor:i}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5285)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.view.decoration","language.common.syntaxhighlighter.colors","rtc.viewready","rtc.document.eventcache"]}},createInstance:function(){return new i(...arguments)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(224),i(207),i(249),i(260),i(274),i(266),i(732),i(416),i(1422),i(927)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(n,{constructor:function(e,i,n,o,r){this._internalDocument=e,this._documentEventCache=r,this._decorator=i.createDecorator(),this._syntaxHighlightingColors=n,this._tokenizer=new u,this._previousTouchedCodeExampleContainer=null,this.own(t.after(e,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0)),this.own(t.after(o,"onViewReset",this._handleDocumentReset.bind(this),!0)),this.own(t.after(n,"onColorsUpdated",this._handleDocumentReset.bind(this)))},_handleDocumentChanged:function(e){for(var t=this._documentEventCache.finalLineRangeFromEvents(),i=[],n=t.startLine;n<=t.endLine;n++){var o=this._internalDocument.getLineNode(n);o&&this._isCodeExampleMATLAB(o)&&i.push(o)}i.forEach((function(t){var i=this._getStartLineToRedrawFrom(t,e);this._redrawSyntaxHighlighting(t,i)}),this)},_getStartLineToRedrawFrom:function(e,t){var n=a.getLineNumberForNode(e,this._internalDocument),o=i.filter(t,(function(e){if(e.startLine===n&&e.endLine===n)return e}));return this._getStartLineByEvent(o[0],e)},_getStartLineByEvent:function(e,t){var i=0;if(!e)return 0;switch(e.type){case o.INSERT_TEXT:var n=e.position.node.textContainer();this._isCodeExampleMATLAB(n)?i=0:this._isDescendantOfCodeExampleMatlab(n)&&(i=Math.max(n.getIndexInContainer()-1,0));break;case o.INSERT_BREAK_EVENT:for(var r=0,a=0;a<t.children.length;a++){var s=t.children[a];if((r+=s.getText().length+1)>=e.column){i=s.getIndexInContainer();break}}}return i},_handleDocumentReset:function(){this._updatePreviousTouchedCodeExampleContainer(null),this._tokenizer.initializeLines(""),a.getContainersOfNodeType(c,this._internalDocument).filter(this._isCodeExampleMATLAB,this).forEach((function(e){this._redrawSyntaxHighlighting(e,0)}),this)},_redrawSyntaxHighlighting:function(e,t){this._getPreviousTouchedCodeExampleContainer()!==e&&this._tokenizer.initializeLines(e.getText());var i=e.children.length-1;this._tokenizer.retokenize(e.getText(),t,i);var n=this._tokenizer.getTokenMap(),o=d.processTokens(n,t,i,this._syntaxHighlightingColors);o=this._flattenProcessedTokensRange(o,e);var r=e.children[t].startPosition(),a=e.lastChild().endPosition();this._decorator.clearRange(new s(r,a));for(var l=t;l<=i;l++)this._decorateLines(o[l],e);this._decorator.applyChanges(),this._updatePreviousTouchedCodeExampleContainer(e)},_flattenProcessedTokensRange:function(e,t){return Object.keys(e).forEach((function(i){const n=t.children[i].offsetInContainer(),o=e[i];for(let e=0,t=o.length;e<t;e+=3)o[e]+=n,o[e+1]+=n}),this),e},_isCodeExampleMATLAB:function(e){return e instanceof c&&e.containerType()===l.MATLAB},_isDescendantOfCodeExampleMatlab:function(e){return!!this._isCodeExampleMATLAB(e)||!!e.parent&&this._isDescendantOfCodeExampleMatlab(e.parent)},_decorateLines:function(e,t){var i=a.getLineNumberForNode(t,this._internalDocument);for(let t=0,o=e.length;t<o;t+=3){const o=e[t],r=e[t+1],a=e[t+2];var n=this._internalDocument.getRangeForLineColumn(i+1,o+1,i+1,r+1);this._decorator.setStyle(n,"color",a)}},_updatePreviousTouchedCodeExampleContainer:function(e){this._previousTouchedCodeExampleContainer=e},_getPreviousTouchedCodeExampleContainer:function(){return this._previousTouchedCodeExampleContainer}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5287)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(319),i(521),i(300),i(732)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{_INTRODUCED_VERSION:"R2018a",write:function(e,t){i.assert(t.serializers,"Required argument missed: 'serializers'");var n=document.createElement(this.getNodeType());return e.forEach((function(e){this._writeCodeExample(e,n,t)}),this),n},read:function(e,t,i,n){var o=!0,a={className:this.getNodeType(),children:[]};a.type=this.getXMLType(n);for(var s=0;s<e.childNodes.length;s++){var l=e.childNodes[s],c=i.getSerializer(r.getAttribute(l)).read(l,t,i);a.children=a.children.concat(c.readObject),o=c.readStatus;var d=r.getBookmarkStart(e.parentNode);d&&d.id&&(a.anchorId=d.id)}return{readObject:[a],readStatus:o}},_writeCodeExample:function(e,t,i){var o=r.createXMLElement(n.SDT_TAG);if(!i.skipAlias){var a=r.createSdtAliasPropertyElement(r.createXMLElement(n.SDT_PROPERTY_TAG),this.getXMLType(e.type));o.appendChild(a)}var s=r.createXMLElement(n.SDT_CONTENT_TAG);if(o.appendChild(s),e.anchorId){var l=r.createBookmarkStart(n.BOOKMARK_PREFIX+e.anchorId,e.anchorId);o.appendChild(l)}if(e.children.forEach((function(e){for(var t=i.serializers.getSerializer(e.className).write([e],i).children,n=0;n<t.length;n++){var o=t[n];s.appendChild(o)}}),this),e.anchorId){var c=r.createBookmarkEnd(e.anchorId);o.appendChild(c)}if(i.skipAlternate)t.appendChild(o);else{var d=r.createTextParagraph(""),u=r.createAlternateContent(this._INTRODUCED_VERSION,o,d);t.appendChild(u)}},getXMLType:function(e){if(!e)return"none";for(var t in a)if(a.hasOwnProperty(t)&&a[t]===e)return e;return"none"},getNodeType:function(){return"CodeExampleBlockNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2090)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5290),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.document.changenotifier","rtc.cursorcontroller","rtc.actionservice"]}},createInstance:function(e,i,n,o,r){return new t(e,i,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(249),i(237),i(497),i(403),i(270),i(313),i(379),i(416),i(582)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(n,{_REPLACE_CONTAINER_TYPE:h.NORMAL.FORMAT,_DELETE:"delete",_BACKSPACE:"backspace",constructor:function(e,n,o,r,a){this._document=e,this._internalDocument=n,this._cursorController=r,this._actionService=a,a.loadActions([{id:"codeexampleblock.backspace",key:"backspace",enabled:!0,callback:t.hitch(this,"_performBackspaceOrDeleteSequence",this._BACKSPACE)},{id:"codeexampleblock.delete",key:"delete",enabled:!0,callback:t.hitch(this,"_performBackspaceOrDeleteSequence",this._DELETE)},{id:"codeexampleblock.escape",key:"escape",enabled:!0,callback:t.hitch(this,"_handleEscape")},{id:"codeexampleblock.selectall",enabled:!0,key:"ctrl_a",platformKey:{mac:"meta_a"},callback:t.hitch(this,"_handleSelectAll")}]),this.own(i.after(o,"onPreDeletion",this._handlePreDeletion.bind(this)))},_handlePreDeletion:function(e,t){if(e)return e;var i=t[0],n=t[1],a=n.getNode().rootContainer();return!n.hasSelection()&&!!(i===o.BACKWARD_DELETE&&a.previousSibling()instanceof u&&r.isAtStartOfContainer(n.getCursorPosition(),a))},_performBackspaceOrDeleteSequence:function(e){if(this._internalDocument.isReadOnly()||this._cursorController.hasMultipleCursors())return!1;var t=this._cursorController.getCursors()[0],i=t.getNode().rootContainer();if(t.hasSelection())return!!(i instanceof u&&this._isContainerSelected(i,t))&&(this._replaceWithDefaultTextContainer(i,t),!0);var n=null;if(e===this._BACKSPACE?n=i.previousSibling():e===this._DELETE&&(n=i.nextSibling()),n&&!n.firstChild())return!1;if(e===this._BACKSPACE&&!r.isAtStartOfContainer(t.position,i))return!1;if(e===this._DELETE&&!r.isAtEndOfContainer(t.position,i))return!1;var o=null;if(i instanceof u?o=i:n instanceof u&&(o=n),o){if(o.isEmpty())return this._replaceWithDefaultTextContainer(o,t),!0;var a=this._document.startBlockEdit();return o.nextNode()?d.setContainerSelection(t,this._internalDocument,o):(t.anchor.setPosition(o.startNode(),0),t.setPosition(o.endNode(),o.endNode().maxOffset(),!0)),this._document.endBlockEdit(a),!0}return!1},_isContainerSelected:function(e,t){var i=t.getSelection(),n=r.isAtStartOfContainer(i.getStartPosition(),e),o=e.nextSibling();if(o){if(n&&r.isAtStartOfContainer(i.getEndPosition(),o))return!0}else if(n&&t.isFileEndSelected())return!0;return!1},_replaceWithDefaultTextContainer:function(e,t){var i=this._internalDocument.createContainerForType(this._REPLACE_CONTAINER_TYPE).container,n=this._internalDocument.createNode(i.getDefaultChild());i.addChild(n);var o=this._document.startEdit(),r=new l(e,0),c=this._internalDocument.getLineNumber(e);this._internalDocument.insertAtPosition(i,r),this._internalDocument.deleteNode(e,{node:i,offset:0}),t.releaseAnchor();var d=[a.create(c,c)];o.appendUndoEvents([s.create(c,c,0)]),o.appendRedoEvents(d),this._document.endEdit(),this._internalDocument.emitDocumentEvents(d),t.onUpdate(!1,!0)},_handleEscape:function(){if(this._cursorController.hasMultipleCursors())return!1;var e=this._cursorController.getCursors()[0],t=e.getNode().rootContainer();if(!e.hasSelection()&&t instanceof u){var i=t.nextNode()?t.nextNode().rootContainer():null;if(i)return e.setPosition(i.startNode(),0,!0),!0}return!1},_handleSelectAll:function(){if(this._cursorController.hasMultipleCursors())return!1;var e=this._cursorController.getCursors()[0],t=e.getNode().rootContainer();if(t instanceof u){var i=!1,n=!1,o=t.startNode(),r=t.endNode();if(e.hasSelection()){if(n=!0,e.getSelectionStartNode().rootContainer()===e.getSelectionEndNode().rootContainer()){var a=o.startPosition(),s=r.endPosition(),l=e.getSelection(),d=l.getStartPosition(),h=l.getEndPosition();0===c.comparePositions(a,d)&&0===c.comparePositions(s,h)||(i=!0)}}else t.isEmpty()||(i=!0);if(i)return n&&e.internalCollapseSelection(!1),e.setPosition(o,0),e.fixAnchor(),e.setPosition(r,r.maxOffset(),!0),!0}return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5292)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.nodes.contentconverter"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(237),i(416),i(314),i(664)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{constructor:function(e,t){this._cursor=e,this._contentConverter=t},getType:function(){return o.MATLAB_RICHTEXT},convertFromMimeData:function(e){var o=this._cursor.selectionInfo();if(t.isCodeRange(o.startNode,o.endNode))try{var r=JSON.parse(e);if(1===r.length){var a=r[0],s=this._contentConverter.unpack(a);if(s instanceof n)return i.textToContent(s.getText(),this._cursor.getNode())}}catch(e){}return null},priority:function(){return 100}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5294)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.nodes.contentconverter"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(237),i(416),i(314),i(664)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_LINE_SEPARATOR:"\n",constructor:function(e,t){this._cursor=e,this._contentConverter=t},getType:function(){return o.MATLAB_RICHTEXT},convertFromMimeData:function(e){var o=this._cursor.selectionInfo();if(o.startNode.rootContainer()instanceof n&&o.startNode.rootContainer()===o.endNode.rootContainer())try{var r=JSON.parse(e),a=[];if(!r.some((function(e){return e=this._contentConverter.unpack(e),a.push(e.getText()),!t.isCodeContainer(e,!0)}),this))return i.textToContent(a.join(this._LINE_SEPARATOR),this._cursor.getNode())}catch(e){}return null},priority:function(){return 100}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5296)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(732),i(416),i(685),i(402)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{_MATLAB_LANGUAGE:"matlab",constructor:function(){},getApplicableNodeClass:function(){return i},enter:function(e,t,i){return this.inherited(arguments),!0},leave:function(e,i,n){var r=this._createWrapperElement();i.type===t.MATLAB&&r.setAttribute(o.LANGUAGE,this._MATLAB_LANGUAGE),r.textContent=i.getText()+"\n",e.closeWrapperElement(r)},_getTagName:function(e){return o.PROGRAMLISTING}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5298)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.serializers.containers.codeexample.blockcontainer"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(319),i(416),i(252)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_STYLE_CODE_EXAMPLE:{id:"CodeExampleLine",name:"Code Example",type:"paragraph",basedOn:"Standard",fontFamily:"Courier",fontSize:"21",bold:!1,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"140",before:"140",line:"240",contextualSpacing:!0},indentation:"57",indFirstLine:"113",rowSpacing:"0"},constructor:function(e){this._codeExampleBlockNodeSerializer=e},getApplicableNodeClass:function(){return i},enter:function(e,t,i){return e.write(this._codeExampleBlockNodeSerializer,t),!0},finalize:function(e){e.addStyle(this._STYLE_CODE_EXAMPLE)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2090)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5301)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(416),i(252)],o=i.dj.d(n,(function(e,t,i){return e([i],{_LINE_BREAK:"\n",_INDENT:" ",constructor:function(){},getApplicableNodeClass:function(){return t},enter:function(e,t){let i="";return t.children.forEach(e=>{i+=this._INDENT+e.getText()+this._LINE_BREAK}),i=this._LINE_BREAK+i+this._LINE_BREAK,e.addHelpText(i),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5303)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(732),i(416),i(721),i(252)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{_STYLES:["margin","padding"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return i},enter:function(e,i,o){var r=n.getStyleValuesForNode(i,this._STYLES,this._view),a="<div class = '"+(i.type===t.MATLAB?"preformatted-matlab":"preformatted-plain")+"' style = '"+r+"'>";e.addToBody(a)},leave:function(e,t,i){e.addToBody("</div>")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5305)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(732),i(416),i(252)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_PREFORMATTED_MARKUP:"% ",_CODE_MARKUP:"% ",constructor:function(){},getApplicableNodeClass:function(){return i},enter:function(e,i,n){var o="%%\n% \n",r=this._PREFORMATTED_MARKUP;return i.type===t.MATLAB&&(r=this._CODE_MARKUP),i.children.forEach((function(e){o+=r+e.getText()+"\n"})),o+="%\n",e.addMCode(o),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5307)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(416),i(252)],o=i.dj.d(n,(function(e,t,i){return e([i],{_ENVIRONMENT:"verbatim",constructor:function(){},getApplicableNodeClass:function(){return t},enter:function(e,t,i){var n=t.children.map((function(e){return e.getText()})).join("\n");return e.openEnvironment(this._ENVIRONMENT),e.addToBody(n+"\n"),e.closeEnvironment(this._ENVIRONMENT),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5309)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(416),i(621),i(357)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_STYLES:["margin-left","margin-right","margin-top","margin-bottom","line-height","min-height","font-family","font-size","white-space"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return t},_getTagName:function(e){return n.BLOCK}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5311)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(835),i(621),i(357)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{constructor:function(e){this._view=e},getApplicableNodeClass:function(){return t},_processElement:function(e){return e.setAttribute("white-space","pre"),e},_getTagName:function(e){return n.BLOCK}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5313)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.internaldocument","rtc.cursor","rtc.document","rtc.view.styles.globalstylechanger"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(665),i(207),i(249),i(260),i(237),i(497),i(364),i(1144),i(403),i(274),i(439),i(5314)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e(o,{constructor:function(e,o,r,a,s){this._view=e,this._internalDocument=o,this._globalStyleChanger=s,this._cursor=r,this._document=a,n.loadFonts(),this.own(i.after(this._document,"onDirectedDeletion",t.hitch(this,"_onDelete"),!0)),this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleDocumentChanged"),!0)),this.own(i.after(this._globalStyleChanger,"onRulesChanged",t.hitch(this,"_handleStyleChanged")))},_handleDocumentChanged:function(e){f.autoStyle(e,this._view,this._internalDocument,this._cursor)},_handleStyleChanged:function(){const e=[];h.forAllDescendants(this._internalDocument.root.children,t=>{this._isEquationNode(t)&&(this._view.refreshNode(t),e.push(t.renderedEquationPromise))}),e.length>0&&Promise.all(e).then(()=>this._view.onLayoutChange())},_isEquationNode:function(e){return e instanceof p},_isEquationOfType:function(e,t){return this._isEquationNode(e)&&e.getEncoding()===t},_onDelete:function(e,t){if(!this._cursor.hasSelection()&&t.isLocal){var i=t.startNode;if(this._isEquationOfType(i,"tex")){if(-1===e)if(this.onDelete(i))return!0;return this._cursor.setPosition(this._cursor.selectionInfo2cursorPos(t)),!0}}},onDelete:function(e){},onActionsNeedUpdate:function(){},equationUnderCursor:function(e,t){var i=this._cursor.selectionInfo(),n=i.isLocal&&this._isEquationNode(i.startNode)&&i.startNode.getEncoding()===e?i.startNode:null;if((!n||t===r.FORWARD_DELETE)&&i.isNull&&i.endPos===i.endNode.maxOffset()){var o=i.endNode.nextSibling();n=o&&this._isEquationNode(o)&&o.getEncoding()===e?o:null}return n},_canEditEquation:function(e){if(this._cursor.isCursorReadOnly())return!1;var t=this.equationUnderCursor(e);if(this._cursor.hasSelection()&&!t)return!1;var i=this._cursor.getNode(),n=this._cursor.getOffset();return!(this._isEquationOfType(i,"mathml")&&n>0&&n<i.maxOffset())},canEditMathMLEquation:function(){return this._canEditEquation("mathml")},canEditLaTeXEquation:function(){return this._canEditEquation("tex")},updateEquationNode:function(e,t){this._internalDocument.changeNodeAttributes(e,{encoding:t.encoding,displayStyle:t.displayStyle,mathmlString:t.mathmlString||"",texString:t.texString||"",altTextString:t.altTextString||""}),"tex"===t.encoding&&this._cursor.setPosition(e,1)},_insertEquation:function(e){var t=this._internalDocument,i=new p(e),n=t.insertAtPosition(i,this._cursor.position);return this._cursor.setPosition(i,1),n.events},convertRangeToEquation:function(e,t,i,n,o){this._document.deleteText(t,i,n,o),this.updateDocument({texString:e})},deleteEquation:function(e){var t,i=e.rootContainer(),n=this._cursor.getPosition();t=this._internalDocument.getLineNumber(i);var o=this._document.startEdit();this._internalDocument.deleteNodeAndMerge(e),this._cursor.setLineColumn(t+1,n.column);var r=[c.create(t,t)],a=[l.create(t,t,n.column)];o.appendUndoEvents(r),o.appendRedoEvents(a),this._document.endEdit(),this._internalDocument.emitDocumentEvents(a),this.onActionsNeedUpdate()},updateDocument:function(e){var t,i=this._cursor.getNode().rootContainer(),n=this._internalDocument.getLineNumber(i),o=this._document.startEdit();e.currentNode?(this.updateEquationNode(e.currentNode,e),e.currentNode=null,t=[c.create(n,n)]):t=this._insertEquation(e),o.appendRedoEvents(t),o.appendUndoEvents(a.translateEventsForUndo(t)),this._document.endEdit(),this._internalDocument.emitDocumentEvents(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(249),i(260),i(237),i(274),i(439)],o=i.dj.d(n,(function(e,t,i,n,o){function r(e){return!!e.type}function a(e,t){var i=function(e){if(e.children)return e.children.filter(s);return[]}(e);return i.length>0&&(i.forEach(t.layoutNode,t),!0)}function s(e){return function(e){return e instanceof o}(e)&&(e.getDisplayStyle()||n.isFreestandingOpaque(e))}return{autoStyle:function(n,o,s,l){var c=l.getNode().textContainer(),d=t.getEventsOfType(n,e.DELETION_EVENT),u=t.getEventsOfType(n,e.INSERT_TEXT),h=u.some((function(e){return e.endLine&&e.endLine>e.startLine}));if(n.some(r)){var p=a(c,o),f={};if(n.forEach((function(e){var t,i;if(!e.hasOwnProperty("startLine")||!e.hasOwnProperty("endLine"))return!1;var n=Math.min(e.endLine,s.getMaxLineNumber()-1);for(t=e.startLine;t<=n;t+=1)if(!f[t]){f[t]=!0;var r=s.getLineNode(t);r.childrenAreContainers?r.children.forEach((function(e){i=e.textContainer(),p=a(i,o)||p})):(i=r.textContainer(),p=a(i,o)||p)}})),(d.length>0||h)&&(i.isAtStartOfContainer(l.getCursorPosition())&&c.previousSibling()?p=a(c.previousSibling(),o)||p:i.isAtEndOfContainer(l.getCursorPosition())&&c.nextSibling()&&(p=a(c.nextSibling(),o)||p)),p){if(u.length>1){var g=u[0].position.getNode().rootContainer(),m=u[u.length-1].position.getNode().rootContainer();g&&m&&g!==m&&(o.layoutNode(g),o.layoutNode(m))}var _=l.getCursorPosition().getNode().rootContainer();(d.length>0||u.length>1&&(_===g||_===m))&&(l.onUpdate(),o.onLayoutChange())}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5316)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(910),i(439),i(579)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{_EQUATION_MAX_RESOLUTION:1920,_EQUATION_RESOLUTION_FACTOR:2,_IMAGE_TYPE:"img",_PIXEL_CHAR_RELATION:5,_REDUCTION_FACTOR:3,_TEXT_ELEMENT_TYPE:"span",constructor:function(){},createPreview:function(e,t,n){return e.isInstanceOf(i)?this._createEquationPreview(e,t,n):null},_createEquationPreview:function(e,t,i){var o=n.exportDomnodeToImageURL(i.getBox(e),this._EQUATION_RESOLUTION_FACTOR,this._EQUATION_MAX_RESOLUTION),r=document.createElement(this._TEXT_ELEMENT_TYPE),a=document.createElement(this._IMAGE_TYPE);a.setAttribute("src",o.dataURL),a.setAttribute("height",o.height/this._REDUCTION_FACTOR),a.setAttribute("width",o.width/this._REDUCTION_FACTOR);var s=a.width>o.height?a.width:o.height,l=Math.min(t,s/this._PIXEL_CHAR_RELATION);return l>s/10?(r.appendChild(a),r.setAttribute("style","vertical-align:"+o.verticalAlign/this._REDUCTION_FACTOR+"px"),{node:r,usedSize:l=l>=t?t-1:l}):((r=document.createElement(this._TEXT_ELEMENT_TYPE)).innerText=i.MORE,{node:r,usedSize:t})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5318)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.htmlmimeconverter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(439),i(578)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e){e.registerNodeHandler("SPAN",t.hitch(this,"_convertEquationNode"))},_convertEquationNode:function(e,t){var r;return 1===e.children.length&&"IMG"===e.children[0].nodeName&&(e.attributes.texencoding?r=new n({encoding:"tex",texString:o.unEscapeHTML(e.attributes.texencoding.nodeValue)}):e.attributes.mathmlencoding&&(r=new n({encoding:"mathml",mathmlString:o.unEscapeHTML(e.attributes.mathmlencoding.nodeValue)})),r?(e.children[0].attributes.alt&&r.updateAttributes({altTextString:e.children[0].attributes.alt.nodeValue}),i.empty(e),t.appendNode(r),!0):void 0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5320)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(731),i(439)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5322)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(270),i(439),i(500),i(944)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){this._viewModel=e},getApplicableNodeClass:function(){return i},getPositionFromCoordinate:function(e,i){var o,r=this._getClientRects(i)[0];return n.isCoordinateWithinRect(e,r)?i.getEditorBridge()?this._getPositionFromBridge(i,e):("mathml"===i.getEncoding()?(o=e.x<=r.left?i.posLeftOfEquation():e.x>=r.right?i.posRightOfEquation():i.posInsideOfEquation(),i.lastClickCoordinates=n.convertFromClientToOffset(e,this._viewModel)):e.x>=r.left+r.width/2&&(o=1),new t(i,o)):null},_getPositionFromBridge:function(e,i){var n,o=this.getDomNode(e).getBoundingClientRect();if(i.x<=o.left)n=0;else if(i.x>=o.right)n=e.maxOffset();else{n=e.getEditorBridge().cursorOffsetFromXY(i.x-o.left,i.y-o.top)||0,n+=1}return new t(e,n)},getCoordinateFromPosition:function(e){var t=e.getNode(),i=e.getOffset(),n=t.getEditorBridge();return n&&i>0&&i<t.maxOffset()?n.caretCoordinatesFor(i-1):this.inherited(arguments)},getDomNode:function(e){return e.getMathRootBox(this._viewModel.getNodeBox(e))||this._viewModel.getNodeBox(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5324)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel","rtc.view.decoration.viewmodel","rtc.scrollpane","rtc.settings.service"]}},createInstance:function(){return new i(...arguments)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(211),i(548),i(718),i(274),i(1460),i(809),i(669),i(391),i(439)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(d,{_TEXT_HEIGHT:14,_TEX_RENDERER_ARGS:{cacheFontMetrics:!1,strictTeX:!0,equationFormat:"tex"},_MATHML_RENDERER_ARGS:{cacheFontMetrics:!1,equationFormat:"mathml"},_EQUATION_NODE_CSS_CLASS:"equationNode",constructor:function(e,t,i,n){this._hiddenNodeModel=e,this._decorationViewModel=t,this._scrollpane=i,this._settingsService=n,this._rendererCache={}},_getRenderer:function(e,i,n){var r=t.mixin({},n,{pxPerEm:i}),a=JSON.stringify(r);return this._rendererCache[a]||(this._rendererCache[a]=new o(r)),this._rendererCache[a]},_doLayout:function(e,t,i,n,o){var r=o||i.layoutInto(n,"span",{class:this._EQUATION_NODE_CSS_CLASS});return this._applyDecoration(n,r),t?(n.renderedEquationPromise=this._getPxPerEm(n).then(i=>this._getRenderer(n,i,e).render(t,r,{displaystyle:n.getDisplayStyle(),altText:n.getAltTextString()})),r):r},_getPxPerEm:function(e){let t=0;const i=e.rootContainer();let n=this._TEXT_HEIGHT,o="matlab.fonts.editor.normal.Size";return i&&c.isHeadingNode(i)&&(o="matlab.fonts.editor."+c.getNodeType(i)+".Size",t=2,n=c.getEquationHeight(i)),this._settingsService.getSetting(o).then(e=>l.getFontSizeValueFromSettingValueInPx(e)+t,()=>n)},_doLayoutEditor:function(e,t,i){var o=this._scrollpane.scrollLeft,r=this._scrollpane.scrollTop,a=t.layoutInto(i,"span",{class:this._EQUATION_NODE_CSS_CLASS});return this._getPxPerEm(i).then(t=>{e.set("pxPerEm",t),window.setTimeout(function(){e.get("disabled")||e.focus(),this._scrollpane.scrollLeft=o,this._scrollpane.scrollTop=r}.bind(this),0)}),n.empty(a),i.renderedEquationPromise=e.placeAt(a),a},_layoutTeX:function(e,t){t.setDisplayStyle(a.isFreestandingOpaque(t));var i=r.setDisplaystyleIfNeeded(t.getTeXString(),!0);t.getDisplayStyle()&&(t.textContainer().tempAlign=!0);var n=this._doLayout(this._TEX_RENDERER_ARGS,i,e,t);return n.setAttribute("data-test-source","tex"),n},_layoutMathML:function(e,t){t.setDisplayStyle(a.isFreestandingOpaque(t)),t.getDisplayStyle()&&(t.textContainer().tempAlign=!0);var n=t.getEditor();if(n)return this._doLayoutEditor(n,e,t);var o=t.getMathMLString();if(s.isEmptyEquationEncoding(o)){var r=e.layoutInto(t,"span",{class:this._EQUATION_NODE_CSS_CLASS});r.innerHTML=s.emptyEquationEncoding;var l=new i;return l.then((function(){}),(function(){})),l.resolve(r),t.renderedEquationPromise=l,r}return this._doLayout(this._MATHML_RENDERER_ARGS,o,e,t)},getTeXImporterTestOnly:function(){return this._getRenderer({parent:null},this._TEXT_HEIGHT,this._TEX_RENDERER_ARGS)._importer},getApplicableNodeClass:function(){return u},layout:function(e,t){return("tex"===t.getEncoding()?this._layoutTeX.bind(this):this._layoutMathML.bind(this))(e,t)},refresh:function(e,t){return this.layout(e,t)},_applyDecoration:function(e,t){this._decorationViewModel.getDecoration(e).forEach((function(e){var i=e.classes;i&&Object.keys(i).forEach((function(e){i[e]&&t.classList.add(e)}))}))},destroy:function(){Object.values(this._rendererCache).forEach((function(e){e.destroy()})),this._rendererCache={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(5326)],o=i.dj.d(n,(function(e,t){return class extends e{createInstance(){return new t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(207)],o=i.dj.d(n,(function(e){return class extends e{attachActionService(e){this._actionService&&this.detachActionService(this._actionService),this._actionService=e,this._actionService.attach()}detachActionService(e){e.detach(),this._actionService===e&&(this._actionService=null)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5328)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(319),i(574),i(300)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return e(o,{_RELATIONSHIP_TARGET:"/mathml/",_PART_NAME:"eqn",_PART_TYPE:"text/xml",_PART_EXTENSION:"mml",AUTO_CENTER_CLASS:!0,write:function(e,t){i.assert(t.opcPackage,"Required argument missed: 'opcPackage'");var o=document.createElement(this.getXMLType()),a=r.createCustomXMLTag(this.getXMLType()),s=r.createXMLElement(n.CUSTOM_XML_PROPERTY),l=r.createCustomXMLAttribute("displayStyle",e.displayStyle);s.appendChild(l),a.appendChild(s);var c=e.encoding||"tex";if("mathml"===c){var d=r.createCustomXMLAttribute("encoding",c);s.appendChild(d);var u=this._createRelationship(e,t.opcPackage);s.appendChild(u)}if(e.altTextString){var h=r.createCustomXMLAttribute("altTextString",e.altTextString);s.appendChild(h)}var p=r.createXMLElement(n.RUN_OF_TEXT_TAG_NAME),f=r.createXMLElement(n.TEXT_TAG_NAME);if(e.texString){var g=document.createTextNode(e.texString);f.appendChild(g)}return p.appendChild(f),a.appendChild(p),o.appendChild(a),o.childNodes[0]},_createRelationship:function(e,t){var i=t.getPartURI(this._RELATIONSHIP_TARGET,this._PART_NAME,this._PART_EXTENSION),o=this._findDuplicates(e,t);if(o)a=this._getRelationshipIdFromPart(o,t);else{var a=this._createPartRelationship(t.getPart(n.DOCUMENT_TARGET),i);this._createPart(i,this._PART_TYPE,t).setContent(e.mathmlString),e.relationshipId=a}return r.createCustomXMLAttribute(n.RELATIONSHIP_ID_TAG_NAME,a)},_findDuplicates:function(e,t){var i=null;return t.getParts().forEach((function(t){t.getContent()&&t.getContent()===e.mathmlString&&(i=t)})),i},_getRelationshipIdFromPart:function(e,t){var i=t.getPart(n.DOCUMENT_TARGET).getAllRelationships().getRelationshipCollection();for(var o in i)if(i[o].getTarget()===e.getPartURI())return o},_createPart:function(e,t,i){return i.createPart(e,t)},_createPartRelationship:function(e,t){return e.createRelationship(n.MATHML_RELATIONSHIP_TYPE,t)},_readAttributes:function(e,t,i){for(var o=e.getElementsByTagNameNS(n.NAMESPACE_URL,n.CUSTOM_XML_PROPERTY)[0].getElementsByTagNameNS(n.NAMESPACE_URL,n.CUSTOM_XML_ATTRIBUTE),r=0;r<o.length;r++){var a=o[r].getAttributeNS(n.NAMESPACE_URL,n.NAME_TAG),s=o[r].getAttributeNS(n.NAMESPACE_URL,n.CUSTOM_XML_VALUE_TAG);a===n.RELATIONSHIP_ID_TAG_NAME&&(a="mathmlString",s=this._readMathMLPart(t,s)),i[a]=s}i.encoding=i.encoding||"tex"},_readMathMLPart:function(e,t){var i=e.getPart(n.DOCUMENT_TARGET).getRelationship(t).getTarget();return e.getPart(i).getContent()},read:function(e,t){var i={className:this.getNodeType()};this._readAttributes(e,t,i);var o=e.getElementsByTagNameNS(n.NAMESPACE_URL,n.RUN_OF_TEXT_TAG_NAME);return"mathml"===i.encoding?i.texString=void 0:i.texString=r.getTextFromRun(o[0]),{readObject:i,readStatus:!0}},getXMLType:function(){return"equation"},getNodeType:function(){return"EquationNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5330),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.actionservice","rtc.internaldocument","rtc.document","rtc.eventhandler","rtc.view","rtc.cursor","rtc.internalhyperlinkservice","rtc.focusservice","rtc.backingstore"]}},createInstance:function(e,i,n,o,r,a,s,l,c){return new t(e,i,n,o,r,a,s,l,c)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(257),i(206),i(209),i(208),i(627),i(260),i(237),i(497),i(364),i(274),i(270),i(401),i(670),i(380),i(427),i(2091),i(949)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e(null,{constructor:function(e,i,o,a,s,l,c,d,u){this._internalDocument=i,this._document=o,this._eventHandler=a,this._view=s,this._cursor=l,this._hyperlinkService=c,this._focusService=d,this._backingstore=u,this._handles=[],this._handles.push(n(s.getDomtarget(),"a.hyperlinkNode:auxclick",t.hitch(this,this._handleAuxClick))),this._handles.push(n(s.getDomtarget(),"a.hyperlinkNode:click",t.hitch(this,this._handleClick))),this._handles.push(r.after(this._document,"onDirectedDeletion",t.hitch(this,"_onDelete"),!0)),this._handles.push(n(s.getDomtarget(),"a.hyperlinkNode:focusout",t.hitch(this,this._setFocus))),e.loadActions([{id:"rtc_hyperlink_open",enabled:!0,key:"enter",callback:t.hitch(this,"_openHyperlink")}])},_setFocus:function(e){e.srcElement===e.selectorTarget&&this._focusService.setFocus()},_handleAuxClick:function(e){e.stopPropagation(),e.preventDefault()},_handleClick:function(e){var t,n;if(e.preventDefault(),this._cursor.hasSelection()||i.isRight(e)||e.altKey)return e.stopPropagation(),void e.preventDefault();n=this._view.getCoordinateFromEvent(this._view.fixEvent(e)),!(t=this._view.getPositionFromCoordinate(n).getNode().parent.hyperlink)&&e.selectorTarget&&(t=e.selectorTarget.rteNode.hyperlink),t&&(this._hyperlinkService.openHyperReference(t,this._backingstore.getFileLocation()),e.stopPropagation(),e.preventDefault())},_onDelete:function(e,t){if(!this._cursor.hasSelection()&&t.isLocal){var i=t.startNode,n=this._getHyperlinkByNode(i);if(n)return-1===e&&t.endNode===n.endNode()&&t.endPos===t.endNode.maxOffset()?(this.performEditAction({nodeBeingEdited:n}),!0):1===e&&t.startNode===n.startNode()&&0===t.startPos?(this._cursor.setPosition(n,n.maxOffset()),this._cursor.fixAnchor(),this._cursor.setPosition(n),!0):void 0}},hyperlinkUnderCursor:function(){var e=this._cursor.selectionInfo(),t=e.startNode,i=this._getHyperlinkByNode(t);return i&&t.parent===e.endNode.parent?e.isNull&&l.isEdgeOfTextLevelContainer(t,e.startPos)?null:i:null},_getHyperlinkByNode:function(e){var t=e.parent;return t&&t instanceof m?t:null},_buildHyperlink:function(e,t){var i=[];if(e.displayTextReadOnly&&t&&"code"!==t.startNode.rootContainer().containerType()&&"liveapp"!==t.startNode.rootContainer().containerType()){var n=this._internalDocument.createContiguousRange(t.startPosition,t.endPosition,!1);u.leafNodesInRangeIterator(n.startNode,n.endNode,function(e){i.push(this._internalDocument.cloneNode(e))}.bind(this))}else{var o=new g({text:e.displayText});t&&t.startNode===t.endNode&&o.setStyleAttributes(t.endNode.getStyleAttributes()),i.push(o)}return e.targetType===v.TARGET.FILE&&(e.target="matlab:open("+e.target+")"),new m(i,{hyperlink:{target:e.target,anchor:e.anchorId}})},_removeHyperlink:function(e){var t,i;if(e||(e=this.hyperlinkUnderCursor()),e){t=this._cursor.getPosition(),i=e.startPosition();var n=f.createTextNodeForPosition("",i);i=this._internalDocument.insertAtPosition(n,i).insertedRange.getStartPosition();var o=this._internalDocument.removeChildren(e);this._internalDocument.deleteNode(e,i),this._internalDocument.insertAtPosition(o,i),this._cursor.setPosition(t)}},_openHyperlink:function(){var e=this.hyperlinkUnderCursor();if(!this._cursor.hasSelection()&&e){var t=e.hyperlink;return this._hyperlinkService.openHyperReference(t,this._backingstore.getFileLocation()),!0}return!1},performEditAction:function(e){o.assert(e,"Hyperlink.performEditAction called without linkData!");var t=this._cursor.getNode().rootContainer(),i=this._internalDocument.getLineNumber(t),n=this._document.startEdit(),r=[],a=[];if(""===e.target&&""===e.anchorId||!e.displayText)this._removeHyperlink(e.nodeBeingEdited),r=a=[d.create(i,i)],this._completeEdit(n,a,r);else if(e.nodeBeingEdited){var l=this._cursor.position.getNode().offsetInContainer(e.nodeBeingEdited)+this._cursor.position.getOffset();this._cursor.collapseSelection(),e.displayTextReadOnly||(this._replaceDisplayText(e.nodeBeingEdited,e.displayText),l>e.displayText.length&&(l=e.displayText.length)),this._internalDocument.changeNodeAttributes(e.nodeBeingEdited,{hyperlink:new _(e.target,e.targetType,e.anchorId)}),this._cursor.setPosition(e.nodeBeingEdited,l),r=a=[d.create(i,i)],this._completeEdit(n,a,r)}else{var u=this._cursor.hasSelection(),f=this._cursor.selectionInfo();f.startPosition.setLive(!0),f.endPosition.setLive(!0);var g=this._buildHyperlink(e,f),m=new h(f.endNode,f.endPos),v=this._internalDocument.insertAtPosition(g,m);r=r.concat(v.events);var b=g.rootContainer()!==m.node.rootContainer();u&&!b&&(this._cursor.setSelection(new p(f.startPosition,f.endPosition,f.isReversed,f.fileEndSelected)),this._internalDocument.deleteSelection(this._cursor.selectionInfo()));var y=s.finalLineRangeFromEvents(r);a=[c.create(y.startLine,y.endLine)],this._completeEdit(n,a,r),u?(this._cursor.releaseAnchor(!0),this._cursor.setPosition(g,0),this._cursor.fixAnchor(),this._cursor.setSelection(new p(g.startPosition(),g.endPosition(),f.isReversed,f.fileEndSelected))):this._cursor.setPosition(g,-1),this._cursor.onUpdate()}},_completeEdit:function(e,t,i){e.appendUndoEvents(t),e.appendRedoEvents(i),this._document.endEdit(),this._internalDocument.emitDocumentEvents(i),this._cursor.onUpdate()},_replaceDisplayText:function(e,t){this._internalDocument.removeChildren(e,1),this._internalDocument.changeNodeAttributes(e.firstChild(),{text:t})},applyHyperlinkInLineColumn:function(e,t,i,n,o){var r=this._cursor.getLineColumn(),a=r.line,s=r.column;this._cursor.setSelectionLineColumn(i,n,i,o),this.performEditAction({target:e,displayText:t,targetType:v.TARGET.WEB,nodeBeingEdited:null});var l=o-n-t.length;i===r.line&&l>0&&(s-=l),this._cursor.setLineColumn(a,s)},isAtHyperlink:function(e){return null!==this._getHyperlinkByNode(e.getNode())},destroy:function(){this._handles.forEach((function(e){e.remove()})),this._handles=[]}})}),e,t),e.exports=o},function(e,t,i){e.exports={badScheme:"URL スキームがサポートされていません。",browseButtonText:"...",corruptURL:"破損した URL",createTitle:"ハイパーリンクの挿入",defaultUrl:"https://www.mathworks.com",displayText:"テキストの表示:",displayTextSelection:"<ドキュメントの選択>",editTitle:"ハイパーリンクの編集",emptyFilePath:"ファイル パスは空にできません",emptyURL:"有効な URL が必要です",external:"Web ページ",externalFile:"ファイル パス:",filePlaceholder:"/path/to/file",internal:"ドキュメント内の場所",internalDescription:"ドキュメントをクリックして、リンク ターゲットを選択します。",internalLinkText:"内部リンク",mathworksPlaceholder:"MathWorks",otherFile:"既存のファイル",remove:"削除",targetURL:"ターゲット URL:",validURL:"有効な URL",wrongFilePath:"ファイル パスが無効です",wrongURL:"URL が無効です"}},function(e,t,i){e.exports={badScheme:"URL 체계가 지원되지 않습니다.",browseButtonText:"...",corruptURL:"손상된 URL",createTitle:"하이퍼링크 삽입",defaultUrl:"https://www.mathworks.com",displayText:"표시 텍스트:",displayTextSelection:"<문서의 선택 항목>",editTitle:"하이퍼링크 편집",emptyFilePath:"파일 경로는 비어 있을 수 없음",emptyURL:"유효한 URL이 필요함",external:"웹 페이지",externalFile:"파일 경로:",filePlaceholder:"/path/to/file",internal:"문서 내 위치",internalDescription:"링크 대상을 선택하려면 문서를 클릭합니다.",internalLinkText:"내부 링크",mathworksPlaceholder:"MathWorks",otherFile:"기존 파일",remove:"제거",targetURL:"대상 URL:",validURL:"유효한 URL",wrongFilePath:"파일 경로가 유효하지 않음",wrongURL:"URL이 유효하지 않음"}},function(e,t,i){e.exports={badScheme:"不支持 URL 方案。",browseButtonText:"...",corruptURL:"损坏的 URL",createTitle:"插入超链接",defaultUrl:"https://www.mathworks.com",displayText:"显示文本:",displayTextSelection:"<文档中的所选内容>",editTitle:"编辑超链接",emptyFilePath:"文件路径不能为空",emptyURL:"需要有效的 URL",external:"网页",externalFile:"文件路径:",filePlaceholder:"/path/to/file",internal:"文档中的位置",internalDescription:"点击文档以选择一个链接目标。",internalLinkText:"内部链接",mathworksPlaceholder:"MathWorks 公司",otherFile:"现有文件",remove:"删除",targetURL:"目标 URL:",validURL:"有效的 URL",wrongFilePath:"无效的文件路径",wrongURL:"无效的 URL"}},function(e,t,i){e.exports={root:{badScheme:"URL scheme is not supported.",browseButtonText:"...",corruptURL:"Corrupt URL",createTitle:"Insert Hyperlink",defaultUrl:"https://www.mathworks.com",displayText:"Display text:",displayTextSelection:"<selection in document>",editTitle:"Edit Hyperlink",emptyFilePath:"The file path cannot be empty",emptyURL:"Valid URL is required",external:"Web page",externalFile:"File path:",filePlaceholder:"/path/to/file",internal:"Location in document",internalDescription:"Click the document to select a link target.",internalLinkText:"internal link",mathworksPlaceholder:"MathWorks",otherFile:"Existing file",remove:"Remove",targetURL:"Target URL:",validURL:"Valid URL",wrongFilePath:"Invalid file path",wrongURL:"Invalid URL"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(5336),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.actionservice","rtc.cursor","rtc.richtext.hyperlink","rtc.internaldocument","rtc.view","rtc.eventhandler","rtc.richtext.anchor","rtc.focusservice","rtc.contextmenu.documentcontributor","rtc.backingstore","rtc.executionservice"]}},createInstance:function(e,i,n,o,r,a,s,l,c,d,u){return new t(e,i,n,o,r,a,s,l,c,d,u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(207),i(208),i(401),i(294),i(251),i(5337),i(427),i(949),i(1476),i(5338),i(950)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(n,{_NON_WORD_CHARACTER:"[\\!§\\$\\%\\&\\/\\(\\)\\=\\?\\,\\.\\-_\\:;\\]\\+\\*\\~<>\\|\"'´`°# ]",_CONTEXT_MENU_GROUP:a.RICH_TEXT,_GENERAL_HYPERLINK_ACTION:"rtc_general_hyperlink",constructor:function(e,i,n,r,a,s,l,c,d,u,h){this._actionService=e,this._cursor=i,this._hyperlink=n,this._internalDocument=r,this._view=a,this._eventHandler=s,this._anchor=l,this._focusService=c,this._contextMenuContributor=d,this._backingstore=u,this._executionService=h,e.loadActions(this._actions()),this._addActionsToContextMenu(),this.own(o.after(this._cursor,"onChange",t.hitch(this,"_updateActions")))},_actions:function(){return[{id:s.HYPERLINK.HYPERLINK_ACTION,key:"ctrl_k",platformKey:{mac:"meta_k"},enabled:!1,callback:t.hitch(this,"_hyperlinkCallback")},{id:this._GENERAL_HYPERLINK_ACTION,enabled:!0,text:p.generalHyperlink,callback:t.hitch(this,"_generalHyperlinkCallback")}]},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,this._GENERAL_HYPERLINK_ACTION)},_hyperlinkCallback:function(){return!!this._actionService.getAction(s.HYPERLINK.HYPERLINK_ACTION).enabled&&this._editHyperlink()},_generalHyperlinkCallback:function(){if(!this._actionService.getAction(this._GENERAL_HYPERLINK_ACTION).enabled)return!1;var e=this._cursor.getNode(),t=e instanceof c?e:null;return(t=!t&&e.parent instanceof c?e.parent:t)&&this._cursor.setSelection(new r(t.getPositionFromOffset(0),t.getPositionFromOffset(t.maxOffset()))),this._editHyperlink()},_updateActions:function(){var e=this._canEditHyperlink();this._actionService.updateAction(s.HYPERLINK.HYPERLINK_ACTION,{enabled:e}),this._actionService.updateAction(this._GENERAL_HYPERLINK_ACTION,{enabled:e})},_canEditHyperlink:function(){var e;return!!this._cursor&&(!this._cursor.isCursorReadOnly()&&!(!(e=this._cursor.selectionInfo()).isInTextContainer||e.fileEndSelected))},_editHyperlink:function(){if(this.dialog||!this._canEditHyperlink())return!1;this.displayTextReadOnly=!1,this._dialogAccepted=!1;var e={displayText:"",displayTextReadOnly:!1,target:""};this._nodeBeingEdited=this._hyperlink.hyperlinkUnderCursor(),this._nodeBeingEdited?(e.displayText=this._nodeBeingEdited.getText(),e.target=this._nodeBeingEdited.hyperlink.getReference(),e.targetType=this._nodeBeingEdited.hyperlink.getTarget(),e.anchor=this._nodeBeingEdited.hyperlink.getAnchor()):(e.displayText=this._cursor.selectedText(),e.displayText||this._checkChar(this._cursor.charAtCursor())||this._checkChar(this._cursor.charAtCursor(-1))||(this._cursor.selectWordUnderCursor(),e.displayText=this._cursor.selectedText())),this._oldCursorPosition=this._cursor.getPosition(),this._oldCursorSelection=this._cursor.getSelection(),this._isSelectionHidden=!!this._cursor.isSelectionHidden(),this._documentTargetSelector=new l(this._internalDocument,this._view,this._anchor,this._eventHandler,this._cursor);var i=this._executionService&&(this._executionService.isMessageServiceRunning&&this._executionService.isMessageServiceRunning()||this._executionService.streamingEval),n=this._backingstore.getFileLocation?this._backingstore.getFileLocation():"";return(this._oldCursorSelection&&(this._oldCursorSelection.getStartPosition().node!==this._oldCursorSelection.getEndPosition().node||this._oldCursorSelection.getStartPosition().node.isOpaqueNode())||this._nodeBeingEdited&&this._nodeBeingEdited.children.length>1)&&(this.displayTextReadOnly=!0),e.displayTextReadOnly=this.displayTextReadOnly,this.dialog=new h(t.hitch(this,this._dlgClose),t.hitch(this,this._dlgAccept),e,this._documentTargetSelector,n,i),this._internalDocument.setReadOnly(!0),this._cursor.collapseSelection(),this._cursor.onChange(),!0},_dlgClose:function(){this._focusService.setFocus(),this.dialog=void 0,this._documentTargetSelector=void 0,this._internalDocument.setReadOnly(!1),this._dialogAccepted||this._cursor.onChange(),this._revertCursor()},_dlgAccept:function(e){e.targetType===d.TARGET.WEB&&(e.target=u.addSchemeIfNeeded(e.target)),e.nodeBeingEdited=this._nodeBeingEdited,this._nodeBeingEdited=null,e.displayTextReadOnly=this.displayTextReadOnly,this._hyperlink.performEditAction(e),setTimeout(t.hitch(this,(function(){this._focusService.setFocus()})),0),this._dialogAccepted=!0},_revertCursor:function(){this._cursor.setPosition(this._oldCursorPosition),this._isSelectionHidden?this._cursor.hideSelection():this._oldCursorSelection&&(this._cursor.setSelection(this._oldCursorSelection),this._cursor.showSelection())},_checkChar:function(e){return!(null!==e&&""!==e&&!e.match(this._NON_WORD_CHARACTER))},destroy:function(){this.dialog&&this.dialog.close(),this._documentTargetSelector&&this._documentTargetSelector.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(273),i(208),i(733)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_CSS_HOVER_STYLE:"internalTargetLine",_CSS_TARGET_SELECTED:"internalTargetLineSelected",_ARROW_DOWN:40,_ARROW_UP:38,_PAGE_DOWN:34,_PAGE_UP:33,constructor:function(e,t,i,n,o){this._internalDocument=e,this._view=t,this._anchor=i,this._eventhandler=n,this._cursor=o,this._handles=[]},enableTargetSelector:function(e){0===this._handles.length&&(this._handles.push(i.before(this._eventhandler,"onMouseDown",this._handleMouseEvent.bind(this))),this._handles.push(i.after(this._view,"onLayoutChange",this._createClasses.bind(this))),this._handles.push(e.on("keydown",function(e){var t=!1;e.keyCode===this._PAGE_UP?(this._cursor.movePosition(this._cursor.PAGE_UP),t=!0):e.keyCode===this._PAGE_DOWN?(this._cursor.movePosition(this._cursor.PAGE_DOWN),t=!0):e.altKey&&e.keyCode===this._ARROW_UP?(this._selectPrevious(),t=!0):e.altKey&&e.keyCode===this._ARROW_DOWN&&(this._selectNext(),t=!0),t&&(e.stopPropagation(),e.preventDefault())}.bind(this)))),this._eventhandler.disableGesture(),this._createClasses()},_selectPrevious:function(){this._removeStyleLineOrBlockForNode(this._lastSelectedTarget,this._CSS_TARGET_SELECTED),this._lastSelectedTarget?this._lastSelectedTarget=n.findPreviousContainer(this._lastSelectedTarget,this._internalDocument):this._lastSelectedTarget=this._internalDocument.root.children[0],this._applySelection()},_selectNext:function(){this._removeStyleLineOrBlockForNode(this._lastSelectedTarget,this._CSS_TARGET_SELECTED),this._lastSelectedTarget?this._lastSelectedTarget=n.findNextContainer(this._lastSelectedTarget,this._internalDocument):this._lastSelectedTarget=this._internalDocument.root.children[0],this._applySelection()},_applySelection:function(){this._styleLineOrBlockForNode(this._lastSelectedTarget,this._CSS_TARGET_SELECTED),this.onSelectedTargetChange(this._lastSelectedTarget),this._view.scrollNodeToPercent(this._lastSelectedTarget)},_createClasses:function(){this._lastSelectedTarget&&this._styleLineOrBlockForNode(this._lastSelectedTarget,this._CSS_TARGET_SELECTED),this._createHoverClasses()},disableTargetSelector:function(){this._removeHoverClasses(),this._removeStyleLineOrBlockForNode(this._lastSelectedTarget,this._CSS_TARGET_SELECTED)},updateSelectedTarget:function(e){this._lastSelectedTarget=n.getNodeForAnchorId(this._internalDocument.root,e)},getUrlForSelectedTarget:function(){return this._lastSelectedTarget?(this._anchor.createNodeId(this._lastSelectedTarget),this._lastSelectedTarget.anchorId):null},isTargetSelected:function(){return!!this._lastSelectedTarget},_handleMouseEvent:function(e){var t=this._view.fixEvent(e),i=this._view.getPositionFromEvent(t);this._view.getClientWidth()-16>=t.layerX&&(this._removeStyleLineOrBlockForNode(this._lastSelectedTarget,this._CSS_TARGET_SELECTED),this._lastSelectedTarget=n.getPossibleTarget(i.getNode().rootContainer()),this._styleLineOrBlockForNode(this._lastSelectedTarget,this._CSS_TARGET_SELECTED),this.onSelectedTargetChange(this._lastSelectedTarget)),e.stopPropagation()},onSelectedTargetChange:function(){},_createHoverClasses:function(){this._internalDocument.root.children.forEach((function(e){this._styleLineOrBlockForNode(e,this._CSS_HOVER_STYLE)}),this)},_removeHoverClasses:function(){this._internalDocument.root.children.forEach((function(e){this._removeStyleLineOrBlockForNode(e,this._CSS_HOVER_STYLE),this._removeStyleLineOrBlockForNode(e,this._CSS_TARGET_SELECTED)}),this)},_styleLineOrBlockForNode:function(e,t,i){if(e)if(e.groupingName){var n=this._view.getNodeBox(e),o=e.previousSibling();if((!o||e.groupingName!==o.groupingName)&&n&&n.parentElement&&n.parentElement.parentElement){var r=n.parentElement.classList.contains(e.groupingName)?n.parentElement:n.parentElement.parentElement;i?r.classList.remove(t):r.classList.add(t)}}else{var a=this._internalDocument.getLineNumber(e);i?this._view.removeClassFromLine(a,t):this._view.applyClassToLine(a,t)}},_removeStyleLineOrBlockForNode:function(e,t){this._styleLineOrBlockForNode(e,t,!0)},destroy:function(){this._lastSelectedTarget=void 0,this._handles.forEach((function(e){e.remove()}),this),this._handles=[],this._eventhandler.enableGesture()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(204),i(212),i(223),i(206),i(273),i(262),i(243),i(422),i(258),i(232),i(208),i(627),i(733),i(1476),i(949),i(2092),i(5339)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){var C="HyperlinkOpenFileChooserCommand";return n([t,e,i],{_DIALOG_HEIGHT:"247px",_DIALOG_HEIGHT_REDUCED:"227px",_DIALOG_MIN_WIDTH:"205px",_DIALOG_WIDTH:"300px",_DIALOG_LEFT:37,_DIALOG_TOP:50,_DIALOG_ELEMENT_WIDTH:"100%",_DONE_TYPING_INTERVAL:100,templateString:y,widgetsInTemplate:!0,constructor:function(e,t,i,n,r,a){this._acceptCallBack=t,this._closeCallBack=e,this._displayText=i.displayText,this._displayTextDisabled=i.displayTextReadOnly,this._targetUrl=i.target,this._dialogTitle=i.target?b.editTitle:b.createTitle,this._targetType=i.targetType,this._anchor=i.anchor,this._documentTargetSelector=n,this._absolutePath=r,this._fileTargetEnabled=a,this.own(f.after(this._documentTargetSelector,"onSelectedTargetChange",o.hitch(this,"_selectTargetCallback"),!0))},postCreate:function(){this.inherited(arguments),this._hyperlinkDialogWidget=c.createDialog({title:this._dialogTitle,content:this,buttons:[l.OK,l.CANCEL,{type:l.REVERT.type,label:b.remove,"data-test-id":l.REVERT["data-test-id"]}],dialogType:c.MODAL,draggable:!0}),this._createTextFields(),this._createRadioButtons(),this.displayTextLabel.innerText=b.displayText,this.urlTextLabel.innerText=b.targetURL,this.internalTextLabel.innerText=b.internalDescription,this.fileTextLabel.innerText=b.externalFile,this._hyperlinkDialogWidget.addButtonEventListener(l.OK,o.hitch(this,"_handleOK"),!1),this._hyperlinkDialogWidget.addButtonEventListener(l.CANCEL,o.hitch(this,"_handleCancel"),!1),this._hyperlinkDialogWidget.addButtonEventListener(l.REVERT,o.hitch(this,"_handleRemove"),!1),this._hyperlinkDialogWidget.on("close",o.hitch(this,"_handleClose"));var e=this._fileTargetEnabled?this._DIALOG_HEIGHT:this._DIALOG_HEIGHT_REDUCED;if(this._hyperlinkDialogWidget.domNode.style.height=e,this._hyperlinkDialogWidget.domNode.style.minWidth=this._DIALOG_MIN_WIDTH,this._hyperlinkDialogWidget.domNode.style.width=this._DIALOG_WIDTH,this._hyperlinkDialogWidget.domNode.style.top=parseInt(this._hyperlinkDialogWidget.domNode.style.top,10)-this._DIALOG_LEFT+"px",this._hyperlinkDialogWidget.domNode.style.left=parseInt(this._hyperlinkDialogWidget.domNode.style.left,10)+this._DIALOG_TOP+"px",this._hyperlinkDialogWidget._contentArea.style.overflow="hidden",this._targetUrl||this._hyperlinkDialogWidget.disableButton(l.REVERT),this._hyperlinkDialogWidget.disableButton(l.OK),this.underlay=this._hyperlinkDialogWidget._underlay,this._targetType===v.TARGET.INTERNAL)this._radioButtonInternalHyperlink.set("checked",!0),this._updateTarget(),this._onChangeInternalRadio();else if(this._fileTargetEnabled&&this._targetType===v.TARGET.FILE)this.radioButtonFileHyperlink.set("checked",!0),this._onChangeFileRadio(),this.fileTextInput.inputNode.value=this._targetUrl;else{var t=_.sanitizeUrl(this._displayText);!this._targetUrl&&t.valid&&(this._targetUrl=this._displayText),this._updateTarget()}this._initializeHandler(),this.onTextKeyup()},_initializeHandler:function(){p.registerResponseHandler("FEvalResponse:"+C,(function(e,t){e[0].isError||t.resolve(e)}),this)},_selectTargetCallback:function(){this._hyperlinkDialogWidget.enableButton(l.OK)},_updateTarget:function(){this._targetType===v.TARGET.INTERNAL?(this._documentTargetSelector.updateSelectedTarget(this._anchor),this.urlTextInput.setValueInDom(b.internalLinkText)):this.urlTextInput.setValueInDom(this._targetUrl)},_createTextFields:function(){this.urlTextInput=new h({placeholder:b.defaultUrl}),this.urlTextInput.placeAt(this._hyperlinkDialogWidget.domNode.querySelector(".hyperlinkUrlInput")),this.urlTextInput.on("onkeyup",o.hitch(this,"onTextKeyup")),this.urlTextInput.startup(),this.urlTextInput.domNode.style.width=this._DIALOG_ELEMENT_WIDTH,setTimeout(function(){this.urlTextInput.inputNode.focus()}.bind(this),0),this.displayTextInput=new h({placeholder:b.mathworksPlaceholder,disabled:this._displayTextDisabled,value:this._displayTextDisabled?b.displayTextSelection:this._displayText}),this.displayTextInput.placeAt(this._hyperlinkDialogWidget.domNode.querySelector(".hyperlinkTextInput")),this.displayTextInput.on("onkeyup",o.hitch(this,"onTextKeyup")),this.displayTextInput.startup(),this.displayTextInput.domNode.style.width=this._DIALOG_ELEMENT_WIDTH,this._fileTargetEnabled&&(this.fileTextInput=new h({placeholder:b.filePlaceholder}),this.fileTextInput.placeAt(this._hyperlinkDialogWidget.domNode.querySelector(".hyperlinkFileInput")),this.fileTextInput.on("onkeyup",o.hitch(this,"onTextKeyup")),this.fileTextInput.startup(),this.fileTextInput.domNode.style.width=this._DIALOG_ELEMENT_WIDTH)},_createRadioButtons:function(){var e=this._hyperlinkDialogWidget.domNode.id;this.radioButtonExternalURL=new u({text:b.external,buttonGroup:"radioButtonGroup"+e,checked:!0}),this.radioButtonExternalURL.placeAt(this._hyperlinkDialogWidget.domNode.querySelector(".toggleRadioButtonExternalURL")),this.radioButtonExternalURL.on("change",function(e){e.mwEventData.newValue&&this._onChangeExternalRadio()}.bind(this)),this.radioButtonExternalURL.startup(),this.radioButtonExternalURL.focusNode.focus=function(){},this._radioButtonInternalHyperlink=new u({text:b.internal,buttonGroup:"radioButtonGroup"+e}),this._radioButtonInternalHyperlink.placeAt(this._hyperlinkDialogWidget.domNode.querySelector(".toggleRadioButtonInternalHyperlink")),this._radioButtonInternalHyperlink.on("change",function(e){e.mwEventData.newValue&&this._onChangeInternalRadio()}.bind(this)),this._radioButtonInternalHyperlink.startup(),this._radioButtonInternalHyperlink.focusNode.focus=function(){},this._fileTargetEnabled&&(this.radioButtonFileHyperlink=new u({text:b.otherFile,buttonGroup:"radioButtonGroup"+e}),this.radioButtonFileHyperlink.placeAt(this._hyperlinkDialogWidget.domNode.querySelector(".toggleRadioButtonFileHyperlink")),this.radioButtonFileHyperlink.on("change",function(e){e.mwEventData.newValue&&this._onChangeFileRadio()}.bind(this)),this.radioButtonFileHyperlink.startup(),this.radioButtonFileHyperlink.focusNode.focus=function(){},this.hyperlinkBrowse=new d({text:b.browseButtonText}),this.hyperlinkBrowse.placeAt(this._hyperlinkDialogWidget.domNode.querySelector(".hyperlinkBrowse")),this.hyperlinkBrowse.startup(),this.hyperlinkBrowse.on("click",function(){this._openFileChooser()}.bind(this)))},_onChangeFileRadio:function(){this.underlay.style.display="block",this.underlay.style.opacity="",this._documentTargetSelector.disableTargetSelector(),this.onTextKeyup(),this._hyperlinkDialogWidget.disableButton(l.OK),this.targetInternalHyperlinkTable.classList.add("hidden"),this.targetUrlTable.classList.add("hidden"),this.targetFileHyperlinkTable.classList.remove("hidden"),this.fileTextInput.inputNode.focus()},_onChangeInternalRadio:function(){this.underlay.style.display="none",this._documentTargetSelector.enableTargetSelector(this),this._hyperlinkDialogWidget.disableButton(l.OK),this.onTextKeyup(),this.displayTextInput.inputNode.focus(),this.targetUrlTable.classList.add("hidden"),this.targetFileHyperlinkTable.classList.add("hidden"),this.targetInternalHyperlinkTable.classList.remove("hidden")},_onChangeExternalRadio:function(){this.underlay.style.display="block",this.underlay.style.opacity="",this._documentTargetSelector.disableTargetSelector(),this.onTextKeyup(),this._hyperlinkDialogWidget.disableButton(l.OK),this.targetInternalHyperlinkTable.classList.add("hidden"),this.targetFileHyperlinkTable.classList.add("hidden"),this.targetUrlTable.classList.remove("hidden"),this.urlTextInput.inputNode.focus()},onTextKeyup:function(e){e=e||{},clearTimeout(this._timeout),this._timeout=setTimeout(function(){this._hyperlinkDialogWidget.domNode&&(this.radioButtonExternalURL.get("checked")?this._handleExternalURLTextKeyup(e):this._fileTargetEnabled&&this.radioButtonFileHyperlink.get("checked")?this._handleFileTextKeyup(e):this._radioButtonInternalHyperlink.get("checked")&&this._documentTargetSelector.isTargetSelected()&&this._hyperlinkDialogWidget.enableButton(l.OK))}.bind(this),this._DONE_TYPING_INTERVAL)},_handleFileTextKeyup:function(e){var t=this.displayTextInput.inputNode.value,i=this.fileTextInput.inputNode.value;""===i?(this._setValidationState(this.fileTextInput,"warning",b.emptyFilePath),this._hyperlinkDialogWidget.disableButton(l.OK)):m.isFileHyperlinkValid(i)?(this.fileTextInput.set("validationState","normal"),this._hyperlinkDialogWidget.enableButton(l.OK),e.keyCode===a.ENTER&&"text"===e.target.type&&t&&i&&this._handleOK()):(this._setValidationState(this.fileTextInput,"error",b.wrongFilePath),this._hyperlinkDialogWidget.disableButton(l.OK))},_handleExternalURLTextKeyup:function(e){var t=this.displayTextInput.inputNode.value,i=this.urlTextInput.inputNode.value;i=i.trim();var n=_.sanitizeUrl(i);""===i?(this._setValidationState(this.urlTextInput,"warning",b.emptyURL),this._hyperlinkDialogWidget.disableButton(l.OK)):n.valid?(this.urlTextInput.set("validationState","normal"),this._hyperlinkDialogWidget.enableButton(l.OK),e.keyCode===a.ENTER&&"text"===e.target.type&&t&&i&&this._handleOK()):(this._setValidationState(this.urlTextInput,"error",n.message),this._hyperlinkDialogWidget.disableButton(l.OK))},_setValidationState:function(e,t,i){e.set("validationState",t),e.set(t+"Text",i),this._timeoutValidation=setTimeout((function(){e.set(t+"Text","")}),2500)},_openFileChooser:function(){var e=new r;p.sendMessage({FEval:{function:"uigetfile",arguments:[this._absolutePath+"*.*"],nargout:2,priority:1}},e,C),e.then(function(e){if(1===e.length&&e[0].results[1]){var t=e[0].results[1];if(this._absolutePath&&0===t.indexOf(this._absolutePath))t="./"+t.substring(this._absolutePath.length),t+=e[0].results[0];else{var i=this._absolutePath.slice(0,-1);t=g.prepareRelativePath(i,t+e[0].results[0])}this.fileTextInput.inputNode.value=t,this.onTextKeyup()}}.bind(this))},_handleRemove:function(){this._targetUrl="",this._anchorId="",this._finalize()},_handleCancel:function(){this._hyperlinkDialogWidget.close()},_handleOK:function(){if(this._fileTargetEnabled&&this.radioButtonFileHyperlink.get("checked")){var e=this.fileTextInput.inputNode.value;if(!m.isFileHyperlinkValid(e))return;this._hyperlinkType=v.TARGET.FILE,this._targetUrl=e,this.displayTextInput.inputNode.value=this.displayTextInput.inputNode.value?this.displayTextInput.inputNode.value:e}else if(this._radioButtonInternalHyperlink.get("checked"))this._targetUrl="",this._anchorId=this._documentTargetSelector.getUrlForSelectedTarget(),this._hyperlinkType=v.TARGET.INTERNAL;else{if(this._targetUrl=this.urlTextInput.inputNode.value,!_.sanitizeUrl(this._targetUrl).valid)return;this._hyperlinkType=v.TARGET.WEB}this._finalize()},_finalize:function(){var e=this.displayTextInput.inputNode.value.trim()?this.displayTextInput.inputNode.value:this._targetUrl;!e&&this._anchorId&&(e=b.internalLinkText);var t={displayText:e,target:this._targetUrl.trim(),anchorId:this._anchorId,targetType:this._hyperlinkType};this._hyperlinkDialogWidget.close(),this._acceptCallBack(t)},_handleClose:function(){this._documentTargetSelector.disableTargetSelector(),this._documentTargetSelector.destroy(),clearTimeout(this._timeout),clearTimeout(this._timeoutValidation),this._closeCallBack()},close:function(){this._hyperlinkDialogWidget.close()},destroy:function(){p.deregisterResponseHandler("FEvalResponse:"+C)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="rteHyperlinkDialog" data-dojo-attach-point ="contentNode" data-dojo-attach-event="onkeyup:onTextKeyup">\n\n <table class="hyperlinkDetails">\n <tr>\n <td>\n <label data-dojo-attach-point ="displayTextLabel" for="displayTextInput"></label>\n </td>\n </tr>\n <tr class="displaytext-row">\n <td>\n <div class="hyperlinkTextInput"></div>\n </td>\n </tr>\n <tr>\n <td class="radioButtons">\n <div class="toggleRadioButtonExternalURL"></div>\n <div class="toggleRadioButtonInternalHyperlink"></div>\n <div class="toggleRadioButtonFileHyperlink"></div>\n </td>\n </tr>\n </table>\n\n <table class="hyperlinkDetails" data-dojo-attach-point ="targetUrlTable">\n <tr>\n <td><label data-dojo-attach-point ="urlTextLabel" for="urlTextInput"></label></td>\n </tr>\n <tr class="urltext-row">\n <td>\n <div class="hyperlinkUrlInput"></div>\n </td>\n </tr>\n </table>\n\n <table class="hyperlinkDescription hidden" data-dojo-attach-point ="targetInternalHyperlinkTable">\n <tr>\n <td width="120px">\n <p data-dojo-attach-point ="internalTextLabel" for="internalSelection">\n </p>\n </td>\n </tr>\n </table>\n\n <table class="hyperlinkDetails hidden" data-dojo-attach-point ="targetFileHyperlinkTable">\n <tr>\n <td><label data-dojo-attach-point ="fileTextLabel" for="fileTextInput"></label></td>\n </tr>\n <tr class="urltext-row">\n <td>\n <div class="hyperlinkFileInput"></div>\n </td>\n <td>\n <div class="hyperlinkBrowse"></div>\n </td>\n </tr>\n </table>\n</div>\n'},function(e,t,i){e.exports={editImage:"イメージの編集",generalHyperlink:"ハイパーリンク...",insertImage:"イメージの挿入",resetImage:"イメージ サイズのリセット",tableOfContentsHeading:"目次",updateTableOfContents:"目次の更新"}},function(e,t,i){e.exports={editImage:"이미지 편집",generalHyperlink:"하이퍼링크...",insertImage:"이미지 삽입",resetImage:"이미지 크기 재설정",tableOfContentsHeading:"목차",updateTableOfContents:"목차 업데이트"}},function(e,t,i){e.exports={editImage:"编辑图像",generalHyperlink:"超链接...",insertImage:"插入图像",resetImage:"重置图像大小",tableOfContentsHeading:"目录",updateTableOfContents:"更新目录"}},function(e,t,i){e.exports={root:{editImage:"Edit Image",generalHyperlink:"Hyperlink...",insertImage:"Insert Image",resetImage:"Reset Image Size",tableOfContentsHeading:"Table of Contents",updateTableOfContents:"Update table of contents"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(5345)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.htmlmimeconverter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(427)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e){e.registerNodeHandler("A",t.hitch(this,"_convertHyperlinkNode"))},_convertHyperlinkNode:function(e,t){t.setHasExplicitParagraph(),e.hasAttribute("href")&&t.appendInnerNode(new i([],{hyperlink:{target:e.getAttribute("href"),anchor:void 0}}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5347)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(237),i(313),i(314),i(427)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e){e.registerNodeConverter(r,t.hitch(this,"_convertFromHyperlinkNode"))},_convertFromHyperlinkNode:function(e){var t=e.getStartPosition(),r=e.getEndPosition();return i.isInTextLevelContainer(t.getNode())&&t.getNode().parent===r.getNode().parent&&i.isEdgeOfTextLevelContainer(t.getNode(),t.getOffset())&&i.isEdgeOfTextLevelContainer(r.getNode(),r.getOffset())&&0!==n.comparePositions(t,r)?[{flavor:o.MATLAB_RICHTEXT,content:JSON.stringify([t.getNode().parent.serialize()])}]:[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5349),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.view","rtc.internaldocument","rtc.tooltippreview"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(247),i(627),i(1097),i(5350)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t,i){this._view=e,this._tooltipPreviewers=new o(e,t,i)},priority:function(){return 2},getTooltipContent:function(e,t,i){i(this._getTooltip(e))},_getTooltip:function(e){if(e.parent&&"HyperlinkNode"===e.parent.className&&this._isElementInView(e)){var i=e.parent.hyperlink.getReference(),n=e.parent.hyperlink.isInternalTarget(),o=n?"":i,r=o?t.escapeHtml(o):"";if(r)return r;if(n)return this._tooltipPreviewers.createPreviewContainer(e)}},_isElementInView:function(e){var t=this._view.getNodeBox(e).getBoundingClientRect(),i=this._view.getDomtarget().getBoundingClientRect();return t.top>=i.top&&t.bottom<=i.bottom}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(206),i(733),i(2093)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{MORE:"...",_CONTAINER_ELEMENT_TYPE:"div",_MAX_TOOLTIP_SIZE:100,_TEXT_ELEMENT_TYPE:"span",_UNKNOWN_TARGET_FONT_SIZE:"smaller",_UNKNOWN_TARGET_FONT_STYLE:"italic",_UNKNOWN_TARGET_NODE_COLOR:"red",constructor:function(e,t,i){this._view=e,this._internalDocument=t,this._tooltipPreviewer=i},createPreviewContainer:function(e){var t=e.parent.hyperlink,i=n.getNodeForAnchorId(this._internalDocument.root,t.getAnchor()),o=document.createElement(this._CONTAINER_ELEMENT_TYPE),r=this._MAX_TOOLTIP_SIZE;if(!i){var a=this.getBox(e);return o.appendChild(this._createTargetNotFound(a)),o}if(c=this._getPreviewForNode(i,r))return o.appendChild(c.node),o;for(var s=!1,l=0;l<i.children.length;l++){var c,d=i.children[l];if((c=this._getPreviewForNode(d,r))||(s=!0,c=this.createSimpleTextContentPreview(d,r)),r-=c.usedSize,o.appendChild(c.node),r<=0)break}if(this._isEmptyText(o,r)){if(!s)return this._createEmptyLine(o),o;o.innerText=this.MORE}return o},applyRichTextNodeStyle:function(e,i){var n=this.getBox(e);n=n.firstChild?n.firstChild:n;var o=t.getComputedStyle(n);i.style.fontWeight=e.bold?"bold":o.fontWeight,i.style.fontStyle=e.italic?"italic":o.fontStyle,i.style.textDecoration=e.underline?"underline":o.textDecoration,i.style.fontFamily=o.fontFamily,i.style.color=o.color,i.style.whiteSpace=o.whiteSpace},getBox:function(e){var t;return(t=this._view.getNodeBox(e))&&"none"!==t.style.display||((t=document.createElement(this._CONTAINER_ELEMENT_TYPE)).innerText=this.MORE),t},createSimpleTextContentPreview:function(e,t){var i=Math.min(t,e.getText().length),n=e.isTextContainerNode()?this._CONTAINER_ELEMENT_TYPE:this._TEXT_ELEMENT_TYPE,o=document.createElement(n);if(e.children)for(var r=0;r<e.children.length;r++){var a=this._getPreviewForNode(e.children[r],t);a||(a=this.createSimpleTextContentPreview(e.children[r],t)),o.appendChild(a.node),t-=a.usedSize}else this.applyRichTextNodeStyle(e,o),o.innerText=e.getText().substr(0,i),i>0&&i<e.getText().length&&(o.innerText=o.innerText+this.MORE);return{node:o,usedSize:i}},_isEmptyText:function(e,t){return 0===e.innerText.length&&t===this._MAX_TOOLTIP_SIZE},_getPreviewForNode:function(e,t){for(var i=null,n=0;n<this._tooltipPreviewer.length;n++){if(i=this._tooltipPreviewer[n].createPreview(e,t,this))break}return i},_createTargetNotFound:function(e){var t=document.createElement(this._CONTAINER_ELEMENT_TYPE),n=document.createElement(this._TEXT_ELEMENT_TYPE);return n.innerText=o.targetRemoved,n.style.fontStyle=this._UNKNOWN_TARGET_FONT_STYLE,n.style.fontSize=this._UNKNOWN_TARGET_FONT_SIZE,t.appendChild(n),e.parentNode.style.color=this._UNKNOWN_TARGET_NODE_COLOR,this._handler=i(e,"mouseleave",this._mouseLeave.bind(this)),t},_createEmptyLine:function(e){var t=document.createElement(this._CONTAINER_ELEMENT_TYPE),i=document.createElement(this._TEXT_ELEMENT_TYPE);i.innerText=o.emptyLine,i.style.fontStyle=this._UNKNOWN_TARGET_FONT_STYLE,i.style.fontSize=this._UNKNOWN_TARGET_FONT_SIZE,t.appendChild(i),e.appendChild(t)},_mouseLeave:function(e){e.srcElement.parentNode.style.color="",this._handler.remove()}})}),e,t),e.exports=o},function(e,t,i){e.exports={emptyLine:"空行",targetRemoved:"ターゲットが削除されました"}},function(e,t,i){e.exports={emptyLine:"빈 라인",targetRemoved:"대상이 제거됨"}},function(e,t,i){e.exports={emptyLine:"空行",targetRemoved:"目标已删除"}},function(e,t,i){e.exports={root:{emptyLine:"Empty line",targetRemoved:"Target removed"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(5356)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(685),i(402),i(438),i(427),i(733)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t],{_DOC_ID_SCHEMA:"docid:",_XLINK_ROLE_VALUE:"http://docbook.org/xlink/role/olink",constructor:function(e){this._view=e},getApplicableNodeClass:function(){return o},_processElement:function(e,t,o){var a=t.hyperlink.getReference();if(a&&this._isDocId(a)){var s=a.replace(this._DOC_ID_SCHEMA,"");s=s.replace(/^([^#.]*)\./,"$1#"),e.setAttribute(i.XLINK_HREF,s),e.setAttribute(i.XLINK_ROLE,this._XLINK_ROLE_VALUE)}else if(t.hyperlink.isInternalTarget())a="#"+n.getInternalAnchorPrefix(o)+t.hyperlink.getAnchor(),e.setAttribute(i.XLINK_HREF,a),e.setAttribute(i.XLINK_ROLE,this._XLINK_ROLE_VALUE);else if(t.hyperlink.isExternalFileTarget()){var l=r.appendMatlabOpenForFilePath(a);e.setAttribute(i.XLINK_HREF,l)}else e.setAttribute(i.XLINK_HREF,a);return e},_isDocId:function(e){return 0===e.indexOf(this._DOC_ID_SCHEMA)},_getTagName:function(e){return i.LINK}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5358)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(951),i(252),i(427)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{constructor:function(){},getApplicableNodeClass:function(){return n},enter:function(e,i,n){if(i.hyperlink.isInternalTarget())return!1;let o='<a href = "'+t.escapeHtml(i.hyperlink.getReference()).replace(/"/g,"&quot;")+'">';e.addHelpText(o)},leave:function(e,t,i){t.hyperlink.isInternalTarget()||e.addHelpText("</a>")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5360)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(951),i(627),i(252),i(427),i(1477)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{constructor:function(){},getApplicableNodeClass:function(){return o},enter:function(e,i,n){var o="<a";return n.hyperlinkTarget&&i.hyperlink.isWebTarget()&&(o+=' target = "'+t.escapeHtml(n.hyperlinkTarget)+'"'),o+=' href = "'+this._normalizeUrl(i.hyperlink)+'"',o+=">",e.addToBody(o),!1},leave:function(e,t,i){e.addToBody("</a>")},_normalizeUrl:function(e){var i;return i=e.isInternalTarget()?"#"+e.getAnchor():e.isExternalFileTarget()?r.changeMLXFilePathExtension(e.getReference(),".html"):e.getReference(),t.escapeHtml(i).replace(/"/g,"&quot;")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5362)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(427)],o=i.dj.d(n,(function(e,t,i){return e([t],{_HYPERLINK_START_DELIMITER:"<",_HYPERLINK_END_DELIMITER:">",constructor:function(){},getApplicableNodeClass:function(){return i},enter:function(e,t,i){t.hyperlink.isInternalTarget()||e.addMCode(this._HYPERLINK_START_DELIMITER+t.hyperlink.getReference()+" ")},leave:function(e,t,i){t.hyperlink.isInternalTarget()||e.addMCode(this._HYPERLINK_END_DELIMITER)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5364)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(627),i(252),i(427)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_HYPERLINK_COMMAND:"href",_HYPERREF_COMMAND:"hyperref",constructor:function(){},getApplicableNodeClass:function(){return n},enter:function(e,t,i){var n,o;t.hyperlink.isInternalTarget()?(o=t.hyperlink.getAnchor(),n=this._HYPERREF_COMMAND+"["+o+"]"):(o=t.hyperlink.getReference(),n=this._HYPERLINK_COMMAND+"{"+o+"}"),e.openCommand(n)},leave:function(e,t,i){e.closeCommand()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5366)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(357),i(426),i(627),i(427),i(1477)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t],{_STYLES:["color"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return r},enter:function(e,t,i){return e.openWrapperElement(),!1},leave:function(e,t,o){var r=n.createFOElementWithStyles(i.BASIC_LINK,t,this._STYLES,this._view),s=t.hyperlink.getReference();t.hyperlink.isInternalTarget()?r.setAttribute("internal-destination",t.hyperlink.getAnchor()):(t.hyperlink.isExternalFileTarget()&&(s=a.changeMLXFilePathExtension(t.hyperlink.getReference(),".pdf")),r.setAttribute("external-destination",s)),e.closeWrapperElement(r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5368)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.serializers.containers.hyperlinkcontainer"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(627),i(319),i(300),i(524),i(1477)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{_INTERNAL_PREFIX:"MW_",_TARGET_MODE:"External",constructor:function(e){this._hyperlinkcontainer=e},write:function(e,i){var s;if(t.assert(i.opcPackage,"Required argument missed: 'opcPackage'"),t.assert(i.serializers,"Required argument missed: 'serializers'"),e.hyperlink.anchor){var l=this._INTERNAL_PREFIX+e.hyperlink.anchor;s=o.createHyperLinkTag(null,l)}else{var c=a.changeMLXFilePathExtension(e.hyperlink.target,".docx");c=encodeURI(decodeURI(c));var d=i.opcPackage.getParts()[0].createRelationship(r.HYPERLINK_SCHEMA,c,this._TARGET_MODE);(s=o.createXMLElement(n.HYPERLINK_TAG)).setAttribute(n.RUN_OF_TEXT_TAG_NAME+":"+n.TYPE_ID_TAG,d)}e.children.forEach((function(e){var t=i.serializers.getSerializer(e.className).write(e,i),a=t.getElementsByTagName(n.NAMESPACE_TAG+":"+n.RUN_OF_TEXT_PROPERTY_TAG_NAME)[0];a||(a=o.createXMLElement(n.RUN_OF_TEXT_PROPERTY_TAG_NAME),t.insertBefore(a,t.firstChild));var l=o.createXMLElement(r.R_STYLE);l.setAttribute(r.VALUE_TAG,r.HYPERLINK),a.appendChild(l),s.appendChild(t)}),this);var u=document.createElement(this.getXMLType());return u.appendChild(s),u.childNodes[0]},getXMLType:function(){return this._hyperlinkcontainer.getXMLType()},getNodeType:function(){return this._hyperlinkcontainer.getNodeType()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5370)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(427)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5372)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(270),i(427),i(500),i(686)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){},getApplicableNodeClass:function(){return i},getCoordinateFromPosition:function(e){return null},getDelegatedPositionForCoordinate:function(e){var i=e.getNode(),n=e.getOffset(),o=i.findChildIndexForPosInNode(n);return new t(i.children[o.n],o.posInNode)},_getClientRects:function(e){var t=document.createRange(),i=this.getDomNode(e);try{t.selectNodeContents(i)}catch(e){return[]}for(var o=t.getClientRects(),r=[],a=0;a<o.length;a++)0===o[a].width&&o.length>1||(r[r.length]=o[a]);return 0===r.length&&(r=o),n.getClientRectsArray(r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5374)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(391),i(427)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return i},layout:function(e,t){var i=t.hyperlink.getAnchor()?"#"+t.hyperlink.getAnchor():"",n={class:"hyperlinkNode",rel:"noreferrer noopener",href:(t.hyperlink.getReference()||"")+i};return i||(n.target="_blank"),e.layoutInto(t,"a",n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5376)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(389),i(427),i(424),i(390),i(920),i(1946),i(1478),i(347),i(525)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([o],{_compatibleParents:[c],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return n},getReceivingInstruction:function(e,t){if(e.isAtEdge())return new a;if(t instanceof i){var n=d.cloneRichTextNodeFromPositionWithText(t.text,e);return new l(n)}return new s},getTopLevelInsertionInstruction:function(e,t,i,n,o){return{insertInRoot:{relationToPosition:r.RELATION.AFTER,containerConstructor:c}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5378)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(229),i(319),i(521),i(300),i(733)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(r,{write:function(e,t){i.assert(t.serializers,"Required argument missed: 'serializers'");var n=document.createElement(this.getXMLType()),o=s.appendMatlabOpenForFilePath(e.hyperlink.target),r=a.createHyperLinkTag(o,e.hyperlink.anchor);return e.children.forEach((function(e){var i=t.serializers.getSerializer(e.className);r.appendChild(i.write(e,t))}),this),n.appendChild(r),n.childNodes[0]},read:function(e){var t=this.inherited(arguments);return Array.isArray(e)?e.forEach((function(e,i){t.readObject[i].hyperlink=this._getTarget(e)}),this):t.readObject.hyperlink=this._getTarget(e),t},_getTarget:function(e){var t={};return t.target=e.getAttributeNS(o.NAMESPACE_URL,o.DOC_LOCATION),t.anchor=e.getAttributeNS(o.NAMESPACE_URL,o.ANCHOR),t.anchor=t.anchor?t.anchor.replace("internal:",""):null,t},getXMLType:function(){return"hyperlink"},getNodeType:function(){return"HyperlinkNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5380)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.hyperlinkservice","rtc.domnode","rtc.internaldocument","rtc.cursor","rtc.view","rtc.actionservice"]}},createInstance:function(e,t,n,o,r,a){return new i(t,n,o,r,a,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(237),i(733),i(251)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e,t,i,n,o,r){this._internalDocument=t,this._cursor=i,this._view=n,this._rtcDomNode=e,this._hyperlinkService=r,this._backwardStack=[],this._forwardStack=[],this._currentNode=null,o.loadActions(this._actions())},_actions:function(){return[{id:o.HYPERLINK.HYPERLINK_SERVICE_BACKWARD_ACTION,key:"alt_left",platformKey:{mac:"ctrl_alt_left"},enabled:!0,callback:t.hitch(this,this._prefBookmark)},{id:o.HYPERLINK.HYPERLINK_SERVICE_FORWARD_ACTION,key:"alt_right",platformKey:{mac:"ctrl_alt_right"},enabled:!0,callback:t.hitch(this,this._nextBookmark)}]},_nextBookmark:function(){var e=this._forwardStack.pop();return!(!i.isInDocument(e)||e===this._currentNode)&&(this._backwardStack.push(this._currentNode),this._cursor.setPosition(e.lastChild(),0,!0),e.maxOffset()>0&&this._view.scrollNodeToPercent(e.rootContainer(),0),this._currentNode=e,!0)},_prefBookmark:function(){var e=this._backwardStack.pop();return!(!i.isInDocument(e)||e===this._currentNode)&&(this._forwardStack.push(this._currentNode),this._cursor.setPosition(e.lastChild(),0,!0),e.maxOffset()>0&&this._view.scrollNodeToPercent(e.rootContainer(),0),this._currentNode=e,!0)},_isInternalUrl:function(e){return 0===e.indexOf(n.INTERNAL)},_openInternalHyperlink:function(e){this._currentNode=this._cursor.getNode().textContainer(),this._backwardStack.push(this._currentNode),this._forwardStack=[],this._cursor.setPosition(e,0),this.onHyperlinkOpen(e),this._view.scrollNodeToPercent(e.rootContainer(),0),this._currentNode=e},openHyperReference:function(e,t){if(!e.isInternalTarget())return this._hyperlinkService.openHyperReference(e,t);var i=n.getNodeForAnchorId(this._internalDocument.root,e.getAnchor());return!!i&&(this._openInternalHyperlink(i),!0)},onHyperlinkOpen:function(e){},openUrl:function(e){if(this._isInternalUrl(e)){var t=n.getNodeForInternalUrl(this._internalDocument.root,e);return!!t&&(this._openInternalHyperlink(t),!0)}return this._hyperlinkService.openUrl(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5382)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.headingmodel"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(669),i(5383)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{_HEADER_PREFIX:"H_",_TITLE_PREFIX:"T_",constructor:function(e,t){this._internalDocument=e,this._headingModel=t,this._tempAnchorIdRegister={}},createAnchor:function(e){var t="M_";i.isHeadingNode(e)&&(t=1===e.level?this._TITLE_PREFIX:this._HEADER_PREFIX);for(var o=n.createAnchorId(t);this._tempAnchorIdRegister[o];)o=n.createAnchorId(t);return this._tempAnchorIdRegister[o]=e,e.anchorId=o,o},_updateAnchorIdRegister:function(){this._internalDocument.root.children.forEach((function(e){var t=e.anchorId;t&&!this._tempAnchorIdRegister[t]&&(this._tempAnchorIdRegister[t]=e)}),this)},createHeadingIds:function(){var e=[];return this._headingModel.getHeadingNodes().forEach((function(t){this.createNodeId(t),e[e.length]=t}),this),e},createNodeId:function(e){return this._updateAnchorIdRegister(),e.anchorId&&!this._tempAnchorIdRegister[e.anchorId]&&(this._tempAnchorIdRegister[e.anchorId]=e),this._tempAnchorIdRegister[e.anchorId]===e?e.anchorId:this.createAnchor(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(229)],o=i.dj.d(n,(function(e){return{_createUID:function(){return e.generateUuid()},createAnchorId:function(e){return e+this._createUID()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5385)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.htmlmimeconverter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(502)],o=i.dj.d(n,(function(e,t,i){return e(null,{_IMG_URI_DATA_ATTRIBUTE:"data-imguri",_IMG_WIDTH_ATTRIBUTE:"width",_IMG_HEIGHT_ATTRIBUTE:"height",_REGEXP_VALID_DIM:/^\d+(\.\d+)?(px)?$/,constructor:function(e){this._styleStack=[{}],this._fromhtml=e,this._fromhtml.registerNodeHandler("IMG",t.hitch(this,"_convertImageNode"))},_convertImageNode:function(e,t){var n,o;(e.src.match(/^data:image\/\S+;base64,/)?n=new i({imgSrc:e.src}):e.hasAttribute(this._IMG_URI_DATA_ATTRIBUTE)&&(n=new i({imgSrc:e.getAttribute("data-imguri")})),n)&&(e.hasAttribute(this._IMG_WIDTH_ATTRIBUTE)&&(o=e.getAttribute(this._IMG_WIDTH_ATTRIBUTE)).match(this._REGEXP_VALID_DIM)&&(n.width=parseInt(o,10)||-1),e.hasAttribute(this._IMG_HEIGHT_ATTRIBUTE)&&(o=e.getAttribute(this._IMG_HEIGHT_ATTRIBUTE)).match(this._REGEXP_VALID_DIM)&&(n.height=parseInt(o,10)||-1),t.appendNode(n))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5387)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursor","rtc.actionservice","rtc.richtext.images","rtc.focusservice","rtc.contextmenu.documentcontributor"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(207),i(294),i(251),i(5388),i(2094),i(950)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(n,{_ACTION_ID:r.EDIT_IMAGE.EDIT_IMAGE_ACTION,_CONTEXT_MENU_GROUP:o.RICH_TEXT,constructor:function(e,n,o,r,a,l){this._cursor=n,this._focusService=a,this._internalDocument=e,this._imagesPlugin=r,this._actionService=o,this._contextMenuContributor=l,this._actionService.loadActions([{id:this._ACTION_ID,enabled:!1,text:s.contextmenuLabel,callback:t.hitch(this,"_editImageAction")}]),this.own(i.after(this._cursor,"onChange",t.hitch(this,"_updateActions"))),this.own(i.after(this._contextMenuContributor,"updateActions",this._updateActions.bind(this))),this._addActionsToContextMenu()},_updateActions:function(){var e=!!this._imagesPlugin.imageUnderCursor();this._actionService.updateAction(this._ACTION_ID,{enabled:e}),e||this._contextMenuContributor.hideAction(this._ACTION_ID)},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,this._ACTION_ID)},_editImageAction:function(){return!!this._actionService.getAction(this._ACTION_ID).enabled&&(this._openDialog(),!0)},_openDialog:function(){var e=this._cursor.isCursorReadOnly(),i=this._imagesPlugin.imageUnderCursor();this._dialog=new a(t.hitch(this,this._dlgAccept),t.hitch(this,this._dlgClose),i,e)},_dlgClose:function(){this._focusService.setFocus()},_dlgAccept:function(e){this._imagesPlugin.startImageChange();var t=e.node;t?(this._internalDocument.changeNodeAttributes(t,e),this._cursor.onUpdate()):t=this._imagesPlugin.insertImageFromData(e),this._imagesPlugin.endImageChange(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(204),i(206),i(236),i(273),i(262),i(308),i(286),i(269),i(422),i(520),i(258),i(493),i(2094),i(5393)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return n([t,e,i],{templateString:_,_EDIT_IMAGE__DIALOG_ID:"rtcEditImageDialog",_ALTTEXT_LABEL_CLASS:"editImageAlttextLabel",_ALTTEXT_CLASS:"editImageAlttext",_ALIGN_LABEL_CLASS:"editImageAlignLabel",_ALIGN_CLASS:"editImageAlign",_SIZE_LABEL_CLASS:"editImageSizeSectionLabel",_SIZE_BUTTONS_GROUP:"editImageSizeButtonsGroup",_SIZE_RADIOBUTTONS_CLASS:"editImageSizeRadioButtons",_RELATIVE_SIZE_RADIOBUTTON_CLASS:"editImageSizeRadioButtonRelative",_ABSOLUTE_SIZE_RADIOBUTTON_CLASS:"editImageSizeRadioButtonAbsolute",_WIDTH_LABEL_CLASS:"editImageWidthLabel",_WIDTH_CLASS:"editImageWidth",_HEIGHT_LABEL_CLASS:"editImageHeightLabel",_HEIGHT_CLASS:"editImageHeight",_ABSOLUTESIZE_LABEL_CLASS:"editImageAbsoluteSizeLabel",_ABSOLUTESIZE_CLASS:"editImageAbsoluteSize",_SIZE_KEEPRATIO_BUTTON_CLASS:"editImageSizeKeepRatioButton",_MAX_ABSOLUTE_SIZE:16384,_RELATIVE_SIZE_VALUES:[25,50,75,100,125,150,175,200],constructor:function(e,t,i,n){this._acceptCallBack=e,this._closeCallBack=t,this._imgNode=i,this._readOnly=n},postCreate:function(){this.inherited(arguments),this._tooltips=[],this._init(),this._editImageDialogWidget=l.createDialog({title:m.dialogTitle,content:this,buttons:[s.OK,s.CANCEL],"data-test-id":this._EDIT_IMAGE__DIALOG_ID,className:this._EDIT_IMAGE__DIALOG_ID,dialogType:l.MODAL,draggable:!0,resizable:!1,defaultActionButton:s.NO_DEFAULT_ACTION,closeOnEscape:!0,height:"fit-content"}),this._editImageDialogWidget.addButtonEventListener(s.OK,this.onOK.bind(this),!1),this._editImageDialogWidget.addButtonEventListener(s.CLOSE,this.onCancel.bind(this),!1),this._editImageDialogWidget.on("close",this.onClose.bind(this)),this._createAlttext(),this._createAlignment(),this._createSizeSettings(),this._update()},_createAlttext:function(){var e=this._editImageDialogWidget.domNode,t=e.getElementsByClassName(this._ALTTEXT_LABEL_CLASS)[0],i=e.getElementsByClassName(this._ALTTEXT_CLASS)[0],n=new u({text:m.alttextLabel});t.appendChild(n.domNode),n.startup(),this._alttextInput=new f({value:this._imgNode.altText}),i.appendChild(this._alttextInput.domNode),this._alttextInput.startup(),this._tooltips.push(g.createTooltip({referenceNode:this._alttextInput.domNode,content:{text:m.alttextTooltip}}))},_createAlignment:function(){var e=this._editImageDialogWidget.domNode,t=e.getElementsByClassName(this._ALIGN_LABEL_CLASS)[0],i=e.getElementsByClassName(this._ALIGN_CLASS)[0],n=new u({text:m.alignLabel});t.appendChild(n.domNode),n.startup();var o=[{label:m.alignTop,value:"top"},{label:m.alignMiddle,value:"middle"},{label:m.alignBaseline,value:"baseline"},{label:m.alignBottom,value:"bottom"}];this._verticalAlign=new d({items:o,value:this._imgNode.verticalAlign||"baseline"}),i.appendChild(this._verticalAlign.domNode),this._verticalAlign.startup(),this._tooltips.push(g.createTooltip({referenceNode:this._verticalAlign.domNode,content:{text:m.alignTooltip}}))},_createSizeSettings:function(){var e=this._editImageDialogWidget.domNode.getElementsByClassName(this._SIZE_LABEL_CLASS)[0],t=new u({text:m.sizeLabel});e.appendChild(t.domNode),t.startup();var i=Math.floor(Math.min(this._MAX_ABSOLUTE_SIZE/this._imgNode.naturalWidth*100,this._MAX_ABSOLUTE_SIZE/this._imgNode.naturalHeight*100));this._createRadioButtons(),this._createWidthRow(i),this._createHeightRow(i),this._createKeepRatio()},_createRadioButtons:function(){var e=this._editImageDialogWidget.domNode.getElementsByClassName(this._SIZE_RADIOBUTTONS_CLASS)[0];this._relativeSizeCheckBox=new h({text:m.relativeSizeLabel,buttonGroup:this._SIZE_BUTTONS_GROUP,checked:this._useRelativeSizes,class:this._RELATIVE_SIZE_RADIOBUTTON_CLASS}),this._relativeSizeCheckBox.on("change",function(e){this._useRelativeSizes=e.mwEventData.newValue,this._update()}.bind(this)),e.appendChild(this._relativeSizeCheckBox.domNode),this._relativeSizeCheckBox.startup(),this._tooltips.push(g.createTooltip({referenceNode:this._relativeSizeCheckBox.domNode,content:{text:m.relativeSizeTooltip}})),this._absoluteSizeCheckBox=new h({text:m.absoluteSizeLabel,buttonGroup:this._SIZE_BUTTONS_GROUP,checked:!this._useRelativeSizes,class:this._ABSOLUTE_SIZE_RADIOBUTTON_CLASS}),e.appendChild(this._absoluteSizeCheckBox.domNode),this._absoluteSizeCheckBox.startup(),this._tooltips.push(g.createTooltip({referenceNode:this._absoluteSizeCheckBox.domNode,content:{text:m.absoluteSizeTooltip}}))},_createWidthRow:function(e){var t=this._editImageDialogWidget.domNode,i=t.getElementsByClassName(this._WIDTH_LABEL_CLASS)[0];this._widthRowLabel=new u({text:m.widthLabel}),i.appendChild(this._widthRowLabel.domNode),this._widthRowLabel.startup(),i=t.getElementsByClassName(this._WIDTH_CLASS)[0];var n=[];this._RELATIVE_SIZE_VALUES.forEach((function(e){n.push({label:""+e,value:e})})),this._relativeWidth=new d({value:100,editable:!0,items:n}),this._relativeWidth.on("change",function(t){var i=this._validatePositiveInteger(this._relativeWidth,t,e);i&&(this._width=Math.round(this._imgNode.naturalWidth*i/100),this._update())}.bind(this)),i.appendChild(this._relativeWidth.domNode),this._relativeWidth.startup(),this._tooltips.push(g.createTooltip({referenceNode:this._relativeWidth.domNode,content:{text:m.relativeWidthTooltip}})),this._absoluteWidth=new p({horizontalAlignment:"left",value:this._width});var o=Math.floor(Math.min(this._MAX_ABSOLUTE_SIZE,this._MAX_ABSOLUTE_SIZE/this._imgNode.naturalHeight*this._imgNode.naturalWidth));this._absoluteWidth.on("change",function(e){this._width=Math.round(parseInt(e.mwEventData.newValue,10)),this._update()}.bind(this)),i.appendChild(this._absoluteWidth.domNode),this._absoluteWidth.startup(),this._absoluteWidth.set("limits",{minimum:1,maximum:o}),this._absoluteWidth.set("errorText",a.substitute(m.positiveIntegerExpected,[o])),this._tooltips.push(g.createTooltip({referenceNode:this._absoluteWidth.domNode,content:{text:m.absoluteWidthTooltip}}))},_createHeightRow:function(e){var t=this._editImageDialogWidget.domNode,i=t.getElementsByClassName(this._HEIGHT_LABEL_CLASS)[0];this._heightRowLabel=new u({text:m.heightLabel}),i.appendChild(this._heightRowLabel.domNode),this._heightRowLabel.startup(),i=t.getElementsByClassName(this._HEIGHT_CLASS)[0];var n=[];this._RELATIVE_SIZE_VALUES.forEach((function(e){n.push({label:""+e,value:e})})),this._relativeHeight=new d({value:100,editable:!0,items:n}),this._relativeHeight.on("change",function(t){var i=this._validatePositiveInteger(this._relativeHeight,t,e);i&&(this._height=Math.round(this._imgNode.naturalHeight*i/100),this._keepRatio&&(this._ratio=this._height/this._imgNode.naturalHeight,this._width=this._imgNode.naturalWidth*this._ratio),this._update())}.bind(this)),i.appendChild(this._relativeHeight.domNode),this._relativeHeight.startup(),this._tooltips.push(g.createTooltip({referenceNode:this._relativeHeight.domNode,content:{text:m.relativeHeightTooltip}})),this._absoluteHeight=new p({horizontalAlignment:"left",value:this._height});var o=Math.floor(Math.min(this._MAX_ABSOLUTE_SIZE,this._MAX_ABSOLUTE_SIZE/this._imgNode.naturalWidth*this._imgNode.naturalHeight));this._absoluteHeight.on("change",function(e){this._height=Math.round(parseInt(e.mwEventData.newValue,10)),this._keepRatio&&(this._ratio=this._height/this._imgNode.naturalHeight,this._width=this._imgNode.naturalWidth*this._ratio),this._update()}.bind(this)),i.appendChild(this._absoluteHeight.domNode),this._absoluteHeight.startup(),this._absoluteHeight.set("limits",{minimum:1,maximum:o}),this._absoluteHeight.set("errorText",a.substitute(m.positiveIntegerExpected,[o])),this._tooltips.push(g.createTooltip({referenceNode:this._absoluteHeight.domNode,content:{text:m.absoluteHeightTooltip}}))},_createKeepRatio:function(){var e=this._editImageDialogWidget.domNode.getElementsByClassName(this._SIZE_KEEPRATIO_BUTTON_CLASS)[0];this._keepRatioCheckBox=new c({text:m.keepRatioLabel,checked:this._keepRatio}),this._keepRatioCheckBox.on("change",function(e){this._keepRatio=e.mwEventData.newValue,this._update()}.bind(this)),e.appendChild(this._keepRatioCheckBox.domNode),this._keepRatioCheckBox.startup(),this._tooltips.push(g.createTooltip({referenceNode:this._keepRatioCheckBox.domNode,content:{text:m.keepRatioTooltip}}))},_validatePositiveInteger:function(e,t,i){var n=Math.round(parseInt(t.mwEventData.newValue,10));return!n||n<0||n>i?(e.set("validationState","error"),e.set("errorText",a.substitute(m.positiveIntegerExpected,[i])),this._editImageDialogWidget.disableButton(s.OK),!1):n},_init:function(){this._verticalAlign=this._imgNode.verticalAlign,this._keepRatio=Math.round(this._imgNode.width/this._imgNode.height*5e3)===Math.round(this._imgNode.naturalWidth/this._imgNode.naturalHeight*5e3),this._ratio=this._imgNode.width/this._imgNode.naturalWidth,this._width=this._imgNode.width,this._height=this._imgNode.height,this._useRelativeSizes=!0},_update:function(){this._ratio=this._width/this._imgNode.naturalWidth,this._keepRatio&&(this._height=this._imgNode.naturalHeight*this._ratio),!0===this._useRelativeSizes?(this._relativeWidth.domNode.style.display="inline-block",this._absoluteWidth.domNode.style.display="none",this._relativeHeight.domNode.style.display="inline-block",this._absoluteHeight.domNode.style.display="none"):(this._relativeWidth.domNode.style.display="none",this._absoluteWidth.domNode.style.display="inline-block",this._relativeHeight.domNode.style.display="none",this._absoluteHeight.domNode.style.display="inline-block"),this._relativeWidth.set("value",Math.round(100*this._ratio)),this._relativeWidth.set("validationState","normal"),this._relativeHeight.set("value",Math.round(this._height/this._imgNode.naturalHeight*100)),this._relativeHeight.set("validationState","normal"),this._absoluteWidth.set("value",Math.round(this._width)),this._absoluteWidth.set("validationState","normal"),this._absoluteHeight.set("value",Math.round(this._height)),this._absoluteHeight.set("validationState","normal"),this._readOnly?this._setDialogReadOnly():this._editImageDialogWidget.enableButton(s.OK)},_setDialogReadOnly:function(){this._editImageDialogWidget.disableButton(s.OK),this._alttextInput.set("disabled",!0),this._verticalAlign.set("disabled",!0),this._relativeSizeCheckBox.set("disabled",!0),this._absoluteSizeCheckBox.set("disabled",!0),this._relativeWidth.set("disabled",!0),this._absoluteWidth.set("disabled",!0),this._widthRowLabel.set("disabled",!0),this._relativeHeight.set("disabled",!0),this._absoluteHeight.set("disabled",!0),this._heightRowLabel.set("disabled",!0),this._keepRatioCheckBox.set("disabled",!0)},onClose:function(){this._closeCallBack()},onCancel:function(){this.onClose(),this._editImageDialogWidget.close()},onOK:function(){var e={node:this._imgNode,altText:this._alttextInput.get("value"),verticalAlign:this._verticalAlign.get("value"),width:this._width,height:this._height,keepRatio:this._keepRatio};this._acceptCallBack(e),this.onClose(),this._editImageDialogWidget.close()},destroy:function(){this.inherited(arguments),this._tooltips.forEach((function(e){e.destroy()})),this._tooltips=[]}})}),e,t),e.exports=o},function(e,t,i){e.exports={absoluteHeightTooltip:"ピクセル単位でのイメージの絶対高さ。",absoluteSizeLabel:"絶対 (px)",absoluteSizeTooltip:"イメージの絶対サイズをピクセル単位で設定します。",absoluteWidthTooltip:"ピクセル単位でのイメージの絶対幅。",alignBaseline:"ベースライン",alignBottom:"下",alignLabel:"配置",alignMiddle:"中",alignTooltip:"周囲のテキストを基準としたイメージの垂直方向の配置。",alignTop:"上",alttextLabel:"代替テキスト",alttextTooltip:"スクリーン リーダー用の代替テキスト。",contextmenuLabel:"イメージの編集...",dialogTitle:"イメージの編集",heightLabel:"高さ",keepRatioLabel:"縦横比を保持",keepRatioTooltip:"イメージの縦横比を保持します。",positiveIntegerExpected:"値は ${0} 以下の正の整数でなければなりません。",relativeHeightTooltip:"元の割合によるイメージの相対高さ。",relativeSizeLabel:"相対 (%)",relativeSizeTooltip:"イメージの相対サイズを元の割合で設定します。",relativeWidthTooltip:"元の割合によるイメージの相対幅。",sizeLabel:"サイズ",widthLabel:"幅"}},function(e,t,i){e.exports={absoluteHeightTooltip:"이미지의 절대적 높이를 픽셀 단위로 표시합니다.",absoluteSizeLabel:"절대 크기(px)",absoluteSizeTooltip:"이미지의 절대적 크기를 픽셀 단위로 설정합니다.",absoluteWidthTooltip:"이미지의 절대적 너비를 픽셀 단위로 표시합니다.",alignBaseline:"기준",alignBottom:"아래쪽",alignLabel:"정렬",alignMiddle:"중간",alignTooltip:"주변 텍스트를 기준으로 이미지를 세로로 정렬합니다.",alignTop:"위쪽",alttextLabel:"대체 텍스트",alttextTooltip:"스크린 리더용 대체 텍스트입니다.",contextmenuLabel:"이미지 편집...",dialogTitle:"이미지 편집",heightLabel:"높이",keepRatioLabel:"종횡비 유지",keepRatioTooltip:"이미지의 종횡비를 유지합니다.",positiveIntegerExpected:"값은 ${0}보다 작거나 같은 양의 정수여야 합니다.",relativeHeightTooltip:"원본에 대한 이미지의 상대적 높이를 백분율로 표시합니다.",relativeSizeLabel:"상대 크기(%)",relativeSizeTooltip:"원본에 대한 이미지의 상대적 크기를 백분율로 설정합니다.",relativeWidthTooltip:"원본에 대한 이미지의 상대적 너비를 백분율로 표시합니다.",sizeLabel:"크기",widthLabel:"너비"}},function(e,t,i){e.exports={absoluteHeightTooltip:"图像的绝对高度(以像素为单位)。",absoluteSizeLabel:"绝对(px)",absoluteSizeTooltip:"设置绝对图像大小(以像素为单位)。",absoluteWidthTooltip:"图像的绝对宽度(以像素为单位)。",alignBaseline:"基线",alignBottom:"底端",alignLabel:"对齐方式",alignMiddle:"中间",alignTooltip:"图像相对于周围文本的垂直对齐方式。",alignTop:"顶端",alttextLabel:"替换文本",alttextTooltip:"用于屏幕阅读器的替换文本。",contextmenuLabel:"编辑图像...",dialogTitle:"编辑图像",heightLabel:"高度",keepRatioLabel:"保持纵横比",keepRatioTooltip:"保持图像的纵横比。",positiveIntegerExpected:"值必须为小于或等于 ${0} 的正整数。",relativeHeightTooltip:"相对于原始图像高度的百分比。",relativeSizeLabel:"相对(%)",relativeSizeTooltip:"按原始图像的百分比设置相对图像大小。",relativeWidthTooltip:"相对于原始图像宽度的百分比。",sizeLabel:"大小",widthLabel:"宽度"}},function(e,t,i){e.exports={root:{absoluteHeightTooltip:"Absolute height of the image in pixels.",absoluteSizeLabel:"Absolute (px)",absoluteSizeTooltip:"Set absolute image size in pixels.",absoluteWidthTooltip:"Absolute width of the image in pixels.",alignBaseline:"Baseline",alignBottom:"Bottom",alignLabel:"Alignment",alignMiddle:"Middle",alignTooltip:"Vertical image alignment relative to surrounding text.",alignTop:"Top",alttextLabel:"Alt Text",alttextTooltip:"Alternative text for screen readers.",contextmenuLabel:"Edit Image...",dialogTitle:"Edit Image",heightLabel:"Height",keepRatioLabel:"Keep Aspect Ratio",keepRatioTooltip:"Keep aspect ratio of the image.",positiveIntegerExpected:"Value must be a positive integer less than or equal to ${0}.",relativeHeightTooltip:"Relative image height as a percentage of the original.",relativeSizeLabel:"Relative (%)",relativeSizeTooltip:"Set relative image size as a percentage of the original.",relativeWidthTooltip:"Relative image width as a percentage of the original.",sizeLabel:"Size",widthLabel:"Width"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="rtcEditImageDialog">\n <div class="editImageAlttextLabel"></div>\n <div class="editImageAlttext"></div>\n\n <div class="editImageVspace"></div>\n <div class="editImageAlignLabel"></div>\n <div class="editImageAlign"></div>\n\n <div class="editImageVspace"></div>\n <div class="editImageSizeSectionLabel"></div>\n <div class="editImageSizeRadioButtons"></div>\n <table class="editImageSizeTable">\n <tr class="editImageWidthRow">\n <td class="editImageWidthLabel editImageSizeLabel"></td>\n <td class="editImageWidth editImageSize"></td>\n </tr>\n <tr class="editImageHeightRow">\n <td class="editImageHeightLabel editImageSizeLabel"></td>\n <td class="editImageHeight editImageSize"></td>\n </tr>\n </table>\n\n <div class="editImageVspace"></div>\n <div class="editImageSizeKeepRatioButton"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(5395),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.view","rtc.cursor"]}},createInstance:function(e,i,n,o){return new t(e,i,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(237),i(364),i(1144),i(403),i(502)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(n,{_IMAGE_MIN_SIZE:18,_IMAGE_SCALING_FACTOR:.9,constructor:function(e,n,o,r){this._cursor=r,this._internalDocument=e,this._document=n,this._view=o,this.own(i.after(this._document,"onDirectedDeletion",t.hitch(this,"_onDelete"),!0))},_onDelete:function(e,t){if(!this._cursor.hasSelection()&&t.isLocal){var i=t.startNode;if(this._isImageNode(i))return this._cursor.setPosition(this._cursor.selectionInfo2cursorPos(t)),!0}},_isImageNode:function(e){return e&&e instanceof l},canInsertImage:function(){return!this._cursor.isCursorReadOnly()&&!(this._cursor.hasSelection()&&!this.imageUnderCursor())},imageUnderCursor:function(){var e,t=this._cursor.getNode();if(!this._cursor.hasSelection()&&this._isImageNode(t))return t;var i=this._cursor.selectionInfo(),n=i.isLocal&&this._isImageNode(i.startNode)?i.startNode:null;return!n&&i.isNull&&i.endPos===i.endNode.maxOffset()&&(e=i.endNode.nextSibling(),n=this._isImageNode(e)?e:null),n},imageFromDOMNode:function(e){var t=e.rteNode;return this._isImageNode(t)?t:null},insertImageFromData:function(e){var t=this._createImageNode(e);return this._insertImageNode(t),t},startImageChange:function(e){var t=this._document.startEdit(),i=this._cursor.getNode().rootContainer();this._savedState={imageNode:e,container:i,editBlock:t,lineNum:this._internalDocument.getLineNumber(i)}},endImageChange:function(e){if(this._savedState){var t=this._savedState.lineNum,i=[r.create(t,t)],n=[r.create(t,t)];e.rootContainer()!==this._savedState.container&&(i.push(a.create(t,t+1,0)),n.push(s.create(t,t+1,-1))),this._savedState.editBlock.appendUndoEvents(n),this._savedState.editBlock.appendRedoEvents(i),this._internalDocument.emitDocumentEvents(i),this._savedState.imageNode||this.onImageInserted(e),this._document.endEdit(),this._savedState=null}},onImageInserted:function(e){},_createImageNode:function(e){return new l({imgSrc:e.imgSrc,width:e.width||-1,height:e.height||-1,altText:e.altText,verticalAlign:e.verticalAlign})},_insertImageNode:function(e){this._internalDocument.insertAtPosition(e,this._cursor.position),this._cursor.setPosition(e,1)},getWidthToFitOnScreen:function(){var e=this._view.getDocumentDimension();return Math.max(this._IMAGE_SCALING_FACTOR*e.width,this._IMAGE_MIN_SIZE)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5397)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(910),i(502)],o=i.dj.d(n,(function(e,t,i){return e(t,{_PIXEL_CHAR_RELATION:10,_TEXT_ELEMENT_TYPE:"span",_ZOOM_FACTOR:2.5,constructor:function(){},createPreview:function(e,t,n){return e.isInstanceOf(i)?this._createImagePreview(e,t,n):null},_createImagePreview:function(e,t,i){var n=i.getBox(e),o=Math.min(t,n.width/this._PIXEL_CHAR_RELATION);if(t>n.width/this._PIXEL_CHAR_RELATION){var r=n.cloneNode(!0),a=n.width/this._PIXEL_CHAR_RELATION,s=a/n.width*n.height;return r.setAttribute("width",a*this._ZOOM_FACTOR),r.setAttribute("height",s*this._ZOOM_FACTOR),{node:r,usedSize:o=o>=t?t-1:o}}return(r=document.createElement(this._TEXT_ELEMENT_TYPE)).innerText=i.MORE,{node:r,usedSize:t}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5399)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(664),i(502)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_PRIORITY:1,constructor:function(){},getType:function(){return"image/x-java-image"},convertFromMimeData:function(e){return[new n({className:"ImageNode",imgSrc:e.src,width:e.width||-1,height:e.height||-1}).serialize()]},priority:function(){return this._PRIORITY}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5401)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(313),i(314),i(502),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e){e.registerNodeConverter(o,t.hitch(this,"_convertFromImageNode"))},_convertFromImageNode:function(e){var t=e.getStartPosition().getNode();return r.assert(t.isInstanceOf(o),"_convertFromImageNode should be called for selections with an ImageNode."),this.isGIF(t.imgSrc)?[]:[{flavor:n.IMAGE,content:t.imgSrc}]},isGIF:function(e){var t=/data:image\/(\w+);base64,.*/.exec(e);return!(!t||2!==t.length||"gif"!==t[1])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5403)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursor","rtc.actionservice","rtc.richtext.images","rtc.focusservice"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(251),i(5404),i(950)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{constructor:function(e,n,r,a,s){this._cursor=n,this._focusService=s,this._internalDocument=e,this._imagesPlugin=a,this._actionService=r,this._actionService.loadActions([{id:o.IMAGES.IMAGE_ACTION,enabled:!1,key:"ctrl_alt_z",callback:t.hitch(this,"_imageAction")}]),this.own(i.after(this._cursor,"onDoubleClick",t.hitch(this,"_doubleClick"))),this.own(i.after(this._cursor,"onChange",t.hitch(this,"_updateActions")))},_updateActions:function(){this._actionService.updateAction(o.IMAGES.IMAGE_ACTION,{enabled:this._canInsertImage()}),this._actionService.updateAction("rtc_insert_image",{enabled:this._canInsertImage()&&!this._imagesPlugin.imageUnderCursor()}),this._actionService.updateAction("rtc_edit_image",{enabled:this._canInsertImage()&&!!this._imagesPlugin.imageUnderCursor()})},_canInsertImage:function(){return this._imagesPlugin.canInsertImage()},_doubleClick:function(){if(!this._cursor.isCursorReadOnly()){var e=this._imagesPlugin.imageUnderCursor();e&&(this._cursor.resetAction(),this._openDialog(e))}},_imageAction:function(){if(!this._actionService.getAction(o.IMAGES.IMAGE_ACTION).enabled)return!1;if(!this._canInsertImage())return!1;var e=this._imagesPlugin.imageUnderCursor();return this._openDialog(e),!0},_openDialog:function(e){this._dialog=new r(t.hitch(this,this._dlgAccept),t.hitch(this,this._dlgClose),e)},_dlgClose:function(){this._focusService.setFocus()},_dlgAccept:function(e){this._imagesPlugin.startImageChange();var t=e.node;t?(this._internalDocument.changeNodeAttributes(t,e),this._cursor.onUpdate()):t=this._imagesPlugin.insertImageFromData(e),this._imagesPlugin.endImageChange(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(216),i(255),i(203),i(204),i(208),i(210),i(206),i(5405),i(900),i(5406),i(262),i(273),i(1479),i(1145),i(411),i(725)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return n([e,t,i],{templateString:l,widgetsInTemplate:!0,TRIANGLE_COLLAPSED_CLASS:"detailTriangleCollapsed",TRIANGLE_EXPANDED_CLASS:"detailTriangleExpanded",ALIGNMENT_DEFAULT:"bottom",constructor:function(e,t,i){this._acceptCallBack=e,this._closeCallBack=t,this.url="",this.dataUri="",this.settingsStore={altText:"",size:100,verticalAlign:this.ALIGNMENT_DEFAULT},this._imgNode=i||null},postCreate:function(){this.inherited(arguments),this.fileRadioLabel.innerHTML=d.fromLocalFile,this.urlRadioLabel.innerHTML=d.fromWeb,r.after(this.urlRadioBut,"onChange",o.hitch(this,"_onInputModeChanged")),s(this.imageFileInput,"change",o.hitch(this,"onFileChange")),s(this.imageUrlTextInput,"input",o.hitch(this,"onUrlChange")),this.urlField.style.display="none",this.own(s(this.imagePreview,"load",o.hitch(this,"_previewLoad")),s(this.imagePreview,"error",o.hitch(this,"_previewLoad"))),this.detailArea.style.display="none",this.detailsLabel.innerHTML=d.displaySettings,s(this.detailsTriangle,"click",o.hitch(this,"_detailsToggle")),s(this.detailsLabel,"click",o.hitch(this,"_detailsToggle")),this.altTextInputLabel.innerHTML=d.altText,this.sizeInputLabel.innerHTML=d.sizeInPercent,this.alignInputLabel.innerHTML=d.alignment,this._init(),r.after(this.sizeTextInput,"onChange",o.hitch(this,"_sizeUpdate"));var e=this._imgNode?d.editTitle:d.insertTitle;this._imageDialogWidget=u.createDialog({title:e,content:this,buttons:[h.OK,h.CANCEL],dialogType:u.MODAL,draggable:!0}),this._imageDialogWidget.addButtonEventListener(h.CANCEL,o.hitch(this,"onCancel"),!1),this._imageDialogWidget.addButtonEventListener(h.OK,o.hitch(this,"onOK"),!1)},_init:function(){var e=1;this._imgNode&&(this.alignInput.value=this._imgNode.verticalAlign,this.altTextInput.setValue(this._imgNode.altText),this.imagePreview.src=this._imgNode.imgSrc,this._imgNode.width>0&&this.imagePreview.naturalWidth&&(e=this.imagePreview.naturalWidth/this._imgNode.width),this.sizeTextInput.setValue(Math.round(100/e)),this._isDataUri(this._imgNode.imgSrc)?this.dataUri=this._imgNode.imgSrc:(this.urlRadioBut.set("checked",!0),this.fileRadioBut.set("checked",!1),this.imageUrlTextInput.setValue(this._imgNode.imgSrc),this._onInputModeChanged()),this._detailsToggle()),this._renderPreview()},_previewLoad:function(e){"load"===e.type?this._imageDialogWidget.enableButton(h.OK):this.imagePreview.naturalWidth<=0&&this.imagePreview.naturalHeight<=0&&this._imageDialogWidget.disableButton(h.OK),this._sizeUpdate()},_detailsToggle:function(){"none"===this.detailArea.style.display?(this.detailArea.style.display="inline",a.replace(this.detailsTriangle,this.TRIANGLE_EXPANDED_CLASS,this.TRIANGLE_COLLAPSED_CLASS)):(this.detailArea.style.display="none",a.replace(this.detailsTriangle,this.TRIANGLE_COLLAPSED_CLASS,this.TRIANGLE_EXPANDED_CLASS))},_onInputModeChanged:function(){var e;this.fileField.style.display=this.urlRadioBut.checked?"none":"inline",this.urlField.style.display="none"===this.fileField.style.display?"inline":"none",e=this.altTextInput.value,this.altTextInput.setValue(this.settingsStore.altText),this.settingsStore.altText=e,e=this.sizeTextInput.value,this.sizeTextInput.setValue(this.settingsStore.size),this.settingsStore.size=e,e=this.alignInput.value,this.alignInput.value=this.settingsStore.verticalAlign,this.settingsStore.verticalAlign=e,this.imageUrlTextInput.focus(),this._renderPreview()},_sizeUpdate:function(){var e,t="";(this.imagePreview.naturalWidth||this.imagePreview.naturalHeight)&&(t=(e=this._calcWidth()).width+" x "+e.height),this.origSize.innerHTML=t},_renderPreview:function(){var e="";this.urlRadioBut.checked?(this.url=this.imageUrlTextInput.get("value"),e=this.url):e=this.dataUri,this.imagePreview.src=e,""===e?(this.imagePreview.style.display="none",this.noPreview.style.display="inline-block"):(this.imagePreview.style.display="inline-block",this.noPreview.style.display="none"),this._sizeUpdate()},onUrlChange:function(e){var t=this;setTimeout((function(){t._destroyed||t._renderPreview()}),0)},onFileChange:function(){if(this.dataUri="",this.imagePreview.src="",!this.imageFileInput.value)return this.dataUri="",void this._renderPreview();var e=new FileReader;e.readAsDataURL(this.imageFileInput.files[0]);var t=this;e.onloadend=function(e){t.dataUri=e.target.result,t._renderPreview()}},onClose:function(){this._closeCallBack()},onCancel:function(){this.onClose(),this._imageDialogWidget.close()},onOK:function(){var e,t,i={},n=parseInt(this.sizeTextInput.value,10);isNaN(n)||100===n||(i=this._calcWidth()),this._imgNode?t=this.alignInput.value!==this._imgNode.verticalAlign?this.alignInput.value:this._imgNode.verticalAlign:this.alignInput.value!==this.ALIGNMENT_DEFAULT&&(t=this.alignInput.value),e={node:this._imgNode,imgSrc:this.urlRadioBut.checked?this.url:this.dataUri,altText:this.altTextInput.value,verticalAlign:t,width:i.width||-1,height:i.height||-1},this._acceptCallBack(e),this.onClose(),this._imageDialogWidget.close()},_fileNameFromPath:function(e){return e?this._isDataUri(e)?"":e.replace(/^.*(\\|\/|\:)/,""):""},_calcWidth:function(){var e={},t=parseInt(this.sizeTextInput.value,10);return isNaN(t)&&(t=100),e.width=Math.round(this.imagePreview.naturalWidth*t/100),e.height=Math.round(this.imagePreview.naturalHeight*t/100),e},_isDataUri:function(e){return!!(e&&e.substring&&e.substring(0,25).match(/^data:image.+;base64/))},onTextKeyup:function(e){}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="rtcImageDialog" data-dojo-attach-point ="contentNode" data-dojo-attach-event="onkeyup:onTextKeyup">\n\n <div class="inputMode">\n <span class="fileRadio" value="fromFile" data-dojo-attach-point="fileRadioBut" data-dojo-props="checked: true" data-dojo-type="dijit.form.RadioButton" name="inputRadioButGroup" id="fileRadioBut"> </span>\n <label class="label" for="fileRadioBut" data-dojo-attach-point="fileRadioLabel"></label>\n <span class="urlRadio" value="fromWeb" data-dojo-attach-point="urlRadioBut" data-dojo-props="checked: false" data-dojo-type="dijit.form.RadioButton" name="inputRadioButGroup" id="urlRadioBut"> </span>\n <label class="label" for="urlRadioBut" data-dojo-attach-point="urlRadioLabel"></label>\n </div>\n\n <div class="inputField">\n <div class="urlField" data-dojo-attach-point ="urlField">\n <label for="imageUrlTextInput" data-dojo-attach-point="imageUrlTextInputLabel">URL:</label>\n <span class="urlTextInput" data-dojo-attach-point ="imageUrlTextInput" data-dojo-attach-event="onkeyup:onTextKeyup"\n data-dojo-type="dijit.form.TextBox" name="imageUrlTextInput" id="imageUrlTextInput"></span>\n </div>\n <div class="fileField" data-dojo-attach-point ="fileField">\n <span><input data-dojo-attach-point = "imageFileInput" type="file" accept="image/*" id="imageFileInput"></span>\n </div>\n </div>\n\n\n <div class="imgPreview">\n <div class="noPreview" data-dojo-attach-point ="noPreview">No Preview</div>\n <img max-width="100%" max-height="100%" data-dojo-attach-point ="imagePreview"/>\n </div>\n\n\n <div class="label">\n <span data-dojo-attach-point ="detailsTriangle" class="detailTriangleCollapsed"></span>\n <label data-dojo-attach-point =\'detailsLabel\'></label>\n </div>\n\n <div class="detailArea" data-dojo-attach-point =\'detailArea\'>\n\n <table class="detailTable">\n <tr><td><label for="altTextInput" data-dojo-attach-point="altTextInputLabel"></label></td>\n <td><span data-dojo-attach-point ="altTextInput" data-dojo-type="dijit.form.TextBox" name="altTextInput" id="altTextInput"></span></td>\n </tr>\n <tr>\n <td><label for="sizeTextInput" data-dojo-attach-point="sizeInputLabel"></label></td>\n <td><span class="sizeCombo" data-dojo-attach-point ="sizeTextInput" data-dojo-type="dijit.form.ComboBox" autoComplete="false" name="sizeTextInput" id="sizeTextInput">\n <option>25</option>\n <option>50</option>\n <option selected="selected">100</option>\n <option>125</option>\n <option>150</option>\n <option>200</option>\n </span><span class="origSize" data-dojo-attach-point ="origSize"></span></td>\n </tr>\n <tr>\n <td><label for="alignInput" data-dojo-attach-point="alignInputLabel"></label></td>\n <td><select data-dojo-attach-point ="alignInput" name="alignInput" id="alignInput">\n <option value="top">Top</option>\n <option value="middle">Middle</option>\n <option selected="selected" value="baseline">Baseline</option>\n <option value="bottom">Bottom</option>\n </select></td>\n </tr>\n </table>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(218),i(220),i(5407),i(5408),i(5409),i(5410)],o=i.dj.d(n,(function(e,t){return t(e,"rtc/resources/rich_text_component/nls/insertImageDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={alignment:"整列",altText:"代替テキスト",displaySettings:"表示設定",editTitle:"イメージの編集",fromLocalFile:"コンピューターから",fromWeb:"Web から",insertTitle:"イメージの挿入",sizeInPercent:"サイズ (%)"}},function(e,t,i){e.exports={alignment:"정렬",altText:"대체 텍스트",displaySettings:"디스플레이 설정",editTitle:"이미지 편집",fromLocalFile:"내 컴퓨터에서",fromWeb:"웹에서",insertTitle:"이미지 삽입",sizeInPercent:"크기(%)"}},function(e,t,i){e.exports={alignment:"对齐方式",altText:"替换文本",displaySettings:"显示设置",editTitle:"编辑图像",fromLocalFile:"从我的计算机",fromWeb:"从 Web",insertTitle:"插入图像",sizeInPercent:"大小(%)"}},function(e,t,i){e.exports={root:{alignment:"Alignment",altText:"Alt Text",displaySettings:"Display Settings",editTitle:"Edit Image",fromLocalFile:"From my Computer",fromWeb:"From the Web",insertTitle:"Insert Image",sizeInPercent:"Size (%)"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(228)],o=i.dj.d(n,(function(e,t){return e("dijit.form._CheckBoxMixin",null,{type:"checkbox",value:"on",readOnly:!1,_aria_attr:"aria-checked",_setReadOnlyAttr:function(e){this._set("readOnly",e),t.set(this.focusNode,"readOnly",e)},_setLabelAttr:void 0,_getSubmitValue:function(e){return null==e||""===e?"on":e},_setValueAttr:function(e){e=this._getSubmitValue(e),this._set("value",e),t.set(this.focusNode,"value",e)},reset:function(){this.inherited(arguments),this._set("value",this._getSubmitValue(this.params.value)),t.set(this.focusNode,"value",this.value)},_onClick:function(e){return this.readOnly?(e.stopPropagation(),e.preventDefault(),!1):this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijit dijitReset dijitInline" role="presentation"\n\t><input\n\t \t${!nameAttrSetting} type="${type}" role="${type}" aria-checked="false" ${checkedAttrSetting}\n\t\tclass="dijitReset dijitCheckBoxInput"\n\t\tdata-dojo-attach-point="focusNode"\n\t \tdata-dojo-attach-event="ondijitclick:_onClick"\n/></div>\n'},function(e,t,i){var n,o;n=[i(224),i(203),i(228),i(204),i(2095),i(231)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t("dijit.form._RadioButtonMixin",null,{type:"radio",_getRelatedWidgets:function(){var e=[];return o("input[type=radio]",this.focusNode.form||this.ownerDocument).forEach(n.hitch(this,(function(t){if(t.name==this.name&&t.form==this.focusNode.form){var i=r.getEnclosingWidget(t);i&&e.push(i)}}))),e},_setCheckedAttr:function(t){this.inherited(arguments),this._created&&t&&e.forEach(this._getRelatedWidgets(),n.hitch(this,(function(e){e!=this&&e.checked&&e.set("checked",!1)})))},_getSubmitValue:function(e){return null==e?"on":e},_onClick:function(t){if(this.checked||this.disabled)return t.stopPropagation(),t.preventDefault(),!1;if(this.readOnly)return t.stopPropagation(),t.preventDefault(),e.forEach(this._getRelatedWidgets(),n.hitch(this,(function(e){i.set(this.focusNode||this.domNode,"checked",e.checked)}))),!1;var o,r=!1;return e.some(this._getRelatedWidgets(),(function(e){return!!e.checked&&(o=e,!0)})),this.checked=!0,o&&(o.checked=!1),(!1===this.onClick(t)||t.defaultPrevented)&&(r=!0),this.checked=!1,o&&(o.checked=!0),r?t.preventDefault():this.set("checked",!0),!r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(228),i(223),i(204),i(225),i(891),i(245),i(5415),i(1402),i(5417)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){var u=t("dijit.form._AutoCompleterMixin",d,{item:null,autoComplete:!0,highlightMatch:"first",labelAttr:"",labelType:"text",maxHeight:-1,_stopClickEvents:!1,_getCaretPos:function(e){var t=0;if("number"==typeof e.selectionStart)t=e.selectionStart;else if(s("ie")){var i=e.ownerDocument.selection.createRange().duplicate(),n=e.createTextRange();i.move("character",0),n.move("character",0);try{n.setEndPoint("EndToEnd",i),t=String(n.text).replace(/\r/g,"").length}catch(e){}}return t},_setCaretPos:function(e,t){t=parseInt(t),c.selectInputText(e,t,t)},_setDisabledAttr:function(e){this.inherited(arguments),this.domNode.setAttribute("aria-disabled",e?"true":"false")},_onKey:function(e){if(!(e.charCode>=32)){var t=e.charCode||e.keyCode;if(t!=n.ALT&&t!=n.CTRL&&t!=n.META&&t!=n.SHIFT){var i=this.dropDown,o=null;if(this._abortQuery(),this.inherited(arguments),!(e.altKey||e.ctrlKey||e.metaKey))switch(this._opened&&(o=i.getHighlightedOption()),t){case n.PAGE_DOWN:case n.DOWN_ARROW:case n.PAGE_UP:case n.UP_ARROW:this._opened&&this._announceOption(o),e.stopPropagation(),e.preventDefault();break;case n.ENTER:if(o){if(o==i.nextButton){this._nextSearch(1),e.stopPropagation(),e.preventDefault();break}if(o==i.previousButton){this._nextSearch(-1),e.stopPropagation(),e.preventDefault();break}e.stopPropagation(),e.preventDefault()}else this._setBlurValue(),this._setCaretPos(this.focusNode,this.focusNode.value.length);case n.TAB:var r=this.get("displayedValue");if(i&&(r==i._messages.previousMessage||r==i._messages.nextMessage))break;o&&this._selectOption(o);case n.ESCAPE:this._opened&&(this._lastQuery=null,this.closeDropDown())}}}},_autoCompleteText:function(e){var t=this.focusNode;c.selectInputText(t,t.value.length);var i=this.ignoreCase?"toLowerCase":"substr";if(0==e[i](0).indexOf(this.focusNode.value[i](0))){var n=this.autoComplete?this._getCaretPos(t):t.value.length;n+1>t.value.length&&(t.value=e,c.selectInputText(t,n))}else t.value=e,c.selectInputText(t)},_openResultList:function(e,t,i){var n=this.dropDown.getHighlightedOption();this.dropDown.clearResultList(),e.length||0!=i.start?(this._nextSearch=this.dropDown.onPage=o.hitch(this,(function(t){e.nextPage(-1!==t),this.focus()})),this.dropDown.createOptions(e,i,o.hitch(this,"_getMenuLabelFromItem")),this._showResultList(),"direction"in i?(i.direction?this.dropDown.highlightFirstOption():i.direction||this.dropDown.highlightLastOption(),n&&this._announceOption(this.dropDown.getHighlightedOption())):!this.autoComplete||this._prev_key_backspace||/^[*]+$/.test(t[this.searchAttr].toString())||this._announceOption(this.dropDown.containerNode.firstChild.nextSibling)):this.closeDropDown()},_showResultList:function(){this.closeDropDown(!0),this.openDropDown(),this.domNode.setAttribute("aria-expanded","true")},loadDropDown:function(){this._startSearchAll()},isLoaded:function(){return!1},closeDropDown:function(){this._abortQuery(),this._opened&&(this.inherited(arguments),this.domNode.setAttribute("aria-expanded","false"))},_setBlurValue:function(){var e=this.get("displayedValue"),t=this.dropDown;!t||e!=t._messages.previousMessage&&e!=t._messages.nextMessage?void 0===this.item?(this.item=null,this.set("displayedValue",e)):(this.value!=this._lastValueReported&&this._handleOnChange(this.value,!0),this._refreshState()):this._setValueAttr(this._lastValueReported,!0),this.focusNode.removeAttribute("aria-activedescendant")},_setItemAttr:function(e,t,i){var n="";e&&(i||(i=this.store._oldAPI?this.store.getValue(e,this.searchAttr):e[this.searchAttr]),n=this._getValueField()!=this.searchAttr?this.store.getIdentity(e):i),this.set("value",n,t,i,e)},_announceOption:function(e){if(e){var t;if(e==this.dropDown.nextButton||e==this.dropDown.previousButton)t=e.innerHTML,this.item=void 0,this.value="";else{var n=this.dropDown.items[e.getAttribute("item")];t=(this.store._oldAPI?this.store.getValue(n,this.searchAttr):n[this.searchAttr]).toString(),this.set("item",n,!1,t)}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length),this.focusNode.setAttribute("aria-activedescendant",i.get(e,"id")),this._autoCompleteText(t)}},_selectOption:function(e){this.closeDropDown(),e&&this._announceOption(e),this._setCaretPos(this.focusNode,this.focusNode.value.length),this._handleOnChange(this.value,!0),this.focusNode.removeAttribute("aria-activedescendant")},_startSearchAll:function(){this._startSearch("")},_startSearchFromInput:function(){this.item=void 0,this.inherited(arguments)},_startSearch:function(e){if(!this.dropDown){var t=this.id+"_popup",i=o.isString(this.dropDownClass)?o.getObject(this.dropDownClass,!1):this.dropDownClass;this.dropDown=new i({onChange:o.hitch(this,this._selectOption),id:t,dir:this.dir,textDir:this.textDir})}this._lastInput=e,this.inherited(arguments)},_getValueField:function(){return this.searchAttr},postMixInProperties:function(){if(this.inherited(arguments),!this.store&&this.srcNodeRef){var e=this.srcNodeRef;if(this.store=new l({},e),!("value"in this.params)){var t=this.item=this.store.fetchSelectedItem();if(t){var i=this._getValueField();this.value=this.store._oldAPI?this.store.getValue(t,i):t[i]}}}},postCreate:function(){var t=r('label[for="'+this.id+'"]');t.length&&(t[0].id||(t[0].id=this.id+"_label"),this.domNode.setAttribute("aria-labelledby",t[0].id)),this.inherited(arguments),e.after(this,"onSearch",o.hitch(this,"_openResultList"),!0)},_getMenuLabelFromItem:function(e){var t=this.labelFunc(e,this.store),i=this.labelType;return"none"!=this.highlightMatch&&"text"==this.labelType&&this._lastInput&&(t=this.doHighlight(t,this._lastInput),i="html"),{html:"html"==i,label:t}},doHighlight:function(e,t){var i=(this.ignoreCase?"i":"")+("all"==this.highlightMatch?"g":""),n=this.queryExpr.indexOf("${0}");return t=a.escapeString(t),this._escapeHtml(e.replace(new RegExp((0==n?"^":"")+"("+t+")"+(n==this.queryExpr.length-4?"$":""),i),"￿$1￿")).replace(/\uFFFF([^\uFFFF]+)\uFFFF/g,'<span class="dijitComboBoxHighlightMatch">$1</span>')},_escapeHtml:function(e){return e=String(e).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;")},reset:function(){this.item=null,this.inherited(arguments)},labelFunc:function(e,t){return(t._oldAPI?t.getValue(e,this.labelAttr||this.searchAttr):e[this.labelAttr||this.searchAttr]).toString()},_setValueAttr:function(e,t,i,n){this._set("item",n||null),null==e&&(e=""),this.inherited(arguments)}});return s("dojo-bidi")&&u.extend({_setTextDirAttr:function(e){this.inherited(arguments),this.dropDown&&this.dropDown._set("textDir",e)}}),u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(204),i(225),i(428),i(231)],o=i.dj.d(n,(function(e,t,i,n,o,r){function a(e){return{id:e.value,value:e.value,name:i.trim(e.innerText||e.textContent||"")}}return e("dijit.form.DataList",o,{constructor:function(e,o){this.domNode=t.byId(o),i.mixin(this,e),this.id&&r.add(this),this.domNode.style.display="none",this.inherited(arguments,[{data:n("option",this.domNode).map(a)}])},destroy:function(){r.remove(this.id)},fetchSelectedItem:function(){var e=n("> option[selected]",this.domNode)[0]||n("> option",this.domNode)[0];return e&&a(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224)],o=i.dj.d(n,(function(e){return function(t,i){switch(typeof t){default:throw new Error("Can not query with a "+typeof t);case"object":case"undefined":var n=t;t=function(e){for(var t in n){var i=n[t];if(i&&i.test){if(!i.test(e[t],e))return!1}else if(i!=e[t])return!1}return!0};break;case"string":if(!this[t])throw new Error("No filter function "+t+" was found in store");t=this[t];case"function":}function o(n){var o=e.filter(n,t),r=i&&i.sort;if(r&&o.sort("function"==typeof r?r:function(e,t){for(var i,n=0;i=r[n];n++){var o=e[i.attribute],a=t[i.attribute];if((o=null!=o?o.valueOf():o)!=(a=null!=a?a.valueOf():a))return!!i.descending==(null==o||o>a)?-1:1}return 0}),i&&(i.start||i.count)){var a=o.length;(o=o.slice(i.start||0,(i.start||0)+(i.count||1/0))).total=a}return o}return o.matches=t,o}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(204),i(225),i(236),i(285),i(231)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("dijit.form._SearchMixin",null,{pageSize:1/0,store:null,fetchProperties:{},query:{},list:"",_setListAttr:function(e){this._set("list",e)},searchDelay:200,searchAttr:"name",queryExpr:"${0}*",ignoreCase:!0,_patternToRegExp:function(e){return new RegExp("^"+e.replace(/(\\.)|(\*)|(\?)|\W/g,(function(e,t,i,n){return i?".*":n?".":t||"\\"+e}))+"$",this.ignoreCase?"mi":"m")},_abortQuery:function(){this.searchTimer&&(this.searchTimer=this.searchTimer.remove()),this._queryDeferHandle&&(this._queryDeferHandle=this._queryDeferHandle.remove()),this._fetchHandle&&(this._fetchHandle.abort&&(this._cancelingQuery=!0,this._fetchHandle.abort(),this._cancelingQuery=!1),this._fetchHandle.cancel&&(this._cancelingQuery=!0,this._fetchHandle.cancel(),this._cancelingQuery=!1),this._fetchHandle=null)},_processInput:function(e){if(!this.disabled&&!this.readOnly){var i=e.charOrCode,n=!1;switch(this._prev_key_backspace=!1,i){case t.DELETE:case t.BACKSPACE:this._prev_key_backspace=!0,this._maskValidSubsetError=!0,n=!0;break;default:n="string"==typeof i||229==i}n&&(this.store?this.searchTimer=this.defer("_startSearchFromInput",1):this.onSearch())}},onSearch:function(){},_startSearchFromInput:function(){this._startSearch(this.focusNode.value)},_startSearch:function(e){this._abortQuery();var t,n=this,a=i.clone(this.query),s={start:0,count:this.pageSize,queryOptions:{ignoreCase:this.ignoreCase,deep:!0}},l=o.substitute(this.queryExpr,[e.replace(/([\\\*\?])/g,"\\$1")]),c=function(){var e=n._fetchHandle=n.store.query(a,s);n.disabled||n.readOnly||t!==n._lastQuery||r(e,(function(i){n._fetchHandle=null,n.disabled||n.readOnly||t!==n._lastQuery||r(e.total,(function(e){i.total=e;var t=n.pageSize;(isNaN(t)||t>i.total)&&(t=i.total),i.nextPage=function(e){s.direction=e=!1!==e,s.count=t,e?(s.start+=i.length,s.start>=i.total&&(s.count=0)):(s.start-=t,s.start<0&&(s.count=Math.max(t+s.start,0),s.start=0)),s.count<=0?(i.length=0,n.onSearch(i,a,s)):c()},n.onSearch(i,a,s)}))}),(function(e){n._fetchHandle=null,n._cancelingQuery||console.error(n.declaredClass+" "+e.toString())}))};i.mixin(s,this.fetchProperties),this.store._oldAPI?t=l:(t=this._patternToRegExp(l)).toString=function(){return l},this._lastQuery=a[this.searchAttr]=t,this._queryDeferHandle=this.defer(c,this.searchDelay)},constructor:function(){this.query={},this.fetchProperties={}},postMixInProperties:function(){if(!this.store){var e=this.list;e&&(this.store=a.byId(e))}this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(213),i(223),i(215),i(216),i(5419),i(5460)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("dijit.form._ComboBoxMenu",[o,r,s,a],{templateString:"<div class='dijitReset dijitMenu' data-dojo-attach-point='containerNode' style='overflow: auto; overflow-x: hidden;' role='listbox'><div class='dijitMenuItem dijitMenuPreviousButton' data-dojo-attach-point='previousButton' role='option'></div><div class='dijitMenuItem dijitMenuNextButton' data-dojo-attach-point='nextButton' role='option'></div></div>",baseClass:"dijitComboBoxMenu",postCreate:function(){this.inherited(arguments),this.isLeftToRight()||(t.add(this.previousButton,"dijitMenuItemRtl"),t.add(this.nextButton,"dijitMenuItemRtl")),this.containerNode.setAttribute("role","listbox")},_createMenuItem:function(){var e=this.ownerDocument.createElement("div");return e.className="dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),e.setAttribute("role","option"),e},onHover:function(e){t.add(e,"dijitMenuItemHover")},onUnhover:function(e){t.remove(e,"dijitMenuItemHover")},onSelect:function(e){t.add(e,"dijitMenuItemSelected")},onDeselect:function(e){t.remove(e,"dijitMenuItemSelected")},_page:function(e){var t=0,n=this.domNode.scrollTop,o=i.get(this.domNode,"height");for(this.getHighlightedOption()||this.selectNextNode();t<o;){var r=this.getHighlightedOption();if(e){if(!r.previousSibling||"none"==r.previousSibling.style.display)break;this.selectPreviousNode()}else{if(!r.nextSibling||"none"==r.nextSibling.style.display)break;this.selectNextNode()}var a=this.domNode.scrollTop;t+=(a-n)*(e?-1:1),n=a}},handleKey:function(e){switch(e.keyCode){case n.DOWN_ARROW:return this.selectNextNode(),!1;case n.PAGE_DOWN:return this._page(!1),!1;case n.UP_ARROW:return this.selectPreviousNode(),!1;case n.PAGE_UP:return this._page(!0),!1;default:return!0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(228),i(221),i(218),i(5420)],o=i.dj.d(n,(function(e,t,i,n,o){var r=t("dijit.form._ComboBoxMenuMixin"+(n("dojo-bidi")?"_NoBidi":""),null,{_messages:null,postMixInProperties:function(){this.inherited(arguments),this._messages=o.getLocalization("dijit.form","ComboBox",this.lang)},buildRendering:function(){this.inherited(arguments),this.previousButton.innerHTML=this._messages.previousMessage,this.nextButton.innerHTML=this._messages.nextMessage},_setValueAttr:function(e){this._set("value",e),this.onChange(e)},onClick:function(e){e==this.previousButton?(this._setSelectedAttr(null),this.onPage(-1)):e==this.nextButton?(this._setSelectedAttr(null),this.onPage(1)):this.onChange(e)},onChange:function(){},onPage:function(){},onClose:function(){this._setSelectedAttr(null)},_createOption:function(e,t){var i=this._createMenuItem(),n=t(e);return n.html?i.innerHTML=n.label:i.appendChild(i.ownerDocument.createTextNode(n.label)),""==i.innerHTML&&(i.innerHTML="&#160;"),i},createOptions:function(t,n,o){this.items=t,this.previousButton.style.display=0==n.start?"none":"",i.set(this.previousButton,"id",this.id+"_prev"),e.forEach(t,(function(e,t){var n=this._createOption(e,o);n.setAttribute("item",t),i.set(n,"id",this.id+t),this.nextButton.parentNode.insertBefore(n,this.nextButton)}),this);var r=!1;t.total&&!t.total.then&&-1!=t.total?(n.start+n.count<t.total||n.start+n.count>t.total&&n.count==t.length)&&(r=!0):n.count==t.length&&(r=!0),this.nextButton.style.display=r?"":"none",i.set(this.nextButton,"id",this.id+"_next")},clearResultList:function(){for(var e=this.containerNode;e.childNodes.length>2;)e.removeChild(e.childNodes[e.childNodes.length-2]);this._setSelectedAttr(null)},highlightFirstOption:function(){this.selectFirstNode()},highlightLastOption:function(){this.selectLastNode()},selectFirstNode:function(){this.inherited(arguments),this.getHighlightedOption()==this.previousButton&&this.selectNextNode()},selectLastNode:function(){this.inherited(arguments),this.getHighlightedOption()==this.nextButton&&this.selectPreviousNode()},getHighlightedOption:function(){return this.selected}});return n("dojo-bidi")&&(r=t("dijit.form._ComboBoxMenuMixin",r,{_createOption:function(){var e=this.inherited(arguments);return this.applyTextDir(e),e}})),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(5421),i(5422),i(5423),i(5424),i(5425),i(5426),i(5427),i(5428),i(5429),i(5430),i(5431),i(5432),i(5433),i(5434),i(5435),i(5436),i(5437),i(5438),i(5439),i(5440),i(5441),i(5442),i(5443),i(5444),i(5445),i(5446),i(5447),i(5448),i(5449),i(5450),i(5451),i(5452),i(5453),i(5454),i(5455),i(5456),i(5457),i(5458),i(5459)],o=i.dj.d(n,(function(e,t){return t(e,"dijit/form/nls/ComboBox",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={previousMessage:"Prethodni izbori",nextMessage:"Još izbora"}},function(e,t,i){e.exports={previousMessage:"Претходни избори",nextMessage:"Повеќе избори"}},function(e,t,i){e.exports={previousMessage:"Prethodne opcije",nextMessage:"Više opcija"}},function(e,t,i){e.exports={previousMessage:"先前选项",nextMessage:"更多选项"}},function(e,t,i){e.exports={previousMessage:"前一個選擇項",nextMessage:"其他選擇項"}},function(e,t,i){e.exports={previousMessage:"Попередні варіанти",nextMessage:"Додаткові варіанти"}},function(e,t,i){e.exports={previousMessage:"Önceki seçenekler",nextMessage:"Diğer seçenekler"}},function(e,t,i){e.exports={previousMessage:"การเลือกก่อนหน้า",nextMessage:"การเลือกเพิ่มเติม"}},function(e,t,i){e.exports={previousMessage:"Tidigare val",nextMessage:"Fler val"}},function(e,t,i){e.exports={previousMessage:"Prejšnje izbire",nextMessage:"Dodatne izbire"}},function(e,t,i){e.exports={previousMessage:"Predchádzajúce možnosti",nextMessage:"Viac možností"}},function(e,t,i){e.exports={previousMessage:"Предыдущие варианты",nextMessage:"Следующие варианты"}},function(e,t,i){e.exports={previousMessage:"Alegeri anterioare",nextMessage:"Mai multe alegeri"}},function(e,t,i){e.exports={previousMessage:"Opções anteriores",nextMessage:"Mais opções"}},function(e,t,i){e.exports={previousMessage:"Opções anteriores",nextMessage:"Mais opções"}},function(e,t,i){e.exports={previousMessage:"Poprzednie wybory",nextMessage:"Więcej wyborów"}},function(e,t,i){e.exports={previousMessage:"Eerdere opties",nextMessage:"Meer opties"}},function(e,t,i){e.exports={previousMessage:"Tidligere valg",nextMessage:"Flere valg"}},function(e,t,i){e.exports={previousMessage:"이전 선택사항",nextMessage:"기타 선택사항"}},function(e,t,i){e.exports={previousMessage:"Алдыңғы нұсқалар",nextMessage:"Басқа нұсқалар"}},function(e,t,i){e.exports={previousMessage:"以前の選択項目",nextMessage:"追加の選択項目"}},function(e,t,i){e.exports={previousMessage:"Scelte precedenti",nextMessage:"Scelte successive"}},function(e,t,i){e.exports={previousMessage:"Pilihan sebelumnya",nextMessage:"Pilihan lain"}},function(e,t,i){e.exports={previousMessage:"Előző menüpontok",nextMessage:"További menüpontok"}},function(e,t,i){e.exports={previousMessage:"Prethodni izbori",nextMessage:"Više izbora"}},function(e,t,i){e.exports={previousMessage:"האפשרויות הקודמות",nextMessage:"אפשרויות נוספות"}},function(e,t,i){e.exports={previousMessage:"Choix précédents",nextMessage:"Plus de choix"}},function(e,t,i){e.exports={previousMessage:"Edelliset valinnat",nextMessage:"Lisää valintoja"}},function(e,t,i){e.exports={previousMessage:"Aurreko aukerak",nextMessage:"Aukera gehiago"}},function(e,t,i){e.exports={previousMessage:"Opciones anteriores",nextMessage:"Más opciones"}},function(e,t,i){e.exports={previousMessage:"Προηγούμενες επιλογές",nextMessage:"Περισσότερες επιλογές"}},function(e,t,i){e.exports={previousMessage:"Vorherige Auswahl",nextMessage:"Weitere Auswahlmöglichkeiten"}},function(e,t,i){e.exports={previousMessage:"Forrige valg",nextMessage:"Flere valg"}},function(e,t,i){e.exports={previousMessage:"Předchozí volby",nextMessage:"Další volby"}},function(e,t,i){e.exports={previousMessage:"Opcions anteriors",nextMessage:"Més opcions"}},function(e,t,i){e.exports={previousMessage:"Предишни избори",nextMessage:"Повече избори"}},function(e,t,i){e.exports={previousMessage:"Əvvəlki variantlar",nextMessage:"Başqa variantlar"}},function(e,t,i){e.exports={previousMessage:"الاختيارات السابقة",nextMessage:"مزيد من الاختيارات"}},function(e,t,i){e.exports={root:{previousMessage:"Previous choices",nextMessage:"More choices"},bs:!0,mk:!0,sr:!0,zh:!0,"zh-tw":!0,uk:!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,id:!0,hu:!0,hr:!0,he:!0,fr:!0,fi:!0,eu:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,bg:!0,az:!0,ar:!0}},function(e,t,i){var n,o;n=[i(203),i(206),i(248),i(5461)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.form._ListMouseMixin",n,{postCreate:function(){this.inherited(arguments),this.domNode.dojoClick=!0,this._listConnect("click","_onClick"),this._listConnect("mousedown","_onMouseDown"),this._listConnect("mouseup","_onMouseUp"),this._listConnect("mouseover","_onMouseOver"),this._listConnect("mouseout","_onMouseOut")},_onClick:function(e,t){this._setSelectedAttr(t,!1),this._deferredClick&&this._deferredClick.remove(),this._deferredClick=this.defer((function(){this._deferredClick=null,this.onClick(t)}))},_onMouseDown:function(e,t){this._hoveredNode&&(this.onUnhover(this._hoveredNode),this._hoveredNode=null),this._isDragging=!0,this._setSelectedAttr(t,!1)},_onMouseUp:function(e,t){this._isDragging=!1;var i=this.selected,n=this._hoveredNode;i&&t==i?this.defer((function(){this._onClick(e,i)})):n&&this.defer((function(){this._onClick(e,n)}))},_onMouseOut:function(e,t){this._hoveredNode&&(this.onUnhover(this._hoveredNode),this._hoveredNode=null),this._isDragging&&(this._cancelDrag=(new Date).getTime()+1e3)},_onMouseOver:function(e,t){this._cancelDrag&&((new Date).getTime()>this._cancelDrag&&(this._isDragging=!1),this._cancelDrag=null);this._hoveredNode=t,this.onHover(t),this._isDragging&&this._setSelectedAttr(t,!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(279)],o=i.dj.d(n,(function(e,t,i){return e("dijit.form._ListBase",null,{selected:null,_listConnect:function(e,i){var n=this;return n.own(t(n.containerNode,t.selector((function(e,t,i){return e.parentNode==i}),e),(function(e){n[i](e,this)})))},selectFirstNode:function(){for(var e=this.containerNode.firstChild;e&&"none"==e.style.display;)e=e.nextSibling;this._setSelectedAttr(e,!0)},selectLastNode:function(){for(var e=this.containerNode.lastChild;e&&"none"==e.style.display;)e=e.previousSibling;this._setSelectedAttr(e,!0)},selectNextNode:function(){var e=this.selected;if(e){for(var t=e.nextSibling;t&&"none"==t.style.display;)t=t.nextSibling;t?this._setSelectedAttr(t,!0):this.selectFirstNode()}else this.selectFirstNode()},selectPreviousNode:function(){var e=this.selected;if(e){for(var t=e.previousSibling;t&&"none"==t.style.display;)t=t.previousSibling;t?this._setSelectedAttr(t,!0):this.selectLastNode()}else this.selectLastNode()},_setSelectedAttr:function(e,t){if(this.selected!=e){var n=this.selected;n&&this.onDeselect(n),e&&(t&&i.scrollIntoView(e),this.onSelect(e)),this._set("selected",e)}else e&&this.onSelect(e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijit dijitReset dijitInline dijitLeft"\n\tid="widget_${id}"\n\trole="combobox"\n\taria-haspopup="true"\n\tdata-dojo-attach-point="_popupStateNode"\n\t><div class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer\'\n\t\tdata-dojo-attach-point="_buttonNode" role="presentation"\n\t\t><input class="dijitReset dijitInputField dijitArrowButtonInner" value="&#9660; " type="text" tabIndex="-1" readonly="readonly" role="button presentation" aria-hidden="true"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class=\'dijitReset dijitInputInner\' ${!nameAttrSetting} type="${type}" autocomplete="off"\n\t\t\tdata-dojo-attach-point="textbox,focusNode" role="textbox"\n\t/></div\n></div>\n'},function(e,t,i){var n,o;n=[i(203),i(205),i(5464)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.richtext.images","rtc.view","rtc.internaldocument","rtc.cursor","rtc.focusservice","rtc.richtext.resizer","rtc.actionservice","rtc.contextmenu.documentcontributor"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(221),i(206),i(209),i(207),i(364),i(294),i(950)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(a,{_CONTEXT_MENU_GROUP:l.RICH_TEXT,_RESET_IMAGE_ACTION:"rtc_reset_image",constructor:function(e,n,r,a,s,l,d,u){this._imagePlugin=e,this._cursor=a,this._internalDocument=r,this._actionService=d,this._view=n,this._resizer=l,this._contextMenuContributor=u,this._temporaryListeners=[],this.own(o(n.getDomtarget(),"click",t.hitch(this,this._handleClick))),this.own(i.after(this._cursor,"onChange",t.hitch(this,"_cursorChanged"))),this.own(i.after(s,"onBlur",t.hitch(this,"_collapse"))),this.own(i.after(this._imagePlugin,"onImageInserted",t.hitch(this,"_imageInserted"),!0)),this._actionService.loadActions([{id:this._RESET_IMAGE_ACTION,enabled:!1,text:c.resetImage,callback:t.hitch(this,"_resetImageSize")},{id:"rtc_deactivate_image",enabled:!1,key:"escape",callback:t.hitch(this,"_collapse")}]),this._addActionsToContextMenu(),this.own(i.after(this._contextMenuContributor,"updateActions",t.hitch(this,"_updateActions")))},_addActionsToContextMenu:function(){this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,this._RESET_IMAGE_ACTION)},destroy:function(){this._deactivateImage(),this._actionService.removeAction("rtc_reset_image"),this._actionService.removeAction("rtc_deactivate_image"),this.inherited(arguments)},_imageInserted:function(e){this._cursor.setPosition(e,{posInNode:1}),this._cursor.movePosition(this._cursor.LEFT,!0)},_updateActions:function(){this._actionService.updateAction(this._RESET_IMAGE_ACTION,{enabled:this._canResetImage()}),this._canResetImage()||this._contextMenuContributor.hideAction(this._RESET_IMAGE_ACTION)},_collapse:function(){return!!this._activeImage&&(this._cursor.collapseSelection(),!0)},_cursorChanged:function(){var e,t;this._activeImage||(e=this._imagePlugin.imageUnderCursor(),t=this._cursor.selectionInfo(),!e||t.isNull)?this._resizer.deactivate():this._tryActivateImage(e)},_handleClick:function(e){var t=this._imagePlugin.imageFromDOMNode(e.target);if(t)return this._cursor.setPosition(t,{posInNode:0}),void this._cursor.movePosition(this._cursor.RIGHT,!0);this._resizer.deactivate()},_canResetImage:function(){if(this._cursor.isCursorReadOnly())return!1;var e=this._activeImage||this._imagePlugin.imageUnderCursor();return!(!e||e.width===e.originalWidth&&e.height===e.originalHeight)},_resetImageSize:function(){if(this._cursor.isCursorReadOnly())return!1;var e=this._activeImage||this._imagePlugin.imageUnderCursor();return!!e&&(this._imagePlugin.startImageChange(),this._internalDocument.changeNodeAttributes(e,{width:e.originalWidth,height:e.originalHeight}),this._view.layoutNode(e),this._cursor.onUpdate(!1,!0),this._imagePlugin.endImageChange(e),this._activateImage(e),!0)},_tryActivateImage:function(e){if(n("trident")>=7)return this._activateImage(e),void this._view.getNodeBox(e).addEventListener("load",t.hitch(this,(function(){this._view.onLayoutChange()})),{once:!0});this._view.getNodeBox(e).complete?this._activateImage(e):this._view.getNodeBox(e).addEventListener("load",t.hitch(this,(function(){this._activateImage(e),this._view.onLayoutChange()})),{once:!0})},_activateImage:function(e){if(!this._cursor.isCursorReadOnly()&&this._activeImage!==e){var n;this._activeImage=e,this._cursor.hideSelection();var o=1,r=this._view.getNodeBox(this._activeImage);this._activeImage.width>-1?(n=this._activeImage.width,o=this._activeImage.width/r.naturalWidth):n=r.naturalWidth,this._resizer.activate({top:r.offsetTop,left:r.offsetLeft,width:n,height:this._activeImage.height>-1?this._activeImage.height:Math.round(o*r.naturalHeight)},{startDrag:t.hitch(this,"_startResize"),endDrag:t.hitch(this,"_endResize"),drag:t.hitch(this,"_trackResize"),closed:t.hitch(this,"_deactivateImage")}),this._temporaryListeners.push(i.after(this._view,"onResize",t.hitch(this,"_handleViewChange"))),this._temporaryListeners.push(i.after(this._view,"onLayoutChange",t.hitch(this,"_handleViewChange"))),this._temporaryListeners.push(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_documentChanged"),!0)),this._updateActions()}},_deactivateImage:function(){this._activeImage=null,this._temporaryListeners.forEach((function(e){e.remove()})),this._temporaryListeners=[],this._cursor.showSelection(),this._updateActions()},_handleViewChange:function(){this._resizer.moveTo(this._view.getNodeBox(this._activeImage).offsetTop,this._view.getNodeBox(this._activeImage).offsetLeft)},_documentChanged:function(){var e=this._view.getNodeBox(this._activeImage);e.offsetTop&&e.offsetLeft&&(e.offsetWidth||0===this._activeImage.width)&&e.offsetHeight||0===this._activeImage.height?(this._resizer.moveTo(e.offsetTop,e.offsetLeft),this._resizer.resize(e.offsetWidth,e.offsetHeight)):this._resizer.deactivate()},_startResize:function(){this._savedSizeAttributes={width:this._activeImage.width,height:this._activeImage.height},this._imagePlugin.startImageChange(this._activeImage)},_endResize:function(e,t){this._activeImage.updateAttributes(this._savedSizeAttributes),this._internalDocument.changeNodeAttributes(this._activeImage,{width:e,height:t}),this._imagePlugin.endImageChange(this._activeImage),this._activeImage&&this._view.layoutNode(this._activeImage),this._updateActions()},_trackResize:function(e,t){return this._activeImage.updateAttributes({width:e,height:t}),this._view.layoutNode(this._activeImage),this._view.onLayoutChange(),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5466)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(452),i(402),i(1464),i(252),i(502)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{constructor:function(){},getApplicableNodeClass:function(){return r},visit:function(e,o,r,a,s){var l=t.splitImageDataURI(o.imgSrc);if(l){var c=n.getImageDetails(e,l,s),d=c.imageData;o.width>-1&&d.setAttribute(i.WIDTH,o.width),o.height>-1&&d.setAttribute(i.DEPTH,o.height);var u=c.imageFileName,h=n.getOuterElement(o,d);e.appendElement(h),e.addToImageList({fileName:u,base64Data:o.imgSrc,canBeThumbnail:!0})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5468)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(502)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return i},visit:function(e,t,i,n,o){let r="<"+(t.altText||"image")+">";e.addHelpText(r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5470)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(452),i(252),i(502),i(829)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{_IMAGE_NODE_IDENTIFIER:"imageNode",_IMAGEFILE_PREFIX:"image",constructor:function(){this.reset()},reset:function(){this._imageCounter=0},getApplicableNodeClass:function(){return n},visit:function(e,t,i,n,o){this._imageCounter+=1,o.imagePath?e.addToBody(this._writeToPath(t.imgSrc,o.imagePath).then(function(e){return this._createImg(t,e)}.bind(this))):e.addToBody(this._createImg(t,t.imgSrc))},_createImg:function(e,t){return'<img class = "'+this._IMAGE_NODE_IDENTIFIER+'" src = "'+t+'"'+this._getDimensionAttr(e)+' alt = "'+e.altText+'" style = "vertical-align: '+e.verticalAlign+";"+this._getDimensionStyles(e)+'"></img>'},_getDimensionStyles:function(e){var t="";return e.width>=0&&(t+=" width: "+e.width+"px;"),e.height>=0&&(t+=" height: "+e.height+"px;"),t},_getDimensionAttr:function(e){var t="";return e.width>=0&&(t+=' width = "'+e.width+'"'),e.height>=0&&(t+=' height = "'+e.height+'"'),t},_writeToPath:function(e,i){var n=t.splitImageDataURI(e),r=i+this._IMAGEFILE_PREFIX+this._imageCounter+"."+n.format;return o.writeToPath(e,r).then((function(){return"file:///"+r}),(function(){return e}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5472)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(495),i(252),i(829),i(502),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n],{_IMAGE_PREFIX:"image_",_IMAGE_DEFAULT_EXT:".png",_PIXELS_TO_EM:9.965,_GRAPHICS_COMMAND:"includegraphics",_MAX_WIDTH_COMMAND:"maxwidth",constructor:function(){},getApplicableNodeClass:function(){return r},reset:function(){this._imageCount=0},visit:function(e,n,r,a,s){var l=this._IMAGE_PREFIX+this._imageCount,c=s.imagePath+l+this._IMAGE_DEFAULT_EXT;this._imageCount+=1;var d=n.width,u=i.wrapInCommand(this._MAX_WIDTH_COMMAND,d/this._PIXELS_TO_EM+"em"),h=i.wrapInCommand(this._GRAPHICS_COMMAND,l,"width="+u),p=o.writeToPath(n.imgSrc,c),f=new t;p.then((function(e){f.resolve(h)})),s.dontWaitForImageFiles_forTestingOnly&&(p.cancel(),f.resolve(h)),e.addToBody(f)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5474)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(452),i(252),i(357),i(426),i(502)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i],{constructor:function(){},getApplicableNodeClass:function(){return r},visit:function(e,t,i,r,a){var s=o.createFOElement(n.EXTERNAL_GRAPHIC);s.setAttribute("src",t.imgSrc),t.width>0&&s.setAttribute("content-width",t.width*n.PX_PT_RATIO+n.POINT),t.height>0&&s.setAttribute("content-height",t.height*n.PX_PT_RATIO+n.POINT),"baseline"!==t.verticalAlign&&s.setAttribute("vertical-align",t.verticalAlign),s.setAttribute("scaling","non-uniform"),e.appendElement(s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5476)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(319),i(2097),i(300),i(524),i(916)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n],{_EMU_RATIO:9525,_FALLBACK_GRAPHIC_NAME:"Untitled",_PX_PT_RATIO:.75,_SHAPE_TYPE:"#_x0000_t75",constructor:function(e){this._view=e},write:function(e,n){t.assert(n.opcPackage,"Required argument missed: 'opcPackage'");var s=e.height>0?e.height:this._view.getNodeBox(e.node).naturalHeight,l=e.width>0?e.width:this._view.getNodeBox(e.node).naturalWidth,c=e.altText?e.altText:this._FALLBACK_GRAPHIC_NAME,d=n.scalingFactor?n.scalingFactor:1,u=this._createRelationship(e,n.opcPackage).getAttribute(r.VALUE_TAG),h=a.createDrawing(u,Math.round(s*this._EMU_RATIO/d),Math.round(l*this._EMU_RATIO/d),c),p=o.createXMLElementNS(i.NAMESPACE_TAG,i.RUN_OF_TEXT_TAG_NAME);return e.verticalAlign&&a.setVerticalAlignment(p,e.verticalAlign*d*this._PX_PT_RATIO),p.appendChild(h),e.verticalAlign&&a.setVerticalAlignment(p,0),p},_createRelationship:function(e,t){var n,s=this._findDuplicates(e,t);if(s){var l=t.getPart(r.DOCUMENT_TARGET);n=this._getRelationshipIdFromPart(s,t,l)}else n=a.createImage(t,e);return o.createCustomXMLAttribute(i.RELATIONSHIP_ID_TAG_NAME,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5478)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(731),i(502)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5480)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(502),i(944)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return t},getCoordinateFromPosition:function(e){var t=this.inherited(arguments),i=e.getOffset();return t.x-=i?0:1,t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5482)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(274),i(391),i(502)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_IMG_STATE_ATTRIBUTE:"data-image-state",_IMG_STATE_VALUE:"image-loaded",constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return n},layout:function(e,i){var n={class:"imageNode"};i.width>=0&&(n.width=i.width),i.height>=0&&(n.height=i.height),i.verticalAlign?n.style="vertical-align: "+i.verticalAlign:n.style="vertical-align: baseline",i.imgSrc&&(n.src=i.imgSrc.replace(/\n|\r/g,"")),i.altText&&(n.alt=i.altText),i.textContainer().tempAlign=t.isFreestandingOpaque(i);var o=e.layoutInto(i,"img",n),r=window.setInterval((function(){0!==o.width&&0!==o.height&&(window.clearInterval(r),0!==o.naturalWidth&&0!==o.naturalHeight&&(i.naturalWidth=o.naturalWidth,i.naturalHeight=o.naturalHeight,-1===i.width&&(i.width=i.naturalWidth,i.originalWidth=i.naturalWidth),-1===i.height&&(i.height=Math.round(i.naturalHeight*i.width/i.naturalWidth),i.originalHeight=i.height)))}),10);return o.getAttribute(this._IMG_STATE_ATTRIBUTE)!==this._IMG_STATE_VALUE&&(o.onload=function(){e.onNodeSizeChanged()},o.setAttribute(this._IMG_STATE_ATTRIBUTE,this._IMG_STATE_VALUE)),o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2097)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[""]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5485)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(277),i(30),i(203),i(204),i(208),i(211),i(213),i(206),i(248),i(209),i(437)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return i(null,{_MINIMUM_SIZE:18,constructor:function(e){this._view=e,this._handlers=[]},activate:function(e,i){this._resizer||(c.assert(e,"Missing initial rectangle!"),this._callbacks=i,this._resizer=this._makeResizer(e),r.place(this._resizer,this._view.getDomtarget()),this._tooltip=new t({class:[d.TOOLTIP_CLASS,d.TOOLTIP_DIALOG_CLASS]}),this._handlers.push(s(this._resizer,"click",(function(e){e.preventDefault(),e.stopPropagation()}))))},deactivate:function(){this._resizer&&(r.destroy(this._resizer),this._resizer=null,this._handlers.forEach((function(e){e.remove()})),this._handlers=[],this._callbacks.closed&&this._callbacks.closed())},moveTo:function(e,t){null!==e&&a.set(this._resizer,"top",e+"px"),null!==t&&a.set(this._resizer,"left",t+"px")},resize:function(e,t){null!==e&&a.set(this._resizer,"width",e+"px"),null!==t&&a.set(this._resizer,"height",t+"px")},_trackResize:function(e,t){return this._tooltip.set("content",e+" x "+t+"px"),!!this._callbacks.drag&&this._callbacks.drag(e,t)},_pointerMove:function(e){if(this._resizer){var t,i,n=e.clientX-this._lastClickState.startX,o=e.clientY-this._lastClickState.startY,r=this._lastClickState.currentWidth,s=this._lastClickState.currentHeight,l=r/s,c=this._lastClickState.dir;n*=c[0],o*=c[1],c[0]&&c[1]&&!e.altKey?n>o*l?(t=r+n,i=(r+n)/l):(i=s+o,t=(s+o)*l):(t=r+n,i=s+o),t>this._MINIMUM_SIZE&&i>this._MINIMUM_SIZE&&(a.set(this._resizer,"width",t+"px"),a.set(this._resizer,"height",i+"px")),this._tracking||(this._tracking=!0,this._callbacks.startDrag()),this._trackResize(this._resizer.clientWidth,this._resizer.clientHeight)||(c[0]<0&&a.set(this._resizer,"left",this._lastClickState.currentLeft+r-t+"px"),c[1]<0&&a.set(this._resizer,"top",this._lastClickState.currentTop+s-i+"px")),e.preventDefault(),e.stopPropagation()}},_pointerUp:function(t){t.preventDefault(),t.stopPropagation(),this._moveHandle.remove(),this._upHandle.remove(),e.close(this._tooltip),this._tracking&&(this._resizer&&this._callbacks.endDrag&&this._callbacks.endDrag(this._resizer.clientWidth,this._resizer.clientHeight),this._tracking=!1)},_pointerDown:function(t,i){i.preventDefault(),i.stopPropagation(),this._lastClickState={startX:i.clientX,startY:i.clientY,currentWidth:this._resizer.clientWidth,currentHeight:this._resizer.clientHeight,currentTop:this._resizer.offsetTop,currentLeft:this._resizer.offsetLeft,dir:t},this._moveHandle=s(window,l.move,n.hitch(this,"_pointerMove")),this._upHandle=s(window,l.release,n.hitch(this,"_pointerUp")),this._tooltip.set("content",this._resizer.clientWidth+" x "+this._resizer.clientHeight+"px"),e.open({popup:this._tooltip,around:i.target})},_makeResizer:function(e){var t,i,o={class:"gripperFrame"};o.style="width: "+e.width+"px; height: "+e.height+"px; top: "+e.top+"px; left: "+e.left+"px;",t=r.create("div",o);var a={"top-right":[1,-1],"middle-right":[1,0],"bottom-right":[1,1],"top-center":[0,-1],"bottom-center":[0,1],"top-left":[-1,-1],"middle-left":[-1,0],"bottom-left":[-1,1]};return Object.keys(a).forEach((function(e){i=r.create("div",{class:"gripper "+e}),r.place(i,t),this._handlers.push(s(i,l.press,n.hitch(this,"_pointerDown",a[e])))}),this),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5487)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(503)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5489)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2098),i(552)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5491)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(424),i(390),i(503)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{_compatibleParents:[],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return n},getTopLevelInsertionInstruction:function(e,t,o,r,a){var s=e.getNode();return s.isInstanceOf(n)&&!e.isAtEdge()&&s.containerType()===r.containerType()?{insertAlternateNodes:r.children}:{insertInRoot:{relationToPosition:i.RELATION.AT}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5493)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(389),i(424),i(390),i(1478),i(552),i(503),i(525)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([i],{_compatibleParents:[a],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return r},getReceivingInstruction:function(e,i){if(i instanceof t){var n=s.cloneRichTextNodeFromPositionWithText(i.text,e);return new o(n)}return this.inherited(arguments)},getTopLevelInsertionInstruction:function(e,t,i,o,r){return{insertInRoot:{relationToPosition:n.RELATION.AT,containerConstructor:a}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5495),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.cursor","rtc.actionservice","rtc.nodeconversionrulesservice"]}},createInstance:function(e,i,n,o,r){return new t(e,i,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(249),i(237),i(260),i(274),i(270),i(313),i(497),i(1116),i(403),i(1433),i(525),i(380),i(251),i(503),i(552)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e(n,{constructor:function(e,n,o,r,a){this._internalDocument=n,this._document=e,this._cursor=o,this._actionService=r,this._nodeConversionRules=a,this._ORDERED_LIST_TYPE="ordered",this._UNORDERED_LIST_TYPE="unordered";var s=[{name:"ordered",method:t.hitch(this,this.formatTemplate,this._ORDERED_LIST_TYPE)},{name:"unordered",method:t.hitch(this,this.formatTemplate,this._UNORDERED_LIST_TYPE)}];n.registerFormatTemplates(s),this.own(i.around(this._document,"deleteTextAtCurrentPosition",t.hitch(this,"_onDoDelete"))),this.own(i.around(this._document,"insertBreak",t.hitch(this,"_onInsertBreak"))),this.own(i.after(this._cursor,"onChange",t.hitch(this,this._updateActions))),r.loadActions(this._actions()),this.own(i.after(this._actionService,"onActionChange",t.hitch(this,"_onActionChange"),!0))},formatTemplate:function(e){var t={};return t.container=new _([],{type:e}),t.textContainer=new v([]),t.container.addChild(t.textContainer,0),t},_actions:function(){return[{id:m.LISTS.UNORDERED_LIST_ACTION,key:"ctrl_alt_u",platformKey:{mac:"ctrl_alt_u"},enabled:!1,selected:!1,callback:t.hitch(this,this._toggleToList,this._UNORDERED_LIST_TYPE)},{id:m.LISTS.ORDERED_LIST_ACTION,key:"ctrl_alt_o",platformKey:{mac:"ctrl_alt_o"},enabled:!1,selected:!1,callback:t.hitch(this,this._toggleToList,this._ORDERED_LIST_TYPE)}]},_onActionChange:function(e){if("selected"===e.key)switch(e.id){case m.LISTS.UNORDERED_LIST_ACTION:this._toggleIfNeeded(e.newValue,this._UNORDERED_LIST_TYPE);break;case m.LISTS.ORDERED_LIST_ACTION:this._toggleIfNeeded(e.newValue,this._ORDERED_LIST_TYPE)}},_toggleIfNeeded:function(e,t){e!==(f.getParagraphFormat(this._cursor)===t)&&this._toggleToList(t)},_updateActions:function(){var e=f.getParagraphFormat(this._cursor);this._actionService.updateAction(m.LISTS.UNORDERED_LIST_ACTION,{enabled:this._canSetFormat(),selected:e===this._UNORDERED_LIST_TYPE}),this._actionService.updateAction(m.LISTS.ORDERED_LIST_ACTION,{enabled:this._canSetFormat(),selected:e===this._ORDERED_LIST_TYPE})},_canSetFormat:function(){return!f.isReadOnly(this._internalDocument,this._cursor)&&(!!p.textContainersInCursorConvertibleTo(this._cursor,_,this._nodeConversionRules)&&f.hasRichText(this._cursor))},_stripListItem:function(e,t){var i=this._document.startBlockEdit(),n=t.nextSibling(),o=this._internalDocument.createContainerForType("text").container;o.align=t.align;var r=new g({});o.addChild(r);var s=this._internalDocument.splitContainerAtNode(e,t.endNode()),c=new l(s,s.maxOffset());this._internalDocument.insertAtPosition(o,c),this._internalDocument.spliceContainers(o,t);var d=o,u=o;s.firstChild()&&(d=s),0===e.children.length&&this._internalDocument.deleteNode(e,{node:o,offset:0}),n&&(u=o.nextSibling());var p=this._internalDocument.getLineNumber(d),f=this._internalDocument.getLineNumber(u),m=[h.create(p,f,1)];return i.appendRedoEvents(m),i.appendUndoEvents(a.translateEventsForUndo(m)),this._internalDocument.emitDocumentEvents(m),this._document.endBlockEdit(i),o},_onDoDelete:function(e){var t=this._cursor,i=this._document,n=this;return function(a){if(i.isReadOnly())return!1;if(a===o.BACKWARD_DELETE&&!t.hasSelection()&&r.isAtStartOfContainer(t.position)){var s=t.getNode().rootContainer();if(n._isListParagraph(s)){var l=t.getNode().textContainer(),c=n._stripListItem(s,l);return t.setPosition(c,0),t.onUpdate(!1,!0),!0}}if(a===o.FORWARD_DELETE&&!t.hasSelection()){var d=t.getNode().rootContainer(),u=d.nextSibling();if(u&&u instanceof _&&(!d.isEmpty()||d.childrenAreContainers)&&r.isAtEndOfContainer(t.position,d)){i.startEdit(),n._stripListItem(u,u.firstChild());var h=e.apply(i,arguments);return i.endEdit(),h}}return e.apply(i,arguments)}},_onInsertBreak:function(e){var t=this._document,i=this._cursor,n=this;return function(){if(t.isReadOnly())return!1;var a=t.startBlockEdit();if(i.hasSelection()){var s=i.selectionInfo();r.isAtStartOfContainer(s.startPosition)&&r.isAtEndOfContainer(s.endPosition)&&t.deleteTextAtCurrentPosition(o.FORWARD_DELETE)}if(!i.hasSelection()&&0===i.getOffset()){var l=i.getNode(),c=l.textContainer(),d=l.rootContainer();if(c instanceof v&&c.isEmpty()){var u=n._stripListItem(d,c);return i.setPosition(u,0),i.onUpdate(!1,!0),void t.endBlockEdit(a)}}var h=e.apply(t,arguments);return t.endBlockEdit(a),h}},_toggleToList:function(e){return!!this._canSetFormat()&&(f.getParagraphFormat(this._cursor)===e?this._actionService.executeAction(m.RICH_TEXT.PARAGRAPH_FORMAT_TEXT_ACTION,{}):this._convertToList(e),!0)},_convertToList:function(e){if(this._canSetFormat()){var t=this._cursor.selectionInfo(),i=t.startNode.rootContainer(),n=this._internalDocument.getLineNumber(i),o=t.endNode;t=this._cursor.adjustSelection(t,!0);var r=s.getParagraphFormat(t);if(r!==e&&i){var l,c,d,h,p=t.endNode.rootContainer(),f=(this._internalDocument.getLineNumber(p),this._cursor.getPosition()),g=this._document.startEdit();if(s.getParagraphNodesInRange(i,p).forEach((function(t){this._nodeConversionRules.isNodeConvertibleTo(t,_)?(c||(c=t),t===p&&(d=t),h=t):c&&(d=h),c&&d&&(l=this._convertRangeToList(c,d,e),c=d=null)}),this),l){var m=l.listParagraph,v=l.newListItem,b=l.needCursorChangeEvent,y=this._internalDocument.getLineNumber(m),C=[u.create(n,y,r,e)];g.appendRedoEvents(C),g.appendUndoEvents(a.translateEventsForUndo(C)),this._internalDocument.emitDocumentEvents(C),this._document.endEdit();var T=v?v.startNode().offsetInContainer(m):0;if(f.anchor.hasOwnProperty("line")){var E=this._internalDocument.getLineNumber(m);o!==t.endNode&&(E+=1,T=0),t.isReversed?(f.anchor.line=E,f.anchor.column+=T):(f.line=E,f.column+=T)}else f.column+=T;this._cursor.setPosition(f),b&&this._cursor.onUpdate(!1,!0)}}}},_convertRangeToList:function(e,t,i){var n=this._internalDocument.getLineNumber(e),o=this._internalDocument.getLineNumber(t),r=this._document.startEdit(),s=new _([],{type:i}),l=new g({}),c=new v([l]);s.addChild(c);var h=c;this._internalDocument.insertAtPosition(s,e.startPosition());for(var p,f=e,m=!1;f;){var b=!0;if(f.anchorId&&(s.anchorId=f.anchorId),p=f===t?null:f.nextSibling(),this._isListParagraph(f))h=s;else if(f.childrenAreContainers)f.children.forEach((function(e){l=new g({text:e.getText()}),h=new v([l]),this._internalDocument.insertAtPosition(h,s.endPosition())}),this),this._internalDocument.deleteNode(f,{node:l,offset:0}),b=!1;else{l=new g({});var y=f.align;h=new v([l],{align:y}),this._internalDocument.insertAtPosition(h,s.endPosition())}"LineNode"===f.className&&(l=new g({text:f.getText()}),this._internalDocument.insertAtPosition(l,h.startPosition()),this._internalDocument.deleteNode(f,{node:l,offset:0}),b=!1),b&&(this._internalDocument.spliceContainers(h,f),m=!0),f=p}c.parent&&this._internalDocument.deleteNode(c,{node:c.nextSibling(),offset:0});var C=[];return C=(C=C.concat(d.create(n,o,0))).concat(u.create(n,n,"",i)),r.appendRedoEvents(C),r.appendUndoEvents(a.translateEventsForUndo(C)),this._internalDocument.emitDocumentEvents(C),this._document.endEdit(),{listParagraph:s,needCursorChangeEvent:m,newListItem:h}},convertLineRangeIntoList:function(e,t,i){if(this._canSetFormat()){var n=this._internalDocument.getLineNode(e-1),o=this._internalDocument.getLineNode(t-1);this._convertRangeToList(n,o,i).needCursorChangeEvent&&this._cursor.onUpdate(!1,!0)}},isLineListParagraph:function(e,t){if(e<1||e>this._internalDocument.getMaxLineNumber())return!1;var i=this._internalDocument.getLineNode(e-1);return this._isListParagraph(i,t)},_isListParagraph:function(e,t){return e instanceof _&&!(t&&e.type!==t)},getNumberOfItemsInList:function(e,t){return this.isLineListParagraph(e,t)?this._internalDocument.getLineNode(e-1).children.length:0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5497)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.htmlmimeconverter","rtc.richtext.lists.htmlwordstylelist"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(552),i(503)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e){e.registerNodeHandler("LI",t.hitch(this,"_convertLI"))},_convertLI:function(e,t){t.setHasExplicitParagraph();var n=i.getComputedStyle(e);this._startOrContinueList(t,e.parentNode&&"OL"===e.parentNode.nodeName?"ordered":"unordered",n.textAlign)},_startOrContinueList:function(e,t,i){t=t||"unordered";var r=e.getLastParagraph();r&&r instanceof o&&r.type===t?e.setActiveNode(r):e.appendParagraph(new o([],{type:t})),e.appendInnerNode(new n([],{align:"start"!==i?i:"left"}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5499)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.htmlmimeconverter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(211)],o=i.dj.d(n,(function(e,t,i,n){return t(null,{constructor:function(e){e.registerDocumentPreprocessor(i.hitch(this,"_preprocess"))},_preprocess:function(e){for(var t,i=e.querySelectorAll("p[style*=mso-list]").length;i>0&&(t=e.querySelector("p[style*=mso-list]"));)this._convert(t),i-=1},_convert:function(t){var i,o,r=t.querySelectorAll("span[style*='mso-list']"),a=e.some(r,(function(e){return e.getAttribute("style").match(/\bmso-list:\s*Ignore\b/)&&e.textContent.match(/\d/)})),s=n.create(a?"ol":"ul");for(n.place(s,t,"before");this._isWordListItem(t);){i=t.nextElementSibling;for(var l=t.querySelectorAll("br"),c=0;c<l.length;c+=1)n.destroy(l[c]);o=this._createLiFromParagraph(t),n.place(o,s,"append"),this._copyChildren(t,o),n.destroy(t),t=i}},_isWordListItem:function(e){if(!e)return!1;if(e.className.match(/MsoListParagraph/))return!0;var t=e.getAttribute("style");return!(!t||!t.match(/mso-list/))},_createLiFromParagraph:function(t){var i=n.create("li");return e.forEach(t.attributes,(function(e){i.setAttribute(e.name,e.value),i.style.textIndent=""})),i},_copyChildren:function(e,t){for(var i,o=e.firstChild;o&&(o=this._skipConditionalComments(o));)i=o.nextSibling,n.place(o,t,"append"),o=i},_skipConditionalComments:function(e){if("#comment"===e.nodeName&&"[if !supportLists]"===e.textContent){for(;e&&("#comment"!==e.nodeName||"[endif]"!==e.textContent);)e=e.nextSibling;e&&(e=e.nextSibling)}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5501)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(685),i(402),i(503)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return n},_getTagName:function(e){return"ordered"===e.type?i.ORDEREDLIST:i.ITEMIZEDLIST}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5503)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(503),i(252)],o=i.dj.d(n,(function(e,t,i){return e([i],{_LINE_BREAK:"\n",_INDENT:" ",constructor:function(){},getApplicableNodeClass:function(){return t},enter:function(e,t,i){let n="";return t.children.forEach(e=>{n+=this._INDENT+e.getText()+this._LINE_BREAK}),n=this._LINE_BREAK+n+this._LINE_BREAK,e.addHelpText(n),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5505)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(722),i(503)],o=i.dj.d(n,(function(e,t,i){return e([t],{_STYLES:["margin","padding-left","font-family","font-size"],constructor:function(){},getApplicableNodeClass:function(){return i},_getTagName:function(e){return"ordered"===e.type?"ol":"ul"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5507)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(495),i(252),i(503)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_ORDERED_LIST_ENVIRONMENT:"enumerate",_UNORDERED_LIST_ENVIRONMENT:"itemize",_SET_ITEMSEP_LENGTH_COMMAND:"\\setlength{\\itemsep}{-1ex}\n",constructor:function(){},getApplicableNodeClass:function(){return n},enter:function(e,i,n){i.anchorId&&e.addToBody(t.getLabelCommand(i.anchorId)+"\n"),e.openEnvironment(this._getEnvironment(i)),e.addToBody(this._SET_ITEMSEP_LENGTH_COMMAND)},leave:function(e,t,i){e.closeEnvironment(this._getEnvironment(t)),e.addToBody("\n")},_getEnvironment:function(e){return"ordered"===e.type?this._ORDERED_LIST_ENVIRONMENT:this._UNORDERED_LIST_ENVIRONMENT}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5509)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(685),i(402),i(552)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return n},enter:function(e,t,i){this.inherited(arguments),e.openWrapperElement()},leave:function(e,t,n){var o=document.createElement(i.PARA);e.closeWrapperElement(o),this.inherited(arguments)},_getTagName:function(e){return i.LISTITEM}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5511)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.serializers.containers.listcontainer"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(503),i(252)],o=i.dj.d(n,(function(e,t,i){return e([i],{_STYLE:{id:"ListParagraph",name:"list",type:"list",basedOn:"",fontFamily:"Helvetica",fontSize:"21",bold:!1,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"280",afterAutospacing:"1",before:"280",beforeAutospacing:"1",line:"",contextualSpacing:!1},indentation:"",indFirstLine:"0",rowSpacing:""},constructor:function(e){this._listParagraph=e},getApplicableNodeClass:function(){return t},enter:function(e,t,i){return e.write(this._listParagraph,t),!0},finalize:function(e){e.addStyle(this._STYLE)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5513)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(722),i(552)],o=i.dj.d(n,(function(e,t,i){return e([t],{_STYLES:["margin-left","line-height","min-height","text-align","white-space"],constructor:function(){},getApplicableNodeClass:function(){return i},_getTagName:function(e){return"li"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5515)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(552),i(347)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{_ORDERED_LIST_DELIMITER:"% # ",_UNORDERED_LIST_DELIMITER:"% * ",constructor:function(){},getApplicableNodeClass:function(){return i},enter:function(e,t,i){t.previousSibling()instanceof n||e.addMCode("%% \n"),e.startBlockComment()},leave:function(e,t,i){e.addMCode("\n"),e.endBlockComment("ordered"===t.parent.type?this._ORDERED_LIST_DELIMITER:this._UNORDERED_LIST_DELIMITER)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5517)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(495),i(252),i(552)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_COMMAND:"item",constructor:function(){},getApplicableNodeClass:function(){return n},enter:function(e,i,n){if(e.addToBody(" "),i.isEmpty())return e.addToBody(t.wrapInCommand(this._COMMAND)+"\n"),!0;e.openCommand(this._COMMAND),e.openEnvironment(t.getAlignmentForNode(i),!0)},leave:function(e,i,n){i.isEmpty()||(e.closeEnvironment(t.getAlignmentForNode(i),!0),e.closeCommand(),e.addToBody("\n"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5519)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(357),i(621),i(503)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_STYLES:["margin-top","margin-bottom","font-family","font-size"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return n},_getTagName:function(e){return t.LIST_BLOCK}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5521)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(357),i(426),i(621),i(552)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{_ITEM_BULLET:"•",_STYLES:["line-height","text-align"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return o},enter:function(e,t,i){e.openWrapperElement(),e.openWrapperElement(),e.openWrapperElement()},leave:function(e,n,o){var r=i.createFOElement(t.BLOCK),a=i.createFOElementWithStyles(t.LIST_ITEM,n,this._STYLES,this._view),s=i.createFOElement(t.LIST_ITEM_LABEL);s.setAttribute("start-indent","2em"),s.setAttribute("end-indent","label-end()"),s.setAttribute("text-align","right");var l=i.createFOElement(t.BLOCK);if(s.appendChild(l),"ordered"===n.parent.type){var c=n.parent.children.indexOf(n)+1;l.textContent=c+"."}else l.textContent=this._ITEM_BULLET;var d=i.createFOElement(t.LIST_ITEM_BODY);d.setAttribute("start-indent","4em"),e.closeWrapperElement(r),e.closeWrapperElement(d),a.appendChild(s),e.closeWrapperElement(a)},_getTagName:function(e){return"fo:list-item"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1482)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5524)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(503),i(1143)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5526)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(391),i(552)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return i},layout:function(e,t){var i={class:"RTClistItem",style:""};return t.bullet&&(i.style+="list-style-type:"+t.bullet+";"),t.align&&(i.style+=" text-align: "+t.align+";"),e.layoutInto(t,"li",i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5528)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(391),i(503)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return i},layout:function(e,t){var i,n={class:"RTClistNode"};return"ordered"===t.type?(i="ol",t.start&&(n.start=t.start)):i="ul",e.layoutInto(t,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5530)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(319),i(521),i(1482),i(300)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_lookup:{unordered:1,ordered:2},constructor:function(e){this._listItemHandler=new o(e),this.inherited(arguments)},write:function(e,t){var i=document.createElement(this.getXMLType());return e.forEach((function(e){this._writeListParagraph(e,i,t)}),this),i},read:function(e,t,n){var o,a=[],s=r.getListType(e[0]),l={className:this.getNodeType(),children:[]};return e.forEach((function(e){s!==r.getListType(e)&&(a.push(l),l={className:this.getNodeType(),children:[]},s=r.getListType(e));var c=r.getParagraphProperty(e,i.JUSTIFCATION_TAG_NAME),d={type:s,align:c};o=this._readListParagraph(l,e,d,t,n);var u=r.getBookmarkStart(e);u&&u.id&&(l.anchorId=u.id,l.children[0]&&l.children[0].anchorId&&(l.children[0].anchorId=void 0))}),this),a.push(l),{readObject:a,readStatus:o}},_readListParagraph:function(e,t,i,n,o){var a=this._listItemHandler.read(t,n,o);return e.type=r.getKeyFromValue(this._lookup,parseInt(i.type,10)),a.readObject.align=i.align,e.children.push(a.readObject),a.readStatus},_writeListParagraph:function(e,t,n){var o=this._lookup[e.type];o>1&&n.numberingListCount&&(o=n.numberingListCount,n.numberingListCount++),e.children.forEach((function(a,s){var l=r.createXMLElement(),c=r.createParagraphProperty(this.getNodeType());if(c.appendChild(r.createListType(o)),c=r.addParagraphProperty(c,i.JUSTIFCATION_TAG_NAME,a.align),l.appendChild(c),0===s&&e.anchorId){var d=r.createBookmarkStart(i.BOOKMARK_PREFIX+e.anchorId,e.anchorId);l.appendChild(d);var u=r.createBookmarkEnd(e.anchorId);l.appendChild(u)}for(var h=this._listItemHandler.write(a,n),p=h.length;0!==p;)l.appendChild(h[0]),p--;t.appendChild(l)}),this)},getXMLType:function(){return"ListParagraph"},getNodeType:function(){return"ListParagraph"},mustMerge:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1482)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5533),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.cursor","rtc.actionservice","rtc.nodeconversionrulesservice"]}},createInstance:function(e,i,n,o,r){return new t(e,i,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(234),i(237),i(274),i(270),i(364),i(403),i(1116),i(260),i(323),i(251),i(1433),i(669),i(582),i(551),i(347),i(380),i(525)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){return e(n,{_SET_ALIGN:"_setAlign",_LEFT:"left",_CENTER:"center",_RIGHT:"right",constructor:function(e,n,o,r,a){this._document=e,this._internalDocument=n,this._cursor=o,this._actionService=r,this._nodeConversionRules=a,this.own(i.after(this._cursor,"onChange",t.hitch(this,"_onCursorChange"))),this.own(i.around(this._document,"insertBreak",t.hitch(this,"_aroundInsertBreak"))),this.own(i.after(this._actionService,"onActionChange",t.hitch(this,"_onActionChange"),!0)),this.own(i.after(this._document,"onPreInsertText",t.hitch(this,"_createStyledContentFromText"),!0));var s=[{name:m.NORMAL.FORMAT,method:t.hitch(this,"formatTemplate",m.NORMAL.FORMAT)},{name:m.TITLE.FORMAT,method:t.hitch(this,"formatTemplate",m.TITLE.FORMAT)},{name:m.HEADING1.FORMAT,method:t.hitch(this,"formatTemplate",m.HEADING1.FORMAT)},{name:m.HEADING2.FORMAT,method:t.hitch(this,"formatTemplate",m.HEADING2.FORMAT)},{name:m.HEADING3.FORMAT,method:t.hitch(this,"formatTemplate",m.HEADING3.FORMAT)}];n.registerFormatTemplates(s),r.loadActions(this._actions())},_onCursorChange:function(e){this._checkPendingStyle(),this._updateActions()},_onActionChange:function(e){if("selected"===e.key)switch(e.id){case p.RICH_TEXT.TOGGLE_BOLD_ACTION:var t=this.getFormatAndStyle();e.newValue!==t.bold&&this._toggleBold();break;case p.RICH_TEXT.TOGGLE_ITALIC_ACTION:t=this.getFormatAndStyle(),e.newValue!==t.italic&&this._toggleItalic();break;case p.RICH_TEXT.TOGGLE_UNDERLINE_ACTION:t=this.getFormatAndStyle(),e.newValue!==t.underline&&this._toggleUnderline();break;case p.RICH_TEXT.TOGGLE_MONOSPACE_ACTION:t=this.getFormatAndStyle(),e.newValue!==t.monospace&&this._toggleMonospace();break;case p.RICH_TEXT.ALIGNMENT_LEFT_ACTION:e.newValue&&!this._isAlignTo(this._LEFT)&&this._setAlign(this._LEFT);break;case p.RICH_TEXT.ALIGNMENT_CENTER_ACTION:e.newValue&&!this._isAlignTo(this._CENTER)&&this._setAlign(this._CENTER);break;case p.RICH_TEXT.ALIGNMENT_RIGHT_ACTION:e.newValue&&!this._isAlignTo(this._RIGHT)&&this._setAlign(this._RIGHT)}},formatTemplate:function(e){var t={};if(e===m.NORMAL.FORMAT)t.container=new v([]);else if(y.isRichTextParagraphFormat(e)){var i=g.getLevelByHeadingFormat(e);t.container=new _([],{level:i})}return t},_actions:function(){return[{id:"rtc_bold_on",enabled:!1,callback:t.hitch(this,"_setStyle","bold",!0)},{id:"rtc_bold_off",enabled:!1,callback:t.hitch(this,"_setStyle","bold",!1)},{id:p.RICH_TEXT.TOGGLE_BOLD_ACTION,enabled:!1,selected:!1,key:"ctrl_b",platformKey:{mac:"meta_b"},callback:t.hitch(this,"_toggleBold")},{id:"rtc_italic_on",enabled:!1,callback:t.hitch(this,"_setStyle","italic",!0)},{id:"rtc_italic_off",enabled:!1,callback:t.hitch(this,"_setStyle","italic",!1)},{id:p.RICH_TEXT.TOGGLE_ITALIC_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,"_toggleItalic")},{id:"rtc_smart_indent_or_italic",enabled:!0,selected:!1,key:"ctrl_i",platformKey:{mac:"meta_i"},callback:t.hitch(this,"_smartIndentOrItalic")},{id:"rtc_underline_on",enabled:!1,callback:t.hitch(this,"_setStyle","underline",!0)},{id:"rtc_underline_off",enabled:!1,callback:t.hitch(this,"_setStyle","underline",!1)},{id:p.RICH_TEXT.TOGGLE_UNDERLINE_ACTION,enabled:!1,selected:!1,key:"ctrl_u",platformKey:{mac:"meta_u"},callback:t.hitch(this,"_toggleUnderline")},{id:"rtc_monospace_on",enabled:!1,callback:t.hitch(this,"_setStyle","monospace",!0)},{id:"rtc_monospace_off",enabled:!1,callback:t.hitch(this,"_setStyle","monospace",!1)},{id:p.RICH_TEXT.TOGGLE_MONOSPACE_ACTION,enabled:!1,selected:!1,key:"ctrl_m",platformKey:{mac:"ctrl_m"},callback:t.hitch(this,"_toggleMonospace")},{id:p.RICH_TEXT.PARAGRAPH_FORMAT_CODE_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,"_setTextFormat","code")},{id:p.RICH_TEXT.PARAGRAPH_FORMAT_TEXT_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,"_setTextFormat",m.NORMAL.FORMAT)},{id:p.RICH_TEXT.PARAGRAPH_FORMAT_HEADING1_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,"_setTextFormat",m.HEADING1.FORMAT)},{id:p.RICH_TEXT.PARAGRAPH_FORMAT_HEADING2_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,"_setTextFormat",m.HEADING2.FORMAT)},{id:p.RICH_TEXT.PARAGRAPH_FORMAT_HEADING3_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,"_setTextFormat",m.HEADING3.FORMAT)},{id:p.RICH_TEXT.PARAGRAPH_FORMAT_TITLE_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,"_setTextFormat",m.TITLE.FORMAT)},{id:"rtc_insert_break_and_toggle",enabled:!1,callback:t.hitch(this,"_insertBreakAndToggleCode")},{id:"rtc_richtext_tab_insert",enabled:!0,key:"tab",callback:t.hitch(this,"_insertTab")},{id:"rtc_richtext_shift_tab_insert",enabled:!0,key:"shift_tab",callback:t.hitch(this,"_insertTab",!0)},{id:p.RICH_TEXT.ALIGNMENT_LEFT_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,this._SET_ALIGN,this._LEFT)},{id:p.RICH_TEXT.ALIGNMENT_CENTER_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,this._SET_ALIGN,this._CENTER)},{id:p.RICH_TEXT.ALIGNMENT_RIGHT_ACTION,enabled:!1,selected:!1,callback:t.hitch(this,this._SET_ALIGN,this._RIGHT)}]},_setAlign:function(e){for(var t=this._document.startEdit(),i=this._cursor.selectionInfo(),n=i.startNode,o=(i=this._cursor.adjustSelection(i,!0)).endNode,r=o.textContainer();r&&(r.isInstanceOf(v)&&this._internalDocument.changeNodeAttributes(r,{align:e}),r!==n.textContainer());)r=r.prevNode().textContainer();var a=this._internalDocument.getLineNumber(n.rootContainer()),s=this._internalDocument.getLineNumber(o.rootContainer()),c=[l.create(a,s)];return this._internalDocument.emitDocumentEvents(c),this._cursor.onUpdate(),t.appendUndoEvents(c),t.appendRedoEvents(c),this._document.endEdit(),this._updateActions(),!0},_setTextFormat:function(e){return!(!y.hasRichText(this._cursor)||!f.textContainersInCursorConvertibleTo(this._cursor,v,this._nodeConversionRules))&&(this.setParagraphFormat(e),!0)},_setPendingStyleChange:function(e,t){this._pendingStyleChange||(this._pendingStyleChange={}),e?(this._pendingStyleChange[e]=t,this._lastPendingStylePosition=this._cursor.getLineColumn()):this._resetPendingStyleChange()},_checkPendingStyle:function(){var e=this._cursor.getLineColumn();this._lastPendingStylePosition&&this._lastPendingStylePosition.line===e.line&&this._lastPendingStylePosition.column===e.column||this._resetPendingStyleChange()},_aroundInsertBreak:function(e){var t=this._document,i=this._cursor;return function(){var n=e.apply(t,arguments);if(n){var o=i.getNode().textContainer();return o.isEmpty()&&o.isInstanceOf(_)&&this.setParagraphFormat(m.NORMAL.FORMAT),o.isInstanceOf(h)&&o.previousSibling().isInstanceOf(h)&&this._moveAnchorId(o,o.previousSibling()),!0}return n}.bind(this)},_createStyledContentFromText:function(e){if(this._pendingStyleChange&&this._canSetStyle()){var t=new b({text:e}),i=this._getStyle();return t.updateAttributes(i),this._pendingStyleChange=null,[t.serialize()]}},_resetPendingStyleChange:function(){this._pendingStyleChange=null,this._lastPendingStylePosition=null},_updateActions:function(){var e=this.getFormatAndStyle();this._updateTextStyleActions(e),this._updateParagraphStyleActions(e)},_updateTextStyleActions:function(e){var t=this._canSetStyle();this._actionService.updateAction(p.RICH_TEXT.TOGGLE_BOLD_ACTION,{enabled:t,selected:e.bold}),this._actionService.updateAction(p.RICH_TEXT.TOGGLE_ITALIC_ACTION,{enabled:t,selected:e.italic}),this._actionService.updateAction(p.RICH_TEXT.TOGGLE_UNDERLINE_ACTION,{enabled:t,selected:e.underline}),this._actionService.updateAction(p.RICH_TEXT.TOGGLE_MONOSPACE_ACTION,{enabled:t,selected:e.monospace})},_updateParagraphStyleActions:function(e){var t=this.canSetFormat(),i=t&&y.isRichText(this._cursor),n=this._isAlignTo(this._LEFT),o=!1,r=!1;n||(o=this._isAlignTo(this._CENTER)),n||o||(r=this._isAlignTo(this._RIGHT));var a=m.NORMAL.FORMAT;y.isRichTextParagraphFormat(e.format)&&(a=e.format),this._actionService.updateAction(p.RICH_TEXT.PARAGRAPH_FORMAT_CODE_ACTION,{enabled:t,selected:"code"===e.format}),this._actionService.updateAction(p.RICH_TEXT.PARAGRAPH_FORMAT_TEXT_ACTION,{enabled:t,selected:a===m.NORMAL.FORMAT}),this._actionService.updateAction(p.RICH_TEXT.PARAGRAPH_FORMAT_HEADING1_ACTION,{enabled:t,selected:a===m.HEADING1.FORMAT}),this._actionService.updateAction(p.RICH_TEXT.PARAGRAPH_FORMAT_HEADING2_ACTION,{enabled:t,selected:a===m.HEADING2.FORMAT}),this._actionService.updateAction(p.RICH_TEXT.PARAGRAPH_FORMAT_HEADING3_ACTION,{enabled:t,selected:a===m.HEADING3.FORMAT}),this._actionService.updateAction(p.RICH_TEXT.PARAGRAPH_FORMAT_TITLE_ACTION,{enabled:t,selected:a===m.TITLE.FORMAT}),this._actionService.updateAction(p.RICH_TEXT.ALIGNMENT_LEFT_ACTION,{enabled:!n&&i,selected:n}),this._actionService.updateAction(p.RICH_TEXT.ALIGNMENT_CENTER_ACTION,{enabled:!o&&i,selected:o}),this._actionService.updateAction(p.RICH_TEXT.ALIGNMENT_RIGHT_ACTION,{enabled:!r&&i,selected:r})},_isAlignTo:function(e){if(!this.canSetFormat())return!1;for(var t=this._cursor.adjustSelection(this._cursor.selectionInfo(),!0),i=t.startNode,n=t.endNode.textContainer();n;){if(n.isInstanceOf(v)&&n.align!==e)return!1;if(n===i.textContainer())break;n=n.prevNode().textContainer()}return!0},_insertTabOnShiftTab:function(e){return!!e&&this._document.insertTab()},_insertTab:function(e){return!this._cursor.hasSelection()&&(!!y.isRichText(this._cursor)&&this._insertTabOnShiftTab(e))},_insertBreakAndToggleCode:function(){var e=this._cursor.selectionInfo(),t=this._cursor.getNode().textContainer();if(this._document.insertBreak(),e.isLocal)return t.isInstanceOf(v)?this.setParagraphFormat("code"):t.isInstanceOf(h)&&this.setParagraphFormat(m.NORMAL.FORMAT),!0},getFormatAndStyle:function(){var e={bold:!1,italic:!1,underline:!1,monospace:!1};if(e.format=y.getParagraphFormat(this._cursor),"code"===e.format||!this._cursor)return e;var t,i=this._getStyle();for(t in e)e.hasOwnProperty(t)&&i.hasOwnProperty(t)&&(e[t]=!!i[t]);return e},_getStyle:function(){var e=this._pendingStyleChange;if(!this._cursor)return e;var t=this._cursor.selectionInfo();return t.startPosition.isEqualTo(t.endPosition)?e=this._getStyleAttributes(this._cursor.getNode()):(t=this._cursor.adjustSelection(t,!0),e=this._getSelectionStyleAttributes(t.startNode,t.endNode)),e},_getSelectionStyleAttributes:function(e,t){return t?a.getStyleAttributesFromRange(e,t):this._getStyleAttributes(e)},_getStyleAttributes:function(e){if(e){var t,i=e.getStyleAttributes();if(this._pendingStyleChange)for(t in this._pendingStyleChange)this._pendingStyleChange.hasOwnProperty(t)&&(i[t]=this._pendingStyleChange[t]);return i}return null},_setStyle:function(e,t){if(!this._canSetStyle())return!1;void 0===t&&(t=!0);var i=this._cursor.selectionInfo();if(i.startPosition.isEqualTo(i.endPosition)){if(!0!==r.isInWord(this._cursor.position))return this._setPendingStyleChange(e,t),this._updateActions(),!0;this._cursor.selectWordUnderCursor()}i=this._cursor.selectionInfo(),i=this._cursor.adjustSelection(i,!0);var n=new s(i.startNode,i.startPos),o=new s(i.endNode,i.endPos);return this._setStyleForRange(e,t,n,o),!0},_setStyleForRange:function(e,t,i,n){if(this._canSetStyle()){var o=this._cursor.getPosition(),r=this._document.startEdit(),a=this._internalDocument.createContiguousRange(i,n,!0),s={};s[e]=t,this._applyStyle(s,a.startNode,a.endNode),this._cursor.setPosition(o),this._cursor.onUpdate();var c=this._internalDocument.getLineNumber(a.startNode.rootContainer()),d=this._internalDocument.getLineNumber(a.endNode.rootContainer()),u=[l.create(c,d>=0?d:c)];this._internalDocument.emitDocumentEvents(u),r.appendUndoEvents(u),r.appendRedoEvents(u),this._document.endEdit()}},applyStyleInLineColumn:function(e,t,i,n,o,r){var a=this._internalDocument.getPositionForLineColumn(i,n),s=this._internalDocument.getPositionForLineColumn(o,r);this._setStyleForRange(e,t,a,s)},applyFormatInLine:function(e,t){var i=this._cursor.getLineColumn();this._cursor.setLineColumn(t,1),this._setParagraphFormatAtCursor(e),this._cursor.setLineColumn(i.line,i.column)},_applyStyle:function(e,t,i){for(var n=i;n&&(this._internalDocument.changeNodeAttributes(n,e),this._internalDocument.mergeTextNodeWithSibling(n,!0),n!==t);)n=n.prevNode();this._internalDocument.mergeTextNodeWithSibling(t)},_canSetStyle:function(){if(y.isReadOnly(this._internalDocument,this._cursor))return!1;if(!f.textContainersInCursorConvertibleTo(this._cursor,v,this._nodeConversionRules))return!1;if(!this._cursor)return!1;if(!y.hasRichText(this._cursor))return!1;var e=this._cursor.selectionInfo();if(e.isNull)return this._isRichTextNode(e.startNode,e.startPos);if((e=this._cursor.adjustSelection(e,!0)).startPosition.isEqualTo(e.endPosition)&&!this._cursor.isFileEndSelected())return!1;for(var t=e.startNode;t;){if(t.isInstanceOf(b))return!0;t=t===e.endNode?null:t.nextNode()}return!1},_isRichTextNode:function(e,t){if(e.isInstanceOf(b))return!0;if((0===t||t===e.maxOffset())&&e.textContainer().isInstanceOf(v))return!0;return!1},canSetFormat:function(){return!y.isReadOnly(this._internalDocument,this._cursor)&&(!!f.textContainersInCursorConvertibleTo(this._cursor,v,this._nodeConversionRules)&&y.hasRichText(this._cursor))},_toggleBold:function(){var e=!this._getStyle().bold;return this._setStyle("bold",e)},_smartIndentOrItalic:function(){var e=this._cursor.selectionInfo();if(!o.isCodeInRange(e.startNode,e.endNode))return this._toggleItalic()},_toggleItalic:function(){var e=!this._getStyle().italic;return this._setStyle("italic",e)},_toggleMonospace:function(){var e=!this._getStyle().monospace;return this._setStyle("monospace",e)},_toggleUnderline:function(){var e=!this._getStyle().underline;return this._setStyle("underline",e)},setParagraphFormat:function(e){this._setParagraphFormatAtCursor(e),this._cursor.onUpdate(!1,!0)},_setParagraphFormatAtCursor:function(e){if(this._cursor){var t=y.getParagraphFormat(this._cursor);if(t!==e){var i=this._cursor.selectionInfo(),n=i.startNode.rootContainer(),o=i.endNode,r=i.startNode;if(i=this._cursor.adjustSelection(i,!0),n){var a,l,h=i.endNode.rootContainer(),p=o===i.endNode?0:1,f=this._cursor.getPosition();f=this._cursor.expandCursorPos(f);var g,m,_=this._document.startBlockEdit(),b=[],C=-1;if(n.childrenAreContainers&&(g=i.startNode.textContainer())!==n.firstChild()){var T=n.startPosition().getLine()-1,E=(n=this._internalDocument.splitContainerAtNode(n,g.startNode(),!0)).startPosition().getLine()-1;T!==E&&b.push(c.create(T,E,1));var S=i.isNull?f.posInNode:f.anchor.posInNode;m={line:this._internalDocument.getLineNumber(r.rootContainer()),column:r.offsetInContainer(g)+S},a=n.previousSibling()}if(h.childrenAreContainers){g=i.endNode.textContainer(),C=o.offsetInContainer(o.textContainer());var w=g===h.lastChild(),I=h.endPosition().getLine()-1;if(this._internalDocument.splitContainerAtNode(h,g.endNode()),!w){var A=(l=h.nextSibling()).startPosition().getLine()-1;I!==A&&b.push(c.create(I,A,1))}}for(var x=n,N=null,L=!1;x;){if(x===h&&(L=!0),this._nodeConversionRules.isNodeConvertibleTo(x,y.getNodeConstructorByFormat(e))){var D=x.startPosition().getLine()-1;if(x.childrenAreContainers){for(var M=x.children.length,P=0;P<M;P+=1){var O=this._internalDocument.createContainerForType("text").container,R=this._internalDocument.createNode(O.getDefaultChild());O.addChild(R),this._internalDocument.insertAtPosition(O,new s(x,0));var k=x.firstChild();k.isInstanceOf(v)?this._internalDocument.spliceContainers(O,k):(R.insertText(k.getText()),this._internalDocument.deleteNode(k,{node:R,offset:0})),N=this._internalDocument.convertParagraph(e,O);var F=k.align;F&&this._internalDocument.changeNodeAttributes(N,{align:F}),this._moveAnchorId(x,N),a||(a=N)}this._internalDocument.deleteNode(x,{node:N.firstChild(),offset:0}),1!==M&&b.push(c.create(D,D+M-1,1))}else N=this._internalDocument.convertParagraph(e,x),x.align&&this._internalDocument.changeNodeAttributes(N,{align:x.align}),this._moveAnchorId(x,N),a||(a=N)}else N=x;if(L)break;x=N.nextSibling()}l||(l=N),i.isReversed?(f.anchor.line=this._internalDocument.getLineNumber(N)+p,C>=0&&(f.anchor.column=C+f.anchor.posInNode),!i.isNull&&m&&(f.line=m.line,f.column=m.column)):(f.line=this._internalDocument.getLineNumber(N)+p,C>=0&&(f.column=C+f.posInNode),!i.isNull&&m&&(f.anchor=m)),this._cursor.setPosition(f);var B=this._internalDocument.getLineNumber(a),H=this._internalDocument.getLineNumber(l);b.push(d.create(B,H,t,e)),_.appendRedoEvents(b),_.appendUndoEvents(u.translateEventsForUndo(b)),this._internalDocument.emitDocumentEvents(b),this._document.endBlockEdit(_)}}}},_moveAnchorId:function(e,t){if(e.anchorId&&e!==t){var i=this._getStartOfCodeBlock(t);this._internalDocument.changeNodeAttributes(i,{anchorId:e.anchorId}),this._internalDocument.changeNodeAttributes(e,{anchorId:void 0})}},_getStartOfCodeBlock:function(e){for(var t=e;t.isInstanceOf(h);){var i=t.previousSibling();if(!i||!i.isInstanceOf(h))break;t=i}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5535)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.richtext"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(251),i(525)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(null,{_ACTIONS:[{id:t.RICH_TEXT.PARAGRAPH_FORMAT_TEXT_ACTION,key:"ctrl_alt_t",platformKey:{mac:"ctrl_alt_t"}},{id:t.RICH_TEXT.PARAGRAPH_FORMAT_TITLE_ACTION,key:"ctrl_alt_l",platformKey:{mac:"ctrl_alt_l"}},{id:t.RICH_TEXT.PARAGRAPH_FORMAT_HEADING1_ACTION,key:"ctrl_shift_1",platformKey:{mac:"ctrl_shift_1"}},{id:t.RICH_TEXT.PARAGRAPH_FORMAT_HEADING2_ACTION,key:"ctrl_shift_2",platformKey:{mac:"ctrl_shift_2"}},{id:t.RICH_TEXT.PARAGRAPH_FORMAT_HEADING3_ACTION,key:"ctrl_shift_3",platformKey:{mac:"ctrl_shift_3"}}],constructor:function(e){i.updateActionShortcuts(e,this._ACTIONS)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5537)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(910),i(380),i(2093)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{_CONTAINER_TYPE:"div",_EMPTY_LINE_FONT_SIZE:"smaller",_EMPTY_LINE_FONT_STYLE:"italic",_TEXT_ELEMENT_TYPE:"span",constructor:function(){},createPreview:function(e,t,i){return e.isInstanceOf(n)?this._createTextPreview(e,t,i):null},_createTextPreview:function(e,t,i){var n=i.createSimpleTextContentPreview(e,t);return{node:n.node,usedSize:n.usedSize}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5539)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(314),i(664)],o=i.dj.d(n,(function(e,t,i){return e(i,{_PRIORITY:99,constructor:function(e){this._cursor=e},getType:function(){return t.MATLAB_RICHTEXT},convertFromMimeData:function(e){try{return JSON.parse(e)}catch(e){return}},priority:function(){return this._PRIORITY}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5541)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.htmlmimeconverter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(217),i(213),i(282),i(551),i(347),i(380)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(null,{_LEFT:"left",_CENTER:"center",_RIGHT:"right",constructor:function(e){e.registerNodeHandler(["P","DIV","TR","PRE"],t.hitch(this,"_convertDIVs")),e.registerNodeHandler("H1",t.hitch(this,"_convertHeader",1)),e.registerNodeHandler("H2",t.hitch(this,"_convertHeader",2)),e.registerNodeHandler("BR",t.hitch(this,"_convertBR")),e.registerTextHandler(t.hitch(this,"_convertText")),e.setDefaultParagraphFactory((function(){return new s([])})),this._textDecorationMap=r.createMap(),this._fontMap={monospace:!0}},_convertHeader:function(e,t,i){var n=o.getComputedStyle(t).textAlign;i.setHasExplicitParagraph(),i.appendParagraph(new a([],{align:this._normalizeAlignment(n),level:e}))},_convertDIVs:function(e,t){var i=t.getLastParagraph();t.setHasExplicitParagraph(),i&&i.children.length>0&&!i.childrenAreContainers&&t.leaveParagraph()},_convertBR:function(e,t){t.isInParagraph()||(t.appendParagraph(),t.appendNode(new l({})));var i=t.getLastParagraph();i&&i.childrenAreContainers?t.appendNode(new l({})):t.leaveParagraph()},_checkMonospace:function(e){var t=o.getComputedStyle(e).fontFamily;if(this._fontMap.hasOwnProperty(t))return this._fontMap[t];var r=i.create("span",null,e,"last");r.innerText="iiiii";var a=n.position(r).w;r.innerText="mmmmm";var s=n.position(r).w;i.destroy(r);var l=a+s>0&&Math.abs(a-s)<2;return this._fontMap[t]=l,l},_checkUnderline:function(e){if(!e)return!1;if(this._textDecorationMap.hasOwnProperty(e))return this._textDecorationMap[e];var t=o.getComputedStyle(e).textDecoration,i=t&&t.match(/\bunderline\b/);return!i&&e.parentNode&&(i=this._checkUnderline(e.parentNode)),0===this._textDecorationMap.size&&setTimeout(function(){this._textDecorationMap.clear()}.bind(this),0),this._textDecorationMap.set(e,i),i},_convertText:function(e,t){var i=o.getComputedStyle(e.parentNode),n=t.getLastParagraph(),r={};!i.fontWeight.match(/\bbold\b/)&&"700"!==i.fontWeight||n&&"HeadingNode"===n.className||(r.bold=!0),i.fontStyle.match(/\bitalic\b/)&&(r.italic=!0),this._checkUnderline(e.parentNode)&&(r.underline=!0),this._checkMonospace(e.parentNode)&&(r.monospace=!0);var a=e.textContent,s=i.whiteSpace&&"pre"===i.whiteSpace;s||(a=(a=a.replace(/^\n+/,"")).replace(/\n+\s*/g," ")),a=a.replace(/\xA0/g," "),s&&a.match(/\n/)?(this._convertTextArray(a.split(/\n/),r,t),this._setAlign(e,t)):(a||s)&&(r.text=a,t.appendNode(new l(r)),this._setAlign(e,t))},_convertTextArray:function(e,t,i){e.forEach((function(e,n){t.text=e,n>0&&i.leaveParagraph(),i.appendNode(new l(t))}))},_setAlign:function(e,t){var i=t.getLastParagraph();if(i&&i instanceof s){var n=o.getComputedStyle(e.parentNode).textAlign;i.align=this._normalizeAlignment(n)}},_normalizeAlignment:function(e){return e.indexOf(this._CENTER)>-1?this._CENTER:e.indexOf(this._RIGHT)>-1?this._RIGHT:this._LEFT}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5543)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(439),i(685),i(402),i(347),i(380)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n],{_COPYRIGHT_PATTERN:/^Copyright [\d-]+ [^\n]*The MathWorks, Inc\.$/,_PUNCTUATION_PATTERN:/^[.,;:!?]$/,_WHITESPACE_PATTERN:/^ +$/,constructor:function(){this.reset()},getApplicableNodeClass:function(){return r},reset:function(){this._firstVisit=!0},enter:function(e,t,i){return!(!t.isEmpty()&&!this._isCopyrightNote(t))||this.inherited(arguments)},leave:function(e,t,i){t.isEmpty()||this._isCopyrightNote(t)||this.inherited(arguments)},_isWhiteSpace:function(e){return!!(e instanceof a&&e.text.match(this._WHITESPACE_PATTERN))},_isPunctuation:function(e){return!!(e instanceof a&&e.text.match(this._PUNCTUATION_PATTERN))},_isEquation:function(e){return e instanceof i},_postProcessWrapperElement:function(e,i){if(!(i.children.length<2)){var n=this._isWhiteSpace(i.children[0]),r=n?1:0;i.children.length===r+2&&this._isEquation(i.children[r])&&this._isPunctuation(i.children[r+1])&&(e.setAttribute(o.ROLE,o.DISPLAYEQUATION_ROLE),n&&t.destroy(e.childNodes[0]))}},_processElement:function(e){return this._firstVisit&&(e.setAttribute(o.ROLE,o.SHORTDESC),this._firstVisit=!1),e},_isCopyrightNote:function(e){if(this._COPYRIGHT_PATTERN.test(e.getText()))return!0},_getTagName:function(e){return o.PARA}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5545)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(621),i(347),i(252),i(357)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i],{_STYLES:["line-height","min-height","margin-left","margin-right","margin-top","margin-bottom","color","font-family","font-size","text-align"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return n},_getTagName:function(e){return r.BLOCK}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5547)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(347)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return i},leave:function(e,t,i){e.addHelpText("\n")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(722),i(347)],o=i.dj.d(n,(function(e,t,i){return e([t],{_STYLES:["margin","padding","line-height","min-height","white-space","color","font-family","font-style","font-size","font-weight","text-align"],constructor:function(){},getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5550)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(402),i(438),i(551)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{_RENDERAS_ATTRIBUTE:"renderas",_EXHEAD_PREFIX:"exhead",constructor:function(){this.reset()},getApplicableNodeClass:function(){return o},reset:function(){this._lastLevel=0,this._firstVisit=!0},finalize:function(e,t){var n=document.createElement(i.STEP);this._lastLevel>2&&n.setAttribute(this._RENDERAS_ATTRIBUTE,this._EXHEAD_PREFIX+(this._lastLevel-1)),e.closeWrapperElement(n)},enter:function(e,t,n){if(t.level<=4){var o=document.createElement(i.STEP);this._lastLevel>2&&o.setAttribute(this._RENDERAS_ATTRIBUTE,this._EXHEAD_PREFIX+(this._lastLevel-1)),e.closeWrapperElement(o),e.openWrapperElement()}return this._lastLevel=t.level,e.openWrapperElement(),!1},leave:function(e,t,o){var r;this._firstVisit&&1===t.level?((r=document.createElement(i.TITLE)).setAttribute(i.ID,i.FIRST_TITLE),e.closeWrapperElement(r)):t.level<=4?(n.writeInternalAnchor(e,t,o),r=document.createElement(i.TITLE),e.closeWrapperElement(r)):(r=document.createElement(i.PARA),n.writeInternalAnchor(e,t,o),e.closeWrapperElement(r)),this._firstVisit=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5552)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(722),i(551)],o=i.dj.d(n,(function(e,t,i){return e([t],{_STYLES:["margin","padding","line-height","min-height","white-space","color","font-family","font-style","font-size","font-weight","text-align"],constructor:function(){this.reset()},getApplicableNodeClass:function(){return i},reset:function(){this._firstTitle=""},finalize:function(e,t){if("clipboard"===t.target)e.addCSSToStyle("h1, h2 {font-weight: normal;}");else{var i=""!==this._firstTitle?this._firstTitle:"Untitled";e.addToHead("<title>"+i+"</title>")}},enter:function(e,t,i){""===this._firstTitle&&1===t.level&&(this._firstTitle=t.getText()),this.inherited(arguments)},_getTagName:function(e){return"h"+e.level}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5554)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(551)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return i},enter:function(e,t,i){t.level<=2?e.addMCode("%% "):e.addMCode("% ")},leave:function(e,t,i){e.addMCode("\n")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5556)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(323),i(495),i(252),i(551),i(582)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{_TEXT_TITLE_COMMAND:"matlabtitle",_TEXT_HEADING_COMMAND:"matlabheading",_TEXT_HEADING2_COMMAND:"matlabheadingtwo",_TEXT_HEADING3_COMMAND:"matlabheadingthree",_HFILL_BREAK:"\\hfill \\break\n",_PAR:"par",_MATLAB_MULTITITLES:"\\matlabmultipletitles\n\n",constructor:function(){},getApplicableNodeClass:function(){return o},reset:function(){this._titleCount=0},enter:function(e,t,n){if(t.anchorId&&e.addToBody(i.getLabelCommand(t.anchorId)+"\n"),t.isEmpty())return!0;e.openCommand(this._getHeadingCommand(t))},leave:function(e,n,o){n.isEmpty()?e.addToBody(i.getEmptyLineCommand()+"\n"):(e.closeCommand(),e.addToBody("\n\n"),n.containerType()===r.HEADING3.FORMAT&&n.nextSibling()instanceof t&&(e.openEnvironment(this._PAR),e.addToBody(this._HFILL_BREAK),e.closeEnvironment(this._PAR),e.addToBody("\n")))},_getHeadingCommand:function(e){switch(e.containerType()){case r.TITLE.FORMAT:return this._titleCount+=1,this._TEXT_TITLE_COMMAND;case r.HEADING1.FORMAT:return this._TEXT_HEADING_COMMAND;case r.HEADING2.FORMAT:return this._TEXT_HEADING2_COMMAND;case r.HEADING3.FORMAT:return this._TEXT_HEADING3_COMMAND}},finalize:function(e){this._titleCount>1&&e.addToPreamble(this._MATLAB_MULTITITLES)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5558)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(252),i(621),i(551),i(357)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{_STYLES:["line-height","min-height","margin-left","margin-right","margin-top","margin-bottom","color","font-family","font-size","font-weight","text-align"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return o},_getTagName:function(e){return r.BLOCK}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5560)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(402),i(252),i(380)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_ROLE_BOLD:"bold",_ROLE_UNDERLINE:"underline",constructor:function(){},getApplicableNodeClass:function(){return n},visit:function(e,i,n,o,r){var a,s=document.createTextNode(i.getText());i.monospace&&((a=document.createElement(t.LITERAL)).appendChild(s),s=a),i.underline&&((a=this._createEmphasis(this._ROLE_UNDERLINE)).appendChild(s),s=a),i.italic&&((a=this._createEmphasis()).appendChild(s),s=a),i.bold&&((a=this._createEmphasis(this._ROLE_BOLD)).appendChild(s),s=a),e.appendElement(s)},_createEmphasis:function(e){var i=document.createElement(t.EMPHASIS);return e&&i.setAttribute(t.ROLE,e),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5562)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(380)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return i},visit:function(e,t,i,n,o){let r=t.getText().substring(i,n);e.addHelpText(r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5564)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(247),i(252),i(380)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{constructor:function(){},getApplicableNodeClass:function(){return n},visit:function(e,i,n,o,r){var a="";i.bold&&(a+=" font-weight: bold;"),i.italic&&(a+=" font-style: italic;"),i.underline&&(a+=" text-decoration: underline;"),i.monospace&&(a+=" font-family: monospace;");var s="<span";a&&(s+=" style='"+a+"'"),s+=">",e.addToBody(s);var l=i.getText().substring(n,o);e.addToBody(t.escapeHtml(l)),e.addToBody("</span>")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5566)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(247),i(252),i(380)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_BOLD_MARKUP:"*",_ITALIC_MARKUP:"_",_MONOSPACE_MARKUP:"|",_WHITESPACE_LINE:/^\s*$/,_FIRST_TRAILING_WHITESPACE_CHARACTER:/\s*$/,_FIRST_NON_WHITESPACE_CHARACTER:/\S/,constructor:function(){},getApplicableNodeClass:function(){return n},visit:function(e,t,i,o,r){var a,s,l=t.getText();l&&(l.match(this._WHITESPACE_LINE)||((t.bold||t.italic||t.monospace)&&(t.previousSibling()instanceof n&&(a=t.previousSibling()),t.nextSibling()instanceof n&&(s=t.nextSibling())),t.bold&&(a&&a.bold||(l=this._prependMarkup(this._BOLD_MARKUP,l)),s&&s.bold||(l=this._appendMarkup(this._BOLD_MARKUP,l))),t.italic&&(a&&a.italic||(l=this._prependMarkup(this._ITALIC_MARKUP,l)),s&&s.italic||(l=this._appendMarkup(this._ITALIC_MARKUP,l))),t.monospace&&(a&&a.monospace||(l=this._prependMarkup(this._MONOSPACE_MARKUP,l)),s&&s.monospace||(l=this._appendMarkup(this._MONOSPACE_MARKUP,l)))),e.addMCode(l))},_appendMarkup:function(e,t){var i=t.search(this._FIRST_TRAILING_WHITESPACE_CHARACTER),n=t.substring(i);return t.substring(0,i).concat(e,n)},_prependMarkup:function(e,t){var i=t.search(this._FIRST_NON_WHITESPACE_CHARACTER),n=t.substring(0,i),o=t.substring(i);return n.concat(e,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5568)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2100),i(495),i(252),i(380)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{_BOLD_COMMAND:"textbf",_ITALIC_COMMAND:"textit",_MONOSPACE_COMMAND:"texttt",_UNDERLINE_COMMAND:"underline",_SOFT_LINEBREAK_COMMAND:"\\linebreak",constructor:function(){},getApplicableNodeClass:function(){return o},visit:function(e,n,o,r,a){var s=t.escapeSpecialCharacters(n.getText());""!==s&&(s=s.replace(/(\r\n|\n|\r)/gm,this._SOFT_LINEBREAK_COMMAND+" \n"),n.bold&&(s=i.wrapInCommand(this._BOLD_COMMAND,s)),n.italic&&(s=i.wrapInCommand(this._ITALIC_COMMAND,s)),n.underline&&(s=i.wrapInCommand(this._UNDERLINE_COMMAND,s)),n.monospace&&(s=i.wrapInCommand(this._MONOSPACE_COMMAND,s)),e.addToBody(s))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5570)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(357),i(426),i(380)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{constructor:function(e){this._view=e},getApplicableNodeClass:function(){return o},visit:function(e,t,o,r,a){var s=t.getText();if(s){var l=n.createFOElement(i.INLINE),c=document.createTextNode(s);if(t.bold&&l.setAttribute("font-weight","bold"),t.italic&&l.setAttribute("font-style","italic"),t.underline&&l.setAttribute("text-decoration","underline"),t.monospace){var d=this._view.getNodeBox(t).firstChild.style.fontFamily;l.setAttribute("font-family",d)}l.appendChild(c),e.appendElement(l)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5572)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(347)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return i},enter:function(e,t,n){t.previousSibling()instanceof i?t.constructor===t.previousSibling().constructor&&e.addMCode("% \n"):e.addMCode("%% \n"),e.startBlockComment()},leave:function(e,t,i){e.addMCode("\n"),e.endBlockComment("% ")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5574)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.serializers.containers.richtextcontainer"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(347),i(252)],o=i.dj.d(n,(function(e,t,i){return e([i],{_STYLE_TEXT:{id:"text",name:"Text",type:"paragraph",basedOn:"",default:"1",fontFamily:"Helvetica",fontSize:"21",bold:!1,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"210",before:"210",line:"",contextualSpacing:!1},indentation:"",rowSpacing:"0"},_STYLE_HYPERLINK:{id:"Hyperlink",name:"Hyperlink",type:"character",basedOn:"",fontFamily:"",fontSize:"",bold:!1,italic:!1,underline:!0,color:"005fce",backgroundColor:"",borderColor:"",spacing:{after:"0",before:"0",line:"0",contextualSpacing:!1},indentation:"",rowSpacing:""},constructor:function(e){this._richTextParagraph=e},getApplicableNodeClass:function(){return t},enter:function(e,t,i){return e.write(this._richTextParagraph,t),!0},finalize:function(e){e.addStyle(this._STYLE_TEXT),e.addStyle(this._STYLE_HYPERLINK)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5576)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.serializers.containers.headingcontainer"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(551),i(252)],o=i.dj.d(n,(function(e,t,i){return e([i],{_STYLE_TITLE:{id:"title",name:"title",type:"paragraph",basedOn:"",fontFamily:"Helvetica",fontSize:"36",bold:!1,italic:!1,underline:!1,color:"D55000",backgroundColor:"",borderColor:"",spacing:{after:"140",before:"140",line:"0",contextualSpacing:!1},indentation:"",rowSpacing:"0"},_STYLE_HEADING_1:{id:"heading",name:"heading 1",type:"paragraph",basedOn:"",fontFamily:"Helvetica",fontSize:"29",bold:!0,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"140",before:"140",line:"0",contextualSpacing:!1},indentation:"",rowSpacing:"0"},_STYLE_HEADING_2:{id:"heading2",name:"heading 2",type:"paragraph",basedOn:"",fontFamily:"Helvetica",fontSize:"26",bold:!0,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"140",before:"140",line:"0",contextualSpacing:!1},indentation:"",rowSpacing:"0"},_STYLE_HEADING_3:{id:"heading3",name:"heading 3",type:"paragraph",basedOn:"",fontFamily:"Helvetica",fontSize:"22",bold:!0,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"140",before:"140",line:"0",contextualSpacing:!1},indentation:"",rowSpacing:"0"},constructor:function(e){this._headingcontainer=e},getApplicableNodeClass:function(){return t},enter:function(e,t,i){return e.write(this._headingcontainer,t),!0},finalize:function(e){e.addStyle(this._STYLE_TITLE),e.addStyle(this._STYLE_HEADING_1),e.addStyle(this._STYLE_HEADING_2),e.addStyle(this._STYLE_HEADING_3)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2101)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5579)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(495),i(252),i(347)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_ENVIRONMENT:"par",constructor:function(){},getApplicableNodeClass:function(){return n},reset:function(){this._currentAligment=""},enter:function(e,i,n){if(i.anchorId&&e.addToBody(t.getLabelCommand(i.anchorId)+"\n"),i.isEmpty())return!0;e.openEnvironment(this._ENVIRONMENT),this._hasDisplayEquation(i)||(this._currentAligment=t.getAlignmentForNode(i),e.openEnvironment(this._currentAligment))},leave:function(e,i,n){e.addToBody("\n"),i.isEmpty()?e.addToBody(t.getEmptyLineCommand()):(""!==this._currentAligment&&e.closeEnvironment(this._currentAligment),this._currentAligment="",e.closeEnvironment(this._ENVIRONMENT),e.addToBody("\n"))},_hasDisplayEquation:function(e){for(var t=0;t<e.children.length;t+=1){var i=e.children[t];if(i.getDisplayStyle&&i.getDisplayStyle())return!0;if(""!==i.getText().trim())return!1}return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5581)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel","rtc.richtext.rangeconverter"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(380),i(1146)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t){this._rangeConverter=t,this._viewModel=e},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5583)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(380),i(2102)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1421)],o=i.dj.d(n,(function(e,t,i){return e(i,{getRangeFromPosition:function(e){t.error("Unimplemented: getRangeFromPosition")},getContainerFromPosition:function(e){t.error("Unimplemented: getContainerFromPosition")},_getDomNode:function(e){t.error("Unimplemented: getDomNode")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5586)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(424),i(918),i(347),i(380)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{_compatibleParents:[i],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return o},getTopLevelInsertionInstruction:function(e,t,i,o,r){return{insertInRoot:{insertionPosition:r,containerConstructor:n}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5588)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(389),i(424),i(390),i(1478),i(347),i(525)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([i],{_compatibleParents:[],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return r},getReceivingInstruction:function(e,i){if(i instanceof t){var n=a.cloneRichTextNodeFromPositionWithText(i.text,e);return new o(n)}return this.inherited(arguments)},getTopLevelInsertionInstruction:function(e,t,i,o,r){return e.isLinePosition()?{insertInRoot:{relationToPosition:n.RELATION.AFTER}}:{insertInRoot:{insertionPosition:r}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5590)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(391),i(551)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return n},layout:function(e,t){var i={class:"heading-"+t.level};return t.align&&(i.style="text-align: "+t.align+";"),e.layoutInto(t,"h"+t.level,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2103)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel","rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e,t){return new i(e,t)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5593)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(391),i(347)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return n},layout:function(e,t){var i={class:"paragraphNode"};return t.align&&(i.style="text-align: "+t.align+";"),e.layoutInto(t,"div",i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2098)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5596)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(551)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5598)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(731),i(380)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5600)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(389),i(806),i(252)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{constructor:function(){},getApplicableNodeClass:function(){return t},visit:function(e,t,n,o,r){if(!i.isHiddenCodeNode(t,r)){var a=document.createTextNode(t.getText());e.appendElement(a)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5602)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(211),i(389),i(252),i(357),i(426),i(362)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t([o],{constructor:function(e){this._decorationviewmodel=e},getApplicableNodeClass:function(){return n},visit:function(t,n,o,l,c){var d,u=n.getText();if(u){var h=this._decorationviewmodel.getDecoration(n),p=i.create("span"),f=s.createViewForTextNode(u,h,p);e.forEach(f.childNodes,(function(e){(d=a.createFOElement(r.INLINE)).textContent=e.textContent,e.style.color&&d.setAttribute("color",e.style.color),t.appendElement(d)}))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5604)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(447),i(203),i(319),i(574),i(300),i(524)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t(n,{constructor:function(e){this._decorationviewmodel=e},write:function(t){var n=o.createXMLElement(i.RUN_OF_TEXT_TAG_NAME),a=o.createXMLElement(i.TEXT_TAG_NAME);a.textContent=t.textContent;var s=o.createXMLElement(i.RUN_OF_TEXT_PROPERTY_TAG_NAME);if(n.appendChild(s),t.style.color){var l=o.createXMLElement(r.COLOR),c=e.fromRgb(t.style.color);l.setAttribute(r.VALUE_TAG,c.toHex().replace("#","")),s.appendChild(l)}var d=o.createXMLElement(r.NO_PROOF);return d.setAttribute(r.VALUE_TAG,"true"),s.appendChild(d),n.appendChild(a),n},getXMLType:function(){return"PlainTextNode"},getNodeType:function(){return"PlainTextNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2101)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5607)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(319),i(521),i(300),i(669)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{_INTRODUCED_VERSION:"R2018b",write:function(e,t){i.assert(t.serializers,"Required argument missed: 'serializers'");for(var n=document.createElement(this.getXMLType()),o=0;o<e.length;o++){var r=this._writeParagraph(e[o],t);r&&n.appendChild(r)}return n},_writeParagraph:function(e,t){var o=r.createXMLElement(),s=a.getHeadingFormatByLevel(e.level),l=r.createParagraphProperty(s);if(l=r.addParagraphProperty(l,n.JUSTIFCATION_TAG_NAME,e.align),!t.skipFallbackProperty&&a.isFormatIntroducedInVersion(s,this._INTRODUCED_VERSION)){var c=r.createParagraphProperty(n.HEADING_FORMAT_VALUE);c=r.addParagraphProperty(c,n.JUSTIFCATION_TAG_NAME,e.align);var d=r.createAlternateContent(this._INTRODUCED_VERSION,l,c);o.appendChild(d)}else o.appendChild(l);if(e.anchorId){var u=r.createBookmarkStart(n.BOOKMARK_PREFIX+e.anchorId,e.anchorId);o.appendChild(u)}var h=!1;if(e.children.forEach((function(e){var n=t.serializers.getSerializer(e.className);n?o.appendChild(n.write(e,t)):(h=!0,i.assert(h,!0,"Unrecognized node type:"+e.className))}),this),e.anchorId){var p=r.createBookmarkEnd(e.anchorId);o.appendChild(p)}return h&&1===o.children.length&&(o=null),o},read:function(e,t,i){var o=this.inherited(arguments);return e.forEach((function(e,t){var i=r.getParagraphProperty(e,n.JUSTIFCATION_TAG_NAME);i&&(o.readObject[t].align=i);var s=r.getAttribute(e),l=r.getBookmarkStart(e);l&&l.id&&(o.readObject[t].anchorId=l.id),o.readObject[t].level=a.getLevelByHeadingFormat(s)})),o},getXMLType:function(e){return a.isFormatHeading(e)?e:a.getDefaultHeadingFormat()},getNodeType:function(){return"HeadingNode"},mustMerge:function(e,t){return r.getParagraphProperty(e,n.JUSTIFCATION_TAG_NAME)===r.getParagraphProperty(t,n.JUSTIFCATION_TAG_NAME)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1483)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5610),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","rtc.internaldocument","rtc.document","rtc.document.changenotifier","rtc.cursor","rtc.richtext.anchor","rtc.undoredo.controller","rtc.draganddropnotifier","rtc.cutcopypaste","rtc.cutcopypaste.converter","rtc.view","rtc.viewready"]}},createInstance:function(e,i,n,o,r,a,s,l,c,d,u,h){return new t(e,i,n,o,r,a,s,l,c,d,u,h)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(628),i(478),i(629),i(207),i(251),i(496),i(379),i(5611),i(5612),i(237),i(249),i(260),i(270),i(347),i(380),i(669)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e(a,{_CURSOR_INSIDE_TOC_CSS_TAG:"insideToC",constructor:function(e,n,o,a,s,l,c,d,u,h,p,f){this._internalDocument=n,this._document=o,this._documentChangeNotifier=a,this._cursor=s,this._actionService=e,this._anchor=l,this._view=p,this._dirtyToC=!1,this._oldHeadingNodes=[],e.loadActions(this._actions()),this.own(i.before(o,"insertContent",t.hitch(this,"_insertContent"))),this.own(i.before(d,"onDragOver",t.hitch(this,"_dragOver"))),this.own(i.after(this._cursor,"onChange",t.hitch(this,"_onChange"))),this.own(i.after(c,"undo",t.hitch(this,"_onUndoRedo"),!0)),this.own(i.after(c,"redo",t.hitch(this,"_onUndoRedo"),!0)),this.own(i.after(o,"insertContentAtCurrentPosition",t.hitch(this,"_onPasteUpdater"),!0)),this.own(i.after(f,"onViewReset",t.hitch(this,"_onDocumentReset"),!0)),this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleDocumentChanged"),!0)),this.own(i.after(this._documentChangeNotifier,"onPreDeletion",t.hitch(this,"_onDelete"))),this.own(i.after(this._document,"onPreInsertText",t.hitch(this,"_onPreInsertText"),!0)),h.registerPasteHandler(r,t.hitch(this,"_handlePaste")),this._converter=h},createTableOfContents:function(){if(!this._actionService.getAction(s.TABLE_OF_CONTENTS.TABLE_OF_CONTENTS_ACTION).enabled)return!1;if(!this._tableOfContentsContainer){var e,t=this._anchor.createHeadingIds(),i=this._cursor.getSelection(),o=this._cursor.getPosition();i&&(e=c.isInSelection(n,i)?null:i);var r=this._document.startEdit();return this._tableOfContentsContainer=d.createTableOfContents(t,this._internalDocument,this._cursor,r),this._cloneHeadingNodes(t),this._updateActions(),e?this._cursor.setSelection(e):(this._cursor.releaseAnchor(),o.line=o.line+1,this._cursor.setPosition(o)),this._document.endEdit(),this._cursor.onUpdate(),!0}return!1},_autoUpdate:function(e){if(this._tableOfContentsContainer&&this._tableOfContentsContainer.parent&&!this._autoUpdateDisabled){var t=this._cursor.getNode().rootContainer(),i=this._cursor.selectionInfo(),o=t instanceof n;if(e||t!==this._lastcursorLineNode&&this._docWasChanged&&this._lastcursorLineNode&&v.isHeadingNode(this._lastcursorLineNode)&&i.startPosition.isEqualTo(i.endPosition)&&!this._onDrag){this._lastcursorLineNode=t,this._docWasChanged=!1,o&&(this._cursor.setPosition(t.startPosition()),this._cursor.collapseSelection());var r=this._document.startEdit(l.AUTO),a=this._anchor.createHeadingIds();this._headingsChanged(a)&&(d.updateTableOfContents(this._internalDocument,this._tableOfContentsContainer,a,this._view,r),this._cloneHeadingNodes(a)),this._document.endEdit()}else this._lastcursorLineNode=t,this._onDrag=!1}},_cloneHeadingNodes:function(e){this._oldHeadingNodes=e.map((function(e){return this._internalDocument.cloneNode(e)}),this)},_headingsChanged:function(e){return 0===this._oldHeadingNodes.length||this._oldHeadingNodes.length!==e.length||JSON.stringify(this._oldHeadingNodes.map(e=>e.serialize()))!==JSON.stringify(e.map(e=>e.serialize()))},_handleDocumentChanged:function(e){if(this._tableOfContentsContainer&&e){var t=e[0];(t=t||{}).isUndoRedo||t.startLine===t.endLine&&this._internalDocument.getLineNumber(this._tableOfContentsContainer)===t.endLine?this._docWasChanged=!1:(this._doEventsIndicateUpdate(e)&&this._autoUpdate(!0),f.hasEventType(e,p.DELETION_EVENT)&&!this._tableOfContentsContainer.parent&&(this._tableOfContentsContainer=u.findTableOfContentsContainer(this._internalDocument)),this._docWasChanged=!0)}},_doEventsIndicateUpdate:function(e){return 0!==e.length&&(!!f.hasEventType(e,p.FORMAT_CHANGE_EVENT)||(e[0].type===p.DELETION_EVENT&&e[0].startLine!==e[0].endLine||(e.length>1&&e[0].type===p.DELETION_EVENT&&e[1].type===p.INSERT_TEXT||f.hasLengthChangingEvent(e))))},_onDocumentReset:function(){this._dirtyToC=!0,this._tableOfContentsContainer=void 0},_onPasteUpdater:function(){this._tableOfContentsContainer=u.findTableOfContentsContainer(this._internalDocument),this._updateActions(),this._autoUpdate(!0)},_onUndoRedo:function(){this._tableOfContentsContainer=u.findTableOfContentsContainer(this._internalDocument),this._tableOfContentsContainer&&this._updateReadOnly(),this._updateActions(),this._cursor.onUpdate()},_insertContent:function(e,t,i){var n;e.forEach((function(e){"TableOfContentsContainer"===e.className&&(n=e)}));var o=n&&this._tableOfContentsContainer;if(n&&(1===e.length&&2===n.children.length?e[1]=new m([]):2!==n.children.length&&(o=!0)),o){for(var r=[],a=e.indexOf(n),s=0;s<a;s++)r[s]=e[s];for(n.children.forEach((function(e){var t=e;t.className="RichTextParagraphNode",r[r.length]=t})),s++;s<e.length;s++)r[r.length]=e[s];e=r}else n&&!this._tableOfContentsContainer&&(this._dirtyToC=!0,u.makeReadOnly(n.children[1],!0));return[e,t,i]},_handlePaste:function(e,t,i){var n=this._converter.convertContentFromSource(i);return this._document.insertTextAtCurrentPosition(u.getTextFromJSON(n)),!0},_dragOver:function(e){e.target.parentElement.rteNode&&e.target.parentElement.rteNode.rootContainer()instanceof o&&(e.dataTransfer.dropEffect="none",e.dataTransfer.effectAllowed="none"),this._onDrag=!0},_actions:function(){return[{id:s.TABLE_OF_CONTENTS.TABLE_OF_CONTENTS_ACTION,enabled:!1,callback:t.hitch(this,"createTableOfContents")},{id:"rtc_general_table_of_contents_linebreak",enabled:!0,key:"enter",callback:t.hitch(this,"_handleLineBreak")},{id:"rtc_general_table_of_contents_shift_linebreak",enabled:!0,key:"shift_enter",callback:t.hitch(this,"_handleLineBreak")},{id:"rtc_general_table_of_contents_disable_auto_update",enabled:!0,callback:t.hitch(this,"_disableAutoUpdate")},{id:"rtc_general_table_of_contents_enable_auto_update",enabled:!0,callback:t.hitch(this,"_enableAutoUpdate")}]},_updateActions:function(){this._actionService.updateAction(s.TABLE_OF_CONTENTS.TABLE_OF_CONTENTS_ACTION,{enabled:!this._isReadOnly()&&this._canCreateTableOfContents()})},_disableAutoUpdate:function(){this._autoUpdateDisabled=!0},_enableAutoUpdate:function(){this._autoUpdateDisabled=!1},_handleLineBreak:function(){var e=this._cursor.getNode().rootContainer();if(e instanceof o){if(h.isAtStartOfContainer(this._cursor.position,e)){var t=this._document.startEdit(),i=this._internalDocument.createContainerForType("text").container,n=this._internalDocument.createNode(i.getDefaultChild());i.addChild(n);var r=this._internalDocument.insertAtPosition(i,new g(e,0));return this._internalDocument.emitDocumentEvents(r.events),this._cursor.setPosition(e),t.appendRedoEvents(r.events),t.appendUndoEvents(r.events),this._document.endEdit(),this._cursor.onUpdate(),!0}return this._cursor.setPosition(e.nextSibling()),!0}return!1},_onChange:function(){this._dirtyToC&&(this._tableOfContentsContainer=u.findTableOfContentsContainer(this._internalDocument),this._dirtyToC=!1),this._autoUpdate(),this._styleOnCursor(),this._updateActions(),this._tableOfContentsContainer&&(c.checkFullSelection(this._cursor,this._tableOfContentsContainer,this._internalDocument),this._updateReadOnly())},_updateReadOnly:function(){var e=this._isReadOnlySet;c.isInFullSelection(this._cursor,this._internalDocument,this._tableOfContentsContainer)?(u.makeReadOnly(this._tableOfContentsContainer.lastChild(),!1),this._isReadOnlySet=!1,this._actionService.updateAction(s.CUT_COPY_PASTE.CUT_ACTION,{enabled:!0}),this._actionService.updateAction(s.CUT_COPY_PASTE.PASTE_ACTION,{enabled:!0})):this._isReadOnlySet||(this._isReadOnlySet=!0,u.makeReadOnly(this._tableOfContentsContainer.lastChild(),!0)),e!==this._isReadOnlySet&&this._cursor.onChange()},_styleOnCursor:function(){if(this._tableOfContentsContainer){var e=this._cursor.getSelection(),t=c.isInSelection(o,e),i=t||this._cursor.getNode().rootContainer(),n=this._internalDocument.getLineNumber(this._tableOfContentsContainer);i instanceof o?this._view.applyClassToLine(n,this._CURSOR_INSIDE_TOC_CSS_TAG):this._view.removeClassFromLine(n,this._CURSOR_INSIDE_TOC_CSS_TAG)}},_onDelete:function(e,t){if(e||this._internalDocument.isReadOnly())return e;var i=t[0],n=u.deleteToC(this._cursor,this._document,this._internalDocument,this._tableOfContentsContainer,i);return n.dirty&&(this._dirtyToC=!0,this._tableOfContentsContainer=void 0,this._updateActions()),n.done&&(e=!0),e},_onPreInsertText:function(e,t){if(t.getNode().rootContainer()instanceof o)return[new _({text:u.convertLineBreakToWhitespace(e)}).serialize()]},_isReadOnly:function(){return!(!this._internalDocument||!this._internalDocument.isReadOnly())||!(!this._cursor||!this._cursor.isCursorReadOnly())},_canCreateTableOfContents:function(){return!(this._tableOfContentsContainer&&this._tableOfContentsContainer.parent)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(234),i(260),i(270),i(380),i(427),i(497),i(628),i(478),i(629),i(950)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return{_COLON:":",_LINE_BREAK:"\n",_SPACE4:" ",createTableOfContents:function(e,i,n,o){var r=new s([]),l=this._getInsertPosition(n);this._createTableOfContentsHeading(r);var c=new a([]);e=this._stripEmptyHeadingsOut(e),this._createItems(e).forEach((function(e){c.addChild(e)})),r.addChild(c);var d=i.insertAtPosition(r,l);return o.appendRedoEvents(d.events),o.appendUndoEvents(t.translateEventsForUndo(d.events)),i.emitDocumentEvents(d.events),r},updateTableOfContents:function(e,t,i,n,o){var a=t.lastChild(),s=a.children.length;i=this._stripEmptyHeadingsOut(i);var l=this._createItems(i),c=[];l.forEach((function(t){var i=e.insertAtPosition(t,a.endPosition());c=c.concat(i.events)})),e.emitDocumentEvents(c);for(var d=e.getLineNumber(t),u=0;u<s;u++)e.deleteNode(a.firstChild());var h=[r.create(d,d)];e.emitDocumentEvents(h)},_createItems:function(e){for(var t=e.length,i=this._insertTitle(e),r=[],a=this._getAvailableDepth(e,i),s=0;s<t;s++)if(1!==e[s].level||i){var l=new o([],{hyperlink:{target:"",anchor:e[s].anchorId},readOnly:!0}),c=this._getSpacing(e[s].level,a);if(""!==c){var d=new n({text:c,readOnly:!0});r.push(d)}var u=new n({text:s!==t-1?e[s].getText()+this._LINE_BREAK:e[s].getText(),readOnly:!0});l.addChild(u),r.push(l)}if(0===r.length){var h=new n([]);h.text=" ",h.readOnly=!0,r.push(h)}return r},_stripEmptyHeadingsOut:function(e){return e.filter((function(e){return""!==e.getText()}))},_insertTitle:function(e){for(var t=0,i=0;i<e.length;i++)1===e[i].level&&t++;return t>1},_getAvailableDepth:function(e,t){var i=[];return e.forEach((function(e){-1===i.indexOf(e.level)&&(t&&e.level>0||!t&&e.level>1)&&i.push(e.level)})),i.sort()},_getSpacing:function(e,t){for(var i="",n=0;n<t.indexOf(e);n++)i+=this._SPACE4;return i},_getInsertPosition:function(t){var n=t.selectionInfo().startNode;if(!e.isCodeContainer(n))return new i(n,0);for(var o=n.textContainer();o;){if(!o.prevNode()||!e.isCodeContainer(o.prevNode()))return new i(o,0);o=o.prevNode().textContainer()}},_createTableOfContentsHeading:function(e){var t=new n({text:c.tableOfContentsHeading,bold:!0}),i=new l([t]);e.addChild(i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(260),i(237),i(478),i(629),i(497),i(945),i(401),i(379),i(270),i(473)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return{deleteToC:function(e,t,r,a,u){var h=e.getNode().rootContainer(),p=e.getSelection(),f=e.selectionInfo(),g=l.isInSelection(n,p);if(h instanceof n||g){if(f.endNode.textContainer()instanceof o&&f.startNode.textContainer()instanceof o){if(i.isAtEndOfContainer(e.position,e.getNode().textContainer())&&u>0&&!p){if(!this.coversFullParagraphs(f,e.getNode().textContainer()))return l.setContainerSelection(e,r,a),{done:!0,dirty:!1};if(0===e.getNode().textContainer().getText().length)return{done:!0,dirty:!1}}return{done:!1,dirty:!1}}if(g&&f.startNode.rootContainer()!==a&&f.endNode.rootContainer()!==a)return this._deleteBlock(e,t,r,a),p=new s(p.getStartPosition(),p.getEndPosition(),!1,!1),e.setSelection(p),{done:!1,dirty:!0};if(this.coversFullParagraphs(e.adjustSelection(f,!0),a))return this._deleteBlock(e,t,r,a),{done:!0,dirty:!0};if(p&&i.isAtStartOfContainer(p.getStartPosition(),a)&&r.getLineNumber(a)<r.getLineNumber(f.endNode.rootContainer())){var m=a.nextSibling();m=m.firstChild()?m:m.nextSibling();var _=new c(m.firstChild(),0);return this._deleteBlock(e,t,r,a),p=new s(_,p.getEndPosition(),!1,!1),e.setPosition(p.getEndPosition()),e.setSelection(p),{done:!1,dirty:!0}}return p&&i.isAtStartOfContainer(p.getEndPosition(),a)&&r.getLineNumber(a)>r.getLineNumber(f.startNode.rootContainer())?{done:!1,dirty:!1}:(l.setContainerSelection(e,r,a),{done:!0,dirty:!1})}return!p&&(h.previousSibling()instanceof n&&i.isAtStartOfContainer(e.position,h)&&u<0||h.nextSibling()instanceof n&&i.isAtEndOfContainer(e.position,h)&&u>0&&!h.isEmpty())?(l.setContainerSelection(e,r,a),{done:!0,dirty:!1}):!p&&u<0&&h.previousSibling()instanceof d&&h.previousSibling().previousSibling()instanceof n&&i.isAtStartOfContainer(e.position,h)?(this._deleteBlock(e,t,r,h.previousSibling()),{done:!0,dirty:!1}):{done:!1,dirty:!1}},coversFullParagraphs:function(e,t){return i.isAtStartOfContainer(e.startPosition,t)&&i.isAtEndOfContainer(e.endPosition,t)},_deleteBlock:function(e,i,n,o){var a=i.startEdit(),s=0;o.nextSibling()instanceof d&&(n.deleteNode(o.nextSibling()),s++),e.setPosition(o.nextSibling()),e.releaseAnchor();var l=n.getLineNumber(o);n.deleteNode(o);var c=[r.create(l,l+1+s)];a.appendRedoEvents(c),a.appendUndoEvents(t.translateEventsForUndo(c)),n.emitDocumentEvents(c),i.endEdit()},findTableOfContentsContainer:function(e){var t=e.root.children;if(t)for(var i=t.length,o=0;o<i;o++)if(t[o]instanceof n)return t[o];return null},makeReadOnly:function(e,t){e&&e.children.forEach((function(e){e.readOnly=t,e.children&&this.makeReadOnly(e,t)}),this)},getTextFromJSON:function(e){var t=e.text?e.text:"";return e.forEach((function(e){t+=e.text?e.text:"",e.children&&(t+=this.getTextFromJSON(e.children)+" ")}),this),t=this.convertLineBreakToWhitespace(t)},convertLineBreakToWhitespace:function(e){return e.replace(/[\r\n]/g," ")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5614)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(424),i(390),i(920),i(2074),i(478)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t],{_compatibleParents:[],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return r},getReceivingInstruction:function(e){if(e.isAtEdge())return new n;var t=e.getNode().endPosition();return new o(t)},getTopLevelInsertionInstruction:function(e,t,n,o,r){return{insertInRoot:{relationToPosition:i.RELATION.BEFORE}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5616)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(818),i(629)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(){},getApplicableNodeClass:function(){return i},isConvertibleTo:function(e){return!1},isConvertibleFrom:function(e){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5618)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(818),i(628)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(){},getApplicableNodeClass:function(){return i},isConvertibleTo:function(e){return!1},isConvertibleFrom:function(e){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5620)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(478)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return i},enter:function(e,t,i){return!i.writeTableOfContent}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5622)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(478)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return i},enter:function(e,t,i){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5624)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(722),i(478)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_STYLES:["margin-bottom","padding-bottom"],constructor:function(){},getApplicableNodeClass:function(){return n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5626)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(478)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){},getApplicableNodeClass:function(){return i},enter:function(e,t,i){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5628)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(495),i(252),i(478)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_TABLE_OF_CONTENTS_COMMAND:"matlabtableofcontents",_HAS_TOC_COMMAND:"matlabhastoc",constructor:function(){},getApplicableNodeClass:function(){return n},enter:function(e,i,n){var o=i.firstChild().getText(),r=t.wrapInCommand(this._TABLE_OF_CONTENTS_COMMAND,o)+"\n";return e.addToBody(r),e.addToPreamble(t.wrapInCommand(this._HAS_TOC_COMMAND)+"\n\n"),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5630)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(621),i(478)],o=i.dj.d(n,(function(e,t,i){return e([t],{_STYLES:["margin-left","margin-right","margin-top","margin-bottom"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5632)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(e){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(685),i(402),i(629)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{_TOC_HEADING_ROLE:"tocheading",constructor:function(){},getApplicableNodeClass:function(){return n},_processElement:function(e){return e.setAttribute(i.ROLE,this._TOC_HEADING_ROLE),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5634)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(621),i(629)],o=i.dj.d(n,(function(e,t,i){return e([t],{_STYLES:["font-weight","font-family","font-size","padding-top","padding-left","padding-bottom","padding-right"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5636)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(252),i(357),i(426),i(427),i(628)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t],{_LEADER_PATTERN:"dots",_STYLES:["font-weight","font-family","font-size","padding-left"],constructor:function(e){this._view=e},getApplicableNodeClass:function(){return r},enter:function(e,t,i){return e.openWrapperElement(),!0},leave:function(e,t,r){var a=n.createFOElementWithStyles(i.BLOCK,t,this._STYLES,this._view),s=0;t.children.forEach((function(e){if(e instanceof o){var t=n.createFOElementWithStyles(i.BLOCK,e,this._STYLES,this._view);t.setAttribute("margin-left",s+i.POINT);var r=n.createFOElementWithStyles(i.BASIC_LINK,e,["color"],this._view);r.setAttribute("internal-destination",e.hyperlink.getAnchor()),r.textContent=e.getText().replace("\n",""),t.appendChild(r),t.setAttribute("text-align-last","justify");var l=n.createFOElement(i.LEADER);l.setAttribute("leader-pattern",this._LEADER_PATTERN),t.appendChild(l);var c=n.createFOElement(i.PAGE_NUMBER_CITATION);c.setAttribute("ref-id",r.getAttribute("internal-destination")),t.appendChild(c),a.appendChild(t),s=0}else s=3*e.getText().length}),this),e.closeWrapperElement(a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5638)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.serializers.containers.tableofcontentscontainer"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(319),i(478),i(252)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_STYLE_TOC_TITLE:{id:"TOCHeading",name:"TOC Heading",type:"paragraph",basedOn:"",fontFamily:"Helvetica",fontSize:"29",bold:!0,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"140",before:"280",line:"0",contextualSpacing:!1},indentation:"0",rowSpacing:"0"},_STYLE_TOC_LIST:{id:"TOC1",name:"TOC 1",type:"paragraph",basedOn:"",fontFamily:"Helvetica",fontSize:"21",bold:!1,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"0",before:"0",line:"0",contextualSpacing:!0},indentation:"0",rowSpacing:"0"},_STYLE_TOC_LIST_2:{id:"TOC2",name:"TOC 2",type:"paragraph",basedOn:"",fontFamily:"Helvetica",fontSize:"21",bold:!1,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"0",before:"0",line:"0",contextualSpacing:!0},indentation:"240",rowSpacing:"0"},_STYLE_TOC_LIST_3:{id:"TOC3",name:"TOC 3",type:"paragraph",basedOn:"",fontFamily:"Helvetica",fontSize:"21",bold:!1,italic:!1,underline:!1,color:"",backgroundColor:"",borderColor:"",spacing:{after:"0",before:"0",line:"0",contextualSpacing:!0},indentation:"480",rowSpacing:"0"},constructor:function(e){this._tableOfContentsContainer=e},getApplicableNodeClass:function(){return i},enter:function(e,t,i){return e.write(this._tableOfContentsContainer,t),!0},finalize:function(e){e.addStyle(this._STYLE_TOC_TITLE),e.addStyle(this._STYLE_TOC_LIST),e.addStyle(this._STYLE_TOC_LIST_2),e.addStyle(this._STYLE_TOC_LIST_3)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2105)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5641)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(319),i(2106),i(300),i(524)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{_SOFT_LINE_BREAK:"\n",_TOC_META_TEXT:"TOC \\o \\h \\z \\u",write:function(e,t){return i.assert(t.serializers,"Required argument missed: 'serializers'"),this._writeParagraph(e,t)},_writeParagraph:function(e,t){var o=r.createXMLElement(),s=r.createParagraphProperty(this.getXMLType());if(s=r.addParagraphProperty(s,n.JUSTIFCATION_TAG_NAME,e.align),o.appendChild(s),e.anchorId){var l=r.createBookmarkStart(n.BOOKMARK_PREFIX+e.anchorId,e.anchorId);o.appendChild(l)}var c=document.createElementNS(n.NAMESPACE_URL,n.NAMESPACE_TAG+":"+n.RUN_OF_TEXT_TAG_NAME);o.appendChild(c),(p=document.createElementNS(n.NAMESPACE_URL,a.FIELD_TAG)).setAttribute(a.FIELD_TYPE_TAG,a.BEGIN),c.appendChild(p);c=document.createElementNS(n.NAMESPACE_URL,n.NAMESPACE_TAG+":"+n.RUN_OF_TEXT_TAG_NAME);o.appendChild(c);var d=document.createElementNS(n.NAMESPACE_URL,a.INSERT_TEXT_TAG);d.textContent=this._TOC_META_TEXT,c.appendChild(d);c=document.createElementNS(n.NAMESPACE_URL,n.NAMESPACE_TAG+":"+n.RUN_OF_TEXT_TAG_NAME);o.appendChild(c),(p=document.createElementNS(n.NAMESPACE_URL,a.FIELD_TAG)).setAttribute(a.FIELD_CHAR_TAG,a.SEPARATE),c.appendChild(p);var u=!1;if(e.children.forEach((function(e,r){var s=t.serializers.getSerializer(e.className);s?(o.appendChild(s.write(e,t)),-1!==e.node.getText().indexOf(this._SOFT_LINE_BREAK)&&o.appendChild(document.createElementNS(n.NAMESPACE_URL,a.LINE_BREAK_TAG))):(u=!0,i.assert(u,!0,"Unrecognized node type:"+e.className))}),this),e.anchorId){var h=r.createBookmarkEnd(e.anchorId);o.appendChild(h)}var p;c=document.createElementNS(n.NAMESPACE_URL,n.NAMESPACE_TAG+":"+n.RUN_OF_TEXT_TAG_NAME);return o.appendChild(c),(p=document.createElementNS(n.NAMESPACE_URL,a.FIELD_TAG)).setAttribute(a.FIELD_TYPE_TAG,a.END),c.appendChild(p),u&&1===o.children.length&&(o=null),o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5643)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(391),i(628)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return n},layout:function(e,t){return e.layoutInto(t,"div",{class:"paragraphNode ToCItems"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5645)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(391),i(629)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return n},layout:function(e,t){return e.layoutInto(t,"div",{class:"paragraphNode ToCHeading"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5647)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(391),i(478)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._hiddenNodeModel=e},getApplicableNodeClass:function(){return n},layout:function(e,t){return e.layoutInto(t,"div",{class:"ToC"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5649)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(478)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5651)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(629)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5653)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(498),i(628)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5655)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(628),i(686)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5657)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(478),i(1143)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5659)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(629),i(686)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5661)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(402),i(438),i(252),i(427),i(628)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{_TOC_LIST:"toclist",_TOC_INDENT_SPACES:4,constructor:function(){},getApplicableNodeClass:function(){return r},enter:function(e,t,n){var r=0,a=0,s=i.getInternalAnchorPrefix(n),l=this._makeList();return e.appendElement(l),t.children.forEach((function(e){if(e instanceof o){for(var t=r-a;t>0;){var i=this._makeList();l.appendChild(i),l=i,t-=1}for(;t<0;)l=l.parentElement,t+=1;var n=this._makeListItemFromLink(e,s);l.appendChild(n),a=r,r=0}else r=Math.floor(e.getText().length/this._TOC_INDENT_SPACES)}),this),!0},_makeList:function(){var e=document.createElement(t.ITEMIZEDLIST);return e.setAttribute(t.ROLE,this._TOC_LIST),e},_makeListItemFromLink:function(e,i){var n=document.createElement(t.LINK),o="#"+i+e.hyperlink.getAnchor();n.setAttribute(t.XLINK_HREF,o);var r=document.createTextNode(e.getText().replace("\n",""));n.appendChild(r);var a=document.createElement(t.PARA);a.appendChild(n);var s=document.createElement(t.LISTITEM);return s.appendChild(a),s}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5663)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(319),i(521),i(300)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{_INTRODUCED_VERSION:"R2018a",write:function(e,t){i.assert(t.serializers,"Required argument missed: 'serializers'");var o=document.createElement(this.getNodeType()),a=r.createXMLElement(n.SDT_TAG),s=r.createXMLElement(n.SDT_PROPERTY_TAG);s=r.createSdtPartGalleryPropertyElement(s,this.getXMLType()),a.appendChild(s);var l=r.createXMLElement(n.SDT_CONTENT_TAG);if(a.appendChild(l),e[0].anchorId){var c=r.createBookmarkStart(n.BOOKMARK_PREFIX+e[0].anchorId,e[0].anchorId);a.appendChild(c)}if(e[0].children&&e[0].children.forEach((function(e){var i=t.serializers.getSerializer(e.className).write(e,t);l.appendChild(i)}),this),e[0].anchorId){var d=r.createBookmarkEnd(e[0].anchorId);a.appendChild(d)}if(o.appendChild(a),!t.skipAlternate){var u=r.createTextParagraph(""),h=r.createAlternateContent(this._INTRODUCED_VERSION,a,u);o.appendChild(h)}return o},read:function(e,i,o){var a,s=!0,l={className:this.getNodeType(),children:[]};a=e.childNodes.length>2?(a=Array.prototype.slice.call(e.childNodes).reduce(t.partial(this._reduceByNodeType,o),[])).map((function(e){return this._combineParagraphs(e)}),this):e.childNodes;for(var c=0;c<a.length;c++){var d=a[c].getElementsByTagNameNS(n.NAMESPACE_URL,n.PARAGRAPH_STYLE_TAG_NAME)[0],u=o.getSerializer(r.getClassName(d)),h={};u&&((h=u.read(a[c],i,o)).readObject.className=r.getClassName(d),l.children.push(h.readObject),h.readStatus||(s=!1));var p=r.getBookmarkStart(e.parentNode);p&&p.id&&(l.anchorId=p.id)}return{readObject:[l],readStatus:s}},_reduceByNodeType:function(e,t,i){e.getSerializer(r.getAttribute(i));var n=t[t.length-1];return n&&r.getAttribute(n[0])===r.getAttribute(i)?n.push(i):t.push([i]),t},_combineParagraphs:function(e){for(var t=e[0],i=1;i<e.length;i++){for(var n=t.lastElementChild;n.lastElementChild;)n=n.lastElementChild;for(n.textContent+="\n";e[i].children.length>1;)t.appendChild(e[i].children[1])}return t},getXMLType:function(){return"Table of Contents"},getNodeType:function(){return"TableOfContentsContainer"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2105)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2106)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5667)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.export.htmlwriters","rtc.view","rtc.export.m"]}},createInstance:function(e,t,n){return new i(e,t,n)},priority:function(){return 50}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1918)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i){this._mExporter=i},finalize:function(){if("clipboard"!==this._context.target){var e=this._mExporter.export(this._context);this._addToBody(e.then(function(e){return this._getMATLABCodeAsComment(e)}.bind(this)))}},_getMATLABCodeAsComment:function(e){var t="";return e&&(t="\n<br>",t+="\n\x3c!-- \n",t+="##### SOURCE BEGIN #####\n",t+=e.replace(/--/g,"REPLACE_WITH_DASH_DASH"),t+="\n##### SOURCE END #####\n",t+="--\x3e\n"),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5669),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},priority:function(){return 1e3},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.cursor","rtc.actionservice","rtc.document","rtc.toggletextandcode"]}},createInstance:function(e,i,n,o,r){return new t(e,i,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(253),i(209),i(251),i(234),i(249),i(260),i(237),i(274),i(403),i(399)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(h,{_CODE_NODE_TYPE:"code",_TEXT_NODE_TYPE:"text",_INSERT_NODE_BEFORE:"before",_INSERT_NODE_AFTER:"after",constructor:function(e,i,n,o,r){this._internalDocument=e,this._cursor=i,this._actionService=n,this._document=o,this._toggleTextAndCode=r,this._actions=[{id:"rtc_insert_section",enabled:!1,callback:t.hitch(this,"_insertSectionCallback")},{id:"rtc_insert_text",enabled:!1,key:"alt_enter",platformKey:{mac:"alt_enter"},callback:t.hitch(this,"_insertTextCallback")},{id:"rtc_insert_code",enabled:!1,key:"alt_enter",platformKey:{mac:"alt_enter"},callback:t.hitch(this,"_insertCodeCallback")}],this._actionService.loadActions(this._actions),this._addListeners()},_addListeners:function(){this._handles=[],this._handles.push(i.after(this._cursor,"onChange",t.hitch(this,"_updateActionState"))),this._handles.forEach((function(e){this.own(e)}),this)},enableForHiddenCode:function(){this._addListeners(),this._updateActionState()},disableForHiddenCode:function(){this._actions.forEach((function(e){this._actionService.updateAction(e.id,{enabled:!1})}),this),this._removeListeners()},_insertSectionCallback:function(){if(this._actionService.getAction(r.SECTIONS.INSERT_SECTION_ACTION).enabled)return this._insertSection()},_insertTextCallback:function(){return!!this._actionService.getAction("rtc_insert_text").enabled&&this._insertTextOrCode()},_insertCodeCallback:function(){return!!this._actionService.getAction("rtc_insert_code").enabled&&this._insertTextOrCode()},_updateActionState:function(){this._actionService.updateAction("rtc_insert_section",{enabled:this._canInsertSection()});var e=this._canInsertText(),t=e&&this._cursor.hasSelection()?n.convertSelectionToTextDescription:n.insertTextDescription;this._actionService.updateAction("rtc_insert_text",{enabled:e,description:t});var i=this._canInsertCode(),o=i&&this._cursor.hasSelection()?n.convertSelectionToCodeDescription:n.insertCodeDescription;this._actionService.updateAction("rtc_insert_code",{enabled:i,description:o})},_canInsertSection:function(){return!(!this._cursor||this._internalDocument.isReadOnly())&&!this._cursor.hasSelection()},_canInsertText:function(){var e=this._getSelectionInfoForInsertTextOrCodeEnablement();return!!e&&"code"===d.getParagraphFormat(e)},_canInsertCode:function(){var e=this._getSelectionInfoForInsertTextOrCodeEnablement();return!!e&&"code"!==d.getParagraphFormat(e)},_getSelectionInfoForInsertTextOrCodeEnablement:function(){if(!this._cursor||this._cursor.isCursorReadOnly()||this._internalDocument.isReadOnly())return null;var e=this._cursor.adjustSelection(this._cursor.selectionInfo(),!0);return d.isContinuousFormat(e)?this._coversFullParagraphs(e)&&!this._toggleTextAndCode.isActionEnabled()?null:e:null},_insertSection:function(){if(this._internalDocument.isReadOnly())return o.assert("Trying to insert a section in a read only state."),!1;var e=this._cursor.adjustSelection(this._cursor.selectionInfo(),!0);if(!d.isContinuousFormat(e))return o.assert("Trying to insert a section in a multi format selection."),!1;this._insertTextOrCode()},_insertTextOrCode:function(){var e=this._canInsertText(),t=this._canInsertCode();if(!e&&!t)return!1;var i=this._fixedSelectionInfo();if(this._coversFullParagraphs(i))return this._actionService.executeAction("rtc_toggle_code_and_text"),!0;this._internalDocument.onPreDocumentChanged();var n=this._document.startBlockEdit(),o=this._treatSelection(),r=this._insertBlankLine(e);if(this._emitEvents(r,n),o){var a=c.textToContent(o,this._cursor.getNode());t&&!this._cursor.getNode().textContainer().isEmpty()&&(r=this._insertBlankLine(!1),this._emitEvents(r,n)),this._document.insertContent(a,this._cursor.position,this._cursor)}return this._document.endBlockEdit(n),this._cursor.onUpdate(!1,!0),!0},_insertBlankLine:function(e){var t=this._cursor.position;this._cursor.hasSelection()&&o.assert("_insertBlankLine: Selection must be empty!");var i=e?this._TEXT_NODE_TYPE:this._CODE_NODE_TYPE,n=this._internalDocument.createContainerForType(i).container,r=this._internalDocument.createNode(n.getDefaultChild());n.addChild(r);var a=this._internalDocument.insertAtPosition(n,t);return a.insertionNotAllowed||(this._cursor.setPosition(r.startPosition()),this._cursor.onUpdate(!1,!0)),a.events},_emitEvents:function(e,t){t.appendRedoEvents(e),t.appendUndoEvents(l.translateEventsForUndo(e)),this._internalDocument.emitDocumentEvents(e)},_treatSelection:function(){var e;return this._cursor.hasSelection()&&(e=this._cursor.selectedText(),this._document.deleteTextAtCurrentPosition(s.BACKWARD_DELETE)),e},_coversFullParagraphs:function(e){return c.isAtStartOfContainer(e.startPosition)&&c.isAtEndOfContainer(e.endPosition)},_fixedSelectionInfo:function(){var e=this._cursor.selectionInfo();return e.isNull||(e=this._cursor.adjustSelection(e,!0),this._cursor.setPosition(e.startNode,e.startPos),this._cursor.fixAnchor(!0),this._cursor.setPosition(e.endNode,e.endPos),e=this._cursor.selectionInfo()),e},_removeListeners:function(){this._handles.forEach((function(e){e.remove()}),this),this._handles=[]},destroy:function(){this.inherited(arguments),this._removeListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5671),i(5672)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.internaldocument","rtc.view.viewportopenedservice","rtc.actionservice","rtc.backingstore","rtc.serializers","rtc.code.matlabfiletype","rtc.templateType","matlab.templateservice","rtc.settings.service","rtc.documentationservice","rtc.touch.service","rtc.documentrenderedservice","rtc.export.fullfile","rtc.embeddedoutputs"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2107)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.internaldocument","rtc.view.viewportopenedservice","rtc.actionservice","rtc.backingstore","rtc.serializers","rtc.code.matlabfiletype","rtc.templateType","matlab.templateservice","rtc.settings.service","rtc.documentationservice","rtc.touch.service","rtc.documentrenderedservice"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(285),i(219),i(549),i(1484),i(2110),i(2112),i(2107)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(s,{_EVENT_GET_CACHEABLE_CONTENT_REQUEST_CHANNEL_PREFIX:"/liveeditor/events/getCacheableContentRequest/",_EVENT_GET_CACHEABLE_CONTENT_RESPONSE_CHANNEL_PREFIX:"/liveeditor/events/getCacheableContentResponse/",constructor:function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g){this._embeddedOutputsPlugin=g,this._fullFileExporter=f,i.subscribe(this._EVENT_GET_CACHEABLE_CONTENT_REQUEST_CHANNEL_PREFIX+e,"_handleGetCacheableContentRequest",this)},_handleGetContentRequest:function(e){var t=this._EVENT_GET_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId;this._getContentAndRespondToChannel(e,t)},_handleGetCacheableContentRequest:function(e){var n,o=this._EVENT_GET_CACHEABLE_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId,r={status:!0,exception:null,contentType:e.data.contentType,mContent:null,mlxContent:null};try{n=this._handleGetMLXContentRequest()}catch(e){r.exception=e.stack,r.status=!1}t(n,(function(e){r.mlxContent=e,i.publish(o,r)}),(function(e){r.exception=e.stack,r.status=!1,r.content=null,i.publish(o,r)}))},_getContentAndRespondToChannel:function(e,n){var o=e.data,r=o.contentType,a=o.additionalArguments,s={status:!0,exception:null,contentType:r,content:null};try{var l;if("mlx"===r)l=this._handleGetMLXContentRequest();else{var c=null;a&&(c=a.length?a[0]:a),l=this._fullFileExporter.export(r,c)}s.content=l}catch(e){s.exception=e.stack,s.status=!1}t(l,function(e){s.content=e,"docx"===r&&a.Destination?this._handleDOCXExport(a.Destination,s,n):i.publish(n,s)}.bind(this),(function(e){s.exception=e.stack,s.status=!1,s.content=null,i.publish(n,s)}))},_handleGetDocBookXMLContentRequest:function(e){return this._fullFileExporter.export("docbookxml",e)},getPartialMLXContentOpcPackage:function(){var e=this.inherited(arguments),t=r.write(this._embeddedOutputsPlugin),i=e.createPart(this._OUTPUT_LOCATION,this._OUTPUT_FORMAT);return i.setContent(t),e.createRelationship(this._OUTPUT_RELATIONSHIP_TYPE,this._OUTPUT_LOCATION),e},loadDocumentAndOutputFromOpcPackage:function(e){var t=o.read(this._internalDocument,e,this._serializers),i=e.getPart(this._OUTPUT_LOCATION),n=!0;this._embeddedOutputsPlugin&&0!==Object.keys(i).length&&i.getContent()&&(n=a.read(this._embeddedOutputsPlugin,{output:i.getContent()})),t&&n||this.onLoadFutureVersion()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5674)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.embeddedoutputs.clearoutputscache"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(363),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,n,r){this._editorId=e,this._mvm=r||i.getInstance(),this.own(o.after(n,"onOutputsCleared",t.hitch(this,"_handleOnOutputsCleared"),!0))},_handleOnOutputsCleared:function(e){e&&this._mvm.feval("matlab.internal.editor.EvaluationOutputsService.clearOutputsCache",0,[this._editorId])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5676)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.actionservice","rtc.cursor","rtc.internaldocument","rtc.document.info","rtc.export.html","rtc.embeddedoutputs.view"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 50}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(528),i(1390)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t,i,n,o,r,a){this._embeddedOutputsView=a},_print:function(e){this._cefPrint(e)},_prePrint:function(e){this._options={};var i=!1,n=null;return this._embeddedOutputsView.isInView(null)||((n=this._embeddedOutputsView.getLayoutView())===t.HIDE_CODE_VIEW_STATE&&(this._options.hideCode=!0),e||n===t.INLINE_VIEW_STATE||(this._embeddedOutputsView.setLayoutState(t.INLINE_VIEW_STATE),i=!0)),this.inherited(arguments).then(function(e){return i&&this._embeddedOutputsView.setLayoutState(n),e}.bind(this))},_getExportOptions:function(){return this._options}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5678)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.matlabfiletype","matlab.languageanalysis.filestructureservice"]}},createInstance:function(e,t){return new i(e,t)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(2113)],o=i.dj.d(n,(function(e,t,i){return t(i,{constructor:function(t,i){this._fileTypeService=t,this._fileStructureService=i,this._isScript=!0,this.own(e.after(this._fileStructureService,"onDataUpdated",this._updateFileType.bind(this)))},_updateFileType:function(){this._fileStructureService.hasTreeError()||this._fileTypeService.whenReady(()=>{let e=this._fileTypeService.isScript();e!==this._isScript&&(this._isScript=e,this.onScriptFileTypeChange(this._isScript))})},isFileTypeScript:function(){return this._isScript},onScriptFileTypeChange:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5680),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter","rtc.clipboardtempdirpath","rtc.internaldocument","rtc.view","rtc.embeddedoutputs"]}},createInstance:function(e,i,n,o,r){return new t(e,i,n,o,r)},priority:function(){return 50}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1353)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i,n,o){this.embeddedOutputsView=o.getEmbeddedOutputsView()},_write:function(e){var t={};if(this._clipboardTempDirPath){var i=this._htmlWriter.writeWithImageList(this._internalDocument,e,this._clipboardTempDirPath,this.embeddedOutputsView,this._view);t.htmlStr=i.html,t.imageList=i.images}else t.htmlStr=this._htmlWriter.write(this._internalDocument,e,this.embeddedOutputsView,this._view);return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5682),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter","rtc.internaldocument","rtc.view","rtc.embeddedoutputs"]}},createInstance:function(e,i,n,o){return new t(e,i,n,o)},priority:function(){return 50}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1366)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i,n){this._embeddedOutputsView=n.getEmbeddedOutputsView()},_write:function(e){return this._rtfWriter.write(this._internalDocument,e,this._embeddedOutputsView,this._view)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2114)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore.contentcontributor","rtc.document","rtc.featureinterface","rtc.domnode.external","rtc.focusservice","rtc.bannermanager","rtc.hyperlinkservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){e.exports={disableClassesBannerText:"クラスはライブ エディターではサポートされていません。続行するには、ファイルをテキスト形式のコード ファイル (.m) として保存してください。",disableFunctionsBannerText:"ライブ エディターは<a href= '' id='bannerHyperLink'>スクリプトのローカル関数</a>のみをサポートします。続行するには、function キーワードの上にコードを追加するか、ファイルをテキスト形式のコード ファイル (.m) として保存してください。",forwardCompatibleNotification:"このファイルは、<a id='forwardCompatibilityBannerHyperlink'>MATLAB の新しいリリース</a>で作成されています。このファイルを編集すると、コンテンツが失われる可能性があります。"}},function(e,t,i){e.exports={disableClassesBannerText:"实时编辑器中不支持类。要继续,请将文件保存为纯文本代码文件(.m)。",disableFunctionsBannerText:"实时编辑器仅支持<a href= '' id='bannerHyperLink'>脚本中的局部函数</a>。要继续,请在函数关键字上方添加代码或将文件保存为纯文本代码文件(.m)。",forwardCompatibleNotification:"此文件是在<a id='forwardCompatibilityBannerHyperlink'>更新的 MATLAB 版本</a>中创建的。如果编辑此文件,则内容可能会丢失。"}},function(e,t,i){e.exports={disableClassesBannerText:"라이브 편집기에서는 클래스가 지원되지 않습니다. 계속하려면 파일을 일반 텍스트 코드 파일(.m)로 저장하십시오.",disableFunctionsBannerText:"라이브 편집기는 <a href= '' id='bannerHyperLink'>스크립트의 로컬 함수</a>만 지원합니다. 계속하려면 function 키워드 위에 코드를 추가하거나 파일을 일반 텍스트 코드 파일(.m)로 저장하십시오.",forwardCompatibleNotification:"이 파일은 <a id='forwardCompatibilityBannerHyperlink'>MATLAB 최신 릴리스</a>에서 생성되었습니다. 이 파일을 편집하면 내용이 손실될 수 있습니다."}},function(e,t,i){e.exports={root:{disableClassesBannerText:"Classes are not supported in the Live Editor. To continue, save the file as a plain text code file (.m).",disableFunctionsBannerText:"The Live Editor only supports <a href= '' id='bannerHyperLink'> local functions in scripts</a>. To continue, add code above the function keyword or save the file as a plain text code file (.m).",forwardCompatibleNotification:"This file was created in a <a id='forwardCompatibilityBannerHyperlink'>newer release of MATLAB</a>. Content may be lost if the file is edited."},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(2114)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return!!e},requires:function(){return{isApplicable:["rtc.integration.touchmode"],createInstance:["livecode.saveload.withoutputs","rtc.document","rtc.featureinterface","rtc.domnode.external","rtc.focusservice","rtc.bannermanager","rtc.hyperlinkservice"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5690)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.matlabfiletype","rtc.featureinterface","liveeditor.view","rtc.domnode.external","rtc.hyperlinkservice","rtc.focusservice","rtc.bannermanager"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(225),i(203),i(204),i(246),i(827),i(2115)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i(null,{_FUNCTIONS_IN_SCRIPTS_DOC_ID:"matlab_prog_localfunctions_livescripts",constructor:function(t,i,o,r,a,s,l){this._fileType=t,this._featureInterface=i,this._liveEditorView=o,this._rtcDomNodeExternal=r,this._hyperlinkService=a,this._focusService=s,this._bannerManager=l,this._aspectHandles=[],this._aspectHandles.push(e.after(this._fileType,"onSupportedFileTypeChange",n.hitch(this,"_handleSupportedFileTypeChange"),!0)),this._aspectHandles.push(e.after(this._liveEditorView,"onResize",n.hitch(this,"_resize"),!0))},_handleSupportedFileTypeChange:function(e){e?this._removeBanner():this._fileType.getFileType()===this._fileType.FILE_TYPE.FunctionFile?(this._createBanner(a.disableFunctionsBannerText),this._attachOnClickCallbackToHyperlink(this._FUNCTIONS_IN_SCRIPTS_DOC_ID,"#bannerHyperLink")):this._createBanner(a.disableClassesBannerText)},_attachOnClickCallbackToHyperlink:function(e,i){t(i)[0].onclick=n.hitch(this,(function(t){this._onHyperlinkClick(e),o.stop(t)}))},_onHyperlinkClick:function(e){this._hyperlinkService.openUrl("matlab:helpview(fullfile(docroot,'matlab','helptargets.map'), '"+e+"')")},_createBanner:function(e){this._liveEditorView&&!this._banner&&(this._banner=new r({bannerText:e,iconType:"error",parent:this._bannerManager.getTopBannerContainer(),type:"top",resizer:this._featureInterface.resize,focusService:this._focusService,sibling:this._rtcDomNodeExternal}),this._bannerManager.registerBanner(this._banner,this._rtcDomNodeExternal))},_resize:function(){this._banner&&this._banner.resize()},_removeBanner:function(){this._banner&&(this._banner.closeBanner(),this._bannerManager.deregisterBanner(this._banner,this._rtcDomNodeExternal),this._banner=null)},destroy:function(){this._removeBanner(),this._aspectHandles.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5692)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.preferences.service","rtc.view.smoothscrolling"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(221)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_LIVE_EDITOR_PREFERENCE_KEY:"LiveEditorSmoothScrolling",constructor:function(e,n){this._preferencesService=e,this._smoothScrollingPlugin=n,i.after(this._preferencesService,"onPreferencesChanged",t.hitch(this,"_onPreferencesChanged"))},_onPreferencesChanged:function(){this._smoothScrollingPlugin.setEnabled(!n("mac")&&this._preferencesService.getValue(this._LIVE_EDITOR_PREFERENCE_KEY,!1))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5694),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.embeddedoutputs.figureoutputhandler","liveeditor.toolstripmanager"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214)],o=i.dj.d(n,(function(e,t,i){return e([],{_figureIds:null,_toolstripManager:null,_TABNAME:"figuretab",_onOutputDestroyedAspect:null,_figureOutputHandler:null,constructor:function(e,n){this._toolstripManager=n,this._aspectHandles=[],this._figureIds=[],this._aspectHandles.push(i.after(e,"onOutputFocused",t.hitch(this,"_outputFocused"),!0)),this._aspectHandles.push(i.after(e,"onOutputBlurred",t.hitch(this,"_outputBlurred"),!0)),this._figureOutputHandler=e},_outputBlurred:function(){this._toolstripManager&&this._toolstripManager.selectTab(this._TABNAME,{focusedFigureProperties:null,showing:!1})},_outputFocused:function(e){e&&!this._figureIds.some(t.hitch(this,(function(t){return t===e.figureId})))&&this._figureIds.push(e.figureId);var i=null!=e&&e.enableToolstrip,n={focusedFigureProperties:e,showing:i};this._toolstripManager.selectTab(this._TABNAME,n)},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(5696)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1147),i(1165),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_graphicsViewFactory:null,_embeddedFigureFactory:null,constructor:function(){this._embeddedFigureFactory=new t,this._graphicsViewFactory={createGraphicsView:function(e){return new i({Container:e})}}},getGraphicsViewFactory:function(){return this._graphicsViewFactory},getEmbeddedFigureFactory:function(){return this._embeddedFigureFactory},destroy:function(){this._embeddedFigureFactory&&this._embeddedFigureFactory.destroyWidget(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1485),i(369),i(2116)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(369),i(2116),i(2117),i(2119)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e){this._controllerMap={},this._processConstructorArguments(e)},_processConstructorArguments:function(e){if("string"!=typeof(e=e||{}).channel||0===e.channel.length)throw new Error("The 'channel' supplied should be a valid string!");if(this._channel=e.channel,this._controllerService=r.getInstance(this._channel),void 0!==e.viewModelManager&&(this._viewModelManager=e.viewModelManager,this._viewModelManager.addEventListener("rootSet",this._handleRootSet,this),this._viewModelManager.addEventListener("rootUnset",this._handleRootUnset,this),this._viewModelManager.addEventListener("childMoved",this._handleChildMoved,this)),!(e.applicationManifest instanceof o))throw new Error("The 'applicationManifest' supplied should be an instance of MW/componentframework/ApplicationManifest!");if(this._applicationManifest=e.applicationManifest,"object"!=typeof e.rootWidget)throw new Error("The 'rootWidget' supplied should be a valid widget!");if(this._rootWidget=e.rootWidget,"object"!=typeof e.environment&&(e.environment={}),this._environment=e.environment,void 0!==e.topLevelComponent){var t=e.topLevelComponent.ViewModel,i=e.topLevelComponent.Controller;this._controllerMap[t.getId()]=i,this._addPeerNodeListeners(t)}},_addPeerNodeListeners:function(e){e.addEventListener("childAdded",this._handleChildAdded,this),e.addEventListener("childDestroyed",this._handleChildDestroyed,this)},_removePeerNodeListeners:function(e){e.removeEventListener("childAdded",this._handleChildAdded,this),e.removeEventListener("childDestroyed",this._handleChildDestroyed,this)},_handleRootSet:function(e){this._addPeerNodeListeners(e.target)},_handleRootUnset:function(e){this._removePeerNodeListeners(e.target)},_handleChildAdded:function(e){var i=e.data.child,o=e.target;if(this._addPeerNodeListeners(i),i.getType()!==n.ORPHAN_ROOT){if(t.mixin(i,this._applicationManifest[i.getType()].model),this._createController(i,o),this._orphan_root&&this._orphan_root.hasDescendant(i.getId()))this._controllerMap[i.getId()].createView(null);else if(Object.getOwnPropertyNames(this._controllerMap).length-1!=0){var r=this._controllerMap[o.getId()].getChildContainer(i);this._controllerMap[i.getId()].createView(r)}else this._controllerMap[i.getId()].createView({parentDijit:this._rootWidget});this.emit("create",{id:i.getId(),type:i.getType(),parentId:o.getId()})}else this._orphan_root=i},_createController:function(e,t){var i=this._getArgumentsForController(e,t),n=new(0,this._applicationManifest[e.getType()].controller)(i);this._controllerMap[e.getId()]=n,this._controllerService.addControllerToChannelMap(e.getId(),n)},_getArgumentsForController:function(e,t){return{peerNode:e,view:this._applicationManifest[e.getType()].view,parentController:this._controllerMap[t.getId()]?this._controllerMap[t.getId()]:null,environment:this._environment}},_handleChildMoved:function(e){var t=this._controllerMap[e.target.getId()];e.data.oldParent!==n.ORPHAN_ROOT&&this._controllerMap[e.data.oldParent.getId()].removeChild(t),e.data.newParent.getType()!==n.ORPHAN_ROOT&&this._controllerMap[e.data.newParent.getId()].addChild(t,e.data.newIndex),this.emit("move",{id:e.target.getId(),oldParentId:e.data.oldParent.getId(),newParentId:e.data.newParent.getId(),newIndex:e.data.newIndex})},_handleChildDestroyed:function(e){var t=e.data.child;this._removePeerNodeListeners(t),t.getType()!==n.ORPHAN_ROOT&&(this._controllerMap[t.getId()].destroy(),delete this._controllerMap[t.getId()],this._controllerService.deleteControllerFromChannelMap(t.getId()),this.emit("destroy",{id:t.getId()}))},_getPeerModelManager:function(e){var t=i.getClientInstance(e);return t.setSyncEnabled(!0),t.destroy=function(){i.cleanup(e)},t},cleanup:function(){this.inherited(arguments),this._viewModelManager&&(this._viewModelManager.removeEventListener("rootSet",this._handleRootSet,this),this._viewModelManager.removeEventListener("rootUnset",this._handleRootUnset,this),this._viewModelManager.removeEventListener("childMoved",this._handleChildMoved,this),this._viewModelManager.destroy(),this._viewModelManager=null),r.cleanup(this._channel),this._applicationManifest={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{createView:function(){this._createWidget(),this._addPropertyWatch(),this._addEventListeners(),this._parentController&&(this._parentController.widget?this._parentController.widget.addChild(this.widget):(this._parentController.domNode.appendChild(this.widget.domNode),this.widget.startup()))},_createWidget:function(){var e={};this._properties.forEach((function(t){var i;i=t.belongsToAction?this._actionDataService.getAction(this._peerNode.getProperty("actionId"))[t.name]:this._peerNode.getProperty(t.name),e[t.viewName]=i}),this),e.id=this._peerNode.getId(),this.widget=new this._view(e)},_addPropertyWatch:function(){this._properties.forEach((function(e){this.widget.watch(e.viewName,t.hitch(this,(function(e,t,i){var n=this._getPropertyObject("viewName",e);if(null!==n)if(n.belongsToAction){var o={};o[n.name]=i,this._actionDataService.updateAction(this._peerNode.getProperty("actionId"),o,{source:"UI"})}else this._peerNode.setProperty(n.name,i,{source:"UI"})})))}),this)},_addEventListeners:function(){this._events.forEach((function(e){this.widget.on(e.viewName,t.hitch(this,(function(t){if(t.mwEventData=t.mwEventData||{},t.mwEventData.eventType=e.name,e.belongsToAction){var i=this._peerNode.getProperty("actionId");this._actionDataService.executeAction(i,t.mwEventData)}else this._peerNode.dispatchEvent("peerEvent",this._peerNode,t.mwEventData)})))}),this)},_handlePropertiesSet:function(e){Object.keys(e.data.newValues).forEach((function(t){this.widget.set(this._getPropertyObject("name",t).viewName,e.data.newValues[t])}),this)},_getPropertyObject:function(e,t){for(var i=0,n=this._properties.length,o=null;i<n;){if(t===this._properties[i][e]){o=this._properties[i];break}i+=1}return o},destroy:function(){this.inherited(arguments),this.widget.destroyRecursive(),delete this.widget}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1487),i(5704),i(5715),i(5718),i(5720),i(5722),i(5724),i(5736),i(5741),i(5746),i(5748),i(5750),i(5752),i(5754),i(5756),i(2136),i(5833),i(5894),i(5895),i(5899),i(5901),i(5903),i(5905),i(5908),i(5910),i(5915),i(5917),i(5922),i(5927),i(5931),i(5934),i(5936),i(5940),i(5945),i(1511),i(2184),i(440),i(689),i(5950),i(5951),i(2186),i(5955),i(2187),i(1512),i(1513),i(2188),i(5958),i(5959),i(5960),i(5961),i(5962),i(5963),i(5964),i(5965),i(5966),i(5967),i(5968),i(5969),i(5970),i(5971),i(5972),i(5973),i(5974),i(5975)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U,W,G,z,q,K,X,Y,Q,$,J,Z,ee,te,ie,ne,oe,re,ae,se,le,ce){return new e({common:{model:[O],view:[],controller:[k,R,z,G],properties:[],events:[]},"matlab.ui.control.Button":{model:[],controller:[t,F,q,W]},"matlab.ui.control.RadioButton":{model:[],controller:[i,F,ne]},"matlab.ui.control.CheckBox":{model:[],controller:[n,F,K,V]},"matlab.ui.control.DatePicker":{model:[],controller:[m,F,U,Y]},"matlab.ui.control.EditField":{model:[],controller:[o,F,le,V]},"matlab.ui.control.TextArea":{model:[],controller:[r,F,se,V]},"matlab.ui.control.NumericEditField":{model:[],controller:[a,F,ie,V]},"matlab.ui.control.Label":{model:[],controller:[s,F,ee,W]},"matlab.ui.control.Slider":{model:[],controller:[l,F,oe,j]},"matlab.ui.control.DropDown":{model:[],controller:[c,F,$,V]},"matlab.ui.control.internal.model.WorkspaceDropDown":{model:[],controller:[c,F,$,V]},"matlab.ui.control.ListBox":{model:[],controller:[d,F,te,V]},"matlab.ui.control.StateButton":{model:[],controller:[u,F,q,W]},"matlab.ui.control.ToggleButton":{model:[],controller:[h,F,q]},"matlab.ui.control.Spinner":{model:[],controller:[p,F,re,U]},"matlab.ui.control.SemicircularGauge":{model:[],controller:[S,F,U]},"matlab.ui.control.Gauge":{model:[],controller:[w,F,U]},"matlab.ui.control.NinetyDegreeGauge":{model:[],controller:[I,F,U]},"matlab.ui.control.LinearGauge":{model:[],controller:[A,F,U]},"matlab.ui.control.Lamp":{model:[],controller:[x,F,U]},"matlab.ui.control.Knob":{model:[],controller:[N,B,X,j]},"matlab.ui.control.DiscreteKnob":{model:[],controller:[L,H,Q,j]},"matlab.ui.control.RockerSwitch":{model:[],controller:[D,F,ae,j]},"matlab.ui.control.Switch":{model:[],controller:[M,F,ae,j]},"matlab.ui.control.ToggleSwitch":{model:[],controller:[P,F,ae,j]},"matlab.ui.container.CheckBoxTree":{model:[],controller:[f,F,ce,V]},"matlab.ui.container.Tree":{model:[],controller:[g,F,ce,V]},"matlab.ui.control.Image":{model:[],controller:[_,F,Z,U]},"matlab.ui.control.HTML":{model:[],controller:[v,F,V]},"matlab.ui.control.Hyperlink":{model:[],controller:[b,F,W,J]},"matlab.ui.control.internal.ProgressIndicator":{model:[],controller:[y,F,U]},"matlab.ui.control.internal.CircularProgressIndicator":{model:[],controller:[C,F,U]},"matlab.ui.control.internal.ColorPicker":{model:[],controller:[T,F,W]},"matlab.ui.control.internal.PasswordField":{model:[],controller:[E,F,le,V]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(5702),i(5703)],o=i.dj.d(n,(function(e,t){return function(i){if(!(i=i||{}).controller instanceof Array)throw new Error("A 'controller' list needs to be provided and it should be an array!");if(this.controller=i.controller,!i.view instanceof Array)throw new Error("A 'view' list needs to be provided and it should be an array!");if(this.view=i.view,i.model&&(this.model=i.model),i.properties&&(!(i.properties instanceof Array)||i.properties.some((function(t){return!(t instanceof e)}))))throw new Error("Every element in the 'properties' array should be an instance of MW/componentframework/Property!");if(this.properties=i.properties,i.events&&(!(i.events instanceof Array)||i.events.some((function(e){return!(e instanceof t)}))))throw new Error("Every element in the 'events' array should be an instance of MW/componentframework/Event!");this.events=i.events}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2120)],o=i.dj.d(n,(function(e,t){var i=["string","boolean","object","array","number"];return e(t,{constructor:function(e){if(e=e||{},-1===i.indexOf(e.type))throw new Error("A valid 'type' needs to be provided for a property!");if(this.type=e.type,this.required=!!e.required,!this.required&&void 0===e.defaultValue)throw new Error("A valid 'defaultValue' needs to be provided if it is not a 'required' property!");if(this.required&&void 0!==e.defaultValue)throw new Error("A 'defaultValue' should not be provided if it is a 'required' property!");this.defaultValue=e.defaultValue}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2120)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(5705),i(381),i(1496)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n,o],{createView:function(){this.inherited(arguments);var e=new i;e.on("click",t.hitch(this,(function(){this.handleUserInteraction("ButtonPushed",{})}))),this._setDijitHandle(e),this.fireViewReadyEvent()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(243),i(259),i(289),i(358),i(374),i(952),i(479),i(504),i(1489),i(953),i(590),i(1490)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(i.validate([t,n,o,r,a,s,l,c,d,u,h]),{_handlesHoverWhenPushed:!1,postCreate:function(){this.inherited(arguments),this.domNode.classList.add("vc-button")},buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(5707),i(5708),i(2122)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i],{constructor:function(){this._insets={left:0,bottom:0,top:0,right:0},this._positionStrategy=void 0,this._suppressOuterPosChangedEvent=!1},getPositionStrategy:function(){return void 0===this._positionStrategy&&(!0===this.getPeerNode().getProperty("IsUIControl")?this._positionStrategy=new o(this):this._positionStrategy=new n(this)),this._positionStrategy},getInnerSizeInPixels:function(){return this.getPositionStrategy().getInnerSizeInPixels()},getInnerLocationInPixels:function(){return this.getPositionStrategy().getInnerLocationInPixels()},getOuterSizeInPixels:function(){return this.getPositionStrategy().getOuterSizeInPixels()},getOuterLocationInPixels:function(){return this.getPositionStrategy().getOuterLocationInPixels()},setPositionPropertiesInPixels:function(e){this.getPositionStrategy().setPositionPropertiesInPixels(e)},setInnerSize:function(e){this.handleInnerSizeSet(e)},setOuterSize:function(e){void 0!==this.widget&&(this.widget.set("width",e[0]),this.widget.set("height",e[1]))},setSizeLocationInPixelsImpl:function(e){this.setSizeLocationInPixels(e)},setSizeLocationInPixels:function(e){this.getPositionStrategy().setSizeLocationInPixels(e)},hasInnerSizeChanged:function(e){return e.indexOf("Size")>-1},hasInnerLocationChanged:function(e){return e.indexOf("Location")>-1},hasOuterSizeChanged:function(e){return e.indexOf("OuterSize")>-1},hasOuterLocationChanged:function(e){return e.indexOf("OuterLocation")>-1},_OuterSize:function(e){this._updateWidgetDOMPosition()},_OuterLocation:function(e){this._updateWidgetDOMPosition()},_Size:function(e){this.getPositionStrategy().handleSizeSet(e)},handleInnerSizeSet:function(e){},_Location:function(e){this.getPositionStrategy().handleLocationSet(e)},handleInnerLocationSet:function(e){},getInsets:function(){return this._insets},setInsets:function(e){this._insets=e},calculateInsets:function(){var e,t,i,n;4===arguments.length?(e=arguments[0],t=arguments[1],i=arguments[2],n=arguments[3]):2===arguments.length&&(e=arguments[0].slice(0,2),t=arguments[0].slice(2,4),i=arguments[1].slice(0,2),n=arguments[1].slice(2,4));var o={};return o.left=e[0]-i[0],o.bottom=e[1]-i[1],o.right=n[0]-t[0]-o.left,o.top=n[1]-t[1]-o.bottom,o.left<0&&(o.left=0),o.bottom<0&&(o.bottom=0),o.right<0&&(o.right=0),o.top<0&&(o.top=0),o},updateInsets:function(){var e=this.getOuterLocationInPixels(),t=this.getOuterSizeInPixels(),i=this.getInnerLocationInPixels(),n=this.getInnerSizeInPixels(),o=this.calculateInsets(i,n,e,t);this.setInsets(o)},updateOuterPositionForNoMarginsComponent:function(e){this.getPositionStrategy().updateOuterPositionForNoMarginsComponent(e)},_updateSizeLocationOnServer:function(e){var t=this._convertFromZeroToOneOrigin(e.innerPosition),i=this._convertFromZeroToOneOrigin(e.outerPosition);this.setPositionPropertiesInPixels({Size:t.slice(2,4),Location:t.slice(0,2),OuterSize:i.slice(2,4),OuterLocation:i.slice(0,2)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{setInnerSize:function(e){throw new Error("Must be implemented by subclasses")},setOuterSize:function(e){throw new Error("Must be implemented by subclasses")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2121)],o=i.dj.d(n,(function(e,t){return e([t],{handleSizeSet:function(e){this.handleInnerSizeSet(e)},handleLocationSet:function(e){var t=this.getInsets(),i=this.getInnerSizeInPixels(),n=e.concat(i),o=this.getOuterFromInner(n,t);this.setPositionPropertiesInPixels({OuterLocation:o.slice(0,2)}),this.handleInnerLocationSet(e)},updateOuterPositionForNoMarginsComponent:function(e){var t=this.getInnerLocationInPixels();this.setPositionPropertiesInPixels({OuterSize:e,OuterLocation:t})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5710)],o=i.dj.d(n,(function(e,t){return e([t],{dispatch:function(e,t){this._controller.peernode.dispatchEventToServer(e,t)},handlePeerNodePeerEvent:function(e){},tag2:"from MW/componentframework."})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._controller=e,this._registeredEvents=[]},getRegisteredEvents:function(){return this._registeredEvents},registerEvents:function(e){"string"==typeof e&&(e=[e]),e.forEach((function(e){-1===this._registeredEvents.indexOf(e)&&this._registeredEvents.push(e)}),this)},dispatch:function(e,t){throw"dispatch must be implemented by the concrete sub-classes"},handlePeerNodePeerEvent:function(e){throw"handlePeerNodePeerEvent must be implemented by the concrete sub-classes"},tag1:"baseclass from MW/componentframework."})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(210)],o=i.dj.d(n,(function(e,t){return{startRender:function(i){if(!document.body)throw new Error("Assertion: Requires the document to be fully loaded to render");var n=e.create("div",{},document.body);t.add(n,"dijitOffScreen");var o=i.parentNode,r=Array.prototype.indexOf.call(i.parentNode.childNodes,i);return n.appendChild(i),{domNodeToHost:i,oldParent:o,offscreenParent:n,indexToRestore:r}},endRender:function(t){if(void 0===t.domNodeToHost||void 0===t.oldParent||void 0===t.offscreenParent||void 0===t.indexToRestore)throw new Error("endRender input is missing some fields. The input should be the object returned by startRender");t.oldParent.insertBefore(t.domNodeToHost,t.oldParent.children[t.indexToRestore]),e.destroy(t.offscreenParent)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2123)],o=i.dj.d(n,(function(e){return{_convertFontUnitsToCss:function(e){var t;switch(e.toLowerCase()){case"pixels":t="px";break;case"points":t="pt";break;case"inches":t="in";break;case"centimeters":t="cm";break;case"normalized":t="px";break;default:throw new Error("Font Units are not an expected value")}return t},getCSSFontUnits:function(e){if("number"==typeof e)return"px";if(void 0!==e.FontUnits)return this._convertFontUnitsToCss(e.FontUnits);throw new Error("Font size value is not as expected.")},getFontSizeValue:function(t,i){var n;return void 0!==t.FontSize&&"number"==typeof t.FontSize?(t.FontUnits=t.FontUnits.toLowerCase(),n="normalized"===t.FontUnits?e.convertFontSize("normalized","pixels",t.FontSize,i):t.FontSize):n=t,n},getFontSizeValueNoRefFrame:function(e){return void 0!==e.FontSize&&"number"==typeof e.FontSize?e.FontSize:e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223)],o=i.dj.d(n,(function(e,t,i){return e([],{_getCharacterFromKey:function(e){var t=e;if(1===e.length)return t;switch(e){case"Spacebar":t=" ";break;case"Right":case"ArrowRight":t="→";break;case"Left":case"ArrowLeft":t="←";break;case"NumpadAdd":case"Add":t="+";break;case"NumpadDivide":case"Divide":t="/";break;case"NumpadMultiply":case"Multiply":t="*";break;case"NumpadSubtract":case"Subtract":t="-";break;case"NumpadDecimal":case"Decimal":t=".";break;case"ArrowUp":t="↑";break;case"ArrowDown":t="↓";break;case"ContextMenu":t="";break;case"BracketLeft":t="[";break;case"BracketRight":t="]";break;case"Enter":case"NumpadEnter":t=String.fromCharCode(13);break;case"Minus":t="-";break;default:t=""}return t},_getCharacter:function(e){var t="";return void 0!==e&&(t=this._getCharacterFromKey(e)),t},_getModifier:function(e){var t=[];return!0===e.ctrlKey&&t.push("control"),!0===e.altKey&&t.push("alt"),!0===e.shiftKey&&t.push("shift"),!0!==e.metaKey&&"Meta"!==e.key||t.push("command"),t},_getKey:function(e){var t=e.key,i=e.charCode||e.keyCode;switch(t){case"0":t=96===i?"numpad0":"0";break;case"1":t=97===i?"numpad1":"1";break;case"2":t=98===i?"numpad2":"2";break;case"3":t=99===i?"numpad3":"3";break;case"4":t=100===i?"numpad4":"4";break;case"5":t=101===i?"numpad5":"5";break;case"6":t=102===i?"numpad6":"6";break;case"7":t=103===i?"numpad7":"7";break;case"8":t=104===i?"numpad8":"8";break;case"9":t=105===i?"numpad9":"9";break;case"!":t="1";break;case"@":t="2";break;case"#":t="3";break;case"$":t="4";break;case"%":t="5";break;case"^":t="6";break;case"&":t="7";break;case"*":t=56===i?"8":"multiply";break;case"(":t="9";break;case")":t="0";break;case";":case":":t="semicolon";break;case",":case"<":t="comma";break;case".":t=110===i?"decimal":"period";break;case">":t="period";break;case"/":t=111===i?"divide":"slash";break;case"?":t="slash";break;case"'":case'"':t="quote";break;case"_":t="hyphen";break;case"=":t="equal";break;case"{":case"[":t="leftbracket";break;case"}":case"]":t="rightbracket";break;case"\\":t="backslash";break;case"`":case"~":t="backquote";break;case"|":t="backslash";break;case"+":t=187===i?"equal":"add";break;case"-":t=189===i?"hyphen":"subtract";break;case" ":case"Spacebar":t="space";break;case"Right":t="rightarrow";break;case"Left":t="leftarrow";break;case"NumpadAdd":case"NumpadDivide":case"NumpadMultiply":case"NumpadSubtract":case"NumpadDecimal":t=t.substring(6,t.length).toLowerCase();break;case"ArrowRight":case"ArrowLeft":case"ArrowUp":case"ArrowDown":t=t.substring(5,t.length).toLowerCase()+"arrow";break;case"BracketRight":case"BracketLeft":t=t.substring(7,t.length).toLowerCase()+"bracket";break;case"Enter":case"NumpadEnter":t="return";break;case"Minus":t="hyphen";break;case"MetaKey":case"MetaRight":case"MetaLeft":t="meta"}return t.toLowerCase()},_isValidMatlabKey:function(e){return["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","escape","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12","f13","f14","f15","f16","f17","f18","f19","f20","f21","f22","f23","f24","numlock","numpad0","numpad1","numpad2","numpad3","numpad4","numpad5","numpad6","numpad7","numpad8","numpad9","add","divide","multiply","subtract","decimal","separator","leftarrow","rightarrow","uparrow","downarrow","pageup","pagedown","home","end","insert","delete","pause","scrolllock","sysreq","printscreen","backspace","tab","linefeed","return","space","shift","capslock","control","alt","command","clear","execute","help","cancel","select","windows","applications","backquote","hyphen","equal","backslash","leftbracket","rightbracket","semicolon","quote","comma","period","slash","meta"].indexOf(e)>-1},_getEventData:function(e,t,i,n,o){return{data:{type:e,character:t,modifier:i,key:n,keyTarget:o}}},_getTarget:function(e,t){return e===t?"figure":null!==e.closest(".supportsKeyInteractions")?"supportsKeyInteractions":"focusable"},onKeyDown:function(e){var t=e.key;if(void 0!==t&&this._shouldProcessKeyEvent(e)){var i=this._getModifier(e),n=this._getCharacter(t.toString());t=this._getKey(e);var o=this._getTarget(e.target,e.currentTarget),r=this._getEventData(e.type,n,i,t,o);!0===this._isValidMatlabKey(t)&&this.handleUserInteraction("processKeyEvent",r)}},onKeyUp:function(e){var t=e.key;if(void 0!==t&&this._shouldProcessKeyEvent(e)){var i=this._getModifier(e),n=this._getCharacter(t.toString());t=this._getKey(e);var o=this._getTarget(e.target,e.currentTarget),r=this._getEventData(e.type,n,i,t,o);!0===this._isValidMatlabKey(t)&&this.handleUserInteraction("processKeyEvent",r)}},_shouldProcessKeyEvent:function(e){return"supportsKeyInteractions"!==this._getTarget(e.target,e.currentTarget)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(284)],o=i.dj.d(n,(function(e,t){return e([],{_Enable:function(e){this.inherited(arguments);var i=t.toJSBoolean(e);this.widget.setEnable?this.widget.setEnable(i):this.widget.set("disabled",!i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(287),i(5716),i(381),i(836),i(5717),i(298)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([r,a,l],{constructor:function(){this.redirectStrategy=s.noRedirect},createView:function(){this.inherited(arguments);var e=new o({});this._setDijitHandle(e),this.fireViewReadyEvent(),this.redirectStrategy.setButtonGroupAttribute(this,e),this.own(i(e,"button-selection-change",t.hitch(this,this._selectionChanged)))},_selectionChanged:function(e){if(e.detail){var t={Value:e.detail.isSelected};this.handleUserInteraction("ViewSelectionChanged",t,t)}},isInButtonGroup:function(){var e=!1;return void 0!==this.getPeerNode().getParent()&&(e="matlab.ui.container.ButtonGroup"===this.getPeerNode().getParent().getType()),e},_IsUIControl:function(){this.redirectStrategy=s.uicontrolRedirect},setProperties:function(e){this.inherited(arguments),e.forEach(t.hitch(this,(function(e){switch(e){case"Text":var t=n.getNewLineDelimitedText(this.WidgetData.getProperty("Text"));this.widget.set("text",t);break;case"Value":this.widget.set("checked",this.WidgetData.getProperty("Value"));break;case"ParentId":this.widget.set("buttonGroup",this.WidgetData.getParent().getId())}})))},_computeMinimumSize:function(){return[0,0]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(422),i(358),i(289),i(590),i(479),i(504),i(2128)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([i,n,o,r,a,s,l],{postCreate:function(){this.inherited(arguments),this.domNode.classList.add("vc-radiobutton")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{noRedirect:{setButtonGroupAttribute:function(e,t){void 0!==e.getPeerNode().getParent()&&t.set("buttonGroup",e.getPeerNode().getParent().getId())}},uicontrolRedirect:{setButtonGroupAttribute:function(e,t){e.isInButtonGroup()?void 0!==e.getPeerNode().getParent()&&t.set("buttonGroup",e.getPeerNode().getParent().getId()):t.set("buttonGroup","")}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(5719),i(381),i(298),i(295),i(836),i(287),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([n,o,r,a],{createView:function(){this.inherited(arguments);var e=new i;e.on("change",t.hitch(this,(function(e){var t={Value:e.mwEventData.newValue};this.handleUserInteraction("ValueChanged",t,t)}))),this._setDijitHandle(e),this.fireViewReadyEvent()},setProperties:function(e){this.inherited(arguments),e.forEach(t.hitch(this,(function(e){switch(e){case"Text":var t=s.getNewLineDelimitedText(this.WidgetData.getProperty("Text"));this.widget.set("text",t);break;case"Value":this.widget.set("checked",this.WidgetData.getProperty("Value"))}})))},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){var e=l.CHECK_BOX.ICON_NODE_WIDTH,t=l.CHECK_BOX.ICON_NODE_HEIGHT,i=this.getPeerNode().getProperty("Text"),n=s.getNewLineDelimitedText(i);if(0!==n.length){var o=s.getWidgetFontStyleMap(this.getPeerNode()),r=s.getTextPosition(n,o);e=e+3+r.width,t=Math.max(t,r.height)}return[e+2,this._computeFitHeight(t+2,2)]},_computeFitHeight:function(e,t){var i=e;if(this.widget.wordWrap){var n=l.CHECK_BOX.ICON_NODE_WIDTH,o=this.getPeerNode().getProperty("Text"),r=s.getNewLineDelimitedText(o),a=s.getWidgetFontStyleMap(this.getPeerNode()),c=n,d=this.getCellWidth()-c+"px";i=s.getTextPositionWithWordWrap(r,a,d).height+t}return i},recomputeFitHeight:function(e){this.recomputeFitSize(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(308),i(358),i(479),i(504),i(289),i(590)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t,i,n,o,r,a],{postCreate:function(){this.inherited(arguments),this.domNode.classList.add("vc-checkbox")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(381),i(5721),i(404),i(298),i(1151),i(284),i(295),i(287),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([i,o,r,a,l],{constructor:function(){},createView:function(){this.inherited(arguments);var e=new n;e.on("change",t.hitch(this,this._handleTextChanged)),e.on("typing",t.hitch(this,this._handleTextChanging)),this._setDijitHandle(e),this.fireViewReadyEvent()},setProperties:function(e){this.inherited(arguments),e.forEach(t.hitch(this,(function(e){switch(e){case"Value":this.widget.set("value",this.WidgetData.getProperty("Value"));break;case"HorizontalAlignment":this.widget.set("horizontalAlignment",this.WidgetData.getProperty("HorizontalAlignment"));break;case"Editable":var t=s.toJSBoolean(this.WidgetData.getProperty("Editable"));this.widget.set("editable",t),this.widget.set("readOnly",!t)}})))},getFontStyledDomNode:function(){return this.widget.inputNode},_handleTextChanged:function(){if(this.WidgetData.getProperty("Value")!==this.widget.get("value")){var e={Value:this.widget.get("value")};this.handleUserInteraction("ValueChanging",e),this.handleUserInteraction("ValueChanged",e,e)}},_handleTextChanging:function(e){this.handleUserInteraction("ValueChanging",{Value:e.mwEventData.currentContent})},_computeMinimumSize:function(){return[80,0]},_computeFitSize:function(){var e=c.getWidgetFontStyleMap(this.getPeerNode()),t=c.getTextPosition("WWWWWWWWWW",e),i=[t.w,t.h];return i[0]+=d.TEXT_BOX.OVERALL_WIDTH_PADDING,i[1]+=d.TEXT_BOX.OVERALL_HEIGHT_PADDING,i[1]+=4,i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(228),i(213),i(258),i(1150),i(479),i(504),i(358),i(374),i(289),i(837)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([o,r,a,s,l,c,d],{backgroundColor:"rgb(255, 255, 255)",buildRendering:function(){this.inherited(arguments),this.inlineEditorNode=this.inputNode,this.backgroundColorNode=this.domNode;var e=this._getNodeToApplyFontProperties();e&&n.set(e,{"background-color":"rgba(0, 0, 0, 0)"}),this.own(t(this.inputNode,"blur",this._handleInputNodeBlur)),this.domNode.classList.add("vc-textField")},_handleInputNodeBlur:function(e){window.getSelection&&window.getSelection().empty()},_getPreferredSizeAttr:function(){return u.calculateInputPreferredSize(this.inputNode,5,10)},_getNodeToApplyFontProperties:function(){return this.inputNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(5723),i(381),i(404),i(298),i(1151),i(284),i(295),i(836),i(349),i(287)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([n,o,r,a,l,c],{constructor:function(){},createView:function(){this.inherited(arguments);var e=this,t=new i({onBlur:function(){e._handleTextChanged()}});t.on("typing",this._handleTextChanging.bind(this)),this._setDijitHandle(t),this.fireViewReadyEvent()},setProperties:function(e){this.inherited(arguments),e.forEach(t.hitch(this,(function(t){switch(t){case"Value":this.widget.set("value",this.WidgetData.getProperty("Value")),u.arePropertyNamesPresent(e,["TargetToScroll"])&&this._TargetToScroll(this.WidgetData.getProperty("TargetToScroll"));break;case"HorizontalAlignment":this.widget.set("horizontalAlignment",this.WidgetData.getProperty("HorizontalAlignment"));break;case"Editable":var i=s.toJSBoolean(this.WidgetData.getProperty("Editable"));this.widget.set("editable",i),this.widget.set("readOnly",!i)}})))},setComponentToPreferredSize:function(){},_handleTextChanged:function(){if(!0!==this.widget.isEqual(this.WidgetData.getProperty("Value"))){var e={Value:this.widget.get("value")};this.handleUserInteraction("ValueChanging",e),e={Value:this.widget.get("value")},this.handleUserInteraction("ValueChanged",e,e)}},_handleTextChanging:function(e){this.handleUserInteraction("ValueChanging",{Value:e.mwEventData.currentContent})},_TargetToScroll:function(e){this.widget.scroll(e.Target)},_computeMinimumSize:function(){return[80,80]},_computeFitSize:function(){var e=u.getWidgetFontStyleMap(this.getPeerNode()),t=u.getTextPosition("WWWWWWWWWWWWWWW",e),i=[t.w,4*t.h];return i[0]+=d.TEXT_AREA.OVERALL_WIDTH_PADDING,i[1]+=d.TEXT_AREA.OVERALL_HEIGHT_PADDING,i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(228),i(413),i(1150),i(504),i(358),i(374),i(289),i(590),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([n,o,r,a,s,l,c],{height:50,backgroundColor:"rgb(255, 255, 255)",wordWrap:!0,constructor:function(){this.baseClass+=" vc-textArea"},buildRendering:function(){this.inherited(arguments),this.inlineEditorNode=this.inputNode,this.backgroundColorNode=this.domNode,this.own(t(this.inputNode,"blur",this._handleInputNodeBlur))},_handleInputNodeBlur:function(e){window.getSelection&&window.getSelection().empty()},isEqual:function(e){return e.toString()===this.get("value").toString()},scroll:function(e){"bottom"===e?this.inputNode.scrollTop=this.inputNode.scrollHeight:"top"===e&&(this.inputNode.scrollTop=0)},_setValueAttr:function(e){if(!(e instanceof Array))throw new Error("Value passed to TextArea must be an array of strings");var t=e.join("\n");this.inherited(arguments,[t])},_getValueAttr:function(){return this.inputNode.value.split("\n")},_getNodeToApplyFontProperties:function(){return this.inputNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1152),i(5729),i(5735),i(298),i(295),i(287),i(1497),i(284),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([o,r,a,l],{createView:function(){this.inherited(arguments);var e=new n({invalidMessage:i.invalidMessage,isCustomRangeErrorMessages:!0,rangeMessageBetween:i.rangeMessageBetween,rangeMessageLessThan:i.rangeMessageLessThan,rangeMessageGreaterThan:i.rangeMessageGreaterThan,actionPerformed:t.hitch(this,(function(e){this._handleActionPerformed(e)})),handleDisplayTextUpdate:t.hitch(this,(function(e,t){this._handleDisplayTextUpdate(e,t)}))});this._setDijitHandle(e),this.addDisableListener(e.domNode),this.fireViewReadyEvent()},getFontStyledDomNode:function(){return this.widget.inputNode},_computeMinimumSize:function(){return[60,0]},_computeFitSize:function(){var e=s.getWidgetFontStyleMap(this.getPeerNode()),t=s.getTextPosition("8888888888",e),i=[t.w,t.h];return i[0]+=d.TEXT_BOX.OVERALL_WIDTH_PADDING,i[1]+=d.TEXT_BOX.OVERALL_HEIGHT_BORDER,i[1]+=6,i},_Enable:function(e){this.inherited(arguments);var t=c.toJSBoolean(e);this.setDisabled(!t)},destroy:function(){this.removeDisableListener(this.widget.domNode),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){e.exports={HTMLDebugDomNode:"HTMLSource は次の dom ノードに読み込まれます:",HTMLDebugEmptySource:"デバッグを開始するには MATLAB で HTMLSource を設定してください。",invalidMessage:"値は数値でなければなりません。",rangeMessageBetween:"値は %1 と %2 との間でなければなりません",rangeMessageGreaterThan:"値は %1 より大きくなければなりません",rangeMessageLessThan:"値は %1 より小さくなければなりません"}},function(e,t,i){e.exports={HTMLDebugDomNode:"HTMLSource를 다음 DOM 노드로 불러옵니다.",HTMLDebugEmptySource:"디버그를 시작하려면 MATLAB에서 HTMLSource를 설정하십시오.",invalidMessage:"값은 숫자형이어야 함",rangeMessageBetween:"값은 %1에서 %2 사이여야 함",rangeMessageGreaterThan:"값은 %1보다 커야 함",rangeMessageLessThan:"값은 %1보다 작아야 함"}},function(e,t,i){e.exports={HTMLDebugDomNode:"您的 HTMLSource 将加载到以下 dom 节点中:",HTMLDebugEmptySource:"在 MATLAB 中设置 HTMLSource 以开始调试。",invalidMessage:"值必须为数值",rangeMessageBetween:"值必须介于 %1 和 %2 之间",rangeMessageGreaterThan:"值必须大于 %1",rangeMessageLessThan:"值必须小于 %1"}},function(e,t,i){e.exports={root:{HTMLDebugDomNode:"Your HTMLSource will be loaded in the following dom node:",HTMLDebugEmptySource:"Set the HTMLSource in MATLAB to begin debugging.",invalidMessage:"Value must be numeric",rangeMessageBetween:"Value must be between %1 and %2",rangeMessageGreaterThan:"Value must be greater than %1",rangeMessageLessThan:"Value must be less than %1"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(206),i(725),i(5730),i(5731),i(5733),i(5734),i(1150),i(2129),i(358),i(374),i(289),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([i,n,o,a,s,l,c,d,u],{OVERALL_WIDTH_PADDING:h.TEXT_BOX.OVERALL_WIDTH_PADDING,OVERALL_HEIGHT_PADDING:h.TEXT_BOX.OVERALL_HEIGHT_BORDER,baseClass:"vc-numberField",templateString:r,backgroundColor:"rgb(255, 255, 255)",buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode,this.own(t(this.inputNode,"blur",this._handleInputNodeBlur))},_handleInputNodeBlur:function(e){window.getSelection&&window.getSelection().empty()},_setWidthAttr:function(e){this.inherited(arguments),this.rePositionToolTip()},_setHeightAttr:function(e){this.inherited(arguments),this.rePositionToolTip()},_getNodeToApplyFontProperties:function(){return this.focusNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(217),i(213),i(349)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(){this.own(this.watch("width",t.hitch(this,"_updatePreferredSize")),this.watch("fontFamily",t.hitch(this,"_updatePreferredSize")),this.watch("fontSize",t.hitch(this,"_updatePreferredSize")),this.watch("fontStyle",t.hitch(this,"_updatePreferredSize")),this.watch("fontWeight",t.hitch(this,"_updatePreferredSize")))},startup:function(){this.inherited(arguments),this._updatePreferredSize()},_updatePreferredSize:function(){var e=this.focusNode,t=this.calculateInputPreferredSize(e);this.set("preferredSize",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(223),i(204),i(232),i(230),i(312),i(889),i(5732)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(null,{DELAY_WHEN_ERROR:1e3,value:NaN,isRounding:!1,intermediateChanges:!0,state:"",tooltipPosition:[],invalidMessage:"Value must be numeric",rangeMessage:"Value entered is out of range",message:"",isCustomRangeErrorMessages:!1,rangeMessageBetween:"",rangeMessageLessThan:"",rangeMessageGreaterThan:"",constraints:{},width:100,height:20,constructor:function(){this.constraints={min:0,max:100,includeMin:!0,includeMax:!0},o.registerResponseHandler("FEvalResponse:SPRINTF",this._handleSprintfReturn,this),this.ErrorStateStrategy=l.NumberBoxErrorInteractionBehavior,this.DefaultStateStrategy=l.NumberBoxDefaultInteractionBehavior},postCreate:function(){this.inherited(arguments),this.own(t(this.textbox,"keydown, keypress",n.hitch(this,"_onInput"))),this._stateStrategy=new this.DefaultStateStrategy(this)},validate:function(){var e=this._rangeCheck(this._getTextBoxContentsAsFiniteNumber(),this.constraints),t=s.isValidNumber(this.textbox.value)&&!this.isEmpty(this.textbox.value),i=this.disabled||t&&e;this.set("state",i?"":"Error"),this._updateErrorMessage(t,e)},actionPerformed:function(e){},_rangeCheck:function(e,t){var i=!1===t.includeMin?e>t.min:e>=t.min,n=!1===t.includeMax?e<t.max:e<=t.max,o=t.max-e==0&&Math.abs(t.max)-Number.MAX_VALUE==0,r=t.min-e==0&&Math.abs(t.min)-Number.MAX_VALUE==0;return i&&n||o||r},isEmpty:function(e){return(this.trim?/^\s*$/:/^$/).test(e)},undo:function(){this._updateTextbox(),this.set("state",""),this.set("message","")},_setConstraintsAttr:function(e){e.max=s.convertValueToNumber(e.max),e.min=s.convertValueToNumber(e.min),this._set("constraints",e)},_onFocus:function(){this._stateStrategy._onFocus()},_onBlur:function(){this._stateStrategy._onBlur()},_onInput:function(e){this.readOnly||(e.keyCode===i.ENTER?this._onChange():this.intermediateChanges&&this.validate())},_onChange:function(){this._stateStrategy._onChange()},_setValueAttr:function(e,t){if(null==t)throw new Error("Formatted Value required");this._set("value",e),"number"==typeof t&&isNaN(t)||(this._formattedValueString=String(t)),this._updateTextbox()},_getValueAttr:function(){return this.value},_setIsRoundingAttr:function(e){this._set("isRounding",e)},_getIsRoundingAttr:function(){return this.isRounding},_handleSprintfReturn:function(e,t){var i=e[0].results[0].trim(),n=e[0].results[1];t.handleDisplayTextUpdate(n,i),t._updateTextbox()},_fevalToMatlab:function(e,t,i,n){var r={function:e,arguments:t,nargout:i,dequeMode:"ppe"};o.sendMessage({FEval:r},this,n)},_getTextBoxContentsAsNumber:function(){var e=this._getTextBoxContentsAsString(),t=s.convertValueToNumber(e);return t===Number.POSITIVE_INFINITY?"Inf":t===Number.NEGATIVE_INFINITY?"-Inf":t},_getTextBoxContentsAsFiniteNumber:function(){var e=this._getTextBoxContentsAsString();return s.convertValueToNumber(e)},_getTextBoxContentsAsString:function(){return n.trim(this.textbox.value)},_validateAndCalibrateRoundedValue:function(){var e=this._getTextBoxContentsAsFiniteNumber(),t=Math.round(e),i=Math.floor(e),n=Math.ceil(e),o=!1,r=null;this._rangeCheck(t,this.constraints)?(r=t,o=!0):this._rangeCheck(i,this.constraints)?(r=i,o=!0):this._rangeCheck(n,this.constraints)&&(r=n,o=!0);var a=s.isValidNumber(this.textbox.value)&&!this.isEmpty(this.textbox.value),l=this.disabled||a&&o;return this.set("state",l?"":"Error"),this._updateErrorMessage(a,o),r===Number.POSITIVE_INFINITY?r="Inf":r===Number.NEGATIVE_INFINITY&&(r="-Inf"),r},_getErrorMessage:function(e,t){var i=this.constraints.min===Number.NEGATIVE_INFINITY?Number.NEGATIVE_INFINITY:this.constraints.min,n=this.constraints.max===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:this.constraints.max,o="",r=0;return e?!t&&this.isCustomRangeErrorMessages?(o=this.rangeMessageBetween.replace("%1",i).replace("%2",n),(r=this._getTextBoxContentsAsFiniteNumber())!==this.constraints.min||this.constraints.includeMin||(o=this.rangeMessageGreaterThan.replace("%1",i)),r!==this.constraints.max||this.constraints.includeMax||(o=this.rangeMessageLessThan.replace("%1",n))):o=this.rangeMessage:o=this.invalidMessage,o},_updateErrorMessage:function(e,t){this._stateStrategy._updateErrorMessage(e,t)},_displayMessage:function(e){e?a.show(e,this.domNode,this.tooltipPosition,!this.isLeftToRight()):a.hide(this.domNode)},rePositionToolTip:function(){a.hide(this.domNode);var e=this._get("message");this._displayMessage(e)},_setMessageAttr:function(e){this._set("message",e),this._displayMessage(e)},_setStateAttr:function(e){e!==this.get("state")&&(this._stateStrategy.destroy(),this._stateStrategy="Error"===e?new this.ErrorStateStrategy(this):new this.DefaultStateStrategy(this)),this._set("state",e)},_updateTextbox:function(){this._showRawValue()?this.textbox.value=this.get("value"):this.textbox.value=this._formattedValueString},_showRawValue:function(){return this.focused&&!this.get("readOnly")},destroy:function(){a.hide(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(217),i(213),i(210),i(206),i(225),i(230),i(312)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d=e(l,{constructor:function(e){this.widget=e},_onChange:function(){throw new Error("implement onChange")},_updateErrorMessage:function(){throw new Error("implement _updateErrorMessage")},_undoWithDelay:function(e){var t=this.widget;setTimeout((function(){t.undo()}),e)}}),u=e(d,{constructor:function(e){},_onChange:function(){this._undoWithDelay(this.widget.DELAY_WHEN_ERROR)},_updateErrorMessage:function(e,t){var i=this.widget._getErrorMessage(e,t);this.widget.set("message",i)},_onFocus:function(){this._undoWithDelay(this.widget.DELAY_WHEN_ERROR)},_onBlur:function(){this._undoWithDelay(this.widget.DELAY_WHEN_ERROR)}}),h=e(d,{constructor:function(e){},_onChange:function(){var e,t;this.widget.get("isRounding")?t=(e=this.widget._validateAndCalibrateRoundedValue()).toString():(this.widget.validate(),e=this.widget._getTextBoxContentsAsNumber(),t=this.widget._getTextBoxContentsAsString()),this.widget.get("value")!==e?(this.widget._fevalToMatlab("matlab.ui.control.internal.controller.NumberFieldController.getFormattedDisplayText",[this.widget.valueDisplayFormat,e],2,"SPRINTF"),this.widget.set("value",e,t),this.widget.actionPerformed(e)):this.widget._updateTextbox()},_updateErrorMessage:function(e,t){this.widget.set("message","")},_onFocus:function(){c.hide(this.widget.domNode),this.widget.disabled||this.widget._updateTextbox()},_onBlur:function(){this.widget.disabled||this.widget.readOnly||this._onChange()}}),p=e(d,{constructor:function(e){this.own(a(this.widget.upButtonNode,"click",t.hitch(this,this._onUpButtonClick)),a(this.widget.downButtonNode,"click",t.hitch(this,this._onDownButtonClick)),a(this.widget.upButtonNode,"mousedown",t.hitch(this,this._onUpButtonMouseDown)),a(this.widget.downButtonNode,"mousedown",t.hitch(this,this._onDownButtonMouseDown)),a(this.widget.upButtonNode,"mouseup, mouseout",t.hitch(this,this._onButtonMouseUp)),a(this.widget.downButtonNode,"mouseup, mouseout",t.hitch(this,this._onButtonMouseUp)),a(this.widget.focusNode,"focus",t.hitch(this,this._onUserInputFocus)),a(this.widget.focusNode,"blur",t.hitch(this,this._onUserInputBlur)))},_onButtonMouseUp:function(){this.widget.valueChangerTimer&&clearInterval(this.widget.valueChangerTimer),!0===this.widget._isMouseDown&&this.widget.buttonPressRelease(this.widget.value)}});return{NumberBoxErrorInteractionBehavior:u,NumberBoxDefaultInteractionBehavior:h,SpinnerErrorInteractionBehavior:e([u,p],{constructor:function(e){},_onUserInputFocus:function(){r.toggle(this.widget.focusNode,"vc-spinnerInputFocused")},_onUserInputBlur:function(){r.toggle(this.widget.focusNode,"vc-spinnerInputFocused")},_onUpButtonClick:function(){this._undoWithDelay(200)},_onDownButtonClick:function(){this._undoWithDelay(200)},_onUpButtonMouseDown:function(){this._undoWithDelay(200)},_onDownButtonMouseDown:function(){this._undoWithDelay(200)}}),SpinnerDefaultInteractionBehavior:e([h,p],{constructor:function(e){},_onChange:function(){this.widget._showRawValue()?this.inherited(arguments):this.widget._formattedValueString!==this.widget._getTextBoxContentsAsString()?this.widget.actionPerformed(this.widget._getTextBoxContentsAsNumber()):this.widget._updateTextbox()},_onUserInputBlur:function(){this.widget._onChange(),r.toggle(this.widget.focusNode,"vc-spinnerInputFocused"),this.widget._updateTextbox()},_onUserInputFocus:function(){r.toggle(this.widget.focusNode,"vc-spinnerInputFocused"),this.widget._updateTextbox()},_onUpButtonClick:function(){this.widget._buttonClickedHandler("up")},_onDownButtonClick:function(){this.widget._buttonClickedHandler("down")},_onUpButtonMouseDown:function(){this.widget.valueChangerTimer=setInterval(t.hitch(this,(function(){this.widget._buttonPressedHandler("up")})),this.widget.VALUE_CHANGE_RATE)},_onDownButtonMouseDown:function(){this.widget.valueChangerTimer=setInterval(t.hitch(this,(function(){this.widget._buttonPressedHandler("down")})),this.widget.VALUE_CHANGE_RATE)}})}}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijit dijitReset dijitInline dijitLeft vc-defaultFontRules"\tid="widget_${id}" role="presentation"\n ><div class="dijitReset dijitInputField dijitInputContainer"\n ><input class="dijitReset dijitInputInner" data-dojo-attach-point=\'textbox,focusNode,inputNode,inlineEditorNode,backgroundColorNode\'\n autocomplete="off" ${!nameAttrSetting} type=\'${type}\'\n /></div\n></div>\n'},function(e,t,i){var n,o;n=[i(203),i(213),i(210)],o=i.dj.d(n,(function(e,t,i){return e(null,{horizontalAlignment:"left",_setHorizontalAlignmentAttr:function(e){var t="",n=this.baseClass+"AlignLeft",o=this.baseClass+"AlignRight",r=this.baseClass+"AlignCenter";switch(i.remove(this.domNode,n+" "+o+" "+r),e){case"left":t=n;break;case"right":t=o;break;case"center":t=r;break;default:throw new Error("Not a supported value for horizontalAlignment"+e)}i.add(this.domNode,t),this._set("horizontalAlignment",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1152),i(381),i(404),i(284)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n,o],{setProperties:function(e){this.inherited(arguments);var i={min:this.WidgetData.getProperty("LowerLimit"),max:this.WidgetData.getProperty("UpperLimit"),includeMin:r.toJSBoolean(this.WidgetData.getProperty("LowerLimitInclusive")),includeMax:r.toJSBoolean(this.WidgetData.getProperty("UpperLimitInclusive"))};e.forEach(t.hitch(this,(function(e){switch(e){case"DisplayText":case"Value":this.widget.set("value",this.WidgetData.getProperty("Value"),this.WidgetData.getProperty("Private_ValueDisplayTextPair")[1]);break;case"HorizontalAlignment":this.widget.set("horizontalAlignment",this.WidgetData.getProperty("HorizontalAlignment"));break;case"Editable":var t=r.toJSBoolean(this.WidgetData.getProperty("Editable"));this.widget.set("readOnly",!t);break;case"LowerLimit":case"UpperLimit":case"LowerLimitInclusive":case"UpperLimitInclusive":this.widget.set("constraints",i);break;case"RoundFractionalValues":this.widget.set("isRounding",r.toJSBoolean(this.WidgetData.getProperty("RoundFractionalValues")));break;case"ValueDisplayFormat":this.widget.set("valueDisplayFormat",this.WidgetData.getProperty("ValueDisplayFormat"))}})))},_handleActionPerformed:function(e){this._sendEventToMatlab(e,"ValueChanged")},_sendEventToMatlab:function(e,t){var i={Value:e};"ValueChanging"===t?this.handleUserInteraction(t,i):this.handleUserInteraction(t,i,i)},_handleDisplayTextUpdate:function(e,t){e===this.peernode.getProperty("Value")&&(this.widget._formattedValueString=t,this.peernode.removeEventListener("propertiesSet",this._handlePropertiesSet,this),this.peernode.setProperties({DisplayText:t}),this.peernode.addEventListener("propertiesSet",this._handlePropertiesSet,this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5737),i(5738),i(2131),i(381),i(404),i(298),i(295),i(836),i(5739),i(287),i(5740)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([o,r,a,s,l,c],{widgetInterpreter:null,createView:function(){this.inherited(arguments),this._updateWidget("none"),this.fireViewReadyEvent()},setProperties:function(e){this.inherited(arguments)},_Text:function(e){this.widget.setText(e)},_HorizontalAlignment:function(e){this.widget.setHorizontalAlignment(e)},_VerticalAlignment:function(e){var t=d.getVerticalAlignmentPropertyForWidget(e);this.widget.setVerticalAlignment(t)},_Interpreter:function(e){e!==this.widgetInterpreter&&this._updateWidget(e)},_updateWidget:function(e){if(this.widgetInterpreter!==e){this.widget&&this.widget.destroy(),this.widgetInterpreter=e;var t=new(this._getWidgetModule(e));this._setDijitHandle(t),t.domNode&&this._addViewListeners(t),this.updateWidgetFontSizeInUnits(this._cssFontUnits,this._cssFontSize)}},_getWidgetModule:function(e){return"latex"===e?n:"tex"===e?u:"html"===e?i:t},_addViewListeners:function(e){e.on("link-clicked",this._handleLinkClicked.bind(this))},_handleLinkClicked:function(e){var t={URL:e.URL,TreatAsMATLABLink:!0};this.handleUserInteraction("LinkClicked",t)},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){var e=this.widget&&this.widget.computeFitSize(2,this,this.getFitSize());return e||(e=[0,0]),e},recomputeFitHeight:function(e){this.recomputeFitSize(e)},_editPropertiesAffectingFitSize:function(e){return e.push("Interpreter"),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(217),i(269),i(479),i(504),i(590),i(358),i(374),i(289),i(1149),i(1153),i(287),i(1498)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([n,s,o,r,a,l,c,u,p],{backgroundColor:"rgba(0, 0, 0, 0)",postCreate:function(){this.inherited(arguments),this.domNode.classList.add("vc-label")},buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode},setText:function(e){var t=h.getNewLineDelimitedText(e);this.set("text",t)},setHorizontalAlignment:function(e){this.set("horizontalAlignment",e)},setVerticalAlignment:function(e){this.set("verticalAlignment",e)},computeFitSize:function(e,t){var i=h.getWidgetFontStyleStringFromDom(this.domNode),n=this.text,o=h.getTextPosition(n,i);return[o.width+e,this._computeFitHeight(o.height+e,e,t)]},_computeFitHeight:function(e,t,i){var n=e;if(this.wordWrap&&i){var o=h.getWidgetFontStyleStringFromDom(this.domNode),r=this.text,a=i.getCellWidth()+"px";n=h.getTextPositionWithWordWrap(r,o,a).height+t}return n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(479),i(504),i(358),i(374),i(289),i(590),i(1154),i(1155),i(1153),i(1499),i(287),i(2130),i(1149),i(343),i(215),i(1498)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([g,n,t,i,o,r,a,s,l,c,f,m],{backgroundColor:"rgba(0, 0, 0, 0)",urlMap:{},text:"",constructor:function(){this.inherited(arguments),this.domNode=document.createElement("div"),this.domNode.classList.add("vc-htmllabel"),this.textNode=document.createElement("div"),this.domNode.appendChild(this.textNode),this.textNode.classList.add("mwAlignmentNode")},buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode},_setWidthAttr:function(){this.inherited(arguments)},setText:function(e){if(Array.isArray(e)&&(e=e.join("<br>")),this.textNode.childNodes.length>0)for(var t=this.textNode.lastChild;t;)this.textNode.removeChild(t),t=this.textNode.lastChild;this.textNode.appendChild(h.sanitizeHtmlForUILabelInterpreter(e)),d.addLinkAnchorTarget(this.domNode),d.blockAnchorInteractivity(this.domNode),this.urlMap=d.addLinkAnchorClickListeners(this.domNode,this),this._updateLinkInteractions(this.getEnable()),this.text=e},_handleClick:function(e){if(!this.disabled){e.target.classList.add("vc-visited");var t=this.urlMap[e.target];this.emit("link-clicked",{URL:t,TreatAsMATLABLink:!0})}return!0},_handleNativeLinkClick:function(e){e.target.classList.add("vc-visited")},computeFitSize:function(e,t){var i=u.getWidgetFontStyleStringFromDom(this.domNode),n=this.domNode.innerHTML,o=u.getHTMLTextPosition(n,i);return[o.width+e,this._computeFitHeight(o.height+e,e,t)]},_computeFitHeight:function(e,t,i){var n=e;if(this.wordWrap&&i){var o=u.getWidgetFontStyleStringFromDom(this.domNode),r=this.domNode.innerHTML,a=i.getCellWidth()+"px";n=u.getHTMLTextPositionWithWordWrap(r,o,a).height+t}return n},setEnable:function(e){this.inherited(arguments),this._updateLinkInteractions(e)},_updateLinkInteractions:function(e){let t,i;e?(t=0,i="false"):(t=-1,i="true");let n=this.domNode.querySelectorAll("a");for(var o=0;o<n.length;o++){let e=n[o];e.tabIndex=t,e.ariaDisabled=i}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_HorizontalClipping:function(e){this.widget.setHorizontalClipping(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2131),i(665)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){this.renderer=i.renderSimpleTeX}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(349),i(381),i(5742),i(5743),i(284),i(1156),i(2134),i(298),i(295),i(5745),i(287),i(1500)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([o,l,d,u],{constructor:function(){!0===this.getPeerNode().getProperty("IsUIControl")&&(this._positionStrategy=new h(this))},createView:function(){this.inherited(arguments),this._startRender();var e=this._createDijitHandle();this._setDijitHandle(e),this._endRender(),this.peernode.dispatchEventToServer("viewReady",{}),this.fireViewReadyEvent()},getInitializationPropertyNames:function(){var e=this.inherited(arguments),t=["Limits"];return e&&(t=t.concat(e)),t},setProperties:function(e){this.inherited(arguments);var t=!1;if(this._arePropertyNamesPresent(e,["Orientation"])&&this.widget&&this.widget.orientation.toLowerCase()!==this.WidgetData.getProperty("Orientation").toLowerCase()){this.widget.destroy();var i=this._createDijitHandle();this._setDijitHandle(i)}if(this._arePropertyNamesPresent(e,["Enable"])){var n=s.toJSBoolean(this.WidgetData.getProperty("Enable"));this.peernode.hasProperty("IsUIControl")||this.widget.set("disabled",!n)}if(this._arePropertyNamesPresent(e,["Limits"])){var o=this.WidgetData.getProperty("Limits");this.widget.set("minimum",o[0]),this.widget.set("maximum",o[1]),this.widget.set("value",this.WidgetData.getProperty("Value")),t=!0}this.doSetProperties(e),this.hasOuterSizeChanged(e)&&(this.widget.set("outerHeight",this.getOuterSizeInPixels()[1]),this.widget.set("outerWidth",this.getOuterSizeInPixels()[0])),this._arePropertyNamesPresent(e,["Value"])&&this.widget.set("value",this.WidgetData.getProperty("Value")),this._arePropertyNamesPresent(e,["MajorTicks","MajorTickLabels","MinorTicks","FontName","FontAngle","FontSize","FontWeight"])&&(t=!0),t&&this.widget.computePreferredSize()},handleInnerSizeSet:function(e){this._resizeView(e),this.widget.computePreferredSize()},handleInnerLocationSet:function(e){this.widget.set("location",this.getInnerLocationInPixels()),this.widget.computePreferredSize()},updateComponentSize:function(e,t,i,n){this._resizeView(t),this.widget.set("outerWidth",parseFloat(n[0])),this.widget.set("outerHeight",parseFloat(n[1]))},setComponentToPreferredSize:function(){},setMinorTicks:function(e){this.widget.set("minorTicks",e)},setMajorTicks:function(e){this.widget.set("majorTicks",e)},setMajorTickLabels:function(e){this.widget.set("majorTickLabels",e)},getTickLabelTrackLength:function(e){return this.widget.getTickLabelTrackLength(e)},_createDijitHandle:function(){var e=new(this.WidgetData.getProperty("Orientation").toLowerCase().indexOf("horizontal")>=0?r:a);if(e.on("mousedragging",t.hitch(this,(function(){this._handleUserInteraction("mousedragging")}))),e.on("mousedragreleased",t.hitch(this,(function(){this._handleUserInteraction("mousedragreleased")}))),e.on("mouseclicked",t.hitch(this,(function(){this._handleUserInteraction("mousedragging"),this._handleUserInteraction("mouseclicked")}))),e.watch("preferredSize",t.hitch(this,this._handleSliderPreferredSizeChanged)),this.peernode.isInDesignTime){let t=e._centerLabelsAndComputePreferredSize;e._centerLabelsAndComputePreferredSize=function(){if(this.getComponentDomNode()){let i=f.moveWidgetDomOffScreen(this);t.call(e),i(this.getComponentDomNode())}else t.call(e)}.bind(this)}return e},_handleUserInteraction:function(e){if("mousedragging"===e||this.WidgetData.getProperty("Value")!==this.widget.get("value")){var t={Value:this.widget.get("value")};"mousedragging"===e?(t={Value:this.widget.get("value")},this.handleUserInteraction(e,t)):this.handleUserInteraction(e,t,t)}},_handleSliderPreferredSizeChanged:function(){var e,t=[],i=[],n=this.widget.get("preferredSize");t[0]=n.width,t[1]=n.height,i[0]=n.left,i[1]=n.bottom,e={OuterSize:t,OuterLocation:i},this._validateNewSize(e)&&this.setPositionPropertiesInPixels(e)},_validateNewSize:function(e){var t=this.getOuterSizeInPixels(),i=this.getOuterLocationInPixels(),n=e.OuterSize[0]>=0&&e.OuterSize[1]>=0,o=!(i[0]===e.OuterLocation[0]&&i[1]===e.OuterLocation[1]&&t[0]===e.OuterSize[0]&&t[1]===e.OuterSize[1]);return n&&o},_computeMinimumSize:function(){return"horizontal"===this.getPeerNode().getProperty("Orientation").toLowerCase()?[80,0]:[0,80]},_computeFitSize:function(){return"horizontal"===this.getPeerNode().getProperty("Orientation").toLowerCase()?this._computeFitSizeForHorizontalSlider():this._computeFitSizeForVerticalSlider()},_computeFitSizeForHorizontalSlider:function(){var e=[0,0],t=p.getWidgetFontStyleMap(this.getPeerNode());if(this.getPeerNode().getProperty("MajorTicks").length>0){var i=this.getPeerNode().getProperty("MajorTickLabels");if(i.length>0){var o=p.getNewLineDelimitedText([i[0]]),r=p.getNewLineDelimitedText([i[i.length-1]]),a=p.getTextPosition(o,t),s=p.getTextPosition(r,t);e[0]=Math.max(a.w/2,n.HORIZONTAL_SLIDER.SLIDER_THUMB_WIDTH/2)+n.HORIZONTAL_SLIDER.SLIDER_TRACK_WIDTH+Math.max(s.w/2,n.HORIZONTAL_SLIDER.SLIDER_THUMB_WIDTH/2),e[1]=n.HORIZONTAL_SLIDER.SLIDER_THUMB_HEIGHT+n.HORIZONTAL_SLIDER.THUMB_TO_TICKS_GAP+n.HORIZONTAL_SLIDER.MAJOR_TICK_HEIGHT+n.HORIZONTAL_SLIDER.TICKS_TO_LABEL_GAP+a.h}else e[0]=n.HORIZONTAL_SLIDER.SLIDER_TRACK_WIDTH+n.HORIZONTAL_SLIDER.SLIDER_THUMB_WIDTH,e[1]=n.HORIZONTAL_SLIDER.SLIDER_THUMB_HEIGHT+n.HORIZONTAL_SLIDER.THUMB_TO_TICKS_GAP+n.HORIZONTAL_SLIDER.MAJOR_TICK_HEIGHT}else{this.getPeerNode().getProperty("MinorTicks").length>0?(e[0]=n.HORIZONTAL_SLIDER.SLIDER_TRACK_WIDTH+n.HORIZONTAL_SLIDER.SLIDER_THUMB_WIDTH,e[1]=n.HORIZONTAL_SLIDER.SLIDER_THUMB_HEIGHT+n.HORIZONTAL_SLIDER.THUMB_TO_TICKS_GAP+n.HORIZONTAL_SLIDER.MINOR_TICK_HEIGHT):(e[0]=n.HORIZONTAL_SLIDER.SLIDER_TRACK_WIDTH+n.HORIZONTAL_SLIDER.SLIDER_THUMB_WIDTH,e[1]=n.HORIZONTAL_SLIDER.SLIDER_THUMB_HEIGHT)}return e},_computeFitSizeForVerticalSlider:function(){var e=[0,0],t=p.getWidgetFontStyleMap(this.getPeerNode());if(this.getPeerNode().getProperty("MajorTicks").length>0){var i=this.getPeerNode().getProperty("MajorTickLabels");if(i.length>0){for(var o,r,a=0,s=0;s<i.length;s++){var l=p.getTextPosition(i[s],t);a=Math.max(a,l.w),0===s?o=l:s===i.length-1&&(r=l)}e[0]=n.VERTICAL_SLIDER.SLIDER_THUMB_WIDTH+n.VERTICAL_SLIDER.THUMB_TO_TICKS_GAP+n.VERTICAL_SLIDER.MAJOR_TICK_WIDTH+n.VERTICAL_SLIDER.TICKS_TO_LABEL_GAP+a,e[1]=Math.max(o.h/2,n.VERTICAL_SLIDER.SLIDER_THUMB_HEIGHT/2)+n.VERTICAL_SLIDER.SLIDER_TRACK_HEIGHT+Math.max(r.h/2,n.VERTICAL_SLIDER.SLIDER_THUMB_HEIGHT/2)}else e[0]=n.VERTICAL_SLIDER.SLIDER_THUMB_WIDTH+n.VERTICAL_SLIDER.THUMB_TO_TICKS_GAP+n.VERTICAL_SLIDER.MAJOR_TICK_WIDTH,e[1]=n.VERTICAL_SLIDER.SLIDER_TRACK_HEIGHT+n.VERTICAL_SLIDER.SLIDER_THUMB_HEIGHT}else{this.getPeerNode().getProperty("MinorTicks").length>0?(e[0]=n.VERTICAL_SLIDER.SLIDER_THUMB_WIDTH+n.VERTICAL_SLIDER.THUMB_TO_TICKS_GAP+n.VERTICAL_SLIDER.MINOR_TICK_WIDTH,e[1]=n.VERTICAL_SLIDER.SLIDER_TRACK_HEIGHT+n.VERTICAL_SLIDER.SLIDER_THUMB_HEIGHT):(e[0]=n.VERTICAL_SLIDER.SLIDER_THUMB_WIDTH,e[1]=n.VERTICAL_SLIDER.SLIDER_TRACK_HEIGHT+n.VERTICAL_SLIDER.SLIDER_THUMB_HEIGHT)}return e},_editPropertiesAffectingFitSize:function(e){return e.concat(["MinorTicks","MajorTicks","MajorTickLabels","Orientation"])},handleViewInDom:function(){this.inherited(arguments),this.setProperties(["Size"])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2083),i(358),i(289),i(287),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([i,n,o],{baseClass:"vc-slider vc-horizontalSlider mwHorizontalSlider mwSlider mwWidget",postCreate:function(){this.inherited(arguments),this.own(this.watch("fontSize",t.hitch(this,"_adjustLabelContainerPositioning")),this.watch("fontWeight",t.hitch(this,"_adjustLabelContainerPositioning")),this.watch("fontFamily",t.hitch(this,"_adjustLabelContainerPositioning")),this.watch("fontStyle",t.hitch(this,"_adjustLabelContainerPositioning")))},getInnerSizeForGivenOuterSize:function(e){var t=e[0],i=0,n=0,o=r.getWidgetFontStyleStringFromDom(this.domNode);this.majorTickLabelDijit&&(i=r.getTextPosition(this.majorTickLabels[0],o).w,n=r.getTextPosition(this.majorTickLabels[this.majorTickLabels.length-1],o).w);var s=t-i/2-n/2-5;return t-s<a.HORIZONTAL_SLIDER.SLIDER_THUMB_WIDTH+1&&(s=t-(a.HORIZONTAL_SLIDER.SLIDER_THUMB_WIDTH+1)),[s=Math.max(0,s),a.HORIZONTAL_SLIDER.SLIDER_TRACK_HEIGHT]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5744),i(358),i(289),i(287),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i,n],{baseClass:"vc-slider vc-verticalSlider mwVerticalSlider mwSlider mwWidget",getInnerSizeForGivenOuterSize:function(e){var t=e[1],i=0,n=0,a=o.getWidgetFontStyleStringFromDom(this.domNode);this.majorTickLabelDijit&&(i=o.getTextPosition(this.majorTickLabels[0],a).h,n=o.getTextPosition(this.majorTickLabels[this.majorTickLabels.length-1],a).h);var s=t-i/2-n/2-5;return t-s<r.VERTICAL_SLIDER.SLIDER_THUMB_HEIGHT+1&&(s=t-(r.VERTICAL_SLIDER.SLIDER_THUMB_HEIGHT+1)),s=Math.max(0,s),[r.VERTICAL_SLIDER.SLIDER_TRACK_WIDTH,s]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(217),i(225),i(2084),i(2132),i(2133),i(486)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(r,{baseClass:"mwWidget mwSlider mwVerticalSlider",disabled:!1,width:3,height:200,value:0,majorTicks:[],minorTicks:[],majorTickLabels:[],minimum:0,maximum:100,_mousePixelCoord:"clientY",_pixelCount:"h",_startingPixelCoord:"y",_thumbPositionParam1:"height",_thumbPositionParam2:"bottom",_isScaleDirectionReverse:!0,_TRACK_LEFT_OFFSET:5,orientation:"vertical",getRuleConstructor:function(){return a},getRuleLabelConstructor:function(){return s},_setHeightAttr:function(e){this.inherited(arguments),i.set(this.containerNode,{height:e+"px"})},_updateVisual:function(){this.width>0&&this.height>0?(i.set(this.sliderTrackNode,{display:"inline-block"}),i.set(this.containerNode,{display:"inline-block"})):(i.set(this.sliderTrackNode,{display:"none"}),i.set(this.containerNode,{display:"none"}))},postCreate:function(){this.inherited(arguments),this.own(this.watch("height",this._adjustThumbPosition.bind(this)))},startup:function(){this.inherited(arguments),this.resize();var e={deprecated:{module:"mw-slider/VerticalSlider"},removalVersion:"R2022b",replacement:{module:"mw-slider/Slider"},geckNumber:2463450,deprecationLevel:l.WARN};l.deprecated(e)},_computePreferredWidth:function(){var e,t,i=this.sliderThumbSize.x,o=this._getDomNodeOfWidgetAtEnd();return o?(null!==this.majorTickLabelDijit&&o===this.majorTickLabelDijit.domNode?(this._majorTickLabelsPosition=this._computePreferredSizeOfMajorTickLabels(),t=this._majorTickLabelsPosition):t=n.position(o),e=t.x+t.w):e=this.sliderThumbSize.x+this.sliderThumbSize.w,e-i},_computePreferredX:function(){return this.location[0]-this._TRACK_LEFT_OFFSET},_computePreferredHeight:function(){var e,t,i,o=n.position(this.sliderTrackNode),r=Math.min(o.y-this.sliderThumbSize.h/2,this.sliderThumbSize.y),a=Math.max(o.y+o.h+this.sliderThumbSize.h/2,this.sliderThumbSize.y+this.sliderThumbSize.w),s=null!==this._majorTickLabelsPosition?this._majorTickLabelsPosition:this._computePreferredSizeOfMajorTickLabels();return null!==s?(t=Math.max(s.y,a),i=Math.min(s.y-s.h,r)):(t=a,i=r),e=t-i,this._offsetTrackAndContainer=(e-o.h)/2,e},_computePreferredY:function(){i.set(this.sliderTrackNode,{top:this._offsetTrackAndContainer+"px"}),i.set(this.containerNode,{top:this._offsetTrackAndContainer+"px"});var e=this.location[1]-this._offsetTrackAndContainer;return this._majorTickLabelsPosition=null,this._offsetTrackAndContainer=null,e},_computePreferredSizeOfMajorTickLabels:function(){var e=null;if(this.majorTickLabelDijit){var t=o(".mwRuleLabel",this.majorTickLabelDijit.domNode),i=0,r=[],a=-1*Number.MAX_VALUE,s=-1*Number.MAX_VALUE;t.forEach((function(e){var t=n.position(e);t.x>s&&(s=t.x);var o=t.y+t.h;o>a&&(a=o),t.w>i&&(i=t.w),r.push(t.y)}));var l=Math.min.apply(null,r);e={w:i,h:a-l,y:a,x:s}}return e},getTickLabelTrackLength:function(e){return n.position(this.sliderTrackNode).h}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2122),i(687)],o=i.dj.d(n,(function(e,t,i){return e([t],{setSizeInUnits:function(e){this._units=this.getUnitsServices().getUnitsFromUnitsValue(e),this._sizeInUnits=this.getUnitsServices().getPositionInUnitsFromUnitsValue(e);var t=this.getRefFrameSize(),i=this.getUnitsServices().getSizeOrLocationInPixelsFromUnitsValue(e,t);0===i[0]&&0===i[1]||(i[0]>i[1]?i[1]=3:i[0]=3,this.areArrayValuesDifferent(i,this._sizeForView)&&(this._sizeForView=i,this.handleInnerSizeSet(i),this.revalidate()))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(5747),i(381),i(1157),i(404),i(298),i(1151),i(284),i(295),i(287),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([n,o,r,a,s,c],{createView:function(){this.inherited(arguments);var e=this._createItems(this.WidgetData.getProperty("Items")),n=new i({items:e});n.on("change",t.hitch(this,"_handleValueChanged")),n.on("dropdown-opening",t.hitch(this,"_handleDropDownOpening")),this._setDijitHandle(n),this.fireViewReadyEvent()},setProperties:function(e){this.inherited(arguments),e.forEach(t.hitch(this,(function(e){switch(e){case"Editable":var t=l.toJSBoolean(this.WidgetData.getProperty("Editable")),i=l.toJSRGB(this.WidgetData.getProperty("BackgroundColor"));this.widget.set("editable",t),this.widget.set("backgroundColor",i)}})))},_setItemsOnWidget:function(e){this.widget.set("options",e)},_setSelectedIndexOnWidget:function(e){var t=l.toJSBoolean(this.WidgetData.getProperty("Editable"));this.widget.set("editable",t),"string"==typeof e?(this.widget.set("value",e),this.widget.set("selectedIndex",-1)):-1===e?(this.widget.set("value",""),this.widget.set("selectedIndex",-1)):this.widget.set("selectedIndex",e)},_handleValueChanged:function(e){var t={SelectedIndex:e.mwEventData.newValue};this.handleUserInteraction("StateChanged",{SelectedIndex:e.mwEventData.newValue,PreviousSelectedIndex:e.mwEventData.oldValue},t)},_handleDropDownOpening:function(e){if(e.isOpening){this.handleUserInteraction("DropDownOpening",{})}},_createItems:function(e){var t=[];return e.forEach((function(e,i){null!=e&&t.push({label:e,value:i+1})})),t},_computeMinimumSize:function(){return[80,0]},_computeFitSize:function(){var e=d.getWidgetFontStyleMap(this.getPeerNode()),t=this.getPeerNode().getProperty("Items").join("\n"),i=d.getTextPosition(t,e).w,n=d.getTextPosition("M",e).h,o=this.widget.getDropDownArrowWidth(e.FontSize);return[(i+=Math.max(o,22)+u.DROP_DOWN.ARROW_BUTTON_BORDER_LEFT)+10,n+u.DROP_DOWN.DROP_SHADOW+7]},_editPropertiesAffectingFitSize:function(e){return e.push("Items"),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(286),i(358),i(374),i(952),i(289),i(479),i(837),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([n,o,r,a,s,l],{height:20,width:100,backgroundColor:"rgb(245, 245, 245)",postCreate:function(){this.inherited(arguments),this.own(this.watch("width",i.hitch(this,this._adjustToSizeChange)),this.watch("height",i.hitch(this,this._adjustToSizeChange)),this.watch("fontFamily",i.hitch(this,this._adjustToSizeChange)),this.watch("fontSize",i.hitch(this,this._adjustToSizeChange)),this.watch("fontStyle",i.hitch(this,this._adjustToSizeChange)),this.watch("fontWeight",i.hitch(this,this._adjustToSizeChange)),t(this.get("menu"),"focusin, mouseover",i.hitch(this,"_onMenuFocusIn")),t(this.get("menu"),"focusout",i.hitch(this,"_onMenuFocusOut")),t(this.get("menu"),"mouseleave",i.hitch(this,"_onMenMouseLeave"))),this.domNode.classList.add("vc-comboboxdropdown")},_onMenuFocusIn:function(e){this.get("menu").getChildren().forEach((function(t,i){t===e.target&&(t.style.background="")}))},_onMenuFocusOut:function(e){var t=this._getDropDownMenuBackgroundColor();this.get("menu").getChildren().forEach((function(i,n){i!==e.target||i.classList.contains("mwComboBoxSelectedMenuItem")||(i.style.background=t)}))},_onMenMouseLeave:function(e){var t=this._getDropDownMenuBackgroundColor();this.get("menu").getChildren().forEach((function(e,i){e.classList.contains("mwComboBoxSelectedMenuItem")||(e.style.background=t)}))},_handleActiveChange:function(e,t,i){this.editable||this.inherited(arguments)},_handleCheckedChange:function(e,t,i){this.editable||this.inherited(arguments)},_handleHoverChange:function(e,t,i){this.editable||this.inherited(arguments)},_setItemsAttr:function(e){this.donotretrigger=!0,this.inherited(arguments),this.donotretrigger=!1},_handleOpenedChange:function(e,t,i){this.donotretrigger||this.emit("dropdown-opening",{isOpening:i}),this.editable||this.inherited(arguments)},buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode;var e=this._getNodeToApplyFontProperties(),i=this._textField.domNode,n="rgba(0, 0, 0, 0)";e&&(e.style.backgroundColor=n),i&&(i.style.backgroundColor=n),this.own(t(this.inputNode,"blur",this._handleInputNodeBlur))},_handleInputNodeBlur:function(e){window.getSelection&&window.getSelection().empty()},_setSelectedIndexAttr:function(e){e>0&&this.set("value",e),this._set("selectedIndex",e),this._applyStylesToDropdownList()},_setOptionsAttr:function(e){var t=this._createOptionsList(e);this._set("options",t),this.set("items",t),this.get("_comboBoxMenuOpened")&&this._applyStylesToDropdownList()},_getOptionsAttr:function(){var e,t=[];e=this.items.length;for(var i=0;i<e;i++)t[i]=this.options[i].label;return t},_getPreferredSizeAttr:function(){return c.calculateInputPreferredSize(this.inputNode,d.COMBO_BOX.OVERALL_HEIGHT_PADDING,d.COMBO_BOX.OVERALL_WIDTH_PADDING)},_applyStylesToDropdownList:function(){var e=this.get("fontFamily"),t=this.get("fontSize")+"px",i=this.get("fontWeight"),n=this.get("fontStyle"),o=this.get("fontColor"),r=this._getDropDownMenuBackgroundColor();this.get("menu").getChildren().forEach((function(a){a.style.fontFamily=e,a.style.fontSize=t,a.style.fontWeight=i,a.style.fontStyle=n,a.style.color=o,a.classList.contains("mwComboBoxSelectedMenuItem")?a.style.background="":a.style.background=r}))},_adjustToSizeChange:function(){var e=this.arrowNode.children[0],t=this.positionDropDownArrow(e,this.arrowNode,this.get("fontSize"),this.get("height")),i=this._getPreferredSizeAttr(),n={width:i.width+t,height:i.height+d.DROP_DOWN.BORDER_TOP_BOTTOM+d.DROP_DOWN.DROP_SHADOW};this.set("preferredSize",n)},_createOptionsList:function(e){var t=[];return e&&0!==e.length&&e.forEach((function(e,i){null!=e&&t.push({value:i+1,label:e})})),t},_updateButtonBackgroundColor:function(e,t){this.inherited(arguments),this._setArrowNodeBgColor(this.get("editable"),e,t)},_setArrowNodeBgColor:function(e,t,i){var n=this._getBoxShadowValue(t,i);e&&(t="#f5f5f5",n=""),this.arrowNode.style.background=t,this.arrowNode.style.boxShadow=n},_openComboBoxMenu:function(e){this._set("_opened",!0),this.get("editable")&&this._updateViewBackgroundColor(this.backgroundColor),this._applyStylesToDropdownList(),this.inherited(arguments)},closeMenu:function(){this._set("_opened",!1),this.inherited(arguments)},_closeMenuOnBlur:function(e){this._set("_opened",!1),this.inherited(arguments)},_getNodeToApplyFontProperties:function(){return this.inputNode},getFocusNode:function(){return this.focusNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(5749),i(381),i(1157),i(284),i(404),i(298),i(295),i(287),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([o,r,s,l,c],{createView:function(){this.inherited(arguments);var e=new n;e.on("change",i.hitch(this,"_handleValueChanged")),this._setDijitHandle(e),this.own(t(this.WidgetData,"peerEvent",i.hitch(this,(function(e){"scroll"===e.data.Name&&this._scrollToIndex(e.data.Index)})))),this.fireViewReadyEvent()},setProperties:function(e){if(this._arePropertyNamesPresent(e,["Multiselect"])){var t=a.toJSBoolean(this.WidgetData.getProperty("Multiselect"));t?this.widget.set("selectionMode","multiple"):this.widget.set("selectionMode","single")}this.inherited(arguments)},_setSelectedIndexOnWidget:function(e){-1===e?this.widget.set("value",[]):(Array.isArray(e)||(e=[e]),this.widget.set("value",e))},_setItemsOnWidget:function(e){var t=e.map((function(e,t){return{label:e,value:t+1}}));this.widget.set("items",t)},_handleValueChanged:function(e){var t=e.mwEventData.newValue;0===t.length&&(t=-1);var i={SelectedIndex:t};this.handleUserInteraction("StateChanged",i,i)},_scrollToIndex:function(e){this.widget.scrollToValue(e)},setComponentToPreferredSize:function(){},_computeMinimumSize:function(){return[80,80]},_computeFitSize:function(){var e=d.getWidgetFontStyleMap(this.getPeerNode()),t=this.getPeerNode().getProperty("Items"),i=t.length,n=Math.min(i,4);n=Math.max(n,1);var o=t.join("\n"),r=d.getTextPosition(o,e).w,a=d.getTextPosition("M",e).h;return r=u.LISTBOX.OVERALL_WIDTH_PADDING+r+u.LISTBOX.OVERALL_ITEM_WIDTH_PADDING,a=u.LISTBOX.OVERALL_HEIGHT_PADDING+(a+u.LISTBOX.OVERALL_ITEM_HEIGHT_PADDING)*n,[Math.ceil(r),a]},_editPropertiesAffectingFitSize:function(e){return e.push("Items"),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(1078),i(504),i(358),i(374),i(289)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([i,n,o,r,a],{backgroundColor:"rgb(255, 255, 255)",postCreate:function(){this.inherited(arguments),t.add(this.domNode,"vc-listBox"),t.add(this.containerNode,"listBoxContainerNode")},buildRendering:function(){this.inherited(arguments),this.inlineEditorNode=this.containerNode,this.backgroundColorNode=this.domNode,this.set("enableHorizontalScroll",!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(381),i(1496),i(5751)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,n],{createView:function(){this.inherited(arguments);var e=new o;e.on("change",t.hitch(this,(function(e){var t={Value:e.mwEventData.newValue};this.handleUserInteraction("ValueChanged",t,t)}))),this._setDijitHandle(e),this.fireViewReadyEvent()},setProperties:function(e){this.inherited(arguments),e.forEach(t.hitch(this,(function(e){switch(e){case"Value":this.widget.set("checked",this.WidgetData.getProperty("Value"))}})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(446),i(259),i(289),i(358),i(374),i(952),i(479),i(504),i(1489),i(953),i(590),i(1490)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e(i.validate([t,n,o,r,a,s,l,c,d,u,h]),{postCreate:function(){this.inherited(arguments),this.domNode.classList.add("vc-button")},buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(381),i(1496),i(5753)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n,o],{createView:function(){this.inherited(arguments);var e=new r({});this._setDijitHandle(e),null!==e.getParent()&&e.set("buttonGroup",e.getParent().domNode.getAttribute("widgetid")),this.own(i(e,"button-selection-change",t.hitch(this,this._selectionChanged))),this.fireViewReadyEvent()},_selectionChanged:function(e){if(e.detail){var t={Value:e.detail.isSelected};this.handleUserInteraction("ViewSelectionChanged",t,t)}},setProperties:function(e){this.inherited(arguments),e.forEach(t.hitch(this,(function(e){switch(e){case"Value":this.widget.set("checked",this.WidgetData.getProperty("Value"));break;case"ParentId":this.widget.set("buttonGroup",this.WidgetData.getParent().getId())}})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(446),i(259),i(289),i(358),i(374),i(952),i(479),i(504),i(2128),i(1489),i(953),i(590),i(1490)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(i.validate([t,n,o,r,a,s,l,c,d,u,h,p]),{postCreate:function(){this.inherited(arguments),this.domNode.classList.add("vc-button")},buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1152),i(5755),i(349),i(381),i(404),i(889),i(284),i(298),i(295),i(287),i(1500)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([r,a,c,d],{constructor:function(){},createView:function(){this.inherited(arguments);var e=new n({includeDefaultErrorText:!0,limits:{minimum:Number.NEGATIVE_INFINITY,maximum:Number.POSITIVE_INFINITY},allowInfiniteValue:!0,allowEmptyValue:!0,setDomValueOnButtonClick:!1,invalidMessage:i.invalidMessage,valuePrecision:15,rangeMessageBetween:i.rangeMessageBetween,rangeMessageLessThan:i.rangeMessageLessThan,rangeMessageGreaterThan:i.rangeMessageGreaterThan,changingActionPerformed:t.hitch(this,"_handleChangingActionPerformed"),handleDisplayTextUpdate:t.hitch(this,(function(e,t,i){this._handleDisplayTextUpdate(e,t,i)}))});e.on("change",t.hitch(this,(function(e){this._handleChangeActionPerformed(e.mwEventData.newValue),this.widget._updateDisplay(e.mwEventData.newValue,"change")}))),e.on("changing",t.hitch(this,(function(e){this._handleChangingActionPerformed(e.mwEventData.newValue),this.widget._updateDisplay(e.mwEventData.newValue,"changing")}))),this._setDijitHandle(e),this._initializeFitSizeData(),this.fireViewReadyEvent()},setProperties:function(e){this.inherited(arguments),e.forEach(t.hitch(this,(function(e){switch(e){case"Step":this.widget.set("step",this.WidgetData.getProperty("Step"));break;case"HorizontalAlignment":this.widget.set("horizontalAlignment",this.WidgetData.getProperty("HorizontalAlignment"));break;case"Editable":var t=l.toJSBoolean(this.WidgetData.getProperty("Editable"));this.widget.set("editable",t),this.widget.set("readOnly",!t);break;case"LowerLimitInclusive":var i=l.toJSBoolean(this.WidgetData.getProperty("LowerLimitInclusive"));this.widget.set("includeMinimum",i);break;case"UpperLimitInclusive":var n=l.toJSBoolean(this.WidgetData.getProperty("UpperLimitInclusive"));this.widget.set("includeMaximum",n);break;case"RoundFractionalValues":this.widget.set("roundValueToInt",l.toJSBoolean(this.WidgetData.getProperty("RoundFractionalValues")));break;case"ValueDisplayFormat":this.widget.set("valueDisplayFormat",this.WidgetData.getProperty("ValueDisplayFormat"))}}))),u.arePropertyNamesPresent(e,["Limits","LowerLimit","UpperLimit"])&&this.widget.set("limits",this._getLimits()),u.arePropertyNamesPresent(e,["Value","DisplayText"])&&(this.widget.set("value",this.WidgetData.getProperty("Value")),this.widget.set("displayText",this.WidgetData.getProperty("Private_ValueDisplayTextPair")[1]))},_handleChangeActionPerformed:function(e){this._sendEventToMatlab(e,"ValueChanged")},_handleChangingActionPerformed:function(e){this._sendEventToMatlab(e,"ValueChanging")},_sendEventToMatlab:function(e,t){var i={Value:e};"ValueChanging"===t?this.handleUserInteraction(t,i):this.handleUserInteraction(t,i,i)},_handleDisplayTextUpdate:function(e,t,i){(e===this.peernode.getProperty("Value")&&"change"===i||"changing"===i)&&(this.widget.displayText=t,this.peernode.removeEventListener("propertiesSet",this._handlePropertiesSet,this),this.peernode.setProperties({DisplayText:t}),this.peernode.addEventListener("propertiesSet",this._handlePropertiesSet,this))},_getLimits:function(){return{minimum:s.convertValueToNumber(this.WidgetData.getProperty("LowerLimit")),maximum:s.convertValueToNumber(this.WidgetData.getProperty("UpperLimit"))}},_spinnerBorderAndPaddingSize:null,_computeMinimumSize:function(){return[60,0]},_computeFitSize:function(){var e=u.getWidgetFontStyleMap(this.getPeerNode()),t=u.getTextPosition("8888888888",e),i=[t.w,t.h];return i[0]+=this._spinnerBorderAndPaddingSize[0],i[1]+=this._spinnerBorderAndPaddingSize[1],i[1]=Math.max(i[1],o.SPINNER.BUTTON_WIDTH),i[0]+=o.SPINNER.BUTTON_WIDTH,i},_initializeFitSizeData:function(){for(var e=this.widget.inputNode,t=[0,0];e!==this.widget.domNode;){var i=u.getBorderAndPaddingSize(e);t[0]+=i[0],t[1]+=i[1],e=e.parentElement}var n=u.getBorderAndPaddingSize(e);t[0]+=n[0],t[1]+=n[1],this._spinnerBorderAndPaddingSize=t},handleViewInDom:function(){this.inherited(arguments),this.setProperties(["Size"]),this._initializeFitSizeData(),this.recomputeFitSize()},_resizeView:function(){if(this.peernode.isInDesignTime){var e=h.adjustPositionMethodForScaling();this.inherited(arguments),e()}else this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(217),i(212),i(232),i(520),i(358),i(374),i(479),i(837),i(349),i(289)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([r,a,s,u],{backgroundColor:"rgb(255, 255, 255)",valueDisplayFormat:"%11.4g",displayText:"0",constructor:function(){this.inherited(arguments),o.registerResponseHandler("FEvalResponse:SPSPRINTF",this._handleSprintfReturn,this)},buildRendering:function(){this.inherited(arguments),this.displayValueFormatter=function(e){var t=new n;return t.resolve(this.displayText),t.promise},this.backgroundColorNode=this._textField.domNode;var e=this._getNodeToApplyFontProperties();e&&t.set(e,{"background-color":"rgba(0, 0, 0, 0)"})},_setDisplayTextAttr:function(e){!e||"number"==typeof e&&isNaN(e)||(this.displayText=String(e),this._showRawValue()||this.set("format",""))},_updateTextField:function(){if(this._showRawValue()){var e=this.get("value");this._isInt(e)?this._textField.setValueInDom(e):this._textField.setValueInDom(this._formatShort(e))}else this._textField.setValueInDom(this.displayText)},_updateDisplay:function(e,t){this._fevalToMatlab("matlab.ui.control.internal.controller.NumberFieldController.getFormattedDisplayText",[this.get("valueDisplayFormat"),e,t],3,"SPSPRINTF")},_getNodeToApplyFontProperties:function(){return this.focusNode},_getPreferredSizeAttr:function(){return c.calculateInputPreferredSize(this.inputNode,d.SPINNER.OVERALL_HEIGHT_PADDING,d.SPINNER.OVERALL_WIDTH_PADDING)},_handleSprintfReturn:function(e,t){var i=e[0].results[0].trim(),n=e[0].results[1],o=e[0].results[2].trim();t.handleDisplayTextUpdate(n,i,o),t._updateTextField()},_fevalToMatlab:function(e,t,i,n){var r={function:e,arguments:t,nargout:i,dequeMode:"ppe"};o.sendMessage({FEval:r},this,n)},_showRawValue:function(){return this._textField.domNode.classList.contains("mwTextFieldFocused")&&this._textField.get("editable")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2136)],o=i.dj.d(n,(function(e,t){return e([t],{createView:function(){this.inherited(arguments)},setProperties:function(e){this.inherited(arguments)},_CheckedNodes:function(e){this._replaceCheckedNodes(e)},_replaceCheckedNodes:function(e){e=Array.isArray(e)?e:[e],this.widget.dataStore.getCheckNodes().then(function(t){var i,n=t.checkTrueNodes;for(i=0;i<n.length;i++)this.widget.dataStore.updateChecked({id:n[i]},!1);for(i=0;i<e.length;i++)this.widget.dataStore.updateChecked({id:e[i]},!0)}.bind(this))},_appendCheckedData:function(e,t,i){var n=!1;return-1!==e.indexOf(t)&&(n=!0),i.check=n,i},_handleCheckedNodesChanged:function(e){this.widget.dataStore.getCheckNodes().then(function(e){var t={CheckedNodes:e.checkTrueNodes};this.handleUserInteraction("CheckedNodesChanged",t,t)}.bind(this))},_getDataStoreOptions:function(){return{isCheckboxTree:!0,getCheck:function(e){return!(!e||!e.check)&&e.check}}},_mergeTreeNodeMetaDataFields:function(e,t){e=this.inherited(arguments);var i=this.peernode.getProperty("CheckedNodes");if(-1!==Object.keys(e).indexOf("id")){var n=this.fixScalarNodeId(e.id);e=this._appendCheckedData(i,n,e)}return e},_addViewListeners:function(){this.inherited(arguments),this.widget.treeWidget.on("checkChanged",this._handleCheckedNodesChanged.bind(this))},_getTreeNodeData:function(e,t){var i=this.inherited(arguments),n=this.peernode.getProperty("CheckedNodes"),o=e.getProperty("NodeId")[0];return i=this._appendCheckedData(n,o,i)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1501)],o=i.dj.d(n,(function(e){return function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._toggledIds=[],this._allExpanded=!1,e.allExpanded&&(this._allExpanded=!0)}return r(t,[{key:"isExpanded",value:function(e){var t=this._toggledIds.indexOf(e)>=0;return this._allExpanded?!t:t}},{key:"expandAll",value:function(){var e=this._toggledIds.length>0||!this._allExpanded;return this._allExpanded=!0,this._toggledIds=[],{changeOccurred:e,allExpanded:this._allExpanded,updateAll:!0}}},{key:"collapseAll",value:function(){var e=this._toggledIds.length>0||this._allExpanded;return this._allExpanded=!1,this._toggledIds=[],{changeOccurred:e,updateAll:!0}}},{key:"expand",value:function(t){if(!Array.isArray(t))throw new Error("'expand' expected an array in proxyNodeList.");for(var i=!1,n=this._toggledIds.slice(0),o=0;o<t.length;o+=1){var r=e.normalize(t[o]).id,a=n.indexOf(r);this._allExpanded?a>=0&&(n.splice(a,1),i=!0):a<0&&(n.push(r),i=!0)}this._toggledIds=n;var s=t.map((function(e){return e.id}));return{changeOccurred:i,changedIds:i?s:[],updateAll:!1}}},{key:"collapse",value:function(t){if(!Array.isArray(t))throw new Error("'expand' expected an array in proxyNodeList.");for(var i=!1,n=this._toggledIds.slice(0),o=0;o<t.length;o+=1){var r=e.normalize(t[o]).id,a=n.indexOf(r);this._allExpanded?a<0&&(n.push(r),i=!0):a>=0&&(n.splice(a,1),i=!0)}this._toggledIds=n;var s=t.map((function(e){return e.id}));return{changeOccurred:i,changedIds:i?s:[],updateAll:!1}}},{key:"getState",value:function(){return{toggledIds:this._toggledIds,allExpanded:this._allExpanded}}},{key:"setState",value:function(e){this._toggledIds=e.toggledIds,this._allExpanded=e.allExpanded}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2138),i(5765),i(956)],o=i.dj.d(n,(function(e,t,i){return function(e){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var o,r,a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return a._columnMap=t.columnMap||[0],a._columnMap||(a._columnMap=Object.keys(a._data[0])),a.defaultColumnCount=a._columnMap.length,a._paramToIndexMap=(o=a._columnMap,r={},o.forEach((function(e,t){r[e]=t})),r),t.metaDataColumns=t.metaDataColumns||[0],a._metaDataColumns=t.metaDataColumns.map((function(e){return a._paramToIndexMap[e]})),a._metaDataRanges=i.columnArray(a._metaDataColumns),a._isFiltering=!1,a._filterOptions={},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"filterTreeNode",value:function(e,i){this._filterOptions=i;var n=i.displayChildren;this._filter=new t(e,{getId:this.getId,getParentId:this.getParentId,treeRootId:this._treeRootId});for(var o=0;o<this._data.length;o++){var r=this._data[o];if(this._treeNodeIdCache.set(this.getId(r),r),!this._filter.isFiltered(this.getId(r)))this._filter.isFilterMatch(r)&&(this._filter.addAncestorsToFilter(this.getParentId(r)),n&&this._addChildrenToFilter(this.getId(r)))}this._includeFilteredAncestors(),this._filter.clearAncestorIds(),this._isFiltering=!0;var a={changeOccurred:!0,updateAll:!0};return a}},{key:"normalizeFilterCriteria",value:function(e){return e&&(e.field||e.and||e.or)?e:{field:"",value:""}}},{key:"_includeFilteredAncestors",value:function(){for(var e=this._filter.getAncestorIds(),t=0;t<e.length;t++)this._addFilterAncestors(e[t])}},{key:"_addChildrenToFilter",value:function(e){var t=this._parentCache.get(e);if(t)for(var i=[{arr:t,lastIndex:0}];i.length>0;){for(var n=i.length-1,o=i[n].lastIndex,r=i[n].arr,a=o,s=r.length;a<s;a+=1){var l=r[a].node.id;if(this._filter.addtoFilterCache(l),this._parentCache.has(l)){i.push({arr:this._parentCache.get(l),lastIndex:0}),i[n].lastIndex=a+1;break}}a===r.length&&i.pop()}}},{key:"_addFilterAncestors",value:function(e){for(;e!==this._treeRootId&&!this._filter.isFiltered(e);)this._filter.addtoFilterCache(e),e=this.getParentId(this._treeNodeIdCache.get(e))}},{key:"runSort",value:function(e){if(this._sort.sorted)throw new Error("Dynamic sort should not be used after configuration sort");return this._data.sort(this._sort.generateCompareFunctionFromList(e)),this._indexCache._reindex(),this._createParentCache(),{changeOccurred:!0,updateAll:!0}}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cache=Object.create(null)}return r(e,[{key:"set",value:function(e,t){this.canIndex(e)&&(this._cache[e]=t)}},{key:"get",value:function(e){if(this.has(e))return this._cache[e]}},{key:"has",value:function(e){return e in this._cache}},{key:"remove",value:function(e){delete this._cache[e]}},{key:"keys",value:function(){var e=[];for(var t in this._cache)e.push(t);return e}},{key:"canIndex",value:function(e){return"string"==typeof e}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cache=new Map}return r(e,[{key:"set",value:function(e,t){this._cache.set(e,t)}},{key:"get",value:function(e){return this._cache.get(e)}},{key:"has",value:function(e){return this._cache.has(e)}},{key:"remove",value:function(e){this._cache.delete(e)}},{key:"keys",value:function(){return Array.from(this._cache.keys())}},{key:"canIndex",value:function(e){return!0}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(688),i(315)],o=i.dj.d(n,(function(e,t){return function(){function t(i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._searchCriteria=i,this._searchCache=new e,this._getId=n.getId}return r(t,[{key:"_isCompositeCriteria",value:function(e){return e.and||e.or}},{key:"searchNodeForMatches",value:function(e){var t=null;(t=this._isCompositeCriteria(this._searchCriteria)?this._compositeCriteria(e,this._searchCriteria):this.searchMatchedNodes(e,[this._searchCriteria],!0)).length>0&&this._setMatchesInCache(e,t)}},{key:"searchMatchedNodes",value:function(e,t,i){for(var n=[],o=!1,r=0;r<t.length;r++){if(o=!1,this._isBaseCriteria(t[r])){if(null===t[r].value&&null===e[t[r].field])o=!0;else if(this._isValidCriteria(e,t[r].field,t[r].value)){var a=t[r].field,s=t[r].value.toString().toLowerCase(),l=e[a].toString().toLowerCase();if(""===s)""===l&&(n.push(this._createSearchMetadata([{start:0,count:0}],a)),o=!0);else{var c=this._searchNode(a,s,l);c&&(n.push(c),o=!0)}}}else if(this._isCompositeCriteria(t[r])){var d=this._compositeCriteria(e,t[r]);d.length>0&&(n=n.concat(d),o=!0)}if(!o&&!i)return[]}return n}},{key:"_isValidCriteria",value:function(e,t,i){return null!==i&&null!==e[t]&&t in e&&void 0!==e[t]}},{key:"_searchNode",value:function(e,t,i){for(var n=!1,o=this.escapeRegExp(t),r=new RegExp(o,"gi"),a=0,s=[];a=r.exec(i);){var l={};l.start=a.index,l.count=t.length,l.value=t,s.push(l),n=!0}return n?this._createSearchMetadata(s,e):null}},{key:"_isBaseCriteria",value:function(e){return"value"in e}},{key:"_compositeCriteria",value:function(e,t){var i=[];return t.and?i=this.searchMatchedNodes(e,t.and,!1):t.or&&(i=this.searchMatchedNodes(e,t.or,!0)),i}},{key:"_setMatchesInCache",value:function(e,t){this._searchCache.set(this._getId(e),t)}},{key:"isNodeAMatch",value:function(e){return this._searchCache.has(this._getId(e))}},{key:"getMatchesFromCache",value:function(e){return this._searchCache.get(this._getId(e))}},{key:"_createSearchMetadata",value:function(e,t){return{field:t,matches:e}}},{key:"getSearchCriteria",value:function(){return this._searchCriteria}},{key:"escapeRegExp",value:function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(1503)],o=i.dj.d(n,(function(e){return function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"_getSortField",value:function(e){return e.field}},{key:"_validateFieldToSort",value:function(e,t){if(!e.field)throw new Error("Field must be specified for sort in Tree")}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(1503)],o=i.dj.d(n,(function(e){return function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"_getSortField",value:function(e){var t=e.columnIndex;return this.columnMap?this.columnMap[t]:t}},{key:"_validateFieldToSort",value:function(e,t){if(!Number.isInteger(e.columnIndex))throw new Error("Column index must be Integer value specified for sort in TreeTable");if(e.columnIndex<t.columns.start||e.columnIndex>t.columns.end)throw new Error("columnIndex is out of bounds")}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(688)],o=i.dj.d(n,(function(e){return function(){function t(i,n){var o=n.getId;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._indexCache=new e,this._data=i,this._history=[],this.getId=o,this._reindex()}return r(t,[{key:"_reindex",value:function(){this._history=[];for(var e=this._data.length,t=0;t<e;t++){var i=this._data[t];this._indexCache.set(this.getId(i),{index:t,node:i,timestamp:0})}}},{key:"getIndex",value:function(e){return this.hasIndex(e)?(this._history.length>=500&&this._reindex(),this._calcIndex(e)):-1}},{key:"hasIndex",value:function(e){return this._indexCache.has(e)}},{key:"setNode",value:function(e,t,i){var n=i.index,o=i.node;this._updateHistory({op:1,opIdx:t}),this._indexCache.set(e,{index:n,node:o,timestamp:this._history.length})}},{key:"removeNode",value:function(e,t){this._updateHistory({op:-1,opIdx:t}),this._indexCache.remove(e)}},{key:"_updateHistory",value:function(e){this._history.push(e)}},{key:"_calcIndex",value:function(e){for(var t=this._indexCache.get(e),i=t.index,n=t.timestamp,o=this._history.length,r=n;r<o;r++){var a=this._history[r],s=a.op;i>=a.opIdx&&(i+=s)}return i}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(2139)],o=i.dj.d(n,(function(e){return function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"isFilterMatch",value:function(e){var t=!1;return(t=this._checkComposite(this._filterCriteria)?this._compositeCriteria(e,this._filterCriteria):this._filterNode(e,[this._filterCriteria],!1))&&this.addtoFilterCache(this._getId(e)),t}},{key:"_compareFunction",value:function(e,t,i){return(null!==e?i&&-1!==e.toString().toLowerCase().indexOf(t):null===t&&i)||!1}},{key:"_filterNode",value:function(e,t,i){for(var n=!0,o=0;o<t.length;o+=1){if(this._isBaseCriteria(t[o])){var r=t[o].value&&t[o].value.toString().toLowerCase(),a=t[o].field,s=e[a],l=!0;e.hasOwnProperty(a)||(n=!1,l=!1),""===r&&(n=!1,l=!1,""===s&&(n=!0,l=!0)),n=this._compareFunction(s,r,l)}else this._checkComposite(t[o])&&(n=this._compositeCriteria(e,t[o]));if(n===i)return i}return n}},{key:"_isBaseCriteria",value:function(e){return"value"in e}},{key:"_compositeCriteria",value:function(e,t){var i=!1;return t.and?i=this._filterNode(e,t.and,!1):t.or&&(i=this._filterNode(e,t.or,!0)),i}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(954)],o=i.dj.d(n,(function(e,t){return function(){function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._orderedRules=[]}return r(i,[{key:"add",value:function(e){this._orderedRules.push(e)}},{key:"remove",value:function(e){var i=[],n=t.findIndex(this._orderedRules,(function(t){return t.name===e}));n>=0&&(i=this._orderedRules.splice(n,1)[0].rangeList);return i}},{key:"getRulesForRange",value:function(t){for(var i=[],n=0;n<this._orderedRules.length;n+=1){for(var o=this._orderedRules[n],r=o.rangeList,a=!1,s=0;s<r.length&&!(a=e.doesRangeIntersect(r[s],t));s+=1);a&&(o.applyMetaDataFunction(t.rows.start,t.columns.start)&&i.push(o))}return i}}]),i}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(954)],o=i.dj.d(n,(function(e){return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._hierarchicalOrderedRules=[]}return r(t,[{key:"add",value:function(e){this._hierarchicalOrderedRules.push(e)}},{key:"remove",value:function(t){var i=[],n=e.findIndex(this._hierarchicalOrderedRules,(function(e){return e.name===t}));n>=0&&(i=this._hierarchicalOrderedRules.splice(n,1)[0].rangeList);return i}},{key:"getRulesForRange",value:function(e){for(var t=[],i=0;i<this._hierarchicalOrderedRules.length;i+=1){var n=this._hierarchicalOrderedRules[i];n.applyMetaDataFunction(e)&&t.push(n)}var o=t.slice();return 0!==o.length&&(t=this._rearrangeHierarchyRules(o,e)),t}},{key:"_rearrangeHierarchyRules",value:function(e,t){for(var i=[],n=t.dynamic.path,o=n.length-1;o>=0&&e.length>0;o--){for(var r=[],a=0;a<e.length;a++)e[a].dataSelector.value.includes(n[o])&&(r.push(e[a]),e.splice(a,1),a--);r.reverse().forEach((function(e){i.unshift(e)}))}return i}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1504),i(2141)],o=i.dj.d(n,(function(e,t){return{isValidCriteria:function(i){var n=function(t){var i,n=!0;t&&t.compare&&t.compare.dataType&&(n=function(t){var i=!1;t!==e.dataType.STRING&&t!==e.dataType.BOOLEAN&&t!==e.dataType.NUMBER||(i=!0);return i}(t.compare.dataType));return i=t&&t.metadata,i&&n}(i.queryCriteria),o=function(e){var i=!1,n=e.position;n!==t.POSITION.NEXT&&n!==t.POSITION.PREVIOUS&&n!==t.POSITION.FIRST&&n!==t.POSITION.LAST||(i=!0);return i}(i);return n&&o},getValueByType:function(t,i){return t===e.dataType.STRING?String(i).toLowerCase():t===e.dataType.NUMBER?Number(i):t===e.dataType.BOOLEAN?Boolean(i):void 0}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(1503)],o=i.dj.d(n,(function(e){return function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"_getSortField",value:function(e){return e.columnIndex}},{key:"_validateFieldToSort",value:function(e,t){if(!Number.isInteger(e.columnIndex))throw new Error("Column index must be Integer value specified for sort in TreeTable");if(e.columnIndex<t.columns.start||e.columnIndex>t.columns.end)throw new Error("columnIndex is out of bounds")}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2143)],o=i.dj.d(n,(function(e){return function(){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._unfilteredData=i.data,this._data=[],this._filterCriteria=e}return r(t,[{key:"filter",value:function(){var t=this.getFilterCriteria();this._data=[];for(var i=0;i<this._unfilteredData.length;i+=1)e.filterRow(this._unfilteredData[i],t)&&this._data.push(this._unfilteredData[i])}},{key:"getFilteredData",value:function(){return this._data}},{key:"getUnfilteredData",value:function(){return this._unfilteredData}},{key:"setUnfilteredData",value:function(e){this._unfilteredData=e}},{key:"getFilterCriteria",value:function(){return this._filterCriteria}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setHeaders(t),this._allHeadersCache={},this._headerHierarchyMap={},this._createHeadersCache(this._headers)}return r(e,[{key:"setHeaders",value:function(e){this._headers=e||[],this._createHeadersCache(this._headers)}},{key:"getHeaders",value:function(){return this._headers}},{key:"setSpanningHeaders",value:function(e){Object.keys(e).length&&(this._spanningHeaders=e,this._createHeadersCache(Object.values(e)))}},{key:"getSpanningHeaders",value:function(){return this._spanningHeaders}},{key:"updateHeader",value:function(e){var t=e.id,i=e.value;this._allHeadersCache[t].label=i}},{key:"_createHeadersCache",value:function(e){for(var t=0;t<e.length;t+=1)this._allHeadersCache[e[t].columnId]=e[t]}},{key:"getHeaderHierarchy",value:function(e){for(var t={},i=this._headers[e];i&&i.parentId;){var n=this._allHeadersCache[i.parentId];t[n.columnId]=n,i=n}return t}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(212),i(2137),i(1501),i(688),i(239),i(5773),i(5775),i(5776),i(1158),i(2144),i(954)],o=i.dj.d(n,(function(e,t,i,n,o,c,d,u,h,p,f){var g=function(t){var i=new e;setTimeout((function(){return t(i.resolve,i.reject)}),0),this.then=i.promise.then},m=function(e){if(!e)return e;var t={};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.id=t.id,e.level=t.level,e.isExpanded=t.isExpanded,e.isExpandable=t.isExpandable,e.groupRow=t.groupRow,e.highlight=t.highlight,t.hasOwnProperty("check")&&(e.check=t.check),e.hasOwnProperty("path")||Object.defineProperty(e,"path",{get:function(){return t.path}})}(t,e.node),{index:e.index,node:t}},_={ARRAY:c,OBJECT:d};return function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n._type=i.type,n._searching=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"addMetaDataRule",value:function(e,i){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addMetaDataRule",this).call(this,e,i)}},{key:"removeMetaDataRule",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeMetaDataRule",this).call(this,e)}},{key:"createMetaDataRule",value:function(e,t){return h.create(e,t,this._type)}},{key:"replaceAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0===t.isCheckboxTree&&(this.updateChecked=this._updateChecked,this.getCheckNodes=this._getCheckNodes,this._isCheckboxTree=!0);var i=_[t.rowDataType];if(!i)throw new Error("rowDataType is invalid - valid options:"+Object.keys(_).join(", "));t=Object.assign(t,{type:this._type});var n=Object.assign({},t);t.setId&&(this.setId=t.setId),this._rowDataType=t.rowDataType,n.isExpanded=t.isExpanded||this._isExpanded.bind(this),n.createTreeNode=t.createTreeNode||this._createTreeNode.bind(this),n.isCheckboxTree=this._isCheckboxTree,n.getCheck=t.getCheck,n.setCheck=t.setCheck,this._dataSave={},this._internalDataStore=new i(e,n),this._getParentId=this._internalDataStore.getParentId.bind(this._internalDataStore),this._flattenedTree=[],this._flatten=this._internalDataStore.flatten.bind(this._internalDataStore),this._groupOptions||this._filterCriteria?(this._groupOptions&&this.groupBy(this._groupOptions),this._filterCriteria&&this.filter(this._filterCriteria)):(this._flattenedTree=this._flatten(),this._updateDataSize(),this._dataChanged([o.range().setRows(0,1/0).setColumns(0,1/0)]))}},{key:"_calculateDataSize",value:function(){return o.range().setRows(0,this._flattenedTree.length-1).setColumns(0,this._internalDataStore.getNumColumns()-1)}},{key:"groupBy",value:function(e){if(!this.setId)throw new Error("Please add setId function in DataStore options in order to use groupBy API");if(this.isCheckboxTree)throw new Error("groupBy is incompatible with checkbox treetable feature");this._groupOptions=e||[],this._group=new u(e,{getCell:this._internalDataStore.getCell.bind(this._internalDataStore),setCell:this._internalDataStore.setCell.bind(this._internalDataStore),setParentId:this._internalDataStore.setParentId.bind(this._internalDataStore),getParentId:this._internalDataStore.getParentId.bind(this._internalDataStore),getId:this._internalDataStore.getId.bind(this._internalDataStore),setId:this.setId.bind(this),flatten:this._internalDataStore.flatten.bind(this._internalDataStore),rowDataType:this._rowDataType,columnNum:this._internalDataStore.getNumColumns()});var t=this._group.getGroupByFn();this._internalDataStore.setGrouping(t),this._flattenedTree=this._internalDataStore.flatten.bind(this._internalDataStore)(),this._updateDataSize(),this._dataChanged([o.range().setRows(0,1/0).setColumns(0,1/0)])}},{key:"clearGroupBy",value:function(){this._internalDataStore.clearGrouping(),this._groupOptions=null,this._flattenedTree=this._internalDataStore.flatten.bind(this._internalDataStore)(),this._updateDataSize(),this._dataChanged([o.range().setRows(0,1/0).setColumns(0,1/0)])}},{key:"getLocalRowMetaData",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getLocalRowMetaData",this).call(this,e)}},{key:"getLocalColumnMetaData",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getLocalColumnMetaData",this).call(this,e)}},{key:"getLocalCellData",value:function(e,t){if(this._flattenedTree[e])return this._internalDataStore.getCell(this._flattenedTree[e].data,t)}},{key:"getLocalCellMetaData",value:function(e,i){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getLocalCellMetaData",this).call(this,e,i)}},{key:"getData",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Array.isArray(i)){var o=i;return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getData",this).call(this,o)}return new g((function(t,o){var r=i.proxyNodes;if(r)if(Array.isArray(r)){for(var a=r.map((function(e){return e.id})),s=e._internalDataStore.getNodesByIds(a),l=new n,c=0;c<a.length;c+=1){var d=a[c];if(l.has(d))l.get(d).push(c);else l.set(d,[c])}for(var u=a.map((function(){return null})),h=function(t){var i=s[t];if(i){var n=e._internalDataStore.getId(i);if(l.has(n))l.get(n).forEach((function(e){u[e]=i}));else o(Error("Node id "+n+" found in results but was not in requested"))}},p=0;p<s.length;p+=1)h(p);t(u)}else o(new Error("The proxyNodes property should be an array"));else o(new Error("Expected an object with a property of proxyNodes"))}))}},{key:"expandTo",value:function(){for(var e,i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return(e=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"expandTo",this)).call.apply(e,[this].concat(n)).then((function(e){return m(e)}))}},{key:"getRowIds",value:function(e){var t=this;return new g((function(i,n){var r=[];e.forEach((function(e,i){if(o.isRangeInside(t.dataSize,e))for(var a=e.rows.start,s=e.rows.end,l=a;l<=s;l+=1){var c=t._flattenedTree[l];r.push(c.id)}else n(new Error("Range exceeds data size"))})),i(r)}))}},{key:"getParentNode",value:function(){for(var e,i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return(e=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getParentNode",this)).call.apply(e,[this].concat(n)).then((function(e){return m(e)}))}},{key:"getNode",value:function(){for(var e,i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];return(e=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getNode",this)).call.apply(e,[this].concat(n)).then((function(e){return m(e)}))}},{key:"getChildNodes",value:function(e){var t=this;return e=i.normalize(e),new g((function(i){var n=[],o=t._internalDataStore.getChildIndiciesByParent(e.id);new g((function(e){0===o.length&&e(n),o.forEach((function(i){var r=t._internalDataStore.getId(i.node);t.getNode({id:r}).then((function(r){if(!r){var a=t._internalDataStore._createTreeNode(i.node,null);r={index:null,node:{groupRow:a.groupRow,id:a.id,isExpandable:a.isExpandable,isExpanded:a.isExpanded,level:a.level,check:a.check}}}n.push(r),n.length===o.length&&e(n)}))}))})).then((function(e){e.length>0?i(e):i(null)}))}))}},{key:"add",value:function(e,i,n){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,i,n)}},{key:"remove",value:function(e,i){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this,{id:null},e,i)}},{key:"move",value:function(e,i,n){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"move",this).call(this,{id:null},e,i,n)}},{key:"update",value:function(e,t){e=i.normalize(e);var n=this._internalDataStore.update(null,e.id,t);n.changedIds=this._getCheckBoxTreeChangedIds(n),this._updateTreeData(n)}},{key:"_emitDataChanged",value:function(e){this._on.emit("dataChanged",{rangeList:e})}},{key:"filter",value:function(e){return this._filterCriteria=e,a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"filter",this).call(this,e)}},{key:"clearFilter",value:function(){return this._filterCriteria=null,a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clearFilter",this).call(this)}},{key:"search",value:function(e){if(this._search=new p(e,this.createMetaDataRule,{type:this._type}),this._search.isCriteriaValid()){var t=this._search.createRule();this._addSearchResults(t),this._searching=!0}}},{key:"clearSearch",value:function(){this._searching&&(this._removeSearchResults(),this._searching=!1)}},{key:"sort",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"sort",this).call(this,e)}},{key:"registerSortType",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"registerSortType",this).call(this,e)}},{key:"_emitPagedColumnMetaDataChanged",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_emitPagedColumnMetaDataChanged",this).call(this,e)}},{key:"_emitPagedRowMetaDataChanged",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_emitPagedRowMetaDataChanged",this).call(this,e)}},{key:"_addSearchResults",value:function(e){this._metaDataRules.add("$Search",e)}},{key:"_removeSearchResults",value:function(){this._metaDataRules.removeBuiltIn("$Search")}},{key:"isCheckboxTree",get:function(){return!!this._isCheckboxTree&&!0===this._isCheckboxTree}}]),t}(t)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(2145),i(956),i(315)],o=i.dj.d(n,(function(e,t,i){return function(e){function i(e,n){var o;a(this,i);for(var r=arguments.length,l=Array(r>2?r-2:0),c=2;c<r;c++)l[c-2]=arguments[c];var d=s(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this,e,n].concat(l)));return d.defaultColumnCount=n.defaultColumnCount,0!==d.defaultColumnCount&&!(d.defaultColumnCount>0)&&e.length>0&&(d.defaultColumnCount=e[0].length||0),n.metaDataColumns=n.metaDataColumns||[],d._metaDataColumns=n.metaDataColumns.slice(0),d._metaDataRanges=t.columnArray(d._metaDataColumns),d}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"getNumColumns",value:function(){return this._data.length>0&&this._data[0].length||this.defaultColumnCount}},{key:"getCell",value:function(e,t){return e[t]}},{key:"setCell",value:function(e,t,i){e[t]=i}},{key:"getMetaDataRanges",value:function(){return this._metaDataRanges}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2139)],o=i.dj.d(n,(function(e){return function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n._columnMap=i.columnMap,n._treeNodeIdCache=i.treeNodeIdCache,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"_getValueToFilter",value:function(e,t){for(var i=e,n=t.split("."),o=0;o<n.length;o++)i=i[n[o]];return i}},{key:"_filterRow",value:function(e,t,i){for(var n=!0,o=0;o<t.length;o+=1){var r=this._columnMap?this._columnMap[t[o].columnIndex]:t[o].columnIndex,a=t[o].value.toString().toLowerCase(),s=t[o].field,l=e[r],c=s?this._getValueToFilter(l,s):l,d=!0;if(null!=c&&e.hasOwnProperty(r)||(n=!1,d=!1),""===a&&(n=!1,d=!1,""===c&&(n=!0)),(n=this._compareFunction(c,a,d))===i)return n&&this.addtoFilterCache(this._getId(e)),i}return n&&this.addtoFilterCache(this._getId(e)),n}},{key:"_compareFunction",value:function(e,t,i){return i&&-1!==e.toString().toLowerCase().indexOf(t)}},{key:"includeFilteredAncestors",value:function(){for(var e=this.getAncestorIds(),t=0;t<e.length;t++)this._recursivelyAddFilterAncestors(e[t])}},{key:"_recursivelyAddFilterAncestors",value:function(e){for(;e!==this._treeRootId&&!this.isFiltered(e);){this.addtoFilterCache(e);var t=this._treeNodeIdCache.get(e),i=void 0;i=t?this._getParentId(t):this._getParentId(null,e),this._recursivelyAddFilterAncestors(i)}}},{key:"isFilterMatch",value:function(e){return this._checkComposite(this._filterCriteria)?this._compositeCriteria(e):this._filterRow(e,[this._filterCriteria],!1)}},{key:"addAncestorsToFilter",value:function(e){(e=this._getParentId(e))!==this._treeRootId&&(this.isFiltered(e)||this._ancestorIds.push(e))}},{key:"_compositeCriteria",value:function(e){var t=!1;return this._filterCriteria.and?t=this._filterRow(e,this._filterCriteria.and,!1):this._filterCriteria.or&&(t=this._filterRow(e,this._filterCriteria.or,!0)),t}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(2145),i(956),i(315)],o=i.dj.d(n,(function(e,t,i){var n=function(e){var t={};return e.forEach((function(e,i){t[e]=i})),t};return function(e){function i(e,o){var r;a(this,i);for(var l=arguments.length,c=Array(l>2?l-2:0),d=2;d<l;d++)c[d-2]=arguments[d];var u=s(this,(r=i.__proto__||Object.getPrototypeOf(i)).call.apply(r,[this,e,o].concat(c)));if(u._columnMap=o.columnMap,u._columnMap||(u._columnMap=Object.keys(e[0])),!u._columnMap)throw new Error("options.columnMap or at least onerow of data must be specified.");return u.defaultColumnCount=u._columnMap.length,u._paramToIndexMap=n(u._columnMap),o.metaDataColumns=o.metaDataColumns||[],u._metaDataColumns=o.metaDataColumns.map((function(e){return u._paramToIndexMap[e]})),u._metaDataRanges=t.columnArray(u._metaDataColumns),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"getNumColumns",value:function(){return this._columnMap.length}},{key:"getCell",value:function(e,t){return e[this._columnMap[t]]}},{key:"setCell",value:function(e,t,i){e[this._columnMap[t]]=i}},{key:"getMetaDataRanges",value:function(){return this._metaDataRanges}},{key:"update",value:function(e,t,n){var o={},r=!0;for(var a in n){if(isNaN(a)){r=!1;break}var s=this._columnMap[a];if(void 0===s){r=!1;break}o[s]=n[a]}return r&&(n=o),function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0}(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"update",this).call(this,e,t,n)}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._groupOptions=t,this._getCell=i.getCell,this._setCell=i.setCell,this._setParentId=i.setParentId,this._getParentId=i.getParentId,this._getId=i.getId,this._setId=i.setId,this._rowDataType=i.rowDataType,this._flatten=i.flatten,this._columnNum=i.columnNum,this._treeRootId=null}return r(e,[{key:"_flattenOriginalDataForGrouping",value:function(){var e=this,t=this._flatten(!0);return t.forEach((function(t){var i=e._getParentId(t.data);null==i&&(t.isRoot=!0)})),t}},{key:"getGroupByFn",value:function(){var e=this;return function(){return e._flattenedGroupingRows=e._flattenOriginalDataForGrouping(),e._groupingMaps=[],e._parentGroupMapping={},e._getParentIdForGrouping=function(t,i){if(i)return e._parentGroupMapping[i]||e._treeRootId;var n=e._parentGroupMapping[e._getId(t)];return n||e._getParentId(t)},e._updateGroupingView(e._groupOptions),e.getGroupingInfoAndData()}}},{key:"_updateGroupingView",value:function(e){for(var t=0;t<e.length;t++){this._groupingMaps[t]={};var i=e[t];this._createGroupRowsAndGroupingMaps(i,this._groupingMaps[t],t)}}},{key:"getGroupingInfoAndData",value:function(){var e=this,t={};this._groupingMaps.forEach((function(i,n){Object.keys(i).forEach((function(n){t[n]={summary:{count:i[n].summary.count},groupByColIndex:i[n].groupByColIndex},e._parentGroupMapping[n]=i[n].parent}))}));var i=this._flattenedGroupingRows.map((function(e){return e.data})),n=this._getParentIdForGrouping;return{groupingData:i,groupRowMeta:t,getParentIdForGrouping:n}}},{key:"_addGroupRow",value:function(e,t,i,n){var o={};o.id=t,o.groupRow={summary:{},groupByColIndex:e[t].groupByColIndex},o.isExpandable=!0,o.isExpanded=!0,o.level=i,"OBJECT"===this._rowDataType?o.data={}:"ARRAY"===this._rowDataType&&(o.data=[]),this._setId(o.data,t),this._setParentId(o.data,0===i?null:e[t].parent),this._setLabelOnGroupRow(o.data,e[t].label),this._flattenedGroupingRows.splice(n,0,o)}},{key:"_setLabelOnGroupRow",value:function(e,t){for(var i=0;i<this._columnNum;i++)void 0===this._getCell(e,i)&&this._setCell(e,i,t)}},{key:"_createGroupRowsAndGroupingMaps",value:function(e,t,i){for(var n=this._getGroupingLabelFn(e),o=0;o<this._flattenedGroupingRows.length;o++){var r=this._flattenedGroupingRows[o],a=r.data,s=void 0;if(!r.groupRow){if(r.isRoot){var l=n(a);t[s=l?"group_level"+i+"_"+l:"group_level"+i+"_empty_group"]?t[s].summary.count+=1:(t[s]={},t[s].label=l,t[s].groupByColIndex=e.columnIndex,t[s].summary={},t[s].summary.count=1,i>0&&(t[s].parent=this._getParentIdForGrouping(a)),this._addGroupRow(t,s,i,o),o+=1)}this._updateRowInGroup(r,s)}}}},{key:"_updateRowInGroup",value:function(e,t){e.level+=1,t&&(e.parentGroupId=t,this._parentGroupMapping[e.id]=t)}},{key:"_getGroupingLabelFn",value:function(e){var t=this,i=e.columnIndex,n=e.field;if(n){var o=n.split(".");return function(e){for(var n=t._getCell(e,i),r=0;r<o.length;r+=1)n&&(n=n[o[r]]);return n}}return function(e){return t._getCell(e,i)}}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(210),i(211),i(230),i(531),i(374),i(358),i(289),i(215)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([d,s,l,c],{backgroundColor:"rgb(255, 255, 255)",baseClass:"vc-tree",disabled:!1,constructor:function(e,t){this.multiselect=null,this.editable=null,this.horizontalClipping=null;var i=e.plugins;void 0===i&&("on"===e.options.Multiselect||!0===e.options.Multiselect?(this.multiselect=!0,i=[a.PLUGINS.ContextMenu,a.PLUGINS.MultipleNodeSelection]):(i=[a.PLUGINS.ContextMenu,a.PLUGINS.Focus,a.PLUGINS.SingleNodeSelection],this.multiselect=!1),delete e.options.Multiselect),e.options.plugins=i,e.options.editor=e.editor,"on"===e.options.Editable||!0===e.options.Editable?(e.options.editor={type:a.EDITORS.DefaultEditor},delete e.options.Editable,this.editable=!0):this.editable=!1,e.options.editor&&(e.options.editor.config={acceptEmptyLabel:!0}),e.options.HorizontalClipping?(e.options.textTruncation=e.options.HorizontalClipping,delete e.options.HorizontalClipping,this.horizontalClipping=e.options.textTruncation):this.horizontalClipping="none",this.treeWidget=new a(e.dataStore,e.options)},postCreate:function(){this.inherited(arguments),n.add(this.domNode,this.baseClass)},buildRendering:function(){this.domNode=this.treeWidget.domNode,this.inherited(arguments),this.backgroundColorNode=this.domNode,this.containerNode=this.domNode},startup:function(){this.inherited(arguments),this.treeWidget.startup()},getSelection:function(){return this.treeWidget.getSelection()},setSelection:function(e){this.treeWidget.setSelection(e)},scrollTo:function(e){var t;t="top"===e?a.FIRST_NODE:"bottom"===e?a.LAST_NODE:{id:e},this.treeWidget.scrollTo(t)},handleSizeUpdate:function(){this.treeWidget.resize()},_setDisabledAttr:function(e){e?n.add(this.domNode,"vc-treeDisabled"):n.remove(this.domNode,"vc-treeDisabled"),this._set("disabled",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(244)],o=i.dj.d(n,(function(e){"use strict";return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._controllers={},this._adaptors={}}return r(t,[{key:"registerEventListeners",value:function(e,t){var i=this,n=Object.keys(e);t?n.forEach((function(t){var n=i._controllers[t]||[];n.push(e[t]),i._controllers[t]=n})):n.forEach((function(t){var n=i._adaptors[t]||[];n.push(e[t]),i._adaptors[t]=n}))}},{key:"_handleAdaptorEvents",value:function(t,i){var n=this._adaptors[t],o=[];return Array.isArray(n)&&n.forEach((function(e){var t=e(i);t&&t.then&&o.push(t)})),e(o)}},{key:"handleEvent",value:function(t,i,n){var o=this,r=this._controllers[t],a=[];Array.isArray(r)&&r.forEach((function(e){var t=e(i);t&&a.push(t)})),a.length>0?e(a).then((function(e){o._handleAdaptorEvents(t,i).then((function(t){var i=e.concat(t);n(i)}))})):this._handleAdaptorEvents(t,i).then((function(e){return n(e)}))}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({MOUSE_LEFT_BUTTON:0,MOUSE_MIDDLE_BUTTON:1,MOUSE_RIGHT_BUTTON:2})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({rightClick:"treeContextMenuSelection",contextMenuClick:"",keyDownshiftF10:"treeContextMenuShiftF10",dblClick:"treeNodeEditMouseEvent",keyDownNavigation:"treeNavigation",keyDownMetaNavigation:"",keyDownRangeNavigation:"treeNavigation",keyDownAlphaNum:"treeNodeEditKeyPress",keyDownF2:"treeNodeEditKeyPress",keyDownEnter:"",keyDown:"treeKeyPress",nodeMouseDown:"treeNodeMouseDown",treeMouseDown:"treeMouseDown",nodeMouseDownFocused:"",deleteAction:"deleteActionEvent"})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(2150),i(250)],o=i.dj.d(n,(function(e,t){"use strict";return function(i){function n(){return a(this,n),s(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),r(n,[{key:"componentDidUpdate",value:function(){this.props.node.value.check?this.tristateCB.checked=this.props.node.value.check:this.tristateCB.checked=!1,this._updateStateOnTriState(this.props.metadata),this.tristateCB.tabIndex=-1}},{key:"componentDidMount",value:function(){var t=this;this.tristateCB=e({checked:this.props.node.value.check||!1}),this._updateStateOnTriState(this.props.metadata),this.tristateCB["aria-label"]=this.props.node.value.label,this.changeListener=this.tristateCB.on("change",(function(e){e.node=t.props.node,t.props.checkedHandler(e)})),this.checkboxContainer.appendChild(this.tristateCB),this.tristateCB.tabIndex=-1}},{key:"componentWillUnmount",value:function(){this.changeListener.remove()}},{key:"_updateStateOnTriState",value:function(e){if(e){var t=!!(e.readonly||e.disabled||e.noMouseInteraction);this.tristateCB.disabled=t}}},{key:"_mouseDownHandler",value:function(e){e.preventDefault()}},{key:"_doubleClickHandler",value:function(e){this.tristateCB.disabled||(e.preventDefault(),e.stopPropagation())}},{key:"render",value:function(){var e=this;return t.createElement("span",{className:"mw-checkbox-tree",onMouseDown:this._mouseDownHandler,onDoubleClick:this._doubleClickHandler.bind(this),ref:function(t){return e.checkboxContainer=t}})}}]),n}(t.Component)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({SPACE:32,ENTER:13})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({TRUE:"true",FALSE:"false",MIXED:"mixed"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1824)],o=i.dj.d(n,(function(e){"use strict";return()=>e`
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 14 14" xml:space="preserve">
+ <g class="mw-tristate-checkbox-background"><rect width="14" height="14"/></g>
+ <g class="mw-tristate-checkbox-default"><path d="M0,0v14h14V0H0z M13,13H1V1h12V13z"/></g>
+ <g class="mw-tristate-checkbox-hover"><path d="M0,0v14h14V0H0z M13,13H1V1h12V13z"/></g>
+ <g class="mw-tristate-checkbox-focus"><path d="M0,0v14h14V0H0z M13,13H1V1h12V13z"/></g>
+ <g class="mw-tristate-checkbox-indeterminate"><rect x="3" y="3" width="8" height="8"/></g>
+ <g class="mw-tristate-checkbox-checked"><polygon points="12,4 11,3 5,9 3,7 2,8 5,11"/></g>
+ </svg>`}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(5786)],o=i.dj.d(n,(function(e,t){return function(e){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t.adaptor=e,t._listeners=[],t._listeners.push(t.adaptor.on("checkboxStatusChangeRequested",(function(e){return t._handleCheckboxState(e)}))),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"_handleCheckboxState",value:function(e){var t=e.newValue;!t&&e.isSpaceKeyPressed&&(t="mixed"===e.node.check||!(!0===e.node.check)),this.adaptor.updateCheckboxState(e.node,t),this.emit("checkChanged",{nodeId:e.node.id,oldValue:e.node.check,newValue:t})}},{key:"exposedAPI",value:function(){return{}}},{key:"destroy",value:function(){this._listeners.forEach((function(e){return e.remove()}))}},{key:"emits",get:function(){return["checkChanged"]}}],[{key:"adaptor",get:function(){return t}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(532)],o=i.dj.d(n,(function(e,t){return function(e){function i(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));o._view=t,o._viewModel=e,o._dataStore=n;var r={checkBoxClicked:function(e){return o._checkboxClicked(e)},keyUpToggleCheckedState:function(e){return o._handleKeyChange(e)}};return o._view.registerEventCallback(r,!0),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"_emitCheckboxStateChanged",value:function(e){this.emit("checkboxStatusChangeRequested",{node:e.node,newValue:e.newValue,isSpaceKeyPressed:e.isSpaceKeyPressed})}},{key:"updateCheckboxState",value:function(e,t){this._dataStore.updateChecked({id:e.id},t)}},{key:"_checkboxClicked",value:function(e){var t=this._viewModel.getStateByKey("treeContainerNode");(t=t?t.value:null)&&t.focus(),this._emitCheckboxStateChanged({node:e.node.value,newValue:e.detail.newValue})}},{key:"_isNodeEditable",value:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,t=e>=-1;if(!t)return!1;var i=this._dataStore.getLocalRowMetaData?this._dataStore.getLocalRowMetaData(e):{};return i.readonly&&(t=!1),t}},{key:"_handleKeyChange",value:function(e){var i=this,n=e.ctrlKey||e.metaKey;if(e.keyCode===t.SPACE&&!n){var o=this._viewModel.getStateByKey("keyboardActive");if(o=o?o.value:null)return this._dataStore.getNode(o).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i._isNodeEditable(e.node,e.index)&&i._emitCheckboxStateChanged({node:e.node,isSpaceKeyPressed:!0})}))}}},{key:"destroy",value:function(){}}],[{key:"toString",value:function(){return"CheckboxTreeAdaptor"}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(5788)],o=i.dj.d(n,(function(e,t){return function(e){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t.adaptor=e,t._listeners=[],t._listeners.push(t.adaptor.on("treeContextMenu",(function(e){return t._handleRightClick(e)}))),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"exposedAPI",value:function(){return{}}},{key:"_handleRightClick",value:function(e){if(e.node){var t=e.isNodeAlreadySelected?e.selectedNodes:[e.node];this.adaptor.setContextMenuFocus(t)}this.emit("contextMenu",{top:e.top,left:e.left,target:e.emitTarget})}},{key:"destroy",value:function(){this._listeners.forEach((function(e){return e.remove()}))}},{key:"emits",get:function(){return["contextMenu"]}}],[{key:"adaptor",get:function(){return t}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(2152),i(336)],o=i.dj.d(n,(function(e,t){return function(t){function i(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};a(this,i);var r=s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));r._view=t,r._viewState=e,r._treeOptions=o;var l={treeContextMenu:function(e){return r._processAndEmitContextMenuClickEvt(e)},treeContextMenuShiftF10:function(e){return r._scrollToFocusedNode(e)}};return r._view.registerEventCallback(l,!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,t),r(i,[{key:"_scrollToFocusedNode",value:function(e){var t=this,i={},n=this._viewState.getStateByKey("focused"),o=e.focusedDomNodePosition,r=e.treeContainerPosition,a=!1,s=function(){var e=t._view._rootDom.querySelector(".treeNode.focused");i.top=e.getBoundingClientRect().height/2+e.getBoundingClientRect().top,i.left=t._view._rootDom.querySelector(".treeNode.focused .treeNodeText").getBoundingClientRect().left,t._emitShiftF10Evt(n,i,r)};o&&(a=r.top<o.top&&r.bottom>o.bottom),n?a?s():this._view.scrollTo({id:n.value.id},s):(i.top=r.top,i.left=r.left,this._emitShiftF10Evt(null,i,r))}},{key:"_emitShiftF10Evt",value:function(e,t,i){(t.left<i.left||t.left>i.right)&&(t.left=i.left);var n={};e?(n={type:"TREENODE",nodeId:e.value.id},t.node=e.value):n={type:"TREE"},t.emitTarget=n,this._processAndEmitContextMenuClickEvt(t)}},{key:"_processAndEmitContextMenuClickEvt",value:function(t){var i=!1,n={};if(this._treeOptions.editor&&this._treeOptions.editor.type&&(i=!0),n.type="TREE",t.node){var o=e.isNodeAlreadySelected(this._viewState,t.node);t.isNodeAlreadySelected=o,t.isNodeAlreadySelected&&(t.selectedNodes=e.getSelectedNodes(this._viewState)),n.nodeId=t.node.id,n.type="TREENODE";var r=t.metadata||{};i=i&&!r.readonly}t.emitTarget||(t.emitTarget=n),t.emitTarget.isEditable=i,this.emit("treeContextMenu",t)}},{key:"setContextMenuFocus",value:function(t){e.setContextMenuFocus(this._viewState,t)}}],[{key:"toString",value:function(){return"ContextMenuAdaptor"}}]),i}(t)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";var e=Object.freeze({V_TRIGGER_AUTOSCROLL:32,H_TRIGGER_AUTOSCROLL:32,V_AUTOSCROLL_VALUE:16,H_AUTOSCROLL_VALUE:16}),t=[10,32],i=[0,32];function n(e){return(i[1]-e)*((t[1]-t[0])/(i[1]-i[0]))+t[0]}return{scroll:function(t,i,o,r){var a=!r&&i.scrollWidth>i.clientWidth,s=i.scrollHeight>i.clientHeight;if(a||s){var l=function(e,t){var i=e.getBoundingClientRect(),n=i.left,o=i.top;return{mouseLeftPosition:n+t.xOffset,mouseTopPosition:o+t.yOffset}}(t,o),c=l.mouseLeftPosition,d=function(e,t,i){var n=i.getBoundingClientRect(),o=n.left,r=n.top;return{distanceFromContainerBottom:n.bottom-e,distanceFromContainerTop:e-r,distanceFromContainerRight:n.right-t,distanceFromContainerLeft:t-o}}(l.mouseTopPosition,c,i),u=d.distanceFromContainerBottom,h=d.distanceFromContainerTop,p=d.distanceFromContainerRight,f=d.distanceFromContainerLeft;s&&(u<e.V_TRIGGER_AUTOSCROLL?i.scrollTop=i.scrollTop+n(u):h<e.V_TRIGGER_AUTOSCROLL&&(i.scrollTop=i.scrollTop-n(h))),a&&(p<e.H_TRIGGER_AUTOSCROLL?i.scrollLeft=i.scrollLeft+n(p):f<e.H_TRIGGER_AUTOSCROLL&&(i.scrollLeft=i.scrollLeft-n(f)))}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(838),i(2157),i(957)],o=i.dj.d(n,(function(e,t,i){var n=document.createElement("span");n.classList.add(e.REORDERING);var o={insertionLine:n};function r(e,t){var n=e.domNode,o=e.isValidReorder,r=n.nextElementSibling;n.nextSibling||function(e){var t=document.createElement("div");t.classList.add("dummyDiv"),e.append(t);var i=parseFloat(window.getComputedStyle(e).width);t.style.width=i+"px",t.style.height="1px",t.style.position="absolute"}(n),function(e){var t=e.domNode,n=e.dragItem.getDataByType(i.TYPE_TREENODE),o=h(t),r=t.nextElementSibling,a=h(r),s=t.classList.contains("selected"),l=r&&r.classList.contains("selected"),c=n.length>1,d=s||a>=o&&l;if(t.classList.contains("mw-tree-scroll-component"))return!0;if(d&&!c)return!0}(e)||(n.append(t.insertionLine),s(n)?l(r,t):l(n,t),o?d(t):c(t))}function a(e,t){var n=e.domNode,o=e.isValidReorder;(function(e){var t=e.domNode,n=e.dragItem,o=h(t),r=n.getDataByType(i.TYPE_TREENODE),a=t.previousElementSibling,s=h(a),l=t.classList.contains("selected"),c=r.length>1,d=a&&a.classList.contains("selected"),u=l||s<=o&&d;if(t.classList.contains("mw-tree-scroll-component"))return!0;if(u&&!c)return!0})(e)||(n.prepend(t.insertionLine),l(n,t),o?d(t):c(t))}function s(e){var t=e.nextElementSibling;return parseInt(h(t))===parseInt(h(e))+1}function l(e,t){var i=18*(parseInt(e.getAttribute("data-level-index"))+1),n=parseFloat(window.getComputedStyle(e).width);t.insertionLine.style.width=n-(i+13-2)+"px",t.insertionLine.style.marginLeft=i+"px"}function c(t){t.insertionLine.classList.remove(e.VALID_REORDERING),t.insertionLine.classList.add(e.INVALID_REORDERING)}function d(t){t.insertionLine.classList.remove(e.INVALID_REORDERING),t.insertionLine.classList.add(e.VALID_REORDERING)}function u(e,t,n){return e&&t===i.TYPE_TREENODE?n.getCurrentViewPortData()(parseInt(e.getAttribute("data-row-index")))(0).value:{id:null}}function h(e){if(e)return parseInt(e.getAttribute("data-level-index"))}function p(e,t,i){var n={place:"before"};n.node={id:t.id};var o=t.path;if(o&&o.length>1){var r={id:o[o.length-2]};i.moveTreeNodes(e,r,n)}else{i.moveTreeNodes(e,{id:null},n)}}return{handleReorderingLine:function(e){var i=e.position.row;i===t.INSERT_BELOW?r(e,o):i===t.INSERT_ABOVE&&a(e,o)},handleReorderNode:function(e,n){var o=e.domNode,r=e.dragItem,a=e.type,l=e.position,c=u(o,a,n),d=r.getDataByType(i.TYPE_TREENODE);if(l.row===t.INSERT_BELOW){if(s(o))return void p(d,c=u(o.nextElementSibling,a,n),n);!function(e,t,i){var n={place:"after"};n.node={id:t.id};var o=t.path;if(o&&o.length>1){var r={id:o[o.length-2]};i.moveTreeNodes(e,r,n)}else{i.moveTreeNodes(e,{id:null},n)}}(d,c,n)}else l.row===t.INSERT_ABOVE&&p(d,c,n)},removeInsertionLine:function(t){var i=t.querySelector("."+e.REORDERING),n=t.querySelector(".dummyDiv");i&&t.removeChild(i),n&&t.removeChild(n)}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(5792)],o=i.dj.d(n,(function(e,t){return function(e){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t.adaptor=e,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"filter",value:function(e,t){this.adaptor.filter(e,t)}},{key:"clearFilter",value:function(){this.adaptor.clearFilter()}},{key:"exposedAPI",value:function(){var e=this;return{filter:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{displayChildren:!1};return e.filter(t,i)},clearFilter:function(){return e.clearFilter()}}}},{key:"destroy",value:function(){}},{key:"emits",get:function(){return[]}}],[{key:"adaptor",get:function(){return t}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336)],o=i.dj.d(n,(function(e){return function(e){function t(e,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o._dataStore=n,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"filter",value:function(e,t){this._dataStore.filter(e,t),this._dataStore.expandAll(),this._dataStore.search(e)}},{key:"clearFilter",value:function(e){this._dataStore.clearFilter(),this._dataStore.clearSearch()}}],[{key:"toString",value:function(){return"FilterAdaptor"}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(210),i(2158)],o=i.dj.d(n,(function(e,t){return function(t){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return t.adaptor=e,t.adaptor.on("containerMount",(function(){return t._containerAddDesignTimeClass()})),t.adaptor.on("containerUpdate",(function(){return t._containerAddDesignTimeClass()})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,t),r(i,[{key:"exposedAPI",value:function(){return{setFocus:this.setFocus.bind(this),getFocus:this.getFocus.bind(this),isNodeInViewPort:this.isNodeInViewPort.bind(this)}}},{key:"setFocus",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.adaptor.setFocusedState(e,!0),this.adaptor.setKeyboardActiveState(e),t&&this.adaptor.getTreeContainerNode().focus()}},{key:"getFocus",value:function(){return this.adaptor.getFocusedState()}},{key:"isNodeInViewPort",value:function(e){for(var t=this.adaptor.getViewPortInfo(),i=t.currentViewPort.rangeList[0].rows,n=i.start,o=i.end,r=t.currentViewPortData,a=n;a<=o;a++)if(r(a)(0).value&&r(a)(0).value.id===e)return!0;return!1}},{key:"_containerAddDesignTimeClass",value:function(){var t=this.adaptor.getTreeContainerNode();e.add(t,"mw-tree-design-time")}}]),i}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2152),i(336)],o=i.dj.d(n,(function(e,t){return function(t){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));n.viewState=e,n.view=t;var o={treeNodeMouseDown:function(e){return n._processAndEmitClickEvt(e)},treeContextMenuSelection:function(e){e.node&&n._processAndEmitClickEvt(e)},treeNavigation:function(e){return n._processAndEmitKeyPress(e)},containerMount:function(){return n.emit("containerMount")},containerUpdate:function(){return n.emit("containerUpdate")}};return t&&t.registerEventCallback(o),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,t),r(i,[{key:"_processAndEmitClickEvt",value:function(e){var t=e;this.emit("nodeFocusClick",t)}},{key:"_processAndEmitKeyPress",value:function(e){var t=e;this.viewState.getStateByKey("keyboardActive")&&(t.currentKeyboardActiveNode=this.viewState.getStateByKey("keyboardActive").value,this.emit("nodeFocusKeyPress",t))}},{key:"setContainerFocus",value:function(){e.removeContextMenuFocus(this.viewState),this.getTreeContainerNode().focus(),this.viewState.setState("updateView",!0)}},{key:"setFocusedState",value:function(e,t){this.viewState.setState("focused",e),t&&this.viewState.setState("updateView",!0)}},{key:"getFocusedState",value:function(){var e=this.viewState.getStateByKey("focused");return e&&e.value?{id:e.value.id}:null}},{key:"setKeyboardActiveState",value:function(e){var t=this.viewState.getStateByKey("ActiveEditNode"),i=this.viewState.getStateByKey("isInEditing");i&&i.value&&(e&&t.value&&e.id===t.value.node.id||(this.viewState.deleteState("isInEditing"),this.viewState.deleteState("ActiveEditNode")));this.viewState.setState("keyboardActive",e)}},{key:"getTreeContainerNode",value:function(){var e=this.viewState.getStateByKey("treeContainerNode");return e&&e.value?e.value:null}},{key:"getViewPortInfo",value:function(){return{currentViewPort:this.viewState.getStateByKey("viewPort"),currentViewPortData:this.viewState.getStateByKey("currentViewPortData").value}}}],[{key:"toString",value:function(){return"FocusAdaptor"}}]),i}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(5796)],o=i.dj.d(n,(function(e,t){return function(e){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t.adaptor=e,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"search",value:function(e){this.adaptor.search(e)}},{key:"clearSearch",value:function(){this.adaptor.clearSearch()}},{key:"exposedAPI",value:function(){var e=this;return{search:function(t){return e.search(t)},clearSearch:function(){return e.clearSearch()}}}},{key:"destroy",value:function(){}},{key:"emits",get:function(){return[]}}],[{key:"adaptor",get:function(){return t}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336)],o=i.dj.d(n,(function(e){return function(e){function t(e,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o._dataStore=n,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"search",value:function(e){this._dataStore.search(e)}},{key:"clearSearch",value:function(e){this._dataStore.clearSearch()}}],[{key:"toString",value:function(){return"SearchAdaptor"}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(532),i(2159)],o=i.dj.d(n,(function(e,t,i){return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.adaptor=e,t._listeners=[],t._listeners.push(t.adaptor.on("nodeSelectionMouseDown",(function(e){return t._nodeMouseHandler(e)}))),t._listeners.push(t.adaptor.on("nodeSelectionContextMenu",(function(e){return t._contextMenuHandler(e)}))),t._listeners.push(t.adaptor.on("nodeSelectionKeyPress",(function(e){return t._setKeyboardSelection(e,e.currentKeyboardActiveNode)}))),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"_toggleSelection",value:function(e,t){var i=e.currentSelection&&e.currentSelection[0]?e.currentSelection[0]:null;i&&t.id===i.id?(this.adaptor.setSelectionState([]),this.emit("selectionChanged",{nodeIds:[]})):this._setSelection(e,t)}},{key:"_setSelection",value:function(e,t){var i=e.currentSelection&&e.currentSelection[0]?e.currentSelection[0]:null;if(null===i&&null!==t||i&&t.id!==i.id){var n=[t];this.adaptor.setSelectionState(n);var o=n.map((function(e){return e.id}));this.emit("selectionChanged",{nodeIds:o})}}},{key:"_contextMenuHandler",value:function(e){this._setSelection(e,e.node)}},{key:"_nodeMouseHandler",value:function(e){e.altKey||(e.ctrlKey||e.metaKey?this._toggleSelection(e,e.node):this._setSelection(e,e.node))}},{key:"_setKeyboardSelection",value:function(e,i){e.ctrlKey||e.metaKey?e.keyCode===t.SPACE&&this._toggleSelection(e,i):this._setSelection(e,i)}},{key:"setSelection",value:function(e){if(null===e&&(e=[]),!Array.isArray(e))throw new Error("Expected: TreeNodes array or null to signify no selection.Usage: setSelection([{id: 'node5'}]), setSelection([]), setSelection(null)");e.length=e.length>1?1:e.length,this.adaptor.setSelectionState(e,null,!0)}},{key:"getSelection",value:function(){return this.adaptor.getSelectionState()}},{key:"exposedAPI",value:function(){var e=this;return{setSelection:function(t){return e.setSelection(t)},getSelection:function(){return e.getSelection()}}}},{key:"destroy",value:function(){this._listeners.forEach((function(e){return e.remove()}))}},{key:"emits",get:function(){return["selectionChanged"]}}],[{key:"adaptor",get:function(){return i}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(532)],o=i.dj.d(n,(function(e){return function(){function e(t,i,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewState=t,this._dataStore=n,this._view=i,i.registerEventCallback({treeDisclosureMouseDown:function(e){return o._setPotentialBoundaryNodeOnDisclosureCollapse(e)}})}return r(e,[{key:"_setPotentialBoundaryNodeOnDisclosureCollapse",value:function(e){var t=this,i=this._viewState.getStateByKey("BoundaryNode");if(i&&i.value)return i=i.value,this._dataStore.getNode(i.node).then((function(i){i||t._setPotentialBoundaryNode({node:e.node,nodeIndex:e.nodeIndex})}))}},{key:"_getBoundaryNodeInView",value:function(e){var t=this,i=e;return this._dataStore.getNode(i.node).then((function(e){if(e)i.nodeIndex=e.index;else{var n=t._viewState.getStateByKey("PotentialBoundaryNode");i=n?n.value:null}return i}))}},{key:"_setBoundaryNode",value:function(e){this._viewState.setState("BoundaryNode",e),this._viewState.deleteState("PotentialBoundaryNode")}},{key:"_setPotentialBoundaryNode",value:function(e){this._viewState.setState("PotentialBoundaryNode",e)}},{key:"processAndEmitEvt",value:function(e,t){if(e.shiftKey)return this._processAndEmitShiftEvt(e,t);t(e)}},{key:"_processAndEmitShiftEvt",value:function(e,t){var i=this,n=this._viewState.getStateByKey("BoundaryNode");if(n&&n.value)return this._getBoundaryNodeInView(n.value).then((function(n){i._setBoundaryNode(n),t(e)}));t(e)}},{key:"updateBoundaryNode",value:function(e){this._setBoundaryNode(e)}},{key:"getContiguousSelectionRange",value:function(e){var t=this._viewState.getStateByKey("BoundaryNode"),i=t&&t.value?t.value.nodeIndex:0;return{start:Math.min(i,e),end:Math.max(i,e)}}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(532),i(2159)],o=i.dj.d(n,(function(e,t,i){return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.adaptor=e,t._listeners=[],t._listeners.push(t.adaptor.on("nodeSelectionMouseDown",(function(e){return t._handleMouseDown(e)}))),t._listeners.push(t.adaptor.on("nodeSelectionClick",(function(e){return t._handleClick(e)}))),t._listeners.push(t.adaptor.on("nodeSelectionContextMenu",(function(e){return t._handleContextMenu(e)}))),t._listeners.push(t.adaptor.on("nodeSelectionKeyPress",(function(e){return t._handleKeyboard(e,{node:e.currentKeyboardActiveNode,nodeIndex:e.nodeIndex})}))),t.adaptor.setRangeSelectionModel(),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"_hasSelectionChanged",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||t[t.length-1].id!==e[e.length-1].id}},{key:"_emitSelectionEvt",value:function(e,t){if(e=e||[],t=t||[],this._hasSelectionChanged(e,t)){var i=t.map((function(e){return e.id}));this.emit("selectionChanged",{nodeIds:i})}}},{key:"_handleClick",value:function(e){e.isNodeAlreadySelected&&!this._selectionChanged&&this._handleSelection(e,{node:e.node,nodeIndex:e.nodeIndex}),this._selectionChanged=!1}},{key:"_handleMouseDown",value:function(e){e.isNodeAlreadySelected?this._selectionChanged=!1:(this._selectionChanged=!0,this._handleSelection(e,{node:e.node,nodeIndex:e.nodeIndex}))}},{key:"_handleContextMenu",value:function(e){var t=this;e.isNodeAlreadySelected||this.adaptor.setIndividualSelection({node:e.node,nodeIndex:e.nodeIndex},(function(i){return t._emitSelectionEvt(e.currentSelection,i)}))}},{key:"_isValidExtendedSelectionkey",value:function(e){switch(e.keyCode){case t.ARROW_DOWN:case t.ARROW_UP:case t.PAGE_DOWN:case t.PAGE_UP:case t.HOME:case t.END:case t.SPACE:return!0;default:return!1}}},{key:"_handleSelection",value:function(e,i){var n=this,o=e.ctrlKey||e.metaKey,r=e.shiftKey,a=e.keyCode===t.SPACE,s=function(t){return n._emitSelectionEvt(e.currentSelection,t)},l={node:i.node,nodeIndex:i.nodeIndex,isMetaKeyPressed:o};e.altKey||o&&r||(o?this.adaptor.setDiscontiguousSelection(l,s):r?this.adaptor.setContiguousSelection(l,s):a?this.adaptor.setDiscontiguousSelection(l,s):this.adaptor.setIndividualSelection(l,s))}},{key:"_handleKeyboard",value:function(e,i){var n=e.ctrlKey||e.metaKey;(!n&&!e.shiftKey||n&&e.keyCode===t.SPACE||e.shiftKey&&this._isValidExtendedSelectionkey(e))&&this._handleSelection(e,i)}},{key:"setSelection",value:function(e){if(null===e&&(e=[]),!Array.isArray(e))throw new Error("Expected: TreeNodes array or null to signify no selection.Usage: setSelection([{id: 'node5'}]), setSelection([]), setSelection(null)");this.adaptor.setSelectionState(e,null,!0)}},{key:"getSelection",value:function(){return this.adaptor.getSelectionState()}},{key:"exposedAPI",value:function(){var e=this;return{setSelection:function(t){return e.setSelection(t)},getSelection:function(){return e.getSelection()}}}},{key:"destroy",value:function(){this._listeners.forEach((function(e){return e.remove()}))}},{key:"emits",get:function(){return["selectionChanged"]}}],[{key:"adaptor",get:function(){return i}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(5801)],o=i.dj.d(n,(function(e,t){return function(e){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t.adaptor=e,t._listeners=[],t._listeners.push(t.adaptor.on("scrollChanged",(function(e){return t._emitScrollView(e)}))),t._isScrollBarShown=!0,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"scrollToPosition",value:function(e){if("number"==typeof e.scrollTop&&"number"==typeof e.scrollLeft||"number"==typeof e.scrollTop&&void 0===e.scrollLeft||"number"==typeof e.scrollLeft&&void 0===e.scrollTop)return this.adaptor.scrollToPosition(e),new Promise((function(e){e(null)}));throw new Error("scrollToPosition needs scrollTop, scrollLeft, or both set as properties as positive integers. \nExamples: \nscrollToPosition({ scrollTop: 30 }) \nscrollToPosition({ scrollTop: 30, scrollLeft: 50 })")}},{key:"getScrollComponentDimensions",value:function(){return this.adaptor.getScrollComponentDimensions()}},{key:"_emitScrollView",value:function(e){this.emit("scrollViewChanged",e)}},{key:"_displayScrollBars",value:function(e){this._isScrollBarShown=e,!1===e&&this.adaptor.hideScrollBars(),!0===e&&this.adaptor.displayScrollBars()}},{key:"exposedAPI",value:function(){return{scrollToPosition:this.scrollToPosition.bind(this),getScrollComponentDimensions:this.getScrollComponentDimensions.bind(this),exposedVariables:{displayScrollBars:{setter:function(e){this._displayScrollBars(e)}.bind(this),getter:function(e){return this._isScrollBarShown}.bind(this)}}}}},{key:"destroy",value:function(){}},{key:"emits",get:function(){return["scrollViewChanged"]}}],[{key:"adaptor",get:function(){return t}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(591)],o=i.dj.d(n,(function(e,t){return function(e){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));n.viewState=e,n.view=t;var o={treeProgrammaticScroll:function(e){return n._handleScrollSyncProgrammaticScroll(e)},treeScroll:function(e){return n._handleScrollChanged(e)},treeScrollOnKeyPressed:function(e){return n._handleScrollChangedOnKeyPressed(e)}};return n.view.registerEventCallback(o,!0),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"_handleScrollSyncProgrammaticScroll",value:function(e){if(e.position){var i=this.getScrollComponentDimensions(),n=i.scrollHeight-i.clientHeight,o=i.scrollWidth-i.clientWidth;isNaN(e.position.scrollTop)||(this.viewState.viewPort.size.top=Math.max(0,Math.min(e.position.scrollTop,n)),t.calculateAndUpdateViewPort(this.viewState,this.viewState.viewPort.size)),isNaN(e.position.scrollLeft)||(this.viewState.viewPort.size.left=Math.max(0,Math.min(e.position.scrollLeft,o)))}}},{key:"_handleScrollChanged",value:function(e){this.emit("scrollChanged",e)}},{key:"_handleScrollChangedOnKeyPressed",value:function(e){this.viewState.deleteState("shouldScrollOnKeyPressed"),this.emit("scrollChanged",e)}},{key:"scrollToPosition",value:function(e){this.view.scrollToPosition(e)}},{key:"getScrollComponentDimensions",value:function(){return this.view.getScrollComponentDimensions()}},{key:"hideScrollBars",value:function(){this.viewState.setState("hideScrollBars",!0),this.view.render()}},{key:"displayScrollBars",value:function(){var e=this.viewState.getStateByKey("hideScrollBars");e&&e.value&&(this.viewState.deleteState("hideScrollBars"),this.view.render())}}],[{key:"toString",value:function(){return"ScrollSyncAdaptor"}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(250)],o=i.dj.d(n,(function(e){var t=function(t){return e.createElement("span",{className:t.classes,"data-row-index":t.rowIndex,"data-test-id":"disclosureHandle","data-disclosure-id":t.node.data.id,onMouseDown:t.disclosureMouseDown},e.createElement("span",{className:"disclosureImage","data-disclosure-id":t.node.data.id,"data-row-index":t.rowIndex}))},i=function(t){return e.createElement("span",{className:t.classes,"data-row-index":t.rowIndex,"data-test-id":"disclosureHandle","data-disclosure-id":t.node.data.id},e.createElement("span",{className:"disclosureImage","data-disclosure-id":t.node.data.id,"data-row-index":t.rowIndex}))};return function(n){return n.noMouseInteraction?e.createElement(i,n):e.createElement(t,n)}}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n=[i(250),i(2162),i(838),i(5804)],o=i.dj.d(n,(function(e,t,i,n){var o=function(o){var s=e.useState(!1),l=a(s,2),c=l[0],d=l[1],u=e.useRef(null),h=o.numberOfGutters,p=o.classes,f=o.isDraggingStarted;p=p.slice(0),!f&&c&&p.push(i.TREENODE_HOVER[0]);var g=o.treeNodeStyle.treeNode||{};h&&(g.gridTemplateColumns=3*h+"px auto");var m=o.node.nodePosition&&o.node.nodePosition.nodeIndex,_=o.node.nodePosition&&o.node.nodePosition.nodeIndex;return e.createElement("div",r({className:p.join(" "),"data-row-index":o.rowIndex,style:g,"data-level-index":o.node.level,"data-test-id":o.node.data.id},o.additionalDataAttributes,o.additionalAttributes,{id:o.nodeDomID,ref:u,role:t.treeNodeItem,"aria-level":o.node.level+1,"aria-posinset":m?o.node.nodePosition.nodeIndex:null,"aria-setsize":_?o.node.nodePosition.noOfNodes:null,"aria-expanded":o.node.isExpandable?o.node.isExpanded:null,"aria-selected":o.classes&&-1!==o.classes.indexOf("selected"),onMouseDown:o.nodeMouseDown,onMouseUp:o.nodeMouseUp,onMouseEnter:function(e){!f&&d(!0);var t={nodeData:o.node.data,nodeRef:u,hoverMode:!0,relatedTarget:e.relatedTarget};o.hoverAction(t)},onMouseLeave:function(e){!f&&d(!1);var t={nodeData:o.node.data,nodeRef:u,hoverMode:!1,relatedTarget:e.relatedTarget};o.hoverAction(t)},onWheel:function(){var e={nodeData:o.node.data,nodeRef:u,hoverMode:!1};o.hoverAction(e)},onClick:o.nodeClick}),h>0?e.createElement(n,{gutterColors:o.treeNodeStyle.gutterColors,numberOfGutters:h}):"",e.createElement("div",{className:"treeNodeData","data-test-id":"nodeContentHandle",onDoubleClick:o.nodeDblClick,style:o.treeNodeStyle.treeNodeData},o.disclosureNode,o.componentsBeforeContent,o.content))},s=function(i){var o=i.numberOfGutters,a=i.classes;a=a.slice(0);var s=i.treeNodeStyle.treeNode||{};o&&(s.gridTemplateColumns=3*o+"px auto");var l=i.node.nodePosition&&i.node.nodePosition.nodeIndex,c=i.node.nodePosition&&i.node.nodePosition.nodeIndex;return e.createElement("div",r({className:a.join(" "),"data-row-index":i.rowIndex,style:s,"data-level-index":i.node.level,"data-test-id":i.node.data.id},i.additionalDataAttributes,i.additionalAttributes,{id:i.nodeDomID,role:t.treeNodeItem,"aria-level":i.node.level+1,"aria-posinset":l?i.node.nodePosition.nodeIndex:null,"aria-setsize":c?i.node.nodePosition.noOfNodes:null,"aria-expanded":i.node.isExpandable?i.node.isExpanded:null,"aria-selected":i.classes&&-1!==i.classes.indexOf("selected")}),o>0?e.createElement(n,{gutterColors:i.treeNodeStyle.gutterColors}):"",e.createElement("div",{className:"treeNodeData","data-test-id":"nodeContentHandle",style:i.treeNodeStyle.treeNodeData},i.disclosureNode,i.componentsBeforeContent,i.content))};return function(t){return t.noMouseInteraction?e.createElement(s,t):e.createElement(o,t)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(250),i(838),i(591)],o=i.dj.d(n,(function(e,t,i){return e.memo((function(i){var o=i.gutterColors,r=i.numberOfGutters,a=[];if(o&&Array.isArray(o))for(var s=0;s<o.length&&s<r;s++){var l=o[s];a.push(n(l))}return e.createElement("div",{class:t.TREENODE_GUTTER_WRAPPER,"data-test-id":"gutterHandle"},a)}),(function(e,t){var i=e.gutterColors||[],n=t.gutterColors||[];if(e.gutterColors&&t.gutterColors)return e.numberOfGutters===t.numberOfGutters&&i.join("")===n.join("")}));function n(n){return e.createElement("span",{key:i.generateUuid(),class:t.TREENODE_GUTTER_ITEM,style:{backgroundColor:n}})}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(250)],o=i.dj.d(n,(function(e){"use strict";var t=Object.freeze({INLINE:"inline",NONE:"none"});return function(i){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return i.state={display:t.NONE,top:0,left:0,label:"",_showDataTip:e.showDataTip},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),r(n,[{key:"removeTip",value:function(){this.props.showDataTip=!1,this.setState({_showDataTip:!1})}},{key:"handleClick",value:function(e){this.removeTip(),e.currentTarget=this.props.treeNodeInfo.nodeRef.current,this.props.treeNodeInfo.clickHandler(e)}},{key:"handleMouseDown",value:function(e){this.removeTip(),e.currentTarget=this.props.treeNodeInfo.nodeRef.current,this.props.treeNodeInfo.mouseDownHandler(e)}},{key:"render",value:function(){return e.createElement("span",{class:"mw-data-tip-container",ref:this.props.tipRef,style:{top:this.state.top+"px",left:this.state.left+"px",display:""+this.state.display},onMouseLeave:this.removeTip.bind(this),onWheel:this.removeTip.bind(this),onClick:this.handleClick.bind(this),onMouseDown:this.handleMouseDown.bind(this)},e.createElement("label",null,this.state.label))}}],[{key:"_isContentVisible",value:function(e,t){return!!(e&&e.clientWidth>0&&"left"!==t)||!!(e&&e.clientWidth>2&&"left"===t)}},{key:"_calculatePosition",value:function(e,t,i){if(t.current){var o=t.current.querySelector(".treeNodeText"),r=o&&o.scrollWidth>o.clientWidth,a=n._isContentVisible(o,i);if(r&&a){var s=e.getBoundingClientRect(),l=o.getBoundingClientRect();return{top:l.top-s.top,left:l.left-s.left}}}}},{key:"getDerivedStateFromProps",value:function(e,i){if(e.showDataTip){var o=e.treeNodeInfo,r=e.containerElm,a=o&&o.truncation,s=o.nodeData.label,l=n._calculatePosition(r,o.nodeRef,a);return l?{display:t.INLINE,top:l.top,left:l.left,label:s}:{display:t.NONE}}return{display:t.NONE}}}]),n}(e.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(213),i(2155),i(250),i(2162),i(2163)],o=i.dj.d(n,(function(e,t,i,n,o){return function(e){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e));return t._scrollHandler=function(e){return t.props.scrollHandler(e)},t._disableUserSelectHandler=function(e){return t._handleDisableUserSelect(e)},t._getContainerRef=function(e){return t.myContainerDiv=e},t._contextMenuHandler=function(e){return t._handleContextMenu(e)},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,e),r(a,[{key:"_handleDisableUserSelect",value:function(e){var t=e.target&&e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&e.preventDefault()}},{key:"_calculateTreeNodeHeight",value:function(){var e=this.myContainerDiv.childNodes[0].childNodes[0].childNodes,t=e.length?e[e.length-1]:null;if(t){var i=t.offsetHeight;(i=i||o.nodeHeight)!==this.props.treeNodeHeight&&this.props.setTreeNodeProperty(i)}}},{key:"_adjustScrollTop",value:function(e){var t=void 0;if(e){var i={height:this.myContainerDiv&&this.myContainerDiv.clientHeight,width:this.myContainerDiv&&this.myContainerDiv.clientWidth};t=this.props.scrollTopFunc(i)}else t=this.props.scrollTopFunc();this.myContainerDiv&&this.myContainerDiv.scrollTop!==t&&(this.myContainerDiv.scrollTop=t)}},{key:"_adjustScrollLeft",value:function(){var e=this.props.scrollLeft;this.myContainerDiv&&this.myContainerDiv.scrollLeft!==e&&(this.myContainerDiv.scrollLeft=e)}},{key:"_handleContextMenu",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.contextMenuHandler(e)}},{key:"componentWillUpdate",value:function(){var e=this;window.requestAnimationFrame((function(){return e._adjustScrollTop()}))}},{key:"componentDidMount",value:function(){this._calculateTreeNodeHeight(),t.isSeparateUserSelectRequired&&this.myContainerDiv.addEventListener("selectstart",this._disableUserSelectHandler),this.props.containerMountHandler({treeContainerNode:this.myContainerDiv,mwTreeNode:this.mwTreeNode})}},{key:"componentDidUpdate",value:function(){var e=this;this._calculateTreeNodeHeight(),t.containsActiveNodeLostIssue&&this.props.forceContainerFocus&&this.myContainerDiv.focus(),window.requestAnimationFrame((function(){e._adjustScrollTop(!0),e._adjustScrollLeft()})),this.props.containerUpdateHandler()}},{key:"componentWillUnmount",value:function(){t.isSeparateUserSelectRequired&&this.myContainerDiv.removeEventListener("selectstart",this._disableUserSelectHandler)}},{key:"render",value:function(){var e=this,o={height:this.props.bodyHeight},r=this.props.containerClass;t.shouldHoverBeDisabled||(r+=" hoverable"),this.props.isTruncationSet&&(r+=" mw-truncation-enabled",this.props.classes+=" mw-truncation-mode"),this.props.width&&(o.minWidth=this.props.width);var a={transform:"translateY("+this.props.translateY+"px)"};return a.WebkitTransform="translateY("+this.props.translateY+"px)",i.createElement("div",{className:r,onScroll:this._scrollHandler,onFocus:this.props.focusHandler,onBlur:this.props.blurHandler,onKeyDown:this.props.keyHandler,onKeyUp:this.props.keyUpHandler,tabIndex:"0",ref:this._getContainerRef,role:n.treeContainer,"aria-activedescendant":this.props.focusedNodeID,onContextMenu:this._contextMenuHandler},i.createElement("div",{className:"mw-tree-body-component",style:o},i.createElement("div",{className:this.props.classes,style:a,ref:function(t){return e.mwTreeNode=t}},this.props.children)),this.props.isTruncationSet&&this.props.dataTip)}}]),a}(i.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(250),i(2164),i(1159)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(n){function o(){return s(this,o),l(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),a(o,[{key:"shouldComponentUpdate",value:function(e){return!this.props.node.isEqual(e.node)||this.props.config.nodeReadOnly!==e.config.nodeReadOnly||this.props.config.interactiveRenderer!==e.config.interactiveRenderer}},{key:"componentDidUpdate",value:function(e,t){var i=this.rendererContainer,n=this.props,o=n.renderer,r=n.node,a=this._getRendererDom(o,r);!i.firstChild.isEqualNode(a)&&this.rendererContainer.replaceChild(a,i.firstChild)}},{key:"_getRendererDom",value:function(e,t){var i=this.props.node.value.highlight,n=this.props.config.readonly,o=this.props.config.noMouseInteraction,r=t.value.isExpandable,a=this.props.truncation;return e.getDomNode(t.value.data,{highlight:i,readonly:n,isExpandable:r,truncation:a,noMouseInteraction:o})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.renderer,i=e.node;this.rendererContainer.appendChild(this._getRendererDom(t,i))}},{key:"_handleClick",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.INTERACTIVE_RENDERER_CLICK,n=this.props,o=n.renderer,r=n.node;this.props.interactiveCallback&&this.props.interactiveCallback(i,{node:r,renderer:o,evt:e})}},{key:"render",value:function(){var t=this,n=this.props.config&&this.props.config.maxWidth?{maxWidth:this.props.config.maxWidth}:{},o=this.props.truncation===i.NONE?"mw-treeNode-renderer-container":"mw-treeNode-renderer-container mw-treeNode-renderer-container-truncate";return e.createElement("span",r({style:n},this.props.additionalAttributes,this.props.additionalListeners,{ref:function(e){return t.rendererContainer=e},onClick:function(e){return t._handleClick(e)},className:o}))}}]),o}(e.Component)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1505),i(1159)],o=i.dj.d(n,(function(e,t){"use strict";return{getDomNode:function(e,t){var i,n=document.createElement("span");n.className="mw-tree-renderer";var o=void 0,r=e.iconUri;return r&&((o=document.createElement("span")).setAttribute("data-test-id","icon1"),o.className="treeNodeIcon",o.style.backgroundImage="url('"+encodeURI(r)+"')",n.appendChild(o)),i=this._getLabelDOMNode(e,t),n.appendChild(i),n},_getLabelDOMNode:function(i,n){var o,r=document.createElement("span"),a=i.label,s=[];if(s.push("treeNodeText"),n&&n.truncation!==t.NONE){s.push("mw-tree-node-truncation"),n.truncation===t.LEFT&&(s.push("mw-tree-node-left-truncation"),a="‎"+i.label+"‎");var l="calc(100% - "+(i.iconUri?"25px":"5px")+")";r.style.width=l}((o=r.classList).add.apply(o,s),r.setAttribute("data-test-id","label"),r.setAttribute("data-region",!0),n&&Array.isArray(n.highlight))?e.getHighlightedTextDOM(a,"label",n.highlight).forEach((function(e){e.setAttribute&&e.setAttribute("data-region",!0),r.appendChild(e)})):r.textContent=a;return r}}}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){"use strict";return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return a(e,null,[{key:"shallowCopy",value:function(e){var t={};if(null===e||"object"!==(void 0===e?"undefined":r(e))||Array.isArray(e))return e;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}},{key:"isTypeObject",value:function(e){return"object"===(void 0===e?"undefined":r(e))}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"compose",value:function(){var e=[].concat(Array.prototype.slice.call(arguments)).reverse();return function(){for(var t=e[0].apply(this,arguments),i=1;i<e.length;i+=1)t=e[i].call(this,t);return t}}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(532),i(2146),i(5812),i(2167)],o=i.dj.d(n,(function(e,t,i,n){return function(t){function o(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3];s(this,o);var r=l(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e,t,i,n));return r._editorSaveRetrieveUnCommitedValues={saveValue:function(e){r._viewModel.setState("unsavedEditorValue",e)},getValue:function(){var e=r._viewModel.getStateByKey("unsavedEditorValue");return e=e?e.value:null},destroy:function(){r._viewModel.deleteState("unsavedEditorValue")}},r.handlers.editor={},r.handlers.editor._editCompleteHandler=function(e){return r._handleEditComplete(e)},r.handlers.editor._editCanceledHandler=function(e){return r._handleEditCanceled(e)},r.handlers.treeNode._nodeClickHandler=function(e){return r._handleNodeClick(e)},r.handlers.treeNode._nodeMouseUpHandler=function(e){return r._handleNodeMouseUp(e)},r.handlers.editor._processEditHandler=function(e){return r._handleProcessEdit(e)},r.handlers.editor._saveUnSavedValueHandler=r._editorSaveRetrieveUnCommitedValues,r._mouseDownHandled={},r._clickHandled={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,t),r(o,[{key:"createTreeBuilder",value:function(e,t){return new i(this._viewModel,this.handlers,e,t)}},{key:"_handleNodeDoubleClick",value:function(e){var t=this,i=e.target.attributes["data-editor"];this._clickHandled[e.currentTarget]||i||a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"_handleNodeDoubleClick",this).call(this,e),Object.keys(this._clickHandled).forEach((function(e){t._clickHandled[e]=!1}))}},{key:"_handleEditComplete",value:function(e){var t=this;this._viewEventHandler.handleEvent("treeNodeEditComplete",e,(function(){t._viewModel.deleteState("treeWidth"),t.render(),t._editorSaveRetrieveUnCommitedValues.destroy(),t._setEditState(!1)}))}},{key:"_handleProcessEdit",value:function(e){var t=this;this._viewEventHandler.handleEvent("treeNodeProcessEdit",e,(function(e){t.render(),t._checkFailures(e)||t._editorSaveRetrieveUnCommitedValues.destroy()}))}},{key:"_checkFailures",value:function(e){for(var t=!1,i=0;i<e.length;i++){var o=e[i];if(o.type&&o.type===n.DATA_UPDATE_FAILURE){t=!0;break}}return t}},{key:"_handleEditCanceled",value:function(e){var t=this;this._viewEventHandler.handleEvent("treeNodeEditCanceled",e,(function(){t._editorSaveRetrieveUnCommitedValues.destroy(),t.render()})),this._setEditState(!1)}},{key:"_setEditState",value:function(e){this._viewModel.setState("isInEditing",e)}},{key:"_handleKeyDown",value:function(t){var i=this,n=void 0,r=void 0;if(t.keyCode===e.ENTER?n=this._EVENTS_CONFIG.keyDownEnter:t.keyCode===e.F2?n=this._EVENTS_CONFIG.keyDownF2:(t.keyCode>=e.ALPHA_START&&t.keyCode<=e.ALPHA_END||t.keyCode>=e.NUM_START&&t.keyCode<=e.NUM_END||t.keyCode>=e.NUMPAD_START&&t.keyCode<=e.NUMPAD_END)&&!(t.metaKey||t.ctrlKey||t.altKey)?(r=t.key,n=this._EVENTS_CONFIG.keyDownAlphaNum):n="",n){var s={firstChar:r,keyCode:t.keyCode,metaKey:t.metaKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey};t.preventDefault(),this._viewEventHandler.handleEvent(n,s,(function(){i.render()}))}else a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"_handleKeyDown",this).call(this,t)}},{key:"_areMultipleNodesSelected",value:function(){var e=this._viewModel.getStateByKey("selected");return!!e&&(0!==e.rangeList.length&&e.rangeList[0].length>1)}},{key:"_handleNodeMouseDown",value:function(e,t){var i=this,n=e.currentTarget.classList.contains("focused"),o=e.currentTarget.classList.contains("selected"),r=e.target.attributes["data-region"],a=this._EVENTS_CONFIG.nodeMouseDownFocused&&n&&r,s=e.currentTarget.attributes["data-row-index"].nodeValue,l=this._data(parseInt(s))(0).value,c=this._metadata?this._metadata:function(e){return{value:{}}},d=this._areMultipleNodesSelected();c=c(s).value,a=!d&&a&&!c.readonly;var u={node:l,metadata:c,metaKey:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,nodeIndex:parseInt(s)};a&&o||this._viewEventHandler.handleEvent(t,u,(function(){i.render()})),a||(this._mouseDownHandled[e.currentTarget]={target:e.target})}},{key:"_handleNodeMouseUp",value:function(e){var t=this._mouseDownHandled[e.currentTarget];t&&t.target!==e.target&&(this._mouseDownHandled[e.currentTarget]=null)}},{key:"_resetMouseFlags",value:function(){var e=this;Object.keys(this._mouseDownHandled).forEach((function(t){e._mouseDownHandled[t]=null})),this._viewModel.getStateByKey("dndEnds")&&this._viewModel.setState("dndEnds",{})}},{key:"_handleNodeClick",value:function(e){var t=this,i=this._EVENTS_CONFIG.nodeMouseDownFocused,n=e.currentTarget.classList.contains("focused"),r=e.target.attributes["data-region"],s=!this._viewModel.getStateByKey("dndEnds")||this._viewModel.getStateByKey("dndEnds")&&!this._viewModel.getStateByKey("dndEnds").value[e.target],l=e.currentTarget.attributes["data-row-index"].nodeValue,c=this._data(parseInt(l))(0).value,d=this._metadata?this._metadata:function(e){return{value:{}}};d=d(l).value;var u=i&&!d.readonly&&r&&n,h=!this._areMultipleNodesSelected()&&!this._mouseDownHandled[e.currentTarget];if(u&&h&&s){e.preventDefault();var p={node:c,metadata:d,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,nodeIndex:parseInt(l)};this._viewModel.getStateByKey("isInDragging")&&this._viewModel.getStateByKey("isInDragging").value||(this._viewEventHandler.handleEvent(i,p,(function(){t.render()})),this._setEditState(!0)),this._clickHandled[e.currentTarget]=!0,this._resetMouseFlags()}else this._resetMouseFlags(),a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"_handleNodeClick",this).call(this,e)}}]),o}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(2161),i(5813),i(1506),i(250)],o=i.dj.d(n,(function(e,t,i,n){return function(e){function o(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3];s(this,o);var r=l(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e,t,i,n));return r._editor={type:i.editor.type,config:i.editor.config},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),r(o,[{key:"_getUpdatedTreeProps",value:function(){var e=a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"_getUpdatedTreeProps",this).call(this),t=this._viewModel.getStateByKey("ActiveEditNode");return e.activeEditNode=t?t.value:null,e}},{key:"_getStylingAndClasses",value:function(e,t){var n=a(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"_getStylingAndClasses",this).call(this,e,t),r=this._viewModel.getStateByKey("ActiveEditNode");return(r=r?r.value:null)&&r.node.id===e.id&&(r.state===i.ACTIVE_EDIT_IN_PROGRESS||r.state===i.INACTIVE_EDIT_IN_PROGRESS)&&n.classes.push(" updateInProgress"),r&&r.node.id===e.id&&r.state!==i.INACTIVE_EDIT_IN_PROGRESS&&(n.style.treeNodeData.marginLeft=n.style.treeNodeData.marginLeft+1),n}},{key:"buildContentNode",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=o.empty;if(r)return{content:null,additionalDataAttributes:{}};var a={content:null,additionalDataAttributes:{}},s=t.activeEditNode&&t.activeEditNode.node.id===e.value.id?t.activeEditNode.state:null,l=s&&s!==i.INACTIVE_EDIT_IN_PROGRESS,c=s&&s===i.INACTIVE_EDIT_IN_PROGRESS;if(this._editor.type&&l){var d=this._viewModel.viewPort.size.width+this._viewModel.viewPort.size.left-n;a.content=this.buildEditor(e,t.activeEditNode.parentNode,d,t.activeEditNode.state,t.activeEditNode.config),a.additionalDataAttributes={"data-edit-mode":!0}}else{var u=e,h={};c&&(u=t.activeEditNode.tempNode,h.maxWidth=this._viewModel.viewPort.size.width+this._viewModel.viewPort.size.left-n-"30"),a.content=this.buildRenderer(u,h)}return a}},{key:"buildEditor",value:function(e,i,o,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=this._editor;return n.createElement(t,{editor:s,maxWidth:o,editorState:r,saveUnsavedValueHandler:this.handlers.editor._saveUnSavedValueHandler,editCompleteHandler:this.handlers.editor._editCompleteHandler,editCancelledHandler:this.handlers.editor._editCanceledHandler,processEditHandler:this.handlers.editor._processEditHandler,parentNode:i,config:a,node:e})}}]),o}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(1506),i(250)],o=i.dj.d(n,(function(e,t){"use strict";return function(i){function n(){return a(this,n),s(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),r(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,i=t.editor,n=t.node,o={firstChar:this.props.config.firstChar,height:this._editorContainer.clientHeight};for(var r in i.config)i.config.hasOwnProperty(r)&&(o[r]=i.config[r]);var a=this.props.saveUnsavedValueHandler.getValue(),s=i.type;this._editorInstance=new s(n.value.data,o),a&&(this._editorInstance.value=a),this._editorInstanceListeners=[],this._editorInstanceListeners.push(this._editorInstance.on("editComplete",(function(t){e._editCompleted(t)}))),this._editorInstanceListeners.push(this._editorInstance.on("editCanceled",(function(t){e._editCanceled(t)}))),this._editorInstanceListeners.push(this._editorInstance.on("processEdit",(function(t){e._processEdit(t)}))),this._mountEditor()}},{key:"componentDidUpdate",value:function(){this._editorInstance&&this._editorInstance.update&&this._editorInstance.update(this.props.node.value.data,this.props.config)}},{key:"_processEdit",value:function(e){this.props.processEditHandler({node:this.props.node,parentNode:this.props.parentNode,oldValue:e.oldValue,newValue:e.newValue})}},{key:"_editCanceled",value:function(e){this._unMountEditor(),this.props.editCancelledHandler({node:this.props.node,oldValue:e.oldValue,newValue:e.newValue,validationResult:e.validationResult}),this._refocusToPreviousNode()}},{key:"_editCompleted",value:function(t){this.props.editorState===e.ACTIVE_EDIT_IN_PROGRESS&&!t.hasValueChanged||(this._isEditorFocused=this._editorContainer.contains(document.activeElement),this._unMountEditor(),this.props.editCompleteHandler({node:this.props.node,parentNode:this.props.parentNode,oldValue:t.oldValue,newValue:t.newValue,hasValueChanged:t.hasValueChanged}),this._refocusToPreviousNode())}},{key:"_mountEditor",value:function(){this._editorContainer.appendChild(this._editorInstance.getDomNode()),this._previousActiveNode=document.activeElement,this._editorInstance.setFocus()}},{key:"_refocusToPreviousNode",value:function(){this._previousActiveNode&&this._isEditorFocused&&this._previousActiveNode.focus()}},{key:"_unMountEditor",value:function(){this._editorInstanceListeners.forEach((function(e){e.remove()})),this._editorContainer.removeChild(this._editorContainer.firstChild),this._editorInstance.destroy(),this._editorInstance=null}},{key:"componentWillUnmount",value:function(){this._editorInstance&&(this.props.saveUnsavedValueHandler.saveValue(this._editorInstance.value),this.props.editorState===e.ACTIVE_EDIT_IN_PROGRESS?(this._unMountEditor(),this._refocusToPreviousNode()):this._editorInstance.commitValue?this._editorInstance.commitValue():this._editCompleted({oldValue:this.props.node.value.data,newValue:this.props.node.value.data,hasValueChanged:!1}))}},{key:"render",value:function(){var e=this,i={maxWidth:this.props.maxWidth+"px"};return t.createElement("div",{ref:function(t){return e._editorContainer=t},className:"mw-treeNode-editor-container",style:i})}}]),n}(t.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(212),i(336),i(1506),i(2167)],o=i.dj.d(n,(function(e,t,i,n){return function(t){function o(e,t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));n._view=e,n._viewModel=t,n._dataStore=i;var r={treeNodeEditMouseEvent:function(e){return n._handleFocusedNodeClick(e)},treeNodeEditKeyPress:function(e){return n._handleEnterKeyPress(e)},treeNodeEditComplete:function(e){return n._handleEditorEditComplete(e)},treeNodeProcessEdit:function(e){return n._handleEditorProcessEdit(e)},treeNodeEditCanceled:function(e){return n._handleEditorEditCanceled(e)}};return n._view.registerEventCallback(r,!0),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,t),a(o,[{key:"_enterEditMode",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._viewModel.setState("ContainerFocused",!0),this._dataStore.getParentNode(e).then((function(n){var o=n?n.node:{id:null};t._updateStateMachineForTreeNode({node:e,parentNode:o,config:{firstChar:i.firstChar}},"EDIT_STARTED")}))}},{key:"editNode",value:function(){var e=this;if(!this._viewModel.getStateByKey("keyboardActive"))throw new Error("Expected: treeNode object with id property. setNodeFocus({id: 'node1'}) to set node focus,before editNode");var t=this._handleEnterKeyPress();t&&this._view.isFocusedNodeInTheView()&&t.then&&t.then((function(){e._viewModel.setState("updateView",!0)}))}},{key:"_isEditPermitted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(t.readonly||t.noMouseInteraction||t.empty)}},{key:"_handleEnterKeyPress",value:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._isEditInProgress()){var n=this._viewModel.getStateByKey("keyboardActive");if(n=n?n.value:null){var o=new e;return this._dataStore.getNode(n).then((function(e){if(e){var r=t._dataStore.getLocalRowMetaData?t._dataStore.getLocalRowMetaData(e.index):{};t._isEditPermitted(e.node,r)?t._enterEditMode(n,{firstChar:i.firstChar}).then((function(){o.resolve()})):o.resolve()}else o.resolve()})),o.promise}}}},{key:"_handleFocusedNodeClick",value:function(e){if(!this._isEditInProgress()&&this._isEditPermitted(e.node,e.metadata))return this._enterEditMode(e.node)}},{key:"_handleEditorEditComplete",value:function(e){if(e.hasValueChanged)return this._updateDataStoreIfNeeded(e,"EDITOR_EDIT_COMPLETE");this._updateStateMachineForTreeNode({node:e.node.value,parentNode:e.parentNode},"NO_EDIT_CHANGE")}},{key:"_handleEditorEditCanceled",value:function(e){this._updateStateMachineForTreeNode({node:e.node.value,parentNode:e.parentNode,oldValue:e.oldValue,newValue:e.newValue,config:{validationResult:e.validationResult}},"EDITOR_EDIT_CANCELED")}},{key:"_handleEditorProcessEdit",value:function(e){return this._updateDataStoreIfNeeded(e,"EDITOR_PROCESS_EDIT")}},{key:"_updateDataStore",value:function(t){var i=this,o={node:t.node.value,oldValue:t.oldValue,newValue:t.newValue,parentNode:t.parentNode},r=new e,a=this._dataStore.update(t.parentNode,t.node.value,t.newValue);return a&&a.then?a.then((function(){i._updateStateMachineForTreeNode(o,"DATA_UPDATE_SUCCESS"),r.resolve({type:n.DATA_UPDATE_SUCCESS})}),(function(e){var t={};t.isValid=e.success,t.validationMessage=e.message,t.type="ERROR",o.config={validationResult:t},i._updateStateMachineForTreeNode(o,"DATA_UPDATE_FAILURE"),r.resolve({type:n.DATA_UPDATE_FAILURE})})):(this._updateStateMachineForTreeNode(o,"DATA_UPDATE_SUCCESS"),r.resolve({type:n.DATA_UPDATE_SUCCESS})),r.promise}},{key:"_handleEditInProgress",value:function(e,t){var i=this._deepCloneTreeNode(e.node);i.value.data=e.newValue,this._updateStateMachineForTreeNode({node:e.node.value,parentNode:e.parentNode,oldValue:e.oldValue,newValue:e.newValue,tempNode:i},t),this._viewModel.setState("updateView",!0)}},{key:"_updateDataStoreIfNeeded",value:function(e,t){return this._ds_update_promise&&!this._ds_update_promise.isFulfilled()?(this._handleEditInProgress(e,t),this._ds_update_promise):(this._ds_update_promise=this._updateDataStore({node:e.node,parentNode:e.parentNode,oldValue:e.oldValue,newValue:e.newValue}),this._ds_update_promise.isFulfilled()||this._handleEditInProgress(e,t),this._ds_update_promise)}},{key:"_updateStateMachineForTreeNode",value:function(e,t){var n=this._viewModel.getStateByKey("ActiveEditNode");n=n?n.value:null;var o={node:e.node,parentNode:e.parentNode,config:e.config||{}},r=n?n.state:null;switch(t){case"EDITOR_EDIT_COMPLETE":r=i.INACTIVE_EDIT_IN_PROGRESS,o.tempNode=e.tempNode;break;case"DATA_UPDATE_SUCCESS":r=null,this._emitEditCompletedEvt(e);break;case"DATA_UPDATE_FAILURE":r===i.ACTIVE_EDIT_IN_PROGRESS?(r=i.ACTIVE_EDIT,e.config.validationResult.validatedData=e.newValue):(r=null,this._emitEditCanceledEvt(e));break;case"EDITOR_EDIT_CANCELED":r=null,this._emitEditCanceledEvt(e);break;case"EDITOR_PROCESS_EDIT":r=i.ACTIVE_EDIT_IN_PROGRESS,o.config.isReadOnly=!0;break;case"EDIT_STARTED":this._viewModel.setState("isInEditing",!0),r=i.ACTIVE_EDIT;break;case"NO_EDIT_CHANGE":r=null}null!==r?(o.state=r,this._viewModel.setState("ActiveEditNode",o)):(this._viewModel.deleteState("isInEditing"),this._viewModel.deleteState("ActiveEditNode"))}},{key:"_emitEditCompletedEvt",value:function(e){this.emit("editCompleted",{nodeId:e.node.id,oldValue:e.oldValue,newValue:e.newValue,config:e.config})}},{key:"_emitEditCanceledEvt",value:function(e){this.emit("editCanceled",{nodeId:e.node.id,oldValue:e.oldValue,newValue:e.newValue,validationResults:[e.config.validationResult]})}},{key:"_isEditInProgress",value:function(){var e=this._viewModel.getStateByKey("ActiveEditNode");return e&&e.value}},{key:"_deepCloneTreeNode",value:function(e){var t=this,i={};return Object.keys(e).forEach((function(n){e[n]&&"object"===r(e[n])?i[n]=t._deepCloneTreeNode(e[n]):i[n]=e[n]})),i}},{key:"exposedAPI",value:function(){return{editNode:this.editNode.bind(this)}}},{key:"emits",get:function(){return["editCompleted","editCanceled"]}}]),o}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(212),i(336),i(532),i(5816),i(2148)],o=i.dj.d(n,(function(e,t,i,n,o){var a=["expanded","collapsed"];return function(e){function t(e,i,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));r._view=e,r._viewModel=i,r._dataStore=o,r._treeNavHandler=new n(r._viewModel,r._dataStore),r._treeNavHandler.emits.forEach((function(e){r._treeNavHandler.on(e,(function(t){return r.emit(e,t)}))}));var a={treeDisclosureMouseDown:function(e){return r._disclosureClickHandler(e)},treeNodeMouseDown:function(e){return r._nodeClickHandler(e)},treeContextMenuSelection:function(e){e.node&&r._nodeClickHandler(e)},treeExpandCollapse:function(e){return r._disclosureClickHandler(e)},treeNavigation:function(e){return r._nodeKeyPressHandler(e)}};return r._view.registerEventCallback(a,!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"_expandNode",value:function(e){var t=this;!e.isExpanded&&e.isExpandable&&this._dataStore.expand([e]).then((function(){t.emit("expanded",{nodeId:e.id})}))}},{key:"_collapseNode",value:function(e){var t=this;e.isExpanded&&e.isExpandable&&this._dataStore.collapse([e]).then((function(){t.emit("collapsed",{nodeId:e.id})}))}},{key:"_nodeClickHandler",value:function(e){var t=e.altKey,i=e.ctrlKey||e.metaKey;t||i&&e.shiftKey||(this._viewModel.deleteState("potentialNextKeyboardActiveNode"),this._viewModel.setState("keyboardActive",e.node),this._viewModel.setState("keyboardActiveIndex",e.nodeIndex))}},{key:"_updatePotentialKeyboardActiveNode",value:function(e){var t=this,i=this._viewModel.getStateByKey("potentialNextKeyboardActiveNode");i?(i=i.value,this._dataStore.getNode(i).then((function(i){i||t._viewModel.setState("potentialNextKeyboardActiveNode",e)}))):this._viewModel.setState("potentialNextKeyboardActiveNode",e)}},{key:"_disclosureClickHandler",value:function(e){var t=this;e.node.isExpanded?this._collapseNode(e.node):this._expandNode(e.node);var i=this._viewModel.getStateByKey("keyboardActive");i&&i.value&&(i=i.value,this._dataStore.getNode(i).then((function(i){i||t._updatePotentialKeyboardActiveNode(e.node)})))}},{key:"_nodeKeyPressHandler",value:function(e){return this._treeNavHandler.handleKeyEvent(e)}},{key:"_isDragStarted",value:function(){var e=this._viewModel.getStateByKey("isInDragging");return!(!e||!e.value)&&e.value}},{key:"destroy",value:function(){}},{key:"exposedAPI",value:function(){return{}}},{key:"emits",get:function(){return a}}]),t}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(212),i(285),i(591),i(532),i(336),i(5817),i(5818),i(2168)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){"use strict";return function(i){function o(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return i._viewModel=e,i._dataStore=t,i._initializeKeyNavigationAndActiveNode(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),r(o,[{key:"_initializeKeyNavigationAndActiveNode",value:function(){var e=this;this._keyNavigation=new a({expandHandler:function(t){return e._expandNode(t)},collapseHandler:function(t){return e._collapseNode(t)}}),this._activeNodeHandler=new s({viewModel:this._viewModel,treeNodeHandler:function(t){return e._getViewIndexOfNode(t)}})}},{key:"_expandNode",value:function(e){var t=this;!e.isExpanded&&e.isExpandable&&this._dataStore.expand([e]).then((function(){t.emit("expanded",{nodeId:e.id})}))}},{key:"_collapseNode",value:function(e){var t=this;e.isExpanded&&e.isExpandable&&this._dataStore.collapse([e]).then((function(){t.emit("collapsed",{nodeId:e.id})}))}},{key:"_getParentNode",value:function(e){return this._dataStore.getParentNode(e)}},{key:"_getViewIndexOfNode",value:function(e){return this._dataStore.getNode(e)}},{key:"_getKeyboardEvent",value:function(e){var t={keyCode:e.keyCode};return t.currentDataSize=this._viewModel.dataSize.rows,t.currentViewPort=this._viewModel.viewPort.rangeList[0].rows,t}},{key:"_isKeyCodeValid",value:function(e){var t=e.ctrlKey||e.metaKey,i=e.shiftKey,o=!(e.altKey||t&&i)&&this._keyNavigation.getKeyCommand(e.keyCode);return t?o:i?e.keyCode!==n.ARROW_LEFT&&e.keyCode!==n.ARROW_RIGHT:o}},{key:"handleKeyEvent",value:function(i){var n=this,o=this._viewModel.dataSize.rows.count;if(this._isKeyCodeValid(i)&&0!==o){var r=new e,a=this._getKeyboardEvent(i);return this._activeNodeHandler.getActiveNodeInfo(a).then((function(e){t(n._processKeyEvt(a,e)).then((function(e){if(e){var i={index:e.index>=0?e.index:e.keyboardActiveIndex,activeNode:e.keyboardActiveNode||e.node},o=e.firstVisibleIndex>=0?e.firstVisibleIndex:e.index;t(n._activeNodeHandler.setActiveNode(i,o),(function(){return r.resolve()}))}else r.resolve()}))})),r}}},{key:"_processKeyEvt",value:function(e,i){var n=i.isPotentialActiveNode||i.isDefaultInitialIndex;return e.currentKeyboardActiveNode=i.node,e.currentKeyboardActiveIndex=i.index,n?this._processNoActiveNodeInView(e):t(this._processExistingActiveIndex(e))}},{key:"_processNoActiveNodeInView",value:function(e){var t=void 0;switch(e.keyCode){case n.PAGE_UP:case n.PAGE_DOWN:case n.HOME:case n.END:t=this._keyNavigation.getKeyCommand(e.keyCode)(e);break;default:t={firstVisibleIndex:e.currentKeyboardActiveIndex,keyboardActiveIndex:e.currentKeyboardActiveIndex}}return t}},{key:"_processExistingActiveIndex",value:function(e){var t=this._keyNavigation.getKeyCommand(e.keyCode)(e);return t.parentIsNewKeyboardActiveNode?this._getParentNode(t.keyboardActiveNode):t}},{key:"emits",get:function(){return["expanded","collapsed"]}}]),o}(o)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(532)],o=i.dj.d(n,(function(e){"use strict";return function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._constructCommands(),this._expandNode=e.expandHandler,this._collapseNode=e.collapseHandler}return r(t,[{key:"_constructCommands",value:function(){var t=this;this.keyCommands={},this.keyCommands[e.HOME]=function(e){return t._handleHome(e)},this.keyCommands[e.END]=function(e){return t._handleEnd(e)},this.keyCommands[e.PAGE_UP]=function(e){return t._handlePageUp(e)},this.keyCommands[e.PAGE_DOWN]=function(e){return t._handlePageDown(e)},this.keyCommands[e.ARROW_UP]=function(e){return t._handleArrowUp(e)},this.keyCommands[e.ARROW_DOWN]=function(e){return t._handleArrowDown(e)},this.keyCommands[e.ARROW_LEFT]=function(e){return t._handleArrowLeft(e)},this.keyCommands[e.ARROW_RIGHT]=function(e){return t._handleArrowRight(e)},this.keyCommands[e.SPACE]=function(e){return t._handleSpace(e)}}},{key:"getKeyCommand",value:function(e){return this.keyCommands[e]}},{key:"_handleSpace",value:function(e){var t=e.currentKeyboardActiveIndex;return e.currentViewPort.start<=e.currentKeyboardActiveIndex&&e.currentViewPort.end>=e.currentKeyboardActiveIndex&&(t=e.currentViewPort.start),{firstVisibleIndex:t,keyboardActiveIndex:e.currentKeyboardActiveIndex}}},{key:"_handleHome",value:function(e){return{firstVisibleIndex:e.currentDataSize.start,keyboardActiveIndex:e.currentDataSize.start}}},{key:"_handleEnd",value:function(e){var t=e.currentDataSize.end;return{keyboardActiveIndex:t,firstVisibleIndex:Math.max(e.currentDataSize.start,t-(e.currentViewPort.count-1))}}},{key:"_getFirstVisibleIndexForPaging",value:function(e,t,i,n){var o=void 0;if(e.start<=i&&i<=e.end){var r=i-e.start;o=Math.max(n-r,t)}else o=n;return o}},{key:"_handlePageUp",value:function(e){var t=Math.max(e.currentKeyboardActiveIndex-e.currentViewPort.count,e.currentDataSize.start);return{keyboardActiveIndex:t,firstVisibleIndex:this._getFirstVisibleIndexForPaging(e.currentViewPort,e.currentDataSize.start,e.currentKeyboardActiveIndex,t)}}},{key:"_handlePageDown",value:function(e){var t=Math.min(e.currentKeyboardActiveIndex+e.currentViewPort.count,e.currentDataSize.end);return{keyboardActiveIndex:t,firstVisibleIndex:this._getFirstVisibleIndexForPaging(e.currentViewPort,e.currentDataSize.start,e.currentKeyboardActiveIndex,t)}}},{key:"_handleArrowDown",value:function(e){var t=Math.min(e.currentKeyboardActiveIndex+1,e.currentDataSize.end);return{keyboardActiveIndex:t,firstVisibleIndex:Math.max(e.currentDataSize.start,t-e.currentViewPort.count+1)}}},{key:"_handleArrowUp",value:function(e){var t=Math.max(e.currentKeyboardActiveIndex-1,e.currentDataSize.start),i=t;return e.currentViewPort.start<=t&&e.currentViewPort.end>=t&&(i=e.currentViewPort.start),{keyboardActiveIndex:t,firstVisibleIndex:i}}},{key:"_handleArrowRight",value:function(e){return e.currentKeyboardActiveNode.isExpanded&&e.currentKeyboardActiveNode.isExpandable?this._handleArrowDown(e):(this._expandNode(e.currentKeyboardActiveNode),{keyboardActiveIndex:e.currentKeyboardActiveIndex,firstVisibleIndex:e.currentKeyboardActiveIndex})}},{key:"_handleArrowLeft",value:function(e){var t=e.currentKeyboardActiveNode.isExpandable&&!e.currentKeyboardActiveNode.isExpanded,i=!e.currentKeyboardActiveNode.isExpandable;return t||i?{keyboardActiveNode:e.currentKeyboardActiveNode,parentIsNewKeyboardActiveNode:!0}:(this._collapseNode(e.currentKeyboardActiveNode),{keyboardActiveIndex:e.currentKeyboardActiveIndex,firstVisibleIndex:e.currentKeyboardActiveIndex})}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(212),i(285),i(2168),i(591)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._viewModel=e.viewModel,this._getViewIndexOfNode=e.treeNodeHandler}return r(o,[{key:"getActiveNodeInfo",value:function(t){var n=this,o=new e;return this._getInitialActiveNodeIndex(t,i.ACTIVE_NODE).then((function(e){return!!e&&(o.resolve(e),!0)})).then((function(e){e||n._getInitialActiveNodeIndex(t,i.POTENTIAL_ACTIVE_NODE).then((function(e){e.isPotentialActiveNode=!e.isDefaultInitialIndex,o.resolve(e)}))})),o}},{key:"_getInitialActiveNodeIndex",value:function(e,i){var n=this._viewModel.getStateByKey(i),o=void 0;return n&&n.value?(n=n.value,o=this._getViewIndexOfNode(n)):o={isDefaultInitialIndex:!0,index:e.currentDataSize.start},t(o)}},{key:"_getViewportEnd",value:function(e,t,i){return Math.max(0,Math.min(e+t-1,i))}},{key:"_boundedScrollTo",value:function(e){var t=e,i=this._viewModel.dataSize,n=this._viewModel.viewPort.rangeList[0];return Math.max(Math.min(t,i.rows.end-n.rows.count+1),0)}},{key:"_isActiveIndexInViewPort",value:function(e){var t=this._viewModel.viewPort;return e>=t.rangeList[0].rows.start&&e<=t.rangeList[0].rows.end}},{key:"_getNodeInfoFromViewPort",value:function(e){return(0,this._viewModel.getStateByKey("currentViewPortData").value)(e)(0).value}},{key:"_updateViewPort",value:function(t,i){var o=this,r=this._boundedScrollTo(i);if(n.updateViewPort(this._viewModel,r),!n.isViewPortRangeInDataBuffer(this._viewModel)){var a=new e,s=this._viewModel.on("currentViewPortData",(function(){s.remove(),o._updateActiveNodeInViewModel(t,!0),a.resolve()}));return n.updateDataBuffer(this._viewModel),a.promise}this._updateActiveNodeInViewModel(t,!0)}},{key:"_updateActiveNodeInViewModel",value:function(e,t){var i=this._getNodeInfoFromViewPort(e);this._viewModel.setState("keyboardActive",i),this._viewModel.setState("keyboardActiveIndex",e),t&&this._viewModel.setState("shouldScroll",!0),this._viewModel.deleteState("potentialNextKeyboardActiveNode")}},{key:"setActiveNode",value:function(e,t){this._viewModel.setState("scrollTopCalc",n.dynamicScrollTopCalculator(e.index,this._viewModel)),this._isActiveIndexInViewPort(e.index)?this._updateActiveNodeInViewModel(e.index):(this._updateViewPort(e.index,t),this._viewModel.setState("shouldScrollOnKeyPressed",!0))}}]),o}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(212),i(239),i(336),i(591)],o=i.dj.d(n,(function(e,t,i,n){return function(e){function t(e,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));o._view=e,o._viewModel=i,o._dataStore=n;var r={treeScroll:function(e){return o._handleScroll(e)},treeProgrammaticScroll:function(e){return o._handleProgrammaticScroll(e)}};return o._view.registerEventCallback(r,!0),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"_scrollToIndex",value:function(e){var t=this._viewModel.getStateByKey("nodeHeightInPx").value,i=Math.min(e,Math.max(0,this._viewModel.dataSize.rows.end-(this._viewModel.viewPort.rangeList[0].rows.count-1)));this._viewModel.viewPort.size.top=i*t,this._viewModel.setState("scrollTopCalc",n.dynamicScrollTopCalculator(e,this._viewModel)),n.calculateAndUpdateViewPort(this._viewModel,this._viewModel.viewPort.size)}},{key:"_scrollToNode",value:function(e){var t=this;return this._dataStore.expandTo(e).then((function(e){if(e){var i=e.index;t._scrollToIndex(i)}}))}},{key:"_handleProgrammaticScroll",value:function(e){if(e.node||e.nodeIndex>=0)return e.node?this._scrollToNode(e.node):this._scrollToIndex(e.nodeIndex)}},{key:"_handleScroll",value:function(e){this._handleUpdateViewPort(e)}},{key:"_handleUpdateViewPort",value:function(e){var t={left:e.scrollLeft,top:e.scrollTop,width:e.clientWidth,height:e.clientHeight};n.calculateAndUpdateViewPort(this._viewModel,t)}},{key:"destroy",value:function(){}},{key:"exposedAPI",value:function(){return{}}}]),t}(i)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(336),i(5821),i(212),i(591),i(2169),i(244)],o=i.dj.d(n,(function(e,t,i,n,o,a){"use strict";return function(e){function i(e,n,r,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));s._view=e,s._viewModel=n,s._dataStore=r,s.executeAction=s.executeAction.bind(s);var l={},c={},d=a.actions[o.ACTIONS.DELETE];return d&&(c.deleteActionCompleted=function(e){return s._handleDeleteActionCompleted(e)},c.deleteActionsCompleted=function(e){return s._handleDeleteActionsCompleted(e)},s._deleteActionImpl=new t(n,r,c,d),l.deleteActionEvent=function(){return s._deleteActionImpl.performAction()}),s._view.registerEventCallback(l,!0),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"executeAction",value:function(e){switch(e){case o.ACTIONS.DELETE:this._view.executeAction(e)}}},{key:"_handleDeleteActionCompleted",value:function(e){this.emit("deleteActionCompleted",e)}},{key:"_handleDeleteActionsCompleted",value:function(e){this.emit("deleteActionsCompleted",e)}},{key:"exposedAPI",value:function(){return{}}},{key:"emits",get:function(){return["deleteActionCompleted","deleteActionsCompleted"]}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(591)],o=i.dj.d(n,(function(e){"use strict";return function(){function t(e,i,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._viewModel=e,this._dataStore=i,this._handlers=n,this._parseConfig(o)}return a(t,[{key:"_parseConfig",value:function(e){this._isObject(e)&&e.beforeAction&&(this._beforeAction=e.beforeAction)}},{key:"_isObject",value:function(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)}},{key:"performAction",value:function(){var t=this,i=e.getSelectedNodes(this._viewModel).map((function(e){var t=this;return new Promise((function(i){var n=e||{id:null};t._beforeAction?t._handleBeforeAction(e,i):t._deleteNode(n,i)}))}),this);Promise.all(i).then((function(e){var i={nodeIds:e=(e=e.filter((function(e){return e&&e.id}))).map((function(e){return e.id}))};t._handlers.deleteActionsCompleted(i)}))}},{key:"_handleBeforeAction",value:function(e,t){var i=this,n=this._beforeAction(e);if(!n.then)throw new Error("Expected: beforeAction should return a Promise");n.then((function(){i._deleteNode(e,t)}),(function(){i._handlers.deleteActionCompleted({}),t()}))}},{key:"_deleteNode",value:function(t,i){var n=this;this._dataStore.remove(null,{id:t.id}).then((function(){e.removeNodeSelectionState(n._viewModel,t),e.removeNodeFocusState(n._viewModel,t),n._handlers.deleteActionCompleted({id:t.id}),i(t)}))}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2164),i(2166),i(336),i(532)],o=i.dj.d(n,(function(e,t,i,n){return function(i){function o(t,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));r._view=t,r._viewModel=i,r._dataStore=n;var a={};return a[e.INTERACTIVE_RENDERER_CLICK]=function(e){return r._handleInteractiveClick(e)},a[e.KEYUP_TOGGLE_CHECKED_STATE]=function(e){return r._handleKeyPressEvent(e)},r._view.registerEventCallback(a,!0),r._preventDefault=r._preventDefault.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),r(o,[{key:"_preventDefault",value:function(){this._defaultPrevented=!0}},{key:"eventList",value:function(){var t={};return t[e.INTERACTIVE_CELL_CLICK]=this._handleCellClickEvent.bind(this),t}},{key:"_handleInteractiveClick",value:function(e){var i=e.renderer,n=e.node,o=e.evt,r=o.ctrlKey,a=o.meta,s=o.shiftKey,l=o.altKey;if(!(r||l||a||s)&&"handleAction"in i){var c=i.handleAction(n.value.data,{actionName:t.CLICK,target:o.target});if(c.hasChanged){var d={oldValue:c.oldValue,newValue:c.newValue};this._updateDataStore(d)}}}},{key:"_updateDataStore",value:function(e){var t=Object.assign({},e.oldValue),i=Object.assign({},e.newValue),n=Object.keys(i).reduce((function(e,n){return t[n]===i[n]?e:Object.assign(e,function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},n,i[n]))}),{});this._dataStore.update(null,{id:e.oldValue.id},n),this._emitEditCompletedEvt(t,i)}},{key:"_emitEditCompletedEvt",value:function(t,i){this.emit(e.EDIT_COMPLETED,{nodeId:t.id,oldValue:t,newValue:i})}},{key:"_isSpacePressed",value:function(e){var t=e.ctrlKey||e.metaKey||e.altKey||e.shiftKey;return e.keyCode===n.SPACE&&!t}},{key:"_handleKeyPressEvent",value:function(e){var i=this;if(this._isSpacePressed(e))return new Promise((function(e,n){var o=i._viewModel.getStateByKey("keyboardActive");i._dataStore.getNode(o.value).then((function(n){if(n){var r=i._dataStore.getLocalRowMetaData?i._dataStore.getLocalRowMetaData(n.index):{};if(r.readonly)e();else if(r.interactiveRenderer){var a=r.interactiveRenderer,s=o.value.data?o.value.data:o.value,l=a.handleAction(s,{actionName:t.KEY_PRESS});l.hasChanged&&(i._updateDataStore(l),e())}}else e()}))}))}},{key:"emits",get:function(){return[e.EDIT_COMPLETED]}}]),o}(i)}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239)],o=i.dj.d(n,(function(e){return function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._getLocalCell=e.getLocalCell,this._pagedRangeList=[],this._pagedData=[]}return r(t,[{key:"managePaging",value:function(e){var t=this._pagedRangeList;return this._pagedRangeList=e,this._reactToNewPageRanges(t,e),{dataChanged:!1,data:this._pagedData}}},{key:"dataArrived",value:function(e){return{dataChanged:this._reactToNewData(e),data:this._pagedData}}},{key:"_reactToNewPageRanges",value:function(e,t){this._discardOrphanedPagedData(e,t),this._fillInMissingPagedData(t)}},{key:"_discardOrphanedPagedData",value:function(e,t){var i=this;this._pagedData.length>t.length&&(this._pagedData=this._pagedData.slice(0,t.length));var n=function(e,t,i,n,o){for(var r=e;r<i;)o(r),r+=1;for(r=n+1;r<=t;)o(r),r+=1};t.forEach((function(t,o){var r=e[o];r?(n(r.rows.start,r.rows.end,t.rows.start,t.rows.end,(function(e){delete i._pagedData[o][e]})),(r.columns.start<t.columns.start||r.columns.end>t.columns.end)&&function(){for(var e=Math.max(t.rows.start,r.rows.start),a=Math.min(t.rows.end,r.rows.end),s=e;s<=a;)n(r.columns.start,r.columns.end,t.columns.start,t.columns.end,(function(e){delete i._pagedData[o][s][e]})),s+=1}()):i._pagedData[o]=[]}))}},{key:"_fillInMissingPagedData",value:function(t){var i=this;t.forEach((function(t,n){var o=i._pagedData[n];if(!o.range||!e.isRangeEqual(o.range,t))if(o.range&&e.isRangeInside(o.range,t))o.range=t;else{var r=!o.range||t.columns.start<o.range.columns.start||t.columns.end>o.range.columns.end,a=t.rows.start,s=t.rows.end,l=t.columns.start,c=t.columns.end;(o=i._updateCellRange(o,a,s,l,c,r,!0)).range=t,i._pagedData[n]=o}}))}},{key:"_reactToNewData",value:function(t){var i=this,n=this._pagedRangeList,o=!1;return n.forEach((function(n,r){t.forEach((function(t){if(e.doesRangeIntersect(n,t)){var a=i._pagedData[r],s=Math.max(n.rows.start,t.rows.start),l=Math.min(n.rows.end,t.rows.end),c=Math.max(n.columns.start,t.columns.start),d=Math.min(n.columns.end,t.columns.end);a=i._updateCellRange(a,s,l,c,d,!0,!1),i._pagedData[r]=a,o=!0}}))})),o}},{key:"_updateCellRange",value:function(e,t,i,n,o,r,a){for(var s=t;s<=i;s+=1){var l=e[s];if(r||!l){var c=[];if(l){for(var d=e.range.columns.start;d<n;d+=1)c[d]=e[s][d];for(var u=o+1;u<=e.range.columns.end;u+=1)c[u]=e[s][u]}for(var h=n;h<=o;h+=1)if(a&&l&&e.range.columns.start<=h&&e.range.columns.end>=h)c[h]=e[s][h];else{var p=this._getLocalCell(s,h);c[h]=this._shallowCopyIfObject(p)}e[s]=c}}return e}},{key:"_shallowCopyIfObject",value:function(e){if(!(e instanceof Object))return e;var t=Object.getPrototypeOf(e),i=Object.create(t);return Object.keys(e).forEach((function(t){i[t]=e[t]})),e.hasOwnProperty("path")&&!i.hasOwnProperty("path")&&Object.defineProperty(i,"path",{get:function(){return e.path}}),i}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(5825),i(5826),i(5828),i(239)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(){function o(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._stateCategoryIndex={},this._stateRangeIndex=new e,this._events={},this._columnDataMapper=new t,this._rowDataMapper=new t,this._dataModel=n,this._viewColumnRange=n,this._rowMetaData=new i({rankType:"row",dataViewMapper:this._rowDataMapper}),this._columnMetaData=new i({rankType:"column",dataViewMapper:this._columnDataMapper}),this._columnSpanningMetaData=new i({rankType:"column",dataViewMapper:this._columnDataMapper}),this._dataMapper=new t,this._dataModel=n,this._viewColumnRange=n.dataSize.columns,this._ownedListeners=[],this.setColumnHeaders([]),this._manageDataModelPaging=this._dataModel.managePaging.bind(this._dataModel),this._addOwnListeners(this._dataModel.on("pagedDataChanged",this._handlePagedDataChanged.bind(this))),this._addOwnListeners(this._dataModel.on("dataSizeChanged",this._emitDataSizeChanged.bind(this)))}return r(o,[{key:"setRowMetaData",value:function(e,t,i){this._rowMetaData.setViewMetaData(e,t,i),this._emitViewDataChanged()}},{key:"deleteRowMetaData",value:function(e,t){this._rowMetaData.deleteViewMetaData(e,t),this._emitViewDataChanged()}},{key:"setColumnMetaData",value:function(e,t,i){this._columnMetaData.setViewMetaData(e,t,i),this._emitViewDataChanged()}},{key:"deleteColumnMetaData",value:function(e,t){this._columnMetaData.deleteViewMetaData(e,t),this._emitViewDataChanged()}},{key:"_emitDataSizeChanged",value:function(){this._emit("dataSizeChanged",{dataSize:this.dataSize})}},{key:"_handlePagedDataChanged",value:function(e){var t=this.getStateByKey("viewBuffer");t&&(this._viewData=this._columnDataMapper.modelToViewDataMapping(e.pagedData,e.cellMetaData,t.rangeList),this._rowMetaData.setRangeList(t.rangeList),this._columnMetaData.setRangeList(t.rangeList),this._columnMetaData.setDataMetaData(e.columnMetaData),this._rowMetaData.setDataMetaData(e.rowMetaData),this._columnSpanningMetaData=e.columnSpanningMetaData,this._emitViewDataChanged())}},{key:"_emitViewDataChanged",value:function(){var e=this.getStateByKey("viewBuffer");if(e){var t=this._columnMetaData.getUnifiedMetaData(),i=this._rowMetaData.getUnifiedMetaData(),n=this._columnMetaData.getMetaDataRangeList(),o=this._rowMetaData.getMetaDataRangeList();if(this._viewData&&this._viewData.length===n.length&&this._viewData.length===o.length){for(var r=0;r<this._viewData.length;r+=1){var a=this._viewData[r].range,s=n[r],l=o[r];if(a.columns.start!==s.columns.start||a.columns.end!==s.columns.end||a.rows.start!==l.rows.start||a.rows.end!==l.rows.end)return}this._emit("viewDataChanged",{viewData:this._viewData,columnMetaData:t,rowMetaData:i,rangeList:e.rangeList,columnSpanningMetaData:this._columnSpanningMetaData})}}}},{key:"sort",value:function(e){for(var t=[],i=0;i<e.length;i+=1){var n=e[i];if(n.columnIndex<this.dataSize.columns.start||n.columnIndex>this.dataSize.columns.end)throw new Error("columnIndex is out of bounds");var o={columnIndex:this._columnDataMapper.viewToDataIndex(n.columnIndex),order:n.order,compare:n.compare};t.push(o)}this._dataModel.sort(t)}},{key:"setColumnHeaders",value:function(e){if(!e||0===e.length){if(this._columnDataMapper.viewColumnIndexToDataIndex=[],this._viewColumnRange=this._dataModel,this._dataModel.setHeaders)this._dataModel.setHeaders(e);else{var t=[n.range().setColumns(0,-1).setRows(0,1/0)];this.setState("columnHeaders",[],t)}return this._columnMetaData.setViewHeaders([]),void this._emitDataSizeChanged()}var i=[n.range().setColumns(0,e.length-1).setRows(0,1/0)];this._viewColumnRange={dataSize:i[0]},this._columnDataMapper.viewColumnIndexToDataIndex=e.map((function(e){return e.dataIndex})),this._columnMetaData.setViewHeaders(e),this._dataModel.setHeaders?this._dataModel.setHeaders(e):this.setState("columnHeaders",e,i)}},{key:"setSpanningHeaders",value:function(e){this._dataModel.setSpanningHeaders&&this._dataModel.setSpanningHeaders(e)}},{key:"getSpanningHeaders",value:function(){return this._dataModel.getSpanningHeaders?this._dataModel.getSpanningHeaders():{}}},{key:"updateHeader",value:function(e){return this._dataModel.updateHeader(e)}},{key:"getColumnHeaders",value:function(){return this._dataModel.getHeaders?this._dataModel.getHeaders()||[]:this.getStateByKey("columnHeaders").value}},{key:"setState",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(["all","keys"].indexOf(e)>=0)throw new Error("The key '"+e+"' is reserved, and cannot be used to setState");var o=n.slice(),r={value:t,rangeList:o,pointerList:[]};this._deleteState(e),this._stateCategoryIndex[e]=r,o.forEach((function(t){var n=i._stateRangeIndex.insert(t,e);r.pointerList.push(n)})),this._emit(e,this.getStateByKey(e))}},{key:"deleteState",value:function(e){this._deleteState(e),this._emit(e)}},{key:"_deleteState",value:function(e){var t=this;if(this._stateCategoryIndex[e]){var i=this._stateCategoryIndex[e];delete this._stateCategoryIndex[e],i.pointerList.forEach((function(e){t._stateRangeIndex.remove(e)}))}}},{key:"getStateByKey",value:function(e){var t=this._stateCategoryIndex[e];return t?{value:t.value,rangeList:t.rangeList.slice()}:null}},{key:"getStateByRangeList",value:function(e){var t=this,i={keys:[]};return e.forEach((function(e){t._stateRangeIndex.forEach((function(o){var r=o.key,a=o.value;i[a]||n.doesRangeIntersect(e,r)&&(i[a]=t.getStateByKey(a),i[a].firstMatch=r,i.keys.push(a))}))})),i}},{key:"on",value:function(e,t){var i=this;this._events[e]||(this._events[e]=[]),this._events[e].push(t);var n={remove:function(){var o=i._events[e].indexOf(t);i._events[e].splice(o,1),n.remove=function(){return null}}};return n}},{key:"_addOwnListeners",value:function(e){this._ownedListeners.push(e)}},{key:"_removeOwnListeners",value:function(){this._ownedListeners.forEach((function(e){return e.remove()}))}},{key:"destroy",value:function(){this._removeOwnListeners(),this._dataModel=null}},{key:"_emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._events.all,n=this._events[e],o=Object.getOwnPropertyNames(t),r={};o.forEach((function(e){r[e]=t[e]})),r.eventName=e;var a=function(e){e&&e.forEach((function(e){e(r)}))};a(n),a(i)}},{key:"_viewColumnRange",set:function(e){this._viewColumnObject=e},get:function(){return this._viewColumnObject.dataSize.columns}},{key:"viewBuffer",set:function(e){var t=e.size,i=e.rangeList.slice(),n=this._columnDataMapper.viewToModelRangeMapping(i);this.setState("viewBuffer",t,i),this._manageDataModelPaging(n)},get:function(){var e=this.getStateByKey("viewBuffer");return{size:e.value,rangeList:e.rangeList}}},{key:"viewPort",set:function(e){var t=e.size,i=e.rangeList;this.setState("viewPort",t,i)},get:function(){var e=this.getStateByKey("viewPort");return{size:e.value,rangeList:e.rangeList}}},{key:"dataSize",get:function(){var e=n.range();return e=(e=e.setColumns(this._viewColumnRange.start,this._viewColumnRange.end)).setRows(this._dataModel.dataSize.rows.start,this._dataModel.dataSize.rows.end)}}]),o}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[],o=i.dj.d(n,(function(){"use strict";var e=function(){function e(t,i){a(this,e),this._next=null,this._prev=null,this._value=i,this._key=t}return r(e,[{key:"next",get:function(){return this._next},set:function(e){this._next=e}},{key:"prev",get:function(){return this._prev},set:function(e){this._prev=e}},{key:"isLast",get:function(){return null===this._next}},{key:"isFirst",get:function(){return null===this._prev}},{key:"key",get:function(){return this._key}},{key:"value",get:function(){return this._value}}]),e}();return function(){function t(){a(this,t),this._root=null}return r(t,[{key:"insert",value:function(t,i){var n=new e(t,i);return null!==this._root&&(this._root.prev=n,n.next=this._root),this._root=n,n}},{key:"find",value:function(e){if(null===this._root)return null;for(var t=this._root;t;){if(t.key===e)return t;t=t.next}return null}},{key:"forEach",value:function(e){if(null!==this._root)for(var t=this._root;t;)e(t),t=t.next}},{key:"removeWithKey",value:function(e){var t=this.find(e);this.remove(t)}},{key:"remove",value:function(e){e&&(e.isFirst?(this._root=e.next,this.root&&!this.root.isLast&&(e.next.prev=null)):e.isLast?e.prev.next=null:(e.prev.next=e.next,e.next.prev=e.prev))}},{key:"root",get:function(){return this._root}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(5827),i(239)],o=i.dj.d(n,(function(e,t){"use strict";var i=function(e,i){var n=[],o=function(e,t){var i=[],n=[];if(0===t.length)n=e.slice(0);else{if(e.forEach((function(e){if(e.start>=t.length||e.end>=t.length)throw new Error("RangeIndex exceeds dataIndexMap size");var n=t.slice(e.start,e.end+1);i=i.concat(n)})),0===i.length)return[];i.sort((function(e,t){return e-t}));var o={start:i[0],end:i[0]};n.push(o);for(var r=1;r<i.length;r+=1){var a=i[r];o.end+1===a||o.end===a?o.end=a:(o={start:a,end:a},n.push(o))}}return n}(e.map((function(e){return e.columns})),i);return n=n.concat(o.map((function(i){return t.range().setColumns(i.start,i.end).setRows(e[0].rows.start,e[0].rows.end)})))},n=function(e,n,o){var r=i([e],o),a=[];return r.forEach((function(e){for(var i=!1,o=0;o<n.length;o+=1)if(t.isRangeInside(e,n[o])){i=!0,a.push(o);break}if(!i)throw new Error("Data Range to view range mapping not found")})),a};return function(){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._viewColumnIndexToDataIndex=[]}return r(o,[{key:"viewToModelRangeMapping",value:function(e){var n=this,o=[];return t.groupRangeListByRow(e).forEach((function(e){var t=i(e,n.viewColumnIndexToDataIndex);o=o.concat(t)})),o}},{key:"modelToViewDataMapping",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments[2],a=[],s=e.map((function(e){return e.range}));return r.forEach((function(r,l){var c=void 0;(c=n(r,s,t.viewColumnIndexToDataIndex)).sort((function(t,i){return e[t].range.columns.start-e[i].range.columns.start}));var d=[];a[l]=function(e){if(e<d.length)return d[e];throw new Error("No Data Found for rowIndex: "+e)},a[l].range=r;for(var u=r.rows.start;u<=r.rows.end;u+=1){var h=o._createRow(u,c,e,i,t.viewColumnIndexToDataIndex);d[u]=h}})),a}},{key:"viewToDataIndex",value:function(e){var t=this.viewColumnIndexToDataIndex;return t.length>0?t[e]:e}},{key:"viewColumnIndexToDataIndex",set:function(e){this._viewColumnIndexToDataIndex=e},get:function(){return this._viewColumnIndexToDataIndex}}],[{key:"_createRow",value:function(t,i,n,o,r){var a=i.map((function(e){var i=n[e],r=[];return o&&(r=o[e]),{start:i.range.columns.start,end:i.range.columns.end,cells:i[t],metaData:r[t]||[]}}));return e(a,r)}}]),o}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";var e={};return function(t,i){if(t.length<0)throw new Error("No rowData Present");var n=function n(o){var r=void 0;r=0===i.length?o:i[o];var a=n._lastAccessRowDataIndex;do{if(r>=t[a].start&&r<=t[a].end)return{value:t[a].cells[r],metaData:t[a].metaData[r]||e,isEqual:function(e){return e.value===this.value&&e.metaData===this.metaData}};a+=1,a%=t.length}while(a!==n._lastAccessRowDataIndex);throw new Error("No Data Found for cellIndex: "+o)};return n._lastAccessRowDataIndex=0,n._rowData=t,n._dataIndexMap=i,n.isEqual=function(e){if(e._rowData.length!==t.length||i!==e._dataIndexMap)return!1;for(var o=0;o<=t.length;o+=1)if(n._rowData[o].data!==t[o].data)return!1;return!0},n}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){"use strict";return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._flatRangeList=[],this._headerMetaData=[],this._dataMetaData=[],this._viewMetaData=[],this._rankType=t.rankType||"row","row"===this._rankType?(this._flattenRangeDimension=function(e){return e.setColumns(0,0)},this._flattenData=function(e,t,i){return e[t](i)(0)}):"column"===this._rankType&&(this._flattenRangeDimension=function(e){return e.setRows(0,0)},this._flattenData=function(e,t,i){return e[t](0)(i)}),this._dataViewMapper=t.dataViewMapper}return r(e,[{key:"setViewHeaders",value:function(e){var t=e.slice(0);this._headerMetaData=t}},{key:"setRangeList",value:function(e){this._flatRangeList=e.map(this._flattenRangeDimension)}},{key:"setViewMetaData",value:function(e,t,i){this._viewMetaData[i]||(this._viewMetaData[i]={version:0,value:{}}),this._viewMetaData[i].value[e]=t,this._viewMetaData[i].version+=1}},{key:"deleteViewMetaData",value:function(e,t){this._viewMetaData[t]&&(delete this._viewMetaData[t].value[e],this._viewMetaData[t].version+=1)}},{key:"setDataMetaData",value:function(e){var t=[];e&&(t=this._transform(e,this._dataViewMapper,this._flattenData)),this._dataMetaData=t}},{key:"getMetaDataRangeList",value:function(){return this._flatRangeList}},{key:"getUnifiedMetaData",value:function(){for(var e=this,t=this._dataMetaData,i=this._headerMetaData,n=[],o=function(e,t){return Object.keys(e).forEach((function(i){t[i]=e[i]})),t},r=function(r){var a=r;n.push((function(n){var r=t[a](n).value;r=Object(r);var s={};s=o(r,s);var l={_dataMetaData:t[a](n),isEqual:function(e){return this._headerMetaData===e._headerMetaData&&this._viewMetaDataVersion===e._viewMetaDataVersion&&this._dataMetaData.isEqual(e._dataMetaData)}};if(i[n]){var c=i[n];s=o(c,s),l._headerMetaData=i}if(e._viewMetaData[n]){var d=e._viewMetaData[n].value,u=e._viewMetaData[n].version;Object.keys(d).forEach((function(e){s[e]=d[e]})),l._viewMetaDataVersion=u}return l.value=s,l}))},a=0;a<t.length;a+=1)r(a);return n}},{key:"_transform",value:function(e,t,i){for(var n=t.modelToViewDataMapping(e,e,this._flatRangeList),o=[],r=i.bind(this,n),a=0;a<n.length;a+=1){var s=r.bind(this,a);o.push(s)}return o}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2170),i(5831)],o=i.dj.d(n,(function(e,t){"use strict";return Object.freeze({DefaultEditor:e,DesignTimeEditor:t})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(532)],o=i.dj.d(n,(function(e){"use strict";return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"config",value:function(e,t){return function(i,n){return Object.keys(e).forEach((function(t){n[t]=e[t]})),t(i,n)}}},{key:"_shallowCloneObject",value:function(e){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}},{key:"decorateEditor",value:function(e){var t=this._handleContextMenu(e),i=this._handleKeyDown(e),n=this._handleKeyUp(e),o=this._handleBlur(e),r=this._handleInput(e),a=this._handleMouseDown(e);e._configureListeners([{event:"contextmenu",handler:t},{event:"blur",handler:o},{event:"input",handler:r},{event:"keydown",handler:i},{event:"keyup",handler:n},{event:"mousedown",handler:a}])}},{key:"_handleContextMenu",value:function(e){return function(e){e.stopPropagation()}}},{key:"_handleMouseDown",value:function(e){return function(e){e.stopPropagation()}}},{key:"_handleKeyUp",value:function(e){return function(e){e.stopPropagation()}}},{key:"_handleKeyDown",value:function(t){return function(i){switch(i.stopPropagation(),i.keyCode){case e.ENTER:t._validateAndCompleteEdit(!0);break;case e.ESCAPE:t._getTextField().value=t._oldValue.label,t._emitEditCompleteEvent(t._oldValue,t._oldValue);break;case e.END:if(!i.shiftKey){var n=t._getInputNode().value.length;t._getInputNode().setSelectionRange(n,n),i.preventDefault()}break;case e.HOME:i.shiftKey||(t._getInputNode().setSelectionRange(0,0),i.preventDefault());break;case e.PAGE_UP:case e.PAGE_DOWN:i.preventDefault();break;case e.ARROW_UP:case e.ARROW_RIGHT:case e.ARROW_DOWN:case e.ARROW_LEFT:t.arrowKeyPressed&&t.arrowKeyPressed(i)}}}},{key:"_handleInput",value:function(e){return function(t){t.currentTarget.size=t.target.value.length||1,e._handleTextChange(t.target.value)}}},{key:"_handleBlur",value:function(e){return function(t){e._validateAndCompleteEdit(!1)}}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(336),i(532),i(2170)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"setFocus",value:function(){this._textField.focus(),this._config.firstChar?(this._textField.value=this._config.firstChar,this._textField.setSelectionRange(this._textField.value.length,this._textField.value.length)):this._textField.select()}}]),t}(i)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return Object.freeze({FIRST_NODE:{},LAST_NODE:{}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(230),i(213),i(223),i(210),i(349),i(381),i(5834),i(5835),i(404),i(298),i(1151),i(5893),i(284),i(295),i(287)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e([n,l,c,u,h,p,m],{constructor:function(){},createView:function(){this.inherited(arguments);var e=new d({});this._setDijitHandle(e),this._addViewListeners(),this.fireViewReadyEvent()},setProperties:function(e){this.inherited(arguments)},_Editable:function(e){e=g.toJSBoolean(this.WidgetData.getProperty("Editable")),this.widget.set("editable",e)},_InputFormat:function(e){this.widget.set("inputFormat",e)},_ViewLanguage:function(e){this.widget.set("ViewLanguage",e)},_Value:function(e){var t=f.matlabDateToJSDate(e);Array.isArray(t)&&(t=t[0]),this.widget.set("value",t)},_Limits:function(e){var t=f.matlabDateToJSDate(e);this.widget.set("limits",t)},_DisabledDates:function(e){var t=f.matlabDateToJSDate(e);Array.isArray(t)||(t=[t]),this.widget.set("disabledDates",t)},_DisabledDaysOfWeek:function(e){Array.isArray(e)||(e=[e]);for(var t=[],i=0;i<e.length;i++)t.push(e[i]-1);var n=null;e.length>0&&(n=function(e){return t.indexOf(e.getDay())>=0}),this.widget.set("dateDisableCallback",n)},_DisplayFormat:function(e){this.widget.set("displayFormat",e)},getFontStyledDomNode:function(){return this.widget.inputNode},_computeMinimumSize:function(){return[80,0]},_computeFitSize:function(){var e=_.getWidgetFontStyleMap(this.getPeerNode()),t=_.getTextPosition("yyyy年 MM月 dd日",e),i=t.w,n=t.h;return i+=s.DATEPICKER.OVERALL_WIDTH_PADDING,n+=s.DATEPICKER.OVERALL_HEIGHT_PADDING,[(i+=s.DATEPICKER.ARROW_NODE_WIDTH)+10,n+6]},_editPropertiesAffectingFitSize:function(e){return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(213)],o=i.dj.d(n,(function(e,t,i){return e(null,{_addViewListeners:function(){this.own(t(this.widget.dateWidget,"change",this._handleValueChanged.bind(this)))},_handleValueChanged:function(e){var t;t=null===e.mwEventData.newValue?"NaT":{Year:e.mwEventData.newValue.getFullYear(),Month:e.mwEventData.newValue.getMonth()+1,Day:e.mwEventData.newValue.getDate()},this.handleUserInteraction("ValueChanged",{Value:t},{Value:t})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(210),i(213),i(211),i(230),i(316),i(1508),i(374),i(952),i(358),i(289),i(215),i(479),i(837),i(349)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([p,s,c,d,u,h],{backgroundColor:"rgb(255, 255, 255)",baseClass:"vc-datepicker",disabled:!1,editable:!0,placeholder:"",constructor:function(e,t){this.dateWidget=new l(e)},_getInteractionWidget:function(){return this.dateWidget},postCreate:function(){this.inherited(arguments),n.add(this.domNode,this.baseClass)},buildRendering:function(){this.domNode=r.toDom("<div></div>"),r.place(this.dateWidget.domNode,this.domNode,"first"),this.inherited(arguments),this._setBackgroundColorNode()},startup:function(){this.inherited(arguments),this.dateWidget.startup()},_setBackgroundColorNode:function(){this.backgroundColorNode&&(o.set(this.backgroundColorNode,"backgroundColor",""),o.set(this.backgroundColorNode,"box-shadow","")),this.editable?this.backgroundColorNode=this.dateWidget.textFieldContainerNode:this.backgroundColorNode=this.dateWidget.domNode,this.set("backgroundColor",this.backgroundColor);var e=this._getNodeToApplyFontProperties();e&&o.set(e,{"background-color":"rgba(0, 0, 0, 0)"})},_setValueAttr:function(e){this.dateWidget.set("value",e,!1)},_setEditableAttr:function(e){this._forwardPropertySet("editable",e),this._setBackgroundColorNode()},_setViewLanguageAttr:function(e){this._forwardPropertySet("locale",e),this.dateWidget.set("startingDayOfWeek",0),this.dateWidget.set("weekendDays",[6,0]),this.dateWidget.set("displayFormat",this.displayFormat),this.dateWidget.set("inputFormat",this.inputFormat)},_getPreferredSizeAttr:function(){return g.calculateInputPreferredSize(this.dateWidget.inputNode,m.DATEPICKER.OVERALL_HEIGHT_PADDING,m.DATEPICKER.OVERALL_WIDTH_PADDING)},_setLimitsAttr:function(e){this._forwardPropertySet("limits",e)},_setDisabledDatesAttr:function(e){this._forwardPropertySet("disabledDates",e)},_setDateDisableCallbackAttr:function(e){this._forwardPropertySet("dateDisableCallback",e)},_setDisplayFormatAttr:function(e){this._forwardPropertySet("displayFormat",e)},_setInputFormatAttr:function(e){this._forwardPropertySet("inputFormat",e),this._updatePlaceholderForDateWidget(this.placeholder)},_setPlaceholderAttr:function(e){this._updatePlaceholderForDateWidget(e)},_updatePlaceholderForDateWidget:function(e){null!=e&&0!==e.length||!this.inputFormat?this._forwardPropertySet("placeholder",e):(this.dateWidget.set("placeholder",this.dateWidget._adjustFormat(this.inputFormat)),this._set("placeholder",""))},_setDisabledAttr:function(e){this._forwardPropertySet("disabled",e)},_setWidthAttr:function(e){this._forwardPropertySet("width",e)},_setHeightAttr:function(e){this._forwardPropertySet("height",e)},_forwardPropertySet:function(e,t){this.dateWidget&&(this.dateWidget.set(e,t),this._set(e,t))},_getNodeToApplyFontProperties:function(){return this.dateWidget.inputNode},_handleHoverChange:function(){this.editable||this.inherited(arguments)},_handleActiveChange:function(){this.editable||this.inherited(arguments)},_handleCheckedChange:function(){this.editable||this.inherited(arguments)},_handleOpenedChange:function(){this.editable||this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(224),i(958),i(1275),i(227),i(211),i(225),i(240),i(223),i(206),i(221),i(236),i(215),i(216),i(307),i(286),i(243),i(2171),i(1160),i(5881),i(5882),i(487),i(865)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){var C=e([h,p,f],{templateString:b,baseClass:"mwCalendar",dowTemplateString:'<th class="mwCalendarDayLabelTemplate" role="columnheader" scope="col"><span class="mwCalendarDayLabel">${d}</span></th>',dateTemplateString:'<td role="gridcell" data-dojo-attach-point="dateCells"><span class="mwCalendarDateLabel" data-dojo-attach-point="dateLabels"></span></td>',weekTemplateString:'<tr class="mwCalendarWeekTemplate" role="row">${d}${d}${d}${d}${d}${d}${d}</tr>',value:null,dayWidth:"short",tabIndex:"1",currentFocus:new Date((new Date).setHours(0,0,0,0)),_setSummaryAttr:"gridNode",locale:v.getBrowserDefaultLocale(),_dateSelected:function(e){var t=this._get("value");this.set("value",e);var i=this._get("value");this.emit("dateselected",{mwEventData:{propertyName:"value",oldValue:t,newValue:i}})},_setValueAttr:function(e){""!==e&&("string"==typeof e&&(e=n.fromISOString(e)),e=this._patchDate(e),_.isInvalidDate(e)||_.isDisabledDate(e,this.constraints)?(this._set("value",null),this._markSelectedDates([])):(this._set("value",e),this.set("currentFocus",e),this._markSelectedDates([e])))},_patchDate:function(e){return e&&(_.isInvalidDate(e)&&(e=new Date(e)),e=_.copyDate(e)),e},_setText:function(e,t){for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(e.ownerDocument.createTextNode(t))},_populateGrid:function(){var e=_.copyDate(this.currentFocus);e.setDate(1);var n=(e=this._patchDate(e)).getDay(),o=i.getDaysInMonth(e),r=i.getDaysInMonth(i.add(e,"month",-1)),a=new Date,s=this.constraints.dayOffset>=0?this.constraints.dayOffset:_.getFirstDayOfWeek(this.locale);if(s>n&&(s-=7),!this.summary){var l=v.getNames("months","wide","standAlone",this.locale,e);this.gridNode.setAttribute("summary",l[e.getMonth()])}this._date2cell={},t.forEach(this.dateCells,(function(t,l){var c,d=l+s,u=_.copyDate(e),h="mwCalendar",p=0;d<n?(c=r-n+d+1,p=-1,h+="Previous"):d>=n+o?(c=d-n-o+1,p=1,h+="Next"):(c=d-n+1,h+="Current"),p&&(u=i.add(u,"month",p)),u.setDate(c),u.getDate()!==c&&(u.setHours(1,0,0,0),u.setDate(c)),u=this._patchDate(u),i.compare(u,a,"date")||(h="mwCalendarCurrentDate "+h),_.isDisabledDate(u,this.constraints)?(h="mwCalendarDisabledDate "+h,t.setAttribute("aria-disabled","true")):(h="mwCalendarEnabledDate "+h,t.removeAttribute("aria-disabled"),t.setAttribute("aria-selected","false")),_.isWeekend(u,this.locale,this.constraints.weekendDays)&&(h="mwCalendarWeekendDate "+h),t.className=h+"Month mwCalendarDateTemplate";var f=u.valueOf();this._date2cell[f]=t,t.dijitDateValue=f,this._setText(this.dateLabels[l],u.getDateLocalized?u.getDateLocalized(this.locale):u.getDate())}),this)},_populateControls:function(){var e=_.copyDate(this.currentFocus);e.setDate(1),this.monthWidget.set("value",e.getMonth());var t=e.getFullYear();this.yearWidget.set("year",t)},_createMonthWidget:function(e){var t=new C._MonthComboBox({id:this.id+"_mcb",tabIndex:2,locale:this.locale,editable:!1,class:"mwCalendarMonthControl",description:y.monthTooltipText},this.monthNode);return this.mcb=t,t.own(t.on("change",this._onMonthSelect.bind(this))),t.own(t.on("menuclosed",function(e){e.stopPropagation(),e.preventDefault();var t=document.getElementById(this.id+"_mcb");t.classList.contains("mwComboBoxFocused")&&(this._abortDatePickerBlur=!0,setTimeout(function(){this._abortDatePickerBlur=!1}.bind(this),200),t.focus())}.bind(this))),t},_createYearWidget:function(){var e=new C._YearComboBox({id:this.id+"_ycb",tabIndex:3,editable:!1,class:"mwCalendarYearControl",description:y.yearTooltipText},this.yearNode);return this.ycb=e,e.own(e.on("change",this._onYearSelect.bind(this))),e.own(e.on("menuclosed",function(e){e.stopPropagation(),e.preventDefault();var t=document.getElementById(this.id+"_ycb");t.classList.contains("mwComboBoxFocused")&&(this._abortDatePickerBlur=!0,setTimeout(function(){this._abortDatePickerBlur=!1}.bind(this),200),t.focus())}.bind(this))),e},buildRendering:function(){var e=this.constraints.dayWidth?this.constraints.dayWidth:"short",t=this.dowTemplateString,i=v.getNames("days",e,"standAlone",this.locale),n=this.constraints.dayOffset>=0?this.constraints.dayOffset:_.getFirstDayOfWeek(this.locale);this.dayCellsHtml=u.substitute([t,t,t,t,t,t,t].join(""),{d:""},(function(){return i[n++%7]}));var r=u.substitute(this.weekTemplateString,{d:this.dateTemplateString});this.dateRowsHtml=[r,r,r,r,r,r].join(""),this.dateCells=[],this.dateLabels=[],this.inherited(arguments),o.setSelectable(this.domNode,!1),this.domNode.setAttribute("data-test-locale",this.locale);var a=_.copyDate(this.currentFocus);this.monthWidget=this._createMonthWidget(),this.yearWidget=this._createYearWidget(),this.set("currentFocus",a,!1),this.previousMonthButton=new m({icon:"mwCalendarDecrementMonthIcon",class:"mwCalendarDecrementMonth",height:22,description:y.previousMonthTooltipText},this.decrementMonthNode),this.todayButton=new m({icon:"mwCalendarTodayMonthIcon",class:"mwCalendarTodayMonth",height:22,description:y.todayTooltipText},this.todayMonthNode),this.nextMonthButton=new m({icon:"mwCalendarIncrementMonthIcon",class:"mwCalendarIncrementMonth",height:22,description:y.nextMonthTooltipText},this.incrementMonthNode),this.own(c(this.domNode,"click",this._calendarClick.bind(this)),c(this.previousMonthButton,"click",this._onDecrementMonthClick.bind(this)),c(this.todayButton,"click",this._onTodayMonthClick.bind(this)),c(this.nextMonthButton,"click",this._onIncrementMonthClick.bind(this)))},startup:function(){this.inherited(arguments),this.previousMonthButton.startup(),this.todayButton.startup(),this.nextMonthButton.startup(),this.mcb.startup(),this.ycb.startup()},postCreate:function(){this.inherited(arguments),this.own(c(this.domNode,"keydown",this._onKeyDown.bind(this)),c(this.dateRowsNode,"mouseover",this._onDayMouseOver.bind(this)),c(this.dateRowsNode,"mouseout",this._onDayMouseOut.bind(this)),c(this.dateRowsNode,"mousedown",this._onDayMouseDown.bind(this)),c(this.dateRowsNode,"mouseup",this._onDayMouseUp.bind(this))),this.previousMonthButton.domNode.setAttribute("tabindex","4"),this.todayButton.domNode.setAttribute("tabindex","5"),this.nextMonthButton.domNode.setAttribute("tabindex","6")},_onMonthSelect:function(e){e.stopPropagation(),e.preventDefault();var t=_.copyDate(this.currentFocus);t.setDate(1);var n=e.mwEventData.newValue;t.setMonth(n);var o=i.getDaysInMonth(t),r=this.currentFocus.getDate();t.setDate(Math.min(r,o)),this._setCurrentFocusAttr(t,!1),this.monthWidget.domNode.focus()},_onYearSelect:function(e){e.stopPropagation(),e.preventDefault();var t=_.copyDate(this.currentFocus);t.setDate(1),t.setFullYear(e.mwEventData.newValue);var n=i.getDaysInMonth(t),o=this.currentFocus.getDate();t.setDate(Math.min(o,n)),this._setCurrentFocusAttr(t,!1),this.yearWidget.domNode.focus()},_onDayMouseOver:function(e){var t=e.target.classList.contains("mwCalendarDateLabel")?e.target.parentNode:e.target;t&&(t.dijitDateValue&&!t.classList.contains("mwCalendarDisabledDate")||t===this.previousYearLabelNode||t===this.nextYearLabelNode)&&(t.classList.add("mwCalendarHoveredDate"),this._currentNode=t)},_onDayMouseOut:function(e){this._currentNode&&(e.relatedTarget&&e.relatedTarget.parentNode===this._currentNode||(this._currentNode.classList.remove("mwCalendarHoveredDate"),this._currentNode.classList.remove("mwCalendarActiveDate"),this._currentNode=null))},_onDayMouseDown:function(e){var t=e.target.parentNode;t&&t.dijitDateValue&&!t.classList.contains("mwCalendarDisabledDate")&&(t.classList.add("mwCalendarActiveDate"),this._currentNode=t)},_onDayMouseUp:function(e){var t=e.target.parentNode;t&&t.dijitDateValue&&t.classList.remove("mwCalendarActiveDate")},handleKey:function(e){var t,n=-1,o=this.currentFocus;switch(e.keyCode){case l.RIGHT_ARROW:n=1;case l.LEFT_ARROW:t="day",this.isLeftToRight()||(n*=-1);break;case l.DOWN_ARROW:n=1;case l.UP_ARROW:t="week";break;case l.PAGE_DOWN:n=1;case l.PAGE_UP:t=e.ctrlKey||e.altKey?"year":"month";break;case l.END:o=i.add(o,"month",1),t="day";case l.HOME:(o=_.copyDate(o)).setDate(1);break;case l.TAB:case l.ENTER:case l.SPACE:return!1;default:return!0}return t&&(o=i.add(o,t,n)),this._setCurrentFocusAttr(o),!1},_onKeyDown:function(e){var t=e.target.getAttribute("widgetid");if(t!==this.mcb.id&&t!==this.ycb.id&&!this.handleKey(e)){if((e.keyCode===l.ENTER||e.keyCode===l.SPACE)&&document.activeElement.id!==this.previousMonthButton.id&&document.activeElement.id!==this.todayButton.id&&document.activeElement.id!==this.nextMonthButton.id)return;if(e.keyCode===l.TAB){if(e.stopPropagation(),e.shiftKey){var i=this._getNodeByDate(this.currentFocus);if(document.activeElement===i)return this.nextMonthButton.domNode.focus(),void e.preventDefault()}else if(document.activeElement===this.nextMonthButton.domNode)return this._setCurrentFocusAttr(this.currentFocus),void e.preventDefault();return}e.stopPropagation(),e.preventDefault()}},_onIncrementMonthClick:function(){this._setCurrentFocusAttr(i.add(this.currentFocus,"month",1),!1)},_onDecrementMonthClick:function(e){this._setCurrentFocusAttr(i.add(this.currentFocus,"month",-1),!1)},_onTodayMonthClick:function(){var e=(new Date).setHours(0,0,0,0);this._setCurrentFocusAttr(e,!1)},_setCurrentFocusAttr:function(e,t){var n=this.currentFocus,o=this._getNodeByDate(n);e=this._patchDate(e),this._set("currentFocus",e),this._date2cell&&0===i.difference(n,e,"month")||(this._populateGrid(),this._populateControls(),this._markSelectedDates([this.value]));var r=this._getNodeByDate(e);r.setAttribute("tabIndex",this.tabIndex),(this.focused&&!1!==t||t)&&r.focus(),o&&o!==r&&(d("webkit")?o.setAttribute("tabIndex","-1"):o.removeAttribute("tabIndex"))},_calendarClick:function(){document.activeElement&&(document.activeElement.id===this.mcb.id||document.activeElement.id===this.ycb.id||document.activeElement.parentElement&&document.activeElement.parentElement.parentElement&&document.activeElement.parentElement.parentElement.parentElement&&(document.activeElement.parentElement.parentElement.parentElement.id===this.mcb.id+"_dropdown"||document.activeElement.parentElement.parentElement.parentElement.id===this.ycb.id+"_dropdown")||document.activeElement.id===this.previousMonthButton.id||document.activeElement.id===this.todayButton.id||document.activeElement.id===this.nextMonthButton.id)||this.focus()},focus:function(){this._setCurrentFocusAttr(this.currentFocus,!0)},_onDayClick:function(e){e.stopPropagation(),e.preventDefault();for(var t=e.target;t&&!t.dijitDateValue;t=t.parentNode);if(t&&!t.classList.contains("mwCalendarDisabledDate")){var i=this._patchDate(t.dijitDateValue);this._dateSelected(i)}t&&t.classList.contains("mwCalendarDisabledDate")&&this._setCurrentFocusAttr(t.dijitDateValue)},_getNodeByDate:function(e){return(e=this._patchDate(e))&&this._date2cell?this._date2cell[e.valueOf()]:null},_markSelectedDates:function(e){function i(e,t){e?t.classList.add("mwCalendarSelectedDate"):t.classList.remove("mwCalendarSelectedDate"),t.setAttribute("aria-selected",e?"true":"false")}t.forEach(this._selectedCells||[],i.bind(null,!1)),this._selectedCells=t.filter(t.map(e,this._getNodeByDate,this),(function(e){return e})),t.forEach(this._selectedCells,i.bind(null,!0))}});return C._MonthComboBox=e(g,{postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("tabindex",this.tabIndex),this._monthNames=v.getNames("months","wide","standAlone",this.locale);var e=[];this._monthNames.forEach((function(t,i){e.push({label:t,value:i})})),this.set("items",e),this.menu.domNode.classList.add("mwCalendarMonthPopup"),this.set("width",100)},_setValueAttr:function(e){""!==e&&this.inherited(arguments)},_setMonthAttr:function(e){this.set("value",e.getMonth())},_openComboBoxMenu:function(){this.inherited(arguments);var e=void 0!==this._get("value")?this._getSelectedItemFromValue(this._get("value")):void 0;if(void 0!==e&&this.get("menu").getChildren().length>0){var t=this.get("menu").getChildren()[e.index],i=this.get("menu")._popupWrapper;t&&i&&(i.scrollTop=t.offsetTop)}},_handleDomNodeKeyDown:function(e){e.keyCode!==l.TAB?this.inherited(arguments):e.stopPropagation()},closeMenu:function(){var e=this._comboBoxMenuOpened;this.inherited(arguments),e&&this.emit("menuclosed",{})}}),C._YearComboBox=e(g,{postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("tabindex",this.tabIndex),this.menu.domNode.classList.add("mwCalendarYearPopup")},_setYearAttr:function(e){for(var t=[],i=e-20;i<=e+20;i++)t.push({label:i>=0?u.pad(i.toString(),4):i.toString(),value:i});this.set("items",t),this.set("value",e),this.set("width",65)},_setValueAttr:function(e){""!==e&&this.inherited(arguments)},_openComboBoxMenu:function(){this.inherited(arguments);var e=void 0!==this._get("value")?this._getSelectedItemFromValue(this._get("value")):void 0;if(void 0!==e&&this.get("menu").getChildren().length>0){var t=this.get("menu").getChildren()[e.index],i=this.get("menu")._popupWrapper;t&&i&&(i.scrollTop=t.offsetTop)}},_handleDomNodeKeyDown:function(e){e.keyCode!==l.TAB?this.inherited(arguments):e.stopPropagation()},closeMenu:function(){var e=this._comboBoxMenuOpened;this.inherited(arguments),e&&this.emit("menuclosed",{})}}),C}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(224),i(5838),i(5839),i(5840),i(5841),i(5842),i(5843),i(5844),i(5845),i(5846),i(5847),i(5848),i(5849),i(5850),i(5851),i(5852),i(5853),i(5854),i(5855),i(5856),i(5857),i(5858),i(5859),i(5860),i(5861),i(5862),i(5863),i(5864),i(5865),i(5866),i(5867),i(5868),i(5869),i(5870),i(5871),i(5872),i(5873),i(5874),i(5875),i(5876),i(5877),i(5878),i(5879),i(5880)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U,W,G,z){var q={root:n,ar:o,bs:r,ca:a,cs:s,da:l,de:c,el:d,en:u,"en-au":h,"en-ca":p,"en-gb":f,es:g,fi:m,fr:_,"fr-ch":v,he:b,hr:y,hu:C,it:T,ja:E,"ja-jp":S,ko:w,"ko-kr":I,mk:A,nb:x,nl:N,pl:L,pt:D,"pt-pt":M,ro:P,ru:O,sk:R,sl:k,sr:F,sv:B,th:H,tr:V,zh:j,"zh-cn":U,"zh-hant":W,"zh-hk":G,"zh-tw":z};return{getGregorianBundle:function(e){var i={},n=q.root.root;i=t.mixin(i,n);var o="en",r=e?e.toLowerCase():dojo.locale.toLowerCase();r.replace(/_/g,"-").toLowerCase();var a=r.split("-",3);return a.length>0&&(o=a[0].toLowerCase()),void 0!==q[o]&&(n=q[o],i=t.mixin(i,n)),r!==o&&void 0!==q[r]&&(n=q[r],i=t.mixin(i,n)),i}}}),e,t),e.exports=o},function(e,t,i){e.exports={root:{"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"now","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Day of the Week","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"y-MM-dd, E","field-wed-relative+0":"this Wednesday","field-wed-relative+1":"next Wednesday","dateFormatItem-GyMMMEd":"G y MMM d, E","dateFormatItem-MMMEd":"MMM d, E",eraNarrow:["BCE","CE"],"field-tue-relative+-1":"last Tuesday","days-format-short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormat-long":"y MMMM d","field-fri-relative+-1":"last Friday","field-wed-relative+-1":"last Wednesday","months-format-wide":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"y MMMM d, EEEE","field-thu-relative+-1":"last Thursday","dateFormatItem-Md":"MM-dd","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","dayPeriods-format-wide-noon":"noon","dateFormatItem-yMd":"y-MM-dd","field-era":"Era","dateFormatItem-yM":"y-MM","months-standAlone-wide":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"timeFormat-short":"HH:mm","quarters-format-wide":["Q1","Q2","Q3","Q4"],"dateFormatItem-yQQQQ":"y QQQQ","timeFormat-long":"HH:mm:ss z","field-year":"Year","dateFormatItem-yMMM":"y MMM","dateTimeFormats-appendItem-Era":"{1} {0}","field-hour":"Hour","months-format-abbr":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"field-sat-relative+0":"this Saturday","field-sat-relative+1":"next Saturday","timeFormat-full":"HH:mm:ss zzzz","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","field-day-relative+0":"today","field-thu-relative+0":"this Thursday","field-day-relative+1":"tomorrow","field-thu-relative+1":"next Thursday","dateFormatItem-GyMMMd":"G y MMM d","dateFormatItem-H":"HH","months-standAlone-abbr":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["Q1","Q2","Q3","Q4"],"dateFormatItem-Gy":"G y","dateFormatItem-M":"L","days-standAlone-wide":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayPeriods-format-abbr-noon":"noon","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"this Sunday","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"next Sunday","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],eraAbbr:["BCE","CE"],"field-minute":"Minute","field-dayperiod":"Dayperiod","days-standAlone-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"yesterday","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"a","dateFormatItem-h":"h a","dateFormatItem-MMMd":"MMM d","dateFormatItem-MEd":"MM-dd, E","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"this Friday","field-fri-relative+1":"next Friday","field-day":"Day","days-format-wide":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"field-zone":"Zone","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-y":"y","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","field-year-relative+-1":"last year","field-month-relative+-1":"last month","dateTimeFormats-appendItem-Year":"{1} {0}","dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],eraNames:["BCE","CE"],"dateFormatItem-yMMMd":"y MMM d","days-format-narrow":["S","M","T","W","T","F","S"],"field-month":"Month","days-standAlone-narrow":["S","M","T","W","T","F","S"],"dateFormatItem-MMM":"LLL","field-tue-relative+0":"this Tuesday","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","field-tue-relative+1":"next Tuesday","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"this Monday","field-mon-relative+1":"next Monday","dateFormat-short":"y-MM-dd","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","dayPeriods-format-narrow-noon":"n","field-second":"Second","field-sat-relative+-1":"last Saturday","dateFormatItem-yMMMEd":"y MMM d, E","field-sun-relative+-1":"last Sunday","field-month-relative+0":"this month","field-month-relative+1":"next month","dateTimeFormats-appendItem-Timezone":"{0} {1}","dateFormatItem-Ed":"d, E","field-week":"Week","dateFormat-medium":"y MMM d","field-week-relative+-1":"last week","field-year-relative+0":"this year","field-year-relative+1":"next year","dayPeriods-format-narrow-pm":"p","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"G y MMM","field-mon-relative+-1":"last Monday","field-week-relative+0":"this week","field-week-relative+1":"next week"},ar:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,"en-au":!0,"en-ca":!0,"en-gb":!0,es:!0,fi:!0,fr:!0,"fr-ch":!0,he:!0,hr:!0,hu:!0,it:!0,ja:!0,ko:!0,mk:!0,nb:!0,nl:!0,pl:!0,pt:!0,"pt-pt":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,zh:!0,"zh-hant":!0,"zh-hk":!0,"zh-tw":!0}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"months-format-narrow":["ي","ف","م","أ","و","ن","ل","غ","س","ك","ب","د"],"field-second-relative+0":"الآن","quarters-standAlone-narrow":["١","٢","٣","٤"],"field-weekday":"اليوم","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E، d/‏M/‏y","field-wed-relative+0":"الأربعاء الحالي","field-wed-relative+1":"الأربعاء التالي","dateFormatItem-GyMMMEd":"E، d MMM، y G","dateFormatItem-MMMEd":"E، d MMM",eraNarrow:["ق.م","م"],"dateFormatItem-yMM":"MM‏/y","field-tue-relative+-1":"الثلاثاء الماضي","days-format-short":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"dateFormat-long":"d MMMM، y","field-fri-relative+-1":"الجمعة الماضية","field-wed-relative+-1":"الأربعاء الماضي","months-format-wide":["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"م","dateFormat-full":"EEEE، d MMMM، y","field-thu-relative+-1":"الخميس الماضي","dateFormatItem-Md":"d/‏M","dateFormatItem-yMd":"d‏/M‏/y","field-era":"العصر","dateFormatItem-yM":"M‏/y","months-standAlone-wide":["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],"timeFormat-short":"h:mm a","quarters-format-wide":["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"h:mm:ss a z","field-year":"السنة","dateFormatItem-yMMM":"MMM y","field-hour":"الساعات","dateFormatItem-MMdd":"dd‏/MM","months-format-abbr":["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],"field-sat-relative+0":"السبت الحالي","field-sat-relative+1":"السبت التالي","timeFormat-full":"h:mm:ss a zzzz","field-day-relative+0":"اليوم","field-thu-relative+0":"الخميس الحالي","field-day-relative+1":"غدًا","field-thu-relative+1":"الخميس التالي","dateFormatItem-GyMMMd":"d MMM، y G","field-day-relative+2":"بعد الغد","dateFormatItem-H":"HH","months-standAlone-abbr":["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],"quarters-format-abbr":["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"],"quarters-standAlone-wide":["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"h:mm:ss a","field-sun-relative+0":"الأحد الحالي","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"الأحد التالي","quarters-standAlone-abbr":["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"],eraAbbr:["ق.م","م"],"field-minute":"الدقائق","field-dayperiod":"ص/م","days-standAlone-abbr":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["١","٢","٣","٤"],"field-day-relative+-1":"أمس","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"أول أمس","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E، d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"الجمعة الحالية","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"الجمعة التالية","field-day":"يوم","days-format-wide":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"field-zone":"التوقيت","dateFormatItem-y":"y","months-standAlone-narrow":["ي","ف","م","أ","و","ن","ل","غ","س","ك","ب","د"],"field-year-relative+-1":"السنة الماضية","field-month-relative+-1":"الشهر الماضي","dateFormatItem-hm":"h:mm a","days-format-abbr":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"dateFormatItem-yMMMd":"d MMM، y",eraNames:["قبل الميلاد","ميلادي"],"days-format-narrow":["ح","ن","ث","ر","خ","ج","س"],"days-standAlone-narrow":["ح","ن","ث","ر","خ","ج","س"],"dateFormatItem-MMM":"LLL","field-month":"الشهر","field-tue-relative+0":"الثلاثاء الحالي","field-tue-relative+1":"الثلاثاء التالي","dayPeriods-format-wide-am":"ص","dateFormatItem-MMMMEd":"E، d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"الاثنين الحالي","field-mon-relative+1":"الاثنين التالي","dateFormat-short":"d‏/M‏/y","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"الثواني","field-sat-relative+-1":"السبت الماضي","dateFormatItem-yMMMEd":"E، d MMM، y","field-sun-relative+-1":"الأحد الماضي","field-month-relative+0":"هذا الشهر","field-month-relative+1":"الشهر التالي","dateFormatItem-Ed":"E، d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"الأسبوع","dateFormat-medium":"dd‏/MM‏/y","field-year-relative+0":"هذه السنة","field-week-relative+-1":"الأسبوع الماضي","field-year-relative+1":"السنة التالية","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"الاثنين الماضي","field-week-relative+0":"هذا الأسبوع","field-week-relative+1":"الأسبوع التالي"}},function(e,t,i){e.exports={"dateFormatItem-yM":"MM.y.","field-dayperiod":"pre podne/ popodne","dayPeriods-format-wide-pm":"popodne","field-minute":"minut",eraNames:["Pre nove ere","Nove ere"],"dateFormatItem-MMMEd":"E, dd. MMM","field-day-relative+-1":"juče","field-weekday":"dan u nedelji","dateFormatItem-hms":"hh:mm:ss a","dateFormatItem-yQQQ":"y QQQ","field-day-relative+-2":"prekjuče","days-standAlone-wide":["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],"dateFormatItem-MMM":"LLL","months-standAlone-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"field-era":"era","dateFormatItem-Gy":"y. G","field-hour":"čas","dayPeriods-format-wide-am":"pre podne","quarters-standAlone-abbr":["K1","K2","K3","K4"],"dateFormatItem-y":"y.","timeFormat-full":"HH:mm:ss zzzz","months-standAlone-abbr":["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],"dateFormatItem-Ed":"E, dd.","dateFormatItem-yMMM":"MMM y.","field-day-relative+0":"danas","field-day-relative+1":"sutra",eraAbbr:["p. n. e.","n. e"],"field-day-relative+2":"prekosutra","dateFormatItem-GyMMMd":"dd. MMM y. G","dateFormat-long":"dd. MMMM y.","timeFormat-medium":"HH:mm:ss","field-zone":"zona","dateFormatItem-Hm":"HH:mm","dateFormat-medium":"dd.MM.y.","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-yMd":"dd.MM.y.","quarters-standAlone-wide":["Prvi kvartal","Drugi kvartal","Treći kvartal","Četvrti kvartal"],"dateFormatItem-ms":"mm:ss","field-year":"godina","field-week":"nedelja","months-standAlone-wide":["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"],"dateFormatItem-MMMd":"dd. MMM","timeFormat-long":"HH:mm:ss z","months-format-abbr":["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],"dateFormatItem-yQQQQ":"y QQQQ","timeFormat-short":"HH:mm","field-month":"mesec","quarters-format-abbr":["K1","K2","K3","K4"],"days-format-abbr":["ned","pon","uto","sri","čet","pet","sub"],"dateFormatItem-M":"L","dateFormatItem-yMMMd":"dd. MMM y.","field-second":"sekund","dateFormatItem-GyMMMEd":"E, dd. MMM y. G","dateFormatItem-GyMMM":"MMM y. G","field-day":"dan","dateFormatItem-MEd":"E, dd.MM.","months-format-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"days-standAlone-short":["ned","pon","uto","sri","čet","pet","sub"],"dateFormatItem-hm":"hh:mm a","days-standAlone-abbr":["ned","pon","uto","sri","čet","pet","sub"],"dateFormat-short":"dd.MM.yy.","dateFormatItem-yMMMEd":"E, dd. MMM y.","dateFormat-full":"EEEE, dd. MMMM y.","dateFormatItem-Md":"dd.MM.","dateFormatItem-yMEd":"E, dd.MM.y.","months-format-wide":["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"],"days-format-short":["ned","pon","uto","sri","čet","pet","sub"],"dateFormatItem-d":"d","quarters-format-wide":["Prvi kvartal","Drugi kvartal","Treći kvartal","Četvrti kvartal"],"days-format-wide":["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],eraNarrow:["p. n. e.","n. e"]}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["dg.","dl.","dm.","dc.","dj.","dv.","ds."],"months-format-narrow":["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],"field-second-relative+0":"ara","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"dia de la setmana","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, d/M/y","field-wed-relative+0":"aquest dimecres","dateFormatItem-GyMMMEd":"E, d MMM, y G","dateFormatItem-MMMEd":"E d MMM","field-wed-relative+1":"dimecres que ve",eraNarrow:["aC","dC"],"field-tue-relative+-1":"dimarts passat","days-format-short":["dg.","dl.","dt.","dc.","dj.","dv.","ds."],"dateFormat-long":"d MMMM 'de' y","field-fri-relative+-1":"divendres passat","field-wed-relative+-1":"dimecres passat","months-format-wide":["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"p. m.","dateFormat-full":"EEEE, d MMMM 'de' y","field-thu-relative+-1":"dijous passat","dateFormatItem-Md":"d/M","dateFormatItem-GyMMMM":"LLLL 'de' y G","dateFormatItem-yMd":"d/M/y","dateFormatItem-yM":"M/y","field-era":"era","months-standAlone-wide":["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],"timeFormat-short":"H:mm","quarters-format-wide":["1r trimestre","2n trimestre","3r trimestre","4t trimestre"],"timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"LLL y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"any","field-hour":"hora","months-format-abbr":["gen.","feb.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],"field-sat-relative+0":"aquest dissabte","field-sat-relative+1":"dissabte que ve","timeFormat-full":"H:mm:ss zzzz","field-day-relative+0":"avui","field-day-relative+1":"demà","field-thu-relative+0":"aquest dijous","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"demà passat","field-thu-relative+1":"dijous que ve","dateFormatItem-H":"H","months-standAlone-abbr":["gen.","feb.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],"quarters-format-abbr":["1T","2T","3T","4T"],"quarters-standAlone-wide":["1r trimestre","2n trimestre","3r trimestre","4t trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"aquest diumenge","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["1T","2T","3T","4T"],"field-sun-relative+1":"diumenge que ve",eraAbbr:["aC","dC"],"field-minute":"minut","field-dayperiod":"a. m./p. m.","days-standAlone-abbr":["dg.","dl.","dt.","dc.","dj.","dv.","ds."],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"ahir","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"a.m.","field-day-relative+-2":"abans-d'ahir","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"aquest divendres","dateFormatItem-yMMMM":"LLLL 'de' y","field-fri-relative+1":"divendres que ve","field-day":"dia","days-format-wide":["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],"field-zone":"zona","dateFormatItem-y":"y","months-standAlone-narrow":["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],"field-year-relative+-1":"l'any passat","field-month-relative+-1":"el mes passat","dateFormatItem-hm":"h:mm a","days-format-abbr":["dg.","dl.","dt.","dc.","dj.","dv.","ds."],"dateFormatItem-yMMMd":"d MMM y",eraNames:["abans de Crist","a. de la n. e.","després de Crist","de la n. e."],"days-format-narrow":["dg","dl","dt","dc","dj","dv","ds"],"days-standAlone-narrow":["dg","dl","dt","dc","dj","dv","ds"],"dateFormatItem-MMM":"LLL","field-month":"mes","field-tue-relative+0":"aquest dimarts","field-tue-relative+1":"dimarts que ve","dayPeriods-format-wide-am":"a. m.","dateFormatItem-MMMMEd":"E d MMMM","dateFormatItem-EHm":"E H:mm","field-mon-relative+0":"aquest dilluns","field-mon-relative+1":"dilluns que ve","dateFormat-short":"d/M/yy","dateFormatItem-EHms":"E H:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"segon","field-sat-relative+-1":"dissabte passat","dateFormatItem-yMMMEd":"E, d MMM, y","field-sun-relative+-1":"diumenge passat","field-month-relative+0":"aquest mes","field-month-relative+1":"el mes que ve","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"setmana","dateFormat-medium":"dd/MM/y","field-year-relative+0":"enguany","field-week-relative+-1":"la setmana passada","field-year-relative+1":"l'any que ve","dayPeriods-format-narrow-pm":"p.m.","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"LLL y G","field-mon-relative+-1":"dilluns passat","field-week-relative+0":"aquesta setmana","field-week-relative+1":"la setmana que ve"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["ne","po","út","st","čt","pá","so"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"nyní","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Den v týdnu","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d. M. y","field-wed-relative+0":"tuto středu","dateFormatItem-GyMMMEd":"E d. M. y G","dateFormatItem-MMMEd":"E d. M.","field-wed-relative+1":"příští středu",eraNarrow:["př.n.l.","n.l."],"field-tue-relative+-1":"minulé úterý","days-format-short":["ne","po","út","st","čt","pá","so"],"dateFormat-long":"d. MMMM y","field-fri-relative+-1":"minulý pátek","field-wed-relative+-1":"minulou středu","months-format-wide":["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"],"dateTimeFormat-medium":"{1} {0}","dateFormatItem-yMMMMd":"d. MMMM y","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE d. MMMM y","field-thu-relative+-1":"minulý čtvrtek","dateFormatItem-Md":"d. M.","dateFormatItem-yMd":"d. M. y","dateFormatItem-yM":"M/y","field-era":"Letopočet","months-standAlone-wide":["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],"timeFormat-short":"H:mm","quarters-format-wide":["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],"timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"LLLL y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"Rok","field-hour":"Hodina","months-format-abbr":["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],"field-sat-relative+0":"tuto sobotu","field-sat-relative+1":"příští sobotu","timeFormat-full":"H:mm:ss zzzz","field-day-relative+0":"dnes","field-day-relative+1":"zítra","field-thu-relative+0":"tento čtvrtek","dateFormatItem-GyMMMd":"d. M. y G","field-day-relative+2":"pozítří","field-thu-relative+1":"příští čtvrtek","dateFormatItem-H":"H","months-standAlone-abbr":["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],"dateFormatItem-MMMMd":"d. MMMM","dateFormatItem-GyMMMMd":"d. MMMM y G","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"tuto neděli","dateFormatItem-Hm":"H:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"field-sun-relative+1":"příští neděli",eraAbbr:["př. n. l.","n. l."],"field-minute":"Minuta","field-dayperiod":"AM/PM","days-standAlone-abbr":["ne","po","út","st","čt","pá","so"],"dateFormatItem-d":"d.","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"včera","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM","field-day-relative+-2":"předevčírem","dateFormatItem-MMMd":"d. M.","dateFormatItem-MEd":"E d. M.","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"tento pátek","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"příští pátek","field-day":"Den","days-format-wide":["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],"field-zone":"Časové pásmo","dateFormatItem-y":"y","months-standAlone-narrow":["l","ú","b","d","k","č","č","s","z","ř","l","p"],"field-year-relative+-1":"minulý rok","field-month-relative+-1":"minulý měsíc","dateFormatItem-hm":"h:mm a","days-format-abbr":["ne","po","út","st","čt","pá","so"],eraNames:["př. n. l.","n. l."],"dateFormatItem-yMMMd":"d. M. y","days-format-narrow":["N","P","Ú","S","Č","P","S"],"days-standAlone-narrow":["N","P","Ú","S","Č","P","S"],"dateFormatItem-MMM":"LLL","field-month":"Měsíc","field-tue-relative+0":"toto úterý","field-tue-relative+1":"příští úterý","dayPeriods-format-wide-am":"AM","dateFormatItem-MMMMEd":"E d. MMMM","dateFormatItem-EHm":"E H:mm","field-mon-relative+0":"toto pondělí","field-mon-relative+1":"příští pondělí","dateFormat-short":"dd.MM.yy","dateFormatItem-EHms":"E H:mm:ss","dateFormatItem-yMMMMEd":"E d. MMMM y","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"Sekunda","field-sat-relative+-1":"minulou sobotu","dateFormatItem-yMMMEd":"E d. M. y","field-sun-relative+-1":"minulou neděli","field-month-relative+0":"tento měsíc","field-month-relative+1":"příští měsíc","dateFormatItem-Ed":"E d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Týden","dateFormat-medium":"d. M. y","field-year-relative+0":"tento rok","field-week-relative+-1":"minulý týden","field-year-relative+1":"příští rok","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"LLLL y G","dateFormatItem-GyMMMMEd":"E d. MMMM y G","field-mon-relative+-1":"minulé pondělí","field-week-relative+0":"tento týden","field-week-relative+1":"příští týden"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h.mm a","days-standAlone-short":["sø","ma","ti","on","to","fr","lø"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"nu","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Ugedag","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d/M/y","field-wed-relative+0":"denne onsdag","dateFormatItem-GyMMMEd":"E d. MMM y G","dateFormatItem-MMMEd":"E d. MMM","field-wed-relative+1":"næste onsdag",eraNarrow:["fKr","fvt","eKr","vt"],"dateFormatItem-yMM":"MM/y","field-tue-relative+-1":"sidste tirsdag","days-format-short":["sø","ma","ti","on","to","fr","lø"],"dateFormat-long":"d. MMM y","field-fri-relative+-1":"sidste fredag","field-wed-relative+-1":"sidste onsdag","months-format-wide":["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE 'den' d. MMMM y","field-thu-relative+-1":"sidste torsdag","dateFormatItem-Md":"d/M","dayPeriods-format-wide-noon":"middag","dateFormatItem-yMd":"d/M/y","dateFormatItem-yM":"M/y","field-era":"Æra","months-standAlone-wide":["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],"timeFormat-short":"HH.mm","quarters-format-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"timeFormat-long":"HH.mm.ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"År","dateFormatItem-MMdd":"dd/MM","field-hour":"Time","months-format-abbr":["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],"field-sat-relative+0":"denne lørdag","field-sat-relative+1":"næste lørdag","timeFormat-full":"HH.mm.ss zzzz","field-day-relative+0":"i dag","field-day-relative+1":"i morgen","field-thu-relative+0":"denne torsdag","dateFormatItem-GyMMMd":"d. MMM y G","field-day-relative+2":"i overmorgen","field-thu-relative+1":"næste torsdag","dateFormatItem-H":"HH","months-standAlone-abbr":["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],"quarters-format-abbr":["K1","K2","K3","K4"],"quarters-standAlone-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"M","days-standAlone-wide":["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],"dayPeriods-format-abbr-noon":"middag","timeFormat-medium":"HH.mm.ss","field-sun-relative+0":"denne søndag","dateFormatItem-Hm":"HH.mm","quarters-standAlone-abbr":["K1","K2","K3","K4"],"field-sun-relative+1":"næste søndag",eraAbbr:["f.Kr.","e.Kr."],"field-minute":"Minut","field-dayperiod":"AM/PM","days-standAlone-abbr":["søn","man","tir","ons","tor","fre","lør"],"dateFormatItem-d":"d.","dateFormatItem-ms":"mm.ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"i går","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} 'kl.' {0}","field-day-relative+-2":"i forgårs","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} 'kl.' {0}","field-fri-relative+0":"denne fredag","field-fri-relative+1":"næste fredag","field-day":"Dag","days-format-wide":["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],"field-zone":"Tidszone","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"sidste år","field-month-relative+-1":"sidste måned","dateFormatItem-hm":"h.mm a","days-format-abbr":["søn.","man.","tir.","ons.","tor.","fre.","lør."],eraNames:["f.Kr.","før vesterlandsk tidsregning","e.Kr.","vesterlandsk tidsregning"],"dateFormatItem-yMMMd":"d. MMM y","days-format-narrow":["S","M","T","O","T","F","L"],"days-standAlone-narrow":["S","M","T","O","T","F","L"],"dateFormatItem-MMM":"MMM","field-month":"Måned","field-tue-relative+0":"denne tirsdag","field-tue-relative+1":"næste tirsdag","dayPeriods-format-wide-am":"AM","dateFormatItem-MMMMEd":"E d. MMMM","dateFormatItem-EHm":"E HH.mm","field-mon-relative+0":"denne mandag","field-mon-relative+1":"næste mandag","dateFormat-short":"dd/MM/yy","dateFormatItem-EHms":"E HH.mm.ss","dateFormatItem-Ehms":"E h.mm.ss a","dayPeriods-format-narrow-noon":"middag","field-second":"Sekund","field-sat-relative+-1":"sidste lørdag","dateFormatItem-yMMMEd":"E d. MMM y","field-sun-relative+-1":"sidste søndag","field-month-relative+0":"denne måned","field-month-relative+1":"næste måned","dateFormatItem-Ed":"E 'd'. d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Uge","dateFormat-medium":"dd/MM/y","field-year-relative+0":"i år","field-week-relative+-1":"sidste uge","field-year-relative+1":"næste år","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH.mm.ss","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"sidste mandag","field-week-relative+0":"denne uge","field-week-relative+1":"næste uge"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"jetzt","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Wochentag","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, d.M.y","field-wed-relative+0":"Diesen Mittwoch","dateFormatItem-GyMMMEd":"E, d. MMM y G","dateFormatItem-MMMEd":"E, d. MMM","field-wed-relative+1":"Nächsten Mittwoch",eraNarrow:["v. Chr.","n. Chr."],"dateFormatItem-yMM":"MM.y","dayPeriods-format-wide-earlyMorning":"morgens","field-tue-relative+-1":"Letzten Dienstag","dayPeriods-format-wide-morning":"vormittags","days-format-short":["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],"dateFormat-long":"d. MMMM y","field-fri-relative+-1":"Letzten Freitag","field-wed-relative+-1":"Letzten Mittwoch","months-format-wide":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"dayPeriods-format-wide-evening":"abends","dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"nachm.","dateFormat-full":"EEEE, d. MMMM y","field-thu-relative+-1":"Letzten Donnerstag","dateFormatItem-Md":"d.M.","dayPeriods-format-wide-noon":"Mittag","dateFormatItem-yMd":"d.M.y","dateFormatItem-yM":"M.y","field-era":"Epoche","months-standAlone-wide":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"timeFormat-short":"HH:mm","quarters-format-wide":["1. Quartal","2. Quartal","3. Quartal","4. Quartal"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"Jahr","dateFormatItem-MMdd":"dd.MM.","field-hour":"Stunde","months-format-abbr":["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],"field-sat-relative+0":"Diesen Samstag","field-sat-relative+1":"Nächsten Samstag","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"Heute","field-day-relative+1":"Morgen","field-thu-relative+0":"Diesen Donnerstag","dateFormatItem-GyMMMd":"d. MMM y G","field-day-relative+2":"Übermorgen","field-thu-relative+1":"Nächsten Donnerstag","dateFormatItem-H":"HH 'Uhr'","months-standAlone-abbr":["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["1. Quartal","2. Quartal","3. Quartal","4. Quartal"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"timeFormat-medium":"HH:mm:ss","dateFormatItem-yMMdd":"dd.MM.y","field-sun-relative+0":"Diesen Sonntag","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"field-sun-relative+1":"Nächsten Sonntag",eraAbbr:["v. Chr.","n. Chr."],"field-minute":"Minute","field-dayperiod":"Tageshälfte","days-standAlone-abbr":["So","Mo","Di","Mi","Do","Fr","Sa"],"dayPeriods-format-wide-night":"nachts","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Gestern","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"Vorgestern","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E, d.M.","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"Diesen Freitag","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"Nächsten Freitag","field-day":"Tag","days-format-wide":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"field-zone":"Zeitzone","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"Letztes Jahr","field-month-relative+-1":"Letzter Monat","dateFormatItem-hm":"h:mm a","days-format-abbr":["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],eraNames:["v. Chr.","n. Chr."],"dateFormatItem-yMMMd":"d. MMM y","days-format-narrow":["S","M","D","M","D","F","S"],"days-standAlone-narrow":["S","M","D","M","D","F","S"],"dateFormatItem-MMM":"LLL","field-month":"Monat","field-tue-relative+0":"Diesen Dienstag","field-tue-relative+1":"Nächsten Dienstag","dayPeriods-format-wide-am":"vorm.","dateFormatItem-MMMMEd":"E, d. MMMM","dateFormatItem-EHm":"E, HH:mm","field-mon-relative+0":"Diesen Montag","field-mon-relative+1":"Nächsten Montag","dateFormat-short":"dd.MM.yy","dateFormatItem-MMd":"d.MM.","dayPeriods-format-wide-afternoon":"nachmittags","dateFormatItem-EHms":"E, HH:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"Sekunde","field-sat-relative+-1":"Letzten Samstag","dateFormatItem-yMMMEd":"E, d. MMM y","field-sun-relative+-1":"Letzten Sonntag","field-month-relative+0":"Dieser Monat","field-month-relative+1":"Nächster Monat","dateFormatItem-Ed":"E, d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Woche","dateFormat-medium":"dd.MM.y","field-year-relative+0":"Dieses Jahr","field-week-relative+-1":"Letzte Woche","field-year-relative+1":"Nächstes Jahr","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"Letzten Montag","field-week-relative+0":"Diese Woche","field-week-relative+1":"Nächste Woche"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],"months-format-narrow":["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],"field-second-relative+0":"τώρα","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Ημέρα εβδομάδας","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"E, d/M/y","field-wed-relative+0":"αυτήν την Τετάρτη","field-wed-relative+1":"επόμενη Τετάρτη","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-MMMEd":"E, d MMM",eraNarrow:["π.Χ.","μ.Χ."],"field-tue-relative+-1":"προηγούμενη Τρίτη","days-format-short":["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"προηγούμενη Παρασκευή","field-wed-relative+-1":"προηγούμενη Τετάρτη","months-format-wide":["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"],"dateTimeFormat-medium":"{1} - {0}","dayPeriods-format-wide-pm":"μ.μ.","dateFormat-full":"EEEE, d MMMM y","field-thu-relative+-1":"επόμενη Πέμπτη","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d/M/y","field-era":"Περίοδος","dateFormatItem-yM":"M/y","months-standAlone-wide":["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],"timeFormat-short":"h:mm a","quarters-format-wide":["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"],"dateFormatItem-yQQQQ":"y QQQQ","timeFormat-long":"h:mm:ss a z","field-year":"Έτος","dateFormatItem-yMMM":"LLL y","field-hour":"Ώρα","months-format-abbr":["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],"field-sat-relative+0":"αυτό το Σάββατο","field-sat-relative+1":"επόμενο Σάββατο","timeFormat-full":"h:mm:ss a zzzz","field-day-relative+0":"σήμερα","field-thu-relative+0":"αυτήν την Πέμπτη","field-day-relative+1":"αύριο","field-thu-relative+1":"επόμενη Πέμπτη","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"μεθαύριο","dateFormatItem-H":"HH","months-standAlone-abbr":["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],"quarters-format-abbr":["Τ1","Τ2","Τ3","Τ4"],"quarters-standAlone-wide":["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"],"dateFormatItem-Gy":"y G","dateFormatItem-HHmmss":"HH:mm:ss","dateFormatItem-M":"L","days-standAlone-wide":["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"h:mm:ss a","field-sun-relative+0":"αυτήν την Κυριακή","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"επόμενη Κυριακή","quarters-standAlone-abbr":["Τ1","Τ2","Τ3","Τ4"],eraAbbr:["π.Χ.","μ.Χ."],"field-minute":"Λεπτό","field-dayperiod":"π.μ./μ.μ.","days-standAlone-abbr":["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"χθες","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} - {0}","field-day-relative+-2":"προχθές","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E, d/M","dateTimeFormat-full":"{1} - {0}","field-fri-relative+0":"αυτήν την Παρασκευή","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"επόμενη Παρασκευή","field-day":"Ημέρα","days-format-wide":["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],"field-zone":"Ζώνη","dateFormatItem-y":"y","months-standAlone-narrow":["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],"field-year-relative+-1":"προηγούμενο έτος","field-month-relative+-1":"προηγούμενος μήνας","dateFormatItem-hm":"h:mm a","days-format-abbr":["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],"dateFormatItem-yMMMd":"d MMM y",eraNames:["π.Χ.","μ.Χ."],"days-format-narrow":["Κ","Δ","Τ","Τ","Π","Π","Σ"],"days-standAlone-narrow":["Κ","Δ","Τ","Τ","Π","Π","Σ"],"dateFormatItem-MMM":"LLL","field-month":"Μήνας","dateFormatItem-HHmm":"HH:mm","field-tue-relative+0":"αυτήν την Τρίτη","field-tue-relative+1":"επόμενη Τρίτη","dayPeriods-format-wide-am":"π.μ.","dateFormatItem-MMMMEd":"E, d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"αυτήν τη Δευτέρα","field-mon-relative+1":"επόμενη Δευτέρα","dateFormat-short":"d/M/yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"Δευτερόλεπτο","field-sat-relative+-1":"προηγούμενο Σάββατο","dateFormatItem-yMMMEd":"E, d MMM y","field-sun-relative+-1":"προηγούμενη Κυριακή","field-month-relative+0":"τρέχων μήνας","field-month-relative+1":"επόμενος μήνας","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Εβδομάδα","dateFormat-medium":"d MMM y","field-year-relative+0":"φέτος","field-week-relative+-1":"προηγούμενη εβδομάδα","field-year-relative+1":"επόμενο έτος","dateTimeFormat-short":"{1} - {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"LLL y G","field-mon-relative+-1":"προηγούμενη Δευτέρα","field-week-relative+0":"αυτήν την εβδομάδα","field-week-relative+1":"επόμενη εβδομάδα"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["Su","Mo","Tu","We","Th","Fr","Sa"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"now","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Day of the Week","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, M/d/y","field-wed-relative+0":"this Wednesday","field-wed-relative+1":"next Wednesday","dateFormatItem-GyMMMEd":"E, MMM d, y G","dateFormatItem-MMMEd":"E, MMM d",eraNarrow:["B","A"],"field-tue-relative+-1":"last Tuesday","days-format-short":["Su","Mo","Tu","We","Th","Fr","Sa"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormat-long":"MMMM d, y","field-fri-relative+-1":"last Friday","field-wed-relative+-1":"last Wednesday","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, MMMM d, y","field-thu-relative+-1":"last Thursday","dateFormatItem-Md":"M/d","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","dayPeriods-format-wide-noon":"noon","dateFormatItem-yMd":"M/d/y","field-era":"Era","dateFormatItem-yM":"M/y","months-standAlone-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"timeFormat-short":"h:mm a","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"h:mm:ss a z","field-year":"Year","dateFormatItem-yMMM":"MMM y","dateTimeFormats-appendItem-Era":"{0} {1}","field-hour":"Hour","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"field-sat-relative+0":"this Saturday","field-sat-relative+1":"next Saturday","timeFormat-full":"h:mm:ss a zzzz","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","field-day-relative+0":"today","field-thu-relative+0":"this Thursday","field-day-relative+1":"tomorrow","field-thu-relative+1":"next Thursday","dateFormatItem-GyMMMd":"MMM d, y G","dateFormatItem-H":"HH","months-standAlone-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"timeFormat-medium":"h:mm:ss a","field-sun-relative+0":"this Sunday","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"next Sunday",eraAbbr:["BC","AD"],"field-minute":"Minute","field-dayperiod":"AM/PM","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","field-day-relative+-1":"yesterday","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} 'at' {0}","dayPeriods-format-narrow-am":"a","dateFormatItem-MMMd":"MMM d","dateFormatItem-MEd":"E, M/d","dateTimeFormat-full":"{1} 'at' {0}","field-fri-relative+0":"this Friday","field-fri-relative+1":"next Friday","field-day":"Day","days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"field-zone":"Time Zone","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"last year","field-month-relative+-1":"last month","dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormatItem-yMMMd":"MMM d, y",eraNames:["Before Christ","Anno Domini"],"days-standAlone-narrow":["S","M","T","W","T","F","S"],"dateFormatItem-MMM":"LLL","field-month":"Month","field-tue-relative+0":"this Tuesday","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","field-tue-relative+1":"next Tuesday","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"this Monday","field-mon-relative+1":"next Monday","dateFormat-short":"M/d/yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","dayPeriods-format-narrow-noon":"n","field-second":"Second","field-sat-relative+-1":"last Saturday","dateFormatItem-yMMMEd":"E, MMM d, y","field-sun-relative+-1":"last Sunday","field-month-relative+0":"this month","field-month-relative+1":"next month","dateFormatItem-Ed":"d E","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Week","dateFormat-medium":"MMM d, y","field-year-relative+0":"this year","field-week-relative+-1":"last week","field-year-relative+1":"next year","dayPeriods-format-narrow-pm":"p","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"last Monday","field-week-relative+0":"this week","field-week-relative+1":"next week"}},function(e,t,i){e.exports={"dateFormatItem-yMd":"d/M/y","dateFormat-medium":"d MMM y","field-year-relative+-1":"Last year","dateFormatItem-yMEd":"E, d/M/y","field-month-relative+-1":"Last month","field-day-relative+-1":"Yesterday","timeFormat-full":"h:mm:ss a zzzz","field-week-relative+0":"This week","field-week-relative+1":"Next week","timeFormat-medium":"h:mm:ss a","field-week-relative+-1":"Last week","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","dateFormat-long":"d MMMM y","field-month-relative+0":"This month","field-month-relative+1":"Next month","dateFormat-short":"d/MM/y","field-year-relative+0":"This year","field-year-relative+1":"Next year","timeFormat-short":"h:mm a","timeFormat-long":"h:mm:ss a z","dateFormat-full":"EEEE, d MMMM y"}},function(e,t,i){e.exports={"dateFormatItem-yMEd":"E, y-MM-dd","dateFormatItem-yMd":"y-MM-dd","dateFormat-short":"y-MM-dd","dateFormatItem-MEd":"E, MM-dd","dateFormatItem-yM":"y-MM","dateFormatItem-Md":"MM-dd"}},function(e,t,i){e.exports={"dateFormat-medium":"d MMM y","dateFormatItem-yMd":"dd/MM/y","dateFormatItem-MMMEd":"E d MMM","dateFormatItem-MEd":"E dd/MM","dateFormatItem-MMdd":"dd/MM","dateFormatItem-yMEd":"E, dd/MM/y","dateTimeFormat-medium":"{1} {0}","dateFormatItem-GyMMMd":"d MMM y G","timeFormat-full":"HH:mm:ss zzzz","dateFormatItem-yMMMd":"d MMM y","dateFormatItem-Md":"dd/MM","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-M":"LL","dayPeriods-format-wide-pm":"pm","dateFormatItem-MMMMd":"d MMMM","dateTimeFormat-long":"{1} {0}","dayPeriods-format-wide-am":"am","timeFormat-medium":"HH:mm:ss","dateFormat-long":"d MMMM y","field-dayperiod":"am/pm","dateFormat-short":"dd/MM/y","dateFormatItem-yMMMEd":"E, d MMM y","dateTimeFormat-short":"{1} {0}","dateFormatItem-yMMMM":"MMMM y","dateTimeFormat-full":"{1} {0}","dateFormatItem-yM":"MM/y","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z","dateFormat-full":"EEEE, d MMMM y","dateFormatItem-MMMd":"d MMM","dateFormatItem-Ed":"E d"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E, h:mm a","days-standAlone-short":["DO","LU","MA","MI","JU","VI","SA"],"months-format-narrow":["E","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"ahora","quarters-standAlone-narrow":["1T","2T","3T","4T"],"field-weekday":"día de la semana","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"EEE, d/M/y","field-wed-relative+0":"este miércoles","field-wed-relative+1":"el próximo miércoles","dateFormatItem-GyMMMEd":"E, d 'de' MMMM 'de' y G","dateFormatItem-MMMEd":"E d 'de' MMM",eraNarrow:["a. C.","d. C."],"dateFormatItem-yMM":"M/y","field-tue-relative+-1":"el martes pasado","dateFormatItem-MMMdd":"dd-MMM","days-format-short":["DO","LU","MA","MI","JU","VI","SA"],"dateFormat-long":"d 'de' MMMM 'de' y","field-fri-relative+-1":"el viernes pasado","field-wed-relative+-1":"el miércoles pasado","months-format-wide":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"p. m.","dateFormat-full":"EEEE, d 'de' MMMM 'de' y","field-thu-relative+-1":"el jueves pasado","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d/M/y","field-era":"era","dateFormatItem-yM":"M/y","months-standAlone-wide":["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],"timeFormat-short":"H:mm","quarters-format-wide":["1.er trimestre","2.º trimestre","3.er trimestre","4.º trimestre"],"dateFormatItem-yQQQQ":"QQQQ 'de' y","timeFormat-long":"H:mm:ss z","field-year":"año","dateFormatItem-yMMM":"MMM 'de' y","field-hour":"hora","dateFormatItem-MMdd":"d/M","months-format-abbr":["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],"field-sat-relative+0":"este sábado","field-sat-relative+1":"el próximo sábado","timeFormat-full":"H:mm:ss (zzzz)","field-day-relative+0":"hoy","field-thu-relative+0":"este jueves","field-day-relative+1":"mañana","field-thu-relative+1":"el próximo jueves","dateFormatItem-GyMMMd":"d MMM 'de' y G","field-day-relative+2":"pasado mañana","dateFormatItem-H":"H","months-standAlone-abbr":["Ene.","Feb.","Mar.","Abr.","May.","Jun.","Jul.","Ago.","Sept.","Oct.","Nov.","Dic."],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["1.er trimestre","2.º trimestre","3.er trimestre","4.º trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],"dateFormatItem-MMMMd":"d 'de' MMMM","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"este domingo","dateFormatItem-Hm":"H:mm","field-sun-relative+1":"el próximo domingo","quarters-standAlone-abbr":["T1","T2","T3","T4"],eraAbbr:["a. C.","d. C."],"field-minute":"minuto","field-dayperiod":"periodo del día","days-standAlone-abbr":["Dom.","Lun.","Mar.","Mié.","Jue.","Vie.","Sáb."],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1T","2T","3T","4T"],"field-day-relative+-1":"ayer","dateFormatItem-h":"h a","dateTimeFormat-long":"{1}, {0}","dayPeriods-format-narrow-am":"a.m.","field-day-relative+-2":"antes de ayer","dateFormatItem-MMMd":"d 'de' MMM","dateFormatItem-MEd":"E, d/M","dateTimeFormat-full":"{1}, {0}","field-fri-relative+0":"este viernes","dateFormatItem-yMMMM":"MMMM 'de' y","field-fri-relative+1":"el próximo viernes","field-day":"día","days-format-wide":["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],"field-zone":"zona horaria","dateFormatItem-y":"y","months-standAlone-narrow":["E","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"el año pasado","field-month-relative+-1":"el mes pasado","dateFormatItem-hm":"h:mm a","days-format-abbr":["dom.","lun.","mar.","mié.","jue.","vie.","sáb."],eraNames:["antes de Cristo","anno Dómini"],"dateFormatItem-yMMMd":"d 'de' MMM 'de' y","days-format-narrow":["D","L","M","X","J","V","S"],"days-standAlone-narrow":["D","L","M","X","J","V","S"],"dateFormatItem-MMM":"LLL","field-month":"mes","field-tue-relative+0":"este martes","field-tue-relative+1":"el próximo martes","dayPeriods-format-wide-am":"a. m.","dateFormatItem-EHm":"E, H:mm","field-mon-relative+0":"este lunes","field-mon-relative+1":"el próximo lunes","dateFormat-short":"d/M/yy","dateFormatItem-MMd":"d/M","dateFormatItem-EHms":"E, H:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"segundo","field-sat-relative+-1":"el sábado pasado","dateFormatItem-yMMMEd":"EEE, d 'de' MMMM 'de' y","field-sun-relative+-1":"el domingo pasado","field-month-relative+0":"este mes","field-month-relative+1":"el próximo mes","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"semana","dateFormat-medium":"d/M/y","field-year-relative+0":"este año","field-week-relative+-1":"la semana pasada","field-year-relative+1":"el próximo año","dayPeriods-format-narrow-pm":"p.m.","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM 'de' y G","field-mon-relative+-1":"el lunes pasado","field-week-relative+0":"esta semana","field-week-relative+1":"la próxima semana"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h.mm a","days-standAlone-short":["su","ma","ti","ke","to","pe","la"],"months-format-narrow":["T","H","M","H","T","K","H","E","S","L","M","J"],"field-second-relative+0":"nyt","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"viikonpäivä","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d.M.y","field-wed-relative+0":"tänä keskiviikkona","dateFormatItem-GyMMMEd":"E d. MMM y G","dateFormatItem-MMMEd":"ccc d. MMM","field-wed-relative+1":"ensi keskiviikkona",eraNarrow:["eK","jK"],"dateFormatItem-yMM":"M.y","field-tue-relative+-1":"viime tiistaina","days-format-short":["su","ma","ti","ke","to","pe","la"],"dateFormat-long":"d. MMMM y","field-fri-relative+-1":"viime perjantaina","field-wed-relative+-1":"viime keskiviikkona","months-format-wide":["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"ip.","dateFormat-full":"cccc d. MMMM y","field-thu-relative+-1":"viime torstaina","dateFormatItem-Md":"d.M.","dayPeriods-standAlone-wide-pm":"ip.","dayPeriods-format-abbr-am":"ap.","dateFormatItem-yMd":"d.M.y","dateFormatItem-yM":"L.y","field-era":"aikakausi","months-standAlone-wide":["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],"timeFormat-short":"H.mm","quarters-format-wide":["1. neljännes","2. neljännes","3. neljännes","4. neljännes"],"timeFormat-long":"H.mm.ss z","dateFormatItem-yMMM":"LLL y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"vuosi","field-hour":"tunti","months-format-abbr":["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"],"field-sat-relative+0":"tänä lauantaina","field-sat-relative+1":"ensi lauantaina","timeFormat-full":"H.mm.ss zzzz","field-day-relative+0":"tänään","field-day-relative+1":"huomenna","field-thu-relative+0":"tänä torstaina","dateFormatItem-GyMMMd":"d. MMM y G","field-day-relative+2":"ylihuomenna","field-thu-relative+1":"ensi torstaina","dateFormatItem-H":"H","months-standAlone-abbr":["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],"quarters-format-abbr":["1. nelj.","2. nelj.","3. nelj.","4. nelj."],"quarters-standAlone-wide":["1. neljännes","2. neljännes","3. neljännes","4. neljännes"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],"timeFormat-medium":"H.mm.ss","field-sun-relative+0":"tänä sunnuntaina","dateFormatItem-Hm":"H.mm","quarters-standAlone-abbr":["1. nelj.","2. nelj.","3. nelj.","4. nelj."],"field-sun-relative+1":"ensi sunnuntaina",eraAbbr:["eKr.","jKr."],"field-minute":"minuutti","field-dayperiod":"vuorokaudenaika","days-standAlone-abbr":["su","ma","ti","ke","to","pe","la"],"dateFormatItem-d":"d","dateFormatItem-ms":"m.ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"eilen","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"ap.","field-day-relative+-2":"toissapäivänä","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E d.M.","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"tänä perjantaina","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"ensi perjantaina","dateFormatItem-yMMMMccccd":"cccc d. MMMM y","field-day":"päivä","days-format-wide":["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"],"field-zone":"aikavyöhyke","dateFormatItem-y":"y","months-standAlone-narrow":["T","H","M","H","T","K","H","E","S","L","M","J"],"field-year-relative+-1":"viime vuonna","field-month-relative+-1":"viime kuussa","dateFormatItem-hm":"h.mm a","dayPeriods-format-abbr-pm":"ip.","days-format-abbr":["su","ma","ti","ke","to","pe","la"],eraNames:["ennen Kristuksen syntymää","jälkeen Kristuksen syntymän"],"dateFormatItem-yMMMd":"d. MMM y","days-format-narrow":["S","M","T","K","T","P","L"],"days-standAlone-narrow":["S","M","T","K","T","P","L"],"dateFormatItem-MMM":"LLL","field-month":"kuukausi","field-tue-relative+0":"tänä tiistaina","field-tue-relative+1":"ensi tiistaina","dayPeriods-format-wide-am":"ap.","dayPeriods-standAlone-wide-am":"ap.","dateFormatItem-EHm":"E H.mm","field-mon-relative+0":"tänä maanantaina","field-mon-relative+1":"ensi maanantaina","dateFormat-short":"d.M.y","dateFormatItem-EHms":"E H.mm.ss","dateFormatItem-Ehms":"E h.mm.ss a","field-second":"sekunti","field-sat-relative+-1":"viime lauantaina","dateFormatItem-yMMMEd":"E d. MMM y","field-sun-relative+-1":"viime sunnuntaina","field-month-relative+0":"tässä kuussa","field-month-relative+1":"ensi kuussa","dateFormatItem-Ed":"E d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"viikko","dateFormat-medium":"d.M.y","field-year-relative+0":"tänä vuonna","field-week-relative+-1":"viime viikolla","field-year-relative+1":"ensi vuonna","dayPeriods-format-narrow-pm":"ip.","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H.mm.ss","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-GyMMM":"LLL y G","field-mon-relative+-1":"viime maanantaina","field-week-relative+0":"tällä viikolla","field-week-relative+1":"ensi viikolla"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"maintenant","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"jour de la semaine","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d/M/y","field-wed-relative+0":"ce mercredi","dateFormatItem-GyMMMEd":"E d MMM y G","dateFormatItem-MMMEd":"E d MMM","field-wed-relative+1":"mercredi prochain",eraNarrow:["av. J.-C.","ap. J.-C."],"field-tue-relative+-1":"mardi dernier","dayPeriods-format-wide-morning":"matin","days-format-short":["di","lu","ma","me","je","ve","sa"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"vendredi dernier","field-wed-relative+-1":"mercredi dernier","months-format-wide":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE d MMMM y","field-thu-relative+-1":"jeudi dernier","dateFormatItem-Md":"d/M","dayPeriods-format-abbr-am":"AM","dayPeriods-format-wide-noon":"midi","dateFormatItem-yMd":"d/M/y","dateFormatItem-yM":"M/y","field-era":"ère","months-standAlone-wide":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"timeFormat-short":"HH:mm","quarters-format-wide":["1er trimestre","2e trimestre","3e trimestre","4e trimestre"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"année","field-hour":"heure","months-format-abbr":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"field-sat-relative+0":"ce samedi","field-sat-relative+1":"samedi prochain","timeFormat-full":"HH:mm:ss zzzz","dayPeriods-format-narrow-morning":"matin","field-day-relative+0":"aujourd’hui","field-day-relative+1":"demain","field-thu-relative+0":"ce jeudi","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"après-demain","field-thu-relative+1":"jeudi prochain","dateFormatItem-H":"HH 'h'","months-standAlone-abbr":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["1er trimestre","2e trimestre","3e trimestre","4e trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"ce dimanche","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["T1","T2","T3","T4"],"field-sun-relative+1":"dimanche prochain",eraAbbr:["av. J.-C.","ap. J.-C."],"field-minute":"minute","field-dayperiod":"cadran","days-standAlone-abbr":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"dayPeriods-format-wide-night":"soir","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"hier","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"avant-hier","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"ce vendredi","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"vendredi prochain","field-day":"jour","days-format-wide":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"field-zone":"fuseau horaire","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"l’année dernière","dayPeriods-format-narrow-night":"soir","field-month-relative+-1":"le mois dernier","dateFormatItem-hm":"h:mm a","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],eraNames:["avant Jésus-Christ","après Jésus-Christ"],"dateFormatItem-yMMMd":"d MMM y","days-format-narrow":["D","L","M","M","J","V","S"],"days-standAlone-narrow":["D","L","M","M","J","V","S"],"dateFormatItem-MMM":"LLL","field-month":"mois","field-tue-relative+0":"ce mardi","field-tue-relative+1":"mardi prochain","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"ce lundi","field-mon-relative+1":"lundi prochain","dateFormat-short":"dd/MM/y","dayPeriods-format-wide-afternoon":"après-midi","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","dayPeriods-format-narrow-noon":"midi","field-second":"seconde","field-sat-relative+-1":"samedi dernier","dateFormatItem-yMMMEd":"E d MMM y","field-sun-relative+-1":"dimanche dernier","field-month-relative+0":"ce mois-ci","field-month-relative+1":"le mois prochain","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"semaine","dateFormat-medium":"d MMM y","field-year-relative+0":"cette année","field-week-relative+-1":"la semaine dernière","field-year-relative+1":"l’année prochaine","dayPeriods-format-narrow-pm":"p","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"lundi dernier","field-week-relative+0":"cette semaine","field-week-relative+1":"la semaine prochaine"}},function(e,t,i){e.exports={"timeFormat-full":"HH.mm:ss 'h' zzzz","dateFormat-full":"EEEE, d MMMM y","dateFormat-short":"dd.MM.yy"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"עכשיו","quarters-standAlone-narrow":["ר1","ר2","ר3","ר4"],"field-weekday":"יום בשבוע","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"E, d/M/y","field-wed-relative+0":"יום רביעי","field-wed-relative+1":"יום רביעי הבא","dateFormatItem-GyMMMEd":"E, d בMMM y G","dateFormatItem-MMMEd":"E, d בMMM",eraNarrow:["לפנה״ס","BCE","לסה״נ","CE"],"dateFormatItem-yMM":"MM/y","field-tue-relative+-1":"יום שלישי שעבר","days-format-short":["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],"dateFormat-long":"d בMMMM y","field-fri-relative+-1":"יום שישי שעבר","field-wed-relative+-1":"יום רביעי שעבר","months-format-wide":["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],"dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"אחה״צ","dateFormat-full":"EEEE, d בMMMM y","field-thu-relative+-1":"יום חמישי שעבר","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d.M.y","field-era":"תקופה","dateFormatItem-yM":"M.y","months-standAlone-wide":["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],"timeFormat-short":"HH:mm","quarters-format-wide":["רבעון 1","רבעון 2","רבעון 3","רבעון 4"],"dateFormatItem-yQQQQ":"y QQQQ","timeFormat-long":"HH:mm:ss z","field-year":"שנה","dateFormatItem-yMMM":"MMM y","field-hour":"שעה","months-format-abbr":["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],"field-sat-relative+0":"השבת הזאת","field-sat-relative+1":"השבת הבאה","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"היום","field-thu-relative+0":"יום חמישי","field-day-relative+1":"מחר","field-thu-relative+1":"יום חמישי הבא","dateFormatItem-GyMMMd":"d בMMM y G","field-day-relative+2":"מחרתיים","dateFormatItem-H":"HH","months-standAlone-abbr":["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],"quarters-format-abbr":["רבעון 1","רבעון 2","רבעון 3","רבעון 4"],"quarters-standAlone-wide":["רבעון 1","רבעון 2","רבעון 3","רבעון 4"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"],"timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"יום ראשון","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"יום ראשון הבא","quarters-standAlone-abbr":["רבעון 1","רבעון 2","רבעון 3","רבעון 4"],eraAbbr:["לפנה״ס","BCE","לסה״נ","CE"],"field-minute":"דקה","field-dayperiod":"לפנה״צ/אחה״צ","days-standAlone-abbr":["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"אתמול","dateFormatItem-h":"‏h a","dateTimeFormat-long":"{1} בשעה {0}","field-day-relative+-2":"שלשום","dateFormatItem-MMMd":"d בMMM","dateFormatItem-MEd":"E, d/M","dateTimeFormat-full":"{1} בשעה {0}","field-fri-relative+0":"יום שישי","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"יום שישי הבא","field-day":"יום","days-format-wide":["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"],"field-zone":"אזור","dateFormatItem-y":"y","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-year-relative+-1":"השנה שעברה","field-month-relative+-1":"החודש שעבר","dateFormatItem-hm":"h:mm a","days-format-abbr":["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],"dateFormatItem-yMMMd":"d בMMM y",eraNames:["לפני הספירה","לספירה","לסה״נ","CE"],"days-format-narrow":["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],"days-standAlone-narrow":["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],"dateFormatItem-MMM":"LLL","field-month":"חודש","field-tue-relative+0":"יום שלישי","field-tue-relative+1":"יום שלישי הבא","dayPeriods-format-wide-am":"לפנה״צ","dateFormatItem-EHm":"E H:mm","field-mon-relative+0":"יום שני הזה","field-mon-relative+1":"יום שני הבא","dateFormat-short":"dd/MM/yy","dateFormatItem-EHms":"E H:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"שנייה","field-sat-relative+-1":"השבת שעברה","dateFormatItem-yMMMEd":"E, d בMMM y","field-sun-relative+-1":"יום ראשון שעבר","field-month-relative+0":"החודש","field-month-relative+1":"החודש הבא","dateFormatItem-Ed":"E ה-d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"שבוע","dateFormat-medium":"d בMMM y","field-year-relative+0":"השנה","field-week-relative+-1":"השבוע שעבר","field-year-relative+1":"השנה הבאה","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"יום שני שעבר","field-week-relative+0":"השבוע","field-week-relative+1":"השבוע הבא"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["ned","pon","uto","sri","čet","pet","sub"],"months-format-narrow":["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],"field-second-relative+0":"sada","quarters-standAlone-narrow":["1.","2.","3.","4."],"field-weekday":"Dan u tjednu","dateFormatItem-yQQQ":"QQQ y.","dateFormatItem-yMEd":"E, d. M. y.","field-wed-relative+0":"ova srijeda","dateFormatItem-GyMMMEd":"E, d. MMM y. G","dateFormatItem-MMMEd":"E, d. MMM","field-wed-relative+1":"sljedeća srijeda",eraNarrow:["pr.n.e.","AD"],"dateFormatItem-yMM":"MM. y.","field-tue-relative+-1":"prošli utorak","days-format-short":["ned","pon","uto","sri","čet","pet","sub"],"dateFormat-long":"d. MMMM y.","field-fri-relative+-1":"prošli petak","field-wed-relative+-1":"prošla srijeda","months-format-wide":["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenoga","prosinca"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, d. MMMM y.","field-thu-relative+-1":"prošli četvrtak","dateFormatItem-Md":"d. M.","dayPeriods-format-wide-noon":"podne","dateFormatItem-yMd":"d. M. y.","dateFormatItem-yM":"M. y.","field-era":"Era","months-standAlone-wide":["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"],"timeFormat-short":"HH:mm","quarters-format-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"LLL y.","dateFormatItem-yQQQQ":"QQQQ y.","field-year":"Godina","dateFormatItem-MMdd":"dd. MM.","field-hour":"Sat","months-format-abbr":["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],"field-sat-relative+0":"ova subota","field-sat-relative+1":"sljedeća subota","timeFormat-full":"HH:mm:ss zzzz","dayPeriods-format-narrow-morning":"prijepodne","field-day-relative+0":"danas","field-day-relative+1":"sutra","field-thu-relative+0":"ovaj četvrtak","dateFormatItem-GyMMMd":"d. MMM y. G","field-day-relative+2":"prekosutra","field-thu-relative+1":"sljedeći četvrtak","dateFormatItem-H":"HH","months-standAlone-abbr":["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],"quarters-format-abbr":["1kv","2kv","3kv","4kv"],"quarters-standAlone-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"dateFormatItem-Gy":"y. G","dateFormatItem-M":"L.","days-standAlone-wide":["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],"dayPeriods-format-narrow-evening":"navečer","dateFormatItem-MMMMd":"d. MMMM","dayPeriods-format-abbr-noon":"podne","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"ova nedjelja","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["1kv","2kv","3kv","4kv"],"field-sun-relative+1":"sljedeća nedjelja",eraAbbr:["pr. Kr.","p. Kr."],"field-minute":"Minuta","field-dayperiod":"Prijepodne/popodne","days-standAlone-abbr":["ned","pon","uto","sri","čet","pet","sub"],"dateFormatItem-d":"d.","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1.","2.","3.","4."],"field-day-relative+-1":"jučer","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} 'u' {0}","field-day-relative+-2":"prekjučer","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E, d. M.","dateTimeFormat-full":"{1} 'u' {0}","field-fri-relative+0":"ovaj petak","dateFormatItem-yMMMM":"LLLL y.","field-fri-relative+1":"sljedeći petak","field-day":"Dan","days-format-wide":["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],"field-zone":"Vremenska zona","months-standAlone-narrow":["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],"dateFormatItem-y":"y.","field-year-relative+-1":"prošle godine","dayPeriods-format-narrow-night":"noću","field-month-relative+-1":"prošli mjesec","dateFormatItem-hm":"hh:mm a","days-format-abbr":["ned","pon","uto","sri","čet","pet","sub"],eraNames:["Prije Krista","Poslije Krista"],"dateFormatItem-yMMMd":"d. MMM y.","days-format-narrow":["N","P","U","S","Č","P","S"],"dayPeriods-format-narrow-earlyMorning":"ujutro","days-standAlone-narrow":["n","p","u","s","č","p","s"],"dateFormatItem-MMM":"LLL","field-month":"Mjesec","field-tue-relative+0":"ovaj utorak","field-tue-relative+1":"sljedeći utorak","dayPeriods-format-wide-am":"AM","dateFormatItem-MMMMEd":"E, d. MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"ovaj ponedjeljak","field-mon-relative+1":"sljedeći ponedjeljak","dateFormat-short":"d.M.yy.","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","dayPeriods-format-narrow-afternoon":"popodne","dayPeriods-format-narrow-noon":"n","field-second":"Sekunda","field-sat-relative+-1":"prošla subota","dateFormatItem-yMMMEd":"E, d. MMM y.","field-sun-relative+-1":"prošla nedjelja","field-month-relative+0":"ovaj mjesec","field-month-relative+1":"sljedeći mjesec","dateFormatItem-Ed":"E, d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Tjedan","dateFormat-medium":"d. MMM y.","field-year-relative+0":"ove godine","field-week-relative+-1":"prošli tjedan","field-year-relative+1":"sljedeće godine","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"hh:mm:ss a","dateFormatItem-GyMMM":"LLL y. G","field-mon-relative+-1":"prošli ponedjeljak","field-week-relative+0":"ovaj tjedan","field-week-relative+1":"sljedeći tjedan"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["V","H","K","Sze","Cs","P","Szo"],"months-format-narrow":["J","F","M","Á","M","J","J","A","Sz","O","N","D"],"field-second-relative+0":"most","quarters-standAlone-narrow":["1.","2.","3.","4."],"field-weekday":"hét napja","dateFormatItem-yQQQ":"y. QQQ","dateFormatItem-yMEd":"y. MM. dd., E","field-wed-relative+0":"ez a szerda","dateFormatItem-GyMMMEd":"G y. MMM d., E","dateFormatItem-MMMEd":"MMM d., E","field-wed-relative+1":"következő szerda",eraNarrow:["ie.","isz."],"field-tue-relative+-1":"előző kedd","days-format-short":["V","H","K","Sze","Cs","P","Szo"],"dateFormat-long":"y. MMMM d.","field-fri-relative+-1":"előző péntek","field-wed-relative+-1":"előző szerda","months-format-wide":["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"du.","dateFormat-full":"y. MMMM d., EEEE","field-thu-relative+-1":"előző csütörtök","dateFormatItem-Md":"M. d.","dateFormatItem-yMd":"y. MM. dd.","dateFormatItem-yM":"y. M.","field-era":"éra","months-standAlone-wide":["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],"timeFormat-short":"H:mm","quarters-format-wide":["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"],"timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"y. MMM","dateFormatItem-yQQQQ":"y. QQQQ","field-year":"év","field-hour":"óra","months-format-abbr":["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],"field-sat-relative+0":"ez a szombat","field-sat-relative+1":"következő szombat","timeFormat-full":"H:mm:ss zzzz","field-day-relative+0":"ma","field-day-relative+1":"holnap","field-thu-relative+0":"ez a csütörtök","dateFormatItem-GyMMMd":"G y. MMM d.","field-day-relative+2":"holnapután","field-thu-relative+1":"következő csütörtök","dateFormatItem-H":"H","months-standAlone-abbr":["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],"quarters-format-abbr":["N1","N2","N3","N4"],"quarters-standAlone-wide":["1. negyedév","2. negyedév","3. negyedév","4. negyedév"],"dateFormatItem-Gy":"G y.","dateFormatItem-M":"L","days-standAlone-wide":["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],"dateFormatItem-MMMMd":"MMMM d.","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"ez a vasárnap","dateFormatItem-Hm":"H:mm","quarters-standAlone-abbr":["N1","N2","N3","N4"],"field-sun-relative+1":"következő vasárnap",eraAbbr:["i. e.","i. sz."],"field-minute":"perc","field-dayperiod":"napszak","days-standAlone-abbr":["V","H","K","Sze","Cs","P","Szo"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1.","2.","3.","4."],"field-day-relative+-1":"tegnap","dateFormatItem-h":"a h","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"de.","field-day-relative+-2":"tegnapelőtt","dateFormatItem-MMMd":"MMM d.","dateFormatItem-MEd":"M. d., E","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"ez a péntek","dateFormatItem-yMMMM":"y. MMMM","field-fri-relative+1":"következő péntek","field-day":"nap","days-format-wide":["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],"field-zone":"időzóna","dateFormatItem-y":"y.","months-standAlone-narrow":["J","F","M","Á","M","J","J","A","Sz","O","N","D"],"field-year-relative+-1":"előző év","field-month-relative+-1":"előző hónap","dateFormatItem-hm":"a h:mm","days-format-abbr":["V","H","K","Sze","Cs","P","Szo"],"dateFormatItem-yMMMd":"y. MMM d.",eraNames:["időszámításunk előtt","időszámításunk szerint"],"days-format-narrow":["V","H","K","Sz","Cs","P","Sz"],"days-standAlone-narrow":["V","H","K","Sz","Cs","P","Sz"],"dateFormatItem-MMM":"LLL","field-month":"hónap","field-tue-relative+0":"ez a kedd","field-tue-relative+1":"következő kedd","dayPeriods-format-wide-am":"de.","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"ez a hétfő","field-mon-relative+1":"következő hétfő","dateFormat-short":"y. MM. dd.","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"másodperc","field-sat-relative+-1":"előző szombat","dateFormatItem-yMMMEd":"y. MMM d., E","field-sun-relative+-1":"előző vasárnap","field-month-relative+0":"ez a hónap","field-month-relative+1":"következő hónap","dateFormatItem-Ed":"d., E","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"hét","dateFormat-medium":"y. MMM d.","field-year-relative+0":"ez az év","field-week-relative+-1":"előző hét","field-year-relative+1":"következő év","dateFormatItem-mmss":"mm:ss","dayPeriods-format-narrow-pm":"du.","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"a h:mm:ss","dateFormatItem-GyMMM":"G y. MMM","field-mon-relative+-1":"előző hétfő","field-week-relative+0":"ez a hét","field-week-relative+1":"következő hét"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h.mm a","days-standAlone-short":["dom","lun","mar","mer","gio","ven","sab"],"months-format-narrow":["G","F","M","A","M","G","L","A","S","O","N","D"],"field-second-relative+0":"ora","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"giorno della settimana","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d/M/y","field-wed-relative+0":"questo mercoledì","dateFormatItem-GyMMMEd":"E d MMM y G","dateFormatItem-MMMEd":"E d MMM","field-wed-relative+1":"mercoledì prossimo",eraNarrow:["aC","BCE","dC","CE"],"field-tue-relative+-1":"martedì scorso","days-format-short":["dom","lun","mar","mer","gio","ven","sab"],"dateFormat-long":"dd MMMM y","field-fri-relative+-1":"venerdì scorso","field-wed-relative+-1":"mercoledì scorso","months-format-wide":["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE d MMMM y","field-thu-relative+-1":"giovedì scorso","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d/M/y","dateFormatItem-yM":"M/y","field-era":"era","months-standAlone-wide":["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],"timeFormat-short":"HH:mm","quarters-format-wide":["1º trimestre","2º trimestre","3º trimestre","4º trimestre"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"anno","field-hour":"ora","months-format-abbr":["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],"field-sat-relative+0":"questo sabato","field-sat-relative+1":"sabato prossimo","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"oggi","field-day-relative+1":"domani","field-thu-relative+0":"questo giovedì","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"dopodomani","field-thu-relative+1":"giovedì prossimo","dateFormatItem-H":"HH","months-standAlone-abbr":["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["Primo trimestre","Secondo trimestre","Terzo trimestre","Quarto trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],"timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"questa domenica","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["T1","T2","T3","T4"],"field-sun-relative+1":"domenica prossima",eraAbbr:["aC","BCE","dC","CE"],"field-minute":"minuto","field-dayperiod":"periodo del giorno","days-standAlone-abbr":["dom","lun","mar","mer","gio","ven","sab"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"ieri","dateFormatItem-h":"hh a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"m.","field-day-relative+-2":"l'altro ieri","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"questo venerdì","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"venerdì prossimo","field-day":"giorno","days-format-wide":["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],"field-zone":"fuso orario","dateFormatItem-y":"y","months-standAlone-narrow":["G","F","M","A","M","G","L","A","S","O","N","D"],"field-year-relative+-1":"anno scorso","field-month-relative+-1":"mese scorso","dateFormatItem-hm":"hh:mm a","days-format-abbr":["dom","lun","mar","mer","gio","ven","sab"],"dateFormatItem-yMMMd":"d MMM y",eraNames:["a.C.","BCE","d.C.","CE"],"days-format-narrow":["D","L","M","M","G","V","S"],"days-standAlone-narrow":["D","L","M","M","G","V","S"],"dateFormatItem-MMM":"LLL","field-month":"mese","field-tue-relative+0":"questo martedì","field-tue-relative+1":"martedì prossimo","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E HH.mm","field-mon-relative+0":"questo lunedì","field-mon-relative+1":"lunedì prossimo","dateFormat-short":"dd/MM/yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"secondo","field-sat-relative+-1":"sabato scorso","dateFormatItem-yMMMEd":"E d MMM y","field-sun-relative+-1":"domenica scorsa","field-month-relative+0":"questo mese","field-month-relative+1":"mese prossimo","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"settimana","dateFormat-medium":"dd/MMM/y","field-year-relative+0":"quest'anno","field-week-relative+-1":"settimana scorsa","field-year-relative+1":"anno prossimo","dayPeriods-format-narrow-pm":"p.","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"hh:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"lunedì scorso","field-week-relative+0":"questa settimana","field-week-relative+1":"settimana prossima"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"a K 時 mm 分 (E)","days-standAlone-short":["日","月","火","水","木","金","土"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"今すぐ","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"曜日","dateFormatItem-yQQQ":"y/QQQ","dateFormatItem-yMEd":"y/M/d(E)","field-wed-relative+0":"今週の水曜日","dateFormatItem-GyMMMEd":"Gy年M月d日(E)","dateFormatItem-MMMEd":"M月d日(E)","field-wed-relative+1":"来週の水曜日",eraNarrow:["BC","BCE","AD","CE"],"dateFormatItem-yMM":"y/MM","field-tue-relative+-1":"先週の火曜日","days-format-short":["日","月","火","水","木","金","土"],"dateFormat-long":"y年M月d日","field-fri-relative+-1":"先週の金曜日","field-wed-relative+-1":"先週の水曜日","months-format-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"午後","dateFormat-full":"y年M月d日EEEE","field-thu-relative+-1":"先週の木曜日","dateFormatItem-Md":"M/d","dayPeriods-format-wide-noon":"正午","dateFormatItem-yMd":"y/M/d","dateFormatItem-yM":"y/M","field-era":"時代","months-standAlone-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"timeFormat-short":"H:mm","quarters-format-wide":["第1四半期","第2四半期","第3四半期","第4四半期"],"dateFormatItem-MEEEEd":"M/dEEEE","timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"y年M月","dateFormatItem-yQQQQ":"yQQQQ","field-year":"年","field-hour":"時","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-sat-relative+0":"今週の土曜日","field-sat-relative+1":"来週の土曜日","timeFormat-full":"H時mm分ss秒 zzzz","dateFormatItem-yMEEEEd":"y/M/dEEEE","field-day-relative+0":"今日","field-day-relative+1":"明日","field-thu-relative+0":"今週の木曜日","dateFormatItem-GyMMMd":"Gy年M月d日","field-day-relative+2":"明後日","field-thu-relative+1":"来週の木曜日","dateFormatItem-H":"H時","months-standAlone-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["第1四半期","第2四半期","第3四半期","第4四半期"],"dateFormatItem-Gy":"Gy年","dateFormatItem-M":"M月","days-standAlone-wide":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"dateFormatItem-yMMMEEEEd":"y年M月d日EEEE","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"今週の日曜日","dateFormatItem-Hm":"H:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"field-sun-relative+1":"来週の日曜日",eraAbbr:["紀元前","西暦"],"field-minute":"分","field-dayperiod":"午前/午後","days-standAlone-abbr":["日","月","火","水","木","金","土"],"dateFormatItem-d":"d日","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"昨日","dateFormatItem-h":"aK時","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"午前","field-day-relative+-2":"一昨日","dateFormatItem-MMMd":"M月d日","dateFormatItem-EEEEd":"d日EEEE","dateFormatItem-MEd":"M/d(E)","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"今週の金曜日","field-fri-relative+1":"来週の金曜日","field-day":"日","days-format-wide":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"field-zone":"タイムゾーン","dateFormatItem-y":"y年","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-year-relative+-1":"昨年","field-month-relative+-1":"先月","dateFormatItem-hm":"aK:mm","dateFormatItem-GyMMMEEEEd":"Gy年M月d日EEEE","days-format-abbr":["日","月","火","水","木","金","土"],eraNames:["紀元前","西暦紀元前","西暦"],"dateFormatItem-yMMMd":"y年M月d日","days-format-narrow":["日","月","火","水","木","金","土"],"dateFormatItem-MMMEEEEd":"M月d日EEEE","days-standAlone-narrow":["日","月","火","水","木","金","土"],"dateFormatItem-MMM":"M月","field-month":"月","field-tue-relative+0":"今週の火曜日","field-tue-relative+1":"来週の火曜日","dayPeriods-format-wide-am":"午前","dateFormatItem-EHm":"HH 時 mm 分 (E)","field-mon-relative+0":"今週の月曜日","field-mon-relative+1":"来週の月曜日","dateFormat-short":"y/MM/dd","dateFormatItem-EHms":"HH 時 mm 分 ss 秒 (E)","dateFormatItem-Ehms":"a K 時 mm 分 ss 秒 (E)","dayPeriods-format-narrow-noon":"正午","field-second":"秒","field-sat-relative+-1":"先週の土曜日","dateFormatItem-yMMMEd":"y年M月d日(E)","field-sun-relative+-1":"先週の日曜日","field-month-relative+0":"今月","field-month-relative+1":"翌月","dateFormatItem-Ed":"d日(E)","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"週","dateFormat-medium":"y/MM/dd","field-year-relative+0":"今年","field-week-relative+-1":"先週","field-year-relative+1":"翌年","dayPeriods-format-narrow-pm":"午後","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"aK:mm:ss","dateFormatItem-GyMMM":"Gy年M月","field-mon-relative+-1":"先週の月曜日","field-week-relative+0":"今週","field-week-relative+1":"翌週"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"a K 時 mm 分 (E)","days-standAlone-short":["日","月","火","水","木","金","土"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"今すぐ","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"曜日","dateFormatItem-yQQQ":"y/QQQ","dateFormatItem-yMEd":"y/M/d(E)","field-wed-relative+0":"今週の水曜日","dateFormatItem-GyMMMEd":"Gy年M月d日(E)","dateFormatItem-MMMEd":"M月d日(E)","field-wed-relative+1":"来週の水曜日",eraNarrow:["BC","BCE","AD","CE"],"dateFormatItem-yMM":"y/MM","field-tue-relative+-1":"先週の火曜日","days-format-short":["日","月","火","水","木","金","土"],"dateFormat-long":"y年M月d日","field-fri-relative+-1":"先週の金曜日","field-wed-relative+-1":"先週の水曜日","months-format-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"午後","dateFormat-full":"y年M月d日EEEE","field-thu-relative+-1":"先週の木曜日","dateFormatItem-Md":"M/d","dayPeriods-format-wide-noon":"正午","dateFormatItem-yMd":"y/M/d","dateFormatItem-yM":"y/M","field-era":"時代","months-standAlone-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"timeFormat-short":"H:mm","quarters-format-wide":["第1四半期","第2四半期","第3四半期","第4四半期"],"dateFormatItem-MEEEEd":"M/dEEEE","timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"y年M月","dateFormatItem-yQQQQ":"yQQQQ","field-year":"年","field-hour":"時","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-sat-relative+0":"今週の土曜日","field-sat-relative+1":"来週の土曜日","timeFormat-full":"H時mm分ss秒 zzzz","dateFormatItem-yMEEEEd":"y/M/dEEEE","field-day-relative+0":"今日","field-day-relative+1":"明日","field-thu-relative+0":"今週の木曜日","dateFormatItem-GyMMMd":"Gy年M月d日","field-day-relative+2":"明後日","field-thu-relative+1":"来週の木曜日","dateFormatItem-H":"H時","months-standAlone-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["第1四半期","第2四半期","第3四半期","第4四半期"],"dateFormatItem-Gy":"Gy年","dateFormatItem-M":"M月","days-standAlone-wide":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"dateFormatItem-yMMMEEEEd":"y年M月d日EEEE","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"今週の日曜日","dateFormatItem-Hm":"H:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"field-sun-relative+1":"来週の日曜日",eraAbbr:["紀元前","西暦"],"field-minute":"分","field-dayperiod":"午前/午後","days-standAlone-abbr":["日","月","火","水","木","金","土"],"dateFormatItem-d":"d日","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"昨日","dateFormatItem-h":"aK時","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"午前","field-day-relative+-2":"一昨日","dateFormatItem-MMMd":"M月d日","dateFormatItem-EEEEd":"d日EEEE","dateFormatItem-MEd":"M/d(E)","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"今週の金曜日","field-fri-relative+1":"来週の金曜日","field-day":"日","days-format-wide":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"field-zone":"タイムゾーン","dateFormatItem-y":"y年","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-year-relative+-1":"昨年","field-month-relative+-1":"先月","dateFormatItem-hm":"aK:mm","dateFormatItem-GyMMMEEEEd":"Gy年M月d日EEEE","days-format-abbr":["日","月","火","水","木","金","土"],eraNames:["紀元前","西暦紀元前","西暦"],"dateFormatItem-yMMMd":"y年M月d日","days-format-narrow":["日","月","火","水","木","金","土"],"dateFormatItem-MMMEEEEd":"M月d日EEEE","days-standAlone-narrow":["日","月","火","水","木","金","土"],"dateFormatItem-MMM":"M月","field-month":"月","field-tue-relative+0":"今週の火曜日","field-tue-relative+1":"来週の火曜日","dayPeriods-format-wide-am":"午前","dateFormatItem-EHm":"HH 時 mm 分 (E)","field-mon-relative+0":"今週の月曜日","field-mon-relative+1":"来週の月曜日","dateFormat-short":"y/MM/dd","dateFormatItem-EHms":"HH 時 mm 分 ss 秒 (E)","dateFormatItem-Ehms":"a K 時 mm 分 ss 秒 (E)","dayPeriods-format-narrow-noon":"正午","field-second":"秒","field-sat-relative+-1":"先週の土曜日","dateFormatItem-yMMMEd":"y年M月d日(E)","field-sun-relative+-1":"先週の日曜日","field-month-relative+0":"今月","field-month-relative+1":"翌月","dateFormatItem-Ed":"d日(E)","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"週","dateFormat-medium":"y/MM/dd","field-year-relative+0":"今年","field-week-relative+-1":"先週","field-year-relative+1":"翌年","dayPeriods-format-narrow-pm":"午後","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"aK:mm:ss","dateFormatItem-GyMMM":"Gy年M月","field-mon-relative+-1":"先週の月曜日","field-week-relative+0":"今週","field-week-relative+1":"翌週"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"(E) a h:mm","days-standAlone-short":["일","월","화","수","목","금","토"],"months-format-narrow":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"field-second-relative+0":"지금","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"요일","dateFormatItem-yQQQ":"y년 QQQ","dateFormatItem-yMEd":"y. M. d. (E)","field-wed-relative+0":"이번 수요일","field-wed-relative+1":"다음 수요일","dateFormatItem-GyMMMEd":"G y년 MMM d일 (E)","dateFormatItem-MMMEd":"MMM d일 (E)",eraNarrow:["기원전","서기"],"dateFormatItem-yMM":"y. M.","field-tue-relative+-1":"지난 화요일","days-format-short":["일","월","화","수","목","금","토"],"dateFormat-long":"y년 M월 d일","field-fri-relative+-1":"지난 금요일","field-wed-relative+-1":"지난 수요일","months-format-wide":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"오후","dateFormat-full":"y년 M월 d일 EEEE","field-thu-relative+-1":"지난 목요일","dateFormatItem-Md":"M. d.","dateFormatItem-yMd":"y. M. d.","field-era":"연호","dateFormatItem-yM":"y. M.","months-standAlone-wide":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"timeFormat-short":"a h:mm","quarters-format-wide":["제 1/4분기","제 2/4분기","제 3/4분기","제 4/4분기"],"dateFormatItem-MEEEEd":"M. d. EEEE","dateFormatItem-yQQQQ":"y년 QQQQ","timeFormat-long":"a h시 m분 s초 z","field-year":"년","dateFormatItem-yMMM":"y년 MMM","field-hour":"시","months-format-abbr":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"field-sat-relative+0":"이번 토요일","field-sat-relative+1":"다음 토요일","dateFormatItem-yMEEEEd":"y. M. d. EEEE","timeFormat-full":"a h시 m분 s초 zzzz","field-day-relative+0":"오늘","field-thu-relative+0":"이번 목요일","field-day-relative+1":"내일","field-thu-relative+1":"다음 목요일","dateFormatItem-GyMMMd":"G y년 MMM d일","field-day-relative+2":"모레","dateFormatItem-H":"H시","months-standAlone-abbr":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"quarters-format-abbr":["1분기","2분기","3분기","4분기"],"quarters-standAlone-wide":["제 1/4분기","제 2/4분기","제 3/4분기","제 4/4분기"],"dateFormatItem-Gy":"G y년","dateFormatItem-HHmmss":"HH:mm:ss","dateFormatItem-M":"M월","days-standAlone-wide":["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],"dateFormatItem-yMMMEEEEd":"y년 MMM d일 EEEE","timeFormat-medium":"a h:mm:ss","field-sun-relative+0":"이번 일요일","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"다음 일요일","quarters-standAlone-abbr":["1분기","2분기","3분기","4분기"],eraAbbr:["기원전","서기"],"field-minute":"분","field-dayperiod":"오전/오후","days-standAlone-abbr":["일","월","화","수","목","금","토"],"dateFormatItem-d":"d일","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"어제","dateFormatItem-h":"a h시","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"그저께","dateFormatItem-MMMd":"MMM d일","dateFormatItem-EEEEd":"d일 EEEE","dateFormatItem-MEd":"M. d. (E)","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"이번 금요일","field-fri-relative+1":"다음 금요일","field-day":"일","days-format-wide":["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],"field-zone":"시간대","dateFormatItem-y":"y년","months-standAlone-narrow":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"field-year-relative+-1":"지난해","field-month-relative+-1":"지난달","dateFormatItem-hm":"a h:mm","dateFormatItem-GyMMMEEEEd":"G y년 MMM d일 EEEE","days-format-abbr":["일","월","화","수","목","금","토"],"dateFormatItem-yMMMd":"y년 MMM d일",eraNames:["서력기원전","서력기원"],"days-format-narrow":["일","월","화","수","목","금","토"],"dateFormatItem-MMMEEEEd":"MMM d일 EEEE","days-standAlone-narrow":["일","월","화","수","목","금","토"],"dateFormatItem-MMM":"LLL","field-month":"월","field-tue-relative+0":"이번 화요일","field-tue-relative+1":"다음 화요일","dayPeriods-format-wide-am":"오전","dateFormatItem-EHm":"(E) HH:mm","field-mon-relative+0":"이번 월요일","field-mon-relative+1":"다음 월요일","dateFormat-short":"yy. M. d.","dateFormatItem-EHms":"(E) HH:mm:ss","dateFormatItem-Ehms":"(E) a h:mm:ss","field-second":"초","field-sat-relative+-1":"지난 토요일","dateFormatItem-yMMMEd":"y년 MMM d일 (E)","field-sun-relative+-1":"지난 일요일","field-month-relative+0":"이번 달","field-month-relative+1":"다음 달","dateFormatItem-Ed":"d일 (E)","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"주","dateFormat-medium":"y. M. d.","field-year-relative+0":"올해","field-week-relative+-1":"지난주","field-year-relative+1":"내년","dateFormatItem-mmss":"mm:ss","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H시 m분 s초","dateFormatItem-hms":"a h:mm:ss","dateFormatItem-GyMMM":"G y년 MMM","field-mon-relative+-1":"지난 월요일","field-week-relative+0":"이번 주","field-week-relative+1":"다음 주"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"(E) a h:mm","days-standAlone-short":["일","월","화","수","목","금","토"],"months-format-narrow":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"field-second-relative+0":"지금","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"요일","dateFormatItem-yQQQ":"y년 QQQ","dateFormatItem-yMEd":"y. M. d. (E)","field-wed-relative+0":"이번 수요일","field-wed-relative+1":"다음 수요일","dateFormatItem-GyMMMEd":"G y년 MMM d일 (E)","dateFormatItem-MMMEd":"MMM d일 (E)",eraNarrow:["기원전","서기"],"dateFormatItem-yMM":"y. M.","field-tue-relative+-1":"지난 화요일","days-format-short":["일","월","화","수","목","금","토"],"dateFormat-long":"y년 M월 d일","field-fri-relative+-1":"지난 금요일","field-wed-relative+-1":"지난 수요일","months-format-wide":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"오후","dateFormat-full":"y년 M월 d일 EEEE","field-thu-relative+-1":"지난 목요일","dateFormatItem-Md":"M. d.","dateFormatItem-yMd":"y. M. d.","field-era":"연호","dateFormatItem-yM":"y. M.","months-standAlone-wide":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"timeFormat-short":"a h:mm","quarters-format-wide":["제 1/4분기","제 2/4분기","제 3/4분기","제 4/4분기"],"dateFormatItem-MEEEEd":"M. d. EEEE","dateFormatItem-yQQQQ":"y년 QQQQ","timeFormat-long":"a h시 m분 s초 z","field-year":"년","dateFormatItem-yMMM":"y년 MMM","field-hour":"시","months-format-abbr":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"field-sat-relative+0":"이번 토요일","field-sat-relative+1":"다음 토요일","dateFormatItem-yMEEEEd":"y. M. d. EEEE","timeFormat-full":"a h시 m분 s초 zzzz","field-day-relative+0":"오늘","field-thu-relative+0":"이번 목요일","field-day-relative+1":"내일","field-thu-relative+1":"다음 목요일","dateFormatItem-GyMMMd":"G y년 MMM d일","field-day-relative+2":"모레","dateFormatItem-H":"H시","months-standAlone-abbr":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"quarters-format-abbr":["1분기","2분기","3분기","4분기"],"quarters-standAlone-wide":["제 1/4분기","제 2/4분기","제 3/4분기","제 4/4분기"],"dateFormatItem-Gy":"G y년","dateFormatItem-HHmmss":"HH:mm:ss","dateFormatItem-M":"M월","days-standAlone-wide":["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],"dateFormatItem-yMMMEEEEd":"y년 MMM d일 EEEE","timeFormat-medium":"a h:mm:ss","field-sun-relative+0":"이번 일요일","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"다음 일요일","quarters-standAlone-abbr":["1분기","2분기","3분기","4분기"],eraAbbr:["기원전","서기"],"field-minute":"분","field-dayperiod":"오전/오후","days-standAlone-abbr":["일","월","화","수","목","금","토"],"dateFormatItem-d":"d일","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"어제","dateFormatItem-h":"a h시","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"그저께","dateFormatItem-MMMd":"MMM d일","dateFormatItem-EEEEd":"d일 EEEE","dateFormatItem-MEd":"M. d. (E)","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"이번 금요일","field-fri-relative+1":"다음 금요일","field-day":"일","days-format-wide":["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],"field-zone":"시간대","dateFormatItem-y":"y년","months-standAlone-narrow":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"field-year-relative+-1":"지난해","field-month-relative+-1":"지난달","dateFormatItem-hm":"a h:mm","dateFormatItem-GyMMMEEEEd":"G y년 MMM d일 EEEE","days-format-abbr":["일","월","화","수","목","금","토"],"dateFormatItem-yMMMd":"y년 MMM d일",eraNames:["서력기원전","서력기원"],"days-format-narrow":["일","월","화","수","목","금","토"],"dateFormatItem-MMMEEEEd":"MMM d일 EEEE","days-standAlone-narrow":["일","월","화","수","목","금","토"],"dateFormatItem-MMM":"LLL","field-month":"월","field-tue-relative+0":"이번 화요일","field-tue-relative+1":"다음 화요일","dayPeriods-format-wide-am":"오전","dateFormatItem-EHm":"(E) HH:mm","field-mon-relative+0":"이번 월요일","field-mon-relative+1":"다음 월요일","dateFormat-short":"yy. M. d.","dateFormatItem-EHms":"(E) HH:mm:ss","dateFormatItem-Ehms":"(E) a h:mm:ss","field-second":"초","field-sat-relative+-1":"지난 토요일","dateFormatItem-yMMMEd":"y년 MMM d일 (E)","field-sun-relative+-1":"지난 일요일","field-month-relative+0":"이번 달","field-month-relative+1":"다음 달","dateFormatItem-Ed":"d일 (E)","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"주","dateFormat-medium":"y. M. d.","field-year-relative+0":"올해","field-week-relative+-1":"지난주","field-year-relative+1":"내년","dateFormatItem-mmss":"mm:ss","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H시 m분 s초","dateFormatItem-hms":"a h:mm:ss","dateFormatItem-GyMMM":"G y년 MMM","field-mon-relative+-1":"지난 월요일","field-week-relative+0":"이번 주","field-week-relative+1":"다음 주"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["нед.","пон.","вто.","сре.","чет.","пет.","саб."],"months-format-narrow":["ј","ф","м","а","м","ј","ј","а","с","о","н","д"],"field-second-relative+0":"сега","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Ден во неделата","dateFormatItem-yQQQ":"QQQ y 'г'.","dateFormatItem-yMEd":"E, d.M.y","field-wed-relative+0":"оваа среда","field-wed-relative+1":"следната среда","dateFormatItem-GyMMMEd":"E, dd MMM y 'г'. G","dateFormatItem-MMMEd":"E d MMM",eraNarrow:["пр.н.е.","н.е."],"field-tue-relative+-1":"минатиот вторник","days-format-short":["нед.","пон.","3","сре.","чет.","пет.","7"],"dateFormat-long":"dd MMMM y 'г'.","field-fri-relative+-1":"минатиот петок","field-wed-relative+-1":"минатата среда","months-format-wide":["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"попладне","dateFormat-full":"EEEE, dd MMMM y 'г'.","field-thu-relative+-1":"минатиот четврток","dateFormatItem-Md":"d.M","dateFormatItem-yMd":"d.M.y","field-era":"Ера","dateFormatItem-yM":"M.y","months-standAlone-wide":["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],"timeFormat-short":"HH:mm","quarters-format-wide":["прво тромесечје","второ тромесечје","трето тромесечје","четврто тромесечје"],"dateFormatItem-yQQQQ":"QQQQ y 'г'.","timeFormat-long":"HH:mm:ss z","field-year":"година","dateFormatItem-yMMM":"MMM y 'г'.","field-hour":"Час","months-format-abbr":["јан.","фев.","мар.","апр.","мај","јун.","јул.","авг.","септ.","окт.","ноем.","дек."],"field-sat-relative+0":"оваа сабота","field-sat-relative+1":"следната сабота","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"Денес","field-thu-relative+0":"овој четврток","field-day-relative+1":"утре","field-thu-relative+1":"следниот четврток","dateFormatItem-GyMMMd":"dd MMM y 'г'. G","field-day-relative+2":"задутре","dateFormatItem-H":"HH","months-standAlone-abbr":["јан.","фев.","мар.","апр.","мај","јун.","јул.","авг.","септ.","окт.","ноем.","дек."],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["прво тромесечје","второ тромесечје","трето тромесечје","четврто тромесечје"],"dateFormatItem-Gy":"y 'г'. G","dateFormatItem-M":"L","days-standAlone-wide":["недела","понеделник","вторник","среда","четврток","петок","сабота"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"оваа недела","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"следната недела","quarters-standAlone-abbr":["јан-мар","апр-јун","јул-сеп","окт-дек"],eraAbbr:["пр.н.е.","н.е."],"field-minute":"Минута","field-dayperiod":"претпладне/попладне","days-standAlone-abbr":["нед.","пон.","вт.","сре.","чет.","пет.","саб."],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"вчера","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"завчера","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E, d.M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"овој петок","dateFormatItem-yMMMM":"MMMM y 'г'.","field-fri-relative+1":"следниот петок","field-day":"ден","days-format-wide":["недела","понеделник","вторник","среда","четврток","петок","сабота"],"dateFormatItem-Mdd":"dd.M","field-zone":"зона","dateFormatItem-y":"y 'г'.","months-standAlone-narrow":["ј","ф","м","а","м","ј","ј","а","с","о","н","д"],"field-year-relative+-1":"минатата година","field-month-relative+-1":"минатиот месец","dateFormatItem-hm":"h:mm a","days-format-abbr":["нед.","пон.","вт.","сре.","чет.","пет.","саб."],"dateFormatItem-yMMMd":"d MMM y 'г'.",eraNames:["пр.н.е.","н.е."],"days-format-narrow":["н","п","в","с","ч","п","с"],"days-standAlone-narrow":["н","п","в","с","ч","п","с"],"dateFormatItem-MMM":"LLL","field-month":"Месец","field-tue-relative+0":"овој вторник","field-tue-relative+1":"следниот вторник","dayPeriods-format-wide-am":"претпладне","dateFormatItem-MMMMEd":"E d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"овој понеделник","field-mon-relative+1":"следниот понеделник","dateFormat-short":"dd.M.yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"Секунда","field-sat-relative+-1":"минатата сабота","dateFormatItem-yMMMEd":"E, d MMM y 'г'.","field-sun-relative+-1":"минатата недела","field-month-relative+0":"овој месец","field-month-relative+1":"следниот месец","dateFormatItem-Ed":"E, d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Недела","dateFormat-medium":"dd.M.y","field-year-relative+0":"оваа година","field-week-relative+-1":"минатата седмица","field-year-relative+1":"следната година","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y 'г'. G","field-mon-relative+-1":"минатиот понеделник","field-week-relative+0":"оваа седмица","field-week-relative+1":"следната седмица"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h.mm a","days-standAlone-short":["sø.","ma.","ti.","on.","to.","fr.","lø."],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"nå","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Ukedag","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d.MM.y","field-wed-relative+0":"onsdag denne uken","dateFormatItem-GyMMMEd":"E d. MMM y G","dateFormatItem-MMMEd":"E d. MMM","field-wed-relative+1":"onsdag neste uke",eraNarrow:["f.Kr.","fvt.","e.Kr.","vt"],"dateFormatItem-yMM":"MM.y","field-tue-relative+-1":"tirsdag sist uke","days-format-short":["sø.","ma.","ti.","on.","to.","fr.","lø."],"dateFormat-long":"d. MMMM y","field-fri-relative+-1":"fredag sist uke","field-wed-relative+-1":"onsdag sist uke","months-format-wide":["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],"dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"p.m.","dateFormat-full":"EEEE d. MMMM y","field-thu-relative+-1":"torsdag sist uke","dateFormatItem-Md":"d.M.","dayPeriods-format-abbr-am":"a.m.","dateFormatItem-yMd":"d.M.y","dateFormatItem-yM":"M.y","field-era":"Tidsalder","months-standAlone-wide":["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],"timeFormat-short":"HH.mm","quarters-format-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"timeFormat-long":"HH.mm.ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"År","dateFormatItem-MMdd":"d.M.","field-hour":"Time","months-format-abbr":["jan.","feb.","mar.","apr.","mai","jun.","jul.","aug.","sep.","okt.","nov.","des."],"field-sat-relative+0":"lørdag denne uken","field-sat-relative+1":"lørdag neste uke","timeFormat-full":"HH.mm.ss zzzz","field-day-relative+0":"i dag","field-day-relative+1":"i morgen","field-thu-relative+0":"torsdag denne uken","dateFormatItem-GyMMMd":"d. MMM y G","field-day-relative+2":"i overmorgen","field-thu-relative+1":"torsdag neste uke","dateFormatItem-H":"HH","months-standAlone-abbr":["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],"quarters-format-abbr":["K1","K2","K3","K4"],"quarters-standAlone-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L.","days-standAlone-wide":["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],"timeFormat-medium":"HH.mm.ss","field-sun-relative+0":"søndag denne uken","dateFormatItem-Hm":"HH.mm","quarters-standAlone-abbr":["K1","K2","K3","K4"],"field-sun-relative+1":"søndag neste uke",eraAbbr:["f.Kr.","e.Kr."],"field-minute":"Minutt","field-dayperiod":"AM/PM","days-standAlone-abbr":["sø.","ma.","ti.","on.","to.","fr.","lø."],"dateFormatItem-d":"d.","dateFormatItem-ms":"mm.ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"i går","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} 'kl.' {0}","dayPeriods-format-narrow-am":"a","field-day-relative+-2":"i forgårs","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E d.M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"fredag denne uken","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"fredag neste uke","field-day":"Dag","days-format-wide":["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],"field-zone":"Tidssone","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"I fjor","field-month-relative+-1":"Sist måned","dateFormatItem-hm":"h.mm a","dayPeriods-format-abbr-pm":"p.m.","days-format-abbr":["søn.","man.","tir.","ons.","tor.","fre.","lør."],eraNames:["f.Kr.","e.Kr."],"dateFormatItem-yMMMd":"d. MMM y","days-format-narrow":["S","M","T","O","T","F","L"],"days-standAlone-narrow":["S","M","T","O","T","F","L"],"dateFormatItem-MMM":"LLL","field-month":"Måned","field-tue-relative+0":"tirsdag denne uken","field-tue-relative+1":"tirsdag neste uke","dayPeriods-format-wide-am":"a.m.","dateFormatItem-EHm":"E HH.mm","field-mon-relative+0":"mandag denne uken","field-mon-relative+1":"mandag neste uke","dateFormat-short":"dd.MM.yy","dateFormatItem-EHms":"E HH.mm.ss","dateFormatItem-Ehms":"E h.mm.ss a","field-second":"Sekund","field-sat-relative+-1":"lørdag sist uke","dateFormatItem-yMMMEd":"E d. MMM y","field-sun-relative+-1":"søndag sist uke","field-month-relative+0":"Denne måneden","field-month-relative+1":"Neste måned","dateFormatItem-Ed":"E d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Uke","dateFormat-medium":"d. MMM y","field-year-relative+0":"Dette året","field-week-relative+-1":"Sist uke","field-year-relative+1":"Neste år","dayPeriods-format-narrow-pm":"p","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH.mm.ss","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"mandag sist uke","field-week-relative+0":"Denne uken","field-week-relative+1":"Neste uke"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["zo","ma","di","wo","do","vr","za"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"nu","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Dag van de week","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d-M-y","field-wed-relative+0":"deze woensdag","dateFormatItem-GyMMMEd":"E d MMM y G","dateFormatItem-MMMEd":"E d MMM","field-wed-relative+1":"volgende week woensdag",eraNarrow:["v.C.","vgj","n.C.","gj"],"field-tue-relative+-1":"afgelopen dinsdag","days-format-short":["zo","ma","di","wo","do","vr","za"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"afgelopen vrijdag","field-wed-relative+-1":"afgelopen woensdag","months-format-wide":["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE d MMMM y","field-thu-relative+-1":"afgelopen donderdag","dateFormatItem-Md":"d-M","dayPeriods-format-wide-noon":"12 uur 's middags","dateFormatItem-yMd":"d-M-y","dateFormatItem-yM":"M-y","field-era":"Tijdperk","months-standAlone-wide":["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],"timeFormat-short":"HH:mm","quarters-format-wide":["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"Jaar","field-hour":"Uur","months-format-abbr":["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],"field-sat-relative+0":"deze zaterdag","field-sat-relative+1":"volgende week zaterdag","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"vandaag","field-day-relative+1":"morgen","field-thu-relative+0":"deze donderdag","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"overmorgen","field-thu-relative+1":"volgende week donderdag","dateFormatItem-H":"HH","months-standAlone-abbr":["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],"quarters-format-abbr":["K1","K2","K3","K4"],"quarters-standAlone-wide":["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],"dateFormatItem-MMMMd":"d MMMM","dayPeriods-format-abbr-noon":"12 uur 's middags","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"deze zondag","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["K1","K2","K3","K4"],"field-sun-relative+1":"volgende week zondag",eraAbbr:["v.Chr.","n.Chr."],"field-minute":"Minuut","field-dayperiod":"AM/PM","days-standAlone-abbr":["zo","ma","di","wo","do","vr","za"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"gisteren","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM","field-day-relative+-2":"eergisteren","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d-M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"deze vrijdag","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"volgende week vrijdag","field-day":"Dag","days-format-wide":["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],"field-zone":"Zone","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"vorig jaar","field-month-relative+-1":"vorige maand","dateFormatItem-hm":"h:mm a","days-format-abbr":["zo","ma","di","wo","do","vr","za"],eraNames:["Voor Christus","vóór gewone jaartelling","na Christus","gewone jaartelling"],"dateFormatItem-yMMMd":"d MMM y","days-format-narrow":["Z","M","D","W","D","V","Z"],"days-standAlone-narrow":["Z","M","D","W","D","V","Z"],"dateFormatItem-MMM":"LLL","field-month":"Maand","field-tue-relative+0":"deze dinsdag","field-tue-relative+1":"volgende week dinsdag","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"deze maandag","field-mon-relative+1":"volgende week maandag","dateFormat-short":"dd-MM-yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","dayPeriods-format-narrow-noon":"n","field-second":"Seconde","field-sat-relative+-1":"afgelopen zaterdag","dateFormatItem-yMMMEd":"E d MMM y","field-sun-relative+-1":"afgelopen zondag","field-month-relative+0":"deze maand","field-month-relative+1":"volgende maand","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Week","dateFormat-medium":"d MMM y","field-year-relative+0":"dit jaar","field-week-relative+-1":"vorige week","field-year-relative+1":"volgend jaar","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"afgelopen maandag","field-week-relative+0":"deze week","field-week-relative+1":"volgende week"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E, h:mm a","days-standAlone-short":["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],"months-format-narrow":["s","l","m","k","m","c","l","s","w","p","l","g"],"field-second-relative+0":"teraz","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"dzień tygodnia","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, d.MM.y","field-wed-relative+0":"w tę środę","field-wed-relative+1":"w przyszłą środę","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-MMMEd":"E, d MMM",eraNarrow:["p.n.e.","n.e."],"dateFormatItem-yMM":"MM.y","field-tue-relative+-1":"w zeszły wtorek","dayPeriods-format-wide-earlyMorning":"nad ranem","dayPeriods-format-wide-morning":"rano","days-format-short":["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"w zeszły piątek","field-wed-relative+-1":"w zeszłą środę","months-format-wide":["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"],"dayPeriods-format-wide-evening":"wieczorem","dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, d MMMM y","field-thu-relative+-1":"w zeszły czwartek","dateFormatItem-Md":"d.MM","dayPeriods-format-wide-noon":"w południe","dateFormatItem-yMd":"d.MM.y","field-era":"era","dateFormatItem-yM":"MM.y","months-standAlone-wide":["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],"timeFormat-short":"HH:mm","quarters-format-wide":["I kwartał","II kwartał","III kwartał","IV kwartał"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"HH:mm:ss z","field-year":"rok","dateFormatItem-yMMM":"LLL y","field-hour":"godzina","dateFormatItem-MMdd":"d.MM","months-format-abbr":["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],"field-sat-relative+0":"w tę sobotę","field-sat-relative+1":"w przyszłą sobotę","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"dzisiaj","field-thu-relative+0":"w ten czwartek","field-day-relative+1":"jutro","field-thu-relative+1":"w przyszły czwartek","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"pojutrze","dateFormatItem-H":"HH","months-standAlone-abbr":["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],"quarters-format-abbr":["K1","K2","K3","K4"],"quarters-standAlone-wide":["I kwartał","II kwartał","III kwartał","IV kwartał"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"w tę niedzielę","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"w przyszłą niedzielę","quarters-standAlone-abbr":["1 kw.","2 kw.","3 kw.","4 kw."],eraAbbr:["p.n.e.","n.e."],"field-minute":"minuta","field-dayperiod":"rano / po południu / wieczorem","days-standAlone-abbr":["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],"dayPeriods-format-wide-night":"w nocy","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"wczoraj","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"przedwczoraj","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E, d.MM","dayPeriods-format-wide-lateMorning":"przed południem","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"w ten piątek","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"w przyszły piątek","field-day":"dzień","days-format-wide":["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],"field-zone":"strefa czasowa","dateFormatItem-y":"y","months-standAlone-narrow":["s","l","m","k","m","c","l","s","w","p","l","g"],"field-year-relative+-1":"w zeszłym roku","field-month-relative+-1":"w zeszłym miesiącu","dateFormatItem-hm":"h:mm a","days-format-abbr":["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],eraNames:["p.n.e.","n.e."],"dateFormatItem-yMMMd":"d MMM y","days-format-narrow":["N","P","W","Ś","C","P","S"],"days-standAlone-narrow":["N","P","W","Ś","C","P","S"],"dateFormatItem-MMM":"LLL","field-month":"miesiąc","field-tue-relative+0":"w ten wtorek","field-tue-relative+1":"w przyszły wtorek","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E, HH:mm","field-mon-relative+0":"w ten poniedziałek","field-mon-relative+1":"w przyszły poniedziałek","dateFormat-short":"dd.MM.y","dayPeriods-format-wide-afternoon":"po południu","dateFormatItem-EHms":"E, HH:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"sekunda","field-sat-relative+-1":"w zeszłą sobotę","dateFormatItem-yMMMEd":"E, d MMM y","field-sun-relative+-1":"w zeszłą niedzielę","field-month-relative+0":"w tym miesiącu","field-month-relative+1":"w przyszłym miesiącu","dateFormatItem-Ed":"E, d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"tydzień","dateFormat-medium":"d MMM y","field-year-relative+0":"w tym roku","field-week-relative+-1":"Zeszły tydzień","field-year-relative+1":"w przyszłym roku","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"w zeszły poniedziałek","field-week-relative+0":"w tym tygodniu","field-week-relative+1":"w przyszłym tygodniu"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E, h:mm a","days-standAlone-short":["dom","seg","ter","qua","qui","sex","sáb"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"agora","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Dia da semana","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"E, dd/MM/y","field-wed-relative+0":"esta quarta-feira","field-wed-relative+1":"próxima quarta-feira","dateFormatItem-GyMMMEd":"E, d 'de' MMM 'de' y G","dateFormatItem-MMMEd":"E, d 'de' MMM",eraNarrow:["a.C.","d.C."],"dateFormatItem-yMM":"MM/y","field-tue-relative+-1":"terça-feira passada","dayPeriods-format-wide-morning":"manhã","days-format-short":["dom","seg","ter","qua","qui","sex","sáb"],"dateFormat-long":"d 'de' MMMM 'de' y","field-fri-relative+-1":"sexta-feira passada","field-wed-relative+-1":"quarta-feira passada","months-format-wide":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, d 'de' MMMM 'de' y","field-thu-relative+-1":"quinta-feira passada","dateFormatItem-Md":"d/M","dayPeriods-format-abbr-am":"AM","dayPeriods-format-wide-noon":"meio-dia","dateFormatItem-yMd":"dd/MM/y","field-era":"Era","dateFormatItem-yM":"MM/y","months-standAlone-wide":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"timeFormat-short":"HH:mm","quarters-format-wide":["1º trimestre","2º trimestre","3º trimestre","4º trimestre"],"dateFormatItem-yQQQQ":"y QQQQ","timeFormat-long":"HH:mm:ss z","field-year":"Ano","dateFormatItem-yMMM":"MMM 'de' y","field-hour":"Hora","dateFormatItem-MMdd":"dd/MM","months-format-abbr":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],"field-sat-relative+0":"este sábado","field-sat-relative+1":"próximo sábado","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"hoje","field-thu-relative+0":"esta quinta-feira","field-day-relative+1":"amanhã","field-thu-relative+1":"próxima quinta-feira","dateFormatItem-GyMMMd":"d 'de' MMM 'de' y G","field-day-relative+2":"depois de amanhã","dateFormatItem-H":"HH","months-standAlone-abbr":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["1º trimestre","2º trimestre","3º trimestre","4º trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-HHmmss":"HH:mm:ss","dateFormatItem-M":"L","days-standAlone-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"este domingo","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"próximo domingo","quarters-standAlone-abbr":["T1","T2","T3","T4"],eraAbbr:["a.C.","d.C."],"field-minute":"Minuto","field-dayperiod":"Período do dia","days-standAlone-abbr":["dom","seg","ter","qua","qui","sex","sáb"],"dayPeriods-format-wide-night":"noite","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"ontem","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"a","field-day-relative+-2":"anteontem","dateFormatItem-MMMd":"d 'de' MMM","dateFormatItem-MEd":"E, dd/MM","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"esta sexta-feira","field-fri-relative+1":"próxima sexta-feira","field-day":"Dia","days-format-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"field-zone":"Fuso","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"ano passado","field-month-relative+-1":"mês passado","dateFormatItem-hm":"h:mm a","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["dom","seg","ter","qua","qui","sex","sáb"],eraNames:["Antes de Cristo","Ano do Senhor"],"dateFormatItem-yMMMd":"d 'de' MMM 'de' y","days-format-narrow":["D","S","T","Q","Q","S","S"],"days-standAlone-narrow":["D","S","T","Q","Q","S","S"],"dateFormatItem-MMM":"LLL","field-month":"Mês","dateFormatItem-HHmm":"HH:mm","field-tue-relative+0":"esta terça-feira","field-tue-relative+1":"próxima terça-feira","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E, HH:mm","field-mon-relative+0":"esta segunda-feira","field-mon-relative+1":"próxima segunda-feira","dateFormat-short":"dd/MM/yy","dayPeriods-format-wide-afternoon":"tarde","dateFormatItem-EHms":"E, HH:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"Segundo","field-sat-relative+-1":"sábado passado","dateFormatItem-yMMMEd":"E, d 'de' MMM 'de' y","field-sun-relative+-1":"domingo passado","field-month-relative+0":"este mês","field-month-relative+1":"próximo mês","dateFormatItem-Ed":"E, d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Semana","dateFormat-medium":"dd/MM/y","field-year-relative+0":"este ano","field-week-relative+-1":"semana passada","field-year-relative+1":"próximo ano","dayPeriods-format-narrow-pm":"p","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM 'de' y G","field-mon-relative+-1":"segunda-feira passada","field-week-relative+0":"esta semana","field-week-relative+1":"próxima semana"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E, h:mm a","days-standAlone-short":["do","sg","te","qu","qi","sx","sb"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Dia da semana","dateFormatItem-yQQQ":"QQQQ 'de' y","dateFormatItem-yMEd":"E, dd/MM/y","field-wed-relative+0":"esta quarta-feira","field-wed-relative+1":"próxima quarta-feira","dateFormatItem-GyMMMEd":"E, d 'de' MMM 'de' y G","dateFormatItem-MMMEd":"E, d/MM",eraNarrow:["a.C.","d.C."],"dateFormatItem-yMM":"MM/y","field-tue-relative+-1":"terça-feira passada","days-format-short":["do","sg","te","qu","qi","sx","sb"],"dateFormat-long":"d 'de' MMMM 'de' y","field-fri-relative+-1":"sexta-feira passada","field-wed-relative+-1":"quarta-feira passada","months-format-wide":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],"dateTimeFormat-medium":"{1}, {0}","dateFormatItem-yMMMMd":"d 'de' MMMM 'de' y","dayPeriods-format-wide-pm":"da tarde","dateFormat-full":"EEEE, d 'de' MMMM 'de' y","field-thu-relative+-1":"quinta-feira passada","dateFormatItem-Md":"d/M","dayPeriods-standAlone-wide-pm":"p.m.","dayPeriods-format-abbr-am":"a.m.","dateFormatItem-yMd":"dd/MM/y","field-era":"Era","dateFormatItem-yM":"MM/y","months-standAlone-wide":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],"timeFormat-short":"HH:mm","dayPeriods-standAlone-abbr-am":"a.m.","quarters-format-wide":["1.º trimestre","2.º trimestre","3.º trimestre","4.º trimestre"],"dateFormatItem-yQQQQ":"QQQQ 'de' y","timeFormat-long":"HH:mm:ss z","field-year":"Ano","dateFormatItem-yMMM":"MM/y","field-hour":"Hora","dateFormatItem-MMdd":"dd/MM","months-format-abbr":["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],"field-sat-relative+0":"este sábado","field-sat-relative+1":"próximo sábado","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"hoje","field-thu-relative+0":"esta quinta-feira","field-day-relative+1":"amanhã","field-thu-relative+1":"próxima quinta-feira","dateFormatItem-GyMMMd":"d 'de' MMM 'de' y G","field-day-relative+2":"depois de amanhã","dateFormatItem-H":"HH","months-standAlone-abbr":["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["1.º trimestre","2.º trimestre","3.º trimestre","4.º trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-HHmmss":"HH:mm:ss","dateFormatItem-M":"L","days-standAlone-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"dateFormatItem-MMMMd":"d 'de' MMMM","dateFormatItem-yMMMEEEEd":"EEEE, d/MM/y","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"este domingo","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"próximo domingo","quarters-standAlone-abbr":["T1","T2","T3","T4"],eraAbbr:["a.C.","d.C."],"field-minute":"Minuto","field-dayperiod":"Da manhã/da tarde","days-standAlone-abbr":["dom","seg","ter","qua","qui","sex","sáb"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"ontem","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} 'às' {0}","dayPeriods-format-narrow-am":"a.m.","field-day-relative+-2":"anteontem","dateFormatItem-MMMd":"d/MM","dateFormatItem-MEd":"E, dd/MM","dateTimeFormat-full":"{1} 'às' {0}","field-fri-relative+0":"esta sexta-feira","dateFormatItem-yMMMM":"MMMM 'de' y","field-fri-relative+1":"próxima sexta-feira","field-day":"Dia","days-format-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"field-zone":"Fuso horário","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormatItem-y":"y","field-year-relative+-1":"ano passado","field-month-relative+-1":"mês passado","dateFormatItem-hm":"h:mm a","dayPeriods-format-abbr-pm":"p.m.","days-format-abbr":["dom","seg","ter","qua","qui","sex","sáb"],"dayPeriods-standAlone-abbr-pm":"p.m.","dateFormatItem-yMMMd":"d/MM/y",eraNames:["a.C.","d.C."],"days-format-narrow":["D","S","T","Q","Q","S","S"],"days-standAlone-narrow":["D","S","T","Q","Q","S","S"],"dateFormatItem-MMM":"LLL","field-month":"Mês","dateFormatItem-HHmm":"HH:mm","field-tue-relative+0":"esta terça-feira","field-tue-relative+1":"próxima terça-feira","dayPeriods-format-wide-am":"da manhã","dayPeriods-standAlone-wide-am":"a.m.","dateFormatItem-MMMMEd":"E, d 'de' MMMM","dateFormatItem-EHm":"E, HH:mm","field-mon-relative+0":"esta segunda-feira","field-mon-relative+1":"próxima segunda-feira","dateFormat-short":"dd/MM/yy","dateFormatItem-EHms":"E, HH:mm:ss","dateFormatItem-yMMMMEd":"E, d 'de' MMMM 'de' y","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"Segundo","field-sat-relative+-1":"sábado passado","dateFormatItem-yMMMEd":"E, d/MM/y","field-sun-relative+-1":"domingo passado","field-month-relative+0":"este mês","field-month-relative+1":"próximo mês","dateFormatItem-Ed":"E, d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Semana","dateFormat-medium":"dd/MM/y","field-year-relative+0":"este ano","field-week-relative+-1":"semana passada","field-year-relative+1":"próximo ano","dayPeriods-format-narrow-pm":"p.m.","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM 'de' y G","field-mon-relative+-1":"segunda-feira passada","field-week-relative+0":"esta semana","field-week-relative+1":"próxima semana"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],"months-format-narrow":["I","F","M","A","M","I","I","A","S","O","N","D"],"field-second-relative+0":"acum","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"zi a săptămânii","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, dd.MM.y","field-wed-relative+0":"miercurea aceasta","field-wed-relative+1":"miercurea viitoare","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-MMMEd":"E, d MMM",eraNarrow:["î.Hr.","î.e.n","d.Hr.","e.n."],"dateFormatItem-yMM":"MM.y","field-tue-relative+-1":"marțea trecută","days-format-short":["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"vinerea trecută","field-wed-relative+-1":"miercurea trecută","months-format-wide":["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"],"dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"p.m.","dateFormat-full":"EEEE, d MMMM y","field-thu-relative+-1":"joia trecută","dateFormatItem-Md":"dd.MM","dateFormatItem-yMd":"dd.MM.y","field-era":"eră","dateFormatItem-yM":"MM.y","months-standAlone-wide":["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"],"timeFormat-short":"HH:mm","quarters-format-wide":["trimestrul I","trimestrul al II-lea","trimestrul al III-lea","trimestrul al IV-lea"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"HH:mm:ss z","field-year":"an","dateFormatItem-yMMM":"MMM y","field-hour":"oră","dateFormatItem-MMdd":"dd.MM","months-format-abbr":["ian.","feb.","mar.","apr.","mai","iun.","iul.","aug.","sept.","oct.","nov.","dec."],"field-sat-relative+0":"sâmbăta aceasta","field-sat-relative+1":"sâmbăta viitoare","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"azi","field-thu-relative+0":"joia aceasta","field-day-relative+1":"mâine","field-thu-relative+1":"joia viitoare","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"poimâine","dateFormatItem-H":"HH","months-standAlone-abbr":["ian.","feb.","mar.","apr.","mai","iun.","iul.","aug.","sept.","oct.","nov.","dec."],"quarters-format-abbr":["trim. I","trim. II","trim. III","trim. IV"],"quarters-standAlone-wide":["trimestrul I","trimestrul al II-lea","trimestrul al III-lea","trimestrul al IV-lea"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"duminica aceasta","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"duminica viitoare","quarters-standAlone-abbr":["T1","T2","T3","T4"],eraAbbr:["î.Hr.","î.e.n","d.Hr.","e.n."],"field-minute":"minut","field-dayperiod":"a.m./p.m","days-standAlone-abbr":["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"ieri","dateFormatItem-h":"h a","dateTimeFormat-long":"{1}, {0}","field-day-relative+-2":"alaltăieri","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E, dd.MM","dateTimeFormat-full":"{1}, {0}","field-fri-relative+0":"vinerea aceasta","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"vinerea viitoare","field-day":"zi","days-format-wide":["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"],"field-zone":"fus orar","dateFormatItem-y":"y","months-standAlone-narrow":["I","F","M","A","M","I","I","A","S","O","N","D"],"field-year-relative+-1":"anul trecut","field-month-relative+-1":"luna trecută","dateFormatItem-hm":"h:mm a","days-format-abbr":["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],"dateFormatItem-yMMMd":"d MMM y",eraNames:["înainte de Hristos","după Hristos","d.Hr.","e.n."],"days-format-narrow":["D","L","M","M","J","V","S"],"days-standAlone-narrow":["D","L","M","M","J","V","S"],"dateFormatItem-MMM":"LLL","field-month":"lună","field-tue-relative+0":"marțea aceasta","field-tue-relative+1":"marțea viitoare","dayPeriods-format-wide-am":"a.m.","dateFormatItem-MMMMEd":"E, d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"lunea aceasta","field-mon-relative+1":"lunea viitoare","dateFormat-short":"dd.MM.y","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"secundă","field-sat-relative+-1":"sâmbăta trecută","dateFormatItem-yMMMEd":"E, d MMM y","field-sun-relative+-1":"duminica trecută","field-month-relative+0":"luna aceasta","field-month-relative+1":"luna viitoare","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"săptămână","dateFormat-medium":"d MMM y","field-year-relative+0":"anul acesta","field-week-relative+-1":"săptămâna trecută","field-year-relative+1":"anul viitor","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"lunea trecută","field-week-relative+0":"săptămâna aceasta","field-week-relative+1":"săptămâna viitoare"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["вс","пн","вт","ср","чт","пт","сб"],"months-format-narrow":["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],"field-second-relative+0":"сейчас","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"День недели","dateFormatItem-yQQQ":"QQQ y 'г'.","dateFormatItem-yMEd":"ccc, d.MM.y 'г'.","field-wed-relative+0":"в эту среду","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-MMMEd":"ccc, d MMM","field-wed-relative+1":"в следующую среду",eraNarrow:["до н.э.","н.э."],"dateFormatItem-yMM":"MM.y","field-tue-relative+-1":"в прошлый вторник","days-format-short":["вс","пн","вт","ср","чт","пт","сб"],"dateFormat-long":"d MMMM y 'г'.","field-fri-relative+-1":"в прошлую пятницу","field-wed-relative+-1":"в прошлую среду","months-format-wide":["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],"dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, d MMMM y 'г'.","field-thu-relative+-1":"в прошлый четверг","dateFormatItem-Md":"dd.MM","dayPeriods-format-abbr-am":"AM","dateFormatItem-yMd":"dd.MM.y","dateFormatItem-yM":"MM.y","field-era":"Эра","months-standAlone-wide":["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],"timeFormat-short":"H:mm","quarters-format-wide":["1-й квартал","2-й квартал","3-й квартал","4-й квартал"],"timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"LLL y","dateFormatItem-yQQQQ":"QQQQ y 'г'.","field-year":"Год","dateFormatItem-MMdd":"dd.MM","field-hour":"Час","months-format-abbr":["янв.","февр.","марта","апр.","мая","июня","июля","авг.","сент.","окт.","нояб.","дек."],"field-sat-relative+0":"в эту субботу","field-sat-relative+1":"в следующую субботу","timeFormat-full":"H:mm:ss zzzz","dateFormatItem-E":"ccc","field-day-relative+0":"сегодня","field-day-relative+1":"завтра","field-thu-relative+0":"в этот четверг","dateFormatItem-GyMMMd":"d MMM y 'г'. G","field-day-relative+2":"послезавтра","field-thu-relative+1":"в следующий четверг","dateFormatItem-H":"H","months-standAlone-abbr":["Янв.","Февр.","Март","Апр.","Май","Июнь","Июль","Авг.","Сент.","Окт.","Нояб.","Дек."],"quarters-format-abbr":["1-й кв.","2-й кв.","3-й кв.","4-й кв."],"quarters-standAlone-wide":["1-й квартал","2-й квартал","3-й квартал","4-й квартал"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],"dateFormatItem-yLLLL":"LLLL y","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"в это воскресенье","dateFormatItem-Hm":"H:mm","quarters-standAlone-abbr":["1-й кв.","2-й кв.","3-й кв.","4-й кв."],"field-sun-relative+1":"в следующее воскресенье",eraAbbr:["до н. э.","н. э."],"field-minute":"Минута","field-dayperiod":"ДП/ПП","days-standAlone-abbr":["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"вчера","dateFormatItem-h":"h a","dateTimeFormat-long":"{1}, {0}","dayPeriods-format-narrow-am":"AM","field-day-relative+-2":"позавчера","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E, dd.MM","dateTimeFormat-full":"{1}, {0}","field-fri-relative+0":"в эту пятницу","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"в следующую пятницу","field-day":"День","days-format-wide":["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],"field-zone":"Часовой пояс","dateFormatItem-y":"y","months-standAlone-narrow":["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],"field-year-relative+-1":"в прошлом году","field-month-relative+-1":"в прошлом месяце","dateFormatItem-hm":"h:mm a","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["вс","пн","вт","ср","чт","пт","сб"],eraNames:["до н.э.","н.э."],"dateFormatItem-yMMMd":"d MMM y 'г'.","days-format-narrow":["вс","пн","вт","ср","чт","пт","сб"],"days-standAlone-narrow":["В","П","В","С","Ч","П","С"],"dateFormatItem-MMM":"LLL","field-month":"Месяц","field-tue-relative+0":"в этот вторник","field-tue-relative+1":"в следующий вторник","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"в этот понедельник","field-mon-relative+1":"в следующий понедельник","dateFormat-short":"dd.MM.yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"Секунда","field-sat-relative+-1":"в прошлую субботу","dateFormatItem-yMMMEd":"E, d MMM y","field-sun-relative+-1":"в прошлое воскресенье","field-month-relative+0":"в этом месяце","field-month-relative+1":"в следующем месяце","dateFormatItem-Ed":"ccc, d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Неделя","dateFormat-medium":"d MMM y 'г'.","field-year-relative+0":"в этому году","field-week-relative+-1":"на прошлой неделе","field-year-relative+1":"в следующем году","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"LLL y G","field-mon-relative+-1":"в прошлый понедельник","field-week-relative+0":"на этой неделе","field-week-relative+1":"на следующей неделе"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm","days-standAlone-short":["Ne","Po","Ut","St","Št","Pi","So"],"months-format-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"field-second-relative+0":"teraz","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Deň v týždni","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d. M. y","field-wed-relative+0":"Túto stredu","field-wed-relative+1":"Budúcu stredu","dateFormatItem-GyMMMEd":"E, d. MMM y G","dateFormatItem-MMMEd":"E, d. MMM.",eraNarrow:["pred n.l.","n.l."],"field-tue-relative+-1":"Minulý utorok","days-format-short":["Ne","Po","Ut","St","Št","Pi","So"],"dateFormat-long":"d. MMMM y","field-fri-relative+-1":"Minulý piatok","field-wed-relative+-1":"Minulú stredu","months-format-wide":["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"],"dateTimeFormat-medium":"{1} {0}","dateFormatItem-yMMMMd":"d. MMMM y","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, d. MMMM y","field-thu-relative+-1":"Minulý štvrtok","dateFormatItem-Md":"d.M.","dateFormatItem-yMd":"d.M.y","field-era":"Éra","dateFormatItem-yM":"M.y","months-standAlone-wide":["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],"timeFormat-short":"H:mm","quarters-format-wide":["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"H:mm:ss z","field-year":"Rok","dateFormatItem-yMMM":"LLL y","field-hour":"Hodina","months-format-abbr":["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],"field-sat-relative+0":"Túto sobotu","field-sat-relative+1":"Budúcu sobotu","timeFormat-full":"H:mm:ss zzzz","field-day-relative+0":"Dnes","field-thu-relative+0":"Tento štvrtok","field-day-relative+1":"Zajtra","field-thu-relative+1":"Budúci štvrtok","dateFormatItem-GyMMMd":"d.M.y G","field-day-relative+2":"Pozajtra","dateFormatItem-H":"H","months-standAlone-abbr":["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L.","days-standAlone-wide":["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],"dateFormatItem-MMMMd":"d. MMMM","dateFormatItem-GyMMMMd":"d. MMMM y G","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"Túto nedeľu","dateFormatItem-Hm":"H:mm","field-sun-relative+1":"Budúcu nedeľu","quarters-standAlone-abbr":["1Q","2Q","3Q","4Q"],eraAbbr:["pred n.l.","n.l."],"field-minute":"Minúta","field-dayperiod":"Časť dňa","days-standAlone-abbr":["ne","po","ut","st","št","pi","so"],"dateFormatItem-d":"d.","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Včera","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"Predvčerom","dateFormatItem-MMMd":"d. MMM.","dateFormatItem-MEd":"E, d.M.","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"Tento piatok","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"Budúci piatok","field-day":"Deň","days-format-wide":["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],"field-zone":"Časové pásmo","dateFormatItem-y":"y","months-standAlone-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"field-year-relative+-1":"Minulý rok","field-month-relative+-1":"Posledný mesiac","dateFormatItem-hm":"h:mm a","days-format-abbr":["ne","po","ut","st","št","pi","so"],"dateFormatItem-yMMMd":"d.M.y",eraNames:["pred n.l.","n.l."],"days-format-narrow":["N","P","U","S","Š","P","S"],"days-standAlone-narrow":["N","P","U","S","Š","P","S"],"dateFormatItem-MMM":"LLL","field-month":"Mesiac","field-tue-relative+0":"Tento utorok","field-tue-relative+1":"Budúci utorok","dayPeriods-format-wide-am":"AM","dateFormatItem-MMMMEd":"E, d. MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"Tento pondelok","field-mon-relative+1":"Budúci pondelok","dateFormat-short":"d.M.y","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss","field-second":"Sekunda","field-sat-relative+-1":"Minulú sobotu","dateFormatItem-yMMMEd":"E, d. MMM y","field-sun-relative+-1":"Minulú nedeľu","field-month-relative+0":"Tento mesiac","field-month-relative+1":"Budúci mesiac","dateFormatItem-Ed":"E d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Týždeň","dateFormat-medium":"d.M.y","field-year-relative+0":"Tento rok","field-week-relative+-1":"Minulý týždeň","field-year-relative+1":"Budúci rok","dateFormatItem-mmss":"mm:ss","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"LLL y G","field-mon-relative+-1":"Minulý pondelok","field-week-relative+0":"Tento týždeň","field-week-relative+1":"Budúci týždeň"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h.mm a","days-standAlone-short":["ned.","pon.","tor.","sre.","čet.","pet.","sob."],"months-format-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"field-second-relative+0":"zdaj","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Dan v tednu","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, d. M. y","field-wed-relative+0":"To sredo","field-wed-relative+1":"Naslednjo sredo","dateFormatItem-GyMMMEd":"E, d. MMM y G","dateFormatItem-MMMEd":"E, d. MMM",eraNarrow:["pr. n. št.","po Kr.","po n. št."],"field-tue-relative+-1":"Prejšnji torek","days-format-short":["ned.","pon.","tor.","sre.","čet.","pet.","sob."],"dateFormat-long":"dd. MMMM y","field-fri-relative+-1":"Prejšnji petek","field-wed-relative+-1":"Prejšnjo sredo","months-format-wide":["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"pop.","dateFormat-full":"EEEE, dd. MMMM y","field-thu-relative+-1":"Prejšnji četrtek","dateFormatItem-Md":"d. M.","dateFormatItem-yMd":"d. M. y","field-era":"Doba","dateFormatItem-yM":"M/y","months-standAlone-wide":["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"],"timeFormat-short":"HH.mm","quarters-format-wide":["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"HH.mm.ss z","field-year":"Leto","dateFormatItem-yMMM":"MMM y","field-hour":"Ura","months-format-abbr":["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],"field-sat-relative+0":"To soboto","field-sat-relative+1":"Naslednjo soboto","timeFormat-full":"HH.mm.ss zzzz","field-day-relative+0":"Danes","field-thu-relative+0":"Ta četrtek","field-day-relative+1":"Jutri","field-thu-relative+1":"Naslednji četrtek","dateFormatItem-GyMMMd":"d. MMM y G","field-day-relative+2":"Pojutrišnjem","dateFormatItem-H":"HH","months-standAlone-abbr":["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"],"timeFormat-medium":"HH.mm.ss","field-sun-relative+0":"To nedeljo","dateFormatItem-Hm":"HH.mm","field-sun-relative+1":"Naslednjo nedeljo","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],eraAbbr:["pr. n. št.","po Kr.","po n. št."],"field-minute":"Minuta","field-dayperiod":"Čas dneva","days-standAlone-abbr":["ned","pon","tor","sre","čet","pet","sob"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm.ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Včeraj","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"Predvčerajšnjim","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E, d. MM.","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"Ta petek","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"Naslednji petek","field-day":"Dan","days-format-wide":["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"],"field-zone":"Območje","dateFormatItem-y":"y","months-standAlone-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"field-year-relative+-1":"Lani","field-month-relative+-1":"Prejšnji mesec","dateFormatItem-hm":"h.mm a","days-format-abbr":["ned.","pon.","tor.","sre.","čet.","pet.","sob."],"dateFormatItem-GyM":"M/y G","dateFormatItem-yMMMd":"d. MMM y",eraNames:["pred našim štetjem","naše štetje","po n. št."],"days-format-narrow":["n","p","t","s","č","p","s"],"days-standAlone-narrow":["n","p","t","s","č","p","s"],"dateFormatItem-MMM":"LLL","field-month":"Mesec","field-tue-relative+0":"Ta torek","field-tue-relative+1":"Naslednji torek","dayPeriods-format-wide-am":"dop.","dateFormatItem-EHm":"E HH.mm","field-mon-relative+0":"Ta ponedeljek","field-mon-relative+1":"Naslednji ponedeljek","dateFormat-short":"d. MM. yy","dateFormatItem-EHms":"E HH.mm.ss","dateFormatItem-Ehms":"E h.mm.ss a","field-second":"Sekunda","field-sat-relative+-1":"Prejšnjo soboto","dateFormatItem-yMMMEd":"E, d. MMM y","field-sun-relative+-1":"Prejšnjo nedeljo","field-month-relative+0":"Ta mesec","field-month-relative+1":"Naslednji mesec","dateFormatItem-Ed":"E, d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Teden","dateFormat-medium":"d. MMM y","field-year-relative+0":"Letos","field-week-relative+-1":"Prejšnji teden","field-year-relative+1":"Naslednje leto","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH.mm.ss","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"Prejšnji ponedeljek","field-week-relative+0":"Ta teden","field-week-relative+1":"Naslednji teden"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E, h:mm a","days-standAlone-short":["не","по","ут","ср","че","пе","су"],"months-format-narrow":["ј","ф","м","а","м","ј","ј","а","с","о","н","д"],"field-second-relative+0":"сада","quarters-standAlone-narrow":["1.","2.","3.","4."],"field-weekday":"дан у недељи","dateFormatItem-yQQQ":"QQQ. y","dateFormatItem-yMEd":"E, d.M.y.","field-wed-relative+0":"ове среде","dateFormatItem-GyMMMEd":"E, d. MMM y. G","dateFormatItem-MMMEd":"E d. MMM","field-wed-relative+1":"следеће среде",eraNarrow:["п.н.е.","н.е."],"dateFormatItem-yMM":"MM.y.","field-tue-relative+-1":"прошлог уторка","dateFormatItem-MMMdd":"dd.MMM","days-format-short":["нед","пон","уто","сре","чет","пет","суб"],"dateFormat-long":"dd. MMMM y.","field-fri-relative+-1":"прошлог петка","field-wed-relative+-1":"прошле среде","months-format-wide":["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"поподне","dateFormat-full":"EEEE, dd. MMMM y.","field-thu-relative+-1":"прошлог четвртка","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d.M.y.","dateFormatItem-yM":"M.y.","field-era":"ера","months-standAlone-wide":["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],"timeFormat-short":"HH.mm","quarters-format-wide":["Прво тромесечје","Друго тромесечје","Треће тромесечје","Четврто тромесечје"],"timeFormat-long":"HH.mm.ss z","dateFormatItem-yMMM":"MMM y.","dateFormatItem-yQQQQ":"QQQQ. y","field-year":"година","dateFormatItem-MMdd":"MM-dd","field-hour":"час","months-format-abbr":["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],"field-sat-relative+0":"ове суботе","field-sat-relative+1":"следеће суботе","timeFormat-full":"HH.mm.ss zzzz","field-day-relative+0":"данас","field-day-relative+1":"сутра","field-thu-relative+0":"овог четвртка","dateFormatItem-GyMMMd":"d. MMM y. G","field-day-relative+2":"прекосутра","field-thu-relative+1":"следећег четвртка","dateFormatItem-H":"HH","months-standAlone-abbr":["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],"quarters-format-abbr":["К1","К2","К3","К4"],"quarters-standAlone-wide":["Прво тромесечје","Друго тромесечје","Треће тромесечје","Четврто тромесечје"],"dateFormatItem-Gy":"y. G","dateFormatItem-M":"L","days-standAlone-wide":["недеља","понедељак","уторак","среда","четвртак","петак","субота"],"dateFormatItem-MMMMd":"d. MMMM","timeFormat-medium":"HH.mm.ss","dateFormatItem-yMMdd":"dd.MM.y.","field-sun-relative+0":"ове недеље","dateFormatItem-Hm":"HH.mm","quarters-standAlone-abbr":["К1","К2","К3","К4"],"field-sun-relative+1":"следеће недеље",eraAbbr:["п. н. е.","н. е."],"field-minute":"минут","field-dayperiod":"пре подне/поподне","days-standAlone-abbr":["нед","пон","уто","сре","чет","пет","суб"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm.ss","quarters-format-narrow":["1.","2.","3.","4."],"field-day-relative+-1":"јуче","dateFormatItem-h":"hh a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"прекјуче","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E, M-d","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"овог петка","dateFormatItem-yMMMM":"MMMM y.","field-fri-relative+1":"следећег петка","field-day":"дан","days-format-wide":["недеља","понедељак","уторак","среда","четвртак","петак","субота"],"field-zone":"зона","dateFormatItem-y":"y.","months-standAlone-narrow":["ј","ф","м","а","м","ј","ј","а","с","о","н","д"],"field-year-relative+-1":"Прошле године","field-month-relative+-1":"Прошлог месеца","dateFormatItem-hm":"hh.mm a","days-format-abbr":["нед","пон","уто","сре","чет","пет","суб"],eraNames:["Пре нове ере","Нове ере"],"dateFormatItem-yMMMd":"d. MMM y.","days-format-narrow":["н","п","у","с","ч","п","с"],"days-standAlone-narrow":["н","п","у","с","ч","п","с"],"dateFormatItem-MMM":"LLL","field-month":"месец","field-tue-relative+0":"овог уторка","field-tue-relative+1":"следећег уторка","dayPeriods-format-wide-am":"пре подне","dateFormatItem-MMMMEd":"E d. MMMM","dateFormatItem-EHm":"E, HH:mm","field-mon-relative+0":"овог понедељка","field-mon-relative+1":"следећег понедељка","dateFormat-short":"d.M.yy.","dateFormatItem-EHms":"E, HH:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"секунд","field-sat-relative+-1":"прошле суботе","dateFormatItem-yMMMEd":"E, d. MMM y.","field-sun-relative+-1":"прошле недеље","field-month-relative+0":"Овог месеца","field-month-relative+1":"Следећег месеца","dateFormatItem-Ed":"E d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"недеља","dateFormat-medium":"dd.MM.y.","field-year-relative+0":"Ове године","field-week-relative+-1":"Прошле недеље","field-year-relative+1":"Следеће године","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH.mm.ss","dateFormatItem-hms":"hh.mm.ss a","dateFormatItem-GyMMM":"MMM y. G","field-mon-relative+-1":"прошлог понедељка","field-week-relative+0":"Ове недеље","field-week-relative+1":"Следеће недеље"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["Sö","Må","Ti","On","To","Fr","Lö"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"nu","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Veckodag","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"E, y-MM-dd","field-wed-relative+0":"onsdag denna vecka","dateFormatItem-GyMMMEd":"E d MMM y G","dateFormatItem-MMMEd":"E d MMM","field-wed-relative+1":"onsdag nästa vecka",eraNarrow:["f.Kr.","fvt","e.Kr.","vt"],"dateFormatItem-yMM":"y-MM","field-tue-relative+-1":"tisdag förra veckan","days-format-short":["sö","må","ti","on","to","fr","lö"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"fredag förra veckan","field-wed-relative+-1":"onsdag förra veckan","months-format-wide":["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"em","dateFormat-full":"EEEE d MMMM y","field-thu-relative+-1":"torsdag förra veckan","dateFormatItem-Md":"d/M","dayPeriods-format-abbr-am":"FM","dateFormatItem-yMd":"y-MM-dd","dateFormatItem-yM":"y-MM","field-era":"Era","months-standAlone-wide":["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],"timeFormat-short":"HH:mm","quarters-format-wide":["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"y QQQQ","field-year":"År","dateFormatItem-MMdd":"dd/MM","field-hour":"timme","months-format-abbr":["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],"field-sat-relative+0":"lördag denna vecka","field-sat-relative+1":"lördag nästa vecka","timeFormat-full":"'kl'. HH:mm:ss zzzz","field-day-relative+0":"i dag","field-day-relative+1":"i morgon","field-thu-relative+0":"torsdag denna vecka","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"i övermorgon","field-thu-relative+1":"torsdag nästa vecka","dateFormatItem-H":"HH","months-standAlone-abbr":["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],"quarters-format-abbr":["K1","K2","K3","K4"],"quarters-standAlone-wide":["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"söndag denna vecka","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["K1","K2","K3","K4"],"field-sun-relative+1":"söndag nästa vecka",eraAbbr:["f.Kr.","e.Kr."],"field-minute":"Minut","field-dayperiod":"fm/em","days-standAlone-abbr":["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"i går","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"f","field-day-relative+-2":"i förrgår","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"fredag denna vecka","field-fri-relative+1":"fredag nästa vecka","field-day":"Dag","days-format-wide":["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],"field-zone":"Tidszon","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"i fjol","field-month-relative+-1":"förra månaden","dateFormatItem-hm":"h:mm a","dayPeriods-format-abbr-pm":"EM","days-format-abbr":["sön","mån","tis","ons","tors","fre","lör"],eraNames:["före Kristus","före västerländsk tideräkning","efter Kristus","västerländsk tideräkning"],"dateFormatItem-yMMMd":"d MMM y","days-format-narrow":["S","M","T","O","T","F","L"],"days-standAlone-narrow":["S","M","T","O","T","F","L"],"dateFormatItem-MMM":"LLL","field-month":"Månad","field-tue-relative+0":"tisdag denna vecka","field-tue-relative+1":"tisdag nästa vecka","dayPeriods-format-wide-am":"fm","dateFormatItem-MMMMEd":"E d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"måndag denna vecka","field-mon-relative+1":"måndag nästa vecka","dateFormat-short":"y-MM-dd","dateFormatItem-MMd":"d/M","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"Sekund","field-sat-relative+-1":"lördag förra veckan","dateFormatItem-yMMMEd":"E d MMM y","field-sun-relative+-1":"söndag förra veckan","field-month-relative+0":"denna månad","field-month-relative+1":"nästa månad","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Vecka","dateFormat-medium":"d MMM y","field-year-relative+0":"i år","field-week-relative+-1":"förra veckan","field-year-relative+1":"nästa år","dayPeriods-format-narrow-pm":"e","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"måndag förra veckan","field-week-relative+0":"denna vecka","field-week-relative+1":"nästa vecka"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],"months-format-narrow":["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],"field-second-relative+0":"ขณะนี้","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"วันในสัปดาห์","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d/M/y","field-wed-relative+0":"พุธนี้","field-wed-relative+1":"พุธหน้า","dateFormatItem-GyMMMEd":"E d MMM G y","dateFormatItem-MMMEd":"E d MMM",eraNarrow:["ก่อน ค.ศ.","ก.ส.ศ.","ค.ศ.","ส.ศ."],"field-tue-relative+-1":"อังคารที่แล้ว","days-format-short":["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"ศุกร์ที่แล้ว","field-wed-relative+-1":"พุธที่แล้ว","months-format-wide":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"หลังเที่ยง","dateFormat-full":"EEEEที่ d MMMM G y","field-thu-relative+-1":"พฤหัสที่แล้ว","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d/M/y","field-era":"สมัย","dateFormatItem-yM":"M/y","months-standAlone-wide":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"timeFormat-short":"HH:mm","quarters-format-wide":["ไตรมาส 1","ไตรมาส 2","ไตรมาส 3","ไตรมาส 4"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"H นาฬิกา mm นาที ss วินาที z","field-year":"ปี","dateFormatItem-yMMM":"MMM y","field-hour":"ชั่วโมง","months-format-abbr":["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],"field-sat-relative+0":"เสาร์นี้","field-sat-relative+1":"เสาร์หน้า","timeFormat-full":"H นาฬิกา mm นาที ss วินาที zzzz","field-day-relative+0":"วันนี้","field-thu-relative+0":"พฤหัสนี้","field-day-relative+1":"พรุ่งนี้","field-thu-relative+1":"พฤหัสหน้า","dateFormatItem-GyMMMd":"d MMM G y","field-day-relative+2":"มะรืนนี้","dateFormatItem-H":"HH","months-standAlone-abbr":["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],"quarters-format-abbr":["ไตรมาส 1","ไตรมาส 2","ไตรมาส 3","ไตรมาส 4"],"quarters-standAlone-wide":["ไตรมาส 1","ไตรมาส 2","ไตรมาส 3","ไตรมาส 4"],"dateFormatItem-Gy":"G y","dateFormatItem-M":"L","days-standAlone-wide":["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"อาทิตย์นี้","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"อาทิตย์หน้า","quarters-standAlone-abbr":["ไตรมาส 1","ไตรมาส 2","ไตรมาส 3","ไตรมาส 4"],eraAbbr:["ปีก่อน ค.ศ.","ค.ศ."],"field-minute":"นาที","field-dayperiod":"ช่วงวัน","days-standAlone-abbr":["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"เมื่อวาน","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"เมื่อวานซืน","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"ศุกร์นี้","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"ศุกร์หน้า","field-day":"วัน","days-format-wide":["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"],"field-zone":"เขตเวลา","dateFormatItem-y":"y","months-standAlone-narrow":["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],"field-year-relative+-1":"ปีที่แล้ว","field-month-relative+-1":"เดือนที่แล้ว","dateFormatItem-hm":"h:mm a","days-format-abbr":["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],"dateFormatItem-yMMMd":"d MMM y",eraNames:["ปีก่อนคริสต์ศักราช","ก่อนสามัญศักราช","คริสต์ศักราช","สามัญศักราช"],"days-format-narrow":["อา","จ","อ","พ","พฤ","ศ","ส"],"days-standAlone-narrow":["อา","จ","อ","พ","พฤ","ศ","ส"],"dateFormatItem-MMM":"LLL","field-month":"เดือน","field-tue-relative+0":"อังคารนี้","field-tue-relative+1":"อังคารหน้า","dayPeriods-format-wide-am":"ก่อนเที่ยง","dateFormatItem-MMMMEd":"E d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"จันทร์นี้","field-mon-relative+1":"จันทร์หน้า","dateFormat-short":"d/M/yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"วินาที","field-sat-relative+-1":"เสาร์ที่แล้ว","dateFormatItem-yMMMEd":"E d MMM y","field-sun-relative+-1":"อาทิตย์ที่แล้ว","field-month-relative+0":"เดือนนี้","field-month-relative+1":"เดือนหน้า","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"สัปดาห์","dateFormat-medium":"d MMM y","field-year-relative+0":"ปีนี้","field-week-relative+-1":"สัปดาห์ที่แล้ว","field-year-relative+1":"ปีหน้า","dateFormatItem-mmss":"mm:ss","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM G y","field-mon-relative+-1":"จันทร์ที่แล้ว","field-week-relative+0":"สัปดาห์นี้","field-week-relative+1":"สัปดาห์หน้า"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E a h:mm","days-standAlone-short":["Pa","Pt","Sa","Ça","Pe","Cu","Ct"],"months-format-narrow":["O","Ş","M","N","M","H","T","A","E","E","K","A"],"field-second-relative+0":"şimdi","quarters-standAlone-narrow":["1.","2.","3.","4."],"field-weekday":"Haftanın Günü","dateFormatItem-yQQQ":"y/QQQ","dateFormatItem-yMEd":"dd.MM.y E","field-wed-relative+0":"bu çarşamba","field-wed-relative+1":"gelecek çarşamba","dateFormatItem-GyMMMEd":"G d MMM y E","dateFormatItem-MMMEd":"d MMMM E",eraNarrow:["MÖ","MS"],"dateFormatItem-yMM":"MM.y","field-tue-relative+-1":"geçen salı","days-format-short":["Pa","Pt","Sa","Ça","Pe","Cu","Ct"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"geçen cuma","field-wed-relative+-1":"geçen çarşamba","months-format-wide":["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"ÖS","dateFormat-full":"d MMMM y EEEE","field-thu-relative+-1":"geçen perşembe","dateFormatItem-Md":"dd/MM","dateFormatItem-yMd":"dd.MM.y","field-era":"Miladi Dönem","dateFormatItem-yM":"MM/y","months-standAlone-wide":["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],"timeFormat-short":"HH:mm","quarters-format-wide":["1. çeyrek","2. çeyrek","3. çeyrek","4. çeyrek"],"dateFormatItem-yQQQQ":"y/QQQQ","timeFormat-long":"HH:mm:ss z","field-year":"Yıl","dateFormatItem-yMMM":"MMM y","field-hour":"Saat","months-format-abbr":["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],"field-sat-relative+0":"bu cumartesi","field-sat-relative+1":"gelecek cumartesi","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"bugün","field-thu-relative+0":"bu perşembe","field-day-relative+1":"yarın","field-thu-relative+1":"gelecek perşembe","dateFormatItem-GyMMMd":"G dd MMM y","field-day-relative+2":"öbür gün","dateFormatItem-H":"HH","months-standAlone-abbr":["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],"quarters-format-abbr":["Ç1","Ç2","Ç3","Ç4"],"quarters-standAlone-wide":["1. çeyrek","2. çeyrek","3. çeyrek","4. çeyrek"],"dateFormatItem-Gy":"G y","dateFormatItem-M":"L","days-standAlone-wide":["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],"dateFormatItem-MMMMd":"dd MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"bu pazar","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"gelecek pazar","quarters-standAlone-abbr":["Ç1","Ç2","Ç3","Ç4"],eraAbbr:["MÖ","MS"],"field-minute":"Dakika","field-dayperiod":"ÖÖ/ÖS","days-standAlone-abbr":["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1.","2.","3.","4."],"field-day-relative+-1":"dün","dateFormatItem-h":"a h","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"evvelsi gün","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"dd/MM E","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"bu cuma","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"gelecek cuma","field-day":"Gün","days-format-wide":["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],"field-zone":"Saat Dilimi","dateFormatItem-y":"y","months-standAlone-narrow":["O","Ş","M","N","M","H","T","A","E","E","K","A"],"field-year-relative+-1":"geçen yıl","field-month-relative+-1":"geçen ay","dateFormatItem-hm":"a h:mm","days-format-abbr":["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],"dateFormatItem-yMMMd":"dd MMM y",eraNames:["Milattan Önce","Milattan Sonra"],"days-format-narrow":["P","P","S","Ç","P","C","C"],"days-standAlone-narrow":["P","P","S","Ç","P","C","C"],"dateFormatItem-MMM":"LLL","field-month":"Ay","field-tue-relative+0":"bu salı","field-tue-relative+1":"gelecek salı","dayPeriods-format-wide-am":"ÖÖ","dateFormatItem-MMMMEd":"dd MMMM E","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"bu pazartesi","field-mon-relative+1":"gelecek pazartesi","dateFormat-short":"d.MM.y","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E a h:mm:ss","field-second":"Saniye","field-sat-relative+-1":"geçen cumartesi","dateFormatItem-yMMMEd":"d MMM y E","field-sun-relative+-1":"geçen pazar","field-month-relative+0":"bu ay","field-month-relative+1":"gelecek ay","dateFormatItem-Ed":"d E","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Hafta","dateFormat-medium":"d MMM y","field-year-relative+0":"bu yıl","field-week-relative+-1":"geçen hafta","field-year-relative+1":"gelecek yıl","dateFormatItem-mmss":"mm:ss","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"a h:mm:ss","dateFormatItem-GyMMM":"G MMM y","field-mon-relative+-1":"geçen pazartesi","field-week-relative+0":"bu hafta","field-week-relative+1":"gelecek hafta"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"Eah:mm","days-standAlone-short":["周日","周一","周二","周三","周四","周五","周六"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"现在","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"星期","dateFormatItem-yQQQ":"y年第Q季度","dateFormatItem-yMEd":"y/M/dE","field-wed-relative+0":"本周三","dateFormatItem-GyMMMEd":"Gy年M月d日E","dateFormatItem-MMMEd":"M月d日E","field-wed-relative+1":"下周三",eraNarrow:["公元前","公元"],"dateFormatItem-yMM":"y年M月","dayPeriods-format-wide-earlyMorning":"清晨","field-tue-relative+-1":"上周二","dayPeriods-format-wide-morning":"上午","days-format-short":["周日","周一","周二","周三","周四","周五","周六"],"dateFormat-long":"y年M月d日","field-fri-relative+-1":"上周五","field-wed-relative+-1":"上周三","months-format-wide":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"下午","dateFormat-full":"y年M月d日EEEE","field-thu-relative+-1":"上周四","dateFormatItem-Md":"M/d","dayPeriods-format-narrow-midDay":"中午","dayPeriods-format-wide-noon":"中午","dateFormatItem-yMd":"y/M/d","dateFormatItem-yM":"y/M","field-era":"纪元","months-standAlone-wide":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"timeFormat-short":"ah:mm","quarters-format-wide":["第一季度","第二季度","第三季度","第四季度"],"timeFormat-long":"zah:mm:ss","dateFormatItem-yMMM":"y年M月","dateFormatItem-yQQQQ":"y年第Q季度","field-year":"年","dateFormatItem-MMdd":"MM/dd","field-hour":"小时","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-sat-relative+0":"本周六","field-sat-relative+1":"下周六","timeFormat-full":"zzzzah:mm:ss","dayPeriods-format-narrow-morning":"上午","field-day-relative+0":"今天","field-day-relative+1":"明天","field-thu-relative+0":"本周四","dateFormatItem-GyMMMd":"Gy年M月d日","field-day-relative+2":"后天","field-thu-relative+1":"下周四","dateFormatItem-H":"H时","months-standAlone-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"quarters-format-abbr":["1季度","2季度","3季度","4季度"],"quarters-standAlone-wide":["第一季度","第二季度","第三季度","第四季度"],"dateFormatItem-Gy":"Gy年","dateFormatItem-M":"M月","days-standAlone-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"timeFormat-medium":"ah:mm:ss","field-sun-relative+0":"本周日","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["1季度","2季度","3季度","4季度"],"field-sun-relative+1":"下周日",eraAbbr:["公元前","公元"],"field-minute":"分钟","field-dayperiod":"上午/下午","days-standAlone-abbr":["周日","周一","周二","周三","周四","周五","周六"],"dayPeriods-format-wide-night":"晚上","dateFormatItem-d":"d日","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"昨天","dateFormatItem-h":"ah时","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"上午","field-day-relative+-2":"前天","dateFormatItem-MMMd":"M月d日","dayPeriods-format-wide-midDay":"中午","dateFormatItem-MEd":"M/dE","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"本周五","dateFormatItem-yMMMM":"y年M月","field-fri-relative+1":"下周五","field-day":"日","days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"field-zone":"时区","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-y":"y年","field-year-relative+-1":"去年","dayPeriods-format-narrow-night":"晚上","field-month-relative+-1":"上个月","dateFormatItem-hm":"ah:mm","dayPeriods-format-narrow-weeHours":"凌晨","days-format-abbr":["周日","周一","周二","周三","周四","周五","周六"],eraNames:["公元前","公元"],"dateFormatItem-yMMMd":"y年M月d日","days-format-narrow":["日","一","二","三","四","五","六"],"dayPeriods-format-narrow-earlyMorning":"清晨","days-standAlone-narrow":["日","一","二","三","四","五","六"],"dateFormatItem-MMM":"LLL","field-month":"月","field-tue-relative+0":"本周二","field-tue-relative+1":"下周二","dayPeriods-format-wide-am":"上午","dateFormatItem-EHm":"EHH:mm","dayPeriods-format-wide-weeHours":"凌晨","dateFormatItem-MMMMdd":"M月dd日","field-mon-relative+0":"本周一","field-mon-relative+1":"下周一","dateFormat-short":"yy/M/d","dayPeriods-format-wide-afternoon":"下午","dateFormatItem-EHms":"EHH:mm:ss","dateFormatItem-Ehms":"Eah:mm:ss","dayPeriods-format-narrow-afternoon":"下午","dayPeriods-format-narrow-noon":"中午","field-second":"秒钟","field-sat-relative+-1":"上周六","dateFormatItem-yMMMEd":"y年M月d日E","field-sun-relative+-1":"上周日","field-month-relative+0":"本月","field-month-relative+1":"下个月","dateFormatItem-Ed":"d日E","dateTimeFormats-appendItem-Timezone":"{1}{0}","field-week":"周","dateFormat-medium":"y年M月d日","field-year-relative+0":"今年","field-week-relative+-1":"上周","field-year-relative+1":"明年","dayPeriods-format-narrow-pm":"下午","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"ah:mm:ss","dateFormatItem-GyMMM":"Gy年M月","field-mon-relative+-1":"上周一","field-week-relative+0":"本周","field-week-relative+1":"下周"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"Eah:mm","days-standAlone-short":["周日","周一","周二","周三","周四","周五","周六"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"现在","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"星期","dateFormatItem-yQQQ":"y年第Q季度","dateFormatItem-yMEd":"y/M/dE","field-wed-relative+0":"本周三","dateFormatItem-GyMMMEd":"Gy年M月d日E","dateFormatItem-MMMEd":"M月d日E","field-wed-relative+1":"下周三",eraNarrow:["公元前","公元"],"dateFormatItem-yMM":"y年M月","dayPeriods-format-wide-earlyMorning":"清晨","field-tue-relative+-1":"上周二","dayPeriods-format-wide-morning":"上午","days-format-short":["周日","周一","周二","周三","周四","周五","周六"],"dateFormat-long":"y年M月d日","field-fri-relative+-1":"上周五","field-wed-relative+-1":"上周三","months-format-wide":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"下午","dateFormat-full":"y年M月d日EEEE","field-thu-relative+-1":"上周四","dateFormatItem-Md":"M/d","dayPeriods-format-narrow-midDay":"中午","dayPeriods-format-wide-noon":"中午","dateFormatItem-yMd":"y/M/d","dateFormatItem-yM":"y/M","field-era":"纪元","months-standAlone-wide":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"timeFormat-short":"ah:mm","quarters-format-wide":["第一季度","第二季度","第三季度","第四季度"],"timeFormat-long":"zah:mm:ss","dateFormatItem-yMMM":"y年M月","dateFormatItem-yQQQQ":"y年第Q季度","field-year":"年","dateFormatItem-MMdd":"MM/dd","field-hour":"小时","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-sat-relative+0":"本周六","field-sat-relative+1":"下周六","timeFormat-full":"zzzzah:mm:ss","dayPeriods-format-narrow-morning":"上午","field-day-relative+0":"今天","field-day-relative+1":"明天","field-thu-relative+0":"本周四","dateFormatItem-GyMMMd":"Gy年M月d日","field-day-relative+2":"后天","field-thu-relative+1":"下周四","dateFormatItem-H":"H时","months-standAlone-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"quarters-format-abbr":["1季度","2季度","3季度","4季度"],"quarters-standAlone-wide":["第一季度","第二季度","第三季度","第四季度"],"dateFormatItem-Gy":"Gy年","dateFormatItem-M":"M月","days-standAlone-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"timeFormat-medium":"ah:mm:ss","field-sun-relative+0":"本周日","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["1季度","2季度","3季度","4季度"],"field-sun-relative+1":"下周日",eraAbbr:["公元前","公元"],"field-minute":"分钟","field-dayperiod":"上午/下午","days-standAlone-abbr":["周日","周一","周二","周三","周四","周五","周六"],"dayPeriods-format-wide-night":"晚上","dateFormatItem-d":"d日","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"昨天","dateFormatItem-h":"ah时","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"上午","field-day-relative+-2":"前天","dateFormatItem-MMMd":"M月d日","dayPeriods-format-wide-midDay":"中午","dateFormatItem-MEd":"M/dE","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"本周五","dateFormatItem-yMMMM":"y年M月","field-fri-relative+1":"下周五","field-day":"日","days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"field-zone":"时区","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-y":"y年","field-year-relative+-1":"去年","dayPeriods-format-narrow-night":"晚上","field-month-relative+-1":"上个月","dateFormatItem-hm":"ah:mm","dayPeriods-format-narrow-weeHours":"凌晨","days-format-abbr":["周日","周一","周二","周三","周四","周五","周六"],eraNames:["公元前","公元"],"dateFormatItem-yMMMd":"y年M月d日","days-format-narrow":["日","一","二","三","四","五","六"],"dayPeriods-format-narrow-earlyMorning":"清晨","days-standAlone-narrow":["日","一","二","三","四","五","六"],"dateFormatItem-MMM":"LLL","field-month":"月","field-tue-relative+0":"本周二","field-tue-relative+1":"下周二","dayPeriods-format-wide-am":"上午","dateFormatItem-EHm":"EHH:mm","dayPeriods-format-wide-weeHours":"凌晨","dateFormatItem-MMMMdd":"M月dd日","field-mon-relative+0":"本周一","field-mon-relative+1":"下周一","dateFormat-short":"yy/M/d","dayPeriods-format-wide-afternoon":"下午","dateFormatItem-EHms":"EHH:mm:ss","dateFormatItem-Ehms":"Eah:mm:ss","dayPeriods-format-narrow-afternoon":"下午","dayPeriods-format-narrow-noon":"中午","field-second":"秒钟","field-sat-relative+-1":"上周六","dateFormatItem-yMMMEd":"y年M月d日E","field-sun-relative+-1":"上周日","field-month-relative+0":"本月","field-month-relative+1":"下个月","dateFormatItem-Ed":"d日E","dateTimeFormats-appendItem-Timezone":"{1}{0}","field-week":"周","dateFormat-medium":"y年M月d日","field-year-relative+0":"今年","field-week-relative+-1":"上周","field-year-relative+1":"明年","dayPeriods-format-narrow-pm":"下午","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"ah:mm:ss","dateFormatItem-GyMMM":"Gy年M月","field-mon-relative+-1":"上周一","field-week-relative+0":"本周","field-week-relative+1":"下周"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E a h:mm","days-standAlone-short":["日","一","二","三","四","五","六"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"現在","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"週天","dateFormatItem-yQQQ":"y年QQQ","dateFormatItem-yMEd":"y/M/d(E)","field-wed-relative+0":"本週三","dateFormatItem-GyMMMEd":"G y 年 M 月 d 日E","dateFormatItem-MMMEd":"M月d日E","field-wed-relative+1":"下週三",eraNarrow:["西元前","公元前","西元","公元"],"dateFormatItem-yMM":"y-MM","dayPeriods-format-wide-earlyMorning":"清晨","field-tue-relative+-1":"上週二","dayPeriods-format-wide-morning":"上午","days-format-short":["日","一","二","三","四","五","六"],"dateFormat-long":"y年M月d日","field-fri-relative+-1":"上週五","field-wed-relative+-1":"上週三","months-format-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"下午","dateFormat-full":"y年M月d日EEEE","field-thu-relative+-1":"上週四","dateFormatItem-Md":"M/d","dayPeriods-format-narrow-midDay":"中午","dayPeriods-format-wide-noon":"中午","dateFormatItem-yMd":"y/M/d","dateFormatItem-yM":"y/M","field-era":"年代","months-standAlone-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"timeFormat-short":"ah:mm","quarters-format-wide":["第1季","第2季","第3季","第4季"],"timeFormat-long":"zah時mm分ss秒","dateFormatItem-yMMM":"y年M月","dateFormatItem-yQQQQ":"y年QQQQ","field-year":"年","dateFormatItem-MMdd":"MM/dd","field-hour":"小時","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-sat-relative+0":"本週六","field-sat-relative+1":"下週六","timeFormat-full":"zzzzah時mm分ss秒","dayPeriods-format-narrow-morning":"上午","field-day-relative+0":"今天","field-day-relative+1":"明天","field-thu-relative+0":"本週四","dateFormatItem-GyMMMd":"G y 年 M 月 d 日","field-day-relative+2":"後天","field-thu-relative+1":"下週四","dateFormatItem-H":"H時","months-standAlone-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"quarters-format-abbr":["1季","2季","3季","4季"],"quarters-standAlone-wide":["第1季","第2季","第3季","第4季"],"dateFormatItem-Gy":"G y 年","dateFormatItem-M":"M月","days-standAlone-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"timeFormat-medium":"ah:mm:ss","field-sun-relative+0":"本週日","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["1季","2季","3季","4季"],"field-sun-relative+1":"下週日",eraAbbr:["西元前","西元"],"field-minute":"分鐘","field-dayperiod":"上午/下午","days-standAlone-abbr":["週日","週一","週二","週三","週四","週五","週六"],"dayPeriods-format-wide-night":"晚上","dateFormatItem-d":"d日","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"昨天","dateFormatItem-h":"ah時","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"上午","field-day-relative+-2":"前天","dateFormatItem-MMMd":"M月d日","dayPeriods-format-wide-midDay":"中午","dateFormatItem-MEd":"M/d(E)","dateTimeFormat-full":"{1}{0}","field-fri-relative+0":"本週五","dateFormatItem-yMMMM":"y年M月","field-fri-relative+1":"下週五","field-day":"日","days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"field-zone":"時區","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-y":"y年","field-year-relative+-1":"去年","dayPeriods-format-narrow-night":"晚上","field-month-relative+-1":"上個月","dateFormatItem-hm":"ah:mm","dayPeriods-format-narrow-weeHours":"凌晨","days-format-abbr":["週日","週一","週二","週三","週四","週五","週六"],eraNames:["西元前","公元前","西元","公元"],"dateFormatItem-yMMMd":"y年M月d日","days-format-narrow":["日","一","二","三","四","五","六"],"dayPeriods-format-narrow-earlyMorning":"清晨","days-standAlone-narrow":["日","一","二","三","四","五","六"],"dateFormatItem-MMM":"LLL","field-month":"月","field-tue-relative+0":"本週二","field-tue-relative+1":"下週二","dayPeriods-format-wide-am":"上午","dateFormatItem-EHm":"E HH:mm","dayPeriods-format-wide-weeHours":"凌晨","dateFormatItem-MMMMdd":"M月dd日","field-mon-relative+0":"本週一","field-mon-relative+1":"下週一","dateFormat-short":"y/M/d","dayPeriods-format-wide-afternoon":"下午","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E a h:mm:ss","dayPeriods-format-narrow-afternoon":"下午","dayPeriods-format-narrow-noon":"中午","field-second":"秒","field-sat-relative+-1":"上週六","dateFormatItem-yMMMEd":"y年M月d日E","field-sun-relative+-1":"上週日","field-month-relative+0":"本月","field-month-relative+1":"下個月","dateFormatItem-Ed":"d日(E)","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"週","dateFormat-medium":"y年M月d日","field-year-relative+0":"今年","field-week-relative+-1":"上週","field-year-relative+1":"明年","dayPeriods-format-narrow-pm":"下午","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"ah:mm:ss","dateFormatItem-GyMMM":"G y 年 M 月","field-mon-relative+-1":"上週一","field-week-relative+0":"本週","field-week-relative+1":"下週"}},function(e,t,i){e.exports={"field-sat-relative+0":"本週六","field-sat-relative+1":"下週六","field-sun-relative+-1":"上週日","field-mon-relative+-1":"上週一","field-minute":"分鐘",eraNames:["西元前","西元"],"dateTimeFormat-full":"{1}{0}","field-weekday":"週天","dateFormatItem-yQQQ":"y年QQQ","field-era":"年代","dateFormatItem-Gy":"G y 年","field-hour":"小時","quarters-standAlone-abbr":["第1季","第2季","第3季","第4季"],"timeFormat-full":"zzzzah時mm分ss秒","dateTimeFormats-appendItem-Timezone":"{0} {1}","dateFormatItem-yMM":"y-MM","field-sun-relative+0":"本週日","field-sun-relative+1":"下週日","field-wed-relative+-1":"上週三","dateFormatItem-Ed":"d日(E)",eraAbbr:["西元前","西元"],"field-day-relative+2":"後天","dateFormatItem-GyMMMd":"G y 年 M 月 d 日","field-zone":"時區","field-tue-relative+0":"本週二","dateFormatItem-Ehm":"E a h:mm","field-tue-relative+1":"下週二","field-week-relative+-1":"上週","field-sat-relative+-1":"上週六",$locale:"zh-hant-hk","quarters-standAlone-wide":["第1季","第2季","第3季","第4季"],"field-fri-relative+0":"本週五","field-fri-relative+1":"下週五","months-standAlone-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-week":"週","field-week-relative+0":"本週","dateFormatItem-Ehms":"E a h:mm:ss","field-week-relative+1":"下週","timeFormat-long":"zah時mm分ss秒","dateFormatItem-yQQQQ":"y年QQQQ","field-month-relative+1":"下個月","dateFormatItem-H":"H時","field-fri-relative+-1":"上週五","quarters-format-abbr":["第1季","第2季","第3季","第4季"],"field-second":"秒","dateFormatItem-GyMMMEd":"G y 年 M 月 d 日E","field-tue-relative+-1":"上週二","dateFormatItem-GyMMM":"G y 年 M 月","dateFormatItem-MEd":"M/d(E)","field-mon-relative+0":"本週一","field-mon-relative+1":"下週一","field-second-relative+0":"現在","field-thu-relative+0":"本週四","dateFormat-short":"y/M/d","field-thu-relative+1":"下週四","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-EHm":"E HH:mm","dateFormatItem-yMEd":"y/M/d(E)","field-wed-relative+0":"本週三","months-format-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-wed-relative+1":"下週三","field-month-relative+-1":"上個月","quarters-format-wide":["第1季","第2季","第3季","第4季"],eraNarrow:["西元前","西元"],"dateFormatItem-h":"ah時","field-thu-relative+-1":"上週四"}},function(e,t,i){e.exports={"field-sat-relative+0":"本週六","field-sat-relative+1":"下週六","field-sun-relative+-1":"上週日","field-mon-relative+-1":"上週一","field-minute":"分鐘",eraNames:["西元前","西元"],"dateTimeFormat-full":"{1}{0}","field-weekday":"週天","dateFormatItem-yQQQ":"y年QQQ","field-era":"年代","dateFormatItem-Gy":"G y 年","field-hour":"小時","quarters-standAlone-abbr":["第1季","第2季","第3季","第4季"],"timeFormat-full":"zzzzah時mm分ss秒","dateTimeFormats-appendItem-Timezone":"{0} {1}","dateFormatItem-yMM":"y-MM","field-sun-relative+0":"本週日","field-sun-relative+1":"下週日","field-wed-relative+-1":"上週三","dateFormatItem-Ed":"d日(E)",eraAbbr:["西元前","西元"],"field-day-relative+2":"後天","dateFormatItem-GyMMMd":"G y 年 M 月 d 日","field-zone":"時區","field-tue-relative+0":"本週二","dateFormatItem-Ehm":"E a h:mm","field-tue-relative+1":"下週二","field-week-relative+-1":"上週","field-sat-relative+-1":"上週六",$locale:"zh-hant-tw","quarters-standAlone-wide":["第1季","第2季","第3季","第4季"],"field-fri-relative+0":"本週五","field-fri-relative+1":"下週五","months-standAlone-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-week":"週","field-week-relative+0":"本週","dateFormatItem-Ehms":"E a h:mm:ss","field-week-relative+1":"下週","timeFormat-long":"zah時mm分ss秒","dateFormatItem-yQQQQ":"y年QQQQ","field-month-relative+1":"下個月","dateFormatItem-H":"H時","field-fri-relative+-1":"上週五","quarters-format-abbr":["第1季","第2季","第3季","第4季"],"field-second":"秒","dateFormatItem-GyMMMEd":"G y 年 M 月 d 日E","field-tue-relative+-1":"上週二","dateFormatItem-GyMMM":"G y 年 M 月","dateFormatItem-MEd":"M/d(E)","field-mon-relative+0":"本週一","field-mon-relative+1":"下週一","field-second-relative+0":"現在","field-thu-relative+0":"本週四","dateFormat-short":"y/M/d","field-thu-relative+1":"下週四","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-EHm":"E HH:mm","dateFormatItem-yMEd":"y/M/d(E)","field-wed-relative+0":"本週三","months-format-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-wed-relative+1":"下週三","field-month-relative+-1":"上個月","quarters-format-wide":["第1季","第2季","第3季","第4季"],eraNarrow:["西元前","西元"],"dateFormatItem-h":"ah時","field-thu-relative+-1":"上週四"}},function(e,t){e.exports='<div class="${baseClass}Container" role="presentation"\n\t><div class="${baseClass}ControlsContainer" role="presentation"\n\t\t><div class="${baseClass}MonthYearControlsContainer"\n\t\t\t><div data-dojo-attach-point="monthNode"></div\n\t\t\t><div data-dojo-attach-point="yearNode"></div\n\t\t></div\n\t\t><div class="${baseClass}MonthControlsContainer" role="presentation"\n\t\t\t><div data-dojo-attach-point="decrementMonthNode"></div\n\t\t\t><div data-dojo-attach-point="todayMonthNode"></div\n\t\t\t><div data-dojo-attach-point="incrementMonthNode"></div\n\t\t></div\n\t></div\n\t><table class="${baseClass}Table" cellspacing="0" cellpadding="0" role="grid" data-dojo-attach-point="gridNode"\n\t\t><thead class="${baseClass}HeadContainer"\n\t\t\t><tr role="row"\n\t\t\t\t>${!dayCellsHtml}</tr\n\t\t></thead\n\t\t><tbody data-dojo-attach-point="dateRowsNode" data-dojo-attach-event="ondijitclick: _onDayClick" class="${baseClass}BodyContainer"\n\t\t\t\t>${!dateRowsHtml}</tbody\n\t></table\n></div>\n'},function(e,t,i){var n,o;n=[i(218),i(220),i(5883),i(5884),i(5885),i(5886)],o=i.dj.d(n,(function(e,t){return t(e,"mw-datepicker/l10n/nls/CalendarResources",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={previousMonthTooltipText:"前の月を表示します",todayTooltipText:"今日を表示します",nextMonthTooltipText:"次の月を表示します",monthTooltipText:"月を選択します",yearTooltipText:"年を選択します"}},function(e,t,i){e.exports={previousMonthTooltipText:"显示上个月",todayTooltipText:"显示今天",nextMonthTooltipText:"显示下个月",monthTooltipText:"选择月份",yearTooltipText:"选择年份"}},function(e,t,i){e.exports={previousMonthTooltipText:"이전 달을 표시합니다.",todayTooltipText:"오늘을 표시합니다.",nextMonthTooltipText:"다음 달을 표시합니다.",monthTooltipText:"월을 선택합니다.",yearTooltipText:"연도를 선택합니다."}},function(e,t,i){e.exports={root:{previousMonthTooltipText:"Show previous month",todayTooltipText:"Show today",nextMonthTooltipText:"Show next month",monthTooltipText:"Select a month",yearTooltipText:"Select a year"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t){e.exports='<div\n \t><div class="mwComboBoxInnerContainer"\n ><div class="mwTextFieldContainerNode" data-dojo-attach-point="textFieldContainerNode"></div\n \t ><div class="mwArrowContainerNode" data-dojo-attach-point="arrowNode"><div class="mwArrowNode"></div\n ></div\n></div>'},function(e,t,i){var n,o;n=[i(218),i(220),i(5889),i(5890),i(5891),i(5892)],o=i.dj.d(n,(function(e,t){return t(e,"mw-datepicker/l10n/nls/DatePickerResources",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={disabledDateMessage:"日付は許可されていません。",invalidDateMessage:"無効な日付です。%1 の形式を使用してください。",missingDateMessage:"日付が見つかりません。%1 を指定してください。"}},function(e,t,i){e.exports={disabledDateMessage:"不允许使用日期。",invalidDateMessage:"日期无效。请使用格式 %1。",missingDateMessage:"缺少日期。请指定 %1。"}},function(e,t,i){e.exports={disabledDateMessage:"날짜는 허용되지 않습니다.",invalidDateMessage:"유효하지 않은 날짜입니다. %1 형식을 사용하십시오.",missingDateMessage:"날짜가 누락되었습니다. %1을(를) 지정하십시오."}},function(e,t,i){e.exports={root:{disabledDateMessage:"Date is not allowed.",invalidDateMessage:"Invalid date. Use format %1.",missingDateMessage:"Date is missing. Specify %1."},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{matlabDateToJSDate:function(e,t){var i,n;if("NaT"===e)i=null;else if(Array.isArray(e.Month)){var o;if(void 0===t)for(t=[],o=0;o<e.Year.length;o++)t.push(o);i=[];for(var r=0;r<t.length;r++)o=t[r],(n=new Date(e.Year[o],e.Month[o]-1,e.Day[o])).setFullYear(e.Year[o]),n.getDate()!==e.Day[o]&&(n.setHours(1,0,0,0),n.setDate(e.Day[o])),i.push(n)}else(n=new Date(e.Year,e.Month-1,e.Day)).setFullYear(e.Year),n.getDate()!==e.Day&&(n.setHours(1,0,0,0),n.setDate(e.Day)),i=n;return i},jsDateToMatlabDate:function(e,t){var i;if(null===e)i="NaT";else if(Array.isArray(e)){if(i={Year:[],Month:[],Day:[]},void 0===t){t=[];for(var n=0;n<e.length;n++)t.push(n)}for(var o=0;o<t.length;o++)n=t[o],i.Year.push(e[n].getFullYear()),i.Month.push(e[n].getMonth()+1),i.Day.push(e[n].getDate())}else i={Year:e.getFullYear(),Month:e.getMonth()+1,Day:e.getDate()};return i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(381),i(2172),i(404),i(441),i(298),i(295),i(287),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([t,i,o,r,a,s],{constructor:function(){},setComponentToPreferredSize:function(){},createView:function(){this.inherited(arguments);var e=new n;e.on("click",function(){this.handleUserInteraction("ImageClicked",{})}.bind(this)),this._setDijitHandle(e),this.fireViewReadyEvent()},_IconURL:function(e){var t=e;t&&t.startsWith("/static/")&&(t=c.createWorkerRoutingHostUrl(t)),this.widget.set("icon",t)},_ScaleMethod:function(e){this.widget.set("scalemethod",e)},_HorizontalAlignment:function(e){this.widget.setHorizontalAlignment(e)},_VerticalAlignment:function(e){var t=l.getVerticalAlignmentPropertyForWidget(e);this.widget.setVerticalAlignment(t)},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){return[100,100]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5896),i(2172),i(381),i(298),i(295),i(232),i(1152),i(5898)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([n,o,r],{_interfaceLoaded:!1,_interfaceContent:l,_widgetType:"",_windowListner:null,_widgetDomain:window.location.origin,createView:function(){this.inherited(arguments),this._interfaceContent=this._interfaceContent.replace("$DOMAIN$",this._widgetDomain),this._createWidget(),this.setProperties(["DataJSON","IsDebugMode"]),this._windowListner=this._handleWindowMessagesFromIFrame.bind(this),window.addEventListener("message",this._windowListner,!1),this.fireViewReadyEvent()},_createWidget:function(){var e=this.WidgetData.getProperty("IsDebugMode");this._widgetType=this.WidgetData.getProperty("HTMLSourceType");var n=null;if("empty"===this._widgetType?(n=new i({icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMSA2MCA1NCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNhNmE2YTY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5BcnRib2FyZCAxPC90aXRsZT48cG9seWdvbiBjbGFzcz0iY2xzLTEiIHBvaW50cz0iMzcuNjEgMCAzNS45NyAwIDI0LjgzIDMzIDI2LjQ2IDMzIDM3LjYxIDAiLz48cG9seWdvbiBjbGFzcz0iY2xzLTEiIHBvaW50cz0iNDEgNyA2MCAxNi42IDYwIDE5LjQgNDEgMjkgNDEgMjcuMiA1OC4zMiAxOCA0MSA4LjggNDEgNyIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMSIgcG9pbnRzPSIxOSAyOSAwIDE5LjQgMCAxNi42IDE5IDcgMTkgOC44IDEuNjggMTggMTkgMjcuMiAxOSAyOSIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTIyLDUzLjkySDIwLjZWNDkuMjRIMTYuMzF2NC42OEgxNC45MlY0My43MWgxLjM5VjQ4SDIwLjZWNDMuNzFIMjJaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMzEsNDQuOUgyOHY5SDI2LjU0di05aC0zVjQzLjcxSDMxWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTQwLjA2LDUzLjkySDM4LjdsLS4yLTYuMzYtLjA5LTIuNDUtLjQ4LDEuNDItMS41LDQuMDdoLTFMMzQsNDYuNjlsLS40OC0xLjU4LDAsMi41Ni0uMTgsNi4yNUgzMmwuNS0xMC4yMWgxLjY1bDEuMzcsMy44NUwzNiw0OC44NWwuNDMtMS4yOSwxLjQ0LTMuODVoMS43WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTQ4LjE0LDUzLjkySDQyLjI2VjQzLjcxaDEuNDJ2OWg0LjQ2WiIvPjwvc3ZnPg==",id:"UIHTML_"+(e?"Debug":this.WidgetData.getId())}),this._VCWidgetDOMNode.classList.add("vc-html-image")):(n=new t({embeddedScript:this._interfaceContent,id:"UIHTML_"+(e?"Debug":this.WidgetData.getId()),htmlSource:{srcValue:this._getSrcValue(),srcType:this.WidgetData.getProperty("HTMLSourceType")},isDebugMode:e}),this._VCWidgetDOMNode.classList.remove("vc-html-image"),n.on("uihtmlusererror",function(e){this._handleWindowMessagesFromIFrame(e)}.bind(this))),this._setDijitHandle(n),e){var o=window.console;o.clear(),"empty"===this._widgetType?o.info("%c"+s.HTMLDebugEmptySource,"color: blue; font-size: 16px;"):o.info("%c"+s.HTMLDebugDomNode+"\n","color: blue; font-size: 16px;",this.widget.domNode,"\n\n\n")}},updateFontPropertiesFromModel:function(){},setProperties:function(e){this.inherited(arguments),(this._arePropertyNamesPresent(e,["HTMLSourceType"])&&this._widgetType!==this.WidgetData.getProperty("HTMLSourceType")||this.widget.get("IsErrorState"))&&(this.widget.destroy(),this._createWidget()),"empty"!==this._widgetType&&(this._arePropertyNamesPresent(e,["HTMLSourceValue"])&&this.widget.set("htmlSource",{srcValue:this._getSrcValue(),srcType:this.WidgetData.getProperty("HTMLSourceType")}),this._arePropertyNamesPresent(e,["DataJSON"])&&this._interfaceLoaded&&this._sendDataToWidget())},_getSrcValue:function(){var e=this.WidgetData.getProperty("HTMLSourceValue"),t=this.WidgetData.getProperty("HTMLSourceType");return"file"!==t&&"link"!==t||(e=a.createWorkerRoutingHostUrl(e)),e},_handleWindowMessagesFromIFrame:function(e){if(e.origin===this._widgetDomain){var t=e.data;void 0!==t.messageSource&&void 0!==t.messageName&&"empty"!==this._widgetType&&t.messageSource===this.widget.id&&("matlab.ui.html.loaded"===t.messageName?(this._interfaceLoaded=!0,this._renderHtml(),0!==JSON.parse(this.WidgetData.getProperty("DataJSON")).length&&this._sendDataToWidget()):"matlab.ui.html.ClientDataChanged"===t.messageName?this._handleDataChanged(t.data):"matlab.ui.html.UserError"===t.messageName&&(this.widget.get("IsErrorState")||this.WidgetData.dispatchEventToServer("UserErrorFromClient",t),this.widget.set("IsErrorState",!0)))}},_handleDataChanged:function(e){var t={DataJSON:e};this.handleUserInteraction("DataChanged",t,t)},_renderHtml:function(){var e={messageName:"matlab.ui.html.RenderHTML",messageSource:this.widget.id,data:this.WidgetData.getProperty("DataJSON")};this.widget.postMessage(e,this._widgetDomain)},_sendDataToWidget:function(){var e={messageName:"matlab.ui.html.ServerDataChanged",messageSource:this.widget.id,data:this.WidgetData.getProperty("DataJSON")};this.widget.postMessage(e,this._widgetDomain)},_computeMinimumSize:function(){return[120,120]},_computeFitSize:function(){return[400,200]},destroy:function(){window.removeEventListener("message",this._windowListner,!1),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5897),i(215),i(216),i(289)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,n,o],{templateString:t,isDebugMode:!1,htmlSource:{srcValue:"",srcType:""},embeddedScript:"",_isErrorState:!1,constructor:function(){this.inherited(arguments)},buildRendering:function(){this.inherited(arguments),this.iframeNode.onload=function(){if(!0!==this.IsErrorState){if(null!==this.iframeNode.contentWindow)try{if("html"===this.htmlSource.srcType&&""!==this.htmlSource.srcValue){var e=this.iframeNode.contentWindow.document||this.iframeNode.contentDocument;""===e.body.innerHTML&&""===e.head.innerHTML&&this._addIframeContent(this.htmlSource.srcValue)}"file"!==this.htmlSource.srcType&&"html"!==this.htmlSource.srcType||""===this.embeddedScript.trim()||this._embedScript()}catch(e){var t={data:{messageSource:this.iframeNode.id,messageName:"matlab.ui.html.UserError"},origin:window.location.origin};this.emit("uihtmlusererror",t)}}else this.destroy()}.bind(this)},_setHtmlSourceAttr:function(e){switch(this.htmlSource={srcValue:e.srcValue,srcType:e.srcType},this.htmlSource.srcType){case"file":case"link":!1===this.isDebugMode?this.iframeNode.src=this.htmlSource.srcValue:setTimeout(function(){void 0!==this.iframeNode&&(this.iframeNode.src=this.htmlSource.srcValue)}.bind(this),500);break;case"html":case"empty":this._addIframeContent(this.htmlSource.srcValue)}},postMessage:function(e,t){this.iframeNode.contentWindow.postMessage(e,t)},_embedScript:function(){null!==this.iframeNode.contentWindow&&this.iframeNode.contentWindow.eval(this.embeddedScript)},_addIframeContent:function(e){if(null!==this.iframeNode.contentWindow){var t=this.iframeNode.contentWindow.document||this.iframeNode.contentDocument;t.open(),t.write(e),t.close()}}})}),e,t),e.exports=o},function(e,t){e.exports='<iframe title="HTML Control Area" style="width: 100%; height: 100%; box-sizing: border-box;" frameborder=0 marginheight=0 marginwidth=0\n data-dojo-attach-point=\'iframeNode\'>\n</iframe>\n\n'},function(e,t){e.exports="/* eslint-disable spaced-comment */\n(function () {\n //Copyright 2013-2019 MathWorks, Inc.\n 'use strict';\n\n var _htmldomain = '$DOMAIN$';\n var _Data = null;\n var EventManager = {\n events: {},\n dispatchEvent: function (eventName, eventData) {\n if (!this.events[eventName]) {\n return false;\n }\n\n var listeners = this.events[eventName];\n var len = listeners ? listeners.length : 0;\n\n while (len--) {\n if (listeners[len] && listeners[len].func) {\n listeners[len].func(eventData);\n }\n }\n\n return this;\n },\n addEventListener: function (eventName, callback, scope) {\n if (!this.events[eventName]) {\n this.events[eventName] = [];\n }\n\n scope = scope || this;\n\n if (this._getEventListenerIndex(eventName, callback, scope) < 0) {\n this.events[eventName].push({\n scope: scope,\n func: callback\n });\n }\n },\n removeEventListener: function (eventName, callback, scope) {\n scope = scope || this;\n\n var listenerIndex = this._getEventListenerIndex(eventName, callback, scope);\n\n if (listenerIndex >= 0) {\n this.events[eventName].splice(listenerIndex, 1);\n }\n },\n // This helper method checks if there is any event exist with given eventName\n // If yes then it checks if that event's callback and scope matches with inputs\n // If yes then it return the index of that event else returns -1\n _getEventListenerIndex: function (eventName, callback, scope) {\n scope = scope || this;\n var listeners = this.events[eventName];\n var i;\n\n if (listeners) {\n var listenersLength = listeners.length;\n\n for (i = 0; i < listenersLength; i += 1) {\n if (listeners[i].scope === scope && listeners[i].func === callback) {\n return i;\n }\n }\n }\n\n return -1;\n }\n };\n var HtmlComponent = {\n addEventListener: function (eventName, callback) {\n EventManager.addEventListener(eventName, callback, this);\n },\n removeEventListener: function (eventName, callback) {\n EventManager.removeEventListener(eventName, callback, this);\n }\n };\n Object.defineProperty(HtmlComponent, 'Data', {\n set: function (val) {\n _Data = val;\n var stringVal = JSON.stringify(val); // data change trigger to parent window\n\n window.parent.postMessage({\n messageSource: window.frameElement.id,\n messageName: 'matlab.ui.html.ClientDataChanged',\n data: stringVal\n }, _htmldomain);\n },\n get: function () {\n // return value from the cache variable\n return _Data;\n }\n });\n\n var _handleMessages = function (evt) {\n if (evt.origin !== _htmldomain) {\n return;\n }\n\n var message = evt.data;\n\n if ((message.messageSource === undefined || message.messageName === undefined) && message.messageSource !== window.frameElement.id) {\n return;\n }\n\n if (message.messageName === 'matlab.ui.html.RenderHTML') {\n _Data = JSON.parse(message.data);\n\n if (typeof setup === 'function') {\n // eslint-disable-next-line no-undef\n setup(HtmlComponent);\n }\n } else if (message.messageName === 'matlab.ui.html.ServerDataChanged') {\n var messageData = JSON.parse(message.data);\n var prevData = HtmlComponent.Data;\n _Data = messageData;\n var eventData = {\n Source: HtmlComponent,\n // source object generating this event\n EventName: 'DataChanged',\n // event name\n Data: messageData,\n // new data\n PreviousData: prevData // previous data\n\n };\n EventManager.dispatchEvent('DataChanged', eventData);\n }\n };\n\n var _handleOnError = function () {\n window.parent.postMessage({\n messageSource: window.frameElement.id,\n messageName: 'matlab.ui.html.UserError'\n }, _htmldomain);\n };\n\n var addWindowErrorHandler = function (win, handler) {\n win.onerror = handler; // handle window errors up to first level to communicate to the user\n // that error at first child window\n\n if (win.frames.length > 0) {\n addWindowErrorHandler(win.frames[0], handler);\n }\n };\n\n if (typeof window !== 'undefined') {\n window.addEventListener('message', _handleMessages, false); // handle window errors to communicate to the user\n\n addWindowErrorHandler(window, _handleOnError);\n window.parent.postMessage({\n messageSource: window.frameElement.id,\n messageName: 'matlab.ui.html.loaded'\n }, _htmldomain);\n }\n})();\n/* eslint-enable spaced-comment */"},function(e,t,i){var n,o;n=[i(203),i(5900),i(381),i(404),i(298),i(295),i(836),i(287),i(284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([i,n,o,r,a],{createView:function(){this.inherited(arguments);var e=new t;this._setDijitHandle(e),this._addViewListeners(),this.fireViewReadyEvent()},setProperties:function(e){this.inherited(arguments)},_Text:function(e){e=e||[];var t=s.getNewLineDelimitedText(e);this.widget.set("text",t)},_HorizontalAlignment:function(e){this.widget.setHorizontalAlignment(e)},_VerticalAlignment:function(e){var t=s.getVerticalAlignmentPropertyForWidget(e);this.widget.setVerticalAlignment(t)},_Enable:function(e){var t=!l.toJSBoolean(e);this.widget.set("disabled",t)},_URL:function(e){"auto"===this.getPeerNode().getProperty("TooltipMode")&&0===this.getPeerNode().getProperty("Tooltip").length&&this.widget.setTooltip(e),this.widget.set("url",e)},_TooltipMode:function(e){0===this.getPeerNode().getProperty("Tooltip").length&&"auto"===e?this.widget.setTooltip(this.getPeerNode().getProperty("URL")):this.widget.setTooltip(this.getPeerNode().getProperty("Tooltip"))},_VisitedColor:function(e){this.widget.setVisitedColor(l.toJSRGB(e))},_addViewListeners:function(){this.widget.on("link-clicked",this._handleLinkClicked.bind(this))},_handleLinkClicked:function(e){var t={URL:e.URL,TreatAsMATLABLink:e.TreatAsMATLABLink};this.handleUserInteraction("HyperlinkClicked",t)},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){var e=this.getPeerNode().getProperty("Text"),t=s.getNewLineDelimitedText(e),i=s.getWidgetFontStyleMap(this.getPeerNode()),n=s.getTextPosition(t,i);return[n.width+2,this._getFitHeight(n.height+2)]},_getFitHeight:function(e){var t=e;if(this.widget.wordWrap){var i=this.getPeerNode().getProperty("Text"),n=s.getNewLineDelimitedText(i),o=s.getWidgetFontStyleMap(this.getPeerNode()),r=this.getCellWidth()+"px";t=s.getTextPositionWithWordWrap(n,o,r).height+2}return t},recomputeFitHeight:function(e){this.recomputeFitSize(e)},getFontStyledDomNode:function(){return this.widget.linkNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(479),i(504),i(358),i(374),i(289),i(590),i(1154),i(1155),i(1153),i(1499),i(343),i(247),i(215)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([p,t,n,i,o,r,a,s,l,c,u],{height:22,width:70,backgroundColor:"rgba(0, 0, 0, 0)",visitedColor:"purple",disabled:!1,url:"#",text:"Hyperlink",baseClass:"vc-hyperlink",constructor:function(){this.inherited(arguments),this.domNode=document.createElement("div"),this.linkNode=document.createElement("a"),this.textNode=this.linkNode,this.domNode.appendChild(this.linkNode),d.addLinkAnchorTarget(this.domNode),d.blockAnchorInteractivity(this.domNode),this.linkNode.addEventListener("click",this._handleClick.bind(this),!0),this.linkNode.addEventListener("auxclick",this._handleAuxClick.bind(this),!0),this.linkNode.classList.add("mwAlignmentNode")},buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode,this.focusNode=this.domNode},setText:function(e){this.set("text",e)},_setTextAttr:function(e){this.linkNode.textContent=e,this.text=e,this.linkNode.classList.remove("vc-visited"),this.updateLinkColor()},_setUrlAttr:function(e){this.linkNode.classList.remove("vc-visited"),this.updateLinkColor(),e.length>0&&"#"!==e&&e.indexOf(":")<0&&(e="http://"+e);var t=d.getSanitizedURL(e);this.linkNode.setAttribute("href",t),this.url=e},_getTextAttr:function(){return this.linkNode.text},_setDisabledAttr:function(e){e?(this.domNode.classList.add("vc-hyperlinkDisabled"),this.linkNode.tabIndex=-1,this.linkNode.ariaDisabled="true"):(this.domNode.classList.remove("vc-hyperlinkDisabled"),this.linkNode.tabIndex=0,this.linkNode.ariaDisabled="false"),this._set("disabled",e)},_setWidthAttr:function(e){this.inherited(arguments),this.linkNode.style.maxWidth=e+"px"},_setFontColorAttr:function(e){this.inherited(arguments),this.updateLinkColor()},_getNodeToApplyFontProperties:function(){return this.linkNode},_handleClick:function(e){var t=d.shouldDisableNativeLink(this.url)||e.target.href.indexOf(window.location.href)>-1;return this.disabled||(this.linkNode.classList.add("vc-visited"),this.updateLinkColor(),this.emit("link-clicked",{URL:this.url,TreatAsMATLABLink:t})),t&&e.preventDefault(),!0},_handleAuxClick:function(e){2===e.which&&this._handleClick(e)},setVisitedColor:function(e){this.visitedColor=e,this.updateLinkColor()},updateLinkColor:function(){this.linkNode.classList.contains("vc-visited")?this._updateViewFontColor(this.visitedColor):this._updateViewFontColor(this.fontColor)},getVisitedColor:function(){return this.visitedColor},_updateViewFontColor:function(e){this._getNodeToApplyFontProperties().style.color=e},destroy:function(){this.inherited(arguments),this.linkNode.removeEventListener("click",this._handleClick,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(481),i(5902),i(2173)],o=i.dj.d(n,(function(e,t,i,n){return e([t,n],{createView:function(){this.inherited(arguments);var e=new i({value:0,showPercentage:!1});this._setDijitHandle(e),this.addMouseEventListeners(this._VCWidgetDOMNode)},handleInnerSizeSet:function(e){var t=[e[0],6];this._resizeView(t),this.updateOuterPositionForNoMarginsComponent(t),this.widget.resize({w:t[0],h:t[1]})},_computeMinimumSize:function(){return[80,0]},_computeFitSize:function(){return[100,6]},validateMouseEventTarget:function(e){return this._VCWidgetDOMNode.contains(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(787),i(289)],o=i.dj.d(n,(function(e,t,i){return e([t,i],{disabled:!1,startup:function(){this.inherited(arguments),this.domNode.classList.add("vc-progressIndicator")},setValue:function(e){this.set("value",e)},setIndeterminate:function(e){this.set("indeterminate",e)},setProgressColor:function(e){this.set("color",e)},setDisabled:function(e){e?this.domNode.classList.add("vc-progressIndicatorDisabled"):this.domNode.classList.remove("vc-progressIndicatorDisabled"),this.disabled=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(481),i(5904),i(2173)],o=i.dj.d(n,(function(e,t,i,n){return e([t,n],{createView:function(){this.inherited(arguments);var e=i();this._setDijitHandle(e),this.addMouseEventListeners(this._VCWidgetDOMNode)},handleInnerSizeSet:function(e){this.updateOuterPositionForNoMarginsComponent(e),this.widget.setSize(e)},_computeMinimumSize:function(){return[16,16]},_computeFitSize:function(){return[24,24]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(661),i(289)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(){this.inherited(arguments),this.value=0,this.indeterminate=!1,this.disabled=!1,this.progressColor="#0099ff",this.size=[24,24],this.progressIndicatorWidget=t({type:"spinner",size:{customSize:this.size[0]},value:this.value}),this.domNode=document.createElement("div")},startup:function(){this.domNode.classList.add("vc-circularProgressIndicator"),this.domNode.appendChild(this.progressIndicatorWidget)},setValue:function(e){this.value=e,this.indeterminate||(this.progressIndicatorWidget.value=e)},setIndeterminate:function(e){var i;this.indeterminate=e;var n={type:"spinner",size:{customSize:this.size[0]},value:this.value,color:this.progressColor};e&&delete n.value,i=t(n),this.domNode.replaceChild(i,this.progressIndicatorWidget),this.progressIndicatorWidget=i},setSize:function(e){if(e[0]!==e[1])throw new Error("CircularProgressIndicator width not equal to height!");this.progressIndicatorWidget.size={customSize:e[0]},this.size=e},setDisabled:function(e){e?this.domNode.classList.add("vc-circularProgressIndicatorDisabled"):this.domNode.classList.remove("vc-circularProgressIndicatorDisabled"),this.disabled=e},setProgressColor:function(e){this.progressIndicatorWidget.color=e,this.progressColor=e},destroy:function(){this.domNode.parentNode.removeChild(this.domNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5906),i(381),i(298),i(295),i(482),i(404),i(2174),i(284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([i,n,o,r,a,s],{createView:function(){this.inherited(arguments);var e=new t;this._setDijitHandle(e),this._addViewListeners()},updateFontPropertiesFromModel:function(){},setComponentToPreferredSize:function(){},_Value:function(e){var t=l.toHexColorCode(e);this.widget.set("value",t)},_IconURL:function(e){this.widget.set("icon",e)},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){return[38,22]},_addViewListeners:function(){this.widget.on("change",this._handleColorPickerValueChange.bind(this))},_handleColorPickerValueChange:function(e){var t={Value:e.mwEventData.newValue};this.handleUserInteraction("ValueChanged",t,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(5907),i(289)],o=i.dj.d(n,(function(e,t,i){return e([t,i],{startup:function(){this.inherited(arguments),this.domNode.classList.add("vc-colorPicker")},setDisabled:function(e){this.set("disabled",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(450),i(30),i(796),i(1805),i(2175),i(215)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([a],{value:"#ff0000",autoColor:"",colorStyles:[],icon:"",width:"auto",height:"auto",backgroundColor:"#f5f5f5",disabled:!1,baseClass:"mwColorPickerDropDown",constructor:function(){this.domNode=document.createElement("div")},buildRendering:function(){this.inherited(arguments),this._dropDownButton=new t({hasDynamicMenu:!0}),this.own(this._dropDownButton),this._colorSwatch=document.createElement("div"),this._colorSwatch.classList.add("mwColorPickerColorSwatch"),this._dropDownButton.buttonContainerNode.appendChild(this._colorSwatch),this.domNode.appendChild(this._dropDownButton.domNode)},postCreate:function(){this.inherited(arguments),this._dropDownButton.on("dropdownclick",this._handleDropDownButtonClick.bind(this)),this._dropDownButton.on("updatelayout",this._adjustWidth.bind(this))},startup:function(){this.inherited(arguments),this._dropDownButton.startup()},_handleDropDownButtonClick:function(e){this._colorPicker||(this._colorPicker=new n({value:this.value}),this._setColorPickerAutoColor(),this._setColorPickerColorStyles(),this.own(this._colorPicker),this._tooltipDialog=this._createTooltipDialog(this._colorPicker),this._dropDownButton.set("menu",this._tooltipDialog),this.own(this._tooltipDialog),this._tooltipDialog.startup(),this._colorPicker.startup(),this._colorPicker.on("change",this._handleColorPickerValueChange.bind(this)),this._colorPicker.on("preview",this._handleColorPickerPreviewChange.bind(this)),this._colorPicker.domNode.addEventListener("keydown",this._handleColorPickerKeyDown.bind(this))),this._dropDownButton.showMenu()},_handleColorPickerValueChange:function(e){"standard"===this._colorPicker.displayView&&this._dropDownButton.closeMenu(!0)},_emitEvent:function(e,t,i){this.emit(e,{mwEventData:{propertyName:"value",oldValue:t,newValue:i}})},_handleColorPickerPreviewChange:function(e){this.emit("preview",e)},_handleColorPickerKeyDown:function(e){"custom"===this._colorPicker.displayView&&("Enter"===e.key?this._colorPicker.value!==this.value&&this._dropDownButton.closeMenu(!0):"Escape"===e.key&&(this._escapeKeyPressed=!0))},_setValueAttr:function(e){if(!this._isValidColorStyle(e)&&!r.isHexColorCode(e))throw new Error("Invalid value! Value should be a hex color code or should be defined in ColorStyleEnum.");this._setSwatchColor(e),this._set("value",e),this._setColorPickerValue()},_setAutoColorAttr:function(e){if(""!==e&&!r.isHexColorCode(e))throw new Error("Invalid value! Value should be a hex color code or an empty string.");this._set("autoColor",e),this._setColorPickerAutoColor()},_setIconAttr:function(e){this._set("icon",e),this._setDropDownIcon()},_setColorStylesAttr:function(e){this._set("colorStyles",e),this._setColorPickerColorStyles()},_setBackgroundColorAttr:function(e){this._set("backgroundColor",e),this.domNode.style.setProperty("--widget-bg-color",e);const t=r.getHoverColor(e),i=t.replace(")",", 0.9)").replace("rgb(","rgba(")+" 0px 1px 0px 0px inset",n=r.getActiveColor(e);this.domNode.style.setProperty("--widget-box-shadow-hover",i),this.domNode.style.setProperty("--widget-bg-color-hover",t),this.domNode.style.setProperty("--widget-bg-color-active",n)},_setDisabledAttr:function(e){this._set("disabled",e),this._dropDownButton.set("disabled",e)},_setWidthAttr:function(e){this._set("width",e),this._dropDownButton.set("width",e),this._adjustWidth()},_setHeightAttr:function(e){this._set("height",e),this._dropDownButton.set("height",e)},_adjustWidth:function(){if("auto"!==this.width&&"100%"!==this.width){let e=parseFloat(this._dropDownButton.buttonNode.style.width),t=parseFloat(this._dropDownButton.dropDownNode.style.width);this._dropDownButton.buttonNode.style.width=e-4+"px",this._dropDownButton.buttonNode.style["max-width"]=e-4+"px",this._dropDownButton.dropDownNode.style.width=t+4+"px",this._dropDownButton.dropDownNode.style["max-width"]=t+4+"px"}},_setSwatchColor:function(e){this._clearSwatchColor(),e===o.AUTO?this._colorSwatch.classList.add("mwColorPicker"+o.AUTO):e===o.NONE?this._colorSwatch.classList.add("mwColorPicker"+o.NONE):e===o.FLAT?this._colorSwatch.classList.add("mwColorPicker"+o.FLAT):e===o.INTERP?this._colorSwatch.classList.add("mwColorPicker"+o.INTERP):e===o.TEXTUREMAP?this._colorSwatch.classList.add("mwColorPicker"+o.TEXTUREMAP):this.domNode.style.setProperty("--swatch-bg-color",e)},_clearSwatchColor:function(){this._colorSwatch.classList.remove("mwColorPicker"+o.AUTO),this._colorSwatch.classList.remove("mwColorPicker"+o.NONE),this._colorSwatch.classList.remove("mwColorPicker"+o.FLAT),this._colorSwatch.classList.remove("mwColorPicker"+o.INTERP),this._colorSwatch.classList.remove("mwColorPicker"+o.TEXTUREMAP),this.domNode.style.setProperty("--swatch-bg-color","")},_setDropDownIcon:function(){this._dropDownButton.set("icon",this.icon),""===this.icon?this.domNode.classList.remove("mwColorPickerDropDownWithIcon"):this.domNode.classList.add("mwColorPickerDropDownWithIcon")},_createTooltipDialog:function(e){return new i({content:e,class:"mwColorPickerTooltipDialog",onOpen:function(){"custom"===this._colorPicker.displayView?this._colorPicker.customButton.focusNode.focus():this._colorPicker.standardButton.focusNode.focus()}.bind(this),onClose:function(){this._updateValue(),this._updateRecentlyUsedColors(),this._escapeKeyPressed=!1}.bind(this)})},_updateValue:function(){let e=this.value,t=this._colorPicker.value;e!==t&&(this._escapeKeyPressed?this._setColorPickerValue():(this.set("value",t),this._emitEvent("change",e,t)))},_updateRecentlyUsedColors:function(){if(!this._escapeKeyPressed&&!this._isValidColorStyle(this.value)){const e=this._colorPicker.get("recentlyUsedColors");e.splice(e.indexOf(this.value),1),e.unshift(this.value),this._colorPicker.set("recentlyUsedColors",e)}},_isValidColorStyle:function(e){return e===o.AUTO||e===o.NONE||e===o.FLAT||e===o.INTERP||e===o.TEXTUREMAP},_setColorPickerValue:function(){this._colorPicker&&this._colorPicker.set("value",this.value)},_setColorPickerColorStyles:function(){this._colorPicker&&(this._colorPicker.set("showAuto",this.colorStyles.includes(o.AUTO)),this._colorPicker.set("showNone",this.colorStyles.includes(o.NONE)),this._colorPicker.set("showFlat",this.colorStyles.includes(o.FLAT)),this._colorPicker.set("showInterp",this.colorStyles.includes(o.INTERP)),this._colorPicker.set("showTexturemap",this.colorStyles.includes(o.TEXTUREMAP)))},_setColorPickerAutoColor:function(){this._colorPicker&&this._colorPicker.set("autoColor",this.autoColor)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(381),i(5909),i(404),i(298),i(284),i(295),i(287),i(349),i(219),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([t,n,o,a],{constructor:function(){c.start()},createView:function(){this.inherited(arguments);let e=new i;e.on("change",this._handlePasswordChanged.bind(this)),this._setDijitHandle(e)},getFontStyledDomNode:function(){return this.widget.inputNode},_handlePasswordChanged:function(e){let t=d.generateUuid();c.publish(this.WidgetData.getProperty("ChannelID"),{token:t,password:e.mwEventData.newValue}),this.handleUserInteraction("PasswordEntered",{Token:t})},_computeMinimumSize:function(){return[80,0]},_computeFitSize:function(){var e=s.getWidgetFontStyleMap(this.getPeerNode()),t=s.getTextPosition("WWWWWWWWWW",e),i=[t.w,t.h];return i[0]+=l.TEXT_BOX.OVERALL_WIDTH_PADDING,i[1]+=l.TEXT_BOX.OVERALL_HEIGHT_PADDING,i[1]+=4,i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(258),i(1150),i(479),i(504),i(358),i(374),i(289),i(837)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([t,i,n,o,r,a,s],{backgroundColor:"rgb(255, 255, 255)",buildRendering:function(){this.inherited(arguments),this.inlineEditorNode=this.inputNode,this.backgroundColorNode=this.domNode;let e=this._getNodeToApplyFontProperties();e&&(e.style.backgroundColor="rgba(0, 0, 0, 0)"),this.inputNode.setAttribute("type","password")},_getPreferredSizeAttr:function(){return l.calculateInputPreferredSize(this.inputNode,5,10)},_getNodeToApplyFontProperties:function(){return this.inputNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(1509),i(533),i(1510),i(298),i(5911),i(5912),i(5913),i(5914),i(287),i(295)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([i,n,o,r,u],{getSvgFileName:function(){var e=this.WidgetData.getProperty("Orientation");switch(e){case"north":return"SemicircularGauge_north";case"east":return"SemicircularGauge_east";case"south":return"SemicircularGauge_south";case"west":return"SemicircularGauge_west";default:throw new Error("unrecognized orientation of semicircular gauge: "+e)}},getSVGFileText:function(e){switch(e){case"SemicircularGauge_east":return a;case"SemicircularGauge_west":return s;case"SemicircularGauge_south":return l;case"SemicircularGauge_north":return c;default:throw new Error("unrecognized svgtext of "+e)}},_setDefaultWidth:function(){var e=this.WidgetData.getProperty("Orientation");this._defaultSVGWidth="north"!==e&&"south"!==e?65:120},_setDefaultHeight:function(){var e=this.WidgetData.getProperty("Orientation");this._defaultSVGHeight="north"!==e&&"south"!==e?120:65},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth(),this._setDefaultHeight();var e,i,n,o=this.SVGDocument,r=-10,a=50,s=5,l=180;switch(this.orientation=this.WidgetData.getProperty("Orientation"),this.orientation){case"north":e=0,s=-3.2,i=t.position(this.SVGDocument.getElementById("RadiusLine")).h,n=t.position(this.SVGDocument.getElementById("RadiusLine")).h;break;case"east":e=90,s=48,a=51,i=t.position(this.SVGDocument.getElementById("RadiusLine")).w,n=t.position(this.SVGDocument.getElementById("RadiusLine")).w;break;case"south":e=180,s=-2.1,i=t.position(this.SVGDocument.getElementById("RadiusLine")).h,n=t.position(this.SVGDocument.getElementById("RadiusLine")).h;break;case"west":e=-90,s=48,a=51,i=t.position(this.SVGDocument.getElementById("RadiusLine")).w,n=t.position(this.SVGDocument.getElementById("RadiusLine")).w;break;default:throw new Error("unrecognized orientation of semicircular gauge: "+this.orientation)}var c=5,d=7,u=i-c,h=n-d;this.initializeConstants(e,l,o,a,r,s,void 0,u,i,h,n)},fineTuneLabelPositions:function(e,t,i,n,o){var r,a,s,l;return e>-90&&e<-45||e>270&&e<315?(r=i-3,a=n-t.h/2-3):-45===e||315===e?(r=i-1,a=n-t.h/2-1):e>-45&&e<0||e>315&&e<360?(r=i,a=n-t.h/2):0===e||360===e?(r=i-0,a="south"===this.orientation?n-.25*t.h:"north"===this.orientation?n-.65*t.h:n-t.h/2):e>0&&e<45?(r=i-0,a=n-t.h/1.75+2):45===e?(r=i-1,a=n-t.h/1.75+3):e>45&&e<90?(r=i-3,a=n-1):90===e?("west"===this.orientation?(s=6-t.w,l=-.65*t.w,r=Math.min(s,l)):"east"===this.orientation?(s=-6,l=-.35*t.w,r=Math.max(s,l)):r=i-t.w/2,a=n-2):e>90&&e<135?(r=i-t.w+5,a=n-1):135===e?(r=i-t.w+2,a=n-t.h/1.75+3):e>135&&e<180?(r=i-t.w+0,a=n-t.h/1.75+2):180===e?(r=i-t.w,a="south"===this.orientation?n-.25*t.h:"north"===this.orientation?n-.65*t.h:n-t.h/2):e>180&&e<225?(r=i-t.w+0,a=n-t.h/2):225===e?(r=i-t.w+2,a=n-t.h/2-1):e>225&&e<270?(r=i-t.w+5,a=n-t.h/2-3):-90!==e&&270!==e||("west"===this.orientation?(s=6-t.w,l=-.65*t.w,r=Math.min(s,l)):"east"===this.orientation?(s=-6,l=-.35*t.w,r=Math.max(s,l)):r=i-t.w/2,a=n-t.h/2-4),{left:r+"px",top:a+"px"}},_computeMinimumSize:function(){var e=this.getPeerNode().getProperty("Orientation");return this._getDefaultSize(e)},_getDefaultSize:function(e){return"west"===e||"east"===e?[65,120]:[120,65]},_computeFitSize:function(){var e=this.getPeerNode().getProperty("Orientation");return this._getDefaultSize(e)},_editPropertiesAffectingFitSize:function(e){return e.push("Orientation"),e}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="65px" height="120px" viewBox="0 0 65 120" enable-background="new 0 0 65 120" xml:space="preserve"><g id="SemiCircularGaugeOuterOutline"><g><path id="BackgroundColorNode" fill="#FFFFFF" d="M0.3,119.7V0.3H5c32.9,0,59.8,26.8,59.8,59.8C64.8,93,38,119.8,5,119.8H0.3V119.7z"></path><path fill="#C7C8CA" d="M4.9,0.5c32.8,0,59.5,26.7,59.5,59.5s-26.7,59.5-59.5,59.5H0.5V0.5H4.9 M4.9,0H0v120h4.9 c33.1,0,60-26.9,60-60S38.1,0,4.9,0L4.9,0z"></path></g></g><g id="Scale_Color"></g><g id="SemiCircularGaugeInnerOutline"><path fill="none" stroke="#6D6E70" d="M5.0,111c28.3,0,51.3-22.8,51.3-51S33.5,9,5.0,9"></path></g><g id="Major_Ticks" fill="none" stroke="#6D6E70"><line x1="5.7" y1="114.2" x2="5.7" y2="5.2"></line><line x1="-16.1" y1="89.7" x2="37.8" y2="15.6"></line><line x1="-30.6" y1="71.5" x2="57.6" y2="42.9"></line><line x1="-29.5" y1="48.3" x2="57.6" y2="76.6"></line><line x1="-14.6" y1="31.8" x2="37.8" y2="103.8"></line></g><g id="Minor_Ticks" fill="none" stroke="#6D6E70" stroke-width="0.5"><line x1="-18.5" y1="60.2" x2="70.6" y2="60.2"></line><line x1="-12" y1="73.4" x2="52.6" y2="26.4"></line><line x1="-2.2" y1="85.6" x2="23.8" y2="5.5"></line><line x1="-20.9" y1="41.4" x2="51.6" y2="94.1"></line><line x1="-4" y1="32.3" x2="22.8" y2="115"></line></g><g id="Needle"><polygon fill="#E04145" points="4.5,59.8 5.5,17.2 5.5,17.2 7.1,59.8"></polygon></g><path id="inner_shadow" opacity="0.15" fill="#231F20" enable-background="new " d="M4.8,0.3c32.8,0,59.5,26.7,59.5,59.5 c0,0.2,0,0.3,0,0.5C64,27.7,37.4,1.3,4.8,1.3H0.4v-1H4.8z"></path><g id="tooManyTicksErrorMessage" visibility="hidden"><g display="inline"><path fill="#FFFFFF" d="M0.3,119.7V0.3h4.7c32.9,0,59.8,26.8,59.8,59.8c0,32.9-26.8,59.7-59.8,59.7H0.3z"></path><path fill="#C7C8CA" d="M4.9,0.5c32.8,0,59.5,26.7,59.5,59.5s-26.7,59.5-59.5,59.5H0.5V0.5H4.9 M4.9,0H0v120h4.9 c33.1,0,60-26.9,60-60S38.1,0,4.9,0L4.9,0z"></path></g><path display="inline" fill="none" stroke="#A7A9AC" d="M5.2,111c28.3,0,51.3-22.8,51.3-51S33.5,9,5.2,9"></path><line display="inline" fill="none" stroke="#A7A9AC" x1="5.7" y1="111" x2="5.7" y2="104.5"></line><line display="inline" fill="none" stroke="#A7A9AC" x1="5.7" y1="15.6" x2="5.7" y2="9"></line><text transform="matrix(1 0 0 1 4.7847 60.0002)" display="inline"><tspan x="0" y="0" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">Too many</tspan><tspan x="12.2" y="11" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">ticks</tspan></text></g><g id="Center_Point" visibility="hidden"><circle id="Center" display="inline" fill="#D1D3D4" cx="5.5" cy="60" r="0.1"></circle></g><g id="Radius" visibility="hidden"><line id="RadiusLine" display="inline" fill="none" stroke="#D1D3D4" stroke-width="0.25" stroke-miterlimit="10" x1="56.5" y1="60" x2="5.5" y2="60"></line></g></svg>'},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="65px" height="120px" viewBox="0 0 65 120" enable-background="new 0 0 65 120" xml:space="preserve"><g id="SemiCircularGaugeOuterOutline"><g><path id="BackgroundColorNode" fill="#FFFFFF" d="M60.1,119.8c-33,0-59.8-26.9-59.8-59.8S27.1,0.3,60.1,0.3h4.7v119.5H60.1z"></path><path fill="#C7C8CA" d="M64.5,0.5v119h-4.4C27.3,119.5,0.6,92.8,0.6,60S27.3,0.5,60.1,0.5H64.5 M65,0h-4.9C27,0,0.1,26.9,0.1,60 s26.9,60,60,60H65V0L65,0z"></path></g></g><g id="Scale_Color"></g><g id="SemiCircularGaugeInnerOutline"><path fill="none" stroke="#6D6E70" d="M60.0,111C31.5,111,8.6,88.2,8.6,60S31.5,9,60.0,9"></path></g><g id="Major_Ticks" fill="none" stroke="#6D6E70"><line x1="59.3" y1="114.2" x2="59.3" y2="5.2"></line><line x1="81.1" y1="89.7" x2="27.2" y2="15.6"></line><line x1="95.6" y1="71.5" x2="7.4" y2="42.9"></line><line x1="94.5" y1="48.3" x2="7.4" y2="76.6"></line><line x1="79.6" y1="31.8" x2="27.2" y2="103.8"></line></g><g id="Minor_Ticks" fill="none" stroke="#6D6E70" stroke-width="0.5"><line x1="87.5" y1="60.2" x2="-1.6" y2="60.2"></line><line x1="77" y1="73.4" x2="12.4" y2="26.4"></line><line x1="67.2" y1="85.6" x2="41.2" y2="5.5"></line><line x1="85.9" y1="41.4" x2="13.4" y2="94.1"></line><line x1="69" y1="32.3" x2="42.2" y2="115"></line></g><g id="Needle"><polygon fill="#E04145" points="60.5,61.2 59.6,103.8 59.5,103.8 57.9,61.2"></polygon></g><path id="inner_shadow" opacity="0.15" fill="#231F20" enable-background="new " d="M60.2,0.3C27.4,0.3,0.7,27,0.7,59.8 c0,0.2,0,0.3,0,0.5c0.3-32.6,26.9-59,59.5-59h4.4v-1C64.6,0.3,60.2,0.3,60.2,0.3z"></path><g id="tooManyTicksErrorMessage" visibility="hidden"><g display="inline"><path fill="#FFFFFF" d="M60.1,119.8C27.1,119.8,0.3,92.9,0.3,60S27.1,0.3,60.1,0.3h4.7v119.5H60.1z"></path><path fill="#C7C8CA" d="M64.5,0.5v119h-4.4C27.3,119.5,0.6,92.8,0.6,60S27.3,0.5,60.1,0.5H64.5 M65,0h-4.9c-33.1,0-60,26.9-60,60 s26.9,60,60,60H65V0L65,0z"></path></g><path display="inline" fill="none" stroke="#A7A9AC" d="M59.8,111C31.5,111,8.6,88.2,8.6,60S31.5,9,59.8,9"></path><line display="inline" fill="none" stroke="#A7A9AC" x1="59.3" y1="111" x2="59.3" y2="104.5"></line><line display="inline" fill="none" stroke="#A7A9AC" x1="59.3" y1="15.6" x2="59.3" y2="9"></line><text transform="matrix(1 0 0 1 12 60.0002)" display="inline"><tspan x="0" y="0" fill="#E04145" font-family="&#x27;Helvetica Neue&#x27;, Helvetica, Arial, sans-serif" font-size="10">Too many</tspan><tspan x="12.2" y="11" fill="#E04145" font-family="&#x27;Helvetica Neue&#x27;, Helvetica, Arial, sans-serif" font-size="10">ticks</tspan></text></g><g id="Center_Point" visibility="hidden"><circle id="Center" display="inline" fill="#D1D3D4" cx="59.5" cy="60" r="0.1"></circle></g><g id="Radius" visibility="hidden"><line id="RadiusLine" display="inline" fill="none" stroke="#D1D3D4" stroke-width="0.25" stroke-miterlimit="10" x1="8.6" y1="60" x2="59.6" y2="60"></line></g></svg>'},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="120px" height="65px" viewBox="0 0 120 65" enable-background="new 0 0 120 65" xml:space="preserve"><g id="SemiCircularGaugeOuterOutline"><g><path id="BackgroundColorNode" fill="#FFFFFF" d="M60,64.4C27.1,64.4,0.2,37.7,0.2,4.8V0h119.5v4.7C119.8,37.8,92.9,64.4,60,64.4z"></path><path fill="#C7C8CA" d="M119.5,0.5v4.4c0,32.8-26.7,59.5-59.5,59.5S0.5,37.7,0.5,4.9V0.5H119.5 M120,0H0v4.9c0,33.1,26.9,60,60,60 s60-26.9,60-60V0L120,0z"></path></g></g><g id="Scale_Color"></g><g id="SemiCircularGaugeInnerOutline"><path fill="none" stroke="#6D6E70" d="M8.9,5.0c0,28.3,22.8,51.3,51,51.3s51-22.9,51-51.3"></path></g><g id="Major_Ticks" fill="none" stroke="#6D6E70"><line x1="5.8" y1="5.7" x2="114.8" y2="5.7"></line><line x1="30.3" y1="-16.1" x2="104.4" y2="37.6"></line><line x1="48.5" y1="-30.6" x2="77.1" y2="57.4"></line><line x1="71.7" y1="-29.6" x2="43.4" y2="57.4"></line><line x1="88.2" y1="-14.8" x2="16.2" y2="37.6"></line></g><g id="Minor_Ticks" fill="none" stroke="#6D6E70" stroke-width="0.5"><line x1="59.8" y1="-22.5" x2="59.8" y2="66.4"></line><line x1="46.6" y1="-12" x2="93.6" y2="52.3"></line><line x1="34.4" y1="-2.4" x2="114.5" y2="23.7"></line><line x1="78.6" y1="-21" x2="25.9" y2="51.3"></line><line x1="87.7" y1="-4.1" x2="5" y2="22.7"></line></g><rect id="inner_shadow" x="0.5" y="0.2" opacity="0.15" fill="#231F20" enable-background="new " width="119" height="1"></rect><g id="Needle"><polygon fill="#E04145" points="60.2,4.4 103.5,5.6 103.5,5.6 60.2,7"></polygon></g><g id="tooManyTicksErrorMessage" visibility="hidden"><g display="inline"><path fill="#FFFFFF" d="M60,64.7C27.1,64.7,0.2,37.9,0.2,5V0.3h119.5V5C119.8,37.9,92.9,64.7,60,64.7z"></path><path fill="#C7C8CA" d="M119.5,0.6V5c0,32.8-26.7,59.5-59.5,59.5S0.5,37.8,0.5,5V0.6H119.5 M120,0.1H0V5c0,33.1,26.9,60,60,60 s60-26.9,60-60V0.1L120,0.1z"></path></g><path display="inline" fill="none" stroke="#A7A9AC" d="M9,5.2c0,28.3,22.8,51.3,51,51.3s51-22.9,51-51.3"></path><line display="inline" fill="none" stroke="#A7A9AC" x1="9" y1="5.8" x2="15.5" y2="5.8"></line><line display="inline" fill="none" stroke="#A7A9AC" x1="104.4" y1="5.8" x2="111" y2="5.8"></line><text transform="matrix(1 0 0 1 23.1289 22.0577)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">Too many ticks</text></g></g><g id="Center_Point" visibility="hidden"><circle id="Center" display="inline" fill="#D1D3D4" cx="60" cy="5.5" r="0.1"></circle></g><g id="Radius" visibility="hidden"><line id="RadiusLine" display="inline" fill="none" stroke="#D1D3D4" stroke-width="0.25" stroke-miterlimit="10" x1="60" y1="56.4" x2="60" y2="5.4"></line></g></svg>'},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="120px" height="65px" viewBox="0 0 120 65" enable-background="new 0 0 120 65" xml:space="preserve"><g id="SemiCircularGaugeOuterOutline"><g><path id="BackgroundColorNode" fill="#FFFFFF" d="M0.2,64.7V60C0.2,27.1,27.1,0.3,60,0.3s59.8,26.8,59.8,59.8v4.7L0.2,64.7L0.2,64.7z"></path><path fill="#C7C8CA" d="M60,0.5c32.8,0,59.5,26.7,59.5,59.5v4.4H0.5V60C0.5,27.2,27.2,0.5,60,0.5 M60,0C26.9,0,0,26.9,0,60v5h120 v-5C120,26.9,93.1,0,60,0L60,0z"></path></g></g><g id="Scale_Color"></g><g id="SemiCircularGaugeInnerOutline"><path fill="none" stroke="#6D6E70" d="M9.1,59.7C9,31.5,31.8,8.5,60,8.5s51,22.9,51,51.2"></path></g><g id="Major_Ticks" fill="none" stroke="#6D6E70"><line x1="5.8" y1="59.3" x2="114.8" y2="59.3"></line><line x1="30.3" y1="81" x2="104.4" y2="27.2"></line><line x1="48.5" y1="95.5" x2="77.1" y2="7.4"></line><line x1="71.7" y1="94.5" x2="43.4" y2="7.4"></line><line x1="88.2" y1="79.6" x2="16.2" y2="27.2"></line></g><path id="inner_shadow" opacity="0.15" fill="#231F20" enable-background="new " d="M60,1.3c32.8,0,59.4,26.5,60,59.4l0,0 c0-33.3-26.9-60.4-60-60.4S0,27.4,0,60.7l0,0C0.6,27.8,27.2,1.3,60,1.3z"></path><g id="Minor_Ticks" fill="none" stroke="#6D6E70" stroke-width="0.5"><line x1="59.8" y1="87.5" x2="59.8" y2="-1.6"></line><line x1="46.6" y1="77" x2="93.6" y2="12.4"></line><line x1="34.4" y1="67.2" x2="114.5" y2="41.2"></line><line x1="78.6" y1="85.9" x2="25.9" y2="13.4"></line><line x1="87.7" y1="69" x2="5" y2="42.2"></line></g><g id="Needle"><polygon fill="#E04145" points="59.8,57.9 16.5,59.3 16.5,59.3 59.8,60.5"></polygon></g><g id="tooManyTicksErrorMessage" visibility="hidden"><g display="inline"><path fill="#FFFFFF" d="M0.2,64.7V60C0.2,27.1,27.1,0.3,60,0.3s59.8,26.8,59.8,59.8v4.7H0.2z"></path><path fill="#C7C8CA" d="M60,0.5c32.8,0,59.5,26.7,59.5,59.5v4.4H0.5V60C0.5,27.2,27.2,0.5,60,0.5 M60,0C26.9,0,0,26.9,0,60V65h120 V60C120,26.9,93.1,0,60,0L60,0z"></path></g><path display="inline" fill="none" stroke="#A7A9AC" d="M9,59.8C9,31.5,31.8,8.5,60,8.5s51,22.9,51,51.3"></path><line display="inline" fill="none" stroke="#A7A9AC" x1="9" y1="59.3" x2="15.5" y2="59.3"></line><line display="inline" fill="none" stroke="#A7A9AC" x1="104.4" y1="59.3" x2="111" y2="59.3"></line><text transform="matrix(1 0 0 1 23.1289 44.9655)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">Too many ticks</text></g><g id="Center_Point" visibility="hidden"><circle id="Center" display="inline" fill="#D1D3D4" cx="60" cy="59.2" r="0.1"></circle></g><g id="Radius" visibility="hidden"><line id="RadiusLine" display="inline" fill="none" stroke="#D1D3D4" stroke-width="0.25" stroke-miterlimit="10" x1="59.8" y1="8.6" x2="59.8" y2="59.6"></line></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(217),i(1509),i(533),i(287),i(298),i(295),i(5916)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([i,n,r,a],{_setDefaultWidth:function(){this._defaultSVGWidth=120},_setDefaultHeight:function(){this._defaultSVGHeight=120},getSvgFileName:function(){return"CircularGauge"},getSVGFileText:function(e){return s},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth(),this._setDefaultHeight();var e=this.SVGDocument,i=0,n=-10,o=-2.25,r=4,a=7,s=t.position(this.SVGDocument.getElementById("RadiusLine")).h,l=s-r,c=t.position(this.SVGDocument.getElementById("RadiusLine")).h,d=c-a;this.initializeConstants(-60,300,e,i,n,o,void 0,l,s,d,c)},getTickLabelTrackLength:function(e){return 2*Math.PI*(this.labelRadius*this.scalingFactor-e*(2/3))*this.angularSpan/360},fineTuneLabelPositions:function(e,t,i,n,o){var r,a;return-60===e||e>-60&&e<-45?(r=i-5,a=n-t.h/2-3):-45===e?(r=i+2,a=n-t.h/2):e>-45&&e<0||0===e?(r=i,a=n-t.h/2):e>0&&e<45?(r=i,a=n-t.h/1.75+2):45===e?(r=i+2,a=n-t.h/1.75+4):e>45&&e<90?(r=i-3,a=n-2):90===e?(r=i-t.w/2,a=n-2):e>90&&e<135?(r=i-t.w+3,a=n-2):135===e?(r=i-t.w,a=n-t.h/1.75+4):e>135&&e<180?(r=i-t.w,a=n-t.h/1.75+2):180===e||e>180&&e<225||225===e?(r=i-t.w,a=n-t.h/2):(e>225&&e<240||240===e)&&(r=i-t.w+3,a=n-t.h/2-3),{left:r+"px",top:a+"px"}},_computeMinimumSize:function(){return this._getDefaultSize()},_getDefaultSize:function(){return[120,120]},_computeFitSize:function(){return this._getDefaultSize()},_editPropertiesAffectingFitSize:function(e){return e}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="120px" height="120px" viewBox="0 0 120 120" enable-background="new 0 0 120 120" xml:space="preserve"><g id="CircularGaugeOuterOutline"><g><path id="BackgroundColorNode" fill="#FFFFFF" d="M60,119.8C27.1,119.8,0.2,92.9,0.2,60S27.1,0.2,60,0.2S119.8,27,119.8,60S92.9,119.8,60,119.8z"></path><path fill="#C7C8CA" d="M60,0.5c32.8,0,59.5,26.7,59.5,59.5S92.8,119.5,60,119.5S0.5,92.8,0.5,60S27.2,0.5,60,0.5 M60,0 C26.9,0,0,26.9,0,60s26.9,60,60,60s60-26.9,60-60S93.1,0,60,0L60,0z"></path></g></g><g id="Scale_Color">\x3c!-- Scale Colors are added to this group. This is empty at the beginning because there are no scale colors when a gauge is first created. DO NOT MOVE THIS ELEMENT. --\x3e</g><g id="Major_Ticks" fill="none" stroke="#6D6E70"><line x1="103.6" y1="59.2" x2="111.3" y2="59.2"></line><line x1="8.7" y1="59.2" x2="16.4" y2="59.2"></line><line x1="5.9" y1="59.2" x2="114.8" y2="59.2"></line><line x1="5.9" y1="59.2" x2="114.8" y2="59.2"></line><line x1="33.1" y1="106.3" x2="87.6" y2="12"></line><line x1="87.6" y1="106.3" x2="33.1" y2="12"></line></g><g id="Minor_Ticks" fill="none" stroke="#6D6E70" stroke-width="0.5"><line x1="13.7" y1="85.7" x2="105.5" y2="32.7"></line><line x1="59.6" y1="103.3" x2="59.6" y2="6.2"></line><line x1="105.5" y1="85.7" x2="13.7" y2="32.7"></line></g><g id="Layer_10"></g><polygon id="Needle" fill="#E04145" points="58.3,59.2 38.7,96.9 38.5,97.4 61.4,60.9"></polygon><path id="inner_circle" fill="#6D6E70" d="M60,8.7C31.7,8.7,8.7,31.7,8.7,60c0,19.1,10.4,35.8,26,44.6l0.5-0.9 C20,95,9.7,78.7,9.7,60C9.7,32.3,32.3,9.7,60,9.7s50.3,22.6,49.8,50.9c0,18.4-10,34.6-24.9,43.4l0.5,0.9 c15.2-8.9,25.4-25.4,25.4-44.3C111.3,31.7,88.3,8.7,60,8.7z"></path><path id="inner_shadow" opacity="0.15" fill="#231F20" enable-background="new " d="M60,1.2c33,0,59.7,26.6,60,59.5 c0-0.2,0-0.3,0-0.5c0-33.1-26.9-60-60-60S0,27.1,0,60.2c0,0.2,0,0.3,0,0.5C0.3,27.8,27,1.2,60,1.2z"></path><g id="tooManyTicksErrorMessage" visibility="hidden"><g display="inline"><path fill="#FFFFFF" d="M60,119.8C27.1,119.8,0.2,92.9,0.2,60S27.1,0.2,60,0.2S119.8,27,119.8,60S92.9,119.8,60,119.8z"></path><path fill="#C7C8CA" enable-background="new " d="M60,8.7C31.7,8.7,8.7,31.7,8.7,60c0,19.1,10.4,35.8,26,44.6l0.5-0.9 C20,95,9.7,78.7,9.7,60C9.7,32.3,32.3,9.7,60,9.7s50.3,22.6,49.8,50.9c0,18.4-10,34.6-24.9,43.4l0.5,0.9 c15.2-8.9,25.4-25.4,25.4-44.3C111.3,31.7,88.3,8.7,60,8.7z"></path><line display="inline" fill="none" stroke="#A7A9AC" x1="38.14990234375" y1="97.84547929096664" x2="34.6499023474999" y2="103.90765711745772"></line><line display="inline" fill="none" stroke="#A7A9AC" x1="81.85009765625001" y1="97.8454792906664" x2="85.35009765625003" y2="103.9076571174577"></line></g><g display="inline"><text transform="matrix(1 0 0 1 28.3789 61)" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">Too many ticks</text></g></g><g id="Center_Point" visibility="hidden"><g display="inline"><circle id="Center" fill="#D1D3D4" cx="60" cy="60" r="0.2"></circle></g></g><g id="Radius" visibility="hidden"><line id="RadiusLine" display="inline" fill="none" stroke="#A7A9AC" stroke-width="0.25" x1="60" y1="60" x2="60" y2="9.3"></line></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(217),i(1509),i(533),i(1510),i(298),i(287),i(295),i(5918),i(5919),i(5920),i(5921)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([i,n,o,r,s],{getSvgFileName:function(){var e=this.WidgetData.getProperty("Orientation");switch(e){case"northeast":return"NinetyDegreeGauge_northeast";case"southeast":return"NinetyDegreeGauge_southeast";case"northwest":return"NinetyDegreeGauge_northwest";case"southwest":return"NinetyDegreeGauge_southwest";default:throw new Error("unrecognized orientation of NinetyDegreeGauge: "+e)}},getSVGFileText:function(e){switch(e){case"NinetyDegreeGauge_northeast":return l;case"NinetyDegreeGauge_southeast":return d;case"NinetyDegreeGauge_northwest":return c;case"NinetyDegreeGauge_southwest":return u;default:throw new Error("unrecognized svgtext of "+e)}},_setDefaultWidth:function(){this._defaultSVGWidth=60},_setDefaultHeight:function(){this._defaultSVGHeight=60},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth(),this._setDefaultHeight();var e,i=this.SVGDocument,n=-8,o=2,r=-2.45,a=90;switch(this.orientation=this.WidgetData.getProperty("Orientation"),this.orientation){case"northeast":e=90;break;case"northwest":e=0;break;case"southeast":e=180;break;case"southwest":e=-90;break;default:throw new Error("unrecognized orientation of ninety gauge: "+this.orientation)}var s=5,l=6.5,c=t.position(this.SVGDocument.getElementById("RadiusLine")).h,d=c-s,u=t.position(this.SVGDocument.getElementById("RadiusLine")).h,h=u-l;this.initializeConstants(e,a,i,o,n,r,void 0,d,c,h,u)},fineTuneLabelPositions:function(e,t,i,n,o){var r,a,s,l;return e>-90&&e<-45?(r=i-5,a=n-t.h/2-4):-45===e?(r=i-2,a=n-t.h/2-2):e>-45&&e<0?(r=i-1,a=n-t.h/2):0===e?(r=i,a="northwest"===this.orientation?n-.75*t.h:"southwest"===this.orientation?n-.25*t.h:n-t.h/2):e>0&&e<45?(r=i-1,a=n-4):45===e?(r=i-2,a=n-0):e>45&&e<90?(r=i-5,a=n-0):90===e?("northwest"===this.orientation?(s=6-t.w,l=-.65*t.w,r=Math.min(s,l)):"northeast"===this.orientation?(s=-6,l=-.35*t.w,r=Math.max(s,l)):r=i-t.w/2,a=n-2):e>90&&e<135?(r=i-t.w+5,a=n-0):135===e?(r=i-t.w+2,a=n-0):e>135&&e<180?(r=i-t.w,a=n-4):180===e?(r=i-t.w,a="northeast"===this.orientation?n-.75*t.h:"southeast"===this.orientation?n-.25*t.h:n-t.h/2):e>180&&e<225?(r=i-t.w,a=n-t.h/2):225===e?(r=i-t.w+2,a=n-t.h/2-2):e>225&&e<270?(r=i-t.w+5,a=n-t.h/2-4):-90!==e&&270!==e||("southwest"===this.orientation?(s=6-t.w,l=-.65*t.w,r=Math.min(s,l)):"southeast"===this.orientation?(s=-6,l=-.35*t.w,r=Math.max(s,l)):r=i-t.w/2,a=n-t.h/2-4),{left:r+"px",top:a+"px"}},_computeMinimumSize:function(){return this._getDefaultSize()},_getDefaultSize:function(){return[90,90]},_computeFitSize:function(){return this._getDefaultSize()},_editPropertiesAffectingFitSize:function(e){return e}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px" height="60px" viewBox="0 0 60 60" enable-background="new 0 0 60 60" xml:space="preserve"><g id="NinetyGaugeOuterOutline"><g><path id="BackgroundColorNode" fill="#FFFFFF" d="M0.3,59.9V0.3h7.5c28.7,0,52,23.4,52,52.2v7.4H0.3z"></path><path fill="#C7C8CA" d="M7.7,0.5c28.6,0,51.8,23.3,51.8,51.9v7.2h-59V0.5H7.7 M7.7,0H0v60.1h60v-7.7C60,23.4,36.6,0,7.7,0L7.7,0z"></path></g></g><g id="Scale_Color"></g><g id="NinetyGaugeInnerOutline"><path fill="none" stroke="#6D6E70" d="M52.1,53.3c0-25.5-21.5-46-46.2-45.8"></path></g><g id="Major_Ticks" fill="none" stroke="#6D6E70"><line x1="70.5" y1="52.9" x2="-3.6" y2="52.9"></line><line x1="6.5" y1="57.9" x2="6.5" y2="-2.1"></line><line x1="1.6" y1="57.9" x2="54.8" y2="4.6"></line></g><g id="Minor_Ticks" fill="none" stroke="#6D6E70" stroke-width="0.5"><line x1="-15" y1="61.9" x2="52" y2="33.5"></line><line x1="-0.5" y1="71.5" x2="25.5" y2="7.4"></line></g><polygon id="Needle" fill="#E04145" points="7.3,53 6.4,14.7 6.3,14.7 5.5,53"></polygon><g id="tooManyTicksErrorMessage" visibility="hidden"><g display="inline"><path fill="#FFFFFF" d="M0.3,59.8V0.3h7.5c28.7,0,52,23.5,52,52v7.5H0.3z"></path><path fill="#C7C8CA" d="M7.8,0.5c28.5,0,51.7,23.2,51.7,51.8v7.2h-59v-59H7.8 M7.8,0H0v60h60v-7.8C60,23.5,36.5,0,7.8,0L7.8,0z"></path></g><path display="inline" fill="none" stroke="#A7A9AC" d="M52,53.5c0-25.5-20.5-46-45.7-46"></path><line display="inline" fill="none" stroke="#A7A9AC" x1="52" y1="52.8" x2="45.5" y2="52.8"></line><line display="inline" fill="none" stroke="#A7A9AC" x1="6.6" y1="14.2" x2="6.6" y2="7"></line><text transform="matrix(1 0 0 1 1.0788 39.6646)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">Too many</text><text transform="matrix(1 0 0 1 13.2783 50.6646)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">ticks</text></g><g id="Center_Point" visibility="hidden"><circle id="Center" display="inline" fill="#D1D3D4" cx="6.4" cy="52.8" r="0.5"></circle></g><g id="Radius" visibility="hidden"><line id="RadiusLine" display="inline" fill="none" stroke="#D1D3D4" stroke-width="0.25" stroke-miterlimit="10" x1="6.2" y1="53" x2="6.2" y2="7.5"></line></g><path opacity="0.15" fill="#231F20" enable-background="new " d="M7.9,0.3H0.5v1h7.4c28.4,0,51.5,23.4,51.5,52.2v-1 C59.4,23.7,36.3,0.3,7.9,0.3z"></path></svg>'},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px" height="60px" viewBox="0 0 60 60" enable-background="new 0 0 60 60" xml:space="preserve"><g id="NinetyGaugeOuterOutline"><g><path id="BackgroundColorNode" fill="#FFFFFF" d="M0.2,59.9v-7.4c0-28.8,23.3-52.2,52-52.2h7.5v59.6C59.7,59.9,0.2,59.9,0.2,59.9z"></path><path fill="#C7C8CA" d="M59.5,0.5v59.1h-59v-7.2c0-28.7,23.2-51.9,51.8-51.9L59.5,0.5 M60,0h-7.7C23.4,0,0,23.4,0,52.4v7.7h60V0 L60,0z"></path></g></g><g id="Scale_Color"></g><g id="NinetyGaugeInnerOutline"><path fill="none" stroke="#6D6E70" d="M7.9,53.3c0-25.5,20.5-45.8,46.2-46"></path></g><g id="Major_Ticks" fill="none" stroke="#6D6E70"><line x1="-10.5" y1="52.9" x2="63.6" y2="52.9"></line><line x1="53.5" y1="57.9" x2="53.5" y2="-2.1"></line><line x1="58.4" y1="57.9" x2="5.2" y2="4.6"></line></g><g id="Minor_Ticks" fill="none" stroke="#6D6E70" stroke-width="0.5"><line x1="62" y1="74.9" x2="33.6" y2="7.9"></line><line x1="71.6" y1="60.4" x2="7.5" y2="34.4"></line></g><g id="Needle"><polygon fill="#E04145" points="53.6,53.8 15.2,52.9 15.2,52.8 53.6,52"></polygon></g><g id="tooManyTicksErrorMessage" visibility="hidden"><g display="inline"><path fill="#FFFFFF" d="M0.2,59.8v-7.5c0-28.5,23.2-52,52-52h7.5v59.5H0.2z"></path><path fill="#C7C8CA" d="M59.5,0.5v59h-59v-7.2c0-28.5,23.2-51.8,51.8-51.8H59.5 M60,0h-7.8C23.4,0,0,23.5,0,52.2V60h60V0L60,0z"></path></g><path display="inline" fill="none" stroke="#A7A9AC" d="M8,53.5c0-25.5,20.5-46,45.8-46"></path><line display="inline" fill="none" stroke="#A7A9AC" x1="8" y1="52.8" x2="14.5" y2="52.8"></line><line display="inline" fill="none" stroke="#A7A9AC" x1="53.5" y1="14.2" x2="53.5" y2="7"></line><text transform="matrix(1 0 0 1 13 39.6646)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10px">Too many</text><text transform="matrix(1 0 0 1 26.718 50.6646)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10px">ticks</text></g><g id="Center_Point" visibility="hidden"><circle id="Center" display="inline" fill="#D1D3D4" cx="53.6" cy="52.8" r="0.5"></circle></g><g id="Radius" visibility="hidden"><line id="RadiusLine" display="inline" fill="none" stroke="#D1D3D4" stroke-width="0.25" stroke-miterlimit="10" x1="53.8" y1="52.2" x2="53.8" y2="6.7"></line></g><path opacity="0.15" fill="#231F20" enable-background="new " d="M52.1,0.3C23.6,0.3,0.5,23.7,0.5,52.5v1 c0-28.8,23.1-52.2,51.6-52.2h7.4v-1H52.1z"></path></svg>'},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px" height="60px" viewBox="0 0 60 60" enable-background="new 0 0 60 60" xml:space="preserve"><g id="NinetyGaugeOuterOutline"><g><path id="BackgroundColorNode" fill="#FFFFFF" d="M0.3,59.7V0.1h59.5v7.4c0,28.8-23.3,52.2-52,52.2C7.8,59.7,0.3,59.7,0.3,59.7z"></path><path fill="#C7C8CA" d="M59.5,0.4v7.2c0,28.7-23.2,51.9-51.8,51.9H0.5V0.4L59.5,0.4 M60-0.1H0V60h7.7C36.6,60,60,36.6,60,7.6V-0.1 L60-0.1z"></path></g></g><g id="Scale_Color"></g><g id="NinetyGaugeInnerOutline"><path fill="none" stroke="#6D6E70" d="M52.1,6.7c0,25.5-20.5,45-46.2,46"></path></g><g id="Major_Ticks" fill="none" stroke="#6D6E70"><line x1="70.5" y1="7.1" x2="-3.6" y2="7.1"></line><line x1="6.5" y1="2.1" x2="6.5" y2="62.1"></line><line x1="1.6" y1="2.1" x2="54.8" y2="55.4"></line></g><g id="Minor_Ticks" fill="none" stroke="#6D6E70" stroke-width="0.5"><line x1="-2" y1="-15.1" x2="26.4" y2="51.9"></line><line x1="-11.6" y1="-0.6" x2="52.5" y2="25.4"></line></g><g id="Needle"><polygon fill="#E04145" points="6.5,6 45,7.1 45,7.2 6.5,7.9"></polygon></g><g id="tooManyTicksErrorMessage" visibility="hidden"><g display="inline"><path fill="#FFFFFF" d="M0.1,59.8V0.3h59.5v7.5c0,28.8-23.2,52-52,52H0.1z"></path><path fill="#C7C8CA" d="M59.4,0.5v7.2c0,28.5-23.2,51.8-51.8,51.8H0.4v-59H59.4 M59.9,0h-60v60h7.8C36.5,60,60,36.5,60,7.8L59.9,0 L59.9,0z"></path></g><path display="inline" fill="none" stroke="#A7A9AC" d="M51.9,6.5c0,25.5-20.5,46-45.8,46"></path><line display="inline" fill="none" stroke="#A7A9AC" x1="51.9" y1="7.2" x2="45.4" y2="7.2"></line><line display="inline" fill="none" stroke="#A7A9AC" x1="6.3" y1="45.8" x2="6.3" y2="53"></line><text transform="matrix(1 0 0 1 2.8927 22.3354)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">Too many</text><text transform="matrix(1 0 0 1 15.0941 33.3364)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">ticks</text></g><g id="Center_Point" visibility="hidden"><circle id="Center" display="inline" fill="#D1D3D4" cx="6.4" cy="7.2" r="0.5"></circle></g><g id="Radius" visibility="hidden"><line id="RadiusLine" display="inline" fill="none" stroke="#D1D3D4" stroke-width="0.25" stroke-miterlimit="10" x1="6.2" y1="7.5" x2="6.2" y2="53.0"></line></g><rect x="0.3" y="0.1" opacity="0.15" fill="#231F20" enable-background="new " width="59.2" height="1"></rect><path fill="none" stroke="#6D6E70" d="M54.9,49"></path><path fill="none" stroke="#6D6E70" d="M49.3,49"></path></svg>'},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px" height="60px" viewBox="0 0 60 60" enable-background="new 0 0 60 60" xml:space="preserve"><g id="NinetyGaugeOuterOutline"><g><path id="BackgroundColorNode" fill="#FFFFFF" d="M52.3,59.7c-28.7,0-52-23.4-52-52.1V0.2h59.5v59.5C59.8,59.7,52.3,59.7,52.3,59.7z"></path><path fill="#C7C8CA" d="M59.5,0.5v59h-7.2C23.7,59.5,0.5,36.2,0.5,7.7V0.5H59.5 M60,0H0v7.7C0,36.6,23.4,60,52.3,60H60V0L60,0z"></path></g></g><g id="Scale_Color"></g><g id="NinetyGaugeInnerOutline"><path fill="none" stroke="#6D6E70" d="M7.9,6.7c0,25.4,20.5,45.9,46.2,45.9"></path></g><g id="Major_Ticks" fill="none" stroke="#6D6E70"><line x1="7.9" y1="7.2" x2="13.5" y2="7.2"></line><line x1="53.5" y1="47.2" x2="53.5" y2="52.8"></line><line x1="23.7" y1="33.7" x2="19.8" y2="37.6"></line></g><g id="Minor_Ticks" fill="none" stroke="#6D6E70" stroke-width="0.5"><line x1="75" y1="-1.5" x2="7.2" y2="25.6"></line><line x1="60.5" y1="-11.1" x2="34.5" y2="53"></line></g><polygon id="Needle" fill="#E04145" points="52.6,6.6 53.5,45.1 53.6,45.1 54.5,6.6"></polygon><g id="tooManyTicksErrorMessage" visibility="hidden"><g display="inline"><path fill="#FFFFFF" d="M52.2,59.8c-28.8,0-52-23.5-52-52.2V0h59.5v59.5h-7.5L52.2,59.8L52.2,59.8z"></path><path fill="#C7C8CA" d="M59.5,0.5v59h-7.2C23.8,59.5,0.5,36.3,0.5,7.7V0.5H59.5 M60,0H0v7.8C0,36.6,23.5,60,52.2,60H60V0L60,0z"></path></g><path display="inline" fill="none" stroke="#A7A9AC" d="M8,6.5c0,25.5,20.5,46,45.8,46"></path><line display="inline" fill="none" stroke="#A7A9AC" x1="8" y1="7.2" x2="13.5" y2="7.2"></line><line display="inline" fill="none" stroke="#A7A9AC" x1="53.5" y1="47.2" x2="53.5" y2="52.8"></line><text transform="matrix(1 0 0 1 12.5188 22.3354)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">Too many</text><text transform="matrix(1 0 0 1 24.7175 33.3364)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="10">ticks</text></g><g id="Center_Point" visibility="hidden"><circle id="Center" display="inline" fill="#D1D3D4" cx="53.6" cy="7.2" r="0.5"></circle></g><g id="Radius" visibility="hidden"><line id="RadiusLine" display="inline" fill="none" stroke="#D1D3D4" stroke-width="0.25" stroke-miterlimit="10" x1="53.8" y1="6.25" x2="53.8" y2="51.75"></line></g><rect x="0.5" y="0.2" opacity="0.15" fill="#231F20" enable-background="new " width="59" height="1"></rect></svg>'},function(e,t,i){var n,o;n=[i(203),i(211),i(228),i(204),i(1492),i(1156),i(959),i(960),i(2178),i(5923),i(5926),i(441),i(298),i(295),i(481),i(482)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([o,r,a,s,l,u,h,p,f,g],{widget:null,createView:function(){this.inherited(arguments),this._startRender(),this.initAndCreateLinearGauge(),this._endRender(),this.peernode.dispatchEventToServer("viewReady",{}),this.addMouseEventListeners(this._VCWidgetDOMNode)},initAndCreateLinearGauge:function(){var e=this.WidgetData.getProperty("Orientation");e&&(e.toLowerCase().indexOf("horizontal")>=0?this.widget=new c(this._VCWidgetDOMNode):this.widget=new d(this._VCWidgetDOMNode),i.set(this._VCWidgetDOMNode,"data-orientation",e)),this.initializeComponent(),this.updateFontPropertiesFromModel();var t=this.getInitializationPropertyNames();this.setProperties(t)},getInitializationPropertyNames:function(){var e=this.inherited(arguments),t=["Limits","Enable","Size","Location","ScaleColors","Tooltip","LayoutConstraints","ContextMenuID"];return e&&(t=t.concat(e)),t},setProperties:function(e){this.inherited(arguments);var t,i=!1,n=this.WidgetData.getProperty("Limits"),o=this.WidgetData.getProperty("Value"),r=this.WidgetData.getProperty("ScaleColorLimits"),a=this._getNumeric1BasedScaleColors(this.WidgetData.getProperty("ScaleColors"));if(this._arePropertyNamesPresent(e,["Orientation"])&&(this.widget.destroy(),this.widget=null,this.initAndCreateLinearGauge()),this._arePropertyNamesPresent(e,["Enable"])){var s=this.WidgetData.getProperty("Enable");this.widget.setEnable(s)}if(this._arePropertyNamesPresent(e,["Limits"])&&(this.widget.setScaleLimits(n),this.widget.setValue(o),t=this.constrainScaleColorLimitsToScaleLimits(n,r,a),this.widget.setScaleColorsAndScaleColorLimits(t.scaleColors,t.scaleColorLimits),i=!0),this.doSetProperties(e),this._arePropertyNamesPresent(e,["MajorTicks","MajorTickLabels"])&&!this._arePropertyNamesPresent(e,["MajorTicksMode"])&&(i=!0),this._arePropertyNamesPresent(e,["FontName","FontSize","FontAngle","FontWeight"])){var l={fontName:this.WidgetData.getProperty("FontName"),fontSize:this.WidgetData.getProperty("FontSize"),fontWeight:this.WidgetData.getProperty("FontWeight"),fontAngle:this.WidgetData.getProperty("FontAngle"),fontColor:this.WidgetData.getProperty("FontColor")};this.widget.setFontStyleOnMajorTickLabelsContainer(l),i=!0}this._arePropertyNamesPresent(e,["ScaleColorLimits","ScaleColors"])&&(t=this.constrainScaleColorLimitsToScaleLimits(n,r,a),this.widget.setScaleColorsAndScaleColorLimits(t.scaleColors,t.scaleColorLimits)),this._arePropertyNamesPresent(e,["Value"])&&this.widget.setValue(o),i&&this.widget.computeContainerNodeSize()},handleInnerSizeSet:function(e){this.widget.setSize(e),this.updateOuterPositionForNoMarginsComponent(e)},setMinorTicks:function(e){this.widget.setMinorTicks(e)},setMajorTicks:function(e){this.widget.setMajorTicks(e)},setMajorTickLabels:function(e){this.widget.setMajorTickLabels(e)},setMajorTicksAndLabels:function(e,t){this.widget.setMajorTicksAndLabels(e,t)},setComponentToPreferredSize:function(){this._startRender();var e=this.widget.computePreferredSize();this._endRender(),this.setPositionPropertiesInPixels({Size:e.size})},updateComponentSize:function(e,t,i,n){this.widget.setSize(t)},destroy:function(){this.widget.destroy(),t.destroy(this._VCWidgetDOMNode),this.inherited(arguments)},getTickLabelTrackLength:function(e){return this.widget.getTickLabelTrackLength(e)},_getNumeric1BasedScaleColors:function(e){for(var t,i,o=n.clone(e),r=!1,a=0;a<e.length;a++){t=e[a];for(var s=0;s<t.length;s++)"string"==typeof(i=o[a][s])&&(r=!0,o[a][s]=parseFloat(i)/255)}return r&&console.log("Warning: Value for Scale Color of Linear Gauge is expected to be a Number in range [0,1]. A String [0-255] was passed in. This functionality will be removed in the future. You should update anyone who calls setProperties on this gauge to use [0,1] doubles to represent color"),o},_applyBackgroundColor:function(e){this.widget.setBackgroundColor(e)},_computeMinimumSize:function(){var e=this.getPeerNode().getProperty("Orientation");return this._getDefaultSize(e)},_getDefaultSize:function(e){return"horizontal"===e.toLowerCase()?[120,40]:[40,120]},_computeFitSize:function(){var e=this.getPeerNode().getProperty("Orientation");return this._getDefaultSize(e)},_editPropertiesAffectingFitSize:function(e){return e.push("Orientation"),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(210),i(217),i(1142),i(1473),i(2179),i(287),i(284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([a],{firstLabelMargin:0,firstLabelOffset:0,lastLabelOffset:0,containerNodeWidth:100,didFirstLabelOverflow:!1,didLastLabelOverflow:!1,didFirstLabelUnderflow:!1,didLastLabelUnderflow:!1,RuleConstructor:o,RuleLabelConstructor:r,HORIZONTAL_GAUGE_DEFAULT_WIDTH:120,WHITESPACE_LABEL_BOTTOM_TO_CONTAINER_BOTTOM:9,WHITESPACE_FIRST_LABEL_TO_CONTAINER_LEFT:4.5,WHITESPACE_LAST_LABEL_TO_CONTAINER_RIGHT:1.5,NEEDLE_CONTAINER_HEIGHT_OFFSET:19,constructor:function(e){i.add(this.linearGaugeContainer,"vc-horizontalLinearGauge")},repositionNeedle:function(e){var i=e;void 0===i&&(i=n.position(this.needleContainerNode).w+this.NEEDLE_PEGGING_OFFSET+"px");this.needleElement&&t.set(this.needleElement,"left",i)},computePreferredSize:function(){var e=this.ticksAndLabelsContainerNode.getElementsByClassName("vc-linearGaugeMajorTickLabels")[0],t=n.position(this.linearGaugeContainer),i=t.w,o=t.h;if(e){var r=this.getMaxBottomEdgeOfLabels(e),a=r+this.WHITESPACE_LABEL_BOTTOM_TO_CONTAINER_BOTTOM,s=t.y+t.h;if(this.didFirstLabelOverflow?i+=this.firstLabelOffset:this.didFirstLabelUnderflow&&(i-=this.firstLabelOffset),this.didLastLabelOverflow?i+=this.lastLabelOffset:this.didLastLabelUnderflow&&(i-=this.lastLabelOffset),a>s){var l=r-s;o=t.h+l+this.WHITESPACE_LABEL_BOTTOM_TO_CONTAINER_BOTTOM}else if(a<s){var c=s-r;o=t.h-c+this.WHITESPACE_LABEL_BOTTOM_TO_CONTAINER_BOTTOM}}return{size:[i,o]}},computeContainerNodeSize:function(){var e=this.ticksAndLabelsContainerNode.getElementsByClassName("vc-linearGaugeMajorTickLabels")[0],i=n.position(this.linearGaugeContainer);if(e){this.didFirstLabelOverflow=!1,this.didLastLabelOverflow=!1,this.didFirstLabelUnderflow=!1,this.didLastLabelUnderflow=!1,this.containerNodeWidth=t.get(this.containerNode,"width");var o=e.getElementsByClassName("mwRuleLabelContainer"),r=o[0].getElementsByClassName("mwRuleLabel")[0],a=n.position(r),s=o[o.length-1].getElementsByClassName("mwRuleLabel")[0],l=n.position(s),c=i.x+this.WHITESPACE_FIRST_LABEL_TO_CONTAINER_LEFT,d=l.x+l.w+this.WHITESPACE_LAST_LABEL_TO_CONTAINER_RIGHT,u=i.x+i.w;a.x<c?(this.firstLabelMargin=this.firstLabelMargin+(i.x-a.x)+this.WHITESPACE_FIRST_LABEL_TO_CONTAINER_LEFT,this.firstLabelOffset=i.x-a.x+this.WHITESPACE_FIRST_LABEL_TO_CONTAINER_LEFT,this.containerNodeWidth=this.containerNodeWidth-this.firstLabelOffset,this.didFirstLabelOverflow=!0):a.x>c&&(this.firstLabelMargin=this.firstLabelMargin-(a.x-i.x-this.WHITESPACE_FIRST_LABEL_TO_CONTAINER_LEFT),this.firstLabelOffset=a.x-i.x-this.WHITESPACE_FIRST_LABEL_TO_CONTAINER_LEFT,this.containerNodeWidth=this.containerNodeWidth+this.firstLabelOffset,this.didFirstLabelUnderflow=!0),d>u?(this.lastLabelOffset=l.x+l.w-(i.x+i.w)+this.WHITESPACE_LAST_LABEL_TO_CONTAINER_RIGHT,this.containerNodeWidth=this.containerNodeWidth-(l.x+l.w-(i.x+i.w)+this.WHITESPACE_LAST_LABEL_TO_CONTAINER_RIGHT),this.didLastLabelOverflow=!0):d<u&&(this.lastLabelOffset=i.x+i.w-(l.x+l.w)-this.WHITESPACE_LAST_LABEL_TO_CONTAINER_RIGHT,this.containerNodeWidth=this.containerNodeWidth+(i.x+i.w-(l.x+l.w)-this.WHITESPACE_LAST_LABEL_TO_CONTAINER_RIGHT),this.didLastLabelUnderflow=!0),t.set(this.containerNode,"margin-left",this.firstLabelMargin+"px")}else this.containerNodeWidth=this.HORIZONTAL_GAUGE_DEFAULT_WIDTH-this.CONTAINER_NODE_OFFSET;t.set(this.containerNode,"width",this.containerNodeWidth+"px")},styleScaleColor:function(e,i,n,o){t.set(e,{backgroundColor:l.toJSRGB(i),left:n+"%",width:o+"%"})},setContainerSizes:function(e){t.set(this.linearGaugeContainer,"width",e[0]+"px"),t.set(this.linearGaugeContainer,"height",e[1]+"px"),t.set(this.outerOutlineNode,"width",e[0]-this.OUTER_OUTLINE_NODE_WIDTH_OFFSET+"px"),t.set(this.outerOutlineNode,"height",e[1]-this.OUTER_OUTLINE_NODE_HEIGHT_OFFSET+"px"),t.set(this.innerOutlineNode,"width",e[0]-this.INNER_OUTLINE_NODE_WIDTH_OFFSET+"px"),this.computeContainerNodeSize(),t.set(this.needleContainerNode,"height",e[1]-this.NEEDLE_CONTAINER_HEIGHT_OFFSET+"px")},getTickLabelTrackLength:function(){return this.linearGaugeContainer.clientWidth},getMaxBottomEdgeOfLabels:function(e){var t=n.position(e);return s.getTextPosition(this.majorTickLabels[this.majorTickLabels.length-1],s.getWidgetFontStyleStringFromDom(this.majorTickLabelWidget.domNode)).h+t.y}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="vc-userSelectNone vc-linearGauge">\n <div class="vc-linearGaugeOuterOutline"></div>\n <div class="vc-linearGaugeInnerOutline"></div>\n <div class="vc-containerNode">\n <div class="vc-linearGaugeScaleColorContainer"></div>\n <div class="vc-linearGaugeRulerAndLabelContainer"></div>\n <div class="vc-linearGaugeNeedleContainer"></div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{getContainerHandles:function(){this.inherited(arguments),this.domNode=this.linearGaugeContainer},set:function(e,t){"tooltip"===e&&this._setTooltipAttr(t)},_set:function(e,t){this[e]=t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(210),i(217),i(2132),i(2133),i(2179),i(284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([a],{lastLabelMargin:0,lastLabelOffset:0,firstLabelOffset:0,containerNodeHeight:100,didFirstLabelOverflow:!1,didLastLabelOverflow:!1,didFirstLabelUnderflow:!1,didLastLabelUnderflow:!1,RuleConstructor:o,RuleLabelConstructor:r,VERTICAL_GAUGE_DEFAULT_HEIGHT:120,WHITESPACE_BIGGEST_LABEL_TO_CONTAINER_RIGHT:2,WHITESPACE_FIRST_LABEL_TO_CONTAINER_BOTTOM:3,WHITESPACE_LAST_LABEL_TO_CONTAINER_TOP:3,NEEDLE_CONTAINER_WIDTH_OFFSET:18,constructor:function(e){i.add(this.linearGaugeContainer,"vc-verticalLinearGauge")},repositionNeedle:function(e){var i=e;void 0===i&&(i=n.position(this.needleContainerNode).h+this.NEEDLE_PEGGING_OFFSET+"px");this.needleElement&&t.set(this.needleElement,"bottom",i)},computePreferredSize:function(){var e,t=0,i=this.ticksAndLabelsContainerNode.getElementsByClassName("vc-linearGaugeMajorTickLabels")[0],o=n.position(this.linearGaugeContainer),r=o.w,a=o.h;if(i){for(var s=i.getElementsByClassName("mwRuleLabelContainer"),l=0;l<s.length;l++){var c=s[l].getElementsByClassName("mwRuleLabel")[0],d=n.position(c);d.w>t&&(t=d.w,e=l)}var u=s[e].getElementsByClassName("mwRuleLabel")[0],h=n.position(u),p=h.x+(h.w+this.WHITESPACE_BIGGEST_LABEL_TO_CONTAINER_RIGHT),f=o.x+o.w;if(p>f){var g=h.x+h.w-f;r=o.w+g+this.WHITESPACE_BIGGEST_LABEL_TO_CONTAINER_RIGHT}else if(p<f){var m=f-(h.x+h.w);r=o.w-m+this.WHITESPACE_BIGGEST_LABEL_TO_CONTAINER_RIGHT}this.didLastLabelOverflow?a+=this.lastLabelOffset:this.didLastLabelUnderflow&&(a-=this.lastLabelOffset),this.didFirstLabelOverflow?a+=this.firstLabelOffset:this.didFirstLabelUnderflow&&(a-=this.firstLabelOffset)}return{size:[r,a]}},computeContainerNodeSize:function(){var e=this.ticksAndLabelsContainerNode.getElementsByClassName("vc-linearGaugeMajorTickLabels")[0],i=n.position(this.linearGaugeContainer);if(e){this.didFirstLabelOverflow=!1,this.didLastLabelOverflow=!1,this.didFirstLabelUnderflow=!1,this.didLastLabelUnderflow=!1,this.containerNodeHeight=t.get(this.containerNode,"height");var o=e.getElementsByClassName("mwRuleLabelContainer"),r=o[0].getElementsByClassName("mwRuleLabel")[0],a=n.position(r),s=o[o.length-1].getElementsByClassName("mwRuleLabel")[0],l=n.position(s),c=a.y+a.h+this.WHITESPACE_FIRST_LABEL_TO_CONTAINER_BOTTOM,d=i.y+this.WHITESPACE_LAST_LABEL_TO_CONTAINER_TOP,u=i.y+i.h;l.y<d?(this.lastLabelMargin=this.lastLabelMargin+(i.y-l.y)+this.WHITESPACE_LAST_LABEL_TO_CONTAINER_TOP,this.lastLabelOffset=i.y-l.y+this.WHITESPACE_LAST_LABEL_TO_CONTAINER_TOP,this.containerNodeHeight=this.containerNodeHeight-this.lastLabelOffset,this.didLastLabelOverflow=!0):l.y>d&&(this.lastLabelMargin=this.lastLabelMargin-(l.y-i.y-this.WHITESPACE_LAST_LABEL_TO_CONTAINER_TOP),this.lastLabelOffset=l.y-i.y-this.WHITESPACE_LAST_LABEL_TO_CONTAINER_TOP,this.containerNodeHeight=this.containerNodeHeight+this.lastLabelOffset,this.didLastLabelUnderflow=!0),c>u?(this.firstLabelOffset=a.y+a.h-u+this.WHITESPACE_FIRST_LABEL_TO_CONTAINER_BOTTOM,this.containerNodeHeight=this.containerNodeHeight-(a.y+a.h-u+this.WHITESPACE_FIRST_LABEL_TO_CONTAINER_BOTTOM),this.didFirstLabelOverflow=!0):c<u&&(this.firstLabelOffset=u-(a.y+a.h)-this.WHITESPACE_FIRST_LABEL_TO_CONTAINER_BOTTOM,this.containerNodeHeight=this.containerNodeHeight+(u-(a.y+a.h)-this.WHITESPACE_FIRST_LABEL_TO_CONTAINER_BOTTOM),this.didFirstLabelUnderflow=!0),t.set(this.containerNode,"margin-top",this.lastLabelMargin+"px")}else this.containerNodeHeight=this.VERTICAL_GAUGE_DEFAULT_HEIGHT-this.CONTAINER_NODE_OFFSET;t.set(this.containerNode,"height",this.containerNodeHeight+"px")},styleScaleColor:function(e,i,n,o){t.set(e,{backgroundColor:s.toJSRGB(i),bottom:n+"%",height:o+"%"})},setContainerSizes:function(e){t.set(this.linearGaugeContainer,"width",e[0]+"px"),t.set(this.linearGaugeContainer,"height",e[1]+"px"),t.set(this.outerOutlineNode,"height",e[1]-this.OUTER_OUTLINE_NODE_HEIGHT_OFFSET+"px"),t.set(this.outerOutlineNode,"width",e[0]-this.OUTER_OUTLINE_NODE_WIDTH_OFFSET+"px"),t.set(this.innerOutlineNode,"width",e[0]-this.INNER_OUTLINE_NODE_WIDTH_OFFSET+"px"),this.computeContainerNodeSize(),t.set(this.needleContainerNode,"width",e[0]-this.NEEDLE_CONTAINER_WIDTH_OFFSET+"px")},getTickLabelTrackLength:function(e){return this.linearGaugeContainer.clientHeight}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(224),i(1491),i(5928),i(441),i(481),i(284),i(298),i(295),i(482)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([n,r,a,l,c,d],{createView:function(){this.inherited(arguments);var e=new o;this._setDijitHandle(e),this.addMouseEventListeners(this._VCWidgetDOMNode),this.peernode.setProperty("isViewReady",!0)},setProperties:function(e){i.forEach(e,t.hitch(this,(function(e){switch(e){case"Color":var t=this.WidgetData.getProperty("Color");this.widget.set("color",t);break;case"Enable":var i=s.toJSBoolean(this.WidgetData.getProperty("Enable"));this.widget.set("disabled",!i)}}))),this.inherited(arguments)},handleInnerSizeSet:function(e){this._resizeView(e),this.updateOuterPositionForNoMarginsComponent(e)},_computeMinimumSize:function(){return[20,20]},_computeFitSize:function(){return[20,20]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(447),i(5929),i(289),i(5930)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,n],{templateString:o,constructor:function(){this._set("color",[0,255,0]),this._set("width",20),this._set("height",20)},_setColorAttr:function(e){this._verifyColor(e),this.colorNode.style.fill=new t(e).toCss(!1),this._set("color",e)},_verifyColor:function(e){if(3!==e.length)throw new Error("Error with SetColor: color must be an array of length three");for(var t=0;t<e.length;t++){if(e[t]<0||e[t]>255)throw new Error("Error with SetColor: color rgb values must be either greater than or equal to 0 or less than 256");if("number"!=typeof e[t])throw new Error('Error with SetColor: color rgb values must be of type "number"');if(e[t]%1!=0)throw new Error("Error with SetColor: color rgb values must be integers")}},_setWidthAttr:function(e){this.domNode.setAttribute("width",e+"px"),this._set("width",e)},_setHeightAttr:function(e){this.domNode.setAttribute("height",e+"px"),this._set("height",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216)],o=i.dj.d(n,(function(e,t,i){return e([t,i],{disabled:!1,buildRendering:function(){this._setUniqueId(),this.inherited(arguments)},postCreate:function(){this.domNode.className.baseVal="vc-userSelectNone",this.domNode.className.animVal="vc-userSelectNone"},_setUniqueId:function(){var e=this.id,t=new RegExp("UniqueID","g");this.templateString=this.templateString.replace(t,e)},_setDisabledAttr:function(e){if(e)return this._set("disabled",!0),this.domNode.className.baseVal=this.domNode.className.baseVal+" vc-hmiComponentDisabled",void(this.domNode.className.animVal=this.domNode.className.animVal+" vc-hmiComponentDisabled");this._set("disabled",!1),this.domNode.className.baseVal="vc-userSelectNone",this.domNode.className.animVal="vc-userSelectNone"}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve"><g id="Outer_Border"><circle id="XMLID_1_" cx="10" cy="10" r="10" style="fill: #C7C8CA"></circle></g><g id="Border_Inner_Shadow"></g><g id="Lamp_Drop_Shadow" style="display:none"><path id="XMLID_46_" style="display:inline;opacity:0.15;fill:#231F20;enable-background:new" d="M15,24.3c-5.2,0-9.4-4-9.5-9.1c0,0.1,0,0.1,0,0.2c0,5.1,4.3,9.3,9.5,9.3s9.5-4.2,9.5-9.3 c0-0.1,0-0.1,0-0.2C24.4,20.3,20.2,24.3,15,24.3z"></path></g><g id="Lamp_Color" data-dojo-attach-point="colorNode" style="fill: #00FF00"><ellipse id="lamp_color_3_" cx="10" cy="10" rx="9.5" ry="9.3"></ellipse></g><g id="lamp_outer_inner_shadow"><radialGradient id="lamp_color_1_UniqueID" cx="9.3392" cy="9.1711" r="10.7556" gradientTransform="matrix(0.8833 0 0 0.8636 1.751 2.0795)" gradientUnits="userSpaceOnUse"><stop offset="0.9" style="stop-color:#FFFFFF;stop-opacity:0"></stop><stop offset="1" style="stop-color:#000000;stop-opacity:0.5"></stop></radialGradient><ellipse id="lamp_color_2_" cx="10" cy="10" rx="9.5" ry="9.3" style="fill:url(#lamp_color_1_UniqueID)"></ellipse></g><g id="Dark_Highlight_bottom"><linearGradient id="highlight_2_UniqueID" gradientUnits="userSpaceOnUse" x1="10" y1="17.8678" x2="10" y2="7.9646"><stop offset="0" style="stop-color:#000000;stop-opacity:0.15"></stop><stop offset="0.5" style="stop-color:#000000;stop-opacity:0"></stop></linearGradient><ellipse id="highlight_3_" cx="10" cy="10" rx="8.2" ry="8" style="fill:url(#highlight_2_UniqueID)"></ellipse></g><g id="Light_Highlight_top"><linearGradient id="highlight_4_UniqueID" gradientUnits="userSpaceOnUse" x1="10.0208" y1="2.1581" x2="9.9946" y2="12.0613"><stop offset="0" style="stop-color:#FFFFFF;stop-opacity:0.8"></stop><stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0"></stop></linearGradient><ellipse id="highlight_1_" cx="10" cy="10" rx="8.2" ry="8" style="fill:url(#highlight_4_UniqueID)"></ellipse></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(2180),i(533),i(405),i(456),i(287),i(1156),i(960),i(295),i(5933)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([n,o,l,c,d],{baseClass:"vc-knob",_labelDivId:"Major_Tick_Labels",_labelIdPrefix:"MajorTickLabel_",_labelClass:"vc-continuousKnobLabel",_defaultHubBottomOffset:10.4,_defaultHubLeftOffset:10.4,_defaultSVGWidth:81,_defaultSVGHeight:79,_defaultHubRadius:30,_majorTickIDPrefix:"Major_Ticks",_majorTickMarkDistanceFromHub:11,_minorTickInnerRadius:24.5,_minorTickOuterRadius:27.5,_majorTickInnerRadius:24.5,_majorTickOuterRadius:29,majorTicks:[],majorTickLabels:[],minorTicks:[],constructor:function(){},getSvgFileName:function(){return"ContinuousKnob"},getSVGFileText:function(e){return u},setUpComponentOnLoad:function(){this.setupCommonKnobDefaults(),this.labelNonScaledOffsetFromMajorTickMark=this._labelDistanceFromHub-this._majorTickMarkDistanceFromHub,this.initializeConstants(-60,300,this.SVGDocument,15,this._majorTickMarkDistanceFromHub,0,this._defaultHubRadius,this._minorTickInnerRadius,this._minorTickOuterRadius,this._majorTickInnerRadius,this._majorTickOuterRadius),this.angleCalculateFactor=15},getInitializationPropertyNames:function(){var e=this.inherited(arguments),t=["MinorTicks","Value","RegisteredEvents"];e&&(t=t.concat(e));var i=this.getInitializationFontPropertyNames();return i&&(t=t.concat(i)),t},doSetProperties:function(e){var t=this.WidgetData.getProperty("Limits"),i=this.WidgetData.getProperty("Value"),n="clockwise";this.inherited(arguments),this.hasOuterSizeChanged(e)&&this._drawMajorTicksAndLabels(!1),this._arePropertyNamesPresent(e,["FontName","FontSize","FontAngle","FontWeight"])&&this._drawMajorTicksAndLabels(!0),this._arePropertyNamesPresent(e,["Limits","Value"])&&this.setValue(t,i,n)},handleInnerSizeSet:function(e){this.inherited(arguments);var i=t.position(this.SVGDocument.getElementById("Center")),n=this._calculateContainerDomPosition();this.setNewPositions(n,i)},setMinorTicks:function(e){this.minorTicks=e;var t=this.WidgetData.getProperty("Limits");this.layoutMinorTicks(e,t,"clockwise")},setMajorTicks:function(e){this.majorTicks=e,this._drawMajorTicksAndLabels(!0)},setMajorTickLabels:function(e){this.majorTickLabels=e,this._drawMajorTicksAndLabels(!0)},setMajorTicksAndLabels:function(e,t){this.majorTicks=e,this.majorTickLabels=t,this._drawMajorTicksAndLabels(!0)},getTickLabelTrackLength:function(e){return 2*Math.PI*(this._majorTickOuterRadius*this.scalingFactor+e/2)*this.angularSpan/360},getTickTrackLength:function(){return 2*Math.PI*(this._majorTickInnerRadius*this.scalingFactor)*this.angularSpan/360},_drawMajorTicksAndLabels:function(e){var i=this.majorTicks,n=this.majorTickLabels,o=t.position(this.SVGDocument.getElementById("Center"));this.createAndCleanUpLabelDiv(),this._removeMajorTicks();var r=this.getLabelsAndAngles().positions;0!==i.length&&(this.drawTickLines(i,r,this._majorTickIDPrefix),this.positionLabels(n,r));var a=this._calculateContainerDomPosition();e&&this.setNewPositions(a,o)},_calculateContainerWithNoLabelsDomPosition:function(){var e;if(0===this.minorTicks.length)e=this.inherited(arguments);else{var i=t.position(this.SVGContainer);e={minimumX:i.x,maximumX:i.x+i.w,minimumY:i.y,maximumY:i.y+i.h}}return e},layoutMinorTicks:function(e,i,n){if(this.inherited(arguments),0===this.majorTicks.length&&0===this.majorTickLabels.length){var o=t.position(this.SVGDocument.getElementById("Center")),r=this._calculateContainerDomPosition();this.setNewPositions(r,o)}},getRelativeHubPosition:function(){return{x:(10+this._defaultHubRadius)/this._defaultSVGWidth,y:(9+this._defaultHubRadius)/this._defaultSVGHeight}},getMaxInnerWidth:function(e,t){var i=(e[0]/2-t-5)/this.labelRadius*this._defaultHubRadius;return Math.max(0,2*i)},getMaxInnerHeight:function(e,t){var i=(e[1]/2-t-5)/this.labelRadius*this._defaultHubRadius;return Math.max(0,2*i)},mouseMoving:function(e){var t=r.toPositiveAngle(this.getNeedleRotationAngle());this._postNeedleEvent("mousedragging",t)},mouseMoved:function(e){var t=r.toPositiveAngle(this.getNeedleRotationAngle());this._postNeedleEvent("mousedragreleased",t)},mouseClicked:function(e,t){var i=e.target,n=this.majorTicks,o=this.WidgetData.getProperty("Limits");if("span"===i.tagName.toLowerCase()&&this._isElementLabel(i))t=(n[a.findChildNode(i.parentNode)]-o[0])*this.angularSpan/(o[1]-o[0]);else if("line"===i.tagName.toLowerCase()){var r,s=a.findChildNode(i);this._isElementMajorTick(i)?r=n[s]:this._isElementMinorTick(i)&&(r=this.minorTicks[s]),t=(r-o[0])*this.angularSpan/(o[1]-o[0])}else if(void 0===t)return;this.rotateNeedle(t),this._postNeedleEvent("mousedragging",t),this._postNeedleEvent("mouseclicked",t)},_postNeedleEvent:function(e,t){var i=this.WidgetData.getProperty("Limits"),n={Value:t*(i[1]-i[0])/this.angularSpan+i[0]};"mousedragging"===e?this.handleUserInteraction(e,n):this.handleUserInteraction(e,n,n)},terminateMouseInteraction:function(e){this._postNeedleEvent("mousedragging",r.toPositiveAngle(e)),this.inherited(arguments)},getMinMaxAngles:function(){return{minAngle:0,maxAngle:this.angularSpan}},_isElementLabel:function(e){return"Major_Tick_Labels"===e.parentNode.parentNode.id},_isElementMinorTick:function(e){return"Minor_Ticks"===e.parentNode.id},_isElementMajorTick:function(e){return"Major_Ticks"===e.parentNode.id},_computeFitSize:function(){var e=this.getPeerNode().getProperty("MajorTicks"),t=this.getPeerNode().getProperty("MajorTickLabels");return 0===t.length||0===e.length?this._computeFitSizeForKnobWithoutMajorTickLabels(t):this._computeFitSizeForKnobWithMajorTickLabels(e)},_computeFitSizeForKnobWithMajorTickLabels:function(e){for(var t=0,i=s.getWidgetFontStyleMap(this.getPeerNode()),n=[],o=0;o<e.length;o++){var r=s.getTextPosition(e[o],i);n.push(r.w),t=Math.max(t,r.h)}var a=this._getTwoLargestLengths(n),l=a[0],c=a[1],d=this._defaultSVGWidth+l+c,u=this._defaultSVGHeight+2*t,h=this.getInnerSizeForGivenOuterSize([d,u]);return 2*this._defaultHubRadius>h[0]&&(d+=2*this._defaultHubRadius-h[0],u+=2*this._defaultHubRadius-h[1]),[d,u]},_computeFitSizeForKnobWithoutMajorTickLabels:function(e){var t,i;return this.majorTicks.length>0?(t=this._defaultSVGWidth,i=this._defaultSVGHeight):this.getPeerNode().getProperty("MinorTicks").length>0?(t=this._defaultSVGWidth-2*(this._majorTickOuterRadius-this._minorTickOuterRadius),i=this._defaultSVGHeight-2*(this._majorTickOuterRadius-this._minorTickOuterRadius)):(t=this._defaultSVGWidth-2*(this._majorTickOuterRadius-this._minorTickInnerRadius),i=this._defaultSVGHeight-2*(this._majorTickOuterRadius-this._minorTickInnerRadius)),[t,i]},_editPropertiesAffectingFitSize:function(e){return e.concat(["MinorTicks","MajorTicks","MajorTickLabels"])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(287),i(961)],o=i.dj.d(n,(function(e,t,i){return e([],{getInnerSizeForGivenOuterSize:function(e){return this.calculateNewInnerSizeGivenCellSize(e)},_getPreferredsizeAttr:function(){var e=this._calculateOuterSize();return{width:e[0],height:e[1]}},calculateNewInnerSizeGivenCellSize:function(e){var n,o,r=t.getWidgetFontStyleMap(this.WidgetData),a=0,s=0;(n=this.itemLabels?this.WidgetData.getProperty("Items"):this.WidgetData.getProperty("MajorTickLabels")).length>0&&(s=(o=t.getTextPosition(n[0],r)).h,a=o.w);for(var l=1;l<n.length;l++)o=t.getTextPosition(n[l],r),a=Math.max(a,o.w);var c=this.getMaxInnerWidth(e,a),d=this.getMaxInnerHeight(e,s);c<=5&&(c=Math.min(e[0],5)),d<=5&&(d=Math.min(e[1],5));var u=this.getAspectRatioLimits();return i.calculateMaxSizeGivenAspectRatio([c,d],u)},getDivsContributingToOuterSize:function(){return this.labelDiv.childNodes.length>0?this.labelDiv.childNodes:this.SVGContainer},getAspectRatioLimits:function(){return this.peernode.getProperty("AspectRatioLimits")}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px" height="60px" viewBox="0 0 60 60" enable-background="new 0 0 60 60" xml:space="preserve"><g id="outer_circle"><path fill="#BBBDBF" stroke="#808184" stroke-width="0.5" d="M52.5,29.4c0,12.5-10.1,22.5-22.5,22.5S7.5,41.8,7.5,29.4 S17.5,6.9,30,6.9C42.4,6.9,52.5,17,52.5,29.4z"></path><linearGradient id="SVGID_1_ContinuousKnob" gradientUnits="userSpaceOnUse" x1="57.8333" y1="53.3908" x2="57.8333" y2="128.3908" gradientTransform="matrix(0.3 0 0 0.3 12.6 13.35)"><stop offset="0" style="stop-color:#A7A9AC"></stop><stop offset="0.9" style="stop-color:#A7A9AC;stop-opacity:0"></stop></linearGradient><path fill="url(#SVGID_1_ContinuousKnob)" d="M43.5,40.2c0,7.4-6.1,11.7-13.5,11.7s-13.5-5.2-13.5-12.6L16,29.4h27.9L43.5,40.2z"></path></g><g id="Needle"><path fill="#D0D2D3" stroke="#808184" stroke-width="0.5" d="M43.5,29.4c0-7.4-6.1-13.5-13.5-13.5S16.5,22,16.5,29.4 c0,0.1,0,0.2,0,0.3v0.4L19,47.8L34.8,42l0,0C39.9,40,43.5,35.1,43.5,29.4z"></path><g><path fill="#D0D2D3" d="M30,43c-7.6,0-13.6-6.1-13.6-13.6c0-7.6,6.1-13.7,13.6-13.7s13.7,6.2,13.7,13.7S37.6,43,30,43z"></path><path fill="#808184" d="M30,15.9c7.4,0,13.5,6.1,13.5,13.5S37.4,42.9,30,42.9s-13.5-6.1-13.5-13.5S22.6,15.9,30,15.9 M30,15.5 c-7.7,0-13.9,6.2-13.9,13.9S22.4,43.3,30,43.3s13.9-6.2,13.9-13.9S37.7,15.5,30,15.5L30,15.5z"></path></g><g><path fill="none" d="M51.8,29.4c0,12-9.8,21.8-21.8,21.8S8.2,41.4,8.2,29.4S18,7.7,30,7.7S51.8,17.4,51.8,29.4z"></path></g><g><path fill="#E04145" d="M21.5,40.4L19,47l0.1,0.6l0.5-0.2l4.9-5.2C23.5,41.7,22.5,41.1,21.5,40.4z"></path></g></g><g id="highlights"><g id="highlight"><path opacity="0.5" fill="#FFFFFF" enable-background="new " d="M30,16.8c7.3,0,13.2,5.8,13.5,13.1c0-0.2,0-0.3,0-0.4 c0-7.5-6.1-13.6-13.5-13.6S16.5,22,16.5,29.4c0,0.2,0,0.3,0,0.4C16.7,22.6,22.7,16.8,30,16.8z"></path></g><g id="highlight_1_"><path opacity="0.5" fill="#FFFFFF" enable-background="new " d="M30,16.8c7.3,0,13.2,5.8,13.5,13.1c0-0.2,0-0.3,0-0.4 c0-7.5-6.1-13.6-13.5-13.6S16.5,22,16.5,29.4c0,0.2,0,0.3,0,0.4C16.7,22.6,22.7,16.8,30,16.8z"></path></g></g><g id="Major_Ticks" fill="none" stroke="#A7A9AC"><line x1="62.5" y1="29.3" x2="68.2" y2="29.3"></line><line x1="-8.7" y1="29.3" x2="-3" y2="29.3"></line><line x1="-10.9" y1="29.3" x2="70.9" y2="29.3"></line><line x1="9.6" y1="64.6" x2="50.4" y2="-6.1"></line><line x1="50.4" y1="64.6" x2="9.6" y2="-6.1"></line></g><g id="Minor_Ticks" fill="none" stroke="#A7A9AC"><line x1="62.5" y1="29.3" x2="68.2" y2="29.3"></line><line x1="-8.7" y1="29.3" x2="-3" y2="29.3"></line><line x1="-5.4" y1="8.8" x2="65.4" y2="49.7"></line><line x1="-5.4" y1="49.7" x2="65.4" y2="8.8"></line><line x1="30" y1="47.9" x2="30" y2="-11.6"></line></g><g id="tooManyTicksErrorMessage" visibility="hidden"><g id="outer_circle_1_" display="inline"><path fill="#BBBDBF" stroke="#808184" stroke-width="0.5" d="M52.5,29.4c0,12.5-10.1,22.5-22.5,22.5S7.5,41.8,7.5,29.4 S17.5,6.9,30,6.9C42.4,6.9,52.5,17,52.5,29.4z"></path><linearGradient id="SVGID_6_ContinuousKnob" gradientUnits="userSpaceOnUse" x1="57.8333" y1="53.3908" x2="57.8333" y2="128.3908" gradientTransform="matrix(0.3 0 0 0.3 12.6 13.35)"><stop offset="0" style="stop-color:#A7A9AC"></stop><stop offset="0.9" style="stop-color:#A7A9AC;stop-opacity:0"></stop></linearGradient><path fill="url(#SVGID_6_ContinuousKnob)" d="M43.5,40.2c0,7.4-6.1,11.7-13.5,11.7s-13.5-5.2-13.5-12.6L16,29.4h27.9L43.5,40.2z"></path></g><text transform="matrix(1 0 0 1 21.8618 38.5105)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="8">ticks</text><text transform="matrix(1 0 0 1 20.1978 31.2176)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="8">many</text><text transform="matrix(1 0 0 1 23.4322 24.9246)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="8">Too</text></g><g id="Center_Point" visibility="hidden"><g display="inline"><circle id="Center" fill="#D1D3D4" cx="30" cy="29.3" r="0.5"></circle></g></g><g id="Radius" visibility="hidden"><line display="inline" fill="none" stroke="#A7A9AC" stroke-width="0.1" x1="30" y1="30.6" x2="30" y2="0"></line></g><g id="InnerHitRadius" visibility="hidden"><line id="InnerHitRadiusLine" display="inline" fill="none" stroke="blue" stroke-width="0.25" x1="16" y1="30" x2="30" y2="30"></line></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(213),i(211),i(217),i(287),i(456),i(2180),i(405),i(1157),i(960),i(295),i(5935)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([a,l,c,d],{baseClass:"vc-discreteKnob",_labelDivId:"State_Labels",_labelIdPrefix:"StateLabel_",_labelClass:"vc-discreteKnobStateLabel",_stateCircleIdPrefix:"StateCircle_",_defaultStateCircleBoundingBoxSize:7,_defaultStateCircleDiameter:5,_defaultHubBottomOffset:0,_defaultHubLeftOffset:0,_defaultSVGWidth:60,_defaultSVGHeight:60,_defaultHubRadius:30,radius:30,labelOffsetFromCircle:7,stateCircleRadiusRatio:1.2,angleCalculateFactor:0,itemLabels:[],constructor:function(){this.stateCircleOffset=36},getSvgFileName:function(){return"DiscreteKnob"},getSVGFileText:function(e){return u},setUpComponentOnLoad:function(){this.setupCommonKnobDefaults(),this.setUpDiscreteKnobDefaults()},getInitializationPropertyNames:function(){var e=this.inherited(arguments),t=["Items","SelectedIndex"];e&&(t=t.concat(e));var i=this.getInitializationFontPropertyNames();return i&&(t=t.concat(i)),t},setUpDiscreteKnobDefaults:function(){var e=this.SVGDocument.getElementById("Center");this.centerX=parseFloat(e.getAttribute("cx")),this.centerY=parseFloat(e.getAttribute("cy"))},doSetProperties:function(e){var t=this.getInnerSizeInPixels();this.inherited(arguments),this._arePropertyNamesPresent(e,["FontName","FontSize","FontAngle","FontWeight"])&&this._setStateCirclesAndLabels(t,this.itemLabels,!0)},_setItemsOnWidget:function(e){this.itemLabels=e;var t=this.getInnerSizeInPixels();this._setStateCirclesAndLabels(t,e,!0)},_setSelectedIndexOnWidget:function(e){this._setValue(this.itemLabels.length,e)},handleInnerSizeSet:function(e){this.inherited(arguments),this._setNewStateCircleOffset(e);var t=this.itemLabels;this._setStateCirclesAndLabels(e,t,!0)},getLabelsAndAngles:function(){var e=this._getAngularDistributionOfStates(this.numberOfStates);return{labels:this.itemLabels,positions:e}},repositionOuterArtComponents:function(e){var t=this._getAngularDistributionOfStates(this.numberOfStates);this._setStateCircles(t)},_setStateCirclesAndLabels:function(e,t,i){var o=t.length,r=this._getAngularDistributionOfStates(o),a=n.position(this.SVGDocument.getElementById("Center"));this._createAndCleanUpStateCircleDiv(),this._setStateCircles(r),this.createAndCleanUpLabelDiv(),this.positionLabels(t,r);var s=this._calculateContainerDomPosition();i&&this.setNewPositions(s,a)},_createAndCleanUpStateCircleDiv:function(){void 0===this.stateCirclesDiv?(this.stateCirclesDiv=i.create("div",{id:"State_Circles"},this.SVGContainer,"last"),this.stateCirclesDiv.style.bottom="50%",this.stateCirclesDiv.style.left="50%",this.stateCirclesDiv.style.width=100*(this.radius+this._defaultStateCircleDiameter/2)/this._defaultSVGWidth+"%",this.stateCirclesDiv.style.height=100*(this.radius+this._defaultStateCircleDiameter/2)/this._defaultSVGHeight+"%",this.stateCirclesDiv.style.position="absolute"):r.removeChildNodes(this.stateCirclesDiv)},_setStateCircles:function(e){for(var t,i=this.scalingFactor*this._defaultStateCircleDiameter,n=this.scalingFactor*this._defaultStateCircleBoundingBoxSize,o=0;o<this.numberOfStates;o++){var r=e[o],a=this.stateCirclesDiv.childNodes[o];void 0===a?(a=this._createCircleAnchor(),t=this._createCircleElement(o,a)):t=a.childNodes[0],this._positionStateCircleAnchor(a,r),this._positionStateCircle(t,n,r),t.style.width=i+"px",t.style.height=i+"px"}},_createCircleAnchor:function(){return i.create("div",{class:"vc-radialMarker"},this.stateCirclesDiv,"last")},_createCircleElement:function(e,t){var n=this._stateCircleIdPrefix+e;return i.create("span",{class:"vc-discreteKnobStateCircle",id:n},t,"last")},_positionStateCircleAnchor:function(e,t){var i=this.calculateRadialPosition(t,100);e.style.left=i.x+"%",e.style.bottom=i.y+"%"},_positionStateCircle:function(e,t,i){var n=.5*t,o=n*(Math.cos(s.toRadians(i))+1),r=n*(Math.sin(s.toRadians(i))-1);return e.style.left=-o+"px",e.style.bottom=r+"px",e},_setNewStateCircleOffset:function(e){var t=e[0]/2;this.stateCircleOffset=this.stateCircleRadiusRatio*t,0===this.scalingFactor?this.labelRadius=this.labelOffsetFromCircle:this.labelRadius=this.stateCircleOffset/this.scalingFactor+this.labelOffsetFromCircle},getMaxInnerWidth:function(e,t){var i=this._defaultStateCircleBoundingBoxSize-this._defaultStateCircleDiameter,n=(e[0]/2-this.labelOffsetFromCircle-t-i)/(this.stateCircleRadiusRatio/2+this._defaultStateCircleDiameter/this._defaultSVGWidth);return Math.max(0,n)},getMaxInnerHeight:function(e,t){var i=this._defaultStateCircleBoundingBoxSize-this._defaultStateCircleDiameter,n=(e[1]/2-this.labelOffsetFromCircle-t-i)/(this.stateCircleRadiusRatio/2+this._defaultStateCircleDiameter/this._defaultSVGHeight);return Math.max(0,n)},_calculateContainerWithLabelsDomPosition:function(){for(var e,t=this.inherited(arguments),i=t.minimumX,o=t.maximumX,r=t.minimumY,a=t.maximumY,s=this.stateCirclesDiv.childNodes,l=0;l<=s.length-1;l++)e=n.position(s[l]),i=Math.min(i,e.x),o=Math.max(o,e.x+e.w),r=Math.min(r,e.y),a=Math.max(a,e.y+e.h);return t={minimumX:i,maximumX:o,minimumY:r,maximumY:a}},getRelativeHubPosition:function(){return{x:(0+this._defaultHubRadius)/this._defaultSVGWidth,y:(0+this._defaultHubRadius)/this._defaultSVGHeight}},_setValue:function(e,t){var i=this._getAngularDistributionOfStates(e)[t-1]+this.needleAngleFactor;this.rotateNeedle(i)},mouseMoving:function(e){},mouseMoved:function(e){this.mouseClicked({target:{tagName:"Invalid"}},s.toPositiveAngle(this.getNeedleRotationAngle()))},mouseClicked:function(e,t){var i=e.target;if("span"===i.tagName.toLowerCase()&&"State_Circles"===i.parentNode.id){var o=this.getCenterOfElement(i),a={clientX:o.x,clientY:o.y};t=this.getAngleRelativeToHub(a)}else if("span"===i.tagName.toLowerCase()&&"State_Labels"===i.parentNode.id){var s=r.findChildNode(i.parentNode),l=n.position(this.stateCirclesDiv.childNodes[s]),c={clientX:l.x,clientY:l.y};t=this.getAngleRelativeToHub(c)}else if(void 0===t)return;for(var d,u=this.numberOfStates,h=this._getAngularDistributionOfStates(u),p=-1,f=0,g=0;g<h.length;g++){var m=h[g]+this.needleAngleFactor,_=Math.abs(t-m);(void 0===d||d>_)&&(p=g,f=m,d=_)}this.rotateNeedle(f);var v={SelectedIndex:p+1};this.handleUserInteraction("StateChanged",v,v)},_getAngularDistributionOfStates:function(e){this._computeStartAndSpanAngles(e);for(var t=this.angularSpan/(e-1),i=this.startAngle,n=[],o=0;o<e;o++)n[o]=i,i+=t;return n},_computeStartAndSpanAngles:function(e){2===e?(this.startAngle=45,this.angularSpan=90):e>=3&&e<=5?(this.startAngle=0,this.angularSpan=180):(this.startAngle=-45,this.angularSpan=270),this.needleAngleFactor=45,this.numberOfStates=e},getMinMaxAngles:function(){var e=this.startAngle+this.needleAngleFactor;return{minAngle:e,maxAngle:e+this.angularSpan}},getCenterOfElement:function(e){var t=n.position(e);return{x:t.x+t.w/2,y:t.y+t.h/2}},computeFinalMinMaxValues:function(e,t){return{minimumX:Math.min(e.minimumX,t.minimumX),maximumX:Math.max(e.maximumX,t.maximumX),minimumY:Math.min(e.minimumY,t.minimumY),maximumY:Math.max(e.maximumY,t.maximumY)}},_computeFitSize:function(){for(var e=this.getPeerNode().getProperty("Items"),t=0,i=o.getWidgetFontStyleMap(this.getPeerNode()),n=[],r=0;r<e.length;r++){var a=o.getTextPosition(e[r],i);n.push(a.w),t=Math.max(t,a.h)}var s=this._getTwoLargestLengths(n),l=s[0],c=s[1],d=2*this._defaultHubRadius+2*this._defaultStateCircleBoundingBoxSize+2*this.labelOffsetFromCircle+l+c,u=2*this._defaultHubRadius+this._defaultStateCircleBoundingBoxSize+this.labelOffsetFromCircle+t,h=this.getInnerSizeForGivenOuterSize([d,u]);return 2*this._defaultHubRadius>h[0]&&(d+=2*this._defaultHubRadius-h[0],u+=2*this._defaultHubRadius-h[1]),2*this._defaultHubRadius<2*t&&(u+=t),[d,u]},_editPropertiesAffectingFitSize:function(e){return e.concat(["Items"])}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px" height="60px" viewBox="0 0 60 60" enable-background="new 0 0 60 60" xml:space="preserve"><g id="outer_circle"><g><path fill="#BBBDBF" d="M30,59.8C13.6,59.8,0.2,46.4,0.2,30S13.6,0.3,30,0.3S59.8,13.7,59.8,30S46.4,59.8,30,59.8z"></path><path fill="#808184" d="M30,0.6c16.3,0,29.5,13.2,29.5,29.5S46.3,59.5,30,59.5S0.5,46.3,0.5,30S13.7,0.6,30,0.6 M30,0.1 C13.4,0.1,0,13.5,0,30s13.4,30,30,30s30-13.4,30-30S46.6,0.1,30,0.1L30,0.1z"></path></g></g><g id="Needle"><g opacity="0.75"><linearGradient id="SVGID_1_DiscreteKnob" gradientUnits="userSpaceOnUse" x1="47.9163" y1="123.0383" x2="47.9163" y2="-26.8596" gradientTransform="matrix(0.2828 -0.2828 0.2828 0.2828 2.8496 30.001)"><stop offset="0.3" style="stop-color:#A6A8AB;stop-opacity:0"></stop><stop offset="0.45" style="stop-color:#A6A8AB"></stop><stop offset="0.55" style="stop-color:#A6A8AB"></stop><stop offset="0.7" style="stop-color:#A6A8AB;stop-opacity:0"></stop></linearGradient><ellipse fill="url(#SVGID_1_DiscreteKnob)" cx="30" cy="30" rx="30" ry="30"></ellipse></g><g><path fill="#D0D2D3" d="M54.4,13.7c-1.1-1.6-2.3-3-3.6-4.4c-1.3-1.3-2.7-2.5-4.2-3.5L5.8,46.6c1,1.5,2.2,2.9,3.5,4.2 c1.4,1.4,2.9,2.6,4.4,3.6L54.4,13.7z"></path></g><path opacity="0.5" fill="#FFFFFF" enable-background="new " d="M6.6,47.4L47.4,6.7c1.4,0.9,2.6,2,3.9,3.2 c-0.2-0.2-0.4-0.4-0.5-0.6c-1.3-1.3-2.7-2.5-4.2-3.5L5.8,46.5c1,1.5,2.2,2.9,3.5,4.2c0.2,0.2,0.4,0.4,0.6,0.5 C8.6,50,7.6,48.7,6.6,47.4z"></path><path opacity="0.1" fill="#FFFFFF" enable-background="new " d="M12.6,53.3l40.8-40.7c-0.9-1.4-2-2.6-3.2-3.9 c0.2,0.2,0.4,0.4,0.6,0.5c1.3,1.3,2.5,2.7,3.5,4.2L13.4,54.2c-1.5-1-2.9-2.2-4.2-3.5c-0.2-0.2-0.4-0.4-0.5-0.6 C9.9,51.3,11.2,52.4,12.6,53.3z"></path><polygon fill="#808184" points="46.2,5.3 4.9,46.4 5.4,46.9 46.7,5.7 "></polygon><polygon fill="#808184" points="13.4,54.6 54.5,13.6 54.9,14.2 13.7,55.2 "></polygon><rect x="6.8" y="43.8" transform="matrix(0.7077 -0.7065 0.7065 0.7077 -27.159 23.9064)" fill="#E04145" width="17.1" height="2"></rect></g><g id="tooManyTicksErrorMessage" visibility="hidden"><g display="inline"><path fill="#BBBDBF" d="M30,59.8C13.6,59.8,0.2,46.4,0.2,30S13.6,0.3,30,0.3S59.8,13.7,59.8,30S46.4,59.8,30,59.8z"></path><path fill="#808184" d="M30,0.6c16.3,0,29.5,13.2,29.5,29.5S46.3,59.5,30,59.5S0.5,46.3,0.5,30S13.7,0.6,30,0.6 M30,0.1 C13.4,0.1,0,13.5,0,30s13.4,30,30,30s30-13.4,30-30S46.6,0.1,30,0.1L30,0.1z"></path></g><text transform="matrix(1.0017 0 0 1 20.6812 23.7217)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="9.9834">Too</text><text transform="matrix(1.0017 0 0 1 5.6812 35.7012)" display="inline" fill="#E04145" font-family="&#x27;Helvetica&#x27;" font-size="9.9834">many ticks</text></g><g id="Center_Point" visibility="hidden"><g display="inline"><circle id="Center" fill="#D1D3D4" cx="30" cy="30" r="0.5"></circle></g></g><g id="Radius" visibility="hidden"><line id="RadiusLine" display="inline" fill="none" stroke="#A7A9AC" stroke-width="0.25" x1="30" y1="30" x2="30" y2="0"></line></g><g id="InnerHitRadius" visibility="hidden"><line id="InnerHitRadiusLine" display="inline" fill="none" stroke="blue" stroke-width="0.25" x1="30" y1="30" x2="18" y2="30"></line></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(2181),i(5938),i(5939)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{getSvgFileName:function(){var e=this.WidgetData.getProperty("Orientation");switch(e){case"horizontal":return"RockerSwitch_horizontal";case"vertical":return"RockerSwitch_vertical";default:throw new Error("unrecognized orientation of RockerSwitch: "+e)}},getSVGFileText:function(e){switch(e){case"RockerSwitch_horizontal":return i;case"RockerSwitch_vertical":return n;default:throw new Error("unrecognized svgtext of "+e)}},shouldToggleSwitch:function(e,t,i,n){var o=this.getCurrentState()===this.OFF_STATE_INDEX,r=0,a=this.WidgetData.getProperty("Orientation");if("click"===e)r=1/3;else{if("move"!==e)throw new Error("unexpected eventType in shouldToggleSwitch: "+e);r=.5}var s=!1;return"horizontal"===a?o?t>=i+r*n&&(s=!0):t<=i+(1-r)*n&&(s=!0):o?t<=i+(1-r)*n&&(s=!0):t>=i+r*n&&(s=!0),s}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(287),i(961)],o=i.dj.d(n,(function(e,t,i){return e([],{getInnerSizeForGivenOuterSize:function(e){return this.calculateNewInnerSizeGivenCellSize(e)},_getPreferredsizeAttr:function(){var e=this.getDivsContributingToOuterSize(),t=i.calculateOuterSize(e);return{width:Math.ceil(t[0]),height:Math.ceil(t[1])}},calculateNewInnerSizeGivenCellSize:function(e){var n,o,r=t.getWidgetFontStyleMap(this.WidgetData),a=t.getTextPosition(this.offLabel.textContent,r),s=t.getTextPosition(this.onLabel.textContent,r);"horizontal"===this.WidgetData.getProperty("Orientation")?(n=e[0]-a.w-s.w-2*this.labelArtPadding,o=e[1]):(n=e[0],o=e[1]-a.h-s.h-2*this.labelArtPadding);n-=2,o-=2,n=Math.max(0,n),o=Math.max(0,o);var l=this.peernode.getProperty("AspectRatioLimits");return i.calculateMaxSizeGivenAspectRatio([n,o],l)},getDivsContributingToOuterSize:function(){var e=[this.SVGContainer];return this.offLabel.textContent&&e.push(this.offLabel),this.onLabel.textContent&&e.push(this.onLabel),e}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 45 20" enable-background="new 0 0 45 20" width="45px" height="20px" xml:space="preserve"><g id="Body"><g id="Off_State" visibility="visible"><path fill="#808080" d="M35.5,20c5.1,0,9.5-4.6,9.5-10c0-5.4-4.3-10-9.5-10L9.4,0C4.2,0,0,4.5,0,10c0,5.5,4.2,10,9.4,10H35.5z"></path><defs><linearGradient id="SVGID_1_RockerSwitch_horizontal" gradientUnits="userSpaceOnUse" x1="-354.7141" y1="1573.8453" x2="-354.7141" y2="1554.8988" gradientTransform="matrix(-1 0 0 1 -332.2142 -1554.3728)"><stop offset="0" style="stop-color:#999999"></stop><stop offset="1" style="stop-color:#FFFFFF"></stop></linearGradient></defs><path stroke="#000000" stroke-width="0.25" fill="url(#SVGID_1_RockerSwitch_horizontal)" d="M35.5,19.5c4.8,0,8.9-4.3,8.9-9.5c0-5.1-4.1-9.5-8.9-9.5H9.4c-4.9,0-8.9,4.2-8.9,9.5 c0,5.2,4,9.5,8.9,9.5H35.5z"></path><defs><linearGradient id="SVGID_2_RockerSwitch_horizontal" gradientUnits="userSpaceOnUse" x1="-333.5455" y1="1564.3721" x2="-373.777" y2="1564.3721" gradientTransform="matrix(-1 0 0 1 -332.2142 -1554.3728)"><stop offset="0" style="stop-color:#C7C7C7"></stop><stop offset="1" style="stop-color:#F3F3F3"></stop></linearGradient></defs><path fill="url(#SVGID_2_RockerSwitch_horizontal)" d="M9.4,1.2h24c4.5,0,8.2,4,8.2,8.8c0,4.8-3.8,8.8-8.2,8.8h-24c-4.5,0-8.2-3.9-8.2-8.8 C1.2,5.2,4.9,1.2,9.4,1.2z"></path><defs><linearGradient id="SVGID_3_RockerSwitch_horizontal" gradientUnits="userSpaceOnUse" x1="-333.5439" y1="1564.2875" x2="-373.1547" y2="1564.2875" gradientTransform="matrix(-1 0 0 1 -332.2142 -1554.3728)"><stop offset="0" style="stop-color:#DEDFE0"></stop><stop offset="0.49" style="stop-color:#F2F2F2"></stop><stop offset="0.51" style="stop-color:#E3E3E3"></stop><stop offset="1" style="stop-color:#A6A6A6"></stop></linearGradient></defs><path fill="url(#SVGID_3_RockerSwitch_horizontal)" d="M9.4,1.1h23.4c4.5,0,8.2,4,8.2,8.8c0,4.8-3.8,8.8-8.2,8.8H9.4c-4.5,0-8.2-3.9-8.2-8.8 C1.2,5.1,4.9,1.1,9.4,1.1z"></path><rect x="20.6" y="0.5" opacity="0.1" width="0.5" height="18.9"></rect><rect display="none" id="RampSection_Off" x="10.6" y="0.5" opacity="0.1" width="0.5" height="18.9"></rect><rect display="none" id="RaisedSection_Off" x="42.6" y="5.5" opacity="0.1" width="0.5" height="8.9"></rect></g><g id="On_State" visibility="hidden"><path display="inline" fill="#808080" d="M9,20c-4.9,0-9-4.6-9-10C0,4.6,4.1,0,9,0l27,0c4.9,0,9,4.5,9,10c0,5.5-4,10-9,10H9z"></path><defs><linearGradient id="SVGID_4_RockerSwitch_horizontal" gradientUnits="userSpaceOnUse" x1="435.5717" y1="1573.8453" x2="435.5717" y2="1554.8988" gradientTransform="matrix(1 0 0 1 -413.071 -1554.3721)"><stop offset="0" style="stop-color:#999999"></stop><stop offset="1" style="stop-color:#FFFFFF"></stop></linearGradient></defs><path stroke="#000000" stroke-width="0.25" display="inline" fill="url(#SVGID_4_RockerSwitch_horizontal)" d="M9,19.5c-4.6,0-8.5-4.3-8.5-9.5c0-5.1,3.9-9.5,8.5-9.5h27c4.7,0,8.5,4.2,8.5,9.5 c0,5.2-3.8,9.5-8.5,9.5H9z"></path><defs><linearGradient id="SVGID_5_RockerSwitch_horizontal" gradientUnits="userSpaceOnUse" x1="456.7939" y1="1564.3721" x2="416.3593" y2="1564.3721" gradientTransform="matrix(1 0 0 1 -413.071 -1554.3721)"><stop offset="0" style="stop-color:#C7C7C7"></stop><stop offset="1" style="stop-color:#F3F3F3"></stop></linearGradient></defs><path display="inline" fill="url(#SVGID_5_RockerSwitch_horizontal)" d="M36,1.2H11.1c-4.3,0-7.9,4-7.9,8.8c0,4.8,3.6,8.8,7.9,8.8H36 c4.3,0,7.8-3.9,7.8-8.8C43.8,5.2,40.3,1.2,36,1.2z"></path><defs><linearGradient id="SVGID_6_RockerSwitch_horizontal" gradientUnits="userSpaceOnUse" x1="456.7954" y1="1564.2875" x2="416.9542" y2="1564.2875" gradientTransform="matrix(1 0 0 1 -413.071 -1554.3721)"><stop offset="6.000000e-02" style="stop-color:#DEDFE0"></stop><stop offset="0.49" style="stop-color:#D4D5D7"></stop><stop offset="0.51" style="stop-color:#EDEEF0"></stop><stop offset="0.95" style="stop-color:#FFFFFF"></stop></linearGradient></defs><path display="inline" fill="url(#SVGID_6_RockerSwitch_horizontal)" d="M36,1.1H11.7c-4.3,0-7.9,4-7.9,8.8c0,4.8,3.6,8.8,7.9,8.8H36 c4.3,0,7.8-3.9,7.8-8.8C43.8,5.1,40.3,1.1,36,1.1z"></path><rect x="23.6" y="0.5" display="inline" opacity="0.1" width="0.4" height="18.9"></rect><rect display="none" id="RampSection_On" x="30.6" y="0.5" opacity="0.1" width="0.5" height="18.9"></rect><rect display="none" id="RaisedSection_On" x="1.6" y="5.5" opacity="0.1" width="0.5" height="10.9"></rect></g></g></svg>'},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 20 45" enable-background="new 0 0 20 45" width="20px" height="45px" xml:space="preserve"><g id="Body"><g id="Off_State" visibility="visible"><path fill="#808080" d="M0,9.5C0,4.3,4.6,0,10,0c5.4,0,10,4.3,10,9.5v26.2c0,5.2-4.5,9.4-10,9.4c-5.5,0-10-4.2-10-9.4V9.5z"></path><defs><linearGradient id="SVGID_1_RockerSwitch_vertical" gradientUnits="userSpaceOnUse" x1="-367.2141" y1="1586.3453" x2="-367.2141" y2="1567.3988" gradientTransform="matrix(0 1 -1 0 1586.8721 389.7136)"><stop offset="0" style="stop-color:#999999"></stop><stop offset="1" style="stop-color:#FFFFFF"></stop></linearGradient></defs><path stroke="#000000" stroke-width="0.25" fill="url(#SVGID_1_RockerSwitch_vertical)" d="M0.5,9.5c0-4.8,4.3-8.9,9.5-8.9c5.1,0,9.5,4.1,9.5,8.9v26.2c0,4.9-4.2,8.9-9.5,8.9 c-5.2,0-9.5-4-9.5-8.9V9.5z"></path><defs><linearGradient id="SVGID_2_RockerSwitch_vertical" gradientUnits="userSpaceOnUse" x1="-346.0455" y1="1576.8721" x2="-386.277" y2="1576.8721" gradientTransform="matrix(0 1 -1 0 1586.8721 389.7136)"><stop offset="0" style="stop-color:#C7C7C7"></stop><stop offset="1" style="stop-color:#F3F3F3"></stop></linearGradient></defs><path fill="url(#SVGID_2_RockerSwitch_vertical)" d="M18.8,35.6v-24c0-4.5-4-8.2-8.8-8.2c-4.8,0-8.8,3.8-8.8,8.2v24c0,4.5,3.9,8.2,8.8,8.2 C14.8,43.8,18.8,40.1,18.8,35.6z"></path><defs><linearGradient id="SVGID_3_RockerSwitch_vertical" gradientUnits="userSpaceOnUse" x1="-346.0439" y1="1576.7875" x2="-385.6547" y2="1576.7875" gradientTransform="matrix(0 1 -1 0 1586.8721 389.7136)"><stop offset="0" style="stop-color:#DEDFE0"></stop><stop offset="0.49" style="stop-color:#F2F2F2"></stop><stop offset="0.51" style="stop-color:#E3E3E3"></stop><stop offset="1" style="stop-color:#A6A6A6"></stop></linearGradient></defs><path fill="url(#SVGID_3_RockerSwitch_vertical)" d="M18.9,35.6V12.2c0-4.5-4-8.2-8.8-8.2c-4.8,0-8.8,3.8-8.8,8.2v23.4c0,4.5,3.9,8.2,8.8,8.2 C14.9,43.8,18.9,40.1,18.9,35.6z"></path><rect x="0.5" y="23.9" opacity="0.1" width="18.9" height="0.5"></rect><rect display="none" id="RaisedSection_Off" x="3.5" y="2.9" opacity="0.1" width="13.9" height="0.5"></rect><rect display="none" id="RampSection_Off" x="0.5" y="35.9" opacity="0.1" width="18.9" height="0.5"></rect></g><g id="On_State" visibility="hidden"><path display="inline" fill="#808080" d="M0,36c0,4.9,4.6,9,10,9c5.4,0,10-4.1,10-9V9c0-4.9-4.5-9-10-9C4.5,0,0,4,0,9V36z"></path><defs><linearGradient id="SVGID_4_RockerSwitch_vertical" gradientUnits="userSpaceOnUse" x1="423.0717" y1="1586.3453" x2="423.0717" y2="1567.3988" gradientTransform="matrix(0 -1 -1 0 1586.8721 445.571)"><stop offset="0" style="stop-color:#999999"></stop><stop offset="1" style="stop-color:#FFFFFF"></stop></linearGradient></defs><path stroke="#000000" stroke-width="0.25" display="inline" fill="url(#SVGID_4_RockerSwitch_vertical)" d="M0.5,36c0,4.6,4.3,8.5,9.5,8.5c5.1,0,9.5-3.9,9.5-8.5V9c0-4.7-4.2-8.5-9.5-8.5 C4.8,0.5,0.5,4.3,0.5,9V36z"></path><defs><linearGradient id="SVGID_5_RockerSwitch_vertical" gradientUnits="userSpaceOnUse" x1="444.2939" y1="1576.8721" x2="403.8593" y2="1576.8721" gradientTransform="matrix(0 -1 -1 0 1586.8721 445.571)"><stop offset="0" style="stop-color:#C7C7C7"></stop><stop offset="1" style="stop-color:#F3F3F3"></stop></linearGradient></defs><path display="inline" fill="url(#SVGID_5_RockerSwitch_vertical)" d="M18.8,9v24.9c0,4.3-4,7.9-8.8,7.9c-4.8,0-8.8-3.6-8.8-7.9V9c0-4.3,3.9-7.8,8.8-7.8 C14.8,1.2,18.8,4.7,18.8,9z"></path><defs><linearGradient id="SVGID_6_RockerSwitch_vertical" gradientUnits="userSpaceOnUse" x1="444.2954" y1="1576.7875" x2="404.4542" y2="1576.7875" gradientTransform="matrix(0 -1 -1 0 1586.8721 445.571)"><stop offset="6.000000e-02" style="stop-color:#DEDFE0"></stop><stop offset="0.49" style="stop-color:#D4D5D7"></stop><stop offset="0.51" style="stop-color:#EDEEF0"></stop><stop offset="0.95" style="stop-color:#FFFFFF"></stop></linearGradient></defs><path display="inline" fill="url(#SVGID_6_RockerSwitch_vertical)" d="M18.9,9v24.3c0,4.3-4,7.9-8.8,7.9c-4.8,0-8.8-3.6-8.8-7.9V9c0-4.3,3.9-7.8,8.8-7.8 C14.9,1.2,18.9,4.7,18.9,9z"></path><rect x="0.5" y="21" display="inline" opacity="0.1" width="18.9" height="0.4"></rect><rect display="none" id="RaisedSection_On" x="0.5" y="21" display="inline" opacity="0.1" width="18.9" height="0.4"></rect><rect display="none" id="RampSection_On" x="3.5" y="42.4" display="inline" opacity="0.1" width="13.9" height="0.4"></rect></g></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(2182),i(5941),i(5942),i(5943),i(5944)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t],{getSvgFileName:function(){var e=this.WidgetData.getProperty("Orientation");switch(e){case"horizontal":return"SliderSwitch_horizontal";case"vertical":return"SliderSwitch_vertical";default:throw new Error("unrecognized orientation of SliderSwitch: "+e)}},getSVGFileText:function(e){switch(e){case"SliderSwitch_horizontal":return o;case"SliderSwitch_vertical":return r;default:throw new Error("unrecognized svgtext of "+e)}},setActiveSwitch:function(){"horizontal"===this.WidgetData.getProperty("Orientation")?(void 0===this.horizontalSliderSwitch&&(this.horizontalSliderSwitch=new n(this.thumbElement,this.trackElement)),this.activeSwitch=this.horizontalSliderSwitch):(void 0===this.verticalSliderSwitch&&(this.verticalSliderSwitch=new i(this.thumbElement,this.trackElement)),this.activeSwitch=this.verticalSliderSwitch),this.activeSwitch.setThumbTrackElements(this.thumbElement,this.trackElement)},setUpComponentOnLoad:function(){this.trackElement=this.SVGDocument.getElementById("Body"),this.thumbElement=this.SVGDocument.getElementById("Thumb"),this.setActiveSwitch(),this.inherited(arguments)},onMouseUp:function(e){var t=5;if(this.mouseMoved){if(this.mouseGestureDistance<t&&this.currentState===this.getCurrentState())this.onMouseClicked(e);else if(this.snapToClosestState(),this.currentState!==this.getCurrentState()){var i={SelectedIndex:this.activeSwitch.getCurrentState()};this.handleUserInteraction("StateChanged",i,i)}}else this.onMouseClicked(e);this.inherited(arguments)},onMouseMove:function(e){this.inherited(arguments),this.activeSwitch.centerThumbOnMousePoint(e)},getCurrentState:function(){return this.activeSwitch.getCurrentState()},setValueOn:function(e){this.activeSwitch.setValueOn()},setValueOff:function(e){this.activeSwitch.setValueOff()},snapToClosestState:function(){this.setValue(this.getCurrentState())},cleanUpAfterMouseInteraction:function(){delete this.mouseDownOnThumb,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(2183)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e,t){this.maxTranslate=-25},centerThumbOnMousePoint:function(e){var i=t.position(this.thumbElement),n=t.position(this.trackElement),o=i.h,r=n.h,a=(n.y+r-o/2-e.clientY)/o*this.maxTranslate;a>0&&(a=0),a<this.maxTranslate&&(a=this.maxTranslate);var s="translate(0, "+a+")";this.thumbElement.setAttribute("transform",s)},getCurrentState:function(){return this.getThumbTranslate()>=this.maxTranslate/2?this.OFF_STATE_INDEX:this.ON_STATE_INDEX},setThumbTranslate:function(e){this.thumbElement.setAttribute("transform","translate(0,"+e+")")},getThumbTranslate:function(){return this.thumbElement.transform.baseVal.getItem(0).matrix.f}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(2183)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e,t){this.maxTranslate=25},centerThumbOnMousePoint:function(e){var i=t.position(this.thumbElement),n=t.position(this.trackElement),o=i.w,r=n.x,a=(e.clientX-r-o/2)/o*this.maxTranslate;a<0&&(a=0),a>this.maxTranslate&&(a=this.maxTranslate);var s="translate("+a+",0)";this.thumbElement.setAttribute("transform",s)},getCurrentState:function(){return this.getThumbTranslate()<=this.maxTranslate/2?this.OFF_STATE_INDEX:this.ON_STATE_INDEX},setThumbTranslate:function(e){this.thumbElement.setAttribute("transform","translate("+e+",0)")},getThumbTranslate:function(){return this.thumbElement.transform.baseVal.getItem(0).matrix.e}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 45 20" enable-background="new 0 0 45 20" width="45px" height="20px" xml:space="preserve"><g id="Body"><path fill="#939598" d="M10,0C4.5,0,0,4.5,0,10c0,5.5,4.5,10,10,10h25c5.5,0,10-4.5,10-10c0-5.5-4.5-10-10-10H10z"></path><path fill="#808285" d="M10,1h25c5.4,0,9.7,4.2,10,9.5c0-0.2,0-0.3,0-0.5c0-5.5-4.5-10-10-10H10C4.5,0,0,4.5,0,10 c0,0.2,0,0.3,0,0.5C0.3,5.2,4.6,1,10,1z"></path></g><g id="Thumb" transform="translate(0,0)"><circle id="Thumb_DragTarget" fill="#D1D3D4" cx="10" cy="10" r="9"></circle><path opacity="0.5" fill="#FFFFFF" d="M10,2c4.8,0,8.7,3.8,9,8.5c0-0.2,0-0.3,0-0.5c0-5-4-9-9-9c-5,0-9,4-9,9c0,0.2,0,0.3,0,0.5 C1.3,5.8,5.2,2,10,2z"></path></g></svg>'},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 20 45" enable-background="new 0 0 20 45" width="20px" height="45px" xml:space="preserve"><g id="Body"><path fill="#939598" d="M0,35c0,5.5,4.5,10,10,10c5.5,0,10-4.5,10-10V10c0-5.5-4.5-10-10-10C4.5,0,0,4.5,0,10V35z"></path><path fill="#808285" d="M10,0C4.5,0,0,4.5,0,10v1C0,5.5,4.5,1,10,1c5.5,0,10,4.5,10,10v-1C20,4.5,15.5,0,10,0z"></path></g><g id="Thumb" transform="translate(0,0)"><circle id="Thumb_DragTarget" fill="#D1D3D4" cx="10" cy="35" r="9"></circle><path opacity="0.5" fill="#FFFFFF" d="M10,27c4.8,0,8.7,3.8,9,8.5c0-0.2,0-0.3,0-0.5c0-5-4-9-9-9c-5,0-9,4-9,9c0,0.2,0,0.3,0,0.5 C1.3,30.8,5.2,27,10,27z"></path></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(2181),i(5946),i(5947)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{getSvgFileName:function(){var e=this.WidgetData.getProperty("Orientation");switch(e){case"horizontal":return"ToggleSwitch_horizontal";case"vertical":return"ToggleSwitch_vertical";default:throw new Error("unrecognized orientation of ToggleSwitch: "+e)}},getSVGFileText:function(e){switch(e){case"ToggleSwitch_horizontal":return i;case"ToggleSwitch_vertical":return n;default:throw new Error("unrecognized svgtext of "+e)}}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="45px" height="20px" viewBox="0 0 45 20" enable-background="new 0 0 45 20" xml:space="preserve"><g id="Body"><rect fill="#FFFFFF" fill-opacity="0" width="45" height="20"></rect></g><g id="Base"><path fill="#C5C7C9" stroke="#6D6E70" stroke-width="0.5" stroke-miterlimit="10" d="M29.3,10c0,3.8-3,6.8-6.8,6.8s-6.8-3-6.8-6.8 s3-6.8,6.8-6.8C26.3,3.2,29.3,6.2,29.3,10z"></path><g><circle fill="#6D6E70" cx="22.5" cy="10" r="4.5"></circle></g></g><g id="Off_State" visibility="visible"><path fill="#6D6E70" d="M8,2c-4.4,0-8,3.6-8,8s3.6,8,8,8c0.8,0,1.6-0.1,2.4-0.4c2.1-0.3,7.7-2,11.6-3.5c1-0.4,1-7.8,0-8.2 c-3.9-1.6-9.5-3.2-11.6-3.5C9.6,2.1,8.8,2,8,2z"></path><linearGradient id="SVGID_1_ToggleSwitch_horizontal" gradientUnits="userSpaceOnUse" x1="-6259.29" y1="-1234.6699" x2="-6259.29" y2="-1210.2699" gradientTransform="matrix(1.346898e-10 -1 -1 -1.346898e-10 -1208.498 -6249.29)"><stop offset="0" style="stop-color:#A3A3A3"></stop><stop offset="0.362" style="stop-color:#D9D9D9"></stop></linearGradient><path fill="url(#SVGID_1_ToggleSwitch_horizontal)" d="M26.2,10c0,1.9-1.6,3.5-3.5,3.5c-0.2,0-1.6,0.4-3,0.9c-3.6,1.1-9,2.7-10.9,2.7c-3.9,0-7-3.2-7-7.1 l0,0c0-1.9,0.7-3.7,2.1-5c1.3-1.3,3.1-2.1,5-2.1s7.3,1.6,10.9,2.7c1.4,0.4,2.8,0.8,3,0.9C24.6,6.5,26.2,8.1,26.2,10L26.2,10z"></path><linearGradient id="SVGID_2_ToggleSwitch_horizontal" gradientUnits="userSpaceOnUse" x1="-6259.29" y1="-1210.2981" x2="-6259.29" y2="-1234.698" gradientTransform="matrix(1.346898e-10 -1 -1 -1.346898e-10 -1208.498 -6249.29)"><stop offset="0.2761" style="stop-color:#F2F2F2"></stop><stop offset="0.8615" style="stop-color:#D9D9D9"></stop><stop offset="1" style="stop-color:#A3A3A3"></stop></linearGradient><path fill="url(#SVGID_2_ToggleSwitch_horizontal)" d="M26.2,10c0,1.9-1.6,3.5-3.5,3.5c-0.2,0-1.6,0.4-3,0.9c-3.6,1.1-9,2.7-10.9,2.7c-3.9,0-7-3.2-7-7.1 l0,0c0-1.9,0.7-3.7,2.1-5c1.3-1.3,3.1-2.1,5-2.1s7.3,1.6,10.9,2.7c1.4,0.4,2.8,0.8,3,0.9C24.6,6.5,26.2,8.1,26.2,10L26.2,10z"></path><path fill="#FFFFFF" d="M3.2,10L3.2,10c0-1.9,0.7-3.7,2.1-5c1.1-1.1,2.6-1.8,4.2-2C9.3,3,9,3,8.8,3c-1.9,0-3.6,0.7-5,2.1 c-1.3,1.3-2.1,3.1-2.1,5l0,0c0,3.9,3.2,7.1,7,7.1c0.2,0,0.4,0,0.7,0C6,16.6,3.2,13.6,3.2,10z"></path></g><g id="On_State" visibility="hidden"><path display="inline" fill="#6D6E70" d="M37,2c4.4,0,8,3.6,8,8s-3.6,8-8,8c-0.8,0-1.6-0.1-2.4-0.4c-2.1-0.3-7.7-2-11.6-3.5 c-1-0.4-1-7.8,0-8.2c3.9-1.6,9.5-3.2,11.6-3.5C35.4,2.1,36.2,2,37,2z"></path><linearGradient id="SVGID_3_ToggleSwitch_horizontal" gradientUnits="userSpaceOnUse" x1="-6259.29" y1="-1195.8418" x2="-6259.29" y2="-1171.4418" gradientTransform="matrix(-8.979319e-11 -1 1 -8.979319e-11 1214.6699 -6249.29)"><stop offset="0" style="stop-color:#A3A3A3"></stop><stop offset="0.362" style="stop-color:#D9D9D9"></stop></linearGradient><path display="inline" fill="url(#SVGID_3_ToggleSwitch_horizontal)" d="M18.8,10c0,1.9,1.6,3.5,3.5,3.5c0.2,0,1.6,0.4,3,0.9c3.6,1.1,9,2.7,10.9,2.7 c3.9,0,7-3.2,7-7.1l0,0c0-1.9-0.7-3.7-2.1-5c-1.3-1.3-3.1-2.1-5-2.1c-1.9,0-7.3,1.6-10.9,2.7c-1.4,0.4-2.8,0.8-3,0.9 C20.4,6.5,18.8,8.1,18.8,10L18.8,10z"></path><linearGradient id="SVGID_4_ToggleSwitch_horizontal" gradientUnits="userSpaceOnUse" x1="-6259.29" y1="-1171.47" x2="-6259.29" y2="-1195.8699" gradientTransform="matrix(-8.979319e-11 -1 1 -8.979319e-11 1214.6699 -6249.29)"><stop offset="0.2761" style="stop-color:#F2F2F2"></stop><stop offset="0.8615" style="stop-color:#D9D9D9"></stop><stop offset="1" style="stop-color:#A3A3A3"></stop></linearGradient><path display="inline" fill="url(#SVGID_4_ToggleSwitch_horizontal)" d="M18.8,10c0,1.9,1.6,3.5,3.5,3.5c0.2,0,1.6,0.4,3,0.9c3.6,1.1,9,2.7,10.9,2.7 c3.9,0,7-3.2,7-7.1l0,0c0-1.9-0.7-3.7-2.1-5c-1.3-1.3-3.1-2.1-5-2.1c-1.9,0-7.3,1.6-10.9,2.7c-1.4,0.4-2.8,0.8-3,0.9 C20.4,6.5,18.8,8.1,18.8,10L18.8,10z"></path><path display="inline" fill="#FFFFFF" d="M41.8,10L41.8,10c0-1.9-0.7-3.7-2.1-5c-1.1-1.1-2.6-1.8-4.2-2c0.2,0,0.5,0,0.7,0 c1.9,0,3.6,0.7,5,2.1c1.3,1.3,2.1,3.1,2.1,5l0,0c0,3.9-3.2,7.1-7,7.1c-0.2,0-0.4,0-0.7,0C39,16.6,41.8,13.6,41.8,10z"></path></g></svg>'},function(e,t){e.exports='<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="20px" height="45px" viewBox="0 0 20 45" enable-background="new 0 0 20 45" xml:space="preserve"><g id="Body"><rect fill="#FFFFFF" fill-opacity="0" width="20" height="45"></rect></g><g id="Base"><path fill="#C5C7C9" stroke="#6D6E70" stroke-width="0.5" stroke-miterlimit="10" d="M10,15.7c3.8,0,6.8,3,6.8,6.8s-3,6.8-6.8,6.8 s-6.8-3-6.8-6.8C3.2,18.7,6.2,15.7,10,15.7z"></path><g><circle fill="#6D6E70" cx="10" cy="22.5" r="4.5"></circle></g></g><g id="Off_State" visibility="visible"><path fill="#6D6E70" d="M2,37c0,4.4,3.6,8,8,8s8-3.6,8-8c0-0.8-0.1-1.6-0.4-2.4c-0.3-2.1-2-7.7-3.5-11.6c-0.4-1-7.8-1-8.2,0 c-1.6,3.9-3.2,9.5-3.5,11.6C2.1,35.4,2,36.2,2,37z"></path><linearGradient id="SVGID_1_ToggleSwitch_vertical" gradientUnits="userSpaceOnUse" x1="-6303.79" y1="-1214.1699" x2="-6303.79" y2="-1189.7699" gradientTransform="matrix(-1 0 0 1 -6293.79 1232.998)"><stop offset="0" style="stop-color:#A3A3A3"></stop><stop offset="0.362" style="stop-color:#D9D9D9"></stop></linearGradient><path fill="url(#SVGID_1_ToggleSwitch_vertical)" d="M10,18.8c1.9,0,3.5,1.6,3.5,3.5c0,0.2,0.4,1.6,0.9,3c1.1,3.6,2.7,9,2.7,10.9c0,3.9-3.2,7-7.1,7l0,0 c-1.9,0-3.7-0.7-5-2.1c-1.3-1.3-2.1-3.1-2.1-5c0-1.9,1.6-7.3,2.7-10.9c0.4-1.4,0.8-2.8,0.9-3C6.5,20.4,8.1,18.8,10,18.8L10,18.8z"></path><linearGradient id="SVGID_2_ToggleSwitch_vertical" gradientUnits="userSpaceOnUse" x1="-6303.79" y1="-1189.7981" x2="-6303.79" y2="-1214.198" gradientTransform="matrix(-1 0 0 1 -6293.79 1232.998)"><stop offset="0.2761" style="stop-color:#F2F2F2"></stop><stop offset="0.8615" style="stop-color:#D9D9D9"></stop><stop offset="1" style="stop-color:#A3A3A3"></stop></linearGradient><path fill="url(#SVGID_2_ToggleSwitch_vertical)" d="M10,18.8c1.9,0,3.5,1.6,3.5,3.5c0,0.2,0.4,1.6,0.9,3c1.1,3.6,2.7,9,2.7,10.9c0,3.9-3.2,7-7.1,7l0,0 c-1.9,0-3.7-0.7-5-2.1c-1.3-1.3-2.1-3.1-2.1-5c0-1.9,1.6-7.3,2.7-10.9c0.4-1.4,0.8-2.8,0.9-3C6.5,20.4,8.1,18.8,10,18.8L10,18.8z"></path><path fill="#FFFFFF" d="M10,41.8L10,41.8c-1.9,0-3.7-0.7-5-2.1c-1.1-1.1-1.8-2.6-2-4.2c0,0.2,0,0.5,0,0.7c0,1.9,0.7,3.6,2.1,5 c1.3,1.3,3.1,2.1,5,2.1l0,0c3.9,0,7.1-3.2,7.1-7c0-0.2,0-0.4,0-0.7C16.6,39,13.6,41.8,10,41.8z"></path></g><g id="On_State" visibility="hidden"><path display="inline" fill="#6D6E70" d="M2,8c0-4.4,3.6-8,8-8s8,3.6,8,8c0,0.8-0.1,1.6-0.4,2.4c-0.3,2.1-2,7.7-3.5,11.6 c-0.4,1-7.8,1-8.2,0c-1.6-3.9-3.2-9.6-3.5-11.7C2.1,9.6,2,8.8,2,8z"></path><linearGradient id="SVGID_3_ToggleSwitch_vertical" gradientUnits="userSpaceOnUse" x1="-6303.79" y1="-1194.3418" x2="-6303.79" y2="-1169.9418" gradientTransform="matrix(-1 0 0 -1 -6293.79 -1168.1699)"><stop offset="0" style="stop-color:#A3A3A3"></stop><stop offset="0.362" style="stop-color:#D9D9D9"></stop></linearGradient><path display="inline" fill="url(#SVGID_3_ToggleSwitch_vertical)" d="M10,26.2c1.9,0,3.5-1.6,3.5-3.5c0-0.2,0.4-1.6,0.9-3c1.1-3.6,2.7-9,2.7-10.9 c0-3.9-3.2-7-7.1-7l0,0c-1.9,0-3.7,0.7-5,2.1C3.7,5.2,2.9,7,2.9,8.9s1.6,7.3,2.7,10.9c0.4,1.4,0.8,2.8,0.9,3 C6.5,24.6,8.1,26.2,10,26.2L10,26.2z"></path><linearGradient id="SVGID_4_ToggleSwitch_vertical" gradientUnits="userSpaceOnUse" x1="-6303.79" y1="-1169.97" x2="-6303.79" y2="-1194.3699" gradientTransform="matrix(-1 0 0 -1 -6293.79 -1168.1699)"><stop offset="0.2761" style="stop-color:#F2F2F2"></stop><stop offset="0.8615" style="stop-color:#D9D9D9"></stop><stop offset="1" style="stop-color:#A3A3A3"></stop></linearGradient><path display="inline" fill="url(#SVGID_4_ToggleSwitch_vertical)" d="M10,26.2c1.9,0,3.5-1.6,3.5-3.5c0-0.2,0.4-1.6,0.9-3c1.1-3.6,2.7-9,2.7-10.9 c0-3.9-3.2-7-7.1-7l0,0c-1.9,0-3.7,0.7-5,2.1C3.7,5.2,2.9,7,2.9,8.9s1.6,7.3,2.7,10.9c0.4,1.4,0.8,2.8,0.9,3 C6.5,24.6,8.1,26.2,10,26.2L10,26.2z"></path><path display="inline" fill="#FFFFFF" d="M10,3.2L10,3.2c-1.9,0-3.7,0.7-5,2.1C3.9,6.4,3.2,7.9,3,9.5C3,9.3,3,9,3,8.8 c0-1.9,0.7-3.6,2.1-5c1.3-1.3,3.1-2.1,5-2.1l0,0c3.9,0,7.1,3.2,7.1,7c0,0.2,0,0.4,0,0.7C16.6,6,13.6,3.2,10,3.2z"></path></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(5949)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){this._registeredEvents={}},registerEvents:function(e){"string"==typeof e&&(e=[e]),e.forEach((function(e){this._registeredEvents[e]||(this._registeredEvents[e]={IsBusy:!1,PendingEvent:null})}),this)},getRegisteredEvents:function(){return Object.keys(this._registeredEvents)},dispatch:function(e,t){if(!this._registeredEvents[e])return this.getRegisteredEvents().forEach((function(e){null!==this._registeredEvents[e].PendingEvent&&(this._dispatchPendingEvent(e),this._registeredEvents[e].IsBusy=!1)}),this),void this._controller.peernode.dispatchEventToServer(e,t);this._registeredEvents[e].IsBusy?this._storeEvent(e,t):(this._controller.peernode.dispatchEventToServer(e,t),this._registeredEvents[e].IsBusy=!0)},_storeEvent:function(e,t){this._registeredEvents[e].PendingEvent=null,this._registeredEvents[e].PendingEvent=t},handlePeerNodePeerEvent:function(e){if("flush"===e.data.Name&&this._registeredEvents[e.data.WidgetEvent]){var t=e.data.WidgetEvent;null===this._registeredEvents[t].PendingEvent?this._registeredEvents[t].IsBusy=!1:this._dispatchPendingEvent(t)}},_dispatchPendingEvent:function(e){var t=this._registeredEvents[e].PendingEvent;this._controller.peernode.dispatchEventToServer(e,t),this._registeredEvents[e].PendingEvent=null},tag4:"from gbt/componentframework."})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._controller=e,this._registeredEvents=[]},getRegisteredEvents:function(){return this._registeredEvents},registerEvents:function(e){"string"==typeof e&&(e=[e]),e.forEach((function(e){-1===this._registeredEvents.indexOf(e)&&this._registeredEvents.push(e)}),this)},dispatch:function(e,t){throw new Error("dispatch must be implemented by the concrete sub-classes")},handlePeerNodePeerEvent:function(e){throw new Error("handlePeerNodePeerEvent must be implemented by the concrete sub-classes")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(689)],o=i.dj.d(n,(function(e,t){return e([t],{shouldInsetsResize:function(){return{horizontal:!0,vertical:!0}},getMinimumInsets:function(){return{horizontal:{left:25,right:24},vertical:{top:22,bottom:21}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(689)],o=i.dj.d(n,(function(e,t){return e([t],{shouldInsetsResize:function(){return{horizontal:!0,vertical:!0}},getMinimumInsets:function(){return{horizontal:{left:29,right:38},vertical:{top:18,bottom:0}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(5953),i(5954)],o=i.dj.d(n,(function(e,t){return{Absolute:e,Grid:t}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{allowPositionSetFromServer:!0,setLayoutConstraints:function(e,t){var i=e.getTopLevelNode();i.style.position="absolute",this.applyCSS(e,i,t)},applyCSS:function(e,t,i){t.style.gridArea="auto",t.style.gridRowStart="auto",t.style.gridRowEnd="auto",t.style.gridColumnStart="auto",t.style.gridColumnEnd="auto",t.style.msGridRow="none",t.style.msGridColumn="none"},sizeViewInCell:function(e){},getPositionOfEnclosingBox:function(e){var t=e.getParentController()._getInnerPositionInPixels();return[0,0,t[2],t[3]]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){function e(e,t,i,n){!function(e){var t=function(e){return"number"==typeof e&&Math.round(e)===e&&e>0};if(!(Array.isArray(e)?e.every(t)&&2===e.length&&e[0]<=e[1]:t(e)))throw new Error("The value of "+e+" should be either a positive integer or an array of 2 positive integers (spanning)!")}(n);var o=function(e){return"number"==typeof e&&(e=[e,e]),{start:e[0],end:e[1]+1,span:e[1]-e[0]+1}}(n=e.getGridWidget().convertToIndexForView(n,i));t.style["grid"+i+"Start"]=o.start.toString(),t.style["grid"+i+"End"]=o.end.toString(),t.style["msGrid"+i]=o.start.toString(),t.style["msGrid"+i+"Span"]=o.span.toString()}function t(e){var t="gbtInLayoutManagerWrapper_"+e.getPeerNode().getId(),i=document.getElementById(t);if(null===i){var n=e.widget.domNode.parentElement;(i=document.createElement("div")).setAttribute("id",t),i.appendChild(e.widget.domNode),n.appendChild(i),function(e){var t=new MutationObserver((function(e){e.forEach((function(e){var t=e.target;"childList"===e.type&&null!==e.removedNodes&&0===t.childNodes.length&&null!==t.parentNode&&t.parentNode.removeChild(t)}))}));t.observe(e,{childList:!0})}(i)}}function i(e){var t=e.getGridWidget(),i=e.getLayoutConstraints(),n=i.Row,o=i.Column;return t.getCellSize(n,o)}function n(e,t,i){void 0===i&&(i={x:0,y:0});var n=function(e,t,i){var n=e.getGridController(),o=n.widget,r=e.getLayoutConstraints(),a=r.Row,s=r.Column,l=o.getColumnLeftPositionInPixelsWrtGrid(s),c=o.getRowTopPositionInPixelsWrtGrid(a),d=n.getPositionInPixels(),u=l+i.x,h=d[3]-c-i.y-t[1];return[u,h,t[0],t[1]]}(e,t.outerSize,i);return{outerPosition:n,innerPosition:function(e,t,i){var n=e.getInsets();return[i[0]+n.left,i[1]+n.bottom,t[0],t[1]]}(e,t.innerSize,n)}}return{allowPositionSetFromServer:!1,setLayoutConstraints:function(e,i){e.requiresWrapperNodeInLayoutContainer&&(t(e),function(e){var t=e.widget.domNode;t.style.top="auto",t.style.left="auto",t.style.bottom="auto",t.style.right="auto"}(e));var n=e.getTopLevelNode();n.style.position="relative",this.applyCSS(e,n,i),this.sizeViewInCell(e)},applyCSS:function(t,i,n){e(t,i,"Row",n.Row),e(t,i,"Column",n.Column)},sizeViewInCell:function(e){var t,o,r,a,s,l,c=i(e),d=e.fillCell(c),u=(t=c,o=d.outerSize,r=t[0],a=t[1],s=o[0],l=o[1],{x:Math.max(0,(r-s)/2),y:Math.max(0,(a-l)/2)});if(function(e,t){var i=e.getTopLevelNode();i.style.marginLeft=t.x+"px",i.style.marginTop=t.y+"px"}(e,u),!0===e.needsServerSideUpdate()){var h=n(e,d,u);e.updatePositionOnServer(h)}var p=e.getTopLevelNode();!function(e,t,i){i[0]>t[0]&&(e.style.width="auto"),i[1]>t[1]&&(e.style.height="auto")}(p,c,d.outerSize),function(e){e.style.top="",e.style.left="",e.style.right="",e.style.bottom=""}(p)},getPositionOfEnclosingBox:function(e){var t=i(e);return n(e,{innerSize:t,outerSize:t}).outerPosition}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(734)],o=i.dj.d(n,(function(e,t){return e([t],{getPropertiesTriggeringRelayout:function(){return{primary:["Orientation","FontName","FontSize","FontAngle","FontWeight"],secondary:["MajorTicks","MajorTickLabels","MinorTicks","Limits","Items","ItemsData"]}},fillCell:function(e){var t=this.widget.getInnerSizeForGivenOuterSize(e);this.setInnerSize(t);var i=this.widget.get("preferredSize");return{innerSize:t,outerSize:[i.width,i.height]}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(493)],o=i.dj.d(n,(function(e,t){return e(null,{editTooltipText:function(e,t){e.forEach((function(e){e.content.text=t}))},createTooltip:function(e,i){return t.createTooltip({referenceNode:e,content:{text:i}})},getNewLinePlaceHolder:function(){return"\n"},isMWTooltipMixin:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1163)],o=i.dj.d(n,(function(e,t){return e(null,{pollForViewReady:function(){return t.waitForCondition(()=>this.widget)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){e.uipress(this.getComponentDomNode())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){e.uipress(this.widget.checkBoxRadioIconNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){let n=this.SVGDocument.getElementById("outer_circle"),o=this.scaledRadius,r=(2-t.Percentage)*this.angularSpan;r=i(r);let a={x:o*(1+Math.cos(r)),y:o*(1-Math.sin(r))};e.uipress(n,a)},uidrag:function(e,t){let n=this.SVGDocument.getElementById("outer_circle"),o=this.scaledRadius,r=(2-t.Percentage[0])*this.angularSpan,a=(2-t.Percentage[1])*this.angularSpan;r=i(r),a=i(a);let s=e.createArcDragPath(o,r,a);for(let e=0;e<s.x.length;e++)s.x[e]=o+s.x[e],s.y[e]=o-s.y[e];e.uidrag(n,s)}});function i(e){return e*Math.PI/180}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uitype:function(e,t){let i;if(null===t.Year||null===t.Month||null===t.Day)i="";else{let e=t.Year<0?"-":"",n="000"+Math.abs(t.Year),o=n.substring(n.length-Math.max(4,n.length-3));o=e+o,i=this.widget.inputFormat.replace(/[u|y]+/,o).replace(/M+/,t.Month).replace(/d+/,t.Day)}let n=this.widget.dateWidget.inputNode;e.uitype(n,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){let i=this.stateCirclesDiv.childNodes[t.Index-1];i=i.querySelector(".vc-discreteKnobStateCircle"),e.uipress(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417),i(1163)],o=i.dj.d(n,(function(e,t,i){return e(t,{uipress:function(e,t){let n=this.widget;t.ExpandOnly?e.uipress(n.arrowNode):(n._openComboBoxMenu(),i.waitForCondition((function(){return function(e){return e._comboBoxMenuOpened}(n)}),30).then((function(){let i=function(e){return e.menu.getChildren()}(n)[t.Index-1];i.scrollIntoView(),e.uipress(i)})))},uitype:function(e,t){let i=this.widget.inputNode;e.uitype(i,t.Text)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){e.uipress(this.getComponentDomNode())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){let i=this.widget.domNode;e.uipress(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){this._scrollToIndex(t.Index);let i=this.widget._getItemNodes()[t.Index-1];e.uipress(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uitype:function(e,t){let i=this.widget.textbox;e.uitype(i,t.Text)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){e.uipress(this.widget.checkBoxRadioIconNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){let i,n=this.widget.sliderTrackNode,o=t.Percentage;"vertical"===this.widget.orientation?(o=1-o,i="y"):i="x";let r={};r[i]=this.widget.getTickLabelTrackLength()*o,e.uipress(n,r)},uidrag:function(e,t){let i,n,o=t.Percentage[0],r=t.Percentage[1],a=this.widget.sliderTrackNode;"vertical"===this.widget.orientation?(o=1-o,r=1-r,i="width",n=["y","x"]):(i="height",n=["x","y"]);let s=this.widget.getTickLabelTrackLength()*o,l=this.widget.getTickLabelTrackLength()*r,c=a.getBoundingClientRect()[i]/2,d={};d[n[0]]=s,d[n[1]]=c;let u={};u[n[0]]=l,u[n[1]]=c;let h=e.createLinearDragPath(d,u);e.uidrag(a,h)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){let i;"up"===t.Direction?i=this.widget.incrementButtonNode:"down"===t.Direction?i=this.widget.decrementButtonNode:console.error("Direction must be 'up' or 'down'"),e.uipress(i)},uicontextmenu:function(e){e.uicontextmenu(this.widget.domNode)},uitype:function(e,t){let i=this.widget.inputNode;e.uitype(i,t.Text)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){e.uipress(this.SVGContainer)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uitype:function(e,t){let i=this.widget.inputNode;e.uitype(i,t.Text)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uitype:function(e,t){let i=this.getFontStyledDomNode();e.uitype(i,t.Text)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:async function(e,t){let n="[data-test-id='"+t.TargetNodeID+"']";await i(this.getComponentDomNode(),n);let o=this._scrollToNode(t),r=o[0],a=o[1];t.ToggleCheckBox&&(a=r.getElementsByClassName("mw-checkbox-tree")[0]),e.uipress(a)},uicontextmenu:async function(e,t){let n="[data-test-id='"+t.TargetNodeID+"']";await i(this.getComponentDomNode(),n);let o=this._scrollToNode(t)[1];e._Options.button=2,e.uicontextmenu(o)},_scrollToNode:function(e){let t=e.TargetNodeID,i="[data-test-id='"+t+"']";this.widget.treeWidget.scrollTo({id:t});let n=this.getComponentDomNode().querySelector(i),o=n.getElementsByClassName("mw-tree-renderer")[0];return o.scrollIntoView(),[n,o]}});function i(e,t){return new Promise((function(i,n){!function n(){e.querySelector(t)?i():requestAnimationFrame(n)}()}))}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1487),i(2184),i(5977),i(2216),i(6178),i(6179),i(6181),i(6184),i(6187),i(6190),i(6193),i(6195),i(6197),i(6327),i(6331),i(6335),i(6338),i(2217),i(1550),i(1511),i(2283),i(2289),i(6360),i(689),i(6361),i(6362),i(6363),i(1512),i(6364),i(6365),i(2186),i(1513),i(6366),i(6372),i(2188),i(6382),i(6383),i(6384),i(6385),i(6386),i(6387)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V){return new e({common:{model:[b],view:[],controller:[t,O,D],properties:[],events:[]},"matlab.ui.Figure":{model:[],controller:[i,C,E,v,P]},"matlab.ui.container.Panel":{model:[],controller:[n,C,E,A,v,k]},"matlab.ui.container.ButtonGroup":{model:[],controller:[o,C,E,A,v]},"matlab.ui.container.TabGroup":{model:[],controller:[r,y,E,x,B]},"matlab.ui.container.Tab":{model:[],controller:[a,T,S,v]},"matlab.ui.container.Menu":{model:[],controller:[s,R]},"matlab.ui.container.Toolbar":{model:[],controller:[l]},"matlab.ui.container.toolbar.PushTool":{model:[],controller:[c,F]},"matlab.ui.container.toolbar.ToggleTool":{model:[],controller:[d,V]},"matlab.ui.container.ContextMenu":{model:[],controller:[u,M]},"matlab.ui.control.Table":{model:[],controller:[h,E,A,H]},"matlab.ui.control.Chart":{model:[],controller:[p,w]},"matlab.ui.control.UIAxes":{model:[],controller:[p,w]},"matlab.ui.container.GridLayout":{model:[],controller:[f,I,N]},"matlab.ui.container.internal.Accordion":{model:[],controller:[g,E,A]},"matlab.ui.container.internal.AccordionPanel":{model:[],controller:[m,E]},"matlab.ui.container.internal.UIContainer":{model:[],controller:[_,C,E,A]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(221),i(256),i(223),i(5978),i(1171),i(6141),i(6150),i(6151),i(2124),i(481),i(482),i(1495),i(6152),i(6167),i(6168),i(6169),i(6170),i(2189),i(965),i(295),i(840),i(6171)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S){return e([a,d,u,h,p,f,T,E],{constructor:function(e){if(g.start("/gbt/figure/DialogService/"+this.getPeerNodeId()),m.start("/gbt/figure/URLService/"+this.getPeerNodeId()),this._MessageServiceProxy=new C,this.own(this._MessageServiceProxy),this._PubSubLogger.log("Construct FigureController for: "+this.getPeerNodeId()),this._FigureACTResponder=new b(this._PubSubLogger),this._CommandReceiver=new v(this._FigureACTResponder),this.own(this._CommandReceiver),this._ConnectionStatus=new y,this.own(this._ConnectionStatus),this.setFitSizeUsed(!0),this._initFigureControllerSynchronizerListener(),this._hostType=this.peernode.getProperty("hostType"),"divclient"===this._hostType&&(this._divFigurehandler=e.environment),"embeddedclient"===this.peernode.getProperty("hostType")){if(!e.environment.divFigureServerMsgHandler.isInstanceOf(s))throw new Error("args.environment.divFigureServerMsgHandler must be an instance of DivFigureMsgFromServerInterface");this._figurePeerNodeIdHandler=e.environment.divFigureServerMsgHandler}if(this.peernode.hasProperty("DrawnowACT")&&this._FigureACTResponder.peermodelUpdate(this.peernode.getProperty("DrawnowACT")),"divclient"===this._hostType||"embeddedclient"===this._hostType){if(!e.environment.divFigureServerMsgHandler.isInstanceOf(s))throw new Error("args.environment.divFigureServerMsgHandler must be an instance of DivFigureMsgFromServerInterface");this._figurePeerNodeIdHandler=e.environment.divFigureServerMsgHandler}},createView:function(e){this.inherited(arguments),this.own(o.subscribe("WebFigure/FigureViewIsInDom/"+this.getPeerNodeId(),function(){this._handleViewInDomMessage()}.bind(this))),this.createFigureAndToolsView(),this._installGraphicsViewListener(e),this.widget.containerNode.ondragstart=this._stopDefault(),this.widget.containerNode.ondrop=this._stopDefault(),this.figureLayoutContainer.domNode.setAttribute("tabIndex","0"),"embeddedclient"!==this._hostType&&this.figureLayoutContainer.domNode.focus(),this._addMouseEventListeners();var t="/gbt/figure/AppCaptureService/"+this.getPeerNodeId(),i=this.figureLayoutContainer.domNode;this.appCaptureService=new _(t,i),"divclient"!==this._hostType&&"embeddedclient"!==this._hostType||this._figurePeerNodeIdHandler.setUniqueFigureId(this.getPeerNodeId())},_installGraphicsViewListener:function(e){e&&e.parentDijit&&e.parentDijit.graphicsCompleteHandler&&(this.graphicsCompleteHandler=e.parentDijit.graphicsCompleteHandler,this.widget.GraphicsView&&this.widget.GraphicsView.onEvent("graphicscomplete",function(e){this.graphicsCompleteHandler&&this.graphicsCompleteHandler()}.bind(this)))},_dispatchPositionChangedEvent:function(e,t){var i=[e.x,e.y,e.width,e.height],n=this._convertFromOneToZeroOrigin(i);this.cachePixPositionForView(n);var o=this.figureToolsController.getToolsContainerDims();e.figToolsHeight=o.h,!0===t&&this.getPeerNode().setProperties({Position:i}),e.hasOwnProperty("x")&&this.handleClientDrivenPropertiesChange("positionChangedEvent",e)},_Position:function(e){this.setFigurePosition(e)},setFigurePosition:function(e){if(void 0!==this.getPeerNode().getProperty("hostType")){this.winStrategy.setFigurePosition(e);var t=this.winStrategy.formatAndUpdateWidgetRenderedSize(this.widget,e);void 0!==t&&(this.figureToolsController.updateFigureLayoutContainerLayout(),this._dispatchPositionChangedEvent(t,!1))}},_Title:function(e){this.winStrategy.setTitle(e)},_initFigureControllerSynchronizerListener:function(){var e=0;this.own(this._ViewModelSynchronizer.createAddedOrModifiedDataListener("matlab.graphics.internal.viewmodel.Figure",function(t){this._PubSubLogger.log("Received Figure PubSubConfig: "+t.CommandSenderChannel+" Figure: "+this.getPeerNodeId()),this._updateFigurePubSubConfig(t.CommandSenderChannel,t.NewViewEventChannel,t.ReconnectEventChannel),e=-1}.bind(this)));var t=function(){-1!==e&&(this._PubSubLogger.log("Created FigureControllerSynchronizerListener "+e+" waiting for pubsubconfig..."),e++,setTimeout(t,1e4))}.bind(this);t()},_addMouseEventListeners:function(){this.widget.domNode.classList.add("supportsMouseInteractions");var e=0,t="",r="normal",a="",s="wheel",l=0,c=0;n("mozilla")&&(s="DOMMouseScroll"),this.own(this._mousedown=i(this.figureLayoutContainer.domNode,"mousedown",function(i){var n=(new Date).getTime();a=i.target,n-e<400&&l===i.clientX&&c===i.clientY&&i.button===t?(e=n,t=i.button,r="open",this.onMouseEvent(i,r,a)):(r="normal",e=n,t=i.button,l=i.clientX,c=i.clientY,this.onMouseEvent(i,r,a))}.bind(this)),this._mouseup=i(this.figureLayoutContainer.domNode,"mouseup",function(e){this.onMouseEvent(e,r,a)}.bind(this)),this._mousemove=i(this.figureLayoutContainer.domNode,"mousemove",function(e){this.onMouseEvent(e,r,a)}.bind(this)),this._mousewheel=i(this.figureLayoutContainer.domNode,s,function(e){this.onMouseWheel(e)}.bind(this)),this._keydown=i(this.figureLayoutContainer.domNode,"keydown",function(e){this.onKeyDown(e)}.bind(this)),this._keyup=i(this.figureLayoutContainer.domNode,"keyup",function(e){this.onKeyUp(e)}.bind(this))),this.own(o.subscribe("ScrollableController/scrollableStateChanged",function(e,t){if(e===this._getObjectDefiningScrollableBounds()){var i=this.getWindowStrategy();"function"==typeof i.updateScrollableBounds&&i.updateScrollableBounds(t.contentSize)}}.bind(this)))},_handleViewInDomMessage:function(){this.handleFigureInDom()},_handlePeerEvent:function(e){this.inherited(arguments),"fitToContentRequested"===e.data.Name&&this._handleFitToContentRequested(e)},getFocusNode:function(){return this.figureLayoutContainer.domNode},_handleFitToContentRequested:function(e){var t,i,n=this.getFitSize(),o=this.getPositionInPixels();switch(e.data.Anchor){case"topleft":t=0,i=n[1]-o[3];break;case"center":t=(n[0]-o[2])/2,i=(n[1]-o[3])/2;break;default:throw new Error("Anchor expected to be either 'topleft' or 'center'")}var r=[o[0]-t,o[1]-i,n[0],n[1]];r=this._convertFromZeroToOneOrigin(r),this.setFigurePosition(r)},_getObjectDefiningScrollableBounds:function(){if("on"===this.getProperty("Scrollable")||!0===this.getProperty("Scrollable"))return this;var e,t=this.getPeerNode().getChildren();if(t&&t.length)for(var i=0;i<t.length;++i)-1===t[i].getType().indexOf("GridLayout")||"on"!==t[i].getProperty("Scrollable")&&!0!==t[i].getProperty("Scrollable")||(e=t[i]);return e?e.getController():this},_stopDefault:function(){return!1},_updateFigurePubSubConfig:function(e,t,i){this._validatePubSubChannelName(e),this._CommandReceiver.start(e),this._validatePubSubChannelName(t),this._ConnectionStatus.newViewEvent(this._MessageServiceProxy,t),this._validatePubSubChannelName(i),this._ConnectionStatus.addReconnectEventCallback(this._MessageServiceProxy,function(){this._MessageServiceProxy.publish(i,{})}.bind(this))},_validatePubSubChannelName:function(e){if(void 0===e||""===e)throw new Error("PubSub channel is invalid")},getWindowStrategy:function(){return this.winStrategy||this._createWindowStrategy(),this.winStrategy},_createWindowStrategy:function(){var e=this.getPeerNodeId();this.winStrategy=l.getStrategy(this._hostType,e,this._divFigurehandler),this.winStrategy.initializeWindowBoundsFromPeerNode(this.getPeerNode()),this.own(i(this.winStrategy,"windowresized",function(e){this._onStrategyWindowResized(e)}.bind(this)),i(this.winStrategy,"titlechanged",function(e){this.peernode.setProperties({Name:e});var t={titleValue:e};this.peernode.dispatchEventToServer("titleChanged",t)}.bind(this)),i(this.winStrategy,"windowstatechanged",function(e){this.peernode.setProperties({WindowState:e});var t={winStateValue:e};this.peernode.dispatchEventToServer("windowStateChanged",t)}.bind(this)),i(this.winStrategy,"windowstylechanged",function(e){var t={winStyleValue:e};this.getPeerNode().setProperty("WindowStyle",e),this.peernode.dispatchEventToServer("windowStyleChanged",t)}.bind(this)),i(this.winStrategy,"enterfullscreen",(function(){c.show(S.FullscreenModeEscapeHint)})),i(this.winStrategy,"exitfullscreen",(function(){c.hide()})))},_onStrategyWindowResized:function(e){if(4!==e.length)throw new Error("_onStrategyWindowResized expects a 4 vector");var t=this.figureToolsController.getToolsContainerDims(),i=e[3]-t.h;i<0&&(i=0);var n={x:e[0],y:e[1],width:e[2],height:i};this._dispatchPositionChangedEvent(n,!0)},_computeFitSize:function(){return this.computeContentFitSize()},recomputeFitSize:function(){if(this._isFitSizeUsed){var e=this._fitSize.slice(0);if(this._fitSize=this._computeFitSize(),e[0]!==this._fitSize[0]||e[1]!==this._fitSize[1]){var t={fitSize:this._fitSize};this.widget.emit("figurefitsizechanged",t)}}},_getContextMenuTargets:function(){return[this.widget.containerNode]},_Pointer:function(e){e.CData=JSON.parse(e.CData,(function(e,t){return null===t?"NaN":t})),this.widget.set("pointer",e)},_PointerShapeCData:function(e){this.widget.set("pointerShapeCData",e)},_PointerShapeHotSpot:function(e){this.widget.set("pointerShapeHotSpot",e)},_handlePropertiesSet:function(e){e.data.newValues.DrawnowACT&&this._FigureACTResponder.peermodelUpdate(e.data.newValues.DrawnowACT),this.inherited(arguments)},_DockControls:function(){this.figureToolsController._updateDockControlsVisibility()},validateMouseEventTarget:function(e){return e===this.widget.containerNode},destroy:function(){this.appCaptureService.destroy(),this._mousedown.remove(),this._mouseup.remove(),this._mousemove.remove(),this._mousewheel.remove(),this._keydown.remove(),this._keyup.remove(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(206),i(256),i(480),i(440),i(962),i(5980),i(5982),i(6129),i(1170),i(737),i(404),i(6138),i(6139),i(6140)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([a,r,s,u,h,p,f],{constructor:function(e){this._UnitsService=new g,this._loggingService=new m},createView:function(e){this.inherited(arguments),this.figureLayoutContainer=new l,e.parentDijit?e.parentDijit.addChild(this.figureLayoutContainer):i.place(this.figureLayoutContainer.domNode,e.parentDomNode),this.winStrategy=this.getWindowStrategy(),this.peernode=this.getPeerNode(),this.own(n(this.peernode,"childAdded",function(e){this.onMenuAdded(e)}.bind(this)),n(this.getPeerNode(),"childRemoved",function(e){this.onMenuRemoved(e)}.bind(this)),n(this,"escapeFullscreen",function(e){this.winStrategy._escapeFullscreen()}.bind(this)),n(this,"toggleFullscreen",function(e){this.winStrategy._toggleFullscreen()}.bind(this))),this.startEmittingCommonResizeEvent()},_createFigureToolsController:function(e){return new d(e)},createFigureAndToolsView:function(){var e={peerNode:this.getPeerNode(),winStrategy:this.winStrategy};this.figureToolsController=this._createFigureToolsController(e),this.figureToolsContainer=this.figureToolsController.getToolsContainer(),this.figureLayoutContainer.addChild(this.figureToolsContainer),this.widget=new c({dataTag:this.getPeerNodeId()}),this.figureLayoutContainer.addChild(this.widget),this.figureLayoutContainer.startup(),this._creatingView=!0;var i=t.clone(this.getPeerNode().getProperties());this._setProperties(i),this._creatingView=!1,this.emit("viewReady")},getWindowStrategy:function(){},getMenuBar:function(){return this.figureToolsController.getMenuBar()},setActionService:function(e){this.actionDataService=e},getActionService:function(){return this.actionDataService},callHandleViewInDomRecursively:function(e){e.getController().handleViewInDom&&e.getController().handleViewInDom();for(var t=e.getChildren(),i=0;i<t.length;i++){var n=t[i];this.callHandleViewInDomRecursively(n)}},handleFigureInDom:function(){this.callHandleViewInDomRecursively(this.getPeerNode()),this.figureToolsController.handleFigureAddedToDom()},getUIEventRecordCreator:function(){if(!this._uiEventRecordCreator){if(!this.figureLayoutContainer||!this.figureLayoutContainer.containerNode)return void console.log("container node is null, unable to create valid uiEventRecordCreator");var e={_figureDomNode:this.widget.scrollableNode,_getPositionRelativeToFigure:this._getPositionRelativeToFigure,convertToUIEventRecord:function(e){var t=this._getPositionRelativeToFigure(e);return{Button:e.button,Modifier:e.modifier,IsPopupTrigger:!!e.popupTrigger&&e.popupTrigger,IsDoubleClick:!!e.doubleClick&&e.doubleClick,IsDragged:!!e.IsDragged&&e.IsDragged,X:e.offsetX,Y:e.offsetY,FigX:t[0],FigY:t[1]}}};this._uiEventRecordCreator=e}return this._uiEventRecordCreator},_dispatchPositionChangedEvent:function(e,t){},_setProperties:function(e){if(e.hasOwnProperty("PropOrder")){var t=e.PropOrder;if(t.length>1&&this._creatingView){var i=e.hasOwnProperty("Position")&&e.hasOwnProperty("WindowState")&&"fullscreen"===e.WindowState&&t.indexOf("Position")<t.indexOf("WindowState");i&&(this._initializedToFullscreen=!0,delete e.Position)}for(var n=0;n<t.length;n++){var o=t[n];if(e.hasOwnProperty(o)){var r="_"+o;this[r]&&"function"==typeof this[r]&&this[r](e[o]),delete e[o]}}}this.inherited(arguments)},_Position:function(e){},setFigurePosition:function(e){},_ToolsStyle:function(e){},_WindowState:function(e){this.winStrategy.setWindowState(e),this._initializedToFullscreen&&(this.winStrategy._handleInitializedToFullscreen(),this._initializedToFullscreen=!1)},_WindowStyle:function(e){this.winStrategy.setWindowStyle(e),"modal"===e?this.figureToolsController.figureToolsVisibility(!1):"normal"===e&&this.figureToolsController.figureToolsVisibility(!0)},_Visible:function(e){this.winStrategy.setVisible(e)},_Title:function(e){},_Resize:function(e){this.winStrategy.setResizable(e)},destroy:function(){this.stopEmittingCommonResizeEvent(),this.inherited(arguments),this.figureToolsController.destroy(),this.figureLayoutContainer&&"destroy"in this.figureLayoutContainer&&this.figureLayoutContainer.destroy instanceof Function&&this.figureLayoutContainer.destroy(),this.figureToolsController=null,this.figureLayoutContainer=null,delete this.winStrategy}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(516),i(517),i(345),i(219)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e([],{constructor:function(e){this._DestroyCallback=e,this._refCount=1},_incrementRefCount:function(){++this._refCount},destroy:function(){--this._refCount,this._refCount<1&&this._DestroyCallback()}}),a=e([],{constructor:function(e){this._Model=new mf.zero.Model,this._Channel=new t.default({inChannel:e+"/viewModelSynchronizerClient",outChannel:e+"/viewModelSynchronizerServer"}),this._Synchronizer=new i.default(this._Model,this._Channel,void 0,void 0,!0),o.subscribe(this._Channel.inChannel,function(e){this._Channel.receive(e.data)}.bind(this),this._Channel).then(function(){this._Channel._started=!0}.bind(this)),this._Synchronizer.start(),this._Synchronizer.fetchModelWithDataDefinition(),this._processAddedListeners={},this._processModifiedListeners={},this._processDestroyedListeners={},this._Listener=new n.default,this._Listener.transactionCommitted=this._transactionCommitted.bind(this),this._Model.addShallowListener(this._Listener)},destroy:function(){this._Model.removeListener(this._Listener)},_processTransactionItem:function(e,t){var i=e.getMetaClass().qualifiedName;if(i in t)for(var n=0;n<t[i].length;++n)t[i][n](e)},_transactionCommitted:function(e){e.processAdded(function(e){this._processTransactionItem(e,this._processAddedListeners)}.bind(this)),e.processModified(function(e){this._processTransactionItem(e,this._processModifiedListeners)}.bind(this)),e.processDestroyed(function(e){this._processTransactionItem(e,this._processDestroyedListeners)}.bind(this))},_createListener:function(e,t,i){return e in i||(i[e]=[]),i[e].push(t),new r(function(){this._destroyListener(e,t,i)}.bind(this))},_destroyListener:function(e,t,i){e in i&&(i[e]=i[e].filter((function(e){return e!==t})),0===i[e].length&&delete i[e])},createAddedDataListener:function(e,t){return this._createListener(e,t,this._processAddedListeners)},createModifiedDataListener:function(e,t){return this._createListener(e,t,this._processModifiedListeners)},createDestroyedDataListener:function(e,t){return this._createListener(e,t,this._processDestroyedListeners)},createAddedOrModifiedDataListener:function(e,t){var i=this.createAddedDataListener(e,t),n=this.createModifiedDataListener(e,t);return new r((function(){i.destroy(),n.destroy()}))}});return{createIfNecessary:function(e){if(e in this._viewModelSynchronizerMap)this._viewModelSynchronizerMap[e]._incrementRefCount();else{var t=new a(e),i=new r(function(){t.destroy(),delete this._viewModelSynchronizerMap[e]}.bind(this));i.synchronizer=t,this._viewModelSynchronizerMap[e]=i}return this._viewModelSynchronizerMap[e]},get:function(e){if(!(e in this._viewModelSynchronizerMap))throw new Error("ViewModelSynchronizer not created for "+e);return this._viewModelSynchronizerMap[e].synchronizer},_viewModelSynchronizerMap:{}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(5981)],o=i.dj.d(n,(function(e,t,i){return e([i],{postCreate:function(){this.inherited(arguments),t.add(this.domNode,"gbtFigureLayoutContainer")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(210),i(213),i(204),i(215),i(386),i(866)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=t("dijit.layout.LayoutContainer",a,{design:"headline",baseClass:"dijitLayoutContainer",startup:function(){this._started||(e.forEach(this.getChildren(),this._setupChild,this),this.inherited(arguments))},_setupChild:function(e){this.inherited(arguments);var t=e.region;t&&i.add(e.domNode,this.baseClass+"Pane")},_getOrderedChildren:function(){var t=e.map(this.getChildren(),(function(e,t){return{pane:e,weight:["center"==e.region?1/0:0,e.layoutPriority,("sidebar"==this.design?1:-1)*(/top|bottom/.test(e.region)?1:-1),t]}}),this);return t.sort((function(e,t){for(var i=e.weight,n=t.weight,o=0;o<i.length;o++)if(i[o]!=n[o])return i[o]-n[o];return 0})),e.map(t,(function(e){return e.pane}))},layout:function(){s.layoutChildren(this.domNode,this._contentBox,this._getOrderedChildren())},addChild:function(e,t){this.inherited(arguments),this._started&&this.layout()},removeChild:function(e){this.inherited(arguments),this._started&&this.layout(),i.remove(e.domNode,this.baseClass+"Pane"),n.set(e.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"}),n.set(e.domNode,/top|bottom/.test(e.region)?"width":"height","auto")}});return l.ChildWidgetProperties={region:"",layoutAlign:"",layoutPriority:0},o.extend(r,l.ChildWidgetProperties),l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(963),i(374),i(970),i(6127),i(272),i(216),i(6128)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([a,i,n,o,s],{baseClass:"gbtFigureFrame",region:"center",templateString:l,backgroundColor:"rgb(240, 240, 240)",constructor:function(e){this.dataTag=e.dataTag},updateRenderedSize:function(){var e=t.position(this.containerNode);this.set("renderedSize",{x:0,y:0,width:e.w,height:e.h})},_getNodeToApplyBackgroundColor:function(){return this.backgroundColorNode},_setPointerAttr:function(e){this._set("pointer",e),this._changeContainerNodeCursor(e)},_isCustomPointer:function(){return"custom"===this.get("pointer")},_changeContainerNodeCursor:function(e){var t=e.Pointer,i=e.CData,n=e.HotSpot;if("custom"!==t||i&&n){var o=r.getHtmlCursor(t,i,n);this.containerNode.style.setProperty("--htmlCursor","unset"),this.containerNode.style.setProperty("--htmlCursor",o),"arrow"===t?this.containerNode.classList.remove("honorFigurePointer"):this.containerNode.classList.add("honorFigurePointer")}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1514)],o=i.dj.d(n,(function(e,t){return e([t],{Vendor:"",Renderer:"",Version:"",VersionNumber:1,ShadingLanguageVersion:"",MaxTextureSize:0,MaxViewportDims:null,AlphaBits:0,RedBits:0,GreenBits:0,BlueBits:0,SubpixelBits:0,DepthBits:0,DepthRange:null,MaxRenderBufferSize:0,Extensions:null,Antialiasing:!0,constructor:function(e){if(e){this.Vendor=e.getParameter(e.VENDOR),this.Renderer=e.getParameter(e.RENDERER),this.Version=e.getParameter(e.VERSION),this.VersionNumber=this.getVersionNumber(e),this.ShadingLanguageVersion=e.getParameter(e.SHADING_LANGUAGE_VERSION),this.MaxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),this.MaxViewportDims=e.getParameter(e.MAX_VIEWPORT_DIMS),this.AlphaBits=e.getParameter(e.ALPHA_BITS),this.RedBits=e.getParameter(e.RED_BITS),this.GreenBits=e.getParameter(e.GREEN_BITS),this.BlueBits=e.getParameter(e.BLUE_BITS),this.SubpixelBits=e.getParameter(e.SUBPIXEL_BITS),this.DepthBits=e.getParameter(e.DEPTH_BITS),this.DepthRange=e.getParameter(e.DEPTH_RANGE),this.MaxRenderBufferSize=e.getParameter(e.MAX_RENDERBUFFER_SIZE),this.Extensions=e.getSupportedExtensions();var t=e.getExtension("WEBGL_debug_renderer_info");t&&(this.Renderer=e.getParameter(t.UNMASKED_RENDERER_WEBGL),this.Vendor=e.getParameter(t.UNMASKED_VENDOR_WEBGL)),this.Antialiasing=e.getContextAttributes().antialias}else this.MaxViewportDims=new Int32Array([0,0]),this.DepthRange=new Float32Array([0,0]),this.Extensions=[]},getVersionNumber:function(e){if(!e)throw new Error("Invalid WebGL context was passed to getVersion function.");var t=e.getParameter(e.VERSION);if(0!==t.length){var i=t.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g);return parseFloat(i[0])}return 1},hasExtension:function(e){return this.Extensions.indexOf(e)>=0},toPlainObject:function(){return{Vendor:this.Vendor,Renderer:this.Renderer,Version:this.Version,VersionNumber:this.VersionNumber,ShadingLanguageVersion:this.ShadingLanguageVersion,MaxTextureSize:this.MaxTextureSize,MaxViewportDims:{width:this.MaxViewportDims[0],height:this.MaxViewportDims[1]},AlphaBits:this.AlphaBits,RedBits:this.RedBits,GreenBits:this.GreenBits,BlueBits:this.BlueBits,SubpixelBits:this.SubpixelBits,DepthBits:this.DepthBits,DepthRange:{min:this.DepthRange[0],max:this.DepthRange[1]},MaxRenderBufferSize:this.MaxRenderBufferSize,Extensions:this.Extensions,Antialiasing:this.Antialiasing}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return[function(e,t){return-1===e.indexOf("BROKEN_WEBGL_IMPLEMENTATION")},function(e,t){var i=e.split(";");if(i.length>=2){var n=i[1].search("Android"),o=i[0].search("Mozilla");if(n>=0&&o>=0)return!1}return!0},function(e,t){return!(t.Renderer.search("SwiftShader")>=0)}]}),e,t),e.exports=o},function(e,t,i){var n,o,r={_webglCanvas:void 0,_usesOffscreenCanvas:!1,context:void 0,shader_list:{},_createContext:function(e,t){var i;i=0===t?this._getDefaultAllowedContexts():["webgl"];var n=null;try{for(var o=0,r=this._getContextCreationArgs();null===n&&o<i.length;)n=e.getContext(i[o],r),o++;null===n&&e.getContext("experimental-webgl",r)}catch(e){}return n},_createOffscreenCanvasAndContext:function(e,t){if(void 0===this._webglCanvas){if(this._usesOffscreenCanvas=!0,this._usesOffscreenCanvas)try{this._webglCanvas=new window.OffscreenCanvas(e.width,e.height)}catch(e){this._usesOffscreenCanvas=!1}this._usesOffscreenCanvas||(this._webglCanvas=document.createElement("canvas")),this.context=this._createContext(this._webglCanvas,t)}},_getContextCreationArgs:function(){return{antialias:!0,alpha:!1,preserveDrawingBuffer:!0}},_getDefaultAllowedContexts:function(){return["webgl2","webgl"]},getOrCreateContext:function(e,t){return this._createOffscreenCanvasAndContext(e,t),this.context},createContextHandler:function(e,t,i){var n=window.navigator.platform;if(-1!==n.indexOf("Mac")){var o=navigator.userAgent.match("Chrom(?:e|ium)/[0-9]+");if(o){var a=o[0].split("/"),s=a[1]?parseInt(a[1],10):null;s&&s<70&&(i=!0)}}else if(-1!==n.indexOf("Linux")&&this.context){var l=this.context.getExtension("WEBGL_debug_renderer_info");if(l)-1!==this.context.getParameter(l.UNMASKED_RENDERER_WEBGL).indexOf("SwiftShader")&&(i=!0);else i=!0}if(!0===i)return{context:this._createContext(e,t),swap:function(){},updateSize:function(){},shader_list:{},_canvas:e};this._createOffscreenCanvasAndContext(e,t);var c={context:r.context,updateSize:function(){r._webglCanvas.width!==this._canvas.width&&(r._webglCanvas.width=this._canvas.width),r._webglCanvas.height!==this._canvas.height&&(r._webglCanvas.height=this._canvas.height)},_canvas:e,shader_list:r.shader_list};return!0===r._usesOffscreenCanvas?(c._presentationContext=e.getContext("bitmaprenderer",{alpha:!0}),c.swap=function(){r.context.finish();var e=r._webglCanvas.transferToImageBitmap();this._presentationContext.transferFromImageBitmap(e)}):(c._presentationContext=e.getContext("2d"),c.swap=function(){r.context.finish(),this._presentationContext.drawImage(r._webglCanvas,0,0)}),c}};n=[i(203)],o=i.dj.d(n,(function(e){return r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(212),i(214),i(1164),i(219)],o=i.dj.d(n,(function(e,t,i,n,o){var r={publish:function(e,t){if(!e)throw new Error("Cannot publish to empty topic");t.topic=e,this._MessageService.publish(this._publishChannel,t),this._publishCallback({data:t})},subscribe:function(e,i){e in this._topicMap||(this._topicMap[e]=[]),this._topicMap[e].push(i);var n=new t;return this._connectorSubscribePromise.then((function(){n.resolve()})),n.promise},unsubscribe:function(e,t){if(!(e in this._topicMap))throw new Error("Not subscribed to "+e);this._topicMap[e]=this._topicMap[e].filter((function(e){return e!==t})),0===this._topicMap[e].length&&delete this._topicMap[e]},onReconnected:function(){},_initialize:function(t){this._MessageService=void 0===t?o:t,this._topicMap={},this._lastInboundSequenceNumber=null,this._PubSubLogger=new n,this._PubSubLogger.setID("MinChannelMessageService"),this._connectorSubscribePromise=this._MessageService.subscribe(this._subscribeChannel,this._inboundPublishCallback.bind(this)),null!==this._reconnectAspect&&this._reconnectAspect.remove(),this._reconnectAspect=i.after(this._MessageService,"onReconnected",e.hitch(this,"onReconnected"),!0)},_isInitialized:function(){return null!==this._MessageService},_inboundPublishCallback:function(e){var t=e.data.sequenceNumber;void 0!==t&&(null!==this._lastInboundSequenceNumber&&this._lastInboundSequenceNumber+1!==t&&this._PubSubLogger.log("sequenceNumber did not increment as expected. Last sequence number: "+this._lastInboundSequenceNumber+" payload sequence number: "+t+" payload: "+JSON.stringify(e.data)),this._lastInboundSequenceNumber=t),this._publishCallback(e)},_publishCallback:function(e){var t=e.data.topic;if(t in this._topicMap)for(var i=0;i<this._topicMap[t].length;++i)this._topicMap[t][i](e)},_MessageService:null,_subscribeChannel:"/graphics/JavaScript",_publishChannel:"/graphics/MATLAB",_connectorSubscribePromise:null,_reconnectAspect:null,_lastInboundSequenceNumber:null,_PubSubLogger:null,_topicMap:{}};return r._isInitialized()||r._initialize(),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{_channel:null,_messageServiceProxy:null,constructor:function(e,t){this._channel=e,this._messageServiceProxy=t},publish:function(e,t){t.Type=e,this._messageServiceProxy.publish(this._channel,t)},setChannel:function(e){this._channel=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(230),i(5989),i(5991),i(5993),i(964),i(2191),i(554),i(1515)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=e([l,i],{_EnvChangedListenerCount:0,_PixelScaleListener:null,constructor:function(){this._defineEvent("environmentchanged"),t.around(this,"onEvent",function(e){return function(i,n){var o=e.call(this,i,n);return"environmentchanged"===i&&(this._addChangeListener(),t.after(o,"remove",function(e){return this._removeChangeListener(),e}.bind(this))),o}.bind(this)}.bind(this))},_getDeviceDPI:function(){return 96*window.devicePixelRatio},_getFontNameMap:function(){return o.getFontMap()},_getRenderers:function(){return{opengl:n.getGLRendererInfo()}},_getGLInfo:function(){return a.getSystemGLInfo()},getViewData:function(){return new r(this._getDeviceDPI(),this._getFontNameMap(),this._getRenderers(),this._getGLInfo())},sendChangeEvent:function(){this.emitEvent("environmentchanged",this.getViewData())},_addChangeListener:function(){0===this._EnvChangedListenerCount&&(this._PixelScaleListener=s.subscribe(function(){this.sendChangeEvent()}.bind(this)),this.own(this._PixelScaleListener)),this._EnvChangedListenerCount++},_removeChangeListener:function(){this._EnvChangedListenerCount--,0===this._EnvChangedListenerCount&&(s.unsubscribe(this._PixelScaleListener),this._PixelScaleListener=null)}}),d=null;return c.getInstance=function(){return d||(d=new c),d},c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1514),i(964),i(1515)],o=i.dj.d(n,(function(e,t,i,n){var o=e([t],{Name:"",Available:!1,TransparencyOrderMethods:null,constructor:function(e,t,i){this.Name=e,this.Available=t,this.TransparencyOrderMethods=i},toPlainObject:function(){return{Name:this.Name,Available:this.Available,TransparencyOrderMethods:this.TransparencyOrderMethods}}});return o.TransparencyOrderMethod={DEPTHPEEL:"depthpeel",OBJECTSORT:"objectsort"},o.getGLRendererInfo=function(){var e=[];return n.canRunDepthPeeling()&&e.push(o.TransparencyOrderMethod.DEPTHPEEL),new o("WebGL",i.isGLAvailable(),e)},o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(967),i(406),i(365),i(325)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(){},_saveRendererMatrices:function(e){this._currentProjMat=e.getProjectionMatrix(),this._currentViewMat=e.getViewTransform(),this._currentModelMat=e.getModelTransform()},_setRendererMatricesToIdentity:function(e){this._identityMat||(this._identityMat=new n),e.setProjectionMatrix(this._identityMat),e.setViewTransform(this._identityMat),e.setModelTransform(this._identityMat)},_restoreRendererMatrices:function(e){e.setProjectionMatrix(this._currentProjMat),e.setViewTransform(this._currentViewMat),e.setModelTransform(this._currentModelMat)},compose:function(e,n,r){this._saveRendererMatrices(e),this._setRendererMatricesToIdentity(e);var a=e.getWebGLContext();if(a.enable(a.BLEND),a.blendFunc(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA),a.depthMask(!1),a.disable(a.DEPTH_TEST),void 0===this._resultDrawCache){var s={};s.vertexData=i.createFloat32Array([-1,-1,0,-1,1,0,1,-1,0,1,1,0]),s.stripData=i.createFloat32Array([1,5]),s.colorData=i.createFloat32Array([0,0,0,1,1,0,1,1]),s.colorBinding=o.Binding.vertex,s.colorType=o.ColorType.texturemapped,s.clipping=!1,s.texture=null,this._drawPassShaderConfigFcns||(this._drawPassShaderConfigFcns=new t);var l,c=e.getTriangleShaderConfig(s,this._drawPassShaderConfigFcns);this._resultDrawCache=e.makeTriangleDrawCache(s,c),this._resultDrawCache.pipeline.forEach((function(e,t){e.hasOwnProperty("name")&&"ColorDataTextureCmd"===e.name&&(l=e)})),this._colorTextureCmd=l}this.i=0,this.tailBlendedEnabled=!0,n.forEach(function(t){this._colorTextureCmd.tex.textureUnit=t.textureUnit,this._colorTextureCmd.tex.texture=t.texture,1===this.i&&this.tailBlendedEnabled&&(this._restoreRendererMatrices(e),r.draw(e),this._setRendererMatricesToIdentity(e)),e.drawTriangles(this._resultDrawCache),this.i++}.bind(this)),this._restoreRendererMatrices(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(5992)],o=i.dj.d(n,(function(e){var t=null;return{getFontMap:function(){return null===t&&(t=this.createFontMap()),t},createFontMap:function(){for(var t=document.createElement("canvas").getContext("2d"),i={},n={sansserif:e.measureFont(t,"sans-serif"),serif:e.measureFont(t,"serif"),monospace:e.measureFont(t,"monospace")},o=e.getStandardFonts(function(){var e=window.navigator.platform,t="";e&&(e.search("/^win/i")?t="windows":e.search("/^Linux/i")||e.search("/X11/")?t="linux":e.search("/^mac/i")&&(t="mac"));return t}()),r=o.length,a=0;a<r;a++){var s=o[a],l={sansserif:e.measureFont(t,s+", sans-serif"),serif:e.measureFont(t,s+", serif"),monospace:e.measureFont(t,s+", monospace")},c=e.areMeasuresEqual(l.serif,n.serif),d=e.areMeasuresEqual(l.sansserif,n.sansserif),u=e.areMeasuresEqual(l.monospace,n.monospace);if(c&&d&&u||(c&&!i.serif&&(i.serif=s),d&&!i["sans-serif"]&&(i["sans-serif"]=s),u&&!i.monospace&&(i.monospace=s)),i.hasOwnProperty("serif")&&i.hasOwnProperty("sans-serif")&&i.hasOwnProperty("monospace"))break}return i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{measureFont:function(e,t){return e.font="100pt "+t,e.measureText("mmmmmmmmmmmlllllggggghhhhh1234567890")},areMeasuresEqual:function(e,t){var i=e.width===t.width;return i&&e.fontBoundingBoxAscent&&t.fontBoundingBoxAscent&&(i=i&&e.fontBoundingBoxAscent===t.fontBoundingBoxAscent),i&&e.fontBoundingBoxDescent&&t.fontBoundingBoxDescent&&(i=i&&e.fontBoundingBoxDescent===t.fontBoundingBoxDescent),i},getStandardFonts:function(e){var t=this.getUniversalFonts(),i=[];switch(e){case"windows":i=this.getWindowsFonts();break;case"linux":i=this.getLinuxFonts();break;case"mac":i=this.getMacFonts();break;default:i=(i=(i=this.getWindowsFonts()).concat(this.getLinuxFonts())).concat(this.getMacFonts())}return t.concat(i)},getUniversalFonts:function(){return["Arial","Times New Roman","Arial Black","Courier New","Verdana","Comic Sans MS","Courier","Trebuchet MS","Georgia","Impact","Arial Narrow","Helvetica","Times","Terminal"]},getWindowsFonts:function(){return["Tahoma","Century Gothic","MS Sans Serif","Lucida Console","Garamond","Lucida Sans Unicode","Bookman Old Style","Book Antiqua","Microsoft Sans Serif","Palatino Linotype","Monotype Corsiva","Haettenschweiler","Modern","Franklin Gothic Medium","Script","Consolas"]},getMacFonts:function(){return["Geneva","Monaco","Skia","Apple Chancery","Hoefler Text","Optima","Futura","Lucida Grande","Helvetica Neue","Herculanum","Papyrus","Baskerville","Gill Sans","Didot","Arial Rounded MT Bold","Brush Script MT","Zapfino","Copperplate","Marker Felt","American Typewriter","Big Caslon","y.n.w.u.a.y","Zapf Humanist 601 Demi BT","Zapf Humanist 601 Ultra BT","SWF!T_v01","UniversS 45 Light","UniversS 47 Condensed Light","UniversS 55 Roman","UniversS Euro 45 Light","SWF!T_v02","A.C.M.E. Secret Agent","Geometric Slabserif 703 Extra Bold BT","Humanist 777 Black BT","Humanist 777 Light BT","Alpha Silouettes 3","Alpha-Silouettes 2","Business/Industrial Regular","Cochin","ESRI Environmental & Icons","ESRI Oil, Gas, & Water","ESRI Transportation & Civic","ESRI Transportation & Municipal","Garamond Narrow Bold:001.022","Garamond Narrow Italic:001.022","Garamond Narrow Plain:001.022","German Blackletters, 15th c.","hooge 05_54","Humanist 521 Extra Bold BT","Humanist 521 Light BT","Humanist 521 Ultra Bold BT","Humanist 777 BT","Chicago","Osaka","Palatino","Charcoal","Andale Mono","New York","Univers 45 Light","Univers 57 Condensed","Helvetica 35 Thin","Helvetica 45 Light","Helvetica 55 Roman","Helvetica 65 Medium","Helvetica 95 Black","Gothic 13","Helvetica 85 Heavy","Gadget","Warren 1","week (sRB)","Zartz!","Trade Gothic Bold Condensed No.20","Trade Gothic Condensed No.18","Aldine 401 BT","hooge 05_53","Orator 10 Pitch BT","Orator 15 Pitch BT","Aldine 721 BT","Aldine 721 Light BT","Geometric Slabserif 703 Bold BT","Hemi Head 426","Misbehavin'","Papyrus LET Plain:1.0","Scriptina - Alternates","Broken 15","Day Roman - Expert","Helvetica 25 Ultra Light","Helvetica 75 Bold Outline","L'Elf Noir du Mal Normal","Techno","Textile","Capitals","Sand"]},getLinuxFonts:function(){return["Utopia","Lucidatypewriter","New Century Schoolbook","Lucida","Lucidabright","Charter","Fixed","Nimbus Mono L","Nimbus Roman No9 L","Nimbus Sans L","Century Schoolbook L","ClearlyU","Helvetica-Narrow-BoldOblique"]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1514)],o=i.dj.d(n,(function(e,t){return e([t],{DeviceDPI:0,FontNameMap:{},RendererSupport:{},GLInfo:{},constructor:function(e,t,i,n){this.DeviceDPI=e,this.FontNameMap=t,this.RendererSupport=i,this.GLInfo=n},toPlainObject:function(){var e={};for(var t in this.RendererSupport)this.RendererSupport.hasOwnProperty(t)&&(e[t]=this.RendererSupport[t].toPlainObject());return{DeviceDPI:this.DeviceDPI,FontNameMap:this.FontNameMap,RendererSupport:e,GLInfo:this.varToPlainObject(this.GLInfo)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(965),i(5995)],o=i.dj.d(n,(function(e,t,i,n){return t([e],{_MessageServiceProxy:null,constructor:function(e){this._MessageServiceProxy=new i(e.MessageService),this.own(this._MessageServiceProxy)},update:function(e){this._MessageServiceProxy.publish(e.returnChannel,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219)],o=i.dj.d(n,(function(e,t){var i={start:function(){t.subscribe("/test/JavascriptThreadBlockingService",this._pubsubCallback.bind(this))},_pubsubCallback:function(e){console.log("Javascript thread blocking begin");var t=e.data.millisecondsToBlockJavascript,i=new Date,n=null;do{n=new Date}while(n-i<t);console.log("Javscript thread blocking end")}};return i.start(),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(211),i(213),i(206),i(212),i(5997),i(6063),i(6071),i(1526),i(215),i(554),i(6072),i(325),i(329),i(1166),i(216),i(6073),i(6074)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return t([u,_,e,h],{baseClass:"SceneView",canvasHeight:420,canvasWidth:560,templateString:v,_SceneTree:null,_Controller:null,_Started:!1,_renderStatsEnabled:!1,_validRenderer:!0,constructor:function(e){if(e&&!e.Container){throw new Error("Container argument must be passed to the SceneView Dijit constructor")}this.container=e.Container,e.Container.containerNode&&(this.container=e.Container.containerNode),this._defineEvent("act"),this._defineEvent("graphicscomplete"),this._defineEvent("textextent"),this._renderCompletePromise=null,this._fonts=[],this._TextUtils=m,this._PubSubLogger=e.pubsubLogger,this._sceneEventPublisher=e.sceneEventPublisher,this._canvasEventPublisher=e.canvasEventPublisher,this._commandProcessor=new p(this._PubSubLogger);var t=this._commandProcessor;t.onCmd("beginEdit",function(){this._SceneTree.beginEdit(),this.resetAxesControls(),this.resetCameraControls()}.bind(this)),t.onCmd("endEdit",function(){this.initializeAxesControls(),this.initializeCameraControls(),this._SceneTree.endEdit()}.bind(this)),t.onCmd("collectRenderStats",function(e){this.setCollectRenderStatistics(e.flag)}.bind(this)),t.onCmd("requestCData",function(e){var t=this._getImageDataFromSceneTree();this._commandProcessor.lock("requestCData"),t.then(function(e){this._canvasEventPublisher.publish("CData",e),this._commandProcessor.unlock("requestCData")}.bind(this))}.bind(this)),t.onCmd("insertChild",function(e){this._SceneTree.insertChild(e.parent,e.child,e.index)}.bind(this)),t.onCmd("compositeCommand",function(e){for(var t=Date.now(),i=Object.keys(e).length,n=1;n<=i;++n)e[n]&&this._commandProcessor._cmdHandlers[e[n].Name](e[n].Data);var o=(Date.now()-t)/1e3;this._sceneTreeCreationDuration=this._sceneTreeCreationDuration?this._sceneTreeCreationDuration+o:o}.bind(this)),t.onCmd("replaceChild",function(e){this._SceneTree.replaceChild(e.parent,e.oldchild,e.newchild)}.bind(this)),t.onCmd("removeChild",function(e){this._SceneTree.removeChild(e.parent,e.child)}.bind(this)),t.onCmd("reparentChildren",function(e){this._SceneTree.reparentChildren(e.oldparent,e.newparent)}.bind(this)),t.onCmd("insertCamera",function(e){this._SceneTree.insertCamera(e.camera,e.cameraindex,e.depthsort,e.isAnnotationCam)}.bind(this)),t.onCmd("replaceCamera",function(e){this._SceneTree.replaceCamera(e.oldcamera,e.newcamera,e.depthsort,e.isAnnotationCam)}.bind(this)),t.onCmd("createPeer",function(e){this._SceneTree.insertPeer(e.peerCookie,e.ownerCookie,e.peer)}.bind(this)),t.onCmd("setRenderMode",function(e){this._SceneTree.setRenderer(e.mode,!1,e.version),this._validRenderer=this._SceneTree.hasValidRenderer()}.bind(this)),t.onCmd("setColor",function(e){this._SceneTree.setClearColor(e.color)}.bind(this)),t.onCmd("destroyNodePeer",function(e){this._SceneTree.deletePeer(e.peerCookie)}.bind(this)),t.onCmd("destroyAllNodePeers",function(e){this._SceneTree.destroyAllNodePeers()}.bind(this)),t.onCmd("causeExpose",function(e){var t=e.actData;this._commandProcessor.lock("renderComplete"),this._renderCompletePromise=new a,this._renderCompletePromise.then(function(){var e=Date.now();(t&&(void 0!==t.clientSendTS&&(t.clientSendTS=e),this.emitEvent("act",{data:t})),this._pictureListener)&&this._getImageDataFromSceneTree().then(function(t){this._pictureListener&&this._pictureListener(t,e)}.bind(this));this._commandProcessor.unlock("renderComplete"),this.domNode&&o.set(this.domNode,"visibility","visible")}.bind(this)),t&&void 0!==this._PubSubLogger&&this._PubSubLogger.log("SceneView called causeExpose with ACT: "+t.ACT),this._SceneTree.draw()}.bind(this)),t.onCmd("createAndRegisterFont",function(e){this._fonts[e.peerCookie]={name:e.name,size:e.size,weight:e.weight,angle:e.angle}}.bind(this)),t.onCmd("releaseFont",function(e){delete this._fonts[e.peerCookie]}.bind(this)),t.onCmd("releaseAllFonts",function(e){this._fonts=[]}.bind(this)),t.onCmd("setFont",function(e){var t=this._fonts[e.font];this._SceneTree.setFont(e.peerCookie,t)}.bind(this)),t.onCmd("hitTest",function(e){var t=this._SceneTree._renderer.getPixelScale(),i=this._SceneTree._renderer.getDrawViewport().height/t-e.y;this._SceneTree.hitTest(e.x,i).then(function(t){var i=0;null!==t&&(i=t.getNode().ownerCookie);var n={EventCookie:e.eventCookie,OwnerCookie:i};this._sceneEventPublisher.publish("HitTestComplete",n)}.bind(this))}.bind(this)),t.onCmd("computeTextExtents",function(e){var t=function(e,t){var i=t._fonts[e.font],n=t._TextUtils.calculateTextExtents(i,e.interpreter,e.string,e.horizontalalignment,e.verticalalignment);n.RequestID=e.requestID,t.emitEvent("textextent",n)};e.interpreter!==f.TextInterpreter.none?this._TextUtils.TexFontsPromise.then(function(){t(e,this)}.bind(this)):t(e,this)}.bind(this)),this._axesControls={},this._cameraControls={},this._cameraIDsIndexedByCameraParent={},this._axesExternalInterfaceList={},this._pictureListener=null},postCreate:function(){this.inherited(arguments),o.set(this.domNode,"visibility","hidden"),o.set(this.domNode,"width","100%"),o.set(this.domNode,"height","100%"),this._SceneTree=new s(this,this._canvasEventPublisher,this._sceneEventPublisher),this._SceneTreeController=new b(this._SceneTree),this.own(this._SceneTree),r(this.domNode,"webglcontextlost",function(e){this._canvasEventPublisher.publish("WebglSupport",{Status:!1})}.bind(this)),this._SceneTree.onEvent("drawingBufferUnAvailable",function(e){this._canvasEventPublisher.publish("WebglSupport",{Status:!1})}.bind(this)),this._SceneTree.onEvent("rendercomplete",function(e){if(this.emitEvent("graphicscomplete",{}),this._renderStatsEnabled){var t=e.Statistics;t.UpdateTime=-1,t.TransparencyTestTime=-1,t.FontCount=-1,t.TransparencyCount=-1,t.GPUMemory=-1,t.commandprocessortime=this._sceneTreeCreationDuration?this._sceneTreeCreationDuration:0,this._sceneTreeCreationDuration=0,this._sceneEventPublisher.publish("RenderStatistics",t)}var i=this._renderCompletePromise;i&&(this._renderCompletePromise=null,i.resolve())}.bind(this))},destroy:function(){this._Controller&&this._Controller.uninstall(),this.inherited(arguments)},getContainerDimensions:function(e){var t,i=this.container;switch(e){case f.PixelUnitType.csspixel:t=1;break;case f.PixelUnitType.devicepixel:t=window.devicePixelRatio;break;default:throw new Error("Argument 'units' must be defined")}var n={x:0,y:0,w:i.clientWidth*t,h:i.clientHeight*t};if(0===n.h||0===n.w){var o=window.getComputedStyle(i);n.w=parseInt(o.width)*t,n.h=parseInt(o.height)*t}return n},setDimensions:function(e,t){return!isNaN(parseFloat(e))&&isFinite(e)||(e=0),!isNaN(parseFloat(t))&&isFinite(t)||(t=0),e=Math.round(e),t=Math.round(t),(this.domNode.width!==e||this.domNode.height!==t)&&(this.domNode.width=e,this.domNode.height=t,!0)},setDefaultDimensions:function(){var e=this.getContainerDimensions(f.PixelUnitType.devicepixel);this.setDimensions(e.w,e.h)},getImageDataURL:function(){return this._getImageDataFromSceneTree()},_getImageDataFromSceneTree:function(){return this._SceneTree.getCData()},_updateSize:function(){if(!this.domNode)return!1;let e=this.getContainerDimensions(f.PixelUnitType.devicepixel);return this.setDimensions(e.w,e.h)},getCanvas:function(){return this.setDefaultDimensions(),this.domNode},replaceCanvas:function(){var e=n.create("canvas",{width:"100%",height:"100%"});n.place(e,this.domNode,"replace"),this.domNode=e},setSceneTree:function(e){this._SceneTree=e},getSceneTree:function(){return this._SceneTree},createSceneTree:function(){this.getSceneTree()},getSceneTreeController:function(){return this._SceneTreeController},setController:function(e){this._Controller&&this._Controller.uninstall(),this._Controller=e,this._Controller.install(this)},getController:function(){return this._Controller},getTargetNode:function(){return this.domNode},redraw:function(){!0===this._updateSize()&&this.draw()},draw:function(){this._SceneTree.draw()},getRenderer:function(){return this._SceneTree.getRenderer()},setRenderer:function(e){this._SceneTree.setRenderer(e,!1),this._validRenderer=this._SceneTree.hasValidRenderer(),this._validRenderer&&this.draw()},setCollectRenderStatistics:function(e){this._SceneTree.setRequestEndFrame(e),this._renderStatsEnabled=e},processCmd:function(e){if(this._validRenderer){if("causeExpose"===e.cmd){var t=e.actData;t&&(void 0!==this._PubSubLogger&&this._PubSubLogger.log("SceneView received ACT: "+t.ACT),void 0!==t.clientReceiveTS&&(t.clientReceiveTS=Date.now()))}this._commandProcessor.processCmd(e)}},setBinaryDataSinkCallBack:function(e){this._SceneTree.setBinaryDataSinkCallBack(e)},initializeAxesControls:function(){this._SceneTree._cameras&&this._SceneTree._cameras.forEach(function(e){void 0!==e.nodeinfo&&"axescamera"===e.nodeinfo.category&&void 0!==e.nodeinfo.cameraparent&&(this._axesControls[e.nodeinfo.cameraparent]=new l(e),this._axesControls[e.nodeinfo.cameraparent].setSceneTreeController(this._SceneTreeController))}.bind(this))},resetAxesControls:function(){Object.keys(this._axesControls).forEach(function(e){this._axesControls[e].reset()}.bind(this)),this._axesControls={}},getAxesControl:function(e){var t=null;if(e)(t=this._axesControls[e])||(t=null);else{var i=Object.keys(this._axesControls);i.length>0&&(t=this._axesControls[i[0]])}return t},initializeCameraControls:function(){this._SceneTree._cameras&&this._SceneTree._cameras.forEach(function(e){var t=new c(e.ownerCookie,this._SceneTreeController);this._cameraControls[e.ownerCookie]=t,void 0!==e.nodeinfo&&void 0!==e.nodeinfo.cameraparent&&(this._cameraIDsIndexedByCameraParent[e.nodeinfo.cameraparent]=e.ownerCookie)}.bind(this))},resetCameraControls:function(){this._cameraControls={},this._cameraIDsIndexedByCameraParent={}},getCameraControl:function(e){var t=null;return e&&((t=this._cameraControls[e])||(t=null)),t},getCameraIDFromCameraParent:function(e){return this._cameraIDsIndexedByCameraParent[e]},getAxesExternalInterface:function(e){var t=0;if(1===arguments.length){if(e>0)return null;t=e}return void 0===this._axesExternalInterfaceList[t]&&(this._axesExternalInterfaceList[t]=new d(this)),this._axesExternalInterfaceList[t]},createCloneDOMNode:function(){var e=i.clone(this.domNode);return e.getContext("2d").drawImage(this.domNode,0,0),e},setPictureListener:function(e){this._pictureListener=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(212),i(211),i(244),i(2192),i(6049),i(6050),i(6051),i(6052),i(6054),i(6055),i(6056),i(6057),i(325),i(329),i(6058),i(6059),i(458),i(554),i(365),i(6061),i(1164)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){return t([e,b],{constructor:function(e,t,n){if(this._server=e,!e)throw new Error("SceneTree must be given a server.");this._canvas=e.getCanvas(),this._canvasEventPublisher=t,this._sceneEventPublisher=n,this._cameras=[],this._overlayAnnotationCamIndex=[],this._peers={},this._ownerCookieMap={},this._clearColor=[240,240,240,255],this._renderTimes=new p,this._requestEndFrame=!1,this.DPI=g.FindDPI(),this._nodeReadyPromises={},this._sceneTreeReadyPromise=(new i).resolve(),this._defineEvent("rendercomplete"),this._defineEvent("drawingBufferUnAvailable"),this._binaryDataSinkCallBack=null,this._returnCDataPromise=null,this._drawPending=!1,this._requestAnimationFrameTimeout=50,this._PubSubLogger=new T},log:function(e){this._PubSubLogger&&this._PubSubLogger.log(e)},getBinaryDataSink:function(e){return this._binaryDataSinkCallBack(e)._binaryDataSink},setBinaryDataSinkCallBack:function(e){this._binaryDataSinkCallBack=e},hitTest:function(e,t){return this._renderer&&0!==this._renderer.getDrawViewport().height&&0!==this._renderer.getDrawViewport().width?this._sceneTreeReadyPromise.then(function(){var i=this._renderer.getPixelScale();void 0===i&&(i=this.getPixelScale(),this._renderer.setPixelScale(i));var n={x:0,y:0,width:Math.round(4*i),height:Math.round(4*i)};return void 0!==this._pickRenderPass&&this._pickRenderPass.getPickViewSize()===n||(this._pickRenderPass=new a(n)),e*=i,t=this._renderer.getDrawViewport().height-t*i,this.pick(e,t)}.bind(this)):null},_sendExceptionEvent:function(e){this._sceneEventPublisher.publish("Exception",{Message:e})},_lookupPeerNode:function(e,t){var i=this._peers[e];return i||(this._sendExceptionEvent("Could not find node in peer tree during "+t),null)},getOwnerCookiePeerNode:function(e){var t=this._ownerCookieMap[e];return t||null},beginEdit:function(){this._sceneTreeReadyPromise=new i,this._nodeReadyPromises={}},endEdit:function(){let e=this._sceneTreeReadyPromise;this._sceneTreeReadyPromise=o(this._nodeReadyPromises).then((function(){e.resolve()})),this._nodeReadyPromises={}},insertChild:function(e,t,i){var n=this._lookupPeerNode(e,"insertChild"),o=this._lookupPeerNode(t,"insertChild");n&&o&&(n.hasOwnProperty("_children")||(n._children=[]),this._nodeChildrenAreAboutToBeChanged(n),o.parent=n,n._children.splice(i,0,o))},replaceChild:function(e,t,i){var n=this._lookupPeerNode(e,"replaceChild"),o=this._lookupPeerNode(t,"replaceChild"),r=this._lookupPeerNode(i,"replaceChild");if(n&&o&&r){this._nodeChildrenAreAboutToBeChanged(n);var a=!1;if(n.hasOwnProperty("_children")){var s=n._children.length;for(let e=0;e<s;e+=1)if(n._children[e]===o){r.parent=n,n._children[e]=r,a=!0;break}}a||this._sendExceptionEvent("Error in json_scenetree: Could not find node in replaceChild")}},removeChild:function(e,t){var i=this._lookupPeerNode(e,"removeChild"),n=this._lookupPeerNode(t,"removeChild");if(i&&n){this._nodeChildrenAreAboutToBeChanged(i);var o=!1;i.hasOwnProperty("_children")&&(o=v.removeFromArray(i._children,n)),n.parent=null,o||this._sendExceptionEvent("Error in json_scenetree: Could not find node in removeChild")}},reparentChildren:function(e,t){var i=this._lookupPeerNode(e,"reparentChildren"),n=this._lookupPeerNode(t,"reparentChildren");if(i&&n&&i.hasOwnProperty("_children")&&i._children.length>0){var o=i._children.length;for(let e=0;e<o;e+=1)i._children[e].parent=n;n._children=i._children,i._children=[]}},insertCamera:function(e,t,i,n){void 0===n&&console.log("Camera inserted without isAnnotationCamera set");var o=this._lookupPeerNode(e,"insertCamera");o&&(o.depthsort=i,this._cameras.splice(t,0,o)),n&&this._cameras.length>1&&(this._overlayAnnotationCamIndex=this._cameras.length-1),this._nodeChildrenAreAboutToBeChanged(o)},replaceCamera:function(e,t,i,n){void 0===n&&console.log("Camera replaced without isAnnotationCamera set");var o=this._lookupPeerNode(e,"replaceCamera"),r=this._lookupPeerNode(t,"replaceCameara");if(o&&r){r.depthsort=i;var a=!1,s=this._cameras.length;for(let e=0;e<s;e+=1)if(this._cameras[e]===o){this._cameras[e]=r,a=!0,n&&e>0&&e>this._overlayAnnotationCamIndex&&(this._overlayAnnotationCamIndex=e);break}a||this._sendExceptionEvent("Error in json_scenetree: Could not find node in replaceCamera"),this._nodeChildrenAreAboutToBeChanged(r)}},insertPeer:function(e,t,i){i.clean=!1,i.cookie=e;var n=d[i.type];void 0!==n&&n(i,this),i.ownerCookie=t,i.drawFcn=l[i.type],i.cullFcn=c[i.type],i.traverseFcn=u[i.type],i.depConsumedFcn=h.depConsumedFcns[i.type],i.depProducedFcn=h.depProducedFcns[i.type],i.computeBoundingBox=C[i.type],i.pickFcn=this.getGraphicsPickingFunction(),this._peers[e]=i,this._ownerCookieMap[t]=i},_deletePeerFromOwnerCookieMap:function(e,t){this._ownerCookieMap[t].cookie===e&&delete this._ownerCookieMap[t]},deletePeer:function(e){var t=this._peers[e];if(t){this._nodeChildrenAreAboutToBeChanged(t),"Camera"===t.type&&(this._cameras.indexOf(t)===this._overlayAnnotationCamIndex&&(this._overlayAnnotationCamIndex=-1),v.removeFromArray(this._cameras,t));var i=t.parent;i&&i.hasOwnProperty("_children")&&v.removeFromArray(i._children,t),void 0!==t.deleteFcn&&t.deleteFcn(t,this),this.removeWaitForNodeReady(e),this._deletePeerFromOwnerCookieMap(e,t.ownerCookie),delete this._peers[e]}},destroyAllNodePeers:function(){this._nodeReadyPromises={},this._sceneTreeReadyPromise=new i,this._peers={},this._ownerCookieMap={},this._cameras=[],this._overlayAnnotationCamIndex=-1,this._renderer&&this._renderer.clearCapturedImage()},setFont:function(e,t){this._peers[e]._font=t},getGraphicsPickingFunction:function(){return function(e,t,i,n,o){t.apply_stateset(i),e.drawFcn&&e.drawFcn(e,i,n,o)}},setClearColor:function(e){this._clearColor=e},setCanvas:function(e){this._canvas=e},_clearDrawCache:function(e){var t;for(t in void 0!==e&&e.hasOwnProperty("drawCache")&&(e.drawCache=void 0,e.clean=!1),e._children)if(e._children.hasOwnProperty(t)){var i=e._children[t];this._clearDrawCache(i)}},_clearAllDrawCaches:function(){var e;for(e in this._cameras)if(this._cameras.hasOwnProperty(e)){var t=this._cameras[e];this._clearDrawCache(t)}},setRenderer:function(e,t,i){(e!==this._renderMode||t)&&(this._canvas&&(this._renderer&&(this._server.replaceCanvas(),this.setCanvas(this._server.getCanvas()),this._clearAllDrawCaches()),"opengl"===e?(this._renderer=new r(this._canvas,i),this._renderMode="opengl"):(this._renderer=new r(this._canvas,i),this._renderMode="painters")))},getRenderer:function(){return this._renderMode},hasValidRenderer:function(){return this._renderer&&this._renderer.checkContext()},getPixelScale:function(){return window.devicePixelRatio},_preprocessCamera:function(e,t,i){var n=t,o=new s,r=e.traverseFcn;r&&(i.removeAllLights(),e.hasOwnProperty("activelights")&&i.setActiveLights(e.activelights),r(e,o,n,i.appendRenderNode,i))},makeImage:function(){return new Image},_requestAnimationFrame:function(e){return window.requestAnimationFrame(e)},_cancelAnimationFrame:function(e){window.cancelAnimationFrame(e)},_requestAnimationFrameWithTimeout:function(e){if(0===this._requestAnimationFrameTimeout)e(Date.now());else{var t=null,i=null,n=this._requestAnimationFrameTimeout,o=function(){this._cancelAnimationFrame(t),this.log("draw by timeout"),e(Date.now())}.bind(this),r=function(t){window.clearTimeout(i),this.log("draw by requestAnimationFrame"),e(t)}.bind(this);t=this._requestAnimationFrame(r),i=window.setTimeout(o,n)}},draw:function(){!this._drawPending&&this._renderer&&(this._drawPending=!0,this._sceneTreeReadyPromise.then(function(){var e=function(e){this._drawPending=!1,this._returnCDataPromise&&this._returnCDataPromise.resolve(),e&&this.fireRenderComplete(this._renderTimes,{DrawnCount:this._renderer._drawn_count,TotalCount:this._renderer._total_count})}.bind(this);this._requestAnimationFrameWithTimeout(function(t){var i=!0;try{if(this._canvas.width>0&&this._canvas.height>0){this._renderer.setTraversalMode(f.RenderTraversalMode.draw),this._renderer.setDrawViewport(0,0,this._canvas.width,this._canvas.height);var n=this.calculateDependencies();i=this.drawImplementation(n)}}catch(e){this._sendExceptionEvent("Error in draw: "+e)}finally{e(i)}}.bind(this))}.bind(this)))},pick:function(e,t){this._renderer.setTraversalMode(f.RenderTraversalMode.pick);var i=this.calculateDependencies();return this.pickImplementation(i,e,t)},calculateDependencies:function(){var e=f.Dependency.none,t=this._renderer.getViewport();void 0!==this._cachedCanvasWidth&&void 0!==this._cachedCanvasHeight&&this._cachedCanvasWidth===t.width&&this._cachedCanvasHeight===t.height||(e|=f.Dependency.viewport),this._cachedCanvasWidth=t.width,this._cachedCanvasHeight=t.height;var i=this.getPixelScale();return void 0!==this._cachedPixelScale?this._cachedPixelScale!==i&&(e|=f.Dependency.screen_resolution):e|=f.Dependency.screen_resolution,this._cachedPixelScale=i,e},_nodeChildrenAreAboutToBeChanged:function(e){if(this._renderer&&this._renderer.hasCapturedImage()){for(;e.parent&&"Camera"!==e.type;)e=e.parent;"Camera"!==e.type?console.log("Graphics hierarchy not rooted in Camera. Got "+e.type+"!"):this._cameras.indexOf(e)!==this._overlayAnnotationCamIndex&&this._renderer.clearCapturedImage()}},_shouldCapture:function(e){return!this._renderer.hasCapturedImage()&&this._overlayAnnotationCamIndex===e},_shouldDrawCapturedTexture:function(){return this._renderer.hasCapturedImage()},_drawRenderList:function(e,t,i){var n;for(n in e)if(e.hasOwnProperty(n)){var o=e[n],r=o.stateset,a=o.node;r.apply_stateset(t),a.drawFcn&&a.visible&&a.drawFcn(a,t,null,i)}},drawImplementation:function(e){this.DPI=g.FindDPI(),this._renderer.setDrawViewport(0,0,this._canvas.width,this._canvas.height),this._renderer.isDrawingBufferAvailable()||this.emitEvent("drawingBufferUnAvailable",{});var t=this.getPixelScale();if(this._renderer.setDPI(this.DPI*t),this._renderer.setPixelScale(t),this._renderTimes.reset(),this._renderTimes.beginFrame(),this._renderTimes.beginInit(),this._renderer.beginDraw(),!this._renderer.checkContext())return!1;if(this._renderTimes.endInit(),this._renderTimes.beginClear(),this._renderer.setClearColor(this._clearColor),this._renderer.clearDraw(),this._renderTimes.endClear(),void 0===this._cameras||null===this._cameras)return!0;var i=0;for(this._shouldDrawCapturedTexture()&&(i=this._overlayAnnotationCamIndex,this._renderer.drawCapturedImage());i<this._cameras.length;++i){var n=this._cameras[i];this._shouldCapture(i)&&this._renderer.captureCurrentImage(),this._renderTimes.beginCull(),this._renderer._Near=1/0,this._renderer._Far=-1/0;try{this._preprocessCamera(n,e,this._renderer)}catch(e){this._sendExceptionEvent("Error in web cull traversal: "+e);continue}finally{this._renderTimes.endCull()}this._renderTimes.beginDraw(),this._renderer.beginDrawCamera();try{this._renderer.drawCamera(n,this._drawRenderList.bind(this))}catch(e){this._sendExceptionEvent("Error in web draw traversal: "+e)}finally{this._renderTimes.endDraw(),this._renderer.endDrawCamera()}}return this._renderTimes.beginEndFrame(),this._renderer.endDraw(this._requestEndFrame),this._renderTimes.endEndFrame(),this._renderTimes.endFrame(),delete this._renderer._Near,delete this._renderer._Far,!0},_createPicker:function(e,t,i,n){return new _(e,t,i,n)},_pickMarker:function(e,t,i,n,o,r){var a=3*g.getMarkerDataBreakLimitForPicking(),s=v.convertArray(t.vertexdata);e.pickNode(t,i,r),o[t.cookie]=r;for(let e=0;e<s.length;e+=a)n[r]=[t,i],r++;return r},_calculateMarkerIntersectionPt:function(e,t,i,n){var o=3*g.getMarkerDataBreakLimitForPicking(),r=v.convertArray(e.vertexdata),a=n.DSRange[1]-n.DSRange[0],s=n.DSRange[3]-n.DSRange[2],l=n.DSRange[5]-n.DSRange[4],c=Math.min.apply(null,[a,s,l]),d=c/a,u=c/s,h=c/l;let p;if(void 0!==t){var f=(t=(i-t)*o)+o;f=Math.min(r.length,f),p=g.getNearestPoint(n,r.subarray(t,f),d,u,h)}else p=g.getNearestPoint(n,r,d,u,h);return p},_pickRenderList:function(e,t,i,n){var o=this._createPicker(t,i,this._renderer,this._pickRenderPass),r={},a={},s=1,l=!1;for(let t in e)if(e.hasOwnProperty(t)){let i=e[t],c=i.stateset,d=i.node;if("Marker"!==d.type||n?(r[s]=[d,c],o.pickNode(d,c,s),s++):s=this._pickMarker(o,d,c,r,a,s),s>=o.pickColorMapper.rangeMax&&!n){l=!0;break}}if(l)return this._pickRenderList(e,t,i,!0);let c=o.getHitInfo(),d=c.hitIndex,u=c.pickedPixelIndex,h=null;if(d>-1&&d<s){h=new m;let e=r[d],t=e[0],i=e[1],n=o.findIntersectionPoint(t,i,u);if("Marker"===t.type){let e=a[t.cookie];n=this._calculateMarkerIntersectionPt(t,e,d,n)}h.setNode(t),h.setIntersectionPoint(n)}return h},pickImplementation:function(e,t,i){if(void 0!==this._cameras&&null!==this._cameras&&this._renderer.checkContext()){var n=null,o=this._renderer.getPixelScale();this._renderer.setPickSize(4*o,4*o),this._renderer.setPickLocation(t,i);for(let o=this._cameras.length-1;o>=0;o--){var r=this._cameras[o];try{this._preprocessCamera(r,e,this._renderer)}catch(e){this._sendExceptionEvent("Error in web pick cull traversal: "+e);continue}try{this._renderer.setPlotBox(r.plotBox),n=this._pickRenderPass.draw(this._renderer.getWebGLContext(),this._pickRenderList.bind(this),t,i,r.depthsort,this._renderer.front_renderList,this._renderer.middle_opaque_renderList,this._renderer.middle_transparent_renderList,this._renderer.back_renderList),this._renderer.clearRenderLists()}catch(e){this._sendExceptionEvent("Error in web pick traversal: "+e)}if(null!==n)break}return n}},getCData:function(){var e=new i;return this._returnCDataPromise=new i,this._drawPending||this._sceneBeingChanged||this._returnCDataPromise.resolve(),this._returnCDataPromise.then(function(){var t={width:this._canvas.width,height:this._canvas.height,urlString:this._canvas.toDataURL()};this._returnCDataPromise=null,e.resolve(t)}.bind(this)),e},setRequestEndFrame:function(e){this._requestEndFrame=e},addWaitForNodeReady:function(e,t){this._nodeReadyPromises[e]=t},removeWaitForNodeReady:function(e){this._nodeReadyPromises.hasOwnProperty(e)&&(this._nodeReadyPromises[e].cancel("node removed"),delete this._nodeReadyPromises[e])},fireRenderComplete:function(e,t){var i={Statistics:{TotalTime:e.getTotalTime(),InitTime:e.getInitTime(),ClearTime:e.getClearTime(),CullTime:e.getCullTime(),DrawTime:e.getDrawTime(),EndFrameTime:e.getEndFrameTime(),DrawnCount:t.DrawnCount,TotalCount:t.TotalCount}};this.emitEvent("rendercomplete",i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(5999),i(6e3)],o=i.dj.d(n,(function(e,t){return{createWebGLShader:function(t,i,n,o){return new e(t,i,n,o)},createShader:function(e,i,n){var o=t();e.getSourceProviderList().forEach((function(e){var t=i[e];o.addShaderSourceProvider(t)}));var r=n.getVertexShaderHeader()+o.generateVertexSource(),a=n.getFragmentShaderHeader()+o.generateFragmentSource(),s=o.getUniformIDs(),l=o.getAttributeIDs();return this.createWebGLShader(l,s,r,a)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("graphics.MWSG.shader.WebGLShader",[],{constructor:function(e,t,i,n){this._attributes=e,this._uniforms=t,this._vtext=i,this._ftext=n,this._vshader=null,this._fshader=null,this._attributeLocations=[],this._uniformLocations=[]},prepareShaderType:function(e,t,i){var n=e.createShader(t);return e.shaderSource(n,i),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS)||console.log("invalid shader : "+e.getShaderInfoLog(n)),e.attachShader(this._program,n),n},getAttributeLocation:function(e){return this._attributeLocations[e]},getUniformLocation:function(e){return this._uniformLocations[e]},use:function(e){e.useProgram(this._program)},load:function(e){var t,i;for(this._program=e.createProgram(),this._vshader=this.prepareShaderType(e,e.VERTEX_SHADER,this._vtext),this._fshader=this.prepareShaderType(e,e.FRAGMENT_SHADER,this._ftext),e.linkProgram(this._program),this._attributeLocations=[],t=0;t<this._attributes.length;t+=1){var n=e.getAttribLocation(this._program,this._attributes[t].aName);this._attributeLocations[this._attributes[t].id]=n}for(this._uniformLocations=[],i=0;i<this._uniforms.length;i+=1){var o=e.getUniformLocation(this._program,this._uniforms[i].uName);this._uniformLocations[this._uniforms[i].id]=o}},getAttributes:function(){return this._attributes},getUniforms:function(){return this._uniforms},getUniformID:function(e){var t;for(t=0;t<this._uniforms.length;t+=1){if(this._uniformLocations[this._uniforms[t].id]===e)return this._uniforms[t].uName}return-1},getAttribID:function(e){var t;for(t=0;t<this._attributes.length;t+=1){if(this._attributeLocations[this._attributes[t].id]===e)return this._attributes[t].aName}return-1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(631)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(){this._shader_source_providers=[]},addShaderSourceProvider:function(e){this._shader_source_providers.push(e)},generateVertexSource:function(){let e=this._shader_source_providers.length,t="";for(let i=0;i<e;i++){t+=this._shader_source_providers[i].getVertexSourceUniformDeclarationBlock()}for(let i=0;i<e;i++){t+=this._shader_source_providers[i].getVertexSourceAttributeDeclarationBlock()}for(let i=0;i<e;i++){t+=this._shader_source_providers[i].getVertexSourceVaryingDeclarationBlock()}for(let i=0;i<e;i++){t+=this._shader_source_providers[i].getVertexSourceFunctionDeclarationBlock()}t+="void main() { \n";for(let i=0;i<e;i++){t+=this._shader_source_providers[i].getVertexSourceCodeBlock()}return t+=" }",t},generateFragmentSource:function(){let e=this._shader_source_providers.length,t="";for(let i=0;i<e;i++){t+=this._shader_source_providers[i].getFragmentSourceUniformDeclarationBlock()}for(let i=0;i<e;i++){t+=this._shader_source_providers[i].getFragmentSourceVaryingDeclarationBlock()}for(let i=0;i<e;i++){t+=this._shader_source_providers[i].getFragmentSourceFunctionDeclarationBlock()}t+="void main() { \n";for(let i=0;i<e;i++){t+=this._shader_source_providers[i].getFragmentSourceCodeBlock()}return t+=" }",t},getAttributeIDs:function(){let e=[],i=this._shader_source_providers.length;for(let n=0;n<i;n++){let i=this._shader_source_providers[n];e=e.concat(i.getAttributeIDs(t))}return e},getUniformIDs:function(){let e=[],i=this._shader_source_providers.length;for(let n=0;n<i;n++){let i=this._shader_source_providers[n];e=e.concat(i.getUniformIDs(t))}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(325),i(458)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(){this._lineHeight=0},computeSize:function(e,t,n,o,r,a){return this._lineHeight=Math.ceil(1.2*a),{width:i.calcTextWidth(r,t,n),height:this._lineHeight*n}},drawStrings:function(e,t,i,n){if(t>1)for(var o=e,r=t-1;r>=0;r--)i.fillText(o[r],0,-(t-r-1)*this._lineHeight);else i.fillText(e[0],0,0)},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(217),i(325),i(329),i(548),i(1861)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{constructor:function(e){this._texDoms=[],this._equationFormat=e,this._tx=0,this._ty=0,this._vA=0},_rescale:function(e){return(Math.round(parseFloat(e)/255*1e5)/1e5).toString()},decorateSimpleTeX:function(e,t,i){"bold"===t.weight&&(e="\\bf"+e),e="italic"===t.angle?"\\it"+e:"\\rm"+e,void 0!==t.name&&(e="\\fontname{"+t.name+"}"+e);var n=i.match(/rgba\(([0-9]*),([0-9]*),([0-9]*)/);n&&(e="\\color[rgb]{"+this._rescale(n[1])+","+this._rescale(n[2])+","+this._rescale(n[3])+"}"+e);return e},_getTeXDom:function(e,i,n,o){o/=1.1,"simpletex"===this._equationFormat&&(e=this.decorateSimpleTeX(e,i,n));var a={equationFormat:this._equationFormat,pxPerEm:o,ptIsRelative:!0,minimalFontSize:5},s=new r(a),l={style:{display:"inline-block",position:"absolute",right:"-1000px",bottom:"-1000px",fontSize:o+"px",whiteSpace:"pre-wrap",color:n}},c=t.create("span",l,document.body),d=s.render(e,c);if(!d.isResolved())return t.destroy(c),null;var u=null;return d.then((function(e){u=c})),u},_destroyTexDoms:function(){for(var e=0;e<this._texDoms.length;e++)t.destroy(this._texDoms[e]);this._texDoms=[]},destroy:function(){this._destroyTexDoms()},_renderTeXToDoms:function(e,t,i,n){var o,r,a;for(a=!0,o=0;o<e.length;++o){if(!(r=this._getTeXDom(e[o],t,i,n))){a=!1;break}this._texDoms.push(r)}return a},_getTeXBounds:function(e){var t,n,o=0,r=0;for(t=0;t<e.length;++t){n=e[t];var a=i.position(n.firstElementChild,!0);n&&(r+=a.h,a.w>o&&(o=a.w))}return{width:o,height:r}},_drawDoms:function(e,t,n,r,s){r.save();var l=new a;r.textAlign="left";for(var c=0,d=0,u=e.length-1;u>=0;u--){var h=i.position(e[u].firstElementChild,!0);c+=h.h,d=o.getHorizontalTranslation(h.w,s),r.save(),r.translate(-d,-c),l.renderToContext(e[u].firstElementChild,1,r),r.restore()}r.restore()},computeSize:function(e,t,i,n,o,r){return this._renderTeXToDoms(t,e.font,n,r)?this._getTeXBounds(this._texDoms):null},drawStrings:function(e,t,i,n){var o=n.horizontalAlignment;this._drawDoms(this._texDoms,0,0,i,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(325),i(1516),i(968)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(){},getTriangleShaderConfig:function(e){var t=new i,o=n();return t.addShaderOption(o.Ids.pos),t.addShaderOption(o.Ids.texture2d),e.isDepthTexture&&t.addShaderOption(o.Ids.depthtexture2d),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2192),i(1515),i(967),i(6005),i(631),i(6006),i(6007),i(6008),i(6009),i(6010),i(966),i(2194),i(6011)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([],{constructor:function(){this._numTransparentLayers=5,this._debug=!1},setNumLayers:function(e){this._numTransparentLayers=e,this._resourceMgr.setNumLayers(this._numTransparentLayers)},_initShaderConfigFunctions:function(){this._drawPassShaderConfigFcns||(this._drawPassShaderConfigFcns=new n),this._depthPeelerShaderConfigFcns||(this._depthPeelerShaderConfigFcns=new o(!0)),this._depthPeelerShaderConfigFcnsForFirstLayer||(this._depthPeelerShaderConfigFcnsForFirstLayer=new o)},draw:function(e,t,i,n,o,l){if(this._initShaderConfigFunctions(),!this.canDraw())throw Error("Depth peeling isn't supported");var c=e.getViewport();this._resourceMgr.updateResources(c.width,c.height);var d=e.getWebGLContext();d.depthMask(!0),d.enable(d.DEPTH_TEST),d.depthFunc(d.LEQUAL),d.disable(d.BLEND),d.clear(d.DEPTH_BUFFER_BIT),this.r=e,this._resourceMgr.bindFBO(this._resourceMgr.getOpaqueColorTexture().texture,this._resourceMgr.getOpaqueDepthTexture().texture),e.clearDraw([0,0,0,0]),l(i,e,this._drawPassShaderConfigFcns),this._resourceMgr.unbindFBO(),e.fillUniformsCB=function(e,t){let i=this.r.getModelViewTransform(),n=e.getUniformLocation(r.ModelViewMatrix.id);t.uniformMatrix4fv(n,!1,i.getAsFloat32Array());let o=this.r.getProjectionMatrix(),a=e.getUniformLocation(r.ProjectionMat.id);t.uniformMatrix4fv(a,!1,o.getAsFloat32Array());let s=this.textureList.length;for(let i=0;i<s;i++){let n=this.textureList[i];this._resourceMgr.bindTexture(n);let o=this._resourceMgr.getSamplerIndex(n),a="D"+i+"Sampler",s=e.getUniformLocation(r[a].id);t.uniform1i(s,o)}}.bind(this),this.textureList=[],this.textureList.push(this._resourceMgr.getOpaqueDepthTexture());for(var u=0;u<this._numTransparentLayers;++u){0!==u&&(this.textureList[1]=this._resourceMgr.getTransparentDepthTexture(u-1)),this._resourceMgr.bindFBO(this._resourceMgr.getTransparentColorTexture(u).texture,this._resourceMgr.getTransparentDepthTexture(u).texture),e.clearDraw([0,0,0,0]);l(n,e,0===u?this._depthPeelerShaderConfigFcnsForFirstLayer:this._depthPeelerShaderConfigFcns),this._resourceMgr.unbindFBO()}e.fillUniformsCB=void 0;var f=u-1,g=this._resourceMgr.getSamplerIndex(this._resourceMgr.getOpaqueDepthTexture()),m=this._resourceMgr.getSamplerIndex(this._resourceMgr.getTransparentDepthTexture(f)),_=new a(l,n,this._depthPeelerShaderConfigFcns,this._resourceMgr.getOpaqueDepthTexture().texture,g,this._resourceMgr.getTransparentDepthTexture(f).texture,m);!0===this._debug?(this._debugDrawer||(this._debugDrawer=new s),this._debugDrawer.drawDebugLayer(e,this._resourceMgr,_,c.width,c.height,this._numTransparentLayers)):("fxaa"===h.postprocessingeffect?(this._composeIntoTexture(e,c,l,o,_),this._fxaaDrawer||(this._fxaaDrawer=new p),this._fxaaDrawer.draw(e,this._fxaaColorTexture,d.TEXTURE15,c.width,c.height)):(d.enable(d.BLEND),l(o,e,this._drawPassShaderConfigFcns),this._resourceMgr.getComposeTexturesCmd().compose(e,this._resourceMgr.getColorTexturesAlongWithUnit(),_)),d.disable(d.DEPTH_TEST),d.depthMask(!1),l(t,e,this._drawPassShaderConfigFcns))},_composeIntoTexture:function(e,t,i,n,o){var r=e.getWebGLContext(),a=r.getParameter(r.FRAMEBUFFER_BINDING);this._fxaaFBO||(this._fxaaFBO=r.createFramebuffer()),this._fxaaColorTexture&&this._prevFXAAWidth===t.width&&this._prevFXAAHeight===t.height||(this._fxaaColorTexture&&r.deleteTexture(this._fxaaColorTexture),this._fxaaColorTexture=u.createTexture(r,r.TEXTURE15,!1,t.width,t.height,e.getWebGLVersionStrategy())),this._fxaaDepthTexture&&this._prevFXAAWidth===t.width&&this._prevFXAAHeight===t.height||(this._fxaaDepthTexture&&r.deleteTexture(this._fxaaDepthTexture),this._fxaaDepthTexture=u.createTexture(r,r.TEXTURE16,!0,t.width,t.height,e.getWebGLVersionStrategy())),this._prevFXAAWidth=t.width,this._prevFXAAHeight=t.height,r.bindFramebuffer(r.FRAMEBUFFER,this._fxaaFBO),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,this._fxaaColorTexture,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,this._fxaaDepthTexture,0),e.clearDepth(),e.clearDraw(),r.enable(r.BLEND),i(n,e,this._drawPassShaderConfigFcns),this._resourceMgr.getComposeTexturesCmd().compose(e,this._resourceMgr.getColorTexturesAlongWithUnit(),o),r.bindFramebuffer(r.FRAMEBUFFER,a)},canDraw:function(e){return this._initResourceMgr(e),i.canRunDepthPeeling()},_initResourceMgr:function(e){if(!this._resourceMgr){var t=new l(e.getWebGLContext(),e.getWebGLVersionStrategy()),n=new c(e.getWebGLContext(),e.getWebGLVersionStrategy());this._debug&&(n=new d(e.getWebGLContext(),e.getWebGLVersionStrategy())),this._resourceMgr=new i(e.getWebGLContext(),this._numTransparentLayers,t,n,e.getWebGLVersionStrategy())}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(967),i(968)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._useTwoTexturesForDepthTest=e},_addDepthPeelingShaderConfig:function(e){this._useTwoTexturesForDepthTest?e.addShaderOption(this._shaderOpts.Ids.discardFragUsingTwoDepthTexture):e.addShaderOption(this._shaderOpts.Ids.discardFragUsingOneDepthTexture)},addConfigBeforeFragColorIsSet:function(e,t){return this._addDepthPeelingShaderConfig(e),!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(631)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e,t,i,n,o,r,a){this._drawCB=e,this._transparentList=t,this._shaderConfig=i,this._opaqueTexture=n,this._opaqueTextureSamplerId=o,this._lastTransparentTexture=r,this._lastTransparentSamplerId=a},draw:function(e){e.fillUniformsCB=function(e,i){i.activeTexture(i.TEXTURE0+this._opaqueTextureSamplerId),i.bindTexture(i.TEXTURE_2D,this._opaqueTexture);let n=e.getUniformLocation(t.D0Sampler.id);i.uniform1i(n,this._opaqueTextureSamplerId),i.activeTexture(i.TEXTURE0+this._lastTransparentSamplerId),i.bindTexture(i.TEXTURE_2D,this._lastTransparentTexture);let o=e.getUniformLocation(t.D1Sampler.id);i.uniform1i(o,this._lastTransparentSamplerId)}.bind(this),this._drawCB(this._transparentList,e,this._shaderConfig),e.fillUniformsCB=void 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{drawDebugLayer:function(e,t,i,n,o,r){var a=[],s=[];a.push(t.getOpaqueColorTexture().texture),s.push(!1),a.push(t.getOpaqueDepthTexture().texture),s.push(!0);for(var l=0;l<r;l++)a.push(t.getTransparentColorTexture(l).texture),s.push(!1),a.push(t.getTransparentDepthTexture(l).texture),s.push(!0);e.drawTextures(a,!0,s,3)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(966)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e,t){this._gl=e,this._versionStrategy=t},init:function(e,i,n,o,r){this._colorTextures={},this._numTransparentLayers=n,this._colorTextures.OpaqueTexture=t.createTexture(this._gl,i.index,!1,o,r,this._versionStrategy),e.OpaqueColorTexture=i.index++,this._colorTextures.TransparentTextures=[];for(var a=0;a<this._numTransparentLayers;++a)this._colorTextures.TransparentTextures.push(t.createTexture(this._gl,i.index,!1,o,r,this._versionStrategy)),e["TransparentColorTexture"+a]=i.index++},getOpaqueColorTexture:function(){return{texture:this._colorTextures.OpaqueTexture,name:"OpaqueColorTexture"}},getTransparentColorTexture:function(e){return{texture:this._colorTextures.TransparentTextures[e],name:"TransparentColorTexture"+e}},destroy:function(){if(this._colorTextures){var e=this._gl;e.deleteTexture(this._colorTextures.OpaqueTexture);for(var t=0;t<this._prevNumLayers;++t)e.deleteTexture(this._colorTextures.TransparentTextures[t])}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(966)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e,t){this._gl=e,this._versionStrategy=t},init:function(e,i,n,o,r){for(var a in this._numTransparentLayers=n,this._depthTextures={OpaqueDepthTexture:null,LastTransparentPassDepthTexture:null,CurrentTransparentPassDepthTexture:null},this._depthTextures)this._depthTextures[a]=t.createTexture(this._gl,i.index,!0,o,r,this._versionStrategy),e[a]=i.index++},getTransparentDepthTexture:function(e){return e%2==0?{texture:this._depthTextures.CurrentTransparentPassDepthTexture,name:"CurrentTransparentPassDepthTexture"}:{texture:this._depthTextures.LastTransparentPassDepthTexture,name:"LastTransparentPassDepthTexture"}},getOpaqueDepthTexture:function(){return{texture:this._depthTextures.OpaqueDepthTexture,name:"OpaqueDepthTexture"}},destroy:function(){if(this._depthTextures){var e=this._gl;e.deleteTexture(this._depthTextures.OpaqueDepthTexture),e.deleteTexture(this._depthTextures.LastTransparentPassDepthTexture),e.deleteTexture(this._depthTextures.CurrentTransparentPassDepthTexture)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(966)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e,t){this._gl=e,this._versionStrategy=t},init:function(e,i,n,o,r){for(var a in this._numTransparentLayers=n,this._depthTextures={},this._depthTextures)this._depthTextures[a]=t.createTexture(this._gl,i.index,!0,o,r,this._versionStrategy),e[a]=i.index++;this._depthTextures.OpaqueDepthTexture=t.createTexture(this._gl,i.index,!0,o,r,this._versionStrategy),e.OpaqueDepthTexture=i.index++,this._depthTextures.TransparentTextures=[];for(var s=0;s<this._numTransparentLayers;++s)this._depthTextures.TransparentTextures.push(t.createTexture(this._gl,i.index,!0,o,r,this._versionStrategy)),e["TransparentDepthTexture"+s]=i.index++},getTransparentDepthTexture:function(e){return{texture:this._depthTextures.TransparentTextures[e],name:"TransparentDepthTexture"+e}},getOpaqueDepthTexture:function(){return{texture:this._depthTextures.OpaqueDepthTexture,name:"OpaqueDepthTexture"}},destroy:function(){if(this._depthTextures){this._gl.deleteTexture(this._depthTextures.OpaqueDepthTexture);for(var e=0;e<this._depthTextures.TransparentTextures.length;++e)this._gl.deleteTexture(this._depthTextures.TransparentTextures[e])}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6012),i(631),i(406),i(365),i(325)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{constructor:function(){},_saveRendererMatrices:function(e){this._currentProjMat=e.getProjectionMatrix(),this._currentViewMat=e.getViewTransform(),this._currentModelMat=e.getModelTransform()},_setRendererMatricesToIdentity:function(e){this._identityMat||(this._identityMat=new o),e.setProjectionMatrix(this._identityMat),e.setViewTransform(this._identityMat),e.setModelTransform(this._identityMat)},_restoreRendererMatrices:function(e){e.setProjectionMatrix(this._currentProjMat),e.setViewTransform(this._currentViewMat),e.setModelTransform(this._currentModelMat)},draw:function(e,o,a,s,l){var c=e.getWebGLContext(),d=c.isEnabled(c.BLEND);d&&c.disable(c.BLEND);var u={};u.vertexData=n.createFloat32Array([-1,-1,0,-1,1,0,1,-1,0,1,1,0]),u.stripData=n.createFloat32Array([1,5]),u.colorData=n.createFloat32Array([0,0,0,1,1,0,1,1]),u.colorBinding=r.Binding.vertex,u.colorType=r.ColorType.texturemapped,u.clipping=!1,u.texture=null,this._fxaaShaderConfigFcn||(this._fxaaShaderConfigFcn=new t);var h=e.getTriangleShaderConfig(u,this._fxaaShaderConfigFcn),p=e.makeTriangleDrawCache(u,h);p.textureUnit=a,p.texture=o,e._applyTextureSamplingFilter(c,r.TextureSamplingFilterType.linear),c.disable(c.DEPTH_TEST),c.depthMask(!1),this._saveRendererMatrices(e),this._setRendererMatricesToIdentity(e),this.r=e,e.fillUniformsCB=function(e,t){var n=this.r.getViewport(),o=e.getUniformLocation(i.ViewportSize.id);t.uniform2fv(o,[n.width,n.height])}.bind(this),e.drawTriangles(p),e.fillUniformsCB=void 0,this._restoreRendererMatrices(e),d&&c.enable(c.BLEND)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(325),i(1516),i(968)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(){},getTriangleShaderConfiguration:function(e){var t=new i,o=new n;return t.addShaderOption(o.Ids.pos),t.addShaderOption(o.Ids.texture2d),t.addShaderOption(o.Ids.FXAA),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="UseFragCoordForClippingShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return"#ifndef UNIFORM_MODELVIEWMAT \n#define UNIFORM_MODELVIEWMAT \n uniform mat4 u_ModelViewMat; \n#endif \n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return"CENTROID VARYING vec4 v_PosInEyeCoord;\n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return" v_PosInEyeCoord = (u_ModelViewMat*clipPosition);\n"},getFragmentSourceUniformDeclarationBlock:function(){return" uniform mat4 u_MVPInverseMatrix; \n uniform vec4 u_xMinClipPlane; \n uniform vec4 u_xMaxClipPlane; \n uniform vec4 u_yMinClipPlane; \n uniform vec4 u_yMaxClipPlane; \n uniform vec4 u_zMinClipPlane; \n uniform vec4 u_zMaxClipPlane; \n uniform vec2 u_ViewportSize; \n #ifndef UNIFORM_PROJMAT \n #define UNIFORM_PROJMAT \n uniform mat4 u_ProjectionMat; \n #endif \n"},getFragmentSourceVaryingDeclarationBlock:function(){return" CENTROID VARYING vec4 v_PosInEyeCoord; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return" bool is_clipped(vec3 point, vec4 plane) { \n const float eps = 1.0/pow(2.0, 16.0); \n float adjEps = eps * max(abs(plane[3]), 1.0); \n float dist = dot(point, plane.xyz) - plane.w; \n return dist < (-adjEps); // use plane equation to find if point is inside or outside plane \n } \n"},getFragmentSourceCodeBlock:function(){return" vec4 posInClipSpace = (u_ProjectionMat*v_PosInEyeCoord); \n vec4 ndcCoord = vec4( \n 2.0 * (gl_FragCoord.x) / u_ViewportSize.x - 1.0, \n 2.0 * (gl_FragCoord.y) / u_ViewportSize.y - 1.0, \n posInClipSpace.z/posInClipSpace.w, \n 1.0); \n vec4 clipCoord= ndcCoord/gl_FragCoord.w; \n vec4 unProjectedPosition = u_MVPInverseMatrix * clipCoord; \n if ( is_clipped(unProjectedPosition.xyz, u_xMinClipPlane) || is_clipped(unProjectedPosition.xyz, u_xMaxClipPlane) || \n is_clipped(unProjectedPosition.xyz, u_yMinClipPlane) || is_clipped(unProjectedPosition.xyz, u_yMaxClipPlane) || \n is_clipped(unProjectedPosition.xyz, u_zMinClipPlane) || is_clipped(unProjectedPosition.xyz, u_zMaxClipPlane) ) \n { \n discard; \n } \n"},getUniformIDs:function(e){return[e.MVPInverseMatrix,e.xMinClipPlane,e.xMaxClipPlane,e.yMinClipPlane,e.yMaxClipPlane,e.zMinClipPlane,e.zMaxClipPlane,e.ViewportSize,e.ModelViewMatrix,e.ProjectionMat]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="ClippingPositionShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return"vec4 clipPosition = modelPos;\n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="ClippingPositionShaderSourceProvider_ModelSpace"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return"uniform mat4 u_MVPInverseMatrix;\n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return"vec4 clipPosition = u_MVPInverseMatrix * gl_Position;\n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.MVPInverseMatrix]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="PositionShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform mat4 u_MVPMatrix; \n"},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE vec3 a_Position; \n"},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return" // Remember the position for drawing.\n vec4 modelPos = vec4(a_Position,1.); \n gl_Position = u_MVPMatrix * modelPos; \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.MVPMatrix]},getAttributeIDs:function(e){return[e.Position]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="WideLinesPositionShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform mat4 u_MVPMatrix; \n uniform vec2 u_ViewportSize; \n uniform float u_LineWidth; \n"},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE vec3 a_Position; \n ATTRIBUTE vec3 a_NextPos; \n ATTRIBUTE vec3 a_PrevPos; \n ATTRIBUTE float a_PosToAccess; \n"},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return" vec3 nextPrevOrCurrVertex = vec3(0.0, 0.0, 0.0); \n float signVal = sign(a_PosToAccess); \n float absPosToAccess = abs(a_PosToAccess); \n if(absPosToAccess == 0.0) {\n nextPrevOrCurrVertex = a_Position; \n } \n if(absPosToAccess == 1.0) {\n nextPrevOrCurrVertex = a_NextPos; \n } \n if(absPosToAccess == 2.0) {\n nextPrevOrCurrVertex = a_PrevPos; \n } \n vec4 pNPCVertex_ClipSpace = u_MVPMatrix * vec4(nextPrevOrCurrVertex, 1.0); \n vec4 pNPCVertex_NDC = vec4(pNPCVertex_ClipSpace.xyz / pNPCVertex_ClipSpace.w, 1.0); \n vec2 pNPCVertex_Pix = (pNPCVertex_NDC.xy + 1.0) * u_ViewportSize.xy / 2.0; \n vec4 modelPos = vec4(a_Position, 1.0); \n vec4 clipSpacePosition = u_MVPMatrix * modelPos; \n vec4 pNDC = vec4(clipSpacePosition.xyz / clipSpacePosition.w, 1.0); \n vec2 pPix = (pNDC.xy + 1.0) * u_ViewportSize.xy / 2.0; \n vec2 vec = pNPCVertex_Pix - pPix; \n if(absPosToAccess == 2.0) {\n vec = -vec; \n } \n vec2 delta = vec2(0.0, 0.0); \n if(length(vec) > 0.0) { \n vec2 vDirVector = normalize(vec); \n vec2 pRot = vec2(-vDirVector.y, vDirVector.x); \n delta = pRot * (u_LineWidth / 2.0); \n } \n vec2 pNew = pPix + signVal * delta; \n gl_Position = vec4(2.0 * pNew.x / u_ViewportSize.x - 1.0, 2.0 * pNew.y / u_ViewportSize.y - 1.0, pNDC.z, 1.0); \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.MVPMatrix,e.ViewportSize,e.LineWidth]},getAttributeIDs:function(e){return[e.Position,e.PrevPos,e.NextPos,e.PosToAccess]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="WideLinesPositionShaderSourceProvider_V2"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform mat4 u_MVPMatrix; \n uniform vec2 u_ViewportSize; \n uniform float u_LineWidth; \n"},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE vec3 a_Position; \n ATTRIBUTE vec3 a_NextPos; \n ATTRIBUTE vec3 a_NextToNextPos; \n ATTRIBUTE vec3 a_PrevToPrevPos; \n ATTRIBUTE vec3 a_PrevPos; \n ATTRIBUTE float a_VertexIndex; \n ATTRIBUTE float a_PosToAccess; \n"},getVertexSourceVaryingDeclarationBlock:function(){return"centroid VARYING float v_VertexIndex; \nVARYING vec2 v_firstSegmentEndPoint0; \nVARYING vec2 v_firstSegmentEndPoint1; \nVARYING vec2 v_secondSegmentEndPoint0; \nVARYING vec2 v_secondSegmentEndPoint1; \nVARYING vec3 v_firstSegmentEndPoint0InModelSpace; \nVARYING vec3 v_firstSegmentEndPoint1InModelSpace; \nVARYING vec3 v_secondSegmentEndPoint0InModelSpace; \nVARYING vec3 v_secondSegmentEndPoint1InModelSpace; \n"},getVertexSourceFunctionDeclarationBlock:function(){return" vec4 toNDC(vec3 pos, mat4 mvp) { \n vec4 clipSpace = mvp * vec4(pos, 1.0); \n vec4 ndcSpace = vec4(clipSpace.xyz / clipSpace.w, 1.0); \n return ndcSpace; \n } \n vec2 toPixelSpace(vec3 pos, mat4 mvp, vec2 viewPort) { \n vec4 ndcSpace = toNDC(pos, mvp); \n return ((ndcSpace.xy + 1.0) * u_ViewportSize.xy / 2.0); \n } \n float calcSignOfDirection(vec2 dirFirstSegment, vec2 dirSecondSegment) { \n vec2 tangent = normalize(dirSecondSegment - dirFirstSegment); \n vec2 normalToTangent = vec2(-tangent.y, tangent.x); \n float signRet = sign(dot(normalize(-1.0 * (dirFirstSegment+dirSecondSegment)), normalToTangent)); \n return signRet; \n} \n"},getVertexSourceCodeBlock:function(){return"vec4 modelPos = vec4(a_Position, 1.0); \nv_VertexIndex = floor(a_VertexIndex / 2.0); \nfloat signVal = sign(a_PosToAccess); \nfloat absPosToAccess = abs(a_PosToAccess); \nvec3 currentModelPos = a_Position; \nvec2 currentPixelPos = toPixelSpace(currentModelPos, u_MVPMatrix, u_ViewportSize); \nvec3 nextModelPos; \nif(a_Position != a_NextPos) { \n nextModelPos = a_NextPos;\n} else {\n nextModelPos = a_NextToNextPos;\n} \nvec3 prevModelPos; \nif(a_Position != a_PrevPos) { \n prevModelPos = a_PrevPos;\n} else {\n prevModelPos = a_PrevToPrevPos;\n} \nvec2 directionVec = vec2(0.0, 0.0); \nif(absPosToAccess == 1.0) { \n vec2 nextPixelPos = toPixelSpace(nextModelPos, u_MVPMatrix, u_ViewportSize); \n directionVec = nextPixelPos - currentPixelPos; \n v_firstSegmentEndPoint0 = currentPixelPos; \n v_firstSegmentEndPoint1 = nextPixelPos; \n v_secondSegmentEndPoint0 = currentPixelPos; \n v_secondSegmentEndPoint1 = nextPixelPos; \n v_firstSegmentEndPoint0InModelSpace = currentModelPos; \n v_firstSegmentEndPoint1InModelSpace = nextModelPos; \n v_secondSegmentEndPoint0InModelSpace = currentModelPos; \n v_secondSegmentEndPoint1InModelSpace = nextModelPos; \n} \nif(absPosToAccess == 3.0) { \n vec2 prevPixelPos = toPixelSpace(prevModelPos, u_MVPMatrix, u_ViewportSize); \n directionVec = currentPixelPos - prevPixelPos; \n v_firstSegmentEndPoint0 = prevPixelPos; \n v_firstSegmentEndPoint1 = currentPixelPos; \n v_secondSegmentEndPoint0 = prevPixelPos; \n v_secondSegmentEndPoint1 = currentPixelPos; \n v_firstSegmentEndPoint0InModelSpace = prevModelPos; \n v_firstSegmentEndPoint1InModelSpace = currentModelPos; \n v_secondSegmentEndPoint0InModelSpace = prevModelPos; \n v_secondSegmentEndPoint1InModelSpace = currentModelPos; \n} \nvec2 pRot = vec2(0.0, 0.0); \nfloat scaleFactor = u_LineWidth / 2.0; \nif(absPosToAccess == 1.0 || absPosToAccess == 3.0) { \nif((directionVec.x*directionVec.x + directionVec.y*directionVec.y) > 0.0) { \n vec2 normalizedDirVector = normalize(directionVec); \n pRot = vec2(-normalizedDirVector.y, normalizedDirVector.x); \n} \n} \nif(absPosToAccess == 4.0) { \nvec2 nextPixelPos = toPixelSpace(nextModelPos, u_MVPMatrix, u_ViewportSize); \nvec2 prevPixelPos = toPixelSpace(prevModelPos, u_MVPMatrix, u_ViewportSize); \nfloat vertexIndexVal = mod(floor(a_VertexIndex/2.0), 2.0); \nif(vertexIndexVal == 0.0) { \n v_firstSegmentEndPoint0 = currentPixelPos; \n v_firstSegmentEndPoint1 = nextPixelPos; \n v_secondSegmentEndPoint0 = prevPixelPos; \n v_secondSegmentEndPoint1 = currentPixelPos; \n v_firstSegmentEndPoint0InModelSpace = currentModelPos; \n v_firstSegmentEndPoint1InModelSpace = nextModelPos; \n v_secondSegmentEndPoint0InModelSpace = prevModelPos; \n v_secondSegmentEndPoint1InModelSpace = currentModelPos; \n} else {\n v_firstSegmentEndPoint0 = prevPixelPos; \n v_firstSegmentEndPoint1 = currentPixelPos; \n v_secondSegmentEndPoint0 = currentPixelPos; \n v_secondSegmentEndPoint1 = nextPixelPos; \n v_firstSegmentEndPoint0InModelSpace = prevModelPos; \n v_firstSegmentEndPoint1InModelSpace = currentModelPos; \n v_secondSegmentEndPoint0InModelSpace = currentModelPos; \n v_secondSegmentEndPoint1InModelSpace = nextModelPos; \n} \nvec2 dirFirstSegment = normalize(prevPixelPos - currentPixelPos); \nvec2 dirSecondSegment = normalize(nextPixelPos - currentPixelPos); \nfloat dirDotPro = dot(dirFirstSegment, dirSecondSegment); \nconst float eps = 0.0000002384185791015625; // 2^-22 \nif((abs(abs(dirDotPro) - 1.0)) > eps) { \n float innerAngle = acos(dirDotPro); \n float joinAngle = 3.1415926 - innerAngle; \n float rotationAngle = joinAngle / 2.0; \n float miterLimit = 20.0 * scaleFactor; \n scaleFactor = scaleFactor / cos(rotationAngle); \n pRot = normalize(-1.0 * (dirFirstSegment + dirSecondSegment)); \n signVal = signVal * calcSignOfDirection(dirFirstSegment, dirSecondSegment); \n if (scaleFactor > miterLimit && signVal != 1.0) { \n scaleFactor = miterLimit; \n } \n} else { \n pRot = vec2(dirFirstSegment.y, -dirFirstSegment.x); \n} \n} \nvec2 delta = pRot * scaleFactor; \nvec2 pNew = currentPixelPos + signVal * delta; \ngl_Position = vec4((2.0 * pNew.xy) / (u_ViewportSize.xy) - 1.0, toNDC(currentModelPos, u_MVPMatrix).z, 1.0); \n"},getFragmentSourceUniformDeclarationBlock:function(){return" uniform float u_LineWidth; \n"},getFragmentSourceVaryingDeclarationBlock:function(){return this.getVertexSourceVaryingDeclarationBlock()},_getComputeOpacityBasedUponDistBlock:function(){return"float computeOpacityBasedUponDist() { \n vec2 lineEndPoint0; \n vec2 lineEndPoint1; \n if(mod(floor(v_VertexIndex), 2.0) == 0.0) { \n lineEndPoint0 = v_firstSegmentEndPoint0; \n lineEndPoint1 = v_firstSegmentEndPoint1; \n } else { \n lineEndPoint0 = v_secondSegmentEndPoint0; \n lineEndPoint1 = v_secondSegmentEndPoint1; \n } \n vec2 diff = lineEndPoint1 - lineEndPoint0; \n float lengthSqr = diff.x*diff.x + diff.y*diff.y; \n vec2 nearestPoint = vec2(0.0); \n if(lengthSqr == 0.0) { \n nearestPoint = gl_FragCoord.xy; \n } else { \n float t = (dot(vec2(gl_FragCoord.xy - lineEndPoint0), diff)) / lengthSqr; \n if(t < 0.0) { \n nearestPoint = lineEndPoint0; \n } else if(t > 1.0) { \n nearestPoint = lineEndPoint1; \n } else { \n nearestPoint = vec2(lineEndPoint0.x + t * (lineEndPoint1.x - lineEndPoint0.x), lineEndPoint0.y + t * (lineEndPoint1.y - lineEndPoint0.y)); \n if(u_LineWidth < 40.0) {\n return 1.0;\n } \n } \n } \n float distToLine = distance(nearestPoint, gl_FragCoord.xy)/(u_LineWidth/2.0); \n float alpha = smoothstep(1.0, 0.90, distToLine); \n return alpha; \n} \n"},_getNearestPointBlock:function(){return"vec3 getNearestPoint() { \n vec2 lineEndPoint0; \n vec2 lineEndPoint1; \n vec3 lineEndPointModelSpace0; \n vec3 lineEndPointModelSpace1; \n if(mod(floor(v_VertexIndex), 2.0) == 0.0) { \n lineEndPoint0 = v_firstSegmentEndPoint0; \n lineEndPoint1 = v_firstSegmentEndPoint1; \n lineEndPointModelSpace0 = v_firstSegmentEndPoint0InModelSpace; \n lineEndPointModelSpace1 = v_firstSegmentEndPoint1InModelSpace; \n } else { \n lineEndPoint0 = v_secondSegmentEndPoint0; \n lineEndPoint1 = v_secondSegmentEndPoint1; \n lineEndPointModelSpace0 = v_secondSegmentEndPoint0InModelSpace; \n lineEndPointModelSpace1 = v_secondSegmentEndPoint1InModelSpace; \n } \n vec2 diff = lineEndPoint1 - lineEndPoint0; \n float lengthSqr = diff.x*diff.x + diff.y*diff.y; \n vec3 nearestPoint = vec3(0.0); \n if(lengthSqr == 0.0) { \n return lineEndPointModelSpace0; \n } else { \n float t = (dot(vec2(gl_FragCoord.xy - lineEndPoint0), diff)) / lengthSqr; \n if(t < 0.0) { \n nearestPoint = lineEndPointModelSpace0; \n } else if(t > 1.0) { \n nearestPoint = lineEndPointModelSpace1; \n } else { \n nearestPoint = lineEndPointModelSpace0 + t*(lineEndPointModelSpace1-lineEndPointModelSpace0); \n } \n } \n return nearestPoint; \n} \n"},getFragmentSourceFunctionDeclarationBlock:function(){var e="#define USECOMPUTEDALPHA \n";return e+=this._getComputeOpacityBasedUponDistBlock(),e+=this._getNearestPointBlock()},getFragmentSourceCodeBlock:function(){return"float alphaVal = computeOpacityBasedUponDist(); \n"},getUniformIDs:function(e){return[e.MVPMatrix,e.ViewportSize,e.LineWidth]},getAttributeIDs:function(e){return[e.Position,e.PrevToPrevPos,e.PrevPos,e.NextPos,e.VertexIndex,e.NextToNextPos,e.PosToAccess]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="WideLinesClippingPositionShaderSourceProvider_V2"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return"uniform mat4 u_MVPInverseMatrix;\n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return"vec4 clipPosition = u_MVPInverseMatrix * gl_Position;\nclipPosition = vec4(clipPosition.xy/clipPosition.w, modelPos.z, 1.0);"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.MVPInverseMatrix]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="ClippingShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform vec4 u_xMinClipPlane; \n uniform vec4 u_xMaxClipPlane; \n uniform vec4 u_yMinClipPlane; \n uniform vec4 u_yMaxClipPlane; \n uniform vec4 u_zMinClipPlane; \n uniform vec4 u_zMaxClipPlane; \n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return" CENTROID VARYING float v_xMinClipDist; \n CENTROID VARYING float v_xMaxClipDist; \n CENTROID VARYING float v_yMinClipDist; \n CENTROID VARYING float v_yMaxClipDist; \n CENTROID VARYING float v_zMinClipDist; \n CENTROID VARYING float v_zMaxClipDist; \n"},getVertexSourceFunctionDeclarationBlock:function(){return" float point_plane_distance( vec4 plane, vec4 point ){ \n const float eps = 0.0000002384185791015625; \n float adjEps = eps * max(abs(plane[3]), 1.0); \n return ( dot(vec3(plane.xyz), vec3(point.xyz)) - plane[3] + adjEps ); \n } \n"},getVertexSourceCodeBlock:function(){return" v_xMinClipDist = point_plane_distance( u_xMinClipPlane, clipPosition ); \n v_xMaxClipDist = point_plane_distance( u_xMaxClipPlane , clipPosition); \n v_yMinClipDist = point_plane_distance( u_yMinClipPlane , clipPosition); \n v_yMaxClipDist = point_plane_distance( u_yMaxClipPlane , clipPosition); \n v_zMinClipDist = point_plane_distance( u_zMinClipPlane , clipPosition); \n v_zMaxClipDist = point_plane_distance( u_zMaxClipPlane , clipPosition); \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return" CENTROID VARYING float v_xMinClipDist; \n CENTROID VARYING float v_xMaxClipDist; \n CENTROID VARYING float v_yMinClipDist; \n CENTROID VARYING float v_yMaxClipDist; \n CENTROID VARYING float v_zMinClipDist; \n CENTROID VARYING float v_zMaxClipDist; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return" if( v_xMinClipDist < 0.0 || v_yMinClipDist < 0.0 || \n v_zMinClipDist < 0.0 || v_xMaxClipDist < 0.0 || \n v_yMaxClipDist < 0.0 || v_zMaxClipDist < 0.0) \n { \n discard; \n } \n"},getUniformIDs:function(e){return[e.xMinClipPlane,e.xMaxClipPlane,e.yMinClipPlane,e.yMaxClipPlane,e.zMinClipPlane,e.zMaxClipPlane]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="PolarClippingShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform vec2 u_polarOrigin; \n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return" CENTROID VARYING float v_xClipPos; \n CENTROID VARYING float v_yClipPos; \n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return" v_xClipPos = clipPosition.x - u_polarOrigin.x; \n v_yClipPos = clipPosition.y - u_polarOrigin.y; \n"},getFragmentSourceUniformDeclarationBlock:function(){return" uniform float u_startTheta; \n uniform float u_endTheta; \n uniform float u_innerRadius; \n uniform float u_outerRadius; \n"},getFragmentSourceVaryingDeclarationBlock:function(){return" CENTROID VARYING float v_xClipPos; \n CENTROID VARYING float v_yClipPos; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return"#ifndef DECLARE_POLARFUNCTION \n#define DECLARE_POLARFUNCTION \nvec2 convertToPolar(in vec2 point, in float startTheta) { \n vec2 polarPos = vec2(0.0,0.0); \n polarPos.x = length(point); \n polarPos.y = degrees(atan(point.y, point.x)); \n if (polarPos.y < 0.0) { \n polarPos.y = polarPos.y + 360.0; \n } \n if (polarPos.y < startTheta) { \n polarPos.y = polarPos.y + 360.0; \n } \n return polarPos; \n} \n#endif \n"},getFragmentSourceCodeBlock:function(){return" vec2 polarPos = convertToPolar(vec2(v_xClipPos, v_yClipPos), u_startTheta);\n if( polarPos.x < u_innerRadius || polarPos.x > u_outerRadius || \n polarPos.y < u_startTheta || polarPos.y > u_endTheta) \n { \n discard; \n } \n"},getUniformIDs:function(e){return[e.startTheta,e.endTheta,e.innerRadius,e.outerRadius,e.polarOrigin]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="StippleShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return"ATTRIBUTE float a_StippleCoord; \n"},getVertexSourceVaryingDeclarationBlock:function(){return"VARYING float v_StippleCoord; \n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return"v_StippleCoord = a_StippleCoord; \n"},getFragmentSourceUniformDeclarationBlock:function(){return"uniform vec4 u_StipplePattern; \n"},getFragmentSourceVaryingDeclarationBlock:function(){return"VARYING float v_StippleCoord; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return"float len = u_StipplePattern.x + u_StipplePattern.y + u_StipplePattern.z + u_StipplePattern.w; \nfloat modCoord = floor(mod(v_StippleCoord,len) + 0.5); \nif( (modCoord > u_StipplePattern.x) && (modCoord < (u_StipplePattern.x + u_StipplePattern.y) ) ) { \n discard; \n} \nif( modCoord > (u_StipplePattern.x+u_StipplePattern.y+u_StipplePattern.z)) { \n discard; \n} \n"},getUniformIDs:function(e){return[e.StipplePattern]},getAttributeIDs:function(e){return[e.StippleCoord]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="Texture1DShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE highp float a_TexCoord; \n"},getVertexSourceVaryingDeclarationBlock:function(){return" VARYING highp vec2 v_TexCoord; \n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return" v_TexCoord = vec2(a_TexCoord,0.5); \n"},getFragmentSourceUniformDeclarationBlock:function(){return" uniform highp sampler2D u_Sampler2D; \n"},getFragmentSourceVaryingDeclarationBlock:function(){return" VARYING highp vec2 v_TexCoord; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return" OUTCOLOR = texture2D(u_Sampler2D, v_TexCoord); \n"},getUniformIDs:function(e){return[e.Sampler2D]},getAttributeIDs:function(e){return[e.TexCoord]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="Texture2DShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE highp vec2 a_TexCoord; \n"},getVertexSourceVaryingDeclarationBlock:function(){return" VARYING highp vec2 v_TexCoord; \n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return" v_TexCoord = a_TexCoord.st; \n"},getFragmentSourceUniformDeclarationBlock:function(){return" uniform highp sampler2D u_Sampler2D; \n"},getFragmentSourceVaryingDeclarationBlock:function(){return" VARYING highp vec2 v_TexCoord; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return" OUTCOLOR = texture2D(u_Sampler2D, v_TexCoord); \n"},getUniformIDs:function(e){return[e.Sampler2D]},getAttributeIDs:function(e){return[e.TexCoord]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="DepthTexture2DShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return""},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return" float z = texture2D(u_Sampler2D, v_TexCoord.st).x; \n OUTCOLOR = vec4(z, z, z, 1.0); \n"},getUniformIDs:function(e){return[]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._name="VertexColorShaderSourceProvider",this._isOpaque=e},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE vec4 a_Color; \n"},getVertexSourceVaryingDeclarationBlock:function(){return" VARYING vec4 v_Color; \n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return this._isOpaque?" v_Color = vec4(a_Color[0],a_Color[1],a_Color[2],1.0);\n":" v_Color = a_Color;\n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return" VARYING vec4 v_Color; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return" OUTCOLOR = v_Color; \n"},getUniformIDs:function(e){return[]},getAttributeIDs:function(e){return[e.Color]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._name="MarkerConstantColorShaderSourceProvider",this._isOpaque=e},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform vec4 u_FaceColor; \n uniform vec4 u_EdgeColor; \n"},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE float a_FaceColorIndicator; \n"},getVertexSourceVaryingDeclarationBlock:function(){return" VARYING vec4 v_Color; \n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return this._isOpaque?" if(a_FaceColorIndicator == 1.0) { // If face color is to be used \n v_Color = vec4(u_FaceColor[0], u_FaceColor[1], u_FaceColor[2], 1.0); \n } else { // if edge color is to be used \n v_Color = vec4(u_EdgeColor[0], u_EdgeColor[1], u_EdgeColor[2], 1.0); \n } \n":" if(a_FaceColorIndicator == 1.0) { // If face color is to be used \n v_Color = u_FaceColor; \n } else { // If edge color is to be used \n v_Color = u_EdgeColor; \n } \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return" VARYING vec4 v_Color; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return" OUTCOLOR = v_Color; \n"},getUniformIDs:function(e){return[e.FaceColor,e.EdgeColor]},getAttributeIDs:function(e){return[e.FaceColorIndicator]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1521)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){this._name="AnchorPointPositionShaderSourceProvider",this._AVC=e,!0===e&&(this._AVCSrcProvider=new t(!1))},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){var e="uniform mat4 u_MVPMatrix; \nuniform vec3 u_Anchor; \nuniform float u_Scale; \nuniform int u_ClosedLoopEdge; \n";return this._AVC&&(e+=this._AVCSrcProvider.getVertexSourceUniformDeclarationBlock()),e},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE vec2 a_Coord2D; \n ATTRIBUTE vec2 a_Coord2DOffset; \n"},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return this._AVC?this._AVCSrcProvider.getVertexSourceFunctionDeclarationBlock():""},getVertexSourceCodeBlock:function(){var e=" vec4 modelPos = vec4(u_Anchor,1.); \n vec4 pos = u_MVPMatrix * modelPos; \n pos.x = pos.x / pos.w; \n pos.y = pos.y / pos.w; \n pos.z = pos.z / pos.w; \n pos.w = 1.; \n";return this._AVC&&(e=e+" pos = "+this._AVCSrcProvider.getStrAVCMasterFunc("pos")+"; \n"),e+=" vec2 clPos = u_Scale * a_Coord2D; \n vec2 ePos = clPos + a_Coord2DOffset; \n if (u_ClosedLoopEdge == 1) { \n float clLen = length(clPos); \n const float eps = 0.0000002384185791015625; \n if (clLen > eps) { \n float t = 0.0; \n if (abs(clPos.x) > abs(clPos.y)) { \n t = ePos.x / clPos.x; \n } \n else { \n t = ePos.y / clPos.y; \n } \n if (t <= 0.0) { \n ePos = vec2(0.0, 0.0); \n } \n } \n } \n gl_Position = pos + vec4(ePos, 0., 0.); \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){var t=[e.MVPMatrix,e.Anchor,e.Scale,e.ClosedLoopEdge];return this._AVC&&(t=t.concat(this._AVCSrcProvider.getUniformIDs(e))),t},getAttributeIDs:function(e){return[e.Coord2D,e.Coord2DOffset]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="AnchorPointClippingShaderSourceProvider_3dBox"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform vec4 u_xMinClipPlane; \n uniform vec4 u_xMaxClipPlane; \n uniform vec4 u_yMinClipPlane; \n uniform vec4 u_yMaxClipPlane; \n uniform vec4 u_zMinClipPlane; \n uniform vec4 u_zMaxClipPlane; \n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return" float point_plane_distance( vec4 plane, vec4 point ){ \n const float eps = 0.0000002384185791015625; \n float adjEps = eps * max(abs(plane[3]), 1.0); \n return ( (plane[0]*point[0]) + (plane[1]*point[1]) + (plane[2]*point[2]) - plane[3] + adjEps ); \n } \n"},getVertexSourceCodeBlock:function(){return" if (point_plane_distance( u_xMinClipPlane, modelPos ) < 0.0 || \n point_plane_distance( u_xMaxClipPlane, modelPos ) < 0.0 || \n point_plane_distance( u_yMinClipPlane, modelPos ) < 0.0 || \n point_plane_distance( u_yMaxClipPlane, modelPos ) < 0.0 || \n point_plane_distance( u_zMinClipPlane, modelPos ) < 0.0 || \n point_plane_distance( u_zMaxClipPlane, modelPos ) < 0.0) { \n // Use anchor point to make degenerate geometry \n gl_Position = pos; \n } \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.xMinClipPlane,e.xMaxClipPlane,e.yMinClipPlane,e.yMaxClipPlane,e.zMinClipPlane,e.zMaxClipPlane]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="AnchorPointClippingShaderSourceProvider_ScissorRect"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform vec4 u_ScissorRect; \n #ifndef UNIFORM_VIEWPORTSIZE \n #define UNIFORM_VIEWPORTSIZE \n uniform vec2 u_ViewportSize; \n #endif \n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return" int isPointOutsideScissorRect(vec4 rect, vec4 pos) { \n vec2 p = pos.xy; \n float x = 0.5 * u_ViewportSize.x * (p.x + 1.0); \n float y = 0.5 * u_ViewportSize.y * (p.y + 1.0); \n if( (x >= (rect.x - 1.0)) && (x <= (rect.x + rect.z + 1.0)) && \n (y >= (rect.y - 1.0)) && (y <= (rect.y + rect.w + 1.0))) { \n return 0; \n } else { \n return 1; \n } \n } \n"},getVertexSourceCodeBlock:function(){return" if (isPointOutsideScissorRect(u_ScissorRect, pos) == 1) { \n gl_Position = pos; \n } \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.ScissorRect,e.ViewportSize]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="AnchorPointClippingShaderSourceProvider_Polar"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform vec2 u_polarOrigin; \n uniform float u_startTheta; \n uniform float u_endTheta; \n uniform float u_innerRadius; \n uniform float u_outerRadius; \n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return"#ifndef DECLARE_POLARFUNCTION \n#define DECLARE_POLARFUNCTION \nvec2 convertToPolar(in vec2 point, in float startTheta) { \n vec2 polarPos = vec2(0.0,0.0); \n polarPos.x = length(point); \n polarPos.y = degrees(atan(point.y, point.x)); \n if (polarPos.y < 0.0) { \n polarPos.y = polarPos.y + 360.0; \n } \n if (polarPos.y < startTheta) { \n polarPos.y = polarPos.y + 360.0; \n } \n return polarPos; \n} \n#endif \n"},getVertexSourceCodeBlock:function(){return" vec2 polarPos = convertToPolar(modelPos.xy - u_polarOrigin, u_startTheta); \n if( polarPos.x < u_innerRadius || polarPos.x > u_outerRadius || \n polarPos.y < u_startTheta || polarPos.y > u_endTheta) \n { \n // Use anchor point to make degenerate geometry \n gl_Position = pos; \n } \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.startTheta,e.endTheta,e.innerRadius,e.outerRadius,e.polarOrigin]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._name="ConstantColorShaderSourceProvider",this._isOpaque=e},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return""},getFragmentSourceUniformDeclarationBlock:function(){return" uniform vec4 u_Color; \n"},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return this._isOpaque?"\n #ifdef USECOMPUTEDALPHA \n OUTCOLOR = vec4(u_Color[0],u_Color[1],u_Color[2], alphaVal); \n#else \n OUTCOLOR = vec4(u_Color[0],u_Color[1],u_Color[2], 1.0);\n#endif\n":" OUTCOLOR = u_Color;\n"},getUniformIDs:function(e){return[e.Color]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="ImagePositionShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform mat4 u_MVPMatrix; \n uniform vec3 u_Anchor; \n #ifndef UNIFORM_VIEWPORTSIZE \n #define UNIFORM_VIEWPORTSIZE \n uniform vec2 u_ViewportSize; \n #endif \n"},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE vec2 a_Coord2D; \n"},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return" vec4 align_to_pixel( vec4 pos, vec2 screensize){ \n vec2 pt2 = pos.xy; \n vec2 xyf = vec2((pt2/2.0+0.5)*screensize);\n vec2 xy = vec2(floor(xyf.x+0.5), floor(xyf.y+0.5));\n vec2 res = xy*2.0/screensize-1.0; \n return vec4(res, pos.z, pos.w); \n } \n"},getVertexSourceCodeBlock:function(){return" // Remember the position for drawing. \n vec4 modelPos = vec4(u_Anchor,1.); \n vec4 pos = u_MVPMatrix * modelPos; \n pos.x = pos.x / pos.w; \n pos.y = pos.y / pos.w; \n pos.z = pos.z / pos.w; \n pos.w = 1.; \n vec4 newpos = align_to_pixel(pos, u_ViewportSize); \n vec2 halfViewportSize = u_ViewportSize / 2.0; \n vec2 offset = a_Coord2D / halfViewportSize; \n gl_Position = newpos + vec4(offset, 0., 0.); \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.MVPMatrix,e.Anchor,e.ViewportSize]},getAttributeIDs:function(e){return[e.Coord2D]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="WideLinesPositionShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform mat4 u_MVPMatrix; \n uniform vec2 u_ViewportSize; \n uniform float u_LineWidth; \n uniform int u_JoinStyle; \n uniform int u_SegmentsPerJoin; \n"},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE vec3 a_Position; \n ATTRIBUTE vec3 a_NextPos; \n ATTRIBUTE vec3 a_PrevPos; \n ATTRIBUTE float a_VertexIndex; \n"},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return" vec2 calculateOuterBisector(vec2 u, vec2 v) { \n float magU = length(u); \n float magV = length(v); \n vec2 uVec = u * magV; \n vec2 vVec = v * magU; \n return (-1.0 * (uVec + vVec)); \n } \n"},getVertexSourceCodeBlock:function(){return" vec4 pPrev_ClipSpace = u_MVPMatrix * vec4(a_PrevPos, 1.0); \n vec4 pPrev_NDC = vec4(pPrev_ClipSpace.xyz / pPrev_ClipSpace.w, 1.0); \n vec2 pPrev_Pix = vec2((pPrev_NDC.x + 1.0) * u_ViewportSize.x / 2.0, (pPrev_NDC.y + 1.0) * u_ViewportSize.y / 2.0); \n vec4 pNext_ClipSpace = u_MVPMatrix * vec4(a_NextPos, 1.0); \n vec4 pNext_NDC = vec4(pNext_ClipSpace.xyz / pNext_ClipSpace.w, 1.0); \n vec2 pNext_Pix = vec2((pNext_NDC.x + 1.0) * u_ViewportSize.x / 2.0, (pNext_NDC.y + 1.0) * u_ViewportSize.y / 2.0); \n vec4 modelPos = vec4(a_Position, 1.0); \n vec4 clipSpacePosition = u_MVPMatrix * modelPos; \n vec4 pNDC = vec4(clipSpacePosition.xyz / clipSpacePosition.w, 1.0); \n vec2 pPix = vec2((pNDC.x + 1.0) * u_ViewportSize.x / 2.0, (pNDC.y + 1.0) * u_ViewportSize.y / 2.0); \n if(a_VertexIndex == 0.0) { \n gl_Position = clipSpacePosition; \n } else { \n float prevVectorLen = length(pPrev_Pix - pPix); \n float nextVectorLen = length(pNext_Pix - pPix); \n if ((prevVectorLen < 1.0 || nextVectorLen < 1.0)) {\n gl_Position = clipSpacePosition; \n } else { \n vec2 dirVectorPrev = normalize(pPrev_Pix - pPix); \n vec2 dirVectorNext = normalize(pNext_Pix - pPix); \n float innerAngle = acos(dot(dirVectorPrev, dirVectorNext)); \n float joinAngle = 3.1415926 - innerAngle; \n float joinAngle_Half = joinAngle / 2.0; \n vec2 outerBisector = calculateOuterBisector(dirVectorPrev, dirVectorNext); \n vec2 outerBisector_Rot = vec2(outerBisector.x * cos(-joinAngle_Half) - outerBisector.y * sin(-joinAngle_Half), outerBisector.x * sin(-joinAngle_Half) + outerBisector.y * cos(-joinAngle_Half)); \n outerBisector_Rot = normalize(outerBisector_Rot); \n float rotationAngle = 0.0; \n float scaleFactor = u_LineWidth / 2.0; \n rotationAngle = (a_VertexIndex - 1.0) * (joinAngle / float(u_SegmentsPerJoin)); \n if(u_JoinStyle == 1 && a_VertexIndex == 2.0) { \n float miterLimit = 4.0 * 2.5 * scaleFactor; \n scaleFactor = scaleFactor / cos(joinAngle_Half); \n if (scaleFactor > miterLimit) { \n scaleFactor = (u_LineWidth / 2.0) * cos(joinAngle_Half); \n } \n } \n vec2 pRot = vec2(outerBisector_Rot.x * cos(rotationAngle) - outerBisector_Rot.y * sin(rotationAngle), outerBisector_Rot.x * sin(rotationAngle) + outerBisector_Rot.y * cos(rotationAngle)); \n vec2 delta = pRot * scaleFactor; \n vec2 pNew = pPix + delta; \n gl_Position = vec4(2.0 * pNew.x / u_ViewportSize.x - 1.0, 2.0 * pNew.y / u_ViewportSize.y - 1.0, pNDC.z, 1.0); \n }} \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.MVPMatrix,e.ViewportSize,e.LineWidth,e.JoinStyle,e.SegmentsPerJoin]},getAttributeIDs:function(e){return[e.Position,e.VertexIndex,e.PrevPos,e.NextPos]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="WideLinesPositionShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return" uniform mat4 u_MVPMatrix; \n uniform vec2 u_ViewportSize; \n uniform float u_LineWidth; \n uniform int u_CapStyle; \n uniform int u_SegmentsPerCap; \n"},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE vec3 a_Position; \n ATTRIBUTE float a_VertexIndex; \n ATTRIBUTE vec3 a_UnitDistPoint; \n"},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return" vec4 pUDP_ClipSpace = u_MVPMatrix * vec4(a_UnitDistPoint, 1.0); \n vec4 pUDP_NDC = vec4(pUDP_ClipSpace.xyz / pUDP_ClipSpace.w, 1.0); \n vec2 pUDP_Pix = vec2((pUDP_NDC.x + 1.0) * u_ViewportSize.x / 2.0, (pUDP_NDC.y + 1.0) * u_ViewportSize.y / 2.0); \n vec4 modelPos = vec4(a_Position, 1.0); \n vec4 clipSpacePosition = u_MVPMatrix * modelPos; \n vec4 pNDC = vec4(clipSpacePosition.xyz / clipSpacePosition.w, 1.0); \n vec2 pPix = vec2((pNDC.x + 1.0) * u_ViewportSize.x / 2.0, (pNDC.y + 1.0) * u_ViewportSize.y / 2.0); \n if(a_VertexIndex == 0.0) { \n gl_Position = clipSpacePosition; \n } else { \n vec2 dirVector = normalize(pUDP_Pix - pPix); \n vec2 reverseDirVector = -dirVector; \n vec2 reverseDirVector_Rot = vec2(reverseDirVector.y, -reverseDirVector.x); \n float rotationAngle = 0.0; \n float scaleFactor = u_LineWidth / 2.0; \n if(u_CapStyle == 1 && (a_VertexIndex == 2.0 || a_VertexIndex == 4.0)) { \n scaleFactor = sqrt(2.0) * scaleFactor; \n } \n float capAngle = 3.1415926; \n rotationAngle = (a_VertexIndex - 1.0) * (capAngle / float(u_SegmentsPerCap)); \n vec2 pRot = vec2(reverseDirVector_Rot.x * cos(rotationAngle) - reverseDirVector_Rot.y * sin(rotationAngle), reverseDirVector_Rot.x * sin(rotationAngle) + reverseDirVector_Rot.y * cos(rotationAngle)); \n vec2 delta = pRot * scaleFactor; \n vec2 pNew = pPix + delta; \n gl_Position = vec4(2.0 * pNew.x / u_ViewportSize.x - 1.0, 2.0 * pNew.y / u_ViewportSize.y - 1.0, pNDC.z, 1.0); \n } \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){return[e.MVPMatrix,e.ViewportSize,e.LineWidth,e.CapStyle,e.SegmentsPerCap]},getAttributeIDs:function(e){return[e.Position,e.VertexIndex,e.UnitDistPoint]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="PickShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return""},getFragmentSourceUniformDeclarationBlock:function(){return"uniform bool u_Pick;\nuniform vec4 u_PickColor;\n "},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return" if(u_Pick){\n OUTCOLOR = u_PickColor;\n return;\n} "},getUniformIDs:function(e){return[e.Pick,e.PickColor]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2198)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(){this._name="DepthRenderShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return"uniform mat4 u_ProjectionInvMat;\n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return"VARYING vec4 v_DepthInEyeCoord;\n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return"v_DepthInEyeCoord = (u_ProjectionInvMat*gl_Position);\n"},getFragmentSourceUniformDeclarationBlock:function(){return"uniform bool u_StoreScreenSpaceDepth; \n #ifndef UNIFORM_PROJMAT \n #define UNIFORM_PROJMAT \n uniform mat4 u_ProjectionMat; \n #endif \n"},getFragmentSourceVaryingDeclarationBlock:function(){return"VARYING vec4 v_DepthInEyeCoord;\n"},getFragmentSourceFunctionDeclarationBlock:function(){return t.encodeFloatToColorGLSL()},getFragmentSourceCodeBlock:function(){return" if(u_StoreScreenSpaceDepth){\n vec4 clipPos = (u_ProjectionMat*v_DepthInEyeCoord); \n float zDepthNDC = clipPos.z/clipPos.w; \n float zScreenSpace = zDepthNDC/2.0+0.5; \n const vec4 scale = vec4(256.0/255.0, 256.0/255.0, 256.0/255.0, 256.0/255.0);\n OUTCOLOR = (encodeDepth(zScreenSpace) * scale);\n return;\n} "},getUniformIDs:function(e){return[e.StoreScreenSpaceDepth,e.ProjectionInverseMatrix,e.ProjectionMat]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._name="DiscardFragUsingDepthTextureShaderSourceProvider",this._useTwoTexturesForDepthTest=e},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return"VARYING highp vec2 v_texPos;\nVARYING highp float v_Depth; \n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return"v_texPos = (gl_Position.xy / gl_Position.w) * 0.5 + 0.5;\nv_Depth = gl_Position.z/gl_Position.w;\n"},getFragmentSourceUniformDeclarationBlock:function(){var e="uniform highp sampler2D u_D0;\n";return this._useTwoTexturesForDepthTest&&(e+="uniform highp sampler2D u_D1;\n"),e},getFragmentSourceVaryingDeclarationBlock:function(){return"VARYING highp vec2 v_texPos;\nVARYING highp float v_Depth; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){var e="float D0Depth = texture2D(u_D0, v_texPos.xy).r;\nconst float eps = 1.0/pow(2.0, 22.0); \n float currDepth = (v_Depth/2.0+0.5)-eps;\n";return this._useTwoTexturesForDepthTest?e+="float D1Depth = texture2D(u_D1, v_texPos.xy).r;\nif ((currDepth > D0Depth || currDepth < D1Depth)) {\n discard;\n}\n":e+="if (currDepth > D0Depth) { \n discard;\n}\n",e},getUniformIDs:function(e){var t=[];return t.push(e.D0Sampler),this._useTwoTexturesForDepthTest&&t.push(e.D1Sampler),t},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(325)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){this._name="LightingGouraudShaderSourceProvider",this._twoSidedLighting=e},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return"#ifndef UNIFORM_MODELVIEWMAT \n#define UNIFORM_MODELVIEWMAT \nuniform mat4 u_ModelViewMat; \n#endif \nuniform mat3 u_NormalMatrix; \nstruct Light { \n int style; \n vec3 color; \n vec3 position; \n}; \nstruct Material { \n float ambientStrength; \n float diffuseStrength; \n float specularStrength; \n float specularColorReflectance; \n float specularExponent; \n}; \nuniform vec3 u_EyePos; \nuniform int u_LightCount; \nuniform Light u_Lights[8]; \nuniform Material u_Material; \nuniform vec3 u_SceneAmbientLightColor; \n"},getVertexSourceAttributeDeclarationBlock:function(){return"ATTRIBUTE vec3 a_Normal; \n"},getVertexSourceVaryingDeclarationBlock:function(){return"VARYING vec3 vAmbientWt; \nVARYING vec3 vDiffuseWt; \nVARYING vec3 vSpecularWt; \nVARYING vec3 vNormal; \n"},getVertexSourceFunctionDeclarationBlock:function(){return"void computeInfiniteOrLocalLighting(in Light l, in vec3 lDir, in vec3 norm, in vec3 eyeCoordPos, inout vec3 diffCol, inout vec3 specCol) { \n float nDotLD = 0.0; \n nDotLD = max(0.0, dot(norm, lDir)); \n float diffFactor = max(nDotLD, 0.0); \n vec3 viewDir = normalize(u_EyePos - eyeCoordPos); \n vec3 reflectDir = reflect(-lDir, norm); \n float specFactor = pow(max(dot(viewDir, reflectDir), 0.0), u_Material.specularExponent); \n diffCol += l.color * (diffFactor * u_Material.diffuseStrength); \n specCol += l.color * (specFactor * u_Material.specularStrength); \n} \n"},getVertexSourceCodeBlock:function(){let e=" vec3 normal = u_NormalMatrix * a_Normal; \n vec4 eyeCoordPos = u_ModelViewMat * vec4(a_Position, 1.0); \n vec3 eyeCoordPosition = eyeCoordPos.xyz/eyeCoordPos.w; \n vec3 diffuseColor = vec3(0.0, 0.0, 0.0); \n vec3 specularColor = vec3(0.0, 0.0, 0.0); \n vec3 norm = normalize(normal); \n vNormal = norm; \n",t=" for(int i = 0; i < 8; i++) { \n if(i < u_LightCount) { \n Light l = u_Lights[i]; \n if(l.style == 0) { \n computeInfiniteOrLocalLighting(l, normalize(l.position), normalize(norm), eyeCoordPosition, diffuseColor, specularColor); \n } else if(l.style == 1) { \n computeInfiniteOrLocalLighting(l, normalize(l.position - eyeCoordPosition), normalize(norm), eyeCoordPosition, diffuseColor, specularColor); \n } \n } \n } \n vAmbientWt = u_Material.ambientStrength * u_SceneAmbientLightColor; \n vDiffuseWt = diffuseColor; \n vSpecularWt = specularColor; \n";return!0===this._twoSidedLighting?e+" if(norm.z < 0.0) { \n norm = -norm; \n } \n"+t:e+t},getFragmentSourceUniformDeclarationBlock:function(){return"struct Material { \n float ambientStrength; \n float diffuseStrength; \n float specularStrength; \n float specularColorReflectance; \n float specularExponent; \n}; \nuniform Material u_Material; \nuniform int u_SeparateSpecularColor; \n"},getFragmentSourceVaryingDeclarationBlock:function(){return"VARYING vec3 vAmbientWt; \nVARYING vec3 vDiffuseWt; \nVARYING vec3 vSpecularWt; \nVARYING vec3 vNormal; \n"},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return!0===this._twoSidedLighting?" vec4 baseFragmentColor = OUTCOLOR; \n vec3 finalColor = vec3(1.0, 1.0, 1.0); \n if(u_SeparateSpecularColor == 1) { \n finalColor = (vAmbientWt + vDiffuseWt) * baseFragmentColor.rgb + vSpecularWt; \n } else { \n vec3 specColFactor = (1.0 - u_Material.specularColorReflectance) * baseFragmentColor.rgb + vec3(u_Material.specularColorReflectance); \n finalColor = (vAmbientWt + vDiffuseWt) * baseFragmentColor.rgb + specColFactor * vSpecularWt; \n } \n OUTCOLOR = vec4(finalColor, baseFragmentColor.a); \n":" vec4 baseFragmentColor = OUTCOLOR; \n vec3 finalColor = vec3(1.0, 1.0, 1.0); \n vec3 norm = normalize(vNormal); \n if(norm.z < 0.0) { \n finalColor = vAmbientWt * baseFragmentColor.rgb; \n } else { \n if(u_SeparateSpecularColor == 1) { \n finalColor = (vAmbientWt + vDiffuseWt) * baseFragmentColor.rgb + vSpecularWt; \n } else { \n vec3 specColFactor = (1.0 - u_Material.specularColorReflectance) * baseFragmentColor.rgb + vec3(u_Material.specularColorReflectance); \n finalColor = (vAmbientWt + vDiffuseWt) * baseFragmentColor.rgb + specColFactor * vSpecularWt; \n } \n } \n OUTCOLOR = vec4(finalColor, baseFragmentColor.a); \n"},getUniformIDs:function(e){return[e.ModelViewMatrix,e.NormalMatrix,e.Material_AmbientStrength,e.Material_DiffuseStrength,e.Material_SpecularStrength,e.Material_SpecularColorReflectance,e.Material_SpecularExponent,e.LightCount,e.Light0_Style,e.Light0_Color,e.Light0_Position,e.Light1_Style,e.Light1_Color,e.Light1_Position,e.Light2_Style,e.Light2_Color,e.Light2_Position,e.Light3_Style,e.Light3_Color,e.Light3_Position,e.Light4_Style,e.Light4_Color,e.Light4_Position,e.Light5_Style,e.Light5_Color,e.Light5_Position,e.Light6_Style,e.Light6_Color,e.Light6_Position,e.Light7_Style,e.Light7_Color,e.Light7_Position,e.SeparateSpecularColor,e.SceneAmbientLightColor]},getAttributeIDs:function(e){return[e.Normal]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="FXAAShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return""},getFragmentSourceUniformDeclarationBlock:function(){return" #ifndef UNIFORM_VIEWPORTSIZE \n #define UNIFORM_VIEWPORTSIZE \n uniform vec2 u_ViewportSize; \n #endif \n"},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return" #define EDGE_THRESHOLD_MIN (1.0/16.0) \n #define EDGE_THRESHOLD_MAX (1.0/8.0) \n #define PIXEL_BLEND_LIMIT_TO_REDUCE_BLURRING (3.0/4.0) \n #define MIN_PIXEL_ALIASING_REQUIRED (1.0/8.0) \n #define NUM_LOOP_FOR_EDGE_DETECTION 12 \n float rgb2luma(vec3 rgb) \n { \n return dot(rgb, vec3(0.299, 0.587, 0.114)); \n } \n //#define FXAA_PIXEL_ALIASING_DEBUG \n //#define FXAA_EDGE_DIRECTION_DEBUG \n //#define FXAA_APPLY_PIXEL_AA_ONLY_DEBUG \n float findEndPointPosition(sampler2D inputTexture, vec2 textureCoordMiddle, float lumaMiddle, float lumaHighContrastPixel, float stepLength, \n vec2 screenCoordToTextureCoord, bool isHorizontal, out vec2 outPosToFetchTexelForEdgeAntiAliasing) \n { \n vec2 textureCoordOfHighContrastPixel = textureCoordMiddle; \n \n // Direction of the edge \n vec2 edgeDir; \n \n if (isHorizontal) \n { \n textureCoordOfHighContrastPixel.y = textureCoordMiddle.y + stepLength; \n textureCoordOfHighContrastPixel.x = textureCoordMiddle.x; \n edgeDir.x = screenCoordToTextureCoord.x; \n edgeDir.y = 0.0; \n } \n else \n { \n textureCoordOfHighContrastPixel.x = textureCoordMiddle.x + stepLength; \n textureCoordOfHighContrastPixel.y = textureCoordMiddle.y; \n edgeDir.y = screenCoordToTextureCoord.y; \n edgeDir.x = 0.0; \n } \n // Prepare for the search loop: \n float lumaHighContrastPixelNegDir; \n float lumaHighContrastPixelPosDir; \n float lumaMiddlePixelNegDir; \n float lumaMiddlePixelPosDir; \n bool doneGoingThroughNegDir = false; \n bool doneGoingThroughPosDir = false; \n vec2 posHighContrastNegDir = textureCoordOfHighContrastPixel - edgeDir; \n vec2 posHighContrastPosDir = textureCoordOfHighContrastPixel + edgeDir; \n vec2 posMiddleNegDir = textureCoordMiddle - edgeDir; \n vec2 posMiddlePosDir = textureCoordMiddle + edgeDir; \n for (int i = 0; i < NUM_LOOP_FOR_EDGE_DETECTION; ++i) \n { \n if (!doneGoingThroughNegDir) \n { \n lumaHighContrastPixelNegDir = rgb2luma(texture2D(inputTexture, posHighContrastNegDir).rgb); \n lumaMiddlePixelNegDir = rgb2luma(texture2D(inputTexture, posMiddleNegDir).rgb); \n doneGoingThroughNegDir = abs(lumaHighContrastPixelNegDir - lumaHighContrastPixel) > abs(lumaHighContrastPixelNegDir - lumaMiddle) || abs(lumaMiddlePixelNegDir - lumaMiddle) > abs(lumaMiddlePixelNegDir - lumaHighContrastPixel); \n } \n if (!doneGoingThroughPosDir) \n { \n lumaHighContrastPixelPosDir = rgb2luma(texture2D(inputTexture, posHighContrastPosDir).rgb); \n lumaMiddlePixelPosDir = rgb2luma(texture2D(inputTexture, posMiddlePosDir).rgb); \n doneGoingThroughPosDir = abs(lumaHighContrastPixelPosDir - lumaHighContrastPixel) > abs(lumaHighContrastPixelPosDir - lumaMiddle) || abs(lumaMiddlePixelPosDir - lumaMiddle) > abs(lumaMiddlePixelPosDir - lumaHighContrastPixel); \n } \n if (doneGoingThroughNegDir && doneGoingThroughPosDir) \n { \n break; \n } \n if (!doneGoingThroughNegDir) \n { \n posHighContrastNegDir -= edgeDir; \n posMiddleNegDir -= edgeDir; \n } \n if (!doneGoingThroughPosDir) \n { \n posHighContrastPosDir += edgeDir; \n posMiddlePosDir += edgeDir; \n } \n } \n float dstNeg; \n float dstPos; \n if (isHorizontal) \n { \n dstNeg = textureCoordMiddle.x - posMiddleNegDir.x; \n dstPos = posMiddlePosDir.x - textureCoordMiddle.x; \n } \n else \n { \n dstNeg = textureCoordMiddle.y - posMiddleNegDir.y; \n dstPos = posMiddlePosDir.y - textureCoordMiddle.y; \n } \n bool isMiddlePixelCloserToNeg = dstNeg < dstPos; \n float dst = min(dstNeg, dstPos); \n float lumaEndPointOfPixelCloserToMiddle = isMiddlePixelCloserToNeg ? lumaMiddlePixelNegDir : lumaMiddlePixelPosDir; \n bool edgeAARequired = abs(lumaEndPointOfPixelCloserToMiddle - lumaHighContrastPixel) < abs(lumaEndPointOfPixelCloserToMiddle - lumaMiddle); \n // Compute the pixel offset: \n float negInverseEndPointsLength = -1.0 / (dstNeg + dstPos); \n float pixelOffset = dst * negInverseEndPointsLength + 0.5; \n outPosToFetchTexelForEdgeAntiAliasing = textureCoordMiddle; \n if (isHorizontal) \n { \n outPosToFetchTexelForEdgeAntiAliasing.y += pixelOffset * stepLength; \n } \n else \n { \n outPosToFetchTexelForEdgeAntiAliasing.x += pixelOffset * stepLength; \n } \n return edgeAARequired ? 1.0 : 0.0; \n } \n vec4 applyFXAA(vec2 screenCoord, sampler2D inputTexture, vec2 viewportSize) \n { \n vec2 screenCoordToTextureCoord = vec2(1.0 / viewportSize.x, 1.0 / viewportSize.y); \n vec2 texCoord = screenCoord * screenCoordToTextureCoord; \n vec2 textureCoordMiddle = texCoord; \n vec2 textureCoordTop = texCoord + vec2( 0., -screenCoordToTextureCoord.y); \n vec2 textureCoordBottom = texCoord + vec2( 0., screenCoordToTextureCoord.y); \n vec2 textureCoordLeft = texCoord + vec2(-screenCoordToTextureCoord.x, 0.); \n vec2 textureCoordRight = texCoord + vec2( screenCoordToTextureCoord.x, 0.); \n vec4 rgbaMiddle = texture2D(inputTexture, textureCoordMiddle); \n vec4 rgbaTop = texture2D(inputTexture, textureCoordTop); \n vec4 rgbaBottom = texture2D(inputTexture, textureCoordBottom); \n vec4 rgbaLeft = texture2D(inputTexture, textureCoordLeft); \n vec4 rgbaRight = texture2D(inputTexture, textureCoordRight); \n \n float lumaMiddle = rgb2luma(rgbaMiddle.rgb); \n float lumaTop = rgb2luma(rgbaTop.rgb); \n float lumaBottom = rgb2luma(rgbaBottom.rgb); \n float lumaLeft = rgb2luma(rgbaLeft.rgb); \n float lumaRight = rgb2luma(rgbaRight.rgb); \n float lumaMin = min(lumaMiddle, min(min(lumaTop, lumaBottom), min(lumaLeft, lumaRight))); \n float lumaMax = max(lumaMiddle, max(max(lumaTop, lumaBottom), max(lumaLeft, lumaRight))); \n float lumaRange = lumaMax - lumaMin; \n // Apply FXAA only if luminosity around this pixel has changed considerably \n if (lumaRange < max(EDGE_THRESHOLD_MIN, EDGE_THRESHOLD_MAX * lumaMax)) \n { \n return rgbaMiddle; \n } \n vec2 textureCoordTopRight = texCoord + vec2( screenCoordToTextureCoord.x, -screenCoordToTextureCoord.y); \n vec2 textureCoordBottomRight = texCoord + vec2( screenCoordToTextureCoord.x, screenCoordToTextureCoord.y); \n vec2 textureCoordTopLeft = texCoord + vec2(-screenCoordToTextureCoord.x, -screenCoordToTextureCoord.y); \n vec2 textureCoordBottomLeft = texCoord + vec2(-screenCoordToTextureCoord.x, screenCoordToTextureCoord.y); \n vec3 rgbTopRight = texture2D(inputTexture, textureCoordTopRight).rgb; \n vec3 rgbBottomRight = texture2D(inputTexture, textureCoordBottomRight).rgb; \n vec3 rgbTopLeft = texture2D(inputTexture, textureCoordTopLeft).rgb; \n vec3 rgbBottomLeft = texture2D(inputTexture, textureCoordBottomLeft).rgb; \n float lumaTopRight = rgb2luma(rgbTopRight); \n float lumaBottomRight = rgb2luma(rgbBottomRight); \n float lumaTopLeft = rgb2luma(rgbTopLeft); \n float lumaBottomLeft = rgb2luma(rgbBottomLeft); \n float lumaTopBottom = lumaTop + lumaBottom; \n float lumaLeftRight = lumaLeft + lumaRight; \n float lumaTopCorners = lumaTopLeft + lumaTopRight; \n float lumaBottomCorners = lumaBottomLeft + lumaBottomRight; \n float lumaLeftCorners = lumaTopLeft + lumaBottomLeft; \n float lumaRightCorners = lumaTopRight + lumaBottomRight; \n float lumaTBLR = lumaTopBottom + lumaLeftRight; \n float averageLumaTBLR = (lumaTBLR)/4.0; \n float lumaSubRange = abs(averageLumaTBLR - lumaMiddle); \n float pixelblendAmount = max(0.0, (lumaSubRange / lumaRange) - MIN_PIXEL_ALIASING_REQUIRED); \n pixelblendAmount = min(PIXEL_BLEND_LIMIT_TO_REDUCE_BLURRING, pixelblendAmount * (1.0 / (1.0 - MIN_PIXEL_ALIASING_REQUIRED))); \n #ifdef FXAA_PIXEL_ALIASING_DEBUG \n if (pixelblendAmount > 0.0) \n { \n return vec4(vec3(pixelblendAmount / PIXEL_BLEND_LIMIT_TO_REDUCE_BLURRING), 1.0); \n } \n else \n { \n return rgbaMiddle; \n } \n #endif \n vec3 averageRGBNeighbor = (rgbTopLeft + rgbaTop.rgb + rgbTopRight + \n rgbaLeft.rgb + rgbaMiddle.rgb + rgbaRight.rgb + \n rgbBottomLeft + rgbaBottom.rgb + rgbBottomRight) * (1.0/9.0); \n float verticalEdgeRow1 = abs(-2.0 * lumaTop + lumaTopCorners); \n float verticalEdgeRow2 = abs(-2.0 * lumaMiddle + lumaLeftRight); \n float verticalEdgeRow3 = abs(-2.0 * lumaBottom + lumaBottomCorners); \n float verticalEdge = (verticalEdgeRow1 + verticalEdgeRow2 * 2.0 + verticalEdgeRow3) / 12.0; \n float horizontalEdgeCol1 = abs(-2.0 * lumaLeft + lumaLeftCorners); \n float horizontalEdgeCol2 = abs(-2.0 * lumaMiddle + lumaTopBottom); \n float horizontalEdgeCol3 = abs(-2.0 * lumaRight + lumaRightCorners); \n float horizontalEdge = (horizontalEdgeCol1 + horizontalEdgeCol2 * 2.0 + horizontalEdgeCol3) / 12.0; \n bool isHorizontal = horizontalEdge >= verticalEdge; \n #ifdef FXAA_EDGE_DIRECTION_DEBUG \n return isHorizontal ? vec4(0.0, 1.0, 0.0, 1.0) : vec4(0.0, 0.0, 1.0, 1.); \n #endif \n float luma1 = isHorizontal ? lumaTop : lumaLeft; \n float luma2 = isHorizontal ? lumaBottom : lumaRight; \n bool is1Steepest = abs(lumaMiddle - luma1) >= abs(lumaMiddle - luma2); \n float stepLength = isHorizontal ? -screenCoordToTextureCoord.y : -screenCoordToTextureCoord.x; \n float lumaHighContrastPixel; \n if (is1Steepest) \n { \n lumaHighContrastPixel = luma1; \n } \n else \n { \n lumaHighContrastPixel = luma2; \n // Also reverse the direction: \n stepLength = -stepLength; \n } \n vec2 outPosToFetchTexelForEdgeAntiAliasing; \n vec3 rgbEdgeAntiAliasingPixel = rgbaMiddle.rgb; \n float res = findEndPointPosition(inputTexture, textureCoordMiddle, lumaMiddle, lumaHighContrastPixel, stepLength, \n screenCoordToTextureCoord, isHorizontal, outPosToFetchTexelForEdgeAntiAliasing); \n \n \n if (res == 1.0) \n { \n rgbEdgeAntiAliasingPixel = texture2D(inputTexture, outPosToFetchTexelForEdgeAntiAliasing).rgb; \n } \n if (res == 0.0) \n { \n //return gl_FragColor; \n } \n #ifdef FXAA_APPLY_PIXEL_AA_ONLY_DEBUG \n rgbEdgeAntiAliasingPixel = rgbaMiddle.rgb; \n #endif \n return vec4(mix(rgbEdgeAntiAliasingPixel , averageRGBNeighbor, pixelblendAmount), 1.0); \n } \n"},getFragmentSourceCodeBlock:function(){return"OUTCOLOR = applyFXAA(gl_FragCoord.xy, u_Sampler2D, u_ViewportSize);"},getUniformIDs:function(e){return[e.ViewportSize]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="AlphaMultiplierShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return""},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return""},getFragmentSourceUniformDeclarationBlock:function(){return"uniform float u_AlphaMultiplier; \n"},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return" OUTCOLOR.a = OUTCOLOR.a * u_AlphaMultiplier; \n if (OUTCOLOR.a < 1.0/255.0) {\n discard;\n }\n"},getUniformIDs:function(e){return[e.AlphaMultiplier]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6043),i(2195),i(631),i(1519),i(325),i(1522),i(329),i(406)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e("graphics.MWSG.Webgl20Strategy",[i],{constructor:function(e){this._renderer=e,this.shaderOptions=new t,this._pipelineCmds=new a},createDepthTexture:function(e,t,i){e.texImage2D(e.TEXTURE_2D,0,e.DEPTH_COMPONENT24,t,i,0,e.DEPTH_COMPONENT,e.UNSIGNED_INT,null)},_makeMarkerShapeCmds:function(e,t,i,r,a,s,c){t.dataStore={};let d=function(e,t,i,n){let r=o.makeShape(e,n,this._renderer.getViewport(),o.computeMarkerLOD(this._renderer,n),s,c);t.dataStore.faceColorIndicatorData=l.createFloat32Array(r.faceColorIndicatorData),t.dataStore.coord2DData=r.coord2DData,t.dataStore.coord2DOffsetData=l.createFloat32Array(r.coord2DOffsetData),t.dataStore.numShapeVerts=r.nVerts,t.dataStore.primType=r.primType}.bind(this),u=this._pipelineCmds.CustomCmd(d,a);i.push(u),i.push(this._pipelineCmds.DynamicVertAttribData(r,n.FaceColorIndicator.id,1,e.FLOAT,"faceColorIndicatorData")),i.push(this._pipelineCmds.DynamicVertAttribData(r,n.Coord2D.id,2,e.FLOAT,"coord2DData")),i.push(this._pipelineCmds.DynamicVertAttribData(r,n.Coord2DOffset.id,2,e.FLOAT,"coord2DOffsetData"));let h=function(e,t,i,n){this._pipelineCmds.DrawParallel(t.dataStore.primType,t.dataStore.numShapeVerts,t.nVertices,r).exec(e,t,i)}.bind(this);i.push(this._pipelineCmds.CustomCmd(h,null))},_makePickCacheIfNeeded:function(e,t){var i,r=t.pickParams;if(this._renderer.needsPickCache(r)){(i={}).shader=t.shader;var a=[];for(let e=0;e<t.pickParams.numPipeLinesToCopy;e++)a.push(t.pipeline[e]);r.faceColor=[255,255,255,255];var l=o.makeShape(e,r,this._renderer.getViewport(),o.computeMarkerLOD(this._renderer,r),!0,!0);i.primType=l.primType,i.numShapeVerts=l.nVerts;var c=r.vertexData.length/3;i.nVertices=c;var d=[];for(let e=0;e<c;e++)r.faceColor.forEach((function(e){d.push(e)}));var u=4===d.length?c:1;a.push(this._pipelineCmds.ParallelAttribData(e,i.shader,n.FaceColor.id,4,e.FLOAT,u,s.convertUint8ColorsToFloat(d)));var h=[];for(let e=0;e<c;e++)r.edgeColor.forEach((function(e){h.push(e)}));var p=4===h.length?c:1;a.push(this._pipelineCmds.ParallelAttribData(e,i.shader,n.EdgeColor.id,4,e.FLOAT,p,s.convertUint8ColorsToFloat(h))),a.push(this._pipelineCmds.IntUniform(i.shader,n.MarkerBreakLimit.id,s.getMarkerDataBreakLimitForPicking())),this._makeMarkerShapeCmds(e,i,a,i.shader,r,!0,!0),a.push(this._pipelineCmds.ParallelAttribDataReset(i.shader,n.EdgeColor.id)),a.push(this._pipelineCmds.ParallelAttribDataReset(i.shader,n.FaceColor.id)),a.push(this._pipelineCmds.ParallelAttribDataReset(i.shader,n.Anchor.id)),a.push(this._pipelineCmds.ParallelAttribDataReset(i.shader,n.Scale.id)),i.pipeline=a}return i},getMarkerShaderConfig:function(e,t,i,n){return n.getScreenSpaceMarkerVertexColorShader(t,!1,!0,i,e)},makeMarkerDrawCache:function(e,t,i,o,a,c,d,u){var h=u.pipeline;h.push(this._pipelineCmds.ParallelAttribData(o,i,n.Anchor.id,3,o.FLOAT,1,e.vertexData));var p=new Array(u.nVertices);if(e.sizeBinding===r.Binding.primitive)for(var f=0;f<u.nVertices;f++)p[f]=s.convertPoints2DevicePixels(this._renderer,e.size[f]);else{var g=s.convertPoints2DevicePixels(this._renderer,e.size[0]);for(f=0;f<u.nVertices;f++)p[f]=g}var m=l.createFloat32Array(p);if(h.push(this._pipelineCmds.ParallelAttribData(o,i,n.Scale.id,1,o.FLOAT,1,m)),this._renderer.needsPickCache(e)){var _=this._makePickCacheIfNeeded.bind(this);u.pickCacheFcn=_,u.pickParams=e,u.pickParams.numPipeLinesToCopy=h.length}if(c){var v=e.faceColor,b=4===e.faceColor.length?u.nVertices:1;h.push(this._pipelineCmds.ParallelAttribData(o,i,n.FaceColor.id,4,o.FLOAT,b,s.convertUint8ColorsToFloat(v)))}else h.push(this._pipelineCmds.VertAttribReset(i,n.FaceColor.id));if(d){var y=e.edgeColor,C=4===e.edgeColor.length?u.nVertices:1;h.push(this._pipelineCmds.ParallelAttribData(o,i,n.EdgeColor.id,4,o.FLOAT,C,s.convertUint8ColorsToFloat(y)))}else h.push(this._pipelineCmds.VertAttribReset(i,n.EdgeColor.id));h.push(this._pipelineCmds.IntUniform(i,n.MarkerBreakLimit.id,s.getMarkerDataBreakLimitForPicking())),this._makeMarkerShapeCmds(o,u,h,i,e,d,c),d&&h.push(this._pipelineCmds.ParallelAttribDataReset(i,n.EdgeColor.id)),c&&h.push(this._pipelineCmds.ParallelAttribDataReset(i,n.FaceColor.id)),h.push(this._pipelineCmds.ParallelAttribDataReset(i,n.Anchor.id)),h.push(this._pipelineCmds.ParallelAttribDataReset(i,n.Scale.id))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2196),i(6044),i(2197),i(6045)],o=i.dj.d(n,(function(e,t,i,n,o){return e("graphics.MWSG.shader.WebGL20ShaderOpts",[t],{constructor:function(){this.providerOpts[this.Ids.anchorptPos_WebGL2]=new i(!1),this.providerOpts[this.Ids.anchorptPosAVC_WebGL2]=new i(!0),this.providerOpts[this.Ids.markerColorsOpaque]=new n(!0),this.providerOpts[this.Ids.markerColorsAlpha]=new n(!1),this.providerOpts[this.Ids.markerPick]=new o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1521)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){this._name="AnchorPointPositionShaderSourceProvider",this._AVC=e,!0===e&&(this._AVCSrcProvider=new t(!1))},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){var e="uniform mat4 u_MVPMatrix; \nuniform vec3 u_Anchor; \nuniform float u_Scale; \nuniform int u_ClosedLoopEdge; \n";return this._AVC&&(e+=this._AVCSrcProvider.getVertexSourceUniformDeclarationBlock()),e},getVertexSourceAttributeDeclarationBlock:function(){return" ATTRIBUTE vec3 a_Anchor; \n ATTRIBUTE float a_Scale; \n ATTRIBUTE vec2 a_Coord2D; \n ATTRIBUTE vec2 a_Coord2DOffset; \n"},getVertexSourceVaryingDeclarationBlock:function(){return""},getVertexSourceFunctionDeclarationBlock:function(){return this._AVC?this._AVCSrcProvider.getVertexSourceFunctionDeclarationBlock():""},getVertexSourceCodeBlock:function(){var e=" // Remember the position for drawing. \n vec4 modelPos = vec4(a_Anchor,1.); \n vec4 pos = u_MVPMatrix * modelPos; \n pos.x = pos.x / pos.w; \n pos.y = pos.y / pos.w; \n pos.z = pos.z / pos.w; \n pos.w = 1.; \n";return this._AVC&&(e=e+" pos = "+this._AVCSrcProvider.getStrAVCMasterFunc("pos")+"; \n"),e+=" vec2 clPos = a_Scale * a_Coord2D; \n vec2 ePos = clPos + a_Coord2DOffset; \n if (u_ClosedLoopEdge == 1) { \n float clLen = length(clPos); \n const float eps = 0.0000002384185791015625; \n if (clLen > eps) { \n float t = 0.0; \n if (abs(clPos.x) > abs(clPos.y)) { \n t = ePos.x / clPos.x; \n } \n else { \n t = ePos.y / clPos.y; \n } \n if (t <= 0.0) { \n ePos = vec2(0.0, 0.0); \n } \n } \n } \n gl_Position = pos + vec4(ePos, 0., 0.); \n"},getFragmentSourceUniformDeclarationBlock:function(){return""},getFragmentSourceVaryingDeclarationBlock:function(){return""},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return""},getUniformIDs:function(e){var t=[e.MVPMatrix,e.Anchor,e.Scale,e.ClosedLoopEdge];return this._AVC&&(t=t.concat(this._AVCSrcProvider.getUniformIDs(e))),t},getAttributeIDs:function(e){return[e.Anchor,e.Scale,e.Coord2D,e.Coord2DOffset]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._name="MarkerPickShaderSourceProvider"},getName:function(){return this._name},getVertexSourceUniformDeclarationBlock:function(){return"uniform bool u_Pick;\nuniform int u_MarkerBreakLimit;\n"},getVertexSourceAttributeDeclarationBlock:function(){return""},getVertexSourceVaryingDeclarationBlock:function(){return"VARYING float id;\n"},getVertexSourceFunctionDeclarationBlock:function(){return""},getVertexSourceCodeBlock:function(){return" if (u_Pick) {\n id = float(gl_InstanceID) / float(u_MarkerBreakLimit);\n }\n"},getFragmentSourceUniformDeclarationBlock:function(){return"uniform bool u_Pick;\nuniform vec4 u_PickColor;\n"},getFragmentSourceVaryingDeclarationBlock:function(){return"VARYING float id;\n"},getFragmentSourceFunctionDeclarationBlock:function(){return""},getFragmentSourceCodeBlock:function(){return" if(u_Pick){\n vec3 mult_vec = vec3(float(255 << 16), float(255 << 8), 255.);\n int colorAsIndex = int(dot(u_PickColor.rgb, mult_vec) + id);\n OUTCOLOR = vec4(((colorAsIndex >> 16) & 0xff), ((colorAsIndex >> 8) & 0xff), (colorAsIndex & 0xff), 255.) / 255.;\n return;\n} "},getUniformIDs:function(e){return[e.Pick,e.PickColor,e.MarkerBreakLimit]},getAttributeIDs:function(e){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2200)],o=i.dj.d(n,(function(e,t){return e("graphics.MWSG.Webgl20ShaderHeaderStrategy",[t],{constructor:function(){},getVertexShaderHeader:function(){return"#version 300 es \n#define VARYING out \n#define CENTROID centroid \n#define ATTRIBUTE in \n"},getFragmentShaderHeader:function(){return"#version 300 es \n#ifdef GL_ES \n precision highp float; \n#endif \nlayout(location=0) out vec4 fColor; \n#define OUTCOLOR fColor \n#define VARYING in \n#define CENTROID centroid \n#define texture2D texture \n"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(365)],o=i.dj.d(n,(function(e,t){return e("graphics.MWSG.Transforms",[],{constructor:function(){this._modelTransform=new t,this._modelInvTransform=new t,this._viewTransform=new t,this._viewInvTransform=new t,this._projectionTransform=new t,this._projectionInvTransform=new t,this._modelViewTransform=null,this._modelViewInvTransform=null,this._modelViewProjectionTransform=null,this._modelViewProjectionInvTransform=null},_clearComputedTransforms:function(){delete this._modelViewProjectionTransform,delete this._mvpInv,delete this._modelViewTransform,delete this._modelViewInvTransform},setModelTransform:function(e){this._clearComputedTransforms(),this._modelTransform=e,this._modelInvTransform.setElements(this._modelTransform.getElements()),this._modelInvTransform.invert()},getModelTransform:function(){return this._modelTransform},setViewTransform:function(e){this._clearComputedTransforms(),this._viewTransform=e,this._viewInvTransform.setElements(this._viewTransform.getElements()),this._viewInvTransform.invert()},getViewTransform:function(){return this._viewTransform},getViewInvTransform:function(){return this._viewInvTransform},setProjectionMatrix:function(e){delete this._modelViewProjectionTransform,delete this._modelViewProjectionInvTransform,this._projectionTransform=e,this._projectionInvTransform.setElements(this._projectionTransform.getElements()),this._projectionInvTransform.invert()},getProjectionMatrix:function(){return this._projectionTransform},getProjectionInvMatrix:function(){return this._projectionInvTransform},getModelViewTransform:function(){return this._modelViewTransform||(this._modelViewTransform=this._viewTransform.times(this._modelTransform)),this._modelViewTransform},getModelViewInvTransform:function(){return this._modelViewInvTransform||(this._modelViewInvTransform=this._modelInvTransform.times(this._viewInvTransform)),this._modelViewInvTransform},getMVPTransform:function(){return this._modelViewProjectionTransform||(this._modelViewProjectionTransform=this._projectionTransform.times(this.getModelViewTransform())),this._modelViewProjectionTransform},getMVPInvTransform:function(){if(!this._modelViewProjectionInvTransform){var e=this.getModelViewInvTransform();this._modelViewProjectionInvTransform=e.times(this._projectionInvTransform)}return this._modelViewProjectionInvTransform}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(325)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(){this.removeAllLights(),this._sceneAmbientLightColor=[]},addLight:function(e){e.style===t.LightStyle.ambient?this._sceneAmbientLightColor=e.color:this._numLights<8?this._lights[this._numLights++]=e:console.log("MAX Number of lights allowed is 8. Ignoring the extra lights.")},getLights:function(){return this._lights},setActiveLights:function(e){this._activeLights=e.slice()},getActiveLights:function(e){return this._activeLights},getSceneAmbientLightColor:function(){return this._sceneAmbientLightColor},removeAllLights:function(){this._lights=[],this._activeLights=[],this._numLights=0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this.pickViewSize=e,this.pickTexture=0,this.pickFrameBuffer=0,this.renderDepthBuffer=0,this._prevFBO=null,this._prevRBO=null},getPickViewSize:function(){return this.pickViewSize},draw:function(e,t,i,n,o,r,a,s,l){this._beginPick(e);var c=e,d=o;c.disable(c.BLEND),c.disable(c.DEPTH_TEST),c.depthMask(!1);var u=null;return r.length>0&&(u=t(r,i,n)),null===u&&a.length>0&&(d&&(c.enable(c.DEPTH_TEST),c.depthMask(!0),c.depthFunc(c.LEQUAL),c.clear(c.DEPTH_BUFFER_BIT)),u=t(a,i,n),d&&(c.disable(c.DEPTH_TEST),c.depthMask(!1))),null===u&&l.length>0&&(u=t(l,i,n)),this._endPick(e),u},_beginPick:function(e){if(void 0!==e){var t=e;this._prevFBO=t.getParameter(t.FRAMEBUFFER_BINDING),this._prevRBO=t.getParameter(t.RENDERBUFFER_BINDING),0===this.pickTexture&&(this.pickTexture=t.createTexture()),t.bindTexture(t.TEXTURE_2D,this.pickTexture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.pickViewSize.width,this.pickViewSize.height,0,t.RGBA,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),0===this.pickFrameBuffer&&(this.pickFrameBuffer=t.createFramebuffer()),0===this.renderDepthBuffer&&(this.renderDepthBuffer=t.createRenderbuffer()),t.bindRenderbuffer(t.RENDERBUFFER,this.renderDepthBuffer),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,this.pickViewSize.width,this.pickViewSize.height),t.bindFramebuffer(t.FRAMEBUFFER,this.pickFrameBuffer),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.pickTexture,0),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,this.renderDepthBuffer),this.clearPick(e)}},clearPick:function(e){var t=e;t.viewport(0,0,this.pickViewSize.width,this.pickViewSize.height),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)},getPickImage:function(e){var t=e,i=this.getPickViewSize(),n=new Uint8Array(i.width*i.height*4);return t.readPixels(0,0,i.width,i.height,t.RGBA,t.UNSIGNED_BYTE,n),n},_endPick:function(e){var t=e;t.bindFramebuffer(t.FRAMEBUFFER,this._prevFBO),t.bindRenderbuffer(t.RENDERBUFFER,this._prevRBO)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(457),i(1523),i(325),i(365)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e([],{constructor:function(){this.clipPlanes=[],this.scissorRectangle=[],this.polarRegion={},this.modelTransform=new o,this.viewTransform=new o,this.projectionTransform=new o,this.topDataSpaceInvTransform=new o,this.dataSpaceTransformSet=!1,this.depthSort=!1,this.alphaMultiplier=1},setModelTransform:function(e){this.modelTransform=e},setViewTransform:function(e){this.viewTransform=e},setProjectionTransform:function(e){this.projectionTransform=e},clone_stateset:function(){var e=new r;return e.modelTransform=this.modelTransform,e.viewTransform=this.viewTransform,e.projectionTransform=this.projectionTransform,e.clipPlanes=this.clipPlanes,e.scissorRectangle=this.scissorRectangle,void 0!==this.polarRegion&&this.polarRegion.hasOwnProperty("startTheta")&&this.polarRegion.hasOwnProperty("endTheta")&&this.polarRegion.hasOwnProperty("innerRadius")&&this.polarRegion.hasOwnProperty("outerRadius")&&this.polarRegion.hasOwnProperty("polarOrigin")?e.polarRegion={startTheta:this.polarRegion.startTheta,endTheta:this.polarRegion.endTheta,innerRadius:this.polarRegion.innerRadius,outerRadius:this.polarRegion.outerRadius,polarOrigin:this.polarRegion.polarOrigin}:e.polarRegion={},e.depthSort=this.depthSort,e.topDataSpaceInvTransform=this.topDataSpaceInvTransform,e.dataSpaceTransformSet=this.dataSpaceTransformSet,e.alphaMultiplier=this.alphaMultiplier,e},appendStatesetModelTransform:function(e){if(void 0!==e){this.modelTransform=this.modelTransform.times(e);var t=this.clipPlanes,n=t.length;this.clipPlanes=[];for(var o=0;o<n;o++)this.clipPlanes.push(i.transformProvidedInverse(e,t[o]))}},setStatesetClipplanes:function(e){if(this.clipPlanes=[],void 0!==e)for(var n=e.length/4,o=0;o<n;o++){var r=4*o,a=new t(e[r],e[r+1],e[r+2]),s=-e[r+3],l=new i(a,s);this.clipPlanes.push(l)}},setStatesetScissorRectangle:function(e){void 0===e||4!==e.length?this.scissorRectangle=[]:this.scissorRectangle=e},setStatesetPolarRegion:function(e,t,i,n,o){this.polarRegion={},void 0!==e&&void 0!==t&&void 0!==i&&void 0!==n&&void 0!==o&&(this.polarRegion.startTheta=e,this.polarRegion.endTheta=t,this.polarRegion.innerRadius=i,this.polarRegion.outerRadius=n,this.polarRegion.polarOrigin=o)},apply_stateset:function(e){e.setModelTransform(this.modelTransform),e.setViewTransform(this.viewTransform),e.setProjectionMatrix(this.projectionTransform),e.setClipPlanes(this.clipPlanes),e.setScissorRectangle(this.scissorRectangle),e.setPolarRegion(this.polarRegion),void 0!==this.clipPlanes&&this.clipPlanes.length>0?e.setClipMode(n.ClipMode.planes):void 0!==this.scissorRectangle&&this.scissorRectangle.length>0?e.setClipMode(n.ClipMode.scissor):void 0!==this.polarRegion.startTheta&&void 0!==this.polarRegion.endTheta&&void 0!==this.polarRegion.innerRadius&&void 0!==this.polarRegion.outerRadius&&void 0!==this.polarRegion.polarOrigin?e.setClipMode(n.ClipMode.polar):e.setClipMode(n.ClipMode.none),e.setAlphaMultiplier(this.alphaMultiplier)}});return r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(325),i(458),i(329),i(406)],o=i.dj.d(n,(function(e,t,i,n,o){function r(e,n){if(e.isTransparentObject=n.isTransparentObject,e.vertexData=i.convertArray(n.vertexdata),void 0!==n&&n.hasOwnProperty("stripdata")&&(e.stripData=i.convertArray(n.stripdata)),void 0!==n&&n.hasOwnProperty("colordata")?(e.colorData=i.convertArray(n.colordata),e.colorBinding=n.colorbinding,e.colorType=n.colortype):(e.colorData=[0,0,0,1],e.colorBinding=t.Binding.object,e.colorType=t.ColorType.truecolor),void 0!==n&&n.hasOwnProperty("texture"))if(n.texture.hasOwnProperty("encoding")){if(n.texture.encoding===t.ImageFormat.PNG&&n.texture.hasOwnProperty("cdata")){if(void 0===n.image)throw new Error("No image property on node. This should not be possible.");var o={};o.image=n.image,o.colorType=n.texture.colortype,o.samplingFilter=n.texture.samplingfilter,o.encoding=t.ImageFormat.PNG,e.texture=o}}else e.texture={},e.texture.dims=n.texture.cdata.dims,e.texture.CData=i.convertArray(n.texture.cdata),e.texture.colorType=n.texture.colortype,e.texture.samplingFilter=n.texture.samplingfilter;void 0!==n&&n.hasOwnProperty("clipping")&&(e.clipping=n.clipping),void 0!==n&&n.hasOwnProperty("applylighting")?(e.applyLighting=n.applylighting,e.ambientStrength=n.ambientstrength,e.diffuseStrength=n.diffusestrength,e.specularStrength=n.specularstrength,e.specularColorReflectance=n.specularcolorreflectance,e.specularExponent=n.specularexponent,e.normalBinding=n.normalbinding,e.normalsData=i.convertArray(n.normalsdata),n.hasOwnProperty("twosidedlighting")&&(e.twoSidedLighting=n.twosidedlighting)):e.applyLighting=!1}function a(e,t){return n.isBoundingBoxTooLargeInClipSpace(t,e.computeBoundingBox(),1e3)}var s=function(e,t,i){},l={LineStrip:function(e,t,i,o){var s={};e.params&&!1!==e.clean||(r(s,e),s.lineWidth=n.convertPoints2DevicePixels(t,e.width),s.lineStyle=e.style,s.alignVertexCenters=e.alignVertexCenters,s.lineJoin=e.join,s.lineCap=e.cap,s.isLineLoop=!1,e.params=s,e.shaderIDToDrawCacheMap={},e.clean=!0),e.params.clipping&&(e.params.needsFragCoordClipping=a(e,t.computedMVPTransform()));let l=t.getLineShaderConfig(e.params,o),c=l.getUniqueIdentifier();if(void 0===e.shaderIDToDrawCacheMap[c]&&(e.shaderIDToDrawCacheMap[c]=t.makeLineDrawCache(e.params,l)),e.drawCache=e.shaderIDToDrawCacheMap[c],!0===e.drawCache.drawLineJoins){let i=t.getLineJoinsShaderConfig(e.params,o),n=i.getUniqueIdentifier();void 0===e.shaderIDToDrawCacheMap[n]&&(e.shaderIDToDrawCacheMap[n]=t.makeLineJoinsDrawCache(e.params,i)),e.lineJoinsDrawCache=e.shaderIDToDrawCacheMap[n]}if(!0===e.drawCache.drawLineCaps){let i=t.getLineCapsShaderConfig(e.params,o),n=i.getUniqueIdentifier();void 0===e.shaderIDToDrawCacheMap[n]&&(e.shaderIDToDrawCacheMap[n]=t.makeLineCapsDrawCache(e.params,e.drawCache.isLineStrip,i)),e.lineCapsDrawCache=e.shaderIDToDrawCacheMap[n]}t.drawLines(e.drawCache,i),!0===e.drawCache.drawLineJoins&&t.drawLineJoins(e.lineJoinsDrawCache,i),!0===e.drawCache.drawLineCaps&&t.drawLineCaps(e.lineCapsDrawCache,i)},LineLoop:function(e,t,i,o){var s={};e.params&&!1!==e.clean||(r(s,e),s.lineWidth=n.convertPoints2DevicePixels(t,e.width),s.lineStyle=e.style,s.alignVertexCenters=e.alignVertexCenters,s.lineJoin=e.join,s.isLineLoop=!0,e.params=s,e.shaderIDToDrawCacheMap={},e.clean=!0),e.params.clipping&&(e.params.needsFragCoordClipping=a(e,t.computedMVPTransform()));let l=t.getLineShaderConfig(e.params,o),c=l.getUniqueIdentifier();if(void 0===e.shaderIDToDrawCacheMap[c]&&(e.shaderIDToDrawCacheMap[c]=t.makeLineDrawCache(e.params,l)),e.drawCache=e.shaderIDToDrawCacheMap[c],!0===e.drawCache.drawLineJoins){let i=t.getLineJoinsShaderConfig(e.params,o),n=i.getUniqueIdentifier();void 0===e.shaderIDToDrawCacheMap[n]&&(e.shaderIDToDrawCacheMap[n]=t.makeLineJoinsDrawCache(e.params,i)),e.lineJoinsDrawCache=e.shaderIDToDrawCacheMap[n]}if(!0===e.drawCache.drawLineCaps){let i=t.getLineCapsShaderConfig(e.params,o),n=i.getUniqueIdentifier();void 0===e.shaderIDToDrawCacheMap[n]&&(e.shaderIDToDrawCacheMap[n]=t.makeLineCapsDrawCache(e.params,e.drawCache.isLineStrip,i)),e.lineCapsDrawCache=e.shaderIDToDrawCacheMap[n]}t.drawLines(e.drawCache,i),!0===e.drawCache.drawLineJoins&&t.drawLineJoins(e.lineJoinsDrawCache,i),!0===e.drawCache.drawLineCaps&&t.drawLineCaps(e.lineCapsDrawCache,i)},TriangleStrip:function(e,t,i,n){var o={};e.params&&!1!==e.clean||(r(o,e),void 0!==e&&e.hasOwnProperty("faceoffsetbias")&&(o.faceOffsetBias=e.faceoffsetbias),void 0!==e&&e.hasOwnProperty("faceoffsetfactor")&&(o.faceOffsetFactor=e.faceoffsetfactor),e.params=o,e.shaderIDToDrawCacheMap={},e.clean=!0),e.params.clipping&&(e.params.needsFragCoordClipping=a(e,t.computedMVPTransform()));var s=t.getTriangleShaderConfig(e.params,n),l=s.getUniqueIdentifier();void 0===e.shaderIDToDrawCacheMap[l]&&(e.shaderIDToDrawCacheMap[l]=t.makeTriangleDrawCache(e.params,s)),e.drawCache=e.shaderIDToDrawCacheMap[l],void 0!==e.drawCache&&t.drawTriangles(e.drawCache,i)},Quadrilateral:function(e,t,i,n){e.drawFcn=l.TriangleStrip,e.drawFcn(e,t,i,n)},Text:function(e,o,r,s){var l={};if(!e.params||!1===e.clean){var c=e.string;c instanceof Array?l.string=c:(l.string=new Array(1),l.string[0]=c),l.vertexData=i.convertArray(e.vertexdata),l.colorData=i.convertArray(e.colordata),l.font=e._font,l.rotation=e.rotation,l.horizontalAlignment=e.horizontalalignment,l.verticalAlignment=e.verticalalignment,l.vectorizedAlignment=!1,e.hasOwnProperty("anglealignment")&&(l.angleAlignment=i.convertEncodedArray(e.anglealignment),l.vectorizedAlignment=!0),e.hasOwnProperty("clipping")&&(l.clipping=e.clipping),e.hasOwnProperty("anchorPointClipping")&&(l.anchorPointClipping=e.anchorPointClipping),e.hasOwnProperty("backgroundColor")&&(l.background=i.convertArray(e.backgroundColor)),e.hasOwnProperty("edgeColor")&&(l.edgeColor=i.convertArray(e.edgeColor)),e.hasOwnProperty("lineWidth")&&(l.lineWidth=n.convertPoints2DevicePixels(o,e.lineWidth)),e.hasOwnProperty("margin")?l.margin=n.convertPoints2DevicePixels(o,e.margin):l.margin=5,e.hasOwnProperty("style")?l.lineStyle=e.style:l.lineStyle=t.LineStyle.solid,l.interpreter=e.interpreter,e.params=l,e.shaderIDToDrawCacheMap={},e.clean=!0}e.params.clipping&&(e.params.needsFragCoordClipping=a(e,o.computedMVPTransform()));var d=o.getTextShaderConfig(e.params,s),u=d.getUniqueIdentifier();if(void 0===e.shaderIDToDrawCacheMap[u]){var h=o.getTextBackgroundShaderConfig(e.params,s),p=o.getTextEdgeShaderConfig(e.params,s);e.shaderIDToDrawCacheMap[u]=o.makeTextDrawCache(e.params,d,h,p)}e.drawCache=e.shaderIDToDrawCacheMap[u],o.drawText(e.drawCache,r)},Marker:function(o,r,s,l){var c=o.style;if(c!==t.MarkerStyle.none){var d={};if(!o.params||!1===o.clean){if(d.vertexData=i.convertArray(o.vertexdata),d.sizeBinding=o.sizeBinding,d.size=i.convertArray(o.size),d.sizeBinding===t.Binding.primitive||d.sizeBinding===t.Binding.vertex){if(d.size.length!==d.vertexData.length/3)return}else if(1!==d.size.length)return;void 0!==o&&o.hasOwnProperty("edgeColor")&&(d.edgeColor=i.convertArray(o.edgeColor)),void 0!==o&&o.hasOwnProperty("faceColor")&&(d.faceColor=i.convertArray(o.faceColor)),d.isTransparentObject=o.isTransparentObject,d.style=c,c===t.MarkerStyle.point&&(d.size=e.map(d.size,(function(e){return Math.max(e/3,1)}))),d.lineWidth=n.convertPoints2DevicePixels(r,o.lineWidth),o.hasOwnProperty("clipping")&&(d.clipping=o.clipping),o.hasOwnProperty("anchorPointClipping")&&(d.anchorPointClipping=o.anchorPointClipping),o.params=d,o.shaderIDToDrawCacheMap={},o.clean=!0}o.params.clipping&&(o.params.needsFragCoordClipping=a(o,r.computedMVPTransform()));var u=r.getMarkerShaderConfig(o.params,l),h=u.getUniqueIdentifier();void 0===o.shaderIDToDrawCacheMap[h]&&(o.shaderIDToDrawCacheMap[h]=r.makeMarkerDrawCache(o.params,u)),o.drawCache=o.shaderIDToDrawCacheMap[h],r.drawMarkers(o.drawCache,s)}},CompositeMarker:s,Camera:s,Group:s,Transform:s,TextComp:s,DataSpace:s,ClipNode:s,ScissorRectangleClipNode:s,LightSource:s};return l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(325),i(458),i(329),i(6053)],o=i.dj.d(n,(function(e,t,i,n){var o=function(t,i,o,r){return void 0===t.vertexdata||t.style===e.LineStyle.none||!t._cachedBoundingBox.isValid()||(t.width>1?n.cullInScreenSpace([t.width],i,o,r,t._cachedBoundingBox):n.cullInCameraSpace(t._cachedBoundingBox,o,r))},r=function(e,t,i,n){return!1},a={LineStrip:o,LineLoop:o,TriangleStrip:function(e,t,i,o){return void 0===e.vertexdata||!e._cachedBoundingBox.isValid()||n.cullInCameraSpace(e._cachedBoundingBox,i,o)},Quadrilateral:function(e,t,i,n){return e.cullFcn=a.TriangleStrip,e.cullFcn(e,t,i,n)},Text:function(e,t,i,n){return void 0===e.string},Marker:function(e,i,o,r){return void 0===e.vertexdata||void 0===e.size||!e._cachedBoundingBox.isValid()||(e.size.data&&Array.isArray(e.size.data)?a=e.size.data:(e.size=t.convertArray(e.size),a=e.size),n.cullInScreenSpace(a,i,o,r,e._cachedBoundingBox));var a},CompositeMarker:r,Camera:r,Group:r,Transform:r,TextComp:r,DataSpace:r,ClipNode:r,ScissorRectangleClipNode:r,LightSource:r};return a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(457),i(375),i(1523),i(329),i(365),i(458)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{_getViewVolumeDimensions:function(e){var t,i;if(void 0!==e){Math.abs(e._data[3])<1e-8&&Math.abs(e._data[7])<1e-8&&Math.abs(e._data[11])<1e-8?(i=r.getOrtho(e),t=1):t=(i=r.getFrustum(e)).zFar/i.zNear;var n=[];for(var a in i)i.hasOwnProperty(a)&&n.push(i[a]);if(!i||!o.isDataFinite(n))throw new Error("Frustum Planes are not correct");if(!1!==i)return{left:i.left,right:i.right,bottom:i.bottom,top:i.top,zNear:i.zNear,zFar:i.zFar,nearFarRatio:1/t}}},computeViewVolumeCoordinates:function(e){var i=this._getViewVolumeDimensions(e),n={};return n.lbn=new t(i.left,i.bottom,-i.zNear),n.ltn=new t(i.left,i.top,-i.zNear),n.rtn=new t(i.right,i.top,-i.zNear),n.rbn=new t(i.right,i.bottom,-i.zNear),n.lbf=new t(1*i.left/i.nearFarRatio,1*i.bottom/i.nearFarRatio,-i.zFar),n.ltf=new t(1*i.left/i.nearFarRatio,1*i.top/i.nearFarRatio,-i.zFar),n.rtf=new t(1*i.right/i.nearFarRatio,1*i.top/i.nearFarRatio,-i.zFar),n.rbf=new t(1*i.right/i.nearFarRatio,1*i.bottom/i.nearFarRatio,-i.zFar),n},computeViewVolumePlanes:function(e){var t=this.computeViewVolumeCoordinates(e),i={};return i.left=new n(t.ltf,t.ltn,t.lbn),i.right=new n(t.rtn,t.rtf,t.rbf),i.top=new n(t.ltn,t.ltf,t.rtf),i.bottom=new n(t.rbf,t.lbf,t.lbn),i},inViewVolume:function(e,t){var n=this.computeViewVolumePlanes(t);for(var o in n)if(n.hasOwnProperty(o)){for(var r=0,a=0;a<e.length;a++){var s=new i(e[a][0],e[a][1],e[a][2],e[a][3],1);n[o].distance(s)<0&&(r+=1)}if(r===e.length)return!1}return!0},inViewArea:function(e,t,n,r){for(var a=[],s={Xmin:1/0,Xmax:-1/0,Ymin:1/0,Ymax:-1/0},l=n.x,c=n.x+n.width,d=n.y,u=n.y+n.height,h=n.width/window.devicePixelRatio,p=n.height/window.devicePixelRatio,f=0;f<t.length;f++)a[f]=o.convertPointToScreenSpace2(new i(t[f].x,t[f].y,t[f].z),r,h,p),a[f][0]<s.Xmin&&(s.Xmin=a[f][0]),a[f][0]>s.Xmax&&(s.Xmax=a[f][0]),a[f][1]<s.Ymin&&(s.Ymin=a[f][1]),a[f][1]>s.Ymax&&(s.Ymax=a[f][1]);return!(s.Xmax+e<l||s.Xmin-e>c||s.Ymax+e<d||s.Ymin-e>u)},cullInScreenSpace:function(e,t,i,n,r){var a=n.times(i),s=o.FindDPI()/72,l=o.getMax(e)*s/2;return!this.inViewArea(l,r.getAllCorners(),t.getViewport(),a)},cullInCameraSpace:function(e,t,i){var n=o.getTransformedBoundingBoxCorners(t,e);return!this.inViewVolume(n,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(365),i(325),i(212),i(1166),i(406),i(244)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=function(t){var i=new e;return void 0!==t.data?i.setElements(t.data):i.setElements(t),i},s=function(e){if(void 0!==e&&e.hasOwnProperty("matrix"))e.transformMatrix=a(e.matrix);else{e.transformMatrix=a([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}},l=function(t){t.transformMatrix=new e},c=function(e,t,n,o){var r=n.split("."),a=e;if(r.length>1)for(var s=0;s<r.length-1;++s)a=a[r[s]];var l=r[r.length-1],c=a[l];delete a[l];var d=c.indexOf("-"),u=c.substr(0,d),h=c.substr(d+1),p=t.getBinaryDataSink(h),f=new i,g=e.deleteFcn;return e.deleteFcn=function(e,t){p.forget(c),g&&g(e,t)},p.onDataReady(u,(function(t,i){a[l]={binarydata:t,binaryDataConversionFcn:function(e){return e.byteLength<5?[]:o(e)}},delete e.deleteFcn,f.resolve()})),f},d=function(e,t,i,n,o){i.forEach((function(i){void 0!==e[i]&&"string"==typeof e[i]&&n.push(c(e,t,i,o))}))},u=function(e,n,a){a||(a=[]);var s=["vertexdata","normalsdata"],l=["backgroundColor","faceColor","edgeColor"];if(!e.colortype||e.colortype!==t.ColorType.texturemapped&&e.colortype!==t.ColorType.colormapped?l.push("colordata"):s.push("colordata"),d(e,n,s,a,(function(e){return o.createFloat32Array(e)})),d(e,n,["size"],a,(function(e){return o.createFloat32Array(new Float64Array(e))})),d(e,n,l,a,(function(e){return o.createUint8Array(e)})),d(e,n,["stripdata"],a,(function(e){return o.createUint32Array(e)})),void 0!==e&&e.hasOwnProperty("texture"))if(e.texture.colortype===t.TextureColorType.truecoloralpha&&(e.isTransparentObject=!0),e.texture.hasOwnProperty("encoding")){if(e.texture.hasOwnProperty("cdata")&&e.texture.encoding===t.ImageFormat.PNG){var u=n.makeImage(),h=new i;u.onload=function(){h.resolve()},a.push(h),u.src="data:image/png;base64,"+e.texture.cdata.data,e.image=u}}else Array.isArray(e.texture.cdata.data)||"string"!=typeof e.texture.cdata.data||a.push(c(e,n,"texture.cdata.data",(function(e){return o.createUint8Array(e)})));if(a.length>0){var p=r(a);n.addWaitForNodeReady(e.cookie,p)}},h=function(e,i){e.isTransparentObject=e.colortype===t.ColorType.truecoloralpha,e.alphaMultiplier=1,u(e,i)};return{Camera:function(e){e.projectionMatrix=a(e.projection),e.viewMatrix=a(e.view)},DataSpace:s,Transform:s,ClipNode:l,ScissorRectangleClipNode:l,LineLoop:h,LineStrip:h,Marker:function(e,i){e.isTransparentObject=e.edgecolortype===t.ColorType.truecoloralpha||e.facecolortype===t.ColorType.truecoloralpha,e.alphaMultiplier=1,u(e,i)},TriangleStrip:h,Quadrilateral:h,Text:function(e,i){e.isTransparentObject=!0,e.alphaMultiplier=1;var o=[];e.Interpreter!==t.TextInterpreter.none&&o.push(n.TexFontsPromise),u(e,i,o)},LightSource:function(e,t){u(e,t)},Group:function(e){e.alphaMultiplier=1}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(325),i(329),i(365),i(1523),i(375),i(457),i(406),i(1520)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=function(e,t,i){if(e.clean&&e.depConsumedFcn){var n=e.depConsumedFcn(e,i)&t;0!==n&&(e.clean=!1,e.dependencies=n)}if(!1===e.clean){var o=0;e.dep_produced_fcn&&(o=e.dep_produced_fcn(e,i)),t|=o}return t},c=function(i,n,o,r,a){i.alphaMultiplier>=0&&1!==i.alphaMultiplier?(i.stateset=n.clone_stateset(),i.stateset.alphaMultiplier*=i.alphaMultiplier):i.stateset=n,l(i,o,a);var s,c={node:i,stateset:i.stateset,dependencies:o},d=e.Layer.middle;(void 0!==i&&i.hasOwnProperty("layer")&&(d=i.layer),a._total_count=a._total_count+1,void 0!==i.computeBoundingBox)&&(s=void 0!==i._cachedBoundingBox?i._cachedBoundingBox:c.node.computeBoundingBox());var u=n.viewTransform,h=n.modelTransform,p=u.times(h);if((!c.node.cullFcn||!1===c.node.cullFcn(i,a,p,n.projectionTransform))&&s.isValid()){var f=t.getBBoxNearFar(p,s);a._Near=Math.min(a._Near,f[0]),a._Far=Math.max(a._Far,f[1]),r(a,c,d)}},d=function(e,t,i,n,o){var r;for(r in e._children)if(e._children.hasOwnProperty(r)){var a=e._children[r];void 0===a?console.log("Error in json_scenetree","could not draw child"):a.traverseFcn&&a.traverseFcn(a,t,i,n,o)}e.clean=!0},u=function(e,t,i,n,o){let r=l(e,i,o),a=t.clone_stateset();a.appendStatesetModelTransform(e.transformMatrix),d(e,a,r,n,o)},h=function(e,n,o){var r;if(n&&n!==1/0&&o&&o!==-1/0){(r=new i).setElements(e.getElements());var a=Math.fround?Math.fround:t.to32BitFloat;i.clampProjectionMatrix(r,a(n),a(o))}else r=e;return r},p=function(e,t){for(var i=t.clipPlanes,o=i.length,r=[],a=0;a<Math.min(o,4);a++)r.push(n.transform(e,i[a]));return r};return{LineStrip:c,LineLoop:c,TriangleStrip:c,Quadrilateral:c,Text:c,Marker:c,Camera:function(e,n,o,r,a){let s=l(e,o,a),c=n.clone_stateset();c.topDataSpaceInvTransform=new i,c.modelTransform=new i,c.viewTransform=e.viewMatrix,c.projectionTransform=a.transformProjectionMatrixForPass(e.projectionMatrix),c.depthSort=e.depthsort;var u=a._Near,h=a._Far;a._Near=1/0,a._Far=-1/0,d(e,c,s,r,a);var p=Math.fround?Math.fround:t.to32BitFloat;a._Near!==1/0&&a._Far!==-1/0&&(c.projectionTransform=i.clampProjectionMatrix(c.projectionTransform,p(a._Near),p(a._Far))),a._Near=u,a._Far=h},Group:function(e,t,i,n,o){let r=l(e,i,o),a=t.clone_stateset();a.alphaMultiplier*=e.alphaMultiplier>=0?e.alphaMultiplier:1,a.appendStatesetModelTransform(e.transformMatrix),d(e,a,r,n,o)},CompositeMarker:function(e,r,a,s,c){var u=l(e,a,c);if(e.stateset=r,void 0!==e.origins&&e.origins.hasOwnProperty("dims")&&e.origins.hasOwnProperty("data"))for(var f=c.getDrawViewport(),g=f.width/window.devicePixelRatio,m=f.height/window.devicePixelRatio,_=c._Near,v=c._Far,b=r.viewTransform.times(r.modelTransform),y=c.untransformProjectionMatrixForPass(r.projectionTransform),C=h(y,_,v).times(b),T=p(C,r),E=t.FindDPI()/72,S=i.createScale(E,E,1),w=e.origins.dims[0],I=e.origins.dims[1],A=0;A<I;A++){let a=r.clone_stateset();a.modelTransform=new i,a.viewTransform=new i,a.projectionTransform=new i;var x=w*A,N=new o(e.origins.data[x],e.origins.data[x+1],e.origins.data[x+2],1),L=t.convertPointToScreenSpace2(N,C,g,m),D=L[0],M=L[1],P=i.createOrtho(-D,-D+g,-M,-M+m,-1,1),O=i.multiply(S,c.transformProjectionMatrixForPass(P)),R=i.multiply(S,P),k=[];for(let e=0;e<T.length;e++)k.push(n.transformProvidedInverse(R,T[e]));a.clipPlanes=k,a.projectionTransform.setElements(O._data),d(e,a,u,s,c),c._Near=_,c._Far=v}},TextComp:function(e,t,o,r,a){var s=l(e,o,a),c=a._Near,u=a._Far;let f=t;if("pixels"===e.units){f=t.clone_stateset(),f.modelTransform=new i,f.viewTransform=new i;var g=t.viewTransform.times(t.modelTransform),m=a.untransformProjectionMatrixForPass(t.projectionTransform),_=h(m,c,u).times(g),v=p(_,t),b=e.origin[0],y=e.origin[1],C=a.getDrawViewport(),T=C.width/window.devicePixelRatio,E=C.height/window.devicePixelRatio,S=i.createOrtho(-b,-b+T,-y,-y+E,-1,1);f.projectionTransform=a.transformProjectionMatrixForPass(S);for(var w=[],I=0;I<v.length;I++)w.push(n.transformProvidedInverse(S,v[I]));f.clipPlanes=w}d(e,f,s,r,a),"data"!==e.units&&(a._Near=c,a._Far=u)},Transform:u,DataSpace:function(e,t,i,n,o){t.dataSpaceTransformSet||(t.dataSpaceTransformSet=!0,t.topDataSpaceInvTransform.setElements(e.transformMatrix.getElements()),t.topDataSpaceInvTransform.invert());let r=t;if(e.hasOwnProperty("polarRegion")){let i=e.polarRegion;r=t.clone_stateset(),r.setStatesetPolarRegion(i.startTheta,i.endTheta,i.innerRadius,i.outerRadius,i.polarOrigin)}u(e,r,i,n,o)},ClipNode:function(e,t,i,n,o){let r=l(e,i,o),a=t.clone_stateset();a.setStatesetClipplanes(e.position),a.appendStatesetModelTransform(e.transformMatrix),d(e,a,r,n,o)},ScissorRectangleClipNode:function(e,i,n,o,r){var s=l(e,n,r);let c=i.clone_stateset();var u=t.convertRectangleScaledPixels2DevicePixels(r,{x:e.position[0],y:e.position[1],width:e.position[2],height:e.position[3]}),h=a.createFloat32Array([u.x,u.y,u.width,u.height]);c.setStatesetScissorRectangle(h),c.appendStatesetModelTransform(e.transformMatrix),d(e,c,s,o,r)},LightSource:function(e,t,i,n,o){var r={id:e.id,style:e.style,color:e.color,position:s.transformLightPosToWorld(e.style,e.position,t.modelTransform,t.viewTransform)};o.addLight(r),d(e,t,i,n,o)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(325)],o=i.dj.d(n,(function(e){var t=function(t){return e.Dependency.none};return{depProducedFcns:{Camera:function(t,i){return e.Dependency.view},LineLoop:t,LineStrip:t,Text:t,Marker:t,TriangleStrip:t,Quadrilateral:t,LightSource:t,Group:t,Transform:t,CompositeMarker:t,TextComp:t,DataSpace:t,ClipNode:t,ScissorRectangleClipNode:t},depConsumedFcns:{Text:function(t,i,n){var o=e.Dependency.screen_resolution;return void 0!==t.drawCache&&!0===t.drawCache.viewdependent&&(o=o|e.Dependency.viewport|e.Dependency.view),o},Marker:function(t,i,n){return e.Dependency.screen_resolution},LineStrip:function(t,i,n){return e.Dependency.screen_resolution},LineLoop:function(t,i,n){return e.Dependency.screen_resolution},ScissorRectangleClipNode:function(t,i,n){return e.Dependency.screen_resolution},TriangleStrip:t,Quadrilateral:t,LightSource:t,Camera:t,Group:t,Transform:t,CompositeMarker:t,TextComp:t,DataSpace:t,ClipNode:t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=function(){return window.performance.now()};return"performance"in window!=!1&&"now"in window.performance!=!1||(t=function(){return Date.now()}),e([],{constructor:function(){this._currentTimeStamp=0,this._frameTimeStamp=0,this._totalTime=0,this._clearTime=0,this._cullTime=0,this._drawTime=0,this._initTime=0,this._endFrameTime=0},reset:function(){this._currentTimeStamp=0,this._frameTimeStamp=0,this._totalTime=0,this._clearTime=0,this._cullTime=0,this._drawTime=0,this._initTime=0,this._endFrameTime=0},beginFrame:function(){this._frameTimeStamp=t()},endFrame:function(){var e=t();this._totalTime=e-this._frameTimeStamp},beginInit:function(){this._currentTimeStamp=t()},endInit:function(){var e=t();this._initTime+=e-this._currentTimeStamp},beginClear:function(){this._currentTimeStamp=t()},endClear:function(){var e=t();this._clearTime+=e-this._currentTimeStamp},beginCull:function(){this._currentTimeStamp=t()},endCull:function(){var e=t();this._cullTime+=e-this._currentTimeStamp},beginDraw:function(){this._currentTimeStamp=t()},endDraw:function(){var e=t();this._drawTime+=e-this._currentTimeStamp},beginEndFrame:function(){this._currentTimeStamp=t()},endEndFrame:function(){var e=t();this._endFrameTime+=e-this._currentTimeStamp},getTotalTime:function(){return this._totalTime/1e3},getInitTime:function(){return this._initTime/1e3},getClearTime:function(){return this._clearTime/1e3},getCullTime:function(){return this._cullTime/1e3},getDrawTime:function(){return this._drawTime/1e3},getEndFrameTime:function(){return this._endFrameTime/1e3}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this.node=null,this.intersection={X:NaN,Y:NaN,Z:NaN}},getNode:function(){return this.node},setNode:function(e){this.node=e},getIntersectionPoint:function(){return this.intersection},setIntersectionPoint:function(e){this.intersection=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2199),i(6060),i(329),i(375),i(2198),i(967)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{constructor:function(e,n,o,r){this.pickColorMapper=new t,this.pickRenderer=o,this.pickRenderPass=r,this.pickProperties=new i},pickNode:function(e,t,i){if(e.pickable){var n=this.pickColorMapper.getColorForIndex(i);this.pickProperties.setCurrentPickColor(n),this.pickShaderConfigFcns||(this.pickShaderConfigFcns=new a),e.pickFcn(e,t,this.pickRenderer,this.pickProperties,this.pickShaderConfigFcns)}},findIntersectionPoint:function(e,t,i){this.pickRenderPass.clearPick(this.pickRenderer.getWebGLContext()),this.pickProperties.setFindIntersectionPoint(!0),this.intersectionPointShaderConfigFcns||(this.intersectionPointShaderConfigFcns=new a),e.pickFcn(e,t,this.pickRenderer,this.pickProperties,this.intersectionPointShaderConfigFcns),this.pickProperties.setFindIntersectionPoint(!1);var s=this.pickRenderPass.getPickImage(this.pickRenderer.getWebGLContext()),l=s[i],c=s[i+1],d=s[i+2],u=s[i+3],h=r.decodeColorToFloat(l,c,d,u),p=i/4,f=this.pickRenderPass.getPickViewSize(),g=p%f.width,m=Math.floor(p/f.width),_=n.convertScreenSpaceToWorldPoint([g,m,h],t.topDataSpaceInvTransform.times(this.pickRenderer.getViewInvTransform().times(this.pickRenderer.getProjectionInvMatrix())),f.width,f.height),v=t.topDataSpaceInvTransform.transform(new o(0,0,0,1)),b=t.topDataSpaceInvTransform.transform(new o(1,1,1,1)),y=Math.min(v.getX(),b.getX()),C=Math.max(v.getX(),b.getX()),T=Math.min(v.getY(),b.getY()),E=Math.max(v.getY(),b.getY()),S=Math.min(v.getZ(),b.getZ()),w=Math.max(v.getZ(),b.getZ()),I={X:_[0].toFixed(5),Y:_[1].toFixed(5),Z:_[2].toFixed(5)};return I.DSRange=[y,C,T,E,S,w],I},getHitInfo:function(){var e=this.pickRenderPass.getPickImage(this.pickRenderer.getWebGLContext());return this.pickColorMapper.getMaxAndPixelIndexFromColorArray(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this.currentPickColor=[1,1,1],this.findIntersectionPoint=!1},setCurrentPickColor:function(e){this.currentPickColor[0]=e[0],this.currentPickColor[1]=e[1],this.currentPickColor[2]=e[2]},getCurrentPickColor:function(){return this.currentPickColor},setFindIntersectionPoint:function(e){this.findIntersectionPoint=e},isFindIntersectionPointEnabled:function(){return this.findIntersectionPoint}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(458),i(6062)],o=i.dj.d(n,(function(e,t){var i=function(){var i=null;if(void 0!==this._cachedBoundingBox)i=this._cachedBoundingBox;else if(i=new t,void 0!==this.vertexdata){var n=e.convertArray(this.vertexdata),o=3,r=n.length/o;switch(void 0!==this.vertexdata.dims&&(o=this.vertexdata.dims[0],r=this.vertexdata.dims[1]),o){case 2:for(let e=0;e<r*o;e+=o)i.expandBy(n[e],n[e+1]);break;default:for(let e=0;e<r*o;e+=o)i.expandBy(n[e],n[e+1],n[e+2])}this._cachedBoundingBox=i}return i};return{LineStrip:i,LineLoop:i,TriangleStrip:i,Quadrilateral:i,Text:i,Marker:i}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this.MinX=1/0,this.MaxX=-1/0,this.MinY=1/0,this.MaxY=-1/0,this.MinZ=1/0,this.MaxZ=-1/0},getMinX:function(){return this.MinX},getMaxX:function(){return this.MaxX},getMinY:function(){return this.MinY},getMaxY:function(){return this.MaxY},getMinZ:function(){return this.MinZ},getMaxZ:function(){return this.MaxZ},isValid:function(){var e=!1;return this.MinZ===1/0&&this.MaxZ===-1/0?this.MinX<=this.MaxX&&this.MinY<=this.MaxY&&(e=!0):this.MinX<=this.MaxX&&this.MinY<=this.MaxY&&this.MinZ<=this.MaxZ&&(e=!0),e},expandBy:function(e,t,i){this.MinX=Math.min(this.MinX,e),this.MaxX=Math.max(this.MaxX,e),this.MinY=Math.min(this.MinY,t),this.MaxY=Math.max(this.MaxY,t),void 0===i?(this.MinZ=1/0,this.MaxZ=-1/0):(this.MinZ=Math.min(this.MinZ,i),this.MaxZ=Math.max(this.MaxZ,i))},getCorner:function(e){return[1&e?this.MaxX:this.MinX,2&e?this.MaxY:this.MinY,4&e?this.MaxZ:this.MinZ]},getAllCorners:function(){var e=[];return this.isValid()&&(this.MinZ===1/0&&this.MaxZ===-1/0?(e.push({x:this.MinX,y:this.MinY}),e.push({x:this.MinX,y:this.MaxY}),e.push({x:this.MaxX,y:this.MinY}),e.push({x:this.MaxX,y:this.MaxY})):(e.push({x:this.MinX,y:this.MinY,z:this.MinZ}),e.push({x:this.MinX,y:this.MinY,z:this.MaxZ}),e.push({x:this.MinX,y:this.MaxY,z:this.MinZ}),e.push({x:this.MinX,y:this.MaxY,z:this.MaxZ}),e.push({x:this.MaxX,y:this.MinY,z:this.MinZ}),e.push({x:this.MaxX,y:this.MinY,z:this.MaxZ}),e.push({x:this.MaxX,y:this.MaxY,z:this.MinZ}),e.push({x:this.MaxX,y:this.MaxY,z:this.MaxZ}))),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6064),i(6065),i(6066),i(6067),i(6068),i(365),i(375),i(6069),i(6070),i(969),i(329)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([t],{fSceneTreeController:null,fCamera:null,fDataSpace:null,fChildContainer:null,fTitle:null,fXLabel:null,fYLabel:null,fZLabel:null,fXRulerControl:new l,fYRulerControl:new l,fZRulerControl:new l,fXGridControl:new l,fYGridControl:new l,fZGridControl:new l,fXBaseLineControl:new l,fYBaseLineControl:new l,fDataSpaceMatrix:null,fDataSpaceMatrixInverse:null,fLimits:[0,1,0,1,0,1],fCurrentLimits:[0,1,0,1,0,1],_getDataspaceToNDCTransform:function(){var e=new a;return this.fChildContainer&&this.fChildContainer.hasOwnProperty("transformMatrix")&&(e=this.fChildContainer.transformMatrix.times(e)),this.fDataSpace&&this.fDataSpace.hasOwnProperty("transformMatrix")&&(e=this.fDataSpace.transformMatrix.times(e)),this.fCamera&&this.fCamera.hasOwnProperty("viewMatrix")&&(e=this.fCamera.viewMatrix.times(e)),this.fCamera&&this.fCamera.hasOwnProperty("projectionMatrix")&&(e=this.fCamera.projectionMatrix.times(e)),e},getNDCToDSTransform:function(){var e=this._getDataspaceToNDCTransform();return e.invert(),e},dsWorldToView:function(e,t,i){var n=new s(e[0],e[1],e[2],1),o=this._getDataspaceToNDCTransform().transform(n),r=o._w;0===r&&(r=1),o._x=o._x/r,o._y=o._y/r,o._z=o._z/r;var l=new s(o._x,o._y,o._z,1),c=new a;c.setElements([t/2,0,0,0,0,-i/2,0,0,0,0,0,0,t/2,i/2,0,0]);var d=c.transform(l);return[d.getX(),d.getY()]},computeLimits:function(e){var t=e.transform(new s(0,0,0,1)),i=e.transform(new s(1,1,1,1));return[t.getX(),i.getX(),t.getY(),i.getY(),t.getZ(),i.getZ()]},getCurrentLimits:function(){return this.fCurrentLimits},is2D:function(){if(null!=this.fCamera&&this.fCamera.hasOwnProperty("viewMatrix")){for(var e=this.fCamera.viewMatrix.getElements(),t=[1,2,4,6,8,9],i=0;i<t.length;i++)if(0!==e[t[i]])return!1;return!0}return!0},constructor:function(e){(new r).traverse(e,this),this.fDataSpaceMatrix=new a,this.fDataSpaceMatrixInverse=new a,null!==this.fDataSpace&&(this.fDataSpaceMatrix.setElements(this.fDataSpace.transformMatrix.getElements()),this.fDataSpaceMatrixInverse.setElements(this.fDataSpace.transformMatrix.getElements()),this.fDataSpaceMatrixInverse.invert()),this.fLimits=this.computeLimits(this.fDataSpaceMatrixInverse),this.fCurrentLimits=this.fLimits},setSceneTreeController:function(e){this.fSceneTreeController=e},setCamera:function(e){this.fCamera=e},setDataSpace:function(e){this.fDataSpace=e},setChildContainer:function(e){this.fChildContainer=e},setRuler:function(e,t){var i=d.convertAxisFromString(t),o=new n(e,i);0===i?this.fXRulerControl=o:1===i?this.fYRulerControl=o:2===i&&(this.fZRulerControl=o)},setGrid:function(e,t){var n=d.convertAxisFromString(t),o=new i(e,n);0===n?this.fXGridControl=o:1===n?this.fYGridControl=o:2===n&&(this.fZGridControl=o)},setBaseline:function(e,t){var i=d.convertAxisFromString(t),n=new o(e,i);0===i?this.fXBaseLineControl=n:1===i&&(this.fYBaseLineControl=n)},setLimitsImpl:function(e){var t=this.fLimits;this.fXRulerControl.setLimits(e,t),this.fXGridControl.setLimits(e,t),this.fYRulerControl.setLimits(e,t),this.fYGridControl.setLimits(e,t),this.fZRulerControl.setLimits(e,t),this.fZGridControl.setLimits(e,t),this.fXBaseLineControl.setLimits(e,t),this.fYBaseLineControl.setLimits(e,t),this.fCurrentLimits=e},setLimits:function(e,t,i,n,o,r){this.setLimitsImpl([e,t,i,n,o,r]);var s=a.createScale(1/(t-e),1/(n-i),1/(r-o)),l=a.createTranslation(-e/(t-e),-i/(n-i),-o/(r-o)),c=a.multiply(s,l);this.fChildContainer&&this.fSceneTreeController.setTransformationMatrix(this.fChildContainer.ownerCookie,a.multiply(c,this.fDataSpaceMatrixInverse),this.fChildContainer)},reset:function(){this.setLimitsImpl(this.fLimits),this.fChildContainer&&this.fSceneTreeController.setTransformationMatrix(this.fChildContainer.ownerCookie,new a,this.fChildContainer)},setTitle:function(e){let t=d.getPrimitiveTextFromCompositeText(e);this.fTitle=new c(t)},setXLabel:function(e){let t=d.getPrimitiveTextFromCompositeText(e);this.fXLabel=new c(t)},setYLabel:function(e){let t=d.getPrimitiveTextFromCompositeText(e);this.fYLabel=new c(t)},setZLabel:function(e){let t=d.getPrimitiveTextFromCompositeText(e);this.fZLabel=new c(t)},_retrieveTextProps:function(e,t,i){if(null===e)return null;var n=this.dsWorldToView(e.fDataPosition,t,i);return{Position:u.getTextCenter(n,e.fHorizontalAlignment,e.fVerticalAlignment,e.fWidth,e.fHeight,e.fRotation),Dimensions:{width:e.fWidth,height:e.fHeight},Font:e.fFont}},getTitleProperties:function(e,t){return this._retrieveTextProps(this.fTitle,e,t)},getXLabelProperties:function(e,t){return this._retrieveTextProps(this.fXLabel,e,t)},getYLabelProperties:function(e,t){return this._retrieveTextProps(this.fYLabel,e,t)},getZLabelProperties:function(e,t){return this._retrieveTextProps(this.fZLabel,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){},setCamera:function(e){},setDataSpace:function(e){},setChildContainer:function(e){},setRuler:function(e,t){},setGrid:function(e,t){},setLimits:function(){},setTitle:function(e){},setXLabel:function(e){},setYLabel:function(e){},setZLabel:function(e){},getNDCToDSTransform:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1524),i(1525),i(1168),i(969)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{fMajorGrid:new i,fMinorGrid:new i,fAxis:0,constructor:function(e,t){var i;for(i in e._children)if(e._children.hasOwnProperty(i)){var n=e._children[i];n.hasOwnProperty("nodeinfo")&&void 0!==n.nodeinfo&&this.handleGridChild(n,n.nodeinfo)}this.fAxis=t},handleGridChild:function(e,i){void 0!==e.vertexdata&&i.hasOwnProperty("category")&&"gridline"===i.category&&(i.hasOwnProperty("subcategory")&&"minor"===i.subcategory?this.fMinorGrid=new t(e):this.fMajorGrid=new t(e))},setLimits:function(e,t){var i=this.fAxis,n=o.getAxisTransform(e,t,i),r=this.filterAndTransform.bind(this,e[2*i],e[2*i+1],n,i);this.fMajorGrid.accept(r),this.fMinorGrid.accept(r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1168),i(1524),i(1525),i(969),i(365)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t],{fTickLabels:new n,fMajorTickMarks:new n,fMinorTickMarks:new n,fAxle:new n,fAxis:null,fConstraints:[],constructor:function(e,t){var i;for(i in e._children)if(e._children.hasOwnProperty(i)){var n=e._children[i];n.hasOwnProperty("nodeinfo")&&void 0!==n.nodeinfo&&this.handleRulerChild(n,n.nodeinfo)}if(this.fConstraints=[],e.hasOwnProperty("nodeinfo")&&e.nodeinfo.hasOwnProperty("restrict")&&e.nodeinfo.hasOwnProperty("crossValue")){var r=o.convertAxisFromString(e.nodeinfo.restrict),a=Number(e.nodeinfo.crossValue);this.fConstraints.push({axis:r,value:a})}this.fAxis=t},handleRulerChild:function(e,t){void 0!==e.vertexdata&&t.hasOwnProperty("category")&&("ticklabels"===t.category?this.fTickLabels=new i(e):"tickmarks"===t.category?t.hasOwnProperty("subcategory")&&"minor"===t.subcategory?this.fMinorTickMarks=new i(e):this.fMajorTickMarks=new i(e):"axle"===t.category&&(this.fAxle=new i(e)))},filterAndTransformText:function(e,t,i,n,r){var a=o.filterVertexDataAndString(r.getOriginalVertexData(),e,t,n,r.getOriginalStringData()),s=o.transformData(a.vertexdata,i);r.setVertexData(s),r.setStringData(a.string)},transformData:function(e,t){var i=o.transformData(t.getOriginalVertexData(),e);t.setVertexData(i)},setLimits:function(e,t){var i=this.fAxis,n=o.getAxleTranslation(e,t,i,this.fConstraints),a=r.multiply(o.getAxisTransform(e,t,i),n),s=e[2*i],l=e[2*i+1],c=this.filterAndTransformText.bind(this,s,l,a,this.fAxis);this.fTickLabels.accept(c),c=this.filterAndTransform.bind(this,s,l,a,this.fAxis),this.fMajorTickMarks.accept(c),this.fMinorTickMarks.accept(c),c=this.transformData.bind(this,n),this.fAxle.accept(c)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1168),i(1524),i(1525),i(969),i(365)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t],{fAxle:new n,fAxis:null,fConstraints:[],constructor:function(e,t){var n;for(n in this.fConstraints=[],e._children)if(e._children.hasOwnProperty(n)){var o=e._children[n];if(void 0!==o&&o.hasOwnProperty("nodeinfo")&&void 0!==o.nodeinfo&&"axle"===o.nodeinfo.category&&(this.fAxle=new i(o),o.nodeinfo.hasOwnProperty("value"))){var r=Number(o.nodeinfo.value);this.fConstraints.push({axis:t,value:r})}}this.fAxis=t},transformData:function(e,t){var i=o.transformData(t.getOriginalVertexData(),e);t.setVertexData(i)},setLimits:function(e,t){var i=(this.fAxis+1)%2,n=o.getAxleTranslation(e,t,i,this.fConstraints),r=this.transformData.bind(this,n);this.fAxle.accept(r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){},traverse:function(e,t){this.visitNode(e,t)},traverseNode:function(e,t){var i;for(i in e._children)if(e._children.hasOwnProperty(i)){var n=e._children[i];void 0!==n&&this.visitNode(n,t)}},visitNode:function(e,t){e.hasOwnProperty("nodeinfo")&&void 0!==e.nodeinfo?this.visitNodeWithInfo(e,t,e.nodeinfo):this.traverseNode(e,t)},visitNodeWithInfo:function(e,t,i){if(i.hasOwnProperty("category")){var n=i.category;"axescamera"===n?(t.setCamera(e),this.traverseNode(e,t)):"axesdataspace"===n?(t.setDataSpace(e),this.traverseNode(e,t)):"childcontainer"===n?(t.setChildContainer(e),this.traverseNode(e,t)):"grid"===n?i.hasOwnProperty("axis")&&t.setGrid(e,i.axis):"ruler"===n?(i.hasOwnProperty("axis")&&t.setRuler(e,i.axis),this.traverseNode(e,t)):"baseline"===n?i.hasOwnProperty("axis")&&t.setBaseline(e,i.axis):"title"===n?t.setTitle(e):"xlabel"===n?t.setXLabel(e):"ylabel"===n?t.setYLabel(e):"zlabel"===n&&t.setZLabel(e)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1168)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){},disable:function(){},setLimits:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(329),i(458)],o=i.dj.d(n,(function(e,t,i,n){return e([],{fString:"",fFont:null,fPxFontSize:null,fDataPosition:null,fHorizontalAlignment:0,fVerticalAlignment:0,fRotation:0,fWidth:0,fHeight:0,fPixelBounds:null,constructor:function(e){e&&(this.fString=e.string,this.fFont=n.makeFont(e._font,i.FindDPI()),this.fPxFontSize=e._font.size*i.FindDPI()/72,this.fDataPosition=n.convertArray(e.vertexdata),this.fHorizontalAlignment=e.horizontalalignment,this.fVerticalAlignment=e.verticalalignment,this.fRotation=e.rotation,this.fPixelBounds=this._computePixelBounds())},_computePixelBounds:function(){if(this.fString){var e=t.create("canvas").getContext("2d");return e.font=this.fFont,this.fWidth=Math.ceil(n.calcTextWidth(e,this.fString,this.fString.length)),this.fHeight=Math.ceil(1.2*this.fPxFontSize*this.fString.length),i.getPixelBounds(this.fWidth,this.fHeight,this.fHorizontalAlignment,this.fVerticalAlignment,this.fRotation)}return{x:0,y:0,width:0,height:0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e([],{_cameraOwnerCookie:null,fSceneTreeController:null,constructor:function(e,t){this._cameraOwnerCookie=e,this.fSceneTreeController=t},setView:function(e,t){this.fSceneTreeController.setViewMatrix(this._cameraOwnerCookie,e,t)},getView:function(){return this.fSceneTreeController.getView(this._cameraOwnerCookie)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this._cmdQueue=[],this._cmdHandlers={},this._lock=null},onCmd:function(e,t){this._cmdHandlers[e]=t},lock:function(e){if(null==e)throw new Error("Invalid key for CommandProcessor lock");if(null!==this._lock)throw new Error("Attempted to lock CommandProcessor with "+e+" when already locked with "+this._lock);this._lock=e},unlock:function(e){if(null==e)throw new Error("Invalid key for CommandProcessor unlock");this._lock===e&&(this._lock=null,this._runQueuedCommands())},processCmd:function(e){this._cmdQueue.push(e),null===this._lock&&this._runQueuedCommands()},_runQueuedCommands:function(){for(;this._cmdQueue.length>0&&null===this._lock;){var e=this._cmdQueue.shift(),t=this._cmdHandlers[e.cmd];if(!t)throw new Error("Unknown command: "+e.cmd);t(e)}}})}),e,t),e.exports=o},function(e,t){e.exports='<canvas class="${baseClass}" data-dojo-attach-point="sceneViewNode,backgroundColorNode" height="${canvasHeight}" width="${canvasWidth}"></canvas>'},function(e,t,i){var n,o;n=[i(203),i(458),i(329),i(1518),i(6075),i(457),i(375),i(365),i(6077),i(6078),i(6079)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([],{constructor:function(e){this.sceneTree=e},_sendException:function(e){this.sceneTree._sendExceptionEvent(e)},_getNode:function(e){return this.sceneTree.getOwnerCookiePeerNode(e)},_isAGeometryNode:function(e){switch(e){case"LineStrip":case"LineLoop":case"Marker":case"TriangleStrip":case"Quadrilateral":case"CompositeMarker":return!0;default:return!1}},_getAllChildrenNodes:function(e,t){if(e&&void 0===e._children)t.push(e);else for(let i=0;i<e._children.length;i++)this._getAllChildrenNodes(e._children[i],t)},_getPrimitives:function(e){let t=[];return this._getAllChildrenNodes(e,t),t},_getModelTransform:function(e){return this._getNode(e).stateset.modelTransform},_getTopDataSpaceInvTransform:function(e){return this._getNode(e).stateset.topDataSpaceInvTransform},_getViewTransform:function(e){return this._getNode(e).stateset.viewTransform},_getProjectionTransform:function(e){let t=this._getNode(e);return this.sceneTree._renderer.untransformProjectionMatrixForPass(t.stateset.projectionTransform)},_markDirty:function(e){e.clean=!1,this.sceneTree._nodeChildrenAreAboutToBeChanged(e)},isPropertyTrue:function(e,t){let i=this._getNode(e);return i.hasOwnProperty(t)&&!0===i[t]},setVisibility:function(e,t){let i;switch(t){case"on":case!0:i=255;break;case"off":case!1:i=0;break;default:return}let n=this._getNode(e),o=n.type;if(this._isAGeometryNode(o))if("CompositeMarker"===o){let e=this._getPrimitives(n);for(let t=0;t<e.length;t++)e[t].hasOwnProperty("faceColor")?(e[t].faceColor.data[3]=i,this._markDirty(e[t])):e[t].hasOwnProperty("edgeColor")&&(e[t].edgeColor.data[3]=i,this._markDirty(e[t]))}else this._sendException("Functionality not supported: Cannot set visibility");else this._sendException("Error occurred while setting visibility on the node")},getNearestGeometryPoints:function(e,t,i,r){let a=this._getNode(e);switch(a.type){case"LineStrip":case"LineLoop":return n.getNearestLineSegmentPoints(t,a);case"Quadrilateral":case"TriangleStrip":return o.getNearestFacePoints(t,a,i,r);default:return[]}},getMVP:function(e){let t=this._getModelTransform(e),i=this._getViewTransform(e),n=this._getProjectionTransform(e),o=i.times(t);return n.times(o)},transformDataSpacePtToModelSpace:function(e,t){let i=this._getModelTransform(e),n=this._getTopDataSpaceInvTransform(e),o=s.createInverse(i),r=s.createInverse(n);return o.times(r).transform(t)},transformModelPtToDataSpace:function(e,t){let i=this._getModelTransform(e);return this._getTopDataSpaceInvTransform(e).times(i).transform(t)},transformPoint:function(e,t,i){let n=this._getTopDataSpaceInvTransform(t),o=s.createInverse(n),r=this._getViewTransform(t),a=this._getProjectionTransform(t).times(r.times(o)),l=this._getTopDataSpaceInvTransform(i),c=s.createInverse(l),d=this._getViewTransform(i),u=this._getProjectionTransform(i).times(d.times(c));u.invert();let h=a.transform(e);return 0!==h.getW()&&(h=h.project()),h=u.transform(h),0!==h.getW()&&(h=h.project()),h},setTransform:function(e,t){let i=this._getNode(e);if(this._isAGeometryNode(i.type))if("CompositeMarker"===i.type&&3===i.origins.data.length){void 0===i._originsCache&&(i._originsCache=i.origins);let e=t.transform(new a(0,0,0));i.origins.data=[e.getX(),e.getY(),e.getZ()]}else this._sendException("Functionality not supported: Cannot set transform");else this._sendException("Error occurred while setting transform on the node")},setTransformationMatrix:function(e,t,i){let n=i,o=!1;n&&n.nodeinfo&&"childcontainer"===n.nodeinfo.category&&JSON.stringify(n.transformMatrix)!==JSON.stringify(t)&&(n.transformMatrix=t,o=!0),o&&this._markDirty(n)},setViewMatrix:function(e,t,i){let n=this._getNode(e);if(n)if("Camera"===n.type){let e=l.computeViewMatrixFromAzimuthAndElevation(t,i);n.viewMatrix=e,this._markDirty(n)}else this._sendException("Functionality not supported. Cannot set view matrix for a node that is not a camera.");else this._sendException("Error occurred while setting view matrix. Camera node not found in scene tree.")},getView:function(e){let t=this._getNode(e);if(t){if("Camera"===t.type){return l.computeView(t.viewMatrix)}this._sendException("Functionality not supported. Cannot get view for a node that is not a camera.")}else this._sendException("Error occurred while getting view. Camera node not found in scene tree.")},_leafTypes:["LineStrip","LineLoop","TriangleStrip","Quadrilateral","Text","Marker"],getAPI:function(e){let t=this._getNode(e);if(t){if("Group"===t.type)return new c(t);if(this._leafTypes.includes(t.type))return new d(t)}return null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(457),i(6076),i(458)],o=i.dj.d(n,(function(e,t,i,n){return{_rayIntersectTriangle:function(e,t,n,o,r){var a=new i(t.getX()-e.getX(),t.getY()-e.getY(),t.getZ()-e.getZ()),s=new i(n.getX()-e.getX(),n.getY()-e.getY(),n.getZ()-e.getZ()),l=r.cross(s),c=a.dot(l);if(Math.abs(c)<1e-5)return!1;var d=1/c,u=new i(o.getX()-e.getX(),o.getY()-e.getY(),o.getZ()-e.getZ()),h=u.dot(l)*d;if(h<0||h>1)return!1;var p=u.cross(a),f=r.dot(p)*d;return!(f<0||h+f>1)&&s.dot(p)*d},_getNearestFaceIndex:function(e,o,r,a){var s,l,c,d,u=n.convertArray(o.vertexdata),h=n.convertArray(o.stripdata),p=u.length/3,f=null,g=Number.MAX_VALUE,m=r,_=new i(a.getX()-r.getX(),a.getY()-r.getY(),a.getZ()-r.getZ());if(_=_.normalize(),h.length>0){var v=h.length-1;for(let e=0;e<v;e++){var b=h[e],y=h[e+1];for(let e=b-1;e<y-3;e++){let i=3*e;s=new t(u[i],u[i+1],u[i+2]),l=new t(u[i+3],u[i+4],u[i+5]),c=new t(u[i+6],u[i+7],u[i+8]),!1!==(d=this._rayIntersectTriangle(s,l,c,m,_))&&d<g&&(g=d,f=e)}}}else{var C=p/3;for(let e=0;e<C;e++){let i=9*e;s=new t(u[i],u[i+1],u[i+2]),l=new t(u[i+3],u[i+4],u[i+5]),c=new t(u[i+6],u[i+7],u[i+8]),!1!==(d=this._rayIntersectTriangle(s,l,c,m,_))&&d<g&&(g=d,f=e)}}return f},getNearestFacePoints:function(e,t,i,o){var r=n.convertArray(t.vertexdata),a=new Float32Array([]),s=this._getNearestFaceIndex(e,t,i,o);if(null!==s){a=new Float32Array(9);for(var l=0;l<9;l++)a[l]=r[9*s+l]}return a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=e("graphics.MWSG.Vector3",[],{constructor:function(e,t,i){this._x=e||0,this._y=t||0,this._z=i||0},getX:function(){return this._x},getY:function(){return this._y},getZ:function(){return this._z},set:function(e,t,i){this._x=e,this._y=t,this._z=i},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z)},normalize:function(){var e=this.length();return 0!==e?new t(this.getX()/e,this.getY()/e,this.getZ()/e):new t(0,0,0)},dot:function(e){return this._x*e.getX()+this._y*e.getY()+this._z*e.getZ()},cross:function(e){var i=this._x,n=this._y,o=this._z,r=e._x,a=e._y,s=e._z;return new t(n*s-o*a,o*r-i*s,i*a-n*r)}});return t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(365)],o=i.dj.d(n,(function(e){return{computeViewMatrixFromAzimuthAndElevation:function(t,i){var n=new e,o=t*Math.PI/180,r=i*Math.PI/180,a=Math.cos(o),s=Math.sin(o),l=Math.cos(r),c=Math.sin(r),d=[a,-c*s,l*s,0,s,c*a,-l*a,0,0,l,c,0,0,0,0,1];n.setElements(d);var u=[l*s*Math.sqrt(3)/2+.5,-l*a*Math.sqrt(3)/2+.5,c*Math.sqrt(3)/2+.5,-1],h=d,p=new Array(u.length);u.forEach((function(e,t){p[t]=-1*e}));var f=[h[0]*p[0]+h[4]*p[1]+h[8]*p[2]+h[12]*p[3],h[1]*p[0]+h[5]*p[1]+h[9]*p[2]+h[13]*p[3],h[2]*p[0]+h[6]*p[1]+h[10]*p[2]+h[14]*p[3],h[3]*p[0]+h[7]*p[1]+h[11]*p[2]+h[15]*p[3]],g=new e;return g.setElements([1,0,0,0,0,1,0,0,0,0,1,0,f[0],f[1],f[2],f[3]]),g.times(n)},computeView:function(e){var t=e.getElements(),i=t[4],n=t[10],o=Math.asin(i),r=Math.asin(n),a=180*o/Math.PI,s=180*r/Math.PI;return a<0&&(a=360-Math.abs(a)),{az:a,el:s}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._node=e},setAlphaMultiplier:function(e){this._node.alphaMultiplier=e,this._node.clean=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._node=e},setAlphaMultiplier:function(e){this._node.alphaMultiplier=e,this._node.clean=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(213),i(212),i(1526),i(215),i(554),i(406),i(216),i(6081)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){let u=1,h=2;return e([a,c,s],{baseClass:"ImageView",templateString:d,_Controller:null,_channelID:null,_binaryDataSinkCallBack:null,constructor:function(e,t,i){this._channelID=e,this._defineEvent("act"),this._defineEvent("graphicscomplete"),this._pictureListener=null,this._PubSubLogger=t,this._canvasEventPublisher=i,this._binaryDataSinkCallBack=null,this._currentView=null},postCreate:function(){this.inherited(arguments),n.set(this.domNode,"width","100%"),n.set(this.domNode,"height","100%");let e=this.imageViewNode;this._imageView={_imageNode:e,viewType:u,getWidth:function(){return this._imageNode.width},setWidth:function(e){this._imageNode.width=e},getHeight:function(){return this._imageNode.height},setHeight:function(e){this._imageNode.height=e},getImageDataURL:function(){return this._imageNode.src},show:function(){this._imageNode.style.display="inline"},hide:function(){this._imageNode.style.display="none"},setImage:function(e){this._imageNode.src=e},targetNode:function(){return this._imageNode}};let t=this.canvasViewNode;this._canvasView={_canvasNode:t,_ctx:t.getContext("2d"),viewType:h,getWidth:function(){return this._canvasNode.width},setWidth:function(e){this._canvasNode.width=e},getHeight:function(){return this._canvasNode.height},setHeight:function(e){this._canvasNode.height=e},getImageDataURL:function(){return this._canvasNode.toDataURL()},show:function(){this._canvasNode.style.display="inline"},hide:function(){this._canvasNode.style.display="none"},setImage:function(e){this._ctx.drawImage(e,0,0)},targetNode:function(){return this._canvasNode}},this._canvasView.hide(),this._currentView=this._imageView,this._imageView.show(),this.domNode.addEventListener("dragstart",(function(e){e.stopImmediatePropagation(),e.preventDefault()}),!0)},destroy:function(){this._Controller&&this._Controller.uninstall(),void 0!==this._binaryDataSink&&this._binaryDataSink.forget(this),this.inherited(arguments)},setController:function(e){this._Controller&&this._Controller.uninstall(),this._Controller=e,this._Controller.install(this)},getController:function(){return this._Controller},getAxesControl:function(){return null},getWidth:function(){return this._currentView.getWidth()},setWidth:function(e){this._currentView.setWidth(e)},getHeight:function(){return this._currentView.getHeight()},setHeight:function(e){this._currentView.setHeight(e)},getTargetNode:function(){return this._currentView.targetNode()},redraw:function(){},draw:function(){},_getCData:function(){return{width:this._currentView.getWidth(),height:this._currentView.getHeight(),urlString:this._currentView.getImageDataURL()}},getImageDataURL:function(){let e=new o;return e.resolve(this._getCData()),e},_handleACT:function(e,t){t&&(void 0!==this._PubSubLogger&&this._PubSubLogger.log("ImageView received ACT: "+t.ACT),void 0!==t.clientReceiveTS&&(t.clientReceiveTS=Date.now())),e.onload=function(){t&&(void 0!==t.clientSendTS&&(t.clientSendTS=Date.now()),this.emitEvent("act",{data:t})),this.emitEvent("graphicscomplete",{})}.bind(this)},_processImage:function(e){this._currentView.viewType!==u&&(this._currentView&&this._currentView.hide(),this._imageView.show(),this._currentView=this._imageView),this._currentView.setImage("data:image/png;base64,"+e.cdata.data),this._handleACT(this.imageViewNode,e.actData),this._pictureListener&&this._pictureListener(this._currentView.getImageDataURL(),Date.now())},_processImageURI:function(e){let t=e.cdataURI,i=t.indexOf("-"),n=t.substr(0,i),o=t.substr(i+1),r=e.width,a=e.height;this.domNode.height=a,this.domNode.width=r,this._binaryDataSinkCallBack(o)._binaryDataSink.onDataReady(n,function(t,i){this._currentView.viewType!==h&&(this._currentView&&this._currentView.hide(),this._canvasView.show(),this._currentView=this._canvasView),this._currentView.setWidth(r),this._currentView.setHeight(a);let s=new Uint8ClampedArray(t),l=new ImageData(s,r,a);createImageBitmap(l).then(function(e){this._currentView.setImage(e),this._binaryDataSinkCallBack(o)._binaryDataSink.forget(n),this._pictureListener&&this._pictureListener(this._currentView._getImageDataURL(),Date.now()),this.emitEvent("graphicscomplete",{})}.bind(this)),e.actData&&(void 0!==e.actData.clientSendTS&&(e.actData.clientSendTS=Date.now()),this.emitEvent("act",{data:e.actData}))}.bind(this))},processCmd:function(e){let t=e.cmd;if("setImage"===t)this._processImage(e);else if("setImageURI"===t)this._processImageURI(e);else if("requestCData"===t){let e=this._getCData();this._canvasEventPublisher.publish("CData",e)}},setBinaryDataSinkCallBack:function(e){this._binaryDataSinkCallBack=e},createCloneDOMNode:function(){return t.clone(this.domNode)},getAxesExternalInterface:function(e){return new r(null)},getSceneTree:function(){return null},setPictureListener:function(e){this._pictureListener=e}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <canvas class=${baseClass} data-dojo-attach-point="canvasViewNode" draggable="false" ondragstart="return false;"\n style="width: 100%; height: 100%;"></canvas>\n <image class=${baseClass} data-dojo-attach-point="imageViewNode" draggable="false" ondragstart="return false;"\n style="width: 100%; height: 100%;"></image>\n</div>\n'},function(e,t,i){var n,o;function r(e){return"number"==typeof e&&isFinite(e)?e:e.toString()}n=[i(203),i(212),i(2202),i(329)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{constructor:function(e,t){this._sceneEventPublisher=e,this._uiEventRecordCreator=t},doScenePicking:function(e,i){var o;if(i.hasOwnProperty("pickResult"))o=(new t).resolve();else{var r=e.getSceneTree(),a=i.offsetX,s=i.offsetY;o=(o=r.hitTest(a,s)).then((function(e){n.appendPickResultToEvent(e,i)}))}return o=o.then((function(){var e=null,t=null,n=null,o=null;return null!==(o=i.pickResult)&&(t=(e=o.getNode()).ownerCookie,n=o.getIntersectionPoint()),[e,t,n]}))},_mouseEvent:function(e,t,i,n){this.doScenePicking(e,t).then(function(e){var o=e[0],a=e[1],s=e[2],l=this._uiEventRecordCreator.convertToUIEventRecord(t);n&&!o?i=n:a&&s&&(l.Owner=a,l.DataX=r(s.X),l.DataY=r(s.Y),l.DataZ=r(s.Z)),this._sceneEventPublisher.publish(i,l)}.bind(this))},doMouseMove:function(e){var t=this.getView();this._mouseEvent(t,e,"ButtonMotion")},doMouseUp:function(e){var t=this.getView();this._mouseEvent(t,e,"ButtonUp")},doMouseDown:function(e){var t=this.getView();this._mouseEvent(t,e,"SceneNodeHit","ButtonDown")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2202),i(329)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){this._mouseEventPublisher=e},doMouseDown:function(e){this._sendEventMessage("BtnDown",e)},doMouseUp:function(e){this._sendEventMessage("BtnUp",e)},doMouseMove:function(e){this._sendEventMessage("Move",e)},doContextMenu:function(e){},_sendEventMessage:function(e,t){var n=i.getEventXYRelativeToTheFigureContainer(this._View.FigureAncestorNode,t),o=this.getView(),r={Button:t.button,X:t.offsetX,Y:t.offsetY,FigX:n.X,FigY:n.Y,Width:o.getWidth()/window.devicePixelRatio,Height:o.getHeight()/window.devicePixelRatio,Time:(new Date).getTime().toString(),Shift:t.shiftKey,Alt:t.altKey,Ctrl:t.ctrlKey,ClickCount:t.detail,IsPopupTrigger:t.popupTrigger};this._mouseEventPublisher.publish(e,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2203)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(554),i(2190),i(2204)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{ConnectionStatus:{none:0,connected:1,disconnected:2,initialized:3},constructor:function(e){this.messageService=e,this._stream=null,this._connectionStatus=this.ConnectionStatus.none,this._defineEvent("datareceived"),this.usingFastChannel=!1},connect:function(e){var i=new t;try{this._stream=o.createStream(e,this.messageService),this._stream.start(this._webSocketMessage,this).then(function(){this._connectionStatus=this.ConnectionStatus.connected,this._stream._isStarted&&this._stream._fallbackStream&&!this._stream._fallbackStream.isStarted()?this.usingFastChannel=!0:this.usingFastChannel=!1,i.resolve()}.bind(this),function(){this._connectionStatus=this.ConnectionStatus.none,i.resolve()}.bind(this)),i.isResolved()||(this._connectionStatus=this.ConnectionStatus.initialized)}catch(e){this._connectionStatus=this.ConnectionStatus.none,i.resolve()}return i},_webSocketMessage:function(e){var t=e.data;if(t.byteLength<=8)throw new Error("Bad data frame : Length less than URISize");var i=new Int32Array(t,0,2),n={uri:i[0].toString()+" "+i[1].toString(),data:t.slice(8)};this.emitEvent("datareceived",n)},disconnect:function(){this._stream?this._stream.stop().then(function(){this._connectionStatus=this.ConnectionStatus.disconnected}.bind(this)):this._connectionStatus=this.ConnectionStatus.disconnected},getConnectionStatus:function(){return this._connectionStatus},handleBase64Data:function(e,t){var i={uri:e,data:n.base64ToArrayBuffer(t)};this.emitEvent("datareceived",i)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(204),i(214),i(212),i(219),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s,l=e([],{getName:function(){},start:function(e,t){},send:function(e){},stop:function(){},isStarted:function(){}});return a=e([l],{logSubscriptions:!1,constructor:function(e,t,i,n,r){this._streamName=e,this._streamId=t,this._factory=i,this._setDelegate(n),this._subscription={},this._onDisconnected(),this.messageService=r||o.messageService},getName:function(){return this._streamName},send:function(e){var t;return this.isStarted()?e?"[object ArrayBuffer]"!==Object.prototype.toString.call(e)?(r.error("Cannot send as data is not an ArrayBuffer object."),(new n).reject("Cannot send as data is not an ArrayBuffer object.")):(t=this._queueSend(e),this._deferProcessQueue(),t):(r.error("Cannot send as data is null."),(new n).reject("Cannot send as data is null.")):(r.error("Cannot send as not connected to a stream."),(new n).reject("Cannot send as not connected to a stream."))},start:function(e,o){var a;return this.logSubscriptions&&r.info("BinaryStream start: "+this._streamName,e,o),this._addHandler(e,o)?(this._connectHandle=i.after(this.messageService,"onConnected",t.hitch(this,"_onConnected"),!0),this._disconnectHandle=i.after(this.messageService,"onDisconnected",t.hitch(this,"_onDisconnected"),!0),this.messageService.isConnected()?this._onConnected():this._onDisconnected(),this._messageHandle=i.after(this._delegate,"onMessage",t.hitch(this,this._onDelegateMessage),!0),this._closeHandle=i.after(this._delegate,"onClose",t.hitch(this,this._onDelegateClose),!0),this.isStarted()?(new n).resolve():(a=this._queueStart(),this._deferProcessQueue(),a)):(r.error("Already connected to a stream, can't start."),(new n).reject("Already connected to a stream, can't start."))},stop:function(){var e;return this.logSubscriptions&&r.info("BinaryStream stop: "+this._streamName),this._removeHandler()?this.isStarted()?(e=this._queueStop().then(t.hitch(this,this._cleanup),t.hitch(this,this._cleanup)),this._deferProcessQueue(),e):(this._cleanup(),(new n).resolve()):(this._cleanup(),(new n).reject("Not connected to stream, can't stop."))},flush:function(){var e=new n;return this.isConnected()?(this._processQueue(),e.resolve()):e.reject("Can only manually flush the queue when connected."),e.promise},isConnected:function(){return this._isConnected},isStarted:function(){var e=this._delegate&&this._delegate.delegateConnected();return this.isConnected()&&e},_setDelegate:function(e){this._delegate=e},_onDisconnected:function(){this._isConnected=!1,this._queuedOps=[]},_onConnected:function(){this._isConnected=!0,this._processQueue()},_queueSend:function(e){var t=new n;return this._queuedOps.push({type:"send",data:e,deferred:t}),t.promise},_queueStart:function(){var e=new n;return this._queuedOps.push({type:"start",deferred:e}),e.promise},_queueStop:function(){var e=new n;return this._queuedOps.push({type:"stop",deferred:e}),e.promise},_processQueue:function(){if(this.isConnected()){var e=this._queuedOps;this._queuedOps=[],e.forEach((function(e){var t;"send"===e.type?this.isStarted()?t=this._delegate.doSend(e.data):this._queuedOps.push(e):"start"===e.type?t=this._doStart():"stop"===e.type&&(t=this._doStop()),t.then(e.deferred.resolve,e.deferred.reject)}),this)}},_deferProcessQueue:function(){if(!this._deferredTimeout){var e=this;this._deferredTimeout=setTimeout((function(){e._deferredTimeout=!1,e._processQueue()}),0)}},_doStart:function(){if(this.started)return(new n).resolve();var e=this._delegate.connect();return this.started=!0,e},_doStop:function(){if(this.started){var e=this._delegate.disconnect();return this.started=!1,e}return(new n).resolve()},_onDelegateMessage:function(e){e&&this._callHandler(e)},_addHandler:function(e,t){return!this._subscription.hasOwnProperty("handler")&&(t=t||this,"string"==typeof e&&"function"!=typeof t[e]?void r.warn("Not adding, invalid handler: "+e):(this._subscription={handler:e,scope:t},!0))},_removeHandler:function(){var e=this._subscription.hasOwnProperty("handler");return this._subscription={},e},_callHandler:function(e){try{"string"==typeof this._subscription.handler?this._subscription.scope[this._subscription.handler].call(this._subscription.scope,e):this._subscription.handler.call(this._subscription.scope,e)}catch(e){r.error("Error while executing message handler on stream: "+this._streamName+", error: "+e)}},_onDelegateClose:function(){this._cleanup()},_cleanup:function(){this._onDisconnected(),this._connectHandle&&this._connectHandle.remove(),this._disconnectHandle&&this._disconnectHandle.remove(),this._messageHandle&&this._messageHandle.remove(),this._closeHandle&&this._closeHandle.remove(),this._factory&&this._factory._removeStream(this._streamName)}}),s=e([l],{logging:!1,constructor:function(e,t,i){this._streamName=e,this._factory=t,this._fallbackStream=i,this._isStarted=!1,this._subscription={}},getName:function(){return this._streamName},start:function(e,t){if(!this.isStarted()&&window.cefclient&&window.cefclient.createChannel)try{if(!this._addHandler(e,t))return r.error("Already connected to a stream, can't start."),(new n).reject("Already connected to a stream, can't start.");var i=this;return window.cefclient.createChannel(this._streamName,(function(e,t){t&&i._callHandler({channelName:e,data:t})}),[]),this._isStarted=!0,this._logHelper("Successfully created webwindow stream"),(new n).resolve()}catch(e){r.warn("Could not connect to webwindow stream.")}return this._logHelper("Could not create webwindow stream, using fallback"),this._useFallback=!0,this._fallbackStream.start(e,t)},send:function(e){return this._useFallback?this._fallbackStream.send(e):this.isStarted()?e?"[object ArrayBuffer]"!==Object.prototype.toString.call(e)?(r.error("Cannot send as data is not an ArrayBuffer object."),(new n).reject("Cannot send as data is not an ArrayBuffer object.")):(window.cefclient.sendData(this._streamName,e),this._logHelper("Webwindow stream sent data of size: "+e.byteLength),(new n).resolve()):(r.error("Cannot send as data is null."),(new n).reject("Cannot send as data is null.")):(r.error("Cannot send as not connected to a stream."),(new n).reject("Cannot send as not connected to a stream."))},stop:function(){return this._useFallback?this._fallbackStream.stop():this._removeHandler()?(this.isStarted()&&(window.cefclient.stop(this._streamName),this._logHelper("Stopped webwindow stream"),this._isStarted=!1),this._cleanup(),(new n).resolve()):(this._cleanup(),(new n).reject("Cannot stop as not connected to a stream."))},isStarted:function(){if(this._useFallback)return this._fallbackStream.isStarted();this._isStarted},flush:function(){this._useFallback&&this._fallbackStream.flush()},_cleanup:function(){this._factory&&this._factory._removeStream(this._streamName)},_callHandler:function(e){try{"string"==typeof this._subscription.handler?this._subscription.scope[this._subscription.handler].call(this._subscription.scope,e):this._subscription.handler.call(this._subscription.scope,e)}catch(e){r.error("Error while executing message handler on stream: "+this._streamName+", error: "+e)}},_addHandler:function(e,t){return!this._subscription.hasOwnProperty("handler")&&(t=t||this,"string"==typeof e&&"function"!=typeof t[e]?void r.warn("Not adding, invalid handler: "+e):(this._subscription={handler:e,scope:t},!0))},_removeHandler:function(){var e=this._subscription.hasOwnProperty("handler");return this._subscription={},e},_logHelper:function(e){this.logging&&r.info(this._streamName+" - "+e)}}),l.Impl=a,l.CefImpl=s,l}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(204),i(214),i(212),i(232),i(209),i(6088),i(6089)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([],{BASE_END_POINT:"messageservice/binary/",KEEPALIVE_TIMEOUT:2e4,logLifecycle:!1,constructor:function(e,t,i){i=i||{},this._streamName=e,this._streamId=t,this._keepAliveTimeout=i.keepAliveTimeout||this.KEEPALIVE_TIMEOUT,this._timers=[]},onMessage:function(e){},onClose:function(){},connect:function(){var e=new n;this.delegate=this._createDelegate(),this._messageHandle=i.after(this.delegate,"onMessage",t.hitch(this,this._handleTransportMessage),!0),this._closeHandle=i.after(this.delegate,"onClose",t.hitch(this,this._handleTransportClose),!0),this.delegate.setUrl(this._getEndpoint());var o=this.delegate.connect(),r=this;return o.then((function(t){if(r._keepAliveTimeout>0){var i=setInterval((function(){r._sendKeepAlive(!1)}),r._keepAliveTimeout);r._timers.push(i)}e.resolve(t)}),(function(t){e.reject(t)})),this._logLifecycleInfo("BinaryStreamTransport constructing new websocket instance."),e.promise},disconnect:function(){return this.delegate.reset(),(new n).resolve()},cleanup:function(){this.delegate&&(this._logLifecycleInfo("BinaryStreamTransport disconnecting due to cleanup call."),this.delegate.disconnect(),this.delegate=null)},delegateConnected:function(){return!!this.delegate&&this.delegate.isConnected()},doSend:function(e){var t=s.getPayloadFrame({streamId:this._streamId,complete:!0,data:e});return this._delegateSend(t),(new n).resolve()},_delegateSend:function(e){var t=s.serialize(e);this.delegate.send(t)},_handleTransportMessage:function(e){var t=e.data,i=s.deserialize(t);switch(this._logLifecycleInfo("Received frame type: "+i.header.type),i.header.type){case s.TYPES.KEEPALIVE:this._handleKeepAlive(i);break;case s.TYPES.PAYLOAD:this._handlePayload(i);break;default:throw new Error(i.header.type+" frame not supported")}},_handleTransportClose:function(e,t){this._timers&&(this._logLifecycleInfo("Canceling all timers"),this._timers.forEach((function(e){clearInterval(e)}))),this.onClose(),this._messageHandle&&this._messageHandle.remove(),this._closeHandle&&this._closeHandle.remove()},_handlePayload:function(e){this._logLifecycleInfo("Received Payload of size: "+e.payload.byteLength),this.onMessage({data:e.payload})},_handleKeepAlive:function(e){this._logLifecycleInfo("Received keepalive from server")},_sendKeepAlive:function(e){if(e=e||!1,this.delegateConnected()){this._logLifecycleInfo("Sending keep-alive");var t=s.getKeepAliveFrame({respond:e});this._delegateSend(t)}},_getEndpoint:function(){return o.createWorkerRoutingHostUrl(this.BASE_END_POINT+this._streamName)},_logLifecycleInfo:function(e){this.logLifecycle&&r.info(e)},_createDelegate:function(){return new a}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(204),i(212),i(209)],o=i.dj.d(n,(function(e,t,i,n){return e([],{CLOSE_NORMAL_CLOSURE:1e3,CLOSE_GOING_AWAY:1001,CLOSE_PROTOCOL_ERROR:1002,logLifecycle:!1,connectTimeout:5e3,constructor:function(){this._webSocket=null,this._connected=!1},connect:function(){var e,t=new i;if(!(e=this.getUrl()))return n.error("Invalid URL"),t.reject("Invalid URL"),t.promise;if(0!==(e=e.replace(/^http/,"ws")).indexOf("ws"))return n.error("Invalid URL: ",e),t.reject("Invalid URL: "+e),t.promise;this.logLifecycle&&n.info("Connecting to URL: "+e);var o,r=this,a=null;this.connectTimeout>0&&(a=setTimeout((function(){a=null,this._connected||(this.logLifecycle&&n.info("Timed out while connecting to URL ",e,"in "+r.connectTimeout,"ms"),r.onClose(r.CLOSE_PROTOCOL_ERROR,"Connect Timeout"),t.reject("Timed out while connecting to URL"))}),this.connectTimeout));try{(o=new WebSocket(e)).binaryType="arraybuffer";var s=function(e){var i=e?e.code:r.CLOSE_NORMAL_CLOSURE,s=e?e.reason:void 0;r.logLifecycle&&n.info("WebSocket closed: "+i+"/"+s),a&&(window.clearTimeout(a),a=null),t.reject(),o===r._webSocket?r.onClose(i,s):r.logLifecycle&&n.info("Ignoring close event, WebSocket")};o.onopen=function(){r.logLifecycle&&n.info("WebSocket opened: "+o),a&&(window.clearTimeout(a),a=null),t.resolve(),o===r._webSocket?r.onOpen():r.logLifecycle&&n.info("Ignoring open event, WebSocket"+r._webSocket)},o.onclose=s,o.onerror=function(){n.error("WebSocket received error"),s({code:r.CLOSE_PROTOCOL_ERROR})},o.onmessage=function(e){r.logLifecycle&&n.info("WebSocket message received"),o===r._webSocket?r.onMessage(e):r.logLifecycle&&n.info("Ignoring message event, WebSocket")},this._webSocket=o}catch(e){n.error("WebSocket error: ",e),t.reject("Browser does not support WebSockets")}return t.promise},onOpen:function(){this._connected=!0},onMessage:function(e){},onClose:function(e,t){null!==this._webSocket&&this._connected&&this._webSocket.close(this.CLOSE_NORMAL_CLOSURE,"Close"),this._connected=!1,this._webSocket=null},send:function(e){try{null===this._webSocket?(this.logLifecycle&&n.info("WebSocket not connected, connecting..."),this.connect()):this._connected&&(this.logLifecycle&&n.info("Sending data"),this._webSocket.send(e))}catch(e){n.error("Error sending data: ",e)}},abort:function(){if(null!==this._webSocket)try{this.logLifecycle&&n.info("Aborting..."),this._webSocket.close(this.CLOSE_GOING_AWAY)}catch(e){this.logLifecycle&&n.info("Error aborting: ",e)}this.reset()},reset:function(){this.logLifecycle&&n.info("WebSocket closing connection"),null!==this._webSocket&&this._connected&&this._webSocket.close(this.CLOSE_NORMAL_CLOSURE,"Reset"),this._webSocket=null,this._connected=!1},setUrl:function(e){this._url=e},getUrl:function(){return this._url},isConnected:function(){return this._connected}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(204),i(209)],o=i.dj.d(n,(function(e,t,i){var n={RESERVED:0,SETUP:1,KEEPALIVE:2,CONNECT_STREAM:3,DISCONNECT_STREAM:4,PAYLOAD:5,CANCEL_PAYLOAD:6,ERROR:7,EXT:255},o={EMPTY:0,SETUP_ACK:128,SETUP_RESPOND:64,KEEPALIVE_RESPOND:128,CONNECT_STREAM_ACK:128,PAYLOAD_COMPLETE:128},r={INVALID_SETUP:1,UNSUPPORTED_SETUP:2,REJECTED_SETUP:3,CONNECTION_ERROR:257,APPLICATION_ERROR:513,REJECTED:514,CANCELED:515,INVALID:516,RESERVED:4294967295},a=new(e([],{DEFAULT_MAJOR_VERSION:0,DEFAULT_MINOR_VERSION:1,DEFAULT_KEEPALIVETIME:32,MAX_LIFETIME:65535,MAX_STREAM_ID:4294967295,HEADER_LENGTH:10,ERROR_CODE_LENGTH:4,SETUP_PARAMS_LENGTH:12,HEADER_LENGTH_START:0,HEADER_STREAM_ID_START:4,HEADER_TYPE_START:8,HEADER_FLAGS_START:9,_convertStringToArrayBuffer:function(e){for(var t=new ArrayBuffer(2*e.length),i=new Uint16Array(t),n=0,o=e.length;n<o;n++)i[n]=e.charCodeAt(n);return t},_convertArrayBufferToString:function(e){return String.fromCharCode.apply(null,new Uint16Array(e))},_copyArrayBuffer:function(e,t,i){new Uint8Array(t).set(new Uint8Array(e),i)},_deserializeHeaderLength:function(e){var t=e.byteLength,i=e.getUint32(this.HEADER_LENGTH_START);if(t!==i)throw new Error("Header length "+i+" does not match buffer length "+t);return i},_deserializeType:function(e){return e.getUint8(this.HEADER_TYPE_START)},_deserializeFlags:function(e){return e.getUint8(this.HEADER_FLAGS_START)},_deserializeStreamId:function(e){return e.getUint32(this.HEADER_STREAM_ID_START)},_deserializePayload:function(e,t,i){i.payload=e.slice(t)},_deserializeHeader:function(e,t){return t.header={length:this._deserializeHeaderLength(e),streamId:this._deserializeStreamId(e),type:this._deserializeType(e),flags:this._deserializeFlags(e)},this.HEADER_LENGTH},_deserializeErrorCode:function(e,t,i){return i.errorCode=e.getUint32(t),t+=this.ERROR_CODE_LENGTH},_deserializeSetupParams:function(e,t,i){i.setupParams={majorVersion:e.getUint32(t),minorVersion:e.getUint32(t+4),keepAliveTime:e.getUint16(t+8),maxLifeTime:e.getUint16(t+10)},t+=this.SETUP_PARAMS_LENGTH;var n=e.getUint8(t);return i.dataEncoding=e.getUint8(t,2*n),t+=1+n},deserialize:function(e){var t=new window.DataView(e),i={},o=this._deserializeHeader(t,i);switch(i.header.type){case n.SETUP:o=this._deserializeSetupParams(t,o,i),this._deserializePayload(e,o,i);break;case n.KEEPALIVE:case n.CONNECT_STREAM:case n.PAYLOAD:this._deserializePayload(e,o,i);break;case n.DISCONNECT_STREAM:case n.CANCEL_PAYLOAD:break;case n.ERROR:o=this._deserializeErrorCode(t,o,i),this._deserializePayload(e,o,i);break;default:throw new Error("Invalid frame type")}return i},_computeFrameLength:function(e){var t=this.HEADER_LENGTH;return e.header.type===n.SETUP?(t+=this.SETUP_PARAMS_LENGTH,t+=1+e.dataEncoding.length):e.header.type===n.ERROR&&(t+=this.ERROR_CODE_LENGTH),e.payload instanceof ArrayBuffer&&(t+=e.payload.byteLength),t},_serializeHeader:function(e,t){return t.setUint32(this.HEADER_LENGTH_START,e.header.length),t.setUint32(this.HEADER_STREAM_ID_START,e.header.streamId),t.setUint8(this.HEADER_TYPE_START,e.header.type),t.setUint8(this.HEADER_FLAGS_START,e.header.flags),this.HEADER_LENGTH},_serializePayload:function(e,t,i){this._copyArrayBuffer(e.payload,t,i)},_serializeSetupParams:function(e,t,i){return t.setUint32(i,e.setupParams.majorVersion),t.setUint32(i+4,e.setupParams.minorVersion),t.setUint16(i+8,e.setupParams.keepAliveTime),t.setUint16(i+10,e.setupParams.maxLifeTime),i+=this.SETUP_PARAMS_LENGTH,t.setUint8(i,e.dataEncoding.length),i+=1,this._copyArrayBuffer(this._convertStringToArrayBuffer(e.dataEncoding),t.buffer,i),i+=2*e.dataEncoding.length},_serializeErrorCode:function(e,t,i){return t.setUint32(i,e.errorCode),i+=this.ERROR_CODE_LENGTH},serialize:function(e){var t=new ArrayBuffer(e.header.length),i=new window.DataView(t),o=this._serializeHeader(e,i);return e.header.type===n.SETUP?o=this._serializeSetupParams(e,i,o):e.header.type===n.ERROR&&(o=this._serializeErrorCode(e,i,o)),e.payload instanceof ArrayBuffer&&this._serializePayload(e,t,o),t},getSetupFrame:function(e){var t={header:{type:n.SETUP,flags:e.flags||o.EMPTY,streamId:0},setupParams:{majorVersion:e.majorVersion||this.DEFAULT_MAJOR_VERSION,minorVersion:e.minorVersion||this.DEFAULT_MINOR_VERSION,keepAliveTime:e.keepAliveTime||this.DEFAULT_KEEPALIVETIME,maxLifeTime:e.maxLifeTime||this.MAX_LIFETIME},dataEncoding:e.dataEncoding||"",payload:e.data||""};return t.header.length=this._computeFrameLength(t),t},getKeepAliveFrame:function(e){var t={header:{type:n.KEEPALIVE,flags:e.respond?o.KEEPALIVE_RESPOND:o.EMPTY,streamId:0},payload:e.data||""};return t.header.length=this._computeFrameLength(t),t},getConnectStreamFrame:function(e){var t={header:{type:n.CONNECT_STREAM,flags:e.ack?o.CONNECT_STREAM_ACK:o.EMPTY,streamId:e.streamId},payload:e.data};return t.header.length=this._computeFrameLength(t),t},getDisconnectStreamFrame:function(e){var t={header:{type:n.DISCONNECT_STREAM,flags:o.EMPTY,streamId:e.streamId}};return t.header.length=this._computeFrameLength(t),t},getPayloadFrame:function(e){var t={header:{type:n.PAYLOAD,flags:e.complete?o.PAYLOAD_COMPLETE:o.EMPTY,streamId:e.streamId},payload:e.data};return t.header.length=this._computeFrameLength(t),t},getCancelPayloadFrame:function(e){var t={header:{type:n.CANCEL_PAYLOAD,flags:o.EMPTY,streamId:e.streamId}};return t.header.length=this._computeFrameLength(t),t},_getErrorFrame:function(e,t){var i={header:{type:n.ERROR,flags:o.EMPTY,streamId:e.streamId},errorCode:t,payload:e.data};return i.header.length=this._computeFrameLength(i),i},getInvalidSetupFrame:function(e){var t={streamId:0,data:this._convertStringToArrayBuffer(e)};return this._getErrorFrame(t,r.INVALID_SETUP)},getUnsupportedSetupFrame:function(e){var t={streamId:0,data:this._convertStringToArrayBuffer(e)};return this._getErrorFrame(t,r.UNSUPPORTED_SETUP)},getRejectedSetupFrame:function(e){var t={streamId:0,data:this._convertStringToArrayBuffer(e)};return this._getErrorFrame(t,r.REJECTED_SETUP)},getConnectionErrorFrame:function(e){return e.data=this._convertStringToArrayBuffer(e.msg),this._getErrorFrame(e,r.CONNECTION_ERROR)},getApplicationErrorFrame:function(e){return e.data=this._convertStringToArrayBuffer(e.msg),this._getErrorFrame(e,r.APPLICATION_ERROR)}}));return{impl:a,TYPES:n,FLAGS:o,ERROR_CODES:r,deserialize:a.deserialize.bind(a),serialize:a.serialize.bind(a),getSetupFrame:a.getSetupFrame.bind(a),getKeepAliveFrame:a.getKeepAliveFrame.bind(a),getConnectStreamFrame:a.getConnectStreamFrame.bind(a),getDisconnectStreamFrame:a.getDisconnectStreamFrame.bind(a),getPayloadFrame:a.getPayloadFrame.bind(a),getCancelPayloadFrame:a.getCancelPayloadFrame.bind(a),getInvalidSetupFrame:a.getInvalidSetupFrame.bind(a),getUnsupportedSetupFrame:a.getUnsupportedSetupFrame.bind(a),getRejectedSetupFrame:a.getRejectedSetupFrame.bind(a),getConnectionErrorFrame:a.getConnectionErrorFrame.bind(a),getApplicationErrorFrame:a.getApplicationErrorFrame.bind(a)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){this._Subcriptions={},this._DataBank={},this._channel=e},onDataReady:function(e,t){if(null===this.fWebSocket&&this._requestWebSocketConnection(),void 0!==this._DataBank[e]){var i=this._DataBank[e];delete this._DataBank[e],t(i,!1)}else this._Subcriptions[e]=t},forget:function(e){void 0!==this._DataBank[e]&&delete this._DataBank[e],void 0!==this._Subcriptions[e]&&delete this._Subcriptions[e]},processData:function(e,t){if(void 0!==this._Subcriptions[e]){var i=this._Subcriptions[e];delete this._Subcriptions[e],i(t,!0)}else this._DataBank[e]=t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e([],{_DEBUG:!1,constructor:function(){},process:function(e){return(new t).resolve({})},clearCache:function(){},printlog:function(e){this._DEBUG&&console.log(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(365),i(1517),i(2206),i(6094),i(6095)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([o],{constructor:function(e,i,n){this._CachedRequestHandler=null,this._axesPeerID=e,this._releaseLimitsRefPromise=(new t).resolve(),this._releaseViewRefPromise=(new t).resolve(),this._layoutable=n,this._originalLimitsState="not_set",this._gview=i,this._dataAspectRatioMode="auto",i.onEvent("viewchanged",function(){this._setupStrategy()}.bind(this)),this._setupStrategy()},_setupStrategy:function(){var e=this._gview._viewMode;this._gview.ViewMode.scene===e?this._axesControlStrategy=new a(this._axesPeerID,this._gview):this._axesControlStrategy=new r(this._axesPeerID),this._axesControlStrategy.setRequestHandlerCallback(this._CachedRequestHandler)},setLinkedControl:function(e,t){this._axesControlStrategy.setLinkedControl(e,t)},isValidControl:function(){return!!this._axesControlStrategy.isValidAxesControlStrategy()},setRequestHandlerCallback:function(e){this.inherited(arguments),this._axesControlStrategy.setRequestHandlerCallback(e),this._CachedRequestHandler=e,this.refreshStrategy()},lockLimitsRef:function(){this._axesControlStrategy.lockLimitsRef()},releaseLimitsRef:function(){this._releaseLimitsRefPromise=this._axesControlStrategy.releaseLimitsRef()},setLimits:function(e,t,i,n,o,r){this._releaseLimitsRefPromise.then(function(){this._axesControlStrategy.setLimits(e,t,i,n,o,r)}.bind(this))},getCurrentLimits:function(e,i){var n=new t;return this._releaseLimitsRefPromise.then(function(){this._axesControlStrategy.getCurrentLimits().then((function(e){n.resolve(e)}))}.bind(this)),n},lockViewRef:function(){this._axesControlStrategy.lockViewRef()},releaseViewRef:function(){this._releaseViewRefPromise=this._axesControlStrategy.releaseViewRef()},setView:function(e,t){this._releaseViewRefPromise.then(function(){this._axesControlStrategy.setView(e,t)}.bind(this))},getCurrentView:function(){var e=new t;return this._releaseViewRefPromise.then(function(){this._axesControlStrategy.getCurrentView().then((function(t){e.resolve(t)}))}.bind(this)),e},is2D:function(){var e=new t;return this._releaseLimitsRefPromise.then(function(){this._axesControlStrategy.is2D().then((function(t){e.resolve(t)}))}.bind(this)),e},getNDCToDSTransform:function(){var e=new t;return this._releaseLimitsRefPromise.then(function(){this._axesControlStrategy.getNDCToDSTransform().then((function(t){e.resolve(t)}))}.bind(this)),e},clearCache:function(){this.inherited(arguments),this.refreshStrategy()},refreshStrategy:function(){if(this._axesControlStrategy.clearCache(),!this._axesControlStrategy.canHandleMultiplePlotTargets()&&this._CachedRequestHandler){var e={name:"hasMultipleTargets",peerID:this._axesPeerID};this._CachedRequestHandler(e).then(function(e){e.data.multipleTargets&&(this._axesControlStrategy=new r(this._axesPeerID),this._axesControlStrategy.setRequestHandlerCallback(this._CachedRequestHandler))}.bind(this))}},isOriginalLimitsSet:function(){return"set"===this._originalLimitsState},setWaitingForNextLimitUpdate:function(){this._originalLimitsState="waiting_for_PVpacket"},getPixelToDSTransform:function(){var e=this.getCanvasViewport(),n=e.width/2,o=-1*e.height/2,r=e.x+e.width/2,a=e.y+e.height/2,s=i.multiply(i.createScale(n,o,1),i.createTranslation(r,a,0));s.invert();var l=new t;return this.getNDCToDSTransform().then((function(e){var t=i.multiply(s,e);l.resolve(t)})),l},getCanvasViewport:function(){var e=this._gview.Container,t=e.getBoundingClientRect();return{x:t.left,y:t.top,width:e.clientWidth,height:e.clientHeight}},setBoundingRectangle:function(e){4!==e.length&&this._DEBUG?console.log("Error while setting the bounding rectangle."):this._plotbox?this._plotbox.setDimensions(e[0],e[1],e[2],e[3]):this._plotbox=new n(e[0],e[1],e[2],e[3])},getBoundingRectangle:function(){return this._plotbox},setGraphicsBounds:function(e){6===e.length?(this._bounds=e,"waiting_for_PVpacket"===this._originalLimitsState&&(this._originalLimitsState="set")):this._DEBUG&&console.log("Error while setting the graphicsBounds.")},getGraphicsBounds:function(){return this._bounds},setContainsImage:function(e){this._containsImage=e},getContainsImage:function(){return this._containsImage},setDataAspectRatioMode:function(e){this._dataAspectRatioMode=e},getDataAspectRatioMode:function(){return this._dataAspectRatioMode},_setPVPair:function(e,t){switch(e.toLowerCase()){case"plotbox":this.setBoundingRectangle(t);break;case"graphicsbounds":this.setGraphicsBounds(t);break;case"containsimage":this.setContainsImage(t);break;case"dataaspectratiomode":this.setDataAspectRatioMode(t);break;default:this._DEBUG&&console.log("Property Value pair not supported.")}},processMessage:function(e){if(e.property)if(Array.isArray(e.property))for(var t=0;t<e.property.length;t++)this._setPVPair(e.property[t],e.value[t]);else this._setPVPair(e.property,e.value)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(734)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){this.scrollableToggled=!1},fillCell:function(e){return!1===this.scrollableToggled&&!0===this.getGridWidget().scrollable&&(this.scrollableToggled=!0),this._triggerRedraw(e),{innerSize:e,outerSize:e}},_getPositionOfCell:function(e){var t=this.getGridWidget(),i=this.getGridController(),n=this.getLayoutConstraints(),o=t.getRowTopPositionInPixelsWrtGrid(n.Row),r=t.getColumnLeftPositionInPixelsWrtGrid(n.Column),a=e[1],s=r,l=0;l=!1===this.scrollableToggled?t.height-(o+a):i.getHeight()-(o+a);var c=t.height-(o+a);return{positionForServer:[s,l,e[0],e[1]],positionInGrid:[s,c,e[0],e[1]]}},_getReferenceFrameDimensions:function(){var e=this.getGridWidget();return[e.width,e.height]},_triggerRedraw:function(e){var t=this._getPositionOfCell(e),i=this._getReferenceFrameDimensions();this.cacheAndSetActivePositionInPixels(t,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(365)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e){this._requestHandler=null,this._objectPeerID=e},isValidAxesControlStrategy:function(){return!0},lockLimitsRef:function(){this.clearCache()},lockViewRef:function(){this.clearCache()},releaseLimitsRef:function(){this.clearCache();var e={name:"recaptureLimitsRef",peerID:this._objectPeerID},i=new t;return this._requestHandler(e).then(function(){this.clearCache(),i.resolve()}.bind(this)),i},releaseViewRef:function(){this.clearCache();var e=new t;return e.resolve(),e},_computeDSMat:function(e){var t=e[0],n=e[1],o=e[2],r=e[3],a=e[4],s=e[5],l=i.createScale(1/(n-t),1/(r-o),1/(s-a)),c=i.createTranslation(-t/(n-t),-o/(r-o),-a/(s-a));return i.multiply(l,c)},setLinkedControl:function(){},setLimits:function(e,t,n,o,r,a){var s=this._cachedDataSpaceMatrix;if(this._cachedLimits=[e,t,n,o,r,a],this._cachedDataSpaceMatrix=this._computeDSMat(this._cachedLimits),s&&this._cachedNDC2DS){var l=new i;l.setElements(this._cachedDataSpaceMatrix.getElements()),l.invert();var c=i.multiply(this._cachedNDC2DS,i.multiply(s,l));this._cachedNDC2DS=c}this._immediateSendLimitsToServer(this._cachedLimits)},_immediateSendLimitsToServer:function(e){var t={name:"setlimits",limits:e,peerID:this._objectPeerID};this._requestHandler(t)},getCurrentLimits:function(e,i){if(void 0!==this._cachedLimits)return(new t).resolve(this._cachedLimits);var n={name:"getlimits",peerID:this._objectPeerID},o=new t;return this._requestHandler(n).then(function(e){this._cachedLimits=e.data.Limits,this._cachedDataSpaceMatrix=this._computeDSMat(this._cachedLimits),o.resolve(e.data.Limits)}.bind(this)),o},setView:function(e,t){var i=[e,t],n={az:e,el:t};this._cachedView=n,this._immediateSendViewToServer(i)},_immediateSendViewToServer:function(e){var t={name:"setview",view:e,peerID:this._objectPeerID};this._requestHandler(t)},getCurrentView:function(){if(void 0!==this._cachedView)return(new t).resolve(this._cachedView);var e={name:"getview",peerID:this._objectPeerID},i=new t;return this._requestHandler(e).then(function(e){var t={az:e.data.View[0],el:e.data.View[1]};this._cachedView=t,i.resolve(t)}.bind(this)),i},is2D:function(){if(void 0!==this._is2DCache)return(new t).resolve(this._is2DCache);var e={name:"is2D",peerID:this._objectPeerID},i=new t;return this._requestHandler(e).then(function(e){this._is2DCache=e.data.is2D,i.resolve(this._is2DCache)}.bind(this)),i},getNDCToDSTransform:function(){if(this._cachedNDC2DS)return(new t).resolve(this._cachedNDC2DS);var e={name:"getNDCToDSTransform",peerID:this._objectPeerID},n=new t;return this._requestHandler(e).then(function(e){var t=new i;t.setElements(e.data.ndc2dstransform),this._cachedNDC2DS=new i,this._cachedNDC2DS.setElements(e.data.ndc2dstransform),n.resolve(t)}.bind(this)),n},setRequestHandlerCallback:function(e){this._requestHandler=e},clearCache:function(){delete this._is2DCache,delete this._cachedNDC2DS,delete this._cachedLimits,delete this._cachedDataSpaceMatrix,delete this._cachedView},canHandleMultiplePlotTargets:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(2209)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e,t){this._gview=t,this._requestHandler=null,this._objectPeerID=e,this._limitsLocked=!1,this._viewLocked=!1,this._linkedAxes=[],this._linkedDimensions="off"},isValidAxesControlStrategy:function(){var e=this._gview.getAxesControl(this._objectPeerID);return null!=e&&0!==Object.keys(e).length},lockLimitsRef:function(){this.internalLockLimits(!0)},internalLockLimits:function(e){this._limitsLocked=!0,"off"!==this._linkedDimensions&&e&&this._linkedAxes.forEach((function(e){e._axesControlStrategy.internalLockLimits(!1)}))},lockViewRef:function(){this._viewLocked=!0},releaseLimitsRef:function(){return this.internalReleaseLimitsRef()},internalReleaseLimitsRef(e){this._limitsLocked=!1;var i=new t;this._lastLimits?this._immediateSendLimitsToServer(this._lastLimits).then((function(){i.resolve()})):i.resolve();return"off"!==this._linkedDimensions&&e&&this._linkedAxes.forEach((function(e){e._axesControlStrategy.internalReleaseLimitsRef(!1)})),i},releaseViewRef:function(){this._viewLocked=!1;var e=new t;this._lastView?this._immediateSendViewToServer(this._lastView).then((function(){e.resolve()})):e.resolve();return e},setLinkedControl:function(e,t){this._linkedAxes=e.map(e=>e),this._linkedDimensions=t},setLimits:function(e,t,i,n,o,r){this._setLimitsInternal(e,t,i,n,o,r,!0)},_setLimitsInternal:function(e,t,i,n,o,r,a){this._gview.getAxesControl(this._objectPeerID).setLimits(e,t,i,n,o,r),this._gview.draw(),this._lastLimits=[e,t,i,n,o,r],!this._limitsLocked&&a&&this._delayedSendCachedLimits(),"off"!==this._linkedDimensions&&a&&this._linkedAxes.forEach((function(a){if(a._axesControlStrategy._lastLimits)a._axesControlStrategy.setLinkedControlDimensions(e,t,i,n,o,r,a._axesControlStrategy._lastLimits);else{a.getCurrentLimits().then((function(s){a._axesControlStrategy.setLinkedControlDimensions(e,t,i,n,o,r,s)}))}}))},setLinkedControlDimensions:function(e,t,i,n,o,r,a){let s=a;a&&(this._linkedDimensions.includes("x")&&(s[0]=e,s[1]=t),this._linkedDimensions.includes("y")&&(s[2]=i,s[3]=n),this._linkedDimensions.includes("z")&&(s[4]=o,s[5]=r),this._setLimitsInternal(s[0],s[1],s[2],s[3],s[4],s[5],!1))},setView:function(e,t){var i=this._gview.getCameraIDFromCameraParent(this._objectPeerID);this._gview.getCameraControl(i).setView(e,t),this._gview.draw(),this._lastView=[e,t],this._viewLocked||this._delayedSendCachedView()},_delayedSendCachedLimits:function(){i.setTimeoutCallback(this._gview,this.releaseLimitsRef.bind(this))},_delayedSendCachedView:function(){i.setTimeoutCallback(this._gview,this.releaseViewRef.bind(this))},_immediateSendLimitsToServer:function(e){var t={name:"setlimits",limits:e,peerID:this._objectPeerID};return this._requestHandler(t)},_immediateSendViewToServer:function(e){var t={name:"setview",view:e,peerID:this._objectPeerID};return this._requestHandler(t)},getCurrentLimits:function(e,i){var n=this._gview.getAxesControl(this._objectPeerID);return(new t).resolve(n.getCurrentLimits())},getCurrentView:function(){var e=this._gview.getCameraIDFromCameraParent(this._objectPeerID),i=this._gview.getCameraControl(e);return(new t).resolve(i.getView())},is2D:function(){var e=this._gview.getAxesControl(this._objectPeerID);return(new t).resolve(e.is2D())},getNDCToDSTransform:function(){var e=this._gview.getAxesControl(this._objectPeerID);return(new t).resolve(e.getNDCToDSTransform())},setRequestHandlerCallback:function(e){this._requestHandler=e},clearCache:function(){},canHandleMultiplePlotTargets:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(735),i(1166),i(325),i(329),i(477)],o=i.dj.d(n,(function(e,t,n,o,r,a,s){return e([n],{constructor:function(e,t){this._gview=t,this._objectPeerID=e,this._textWidget=null},isTextControl:function(){return!0},postCreate:function(){this._checkIfTextEditingOn()},setString:function(e){this._sendStringToServer(e)},_sendStringToServer:function(e){var t={name:"setString",data:e,peerID:this._objectPeerID};this._requestHandler(t)},setVisibility:function(e){"on"===e?this.setVisibilityOn():this.setVisibilityOff()},setVisibilityOff:function(){var e={name:"setVisibilityOff",peerID:this._objectPeerID};this._requestHandler(e)},setVisibilityOn:function(){var e={name:"setVisibilityOn",peerID:this._objectPeerID};this._requestHandler(e)},getCurrentString:function(){var e={name:"getStringInfo",peerID:this._objectPeerID},i=new t;return this._requestHandler(e).then((function(e){i.resolve(e.data)})),i},getCurrentPosition:function(){var e={name:"getPosition",peerID:this._objectPeerID},i=new t;return this._requestHandler(e).then((function(e){i.resolve(e.data)})),i},getCurrentEditingValue:function(){var e={name:"getEditingValue",peerID:this._objectPeerID},i=new t;return this._requestHandler(e).then((function(e){i.resolve(e.data)})),i},_checkIfTextEditingOn:function(){this.getCurrentEditingValue().then(function(e){"on"===e.EditingValue&&this.executeTextEditing()}.bind(this))},cleanUp:function(){if(void 0!==this._textWidget){if(null===this._textWidget)return;try{this._textWidget.remove(),this._textWidget=null}catch(e){}}void 0!==this._visible&&this.setVisibility(this._visible)},executeTextEditing:function(){null===this._textWidget&&Promise.resolve().then(function(){var e=[i(413)];Promise.all(i.dj.w(e)).then(function(e){return function(e){var t=new e({value:""}),i=this._gview.domNode,n=document.createElement("div");this._textWidget=n,new s(n).stopPropagation(),this.getCurrentPosition().then(function(e){var s=e.Position,l=e.String,c=e.HorizontalAlignment,d=e.VerticalAlignment,u=s[0],h=s[1],p=e.FontName,f=e.FontWeight,g=e.FontSize,m=e.FontAngle;this._visible=e.Visibility,t.inputNode.style.overflow="hidden",n.style.position="absolute",n.style.overflow="hidden";var _={name:p,weight:f,size:g,angle:m},v=0,b=0;"left"===c?v=r.HorizontalAlignment.left:"center"===c?v=r.HorizontalAlignment.center:"right"===c?v=r.HorizontalAlignment.right:console.log("Invalid Horizontal alignment"),"bottom"===d?b=r.VerticalAlignment.bottom:"middle"===d?b=r.VerticalAlignment.middle:"top"===d?b=r.VerticalAlignment.top:console.log("Invalid Vertical Alignment");var y=[];Array.isArray(l)?(l.forEach((function(e){y.push(e+"WW")})),l=l.join("\n")):y.push(l+"WW");var C=o.calculateTextExtentsInPixels(_,"none",y,v,b),T=C.xmax-C.xmin,E=C.ymax-C.ymin;"middle"===d?h-=E/2:"top"===d&&(h-=E),"center"===c?u-=T/2:"right"===c&&(u-=T),u-=2,h-=10,u=Math.max(u,1),n.style.left=u+"px",n.style.bottom=h+"px",n.style.zIndex=1,t.width=T+4,t.height=E+4,t.inputNode.style.paddingLeft="0px",t.inputNode.style.paddingRight="0px",t.inputNode.style.paddingTop="0px",t.inputNode.style.paddingBottom="0px",t.inputNode.style.textAlign=c,t._updateLayout();var S=a.FindDPI()/72;t.inputNode.style.fontFamily=p,t.inputNode.style.fontSize=g*S+"px",t.inputNode.style.fontWeight=f,t.inputNode.style.fontStyle=m,t.setValueInDom(l),i.prepend(n),t.placeAt(n,"first"),t.inputNode.focus(),this.minWidth=t.width,this.minHeight=t.height,this.initFont=_,this.initHalign=v,this.initValign=b}.bind(this)),t.startup(),window.focus(),t.inputNode.focus(),t.on("typing",function(e){var i=e.mwEventData.currentContent;(i=i.split("\n")).forEach((function(e,t){i[t]=e+"WW"}));var n=o.calculateTextExtentsInPixels(this.initFont,"none",i,this.initHalign,this.initValign),r=n.xmax-n.xmin+4,a=n.ymax-n.ymin+4;r>=this.minWidth&&a>=this.minHeight&&r<=400&&a<=400&&(t.width=r,t.height=a,t._updateLayout())}.bind(this)),t.inputNode.addEventListener("blur",function(e){this.setString(e.srcElement.value),this.setVisibility(this._visible),n.remove(),this._textWidget=null}.bind(this)),t.inputNode.addEventListener("keydown",(function(e){"Enter"!==e.key&&13!==e.keyCode||!1!==e.shiftKey||!1!==e.ctrlKey||this.blur()}))}.bind(this).apply(null,i.dj.u(e))}.bind(this))}.bind(this)).catch(i.oe)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(735),i(212),i(244),i(458),i(457),i(375),i(365),i(1167),i(6098),i(6099)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([t],{constructor:function(e,t){this.gview=t,this.MarkerOwnerCookie=e,this._requestHandler=null,this._eventListener=t.onEvent("viewchanged",function(){this._setupControlStrategy()}.bind(this)),this._setupControlStrategy()},_setupControlStrategy:function(){this.gview.getViewMode()===this.gview.ViewMode.scene?this._dataTipControlStrategy=new d(this.MarkerOwnerCookie,this.gview):this._dataTipControlStrategy=new c(this.MarkerOwnerCookie),this._dataTipControlStrategy.setRequestHandlerCallback(this._requestHandler)},setRequestHandlerCallback:function(e){this.inherited(arguments),this._dataTipControlStrategy.setRequestHandlerCallback(this._requestHandler),this._requestHandler=e},hideDataTip:function(){this._dataTipControlStrategy.hideDataTip()},renderDataTip:function(e,t,i){return this._dataTipControlStrategy.renderDataTip(e,t,i)},cleanUp:function(){this._eventListener.remove(),this._dataTipControlStrategy.cleanUp(),delete this._dataTipControlStrategy}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){this._requestHandler=null,this.MarkerOwnerCookie=e},isValidControlStrategy:function(){return!0},setRequestHandlerCallback:function(e){this._requestHandler=e},hideDataTip:function(){var e={name:"hideDataTip",peerID:this.MarkerOwnerCookie};this._requestHandler(e)},renderDataTip:function(e,i,n){var o={name:"renderDataTip",peerID:this.MarkerOwnerCookie,X:e,Y:i,limits:n},r=new t;return this._requestHandler(o).then((function(e){r.resolve(e.data.isLocationUpdated)})),r},cleanUp:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(244),i(735),i(458),i(329),i(457),i(375),i(365)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([n],{constructor:function(e,t){this.gview=t,this.MarkerOwnerCookie=e,this.SceneTreeController=this.gview.getSceneView().getSceneTreeController()},isValidControlStrategy:function(){return this.MarkerOwnerCookie.length>0},setRequestHandlerCallback:function(e){this._requestHandler=e},_isPrimitiveDataAnnotatable:function(e){return!(!e||!e.length>0)&&this.SceneTreeController.isPropertyTrue(e,"isDataAnnotatable")},_setVisibility:function(e){this.SceneTreeController.setVisibility(this.MarkerOwnerCookie,e)},_getNearestPoint:function(e,t,i,n,o){var s=e.length/3;if(!(s>3)){for(var c=new Array(s),d=l.createInverse(t),u=0;u<e.length;u+=3){var h=r.convertPointToScreenSpace2(new a(e[u],e[u+1],e[u+2]),t,n.w,n.h);c[u]=h[0],c[u+1]=h[1],c[u+2]=h[2]}var p=o[1]-o[0],f=o[3]-o[2],g=o[5]-o[4],m=Math.min.apply(null,[p,f,g]),_=m/p,v=m/f,b=m/g,y=r.getNearestPoint({X:i.X,Y:n.h-i.Y,Z:0},c,_,v,b);return r.convertScreenSpaceToWorldPoint([y.X,y.Y,y.Z],d,n.w,n.h)}console.log("This method is intended for not more than 3 points")},_getNearestGeometryPoints:function(e,t,i,n,o){var s=[n.X,o.h-n.Y,0],l=[n.X,o.h-n.Y,1],c=r.convertScreenSpaceToWorldPoint(s,i,o.w,o.h),d=r.convertScreenSpaceToWorldPoint(l,i,o.w,o.h),u=new a(c[0],c[1],c[2]),h=new a(d[0],d[1],d[2]);return this.SceneTreeController.getNearestGeometryPoints(e,t,u,h)},_updateLocation:function(e,t,i,n,o){var s=new a(t.X,t.Y,t.Z),c={X:i,Y:n},d={w:this.SceneTreeController.sceneTree._canvas.width,h:this.SceneTreeController.sceneTree._canvas.height},u=this.SceneTreeController.getMVP(e),h=l.createInverse(u),p=this.SceneTreeController.transformDataSpacePtToModelSpace(e,s),f=this._getNearestGeometryPoints(e,p,h,c,d);if(!f)return!1;var g=this._getNearestPoint(f,u,c,d,t.DSRange),m=this.SceneTreeController.transformModelPtToDataSpace(e,new a(g[0],g[1],g[2]));if(r.isPointWithinLimits(m,o)){var _=this.SceneTreeController.transformPoint(m,e,this.MarkerOwnerCookie),v=l.createTranslation(_.getX(),_.getY(),_.getZ());return this.SceneTreeController.setTransform(this.MarkerOwnerCookie,v),!0}return!1},_updateView:function(){this.gview.draw()},hideDataTip:function(){this._setVisibility(!1),this._updateView()},renderDataTip:function(e,i,n){var o,r=new t;return this.gview.getObjectPicker().requestHitInfo(e,i).then(function(t){this._isPrimitiveDataAnnotatable(t.ownerCookie)&&(o=this._updateLocation(t.ownerCookie,t.intersectionPoint,e,i,n)),o?this._setVisibility(!0):this._setVisibility(!1),this._updateView(),r.resolve(o)}.bind(this)),r},cleanUp:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(735),i(6101),i(6102)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{constructor:function(e,t){this.gview=t,this.AxesToolbarID=e,this._requestHandler=null,this._eventListener=t.onEvent("viewchanged",function(){this._setupControlStrategy()}.bind(this)),this._setupControlStrategy()},isValidControl:function(){return this._axesToolbarStrategy.isValid()},setDefaultState:function(){this._axesToolbarStrategy.setDefaultState()},_setupControlStrategy:function(){this.gview.getViewMode()===this.gview.ViewMode.scene?this._axesToolbarStrategy=new n(this.AxesToolbarID,this.gview):this._axesToolbarStrategy=new i(this.AxesToolbarID,this.gview),this._axesToolbarStrategy.setRequestHandlerCallback(this._requestHandler)},setRequestHandlerCallback:function(e){this.inherited(arguments),this._axesToolbarStrategy.setRequestHandlerCallback(this._requestHandler),this._requestHandler=e},setAlphaMultiplier:function(e){this._axesToolbarStrategy.setAlphaMultiplier(e)},cleanUp:function(){this._eventListener.remove(),this.setAlphaMultiplier(0),this._axesToolbarStrategy.cleanUp(),delete this._axesToolbarStrategy}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e,t){this._requestHandler=null,this.gview=t,this.AxesToolbarID=e,this._AlphaMultiplier=null},isValid:function(){return this.AxesToolbarID.length>0},setDefaultState:function(){this._AlphaMultiplier=null},setRequestHandlerCallback:function(e){this._requestHandler=e},setAlphaMultiplier:function(e){if(this._AlphaMultiplier!==e){if(e<0||e>1)throw new Error("Error while setting the opacity of the axes toolbar");var t={name:"setAlphaMultiplier",value:e,peerID:this.AxesToolbarID};this._AlphaMultiplier=e,null!==this._requestHandler&&void 0!==this._requestHandler&&this._requestHandler(t)}},cleanUp:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(735)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e,t){this.gview=t,this.AxesToolbarID=e,this.SceneTreeController=this.gview.getSceneView().getSceneTreeController(),this._AlphaMultiplier=null},isValid:function(){return this.AxesToolbarID.length>0},setDefaultState:function(){this._AlphaMultiplier=null},setRequestHandlerCallback:function(e){this._requestHandler=e},_updateView:function(){this.gview.draw()},setAlphaMultiplier:function(e){if(null===this._AlphaMultiplier||this._AlphaMultiplier!==e){if(e<0||e>1)throw new Error("Error while setting the opacity of the axes toolbar");var t=this.SceneTreeController.getAPI(this.AxesToolbarID);t?(t.setAlphaMultiplier(e),this._AlphaMultiplier=e,this._updateView()):this.printlog("Graphics API to setAlphaMultiplier not found")}},cleanUp:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(244),i(554)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{constructor:function(){this._children=[],this._defineEvent("addChild"),this._defineEvent("removeChild"),this._defineEvent("childReadiness")},getLayoutableChildren:function(){return this._children},addChild:function(e){this.emitEvent("childReadiness",{peerID:e.getId(),state:!1});var t=e.getAllDeferred();i(t).then(function(t){void 0!==t[0]&&void 0!==t[1]&&(this._children.push(e),this.emitEvent("addChild",e),this.emitEvent("childReadiness",{peerID:e.getId(),state:!0}))}.bind(this))},removeChild:function(e){var t=this._children.indexOf(e);-1!==t&&this._children.splice(t,1),this.emitEvent("removeChild",e)},setChildAddedCallback:function(e){this.onEvent("addChild",e)},setChildRemovedCallback:function(e){this.onEvent("removeChild",e)},setChildReadinessCallback:function(e){this.onEvent("childReadiness",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(2205),i(6105),i(6106),i(6107),i(6109),i(6110),i(6111),i(6113),i(1529),i(6114),i(6115),i(6116),i(6117),i(6119),i(329),i(6120),i(6121),i(6122),i(6123),i(2209),i(2210)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){return e([],{_LastMouseMoveResult:null,_CanvasExited:null,_MouseCursor:"initial",_DEBUG:!1,constructor:function(e){this._interactions={},this._objInteractionsMap={},this._rectInteractionsMap={},this._gview=e,this._lastPickedRectangles=[],this._maps=[this._objInteractionsMap,this._rectInteractionsMap],this._eventCoalescer=new T(this,"mousemove")},setup:function(){this._removeEventHandlers(),this._createOrUpdateActionParser(),this._container=this._gview.Container,this._createEventHandlers(),this._WarmupHandler=this._actionParser.onEvent("warmup",this._handleWarmup.bind(this))},_updateInteractionsMap:function(e,t,i){var n=this._objInteractionsMap;1===i&&(n=this._rectInteractionsMap),void 0!==n[e]?n[e].push(t):n[e]=[t]},_removeInteraction:function(e,t){this._maps.forEach(function(i){if(void 0!==i[e]){var n=i[e].indexOf(t);n>-1&&(i[e].splice(n,1),this._interactions[t].disable(),delete this._interactions[t])}}.bind(this))},_removeObjectInteractions:function(e){this._maps.forEach(function(t){if(void 0!==t[e]){for(var i=t[e],n=0;n<i.length;n++){var o=i[n];this._interactions[o].disable(),delete this._interactions[o]}delete t[e]}}.bind(this))},handleMessage:function(e){if(void 0!==e.cmd){let t,i;switch(e.cmd){case"registration":let n=e.type;i=e.interactionID,t=e.peerID;let o=e.interactionData,r=e.pickStrategy,a=this.createInteraction(n,i,t,o);this._interactions[i]=a,this._updateInteractionsMap(t,i,r);break;case"unregister":t=e.peerID,i=e.interactionID,this._removeInteraction(t,i);break;case"removeinteraction":t=e.peerID,this._removeObjectInteractions(t),t===this._LastMouseMoveResult&&delete this._LastMouseMoveResult;break;case"process":this._interactions[e.interactionID].process(e.data.cmdName,e.data.eventName)}}},createInteraction:function(e,t,i,f){var g=null,m=this._gview._controlManager.findControl(i);switch(e){case"zoom":g=new n(t,m,this._actionParser,f);break;case"pinchpanzoom":g=new s(t,m,this._actionParser,f);break;case"stepzoom":g=new a(t,m,this._actionParser,f);break;case"regionzoom":g=new o(t,m,this._actionParser,f);break;case"regionzoomaffordance":g=new r(t,m,this._actionParser,f,this._container);break;case"pan":g=new l(t,m,this._actionParser,f);break;case"rotate":g=new c(t,m,this._actionParser,f);break;case"enterexit":g=new d(t,m,this._actionParser,f);break;case"AxesToolbarEnterExit":g=new b(t,m,this._actionParser,f);break;case"AxesToolbarButtonEnterExit":g=new y(t,m,this._actionParser,f);break;case"rectenterexit":g=new u(t,m,this._actionParser,f);break;case"textedit":g=new h(t,m,this._actionParser,f);break;case"hover":g=new _(t,m,this._actionParser,f);break;case"disabledatatips":g=new v(t,m,this._actionParser,f);break;default:g=new p(t,m,this._actionParser,f)}return g._DEBUG=this._DEBUG,m._DEBUG=this._DEBUG,g},setCursor:function(e,t){var i=g.createCursorURL(e,t);this._gview.domNode.style.setProperty("--axesCursor","unset"),this._gview.domNode.style.setProperty("--axesCursor",i),"initial"===i?this._gview.domNode.classList.remove("honorGraphicsViewInteractionCursor"):this._gview.domNode.classList.add("honorGraphicsViewInteractionCursor")},_removeEventHandlers:function(){void 0!==this._MouseMoveHandler&&this._MouseMoveHandler.remove(),void 0!==this._WarmupHandler&&this._WarmupHandler.remove(),void 0!==this._DragStartHandler&&this._DragStartHandler.remove(),void 0!==this._DragEndHandler&&this._DragEndHandler.remove(),void 0!==this._MouseLeaveHandler&&this._MouseLeaveHandler.remove()},_createEventHandlers:function(){var e=this._gview.domNode;this._MouseMoveHandler=t.pausable(e,"mousemove",this._preHandleWarmUp.bind(this)),this._WarmupHandler=this._actionParser.onEvent("warmup",this._handleWarmup.bind(this)),this._DragStartHandler=this._actionParser.onEvent("dragstart",this._handleDragStart.bind(this)),this._DragEndHandler=this._actionParser.onEvent("dragend",this._handleDragEnd.bind(this)),this._MouseLeaveHandler=this._actionParser.onEvent("mouseleave",this._handleMouseLeave.bind(this))},_preHandleWarmUp:function(e){var t=[];t.srcEvent=e,this._handleWarmup(t)},_createOrUpdateActionParser:function(){var e={domNode:this._gview.domNode};void 0!==this._actionParser?this._actionParser.updateDomNode(e):this._actionParser=new f(e)},_handleWarmup:function(e){this._coalesceMouseMove(e)},_handleDragStart:function(e){this._MouseMoveHandler.pause()},_handleDragEnd:function(e){this._MouseMoveHandler.resume()},_handleMouseLeave:function(e){this._CanvasExited=!0},dispatchEvent:function(e){this._handleMouseMove(e)},_coalesceMouseMove:function(e){this._eventCoalescer.coalesceEvent(e,e.srcEvent.type)},_handleMouseMove:function(e){if(e.srcEvent.buttons>0)this._eventCoalescer.flushEvent(e.srcEvent.type);else{var t=m.getEventXYCoordinates(e.srcEvent),i=e.srcEvent.type;if(Object.keys(this._rectInteractionsMap).length>0){var n=this._gview.getRectanglePicker().containsPoint(t.X,t.YFlip,C.getBoundingRectangles(this._gview));this._updateRectangleBasedInteractions(n)}this._gview.getObjectPicker().requestHierarchy(t.X,t.Y,e.srcEvent).then(function(t){this._gview.hasOwnProperty("uitestPromise")&&this._gview.uitestPromise.resolve(),this._setHitObjectIds(t),this._updateObjectBasedInteractions(t,i),this.setCursor(this._MouseCursor,[7,7]),this._eventCoalescer.flushEvent(e.srcEvent.type)}.bind(this))}},_setHitObjectIds:function(e){this._actionParser&&this._actionParser.setHitObjectIds(e)},_updateRectangleBasedInteractions:function(e){if(e&&0===Object.keys(e).length)this._lastPickedRectangles.length>0&&(this._lastPickedRectangles.forEach(function(e){this._disableInteractionsOnObject(e,this._rectInteractionsMap)}.bind(this)),this._lastPickedRectangles=[]);else for(var t in e){var i=this._rectInteractionsMap[t];i&&(-1===this._lastPickedRectangles.indexOf(t)&&this._lastPickedRectangles.push(t),this._enableInteractions(i))}},_updateObjectBasedInteractions:function(e,t){if(this._CanvasExited&&this._LastMouseMoveResult&&(this._disableInteractionsOnObject(this._LastMouseMoveResult,this._objInteractionsMap),this._LastMouseMoveResult=null,this._CanvasExited=!1),e.length>0)for(var i=0;i<e.length;i++){var n=e[i];if(this._LastMouseMoveResult===n)break;var o=this._objInteractionsMap[n];if(null!=o){null!==this._LastMouseMoveResult&&this._disableInteractionsOnObject(this._LastMouseMoveResult,this._objInteractionsMap),this._enableInteractions(o),this._LastMouseMoveResult=n;break}}else null===this._LastMouseMoveResult||"mousemove"!==t&&"touchstart"!==t||(this._disableInteractionsOnObject(this._LastMouseMoveResult,this._objInteractionsMap),this._LastMouseMoveResult=null,this._MouseCursor="initial")},_disableInteractionsOnObject:function(e,t){if(e){var i=t[e];null!=i&&this._disableInteractions(i)}},_disableInteractions:function(e){this.printlog("Disable interactions: ");for(var t=0;t<e.length;t++){this._actionParser._preventDefault=!1;var i=e[t],n=this._interactions[i];this.printlog("\t"+String(n._control)+" disable interaction "+n._actions),n.disable(),this._MouseCursor="initial"}},_enableInteractions:function(e){this.printlog("Enable interactions: ");for(var t=0;t<e.length;t++){this._actionParser._preventDefault=!0;var i=e[t],n=this._interactions[i];this.printlog("\t"+String(n._control)+" enable interaction "+n._actions),n.enable();var o=n.getMouseCursor();"none"!==o&&(this._MouseCursor=o)}},printlog:function(e){this._DEBUG&&console.log(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(244),i(505),i(839),i(1527),i(1528),i(375)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([i,n],{origlimitsPromise:null,_promiseNumber:0,zoomFactor:1.1,constructor:function(e,t,i,n){},execute:function(e){if(this._control.isValidControl()){var i=this.zoomFactor;-e.srcEvent.deltaY<0&&(i=1/i);var n=e.srcEvent.clientX,s=e.srcEvent.clientY,l=new a(n,s,0,1),c=this._control.getPixelToDSTransform();this.addPromisesToBeResolved(c);var d=this._control.is2D();this.addPromisesToBeResolved(d),this.currentLimitsPromise=this._control.getCurrentLimits(),this.addPromisesToBeResolved(this.currentLimitsPromise);var u=this._control.getGraphicsBounds(),h=this._promiseNumber;this._promiseNumber++,t([d,c,this.currentLimitsPromise]).then(function(e){var t,n=e[0],s=e[1],c=e[2];if(h+1!==this._promiseNumber)return;t=n?s.transform(l):new a((c[0]+c[1])/2,(c[2]+c[3])/2,(c[4]+c[5])/2,1);var d=o.fire(t,i,n,c),p=this.constrainLimitsToDimensions(c,d);this._control.isOriginalLimitsSet()||r.isWithinLimits(c,u)||(u=c,this._control.setWaitingForNextLimitUpdate());let f=o.fixAspectRatio(p,c,this._control._dataAspectRatioMode),g=r.boundLimits(c,f,u,n,"manual"===this._control._dataAspectRatioMode);this._control.setLimits(g[0],g[1],g[2],g[3],g[4],g[5])}.bind(this))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(244),i(212),i(505),i(839),i(1169),i(375),i(1527),i(1528)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([n,o,r],{_regionofinterest:null,_zoomfactor:1.2,constructor:function(e,t,n,o){this._zoomLimitsDeferred=(new i).resolve()},destroy:function(){this.disable()},start:function(e){var t={},i=e.properties.center.initial.x,n=e.properties.center.initial.y,o=new a(i,n,0,1);return t.p2dsPromise=this._control.getPixelToDSTransform(),t.orig_point_pixels=o,t.origlimitsPromise=this._control.getCurrentLimits(),t.is2DPromise=this._control.is2D(),t.graphicsBounds=this._control.getGraphicsBounds(),t},move:function(e){},stop:function(e,n){var o=this._zoomfactor;e.shiftKey&&(o=1/this._zoomfactor),this._control.lockLimitsRef();var r=e.properties.center.current.x,c=e.properties.center.current.y,d=new a(r,c,0,1),u=n.graphicsBounds;this._zoomLimitsDeferred=new i,t([n.is2DPromise,n.p2dsPromise,n.origlimitsPromise]).then(function(e){var t=e[0],i=e[1],r=e[2];if(t){var a=i.transform(n.orig_point_pixels),c=i.transform(d),h=n.orig_point_pixels,p=this.calculateZoomedLimits(o,r,h,d,a,c,this._dimensions).slice();p.push(r[4],r[5]);var f=this.constrainLimitsToDimensions(r,p);let e=s.fixAspectRatio(f,r,this._control._dataAspectRatioMode),g=l.boundLimits(r,e,u,t,"manual"===this._control._dataAspectRatioMode);this.setLimits(g),this._zoomLimitsDeferred.resolve()}}.bind(this))},calculateZoomedLimits:function(e,t,i,n,o,r,a){var l,c,d=Math.abs(i.getX()-n.getX())<15,u=Math.abs(i.getY()-n.getY())<15;return d&&u?(l=s.zoomAxisAroundPoint([t[0],t[1]],r.getX(),e,a),c=s.zoomAxisAroundPoint([t[2],t[3]],r.getY(),e,a)):(d?(o.setX(t[0]),r.setX(t[1])):u&&(o.setY(t[2]),r.setY(t[3])),l=i.getX()<=n.getX()?[o.getX(),r.getX()]:[r.getX(),o.getX()],c=i.getY()>=n.getY()?[o.getY(),r.getY()]:[r.getY(),o.getY()]),[l[0],l[1],c[0],c[1]]},setLimits:function(e){this._control.setLimits(e[0],e[1],e[2],e[3],e[4],e[5]),this._zoomLimitsDeferred.then(function(){this._control.releaseLimitsRef()}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(505),i(839),i(1169),i(6108),i(2033)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i,n],{_regionofinterest:null,_con:null,constructor:function(e,t,i,n,o){this._control=t,this._con=o,this._regionofinterest=new r(this._con),this._showConstrainedROI=n.ShowConstrainedROI},destroy:function(){this._regionofinterest.destroy()},start:function(e){var t=o.getCanvasPos(this._con);this._regionofinterest.useConstraint=this._showConstrainedROI,this._regionofinterest.setTopLeft(t.y,t.x);var i=e.properties.center.initial.x,n=e.properties.center.initial.y;this._regionofinterest.setAnchorPoint(i,n);var r={};return r.xpixel=i,r.ypixel=n,r},move:function(e,t){var i=e.properties.center.current.x,n=e.properties.center.current.y;this._dimensions.dimx&&!this._dimensions.dimy?n=t.ypixel:!this._dimensions.dimx&&this._dimensions.dimy&&(i=t.xpixel),this._regionofinterest.drawROI(i,n)},stop:function(e){this._regionofinterest.hide(),this._regionofinterest.resetAnchorPoint()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(365),i(375)],o=i.dj.d(n,(function(e,t,i){return{getCanvasPos:function(e){var t=0,i=0;if(e.offsetParent){do{t+=e.offsetLeft-e.scrollLeft,i+=e.offsetTop-e.scrollTop,e=e.offsetParent}while(e);return{x:t,y:i}}},convertPixelsToNDC:function(e,t){return[e[0]/(t.clientWidth/2)-1,1-e[1]/(t.clientHeight/2)]},convertNDCToData:function(e,t){var n=new i(e[0],e[1],0,1);return t.transform(n)},getCurrentPointPixels:function(e,t){var i=this.getCanvasPos(t);return[e.clientX-i.x,e.clientY-i.y]},getCurrentPointPixelsYDir:function(e,t){var i=this.getCurrentPointPixels(e,t);return i[1]=t.clientHeight-i[1],i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(244),i(505),i(839),i(1527),i(1528),i(375)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([i,n],{zoomFactor:1.5,origlimitsPromise:null,_promiseNumber:0,constructor:function(e,t,i,n){n.DirectionOut&&(this.zoomFactor=1/this.zoomFactor)},execute:function(e){var i=this._control.is2D(),n=this._control.getPixelToDSTransform();this.origlimitsPromise=this._control.getCurrentLimits();var s=this._control.getGraphicsBounds(),l=this._promiseNumber;this._promiseNumber++,t([i,n,this.origlimitsPromise]).then(function(t){var i=t[0],n=t[1],c=t[2];if(l+1!==this._promiseNumber)return;var d=e.properties.center.current.x,u=e.properties.center.current.y,h=new a(d,u,0,1),p=this.zoomFactor;e.srcEvent.shiftKey&&(p=1/this.zoomFactor);var f=n.transform(h),g=o.fire(f,p,i,c),m=this.constrainLimitsToDimensions(c,g);this._control.isOriginalLimitsSet()||r.isWithinLimits(c,s)||(s=c,this._control.setWaitingForNextLimitUpdate());let _=o.fixAspectRatio(m,c,this._control._dataAspectRatioMode),v=r.boundLimits(c,_,s,i,"manual"===this._control._dataAspectRatioMode);this._control.lockLimitsRef(),this._control.setLimits(v[0],v[1],v[2],v[3],v[4],v[5]),this._control.releaseLimitsRef()}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(244),i(212),i(505),i(839),i(375),i(365)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n,o],{_regionofinterest:null,_con:null,constructor:function(e,t,n,o){this._lastPanMoveDeferred=(new i).resolve()},start:function(e){this._control.lockLimitsRef();var t=this.getPixelPoint(e.pointers[0]),i=this.getPixelPoint(e.pointers[1]),n={};return n.orig_point_pixels1=t,n.orig_point_pixels2=i,n.p2dsPromise=this._control.getPixelToDSTransform(),n.origlimitsPromise=this._control.getCurrentLimits(),n.is2DPromise=this._control.is2D(),n},move:function(e,n){var o=this.getPixelPoint(e.pointers[0]),r=this.getPixelPoint(e.pointers[1]);n&&n.orig_point_pixels1&&n.orig_point_pixels2&&(this.addPromisesToBeResolved(n.is2DPromise),this.addPromisesToBeResolved(n.p2dsPromise),this.addPromisesToBeResolved(n.origlimitsPromise),this._lastPanMoveDeferred=new i,t([n.is2DPromise,n.p2dsPromise,n.origlimitsPromise]).then(function(e){var t=e[0],i=e[1],a=e[2],s=n.orig_point_pixels1,l=n.orig_point_pixels2,c=i.transform(s),d=i.transform(l),u=i.transform(o),h=i.transform(r),p=this.calculateScale(s,l,o,r),f=0,g=0;t&&(f=this.calculateTranslation(c.getX(),d.getX(),u.getX(),h.getX()),g=this.calculateTranslation(c.getY(),d.getY(),u.getY(),h.getY()));var m=this.calculateLimits(a,p,f,g,0);t?this._control.setLimits(m[0],m[1],m[2],m[3],a[4],a[5]):this._control.setLimits(m[0],m[1],m[2],m[3],m[4],m[5]),this._lastPanMoveDeferred.resolve()}.bind(this)))},stop:function(e,t){this._lastPanMoveDeferred.then(function(){this._control.releaseLimitsRef()}.bind(this))},execute:function(e){switch(e.name){case"pinchstart":this._startdata=this.start(e);break;case"pinchprogress":this.move(e,this._startdata);break;case"pinchend":this.stop(e,this._startdata),this._startdata=[]}},getPixelPoint:function(e){var t=e.clientX,i=e.clientY;return new r(t,i,0,1)},calculateScale:function(e,t,i,n){var o=Math.sqrt((e.getX()-t.getX())*(e.getX()-t.getX())+(e.getY()-t.getY())*(e.getY()-t.getY()));return Math.sqrt((i.getX()-n.getX())*(i.getX()-n.getX())+(i.getY()-n.getY())*(i.getY()-n.getY()))/o},calculateTranslation:function(e,t,i,n){return(i+n)/2-(e+t)/2},calculateLimits:function(e,t,i,n,o){var s=(e[0]+e[1])/2,l=(e[2]+e[3])/2,c=(e[4]+e[5])/2,d=a.createTranslation(-s,-l,-c),u=a.createScale(t,t,t),h=a.createTranslation(s+i,l+n,c+o),p=a.multiply(d,u),f=a.multiply(p,h),g=new r(e[0],e[2],e[4],1),m=new r(e[1],e[3],e[5],1);f.invert();var _=f.transform(g),v=f.transform(m);return[_.getX(),v.getX(),_.getY(),v.getY(),_.getZ(),v.getZ()]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(244),i(212),i(505),i(839),i(1169),i(6112),i(375)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([n,o,r],{constructor:function(e,t,n,o){this._lastPanMoveDeferred=(new i).resolve()},start:function(e){if(this._control.isValidControl()){this._control.lockLimitsRef();var t=e.properties.center.initial.x,i=e.properties.center.initial.y,n=new s(t,i,0,1),o={};return o.is2DPromise=this._control.is2D(),o.orig_point_pixels=n,o.p2dsPromise=this._control.getPixelToDSTransform(),o.origlimitsPromise=this._control.getCurrentLimits(),o.graphicsBounds=this._control.getGraphicsBounds(),o.containsImage=this._control.getContainsImage(),o}},move:function(e,n){this._control.isValidControl()&&n&&n.orig_point_pixels&&(this._lastPanMoveDeferred=new i,this.addPromisesToBeResolved(n.p2dsPromise),this.addPromisesToBeResolved(n.origlimitsPromise),t([n.p2dsPromise,n.origlimitsPromise,n.is2DPromise]).then(function(t){var i=t[0],o=t[1],r=t[2],a=e.properties.center.current.x,l=e.properties.center.current.y,c=new s(a,l,0,1),d=n.orig_point_pixels;this.canvas_pan(d,c,i,o,n.graphicsBounds,r,n.containsImage),this._lastPanMoveDeferred.resolve()}.bind(this)))},stop:function(e,t){this._control.isValidControl()&&this._lastPanMoveDeferred.then(function(){this._control.releaseLimitsRef()}.bind(this))},canvas_pan:function(e,t,i,n,o,r,l){var c=new s(t.getX()-e.getX(),t.getY()-e.getY(),0,0),d=i.transform(c),u=[n[0]-d.getX(),n[1]-d.getX(),n[2]-d.getY(),n[3]-d.getY(),n[4]-d.getZ(),n[5]-d.getZ()],h=this.constrainLimitsToDimensions(n,u);u=l&&r?a.boundLimits(n,h,o,r,!0):h,this._control.setLimits(u[0],u[1],u[2],u[3],u[4],u[5])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return{currentPromise:null,_promiseNumber:0,boundLimitsOnAxis:function(e,t,i){if(null==t[0]||null==t[1])return e;let n=Math.abs(e[1]-e[0]),o=e.slice(),r=1e-5*n;return e[0]-t[0]<=r&&(o[0]=t[0],i&&(o[1]=Math.min(o[0]+n,t[1]))),t[1]-o[1]<=r&&(o[1]=t[1],i&&(o[0]=Math.max(o[1]-n,t[0]),o[0]<t[0]&&(o[0]=t[0]))),o},isWithinLimits:function(e,t){let i=1e-5*Math.abs(t[1]-t[0]);return t[0]<=e[0]+i&&t[1]+i>=e[1]},isLimitsWithinBounds:function(e,t,i){return i?this.isWithinLimits(e.slice(0,2),t.slice(0,2))&&this.isWithinLimits(e.slice(2,4),t.slice(2,4)):this.isWithinLimits(e.slice(0,2),t.slice(0,2))&&this.isWithinLimits(e.slice(2,4),t.slice(2,4))&&this.isWithinLimits(e.slice(4,6),t.slice(4,6))},boundLimits:function(e,t,i,n,o){if(!this.isLimitsWithinBounds(e,i,n))return t;var r,a,s=this.boundLimitsOnAxis(t.slice(0,2),i.slice(0,2),o);return t[2]>t[3]?(r=this.boundLimitsOnAxis(t.slice(2,4).reverse(),i.slice(2,4),o)).reverse():r=this.boundLimitsOnAxis(t.slice(2,4),i.slice(2,4),o),a=n?t.slice(4,6):this.boundLimitsOnAxis(t.slice(4,6),i.slice(4,6),o),s.concat(r).concat(a)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(244),i(212),i(505),i(1169),i(375)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n,o],{constructor:function(e,t,n,o){this._lastRotateMoveDeferred=(new i).resolve()},start:function(e){if(this._control.isValidControl()){this._control.lockViewRef();var t=e.properties.center.initial.x,i=e.properties.center.initial.y,n=new r(t,i,0,1),o={};return o.orig_point_pixels=n,o.origViewPromise=this._control.getCurrentView(),o}},move:function(e,t){this._control.isValidControl()&&t&&t.orig_point_pixels&&(this._lastRotateMoveDeferred=new i,t.origViewPromise.then(function(i){var n=i,o=e.properties.center.current.x,a=e.properties.center.current.y,s=new r(o,a,0,1),l=t.orig_point_pixels;this.canvas_rotate(l,s,n),this._lastRotateMoveDeferred.resolve()}.bind(this)))},stop:function(e,t){this._control.isValidControl()&&this._lastRotateMoveDeferred.then(function(){this._control.releaseViewRef()}.bind(this))},canvas_rotate:function(e,t,i){var n=.5*-(t.getX()-e.getX()),o=.5*-(t.getY()-e.getY());o*=-1;var r=i.az+n,a=Math.min(Math.max(i.el+2*o,-90),90);this._control.setView(r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(505)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i,n){},enable:function(){this._enabled||(void 0!==this._listeners&&this._listeners.length>0&&this._printLog("Listeners should not exist at this point"),this._removeListeners(),this._listeners.push(this._actionParser.onEvent("mouseleave",this.execute.bind(this))),this._enabled=!0,this.sendMessageToServer("RectangleEnter"))},disable:function(){this._enabled&&(this.inherited(arguments),this.sendMessageToServer("RectangleExit"),this._enabled=!1)},execute:function(e){this.sendMessageToServer("RectangleExit")},sendMessageToServer:function(e){var t={name:"action",actionData:{figx:null,figy:null,x:null,y:null,interactionID:this._ID,hitObjectIds:null,name:e},additionalData:null};this._control.process(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(505)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i,n){},execute:function(){this._control.executeTextEditing()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(505),i(329)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e,t,i,n){},execute:function(e){var t,i,n;"dragstart"===e.name?(t=e.properties.center.initial.x,i=e.properties.center.initial.y,n=this.getPointerFigurePosition({clientX:t,clientY:i})):(n=this.getPointerFigurePosition(e.srcEvent),t=e.srcEvent.clientX,i=e.srcEvent.clientY);var o={name:"action",actionData:{figx:n.X,figy:n.Y,x:t,y:i,name:e.name,interactionID:this._ID,hitObjectIds:e.hitObjectIds},additionalData:{}};"scroll"===e.name&&"wheelDelta"in e.srcEvent&&(o.additionalData.verticalScrollCount=e.srcEvent.wheelDelta),this._control.process(o)},getPointerFigurePosition:function(e){var t={X:-1,Y:-1};if(this._control._gview){var n=this._control._gview;t=i.getEventXYRelativeToTheFigureContainer(n.getFigureAncestorNode(),e)}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(477),i(527),i(6118)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{_preventDefault:null,_TouchDownHandler:null,__TouchMoveHandler:null,constructor:function(e){void 0!==e.GestureDetectorConstructor?this._gestureDetector=e.GestureDetectorConstructor:this._gestureDetector=i,void 0!==e.GestureRegistryObject?this._registry=e.GestureRegistryObject:this._registry=n,this._hitObjectIds=null,this._detector=null,this._actionData=null,this._preventDefault=!1,this.setupParser()},setHitObjectIds:function(e){this._hitObjectIds=e},updateActionData:function(e,t){this._actionData=e,this._actionData.name=t,this._actionData.hitObjectIds=this._hitObjectIds},setupParser:function(){this._defineEvent("hover"),this._defineEvent("dragstart"),this._defineEvent("dragend"),this._defineEvent("dragprogress"),this._defineEvent("dragcancel"),this._defineEvent("click"),this._defineEvent("doubleClick"),this._defineEvent("rightClick"),this._defineEvent("pinchstart"),this._defineEvent("pinchend"),this._defineEvent("pinchprogress"),this._defineEvent("pinchcancel"),this._defineEvent("scroll"),this._defineEvent("warmup"),this._defineEvent("mouseleave");var e=function(e,t){return function(i,n){this.updateActionData(i,e),!0===t&&this.emitEvent("warmup",i),this._preventDefault&&i.srcEvent.preventDefault(),this.isPrimaryButtonEvent(e)&&!this.isPrimaryButtonPressed(i)||this.emitEvent(e,i)}.bind(this)}.bind(this);this._domStyle.set(this._domNode,"-webkit-tap-highlight-color","rgba(0,0,0,0)"),this._TouchDownHandler=t.pausable(this._domNode,"touchstart",this._handleTouchDown.bind(this)),this._TouchMoveHandler=t.pausable(this._domNode,"touchmove",this._handleTouchMove.bind(this)),this._MouseLeaveHandler=t.pausable(this._domNode,"mouseleave",this._handleMouseLeave.bind(this)),this._detector=new this._gestureDetector(this._domNode);var i=this._registry.leftClick({callbacks:{recognized:e("click",!0)}}),n=this._registry.hover({callbacks:{recognized:e("hover")}}),o=this._registry.doubleTap({options:{tapDelay:200},callbacks:{recognized:e("doubleClick")}}),r=this._registry.pan({options:{minDistance:10},callbacks:{began:e("dragstart",!0),progress:e("dragprogress"),recognized:e("dragend"),cancelled:e("dragcancel")}}),a=this._registry.rightClick({callbacks:{recognized:e("rightClick")}}),s=this._registry.wheel({callbacks:{recognized:e("scroll")}}),l=this._registry.pinch({callbacks:{began:e("pinchstart",!0),progress:e("pinchprogress"),recognized:e("pinchend"),cancelled:e("pinchcancel")}});r.getCoordinator().prevents(i),r.getCoordinator().prevents(a),o.getCoordinator().prevents(i),l.getCoordinator().prevents(i),this._detector.add([r,o,i,n,a,s,l]),this._detector.addHoverListeners()},_handleTouchDown:function(e){var t=[];t.srcEvent=e,t.name="warmup",t.hitObjectIds=this._hitObjectIds,this.emitEvent("warmup",t)},_handleTouchMove:function(e){this._preventDefault&&e.preventDefault()},_handleMouseLeave:function(e){var t=[];t.srcEvent=e,t.name="mouseleave",t.hitObjectIds=this._hitObjectIds,this.emitEvent("mouseleave",t)},isPrimaryButtonEvent:function(e){var t=!1;return["dragstart","dragprogress","dragend","click","doubleClick"].includes(e)&&(t=!0),t},isPrimaryButtonPressed:function(e){var t=e.srcEvent;return null==t||(void 0!==t.buttons&&1===t.buttons||void 0!==t.button&&0===t.button)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(213),i(554)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{constructor:function(e){void 0!==e.domStyleObject?this._domStyle=e.domStyleObject:this._domStyle=i,this._domNode=e.domNode},setupParser:function(){},updateDomNode:function(e){this._domNode=e.domNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{createCursorURL:function(e,t){var i="initial";switch(e){case"pan":i="grab";break;case"zoom":i="crosshair";break;case"zoom3d":i="zoom-in";break;case"rotate":i="url(data:image/PNG;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHFJREFUeNrskkkOwCAMA/H/H+2WUNGUbIhzOaHEGWUxSLbk9SQyARIAAbQ7fwSQYvm8eewCZvEnOHTIAHpe08EzjoF0AAPBugN6EAFEdOcKRlsBosv8gAUQnqgqNkZSAmvZxEiljXetrM3jNuEFLwEGAONUleHULURnAAAAAElFTkSuQmCC) 7 7,auto";break;case"zoomout":i="zoom-out";break;case"fleur":i="move";break;case"resize":i="nw-resize";break;case"datatip":i="crosshair";break;case"ibeam":i="text"}return i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(505),i(329)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{constructor:function(e,t,i,n){this._Response=n.ResponseData,this.axControl=t,this.gview=t._gview,this.Visible=null;var o=this.gview.getControlManager();this._isValidResponse()&&(o.findControl(this._Response.ObjectID).MarkerOwnerCookie=this._Response.ObjectID)},execute:function(e){if(this._isValidResponse()&&this.axControl.isValidControl()){var t=n.getEventXYCoordinates(e.srcEvent),i=this.gview.getControlManager().findControl(this._Response.ObjectID);this.axControl.getCurrentLimits().then(function(e){var n=i.renderDataTip(t.X,t.Y,e);this.addPromisesToBeResolved(n),n.then(function(e){e?(this._lastMarkerLocation=t,this.Visible="on"):this.Visible="off"}.bind(this))}.bind(this))}},_isValidResponse:function(){return this._Response&&this._Response.ObjectID&&"on"===this._Response.SnapToDataVertex}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(505)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i,n){this.axControl=t,this._Response=n.ResponseData;var o=t._gview.getControlManager();this._Response&&(this._control=o.findControl(this._Response),this._control.MarkerOwnerCookie=this._Response)},execute:function(e){this._Response&&this.axControl.isValidControl()&&this._control.hideDataTip()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1529)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i,n){this._Response=n.ResponseData,this.axControl=t,this._actionParser=i,this.gview=t._gview;var o=this.gview.getControlManager().findControl(this._Response);o.AxesToolbarID=this._Response,o.setDefaultState(),o.setAlphaMultiplier(0)},enable:function(){this.inherited(arguments);try{if(null!==this._Response&&void 0!==this._Response){var e=this.gview.getControlManager(),t=e.findControl(this._Response);t&&t.setAlphaMultiplier(1)}}catch(e){}},disable:function(){this.inherited(arguments);try{if(null!==this._Response&&void 0!==this._Response){var e=this.gview.getControlManager(),t=e.findControl(this._Response);t&&t.setAlphaMultiplier(0)}}catch(e){}},execute:function(){this.disable()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1529)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i,n){this._Response=n.ResponseData,this.control=t,this._actionParser=i,this.gview=t._gview,this.gview.getControlManager().findControl(this._Response).AxesToolbarID=this._Response},enable:function(){if(this.inherited(arguments),null!==this._Response&&void 0!==this._Response)try{var e=this.gview.getControlManager(),t=e.findControl(this._Response);t&&t.setAlphaMultiplier(1)}catch(e){}},disable:function(){if(this.inherited(arguments),null!==this._Response&&void 0!==this._Response)try{var e=this.gview.getControlManager(),t=e.findControl(this._Response);t&&t.setAlphaMultiplier(0)}catch(e){}},execute:function(){this.disable()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(212),i(554),i(329)],o=i.dj.d(n,(function(e,t,i,n,o){return t([e,n],{constructor:function(e){this._gv=e,this._requestTokenID=0,this._unfulfilledRequestPromises={},this._defineEvent("request")},handleMessage:function(e){if(void 0!==e.cmd)switch(e.cmd){case"response":var t=e.requestToken,i=this._unfulfilledRequestPromises[t];delete this._unfulfilledRequestPromises[t],i.resolve(e)}},requestCallback:function(e){var t=this._requestTokenID;this._requestTokenID++;var n=new i;return this._unfulfilledRequestPromises[t]=n,e.requestToken=t,this.emitEvent("request",e),n},requestHierarchy:function(e,t,n){var o=this._gv._View.getSceneTree();if(!o){var r={x:e,y:t,name:"getHierarchy"},a=this.requestCallback(r),s=new i;return a.then((function(e){s.resolve(e.data)})),s}return this._getHierarchy(e,t,o,n)},requestHitInfo:function(e,t){var n=this._gv._View.getSceneTree();if(!n){var o={x:e,y:t,name:"getHitInfo"},r=this.requestCallback(o),a=new i;return r.then((function(e){a.resolve(e.data)})),a}var s={};return this._getHitTestResult(e,t,n).then((function(e){if(e){var t=e.getNode();s.ownerCookie=t.ownerCookie,s.intersectionPoint=e.getIntersectionPoint()}return s}))},_getHitTestResult:function(e,t,i){var n=[];return null!==i&&(n=i.hitTest(e,t)),n},_getHierarchy:function(e,t,n,r){let a=null;return r.hasOwnProperty("pickResult")?a=(new i).resolve():(a=this._getHitTestResult(e,t,n),a=a.then((function(e){o.appendPickResultToEvent(e,r)}))),a=a.then((function(){var e=[],t=null;if(t=r.pickResult){var i=t.getNode();do{e.push(i.ownerCookie),i=i.parent}while(void 0!==i.parent);e.push(i.ownerCookie),void 0!==i.nodeinfo&&void 0!==i.nodeinfo.cameraparent&&e.push(i.nodeinfo.cameraparent)}return e})),a}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203)],o=i.dj.d(n,(function(e,t){return t([e],{constructor:function(e){this._gv=e},containsPoint:function(e,t,i){var n={};for(var o in i){var r=i[o];r&&r.contains(e,t)&&(n[o]=r)}return n}})}),e,t),e.exports=o},function(e,t){e.exports='<div class=${baseClass} data-dojo-attach-point="graphicsViewNode,backgroundColorNode"></div>'},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={arrow:"default",ibeam:"text",fullcrosshair:"crosshair",crosshair:"crosshair",watch:"wait",topl:"nwse-resize",botr:"nwse-resize",topr:"nesw-resize",botl:"nesw-resize",circle:"url(data:image/PNG;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAM0lEQVR42mP4z4CACCYWMUxhFAXIkv9RxHBKw8SJUYBLmqAF9FRAuTeJCEki4oKI2MQFAWEh/wErT2FFAAAAAElFTkSuQmCC) 8 8, auto",cross:"url(data:image/PNG;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVR42mP4zwCHYATE/5HEGBgGhQIkAFeAJIRiBEQBPj4WSIQJhNwwNEKSAAQAc7Eq5HqteXEAAAAASUVORK5CYII=) 8 8, auto",fleur:"move",left:"ew-resize",right:"ew-resize",top:"ns-resize",bottom:"ns-resize",hand:"pointer",none:"none"};return{getHtmlCursor:function(t,i,n){var o;"custom"===t?((n=n.map((function(e){return e-1}))).reverse(),o="url("+this._getDataUrlFromCData(i)+") "+n.join(" ")+", auto"):o=e[t];return o||"auto"},_getDataUrlFromCData:function(e){var t=e[0].length,i=e.length,n=document.createElement("CANVAS");n.width=t,n.height=i;var o,r=n.getContext("2d"),a=r.createImageData(t,i);for(o=0;o<a.data.length;o+=4){var s=Math.floor(o/(4*t)),l=Math.floor(o/4)%t,c=this._getRGBA(e[s][l]);a.data[o+0]=c[0],a.data[o+1]=c[1],a.data[o+2]=c[2],a.data[o+3]=c[3]}return r.putImageData(a,0,0),n.toDataURL()},_getRGBA:function(e){return"NaN"===e?[0,0,0,0]:1===e?[0,0,0,255]:[255,255,255,255]}}}),e,t),e.exports=o},function(e,t){e.exports='<div class="${baseClass}" data-dojo-attach-point="scrollableNode,backgroundColorNode">\n <div class="scrollableContentsNode" data-dojo-attach-point="scrollableContents">\n <div class="figureContainerNode" data-dojo-attach-point="containerNode,canvasContents" data-tag="${dataTag}">\n </div>\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(206),i(217),i(230),i(6130),i(6132),i(6134),i(6136)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([n],{constructor:function(e){if(!e.peerNode)throw new Error("Constructor arguments to a FigureToolsController should be given a peernode property.");this.peerNode=e.peerNode,this.windowStrategy=e.winStrategy,this.own(t(this.peerNode,"childAdded",function(e){this._OnMenuAdded(e)}.bind(this)),t(this.peerNode,"childRemoved",function(e){this._OnMenuRemoved(e)}.bind(this))),this._createToolsContainer(),this._createMenuToolbarContainer(),this._createMenuBar(),this._OnMenuVisibilityChanged()},getToolsContainer:function(){return this.figureToolsContainer},getToolsContainerDims:function(){return i.position(this.figureToolsContainer.containerNode)},getMenuBar:function(){return this.menubar},updateFigureLayoutContainerLayout:function(){this.figureToolsContainer.getParent()&&this.figureToolsContainer.getParent().resize()},handleFigureAddedToDom:function(){var e=this.menubarContainer.hasChildren(),t=this.toolbarContainer.hasChildren(),n=this.windowStrategy._toolBarHeight,o=i.position(this.figureToolsContainer.containerNode),r=Math.abs(o.h-n);(e||t)&&this.windowStrategy.reSizeOnToolsAdded(r,o),this.updateFigureLayoutContainerLayout()},_createMenuBar:function(){this.menubar||(this.menubar=new a)},_createMenuToolbarContainer:function(){this.menubarContainer||(this.menubarContainer=new r),this.figureToolsContainer.addChild(this.menubarContainer,0),this.toolbarContainer||(this.toolbarContainer=new s),this.figureToolsContainer.addChild(this.toolbarContainer,1)},_createToolsContainer:function(){this.figureToolsContainer||(this.figureToolsContainer=new o)},_OnMenuAdded:function(e){var i=e.data.child;"matlab.ui.container.Menu"===i.getType()&&("matlab.ui.Figure"===e.target.getType()&&(this.own(t(i,"propertiesSet",function(e){e.data.newValues.hasOwnProperty("Visible")&&this._OnMenuVisibilityChanged()}.bind(this))),this._OnMenuVisibilityChanged()))},_OnMenuRemoved:function(e){"matlab.ui.container.Menu"===e.data.child.getType()&&("matlab.ui.Figure"===e.target.getType()&&this._OnMenuVisibilityChanged())},_OnMenuVisibilityChanged:function(){var e=this._shouldShowMenubar();this.updateMenuBarStatus(e),this._updateDockControlsVisibility()},_shouldShowMenubar:function(){return this._doesFigureHaveOneVisibleDirectChildMenu()},_doesFigureHaveOneVisibleDirectChildMenu:function(){var e=!1;return this.peerNode.getChildren().some((function(t){var i=t.getProperty("Visible");if("matlab.ui.container.Menu"===t.getType()&&("on"===i||!0===i))return e=!0})),e},updateMenuBarStatus:function(e){var t,n,o=this.windowStrategy._toolBarHeight;e?-1===this.menubarContainer.getIndexOfChild(this.menubar)&&(this.menubarContainer.addChild(this.menubar),t=i.position(this.figureToolsContainer.containerNode),n=Math.abs(o-t.h),this.windowStrategy.reSizeOnToolsAdded(n,t)):-1!==this.menubarContainer.getIndexOfChild(this.menubar)&&(this.menubarContainer.removeChild(this.menubar),t=i.position(this.figureToolsContainer.containerNode),n=Math.abs(o-t.h),this.windowStrategy.reSizeOnToolsRemoved(n,t)),this.updateFigureLayoutContainerLayout()},addToolbar:function(e){-1===this.toolbarContainer.getIndexOfChild(e)&&this.toolbarContainer.addChild(e)},_updateDockControlsVisibility:function(){var e,t=!1,i=!1,n=this.menubarContainer.getChildren(),o=this.toolbarContainer.getChildren();if(n.map((function(e){e.menuBarDockControlsNode.style.display="none"})),o.map((function(t){i||"flex"!==t.toolbarDockControlsNode.style.display||(i=!0,e=t),t.toolbarDockControlsNode.style.display="none"})),this.peerNode.getProperty("DockControls")){if(n.length>0&&n[0].getParent().visibility&&(n[0].menuBarDockControlsNode.style.display="flex",t=!0),o.length>0&&!t){var r=o.reduceRight((function(e,t){return t.visibility?t:e}),void 0);void 0!==r&&(r.toolbarDockControlsNode.style.display="flex",r._handleOverflowOnResizeAndChildRemoved())}}else i&&e._handleOverflowOnResizeAndChildRemoved()},updateToolbarStatus:function(e){var t,n,o=this.windowStrategy._toolBarHeight;e?(t=i.position(this.figureToolsContainer.containerNode),n=Math.abs(o-t.h),this.windowStrategy.reSizeOnToolsAdded(n,t)):(t=i.position(this.figureToolsContainer.containerNode),n=Math.abs(o-t.h),this.windowStrategy.reSizeOnToolsRemoved(n,t)),this.updateFigureLayoutContainerLayout(),this._updateDockControlsVisibility()},deleteToolbar:function(e){var t=this.windowStrategy._toolBarHeight;if(-1!==this.toolbarContainer.getIndexOfChild(e)){this.toolbarContainer.removeChild(e);var n=i.position(this.figureToolsContainer.containerNode),o=Math.abs(t-n.h);this.windowStrategy.reSizeOnToolsRemoved(o,n)}this.updateFigureLayoutContainerLayout(),this._updateDockControlsVisibility()},figureToolsVisibility:function(e){var t,n,o=this.windowStrategy._toolBarHeight,r=this.menubarContainer.hasChildren(),a=this.toolbarContainer.hasChildren();(r||a)&&(e?(this.menubarContainer.setVisibility(!0),this.toolbarContainer.setVisibility(!0),t=i.position(this.figureToolsContainer.containerNode),n=Math.abs(o-t.h),this.windowStrategy.reSizeOnToolsAdded(n,t)):(this.menubarContainer.setVisibility(!1),this.toolbarContainer.setVisibility(!1),t=i.position(this.figureToolsContainer.containerNode),n=Math.abs(o-t.h),this.windowStrategy.reSizeOnToolsRemoved(n,t)),this.updateFigureLayoutContainerLayout())},destroy:function(){this.peerNode=null,this.menubarContainer.destroy(),this.toolbarContainer.destroy(),this.figureToolsContainer.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(272),i(6131)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i,n],{baseClass:"gbtFigureToolsContainer",templateString:o,region:"top"})}),e,t),e.exports=o},function(e,t){e.exports='<div class="${baseClass}">\n <div data-dojo-attach-point="containerNode"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(272),i(442),i(6133)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i,n,o],{baseClass:"gbtWidget gbtMenuBarContainer",templateString:r,_getVisibilityDomClassName:function(){return"gbtHideMenubarContainer"}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="${baseClass}">\n <div data-dojo-attach-point="containerNode"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(210),i(215),i(216),i(272),i(442),i(243),i(6135)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsSAAALEgHS3X78AAAARElEQVQokWP8//8/AymAiSTV9NfAyMj4H4aRxbBqAEn8//+fEZdCuDi2UEJXjGwQ1lBCVoAOWAiZTpST8AEaRxwDAwMAmmEaGdXIgGgAAAAASUVORK5CYII=";return e([i,n,o,r],{baseClass:"gbtWidget gbtMenuBar",templateString:s,constructor:function(e){},buildRendering:function(){this.inherited(arguments),this.DockControls=new a({icon:l,height:16,width:16,verticalAlignment:"middle",horizontalAlignment:"center",iconAlignment:"top"}),this.DockControls.placeAt(this.menuBarDockControlsNode),this.DockControls.startup(),this.DockControls.domNode.classList.add("gbtWidget"),this.DockControls.domNode.classList.add("gbtMenuBarDockControlsButton")},postCreate:function(){this.inherited(arguments),t.add(this.containerNode,"gbtMenuContainer")}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="menuBarContentNode" class="${baseClass}">\n\n<div data-dojo-attach-point="containerNode">\n</div>\n<div data-dojo-attach-point="menuBarDockControlsNode" class="gbtMenuBarDockControlsNode">\n</div>\n\n</div>'},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(272),i(442),i(6137)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i,n,o],{baseClass:"gbtWidget gbtToolBarContainer",templateString:r,_getVisibilityDomClassName:function(){return"gbtHideToolbarContainer"}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="${baseClass}">\n <div data-dojo-attach-point="containerNode"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(206)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(){},onMenuAdded:function(e){if("matlab.ui.container.Menu"===e.data.child.getType()&&!0!==this._getListenerStatus()){this.figureLayoutContainer.domNode.setAttribute("tabIndex","0"),this.eventHandlers=this.own(n(this.figureLayoutContainer.domNode,"mousedown",t.hitch(this,"_handleClick")),n(this.figureLayoutContainer.domNode,"keydown",t.hitch(this,"_handleKeyDown")),n(this.figureLayoutContainer.domNode,"keyup",t.hitch(this,"_handleKeyUp")));this._updateListenerStatus(!0)}},onMenuRemoved:function(e){if("matlab.ui.container.Menu"===e.data.child.getType()){var t=!1,i=this;this.peernode.getChildren().some((function(e){if("matlab.ui.container.Menu"===e.getType()&&(!0===e.getProperty("Visible")||"on"===e.getProperty("Visible")))return t=!0,i._updateListenerStatus(t),t})),!1===t&&this.eventHandlers&&this._removeHandlers(),this._updateListenerStatus(t)}},_removeHandlers:function(){var e;for(e=0;e<this.eventHandlers.length;e++)this.eventHandlers[e].remove()},_updateListenerStatus:function(e){this.listenerStatus=e},_getListenerStatus:function(){return this.listenerStatus},_handleKeyUp:function(e){this.figureToolsController.getMenuBar().set("fired",!1)},_handleClick:function(e){this._hasLabelArr()&&(this._removeMnemonic(),this.figureToolsController.getMenuBar().set("MnemonicActive",!1),this.figureToolsController.getMenuBar().set("fired",!1))},_handleKeyDown:function(e){!0===e.altKey&&!this.figureToolsController.getMenuBar().get("fired")&&this._hasLabelArr()&&(this._addMnemonic(),this.figureToolsController.getMenuBar().set("fired",!0),e.preventDefault())},_setLabelArr:function(e){this.labelArr=e},getLabelArr:function(){return this.labelArr||(this.labelArr=this._createLabelArr()),this.labelArr},_createLabelArr:function(){var e=[];return this._setLabelArr(e),e},addToLabelArr:function(e){this.labelArr.push(e)},_removeFromLabelArr:function(e){this.labelArr.splice(e,1)},_hasLabelArr:function(){return void 0!==this.labelArr},updateLabelArr:function(e){var t=this._getMnemonicIndex(e);-1!==t&&this._removeFromLabelArr(t)},_getMnemonicIndex:function(e){var t;if(this._hasLabelArr())for(t=0;t<this.labelArr.length;t++)if(this.labelArr[t].peernodeID===e)return t;return-1},findMnemonicKey:function(e){var t=e.search(/&&[A-z0-9]/),i=e.search(/&[A-z0-9]/);return-1!==i&&i-1!==t||0===i?e.charAt(i+1).toUpperCase():-1},splitText:function(e){var t=e.get("text"),i=e.textNode,n=e.get("value").indexOf("&"),o=e.get("value");if(n>-1){var r=o.search(/&&[A-z0-9]/),a=o.search(/&[A-z0-9]/);if(-1!==a&&a-1!==r||0===a){for(var s=o.charAt(a+1);t.charAt(a+1)!==s&&a+1!==-1;)a--;if(a+1!==-1&&i.children.length<2){i.textContent="";var l=t.substring(0,a+1),c=t.substring(a+1,t.length),d=document.createElement("span");d.classList.add("gbtmwTextLine"),d.textContent=l;var u=document.createElement("span");u.classList.add("gbtmwTextLine"),u.textContent=c,i.appendChild(d),i.appendChild(u)}}}return i},_addMnemonic:function(){var e=!1,t="";this.labelArr.forEach((function(n){(t=this.splitText(n.widget)).children[1]&&(i.toggle(t.children[1],"mnemonic"),i.contains(t.children[1],"mnemonic")&&(e=!0))}),this),this.figureToolsController.getMenuBar().set("MnemonicActive",e)},_removeMnemonic:function(){this.figureToolsController.getMenuBar().get("MnemonicActive")&&(this.labelArr.forEach((function(e){var t=e.widget.textNode;i.remove(t.children[1],"mnemonic")})),this.figureToolsController.getMenuBar().set("MnemonicActive",!1))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2125)],o=i.dj.d(n,(function(e,t){return e([t],{_getPositionFromUnitsValue:function(e){return e.Value?e.Value:e},getValueInPixelsFromUnitsValue:function(e,t){return this._getPositionFromUnitsValue(e)},getValueForPeerNodeFromPixelValue:function(e,t,i){return this._getPositionFromUnitsValue(e)},getPositionInUnitsFromUnitsValue:function(e){return this._getPositionFromUnitsValue(e)},getUnitsFromUnitsValue:function(e){if(e.Value&&e.fromClient||!e.Value)return"pixels";throw new Error("UnitsService does expect the input to be properly formatted. Input = ",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(219),i(209),i(1268)],o=i.dj.d(n,(function(e,t,i){var n=void 0;return function(){void 0===n&&(n=t.addCallback((function(t){e.publish("/services/ErrorLoggingService/JSErrors",{message:i.currentTimeString()+": "+t.message})}),!1))}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6142),i(6144),i(6146),i(6147),i(6148)],o=i.dj.d(n,(function(e,t,i,n,o){return{getStrategy:function(r,a,s){var l;switch(r){case"cefclient":l=new t;break;case"moclient":l=new i(a);break;case"embeddedclient":l=new n;break;case"divclient":l=new o(s);break;default:l=new e}return l}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(206),i(1172)],o=i.dj.d(n,(function(e,t,i,n){return e([t,n],{_winStrategyType:n.WINDOW_STRATEGY_TYPE.SIZELOCATION,constructor:function(){i(window,"resize",function(e){this._onWindowResized(e)}.bind(this))},reSizeOnToolsAdded:function(e,t){this.inherited(arguments),this._onWindowResized()},reSizeOnToolsRemoved:function(e,t){this.inherited(arguments),this._onWindowResized()},_onWindowResized:function(e){var t=[1,1,window.innerWidth,window.innerHeight];this.emit("windowresized",t)},formatAndUpdateWidgetRenderedSize:function(e,t){if(void 0!==e){e.updateRenderedSize();var i=e.get("renderedSize");return i.x=t[0],i.y=t[1],i}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2212)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){},getUpdatedWindowBounds:function(e){return{x:e[0],y:e[1],width:e[2],height:e[3]}},getNewYWithToolsBar:function(e,t){return e-t},getPositionWithToolBar:function(e,t,i){var n=this.getHeightWithToolsBar(e.height,i);return[e.x,e.y,e.width,n]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(736),i(6145),i(1172)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,o],{_winStrategyType:o.WINDOW_STRATEGY_TYPE.SIZELOCATION,_windowStatePendingVisible:!1,_windowStatePending:o.WINDOW_STATE_TYPE.UNSET,_lastWindowState:o.WINDOW_STATE_TYPE.UNSET,constructor:function(){window.cefclient.isMaximized()?this._windowStateCefInitial=o.WINDOW_STATE_TYPE.MAXIMIZED:window.cefclient.isMinimized()?this._windowStateCefInitial=o.WINDOW_STATE_TYPE.MINIMIZED:window.cefclient.isFullscreen()&&(this._windowStateCefInitial=o.WINDOW_STATE_TYPE.FULLSCREEN)},_startListeningToViewResize:function(){var e=this;window.cefclient.handleWindowResized=i.throttle(this._handleViewResize,i.THROTTLE_DELAY,{leading:!1,trailing:!0}).bind(this),window.cefclient.handleWindowState=function(t){e._handleWindowStateChange(t)}},_handleViewResize:function(e){var t=this._convertStringToIntArray(e.split(","));t.splice(4,1),this._processViewResize(t)},_processViewResize:function(e){var t=this._convertFromZeroToOneOrigin(e),i=[t[0],t[1],t[2],t[3]-this._toolBarHeight];this._storeAndNotifyOnSizeChange(i,t)},_getGBTWindowStateFromCEFEventName:function(e){var t=Object.freeze({WindowMaximized:o.WINDOW_STATE_TYPE.MAXIMIZED,WindowMinimized:o.WINDOW_STATE_TYPE.MINIMIZED,WindowRestored:o.WINDOW_STATE_TYPE.NORMAL,WindowFullscreen:o.WINDOW_STATE_TYPE.FULLSCREEN})[e];return void 0===t&&(t=this._windowState),t},_handleWindowStateChange:function(e){var t=this._getGBTWindowStateFromCEFEventName(e);this._windowStatePending===o.WINDOW_STATE_TYPE.UNSET?(this._windowState=t,this.emit("windowstatechanged",this._windowState)):this._windowStatePending===t?(n.assert(this._windowState===t,"The current window state is not what was expected."),this._windowStatePending=o.WINDOW_STATE_TYPE.UNSET,this.emit("windowstatechanged",this._windowState)):this._windowStatePending!==o.WINDOW_STATE_TYPE.NORMAL||t!==o.WINDOW_STATE_TYPE.MAXIMIZED&&t!==o.WINDOW_STATE_TYPE.FULLSCREEN||(n.assert(this._windowState===o.WINDOW_STATE_TYPE.NORMAL,"This window state is not expected."),this._applyWindowStateToClient(),this._windowStatePending=o.WINDOW_STATE_TYPE.UNSET)},_storeAndNotifyOnSizeChange:function(e,t){this.updateWindowBounds(e),this.emit("windowresized",t)},_shouldAdjustBoundsForTools:function(){return this._windowState!==o.WINDOW_STATE_TYPE.MAXIMIZED&&this._windowState!==o.WINDOW_STATE_TYPE.FULLSCREEN},reSizeOnToolsAdded:function(e,t){if(this.inherited(arguments),this._shouldAdjustBoundsForTools()){var i=this.boundsStrategy.getPositionWithToolBar(this.windowBounds,e,t.h);this._setWindowPosition(i)}else{n.assert(this.windowBounds&&this.windowBounds.height&&this.windowBounds.width,"windowBounds undefined in UIFigureCEFResizableStrategy:reSizeOnToolsAdded");var o=[this.windowBounds.x,this.windowBounds.y,this.windowBounds.width,this.windowBounds.height],r=[o[0],o[1],o[2],o[3]-e],a=[r[0],r[1],r[2],r[3]+t.h];this._storeAndNotifyOnSizeChange(r,a)}},reSizeOnToolsRemoved:function(e,t){if(this.inherited(arguments),this._shouldAdjustBoundsForTools()){var i=this.windowBounds.height+t.h,n=[this.windowBounds.x,this.windowBounds.y,this.windowBounds.width,i];this._setWindowPosition(n)}else{var o=[this.windowBounds.x,this.windowBounds.y,this.windowBounds.width,this.windowBounds.height],r=[o[0],o[1],o[2],o[3]+e],a=[r[0],r[1],r[2],r[3]+t.h];this._storeAndNotifyOnSizeChange(r,a)}},formatAndUpdateWidgetRenderedSize:function(e,t){if(void 0!==t.fromClient)return this.updateWindowBounds(t.Value),this.windowBounds},_setWindowPosition:function(e){var t=this._convertFromOneToZeroOrigin(e),i=[Math.round(t[0]),Math.round(t[1]),Math.round(t[2]),Math.round(t[3])];window.cefclient.sendMessage("setPosition",i)},initializeWindowBoundsFromPeerNode:function(e){var t=e.getProperty("WindowState");this._windowStateCefInitial&&this._windowStateCefInitial!==t||(delete this._windowStateCefInitial,this.inherited(arguments))},setFigurePosition:function(e){if(e.fromClient){if(this._windowStateCefInitial)return void this.updateWindowBounds(e.Value);n.assert(void 0,"setFigurePosition should never be called with 'fromClient' struct value.")}var t=[e[0],e[1],e[2],e[3]+this._toolBarHeight];this.updateWindowBounds(e),this._windowStatePending===o.WINDOW_STATE_TYPE.UNSET&&this._windowStatePendingVisible||this._windowState!==o.WINDOW_STATE_TYPE.MAXIMIZED&&this._windowState!==o.WINDOW_STATE_TYPE.FULLSCREEN||(this.setWindowState("normal"),this.emit("windowstatechanged",this._windowState),this._windowStatePending=o.WINDOW_STATE_TYPE.UNSET),this._setWindowPosition(t)},setWindowState:function(e){if(this._windowStateCefInitial&&e!==this._windowStateCefInitial)return this._windowState=this._windowStateCefInitial,delete this._windowStateCefInitial,void this.emit("windowstatechanged",this._windowState);this._lastWindowState=this._windowState,this._windowState!==o.WINDOW_STATE_TYPE.UNSET&&(this._windowStatePending=e),this._windowState=e,this._windowVisible?this._applyWindowStateToClient():this._windowStatePendingVisible=!0},setVisible:function(e){this.inherited(arguments),!0===this._windowStatePendingVisible&&!0===e&&(this._applyWindowStateToClient(),this._windowStatePendingVisible=!1)},_applyWindowStateToClient:function(){if(this._lastWindowState===o.WINDOW_STATE_TYPE.FULLSCREEN&&this._windowState===o.WINDOW_STATE_TYPE.MINIMIZED){var e=this._getCEFWindowStateFromGBT(o.WINDOW_STATE_TYPE.NORMAL);window.cefclient.sendMessage(e)}var t=this._getCEFWindowStateFromGBT(this._windowState);window.cefclient.sendMessage(t)},_getCEFWindowStateFromGBT:function(e){var t=Object.freeze({maximized:"maximize",minimized:"minimize",normal:"restore",fullscreen:"fullscreen"})[e];return void 0===t&&(t="restore"),t},_handleInitializedToFullscreen:function(){var e=window.cefclient.getPosition();this._processViewResize(e)},_escapeFullscreen:function(){this._windowState===o.WINDOW_STATE_TYPE.FULLSCREEN&&(this.setWindowState(o.WINDOW_STATE_TYPE.NORMAL),this.emit("exitfullscreen"))},_toggleFullscreen:function(){this._windowState===o.WINDOW_STATE_TYPE.FULLSCREEN?(this.setWindowState(o.WINDOW_STATE_TYPE.NORMAL),this.emit("exitfullscreen")):(n.assert(this._windowState!==o.WINDOW_STATE_TYPE.MINIMIZED,"Minimized window state is not expected when toggling in and out of fullscreen mode."),this.setWindowState(o.WINDOW_STATE_TYPE.FULLSCREEN),this.emit("enterfullscreen"))},_convertStringToIntArray:function(e){return e.map(Number)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(e){return{assert:function(e,t){if(!e)throw t="Assertion: "+t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(1172)],o=i.dj.d(n,(function(e,t,i){return e([t,i],{_winStrategyType:i.WINDOW_STRATEGY_TYPE.SIZELOCATION,constructor:function(e){if(!e)throw new Error("Constructor arguments to a UIFigureMOResizableStrategyshould be given peerNodeId.");this.peerNodeId=e,this._getWindowRenderdSize()},listenMessage:function(e){var t=window.addEventListener?"addEventListener":"attachEvent";(0,window[t])("attachEvent"===t?"onmessage":"message",e,!1)},_startListeningToViewResize:function(){var e=this;this.listenMessage((function(t){e._handleViewResize(t)}))},_handleViewResize:function(e){"updateFigureMOStrategyBounds"===e.data.msgType&&this._handleUpdatesFormMO(e)},_storeAndNotifyOnSizeChange:function(e,t){this.updateWindowBounds(e),this.emit("windowresized",t)},reSizeOnToolsAdded:function(e,t){this.inherited(arguments);var i=this.boundsStrategy.getPositionWithToolBar(this.windowBounds,e,t.h);this._setWindowPosition(i)},reSizeOnToolsRemoved:function(e,t){this.inherited(arguments);var i=this.windowBounds.height+t.h,n=[this.windowBounds.x,this.windowBounds.y,this.windowBounds.width,i];this._setWindowPosition(n)},_setWindowPosition:function(e){var t=window.location!==window.parent.location?document.referrer:document.location,i={peerNodeId:this.peerNodeId,position:e,msgType:"updateMOWindowBounds",eventType:"windowPropertyChanged"};window.parent.postMessage(i,t)},setMaximizeState:function(e){this.isMaximized=e},_handleUpdatesFormMO:function(e){var t=e.data.position;t[1]<1&&(t[1]=1);var i=[t[0],t[1],t[2],t[3]-this._toolBarHeight];this._storeAndNotifyOnSizeChange(i,t)},_getWindowRenderdSize:function(){var e=window.location!==window.parent.location?document.referrer:document.location,t={peerNodeId:this.peerNodeId,msgType:"getRenderedWindowBounds"};window.parent.postMessage(t,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(1172)],o=i.dj.d(n,(function(e,t,i){return e([t,i],{_winStrategyType:i.WINDOW_STRATEGY_TYPE.SIZE,constructor:function(e){},reSizeOnToolsAdded:function(e,t){this.inherited(arguments);var i=this.boundsStrategy.getPositionWithToolBar(this.windowBounds,e,t.h);this.emit("windowresized",i),this._updateOuterBounds(e,t.h)},reSizeOnToolsRemoved:function(e,t){this.inherited(arguments);var i=this.boundsStrategy.getPositionWithoutToolBar(this.windowBounds,e,t.h);this.emit("windowresized",i),this._updateOuterBounds(-e,t.h)},formatAndUpdateWidgetRenderedSize:function(e,t){if(void 0!==t.fromClient)return this.updateWindowBounds(t.Value),this.windowBounds},updateScrollableBounds:function(e){var t=this._getTargetUrl();window.postMessage({peerNodeId:this.peerNodeId,msgType:"updateScrollableBounds",scrollableBounds:e},t)},_updateOuterBounds:function(e,t){var i=this._getTargetUrl();window.postMessage({peerNodeId:this.peerNodeId,msgType:"updateOuterBounds",toolsHeightDelta:e,toolsTotalHeight:t},i)},_getTargetUrl:function(){return window.location!==window.parent.location?document.referrer:document.location}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(6149),i(1171),i(2213)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,o],{constructor:function(e){if(!e.divFigureServerMsgHandler.isInstanceOf(n))throw new Error("handler must be an instance of DivFigureMsgFromServerInterface");this._handleMsgFromServer=e.divFigureServerMsgHandler,this._handleMsgFromServer.registerMsgFromClientHandler(this)},setTitle:function(e){this._handleMsgFromServer.setPropertyValueFromServer("Title",e)},setFigurePosition:function(e){var t=i.convertFromOneToZeroOrigin(e);this._handleMsgFromServer.setPropertyValueFromServer("Position",t)},setWindowState:function(e){this._handleMsgFromServer.setPropertyValueFromServer("WindowState",e)},setWindowStyle:function(e){this._handleMsgFromServer.setPropertyValueFromServer("WindowStyle",e)},setVisible:function(e){this._handleMsgFromServer.setPropertyValueFromServer("Visible",e)},setResizable:function(e){this._handleMsgFromServer.setPropertyValueFromServer("Resize",e)},setPropertyValueFromClient:function(e,t){switch(e){case"Position":this._setPositionFromClient(t);break;case"Title":this._setTitleFromClient(t);break;case"WindowState":this._setWindowStateFromClient(t);break;case"WindowStyle":this._setWindowStyleFromClient(t);break;default:console.warn("Client attempt to set value of unsupported property "+e+" to "+t)}},_setPositionFromClient:function(e){var t=i.convertFromZeroToOneOrigin(e);this.emit("windowresized",t)},_setTitleFromClient:function(e){this.emit("titlechanged",e)},_setWindowStateFromClient:function(e){this.emit("windowstatechanged",e)},_setWindowStyleFromClient:function(e){this.emit("windowstylechanged",e)},updateWindowBounds:function(e){},initializeWindowBoundsFromPeerNode:function(e){},formatAndUpdateWidgetRenderedSize:function(e,t){},reSizeOnToolsAdded:function(e,t){},reSizeOnToolsRemoved:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{convertFromOneToZeroOrigin:function(e){return[e[0]-1,e[1]-1,e[2],e[3]]},convertFromZeroToOneOrigin:function(e){return[e[0]+1,e[1]+1,e[2],e[3]]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(356),i(614),i(211)],o=i.dj.d(n,(function(e,t,i,n){var o;return{show:function(e){var r;o||(o=function(e){var t=n.create("div",{class:"gbtBannerContainer"},document.body);return n.create("div",{id:"mwBanner",class:"gbtBanner",innerHTML:e},t)}(e)),r=o,i.chain([t.fadeIn({node:r,delay:300,duration:1e3}),t.fadeOut({node:r,delay:2e3,duration:1e3})]).play()},hide:function(){o&&(n.destroy(o),o=null)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(223),i(206),i(407)],o=i.dj.d(n,(function(e,t,i,n,o){var r;return r=-1!==o.getSystemInfo().PLATFORM.indexOf("Mac")?function(e){return(70===e.key||70===e.keyCode)&&e.ctrlKey&&e.metaKey}:function(e){return(e.key===i.F11||e.keyCode===i.F11)&&e.ctrlKey},e([t],{constructor:function(){n(document,"keydown",function(e){var t;(t=e).key===i.ESCAPE||t.keyCode===i.ESCAPE?this.emit("escapeFullscreen"):r(e)&&this.emit("toggleFullscreen")}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(219),i(241),i(232),i(6153),i(6158),i(6161),i(2215)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{start:function(e){t.start(),t.subscribe(e,this._dispatcher.bind(this)),a.start(e),window.addEventListener("beforeunload",(function(i){t.publish(e+"/reload",{eventName:"DialogServiceReload"})}))},_dispatcher:function(e){switch(e.data.action){case"displayAlertDialog":this._showAlertDialog(e.data);break;case"displayConfirmDialog":this._showConfirmDialog(e.data);break;case"displayFileInputDialog":o.displayFileInputDialog(e.data);break;case"closeFileInputDialog":o.closeFileInputDialog();break;case"displayFileOutputDialog":r.displayFileOutputDialog(e.data);break;case"handleFileDownload":r.handleFileDownload(e.data);break;default:throw new Error("Unknown DialogService action provided.")}},_showAlertDialog:async function(e){let t,n=this._setupCommonOptions(e);t="latex"===n.interpreter||"tex"===n.interpreter?await s.createMessageWidgetAsync(e.message,n.interpreter):s.createMessageWidget(e.message,n.interpreter),n.specifiedFocusItem=1,i.displayAlertDialog(e.title,t.domNode,n),this.channelIDTemp=e,t.postProcessForDialog(n)},_showConfirmDialog:async function(e){let t,n=this._setupCommonOptions(e);t="latex"===n.interpreter||"tex"===n.interpreter?await s.createMessageWidgetAsync(e.message,n.interpreter):s.createMessageWidget(e.message,n.interpreter),n.specifiedFocusItem=n.defaultAcceptButton,i.displayConfirmDialog(e.title,t.domNode,n),this.channelIDTemp=e,t.postProcessForDialog(n)},_setupCommonOptions:function(e){var i=e.options;return i.icon&&i.icon.startsWith("/static/")&&(i.icon=n.createWorkerRoutingHostUrl(i.icon)),e.dataTestId&&(i["data-test-id"]=e.dataTestId),i.closeCallback=function(i){t.publish(e.callbackChannelID,i)},i.linkCallback=function(i){t.publish(e.callbackChannelID,i)},i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(219),i(6154),i(2214)],o=i.dj.d(n,(function(e,t,i){return{displayFileInputDialog:function(e){var i=this._setupAdditionalOptions(e);this.dialog=new t(i)},closeFileInputDialog:function(){this.dialog&&this.dialog.close(),delete this.dialog},_setupAdditionalOptions:function(t){var n=t;return n.filter.FilterValue&&(n.filter=i.parseFilterValue(n.filter.FilterValue)),n.bindingNode=document.getElementById("gbt_root_node"),n.dataTestId="UIFigureFileInput",n.userCallback=function(i){e.publish(t.fileIOChannelID,i)},n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(228),i(245),i(206),i(243),i(273),i(241),i(262),i(6155),i(6156),i(6157)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([],{constructor:function(e){this._setOptions(e),this.domNode=this._createDomNodes(),this._buildDialog(),this._registerEvents(),this._registerCallbacks(e)},_setOptions:function(e){this.fileIOChannelID=e.fileIOChannelID,this.fileACKChannelID=e.fileACKChannelID,this._title=e.title,this._multiselection=!1,e.multiselection&&(this._multiselection=!0),this._fileFilterCache=e.filter,this._bindingNode=e.bindingNode,this._dataTestId=e.dataTestId},_createDomNodes:function(){var e=document.createElement("div"),i=t.toDom(u);return e.appendChild(i),this._createfileSelectArea(e),e},_isDragSupported:function(){var e=!0;return n("ios")&&(e=!1),e},_createfileSelectArea:function(e){this._fileSelectContentArea=e.querySelector(".mwFileInputSelectArea");var t=this._selectBtnNode=e.querySelector(".mwFileInputSelectButton");this._isDragSupported()?(this._fileSelectContentArea.classList.add("mwFileInputDnD"),this._selectBtnNode.classList.add("mwFileSelectDnD"),(this._fileInputDnD=new c).buildDragArea(this._fileSelectContentArea,this._selectBtnNode,this._multiselection,this._fileFilterCache)):(this._fileSelectContentArea.classList.add("mwFileInput"),this._selectBtnNode.classList.add("mwFileSelect"));(this._filterMsgNode=e.querySelector(".mwFileInputFilterMsg")).textContent="Accepted file types:",this._uploadBtn=e.querySelector(".mwHiddenFileInputforUpload"),this._fileFilterMsgNode=e.querySelector(".mwFileInputFilter");var i="Select a file";this._multiselection&&(i="Select files");var n=this._fileSelectionBtn=new r({text:i,width:86});n.startup(),t.appendChild(n.domNode)},_buildDialog:function(){this._multiselection&&i.set(this._uploadBtn,"multiple","multiple"),i.set(this._uploadBtn,"accept",this._fileFilterCache.toString()),this._fileFilterMsgNode.textContent=this._getFilterMsg(this._fileFilterCache),this._selectDialog=l.createDialog({title:this._title,dialogType:l.MODAL,content:this.domNode,draggable:!0,closable:!0,resizable:!1,bindingNode:this._bindingNode,"data-test-id":this._dataTestId+"SelectDialog"})},_getFilterMsg:function(e){var t="";return 1===e.length&&"*.*"===e.toString()?t="*.*":e.forEach((function(e,i){-1===e.indexOf("*.*")&&(t+=e.toString()+",")})),t=t.replace(/(^,)|(,$)/g,"")},_registerEvents:function(){this._listeners=[],this._isDragSupported()&&(this._listeners=this._fileInputDnD.registerEvents(),this._fileInputDnD.on("onDropFiles",function(e){this._handleOnDropFiles(e)}.bind(this))),this._fileSelectionBtn.on("click",function(e){this._handleSelectBtnClick()}.bind(this)),this._listeners.push(this._addListener(this._uploadBtn,"change",this._handleUploadBtnChange.bind(this))),this._selectDialog.on("close",function(e){this._handleSelectDialogClose(e)}.bind(this))},_addListener:function(e,t,i){return e.addEventListener(t,i),{remove:function(){e.removeEventListener(t,i)}}},_registerCallbacks:function(e){this._userCallbackToEval=e.userCallback?e.userCallback:function(){}},_handleSelectBtnClick:function(){this._uploadBtn.click()},_handleOnDropFiles:function(e){this._hideFileSelected();var t=e.files;this._processFiles(t)},_handleUploadBtnChange:function(e){this._hideFileSelected();var t=e.target.files;this._processFiles(t)},_hideFileSelected:function(){this._selectDialog&&(this._cleanUpListeners(),this._selectDialog.destroy(),delete this._selectDialog)},_processFiles:function(e){this._fileUploader=new d(this.fileIOChannelID,this.fileACKChannelID),this._createFileProgessDialog(e[0].name);var t=this._process=this._fileUploader.uploadFiles(e);t.then((function(e){}),function(e){t.isCanceled()&&(this._progressDlg.closeProgressDialog(),delete this._progressDlg)}.bind(this),function(e){this._setProgressDialogMsg(e.fileName),e.progress&&this._progressDlg.progressBar.set("value",e.progress)}.bind(this))},_createFileProgessDialog:function(e){var t="Uploading "+e+"...";this._progressDlg=s.displayProgressDialog("Uploading...",t,{showPercentage:!0,value:0,cancelButtonText:"Cancel",showCancelButton:!0,cancelCallback:this._handleProgressCancelClicked.bind(this),"data-test-id":this._dataTestId+"ProgressDialog"})},_setProgressDialogMsg:function(e){var t="Uploading "+e+"...";this._progressDlg.updateMessage(t)},_dispatchMsgOnCancelBtn:function(){this._userCallbackToEval({eventType:"handleClose"})},_handleSelectDialogClose:function(e){if(this._selectDialog){this._userCallbackToEval({eventType:"handleClose"}),this._cleanUpListeners(),delete this._selectDialog}else this._handleProgressCancelClicked(e)},_handleProgressCancelClicked:function(e){this.close();this._userCallbackToEval({eventType:"handleClose"})},_cleanUpListeners:function(){this._listeners&&(this._listeners.forEach((function(e){e.remove()})),this._fileSelectionBtn.destroy(),this._listeners=[],delete this._fileSelectionBtn,delete this._listeners)},close:function(){this._hideFileSelected(),this._progressDlg&&(this._process.cancel(),this._fileUploader.destroy())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(312)],o=i.dj.d(n,(function(e,t,i){return e([t],{buildDragArea:function(e,t,i,n){if(!e)throw new Error("File Input Select Node should be given to attach DnD nodes");if(!t)throw new Error("Select Button Node should be given");this._fileDragnDropContentArea=e,this._selectBtnNode=t,this._multiselect=i,this._fileFilterCache=n;var o=document.createElement("div");o.setAttribute("class","mwFileInputDragOrSelectMsg"),this._fileDragnDropContentArea.insertBefore(o,this._selectBtnNode);var r=this._dragMsgDom=document.createElement("div");r.setAttribute("class","mwFileInputDragMsg"),this._fileDragnDropContentArea.insertBefore(r,o),r.textContent=i?"Drop files here":"Drop a file here",o.textContent="or"},registerEvents:function(){return this._listeners=[],["dragenter","dragover","dragleave","drop"].forEach(function(e){this._listeners.push(this._addListener(this._fileDragnDropContentArea,e,this._preventDefaultDragAction.bind(this)))}.bind(this)),["dragenter","dragover"].forEach(function(e){this._listeners.push(this._addListener(this._fileDragnDropContentArea,e,this._highlightDragArea.bind(this)))}.bind(this)),["dragleave","drop"].forEach(function(e){this._listeners.push(this._addListener(this._fileDragnDropContentArea,e,this._resetDragHighlight.bind(this)))}.bind(this)),this._listeners.push(this._addListener(this._fileDragnDropContentArea,"drop",this._handleDropFiles.bind(this))),this._listeners},_preventDefaultDragAction:function(e){e.preventDefault(),e.stopPropagation()},_highlightDragArea:function(e){this._fileDragnDropContentArea.classList.add("mwFileInputSelectAreaHover"),this._selectBtnNode.classList.add("mwFileInputSelectButtonHover"),this._dragMsgDom.classList.add("mwFileInputDragMsgHover")},_resetDragHighlight:function(e){this._fileDragnDropContentArea.classList.remove("mwFileInputSelectAreaHover"),this._selectBtnNode.classList.remove("mwFileInputSelectButtonHover"),this._dragMsgDom.classList.remove("mwFileInputDragMsgHover")},_removeDragData:function(e){var t=e.dataTransfer;t.items?t.items.clear():t.clearData()},_handleDropFiles:function(e){if(this._validateDragContents(e)){var t={files:e.dataTransfer.files};this.emit("onDropFiles",t),this._removeDragData(e)}else this._showErrorTooltip()},_validateDragContents:function(e){var t=!0;return this.validMsg="",this._validateDragHasFiles(e)?this._validateDropFileCount(e)?this._validateDropFileType(e)||(this.validMsg="Not a valid file type",t=!1):(this.validMsg="App accepts only single file",t=!1):(this.validMsg="App accepts only files",t=!1),t},_validateDropFileType:function(e){var t=!1,i=e.dataTransfer&&e.dataTransfer.files;if(!i)return!1;if(1===this._fileFilterCache.length&&"*.*"===this._fileFilterCache.toString())return t=!0;for(var n=0;n<i.length;n++){var o=i[n].name,r="."+o.slice(2+(o.lastIndexOf(".")-1>>>0)).toLowerCase();this._fileFilterCache&&this._fileFilterCache.some((function(e){e.some((function(e){e===r&&(t=!0)}))}))}return t},_validateDragHasFiles:function(e){var t=e.dataTransfer&&e.dataTransfer.types;return!!t&&("function"==typeof t.contains?t.contains("Files"):"function"==typeof t.indexOf&&t.indexOf("Files")>=0)},_validateDropFileCount:function(e){var t=e.dataTransfer&&e.dataTransfer.files;return!!t&&!(!this._multiselect&&t.length>1)},_showErrorTooltip:function(){this._fileDragnDropContentArea.classList.add("mwFileInputSelectAreaInvalid"),i.show(this.validMsg,this._fileDragnDropContentArea),setTimeout(function(){i.hide(this._fileDragnDropContentArea),this._fileDragnDropContentArea.classList.remove("mwFileInputSelectAreaInvalid")}.bind(this),3e3)},_addListener:function(e,t,i){return e.addEventListener(t,i),{remove:function(){e.removeEventListener(t,i)}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(219)],o=i.dj.d(n,(function(e,t,i){return e([],{bytes_per_chunk:524288,constructor:function(e,t){this.fileUploadChannel=e,this.fileACKChannel=t},uploadFiles:function(e){return this.files=e,this.total_files_chunksCount=this._getTotalFileChunks(e),this._dispatchACKMsgBinded=this._dispatchACKMsg.bind(this),i.subscribe(this.fileACKChannel,this._dispatchACKMsgBinded),this.deferred=new t,this._currentfile=e[0],this._processFile(),this.deferred.promise},_processFile:function(){this.reader=new FileReader,this.num_of_chunks=this._getTotalChunksCurrentFile(this._currentfile);var e=this._getFileChunkRange(this._currentfile,1);this._readFileChunk(e.startChunk,e.endChunk,1)},_dispatchACKMsg:function(e){var t,i;switch(e.data.action){case"handleFileChunkACK":var n=e.data.count+1,o=this._getFileChunkRange(this._currentfile,n);o.endChunk<=this._currentfile.size&&n<=this.num_of_chunks&&(t=this._calProgressValue(e.data.fileCounter,n),i={fileName:this._currentfile.name,progress:t/this.total_files_chunksCount*100},this.deferred.progress(i),this._readFileChunk(o.startChunk,o.endChunk,n));break;case"handleFileCompleteACK":var r=e.data.fileCounter+1;if(r<this.files.length){this._currentfile=this.files[r],this.num_of_chunks=this._getTotalChunksCurrentFile(this._currentfile),this._processFile(),t=this._calProgressValue(r,1),i={fileName:this._currentfile.name,progress:t/this.total_files_chunksCount*100},this.deferred.progress(i)}break;default:throw new Error("Unknown FileUploader action provided.")}},_readFileChunk:function(e,t,i){var n;n=this._currentfile.webkitSlice?this._currentfile.webkitSlice(e,t):this._currentfile.slice(e,t);var o=this;this.reader.onloadend=function(e){if(e.target.readyState===FileReader.DONE){for(var t=new Uint8Array(e.target.result),n="",r=0,a=t.length;r<a;)n+=String.fromCharCode(t[r]),r++;var s={name:o._currentfile.name,count:i,noOfChunks:o.num_of_chunks,contents:n,type:o._currentfile.type,fileCount:o.files.length};o._uploadChunk("handleGetFile",s)}},this.reader.readAsArrayBuffer(n)},_getFileChunkRange:function(e,t){var i,n=0;return i=this.bytes_per_chunk*(t-1),(n=this.bytes_per_chunk*t)>e.size&&(n=e.size),{startChunk:i,endChunk:n}},_uploadChunk:function(e,t){var n={eventType:e,data:t};i.publish(this.fileUploadChannel,n)},_calProgressValue:function(e,t){for(var i=0,n=0;n<e;n++){var o=this.files[n];i+=this._getTotalChunksCurrentFile(o)}return i+=t},_getTotalChunksCurrentFile:function(e){return Math.max(Math.ceil(e.size/this.bytes_per_chunk),1)},_getTotalFileChunks:function(e){for(var t=0,i=0;i<e.length;i++){var n=e[i];t+=Math.max(Math.ceil(n.size/this.bytes_per_chunk),1)}return t},destroy:function(){i.unsubscribe(this.fileACKChannel,this._dispatchACKMsgBinded)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="mwFileInputContentArea">\n <div class="mwFileInputSelectArea">\n <div class="mwFileInputSelectButton">\n <input class="mwHiddenFileInputforUpload" type="file">\n </div>\n </div>\n <div class="mwFileInputFilterArea">\n <div class="mwFileInputFilterMsg"></div>\n <div id = "fileFilter" class="mwFileInputFilter"></div>\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(245),i(213),i(241),i(219),i(6159),i(273),i(2214)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{displayFileOutputDialog:function(e){var t=this._setupAdditionalOptions(e);this.dialog=new o(t)},handleFileDownload:function(t){var n=t.urltoDownload;if(e("ios")){var o="Following file is ready to download\n<strong>"+t.fileName+"</strong>";o=o+"<br/>"+('<a id="fileLink" href="'+n+'" target="_blank" class="mwFileOutputLink"></a>');var r={icon:"none",closeCallback:this._handleDownloadClicked.bind(this),buttonText:["Download","Cancel"],"data-test-id":"mwFileOutputDownloadLink"};this._downLoadDialog=i.displayConfirmDialog("Download file",o,r)}else{var a=document.createElement("iframe");a.src=n,this._setDomStyleForDownloadIFrame(a),window.document.body.appendChild(a)}},_handleDownloadClicked:function(e){this._downLoadDialog&&1===e.response&&this._downLoadDialog.domNode.querySelector(".mwFileOutputLink").click()},_setDomStyleForDownloadIFrame:function(e){t.set(e,{display:"none",width:"0px",height:"0px",top:"-9000px",left:"-9000px",position:"absolute"})},_setupAdditionalOptions:function(e){var t=e;return t.filter&&(t.filter.FilterValue=a.parseFilterValue(t.filter.FilterValue)),t.bindingNode=document.getElementById("gbt_root_node"),t.dataTestId="UIFigureFileOutputDialog",t.userCallback=function(t){n.publish(e.fileIOChannelID,t)},t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(228),i(258),i(286),i(262),i(273),i(6160)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([],{constructor:function(e){this.domNode=this._createDomNodes(),this._buildDialog(e),this._registerEvents(),this._registerCallbacks(e)},_createDomNodes:function(){var e=document.createElement("div"),i=t.toDom(s);e.appendChild(i);var r=e.querySelector(".mwFileNameLabel"),a=document.createElement("label");a.textContent="File name",r.appendChild(a);var l=e.querySelector(".mwFileNameText");a=this._fileName=new n({class:"filename-input","data-test-id":"mwFileOutputFileName"}),l.appendChild(a.domNode);var c=e.querySelector(".mwFileFormatLabel"),d=document.createElement("label");d.textContent="Format",c.appendChild(d);var u=e.querySelector(".mwFileFormat"),h=this._fileFormatInput=new o({editable:!1,class:"fileformat-input","data-test-id":"mwFileOutputFormat"});return u.appendChild(h.domNode),e},_buildDialog:function(e){this._dialog=r.createDialog({title:"Download file",dialogType:r.MODAL,content:this.domNode,draggable:!0,closable:!0,resizable:!1,bindingNode:e.bindingNode,"data-test-id":e.dataTestId,buttons:[{type:a.TYPE.DO_IT,label:"Download","data-test-id":"DownloadButton"},a.CANCEL]}),this._fileFormatInput.set("width",305),this._fileFormatInput.startup();var t="";e.fileName&&(t=e.fileName),this._fileName.set("value",t),this.fileFilterCache=e.filter.FilterValue;var i=this._createOptionsList(e.filter);this._fileFormatInput.set("items",i),this._fileFormatInput.set("value",0)},_createOptionsList:function(e){var t=[];if(e)for(var i=0;i<e.FilterValue.length;i++){var n={};n.label=e.FilterDescription[i],n.value=i,t.push(n)}return t},_registerEvents:function(){this._dialog.addButtonEventListener(a.TYPE.DO_IT,function(){this._handleDownloadClicked()}.bind(this)),this._dialog.addButtonEventListener(a.CANCEL,function(){this._handleCancelClicked()}.bind(this)),this._dialog.on("close",function(e){this._handleDialogClose(e)}.bind(this))},_handleDownloadClicked:function(e){if(""!==this._fileName.value){var t={fileName:this._constructFileName(this._fileName.value),filterIndex:this._fileFormatInput.value+1};this._userCallbackToEval({eventType:"handlePutFile",data:t}),this._dialog.destroy(),delete this._dialog}},_constructFileName:function(e){var t=e,i=this._fileFormatInput.value,n=this.fileFilterCache[i];if("*.*"===this.fileFilterCache[i][0].toString())return t;var o="."+e.slice(2+(e.lastIndexOf(".")-1>>>0));return"."!==o&&-1!==this.fileFilterCache.toString().indexOf(o)?t:t+=n[0]},_handleCancelClicked:function(e){this._userCallbackToEval({eventType:"handleClose"}),this._dialog.destroy(),this._cleanUpListeners(),delete this._dialog},_handleDialogClose:function(e){this._userCallbackToEval({eventType:"handleClose"}),this._cleanUpListeners(),this._dialog.destroy(),delete this._dialog},_cleanUpListeners:function(){this._fileName.destroy(),this._fileFormatInput.destroy(),delete this._fileName,delete this._fileFormatInput},_registerCallbacks:function(e){this._userCallbackToEval=e.userCallback?e.userCallback:function(){}},close:function(){this._dialog&&(this._dialog.destroy(),this._cleanUpListeners(),delete this._dialog)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="mwFileOutputContentArea">\n <div class="mwFileNameLabel"></div>\n <div class="mwFileNameText"></div>\n <div class="mwFileFormatLabel"></div>\n <div class="mwFileFormat"></div>\n</div>'},function(e,t,i){var n,o;n=[i(219),i(6162)],o=i.dj.d(n,(function(e,t){return{_map:{},start:function(t){e.subscribe(t+"/ProgressDialog",this._dispatcher.bind(this))},_dispatcher:function(e){var i=e.data,n=e.data.instanceID,o=e.data.action;switch(delete i.instanceID,delete i.action,o){case"displayProgressDialog":this._map[n]=new t(i);break;case"updateProgressDialog":this._map[n].handlePropertiesSet(i);break;case"deleteProgressDialog":this._map[n].destroy(),delete this._map[n];break;default:throw new Error("Unknown ProgressDialogService action provided.")}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(247),i(241),i(232),i(2215)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{constructor:function(e){this.props=e,this._createView()},destroy:function(){this.dialog.closeProgressDialog(),this.dialog={}},handlePropertiesSet:async function(e){for(var t in e)e.hasOwnProperty(t)&&(this.props[t]=e[t]);if(e.hasOwnProperty("Cancelable")||e.hasOwnProperty("Icon")||e.hasOwnProperty("ShowPercentage")||e.hasOwnProperty("Interpreter"))this._createView();else for(var i in"latex"!==this.props.Interpreter&&"tex"!==this.props.Interpreter||await this.isCreateViewFinished,e)e.hasOwnProperty(i)&&this["_update"+i](e[i])},_createView:async function(){this.isCreateViewFinished=new Promise((e,t)=>{e(this._CreateViewPromiseWrapper())})},_CreateViewPromiseWrapper:async function(){this.dialog&&this.dialog.closeProgressDialog();var e=this.props;e.Icon&&e.Icon.startsWith("/static/")&&(e.Icon=o.createWorkerRoutingHostUrl(e.Icon)),"latex"===e.Interpreter||"tex"===e.Interpreter?this.message=await r.createMessageWidgetAsync(e.Message,e.Interpreter):this.message=r.createMessageWidget(e.Message,e.Interpreter),this.dialog=n.displayProgressDialog("",this.message.domNode,{value:Math.round(100*e.Value),indeterminate:e.Indeterminate,cancelButtonText:e.CancelText,showPercentage:e.ShowPercentage,icon:e.Icon,showCancelButton:e.Cancelable,cancelCallback:this._handleUserCancelRequest.bind(this),className:"mwUIFigureProgressDialog","data-test-id":"UIFigureProgressDialog",specifiedFocusItem:1}),this.dialog.domNode.style.removeProperty("height"),this._updateTitle(e.Title),this._updateCancelRequested(e.CancelRequested);let i={linkCallback:function(e){t.publish(this.props.callbackChannelID,e)}.bind(this)};this.message.postProcessForDialog(i)},_handleUserCancelRequest:function(){t.publish(this.props.callbackChannelID,{}),this.props.CancelRequested=!0,this._updateCancelRequested(!0)},_updateValue:function(e){this.dialog.progressBar.set("value",Math.round(100*e))},_updateIndeterminate:function(e){!0===this.dialog.progressBar.get("showPercentage")?this._createView():this.dialog.progressBar.set("indeterminate",e)},_updateMessage:function(e){this.message.setMessage(e)},_updateTitle:function(e){this.dialog.title=e,""===this.dialog.title&&!1===this.props.Cancelable?this.dialog._titleBar.style.display="none":this.dialog._titleBar.style.removeProperty("display")},_updateCancelRequested:function(e){!1!==this.props.Cancelable&&(!0===e?(this.dialog.disableCancelButton(),this._updateCancelText(this.props.CancelRequestedText)):(this.dialog.enableCancelButton(),this._updateCancelText(this.props.CancelText)))},_updateCancelText:function(e){!0===this.props.Cancelable&&(this.dialog._defaultButton.textContent=e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1499),i(2130)],o=i.dj.d(n,(function(e,t,i){return e([],{message:"",urlMap:void 0,linkCallback:void 0,constructor:function(){this.domNode=document.createElement("div"),this.domNode.classList.add("mwHTMLMessageNode")},setMessage:function(e){for(;this.domNode.firstChild;)this.domNode.removeChild(this.domNode.lastChild);Array.isArray(e)&&(e=e.join("<br>")),e=e.replace(/(?:\r\n|\r|\n)/g,"<br>"),this.message=i.sanitizeHtmlForUILabelInterpreter(e),this.domNode.appendChild(this.message),t.addLinkAnchorTarget(this.domNode),t.blockAnchorInteractivity(this.domNode),this.urlMap=t.addLinkAnchorClickListeners(this.domNode,this)},postProcessForDialog:function(e){this.linkCallback=e.linkCallback},_handleClick:function(e){if(!this.disabled){this.linkCallback({eventname:"link-clicked",URL:this.urlMap[e.target],TreatAsMATLABLink:!0}),e.target.classList.add("mwMessageVisited")}return!0},_handleNativeLinkClick:function(e){e.target.classList.add("mwMessageVisited")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(247),i(6165),i(665)],o=i.dj.d(n,(function(e,t,i,n){return e([],{message:"",renderer:void 0,equationContainer:void 0,equationNodes:void 0,constructor:function(e){this.domNode=document.createElement("div"),this.equationContainer=document.createElement("div"),this.domNode.classList.add("mwLatexMessageNode"),this.renderer=e},setMessage:async function(e){await n.loadFonts(),this.message=e;let t=this.message.split("\n");for(;this.domNode.firstChild;)this.domNode.removeChild(this.domNode.firstChild);let o={renderer:this.renderer,containerClass:"mwEquationContainerNode",equationClass:"mwEquationNode"},r=await i.renderEquation(this.domNode,t,o);this.equationContainer=r.containerNode},postProcessForDialog:async function(){await this.setMessage(this.message);const e=parseInt(window.getComputedStyle(this.domNode.parentNode).height,10),t=parseInt(window.getComputedStyle(this.domNode.parentNode)["max-height"],10);this.domNode.parentNode.style["overflow-y"]=e<t?"hidden":"scroll"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(665)],o=i.dj.d(n,(function(e){return{renderEquation:async function(e,t,i){let n,o=this._getRenderer(i),r=this._getContainerClass(i),a=this._getEquationClass(i),s=document.createElement("div");s.classList.add(r),e.appendChild(s);let l=[],c=[];for(n=0;n<t.length;n++)l.push(document.createElement("div")),l[n].classList.add(a),s.appendChild(l[n]),c.push(o(t[n],l[n]));return await Promise.all(c),{containerNode:s,equationNodes:l}},_getRenderer:function(t){let i;switch(t.renderer){case"latex":i=e.renderTeX;break;case"tex":i=e.renderSimpleTeX;break;default:i=e.renderTeX}return i},_getContainerClass:function(e){let t;return t=e.containerClass?e.containerClass:"equationContainerNode",t},_getEquationClass:function(e){let t;return t=e.equationClass?e.equationClass:"equationNode",t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(247)],o=i.dj.d(n,(function(e,t){return e([],{message:"",constructor:function(){this.domNode=document.createElement("div"),this.domNode.classList.add("mwPlainTextMessageNode")},setMessage:function(e){this.message=t.escapeHtml(e),this.message=this.message.replace(/(?:\r\n|\r|\n)/g,"<br>"),this.domNode.innerHTML=this.message},postProcessForDialog:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(219),i(241)],o=i.dj.d(n,(function(e,t){return{start:function(t){e.start(),e.subscribe(t,this._dispatcher.bind(this))},_dispatcher:function(e){this.showURL(e.data)},showURL:function(e){var i=window.open(e);if(!i||i.closed||void 0===i.closed){var n='Your browser is blocking pop-ups from this app.<br/><br/>Please configure your browser to allow pop-ups or<br/><a style="font-weight: bold" target="_blank" href="'+e+'">Click here to open</a> the pop-up.';t.displayAlertDialog("Pop-up Blocked",n,{icon:"info",specifiedFocusItem:1})}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(1463)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e,i){this.channelID=e,this.rootNode=i,this._setupAppCaptureFcn=this.setupAppCapture.bind(this),this._cleanupAppCaptureFcn=this.cleanupAppCapture.bind(this),this._getPngBase64Fcn=this.getPngBase64.bind(this),t.start(),t.subscribe(e+"/setupAppCapture",this._setupAppCaptureFcn),t.subscribe(e+"/cleanupAppCapture",this._cleanupAppCaptureFcn),t.subscribe(e+"/getPngBase64",this._getPngBase64Fcn)},setupAppCapture:function(e){var i=e.data.includeFigureTools;this.rootNode.querySelectorAll("canvas").forEach((function(e){var t=document.createElement("div"),i=e.toDataURL();Array.from(e.attributes).forEach((function(e){t.setAttribute(e.nodeName,e.nodeValue)})),t.classList.add("exportCanvasBacker"),e.parentNode.insertBefore(t,e),t.style.background="url("+i+")",t.style.backgroundSize="cover"})),i||this.rootNode.classList.add("hideFigureTools");var n=i?this.rootNode.getBoundingClientRect():this.rootNode.querySelector(".gbtFigureFrame").getBoundingClientRect();this.addPrintStyles("@page { size: "+n.width+"px "+n.height+"px;}"),t.publish(this.channelID+"/setupAppCaptureDone",{})},cleanupAppCapture:function(){this.rootNode.querySelectorAll("div.exportCanvasBacker").forEach((function(e){e.remove()})),this.rootNode.querySelectorAll("style.printStyles").forEach((function(e){e.remove()})),this.rootNode.classList.remove("hideFigureTools"),t.publish(this.channelID+"/cleanupAppCaptureDone",{})},addPrintStyles:function(e){var t=document.createElement("style");t.type="text/css",t.innerText=e,t.className="printStyles",this.rootNode.appendChild(t)},getPngBase64:function(e){e.data.includeFigureTools?this.nodeToCapture=this.rootNode:(this.nodeToCapture=this.rootNode.querySelector(".gbtFigureFrame"),this.nodeToCapture.classList.add("hideFigureTools")),setTimeout(function(){i.domToPngDataUri(this.nodeToCapture).then(function(e){this.nodeToCapture&&this.nodeToCapture.classList.remove("hideFigureTools"),e=e.slice(22),t.publish(this.channelID+"/getPngBase64Done",{result:e})}.bind(this),function(e){this.nodeToCapture&&this.nodeToCapture.classList.remove("hideFigureTools"),t.publish(this.channelID+"/getPngBase64Done",{result:""})}.bind(this))}.bind(this),25)},destroy:function(){t.unsubscribe(this.channelID+"/setupAppCapture",this._setupAppCaptureFcn),t.unsubscribe(this.channelID+"/cleanupAppCapture",this._cleanupAppCaptureFcn),t.unsubscribe(this.channelID+"/getPngBase64",this._getPngBase64Fcn)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(230),i(965)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{constructor:function(e){this._actResponder=e,this._MessageServiceProxy=new n,this._started=!1},start:function(e){if(this.isStarted())throw new Error("CommandReceiver already started");if(void 0===e||""===e)throw new Error("CommandReceiver started with bad channelID");this.own(this._MessageServiceProxy.subscribe(e,this._dispatchCommand.bind(this))),this._MessageServiceProxy.publish(e+"/channelReady",{}),this._started=!0},isStarted:function(){return this._started},_dispatchCommand:function(e){if("sendACT"!==e.data.cmd)throw new Error("Cannot dispatch: "+e.data.cmd);this._actResponder.pubsubUpdate(e.data)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(965)],o=i.dj.d(n,(function(e,t,i){return t([e],{constructor:function(e){this._MessageServiceProxy=new i,this.own(this._MessageServiceProxy),this._PubSubLogger=e},log:function(e){void 0!==this._PubSubLogger&&this._PubSubLogger.log("FigureACTResponder "+e)},pubsubUpdate:function(e){if(!e.returnChannel)throw new Error("pubsubUpdate message is missing returnChannel");this.pubsubACT=e.ACT,this.returnChannel=e.returnChannel,this.log("received pubsub ACT: "+e.ACT+" for channel "+e.returnChannel),this._compareTokensAndRespond()},peermodelUpdate:function(e){this.peermodelACT=e,this.log("received peermodel ACT: "+e),this._compareTokensAndRespond()},_compareTokensAndRespond:function(){null!==this.peermodelACT&&null!==this.pubsubACT&&this.peermodelACT===this.pubsubACT&&this._MessageServiceProxy.publish(this.returnChannel,{ACT:this.pubsubACT})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6172),i(6173),i(6174),i(6175)],o=i.dj.d(n,(function(e,t){return t(e,"gbtcomponents/resources/uitools/nls/figure",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={FullscreenModeEscapeHint:"Esc キーの押下で全画面表示モードが終了"}},function(e,t,i){e.exports={FullscreenModeEscapeHint:"전체 화면 모드에서 나가려면 Esc 키를 누름"}},function(e,t,i){e.exports={FullscreenModeEscapeHint:"按 ESC 键退出全屏模式"}},function(e,t,i){e.exports={root:{FullscreenModeEscapeHint:"Press ESC to exit full-screen mode"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(210)],o=i.dj.d(n,(function(e,t){return e(null,{title:"",postCreate:function(){this.inherited(arguments),t.add(this.domNode,"gbtTitleMixin")},_setTitleAttr:function(e){if("string"!=typeof e)throw new Error("'title' property expects a literal string");if(!this.titleNode)throw new Error("'titleNode' is expected in the template of the widget");this.titleNode.textContent=e,0===e.toString().length?t.add(this.titleAreaNode,"gbtTitleBlank"):t.remove(this.titleAreaNode,"gbtTitleBlank"),this._set("title",e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="backgroundColorNode" class="${baseClass} gbt-userSelectNone" data-tag="${dataTag}">\n \x3c!-- This wrapper div needed to make panel disable in gridlayout --\x3e\n <div class="panelWrapper" data-dojo-attach-point="panelWrapperNode">\n <div data-dojo-attach-point=\'titleAreaNode\' class=\'gbtTitleAreaNode\'>\n <div data-dojo-attach-point=\'titleNode\' class=\'gbtPanelTitle\'></div>\n </div>\n <div data-dojo-attach-point=\'titleUnderlineNode\' class=\'gbtPanelTitleUnderline\'></div>\n <div class="gbtPanelContent" data-dojo-attach-point="scrollableNode">\n <div class="scrollableContentsNode" data-dojo-attach-point="scrollableContents,containerNode,canvasContents">\n </div>\n </div>\n \x3c!-- This div is overlay to make panel disabled --\x3e\n <div class="gbtPanelDisableLayer" data-dojo-attach-point="disableNode"></div>\n </div>\n \x3c!-- This div is to move the focus away from panel children on key tab event --\x3e\n <div data-dojo-attach-point="disableFocusNode" tabindex="-1"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(2216)],o=i.dj.d(n,(function(e,t){return e([t],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(211),i(217),i(222),i(480),i(440),i(6180),i(971),i(441),i(481),i(482),i(592),i(687),i(298),i(295),i(840),i(287)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e([s,a,c,d,u,h,p,g,m,_],{constructor:function(){this._UnitsService=new f,this._cachedInnerSize=[0,0,0,0],this.own(t(this.getPeerNode(),"propertiesSet",i.hitch(this,(function(e){e.data.newValues.hasOwnProperty("Position")&&this._handlePositionSet()}))))},createView:function(e){this.inherited(arguments),this.widget=new l({dataTag:this.dataTag}),e.parentDijit?e.parentDijit.addChild(this.widget):n.place(this.widget.domNode,e.parentDomNode),this.widget.startup(),this.own(t(this.widget,"selectionEvent",i.hitch(this,"_updateSelectedTab")),t(this.peernode,"childAdded",this._handleTabAdded.bind(this)),t(this.peernode,"childRemoved",this._handleTabContentChanged.bind(this)));var o=this.getPeerNode().getProperties();this._setProperties(o),this._updateCachedInnerSize(),this.addMouseEventListeners(this.widget.domNode),this.emit("viewReady")},setPositionInPixels:function(e){this.inherited(arguments);var t=this.getPositionPropertyFromPeerNode();t.Units&&"normalized"===t.Units.toLowerCase()&&this._handlePositionSet()},resize:function(){this.widget.resize(),this._handlePositionSet()},handleViewInDom:function(){this.inherited(arguments),this.revalidate(),this._handlePositionSet()},_handleTabAdded:function(e){this._handleTabContentChanged(e),this.own(t(e.data.child,"propertiesSet",this._handleTabPropertiesSet.bind(this)))},_handleTabPropertiesSet:function(e){e.data.newValues.hasOwnProperty("Title")&&this.recomputeFitSize()},_handleTabContentChanged:function(e){var t=this.getPeerNode().getProperty("Tooltip");this._Tooltip(t)},_updateSelectedTab:function(e){e&&this.getPeerNode().setProperty("SelectedTab",e.tabid)},_resizeView:function(e){this._updateBorderVisibility(e),this.inherited(arguments)},_Visible:function(e){this.widget.domNode&&(this.inherited(arguments),this.resize())},_SelectedTab:function(e){var t;""!==e&&"string"==typeof e&&(this.widget.set("selectedtab",e),this.getPeerNode().hasDescendant(e)&&(t=this.getPeerNode().getDescendant(e),this.widget.set("showingChild",t.getController().widget)))},_TabLocation:function(e){"top"===e||"bottom"===e?this.widget.set("shrinkTabsToFit",!1):this.widget.set("shrinkTabsToFit",!0),this.widget.set("tabPosition",e),this._handlePositionSet()},_Tooltip:function(e){this.getPeerNode().getChildren().length>0?this.widget.setTooltip(""):this.inherited(arguments)},_Enable:function(e){this.widget.set("enabled",e)},_updateCachedInnerSize:function(){var e=this.widget.containerNode.getBoundingClientRect(),t=this.widget.domNode.getBoundingClientRect(),i=this.widget.containerNode.clientWidth,n=this.widget.containerNode.clientHeight,o=e.left-t.left;o<0&&(o=0);var r=t.bottom-e.bottom;r<0&&(r=0);var a=this.getPositionInPixels();this._cachedInnerSize=[a[0]+o,a[1]+r,i,n]},getCachedInnerSize:function(){return this._cachedInnerSize},_handlePositionSet:function(){var e=this.getCachedInnerSize();this._updateCachedInnerSize();var t=this.getCachedInnerSize();e[2]===t[2]&&e[3]===t[3]||this.getPeerNode().getChildren().forEach((function(e){var i=e.getController();i&&i.sendTabPositionToServer(t)}))},_updateBorderVisibility:function(e){e[0]<=2*this.widget.getBorderWidth()||e[1]<=2*this.widget.getBorderWidth()?this.widget.set("isBorderVisible",!1):this.widget.set("isBorderVisible",!0)},_getInnerPositionInPixels:function(){return this.getCachedInnerSize()},_setInnerPositionInPixels:function(e){var t=this.getCachedInnerSize(),i=this.getPositionInPixels(),n=this.calculateInsets(t,i),o=this.getOuterFromInner(e,n);this.setPositionInPixels(o)},dispatchPositionChangedEvent:function(){var e=this._getOuterPositionInPixels();this._dispatchChangedEventToServer("positionChangedEvent",e,e)},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){var e=this.computeContentFitSize(),t=this.widget.getConstants();switch(e[0]=Math.max(e[0],t.MIN_CONTENT_AREA),e[1]=Math.max(e[1],t.MIN_CONTENT_AREA),e[0]+=2*this.widget.getBorderWidth(),e[1]+=2*this.widget.getBorderWidth(),this.getPeerNode().getProperty("TabLocation")){case"top":case"bottom":e[1]+=t.HORIZONTAL_TAB_BAR_HEIGHT+t.DIVIDER_THICKNESS;var i=t.HORIZONTAL_TAB_TITLE_MIN_WIDTH+2*t.HORIZONTAL_TAB_BAR_BUTTON_WIDTH;e[0]=Math.max(e[0],i);break;case"left":case"right":for(var n=v.getWidgetFontStyleStringFromDom(this.widget.domNode),o=this.getPeerNode().getChildren(),r=0,a=0;a<o.length;a++){var s=o[a].getProperty("Title"),l=v.getTextPosition(s,n);r=Math.max(r,l.w)}r+=t.VERTICAL_TAB_TITLE_PADDING,r=Math.max(r,t.VERTICAL_TAB_BAR_MIN_WIDTH),e[0]+=r+t.DIVIDER_THICKNESS}return e},isChildRelevantForFitSize:function(e){return!0},_editPropertiesAffectingFitSize:function(e){return e.push("TabLocation"),e},_getContextMenuTargets:function(){return[this.widget.containerNode]},validateMouseEventTarget:function(e){return e===this.widget.containerNode||e===this.widget.domNode||e===this.widget.tablist.containerNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(210),i(214),i(488),i(442),i(358),i(343),i(1530),i(289)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){var u={BORDER_WIDTH:1,DIVIDER_THICKNESS:1,MIN_CONTENT_AREA:100,HORIZONTAL_TAB_BAR_HEIGHT:22,HORIZONTAL_TAB_BAR_BUTTON_WIDTH:18,HORIZONTAL_TAB_TITLE_MIN_WIDTH:51,VERTICAL_TAB_BAR_MIN_WIDTH:65,VERTICAL_TAB_TITLE_PADDING:28};return e([r,a,s,l,c,d],{reserveSpaceForTabs:!0,minimumTabWidth:50,maximumTabWidth:100,isContentBorderVisible:!1,tabBackground:"rgb(200,200,200)",showingTabBackground:"rgb(240,240,240)",isBorderVisible:!0,constructor:function(e){if(!e||!e.dataTag)throw new Error("dataTag must be passed to the TabGroup constructor");this.dataTag=e.dataTag},postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-tag",this.dataTag),i.set(this.domNode,{position:"absolute"}),n.add(this.domNode,"gbtWidget gbtTabGroup"),this.own(o.after(this,"addChild",t.hitch(this,this._checkIfSelected),!0)),this.watch(r.SHOWING_CHILD,(function(e,t,i){this.emit("selectionEvent",i)}))},_checkIfSelected:function(e){e.get("tabid")===this.get("selectedtab")&&this.set("showingChild",e)},_setIsBorderVisibleAttr:function(e){e?n.add(this.domNode,"gbtTabGroupBorder"):n.remove(this.domNode,"gbtTabGroupBorder"),this._set("isBorderVisible",e)},getBorderWidth:function(){return u.BORDER_WIDTH},getConstants:function(){return u},_setWidthAttr:function(e){e>0?this._setSize("width",e):(i.set(this.domNode,{width:"0px"}),this._set("width",0)),this.resize()},_setHeightAttr:function(e){e>0?this._setSize("height",e):(i.set(this.domNode,{height:"0px"}),this._set("height",0)),this.resize()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(213),i(231),i(480),i(440),i(6182),i(962),i(1170),i(737),i(441),i(481),i(482),i(404),i(1148),i(284),i(298),i(295),i(840)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return e([a,r,l,c,d,u,h,p,f,g,_,v,b],{constructor:function(){},createView:function(e){this.inherited(arguments);var t=this.getPeerNode().getParent().getController().widget;this.widget=new s({dataTag:this.getPeerNodeId()});var i=this.getPeerNode().getParent().getChildIndex(this.getPeerNode());if(e.parentDijit)e.parentDijit.addChild(this.widget,i,!1);else{var n=o.getEnclosingWidget(e.parentDomNode);n.addChild(this.widget,i,!1)}this.widget.set("thumbDomNode",t.getTabForChild(this.widget).domNode),this._setProperties(this.getPeerNode().getProperties()),this.sendTabPositionToServer(),this.startEmittingCommonResizeEvent(),this.addMouseEventListeners(this.widget.containerNode),this.addMouseEventListeners(this.widget.thumbDomNode),this.emit("viewReady")},destroy:function(){this.stopEmittingCommonResizeEvent(),this.getParentController().widget.removeChild(this.widget),this.inherited(arguments)},_Title:function(e){this.widget.set("title",e),this.getPeerNode().getParent().getController().resize()},_Enable:function(e){this.widget.set("enabled",e)},_Visible:function(e){},_ForegroundColor:function(e){this.inherited(arguments);var t=m.toJSRGB(e),i=this.getPeerNode().getParent().getController().widget.getTabForChild(this.widget);i&&(i.domNode.style.color=t)},_Position:function(e){},sendTabPositionToServer:function(e){void 0===e&&(e=this.getPeerNode().getParent().getController().getCachedInnerSize());var t=this._updateLocationValues(e);this.setPositionInPixels(t),this._redrawCanvas()},_updateLocationValues:function(e){var t=this.getPeerNode().getParent().getController().getPositionInPixels(),i=e[0]-t[0],n=e[1]-t[1],o=this.getPeerNode().getParent().getController().widget.getBorderWidth();return[i-o,n-o,e[2],e[3]]},_resizeView:function(e){this.widget.domNode.style.width=e[0]+"px",this.widget.domNode.style.height=e[1]+"px"},_setPositionInUnits:function(e){},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){return this.computeContentFitSize()},_getContextMenuTargets:function(){var e=[this.widget.containerNode,this.widget.thumbDomNode];return this.widget.thumbDomNode.childNodes.forEach((function(t){e.push(t)})),e},validateMouseEventTarget:function(e){return e===this.widget.containerNode||this.widget.thumbDomNode.contains(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(210),i(216),i(276),i(963),i(374),i(358),i(289),i(970),i(6183)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([o,n,r,a,s,l,c],{templateString:d,doLayout:!1,constructor:function(e){if(!e||!e.dataTag)throw new Error("dataTag must be passed to the Tab constructor");this.dataTag=e.dataTag,this.set("title","A Tab"),this.set("tabid",this.dataTag)},postCreate:function(){this.inherited(arguments),t.set(this.tabContent,{width:"100%"}),t.set(this.tabContent,{height:"100%"}),t.set(this.tabContent,{top:"0px"}),t.set(this.tabContent,{left:"0px"}),i.add(this.tabContent,"gbtWidget gbtTab")},_setForegroundcolorAttr:function(e){this._set("foregroundcolor",e),t.set(this.tabContent,{color:e})},_setThumbDomNodeAttr:function(e){this._set("thumbDomNode",e)},_getNodeToApplyFontProperties:function(){var e=this.thumbDomNode;return e||(e=this.domNode),e},getTooltipNode:function(){var e=this.thumbDomNode;return e?[e,this.domNode]:[this.domNode]}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="${baseClass} gbtTabContainer" data-dojo-attach-point=\'backgroundColorNode, scrollableNode\' data-tag="${dataTag}">\n <div class="scrollableContentsNode" data-dojo-attach-point="scrollableContents">\n \t<div class="gbtTabContent" data-dojo-attach-point="containerNode, tabContent,canvasContents">\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(210),i(213),i(204),i(206),i(480),i(440),i(441),i(2219),i(2222),i(2223),i(2224),i(592),i(6185),i(6186),i(284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([a,r,s,u,h],{setMenuType:function(e){this.menuType=e},setWidget:function(e){var t=this.peernode.getId();this.widget=new e({dataTag:t})},_setWidgetIndex:function(e){this.widgetIndex=this.strategy.getParentWidget(this).getIndexOfChild(this.widget)},removeWidget:function(){this.strategy.getParentWidget(this).removeChild(this.widget)},preChildAdd:function(){"CheckBoxMenuItem"===this.menuType&&(this.deleteBinding(this.peernode.getId()),this._setWidgetIndex(this.peernode.getParent()),this.removeWidget(),this.createWidget(d),this.setMenuType("PopupMenuItem"),this.own(o(this.widget,"focus",n.hitch(this,"_MenuItemClicked"))))},preChildRemove:function(){"PopupMenuItem"===this.menuType&&0===this.widget.menu.getChildren().length&&(this._setWidgetIndex(this.peernode.getParent()),this.removeWidget(),this.createWidget(c),this.setMenuType("CheckBoxMenuItem"),this.own(this.widget.on("menuopened",this._MenuItemClicked.bind(this))))},createWidget:function(e){this.setWidget(e),t.add(this.widget.domNode,"gbtWidget"),this.widget.startup(),this.Parent=this.peernode.getParent().getController(),this._addChild(this.widgetIndex),this._setProperties(this.peernode.getProperties())},getParentMenuBarItem:function(e){for(this.node=e;"matlab.ui.Figure"!==this.node.getParent().getType();)this.node=this.node.getParent();return this.node},createView:function(e){this.inherited(arguments),this.MenuBarItem=this.getParentMenuBarItem(this.peernode),this.figure=this.MenuBarItem.getParent(),this.menuBar=this.figure.getController().getMenuBar(),this.actionDataService=this.figure.getController().getActionService(),this.actionDataService||(this.actionDataService=this.createActionDataService(this.figure)),"matlab.ui.Figure"===this.peernode.getParent().getType()?(this.setMenuType("MenuBarItem"),this.strategy=p,this.menuBar=this.peernode.getParent().getController().getMenuBar(),this.createWidget(l)):"matlab.ui.container.ContextMenu"===this.peernode.getParent().getType()?(this.setMenuType("CheckBoxMenuItem"),this.strategy=f,this.createWidget(c)):(this.setMenuType("CheckBoxMenuItem"),this.strategy=p,this.peernode.getParent().getController().preChildAdd(),this.createWidget(c)),this.own(this.widget.on("menuopened",this._MenuItemClicked.bind(this))),this.own(o(this.menuBar.DockControls,"click",function(){this.figure.getController().figureToolsController.peerNode.dispatchEventToServer("dockControlsClicked",{winStyleValue:"docked"})}.bind(this))),this.emit("viewReady")},_MenuItemClicked:function(e){"CheckBoxMenuItem"===this.menuType&&this.figure.getController().widget.domNode.focus();this.handleUserInteraction("MenuItemClicked",{})},getDisplayLabel:function(e){var t=e;return t=(t=(t=(t=(t=(t=(t=t.replace(/&&/g,"0x0x0f")).replace(/&&&/g,"0x0x0f")).replace(/&/g,"")).replace(/ 0x0x0f /g," & ")).replace(/ 0x0x0f/g," & ")).replace(/0x0x0f /g," & ")).replace(/0x0x0f/g," & ")},_Label:function(e){var i=e;this.widget.set("value",e);var o=this.figure.getController(),r=this.peernode.getId();if(this.labelArr=o.getLabelArr(),o.updateLabelArr(r),-1!==this.widget.get("value").indexOf("&")){i=this.getDisplayLabel(e);var a=o.findMnemonicKey(e);if(-1!==a){var s=r+"MnemonicMBI";if(this.updateBinding(s,"ALT"),"MenuBarItem"===this.menuType&&!this.hasBinding(a)){var l={id:s,shortcut:"",enabled:!0,callback:n.hitch(this,(function(){this.widget.openMenu()}))};this.addBinding(l,"ALT",a)}var c={label:i,peernodeID:r,widget:this.widget};if(o.addToLabelArr(c),this.menuBar.get("MnemonicActive")){var d=o.splitText(this.widget);t.toggle(d.children[1],"mnemonic")}}}this.widget.set("text",i)},_Enable:function(e){"on"===e||!0===e?this.widget.set("disabled",!1):(this.widget.set("disabled",!0),"MenuBarItem"===this.menuType&&this.widget.isMenuOpen()&&this.widget.closeMenu())},_ForegroundColor:function(e){var t=this.widget.textNode;i.set(t,{color:g.toJSRGB(e)})},_Separator:function(e){if("MenuBarItem"!==this.menuType){var i=this.widget.domNode;!0===(e=g.toJSBoolean(e))?t.add(i,"gbtMenuSeparator"):"off"!==e&&!1!==e||t.remove(i,"gbtMenuSeparator")}},_Checked:function(e){"CheckBoxMenuItem"===this.widget.type&&(!0===(e=g.toJSBoolean(e))?this.widget.set("checked",!0):"off"!==e&&!1!==e||this.widget.set("checked",!1))},_Accelerator:function(e){if("CheckBoxMenuItem"===this.widget.type){var t,i=this.peernode;t="CTRL + "+(e=e.toUpperCase().toString());var o=i.getId()+"shortcut";if(this.updateBinding(o,"SYSCTRL"),this.validValue(e)){if(!this.hasBinding(e)){var r={id:o,shortcut:"",enabled:!0,callback:n.hitch(this,(function(){this.widget.emit("menuopened")}))};this.addBinding(r,"SYSCTRL",e)}this.widget.set("shortcut",t)}else this.widget.set("shortcut","")}},_Position:function(e){var t="MenuBarItem"===this.menuType?this.menuBar:this.strategy.getParentWidget(this),i=e-1;i<(t&&t.getChildren()||[]).length&&(t.removeChild(this.widget),t.addChild(this.widget,i))},destroy:function(){var e=this.widget;e&&"destroy"in e&&e.destroy instanceof Function&&e.destroy();var t=this.peernode.getId();this.figure.getController().updateLabelArr(t),this.deleteBinding(t),this.Parent&&this.Parent.preChildRemove instanceof Function&&this.Parent.preChildRemove()},_addChild:function(e){"MenuBarItem"===this.menuType?this.menuBar.addChild(this.widget,e):this.strategy.getParentWidget(this).addChild(this.widget,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getParentWidget:function(e){return e.Parent.widget.get("menu")},addMenu:function(e,t){e.Parent.widget.get("menu").addChild(e.widget,t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getParentWidget:function(e){return e.Parent.widget},addMenu:function(e,t){e.Parent.widget.addChild(e.widget,t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(480),i(440),i(592),i(284),i(6188),i(331),i(450)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([n,i,o],{createView:function(e){this.inherited(arguments),this.widget=new a({dataTag:this.getPeerNodeId()}),this.getParentController().figureToolsController.addToolbar(this.widget),this.widget.startup(),this._setProperties(this.getPeerNode().getProperties()),this.own(t(this.widget.DockControls,"click",function(){this.getParentController().figureToolsController.peerNode.dispatchEventToServer("dockControlsClicked",{winStyleValue:"docked"})}.bind(this))),this.emit("viewReady")},_Visible:function(e){this.inherited(arguments);var t=r.toJSBoolean(e);this.getParentController().figureToolsController.updateToolbarStatus(t)},destroy:function(){this.getParentController().figureToolsController.deleteToolbar(this.widget),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(210),i(204),i(736),i(215),i(216),i(442),i(272),i(331),i(243),i(450),i(6189)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsSAAALEgHS3X78AAAARElEQVQokWP8//8/AymAiSTV9NfAyMj4H4aRxbBqAEn8//+fEZdCuDi2UEJXjGwQ1lBCVoAOWAiZTpST8AEaRxwDAwMAmmEaGdXIgGgAAAAASUVORK5CYII=";return e([r,a,s,l],{baseClass:"gbtWidget gbtToolbar",templateString:h,visibility:!0,constructor:function(e){},buildRendering:function(){this.inherited(arguments),this.dropdownMenu=new c({}),this.dropdownMenu.domNode.classList.add("gbtToolbarOverflowDropdownMenu"),this.dropdownBtn=new u({menu:this.dropdownMenu,iconAlignment:"top"}),this.dropdownBtn.domNode.classList.add("gbtToolbarOverflowDropdownButton"),this.dropdownBtn.placeAt(this.overflowNode),this.dropdownBtn.startup(),this.DockControls=new d({icon:p,iconAlignment:"top",width:16,height:16,verticalAlignment:"middle",horizontalAlignment:"center"}),this.DockControls.placeAt(this.toolbarDockControlsNode),this.DockControls.startup(),this.DockControls.domNode.classList.add("gbtWidget"),this.DockControls.domNode.classList.add("gbtToolbarDockControlsButton")},startup:function(){window.addEventListener("resize",this._layout.bind(this)),this._ThrottleResize=o.throttle(this._processThrottleResize,o.THROTTLE_DELAY,{leading:!0,trailing:!0})},_layout:function(){this._ThrottleResize&&this._ThrottleResize()},postCreate:function(){this.inherited(arguments),i.add(this.containerNode,"gbtToolContainer"),this.own(this.watch("visibility",this._handleOverflowOnResizeAndChildRemoved.bind(this)))},addChild:function(e,t,i){this.inherited(arguments),(i=i||!1)||(this.own(e.watch("visibility",this._handleOverflowOnResizeAndChildRemoved.bind(this))),e.domNode.classList.contains("gbtPushTool")||e.domNode.classList.contains("gbtToggleTool")?this._handleOverflowOnChildAdded(e):e.domNode.classList.contains("gbtToolSeparator")&&this._handleOverflowOnResizeAndChildRemoved())},removeChild:function(){this.inherited(arguments),this._handleOverflowOnResizeAndChildRemoved()},_processThrottleResize:function(){this._handleOverflowOnResizeAndChildRemoved()},_getVisibilityDomClassName:function(){return"gbtHideToolbar"},_handleOverflowOnResizeAndChildRemoved:function(e){for(var t=this.getChildren(),i=this.dropdownMenu.getChildren(),n=this.containerNode.getBoundingClientRect(),o=n.width,r=n.right,a=!1,s=t.length-1;s>=0;s--){var l=t[s].domNode.classList.contains("gbtHideTool");if(l&&t[s].domNode.classList.remove("gbtHideTool"),!(t[s].domNode.getBoundingClientRect().right>=r)){l&&t[s].domNode.classList.add("gbtHideTool");break}t[s].addOverflowClass(),this.dropdownMenu.addChild(t[s],0),a=!0,l&&t[s].domNode.classList.add("gbtHideTool")}if(!a)for(var c=0;c<i.length;c++){var d=(t=this.getChildren())[t.length-1];if(d)var u=d.domNode.getBoundingClientRect().right;i[c].isToolSeparator&&i[c].isInOverflow()&&i[c].removeOverflowClass();var h=window.getComputedStyle(i[c].domNode),p=parseFloat(h.width)+parseFloat(h.marginLeft)+parseFloat(h.marginRight);if(!(t.length>0&&r-u>p||0===t.length&&o>p)){i[c].isToolSeparator&&!i[c].isInOverflow()&&i[c].addOverflowClass();break}i[c].removeOverflowClass(),this.addChild(i[c],"last",!0),a=!0}this._updateDropdownButtonVisibility()},_handleOverflowOnChildAdded:function(e){var t=this.getChildren(),i=this.containerNode.getBoundingClientRect(),n=i.width,o=i.right,r=window.getComputedStyle(e.domNode),a=parseFloat(r.width)+parseFloat(r.marginLeft)+parseFloat(r.marginRight);(this.dropdownMenu.hasChildren()||t.length>1&&o-t[t.length-2].domNode.getBoundingClientRect().right<=a||1===t.length&&n<=a)&&(e.addOverflowClass(),this.dropdownMenu.addChild(e)),this._updateDropdownButtonVisibility()},_updateDropdownButtonVisibility:function(){this.dropdownMenu.hasChildren()?this.overflowNode.style.visibility="visible":this.overflowNode.style.visibility="hidden"}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="toolbarContentNode" class="${baseClass}">\n\n\t<div data-dojo-attach-point="containerNode">\n\n\t</div>\n\t\n\t<div data-dojo-attach-point="overflowNode" class="gbtToolbarOverflowNode">\n\n\t</div>\n\t<div data-dojo-attach-point="toolbarDockControlsNode" class="gbtToolbarDockControlsNode">\n\n\t</div>\n\n</div>'},function(e,t,i){var n,o;n=[i(203),i(2225),i(6192)],o=i.dj.d(n,(function(e,t,i){return e([t],{createView:function(e){this.inherited(arguments),this.widget=new i({dataTag:this.getPeerNodeId()}),e.parentDijit&&e.parentDijit.addChild(this.widget),this.widget.startup(),this._setProperties(this.getPeerNode().getProperties()),this.own(this.widget.on("click",this._ToolClicked.bind(this))),this.emit("viewReady")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(442),i(354)],o=i.dj.d(n,(function(e,t,i,n){return e([i,n],{isToolSeparator:!0,constructor:function(){},postCreate:function(){this.inherited(arguments);var e=this.domNode;t.add(e,"gbtWidget"),t.add(e,"gbtToolSeparator")},_getVisibilityDomClassName:function(){return"gbtHideTool"},isInOverflow:function(){return t.contains(this.domNode,"gbtMenuSeparator")},addOverflowClass:function(){t.remove(this.domNode,"gbtToolSeparator"),t.add(this.domNode,"gbtMenuSeparator")},removeOverflowClass:function(){t.remove(this.domNode,"gbtMenuSeparator"),t.add(this.domNode,"gbtToolSeparator")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(2226),i(243),i(953)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,n,o],{width:22,height:22,postCreate:function(){this.inherited(arguments);var e=this.domNode;t.add(e,"gbtWidget gbtPushTool")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2225),i(6194)],o=i.dj.d(n,(function(e,t,i){return e([t],{createView:function(e){this.inherited(arguments),this.widget=new i({dataTag:this.getPeerNodeId()}),e.parentDijit&&e.parentDijit.addChild(this.widget),this.widget.startup(),this._setProperties(this.getPeerNode().getProperties()),this.own(this.widget.on("change",this._ToolClicked.bind(this))),this.emit("viewReady")},_State:function(e){"on"===e||!0===e?this.widget.set("checked",!0):this.widget.set("checked",!1),void 0!==this._previousState&&this._previousState!==e&&this._StateChanged(),this._previousState=e},_StateChanged:function(){this.handleUserInteraction("ToggleToolStateChanged",{})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(2226),i(446),i(953)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,n,o],{width:22,height:22,postCreate:function(){this.inherited(arguments);var e=this.domNode;t.add(e,"gbtWidget gbtToggleTool")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(210),i(213),i(204),i(206),i(480),i(440),i(288),i(441),i(2219),i(2222),i(2223),i(6196),i(2224),i(592),i(1494),i(2127),i(284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e([l,a,s,f,g],{constructor:function(e){if(!e.peerNode)throw new Error("Constructor arguments to a ContextMenuController should be given a peernode property.");this.peerNode=e.peerNode,this.own(r(this.peerNode,"childAdded",function(e){this._OnMenuAdded(e)}.bind(this)),r(this.peerNode,"childRemoved",function(e){this._OnMenuRemoved(e)}.bind(this)))},createView:function(e){if(this.inherited(arguments),this.widget=new p({targetNodes:[],willOpenCallback:this._ContextMenuOpening.bind(this)}),this.peernode.getProperty("ObjectID")in _.getMap()){var t=_.getMap()[this.peernode.getProperty("ObjectID")];t.forEach((function(e){this.addTriggerNode(e)}),this),_.removeItem(this.peernode.getProperty("ObjectID"))}if(this.peernode.getProperty("ObjectID")in m.getMap())throw new Error("Duplicate id in context menu map");m.getMap()[this.peernode.getProperty("ObjectID")]=this.peernode,this.own(this.widget.on("menuopened",this._MenuItemClicked.bind(this)),this.widget.on("close",this._closeContextMenu.bind(this))),this.emit("viewReady")},_OnMenuAdded:function(e){var t=e.data.child;"matlab.ui.container.ContextMenu"===e.target.getType()&&(this.own(r(t,"propertiesSet",function(e){e.data.newValues.hasOwnProperty("Visible")&&this._OnMenuVisibilityChanged()}.bind(this))),this._OnMenuVisibilityChanged())},_OnMenuRemoved:function(e){this._OnMenuVisibilityChanged()},_OnMenuVisibilityChanged:function(){var e=!1;this.peerNode.getChildren().some((function(t){var i=v.toJSBoolean(t.getProperty("Visible"));if("matlab.ui.container.Menu"===t.getType()&&!0===i)return e=!0})),this._updateContextMenuVisibilityStatus(e)},_updateContextMenuVisibilityStatus:function(e){e?this._Visible(!0):(this._Visible(!1),this._hideContextMenu())},_MenuItemClicked:function(e){"CheckBoxMenuItem"===this.menuType&&this.figure.getController().widget.domNode.focus();this.handleUserInteraction("MenuItemClicked",{})},_handlePeerEvent:function(e){if(this.inherited(arguments),"showContextMenu"===e.data.type){var t=this._getScrollOffsetLocation(e.data.x,e.data.y);if(this._isLocationWithinBounds(t[0],t[1])){var i=this._getPositionRelativeToFigure(e);this._showContextMenu(i[0],i[1])}}else"hideContextMenu"===e.data.type?this._hideContextMenu():"finishedCMOpeningFcnCallback"===e.data.type&&this._showContextMenu(e.data.x,e.data.y)},_isLocationWithinBounds:function(e,t){var i=this.peernode.getParent().getController().figureLayoutContainer.containerNode.getBoundingClientRect();return e>=0&&e<i.width&&t>=0&&t<i.height},_getPositionRelativeToFigure:function(e){var t,i=this._getScrollOffsetLocation(e.data.x,e.data.y);if("embeddedclient"===this.peernode.getParent().getProperty("hostType")||"divclient"===this.peernode.getParent().getProperty("hostType")){var n=this.peernode.getParent().getController().figureLayoutContainer.containerNode.getBoundingClientRect();t=[i[0]+n.left,i[1]+n.top]}else t=i;return t},_getScrollOffsetLocation:function(e,t){var i=this.peernode.getParent().getController();i._scrollingEnabled&&i._horizontalScrollRequired&&(t-=i._getScrollbarWidth());var n=i.widget;if(n.getScrollableNode()){var o=n.getScrollableNode().scrollLeft,r=n.getScrollableNode().scrollTop;if(void 0!==o&&(e-=o),void 0!==r)t=n.getScrollableAreaSize().height-n.getScrollableNode().clientHeight+t-r}return[e,t]},_ContextMenuOpening:function(e){var t={};return this._isTableNode(e.target)&&(t.ContextObjectItem=this._constructTableNodeContextItem(e.target)),t.ContextMenuPosition={x:e.x,y:e.y},this.handleUserInteraction("ContextMenuOpeningFcn",t),!0},_showContextMenu:function(e,t){e&&t&&(this.widget.willOpenCallback=null,this.widget.open({x:e,y:t}),this.widget.willOpenCallback=this._ContextMenuOpening.bind(this))},_hideContextMenu:function(){this.widget.isMenuOpen()&&this.widget.closeMenu()},_closeContextMenu:function(e){this.handleUserInteraction("ContextMenuClosed",{})},addTriggerNode:function(e){-1===this.widget.targetNodes.indexOf(e)&&this.widget.targetNodes.push(e)},removeTriggerNode:function(e){var t=this.widget.targetNodes.indexOf(e);this.widget.targetNodes.splice(t,1)},destroy:function(){m.removeItem(this.peernode.getProperty("ObjectID")),this.inherited(arguments)},_isTableNode:function(e){for(;e&&e.classList&&!e.classList.contains("gbtWidget");){if(e.classList.contains("mw-table-component"))return!0;e=e.parentNode}return!1},_constructTableNodeContextItem:function(e){for(var t={};e&&!e.classList.contains("gbtWidget");){if(e.classList.contains("mw-table-cell")){t.Region="cell",t.Index=[Number(e.getAttribute("data-row"))+1,Number(e.getAttribute("data-col"))+1];break}if(e.classList.contains("mw-table-header-column")){t.Region="columnHeader",t.Index=Number(e.getAttribute("data-col-index"))+1;break}if(e.classList.contains("mw-table-flex-row")){t.Region="rowHeader",t.Index=Number(e.getAttribute("data-row-index"))+1;break}if(e.classList.contains("mw-table-inner-wrapper")){t.Region="cell",t.Index=[];break}if(e.classList.contains("mw-table-top-left-affordance")){t.Region="columnHeader",t.Index=0;break}e=e.parentNode}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(213),i(317),i(442),i(259)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r.validate([n,o]),{postCreate:function(){this.inherited(arguments),t.add(this.domNode,"gbtWidget")},openMenu:function(e){this.inherited(arguments),!1===this.visibility&&this.closeMenu()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(214),i(212),i(230),i(215),i(480),i(440),i(326),i(975),i(1493),i(592),i(441),i(481),i(482),i(1495),i(289),i(2176),i(287),i(35),i(219),i(6309),i(772),i(2281),i(6316),i(6317),i(298),i(239),i(295),i(687),i(2126),i(6322),i(6323),i(6324),i(6325),i(6326),i(284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k){return e([s,a,d,u,h,p,f,g,I,o,x,L],{tableConstructor:null,rowHeaderFeatureConfig:{},minRowHeightOption:{},selectionTypeFeature:[C.FEATURE.CellFocus,O],dragAndDropFeature:[],dragAndDropConfig:void 0,tableVisibilityStyle:"visible",tableInitializing:!0,_tableConfigurationChangedListener:null,constructor:function(){this._UnitsService=new N,this.own(t(this,"compViewSizeChanged",this._onComponentViewSizeChanged.bind(this)))},createView:function(t){this.inherited(arguments);var i=e([r],{buildRendering:function(){this.domNode=document.createElement("div")},setEnable:function(e){},setVisibility:function(e){},setTooltip:function(e){}});this.widget=new i,t.parentDijit?t.parentDijit.addChild(this.widget):t.parentDomNode.appendChild(this.widget.domNode),this.getPeerNode().dispatchEventToServer("CreateClientTable"),this.emit("viewReady")},getComponentDomNode:function(){return this.widget.getTableDomNode&&this.widget.getTableDomNode()?this.widget.getTableDomNode():this.widget.domNode},_createTable:function(e){var t=this.widget,i=this.getComponentDomNode();if(e){var n,o;e.sort=function(e){this._handleColumnSorted(e)}.bind(this),this.widget.table&&(o=this.widget.table.getFocusedCell(),n=this.widget.table.getSelection());var r=this._constructTableOptions();this.widget=new C(e,r);var a=this.getComponentDomNode();a.style.visibility=this.tableVisibilityStyle,this._isColumnHeaderHidden(i)&&this._hideColumnHeader(),i.parentNode.replaceChild(a,i),t.destroy(),this.widget.table.startup(),a.classList.add("gbtWidget","supportsKeyInteractions"),a.style.position="absolute",a.setAttribute("data-tag",this.getPeerNodeId()),this._addViewListeners(),this.addMouseEventListeners(a),this._subscribeToClickEvent(a),this._setProperties(this.getPeerNode().getProperties()),this._positionView(this._positionForView),this.tableConstructor.setTableWidthDiv(this.getComponentDomNode()),n&&0!==n.length&&this._setSelectionAndFocus(n,o)}},getFocusNode:function(){return this.widget.table},_handlePeerEvent:function(e){this.inherited(arguments);var t=e.data;if("ServerReady"===t.Name&&!this.dataStore){var i,n=this.getPeerNode().getProperty("DataSize");Array.isArray(n)&&2===n.length&&(i=A.range().setRows(0,n[0]-1).setColumns(0,n[1]-1));var o=t.MetaDataDefaults,r=new S(o);this.tableConstructor=new w(r),i&&this.tableConstructor.setSize(i),this._addTableConstructorListeners(),this._setProperties(this.getPeerNode().getProperties()),this.dataStore=new E(t.Channel,this.tableConstructor),!n||0!==n[0]&&0!==n[1]?this.dataStore.on("serverFetchComplete",function(){this.getPeerNode().dispatchEventToServer("DataRenderedInView")}.bind(this)):setTimeout(function(){this.getPeerNode()&&this.getPeerNode().dispatchEventToServer("DataRenderedInView")}.bind(this),300),i&&(this.dataStore.dataSize=i),this.tableVisibilityStyle="hidden",this.tableInitializing=!0,this._createTable(this.dataStore);var a="visible";this.tableVisibilityStyle=a,this.tableInitializing=!1,setTimeout(function(){var e=this.widget?this.getComponentDomNode():null;e&&(e.style.visibility=a);var t=this.getPeerNode();if(t){var i=t.getProperty("RowScrollData"),n=t.getProperty("ColumnScrollData");this._RowScrollData(i),this._ColumnScrollData(n),(i&&0!==i.length||n&&0!==n.length)&&this.widget.table.resizeHandler()}}.bind(this),0)}this.handleRunTimeOnlyPeerEvents(t)},handleRunTimeOnlyPeerEvents:function(e){this.dataStore&&"ResetSortIndicator"===e.Name&&this.widget.table.resetSortIndicator(),this.dataStore&&"RefreshSelection"===e.Name&&this._setSelection(e.Selection)},_handleColumnSorted:function(e){var t;switch(e[0].order){case"ASC":t="ascend";break;case"DESC":t="descend";break;case"unsorted":t="unsorted"}var i={ColumnIndex:e[0].columnIndex,SortOrder:t};this.widget.setSortedColumnIndex(e[0].columnIndex),this.handleUserInteraction("ColumnSorted",i)},_handleColumnRearranged:function(e){let t={name:"ColumnRearranged",fromIndex:e.source.ids,toIndex:e.target.index+1};this.handleUserInteraction("ColumnRearranged",t)},_handleSelectionChanged:function(e){var t={};if(Array.isArray(e))0!==e.length&&(t.range1=this._constructSelectionChangedEventData(e[0]));else for(var i=0;i<e.rangeList.length;i++)t["range"+(i+1)]=this._constructSelectionChangedEventData(e.rangeList[i]);this.handleUserInteraction("SelectionChanged",t)},_constructSelectionChangedEventData:function(e){return{startRow:e.rows.start,endRow:e.rows.end,startColumn:e.columns.start,endColumn:e.columns.end}},_handleDoubleClicked:function(e){if(!0!==e.isEditing){var t={startRow:e.cellRange.rows.start,endRow:e.cellRange.rows.end,startColumn:e.cellRange.columns.start,endColumn:e.cellRange.columns.end};!1===this.getPeerNode().getProperty("EnableDoubleClickedEditing")&&e.preventDefault(),this.handleUserInteraction("DoubleClicked",t)}},_handleCopyRequested:function(){var e=new n,t=0,i=0,o=this.getPeerNode().getProperty("DataSize");Array.isArray(o)&&2===o.length&&(t=o[0],i=o[1]);var r=this.widget.table.getSelection();if(t<1||i<1||0===r.length)return e.resolve(null),e;var a=r.map(e=>Array.from({length:Math.min(e.rows.count,t)},(t,i)=>e.rows.start+i)),s=r.map(e=>Array.from({length:Math.min(e.columns.count,i)},(t,i)=>e.columns.start+i)),l={};for(let e=0;e<a.length;e++)for(let t=0;t<a[e].length;t++)l.hasOwnProperty(a[e][t])?l[a[e][t]]=l[a[e][t]].concat(s[e]).sort((e,t)=>e-t):l[a[e][t]]=s[e].sort((e,t)=>e-t);var d=Object.keys(l).map(Number),u=Object.values(l);if(!u.every(e=>JSON.stringify(e)===JSON.stringify(u[0])))return e.resolve(null),e;var h=[];for(let e=0;e<d.length;e++){h[e]=[];for(let t=0;t<u[e].length;t++)h[e][t]=this.dataStore.getLocalCellData(d[e],u[e][t],!0)}var p=h.join("\n").replace(/,/g,"\t"),f=new c;return f.setData("text/plain",p),e.resolve(f),this.handleUserInteraction("CopyRequested",{selectedRows:d,selectedColumns:u[0]}),e},_setWidgetLocation:function(e){var t=this.getComponentDomNode();t&&(void 0===this.strategy||this.strategy.allowPositionSetFromServer?(t.style.left=e[0]+"px",t.style.bottom=e[1]+"px"):(t.style.left="",t.style.bottom=""))},_positionView:function(e){this._setWidgetLocation(e),this._resizeView([e[2],e[3]])},_resizeView:function(e){var t=this.getComponentDomNode();t.style.width=e[0]+"px",t.style.height=e[1]+"px",this._notifyViewSizeChanged(e),this._renderDataBasedOnWidgetSize(e)},_renderDataBasedOnWidgetSize:function(e){if(void 0===e||2!==e.length)throw new Error("_renderDataBasedOnWidgetSize input is not properly specified");this.tableConstructor&&this.tableConstructor.handleResize(e[0]),this._handleTableConfigurationChanged()},addMouseEventListeners:function(e){this.inherited(arguments),this.own(this._keydown=t(e,"keydown",function(e){this.onKeyDown(e)}.bind(this)),this._keyup=t(e,"keyup",function(e){this.onKeyUp(e)}.bind(this)))},_subscribeToClickEvent:function(e){this.own(t(e,"click",function(e){this._handleClickOnTableInnerWrapper(e)}.bind(this)))},_handleClickOnTableInnerWrapper:function(e){if(e.target.classList.contains("mw-table-inner-wrapper")&&!this.getComponentDomNode().classList.contains("enableInactive")){var t=this.widget.table.getSelection();t&&t.length>0&&(this._clearSelection(),this._handleSelectionChanged({rangeList:[]}))}},_clearSelection:function(){this.widget.table.setSelection([]),this.widget.table.setSelection([])},_addViewListeners:function(){this.widget.table.on("selectionChanged",function(e){this._handleSelectionChanged(e)}.bind(this)),this.widget.table.on("doubleClicked",function(e){this._handleDoubleClicked(e)}.bind(this)),this.dragAndDropFeature.length&&this.widget.table.on("dropInProgress",function(e){this._handleColumnRearranged(e)}.bind(this)),this.own(i.after(this.widget,"copyRequested",function(){return this._handleCopyRequested()}.bind(this)))},_addTableConstructorListeners:function(){this._tableConfigurationChangedListener=this.tableConstructor.on("configurationChanged",this._handleTableConfigurationChanged.bind(this))},_handleTableConfigurationChanged:function(){if(this.widget&&this.widget.table&&this.widget.table.resizeHandler){setTimeout(function(){this.widget&&this.widget.table&&this.widget.table.resizeHandler&&this.widget.table.resizeHandler()}.bind(this),500)}},_Enable:function(e){"inactive"===e?(this.widget.setEnable(!0),this.getComponentDomNode().classList.add("enableInactive")):(this.widget.setEnable(e),this.getComponentDomNode().classList.remove("enableInactive")),this._setSupportsLeftClickInteractions(e)},_setSupportsLeftClickInteractions:function(e){var t=this.getComponentDomNode();"on"===e||!0===e?t.classList.remove("supportsLeftClickInteractions"):t.classList.add("supportsLeftClickInteractions")},_RowScrollData:function(e){if(!e||0!==e.length){var t,i=l.range();for(e=e||[],Array.isArray(e)||(e=[e]),t=0;t<e.length;t++){if(e[t]&&"object"==typeof e[t]&&e[t].hasOwnProperty("Row")){var n=e[t].Row;i=i.setRows(n-1,n-1)}void 0!==this.widget.table&&this.widget.table.scrollTo(i)}}},_ColumnScrollData:function(e){if(!e||0!==e.length){var t,i=l.range();for(e=e||[],Array.isArray(e)||(e=[e]),t=0;t<e.length;t++){if(e[t]&&"object"==typeof e[t]&&e[t].hasOwnProperty("Column")){var n=e[t].Column;i=i.setColumns(n-1,n-1)}if(void 0!==this.widget.table){this.widget.table.scrollTo(i);setTimeout(function(){this.widget&&this.widget.table&&this.widget.table.scrollTo(i)}.bind(this),300)}}}},updateWidgetFontSizeInUnits:function(e,t){if(t&&t!==this._fontSize){this._fontSize=t;var i=t+e,n=v.getTextPosition("Hello World!",{FontSize:i});this.minRowHeightOption=n.h+8,this.widget.table&&(this.widget.table.minRowHeight=this.minRowHeightOption)}},_RowHeaderOptions:function(e){this._showRowHeader===e[0]&&this._showRowHeaderNumber===e[1]||(this._showRowHeader=e[0],this._showRowHeaderNumber=e[1],this._showRowHeader&&this._showRowHeaderNumber?this.rowHeaderFeatureConfig=C.FEATURE.RowHeaders.config({displayIndices:!0}):this._showRowHeader&&!this._showRowHeaderNumber?this.rowHeaderFeatureConfig=C.FEATURE.RowHeaders.config({displayIndices:!1}):this.rowHeaderFeatureConfig={},!1===this.tableInitializing&&this._createTable(this.dataStore))},_ShowColumnHeader:function(e){e?this._showColumnHeader():this._hideColumnHeader()},_ColumnWidth:function(e){this._handleTableConfigurationChanged()},_SelectionType:function(e){if(this._selectionTypeValue!==e){switch(this._selectionTypeValue=e,e){case"cell":this.selectionTypeFeature=[C.FEATURE.CellFocus,O];break;case"row":this.selectionTypeFeature=[C.FEATURE.MultiRowSelection];break;case"column":this.selectionTypeFeature=[C.FEATURE.CellFocus,P];break;case"single cell":this.selectionTypeFeature=[C.FEATURE.CellFocus,M];break;case"single row":this.selectionTypeFeature=[C.FEATURE.SingleRowSelection,C.FEATURE.CellFocus];break;case"single column":this.selectionTypeFeature=[D,C.FEATURE.CellFocus];break;default:this.selectionTypeFeature=[C.FEATURE.CellFocus,O]}!1===this.tableInitializing&&this._createTable(this.dataStore)}},_ColumnRearrangeable:function(e){let t=k.toJSBoolean(e);this._dragAndDropConfigValue!==t&&(this._dragAndDropConfigValue=t,t?(this.dragAndDropFeature=C.FEATURE.DragAndDrop,this.dragAndDropConfig={mode:[l.REORDER.COLUMNS]}):(this.dragAndDropFeature=[],this.dragAndDropConfig=void 0),!1===this.tableInitializing&&this._createTable(this.dataStore))},_Selection:function(e){e!==this._selectionValue&&this._setSelection(e)},_setSelection:function(e){if(void 0!==this.widget.table){var t=[],i=this.getPeerNode().getProperty("SelectionType");if(0===e.length?t=[]:!Array.isArray(e)||"cell"===i&&!Array.isArray(e[0])?t.push(this._createSingleSelectionRange(e,i)):t=R.getOptimizedRange(e,i),this.widget.table.setSelection(t),0!==e.length){var n=this._getCellRangeToFocus(e,i);this.widget.table.setCellFocus([n])}this._selectionValue=e}},_getCellRangeToFocus:function(e,t){var i=this._getCellIndexToFocus(e,t);return A.range().setRows(i[0],i[0]).setColumns(i[1],i[1])},_getCellIndexToFocus:function(e,t){var i;switch(t){case"single row":case"row":i=[e,0],Array.isArray(e)&&(i=[Math.min.apply(null,e),0]);break;case"single column":case"column":i=[0,e],Array.isArray(e)&&(i=[0,Math.min.apply(null,e)]);break;case"single cell":case"cell":if(i=e,Array.isArray(e[0])){var n=1/0,o=1/0;e.forEach((function(e){n=Math.min(n,e[1])})),e.filter((function(e){return e[1]===n})).forEach((function(e){o=Math.min(o,e[0])})),i=[o,n]}}return i},_createSingleSelectionRange:function(e,t){var i;switch(t){case"single cell":case"cell":i=A.range().setRows(e[0],e[0]).setColumns(e[1],e[1]);break;case"single row":case"row":i=A.range().setRows(e,e).setColumns(0,1/0);break;case"single column":case"column":i=A.range().setRows(0,1/0).setColumns(e,e);break;default:throw new Error("Selection type is matched in _createSingleSelectionRange method")}return i},_computeMinimumSize:function(){return[200,120]},_computeFitSize:function(){return[300,300]},_constructTableOptions:function(){return{features:this.selectionTypeFeature.concat([this.rowHeaderFeatureConfig,this.dragAndDropFeature]),attributes:{minRowHeight:this.minRowHeightOption},dragAndDropConfig:this.dragAndDropConfig}},_showColumnHeader:function(){this.getComponentDomNode().classList.remove("columnHeaderHidden")},_hideColumnHeader:function(){this.getComponentDomNode().classList.add("columnHeaderHidden")},_isColumnHeaderHidden:function(e){return e.classList.contains("columnHeaderHidden")},_setSelectionAndFocus:function(e,t){if(this.widget.table.setSelection(e),"cell"===this.getPeerNode().getProperty("SelectionType")&&t.row){this.widget.table.focus();var i=t.row,n=t.column,o=A.range().setRows(i,i).setColumns(n,n);this.widget.table.setCellFocus([o])}},validateMouseEventTarget:function(e){return this.getComponentDomNode().contains(e)},_shouldProcessKeyEvent:function(e){return e.currentTarget.contains(e.target)},destroy:function(){if(this.inherited(arguments),this._tableConfigurationChangedListener&&this._tableConfigurationChangedListener.remove(),this.widget){try{this.widget.destroy()}catch(e){console.log(e)}this.widget=null}}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239)],o=i.dj.d(n,(function(e){return function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._dataStore=e.dataStore,this.getRangeFromId=this.getRangeFromId.bind(this)}return r(t,[{key:"eventList",value:function(){return{}}},{key:"exposedAPI",value:function(){return{getRangeFromId:this.getRangeFromId}}},{key:"getRangeFromId",value:function(t){if(!t||void 0===t.id)throw new Error("You must provide a id to locate a range");return this._dataStore.getIndex({id:t.id}).then((function(t){return t&&null!=t.index?e.range().setRows(t.index,t.index):null}))}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(271),i(267),i(459),i(239)],o=i.dj.d(n,(function(e,t,i,n,o){return function(e){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this)),i=e.viewModel;return t._viewModel=i,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,e),r(a,[{key:"exposedAPI",value:function(){var e={};return Object.defineProperty(e,"disable",{get:this._getTableDisabled.bind(this),set:this._setTableDisabled.bind(this),enumerable:!0}),e}},{key:"eventList",value:function(){var e={};return e[t.internal.TABLE_RIGHT_CLICK]=this._handleRightClick.bind(this),e}},{key:"_setTableDisabled",value:function(e){this._viewModel.setState(i.TABLE_DISABLED,e)}},{key:"_getTableDisabled",value:function(){return!!this._viewModel.getStateByKey(i.TABLE_DISABLED)&&this._viewModel.getStateByKey(i.TABLE_DISABLED).value}},{key:"_handleRightClick",value:function(e){var i=e.event,o=i.row,r=i.col,a=i.colEnd,s=i.top,l=i.left,c=i.target,d=this._getRangeFromCellIndices(o,r,a),u=this._viewModel.getStateForCustomEvent(),h=this._viewModel.viewRangeListToDataRangeList([d]);if(h.length>1)throw new Error("Single viewRange cell mapped to multiple ranges");var p=h[0],f=Object.assign(u,{top:s,left:l,viewRange:d,dataRange:p,target:c});n.validateContextMenuEventInfo(f),this.emit(t.exposed.CONTEXT_MENU,f)}},{key:"_getRangeFromCellIndices",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=Math.max(0,e),r=Math.max(-1,e),a=Math.max(0,t),s=Math.max(-1,i);return o.range().setRows(n,r).setColumns(a,s)}},{key:"emits",get:function(){return[t.exposed.CONTEXT_MENU]}}]),a}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(1531)],o=i.dj.d(n,(function(e){"use strict";return function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"_createLabelElement",value:function(){var e=document.createElement("span");return e.className="mw-data-label-renderer",e}},{key:"handleAction",value:function(e){return{hasChanged:!0}}}]),t}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1175),i(301),i(271)],o=i.dj.d(n,(function(e,t,i){return function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));t._handleDoubleClick=t._handleDoubleClick.bind(t),t._preventDefault=t._preventDefault.bind(t);var i=e.viewModel;return t._viewModel=i,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),r(n,[{key:"eventList",value:function(){var e=this,t={};return t[i.protected.CELL_DBL_CLICK]=function(t){return e._handleDoubleClick(t.event)},t}},{key:"_preventDefault",value:function(){this._defaultPrevented=!0}},{key:"_handleDoubleClick",value:function(t){this._defaultPrevented=!1;var n=e.getRangeForCell(t.row,t.column),o=this._viewModel.getStateForCustomEvent(),r=Object.assign(o,{cellRange:n,preventDefault:this._preventDefault});this.emit(i.exposed.DOUBLE_CLICKED,r),!this._defaultPrevented&&t.defaultFn&&t.defaultFn()}},{key:"exposedAPI",value:function(){return{}}},{key:"emits",get:function(){return[i.exposed.DOUBLE_CLICKED]}}]),n}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[],o=i.dj.d(n,(function(){var e=function(){function e(){l(this,e)}return r(e,[{key:"isNothing",get:function(){return!1}},{key:"isJust",get:function(){return!1}}],[{key:"fromType",value:function(e,n){return e(n)?new i(e,n):new t}}]),e}(),t=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),r(t,[{key:"chain",value:function(e){return this}},{key:"filter",value:function(){return this}},{key:"orElse",value:function(e){return e}},{key:"isNothing",get:function(){return!0}}]),t}(e),i=function(t){function i(e,t){l(this,i);var n=a(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return n._typeCheck=e,n._value=t,n}return s(i,t),r(i,[{key:"chain",value:function(t){return e.fromType(this._typeCheck,t(this._value))}},{key:"filter",value:function(t){return e.fromType(t,this._value)}},{key:"orElse",value:function(){return this._value}},{key:"isJust",get:function(){return!0}}]),i}(e);return e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return function(e,t){var i=[];function n(e){return!(!e||null===e.columnId||void 0===e.columnId)&&!(isNaN(t[e.columnId])||t[e.columnId]<0)}function o(e){return!(!e||null===e.index||void 0===e.index)&&!isNaN(e.index)}function r(e,t){return e.parentId===t.parentId}var a={getColumn:{value:function(i){if(!n(i))return null;var o=t[i.columnId];if(!this[o]){var r=Object.create(e[o]);this[o]=r}return this[o]},writable:!1},moveColumn:{value:function(a,s){if(n(a))if(o(s)){var l=s.targetParent,c=Math.min(Math.max(s.index,0),e.length-1),d=t[a.columnId],u=l&&r(e[d],l);if(r(e[d],e[c])||u)return i.push({item:e[d],toIndex:c}),!0;console.warn("The destination index ("+c+") does not share the same parent as the column being moved (columnId: "+a.columnId+")")}else console.warn("invalid target "+s+".");else console.warn("invalid column source"+a.columnId+".")},writable:!1},moveByParentColumnId:{value:function(t,n){var a=t.colIndexs,s=t.sourceParent,l=t.columnId,c=n.targetParent;if(o(n)){var d=Math.min(Math.max(n.index,0),e.length-1);if(r(s,e[d])||r(s,c))return a.map((function(t){i.push({item:e[t],toIndex:d})})),a[0]>d&&i.reverse(),!0;console.warn("The destination index ("+d+") does not share the same parent as the column being moved (columnId: "+l+")")}},writable:!1},_moves:{get:function(){return i}}};return Object.create(null,a)}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(6205),i(6206),i(2233)],o=i.dj.d(n,(function(e,t,i){return function(i){function n(i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return i.emitEditCompleted=o.emitEditCompleted.bind(o),i.emitEditCanceled=o.emitEditCanceled.bind(o),i.emitIconAction=o.emitIconAction.bind(o),o._editController=new e(i),o._interactiveController=new t(i),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),r(n,[{key:"emits",get:function(){return["editCompleted","editCanceled","iconAction"]}}]),n}(i)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(267),i(460),i(239)],o=i.dj.d(n,(function(e,t,i){var n=function(){};return function(){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=e.emitEditCompleted,n=e.dataStore,o=e.viewModel,r=e.emitEditCanceled;this._dataStore=n,this._viewModel=o,this._emitEditCompleted=i,this._emitEditCanceled=r,this._validKeys={},this._originalValuePromise={then:function(){}},this._editPromise=null,this._unmountEditor=!1;for(var s=t.BACKSPACE;s<=t.SYM2_END;s++)this._validKeys[s]=this._isValidKeyDownEvent(s)}return r(a,[{key:"editCell",value:function(e){var t=this,i=e.container;this._editPromise?this._editPromise.then((function(){t._setEditorOnFocusedCell(i)})):this._setEditorOnFocusedCell(i)}},{key:"_setEditorOnFocusedCell",value:function(t){var i=this._viewModel.getStateByKey(e.protected.FOCUSED)||{};if(i.rangeList&&i.rangeList.length>0){var n=i.rangeList[0];this._isTargetCellEditable(t,n)&&this._setupEditorOnRange(n)}}},{key:"_createEditPromise",value:function(){this._editPromise=new Promise(n)}},{key:"_resolveEditPromise",value:function(){this._editPromise.finally(),this._editPromise=null}},{key:"eventList",value:function(){var e=this;return{tableKeyPress:function(t){return e.setEditorOnKeyPress(t)},editComplete:function(t){return e.editHandler(t)},enterEditMode:function(t){return e.setEditorOnCell(t)},leaveEditMode:function(t){return e.removeEditorOnCell(t)},editValidation:function(t){return e.handleEditValidation(t)},processEdit:function(t){return e.handleProcessEdit(t)}}}},{key:"_hasModifierKey",value:function(e){var t=e.event,i=t.ctrlKey,n=t.meta,o=t.shiftKey,r=t.altKey;return i||r||n||o}},{key:"_updateDataStore",value:function(t){var i=t.row,n=t.column,o=t.newValue,r=this._getViewAndDataRange(i,n).dataRange;return this._viewModel.deleteColumnMetaData(e.protected.SORTED,r.columns.start),this._dataStore.update(r,[[o]])}},{key:"_updateProcessStart",value:function(e){return this._createEditPromise(),this._setEditProcessingState(e.event),this._updateDataStore(e.event)}},{key:"_setEditProcessingState",value:function(t){var i=void 0;if(t){var n=t.row,o=t.column,r=t.oldValue,a=t.newValue,s=t.validationResult;i={},i={location:n+","+o,oldValue:r,newValue:a,validationResult:s=s||null}}else i=!1;this._viewModel.setState(e.protected.EDIT_PROCESSING,i)}},{key:"editHandler",value:function(e){var t=this;if(this._editPromise)this._unmountEditor=!0;else{var i=this.getDataObj(e);this._updateProcessStart(e).then((function(){return t._updateSuccess(i)}),(function(e){return t._updateFailedWithCanceled(i,e)}))}}},{key:"_getViewAndDataRange",value:function(e,t){var n=i.range().setRows(e,e).setColumns(t,t);return{viewRange:n,dataRange:this._viewRangeToDataRange(n)}}},{key:"getDataObj",value:function(e){var t=e.event,i=t.row,n=t.column,o=t.newValue,r=t.oldValue,a=this._getViewAndDataRange(i,n);return{oldValue:r,newValue:o,viewRange:a.viewRange,dataRange:a.dataRange,row:i,column:n}}},{key:"handleProcessEdit",value:function(e){var t=this;if(!this._editPromise){var i=this.getDataObj(e);this._updateProcessStart(e).then((function(){return t._updateSuccess(i)}),(function(e){return t._updateFailedWithValidation(i,e)}))}}},{key:"_updateSuccess",value:function(e){var t=e.oldValue,i=e.newValue,n=e.viewRange,o=e.dataRange;this._resolveEditPromise(),this.removeEditorOnCell(),this._originalValuePromise.then((function(e){t=e})),this._emitEditCompleted({oldValue:t,newValue:i,viewRange:n,dataRange:o})}},{key:"_updateFailedWithCanceled",value:function(e,t){var i=e.newValue,n=e.oldValue,r=e.viewRange,a=e.dataRange,s=o(t);this._resolveEditPromise(),this.removeEditorOnCell(),this._emitEditCanceled({oldValue:n,newValue:i,viewRange:r,dataRange:a,validationResult:[s]})}},{key:"_updateFailedWithValidation",value:function(t,i){var n=t.newValue,r=t.oldValue,a=t.viewRange,s=t.dataRange;t.validationResult=o(i),!this._unmountEditor?(this._viewModel.setState(e.protected.EDIT_VALIDATION,{error:!0}),this._resolveEditPromise(),this._setEditProcessingState(t)):(this._resolveEditPromise(),this.removeEditorOnCell(),this._emitEditCanceled({oldValue:r,newValue:n,viewRange:a,dataRange:s,validationResult:[t.validationResult]}))}},{key:"handleEditValidation",value:function(t){var i=this._getState(e.protected.EDIT_VALIDATION);i=null===i?{error:!1}:i.value,t.event.error!==i.error&&this._viewModel.setState(e.protected.EDIT_VALIDATION,t.event)}},{key:"_viewRangeToDataRange",value:function(e){var t=this._viewModel.viewRangeListToDataRangeList([e]);if(t.length>1)throw new Error("Single viewRange cell mapped to multiple ranges");return t[0]}},{key:"setEditorOnCell",value:function(e){if(!this._hasModifierKey(e)){var t=e.event,n=t.row,o=t.column,r=i.range().setRows(n,n).setColumns(o,o);this._setupEditorOnRange(r)}}},{key:"_getState",value:function(e){return this._viewModel.getStateByKey(e)}},{key:"removeEditorOnCell",value:function(t){var i=t?t.event:null;if(this._unmountEditor=!1,null===this._editPromise){this._getState(e.protected.EDIT_STATE)&&this._viewModel.deleteState(e.protected.EDIT_STATE);var n=this._getState(e.protected.EDIT_VALIDATION);n&&n.value&&n.value.error&&this._viewModel.setState(e.protected.EDIT_VALIDATION,{error:!1});var o=this._getState(e.protected.EDIT_PROCESSING);if(o&&o.value&&this._setEditProcessingState(!1),i){var r=i.oldValue,a=i.newValue,s=i.validationResult,l=i.row,c=i.column;if(r!==a){var d=this._getViewAndDataRange(l,c),u=d.viewRange,h=d.dataRange;this._emitEditCanceled({oldValue:r,newValue:a,viewRange:u,dataRange:h,validationResult:[s]})}}}}},{key:"setEditorOnKeyPress",value:function(i){var n=i.event;if(!(n.ctrlKey||n.altKey||n.meta||n.shiftKey&&n.keyCode===t.SPACE||this._editPromise)&&this._validKeys[n.keyCode]){var o=this._getState(e.protected.FOCUSED)||{};if(o.rangeList&&o.rangeList.length>0){var r=o.rangeList[0];this._isTargetCellEditable(n.nativeEvent.target,r)&&this._setupEditorOnRange(r)}}}},{key:"_isTargetCellEditable",value:function(e,t){if(!e.hasAttribute("data-cell-type")&&t){var i=t.rows.start,n=t.columns.start;return 1===e.querySelectorAll('[data-row="'+i+'"][data-col="'+n+'"][data-cell-type="EditableTableCell"]').length}return"EditableTableCell"===e.getAttribute("data-cell-type")}},{key:"_setupEditorOnRange",value:function(t){var i=this._viewRangeToDataRange(t);if(this._setOriginalValuePromise(i),this._isFocusedRange(t)){var n={};n[t.rows.start+","+t.columns.start]=!0,this._viewModel.setState(e.protected.EDIT_STATE,n,[t])}}},{key:"_setOriginalValuePromise",value:function(e){return this._originalValuePromise=this._dataStore.getData([e]).then((function(t){return t[0][e.rows.start][e.columns.start]})),this._originalValuePromise}},{key:"_isFocusedRange",value:function(t){var n=(this._getState(e.protected.FOCUSED)||!1).rangeList,o=void 0===n?[{}]:n;return i.isRangeEqual(o[0],t)}},{key:"_isValidKeyDownEvent",value:function(e){return(e=e||1)>=t.NUM_START&&e<=t.NUM_END||e===t.SPACE||e===t.ENTER||e>=t.ALPHA_START&&e<=t.ALPHA_END||e>=t.NUMPAD_START&&e<=t.NUMPAD_END||e>=t.SYM1_START&&e<=t.SYM1_END||e>=t.SYM2_START&&e<=t.SYM2_END}}]),a}();function o(e){return{isValid:e.success,validationMessage:e.message,type:"ERROR"}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(271),i(267),i(460),i(690),i(239)],o=i.dj.d(n,(function(e,t,i,n,o){return function(){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=e.emitEditCompleted,i=e.emitIconAction,n=e.dataStore,o=e.viewModel;this._viewModel=o,this._dataStore=n,this._emitEditCompleted=t,this._emitIconAction=i}return r(a,[{key:"eventList",value:function(){var t={};return t[e.internal.INTERACTIVE_CELL_CLICK]=this._handleCellClickEvent.bind(this),t[e.protected.TABLE_KEY_PRESS]=this._handleKeyPressEvent.bind(this),t}},{key:"_mapViewColumnsToDataColumns",value:function(e){for(var t={},i=e.columns.start;i<=e.columns.end;i++)t[this._getDataColumn(i)]=i;return t}},{key:"_convertViewRangeToDataRange",value:function(e){var t=void 0,i=this._getDataColumn(e.columns.start),n=this._getDataColumn(e.columns.end);return t=e.rows.end===1/0?this._dataStore.dataSize.rows.end:e.rows.end,o.range().setRows(e.rows.start,t).setColumns(i,n)}},{key:"_getNewValueIfUnchecked",value:function(e,t){var i=e.handleAction({value:t,shouldUpdate:!0});return{oldState:!i,value:i}}},{key:"_getDataColumn",value:function(e){var t=(this._viewModel.getColumnHeaders()[Number(e)]||{}).dataIndex;return(t<=-1||void 0===t)&&(t=e),t}},{key:"_getOldValueToToggle",value:function(e,t){for(var i=t.range,n=t.renderer,r=this._convertViewRangeToDataRange(i),a=this._mapViewColumnsToDataColumns(i),s=void 0,l=void 0,c=void 0,d=r.rows.start;d<=r.rows.end;d++)for(var u=r.columns.start;u<=r.columns.end;u++){if(this._getNewValueIfUnchecked(n,e[0][d][u]).oldState)return l=o.range().setRows(d,d).setColumns(u,u),s=n.handleAction({value:e[0][d][u],shouldUpdate:!0,shouldToggle:!0}),c=a[u],{value:s,dataRange:l,viewRange:o.range().setRows(d,d).setColumns(c,c)}}}},{key:"_updateIconAction",value:function(e,t){this._emitIconAction({viewRange:t,dataRange:e})}},{key:"_updateDataStore",value:function(e,t,i){this._dataStore.update(e,[[i.newValue]]),this._emitEditCompleted({oldValue:i.oldValue,newValue:i.newValue,viewRange:t,dataRange:e})}},{key:"_updateToggledValues",value:function(e){var t=this,i=e.interactiveRenderer,n=e.newToggledValue,o=this,r=i.renderer,a=this._getViewandDataRange(e),s=a.dataRange,l=a.viewRange,c=this._convertViewRangeToDataRange(i.range);this._dataStore.getData([c]).then((function(e){if(n=n||t._getNewValueIfUnchecked(r,e[0][s.rows.start][s.columns.start]).value){var a=o._getOldValueToToggle(e,i);a&&t._dataStore.update(a.dataRange,[[a.value.newValue]]),t._updateDataStore(s,l,n)}}))}},{key:"_getViewandDataRange",value:function(e){var t=e.viewPosition,i=e.viewRange;t&&(i=o.range().setRows(t.row,t.row).setColumns(t.column,t.column));var n=this._getDataColumn(i.columns.start);return{viewRange:i,dataRange:o.range().setRows(i.rows.start,i.rows.start).setColumns(n,n)}}},{key:"_handleCellClickEvent",value:function(e){var t=this._viewModel.getStateByKey("interactiveRenderer")||{},i=n.getInteractiveRendererFor(t,e.event.row,e.event.column);if(i){var o=i.renderer,r={interactiveRenderer:i,viewPosition:{row:e.event.row,column:e.event.column},newToggledValue:e.event},a=this._getViewandDataRange(r);o.toggle?this._updateToggledValues(r):o.iconAction?this._updateIconAction(a.dataRange,a.viewRange):this._updateDataStore(a.dataRange,a.viewRange,e.event)}}},{key:"_handleKeyPressEvent",value:function(e){var o=this,r=[i.SPACE,i.ENTER],a=[i.SPACE];if(r.includes(e.event.keyCode)){var s=this._viewModel.getStateByKey(t.protected.FOCUSED),l=this._viewModel.getStateByKey("interactiveRenderer")||{};if(s&&s.rangeList&&s.rangeList.length>0){var c=s.rangeList[0],d=n.getInteractiveRendererFor(l,c.rows.start,c.columns.start);if(!d)return;var u=d.renderer;if(!u.iconAction&&!a.includes(e.event.keyCode))return;var h={interactiveRenderer:d,viewRange:c},p=this._getViewandDataRange(h).dataRange;u.toggle?this._updateToggledValues(h):u.iconAction?this._updateIconAction(p,c):this._dataStore.getData([p]).then((function(e){var t=o._getNewValueIfUnchecked(u,e[0][p.rows.start][p.columns.start]).value;t&&o._updateDataStore(p,c,t)}))}}}}]),a}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(267),i(301)],o=i.dj.d(n,(function(e,t){var i=function(e){var t=e.event,i=t.ctrlKey,n=t.meta,o=t.shiftKey,r=t.altKey;return i||r||n||o};return function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),i=e.viewModel;return t._viewModel=i,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),r(n,[{key:"_isEditInProgress",value:function(){var t=this._viewModel.getStateByKey(e.protected.EDIT_PROCESSING);return!!t&&!!t.value}},{key:"exposedAPI",value:function(){return{}}},{key:"eventList",value:function(){var t=this;return{enterColEditMode:function(e){return t._setEditorOnCol(e)},colEditComplete:function(e){return t._colEditHandler(e)},leaveColEditMode:function(){return t._removeEditor(e.protected.COL_EDIT_STATE)},enterRowEditMode:function(e){return t._setEditorOnRow(e)},rowEditComplete:function(e){return t._rowEditHandler(e)},leaveRowEditMode:function(i){return t._editCompleted(e.protected.ROW_HEADER_EDIT_STATE,"headerEditCompleted",!1)}}}},{key:"_colEditHandler",value:function(t){var i=this,n=t.event,o=n.oldValue,r=n.newValue,a=n.columnId,s={oldValue:o,newValue:r,columnId:a};return this._viewModel.updateHeader({id:a,value:r}).then((function(){return i._editCompleted(e.protected.COL_EDIT_STATE,"headerEditCompleted",s)}))}},{key:"_rowEditHandler",value:function(t){var i=this,n=t.event,o=n.oldValue,r=n.newValue,a=n.row,s={oldValue:o,newValue:r,rowIndex:a};return this._viewModel.updateRowHeader({rowIndex:a},{value:r}).then((function(){return i._editCompleted(e.protected.ROW_HEADER_EDIT_STATE,"headerEditCompleted",s)}))}},{key:"_editCompleted",value:function(e,t,i){this._removeEditor(e),this.emit(t,i)}},{key:"_setEditorOnCol",value:function(t){if(!i(t)&&!this._isEditInProgress()){var n=t.event.columnId;n&&(this._viewModel.setState(e.protected.EDIT_STATE,{}),this._viewModel.setState(e.protected.COL_EDIT_STATE,n))}}},{key:"_setEditorOnRow",value:function(t){if(!i(t)&&!this._isEditInProgress()){var n=t.event.row;this._viewModel.setState(e.protected.EDIT_STATE,{}),this._viewModel.setState(e.protected.ROW_HEADER_EDIT_STATE,n)}}},{key:"_removeEditor",value:function(t){this._viewModel.deleteState(e.protected.EDIT_STATE),this._viewModel.deleteState(t)}},{key:"emits",get:function(){return["headerEditCompleted"]}}]),n}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(267),i(690),i(739)],o=i.dj.d(n,(function(e,t,i,n){return function(e){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this)),i=e.viewModel,n=e.viewPortList;return t._viewPortList=n,t._viewModel=i,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),r(o,[{key:"exposedAPI",value:function(){var e={};return Object.defineProperty(e,"minRowHeight",{get:this._getMinRowHeight.bind(this),set:this._setMinRowHeight.bind(this),enumerable:!0}),e}},{key:"eventList",value:function(){return{}}},{key:"_setMinRowHeight",value:function(e){n.setAttributes(this._viewModel,{minRowHeight:e}),i.renderUpdate(this._viewModel,this._viewPortList[0].getBufferedViewPort())}},{key:"_getMinRowHeight",value:function(){if(this._viewModel.getStateByKey(t.ROW_HEIGHT))return this._viewModel.getStateByKey(t.ROW_HEIGHT).value;throw new Error("Table does not have a minimum row height")}},{key:"emits",get:function(){return[]}}]),o}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1175),i(327),i(973),i(301),i(6212),i(460)],o=i.dj.d(n,(function(e,t,i,n,o,a){"use strict";return function(){function i(e){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.adaptor=e.adaptor,this.eventCallback=e.eventCallback;var o=new n;this._emit=o.emit.bind(o),this.on=o.on.bind(o),this._events={},e.adaptor.on("cellFocusClick",(function(e){return t._rowClicked(e)})),e.adaptor.on("cellFocusKeyPress",(function(e){return t._keyPressed(e)}))}return r(i,[{key:"exposedAPI",value:function(){return{setCellFocus:this.setCellFocus.bind(this),getFocusedCell:this.getFocusedCell.bind(this)}}},{key:"_rowClicked",value:function(t){var i=e.getRangeForCell(t.row,t.column);this.adaptor.setFocusState([i]),this._emit("cellFocused",i)}},{key:"_keyPressed",value:function(e){var t=e.range?[e.range]:[];this.adaptor.setFocusState(t)}},{key:"setCellFocus",value:function(e){var i=this;return t.convertSyncFunctionToPromise((function(){return i.adaptor.setFocusState(e)}))}},{key:"getFocusedCell",value:function(){var e=this.adaptor.getFocusState(),t={};return e&&e.rangeList[0]&&(t.row=e.rangeList[0].rows.start,t.column=e.rangeList[0].columns.start),t}},{key:"emits",get:function(){return["cellFocused"]}},{key:"listensOn",get:function(){return["cellFocusClick","cellFocusKeyPress"]}}],[{key:"adaptor",get:function(){return o}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(429)],o=i.dj.d(n,(function(e){"use strict";return function(e){return{getScrollLeftPosition:function(e,t){for(var i=Math.max(e,0),n=0;t[i-=1];)n+=t[i].width;return n},getScrollRightPosition:function(e,t,i){var n=Math.max(t,0),o=0;do{o+=i[n].width}while(i[n-=1]);return Math.max(0,o-e)},getScrollBottomPosition:function(t,i){return Math.max(0,(i+1)*e.ROW_HEIGHT-t)},getScrollTopPosition:function(t){return Math.max(0,t)*e.ROW_HEIGHT}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2235)],o=i.dj.d(n,(function(e){"use strict";return function(t){function i(e){return Math.max(0,t.COL_WIDTH*e)}return{getScrollLeftPosition:i,getScrollRightPosition:function(n,o,r){var a=e.maybe(r[o]).chain((function(e){return e.width})).therefore(-1,(function(e){return n-e}));if(a<0)return Math.max(i(o)-n,0);for(var s=o,l=0;r[s-=1]&&l<a;)l+=r[s].width;s+=1;var c=l-a,d=Math.max(0,c/r[s].width),u=Math.floor(d*t.COL_WIDTH);return Math.floor(t.COL_WIDTH*s)+u},getScrollBottomPosition:function(e,i){return Math.max(0,(i+1)*t.ROW_HEIGHT-e)},getScrollTopPosition:function(e){return Math.max(0,e)*t.ROW_HEIGHT}}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(327),i(239),i(632),i(267),i(271)],o=i.dj.d(n,(function(e,t,i,n,o,a){"use strict";return function(){function s(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var i=new e;this._emit=i.emit.bind(i),this.on=i.on.bind(i),this._tableView=t.tableView,this.viewModel=t.viewModel,this._logicalViewPort=t.viewPortList[0],this._events={},this._resizeSelection=!1}return r(s,[{key:"eventList",value:function(){var e=this,t={};return t[a.protected.TABLE_CELL_CLICK]=function(t){return e._emit(a.protected.CELL_FOCUS_CLICK,t.event)},t[a.protected.TABLE_CELL_FOCUS]=function(t){return e._emit(a.protected.CELL_FOCUS_CLICK,t.event)},t[a.protected.TABLE_KEY_PRESS]=function(t){return e._processAndEmitKeyPress(t)},t[a.protected.ROW_SELECTION_CLICK]=function(t){return e._rowHeaderWithFocus(t)},t[a.protected.CELL_DOM_FOCUS_CACHE]=this._cacheFocusToOuterWrapper.bind(this),t[a.protected.RESIZE_SELECTION_BEGIN]=function(t){return e._handleResizeBegin(t)},t[a.protected.RESIZE_SELECTION_END]=function(t){return e._handleResizeEnd(t)},t}},{key:"_handleResizeBegin",value:function(e){this._resizeSelection=!0}},{key:"_handleResizeEnd",value:function(e){this._resizeSelection=!1}},{key:"_rowHeaderWithFocus",value:function(e){var t=e.event.row,n=this.getFocusState(),o=void 0;o=n?n.rangeList[0].columns.start:this._logicalViewPort.getFirstVisibleColumn();var r=i.range().setRows(t,t).setColumns(o,o);this._setFocus(r)}},{key:"_processAndEmitKeyPress",value:function(e){var t=e.event,i={keyCode:t.keyCode},o=n.getActiveCell(this.viewModel);i.modifiers=t,i.dataSize={},i.viewPort={},i.dataSize=e.dataSize,i.viewPort=e.viewPort.rangeList[0],i.range=o&&o.rows?o:null,this._emit(a.protected.CELL_FOCUS_KEY,i)}},{key:"_removeFocus",value:function(){this.viewModel.deleteState(o.protected.FOCUSED),this.viewModel.deleteState(o.protected.ACTIVE_CELL)}},{key:"_setFocus",value:function(e){if(!this._resizeSelection){var r=t.curry(n.fitRangeToBounds)(this.viewModel.dataSize.rows.end,this.viewModel.dataSize.columns.end)(i.range().setRows(e.rows.start,e.rows.start).setColumns(e.columns.start,e.columns.start));this.viewModel.setState(o.protected.FOCUSED,null,[r]),this.viewModel.setState(o.protected.ACTIVE_CELL,null,[r])}}},{key:"_setAsyncFocus",value:function(e){var i=this;t.convertSyncFunctionToPromise().then((function(){return i._setFocus(e)}))}},{key:"_isFocusRangeValid",value:function(){return!(!this.getFocusState()||!this.getFocusState().rangeList.length||null===this.getFocusState().rangeList[0])}},{key:"_cacheFocusToOuterWrapper",value:function(){return this._tableView.focus()}},{key:"setFocusState",value:function(e){if(!e)throw this._removeFocus(),new Error("The usage of range argument "+e+" is not correct in setCellFocus API. Please check JSDoc to see the correct usage.");if(this.viewModel.deleteState(o.protected.PENDING_FOCUS_FUNC),Array.isArray(e))return 0===e.length?this._removeFocus():n.isRangeVisible(e[0],this.viewModel.viewBuffer.rangeList[0])?this._setFocus(e[0]):this.viewModel.setState(o.protected.PENDING_FOCUS_FUNC,this._setAsyncFocus.bind(this),e)}},{key:"getFocusState",value:function(){return this.viewModel.getStateByKey(o.protected.FOCUSED)||void 0}}]),s}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(301),i(2236),i(460),i(271)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return function(t){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return t.adaptor=e.adaptor,t._events={},e.adaptor.on(o.protected.CELL_SELECTION_CLICK,(function(e){return t._calculateProperSelection(e)})),e.adaptor.on(o.protected.CELL_SELECTION_KEY,(function(e){return t._keyPressed(e)})),e.adaptor.on(o.protected.TABLE_SELECTED_ACTION,(function(e){return t._handleSelectedAction(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,t),r(a,[{key:"_handleSelectedAction",value:function(e){this.emit("selectedAction",e)}},{key:"emits",get:function(){return[o.exposed.SELECTION_CHANGED,"selectedAction"]}}]),r(a,[{key:"_calculateProperSelection",value:function(t){var i=e.range().setEntireRows(Number(t.row)),n=t.ctrlKey||t.meta,r=e.range().setEntireRows(i.rows.start,i.rows.start),a=this.adaptor.isRowSelected(r)<0;n?a?this.adaptor.setSelectionState([r]):this.adaptor.setSelectionState([]):this.adaptor.setIndividualRow(i),(i&&a||i&&n)&&this.emit(o.exposed.SELECTION_CHANGED,this.adaptor.getSelectionState())}},{key:"_keyPressed",value:function(e){if(e.ctrlKey)return e.keyCode===n.SPACE?void this._calculateProperSelection(e):void 0;switch(e.keyCode){case n.ARROW_DOWN:case n.ARROW_UP:case n.PAGE_DOWN:case n.PAGE_UP:case n.HOME:case n.END:case n.SPACE:this._calculateProperSelection(e)}}},{key:"setSelection",value:function(t){if(Array.isArray(t)){var i=void 0;if(t.length>=1){var n;n=t[0],i=[e.range().setEntireRows(n.rows.start,n.rows.start)]}else i=[];this.adaptor.setSelectionState(i)}}},{key:"getSelection",value:function(){return this.adaptor.getSelectionState()}},{key:"exposedAPI",value:function(){return{setSelection:this.setSelection.bind(this),getSelection:this.getSelection.bind(this)}}}],[{key:"adaptor",get:function(){return i}}]),a}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(301),i(2236),i(460),i(271)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";var a=function(e,t){return e<t?-1:e>t?1:0},s=function(e,t){var i=a(e.rows.start,t.rows.start);return 0===i?a(e.rows.end,t.rows.end):i};return function(t){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(o.protected.CELL_SELECTION_CLICK,(function(e){return t._calculateProperSelection(e)})),e.adaptor.on(o.protected.CELL_SELECTION_KEY,(function(e){return t._keyPressed(e)})),e.adaptor.on(o.protected.TABLE_SELECTED_ACTION,(function(e){return t._handleSelectedAction(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,t),r(a,[{key:"_handleSelectedAction",value:function(e){this.emit("selectedAction",e)}},{key:"emits",get:function(){return[o.exposed.SELECTION_CHANGED,"selectedAction"]}}]),r(a,[{key:"_hasSelectionChanged",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=this.adaptor.getSelectionState()||[],n=!0;return t.sort(s),i.length===t.length&&(i.sort(s),n=t.reduce((function(t,n,o){return t||!e.isRangeEqual(n,i[o])}),!1)),n}},{key:"_calculateProperSelection",value:function(t){var i=e.range().setEntireRows(Number(t.row)),n=this.adaptor.getSelectionState()||[];t.ctrlKey||t.meta?this.adaptor.setDiscontiguousRow(i):t.shiftKey?this.adaptor.setContiguousRows(i):this.adaptor.setIndividualRow(i),this._hasSelectionChanged(n)&&this.emit(o.exposed.SELECTION_CHANGED,{rangeList:this.adaptor.getSelectionState()})}},{key:"_keyPressed",value:function(t){if(t.ctrlKey||t.meta)return t.keyCode===n.SPACE?void this._calculateProperSelection(t):void 0;switch(t.keyCode){case n.ARROW_DOWN:case n.ARROW_UP:case n.PAGE_DOWN:case n.PAGE_UP:case n.HOME:case n.END:this._calculateProperSelection(t);break;case n.SPACE:t.shiftKey?this._calculateProperSelection(t):this.adaptor.isRowSelected(e.range().setEntireRows(Number(t.row)))<0&&(t.ctrlKey=!0,this._calculateProperSelection(t))}}},{key:"setSelection",value:function(t){if(Array.isArray(t)){var i=t.map((function(t){return e.range().setEntireRows(t.rows.start,t.rows.end)}));this.adaptor.setSelectionState(i)}}},{key:"getSelection",value:function(){return this.adaptor.getSelectionState()}},{key:"exposedAPI",value:function(){return{setSelection:this.setSelection.bind(this),getSelection:this.getSelection.bind(this)}}}],[{key:"adaptor",get:function(){return i}}]),a}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(267),i(271)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return i.viewModel=e.viewModel,i._handleResizeDone=i._handleResizeDone.bind(i),i.viewModel.setState(t.colResize,!0),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"eventList",value:function(){var e=this,t={};return t[i.protected.COL_RESIZE]=function(t){return e.emit(i.protected.COL_RESIZE,t.event)},t[i.internal.COL_RESIZE_DONE]=function(t){return e._handleResizeDone(t)},t}},{key:"_updatePagedHeader",value:function(e,t){var i=this.viewModel.getColumnHeaders(),n={value:t,unit:"px"};0===i.length?this.viewModel.setColumnMetaData("width",n,e):i[e].width=n}},{key:"setColumnResize",value:function(e){var i=e.width,n=e.column;this.viewModel.setState(t.COLUMN_RESIZED,!0),"number"==typeof n&&this._updatePagedHeader(n,i)}},{key:"_handleResizeDone",value:function(e){var t={sizes:e.event};this.emit(i.internal.COL_RESIZE_DONE,t)}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(267)],o=i.dj.d(n,(function(e){return function(){function t(i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._viewModel=i.viewModel,this._viewModel.setState(e.displayRowHeader,!0),this._viewModel.setState(e.rowHeaderWidth,0),this._viewModel.setState(e.DISPLAY_ROW_HEADER_INDICES,!0)}return r(t,[{key:"setConfig",value:function(t){t&&t&&!1===t[e.DISPLAY_ROW_HEADER_INDICES]&&this._viewModel.setState(e.DISPLAY_ROW_HEADER_INDICES,!1)}},{key:"eventList",value:function(){return{}}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(267),i(1178),i(239),i(327),i(2232),i(271),i(6218),i(2243)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c){return function(e){function d(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(d.__proto__||Object.getPrototypeOf(d)).call(this)),n=e.options.dragAndDropConfig;return i._viewModel=e.viewModel,i._dataStore=e.dataStore,i._logicalViewPort=e.viewPortList[0],i.dragAndDropConfig=n,i._handleColumnDrop=i._handleColumnDrop.bind(i),i._removeDragInProgress=i._removeDragInProgress.bind(i),i._handleRowDrop=i._handleRowDrop.bind(i),i._handleDragInProgress=i._handleDragInProgress.bind(i),i._viewModel.setState(t.dragAndDrop,!0),n&&i._setDnDMod(n,e.options),i._widget=i._viewModel.getStateByKey(t.protected.WIDGET_TYPE).value,i._widgetRowDnd="TreeTable"===i._widget?c:l,i._widgetRowDnd.setConfig(e),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(d,e),r(d,[{key:"eventList",value:function(){var e={};return e[s.internal.COLUMN_REORDERED]=this._handleColumnDrop,e[s.internal.ROW_DROPPED]=this._handleRowDrop,e[s.internal.DRAG_STARTED]=this._handleDragInProgress,e[s.internal.DRAG_END]=this._removeDragInProgress,e}},{key:"_setDnDMod",value:function(e,i){var n=e.setDragDataBySelection,o=e.mode,r=e.setAvatar,a=e.canDrag,s=e.canDrop;(this._viewModel.setState(t.setDragData,n||!1),this._viewModel.setState(t.setAvatar,r||!1),n&&this._viewModel.setState(t.dragRows,!0),a&&this._viewModel.setState(t.protected.CAN_DRAG,a),s&&this._viewModel.setState(t.protected.CAN_DROP,s),!o||o.length<=0)||(o.find((function(e){return"columns"===e}))&&this._setColumnReorder(i.initializedControllers),o.find((function(e){return"reorderRows"===e}))&&this._viewModel.setState(t.protected.REORDER_ROWS,!0),o.find((function(e){return"reparentRows"===e}))&&this._viewModel.setState(t.protected.REPARENT_ROWS,!0))}},{key:"_setColumnReorder",value:function(e){var i=this;this._viewModel.setState(t.dragColumns,!0),this.columnController||e.map((function(e){e.map((function(e){e instanceof a&&(i.columnController=e)}))}),this)}},{key:"_handleColumnDrop",value:function(e){var t=this,i=e.event,n=i.colIndex,r=i.targetIndex,a=i.headerMeta,l=this._getNextState(n,r,a),c=this._getColumnDropObjectForEmit(e.event);this._emitDropEvent(s.exposed.DROP_IN_PROGRESS,c),o.convertSyncFunctionToPromise((function(){return t.columnController.columnReorder(e.event)})).then((function(){return t._processAfterReorder(l,c)}),(function(){return t._emitDropEvent(s.exposed.DROP_FAILED,c)})).finally(this._removeDragInProgress)}},{key:"_getColumnDropObjectForEmit",value:function(e){return{source:{type:"column",ids:[e.columnId]},target:{type:"column",index:e.targetIndex}}}},{key:"_emitDropEvent",value:function(e,t){this.emit(e,t)}},{key:"_processAfterReorder",value:function(e,t){e&&this._updateSelection(e),this._emitDropEvent(s.exposed.DROP_COMPLETED,t)}},{key:"_handleRowDrop",value:function(e){var t=this;this._widgetRowDnd.putData(e.event).then((function(e){var i=e.dropSuccessInfo;e.dropFailInfo.forEach((function(e){t.emit(s.exposed.DROP_FAILED,e)})),i&&t.emit(s.exposed.DROP_COMPLETED,i)})).finally(this._removeDragInProgress)}},{key:"_handleDragInProgress",value:function(e){var i=e?e.event:null;this._viewModel.setState(t.dragInProgress,i)}},{key:"_removeDragInProgress",value:function(){this._viewModel.deleteState(t.dragInProgress)}},{key:"_getNextState",value:function(e,o,r){var a=this._viewModel.getStateByKey(t.protected.SELECTED);if(a){var s=a.value,l=a.rangeList;if(s===t.SELECT_CELLS&&l&&!(l.length<=0)){var c=i.getFirstIndexAfterReorder(e,o,r),d=i.getColRangeIndicesForView(c,r).endIndex,u=this._logicalViewPort.getFirstVisibleRow();return{activeCell:n.range().setRows(u,u).setColumns(c,c),activeRange:n.range().setEntireColumns(c,d)}}}}},{key:"_updateSelection",value:function(e){var i=e.activeCell,n=e.activeRange;this._viewModel.setState(t.protected.FOCUSED,null,[i]),this._viewModel.setState(t.protected.ACTIVE_CELL,null,[i]),this._viewModel.setState(t.protected.SELECTED,t.SELECT_CELLS,[n]),this._viewModel.setState(t.ACTIVE_RANGE,n)}}]),d}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){"use strict";return new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._dataStore=null,this._viewModel=null}return r(e,[{key:"setConfig",value:function(e){this._dataStore=e.dataStore,this._viewModel=e.viewModel}}]),e}())}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(6220),i(271)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(i.protected.HEADER_CLICKED,(function(e){return t._handleHeaderMenu(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"exposedAPI",value:function(){return{}}},{key:"_handleHeaderMenu",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.emit(i.exposed.HEADER_MENU,e)}},{key:"emits",get:function(){return[i.exposed.HEADER_MENU]}}],[{key:"adaptor",get:function(){return t}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(271),i(267),i(327)],o=i.dj.d(n,(function(e,t,i,n){return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._viewModel=e.viewModel,t._handleHeaderMenu=t._handleHeaderMenu.bind(t),t._viewModel.setState(i.protected.HEADER_MENU_AFFORDANCE,!0),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"eventList",value:function(){var e={};return e[t.protected.HEADER_CLICKED]=this._handleHeaderMenu,e}},{key:"_handleHeaderMenu",value:function(e){var i={top:e.event.bottomRect,left:e.event.leftRect,columnIndex:e.event.columnIndex};this.emit(t.protected.HEADER_CLICKED,i)}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(267)],o=i.dj.d(n,(function(e){return function(){function t(i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._viewModel=i.viewModel,this._viewModel.setState(e.displaySearch,!0)}return r(t,[{key:"eventList",value:function(){return{}}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(327),i(267),i(271),i(460),i(6223),i(975),i(632)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){"use strict";return function(e){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));i._viewModel=e?e.viewModel:null;var n=e?e.options:null,o=n?n.clipboardConfig:null;return i._onCutCallback=t.toPromise,i._onCopyCallback=t.toPromise,o&&(o.onCut&&(i._onCutCallback=o.onCut),o.onCopy&&(i._onCopyCallback=o.onCopy),i._onPasteCallback=o.onPaste,i._onFailureCallback=o.onFailure,i._onSuccessCallback=o.onSuccess),i._onFailure=i._onFailure.bind(i),i._onSuccess=i._onSuccess.bind(i),i._events={},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,e),r(s,[{key:"eventList",value:function(){var e=this,t={};return t[n.protected.TABLE_KEY_PRESS]=function(t){return e._handleKeyPress(t)},t}},{key:"_handleKeyPress",value:function(e){var t=e.event;if(function(e){return e.ctrlKey||e.meta||e.metaKey}(t))switch(t.keyCode){case o.C:t.nativeEvent&&t.nativeEvent.preventDefault(),this._handleCopyEvent(t);break;case o.X:t.nativeEvent&&t.nativeEvent.preventDefault(),this._handleCutEvent(t);break;case o.V:this._handlePasteEvent()}}},{key:"cut",value:function(){this._handleCutEvent(null)}},{key:"copy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;l.isDataTransferValid(e)?this._serviceWrite(e):this._handleCopyEvent(null)}},{key:"paste",value:function(){this._handlePasteEvent()}},{key:"_handleCutEvent",value:function(e){var t=this;this._isEditing()||this._getCutData().then((function(e){t._serviceWrite(e)}))}},{key:"_handleCopyEvent",value:function(e){var t=this;this._isEditing()||this._getCopyData().then((function(e){t._serviceWrite(e)}))}},{key:"_handlePasteEvent",value:function(){this._isEditing()||this._serviceRead()}},{key:"_getCutData",value:function(){return this._onCutCallback()}},{key:"_getCopyData",value:function(){return this._onCopyCallback()}},{key:"_onSuccess",value:function(e){var t=this._onSuccessCallback;t&&t(e)}},{key:"_onFailure",value:function(e){var t=this._onFailureCallback;t&&t(e)}},{key:"_serviceRead",value:function(){var e=this;if(this._onPasteCallback){var i=function(t){e._onPasteCallback(t)},n=a.getInstance(),o={restrictedAccess:i,fullAccess:i,onSuccess:this._onSuccess,onFailure:this._onFailure};t.convertSyncFunctionToPromise((function(){return n.read(o)})).catch((function(t){return e._onFailure(t)}))}}},{key:"_serviceWrite",value:function(e){var i=this;if(l.isDataTransferValid(e)){var n=function(){return e},o=a.getInstance(),r={restrictedAccess:n,fullAccess:n,onSuccess:this._onSuccess,onFailure:this._onFailure};t.convertSyncFunctionToPromise((function(){return o.write(r)})).catch((function(e){return i._onFailure(e)}))}}},{key:"_isEditing",value:function(){if(this._viewModel){if(this._viewModel.getStateByKey(i.protected.EDIT_STATE))return!0;var e=this._viewModel.getStateByKey(i.protected.EDIT_PROCESSING);return!(!e||!e.value)&&e.value}return!1}},{key:"_getSelectionRangeList",value:function(){if(this._viewModel){var e=this._viewModel.getStateByKey(i.protected.SELECTED);if(e)return e.rangeList}return null}}]),s}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6224)],o=i.dj.d(n,(function(e){return new class{constructor(){let e=this._availableClipboardServices();this._clipboardService=this._createClipboardService(e)}_createClipboardService(e){if(1===e.length)return new e[0]}_availableClipboardServices(){return[e]}getInstance(){return this._clipboardService}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2246),i(6225),i(2247),i(6226),i(2248),i(975)],o=i.dj.d(n,(function(e,t,i,n,o,r){return class{write(e){o.validateConfig(e,"write");let{restrictedAccess:t,onFailure:i,onSuccess:n}=e,a=t();o.validateForWriteReturnType(a,r),this._triggerCopy(a,n,i)}read(e){o.validateConfig(e,"read");let{restrictedAccess:t,onFailure:i,onSuccess:r}=e;n.create().then(this._handlePasteSuccess(t,r),this._handlePasteFailure(i))}_triggerCopy(t,n=(()=>{}),o=(()=>{})){let r=e.createTextBox(),a=e.addEventListener(r,"copy",e=>{this._handleWriteSuccess({event:e,dataTransfer:t,removeEventListener:a,textarea:r,onSuccess:n})});e.copy(r)||o({status:i.COPY_COMMAND_FAILED,message:"Failure to execute copy command"})}_handleWriteSuccess({event:n,dataTransfer:o,removeEventListener:r,textarea:a,onSuccess:s}){t.setClipboardData(n,o),n.preventDefault(),n.stopPropagation(),r(),e.destroy(a),s({status:i.COPY_COMMAND_SUCCESS,message:"Successfully executed copy command"})}_handlePasteSuccess(e,t=(()=>{})){return n=>{e(n.dataTransfer),t({status:i.CLIPBOARD_ACCESS_SUCCESS,message:"Successfully got access to clipboard"})}}_handlePasteFailure(e=(()=>{})){return()=>{e({status:i.CLIPBOARD_ACCESS_ERROR,message:"Failure to access clipboard within the timeout"})}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{setClipboardData(e,t){t.types.forEach(i=>{this.setData(e,i,t.getData(i))})},setData:(e,t,i)=>e.clipboardData.setData(t,i)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2247),i(6227),i(975)],o=i.dj.d(n,(function(e,t,i){"use strict";return{create(){let[e,t]=this._createPastePromise(),[i,n]=this._timeoutPromise(1e3);return Promise.race([e,i]).then(e=>(t(),n(),e))},_createPastePromise(){let e;return[new Promise(n=>{let o=t.onPaste(e=>{n({dataTransfer:i.createInstance(e.clipboardData)})});e=()=>{o()}}),e]},_timeoutPromise(e){let t,i=!1;return[new Promise((n,o)=>{let r=setTimeout(()=>{i=!0,o(new Error("Failure to access clipboard"))},e);t=()=>{i||(clearTimeout(r),n())}}),t]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2246)],o=i.dj.d(n,(function(e){"use strict";let t;let i={onPaste:function(i){return function(e){if(t&&0!==t.eventPhase){return e(t),()=>{}}}(i)||function(t){return e.addEventListener(document,"paste",(function(e){t(e)}))}(i)}};return document.addEventListener("paste",(function(e){t=e}),{capture:!0}),i}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(267)],o=i.dj.d(n,(function(e,t){"use strict";return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewModel=t.viewModel,this._logicalViewPort=t.viewPortList[0]}return r(e,[{key:"setActiveCell",value:function(e){var i=e.activeRange,n=e.scrollInPixels,o=e.leftScrollFn,r=e.topScrollFn,a=[i];if(i){if(this._viewModel.setState(t.protected.ACTIVE_CELL,null,a),n){var s=n.scrollLeft,l=n.scrollCol,c=n.scrollFn;isNaN(s)||null===s||o(s,l,c)}if(n){var d=n.scrollTop;isNaN(d)||null===d||r(d)}}else this._viewModel.setState(t.protected.ACTIVE_CELL,null,[])}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(301),i(267),i(271)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(e){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return t._viewModel=e.viewModel,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"eventList",value:function(){return{}}},{key:"setDefaultColumnWidth",value:function(e){e=Math.max(0,e),isNaN(e)||this._viewModel.setState(t.COL_WIDTH,e)}},{key:"setDefaultRowHeight",value:function(e){e=Math.max(0,e),isNaN(e)||this._viewModel.setState(t.ROW_HEIGHT,e)}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[],o=i.dj.d(n,(function(){"use strict";var e=function(){function e(t,i){a(this,e),this._next=null,this._prev=null,this._value=i,this._key=t}return r(e,[{key:"next",get:function(){return this._next},set:function(e){this._next=e}},{key:"prev",get:function(){return this._prev},set:function(e){this._prev=e}},{key:"isLast",get:function(){return null===this._next}},{key:"isFirst",get:function(){return null===this._prev}},{key:"key",get:function(){return this._key}},{key:"value",get:function(){return this._value}}]),e}();return function(){function t(){a(this,t),this._root=null}return r(t,[{key:"insert",value:function(t,i){var n=new e(t,i);return null!==this._root&&(this._root.prev=n,n.next=this._root),this._root=n,n}},{key:"find",value:function(e){if(null===this._root)return null;for(var t=this._root;t;){if(t.key===e)return t;t=t.next}return null}},{key:"forEach",value:function(e){if(null!==this._root)for(var t=this._root;t;)e(t),t=t.next}},{key:"removeWithKey",value:function(e){var t=this.find(e);this.remove(t)}},{key:"remove",value:function(e){e&&(e.isFirst?(this._root=e.next,this.root&&!this.root.isLast&&(e.next.prev=null)):e.isLast?e.prev.next=null:(e.prev.next=e.next,e.next.prev=e.prev))}},{key:"root",get:function(){return this._root}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(6232),i(239)],o=i.dj.d(n,(function(e,t){"use strict";var i=function(e,i){var n=[],o=function(e,t){var i=[],n=[];if(0===t.length)n=e.slice(0);else{if(e.forEach((function(e){if(e.start>=t.length||e.end>=t.length)throw new Error("RangeIndex exceeds dataIndexMap size");var n=t.slice(e.start,e.end+1);i=i.concat(n)})),0===i.length)return[];i.sort((function(e,t){return e-t}));var o={start:i[0],end:i[0]};n.push(o);for(var r=1;r<i.length;r+=1){var a=i[r];o.end+1===a||o.end===a?o.end=a:(o={start:a,end:a},n.push(o))}}return n}(e.map((function(e){return e.columns})),i);return n=n.concat(o.map((function(i){return t.range().setColumns(i.start,i.end).setRows(e[0].rows.start,e[0].rows.end)})))};return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._viewColumnIndexToDataIndex=[]}return r(n,[{key:"viewToModelRangeMapping",value:function(e){var n=this,o=[];return t.groupRangeListByRow(e).forEach((function(e){var t=i(e,n.viewColumnIndexToDataIndex);o=o.concat(t)})),o}},{key:"modelToViewDataMapping",value:function(e,o,r){var a=this,s=[],l=e.map((function(e){return e.range}));return r.forEach((function(r,c){var d=void 0;(d=function(e,n,o){var r=i([e],o),a=[];return r.forEach((function(e){for(var i=!1,o=0;o<n.length;o+=1)if(t.isRangeInside(e,n[o])){i=!0,a.push(o);break}if(!i)throw new Error("Data Range to view range mapping not found")})),a}(r,l,a.viewColumnIndexToDataIndex)).sort((function(t,i){return e[t].range.columns.start-e[i].range.columns.start}));var u=[];s[c]=function(e){if(e<u.length)return u[e];throw new Error("No Data Found for rowIndex: "+e)},s[c].range=r;for(var h=r.rows.start;h<=r.rows.end;h+=1){var p=n._createRow(h,d,e,o,a.viewColumnIndexToDataIndex);u[h]=p}})),s}},{key:"viewToDataIndex",value:function(e){var t=this.viewColumnIndexToDataIndex;return t.length>0?t[e]:e}},{key:"viewColumnIndexToDataIndex",set:function(e){this._viewColumnIndexToDataIndex=e},get:function(){return this._viewColumnIndexToDataIndex}}],[{key:"_createRow",value:function(t,i,n,o,r){var a=i.map((function(e){var i=n[e],r=[];return o&&(r=o[e]),{start:i.range.columns.start,end:i.range.columns.end,cells:i[t],metaData:r[t]||[]}}));return e(a,r)}}]),n}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";var e={};return function(t,i){if(!Array.isArray(t))throw new Error("No rowData Present");var n=function n(o){var r=void 0;r=0===i.length?o:i[o];var a=n._lastAccessRowDataIndex;do{if(r>=t[a].start&&r<=t[a].end)return{value:t[a].cells[r],metaData:t[a].metaData[r]||e,isEqual:function(e){return e.value===this.value&&e.metaData===this.metaData}};a+=1,a%=t.length}while(a!==n._lastAccessRowDataIndex);throw new Error("No Data Found for cellIndex: "+o)};return n._lastAccessRowDataIndex=0,n._rowData=t,n._dataIndexMap=i,n.isEqual=function(e){if(e._rowData.length!==t.length||i!==e._dataIndexMap)return!1;for(var o=0;o<=t.length;o+=1)if(n._rowData[o].data!==t[o].data)return!1;return!0},n}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){"use strict";return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._flatRangeList=[],this._headerMetaData=[],this._dataMetaData=[],this._viewMetaData=[],this._rankType=t.rankType||"row","row"===this._rankType?(this._flattenRangeDimension=function(e){return e.setColumns(0,0)},this._flattenData=function(e,t,i){return e[t](i)(0)}):"column"===this._rankType&&(this._flattenRangeDimension=function(e){return e.setRows(0,0)},this._flattenData=function(e,t,i){return e[t](0)(i)}),this._dataViewMapper=t.dataViewMapper}return r(e,[{key:"setViewHeaders",value:function(e){var t=e.slice(0);this._headerMetaData=t}},{key:"setRangeList",value:function(e){this._flatRangeList=e.map(this._flattenRangeDimension)}},{key:"setViewMetaData",value:function(e,t,i){this._viewMetaData[i]||(this._viewMetaData[i]={version:0,value:{}}),this._viewMetaData[i].value[e]=t,this._viewMetaData[i].version+=1}},{key:"deleteViewMetaData",value:function(e,t){this._viewMetaData[t]&&(delete this._viewMetaData[t].value[e],this._viewMetaData[t].version+=1)}},{key:"setDataMetaData",value:function(e){var t=this._transform(e,this._dataViewMapper,this._flattenData);this._dataMetaData=t}},{key:"getMetaDataRangeList",value:function(){return this._flatRangeList}},{key:"getUnifiedMetaData",value:function(){for(var e=this,t=this._dataMetaData,i=this._headerMetaData,n=[],o=function(e,t){return Object.keys(e).forEach((function(i){t[i]=e[i]})),t},r=function(r){var a=r;n.push((function(n){var r=t[a](n).value;r=Object(r);var s={};s=o(r,s);var l={_dataMetaData:t[a](n),isEqual:function(e){return this._headerMetaData===e._headerMetaData&&this._viewMetaDataVersion===e._viewMetaDataVersion&&this._dataMetaData.isEqual(e._dataMetaData)}};if(i[n]){var c=i[n];s=o(c,s),l._headerMetaData=i}if(e._viewMetaData[n]){var d=e._viewMetaData[n].value,u=e._viewMetaData[n].version;Object.keys(d).forEach((function(e){s[e]=d[e]})),l._viewMetaDataVersion=u}return l.value=s,l}))},a=0;a<t.length;a+=1)r(a);return n}},{key:"_transform",value:function(e,t,i){for(var n=t.modelToViewDataMapping(e,e,this._flatRangeList),o=[],r=i.bind(this,n),a=0;a<n.length;a+=1){var s=r.bind(this,a);o.push(s)}return o}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(250),i(1534),i(6239),i(6240),i(1536),i(634)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";var a=new r;return function(r){var s=r.colIndex,l=r.rowIndex,c=r.data,d=r.focused,u=void 0===d?{}:d,h=r.getEditor,p=r.getRenderer,f=r.groupAttr,g=r.focusCached,m=r.getInteractiveRenderer,_=r.setInteractiveRenderer,v=r.styleData,b=r.customProps,y=r.additionalClass,C=r.eventCallback,T=r.editState,E=r.editValidation,S=r.editProcessing,w=r.selectionMap,I=r.registration,A=r.displaySearch,x=r.useEditorRendererDataFields,N=r.resizeSelection,L=o(C).handleMouseOverWithRenderer,D=void 0,M=void 0,P=void 0,O=void 0,R=t,k=c(l)(s);M=m(l,s),P=h(l,s),k.metaData&&(A&&k.metaData.searchHighlight&&(O={searchHighlight:k.metaData.searchHighlight}),k.metaData.style&&(v.color=k.metaData.style.color||v.color,v.backgroundColor=k.metaData.style.backgroundColor||v.backgroundColor,v.fontWeight=k.metaData.style.fontWeight||v.fontWeight,v.fontSize=k.metaData.style.fontSize||v.fontSize,v.fontFamily=k.metaData.style.fontFamily||v.fontFamily,v.fontStyle=k.metaData.style.fontStyle||v.fontStyle,v.textAlign=k.metaData.style.textAlign||v.textAlign),k.metaData.rendererConfig&&((O=O||{}).rendererConfig=k.metaData.rendererConfig),k.metaData.renderer&&(D="string"==typeof k.metaData.renderer?I.renderer[k.metaData.renderer]:k.metaData.renderer),"interactiveRenderer"in k.metaData&&("string"==typeof k.metaData.interactiveRenderer?_(l,s,M=I.renderer[k.metaData.interactiveRenderer]):k.metaData.interactiveRenderer?_(l,s,M=k.metaData.interactiveRenderer):M=null),"editor"in k.metaData&&(P="string"==typeof k.metaData.editor?I.editor[k.metaData.editor]:k.metaData.editor?k.metaData.editor:null)),M?(R=i,D=M):P&&(R=n),D=D||p(l,s)||a;var F=[l,s].join(","),B=!!T[l+","+s]&&{rowIndex:l,colIndex:s};return e.createElement(R,{eventCallback:C,row:l,column:s,editType:"tableCell",rowIndex:l,colIndex:s,styleData:v,cellData:k,groupAttr:f,focusClass:u[F],focusCached:g,additionalClass:y,focused:u,renderer:D,editor:P,customProps:b,editState:B,editValidation:E,editProcessing:S,renderMetaData:O,selectionMap:w,handleMouseOver:L,useEditorRendererDataFields:x,resizeSelection:N})}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(978),i(271),i(1532),i(250)],o=i.dj.d(n,(function(e,t,i,n){return function(o){function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return e._handleMouseDown=e._handleMouseDown.bind(e),e._handleMouseUp=e._handleMouseUp.bind(e),e._borderResize=!1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),r(a,[{key:"_handleMouseDown",value:function(e){document.addEventListener("mouseup",this._handleMouseUp),window.addEventListener("blur",this._handleMouseUp);var i={resize:!0,location:this.props.cellResizeLocation,x:e.x,y:e.y};this.props.eventCallback(t.protected.RESIZE_SELECTION_BEGIN,i),this._borderResize=!0}},{key:"_handleMouseUp",value:function(e){document.removeEventListener("mouseup",this._handleMouseUp),window.removeEventListener("blur",this._handleMouseUp),this._borderResize=!1,this.props.eventCallback(t.protected.RESIZE_SELECTION_END,{resize:!1})}},{key:"_getClassFromLocation",value:function(e){var t="mw-table-resize-selection-affordance-top";return e===i.BOTTOM&&(t="mw-table-resize-selection-affordance-bottom"),t}},{key:"componentDidMount",value:function(){this.reactRef&&this.reactRef.tagName&&this.reactRef.addEventListener("mousedown",this._handleMouseDown)}},{key:"componentWillUnmount",value:function(){this.reactRef&&this.reactRef.tagName&&this.reactRef.removeEventListener("mousedown",this._handleMouseDown)}},{key:"render",value:function(){var t=this,i=this.props,o=i.cellResizeLocation,r=i.colIndex,a=this._getClassFromLocation(o);return n.createElement("div",{ref:function(e){t.reactRef=e},"data-test-id":e.RESIZE_SELECTION_AFFORDANCE,"data-resize-column":r,"data-resize-location":o,className:a})}}],[{key:"createComponent",value:function(e,t){var i=e.eventCallback,o=e.colIndex,r=e.colStartIndex;return r=r||o,n.createElement(a,{key:"resize."+o+t,cellResizeLocation:t,colIndex:r,eventCallback:i})}}]),a}(n.Component)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6237),i(841),i(1173),i(250)],o=i.dj.d(n,(function(e,t,i,n){return n.memo((function(o){var r=o.useEditorRendererDataFields,a=o.metaData;return function(t,i,o){if(o&&o.searchHighlight&&o.searchHighlight.matches)return function(t,i){var o=e.getHighlightedReact(t.toString(),i,"mw-table-highlight",!0);return n.createElement("div",{className:"mw-string-renderer","data-test-id":"highlightText","data-region":!0,style:{textOverflow:"ellipsis"}},o)}(t,o.searchHighlight.matches);return function(e,t){return n.createElement("div",{className:"mw-string-renderer",style:{textOverflow:"ellipsis",overflow:"hidden"}},t(e))}(t,i)}(o.value,(function(e){return e?t().getDisplayValue(e,i.RENDERER,r).toString():""}),a)}),(function(e,t){var i=e.value===t.value,n=!e.metaData&&!t.metaData,o=e.useEditorRendererDataFields===t.useEditorRendererDataFields;return i&&n&&o}))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(250),i(1174)],o=i.dj.d(n,(function(e,t){"use strict";return{getHighlightedReact:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mw-table-highlight",n=[];return Array.isArray(t)&&t.length>0?n=this._getMatchedReact(e,t,i):n.push(this._createReactNonHighlightedTextContentForDisplay(e)),n},_getMatchedReact:function(e,i,n){var o=this;return t._getHighlightTextArray(e,i).map((function(e){var t=e.value,r=e.highlight,a=e.className,s=void 0;if(r){var l=a||i.className||n;s=o._createReactHighlightedTextContentForDisplay(t,l)}else s=o._createReactNonHighlightedTextContentForDisplay(t);return s}))},_createReactHighlightedTextContentForDisplay:function(t,i){return e.createElement("mark",{className:i,"data-region":!0},this._getTextContent(t))},_createReactNonHighlightedTextContentForDisplay:function(t){return e.createElement(e.Fragment,{"data-region":!0},this._getTextContent(t))},_getTextContent:function(e){return e?e.toString():""}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(661),i(250)],o=i.dj.d(n,(function(e,t){return function(e){return e.loading?t.createElement("div",{className:"mw-table-progress-indicator"},t.createElement("mw-progress-indicator",{className:"progressIndicator",size:"xsmall",type:"spinner"})):null}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(250),i(1534),i(2258),i(429)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return i(t,{baseStyle:"mw-table-cell",cellType:n.cellType.INTERACTIVE_TABLE_CELL})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1534),i(1180),i(429)],o=i.dj.d(n,(function(e,t,i){"use strict";return t(e,{baseStyle:"mw-table-cell mw-table-text-full",cellType:i.cellType.EDITABLE_TABLE_CELL})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){var e={rowLabel:{enterEditEvent:"enterRowEditMode",editCompleteEvent:"rowEditComplete",editCanceledEvent:"leaveRowEditMode"},tableCell:{enterEditEvent:"enterEditMode",editCompleteEvent:"editComplete",editCanceledEvent:"leaveEditMode",editValidationEvent:"editValidation",processEditEvent:"processEdit"},treeCell:{enterEditEvent:"enterEditMode",editCompleteEvent:"editComplete",editCanceledEvent:"leaveEditMode"}};return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"getEditEventByType",value:function(t,i){return e[t][i]}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(738),i(527),i(477),i(459)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(){function o(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._refNode=e,this._type=t}return r(o,[{key:"delegateEvents",value:function(o){var r=this._detector=new i(this._refNode),a={};o.doubleClick&&(a.doubleClick=t.doubleTap({options:{maxRadius:3},callbacks:{recognized:function(e,t){var i=n.getCellInfo(e.srcEvent);o.doubleClick(e.srcEvent,i)}}})),o.click&&(a.click=t.leftClick({callbacks:{recognized:function(e,t){var i=n.getCellInfo(e.srcEvent);o.click(e.srcEvent,i)}}})),o.doubleClick&&o.click&&a.click.getCoordinator().waitForFailure(a.doubleClick),r.add(Object.keys(a).map((function(e){return a[e]}))),this._mouseDownCallback=function(t){var i=n.getCellInfo(t);t.button===e.MOUSE_LEFT_BUTTON&&o.mousedown(t,i)},this._mouseupCallback=function(t){var i=n.getCellInfo(t);o.mouseup&&t.button===e.MOUSE_LEFT_BUTTON&&o.mouseup(t,i)},this._refNode.addEventListener("mousedown",this._mouseDownCallback),this._refNode.addEventListener("mouseup",this._mouseupCallback)}},{key:"destroyEvents",value:function(){this._detector.destroy(),this._refNode.removeEventListener("mousedown",this._mouseDownCallback),this._refNode.removeEventListener("mouseup",this._mouseupCallback)}}],[{key:"TYPE",get:function(){return Object.freeze({CELL:"Cell"})}}]),o}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(327),i(267),i(1539),i(6244),i(6246),i(2234),i(6247)],o=i.dj.d(n,(function(e,t,i,n,o,s,l){"use strict";return function(){function c(i){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),this.initializeTable=this.initializeTable.bind(this),this.renderTable=this.renderTable.bind(this);var s=i.viewModel,l=i.viewPortList,d=i.options,u=i.controllers,h=i.dataStore,p=i.pluginEnum;this._viewModel=s,this._dataStore=h,s.setState(t.tableBottomLeftAffordanceHeight,0),s.setState(t.colResize,!1),s.setState("scrollPositionChanged",!1),s.setState(t.displaySearch,!1),s.setState(t.TABLE_AFFORDANCE_WIDTH,{run:function(){return 0}}),s.setState("ScrollChangeOnKeyPress",!1);var f=(d=d||{}).features;this.viewPortList=l,f=f||[],this.registry=[],this._adaptorList=new o,this.registry=u.map((function(e){return a._adaptorList.register(e.eventList()),[e]}));var g=n.separateControllers(e.dedupe(e.flatten(f)),p),m=r(g,2),_=m[0],v=m[1];d.initializedControllers=this.registry,_.forEach((function(e){var t=new e({viewModel:s,dataStore:h,viewPortList:l,tableView:a,options:d});a._adaptorList.register(t.eventList()),a.registry.push([t])})),v=n.prunePlugins(v,p),this._setupPlugins(v,d)}return a(c,[{key:"_setupPlugins",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];e.forEach((function(e){var o=void 0;"string"==typeof e.adaptor&&(o=s.EXPERIMENTAL_ADAPTORS[e.adaptor]);try{var r=void 0,a=o||e.adaptor,l=n.indexOf(a);l<0?(r=new a({viewModel:i._viewModel,dataStore:i._dataStore,viewPortList:i.viewPortList,tableView:i,options:t}),n.push(r),i.registry.push([new e({adaptor:r}),r])):(r=n[l],i.registry.push([new e({adaptor:r}),r])),i._adaptorList.register(r.eventList())}catch(e){}}))}},{key:"initializeTable",value:function(){this._lifecycle=new l(this._viewModel,this._adaptorList,this.viewPortList)}},{key:"renderTable",value:function(){this._table=this._lifecycle.mount(),this.throttledResize=i(this._table._handleResize,1e3/60)}},{key:"removeTable",value:function(){this.throttledResize&&this.throttledResize.cancel(),this._lifecycle.unmount(),this._viewModel.destroy(),this._table=null}},{key:"focus",value:function(){this._table.focus()}},{key:"domNode",get:function(){return this._lifecycle.domNode}}]),c}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(327),i(6245)],o=i.dj.d(n,(function(e,t){var i=["px","%",""];return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}return r(n,null,[{key:"column",value:function(n){var o={},r=n.label,a=n.dataIndex,s=n.width,l=s.value,c=s.unit;if(c=c||"",isNaN(a)||a<0)throw t.error.DATA_INDEX_REQUIRED;if(null===e.find(i,(function(e){return c===e})))throw t.error.INVALID_UNIT;return o.name=r||"",o.dataIndex=a,o.width=l,o.unit=c,o}},{key:"validateColPct",value:function(e){var t=0,i=0,n=-1;e.forEach((function(e,o){if(e.width&&e.width.unit&&!isNaN(e.width.value)&&"%"===e.width.unit){var r=Math.abs(e.width.value);t+=r,r>i&&(n=o,i=r)}}));var o=100-t;return o<0&&(n=-1),[o,n]}},{key:"separateControllers",value:function(e,t){var i=[],n=[];return t.CONTROLLERS.forEach((function(t){var o=0;t.forEach((function(t){var r=e.indexOf(t);r>-1&&(o++<1&&i.push(t),n.push(r))}))})),n.sort((function(e,t){return t-e})).forEach((function(t){e.splice(t,1)})),[i,e]}},{key:"prunePlugins",value:function(e,t){var i=[];return t.INCOMPATIBLE.forEach((function(t){var n=0;t.forEach((function(t,o){var r=e.indexOf(t);r>-1&&n++>0&&i.push(r)}))})),i.forEach((function(t){e.splice(t,1)})),e}}]),n}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({error:{INVALID_UNIT:new Error("Invalid column width unit specified, only 'px' or '%' allowed"),DATA_INDEX_REQUIRED:new Error("The dataIndex property is required in the column configuration")}})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){"use strict";return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._handlers={}}return r(e,[{key:"register",value:function(e){var t=this,i=e;Array.isArray(e)||(i=[e]),i.forEach((function(e){for(var i in e)t._handlers[i]=t._handlers[i]||[],t._handlers[i].push(e[i])}))}},{key:"handleEvent",value:function(e,t){var i=this._handlers[e];Array.isArray(i)&&i.forEach((function(e){return e(t)}))}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(6248),i(6281),i(6282),i(6283),i(690)],o=i.dj.d(n,(function(e,t,i,n,o){return function(){function a(t,o,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this._viewModel=t,this._viewPortList=r,this._adaptorList=o;var s=new n(this._viewModel,this._adaptorList,this._viewPortList);this.destroyInteractiveEvents=s.destroy.bind(s),this._buildComponents=new e(this._viewModel,s.eventCallback),this._render=new i(this._buildComponents.buildOuterWrapper(),this._viewModel)}return r(a,[{key:"mount",value:function(){var e=this._render.mount();return this._incomingData=new t(this._viewModel,this._render,this._buildComponents),o.renderUpdate(this._viewModel,this._viewPortList[0].getBufferedViewPort()),this._render.resize(),e}},{key:"unmount",value:function(){this.destroyInteractiveEvents(),this._render.unmount()}},{key:"domNode",get:function(){return this._render.domNode}}]),a}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(6249),i(6252)],o=i.dj.d(n,(function(e,t){return function(){function i(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._viewModel=n,this._propManager=new e({},n,o),this._factory=new t(this._propManager),this._rowHeader=void 0,this._headerEl=[],this._tableComp=void 0}return r(i,[{key:"buildDataComponents",value:function(e){this._propManager.updateProps(e),this._headerEl=this._factory.makeHeaderComponent(),this._propManager.props.displayRowHeader&&(this._rowHeader=this._factory.makeRowHeaderComponent()),this._tableComp=this._factory.makeTableComponent()}},{key:"buildTable",value:function(){return[this._factory.makeScrollComponent(this._tableComp,this._rowHeader),this._headerEl]}},{key:"buildOuterWrapper",value:function(){return this._factory.makeWrapperComponent(this.buildTable())}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(690),i(429),i(267),i(972),i(327),i(6250),i(6251),i(1175),i(739)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c){return function(){function d(t,r,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),this._viewModel=r,this._dataStore=t,this._props={},this._props.eventCallback=l,this._rowComponentList=r.getStateByKey("RowComponent")||{},this._props.dataTestId=null,this._sorted=[],this._size=new n(r),this._helper=a,this._props.headers=[],this._tableWidth=o.curry(e.computeTableHeight),this._initViewStateProps(),r.getStateByKey(i.protected.testId)&&(this._props.dataTestId=r.getStateByKey(i.protected.testId).value),"TreeTable"===r.getStateByKey(i.protected.WIDGET_TYPE).value&&(this._helper=s),this._props.component={cell:r.getStateByKey(i.protected.component.CELL).value,row:r.getStateByKey(i.protected.component.ROW).value,tooltip:r.getStateByKey(i.protected.component.TOOLTIP).value,tbody:r.getStateByKey(i.protected.component.TBODY).value},this._props.selectHeaders=function(){return r.getStateByKey(i.SELECT_HEADERS).value},this._props.selectRowHeaders=r.getStateByKey(i.SELECT_ROW_HEADERS).value,this._props.dragAndDrop=r.getStateByKey(i.dragAndDrop).value,this._props.reorderRows=r.getStateByKey(i.protected.REORDER_ROWS).value,this._props.reparentRows=r.getStateByKey(i.protected.REPARENT_ROWS).value,this._props.dragColumns=r.getStateByKey(i.dragColumns)?r.getStateByKey(i.dragColumns).value:null,this._props.dragRows=r.getStateByKey(i.dragRows)?r.getStateByKey(i.dragRows).value:null,this._props.widgetType=r.getStateByKey(i.protected.WIDGET_TYPE).value,r.getStateByKey(i.setDragData)&&(this._props.setDragData=r.getStateByKey(i.setDragData).value),this._props.canDrag=r.getStateByKey(i.protected.CAN_DRAG).value,this._props.canDrop=r.getStateByKey(i.protected.CAN_DROP).value,r.getStateByKey(i.setAvatar)&&(this._props.setAvatar=r.getStateByKey(i.setAvatar).value)}return r(d,[{key:"_initViewStateProps",value:function(){var e=this;[{name:i.ROW_HEIGHT,default:this._size.ROW_HEIGHT},{name:i.protected.HEADER_MENU_AFFORDANCE,default:!1},{name:i.protected.SORTABLE,default:!1},{name:i.tableBottomLeftAffordanceHeight,default:0},{name:i.TABLE_AFFORDANCE_WIDTH,default:{run:function(){return 0}}},{name:i.TRANSLATE_X,default:0},{name:i.colResize,default:!1},{name:i.SELECT_HEADERS,default:!1},{name:i.SELECT_ROW_HEADERS,default:!1},{name:i.dragAndDrop,default:!1},{name:i.dragColumns,default:!1},{name:i.dragRows,default:!1},{name:i.REGISTRATION,default:{}},{name:i.protected.GRID_STYLE,default:"STANDARD"},{name:i.protected.USE_DATA_FIELDS,default:!1},{name:i.protected.GROUPED_COLUMN_HEADERS,default:!1},{name:i.protected.REORDER_ROWS,default:!1},{name:i.protected.REPARENT_ROWS,default:!1},{name:i.protected.CAN_DRAG,default:!1},{name:i.protected.CAN_DROP,default:!1}].forEach((function(t){var i=e._viewModel.getStateByKey(t.name);i&&i.value||e._viewModel.setState(t.name,t.default)})),this._props.metadata={selections:[]},this._props.gridStyle=this._viewModel.getStateByKey(i.protected.GRID_STYLE),this._props.useEditorRendererDataFields=this._viewModel.getStateByKey(i.protected.USE_DATA_FIELDS),this._props.resizeSelection=this._viewModel.getStateByKey(i.protected.RESIZE_SELECTION),this._props.customProps={};var t=this._viewModel.getStateByKey(i.protected.INIT_CUSTOM_PROPS_FUNC);t&&t.value(this._viewModel,this._props),this._props.dataSize=this._viewModel.dataSize}},{key:"setHeaderSortState",value:function(e){this._props.sorted[e._index]=e[i.protected.SORTED]||{order:""}}},{key:"getHeaderSortType",value:function(e){return this._props.headers[e].sortType}},{key:"_isA",value:function(e,t){return Object.keys(t).reduce((function(t,i){return t&&"function"==typeof e[i]}),!0)}},{key:"_setColumnContent",value:function(e,t){var i=e(t).value,n=this._viewModel;i.interactiveRenderer&&this._isA(i.interactiveRenderer,{getDomNode:1,handleAction:1})?l.addMetadataToCol(t,n,"interactiveRenderer",i.interactiveRenderer):(i.editor&&l.addMetadataToCol(t,n,"editor",i.editor),i.renderer&&this._isA(i.renderer,{getDomNode:1})&&l.addMetadataToCol(t,n,"renderer",i.renderer))}},{key:"updateProps",value:function(n){var o=this._viewModel,r=n.viewData[0].range,a=o.dataSize,s=o.viewBuffer.rangeList[0];if(this._props.registration=o.getStateByKey(i.REGISTRATION).value,this._props.dataSize=this._viewModel.dataSize,this._props.editState=this.getEditState(o.getStateByKey(i.protected.EDIT_STATE)),this._props.colEditState=this.getEditState(o.getStateByKey(i.protected.COL_EDIT_STATE)),this._props.rowEditState=this.getEditState(o.getStateByKey(i.protected.ROW_HEADER_EDIT_STATE)),this._props.editValidation=this.getValidationState(o.getStateByKey(i.protected.EDIT_VALIDATION)),this._props.editProcessing=this.getEditState(o.getStateByKey(i.protected.EDIT_PROCESSING)),this._props.numberOfGutters=this.getNumberOfGutters(o.getStateByKey("numberOfGutters")),this._props.startRow=r.rows.start,this._props.endRow=r.rows.end,this._props.startCol=r.columns.start,this._props.endCol=r.columns.end,this._props.colResize=o.getStateByKey(i.colResize).value,this._props.tableAffordanceWidth=o.getStateByKey(i.TABLE_AFFORDANCE_WIDTH).value.run(),this._props.tableBottomLeftAffordanceHeight=o.getStateByKey(i.tableBottomLeftAffordanceHeight).value,this._props.displaySearch=!!o.getStateByKey(i.displaySearch)&&o.getStateByKey(i.displaySearch).value,this._props.checkboxTreetable=!!o.getStateByKey("checkboxTreetable")&&o.getStateByKey("checkboxTreetable").value,o.getStateByKey(i.displayRowHeader)){this._props.displayRowHeader=o.getStateByKey(i.displayRowHeader).value||o.getStateByKey(i.DISPLAY_ROW_HEADER_INDICES).value,this._props.rowHeaderWidth=o.getStateByKey(i.rowHeaderWidth).value,this._props.displayRowHeaderIndices=o.getStateByKey(i.DISPLAY_ROW_HEADER_INDICES).value;var l=o.getRowHeaderConfig.bind(o)();this._props.topLeftRowHeaderLabel=l?l.topLeftRowHeaderLabel:"",this._props.enableEdit=!!l&&l.enableEdit}this._props.rowHeight=o.getStateByKey(i.ROW_HEIGHT).value,this._props.focused=e.getFocusedCell(o.getStateByKey(i.protected.FOCUSED));var d=o.getStateByKey("selected")||{},u=o.getStateByKey(i.ACTIVE_RANGE)||{};this._props.metadata={selections:d.rangeList||[],activeRange:u.value,selectionType:d.value},this._props.translateX=o.getStateByKey(i.TRANSLATE_X).value,this._props.height=e.computeTableHeight(Math.max(a.rows.count,this._props.endRow),this._size.ROW_HEIGHT),this._props.data=n.viewData[0],this._props.colMenuAffordance=o.getStateByKey(i.protected.HEADER_MENU_AFFORDANCE).value,this._props.sortable=o.getStateByKey(i.protected.SORTABLE).value,this._props.scrollXPos=this._size.COL_WIDTH*this._props.startCol,this._props.scrollYPos=this._size.ROW_HEIGHT*this._props.startRow,this._props.totalLogicalWidth=this._size.COL_WIDTH*this._props.lastDataColumn,this._props.translateY=this._size.ROW_HEIGHT*this._props.startRow,this._props.logicalColWidth=this._size.COL_WIDTH,this._props.logicalRowHeight=this._size.ROW_HEIGHT,this._props.viewBuffer=s,this._props.rowMetaData=n.rowMetaData,this._props.colMetaData=n.columnMetaData;var h=o.getColumnHeaders().length;this._props.lastDataColumn=h||a.columns.end;var p=a.columns.count;this._allColumnsRendered=p===r.columns.count,h>t.UNPAGED_COL_LIMIT&&(this._allColumnsRendered=!1),this._setHeaders();var f=this._tableWidth(this._size.COL_WIDTH),g={headers:this._props.headers,allColumnsRendered:this._allColumnsRendered},m=c.getPercentColumnPageWidth(g);this._props.width=m||f(a.columns.count),this._props.columnClass=c.getTbodyHeaderClass(this._allColumnsRendered),this._props.tableClass=c.getTableHeaderClass(this._allColumnsRendered);var _=o.getStateByKey(i.protected.UPDATE_CUSTOM_PROPS_FUNC);return _&&_.value(o,n,this._props),this._checkPendingFunctionForView(o,r),this._props.spanningColumnHeaders=o.getSpanningHeaders(),this._props.groupedColumnHeaders=o.getStateByKey(i.protected.GROUPED_COLUMN_HEADERS).value,this._props.spanningColumnHeaders||(this._props.spanningColumnHeaders=this._mixSpanningColumnHeaders(n.columnSpanningMetaData)),this._props}},{key:"_checkPendingFunctionForView",value:function(e,t){var n=e.getStateByKey(i.protected.PENDING_FOCUS_FUNC);n&&this._helper.isRangeInside(t,n.rangeList[0])&&(n.value(n.rangeList[0]),e.deleteState(i.protected.PENDING_FOCUS_FUNC))}},{key:"setDisabledState",value:function(){var e=this._viewModel;this._props.isTableDisabled=function(){return!!e.getStateByKey(i.TABLE_DISABLED)&&e.getStateByKey(i.TABLE_DISABLED).value}}},{key:"_mixSpanningColumnHeaders",value:function(e){var t={};return e[0].forEach((function(e){e.forEach((function(e){e&&Object.keys(e.value).forEach((function(i){t[i]=e.value[i]}))}))})),t}},{key:"_getParsedHeader",value:function(t,i){var n=this._props.logicalColWidth,o=n,r="px";return null===i.label&&(i.label=t+1),i.width&&(o=Math.floor(i.width.value),r=i.width.unit),i._index=t,i.styleData=e.getTableHeaderStyle(o,r,this._allColumnsRendered,n),this.setHeaderSortState(i),i}},{key:"_setHeaders",value:function(){var t=this._props,i=t.colMetaData,n=t.startCol,r=t.endCol,a=this._viewModel,s=i||[function(){return{value:{}}}];a.deleteState("renderer"),a.deleteState("editor"),a.deleteState("interactiveRenderer");var c=[];this._props.sorted=[];for(var d=n;d<=r;d+=1){var u=s[0](d).value;c.push(this._getParsedHeader(d,u)),this._setColumnContent(s[0],d)}var h=a.getStateByKey("renderer")||{},p=a.getStateByKey("interactiveRenderer")||{},f=a.getStateByKey("editor")||{};this._props.getRenderer=o.curry(e.getContentFor)(h),this._props.getEditor=o.curry(e.getContentFor)(f),this._props.getInteractiveRenderer=o.curry(e.getContentFor)(p),this._props.setInteractiveRenderer=function(e,t,i){l.addMetadataToRange(e,e,t,t,a,"interactiveRenderer",i)},this._props.headers=c}},{key:"getSortedState",value:function(e){return this._sorted[e]||{order:""}}},{key:"getValidationState",value:function(e){return e&&e.hasOwnProperty("value")?e.value:{error:!1}}},{key:"getNumberOfGutters",value:function(e){return e&&e.hasOwnProperty("value")?e.value:0}},{key:"getEditState",value:function(e){return!(!e||!e.hasOwnProperty("value"))&&e.value}},{key:"props",get:function(){return this._props}}]),d}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239)],o=i.dj.d(n,(function(e){"use strict";return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"isRangeInside",value:function(t,i){return e.isRangeInside(t,i)}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239)],o=i.dj.d(n,(function(e){"use strict";return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"isRangeInside",value:function(t,i){var n=i.range;return e.isRangeInside(t,n)}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2262),i(6266),i(2269),i(6269),i(6271),i(6277),i(6278),i(6279),i(6280),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c,d){return function(){function u(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this.propFactory=e,this._scrollNodeIntoView=new a}return r(u,[{key:"makeRowHeaderComponent",value:function(){var e=this.propFactory.props,t=e.height,i=e.startRow,n=e.endRow,r=e.eventCallback,a=e.scrollYPos,s=e.logicalRowHeight,l=e.rowMetaData,c=e.metadata,u=e.viewBuffer,h=e.displayRowHeaderIndices,p=e.enableEdit,f=e.displayRowHeader,g=e.rowEditState,m=e.editState,_=e.topLeftRowHeaderLabel;return d.createElement(o,{scrollPos:a,displayRowHeaderIndices:h,scrollNodeIntoView:this._scrollNodeIntoView,displayRowHeader:f,rowHeaderHeight:t,eventCallback:r,rowHeight:s,rowMetaData:l,startRow:i,metadata:c,viewBuffer:u,enableEdit:p,topLeftRowHeaderLabel:_,rowEditState:g,cellEditState:m,endRow:n})}},{key:"makeTableComponent",value:function(e){var i=this.propFactory.props,n=i.height,o=i.width,r=i.tableClass,a=i.viewBuffer,s=i.customProps,l=i.widgetType,c=i.dataSize,u=i.startRow,h=i.startCol,p=i.eventCallback,f=i.translateX,g=i.scrollYPos,m=i.columnClass,_=i.displaySearch,v=i.endRow,b=i.endCol,y=i.metadata,C=i.headers,T=i.data,E=i.focused,S=i.editState,w=i.editValidation,I=i.editProcessing,A=i.logicalRowHeight,x=i.getRenderer,N=i.getEditor,L=i.getInteractiveRenderer,D=i.setInteractiveRenderer,M=i.component,P=i.registration,O=i.numberOfGutters,R=i.useEditorRendererDataFields,k=i.checkboxTreetable,F=i.resizeSelection;return d.createElement(t,{tableClass:r,height:n,width:o,widgetType:l,dataSize:c,scrollNodeIntoView:this._scrollNodeIntoView,translateY:g,translateX:f,eventCallback:p,columnClass:m,displaySearch:_,startRow:u,startCol:h,endRow:v,endCol:b,metadata:y,headers:C,data:T,focused:E,editState:S,editValidation:w,editProcessing:I,logicalRowHeight:A,getEditor:N,getRenderer:x,getInteractiveRenderer:L,setInteractiveRenderer:D,component:M,viewBuffer:a,customProps:s,registration:P,numberOfGutters:O,checkboxTreetable:k,useEditorRendererDataFields:R,resizeSelection:F})}},{key:"makeScrollComponent",value:function(e,t){var n=this.propFactory.props,o=n.eventCallback,r=n.tableBottomLeftAffordanceHeight,a=n.rowHeaderWidth,l=n.tableAffordanceWidth,u=n.metadata,h=n.dragAndDrop,p=n.setDragData,f=n.setAvatar,g=n.dragColumns,m=n.dragRows,_=n.canDrag,v=n.canDrop,b=n.reorderRows,y=n.reparentRows,C=n.widgetType,T=i;return h&&(T=s),d.createElement(c,null,d.createElement(T,{eventCallback:o,scrollNodeIntoView:this._scrollNodeIntoView,table:e,dragAndDrop:h,dragColumns:g,reorderRows:b,reparentRows:y,widgetType:C,canDrag:_,canDrop:v,dragRows:m,setDragData:p,setAvatar:f,metadata:u,rowHeader:t,rowHeaderWidth:a,tableAffordanceWidth:l,tableBottomLeftAffordanceHeight:r}))}},{key:"makeHeaderComponent",value:function(){var t=this.propFactory.props,i=t.eventCallback,n=t.tableAffordanceWidth,o=t.width,r=t.startCol,a=t.endCol,s=t.lastDataColumn,u=t.displayRowHeader,h=t.displayRowHeaderIndices,p=t.topLeftRowHeaderLabel,f=t.columnClass,g=t.scrollXPos,m=t.totalLogicalWidth,_=t.colMetaData,v=t.logicalColWidth,b=t.metadata,y=t.headers,C=t.viewBuffer,T=t.sorted,E=t.colResize,S=t.colMenuAffordance,w=t.sortable,I=t.spanningColumnHeaders,A=t.colEditState,x=t.selectHeaders,N=t.editState,L=t.groupedColumnHeaders,D=t.dragColumns,M=t.dragAndDrop,P=t.setAvatar,O=e;return M&&D&&(O=l),d.createElement(c,null,d.createElement(O,{scrollNodeIntoView:this._scrollNodeIntoView,displayRowHeader:u,displayRowHeaderIndices:h,topLeftRowHeaderLabel:p,scrollXPos:g,flexWidth:o,lastDataColumn:s,width:o,eventCallback:i,startCol:r,endCol:a,tableAffordanceWidth:n,children:y,columnClass:f,logicalColWidth:v,totalLogicalWidth:m,headers:y,colMetaData:_,viewBuffer:C,metadata:b,sorted:T,colResize:E,sortable:w,colMenuAffordance:S,spanningColumnHeaders:I,groupedColumnHeaders:L,selectHeaders:x,cellEditState:N,colEditState:A,dragColumns:D,setAvatar:P,dragAndDrop:M}))}},{key:"makeWrapperComponent",value:function(e,t){this.propFactory.props.isTableDisabled||this.propFactory.setDisabledState();var i=this.propFactory.props,o=i.eventCallback,r=i.maxWidth,a=i.dataTestId,s=i.component,l=i.selectHeaders,c=i.isTableDisabled,u=i.selectRowHeaders,h=i.gridStyle,p={maxWidth:r||"none"};return d.createElement(n,{dataTestId:a,style:p,scrollComponent:e,header:t,eventCallback:o,component:s,selectRowHeaders:u,isTableDisabled:c,selectHeaders:l,gridStyle:h})}}]),u}()}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){"use strict";return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t}return a(e,[{key:"getTooltip",value:function(e){return null!=e&&"object"!==(void 0===e?"undefined":r(e))||(e=""),"string"!=typeof e&&(e=e.toString()),{text:e}}},{key:"getDomNode",value:function(e){var t=document.createElement("div");return null!=e&&"object"!==(void 0===e?"undefined":r(e))||(e=""),"string"!=typeof e&&(e=e.toString()),e.split("\n").forEach((function(e){return function(e,t){var i=document.createElement("span");i.textContent=e,t.appendChild(i),t.appendChild(document.createElement("br"))}(e,t)})),t.className="mw-default-header-cell",t}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(978),i(271),i(250)],o=i.dj.d(n,(function(e,t,i){return function(n){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return e._handleMouseDown=e._handleMouseDown.bind(e),e._handleMouseUp=e._handleMouseUp.bind(e),e._handleMouseMove=e._handleMouseMove.bind(e),e.state={computedWidth:null},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),r(o,[{key:"shouldComponentUpdate",value:function(e){return this.props.colWidth!==e.colWidth||(this.props.colIndex!==e.colIndex||(this.props.colIndexEnd!==e.colIndexEnd||void 0))}},{key:"_getComputedWidth",value:function(){return this.affordance.parentNode.offsetWidth}},{key:"_handleMouseDown",value:function(e){e.stopPropagation(),e.preventDefault(),e.target.hasAttribute("data-affordance-index")&&(document.addEventListener("mouseup",this._handleMouseUp),document.addEventListener("mousemove",this._handleMouseMove),this.setState({column:Number(e.target.getAttribute("data-col-index")),computedWidth:this._getComputedWidth(),startPos:e.clientX}))}},{key:"_handleMouseUp",value:function(e){document.removeEventListener("mouseup",this._handleMouseUp),document.removeEventListener("mousemove",this._handleMouseMove),this._handleMouseMove(e);for(var i=this._getComputedWidth(),n=this.props.colIndexEnd-this.props.colIndex+1,o=0;o<n;o+=1)this.state.computedWidth!==i&&this.props.eventCallback(t.internal.COL_RESIZE_DONE,[{width:i/n,columnIndex:this.props.colIndex+o}])}},{key:"_handleMouseMove",value:function(e){for(var i=e.clientX-this.state.startPos,n=this.props.colIndexEnd-this.props.colIndex+1,o=0;o<n;o+=1)this.props.eventCallback(t.protected.COL_RESIZE,{width:Math.max(this.props.colWidth/n,i+this.state.computedWidth)/n,column:this.props.colIndex+o})}},{key:"_reportComputedWidth",value:function(){if(this.props.eventCallback)for(var e=this.props.colIndexEnd-this.props.colIndex+1,i=0;i<e;i+=1)this.props.eventCallback(t.protected.COL_HEADER_MOUNT,{width:this._getComputedWidth()/e,column:this.props.colIndex+i,noRender:!0})}},{key:"componentDidUpdate",value:function(){this._reportComputedWidth()}},{key:"componentDidMount",value:function(){this._reportComputedWidth()}},{key:"render",value:function(){var t=this,n=this.props,o=n.colIndex,r=n.colIndexEnd;return r=r||o,i.createElement("div",{ref:function(e){t.affordance=e},"data-test-id":e.RESIZE_AFFORDANCE,"data-affordance-index":o,"data-affordance-index-end":r,onMouseDown:this._handleMouseDown,className:"mw-table-resize-affordance"})}}]),o}(i.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(6256),i(271),i(267),i(250)],o=i.dj.d(n,(function(e,t,i,n){return function(i){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return e._handleMouseDown=e._handleMouseDown.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),r(o,[{key:"shouldComponentUpdate",value:function(e){return e.sortClass!==this.props.sortClass||e.sorted!==this.props.sorted}},{key:"_handleMouseDown",value:function(i){var n=this.props,o=n.sorted,r=n.sortType,a=n.colIndex,s=n.eventCallback,l=e.getNext(o);setTimeout((function(){return s(t.protected.SORT_AFFORDANCE_CLICKED,{order:l,type:r,column:a})}),0)}},{key:"render",value:function(){var e=this.props,t=e.colIndex,i=e.sorted,o=e.sortClass;return n.createElement("div",{"data-affordance-index":t,"data-sorted":i,onMouseDown:this._handleMouseDown,className:o})}}]),o}(n.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(955),i(327)],o=i.dj.d(n,(function(e,t){"use strict";var i=t.values(e.order);return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"getNext",value:function(e){var n=i.indexOf(e);if(-1===n)return i[0];var o=t.arrayMerge(i.slice(n),i);return o.shift(),o[0]}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(271),i(250)],o=i.dj.d(n,(function(e,t){"use strict";return function(i){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e._handleMouseDown=e._handleMouseDown.bind(e),e._handleClick=e._handleClick.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),r(n,[{key:"shouldComponentUpdate",value:function(e){return e.sorted!==this.props.sorted}},{key:"_handleMouseDown",value:function(e){e.stopPropagation()}},{key:"_handleClick",value:function(){var t=this.menuRef.getBoundingClientRect();this.props.eventCallback(e.protected.HEADER_CLICKED,{columnIndex:this.props.colIndex,colStartIndex:this.props.colStartIndex,colEndIndex:this.props.colEndIndex,bottomRect:window.pageYOffset+t.bottom,leftRect:window.pageXOffset+t.left,noRender:!0})}},{key:"render",value:function(){var e=this,i=this.props,n=i.colIndex,o=i.sorted,r=i.colStartIndex,a=i.colEndIndex;return t.createElement("div",{className:"mwTableHeaderMenuAffordanceContainer",onMouseDown:this._handleMouseDown,onClick:this._handleClick},t.createElement("div",{"data-affordance-index":n,ref:function(t){e.menuRef=t},"data-sorted":o,colStartIndex:r,colEndIndex:a,className:"mwTableHeaderMenuAffordance"}))}}]),n}(t.Component)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(271),i(633),i(2264),i(2265),i(2266),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=["mw-table-drag-icon","mw-table-dnd-source"];return r.memo((function(l){var c=l.avatarDefaultLabel,d=l.setAvatar,u=l.headerMeta,h=l.eventCallback,p=l.columnId,f=l.colIndex,g=l.onDragAction,m=l.scrollNode,_=l.dragType,v=void 0===_?"columns":_,b=l.dragSourceType,y=void 0===b?t.TABLE_DEFAULT_TYPE:b,C=o(h),T=C.startDragSource,E=C.setDropTarget,S=r.useRef(null),w=t.getDragType(v,y),I=function(){g(!1),i.setDropPosition({},h);var t=S.current.index,n={columnId:p,colIndex:f,targetIndex:t,headerMeta:u};S.current.valid&&h(e.internal.COLUMN_REORDERED,n)},A=function(e){S.current=e},x=function(){return{columnDnDSourceData:{data:{dragSourceType:y,value:{source:{ids:[p],type:w}}},dragType:v,count:1}}};return r.createElement("div",{className:a.join(" "),onMouseDown:function(){g(!0);var e,o=T(x,function(e,t){if(!t)return function(){return s(e)};return function(i){return t(i)||s(e)}}(c,d),v),r=function(e){var o=i.getTargetValidation(f,u,h,A);return{enter:n.lifecycleAddOn(o,n.debounceCheckForDragOut(e,t.targetLifeCycle.ENTER,h)),leave:n.debounceCheckForDragOut(e,t.targetLifeCycle.LEAVE,h),hover:n.debounceCheckForDragOut(e,t.targetLifeCycle.HOVER,h),drop:I}}(o),a=(e=S.current,{enter:function(){return e&&e.valid},drop:I}),l=[i.getColumnHeaderTarget(r)];return l.push(i.getTableCellTarget(r)),l.push(i.getInsertionLineTarget(a)),E(o,{targetList:l},m)}})}),(function(e,t){return e.columnId===t.columnId&&e.scrollNode===t.scrollNode}));function s(e){return{node:document.createTextNode(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";var e=Object.freeze({V_TRIGGER_AUTOSCROLL:32,H_TRIGGER_AUTOSCROLL:32,V_AUTOSCROLL_VALUE:16,H_AUTOSCROLL_VALUE:16}),t=[10,32],i=[0,32];function n(e){return(i[1]-e)*((t[1]-t[0])/(i[1]-i[0]))+t[0]}return{scroll:function(t,i,o){var r=i.scrollWidth>i.clientWidth,a=i.scrollHeight>i.clientHeight;if(r||a){var s=function(e,t){var i=e.getBoundingClientRect(),n=i.left,o=i.top;return{mouseLeftPosition:n+t.xOffset,mouseTopPosition:o+t.yOffset}}(t,o),l=s.mouseLeftPosition,c=function(e,t,i){var n=i.getBoundingClientRect(),o=n.left,r=n.top;return{distanceFromContainerBottom:n.bottom-e,distanceFromContainerTop:e-r,distanceFromContainerRight:n.right-t,distanceFromContainerLeft:t-o}}(s.mouseTopPosition,l,i),d=c.distanceFromContainerBottom,u=c.distanceFromContainerTop,h=c.distanceFromContainerRight,p=c.distanceFromContainerLeft;a&&(d<e.V_TRIGGER_AUTOSCROLL?i.scrollTop=i.scrollTop+n(d):u<e.V_TRIGGER_AUTOSCROLL&&(i.scrollTop=i.scrollTop-n(u))),r&&(h<e.H_TRIGGER_AUTOSCROLL?i.scrollLeft=i.scrollLeft+n(h):p<e.H_TRIGGER_AUTOSCROLL&&(i.scrollLeft=i.scrollLeft-n(p)))}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(632),i(633),i(327)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(){return{changeDragData:s,setDataByType:n,isDragValid:a,removeDnDStyle:r}};function n(e,i,n){var o=i,r=n.dndSourceDataToDropOutside,a={source:{type:t.TABLE_SOURCE_ROW}};e.setDataByType(t.TABLE_DEFAULT_TYPE,a),r&&(i=r.data.dragSourceType||o,e.setDataByType(i,r.data.value))}function o(e,t){return e&&t?e(t):i.toPromise()}function r(e){return!0}function a(e,t){return!0}function s(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.setDragData,r=i.selections,a=i.setSelections,s=i.setDndSourceData;if(t.selections&&e.areSelectionRangesDifferent(r,t.selections)&&(a(t.selections),n)){var l=e.getSelectionCountByRanges(t.selections),c=l.count,d=l.type;s(null),o(n,t.selections).then((function(e){return s({data:e,count:c,dragType:d})}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(632),i(2243),i(633),i(271),i(593),i(392),i(327)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";var s=null,l={};return function(c){var d=function(e){var t="";return"tableCell"===e?t=".mw-table-cell":"scrollComponent"===e&&(t=".mw-scrolling-div"),t},u=function(e,t,i){var n=e.getBoundingClientRect(),o=n.left,r=n.right,a=n.bottom,s=n.top,l=t.getBoundingClientRect(),c=l.left,d=l.top,u=c+i.xOffset,h=d+i.yOffset;return u>=o&&u<=r&&h>=s&&h<=a},h=function(e){return{enter:function(t,n){l={sourceStylesSet:!1,hoverStylesSet:!1,type:e},m(n);var o=t.getDataByType(i.TREETABLE_DEFAULT_TYPE),a=r.getIdsFromProxyNodes(o.source.proxyNodes);l.targetId=n.getAttribute("data-row-id"),l.row=n.getAttribute("data-row"),l.sourceIds=a,l.domNode=n;var s=void 0;for(var c in a)if((s=n.closest(".mw-table-inner-wrapper").querySelectorAll('[data-row-id="'+a[c]+'"]')).length>0&&!l.sourceStylesSet)for(var d=0;d<s.length;d++)s[d].classList.add("mw-table-row-drag-source");return l.sourceStylesSet=!0,_({id:l.targetId}),!!f(t)},hover:function(e,t){p(t)},leave:function(e,t){l.domNode===t&&v(),m(t,{clearStyles:!0})},drop:function(e,t){v();var n=e.getDataByType(i.TREETABLE_DEFAULT_TYPE).source.proxyNodes,o=l.target;g({dragItem:e,proxyNodes:n,target:o,domNode:t}),m(t,{dropCompleted:!0})}}},p=function(e){if(m(e),!l.hoverStylesSet){var t=e.closest("tr");if(t){var i=t.querySelectorAll("td");if(i.length>0){for(var n=0;n<i.length;n++)l.isDropValid?i[n].classList.add("mw-table-dnd-valid-hover"):i[n].classList.add("mw-table-dnd-invalid-hover");l.hoverStylesSet=!0}}}},f=function(e){var i=l,n=i.targetId,o=i.sourceIds,r=i.row,a={proxyNode:{id:n},type:i.type},s=c.canDrop,d=t.isInternalDrag();l.isDropValid=!0,l.target=a;var u={type:a.type};null!==a.proxyNode.id&&(u.proxyNode=a.proxyNode);var h=t.getCurrentRowMetaData(r).path||[],p=o.some((function(e){return h.includes(e)}));return!(o.includes(n)||p||s&&!s({dataTransferItem:e,target:u}))||!d||(l.isDropValid=!1,!1)},g=function(e){(0,c.eventCallback)(n.internal.ROW_DROPPED,e)},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.dropCompleted,n=t.clearStyles;if(l.hoverStylesSet||n){var o=e.closest("tr");if(o){var r=o.querySelectorAll("td");if(r.length>0){for(var a=0;a<r.length;a++)r[a].classList.remove("mw-table-dnd-valid-hover"),r[a].classList.remove("mw-table-dnd-invalid-hover");l.hoverStylesSet=!1}}}if(i)for(var s=e.closest(".mw-table-inner-wrapper").querySelectorAll(".mw-table-row-drag-source"),c=0;c<s.length;c++)s[c].classList.remove("mw-table-row-drag-source")},_=function(e){v(),s=window.setTimeout((function(){t.expandNode(e)}),1e3)},v=function(){window.clearTimeout(s)},b=function(e,t){return e&&t?e(t):a.toPromise()};return{changeDragData:function(t,n){var a=n.reorderRows,s=n.reparentRows,l=n.setDragData,c=n.selections,d=n.setSelections,u=n.setDndSourceData,h=n.setinternalRowDndSourceData;if(t.selections&&e.areSelectionIdsDifferent(c,t.selections)){d(t.selections);var p=Object.keys(t.selections),f=p.length,g=r.createProxyNodesWithIds(p),m={dragSourceType:i.TREETABLE_DEFAULT_TYPE,value:{source:{proxyNodes:g,type:o.TREETABLE_ROW}}};l&&(u(null),b(l,g).then((function(e){return u({data:e,count:f,dragType:"rows"})}))),(a||s)&&h({data:m,count:f,dragType:"rows"})}},createDropTarget:function(){return[{allowGlobal:!0,dropTarget:d("tableCell"),lifecycle:h(o.TREETABLE_ROW)},{allowGlobal:!0,dropTarget:d("scrollComponent"),lifecycle:h(o.TREETABLE)}]},setDataByType:function(e,t,i){var n=t,o=i.dndSourceDataToDropOutside,r=i.internalRowDndSourceData;o&&(t=o.data.dragSourceType||n,e.setDataByType(t,o.data.value)),r&&(t=r.data.dragSourceType,e.setDataByType(t,r.data.value))},isDragValid:function(e,t){var i=t.getXYCoordinates();return!function(e,t){var i=e.querySelector(".disclosureIcon");return!!i&&u(i,e,t)}(e,i)&&!function(e,t){var i=e.querySelector(".mw-checkbox-tree");return!!i&&u(i,e,t)}(e,i)},removeDnDStyle:m}}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2267),i(6263),i(1181),i(1540),i(250)],o=i.dj.d(n,(function(e,t,i,n,o){var a=function e(i,n,r){if(!i)return null;var a=i.headerList;if(!a)return i;for(var s=function(e,i,n){var r=e.label,a=e.id,s=e.headerRenderer,l=e.width,c=e.columnId,d=e.headerEditor,u=e.sortType,h=e.headerMenu,p=e.groupLength,f=e.colStartIndex,g=e.colEndIndex,m=!!n.colEditState&&n.colEditState===c;return o.createElement(t,{headerPosition:i,name:r,id:a,headerRenderer:s,headerEditor:d,width:l,columnId:c,eventCallback:n.eventCallback,colEditState:m,scrollNodeIntoView:n.scrollNodeIntoView,sortType:u,headerMenu:h,groupLength:p,colStartIndex:f,colEndIndex:g})}(i,n,r),l=[],c=0;c<a.length;c++){var d=e(a[c],n+c,r);d&&l.push(d)}return l.length?o.createElement("th",{className:"mw-table-hierarchical-column-header"},o.createElement("table",{className:"mw-table-spanning-header-outer"},o.createElement("thead",{className:"mw-table-spanning-header-inner"},o.createElement("tr",null,s),o.createElement("tr",{className:"mw-table-spanning-header-row"},l)))):null},s=function t(r,a,s,l){if(!r)return null;var c=r.headerList;if(!c)return r;for(var d=!0,u=0;u<c.length;u++)c[u].headerList&&(d=!1);if(!d)for(var h=0;h<c.length;h++)return t(c[h],a+h,s);var p=c[0].props.colIndex,f=c[c.length-1].props.colIndex,g=c[0].props.colSelectionMap;return s.logicalColWidth=r.width,r.styleData=r.styleData||{},r.styleData.minWidth=r.width+"px",r.styleData.maxWidth=r.width+"px",r._index=p,r.colIndexEnd=f,function(t,r,a,s){var l=t.label,c=t.styleData,d=t.headerRenderer,u=t.headerEditor,h=t.columnId,p=t.colIndexEnd,f=t.colStartIndex,g=t.colEndIndex,m=a.eventCallback,_=a.logicalColWidth,v=a.colResize,b=a.colMenuAffordance,y=a.dragColumns,C=a.sorted,T=void 0===C?[]:C,E=a.sortable,S=a.scrollNodeIntoView,w=t.id,I=t.sortType,A=t.headerMenu,x=t.groupLength,N=!!a.colEditState&&a.colEditState===h;c=c||{};var L=(T[t._index]||{}).order,D=void 0;return D=a.groupedColumnHeaders?e:u?i:n,o.createElement(D,{id:w,colIndexEnd:p,groupLength:x,colStartIndex:f,colEndIndex:g,sortType:I,headerEditor:u,headerMeta:t,range:s,headerRenderer:d,headerMenu:A,key:t._index,logicalColWidth:_,colIndex:t._index,styleData:c,eventCallback:m,colSelectionMap:r,sorted:L,colResize:v,colMenuAffordance:b,sortable:E,name:l,columnId:h,dragColumns:y,scrollNodeIntoView:S,colEditState:N})}(r,g,s,l)},l=function e(t){var i=t.width?t.width:0;return t.headerList?(t.headerList.forEach((function(t){t.width&&(i+=t.width,i+=e(t))})),t.width=i>0?i:t.width,0):i};return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"makeColumnHeaderGroup",value:function(e,t,i){var n=i.startCol,o=i.endCol,r=i.headers,c={start:n,end:o};if(c.start<0||c.start>c.end)return t;for(var d=[0],u=0;u<r.length;u++){var h=r[u],p=h.width?h.width.value:h.styleData.maxWidth;d[u+1]=p+d[u]}var f=function(e,t,i){var n=[],o={},r=Object.keys(e),a=function(e){var t={};return function i(n){var o=e[n];return t[n]||!o?null:(t[n]=!0,o.parentId&&e[o.parentId]?(e[o.parentId].headerList.push(o),i(o.parentId)):o)}}(o);if(0===r.length)return i;for(var s=0;s<r.length;s+=1){var l=r[s];o[l]=Object.create(e[l]),o[l].headerList=[],o[l].width=0}return t.forEach((function(e,t){if(e.parentId&&o[e.parentId]){var r=e.styleData.minWidth;o[e.parentId].width+=r,o[e.parentId].headerList.push(i[t]);var s=a(e.parentId,o);s&&n.push(s)}else n.push(i[t])})),n}(e,i.headers,t);f.forEach(l);var g=a;return i.groupedColumnHeaders&&(g=s),f.map((function(e,t){return g(e,t,i,c)}))}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(271),i(267),i(978),i(1181),i(593),i(1541),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,a,s){return a(function(n){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e));return t._handleMouseEnter=t._handleMouseEnter.bind(t),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),r(o,[{key:"_handleMouseEnter",value:function(i){var n=this,o=this.renderNode.firstChild,r=this.props,a=r.id,s=r.name;this.state.headerRenderer.getTooltip&&o.offsetWidth<o.scrollWidth&&this.props.eventCallback(e.protected.NODE_NOTIFY,{publisherFn:function(){return{node:i.target,id:"spanningHeader"+a,content:n.state.headerRenderer.getTooltip(s).text,className:"mw-table-header-column"}},publisherId:t.protected.publisher.CELL_ENTER,noRender:!0})}},{key:"render",value:function(){var e=this,t=this.props,n=t.headerPosition,o=t.colEditState,r=t.columnId,a=t.onContextMenu,l=["mw-table-header-column","mw-table-spanning-column-header","mw-table-flex-container"];return n>0&&l.push("mw-table-header-border-left"),s.createElement("th",{className:l.join(" "),onDoubleClick:this._handleDoubleClick,"data-edit-state":o,"data-column-id":r,onContextMenu:a},s.createElement("div",{className:"mw-table-header-label-container"},s.createElement("div",{ref:function(t){e.renderNode=t},"data-test-id":i.HEADER_LABEL,onMouseEnter:this._handleMouseEnter,className:"mw-table-header-label"})))}}]),o}(n),o.COLUMN_HEADER)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6265),i(1538)],o=i.dj.d(n,(function(e,t){"use strict";return t(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(271),i(267),i(1179),i(250)],o=i.dj.d(n,(function(e,t,i,n){return function(o){function a(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return e.state={topLeftWidth:0},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),r(a,[{key:"componentDidMount",value:function(){this.props.eventCallback(e.internal.NODE_SUBSCRIBE,{subscriberFn:this.setWidth.bind(this),subscriberId:t.subscriber.TOP_LEFT,subscribeTo:t.publisher.ROW_HEADER,noRender:!0});var n=this.topLeft.scrollWidth+i.getHeaderPaddingSize();this.setState({topLeftWidth:n}),this.sendWidth(n)}},{key:"setWidth",value:function(e){this.topLeft.style.minWidth=e+"px"}},{key:"sendWidth",value:function(i){this.props.eventCallback(e.internal.NODE_PUBLISH,{publisherFn:function(){return i},publisherId:t.publisher.TOP_LEFT_ROW_HEADER,noRender:!0})}},{key:"render",value:function(){var e=this,t=this.props,o=t.topLeftRowHeader,r=t.getTooltipWhenOverflow,a=[];return this.state.topLeftWidth>=i.getRowHeaderMaxWidth()&&(a=["mw-flex-child"]),n.createElement("div",{ref:function(t){e.topLeft=t},onMouseOver:function(e){return r(e.target,"topleftHeaderToolTip",o.text)},className:["mw-table-top-left-affordance","mw-table-no-left-border"].join(" ")},n.createElement("div",{className:a.join(" ")},o.text))}}]),a}(n.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(250),i(2268),i(271),i(267),i(6267)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return function(l){function c(){return a(this,c),s(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,l),r(c,[{key:"_setTableWidth",value:function(e){"100%"===e?(this.myTable.style.width=e,this.myTable.style.maxWidth=e):e>0&&(this.myTable.style.width=e+"px",this.myTable.style.maxWidth=e+"px")}},{key:"componentDidMount",value:function(){this.props.eventCallback(i.internal.NODE_SUBSCRIBE,{subscriberFn:this._setTableWidth.bind(this),subscriberId:n.subscriber.TABLE_WIDTH,subscribeTo:n.publisher.HEADER_ROW_WIDTH,noRender:!0})}},{key:"render",value:function(){var i=this,r=this.props,a=r.height,s=r.width,l=r.tableClass,c=r.dataSize,d=r.widgetType,u=r.scrollNodeIntoView,h=r.component,p={height:a,width:s},f=c.rows,g=void 0===f?{}:f,m=c.columns,_=void 0===m?{}:m,v=t.getRoleByWidgetType(d),b="mw-table "+l,y=g.count||0,C=_.count||0;return this.props.tableHasFocus=u.tableContainerHasFocus(),e.createElement("table",{ref:function(e){i.myTable=e},role:v,"aria-rowcount":y,"aria-colcount":C,"data-test-id":"mwtable",style:p,className:b},e.createElement(h.tbody,this.props),e.createElement(o,{subscriberId:n.subscriber.INSERTION_TABLE_BODY,eventCallback:this.props.eventCallback}))}}]),c}(e.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n=[i(271),i(267),i(250)],o=i.dj.d(n,(function(e,t,i){return i.memo((function(n){var o=n.eventCallback,a=n.subscriberId,s=i.useRef(null),l=i.useState({}),c=r(l,2),d=c[0],u=c[1],h=i.useState({}),p=r(h,2),f=p[0],g=p[1],m=i.useState(""),_=r(m,2),v=_[0],b=_[1];return i.useEffect((function(){g(function(e,t,i){if(i(e.lineClass),e.left){return{left:Math.ceil(e.left-t.getBoundingClientRect().left)}}return{display:"none"}}(d,s.current.parentNode,b))}),[d.left]),i.useEffect((function(){o(e.internal.NODE_SUBSCRIBE,{subscriberFn:function(e){return u(e)},subscriberId:a,subscribeTo:t.protected.publisher.DND_IN_ACTION,noRender:!0})}),[]),i.createElement("div",{ref:s,style:f,className:"mw-table-insertion-line "+v})}),(function(){return!0}))}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n=[i(2270),i(429),i(250)],o=i.dj.d(n,(function(e,t,i){return function(n){var o=n.children,a=i.useState(t.dimensions.ABSOLUTE_MIN),s=r(a,2),l=s[0],c=s[1],d=i.useState(!1),u=r(d,2),h={indexWidth:l,setIndexWidth:c,isMaxWidth:u[0],setIsMaxWidth:u[1]};return i.createElement(e.Provider,{value:h},o)}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(271),i(267),i(460),i(6270),i(1176),i(459),i(593),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){"use strict";var c=function(e){return e.preventDefault()};return function(a){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return t.state=e,t._handleResize=t._handleResize.bind(t),t._handleKeyDown=t._handleKeyDown.bind(t),t._handleFocus=t._handleFocus.bind(t),t._handleBlur=t._handleBlur.bind(t),t._handleMouseDown=t._handleMouseDown.bind(t),t._handleMouseUp=t._handleMouseUp.bind(t),t._handleDoubleClick=t._handleDoubleClick.bind(t),t._stopToggle=!1,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,a),r(s,[{key:"_handleMouseUp",value:function(e){this.myOuterWrapper.removeEventListener("selectstart",c)}},{key:"_handleMouseDown",value:function(e){e.shiftKey&&this.myOuterWrapper.addEventListener("selectstart",c)}},{key:"_handleKeyDown",value:function(n){switch(n.keyCode){case i.ARROW_UP:case i.ARROW_DOWN:case i.ARROW_RIGHT:case i.ARROW_LEFT:case i.PAGE_UP:case i.PAGE_DOWN:case i.END:case i.HOME:case i.SPACE:n.preventDefault(),n.stopPropagation();break;case i.ALT:case i.SHIFT:case i.CTRL:case i.META:return}this.props.eventCallback&&(this.props.eventCallback(e.protected.TABLE_KEY_PRESS,{nativeEvent:n,keyCode:n.keyCode,meta:n.metaKey,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,altKey:n.altKey,eventCallback:this.props.eventCallback}),this.props.eventCallback(e.protected.NODE_NOTIFY,{publisherFn:function(){return!0},publisherId:t.publisher.TOOLTIP_DISMISS,noRender:!0}))}},{key:"_handleFocus",value:function(e){this.props.eventCallback&&this.props.eventCallback("tableFocus",{target:e.target,noRender:!0}),this.setState({wrapperClass:"mw-table-outer-wrapper mw-table-outer-wrapper-focused"})}},{key:"_handleBlur",value:function(){this.state.editState&&!this.state.editProcessing||"mw-table-outer-wrapper-blurred"===this.state.wrapperClass||this.setState({wrapperClass:"mw-table-outer-wrapper-blurred"})}},{key:"_handleResize",value:function(t){this.myOuterWrapper&&this.state.eventCallback(e.internal.TABLE_RESIZE,{container:t})}},{key:"_handleDoubleClick",value:function(t){this.props.eventCallback&&this.props.eventCallback(e.protected.TABLE_DBL_CLICK,t)}},{key:"_isTableCellOrRowActive",value:function(e){if(e.scrollComponent&&e.scrollComponent.props&&e.scrollComponent.props.children&&e.scrollComponent.props.children.props&&e.scrollComponent.props.children.props.table&&e.scrollComponent.props.children.props.table.props&&e.wrapperClass){var t=e.scrollComponent.props.children.props.table.props,i=t.focused?Object.getOwnPropertyNames(t.focused).length:0,n=t.metadata&&t.metadata.selections?t.metadata.selections.length:0,o=e.wrapperClass,r=e.editState;if((i>0||n>0||r)&&-1!==o.indexOf("mw-table-outer-wrapper-focused"))return!0}return!1}},{key:"_setScrollAffordanceWidth",value:function(e){e>0?this.myOuterWrapper.classList.add("mw-table-has-vertical-scroll"):this.myOuterWrapper.classList.remove("mw-table-has-vertical-scroll")}},{key:"componentDidUpdate",value:function(){this.state.eventCallback(e.protected.FORCE_LAYOUT,{noRender:!0}),document.activeElement===this.myOuterWrapper&&"mw-table-outer-wrapper-blurred"===this.state.wrapperClass?this._handleFocus({target:this.myOuterWrapper}):this.myOuterWrapper.contains(document.activeElement)||this._handleBlur(),this.state.isTableDisabled&&this.state.isTableDisabled()?("mw-table-outer-wrapper"===this.state.wrapperClass&&(document.activeElement.blur(),this._handleBlur()),this.myOuterWrapper.removeAttribute("tabindex")):this.myOuterWrapper.setAttribute("tabindex","0"),this._isTableCellOrRowActive(this.state)&&this.setState({wrapperClass:"mw-table-outer-wrapper"})}},{key:"componentDidMount",value:function(){this.props.eventCallback(e.internal.NODE_SUBSCRIBE,{subscriberFn:this._setScrollAffordanceWidth.bind(this),subscribeTo:t.publisher.SCROLL_BAR_WIDTH,subscriberId:t.subscriber.TABLE_HAS_VERT_SCROLL,noRender:!0})}},{key:"focus",value:function(){this.myOuterWrapper&&this.myOuterWrapper.focus()}},{key:"render",value:function(){var e=this,t=this.state,i=t.header,r=t.scrollComponent,a=t.component,s=t.dataTestId,c=t.wrapperClass,d=t.isTableDisabled,u=t.selectHeaders,h=void 0===u?function(){return 0}:u,p=t.selectRowHeaders,f=t.gridStyle,g=!!d&&d(),m=[c=c||"mw-table-outer-wrapper-blurred"];return f&&o.hasOwnProperty(f.value)&&m.push(o[f.value]),h()&&m.push("mw-table-select-headers"),p&&m.push("mw-table-select-row-headers"),l.createElement("div",{className:"mw-table-component mw-table-scoped"},l.createElement("div",{ref:function(t){e.myOuterWrapper=t},tabIndex:"0","data-test-id":s,className:m.join(" "),onKeyDownCapture:this._handleKeyDown,onFocusCapture:this._handleFocus,onBlur:this._handleBlur,onMouseDownCapture:this._handleMouseDown,onMouseUp:this._handleMouseUp,onDoubleClick:this._handleDoubleClick},i,r,l.createElement(a.tooltip,this.props)),l.createElement(n,{disabled:g}))}}]),s}(l.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(250)],o=i.dj.d(n,(function(e){"use strict";return function(t){function i(){return a(this,i),s(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,t),r(i,[{key:"render",value:function(){var t=this;return this.props.disabled?e.createElement("div",{ref:function(e){t.disableWrapperRef=e},className:"mw-table-disable-layer",onContextMenu:function(e){return e.preventDefault()}}):null}}]),i}(e.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(271),i(267),i(634),i(1179),i(6272),i(327),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,a,s){var l=n.getRowHeaderMaxWidth(),c=new i;return function(i){function d(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,e));return t.state={topLeftWidth:0,isMaxWidth:!1},t.makeRowHeader=t.makeRowHeader.bind(t),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(d,i),r(d,[{key:"setWidth",value:function(i){this.props.eventCallback(e.internal.NODE_PUBLISH,{publisherFn:function(){return i},publisherId:t.publisher.ROW_HEADER,noRender:!0}),this.rowHeader.style.width=i+"px"}},{key:"makeRowHeader",value:function(e){var t=this.props,i=t.rowMetaData,o=t.viewBuffer,r=o.rows.start,s=o.rows.end,l=[];return i&&i.length>0&&l.push(function(e,t,i,o,r){var a=[];if(i-t+1>0){var s=e.rowMetaData,l=n.getLabels(s,t,i);r=r||c,l.forEach((function(e){e.label=e.label||" ",a.push({key:e.rowIndex,rowIndex:e.rowIndex,headerRenderer:r,isMaxWidth:o,label:e.label})}))}return a}(this.props,r,s,e)),a.transpose(l)}},{key:"componentDidUpdate",value:function(){var e=Math.min(this.rowHeader.scrollWidth,l);e>=l&&!this.state.isMaxWidth&&this.setState({isMaxWidth:!0}),this.setWidth(e)}},{key:"componentDidMount",value:function(){var i=this;this.props.eventCallback(e.internal.NODE_SUBSCRIBE,{subscriberFn:function(e){e>l&&(e=l),i.setState({topLeftWidth:e})},subscriberId:t.subscriber.ROW_HEADER,subscribeTo:t.publisher.TOP_LEFT_ROW_HEADER,noRender:!0})}},{key:"render",value:function(){var e=this,t=this.props,i=t.scrollPos,r=t.rowHeaderHeight,a=t.viewBuffer,l={},c={},d=this.makeRowHeader(this.state.isMaxWidth),u=n.getSelectionMap(this.props),h=this.state.topLeftWidth;return"number"==typeof i&&(l={height:r},c={minWidth:h+"px",transform:"translateY("+i+"px)",WebkitTransform:"translateY("+i+"px)"}),s.createElement("div",{className:"mw-table-row-header","data-test-id":"mw-table-row-header",style:l},s.createElement("div",{ref:function(t){e.rowHeader=t},className:"mw-table-tbody-row-header",style:c},function(e,t,i,n,r){for(var a=[],l=e;l<=t;l++){var c=i[l-e],d=s.createElement(o,{headers:c,rowIndex:l,lastRowIndex:t,enableEdit:n.enableEdit,displayRowHeaderIndices:n.displayRowHeaderIndices,key:l,eventCallback:n.eventCallback,scrollNodeIntoView:n.scrollNodeIntoView,rowHeight:n.rowHeight,rowEditState:n.rowEditState,rowSelectionMap:r});a.push(d)}return a}(a.rows.start,a.rows.end,d,this.props,u)))}}]),d}(s.Component)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6273),i(2271),i(6275),i(250)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(o){var r=o.headers,a=o.rowIndex,s=o.lastRowIndex,l=o.displayRowHeaderIndices,c=o.enableEdit,d=o.eventCallback,u=o.scrollNodeIntoView,h=o.rowHeight,p=o.rowEditState,f=o.rowSelectionMap,g=r&&r.length>0||!1,m=c?e:t,_=g?[]:["mw-table-flex-cell-full-width"];return n.createElement("div",{className:["mw-table-flex-row"].join(" "),"data-row-index":a},l?function(e){return n.createElement(i,{indexDisplay:e+1,lastRowIndex:s,key:e,additionalClass:_,rowIndex:e,hasLabels:g,eventCallback:d,rowHeight:h,rowSelectionMap:f})}(a):null,g?r.map((function(e){return n.createElement(m,{key:e.rowIndex,rowIndex:e.rowIndex,colIndex:e.colIndex||0,headerRenderer:e.headerRenderer,value:e.label,isMaxWidth:e.isMaxWidth,scrollNodeIntoView:u,editType:"rowLabel",row:a,label:e.label,rowHeight:h,eventCallback:d,rowSelectionMap:f,editState:p})})):null)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2271),i(1180)],o=i.dj.d(n,(function(e,t){"use strict";return t(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(978),i(2256),i(1537),i(250)],o=i.dj.d(n,(function(e,t,i,n){var o=function(){};return function(l){function c(){return a(this,c),s(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,l),r(c,[{key:"render",value:function(){var r=this,a=this.props,s=a.rowIndex,l=a.rowHeight,c=a.editState,d=a.isMaxWidth,u=a.scrollNodeIntoView,h=a.additionalClass,p=void 0===h?[]:h,f=a.onMouseDown,g=void 0===f?o:f,m=a.onMouseUp,_=void 0===m?o:m,v=a.onContextMenu,b=a.label,y=void 0===b?"":b,C=a.eventCallback,T=a.enterEditMode,E=a.headerRenderer,S=a.handleEditComplete,w=a.handleEditCanceled,I={},A=["mw-table-row-header-cell","mw-table-flex-cell-full-width","mw-cell-border-right"].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(p));l&&(I={minHeight:l+"px",maxHeight:l+"px"}),A.push(function(e,t){return e===t?"mw-table-flex-cell-edit":""}(c,s));var x=["mw-table-force-flex-padding-right"];(c===s||d)&&(x=[]);return n.createElement("div",{style:I,ref:function(e){r.headerRef=e},key:"row-header-"+s,"data-edit-state":c,"data-label-index":s,"data-test-id":e.ROW_HEADER_LABEL,onMouseDown:g,onMouseUp:_,onContextMenu:v,onDoubleClick:function(){T&&u.scrollIntoVerticalView(r.headerRef).then((function(){return T()}))},className:A.join(" ")},n.createElement("div",{key:s,className:x.join(" ")},c===s?n.createElement(i,{value:y,key:"edit-"+s,eventCallback:C,handleEditCanceled:w,handleEditComplete:S,editType:"rowLabel"}):n.createElement(t,{value:y,key:"render-"+s,eventCallback:C,renderer:E})))}}]),c}(n.PureComponent)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6276),i(2272),i(1541),i(593)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return t(i(e,n.ROW_HEADER))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2270),i(1179),i(250)],o=i.dj.d(n,(function(e,t,i){var n=function(){};return function(o){var r=o.indexDisplay,a=o.rowHeight,s=o.eventCallback,l=o.additionalClass,c=void 0===l?[]:l,d=o.onMouseDown,u=void 0===d?n:d,h=o.onMouseUp,p=void 0===h?n:h,f=o.onContextMenu,g=void 0===f?n:f,m=o.rowIndex,_=o.hasLabels,v=o.lastRowIndex,b=i.useRef(),y=i.useContext(e),C=y.indexWidth,T=y.setIndexWidth,E={width:C+"px"},S=["mw-table-row-header-cell","mw-text-center","mw-cell-border-right"].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(c));return a&&(E.minHeight=a+"px",E.maxHeight=a+"px"),i.useEffect((function(){v===m&&b.current.scrollWidth>b.current.clientWidth&&T(b.current.scrollWidth+t.getHeaderPaddingSize())}),[v,_]),i.createElement("div",{ref:b,style:E,key:m,"data-index":m,"data-test-id":"mw-row-header-index",rowIndex:m,onMouseDown:u,onMouseUp:p,onContextMenu:g,eventCallback:s,className:S.join(" ")},i.createElement("div",{className:"mw-table-force-flex-padding-right"},r))}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(212)],o=i.dj.d(n,(function(e){return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,[{key:"getScrollNode",value:function(){return this._scrollNode}},{key:"tableContainerHasFocus",value:function(){return this._scrollNode.parentNode===document.activeElement}},{key:"scrollIntoView",value:function(e){var t=this;return this._outOfLeftBoundary(e).then((function(i){return i.needsRightBoundaryCheck?t._outOfRightBoundary(e).then((function(){return{isEditable:!0}})):{isEditable:i.isEditable}}))}},{key:"scrollIntoVerticalView",value:function(t){var i=t.getBoundingClientRect(),n=this._container.getBoundingClientRect(),o=i.bottom-this._scrollNode.clientHeight-n.bottom,r=i.bottom-n.bottom-22,a=new e;return o>0?this._scrollNode.scrollTop+=o:r<0&&(this._scrollNode.scrollTop+=r),a.resolve(),a}},{key:"_outOfLeftBoundary",value:function(t){var i=this,n={left:t.left},o=this._container.getBoundingClientRect(),r=new e;return o.left-n.left>162?r.resolve({needsRightBoundaryCheck:!1,isEditable:!1}):n.left<o.left?(this._scrollNode.scrollLeft-=10,n.left+=10,setTimeout((function(){i._outOfLeftBoundary(n).then((function(){return r.resolve({needsRightBoundaryCheck:!1,isEditable:!0})}))}))):r.resolve({needsRightBoundaryCheck:!0,isEditable:!0}),r}},{key:"_outOfRightBoundary",value:function(t){var i=this,n={left:t.left,right:t.right},o=this._container.getBoundingClientRect(),r=new e;return n.right>o.right&&o.right-n.left<200?(this._scrollNode.scrollLeft+=10,n.right-=10,n.left-=10,setTimeout((function(){i._outOfRightBoundary(n).then((function(){return r.resolve()}))}))):r.resolve(),r}},{key:"container",set:function(e){this._container=e}},{key:"scrollNode",set:function(e){this._scrollNode=e}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2269),i(2273)],o=i.dj.d(n,(function(e,t){"use strict";return t(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2262),i(2273)],o=i.dj.d(n,(function(e,t){"use strict";return t(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n=[i(979),i(250)],o=i.dj.d(n,(function(e,t){return function(i){var n=i.children,o=t.useState(!1),a=r(o,2),s=a[0],l=a[1],c=t.useState(""),d=r(c,2),u=d[0],h=d[1],p=t.useState(!1),f=r(p,2),g=f[0],m=f[1],_=t.useState(null),v=r(_,2),b=v[0],y=v[1],C=t.useState(null),T=r(C,2),E=T[0],S=T[1],w=t.useState({}),I=r(w,2),A={dndEnabled:s,setDnDEnabled:l,dndSourceData:u,setDnDSourceData:h,dndTarget:g,setDnDTarget:m,dndNode:b,setDndNode:y,scrollNode:E,setScrollNode:S,dragPositionState:I[0],setDragPositionStateState:I[1]};return t.createElement(e.Provider,{value:A},n)}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2251),i(267)],o=i.dj.d(n,(function(e,t){return function(){function i(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._pendingRender=null,this._render=this._triggerRender,this._viewModel=e,this._renderer=t,this._build=n,e.on("dataSizeChanged",this._dataSizeChanged.bind(this)),e.on("viewDataChanged",this._viewDataChanged.bind(this)),e.on("renderTypeChanged",this._renderTypeChanged.bind(this))}return a(i,[{key:"_renderTypeChanged",value:function(t){var i=t.type;switch(i){case e.ASYNC:this._render=this._requestRender;break;case e.SYNC:this._render=this._triggerRender;break;default:throw new Error("Incorrect render type provided: "+i)}}},{key:"_dataSizeChanged",value:function(){this._removeDirtyStates(),this._renderer.resize()}},{key:"_removeDirtyStates",value:function(){var e=this._viewModel.getStateByKey(t.protected.SORTED);if(e&&e.rangeList){var i=e.rangeList[0].columns.start;this._viewModel.deleteColumnMetaData(t.protected.SORTED,i),this._viewModel.deleteState(t.protected.SORTED)}}},{key:"_requestRender",value:function(){var e=this;null===this._pendingRender&&(this._pendingRender=window.requestAnimationFrame((function(){e._triggerRender(),e._pendingRender=null})))}},{key:"_triggerRender",value:function(){var e=this._build.buildTable(),t=r(e,2),i=t[0],n=t[1];this._renderer.render(i,n)}},{key:"_viewDataChanged",value:function(e){this.buffEnd=this._viewModel.viewBuffer.rangeList[0].rows.end,this._build.buildDataComponents(e),this._render()}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(267),i(2147)],o=i.dj.d(n,(function(e,t){return function(){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._container=document.createElement("div"),this._container.style.height="100%",this._container.style.width="100%",this._table=e,this._viewModel=t}return r(i,[{key:"mount",value:function(){return this._tableComponent=t.render(this._table,this._container),this.resize(),this._tableComponent}},{key:"render",value:function(t,i){var n=!!this._viewModel.getStateByKey(e.protected.EDIT_STATE)&&this._viewModel.getStateByKey(e.protected.EDIT_STATE).value,o=!!this._viewModel.getStateByKey(e.protected.EDIT_PROCESSING)&&this._viewModel.getStateByKey(e.protected.EDIT_PROCESSING).value;this._tableComponent&&this._tableComponent.setState({scrollComponent:t,header:i,editState:n,editProcessing:o})}},{key:"resize",value:function(){this._tableComponent._handleResize(this._container),this._tableComponent._handleResize(this._container)}},{key:"unmount",value:function(){t.unmountComponentAtNode(this._container),this._container.parentNode&&this._container.parentNode.removeChild(this._container),this._container=null,this._tableComponent=null}},{key:"domNode",get:function(){return this._container}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1539),i(690),i(267)],o=i.dj.d(n,(function(e,t,i){return function(){function n(o,r,a){var s=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._viewModel=o,this._adaptorList=r,this._viewModel.viewPortList=a,this._handlingUserInteraction=!1,this._triggerRender=!1,this._handleMetaDataUpdate=this._handleMetaDataUpdate.bind(this),this._handleMetaDataFlags=this._handleMetaDataFlags.bind(this),this.eventCallback=this.eventCallback.bind(this),this.throttledRender=e(t.renderUpdate,1e3/60),this.destroy=this.destroy.bind(this),o.on(i.REGISTRATION,(function(){s.throttledRender(s._viewModel)})),o.on(i.protected.SELECTED,this._handleMetaDataUpdate),o.on(i.protected.FOCUSED,this._handleMetaDataUpdate),o.on(i.protected.SORTED,this._handleMetaDataUpdate),o.on(i.protected.EDIT_STATE,this._handleMetaDataUpdate),o.on(i.protected.COL_EDIT_STATE,this._handleMetaDataUpdate),o.on(i.protected.ROW_HEADER_EDIT_STATE,this._handleMetaDataUpdate),o.on(i.protected.ROW_HEIGHT,this._handleMetaDataUpdate),o.on(i.protected.COL_WIDTH,this._handleMetaDataUpdate),o.on(i.protected.EDIT_VALIDATION,this._handleMetaDataUpdate),o.on(i.protected.EDIT_PROCESSING,this._handleMetaDataUpdate),o.on(i.COLUMN_RESIZED,this._handleMetaDataFlags),o.on(i.protected.COLUMN_CONFIG,this._handleMetaDataFlags),o.on(i.TABLE_DISABLED,this._handleMetaDataUpdate)}return r(n,[{key:"_handleMetaDataFlags",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!0===e.value&&this._handleMetaDataUpdate(e)}},{key:"_handleMetaDataUpdate",value:function(){this._handlingUserInteraction?this._triggerRender=!0:this.throttledRender(this._viewModel)}},{key:"destroy",value:function(){this.throttledRender.cancel()}},{key:"eventCallback",value:function(e,t){t=t||{},this._handlingUserInteraction=!0,this._adaptorList.handleEvent(e,{dataSize:this._viewModel.dataSize,viewPort:this._viewModel.viewPort,event:t});var i=this._viewModel.getStateByKey("scrollPositionChanged")||{value:!1};this._triggerRender&&!i.value&&this.throttledRender(this._viewModel),this._triggerRender=!1,this._viewModel.setState("scrollPositionChanged",!1),this._handlingUserInteraction=!1}}]),n}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2274)],o=i.dj.d(n,(function(e){return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewModel=t}return r(e,[{key:"numRows",get:function(){var e=this;return function(){return e._viewModel.dataSize.rows.count}}},{key:"numColumns",get:function(){var e=this;return function(){return e._viewModel.dataSize.columns.count}}}]),e}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2274),i(2229),i(327),i(429),i(972),i(267),i(739),i(239)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){return function(){function c(t){var i=t.viewModel,n=t.dataSize;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),this._dataSize=n,this._viewModel=i,this.getBufferedViewPort=this.getBufferedViewPort.bind(this),this._viewModel.setState(a.TABLE_AFFORDANCE_WIDTH,e.from((function(){return 0}))),this._viewModel.setState("headerRow",[]),this._viewModel.setState("scrollPositionChanged",!1),this._size=new o(this._viewModel)}return r(c,[{key:"getFirstVisibleRow",value:function(){return 0}},{key:"getLastVisibleRow",value:function(){return 0}},{key:"getVisibleRowCount",value:function(){return 0}},{key:"getFirstVisibleColumn",value:function(){return 0}},{key:"getLastVisibleColumn",value:function(){return 0}},{key:"getVisibleColumnCount",value:function(){return 0}},{key:"getFirstBufferedRow",value:function(){return 0}},{key:"getLastBufferedRow",value:function(){return 0}},{key:"getFirstBufferedColumn",value:function(){return 0}},{key:"getLastBufferedColumn",value:function(){return 0}},{key:"_maxColIndex",value:function(){var e=this._viewModel.getColumnHeaders().length-1;return e<0?this._viewModel.dataSize.columns.end:e}},{key:"getViewPort",value:function(e){return l.range().setRows(this.getFirstVisibleRow(),this.getLastVisibleRow()).setColumns(this.getFirstVisibleColumn(),this.getLastVisibleColumn(e))}},{key:"getBufferedViewPort",value:function(e){var t=this.getFirstBufferedColumn(),i=this.getLastBufferedColumn(e),n=this._viewModel.getColumnHeaders().length||this._viewModel.dataSize.columns.count;return s.notEnoughColumnsToPage(n)&&(t=0,i=this._maxColIndex()),l.range().setRows(this.getFirstBufferedRow(),this.getLastBufferedRow()).setColumns(t,i)}},{key:"setScrollTop",value:function(e){}},{key:"getScrollTop",value:function(){return 0}},{key:"getScrollLeft",value:function(){return 0}},{key:"getWidth",value:function(){return 0}},{key:"setContainer",value:function(o){var r=this;this._viewModel.setState(a.VIEWPORT_CONTAINER,o);var s=i.curry(t.sum)(-1*n.buffers.ROW_OVERSCAN),l=i.curry(t.sum)(-1*n.buffers.COL_OVERSCAN),c=i.curry(t.sum)(n.buffers.ROW_OVERSCAN),d=i.curry(t.sum)(n.buffers.COL_OVERSCAN),u=e.from((function(){return o.clientHeight})),h=e.from((function(){return o.clientWidth})),p=e.from((function(){return o.scrollLeft})),f=e.from((function(){return o.scrollTop})),g=function(){var e=r._viewModel.getColumnHeaders().length;return 0===e?r._viewModel.dataSize.columns.count:e};this.getScrollTop=function(){return f.run()},this.getScrollLeft=function(){return p.run()},this.getWidth=function(){return h.run()},this.getHeight=function(){return u.run()},this.getBoundingRect=function(){return o.getBoundingClientRect()},this._viewModel.setState(a.TABLE_AFFORDANCE_WIDTH,e.from((function(){return o.offsetWidth-o.clientWidth})));var m=i.curry(t.max2)(0),_=function(e){e=e||n.ZERO_WIDTH_COLS;var t=r._maxColIndex();return Math.max(Math.min(t,e),-1)},v=function(e){e=e||n.ZERO_WIDTH_COLS;var t=g();return Math.max(Math.min(t,e),-1)},b=function(e){return Math.max(t.min2(e,r._dataSize.numRows()-1),-1)},y=function(e){return Math.max(t.min2(e,r._dataSize.numRows()),0)||n.ZERO_HEIGHT_ROWS},C=function(){var e=i.curry(t.calculateFirstVisible)(r._size.ROW_HEIGHT);return f.map(e).run()},T=function(){var e=i.curry(t.calculateFirstVisible)(r._size.COL_WIDTH);return p.map(e).run()};this.getVisibleColumnCount=function(n){var o=n?e.from((function(){return n})):h,a=i.curry(t.roundedDivision)(r._size.COL_WIDTH);return o.map(a).chain(v)},this.getVisibleRowCount=function(){var e=i.curry(t.roundedDivision)(r._size.ROW_HEIGHT);return u.map(e).chain(y)};var E=i.fork(t.calculateMaxFirstVisible,g,this.getVisibleColumnCount),S=function(e){return i.fork(t.calcVisible,T,r.getVisibleColumnCount)(e)},w=i.fork(t.calculateMaxFirstVisible,this._dataSize.numRows,this.getVisibleRowCount),I=i.fork(t.calcVisible,C,this.getVisibleRowCount);this.getLastVisibleColumn=function(e){return i.compose(_,S)(e)},this.getLastVisibleRow=i.compose(b,I),this.getFirstVisibleColumn=i.compose((function(e){return Math.min(T(),e)}),E),this.getFirstVisibleRow=i.compose((function(e){return Math.min(C(),e)}),w),this.getFirstBufferedColumn=i.compose(m,l,this.getFirstVisibleColumn),this.getFirstBufferedRow=i.compose(m,s,this.getFirstVisibleRow),this.getLastBufferedRow=i.compose(b,c,this.getLastVisibleRow),this.getLastBufferedColumn=function(e){return i.compose(_,d,r.getLastVisibleColumn)(e)},this.setScrollRightPx=function(e,t,i){r._viewModel.setState("LastScrollColumn",t),r._viewModel.setState("LastScrollColumnFn",i);var n=o.scrollLeft;o.scrollLeft=e,r._viewModel.setState("scrollPositionChanged",n!==o.scrollLeft)},this.setScrollLeftPx=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r._viewModel.deleteState("LastScrollColumn"),r._viewModel.deleteState("LastScrollColumnFn");var i=o.scrollLeft;o.scrollLeft=e,!0!==r._viewModel.getStateByKey("scrollPositionChanged").value&&r._viewModel.setState("scrollPositionChanged",i!==o.scrollLeft);var n=o.scrollWidth-o.clientWidth;!t&&e>n&&(r._viewModel.setState("LastScrollColumn",e/r._size.COL_WIDTH),r._viewModel.setState("LastScrollColumnFn",(function(){return e})))},this.setScrollTopPx=function(e){var t=o.scrollTop;o.scrollTop=e,!0!==r._viewModel.getStateByKey("scrollPositionChanged").value&&r._viewModel.setState("scrollPositionChanged",t!==o.scrollTop)},this.getScrollComponentDimensions=function(){return{scrollHeight:o.scrollHeight,scrollWidth:o.scrollWidth,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft,clientWidth:o.clientWidth,clientHeight:o.clientHeight}}}}]),c}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(359),i(6287),i(203),i(214)],o=i.dj.d(n,(function(e,t,i,n){return i("datatoolsservices.ActionService.ActionDataService",[e],{_remoteProvider:null,_actionMap:{},_aspectHandles:[],_initialized:!1,_callbacks:{},constructor:function(e){this._actionMap={},this._callbacks={},this._aspectHandles=[],e&&this.setRemoteProvider(e)},setRemoteProvider:function(e){this._initialized||(this._remoteProvider=e,this._init())},getRemoteProvider:function(){return this._remoteProvider},onProviderReady:function(){return this._remoteProvider.onReady()},_init:function(){this._aspectHandles.push(n.after(this._remoteProvider,"onActionAdded",this._handleActionAdded.bind(this))),this._aspectHandles.push(n.after(this._remoteProvider,"onActionRemoved",this._handleActionRemoved.bind(this))),this._initialized=!0},addAction:function(e,t,i){var n={id:e,callback:t,actionProps:i};this._handleActionAdded(this,[n]),this._remoteProvider.handleActionAdded(this._actionMap[e])},removeAction:function(e){this._handleActionRemoved(this,[{actionID:e}]),this._remoteProvider.handleActionRemoved()},enableAction:function(e){this.updateAction(e,{enabled:!0})},disableAction:function(e){this.updateAction(e,{enabled:!1})},updateAction:function(e,t){var i=this._actionMap[e],n=!0;i&&(t.callback&&(this.addActionCallback(e,t.callback),n=!1),i.updateProperties(t,n))},executeAction:function(e,t){var i=this._actionMap[e];i&&!0===i.getProperty("enabled")&&(this._callbacks[e]?this._callbacks[e].callback(t||{}):i.execute(t))},addActionCallback:function(e,t,i){const n=this.getAction(e);this.removeActionCallback(e);this._callbacks[e]={callback:function(e){t.call(i||n.getProperties(),e)},scope:i}},removeActionCallback:function(e){this._callbacks[e]&&delete this._callbacks[e]},_handleActionAdded:function(e,i){var n=new t(i[0]),o=n.getProperty("id");this._actionMap[o]=n,this.dispatchEvent("actionAdded",this,{actionID:o})},_handleActionRemoved:function(e,t){var i=t[0].actionID;i&&this._actionMap[i]&&(this._actionMap[i].destroy(),delete this._actionMap[i],this.dispatchEvent("actionRemoved",this,{actionID:i}))},getActionMap:function(){return this._actionMap},getAction:function(e){if(e)return this._actionMap[e]},destroy:function(){this._actionMap={},this._aspectHandles.forEach((function(e){e.remove&&e.remove()})),this._remoteProvider&&this._remoteProvider.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(359),i(235),i(203),i(214),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return i("datatoolsservices.ActionService.Action",[e],{_id:"",_remoteProvider:null,_aspectHandles:[],constructor:function(e){this._actionProps={},this._aspectHandles=[],this._remoteProvider=null,e&&(this._actionProps=Object.assign({},e.actionProps),this._id=e.actionID||e.id,e.remoteProvider&&this.setProvider(e.remoteProvider))},setProvider:function(e){this._remoteProvider=e,this._aspectHandles.push(n.after(this._remoteProvider,"onActionExecutionStatusChange",this.actionStatusCallback.bind(this))),this._aspectHandles.push(n.after(this._remoteProvider,"onActionChanged",this._handleActionChanged.bind(this)))},getProvider:function(){return this._remoteProvider},execute:function(e){this._actionProps.callback?this._actionProps.callback(e):this._remoteProvider.executeAction(e)},_handleActionChanged:function(e,t){var i=t[0];this._updateProperty(i.key,i.newValue);var n="on"+i.key+"Change";this.hasOwnProperty(n)&&"function"==typeof this[n]&&this[n](i),this.dispatchEvent(n,i)},updateProperties:function(e,i){var n,o=!t.isValid(i)||i;for(n in e)e.hasOwnProperty(n)&&(this._actionProps[n]=e[n],this._updateProperty(n,e[n]));o&&this._remoteProvider.updateProperties(e)},_updateProperty:function(e,t){e&&null!=t&&(this._actionProps[e]=t)},getProperty:function(e){if(this.hasProperty(e))return this._actionProps[e]},getProperties:function(){return this._actionProps},hasProperty:function(e){return this._actionProps&&this._actionProps.hasOwnProperty(e)},actionStatusCallback:function(e,t){"error"===t[0].status&&o.warn(t[0].message),this.dispatchEvent("actionStatusChanged",this,t[0])},destroy:function(){this._remoteProvider.destroy(),this._aspectHandles.forEach((function(e){e&&e.remove()})),this._aspectHandles=[]}})}),e,t),e.exports=o},function(e,t,i){e.exports={errorDialogTitle:"エラー",dataTypeMenuCustomInputPlaceholder:"カスタム形式を入力してください"}},function(e,t,i){e.exports={errorDialogTitle:"错误",dataTypeMenuCustomInputPlaceholder:"输入自定义格式"}},function(e,t,i){e.exports={errorDialogTitle:"오류",dataTypeMenuCustomInputPlaceholder:"사용자 지정 형식 입력"}},function(e,t,i){e.exports={root:{errorDialogTitle:"Error",dataTypeMenuCustomInputPlaceholder:"Enter custom format"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(2277),i(203),i(369)],o=i.dj.d(n,(function(e,t,i){return t("datatoolsservices.ActionService.PeerActionDataServiceProvider",[],{constructor:function(e){this._mode=e.mode||"ActAsClient",this._namespace=e.namespace||"Actions/DefaultNamespace",this._serviceReady=!1,this._startup(),this.__onProviderReady=null},_startup:function(){var e=this;"ActAsClient"===this._mode?this._peerModelManager=i.getClientInstance(this._namespace):(this._peerModelManager=i.getServerInstance(this._namespace),this._peerModelManager.setRoot("Root")),this._peerModelManager.setSyncEnabled(!0),this.getRoot().then((function(t){e._initListeners(t),e._serviceReady=!0,e.__onProviderReady&&e.__onProviderReady()}))},onReady:function(){return new Promise(e=>{this._serviceReady?e():this.__onProviderReady=e})},_initListeners:function(e){e.addEventListener("childAdded",this._onChildAdded.bind(this)),e.addEventListener("childRemoved",this._onChildRemoved.bind(this));var t=e.getChildren();t.length>0&&t.forEach((function(e){this._onChildAdded({data:{child:e}})}),this)},_onChildAdded:function(t){var i=t.data.child;if(!i.getProperty("id")){var n={source:"client",value:i.getId()};i.setProperty("id",n,"client")}this.onActionAdded({actionID:i.getProperty("id"),actionProps:i.getProperties(),remoteProvider:new e(i)})},_onChildRemoved:function(e){var t=e.data.child;this.onActionRemoved({actionID:t.getProperty("id"),actionProps:t.getProperties()})},handleActionAdded:function(e){var t=e,i=this;this._serviceReady?i._createPeerAction(t):this.getRoot().then((function(e){i._createPeerAction(t)}))},_createPeerAction:function(t){var i=this._getRoot().addChild("Action",t.getProperties());t.setProvider(new e(i))},handleActionRemoved:function(e){e.getProvider().destroy()},onActionAdded:function(e){},onActionRemoved:function(e){},getRoot:function(){var e=this;return new Promise((function(t,i){e._hasRoot()?t(e._getRoot()):e._peerModelManager.addEventListener("rootSet",(function(){t(e._getRoot())}))}))},_getRoot:function(){return this._peerModelManager.getRoot()},_hasRoot:function(){return this._peerModelManager.hasRoot()},destroy:function(){i.cleanup(this._namespace)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(2278),i(6299)],o=i.dj.d(n,(function(e,t,i,n){return e("datatoolsservices.ContextMenuService.ContextHandler",[],{_menuProvider:null,_contextAppID:"",_aspectHandle:null,_menuClosedAspectHandle:null,constructor:function(e,t){this._menuProvider=t,this._contextAppID=e.contextAppID||"",this._aspectHandle=null,this._menuClosedAspectHandle=null,this._init(e)},_init:function(e){e=e||{},this._contextStateHandler=new n(e),this._aspectHandle=t.after(this._contextStateHandler,"contextSwitchedToAppContext",this._handleContextSwitch.bind(this)),this._contextStateHandler.addContextWatch(this._contextAppID)},_handleContextSwitch:function(){var e=this;this._menuProvider.getMenuObject().then((function(){e._menuProvider.buildContextMenus(),e._attachMenuListeners(),e._cacheUpdated=!0})),this._contextStateHandler.removeContextWatch(this._contextAppID),this._aspectHandle.remove(),this._aspectHandle=null},_attachMenuListeners:function(){var e=this._menuProvider.getContextMenu();e.willOpenCallback=this._handleMenuRequested.bind(this),this._menuClosedAspectHandle=t.after(e,"closeMenu",this._handleContextMenuClosed.bind(this))},_handleContextMenuClosed:function(){this._menuProvider.handleMenuClosed()},_handleMenuRequested:function(e){this._contextStateHandler.hasContextChanged()&&this._menuProvider.deleteMenuChildren();var t=this._contextStateHandler.getCurrentContext();this._menuProvider.populateContextMenu(t);var i=this._menuProvider.hasFocusedTarget();if(i&&this._menuProvider.showContextMenu(i,e,this._contextStateHandler.getMetaContext()))return!0},destroy:function(){this._contextStateHandler&&this._contextStateHandler.destroy(),this._aspectHandle&&this._aspectHandle.remove(),this._aspectHandle=null,this._menuClosedAspectHandle&&this._menuClosedAspectHandle.remove(),this._menuClosedAspectHandle=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(980),i(342),i(6295)],o=i.dj.d(n,(function(e,t,i,n){var o={ctrl:"SYSCTRL"};return e("datatoolsservices.ContextMenuService.ActionProviderMixin",[],{_actionBindingMap:{},constructor:function(e){var i=e.actionNamespace||"/ActionDataServiceChannel";this.actionService=t.getInstance({mode:"ActAsClient",namespace:i}),this._actionBindingMap={},this._rootSelector=e._contextMenuTarget,this._initKeyboardAccessibility()},isReady:function(){return this.actionService.onProviderReady()},setRootSelector:function(e){this._rootSelector=e},_initKeyboardAccessibility:function(){this._keyBindings=new n(this.actionService)},_getMenuAttributes:function(e){var t=e.Attributes.ID,i=this.actionService?this.actionService.getAction(t):null;return e.Attributes.hasOwnProperty("Shortcut")&&i&&this._addKeyBindingAction(e.Attributes.Shortcut,i),{action:i}},_addKeyBindingAction:function(e,t){var i=this.getShortcutKeyID(e);t.updateProperties({shortcut:i},!1);var n=t.getProperty("id"),o=t.getProperty("shortcut"),r=this._keyBindings.getBinding(o),a=r.getKeySequenceIdentifier();this._actionBindingMap[n]!==a&&(r.setAction(this._rootSelector,n),this._actionBindingMap[n]=a)},getShortcutKeyID:function(e){return e.split("+").map((function(e){var t=o[e]||e.toLocaleUpperCase();return i.Keys[t]}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(342),i(1710)],o=i.dj.d(n,(function(e,t,i){return e([t],{"-chains-":{constructor:"manual"},constructor:function(e){this._actionDataService=e,this._bindingMap={},this._keyHandler=new i(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2280),i(203),i(204),i(206),i(515)],o=i.dj.d(n,(function(e,t,i,n,o){return t("datatoolsservices.ContextMenuService.CheckedActionMenuItem",[o,e],{_MENU_ENABLED_PROP_NAME:"CheckedActionEnabled",constructor:function(e){e.closeMenuOnClick=!0},postCreate:function(){if(this.inherited(arguments),this.action){if(this.action.hasProperty("Checked")){let e=JSON.parse(this.action.getProperty("Checked"));this._updateCheckedProperty(e)}if(this.action.hasProperty("Available")){let e=JSON.parse(this.action.getProperty("Available"));this._updateVisibility(e)}this._setStateClass()}},_addActionListeners:function(){this.action.addEventListener("onCheckedActionEnabledChange",this.onActionEnabledChange.bind(this)),this.action.addEventListener("onCheckedChange",this.onActionCheckedChange.bind(this)),this.action.addEventListener("onAvailableChange",this.onActionAvailableChange.bind(this))},onActionEnabledChange:function(e){var t=JSON.parse(e.target.newValue);this.onMenuActionEnabledStateChanged(t,e)},onActionCheckedChange:function(e){var t=JSON.parse(e.target.newValue);this._updateCheckedProperty(t)},onActionAvailableChange:function(e){const t=JSON.parse(e.target.newValue);this._updateVisibility(t)},_updateCheckedProperty:function(e){e.hasOwnProperty(this.menuItemID)&&this.set("checked",e[this.menuItemID])},_updateVisibility:function(e){e.hasOwnProperty(this.menuItemID)&&this.set("visible",e[this.menuItemID])},_getActionCallbackParams:function(e){var t=this.inherited(arguments);return t.isChecked=e.mwEventData.checked,t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(542)],o=i.dj.d(n,(function(e,t,i){return e("datatoolsservices.ContextMenuService.ActionPopupMenuItem",[i],{constructor:function(e){this.allArgs=e,e.featureId&&(this.tag=e.featureId)},postCreate:function(){this.inherited(arguments),this._initActionsForMenu(),this._setStateClass()},_initActionsForMenu:function(){var e=this;if(this.menu){var t=this.menu.addChild;this.menu.addChild=function(i){t.apply(this,[i]),e._ToggleActionGroupEnabled(),i.action&&(i._onEnabledStateChanged=function(t){e._ToggleActionGroupEnabled()})}}},_ToggleActionGroupEnabled:function(){var e=this.menu;if(e&&e.getChildren().length>0){for(var t=e.getChildren(),i=!1,n=0;n<t.length;n++)if(t[n].action&&t[n].action.getProperty("enabled")){i=!0;break}this.disabled=!i,this._setStateClass()}},setDisabledState:function(e){this.disabled=e,this._setStateClass()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2279),i(203)],o=i.dj.d(n,(function(e,t){return t("datatoolsservices.ContextMenuService.UserDefinedActionMenuItem",[e],{_getActionCallbackParams:function(e){var t=this.inherited(arguments);return t.matlabFn=this.matlabFn,t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(843)],o=i.dj.d(n,(function(e,t){return e("datatoolsservices.ContextMenuService.ContextStateHandler",[],{_contextManager:null,_contextWatchHandle:null,_previousContext:null,constructor:function(e){this._contextManager=t.getContextManager(e.contextManagerNamespace),this._contextWatchHandle=null,this.contextType=e.contextType},addContextWatch:function(e){var t=this;!this._contextWatchHandle&&this._contextManager&&(this._contextWatchHandle=this._contextManager.watch(this.contextType,(function(i,n,o){var r=o.appId;i===t.contextType&&r&&r===e&&t.contextSwitchedToAppContext()})))},contextSwitchedToAppContext:function(){},removeContextWatch:function(){this._contextWatchHandle&&this._contextWatchHandle.unwatch()},hasContextChanged:function(){var e=this.getCurrentContext().toString(),t=e!==this._previousContext;return this._previousContext=e,t},getCurrentContext:function(){return[...this._contextManager.get(this.contextType).contextIdList]},getMetaContext:function(){return this._contextManager.get(this.contextType).metaContext},destroy:function(){this.removeContextWatch()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(6301),i(219)],o=i.dj.d(n,(function(e,t,i,n){return e("datatoolsservices.ContextMenuService.MsgServiceContextMenuProvider",[i],{messageServiceChannel:"/datatools/ContextMenuService",_subscriptionID:null,_fetchRequestPromiseList:null,_msgServiceHandler:null,constructor:function(e){e=e||{},this._messageService=n,this._msgServiceHandler=null,this._subscriptionID=null,this._fetchRequestPromiseList=[],this.startup(e)},startup:function(e){this._messageService.start(),this.addSubscription(e)},addSubscription:function(e){e.nameSpace&&(this.messageServiceChannel=e.nameSpace),this._msgServiceHandler=this.handleMessageReceived.bind(this),this._subscriptionID=this._messageService.subscribe(this.messageServiceChannel,this._msgServiceHandler)},getMenuObject:function(){if(this._contextMenuObject)return this.inherited(arguments);var e=new t;return 0===this._fetchRequestPromiseList.length&&this._messageService.publish(this.messageServiceChannel,{src:"client",requestType:"contextMenuXML"}),this._fetchRequestPromiseList.push(e),e},handleMessageReceived:function(e){var t=e.data;this._fetchRequestPromiseList.forEach((function(e){e.resolve(t)})),this._fetchRequestPromiseList=[]},removeSubscription:function(){try{this._messageService.unsubscribe(this.messageServiceChannel,this._msgServiceHandler)}catch(e){}},destroy:function(){this.inherited(arguments),this.removeSubscription()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2278),i(203),i(212),i(317)],o=i.dj.d(n,(function(e,t,i,n){return t("datatoolsservices.ContextMenuService.ContextMenuProvider",[],{namespace:"",_contextMenu:null,_contextMenuObject:null,_contextMenuBuilder:null,_contextMenuTarget:null,_contextualMenuInfo:null,constructor:function(e){e=e||{},this.namespace=e.nameSpace||"",this._contextMenu=null,this._contextMenuObject=null,this._contextMenuBuilder=null,this._init(e)},_init:function(t){this._contextMenuBuilder=new e(t)},createContextMenu:function(){var e=this;this._contextMenuBuilder.loadCustomMenuItems(),this.getMenuObject().then((function(t){e._contextMenuTarget=t.Data.queryString,e._contextMenuObject=t.Children,e._contextMenuBuilder&&e._contextMenuBuilder.setRootSelector(e._contextMenuTarget),e._contextMenu=new n({targetNodes:[e._contextMenuTarget],tag:"DefaultContextMenuTag"})}))},getContextMenu:function(){return this._contextMenu},getMenuObject:function(){var e=new i;return this._contextMenuObject&&e.resolve(this._contextMenuObject),e},buildContextMenus:function(){this._contextMenuBuilder.constructMenuItems(this._contextMenuObject)},handleMenuClosed:function(){if(this._contextualMenuInfo){var e=this._contextMenuBuilder.getDetailedMenuMap()[this._contextualMenuInfo.parentPopupMenuID].popUpMenu,t=e.menu.getChildren(),i=this,n=t.filter((function(e){return i._contextualMenuInfo.menuItemID.indexOf(e.menuItemID)>-1?e:null}));n&&n.length>0&&(n.forEach((function(t){e.menu.removeChild(t)})),this._contextualMenuInfo=null)}},deleteMenuChildren:function(){this._contextMenu.hasChildren()&&this._contextMenu.getChildren().forEach((function(e){this._contextMenu.removeChild(e)}),this)},populateContextMenu:function(e){this._getMenuItemsForContext(e).forEach((function(e){this._contextMenu.addChild(e)}),this)},hasFocusedTarget:function(){return document.querySelector(this._contextMenuTarget+" .mw-table-cell-focused")},getMenuItemById:function(e){let t,i=this._contextMenuBuilder._contextMenuMap;return i&&i.hasOwnProperty(e)&&(t=i[e]),t},showContextMenu:function(e,t,i){var n=e.getBoundingClientRect();if(i&&"Keyboard"===i)return this._contextMenu._showMenu({x:n.left+n.width/2,y:n.top+n.height/2,popup:this._contextMenu}),!0},getMenuItemForMatchContext:function(e){var t=this.namespace,i=this._contextMenuBuilder.getMenuMap()[t][e];return i?i.ContextMenuItems:null},_getMenuItemsForContext:function(e){var t=this._contextMenuBuilder.getMenuMap()[this.namespace]||{},i=[];for(var n in t)if(t.hasOwnProperty(n)&&t[n].MatchContext){var o=t[n].MatchContext.split(",");"global"===e[0]&&e.shift();var r=e.reduce((function(e,t){return e.concat(t)}),[]);t[n].ExactMatch?this.compareArrayValues(r,o)&&(i=this._getConcatenatedMenuItems(t,n,i)):o.every((function(e){return r.indexOf(e)>-1}))&&(i=this._getConcatenatedMenuItems(t,n,i))}return i.slice()},_getConcatenatedMenuItems:function(e,t,i){var n=e[t],o=this._contextMenuBuilder.getDetailedMenuMap(),r=n.ContextMenuItems;if(n.parentPopupMenuID){var a=o[n.parentPopupMenuID].popUpMenu;if(a){var s=r.map((function(e){return a.menu.addChild(e),e.menuItemID}));this._contextualMenuInfo&&this._contextualMenuInfo.menuItemID?Array.isArray(this._contextualMenuInfo.menuItemID)&&(this._contextualMenuInfo.menuItemID=this._contextualMenuInfo.menuItemID.concat(s)):this._contextualMenuInfo={parentPopupMenuID:n.parentPopupMenuID,menuItemID:s}}}else{const e=r.filter(e=>!1!==e.visible);r.length!==e.length&&this.deleteMenuChildren(),i=i.concat(e)}return i},compareArrayValues:function(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,i){var n=!1;return t.forEach((function(t,i){e.toLocaleLowerCase()===t.toLocaleLowerCase()&&(n=!0)})),n}))},destroy:function(){this._contextMenu&&this._contextMenu.destroy(),this._contextMenuBuilder&&this._contextMenuBuilder.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(216),i(276),i(483),i(235),i(1182),i(6303),i(652),i(209),i(238),i(214),i(227),i(211),i(210),i(225),i(217),i(212),i(256),i(407),i(206),i(6304),i(1543),i(6307)],o=i.dj.d(n,(function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S){return e("variableeditor.ClientPeerDocument",[o,l,n,c.Impl],{allArgs:{},varName:"",varDocID:"",userContext:{},clientPeerView:null,viewListeners:[],clientPeerManager:[],dataTagRoot:"",resizeBehaviour:"default",summaryBar:null,showSummaryBar:!0,templateString:S,varSize:"",varType:"",varSecondaryType:"",varSecondaryStatus:"",requestFocusOnStart:!0,cmdLineCodePublishSvc:null,cmdLineCodeEnabled:!1,constructor:function(e){this.allArgs={},this.userContext={},this.clientPeerView=null,this.viewListeners=[],this.clientPeerManager=[],this.dataTagRoot="",this.varName="",this.varSize="",this.varType="",this.init(e)},init:function(e){if(e&&(this.allArgs=e,this.contextChannel=e.contextUpdateChannel||"",this.currentContext=e.contextId||"",this.setArgument("documentNode",this.allArgs),this.setArgument("rootNode",this.allArgs),this.setArgument("executionService",this.allArgs),this.allArgs.resizeBehaviour||(this.allArgs.resizeBehaviour=this.resizeBehaviour),this.setArgumentWithDefault("editable",this.allArgs,!0),this.setArgumentWithDefault("resizeBehaviour",this.allArgs,"default"),this.setArgumentWithDefault("requestFocusOnStart",this.allArgs,!0),this.setArgumentWithDefault("showSummaryBar",this.allArgs,!0),this.setArgumentWithDefault("cssSpecifier",this.allArgs,""),this.setArgumentWithDefault("userContext",this.allArgs,{}),this.setArgumentWithDefault("clientPeerManager",this.allArgs,{}),this.setArgumentWithDefault("dataTagRoot",this.allArgs,""),e.rootNode&&e.rootNode.getProperty)){var i=e.rootNode.getProperty("VECmdLineCodeGenEnabled");i&&i.VECmdLineCodeGenEnabled?this.cmdLineCodeEnabled=i.VECmdLineCodeGenEnabled:this.cmdLineCodeEnabled=!1,e.rootNode.addEventListener("propertySet",t.hitch(this,"_handleRootPropertySet"))}var n=this;if(n.documentNode&&n.documentNode.hasProperty("name")&&n.documentNode.hasProperty("docID")){if(n.varName=n.documentNode.getProperty("name"),n.varSize=n.documentNode.getProperty("size"),n.varType=n.documentNode.getProperty("type"),n.varSecondaryType=n.documentNode.getProperty("secondaryType"),n.varSecondaryStatus=n.documentNode.getProperty("secondaryStatus"),n.varDocID=n.documentNode.getProperty("docID"),n.userContext=n.documentNode.hasProperty("userContext")?n.documentNode.getProperty("userContext"):{},n.onClose=function(){r.logDebug("VE: Document Closed"),n.clientPeerManager&&n.clientPeerManager.removeFocusedDocument(n),n.rootNode.dispatchEvent("peerEvent",n.rootNode,{type:"RemoveDocument",variable:n.varName,workspace:n.documentNode.getProperty("workspace")})},n.onShow=function(){n.domNode&&!n.domNode.hasAttribute("data-tag")&&(n.dataTagRoot?n.domNode.setAttribute("data-tag",a.concatenateDataTagStrings(n.dataTagRoot,"document",n.varName)):n.domNode.setAttribute("data-tag",r.createDataTag("document",n.varName))),n.clientPeerManager&&(n.requestFocusOnStart&&n.clientPeerManager.setFocusedDocument(n),n.domNode.setAttribute("data-ManagerChannel",n.clientPeerManager.channel))},n.onFocus=function(){if(n.clientPeerManager){var e=[n.currentContext];n.varType&&e.push(n.varType),s.addToContext(n.contextChannel,e,!1),n.clientPeerManager.setFocusedDocument(n)}g.add(n.domNode,"focused")},n.onBlur=function(){n.clientPeerManager&&n.clientPeerManager.removeFocusedDocument(n),g.remove(n.domNode,"focused"),n.domNode.contains(document.activeElement)&&document.activeElement.blur()},n.documentNode.addEventListener("childAdded",(function(e){n._createView(e.data.child,e.target)})),n.documentNode.getChildren&&n.documentNode.getChildren().length>0){var o=n.documentNode.getChildren()[0];n._createView(o,n.documentNode)}n.documentNode.addEventListener("childRemoved",(function(e){var t=e.data.child;n._removeView(n,t)})),n.showSummaryBar&&(n.documentNode.addEventListener("propertySet",t.hitch(n,"_handlePropertySet")),n.summaryBar&&(n.summaryBar.setName(n.varName),n.summaryBar.setSize(n.varSize),n.summaryBar.setSecondaryType(n.varSecondaryType),n.summaryBar.setType(n.varType),n.summaryBar.setStatus(n.varSecondaryStatus),n.summaryBar.setStatusRef(n.varSecondaryStatus),n.summaryBar.initServices(n.allArgs.executionService,n.allArgs.helpDataService))),this.domNode&&g.add(this.domNode,"fullWidthHeight")}},_createView:function(e,t){var i=t.getProperty("name"),n=e.getProperty("Editor");this._initOnViewAdded(),this._addView(n,this,e,i)},_initOnViewAdded:function(){var e=this;if(!this.allArgs.actionDataService)var t=h.after(this.clientPeerManager,"actionDataServiceAdded",(function(i){e.clientPeerView.initArgs({actionDataService:e.clientPeerManager.allArgs.actionDataService}),t.remove()}))},_updateCssStyle:function(){var e=this.domNode.getElementsByClassName("clientPeerViewDiv")[0];g.add(e,"hasSummaryBar")},_addView:function(e,t,n,o,s){try{r.logDebug("VE: Attempting module load of "+e),Promise.resolve().then((function(){var l=[require(e,null,!1)];Promise.all(i.dj.w(l)).then(function(l){return function(i){r.logDebug("VE: Loaded class "+e),t.clientPeerView=new i;var l=t.domNode.getElementsByClassName("clientPeerViewDiv"),c=t;l&&l.hasOwnProperty(0)&&(c={domNode:l=l[0],addChild:function(e){f.place(e.domNode,l,"last")}}),t.allArgs=a.mergeObjects(t.allArgs,{peerNode:n,varName:o,container:c}),t.clientPeerView.init(t.allArgs),t.resize(),r.logDebug("VE: Dispatching Event viewAdded "),t.dispatchEvent("viewAdded",t.domNode,{peerDoc:t,peerView:t.clientPeerView}),s&&s("success"),t.cmdLineCodePublishSvc=new E({executionService:t.executionService,context:"VariableEditor/"+o,enabled:t.cmdLineCodeEnabled})}.apply(null,i.dj.u(l))}.bind(this))})).catch(i.oe),r.logDebug("VE: Passed required module load.")}catch(e){d.error(e),d.error(e.stack),s&&s("error",e)}},_removeView:function(e,t){if(r.logDebug("VE: childRemoved listener fired"),e.dispatchEvent("viewRemoved",e.domNode,{peerDoc:e,peerView:e.clientPeerView}),e&&e.clientPeerView&&(r.logDebug("VE: destroying the clientPeerView"),e.clientPeerView.destroy(),r.logDebug("VE: destroyed the clientPeerView")),e.domNode){var i=e.domNode.getElementsByClassName("clientPeerViewDiv");i&&i.hasOwnProperty(0)&&(i=i[0],f.empty(i))}t&&t.destroy(),this.cmdLineCodePublishSvc&&this.cmdLineCodePublishSvc.unregister(),e.clientPeerView={}},postCreate:function(){var e=this;this.own(C(window,"resize",(function(){e.resize&&e.resize()}))),this.showSummaryBar&&(this.setSummaryBar(),this._updateCssStyle())},getView:function(e){if(e)return this.clientPeerView;var t=!1,i=new v((function(){t=!0}));if(this.clientPeerView)i.resolve(this.clientPeerView);else{var n=this,o=function(){n.removeEventListener("viewAdded",o,this),t||i.resolve(n.clientPeerView)};this.addEventListener("viewAdded",o)}return i},focus:function(e){if(this.id){var t=p.byId(this.id);p.isDescendant(u.curNode,t)||u.focus(p.byId(this.id))}this.clientPeerView&&this.clientPeerView.focus&&this.clientPeerView.focus(e)},resize:function(){var e=300,t=300,i=0;switch(this.resizeBehaviour){case"fixed":this.allArgs.size&&(e=this.allArgs.size.width,t=this.allArgs.size.height);break;case"data":var n=m(".dataBody",this.domNode);if(0===n.length)break;var o=n[0];o.style.minWidth="initial",o.style.minHeight="initial";var r=_.position(o);this.clientPeerView&&this.clientPeerView.table&&this.clientPeerView.table.defaultProperties?(t=r.h+this.clientPeerView.table.rowHeight+2,e=r.w+this.clientPeerView.table.rowHeaderWidth+2):(t=r.h+20,e=r.w+32),t=(i=this.limitSize(e,t)).height,e=i.width;break;case"window":e=window.innerWidth,t=window.innerHeight,t=(i=this.limitSize(e,t)).height,e=i.width;break;case"container":var a=this.domNode.parentElement;if(!a)return void this.inherited(arguments);if((r=_.position(a)).w<=0||r.h<=0)return void this.inherited(arguments);e=r.w,t=r.h,t=(i=this.limitSize(e,t)).height,e=i.width;break;default:return void this.inherited(arguments)}this.domNode.style.width=e+"px",this.domNode.style.height=t+"px",this.inherited(arguments)},limitSize:function(e,t){return this.allArgs.maxSize&&(this.allArgs.maxSize.width&&e>this.allArgs.maxSize.width&&(t+=y.getScrollbarWidth()),this.allArgs.maxSize.height&&t>this.allArgs.maxSize.height&&(e+=y.getScrollbarWidth()),this.allArgs.maxSize.width&&(e=Math.min(this.allArgs.maxSize.width,e)),this.allArgs.maxSize.height&&(t=Math.min(this.allArgs.maxSize.height,t))),this.allArgs.minSize&&(this.allArgs.minSize.width&&(e=Math.max(this.allArgs.minSize.width,e)),this.allArgs.minSize.height&&(t=Math.max(this.allArgs.minSize.height,t))),{width:e,height:t}},_handlePropertySet:function(e){e&&e.data&&"size"===e.data.key&&(this.varSize=e.data.newValue,this.summaryBar.setSize(e.data.newValue),b.publish("/datatools/sizeChanged",{doc:this,size:e.data.newValue})),e&&e.data&&"type"===e.data.key&&this.summaryBar.setType(e.data.newValue)},_handleRootPropertySet:function(e){if(e&&e.data&&"VECmdLineCodeGenEnabled"===e.data.key){var t=e.data.newValue.VECmdLineCodeGenEnabled;this.cmdLineCodePublishSvc.setEnabled(t)}},setSummaryBar:function(){if(this.documentNode&&(this.varName=this.documentNode.getProperty("name"),this.varSize=this.documentNode.getProperty("size"),this.varType=this.documentNode.getProperty("type"),this.varSecondaryStatus=this.documentNode.getProperty("secondaryStatus"),this.varSecondaryType=this.documentNode.getProperty("secondaryType")),this.showSummaryBar){this.summaryBar=new T(this.varName,this.varSize,this.varType,this.varSecondaryType,this.varSecondaryStatus,this.allArgs.executionService,this.allArgs.helpDataService),this.summaryBar.startup();var e=this.domNode.getElementsByClassName("summaryBarDiv");e&&e.hasOwnProperty(0)&&(e=e[0],f.place(this.summaryBar.domNode,e,"last"));var t=this;C(e,"click",(function(e){s.addToContext(t.contextChannel,["SummaryBar"],!0)}))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("variableeditor._ArgumentsMixin",[],{setArgument:function(e,t){null!=t&&void 0!==t[e]&&null!==t[e]&&(this[e]=t[e])},setArgumentWithDefault:function(e,t,i){null!=t&&(void 0!==t[e]&&null!==t[e]?this[e]=t[e]:this[e]=i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(215),i(216),i(206),i(225),i(740),i(844),i(235),i(6306)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e("variableeditor.views.SummaryBar",[i,n],{name:"",size:"",type:"",link:"",secondaryType:"",status:"",statuslink:"",templateString:c,constructor:function(e,t,i,n,o,r,a){this.name=e||"",this.size=t||"",this.type=i||"",this.secondaryType=n||"",this.status=o||"",this.executionService=r||"",this.helpDataService=a||""},postCreate:function(){this.setName(this.name),this.setSize(this.size),this.setType(this.type),this.setSecondaryType(this.secondaryType),this.setStatus(this.status),this.setStatusRef(this.status),this._handleDocLink()},initServices:function(e,t){this.executionService=e,this.helpDataService=t},_handleDocLink:function(){var e=this,i=function(t,i,n){if("statuslink"===n&&e.helpDataService){var o=e.helpDataService.addMOQueryParameter(i);e.helpDataService.iframeContainer.showIframe({host:o,name:"MATLAB Online Help",maximizeUrl:e.helpDataService.getMaximizeUrl(o)})}else e.executionService&&(i="doc "+i,e.executionService.executionEval(i));t.preventDefault()};o(this.summaryBarLink,"click",t.hitch(this,(function(t){i(t,e.type,"status")}))),o(this.summaryBarStatusLink,"click",t.hitch(this,(function(t){i(t,e.statuslink,"statuslink")})))},updateIconClass:function(){var e=r(".summaryBarSize",this.domNode)[0],t=l.getClassNameForIconList(this.type),i=t;this.secondaryType&&(i=t+"_"+this.secondaryType),l.removeFromClassList(e,a.ClassArray),l.addToClassList(e,s.VE_RENDERERS),a.IconTypeMap.hasOwnProperty(i)?l.addToClassList(e,a.IconTypeMap[i]):a.IconTypeMap.hasOwnProperty(t)?l.addToClassList(e,a.IconTypeMap[t]):l.addToClassList(e,a.IconTypeMap.UNKNOWN)},setName:function(e){this.name=e||""},setSize:function(e){this.size=e||"","0"===e&&(this.size=this.name),r(".summaryBarSize",this.domNode)[0].textContent=this.size},setType:function(e){var t=null;if(e){var i=e,n=(t=e,e.split(/[.]+/));if(n&&n.length>1)i=n.pop();else{var o=e.split(/[ ]+/);o&&o.length>1&&(t=o.pop())}this.type=t}else this.resetToDefault();r(".summaryBarRef",this.domNode)[0].textContent=i,this.updateIconClass()},resetToDefault:function(){this.type=" ",this.link=" "},setStatus:function(e){this.status=e||"";var t=r(".summaryBarStatus",this.domNode)[0];!this.hasStatusHyperlink()&&this.status&&this.status.length>0?t.textContent="("+this.status+")":t.textContent=""},setStatusRef:function(e){this.status=e||"";var t=r(".summaryBarStatusRef",this.domNode)[0];this.hasStatusHyperlink()&&this.status&&this.status.length>0?(this.statuslink=this.getStatusHyperlink(),t.textContent=" ("+this.status+")"):t.textContent=""},hasStatusHyperlink:function(){return this.type&&"tall"===this.type},getStatusHyperlink:function(){var e;switch(this.type){case"tall":e="https://www.mathworks.com/help/matlab/import_export/deferred-evaluation-of-tall-arrays.html"}return e},setSecondaryType:function(e){this.secondaryType=e||"";var t=this.domNode.getElementsByClassName("summaryBarSecondaryType");(t=t[0]).textContent=this.secondaryType}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{CHAR:"char",STRING:"string",DOUBLE:"double",CELL:"cell",LOGICAL:"logical",STRUCT:"struct",TIMESERIES:"timeseries",TIMETABLE:"timetable",SPARSE:"sparse",COMPLEX:"complex",MATLAB_TABLE:"table",DATASET:"dataset",CATEGORICAL:"categorical",ORDINAL:"ordinal",NOMINAL:"nominal",DATETIME:"datetime",DURATION:"duration",CALENDAR_DURATION:"calendarDuration",UINT8:"uint8",UINT16:"uint16",UINT32:"uint32",UINT64:"uint64",INT8:"int8",INT16:"int16",INT32:"int32",INT64:"int64",SINGLE:"single",HALF:"half",OBJECT:"object",TALL:"tall",TALL_DOUBLE:"tall_double",TALL_CELL:"tall_cell",TALL_LOGICAL:"tall_logical",TALL_OBJECT:"tall_object",TALL_SPARSE:"tall_sparse",TALL_CHAR:"tall_char",TALL_STRUCT:"tall_struct",TALL_TIMETABLE:"tall_timetable",TALL_MATLAB_TABLE:"tall_table",TALL_CATEGORICAL:"tall_categorical",TALL_DATETIME:"tall_datetime",TALL_DURATION:"tall_duration",TALL_CALENDAR_DURATION:"tall_calendarDuration",TALL_STRING:"tall_string",TALL_UINT8:"tall_uint8",TALL_UINT16:"tall_uint16",TALL_UINT32:"tall_uint32",TALL_UINT64:"tall_uint64",TALL_INT8:"tall_int8",TALL_INT16:"tall_int16",TALL_INT32:"tall_int32",TALL_INT64:"tall_int64",TALL_SINGLE:"tall_single",TALL_HALF:"tall_half",TALL_ORDINAL:"tall_ordinal",TALL_NOMINAL:"tall_nominal",UNKNOWN:"UNKNOWN",DEFAULT:"default",MIXED:"mixed",NOVARDISPLAY:"novardisplay"}}),e,t),e.exports=o},function(e,t){e.exports='<div class="summaryBar" data-dojo-attach-point="summaryBarOuterContainer">\n <div class="summaryBarContainer">\n <div class="summaryBarIcon"></div>\n <div class="summaryBarSize">${size}</div>\n <div class="summaryBarLink" data-dojo-attach-point="summaryBarLink"><a class="summaryBarRef" href="#">${type}</a></div>\n <div class="summaryBarSecondaryType">${secondaryType}</div>\n <div class="summaryBarStatus">${status}</div>\n <div class="summaryBarStatusLink" data-dojo-attach-point="summaryBarStatusLink"><a class="summaryBarStatusRef" href="#">${status}</a></div>\n </div>\n</div>'},function(e,t){e.exports='<div class="clientPeerDocument" data-dojo-attach-point="clientPeerDocumentContainer">\n <div class="summaryBarDiv"></div>\n <div class="clientPeerViewDiv"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(256),i(714),i(292)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor.ContextUpdateManager",[],{constructor:function(e){this.defaultContextId=e.defaultContextId||"",this.contextChannel=e.contextUpdateChannel||"",this.managerChannel=e.managerChannel||"",this.contextManager=null,this.currentContext=[],this.init()},init:function(){try{this.contextManager=i.getInstance()}catch(e){}if(null===this.contextManager&&"/WorkspaceBrowser"===this.managerChannel){n.getInstance({actionService:null}).create({tag:"motwToolstrip",type:"Toolstrip"});this.contextManager=i.getInstance({parentAppId:"motw",toolstripTag:"motwToolstrip",toolstripId:"toolstripId",uiContainer:null,qabContextualControlsActionMap:{}})}this._setUpContextWatch();var e=this;this.contextManager&&t.subscribe(this.contextChannel,(function(t){t.subContext&&e._updateSubContext(t)}))},_setUpContextWatch:function(){if(this.contextManager){var e=this,t=this.defaultContextId;this.contextManager.watch("currentContext",(function(i,n,o){var r=o.appId;"currentContext"===i&&r&&r===t&&n!==o&&e.setCurrentContext(e.currentContext.slice())}))}},setCurrentContext:function(e){var t=this.managerChannel;e&&this.contextManager&&this.contextManager.set&&this.contextManager.set("currentContext",{appId:t,contextIdList:e})},_updateSubContext:function(e){e.subContext.length>0?(this.currentContext=e.subContext,this.setCurrentContext(e.subContext)):this.setCurrentContext(this.currentContext)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(326),i(442),i(289),i(6310),i(1544),i(284),i(975)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=e([i,n],{table:{},constructor:function(e,i){if(this.tableOptions={features:[t.FEATURE.ColumnResize,o,t.FEATURE.Clipboard],clipboardConfig:{onCopy:function(){return this.copyRequested()}.bind(this)},attributes:{minColWidth:20},_featureExperimentalMetaData:!0},i&&i.features&&(this.tableOptions.features=this.tableOptions.features.concat(i.features)),i&&i.attributes)for(var n in i.attributes)this.tableOptions.attributes[n]=i.attributes[n];i&&i.dragAndDropConfig&&(this.tableOptions.dragAndDropConfig=i.dragAndDropConfig),this.table=new t(e,this.tableOptions),this.table.on("editCompleted",function(e){this.table.resetSortIndicator&&e.oldValue!==e.newValue&&e.viewRange.columns.start===this._sortedColumnIndex&&this.table.resetSortIndicator()}.bind(this)),r.registerRenderers(this.table),r.registerEditors(this.table)},copyRequested:function(){},destroy:function(){this.inherited(arguments),this.table.destroy()},getTableDomNode:function(){return this.table.domNode},getTooltipNode:function(){return this.getTableDomNode()},getVisibilityNode:function(){return this.getTableDomNode()},_updateViewVisibilityState:function(e){this.visibility=e},setEnable:function(e){var t=!a.toJSBoolean(e);this.table.domNode&&t!==this.table.disable&&(this.table.disable=t)},setSortedColumnIndex:function(e){this._sortedColumnIndex=e}});return l.FEATURE=t.FEATURE,l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2239),i(2240)],o=i.dj.d(n,(function(e,t,i){var n=e([t],{_previousState:"unsorted",_previousColumn:-1,adaptor:i,_handleSort:function(e){var t=(e=e||{}).order,i=e.column,n=e.type;t&&"DESC"===this._previousState&&this._previousColumn===i?t="unsorted":t&&"unsorted"===this._previousState&&(t="ASC"),t&&i>=0&&n&&this.adaptor.sortColumn({columnIndex:i,order:t,compare:n}),t&&(this._previousState=t,this._previousColumn=i,this.emit("columnSorted",{order:t}))},exposedAPI:function(){return{setSortIndicator:this.setSortIndicator.bind(this),resetSortIndicator:this._resetSortIndicator.bind(this)}},_resetSortIndicator:function(){this._previousState="unsorted",this._previousColumn=-1,this.adaptor.setSortIndicator()}});return n.adaptor=i,n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(634)],o=i.dj.d(n,(function(e,t){return e([t],{getDomNode:function(e,t){var i=this.inherited(arguments);return t&&t.rendererConfig&&t.rendererConfig.textClip&&(i.style.textOverflow="",i.classList.add("ui-table-renderer-textClip-"+t.rendererConfig.textClip)),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(634)],o=i.dj.d(n,(function(e,t){return e([t],{getDomNode:function(e,t){var i=this.inherited(arguments);return i.style.textAlign="right",t&&t.rendererConfig&&t.rendererConfig.textClip&&(i.style.textOverflow="",i.classList.add("ui-table-renderer-textClip-"+t.rendererConfig.textClip)),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(594)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){this._textField.style.textAlign="right"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(634)],o=i.dj.d(n,(function(e,t){return e([t],{getDomNode:function(e,t){var i=this.inherited(arguments);return i.style.textAlign="center",t&&t.rendererConfig&&t.rendererConfig.textClip&&(i.style.textOverflow="",i.classList.add("ui-table-renderer-textClip-"+t.rendererConfig.textClip)),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(594)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){this._textField.style.textAlign="center"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1546),i(203)],o=i.dj.d(n,(function(e,t){return t([e],{constructor:function(e){e&&this.preLoadMetaData(e)},preLoadMetaData:function(e){if(e.columnMetadata){let t=e.columnMetadata;Array.isArray(t)||(t=[t]),t.length>0&&this.updateModelProperties("ColumnModelProperties",JSON.stringify(t))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1547),i(534),i(6319),i(1183),i(239),i(287),i(6320),i(6321),i(1544)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([t],{CONTEXT:"uitable",CHECKBOX_WIDTH:20,COLUMN_BUFFER:6,COLUMN_SORTAFFORDANCE_BUFFER:18,COLUMN_AUTO_WIDTH_MINIMUM:75,COLUMN_AUTO_WIDTH_CONTENT_MAXIMUM:300,CATEGORICAL_DROPDOWN_BUFFER:35,DEFAULT_FONT_STYLE:"normal",DEFAULT_FONT_WEIGHT:"normal",DEFAULT_HEADER_FONT_WEIGHT:"bold",DEFAULT_FONT_SIZE:12,DEFAULT_FONT_NAME:"Arial, Helvetica, sans-serif",tableWidthDiv:null,_maxNxValue:-1,_cachedViewPortWidth:null,constructor:function(){i.registerWidgetDefaults(s),i.registerWidgetDefaults(l)},setTableWidthDiv:function(e){this.tableWidthDiv=e},getCellConfig:function(e,t){var i,n,o,r,a,s=this.inherited(arguments);s.style&&(i=s.style.textAlign);var l=this._metaDataStore.hasCellModelProperty(e,t,"Datatype"),c=(this.getMetaDataStore().getColumnModelProperty("GroupColumnSize",t)||1)>1;if(l&&!c){var d=this._metaDataStore.getCellModelProperty("Datatype",e,t);n=this.getWidgetByDatatype(d,i),a=this.getMetaDataStore().getColumnModelProperty("Editable",t)||!1,n&&(s.renderer=n.CellRendererName,a&&("CheckboxRenderer"===n.CellRendererName?s.interactiveRenderer=n.CellRendererName:"ComboBoxEditor"===n.EditorName?(o=this.getMetaDataStore().getCellModelProperty("Protected",e,t),r=this.getMetaDataStore().getCellModelProperty("Categories",e,t),s.editor=this._createDropDownEditor(r,o)):s.editor=n.EditorName))}else if(i){if(a=this.getMetaDataStore().getColumnModelProperty("Editable",t),n=this._getRendererWidgetForColumnFormat(t,i))return s.renderer=n.CellRendererName,a&&("CheckboxRenderer"===n.CellRendererName?s.interactiveRenderer=n.CellRendererName:this._hasCategories(t)?s.editor=this._createDropDownEditorForColumn(t):(n=this._getEditorWidgetForColumnFormat(t,i),s.editor=n.EditorName)),s;if(n=this.getWidgetByColumn(t,i)){var u=this._getRendererForMultiColumn(t,n);u?s.renderer=u:(s.renderer=n.CellRendererName,a&&"ComboBoxEditor"!==n.EditorName&&(s.editor=n.EditorName))}}return s},getCellStyles:function(e,t){var i=this._metaDataStore.getTableModelProperty("style"),n=this._metaDataStore.getTableModelProperty("StyleRank"),o=this._metaDataStore.getRowModelProperty("style",e),r=this._metaDataStore.getRowModelProperty("StyleRank",e),a=this._metaDataStore.getColumnModelProperty("style",t),s=this._metaDataStore.getColumnModelProperty("StyleRank",t),l=this._metaDataStore.getCellModelProperty("style",e,t),c=this._metaDataStore.getCellModelProperty("StyleRank",e,t);return this._getMergedObjectArrayUsingRank([l||{},o||{},a||{},i||{}],[c||{},r||{},s||{},n||{}])},_getMergedObjectArrayUsingRank:function(e,t){for(var i,n,o,r,a={},s={},l=0;l<e.length;l++){i=Object.keys(e[l]);for(var c=0;c<i.length;c++)n=i[c],o=e[l][n],r=t[l][n],(!a.hasOwnProperty(n)||s[n]<r)&&(a[n]=o,s[n]=r||-1)}return a},getRenderer:function(e){var t=this.getWidgetByColumn(e),i=this._getRendererWidgetForColumnFormat(e);if(i)return c.getRendererReference(i.CellRendererName);var n=this._getRendererForMultiColumn(e,t);return n||(t?c.getRendererReference(t.CellRendererName):void 0)},getInteractiveRenderer:function(e){var t=this.getWidgetByColumn(e),i=this.getMetaDataStore().getColumnModelProperty("Editable",e)||!1,n=this.getMetaDataStore().getColumnModelProperty("GroupColumnSize",e)||1;if(i&&!(n>1)){if(this._metaDataStore.hasColumnModelProperty(e,"ColumnFormat")&&i){var o=this.getMetaDataStore().getColumnModelProperty("ColumnFormat",e)||[];if("logical"===o)return c.getRendererReference("CheckboxRenderer");if(0!==o.length)return}return t&&"CheckboxRenderer"===t.CellRendererName&&i&&!this._hasCategories(e)?c.getRendererReference(t.CellRendererName):void 0}},getEditor:function(e){var t=this.getMetaDataStore().getColumnModelProperty("Editable",e)||!1,i=this.getMetaDataStore().getColumnModelProperty("GroupColumnSize",e)||1;if(t&&!(i>1)){var n=this._getEditorWidgetForColumnFormat(e);if(n)return c.getEditorReference(n.EditorName);if(this._hasCategories(e))return this._createDropDownEditorForColumn(e);var o=this.getWidgetByColumn(e);return o&&o.EditorName&&t?c.getEditorReference(o.EditorName):void 0}},_hasCategories:function(e){return this.getMetaDataStore().hasColumnModelProperty(e,"Categories")&&this.getMetaDataStore().getColumnModelProperty("Categories",e).length>0},_createDropDownEditorForColumn:function(e){var t=this.getMetaDataStore().getColumnModelProperty("Categories",e),i=this.getMetaDataStore().getColumnModelProperty("Protected",e)||!1;return this._createDropDownEditor(t,i)},_createDropDownEditor:function(e,t){var i=[];return e&&Array.isArray(e)&&e.length>0&&(i=e.map((function(e){return{label:e,value:e}}))),o.config({items:i,setItems:function(e){return!0},height:"100%",editable:!t})},_getRendererForMultiColumn:function(e,t){var i=this.getMetaDataStore().getColumnModelProperty("GroupColumnSize",e)||1;if(t&&i>1&&c.getRendererReference(t.CellRendererName))return new n({numCells:i,colClass:this.getMetaDataStore().getColumnModelProperty("Datatype",e),rendererName:t.CellRendererName})},_getRendererWidgetForColumnFormat:function(e,t){if(this._metaDataStore.hasColumnModelProperty(e,"ColumnFormat")){var i,n=this.getMetaDataStore().getColumnModelProperty("ColumnFormat",e);if("logical"===n?i="logical":"char"===n||"string"===n||"object"==typeof n&&n.length>1?i="string":"string"==typeof n&&0!==n.length&&(i="double"),i)return this.getWidgetByDatatype(i,t)}},_getEditorWidgetForColumnFormat:function(e,t){if(this._metaDataStore.hasColumnModelProperty(e,"ColumnFormat")){var i,n=this.getMetaDataStore().getColumnModelProperty("ColumnFormat",e);if("char"===n||"string"===n?i="string":"string"==typeof n&&0!==n.length&&(i="double"),i)return this.getWidgetByDatatype(i,t)}},getWidgetByColumn:function(e,t){var i=this.getMetaDataStore().getColumnModelProperty("Datatype",e);if(void 0!==i)return this.getWidgetByDatatype(i,t)},getWidgetByDatatype:function(e,t){return i.getWidgets(void 0,e,this.CONTEXT,t)},isHeaderMenuEnabled:function(e){return!1},isColumnSortingEnabled:function(e){return this.getColumnSortable(e)},getColumnWidth:function(e){this.getMetaDataStore().hasColumnModelProperty(e,"MinimumWidth")||this._updateColumnMinimumWidthMetaDataProperty(e,e);var t=this.getMetaDataStore().getColumnModelProperty("ColumnWidth",e)||"auto",i=this.getMetaDataStore().getColumnModelProperty("MinimumWidth",e),n=this._getDerivedAutoColumnWidths(),o=this._maxNxValue,r={value:i,unit:"px"};if(this._isColumnWidthNx(t))r={value:100*parseFloat(t),unit:"%"};else if(this._isColumnWidthAuto(t))if(n&&n.hasOwnProperty(e))r=n[e];else{var a=this.getMetaDataStore().getColumnModelProperty("GroupColumnSize",e)||1;r={value:this._getAutoColumnMinimunWidthInPixels(i,a),unit:"px"}}return n&&Object.keys(n).length>0&&(o=Math.max(o,1)),void 0===r.value?r=void 0:"%"===r.unit&&1!==o&&o>0&&(r.value=r.value/o),r},addColumnHeaderBuffer:function(e){return 1.04*e+14},_getLongestElementInStringArray:function(e){var t=e[0];if(e.length>1)for(var i=1;i<e.length;i++)t&&e[i].length>t.length&&(t=e[i]);return t},_getCellFontStyle:function(e){var t;e&&(t={FontAngle:t=e.fontStyle||this.DEFAULT_FONT_STYLE,FontWeight:e.fontWeight||this.DEFAULT_FONT_WEIGHT,FontSize:e.fontSize||this.DEFAULT_FONT_SIZE,FontName:e.fontFamily||this.DEFAULT_FONT_NAME});return t},_getColumnHeaderFontStyle:function(){return{FontAngle:this.DEFAULT_FONT_STYLE,FontWeight:this.DEFAULT_HEADER_FONT_WEIGHT,FontSize:this.DEFAULT_FONT_SIZE,FontName:this.DEFAULT_FONT_NAME}},_updateColumnMinimumWidthMetaDataProperty:function(e,t){for(var i,n,o,r=e;r<=t&&(i=this.getMetaDataStore().getColumnProperties(r)).hasOwnProperty("ColumnNumber");r++)n=i.ColumnWidth||"auto",this._isColumnWidthAuto(n)||this._isColumnWidthFit(n)?o=this._calculateMinimumSize(i):this._isColumnWidthNx(n)?o=0:this._isColumnWidthNumeric(n)&&(o=n),i.MinimumWidth=o,this.getMetaDataStore().setColumnProperties(r,i)},_calculateMinimumSize:function(e){var t,i,n,o,r,a;return e.ColumnWidth,t=e.Datatype,i=e.MinimumWidthCellContent,(n=e.Editable)&&(o=e.Categories),r=e.HeaderName,a=e.IsSortable,this._getFitWidthForColumn(t,i,n,o,r,a)},_getFitWidthForColumn:function(e,t,i,n,o,r){var a=this._getFitColumnContentWidth(e,t,i,n),s=this._getFitColumnHeaderWidth(o,r);return Math.max(a,s)},_getAutoColumnMinimunWidthInPixels:function(e,t){t||(t=1);var i=this.COLUMN_AUTO_WIDTH_MINIMUM*t,n=this.COLUMN_AUTO_WIDTH_CONTENT_MAXIMUM*t,o=i;return e&&(o=Math.max(o,e)),o=Math.min(o,n)},_getFitColumnHeaderWidth:function(e,t){var i=this._getColumnHeaderFontStyle(),n=a.getTextPosition(e,i),o=this.addColumnHeaderBuffer(n.w);return t&&(o+=this.COLUMN_SORTAFFORDANCE_BUFFER),o},_getFitColumnContentWidth:function(e,t,i,n){var o=0;if("logical"===e)o=this.CHECKBOX_WIDTH;else{var r=this.COLUMN_BUFFER;if(Array.isArray(n)&&n.length>0){for(var s=[t],l=Math.min(n.length,10),c=0;c<l;c++)s.push(n[c]);t=this._getLongestElementInStringArray(s),i&&(r=this.CATEGORICAL_DROPDOWN_BUFFER)}var d=this.getMetaDataStore().getTableModelProperty("style"),u=this._getCellFontStyle(d);o=a.getTextPosition(t,u).w+r}return o},_handlePagedColumnMetaDataChanged:function(e){this.inherited(arguments),this._handleMetaDataChanged(e)},_handlePagedTableMetaDataChanged:function(e){this.inherited(arguments),this._handleMetaDataChanged(e)},_handleMetaDataChanged:function(e){var t=e.rangeList[0].columns.start,i=e.rangeList[0].columns.end;this._updateColumnMinimumWidthMetaDataProperty(t,i),this._maxNxValue=this._calculateMaxNxValue(),this._processMetaDataForAutoColumnAndTriggerUpdate(this._cachedViewPortWidth)},setSize:function(e){this.inherited(arguments),this._processMetaDataForAutoColumnAndTriggerUpdate(this._cachedViewPortWidth)},_handleColumnWidthChanged:function(){this._emitConfigurationChanged("Column",r.range().setColumns(0,1/0).setRows(0,1/0))},_isObjectEqual:function(e,t){return JSON.stringify(e)===JSON.stringify(t)},handleResize:function(e){this._cachedViewPortWidth=e,this._processMetaDataForAutoColumnAndTriggerUpdate(e)},_processMetaDataForAutoColumnAndTriggerUpdate:function(e){var t=this._getDerivedAutoColumnWidths();e=this._getViewPortWidth(e);for(var i,n,o,r=0,a=0;r<this._getColumnHeaderCount()&&a<e;)this.getMetaDataStore().hasColumnModelProperty(r,"MinimumWidth")&&(n=this.getMetaDataStore().getColumnModelProperty("MinimumWidth",r),i=this.getMetaDataStore().getColumnModelProperty("ColumnWidth",r)||"auto",this._isColumnWidthAuto(i)&&(o=this.getMetaDataStore().getColumnModelProperty("GroupColumnSize",r)||1,n=this._getAutoColumnMinimunWidthInPixels(n,o)),a+=n),r++;var s={};a<e&&(s=this._calculateAutoColumnWidthWithUnits()),this._setDerivedAutoColumnWidth(s),this._isObjectEqual(t,s)||this._handleColumnWidthChanged()},_setDerivedAutoColumnWidth:function(e){this._derivedAutoColumnWidth=e},_getDerivedAutoColumnWidths:function(){return this._derivedAutoColumnWidth},_calculateMaxNxValue:function(e,t){var i,n,o=-1;if(void 0===e&&(e=0),void 0===t){var r=this._getColumnHeaderCount();if(0===r||void 0===r)return o}for(var a=0;a<r;a++)i=this.getMetaDataStore().getColumnModelProperty("ColumnWidth",a)||"auto",this._isColumnWidthNx(i)&&(n=parseFloat(i),o=Math.max(o,n));return o},_getViewPortWidth:function(e){if(!this.tableWidthDiv)return e;var t=this.tableWidthDiv.querySelector(".mw-table-component .mw-table-outer-wrapper-blurred")||this.tableWidthDiv.querySelector(".mw-table-component .mw-table-outer-wrapper");if(!t)return e;var i=t.style.maxWidth;t.style.maxWidth="none";var n=this.tableWidthDiv.querySelector(".mw-table-component .mw-table-flex-container.mw-table-header-wrapper .mw-table-flex-dynamic-item").getBoundingClientRect().width;0===n&&(n=Number(this.tableWidthDiv.style.width.replace("px","")));return t.style.maxWidth=i,n||e},_calculateAutoColumnWidthWithUnits:function(){var e,t,i=[],n=this._getColumnHeaderCount();if(0===n||void 0===n)return{};for(var o,r,a={},s=0,l=0,c=0;c<n;c++)e=this.getMetaDataStore().getColumnModelProperty("ColumnWidth",c)||"auto",o=this.getMetaDataStore().getColumnModelProperty("MinimumWidth",c),t=1,this._isColumnWidthAuto(e)?(r=this.getMetaDataStore().getColumnModelProperty("GroupColumnSize",c)||1,i.push({width:this._getAutoColumnMinimunWidthInPixels(o,r),index:c}),a[c]={value:100*t,unit:"%"},s+=t):this._isColumnWidthNx(e)?s+=t=parseFloat(e):this._isColumnWidthFit(e)?l+=o:"number"==typeof e&&(l+=e);var d=this._getViewPortWidth(this._cachedViewPortWidth),u=i.length,h=u;if(u>=1){i.sort((function(e,t){return e.width===t.width?t.index-e.index:t.width-e.width}));for(var p=d-l,f=s,g=p/f,m=0;m<u;m++)i[m].width>g&&(a[i[m].index]={value:i[m].width,unit:"px"},f-=1,h-=1,g=(p=d-(l+=i[m].width))/f);0===f&&h>0&&(a[i[u-1].index]={value:100,unit:"%"})}return a},_getColumnHeaderCount:function(){var e;return this._size&&(e=this._size.columns.count),e||(e=this._columnConfigs.length),e},_isColumnWidthAuto:function(e){return 0===e.length||"string"==typeof e&&"auto"===e.toLowerCase()},_isColumnWidthFit:function(e){return"fit"===e},_isColumnWidthNx:function(e){return"string"==typeof e&&e.indexOf("x")>=0},_isColumnWidthNumeric:function(e){return"number"==typeof e}})}),e,t),e.exports=o},function(e,t){e.exports='[\n {\n "Keyset":{\n "Container": "",\n "Datatype": "",\n "Context": ""\n },\n "Valueset":{\n "Editor":"variableeditor/views/UnknownView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins":[\n ]\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerDocument",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"MW.mgg.table.VariableEditor",\n "InPlaceEditor":"",\n "CellRenderer":"MW.mgg.table.VariableRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n "internal.matlab.legacyvariableeditor.peer.PeerArrayViewModel",\n "internal.matlab.legacyvariableeditor.peer.PeerLogicalArrayViewModel"\n ],\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/NumericArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerStructureViewModel",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/StructureArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerCategoricalViewModel",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/CategoricalView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerTableViewModel",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/TableArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerCharArrayViewModel",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/CharArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerStringArrayViewModel",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/StringArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n "internal.matlab.legacyvariableeditor.peer.PeerCellArrayViewModel",\n "internal.matlab.legacyvariableeditor.peer.PeerObjectArrayViewModel"\n ],\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/CellArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerDatetimeArrayViewModel",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/DatetimeArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerDurationArrayViewModel",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/DurationArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerCalendarDurationArrayViewModel",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/CalendarDurationArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerStructureArrayViewModel",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/VectorStructureArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"",\n "Datatype":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"rendererseditors/editors/NumericEditor",\n "CellRenderer":"rendererseditors/editors/NumericEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"",\n "Datatype":"char"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"rendererseditors/editors/CharEditor",\n "CellRenderer":"rendererseditors/editors/CharEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"",\n "Datatype":"string"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"rendererseditors/editors/StringEditor",\n "CellRenderer":"rendererseditors/editors/StringEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"",\n "Datatype":"logical"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"rendererseditors/editors/LogicalEditor",\n "CellRenderer":"rendererseditors/editors/LogicalEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"",\n "Datatype":[\n "table",\n "dataset",\n "struct",\n "object",\n "duration",\n "calendarDuration"\n ]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/editors/TextBoxEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"",\n "Datatype":"cell"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"rendererseditors/editors/TextBoxEditor",\n "CellRenderer":"rendererseditors/editors/TextBoxEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"",\n "Datatype":[\n "categorical",\n "nominal",\n "ordinal"\n ]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"rendererseditors/editors/ComboBoxEditor",\n "CellRenderer":"rendererseditors/editors/ComboBoxEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"",\n "Datatype":"datetime"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"rendererseditors/editors/DatetimeEditor",\n "CellRenderer":"rendererseditors/editors/DatetimeEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n "internal.matlab.legacyvariableeditor.peer.PeerStructureViewModel",\n "internal.matlab.legacyvariableeditor.peer.PeerObjectViewModel"\n ],\n "Datatype":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "char",\n "string",\n "logical",\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "datetime",\n "default"\n ]\n },\n "Valueset":{\n "Editor":"variableeditor/views/editors/OpenvarEditor",\n "InPlaceEditor":"rendererseditors/editors/IconTextBoxEditor",\n "CellRenderer":"rendererseditors/editors/IconTextBoxEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n "internal.matlab.legacyvariableeditor.peer.PeerStructureViewModel",\n "internal.matlab.legacyvariableeditor.peer.PeerObjectViewModel"\n ],\n "Datatype":[\n "duration",\n "calendarDuration"\n ]\n },\n "Valueset":{\n "Editor":"variableeditor/views/editors/OpenvarEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/editors/IconTextBoxEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerObjectViewModel",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"variableeditor/views/StructureArrayView",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":"internal.matlab.legacyvariableeditor.peer.PeerTableViewModel",\n "Datatype":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "char",\n "string",\n "logical",\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "datetime",\n "duration",\n "calendarDuration",\n "default"\n ]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/renderers/GroupedColumnRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n "internal.matlab.legacyvariableeditor.peer.PeerCellArrayViewModel",\n "internal.matlab.legacyvariableeditor.peer.PeerObjectArrayViewModel",\n "internal.matlab.legacyvariableeditor.peer.PeerStructureArrayViewModel"\n ],\n "Datatype":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "datetime",\n "duration",\n "calendarDuration",\n "default"\n ]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"rendererseditors/editors/TextBoxEditor",\n "CellRenderer":"rendererseditors/editors/TextBoxEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n "internal.matlab.legacyvariableeditor.peer.PeerCellArrayViewModel",\n "internal.matlab.legacyvariableeditor.peer.PeerObjectArrayViewModel",\n "internal.matlab.legacyvariableeditor.peer.PeerStructureArrayViewModel"\n ],\n "Datatype":"char"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"rendererseditors/editors/CharEditor",\n "CellRenderer":"rendererseditors/editors/CharEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n "internal.matlab.legacyvariableeditor.peer.PeerCellArrayViewModel",\n "internal.matlab.legacyvariableeditor.peer.PeerObjectArrayViewModel",\n "internal.matlab.legacyvariableeditor.peer.PeerStructureArrayViewModel"\n ],\n "Datatype":"logical"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"rendererseditors/editors/LogicalEditor",\n "CellRenderer":"rendererseditors/editors/LogicalEditor",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n ""\n ],\n "Datatype":[\n ""\n ],\n "Context":[\n "ServerFetchInProgress"\n ]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/LoadingRenderer",\n "EditorConverter":"",\n "Plugins":[\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical"\n ],\n "Datatype":"",\n "Context": ""\n },\n "Valueset":{\n "Editor":"variableeditor_client/ArrayViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":["table", "timetable"],\n "Datatype":"",\n "Context": ""\n },\n "Valueset":{\n "Editor":"variableeditor_client/TableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":""\n }\n }\n]\n'},function(e,t,i){var n,o;n=[i(203),i(1544)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){this.config=e},getDomNode:function(e){var i=this.config.numCells,n=[];if(e)if(Array.isArray(e))n=e;else if("string"==typeof e)n=(n=e.replace(/\s\s+/g," ")).split(" ");else{var o,r=[];for(o=0;e.hasOwnProperty(o);o+=1)r.push(e[o]);n=r.map((function(e){return e.hasOwnProperty("value")?e.value:e}))}var a,s=document.createElement("div");for(a=0;a<i;a+=1){var l=t.getRendererReference(this.config.rendererName),c=null;n[a]&&(c=n[a]);var d=l.getDomNode(c),u=document.createElement("div");u.className="spanCell",u.appendChild(d),s.appendChild(u)}return s.className="spanCellParent",s}})}),e,t),e.exports=o},function(e,t){e.exports='[\n {\n "Keyset":{\n "Datatype":[\n "table",\n "dataset",\n "struct",\n "cell",\n "char",\n "object",\n "nominal",\n "ordinal",\n "calendarDuration",\n "default"\n ],\n "Context":"uitable"\n },\n "Valueset":{\n "CellRendererName":"UITableLeftAlignedRenderer"\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "cellstr",\n "string"\n ],\n "Context":"uitable"\n },\n "Valueset":{\n "Editor":"mw-table/editors/DefaultEditor",\n "EditorName":"DefaultEditor",\n "CellRendererName":"UITableLeftAlignedRenderer"\n\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime"\n ],\n "Context":"uitable"\n },\n "Valueset":{\n "EditorName":"UITableRightAlignedEditor",\n "CellRendererName":"UITableRightAlignedRenderer"\n\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "duration"\n ],\n "Context":"uitable"\n },\n "Valueset":{\n "CellRendererName":"UITableRightAlignedRenderer"\n\n }\n },\n {\n "Keyset":{\n "Datatype":"logical",\n "Context":"uitable"\n },\n "Valueset":{\n "CellRendererName":"CheckboxRenderer"\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "categorical"\n ],\n "Context":"uitable"\n },\n "Valueset":{\n "EditorName":"ComboBoxEditor",\n "CellRendererName":"DefaultRenderer"\n }\n }\n]\n'},function(e,t){e.exports='[{\n "Keyset":{\n "Datatype":[\n "table",\n "dataset",\n "struct",\n "cell",\n "char",\n "object",\n "nominal",\n "ordinal",\n "calendarDuration",\n "default",\n "duration"\n ],\n "Context":"uitable",\n "DataAttributes": ["left"]\n },\n "Valueset":{\n "CellRendererName":"UITableLeftAlignedRenderer"\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "table",\n "dataset",\n "struct",\n "cell",\n "char",\n "object",\n "nominal",\n "ordinal",\n "calendarDuration",\n "default",\n "duration"\n ],\n "Context":"uitable",\n "DataAttributes": ["center"] \n },\n "Valueset":{\n "CellRendererName":"UITableCenterAlignedRenderer"\n }\n },\n\n {\n "Keyset":{\n "Datatype":[\n "table",\n "dataset",\n "struct",\n "cell",\n "char",\n "object",\n "nominal",\n "ordinal",\n "calendarDuration",\n "default",\n "duration"\n ],\n "Context":"uitable",\n "DataAttributes": ["right"] \n },\n "Valueset":{\n "CellRendererName":"UITableRightAlignedRenderer"\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "cellstr",\n "string"\n ],\n "Context":"uitable",\n "DataAttributes": ["left"]\n },\n "Valueset":{\n "EditorName":"DefaultEditor",\n "CellRendererName":"UITableLeftAlignedRenderer"\n\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "cellstr",\n "string"\n ],\n "Context":"uitable",\n "DataAttributes": ["center"]\n },\n "Valueset":{\n "EditorName":"UITableCenterAlignedEditor",\n "CellRendererName":"UITableCenterAlignedRenderer"\n\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "cellstr",\n "string"\n ],\n "Context":"uitable",\n "DataAttributes": ["right"]\n },\n "Valueset":{\n "EditorName":"UITableRightAlignedEditor",\n "CellRendererName":"UITableRightAlignedRenderer"\n\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "categorical"\n ],\n "Context":"uitable",\n "DataAttributes": ["left"]\n },\n "Valueset":{\n "EditorName":"ComboBoxEditor",\n "CellRendererName":"UITableLeftAlignedRenderer"\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "categorical"\n ],\n "Context":"uitable",\n "DataAttributes": ["center"]\n },\n "Valueset":{\n "EditorName":"ComboBoxEditor",\n "CellRendererName":"UITableCenterAlignedRenderer"\n }\n },\n {\n "Keyset":{\n "Datatype":[\n "categorical"\n ],\n "Context":"uitable",\n "DataAttributes": ["right"]\n },\n "Valueset":{\n "EditorName":"ComboBoxEditor",\n "CellRendererName":"UITableRightAlignedRenderer"\n }\n },\n {\n "Keyset":{\n "Datatype":"logical",\n "Context":"uitable",\n "DataAttributes": ["left", "center", "right"]\n },\n "Valueset":{\n "CellRendererName":"CheckboxRenderer"\n }\n }\n]'},function(e,t,i){var n,o;n=[i(203),i(595),i(842),i(1549)],o=i.dj.d(n,(function(e,t,i,n){var o=e([n],{_getRangeToSelect:function(e){var i=[],n=this.adaptor.getSelection(),o=this._getColumnRange(e.activeCell.columns);return this._hasCtrlModifier(e)&&t.isRangeInsideRangeList(o,n)&&(o=void 0),o&&i.push(o),i}});return o.adaptor=i,o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(842),i(1549)],o=i.dj.d(n,(function(e,t,i){var n=e([i],{_attachEventListeners:function(){this.inherited(arguments);var e=t.event;this.adaptor.on(e.ROW_SELECTION,this._handleSelectionChanged.bind(this))},_getRangeToSelect:function(e){return[e.activeCell]}});return n.adaptor=t,n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(595),i(842),i(1549)],o=i.dj.d(n,(function(e,t,i,n){var o=e([n],{_anchorColumn:0,_getRangeToSelect:function(e){var i=[],n=this.adaptor.getSelection(),o=this._getColumnRange(e.activeCell.columns);if(this._hasCtrlModifier(e))i=t.removeRangeFromRangeList(n,o),t.isRangeInsideRangeList(o,n)&&(o=void 0),this._anchorColumn=e.activeCell.columns.start;else if(e.shiftKey){var r=e.activeCell.columns.start;o=t.range().setEntireColumns(Math.min(this._anchorColumn,r),Math.max(this._anchorColumn,r))}else this._anchorColumn=e.activeCell.columns.start;return o&&i.push(o),i}});return o.adaptor=i,o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2237),i(595),i(460)],o=i.dj.d(n,(function(e,t,i,n){var o=e([t],{constructor(e){this.adaptor._computeEventForPlugin=function(e){return{shiftKey:e.event.shiftKey,ctrlKey:e.event.ctrlKey,metaKey:e.event.meta||e.event.metaKey,groupedSelection:e.event.groupedSelection,keyCode:e.event.keyCode}}},_handleKeySelection:function(e){if(this.inherited(arguments),this._hasCtrlModifier(e)&&!this._isNavigationKey(e.keyCode)&&!e.shiftKey){var t=e.activeCell,n=this.adaptor.getSelection();i.isRangeInsideRangeList(t,n)?n=i.removeRangeFromRangeList(n,t):n.push(t),this.adaptor.setSelection(n),this.emit("selectionChanged",{rangeList:this.adaptor.getSelection()})}},_hasCtrlModifier:function(e){return e.ctrlKey||e.metaKey},_isNavigationKey:function(e){return e&&(e===n.ARROW_LEFT||e===n.ARROW_RIGHT||e===n.ARROW_UP||e===n.ARROW_DOWN||e===n.PAGE_UP||e===n.PAGE_DOWN||e===n.HOME||e===n.END)}});return o.adaptor=t.adaptor,o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(239)],o=i.dj.d(n,(function(e){return{_getColumnRangeFunction:function(){return e.range().setEntireColumns},_getRowRangeFunction:function(){return e.range().setEntireRows},_getOptimizedRangeForRowOrColumn:function(e,t){var i=[],n=e[0],o=e[0];for(let r=1;r<e.length;r++)e[r]!==n+1?(i.push(t(o,n)),o=e[r],n=e[r]):n+=1;return i.push(t(o,n)),i},_getOptimizedRangeForCell:function(t){var i=[],n=t[0][0],o=t[0][0],r=t[0][1];for(let a=1;a<t.length;a++)t[a][1]>r?(i.push(e.range().setRows(o,n).setColumns(r,r)),r=t[a][1],o=t[a][0],n=t[a][0]):t[a][0]===n+1?n+=1:(i.push(e.range().setRows(o,n).setColumns(r,r)),o=t[a][0],n=t[a][0]);return i.push(e.range().setRows(o,n).setColumns(r,r)),i},getOptimizedRange:function(e,t){var i;switch(t){case"cell":i=this._getOptimizedRangeForCell(e);break;case"row":i=this._getOptimizedRangeForRowOrColumn(e,this._getRowRangeFunction());break;case"column":i=this._getOptimizedRangeForRowOrColumn(e,this._getColumnRangeFunction())}return i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(230),i(440),i(480),i(962),i(2211),i(404),i(6328),i(6330),i(298),i(295)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([o,r,a,s,l,d,u,h],{constructor:function(){},createView:function(e){this.inherited(arguments),this.widget=new c({dataTag:this.getPeerNodeId()}),e.parentDijit?e.parentDijit.addChild(this.widget):t.place(this.widget.domNode,e.parentDomNode),this.widget.startup(),this._setProperties(this.getPeerNode().getProperties()),this.emit("viewReady")},_handlePropertiesSet:function(e){this.setProperties(e.data.newValues)},_handlePeerEvent:function(e){this.inherited(arguments)},setProperties:function(e){var t;for(t in e){var i="_"+t;this[i]&&this[i]instanceof Function&&this[i](e[t])}},_computeMinimumSize:function(){return[200,200]},_computeFitSize:function(){return[400,300]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(204),i(963),i(215),i(216),i(343),i(1530),i(374),i(6329)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([n,o,r,a,s,l],{baseClass:"gbtWidget gbtChart",templateString:c,width:400,height:300,isBorderVisible:!1,backgroundColor:"rgb(204, 204, 204)",constructor:function(e){if(this.inherited(arguments),!e||!e.dataTag)throw new Error("dataTag must be passed to the Chart constructor");this.dataTag=e.dataTag},postCreate:function(){this.inherited(arguments),this.containerNode.style.width="100%",this.containerNode.style.height="100%"},_setWidthAttr:function(e){e>0?this._setSize("width",e):(t.set(this.domNode,{width:"0px"}),this._set("width",0))},_setHeightAttr:function(e){e>0?this._setSize("height",e):(t.set(this.domNode,{height:"0px"}),this._set("height",0))},createCloneDOMNode:function(){var e=null;return null!==this.GraphicsView&&(e=this.GraphicsView.createCloneDOMNode()),e}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="backgroundColorNode" class="${baseClass}" data-tag="${dataTag}"\n ><div data-dojo-attach-point=\'containerNode,canvasContents\' class=\'gbtChartContent\'></div\n></div>'},function(e,t,i){var n,o;n=[i(203),i(734)],o=i.dj.d(n,(function(e,t){return e([t],{fillCell:function(e){var t=this.getTopLevelNode();return t.style.width="auto",t.style.height="auto",this._triggerRedraw(e),{innerSize:e,outerSize:e}},_triggerRedraw:function(e){var t=this.getPositionInPixels();if(!e){var i=this.widget.domNode.getBoundingClientRect();e=[i.width,i.height]}var n=[t[0],t[1],e[0],e[1]];this.setPositionInPixels(n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(211),i(230),i(736),i(440),i(480),i(962),i(1170),i(971),i(737),i(1550),i(592),i(441),i(6333),i(404),i(298),i(295),i(481),i(482)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){function C(e){return"string"==typeof e&&"x"===e[e.length-1]?"fit":e}function T(e){return"string"==typeof e&&"x"===e[e.length-1]?200:e}var E=["RowHeight","ColumnWidth","RowSpacing","ColumnSpacing","Padding"];return e([a,s,l,c,u,h,p,f,m,_,v,b,y,o],{constructor:function(){this._createParentSizeChangedListener(),this.own(t(this,"scrollableStateChanged",this._handleScrollableStateChanged.bind(this)))},animationFrameRequestId:null,destroy:function(){this.inherited(arguments)},_createGridWidget:function(){return new g({dataTag:this.getPeerNodeId()})},createView:function(e){this.inherited(arguments),this.widget=this._createGridWidget(),e.parentDijit?e.parentDijit.addChild(this.widget):n.place(this.widget.domNode,e.parentDomNode),this.widget.startup(),this._setProperties(this.getPeerNode().getProperties()),this._updatePosition(),this.own(t(this,"containerChildAdded",this._handleChildAdded.bind(this)),t(this,"containerChildRemoved",this._handleChildRemoved.bind(this))),this.addMouseEventListeners(this.widget.domNode),this.emit("viewReady")},getHeight:function(){for(var e=this.getVisibleChildren(),t=-1,i=0;i<e.length;++i){var n=e[i].getLayoutConstraints().Row,o=0;o=Array.isArray(n)?Math.max.apply(Math,n):n,t=Math.max(o,t)}var r=this.widget.getTotalHeight(t);return Math.max(r,this.widget.height)},_setProperties:function(e){this.inherited(arguments),void 0===e.RowHeight&&void 0===e.ColumnWidth||this.reapplyCSS(),void 0===e.RowHeight&&void 0===e.ColumnWidth&&void 0===e.ColumnSpacing&&void 0===e.RowSpacing&&void 0===e.Padding||this.relayoutChildren()},_convert0xTo0px:function(e){return e.map((function(e){if("x"===e[e.length-1]&&0===parseFloat(e.slice(0,e.length-1)))return 0;return e}))},_convertSizesForWidget:function(e,t){var i=this._convert0xTo0px(e);return this._convertFitValues(i,t)},_RowHeight:function(e){this.widget.set("rowHeight",this._convertSizesForWidget(e,"RowHeight"))},_ColumnWidth:function(e){var t=this.widget.get("columnWidth"),i=this._convertSizesForWidget(e,"ColumnWidth");this.widget.set("columnWidth",i),this._handleColumnWidthChanged(t,i)},_RowSpacing:function(e){this.widget.set("rowSpacing",e)},_ColumnSpacing:function(e){this.widget.set("columnSpacing",e),this._handleColumnSpacingChanged()},_Padding:function(e){if(!Array.isArray(e)||4!==e.length)throw new Error("Padding must be a 1x4 array");var t=[e[3],e[2],e[1],e[0]];this.widget.set("padding",t)},_convertFitValues:function(e,t){if(!Array.isArray(e))throw new Error("Expected input of _convertFitValues to be an array");var i;if(e.filter((function(e){return"fit"===e})).length>0){var n=this.computeFitValuesWithNoSpanChildren(e,t),o=n.fitArray,r=n.fitWithFullyContainedChildren,a=this.computeFitValuesWithSpanningChildren(o,r,e,t);i=e.map((function(e,t){return"fit"===e?a[t]:e}))}else i=e;return i},computeFitValuesWithNoSpanChildren:function(e,t){for(var i=e.map((function(e){return"fit"===e?0:NaN})),n=e.map((function(e){return"fit"!==e&&null})),o=this.getAllChildren(),r=0;r<o.length;r++){var a=o[r].getLayoutConstraints(),s="ColumnWidth"===t?a.Column:a.Row,l=o[r].getFitSize(),c="ColumnWidth"===t?l[0]:l[1];if("number"==typeof s||Array.isArray(s)&&s[0]===s[1]){var d="number"==typeof s?s:s[0];i[d-1]=Math.max(i[d-1],c),n[d-1]=!0}}return{fitArray:i,fitWithFullyContainedChildren:n}},computeFitValuesWithSpanningChildren:function(e,t,i,n){for(var o=e.slice(0),r=this._sortChildrenByDescendingFitSize(n),a=0;a<r.length;a++){var s=r[a].getLayoutConstraints(),l="ColumnWidth"===n?s.Column:s.Row;if(Array.isArray(l)&&l[0]!==l[1]){for(var c=r[a].getFitSize(),d="ColumnWidth"===n?c[0]:c[1],u=0,h="RowHeight"===n?this.getPeerNode().getProperty("RowSpacing"):this.getPeerNode().getProperty("ColumnSpacing"),p=d,f=[],g=l[0];g<=l[1];g++){var m=i[g-1];if("string"==typeof m&&"x"===m[m.length-1]){p=0,u+=1;break}var _="number"==typeof m?m:o[g-1];p-=_,"fit"===m&&f.push(g-1),0!==_&&(u+=1)}if((p-=Math.max(0,u-1)*h)>0&&f.length>0){var v,b=f.filter((function(e){return!t[e]})),y=(v=b.length>0?b:f).filter((function(e){return 0===o[e]})),C=y.length;if(C>0){for(var T=0;T<C;T++)o[y[T]]+=1;p=p-1*C-(C===l[1]-l[0]+1?C-1:C)*h}if(p>0)for(var E=0;E<v.length;E++)o[v[E]]+=p/v.length}}}return o},_sortChildrenByDescendingFitSize:function(e){var t=this.getAllChildren(),i="ColumnWidth"===e?0:1;return t.sort((function(e,t){var n=e.getFitSize()[i];return t.getFitSize()[i]-n}))},_spansAcrossCell:function(e,t,i){return"RowHeight"===i&&this._spansAcrossRow(e,t)||"ColumnWidth"===i&&this._spansAcrossColumn(e,t)},_spansAcrossRow:function(e,t){return Array.isArray(e.Row)&&e.Row[0]<=t&&e.Row[1]>=t&&e.Row[0]!==e.Row[1]},_spansAcrossColumn:function(e,t){return Array.isArray(e.Column)&&e.Column[0]<=t&&e.Column[1]>=t&&e.Column[0]!==e.Column[1]},_getChildrenInColumn:function(e){var t=[];if(e.length>0)for(var i,n=this.getPeerNode().getChildren(),o=0;o<n.length;o++)for(var r=n[o].getProperty("LayoutConstraints"),a=0;a<e.length;a++)if(i=e[a]+1,"number"==typeof r.Column&&r.Column===i||Array.isArray(r.Column)&&r.Column[0]<=i&&r.Column[1]>=i){t.push(n[o]);break}return t},_getSpanningChildren:function(){for(var e=[],t=this.getPeerNode().getChildren(),i=0;i<t.length;i++){var n=t[i].getProperty("LayoutConstraints");if(Array.isArray(n.Column)&&n.Column[0]!==n.Column[1]){e.push(t[i]);break}}return e},_handleChildAdded:function(e){var i=e.getPeerNode();this.own(t(e,"fitsizechanged",this.handleChildFitSizeChanged.bind(this))),void 0!==i&&this.own(t(i,"propertiesSet",this._handleChildPropertiesSet.bind(this))),this._handleCellContentChanged(e),e.setGridController(this)},_handleChildRemoved:function(e){e.resetFitSize(),this._handleCellContentChanged(e)},handleChildFitSizeChanged:function(e){var t=e.child;this._handleCellContentChanged(t.getController())},_handleCellContentChanged:function(e){var t=e.getLayoutConstraints();if(null==t)this._handleGridContentChanged(void 0);else if("Grid"===t.Type){var i={row:t.Row,column:t.Column};this._handleGridContentChanged(i)}},_handleChildPropertiesSet:function(e){if(e.data.newValues.hasOwnProperty("LayoutConstraints")){var t=e.target;if(void 0!==t.getController&&void 0!==t.getController()){t.getController().recomputeFitHeight(!0)}var i=[];"Grid"===e.data.oldValues.LayoutConstraints.Type&&i.push({row:e.data.oldValues.LayoutConstraints.Row,column:e.data.oldValues.LayoutConstraints.Column}),"Grid"===e.data.newValues.LayoutConstraints.Type&&i.push({row:e.data.newValues.LayoutConstraints.Row,column:e.data.newValues.LayoutConstraints.Column}),this._handleGridContentChanged(i)}},_handleGridContentChanged:function(e){this._updateRowColumnFitValues(e),this.recomputeFitSize()},_handleColumnWidthChanged:function(e,t){for(var i=Math.max(t.length,e.length)-1,n=[],o=0;o<=i;o++)t[o]!==e[o]&&n.push(o);var r=this._getChildrenInColumn(n,"ColumnWidth");this._updateChildrenFitHeight(r)},_handleWidthChanged:function(){if(this.contentGrowsHorizontally()){for(var e=[],t=0;t<this.widget.get("columnWidth").length;t++){var i=this.widget.get("columnWidth")[t];"string"==typeof i&&"x"===i[i.length-1]&&e.push(t)}var n=this._getChildrenInColumn(e);this._updateChildrenFitHeight(n)}},_handleColumnSpacingChanged:function(){var e=this._getSpanningChildren();this._updateChildrenFitHeight(e)},_updateChildrenFitHeight:function(e){var t=[];e.forEach((function(e){if(void 0!==e.getController&&void 0!==e.getController()){e.getController().recomputeFitHeight(!0);var i=e.getController().getLayoutConstraints();t.push({row:i.Row,column:i.Column})}})),this._handleGridContentChanged(t)},_updateRowColumnFitValues:function(e){var t=void 0===e;e=e||[],Array.isArray(e)||(e=[e]);for(var i=!1,n=!1,o=!1,r=this.getPeerNode().getProperty("RowHeight"),a=this.getPeerNode().getProperty("ColumnWidth"),s=0;(!i||!n)&&s<e.length;){var l=e[s],c=l.row;c="number"==typeof c?[c,c]:c;var d=l.column;d="number"==typeof d?[d,d]:d;for(var u=c[0];!i&&u<=c[1];)"fit"===r[u-1]&&(i=!0),u++;for(u=d[0];!n&&u<=d[1];)"fit"===a[u-1]&&(n=!0),u++;s++}(t||i)&&(this.widget.set("rowHeight",this._convertSizesForWidget(r,"RowHeight")),o=!0),(t||n)&&(this.widget.set("columnWidth",this._convertSizesForWidget(a,"ColumnWidth")),o=!0),o&&(this.reapplyCSS(),this.relayoutChildren())},_handleParentSizeChanged:function(e){void 0!==this.getPeerNode()&&(this._updatePosition(),this.emit(u.CONTAINER_RESIZE_EVENT_NAME,e))},_handleScrollableStateChanged:function(e){this._handleWidthChanged(),this.recomputeFitSize(),this.relayoutChildren()},_createParentSizeChangedListener:function(){this._ParentSizeChangedListener=t(this.getParentController(),"containerClientAreaSizeChanged",r.throttle(this._handleParentSizeChanged,r.THROTTLE_DELAY,{leading:!0,trailing:!0}).bind(this)),this.own(this._ParentSizeChangedListener)},_updatePosition:function(){var e=this.strategy.getPositionOfEnclosingBox(this),t=this.getPositionInPixels();t.some((function(t,i){return t!==e[i]}))&&(this.setPositionInPixels(e),t[2]!==e[2]&&this._handleWidthChanged(),this.relayoutChildren())},useTopDownScrollableContentStrategy:function(){return!0},handleLayoutPropertySet:function(){this._handleGridContentChanged(void 0)},reapplyCSS:function(){this.getPeerNode().getChildren().forEach((function(e){e.getController()&&e.getController().handleTrackSizeChanged()}))},relayoutChildren:function(){null===this.animationFrameRequestId&&(this.animationFrameRequestId=window.requestAnimationFrame(this._relayoutChildrenCallback.bind(this)))},_relayoutChildrenCallback:function(){this.animationFrameRequestId=null,this._doRelayoutChildren()},_doRelayoutChildren:function(){this.getPeerNode()&&this.getAllChildren().forEach((function(e){e.handleLayoutContainerChanged()})),this.emit("containerContentSizeChanged")},handleViewInDom:function(){this.inherited(arguments),this._updatePosition(),this._doRelayoutChildren()},contentGrowsVertically:function(){return this.widget.containsNxRows()},contentGrowsHorizontally:function(){return this.widget.containsNxColumns()},_computeMinimumSize:function(){return[this._computeMinimumLength("Column"),this._computeMinimumLength("Row")]},_computeMinimumLength:function(e){var t=this._convertSizesToPixels(e,T);return this._computeLength(e,t)},_computeFitSize:function(){return[this._computeFitLength("Column"),this._computeFitLength("Row")]},_computeFitLength:function(e){var t=this._convertSizesToPixels(e,C);return this._computeLength(e,t)},_convertSizesToPixels:function(e,t){var i="Column"===e?"ColumnWidth":"RowHeight",n=this.getPeerNode().getProperty(i),o=(n=this.widget.normalizeSizesTo1x(n)).map(t);return o=this._convertFitValues(o,i),o=n.map((function(e,t){var i=o[t];"string"==typeof e&&"x"===e[e.length-1]&&(i*=parseFloat(e.slice(0,e.length-1)));return i}))},_computeLength:function(e,t){if(!t.every((function(e){return"number"==typeof e})))throw new Error("Input sizesInPixels must contain numbers only");var i=e+"Spacing",n=this.getPeerNode().getProperty(i),o=this.widget._getSizesForView(t,n).reduce((function(e,t){return e+t}),0),r=this.getPeerNode().getProperty("Padding");o+="Column"===e?r[0]+r[2]:r[1]+r[3];var a=this.widget._getInsets();return o+="Column"===e?a.left+a.right:a.top+a.bottom},_editPropertiesAffectingFitSize:function(e){return e.concat(E)},validateMouseEventTarget:function(e){return[this.widget.canvasContents,this.widget.gridContent,this.widget.domNode].includes(e)&&!e.classList.contains("gbtScrollable-on")},_getContextMenuTargets:function(){return[this.widget.canvasContents,this.widget.gridContent]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(736)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_state:null,constructor:function(){this._state=[]},destroy:function(){this._state.forEach(o),delete this._state,this.inherited(arguments)},startChangingChanged:function(e){if(void 0===e.eventSource||void 0===e.eventName||void 0===e.changingCallback||void 0===e.changedCallback)throw new Error("Insufficient arguments to startChangingChanged");var o=t.mixin({},e,{throttledChangingCallback:n.throttle(e.changingCallback),changedTimer:null});o.changingSignal=i(e.eventSource,e.eventName,function(e,t){e.changedTimer&&clearTimeout(e.changedTimer),e.throttledChangingCallback(t),e.changedTimer=setTimeout(e.changedCallback,e.changedDelay||250,t)}.bind(null,o)),this._state.push(o)},stopChangingChanged:function(e){if(void 0===e.eventSource||void 0===e.eventName)throw new Error("Insufficient arguments to stopChangingChanged");var t=this._state.findIndex((function(t){return t.eventSource===e.eventSource&&t.eventName===e.eventName}));if(-1!==t){var i=this._state[t];this._state.splice(t,1),o(i)}}});function o(e){e.throttledChangingCallback.cancel(),e.changingSignal.remove(),e.changedTimer&&clearTimeout(e.changedTimer)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(272),i(216),i(970),i(442),i(374),i(289),i(963),i(384),i(6334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){function u(e){return"number"==typeof e&&isFinite(e)&&!isNaN(e)&&e>=0}function h(e){return"number"==typeof e&&isFinite(e)&&!isNaN(e)&&e>0}function p(e,t){if(!Array.isArray(t))throw new Error(e+" must be an Array!");if(t.some((function(e){var t=!0;if(!u(e))if("string"==typeof e&&e.length>=2){if(!("fit"===e)){var i="x"===e[e.length-1],n=parseFloat(e.slice(0,e.length-1)),o=isFinite(n)&&!isNaN(n)&&n>0;i&&o||(t=!1)}}else t=!1;return!t})))throw new Error(e+' must be an array containing either be a positive number, "fit" or a string of the form "Nx" where N is a positive number')}function f(e){var t=function(e){return e.filter((function(e){return"number"!=typeof e&&"x"===e[e.length-1]})).map((function(e){return parseFloat(e.slice(0,e.length-1))}))}(e),i=Math.min.apply(null,t);return e.map((function(e){var t;"number"==typeof e?t=e:t="x"===e[e.length-1]?parseFloat(e.slice(0,e.length-1))/i+"x":e;return t}))}function g(e,t){return e+t}function m(e){return e.map((function(e){return"number"==typeof e?0:parseFloat(e.slice(0,e.length-1))})).reduce(g,0)}function _(e){return e.map((function(e){return"number"==typeof e?e:0})).reduce(g,0)}return e([l,t,n,i,o,r,a,s,c],{baseClass:"gbtWidget gbtGrid",templateString:d,constructor:function(e){this.rowHeight=e.rowHeight||["1x","1x"],this.columnWidth=e.columnWidth||["1x","1x"],this.rowSpacing=10,this.columnSpacing=10,this.padding=[10,10,10,10],this.width=0,this.height=0},buildRendering:function(){this.inherited(arguments),this.backgroundColorNode=this.domNode},getTooltipNode:function(){return this.gridContent},getTotalHeight:function(e){if(-1===e)return this.height;for(var t=2*e-1,i=0,n=1;n<=t;++n){i+=this._getRowHeightInPixels(n)}return i+=this.padding[0],i+=this.padding[2]},_setRowHeightAttr:function(e){p("rowHeight",e);var t=this._getSizesForView(e,this.get("rowSpacing"));this._setGridDomStyle("Row",t),this._rowHeightForView=t,this._set("rowHeight",e)},_setColumnWidthAttr:function(e){p("columnWidth",e);var t=this._getSizesForView(e,this.get("columnSpacing"));this._setGridDomStyle("Column",t),this._columnWidthForView=t,this._set("columnWidth",e)},_setRowSpacingAttr:function(e){if(!u(e))throw new Error("RowSpacing must be a postive number");var t=this._getSizesForView(this.get("rowHeight"),e);this._setGridDomStyle("Row",t),this._rowHeightForView=t,this._set("rowSpacing",e)},_setColumnSpacingAttr:function(e){if(!u(e))throw new Error("ColumnSpacing must be a postive number");var t=this._getSizesForView(this.get("columnWidth"),e);this._setGridDomStyle("Column",t),this._columnWidthForView=t,this._set("columnSpacing",e)},_setPaddingAttr:function(e){if(!Array.isArray(e)||4!==e.length||!e.every(u))throw new Error("Padding must be a 1x4 array of positive numbers");this.gridContent.style.paddingTop=e[0]+"px",this.gridContent.style.paddingRight=e[1]+"px",this.gridContent.style.paddingBottom=e[2]+"px",this.gridContent.style.paddingLeft=e[3]+"px",this._set("padding",e),this._paddingForView=e},_setWidthAttr:function(e){this._set("width",e)},_setHeightAttr:function(e){this._set("height",e)},containsNxRows:function(){return this.get("rowHeight").filter((function(e){return"string"==typeof e&&"x"===e[e.length-1]})).length>0},containsNxColumns:function(){return this.get("columnWidth").filter((function(e){return"string"==typeof e&&"x"===e[e.length-1]})).length>0},convertToIndexForView:function(e,t){return Array.isArray(e)?[this.convertToIndexForView(e[0]),this._getEndIndexForView(e[0],e[1],t)]:2*e-1},_getEndIndexForView:function(e,t,i){for(var n=t,o="Row"===i?this.rowHeight:this.columnWidth,r=t;r>e&&0===o[r-1];r--)n--;return 2*n-1},_getSizesForView:function(e,t){return this._createArrayWithSpacing(e,t)},_setGridDomStyle:function(e,t){this.gridContent.style["gridTemplate"+e+"s"]=this._createCSSValueString(t),this.gridContent.style["msGrid"+e+"s"]=this._createCSSValueString(t)},_createArrayWithSpacing:function(e,t){var i=[];if(e.length>0){for(var n=e.length-1,o=0;o<n;o++)i.push(e[o]),i.push(t);i.push(e[n]),this._removeDoubleSpacing(i)}return i},_removeDoubleSpacing:function(e){for(var t=0;t<e.length-2;t+=2)0===parseFloat(e[t])&&(e[t+1]=0);if(0===parseFloat(e[e.length-1]))for(var i=e.length-2;i>=0;i-=2)if(e[i]>0){e[i]=0;break}},getCellSize:function(e,t){"number"==typeof(e=this.convertToIndexForView(e,"Row"))&&(e=[e,e]),"number"==typeof(t=this.convertToIndexForView(t,"Column"))&&(t=[t,t]);var i,n=this._getColumnWidthInPixels(t[0]);for(i=t[0]+1;i<t[1];i++)n+=this._getColumnWidthInPixels(i);t[1]>t[0]&&(n+=this._getColumnWidthInPixels(t[1]));var o=this._getRowHeightInPixels(e[0]);for(i=e[0]+1;i<e[1];i++)o+=this._getRowHeightInPixels(i);return e[1]>e[0]&&(o+=this._getRowHeightInPixels(e[1])),[n,o]},_getInsets:function(){return this._getScrollInsets()},_getColumnWidthInPixels:function(e){var t=this._columnWidthForView;if(!h(e))throw new Error("col must be a positive number");if(e>t.length)return 0;var i=t[e-1];if("number"==typeof i)return i;var n=this._getInsets(),o=this.get("width")-(n.left+n.right),r=m(t),a=_(t),s=this._paddingForView,l=o-a-(s[1]+s[3]),c=parseFloat(i.slice(0,i.length-1))/r*l;return c=Math.max(0,c)},_getRowHeightInPixels:function(e){var t=this._rowHeightForView;if(!h(e))throw new Error("row must be a positive number");if(e>t.length)return 0;var i=t[e-1];if("number"==typeof i)return i;var n=this._getInsets(),o=this.get("height")-(n.top+n.bottom),r=m(t),a=_(t),s=this._paddingForView,l=o-a-(s[0]+s[2]),c=parseFloat(i.slice(0,i.length-1))/r*l;return c=Math.max(0,c)},getColumnLeftPositionInPixelsWrtGrid:function(e){"number"==typeof(e=this.convertToIndexForView(e,"Column"))&&(e=[e,e]);var t,i=this._paddingForView[3];for(t=1;t<e[0];t++)i+=this._getColumnWidthInPixels(t);return i},getRowTopPositionInPixelsWrtGrid:function(e){"number"==typeof(e=this.convertToIndexForView(e,"Row"))&&(e=[e,e]);var t,i=this._paddingForView[0];for(t=1;t<e[0];t++)i+=this._getRowHeightInPixels(t);return i},_createCSSValueString:function(e){var t;return 0===(e=(t=e).some((function(e){var t="string"==typeof e&&"x"===e[e.length-1];if(t)var i=parseFloat(e.slice(0,e.length-1))<1;return t&&i}))?f(t):t).length?"none":e.map((function(e){var t=e;if("number"==typeof e)t=e+"px";else if("fit"===e)t="minmax(min-content, max-content)";else{t="minmax(0px, "+parseFloat(e.slice(0,e.length-1))+"fr)"}return t})).join(" ")},normalizeSizesTo1x:function(e){return f(e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="${baseClass} gbt-userSelectNone" data-tag="${dataTag}" data-dojo-attach-point="scrollableNode">\n\t<div class="scrollableContentsNode" data-dojo-attach-point="scrollableContents">\n \t<div class="gbtGridContents gbt-userSelectNone" data-dojo-attach-point="gridContent, containerNode">\n \t\t<div class="canvasNode" data-dojo-attach-point="canvasContents"></div>\n \t</div>\n\t</div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(211),i(230),i(440),i(480),i(971),i(737),i(1550),i(592),i(441),i(481),i(6336),i(298),i(295),i(840),i(482)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e([r,a,s,l,c,d,u,h,f,g,m,_,o],{constructor:function(){this.own(t(this,"scrollableStateChanged",this._handleScrollableStateChanged.bind(this))),this._listenersForHeightChange={}},_createAccordionWidget:function(){return new p({dataTag:this.getPeerNodeId()})},createView:function(e){this.inherited(arguments),this.widget=this._createAccordionWidget(),e.parentDijit?e.parentDijit.addChild(this.widget):n.place(this.widget.domNode,e.parentDomNode),this.widget.startup(),this.startEmittingCommonResizeEvent(),this.setPositionInPixels([0,0,1,1]),this._setProperties(this.getPeerNode().getProperties()),this.enableScrolling({noAutoUpdateScrollableArea:!0}),this.own(t(this.widget.domNode,"widthchanged",this._handleWidthChanged.bind(this))),this.own(t(this.widget.domNode,"heightchanged",this._handleHeightChanged.bind(this))),this.own(t(this.getPeerNode(),"childAdded",this._handleAccordionPanelAdded.bind(this)),t(this.getPeerNode(),"childRemoved",this._handleAccordionPanelRemoved.bind(this))),this.addMouseEventListeners(this.widget.domNode),this.emit("viewReady")},destroy:function(){this.stopEmittingCommonResizeEvent(),this.inherited(arguments)},isChildRelevantForFitSize:function(e){return!0},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){var e=0,t=0;return this.getPeerNode().getChildren().forEach((function(i){var n=i.getController().getFitSize(),o=n[0],r=n[1];o>e&&(e=o),t+=r})),[e,t]},_handleWidthChanged:function(){this._updateChildrenWidth()},_handleHeightChanged:function(){this._updateLocationOfAllAccordionPanels()},_handleScrollableStateChanged:function(){this._updateChildrenWidth()},_updateChildrenWidth:function(){this.getPeerNode().getChildren().forEach((function(e){e.getController().updateAccordionPanelWidth()}),this),this.updateScrollableArea()},_getContextMenuTargets:function(){return[this.widget.domNode]},useTopDownScrollableContentStrategy:function(){return!0},_handleAccordionPanelAdded:function(e){var t=e.data.child;void 0!==t.getController&&t.getController()&&(this._listenersForHeightChange[t.getId()]=t.getController().widget.watch("height",this._updateLocationOfSubsequentAccordionPanels.bind(this,t))),this._updateLocationOfAccordionPanel(t)},_handleAccordionPanelRemoved:function(e){var t=e.data.child;this._listenersForHeightChange[t.getId()].unwatch(),delete this._listenersForHeightChange[t.getId()],this._updateLocationOfAllAccordionPanels()},_updateLocationOfAllAccordionPanels:function(){for(var e=this.getPeerNode().getChildren(),t=0;t<e.length;t++)this._updateLocationOfAccordionPanelByIndex(t);this.updateScrollableArea()},_updateLocationOfSubsequentAccordionPanels:function(e){var t=this.getPeerNode().getChildren(),i=t.map((function(e){return e.getId()})).indexOf(e.getId());if(-1!==i){for(var n=i+1;n<t.length;n++)this._updateLocationOfAccordionPanelByIndex(n);this.updateScrollableArea()}},_updateLocationOfAccordionPanel:function(e){var t=this.getPeerNode().getChildren().map((function(e){return e.getId()})).indexOf(e.getId());this._updateLocationOfAccordionPanelByIndex(t)},_updateLocationOfAccordionPanelByIndex:function(e){var t,i=this.getPositionInPixels()[3],n=this.getPeerNode().getChildren();0===e?t=i:t=n[e-1].getController().getPositionInPixels()[1];var o=n[e],r=o.getController().widget,a=r.get("height"),s=[0,t-a,r.get("width"),a];o.getController().setPositionInPixels(s)},validateMouseEventTarget:function(e){return[this.widget.domNode,this.widget.containerNode].includes(e)&&!e.classList.contains("gbtScrollable-on")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(215),i(272),i(216),i(442),i(289),i(970),i(6337)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([i,o,n,r,a,s],{baseClass:"gbtWidget gbtAccordion",templateString:l,constructor:function(){this.width=0,this.height=0},_setWidthAttr:function(e){e!==this.get("width")&&(this.domNode.style.width=e+"px",this._set("width",e),t.emit(this.domNode,"widthchanged",{newWidth:e}))},_setHeightAttr:function(e){e!==this.get("height")&&(this.domNode.style.height=e+"px",this._set("height",e),t.emit(this.domNode,"heightchanged",{newHeight:e}))},_getInsets:function(){return this._getScrollInsets()}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="${baseClass} gbt-userSelectNone" data-tag="${dataTag}" data-dojo-attach-point="scrollableNode">\n <div class="scrollableContentsNode" data-dojo-attach-point="scrollableContents">\n <div class="gbtAccordionContent" data-dojo-attach-point="containerNode, accordionContent"></div>\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(211),i(230),i(440),i(480),i(971),i(737),i(592),i(441),i(481),i(6339),i(287),i(298),i(295),i(840),i(482),i(1148)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){return e([r,a,s,l,c,d,u,f,g,m,_,v,o],{_createAccordionWidget:function(){return new h({dataTag:this.getPeerNodeId()})},createView:function(e){this.inherited(arguments),this.widget=this._createAccordionWidget(),e.parentDijit?e.parentDijit.addChild(this.widget):n.place(this.widget.domNode,e.parentDomNode),this.widget.startup(),this.startEmittingCommonResizeEvent(),this.widget.on("collapsedchanged",this._handleCollapsedChanged.bind(this)),this._setProperties(this.getPeerNode().getProperties()),this.updateAccordionPanelWidth(),this.updateAccordionPanelHeight(),this.own(t(this,"fitsizechanged",this.updateAccordionPanelHeight.bind(this))),this.addMouseEventListeners(this.widget.domNode),this.emit("viewReady")},destroy:function(){this.stopEmittingCommonResizeEvent(),this.inherited(arguments)},_Title:function(e){this.widget.set("title",e)},_Collapsed:function(e){this.widget.set("collapsed",e)},_handleCollapsedChanged:function(e){var t={Collapsed:e.newValue};this.handleUserInteraction("CollapsedChanged",t,t),this.recomputeFitSize(),e.stopPropagation()},_computeMinimumSize:function(){return[0,0]},_computeFitSize:function(){var e=this.getPeerNode().getProperty("Title"),t=p.getWidgetFontStyleMap(this.getPeerNode()),i=p.getTextPosition(e,t).w+this.widget.titleIndentation,n=this.widget.titleHeight;if(!this.getPeerNode().getProperty("Collapsed")){var o=this.computeRelevantContentFitSize();n+=o[1],i=Math.max(o[0]+this.widget.titleIndentation,i)}return[i,n]},updateAccordionPanelWidth:function(){var e=this.getParentController().widget,t=e.get("width"),i=e._getInsets(),n=t-(i.left+i.right),o=this.getPositionInPixels(),r=[o[0],o[1],n,o[3]];this.setPositionInPixels(r)},updateAccordionPanelHeight:function(){var e=this.getFitSize()[1],t=this.getPositionInPixels(),i=e-t[3],n=[t[0],t[1]-i,t[2],e];this.setPositionInPixels(n)},_getInnerPositionInPixels:function(){var e=this.widget._getInsets(),t=this._getOuterPositionInPixels();return this.getInnerFromOuter(t,e)},_editPropertiesAffectingFitSize:function(e){return e.concat(["Title","Collapsed"])},_getContextMenuTargets:function(){return[this.widget.buttonNode,this.widget.headerNode,this.widget.titleNode,this.widget.gutterNode,this.widget.containerNode]},validateMouseEventTarget:function(e){return this._getContextMenuTargets().includes(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(215),i(272),i(216),i(358),i(442),i(289),i(6340)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([n,r,o,a,s,l],{baseClass:"gbtWidget gbtAccordionPanel",templateString:c,HEADER_VERTICAL_PADDING:10,BUTTON_PADDING_RIGHT:5,constructor:function(e){this.title=e.title||"Accordion Panel",this.collapsed=e.collapsed||!1,this.width=0,this.height=0,this.titleHeight=22,this.titleIndentation=13,this.arrowHeight=4},postCreate:function(){this.inherited(arguments),this.set("fontWeight","bold"),this.titleNode.style.lineHeight=1,this._onFontSizeChange(),this.buttonNode.addEventListener("click",this._toggleCollapsedState.bind(this)),this.titleNode.addEventListener("click",this._toggleCollapsedState.bind(this)),this.own(this.watch("fontSize",this._onFontSizeChange.bind(this)),this.watch("fontStyle",this._onFontSizeChange.bind(this)))},_toggleCollapsedState:function(){var e=this.get("collapsed"),t=!e;this.set("collapsed",t),this.emit("collapsedchanged",{oldValue:e,newValue:t})},_setTitleAttr:function(e){this.titleNode.textContent=e,this._set("title",e)},_setCollapsedAttr:function(e){this.domNode.classList.toggle("collapsed",e),this._set("collapsed",e),this._updateDomHeight()},_setWidthAttr:function(e){e!==this.get("width")&&this._set("width",e)},_setHeightAttr:function(e){e!==this.get("height")&&(this._set("height",e),this._updateDomHeight())},_updateDomHeight:function(){var e=this.get("collapsed"),t=this.get("height");this.containerNode.style.height=e?"0px":t-this.titleHeight+"px",this.domNode.style.height=e?this.titleHeight+"px":"auto"},_getInsets:function(){return{left:this.titleIndentation,right:0,top:this.titleHeight,bottom:0}},_getNodeToApplyFontProperties:function(){return this.titleNode},_onFontSizeChange:function(){var e=this.get("fontSize");this._updateArrowSize(e);var t=this.get("arrowHeight");this.titleHeight=this.HEADER_VERTICAL_PADDING+e,this.titleIndentation=2*t+this.BUTTON_PADDING_RIGHT,this._updateDomHeight()},_updateArrowSize:function(e){var t=Math.round(1/3*e);this.buttonNode.children[0].style.borderWidth=t+"px "+t+"px 0",this.arrowHeight=t}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="${baseClass} gbt-userSelectNone" data-tag="${dataTag}"\n ><div data-dojo-attach-point="buttonNode" class="gbtAccordionButton"><div class="gbtAccordionArrow"></div></div\n ><div data-dojo-attach-point="headerNode" class="gbtAccordionTitleWrapper"><div data-dojo-attach-point="titleNode" class="gbtAccordionTitle"></div></div\n ><div data-dojo-attach-point="gutterNode" class="gbtAccordionGutter"></div\n ><div data-dojo-attach-point="containerNode" class="gbtAccordionBody"></div\n></div>\n'},function(e,t,i){var n,o;n=[i(203),i(204),i(2285),i(6342),i(6348),i(6354),i(6357),i(1162),i(6358)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c={Horizontal:r,Vertical:a};return e([i],{constructor:function(e){var t=e.getInnerPositionInPixels(),i=[t[2],t[3]];this.lastContainerSize=i,this.initialContainerSize=i,this.graphRepresentation={},this.isReadyToResize={},this._initialize(),this.edgeFactory=new o(2)},_initialize:function(){for(var e in this._repositionableChildren=null,c)this._initializeForDirection(e)},_initializeForDirection:function(e){this.direction=new c[e];var t=this.lastContainerSize[this.direction.getSizeIndex()],i=this._getContainerSizeNeededToHoldAllComponents()[this.direction.getSizeIndex()];i<=t+1?this.isReadyToResize[e]=!0:(this.isReadyToResize[e]=!1,t=i+10),this.initialContainerSize[this.direction.getSizeIndex()]=t,delete this.graphRepresentation[e]},_updateLastContainerSize:function(e){var t=this.lastContainerSize;t[0]===e[0]&&t[1]===e[1]||(this.lastContainerSize=e.slice())},handleSizeChanged:function(e){this.hasContentChanged()&&(this._handleContentChanged(),this.resetContentChanged()),this._updateLastContainerSize(e);var t={Horizontal:e[0]-this.initialContainerSize[0],Vertical:e[1]-this.initialContainerSize[1]};for(var i in c)this.isReadyToResize[i]||t[i]>=0&&(this.isReadyToResize[i]=!0),this.isReadyToResize[i]&&(this.graphRepresentation[i]||(this.graphRepresentation[i]=this._createGraphRepresentationForDirection(i)),this.graphRepresentation[i].graph.relocateVertices(t[i]));this._determineAndSetNewPosition()},_handleContentChanged:function(){this._initialize()},_createGraphRepresentationForDirection:function(e){this.direction=new c[e];var t=this._createVertices(),i=new n;i.startVertex=t[this.controller.getId()].Start.vertex,i.endVertex=t[this.controller.getId()].End.vertex;var o,r=Object.getOwnPropertyNames(t);for(o=0;o<r.length;o++)for(var a in t[r[o]])i.addVertex(t[r[o]][a].vertex);var s=this.getRepositionableChildren(),l=this.direction.createSeparatorVertices(s,this.initialContainerSize);return i.addVertices(l),this._createComponentEdges(i,t,e),this._createInBetweenComponentEdges(i,t,l),this._createComponentContainerEdges(i,t,l),this._simplifyGraphWithAlignment(i,t),{graph:i,componentToVertices:t}},_createVertices:function(){var e={},i=this.direction.createContainerVertices(this.controller,this.initialContainerSize);t.mixin(e,i);var n=this.direction.createComponentVertices(this.getRepositionableChildren(),this.initialContainerSize);return t.mixin(e,n),e},_createComponentEdges:function(e,t,i){var n,o,r,a,s,l=this.getRepositionableChildren();for(n=0;n<l.length;n++){var c={componentController:o=l[n]};void 0!==t[o.getId()].OuterStart&&(r=t[o.getId()].OuterStart.vertex,s=t[o.getId()].Start.vertex,c.innerOrOuter="outer",c.outerOrder="first",a=this.edgeFactory.createEdge(r,s,c,i),e.addEdge(a)),r=t[o.getId()].Start.vertex,s=t[o.getId()].Center.vertex,c.innerOrOuter="inner",a=this.edgeFactory.createEdge(r,s,c,i),e.addEdge(a),r=t[o.getId()].Center.vertex,s=t[o.getId()].End.vertex,c.innerOrOuter="inner",a=this.edgeFactory.createEdge(r,s,c,i),e.addEdge(a),void 0!==t[o.getId()].OuterEnd&&(r=t[o.getId()].End.vertex,s=t[o.getId()].OuterEnd.vertex,c.innerOrOuter="outer",c.outerOrder="last",a=this.edgeFactory.createEdge(r,s,c,i),e.addEdge(a))}},_createInBetweenComponentEdges:function(e,t,i){var n,o;this.getRepositionableChildren().forEach((function(r){this._getDirectNeighbors(r).forEach((function(a){n=void 0!==t[a.getId()].OuterEnd?t[a.getId()].OuterEnd.vertex:t[a.getId()].End.vertex,o=void 0!==t[r.getId()].OuterStart?t[r.getId()].OuterStart.vertex:t[r.getId()].Start.vertex,this._createEdges(n,o,e,i)}),this)}),this)},_createComponentContainerEdges:function(e,t,i){var n,o,r=t[this.controller.getId()].Start.vertex,a=t[this.controller.getId()].End.vertex;for(n in e.vertices)e.vertices.hasOwnProperty(n)&&(0===(o=e.vertices[n]).neighbors.backwardEdges.length&&o.id!==r.id&&this._createEdges(r,o,e,i),0===o.neighbors.forwardEdges.length&&o.id!==a.id&&this._createEdges(o,a,e,i))},_createEdges:function(e,t,i,n){var o,r=n.filter((function(i){return e.getOldLocation()<i.getOldLocation()&&i.getOldLocation()<t.getOldLocation()}));r.length>0?(o=this.edgeFactory.createEdge(e,r[0]),i.addEdge(o),o=this.edgeFactory.createEdge(r[r.length-1],t),i.addEdge(o)):(o=this.edgeFactory.createEdge(e,t),i.addEdge(o))},_simplifyGraphWithAlignment:function(e,t){var i=this._findEquivalentVertices(e,t);e.mergeVertices(i);var n,o,r,a,s,l,c=Object.keys(t);for(n=0;n<c.length;n++)for(r=t[c[n]],a=Object.keys(r),o=0;o<a.length;o++)i[(s=r[a[o]].vertex).id]&&(r[a[o]].vertex=i[s.id],l=s.getOldLocation()-i[s.id].getOldLocation(),r[a[o]].slack=l)},_findEquivalentVertices:function(e,t){var i,n={},o=this._getComponentIds(t),r={Start:2,Center:1,End:2},a=function(i){for(var a=o.slice(0);a.length>0;){var s=a[0];a.splice(0,1);var l=a.slice(0);if(void 0!==t[s][i]){var c,d=t[s][i].vertex;for(c=l.length-1;c>=0;c--){var u=l[c];if(void 0!==t[u][i]){var h=t[u][i].vertex;if(Math.abs(d.getOldLocation()-h.getOldLocation())<=r[i])e.getConnectionDegree(d,h)<=1&&(n[h.id]=d,a.splice(c,1))}}}}},s=["Start","Center","End"];for(i=0;i<s.length;i++)a(s[i]);return n},_getComponentIds:function(e){var t=Object.keys(e);return this._sortComponentIds(t),t},_sortComponentIds:function(e){var t=this.controller.getId(),i=e.indexOf(t);e.splice(i,1),e.splice(0,0,t)},_determineTolerance:function(e,t){var i=e.getNeighborMarginTolerance(),n=t.getNeighborMarginTolerance();return Math.max(i,n)},_getDirectNeighbors:function(e){var t=this.direction.inDirectNeighborhood,i=[];this.getRepositionableChildren().forEach((function(n){var o=this._determineTolerance(e,n);e.getId()!==n.getId()&&t(e,n,o)&&i.push(n)}),this);var n=[];return i.forEach((function(e){var o,r=!1;for(o=0;o<i.length;o++){var a=this._determineTolerance(i[o],e);if(i[o].getId()!==e.getId()&&t(i[o],e,a)){r=!0;break}}r||n.push(e)}),this),n},_determineAndSetNewPosition:function(){this.getRepositionableChildren().forEach((function(e){var t=l.getNewPosition(e,this.controller,this.graphRepresentation);e.setActivePositionInPixels(t,this.lastContainerSize)}),this)},getRepositionableChildren:function(){return null===this._repositionableChildren&&(this._repositionableChildren=s.getRepositionableChildren(this.controller)),this._repositionableChildren},_getContainerSizeNeededToHoldAllComponents:function(){var e,t,i,n,o=[0,0],r=this.getRepositionableChildren();for(e=0;e<r.length;e++)i=(t=r[e].getOuterPositionInPixels())[0]+t[2],n=t[1]+t[3],o[0]=Math.max(i,o[0]),o[1]=Math.max(n,o[1]);return o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6343),i(6344),i(6346),i(6347)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{constructor:function(){this.startVertex={},this.endVertex={},this._vertexRelocatorStrategy=new i(this),this._lastOffset=0},relocateVertices:function(e){this._updateStrategy(e),this._vertexRelocatorStrategy.relocateVertices(e)},_updateStrategy:function(e){e>0&&this._lastOffset<=0?this._vertexRelocatorStrategy=new i(this):e<0&&this._lastOffset>=0&&(this._vertexRelocatorStrategy=new n(this)),this._lastOffset=e},resetVertices:function(){Object.keys(this.vertices).forEach((function(e){this.vertices[e].reset()}),this)},revertVerticesToInitial:function(){Object.keys(this.vertices).forEach((function(e){this.vertices[e].revertToInitial()}),this)},mergeVertices:function(e){this.inherited(arguments),void 0!==e[this.startVertex.id]&&(this.startVertex=e[this.startVertex.id]),void 0!==e[this.endVertex.id]&&(this.endVertex=e[this.endVertex.id])},getGrowthPower:function(){return o.getGrowthPower(this)},getShrinkagePower:function(){return o.getShrinkagePower(this)},getMinimumDistance:function(){return o.getMinimumDistance(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){function t(e,t){var i={};return Object.keys(e.vertices).forEach((function(e){i[e]={visited:!1,degree:-1}}),this),i[t.id].visited=!0,i[t.id].degree=0,i}function i(e,t,n,o,r){r||0===e.neighbors[n].length||e.neighbors[n].forEach((function(a){var s=a.toVertex.id===e.id?a.fromVertex:a.toVertex;o[s.id].visited||(o[s.id].visited=!0,o[s.id].degree=o[e.id].degree+1,s.id===t.id?r=!0:i(s,t,n,o,r))}),this)}return e(null,{constructor:function(){this.vertices={}},addVertices:function(e){e.forEach((function(e){this.addVertex(e)}),this)},addVertex:function(e){void 0===this.vertices[e.id]&&(this.vertices[e.id]=e)},removeVertex:function(e){void 0!==this.vertices[e.id]&&(e.neighbors.backwardEdges.forEach((function(t){var i=t.fromVertex,n=i.neighbors.forwardEdges.map((function(e){return e.toVertex.id})).indexOf(e.id);i.neighbors.forwardEdges.splice(n,1)})),e.neighbors.forwardEdges.forEach((function(t){var i=t.toVertex,n=i.neighbors.backwardEdges.map((function(e){return e.fromVertex.id})).indexOf(e.id);i.neighbors.backwardEdges.splice(n,1)})),delete this.vertices[e.id])},addEdge:function(e){var t=e.fromVertex,i=e.toVertex;if(void 0===this.vertices[t.id])throw new Error("fromVertex is not in the graph");if(void 0===this.vertices[i.id])throw new Error("toVertex is not in the graph");if(t.id!==i.id){var n,o=t.neighbors.forwardEdges,r=!1;for(n=0;n<o.length;n++)if(o[n].isEquivalent(e)){r=!0;break}r||(t.neighbors.forwardEdges.push(e),i.neighbors.backwardEdges.push(e))}},mergeVertices:function(e){var t,i,n,o,r=Object.keys(e);for(t=0;t<r.length;t++)i=r[t],n=this.vertices[i],(o=e[i]).id!==n.id&&(this.transferEdges(n,o),this.removeVertex(n))},transferEdges:function(e,t){e.neighbors.backwardEdges.forEach((function(e){var i=e.clone();i.toVertex=t,this.addEdge(i)}),this),e.neighbors.forwardEdges.forEach((function(e){var i=e.clone();i.fromVertex=t,this.addEdge(i)}),this)},getConnectionDegree:function(e,n){if(e.id===n.id)return 0;var o=t(this,e);return i(e,n,"forwardEdges",o,!1),-1!==o[n.id].degree||i(e,n,"backwardEdges",o=t(this,e),!1),o[n.id].degree}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(741),i(2286),i(2287)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_getPathIterator:function(){return new n(this._graph,(function(e){return e.getGrowthPriority()}))},_determineNewLocationFunctions:function(){for(var e,t=[],i=[],n=this._getPathIterator();n.hasNext();)e=n.getNext(),i=this._relocateVerticesOnPath(e),Array.prototype.push.apply(t,i);i=this._relocateVerticesFromComponentNeighbors(),Array.prototype.push.apply(t,i),i=this._relocateVerticesFromFixedEdges(t),Array.prototype.push.apply(t,i),i=this._relocateVerticesFromAllNeighbors(),Array.prototype.push.apply(t,i),this._relocatedVerticesOrder=t},_relocateVerticesOnPath:function(e){var t=[];if(0!==e.length){var i=function(e,t,i,n){e.toVertex.computeNewLocation=function(){var o,r=i.getNewLocation()-t.getNewLocation()-(i.getOldLocation()-t.getOldLocation());return o=0!==n?e.getGrowthPower()/n*r:0,e.fromVertex.getNewLocation()+e.getOldDistance()+o}},n=[],o=!1;return e.forEach((function(e){if(e.fromVertex.isProcessed()?n=[e]:(n.push(e),e.toVertex.isProcessed()&&(o=!0)),o){var r,a,s,l=0,c=n.length;for(a=0;a<c;a++)l+=n[a].getGrowthPower();var d=n[0].fromVertex,u=n[c-1].toVertex;for(r=0;r<n.length;r++)(s=n[r]).toVertex.isProcessed()||(i(s,d,u,l),s.toVertex.setNewLocation(s.toVertex.computeNewLocation()),t.push(s.toVertex.id));n=[],o=!1}}),this),t}},_relocateVerticesFromComponentNeighbors:function(){var e,i,n,o=function(e){e.toVertex.computeNewLocation=function(){return e.fromVertex.getNewLocation()+e.getOldDistance()}},r=Object.keys(this._graph.vertices),a=[];for(e=0;e<r.length;e++)(i=this._graph.vertices[r[e]]).isProcessed()||0===i.findForwardEdges((function(e){if(e.toVertex.isProcessed()&&e.isDistanceLocked())return!0})).length&&(n=i.findBackwardEdgeToMaxLocation((function(e){return e.fromVertex.getType()===t.COMPONENT})))&&(o(n),i.setNewLocation(i.computeNewLocation()),a.push(i.id));if(a.length>0){var s=this._relocateVerticesFromComponentNeighbors();Array.prototype.push.apply(a,s)}return a},_relocateVerticesFromFixedEdges:function(e){var t,i,n,o=[],r=[];for(t=0;t<e.length;t++)i=e[t],(r=(n=this._graph.vertices[i]).determineNewLocationOfFixedBackwardNeighbors()).length>0&&Array.prototype.push.apply(o,r),(r=n.determineNewLocationOfFixedForwardNeighbors()).length>0&&Array.prototype.push.apply(o,r);if(o.length>0){var a=this._relocateVerticesFromFixedEdges(o);Array.prototype.push.apply(o,a)}return o},_relocateVerticesFromAllNeighbors:function(){var e,t,i,n=function(e){e.toVertex.computeNewLocation=function(){return e.fromVertex.getNewLocation()+e.getOldDistance()}},o=Object.keys(this._graph.vertices),r=[];for(e=0;e<o.length;e++)(t=this._graph.vertices[o[e]]).isProcessed()||(i=t.findBackwardEdgeToMaxLocation())&&(n(i),t.setNewLocation(t.computeNewLocation()),r.push(t.id));if(r.length>0){var a=this._relocateVerticesFromAllNeighbors();Array.prototype.push.apply(r,a)}return r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){this.graph=e},hasNext:function(){throw new Error("hasNext should be implemented by the subclass")},getNext:function(){throw new Error("getNext should be implemented by the subclass")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2286),i(2287)],o=i.dj.d(n,(function(e,t,i){function n(e){return e.reduce((function(e,t){return e+t}))}function o(e){return function(){var t=e.computeNewDistance();return e.fromVertex.getNewLocation()+t}}function r(e,t){return function(){for(var i=t[0].fromVertex,o=t[t.length-1].toVertex,r=o.getNewLocation()-i.getNewLocation()-(o.getOldLocation()-i.getOldLocation()),a=t.map((function(e){return e.getShrinkagePower()})),s=n(a),l=t.map((function(e){return e.getOldDistance()})),c=0;Math.abs(r)>.5&&0!==s&&0!==a[e]&&c<200;){c++;for(var d=0,u=0;u<t.length;u++){var h,p=t[u];h=0===a[u]?0:(p.getMinimumDistance()-l[u])*s/a[u]/r;var f=a[u]/s*Math.min(1,h)*r;l[u]=l[u]+f,d+=f,a[u]=h<=1?0:a[u]}s=n(a),r-=d}return l[e]}}return e([t],{constructor:function(e){this._minOffset=this._computeMinimumOffset()},_getPathIterator:function(){return new i(this._graph,(function(e){return e.getShrinkagePriority()}))},relocateVertices:function(e){Math.abs(e)<=.5?this._graph.revertVerticesToInitial():(e<this._minOffset&&(e=this._minOffset),this.inherited(arguments))},_determineNewLocationFunctions:function(){for(var e,t,i=this._getPathIterator();i.hasNext();)e=i.getNext(),this._relocateVerticesOnPath(e);for(;this._verticesToRelocate.length>0;)t=this._verticesToRelocate[0],e=this._findPathThroughVertex(t),this._relocateVerticesOnPath(e)},_relocateVerticesOnPath:function(e){if(0!==e.length)for(var t=[],i=!1,n=0;n<e.length;n++){var o=e[n];o.fromVertex.isProcessed()?t=[o]:(t.push(o),o.toVertex.isProcessed()&&(i=!0)),i&&(this._relocateVerticesOnPathSegment(t),t=[],i=!1)}},_relocateVerticesOnPathSegment:function(e){for(var t=0;t<e.length;t++){var i=e[t];i.computeNewDistance=r(t,e)}for(var n=0;n<e.length;n++)(i=e[n]).toVertex.isProcessed()||(i.toVertex.computeNewLocation=o(i),i.toVertex.setNewLocation(i.toVertex.computeNewLocation()),this._markVertexAsRelocated(i.toVertex.id))},_findPathThroughVertex:function(e){for(var t,i,n=this._graph.vertices[e],o=[],r=n;r.id!==this._graph.startVertex.id;){var a=r.neighbors.backwardEdges;for(t=0;t<a.length;t++){if(!(i=a[t]).fromVertex.isProcessed()){o.splice(0,0,i);break}t===a.length-1&&o.splice(0,0,i)}r=i.fromVertex}for(r=n;r.id!==this._graph.endVertex.id;){var s=r.neighbors.forwardEdges;for(t=0;t<s.length;t++){if(!(i=s[t]).toVertex.isProcessed()){o.splice(o.length,0,i);break}t===s.length-1&&o.splice(o.length,0,i)}r=i.toVertex}return o},_computeMinimumOffset:function(){return this._graph.getMinimumDistance()-(this._graph.endVertex.getOldLocation()-this._graph.startVertex.getOldLocation())},_markVertexAsRelocated:function(e){this._relocatedVerticesOrder.push(e);var t=this._verticesToRelocate.indexOf(e);this._verticesToRelocate.splice(t,1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){function e(e,t){return t>e}function t(t,i){var n=function(e){var t={};return Object.keys(e.vertices).forEach((function(e){t[e]={cumMeasure:Number.NEGATIVE_INFINITY}}),this),t[e.startVertex.id].cumMeasure=0,t}(t);return function e(t,i,n,o){0!==t.neighbors.forwardEdges.length&&t.neighbors.forwardEdges.forEach((function(r){var a=r.toVertex,s=i[t.id].cumMeasure+n(r),l=i[a.id].cumMeasure;o(l,s)&&(i[a.id].cumMeasure=s,e(a,i,n,o))}),this)}(t.startVertex,n,i,e),n[t.endVertex.id].cumMeasure}return{getMinimumDistance:function(e){return t(e,(function(e){return e.getMinimumDistance()}))},getGrowthPower:function(e){return t(e,(function(e){return e.getGrowthPower()}))},getShrinkagePower:function(e){return t(e,(function(e){return e.getShrinkagePower()}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6349),i(6351),i(6352),i(6353),i(1162),i(2284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{constructor:function(e){this.numEdgesPerComponent=e},createEdge:function(e,t,i,n){var r;if(2===arguments.length)r=new o(e,t);else{if(void 0===i.componentController)throw new Error("componentInfo expected to have field componentController");r=i.componentController.isContainer()?this._createContainerEdge(e,t,i,n):this._createComponentEdge(e,t,i,n)}return r},_createContainerEdge:function(e,t,o,r){var a;if("inner"===o.innerOrOuter.toLowerCase()){var s=this._getMeasuresForContainer(o.componentController,r);a=new i(e,t,s.growthPower,s.shrinkagePower,s.minimumDistance)}else{if(o.componentController.shouldInsetsResize()[r.toLowerCase()])throw new Error("unhandled case of container with resizable outer art");a=new n(e,t)}return a},_createComponentEdge:function(e,i,o,a){var s,l,c;if("inner"===o.innerOrOuter.toLowerCase())if(r.shouldComponentGrow(o.componentController,a)){l=o.componentController.getMinimumSize();var d=(c="horizontal"===a.toLowerCase()?l[0]:l[1])/this.numEdgesPerComponent;s=new t(e,i,d)}else s=new n(e,i);else o.componentController.shouldInsetsResize()[a.toLowerCase()]?(l=o.componentController.getMinimumInsets()[a.toLowerCase()],c="first"===o.outerOrder.toLowerCase()?void 0!==l.left?l.left:l.top:void 0!==l.right?l.right:l.bottom,s=new t(e,i,c)):s=new n(e,i);return s},_getMeasuresForContainer:function(e,t){var i=a.createLayout(e,"AutoLayout")._createGraphRepresentationForDirection(t).graph,n=i.getGrowthPower(),o=i.getShrinkagePower(),r=i.getMinimumDistance();return{growthPower:n/this.numEdgesPerComponent,shrinkagePower:o/this.numEdgesPerComponent,minimumDistance:r/this.numEdgesPerComponent}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1184)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i){this._growthPower=this.getOldDistance(),this._shrinkagePower=this.getOldDistance(),this._minimumDistance=i},isDistanceLocked:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t){this.fromVertex=e,this.toVertex=t},clone:function(){var e=this.fromVertex,i=this.toVertex,n=new this.constructor(e,i);return t.mixin(n,this),n},isEquivalent:function(e){var t=e.fromVertex.id===this.fromVertex.id,i=e.toVertex.id===this.toVertex.id,n=e.constructor===this.constructor;return t&&i&&n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1184)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i,n,o){this._growthPower=i,this._shrinkagePower=n,this._minimumDistance=o},isDistanceLocked:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1184)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){this._growthPower=0,this._shrinkagePower=0,this._minimumDistance=this.getOldDistance()},isDistanceLocked:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1184)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){this._growthPower=0,this._shrinkagePower=5*this.getOldDistance(),this._minimumDistance=5},isDistanceLocked:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2288),i(741)],o=i.dj.d(n,(function(e,t,i){return e([t],{getSizeIndex:function(){return 0},createContainerVertices:function(e,t){var n={},o={iw:t[0],ow:t[0],ih:t[1],oh:t[1]},r=e.getDebugId(),a=this._createVertex({oldLocation:0,type:i.CONTAINER,id:r+"_start"}),s=this._createVertex({oldLocation:o.iw,type:i.CONTAINER,id:r+"_end"});return n[e.getId()]={Start:{vertex:a,slack:0},End:{vertex:s,slack:0}},n},createComponentVertices:function(e,t){var n={};return e.forEach((function(e){var t=e.getActivePositionInPixels(),o=e.getDebugId(),r=this._createVertex({oldLocation:t[0],type:i.COMPONENT,id:o+"_start"}),a=this._createVertex({oldLocation:t[0]+t[2]/2,type:i.COMPONENT,id:o+"_center"}),s=this._createVertex({oldLocation:t[0]+t[2],type:i.COMPONENT,id:o+"_end"});if(void 0===e.getId())throw new Error("childController getId() should not be undefined");n[e.getId()]={Start:{vertex:r,slack:0},Center:{vertex:a,slack:0},End:{vertex:s,slack:0}};var l=e.getOuterPositionInPixels();if(l[2]!==t[2]){var c=this._createVertex({oldLocation:l[0],type:i.COMPONENT,id:o+"_prestart"}),d=this._createVertex({oldLocation:l[0]+l[2],type:i.COMPONENT,id:o+"_postend"});n[e.getId()].OuterStart={vertex:c,slack:0},n[e.getId()].OuterEnd={vertex:d,slack:0}}}),this),n},inDirectNeighborhood:function(e,t,i){var n=e.getInnerPositionInPixels(),o=e.getOuterPositionInPixels(),r=n[0],a=o[1],s=o[3],l=t.getInnerPositionInPixels(),c=t.getOuterPositionInPixels(),d=l[0],u=l[2],h=c[1],p=c[3];return d+u<=r+i&&h<=a+s&&h+p>=a},_getComponentProjection:function(e,t){var i=Math.ceil(t[0])+1,n=Array.apply(null,new Array(i)).map(Number.prototype.valueOf,1);return e.forEach((function(e){var t,i=e.getOuterPositionInPixels(),o=Math.floor(i[0]),r=Math.ceil(i[0]+i[2]);for(t=o;t<=r;t++)n[t]=0})),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6356),i(741)],o=i.dj.d(n,(function(e,t,i){return e([t],{_newLocation:-1,_processed:!1,_type:null,constructor:function(e){this._oldLocation=e.oldLocation,this._validateType(e.type),this._type=e.type,this.computeNewLocation=function(){throw new Error("computeNewLocation has not been defined for this vertex")}},getOldLocation:function(){return this._oldLocation},setNewLocation:function(e){this._newLocation=e,this._processed=!0},getNewLocation:function(){return this._newLocation},isProcessed:function(){return this._processed},_validateType:function(e){if(e!==i.COMPONENT&&e!==i.CONTAINER&&e!==i.SEPARATOR)throw new Error("Invalid vertex type")},getType:function(){return this._type},reset:function(){this._newLocation=-1,this._processed=!1},revertToInitial:function(){this.setNewLocation(this.getOldLocation())},findBackwardEdgeToMaxLocation:function(e){var t=this.neighbors.backwardEdges;e&&(t=t.filter(e));var i,n=Number.NEGATIVE_INFINITY;i=null;var o=!0;if(t.forEach((function(e){e.fromVertex.isProcessed()||(o=!1),e.fromVertex.isProcessed()&&e.fromVertex.getNewLocation()>n&&(i=e,n=e.fromVertex.getNewLocation())})),o&&null!==i)return i},findForwardEdges:function(e){return this.neighbors.forwardEdges.filter(e)},determineNewLocationOfFixedForwardNeighbors:function(){var e=[];return this.neighbors.forwardEdges.forEach((function(t){var i=t.toVertex;i.isProcessed()||t.isDistanceLocked()&&(!function(e){e.toVertex.computeNewLocation=function(){return e.fromVertex.getNewLocation()+e.getOldDistance()}}(t),i.setNewLocation(i.computeNewLocation()),e.push(i.id))}),this),e},determineNewLocationOfFixedBackwardNeighbors:function(){var e=[];return this.neighbors.backwardEdges.forEach((function(t){var i=t.fromVertex;i.isProcessed()||t.isDistanceLocked()&&(!function(e){e.fromVertex.computeNewLocation=function(){return e.toVertex.getNewLocation()-e.getOldDistance()}}(t),i.setNewLocation(i.computeNewLocation()),e.push(i.id))}),this),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t=0;return e(null,{constructor:function(e){this.id=(t++).toString(),void 0!==e.id&&(this.id=this.id+"_"+e.id),this.neighbors={backwardEdges:[],forwardEdges:[]}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2288),i(741)],o=i.dj.d(n,(function(e,t,i){return e([t],{getSizeIndex:function(){return 1},createContainerVertices:function(e,t){var n={},o={iw:t[0],ow:t[0],ih:t[1],oh:t[1]},r=e.getDebugId(),a=this._createVertex({oldLocation:0,type:i.CONTAINER,id:r+"_start"}),s=this._createVertex({oldLocation:o.ih,type:i.CONTAINER,id:r+"_end"});return n[e.getId()]={Start:{vertex:a,slack:0},End:{vertex:s,slack:0}},n},createComponentVertices:function(e,t){var n={};return e.forEach((function(e){var o=e.getActivePositionInPixels(),r=t[1],a=e.getDebugId(),s=this._createVertex({oldLocation:r-o[1]-o[3],type:i.COMPONENT,id:a+"_start"}),l=this._createVertex({oldLocation:r-o[1]-o[3]/2,type:i.COMPONENT,id:a+"_center"}),c=this._createVertex({oldLocation:r-o[1],type:i.COMPONENT,id:a+"_end"});if(void 0===e.getId())throw new Error("childController getId() should not be undefined");n[e.getId()]={Start:{vertex:s,slack:0},Center:{vertex:l,slack:0},End:{vertex:c,slack:0}};var d=e.getOuterPositionInPixels();if(d[3]!==o[3]){var u=this._createVertex({oldLocation:r-d[1]-d[3],type:i.COMPONENT,id:a+"_prestart"}),h=this._createVertex({oldLocation:r-d[1],type:i.COMPONENT,id:a+"_postend"});n[e.getId()].OuterStart={vertex:u,slack:0},n[e.getId()].OuterEnd={vertex:h,slack:0}}}),this),n},inDirectNeighborhood:function(e,t,i){var n=e.getInnerPositionInPixels(),o=e.getOuterPositionInPixels(),r=n[1],a=n[3],s=o[0],l=o[2],c=t.getInnerPositionInPixels(),d=t.getOuterPositionInPixels(),u=c[1],h=d[0],p=d[2];return u>=r+a-i&&h+p>=s&&h<=s+l},_getComponentProjection:function(e,t){var i=Math.ceil(t[1])+1,n=Array.apply(null,new Array(i)).map(Number.prototype.valueOf,1),o=t[1];return e.forEach((function(e){var t,i=e.getOuterPositionInPixels(),r=Math.floor(o-i[1]-i[3]),a=Math.ceil(o-i[1]);for(t=r;t<=a;t++)n[t]=0})),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1162)],o=i.dj.d(n,(function(e){return{getNewPosition:function(t,i,n){var o=t.getActivePositionInPixels(),r=t.getProperty("IsSizeFixed"),a=o.slice(0);if(void 0!==n.Horizontal){var s=n.Horizontal.componentToVertices[t.getId()];a[0]=function(e){return e.Start.vertex.getNewLocation()+e.Start.slack}(s),a[2]=function(e){var t=e.Start.vertex.getNewLocation()+e.Start.slack,i=e.End.vertex.getNewLocation()+e.End.slack-t;return Math.max(0,i)}(s),function(e,t,i){if(void 0!==t&&t[0]){var n=i.Start.vertex.getOldLocation()+i.Start.slack,o=i.End.vertex.getOldLocation()+i.End.slack-n;e[2]=o}}(a,r,s)}if(void 0!==n.Vertical){var l=n.Vertical.componentToVertices[i.getId()],c=n.Vertical.componentToVertices[t.getId()];a[1]=function(e,t){return t.End.vertex.getNewLocation()+t.End.slack-(t.Start.vertex.getNewLocation()+t.Start.slack)-(e.End.vertex.getNewLocation()+e.End.slack)}(c,l),a[3]=function(e){var t=e.Start.vertex.getNewLocation()+e.Start.slack,i=e.End.vertex.getNewLocation()+e.End.slack-t;return Math.max(0,i)}(c),function(e,t,i){if(void 0!==t&&t[1]){var n=i.Start.vertex.getOldLocation()+i.Start.slack,o=i.End.vertex.getOldLocation()+i.End.slack-n,r=e[1];r+=e[3]-o,e[1]=r,e[3]=o}}(a,r,c),function(t,i,n){if(!e.shouldComponentGrow(i,"vertical")){var o=n.Start.vertex.getOldLocation()+n.Start.slack,r=n.End.vertex.getOldLocation()+n.End.slack-o,a=t[1],s=t[3];if(s>r)a+=s-r,t[1]=a,t[3]=r}}(a,t,c)}!r||r[0]||r[1]||function(e,t){if(void 0!==t){var i=t[0],n=t[1];"Inf"===n&&(n=Number.POSITIVE_INFINITY);var o=e[0],r=e[2],a=e[3];if(r/a<i)a=r/i,e[3]=a;else if(r/a>n){o+=(r-(r=a*n))/2,e[0]=o,e[2]=r}}}(a,t.getProperty("AspectRatioLimits"));return a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2285)],o=i.dj.d(n,(function(e,t){return e([t],{handleSizeChanged:function(e){this.controller.invalidateTree(),this.doValidateContainer()},getRepositionableChildren:function(){return this.controller.getPositionableChildren()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2289)],o=i.dj.d(n,(function(e,t){return e([t],{isVisible:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(689)],o=i.dj.d(n,(function(e,t){return e([t],{attachModelSidePositionChangeListener:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(689)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){},getNeighborMarginTolerance:function(){return this.TOLERANCE_FOR_CHARTS}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(689)],o=i.dj.d(n,(function(e,t){return e([t],{setActivePositionInPixels:function(e){},attachModelSidePositionChangeListener:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1512)],o=i.dj.d(n,(function(e,t){return e([t],{requiresWrapperNodeInLayoutContainer:!0})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(734)],o=i.dj.d(n,(function(e,t){return e([t],{fillCell:function(e){return this._updatePosition(e),{innerSize:e,outerSize:e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1551)],o=i.dj.d(n,(function(e,t){return e(null,{createView:function(){this.inherited(arguments);let e=this.widget,i=e._onOpenEventListenersInfo.find(e=>"blur"===e.event),n=i.callback;i.callback=function(i){"blur"===i.type&&!0===i.isTrusted&&t.isLocked(this.domNode)||n.apply(e,arguments)}.bind(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6368),i(6369),i(6370),i(6371)],o=i.dj.d(n,(function(e,t){return t(e,"uitest/resources/MATLAB/uiautomation/nls/Driver",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={AmbiguousOptionMatch:"指定したオプションは一意ではありません。インデックスを使用してあいまいさをなくしてください。",CanNotBeDeselected:"${0} クラスのオブジェクトを選択解除できません。",ClientError:"An internal error occurred in the client:\n${0}",ComponentNotMultiSelectable:"Specified component does not support multiselection.",EditableTableCell:"To choose an editable table cell, use an appropriate edit option.",FigureIsLocked:"この Figure は、テスト中の意図しない介入を防ぐためにロックされています。ロックを解除するには ${0} を使用します。",GestureNotCompleted:"動作は ${0} 秒以内に完了しませんでした。",GestureNotSupported:'"${0}" 動作は、このコンポーネントではサポートされていません。',GestureNotSupportedForClass:'"${0}" 動作は、クラス "${1}" のオブジェクトをサポートしていません。',IncorrectCellValues:"2 つの cell の間にあるすべての cell を選択するには、開始 cell と終了 cell のインデックスを 2 行 2 列の配列として指定します。",Invalid3DAxesCoordinate:"3 次元座標軸座標は 1 行 3 列の数値配列でなければなりません。",InvalidAxesCoordinate:"座標軸座標は 1 行 2 列または 1 行 3 列の数値配列でなければなりません。",InvalidContextMenuOption:"コンテキスト メニュー項目が無効です。",InvalidSelectionDataType:"有効な string、文字ベクトル、cellstr、数値インデックスのいずれかを指定してください。",InvalidTableCell:"Specified cell indices are invalid.",MustBeEditableAndEnabled:"コンポーネントは編集可能かつ有効でなければなりません。",MustBeScalar:"入力はスカラーでなければなりません。",MustBeScalarTextOrIndex:"入力は、文字ベクトル、string スカラー、または数値インデックスでなければなりません。",MustBeTextOrIndex:"入力は、文字ベクトル、文字ベクトルの cell 配列、string 配列、または数値インデックスでなければなりません。",MustBeTextOrIndices:"入力は、文字ベクトル、文字ベクトルの cell 配列、string 配列、または数値インデックスでなければなりません。",MustBeUIFigure:"入力は、関数 UIFIGURE を使って作成された Figure でなければなりません。",MustBeValidHGHandle:"入力は、有効なグラフィックス オブジェクトでなければなりません。",MustBelongToUIFigure:"コンポーネントは、関数 UIFIGURE を使用して作成された Figure の子でなければなりません。",MustNotBeNaT:"指定した datetime が NaT であってはなりません。",NoAlertDialogsFound:"Figure ウィンドウに警告ダイアログ ボックスが見つかりません。",NoDisplay:"MATLAB アプリでの動作には Figure の表示が必要です。",NoOptionMatch:"指定されたオプションが見つかりません。",NotALeafMenu:"他のメニューを含むメニューでは動作はサポートされません。",OutOfBounds:"動作の場所が Figure の境界外です。",RootDescendant:"コンポーネントはルートの子孫でなければなりません。",StaleElement:"指定したコンポーネントを使用してこの動作を実行できません。",UnEditableTableCell:"Specified table cell is uneditable.",UnitsMustBePixels:"Performing a gesture at an explicitly specified location is not supported for nonpixel units.",UnknownGesture:'動作 "${0}" が不明です。',UnsupportedTableCell:"テーブルのセルに対して指定した動作を実行できません。",UntypableTableCell:"Specified table cell does not support type gestures.",ValueOutsideLimits:"指定された値はコンポーネントの範囲内でなければなりません。",VisibleHierarchy:"コンポーネントには表示可能な階層がなければなりません。",WarnInHGCallbacks:"グラフィックス オブジェクト コールバック内で MATLAB UI テスト動作が呼び出されました。"}},function(e,t,i){e.exports={AmbiguousOptionMatch:"지정된 옵션이 고유하지 않습니다. 모호하지 않도록 인덱스를 사용하십시오.",CanNotBeDeselected:"${0} 클래스의 객체를 선택 취소할 수 없습니다.",ClientError:"An internal error occurred in the client:\n${0}",ComponentNotMultiSelectable:"Specified component does not support multiselection.",EditableTableCell:"To choose an editable table cell, use an appropriate edit option.",FigureIsLocked:"테스트 중에 의도하지 않는 상호 작용이 발생하지 않도록 이 Figure는 잠겨 있습니다. 잠금 해제하려면 ${0}을(를) 사용하십시오.",GestureNotCompleted:"제스처가 ${0}초 내에 완료되지 않았습니다.",GestureNotSupported:'"${0}" 제스처는 이 구성요소에서 지원되지 않습니다.',GestureNotSupportedForClass:'"${0}" 제스처는 "${1}" 클래스의 객체를 지원하지 않습니다.',IncorrectCellValues:"두 개의 셀 사이에 있는 모든 셀을 선택하려면 시작 및 중지 셀 인덱스를 2×2 배열로 지정하십시오.",Invalid3DAxesCoordinate:"3차원 좌표축 좌표는 1×3 숫자형 배열이어야 합니다.",InvalidAxesCoordinate:"좌표축 좌표는 1×2 또는 1×3 숫자형 배열이어야 합니다.",InvalidContextMenuOption:"상황별 메뉴 항목이 유효하지 않습니다.",InvalidSelectionDataType:"유효한 string형, 문자형 벡터, cellstr 또는 숫자형 인덱스를 지정하십시오.",InvalidTableCell:"Specified cell indices are invalid.",MustBeEditableAndEnabled:"구성요소는 편집 가능하고 활성화되어 있어야 합니다.",MustBeScalar:"입력값은 스칼라여야 합니다.",MustBeScalarTextOrIndex:"입력값은 문자형 벡터, string형 스칼라 또는 숫자형 인덱스여야 합니다.",MustBeTextOrIndex:"입력값은 문자형 벡터, 문자형 벡터로 구성된 셀형 배열, string형 배열 또는 숫자형 인덱스여야 합니다.",MustBeTextOrIndices:"입력값은 문자형 벡터, 문자형 벡터로 구성된 셀형 배열, string형 배열 또는 숫자형 인덱스여야 합니다.",MustBeUIFigure:"입력값은 UIFIGURE 함수로 생성된 Figure여야 합니다.",MustBeValidHGHandle:"입력값은 유효한 그래픽스 객체여야 합니다.",MustBelongToUIFigure:"구성요소는 UIFIGURE 함수로 생성된 Figure의 자식이어야 합니다.",MustNotBeNaT:"지정된 날짜/시간은 NaT가 아니어야 합니다.",NoAlertDialogsFound:"Figure 창에서 알림 대화 상자를 찾을 수 없습니다.",NoDisplay:"MATLAB 앱에 대한 제스처에는 Figure 표시가 필요합니다.",NoOptionMatch:"지정된 옵션을 찾을 수 없습니다.",NotALeafMenu:"다른 메뉴를 포함하는 메뉴에서는 제스처가 지원되지 않습니다.",OutOfBounds:"제스처 위치가 Figure 범위 밖에 있습니다.",RootDescendant:"구성요소는 루트의 후손이어야 합니다.",StaleElement:"지정된 구성요소를 사용하여 제스처를 수행할 수 없습니다.",UnEditableTableCell:"Specified table cell is uneditable.",UnitsMustBePixels:"픽셀이 아닌 단위에서는 명시적으로 지정된 위치에서 제스처를 수행하는 것이 지원되지 않습니다.",UnknownGesture:'"${0}"은(는) 알 수 없는 제스처입니다.',UnsupportedTableCell:"테이블 셀에서 지정된 제스처를 수행할 수 없습니다.",UntypableTableCell:"Specified table cell does not support type gestures.",ValueOutsideLimits:"지정된 값은 구성요소 제한 내에 있어야 합니다.",VisibleHierarchy:"가시적인 계층 구조가 구성요소에 있어야 합니다.",WarnInHGCallbacks:"MATLAB UI 테스트 제스처가 그래픽스 객체 콜백 내에서 호출되었습니다."}},function(e,t,i){e.exports={AmbiguousOptionMatch:"指定的选项不是唯一的。请使用索引进行区分。",CanNotBeDeselected:"无法取消选择 ${0} 类的对象。",ClientError:"An internal error occurred in the client:\n${0}",ComponentNotMultiSelectable:"Specified component does not support multiselection.",EditableTableCell:"To choose an editable table cell, use an appropriate edit option.",FigureIsLocked:"此图窗已被锁定,以防止测试期间发生意外交互。要将其解锁,请使用 ${0}。",GestureNotCompleted:"手势未在 ${0} 秒内完成。",GestureNotSupported:'此组件中不支持 "${0}" 手势。',GestureNotSupportedForClass:'"${0}" 手势不支持 "${1}" 类的对象。',IncorrectCellValues:"要选择两个单元格之间的所有单元格,请将起始和终止单元格索引指定为 2×2 数组。",Invalid3DAxesCoordinate:"三维坐标区的坐标必须为一个 1×3 的数值数组。",InvalidAxesCoordinate:"坐标区的坐标必须为一个 1×2 或 1×3 的数值数组。",InvalidContextMenuOption:"上下文菜单项无效。",InvalidSelectionDataType:"指定有效的字符串、字符向量、cellstr 或数值索引。",InvalidTableCell:"指定的单元格索引无效。",MustBeEditableAndEnabled:"组件必须可编辑并且已启用。",MustBeScalar:"输入必须为标量。",MustBeScalarTextOrIndex:"输入必须为字符向量、字符串标量或数值索引。",MustBeTextOrIndex:"输入必须为字符向量、字符向量元胞数组、字符串数组或数值索引。",MustBeTextOrIndices:"输入必须为字符向量、字符向量元胞数组、字符串数组或数值索引。",MustBeUIFigure:"输入必须为使用 UIFIGURE 函数创建的图窗。",MustBeValidHGHandle:"输入必须为有效的图形对象。",MustBelongToUIFigure:"组件必须为使用 UIFIGURE 函数创建的图窗的子级。",MustNotBeNaT:"指定的日期时间不能为 NaT。",NoAlertDialogsFound:"在图窗窗口中找不到任何警报对话框。",NoDisplay:"MATLAB App 上的手势需要图窗显示。",NoOptionMatch:"未找到指定的选项。",NotALeafMenu:"包含其他菜单的菜单不支持手势。",OutOfBounds:"手势位置超出图窗边界。",RootDescendant:"该组件必须为根的后代。",StaleElement:"无法使用指定的组件执行手势。",UnEditableTableCell:"Specified table cell is uneditable.",UnitsMustBePixels:"非像素单位不支持在显式指定的位置执行手势。",UnknownGesture:'未知的手势 "${0}"。',UnsupportedTableCell:"无法对表单元格执行指定的手势。",UntypableTableCell:"Specified table cell does not support type gestures.",ValueOutsideLimits:"指定的值必须位于组件范围内。",VisibleHierarchy:"该组件必须具有可见的层次结构。",WarnInHGCallbacks:"图形对象回调中调用了 MATLAB UI 测试手势。"}},function(e,t,i){e.exports={root:{AmbiguousOptionMatch:"Specified option is not unique. Use indices to disambiguate.",CanNotBeDeselected:"Unable to deselect objects of ${0} class.",ClientError:"An internal error occurred in the client:\n${0}",ComponentNotMultiSelectable:"Specified component does not support multiselection.",EditableTableCell:"To choose an editable table cell, use an appropriate edit option.",FigureIsLocked:"This figure is locked to prevent unintended interactions during testing. To unlock it, use ${0}.",GestureNotCompleted:"Gesture did not complete within ${0} second(s).",GestureNotSupported:'"${0}" gesture is not supported on this component.',GestureNotSupportedForClass:'"${0}" gesture does not support objects of class "${1}".',IncorrectCellValues:"To select all cells in between two cells, specify the start and stop cell indices as a 2-by-2 array.",Invalid3DAxesCoordinate:"3-D axes coordinate must be a 1-by-3 numeric array.",InvalidAxesCoordinate:"Axes coordinate must be a 1-by-2 or 1-by-3 numeric array.",InvalidContextMenuOption:"Invalid context menu item.",InvalidSelectionDataType:"Specify either a valid string, character vector, cellstr, or numeric index.",InvalidTableCell:"Specified cell indices are invalid.",MustBeEditableAndEnabled:"Component must be editable and enabled.",MustBeScalar:"Input must be scalar.",MustBeScalarTextOrIndex:"Input must be a character vector, string scalar, or numeric index.",MustBeTextOrIndex:"Input must be a character vector, cell array of character vectors, string array, or numeric index.",MustBeTextOrIndices:"Input must be a character vector, cell array of character vectors, string array, or numeric indices.",MustBeUIFigure:"Input must be figures created with the UIFIGURE function.",MustBeValidHGHandle:"Input must be a valid graphics object.",MustBelongToUIFigure:"Component must be a child of a figure created with UIFIGURE function.",MustNotBeNaT:"Specified datetime must not be NaT.",NoAlertDialogsFound:"Unable to find any alert dialog boxes in the figure window.",NoDisplay:"Gestures on MATLAB Apps require figure display.",NoOptionMatch:"Specified option not found.",NotALeafMenu:"Gestures are not supported on menus that contain other menus.",OutOfBounds:"Gesture location outside figure bounds.",RootDescendant:"The component must be a descendant of the root.",StaleElement:"Unable to perform the gesture using the specified component.",UnEditableTableCell:"Specified table cell is uneditable.",UnitsMustBePixels:"Performing a gesture at an explicitly specified location is not supported for nonpixel units.",UnknownGesture:'Unknown gesture "${0}".',UnsupportedTableCell:"Unable to perform the specified gesture on the table cell.",UntypableTableCell:"Specified table cell does not support type gestures.",ValueOutsideLimits:"Specified value must be within component limits.",VisibleHierarchy:"The component must have a visible hierarchy.",WarnInHGCallbacks:"MATLAB UI Test gesture invoked within a graphics object callback."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(6373)],o=i.dj.d(n,(function(e,t){return e(null,{createView:function(e){t.start("/uitest/"+this.getPeerNodeId()),this.inherited(arguments)},uipress:function(e,t){const i=this.widget.containerNode,n=this._matlab2stdcoords(i,t);this._enforceBounds(i,n,e)&&e.uipress(i,n)},uidoublepress:function(e,t){const i=this.widget.containerNode,n=this._matlab2stdcoords(i,t);this._enforceBounds(i,n,e)&&e.uidoublepress(i,n)},uihover:function(e,t){const i=this.widget.containerNode,n=this._matlab2stdcoords(i,t);this._enforceBounds(i,n,e)&&e.uihover(i,n)},uidrag:function(e,t){const i=this.widget.containerNode,n=this._matlab2stdcoords(i,t),[o,r]=n;if(!this._enforceBounds(i,o,e))return;const a=e.createLinearDragPath(o,r);e.uidrag(i,a)},uicontextmenu:function(e,t){const i=this.widget.containerNode,n=this._matlab2stdcoords(i,t);if(this._enforceBounds(i,n,e))return i.querySelector(".GraphicsView")?(e._Options.button=2,void e.uipress(i,n)):void e.uicontextmenu(i,n)},dismissAlert:function(e){const t=document.querySelectorAll(".mwAlertDialog"),i=t[t.length-1];if(!i)return void e._Messenger.reject("MATLAB:uiautomation:Driver:NoAlertDialogsFound");const n=i.querySelector('[data-test-id="AlertDialogButton1"]');e.uipress(n)},uilock:function(e,t){e[t.Value?"enable":"disable"]()},_isWithinFigure:function(e,t,i){const n=e.getBoundingClientRect(),o=(e,t,i)=>{const n=Math.min(t,i),o=Math.max(t,i);return e>=n-.5&&e<=o+.5};return o(n.left+t,n.left,n.left+n.width)&&o(n.top+i,n.top,n.top+n.height)},_enforceBounds:function(e,t,i){let n=!0;return t&&!this._isWithinFigure(e,t.x,t.y)&&(n=!1,i._Messenger.reject("MATLAB:uiautomation:Driver:OutOfBounds")),n},_matlab2stdcoords:function(e,t){if(!t.hasOwnProperty("X"))return;const i=e.getBoundingClientRect();if(Array.isArray(t.X)){const e=t.X.map(e=>e-1),n=t.Y.map(e=>i.height-e),o=[];for(let t=0;t<e.length;t++)o.push({x:e[t],y:n[t]});return o}return{x:t.X-1,y:i.height-t.Y}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2119),i(219),i(6374),i(6375),i(1551),i(6376),i(6377),i(6378)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){async function l(...t){try{await async function(t){const l=t.data,c=l.Name,d=new a;if(-1===["dismissAlert","flush","uicontextmenu","uidoublepress","uidrag","uihover","uilock","uipress","uiscroll","uitype"].indexOf(c))return void d.reject("MATLAB:uiautomation:Driver:UnknownGesture",c);const u=l.Channel,h=e.getInstance(u),p=i.getFigureContainerNode(h,l.figID),f=l.PeerNodeID;let g=h.getControllerById(f);const m=new o(d,p);if("uilock"===c)return void await g[c](m,l.Data);l.Data.hasOwnProperty("axesID")&&(g=s.createAxesControl(l.Data.axesType,g,l.Data.axesID));l.Data.hasOwnProperty("textID")&&(g=s.createTextControl(g,l.Data.textID));(new r).enable();const _=new n(d,l.Options,m);await g.pollForViewReady(),p.getBoundingClientRect(),await new Promise(e=>setTimeout(e));const v=new Promise(e=>window.requestAnimationFrame(e)),b=new Promise(e=>setTimeout(e,500));if(await Promise.race([v,b]),"flush"===c)return void d.fulfill();await g[c](_,l.Data)}(...t)}catch(e){(new a).settleWithWarnings("MATLAB:uiautomation:Driver:ClientError",`${e.name}: ${e.message}`)}}return{start:function(e){t.start(),t.subscribe(e,l)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getFigureContainerNode:function(e,t){return e.getControllerById(t).widget.domNode.closest(".gbtFigureLayoutContainer")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(223)],o=i.dj.d(n,e=>{let t=(void 0!==window.PointerEvent?window.PointerEvent:void 0)||function(e,t){let i=new Event(e,t);for(let e in t)i[e]=t[e];return i};return class{constructor(e,t,i){this._Messenger=e,this._Options=t||{},this._UILock=i}async uipress(e,t={}){if(!this._isValidElement(e))return void this._Messenger.reject("MATLAB:uiautomation:Driver:StaleElement");let i=e.getBoundingClientRect(),n=i.left+(void 0!==t.x?t.x:i.width/2),o=i.top+(void 0!==t.y?t.y:i.height/2),r=this._getTargetElement(n,o);if(null===r)return void this._Messenger.reject("MATLAB:uiautomation:Driver:OutOfBounds");let a=n+window.screenX,s=o+window.screenY,l=this._Options,c={view:window,bubbles:!0,cancelable:!0,clientX:n,clientY:o,screenX:a,screenY:s,ctrlKey:l.ctrlKey||!1,shiftKey:l.shiftKey||!1,altKey:l.altKey||!1,metaKey:l.metaKey||!1,pointerType:"mouse"};await this.doHover(r,c),c.button=l.button||0,c.buttons=l.buttons||0,await this.doPress(r,c),this._Messenger.fulfill()}async uidoublepress(e,t={}){if(!this._isValidElement(e))return void this._Messenger.reject("MATLAB:uiautomation:Driver:StaleElement");let i=e.getBoundingClientRect(),o=i.left+(void 0!==t.x?t.x:i.width/2),r=i.top+(void 0!==t.y?t.y:i.height/2),a=this._getTargetElement(o,r);if(null===a)return void this._Messenger.reject("MATLAB:uiautomation:Driver:OutOfBounds");let s=o+window.screenX,l=r+window.screenY,c=this._Options,d={view:window,bubbles:!0,cancelable:!0,clientX:o,clientY:r,screenX:s,screenY:l,ctrlKey:c.ctrlKey||!1,shiftKey:c.shiftKey||!1,altKey:c.altKey||!1,metaKey:c.metaKey||!1,pointerType:"mouse"};await this.doHover(a,d),d.button=c.button||0,d.buttons=c.buttons||0,d.detail=1,await this.doPress(a,d),d.detail=2,await this.doPress(a,d);let u=this.constructEvent(MouseEvent,"dblclick",d);a.dispatchEvent(u),await n(),this._Messenger.fulfill()}async uihover(e,t={}){if(!this._isValidElement(e))return void this._Messenger.reject("MATLAB:uiautomation:Driver:StaleElement");let i=e.getBoundingClientRect(),n=i.left+(void 0!==t.x?t.x:i.width/2),o=i.top+(void 0!==t.y?t.y:i.height/2),r=this._getTargetElement(n,o);if(null===r)return void this._Messenger.reject("MATLAB:uiautomation:Driver:OutOfBounds");let a=n+window.screenX,s=o+window.screenY,l=this._Options,c={view:window,bubbles:!0,cancelable:!0,clientX:n,clientY:o,screenX:a,screenY:s,ctrlKey:l.ctrlKey||!1,shiftKey:l.shiftKey||!1,altKey:l.altKey||!1,metaKey:l.metaKey||!1,pointerType:"mouse"};await this.doHover(r,c),this._Messenger.fulfill()}async uicontextmenu(e,t={}){if(!this._isValidElement(e))return void this._Messenger.reject("MATLAB:uiautomation:Driver:StaleElement");let i=e.getBoundingClientRect(),o=i.left+(void 0!==t.x?t.x:i.width/2),r=i.top+(void 0!==t.y?t.y:i.height/2),a=this._getTargetElement(o,r);if(null===a)return void this._Messenger.reject("MATLAB:uiautomation:Driver:OutOfBounds");let s=o+window.screenX,l=r+window.screenY,c=this._Options,d={view:window,bubbles:!0,cancelable:!0,clientX:o,clientY:r,screenX:s,screenY:l,ctrlKey:c.ctrlKey||!1,shiftKey:c.shiftKey||!1,altKey:c.altKey||!1,metaKey:c.metaKey||!1,pointerType:"mouse"};await this.doHover(a,d),d.button=c.button||0,d.buttons=c.buttons||0;let u=this.constructEvent(MouseEvent,"contextmenu",d);a.dispatchEvent(u),await n(),this._Messenger.fulfill()}async uiscroll(e,i,o={}){if(!this._isValidElement(e))return void this._Messenger.reject("MATLAB:uiautomation:Driver:StaleElement");let r=e.getBoundingClientRect(),a=r.left+(void 0!==o.x?o.x:r.width/2),s=r.top+(void 0!==o.y?o.y:r.height/2),l=this._getTargetElement(a,s);if(null===l)return void this._Messenger.reject("MATLAB:uiautomation:Driver:OutOfBounds");let c,d=a+window.screenX,u=s+window.screenY,h=this._Options,p={view:window,bubbles:!0,cancelable:!0,clientX:a,clientY:s,deltaX:i.deltaX||0,deltaY:i.deltaY||0,deltaZ:i.deltaZ||0,deltaMode:i.deltaMode||0,screenX:d,screenY:u,ctrlKey:h.ctrlKey||!1,shiftKey:h.shiftKey||!1,altKey:h.altKey||!1,metaKey:h.metaKey||!1,pointerType:"mouse"};c=this.constructEvent(t,"pointermove",p),l.dispatchEvent(c),await n(),c=this.constructEvent(MouseEvent,"mousemove",p),l.dispatchEvent(c),await n(),c=this.constructEvent(MouseEvent,"mouseover",p),l.dispatchEvent(c),await n(),c=this.constructEvent(WheelEvent,"wheel",p),l.dispatchEvent(c),await n(),this._Messenger.fulfill()}async uidrag(e,i){if(!this._isValidElement(e))return void this._Messenger.reject("MATLAB:uiautomation:Driver:StaleElement");let{x:o,y:r}=i,a=e.getBoundingClientRect();for(let e=0;e<o.length;e++)o[e]+=a.left,r[e]+=a.top;let s=this._getTargetElement(o[0],r[0]);if(null===s)return void this._Messenger.reject("MATLAB:uiautomation:Driver:OutOfBounds");let l=window.screenX,c=window.screenY,d=[],u=[];for(let e=0;e<o.length;e++)d[e]=o[e]+l,u[e]=r[e]+c;let h,p=this._Options,f={view:window,bubbles:!0,cancelable:!0,clientX:o[0],clientY:r[0],screenX:d[0],screenY:u[0],ctrlKey:p.ctrlKey||!1,shiftKey:p.shiftKey||!1,altKey:p.altKey||!1,metaKey:p.metaKey||!1,pointerType:"mouse"};await this.doHover(s,f),f.button=p.button||0,f.buttons=p.buttons||0,h=this.constructEvent(t,"pointerdown",f),s.dispatchEvent(h),await n(),h=this.constructEvent(MouseEvent,"mousedown",f),s.dispatchEvent(h),await n();for(let e=0;e<o.length;e++){f.clientX=o[e],f.clientY=r[e],f.screenX=d[e],f.screenY=u[e];let i=[];h=this.constructEvent(t,"pointermove",f),i[0]=s.dispatchEvent(h),await n(),h=this.constructEvent(MouseEvent,"mousemove",f),i[1]=s.dispatchEvent(h),await n(),i[0]&&i[1]&&(h=this.constructEvent(DragEvent,"drag",f),i=s.dispatchEvent(h),await n())}h=this.constructEvent(t,"pointerup",f),s.dispatchEvent(h),await n(),h=this.constructEvent(MouseEvent,"mouseup",f),s.dispatchEvent(h),await n(),h=this.constructEvent(MouseEvent,"click",f),s.dispatchEvent(h),await n(),this._Messenger.fulfill()}async uitype(e,t){if(!this._isValidElement(e))return void this._Messenger.reject("MATLAB:uiautomation:Driver:StaleElement");let i=e.getBoundingClientRect(),n=i.left+i.width/2,o=i.top+i.height/2,r=this._getTargetElement(n,o);null!==r?await this._doType(r,t,n,o):this._Messenger.reject("MATLAB:uiautomation:Driver:OutOfBounds")}async _doType(t,i,o,r){let a,s=o+window.screenX,l=r+window.screenY,c=this._Options,d={view:window,bubbles:!0,cancelable:!0,clientX:o,clientY:r,screenX:s,screenY:l,ctrlKey:c.ctrlKey||!1,shiftKey:c.shiftKey||!1,altKey:c.altKey||!1,metaKey:c.metaKey||!1,pointerType:"mouse"};await this.doHover(t,d),d.button=c.button||0,d.buttons=c.buttons||0,await this.doPress(t,d),d={bubbles:!0,cancelable:!0},0===i.length&&(i="\b");let u="";for(let o=0;o<i.length;o++){let r=i.charAt(o);d.key=r,a=this.constructEvent(KeyboardEvent,"keydown",d),t.dispatchEvent(a),await n(1),a=this.constructEvent(KeyboardEvent,"keypress",d),t.dispatchEvent(a),await n(1),a=this.constructEvent(Event,"input"),a.charOrCode=229,r.charCodeAt(0)===e.BACKSPACE?(d.key="Backspace",u=u.substring(0,u.length-1)):u+=r,void 0!==t.value&&(t.value=u),t.dispatchEvent(a),await n(1),a=this.constructEvent(KeyboardEvent,"keyup",d),t.dispatchEvent(a),await n(1)}"input"===t.tagName.toLowerCase()&&(d.code="Enter",d.key="Enter",d.keyCode=e.ENTER,d.which=e.ENTER,a=this.constructEvent(KeyboardEvent,"keydown",d),a.keyCode!==e.ENTER&&(a=document.createEvent("Event"),a.initEvent("keydown",d.bubbles,d.cancelable),["code","key","keyCode","which"].forEach((function(e){a[e]=d[e]})),a.UITest=!0),t.dispatchEvent(a),await n(1));for(let e=0;e<25;e++)await n(1);a=this.constructEvent(FocusEvent,"blur"),t.dispatchEvent(a),await n(1),this._Messenger.fulfill()}_getTargetElement(e,t){return this._UILock.elementFromPoint(e,t)}_isValidElement(e){let t=e.getBoundingClientRect();return t.width>0&&t.height>0}createLinearDragPath(e,t,n=1/0){const o=t.x-e.x,r=t.y-e.y,a=i(Math.abs(o)),s=i(Math.abs(r)),l=Math.min(Math.max(a,s),n-1),c=o/l,d=r/l,u=[e.x],h=[e.y];for(let t=1;t<=l;t++)u[t]=e.x+t*c,h[t]=e.y+t*d;return{x:u,y:h}}createArcDragPath(e,t,n){let o=i(e*Math.abs(t-n)),r=(n-t)/o,a=[e*Math.cos(t)],s=[e*Math.sin(t)];for(let i=1;i<=o;i++){let n=i*r;a[i]=e*Math.cos(t+n),s[i]=e*Math.sin(t+n)}return{x:a,y:s}}constructEvent(e,t,i={}){let n=new e(t,i);return n.UITest=!0,n}async doPress(e,i){let o;o=this.constructEvent(t,"pointerdown",i),e.dispatchEvent(o),await n(),o=this.constructEvent(MouseEvent,"mousedown",i),e.dispatchEvent(o),await n(),o=this.constructEvent(t,"pointerup",i),e.dispatchEvent(o),await n(),o=this.constructEvent(MouseEvent,"mouseup",i),e.dispatchEvent(o),await n(),o=this.constructEvent(MouseEvent,"click",i),e.dispatchEvent(o),await n()}async doHover(e,i){let o;o=this.constructEvent(t,"pointermove",i),e.dispatchEvent(o),await n(),o=this.constructEvent(MouseEvent,"mousemove",i),e.dispatchEvent(o),await n(),o=this.constructEvent(MouseEvent,"mouseover",i),e.dispatchEvent(o),await n()}};function i(e){return Math.ceil(100*e/(e+100))}function n(e=0){return new Promise(t=>setTimeout(t,e))}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(213),i(210),i(211)],o=i.dj.d(n,(e,t,i)=>{let n="UIFX_Response",o=(t,i)=>{e.set(t,"top",i.pageY-t.offsetHeight/2+"px"),e.set(t,"left",i.pageX-t.offsetWidth/2+"px")},r=e=>{t.remove(e,"uivisHover"),t.remove(e,"uivisFade")},a=e=>!e.isTrusted&&e.hasOwnProperty("UITest"),s=(e,i)=>{a(i)&&(o(e,i),t.add(e,"uivisHover"))},l=(e,t)=>{a(t)&&(o(e,t),r(e))},c=(e,t)=>{a(t)&&(o(e,t),r(e))},d=(e,i)=>{a(i)&&(o(e,i),t.add(e,"uivisFade"))};return class{enable(){let e=document.getElementById(n);e||(e=i.toDom("<div id='"+n+"'></div>"),i.place(e,document.body),(e=>{document.body.addEventListener("mousedown",c.bind(null,e),!0),document.body.addEventListener("mouseup",d.bind(null,e),!0),document.body.addEventListener("mouseover",s.bind(null,e),!0),document.body.addEventListener("mousemove",l.bind(null,e),!0)})(e))}disable(){document.body.removeEventListener("mousemove",l,!0),document.body.removeEventListener("mousedown",c,!0),document.body.removeEventListener("mouseup",d,!0),document.body.removeEventListener("mouseover",s,!0);let e=document.getElementById(n);e&&e.parentNode.removeChild(e)}}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(219)],o=i.dj.d(n,e=>class{fulfill(){e.publish("/uitest/fulfilled",{})}settleWithWarnings(t,...i){let n={MessageInput:[t,...i]};e.publish("/uitest/settledWithWarnings",n)}reject(t,...i){let n={MessageInput:[t,...i]};e.publish("/uitest/rejected",n)}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6379),i(6380),i(6381)],o=i.dj.d(n,(function(e,t,i){let n={createAxesControl:function(i,o,r){let a=n.getGraphicsView(o),s=n.getAxesControl(a,r);switch(i){case"Axes":return new e(a,s);case"PolarAxes":return new t(a,s)}},createTextControl:function(e,t){let o=n.getGraphicsView(e),r=o._controlManager.findControl(t);return new i(o,r)},getGraphicsView:function(e){return e.widget.GraphicsView},getAxesControl:function(e,t){return e.getAxesControl(t)}};return n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2290)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t){this._gv=e,this._axesControl=t},uipress:async function(e,t){let i=this._ds2px([t.X,t.Y,t.Z]),n={x:i[0],y:i[1]};await this.interact("uipress",e,t,n)},uidoublepress:async function(e,t){let i=this._ds2px([t.X,t.Y,t.Z]),n={x:i[0],y:i[1]};await this.interact("uidoublepress",e,t,n)},uihover:async function(e,t){let i=this._ds2px([t.X,t.Y,t.Z]),n={x:i[0],y:i[1]};await this.interact("uihover",e,t,n)},uiscroll:async function(e,t){let i=this._ds2px([t.X,t.Y,t.Z]),n={x:i[0],y:i[1]};t.scrolloptions={deltaX:t.DeltaX,deltaY:t.DeltaY,deltaZ:t.DeltaZ,deltaMode:t.DeltaMode},await this.interact("uiscroll",e,t,n)},uidrag:async function(e,t){const i=this._ds2px([t.X[0],t.Y[0],t.Z[0]]),n=this._ds2px([t.X[1],t.Y[1],t.Z[1]]);t.dragpath=e.createLinearDragPath({x:i[0],y:i[1]},{x:n[0],y:n[1]},25);const o={x:i[0],y:i[1]};await this.interact("uidrag",e,t,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2290)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t){this._gv=e,this._axesControl=t},uipress:function(e,t){let i=this._ds2px([t.X,t.Y,t.Z]),n={x:i[0],y:i[1]};this.interact("uipress",e,t,n)},uihover:function(e,t){let i=this._ds2px([t.X,t.Y,t.Z]),n={x:i[0],y:i[1]};this.interact("uihover",e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t){this._gv=e,this._textControl=t},pollForViewReady:function(){return Promise.resolve()},uitype:function(e,i){let n=new t;n.then((function(t){e.uitype(t,i.Text)})),function e(t,i){let n=i._textWidget;n?function e(){let i=function(e){return e.getElementsByClassName("mwInputNode mwAlignmentNode")[0]}(n);i?t.resolve(i):setTimeout(e,50)}():setTimeout((function(){e(t,i)}),50)}(n,this._textControl)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1551)],o=i.dj.d(n,(function(e,t){return e(null,{uipress:function(e){e.uipress(this.widget.domNode)},createWidget:function(e){this.inherited(arguments);let i="MenuBarItem"===this.menuType?this.widget.get("menu"):this.widget,n=i._focusLost;i._focusLost=function(e){"blur"===e.type&&!0===e.isTrusted&&t.isLocked(this.domNode)||n.apply(this,arguments)}.bind(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{uipress:function(e,t){let i=this.widget.containerNode,n=this._matlab2stdcoords(i,t);e.uipress(i,n)},uihover:function(e,t){let i=this.widget.containerNode,n=this._matlab2stdcoords(i,t);e.uihover(i,n)},uicontextmenu:function(e,t){let i=this.widget.containerNode,n=this._matlab2stdcoords(i,t);if(i.querySelector(".GraphicsView"))return e._Options.button=2,void e.uipress(i,n);e.uicontextmenu(i,n)},_matlab2stdcoords:function(e,t){let i=e.getBoundingClientRect();return{x:t.X-1,y:i.height-t.Y}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2291)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(417)],o=i.dj.d(n,(function(e,t){return e(t,{uipress:function(e,t){let i=this.widget.getTabBar(),n=i.animationEnabled;i.animationEnabled=!1,i._scrollIntoView(t.Index-1),i.animationEnabled=n;let o=i.getButtons()[t.Index-1];e.uipress(o.domNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(326),i(1163)],o=i.dj.d(n,(function(e,t,i){return e(null,{uipress:async function(e,t){const i=await this._getTable();i.focus();const o=t.row-1,r=t.col-1,a=`[data-row='${o}'][data-col='${r}']`;if(t.focus){await this._loadTable(i,o,r,a);if((()=>{const e=i.domNode.querySelector(".mw-table-cell-focused");return e&&e.dataset.row===o.toString()&&e.dataset.col===r.toString()})())return void e._Messenger.fulfill();const t=i.domNode.querySelector(a);return void e.uipress(t)}if(t.cellEditing&&("categorical"===t.cellType||"popup"===t.cellType)){const o=i.domNode.querySelector(a);await n(o,".mwComboBox");const r=o.querySelector(".mwComboBox"),s=dijit.byNode(r),l=s.menu.getChildren()[t.setting-1];return l.scrollIntoView(),void e.uipress(l)}await this._loadTable(i,o,r,a);const s=i.domNode.querySelector(a);e.uipress(s)},uitype:async function(e,t){const i=await this._getTable(),o=`[data-row='${t.row-1}'][data-col='${t.col-1}']`,r=i.domNode.querySelector(o);await n(r,".mwTableTextEditor");const a=r.querySelector(".mwTableTextEditor");e.uitype(a,t.Text)},uicontextmenu:async function(e,t){const i=await this._getTable();i.focus();const n=t.row-1,o=t.col-1,r=`[data-row='${n}'][data-col='${o}']`;await this._loadTable(i,n,o,r);const a=i.domNode.querySelector(r);e.uicontextmenu(a)},uidoublepress:async function(e,t){const i=await this._getTable();i.focus();const n=t.row-1,o=t.col-1,r=`[data-row='${n}'][data-col='${o}']`;await this._loadTable(i,n,o,r);const a=i.domNode.querySelector(r);e.uidoublepress(a)},_getTable:async function(){const e=()=>this.widget.table;return await i.waitForCondition(e),e()},_loadTable:async function(e,i,a,s){await function(e){return o(()=>-1!==e._tableView.viewPortList[0].getLastBufferedColumn())}(e),await r(500);const l=e.domNode.querySelector(s);if(l&&this._isCellVisible(e,l));else{const o=t.range().setRows(i,i).setColumns(a,a);e.scrollTo(o),await function(e,t){return n(e.domNode,t)}(e,s),await r(500)}await function(e,t,i){return o(()=>void 0!==e._viewModel._dataModel._dataStore.getLocalCellData(t,i))}(e,i,a),await r(500)},_isCellVisible:function(e,t){const i=t.getBoundingClientRect(),n=e.domNode.querySelector("[data-test-id='scrollNode']").getBoundingClientRect();return i.top>=n.top&&i.bottom<=n.bottom&&i.left>=n.left&&i.right<=n.right}});function n(e,t){return o(()=>e.querySelector(t))}function o(e){return new Promise(t=>{!function i(){e()?t():requestAnimationFrame(i)}()})}function r(e){return new Promise((function(t,i){setTimeout(t,e)}))}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2291)],o=i.dj.d(n,(function(e,t){return e(t,{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1487),i(6389),i(6392),i(6395),i(6398),i(6401),i(6404),i(6407),i(6410),i(6413),i(1511),i(440),i(689),i(2187),i(1513)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return new e({common:{model:[d],view:[],controller:[u,f],properties:[],events:[]},"Aero.ui.control.HeadingIndicator":{model:[],controller:[t,h,p]},"Aero.ui.control.AirspeedIndicator":{model:[],controller:[i,c,h,p]},"Aero.ui.control.Altimeter":{model:[],controller:[n,h,p]},"Aero.ui.control.ArtificialHorizon":{model:[],controller:[o,h,p]},"Aero.ui.control.TurnCoordinator":{model:[],controller:[r,h,p]},"Aero.ui.control.ClimbIndicator":{model:[],controller:[a,h,p]},"Aero.ui.control.EGTIndicator":{model:[],controller:[s,c,h,p]},"Aero.ui.control.RPMIndicator":{model:[],controller:[l,c,h,p]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(692),i(6390),i(405),i(204),i(6391)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i],{_setDefaultWidth:function(){this._defaultSVGWidth=300},getSvgFileName:function(){return"HeadingIndicator"},getSVGFileText:function(e){return r},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth();var e=this.SVGDocument,t=15,i=10,n=5;this.initializeConstants(0,360,e,t,t,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(533),i(405),i(456)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{initializeConstants:function(e,t,i,n,o,r,a,s){this.startAngle=e,this.angularSpan=t,this.defaultLabelHeight=13,this.fontSize=10,this.defaultFontSize=10;var l=this.SVGDocument.getElementById("Center");this.centerX=parseFloat(l.getAttribute("cx")),this.centerY=parseFloat(l.getAttribute("cy"))},setMajorTickValues:function(e){},setValue:function(e,t,i,n){var r=-t;Math.abs(r)>360&&(r%=360),n&&this._rotateNeedle(o.toPositiveAngle(r))},drawTickLines:function(e,t,i,n){},computeTickPositions:function(e,t,i){},calculateLabelPosition:function(e,t,i,n){},_adjustForHorizontalCropping:function(e,t,i){var n=e;return i.x+e+t.w>i.x+i.w&&(n=i.w-t.w),e<0&&(n=0),n},_adjustForVerticalCropping:function(e,t,i){var n=e;return i.y+e+t.h>i.y+i.h&&(n=i.h-t.h),e<0&&(n=0),n},positionLabel:function(e,t,n,o){i.set(e,{left:t.x+"px",top:t.y+"px"})},_computeNeedleAngleForValue:function(e,t,i){var n=t[1]-t[0],o=(e-t[0])/n*this.angularSpan;return"clockwise"===i?o:this.angularSpan-o},_rotateNeedle:function(e){this.SVGDocument.getElementById("Needle").setAttribute("transform","rotate("+e+", "+this.centerX+", "+this.centerY+")")},setScaleColors:function(e,t,i,n){}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve"><g id="bg"><circle cx="150" cy="150" r="150"></circle><g opacity="0.4"><g><polygon fill="#FFFFFF" points="150,3.232 143.965,3.232 150,12.232 156.036,3.232 "></polygon><polygon fill="#FFFFFF" points="150,296.768 143.965,296.768 150,287.768 156.036,296.768 "></polygon></g><g><polygon fill="#FFFFFF" points="46.22,46.219 41.952,50.487 52.583,52.583 50.487,41.951 "></polygon><polygon fill="#FFFFFF" points="253.78,253.781 249.513,258.049 247.417,247.416 258.049,249.512 "></polygon></g><g><polygon fill="#FFFFFF" points="3.232,150 3.232,156.035 12.232,150 3.232,143.964 "></polygon><polygon fill="#FFFFFF" points="296.768,150 296.768,156.035 287.768,150 296.768,143.964 "></polygon></g><g><polygon fill="#FFFFFF" points="46.22,253.781 50.487,258.049 52.583,247.416 41.952,249.512 "></polygon><polygon fill="#FFFFFF" points="253.78,46.219 258.049,50.487 247.417,52.583 249.513,41.951 "></polygon></g></g><path display="none" opacity="0.1" d="M150.394,6.091c38.516,0,74.727,14.999,101.961,42.234 c27.235,27.235,42.234,63.445,42.234,101.961c0,38.516-14.999,74.726-42.234,101.961c-27.234,27.234-63.445,42.233-101.961,42.233 s-74.727-14.999-101.961-42.233C21.197,225.012,6.199,188.802,6.199,150.286c0-38.516,14.999-74.727,42.233-101.961 S111.878,6.091,150.394,6.091 M150.394,2.14C68.575,2.14,2.248,68.467,2.248,150.286c0,81.818,66.327,148.146,148.146,148.146 s148.146-66.327,148.146-148.146C298.539,68.467,232.212,2.14,150.394,2.14L150.394,2.14z"></path><linearGradient id="SVGID_1_HeadingIndicator" gradientUnits="userSpaceOnUse" x1="149.9995" y1="-62.3335" x2="149.9995" y2="424.3363"><stop offset="0" style="stop-color:#FFFFFF"></stop><stop offset="1" style="stop-color:#000000"></stop></linearGradient><path fill="url(#SVGID_1_HeadingIndicator)" d="M150,4c38.998,0,75.662,15.187,103.237,42.763C280.813,74.338,296,111.002,296,150 s-15.187,75.661-42.763,103.237C225.662,280.813,188.998,296,150,296s-75.662-15.187-103.238-42.763 C19.187,225.661,4,188.998,4,150S19.187,74.338,46.762,46.763C74.338,19.187,111.002,4,150,4 M150,0C67.157,0,0,67.157,0,150 s67.157,150,150,150s150-67.157,150-150S232.843,0,150,0L150,0z"></path><path id="airplane" fill="#FFFF00" d="M224.949,179.135v-19.652l-60.906-44.522c-0.838-21.93-4.289-38.719-7.051-48.974 c-3.026-11.245-5.832-17.149-5.95-17.395L151,48.502V31.93h-2v16.572l-0.043,0.088c-0.118,0.246-2.923,6.15-5.95,17.395 c-2.761,10.255-6.213,27.044-7.05,48.974l-60.432,44.176l-0.475,0.347v19.652l60.804-17.372c0.443,5.616,2.193,26.77,4.625,42.58 l-21.34,19.993l0.912,14.348l25.046-11.261l3.12,11.139l0.093,0.331l0.018,0.063h0.003c0.047,0.11,0.105,0.215,0.173,0.313 c0.32,0.486,0.869,0.81,1.496,0.81c0.626,0,1.176-0.323,1.496-0.81c0.056-0.08,0.101-0.168,0.143-0.257l0.018,0.001l0.032-0.117 l0.094-0.334l3.12-11.138l25.046,11.261l0.911-14.348l-21.339-19.993c2.431-15.811,4.182-36.964,4.625-42.58L224.949,179.135z M161.948,160.177c-0.019,0.26-1.956,26.177-4.806,44.414l-0.095,0.604l21.436,20.083l-0.63,9.929l-24.664-11.089L150,235.348 l-3.189-11.23l-24.664,11.089l-0.63-9.929l21.435-20.083l-0.094-0.604c-2.851-18.237-4.787-44.154-4.807-44.414l-0.104-1.417 l-60.583,17.31v-15.413l60.862-44.492l0.021-0.56c0.791-21.944,4.228-38.724,6.972-48.937c1.874-6.973,3.688-11.915,4.779-14.632 c2.828,7.063,10.518,29.196,11.757,63.569l0.021,0.56l60.862,44.492v15.413l-60.583-17.31L161.948,160.177z"></path><g display="none"><circle id="Center" display="inline" fill="#1A1A1A" cx="150" cy="150" r="8.302"></circle><path display="inline" fill="#333333" d="M150,141.698c4.585,0,8.302,3.717,8.302,8.302s-3.717,8.302-8.302,8.302 s-8.302-3.717-8.302-8.302S145.415,141.698,150,141.698 M150,140.698c-5.129,0-9.302,4.173-9.302,9.302s4.172,9.302,9.302,9.302 c5.129,0,9.302-4.173,9.302-9.302S155.129,140.698,150,140.698L150,140.698z"></path></g></g><g id="Needle"><g id="ticks"></g><g id="values"><text transform="matrix(0.866 0.5 -0.5 0.866 196.0254 62.2729)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">3</text><text transform="matrix(0.5 0.866 -0.866 0.5 234.4893 96.7715)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">6</text><text transform="matrix(-0.5 0.866 -0.866 -0.5 241.9932 190.1641)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">12</text><text transform="matrix(-0.866 0.5 -0.5 -0.866 208.9434 230.9795)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">15</text><text transform="matrix(-0.866 -0.5 0.5 -0.866 109.7285 240.9893)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">21</text><text transform="matrix(-0.5 -0.866 0.866 -0.5 70.3105 207.418)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">24</text><text transform="matrix(0.5 -0.866 0.866 0.5 60.3022 109.6904)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">30</text><text transform="matrix(0.866 -0.5 0.5 0.866 92.4766 69.7793)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">33</text><path fill="#FFFF00" d="M264.571,145.786v10.36h-2.22v-7.92h-3.601v7.02h-2.22v-7.02h-3.74v8.02h-2.22v-10.46H264.571z"></path><path fill="#FFFF00" d="M36.255,161.126v-2.66l10.38-3.34l-10.42-3.44v-2.081l10.42-3.439l-10.38-3.34v-2.58l14.1,4.88v2.12 l-10.06,3.44l10.06,3.44v2.12L36.255,161.126z"></path><path fill="#FFFF00" d="M143.943,37.187h2.275l7.484,9.679v-9.679h2.44v14h-2.056l-7.704-9.96v9.96h-2.44V37.187z"></path><path fill="#FFFF00" d="M149.723,248.985c1.08,0,2.113,0.184,3.099,0.55c0.987,0.367,1.9,0.931,2.74,1.69l-1.48,1.76 c-0.68-0.587-1.366-1.037-2.06-1.35c-0.693-0.313-1.48-0.47-2.36-0.47c-0.76,0-1.363,0.159-1.81,0.479s-0.67,0.747-0.67,1.28v0.04 c0,0.253,0.043,0.477,0.13,0.67s0.248,0.376,0.481,0.55c0.234,0.173,0.555,0.333,0.963,0.48c0.407,0.146,0.938,0.293,1.594,0.439 c0.749,0.173,1.414,0.37,1.995,0.59c0.581,0.221,1.069,0.486,1.464,0.8s0.695,0.697,0.902,1.15s0.311,1,0.311,1.64v0.04 c0,0.601-0.119,1.15-0.357,1.65c-0.237,0.5-0.564,0.927-0.981,1.28c-0.417,0.353-0.917,0.63-1.503,0.83 c-0.586,0.199-1.224,0.3-1.917,0.3c-1.027,0-1.95-0.15-2.771-0.45c-0.819-0.3-1.59-0.737-2.31-1.31l1.319-1.86 c0.641,0.467,1.273,0.823,1.9,1.07c0.627,0.246,1.26,0.369,1.9,0.369c0.719,0,1.279-0.159,1.679-0.479s0.6-0.714,0.6-1.18v-0.04 c0-0.268-0.046-0.504-0.14-0.71c-0.094-0.207-0.264-0.394-0.512-0.561c-0.247-0.167-0.588-0.323-1.022-0.47 c-0.435-0.146-0.985-0.3-1.654-0.46c-0.735-0.187-1.387-0.394-1.955-0.62s-1.039-0.504-1.413-0.83 c-0.375-0.327-0.658-0.707-0.853-1.14c-0.193-0.434-0.291-0.938-0.291-1.511v-0.039c0-0.654,0.123-1.24,0.367-1.761 c0.245-0.52,0.586-0.96,1.021-1.319c0.437-0.36,0.961-0.634,1.573-0.82S148.99,248.985,149.723,248.985z"></path></g><g id="MinorTick"><rect x="160.692" y="16.011" transform="matrix(0.9962 0.0874 -0.0874 0.9962 2.5409 -14.0054)" fill="#FFFFFF" width="1" height="12"></rect><rect x="182.587" y="19.856" transform="matrix(0.9664 0.2572 -0.2572 0.9664 12.8101 -46.2215)" fill="#FFFFFF" width="1" height="12"></rect><rect x="160.692" y="16.011" transform="matrix(0.9962 0.0874 -0.0874 0.9962 2.5409 -14.0054)" fill="#FFFFFF" width="1" height="12"></rect><rect x="182.587" y="19.856" transform="matrix(0.9664 0.2572 -0.2572 0.9664 12.8101 -46.2215)" fill="#FFFFFF" width="1" height="12"></rect><rect x="203.8" y="27.562" transform="matrix(0.906 0.4232 -0.4232 0.906 33.4008 -83.3073)" fill="#FFFFFF" width="0.999" height="11.999"></rect><rect x="223.059" y="38.664" transform="matrix(0.8199 0.5725 -0.5725 0.8199 65.8283 -119.94)" fill="#FFFFFF" width="1" height="12"></rect><rect x="240.342" y="53.148" transform="matrix(0.7071 0.7071 -0.7071 0.7071 112.365 -152.9772)" fill="#FFFFFF" width="1" height="12"></rect><rect x="254.644" y="70.168" transform="matrix(0.5748 0.8183 -0.8183 0.5748 170.8135 -176.3959)" fill="#FFFFFF" width="1.001" height="11.999"></rect><rect x="265.941" y="89.706" transform="matrix(0.4222 0.9065 -0.9065 0.4222 240.7013 -186.23)" fill="#FFFFFF" width="0.999" height="11.999"></rect><rect x="273.558" y="110.591" transform="matrix(0.2606 0.9654 -0.9654 0.2606 315.189 -178.3829)" fill="#FFFFFF" width="1" height="12.001"></rect><rect x="277.487" y="132.789" transform="matrix(0.0869 0.9962 -0.9962 0.0869 392.0869 -150.2104)" fill="#FFFFFF" width="1" height="12"></rect><rect x="277.505" y="155.019" transform="matrix(-0.0849 0.9964 -0.9964 -0.0849 462.0464 -102.3105)" fill="#FFFFFF" width="1.001" height="12"></rect><rect x="273.601" y="177.249" transform="matrix(-0.26 0.9656 -0.9656 -0.26 522.3066 -33.7882)" fill="#FFFFFF" width="0.999" height="11.999"></rect><rect x="266.012" y="198.144" transform="matrix(-0.4217 0.9068 -0.9068 -0.4217 563.9971 48.5604)" fill="#FFFFFF" width="1.001" height="12"></rect><rect x="254.751" y="217.679" transform="matrix(-0.5744 0.8186 -0.8186 -0.5744 584.9633 143.2104)" fill="#FFFFFF" width="1" height="12"></rect><rect x="240.474" y="234.72" transform="matrix(-0.7056 0.7086 -0.7086 -0.7056 581.5832 239.8351)" fill="#FFFFFF" width="1.001" height="12"></rect><rect x="223.196" y="249.239" transform="matrix(-0.8198 0.5726 -0.5726 -0.8198 553.2398 336.3995)" fill="#FFFFFF" width="0.999" height="11.999"></rect><rect x="203.952" y="260.368" transform="matrix(-0.9057 0.424 -0.424 -0.9057 502.5573 420.9175)" fill="#FFFFFF" width="1" height="12"></rect><rect x="182.766" y="268.096" transform="matrix(-0.9659 0.2588 -0.2588 -0.9659 431.2275 491.4196)" fill="#FFFFFF" width="1" height="12"></rect><rect x="160.876" y="271.973" transform="matrix(-0.996 0.0889 -0.0889 -0.996 346.815 540.5063)" fill="#FFFFFF" width="1" height="12"></rect><rect x="138.308" y="271.989" transform="matrix(-0.9961 -0.088 0.088 -0.9961 252.6188 567.1107)" fill="#FFFFFF" width="0.999" height="11.999"></rect><rect x="116.411" y="268.143" transform="matrix(-0.9662 -0.2577 0.2577 -0.9662 159.2377 569.1542)" fill="#FFFFFF" width="1.001" height="12.001"></rect><rect x="95.217" y="260.446" transform="matrix(-0.9066 -0.422 0.422 -0.9066 70.0432 548.397)" fill="#FFFFFF" width="1" height="12.001"></rect><rect x="75.955" y="249.345" transform="matrix(-0.8203 -0.5719 0.5719 -0.8203 -6.8653 508.5334)" fill="#FFFFFF" width="1.001" height="12"></rect><rect x="58.658" y="234.851" transform="matrix(-0.7074 -0.7069 0.7069 -0.7074 -69.2468 453.0332)" fill="#FFFFFF" width="0.999" height="12"></rect><rect x="44.354" y="217.831" transform="matrix(-0.575 -0.8181 0.8181 -0.575 -112.4755 389.2383)" fill="#FFFFFF" width="1" height="12.001"></rect><rect x="33.069" y="198.316" transform="matrix(-0.4224 -0.9064 0.9064 -0.4224 -137.4416 321.0519)" fill="#FFFFFF" width="1" height="12"></rect><rect x="25.447" y="177.432" transform="matrix(-0.2611 -0.9653 0.9653 -0.2611 -144.3474 256.3734)" fill="#FFFFFF" width="1.001" height="12.001"></rect><rect x="21.513" y="155.21" transform="matrix(-0.086 -0.9963 0.9963 -0.086 -136.708 196.9975)" fill="#FFFFFF" width="1" height="11.999"></rect><rect x="21.495" y="132.979" transform="matrix(0.0864 -0.9963 0.9963 0.0864 -118.3643 148.8846)" fill="#FFFFFF" width="1" height="11.999"></rect><rect x="25.394" y="110.77" transform="matrix(0.2599 -0.9656 0.9656 0.2599 -93.5927 111.4317)" fill="#FFFFFF" width="1" height="12"></rect><rect x="32.98" y="89.873" transform="matrix(0.4207 -0.9072 0.9072 0.4207 -67.5814 85.916)" fill="#FFFFFF" width="1.001" height="12"></rect><rect x="44.251" y="70.321" transform="matrix(0.5746 -0.8184 0.8184 0.5746 -43.4261 69.0907)" fill="#FFFFFF" width="0.999" height="11.999"></rect><rect x="58.526" y="53.279" transform="matrix(0.7059 -0.7083 0.7083 0.7059 -24.6283 59.2444)" fill="#FFFFFF" width="1" height="12"></rect><rect x="75.67" y="38.854" transform="matrix(0.819 -0.5738 0.5738 0.819 -11.9496 51.8276)" fill="#FFFFFF" width="1" height="11.999"></rect><rect x="95.191" y="27.565" transform="matrix(0.9067 -0.4218 0.4218 0.9067 -5.2283 43.4992)" fill="#FFFFFF" width="1" height="12"></rect><rect x="116.075" y="19.946" transform="matrix(0.9654 -0.2606 0.2606 0.9654 -2.7332 31.2808)" fill="#FFFFFF" width="1" height="12"></rect><rect x="138.299" y="16.013" transform="matrix(0.9963 -0.086 0.086 0.9963 -1.3788 12.0178)" fill="#FFFFFF" width="0.999" height="11.998"></rect></g><g id="MajorTick"><rect x="149.5" y="15.5" fill="#FFFFFF" width="1" height="19"></rect><rect x="149.5" y="15.5" fill="#FFFFFF" width="1" height="19"></rect><rect x="171.213" y="17.4" transform="matrix(0.9848 0.1737 -0.1737 0.9848 7.2846 -29.4226)" fill="#FFFFFF" width="1.001" height="19"></rect><rect x="192.257" y="23.04" transform="matrix(0.9397 0.3419 -0.3419 0.9397 22.7415 -63.9424)" fill="#FFFFFF" width="1" height="19"></rect><rect x="212.01" y="32.253" transform="matrix(0.8659 0.5003 -0.5003 0.8659 49.3943 -100.7149)" fill="#FFFFFF" width="1" height="18.999"></rect><rect x="229.846" y="44.743" transform="matrix(0.7664 0.6424 -0.6424 0.7664 88.6591 -135.2998)" fill="#FFFFFF" width="1" height="19"></rect><rect x="245.258" y="60.155" transform="matrix(0.6424 0.7664 -0.7664 0.6424 141.2678 -163.4342)" fill="#FFFFFF" width="1" height="19"></rect><rect x="257.754" y="78.001" transform="matrix(0.5001 0.8659 -0.8659 0.5001 204.8648 -179.8958)" fill="#FFFFFF" width="1" height="19.001"></rect><rect x="266.964" y="97.756" transform="matrix(0.3416 0.9399 -0.9399 0.3416 276.9063 -180.7573)" fill="#FFFFFF" width="1.001" height="18.999"></rect><rect x="272.6" y="118.788" transform="matrix(0.1738 0.9848 -0.9848 0.1738 351.9664 -162.9529)" fill="#FFFFFF" width="1" height="19"></rect><rect x="265.5" y="149.501" fill="#FFFFFF" width="19" height="1"></rect><rect x="272.602" y="162.204" transform="matrix(-0.1729 0.9849 -0.9849 -0.1729 489.4509 -67.586)" fill="#FFFFFF" width="0.999" height="19"></rect><rect x="266.959" y="183.257" transform="matrix(-0.3428 0.9394 -0.9394 -0.3428 540.2145 7.5692)" fill="#FFFFFF" width="1" height="18.999"></rect><rect x="257.757" y="202.992" transform="matrix(-0.4992 0.8665 -0.8665 -0.4992 571.2993 94.7869)" fill="#FFFFFF" width="1" height="19"></rect><rect x="245.256" y="220.847" transform="matrix(-0.6434 0.7655 -0.7655 -0.6434 580.2156 190.4371)" fill="#FFFFFF" width="1" height="19"></rect><rect x="229.852" y="236.252" transform="matrix(-0.7655 0.6434 -0.6434 -0.7655 564.8129 285.6556)" fill="#FFFFFF" width="1" height="19"></rect><rect x="211.997" y="248.755" transform="matrix(-0.8663 0.4995 -0.4995 -0.8663 525.5846 375.8413)" fill="#FFFFFF" width="1.001" height="18.998"></rect><rect x="192.259" y="257.958" transform="matrix(-0.9399 0.3416 -0.3416 -0.9399 465.2851 452.9844)" fill="#FFFFFF" width="1.001" height="19"></rect><rect x="171.206" y="263.601" transform="matrix(-0.9848 0.1737 -0.1737 -0.9848 388.2477 512.2177)" fill="#FFFFFF" width="1.001" height="19"></rect><rect x="149.504" y="265.5" fill="#FFFFFF" width="1" height="19"></rect><rect x="127.79" y="263.6" transform="matrix(-0.9846 -0.1747 0.1747 -0.9846 206.9053 564.4099)" fill="#FFFFFF" width="1.001" height="18.999"></rect><rect x="106.758" y="257.964" transform="matrix(-0.9399 -0.3416 0.3416 -0.9399 116.7017 555.4796)" fill="#FFFFFF" width="1.001" height="19.001"></rect><rect x="87.003" y="248.755" transform="matrix(-0.8659 -0.5001 0.5001 -0.8659 34.1152 525.6537)" fill="#FFFFFF" width="1" height="19.001"></rect><rect x="69.157" y="236.259" transform="matrix(-0.7662 -0.6426 0.6426 -0.7662 -34.9068 478.8176)" fill="#FFFFFF" width="1" height="19.001"></rect><rect x="53.744" y="220.848" transform="matrix(-0.6419 -0.7668 0.7668 -0.6419 -87.5608 419.803)" fill="#FFFFFF" width="1.001" height="18.998"></rect><rect x="41.254" y="203.012" transform="matrix(-0.5003 -0.8659 0.8659 -0.5003 -121.3627 354.9823)" fill="#FFFFFF" width="1" height="19"></rect><rect x="32.04" y="183.259" transform="matrix(-0.3421 -0.9397 0.9397 -0.3421 -137.4522 289.2849)" fill="#FFFFFF" width="1.002" height="19"></rect><rect x="26.401" y="162.216" transform="matrix(-0.1744 -0.9847 0.9847 -0.1744 -137.4941 228.1463)" fill="#FFFFFF" width="1" height="19"></rect><rect x="15.501" y="149.503" fill="#FFFFFF" width="18.999" height="1"></rect><rect x="26.396" y="118.811" transform="matrix(0.1729 -0.9849 0.9849 0.1729 -104.1321 132.6214)" fill="#FFFFFF" width="1" height="19"></rect><rect x="32.035" y="97.757" transform="matrix(0.3428 -0.9394 0.9394 0.3428 -79.3761 101.0575)" fill="#FFFFFF" width="1" height="19"></rect><rect x="41.24" y="78.011" transform="matrix(0.4993 -0.8664 0.8664 0.4993 -54.9226 79.9771)" fill="#FFFFFF" width="1" height="19"></rect><rect x="53.74" y="60.157" transform="matrix(0.643 -0.7659 0.7659 0.643 -33.9834 66.4126)" fill="#FFFFFF" width="1.001" height="18.999"></rect><rect x="69.137" y="44.757" transform="matrix(0.7655 -0.6434 0.6434 0.7655 -18.5809 57.5258)" fill="#FFFFFF" width="0.999" height="19"></rect><rect x="86.99" y="32.253" transform="matrix(0.8664 -0.4993 0.4993 0.8664 -9.1608 49.2653)" fill="#FFFFFF" width="1" height="19"></rect><rect x="106.733" y="23.043" transform="matrix(0.9395 -0.3426 0.3426 0.9395 -4.6597 38.7082)" fill="#FFFFFF" width="1" height="19"></rect><rect x="127.786" y="17.401" transform="matrix(0.9848 -0.1737 0.1737 0.9848 -2.7226 22.6962)" fill="#FFFFFF" width="1.001" height="18.999"></rect></g></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(692),i(6393),i(204),i(6394)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i],{_setDefaultWidth:function(){this._defaultSVGWidth=300},getSvgFileName:function(){return"AirspeedIndicator"},getSVGFileText:function(e){return o},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth();var e=this.SVGDocument,t=0,i=-10,n=0;this.tickValueVector=[null,null,null,null,null,null,null,null,null,null],this.initializeConstants(126,324,e,t,t,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(533),i(959),i(405),i(456),i(284)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([n,o],{initializeConstants:function(e,t,i,n,o,r,a,s){this.startAngle=e,this.angularSpan=t,this.defaultLabelHeight=13,this.fontSize=10,this.defaultFontSize=10;var l=this.SVGDocument.getElementById("Center");this.centerX=parseFloat(l.getAttribute("cx")),this.centerY=parseFloat(l.getAttribute("cy")),this.radius=135,this.scaleColorRadius=this.radius+a},setMajorTickValues:function(e){for(var t=(e[1]-e[0])/9,i=0,n=!0,o=10;n;)t*o>1&&(n=!1),o*=10,i++;i++;for(var r=0;r<=9;r++){var a=this.SVGDocument.getElementById("Major_Ticks_"+r),s=e[0]+t*r;s=s.toFixed()-s==0?s.toFixed():s.toFixed(i),this.tickValueVector[r]!==s&&(this.tickValueVector[r]=s,a.textContent=s.toString())}},setValue:function(e,t,i,n){var o=-this.needlePeggingPosition,a=this.angularSpan+this.needlePeggingPosition,s=0;s=t>=e[0]&&t<=e[1]?this._computeNeedleAngleForValue(t,e,"clockwise"):t<e[0]?o:a,n&&this._rotateNeedle(r.toPositiveAngle(s))},computeTickPositions:function(e,t,i){for(var n=e[1]-e[0],o=[],r=0;r<t.length;r++)o[r]="clockwise"===i?(t[r]-e[0])/n*this.angularSpan+this.startAngle:this.startAngle+this.angularSpan-(t[r]-e[0])/n*this.angularSpan;return o},calculateLabelPosition:function(e,t,i,n){var o=this.majorTickLabelRadius*this.scalingFactor;void 0!==this.labelNonScaledOffsetFromMajorTickMark&&(o+=this.labelNonScaledOffsetFromMajorTickMark);var a=n.x-i.x+n.w/2,s=n.y-i.y+n.h/2,l=a-o*Math.cos(r.toRadians(e)),c=s-o*Math.sin(r.toRadians(e));return this.fineTuneLabelPositions(e,t,l,c,i)},_adjustForHorizontalCropping:function(e,t,i){var n=e;return i.x+e+t.w>i.x+i.w&&(n=i.w-t.w),e<0&&(n=0),n},_adjustForVerticalCropping:function(e,t,i){var n=e;return i.y+e+t.h>i.y+i.h&&(n=i.h-t.h),e<0&&(n=0),n},positionLabel:function(e,t,n,o){i.set(e,{left:t.x+"px",top:t.y+"px"})},_computeNeedleAngleForValue:function(e,t,i){var n=t[1]-t[0],o=(e-t[0])/n*this.angularSpan;return"clockwise"===i?o:this.angularSpan-o},_rotateNeedle:function(e){this.SVGDocument.getElementById("Needle").setAttribute("transform","rotate("+e+", "+this.centerX+", "+this.centerY+")")},setScaleColors:function(e,t,i,n){var o=this.constrainScaleColorLimitsToScaleLimits(e,i,t);t=o.scaleColors,i=o.scaleColorLimits;var s,l=this.SVGDocument.getElementById("Scale_Color");a.removeChildNodes(l);for(var c=0;c<i.length;c++){s=0===c?this.scaleColorRadius-5:this.scaleColorRadius;var d=this.computeTickPositions(e,i[c],"clockwise"),u={},h=this.centerX-s*Math.cos(r.toRadians(d[0])),p=this.centerY-s*Math.sin(r.toRadians(d[0])),f=this.centerX-s*Math.cos(r.toRadians(d[1])),g=this.centerY-s*Math.sin(r.toRadians(d[1])),m=(i[c][0]-e[0])/(e[1]-e[0])*this.angularSpan,_=(i[c][1]-e[0])/(e[1]-e[0])*this.angularSpan,v=0;Math.abs(_-m)>=180&&(v=1);var b=1;0,u.d="M "+h+","+p+" A"+s+","+s+" 0 "+v+","+b+" "+f+","+g;var y="#"+this.toColorString(t[c][0])+this.toColorString(t[c][1])+this.toColorString(t[c][2]);u.stroke=y,u.fill="none",u["stroke-width"]=5,u.id="scaleColor_"+c,a.addNewElement(l,"path",u)}},toColorString:function(e){var t=Math.round(e).toString(16);return 1===t.length&&(t="0"+t),t}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve"><g id="bg"><circle cx="150" cy="150" r="150"></circle><linearGradient id="SVGID_1_AirspeedIndicator" gradientUnits="userSpaceOnUse" x1="149.9995" y1="-62.3335" x2="149.9995" y2="424.3363"><stop offset="0" style="stop-color:#FFFFFF"></stop><stop offset="1" style="stop-color:#000000"></stop></linearGradient><path fill="url(#SVGID_1_AirspeedIndicator)" d="M150,4c38.997,0,75.661,15.187,103.237,42.762C280.813,74.338,296,111.002,296,150 s-15.188,75.662-42.763,103.237C225.661,280.813,188.997,296,150,296c-38.998,0-75.662-15.187-103.238-42.763 C19.187,225.662,4,188.998,4,150S19.187,74.338,46.762,46.762C74.338,19.187,111.002,4,150,4 M150,0C67.157,0,0,67.157,0,150 s67.157,150,150,150c82.842,0,150-67.157,150-150S232.842,0,150,0L150,0z"></path><g id="values"><text id="Major_Ticks_0" transform="matrix(1 0 0 1 200.1729 76.1934)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">40</text><text id="Major_Ticks_1" transform="matrix(1 0 0 1 235.3066 123.8574)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">80</text><text id="Major_Ticks_2" transform="matrix(1 0 0 1 228.9355 188.6104)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">120</text><text id="Major_Ticks_3" transform="matrix(1 0 0 1 196.0068 236.9453)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">160</text><text id="Major_Ticks_4" transform="matrix(1 0 0 1 137.5244 259.9678)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">200</text><text id="Major_Ticks_5" transform="matrix(1 0 0 1 79.4688 236.9453)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">240</text><text id="Major_Ticks_6" transform="matrix(1 0 0 1 47.1934 187.5234)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">280</text><text id="Major_Ticks_7" transform="matrix(1 0 0 1 47.0127 123.8574)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">320</text><text id="Major_Ticks_8" transform="matrix(1 0 0 1 74.4648 76.1934)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">360</text><text id="Major_Ticks_9" transform="matrix(1 0 0 1 136.8799 53.5029)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">400</text></g><g id="MajorTick"><rect x="149.5" y="14.75" fill="#FFFFFF" width="1" height="19.5"></rect><rect x="223.267" y="38.718" transform="matrix(0.8088 0.5881 -0.5881 0.8088 71.2818 -122.3213)" fill="#FFFFFF" width="1" height="19.5"></rect><rect x="268.86" y="101.478" transform="matrix(0.3095 0.9509 -0.9509 0.3095 291.7646 -179.3316)" fill="#FFFFFF" width="1" height="19.5"></rect><rect x="268.854" y="179.041" transform="matrix(-0.3095 0.9509 -0.9509 -0.3095 532.2369 -8.9113)" fill="#FFFFFF" width="1" height="19.5"></rect><rect x="223.267" y="241.781" transform="matrix(-0.8088 0.5881 -0.5881 -0.8088 552.6688 323.3874)" fill="#FFFFFF" width="1" height="19.5"></rect><rect x="149.5" y="265.75" fill="#FFFFFF" width="1" height="19.5"></rect><rect x="75.725" y="241.776" transform="matrix(-0.8096 -0.587 0.587 -0.8096 -9.6948 499.9082)" fill="#FFFFFF" width="1" height="19.5"></rect><rect x="30.139" y="179.022" transform="matrix(-0.3083 -0.9513 0.9513 -0.3083 -139.4896 276.12)" fill="#FFFFFF" width="1.001" height="19.5"></rect><rect x="30.142" y="101.47" transform="matrix(0.309 -0.951 0.951 0.309 -84.6032 105.9904)" fill="#FFFFFF" width="1" height="19.5"></rect><rect x="75.732" y="38.72" transform="matrix(0.8092 -0.5875 0.5875 0.8092 -13.9327 54.0337)" fill="#FFFFFF" width="1" height="19.5"></rect></g><g id="MinorTick"><rect x="129.403" y="16.188" transform="matrix(0.9876 -0.1567 0.1567 0.9876 -2.012 20.6429)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="109.793" y="20.896" transform="matrix(0.951 -0.3092 0.3092 0.951 -3.1877 35.4627)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="91.169" y="28.609" transform="matrix(0.8908 -0.4544 0.4544 0.8908 -6.1215 45.5337)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="58.637" y="52.243" transform="matrix(0.7069 -0.7074 0.7074 0.7069 -24.4946 59.1657)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="45.54" y="67.579" transform="matrix(0.5875 -0.8092 0.8092 0.5875 -41.2725 67.9758)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="35.007" y="84.767" transform="matrix(0.4536 -0.8912 0.8912 0.4536 -62.2861 81.7215)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="22.582" y="123.002" transform="matrix(0.1562 -0.9877 0.9877 0.1562 -108.8232 132.3991)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="14.607" y="149.5" fill="#FFFFFF" width="13.785" height="1"></rect><rect x="22.581" y="163.203" transform="matrix(-0.1573 -0.9876 0.9876 -0.1573 -141.2689 219.6402)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="35.005" y="201.446" transform="matrix(-0.4538 -0.8911 0.8911 -0.4538 -134.0276 334.5287)" fill="#FFFFFF" width="1.001" height="13.785"></rect><rect x="45.543" y="218.641" transform="matrix(-0.5879 -0.8089 0.8089 -0.5879 -109.3271 395.3721)" fill="#FFFFFF" width="1.001" height="13.785"></rect><rect x="58.635" y="233.97" transform="matrix(-0.7078 -0.7064 0.7064 -0.7078 -69.1456 453.1265)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="91.154" y="257.598" transform="matrix(-0.891 -0.454 0.454 -0.891 53.2279 541.7607)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="109.786" y="265.316" transform="matrix(-0.9511 -0.3087 0.3087 -0.9511 131.1402 565.1682)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="129.387" y="270.023" transform="matrix(-0.9877 -0.1562 0.1562 -0.9877 214.9135 570.7246)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="169.597" y="270.026" transform="matrix(-0.9876 0.1573 -0.1573 -0.9876 381.6278 523.6414)" fill="#FFFFFF" width="1" height="13.786"></rect><rect x="189.207" y="265.318" transform="matrix(-0.9509 0.3095 -0.3095 -0.9509 454.3453 472.3474)" fill="#FFFFFF" width="1" height="13.786"></rect><rect x="207.831" y="257.605" transform="matrix(-0.8911 0.4538 -0.4538 -0.8911 514.0115 405.6384)" fill="#FFFFFF" width="1.001" height="13.785"></rect><rect x="240.358" y="233.976" transform="matrix(-0.7066 0.7076 -0.7076 -0.7066 581.49 240.6411)" fill="#FFFFFF" width="1.001" height="13.785"></rect><rect x="253.456" y="218.641" transform="matrix(-0.5881 0.8088 -0.8088 -0.5881 585.7126 152.7552)" fill="#FFFFFF" width="1" height="13.785"></rect><rect x="263.99" y="201.454" transform="matrix(-0.4531 0.8915 -0.8915 -0.4531 570.0575 66.9534)" fill="#FFFFFF" width="1" height="13.786"></rect><rect x="276.418" y="163.212" transform="matrix(-0.1562 0.9877 -0.9877 -0.1562 488.1803 -76.8514)" fill="#FFFFFF" width="1.001" height="13.785"></rect><rect x="271.607" y="149.5" fill="#FFFFFF" width="13.785" height="1.001"></rect><rect x="276.42" y="123.011" transform="matrix(0.1573 0.9875 -0.9875 0.1573 361.6335 -164.0061)" fill="#FFFFFF" width="0.999" height="13.785"></rect><rect x="264.001" y="84.782" transform="matrix(0.4546 0.8907 -0.8907 0.4546 225.9093 -185.5905)" fill="#FFFFFF" width="1.001" height="13.786"></rect><rect x="253.465" y="67.587" transform="matrix(0.5874 0.8093 -0.8093 0.5874 165.0743 -174.8078)" fill="#FFFFFF" width="1.001" height="13.785"></rect><rect x="240.375" y="52.255" transform="matrix(0.7076 0.7066 -0.7066 0.7076 112.2278 -152.9115)" fill="#FFFFFF" width="0.999" height="13.785"></rect></g><g id="Strings"><path fill="#CCCCCC" d="M113.548,96.119h0.899l5.868,12.69h-1.025l-1.603-3.528h-7.434l-1.603,3.528h-0.972L113.548,96.119z M117.292,104.436l-3.313-7.29l-3.33,7.29H117.292z"></path><path fill="#CCCCCC" d="M122.207,96.21h0.936v12.6h-0.936V96.21z"></path><path fill="#CCCCCC" d="M126.112,96.21h5.292c0.78,0,1.47,0.11,2.07,0.333c0.6,0.222,1.092,0.524,1.476,0.908 c0.3,0.301,0.534,0.651,0.702,1.054s0.252,0.831,0.252,1.287v0.035c0,0.528-0.093,0.999-0.279,1.413 c-0.186,0.414-0.444,0.771-0.773,1.071c-0.33,0.3-0.721,0.543-1.17,0.729c-0.45,0.186-0.939,0.314-1.468,0.387l4.158,5.382h-1.188 l-4.015-5.22h-0.036h-4.086v5.22h-0.936V96.21z M131.295,102.743c0.528,0,1.018-0.065,1.468-0.198 c0.449-0.132,0.837-0.321,1.16-0.568c0.324-0.247,0.579-0.548,0.766-0.903c0.186-0.354,0.278-0.762,0.278-1.219v-0.036 c0-0.854-0.314-1.528-0.944-2.022c-0.63-0.493-1.521-0.74-2.673-0.74h-4.303v5.688H131.295z"></path><path fill="#CCCCCC" d="M142.492,108.989c-1.008,0-1.917-0.168-2.727-0.504c-0.811-0.336-1.593-0.84-2.35-1.512l0.612-0.702 c0.348,0.324,0.693,0.604,1.035,0.837c0.342,0.234,0.693,0.426,1.053,0.576c0.36,0.15,0.738,0.264,1.135,0.342 c0.396,0.078,0.827,0.117,1.296,0.117c0.468,0,0.899-0.063,1.296-0.189c0.396-0.126,0.731-0.3,1.008-0.521 c0.275-0.222,0.492-0.486,0.647-0.792c0.156-0.306,0.234-0.639,0.234-0.999v-0.036c0-0.336-0.051-0.636-0.153-0.899 c-0.102-0.265-0.288-0.505-0.558-0.721s-0.633-0.411-1.089-0.585s-1.044-0.333-1.764-0.477c-0.757-0.156-1.404-0.339-1.944-0.549 s-0.981-0.456-1.323-0.738s-0.591-0.609-0.747-0.981c-0.156-0.371-0.233-0.798-0.233-1.277v-0.036 c0-0.468,0.102-0.903,0.306-1.306c0.204-0.401,0.486-0.753,0.846-1.053c0.36-0.3,0.786-0.533,1.278-0.702 c0.492-0.168,1.032-0.252,1.62-0.252c0.911,0,1.701,0.126,2.367,0.378s1.316,0.637,1.952,1.152l-0.594,0.738 c-0.6-0.516-1.203-0.882-1.809-1.099c-0.606-0.216-1.258-0.323-1.953-0.323c-0.468,0-0.891,0.063-1.27,0.188 c-0.378,0.126-0.701,0.297-0.972,0.513c-0.27,0.217-0.477,0.469-0.621,0.757c-0.144,0.287-0.216,0.594-0.216,0.918v0.035 c0,0.337,0.051,0.64,0.153,0.909c0.102,0.271,0.288,0.517,0.558,0.738c0.271,0.223,0.645,0.423,1.125,0.603 c0.479,0.181,1.092,0.349,1.836,0.505c1.464,0.3,2.521,0.723,3.168,1.269c0.648,0.546,0.973,1.281,0.973,2.205v0.036 c0,0.504-0.105,0.969-0.315,1.395c-0.21,0.427-0.498,0.789-0.864,1.089c-0.366,0.301-0.804,0.534-1.313,0.702 C143.665,108.905,143.104,108.989,142.492,108.989z"></path><path fill="#CCCCCC" d="M148.846,96.21h4.573c0.695,0,1.328,0.087,1.897,0.261c0.571,0.174,1.063,0.426,1.478,0.756 c0.414,0.33,0.734,0.732,0.963,1.206c0.228,0.475,0.342,1.017,0.342,1.629v0.036c0,0.66-0.132,1.242-0.396,1.746 c-0.264,0.504-0.62,0.924-1.07,1.26s-0.974,0.588-1.566,0.756c-0.595,0.168-1.221,0.252-1.881,0.252h-3.403v4.698h-0.936V96.21z M153.238,103.266c0.588,0,1.122-0.072,1.603-0.217c0.479-0.146,0.891-0.354,1.232-0.625c0.343-0.271,0.609-0.601,0.802-0.987 c0.191-0.386,0.288-0.814,0.288-1.285v-0.036c0-0.507-0.094-0.95-0.279-1.33c-0.187-0.381-0.447-0.697-0.783-0.951 c-0.336-0.253-0.738-0.446-1.206-0.579s-0.984-0.199-1.549-0.199h-3.564v6.21H153.238z"></path><path fill="#CCCCCC" d="M159.971,96.21h8.964v0.846h-8.028v4.986h7.219v0.846h-7.219v5.076h8.118v0.846h-9.054V96.21z"></path><path fill="#CCCCCC" d="M171.129,96.21h8.965v0.846h-8.028v4.986h7.218v0.846h-7.218v5.076h8.118v0.846h-9.055V96.21z"></path><path fill="#CCCCCC" d="M182.29,96.21h4.194c0.983,0,1.887,0.159,2.709,0.477c0.821,0.318,1.529,0.759,2.123,1.323 c0.595,0.564,1.054,1.227,1.378,1.989c0.323,0.762,0.485,1.587,0.485,2.475v0.036c0,0.888-0.162,1.716-0.485,2.483 c-0.324,0.769-0.783,1.435-1.378,1.998c-0.594,0.564-1.302,1.009-2.123,1.332c-0.822,0.324-1.726,0.486-2.709,0.486h-4.194V96.21z M186.484,107.964c0.875,0,1.667-0.142,2.376-0.425c0.708-0.283,1.308-0.668,1.8-1.155c0.492-0.488,0.873-1.06,1.143-1.716 c0.271-0.656,0.405-1.363,0.405-2.122v-0.036c0-0.747-0.135-1.451-0.405-2.113c-0.27-0.662-0.65-1.239-1.143-1.733 s-1.092-0.885-1.8-1.174c-0.709-0.289-1.501-0.434-2.376-0.434h-3.259v10.908H186.484z"></path><path fill="#CCCCCC" d="M124.29,208.95h1.708v4.928l4.662-4.928h2.114l-4.074,4.214l4.256,5.586h-2.086l-3.346-4.41l-1.526,1.568 v2.842h-1.708V208.95z"></path><path fill="#CCCCCC" d="M134.439,208.95h1.593l5.239,6.775v-6.775h1.708v9.8h-1.438l-5.394-6.972v6.972h-1.708V208.95z"></path><path fill="#CCCCCC" d="M150.176,218.918c-0.756,0-1.446-0.133-2.071-0.399c-0.626-0.266-1.162-0.627-1.61-1.085 c-0.448-0.457-0.798-0.991-1.05-1.603s-0.378-1.263-0.378-1.953v-0.028c0-0.69,0.126-1.341,0.378-1.952s0.606-1.148,1.063-1.61 c0.458-0.462,0.999-0.828,1.624-1.099c0.626-0.271,1.316-0.406,2.072-0.406s1.446,0.133,2.072,0.398 c0.625,0.267,1.162,0.628,1.61,1.085c0.447,0.458,0.798,0.992,1.05,1.604s0.378,1.263,0.378,1.953v0.027 c0,0.691-0.126,1.342-0.378,1.953s-0.607,1.148-1.064,1.61s-0.999,0.828-1.624,1.099S150.933,218.918,150.176,218.918z M150.204,217.336c0.483,0,0.927-0.091,1.331-0.272c0.404-0.183,0.751-0.43,1.039-0.742s0.513-0.68,0.676-1.1 s0.244-0.868,0.244-1.344v-0.028c0-0.476-0.081-0.926-0.244-1.351s-0.391-0.793-0.683-1.106c-0.293-0.313-0.644-0.562-1.053-0.749 c-0.409-0.187-0.855-0.279-1.339-0.279s-0.927,0.091-1.331,0.272c-0.404,0.183-0.75,0.43-1.038,0.742s-0.514,0.679-0.677,1.099 c-0.162,0.421-0.243,0.868-0.243,1.345v0.027c0,0.477,0.081,0.927,0.243,1.352c0.163,0.425,0.391,0.793,0.684,1.105 c0.293,0.313,0.644,0.563,1.053,0.749C149.274,217.243,149.721,217.336,150.204,217.336z"></path><path fill="#CCCCCC" d="M159.808,210.546h-3.108v-1.596h7.952v1.596h-3.107v8.204h-1.736V210.546z"></path><path fill="#CCCCCC" d="M169.916,218.89c-0.756,0-1.479-0.128-2.17-0.385c-0.691-0.257-1.33-0.651-1.918-1.183l1.036-1.232 c0.476,0.411,0.956,0.726,1.441,0.945s1.036,0.329,1.652,0.329c0.532,0,0.954-0.112,1.267-0.336 c0.313-0.225,0.47-0.522,0.47-0.896v-0.028c0-0.177-0.031-0.333-0.092-0.469c-0.061-0.135-0.173-0.264-0.337-0.385 s-0.389-0.233-0.674-0.336s-0.657-0.205-1.115-0.308c-0.524-0.122-0.99-0.26-1.396-0.413c-0.407-0.154-0.749-0.341-1.025-0.561 c-0.275-0.219-0.486-0.487-0.631-0.805c-0.146-0.317-0.218-0.7-0.218-1.148v-0.027c0-0.42,0.083-0.806,0.25-1.155 c0.166-0.35,0.396-0.648,0.687-0.896c0.292-0.247,0.643-0.44,1.053-0.581c0.409-0.14,0.857-0.21,1.343-0.21 c0.719,0,1.365,0.105,1.938,0.315c0.574,0.21,1.113,0.516,1.617,0.917l-0.924,1.302c-0.448-0.326-0.892-0.576-1.33-0.749 c-0.438-0.172-0.882-0.259-1.33-0.259c-0.504,0-0.896,0.112-1.176,0.336c-0.28,0.225-0.42,0.5-0.42,0.826v0.028 c0,0.187,0.032,0.352,0.098,0.497c0.065,0.145,0.185,0.275,0.358,0.392c0.173,0.117,0.411,0.227,0.716,0.329 c0.304,0.103,0.69,0.21,1.158,0.322c0.515,0.131,0.971,0.275,1.368,0.434c0.397,0.159,0.728,0.353,0.989,0.581 c0.263,0.229,0.461,0.495,0.597,0.798c0.136,0.304,0.204,0.656,0.204,1.057v0.028c0,0.458-0.086,0.868-0.258,1.232 c-0.171,0.363-0.409,0.672-0.715,0.924s-0.672,0.443-1.101,0.574C170.9,218.824,170.429,218.89,169.916,218.89z"></path></g></g><g id="Layer_4"></g><g id="Needle"><g id="moves"><polygon fill="#FFFFFF" points="219.364,54.53 210.531,60.057 157.999,132.708 164.353,137.302 216.884,64.65 "></polygon><path fill="#4D4D4D" d="M130.995,183.436l33.358-46.134l-6.354-4.594l-33.358,46.135c-3.198-0.53-6.567,0.719-8.595,3.523 c-2.854,3.947-1.968,9.462,1.979,12.315c3.948,2.854,9.461,1.969,12.316-1.979C132.369,189.897,132.5,186.307,130.995,183.436z"></path></g><circle id="Center" fill="#4D4D4D" stroke="#808080" cx="150" cy="150" r="8.302"></circle></g><g id="Scale_Color">\x3c!-- Scale Colors are added to this group. This is empty at the beginning because there are no scale colors when a gauge is first created. DO NOT MOVE THIS ELEMENT. --\x3e</g></svg>'},function(e,t,i){var n,o;n=[i(203),i(692),i(6396),i(405),i(204),i(6397)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i],{_setDefaultWidth:function(){this._defaultSVGWidth=300},getSvgFileName:function(){return"Altimeter"},getSVGFileText:function(e){return r},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth();var e=this.SVGDocument,t=15,i=10,n=5;this.initializeConstants(0,360,e,t,t,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(533),i(405),i(456)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{initializeConstants:function(e,t,i,n,o,r,a,s){this.startAngle=e,this.angularSpan=t,this.defaultLabelHeight=13,this.fontSize=10,this.defaultFontSize=10;var l=this.SVGDocument.getElementById("Center");this.centerX=parseFloat(l.getAttribute("cx")),this.centerY=parseFloat(l.getAttribute("cy"))},setMajorTickValues:function(e){},setValue:function(e,t,i,n){if(n){"counterclockwise",t<0&&(t=0),t>1e5&&(t=1e5);var r=36*t/1e4,a=36*t/100,s=36*t/1e3;this._rotateNeedle(o.toPositiveAngle(r),o.toPositiveAngle(a),o.toPositiveAngle(s));var l=this.SVGDocument.getElementById("AltVal1"),c=this.SVGDocument.getElementById("AltVal2"),d=this.SVGDocument.getElementById("AltVal3"),u=this.SVGDocument.getElementById("AltVal3up"),h=this.SVGDocument.getElementById("AltVal3down"),p=this.SVGDocument.getElementById("AltVal4"),f=Math.floor(t).toString(),g="000";g=g.concat(f),l.textContent=g.charAt(g.length-1),c.textContent=g.charAt(g.length-2),d.textContent=g.charAt(g.length-3),p.textContent=g.charAt(g.length-4);var m=parseFloat(g.charAt(g.length-3))-1,_=parseFloat(g.charAt(g.length-3))+1;-1===m&&(m=9),10===_&&(_=0),u.textContent=m.toString(),h.textContent=_.toString()}},drawTickLines:function(e,t,i,n){},computeTickPositions:function(e,t,i){},calculateLabelPosition:function(e,t,i,n){},_adjustForHorizontalCropping:function(e,t,i){},_adjustForVerticalCropping:function(e,t,i){},positionLabel:function(e,t,n,o){i.set(e,{left:t.x+"px",top:t.y+"px"})},_computeNeedleAngleForValue:function(e,t,i){var n=t[1]-t[0],o=(e-t[0])/n*this.angularSpan;return"clockwise"===i?o:this.angularSpan-o},_rotateNeedle:function(e,t,i){var n=this.SVGDocument.getElementById("Needle1"),o=this.SVGDocument.getElementById("Needle2"),r=this.SVGDocument.getElementById("Needle3");n.setAttribute("transform","rotate("+e+", "+this.centerX+", "+this.centerY+")"),o.setAttribute("transform","rotate("+t+", "+this.centerX+", "+this.centerY+")"),r.setAttribute("transform","rotate("+i+", "+this.centerX+", "+this.centerY+")")},setScaleColors:function(e,t,i,n){}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve"><g id="bg"><circle cx="150" cy="150" r="150"></circle><linearGradient id="SVGID_1_Altimeter" gradientUnits="userSpaceOnUse" x1="149.9995" y1="-62.3335" x2="149.9995" y2="424.3363"><stop offset="0" style="stop-color:#FFFFFF"></stop><stop offset="1" style="stop-color:#000000"></stop></linearGradient><path fill="url(#SVGID_1_Altimeter)" d="M150,4c38.998,0,75.662,15.187,103.238,42.763C280.813,74.338,296,111.002,296,150 s-15.187,75.662-42.762,103.238C225.662,280.813,188.998,296,150,296s-75.661-15.187-103.237-42.762 C19.187,225.662,4,188.998,4,150S19.187,74.338,46.763,46.763C74.339,19.187,111.002,4,150,4 M150,0C67.157,0,0,67.157,0,150 s67.157,150,150,150s150-67.157,150-150S232.843,0,150,0L150,0z"></path><g><path fill="#F2F2F2" d="M90.699,47.247l-1.046,1.29l-0.392-0.318l1.215-1.574l0.401-0.253l4.365,6.952l-0.512,0.322L90.699,47.247 z"></path><path fill="#F2F2F2" d="M99.777,50.877c-0.457,0.248-0.921,0.374-1.393,0.375c-0.473,0.002-0.928-0.097-1.368-0.294 c-0.439-0.199-0.85-0.484-1.229-0.856c-0.38-0.372-0.704-0.803-0.971-1.294l-0.011-0.021c-0.268-0.491-0.454-0.999-0.56-1.524 c-0.106-0.526-0.121-1.029-0.046-1.506c0.075-0.479,0.24-0.918,0.495-1.318c0.255-0.4,0.61-0.725,1.068-0.974 c0.456-0.248,0.921-0.374,1.394-0.375c0.472,0,0.929,0.097,1.367,0.294c0.44,0.199,0.85,0.484,1.229,0.856 c0.38,0.372,0.704,0.803,0.972,1.294l0.011,0.021c0.268,0.491,0.454,0.999,0.56,1.524c0.106,0.526,0.121,1.029,0.046,1.507 c-0.075,0.479-0.24,0.917-0.494,1.317C100.589,50.303,100.233,50.627,99.777,50.877z M99.535,50.385 c0.368-0.201,0.652-0.47,0.852-0.809c0.201-0.339,0.323-0.713,0.369-1.124c0.046-0.41,0.021-0.837-0.077-1.284 c-0.098-0.445-0.26-0.877-0.487-1.292l-0.011-0.021c-0.226-0.416-0.501-0.787-0.826-1.114c-0.324-0.327-0.673-0.581-1.046-0.762 c-0.373-0.181-0.759-0.28-1.157-0.298s-0.781,0.075-1.149,0.276c-0.368,0.201-0.652,0.47-0.852,0.809 c-0.2,0.34-0.323,0.714-0.369,1.123c-0.046,0.411-0.021,0.838,0.077,1.285c0.099,0.447,0.26,0.877,0.487,1.293l0.011,0.021 c0.227,0.416,0.501,0.786,0.824,1.109c0.322,0.323,0.671,0.578,1.046,0.762c0.375,0.185,0.761,0.286,1.16,0.303 S99.167,50.585,99.535,50.385z"></path><path fill="#F2F2F2" d="M106.975,47.329c-0.476,0.211-0.949,0.296-1.42,0.259c-0.471-0.039-0.916-0.174-1.338-0.408 c-0.421-0.234-0.806-0.552-1.154-0.954c-0.347-0.403-0.634-0.86-0.859-1.371l-0.01-0.021c-0.226-0.512-0.369-1.034-0.431-1.566 c-0.062-0.533-0.036-1.035,0.079-1.505c0.114-0.472,0.315-0.895,0.603-1.272c0.287-0.377,0.668-0.672,1.145-0.881 c0.475-0.211,0.949-0.297,1.419-0.258c0.471,0.038,0.917,0.174,1.339,0.408c0.422,0.233,0.807,0.551,1.153,0.954 c0.348,0.402,0.634,0.859,0.86,1.37l0.01,0.021c0.226,0.512,0.369,1.033,0.431,1.566c0.062,0.534,0.035,1.036-0.08,1.506 c-0.114,0.47-0.315,0.895-0.603,1.272C107.833,46.826,107.451,47.119,106.975,47.329z M106.775,46.819 c0.383-0.17,0.688-0.415,0.916-0.736c0.228-0.321,0.381-0.684,0.461-1.088c0.08-0.405,0.09-0.833,0.03-1.287 c-0.06-0.452-0.186-0.895-0.377-1.329l-0.009-0.021c-0.192-0.433-0.436-0.826-0.731-1.179c-0.296-0.353-0.623-0.636-0.979-0.847 c-0.357-0.211-0.733-0.342-1.129-0.392c-0.396-0.051-0.785,0.01-1.168,0.179c-0.384,0.169-0.688,0.415-0.916,0.735 c-0.227,0.321-0.381,0.685-0.461,1.089s-0.09,0.834-0.03,1.286c0.061,0.454,0.186,0.896,0.377,1.329l0.009,0.021 c0.191,0.433,0.434,0.824,0.729,1.174c0.295,0.35,0.621,0.632,0.979,0.847c0.358,0.216,0.735,0.349,1.131,0.398 C106.002,47.048,106.392,46.988,106.775,46.819z"></path><path fill="#F2F2F2" d="M112.446,36.279l5.481-1.705l0.162,0.523l-4.903,1.524l0.999,3.214l4.403-1.369l0.163,0.523l-4.403,1.37 l1.096,3.524l-0.579,0.18L112.446,36.279z"></path><path fill="#F2F2F2" d="M120.181,33.986l5.653-1.289l0.122,0.533l-5.063,1.155l0.717,3.144l4.553-1.038l0.121,0.534l-4.552,1.039 l0.73,3.201l5.121-1.168l0.121,0.534l-5.709,1.302L120.181,33.986z"></path><path fill="#F2F2F2" d="M128.213,32.268l5.737-0.848l0.08,0.542l-5.137,0.758l0.471,3.19l4.619-0.682l0.08,0.542l-4.619,0.682 l0.479,3.248l5.195-0.767l0.08,0.542l-5.794,0.855L128.213,32.268z"></path><path fill="#F2F2F2" d="M138.65,31.565l-2.834,0.201l-0.038-0.547l6.272-0.442l0.039,0.546l-2.834,0.2l0.533,7.584l-0.604,0.042 L138.65,31.565z"></path></g><g><path fill="#F2F2F2" d="M134.382,77.233h1.2l7.824,16.92h-1.368l-2.136-4.704h-9.912l-2.137,4.704h-1.296L134.382,77.233z M139.375,88.321l-4.416-9.72l-4.44,9.72H139.375z"></path><path fill="#F2F2F2" d="M146.958,77.354h1.248v15.672h9.864v1.128h-11.112V77.354z"></path><path fill="#F2F2F2" d="M166.47,78.481h-5.856v-1.128h12.96v1.128h-5.855v15.672h-1.248V78.481z"></path></g><g><path fill="#05C3FF" d="M51.552,132.705v-0.568c0.263-0.012,0.447-0.029,0.553-0.053c0.167-0.037,0.304-0.111,0.409-0.223 c0.071-0.076,0.126-0.178,0.163-0.305c0.021-0.076,0.032-0.133,0.032-0.17h0.697v4.248h-0.855v-2.93H51.552z"></path><path fill="#05C3FF" d="M57.264,131.928c0.217,0.381,0.326,0.922,0.326,1.623s-0.109,1.241-0.326,1.62 c-0.219,0.379-0.598,0.568-1.139,0.568s-0.921-0.189-1.139-0.568s-0.326-0.919-0.326-1.62s0.108-1.242,0.326-1.623 s0.598-0.571,1.139-0.571S57.045,131.547,57.264,131.928z M55.633,134.672c0.08,0.259,0.244,0.388,0.492,0.388 s0.41-0.129,0.488-0.388c0.076-0.259,0.115-0.632,0.115-1.121c0-0.512-0.039-0.891-0.115-1.137 c-0.078-0.246-0.24-0.369-0.488-0.369s-0.412,0.123-0.492,0.369s-0.12,0.625-0.12,1.137 C55.513,134.04,55.553,134.413,55.633,134.672z"></path><path fill="#05C3FF" d="M60.601,131.928c0.217,0.381,0.326,0.922,0.326,1.623s-0.109,1.241-0.326,1.62 c-0.219,0.379-0.598,0.568-1.139,0.568s-0.921-0.189-1.139-0.568s-0.326-0.919-0.326-1.62s0.108-1.242,0.326-1.623 s0.598-0.571,1.139-0.571S60.382,131.547,60.601,131.928z M58.97,134.672c0.08,0.259,0.244,0.388,0.492,0.388 s0.41-0.129,0.488-0.388c0.076-0.259,0.115-0.632,0.115-1.121c0-0.512-0.039-0.891-0.115-1.137 c-0.078-0.246-0.24-0.369-0.488-0.369s-0.412,0.123-0.492,0.369s-0.12,0.625-0.12,1.137C58.85,134.04,58.89,134.413,58.97,134.672 z"></path><path fill="#05C3FF" d="M63.938,131.928c0.217,0.381,0.326,0.922,0.326,1.623s-0.109,1.241-0.326,1.62 c-0.219,0.379-0.598,0.568-1.139,0.568s-0.921-0.189-1.139-0.568s-0.326-0.919-0.326-1.62s0.108-1.242,0.326-1.623 s0.598-0.571,1.139-0.571S63.719,131.547,63.938,131.928z M62.307,134.672c0.08,0.259,0.244,0.388,0.492,0.388 s0.41-0.129,0.488-0.388c0.076-0.259,0.115-0.632,0.115-1.121c0-0.512-0.039-0.891-0.115-1.137 c-0.078-0.246-0.24-0.369-0.488-0.369s-0.412,0.123-0.492,0.369s-0.12,0.625-0.12,1.137 C62.187,134.04,62.227,134.413,62.307,134.672z"></path></g><g><path fill="#05C3FF" d="M75.325,110.205v-0.568c0.263-0.012,0.447-0.029,0.553-0.053c0.167-0.037,0.304-0.111,0.409-0.223 c0.071-0.076,0.126-0.178,0.163-0.305c0.021-0.076,0.032-0.133,0.032-0.17h0.697v4.248h-0.855v-2.93H75.325z"></path><path fill="#05C3FF" d="M81.037,109.428c0.217,0.381,0.326,0.922,0.326,1.623s-0.109,1.241-0.326,1.62 c-0.219,0.379-0.598,0.568-1.139,0.568s-0.921-0.189-1.139-0.568s-0.326-0.919-0.326-1.62s0.108-1.242,0.326-1.623 s0.598-0.571,1.139-0.571S80.818,109.047,81.037,109.428z M79.406,112.172c0.08,0.259,0.244,0.388,0.492,0.388 s0.41-0.129,0.488-0.388c0.076-0.259,0.115-0.632,0.115-1.121c0-0.512-0.039-0.891-0.115-1.137 c-0.078-0.246-0.24-0.369-0.488-0.369s-0.412,0.123-0.492,0.369s-0.12,0.625-0.12,1.137 C79.286,111.54,79.326,111.913,79.406,112.172z"></path><path fill="#05C3FF" d="M84.374,109.428c0.217,0.381,0.326,0.922,0.326,1.623s-0.109,1.241-0.326,1.62 c-0.219,0.379-0.598,0.568-1.139,0.568s-0.921-0.189-1.139-0.568s-0.326-0.919-0.326-1.62s0.108-1.242,0.326-1.623 s0.598-0.571,1.139-0.571S84.155,109.047,84.374,109.428z M82.743,112.172c0.08,0.259,0.244,0.388,0.492,0.388 s0.41-0.129,0.488-0.388c0.076-0.259,0.115-0.632,0.115-1.121c0-0.512-0.039-0.891-0.115-1.137 c-0.078-0.246-0.24-0.369-0.488-0.369s-0.412,0.123-0.492,0.369s-0.12,0.625-0.12,1.137 C82.623,111.54,82.663,111.913,82.743,112.172z"></path></g><path fill="#4D4D4D" d="M133.176,138.302H92.343v-18.167c0-2.481-2.019-4.5-4.5-4.5H73.176c-2.481,0-4.5,2.019-4.5,4.5v18.167 H50.51c-2.481,0-4.5,2.019-4.5,4.5v14.667c0,2.481,2.019,4.5,4.5,4.5h18.166v18.167c0,2.481,2.019,4.5,4.5,4.5h14.667 c2.481,0,4.5-2.019,4.5-4.5v-18.167h40.833c2.481,0,4.5-2.019,4.5-4.5v-14.667C137.676,140.32,135.657,138.302,133.176,138.302z M136.676,157.469c0,1.93-1.57,3.5-3.5,3.5h-32.119h-8.714h-1v1v6.254v11.913c0,1.93-1.57,3.5-3.5,3.5H73.176 c-1.93,0-3.5-1.57-3.5-3.5v-11.913v-6.254v-1h-1H50.51c-1.93,0-3.5-1.57-3.5-3.5v-14.667c0-1.93,1.57-3.5,3.5-3.5h18.166h1v-1 v-3.615v-14.552c0-1.93,1.57-3.5,3.5-3.5h14.667c1.93,0,3.5,1.57,3.5,3.5v14.552v3.615v1h1h8.714h32.119c1.93,0,3.5,1.57,3.5,3.5 V157.469z"></path><rect x="70.03" y="141.4" fill="#333333" width="21" height="17.037"></rect><g id="MajorTick"><rect x="149.5" y="15.5" fill="#FFFFFF" width="1" height="19"></rect><rect x="222.965" y="39.367" transform="matrix(0.8088 0.5881 -0.5881 0.8088 71.4586 -122.0676)" fill="#FFFFFF" width="1" height="19"></rect><rect x="268.379" y="101.863" transform="matrix(0.3095 0.9509 -0.9509 0.3095 291.5608 -178.7804)" fill="#FFFFFF" width="1" height="19"></rect><rect x="268.389" y="179.108" transform="matrix(-0.3098 0.9508 -0.9508 -0.3098 531.512 -8.6294)" fill="#FFFFFF" width="0.999" height="18.999"></rect><rect x="222.976" y="241.625" transform="matrix(-0.8092 0.5876 -0.5876 -0.8092 551.8623 323.0122)" fill="#FFFFFF" width="1.001" height="19"></rect><rect x="149.514" y="265.5" fill="#FFFFFF" width="1" height="19"></rect><rect x="76.039" y="241.636" transform="matrix(-0.8096 -0.587 0.587 -0.8096 -8.8989 499.3861)" fill="#FFFFFF" width="1" height="19"></rect><rect x="30.626" y="179.151" transform="matrix(-0.3084 -0.9512 0.9512 -0.3084 -138.7264 276.4474)" fill="#FFFFFF" width="0.999" height="19"></rect><rect x="30.621" y="101.865" transform="matrix(0.3092 -0.951 0.951 0.3092 -84.4101 106.5282)" fill="#FFFFFF" width="1" height="19"></rect><rect x="76.026" y="39.374" transform="matrix(0.8092 -0.5875 0.5875 0.8092 -14.1142 54.2832)" fill="#FFFFFF" width="1" height="19.001"></rect></g><g id="MinorTick"><rect x="275.57" y="120.415" transform="matrix(-0.1816 -0.9834 0.9834 -0.1816 201.6556 421.1495)" fill="#FFFFFF" width="1" height="12.501"></rect><rect x="265.804" y="89.792" transform="matrix(-0.4209 -0.9071 0.9071 -0.4209 291.2564 378.0327)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="258.131" y="75.654" transform="matrix(-0.5311 -0.8473 0.8473 -0.5311 326.5778 344.5471)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="248.738" y="62.571" transform="matrix(-0.6332 -0.774 0.774 -0.6332 353.7986 305.3014)" fill="#FFFFFF" width="0.999" height="12.501"></rect><rect x="237.78" y="50.773" transform="matrix(-0.7249 -0.6888 0.6888 -0.7249 371.7365 262.4954)" fill="#FFFFFF" width="1.001" height="12.5"></rect><rect x="211.88" y="31.737" transform="matrix(-0.8736 -0.4866 0.4866 -0.8736 379.437 174.5184)" fill="#FFFFFF" width="1" height="12.501"></rect><rect x="197.346" y="24.801" transform="matrix(-0.9278 -0.3731 0.3731 -0.9278 369.8231 133.6708)" fill="#FFFFFF" width="1" height="12.499"></rect><rect x="182.06" y="19.742" transform="matrix(-0.9671 -0.2545 0.2545 -0.9671 352.4952 97.5845)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="166.256" y="16.639" transform="matrix(-0.9915 -0.1298 0.1298 -0.9915 329.1301 67.2288)" fill="#FFFFFF" width="1.001" height="12.499"></rect><rect x="134.135" y="16.464" transform="matrix(-0.9927 0.1205 -0.1205 -0.9927 271.0269 29.0393)" fill="#FFFFFF" width="1.001" height="12.5"></rect><rect x="277.458" y="151.803" transform="matrix(-0.0625 0.998 -0.998 -0.0625 453.0741 -109.4826)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="275.439" y="167.776" transform="matrix(-0.1875 0.9823 -0.9823 -0.1875 498.6115 -64.3952)" fill="#FFFFFF" width="1" height="12.501"></rect><rect x="101.639" y="262.692" transform="matrix(0.9279 0.3729 -0.3729 0.9279 107.6571 -18.6892)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="116.928" y="267.754" transform="matrix(0.9672 0.2539 -0.2539 0.9672 73.4155 -20.8356)" fill="#FFFFFF" width="1" height="12.501"></rect><rect x="132.727" y="270.858" transform="matrix(0.9914 0.1309 -0.1309 0.9914 37.4151 -15.0535)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="164.853" y="271.038" transform="matrix(0.9928 -0.1201 0.1201 0.9928 -32.0974 21.8598)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="180.691" y="268.109" transform="matrix(0.9699 -0.2435 0.2435 0.9699 -61.3426 52.3668)" fill="#FFFFFF" width="0.999" height="12.501"></rect><rect x="196.031" y="263.219" transform="matrix(0.9321 -0.3621 0.3621 0.9321 -84.2412 89.4553)" fill="#FFFFFF" width="1.001" height="12.501"></rect><rect x="210.642" y="256.443" transform="matrix(0.8791 -0.4767 0.4767 0.8791 -99.6856 132.406)" fill="#FFFFFF" width="1" height="12.501"></rect><rect x="236.751" y="237.694" transform="matrix(0.7325 -0.6808 0.6808 0.7325 -102.604 226.7597)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="247.837" y="226.017" transform="matrix(0.6424 -0.7664 0.7664 0.6424 -89.197 273.381)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="257.374" y="213.04" transform="matrix(0.5395 -0.842 0.842 0.5395 -65.8903 318.1001)" fill="#FFFFFF" width="1.001" height="12.499"></rect><rect x="265.201" y="198.988" transform="matrix(0.4307 -0.9025 0.9025 0.4307 -33.9674 356.6261)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="87.724" y="256.096" transform="matrix(-0.8765 -0.4815 0.4815 -0.8765 39.2431 534.7611)" fill="#FFFFFF" width="1" height="12.501"></rect><rect x="61.722" y="237.2" transform="matrix(-0.7285 -0.685 0.685 -0.7285 -59.2194 463.4311)" fill="#FFFFFF" width="0.999" height="12.5"></rect><rect x="50.711" y="225.474" transform="matrix(-0.637 -0.7709 0.7709 -0.637 -94.7936 418.8095)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="62.249" y="49.807" transform="matrix(-0.7327 0.6805 -0.6805 -0.7327 146.8747 54.4315)" fill="#FFFFFF" width="1" height="12.501"></rect><rect x="51.163" y="61.484" transform="matrix(-0.6416 0.7671 -0.7671 -0.6416 136.765 71.5621)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="41.625" y="74.461" transform="matrix(-0.5405 0.8413 -0.8413 -0.5405 132.7989 88.8984)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="33.798" y="88.514" transform="matrix(-0.4305 0.9026 -0.9026 -0.4305 134.5969 104.607)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="23.695" y="119.028" transform="matrix(-0.1938 0.981 -0.981 -0.1938 151.7876 125.8166)" fill="#FFFFFF" width="1" height="12.501"></rect><rect x="21.589" y="134.995" transform="matrix(-0.0684 0.9977 -0.9977 -0.0684 164.5139 128.8651)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="21.5" y="151.096" transform="matrix(0.0571 0.9984 -0.9984 0.0571 177.8318 126.3903)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="23.431" y="167.086" transform="matrix(0.1821 0.9833 -0.9833 0.1821 190.0103 118.2398)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="33.197" y="197.71" transform="matrix(0.4221 0.9066 -0.9066 0.4221 204.3786 87.3278)" fill="#FFFFFF" width="1.001" height="12.499"></rect><rect x="40.869" y="211.846" transform="matrix(0.5311 0.8473 -0.8473 0.5311 204.1853 67.2057)" fill="#FFFFFF" width="0.999" height="12.5"></rect><rect x="87.74" y="31.395" transform="matrix(0.8762 -0.482 0.482 0.8762 -7.2181 47.1965)" fill="#FFFFFF" width="1" height="12.5"></rect><rect x="102.308" y="24.54" transform="matrix(0.9298 -0.368 0.368 0.9298 -4.1162 39.9967)" fill="#FFFFFF" width="1" height="12.502"></rect><rect x="117.627" y="19.565" transform="matrix(0.9687 -0.2483 0.2483 0.9687 -2.7105 30.1368)" fill="#FFFFFF" width="0.999" height="12.5"></rect><rect x="277.5" y="136.404" transform="matrix(-0.0576 -0.9983 0.9983 -0.0576 151.597 428.4104)" fill="#FFFFFF" width="1" height="12.5"></rect></g></g><g id="values_2"><text id="AltVal3down" transform="matrix(1 0 0 1 75.3711 177.624)" fill="#F2F2F2" font-family="&#x27;ArialMT&#x27;" font-size="18">1</text><text id="AltVal3up" transform="matrix(1 0 0 1 75.3711 134.4839)" fill="#F2F2F2" font-family="&#x27;ArialMT&#x27;" font-size="18">9</text><text id="AltVal3" transform="matrix(1 0 0 1 75.2344 157.0693)" fill="#F2F2F2" font-family="&#x27;ArialMT&#x27;" font-size="18">0</text><text id="AltVal4" transform="matrix(1 0 0 1 52.9912 157.0684)" fill="#F2F2F2" font-family="&#x27;ArialMT&#x27;" font-size="18">0</text><text id="AltVal2" transform="matrix(1 0 0 1 97.2344 157.0684)" fill="#F2F2F2" font-family="&#x27;ArialMT&#x27;" font-size="18">0</text><text id="AltVal1" transform="matrix(1 0 0 1 119.4746 157.0684)" fill="#F2F2F2" font-family="&#x27;ArialMT&#x27;" font-size="18">0</text></g><g id="values_1"><text transform="matrix(1 0 0 1 143.9111 58.7324)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">0</text><text transform="matrix(1 0 0 1 144.8096 258.8926)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">5</text><text transform="matrix(1 0 0 1 203.8643 75.4355)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">1</text><text transform="matrix(1 0 0 1 242.6084 125.4434)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">2</text><text transform="matrix(1 0 0 1 47.5166 125.4434)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">8</text><text transform="matrix(1 0 0 1 47.5161 193.3447)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">7</text><text transform="matrix(1 0 0 1 242.6074 193.3447)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">3</text><text transform="matrix(1 0 0 1 203.8633 242.1768)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">4</text><text transform="matrix(1 0 0 1 86.4448 242.1768)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">6</text><text transform="matrix(1 0 0 1 86.4448 75.4355)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">9</text></g><g id="Needles"><g id="Needle1"><rect x="148.094" y="104.667" fill="#FFFFFF" width="3.813" height="45.468"></rect><rect x="149.237" y="23.81" fill="#FFFFFF" width="1.525" height="81.626"></rect><polygon fill="#FFFFFF" points="160,15.178 150.001,27.178 140,15.178 "></polygon><polygon fill="#FFFFFF" points="148.094,104.667 150,87.258 151.906,104.667 "></polygon></g><g id="Needle2"><polygon fill="#FFFFFF" points="150,32.092 146.08,41.747 146.08,131.401 153.92,131.401 153.92,41.747 "></polygon><path fill="#4D4D4D" d="M153.92,188.332v-56.931h-7.84v56.931c-2.901,1.444-4.9,4.431-4.9,7.893c0,4.871,3.949,8.819,8.82,8.819 s8.82-3.948,8.82-8.819C158.82,192.763,156.822,189.776,153.92,188.332z"></path></g><g id="Needle3"><path fill="#808080" d="M155.077,135.634h-10.154l1.084,22.725h0.018l-7.965,19.198c2.46,4.023,6.88,6.717,11.94,6.717 s9.48-2.693,11.94-6.717l-7.964-19.198h0.017L155.077,135.634z"></path><polygon fill="#CCCCCC" points="156.612,90.493 150,78.527 143.388,90.493 144.923,135.634 155.077,135.634 "></polygon></g><circle id="Center" fill="#4D4D4D" stroke="#808080" cx="150" cy="150" r="8.302"></circle></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(692),i(6399),i(405),i(204),i(6400)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i],{_setDefaultWidth:function(){this._defaultSVGWidth=300},getSvgFileName:function(){return"ArtificialHorizon"},getSVGFileText:function(e){return r},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth();var e=this.SVGDocument,t=15,i=10,n=5;this.initializeConstants(0,360,e,t,t,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(533),i(405),i(456)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{initializeConstants:function(e,t,i,n,o,r,a,s){this.startAngle=e,this.angularSpan=t,this.defaultLabelHeight=13,this.fontSize=10,this.defaultFontSize=10;var l=this.SVGDocument.getElementById("Center");this.centerX=parseFloat(l.getAttribute("cx")),this.centerY=parseFloat(l.getAttribute("cy"))},setMajorTickValues:function(e){},setValue:function(e,t,i,n){if(Array.isArray(t)||(t=[0,0]),n){var a=t[1],s=-t[0];a>=30?a=30:a<=-30&&(a=-30),s>=90?s=90:s<=-90&&(s=-90);var l=92/30*a+this.centerY,c=Math.sqrt(2*this.centerX*l-l*l-this.centerX*this.centerX+11772.25),d=this.centerX-c,u=this.centerX+c,h=l,p=this.SVGDocument.getElementById("Ground");r.removeChildNodes(p);var f={},g=0;a<0&&(g=1),f.d="M "+d+" "+l+" A 108.5 108.5 0 "+g+" 0 "+u+" "+h+" L "+d+" "+h,f.stroke="none",f.fill="rgb(173,121,45)",f.id="ground_1",r.addNewElement(p,"path",f);var m={};m.d="M "+d+" "+l+" L "+u+" "+h,m.stroke="white",m.fill="#FFFFFF",m.id="lineground",r.addNewElement(p,"path",m);var _=this._calculateGroundLines(l+15,242),v=this._calculateGroundLines(l+30,242);this._addLines(_,v,p,-1);var b=this._calculateSkyLines(l-15,58),y=this._calculateSkyLines(l-30,58);this._addLines(b,y,p,1),this._rotateAirplane(o.toPositiveAngle(s))}},drawTickLines:function(e,t,i,n){},computeTickPositions:function(e,t,i){},calculateLabelPosition:function(e,t,i,n){},_adjustForHorizontalCropping:function(e,t,i){var n=e;return i.x+e+t.w>i.x+i.w&&(n=i.w-t.w),e<0&&(n=0),n},_adjustForVerticalCropping:function(e,t,i){var n=e;return i.y+e+t.h>i.y+i.h&&(n=i.h-t.h),e<0&&(n=0),n},positionLabel:function(e,t,n,o){i.set(e,{left:t.x+"px",top:t.y+"px"})},_computeNeedleAngleForValue:function(e,t,i){var n=t[1]-t[0],o=(e-t[0])/n*this.angularSpan;return"clockwise"===i?o:this.angularSpan-o},_rotateAirplane:function(e){this.SVGDocument.getElementById("Ground").setAttribute("transform","rotate("+e+", "+this.centerX+", "+this.centerY+")"),this.SVGDocument.getElementById("MovableTicks").setAttribute("transform","rotate("+e+", "+this.centerX+", "+this.centerY+")")},setScaleColors:function(e,t,i,n){},_addLines:function(e,t,i,n){for(var o=e.length,a=0,s=n,l=0;l<o;l++){var c={};c.d="M 135 "+e[l]+" L 165 "+e[l],c.stroke="white",c.fill="#FFFFFF",c.id="smallline_"+n*(l+1),r.addNewElement(i,"path",c)}o=t.length;for(var d=0;d<o;d++){var u={};u.d="M 120 "+t[d]+" L 180 "+t[d],u.stroke="white",u.fill="#FFFFFF",u.id="longlineCenter_"+n*(d+1),r.addNewElement(i,"path",u);var h={x:100};a=t[d]+3,h.y=a,h.fill="#FFFFFF",h.id="longlineTextLeft_"+n*(d+1),r.addNewElement(i,"text",h,10*s);var p={x:185};a=t[d]+3,p.y=a,p.fill="#FFFFFF",p.id="longlineTextRight_"+n*(d+1),r.addNewElement(i,"text",p,10*s),s+=n}},_calculateGroundLines:function(e,t){for(var i=0,n=[];e<=t;)n[i]=e,e+=30,i++;return n},_calculateSkyLines:function(e,t){for(var i=0,n=[];e>=t;)n[i]=e,e-=30,i++;return n}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve"><g id="bg"><g><circle cx="150" cy="150" r="150"></circle><linearGradient id="SVGID_1_ArtificialHorizon" gradientUnits="userSpaceOnUse" x1="149.9995" y1="-62.3335" x2="149.9995" y2="424.3363"><stop offset="0" style="stop-color:#FFFFFF"></stop><stop offset="1" style="stop-color:#000000"></stop></linearGradient><path fill="url(#SVGID_1_ArtificialHorizon)" d="M150,4c38.998,0,75.662,15.187,103.237,42.762C280.813,74.338,296,111.002,296,150 s-15.187,75.662-42.763,103.237C225.662,280.813,188.998,296,150,296s-75.662-15.187-103.238-42.763 C19.187,225.662,4,188.998,4,150S19.187,74.338,46.762,46.762C74.338,19.187,111.002,4,150,4 M150,0C67.157,0,0,67.157,0,150 s67.157,150,150,150s150-67.157,150-150S232.843,0,150,0L150,0z"></path></g><path fill="#FFFF00" d="M150.271,149.239"></path><circle id="Center" fill="none" cx="150" cy="150" r="3"></circle><circle fill="none" cx="150" cy="150" r="3"></circle></g><g id="Sky"><circle fill="#4dbeee" cx="150" cy="150" r="108.5"></circle></g><g id="Ground"><path d="M 41.5 150 A 108.5 108.5 0 0 0 258.5 150 L 41.5 150" stroke="none" fill="rgb(173,121,45)" id="ground_1"></path><path d="M 41.5 150 L 258.5 150" stroke="white" fill="#FFFFFF" id="lineground"></path><path d="M 135 165 L 165 165" stroke="white" fill="#FFFFFF"></path><path d="M 120 180 L 180 180" stroke="white" fill="#FFFFFF"></path><text x="100" y="183" fill="#FFFFFF">-10</text><text x="185" y="183" fill="#FFFFFF">-10</text><path d="M 135 195 L 165 195" stroke="white" fill="#FFFFFF"></path><path d="M 120 210 L 180 210" stroke="white" fill="#FFFFFF"></path><text x="100" y="213" fill="#FFFFFF">-20</text><text x="185" y="213" fill="#FFFFFF">-20</text><path d="M 135 225 L 165 225" stroke="white" fill="#FFFFFF"></path><path d="M 120 240 L 180 240" stroke="white" fill="#FFFFFF"></path><text x="100" y="243" fill="#FFFFFF">-30</text><text x="185" y="243" fill="#FFFFFF">-30</text><path d="M 135 135 L 165 135" stroke="white" fill="#FFFFFF"></path><path d="M 120 120 L 180 120" stroke="white" fill="#FFFFFF"></path><text x="100" y="123" fill="#FFFFFF">10</text><text x="185" y="123" fill="#FFFFFF">10</text><path d="M 135 105 L 165 105" stroke="white" fill="#FFFFFF"></path><path d="M 120 90 L 180 90" stroke="white" fill="#FFFFFF"></path><text x="100" y="93" fill="#FFFFFF">20</text><text x="185" y="93" fill="#FFFFFF">20</text><path d="M 135 75 L 165 75" stroke="white" fill="#FFFFFF"></path><path d="M 120 60 L 180 60" stroke="white" fill="#FFFFFF"></path><text x="100" y="63" fill="#FFFFFF">30</text><text x="185" y="63" fill="#FFFFFF">30</text></g><g id="Indicator"><g><path fill="#FFFF00" d="M217.577,146.879h-37.106l-14.747,14.748l-10.372-10.371c0.073-0.356,0.111-0.726,0.111-1.104 c0-3.02-2.447-5.468-5.468-5.468c-3.02,0-5.468,2.448-5.468,5.468c0,0.381,0.04,0.753,0.114,1.112l-10.365,10.363l-14.747-14.748 H82.423c-1.657,0-3,1.343-3,3s1.343,3,3,3h34.62l17.233,17.234l14.607-14.607c0.359,0.074,0.731,0.113,1.112,0.113 c0.384,0,0.758-0.04,1.119-0.115l14.609,14.609l17.233-17.234h34.62c1.657,0,3-1.343,3-3S219.234,146.879,217.577,146.879z"></path><path fill="#FFFF00" d="M164.965,66.102L150,41.898l-14.965,24.204H150H164.965z M150,47.603l9.582,15.499H150h-9.583L150,47.603z "></path></g></g><g id="MovableTicks"><rect x="210.996" y="32.416" transform="matrix(0.866 0.5001 -0.5001 0.866 49.3515 -100.6667)" fill="#FFFFFF" width="3" height="18.658"></rect><rect x="85.999" y="32.418" transform="matrix(0.866 -0.5001 0.5001 0.866 -9.1506 49.3493)" fill="#FFFFFF" width="3" height="18.658"></rect><rect x="15.671" y="148.5" fill="#FFFFFF" width="18.658" height="3"></rect><rect x="265.671" y="148.5" fill="#FFFFFF" width="18.658" height="3"></rect><rect x="170.949" y="17.569" transform="matrix(0.9848 0.1735 -0.1735 0.9848 7.269 -29.3768)" fill="#FFFFFF" width="1.5" height="18.658"></rect><rect x="192.001" y="23.208" transform="matrix(0.9398 0.3417 -0.3417 0.9398 22.719 -63.903)" fill="#FFFFFF" width="1.5" height="18.659"></rect><rect x="229.598" y="44.915" transform="matrix(0.7661 0.6427 -0.6427 0.7661 88.7475 -135.3657)" fill="#FFFFFF" width="1.5" height="18.659"></rect><rect x="245.009" y="60.326" transform="matrix(0.6431 0.7658 -0.7658 0.6431 141.0544 -163.3391)" fill="#FFFFFF" width="1.5" height="18.659"></rect><rect x="266.713" y="97.924" transform="matrix(0.3423 0.9396 -0.9396 0.3423 276.6951 -180.7655)" fill="#FFFFFF" width="1.501" height="18.659"></rect><rect x="272.353" y="118.976" transform="matrix(0.1738 0.9848 -0.9848 0.1738 351.9943 -162.9399)" fill="#FFFFFF" width="1.5" height="18.658"></rect><rect x="26.146" y="118.981" transform="matrix(0.1735 -0.9848 0.9848 0.1735 -104.134 132.5404)" fill="#FFFFFF" width="1.5" height="18.658"></rect><rect x="31.784" y="97.928" transform="matrix(0.3417 -0.9398 0.9398 0.3417 -79.3841 101.1847)" fill="#FFFFFF" width="1.5" height="18.659"></rect><rect x="53.488" y="60.33" transform="matrix(0.6426 -0.7662 0.7662 0.6426 -33.988 66.4559)" fill="#FFFFFF" width="1.501" height="18.659"></rect><rect x="68.898" y="44.917" transform="matrix(0.7656 -0.6433 0.6433 0.7656 -18.5723 57.5176)" fill="#FFFFFF" width="1.501" height="18.659"></rect><rect x="106.494" y="23.21" transform="matrix(0.9396 -0.3423 0.3423 0.9396 -4.66 38.6713)" fill="#FFFFFF" width="1.501" height="18.659"></rect><rect x="127.546" y="17.57" transform="matrix(0.9848 -0.1738 0.1738 0.9848 -2.7224 22.7052)" fill="#FFFFFF" width="1.5" height="18.658"></rect><rect x="148.5" y="15.671" fill="#FFFFFF" width="3" height="18.658"></rect><g><g><circle fill="#FFFFFF" cx="41.945" cy="86.786" r="5.5"></circle><circle fill="#FFFFFF" cx="258.043" cy="86.786" r="5.5"></circle></g></g></g><g id="PitchNumber"></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(692),i(6402),i(405),i(204),i(6403)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i],{_setDefaultWidth:function(){this._defaultSVGWidth=300},getSvgFileName:function(){return"TurnCoordinator"},getSVGFileText:function(e){return r},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth();var e=this.SVGDocument,t=15,i=10,n=5;this.initializeConstants(0,360,e,t,t,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(533),i(405),i(456)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{initializeConstants:function(e,t,i,n,o,r,a,s){this.startAngle=e,this.angularSpan=t,this.defaultLabelHeight=13,this.fontSize=10,this.defaultFontSize=10;var l=this.SVGDocument.getElementById("Center");this.centerX=parseFloat(l.getAttribute("cx")),this.centerY=parseFloat(l.getAttribute("cy"))},setMajorTickValues:function(e){},setValue:function(e,t,i,n){if(Array.isArray(t)||(t=[0,0]),n){var r=t[1],a=t[0];r>=15?r=15:r<=-15&&(r=-15),a>=20?a=20:a<=-20&&(a=-20),this._rotateAirplane(o.toPositiveAngle(a)),this._rotateBall(o.toPositiveAngle(r))}},drawTickLines:function(e,t,i,n){},computeTickPositions:function(e,t,i){},calculateLabelPosition:function(e,t,i,n){},_adjustForHorizontalCropping:function(e,t,i){var n=e;return i.x+e+t.w>i.x+i.w&&(n=i.w-t.w),e<0&&(n=0),n},_adjustForVerticalCropping:function(e,t,i){var n=e;return i.y+e+t.h>i.y+i.h&&(n=i.h-t.h),e<0&&(n=0),n},positionLabel:function(e,t,n,o){i.set(e,{left:t.x+"px",top:t.y+"px"})},_computeNeedleAngleForValue:function(e,t,i){var n=t[1]-t[0],o=(e-t[0])/n*this.angularSpan;return"clockwise"===i?o:this.angularSpan-o},_rotateAirplane:function(e){this.SVGDocument.getElementById("Airplane").setAttribute("transform","rotate("+e+", "+this.centerX+", "+this.centerY+")")},_rotateBall:function(e){this.SVGDocument.getElementById("Ball").setAttribute("transform","rotate("+e+", "+this.centerX+", -50)")},setScaleColors:function(e,t,i,n){}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve"><g id="bg_1_"><circle id="Center" fill="#333333" cx="150" cy="150" r="150"></circle><g id="turn_x5F_circle"><g><g><path fill="#808080" d="M152.784,236.803c-42.511,0-89.624-10.444-91.808-10.89c-12.428-2.529-11.32-10.75-11.32-20.448 c0-9.12,7.188-13.815,19.612-11.291l0,0c0.473,0.097,47.704,9.595,83.516,9.595c35.436,0,77.663-9.368,78.086-9.462 c12.325-2.762,20.04,1.611,20.04,10.729c0,9.139,0.879,17.974-11.438,20.744C237.472,226.229,195.625,236.803,152.784,236.803z"></path><path d="M237.694,193.486c8.282,0,13.216,4.257,13.216,11.549c0,9.139,0.879,17.974-11.438,20.744 c-2,0.45-43.847,11.023-86.688,11.023c-42.511,0-89.624-10.444-91.808-10.89c-12.428-2.529-11.32-10.75-11.32-20.448 c0-7.468,4.821-11.969,13.387-11.969c1.896,0,3.974,0.22,6.226,0.678c0.473,0.097,47.704,9.595,83.516,9.595 c35.436,0,77.663-9.368,78.086-9.462C233.337,193.754,235.621,193.487,237.694,193.486 M237.695,192.986L237.695,192.986 c-2.139,0.001-4.472,0.28-6.935,0.833c-0.423,0.094-42.722,9.449-77.977,9.449c-35.848,0-82.944-9.488-83.416-9.585 c-2.246-0.456-4.374-0.688-6.325-0.688c-8.695,0-13.887,4.661-13.887,12.469c0,0.743-0.006,1.477-0.013,2.2 c-0.078,8.757-0.145,16.32,11.733,18.738c0.098,0.02,0.285,0.06,0.559,0.118c11.893,2.529,53.628,10.781,91.349,10.781 c36.771,0,72.534-7.619,86.202-10.895c0.295-0.07,0.495-0.119,0.595-0.141c11.938-2.687,11.888-10.863,11.836-19.521 c-0.004-0.567-0.007-1.139-0.007-1.711C251.41,197.491,246.283,192.986,237.695,192.986L237.695,192.986z"></path></g><path opacity="0.1" d="M49.656,207.304c0-9.119,7.188-13.814,19.612-11.29c0.473,0.096,47.704,9.595,83.516,9.595 c35.436,0,77.663-9.367,78.086-9.462c12.325-2.762,20.04,1.611,20.04,10.729c0,0.803,0.007,1.603,0.011,2.396 c0.011-1.39-0.011-2.81-0.011-4.236c0-9.117-7.715-13.49-20.04-10.729c-0.423,0.094-42.65,9.462-78.086,9.462 c-35.812,0-83.042-9.498-83.516-9.595c-12.424-2.524-19.612,2.171-19.612,11.291c0,1.759-0.036,3.469-0.021,5.106 C49.642,209.506,49.656,208.416,49.656,207.304z"></path><g><defs><path id="SVGID_1_" d="M152.784,237.212c-42.511,0-89.624-10.444-91.808-10.889c-12.428-2.53-11.32-10.751-11.32-20.449 c0-9.12,7.188-13.815,19.612-11.292l0,0c0.473,0.097,47.704,9.595,83.516,9.595c35.436,0,77.663-9.367,78.086-9.462 c12.325-2.76,20.04,1.613,20.04,10.729c0,9.139,0.879,17.973-11.438,20.744C237.472,226.64,195.625,237.212,152.784,237.212z"></path></defs><clipPath id="SVGID_2_"><use xlink:href="#SVGID_1_" overflow="visible"></use></clipPath></g></g><g><rect x="133" y="203.096" width="1" height="33.809"></rect></g><g><rect x="166" y="203.096" width="1" height="33.809"></rect></g></g></g><g id="BallGroup"><linearGradient id="Ball_1_TurnCoordinator" gradientUnits="userSpaceOnUse" x1="134" y1="220.5" x2="166" y2="220.5"><stop offset="0" style="stop-color:#1A1A1A"></stop><stop offset="1" style="stop-color:#333333"></stop></linearGradient><circle id="Ball" fill="url(#Ball_1_TurnCoordinator)" cx="150" cy="220.5" r="16"></circle></g><g id="Airplane"><g><g><path fill="#FFFFFF" d="M251.809,149.26h-87.899c-0.387-7.204-6.332-12.93-13.632-12.93c-7.3,0-13.246,5.727-13.632,12.93H48.191 c-0.804,0-1.465,0.634-1.499,1.437c-0.033,0.803,0.571,1.491,1.372,1.558l93.083,7.897c2.421,2.18,5.616,3.518,9.13,3.518 c3.542,0,6.759-1.359,9.187-3.569l92.472-7.846c0.801-0.067,1.405-0.755,1.372-1.558 C253.273,149.894,252.612,149.26,251.809,149.26z"></path><path d="M150.277,163.92c-3.402,0-6.677-1.251-9.234-3.525l-92.999-7.891c-0.937-0.079-1.64-0.877-1.601-1.817 c0.04-0.94,0.809-1.676,1.749-1.676h88.218c0.512-7.27,6.558-12.93,13.867-12.93s13.355,5.66,13.868,12.93h87.664 c0.94,0,1.709,0.736,1.749,1.676c0.039,0.941-0.664,1.739-1.602,1.818l-92.387,7.839 C157.003,162.65,153.707,163.92,150.277,163.92z M48.191,149.51c-0.672,0-1.221,0.526-1.249,1.197 c-0.028,0.671,0.474,1.242,1.143,1.298l93.167,7.904l0.063,0.057c2.474,2.227,5.657,3.453,8.962,3.453 c3.333,0,6.537-1.244,9.019-3.504l0.063-0.058l0.084-0.007l92.472-7.846c0.669-0.057,1.172-0.627,1.144-1.299 c-0.028-0.671-0.577-1.197-1.249-1.197h-88.137l-0.013-0.237c-0.382-7.118-6.26-12.693-13.382-12.693 c-7.122,0-13,5.576-13.383,12.693l-0.013,0.237H48.191z"></path></g><g><path fill="#FFFFFF" d="M179.585,135.348h-24.543c-2.412-0.346-2.933-2.37-3.042-3.292v-12.678c0-1.104-0.896-2-2-2s-2,0.896-2,2 v12.218c0,0,0.066,3.294-3.059,3.752h-24.526c-1.104,0-2,0.896-2,2s0.896,2,2,2h59.17c1.104,0,2-0.896,2-2 S180.689,135.348,179.585,135.348z"></path><path d="M150,117.377c1.104,0,2,0.896,2,2v12.678c0.109,0.922,0.63,2.947,3.042,3.292h24.543c1.104,0,2,0.896,2,2s-0.896,2-2,2 h-59.17c-1.104,0-2-0.896-2-2s0.896-2,2-2h24.526c3.125-0.458,3.059-3.752,3.059-3.752v-12.218 C148,118.272,148.896,117.377,150,117.377 M150,116.877c-1.378,0-2.5,1.122-2.5,2.5v12.218c0.002,0.125,0.009,2.846-2.597,3.252 h-24.488c-1.378,0-2.5,1.122-2.5,2.5s1.122,2.5,2.5,2.5h59.17c1.379,0,2.5-1.122,2.5-2.5s-1.121-2.5-2.5-2.5h-24.506 c-1.967-0.299-2.461-1.881-2.579-2.823v-12.648C152.5,117.999,151.379,116.877,150,116.877L150,116.877z"></path></g></g></g><g id="Front"><path id="Ring" d="M150.001,0C67.156,0,0,67.157,0,150s67.156,150,150.001,150C232.844,300,300,232.843,300,150 S232.844,0,150.001,0z M150,258c-59.646,0-108-48.353-108-108C42,90.354,90.354,42,150,42s108,48.354,108,108 C258,209.647,209.646,258,150,258z"></path><g><path fill="#FFFFFF" d="M255.555,202.799h7.488c1.056,0,1.991,0.146,2.808,0.443s1.496,0.707,2.04,1.235 c0.447,0.466,0.792,1,1.032,1.608c0.239,0.608,0.359,1.281,0.359,2.017v0.048c0,0.688-0.1,1.309-0.3,1.86s-0.477,1.04-0.828,1.463 c-0.352,0.425-0.771,0.784-1.26,1.081c-0.488,0.295-1.028,0.523-1.62,0.684l4.536,6.36h-3.48l-4.141-5.856h-0.048h-3.659v5.856 h-2.928V202.799z M262.816,211.127c1.059,0,1.901-0.254,2.527-0.76s0.938-1.193,0.938-2.061v-0.049 c0-0.915-0.305-1.61-0.915-2.084c-0.609-0.476-1.468-0.711-2.575-0.711h-4.31v5.664H262.816z"></path></g><g><path fill="#FFFFFF" d="M34.633,202.798h2.928v14.135h8.832v2.665h-11.76V202.798z"></path></g><g><path fill="#FFFFFF" d="M140.974,13.209h2.609c0.547,0,1.049,0.089,1.505,0.265c0.457,0.177,0.851,0.422,1.18,0.735 c0.33,0.313,0.585,0.682,0.765,1.105c0.18,0.423,0.271,0.881,0.271,1.375v0.02c0,0.493-0.091,0.953-0.271,1.38 s-0.435,0.797-0.765,1.11c-0.33,0.313-0.723,0.56-1.18,0.74c-0.456,0.18-0.958,0.27-1.505,0.27h-2.609V13.209z M143.573,19.099 c0.366,0,0.7-0.058,1-0.175s0.555-0.281,0.765-0.492s0.374-0.462,0.49-0.754c0.116-0.291,0.175-0.607,0.175-0.948v-0.021 c0-0.342-0.059-0.659-0.175-0.954c-0.116-0.294-0.28-0.547-0.49-0.758s-0.465-0.377-0.765-0.497c-0.3-0.121-0.634-0.181-1-0.181 h-1.38v4.779H143.573z"></path><path fill="#FFFFFF" d="M148.573,18.839h1.33v1.37h-1.33V18.839z"></path><path fill="#FFFFFF" d="M154.742,20.33c-0.514,0-0.987-0.094-1.42-0.28c-0.434-0.187-0.81-0.441-1.128-0.765 c-0.319-0.323-0.569-0.705-0.75-1.146c-0.182-0.439-0.272-0.91-0.272-1.41v-0.02c0-0.5,0.089-0.969,0.268-1.405 c0.178-0.437,0.428-0.819,0.75-1.149c0.321-0.33,0.702-0.59,1.143-0.78s0.927-0.285,1.46-0.285c0.32,0,0.611,0.026,0.875,0.08 s0.505,0.129,0.725,0.225c0.221,0.097,0.424,0.212,0.61,0.346c0.187,0.133,0.363,0.279,0.53,0.439l-0.79,0.91 c-0.28-0.26-0.577-0.47-0.891-0.63c-0.313-0.16-0.67-0.24-1.069-0.24c-0.334,0-0.642,0.065-0.925,0.195 c-0.284,0.13-0.529,0.307-0.735,0.53c-0.207,0.223-0.367,0.484-0.48,0.784c-0.113,0.301-0.17,0.62-0.17,0.961v0.02 c0,0.34,0.057,0.662,0.17,0.965c0.113,0.304,0.273,0.568,0.48,0.795c0.206,0.227,0.451,0.405,0.735,0.535 c0.283,0.13,0.591,0.195,0.925,0.195c0.427,0,0.793-0.082,1.1-0.245s0.61-0.385,0.91-0.665l0.79,0.8 c-0.18,0.193-0.368,0.365-0.565,0.515c-0.196,0.15-0.408,0.28-0.635,0.391c-0.227,0.109-0.475,0.193-0.745,0.25 C155.367,20.301,155.068,20.33,154.742,20.33z"></path><path fill="#FFFFFF" d="M158.642,18.839h1.33v1.37h-1.33V18.839z"></path><path fill="#FFFFFF" d="M136.434,25.209h5.18v1.11h-3.96v1.8h3.51v1.109h-3.51v1.87h4.01v1.11h-5.229V25.209z"></path><path fill="#FFFFFF" d="M143.134,25.209h1.22v5.89h3.679v1.11h-4.899V25.209z"></path><path fill="#FFFFFF" d="M149.323,25.209h5.179v1.11h-3.959v1.8h3.509v1.109h-3.509v1.87h4.009v1.11h-5.229V25.209z"></path><path fill="#FFFFFF" d="M159.282,32.33c-0.514,0-0.987-0.094-1.42-0.28c-0.434-0.187-0.81-0.441-1.128-0.765 c-0.319-0.323-0.569-0.705-0.75-1.146c-0.182-0.439-0.272-0.91-0.272-1.41v-0.02c0-0.5,0.089-0.969,0.268-1.405 c0.178-0.437,0.428-0.819,0.75-1.149c0.321-0.33,0.702-0.59,1.143-0.78s0.927-0.285,1.46-0.285c0.32,0,0.611,0.026,0.875,0.08 s0.505,0.129,0.725,0.225c0.221,0.097,0.424,0.212,0.61,0.346c0.187,0.133,0.363,0.279,0.53,0.439l-0.79,0.91 c-0.28-0.26-0.577-0.47-0.891-0.63c-0.313-0.16-0.67-0.24-1.069-0.24c-0.334,0-0.642,0.065-0.925,0.195 c-0.284,0.13-0.529,0.307-0.735,0.53c-0.207,0.223-0.367,0.484-0.48,0.784c-0.113,0.301-0.17,0.62-0.17,0.961v0.02 c0,0.34,0.057,0.662,0.17,0.965c0.113,0.304,0.273,0.568,0.48,0.795c0.206,0.227,0.451,0.405,0.735,0.535 c0.283,0.13,0.591,0.195,0.925,0.195c0.427,0,0.793-0.082,1.1-0.245s0.61-0.385,0.91-0.665l0.79,0.8 c-0.18,0.193-0.368,0.365-0.565,0.515c-0.196,0.15-0.408,0.28-0.635,0.391c-0.227,0.109-0.475,0.193-0.745,0.25 C159.907,32.301,159.608,32.33,159.282,32.33z"></path><path fill="#FFFFFF" d="M163.182,30.839h1.33v1.37h-1.33V30.839z"></path></g><g><path fill="#FFFFFF" d="M127.659,264.543h1.138l3.742,4.839v-4.839h1.22v7h-1.028l-3.852-4.98v4.98h-1.22V264.543z"></path><path fill="#FFFFFF" d="M138.399,271.662c-0.54,0-1.033-0.094-1.48-0.284c-0.446-0.19-0.83-0.448-1.149-0.775 c-0.32-0.327-0.57-0.708-0.75-1.146c-0.181-0.436-0.271-0.9-0.271-1.395v-0.02c0-0.494,0.09-0.958,0.271-1.395 c0.18-0.438,0.433-0.82,0.76-1.15c0.326-0.33,0.713-0.592,1.16-0.785c0.446-0.193,0.939-0.29,1.479-0.29s1.033,0.095,1.48,0.284 c0.446,0.191,0.83,0.449,1.149,0.775c0.32,0.326,0.57,0.708,0.75,1.146c0.181,0.437,0.271,0.9,0.271,1.396v0.02 c0,0.493-0.09,0.957-0.271,1.395c-0.18,0.437-0.433,0.819-0.76,1.15c-0.326,0.33-0.713,0.592-1.16,0.785 C139.433,271.565,138.939,271.662,138.399,271.662z M138.419,270.532c0.346,0,0.662-0.065,0.951-0.194 c0.289-0.131,0.536-0.307,0.742-0.531c0.205-0.222,0.366-0.483,0.482-0.783c0.116-0.301,0.175-0.621,0.175-0.961v-0.02 c0-0.34-0.059-0.661-0.175-0.965c-0.116-0.305-0.279-0.567-0.488-0.791c-0.209-0.223-0.459-0.401-0.751-0.534 c-0.293-0.134-0.611-0.2-0.956-0.2c-0.346,0-0.662,0.065-0.951,0.195s-0.536,0.307-0.742,0.529 c-0.205,0.223-0.366,0.484-0.482,0.785s-0.175,0.619-0.175,0.961v0.02c0,0.339,0.059,0.662,0.175,0.964 c0.116,0.304,0.278,0.566,0.487,0.791c0.21,0.224,0.46,0.4,0.752,0.534S138.074,270.532,138.419,270.532z"></path><path fill="#FFFFFF" d="M145.559,264.543h2.759c0.406,0,0.774,0.055,1.104,0.164c0.33,0.111,0.61,0.27,0.841,0.475 c0.229,0.208,0.406,0.454,0.529,0.741s0.186,0.605,0.186,0.959v0.021c0,0.395-0.074,0.738-0.221,1.035 c-0.147,0.297-0.348,0.545-0.602,0.744c-0.254,0.2-0.552,0.354-0.893,0.455c-0.341,0.104-0.705,0.156-1.092,0.156h-1.394v2.25 h-1.219V264.543z M148.212,268.182c0.469,0,0.838-0.116,1.109-0.35c0.271-0.234,0.406-0.537,0.406-0.904v-0.021 c0-0.414-0.138-0.728-0.412-0.938s-0.642-0.316-1.104-0.316h-1.435v2.529H148.212z"></path><path fill="#FFFFFF" d="M151.808,264.543h1.221v7h-1.221V264.543z"></path><path fill="#FFFFFF" d="M156.128,265.682h-2.22v-1.139h5.68v1.139h-2.22v5.861h-1.24V265.682z"></path><path fill="#FFFFFF" d="M163.647,271.662c-0.514,0-0.987-0.093-1.42-0.28c-0.434-0.187-0.81-0.441-1.128-0.764 c-0.319-0.324-0.569-0.706-0.75-1.146c-0.182-0.44-0.272-0.91-0.272-1.41v-0.02c0-0.5,0.089-0.97,0.268-1.406 c0.178-0.436,0.428-0.818,0.75-1.148c0.321-0.331,0.702-0.59,1.143-0.781c0.44-0.189,0.927-0.284,1.46-0.284 c0.32,0,0.611,0.025,0.875,0.08c0.264,0.054,0.505,0.129,0.725,0.225c0.221,0.096,0.424,0.212,0.61,0.346 c0.187,0.133,0.363,0.279,0.53,0.438l-0.79,0.911c-0.28-0.261-0.577-0.47-0.891-0.63c-0.313-0.161-0.67-0.24-1.069-0.24 c-0.334,0-0.642,0.065-0.925,0.195c-0.284,0.13-0.529,0.307-0.735,0.529c-0.207,0.223-0.367,0.484-0.48,0.785 s-0.17,0.619-0.17,0.961v0.02c0,0.339,0.057,0.662,0.17,0.964c0.113,0.304,0.273,0.569,0.48,0.796 c0.206,0.226,0.451,0.404,0.735,0.535c0.283,0.129,0.591,0.194,0.925,0.194c0.427,0,0.793-0.081,1.1-0.245 c0.307-0.163,0.61-0.385,0.91-0.664l0.79,0.8c-0.18,0.192-0.368,0.364-0.565,0.515c-0.196,0.15-0.408,0.279-0.635,0.391 c-0.227,0.109-0.475,0.193-0.745,0.25C164.272,271.635,163.974,271.662,163.647,271.662z"></path><path fill="#FFFFFF" d="M167.268,264.543h1.22v2.91h3.36v-2.91h1.22v7h-1.22v-2.951h-3.36v2.951h-1.22V264.543z"></path><path fill="#FFFFFF" d="M115.839,276.543h1.221v7h-1.221V276.543z"></path><path fill="#FFFFFF" d="M118.439,276.543h1.138l3.742,4.839v-4.839h1.22v7h-1.028l-3.852-4.98v4.98h-1.22V276.543z"></path><path fill="#FFFFFF" d="M125.839,276.543h5.199v1.109h-3.979v1.93h3.53v1.111h-3.53v2.85h-1.22V276.543z"></path><path fill="#FFFFFF" d="M135.239,283.662c-0.54,0-1.033-0.094-1.48-0.284c-0.446-0.19-0.83-0.448-1.149-0.775 c-0.32-0.327-0.57-0.708-0.75-1.146c-0.181-0.436-0.271-0.9-0.271-1.395v-0.02c0-0.494,0.09-0.958,0.271-1.395 c0.18-0.438,0.433-0.82,0.76-1.15c0.326-0.33,0.713-0.592,1.16-0.785c0.446-0.193,0.939-0.29,1.479-0.29s1.033,0.095,1.48,0.284 c0.446,0.191,0.83,0.449,1.149,0.775c0.32,0.326,0.57,0.708,0.75,1.146c0.181,0.437,0.271,0.9,0.271,1.396v0.02 c0,0.493-0.09,0.957-0.271,1.395c-0.18,0.437-0.433,0.819-0.76,1.15c-0.326,0.33-0.713,0.592-1.16,0.785 C136.272,283.565,135.779,283.662,135.239,283.662z M135.259,282.532c0.346,0,0.662-0.065,0.951-0.194 c0.289-0.131,0.536-0.307,0.742-0.531c0.205-0.222,0.366-0.483,0.482-0.783c0.116-0.301,0.175-0.621,0.175-0.961v-0.02 c0-0.34-0.059-0.661-0.175-0.965c-0.116-0.305-0.279-0.567-0.488-0.791c-0.209-0.223-0.459-0.401-0.751-0.534 c-0.293-0.134-0.611-0.2-0.956-0.2c-0.346,0-0.662,0.065-0.951,0.195s-0.536,0.307-0.742,0.529 c-0.205,0.223-0.366,0.484-0.482,0.785s-0.175,0.619-0.175,0.961v0.02c0,0.339,0.059,0.662,0.175,0.964 c0.116,0.304,0.278,0.566,0.487,0.791c0.21,0.224,0.46,0.4,0.752,0.534S134.914,282.532,135.259,282.532z"></path><path fill="#FFFFFF" d="M139.899,276.543h3.119c0.44,0,0.83,0.061,1.171,0.185c0.34,0.124,0.623,0.296,0.85,0.516 c0.187,0.192,0.33,0.417,0.43,0.669c0.101,0.253,0.15,0.533,0.15,0.841v0.021c0,0.285-0.042,0.545-0.125,0.774 c-0.084,0.229-0.198,0.434-0.345,0.609c-0.147,0.178-0.322,0.327-0.525,0.45c-0.203,0.124-0.429,0.219-0.675,0.285l1.89,2.65 h-1.45l-1.725-2.44h-0.021h-1.524v2.44h-1.22V276.543z M142.925,280.012c0.441,0,0.792-0.104,1.053-0.316 c0.261-0.21,0.392-0.497,0.392-0.857v-0.02c0-0.383-0.127-0.672-0.382-0.87c-0.254-0.196-0.611-0.296-1.073-0.296h-1.795v2.359 H142.925z"></path><path fill="#FFFFFF" d="M146.628,276.543h1.31l2.13,3.31l2.129-3.31h1.311v7h-1.221v-5.02l-2.209,3.3h-0.04l-2.189-3.28v5h-1.22 V276.543z"></path><path fill="#FFFFFF" d="M157.287,276.493h1.14l3.08,7.05h-1.3l-0.71-1.69h-3.31l-0.721,1.69h-1.26L157.287,276.493z M159.047,280.762l-1.21-2.799l-1.199,2.799H159.047z"></path><path fill="#FFFFFF" d="M163.928,277.682h-2.22v-1.139h5.68v1.139h-2.22v5.861h-1.24V277.682z"></path><path fill="#FFFFFF" d="M168.257,276.543h1.221v7h-1.221V276.543z"></path><path fill="#FFFFFF" d="M174.197,283.662c-0.54,0-1.033-0.094-1.48-0.284c-0.446-0.19-0.83-0.448-1.149-0.775 c-0.32-0.327-0.57-0.708-0.75-1.146c-0.181-0.436-0.271-0.9-0.271-1.395v-0.02c0-0.494,0.09-0.958,0.271-1.395 c0.18-0.438,0.433-0.82,0.76-1.15c0.326-0.33,0.713-0.592,1.16-0.785c0.446-0.193,0.939-0.29,1.479-0.29s1.033,0.095,1.48,0.284 c0.446,0.191,0.83,0.449,1.149,0.775c0.32,0.326,0.57,0.708,0.75,1.146c0.181,0.437,0.271,0.9,0.271,1.396v0.02 c0,0.493-0.09,0.957-0.271,1.395c-0.18,0.437-0.433,0.819-0.76,1.15c-0.326,0.33-0.713,0.592-1.16,0.785 C175.23,283.565,174.737,283.662,174.197,283.662z M174.217,282.532c0.346,0,0.662-0.065,0.951-0.194 c0.289-0.131,0.536-0.307,0.742-0.531c0.205-0.222,0.366-0.483,0.482-0.783c0.116-0.301,0.175-0.621,0.175-0.961v-0.02 c0-0.34-0.059-0.661-0.175-0.965c-0.116-0.305-0.279-0.567-0.488-0.791c-0.209-0.223-0.459-0.401-0.751-0.534 c-0.293-0.134-0.611-0.2-0.956-0.2c-0.346,0-0.662,0.065-0.951,0.195s-0.536,0.307-0.742,0.529 c-0.205,0.223-0.366,0.484-0.482,0.785s-0.175,0.619-0.175,0.961v0.02c0,0.339,0.059,0.662,0.175,0.964 c0.116,0.304,0.278,0.566,0.487,0.791c0.21,0.224,0.46,0.4,0.752,0.534S173.872,282.532,174.217,282.532z"></path><path fill="#FFFFFF" d="M178.857,276.543h1.138l3.742,4.839v-4.839h1.22v7h-1.028l-3.852-4.98v4.98h-1.22V276.543z"></path></g><rect x="261.076" y="180.709" transform="matrix(0.966 0.2586 -0.2586 0.966 56.3198 -63.7701)" fill="#FFFFFF" width="19" height="3.001"></rect><rect x="19.968" y="180.968" transform="matrix(0.9659 -0.2588 0.2588 0.9659 -46.2163 13.8417)" fill="#FFFFFF" width="19" height="3.001"></rect><rect x="265.5" y="148.5" fill="#FFFFFF" width="19" height="3"></rect><rect x="15.5" y="148.5" fill="#FFFFFF" width="19" height="3"></rect><g><path fill="#FFFFFF" d="M100.339,183.691h-2.22v-1.14h5.68v1.14h-2.22v5.86h-1.24V183.691z"></path><path fill="#FFFFFF" d="M107.468,189.662c-0.453,0-0.863-0.065-1.229-0.195c-0.367-0.13-0.68-0.325-0.94-0.585 c-0.26-0.26-0.46-0.582-0.6-0.965c-0.14-0.384-0.21-0.828-0.21-1.335v-4.03h1.22v3.98c0,0.653,0.158,1.149,0.473,1.489 c0.315,0.34,0.751,0.511,1.308,0.511c0.55,0,0.982-0.164,1.297-0.49c0.315-0.327,0.473-0.813,0.473-1.46v-4.03h1.221v3.97 c0,0.521-0.072,0.977-0.215,1.37c-0.144,0.394-0.346,0.722-0.605,0.985s-0.575,0.46-0.945,0.59S107.929,189.662,107.468,189.662z"></path><path fill="#FFFFFF" d="M111.669,182.552h3.119c0.44,0,0.83,0.062,1.171,0.185c0.34,0.124,0.623,0.296,0.85,0.516 c0.187,0.193,0.33,0.417,0.43,0.67c0.101,0.253,0.15,0.533,0.15,0.84v0.021c0,0.286-0.042,0.545-0.125,0.774 c-0.084,0.23-0.198,0.434-0.345,0.61c-0.147,0.177-0.322,0.326-0.525,0.45c-0.203,0.123-0.429,0.218-0.675,0.284l1.89,2.65h-1.45 l-1.725-2.44h-0.021h-1.524v2.44h-1.22V182.552z M114.694,186.021c0.441,0,0.792-0.105,1.053-0.316s0.392-0.497,0.392-0.858v-0.02 c0-0.382-0.127-0.672-0.382-0.869c-0.254-0.197-0.611-0.296-1.073-0.296h-1.795v2.359H114.694z"></path><path fill="#FFFFFF" d="M118.398,182.552h1.138l3.742,4.84v-4.84h1.22v7h-1.028l-3.852-4.98v4.98h-1.22V182.552z"></path><path fill="#FFFFFF" d="M131.559,189.672c-0.514,0-0.987-0.094-1.42-0.28c-0.434-0.187-0.81-0.441-1.128-0.765 c-0.319-0.323-0.569-0.705-0.75-1.146c-0.182-0.439-0.272-0.91-0.272-1.41v-0.02c0-0.5,0.089-0.969,0.268-1.405 c0.178-0.437,0.428-0.819,0.75-1.149c0.321-0.33,0.702-0.59,1.143-0.78s0.927-0.285,1.46-0.285c0.32,0,0.611,0.026,0.875,0.08 s0.505,0.129,0.725,0.225c0.221,0.097,0.424,0.212,0.61,0.346c0.187,0.133,0.363,0.279,0.53,0.439l-0.79,0.91 c-0.28-0.26-0.577-0.47-0.891-0.63c-0.313-0.16-0.67-0.24-1.069-0.24c-0.334,0-0.642,0.065-0.925,0.195 c-0.284,0.13-0.529,0.307-0.735,0.53c-0.207,0.223-0.367,0.484-0.48,0.784c-0.113,0.301-0.17,0.62-0.17,0.961v0.02 c0,0.34,0.057,0.662,0.17,0.965c0.113,0.304,0.273,0.568,0.48,0.795c0.206,0.227,0.451,0.405,0.735,0.535 c0.283,0.13,0.591,0.195,0.925,0.195c0.427,0,0.793-0.082,1.1-0.245s0.61-0.385,0.91-0.665l0.79,0.8 c-0.18,0.193-0.368,0.365-0.565,0.515c-0.196,0.15-0.408,0.28-0.635,0.391c-0.227,0.109-0.475,0.193-0.745,0.25 C132.184,189.644,131.885,189.672,131.559,189.672z"></path><path fill="#FFFFFF" d="M138.519,189.672c-0.54,0-1.033-0.095-1.48-0.285c-0.446-0.19-0.83-0.448-1.149-0.775 c-0.32-0.326-0.57-0.708-0.75-1.145c-0.181-0.437-0.271-0.901-0.271-1.396v-0.02c0-0.493,0.09-0.958,0.271-1.395 c0.18-0.438,0.433-0.82,0.76-1.15c0.326-0.33,0.713-0.592,1.16-0.785c0.446-0.193,0.939-0.29,1.479-0.29s1.033,0.095,1.48,0.285 c0.446,0.19,0.83,0.448,1.149,0.775c0.32,0.326,0.57,0.708,0.75,1.145c0.181,0.437,0.271,0.901,0.271,1.396v0.02 c0,0.493-0.09,0.958-0.271,1.395c-0.18,0.438-0.433,0.82-0.76,1.15c-0.326,0.33-0.713,0.592-1.16,0.785 C139.552,189.575,139.059,189.672,138.519,189.672z M138.538,188.542c0.346,0,0.662-0.065,0.951-0.195s0.536-0.307,0.742-0.53 c0.205-0.223,0.366-0.484,0.482-0.784c0.116-0.301,0.175-0.62,0.175-0.961v-0.02c0-0.34-0.059-0.661-0.175-0.965 s-0.279-0.566-0.488-0.79s-0.459-0.401-0.751-0.535c-0.293-0.133-0.611-0.2-0.956-0.2c-0.346,0-0.662,0.065-0.951,0.195 s-0.536,0.307-0.742,0.53c-0.205,0.223-0.366,0.484-0.482,0.784c-0.116,0.301-0.175,0.62-0.175,0.961v0.02 c0,0.34,0.059,0.662,0.175,0.965c0.116,0.304,0.278,0.566,0.487,0.79c0.21,0.224,0.46,0.401,0.752,0.535 S138.193,188.542,138.538,188.542z"></path><path fill="#FFFFFF" d="M146.519,189.672c-0.54,0-1.033-0.095-1.48-0.285c-0.446-0.19-0.83-0.448-1.149-0.775 c-0.32-0.326-0.57-0.708-0.75-1.145c-0.181-0.437-0.271-0.901-0.271-1.396v-0.02c0-0.493,0.09-0.958,0.271-1.395 c0.18-0.438,0.433-0.82,0.76-1.15c0.326-0.33,0.713-0.592,1.16-0.785c0.446-0.193,0.939-0.29,1.479-0.29s1.033,0.095,1.48,0.285 c0.446,0.19,0.83,0.448,1.149,0.775c0.32,0.326,0.57,0.708,0.75,1.145c0.181,0.437,0.271,0.901,0.271,1.396v0.02 c0,0.493-0.09,0.958-0.271,1.395c-0.18,0.438-0.433,0.82-0.76,1.15c-0.326,0.33-0.713,0.592-1.16,0.785 C147.552,189.575,147.059,189.672,146.519,189.672z M146.538,188.542c0.346,0,0.662-0.065,0.951-0.195s0.536-0.307,0.742-0.53 c0.205-0.223,0.366-0.484,0.482-0.784c0.116-0.301,0.175-0.62,0.175-0.961v-0.02c0-0.34-0.059-0.661-0.175-0.965 s-0.279-0.566-0.488-0.79s-0.459-0.401-0.751-0.535c-0.293-0.133-0.611-0.2-0.956-0.2c-0.346,0-0.662,0.065-0.951,0.195 s-0.536,0.307-0.742,0.53c-0.205,0.223-0.366,0.484-0.482,0.784c-0.116,0.301-0.175,0.62-0.175,0.961v0.02 c0,0.34,0.059,0.662,0.175,0.965c0.116,0.304,0.278,0.566,0.487,0.79c0.21,0.224,0.46,0.401,0.752,0.535 S146.193,188.542,146.538,188.542z"></path><path fill="#FFFFFF" d="M151.179,182.552h3.119c0.44,0,0.83,0.062,1.171,0.185c0.34,0.124,0.623,0.296,0.85,0.516 c0.187,0.193,0.33,0.417,0.43,0.67c0.101,0.253,0.15,0.533,0.15,0.84v0.021c0,0.286-0.042,0.545-0.125,0.774 c-0.084,0.23-0.198,0.434-0.345,0.61c-0.147,0.177-0.322,0.326-0.525,0.45c-0.203,0.123-0.429,0.218-0.675,0.284l1.89,2.65h-1.45 l-1.725-2.44h-0.021h-1.524v2.44h-1.22V182.552z M154.204,186.021c0.441,0,0.792-0.105,1.053-0.316s0.392-0.497,0.392-0.858v-0.02 c0-0.382-0.127-0.672-0.382-0.869c-0.254-0.197-0.611-0.296-1.073-0.296h-1.795v2.359H154.204z"></path><path fill="#FFFFFF" d="M157.908,182.552h2.609c0.547,0,1.049,0.089,1.505,0.265c0.457,0.177,0.851,0.422,1.181,0.735 s0.585,0.682,0.765,1.105c0.18,0.423,0.271,0.881,0.271,1.375v0.02c0,0.493-0.091,0.953-0.271,1.38s-0.435,0.797-0.765,1.11 s-0.724,0.56-1.181,0.74c-0.456,0.18-0.958,0.27-1.505,0.27h-2.609V182.552z M160.508,188.441c0.366,0,0.7-0.058,1-0.175 s0.555-0.281,0.765-0.492s0.374-0.462,0.49-0.754c0.116-0.291,0.175-0.607,0.175-0.948v-0.021c0-0.342-0.059-0.659-0.175-0.954 c-0.116-0.294-0.28-0.547-0.49-0.758s-0.465-0.377-0.765-0.497c-0.3-0.121-0.634-0.181-1-0.181h-1.38v4.779H160.508z"></path><path fill="#FFFFFF" d="M165.298,182.552h1.221v7h-1.221V182.552z"></path><path fill="#FFFFFF" d="M167.898,182.552h1.138l3.742,4.84v-4.84h1.22v7h-1.028l-3.852-4.98v4.98h-1.22V182.552z"></path><path fill="#FFFFFF" d="M177.777,182.502h1.14l3.08,7.05h-1.3l-0.71-1.69h-3.31l-0.721,1.69h-1.26L177.777,182.502z M179.537,186.771l-1.21-2.8l-1.199,2.8H179.537z"></path><path fill="#FFFFFF" d="M184.418,183.691h-2.22v-1.14h5.68v1.14h-2.22v5.86h-1.24V183.691z"></path><path fill="#FFFFFF" d="M192.018,189.672c-0.54,0-1.033-0.095-1.48-0.285c-0.446-0.19-0.83-0.448-1.149-0.775 c-0.32-0.326-0.57-0.708-0.75-1.145c-0.181-0.437-0.271-0.901-0.271-1.396v-0.02c0-0.493,0.09-0.958,0.271-1.395 c0.18-0.438,0.433-0.82,0.76-1.15c0.326-0.33,0.713-0.592,1.16-0.785c0.446-0.193,0.939-0.29,1.479-0.29s1.033,0.095,1.48,0.285 c0.446,0.19,0.83,0.448,1.149,0.775c0.32,0.326,0.57,0.708,0.75,1.145c0.181,0.437,0.271,0.901,0.271,1.396v0.02 c0,0.493-0.09,0.958-0.271,1.395c-0.18,0.438-0.433,0.82-0.76,1.15c-0.326,0.33-0.713,0.592-1.16,0.785 C193.051,189.575,192.558,189.672,192.018,189.672z M192.037,188.542c0.346,0,0.662-0.065,0.951-0.195s0.536-0.307,0.742-0.53 c0.205-0.223,0.366-0.484,0.482-0.784c0.116-0.301,0.175-0.62,0.175-0.961v-0.02c0-0.34-0.059-0.661-0.175-0.965 s-0.279-0.566-0.488-0.79s-0.459-0.401-0.751-0.535c-0.293-0.133-0.611-0.2-0.956-0.2c-0.346,0-0.662,0.065-0.951,0.195 s-0.536,0.307-0.742,0.53c-0.205,0.223-0.366,0.484-0.482,0.784c-0.116,0.301-0.175,0.62-0.175,0.961v0.02 c0,0.34,0.059,0.662,0.175,0.965c0.116,0.304,0.278,0.566,0.487,0.79c0.21,0.224,0.46,0.401,0.752,0.535 S191.692,188.542,192.037,188.542z"></path><path fill="#FFFFFF" d="M196.678,182.552h3.119c0.44,0,0.83,0.062,1.171,0.185c0.34,0.124,0.623,0.296,0.85,0.516 c0.187,0.193,0.33,0.417,0.43,0.67c0.101,0.253,0.15,0.533,0.15,0.84v0.021c0,0.286-0.042,0.545-0.125,0.774 c-0.084,0.23-0.198,0.434-0.345,0.61c-0.147,0.177-0.322,0.326-0.525,0.45c-0.203,0.123-0.429,0.218-0.675,0.284l1.89,2.65h-1.45 l-1.725-2.44h-0.021h-1.524v2.44h-1.22V182.552z M199.703,186.021c0.441,0,0.792-0.105,1.053-0.316s0.392-0.497,0.392-0.858v-0.02 c0-0.382-0.127-0.672-0.382-0.869c-0.254-0.197-0.611-0.296-1.073-0.296h-1.795v2.359H199.703z"></path></g><linearGradient id="SVGID_3_TurnCoordinator" gradientUnits="userSpaceOnUse" x1="150.0854" y1="-62.2837" x2="150.0854" y2="424.3861"><stop offset="0" style="stop-color:#FFFFFF"></stop><stop offset="1" style="stop-color:#000000"></stop></linearGradient><path fill="url(#SVGID_3_TurnCoordinator)" d="M150.086,4.05c38.998,0,75.662,15.187,103.238,42.762c27.575,27.576,42.762,64.24,42.762,103.238 s-15.187,75.661-42.762,103.237c-27.576,27.576-64.24,42.763-103.238,42.763c-38.998,0-75.662-15.187-103.237-42.763 S4.086,189.048,4.086,150.05S19.273,74.388,46.849,46.812S111.088,4.05,150.086,4.05 M150.086,0.05c-82.843,0-150,67.157-150,150 s67.157,150,150,150s150-67.157,150-150S232.929,0.05,150.086,0.05L150.086,0.05z"></path></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(692),i(6405),i(405),i(204),i(6406)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i],{_setDefaultWidth:function(){this._defaultSVGWidth=300},getSvgFileName:function(){return"ClimbIndicator"},getSVGFileText:function(e){return r},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth();var e=this.SVGDocument,t=15,i=10,n=5;this.tickValueVector=[null,null,null,null,null,null],this.initializeConstants(0,360,e,t,t,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(533),i(405),i(456)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{initializeConstants:function(e,t,i,n,o,r,a,s){this.startAngle=e,this.angularSpan=t,this.defaultLabelHeight=13,this.fontSize=10,this.defaultFontSize=10;var l=this.SVGDocument.getElementById("Center");this.centerX=parseFloat(l.getAttribute("cx")),this.centerY=parseFloat(l.getAttribute("cy"))},setMajorTickValues:function(e){for(var t=(e[1]-e[0])/4e3,i=0,n=!0,o=10;n;)t*o>1&&(n=!1),o*=10,i++;i++;for(var r=1,a=1;a<=6;a+=2){var s=this.SVGDocument.getElementById("Major_Ticks_"+a),l=this.SVGDocument.getElementById("Major_Ticks_"+(a+1)),c=e[0]/1e3+t*r;c=c.toFixed()-c==0?c.toFixed():c.toFixed(i),this.tickValueVector[r]!==c&&(this.tickValueVector[r]=c,s.textContent=c.toString(),l.textContent=c.toString()),r++}var d=this.SVGDocument.getElementById("Major_Ticks_7");c=(c=e[0]/1e3+t*r).toFixed()-c.toFixed(i)==0?c.toFixed():c.toFixed(i),this.tickValueVector[5]!==c&&(this.tickValueVector[5]=c,d.textContent=c.toString())},setValue:function(e,t,i,n){var r=180/e[1]*t;r>180&&(r=180),r<-180&&(r=-180),n&&this._rotateNeedle(o.toPositiveAngle(r))},drawTickLines:function(e,t,i,n){},computeTickPositions:function(e,t,i){},calculateLabelPosition:function(e,t,i,n){},_adjustForHorizontalCropping:function(e,t,i){var n=e;return i.x+e+t.w>i.x+i.w&&(n=i.w-t.w),e<0&&(n=0),n},_adjustForVerticalCropping:function(e,t,i){var n=e;return i.y+e+t.h>i.y+i.h&&(n=i.h-t.h),e<0&&(n=0),n},positionLabel:function(e,t,n,o){i.set(e,{left:t.x+"px",top:t.y+"px"})},_computeNeedleAngleForValue:function(e,t,i){var n=t[1]-t[0],o=(e-t[0])/n*this.angularSpan;return"clockwise"===i?o:this.angularSpan-o},_rotateNeedle:function(e){this.SVGDocument.getElementById("Needle").setAttribute("transform","rotate("+e+", "+this.centerX+", "+this.centerY+")")},setScaleColors:function(e,t,i,n){}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve"><g id="bg"><g><circle cx="150.032" cy="150.033" r="150"></circle><linearGradient id="SVGID_1_ClimbIndicator" gradientUnits="userSpaceOnUse" x1="150.0317" y1="-62.3003" x2="150.0317" y2="424.3695"><stop offset="0" style="stop-color:#FFFFFF"></stop><stop offset="1" style="stop-color:#000000"></stop></linearGradient><path fill="url(#SVGID_1_ClimbIndicator)" d="M150.032,4.033c38.998,0,75.661,15.187,103.237,42.762c27.576,27.576,42.763,64.24,42.763,103.238 s-15.187,75.662-42.763,103.237c-27.576,27.576-64.239,42.763-103.237,42.763S74.37,280.847,46.794,253.271 C19.219,225.695,4.032,189.031,4.032,150.033S19.219,74.372,46.794,46.795C74.37,19.22,111.034,4.033,150.032,4.033 M150.032,0.033c-82.843,0-150,67.157-150,150s67.158,150,150,150s150-67.157,150-150S232.875,0.033,150.032,0.033L150.032,0.033z "></path></g><g><defs><rect id="SVGID_2_" x="-35.648" y="-5.521" width="185.681" height="336.667"></rect></defs><clipPath id="SVGID_3_"><use xlink:href="#SVGID_2_" overflow="visible"></use></clipPath></g><g><g><path fill="#FFFFFF" d="M87.761,99.707h1.904l2.953,7.532l2.94-7.532h1.862l-4.074,9.87h-1.512L87.761,99.707z"></path><path fill="#FFFFFF" d="M99.1,99.707h7.253v1.554h-5.545v2.52h4.914v1.554h-4.914v2.618h5.614v1.554H99.1V99.707z"></path><path fill="#FFFFFF" d="M108.48,99.707h4.369c0.616,0,1.162,0.086,1.638,0.259c0.476,0.173,0.872,0.413,1.189,0.721 c0.261,0.271,0.462,0.583,0.602,0.938c0.14,0.354,0.21,0.747,0.21,1.176v0.028c0,0.402-0.059,0.763-0.175,1.085 c-0.117,0.322-0.277,0.606-0.483,0.854c-0.205,0.247-0.45,0.457-0.735,0.63c-0.284,0.173-0.6,0.306-0.945,0.399l2.646,3.71h-2.03 l-2.416-3.416h-0.027h-2.135v3.416h-1.708V99.707z M112.716,104.565c0.618,0,1.109-0.147,1.475-0.443 c0.365-0.295,0.547-0.696,0.547-1.202v-0.028c0-0.534-0.178-0.939-0.534-1.216c-0.355-0.277-0.857-0.415-1.503-0.415h-2.514 v3.304H112.716z"></path><path fill="#FFFFFF" d="M121.011,101.303h-3.108v-1.596h7.951v1.596h-3.107v8.204h-1.736V101.303z"></path><path fill="#FFFFFF" d="M127.772,99.707h1.708v9.8h-1.708V99.707z"></path><path fill="#FFFFFF" d="M136.676,109.675c-0.719,0-1.381-0.131-1.988-0.392c-0.607-0.261-1.133-0.618-1.579-1.071 s-0.796-0.987-1.05-1.603c-0.254-0.616-0.381-1.274-0.381-1.974v-0.028c0-0.7,0.125-1.355,0.373-1.967 c0.25-0.611,0.6-1.148,1.051-1.61c0.451-0.462,0.984-0.826,1.599-1.092c0.616-0.266,1.297-0.399,2.045-0.399 c0.448,0,0.856,0.037,1.225,0.112c0.37,0.075,0.707,0.18,1.015,0.315c0.308,0.135,0.592,0.296,0.854,0.483 c0.26,0.187,0.508,0.392,0.742,0.616l-1.106,1.274c-0.392-0.364-0.807-0.658-1.246-0.882c-0.438-0.224-0.938-0.336-1.498-0.336 c-0.467,0-0.899,0.091-1.295,0.273c-0.397,0.182-0.739,0.429-1.028,0.742c-0.29,0.313-0.514,0.679-0.672,1.099 c-0.16,0.42-0.237,0.868-0.237,1.344v0.028c0,0.476,0.078,0.926,0.237,1.351c0.159,0.425,0.383,0.795,0.672,1.113 s0.631,0.567,1.028,0.749c0.396,0.182,0.829,0.273,1.295,0.273c0.596,0,1.11-0.114,1.54-0.343s0.854-0.539,1.273-0.931 l1.107,1.12c-0.252,0.271-0.516,0.511-0.791,0.721s-0.571,0.392-0.889,0.546c-0.317,0.154-0.665,0.271-1.043,0.35 C137.551,109.635,137.133,109.675,136.676,109.675z"></path><path fill="#FFFFFF" d="M145.916,99.637h1.596l4.312,9.87h-1.821l-0.993-2.366h-4.635l-1.008,2.366h-1.764L145.916,99.637z M148.379,105.615l-1.693-3.92l-1.681,3.92H148.379z"></path><path fill="#FFFFFF" d="M153.504,99.707h1.708v8.246h5.152v1.554h-6.86V99.707z"></path><path fill="#FFFFFF" d="M169.813,109.647c-0.756,0-1.479-0.128-2.17-0.385c-0.69-0.256-1.33-0.651-1.918-1.183l1.036-1.232 c0.476,0.411,0.956,0.726,1.442,0.945c0.484,0.219,1.035,0.329,1.652,0.329c0.531,0,0.953-0.112,1.266-0.336 c0.313-0.224,0.471-0.522,0.471-0.896v-0.028c0-0.177-0.031-0.333-0.092-0.469c-0.061-0.135-0.174-0.263-0.338-0.385 c-0.164-0.121-0.389-0.233-0.674-0.336s-0.656-0.205-1.115-0.308c-0.523-0.121-0.99-0.259-1.396-0.413 c-0.406-0.154-0.748-0.34-1.024-0.56c-0.276-0.219-0.487-0.487-0.632-0.805s-0.217-0.7-0.217-1.148v-0.028 c0-0.42,0.082-0.805,0.249-1.155s0.396-0.648,0.688-0.896c0.292-0.247,0.642-0.441,1.052-0.581s0.857-0.21,1.344-0.21 c0.719,0,1.365,0.105,1.938,0.315c0.574,0.21,1.113,0.516,1.617,0.917l-0.924,1.302c-0.447-0.327-0.891-0.577-1.33-0.749 c-0.438-0.173-0.881-0.259-1.33-0.259c-0.504,0-0.895,0.112-1.176,0.336c-0.279,0.224-0.42,0.5-0.42,0.826v0.028 c0,0.187,0.033,0.353,0.098,0.497c0.066,0.145,0.186,0.275,0.359,0.392c0.172,0.117,0.41,0.227,0.715,0.329 s0.691,0.21,1.158,0.322c0.516,0.131,0.971,0.275,1.369,0.434c0.396,0.159,0.727,0.353,0.988,0.581 c0.264,0.229,0.461,0.495,0.598,0.798c0.135,0.304,0.203,0.656,0.203,1.057v0.028c0,0.458-0.086,0.868-0.258,1.232 c-0.17,0.364-0.408,0.672-0.715,0.924c-0.305,0.252-0.672,0.443-1.1,0.574C170.798,109.582,170.327,109.647,169.813,109.647z"></path><path fill="#FFFFFF" d="M175.33,99.707h3.864c0.569,0,1.085,0.077,1.547,0.231c0.462,0.154,0.854,0.375,1.176,0.665 c0.322,0.289,0.569,0.635,0.742,1.036c0.173,0.401,0.259,0.85,0.259,1.344v0.028c0,0.551-0.103,1.034-0.309,1.449 c-0.206,0.415-0.486,0.763-0.842,1.043c-0.355,0.28-0.771,0.492-1.249,0.637c-0.478,0.145-0.987,0.217-1.529,0.217h-1.951v3.15 h-1.708V99.707z M179.047,104.803c0.655,0,1.173-0.164,1.553-0.492c0.379-0.328,0.568-0.75,0.568-1.265v-0.028 c0-0.581-0.191-1.019-0.575-1.314c-0.385-0.295-0.899-0.443-1.546-0.443h-2.009v3.542H179.047z"></path><path fill="#FFFFFF" d="M184.682,99.707h7.252v1.554h-5.544v2.52h4.914v1.554h-4.914v2.618h5.614v1.554h-7.322V99.707z"></path><path fill="#FFFFFF" d="M194.062,99.707h7.252v1.554h-5.544v2.52h4.914v1.554h-4.914v2.618h5.614v1.554h-7.322V99.707z"></path><path fill="#FFFFFF" d="M203.441,99.707h3.654c0.765,0,1.468,0.124,2.107,0.371c0.639,0.248,1.189,0.591,1.651,1.029 s0.819,0.954,1.071,1.547s0.378,1.234,0.378,1.925v0.028c0,0.691-0.126,1.334-0.378,1.932c-0.252,0.597-0.609,1.115-1.071,1.554 c-0.462,0.439-1.013,0.784-1.651,1.036c-0.64,0.252-1.343,0.378-2.107,0.378h-3.654V99.707z M207.082,107.953 c0.513,0,0.979-0.082,1.399-0.246s0.777-0.394,1.071-0.689s0.522-0.647,0.686-1.055s0.245-0.851,0.245-1.328v-0.028 c0-0.478-0.082-0.923-0.245-1.335c-0.163-0.413-0.392-0.766-0.686-1.062s-0.651-0.527-1.071-0.696 c-0.42-0.169-0.887-0.253-1.399-0.253h-1.933v6.692H207.082z"></path></g><g><path fill="#FFFFFF" d="M110.383,118.021l-1.35,0.46l-0.14-0.41l1.603-0.59h0.408v7.05h-0.52V118.021z"></path><path fill="#FFFFFF" d="M115.483,124.65c-0.447,0-0.849-0.097-1.205-0.29s-0.66-0.455-0.91-0.785s-0.441-0.713-0.575-1.15 s-0.2-0.895-0.2-1.375v-0.02c0-0.48,0.068-0.94,0.205-1.38s0.332-0.825,0.585-1.155s0.558-0.593,0.915-0.79 c0.356-0.196,0.758-0.295,1.205-0.295c0.446,0,0.848,0.097,1.205,0.29c0.356,0.193,0.66,0.455,0.91,0.785s0.442,0.713,0.575,1.15 s0.2,0.895,0.2,1.375v0.02c0,0.48-0.069,0.94-0.205,1.38c-0.137,0.44-0.332,0.825-0.585,1.155 c-0.253,0.33-0.559,0.593-0.915,0.79C116.331,124.552,115.929,124.65,115.483,124.65z M115.503,124.18 c0.36,0,0.685-0.086,0.975-0.26s0.537-0.405,0.74-0.695c0.204-0.29,0.36-0.623,0.47-1c0.11-0.376,0.165-0.768,0.165-1.175v-0.02 c0-0.407-0.055-0.8-0.165-1.18c-0.11-0.38-0.269-0.715-0.475-1.005s-0.457-0.523-0.75-0.7c-0.293-0.177-0.62-0.265-0.98-0.265 s-0.685,0.086-0.975,0.26s-0.537,0.405-0.74,0.695c-0.204,0.29-0.36,0.623-0.47,1c-0.11,0.376-0.165,0.768-0.165,1.175v0.02 c0,0.407,0.055,0.798,0.165,1.175c0.11,0.377,0.268,0.712,0.475,1.005c0.207,0.293,0.457,0.528,0.75,0.705 C114.816,124.092,115.143,124.18,115.503,124.18z"></path><path fill="#FFFFFF" d="M122.583,124.65c-0.447,0-0.849-0.097-1.205-0.29s-0.66-0.455-0.91-0.785s-0.441-0.713-0.575-1.15 s-0.2-0.895-0.2-1.375v-0.02c0-0.48,0.068-0.94,0.205-1.38s0.332-0.825,0.585-1.155s0.558-0.593,0.915-0.79 c0.356-0.196,0.758-0.295,1.205-0.295c0.446,0,0.848,0.097,1.205,0.29c0.356,0.193,0.66,0.455,0.91,0.785s0.442,0.713,0.575,1.15 s0.2,0.895,0.2,1.375v0.02c0,0.48-0.069,0.94-0.205,1.38c-0.137,0.44-0.332,0.825-0.585,1.155 c-0.253,0.33-0.559,0.593-0.915,0.79C123.431,124.552,123.029,124.65,122.583,124.65z M122.603,124.18 c0.36,0,0.685-0.086,0.975-0.26s0.537-0.405,0.74-0.695c0.204-0.29,0.36-0.623,0.47-1c0.11-0.376,0.165-0.768,0.165-1.175v-0.02 c0-0.407-0.055-0.8-0.165-1.18c-0.11-0.38-0.269-0.715-0.475-1.005s-0.457-0.523-0.75-0.7c-0.293-0.177-0.62-0.265-0.98-0.265 s-0.685,0.086-0.975,0.26s-0.537,0.405-0.74,0.695c-0.204,0.29-0.36,0.623-0.47,1c-0.11,0.376-0.165,0.768-0.165,1.175v0.02 c0,0.407,0.055,0.798,0.165,1.175c0.11,0.377,0.268,0.712,0.475,1.005c0.207,0.293,0.457,0.528,0.75,0.705 C121.916,124.092,122.243,124.18,122.603,124.18z"></path><path fill="#FFFFFF" d="M129.683,124.65c-0.447,0-0.849-0.097-1.205-0.29s-0.66-0.455-0.91-0.785s-0.441-0.713-0.575-1.15 s-0.2-0.895-0.2-1.375v-0.02c0-0.48,0.068-0.94,0.205-1.38s0.332-0.825,0.585-1.155s0.558-0.593,0.915-0.79 c0.356-0.196,0.758-0.295,1.205-0.295c0.446,0,0.848,0.097,1.205,0.29c0.356,0.193,0.66,0.455,0.91,0.785s0.442,0.713,0.575,1.15 s0.2,0.895,0.2,1.375v0.02c0,0.48-0.069,0.94-0.205,1.38c-0.137,0.44-0.332,0.825-0.585,1.155 c-0.253,0.33-0.559,0.593-0.915,0.79C130.531,124.552,130.129,124.65,129.683,124.65z M129.703,124.18 c0.36,0,0.685-0.086,0.975-0.26s0.537-0.405,0.74-0.695c0.204-0.29,0.36-0.623,0.47-1c0.11-0.376,0.165-0.768,0.165-1.175v-0.02 c0-0.407-0.055-0.8-0.165-1.18c-0.11-0.38-0.269-0.715-0.475-1.005s-0.457-0.523-0.75-0.7c-0.293-0.177-0.62-0.265-0.98-0.265 s-0.685,0.086-0.975,0.26s-0.537,0.405-0.74,0.695c-0.204,0.29-0.36,0.623-0.47,1c-0.11,0.376-0.165,0.768-0.165,1.175v0.02 c0,0.407,0.055,0.798,0.165,1.175c0.11,0.377,0.268,0.712,0.475,1.005c0.207,0.293,0.457,0.528,0.75,0.705 C129.016,124.092,129.343,124.18,129.703,124.18z"></path><path fill="#FFFFFF" d="M134.282,117.53h4.93V118h-4.41v2.89h3.96v0.47h-3.96v3.17h-0.52V117.53z"></path><path fill="#FFFFFF" d="M142.782,118h-2.44v-0.47h5.4V118h-2.44v6.53h-0.52V118z"></path><path fill="#FFFFFF" d="M150.322,117.53h2.54c0.387,0,0.738,0.048,1.055,0.145c0.317,0.097,0.59,0.237,0.82,0.42 c0.23,0.184,0.408,0.407,0.535,0.67c0.126,0.264,0.19,0.565,0.19,0.905v0.02c0,0.367-0.074,0.69-0.221,0.97 c-0.146,0.28-0.345,0.514-0.595,0.7s-0.54,0.327-0.87,0.42s-0.679,0.14-1.045,0.14h-1.89v2.61h-0.52V117.53z M152.762,121.45 c0.327,0,0.624-0.04,0.891-0.121s0.495-0.196,0.686-0.347c0.189-0.151,0.338-0.333,0.444-0.548 c0.106-0.215,0.16-0.453,0.16-0.714v-0.02c0-0.282-0.052-0.528-0.155-0.739s-0.248-0.387-0.436-0.528 c-0.187-0.141-0.409-0.248-0.67-0.322c-0.26-0.074-0.546-0.11-0.859-0.11h-1.98v3.45H152.762z"></path><path fill="#FFFFFF" d="M157.002,117.53h4.979V118h-4.459v2.77h4.009v0.47h-4.009v2.82h4.509v0.47h-5.029V117.53z"></path><path fill="#FFFFFF" d="M163.702,117.53h2.94c0.433,0,0.816,0.062,1.149,0.185s0.606,0.292,0.82,0.505 c0.166,0.167,0.296,0.362,0.39,0.585c0.093,0.224,0.141,0.462,0.141,0.715v0.02c0,0.293-0.053,0.555-0.155,0.785 c-0.104,0.23-0.247,0.429-0.431,0.595s-0.399,0.302-0.649,0.405c-0.25,0.104-0.522,0.175-0.814,0.215l2.31,2.99h-0.66l-2.23-2.9 h-0.02h-2.271v2.9h-0.52V117.53z M166.582,121.16c0.293,0,0.565-0.037,0.815-0.11c0.25-0.073,0.465-0.179,0.645-0.316 s0.321-0.304,0.426-0.501c0.103-0.197,0.154-0.423,0.154-0.677v-0.02c0-0.475-0.175-0.849-0.525-1.124 c-0.35-0.274-0.845-0.411-1.484-0.411h-2.391v3.16H166.582z"></path><path fill="#FFFFFF" d="M173.932,117.53h0.49l2.81,4.14l2.811-4.14h0.49v7h-0.521v-6.08l-2.77,4.03h-0.04l-2.771-4.03v6.08h-0.5 V117.53z"></path><path fill="#FFFFFF" d="M182.682,117.53h0.52v7h-0.52V117.53z"></path><path fill="#FFFFFF" d="M185.352,117.53h0.489l4.831,6.09v-6.09h0.5v7h-0.391l-4.93-6.22v6.22h-0.5V117.53z"></path></g></g><g><g><path fill="#FFFFFF" d="M57.508,109.627c-0.453,0-0.863-0.065-1.229-0.195c-0.367-0.13-0.68-0.325-0.94-0.585 c-0.26-0.26-0.46-0.582-0.6-0.965s-0.21-0.829-0.21-1.335v-4.03h1.22v3.98c0,0.653,0.158,1.15,0.473,1.49 c0.315,0.34,0.751,0.51,1.308,0.51c0.55,0,0.982-0.163,1.297-0.49c0.315-0.327,0.473-0.813,0.473-1.46v-4.03h1.22v3.97 c0,0.52-0.072,0.977-0.214,1.37c-0.144,0.394-0.346,0.722-0.605,0.985c-0.26,0.263-0.575,0.46-0.945,0.59 S57.969,109.627,57.508,109.627z"></path><path fill="#FFFFFF" d="M62.209,102.517h2.76c0.406,0,0.774,0.055,1.104,0.165c0.33,0.11,0.61,0.269,0.84,0.475 c0.229,0.207,0.407,0.453,0.529,0.74c0.124,0.287,0.186,0.607,0.186,0.96v0.02c0,0.394-0.074,0.739-0.221,1.035 c-0.147,0.297-0.348,0.545-0.602,0.745c-0.254,0.2-0.552,0.352-0.893,0.455c-0.34,0.103-0.705,0.155-1.092,0.155h-1.393v2.25 h-1.22V102.517z M64.864,106.157c0.469,0,0.837-0.117,1.109-0.352c0.271-0.234,0.407-0.536,0.407-0.904v-0.02 c0-0.415-0.138-0.728-0.412-0.939s-0.642-0.316-1.104-0.316h-1.435v2.53H64.864z"></path></g><g><path fill="#FFFFFF" d="M54.529,192.329h2.609c0.547,0,1.049,0.089,1.505,0.265c0.457,0.177,0.851,0.422,1.181,0.735 s0.585,0.682,0.765,1.105c0.18,0.423,0.271,0.881,0.271,1.375v0.02c0,0.493-0.091,0.953-0.271,1.38s-0.435,0.797-0.765,1.11 s-0.724,0.56-1.181,0.74c-0.456,0.18-0.958,0.27-1.505,0.27h-2.609V192.329z M57.128,198.219c0.366,0,0.7-0.058,1-0.175 s0.555-0.281,0.765-0.492s0.374-0.462,0.49-0.754c0.116-0.291,0.175-0.607,0.175-0.948v-0.021c0-0.342-0.059-0.659-0.175-0.954 c-0.116-0.294-0.28-0.547-0.49-0.758s-0.465-0.377-0.765-0.497c-0.3-0.121-0.634-0.181-1-0.181h-1.38v4.779H57.128z"></path><path fill="#FFFFFF" d="M65.689,199.449c-0.54,0-1.033-0.095-1.48-0.285c-0.446-0.19-0.83-0.448-1.149-0.775 c-0.32-0.326-0.57-0.708-0.75-1.145c-0.181-0.437-0.271-0.901-0.271-1.396v-0.02c0-0.493,0.09-0.958,0.271-1.395 c0.18-0.438,0.433-0.82,0.759-1.15s0.713-0.592,1.161-0.785c0.446-0.193,0.939-0.29,1.479-0.29s1.033,0.095,1.48,0.285 c0.446,0.19,0.83,0.448,1.149,0.775c0.32,0.326,0.57,0.708,0.75,1.145c0.18,0.437,0.271,0.901,0.271,1.396v0.02 c0,0.493-0.09,0.958-0.271,1.395c-0.18,0.438-0.433,0.82-0.76,1.15c-0.327,0.33-0.713,0.592-1.16,0.785 C66.722,199.353,66.229,199.449,65.689,199.449z M65.708,198.319c0.346,0,0.662-0.065,0.951-0.195s0.536-0.307,0.742-0.53 c0.205-0.223,0.366-0.484,0.482-0.784c0.116-0.301,0.175-0.62,0.175-0.961v-0.02c0-0.34-0.059-0.661-0.175-0.965 s-0.279-0.566-0.488-0.79s-0.459-0.401-0.751-0.535c-0.293-0.133-0.611-0.2-0.956-0.2c-0.346,0-0.662,0.065-0.951,0.195 s-0.536,0.307-0.742,0.53c-0.205,0.223-0.366,0.484-0.482,0.784c-0.116,0.301-0.175,0.62-0.175,0.961v0.02 c0,0.34,0.059,0.662,0.175,0.965c0.116,0.304,0.278,0.566,0.487,0.79c0.209,0.224,0.459,0.401,0.751,0.535 C65.044,198.253,65.364,198.319,65.708,198.319z"></path><path fill="#FFFFFF" d="M70.309,192.329h1.33l1.67,5.19l1.72-5.21h1.04l1.72,5.21l1.67-5.19h1.29l-2.439,7.05h-1.061l-1.72-5.03 l-1.72,5.03h-1.061L70.309,192.329z"></path><path fill="#FFFFFF" d="M82.008,192.329h1.138l3.742,4.84v-4.84h1.22v7H87.08l-3.852-4.98v4.98h-1.22V192.329z"></path></g><polygon fill="#FFFFFF" points="64.919,122.23 60.357,130.979 62.927,130.979 62.927,137.699 66.911,137.699 66.911,130.979 69.482,130.979 "></polygon><polygon fill="#FFFFFF" points="64.919,180.161 69.482,171.413 66.911,171.413 66.911,164.692 62.927,164.692 62.927,171.413 60.357,171.413 "></polygon></g><rect x="270.059" y="99.902" fill="#FFFFFF" width="2" height="100.262"></rect><g id="values"><text id="Major_Ticks_0" transform="matrix(1 0 0 1 40.3789 158.9912)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">0</text><text id="Major_Ticks_1" transform="matrix(1 0 0 1 71.3184 89.7373)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">1</text><text id="Major_Ticks_2" transform="matrix(1 0 0 1 71.3184 228.7148)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">1</text><text id="Major_Ticks_3" transform="matrix(1 0 0 1 143.563 58.9502)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">2</text><text id="Major_Ticks_4" transform="matrix(1 0 0 1 143.563 258.7988)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">2</text><text id="Major_Ticks_5" transform="matrix(1 0 0 1 216.0459 89.7373)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">3</text><text id="Major_Ticks_6" transform="matrix(1 0 0 1 216.0459 228.0059)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">3</text><text id="Major_Ticks_7" transform="matrix(1 0 0 1 240.3789 158.9912)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="24">4</text></g><rect x="149.5" y="265.934" fill="#FFFFFF" width="1" height="18.867"></rect><rect x="144.464" y="272.134" transform="matrix(-0.9992 -0.0391 0.0391 -0.9992 278.9445 562.2847)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="139.327" y="271.829" transform="matrix(-0.9969 -0.0791 0.0791 -0.9969 257.21 566.4183)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="134.314" y="271.333" transform="matrix(-0.9931 -0.1172 0.1172 -0.9931 236.1686 569.1185)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="129.394" y="270.644" transform="matrix(-0.9876 -0.1572 0.1572 -0.9876 214.6432 570.8319)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="124.436" y="269.76" transform="matrix(-0.9809 -0.1943 0.1943 -0.9809 193.8453 571.1033)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="119.41" y="268.655" transform="matrix(-0.9724 -0.2334 0.2334 -0.9724 172.3222 570.2728)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="114.536" y="267.379" transform="matrix(-0.9625 -0.2714 0.2714 -0.9625 151.4933 568.2744)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="109.792" y="265.944" transform="matrix(-0.9512 -0.3086 0.3086 -0.9512 131.1915 565.2063)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="105.033" y="264.294" transform="matrix(-0.9383 -0.3458 0.3458 -0.9383 110.9841 560.9583)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="101.462" y="256.291" transform="matrix(-0.9238 -0.3828 0.3828 -0.9238 94.422 550.308)" fill="#FFFFFF" width="1" height="18.938"></rect><rect x="95.628" y="260.397" transform="matrix(-0.9084 -0.4181 0.4181 -0.9084 71.9617 549.1256)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="91.161" y="258.221" transform="matrix(-0.8905 -0.455 0.455 -0.8905 52.932 541.7515)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="86.718" y="255.848" transform="matrix(-0.8728 -0.4881 0.4881 -0.8728 35.3864 533.4879)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="82.28" y="253.245" transform="matrix(-0.8526 -0.5225 0.5225 -0.8526 17.7525 524.0636)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="78.039" y="250.526" transform="matrix(-0.8314 -0.5556 0.5556 -0.8314 1.1567 513.9711)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="73.958" y="247.687" transform="matrix(-0.809 -0.5878 0.5878 -0.809 -14.5961 503.1985)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="69.942" y="244.647" transform="matrix(-0.7857 -0.6186 0.6186 -0.7857 -29.4371 491.6638)" fill="#FFFFFF" width="0.999" height="12.568"></rect><rect x="65.965" y="241.38" transform="matrix(-0.7599 -0.6501 0.6501 -0.7599 -44.0288 479.0656)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="62.202" y="238.033" transform="matrix(-0.7344 -0.6787 0.6787 -0.7344 -57.075 466.2984)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="60.894" y="229.108" transform="matrix(-0.7061 -0.7081 0.7081 -0.7061 -64.2021 450.5539)" fill="#FFFFFF" width="1" height="18.983"></rect><rect x="55.135" y="230.954" transform="matrix(-0.6797 -0.7335 0.7335 -0.6797 -80.5512 439.3021)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="51.718" y="227.105" transform="matrix(-0.6497 -0.7602 0.7602 -0.6497 -91.265 424.7252)" fill="#FFFFFF" width="0.999" height="12.567"></rect><rect x="48.525" y="223.209" transform="matrix(-0.619 -0.7854 0.7854 -0.619 -100.8631 410.0579)" fill="#FFFFFF" width="1.001" height="12.568"></rect><rect x="45.53" y="219.259" transform="matrix(-0.5884 -0.8086 0.8086 -0.5884 -109.2585 395.4671)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="42.65" y="215.127" transform="matrix(-0.5558 -0.8313 0.8313 -0.5558 -116.9245 380.348)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="39.877" y="210.793" transform="matrix(-0.5225 -0.8526 0.8526 -0.5225 -123.6121 364.9289)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="37.332" y="206.446" transform="matrix(-0.4893 -0.8721 0.8721 -0.4893 -129.1831 349.8097)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="34.997" y="202.06" transform="matrix(-0.4531 -0.8915 0.8915 -0.4531 -134.1554 334.3828)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="32.798" y="197.529" transform="matrix(-0.4193 -0.9079 0.9079 -0.4193 -137.7744 319.4966)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="33.695" y="188.391" transform="matrix(-0.3832 -0.9237 0.9237 -0.3832 -135.4676 305.2903)" fill="#FFFFFF" width="1" height="18.967"></rect><rect x="28.905" y="188.121" transform="matrix(-0.3461 -0.9382 0.9382 -0.3461 -142.8095 289.2748)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="27.272" y="183.425" transform="matrix(-0.3086 -0.9512 0.9512 -0.3086 -144.1074 274.6706)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="25.81" y="178.606" transform="matrix(-0.2714 -0.9625 0.9625 -0.2714 -144.5024 260.3852)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="24.512" y="173.626" transform="matrix(-0.2324 -0.9726 0.9726 -0.2324 -144.1576 246.0505)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="23.436" y="168.706" transform="matrix(-0.1954 -0.9807 0.9807 -0.1954 -143.0053 232.6505)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="22.571" y="163.813" transform="matrix(-0.1558 -0.9878 0.9878 -0.1558 -141.3535 219.3931)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="21.88" y="158.824" transform="matrix(-0.1186 -0.9929 0.9929 -0.1186 -138.9072 206.915)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="21.378" y="153.702" transform="matrix(-0.0787 -0.9969 0.9969 -0.0787 -135.8909 194.3829)" fill="#FFFFFF" width="0.999" height="12.567"></rect><rect x="21.085" y="148.674" transform="matrix(-0.0391 -0.9992 0.9992 -0.0391 -132.4109 182.5803)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="15.199" y="149.502" fill="#FFFFFF" width="18.99" height="1"></rect><rect x="21.082" y="138.682" transform="matrix(0.0391 -0.9992 0.9992 0.0391 -124.1166 160.8677)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="21.386" y="133.545" transform="matrix(0.0786 -0.9969 0.9969 0.0786 -119.2303 150.6568)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="21.883" y="128.533" transform="matrix(0.1168 -0.9932 0.9932 0.1168 -114.1249 141.306)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="22.571" y="123.612" transform="matrix(0.1573 -0.9876 0.9876 0.1573 -108.8371 132.2523)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="23.456" y="118.654" transform="matrix(0.1942 -0.981 0.981 0.1942 -103.2551 124.1696)" fill="#FFFFFF" width="1.001" height="12.568"></rect><rect x="24.561" y="113.628" transform="matrix(0.2333 -0.9724 0.9724 0.2333 -97.388 116.3014)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="25.836" y="108.755" transform="matrix(0.2719 -0.9623 0.9623 0.2719 -91.5289 109.0982)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="27.276" y="103.996" transform="matrix(0.309 -0.951 0.951 0.309 -85.6896 102.6147)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="28.926" y="99.236" transform="matrix(0.3454 -0.9385 0.9385 0.3454 -79.7643 96.6899)" fill="#FFFFFF" width="0.999" height="12.568"></rect><rect x="33.773" y="92.463" transform="matrix(0.3826 -0.9239 0.9239 0.3826 -73.0435 94.6126)" fill="#FFFFFF" width="1" height="18.999"></rect><rect x="32.824" y="89.832" transform="matrix(0.4185 -0.9082 0.9082 0.4185 -67.9161 86.1605)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="35" y="85.365" transform="matrix(0.455 -0.8905 0.8905 0.455 -62.2649 81.5608)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="37.374" y="80.923" transform="matrix(0.4874 -0.8732 0.8732 0.4874 -56.7334 77.7747)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="39.979" y="76.485" transform="matrix(0.5222 -0.8528 0.8528 0.5222 -51.2464 74.0721)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="42.697" y="72.244" transform="matrix(0.5557 -0.8314 0.8314 0.5557 -46.0943 70.8024)" fill="#FFFFFF" width="1.001" height="12.568"></rect><rect x="45.528" y="68.175" transform="matrix(0.5875 -0.8092 0.8092 0.5875 -41.268 67.9613)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="48.569" y="64.159" transform="matrix(0.6189 -0.7855 0.7855 0.6189 -36.6314 65.3878)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="51.834" y="60.183" transform="matrix(0.6495 -0.7604 0.7604 0.6495 -32.1955 63.0884)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="55.182" y="56.42" transform="matrix(0.6782 -0.7349 0.7349 0.6782 -28.1608 61.0951)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="60.904" y="51.902" transform="matrix(0.7086 -0.7056 0.7056 0.7086 -25.4323 61.2234)" fill="#FFFFFF" width="1" height="18.999"></rect><rect x="62.261" y="49.352" transform="matrix(0.7339 -0.6792 0.6792 0.7339 -21.0905 57.4328)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="66.11" y="45.936" transform="matrix(0.7604 -0.6495 0.6495 0.7604 -17.9542 55.7771)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="70.005" y="42.743" transform="matrix(0.7852 -0.6193 0.6193 0.7852 -15.2146 54.1934)" fill="#FFFFFF" width="1.001" height="12.568"></rect><rect x="73.959" y="39.745" transform="matrix(0.8088 -0.5881 0.5881 0.8088 -12.8325 52.5856)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="78.091" y="36.864" transform="matrix(0.8314 -0.5557 0.5557 0.8314 -10.7257 50.9501)" fill="#FFFFFF" width="0.999" height="12.568"></rect><rect x="82.426" y="34.091" transform="matrix(0.8528 -0.5223 0.5223 0.8528 -8.8779 49.2568)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="86.773" y="31.547" transform="matrix(0.8722 -0.4891 0.4891 0.8722 -7.3519 47.5215)" fill="#FFFFFF" width="0.999" height="12.568"></rect><rect x="91.158" y="29.211" transform="matrix(0.8914 -0.4533 0.4533 0.8914 -6.1326 45.4004)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="95.69" y="27.013" transform="matrix(0.9079 -0.4193 0.4193 0.9079 -5.0975 43.3979)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="101.633" y="24.71" transform="matrix(0.9238 -0.3828 0.3828 0.9238 -5.315 41.7034)" fill="#FFFFFF" width="1" height="18.994"></rect><rect x="105.097" y="23.12" transform="matrix(0.9384 -0.3457 0.3457 0.9384 -3.6548 38.3132)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="109.793" y="21.487" transform="matrix(0.951 -0.309 0.309 0.951 -3.1834 35.4447)" fill="#FFFFFF" width="1" height="12.568"></rect><rect x="114.614" y="20.025" transform="matrix(0.9623 -0.2721 0.2721 0.9623 -2.8154 32.312)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="119.593" y="18.728" transform="matrix(0.9725 -0.2328 0.2328 0.9725 -2.5232 28.6404)" fill="#FFFFFF" width="1.001" height="12.568"></rect><rect x="124.514" y="17.651" transform="matrix(0.9807 -0.1953 0.1953 0.9807 -2.2672 24.8724)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="129.406" y="16.785" transform="matrix(0.9879 -0.1552 0.1552 0.9879 -2.0064 20.4424)" fill="#FFFFFF" width="1" height="12.569"></rect><rect x="134.395" y="16.095" transform="matrix(0.9929 -0.1187 0.1187 0.9929 -1.7026 16.1679)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="139.517" y="15.594" transform="matrix(0.9969 -0.0786 0.0786 0.9969 -1.2868 11.0785)" fill="#FFFFFF" width="1" height="12.567"></rect><rect x="144.545" y="15.301" transform="matrix(0.9992 -0.039 0.039 0.9992 -0.732 5.678)" fill="#FFFFFF" width="1.001" height="12.568"></rect><rect x="149.501" y="15.2" fill="#FFFFFF" width="1" height="18.929"></rect><rect x="238.15" y="229.212" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 576.1499 238.6429)" fill="#FFFFFF" width="1" height="18.867"></rect><rect x="238.129" y="51.913" transform="matrix(0.7071 0.7071 -0.7071 0.7071 113.2937 -150.7593)" fill="#FFFFFF" width="1" height="18.93"></rect><rect x="265.297" y="92.575" transform="matrix(0.3828 0.9238 -0.9238 0.3828 258.3138 -182.5724)" fill="#FFFFFF" width="1" height="18.929"></rect><rect x="265.326" y="188.54" transform="matrix(-0.382 0.9242 -0.9242 -0.382 550.327 27.9256)" fill="#FFFFFF" width="1" height="18.867"></rect><rect x="196.966" y="24.59" transform="matrix(0.9228 0.3852 -0.3852 0.9228 28.3604 -73.4433)" fill="#FFFFFF" width="1" height="18.929"></rect><rect x="197.479" y="256.389" transform="matrix(-0.9238 0.3828 -0.3828 -0.9238 482.6382 435.608)" fill="#FFFFFF" width="1" height="18.867"></rect></g><g id="Needle"><g id="NeedleBody"><polygon fill="#FFFFFF" points="31.988,150.001 41.643,153.921 131.297,153.921 131.297,146.08 41.643,146.081 "></polygon><path fill="#4D4D4D" d="M188.228,146.079l-56.931,0.001v7.841l56.931-0.001c1.444,2.901,4.432,4.9,7.893,4.9 c4.871,0,8.819-3.949,8.819-8.821c0-4.871-3.948-8.819-8.819-8.819C192.659,141.18,189.672,143.178,188.228,146.079z"></path></g><circle id="Center" fill="#4D4D4D" stroke="#808080" cx="150" cy="150" r="8.302"></circle></g></svg>'},function(e,t,i){var n,o;n=[i(203),i(692),i(6408),i(204),i(6409)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i],{_setDefaultWidth:function(){this._defaultSVGWidth=300},getSvgFileName:function(){return"EGTIndicator"},getSVGFileText:function(e){return o},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth();var e=this.SVGDocument,t=0,i=-10,n=0;this.tickValueVector=[null,null,null,null,null,null,null,null,null,null,null],this.initializeConstants(-10,200,e,t,t,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(533),i(959),i(405),i(456)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n,o],{initializeConstants:function(e,t,i,n,o,r,a,s){this.startAngle=e,this.angularSpan=t,this.defaultLabelHeight=13,this.fontSize=10,this.defaultFontSize=10;var l=this.SVGDocument.getElementById("Center");this.centerX=parseFloat(l.getAttribute("cx")),this.centerY=parseFloat(l.getAttribute("cy")),this.radius=135,this.scaleColorRadius=this.radius+a},setMajorTickValues:function(e){for(var t=(e[1]-e[0])/1e3,i=0,n=!0,o=10;n;)t*o>1&&(n=!1),o*=10,i++;i++;for(var r=0;r<=10;r++){var a=this.SVGDocument.getElementById("Major_Ticks_"+r),s=e[0]/100+t*r;s=s.toFixed()-s==0?s.toFixed():s.toFixed(i),this.tickValueVector[r]!==s&&(this.tickValueVector[r]=s,a.textContent=s.toString())}},setValue:function(e,t,i,n){var o=-this.needlePeggingPosition,a=this.angularSpan+this.needlePeggingPosition,s=0;if(t>=e[0]&&t<=e[1]?s=this._computeNeedleAngleForValue(t,e,"clockwise"):t<e[0]?(t=e[0],s=o):(t=e[1],s=a),n){this._rotateNeedle(r.toPositiveAngle(s));var l=this.SVGDocument.getElementById("StringValue"),c=(t=Math.floor(t)).toFixed(0).toString();l.textContent=c}},computeTickPositions:function(e,t,i){for(var n=e[1]-e[0],o=[],r=0;r<t.length;r++)o[r]="clockwise"===i?(t[r]-e[0])/n*this.angularSpan+this.startAngle:this.startAngle+this.angularSpan-(t[r]-e[0])/n*this.angularSpan;return o},calculateLabelPosition:function(e,t,i,n){var o=this.majorTickLabelRadius*this.scalingFactor;void 0!==this.labelNonScaledOffsetFromMajorTickMark&&(o+=this.labelNonScaledOffsetFromMajorTickMark);var a=n.x-i.x+n.w/2,s=n.y-i.y+n.h/2,l=a-o*Math.cos(r.toRadians(e)),c=s-o*Math.sin(r.toRadians(e));return this.fineTuneLabelPositions(e,t,l,c,i)},_adjustForHorizontalCropping:function(e,t,i){var n=e;return i.x+e+t.w>i.x+i.w&&(n=i.w-t.w),e<0&&(n=0),n},_adjustForVerticalCropping:function(e,t,i){var n=e;return i.y+e+t.h>i.y+i.h&&(n=i.h-t.h),e<0&&(n=0),n},positionLabel:function(e,t,n,o){i.set(e,{left:t.x+"px",top:t.y+"px"})},_computeNeedleAngleForValue:function(e,t,i){var n=t[1]-t[0],o=(e-t[0])/n*this.angularSpan;return"clockwise"===i?o:this.angularSpan-o},_rotateNeedle:function(e){this.SVGDocument.getElementById("Needle").setAttribute("transform","rotate("+e+", "+this.centerX+", "+this.centerY+")")},setScaleColors:function(e,t,i,n){var o=this.constrainScaleColorLimitsToScaleLimits(e,i,t);t=o.scaleColors,i=o.scaleColorLimits;var s=this.SVGDocument.getElementById("Scale_Color");a.removeChildNodes(s);for(var l=0;l<i.length;l++){var c=this.computeTickPositions(e,i[l],"clockwise"),d={},u=this.centerX-this.scaleColorRadius*Math.cos(r.toRadians(c[0])),h=this.centerY-this.scaleColorRadius*Math.sin(r.toRadians(c[0])),p=this.centerX-this.scaleColorRadius*Math.cos(r.toRadians(c[1])),f=this.centerY-this.scaleColorRadius*Math.sin(r.toRadians(c[1])),g=(i[l][0]-e[0])/(e[1]-e[0])*this.angularSpan,m=(i[l][1]-e[0])/(e[1]-e[0])*this.angularSpan,_=0;Math.abs(m-g)>=180&&(_=1);var v=1;0,d.d="M "+u+","+h+" A"+this.scaleColorRadius+","+this.scaleColorRadius+" 0 "+_+","+v+" "+p+","+f;var b="#"+this.toColorString(t[l][0])+this.toColorString(t[l][1])+this.toColorString(t[l][2]);d.stroke=b,d.fill="none",d["stroke-width"]=5,d.id="scaleColor_"+l,a.addNewElement(s,"path",d)}},toColorString:function(e){var t=Math.round(e).toString(16);return 1===t.length&&(t="0"+t),t}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve"><g id="bg"><circle cx="150" cy="150" r="150"></circle><linearGradient id="SVGID_1_EGTIndicator" gradientUnits="userSpaceOnUse" x1="-90.5" y1="323.334" x2="-90.5" y2="-163.3358" gradientTransform="matrix(1 0 0 -1 240.5 261)"><stop offset="0" style="stop-color:#FFFFFF"></stop><stop offset="1" style="stop-color:#000000"></stop></linearGradient><path fill="url(#SVGID_1_EGTIndicator)" d="M150,4c38.997,0,75.661,15.187,103.236,42.762C280.813,74.338,296,111.002,296,150 s-15.188,75.662-42.764,103.236C225.661,280.813,188.997,296,150,296c-38.998,0-75.662-15.188-103.237-42.764 C19.187,225.662,4,188.998,4,150S19.187,74.338,46.763,46.762C74.338,19.187,111.002,4,150,4 M150,0C67.157,0,0,67.157,0,150 s67.157,150,150,150s150-67.157,150-150S232.843,0,150,0L150,0z"></path><g><g><path fill="#FFFFFF" d="M131.169,80.848h9.324v1.998h-7.128v3.24h6.317v1.998h-6.317v3.366h7.218v1.998h-9.414V80.848z"></path><path fill="#FFFFFF" d="M150.105,93.664c-0.983,0-1.878-0.165-2.682-0.495c-0.804-0.33-1.491-0.786-2.062-1.368 c-0.569-0.582-1.011-1.266-1.322-2.052c-0.313-0.786-0.469-1.641-0.469-2.565v-0.036c0-0.876,0.16-1.71,0.481-2.502 c0.32-0.792,0.771-1.486,1.35-2.079c0.579-0.594,1.269-1.065,2.066-1.413c0.797-0.348,1.671-0.522,2.619-0.522 c0.553,0,1.053,0.039,1.502,0.117c0.45,0.079,0.867,0.189,1.251,0.333c0.384,0.145,0.747,0.322,1.089,0.532 c0.342,0.21,0.676,0.453,0.999,0.729l-1.403,1.674c-0.24-0.204-0.485-0.39-0.737-0.558c-0.252-0.167-0.517-0.309-0.792-0.423 c-0.276-0.114-0.579-0.204-0.909-0.27s-0.693-0.099-1.088-0.099c-0.576,0-1.113,0.121-1.611,0.361 c-0.498,0.241-0.93,0.563-1.296,0.965c-0.366,0.402-0.654,0.875-0.864,1.416c-0.21,0.542-0.314,1.112-0.314,1.713v0.036 c0,0.65,0.102,1.251,0.305,1.804c0.204,0.553,0.494,1.028,0.871,1.425s0.826,0.709,1.347,0.938s1.104,0.342,1.751,0.342 c0.599,0,1.158-0.087,1.678-0.262c0.52-0.175,0.973-0.407,1.354-0.697v-2.37h-3.221V86.41h5.363v5.292 c-0.313,0.264-0.656,0.516-1.034,0.756s-0.786,0.45-1.226,0.63c-0.438,0.18-0.908,0.321-1.412,0.423 C151.186,93.613,150.657,93.664,150.105,93.664z"></path><path fill="#FFFFFF" d="M162.236,82.9h-3.996v-2.052h10.225V82.9h-3.996v10.548h-2.232V82.9L162.236,82.9z"></path></g><g><path fill="#FFFFFF" d="M128.499,115.264c-0.925,0-1.776-0.168-2.557-0.504c-0.781-0.336-1.456-0.795-2.03-1.377 c-0.573-0.582-1.023-1.269-1.35-2.061c-0.327-0.792-0.49-1.638-0.49-2.538v-0.036c0-0.9,0.16-1.743,0.481-2.529 c0.32-0.786,0.771-1.476,1.35-2.07c0.579-0.594,1.266-1.062,2.058-1.404c0.792-0.342,1.668-0.513,2.628-0.513 c0.576,0,1.101,0.048,1.575,0.144s0.908,0.231,1.305,0.405c0.396,0.174,0.762,0.381,1.098,0.621 c0.336,0.24,0.654,0.504,0.954,0.792l-1.422,1.638c-0.504-0.468-1.038-0.847-1.602-1.134c-0.564-0.288-1.206-0.432-1.927-0.432 c-0.6,0-1.154,0.117-1.665,0.351c-0.51,0.234-0.951,0.552-1.322,0.954c-0.372,0.402-0.66,0.873-0.864,1.413 c-0.204,0.54-0.306,1.116-0.306,1.728v0.036c0,0.612,0.102,1.191,0.306,1.737c0.204,0.546,0.492,1.023,0.864,1.431 c0.371,0.408,0.813,0.729,1.322,0.963c0.511,0.234,1.065,0.351,1.665,0.351c0.769,0,1.429-0.147,1.98-0.441 c0.551-0.294,1.098-0.693,1.638-1.197l1.422,1.439c-0.323,0.349-0.663,0.658-1.017,0.928s-0.735,0.504-1.143,0.701 c-0.408,0.199-0.855,0.349-1.342,0.45C129.624,115.213,129.086,115.264,128.499,115.264z"></path><path fill="#FFFFFF" d="M140.45,108.64l-4.41-6.192h2.61l3.132,4.518l3.15-4.518h2.538l-4.393,6.156l4.572,6.444h-2.61 l-3.312-4.77l-3.33,4.77h-2.538L140.45,108.64z"></path><path fill="#FFFFFF" d="M152.42,104.608l-2.268,0.63l-0.468-1.8l3.382-1.08h1.55v12.69h-2.196V104.608z"></path><path fill="#FFFFFF" d="M163.741,115.264c-0.828,0-1.578-0.168-2.25-0.504c-0.673-0.336-1.248-0.798-1.729-1.386 c-0.479-0.588-0.849-1.275-1.105-2.061c-0.258-0.786-0.387-1.629-0.387-2.529v-0.036c0-0.9,0.131-1.746,0.396-2.538 s0.636-1.482,1.116-2.07c0.479-0.587,1.059-1.053,1.736-1.395c0.678-0.342,1.432-0.513,2.26-0.513s1.576,0.168,2.25,0.503 c0.672,0.336,1.244,0.799,1.719,1.387c0.474,0.588,0.843,1.275,1.107,2.061c0.264,0.786,0.396,1.629,0.396,2.529v0.036 c0,0.9-0.132,1.746-0.396,2.537c-0.266,0.792-0.638,1.483-1.117,2.071s-1.06,1.053-1.736,1.395 C165.322,115.093,164.568,115.264,163.741,115.264z M163.777,113.266c0.492,0,0.933-0.117,1.322-0.351 c0.391-0.234,0.724-0.552,1-0.954c0.274-0.402,0.487-0.876,0.639-1.422c0.148-0.546,0.225-1.131,0.225-1.755v-0.036 c0-0.624-0.078-1.209-0.232-1.755c-0.156-0.546-0.373-1.023-0.648-1.431s-0.615-0.732-1.018-0.972 c-0.401-0.24-0.844-0.36-1.322-0.36c-0.492,0-0.934,0.117-1.323,0.351c-0.39,0.233-0.724,0.552-0.999,0.954 c-0.275,0.402-0.488,0.876-0.639,1.422s-0.227,1.131-0.227,1.755v0.036c0,0.624,0.075,1.209,0.227,1.755 c0.148,0.546,0.365,1.023,0.646,1.431c0.282,0.408,0.621,0.732,1.018,0.972C162.841,113.146,163.285,113.266,163.777,113.266z"></path><path fill="#FFFFFF" d="M177.674,115.264c-0.828,0-1.578-0.168-2.25-0.504c-0.672-0.336-1.248-0.798-1.729-1.386 c-0.479-0.588-0.85-1.275-1.106-2.061s-0.387-1.629-0.387-2.529v-0.036c0-0.9,0.132-1.746,0.396-2.538s0.637-1.482,1.116-2.07 c0.479-0.587,1.06-1.053,1.737-1.395c0.678-0.342,1.431-0.513,2.259-0.513s1.577,0.168,2.25,0.503 c0.672,0.336,1.245,0.799,1.72,1.387c0.473,0.588,0.842,1.275,1.106,2.061c0.264,0.786,0.396,1.629,0.396,2.529v0.036 c0,0.9-0.132,1.746-0.396,2.537c-0.265,0.792-0.638,1.483-1.116,2.071c-0.48,0.588-1.061,1.053-1.736,1.395 C179.255,115.093,178.502,115.264,177.674,115.264z M177.71,113.266c0.492,0,0.933-0.117,1.323-0.351 c0.39-0.234,0.723-0.552,0.999-0.954c0.274-0.402,0.487-0.876,0.639-1.422c0.149-0.546,0.226-1.131,0.226-1.755v-0.036 c0-0.624-0.078-1.209-0.233-1.755c-0.156-0.546-0.372-1.023-0.647-1.431c-0.276-0.408-0.615-0.732-1.018-0.972 c-0.402-0.24-0.844-0.36-1.323-0.36c-0.491,0-0.934,0.117-1.323,0.351c-0.39,0.233-0.723,0.552-0.998,0.954 c-0.276,0.402-0.489,0.876-0.64,1.422c-0.149,0.546-0.226,1.131-0.226,1.755v0.036c0,0.624,0.074,1.209,0.226,1.755 c0.149,0.546,0.366,1.023,0.647,1.431c0.281,0.408,0.621,0.732,1.018,0.972C176.773,113.146,177.218,113.266,177.71,113.266z"></path><path fill="#FFFFFF" d="M118.74,106.546c-1.261,0-2.287-1.026-2.287-2.287c0-1.261,1.026-2.287,2.287-2.287 c1.261,0,2.286,1.026,2.286,2.287C121.026,105.52,120,106.546,118.74,106.546z M118.74,102.973c-0.71,0-1.287,0.577-1.287,1.287 c0,0.71,0.577,1.287,1.287,1.287c0.709,0,1.286-0.577,1.286-1.287C120.026,103.55,119.449,102.973,118.74,102.973z"></path></g></g><g><path fill="#1A1A1A" d="M217.846,256.876H82.117c-2.2,0-4-1.8-4-4v-29.42c0-2.2,1.8-4,4-4h135.729c2.199,0,4,1.8,4,4v29.42 C221.846,255.076,220.045,256.876,217.846,256.876z"></path><path fill="#4D4D4D" d="M217.846,257.376H82.117c-2.481,0-4.5-2.019-4.5-4.5v-29.42c0-2.481,2.019-4.5,4.5-4.5h135.729 c2.48,0,4.5,2.019,4.5,4.5v29.42C222.346,255.357,220.326,257.376,217.846,257.376z M82.117,219.956c-1.93,0-3.5,1.569-3.5,3.5 v29.42c0,1.931,1.57,3.5,3.5,3.5h135.729c1.93,0,3.5-1.569,3.5-3.5v-29.42c0-1.931-1.57-3.5-3.5-3.5H82.117z"></path></g><g id="MajorTick"><rect x="149.5" y="15" fill="#FFFFFF" width="1" height="19"></rect><rect x="192.429" y="22.571" transform="matrix(-0.9397 -0.342 0.342 -0.9397 363.2556 128.1938)" fill="#FFFFFF" width="1.001" height="19.001"></rect><rect x="230.156" y="44.361" transform="matrix(-0.7663 -0.6425 0.6425 -0.7663 372.804 243.3283)" fill="#FFFFFF" width="1.002" height="19"></rect><rect x="258.17" y="77.747" transform="matrix(-0.4997 -0.8662 0.8662 -0.4997 312.3568 354.9031)" fill="#FFFFFF" width="1.001" height="18.999"></rect><rect x="273.108" y="118.701" transform="matrix(-0.1729 -0.9849 0.9849 -0.1729 194.6351 419.8518)" fill="#FFFFFF" width="1" height="19"></rect><rect x="273.083" y="162.299" transform="matrix(0.1729 -0.9849 0.9849 0.1729 57.0557 411.547)" fill="#FFFFFF" width="0.999" height="19.001"></rect><rect x="25.905" y="162.294" transform="matrix(0.1748 0.9846 -0.9846 0.1748 190.9355 115.759)" fill="#FFFFFF" width="1" height="19"></rect><rect x="25.903" y="118.704" transform="matrix(-0.1736 0.9848 -0.9848 -0.1736 157.2447 124.463)" fill="#FFFFFF" width="1.001" height="18.999"></rect><rect x="40.809" y="77.755" transform="matrix(-0.4995 0.8663 -0.8663 -0.4995 137.5331 95.0518)" fill="#FFFFFF" width="1.001" height="19"></rect><rect x="68.838" y="44.356" transform="matrix(-0.7668 0.6419 -0.6419 -0.7668 157.0771 50.6433)" fill="#FFFFFF" width="1.001" height="19.001"></rect><rect x="106.574" y="22.57" transform="matrix(-0.9393 0.343 -0.343 -0.9393 218.6523 25.465)" fill="#FFFFFF" width="1.001" height="19"></rect></g><g id="MinorTick"><rect x="171.837" y="16.923" transform="matrix(-0.9847 -0.1744 0.1744 -0.9847 337.9483 76.5382)" fill="#FFFFFF" width="1" height="13"></rect><rect x="213.775" y="32.186" transform="matrix(-0.8661 -0.4999 0.4999 -0.8661 380.5135 179.311)" fill="#FFFFFF" width="1" height="13"></rect><rect x="247.964" y="60.898" transform="matrix(-0.6424 -0.7664 0.7664 -0.6424 356.4224 301.1109)" fill="#FFFFFF" width="1" height="13"></rect><rect x="270.281" y="99.553" transform="matrix(-0.3419 -0.9397 0.9397 -0.3419 263.7 396.7748)" fill="#FFFFFF" width="1" height="13"></rect><rect x="272.033" y="149.521" fill="#FFFFFF" width="13" height="1"></rect><rect x="14.967" y="149.491" fill="#FFFFFF" width="13" height="1"></rect><rect x="28.722" y="99.52" transform="matrix(-0.3422 0.9396 -0.9396 -0.3422 138.8407 114.8387)" fill="#FFFFFF" width="1" height="12.999"></rect><rect x="51.051" y="60.871" transform="matrix(-0.6422 0.7666 -0.7666 -0.6422 136.3004 71.1157)" fill="#FFFFFF" width="1.001" height="13.001"></rect><rect x="85.254" y="32.171" transform="matrix(-0.8663 0.4996 -0.4996 -0.8663 179.3566 29.3257)" fill="#FFFFFF" width="0.999" height="13"></rect><rect x="127.204" y="16.916" transform="matrix(-0.9848 0.1739 -0.1739 -0.9848 257.5335 24.2685)" fill="#FFFFFF" width="1" height="13"></rect></g><rect x="112.687" y="223.876" fill="none" width="78.927" height="26.124"></rect><text id="StringValue" transform="matrix(1 0 0 1 220 250)" fill="#FFFFFF" font-family="&#x27;MyriadPro-Regular&#x27;" font-size="36" text-anchor="end">0</text></g><g id="Needle"><g id="needes"><polygon fill="#FFFFFF" points="33.647,170.407 43.848,172.534 132.052,156.477 130.648,148.764 42.444,164.821 "></polygon><path fill="#4D4D4D" d="M186.657,138.567l-56.009,10.197l1.405,7.713l56.011-10.196c1.939,2.596,5.237,4.027,8.642,3.407 c4.793-0.873,7.97-5.465,7.098-10.258c-0.873-4.792-5.464-7.969-10.256-7.097C190.14,132.952,187.559,135.454,186.657,138.567z"></path></g><circle id="Center" fill="#4D4D4D" stroke="#808080" cx="149.799" cy="150.141" r="8.302"></circle></g><g id="values"><text id="Major_Ticks_0" transform="matrix(1 0 0 1 40.1987 176.9531)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">0</text><text id="Major_Ticks_1" transform="matrix(1 0 0 1 40.1987 137.6318)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">1</text><text id="Major_Ticks_2" transform="matrix(1 0 0 1 53.1987 102.9551)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">2</text><text id="Major_Ticks_3" transform="matrix(1 0 0 1 73.1987 74.7012)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">3</text><text id="Major_Ticks_4" transform="matrix(1 0 0 1 106.2007 56.7012)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">4</text><text id="Major_Ticks_5" transform="matrix(1 0 0 1 145.2007 50.7012)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">5</text><text id="Major_Ticks_6" transform="matrix(1 0 0 1 181.6992 56.7012)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">6</text><text id="Major_Ticks_7" transform="matrix(1 0 0 1 213.6758 74.7012)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">7</text><text id="Major_Ticks_8" transform="matrix(1 0 0 1 237.7021 101.9551)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">8</text><text id="Major_Ticks_9" transform="matrix(1 0 0 1 243.5586 139.04)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">9</text><text id="Major_Ticks_10" transform="matrix(1 0 0 1 245.5605 176.9531)" fill="#FFFFFF" font-family="&#x27;Helvetica&#x27;" font-size="18">10</text></g><g id="Scale_Color">\x3c!-- Scale Colors are added to this group. This is empty at the beginning because there are no scale colors when a gauge is first created. DO NOT MOVE THIS ELEMENT. --\x3e</g></svg>'},function(e,t,i){var n,o;n=[i(203),i(692),i(6411),i(204),i(6412)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,i],{_setDefaultWidth:function(){this._defaultSVGWidth=300},getSvgFileName:function(){return"RPMIndicator"},getSVGFileText:function(e){return o},setUpComponentOnLoad:function(){this.inherited(arguments),this._setDefaultWidth();var e=this.SVGDocument,t=0,i=-10,n=0;this.initializeConstants(90,330,e,t,t,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(533),i(959),i(405),i(456)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n,o],{initializeConstants:function(e,t,i,n,o,r,a,s){this.startAngle=e,this.angularSpan=t,this.defaultLabelHeight=13,this.fontSize=10,this.defaultFontSize=10;var l=this.SVGDocument.getElementById("Center");this.centerX=parseFloat(l.getAttribute("cx")),this.centerY=parseFloat(l.getAttribute("cy")),this.radius=135,this.scaleColorRadius=this.radius+a},setMajorTickValues:function(e){},setValue:function(e,t,i,n){var o=-this.needlePeggingPosition,a=this.angularSpan+this.needlePeggingPosition,s=0;s=t>=e[0]&&t<=e[1]?this._computeNeedleAngleForValue(t,e,"clockwise"):t<e[0]?o:a,n&&this._rotateNeedle(r.toPositiveAngle(s))},computeTickPositions:function(e,t,i){for(var n=e[1]-e[0],o=[],r=0;r<t.length;r++)o[r]="clockwise"===i?(t[r]-e[0])/n*this.angularSpan+this.startAngle:this.startAngle+this.angularSpan-(t[r]-e[0])/n*this.angularSpan;return o},calculateLabelPosition:function(e,t,i,n){var o=this.majorTickLabelRadius*this.scalingFactor;void 0!==this.labelNonScaledOffsetFromMajorTickMark&&(o+=this.labelNonScaledOffsetFromMajorTickMark);var a=n.x-i.x+n.w/2,s=n.y-i.y+n.h/2,l=a-o*Math.cos(r.toRadians(e)),c=s-o*Math.sin(r.toRadians(e));return this.fineTuneLabelPositions(e,t,l,c,i)},_adjustForHorizontalCropping:function(e,t,i){var n=e;return i.x+e+t.w>i.x+i.w&&(n=i.w-t.w),e<0&&(n=0),n},_adjustForVerticalCropping:function(e,t,i){var n=e;return i.y+e+t.h>i.y+i.h&&(n=i.h-t.h),e<0&&(n=0),n},positionLabel:function(e,t,n,o){i.set(e,{left:t.x+"px",top:t.y+"px"})},_computeNeedleAngleForValue:function(e,t,i){var n=t[1]-t[0],o=(e-t[0])/n*this.angularSpan;return"clockwise"===i?o:this.angularSpan-o},_rotateNeedle:function(e){this.SVGDocument.getElementById("Needle").setAttribute("transform","rotate("+e+", "+this.centerX+", "+this.centerY+")")},setScaleColors:function(e,t,i,n){var o=this.constrainScaleColorLimitsToScaleLimits(e,i,t);t=o.scaleColors,i=o.scaleColorLimits;var s=this.SVGDocument.getElementById("Scale_Color");a.removeChildNodes(s);for(var l=0;l<i.length;l++){var c=this.computeTickPositions(e,i[l],"clockwise"),d={},u=this.centerX-this.scaleColorRadius*Math.cos(r.toRadians(c[0])),h=this.centerY-this.scaleColorRadius*Math.sin(r.toRadians(c[0])),p=this.centerX-this.scaleColorRadius*Math.cos(r.toRadians(c[1])),f=this.centerY-this.scaleColorRadius*Math.sin(r.toRadians(c[1])),g=(i[l][0]-e[0])/(e[1]-e[0])*this.angularSpan,m=(i[l][1]-e[0])/(e[1]-e[0])*this.angularSpan,_=0;Math.abs(m-g)>=180&&(_=1);var v=1;0,d.d="M "+u+","+h+" A"+this.scaleColorRadius+","+this.scaleColorRadius+" 0 "+_+","+v+" "+p+","+f;var b="#"+this.toColorString(t[l][0])+this.toColorString(t[l][1])+this.toColorString(t[l][2]);d.stroke=b,d.fill="none",d["stroke-width"]=5,d.id="scaleColor_"+l,a.addNewElement(s,"path",d)}},toColorString:function(e){var t=Math.round(e).toString(16);return 1===t.length&&(t="0"+t),t}})}),e,t),e.exports=o},function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve"><g id="bg"><circle cx="150" cy="150" r="150"></circle><linearGradient id="SVGID_1_RPMIndicator" gradientUnits="userSpaceOnUse" x1="149.9995" y1="-62.3335" x2="149.9995" y2="424.3363"><stop offset="0" style="stop-color:#FFFFFF"></stop><stop offset="1" style="stop-color:#000000"></stop></linearGradient><path fill="url(#SVGID_1_RPMIndicator)" d="M150,4c38.998,0,75.662,15.187,103.237,42.762C280.813,74.338,296,111.002,296,150 s-15.187,75.662-42.763,103.237C225.662,280.813,188.998,296,150,296s-75.662-15.187-103.238-42.763 C19.187,225.662,4,188.998,4,150S19.187,74.338,46.762,46.762C74.338,19.187,111.002,4,150,4 M150,0C67.157,0,0,67.157,0,150 s67.157,150,150,150s150-67.157,150-150S232.843,0,150,0L150,0z"></path><g><path fill="#FFFFFF" d="M122.7,187.269h3.155c0.464,0,0.886,0.063,1.263,0.188c0.377,0.126,0.697,0.307,0.96,0.542 c0.263,0.237,0.465,0.52,0.605,0.847c0.141,0.328,0.211,0.693,0.211,1.097v0.023c0,0.45-0.083,0.844-0.251,1.183 c-0.168,0.339-0.397,0.624-0.688,0.852c-0.291,0.229-0.63,0.402-1.02,0.52c-0.39,0.119-0.806,0.178-1.249,0.178h-1.592v2.571 H122.7V187.269z M125.735,191.429c0.535,0,0.958-0.134,1.267-0.401c0.31-0.268,0.464-0.612,0.464-1.033v-0.022 c0-0.475-0.157-0.833-0.47-1.074c-0.313-0.239-0.734-0.36-1.262-0.36h-1.64v2.892H125.735z"></path><path fill="#FFFFFF" d="M130.335,187.269h5.921v1.269h-4.526v2.058h4.011v1.268h-4.011V194h4.583v1.269h-5.978V187.269z"></path><path fill="#FFFFFF" d="M137.993,187.269h3.566c0.503,0,0.949,0.07,1.337,0.211c0.388,0.142,0.712,0.338,0.972,0.589 c0.213,0.222,0.377,0.477,0.492,0.766c0.114,0.289,0.171,0.609,0.171,0.96v0.023c0,0.327-0.048,0.623-0.143,0.886 c-0.096,0.263-0.227,0.495-0.395,0.697s-0.368,0.373-0.6,0.515c-0.232,0.141-0.489,0.249-0.771,0.324l2.16,3.029h-1.657 l-1.972-2.789h-0.023h-1.742v2.789h-1.395V187.269z M141.452,191.234c0.504,0,0.905-0.121,1.203-0.362s0.448-0.567,0.448-0.98 v-0.022c0-0.437-0.146-0.768-0.436-0.993s-0.699-0.339-1.227-0.339h-2.052v2.697H141.452z"></path><path fill="#FFFFFF" d="M149.983,195.406c-0.587,0-1.128-0.107-1.623-0.32c-0.496-0.213-0.925-0.505-1.29-0.874 c-0.364-0.369-0.649-0.806-0.857-1.31c-0.207-0.502-0.311-1.04-0.311-1.611v-0.022c0-0.571,0.102-1.107,0.305-1.606 c0.204-0.498,0.489-0.937,0.857-1.313c0.368-0.377,0.804-0.674,1.307-0.892s1.06-0.326,1.669-0.326c0.365,0,0.699,0.03,1,0.092 s0.577,0.147,0.829,0.257c0.251,0.11,0.483,0.242,0.696,0.395c0.214,0.152,0.416,0.319,0.606,0.503l-0.903,1.04 c-0.32-0.297-0.659-0.537-1.017-0.72c-0.359-0.184-0.766-0.274-1.223-0.274c-0.381,0-0.734,0.074-1.058,0.223 s-0.604,0.351-0.84,0.606c-0.236,0.254-0.419,0.554-0.549,0.896c-0.129,0.344-0.194,0.708-0.194,1.098v0.022 c0,0.389,0.065,0.757,0.194,1.103c0.129,0.348,0.313,0.65,0.549,0.909c0.236,0.259,0.516,0.463,0.84,0.611 s0.676,0.224,1.058,0.224c0.487,0,0.906-0.094,1.256-0.28c0.351-0.187,0.698-0.44,1.041-0.761l0.902,0.915 c-0.206,0.221-0.421,0.417-0.646,0.588c-0.225,0.172-0.467,0.32-0.726,0.446c-0.26,0.125-0.543,0.221-0.852,0.286 C150.697,195.374,150.356,195.406,149.983,195.406z"></path><path fill="#FFFFFF" d="M154.691,187.269h5.921v1.269h-4.526v2.058h4.012v1.268h-4.012V194h4.583v1.269h-5.978V187.269z"></path><path fill="#FFFFFF" d="M162.35,187.269h1.301l4.276,5.531v-5.531h1.395v8h-1.175l-4.402-5.692v5.692h-1.395V187.269z"></path><path fill="#FFFFFF" d="M173.345,188.571h-2.537v-1.303h6.492v1.303h-2.538v6.697h-1.417V188.571z"></path><path fill="#FFFFFF" d="M128.328,205.556h6.418c0.905,0,1.708,0.126,2.407,0.381c0.7,0.253,1.282,0.605,1.749,1.059 c0.384,0.397,0.679,0.857,0.884,1.379c0.206,0.521,0.309,1.097,0.309,1.728v0.042c0,0.589-0.086,1.12-0.257,1.594 c-0.171,0.473-0.408,0.892-0.71,1.255c-0.302,0.363-0.662,0.673-1.08,0.926c-0.418,0.255-0.881,0.45-1.389,0.587l3.888,5.451 h-2.983l-3.549-5.019h-0.041h-3.137v5.019h-2.51V205.556z M134.553,212.694c0.908,0,1.63-0.218,2.167-0.65 c0.536-0.435,0.805-1.023,0.805-1.767v-0.042c0-0.784-0.262-1.38-0.784-1.787c-0.523-0.406-1.259-0.609-2.208-0.609h-3.694v4.855 H134.553z"></path><path fill="#FFFFFF" d="M143.202,205.556h5.678c0.836,0,1.594,0.112,2.273,0.339c0.679,0.226,1.255,0.553,1.729,0.978 c0.473,0.425,0.836,0.933,1.09,1.521c0.255,0.591,0.381,1.249,0.381,1.976v0.042c0,0.809-0.151,1.519-0.453,2.128 c-0.303,0.611-0.715,1.122-1.237,1.533s-1.135,0.725-1.836,0.937c-0.702,0.213-1.45,0.319-2.248,0.319h-2.866v4.628h-2.51V205.556 z M148.664,213.044c0.963,0,1.724-0.241,2.281-0.724c0.558-0.481,0.836-1.102,0.836-1.858v-0.041c0-0.854-0.282-1.498-0.847-1.932 s-1.321-0.65-2.271-0.65h-2.952v5.205H148.664z"></path><path fill="#FFFFFF" d="M156.945,205.556h2.695l4.382,6.81l4.383-6.81h2.694v14.4h-2.51v-10.327l-4.547,6.789h-0.082l-4.506-6.748 v10.286h-2.51V205.556z"></path></g><g id="values"><text transform="matrix(1 0 0 1 145.3833 53.7793)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">0</text><text transform="matrix(1 0 0 1 190.8457 68.791)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">10</text><text transform="matrix(1 0 0 1 224.2871 104.751)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">20</text><text transform="matrix(1 0 0 1 240.6074 157.1699)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">30</text><text transform="matrix(1 0 0 1 223.6211 206.8262)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">40</text><text transform="matrix(1 0 0 1 190.8447 244.6328)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">50</text><text transform="matrix(1 0 0 1 140.3823 259.3271)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">60</text><text transform="matrix(1 0 0 1 89.2661 244.6328)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">70</text><text transform="matrix(1 0 0 1 56.1846 206.8262)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">80</text><text transform="matrix(1 0 0 1 41.8433 157.1699)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">90</text><text transform="matrix(1 0 0 1 55.3032 104.752)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">100</text><text transform="matrix(1 0 0 1 84.6499 68.791)" fill="#FFFFFF" font-family="&#x27;Helvetica-Light&#x27;" font-size="18">110</text></g><g id="MajorTick"><rect x="149.5" y="15" fill="#FFFFFF" width="1" height="19"></rect><rect x="212.254" y="31.816" transform="matrix(0.8661 0.4999 -0.4999 0.8661 49.1484 -100.8265)" fill="#FFFFFF" width="1" height="19"></rect><rect x="258.188" y="77.753" transform="matrix(0.4999 0.8661 -0.8661 0.4999 204.9319 -180.409)" fill="#FFFFFF" width="1" height="18.999"></rect><rect x="266" y="149.508" fill="#FFFFFF" width="19" height="1"></rect><rect x="258.187" y="203.247" transform="matrix(-0.4999 0.8661 -0.8661 -0.4999 572.2651 95.0623)" fill="#FFFFFF" width="1" height="19.001"></rect><rect x="212.249" y="249.187" transform="matrix(-0.8654 0.5011 -0.5011 -0.8654 526.4844 375.9526)" fill="#FFFFFF" width="1" height="19.001"></rect><rect x="149.5" y="266" fill="#FFFFFF" width="1" height="19"></rect><rect x="86.746" y="249.184" transform="matrix(-0.8659 -0.5001 0.5001 -0.8659 33.4213 526.326)" fill="#FFFFFF" width="1" height="19"></rect><rect x="40.815" y="203.252" transform="matrix(-0.4999 -0.8661 0.8661 -0.4999 -122.2901 354.8931)" fill="#FFFFFF" width="1" height="19"></rect><rect x="15" y="149.498" fill="#FFFFFF" width="19" height="1"></rect><rect x="40.814" y="77.75" transform="matrix(0.4999 -0.8661 0.8661 0.4999 -54.9036 79.4129)" fill="#FFFFFF" width="1" height="18.999"></rect><rect x="86.755" y="31.812" transform="matrix(0.8661 -0.4999 0.4999 0.8661 -8.9666 49.1534)" fill="#FFFFFF" width="1" height="19"></rect><rect x="149.496" y="15" fill="#FFFFFF" width="1" height="19"></rect></g><g id="MinorTick"><rect x="182.76" y="19.379" transform="matrix(0.9659 0.2588 -0.2588 0.9659 12.9423 -46.5491)" fill="#FFFFFF" width="1" height="13"></rect><rect x="240.365" y="52.638" transform="matrix(0.7071 0.7071 -0.7071 0.7071 112.3645 -152.996)" fill="#FFFFFF" width="1" height="13"></rect><rect x="273.624" y="110.25" transform="matrix(0.2588 0.9659 -0.9659 0.2588 315.9483 -178.2502)" fill="#FFFFFF" width="1" height="13"></rect><rect x="273.62" y="176.767" transform="matrix(-0.2588 0.9659 -0.9659 -0.2588 522.0891 -34.0795)" fill="#FFFFFF" width="1" height="13"></rect><rect x="240.368" y="234.359" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 581.5006 240.8523)" fill="#FFFFFF" width="1" height="13.001"></rect><rect x="182.765" y="267.62" transform="matrix(-0.9659 0.2588 -0.2588 -0.9659 431.2327 491.4667)" fill="#FFFFFF" width="1" height="13"></rect><rect x="116.241" y="267.621" transform="matrix(-0.9662 -0.2578 0.2578 -0.9662 158.8726 569.0726)" fill="#FFFFFF" width="1" height="13.001"></rect><rect x="58.637" y="234.363" transform="matrix(-0.7071 -0.7071 0.7071 -0.7071 -69.3634 452.9943)" fill="#FFFFFF" width="1" height="13"></rect><rect x="25.377" y="176.754" transform="matrix(-0.2588 -0.9659 0.9659 -0.2588 -144.4348 255.6789)" fill="#FFFFFF" width="1" height="13"></rect><rect x="25.379" y="110.238" transform="matrix(0.2593 -0.9658 0.9658 0.2593 -93.576 111.4651)" fill="#FFFFFF" width="1" height="12.999"></rect><rect x="58.645" y="52.628" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -24.4871 59.1398)" fill="#FFFFFF" width="1" height="13"></rect></g></g><g id="Needle"><g id="moves"><polygon fill="#FFFFFF" points="150.453,32.208 146.507,41.852 146.259,131.505 154.1,131.526 154.346,41.873 "></polygon><path fill="#4D4D4D" d="M153.941,188.457l0.158-56.931l-7.84-0.021l-0.157,56.931c-2.906,1.437-4.912,4.418-4.922,7.879 c-0.013,4.871,3.924,8.83,8.796,8.844s8.831-3.924,8.844-8.795C158.83,192.901,156.84,189.909,153.941,188.457z"></path></g><g id="CenterGroup"><circle id="Center" fill="#4D4D4D" cx="150" cy="150" r="8.302"></circle><path fill="#808080" d="M150.002,158.802L150.002,158.802h-0.026c-4.854-0.014-8.792-3.973-8.778-8.826 c0.013-4.84,3.961-8.777,8.801-8.777c4.878,0.014,8.816,3.973,8.802,8.826C158.788,154.864,154.841,158.802,150.002,158.802z M150.021,142.198c-4.312,0-7.812,3.49-7.823,7.78c-0.012,4.302,3.479,7.812,7.781,7.823l0.022,0.5v-0.5 c4.289,0,7.789-3.49,7.801-7.78C157.813,145.72,154.323,142.21,150.021,142.198z"></path></g></g><g id="Scale_Color">\x3c!-- Scale Colors are added to this group. This is empty at the beginning because there are no scale colors when a gauge is first created. DO NOT MOVE THIS ELEMENT. --\x3e</g></svg>'},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{toColorString:function(e){var t=Math.round(255*e).toString(16);return 1===t.length&&(t="0"+t),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(276),i(6415)],o=i.dj.d(n,(function(e,t,i){return e([t],{figureManager:void 0,FigureManager:void 0,constructor:function(e){this.FigureManager=new i(e),this.figureManager=this.FigureManager},startup:function(){this.inherited(arguments),this.domNode.setAttribute("tabIndex","-1"),this.figureManager.sendViewInDomMsg()},resize:function(e){void 0!==e&&(this.inherited(arguments),this.FigureManager.propertyChanged({property:"Position",value:[e.l,e.t,e.w,e.h]}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(256),i(230),i(1171),i(219)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,n],{constructor:function(e){void 0===e.ClientToServer?this._ctsChannel="/embeddedfigure/ClientToServer"+e.channel:this._ctsChannel=e.ClientToServer+e.channel,void 0===e.ServerToClient?this._stcChannel="/embeddedfigure/ServerToClient"+e.channel:this._stcChannel=e.ServerToClient+e.channel,e.listener&&this.registerServerMessageListener(e.listener),this._widgetStatus="orphan"},registerServerMessageListener:function(e){this._serverMessageListener=e},propertyChanged:function(e){o.publish(this._ctsChannel,{eventType:e.property,value:e.value}),"Position"===e.property&&(this._position=e.value)},viewKilled:function(){o.publish(this._ctsChannel,{eventType:"viewKilled"}),o.unsubscribe(this._stcChannel,this._handleMessage,this)},resize:function(e){this.propertyChanged({property:"Position",value:[1,1,e.w,e.h]})},subscribe:function(){try{o.subscribe(this._stcChannel,this._handleMessage,this).then(this._sendClientReadyMessage.bind(this))}catch(e){throw new Error("error in subscribe: "+e)}},widgetAddedToDom:function(){this._widgetStatus="added"},sendViewInDomMsg:function(){this._figureViewIsInDom=!0,void 0!==this._figureViewIsInDomTopicName&&t.publish(this._figureViewIsInDomTopicName,this)},_sendClientReadyMessage:function(){o.publish(this._ctsChannel,{eventType:"clientReady",value:this._widgetStatus})},_handleMessage:function(e){if(!this._serverMessageListener)throw new Error("No ServerMessageListener has been registered.");"windowOpen"===e.data.eventType&&(e.data.position=e.data.Position,e.data.resize=e.data.Resize),this._serverMessageListener(e)},setPropertyValueFromServer:function(e,t){},setUniqueFigureId:function(e){this._figureViewIsInDomTopicName="WebFigure/FigureViewIsInDom/"+e,void 0!==this._figureViewIsInDom&&t.publish(this._figureViewIsInDomTopicName,this)},registerMsgFromClientHandler:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6417),i(454),i(263)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{isApplicable:function(e){return e.getLanguage()===n.DEFAULT_SUPPORTED_LANGUAGES.MATLAB},requires:function(){return{isApplicable:["rtc.internal.language"],createInstance:["rtc.internaldocument","rtc.code.codechange","matlab.languageanalysis.filestructureservice"]}},createInstance:function(){return new i(...arguments,o)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2292)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i,n){this._liveClassesSupported=null,n.getSetting(["matlab","desktop"],"EnableLiveClassSupport").then(function(e){this._liveClassesSupported=e.value,this._fireOnSupportedFileTypeChange()}.bind(this)),this.own(n.listenTo(["matlab","desktop"],"EnableLiveClassSupport",function(e){this._liveClassesSupported=e.newValue,this._fireOnSupportedFileTypeChange()}.bind(this)))},_updateFileType:function(){this.inherited(arguments),this._fireOnSupportedFileTypeChange()},_fireOnSupportedFileTypeChange:function(){if(null!==this._liveClassesSupported&&-1!==this._fileType){var e=!0;this.isClass()&&!this._liveClassesSupported&&(e=!1),this._isFileTypeSupported!==e&&(this._isFileTypeSupported=e,this.onSupportedFileTypeChange(this._isFileTypeSupported,this._fileType))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6419)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.liveapps.controller","rtc.liveapps.ddux","rtc.liveapps.enablestate"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1963),i(584),i(625)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e,t,i,n){this._document=e,this._liveAppController=t,this._liveAppDDUXContributor=i,this._liveAppEnableState=n},customizeWidgetData:function(e,t){if(!this._liveAppEnableState.isEnabledAtCurrentPosition())return void this._removeEmbeddableChoices(e);let i=e.choices;i&&(t?this._removeEmbeddableChoices(e):this._configureEmbeddableChoices(i))},_removeEmbeddableChoices:function(e){e.choices=e.choices.filter((function(e){return!e.embeddable}))},_configureEmbeddableChoices:function(e){e.forEach((function(e,t){e.embeddable&&(e.matchType="embeddedApp",e.appIdentifier=e.completion,e.completion=e.appName||e.completion)})),this._customizeChoicesOrder(e)},_customizeChoicesOrder:function(e){var t=this._getFirstTaskInChoices(e);t>=5&&this._updateChoiceNodeIndex(e,t,4)},customizeChoicesDomnodeOrder:function(e){var t=i.getNumberOfViewableChoices(e);if(5!==t){var n=e.choices,o=this._getFirstTaskInChoices(n);o>=t&&(this._updateChoiceNodeIndex(n,o,t-1),e.updateChoiceNodeIndex(o,t-1))}},_getFirstTaskInChoices:function(e){var t=-1;return e.some((function(e,i){if(e.embeddable)return t=i,!0})),t},_updateChoiceNodeIndex:function(e,t,i){var n=e.splice(t,1);e.splice(i,0,n[0])},isChoiceApplicable:function(e){return this._liveAppEnableState.isEnabledAtCurrentPosition()&&e.embeddable&&e.appIdentifier},complete:function(e,t,i,o){this._liveAppController.insertLiveAppAtCurrentPosition(o.appIdentifier,{detectUserOutputVariable:!0,bounds:i,metadataCode:o.metadataCode}),this._liveAppDDUXContributor.logLiveTaskAction(n.INSERTTASK,o.appIdentifier,"autocompletion")},showSuggestionsForMatch:function(e){return e.some((function(e){if(e.embeddable)return!0}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6421)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.bordercontainer"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(6422)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._borderContainer=e},createWidget:function(e,t){return(e=e||{}).currentWidthGetter=this._currentWidthGetter.bind(this),new i(e,t)},_currentWidthGetter:function(){const e=this._borderContainer.getChildInRegion("center").domNode;return e?e.style.width:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(1147),i(730),i(2070)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{baseClass:"liveAppContentPane",constructor:function(e){this._embeddedFigureFactory=new i,this._isHidden=!1,this._currentWidth=0,this._currentHeight=0},buildRendering:function(){this.inherited(arguments)},initialize:function(e,i){if(!this._initialized&&e.figureData)return this._embeddedFigure=this._embeddedFigureFactory.createWidget(this,e.figureData,this._handleServerPropertyChange.bind(this)),this._embeddedFigure.placeAt(this.domNode),this._embeddedFigure.on("figurefitsizechanged",this._handleFigureFitSizeChanged.bind(this)),this._initDeferred=i,e.mock&&(this._initDeferred=new t),e.mock&&this._finishInitialization(),this._initDeferred.promise},_handleServerPropertyChange:function(e){"Position"===e.data.eventType&&(this._updateHeight(e.data.value[3]),this.resize(),this.emit("positionchange"))},_handleFigureFitSizeChanged:function(e){this._initialized?this._updateSizeAndEmitEvent(e):(this._timer&&clearTimeout(this._timer),this._timer=window.setTimeout(this._updateSizeAndEmitEvent.bind(this,e),0))},_updateSizeAndEmitEvent:function(e){this._updateWidth(e.fitSize[0]),this._updateHeight(e.fitSize[1]),this.resize(),this._initialized||this._finishInitialization(),this.emit("positionchange")},_finishInitialization:function(){this._initialized=!0,this._initDeferred.resolve()},hide:function(){this._isHidden||(this._isHidden=!0,this.resize())},show:function(){this._isHidden&&(this._isHidden=!1,this.resize())},isHidden:function(){return this._isHidden},resize:function(){if(!this._embeddedFigure||!this._embeddedFigure.FigureManager)return!1;var e=this._getNewWidth(),t=this._getNewHeight();return null!==e&&null!==t&&((e!==this._currentWidth||t!==this._currentHeight)&&(this._currentWidth=e,this._currentHeight=t,this._embeddedFigure.resize({l:1,t:1,w:e,h:t}),!0))},_getNewWidth:function(){if(this._isHidden)return 0;var e=this.currentWidthGetter();if(null===e)return null;var t=this._convertStyleValueToNumber(e)-57;return Math.max(this._width||0,t||0)},_getNewHeight:function(){return this._isHidden?0:this._height},_convertStyleValueToNumber:function(e){return parseInt(e,10)||0},_updateWidth:function(e){this._width=e},_updateHeight:function(e){this._height=e},destroyRecursive:function(){},isEventFromInnerControl:function(e){if(this._embeddedFigure){var t=this._embeddedFigure.domNode.firstChild;return t&&t!==e&&t.contains(e)}return this.domNode.contains(e)},findTabbableElements:function(){return this.domNode.querySelectorAll(n.TABBABLE_ELEMENTS_CSS+":not(.gbtFigureLayoutContainer)")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6424)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.view","rtc.embeddedoutputs.currentoutputservice","rtc.embeddedoutputs","rtc.embeddedoutputs.codegen","rtc.embeddedoutputs.model","rtc.document","rtc.executionservice.statehandler","rtc.embeddedoutputs.model.io.outputchangenotifier","rtc.cursorcontroller","rtc.focusservice"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u){return new i(e,t,n,o,r,a,s,l,c,d,u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2293),i(2364),i(6560),i(278)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i],{_createVariableOutput:function(e){if(r.isRichTabularView(e.data.subtype,e.data.dataAttributes))return new o(e);var t=new n(e);return t._createCodeGenWidget(t),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(2294),i(232)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_CLONE_VARIABLE_ACTION:"CloneVariable",constructor:function(e){this._editorId=e,this._channel=null,this._titleText=""},initialize:function(e){this._channel||(this._channel=e,this.remoteManager=i.createManager({channel:this._channel,editable:!1}))},launchPopout:function(e){var i=e.docid;this._titleText=e.title,this.remoteEventListener=t.after(this.remoteManager,"handleRemoteEvent",this._dispatchRemoteCall.bind(this),!0),this.remoteManager.actionDataService&&this.remoteManager.actionDataService.executeAction(this._CLONE_VARIABLE_ACTION,{docID:i,editorId:this._editorId,context:e.context||""})},_dispatchRemoteCall:function(e){if("ClonedVariable"===e.data.eventType){var t=this._titleText,i=e.data.channel,o=e.data.docID,r=this.remoteManager.documents[o];this._titleText&&e.data.fileName&&(t=e.data.fileName+" | "+this._titleText),t=t||this._constructDialogTitle(e.data.fileName,r.varName,r.varSize,r.varType);n.sendMessage({FEval:this._getFEvalArgs("internal.matlab.variableeditor.peer.MF0VMVariableEditorPopoutHandler.InitDialogHandler",o,i,t)},{}),this.remoteEventListener.remove(),this._titleText=null}},_getFEvalArgs:function(e,t,i,n){return{function:e,arguments:["docID",t,"channel",i,"titleString",n],dequeMode:"ppe"}},_constructDialogTitle:function(e,t,i,n){var o=t+" = "+i+" "+n;return e&&(o=e+" | "+o),o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(204),i(210),i(211),i(217),i(206),i(407),i(693),i(1185),i(6427)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return t("variableeditor_client.DocumentWidget",[e],{summaryBar:null,showSummaryBar:!0,varName:"",varSize:"",varType:"",allArgs:{},_VIEW_PREFIX:"view",resizeBehaviour:"default",constructor:function(e){this.summaryBar=null},init:function(e){this.varName=e.varName||this.varName,this.varSize=e.varSize||this.varSize,this.varType=e.varType||this.varType,e.hasOwnProperty("showSummaryBar")&&(this.showSummaryBar=e.showSummaryBar),this.domNode||this._constructContainer(e),this.domNode&&this.showSummaryBar&&!this.summaryBar&&this.setSummaryBar(e)},_updateDocumentWidget:function(e){!1===e.showSummaryBar&&this.summaryBar&&n.add(this.summaryBar.domNode,"hide")},postCreate:function(){var e=this;this.own(a(window,"resize",(function(){e.resize&&e.resize()}))),this.domNode.setAttribute("tabindex","0")},parentViewToDocument:function(e){this.domNode.appendChild(e.domNode),n.add(e.domNode,l.VIEW_WRAPPER_CLASS),e.domNode.dataset.viewid=e.viewID,e.getView().then((function(t){e.domNode.appendChild(t)})),this.showSummaryBar&&n.add(e.domNode,l.HAS_SUMMARY_BAR),this._started&&e.startup()},removeViewFromDom:function(e){var t=this.domNode.querySelector("[data-viewid="+e+"]");t&&this.domNode.removeChild(t)},setSummaryBar:function(e){var t=i.mixin({varName:this.varName,varSize:this.varSize,varType:this.varType},e);this.summaryBar=new d(t),this.summaryBar.startup(),o.place(this.summaryBar.domNode,this.domNode,"first")},_constructContainer:function(e){var t=document.createElement("div");this.domNode=t,n.add(this.domNode,[l.DOCUMENT_CLASS,l.DOCUMENT_SPECIFIER_CLASS])},resize:function(){var e,t=300,i=300,n=0;switch(this.resizeBehaviour){case"fixed":this.allArgs.size&&(t=this.allArgs.size.width,i=this.allArgs.size.height);break;case"data":var o=this.domNode.querySelectorAll(".dataBody");if(0===o.length)break;var a=o[0];a.style.minWidth="initial",a.style.minHeight="initial",e=r.position(a),i=(n=this.limitSize(t,i)).height,t=n.width;break;case"window":t=window.innerWidth,i=window.innerHeight,i=(n=this.limitSize(t,i)).height,t=n.width,this._addDataFormatClass(i);break;case"container":var s=this.domNode.parentElement;if(!s)return void this.inherited(arguments);if((e=r.position(s)).w<=0||e.h<=0)return void this.inherited(arguments);t=e.w,i=e.h,i=(n=this.limitSize(t,i)).height,t=n.width,this._addDataFormatClass(i);break;default:return this.domNode&&(i=this.domNode.getBoundingClientRect().height,this._addDataFormatClass(i)),void this.inherited(arguments)}this.domNode.style.width=t+"px",this.domNode.style.height=i+"px",this.resizeViews(),this.inherited(arguments)},_addDataFormatClass:function(e){var t,i=0;for(t in this._parentedViews)this._parentedViews.hasOwnProperty(t)&&this._parentedViews[t].getViewHeight&&(i+=this._parentedViews[t].getViewHeight());n.toggle(this.domNode,l.DATA_FIT_TO_VIEWPORT_CLASS,e>i&&0!==i)},_removeDataFormatClass:function(){n.remove(this.domNode,l.DATA_FIT_TO_VIEWPORT_CLASS)},limitSize:function(e,t){return this.allArgs.maxSize&&(this.allArgs.maxSize.width&&e>this.allArgs.maxSize.width&&(t+=s.getScrollbarWidth()),this.allArgs.maxSize.height&&t>this.allArgs.maxSize.height&&(e+=s.getScrollbarWidth()),this.allArgs.maxSize.width&&(e=Math.min(this.allArgs.maxSize.width,e)),this.allArgs.maxSize.height&&(t=Math.min(this.allArgs.maxSize.height,t))),this.allArgs.minSize&&(this.allArgs.minSize.width&&(e=Math.max(this.allArgs.minSize.width,e)),this.allArgs.minSize.height&&(t=Math.max(this.allArgs.minSize.height,t))),this.allArgs.reduceFixedWidth&&(e-=this.allArgs.reduceFixedWidth),this.allArgs.reduceFixedHeight&&(t-=this.allArgs.reduceFixedHeight),{width:e,height:t}},resizeViews:function(){var e;for(e in this._parentedViews)this._parentedViews.hasOwnProperty(e)&&this._parentedViews[e].resize&&this._parentedViews[e].resize()},_showBusyIndicator:function(){if(this.domNode){var e=this.domNode.getElementsByClassName(l.LOADING);e&&0!==e.length&&e[0].style&&e[0].style.visibility===l.HIDDEN&&(e[0].style.visibility=l.VISIBLE,e[0].style.opacity=1)}},_hideBusyIndicator:function(){if(this.domNode){var e=this.domNode.getElementsByClassName(l.LOADING);e&&0!==e.length&&e[0].style&&(e[0].style.visibility=l.HIDDEN,e[0].style.opacity=0)}},handleStaticView:function(){this.getViews().forEach((function(e){e.handleStaticTableView&&e.handleStaticTableView()}))},_getMetaSummary:function(){return""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(740),i(235),i(203),i(204),i(215),i(216),i(206),i(227),i(225),i(210),i(278),i(6428)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return i("variableeditor.views.SummaryBar",[o,r],{summaryName:"",summarySize:"",summaryType:"",EMPTY_TYPE_CLASS:"noType",_showSummaryIcons:!1,templateString:u,constructor:function(e){this.summaryName=e.varName||"",this.summarySize=e.varSize||"",this.summaryType=e.varType||"",this.secondaryType=e.secondaryType||"",this.status=e.secondaryStatus||"",this._showSummaryIcons=e.showSummaryIcons||!1},postCreate:function(){this.setName(this.summaryName),this.setSize(this.summarySize),this.setType(this.summaryType),this.setSecondaryType(this.secondaryType),this.setStatus(this.status),this._showSummaryIcons?this.updateIconClass():c.add(this.summaryBarIcon,"hide")},updateIconClass:function(){var i=l(".summaryBarIcon",this.domNode)[0],n=this.summaryType,o=n.split(" ");o=o[o.length-1],(d.isTypeNumeric(o)||""===o)&&(n=t.getClassNameForIconList(n));var r=n;this.secondaryType&&(r=n+"_"+this.secondaryType),t.removeFromClassList(i,e.ClassArray),e.IconTypeMap.hasOwnProperty(r)?t.addToClassList(i,e.IconTypeMap[r]):e.IconTypeMap.hasOwnProperty(n)?t.addToClassList(i,e.IconTypeMap[n]):t.addToClassList(i,e.IconTypeMap.UNKNOWN)},setName:function(e){this.summaryName=e,this._setDOMText("name",".summaryBarVarName",e,!1)},setSize:function(e){this.summarySize=e,this._setDOMText("size",".summaryBarSize",e,!1),this.summaryBarSize&&c.toggle(this.summaryBarSize,"hide",0===e)},setType:function(e,t){!1!==t&&(this.summaryType=e),this._setDOMText("type",".summaryBarType",e),c.toggle(this.domNode,this.EMPTY_TYPE_CLASS,""===this.summaryType),this._showSummaryIcons&&this.updateIconClass()},_setDOMText:function(e,t,i){this[e]=i||"";var n=l(t,this.domNode)[0];n&&(n.textContent=i)},setSecondaryType:function(e){e=e||"",this.secondaryType=e;var t=e?this.summaryType+" "+e:this.summaryType;this.setType(t,!1)},setStatus:function(e){this.status=e||"",this.summaryBarStatus.textContent=this.status?this.status:""}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="summaryBar" data-dojo-attach-point="summaryBarOuterContainer">\n <div class="summaryBarContainer veVariableName variableNameElement">\n <div class="headerElement">\n <div class="summaryBarIcon" data-dojo-attach-point="summaryBarIcon"></div>\n <div class="summaryBarVarName">${summaryName}</div><span class="summaryBarAssign"> = </span>\n <div class="summaryBarSize" data-dojo-attach-point="summaryBarSize">${summarySize}</div>\n <div class="summaryBarType"><a class="summaryBarType">${summaryType}</a></div>\n <div class="summaryBarStatus" data-dojo-attach-point="summaryBarStatus">${status}</div>\n </div>\n <div class="filterSummaryData hide" data-dojo-attach-point="FilteredSummary">Filtering Placeholders</div>\n </div>\n</div>\n'},function(e,t){e.exports='[\n {\n "Keyset":{\n "Container":[\n ""\n ],\n "Datatype":[\n ""\n ],\n "Context":[\n "UnsupportedView"\n ]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins":[\n {\n "name": "features",\n "featureList": ["DOM_PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": ""\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": ""\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": ""\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default"\n ],\n "Context": ""\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["TimeColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default"\n ],\n "Context": "",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["isEmpty", "TimeColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default"\n ],\n "Context": "",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["isScalar", "TimeColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default"\n ],\n "Context": "",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default"\n ],\n "Context": "",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype":\n [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "object"\n ],\n "Context": "",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset": {\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "logical"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "logical"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "string"\n ],\n "Datatype": [\n "string"\n ],\n "Context": "",\n "DataAttributes": []\n },\n "Valueset": {\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Datatype": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Datatype": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":["table", "timetable"],\n "Context": "VariableEditorContainerView"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "COLUMN_RESIZE"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":["table", "timetable"],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isEmpty"]\n\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "COLUMN_RESIZE"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":["table", "timetable"],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "COLUMN_RESIZE"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "VariableEditorContainerView"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "VariableEditorContainerView"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["TimeColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar","TimeColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "VariableEditorContainerView"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "VariableEditorContainerView"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "VariableEditorContainerView"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical"\n ],\n "Context": "Testing"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "EDIT_HANDLER"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Datatype":\n [ "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "Testing",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "logical"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "Testing",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell",\n "object"\n ],\n "DataType": [],\n "Context": "Testing"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell"\n ],\n "DataType": [],\n "Context": "Testing",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "LIGHT_WEIGHT_VIEW"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "struct"\n ],\n "DataType": [],\n "DataAttributes": ["isRowOrColumnVector"],\n "Context": "Testing"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_CORNER_SPACER_TEXT", "CELL_FOCUS", "PEER_PLAID_SELECTION", "CONTEXT_MENU", "COPY", "SELECTION_CONTEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": ""\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "logical"\n ],\n "Context": ""\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "char",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": ""\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "char",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": "",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical",\n "string",\n "categorical",\n "datetime",\n "duration",\n "calendarDuration",\n "ordinal",\n "nominal"\n ],\n "Context": "VariableEditorContainerView"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "COLUMN_RESIZE"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell",\n "object",\n "struct"\n ],\n "Context": "VariableEditorContainerView"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "COLUMN_RESIZE"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "struct"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "COLUMN_RESIZE", "PEER_CORNER_SPACER_TEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "COLUMN_RESIZE"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "object"\n ],\n "Context": "VariableEditorContainerView",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "COLUMN_RESIZE"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":["table", "timetable"],\n "Datatype":"",\n "Context": "categoricalCleaner"\n },\n "Valueset":{\n "Editor":"variableeditor_client/TableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["MULTI_ROW_SELECTION"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":["table", "timetable"],\n "Datatype":"",\n "Context": "peer,categoricalCleaner"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["MULTI_ROW_SELECTION", "CELL_FOCUS", "COLUMN_SORT", "EDIT_HANDLER"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype":"",\n "Context": "Testing"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["HEADER_MENU", "ROW_HEADERS", "SORT",\n "COLUMN_RESIZE_PAGED", "COLUMN_FILTER", "CLEAN_CATEGORIES", "CONTEXT_MENU",\n "DATA_TYPE_CONVERSION", "STRING_DISPLAY", "CELL_FOCUS", "PEER_PLAID_SELECTION", "COPY", "SELECTION_CONTEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["string", "categorical", "nominal", "ordinal", "datetime", "duration", "calendarDuration"],\n "Datatype":"",\n "Context": "Testing"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "table", "timetable"\n ],\n "Datatype": "",\n "Context": "filtering",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel"\n }\n },\n {\n "Keyset":{\n "Container": [\n "table", "timetable"\n ],\n "Datatype": "",\n "Context": "filtering",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel"\n }\n },\n {\n "Keyset":{\n "Container": [\n "table", "timetable"\n ],\n "Datatype": "logical",\n "Context": "filtering",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "InteractiveRenderer": "rendererseditors/mwTableRenderers/CheckBoxInteractiveRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "table", "timetable"\n ],\n "Datatype": "",\n "Context": "filtering",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/LoadingRenderer",\n "InteractiveRenderer": "",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "filtering"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CategoricalFilteringTableRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "table", "timetable"\n ],\n "Datatype": "",\n "Context": "ClientOnly",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"variableeditor_client/TableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "InteractiveRenderer": "",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical",\n "string",\n "categorical",\n "ordinal",\n "nominal",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Datatype": "",\n "Context": "ClientOnly",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"variableeditor_client/ArrayViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "InteractiveRenderer": "",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell","struct","object"\n ],\n "DataType": [],\n "Context": "ClientOnly"\n },\n "Valueset":{\n "Editor":"variableeditor_client/ArrayViewModel"\n }\n },\n {\n "Keyset":{\n "Container": [\n "struct",\n "object"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "char",\n "string",\n "logical",\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "datetime",\n "default"\n ],\n "Context": "",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": [\n "struct",\n "object"\n ],\n "Datatype": [\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor": "",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": [\n "struct"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "char",\n "string",\n "logical",\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "datetime",\n "duration",\n "calendarDuration",\n "default"\n ],\n "Context": "",\n "DataAttributes": ["isScalar", "IconLabelNameColumn"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/IconTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "char",\n "string",\n "logical",\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "datetime",\n "duration",\n "calendarDuration",\n "default"\n ],\n "Context": "",\n "DataAttributes": ["isScalar", "IconLabelNameColumn"]\n },\n "Valueset": {\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/IconTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "char",\n "string",\n "logical",\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "datetime",\n "duration",\n "calendarDuration",\n "default"\n ],\n "Context": "",\n "DataAttributes": ["isScalar", "IconLabelNameColumnAccess"]\n },\n "Valueset": {\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CompositeIconTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["isCellStr", "isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": ["isCellStr", "isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": "",\n "DataAttributes": ["isCellStr", "isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "",\n "DataAttributes": ["isCellStr", "isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": "",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n }\n]\n'},function(e,t,i){var n,o;n=[i(534),i(203),i(204),i(206),i(210),i(278),i(6431),i(2296),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return t("variableeditor_peer.PeerDocument",[a,s],{_childAddedListener:null,_childRemovedListener:null,_DataRenderingOnViewCompleteListeners:{},rows:null,columns:null,constructor:function(){this._childAddedListener=null,this._childRemovedListener=null},init:function(e){this.inherited(arguments),e.propertyObj&&e.propertyObj._peerNode&&(this.documentNode=e.propertyObj._peerNode,this._addPeerListeners(),this.documentNode.getNumberOfChildren()>0&&this.initViews())},addView:function(t){var n=this.documentNode?this.documentNode.getProperty("name"):t.varName,o=this.documentNode?this.documentNode.getProperty("containerType"):t.containerType,r=this._getDataAttributes()||t.dataAttributes||"";this._updateDom(),this.userContext=this.userContext||t.userContext;var a=t.peerNode,s=e.getWidgets(o,"",this.userContext,r),l=s&&s.Editor?s.Editor:void 0;l||(l=(s=e.getWidgets("","",this._UNSUPPORTED_VIEW_CONTEXT)).Editor);var c=this._getPluginsForView(l,r),d=i.mixin({varName:n,peerNode:a,peerDocument:this,configurablePlugins:c,context:this.userContext,dataAttributes:r},this.allArgs);d.context=this.userContext||d.context,this._createView(l,d),this.inherited(arguments)},_getDataAttributes:function(){var e=this.documentNode&&this.documentNode.hasProperty("dataAttributes")?this.documentNode.getProperty("dataAttributes"):"";return e&&(e=JSON.parse(e),Array.isArray(e)||(e=[e]),e=0===e.length?"":e),e||this.allArgs.dataAttributes||""},parentViewToDocument:function(e){try{this.allArgs=r.mergeObjects(this.allArgs,{peerNode:e.peerNode,varName:e.varName}),e.init(this.allArgs),this._parentedViews[e.viewID]=e,this.resize(),this.inherited(arguments)}catch(e){l.error(e)}},removeView:function(e){var t=this.views[e];t?this.inherited(arguments):l.warn("No view exists for the given View ID")},replaceView:function(e,t){l.warn("View not replaced")},getViewByType:function(e){var t=this.getViews(),i=null;return t.forEach((function(t){!i&&t.peerNode&&t.peerNode.hasProperty("type")&&t.peerNode.getProperty("type")===e&&(i=t)})),i||this.inherited(arguments)},close:function(){if(this.manager&&(this.manager.removeFocusedDocument(this),this.manager.hasRoot())){var e=this.manager.getRoot();e.dispatchEvent("peerEvent",e,{type:"RemoveDocument",variable:this.varName,workspace:this.documentNode.getProperty("workspace")})}},_addPeerListeners:function(){this._childAddedListener=this._handleChildAdded.bind(this),this._childRemovedListener=this._handleChildRemoved.bind(this),this.documentNode.addEventListener("childAdded",this._childAddedListener),this.documentNode.addEventListener("childRemoved",this._childRemovedListener)},initViews:function(){var e=this;this.documentNode.getChildren().forEach((function(t){e.addView({peerNode:t})}))},_handleChildAdded:function(e){var t=e.data.child,n=t.getProperty("viewID");this._viewAlreadyExists(t)?this.views[n].setPeerNode(t):this.addView(i.mixin(this.allArgs,{peerNode:t}));void 0!==n&&this.views[n]&&this._initializeListenersOnView(this.views[n])},_initializeListenersOnView:function(e){this.inherited(arguments)},_handleChildRemoved:function(e){var t=e.data.child.getProperty("viewID");void 0!==t&&this.removeView(t)},_viewAlreadyExists:function(e){var t=e.getProperty("viewID");return!!this.views[t]},destroy:function(){this._destroyed||(this.inherited(arguments),this.manager.closeVariable(this.varDocID,this.workspace))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(238),i(204),i(214),i(227),i(210),i(238),i(276),i(1186),i(366),i(596)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e("variableeditor_peer.PeerDocumentWidget",[s,l,d],{init:function(e){var t=this;e&&(t.documentNode=e.documentNode,t.userContext=this.userContext||e.userContext||"");var i=t.documentNode;i&&(t.varName=e.varName,t.varSize=e.displaySize,t.size=e.size,t.varType=e.varType,t.varDocID=i.getProperty("docID"),t.userContext=i.hasProperty("userContext")?i.getProperty("userContext"):t.userContext,t.workspace=i.hasProperty("workspace")?i.getProperty("workspace"):"debug"),this.inherited(arguments),t.summaryBar&&e.showSummaryBar&&(t.summaryBar.setName(t.varName),t.summaryBar.setSize(t.varSize),t.summaryBar.setType(t.varType)),this._addFocusListeners(),this._addDocumentListeners()},_addDocumentListeners:function(){this.showSummaryBar&&this.documentNode&&this.documentNode.addEventListener("propertySet",this._handlePropertySet.bind(this))},_handlePropertySet:function(e){if(e&&e.data){var t=e.data.key;if("displaySize"===t&&(this.varSize=e.data.newValue,this.summaryBar.setSize(e.data.newValue)),"type"===t&&this.summaryBar.setType(e.data.newValue),"dataAttributes"===t){this._updateDom();var i=this._getDataAttributes(),n=this.getViews()[0];n&&n.updateDataAttributes&&n.updateDataAttributes(i)}this.allArgs.hasOwnProperty(t)&&(this[t]=this.allArgs[t]=e.data.newValue)}},_addFocusListeners:function(){var e=this;this.onFocus=function(){e.manager&&e.manager.setFocusedDocument(e),r.add(e.domNode,"focused")},this.onBlur=function(){e.manager&&e.manager.removeFocusedDocument(e),r.remove(e.domNode,"focused"),e.domNode.contains(document.activeElement)&&document.activeElement.blur()}},createViewOnInit:function(e){e.viewID&&this.inherited(arguments)},_initializeListenersOnView:function(e){var t=[c.SIZE_CHANGED,c.VIEW_RENDERING,c.VIEW_RENDERED];this.initListenersOnView(e,t);var i=this._handlePropertySetOnView.bind(this,[e]);e.peerNode.addEventListener("propertySet",i)},_handlePropertySetOnView:function(e,t){"DisplaySize"===t.data.key&&this.summaryBar&&t.data.newValue&&(this.varSize=t.data.newValue.displaySize,this.summaryBar.setSize(this.varSize))},_handleSizeChanged:function(e){if(this.summaryBar){var t=e.data.dataSize.rows.count,i=this.summaryBar.domNode.getElementsByClassName("filterSummaryData")[0];t<this.rows?(i.innerText=["| Reduced from "+this.rows+" rows"],r.replace(i,"filterSummaryData show")):r.replace(i,"filterSummaryData hide")}this.resize()},_handleViewRendering:function(e){this._showBusyIndicator(e)},_handleViewRendered:function(e){this._hideBusyIndicator(e)},focus:function(){if(this.id){var e=o.byId(this.id);o.isDescendant(t.curNode,e)||t.focus(o.byId(this.id))}},_getMetaSummary:function(){var e=this.summaryBar.FilteredSummary;return r.contains(e,"show")?e.innerText:""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(691)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.mwTableRenderers.CheckBoxInteractiveRenderer",[],{checkboxRenderer:null,constructor:function(){this.checkboxRenderer=new t({isChecked:this.isChecked,getValueForAction:this.getValueForAction})},isChecked:function(e){try{if(e){var t=JSON.parse(e).value,i=JSON.parse(t);return Boolean(Number(i[0].value))}}catch(t){return Boolean(Number(e))}},getValueForAction:function(e){if(e){var t=JSON.parse(e).value;return{oldValue:e,newValue:"0"===JSON.parse(t)[0].value?"1":"0"}}return null},getInteractiveRenderer:function(){return this.checkboxRenderer}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6434),i(6435),i(6436),i(6437)],o=i.dj.d(n,(function(e,t){return t(e,"rendererseditors/l10n/nls/mwTableRenderers",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={loading:"読み込み中..."}},function(e,t,i){e.exports={loading:"正在加载..."}},function(e,t,i){e.exports={loading:"불러오는 중..."}},function(e,t,i){e.exports={root:{loading:"loading..."},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(203),i(1191),i(743)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.CenterAlignedTextRenderer",[i,t],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(235),i(983),i(743)],o=i.dj.d(n,(function(e,t,i,n,o){return e("rendererseditors.mwTableRenderers.StringRenderer",[o,n],{getValueDomNode:function(e){var n=document.createElement("div"),o=e.value;return e.isMetaData||(o='"'+o+'"'),e.isMetaData&&t.add(n,"MetaData"),this.addAlignment(n),o=i.formatString(o,{escapeSpace:!0}),n.textContent=o,t.add(n,"StringRenderer"),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1191),i(1192)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.CenterAlignedSpanRenderer",[i,t],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1192),i(2304)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.PlainTextSpanRenderer",[t,i],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2303),i(2304)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.PlainTextRightAlignedSpanRenderer",[t,i],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2305),i(2306)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.IconTextRenderer",[t,i],{_createIconNode:function(){},_getColumnClass:function(e){return e.icon||this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1191),i(1193)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.CenterAlignedTableRenderer",[i,t],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(743),i(6446)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.CompositeIconTextRenderer",[t,i],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(984)],o=i.dj.d(n,(function(e,t,i,n){return e("rendererseditors.mwTableRenderers.MultiIconDisplayMixin",[],{getValueDomNode:function(e){const o=document.createElement("div");t.add(o,"MultiIconTextRendererTop");const r=this.inherited(arguments),a=this._getColumnClass(e);n.applyCssClassForVarType(a,!1,!0,r),t.add(r,"MultiIconTextRenderer"),i.place(r,o,"last");const s=document.createElement("div");return t.add(s,e.access+"Access"),i.place(s,o,"first"),o},_getColumnClass:function(e){return e.class||"char"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(743),i(2306)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.IconTextRenderer",[t,i],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2302),i(2310)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.PlainTextRightAlignedTextRenderer",[t,i],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2313),i(2314)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableEditors.TableNumericEditor",[t,i],{_EDITOR_TABLE_CLASS:["mwTableTableNumericEditor"]})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2316),i(2314)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableEditors.TableCharEditor",[t,i],{_EDITOR_TABLE_CLASS:["mwTableTableCharEditor"]})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(985),i(1554)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableEditors.DateTimeEditor",[t,i],{_EDITOR_TABLE_CLASS:["mwTableDatetimeEditor"],constructor:function(){this.setEditorConverter("datetimeConverter")},validateAndComplete:function(e,t){e===t?this.emitCanceledEvent():this.emitCompleteEvent({newValue:this.convert(e),oldValue:t})},getInputNodeValue:function(e){return e},handleTabKey:function(e){e.preventDefault(),e.shiftKey?this.goToPreviousField():this.goToNextField()},goToNextField:function(){var e=this.inputNode.value;if(e&&"NaT"!==e){var t=this.inputNode.selectionEnd,i=this._getNextFieldIndices(e,t);this.inputNode.selectionStart=i[0],this.inputNode.selectionEnd=i[1]}return i},_getNextFieldIndices:function(e,t){var i=e.substring(t,e.length),n=i.match(/[^a-z0-9]+/i),o=-1,r=1;null!==n&&(o=t+n.index,r=n[0].length),n=(i=e.substring(o+r,e.length)).match(/[^a-z0-9]+/i);var a=e.length;return null!==n&&(a=o+r+n.index),[o+r,a]},goToPreviousField:function(){var e=this.inputNode.value;if(e&&"NaT"!==e){var t=this.inputNode.selectionStart,i=this._getPreviousFieldIndices(e,t);this.inputNode.selectionStart=i[0],this.inputNode.selectionEnd=i[1]}return i},_getPreviousFieldIndices:function(e,t){var i=this._reverse(e.substr(0,t)),n=i.match(/[^a-z0-9]+/i),o=e.length,r=1;null!==n&&(o=t-1-n.index,r=n[0].length);var a=-1;return null!==(n=(i=this._reverse(e.substring(0,o-r+1))).match(/[^a-z0-9]+/i))&&(a=o-r-n.index),[a+1,o-r+1]},_reverse:function(e){for(var t="",i=e.length-1;i>=0;i-=1)t+=e[i];return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(301),i(985)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableEditors.TableHeaderEditor",[i],{_EDITOR_TABLE_CLASS:["mwTableHeaderEditor"],createDomNode:function(){this.inherited(arguments),this.inputNode.value=""},validateAndComplete:function(e,t){this.emitCompleteEvent({newValue:e,oldValue:t})},getInputNodeValue:function(e){return e.name||e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1183)],o=i.dj.d(n,(function(e){return{getComboBoxConfig:function(t,i,n){var o=[];if(t&&Array.isArray(t)&&t.length>0){var r=t.slice(0);n&&r.push("<undefined>"),o=r.map((function(e){return{label:e,value:e}}))}return e.config({items:o,setItems:function(e){return!0},height:"100%",editable:!i})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2309),i(2307)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.mwTableRenderers.CategoricalFilteringTableRenderer",[t],{getValueDomNode:function(e){var t=this.inherited(arguments);return t.textContent=i.cleanUIforTextFiltering(t.textContent),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={};return{getRendererInstance:function(t,i,n,o){return n=n||{},o?new i(n):(e[t]||(e[t]=new i(n)),e[t])}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(382),i(326),i(393)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor_client/Plugins/CellFocus",[n],{PLUGIN_NAME:"CELL_FOCUS",constructor:function(e){this._initializePlugin(e,i.FEATURE.CellFocus)},setCellFocus:function(e){var t=this.getSelectionRangeObject(e);this._view._table&&this._view._table.setCellFocus(t)},clearCellFocus:function(){this._view._table&&this._view._table.setCellFocus([])},getSelectionRangeObject:function(e){return t.createRange(e.startRow,e.endRow,e.startColumn,e.endColumn)},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(326),i(393)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_client/Plugins/ColumnSort",[i],{PLUGIN_NAME:"COLUMN_SORT",constructor:function(e){this._initializePlugin(e,t.FEATURE.IndividualColumnSort)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(239),i(301),i(842),i(6459)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=function(e){return e.ctrlKey||e.metaKey},s=e("variableeditor.Plugins.Selection.PlaidSelection",[n],{blockSelection:null,emits:["selectionChanged"],forceRowBasedSelection:!1,_selectionBounds:null,constructor:function(e){this.adaptor=e.adaptor,this.blockSelection=new r,this.previousFulcrum=i.range(),this._selectionBounds=null,this._attachEventListeners(),e.adaptor.selectHeaders=!0,e.adaptor.applyToCells=!0},_attachEventListeners:function(){var e=this._handleColumnSelection.bind(this),t=this._handleRowSelection.bind(this),i=this._handleSelectAll.bind(this),n=this._handleRangeSelection.bind(this),r=o.event;this.adaptor.on(r.COLUMN_SELECTION,e),this.adaptor.on(r.ROW_SELECTION,t),this.adaptor.on(r.SELECT_ALL,i),this.adaptor.on(r.RANGE_SELECTION,n)},_handleSelectAll:function(e){var t=i.range().setEntireColumns(0,1/0);this._updateSelection(e,t)},_handleRangeSelection:function(e){var t,n=e.fulcrum,o=e.activeCell,r=a(e);if(r||e.shiftKey)if(e.shiftKey){var s=r?this.previousFulcrum:n,l=Math.min(s.rows.start,o.rows.start),c=Math.max(s.rows.end,o.rows.end),d=Math.min(s.columns.start,o.columns.start),u=Math.max(s.columns.end,o.columns.end),h=Math.min(d,u),p=Math.max(d,u),f=Math.min(l,c),g=Math.max(l,c);t=i.range().setRows(f,g).setColumns(h,p)}else r&&!e.shiftKey&&(t=i.range().setRows(o.rows.start,o.rows.end).setColumns(o.columns.start,o.columns.end));else t=i.range().setRows(o.rows.start,o.rows.start).setColumns(o.columns.start,o.columns.start);this._updateSelection(e,t)},_updateSelection:function(e,t){if(this.forceRowBasedSelection){const e=this._selectionBounds?this._selectionBounds.columns.end:1/0;t=i.range().setRows(t.rows.start,t.rows.end).setColumns(0,e)}var n=this.adaptor.getSelection().slice(),o=!(!t||1!==n.length)&&i.isRangeEqual(t,n[0]),r=!0,s=t&&0===t.columns.start&&t.columns.end===1/0,l=t&&0===t.rows.start&&t.rows.end===1/0;if(a(e)&&!e.shiftKey&&t){var c=this._modifyRangeForCtrlEvent(n,t,s,l);t=c.newRange,r=c.updateActiveRange}else a(e)&&e.shiftKey?t=this._getRangeForCtrlWithNoSelection(t,n,s,l):t?(e.shiftKey&&(t=this._getModifiedRangeForShiftKey(t,s,l)),t=this._getSelectionRangeFromCalcRange(t)):(this.blockSelection.resetSelection(),t=[],r=!1);var d=t.length-1,u=r?t[d]:null;this.adaptor.setSelection(t,{activeRange:u}),o||this.emit("selectionChanged",{rangeList:this.adaptor.getSelection()}),a(e)&&e.shiftKey||(this.previousFulcrum=e.fulcrum)},_getModifiedRangeForShiftKey:function(e,t,n){if(t&&this.blockSelection.hasBlockRowSelection()){var o=this.blockSelection.getEntireColumnRange();e=i.range().setRows(e.rows.start,e.rows.end).setColumns(o.start,o.end)}if(n&&this.blockSelection.hasBlockColumnSelection()){var r=this.blockSelection.getEntireRowRange();e=i.range().setRows(r.start,r.end).setColumns(e.columns.start,e.columns.end)}return e},_modifyRangeForCtrlEvent:function(e,t,i,n){var o={newRange:null,updateActiveRange:!0},r=i&&n;return this._isCurrentlySelected(t,e,i,n)?(o.updateActiveRange=!!r,o.newRange=this._getRangeForCtrlWithSelection(t,e)):o.newRange=this._getRangeForCtrlWithNoSelection(t,e,i,n),o},_getRangeForCtrlWithNoSelection:function(e,t,i,n){var o=e.rows,r=e.columns;if(!(i&&n)){if(i&&this.blockSelection.selectedColumns.length>0){var a=this.blockSelection.selectedColumns[0].start;r={start:a,end:a}}if(n&&this.blockSelection.selectedRows.length>0){var s=this.blockSelection.selectedRows[0].start;o={start:s,end:s}}}return this.blockSelection.setRowSelection([o]),this.blockSelection.setColumnSelection([r]),this.blockSelection.getReconciledSelection()},_getRangeForCtrlWithSelection:function(e,t){return this.blockSelection.removeRowColumnIntersectionFromSelection(e,t),this.blockSelection.getReconciledSelection()},_isCurrentlySelected:function(e,t,n,o){return n?this.blockSelection.isRowHeaderSelected(e):o?this.blockSelection.isColumnHeaderSelected(e):i.isRangeInsideRangeList(e,t)},_getSelectionRangeFromCalcRange:function(e){return this.blockSelection.setRowSelection([e.rows],!0),this.blockSelection.setColumnSelection([e.columns],!0),this.blockSelection.getReconciledSelection()},_handleColumnSelection:function(e){var t=e.activeCell,n=e.fulcrum,o=this._getRangeForSelectionUpdate(t.columns,n.columns,e),r=i.range().setEntireColumns(o.start,o.end);this._updateSelection(e,r)},_handleRowSelection:function(e){var t=e.activeCell,n=e.fulcrum,o=this._getRangeForSelectionUpdate(t.rows,n.rows,e),r=i.range().setEntireRows(o.start,o.end);this._updateSelection(e,r)},_getRangeForSelectionUpdate:function(e,t,i){var n={start:-1,end:-1},o=e.start,r=Math.min(t.start,o),s=Math.max(t.end,o);return!a(i)&&i.shiftKey||(s=r=Math.min(e.start,o)),n.start=Math.min(r,s),n.end=Math.max(r,s),n},getSelection:function(){return{selectedRows:this.blockSelection.selectedRows.slice(),selectedColumns:this.blockSelection.selectedColumns.slice()}},setSelection:function(e,i){if(Array.isArray(e.selectedRows)&&Array.isArray(e.selectedColumns)){this.blockSelection.setRowSelection(e.selectedRows,!0),this.blockSelection.setColumnSelection(e.selectedColumns,!0);var n=this.blockSelection.getReconciledSelection();this.adaptor.setSelection(n,{activeRange:n[n.length-1]}),this.emit("selectionChanged",{rangeList:this.adaptor.getSelection(),originator:i})}else t.warn("Please provide a valid rangelist")},setSelectionBounds:function(e){this._selectionBounds=e},changeSelectionMode:function(e){this.forceRowBasedSelection=e},exposedAPI:function(){return{setSelection:this.setSelection.bind(this),getSelection:this.getSelection.bind(this),setSelectionBounds:this.setSelectionBounds.bind(this),_forceRowBasedSelection:this.changeSelectionMode.bind(this)}}});return s.adaptor=o,s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(239)],o=i.dj.d(n,(function(e,t,i){return e([],{selectedRows:[],selectedColumns:[],source:"client",constructor:function(){this.resetSelection()},setRowSelection:function(e,t){t?(this.selectedRows=[],e.forEach((function(e){this.selectedRows.push(e)}),this)):this.hasSelectedRows(e[0])||(this.selectedRows.push({start:e[0].start,end:e[0].end}),this.reconcileSelection())},setColumnSelection:function(e,t){t?(this.selectedColumns=[],e.forEach((function(e){this.selectedColumns.push(e)}),this)):this.hasSelectedColumns(e[0])||(this.selectedColumns.push({start:e[0].start,end:e[0].end}),this.reconcileSelection())},removeRowColumnIntersectionFromSelection:function(e,t){var n=null,o=null;if(e.rows.count!==1/0){var r={start:e.rows.start,end:e.rows.end};n=i.removeRowsFromRangeList(t,r)}if(e.columns.count!==1/0){o=n||t;var a={start:e.columns.start,end:e.columns.end};n=i.removeColumnsFromRangeList(o,a)}n=n||[e],this.setFreshSelection(n)},setFreshSelection:function(e){var t=e.map((function(e){return e.rows})),i=e.map((function(e){return e.columns}));this.setRowSelection(t,!0),this.setColumnSelection(i,!0),this.reconcileSelection()},hasSelectedRows:function(e){return this.selectedRows.some((function(t){return t.start===e.start&&t.end===e.end}))},hasSelectedColumns:function(e){return this.selectedColumns.some((function(t){return t.start===e.start&&t.end===e.end}))},hasBlockRowSelection:function(){return!this.selectedRows.some((function(e){return e.end===1/0}))},hasBlockColumnSelection:function(){return!this.selectedColumns.some((function(e){return e.end===1/0}))},getEntireRowRange:function(){return this._getEntireRange(this.selectedRows)},getEntireColumnRange:function(){return this._getEntireRange(this.selectedColumns)},_getEntireRange:function(e){var t={start:-1,end:-1};return e.forEach((function(e,i){t.start=0===i?e.start:t.start,t.start=Math.min(t.start,e.start),t.end=Math.max(t.end,e.end)})),t},isRowHeaderSelected:function(e){return this.selectedRows.some((function(t){return e.rows.start>=t.start&&e.rows.end<=t.end}))},isColumnHeaderSelected:function(e){return this.selectedColumns.some((function(t){return e.columns.start>=t.start&&e.columns.end<=t.end}))},getReconciledSelection:function(){var e=[];return this.selectedRows.forEach((function(t){this.selectedColumns.forEach((function(n){var o=i.range().setRows(t.start,t.end).setColumns(n.start,n.end);e.push(o)}),this)}),this),e},reconcileSelection:function(){var e=this._hasIntersectingRows(),t=this._hasIntersectingColumns();if(e||t){var i;if(e){this.selectedRows.sort((function(e,t){return e.start-t.start}));for(var n=[this.selectedRows[0]],o=1;o<this.selectedRows.length;o+=1)i=JSON.parse(JSON.stringify(n[n.length-1])),this.selectedRows[o].start<=n[n.length-1].end+1||this.selectedRows[o].start===n[n.length-1].start&&this.selectedRows[o].end===n[n.length-1].end?(i.end=Math.max(this.selectedRows[o].end,n[n.length-1].end),n[n.length-1]=i):n.push(this.selectedRows[o]);this.selectedRows=n}if(t){this.selectedColumns.sort((function(e,t){return e.start-t.start}));var r=[this.selectedColumns[0]];for(o=1;o<this.selectedColumns.length;o+=1)this.selectedColumns[o].start<=r[r.length-1].end+1?((i=JSON.parse(JSON.stringify(r[r.length-1]))).end=this.selectedColumns[o].end>=r[r.length-1].end?this.selectedColumns[o].end:r[r.length-1].end,r[r.length-1]=i):r.push(this.selectedColumns[o]);this.selectedColumns=r}}},_hasIntersectingRows:function(){var e,t=this.selectedRows.slice();t.sort((function(e,t){return e.start-t.start}));for(e=1;e<t.length;e+=1)if(t[e].start<=t[e-1].end+1)return!0;return!1},_hasIntersectingColumns:function(){var e,t=this.selectedColumns.slice();t.sort((function(e,t){return e.start-t.start}));for(e=1;e<t.length;e+=1)if(t[e].start<=t[e-1].end+1)return!0;return!1},resetSelection:function(){this.selectedRows=[],this.selectedColumns=[]},hasSelection:function(){return this.selectedRows.length>0&&this.selectedColumns.length>0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(326),i(393)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_client/Plugins/RowHeaders",[i],{PLUGIN_NAME:"ROW_HEADERS",constructor:function(e){this._initializePlugin(e,t.FEATURE.RowHeaders)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(326),i(210),i(214),i(393)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("variableeditor_client.Plugins.LightWeightGriddedView",[r],{PLUGIN_NAME:"LIGHT_WEIGHT_VIEW",LIGHT_WEIGHT_GRID_CLASSNAME:"lightWeightView",handleViewDomCreatedListener:null,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._view.updateTableAttributes("gridStyle",i.gridStyle.LIGHT_WEIGHT),this.handleViewDomCreatedListener=o.after(this._view,"postCreate",this._handleViewDomCreated.bind(this))},_handleViewDomCreated:function(){n.add(this._view.domNode,this.LIGHT_WEIGHT_GRID_CLASSNAME)},destroy:function(){this.handleViewDomCreatedListener&&this.handleViewDomCreatedListener.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(393),i(366),i(278)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor_client/Plugins/DoubleClickHandler",[t],{PLUGIN_NAME:"DOUBLE_CLICK_HANDLER",constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME;var t=this;this._view.addEventListener("tableCreated",(function(e){t._init()}))},_init:function(){var e=this;e._view.own(e._view._table.on("doubleClicked",(function(t){e.handleDoubleClickOnCell(t)})))},handleDoubleClickOnCell:function(e){var t=this._view.getDataStore();if(e.cellRange&&!0!==e.isEditing){var o=e.cellRange.columns.start,r=e.cellRange.rows.start,a=t.getLocalCellData(r,o,!0);try{var s=n.getEditorValueFromJSONData(a);if(s){var l={row:r,column:o,variableName:s,context:this._view.context,workspace:this._view.workspace};this._view.dispatchEvent(i.DOUBLE_CLICK_ON_METADATA_CELL,this._view,l),e.preventDefault()}}catch(e){}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(239),i(2329),i(744)],o=i.dj.d(n,(function(e,t,i,n,o){return t("variableeditor_client.plugins.ContextBasedPlaidSelection",[n],{PLUGIN_NAME:"TABLE_CONTEXT_BASED_PLAID_SELECTION",_handleSelectionChanged:function(){var t=this._view.getSelection();if(t){var i=this._view.getMetaDataStore(),n=this._view.getDataStore().dataSize,r=!1,a=!1;if(o.isConsecutiveColumnSelection(t,n.rows.count)){for(var s=t.selectedColumns[0],l=!0,c=i.getColumnModelProperty("class",s.start),d=s.start,u=Math.min(s.end,n.columns.count),h=d+1;h<=u;h+=1)if(i.getColumnModelProperty("class",h)!==c||!e.isValid(c)){l=!1;break}l&&(r=!0)}else o.isSingleColumnSelection(t,n.rows.count)&&parseInt(i.getColumnModelProperty("GroupColumnSize",t.selectedColumns[0].start))>1&&(a=!0);this._view.provider.setPropertyOnServer(this._view,"GroupVariable",r),this._view.provider.setPropertyOnServer(this._view,"UngroupVariable",a)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(1182),i(235),i(506),i(278),i(2327),i(744),i(846)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e("variableeditor_client.plugins.ViewContextHandler",[a],{PLUGIN_NAME:"ARRAY_VIEW_CONTEXT_HANDLER",TABULAR_CONTEXT:"tabular",BASE_TYPE_CONTEXT:"base",TEXT_TYPE_CONTEXT:"text",_handleRightClickOnTable:function(e){this._handleSwitch(e)},_handleContextSwitchOnDocument:function(e){this._handleSwitch(e)},rePublishContext:function(e){e.target&&this._handleSwitch(e)},_getViewContext:function(e){var t,i=this.inherited(arguments);return r.isTypeTable(this._view.containerType)?(t=this.TABULAR_CONTEXT,i=e.indexOf(l.TIME_CONTEXT)>-1?"":i):this._isTypeBaseContext(i)?t=this.BASE_TYPE_CONTEXT:this._isTypeTextContext(i)&&(t=this.TEXT_TYPE_CONTEXT),i=Array.isArray(i)?i:[i],t&&i.push(t),i},_handleSwitch:function(e){var t=this._view._table.getSelection();if(s.isEmptySelection(t))this.clearContext();else if(this._isOutsideSummaryBar(e.target)){var i=[],n=this._getKeyboardContext(e),o=this._view.getDataStore(),a=o._actualSize||o.dataSize,c=this._view.containerType;r.isTypeTable(c)&&this.handleTableSpecificContext(i),this._updatePlaidSelectionContext(i,t),s.isColumnSelection(t,a.rows.count)?(this._getColumnContext(i,t),s.isRowSelection(t,a.columns.count)&&this._getRowContext(i)):s.isRowSelection(t,a.columns.count)?this._getRowContext(i):this._isDataGridContext(e.target)?this._getDataGridContext(i):this._isEmptySpaceContext(e.target)&&this._getEmptySpaceContext(i,e),i.indexOf(l.EMPTY_SPACE_CONTEXT)>-1||i.push(l.GRID_CONTEXT),this.publishContext(this._fetchCurrentContext(i),!0,n)}},_getDataGridContext:function(e){e.push(l.DATA_GRID_CONTEXT)},_updateEmptySpaceContext:function(e){e.push(l.EMPTY_SPACE_CONTEXT)},_isDataGridContext:function(e){return!(!e.type||e.type!==l.TABLE_CELL_CONTEXT&&e.type!==l.TABLE_KEYBOARD_CONTEXT)||this._tableDataDom&&this._tableDataDom.contains(e)},_isEmptySpaceContext:function(e){return!this._tableHeaderDom||this._tableHeaderDom&&e instanceof Element&&!this._tableHeaderDom.contains(e)},_getColumnContext:function(e,t){this.inherited(arguments);var i=this._view.getDataStore().dataSize,n=i.rows.count;s.isSingleColumnSelection(t,n)&&!this._isInfiniteGridColumnContext(t)&&e.push(l.SINGLE_COLUMN_CONTEXT)},_isInfiniteGridRowContext:function(e){var t=this._view.getDataStore();if(!t._actualSize)return!1;for(var i=t._actualSize.rows.count,n=!0,o=0;o<e.selectedRows.length;o+=1)n&=e.selectedRows[o].start>=i;return n},_isInfiniteGridColumnContext:function(e){var t=this._view.getDataStore();if(!t._actualSize)return!1;for(var i=t._actualSize.columns.count,n=!0,o=0;o<e.selectedColumns.length;o+=1)n&=e.selectedColumns[o].start>=i;return n},_updatePlaidSelectionContext:function(e,t){var i=this._view.getProperty("SelectionSubset");n.isValid(i)&&e.push(i),s.hasMultipleRows(t)&&e.push(l.MULTIPLE_ROWS_CONTEXT),s.hasMultipleColumns(t)&&e.push(l.MULTIPLE_COLUMNS_CONTEXT)},handleTableSpecificContext:function(e){this._view.getProperty("GroupVariable")&&e.push(l.GROUP_COLUMN_CONTEXT),this._view.getProperty("UngroupVariable")&&e.push(l.UNGROUP_COLUMN_CONTEXT);var t=this._view.getSelection();"timetable"===this._view.containerType&&1===t.selectedColumns.length&&0===t.selectedColumns[0].end&&e.push(l.TIME_CONTEXT)},_isTypeBaseContext:function(e){return["numeric","cell"].some((function(t){return Array.isArray(e)?e.indexOf(t)>-1:e===t}))},_isTypeTextContext:function(e){var t=r.isCategorical(this._view.containerType);return["string","datetime","duration"].some((function(i){return t||(Array.isArray(e)?e.indexOf(i)>-1:e===i)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(393)],o=i.dj.d(n,(function(e,t){return e("variableeditor_client/Plugins/InfiniteGrid",[t],{PLUGIN_NAME:"INFINITE_GRID",constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME;var t=this;this._view.addEventListener("tableCreated",(function(e){t._init()}))},_init:function(){var e=this._view._dataStoreWrapper;e&&e.enableInfiniteGrid?e.enableInfiniteGrid():console.log("Data Store does not support infinite grid!")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(1195),i(326),i(596),i(366),i(393),i(278)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("variableeditor_client/Plugins/DragAndDrop",[a,o],{PLUGIN_NAME:"DRAG_AND_DROP",PLAIN_TEXT_DRAG_FLAVOR:i.PlainText,selectedFields:null,_onDragStartPromise:null,_outstandingPromise:!1,constructor:function(e){this._dragFlavor=e.allArgs.dragFlavor||this.PLAIN_TEXT_DRAG_FLAVOR,this._setDragDataFn=e.allArgs.setDragDataFn||void 0,n.FEATURE.DragAndDrop&&(this._initializePlugin(e,n.FEATURE.DragAndDrop),e.updateDragConfig(this._setDragData.bind(this)),this.initListenersOnView(e,[r.TABLE_META_DATA_CHANGED]))},_handleTableMetaDataChanged:function(){var e=this._view.getMetaDataStore().getTableModelProperty("SelectedFields");this._onDragStartPromise&&this._outstandingPromise&&(this._onDragStartPromise.resolve(this._getDragPayload(e,e)),this._outstandingPromise=!1)},_setDragData:function(e){var i=this._view.getDataStore();this._onDragStartPromise=new t;var n=i.getViewPortSize();if(1===e.length&&1===e[0].rows.count&&e[0].rows.start>=n.rows.start&&e[0].rows.end<=n.rows.end){var o=i.getLocalCellData(e[0].rows.start,0,!0);let t=o?s.getEditorValueFromJSONData(o):null;t?this._onDragStartPromise.resolve(this._getDragPayload(t,t)):this._outstandingPromise=!0}else this._outstandingPromise=!0;return this._onDragStartPromise},_getDragPayload:function(e){let t=this._setDragDataFn?this._setDragDataFn(e):e;return{dragSourceType:this._dragFlavor,value:t}},destroy:function(){this._onDragStartPromise=null,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(239),i(506),i(596),i(366),i(393)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("variableeditor_client/Plugins/SparklineScrollPosition",[a,o],{PLUGIN_NAME:"SPARKLINE_SCROLL_POSITION",constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME;var i=this;this._view.addEventListener("tableCreated",(function(e){i._init()})),this.handleViewDomCreatedListener=t.after(this._view,"postCreate",this._handleViewDomCreated.bind(this)),this._initViewListener()},_initViewListener:function(){var e=[r.TABLE_META_DATA_CHANGED];this.initListenersOnView(this._view,e)},_handleTableMetaDataChanged:function(){var e=this._view.getDataStore();this._setVisibility(e)},_init:function(){var e=this._view.getDataStore(),t=this;e?(this.viewUpdatedListener=e.on("viewportUpdated",(function(i){var n=t._view.getTable();t&&t._view&&n&&n.domNode&&t._setScrollPosition(e)})),this._setVisibility(e)):console.log("No Data Store Found!")},_setScrollPosition:function(e){if(this._isVisible){var t=Math.min(100,Math.max(0,(this._getCurrentScrollPosition().row+1)/e._actualSize.rows.count*100));this._view.getTable().domNode.style.setProperty("--sparkline-scroll-position",t+"%")}},_setVisibility:function(e){var t=e._metaDataStore.hasTableModelProperty("ShowSparkLineScrollPosition")&&!0===e._metaDataStore.getTableModelProperty("ShowSparkLineScrollPosition"),i=t?"visible":"hidden";this._view.getTable().domNode.style.setProperty("--sparkline-scroll-visiblity",i),this._isVisible=t,this._setScrollPosition(e)},_getCurrentScrollPosition:function(){var e=this._view.getTable().domNode.querySelector(n.TABLE_SCROLL_CONTAINER_CLASSES),t=this._view.getTable().domNode.querySelectorAll(n.TABLE_ROW_CLASSES),i=e.getBoundingClientRect();let o=0;for(o=0;o<t.length;o+=1){if(t[o].getBoundingClientRect().top>=i.top)break}var r=t[o],a=parseInt(r.getAttribute(n.FIRST_TABLE_ROW_CLASS)),s=r.querySelectorAll(n.TABLE_COLUMN_CLASSES);let l=0;for(l=0;l<s.length;l+=1){if(s[l].getBoundingClientRect().right>i.left)break}return{row:a,column:parseInt(s[l].getAttribute(n.FIRST_COLUMN_CLASS))}},_doScroll:function(e){if(this._isVisible&&e&&e.target&&e.target.parentElement&&e.target.classList.contains("linearSparkLine")){var t=this._view.getDataStore();if(t){var n=Math.min(100,Math.max(0,e.offsetX/e.target.width)),o=Math.round(t._actualSize.rows.count*n)-1,r=this._getCurrentScrollPosition().column,a=i.range().setRows(o,o).setColumns(r,r);this._view.getTable().scrollTo(a)}}},_handleViewDomCreated:function(){this.handleViewDomCreatedListener&&this.handleViewDomCreatedListener.remove(),this._doScrollBound=this._doScroll.bind(this),this._view.domNode.addEventListener("click",this._doScrollBound)},destroy:function(){this.inherited(arguments),this.viewUpdatedListener&&(this.viewUpdatedListener.remove(),this.viewUpdatedListener=void 0),this.handleViewDomCreatedListener&&(this.handleViewDomCreatedListener.remove(),this.handleViewDomCreatedListener=void 0),this._view.domNode&&this._view.domNode.removeEventListener("click",this._doScrollBound)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(213),i(225),i(278),i(2332),i(1196)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){const l=["0px","1px","1px","1px"],c=["1px","1px","1px","1px"],d={fontSize:"12px","font-family":"Consolas, Inconsolata, Menlo, monospace"},u={color:"#B3B3B3","font-style":"normal"},h={"border-spacing":"0px","border-collapse":"collapse"},p={"text-overflow":"ellipsis","font-family":"Arial, sans-serif","font-size":"12px",overflow:"hidden",padding:"3px"},f={width:"auto",paddingLeft:"20px",verticalAlign:"middle",lineHeight:"1.3"};return e([s],{_addHorizontalEllipsis:!1,createElement:function(e){this.showBorders=this.options.showBorders,this.showHeaders=this.options.showHeaders,this.headerBackgroundColors=e.headerColors,this.cellColors=e.cellColors;var t=i.create("div"),n=this.inherited(arguments);if(i.place(n,t),this.options.showSummaryBar){var o=this.createSummaryBar(e);i.place(o,t,"first")}return t},constructColumnHeaderContainer:function(e){e=e||1;var t=i.create("thead");for(let o=0;o<e;o+=1){var n=this.constructRowContainer();i.place(n,t)}return t},constructTableBodyContainer:function(e){return i.create("tbody",null)},getTotalColumnCount:function(e){var t={};return e.maxWidth?t=a.getTotalColumnCount({rowHeaders:e.rowHeaders,columnSpan:e.columnSpan,columnWidth:e.columnWidth,availableWidth:e.maxWidth}):(t=this.inherited(arguments),e.originalSize&&e.originalSize.columns>e.columnCount&&(t.addHorizontalEllipsis=!0)),this._addHorizontalEllipsis=t.addHorizontalEllipsis||!1,{columnCount:t.columnCount,headerCount:t.headerCount}},hasHorizontalOverflow:function(){return this._addHorizontalEllipsis},createRowHeader:function(e){var t={headerContainer:e.headerContainer,headerData:e.headerData,isRowHeader:!0,headerRowIndex:e.headerRowIndex},i=this._createHeaderCell(t);return e.isCornerSpacer&&(i.style.borderWidth=c.join(" ")),i},createColumnHeader:function(e){var t={headerContainer:e.headerContainer,headerData:e.headerData,isColumnHeader:!0,columnNumber:e.columnIndex,columnWidth:e.columnWidth,icon:e.icon,headerRowIndex:e.headerRowIndex};return this._createHeaderCell(t)},_createHeaderCell:function(e){var t=e.headerContainer.getElementsByTagName("tr");const i=e.headerRowIndex||0;t=t&&t[i]?t[i]:e.headerContainer;var n={cellData:e.headerData,rowContainer:t,isRowHeader:e.isRowHeader,isColumnHeader:e.isColumnHeader,columnNumber:e.columnNumber,columnWidth:e.columnWidth,icon:e.icon},o=this.createCell(n);if(this.showBorders){var r="#f5f5f5";e.isColumnHeader&&this.headerBackgroundColors&&this.headerBackgroundColors[e.columnNumber]&&3===this.headerBackgroundColors[e.columnNumber].length&&(r="rgb("+this.headerBackgroundColors[e.columnNumber].join(",")+")"),o.style.backgroundColor=r}return o.style.color="rgba(0,0,0,0.75)",o.style.padding="6px 3px 3px 3px",o.style.fontSize="12px",o.style.fontWeight="700",o.style.boxSizing="border-box",o},_addCellAlignment:function(e,t,i){var n=this.getColumnAlignmentStyle(e,t);i.style.textAlign=n},constructRowContainer:function(){return i.create("tr")},createCell:function(e){var t=e.cellData,n=e.isRowHeader||e.isColumnHeader,o=n?"th":"td",a=e.isColumnHeader?c:l,s=e.columnWidth?e.columnWidth+"px":"75px",d=JSON.parse(JSON.stringify(p));d.width=e.isRowHeader?"34px":s,e.isRowHeader||(d.minWidth=d.width,d.maxWidth=d.width),t=this._cleanCellContents(t);var u={style:d=r.mergeObjects({},d)},h=e.rowNumber,g=e.columnNumber;void 0!==h&&void 0!==g&&this.cellColors&&this.cellColors[h]&&this.cellColors[h][g]&&3===this.cellColors[h][g].length&&(u.style.backgroundColor="rgb("+this.cellColors[h][g].join(",")+")");var m=i.create(o,u,e.rowContainer);if(e.icon){let i=document.createElement("div");Object.assign(i.style,f),i.style.background=e.icon,i.textContent=t,m.appendChild(i)}else m.innerHTML="<span>"+t+"</span>";var _=e.cellMetaData&&e.cellMetaData.class?e.cellMetaData.class:e.columnClass;return this._addCellAlignment(_,e.isColumnHeader,m),!this.showBorders||!n&&this.options.lightWeightView||this._addBorders(m,a),m},createSummaryBar:function(e){var t=i.create("div",{style:d,class:"summaryBar"}),n=i.create("span",{},t),o=i.create("span",{style:u},t);return n.innerText=e.varName+" = ",o.innerText=this.getSummaryContent(e),t},_cleanCellContents:function(e){var t=String(e);return t=(t=t.replace(/</g,"&lt;")).replace(/>/g,"&gt;"),t=r.formatString(t)},constructTableWithHeader:function(e,t){var n=i.create("table",{style:h,cellspacing:"0"});return this.showHeaders&&i.place(e,n),i.place(t,n),n},addRowContainerToBody:function(e,t){i.place(t,e)},_addBorders:function(e,t){if(e&&(e.style.border="1px solid #bfbfbf",t)){var i=t.join(" ");e.style.borderWidth=i}}})}),e,t),e.exports=o},function(e,t){e.exports="<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>\n <meta http-equiv='X-UA-Compatible' content='IE=edge,IE=9,chrome=1'>\n <meta name='generator' content='MATLAB'>\n </head>\n <body>\n <div class='vePrintDom'>\n <table id='printTable'>\n <thead>\n <tr>\n <td id='printTableHeader'>\n <div id='veHeader'>\n <div id='leftHeader'>\n <span id = 'leftHeaderContent'></span>\n </div>\n <div id='rightHeader'></div>\n </div>\n </td>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td id='printTableCell'></td>\n </tr>\n </tbody>\n </table>\n </div>\n </body>\n</html>"},function(e,t){e.exports='@media screen {\n .vePrintDom {\n display: none\n }\n}\n\n@media print {\n\n @page {\n margin: 5%;\n }\n\n table {\n page-break-after: always;\n }\n #printTable {\n width: 100%;\n }\n\n #leftHeaderContent {\n white-space: pre;\n }\n #veHeader {\n border: 1px solid black;\n margin-bottom: 5mm;\n padding: 3mm;\n display: block;\n }\n #veHeader #leftHeader {\n display: inline-block;\n }\n #veHeader #rightHeader {\n float: right;\n display: inline-block;\n }\n\n #printTable .ClientViewDiv .textArea {\n width: 100%;\n height: 100%;\n white-space: pre;\n }\n\n /*#rightHeader:before {\n counter-increment: page;\n content:"Page " counter(page);\n left: 0;\n top: 100%;\n white-space: nowrap;\n z-index: 20;\n -moz-border-radius: 5px;\n -moz-box-shadow: 0px 0px 4px #222;\n background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);\n }*/\n\n\n table { page-break-inside:auto }\n tr { page-break-inside:avoid; page-break-after:auto }\n}'},function(e,t,i){e.exports={variablePrintHeader:"MATLAB 変数: ${0}",BrushingOn:"ブラシ選択オン",BrushingOff:"ブラシ選択オフ"}},function(e,t,i){e.exports={variablePrintHeader:"MATLAB 변수: ${0}",BrushingOn:"브러싱 켜기",BrushingOff:"브러싱 끄기"}},function(e,t,i){e.exports={variablePrintHeader:"MATLAB 变量: ${0}",BrushingOn:"启用刷亮模式",BrushingOff:"禁用刷亮模式"}},function(e,t,i){e.exports={root:{variablePrintHeader:"MATLAB Variable: ${0}",BrushingOn:"Brushing On",BrushingOff:"Brushing Off"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(2330)],o=i.dj.d(n,(function(e,t){return e("variableeditor_client/Plugins/print/DomPrint",[t],{PLUGIN_NAME:"DOM_PRINT",handlePrint:function(){let e=this;this.getDomForPrint().then(t=>{e._printContent(t)})},getDataDomForPrint:function(){const e=this;return new Promise((t,i)=>{let n=e._view.domNode.cloneNode(!0),o=n.getElementsByTagName("textarea");for(let e=0;e<o.length;e+=1){let t=document.createElement("div");t.classList.add("textArea"),t.textContent=o[e].value,o[e].parentElement.replaceChild(t,o[e])}t([n])})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(393)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_client.Plugins.PercentageColumnWidth",[i],{PLUGIN_NAME:"PERCENTAGE_COLUMN_WIDTH",handleViewDomCreatedListener:null,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this.setPercentageWidthListener=t.after(this._view,"_getTableConstructorArgs",this._setPercentageWidth,!1)},_setPercentageWidth:function(e){return e.fitToContainer=!0,e},destroy:function(){this.setPercentageWidthListener&&this.setPercentageWidthListener.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(393),i(366),i(596),i(2333)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("variableeditor_client/Plugins/Brushing",[i,o],{PLUGIN_NAME:"BRUSHING",brushingMode:!1,constructor:function(e){this._aspectHandles=[],this._view=e,this._menuProvider=this._view.allArgs.contextMenuProvider,this.name=this.PLUGIN_NAME,e.addEventListener(n.SELECTION_CHANGED,function(e){this._handleBrushOnSelection(e)}.bind(this)),this.initListenersOnView(e,[n.SIZE_CHANGED]),this._menuProvider&&this._aspectHandles.push(t.before(this._menuProvider,"populateContextMenu",this.toggleContextMenuState.bind(this))),this._view.manager.actionDataService&&this._view.manager.actionDataService.getAction("Brushing")&&this._aspectHandles.push(t.before(this._view.manager.actionDataService.getAction("Brushing"),"execute",e=>{this._view.focused&&e.menuID&&"BrushingToggle"===e.menuID&&this._view.manager.actionDataService.getAction("Brushing").updateProperties({Selected:!this.brushingMode})}))},toggleContextMenuState:function(e){if(this._view.focused){let t=this._menuProvider._getMenuItemsForContext(e).find(e=>e.featureId&&"Brushing"===e.featureId);if(t){let e=this.brushingMode?r.BrushingOff:r.BrushingOn;t.set("text",e)}}},setBrushingMode:function(e){this.brushingMode=e;let t=this._view.getDataStore();if(1===t._actualSize.rows.count)this._view._table._forceRowBasedSelection(!1);else if(this._view._table._forceRowBasedSelection(this.brushingMode),this.brushingMode){let e=this._view._table.getSelection();if(e.selectedRows.length>0){const i=t._actualSize.columns.end;e.selectedColumns=[{start:0,end:i}],this._view._table.setSelection(e)}}},_handleSizeChanged:function(){const e=this._view.getDataStore()._actualSize;this._view._table.setSelectionBounds(e),this.brushingMode&&this.setBrushingMode(this.brushingMode)},_handleBrushOnSelection:function(e){e=e||{},this.brushingMode&&"serverBrushing"!==e.data.originator&&this._view._dispatchActionToServer("Brushing",{Selection:this._getClippedSelection()})},_getClippedSelection:function(){let e=this._view._table.getSelection(),t=this._view.getDataStore();return e.selectedRows.length>0&&e.selectedRows.forEach((function(i,n){const o=Math.min(i.end,t._actualSize.rows.end);e.selectedRows[n]={start:i.start,end:o}})),e.selectedColumns.length>0&&e.selectedColumns.forEach((function(i,n){const o=Math.min(i.end,t._actualSize.columns.end);e.selectedColumns[n]={start:i.start,end:o}})),e},destroy:function(){this.inherited(arguments),this._aspectHandles.forEach(e=>{e&&e.remove()}),this._aspectHandles=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(317),i(506)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{PLUGIN_NAME:"CONTEXT_MENU",_RIGHT_CLICK_EVENT:"contextmenu",SELECTION_CONTEXT_HANDLER:"SELECTION_CONTEXT",_contextMenu:null,_contextMenuChildren:[],constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._contextMenuListener=null,this._initListener=this._init.bind(this),this._view.addEventListener("tableCreated",this._initListener),this._createContextMenu()},_createContextMenu:function(){this._contextMenuChildren=[],this._contextMenu=new i},_init:function(){var e=this;this._view.own(this._view._table.on("contextMenu",(function(t){e._handleContextMenuRequested(t)})));var t=this._view;document.addEventListener(this._RIGHT_CLICK_EVENT,this._contextMenuListener=function(e){var i=t._table.domNode.querySelector(n.TABLE_COMPONENT_QUERY_CLASS);i&&i.firstChild&&i.firstChild.contains(e.target)?e.stopPropagation():t.domNode.contains(document.activeElement)&&document.activeElement.blur()})},_handleContextMenuRequested:function(e){this._view.handleContextMenuRequested(e),this._view._table.focus(),this._show(e)},_show:function(e){var t=this._view.getPluginByName(this.SELECTION_CONTEXT_HANDLER);this._disableAllMenuItems();var i=t.getValidOptions();i.length>0&&(i.forEach((function(e){this._getMenuItemByID(e).domNode.style.display="flex"}),this),this._contextMenu.openMenu({x:e.left,y:e.top}))},_disableAllMenuItems:function(){this._contextMenuChildren.forEach((function(e){e.domNode.style.display="none"}))},_getMenuItemByID:function(e){return this._contextMenuChildren.find((function(t){return t.featureID===e}))},addMenuItem:function(e){this._contextMenuChildren.push(e),this._contextMenu.addChild(e)},destroy:function(){this._contextMenuListener&&(document.removeEventListener("contextmenu",this._contextMenuListener),this._contextMenuListener=null),this._initListener&&(this._view.removeEventListener("tableCreated",this._initListener),this._initListener=null),this._contextMenu&&this._contextMenu.destroyRecursive()}})}),e,t),e.exports=o},function(e,t,i){e.exports={numSortTextAsc:"最小から最大への並べ替え",numSortTextDesc:"最大から最小への並べ替え",strSortTextAsc:"A から Z への並べ替え",strSortTextDesc:"Z から A への並べ替え",dtSortTextAsc:"古いものから順に並べ替え",dtSortTextDesc:"最新のものから順に並べ替え",dataTypeConversionText:"${0} から次に変換",errorDuringDataTypeConversionTitleText:"変換中にエラーが発生しました",promptToEnterACustomDateTimeFormatText:"カスタム入力形式",CustomDateTimeInputFormatTooltip:"カスタム datetime 入力形式",RevertFilterDialogText:"テーブル '${0}' にはフィルター処理されたデータがあります。\n\nフィルター処理を保持するには、テーブルの下にある [コードを更新] ボタンをクリックします。\n${1} '${2}' は既存のフィルターを元に戻します。",RevertFilterDialogTitle:"フィルターを元に戻す",EditCategoriesMenu:"カテゴリの編集",ConvertingText:"次のデータ型を変換中",CleaningText:"クリーニング",OkButtonConvert:"変換",OkButtonClean:"削除",CopyFromSelection:"選択をコピーします",invalidHeaderName:"${varName} は有効なフィールド名ではありません"}},function(e,t,i){e.exports={numSortTextAsc:"从最小到最大排序",numSortTextDesc:"从最大到最小排序",strSortTextAsc:"从 A 到 Z 排序",strSortTextDesc:"从 Z 到 A 排序",dtSortTextAsc:"从最旧到最新排序",dtSortTextDesc:"从最新到最旧排序",dataTypeConversionText:"从 ${0} 转换为",errorDuringDataTypeConversionTitleText:"转换过程中发生错误",promptToEnterACustomDateTimeFormatText:"自定义输入格式",CustomDateTimeInputFormatTooltip:"自定义日期时间输入格式",RevertFilterDialogText:"表 '${0}' 包含过滤后的数据。\n\n要保留过滤,请按表下方的 '更新代码' 按钮。\n${1} '${2}' 将还原现有过滤器。",RevertFilterDialogTitle:"还原筛选器",EditCategoriesMenu:"编辑类别",ConvertingText:"正在转换以下项的数据类型:",CleaningText:"正在清理",OkButtonConvert:"转换",OkButtonClean:"清理",CopyFromSelection:"复制所选内容",invalidHeaderName:"${varName} 不是有效的字段名称"}},function(e,t,i){e.exports={numSortTextAsc:"오름차순으로 정렬",numSortTextDesc:"내림차순으로 정렬",strSortTextAsc:"A에서 Z 순으로 정렬",strSortTextDesc:"Z에서 A 순으로 정렬",dtSortTextAsc:"과거순으로 정렬",dtSortTextDesc:"최신순으로 정렬",dataTypeConversionText:"${0}형을 다음으로 변환",errorDuringDataTypeConversionTitleText:"변환하는 중 오류가 발생함",promptToEnterACustomDateTimeFormatText:"사용자 지정 입력 형식",CustomDateTimeInputFormatTooltip:"사용자 지정 datetime형 입력 형식",RevertFilterDialogText:"테이블 '${0}'에 필터링된 데이터가 포함되어 있습니다.\n\n필터링을 유지하려면 테이블 아래에 있는 '코드 업데이트' 버튼을 누르십시오.\n${1} '${2}'은(는) 기존 필터를 되돌립니다.",RevertFilterDialogTitle:"필터 되돌리기",EditCategoriesMenu:"범주 편집",ConvertingText:"다음의 데이터형 변환:",CleaningText:"정리",OkButtonConvert:"변환",OkButtonClean:"정리",CopyFromSelection:"선택 항목 복사",invalidHeaderName:"${varName}은(는) 유효한 필드 이름이 아님"}},function(e,t,i){e.exports={root:{numSortTextAsc:"Sort Smallest to Largest",numSortTextDesc:"Sort Largest to Smallest",strSortTextAsc:"Sort A to Z",strSortTextDesc:"Sort Z to A",dtSortTextAsc:"Sort Oldest to Newest",dtSortTextDesc:"Sort Newest to Oldest",dataTypeConversionText:"Convert from ${0} to",errorDuringDataTypeConversionTitleText:"Error Occurred During Conversion",promptToEnterACustomDateTimeFormatText:"Custom Input Format",CustomDateTimeInputFormatTooltip:"Custom datetime input format",RevertFilterDialogText:"The table '${0}' contains filtered data. \n\nTo preserve filtering, press the 'Update Code' button below the table. \n${1} '${2}' will revert existing filters.",RevertFilterDialogTitle:"Revert Filters",EditCategoriesMenu:"Edit Categories",ConvertingText:"Converting the data type of",CleaningText:"Cleaning",OkButtonConvert:"Convert",OkButtonClean:"Clean",CopyFromSelection:"Copy Selection",invalidHeaderName:"${varName} is not a valid field name"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t){e.exports='[\n {\n "dataType": "double",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n },\n {\n "dataType": "logical",\n "displayType": "Logical"\n }\n ]\n },\n {\n "dataType": "string",\n "conversionTypes": [\n {\n "dataType": "cellstr",\n "displayType": "Cell"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n },\n {\n "dataType": "double",\n "displayType": "Double"\n },\n {\n "dataType": "datetime",\n "displayType": "Datetime"\n },\n {\n "dataType": "duration",\n "displayType": "Duration"\n }\n ]\n },\n {\n "dataType": "char",\n "conversionTypes": [\n {\n "dataType": "cellstr",\n "displayType": "Cell"\n },\n {\n "dataType": "string",\n "displayType": "String"\n }\n ]\n },\n {\n "dataType": "cellstr",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n },\n {\n "dataType": "datetime",\n "displayType": "Datetime"\n },\n {\n "dataType": "duration",\n "displayType": "Duration"\n }\n ]\n },\n {\n "dataType": "categorical",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "double",\n "displayType": "Double"\n }\n ]\n },\n {\n "dataType": "ordinal",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "double",\n "displayType": "Double"\n }\n ]\n },\n {\n "dataType": "nominal",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "double",\n "displayType": "Double"\n }\n ]\n },\n {\n "dataType": "datetime",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n }\n ]\n },\n {\n "dataType": "duration",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n }\n ]\n },\n {\n "dataType": "calendarDuration",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n }\n ]\n },\n {\n "dataType": "logical",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n }\n ]\n },\n {\n "dataType": "int8",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n }\n ]\n },\n {\n "dataType": "int16",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n }\n ]\n },\n {\n "dataType": "int32",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n }\n ]\n },\n {\n "dataType": "int64",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n }\n ]\n },\n {\n "dataType": "uint8",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n }\n ]\n },\n {\n "dataType": "uint16",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n }\n ]\n },\n {\n "dataType": "uint32",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n }\n ]\n },\n {\n "dataType": "uint64",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n }\n ]\n },\n {\n "dataType": "half",\n "conversionTypes": [\n {\n "dataType": "string",\n "displayType": "String"\n },\n {\n "dataType": "categorical",\n "displayType": "Categorical"\n }\n ]\n }\n]'},function(e,t,i){var n,o;n=[i(203),i(212),i(204),i(214)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_stringDisplayRequestBuffer:[],PLUGIN_NAME:"STRING_DISPLAY",constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._remoteEventListener=n.after(this._view,"handleRemoteEvent",this.handleRemoteEvent.bind(this),!0)},handleRemoteEvent:function(e){"setStringData"===e.data.type&&this._stringDisplayRequestBuffer.length>0&&this._stringDisplayRequestBuffer.pop().promise.resolve(e.data)},requestStringData:function(e){var i=new t((function(){}));return this._view.provider&&this._view.provider.dispatchEventToServer(this._view,{type:"getStringData",startRow:e.rows.start,endRow:e.rows.end,startColumn:e.columns.start,endColumn:e.columns.end}),this._stringDisplayRequestBuffer.push({promise:i,range:e}),i},destroy:function(){this._remoteEventListener&&this._remoteEventListener.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(230),i(2339),i(2319)],o=i.dj.d(n,(function(e,t,i,n,o){return e("variableeditor_peer/Plugins/ColumnResizePaged",[o],{PLUGIN_NAME:"COLUMN_RESIZE_PAGED",_handleColumnResizeDoneListener:null,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._initColResizingListener=this.initColumnResizing.bind(this),this._view.addEventListener("tableCreated",this._initColResizingListener)},initColumnResizing:function(){this._handleColumnResizeDoneListener=this._handleColumnResizeDone.bind(this),this._view._table._eventMap.columnResized&&this._view.own(this._view._table.on("columnResized",this._handleColumnResizeDoneListener))},_handleColumnResizeDone:function(e){var t=e.sizes[0],i=this._view.getDataStore();if(t&&i&&this._view.provider){var o=t.columnIndex,r=t.width;this._view.provider.setPropertyOnServer(this._view,"ColumnModelProperty",{column:o,property:"ColumnResized",value:!0}),this._view.provider.setPropertyOnServer(this._view,"ColumnModelProperty",{column:o,property:"ColumnWidth",value:r})}this._view.viewStateChanged({type:n.COLUMN_RESIZED})},destroy:function(){this._initColResizingListener&&this._view.removeEventListener("tableCreated",this._initColResizingListener)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(326),i(393),i(366)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor_peer/Plugins/ColumnReorder",[i],{PLUGIN_NAME:"COLUMN_REORDER",constructor:function(e){e.setProperty("ColumnReorderable",!0),this._initializePlugin(e,t.FEATURE.DragAndDrop),t.REORDER&&(e.updateDragConfig(null,[t.REORDER.COLUMNS],this.setDragAvatar.bind(this)),this._initListeners())},setDragAvatar:function(e){const t=e.dataTransferItem.getDataByType("mw-table-default-type");if(t&&t.source&&"TABLE_COLUMN"===t.source.type){const e=t.source.ids[0];let i=document.createElement("div");return i.textContent=this._view.getMetaDataStore().getColumnModelProperty("HeaderName",e-1),{node:i}}},_initListeners:function(){var e;this._view.addEventListener("tableCreated",e=function(){this._view.own(this._view._table.on("dropInProgress",this._handleColumnReordered.bind(this))),this._view.removeEventListener("tableCreated",e)}.bind(this))},_handleDropInProgress:function(e){console.log(e)},_handleColumnReordered:function(e){"column"===e.source.type&&"column"===e.target.type&&(this._view.dispatchRemoteEvent({type:n.COLUMN_REORDERED,sourceIndex:e.source.ids,targetIndex:e.target.index+1}),this._view._dispatchActionToServer("ColumnReorderAction",{sourceIndex:e.source.ids,targetIndex:e.target.index+1}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6488)],o=i.dj.d(n,(function(e,t){return t(e,"mw-form/l10n/nls/form",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{Search:"Search"}}},function(e,t,i){e.exports={MinVal:"最小: ${0}",MaxVal:"最大: ${0}",IncludeMissingText:"欠落した (${0}) - ${1} 行を含める",FilteredCountText:"${1} 行のうち ${0} を選択",minValTooltip:"他の変数からのフィルター処理を適用した後の変数の最小値",maxValTooltip:"他の変数からのフィルター処理を適用した後の変数の最大値",selectedMinValTooltip:"変数の現在の下限",selectedMaxValTooltip:"変数の現在の上限",SelectAll:"すべて選択",ClearAll:"すべてクリア"}},function(e,t,i){e.exports={MinVal:"最小值: ${0}",MaxVal:"最大值: ${0}",IncludeMissingText:"包含缺失值(${0}) - ${1}) 行",FilteredCountText:"选中 ${0} 行(共 ${1} 行)",minValTooltip:"应用了其他变量进行筛选后的最小变量值",maxValTooltip:"应用了其他变量进行筛选后的最大变量值",selectedMinValTooltip:"变量的当前最小值",selectedMaxValTooltip:"变量的当前最大值",SelectAll:"全选",ClearAll:"全部清除"}},function(e,t,i){e.exports={MinVal:"최솟값: ${0}",MaxVal:"최댓값: ${0}",IncludeMissingText:"누락값(${0}) 포함하기 - ${1}개 행",FilteredCountText:"총 ${1}개 행 중 ${0}개 선택",minValTooltip:"다른 변수를 필터링한 후의 변수의 최솟값",maxValTooltip:"다른 변수를 필터링한 후의 변수의 최댓값",selectedMinValTooltip:"변수에 대한 현재 최소 제한",selectedMaxValTooltip:"변수에 대한 현재 최대 제한",SelectAll:"모두 선택",ClearAll:"모두 지우기"}},function(e,t,i){e.exports={root:{MinVal:"Min: ${0}",MaxVal:"Max: ${0}",IncludeMissingText:"Include Missing (${0}) - ${1} rows",FilteredCountText:"Selecting ${0} out of ${1} rows",minValTooltip:"Minimum variable value after filtering from other variables applied",maxValTooltip:"Maximum variable value after filtering from other variables applied",selectedMinValTooltip:"Current minimum limit for variable",selectedMaxValTooltip:"Current maximum limit for variable",SelectAll:"Select All",ClearAll:"Clear All"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(6494),i(203),i(204),i(214),i(210),i(211),i(366)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t("variableeditor_peer/HeaderMenus/FigureHandlerMixin",[],{_FIGURE_CLASS:"filteredHistogramImg",_listenerAdded:!1,_datatip:null,_FIGURE_MOUSE_MOVE_EVENT:"figuremousemoveHitPosition",_FIGURE_MOUSE_UP_EVENT:"figuremouseupHitPosition",_FIGURE_KEY_UP_EVENT:"figurekeyupKeyPosition",_HIDE_CLASS:"hide",_SHOW_CLASS:"show",_HIGHLIGHT_GRABBER_CLASS:"highlightGrabber",_tempCanvasIDChannel:"/CanvasIDPublished",constructor:function(){this._mouseMoveListener=null,this._mouseUpListener=null,this._keyUpListener=null},createFigureContainer:function(t,n){var a=t.querySelector(".loading");if(!a){var s=r.create("div",{className:"loading show"});t.appendChild(s)}if(n){var l=new e(n);t.appendChild(l.domNode),l.startup(),this._mouseMoveListener=l.on(this._FIGURE_MOUSE_MOVE_EVENT,i.hitch(this,this._handleMouseMove,l)),this._mouseUpListener=l.on(this._FIGURE_MOUSE_UP_EVENT,this.dispatchFilterActionToServer),this._keyUpListener=l.on(this._FIGURE_KEY_UP_EVENT,this.dispatchFilterActionToServer),o.replace(a,this._HIDE_CLASS,this._SHOW_CLASS),this._viewDataReceived||this._disableFigure(t)}},_handleMouseMove:function(e,t){o.toggle(e.domNode,this._HIGHLIGHT_GRABBER_CLASS,t.isOverMaxLine||t.isOverMinLine)},initializeFigure:function(e,t){var i=null;if(t.hasOwnProperty("CanvasID"))i=t.CanvasID,this.createFigureContainer(e,i);else if(this._headerMenuView.getMetaDataStore().hasTableModelProperty("CanvasID"))i=this._headerMenuView.getMetaDataStore().getTableModelProperty("CanvasID"),this.createFigureContainer(e,i);else{var n;this._headerMenuView.addEventListener(a.TABLE_META_DATA_CHANGED,n=function(t){(i=this._headerMenuView.getMetaDataStore().getTableModelProperty("CanvasID"))&&(this.createFigureContainer(e,i),this._headerMenuView.removeEventListener(a.TABLE_META_DATA_CHANGED,n))}.bind(this))}},handlePropertySet:function(e,t){if("CanvasID"===t.data.key){var i=t.data.newValue;this.createFigureContainer(e,i),this._propertySetListener.remove(),this._listenerAdded=!1}},_disableFigure:function(e){var t=e.getElementsByClassName("loading")[0];o.add(t,"disable")},_enableFigure:function(e){var t=e.getElementsByClassName("loading")[0];o.remove(t,"disable")},destroyFigureHandler:function(){this._listenerAdded&&this._propertySetListener.remove(),this._mouseMoveListener&&(this._mouseMoveListener.remove(),this._mouseUpListener.remove(),this._keyUpListener.remove())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1165),i(211),i(203),i(204),i(6495),i(6496),i(6497),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return i("datatoolsservices.Figure.FigureController",[o,a],{_MOUSE_UP_EVENT:"mouseup",_MOUSE_MOVE_EVENT:"mousemove",_MOUSE_DOWN_EVENT:"mousedown",_MOUSE_ENTER_EVENT:"mouseenter",_MOUSE_LEAVE_EVENT:"mouseleave",_BLUR_EVENT:"blur",_KEY_UP_EVENT:"keyup",_HIT_POSITION:"HitPosition",_KEY_POSITION:"KeyPosition",FIGURE_KEY_UP:"figurekeyup",FIGURE_EVENT_TYPE_PREFIX:"figure",_mouseUpEventFired:!1,constructor:function(e){this._resetListeners()},_resetListeners:function(){this._handleMouseListener=null,this._handleMouseDownListener=null,this._handleWindowMouseUpListeners=[],this._handleHitPositionListener=null,this._handleKeyUpListener=null},startup:function(){this.inherited(arguments),this._initializeListeners()},_initializeListeners:function(){this._handleMouseListener=n.hitch(this,"_handleMouseEvent"),this.domNode.addEventListener(this._MOUSE_UP_EVENT,this._handleMouseListener),this.domNode.addEventListener(this._MOUSE_MOVE_EVENT,this._handleMouseListener),this._handleMouseDownListener=n.hitch(this,"_handleMouseDownEvent"),this.domNode.addEventListener(this._MOUSE_DOWN_EVENT,this._handleMouseDownListener),this._handleKeyEventListener=n.hitch(this,"_handleKeyEvent"),this.domNode.addEventListener(this._KEY_UP_EVENT,this._handleKeyEventListener),this._handleMouseAtBoundaryListener=n.hitch(this,"_notifyServer"),this.domNode.addEventListener(this._MOUSE_ENTER_EVENT,this._handleMouseAtBoundaryListener),this.domNode.addEventListener(this._MOUSE_LEAVE_EVENT,this._handleMouseAtBoundaryListener),this._handleBlurListener=this._handleBlurEvent.bind(this),this.domNode.addEventListener(this._BLUR_EVENT,this._handleBlurListener),this._initializeMessageServiceListeners()},_handleBlurEvent:function(e){e.target===this.domNode&&this._notifyServer(e)},_notifyServer:function(e){if(e.type===this._MOUSE_LEAVE_EVENT){var t=this._getViewPortInfo(e);if(t.isLeftRightWithinBounds&&t.isTopBottomWithinBounds)return}s.publish(this.getBaseChannel()+e.type,{})},_initializeMessageServiceListeners:function(){var e=this.getMouseUpChannel(),t=this.getMouseDownChannel(),i=this.getMouseMoveChannel(),o=this.getKeyUpChannel();this._handleHitPositionListener=n.hitch(this,"_handleHitPosition"),this._handleKeyUpListener=n.hitch(this,"_handleKeyUp"),s.subscribe(e,this._handleHitPositionListener),s.subscribe(t,this._handleHitPositionListener),s.subscribe(i,this._handleHitPositionListener),s.subscribe(o,this._handleKeyUpListener)},_handleMouseDownEvent:function(e){var t=n.hitch(this,"_handleWindowMouseUp");this._handleWindowMouseUpListeners.push(t),window.addEventListener(this._MOUSE_UP_EVENT,t),this._mouseUpEventFired=!1,this._handleMouseEvent(e)},_handleWindowMouseUp:function(e){this._removeWindowListeners();var t={};t.offsetX=e.offsetX,t.offsetY=e.offsetY;var i=!1,n=this._getViewPortInfo(e),o=n.boundingPosition;n.isLeftRightWithinBounds?t.clientX=e.clientX:(t.clientX=e.clientX<o.left?o.left:o.left+o.width-1,i=!0),n.isTopBottomWithinBounds?t.clientY=e.clientY:(t.clientY=e.clientY<o.top?o.top:o.top+o.height-1,i=!0),i&&(t.type=this._MOUSE_UP_EVENT,this._handleMouseEvent(t))},_removeWindowListeners:function(){var e=this;this._handleWindowMouseUpListeners.forEach((function(t){window.removeEventListener(e._MOUSE_UP_EVENT,t)})),this._handleWindowMouseUpListeners=[]},_getViewPortInfo:function(e){var t=this.domNode.getBoundingClientRect(),i=t.right-t.left;return{isLeftRightWithinBounds:e.clientX>=t.left&&e.clientX<=t.left+i,isTopBottomWithinBounds:e.clientY>=t.top&&e.clientY<=t.top+t.height,boundingPosition:t}},_handleHitPosition:function(e){if(e&&e.channel&&e.channel.split("/").length>=5&&e.data){var t=e.channel.split("/")[4]+this._HIT_POSITION;this.emit(t,e.data)}},_handleKeyUp:function(){var e=this.FIGURE_KEY_UP+this._KEY_POSITION;this.emit(e,{})},_handleMouseEvent:function(e){var t=this._getModifiedMouseEventData(e),i=this.FIGURE_EVENT_TYPE_PREFIX+e.type;if(e.type===this._MOUSE_UP_EVENT&&(this._mouseUpEventFired=!0),e.type===this._MOUSE_MOVE_EVENT&&this._mouseUpEventFired)this._mouseUpEventFired=!1;else{try{this.emit(i,t)}catch(e){console.log(e)}s.publish(this.getBaseChannel()+i,t)}},_getModifiedMouseEventData:function(e){var t=this.domNode.getBoundingClientRect(),i=e.clientX-t.left,n=e.clientY-t.top,o=i/(t.right-t.left),r=1-n/(t.bottom-t.top);return{canvasId:this._canvasID,offsetX:i,offsetY:n,percentageX:o,percentageY:r}},_handleKeyEvent:function(e){var t={canvasId:this._canvasID,code:r[e.keyCode],charCode:e.charCode,key:r[e.keyCode],keyCode:e.keyCode,metaKey:e.metaKey,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey},i=this.FIGURE_EVENT_TYPE_PREFIX+e.type;try{this.emit(i,t)}catch(e){console.log(e)}s.publish(this.getBaseChannel()+i,t)},_notifyServerOnDestroy:function(){s.publish(this.getBaseChannel()+this._MOUSE_LEAVE_EVENT,{eventContext:"destroy"})},destroy:function(){this._removeWindowListeners(),this._notifyServerOnDestroy(),this.domNode.removeEventListener(this._MOUSE_UP_EVENT,this._handleMouseListener),this.domNode.removeEventListener(this._MOUSE_MOVE_EVENT,this._handleMouseListener),this.domNode.removeEventListener(this._MOUSE_DOWN_EVENT,this._handleMouseDownListener),this.domNode.removeEventListener(this._KEY_UP_EVENT,this._handleKeyEventListener),this.domNode.removeEventListener(this._MOUSE_ENTER_EVENT,this._handleMouseAtBoundaryListener),this.domNode.removeEventListener(this._MOUSE_LEAVE_EVENT,this._handleMouseAtBoundaryListener),this.domNode.removeEventListener(this._BLUR_EVENT,this._handleBlurListener),s.unsubscribe(this.getMouseUpChannel(),this._handleHitPositionListener),s.unsubscribe(this.getMouseDownChannel(),this._handleHitPositionListener),s.unsubscribe(this.getMouseMoveChannel(),this._handleHitPositionListener),s.unsubscribe(this.getKeyUpChannel(),this._handleKeyUpListener),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("datatoolsservices/Figure/FigureChannel",[],{_FIGURE_VIEW_CHANNEL_BASE:"/DesktopDataTools/FigureView/",_MOUSE_UP_POSITION_SUFFIX:"/figuremouseup/hitPosition",_MOUSE_DOWN_POSITION_SUFFIX:"/figuremousedown/hitPosition",_MOUSE_MOVE_POSITION_SUFFIX:"/figuremousemove/hitPosition",_KEY_UP_POSITION_SUFFIX:"/figurekeyup/KeyPosition",getMouseUpChannel:function(){return this._FIGURE_VIEW_CHANNEL_BASE+this._canvasID+this._MOUSE_UP_POSITION_SUFFIX},getMouseDownChannel:function(){return this._FIGURE_VIEW_CHANNEL_BASE+this._canvasID+this._MOUSE_DOWN_POSITION_SUFFIX},getMouseMoveChannel:function(){return this._FIGURE_VIEW_CHANNEL_BASE+this._canvasID+this._MOUSE_MOVE_POSITION_SUFFIX},getKeyUpChannel:function(){return this._FIGURE_VIEW_CHANNEL_BASE+this._canvasID+this._KEY_UP_POSITION_SUFFIX},getBaseChannel:function(){return this._FIGURE_VIEW_CHANNEL_BASE+this._canvasID+"/"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{39:"ArrowRight",37:"ArrowLeft",8:"Backspace",27:"Escape",46:"Delete"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1165),i(222),i(215),i(210),i(211),i(203)],o=i.dj.d(n,(function(e,t,i,n,o,r){return r("datatoolsservices.Figure.FigureView",[i,t],{FIGURE_VIEW_CLASS_NAME:"ddt_figure_view",_sceneWidget:void 0,_canvasID:void 0,constructor:function(e){this._sceneWidget=void 0,this._canvasID=e,this._initializeDomNode(),e&&this._initializeSceneWidget(e)},startup:function(){this.inherited(arguments),this._sceneWidget&&this._sceneWidget.startup()},_initializeDomNode:function(){this.domNode=o.create("div",{tabIndex:0}),n.add(this.domNode,this.FIGURE_VIEW_CLASS_NAME)},setCanvasID:function(e){this._initializeSceneWidget(e)},_initializeSceneWidget:function(t){this._canvasID=t;var i=new e({Container:this.domNode});i.setInteractionEnabled(!1),i.set("ServerId",t),this.domNode.appendChild(i.domNode),this._sceneWidget=i},destroy:function(){this._sceneWidget&&this._sceneWidget.destroy(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(236),i(308),i(635),i(987)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("variableeditor_peer/HeaderMenus/IncludeMissingMixin",[],{_INCLUDE_MISSING_CLASS:"IncludeMissingLabel",_HIDE_SECTION_CLASS:"HideSection",_SINGLE_COL_CLASS:"single",_DOUBLE_COL_CLASS:"double",_DATETIME_COL_CLASS:"datetime",_DURATION_COL_CLASS:"duration",_missingRows:"0",_includeMissingText:a.IncludeMissingText,_defaultNumericMissingNotation:"NaN",_defaultDatetimeMissingNotation:"NaT",_INCLUDE_MISSING_CUTOFF:9999999,createIncludeMissing:function(e){if(this.hasIncludeMissing()){this._checkboxIndicator=this._createCheckbox(e,!0);var t="datetime"===this.columnClass?this._defaultDatetimeMissingNotation:this._defaultNumericMissingNotation,o=n.substitute(this._includeMissingText,{0:t,1:this._missingRows});this._includeMissingLabel=this._createLabel(o,this._INCLUDE_MISSING_CLASS,e)}else i.add(e,this._HIDE_SECTION_CLASS)},_updateIncludeMissing:function(e){if(this.hasIncludeMissing()){var t=e.getLocalCellData(0,r.MissingString),i=e.getLocalCellData(0,r.missingCountsDispVal),o=e.getLocalCellData(0,r.IncludeMissing);if(i){var a=this._formatDisplayVal(t),s=this._formatDisplayVal(i);parseInt(s)>this._INCLUDE_MISSING_CUTOFF&&(s=parseInt(s).toExponential(3));var l=this._formatDisplayVal(o),c=n.substitute(this._includeMissingText,{0:a,1:s.toString()});this._includeMissingLabel.textNode.textContent=c,this._checkboxIndicator.set("disabled",!1),this._checkboxIndicator.set("checked",Number(l))}}},_resetIncludeMissing:function(){if(this.hasIncludeMissing()){var e="datetime"===this.columnClass?this._defaultDatetimeMissingNotation:this._defaultNumericMissingNotation,t=n.substitute(this._includeMissingText,{0:e,1:this._missingRows});this._includeMissingLabel.textNode.textContent=t,this._checkboxIndicator.set("disabled",!0)}},_createCheckbox:function(e,i){var n=new o;return e.appendChild(n.domNode),n.startup(),n.set("disabled",i),this._handleCheckBoxChangeListener=n.on("change",t.hitch(this,t.hitch(this._handleCheckBoxChange))),n},_handleCheckBoxChange:function(e){var t=e.mwEventData,i=r.IncludeMissing,n={rows:{start:0,end:0,count:1},columns:{start:i,end:i,count:1}},o=t.newValue?"1":"0";this._updateDataStore(n,[[o]]),e.stopPropagation()},hasIncludeMissing:function(){return this.columnClass===this._DOUBLE_COL_CLASS||this.columnClass===this._SINGLE_COL_CLASS||this.columnClass===this._DATETIME_COL_CLASS||this.columnClass===this._DURATION_COL_CLASS},destroyIncludeMissing:function(){this.hasIncludeMissing()&&(this._handleCheckBoxChangeListener&&this._handleCheckBoxChangeListener.remove(),this._includeMissingLabel.destroy(),this._checkboxIndicator.destroy())}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="NumericHeaderMenu">\n <div class="FilteredRange" data-dojo-attach-point="filteredRange"></div>\n <div class="FilteredHistogram" data-dojo-attach-point="filteredHistogram"></div>\n <div class="SelectedRange" data-dojo-attach-point="selectedRange"></div>\n <div class="IncludeMissing" data-dojo-attach-point="includeMissing"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(1557),i(635)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_peer/HeaderMenus/DateTimeSelectionRangeMixin",[t],{_SELECTION_MIN_ID:"rangeMinDispVal",_SELECTION_MAX_ID:"rangeMaxDispVal",_updateSelectionRangeFields:function(e){var t=e.getLocalCellData(0,i.SelectedRangeMinDT),n=e.getLocalCellData(0,i.SelectedRangeMaxDT),o=e.getLocalCellData(0,i.ShowTimeComponent);if(t){var r=JSON.parse(t).value;t=JSON.parse(r)[0].value;var a=JSON.parse(n).value;n=JSON.parse(a)[0].value,o=Number(this._formatDisplayVal(o)),this._setOriginalValue(this._selectionMinRangeText,i.OriginalMinDT,e),this._setOriginalValue(this._selectionMaxRangeText,i.OriginalMaxDT,e);var s=JSON.parse(t);this._selectionMinRangeText.args.previousValue!==s&&this._updateSelectionRange(s,this._selectionMinRangeText,o);var l=JSON.parse(n);this._selectionMaxRangeText.args.previousValue!==l&&this._updateSelectionRange(l,this._selectionMaxRangeText,o),this._disableSelectionRangeFields(!1),this._updateTextBoxToolTips()}},_setOriginalValue:function(e,t,n){if(!e.originalValue){var o=JSON.parse(n.getLocalCellData(0,t)).value,r=this._parseJSONValue(o),a=JSON.parse(n.getLocalCellData(0,i.OriginalMinDT)).value,s=this._parseJSONValue(a);"NAT"!==s&&(s=new Date(s.years,s.months-1,s.days));var l=JSON.parse(n.getLocalCellData(0,i.OriginalMaxDT)).value,c=this._parseJSONValue(l);"NAT"!==c&&(c=new Date(c.years,c.months-1,c.days));var d=n.getLocalCellData(0,i.DateFormat);d=this._formatDisplayVal(d);var u=n.getLocalCellData(0,i.ShowTimeComponent);if(u=Number(this._formatDisplayVal(u)),e.setupChildWidgets(r,s,c,d,u),e.originalValue=r,u){var h=n.getLocalCellData(0,i.TimeFormat);h=this._formatDisplayVal(h),this.set("validationState","warning"),this.set("warningText",h)}}},_parseJSONValue:function(e){var t=JSON.parse(e)[0].value;return JSON.parse(t)},_updateSelectionRange:function(e,t,i){t.setArgs({previousValue:e,previousEditValue:e,showTime:i}),t.setValue("editValue",e)},_updateSelectionRangeOnError:function(e){var t=e===i.rangeMinDispVal?this._selectionMinRangeText:this._selectionMaxRangeText,n=t.args.previousEditValue;t.setValue("editValue",n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(206),i(204),i(210),i(211),i(213),i(6502),i(1558)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(null,{value:"",editValue:"",previousValue:"",previousEditValue:"",originalValue:null,DATE_ELEMENT_CLASSNAME:"DateElement",TIME_ELEMENT_CLASSNAME:"TimeElement",constructor:function(e){this._init(e),this._valueChangedListeners=[]},setArgs:function(e){Object.keys(e).length>0&&n.mixin(this.args,e)},_init:function(e){this.args=e;var t=r.create("div",{className:e.classList}),i=new s(e);this.datePicker=i;var n=new l(e);this.timePicker=n,this.domNode=t},getDomNode:function(){return this.domNode},setupChildWidgets:function(e,i,o,a,s){if("NaT"!==e){var l=new Date(e.years,e.months-1,e.days);this.datePicker.originalValue=l,this.datePicker.setValue("displayFormat",a),this.datePicker.setValue("inputFormat",a),this.datePicker.setValue("limits",[i,o])}else this.datePicker.setValue("placeholder","NaT"),this.setArgs({previousValue:"NaT"});var c=r.create("div",{className:this.DATE_ELEMENT_CLASSNAME});if(c.appendChild(this.datePicker.getDomNode()),this.domNode.appendChild(c),this._valueChangedListeners.push(t.after(this.datePicker,"valueChanged",n.hitch(this,"valueChanged",this.datePicker))),s){var d="NaT"!==e?e.timeStr:e;this.timePicker.originalValue=d,this.timePicker.setValue("Value",d),this.timePicker.setValue("editValue",d);var u=r.create("div",{className:this.TIME_ELEMENT_CLASSNAME});u.appendChild(this.timePicker.getDomNode()),this.domNode.appendChild(u),this._valueChangedListeners.push(t.after(this.timePicker,"valueChanged",n.hitch(this,"valueChanged",this.timePicker)))}},valueChanged:function(e){var t=this.datePicker.value.toLocaleDateString("en-US")+" "+this.timePicker.getValue("value");e.newValue=t,this.value=t},getValue:function(e){return this.datePicker.get(e)},setValue:function(e,t){if("editValue"===e){var i=new Date(t.years,t.months-1,t.days);if(this.datePicker.setValue("value",i),this.datePicker.setValue("editValue",i),this.args.showTime){var n=t.timeStr;this.timePicker.setValue("value",n),this.timePicker.setValue("editValue",n)}}else"disabled"===e&&(this.datePicker.setValue(e,t),this.timePicker.setValue(e,t))},startup:function(){this.datePicker.startup(),this.timePicker.startup()},destroy:function(){this.datePicker.destroy(),this.timePicker.destroy(),this._valueChangedListeners.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(206),i(204),i(210),i(1508),i(1558)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("variableeditor_peer/DatePickerEditor",[a],{createTextField:function(e,t){return new r({width:this.width,height:this.height})},handleChange:function(e){this.preventBlurOnChange&&e.stopPropagation();var t=e.mwEventData;t.newValue?(this.value=t.newValue,this.valueChanged(t)):this.setValue("value",this.value)},_handleEditState:function(){o.toggle(this.textField.textFieldContainerNode,this._EDITED_CLASS,this.editValue.toDateString()!==this.originalValue.toDateString())},handleBlur:function(){this._editing=!1,o.remove(this.textField.domNode,this._TEXT_BOX_FOCUS_CLASS)},handleMouseDown:function(e){var t=this.textField;this._editing||(t.inputNode.select(),e.preventDefault())}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="DateTimeHeaderMenu">\n <div class="FilteredRangeDT" data-dojo-attach-point="filteredRange"></div>\n <div class="FilteredHistogramDT" data-dojo-attach-point="filteredHistogram"></div>\n <div class="SelectedRangeDT" data-dojo-attach-point="selectedRange"></div>\n <div class="IncludeMissing" data-dojo-attach-point="includeMissing"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(2344)],o=i.dj.d(n,(function(e,t){return e("variableeditor_peer/HeaderMenus/DurationFilteredRangeMixin",[t],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1557),i(635)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_peer/HeaderMenus/DurationSelectionRangeMixin",[t],{_SELECTION_MIN_ID:"rangeMinDispVal",_SELECTION_MAX_ID:"rangeMaxDispVal",_updateSelectionRangeFields:function(e){var t=e.getLocalCellData(0,i.rangeMinDispVal),n=e.getLocalCellData(0,i.rangeMaxDispVal),o=e.getLocalCellData(0,i.TimeFormat);if(t){this._setOriginalValue(this._selectionMinRangeText,i.OriginalMinFullPrecision,e),this._setOriginalValue(this._selectionMaxRangeText,i.OriginalMaxFullPrecision,e);var r=this._formatDisplayVal(t),a=this._formatDisplayVal(n);this._selectionMinRangeText.args.previousValue===r&&r===this._selectionMinRangeText.getValue("value")||this._updateSelectionRange(r,this._selectionMinRangeText,this._MIN_TEXT_ENABLED_CLASS),this._selectionMaxRangeText.args.previousValue===a&&a===this._selectionMaxRangeText.getValue("value")||this._updateSelectionRange(a,this._selectionMaxRangeText,this._MAX_TEXT_ENABLED_CLASS),this._disableSelectionRangeFields(!1),this._updateTextBoxToolTips(),o=this._formatDisplayVal(o),this.set("validationState","warning"),this.set("warningText",o)}},_updateSelectionRange:function(e,t,i){t.setArgs({previousValue:e,previousEditValue:e}),t.setValue("value",e),t.setValue("editValue",e),t.setValue("class",i)},_setOriginalValue:function(e,t,i){if(!e.originalValue){var n=i.getLocalCellData(0,t);n=this._formatDisplayVal(n),e.originalValue=n}},_updateSelectionRangeOnError:function(e){var t=e===i.rangeMinDispVal?this._selectionMinRangeText:this._selectionMaxRangeText,n=t.args.previousValue;t.setValue("value",n),t.setValue("editValue",n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(210),i(203),i(206),i(286),i(262),i(273),i(847),i(243),i(6507),i(1199)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return i("variableeditor_client.CategoricalCleaner.CategoricalCleanerWidget",[],{DIALOG_CLASSNAME:"categoricalCleaner",DATA_TEST_ID:"dialog",constructor:function(e){this._init(e)},_init:function(e){this._createDialog(e)},_createDialog:function(e){this.contentAreaWidget=new c(e),this.dialog=r.createDialog({title:d.dialog_title,className:this.DIALOG_CLASSNAME,dialogType:r.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,"data-test-id":this.DATA_TEST_ID,content:this.contentAreaWidget.domNode,buttons:[a.OK,a.CANCEL],defaultActionButton:a.NO_DEFAULT_ACTION}),this._addConfirmationButtonListeners()},_addConfirmationButtonListeners:function(){var e=this;this.dialog.addButtonEventListener(a.CANCEL,(function(){e.destroyWidget()})),this.dialog.addButtonEventListener(a.OK,(function(){e.applyAndClose()}))},applyAndClose:function(){this.destroyWidget()},addResizeListeners:function(e){this.dialog.on("resize",(function(){e.resize()}))},destroyWidget:function(){this.contentAreaWidget.destroyRecursive(),this.dialog.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(215),i(216),i(255),i(450),i(331),i(288),i(847),i(243),i(235),i(6508),i(1199)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e("variableeditor_client.CategoricalCleaner.CategoricalCleanerContentWidget",[n,o,r],{templateString:h,constructor:function(e){this._selectedCategories=[],e&&e.categories&&(this._initialCategoriesListNode=e.categories),this._requestTimerOnSearch=null},postCreate:function(){this.inherited(arguments),this.createDefaultContent(),this._initialCategoriesListNode&&this.categoriesViewNode.appendChild(this._initialCategoriesListNode),t(this.categoriesViewNode,"SelectionChanged",i.hitch(this,"_handleSelectionChanged"))},createDefaultContent:function(){this.addSearchField(),this.addDefaultCleaningOperations()},addSearchField:function(){this._searchField=this._createSearchBox(),this.searchFieldNode.appendChild(this._searchField.domNode),this._searchField.startup(),this._searchField._setWidthAttr("100%");var e=this,i=this._searchField.on("typing",(function(i){e._requestTimerOnSearch&&clearTimeout(e._requestTimerOnSearch),e._requestTimerOnSearch=setTimeout((function(){t.emit(e.searchFieldNode,"searchAction",i),""!==i.mwEventData.currentContent?e.updateAddActionState(!0):e.updateAddActionState(!1)}),200)}));this.own(i)},addDefaultCleaningOperations:function(){this.addMergeCategoriesControl(),this.addRemoveCategoriesControl(),this.addNewCategoryControl()},addMergeCategoriesControl:function(){this._mergeControl=this._createMergeDialogContent(),this._updateMergeActionState(),this.mergeCategoriesNode.appendChild(this._mergeControl.domNode)},addRemoveCategoriesControl:function(){this._removeControl=this.getButton(p.removeText),this._updateRemoveActionState(),this.removeCategoriesNode.appendChild(this._removeControl.domNode);var e=this,i=this._removeControl.on("click",(function(i){t.emit(e.removeCategoriesNode,"removeAction",i)}));this.own(i)},addNewCategoryControl:function(){this._addControl=this.getButton(p.addText),this.addCategoriesNode.appendChild(this._addControl.domNode);var e=this,i=this._addControl.on("click",(function(i){t.emit(e.addCategoriesNode,"addAction",i)}));this.own(i)},_handleSelectionChanged:function(e){this._selectedCategories=e.selection,this._updateMergeActionState(e.selection),this._updateRemoveActionState(e.selection)},_updateMergeActionState:function(){0===this._selectedCategories.length?this._mergeControl.set("disabled",!0):this._mergeControl.set("disabled",!1)},_updateRemoveActionState:function(){0===this._selectedCategories.length?this._removeControl.set("disabled",!0):this._removeControl.set("disabled",!1)},updateAddActionState:function(e){this._addControl.set("disabled",e)},_createMergeDialogContent:function(){var e=this._getMergeDropDown(),t=this,i=e.on("dropdownclick",(function(){var e=t._getDropDownMenu();t._mergeControl.set("menu",e),t._mergeControl.showMenu()}));return this.own(i),e.startup(),e},_getMergeDropDown:function(){return new a({text:p.mergeText,hasDynamicMenu:!0})},_getDropDownMenu:function(){var e=new s({}),i=this;return this._selectedCategories.forEach((function(n){var o=(n=u.formatString(n)).substring(1,n.length-1),r=new l({text:o});e.addChild(r),i.own(r.on("click",(function(e){t.emit(i.mergeCategoriesNode,"mergeAction",e)})))})),e.addChild(this._getAddNewCategoryMenuItem()),e},_getAddNewCategoryMenuItem:function(){var e=this,i=p.mergeToNewItem,n=new l({text:i});return this.own(n.on("click",(function(i){i.mwEventData.details.actionType="mergeToNew",t.emit(e.mergeCategoriesNode,"mergeAction",i)}))),n},_createSearchBox:function(){return new c({closeMenuOnClick:!1})},getButton:function(e){return new d({text:e})}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dialog-content-area" data-dojo-attach-point="categoricalCleanerContextArea">\n <div class="search-categories" data-dojo-attach-point="searchFieldNode"></div>\n <div class="embeddedOutputsVariableTableElement categoriesSummaryView CategoriesView" data-dojo-attach-point="categoriesViewNode"></div>\n <div class="undefinedInformation" data-dojo-attach-point="undefinedInformationNode">\n <div class="undefinedCategoriesLabel" data-dojo-attach-point="undefinedCategoriesLabelNode">Undefined count: </div>\n <div class="undefinedCategoriesValue" data-dojo-attach-point="undefinedCategoriesValueNode"></div>\n </div>\n <div class="addCategories" data-dojo-attach-point="addCategoriesNode"></div>\n <div class="removeCategories" data-dojo-attach-point="removeCategoriesNode"></div>\n <div class="mergeCategories" data-dojo-attach-point="mergeCategoriesNode"></div>\n</div>\n'},function(e,t,i){e.exports={addText:"新規カテゴリ",removeText:"選択内容を削除",mergeText:"選択内容のマージ先",dialog_title:"カテゴリの編集",order_columnName:"順序",categories_columnName:"カテゴリ",counts_columnName:"カウント",mergeToNewItem:"<新規カテゴリ>"}},function(e,t,i){e.exports={addText:"新建类别",removeText:"删除选定类别",mergeText:"合并选定类别到",dialog_title:"编辑类别",order_columnName:"顺序",categories_columnName:"类别",counts_columnName:"计数",mergeToNewItem:"<新建类别>"}},function(e,t,i){e.exports={addText:"새 범주",removeText:"선택한 항목 제거",mergeText:"선택한 항목을 다음과 병합:",dialog_title:"범주 편집",order_columnName:"순서",categories_columnName:"범주",counts_columnName:"개수",mergeToNewItem:"<새 범주>"}},function(e,t,i){e.exports={root:{addText:"New Category",removeText:"Remove Selected",mergeText:"Merge Selected with",dialog_title:"Edit Categories",order_columnName:"Order",categories_columnName:"Categories",counts_columnName:"Counts",mergeToNewItem:"<New Category>"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(218),i(220),i(6514),i(6515),i(6516),i(6517)],o=i.dj.d(n,(function(e,t){return t(e,"variableeditor_peer/l10n/nls/CategoricalCleaningHeaderMenu",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={EditCategoriesMenu:"カテゴリの編集",RevertFilterDialogText:"${0} 変数の既存のフィルターが削除されます。削除を続行しますか?",RevertFilterDialogTitle:"${0} のフィルターを元に戻す"}},function(e,t,i){e.exports={EditCategoriesMenu:"编辑类别",RevertFilterDialogText:"将删除 ${0} 变量的现有筛选器。是否继续清理?",RevertFilterDialogTitle:"还原对 ${0} 的筛选"}},function(e,t,i){e.exports={EditCategoriesMenu:"범주 편집",RevertFilterDialogText:"${0} 변수에 대한 기존 필터가 제거됩니다. 계속해서 정리하시겠습니까?",RevertFilterDialogTitle:"${0}에 대한 필터링 되돌리기"}},function(e,t,i){e.exports={root:{EditCategoriesMenu:"Edit Categories",RevertFilterDialogText:"Existing filters on ${0} variable will be removed. Proceed to Clean ?",RevertFilterDialogTitle:"Revert Filtering on ${0}"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(203),i(214),i(204),i(2324),i(2349)],o=i.dj.d(n,(function(e,t,i,n,o){return e("variableeditor_peer.Plugins.PeerPlaidSelection",[n,o],{PLUGIN_NAME:"PEER_PLAID_SELECTION",constructor:function(e){this.name=this.PLUGIN_NAME},_initSelectionChangedListeners:function(){if(this.inherited(arguments),this._view.propertyObj){var e=this._view.propertyObj.hasOwnProperty("Selection")?this._view.propertyObj.Selection:null;e&&this._onViewSetSelection(JSON.parse(e.selectedRows),JSON.parse(e.selectedColumns))}},_getCurrentSelection:function(){var e=this._view._table.getSelection(),t=this._view.getDataStore();return e.selectedRows.length>0&&e.selectedRows.forEach((function(i,n){var o=Math.min(i.end,t.dataSize.rows.end);e.selectedRows[n]={start:i.start,end:o}})),e.selectedColumns.length>0&&e.selectedColumns.forEach((function(i,n){var o=Math.min(i.end,t.dataSize.columns.end);e.selectedColumns[n]={start:i.start,end:o}})),e.source="client",e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2325),i(366)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor_peer.Plugins.PeerCustomRowHeight",[i],{PLUGIN_NAME:"PEER_CUSTOM_ROW_HEIGHT",_tableMetaDataChangedListener:null,constructor:function(e){this._tableMetaDataChangedListener=this._handleTableMetaDataChanged.bind(this),e.addEventListener(n.TABLE_META_DATA_CHANGED,this._tableMetaDataChangedListener)},_handleTableMetaDataChanged:function(){var e=this._view.getMetaDataStore();e.hasTableModelProperty("RowHeight")&&this.setRowHeight(e.getTableModelProperty("RowHeight"))},destroy:function(){this._view.removeEventListener(n.TABLE_META_DATA_CHANGED,this._tableMetaDataChangedListener)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(1559)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{PLUGIN_NAME:"CHAR_WIDTH_CALC",FONT_SIZE:"12px",MONOSPACE_FONT_FAMILY:'Menlo, Monaco, Consolas, "Courier New", monospace',_monospaceCharacterWidth:null,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._monospaceCharacterWidth=this._calculateSingleCharWidthForMonospaceFont(),this._view.provider?this._handleServerReady(null,[this._view.provider]):this._aspectHandle=i.after(this._view,"serverReady",this._handleServerReady.bind(this))},_handleServerReady:function(e){this._view.provider.setPropertyOnServer(this._view,"CharacterWidth",{fontSize:this.FONT_SIZE,fontFamily:this.MONOSPACE_FONT_FAMILY,value:this._monospaceCharacterWidth})},_calculateSingleCharWidthForMonospaceFont:function(){return n.getCharacterWidthForMonoSpace({fontFamily:this.MONOSPACE_FONT_FAMILY,fontSize:this.FONT_SIZE})},destroy:function(){this._aspectHandle&&this._aspectHandle.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(596),i(366),i(2326)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor_peer.Plugins.PeerCustomRowHeight",[n,t],{PLUGIN_NAME:"PEER_CORNER_SPACER_TEXT",constructor:function(e){this._view=e,this._name=this.PLUGIN_NAME,this._initViewListener()},_initViewListener:function(){var e=[i.TABLE_META_DATA_CHANGED];this.initListenersOnView(this._view,e)},_handleTableMetaDataChanged:function(){var e=this._view.getMetaDataStore();e.hasTableModelProperty(this.CORNER_SPACER_PROP)&&this.setCornerSpacerText(e.getTableModelProperty(this.CORNER_SPACER_PROP))},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(288),i(694)],o=i.dj.d(n,(function(e,t,i){return e(null,{PLUGIN_NAME:"COPY",_MenuText:i.CopyFromSelection,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._init()},_init:function(){var e=this._view.getPluginByName("CONTEXT_MENU");this._copyItem=new t({}),this._copyItem.set("text",this._MenuText),this._copyItem.featureID=this.name,this._copyItem.on("click",this.copyRequested.bind(this)),e.addMenuItem(this._copyItem)},copyRequested:function(){this._view._dispatchActionToServer("CopyAction",{},!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(2338)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_peer.plugins.SelectionContextHandler",[i],{PLUGIN_NAME:"SELECTION_CONTEXT",_validOptions:[],_CopyAction:"COPY",_DataTypeConversion:"DATA_TYPE_CONVERSION",_HEADER_MENU:"HEADER_MENU",_Copy:"COPY",currentSelection:null,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._rightClickListener=null,this.currentSelection=null,this._init()},_init:function(){this._tableCreatedListener=this._handleTableCreated.bind(this),this._view.addEventListener("tableCreated",this._tableCreatedListener)},_handleTableCreated:function(){var e=this._handleSelectionChanged.bind(this);this._selectionChangedHandle=this._view._table.on("selectionChanged",e);var i=this;this._view.getPluginByName(this._HEADER_MENU)&&this._view.own(this._view._table.on("headerMenuRequested",(function(e){i._updateSelection(e)}))),this._view.getPluginByName("CONTEXT_MENU")&&(this._rightClickListener=t.before(this._view,"handleContextMenuRequested",this._handleContextMenuRequested.bind(this)))},_handleContextMenuRequested:function(e){var t=this._view._table.getSelection(),i=e.dataRange.columns.end,n=e.dataRange.rows.end,o=this._hasIntersection(t.selectedRows,n),r=this._hasIntersection(t.selectedColumns,i);if(!(o&&r||(r&&-1===n||o&&-1===i))){var a={start:Math.max(n,0),end:-1===n?1/0:n},s={start:Math.max(i,0),end:-1===i?1/0:i};this._view._table.setSelection({selectedRows:[a],selectedColumns:[s]}),this._view._table.setCellFocus([e.dataRange])}this.isEmptyTable()&&(this._validOptions=[])},_hasIntersection:function(e,t){return e.some((function(e){return t>=e.start&&t<=e.end}))},_updateSelection:function(e){var t=e.columnIndex,i=this._view.getDataStore().dataSize;this._view._table.setSelection({selectedRows:[{start:0,end:Math.max(i.rows.end,0)}],selectedColumns:[{start:t,end:t}]})},_handleSelectionChanged:function(e){var t=e.rangeList;this._validOptions=[],this._isSingleColumnSelected(t)&&this._view.getPluginByName(this._DataTypeConversion)&&this.isConversionValid(t[0].columns.start)&&this._validOptions.push(this._DataTypeConversion),this._view.getPluginByName(this._Copy)&&this._hasSelection()&&this._validOptions.push(this._CopyAction)},_hasSelection:function(){var e=this._view._table.getSelection();return e.selectedColumns.length>=1&&e.selectedRows.length>=1&&-1!==e.selectedRows[0].end&&-1!==e.selectedColumns[0].end},getValidOptions:function(){return this._validOptions},_isSingleColumnSelected:function(e){var t=this._view.getDataStore().dataSize.rows.count;return 1===e.length&&e[0].columns.start===e[0].columns.end&&e[0].rows.count>=t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(235),i(382),i(393),i(219),i(209),i(239)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e("variableeditor_peer.Plugins.EditingHandler",[r],{PLUGIN_NAME:"EDIT_HANDLER",_aspectHandler:null,_providerChannel:"",constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,this._aspectHandle=null,this._providerChannel="",this._dataChangeStatusListener=null,this._view.provider?this._handleServerReady(null,[this._view.provider]):this._aspectHandle=i.after(this._view,"serverReady",this._handleServerReady.bind(this)),this._view.editCell=this.handleEdit.bind(this)},handleEdit:function(e,t){if(n.isValid(e)&&n.isValid(t)){var i=this._view.getTable();if(i.getFocusedCell){var r=i.getFocusedCell();if(r.row!==e||r.column!==t){var a=this._view.getDataStore().getViewPortSize(),c=o.createRange(e,e,t,t),d=function(){i.setCellFocus(c).then((function(){i.editCell()}))};l.isRangeInside(a,c[0])?d():this._view.scrollTo(e+1,t+1).then(d())}else i.editCell()}else s.error("Attempted to edit when cellFocus is unavailable")}else s.error("Return valid row,col for edit")},_handleServerReady:function(){var e=this._view.getDataStore();this._providerChannel=e.getDataProviderChannel(),this._dataChangeStatusListener=a.subscribe(this._providerChannel,"handleRemoteEventOnProvider",this),this._remoteEventListener=i.after(this._view,"handleRemoteEvent",this.handleRemoteEventOnView.bind(this),!0)},handleRemoteEventOnView:function(e){"server"===e.data.source&&("error"===e.data.status&&"actionError"===e.data.type&&e.data.message?this.displayErrorMessage(e):"editCell"===e.data.type&&this.handleEdit(e.data.row-1,e.data.column-1))},handleRemoteEventOnProvider:function(e){"server"===e.data.source&&"error"===e.data.status&&9===e.data.eventType&&"dataChangeStatus"===e.data.type&&e.data.message&&this.displayErrorMessage(e)},displayErrorMessage:function(e){var t=e.data.errorType||"error";e.data.title?n.displayErrorMessage(e.data.message,e.data.title,t):n.displayErrorMessage(e.data.message,null,t)},destroy:function(){this._dataChangeStatusListener&&a.unsubscribe(this._providerChannel,"handleRemoteEventOnProvider",this),this._remoteEventListener&&this._remoteEventListener.remove(),this._dataChangeStatusListener=null,this._remoteEventListener=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2351)],o=i.dj.d(n,(function(e,t){return e([t],{PLUGIN_NAME:"ROW_HEADER_EDITING",HEADER_EVENT_NAME:"rowHeaderUpdated",ERROR_HANDLER_NAME:"ErrorDuplicateRowHeader",MODEL_PROPERTY_NAME:"RowModelProperty",_getModelPropertyValue:function(e){return{row:e.rowIndex,property:"RowName",value:e.value}},_handleRevert:function(e){var t=this._view.getMetaDataStore().getRowModelProperty("RowName",e.data.index),i={rowIndex:e.data.index,value:t};this._handleHeaderUpdate(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(203),i(236),i(694),i(2350)],o=i.dj.d(n,(function(e,t,i,n,o){return t([o],{PLUGIN_NAME:"COLUMN_HEADER_EDITING_WITH_VALIDATION",_handleHeaderUpdate:function(t){var o=t.value;this._isValidHeaderName(o)&&this._isValidHeaderSyntax(o)?this.inherited(arguments):e.displayErrorMessage(i.substitute(n.invalidHeaderName,{varName:"'"+o+"'"}))},_isValidHeaderName:function(e){return e.length>0&&e.length<=64},_isValidHeaderSyntax:function(e){return/^[a-zA-Z][a-zA-Z0-9_]*$/.test(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2321),i(2352)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_peer.Plugins.RemoteMultiRowSelection",[i,t],{PLUGIN_NAME:"REMOTE_MULTI_ROW_SELECTION"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2323),i(2352)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_peer.Plugins.RemoteSingleRowSelection",[i,t],{PLUGIN_NAME:"REMOTE_SINGLE_ROW_SELECTION"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(317),i(366),i(515),i(506)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("variableeditor_peer.Plugins.HeaderEditingHandler",[],{PLUGIN_NAME:"HEADER_CONTEXT_HANDLER",_contextMenu:null,_aspectHandle:null,constructor:function(e){this._view=e,this.name=this.PLUGIN_NAME,e.domNode?this._createContextMenu():this._aspectHandle=i.after(e,"postCreate",this._createContextMenu.bind(this))},_createContextMenu:function(){var e=this._view.id;if(this._contextMenu=new n({targetNodes:["#"+e+" "+a.TABLE_HEADER_COMPONENT_QUERY_CLASS]}),this._view.getMetaDataStore().hasTableModelProperty("ColumnHeaderList"))this._initContextMenuOptions();else{var t,i=this;this._view.addEventListener(o.TABLE_META_DATA_CHANGED,t=function(){i._initContextMenuOptions(),i._view.removeEventListener(o.TABLE_META_DATA_CHANGED,t)})}},_initContextMenuOptions:function(){var e=this._view.getMetaDataStore(),t=e.getTableModelProperty("ColumnHeaderList"),i=e.getTableModelProperty("ColumnEventList");t.forEach((function(t,n){var o=i[n],a=0===n||e.getTableModelProperty(o),s=new r({text:t,disabled:0===n,closeMenuOnClick:!0,checked:a,tag:o});s.tableMetaDataProp=o,this._contextMenu.addChild(s),s.on("change",this._handleHeaderMenuItemToggled.bind(this))}),this)},_handleHeaderMenuItemToggled:function(e){var t=e.detail.widget;if(t){var i=t.tableMetaDataProp,n=e.mwEventData.newValue;this._view.provider.setPropertyOnServer(this._view,"TableModelProperty",{property:i,value:n})}},destroy:function(){this._aspectHandle&&this._aspectHandle.remove(),this._contextMenu&&this._contextMenu.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(236),i(278),i(846),i(2336),i(694)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("variableeditor_peer.plugins.ContextServiceDataTypeConversion",[r],{PLUGIN_NAME:"CONTEXT_SERVICE_DATA_TYPE_CONVERSION",FEATURE_ID:"DataTypeConversionGroup",CONTEXT_ID:"TableSingleColumnContext",ACTION_NAME:"DataTypeConversionAction",_init:function(){this._createDataTypeMenuManager(),this._menuProvider=this._view.allArgs.contextMenuProvider,this._aspectHandles.push(t.before(this._menuProvider,"populateContextMenu",this._handleDTConversionMenuRequested.bind(this)))},_handleDTConversionMenuRequested:function(e){if(e.indexOf(o.SINGLE_COLUMN_CONTEXT)>-1&&this._view.focused){var t=this._view.getSelection();if(t.selectedColumns&&t.selectedColumns.length>0){var i=t.selectedColumns[0].start,n=this._menuProvider.getMenuItemForMatchContext(this.CONTEXT_ID),r=n&&n.find(function(e){return e.featureId===this.FEATURE_ID}.bind(this));r&&(this._handleConversionMenuUpdate(i,r),r.setDisabledState(!this.isConversionValid(i)))}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2282),i(530),i(203),i(204),i(212),i(369),i(239)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i("datatoolsservices.Data.PeerNodeDataProvider",[e],{constructor:function(e,t){this._size=null,this._peerDataNode=null,e&&t&&this.inititalizePeerNode(e,t)},inititalizePeerNode:function(e,t){var i=this;this.channel=e,this.peerNodeId=t,this.getPeerNode().then((function(o){if(i._peerDataNode=o,!o){throw new Error("No peer node found for channel: "+e+" with ID: "+t)}o&&o.hasProperty&&o.hasProperty("Size")&&i.sizeHandler(),i.removePeerNodeListeners(),i._propertySetListener=o.addEventListener("propertySet",n.hitch(i,"_handleServerPropertySet")),i._peerEventListener=o.addEventListener("peerEvent",n.hitch(i,"_handlePeerEvent")),i.getSize()}))},bind:function(){this._notifyOfExisitingProperties()},getPeerNode:function(){var e=new o((function(){}));if(this._peerDataNode)e.resolve(this._peerDataNode);else{var t=this,i=this._getPeerNode(this.channel,this.peerNodeId);i||e.resolve(null),i.then((function(i){t._peerDataNode=i,e.resolve(i)}))}return e},_getPeerNode:function(e,t){var i=new o((function(){})),n=r.getInstance(e);return n?(n.hasRoot()?i.resolve(n.getById(t)):n.addEventListener("rootSet",(function(e){i.resolve(n.getById(t))})),n.setSyncEnabled(!0)):i.resolve(null),i},_notifyOfExisitingProperties:function(){var e=this;this.getPeerNode().then((function(t){var i=t.getProperties();if(i)for(var n in i)if(i.hasOwnProperty(n)){var o={type:"propertySet",data:{key:n,newValue:i[n]}};e._handleServerPropertySet(o)}}))},_handleSetDataStatus:function(e){var t=e.data.status,i=e.data,n=e.data.row,o=n,r=e.data.column,s=r;try{var l={status:t,range:a.range().setRows(n,o).setColumns(r,s),data:i};this._setDataPromiseBuffer.length>0?this._setDataPromiseBuffer=this._flushRequestPromiseBuffer(this._setDataPromiseBuffer,l):this._on.emit("dataChangeStatus",l)}catch(e){console.log(e)}},_handleServerSetData:function(e){if(e&&e.data){var t=this._getParsedData(e.data),i=Math.max(e.data.fullStartRow,0),n=Math.max(e.data.fullEndRow,0),o=Math.max(e.data.fullStartColumn,0),r=Math.max(e.data.fullEndColumn,0),s=Math.max(e.data.startRow,0),l=Math.max(e.data.startRow+e.data.rowCount-1||0,-1),c=Math.max(e.data.startColumn,0),d=Math.max(e.data.startColumn+e.data.columnCount-1||0,-1);try{var u={fullRange:a.range().setRows(i,n).setColumns(o,r),partialData:{range:a.range().setRows(s,l).setColumns(c,d),data:t}};this._getDataPromiseBuffer.length>0?this._getDataPromiseBuffer=this._flushRequestPromiseBuffer(this._getDataPromiseBuffer,u):this._on.emit("dataChanged",u)}catch(e){console.log(e)}}},_handlePeerEvent:function(e){if(e&&e.data&&e.data.type)if("setData"===e.data.type&&"client"!==e.originator)this._handleServerSetData(e);else if("dataChangeStatus"===e.data.type)this._handleSetDataStatus(e);else if("clearBuffer"===e.data.type){var t=a.range().setRows(e.data.startRow-1,e.data.endRow-1).setColumns(e.data.startColumn-1,e.data.endColumn-1),i=JSON.parse(e.data.CurrentViewport),n=Math.max(i.startRow-1,0),o=Math.max(i.endRow-1,-1),r=Math.max(i.startColumn-1,0),s=Math.max(i.endColumn-1,-1),l=a.range().setRows(n,o).setColumns(r,s);this._on.emit("clearBuffer",{rangeList:[t],serverViewPortRange:l})}else"clearMetaDataBuffer"===e.data.type?this._on.emit("clearMetaDataBuffer",{metaDataType:e.data.metaDataType,rows:e.data.rows,columns:e.data.columns}):("setCellMetaData"===e.data.type&&"client"!==e.originator||"setTableMetaData"===e.data.type&&"client"!==e.originator||"setRowMetaData"===e.data.type&&"client"!==e.originator||"setColumnMetaData"===e.data.type&&"client"!==e.originator)&&this._handleServerMetaDataSet(e)},_getParsedData:function(e){var t,i=e.startRow||0,n=e.endRow||0,o=e.startColumn||0,r=e.endColumn||0,a=e.data||null,s=n-i+1,l=r-o+1;try{t=new Array(s);for(var c=0;c<t.length;c++)t[c]=new Array(l);a=this._cleanJSONDataFromServer(a,s,l);for(var d=0;d<s;d++)for(var u=a[d],h=0;h<l;h++){var p="NaN",f=Array.isArray(u)?u[h]:u;p=JSON.parse(f).value;try{var g=JSON.parse(p);"NaN"!==p&&Array.isArray(g)&&g[0].value&&(p=(p=g).map((function(e){return e})))}catch(e){}t[d][h]=p}}catch(e){return null}return t},_cleanJSONDataFromServer:function(e,t,i){return(e=this._convertVectorJSONDataToArray(e,t,i)).forEach((function(e,t,i){Array.isArray(e)?e.forEach((function(e,t,i){i[t]=e.value?e.value:e})):i[t]=e.value})),e},_convertVectorJSONDataToArray:function(e,t,i){return 1===e.length||1===t?[e]:1===i?e=e.map((function(e){return[e]})):e},_flushMetaDataQueue:function(e,t){this._getMetaDataPromiseBuffer.length>0&&(this._getMetaDataPromiseBuffer=this._flushRequestPromiseBuffer(this._getMetaDataPromiseBuffer,e))},_handleServerMetaDataSet:function(e){try{var t={type:e.data.metaDataType,metaData:e.data.properties,startRow:e.data.startRow,endRow:e.data.endRow,startColumn:e.data.startColumn,endColumn:e.data.endColumn,fullStartRow:e.data.fullStartRow,fullEndRow:e.data.fullEndRow,fullStartColumn:e.data.fullStartColumn,fullEndColumn:e.data.fullEndColumn};this._getMetaDataPromiseBuffer.length>0?this._flushMetaDataQueue(t):this._on.emit("metaDataChanged",t)}catch(e){console.log(e)}},_handleServerPropertySet:function(e){if(e&&e.data)try{switch(e.data.key){case"Size":this.sizeHandler()}}catch(e){console.log(e)}},sizeHandler:function(){if(this._peerDataNode){var e=this._peerDataNode.getProperty("Size"),t=a.range().setRows(0,e.rowCount-1).setColumns(0,e.columnCount-1);this.dataSize=t;try{var i={size:t};this._getSizePromiseBuffer.length>0?this._getSizePromiseBuffer=this._flushRequestPromiseBuffer(this._getSizePromiseBuffer,i):this._on.emit("dataSizeChanged",i)}catch(e){console.log(e)}}},getSize:function(){var e=this.inherited(arguments);return this.dataSize&&(this.dataSize.rows.count>0||this.dataSize.columns.count>0)?this.sizeHandler():this._sendServerRequest({type:"getSize"}),e},_sendServerRequest:function(e){this.getPeerNode().then((function(t){t&&t.dispatchEvent("peerEvent",t,e,"client")}))},getData:function(e){var t=this.inherited(arguments);return this._sendServerRequest({type:"getData",startRow:e.rows.start,endRow:e.rows.end,startColumn:e.columns.start,endColumn:e.columns.end}),t},setViewportRange:function(e){this._sendServerRequest({type:"setViewportRange",startRow:e.rows.start,endRow:e.rows.end,startColumn:e.columns.start,endColumn:e.columns.end})},setData:function(e,t){var i=this.inherited(arguments),n=t[0][0];try{this._sendServerRequest({type:"setData",data:n,row:e.rows.start+1,column:e.columns.start+1})}catch(e){console.log(e)}return i},getMetaData:function(e){var t=this.inherited(arguments);return e||(e=a.range()),this._sendServerRequest({type:"getMetaData",startRow:e.rows.start,endRow:e.rows.end,startColumn:e.columns.start,endColumn:e.columns.end}),t},setMetaData:function(e,t,i){try{this.getPeerNode().then((function(n){n.setProperty(e,{property:t,value:i})}))}catch(e){console.log(e)}},removePeerNodeListeners:function(){this._peerDataNode&&(this._propertySetListener&&this._peerDataNode.removeEventListener("propertySet",this._propertySetListener),this._peerEventListener&&this._peerDataNode.addEventListener("peerEvent",this._peerEventListener))},destroy:function(){this.removePeerNodeListeners()},on:function(e,t){return this._on.on(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(239),i(982)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor.StructViewModel",[n],{_VIEWTYPE:"struct",VIEW_CONTEXT_PLUGIN:"VIEW_CONTEXT_HANDLER",getType:function(){return this._VIEWTYPE},focus:function(){if(this.inherited(arguments),this._table){if(this.getDataStore().dataSize.rows.count>0&&this._table.getSelection){let e=this._table.getSelection();e&&e.length>0&&this._table.scrollTo(e[0])}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1187),i(2355)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor_peer.PeerTableViewModel",[t,i],{ROW_HEIGHT:22,constructor:function(e){this._tableStarted=!1},createTable:function(e){this.inherited(arguments)},_setRowHeight:function(){},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(981),i(359),i(206)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor_peer.PeerViewModel",[t],{allArgs:{},peerNode:null,varName:null,init:function(e){this.allArgs={},this.peerNode=null,this.varName=null,e&&(this.peerNode=e.peerNode,this.varName=e.varName,this.allArgs=e,this.viewID=this.peerNode&&this.peerNode.hasProperty("viewID")?this.peerNode.getProperty("viewID"):e.viewID||this.viewID)},setPeerNode:function(e){this.peerNode=e},destroy:function(){this.peerNode=null,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(413),i(2356)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor_peer.PeerUnsupportedViewModel",[n],{textArea:null,peerNode:null,init:function(e){this.inherited(arguments),this.peerNode=e.peerNode,this.allArgs=e,e.peerDocument&&t.add(e.peerDocument.domNode,"unsupportedView")},createView:function(){var e=new i({name:"UnsupportedTextArea_"+this.allArgs.varName,value:"",width:"auto",height:"auto",readOnly:!0,editable:!1});t.add(e.domNode,"UnknownViewerTextArea"),e.startup(),this.textArea=e,this._viewDom=this.textArea.domNode,this.peerNode.addPeerEventListener("setData",(function(t){t.data.data&&t.data.data!==e.value&&e.set("value",t.data.data)})),this.peerNode.dispatchEvent("peerEvent",this.peerNode,{type:"getData"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(413),i(2334),i(2356)],o=i.dj.d(n,(function(e,t,i,n,o){return e("variableeditor_peer.RemoteUnsupportedViewModel",[o,n],{textArea:null,propertyObj:null,init:function(e){this.inherited(arguments),this.allArgs=e,this.dataAttributes=e.dataAttributes||[],this.viewID=this.getProperty("viewID"),e.provider&&e.provider.isReady()&&this.serverReady(e.propertyObj,e.provider),e.peerDocument&&t.add(e.peerDocument.domNode,"unsupportedView")},createView:function(){this.inherited(arguments);var e=new i({name:"UnsupportedTextArea_"+this.allArgs.varName,value:"",width:"auto",height:"auto",readOnly:!0,editable:!1});t.add(e.domNode,"UnknownViewerTextArea"),e.startup(),this.textArea=e,this._viewDom=this.textArea.domNode,this.provider&&this.provider.isReady()&&this.provider.dispatchEventToServer(this,{type:"getData"})},getProperty:function(e){var t;return this.propertyObj&&this.propertyObj.hasOwnProperty(e)&&(t=this.propertyObj[e]),t||this.inherited(arguments)},handleRemoteEvent:function(e){"setData"===e.data.type&&e.data.data&&e.data.data!==this.textArea.value&&(this.textArea.set("value",e.data.data),t.add(this.domNode,"hasData"))},serverReady:function(e,t){this.provider=t,this.propertyObj=e,this.provider.setupViewListeners(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(206),i(225),i(213),i(693),i(2357)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l={};return e("variableeditor_peer.PeerPopoutHandlerWidget",[s],{width:600,height:400,defaultChannel:"/VariableEditor",testID:"veTestPopoutDialog",className:a.POP_OUT_DIALOG_CLASS,contentClassName:a.POP_OUT_CONTENT_DIALOG_CLASS,_SCALING_FACTOR_HEIGHT:22,_SCALING_FACTOR_CLASS:a.SCALING_FACTOR_CLASS,_SCALING_FACTOR_PROP:a.SCALING_FACTOR_PROP,constructor:function(e){this.titleString=e.titleString||"",this.ID=this.docID=e.docID||"",this.channel=e.channel||this.defaultChannel,this.createNewDialog=!0,this._initialized=!1},init:function(){if(l[this.docID])this.createNewDialog=!1;else{this.inherited(arguments);var e=this._getClientDocument();if(!this._containerBuilt&&e){this._constructContainer(this.docID,e.domNode);var t=e.getViews(),o=null;t.forEach((function(t){t.type===a.VARIABLE_VIEW_TYPE&&(o=t,e.parentViewToDocument(o))}),this),e.showSummaryBar&&i.destroy(e.summaryBar.domNode),this._initResize(e,o)}l[this.docID]=!0}var r=this;n(this.domNode,"dialogShown",(function(e){var t=r._getClientDocument();t&&(r._emitStartup(t),r._addScalingFactor(t))}))},_addScalingFactor:function(e){var i=e.getViews()[0],n=i.peerNode;n&&n.hasProperty(this._SCALING_FACTOR_PROP)&&(t.add(i.domNode,"WithScalingFactor"),this._handleScalingFactor(i))},_emitStartup:function(e){if(this.inherited(arguments),!this._initialized){var t=e.getViews(),i=null;t.forEach((function(e){i||e.type!==a.VARIABLE_VIEW_TYPE||(i=e)})),this._initResize(e,i)}this._resizeDocument(e)},_initResize:function(e,t){if(e.resizeBehaviour="container",t&&t.peerNode){var i=t.peerNode;if(this._sizeExists(i))e.resize();else{var n,o=this;i.addEventListener("propertySet",n=function(t){t.data&&"Size"===t.data.key&&o._sizeExists(i)&&(e.resize(),i.removeEventListener("propertySet",n))})}this._initialized=!0}},_getClientDocument:function(){return this.manager.documents&&this.manager.documents[this.docID]?this.manager.documents[this.docID]:null},_sizeExists:function(e){return e.hasProperty("Size")&&e.getProperty("Size").rowCount>0},resize:function(){var e=this._getClientDocument();e&&e.resize&&e.resize()},close:function(){this.manager.closeVariable(this.docID,this.workspace),delete l[this.docID]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(292),i(714),i(843),i(1561)],o=i.dj.d(n,(function(e,t,i,n,o){return e("datatoolsservices.ContextMenuService.ContextMenuService",[],{_DEFAULT_CONTEXT_ID:"variable",_DEFAULT_CURRENT_CONTEXT:"currentContext",_DEFAULT_PARENT_APP_ID:"motw",_DEFAULT_TOOLSTRIP_TAG:"motwToolstrip",_DEFAULT_TOOLSTRIP_ID:"toolstripId",_DEFAULT_UIBUILDER_TYPE:"Toolstrip",constructor:function(e){this.contextUpdateManager=null,this.contextUpdateChannel=null,this.contextManager=e.contextManagerInstance||null,this.channel=e.channel||"",this.defaultContextId=e.defaultContextId||this._DEFAULT_CONTEXT_ID,this.contextType=e.contextType||this._DEFAULT_CURRENT_CONTEXT,this.currentContext=[],this.init()},init:function(){if(null===this.contextManager){var e={parentAppId:this._DEFAULT_PARENT_APP_ID,toolstripTag:this._DEFAULT_TOOLSTRIP_TAG,toolstripId:this._DEFAULT_TOOLSTRIP_ID,uiContainer:null,qabContextualControlsActionMap:{}};t.getInstance({actionService:null}).create({tag:this._DEFAULT_TOOLSTRIP_TAG,type:this._DEFAULT_UIBUILDER_TYPE}),this.contextManager=i.getInstance(e)}this.contextUpdateChannel="/ML"+this.channel+"/ContextUpdate",n.setContextManager(this.channel,this.contextManager),this._initContextManager()},_initContextManager:function(){!this.contextUpdateManager&&this.contextManager&&(this.contextUpdateManager=new o({defaultContextId:this.defaultContextId,contextUpdateChannel:this.contextUpdateChannel,managerChannel:this.channel,contextManagerInstance:this.contextManager,contextType:this.contextType}))}})}),e,t),e.exports=o},function(e,t){e.exports='[\n {\n "Keyset":{\n "Container":["table", "timetable"],\n "Datatype":"",\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["HEADER_MENU", "ROW_HEADERS", "SORT", "DOUBLE_CLICK_HANDLER", "ARRAY_VIEW_CONTEXT_HANDLER", "TABLE_CONTEXT_BASED_PLAID_SELECTION",\n "COLUMN_RESIZE_PAGED", "COLUMN_FILTER", "CLEAN_CATEGORIES", "CONTEXT_MENU", "CONTEXT_SERVICE_DATA_TYPE_CONVERSION",\n "DATA_TYPE_CONVERSION", "STRING_DISPLAY", "PEER_PLAID_SELECTION", "CELL_FOCUS", "SELECTION_CONTEXT", "SPARKLINE_SCROLL_POSITION",\n "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "",\n "Datatype": "",\n "Context": "UIVariableEditor"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": []\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "",\n "Datatype": "",\n "Context": "UIVariableEditor",\n "DataAttributes": ["isND"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": []\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "",\n "Datatype": "",\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty", "isRowOrColumnVector", "isUnsupported"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": []\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "",\n "Datatype": "",\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty", "isUnsupported"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": []\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "",\n "Datatype": "",\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar", "isUnsupported"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": []\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical"\n ],\n "Datatype": "",\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "struct",\n "object"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteStructViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["CELL_FOCUS", "EDIT_HANDLER", "LIGHT_WEIGHT_VIEW",\n "DOUBLE_CLICK_HANDLER", "REMOTE_MULTI_ROW_SELECTION", "COLUMN_RESIZE_PAGED",\n "COLUMN_SORT", "PERCENTAGE_COLUMN_WIDTH", "VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_SELECTION"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "struct"\n ],\n "Datatype":"",\n "Context": "UIVariableEditor",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["HEADER_MENU", "ROW_HEADERS", "SORT", "DOUBLE_CLICK_HANDLER",\n "COLUMN_RESIZE_PAGED", "COLUMN_FILTER", "CLEAN_CATEGORIES", "CONTEXT_MENU",\n "DATA_TYPE_CONVERSION", "STRING_DISPLAY", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "SELECTION_CONTEXT"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "string",\n "datetime"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "string",\n "datetime"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "string",\n "datetime"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT",\n "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT",\n "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT",\n "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "object"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "char"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "char",\n "Datatype": "",\n "Context": "UIVariableEditor",\n "DataAttributes": ["isUnsupported"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": []\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "char",\n "Datatype": "",\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "object",\n "Datatype": "",\n "Context": "UIVariableEditor",\n "DataAttributes": ["isUnsupported"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": []\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT","INFINITE_GRID",\n "ARRAY_VIEW_CONTEXT_HANDLER"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT","INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "EDIT_HANDLER", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["HEADER_MENU", "ROW_HEADERS", "SORT", "DOUBLE_CLICK_HANDLER",\n "COLUMN_RESIZE_PAGED", "COLUMN_FILTER", "CLEAN_CATEGORIES", "CONTEXT_MENU",\n "DATA_TYPE_CONVERSION", "STRING_DISPLAY", "PEER_PLAID_SELECTION", "CELL_FOCUS", "SELECTION_CONTEXT", "SPARKLINE_SCROLL_POSITION",\n "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset": {\n "Container": ["table", "timetable"],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["HEADER_MENU", "ROW_HEADERS", "SORT", "DOUBLE_CLICK_HANDLER",\n "COLUMN_RESIZE_PAGED", "COLUMN_FILTER", "CLEAN_CATEGORIES", "CONTEXT_MENU",\n "DATA_TYPE_CONVERSION", "STRING_DISPLAY", "PEER_PLAID_SELECTION", "CELL_FOCUS", "SELECTION_CONTEXT",\n "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell",\n "object",\n "struct"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION", "EDIT_HANDLER",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell",\n "object",\n "struct"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION", "EDIT_HANDLER",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT",\n "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION", "EDIT_HANDLER",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION", "EDIT_HANDLER",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "INFINITE_GRID"\n ]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset":{\n "Editor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": [\n "logical"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "logical"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "string",\n "char"\n ],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/StringEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "datetime"\n ],\n "Datatype": [\n "datetime"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "string",\n "char"\n ],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/StringEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset": {\n "Container": [\n "string",\n "char"\n ],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor": "rendererseditors/mwTableEditors/StringEditor",\n "InPlaceEditor": "",\n "CellRenderer": "rendererseditors/mwTableRenderers/TextRenderer",\n "EditorConverter": ""\n }\n },\n {\n "Keyset":{\n "Container": [\n "datetime"\n ],\n "Datatype": [\n "datetime"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "duration",\n "calendarDuration"\n ],\n "Datatype": [\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Datatype": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/ComboBoxEditorProvider",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Datatype": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/ComboBoxEditorProvider",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset": {\n "Container": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Datatype": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor": "rendererseditors/mwTableEditors/ComboBoxEditorProvider",\n "InPlaceEditor": "",\n "CellRenderer": "rendererseditors/mwTableRenderers/PlainTextRenderer",\n "EditorConverter": ""\n }\n },\n {\n "Keyset":{\n "Container": [\n "duration",\n "calendarDuration"\n ],\n "Datatype": [\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype":\n [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "object"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype":\n [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "object"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["TimeColumn"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset": {\n "Container": ["table", "timetable"],\n "Datatype": [\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableCharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/ComboBoxEditorProvider",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table"],\n "Datatype": [\n "datetime"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset": {\n "Container": ["table"],\n "Datatype": [\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableCharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/ComboBoxEditorProvider",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": ""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer",\n "HeaderEditor": "",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedSpanRenderer",\n "HeaderEditor": "",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer",\n "HeaderEditor": "",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer",\n "HeaderEditor": "",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextSpanRenderer",\n "HeaderEditor": "",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "HeaderEditor": "",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/IconHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "HeaderEditor": "",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/IconHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "default",\n "categorical",\n "nominal",\n "ordinal",\n "mixed"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "HeaderEditor": "",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/IconHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "char",\n "string"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "HeaderEditor": "",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/IconHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "UIVariableEditor"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "logical"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "UIVariableEditor",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n }\n]\n'},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(206),i(214),i(225),i(213),i(693),i(2357)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c={};return e("variableeditor_peer.RemotePopoutHandlerWidget",[l],{width:600,height:400,defaultChannel:"/VariableEditor",testID:"veTestPopoutDialog",className:s.POP_OUT_DIALOG_CLASS,contentClassName:s.POP_OUT_CONTENT_DIALOG_CLASS,_SCALING_FACTOR_HEIGHT:22,_SCALING_FACTOR_CLASS:s.SCALING_FACTOR_CLASS,_SCALING_FACTOR_PROP:s.SCALING_FACTOR_PROP,constructor:function(e){this.titleString=e.titleString||"",this.ID=this.docID=e.docID||"",this.channel=e.channel||this.defaultChannel,this.createNewDialog=!0,this._initialized=!1},init:function(){if(c[this.docID])this.createNewDialog=!1;else{this.inherited(arguments);var e=this._getClientDocument();if(!this._containerBuilt&&e){this._constructContainer(this.docID,e.domNode);var t=e.getViews(),o=null;t.forEach((function(t){t.type===s.VARIABLE_VIEW_TYPE&&(o=t,e.parentViewToDocument(o))}),this),e.showSummaryBar&&(i.destroy(e.summaryBar.domNode),t.forEach((function(e){e.domNode&&e.domNode.classList.remove(s.HAS_SUMMARY_BAR)}))),this._initResize(e,o)}c[this.docID]=!0}var r=this;n(this.domNode,"dialogShown",(function(e){var t=r._getClientDocument();t&&(r._emitStartup(t),r._addScalingFactor(t))}))},_addScalingFactor:function(e){var i=e.getViews()[0],n=i.propertyObj;n&&n.hasOwnProperty(this._SCALING_FACTOR_PROP)&&(t.add(i.domNode,"WithScalingFactor"),this._handleScalingFactor(i))},_emitStartup:function(e){if(this.inherited(arguments),!this._initialized){var t=e.getViews(),i=null;t.forEach((function(e){i||e.type!==s.VARIABLE_VIEW_TYPE||(i=e)})),this._initResize(e,i)}this._resizeDocument(e)},_initResize:function(e,t){if(e.resizeBehaviour="container",t&&t.propertyObj){var i=t.propertyObj;this._sizeExists(i)?e.resize():this.sizeChangedListener=o.after(t,"handlePropertySet",this.handlePropertySet.bind(this,i,e),!0),this._initialized=!0}},handlePropertySet:function(e,t,i){i.data&&"Size"===i.data.key&&this._sizeExists(e)&&(t.resize(),this.sizeChangedListener.remove())},_getClientDocument:function(){return this.manager.documents&&this.manager.documents[this.docID]?this.manager.documents[this.docID]:null},_sizeExists:function(e){return e.hasOwnProperty("Size")&&e.Size.rowCount>0},resize:function(){var e=this._getClientDocument();e&&e.resize&&e.resize()},close:function(){this.manager.closeVariable(this.docID,this.workspace),delete c[this.docID]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(238),i(204),i(214),i(227),i(210),i(238),i(276),i(1186),i(366),i(596),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e("variableeditor_peer.RemoteDocumentWidget",[s,l,d],{init:function(e){var t=this;e&&(t.userContext=this.userContext||e.userContext||"");var i=e.propertyObj;i&&(t.varName=e.varName,t.varSize=e.displaySize,t.size=e.size,t.varType=e.varType,t.varDocID=i.docID,t.userContext=i.hasOwnProperty("userContext")?i.userContext:t.userContext,t.workspace=i.hasOwnProperty("workspace")?i.workspace:"debug"),this.inherited(arguments),t.summaryBar&&e.showSummaryBar&&(t.summaryBar.setName(t.varName),t.summaryBar.setSize(t.varSize),t.summaryBar.setType(t.varType),t.summaryBar.setSecondaryType(e.secondaryType),t.summaryBar.setStatus(e.secondaryStatus)),this._addFocusListeners()},_addFocusListeners:function(){var e=this;this.onFocus=function(){e.manager&&e.manager.setFocusedDocument(e),r.add(e.domNode,"focused")},this.onBlur=function(){e.manager&&e.manager.removeFocusedDocument(e,!1),r.remove(e.domNode,"focused"),e.domNode.contains(document.activeElement)&&document.activeElement.blur()}},handlePropertySet:function(e){if(e&&e.data){var t=e.data.key,i=e.data.newValue;switch(t){case"displaySize":this.varSize=i,this.summaryBar&&this.summaryBar.setSize(this.varSize);break;case"type":this.summaryBar&&this.summaryBar.setType(i);break;case"secondaryType":this.summaryBar&&this.summaryBar.setSecondaryType(i);break;case"secondaryStatus":this.summaryBar&&this.summaryBar.setStatus(i);break;case"dataAttributes":this._updateDom();var n=this._getDataAttributes(),o=this.getViews()[0];o&&o.updateDataAttributes&&o.updateDataAttributes(n)}}},createViewOnInit:function(e){e.viewID&&!this.getViews().find((function(t){return t.viewID===e.viewID}))&&this.inherited(arguments)},_initializeListenersOnView:function(e){var t=[c.SIZE_CHANGED,c.VIEW_RENDERING,c.VIEW_RENDERED,c.DOUBLE_CLICK_ON_METADATA_CELL];this.initListenersOnView(e,t),this._updateCssCacheListener=this._removeDataFormatClass.bind(this),e.addEventListener("updateCssCache",this._updateCssCacheListener)},handlePropertySetOnView:function(e,t){t&&t.data&&"DisplaySize"===t.data.key&&this.summaryBar&&t.data.newValue&&(this.varSize=t.data.newValue.displaySize,this.summaryBar.setSize(this.varSize))},_handleSizeChanged:function(e){if(!this.getViews().length>0)u.warn("No Views exist for the remote document");else{if(this.summaryBar&&this.getViews()[0].getPluginByName("COLUMN_FILTER")){var t=e.data.actualSize.rows.count,i=this.summaryBar.domNode.getElementsByClassName("filterSummaryData")[0];t<this.rows?(i.innerText=["| Reduced from "+this.rows+" rows"],r.replace(i,"filterSummaryData show")):r.replace(i,"filterSummaryData hide")}this.resize()}},_handleViewRendering:function(e){},_handleViewRendered:function(e){},_handleDoubleClickOnMetaDataCell:function(e){this.dispatchEvent(c.DOUBLE_CLICK_ON_METADATA_CELL,this,e.data,this.workspace),this.provider&&(e.data.type=c.DOUBLE_CLICK_ON_METADATA_CELL,this.provider.dispatchEventToServer(this,e.data))},focus:function(e){if(!1!==e&&this.id){var i=o.byId(this.id);o.isDescendant(t.curNode,i)||t.focus(o.byId(this.id))}this.getViews().forEach((function(t){t.focus&&t.focus(e)}))},blur:function(){this.getViews().forEach(e=>e.blur&&e.blur())},_getMetaSummary:function(){var e=this.summaryBar.FilteredSummary;return r.contains(e,"show")?e.innerText:""},removeView:function(e){this.views[e]&&this._updateCssCacheListener&&(this.views[e].removeEventListener("updateCssCache",this._updateCssCacheListener),this._updateCssCacheListener=null),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2277),i(203),i(630)],o=i.dj.d(n,(function(e,t,i){return t("datatoolsservices.ActionService.PeerActionDataServiceProvider",[],{constructor:function(e){this._mode=e.mode||"ActAsClient",this._namespace=e.channel||"Actions/DefaultNamespace",this._serviceReady=!1,this._startup(),this.__onProviderReady=null},_startup:function(){let e=this,t=i.CPPMF0ViewModel;this._viewModelManager=t.getViewModelManager(this._namespace),this._viewModelManager.addEventListener("rootSet",function(t){let i=t.data.root;e._initListeners(i),e._serviceReady=!0,e.__onProviderReady&&e.__onProviderReady(),i.addEventListener("destroyed",function(){this._viewModelManager.destroy()}.bind(this))}.bind(this))},onReady:function(){return new Promise(e=>{this._serviceReady?e():this.__onProviderReady=e})},_initListeners:function(e){e.addEventListener("childAdded",this._onChildAdded.bind(this)),e.addEventListener("childRemoved",this._onChildRemoved.bind(this));let t=e.getChildren();t.length>0&&t.forEach((function(e){this._onChildAdded({data:{child:e}})}),this)},_onChildAdded:function(t){let i=t.data.child;if(!i.getProperty("id")){let e={source:"client",value:i.getId()};i.setProperty("id",e,"client")}this.onActionAdded({actionID:i.getProperty("id"),actionProps:i.getProperties(),remoteProvider:new e(i)})},_onChildRemoved:function(e){let t=e.data.child;this.onActionRemoved({actionID:t.getProperty("id"),actionProps:t.getProperties()})},handleActionAdded:function(e){let t=e,i=this;this._serviceReady?i._createPeerAction(t):this.getRoot().then((function(e){i._createPeerAction(t)}))},_createPeerAction:function(t){let i=this._getRoot().addChild("Action",t.getProperties());t.setProvider(new e(i))},handleActionRemoved:function(e){e.getProvider().destroy()},onActionAdded:function(e){},onActionRemoved:function(e){},getRoot:function(){let e=this;return new Promise((function(t,i){e._hasRoot()?t(e._getRoot()):e._viewModelManager.addEventListener("rootSet",(function(){t(e._getRoot())}))}))},_getRoot:function(){return this._viewModelManager.getRoot()},_hasRoot:function(){return this._viewModelManager.hasRoot()},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(382),i(203),i(204),i(214),i(239),i(1197)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t("liveeditor.plugin.ExportDataHandler",[],{_DEFAULT_COLUMN_WIDTH:75,_dataAvailable:!1,_metadataAvailable:!1,_prefetchPromiseBuffers:[],_prefetchListenersAdded:!1,_prefetchTimer:null,constructor:function(){this._prefetchPromiseBuffers=[],this._prefetchTimer=null},getMetaSummary:function(){return""},_getExportObject:function(e){var t=this._getExportData(e),n={varName:this._varDoc.varName,varSize:this._varDoc.varSize,varType:this._varDoc.varType,currentSize:this.currentSize};return i.mixin(n,t)},_getExportData:function(e){e=e||{};var t=this._varDoc,i=null,n=null,o=[],r=this.currentSize,a=this.getMetaSummary(),s={columns:0,rows:0};t&&this._tableHasContent()?(this._isSaveLoadUseCaseForExport()?(o=this._getSaveLoadDataForExport(),a=""):(!(o=this._getDataFromDataStore())||o.length<=0)&&(o=this._getSaveLoadDataForExport()),n=o.length<e.maxTableRows||!e.maxTableRows?o.length:e.maxTableRows,i=o[0].length,s.columns=t.columns,s.rows=t.rows):i=Math.min(r.columns.end+1,this._TABLEVIEW_EXPORT_COLUMN_COUNT);var l,c=r.rows.end+1>o.length||!1,d=this._getRowLabelsForExport(n),u=this._getColumnMetaDataForExport(i);this._data.prepopulatedMetaData&&JSON.parse(this._data.prepopulatedMetaData).CellMetaData&&(l=this._getCellMetaDataForExport(n,i));var h=this._getTableMetaDataForExport(),p=!!e.availableWidth&&e.availableWidth/.75,f=this._getCellColors(0,n,0,i),g=this._getHeaderColors(0,i);return{data:o,headers:u.columnHeaders,columnClass:u.columnClass,columnSpan:u.columnSpan,columnWidth:u.columnWidth,cellMetaData:l,tableMetadata:h,rowHeaders:d,columnCount:i,rowCount:n,truncated:c,metaSummary:a,originalSize:s,headerColors:g,cellColors:f,maxWidth:p}},_getHeaderColors:function(e,t){return[]},_getCellColors:function(e,t,i,n){for(var o=[],r=0;r<t;r+=1)o[r]=[];return o},_tableHasContent:function(){return this.currentSize&&this.currentSize.rows.end>=0&&this.currentSize.columns.end>=0},_isDataBufferEmpty:function(){var e=this._getDataStore();return!e||e._dataBuffer.length<=0},_getDataStore:function(){return this._varView&&this._varView.getDataStore()?this._varView.getDataStore():null},_isSaveLoadUseCaseForExport:function(){return this._isSaveLoadUseCase()||!this.isExportReady()||this._isDataBufferEmpty()},_getSaveLoadDataForExport:function(){var e=this._data.savedPrepopulatedData?JSON.parse(this._data.savedPrepopulatedData):this._data.savedData?JSON.parse(this._data.savedData):[];return this._processExportSaveLoadData(e)},_prefetchDataForExport:function(){this._tableHasContent()&&(this._prefetchData(),this._prefetchMetadata()),this._addListenersForHeaderMenuClose()},_prefetchData:function(){var e=this.getCurrentRangeForExport(),t=this._varView.getDataStore(),i=this;this._dataAvailable=!1,this._prefetchPromiseBuffers.some((function(t){return o.isRangeEqual(t,e[0])}))||(this._prefetchPromiseBuffers.push(e[0]),t.getData(e).then((function(e){var t=Array.isArray(e[0])?null:e[0].range;i._handleDataChangedForExport(t)})))},_prefetchMetadata:function(){var e=this.getCurrentRangeForExport(),t=this;this._metadataAvailable=!1,this._varView.getDataStore().getMetaData(e).then((function(){t._metadataAvailable=!0}))},getCurrentRangeForExport:function(){var t=Math.min(this.currentSize.rows.end,this._TABLEVIEW_EXPORT_ROW_COUNT-1),i=Math.min(this.currentSize.columns.end,this._TABLEVIEW_EXPORT_COLUMN_COUNT-1);return e.createRange(0,t,0,i)},_addListenersForHeaderMenuClose:function(){if(!this._prefetchListenersAdded){var e=this;this._headerMenuClosedHandler=n.after(this._varView,"viewContentChanged",(function(){e._dataAvailable=!1,e._prefetchTimer&&clearTimeout(e._prefetchTimer),e._prefetchTimer=setTimeout((function(){e._prefetchDataForExport(),e._prefetchTimer=null}),e._TIMEOUT_FOR_FETCH)})),this._prefetchListenersAdded=!0}},_handleDataChangedForExport:function(e){var t=this;this._prefetchPromiseBuffers.forEach((function(i,n){e&&!o.isRangeEqual(i,e)||(t._dataAvailable=!0,t._prefetchPromiseBuffers.splice(n,1))}))},isExportReady:function(){return this._dataAvailable&&this._metadataAvailable},_getDataFromDataStore:function(){var t=Math.min(this.currentSize.rows.end,this._TABLEVIEW_EXPORT_ROW_COUNT-1),i=Math.min(this.currentSize.columns.end,this._TABLEVIEW_EXPORT_COLUMN_COUNT-1),n=e.createRange(0,t,0,i),o=this._varView.getDataStore(),a=null;return o.getData(n).then((function(e){a=e[0]})),r.processExportData(this._varView,a)},_processExportSaveLoadData:function(e){return e.map((function(e){return e.map((function(e){var t=null;if(Array.isArray(e))t=e.map((function(e){return e.value}));else try{t=JSON.parse(e).value}catch(i){t=e}return t}))}))},_getRowLabelsForExport:function(e){return r.getRowLabelsForExport(this._varView,e)},_getColumnMetaDataForExport:function(e){return r.getColumnMetaDataForExport(this._varView,e)},_getCellMetaDataForExport:function(e,t){return r.getCellMetaDataForExport(this._varView,e,t)},_getTableMetaDataForExport:function(){return r.getTableMetaDataForExport(this._varView)},destroy:function(){this._prefetchTimer&&clearTimeout(this._prefetchTimer),this._prefetchTimer=null,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1564)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){this.paletteRegistryId="RunScriptPalette"},_setupPaletteListeners:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{_currentContext:null,setContext:function(e){this._isValidContext(e)&&(this._currentContext=e)},setSubContext:function(e){this._currentContext&&e&&this._isValidContext(e)&&(Array.isArray(this._currentContext)?this._currentContext.push(e):this._currentContext=this._currentContext+","+e)},getContext:function(){return this._currentContext},_isValidContext:function(e){return Array.isArray(e)||"string"==typeof e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(219),i(6547),i(318)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{executionService:[],context:"",_document:null,enabled:!1,codeObj:[],_CODEPUBCHANNEL:"/DataToolsCodePubChannel/",constructor:function(e){this.executionService=e.executionService,this.context=e.context,this._document=e.document,e.enabled&&(this.enabled=e.enabled),n.subscribe(this._CODEPUBCHANNEL+this.context,"_publishCode",this)},unregister:function(){n.unsubscribe(this._CODEPUBCHANNEL+this.context,"_publishCode",this)},_publishCode:function(e){if(e&&e.data){var t=JSON.parse(e.data);if(!t.pop()){var i=this.executionService;this._document.undoable((function(e){e.appendCommand(new o(i))}))}t[t.length-1]=t[t.length-1].slice(0,-1),this.codeObj=t,this.executionService.showCodeInOutput(this.codeObj)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(318)],o=i.dj.d(n,(function(e){return e(null,{output:null,constructor:function(e){this.output=e},execute:function(){var e=this.output._varView;e&&Object.getOwnPropertyNames(e).length>0&&e.redo()},unexecute:function(){var e=this.output._varView;e&&Object.getOwnPropertyNames(e).length>0&&e.undo()},isSufficientForUndoTask:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){e.exports={disableUpdateCodeTooltip:"対応する table を特定できないため、コードを自動更新できません。<br>コードをクリップボードにコピーし、それをライブ スクリプトに貼り付けてください。",rowTitleText:"行",columnTitleText:"列",viewPortRowText:" 行 ${0}:${1}",viewPortColumnText:" 列 ${0}:${1}",copyPlainTextTruncationInfo:"MATLAB は選択した出力全体をコピーできませんでした。 ",copyPlainTextOnlyRows:"最初の ${0} 行のみがコピーされました",copyPlainTextOnlyColumns:"最初の ${0} 列のみがコピーされました",copyPlainTextRowsAndColumns:"最初の ${0} 行と ${1} 列のみがコピーされました。"}},function(e,t,i){e.exports={disableUpdateCodeTooltip:"由于不能标识对应的表,无法自动更新代码。<br>请将代码复制到剪贴板,然后再将其粘贴到实时脚本中。",rowTitleText:"行",columnTitleText:"列",viewPortRowText:" 行 ${0}:${1}",viewPortColumnText:" 列 ${0}:${1}",copyPlainTextTruncationInfo:"MATLAB 无法复制整个选定输出。 ",copyPlainTextOnlyRows:"仅复制了前 ${0} 行",copyPlainTextOnlyColumns:"仅复制了前 ${0} 列",copyPlainTextRowsAndColumns:"仅复制了前 ${0} 行和 ${1} 列。"}},function(e,t,i){e.exports={disableUpdateCodeTooltip:"해당하는 테이블을 식별할 수 없으므로 코드를 자동으로 업데이트할 수 없습니다.<br>코드를 클립보드에 복사한 후 라이브 스크립트에 붙여 넣으십시오.",rowTitleText:"행",columnTitleText:"열",viewPortRowText:" 행 ${0}:${1}",viewPortColumnText:" 열 ${0}:${1}",copyPlainTextTruncationInfo:"선택한 전체 출력값을 MATLAB이 복사할 수 없습니다. ",copyPlainTextOnlyRows:"처음 ${0}개 행만 복사되었습니다.",copyPlainTextOnlyColumns:"처음 ${0}개 열만 복사되었습니다.",copyPlainTextRowsAndColumns:"처음 ${0}개 행과 ${1}개 열만 복사되었습니다."}},function(e,t,i){e.exports={root:{disableUpdateCodeTooltip:"Unable to automatically update code because the corresponding table cannot be identified.<br>Copy the code to the clipboard and then paste it into your live script.",rowTitleText:"Rows",columnTitleText:"Columns",viewPortRowText:" Rows ${0}:${1}",viewPortColumnText:" Columns ${0}:${1}",copyPlainTextTruncationInfo:"MATLAB was unable to copy the entire selected output. ",copyPlainTextOnlyRows:"Only the first ${0} rows were copied",copyPlainTextOnlyColumns:"Only the first ${0} columns were copied",copyPlainTextRowsAndColumns:"Only the first ${0} rows and ${1} columns were copied."},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t){e.exports='[\n {\n "Keyset":{\n "Container": ["table", "timetable", "cell", "object", "struct"],\n "Datatype": "",\n "Context": "liveeditor,saveload"\n },\n "Valueset":{\n "Editor":"variableeditor_client/TableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": "",\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"variableeditor_client/TableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": "",\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"variableeditor_client/TableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CORNER_SPACER_TEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical",\n "string",\n "categorical",\n "ordinal",\n "nominal",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Datatype":"",\n "Context": "liveeditor,saveload"\n },\n "Valueset":{\n "Editor":"variableeditor_client/ArrayViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "cell"\n ],\n "Datatype":"",\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"variableeditor_client/ArrayViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype":"",\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset":{\n "Editor":"variableeditor_client/TableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical"\n ],\n "Datatype":"",\n "Context": "liveeditor"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["HEADER_MENU", "ROW_HEADERS", "COLUMN_SORT", "STRING_DISPLAY",\n "CUSTOM_ROW_HEIGHT", "LIGHT_WEIGHT_VIEW", "CONTEXT_MENU", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COPY", "SELECTION_CONTEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "string",\n "categorical",\n "ordinal",\n "nominal",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Datatype":"",\n "Context": "liveeditor"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["CUSTOM_ROW_HEIGHT", "LIGHT_WEIGHT_VIEW", "ROW_HEADERS", "CHAR_WIDTH_CALC",\n "CONTEXT_MENU", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COPY", "SELECTION_CONTEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "string"\n ],\n "Datatype": [\n "string"\n ],\n "Context": "liveeditor",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/StringRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype":"",\n "Context": "liveeditor"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["HEADER_MENU", "ROW_HEADERS", "SORT",\n "COLUMN_RESIZE_PAGED", "COLUMN_FILTER", "CLEAN_CATEGORIES", "CONTEXT_MENU",\n "DATA_TYPE_CONVERSION", "STRING_DISPLAY", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COPY", "SELECTION_CONTEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype":"",\n "Context": "liveeditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "COLUMN_RESIZE_PAGED", "CONTEXT_MENU",\n "DATA_TYPE_CONVERSION", "STRING_DISPLAY", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COPY", "SELECTION_CONTEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "struct", "object"],\n "Datatype":"",\n "Context": "liveeditor"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "STRING_DISPLAY",\n "CONTEXT_MENU", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COPY", "SELECTION_CONTEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype":"",\n "Context": "liveeditor",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "STRING_DISPLAY", "PEER_CORNER_SPACER_TEXT",\n "CONTEXT_MENU", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COPY", "SELECTION_CONTEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype":"",\n "Context": "liveeditor",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["CUSTOM_ROW_HEIGHT", "LIGHT_WEIGHT_VIEW", "ROW_HEADERS", "CHAR_WIDTH_CALC",\n "CONTEXT_MENU", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COPY", "SELECTION_CONTEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["object"],\n "Datatype":"",\n "Context": "liveeditor",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS","CONTEXT_MENU", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COPY", "SELECTION_CONTEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":["table", "timetable","cell", "struct", "object"],\n "Datatype":"",\n "Context": "liveeditor,preview"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":["table", "timetable"],\n "Datatype":"",\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":["struct"],\n "Datatype":"",\n "Context": "liveeditor,preview",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CORNER_SPACER_TEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":["cell"],\n "Datatype":"",\n "Context": "liveeditor,preview",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["object"],\n "Datatype":"",\n "Context": "liveeditor,preview",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "liveeditor"\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor"\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["TimeColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "char",\n "string",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "liveeditor"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "liveeditor"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar","TimeColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "char",\n "string",\n "default"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "liveeditor",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,saveload"\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["TimeColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor,saveload"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "char",\n "string",\n "cellstr",\n "categorical",\n "nominal",\n "ordinal",\n "object",\n "default"\n ],\n "Context": "liveeditor,saveload"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "datetime",\n "duration",\n "calendarDuration",\n "uint64"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isScalar","TimeColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "char",\n "string",\n "categorical",\n "nominal",\n "ordinal",\n "default"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default",\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default",\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "liveeditor,saveload",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "liveeditor,preview"\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table","timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ""\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["TimeColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor,preview"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "char",\n "string",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "liveeditor,preview"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "liveeditor,preview"\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar","TimeColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "char",\n "string",\n "default"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "liveeditor,preview",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextSpanRenderer"\n }\n }\n]\n'},function(e,t,i){var n,o;n=[i(203),i(228),i(6554)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(){this.initOptions({showSummaryBar:!1})},createColumnHeader:function(e){var t=this.inherited(arguments);if(e.colSpan>1){var i=e.columnIndex+1,n=i+e.colSpan-1;this._setNodeAttributes(t,{namest:"column"+i,nameend:"column"+n})}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(278),i(1196)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructColumnHeaderContainer:function(){var e=document.createElement("thead"),t=this.constructRowContainer();return e.appendChild(t),e},constructTableBodyContainer:function(){return document.createElement("tbody")},createRowHeader:function(e){var t=this._createHeaderEntry(e.headerContainer,e.headerData);return this._setNodeAttributes(t,{align:this.LEFT_ALIGNMENT}),t},createColumnHeader:function(e){var t=this._createHeaderEntry(e.headerContainer,e.headerData);return this._setNodeAttributes(t,{align:this.CENTER_ALIGNMENT}),t},_createHeaderEntry:function(e,t){var i=e.getElementsByTagName("row"),n={cellData:t,rowContainer:i=i&&i[0]?i[0]:e,isHeader:!0};return this.createCell(n)},constructRowContainer:function(){return document.createElement("row")},createCell:function(e){var i=e.cellData,n=document.createElement("entry"),o=this.getColumnAlignmentStyle(e.columnClass,e.isHeader);this._setNodeAttributes(n,{align:o}),i=this._cleanCellContents(i);var r=null,a=t.isHyperLink(e.columnClass,i);return r=t.isStrong(e.columnClass,i)?this._getStrongXMLNode(e.columnClass,i):a?this._getHyperlinkXMLNode(e.columnClass,i):document.createTextNode(i),n.appendChild(r),e.rowContainer.appendChild(n),n},_getStrongXMLNode:function(e,i){var n=t.getContentFromHTMLCells(e,i),o=document.createElement("emphasis");return this._setNodeAttributes(o,{role:"bold"}),o.appendChild(document.createTextNode(n.textContent)),o},_getHyperlinkXMLNode:function(e,i){var n=t.getContentFromHTMLCells(e,i);"a"!==n.tagName.toLowerCase()&&(n=n.getElementsByTagName("a")[0]);var o=document.createElement("link");return this._setNodeAttributes(o,{"xlink:href":n.href}),o.appendChild(document.createTextNode(n.textContent)),o},createSummaryBar:function(e){},_cleanCellContents:function(e){return t.formatString(e)},createTable:function(e){this._tGroupTag=document.createElement("tgroup");var t=this.getTotalColumnCount(e);return this._setNodeAttributes(this._tGroupTag,{cols:t.columnCount+1,align:"char",colsep:"1",rowsep:"1"}),this._addColumnSpec(t.columnCount),this.inherited(arguments)},constructTableWithHeader:function(e,t){var i=document.createElement("table"),n={rowheader:"firstcol"};return this.options.showBorders||(n.border="none"),this._setNodeAttributes(i,n),this.options.showHeaders&&this._tGroupTag.appendChild(e),this._tGroupTag.appendChild(t),i.appendChild(this._tGroupTag),i},_addColumnSpec:function(e){var t=0,i=document.createDocumentFragment();for(t=0;t<e+1;t+=1){var n="column"+t,o=document.createElement("colspec");this._setNodeAttributes(o,{colname:n,colwidth:"75"}),i.appendChild(o)}this._tGroupTag.appendChild(i)},_setNodeAttributes:function(e,t){var i;for(i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])},addRowContainerToBody:function(e,t){e.appendChild(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6556)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){this.initOptions()},createColumnHeader:function(e){var t=this.inherited(arguments);return t&&e.columnSpan&&t.setAttribute("number-columns-spanned",Math.min(e.columnCount,e.columnSpan)),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1196),i(6557),i(2332),i(357),i(426),i(278)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=500/o.PX_PT_RATIO;return e([t],{borderStyle:null,headerStyle:null,_addHorizontalEllipsis:!1,_tableContainer:null,_rowHeaderWidth:null,_columnCount:null,_DEFAULT_COLUMN_WIDTH:82,createElement:function(e,t){this.borderStyle=this.options.showBorders?i.BORDER_STYLE:null,this.headerStyle=this.options.showBorders?i.HEADER_STYLE:null,this.headerBackgroundColors=e.headerColors,this.cellColors=e.cellColors;var n=r.createFOElement(o.BLOCK);if(this.options.showSummaryBar){var a=this.createSummaryBar(e);n.appendChild(a)}var s=this.inherited(arguments);return n.appendChild(s),e.truncated&&this.options.showEllipsis&&n.appendChild(this._getVerticalEllipsis()),n},_getXMLTag:function(e){return document.createTextNode(e)},createTable:function(e){var t=r.createFOElement(o.BLOCK);this._tableContainer=r.createFOElement("fo:table"),this._rowHeaderWidth=this._computeRowHeaderWidth(e);var n=[i.TABLE_BODY_STYLE,this.borderStyle,i.POSITION_STYLE];this.setStyle(n,this._tableContainer),this.inherited(arguments);var a=null;a=e.columnWidth.length>0?e.columnWidth.slice(0,this._columnCount.columnCount).reduce((function(e,t){return e+t})):82*this._columnCount.columnCount;var s=(this._rowHeaderWidth+a)*o.PX_PT_RATIO;return this._addHorizontalEllipsis&&this.options.showEllipsis&&e.data.length>0&&t.appendChild(this._getHorizontalEllipsis(s)),t.appendChild(this._tableContainer),t},getTotalColumnCount:function(e){var t=n.getTotalColumnCount({rowHeaders:e.rowHeaders,columnSpan:e.columnSpan,columnWidth:e.columnWidth,availableWidth:e.maxWidth||s});return this._columnCount={headerCount:t.headerCount,columnCount:t.columnCount},this._addHorizontalEllipsis=t.addHorizontalEllipsis,this._columnCount},constructTableWithHeader:function(e,t){return e&&this._tableContainer.appendChild(e),this._tableContainer.appendChild(t),this._tableContainer},_getHorizontalEllipsis:function(e){var t=r.createFOElement(o.INLINE),n=r.createFOElement(o.BLOCK),a=r.createHorizontalEllipsisElement(),s=e+4;return a.setAttribute("padding-left",s.toString()+"pt"),n.appendChild(a),t.appendChild(n),this.setStyle([i.HORIZONTAL_ELLIPSIS_STYLE],t),t},_getVerticalEllipsis:function(){return r.createVerticalEllipsisElement()},_createTableColumns:function(e,t){var n;for(n=0;n<t;n+=1){var a=r.createFOElement("fo:table-column");if(0===n)this.setStyle([this.borderStyle,i.HEADER_FONT_STYLE],a),this._setStyleAttribute("column-width",this._rowHeaderWidth.toString()*o.PX_PT_RATIO+"pt",a);else{var s={"column-width":Math.ceil((e.columnWidth[n-1]?e.columnWidth[n-1]:82)*o.PX_PT_RATIO)+"pt"},l=[this.borderStyle,s];this.setStyle(l,a)}this._tableContainer.appendChild(a)}},_computeRowHeaderWidth:function(e){var t=30;return e.rowHeaders&&e.rowHeaders.forEach((function(e){t=Math.min(250,Math.max(t,7.5*e.length))})),t},createTableHeader:function(e,t,n){this._createTableColumns(e,n+1);var o=r.createFOElement("fo:table-header");this.setStyle([i.HEADER_FONT_STYLE,this.headerStyle],o);var a=this.inherited(arguments);return o.appendChild(a),o},createTableBody:function(e,t){this.options.showHeaders||this._createTableColumns(e,t+1);var i=this.inherited(arguments);if(e.data&&0===e.data.length){var n=this.constructRowContainer(),o=r.createFOElement("fo:table-cell");n.appendChild(o),this.addRowContainerToBody(i,n)}return i},constructColumnHeaderContainer:function(){return this.constructRowContainer()},constructRowContainer:function(){var e=r.createFOElement("fo:table-row");return this.setStyle([this.borderStyle],e),e},createRowHeader:function(e){var t={cellData:e.headerData,rowContainer:e.headerContainer,isRowHeader:!0,limit:33},n=this._createCellContainer(t);return this.setStyle([this.borderStyle,i.HEADER_FONT_STYLE,this.headerStyle],n),n},createColumnHeader:function(e){var t={cellData:e.headerData,rowContainer:e.headerContainer,isColumnHeader:!0,columnWidth:e.columnWidth};return this._createCellContainer(t)},constructTableBodyContainer:function(){return r.createFOElement("fo:table-body")},addRowContainerToBody:function(e,t){e.appendChild(t)},createCell:function(e){var t=this._createCellContainer(e);return this.setStyle([i.TABLE_CELL_STYLE],t),t},_createCellContainer:function(e){var t=r.createFOElement("fo:table-cell"),n=r.createFOElement(o.BLOCK),a=e.cellData.toString(),s=(e.columnWidth?e.columnWidth:82)*o.PX_PT_RATIO,l=a===a.toUpperCase()?6.5:5,c=Math.ceil(s/l),d=this._fitTextToCell(a,e.limit||c),u=e.rowNumber,h=e.columnNumber,p=e.cellMetaData&&e.cellMetaData.class?e.cellMetaData.class:e.columnClass,f=this.getColumnAlignmentStyle(p,e.isColumnHeader);if(this._setStyleAttribute("text-align",f,n),e.isColumnHeader||e.isRowHeader){var g=[i.TEXT_STYLE,i.HEADER_TEXT_STYLE];if(e.isColumnHeader&&this.headerBackgroundColors&&this.headerBackgroundColors[h]&&3===this.headerBackgroundColors[h].length){var m={"background-color":"rgb("+this.headerBackgroundColors[h].join(",")+")"};this.setStyle([m],t)}this.setStyle(g,n)}else{var _=[i.CELL_TEXT_STYLE,i.EXCLUSIVE_CELL_TEXT_STYLE,i.TEXT_STYLE];if(this.cellColors&&this.cellColors[u]&&this.cellColors[u][h]&&3===this.cellColors[u][h].length){var v={"background-color":"rgb("+this.headerBackgroundColors[h].join(",")+")"};this.setStyle([v],t)}this.setStyle(_,n)}return n.appendChild(this._getXMLTag(d)),t.appendChild(n),e.rowContainer.appendChild(t),t},_fitTextToCell:function(e,t){Array.isArray(e)&&(e=e.toString());var i=e.replace(/^["'](.*)["']$/,"$1");return e=i.length>t?e.substr(0,t-2).concat("..."):e},createSummaryBar:function(e){var t=r.createFOElement(o.BLOCK),n=e.varName+" = ",a=r.createFOElement(o.BLOCK);a.appendChild(this._getXMLTag(n));var s=r.createFOElement(o.INLINE);return s.appendChild(this._getXMLTag(this.getSummaryContent(e))),this.setStyle([i.INLINE_FONT_STYLE],s),a.appendChild(s),this.setStyle([i.SUMMARY_HEADER_FONT_STYLE],a),t.appendChild(a),t},setStyle:function(e,t){e.length>0&&t&&e.forEach((function(e){var i=null;for(i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}))},_setStyleAttribute:function(e,t,i){i.setAttribute(e,t)}})}),e,t),e.exports=o},function(e,t,i){e.exports={BOLD:{"font-weight":"bold"},TABLE_BODY_STYLE:{"z-index":"1",top:"0","wrap-option":"no-wrap"},POSITION_STYLE:{position:"absolute"},HEADER_STYLE:{"background-color":"#f5f5f5",color:"grey","vertical-align":"middle"},HEADER_TEXT_STYLE:{"start-indent":"2mm","padding-after":"4pt"},CELL_TEXT_STYLE:{"start-indent":"0mm","padding-after":"3pt"},EXCLUSIVE_CELL_TEXT_STYLE:{"linefeed-treatment":"preserve","white-space":"pre"},COLUMN_WIDTH:{"column-width":"75px"},TABLE_CELL_STYLE:{"font-family":"Arial, Helvetica, sans-serif, Arial Unicode MS","font-size":"9pt",margin:"0",padding:"1pt 4pt 1pt 4pt"},TEXT_STYLE:{"display-align":"after","padding-before":"4pt"},HORIZONTAL_ELLIPSIS_STYLE:{"z-index":"2",top:"30in"},BORDER_STYLE:{border:"0.5px solid grey"},INLINE_FONT_STYLE:{"font-size":"9pt","font-style":"normal",color:"#b3b3b3"},HEADER_FONT_STYLE:{"font-family":"Arial, Helvetica, sans-serif, Arial Unicode MS","font-size":"6.75pt"},SUMMARY_HEADER_FONT_STYLE:{"font-family":'Menlo, Monaco, Consolas, "Courier New", monospace',"font-size":"9pt"}}},function(e,t,i){var n,o;n=[i(203),i(6559),i(1197)],o=i.dj.d(n,(function(e,t,i){var n=1;return e([t],{constructor:function(){this.initOptions({showSummaryBar:!1})},createTableHeader:function(e,t,n){this.hasGroupedColumns=i.hasGroupedColumns(e.columnSpan);var o=e.headers;return this.hasGroupedColumns&&(i.repeatWithinArray(e.columnSpan,o,""),i.repeatWithinArray(e.columnSpan.slice(0),e.columnSpan,"")),this.inherited(arguments)},createColumnHeader:function(e){n>1?(this.rowStyle+="\\clmrg",n-=1):this.hasGroupedColumns&&(this.rowStyle+="\\clmgf",n=e.columnSpan),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1196),i(1891)],o=i.dj.d(n,(function(e,t,i){return e([t],{initial_spacer:0,LEFT_ALIGNMENT:"\\ql",RIGHT_ALIGNMENT:"\\qr",CENTER_ALIGNMENT:"\\qc",table_container:"",rowStyle:"",hasGroupedColumns:!1,cellContent:"",bodyContainer:"",createElement:function(e,t){return this.inherited(arguments)},createTable:function(e){var t="\n";return t+=this.inherited(arguments)},getTotalColumnCount:function(e){var t=this.inherited(arguments);return t.headerCount=t.columnCount,t},createTableHeader:function(e,t,i){var n="\n\\trowd\\trgaph20\n";return this.rowStyle="",this.cellContent="",this.inherited(arguments),n+=this.rowStyle+this.cellContent,this._resetRowAndCellContent(),n+"\\row\n"},_resetRowAndCellContent:function(){this.rowStyle="",this.cellContent="",this.initial_spacer=0},constructRowContainer:function(){return""},constructColumnHeaderContainer:function(){return""},createRowHeader:function(e){this.createCell({cellData:e.headerData,rowContainer:e.headerContainer})},createColumnHeader:function(e){var t={cellData:e.headerData,rowContainer:e.headerContainer,isColumnHeader:!0,columnWidth:e.columnWidth};this.createCell(t)},constructTableBodyContainer:function(){return this.bodyContainer},addRowContainerToBody:function(e,t){this.bodyContainer+=t},createTableBody:function(){return this.inherited(arguments),this.bodyContainer},constructTableWithHeader:function(e,t){return e&&this.options.showHeaders?e+t:t},createSummaryBar:function(e){},createRow:function(e){var t="\\trowd\\trgaph20\n";return this.inherited(arguments),t+=this.rowStyle+this.cellContent,this._resetRowAndCellContent(),t+"\\row\n"},createCell:function(e){var t=e.cellData;this.options&&this.options.showBorders&&this._addBorders();var n=e.columnWidth?15*e.columnWidth:1125;this.initial_spacer+=n,this.rowStyle+="\\clvertalc\\cellx"+this.initial_spacer+"\n";var o=e.cellMetaData&&e.cellMetaData.class?e.cellMetaData.class:e.columnClass;this.cellContent+=this.getColumnAlignmentStyle(o,e.isColumnHeader),t=i.getFormattedChars(t);this.cellContent+=" {"+t+"} \\intbl\\cell",this.cellContent+="\n"},_addBorders:function(){var e=["\\clbrdrt","\\clbrdrl","\\clbrdrb","\\clbrdrr"];this.rowStyle+=e.join("\\brdrs")+"\\brdrs\n"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2364),i(2365)],o=i.dj.d(n,(function(e,t,i){return e([t,i],{_createSaveObjectWithPrepopulatedData:function(e){e&&e.data.length>0&&e.data&&(this._data.savedPrepopulatedData=JSON.stringify(e.data))},_getDataForSaveLoad:function(e){return JSON.parse(e)},getSerializableData:function(){var e=this.inherited(arguments),t=this._data.prepopulatedMetaData?JSON.parse(this._data.prepopulatedMetaData):{};return e.metadata=e.metadata||{},t.ColumnMetaData&&this._hasMetaData(t.ColumnMetaData)&&(e.metadata.ColumnModelProperties=JSON.stringify(this._getColumnMetadataForSave(t.ColumnMetaData))),t.RowMetaData&&this._hasMetaData(t.RowMetaData)&&(e.metadata.RowModelProperties=JSON.stringify(t.RowMetaData)),t.CellMetaData&&(Array.isArray(t.CellMetaData)?e.metadata.CellModelProperties=JSON.stringify(t.CellMetaData):e.metadata.CellModelProperties=t.CellMetaData),t.TableMetaData&&Object.keys(t.TableMetaData).length>0&&(e.metadata.TableModelProperties=JSON.stringify(t.TableMetaData)),e},_getColumnMetadataForSave:function(e){var t=[];return e.forEach((function(e){t.push({HeaderName:e.columnHeaderLabels,class:e.columnClass})})),t},_hasMetaData:function(e){return e.find((function(e){return e&&!Array.isArray(e)&&Object.keys(e).length>0}))},_getCellValueFromJSON:function(e){return JSON.parse(e).value},_hasVerticalTruncation:function(e){var t=this.inherited(arguments),i=this._data.dataAttributes||"";return"struct"===this._data.subtype&&i.indexOf("isRowOrColumnVector")>-1&&(t=this._data.columns>this._ROW_TRUNCATION_LIMIT),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6562)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(936),i(348),i(1363),i(1364),i(1887),i(278)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([i],{constructor:function(e){this._embeddedoutputs=e,this._firstVisit=!0},reset:function(){this._firstVisit=!0},getApplicableDomNodeClasses:function(){return["embeddedOutputsVariableMatrixElement"]},enter:function(e,i,s){var l=i.cloneNode(!0);t.convertToInlineStyles(l,i),l=t.removeElementsWithClass(l,".figureWidget");var c=this._embeddedoutputs.getEmbeddedOutputsView().getOutputFromOutputDiv(i);return l=c.getHTMLContent(l,s),this._firstVisit&&e.addCSSToStyle&&(c._data&&a.isTextLikeArrayView(c._data.type,c._data.dataAttributes||"")||e.addCSSToStyle(".variableValue { width: 100% !important; }\n"),e.addCSSToStyle(t.cleanUpCSS(n)),e.addCSSToStyle(t.cleanUpCSS(r)),e.addCSSToStyle(t.cleanUpCSS(o)),this._firstVisit=!1),e.addToBody(l.outerHTML),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6564)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(936),i(348),i(1885)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{_CODEGEN_WIDGET_CLASS:".codeGen",_POPOUT_CLASS:".figurefloatingpalette",constructor:function(e){this._embeddedoutputs=e,this.reset()},getApplicableDomNodeClasses:function(){return["embeddedOutputsVariableTableElement"]},reset:function(){this._firstVisit=!0},enter:function(e,n,r){this._firstVisit&&e.addCSSToStyle&&(e.addCSSToStyle(i.cleanUpCSS(o)),this._firstVisit=!1);var a=i.removeElementsWithClass(n,this._CODEGEN_WIDGET_CLASS),s=a.cloneNode(!0),l=this._embeddedoutputs.getEmbeddedOutputsView().getOutputFromOutputDiv(a).getHTMLContent(s,r);return l=i.removeElementsWithClass(l,this._POPOUT_CLASS),t.place(l,s.firstElementChild,"replace"),s.style.width="calc(100% - 5px)",e.addToBody(s.outerHTML),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6566)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2021),i(2100),i(495)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{_TABULAR_ENVIRONMENT:"tabular",_TABLE_LEFT_JUSTIFIED:"l",_TABLE_CENTERED:"c",_TABLE_RIGHT_JUSTIFIED:"r",_TABLE_VERTICAL_LINE:"|",_TABLE_CELL_SEPARATOR:"&",_TABLE_ROW_END:"\\\\",_TABLE_HORIZONTAL_LINE:"\\hline",_TABLE_MULTI_COLUMN:"multicolumn",_TABLECELL_COLOR_COMMAND:"cellcolor",_TABLE_CELL_RGB_COLOR:"RGB",_OUTPUT_TABLECELL_COMMAND:"mlcell",constructor:function(){},getApplicableTypes:function(){return["table","timetable","struct","cell","object"]},getEnvironment:function(){return"matlabtableoutput"},enter:function(e,t,i){var o=t.getTableData(),r=o.data,a=o.colSpan,s=o.columnCount,l=o.headerColors,c=o.cellColors,d=this._getTableLaTeXString(r,a,l,c),u=this._insertTableColumnFormat(s);u=n.getEscapedOutputText(u),e.addToBody("{\n"),e.openEnvironment(this._TABULAR_ENVIRONMENT,!0),e.addToBody("{"+u+"}"+d+"\n"),e.closeEnvironment(this._TABULAR_ENVIRONMENT),e.addToBody("}\n")},_getTableLaTeXString:function(e,t,i,n){var o=this._TABLE_HORIZONTAL_LINE+"\n",r=e.shift(),a=o+this._insertTableLaTeXColumnHeader(r,t,i);return e.forEach((function(e,t){var i=n?n[t]:[];a+=o+this._insertTableLaTeXRow(e,i)}),this),a+="\n"+this._TABLE_HORIZONTAL_LINE},_insertTableLaTeXColumnHeader:function(e,t,o){var r=[],a=" "+this._TABLE_CELL_SEPARATOR+" ";return e.forEach((function(e,a){e=n.getEscapedOutputText(e),e=i.escapeSpecialCharacters(e,!0);var s=this._insertTableCellColor(o,a>0?a-1:0)+n.wrapInCommand(this._OUTPUT_TABLECELL_COMMAND,e);if(t[a]>1){var l=[t[a].toString(),this._insertTableColumnFormat(1),s].join("}{");s=n.wrapInCommand(this._TABLE_MULTI_COLUMN,l)}r.push(s)}),this),r.join(a)+" "+this._TABLE_ROW_END+" "},_insertTableCellColor:function(e,t){var i="",o=[];return e&&e[t]&&3===e[t].length&&(o=e[t].join(","),i=n.wrapInCommand(this._TABLECELL_COLOR_COMMAND,o,this._TABLE_CELL_RGB_COLOR)),i},_insertTableLaTeXRow:function(e,t){var o=[],r=" "+this._TABLE_CELL_SEPARATOR+" ";return e.forEach((function(e,r){(Array.isArray(e)?e:[e]).forEach((function(e){e=n.getEscapedOutputText(e),e=i.escapeSpecialCharacters(e,!0);var a=this._insertTableCellColor(t,r>0?r-1:0)+n.wrapInCommand(this._OUTPUT_TABLECELL_COMMAND,e);o.push(a)}),this)}),this),o.join(r)+" "+this._TABLE_ROW_END+" "},_insertTableColumnFormat:function(e){var t=this._TABLE_VERTICAL_LINE+this._TABLE_CENTERED;return e||(e=1),t=new Array(e+1).join(t)+this._TABLE_VERTICAL_LINE}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6568),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.embeddedoutputs"]}},createInstance:function(e){return new t(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(438),i(348)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e){this._embeddedoutputs=e},getApplicableDomNodeClasses:function(){return["embeddedOutputsVariableTableElement"]},enter:function(e,i,n){var o=this._embeddedoutputs.getEmbeddedOutputsView().getOutputFromOutputDiv(i).getDocbookContent(),r=t.createOutputProgramlisting();r.textContent=o.varName+"=";var a=t.createEmphasizeElement();if(o.header){var s=document.createElement("div");o.header=o.header.replace(/x/,"×"),s.innerHTML=o.header,a.textContent=s.textContent,s.remove()}else a.textContent=o.varSize+" "+o.varType;r.appendChild(a),r.appendChild(o.docBookXML),e.appendElement(r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6570)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(225),i(1136),i(438),i(348)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r,n],{_VERTICAL_ELLIPSIS_UC:"⋮",_ROW_TRUNCATION_LIMIT:30,constructor:function(e){this._embeddedoutputs=e},getApplicableDomNodeClasses:function(){return["embeddedOutputsTextMatrixElement"]},enter:function(e,t,i){var n=o.createOutputProgramlisting(),r=this._embeddedoutputs.getEmbeddedOutputsView().getOutputFromOutputDiv(t);this.handleVariableNameElement(t,n);var a=r.getText({showHeaderSummary:!1,plainText:!0}),s=r.getSize?r.getSize():{};return s&&s.rows>this._ROW_TRUNCATION_LIMIT&&(a+=" "+this._VERTICAL_ELLIPSIS_UC+"\n"),n.appendChild(document.createTextNode("\n"+a+"\n")),e.appendElement(n),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6572)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(348)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this._embeddedoutputs=e},getApplicableDomNodeClasses:function(){return["embeddedOutputsVariableTableElement"]},enter:function(e,t,i){var n=this._embeddedoutputs.getEmbeddedOutputsView().getOutputFromOutputDiv(t).getPdfContent(e,t,i);return e.appendElement(n),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6574)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.embeddedoutputs"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(348)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this._embeddedoutputs=e},getApplicableDomNodeClasses:function(){return["embeddedOutputsVariableMatrixElement"]},enter:function(e,t,i){var n=this._embeddedoutputs.getEmbeddedOutputsView().getOutputFromOutputDiv(t).getPdfContent(e,t,i);return e.appendElement(n),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6576)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.view","rtc.embeddedoutputs.currentoutputservice","rtc.embeddedoutputs","rtc.cursorcontroller","rtc.focusservice"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,null,null,null,null,null,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2293),i(6577),i(6584),i(278)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i],{_createVariableOutput:function(e){return r.isTextLikeArrayView(e.data.subtype,e.data.dataAttributes)?new n(e):new o(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(382),i(203),i(239),i(2366),i(6578),i(6579),i(2370),i(2365)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=function(e,t){var i=e.split("\n")[0].length;return{totalCharactersInRow:i,totalCharacters:Math.min(t,i)}};return t([a,s],{ROW_TRUNCATION_LIMIT:10,MIN_COL_WIDTH:82,_rangeRequested:null,_TEXT_MATRIX_TAG:"embeddedOutputsTextMatrixElement",_COLUMN_BUFFER:30,_prepopulatedDataObj:null,constructor:function(){this._prepopulatedDataObj=null,this._rangeRequested=null},getCssTag:function(){return[this._TEXT_MATRIX_TAG,this._CSS_TAG]},_createNameAndSummary:function(){var e=this.inherited(arguments);return this._data.varSize&&this._data.varType&&(e.metaSummary.innerText=this._data.varSize+" "+this._data.varType),e},_getInteractiveDocument:function(e,t,i,n,o,r){var a=this.inherited(arguments);let s=this;return a.getView(this._outputViewID).then((function(e){let t=e.getMetaDataStore();s._prepopulatedDataObj.metaData&&t.preLoadMetaData(s._prepopulatedDataObj.metaData)})),a},_updateInteractiveViewDoc:function(t){if(this.inherited(arguments),this._varView){var i=this._varView.getDataStore();if(i.getViewPortSize){var n=i.getViewPortSize(),o=Math.max(n.columns.start+this._COLUMN_BUFFER,n.columns.end),r=e.createRange(n.rows.start,n.rows.end,n.columns.start,Math.min(o,i.dataSize.columns.end));i.getData(r)}}},getPrepopulatedData:function(){var e=this.inherited(arguments);return e&&e.metaData&&e.metaData.columnMetadata&&this._preComputeColumnWidths(e.metaData.columnMetadata),this._prepopulatedDataObj=e,e},_preComputeColumnWidths:function(e){var t=this._staticMatrixOutput.getInitialColumnWidth();e.forEach((function(e,i){e.ColumnWidth=t[i]}))},_createVariableDocument:function(){var e=this._isSaveLoad()||!1;this._staticMatrixOutput=new r({data:this._data,outputMetaData:this._outputMetaData,isSaveLoad:e});var t=this._staticMatrixOutput.createStaticDocument();this._varDoc={domNode:t},e||(this._interactiveMatrixOutput=new n({data:this._data}),this._data.isPreview||this._createSaveLoadData())},_fetchPlainTextString:function(){this._scrolledStartRow=Math.min(this._data.rows,Math.floor(this._interactiveMatrixOutput._interactiveScrollTop/this._interactiveMatrixOutput.ROW_HEIGHT)+1),this._scrolledStartColumn=Math.min(this._data.columns,Math.floor(this._interactiveMatrixOutput._interactiveScrollLeft/this.MIN_COL_WIDTH)+1),this._hideViewPortForExport=!0;var t=this._getStartRow()-1,i=this._scrolledStartColumn-1,n=this._varView.getDataStore(),o=n.dataSize,r=Math.min(t+9,o.rows.end),a=n.getViewPortSize(),s=Math.max(a.columns.start+this._COLUMN_BUFFER,a.columns.end),l=Math.min(s,o.columns.end),c=e.createRange(t,r,i,l);this._rangeRequested=c[0];var d=!1;if(n.getData(c).then((function(e){d=!0})),d){var u=n.getZeroBasedRangeData(this._rangeRequested);this._updateStaticViewWithViewportData(u,this._rangeRequested),this._rangeRequested=null}},_handleDataChanged:function(e){this.inherited(arguments);var t=e.data.rangeList[0];if(this._rangeRequested&&i.isRangeEqual(this._rangeRequested,t)){var n=this._varView.getDataStore();this._updateStaticViewWithViewportData(n.getZeroBasedRangeData(t),t),this._forceUpdateStaticDom(),this._rangeRequested=null}},_forceUpdateStaticDom:function(){var e=this.getDomElement(),t=this._staticMatrixOutput._currentStaticView.domNode,i=e.getElementsByClassName(this._STATICVIEW_CLASSNAME)[0];e.replaceChild(t,i)},_updateStaticViewWithViewportData:function(t,i){e.rangeIsSinglePoint(i)&&(t=JSON.stringify({value:t[0][0]}));var n=this._staticMatrixOutput._fetchFormattedValueString(t,i);this._updateDOMWithStringData(n),this._staticMatrixOutput.updateStyler(i),this._staticMatrixOutput.updateStyles(this.getDomElement()),this._hideViewPortForExport=!1},_updateStaticString:function(){this._currentStaticView=null},_updateDOMWithStringData:function(e){this._staticMatrixOutput._updateCurrentStaticView(e),this._getUpdatedDom(this._staticMatrixOutput._currentStaticView,this._INTERACTIVEVIEW_CLASSNAME,this._STATICVIEW_CLASSNAME),this._varDoc=this._staticMatrixOutput._currentStaticView,this._varDoc.domNode.dataset.currentViewRange="startRow:"+this._getStartRow()+"|startColumn:"+this._scrolledStartColumn},_createSaveObjectWithPrepopulatedData:function(e){e&&e.data.length>0&&e.data&&(this._data.savedPrepopulatedData=JSON.stringify(e.data))},_getValueForExport:function(e){return(e=e||{}).plainText?this._data.value:(this._hideViewPortForExport?this._staticMatrixOutput.getInitialStringValue():this._staticMatrixOutput.getText())||this._data.value},getHTMLContent:function(e,t){t=t||{};var i=this.inherited(arguments);if(!t.availableWidth){var n=i.getElementsByClassName(this._VARIABLE_VALUE)[0];n.innerText=this._getValueForExport()}return i},getPdfContent:function(e,t,i){return new o({data:this._getValueForExport(),hideViewPortSummary:this._hideViewPortForExport,amountOfDataToShowFn:l}).createElement(e,t,i)},_getAmountOfDataToShow:function(e,t,i){return l(i,t)},_getTextValueForExport:function(e){return this._getValueForExport()},_getJSONData:function(e,t){var i=this._staticMatrixOutput._getValueParserForType();i?this.inherited(arguments):t.value=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2367)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this.amountOfDataToShow=e.amountOfDataToShowFn},_getAmountOfDataToShow:function(e,t){return this.amountOfDataToShow(t,this.MAX_CHARACTERS)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(382),i(203),i(211),i(210),i(2368),i(2369),i(6580),i(1201),i(239),i(830),i(6581),i(278),i(1559),i(6582)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=function(e,t){var i=JSON.parse(e);return e=u.formatString(i.value),i.isMetaData||"WidthCompute"===t||(e='"'+e+'"'),{value:e,className:i.isMetaData?"MetaData":""}},g=function(e){return{value:JSON.parse(e).value}};return t([o],{DEFAULT_MAX_COLUMNS:50,_maxColumns:null,_fontSize:"12px",_fontFamily:'Menlo, Monaco, Consolas, "Courier New", monospace',_currentStringValue:"",_initialStringValue:"",_initialColumnWidths:null,constructor:function(e){this._initialColumnWidths=null,this._fitToContentWidth=new d({fontSize:this._fontSize,fontFamily:this._fontFamily}),this._isSaveLoad=e.isSaveLoad},getText:function(){return this._currentStringValue},getInitialStringValue:function(){return this._initialStringValue},updateStyles:function(e){var t=this._styler.getStyleChange({outputDiv:e});this._styler.applyStyleChange(t)},_createValueElement:function(){var e,t=i.create("div",{className:"valueContainer"}),n=i.create("div",{className:"variableValue"});e=r.getPrepopulatedData(this._data,this._isSaveLoad),this._maxColumns=this._outputMetaData.maxColumns||this.DEFAULT_MAX_COLUMNS;var o=this._getInitialDataRange(),a=this._fetchFormattedValueString(e.data,o);this._initialStringValue=this._currentStringValue,n.appendChild(a),t.appendChild(n),c._addEllipsis(t);var s={totalRows:this._data.rows,totalColumns:this._data.columns};return t.setAttribute("data-layout",JSON.stringify(s)),{value:n,container:t}},_getInitialDataRange:function(e){var t=Math.min(this._data.rows,s.PREPOPULATED_ARRAY_ROW_COUNT),i=Math.min(this._data.columns,s.PREPOPULATED_COLUMN_COUNT);return i=Math.min(i,this._maxColumns||1/0),l.range().setRows(0,t-1).setColumns(0,i-1)},_fetchFormattedValueString:function(e,t){var i=this._getValueParserForType(),o=this._fitToContentWidth.calculateWidthsForRange(e,t,i);this._initialColumnWidths||(this._initialColumnWidths=o);var r=h.getCharacterWidthForMonoSpace({fontSize:this._fontSize,fontFamily:this._fontFamily}),a=p.getNativeTable(e,t,o,{fitToContent:!0,valueParser:i,characterWidth:r});return this._currentStringValue=a.stringValue,n.add(a.dom,this._data.subtype),a.dom},getInitialColumnWidth:function(){return this._initialColumnWidths},_getValueParserForType:function(){return"string"===this._data.subtype?f:"cell"===this._data.subtype||this._isSaveLoad?g:void 0},_createStyler:function(){this._styler=new a({totalRows:this._data.rows,totalColumns:this._data.columns});var e=this._getInitialDataRange();this.updateStyler(e)},updateStyler:function(e){var t=this._fitToContentWidth.getWidthsForRange(e);this._styler.setWidthForViewportRange(t)},updateViewportInfo:function(e,t){var i=this._currentStaticView?this._currentStaticView.domNode:this._initialStaticView.domNode,n=this._styler.getAvailableWidth(t);this._data.isPreview&&this._outputMetaData.maxDimensions&&(n=this._outputMetaData.maxDimensions.width);var o=this._styler.getMatrixInfo(),r=this._styler.getTotalColumnsThatFit(n,o,i);this._styler.updateViewportInfo(t,this._MAX_ROWS,r,o.totalRows,o.totalColumns)},_updateCurrentStaticView:function(e){this._currentStaticView||(this._currentStaticView={domNode:this._initialStaticView.domNode.cloneNode(!0)});var t=this._currentStaticView.domNode.getElementsByClassName("variableValue")[0],i=t.firstElementChild;t.replaceChild(e,i),i.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(1454)],o=i.dj.d(n,(function(e,t,i){return e([i],{_totalRows:null,_totalColumns:null,_availableWidth:null,_calculatedWidths:[],_MATRIX_DOM_PADDING:9,constructor:function(e){this._totalRows=e.totalRows||-1,this._totalColumns=e.totalColumns||-1},getLayoutInfo:function(e,t){var i=Math.min(t,e.totalColumns),n=0;return this._calculatedWidths.forEach((function(e,t){t<=i&&(n+=e)})),n=Math.min(n,this._availableWidth),{numOfColumnsToShow:i,totalWidth:n}},setWidthForViewportRange:function(e){this._calculatedWidths=e},getTotalColumnsThatFit:function(e,i,n){this._availableWidth=e,t.contains(n,"hideEllipses")||0!==n.getElementsByClassName("horizontalEllipsis hide").length||(this._availableWidth=this._availableWidth-(this.ELLIPSIS_WIDTH+this.LEFT_MARGIN_BUFFER+this._MATRIX_DOM_PADDING));var o=null,r=this;return this._calculatedWidths.reduce((function(e,t,i){return e+t>r._availableWidth&&!o&&(o=i),e+t})),o||Math.min(this._calculatedWidths.length,this._totalColumns)},getMatrixInfo:function(e){return{totalRows:this._totalRows,totalColumns:this._totalColumns}},_hasWidthChanged:function(e,t){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(239),i(382),i(1559)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor_client_FitToContentWidths",[],{_customWidths:[],_characterWidth:null,constructor:function(e){this._customWidths=[],this._characterWidth=n.getCharacterWidthForMonoSpace({fontFamily:e.fontFamily,fontSize:e.fontSize})},calculateWidthsForRange:function(e,i,n){var o=i.columns.start,r=i.columns.end+1,a=this._customWidths.slice(o,r);if(!this.hasWidthsForRange(i)){if(a.length>0&&a.length<=i.columns.count){var s=a.length+i.columns.start,l=i.columns.end;i=t.range().setRows(i.rows.start,i.rows.end).setColumns(s,l)}this._updateWidthCalculations(e,i,n),a=this._customWidths.slice(o,r)}return a},hasWidthsForRange:function(e){return this.getWidthsForRange(e).length===e.columns.count},getWidthsForRange:function(e){return this._customWidths.slice(e.columns.start,e.columns.end+1)},_updateWidthCalculations:function(e,t,n){var o=t.columns.start;if(i.rangeIsSinglePoint(t))this._computeCellWidth(e,n,0);else for(var r=0;r<t.rows.count;r++)for(var a=o,s=0;s<t.columns.count;s++){var l=e[r][s];this._computeCellWidth(l,n,a),a+=1}},_computeCellWidth:function(e,t,i){e=(t?t(e,"WidthCompute"):function(e){return{value:e}}(e)).value;var n=Math.max(e.length*this._characterWidth,82);const o=Math.max(Math.min(n,500),this._customWidths[i]||0);this._customWidths[i]=Math.floor(o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(209),i(382)],o=i.dj.d(n,(function(e,t,i){var n;function o(t,i,o,r,a){var s=document.createElement("td"),l=t[i],c=r?r(l):function(e){return{value:e}}(l);l=c.value,c.className&&e.add(s,c.className);var d=l,u=Math.ceil(o[i]/n);return d.length>u&&(d=d.substring(0,u-3)+"…"),a+=d=d.padEnd(u," "),s.textContent=l,s.style.minWidth=o[i]+"px",s.style.maxWidth=o[i]+"px",{dom:s,stringValue:a}}return{getNativeTable:function(e,r,a,s){var l=s.tableCaption||"",c=s.valueParser?s.valueParser:null;n=s.characterWidth||6.6,0!==e.length&&Array.isArray(e)||t.warn("Provide valid table data");var d=document.createElement("table"),u=document.createElement("caption");u.textContent=l,d.appendChild(u);var h=function(e,t,n,r,a){var s="",l=0,c=0;for(l=0;l<e.length;l+=1){var d=document.createElement("tr");if(d.setAttribute("scope","row"),i.rangeIsSinglePoint(r)){var u=o(e,0,n,a,s);s=u.stringValue+"\n",d.appendChild(u.dom)}else{var h=e[l];for(c=0;c<r.columns.count;c+=1)u=o(h,c,n,a,s),s=u.stringValue,d.appendChild(u.dom)}s+="\n",t.appendChild(d)}return s}(e,d,a,r,c);return{dom:d,calculatedWidths:a,stringValue:h}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2371)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(){this.paletteRegistryId="RunScriptPalette"},_setupPaletteListeners:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211),i(225),i(2370)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{_SCALING_EXPONENT_CLASS:"scaleExponent",_SCALING_FACTOR_CLASS:"veScalingFactor",_SCALING_FACTOR:"10",_SUPER_SCRIPT_TAG:"sup",_createVariableDocument:function(){this._data.value=this._removeScalingFactorFromDataString(this._data.value),this.inherited(arguments)},_removeScalingFactorFromDataString:function(e){var t="";this._data.exponent&&"1"!==this._data.exponent?t=this._parseValueDataString(e).data:t=e;return t},_modifyExistingSummary:function(e){"double"===this._data.subtype&&this._getSummaryForDoubleDataType(e)},_getSummaryForDoubleDataType:function(e){t.add(e.summary,"double"),e.metaSummary.textContent=this._data.rows+"×"+this._data.columns,t.add(e.metaSummary,"veMetaSummary")},_prependHeaders:function(e){this._prependScalingFactor(e),this.inherited(arguments)},_prependScalingFactor:function(e){if(this._data.exponent&&"1"!==this._data.exponent){var i=document.createElement("div");t.add(i,"veScalingFactor"),i.innerText=this._SCALING_FACTOR;var n=document.createElement("span");t.add(n,"scaleExponent"),n.innerText=this._data.exponent;var o=document.createElement("span");t.add(o,"multiply"),o.innerText=this._MULTIPLIER,i.appendChild(n),i.appendChild(o),e.insertBefore(i,e.firstElementChild)}},_getHeaderSummaryForTextExport:function(){var e=this.inherited(arguments),t=this._getScalingFactorForText();return e+t},_getScalingFactorForText:function(){var e="";return this._getScalingExponentValue()&&(e="\n"+this._parseValueDataString(this._valueStringData).exponent+"\n"),e},_getHeaderSummaryForHTMLExport:function(){var e=this.inherited(arguments),t=this._getScalingFactorInfo();return e+t},_getScalingFactorInfo:function(){var e="",t=this._getScalingExponentValue();if(t){e+=this._SCALING_FACTOR;var i=this._getSuperScriptForExport(t);i&&(e+=i.outerHTML+this._MULTIPLIER+"\n")}return e},_getScalingExponentValue:function(){var e=null;return this._data.exponent&&"1"!==this._data.exponent&&(e=this._data.exponent),e},_getSuperScriptForExport:function(e){var t=document.createElement(this._SUPER_SCRIPT_TAG);return t.textContent=e,t},_cleanHeaderDomForHTML:function(e){if(this.inherited(arguments),!this._destroyDom(this._SCALING_FACTOR_CLASS,e)){var t=this._getScalingExponentValue();if(t){var o=this._getSuperScriptForExport(t),r=n("."+this._SCALING_FACTOR_CLASS,e)[0],a=r.getElementsByClassName(this._SCALING_EXPONENT_CLASS)[0];i.place(o,a,"replace")}}},_processStringData:function(e){return this._removeScalingFactorFromDataString(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6586)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.outputhandlerservice","rtc.embeddedoutputs.variablestringoutputhandler","liveeditor.embeddedoutputs.interactivetableoutputhandler","liveeditor.embeddedoutputs.interactivematrixoutputhandler"]}},createInstance:function(e,t,n,o){var r=new i(e,t,n,o);return e.registerOutputPlugin(r),r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(219),i(553),i(278)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{OUTPUT_TYPE:"variableString",_ELLIPSIS:"...",_ISFEATUREON:!0,constructor:function(e,t,i,n){this._subscribeFeatureSwitch(e),this._legacyVariableStringOutputHandlerInstance=t,this._interactiveTableOutputHandlerInstance=i,this._interactiveMatrixOutputHandlerInstance=n},getOutputFromData:function(e,t){var i=null;return e.subtype||e.type?("table"===e.subtype||"timetable"===e.subtype||o.isRichTabularView(e.subtype,e.dataAttributes)?i=this._interactiveTableOutputHandlerInstance.getOutputFromData(e,t):("logical"===e.type||o.isTextLikeArrayView(e.subtype,e.dataAttributes))&&(i=this._interactiveMatrixOutputHandlerInstance.getOutputFromData(e,t)),i?(i.getOutput().type=this.OUTPUT_TYPE,i):void 0):this._legacyVariableStringOutputHandlerInstance.getOutputFromData(e)},_subscribeFeatureSwitch:function(e){var n=e,o=this;i.subscribe("/LiveEditorNumerics",t.hitch(this,(function(e){this._ISFEATUREON=e.data.status,!0===e.data.status&&n.registerOutputPlugin(o)})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6588)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.outputhandlerservice","rtc.executionservice","rtc.domnode","rtc.embeddedoutputs.matrixoutputhandler","liveeditor.embeddedoutputs.interactivematrixoutputhandler"]}},createInstance:function(e,t,n,o,r,a){var s=new i(e,t,n,o,r,a);return t.registerOutputPlugin(s),s}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(219),i(553)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{OUTPUT_TYPE:"matrix",_ISFEATUREON:!0,constructor:function(e,t,i,n,o,r){this._legacyMatrixOutputHandlerInstance=o,this._interactiveMatrixOutputHandlerInstance=r,t.registerOutputPlugin(this)},getOutputFromData:function(e,t){if(e.subtype&&!1!==this._ISFEATUREON){var i=this._interactiveMatrixOutputHandlerInstance.getOutputFromData(e,t);return i.getOutput().type=this.OUTPUT_TYPE,i}return this._legacyMatrixOutputHandlerInstance.getOutputFromData(e,t)},destroy:function(){this._legacyMatrixOutputHandlerInstance.destroy(),this._interactiveMatrixOutputHandlerInstance.destroy()},_subscribeFeatureSwitch:function(e){var n=e,o=this;i.subscribe("/LiveEditorNumerics",t.hitch(o,(function(e){o._ISFEATUREON=e.data.status,!0===e.data.status&&n.registerOutputPlugin(o)})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6590)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["liveeditor.filemodificationnotifier","rtc.document","rtc.internaldocument","rtc.embeddedoutputs.clearoutputscache","rtc.executionservice.statehandler","rtc.embeddedoutputs.model.io.outputchangenotifier","rtc.embeddedoutputs.model"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(203),i(214),i(2372)],o=i.dj.d(n,(function(e,t,i,n){return t(n,{_OUTPUT_TIMEOUT_MS:2e3,constructor:function(t,n,o,r,a,s,l){this._clearOutputsCache=r,this._stateHandler=a,this._outputChangeNotifier=s,this._outputsModel=l,this.own(i.after(this._clearOutputsCache,"onOutputsCleared",e.hitch(this,"setFileDirty"))),this.own(i.before(this._stateHandler,"onStateChanged",e.hitch(this,"_handleStateChanged"),!0)),this.own(i.after(this._outputChangeNotifier,"onOutputChanged",e.hitch(this,"setFileDirty")))},destroy:function(){this._destroyed=!0,this.inherited(arguments)},_handleStateChanged:function(t){if(t===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE){var i={};i.id=setTimeout(e.hitch(this,"_doDeferredSetFileDirty",i),this._OUTPUT_TIMEOUT_MS),this._outputsModel.whenOutputsReady(e.hitch(this,"_doDeferredSetFileDirty",i))}},_doDeferredSetFileDirty:function(e){this._destroyed||(clearTimeout(e.id),this.setFileDirty())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(281),i(6592)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(e,t,n){return i.isLiveCodeFile(e)&&!t&&n&&n.getAllSettingsForSettingGroup},requires:function(){return{isApplicable:["rtc.backingstore","rtc.integration.touchmode","rtc.settings.backingservice"],createInstance:["rtc.actionservice","rtc.datatip","rtc.settings.backingservice"]}},createInstance:function(){return new n(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2373)],o=i.dj.d(n,(function(e,t){return e(t,{_getDataTipActionId:function(){return"rtc_liveeditor_datatips"},_getSettingGroup:function(){return["matlab","editor","displaysettings"]},_getSettingName:function(){return"LiveEditorDataTips"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(281),i(6594)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(e){return i.isLiveCodeFile(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.editordataservice","rtc.internaldocument","rtc.document","language.interface.tokenmanager","rtc.view","rtc.domnode","rtc.outputhandlerservice","rtc.functionservice","matlab.code.codeblocklocationservice","debug.documentdebugservices","rtc.linenumberservice","rtc.datatip.requester"]}},createInstance:function(){return new n(...arguments)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(208),i(1367),i(1892),i(529),i(913)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(o,{_DATATIP_CSS_CLASS:"rtcDataTipElement",_MATRIX_MAX_COLUMN:5,_SCROLLABLE_CLASSNAME:"scrollableOutput",_ADDITIONAL_RIGHT_PADDING:"rtcDataTipElementRightPadding",_DATATIP_FUNCTION:"matlab.internal.editor.getOutputDataFromCaller",constructor:function(e,t,n,o,r,a,s,l,c,d,u,h){this._document=n,this._view=r,this._domNode=a,this._outputHandlerService=s,this._functionService=l,this._codeBlockLocationService=c,this._documentDebugServices=d,this._lineNumberService=u,this._datatipRequester=h,this.own(i.after(this._documentDebugServices,"onStackChanged",this._handleStackChanged.bind(this))),this._currentOutput=null,this._currentWorkspace=null},_handleStackChanged:function(){this._currentWorkspace=this._documentDebugServices.getActiveWorkspace()},getTooltipContent:function(e,t,i){if(this._shouldShowDataTips){var o=this.inherited(arguments);if(o){var r=t.getLineColumn().line;if(n.isDebugging()){var a=this._lineNumberService.getCodeLineNumberFromLineNumber(r-1);this._codeBlockLocationService.whenReady(function(){this._isHoveringInCurrentWorkspace(a)?this._latestPromise=this._requestDatatip(this._DATATIP_FUNCTION,[o.trim()],e,i):i(this._NO_TOOLTIP)}.bind(this))}else{if(this._isInsideFunction(r))return void i(this._NO_TOOLTIP);this._latestPromise=this._requestDatatip(this._DATATIP_FUNCTION,[o.trim()],e,i)}}else i(this._NO_TOOLTIP)}else i(this._NO_TOOLTIP)},_updateDataTip:function(e,i,o){var a,s=o[0].mwdata?o[0].mwdata[0]:o[0];if(s){s=JSON.parse(s);var l={},c=n.calculateTooltipDimensions(this._view,e,this._domNode);this._isTextArrayType(s.type,s.outputData.type)&&(l.createPromptController=!1,l.maxColumns=this._MATRIX_MAX_COLUMN,l.maxDimensions=c),s.outputData.isPreview=!0;var d=this._outputHandlerService.handleRawOutput(s,l);if(d.getInstruction()===r.ADD_OUTPUT)if(this._currentOutput=d.getOutput(),this._currentOutput.isReady()){var u=this._currentOutput.getDomElement();this._currentOutput.startup(),i(a=n.createTooltipDiv(this._view,u,e,this._DATATIP_CSS_CLASS,this._domNode,c),!0),a&&(t(a,"mouseover",(function(e){e.stopPropagation()})),a.classList.add(this._SCROLLABLE_CLASSNAME),a.scrollHeight>a.clientHeight&&a.classList.add(this._ADDITIONAL_RIGHT_PADDING))}else i(this._NO_TOOLTIP);else i(this._NO_TOOLTIP)}else i(this._NO_TOOLTIP)},_isTextArrayType:function(e,t){return"matrix"===e||"logical"===t||"string"===t||"categorical"===t||"ordinal"===t||"nominal"===t||"datetime"===t||"duration"===t||"calendarDuration"===t||"cell"===t},_errorCallback:function(e,t){t!==this._CANCEL_REASON&&e(this._NO_TOOLTIP)},_isInsideFunction:function(e){return this._functionService.isLineInFunction(e)},_isHoveringInCurrentWorkspace:function(e){var t;this._currentWorkspace&&(t=this._codeBlockLocationService.getInnermostBlockOfType(this._currentWorkspace.getLineNumber(),a.FUNCTION_DEFINITION));var i=this._codeBlockLocationService.getInnermostBlockOfType(e,a.FUNCTION_DEFINITION);return t&&i?t.startLine===i.startLine&&t.startColumn===i.startColumn:t===i},onTooltipClose:function(){},cleanupTooltipContent:function(){this._currentOutput&&(this._currentOutput.destroy(),this._currentOutput=null),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6596)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.keyhandler","rtc.code.sections.model","rtc.code.sections.current","rtc.execution.executionmanager","rtc.contextmenu.documentcontributor"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(275),i(1931)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(){this._debugServices=n.getInstance(),this.own(i.after(this._debugServices,"onDebugModeChanged",t.hitch(this,"_updateActionState")))},_getUpdatedActionEnablement:function(){return!this._debugServices.isDebugging&&this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6598)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","rtc.cursorcontroller","rtc.code.sections.model","rtc.code.sections.current","rtc.code.sections.stale.model","rtc.code.matlabfiletype"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(275),i(1991)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){this._debugServices=t.getInstance()},canBeEvaluated:function(e){return!this._debugServices.isDebugging&&this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2374)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.matlabfiletype","rtc.editoreventnotifier","rtc.id"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return class{constructor(){this._promise=new Promise((e,t)=>{this._resolveCallback=e,this._rejectCallback=t}),this.then=this._promise.then.bind(this._promise),this.catch=this._promise.catch.bind(this._promise),this.finally=this._promise.finally.bind(this._promise),this.isFulfilled=!1,this.isResolved=!1,this.isRejected=!1}resolve(e){this.isResolved=!0,this.isFulfilled=!0,this._resolveCallback(e)}reject(e){this.isRejected=!0,this.isFulfilled=!0,this._rejectCallback(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6602)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return!e},requires:function(){return{isApplicable:["rtc.integration.touchmode"],createInstance:["rtc.domnode.external","rtc.featureinterface","rtc.view","rtc.hyperlinkservice","rtc.executionservice","rtc.backingstore","rtc.document","rtc.internaldocument","rtc.focusservice","rtc.viewready","rtc.bannermanager"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(263),i(207),i(208),i(6603)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_banner:null,_SETTINGS_GROUP:["matlab","editor","displaysettings"],_SETTING_NAME:"ShowWelcomeToLiveEditorBanner",constructor:function(e,t,n,o,r,a,s,l,c,d,u){this._rtcDomNodeExternal=e,this._featureInterface=t,this._view=n,this._hyperlinkService=o,this._executionService=r,this._backingStore=a,this._document=s,this._internalDocument=l,this._focusService=c,this._bannerManager=u,this._settingsService=i,this._isEnabled=!1,this._initialize()},_initialize:function(){this._banner=null,this.own(o.after(this._internalDocument,"onDocumentReset",t.hitch(this,"_checkAndShowBanner"))),this.own(o.after(this._view,"onResize",function(){this._handleViewResize()}.bind(this))),this._settingsService.getSetting(this._SETTINGS_GROUP,this._SETTING_NAME).then(function(e){e.value&&(this._isEnabled=!0,this._checkAndShowBanner())}.bind(this))},_handleViewResize:function(){this._banner&&this._banner.resize()},_checkAndShowBanner:function(){this._isEnabled&&this._showBanner()},_showBanner:function(){this._banner&&(this._banner.closeBanner(),this._bannerManager.deregisterBanner(this._banner,this._rtcDomNodeExternal),this._banner=null),this._shouldShowBanner()&&this._createBanner()},_shouldShowBanner:function(){return""===this._backingStore.getFileLocation()&&""===this._document.getText()},_createBanner:function(){this._banner=new r({parent:this._bannerManager.getTopBannerContainer(),sibling:this._rtcDomNodeExternal,position:"first",type:"top",resizer:this._featureInterface.resize,focusService:this._focusService,textMaxWidth:"600px"}),this._bannerManager.registerBanner(this._banner,this._rtcDomNodeExternal),this.own(o.after(this._banner,"onLinkClicked",t.hitch(this,"_handleLinkClicked"),!0)),this.own(o.after(this._banner,"onMatlabCommandRequest",t.hitch(this,"_handleMatlabCommandRequest"),!0)),this.own(o.after(this._banner,"onBannerClosed",t.hitch(this,"_handleBannerClosed"),!0)),this._banner.resize()},_handleLinkClicked:function(e){this._hyperlinkService.openUrl(e)},_handleMatlabCommandRequest:function(e){this._executionService.executionEval(e)},_handleBannerClosed:function(){this._settingsService.setSetting(this._SETTINGS_GROUP,this._SETTING_NAME,!1)},destroy:function(){this.inherited(arguments),this._banner&&(this._banner.closeBanner(),this._bannerManager.deregisterBanner(this._banner,this._rtcDomNodeExternal))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(312),i(203),i(211),i(210),i(6604),i(6605),i(2375)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(a,{templateString:o,_LEARN_MORE_LINK:"https://www.mathworks.com/pl_live_editor_banner02",_OPEN_EXAMPLE_COMMAND:'openExample("matlab/LiveEditorInteractiveNarrative")',_MAX_THUMBNAIL_WIDTH:349,_MAX_THUMBNAIL_HEIGHT:100,_THRESHOLD_FOR_HIDING_THUMBNAIL:435,_WIDTH_SCALING_FACTOR:.4,_ASPECT_RATIO_FACTOR:3.49,postCreate:function(){this._shouldResize=!0,this._createBanner(),this._placeBanner(),this._setFocusBehavior()},onLinkClicked:function(e){},onMatlabCommandRequest:function(e){},onBannerClosed:function(){},resize:function(){this.inherited(arguments),this._resizeThumbnail()},_resizeThumbnail:function(){var e=this._getClientWidth();if(e<this._THRESHOLD_FOR_HIDING_THUMBNAIL)n.add(this.thumbnailNode,"hide");else{n.remove(this.thumbnailNode,"hide");var t=Math.min(this._WIDTH_SCALING_FACTOR*e,this._MAX_THUMBNAIL_WIDTH),i=Math.min(t/this._ASPECT_RATIO_FACTOR,this._MAX_THUMBNAIL_HEIGHT);this.thumbnailNode.style.width=t+"px",this.thumbnailNode.style.height=i+"px"}},_getClientWidth:function(){return this.domNode.clientWidth},_createBanner:function(){this.bannerTitleNode.innerHTML=r.welcomeBannerTitle,this.bannerTextNode.innerHTML=r.welcomeBannerText;var e=i.create("a",{className:"announcementBannerLink"});e.innerText=r.learnMore,this.learnMoreLinkNode.appendChild(e),this._addTooltip()},_addTooltip:function(){this._tooltipWidget=new e({connectId:this.thumbnailNode,label:r.openExampleDescription,position:["below"]}),this.own(this._tooltipWidget)},_onThumbnailClicked:function(){this.onMatlabCommandRequest(this._OPEN_EXAMPLE_COMMAND)},_onLearnMoreLinkClicked:function(){this.onLinkClicked(this._LEARN_MORE_LINK)},_onCloseButtonPressed:function(){this.closeBanner(),this.onBannerClosed()},closeBanner:function(){this.inherited(arguments),this._tooltipWidget.close()}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="announcementBannerWidget welcomeBannerWidget">\n <div class="content">\n <div class="leftContentContainer">\n <div class="topContent">\n <div class="title" data-dojo-attach-point="bannerTitleNode"></div>\n </div>\n <div class="centerContent">\n <div class="body">\n <div data-dojo-attach-point="bannerTextNode" class="bannerText"></div>\n <div class="link" data-dojo-attach-point="learnMoreLinkNode" data-dojo-attach-event="onClick:_onLearnMoreLinkClicked"></div>\n </div>\n </div>\n </div>\n <div class="rightContentContainer">\n <div class="rightContent">\n <div class="thumbnail" data-dojo-attach-point="thumbnailNode" data-dojo-attach-event="onClick:_onThumbnailClicked"></div>\n </div>\n </div>\n <div class="closeButton" type="button" data-dojo-attach-point="bannerCloseButtonNode" data-dojo-attach-event="onClick:_onCloseButtonPressed"></div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(218),i(220),i(6606),i(6607),i(6608),i(6609)],o=i.dj.d(n,(function(e,t){return t(e,"livecode_features/l10n/nls/welcometoliveeditorbanner",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={welcomeBannerTitle:"ライブ エディターへようこそ",welcomeBannerText:"コード、出力、および書式設定済みテキストを単一の実行可能ドキュメントに組み合わせたライブ スクリプトを作成します。",openExampleDescription:"この例をライブ エディターで開きます。",learnMore:"詳細"}},function(e,t,i){e.exports={welcomeBannerTitle:"欢迎使用实时编辑器",welcomeBannerText:"创建集代码、输出和格式化文本于一体的可执行实时脚本文档。",openExampleDescription:"在实时编辑器中打开此示例。",learnMore:"了解更多"}},function(e,t,i){e.exports={welcomeBannerTitle:"라이브 편집기 시작",welcomeBannerText:"코드, 출력값, 서식 지정된 텍스트가 하나의 실행 가능한 문서에 결합된 라이브 스크립트를 생성해 보십시오.",openExampleDescription:"라이브 편집기에서 이 예제를 엽니다.",learnMore:"자세히 알아보기"}},function(e,t,i){e.exports={root:{welcomeBannerTitle:"Welcome to the Live Editor",welcomeBannerText:"Create live scripts that combine code, output, and formatted text in a single executable document.",openExampleDescription:"Open this example in the Live Editor.",learnMore:"Learn More"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t){e.exports='<div class="announcementBannerWidget">\n <div class="iconContainer" data-dojo-attach-point="bannerIconContainerNode">\n <div class="icon" data-dojo-attach-point="bannerIconNode"></div>\n </div>\n <div class="content">\n <div class="topContent">\n <div class="title" data-dojo-attach-point="bannerTitleNode"></div>\n <div class="closeButton" type="button" data-dojo-attach-point="bannerCloseButtonNode" data-dojo-attach-event="onClick:_onCloseButtonPressed"></div>\n </div>\n <div class="centerContent">\n <div class="body" data-dojo-attach-point="bannerTextNode"></div>\n </div>\n <div class="bottomContent">\n <div class="link" data-dojo-attach-point="bannerLinkNode"></div>\n <div class="actionButton" data-dojo-attach-point="bannerButtonNode"></div>\n </div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(6612),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.domnode.external","rtc.featureinterface","rtc.focusservice","rtc.bannermanager","rtc.view"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(6613),i(207),i(827)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_FILENAME_SEPARATOR:" > ",constructor:function(e,t,i,n,o){this._rtcDomNodeExternal=e,this._featureInterface=t,this._focusService=i,this._bannerManager=n,this._view=o,this._banner=null,this._filePath=null,this._fileName=null,this._firstDirectory=null},setFilePath:function(e){this._filePath=e},_preProcessFileName:function(){this._filePath=this._filePath.slice(1).replace(/\//g,this._FILENAME_SEPARATOR);var e=this._filePath.split(this._FILENAME_SEPARATOR);this._fileName=e[e.length-1],e.pop(),this._firstDirectory=e[0],(e=e.slice(1)).unshift(" "),this._filePath=e.join(this._FILENAME_SEPARATOR)},_getFileNameFromDom:function(){if(this._banner)return this._banner.domNode.getElementsByClassName("fileName")},_createAndAttachFileDomNodes:function(){var e=t.create("div",{className:"textWrapper"});t.place(e,this._banner.bannerTextNode.parentNode,"last");var i=t.create("span",{className:"matlabDrive"});i.textContent=this._firstDirectory,t.place(i,e,"last");var n=t.create("span",{className:"filePath"});n.textContent=this._filePath,t.place(n,e,"last");var o=t.create("span",{className:"placeholder"});o.textContent=" > ",t.place(o,e,"last");var r=t.create("span",{className:"fileName"});r.textContent=this._fileName,t.place(r,e,"last")},show:function(){this._preProcessFileName(),this._banner&&(this._banner.closeBanner(),this._bannerManager.deregisterBanner(this._banner,this._rtcDomNodeExternal)),this._banner=new o({bannerText:"",closable:!1,parent:this._bannerManager.getTopBannerContainer(),type:"top",resizer:this._featureInterface.resize,focusService:this._focusService,sibling:this._rtcDomNodeExternal}),this._createAndAttachFileDomNodes(),this._banner.domNode.classList.add("filenamebanner"),this._banner.parent.addEventListener("touchstart",(function(e){e.preventDefault()})),this._bannerManager.registerBanner(this._banner,this._rtcDomNodeExternal)},markBannerTextDirty:function(){let e=this._getFileNameFromDom();e&&e[0]&&(e[0].textContent=e[0].textContent+"*")},markBannerTextReadOnly:function(){let e=this._getFileNameFromDom();e&&e[0]&&(e[0].textContent=e[0].textContent+" ("+i.readOnly+")")},markBannerTextOffline:function(){let e=this._getFileNameFromDom();e&&e[0]&&(e[0].textContent=e[0].textContent+" ("+i.offlineMode+")")},markBannerTextClean:function(){let e=this._getFileNameFromDom();e&&e[0]&&(e[0].textContent=this._fileName)},replaceFileName:function(e,t){let i=this._getFileNameFromDom();i&&i[0]&&(i[0].textContent=e),t&&this.markBannerTextDirty()},destroy:function(){this._banner&&(this._banner.closeBanner(),this._bannerManager.deregisterBanner(this._banner,this._rtcDomNodeExternal),this._banner=null),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6614),i(6615),i(6616),i(6617)],o=i.dj.d(n,(function(e,t){return t(e,"livecode_features/l10n/nls/filenamebanner",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={readOnly:"読み取り専用",offlineMode:"オフライン モード"}},function(e,t,i){e.exports={readOnly:"只读",offlineMode:"离线模式"}},function(e,t,i){e.exports={readOnly:"읽기 전용",offlineMode:"오프라인 모드"}},function(e,t,i){e.exports={root:{readOnly:"Read-Only",offlineMode:"Offline Mode"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(6619)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.livecontrols.viewmodel","rtc.internaldocument"]}},createInstance:function(e,t){return new i(e,t)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6620),i(1566),i(203),i(209),i(208),i(2078),i(474),i(414),i(6621)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){const c=[e.VARIABLE_CHANGED,e.VARIABLE_DELETED,e.WORKSPACE_CLEARED],d=["double","string","logical","char"];return i(r,{_VARIABLE_UPDATE_EVENTS:c,constructor:function(e,t){this._liveControlViewModel=e,this._internalDocument=t,this.own(o.after(e,"onWidgetCreated",this._handleWidgetCreated.bind(this),!0)),this._workspaceListenerAdded=!1},getWorkspaceDropdownWidget:function(){return l},_handleWidgetCreated:function(t){this._workspaceListenerAdded||(e.addWorkspaceListener("LiveControls",this._handleVariableChanges.bind(this)),this._workspaceListenerAdded=!0);let i=this._liveControlViewModel.getNodeWidget(t),n=this.getWorkspaceDropdownWidget();s.setWorkspaceDropdownWidget(i,n),this._requestWorkspaceVariablesForNode(t)},_handleVariableChanges:function(e,t){-1!==this._VARIABLE_UPDATE_EVENTS.indexOf(e)&&this._requestWorkspaceVariables()},_requestWorkspaceVariablesForNode:function(e){this._nodeRequestingData=e,this._requestWorkspaceVariables()},_requestWorkspaceVariables:function(){t.getWorkspaceDisplay().then(e=>{this._variableDetails=e.filter(e=>-1!==d.indexOf(e.Class)),this._setWorkspaceVariables()},e=>{n.warn(e)})},_setWorkspaceVariables:function(){if(this._variableDetails)if(this._nodeRequestingData){let e=this._liveControlViewModel.getNodeWidget(this._nodeRequestingData);e&&s.setWorkspaceVariables(e,this._variableDetails),this._nodeRequestingData=null}else{a.getLiveControlNodesInDocument(this._internalDocument).forEach(e=>{let t=this._liveControlViewModel.getNodeWidget(e);t&&s.setWorkspaceVariables(t,this._variableDetails)})}},destroy:function(){this.inherited(arguments),this._workspaceListenerAdded&&e.removeWorkspaceListener("LiveControls")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(291),i(232)],o=i.dj.d(n,(function(e,t,i,n){var o=new Map;let r=null;function a(){return null===r&&(r=i.getMVM()),r}function s(e){var t=e.data;Array.isArray(t)||(t=[t]);var i=0,n=[];for(i=0;i<t.length;i+=1)n.push(t[i].varNames);var r=t[t.length-1].listeners;Array.isArray(r)||(r=[r]);var a=0;for(a=0;a<r.length;a+=1){var s=o.get(r[a]);s&&s(t[0].eventType,n)}}function l(e,t){return o.set(e,t),o}function c(e){return o.delete(e),o}return{addWorkspaceListener:function(e,i){a().feval("matlab.internal.datatoolsservices.RemoteWorkspaceListener.addWorkspaceListener",0,[e]),t.subscribe("/datatools/RemoteWorkspaceListener",s),l(e,i)},removeWorkspaceListener:function(e){a().feval("matlab.internal.datatoolsservices.RemoteWorkspaceListener.removeWorkspaceListener",0,[e]),c(e)},VARIABLE_CHANGED:"VARIABLE_CHANGED",VARIABLE_DELETED:"VARIABLE_DELETED",WORKSPACE_CLEARED:"WORKSPACE_CLEARED",WORKSPACE_CHANGED:"WORKSPACE_CHANGED",CHANGE_CURR_WORKSPACE:"CHANGE_CURR_WORKSPACE",_handleWorkspaceUpdates:s,_storeCallback:l,_removeCallback:c}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6622),i(286),i(209),i(1566)],o=i.dj.d(n,(function(e,t,i,n,o){var r=t.defaultPlaceholderItemLabel,a=["base","caller","debug"];return e(i,{workspace:"base",_PLACEHOLDER_ITEM_VALUE:"placeholder item",requestInProgress:!1,placeholderItem:r,filteringCallback:function(){return!0},_setFilteringCallbackAttr:function(e){this._set("filteringCallback",e)},constructor:function(e){if(e&&e.items)throw new Error("Workspace dropdown items are auto populated from workspace")},postCreate:function(){this.inherited(arguments),this.own(this.watch("placeholderItem",this._updatePlaceholderItem.bind(this))),this._initializeItemsIfEmpty(),this._requestWorkspaceVariables()},_initializeItemsIfEmpty:function(){var e=this.get("items");if(!e||0===e.length){var t=this._prepareDropdownItems([]),i=this.get("placeholderItem")?"placeholder item":"";this._updateDropdownItemsAndValue(t,i)}},_openComboBoxMenu:function(e){e&&e.typing||this._requestWorkspaceVariables(),this.inherited(arguments)},_setValueAttr:function(e){this.inherited(arguments)},_setWorkspaceAttr:function(e){-1===a.indexOf(e)&&(e="base"),this._set("workspace",e)},_updatePlaceholderItem:function(e,t,i){let n,o=this.get("items");t&&o.splice(0,1),i&&(n={label:i,value:"placeholder item"},o.unshift(n));let r,a=this.get("value");r="placeholder item"!==a||i?this._findValueToSet(o,a):"",this._updateDropdownItemsAndValue(o,r)},_requestWorkspaceVariables:function(){if(!this.requestInProgress){var e=this,t=o.getWorkspaceDisplay(this.get("workspace"),this.id);this.requestInProgress=!0,t.then(t=>{this._handleWorkspaceVariableNames(t),e.requestInProgress=!1},e=>{n.warn(e)})}},_handleWorkspaceVariableNames:function(e){if(e){var t,i,n,o=e,r=this.get("value");n=o.length>0?(o=o.filter(function(e){return this.get("filteringCallback")(e)}.bind(this))).map((function(e){return e.Name})):[],t=this._prepareDropdownItems(n),i=this._findValueToSet(t,r),this._updateDropdownItemsAndValue(t,i)}},_updateDropdownItemsAndValue:function(e,t){this.set("items",e),this.set("value",t)},_prepareDropdownItems:function(e){let t=[],i=this.get("placeholderItem");return i&&t.push({label:i,value:"placeholder item"}),e.forEach((function(e){t.push({label:e,value:e})})),t},_findValueToSet:function(e,t){if(this.get("editable"))return t;if(0===e.length)return"";return this._itemsHaveMatchingValue(e,t)||""===t?t:e[0].value},_isInDropdownItems:function(e){var t=this.get("items");return!(!t||0===t.length)&&this._itemsHaveMatchingValue(t,e)},_itemsHaveMatchingValue:function(e,t){return e.some((function(e){return e.value===t}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6623),i(6624),i(6625),i(6626)],o=i.dj.d(n,(function(e,t){return t(e,"widgets/l10n/nls/widgets",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={numSortTextAsc:"最小から最大への並べ替え",numSortTextDesc:"最大から最小への並べ替え",strSortTextAsc:"A から Z への並べ替え",strSortTextDesc:"Z から A への並べ替え",dtSortTextAsc:"古いものから順に並べ替え",dtSortTextDesc:"最新のものから順に並べ替え",durSortTextAsc:"短いものから順に並べ替え",durSortTextDesc:"長いものから順に並べ替え",defaultPlaceholderItemLabel:"選択"}},function(e,t,i){e.exports={numSortTextAsc:"从最小到最大排序",numSortTextDesc:"从最大到最小排序",strSortTextAsc:"从 A 到 Z 排序",strSortTextDesc:"从 Z 到 A 排序",dtSortTextAsc:"从最旧到最新排序",dtSortTextDesc:"从最新到最旧排序",durSortTextAsc:"从最短到最长排序",durSortTextDesc:"从最长到最短排序",defaultPlaceholderItemLabel:"选择"}},function(e,t,i){e.exports={numSortTextAsc:"오름차순으로 정렬",numSortTextDesc:"내림차순으로 정렬",strSortTextAsc:"A에서 Z 순으로 정렬",strSortTextDesc:"Z에서 A 순으로 정렬",dtSortTextAsc:"과거순으로 정렬",dtSortTextDesc:"최신순으로 정렬",durSortTextAsc:"길이가 짧은 순으로 정렬",durSortTextDesc:"길이가 긴 순으로 정렬",defaultPlaceholderItemLabel:"선택"}},function(e,t,i){e.exports={root:{numSortTextAsc:"Sort Smallest to Largest",numSortTextDesc:"Sort Largest to Smallest",strSortTextAsc:"Sort A to Z",strSortTextDesc:"Sort Z to A",dtSortTextAsc:"Sort Oldest to Newest",dtSortTextDesc:"Sort Newest to Oldest",durSortTextAsc:"Sort Shortest to Longest",durSortTextDesc:"Sort Longest to Shortest",defaultPlaceholderItemLabel:"select"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(6628)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.view","rtc.id","rtc.actionservice","rtc.richtext.images"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(207),i(209),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_IMAGE_REQUEST_CHANNEL_PREFIX:"/imageservice/request/",_IMAGE_RESPONSE_CHANNEL_PREFIX:"/imageservice/response/",_USE_ORIGINAL_SIZE:-1,constructor:function(e,n,o,a,s){this._cursor=e,this._view=n,this._imagesPlugin=s,this._actionService=a,this._id=o,this._actionService.loadActions([{id:"rtc_image",enabled:!1,callback:t.hitch(this,this._insertImage)}]),this.own(i.after(this._cursor,"onChange",t.hitch(this,this._updateActions))),r.subscribe(this._IMAGE_RESPONSE_CHANNEL_PREFIX+this._id,"_imageRequestResponse",this)},_updateActions:function(){this._actionService.updateAction("rtc_image",{enabled:this._canInsertImage()})},_insertImage:function(){o.assert(this._canInsertImage(),"Insert image action called even though it should have been disabled."),r.publish(this._IMAGE_REQUEST_CHANNEL_PREFIX+this._id)},_canInsertImage:function(){return this._imagesPlugin.canInsertImage()},_imageRequestResponse:function(e){o.assert(e&&e.data,"Invalid message data.");var t=this._imagesPlugin.getWidthToFitOnScreen(),i={imgSrc:e.data.imgSrc,width:e.data.width>t?t:this._USE_ORIGINAL_SIZE,height:this._USE_ORIGINAL_SIZE,altText:e.data.fileName};this._imagesPlugin.startImageChange();var n=this._imagesPlugin.insertImageFromData(i);this._imagesPlugin.endImageChange(n)},destroy:function(){r.unsubscribe(this._IMAGE_RESPONSE_CHANNEL_PREFIX+this._id,"_imageRequestResponse",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6630)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.embeddedoutputs.view","rtc.exportnotifier","rtc.exporters"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(266),i(528),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return t([],{constructor:function(e,t,i,n){this._internalDocument=e,this._embeddedOutputsView=t,this._exportNotifier=i,this._exporters={},n.forEach((function(e){this._exporters[e.getFormat()]=e}),this)},export:function(e,t){var i=this._exporters[e];o.assert(i,"No exporter registered for format: "+e);var r=t||{};r.range=this._getFullRange(),this._exportNotifier.notifyExportStart();var a=!0,s="";if(!this._embeddedOutputsView.isInView(null)){var l="m"===e;s=this._embeddedOutputsView.getLayoutView(),r.hasOwnProperty("hideCode")||(r.hideCode=s===n.HIDE_CODE_VIEW_STATE&&!l),a=s===n.INLINE_VIEW_STATE||s===n.HIDE_CODE_VIEW_STATE&&"docbookxml"===e||l}a||this._embeddedOutputsView.setLayoutState(n.INLINE_VIEW_STATE);var c=i.export(r);return a||c.then(function(){this._embeddedOutputsView.setLayoutState(s)}.bind(this)),c},_getFullRange:function(){var e=this._internalDocument.getFullRange();if(e){var t=e.getStartPosition();return t.setPosition(t.getNode().rootContainer(),0),new i(t,e.getEndPosition())}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(249),i(1857),i(275)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{constructor:function(e,n,o){this._documentDirtyDebugService=e,this._fileTypeService=n,this._internalDocument=o,this._debugServices=r.getInstance(),this._documentDirtyWhileDebugging=!1,this._unsavedDocument=!1,this._breakpointsErrored=!1,this.own(i.after(this._documentDirtyDebugService,"onDocumentDirtiedWhileDebuggingChanged",t.hitch(this,"_handleDocumentDirtiedWhileDebugging"),!0)),this.own(i.after(this._debugServices,"onDebugModeChanged",t.hitch(this,"_handleDebugModeChanged"),!0)),this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleDocumentChange"),!0)),this.own(i.after(this._fileTypeService,"onFileTypeChange",t.hitch(this,"_handleFileTypeChange")))},breakpointsRefreshed:function(e){e||(this._unsavedDocument=!1,this._breakpointsErrored=!1,this._updateBreakpointDirtyStatus())},breakpointsErrored:function(e,t){"save"===t&&(this._unsavedDocument=!1,this._breakpointsErrored=!0,this._updateBreakpointDirtyStatus())},_handleDocumentDirtiedWhileDebugging:function(e){this._documentDirtyWhileDebugging=e,this._updateBreakpointDirtyStatus()},_handleDebugModeChanged:function(e){!1===e&&(this._documentDirtyWhileDebugging=!1,this._updateBreakpointDirtyStatus())},_handleDocumentChange:function(e){this._filterDocumentEvents(e).length>0&&(this._unsavedDocument=!0,this._updateBreakpointDirtyStatus())},_handleFileTypeChange:function(){this._updateBreakpointDirtyStatus()},breakpointPositionUpdated:function(){this._debugServices.isDebugging&&(this._documentDirtyWhileDebugging=!0,this._updateBreakpointDirtyStatus())},_updateBreakpointDirtyStatus:function(){var e=this._isUnsavedFunctionFile()||this._documentDirtyWhileDebugging||this._breakpointsErrored;e!==this._areBreakpointsDirty&&(this._areBreakpointsDirty=e,this.breakpointDirtyStateChanged(this._areBreakpointsDirty))},_isUnsavedFunctionFile:function(){return this._unsavedDocument&&this._fileTypeService.isFunction()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205)],o=i.dj.d(n,(function(e,t){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return{getSettingKeys:function(){return["matlab.colors.BackgroundColor","matlab.colors.ForegroundColor","matlab.colors.UseSystemColor"]}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205)],o=i.dj.d(n,(function(e,t){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return{getSettingKeys:function(){return["matlab.editor.displaysettings.ShowCodeFoldingMargin"]}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205)],o=i.dj.d(n,(function(e,t){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return{getSettingKeys:function(){return["matlab.colors.commandwindow.ErrorColor","matlab.colors.commandwindow.WarningColor","matlab.editor.displaysettings.DefaultView"]}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205)],o=i.dj.d(n,(function(e,t){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return{getSettingKeys:function(){return["matlab.desktop.DisplayScaleFactor","matlab.fonts.custom.editor.FontToUse","matlab.fonts.codefont.Name","matlab.fonts.codefont.Size","matlab.fonts.codefont.Style","matlab.fonts.textfont.Name","matlab.fonts.textfont.Size","matlab.fonts.textfont.Style","matlab.fonts.custom.editor.Name","matlab.fonts.custom.editor.Size","matlab.fonts.custom.editor.Style"]}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205)],o=i.dj.d(n,e=>class extends e{createInstance(){return{getSettingKeys:function(){return["matlab.editor.MaxTokenizationLineLength"]}}}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205)],o=i.dj.d(n,(function(e,t){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return{getSettingKeys:function(){return["matlab.editor.displaysettings.ShowLineNumbers"]}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2e3)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return{getSettingKeys:function(){return Object.keys(i).map((function(e){return i[e]}))}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205)],o=i.dj.d(n,(function(e,t){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return{getSettingKeys:function(){return["matlab.editor.displaysettings.ShowRunToHereMargin"]}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205)],o=i.dj.d(n,(function(e,t){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return{getSettingKeys:function(){return["matlab.editor.displaysettings.linelimit.ShowLine","matlab.editor.displaysettings.linelimit.LineColumn","matlab.editor.displaysettings.linelimit.LineColor"]}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6642)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.execution.executionmanager"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(207)],o=i.dj.d(n,(function(e,t,i){return t(i,{constructor:function(e){e.enableTraditionalExecution()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6644)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.id","rtc.settings.service"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(212),i(1202),i(219)],o=i.dj.d(n,(function(e,t,i,n){return class extends i{constructor(e,t){super(e,t),this._saveDeferred=null,this._loadDeferred=null}async load(e,t,i){const n=await super.load(e,t,i);return this._fireLoadingCompleteEvent(),n}save(e,i){return this._saveDeferred=new t,this._fireSaveEvent(),this._saveDeferred.promise}notifyLoadComplete(){this._fireLoadingCompleteEvent()}_fireLoadingCompleteEvent(){this._fireEvent("loading_complete").then((function(){}),e.hitch(this,(function(){this._fireEvent("loading_complete")})))}_fireSaveEvent(){this._fireEvent("save")}_fireEvent(e,t){const i={eventName:e,eventData:t};return n.publish("/liveeditor/events/"+this._rtcId,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2372)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["liveeditor.filemodificationnotifier","rtc.document","rtc.internaldocument"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(203),i(205),i(1393)],o=i.dj.d(n,(function(e,t,i,n){return t(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.internaldocument","rtc.linenumberservice","rtc.focusservice","margin.statusactionbar.sectionsdecorator","rtc.margin.execution.currentlinedecorator","margin.shared.decorations"]}},createInstance:function(t,i,o,r,a,s,l){var c=[a,s].concat(l),d=new n(t,i,r,c,500,null);return e.add(d.getMarginElement(),"executionMargin"),d},priority:function(){return 10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6648)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},priority:function(){return 1},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},isExecutionAllowed:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2374)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.code.matlabfiletype","rtc.editoreventnotifier","rtc.id"]}},createInstance:function(e,t,n){return new i(e,t,n,null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6651)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter","rtc.export.html"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 40}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1353)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){this._htmlExporter=t},_createHTMLData:function(e){var t=this._htmlExporter.export({range:e,imagePath:this._clipboardTempDirPath,target:"clipboard"}),i="";return t.then((function(e){i=e})),{htmlStr:i}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6653)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter","rtc.export.rtf"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 40}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1366)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){this._rtfExporter=t},_createRTFString:function(e){var t=this._rtfExporter.export({range:e}),i="";return t.then((function(e){i=e})),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6655),i(207),i(208),i(2375),i(6660),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(i,{_BANNER_TITLE:t.bannerTitle,_BANNER_TEXT:t.bannerText,_BANNER_LINK_TEXT:t.bannerLink,_BANNER_BUTTON_TEXT:t.bannerButton,_BANNER_TEXT_WIDTH:"600px",_LEARN_MORE_LINK:"https://www.mathworks.com/products/matlab/live-editor.html?s_tid=pl_ml_editor_banner01",_BANNER_SETTINGS_GROUP:["matlab","editor","displaysettings"],_BANNER_SETTING_NAME:"ShowOpenAsLiveScriptBanner",_LIVE_CLASS_SETTINGS_GROUP:["matlab","desktop"],_LIVE_CLASS_SETTING_NAME:"EnableLiveClassSupport",_REGEXP_SINGLE_QUOTES:/'/g,_REGEXP_NEWLINE:/\n/g,_banner:null,constructor:function(e,t,i,n,o,r,s,l,c,d,u){this._rtcDomNodeExternal=e,this._featureInterface=t,this._fileType=i,this._view=n,this._sectionModel=o,this._hyperlinkService=r,this._executionService=s,this._document=l,this._focusService=c,this._bannerManager=d,this._documentLoadedService=u,this._settingsService=a,this._initialize()},_initialize:function(){this._banner=null,this._initialFileType=this._fileType.getFileType(),this._hasBeenUnsupportedType=!1,this._isSettingEnabled=!1,this._hasExplicitSection=this._sectionModel.hasExplicitSection(),this._liveClassesSupported=!1,this._enabled=!1,this._aspectHandles=[],this._sectionModelUpdatedHandle=n.after(this._sectionModel,"onModelUpdated",this._handleSectionModelUpdated.bind(this)),this.own(n.after(this._fileType,"onFileTypeChange",this._handleFileTypeChange.bind(this),!0)),this._queryPreferencesOnStartup(),this._documentLoadedService.whenDocumentLoadedWithText(function(){this._enabled=!0,this._attemptToShowBanner()}.bind(this))},_handleSectionModelUpdated:function(){this._hasExplicitSection=this._sectionModel.hasExplicitSection(),this._enabled&&(this._sectionModelUpdatedHandle.remove(),this._hasExplicitSection&&this._attemptToShowBanner())},_handleSettingsUpdated:function(e){this._isSettingEnabled=e,e?this._attemptToShowBanner():this._removeBanner()},_handleViewResize:function(){this._banner&&this._banner.resize()},_handleFileTypeChange:function(e){if(this._initialFileType=-1===this._initialFileType?e:this._initialFileType,!this._isSupportedFileType())return this._hasBeenUnsupportedType=!0,void this._removeBanner();this._attemptToShowBanner()},_isSupportedFileType:function(){return!this._fileType.isClass()||this._liveClassesSupported},_removeBanner:function(){this._banner&&(this._banner.closeBanner(),this._bannerManager.deregisterBanner(this._banner,this._rtcDomNodeExternal),this._banner=null,this._sectionModelUpdatedHandle.remove(),this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[])},_attemptToShowBanner:function(){this._enabled&&this._shouldShowBanner()&&this._createBanner()},_shouldShowBanner:function(){return this._initialFileType===this._fileType.FILE_TYPE.ScriptFile&&this._hasExplicitSection&&this._isSettingEnabled&&!this._hasBeenUnsupportedType},_createBanner:function(){this._banner||(this._banner=new o({bannerTitle:this._BANNER_TITLE,bannerText:this._BANNER_TEXT,bannerLink:{text:this._BANNER_LINK_TEXT,callback:this._onLinkClicked.bind(this)},bannerButton:{text:this._BANNER_BUTTON_TEXT,callback:this._onButtonClicked.bind(this)},bannerIcon:r.ICON_TYPE.OPEN_AS_LIVE_SCRIPT,parent:this._bannerManager.getTopBannerContainer(),sibling:this._rtcDomNodeExternal,position:"first",type:"top",resizer:this._featureInterface.resize,focusService:this._focusService,textMaxWidth:this._BANNER_TEXT_WIDTH,onCloseButtonPressed:this._handleCloseButtonClicked.bind(this)}),this._bannerManager.registerBanner(this._banner,this._rtcDomNodeExternal),this._aspectHandles.push(n.after(this._view,"onResize",function(){this._handleViewResize()}.bind(this))))},_onLinkClicked:function(){this._hyperlinkService.openUrl(this._LEARN_MORE_LINK)},_onButtonClicked:function(){this._handleOpenAsLiveScript()},_handleOpenAsLiveScript:function(){this._executionService.executionEval(this._getOpenAsLiveCodeCommand())},_getOpenAsLiveCodeCommand:function(){var e=this._document.getText();return"matlab.internal.liveeditor.openAsLiveCode(['"+(e=(e=e.replace(this._REGEXP_SINGLE_QUOTES,"''")).replace(this._REGEXP_NEWLINE,"' newline '"))+"'])"},_handleCloseButtonClicked:function(){this._removeBanner(),this._settingsService.setSetting(this._BANNER_SETTINGS_GROUP,this._BANNER_SETTING_NAME,!1)},_queryPreferencesOnStartup:function(){this._settingsService.getSetting(this._BANNER_SETTINGS_GROUP,this._BANNER_SETTING_NAME).then(function(e){this._handleSettingsUpdated(e.value)}.bind(this)),this._settingsService.getSetting(this._LIVE_CLASS_SETTINGS_GROUP,this._LIVE_CLASS_SETTING_NAME).then(function(e){this._liveClassesSupported=e.value}.bind(this)),this.own(this._settingsService.listenTo(this._BANNER_SETTINGS_GROUP,this._BANNER_SETTING_NAME,function(e){this._handleSettingsUpdated(e.newValue)}.bind(this))),this.own(this._settingsService.listenTo(this._LIVE_CLASS_SETTINGS_GROUP,this._LIVE_CLASS_SETTING_NAME,function(e){this._liveClassesSupported=e.newValue,this._liveClassesSupported||this._handleFileTypeChange(this._fileType.getFileType())}.bind(this)))},destroy:function(){this._removeBanner()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(6656),i(6657),i(6658),i(6659)],o=i.dj.d(n,(function(e,t){return t(e,"plaincode_features/l10n/nls/openAsLiveScriptBanner",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={bannerButton:"ライブ スクリプトとして開く",bannerLink:"詳細",bannerText:"コード、出力、および書式設定されたテキストで構成されるスクリプトを、単一の実行可能なドキュメントとして編集および実行します。ライブ スクリプトは、探索的プログラミング、プレゼンテーション、および教育用として、または作業を他のユーザーと共有するために使用してください。",bannerTitle:"このファイルをライブ スクリプトとして開く"}},function(e,t,i){e.exports={bannerButton:"以实时脚本方式打开",bannerLink:"了解更多",bannerText:"编辑和运行集代码、输出和格式化文本于一体的可执行脚本文档。使用实时脚本进行探索性编程、演示和教学,或与他人共享您的工作。",bannerTitle:"将此文件作为实时脚本打开"}},function(e,t,i){e.exports={bannerButton:"라이브 스크립트로 열기",bannerLink:"자세히 알아보기",bannerText:"코드, 출력값, 서식 지정된 텍스트가 함께 포함된 스크립트를 하나의 실행 가능한 문서 형태로 편집하고 실행해 보십시오. 라이브 스크립트를 사용하면 출력을 빠르게 확인하면서 프로그램을 작성할 수 있으며, 발표나 교육 용도로 활용하거나 본인의 작업물을 다른 사람들과 공유할 수 있습니다.",bannerTitle:"이 파일을 라이브 스크립트로 열어보세요"}},function(e,t,i){e.exports={root:{bannerButton:"Open as a live script",bannerLink:"Learn more",bannerText:"Edit and run scripts with code, output, and formatted text in a single executable document. Use live scripts for exploratory programming, presentation and teaching, or to share your work with others.",bannerTitle:"Open this file as a live script"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{ICON_TYPE:{OPEN_AS_LIVE_SCRIPT:"openAsLiveScript"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6662)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.actionservice","rtc.cursor","rtc.internaldocument","rtc.document.info","rtc.backingstore","rtc.settings.service"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 50}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(492),i(1390),i(219),i(6663),i(6674)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n,i],{_EVENT_PAGESETTINGS_REQUEST_CHANNEL_PREFIX:"/liveeditor/events/pagesetupRequest/",_EVENT_PAGESETTINGS_RESPONSE_CHANNEL_PREFIX:"/liveeditor/events/pagesetupResponse",_DIALOG_ID:"rtcPageSetupDialog",constructor:function(e,t,i,n,r,a){this._backingstore=a,o.subscribe(this._EVENT_PAGESETTINGS_REQUEST_CHANNEL_PREFIX+e,"_handlePageSettingsRequest",this)},_print:function(e){this._jprint(e)},_jprintRange:function(e,t,i){var n=this._backingstore.getFileName();this._javaPrint(e,n,t,i,!1)},_handlePrintRequest:function(){var e=this._EVENT_PRINT_RESPONSE_CHANNEL_PREFIX+this._rtcId;o.publish(e,{status:!0,contentType:"none",content:""}),this._jprint()},_handlePageSettingsRequest:function(e){var i=e.data||{};this._dialog=new r({settings:i.settings,fontList:i.fontlist,acceptCallback:t.hitch(this,this._acceptCallback)})},_openDialog:function(e,i){document.getElementById(this._DIALOG_ID)||(this._dialog=new r({settings:e,fontList:i,acceptCallback:t.hitch(this,this._acceptCallback)}))},_acceptCallback:function(e){var t={status:!0,cancelled:!1,settings:e};o.publish(this._EVENT_PAGESETTINGS_RESPONSE_CHANNEL_PREFIX,t)},serializePlugin:function(e){document.getElementById(this._DIALOG_ID)&&this._dialog&&this._dialog.close()},deserializePlugin:function(e,t){},destroy:function(){o.unsubscribe(this._EVENT_PAGESETTINGS_REQUEST_CHANNEL_PREFIX+this._rtcId,"_handlePageSettingsRequest",this),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(204),i(384),i(273),i(262),i(488),i(6664),i(6671),i(6672),i(1203),i(6673)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return n([t,e,i],{templateString:p,widgetsInTemplate:!0,_DIALOG_ID:"rtcPageSetupDialog",_TAB_CONTAINER_ID:"tabContainer",constructor:function(e){e=e||{},this._settings=e.settings||{},this._fontList=e.fontList,this._acceptCallback=e.acceptCallback||function(){}},postCreate:function(){this.inherited(arguments),this._dialogWidget=s.createDialog({id:this._DIALOG_ID,title:h.dialogTitle,content:this,buttons:[a.OK,a.CANCEL],dialogType:s.MODAL,draggable:!0,resizable:!0});var e=new l({id:this._TAB_CONTAINER_ID,displayToolTipsOnTruncatedTabs:!0,tabReorderingEnabled:!1,tabsRepositioningEnabled:!1,tabWidthAdjustmentEnabled:!1,shrinkTabsToFit:!0},this._TAB_CONTAINER_ID),t=new r({title:h.layoutTab});this._layoutPane=new u,e.addWithProperties(this._layoutPane.create(this._settings),t),this._headerPane=new d,e.addChild(this._headerPane.create(this._settings)),this._fontPane=new c,e.addChild(this._fontPane.create(this._settings,this._fontList)),e.startup(),t.set("isShowing",!0),this._dialogWidget.addButtonEventListener(a.CANCEL,this.close.bind(this),!1),this._dialogWidget.addButtonEventListener(a.OK,this._handleOK.bind(this),!1)},_handleOK:function(){var e=this._layoutPane.getSettings();o.mixin(e,this._headerPane.getSettings(),this._fontPane.getSettings()),this._acceptCallback(e),this.close()},close:function(){this._dialogWidget.close()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(276),i(1567),i(203),i(204),i(832),i(213),i(286),i(269),i(422),i(1203)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d=0,u=1,h=2,p=3,f=1,g=2;return i(null,{_FONT_TAB_ID:"fontTab",_CHOOSE_FONT_LABEL_ID:"chooseFontLabel",_CHOOSE_FONT_COMBO_ID:"chooseFontCombo",_FAMILY_COMBO_ID:"familyCombo",_FACE_COMBO_ID:"faceCombo",_SIZE_COMBO_ID:"sizeCombo",_PREVIEW_FIELD_ID:"fontPreviewField",_INHERITFONTRADIO_ID:"inheritFontRadio",_CUSTOMFONTRADIO_ID:"customFontRadio",_FONT_RADIOGROUP:"CustomFontGroup",_FONT_SIZES:[{label:"8",value:"8"},{label:"9",value:"9"},{label:"10",value:"10"},{label:"12",value:"12"},{label:"14",value:"14"},{label:"18",value:"18"},{label:"24",value:"24"},{label:"36",value:"36"},{label:"48",value:"48"}],_DEFAULT_SETTINGS:{UseCustomFontForBody:!1,UseCustomFontForHeader:!1},_DEFAULT_FONT_LIST:["monospace","serif","sans-serif"],constructor:function(){},create:function(i,r){i=n.mixin({},this._DEFAULT_SETTINGS,i),r=r||this._DEFAULT_FONT_LIST;var a=new e({title:c.fontsTab},this._FONT_TAB_ID);return this._bodyFontInfo={useCustom:i.UseCustomFontForBody,font:i.BodyCustomFont||{JavaFontFace:0,JavaFontSize:10},index:-1},this._headerFontInfo={useCustom:i.UseCustomFontForHeader,font:i.HeaderCustomFont||{JavaFontFace:0,JavaFontSize:10},index:-1},this._createFontCombo(i),this._createCustomRadioGroup(i,r),this._sampleField=new t({title:c.sample,toggleable:!1},this._PREVIEW_FIELD_ID),this._sampleField.startup(),this._headerPreviewField=o("#fontPreviewContent",this._sampleField.domNode)[0],this._updateFontCombos(),this._updatePreview(),a},getSettings:function(){var e={UseCustomFontForBody:this._bodyFontInfo.useCustom,UseCustomFontForHeader:this._headerFontInfo.useCustom};return this._bodyFontInfo.useCustom&&(e.BodyCustomFont=this._bodyFontInfo.font,e.BodyCustomFont.JavaFontFamily=this._fontCombobox.items[this._bodyFontInfo.index].label),this._headerFontInfo.useCustom&&(e.HeaderCustomFont=this._headerFontInfo.font,e.HeaderCustomFont.JavaFontFamily=this._fontCombobox.items[this._headerFontInfo.index].label),e},_createFontCombo:function(e){new s({text:c.chooseFontLabel},this._CHOOSE_FONT_LABEL_ID).startup();var t=[{label:c.fontBody,value:f},{label:c.fontHeader,value:g}];this._pageCombobox=new a({items:t,value:1},this._CHOOSE_FONT_COMBO_ID),this._pageCombobox.startup(),this._pageCombobox.on("change",function(e){this._targetFontChanged()}.bind(this))},_createCustomRadioGroup:function(e,t){this._inheritRadioButton=new l({text:c.useEditorFont,buttonGroup:this._FONT_RADIOGROUP,style:{display:"block"},checked:!e.UseCustomFontForBody},this._INHERITFONTRADIO_ID),this._inheritRadioButton.startup(),this._inheritRadioButton.on("change",function(e){this._customFontChanged()}.bind(this)),this._customRadioButton=new l({text:c.useCustomFont,buttonGroup:this._FONT_RADIOGROUP,checked:e.UseCustomFontForBody},this._CUSTOMFONTRADIO_ID),this._customRadioButton.startup(),this._customRadioButton.on("change",function(e){this._customFontChanged()}.bind(this));var i=[],n=-1;t.forEach((function(e,t){var o={label:e,value:t};i.push(o),this._bodyFontInfo.index<0&&e===this._bodyFontInfo.font.JavaFontFamily&&(this._bodyFontInfo.index=t),this._headerFontInfo.index<0&&e===this._headerFontInfo.font.JavaFontFamily&&(this._headerFontInfo.index=t),n<0&&"monospaced"===e.toLowerCase()&&(n=t)}),this),this._bodyFontInfo.index<0&&(this._bodyFontInfo.index=n>=0?n:0),this._headerFontInfo.index<0&&(this._headerFontInfo.index=n>=0?n:0),this._fontCombobox=new a({items:i,value:this._bodyFontInfo.index},this._FAMILY_COMBO_ID),this._fontCombobox.startup(),this._fontCombobox.on("change",function(e){this._updateFont()}.bind(this));var o=[{label:c.plain,value:d},{label:c.bold,value:u},{label:c.italic,value:h},{label:c.bolditalic,value:p}];this._faceCombobox=new a({items:o,value:this._bodyFontInfo.font.JavaFontFace},this._FACE_COMBO_ID),this._faceCombobox.startup(),this._faceCombobox.on("change",function(e){this._updateFont()}.bind(this)),this._sizeCombobox=new a({items:this._FONT_SIZES,value:this._bodyFontInfo.font.JavaFontSize,editable:!0},this._SIZE_COMBO_ID),this._sizeCombobox.startup(),this._sizeCombobox.on("change",function(e){this._updateFontSize(e)}.bind(this))},_targetFontChanged:function(e){this._pageCombobox.value===f?(this._inheritRadioButton.textNode.textContent=c.useEditorFont,this._inheritRadioButton.set("checked",!this._bodyFontInfo.useCustom),this._customRadioButton.set("checked",this._bodyFontInfo.useCustom),this._fontCombobox.set("value",this._bodyFontInfo.index),this._faceCombobox.set("value",this._bodyFontInfo.font.JavaFontFace),this._sizeCombobox.set("value",""+this._bodyFontInfo.font.JavaFontSize)):(this._inheritRadioButton.textNode.textContent=c.useBodyFont,this._inheritRadioButton.set("checked",!this._headerFontInfo.useCustom),this._customRadioButton.set("checked",this._headerFontInfo.useCustom),this._fontCombobox.set("value",this._headerFontInfo.index),this._faceCombobox.set("value",this._headerFontInfo.font.JavaFontFace),this._sizeCombobox.set("value",""+this._headerFontInfo.font.JavaFontSize)),this._customFontChanged()},_customFontChanged:function(){1===this._pageCombobox.value?this._bodyFontInfo.useCustom=this._customRadioButton.checked:this._headerFontInfo.useCustom=this._customRadioButton.checked,this._updateFontCombos(),this._updatePreview()},_updateFontCombos:function(){this._fontCombobox.set("disabled",this._inheritRadioButton.checked),this._faceCombobox.set("disabled",this._inheritRadioButton.checked),this._sizeCombobox.set("disabled",this._inheritRadioButton.checked),r.set(this._sampleField.domNode,{visibility:this._inheritRadioButton.checked?"hidden":"visible"})},_updateFontSize:function(e){var t=Number(e.mwEventData.newValue);if(isNaN(t)||t<=0)return this._sizeCombobox.set("validationState","error"),void this._sizeCombobox.set("errorText","Please use positive integers only.");Number.isInteger(t)?this._sizeCombobox.set("validationState","normal"):(this._sizeCombobox.set("validationState","warning"),this._sizeCombobox.set("warningText","Decimal will be rounded to an integer.")),this._updateFont()},_updateFont:function(e){var t,i=this._fontCombobox.value;(t=this._pageCombobox.value===f?this._bodyFontInfo:this._headerFontInfo).index=i,t.font.JavaFontFamily=this._fontCombobox.items[i].label,t.font.JavaFontFace=this._faceCombobox.value,t.font.JavaFontSize=parseInt(this._sizeCombobox.value,10),this._updatePreview()},_updatePreview:function(){var e={fontFamily:this._fontCombobox.items[this._fontCombobox.value].label,fontSize:this._sizeCombobox.value+"pt",fontWeight:this._faceCombobox.value===u||this._faceCombobox.value===p?"bold":"normal",fontStyle:this._faceCombobox.value>=h?"italic":"normal"};r.set(this._headerPreviewField,e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n\t<div data-dojo-attach-event="ondijitclick:_onTitleClick, onkeydown:_onTitleKey"\n\t\t\tclass="dijitTitlePaneTitle" data-dojo-attach-point="titleBarNode" id="${id}_titleBarNode">\n\t\t<div class="dijitTitlePaneTitleFocus" data-dojo-attach-point="focusNode">\n\t\t\t<span data-dojo-attach-point="arrowNode" class="dijitInline dijitArrowNode" role="presentation"></span\n\t\t\t><span data-dojo-attach-point="arrowNodeInner" class="dijitArrowNodeInner"></span\n\t\t\t><span data-dojo-attach-point="titleNode" class="dijitTitlePaneTextNode"></span>\n\t\t</div>\n\t</div>\n\t<div class="dijitTitlePaneContentOuter" data-dojo-attach-point="hideNode" role="presentation">\n\t\t<div class="dijitReset" data-dojo-attach-point="wipeNode" role="presentation">\n\t\t\t<div class="dijitTitlePaneContentInner" data-dojo-attach-point="containerNode" role="region" id="${id}_pane" aria-labelledby="${id}_titleBarNode">\n\t\t\t\t\x3c!-- nested divs because wipeIn()/wipeOut() doesn\'t work right on node w/padding etc. Put padding on inner div. --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'},function(e,t){e.exports='<fieldset>\n\t<legend data-dojo-attach-event="ondijitclick:_onTitleClick, onkeydown:_onTitleKey"\n\t\t\tdata-dojo-attach-point="titleBarNode, titleNode">\n\t\t<span data-dojo-attach-point="arrowNode" class="dijitInline dijitArrowNode" role="presentation"></span\n\t\t><span data-dojo-attach-point="arrowNodeInner" class="dijitArrowNodeInner"></span\n\t\t><span data-dojo-attach-point="titleNode, focusNode" class="dijitFieldsetLegendNode" id="${id}_titleNode"></span>\n\t</legend>\n\t<div class="dijitFieldsetContentOuter" data-dojo-attach-point="hideNode" role="presentation">\n\t\t<div class="dijitReset" data-dojo-attach-point="wipeNode" role="presentation">\n\t\t\t<div class="dijitFieldsetContentInner" data-dojo-attach-point="containerNode" role="region"\n\t\t\t\t \tid="${id}_pane" aria-labelledby="${id}_titleNode">\n\t\t\t\t\x3c!-- nested divs because wipeIn()/wipeOut() doesn\'t work right on node w/padding etc. Put padding on inner div. --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</fieldset>\n'},function(e,t,i){e.exports={dialogTitle:"ページ設定",layoutTab:"レイアウト",headerTab:"ヘッダー",fontsTab:"フォント",optionsField:"オプション",printHeader:"印刷ヘッダー",printLineNumbers:"行数の印刷",wrapLines:"行の折り返し",highlightField:"構文の強調表示",blackWhiteText:"モノクロ テキスト",coloredText:"カラー テキスト",styledText:"スタイル付きテキスト",pageNumberLabel:"ページ番号:",pageNum:"# ページ",numOfNum:"# / n ページ",numdivNum:"# / n",borderLabel:"境界線:",singleLine:"一重線",doubleLine:"二重線",box:"ボックス",shadedBox:"網かけ",none:"なし",layoutLabel:"レイアウト:",standardOneLine:"標準 1 行",standardTwoLine:"標準 2 行",simpleOneLine:"簡略 1 行",simpleTwoLine:"簡略 2 行",preview:"プレビュー",sample:"サンプル",chooseFontLabel:"フォントの選択:",fontBody:"本文",fontHeader:"ヘッダー",useEditorFont:"エディター フォントを使用",useBodyFont:"本文のフォントを使用",useCustomFont:"カスタム フォントを使用",plain:"標準",bold:"太字",italic:"イタリック",bolditalic:"太字イタリック"}},function(e,t,i){e.exports={dialogTitle:"页面设置",layoutTab:"布局",headerTab:"页眉",fontsTab:"字体",optionsField:"选项",printHeader:"打印页眉",printLineNumbers:"打印行号",wrapLines:"换行",highlightField:"语法高亮",blackWhiteText:"黑白文本",coloredText:"彩色文本",styledText:"样式文本",pageNumberLabel:"页码:",pageNum:"页码",numOfNum:"第 # 页/共 n 页",numdivNum:"#/n",borderLabel:"边框:",singleLine:"单线",doubleLine:"双线",box:"框",shadedBox:"带有底色的框",none:"无",layoutLabel:"布局:",standardOneLine:"标准单行",standardTwoLine:"标准双行",simpleOneLine:"简单单行",simpleTwoLine:"简单双行",preview:"预览",sample:"示例",chooseFontLabel:"选择字体:",fontBody:"正文",fontHeader:"标题",useEditorFont:"使用编辑器字体",useBodyFont:"使用正文字体",useCustomFont:"使用自定义字体",plain:"普通",bold:"粗体",italic:"斜体",bolditalic:"粗斜体"}},function(e,t,i){e.exports={dialogTitle:"페이지 설정",layoutTab:"레이아웃",headerTab:"머리글",fontsTab:"글꼴",optionsField:"옵션",printHeader:"머리글 인쇄",printLineNumbers:"라인 번호 인쇄",wrapLines:"줄 바꿈",highlightField:"구문 강조 표시",blackWhiteText:"흑백 텍스트",coloredText:"컬러 텍스트",styledText:"스타일 적용 텍스트",pageNumberLabel:"페이지 번호:",pageNum:"# 페이지",numOfNum:"총 n쪽 중 #쪽",numdivNum:"# / n",borderLabel:"테두리:",singleLine:"단일 선",doubleLine:"이중 선",box:"상자",shadedBox:"음영 처리된 상자",none:"없음",layoutLabel:"레이아웃:",standardOneLine:"한 줄로 표시",standardTwoLine:"두 줄로 표시",simpleOneLine:"한 줄로 간략하게 표시",simpleTwoLine:"두 줄로 간략하게 표시",preview:"미리보기",sample:"샘플",chooseFontLabel:"글꼴 선택:",fontBody:"본문",fontHeader:"머리글",useEditorFont:"편집기 글꼴 사용",useBodyFont:"본문 글꼴 사용",useCustomFont:"사용자 지정 글꼴 사용",plain:"보통",bold:"굵게",italic:"기울임꼴",bolditalic:"굵은 기울임꼴"}},function(e,t,i){e.exports={root:{dialogTitle:"Page Setup",layoutTab:"Layout",headerTab:"Header",fontsTab:"Fonts",optionsField:"Options",printHeader:"Print header",printLineNumbers:"Print line numbers",wrapLines:"Wrap lines",highlightField:"Syntax Highlighting",blackWhiteText:"Black and white text",coloredText:"Colored text",styledText:"Styled text",pageNumberLabel:"Page Number:",pageNum:"Page #",numOfNum:"# of n",numdivNum:"# / n",borderLabel:"Border:",singleLine:"Single line",doubleLine:"Double line",box:"Box",shadedBox:"Shaded box",none:"None",layoutLabel:"Layout:",standardOneLine:"Standard one line",standardTwoLine:"Standard two line",simpleOneLine:"Simple one line",simpleTwoLine:"Simple two line",preview:"Preview",sample:"Sample",chooseFontLabel:"Choose font:",fontBody:"Body",fontHeader:"Header",useEditorFont:"Use Editor font",useBodyFont:"Use body font",useCustomFont:"Use custom font",plain:"Plain",bold:"Bold",italic:"Italic",bolditalic:"Bold Italic"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(276),i(1567),i(203),i(204),i(832),i(213),i(221),i(286),i(269),i(1203)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d=1,u=2,h=3,p=1,f=2,g=3,m=4,_=5,v=1,b=2,y=3,C=4;return i(null,{_HEADER_TAB_ID:"headerTab",_PAGENUMBER_LABEL_ID:"pageNumberLabel",_PAGENUMBER_COMBO_ID:"pageNumberCombo",_BORDER_LABEL_ID:"borderLabel",_BORDER_COMBO_ID:"borderCombo",_LAYOUT_LABEL_ID:"layoutLabel",_LAYOUT_COMBO_ID:"layoutCombo",_PREVIEW_FIELD_ID:"headerPreviewField",_DEFAULT_SETTINGS:{PageNumberStyle:u,BorderStyle:f,HeaderLayoutStyle:v},constructor:function(){},create:function(i){i=n.mixin({},this._DEFAULT_SETTINGS,i);var r=new e({title:c.headerTab},this._HEADER_TAB_ID);this._createPageNumberCombo(i),this._createBorderCombo(i),this._createLayoutCombo(i);var a=new t({title:c.preview,toggleable:!1},this._PREVIEW_FIELD_ID);return r.addChild(a),a.startup(),this._headerPreviewField=o("#headerPreviewContent",r.domNode)[0],this._updatePreview(),r},getSettings:function(){return{BorderStyle:this._borderComboBox.value,HeaderLayoutStyle:this.layoutComboBox.value,PageNumberStyle:this._pageCombobox.value}},_createPageNumberCombo:function(e){new l({text:c.pageNumberLabel},this._PAGENUMBER_LABEL_ID).startup();var t=[{label:c.pageNum,value:d},{label:c.numOfNum,value:u},{label:c.numdivNum,value:h}];this._pageCombobox=new s({items:t,value:e.PageNumberStyle},this._PAGENUMBER_COMBO_ID),this._pageCombobox.startup(),this._pageCombobox.on("change",function(e){this._updatePreview()}.bind(this))},_createBorderCombo:function(e){new l({text:c.borderLabel},this._BORDER_LABEL_ID).startup();var t=[{label:c.singleLine,value:p},{label:c.doubleLine,value:f},{label:c.box,value:g},{label:c.shadedBox,value:m},{label:c.none,value:_}];this._borderComboBox=new s({items:t,value:e.BorderStyle},this._BORDER_COMBO_ID),this._borderComboBox.startup(),this._borderComboBox.on("change",function(e){this._updatePreview()}.bind(this))},_createLayoutCombo:function(e){new l({text:c.layoutLabel},this._LAYOUT_LABEL_ID).startup();var t=[{label:c.standardOneLine,value:v},{label:c.standardTwoLine,value:b},{label:c.simpleOneLine,value:y},{label:c.simpleTwoLine,value:C}];this.layoutComboBox=new s({items:t,value:e.HeaderLayoutStyle},this._LAYOUT_COMBO_ID),this.layoutComboBox.startup(),this.layoutComboBox.on("change",function(e){this._updatePreview()}.bind(this))},_updatePreview:function(){var e=new Date,t=a("windows")?"C:\\...\\":"/.../",i="";switch(this._pageCombobox.value){case d:i="Page 1";break;case u:i="1 of n";break;case h:i="1/n"}var n="",o="";switch(this.layoutComboBox.value){case v:n='<div style="display: inline;">'+e.toLocaleDateString()+" "+e.getHours()+":"+e.getMinutes()+"&nbsp;&nbsp;&nbsp;&nbsp;"+t+'filename.m</div><div style="display: inline; float: right;">'+i+"</div>";break;case b:n='<div style="display: inline;">'+t+'filename.m</div><div style="display: inline; float: right;">'+i+"</div>",o='<br><div style="display: inline;">'+e.toDateString()+'</div><div style="display: inline; float: right;">'+e.toLocaleTimeString()+"</div>";break;case y:n='<div style="display: inline;">'+t+'filename.m</div><div style="display: inline; float: right;">'+i+"</div>";break;case C:n='<div style="display: inline;">filename.m</div><div style="display: inline; float: right;">'+i+"</div>",o='<br><div style="display: inline;">'+t+'</div><div style="display: inline; float: right;">'+e.toDateString()+"</div>"}var s={backgroundColor:"white",border:"none"};switch(this._borderComboBox.value){case p:s.borderBottom="1px solid";break;case f:s.borderBottom="3px double";break;case g:s.border="1px solid";break;case m:s.border="1px solid",s.backgroundColor="lightgrey";break;default:s.border="none",s.borderBottom="none"}r.set(this._headerPreviewField,s),this._headerPreviewField.innerHTML=n+o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(276),i(1567),i(203),i(204),i(832),i(308),i(422),i(1203)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return i(null,{_LAYOUT_TAB_ID_CLASS:"layoutTab",_LAYOUT_CONTROLS_ID_CLASS:"layoutControls",_OPTIONFIELD_ID:"optionField",_HIGHLIGHTFIELD_ID:"syntaxField",_PREVIEW_ID_CLASS:"layoutPreview",_HIGHLIGHT_RADIOGROUP:"SyntaxHighlightGroup",_CONTROLHOLDER_CLASS:".controlHolder",_PREVIEW_CONTENT_CLASS:".layoutPreviewContent",_DEFAULT_SETTINGS:{PrintHeader:!0,PrintLineNumber:!1,WrapLines:!0,SyntaxStyle:1},_KEYWORD_STYLE:{color:"'color: blue;'",style:"'font-weight: bold;'"},_COMMENT_STYLE:{color:"'color: green;'",style:"'font-style: italic;'"},_STRING_STYLE:{color:"'color: red;'"},constructor:function(){},create:function(t){t=n.mixin({},this._DEFAULT_SETTINGS,t);var i=new e({},this._LAYOUT_TAB_ID_CLASS),r=new e({},this._LAYOUT_CONTROLS_ID_CLASS);r.addChild(this._createOptionsField(t)),r.addChild(this._createHighlightField(t)),i.addChild(r);var a=new e({},this._PREVIEW_ID_CLASS);return i.addChild(a),this._previewContent=o(this._PREVIEW_CONTENT_CLASS,a.domNode)[0],this._updatePreview(),i},getSettings:function(){var e=1;return this._bwRadioButton.checked?e=2:this._styledRadioButton.checked&&(e=3),{PrintHeader:this._printHeaderCheck.checked,PrintLineNumber:this._printLineNumbersCheck.checked,WrapLines:this._wrapLinesCheck.checked,SyntaxStyle:e}},_createOptionsField:function(e){var i=new t({title:s.optionsField,toggleable:!1},this._OPTIONFIELD_ID),n=o(this._CONTROLHOLDER_CLASS,i.domNode);return this._printHeaderCheck=new r({text:s.printHeader,checked:e.PrintHeader}),this._printHeaderCheck.placeAt(n[0]),this._printHeaderCheck.startup(),this._printHeaderCheck.on("change",function(e){this._updatePreview()}.bind(this)),this._printLineNumbersCheck=new r({text:s.printLineNumbers,checked:e.PrintLineNumber}),this._printLineNumbersCheck.placeAt(n[1]),this._printLineNumbersCheck.startup(),this._printLineNumbersCheck.on("change",function(e){this._updatePreview()}.bind(this)),this._wrapLinesCheck=new r({text:s.wrapLines,checked:e.WrapLines}),this._wrapLinesCheck.placeAt(n[2]),this._wrapLinesCheck.startup(),this._wrapLinesCheck.on("change",function(e){this._updatePreview()}.bind(this)),i.startup(),i},_createHighlightField:function(e){var i=new t({title:s.highlightField,toggleable:!1},this._HIGHLIGHTFIELD_ID),n=o(this._CONTROLHOLDER_CLASS,i.domNode);return this._bwRadioButton=new a({text:s.blackWhiteText,buttonGroup:this._HIGHLIGHT_RADIOGROUP,checked:2===e.SyntaxStyle}),this._bwRadioButton.placeAt(n[0]),this._bwRadioButton.startup(),this._bwRadioButton.on("change",function(e){this._updatePreview()}.bind(this)),this._coloredRadioButton=new a({text:s.coloredText,buttonGroup:this._HIGHLIGHT_RADIOGROUP,checked:1===e.SyntaxStyle}),this._coloredRadioButton.placeAt(n[1]),this._coloredRadioButton.startup(),this._coloredRadioButton.on("change",function(e){this._updatePreview()}.bind(this)),this._styledRadioButton=new a({text:s.styledText,buttonGroup:this._HIGHLIGHT_RADIOGROUP,checked:3===e.SyntaxStyle}),this._styledRadioButton.placeAt(n[2]),this._styledRadioButton.startup(),this._styledRadioButton.on("change",function(e){this._updatePreview()}.bind(this)),i.startup(),i},_updatePreview:function(){this._number=0;var e="";this._printHeaderCheck.checked&&(e+="<div style='border-bottom: 1pt solid; white-space: normal; line-height: 4pt;'><div style='display: inline;'>C:/Folder1/Folder2/newfile.m</div><div style='display: inline; float: right;'>Page 1 of 14</div><br><div style='display: inline;'>December 6, 2001</div><div style='display: inline; float: right;'>12:43:36 PM</div></div><br>"),e+="<div style='",e+=this._wrapLinesCheck.checked?"white-space: pre-wrap; ":"white-space: pre; ",e+="line-height: 4pt; ",e+="'>",e+=this._makeLine(this._decorate("function",this._KEYWORD_STYLE)+" x, y = xfunction(varargin)"),e+=this._makeLine(this._decorate("% This is the first line of comments.",this._COMMENT_STYLE)),e+=this._makeLine(this._decorate("% There are no real variables, but if",this._COMMENT_STYLE)),e+=this._makeLine(this._decorate("% they would be described here.",this._COMMENT_STYLE));for(var t=0;t<=4;t+=1)e+=this._makeLine("&nbsp;"),e+=this._makeLine(this._decorate("% This is some random text to display",this._COMMENT_STYLE)),e+=this._makeLine("x ~= 34"),e+=this._makeLine(" error('"+this._decorate("A highlighted string of text",this._STRING_STYLE)+"';)"),e+=this._makeLine(" Bl x Bl x Bl x Bl x Bl x Bl x Bl x Bl x Bl x Bl x Bl x BlxBlxBlxBlx Bl x Bl x Bl x Bl x Bl x Bl"),e+=this._makeLine(this._decorate("keyword",this._KEYWORD_STYLE)),e+=this._makeLine("&nbsp;");e+="</div>",this._previewContent.innerHTML=e},_makeLine:function(e){var t="<div>";return this._printLineNumbersCheck.checked&&(this._number+=1,t+=this._number+" "),t+=e+"</div>"},_decorate:function(e,t){return this._coloredRadioButton.checked&&t.color?"<span style="+t.color+">"+e+"</span>;":this._styledRadioButton.checked&&t.style?"<span style="+t.style+">"+e+"</span>;":e}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="rtcPageSetupDialogContent" data-dojo-attach-point ="contentNode">\n <div id="tabContainer" style="width: 300; height: 240px; position: relative; border: solid gray 1px;">\n <div id="layoutTab">\n <div id="layoutControls" class="layoutControls">\n <form>\n <fieldset id="optionField">\n <div class="controlHolder"></div>\n <div class="controlHolder"></div>\n <div class="controlHolder"></div>\n </fieldset>\n </form>\n <form>\n <fieldset id="syntaxField">\n <div class="controlHolder"></div>\n <div class="controlHolder"></div>\n <div class="controlHolder"></div>\n </fieldset>\n </form>\n </div>\n <div id="layoutPreview" class="layoutPreview">\n <div class="layoutPreviewContent">\n </div>\n </div>\n </div>\n <div id="headerTab" class="tabPane">\n <table>\n <tr><td><div id="pageNumberLabel"></div></td><td> <div id="pageNumberCombo"></div></td></tr>\n <tr><td><div id="borderLabel"></div></td><td><div id="borderCombo"></div></td></tr>\n <tr><td><div id="layoutLabel"></div></td><td><div id="layoutCombo"></div></td></tr>\n </table>\n <form>\n <fieldset id="headerPreviewField">\n <div class="headerPreview">\n <div id="headerPreviewContent"></div>\n </div>\n </fieldset>\n </form>\n </div>\n <div id="fontTab" class="tabPane">\n <table>\n <tr><td><div id="chooseFontLabel"></div></td><td> <div id="chooseFontCombo"></div></td></tr>\n </table>\n <div id="inheritFontRadio"></div>\n <div id="customFontRadio"></div>\n <div><div id="familyCombo"></div><div id="faceCombo"></div><div id="sizeCombo"></div></div>\n <form>\n <fieldset id="fontPreviewField">\n <div class="font_preview">\n <div id="fontPreviewContent">The quick brown fox jumps over the lazy dog! 1234567890</div>\n </div>\n </fieldset>\n </form>\n </div>\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(244)],o=i.dj.d(n,(function(e){function t(e){var t=e.split(",");return{fontFace:parseInt(t[0],10),fontSize:parseInt(t[1],10),fontFamily:t[2].trim()}}function i(e){return e.fontFace+","+e.fontSize+","+e.fontFamily}return{_OPTIONS_SETTING:"matlab.editor.print.Options",_TEXTFONT_SETTING:"matlab.editor.print.TextFont",_HEADERFONT_SETTING:"matlab.editor.print.HeaderFont",_COMMENTCOLOR_SETTING:"matlab.colors.CommentColor",_KEYWORDCOLOR_SETTING:"matlab.colors.KeywordColor",getPrintSettingsAsObject:function(i){var n=i.getSetting(this._OPTIONS_SETTING).then((function(e){return{PrintHeader:0!=(1&e),PrintLineNumber:0!=(4&e),WrapLines:0!=(8&e),SyntaxStyle:(6144&e)>>11,PageNumberStyle:(4026531840&e)>>28,BorderStyle:(251658240&e)>>24,HeaderLayoutStyle:(15728640&e)>>20,UseCustomFontForBody:0==(32768&e),UseCustomFontForHeader:0==(16384&e)}})),o=i.getSetting(this._TEXTFONT_SETTING).then((function(e){return t(e)})),r=i.getSetting(this._HEADERFONT_SETTING).then((function(e){return t(e)})),a=i.getSetting(this._COMMENTCOLOR_SETTING).then((function(e){return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"})),s=i.getSetting(this._KEYWORDCOLOR_SETTING).then((function(e){return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}));return e([n,o,r,a,s]).then((function(e){var t;return[t,t.BodyCustomFont,t.HeaderCustomFont,t.CommentColor,t.KeywordColor]=e,t.pageMargin="18px",t}))},setPrintSettingsFromObject:function(e,t){var n=0;t.PrintHeader&&(n|=1),t.PrintLineNumber&&(n|=4),t.WrapLines&&(n|=8),n|=t.SyntaxStyle<<11,n|=t.PageNumberStyle<<28,n|=t.BorderStyle<<24,n|=t.HeaderLayoutStyle<<20,t.UseCustomFontForBody||(n|=32768),t.UseCustomFontForHeader||(n|=16384),e.setSetting(this._OPTIONS_SETTING,n);var o="";t.BodyCustomFont&&(o+=i(t.BodyCustomFont),e.setSetting(this._TEXTFONT_SETTING,o)),t.HeaderCustomFont&&(o+=i(t.HeaderCustomFont),e.setSetting(this._HEADERFONT_SETTING,o))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(236),i(241),i(207),i(2379),i(988),i(6678),i(6683),i(1204),i(507)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(o,{_PUBLISH_ACTION_ID:"rtc_publish_dialog",_PUBLISH_MOST_RECENT_ACTION_ID:"rtc_publish_most_recent",constructor:function(e,i,n,o){this._actionService=e,this._rtcBackingStore=i,this._globalContext=o,this._readConfigurationsFromPreferences(function(){e.loadActions([{id:this._PUBLISH_ACTION_ID,enabled:!0,callback:t.hitch(this,"_publishDialogActionCallback")},{id:this._PUBLISH_MOST_RECENT_ACTION_ID,enabled:!0,callback:t.hitch(this,"_publishMostRecentlyActionedConfiguration")}])}.bind(this)),this._publishToolstripService=new s(n,this._publish.bind(this),this._getFileBasedConfigurations.bind(this),this._saveConfigurations.bind(this)),this.own(this._publishToolstripService)},getToolstripService:function(){return this._publishToolstripService},_readConfigurationsFromPreferences:function(e){r.readPreferences().then(function(t){this._globalContext.configurations=t,e&&e()}.bind(this))},_getFileBasedConfigurations:function(){var e=this._rtcBackingStore.getAbsoluteFilePath(),t=this._globalContext.configurations.filter((function(t){return t.AssociatedFile&&t.AssociatedFile===e}));return 0===t.length?[c.createNewConfiguration(this._globalContext.configurations,e)]:t},_publishMostRecentlyActionedConfiguration:function(){var e=this._getFileBasedConfigurations(),t=e.find((function(e){return e.MostRecentlyActioned}));t=t||e[0],this._publish(e,t)},_publishDialogActionCallback:function(){return!!this._actionService.getAction(this._PUBLISH_ACTION_ID).enabled&&(this._readConfigurationsFromPreferences(function(){this._createPublishDialog(this._globalContext.configurations)}.bind(this)),!0)},_createPublishDialog:function(e){this._rtcBackingStore.save(),(this._rtcBackingStore.getAbsoluteFilePath()!==this._rtcBackingStore.getFileName()||this._forTestingOnly)&&(this._publishDialog=new l({configurations:e,outputFolder:this._rtcBackingStore.getFileLocation(),absolutePath:this._rtcBackingStore.getAbsoluteFilePath(),publishCallback:t.hitch(this,this._publish),closeCallback:t.hitch(this,this._close)}))},_publish:function(e,t){this._rtcBackingStore.save(),(this._rtcBackingStore.getAbsoluteFilePath()!==this._rtcBackingStore.getFileName()||this._forTestingOnly)&&(e.forEach((function(e){e.PublishOptionsBasedOn&&e.AssociatedFile===t.AssociatedFile&&(e.MostRecentlyActioned=e===t)})),this._checkFolder(t))},_saveConfigurations:function(e){e=e||this._globalContext.configurations,r.writePreferences(e)},_startPublish:function(e){var t=e.AssociatedFile.replace(/^.*[\\/]/,"");this._runPublish(t,e)},_checkFolder:function(e){var t=e.AssociatedFile.replace(/[^/|\\]*$/,"");a.getCurrentFolder(function(i){i===t.slice(0,t.length-1)?this._startPublish(e):a.directoryInPath(t,function(i){i?this._startPublish(e):this._openNotification(e,t)}.bind(this))}.bind(this))},_openNotification:function(e,t){var o=i.substitute(d.notificationMatlabPath,{0:e.AssociatedFile});n.displayConfirmDialog("MATLAB Editor",o,{buttonText:[d.notificationMatlabCancel,d.notificationMatlabCangeFolder,d.notificationMatlabAddToPath,d.notificationMatlabHelp],defaultAcceptButton:2,defaultCancelButton:1,closeCallback:function(i){2===i.response?a.changeFolder(t,function(){this._startPublish(e)}.bind(this)):3===i.response?a.addPath(t,function(){this._startPublish(e)}.bind(this)):4===i.response&&(a.openHelp("matlab_env/matlab_env.map","ml_env_ed_notonpath"),setTimeout(function(){this._openNotification(e,t)}.bind(this),0))}.bind(this)})},_runPublish:function(e,t){a.runPublish(e,t.PublishOptions,this._openFile.bind(this))},_openFile:function(e){a.openFile(e.path)},_close:function(e){this._saveConfigurations(e)}})}),e,t),e.exports=o},function(e,t){e.exports="% MATLAB Publish Configurations\n% @version 1\n% It is recommended that you do not edit this file directly, but use the\n% Configuration Editor provided in MATLAB. Changes made to comments that\n% exist outside of a configuration will not be saved.\n\n%% @name Factory Default\n\npublish_options.outputFileFormat='html';\npublish_options.outputLocation='';\npublish_options.styleSheet='';\npublish_options.figureCaptureMethod='entireGUIWindow';\npublish_options.imageFormat='default';\npublish_options.useNewFigure=true;\npublish_options.maxWidth=Inf;\npublish_options.maxHeight=Inf;\npublish_options.showCode=true;\npublish_options.evaluateCode=true;\npublish_options.catchError=true;\npublish_options.createThumbnail=true;\npublish_options.maxNumberOfOutputLines=Inf;\n\n%% @name User Default\n\npublish_options.outputFileFormat='html';\npublish_options.outputLocation='';\npublish_options.styleSheet='';\npublish_options.figureCaptureMethod='entireGUIWindow';\npublish_options.imageFormat='default';\npublish_options.useNewFigure=true;\npublish_options.maxWidth=Inf;\npublish_options.maxHeight=Inf;\npublish_options.showCode=true;\npublish_options.evaluateCode=true;\npublish_options.catchError=true;\npublish_options.createThumbnail=true;\npublish_options.maxNumberOfOutputLines=Inf;"},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{CONFIGURATION_HEADING:"% MATLAB Publish Configurations\n% @version 1\n% It is recommended that you do not edit this file directly, but use the\n% Configuration Editor provided in MATLAB. Changes made to comments that\n% exist outside of a configuration will not be saved.\n\n",ASSOCIATED_FILE:"% @associatedFile",BASED_ON:"% @publishOptionsBasedOn",CHAR_10:"' char(10) ...",CODE_TO_EVALUATE:"codeToEvaluate",EXPRESSION_END:"]",EXPRESSION_START:"=[ ...",INF:"Inf",MOST_RECENTLY_ACTIONED:"% @mostRecentlyActioned",NAME:"%% @name",NEW_LINE:"\n",PUBLISH:"publish('",PUBLISH_OPTIONS:"publish_options",STRING:"string",UNIQUE_ID:"% @uniqueId"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(236),i(207),i(219),i(292),i(226),i(507)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s,l={default:"icon_publish_24",html:"icon_publish_as_HTML_24",pdf:"icon_publish_as_PDF_24"},c={default:"icon_publish_16",html:"icon_publish_as_HTML_16",pdf:"icon_publish_as_PDF_16"};return e(i,{constructor:function(e,t,i,o){this._editorId=e,this._publishAction=t,this._getFileBasedConfigurations=i,this._saveConfigurations=o,n.subscribe("/PublishServiceConfigurations/request/"+this._editorId,"_getConfigurationsForToolstrip",this),n.subscribe("/PublishServiceRunPublish/request/"+this._editorId,"_runPublishForConfiguration",this),this._tooltipItems=[]},_runPublishForConfiguration:function(e){var t=this._getFileBasedConfigurations(),i=t.find((function(t){return e.data.endsWith(t.Name)}));this._publishAction(t,i),this._saveConfigurations()},_getConfigurationsForToolstrip:function(){var e=this._getFileBasedConfigurations();n.publish("/PublishService/response/"+this._editorId,e)},setupPublishToolStripButton:function(){var e=o.getInstance(),t=e.tagToId("motwToolstrip.publishTab.publishPopupList");this.own(e.addEventCallback(t,function(i){if("onOpen"===i.eventType&&(this._cleanUpPublishListItems(e),s===this._editorId)){var n=this._getFileBasedConfigurations();n.forEach(function(i,o){var r=this._createPublishListItem(e,i,n);this._tooltipItems.push(r),i.MostRecentlyActioned?e.add(r,t,1):e.add(r,t,o+1)}.bind(this))}}.bind(this),this))},setActiveEditorId:function(e){s=e},_createPublishListItem:function(e,i,n){var o=this._getIconForConfiguration(i),s=e.create({type:r.LIST_ITEM,icon:o.icon,quickAccessIcon:o.quickAccessIcon,tag:"motwToolstrip.publishTab.publish.publishConfiguration.configurationList."+i.Name,text:i.Name,description:t.substitute(a.publishConfigurationItemDescription,{0:i.Name,1:i.PublishOptions.get("outputFileFormat")})});return this.own(e.addEventCallback(s,function(e){"itemPushed"===e.eventType&&this._publishAction(n,i)}.bind(this),this)),s},_getIconForConfiguration:function(e){var t=e.PublishOptions.get("outputFileFormat");return{icon:l[t]?l[t]:l.default,quickAccessIcon:c[t]?c[t]:c.default}},_cleanUpPublishListItems:function(e){this._tooltipItems.forEach((function(t){e.exists(t)&&e.destroy(t)})),this._tooltipItems=[]},destroy:function(){n.unsubscribe("/PublishServiceConfigurations/request/"+this._editorId,"_getConfigurationsForToolstrip",this),n.unsubscribe("/PublishServiceRunPublish/request/"+this._editorId,"_runPublishForConfiguration",this)}})}),e,t),e.exports=o},function(e,t,i){e.exports={browseButtonText:"...",buttonPublish:"パブリッシュ",catchError:"Catch エラー",codeSettings:"コード設定",configurationLabel:"パブリッシュの構成名:",createThumbnail:"サムネイルを作成",defaultConfigurationChanged:" (変更済)",descriptionOutputFileFormat:"パブリッシュしたドキュメントに対する出力形式を選択してください。",descriptionOutputLocation:"パブリッシュしたドキュメントと関連するイメージ ファイルを保存するディレクトリへのパスを指定してください。",descriptionStyleSheet:"パブリッシュしたドキュメントで使用する XSL スタイル シートへのパスを指定してください - 出力ファイル タイプが html、xml または latex の場合のみ使用されます。",descriptionFigureCaptureMethod:"パブリッシュしたドキュメント内に含めるためにコードが生成する Figure を、MATLAB がどのようにキャプチャするかを指定するための方法を選択してください。",descriptionImageFormat:"キャプチャした Figure から作成されたイメージに対する形式を選択してください。",descriptionUseNewFigure:"キャプチャする Figure に対して新規ウィンドウを作成するには true を選択してください。既存の Figure ウィンドウにキャプチャする Figure を挿入するには false を選択してください。",descriptionMaxWidth:"MATLAB がキャプチャした Figure から作成するイメージに対する最大幅を指定してください。",descriptionMaxHeight:"MATLAB がキャプチャした Figure から作成するイメージに対する最大の高さを指定してください。",descriptionShowCode:"パブリッシュしたドキュメント内で実行可能なコードを含めるには true を選択してください。",descriptionEvaluateCode:"パブリッシュ中にコードを評価し、パブリッシュしたドキュメント内に評価結果を含めるには true を選択してください。",descriptionCatchError:"コードがエラーを生成する場合、エラー メッセージを含むドキュメントにパブリッシュするには true を選択してください。エラーが発生する場合にパブリッシュを終了するには false を選択してください。",descriptionCreateThumbnail:"生成した最新のビットマップ イメージ (.png、.jpg) のサムネイルを作成するには true を選択してください。パブリッシュしたドキュメントはサムネイルを含みません。",descriptionMaxNumberOfOutputLines:"生成される出力のうち、パブリッシュしたドキュメントに含まれる最大行数を指定してください。",dialogTitle:"構成の編集",evaluateCode:"コード評価",figureCalculation:"Figure の計算",figureSettings:"Figure 設定",filePathSettingButton:"選択...",filePathSettingDescription:"${0} の構成のすべてを再度関連付けるには、上記の新規ファイルを選択してください。",filePathSettingNotFound:"ファイルが見つかりません",filePathSettingNoFileName:"指定したファイル名がありません。",filePathSettingLabel:"関連ファイル:",fineNotExist:"ファイルが存在しません",imageFormat:"イメージ形式",includeCode:"コードを含む",matlabExpression:"MATLAB 式:",matlabExpressionTemplate:"% 入力引数を追加するために式を変更してください。\n% 例:\n% a = [1 2 3; 4 5 6]; \n% foo(a);\n\n",maxImgHeight:"最大イメージ高さ (ピクセル)",maxImgWidth:"最大イメージ幅 (ピクセル)",maxOutputLines:"最大出力行数",notificationMatlabAddToPath:"パスに追加",notificationMatlabCancel:"キャンセル",notificationMatlabCangeFolder:"フォルダーの変更",notificationMatlabHelp:"ヘルプ",notificationMatlabPath:"ファイル ${0} は現在のフォルダーまたは MATLAB パス上で見つかりません。\n\n このファイルをパブリッシュするには、MATLAB の現在のフォルダーを変更するか、\nフォルダーを MATLAB パスに追加します。",outputFileFormat:"出力ファイル形式",outputFolder:"出力フォルダー",outputSettings:"出力設定",overwriteButtonText:"上書き",publishConfigurationItemDescription:"${0} 構成を (${1} に) パブリッシュします",publishSettingsNotificationButtonChange:"次に変更する: ${0}",publishSettingsNotificationButtonDontChange:"変更しない",publishSettingsNotificationMessage:"未保存の設定変更が次のグループから破棄されます: ${0}。\nパブリッシュ設定を次のグループに変更しますか: ${0}?",publishSettingsNotificationTitle:"パブリッシュ設定を変更",saveAs:"名前を付けて保存...",savePublishSettingsButtonOverwrite:"上書き",savePublishSettingsLabel:"パブリッシュ設定:",savePublishSettingsName:"設定名:",savePublishSettingsTitle:"パブリッシュ設定を保存",tooltipAddButton:"構成を追加します。",tooltipRemoveButton:"構成を削除します。",tooltipUndoButton:"最後の削除を元に戻す",tooltipFilterField:"構成のリストをフィルター処理します。リストのサイズを削減するために入力を開始します。",tooltipChooseButton:"この構成を別のファイルに関連付けます。",useNewFigure:"新規 Figure を使用",xslFile:"XSL ファイル"}},function(e,t,i){e.exports={browseButtonText:"...",buttonPublish:"发布",catchError:"捕获错误",codeSettings:"代码设置",configurationLabel:"发布配置名称:",createThumbnail:"创建缩略图",defaultConfigurationChanged:" (已修改)",descriptionOutputFileFormat:"选择所发布文档的输出格式。",descriptionOutputLocation:"指定所发布文档及其相关图像文件的保存目录路径。",descriptionStyleSheet:"指定要用于所发布文档的 XSL 样式表的路径 - 仅在输出文件类型为 html、xml 或 latex 时使用。",descriptionFigureCaptureMethod:"选择一种方法以指定 MATLAB 如何捕获代码生成的要包含在所发布文档中的图窗。",descriptionImageFormat:"选择基于所捕获的图窗创建的图像的格式。",descriptionUseNewFigure:"选择 true 可为要捕获的图窗创建新窗口。选择 false 可将要捕获的图窗插入现有图窗窗口。",descriptionMaxWidth:"为 MATLAB 基于所捕获的图窗创建的图像指定最大宽度。",descriptionMaxHeight:"为 MATLAB 根据所捕获的图窗创建的图像指定最大高度。",descriptionShowCode:"选择 true 可在所发布文档中包含可执行代码。",descriptionEvaluateCode:"选择 true 可在发布时评估代码并在所发布文档中包含评估结果。",descriptionCatchError:"选择 true 可发布文档,包括错误消息(如果代码生成了错误)。选择 false 可在发生错误时终止发布。",descriptionCreateThumbnail:"选择 true 可为生成的上一个位图图像(.png、.jpg)创建缩略图。所发布文档不包含该缩略图。",descriptionMaxNumberOfOutputLines:"指定要包含在所发布文档中的最大生成输出行数。",dialogTitle:"编辑配置",evaluateCode:"计算代码",figureCalculation:"图窗计算",figureSettings:"图窗设置",filePathSettingButton:"选择...",filePathSettingDescription:"要重新关联 ${0} 的所有配置,请从上面选择一个新文件。",filePathSettingNotFound:"未找到文件",filePathSettingNoFileName:"未指定文件名。",filePathSettingLabel:"关联文件:",fineNotExist:"文件不存在",imageFormat:"图像格式",includeCode:"包含代码",matlabExpression:"MATLAB 表达式:",matlabExpressionTemplate:"% 修改表达式以添加输入参数。\n% 示例:\n% a = [1 2 3; 4 5 6]; \n% foo(a);\n\n",maxImgHeight:"最大图像高度(像素)",maxImgWidth:"最大图像宽度(像素)",maxOutputLines:"最大输出行数",notificationMatlabAddToPath:"添加到路径",notificationMatlabCancel:"取消",notificationMatlabCangeFolder:"更改文件夹",notificationMatlabHelp:"帮助",notificationMatlabPath:"在当前文件夹或 MATLAB 路径中未找到文件 ${0}。\n\n要发布此文件,您可以更改 MATLAB 当前文件夹,\n或者将其文件夹添加到 MATLAB 路径。",outputFileFormat:"输出文件格式",outputFolder:"输出文件夹",outputSettings:"输出设置",overwriteButtonText:"覆盖",publishConfigurationItemDescription:"发布 ${0} 配置(至 ${1})",publishSettingsNotificationButtonChange:"更改为: ${0}",publishSettingsNotificationButtonDontChange:"不更改",publishSettingsNotificationMessage:"${0} 组中未保存的设置更改将被丢弃。\n您是否仍要更改 ${0} 组的发布设置?",publishSettingsNotificationTitle:"更改发布设置",saveAs:"另存为...",savePublishSettingsButtonOverwrite:"覆盖",savePublishSettingsLabel:"发布设置:",savePublishSettingsName:"设置名称:",savePublishSettingsTitle:"将发布设置另存为",tooltipAddButton:"添加配置。",tooltipRemoveButton:"删除配置。",tooltipUndoButton:"撤消上次删除",tooltipFilterField:"筛选配置列表。开始键入以缩小列表。",tooltipChooseButton:"将此配置与其他文件关联。",useNewFigure:"使用新图窗",xslFile:"XSL 文件"}},function(e,t,i){e.exports={browseButtonText:"...",buttonPublish:"퍼블리시",catchError:"오류 캐치",codeSettings:"코드 설정",configurationLabel:"퍼블리시 구성 이름:",createThumbnail:"축소판 만들기",defaultConfigurationChanged:" (수정됨)",descriptionOutputFileFormat:"퍼블리시되는 문서의 출력 형식을 선택합니다.",descriptionOutputLocation:"퍼블리시되는 문서와 관련 이미지 파일을 저장할 디렉터리의 경로를 지정합니다.",descriptionStyleSheet:"퍼블리시되는 문서에 사용할 XSL 스타일시트의 경로를 지정합니다. 출력 파일 형식이 html, xml 또는 latex인 경우에만 사용됩니다.",descriptionFigureCaptureMethod:"퍼블리시되는 문서에 포함하기 위해 코드가 생성하는 Figure를 MATLAB이 캡처하는 방식을 지정합니다. 해당 메서드를 선택합니다.",descriptionImageFormat:"캡처되는 Figure에서 만들어지는 이미지의 형식을 선택합니다.",descriptionUseNewFigure:"캡처되는 Figure에 대해 새 창을 만들려면 true를 선택합니다. 기존 Figure 창에 캡처되는 Figure를 삽입하려면 false를 선택합니다.",descriptionMaxWidth:"캡처한 Figure에서 생성되는 이미지의 최대 너비를 지정합니다.",descriptionMaxHeight:"캡처한 Figure에서 생성되는 이미지의 최대 높이를 지정합니다.",descriptionShowCode:"퍼블리시되는 문서에 실행 가능한 코드를 포함하려면 true를 선택하십시오.",descriptionEvaluateCode:"퍼블리시하는 동안 코드를 실행하고 실행 결과를 퍼블리시되는 문서에 포함하려면 true를 선택합니다.",descriptionCatchError:"코드에서 오류를 생성하는 경우 오류 메시지를 포함하여 문서를 퍼블리시하려면 true를 선택합니다. 오류가 발생하는 경우 퍼블리시를 종료하려면 false를 선택합니다.",descriptionCreateThumbnail:"생성된 비트맵 이미지(.png, .jpg) 중 마지막 비트맵 이미지의 축소판을 만들려면 true를 선택합니다. 퍼블리시되는 문서에는 축소판이 포함되지 않습니다.",descriptionMaxNumberOfOutputLines:"생성되는 출력 라인 중 퍼블리시되는 문서에 포함할 최대 라인 수를 지정합니다.",dialogTitle:"구성 편집",evaluateCode:"코드 실행",figureCalculation:"Figure 계산",figureSettings:"Figure 설정",filePathSettingButton:"선택...",filePathSettingDescription:"${0}의 모든 구성을 다시 연결하려면 새로 연결할 파일을 선택하십시오.",filePathSettingNotFound:"파일을 찾을 수 없음",filePathSettingNoFileName:"파일 이름을 지정하지 않았습니다.",filePathSettingLabel:"연결된 파일:",fineNotExist:"파일이 존재하지 않음",imageFormat:"이미지 형식",includeCode:"코드 포함",matlabExpression:"MATLAB 표현식:",matlabExpressionTemplate:"% 표현식을 수정하여 입력 인수를 추가합니다.\n% 예:\n% a = [1 2 3; 4 5 6]; \n% foo(a);\n\n",maxImgHeight:"최대 이미지 높이(픽셀)",maxImgWidth:"최대 이미지 너비(픽셀)",maxOutputLines:"최대 출력 라인 수 #",notificationMatlabAddToPath:"경로에 추가",notificationMatlabCancel:"취소",notificationMatlabCangeFolder:"폴더 변경",notificationMatlabHelp:"도움말",notificationMatlabPath:"${0} 파일을 현재 폴더 또는 MATLAB 경로에서 찾을 수 없습니다.\n\n 이 파일을 퍼블리시하려면 MATLAB 현재 폴더를 변경하거나\n해당 폴더를 MATLAB 경로에 추가하십시오.",outputFileFormat:"출력 파일 형식",outputFolder:"출력 폴더",outputSettings:"출력 설정",overwriteButtonText:"덮어쓰기",publishConfigurationItemDescription:"${0} 구성을 ${1}에 퍼블리시합니다",publishSettingsNotificationButtonChange:"${0}(으)로 변경",publishSettingsNotificationButtonDontChange:"변경하지 않음",publishSettingsNotificationMessage:'저장되지 않은 "{0}"의 변경 사항은 취소됩니다.\n퍼블리시 설정을 ${0} 그룹으로 변경하시겠습니까?',publishSettingsNotificationTitle:"퍼블리시 설정 변경",saveAs:"다른 이름으로 저장...",savePublishSettingsButtonOverwrite:"덮어쓰기",savePublishSettingsLabel:"퍼블리시 설정:",savePublishSettingsName:"설정 이름:",savePublishSettingsTitle:"다른 이름으로 퍼블리시 설정 저장",tooltipAddButton:"구성을 추가합니다.",tooltipRemoveButton:"구성을 제거합니다.",tooltipUndoButton:"마지막 삭제를 취소합니다.",tooltipFilterField:"구성 목록을 필터링합니다. 목록 크기를 줄이려면 입력합니다.",tooltipChooseButton:"이 구성을 다른 파일과 연결합니다.",useNewFigure:"새 Figure 사용",xslFile:"XSL 파일"}},function(e,t,i){e.exports={root:{browseButtonText:"...",buttonPublish:"Publish",catchError:"Catch error",codeSettings:"Code settings",configurationLabel:"Publish configuration name:",createThumbnail:"Create thumbnail",defaultConfigurationChanged:" (modified)",descriptionOutputFileFormat:"Select the output format for the published document.",descriptionOutputLocation:"Specify the path to the directory where you want the published document and its related image files to be saved.",descriptionStyleSheet:"Specify the path to the XSL style sheet that you want to use with the published document - used only when the output file type is html, xml, or latex.",descriptionFigureCaptureMethod:"Select a method to specify how MATLAB captures the figures that the code generates for inclusion in the published document.",descriptionImageFormat:"Select the format for the images created from captured figures.",descriptionUseNewFigure:"Select true to create a new window for figures that will be captured. Select false to insert figures that will be captured into an existing figure window.",descriptionMaxWidth:"Specify the maximum width for the images that MATLAB creates from the captured figures.",descriptionMaxHeight:"Specify the maximum height for images that MATLAB creates from the captured figures.",descriptionShowCode:"Select true to include the executable code in the published document.",descriptionEvaluateCode:"Select true to evaluate the code while publishing and include the results of the evaluation in the published document.",descriptionCatchError:"Select true to publish the document, including the error message, if the code generates an error. Select false to terminate publishing when an error occurs.",descriptionCreateThumbnail:"Select true to create a thumbnail of the last bitmap image (.png, .jpg) that generated. The published document does not contain the thumbnail.",descriptionMaxNumberOfOutputLines:"Specify the maximum lines of generated output to include in the published document.",dialogTitle:"Edit Configurations",evaluateCode:"Evaluate code",figureCalculation:"Figure calculation",figureSettings:"Figure settings",filePathSettingButton:"Choose...",filePathSettingDescription:"To reassociate all of ${0}'s configurations, select a new file above.",filePathSettingNotFound:"File Not Found",filePathSettingNoFileName:"No file name is specified.",filePathSettingLabel:"Associated file:",fineNotExist:"File not exist",imageFormat:"Image format",includeCode:"Include code",matlabExpression:"MATLAB expression:",matlabExpressionTemplate:"% Modify expression to add input arguments.\n% Example:\n% a = [1 2 3; 4 5 6]; \n% foo(a);\n\n",maxImgHeight:"Max image height (pixels)",maxImgWidth:"Max image width (pixels)",maxOutputLines:"Max # of output lines",notificationMatlabAddToPath:"Add to Path",notificationMatlabCancel:"Cancel",notificationMatlabCangeFolder:"Change Folder",notificationMatlabHelp:"Help",notificationMatlabPath:"File ${0} is not found in the current folder or on the MATLAB path.\n\n To publish this file, you can either change the MATLAB current folder or add its\nfolder to the MATLAB path.",outputFileFormat:"Output file format",outputFolder:"Output folder",outputSettings:"Output settings",overwriteButtonText:"Overwrite",publishConfigurationItemDescription:"Publish ${0} configuration (to ${1})",publishSettingsNotificationButtonChange:"Change to: ${0}",publishSettingsNotificationButtonDontChange:"Don't Change",publishSettingsNotificationMessage:"Your unsaved settings changes will be discarded from group: ${0}.\nDo you still want to change your publish settings to the group: ${0}?",publishSettingsNotificationTitle:"Change Publish Settings",saveAs:"Save As...",savePublishSettingsButtonOverwrite:"Overwrite",savePublishSettingsLabel:"Publish settings:",savePublishSettingsName:"Settings name:",savePublishSettingsTitle:"Save Publish Settings As",tooltipAddButton:"Add configuration.",tooltipRemoveButton:"Remove configuration(s).",tooltipUndoButton:"Undo last delete",tooltipFilterField:"Filter the list of configurations. Start typing to reduce the size of the list.",tooltipChooseButton:"Associate this configuration with another file.",useNewFigure:"Use new figure",xslFile:"XSL file"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(204),i(221),i(273),i(262),i(988),i(6684),i(6731),i(6732),i(2380),i(6733),i(6734),i(2381),i(6735),i(1204),i(2382),i(507),i(6736)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){return n([t,e,i],{_DEFAULT_EXPORT_FOLDER:"html",_PUBLISH_DIALOG_ID:"rtcPublishDialog",templateString:y,widgetsInTemplate:!0,constructor:function(e){this._publishCallback=e.publishCallback,this._closeCallback=e.closeCallback,this._configurations=e.configurations,this._outputFolder=e.outputFolder||"",this._outputFolder=_.appendFolder(this._outputFolder,this._DEFAULT_EXPORT_FOLDER),this._absolutePath=e.absolutePath,this._fileName=_.getFileNameFromPath(e.absolutePath)},postCreate:function(){this.inherited(arguments),this._publishDialogWidget=s.createDialog({title:b.dialogTitle,content:this,buttons:[a.HELP,{type:a.OK.type,label:b.buttonPublish,"data-test-id":a.OK["data-test-id"]},a.CLOSE],"data-test-id":this._PUBLISH_DIALOG_ID,className:this._PUBLISH_DIALOG_ID,dialogType:s.MODAL,draggable:!0,resizable:!0,defaultActionButton:a.NO_DEFAULT_ACTION,closeOnEscape:!1}),this._publishDialogWidget.addButtonEventListener(a.OK,o.hitch(this,"onOK"),!1),this._publishDialogWidget.addButtonEventListener(a.CLOSE,o.hitch(this,"onCancel"),!1),this._publishDialogWidget.on("close",o.hitch(this,"onClose")),this._publishDialogWidget.addButtonEventListener(a.HELP,(function(){l.openHelp("env_csh/env_csh.map","desktop_publish_config")}),!1),c.setAbsoluteFilePath(this._absolutePath),c.setConfigurations(this._configurations),c.setFallbackOutputFolder(this._outputFolder),this._createContainer(),c.setWidget(this._publishDialogWidget),c.setActiveConfiguration(this._defineInitialConfigurationSelection())},_defineInitialConfigurationSelection:function(){var e=this._configurations.filter(function(e){return e.AssociatedFile&&e.AssociatedFile===this._absolutePath}.bind(this));if(0===e.length)return _.createNewConfiguration(this._configurations,this._absolutePath);if(1===e.length)return e[0];var t=e.filter((function(e){return!0===e.MostRecentlyActioned}));return t.length>0?t[0]:e[0]},_createContainer:function(){var e=this._defineInitialConfigurationSelection(),t=_.removeFileExtension(this._fileName);c.setFileTree(g.createFileTreeConfigurationPanel(this._configurations,this._publishDialogWidget)),c.setFileFilter(p.createFileFilterPanel(this._publishDialogWidget,t)),c.setButtons(d.createButtonBarPanel(this._publishDialogWidget)),c.setConfigurationName(u.createConfigurationNamePanel(this._publishDialogWidget,t)),c.setMatlabExpression(m.createMatlabExpressionPanel(this._publishDialogWidget,e.MatlabExpression)),c.setDefaultSettings(h.createMatlabDefaultSettingsPanel(this._publishDialogWidget,this._configurations)),c.setSettingsTable(v.createSettingsTreeTablePanel(this._publishDialogWidget,e,this._outputFolder)),c.setFilePathPanel(f.createFilePathPanel(this._publishDialogWidget,this._fileName,this._absolutePath))},onCancel:function(){this._publishDialogWidget.close()},onOK:function(){this._publishCallback(this._configurations,c.getActiveConfiguration()),this._publishDialogWidget.close()},onClose:function(){this._closeCallback(this._configurations)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(236),i(241),i(988),i(2380),i(2381),i(1204),i(2382),i(6729),i(507)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return{setWidget:function(e){this._widget=e},setAbsoluteFilePath:function(e){this._absolutePath=e},setFallbackOutputFolder:function(e){this._fallbackOutputFolder=e},setConfigurations:function(e){this._configurations=e},setActiveConfiguration:function(e,t){this._activeConfiguration&&s.syncDataStore2Configuration(this._settingsDataStore,this._activeConfiguration);var i=this._widget.domNode.getElementsByClassName("rightPanelSettings")[0];this._widget.domNode.getElementsByClassName("rightPanelFile")[0].hidden=!0,e?(i.hidden=!1,!e.PublishOptionsBasedOn&&t?this._changeToDefaultConfiguration(e,t.mwEventData.oldValue):(this._activeConfiguration=e,this._updateViewForActiveConfiguration()),this._removeButton.get("disabled")&&this._removeButton.set("disabled",!1)):(i.hidden=!0,this._removeButton.set("disabled",!0))},getActiveConfiguration:function(){return this._activeConfiguration},setFilePathPanel:function(e){this._filePathSettingTextField=e.textField,this._filePathDescriptionField=e.descriptionField;var t=e.button;this._filePathSettingTextField.on("change, typing",function(e){var t=e.mwEventData.newValue?e.mwEventData.newValue:e.mwEventData.currentContent,i=e.mwEventData.oldValue?e.mwEventData.newValue:e.mwEventData.previousContent;if((t=t.replace(/\s/g,"").length?t:"")&&t!==i){var n=this._fileTreeWidget.getSelection()[0].id;this._updateFilePathForGroup(n,t),this._updateFileGroupViewElements(t,n);var o=a.getFileNameFromPath(t);this._fileTreeDataStore.update(null,{id:n},{label:o,filePath:t,fileName:o})}else if(""===t){var r=c.filePathSettingNotFound+"\n"+c.filePathSettingNoFileName;this._filePathDescriptionField.set("text",r)}}.bind(this)),t.on("click",function(e){n.openFileDialog(function(e){if(0!==e.path){this._filePathSettingTextField.set("value",e.path);var t=this._fileTreeWidget.getSelection()[0].id;this._updateFilePathForGroup(t,e.path),this._updateFileGroupViewElements(e.path,t);var i=a.getFileNameFromPath(e.path);this._fileTreeDataStore.update(null,{id:t},{label:i,filePath:e.path,fileName:i})}}.bind(this),"*.m")}.bind(this))},setFileTree:function(e){this._fileTreeDataStore=e.dataStore,this._fileTreeWidget=e.treeWidget,this._fileTreeWidget.on("selectionChanged",function(e){this._fileTreeSelectionChanged(e)}.bind(this)),a.addFileExistsInformation(this._configurations,this._fileTreeDataStore,this._fileTreeWidget,function(){r.filterByConfiguration(this._fileTreeDataStore,this._fileTreeWidget,this._activeConfiguration)}.bind(this))},setButtons:function(e){var t=e.addButton;this._removeButton=e.removeButton;var i=e.undoButton;i.set("disabled",!0),t.on("click",function(){this._addButtonAction(i,t)}.bind(this)),this._removeButton.on("click",function(){this._removeButtonAction(i,this._removeButton)}.bind(this)),i.on("click",function(){this._undoButtonAction(i)}.bind(this))},setDefaultSettings:function(e){var t=e.saveAsButton;this._defaultSettingsComboBox=e.comboBox,t.on("click",function(){this._saveAsAction()}.bind(this)),this._defaultSettingsComboBox.on("change",function(e){var t=o.filterDefaultConfigurations(this._configurations);this.setActiveConfiguration(t.get(e.mwEventData.newValue),e)}.bind(this))},setConfigurationName:function(e){this._configurationName=e,e.on("change, typing",function(e){var t=e.mwEventData.newValue?e.mwEventData.newValue:e.mwEventData.currentContent;this._configurationNameChanged(t)}.bind(this))},setFileFilter:function(e){var t=e.clearButtonContainer;this._fileFilter=e.fileFilter;var i=e.clearButton;this._fileFilter.on("change, typing",function(e){var n=e.mwEventData.currentContent||e.mwEventData.newValue;""===n&&i.domNode.parentElement?t.removeChild(i.domNode):i.domNode.parentElement||t.appendChild(i.domNode),this._fileFilterAction(n,i,t)}.bind(this)),i.on("click",function(e){this._fileFilter.set("value",""),i.domNode.parentElement&&t.removeChild(i.domNode),this._fileTreeDataStore.clearFilter()}.bind(this))},setSettingsTable:function(e){this._settingsDataStore=e.settingsDataStore;var t=e.settingsTable;t.on("cellFocused",function(e){this._settingsTableFocused(e.focusedCell,t,this._settingsDataStore)}.bind(this))},setMatlabExpression:function(e){this._expressionTextField=e,e.on("change",function(e){this._activeConfiguration.MatlabExpression=e.mwEventData.newValue}.bind(this))},_updateFilePathForGroup:function(e,t){this._fileTreeDataStore.clearFilter();var i=this._fileTreeDataStore.getLocalCellData(e);""!==this._fileFilter.get("value")&&this._fileTreeDataStore.filter({field:"fileName",value:this._fileFilter.get("value")}),i.data.fileName=a.getFileNameFromPath(t),i.data.filePath=t,this._fileTreeDataStore.getChildNodes(i).then(function(e){e.forEach((function(e){e.node.data.fileName=a.getFileNameFromPath(t),e.node.data.filePath=t,e.node.data.reference.AssociatedFile=t})),""!==this._fileFilter.get("value")&&this._fileTreeDataStore.filter({field:"fileName",value:this._fileFilter.get("value")})}.bind(this))},_changeToDefaultConfiguration:function(n,o){var r=this._configurations.find(function(e){return!e.PublishOptionsBasedOn&&e.Name===this._activeConfiguration.PublishOptionsBasedOn}.bind(this));if(this._compareOptions(r.PublishOptions,this._activeConfiguration.PublishOptions)){var a=t.substitute(c.publishSettingsNotificationButtonChange,{0:n.Name}),s=t.substitute(c.publishSettingsNotificationMessage,{0:n.Name});i.displayConfirmDialog(c.publishSettingsNotificationTitle,s,{buttonText:[c.publishSettingsNotificationButtonDontChange,a],defaultAcceptButton:1,closeCallback:e.hitch(this,(function(e){1!==e.response?(this._activeConfiguration.PublishOptions=new Map(n.PublishOptions,this._activeConfiguration.PublishOptions),this._activeConfiguration.PublishOptionsBasedOn=n.Name,this._updateViewForActiveConfiguration()):this._defaultSettingsComboBox.set("value",o)}))})}else this._activeConfiguration.PublishOptions=new Map(n.PublishOptions,this._activeConfiguration.PublishOptions),this._activeConfiguration.PublishOptionsBasedOn=n.Name,this._updateViewForActiveConfiguration()},_compareOptions:function(e,t){var i=a.getDiffBetweenPublishOptionEqual(e,t);return i.length>1||1===i.length&&!(-1!==i.indexOf("outputLocation")&&void 0===e.outputLocation)},_updateViewForActiveConfiguration:function(){var e=this._activeConfiguration.MatlabExpression?this._activeConfiguration.MatlabExpression:"";this._expressionTextField.set("value",e),this._activeConfiguration.AssociatedFile&&(s.updateFullSettingsTreeTable(this._settingsDataStore,this._activeConfiguration,this._fallbackOutputFolder),this._assignBasedOnDefaultPublishSettings(this._activeConfiguration.PublishOptionsBasedOn),this._configurationName.set("value",this._activeConfiguration.Name))},_assignBasedOnDefaultPublishSettings:function(e){var t=o.filterDefaultConfigurations(this._configurations);if(this._defaultSettingsComboBox.set("items",o.getDefaultsFromConfigurations(t)),e){var i=this._defaultSettingsComboBox.get("items"),n=i.find((function(t){return t.label===e})),r=i.indexOf(n);this._compareOptions(t.get(n.value).PublishOptions,this._activeConfiguration.PublishOptions)&&(i[r].label=i[r].label+c.defaultConfigurationChanged),this._defaultSettingsComboBox.set("items",i),this._defaultSettingsComboBox.set("value",i[r].value)}},_settingsTableFocused:function(e,t,i){if(1===e.column){var n=a.EXTENDED_SETTINGS_UI_ELEMENTS[e.id];n&&(n=n.bind(a),setTimeout(function(){n(t,i,function(){s.syncDataStore2Configuration(i,this._activeConfiguration,function(){this._assignBasedOnDefaultPublishSettings(this._activeConfiguration.PublishOptionsBasedOn)}.bind(this))}.bind(this))}.bind(this),0))}},_fileFilterAction:function(e,t,i){e?this._fileTreeDataStore.filter({field:"fileName",value:e}):(t.domNode.parentElement&&i.removeChild(t.domNode),this._fileTreeDataStore.clearFilter(),this._fileTreeSelectionChanged({nodeIds:[this._fileTreeWidget.getSelection()[0].id]}))},_configurationNameChanged:function(e){this._activeConfiguration.Name=e;var t=this._fileTreeWidget.getSelection()[0].id;this._fileTreeDataStore.update(null,{id:t},{label:e})},_fileTreeSelectionChanged:function(e){this._getFileTreeElement(e.nodeIds[0],function(e){e&&(e[0].data&&e[0].data.reference?this.setActiveConfiguration(e[0].data.reference):this.setActiveConfiguration(void 0),this._fileTreeChange(e[0]))}.bind(this))},_fileTreeChange:function(e){var t=this._widget.domNode.getElementsByClassName("rightPanelSettings")[0],i=this._widget.domNode.getElementsByClassName("rightPanelFile")[0];if(e.data.reference)t.hidden=!1,i.hidden=!0;else{this._filePathSettingTextField.set("value",e.data.filePath);var n=this._fileTreeWidget.getSelection()[0].id;this._updateFileGroupViewElements(e.data.filePath,n),i.hidden=!1,t.hidden=!0}this._removeButton.get("disabled")&&this._removeButton.set("disabled",!1)},_saveAsAction:function(){new l(this._assignBasedOnDefaultPublishSettings.bind(this),this._configurations,this._activeConfiguration)},_getFileTreeElement:function(e,t){this._fileTreeDataStore.getNode({id:e}).then((function(e){var i=null;e&&e.node&&(i=[e.node]),t(i)}))},_getFileTreeElementByConfiguration:function(e,t){this._fileTreeDataStore.getData([this._fileTreeDataStore.dataSize]).then((function(i){var n=i[0].find((function(t){if(t[0].data.reference===e)return t[0]}));t(n)}))},_addButtonAction:function(t,i){t.set("disabled",!0),i.set("disabled",!0),this._fileTreeWidget.expandAll();var n,o=this._fileTreeWidget.getSelection();if(o.length>0){var r=o[0].id;this._fileTreeWidget.clearFilter(),this._getFileTreeElement(r,function(t){if(t&&t.length>0){this._fileTreeWidget.setSelection([]);var o={};if(t[0].data.reference)o=t[0].data.reference;else{var r=t[0].data.childReferences;o=r[r.length-1]}var s=this._configurations[1].PublishOptionsBasedOn?this._configurations[0]:this._configurations[1];(n=e.mixin({},o)).PublishOptions=new Map(s.PublishOptions),n.PublishOptionsBasedOn=s.Name,this._configurations.splice(this._configurations.indexOf(o)+1,0,n),n.Name=a.getNameForNewConfiguration(this._configurations,o),this._setAndUpdateFileConfigurations(n)}else this._createConfigurationFromScratch();setTimeout((function(){i.set("disabled",!1)}),0)}.bind(this))}else this._createConfigurationFromScratch(),setTimeout((function(){i.set("disabled",!1)}),0)},_createConfigurationFromScratch:function(){var e=a.createNewConfiguration(this._configurations,this._absolutePath);e.Name=a.getNameForNewConfiguration(this._configurations,e),this._updateFileExistInformationOnConfiguration(e,function(){this._setAndUpdateFileConfigurations(e,function(){this._fileTreeWidget.clearFilter(),this._getFileTreeElementByConfiguration(e,function(e){this._fileTreeWidget.setSelection([{id:e[0].id}]),this._updateFileTree()}.bind(this))}.bind(this))}.bind(this))},_setAndUpdateFileConfigurations:function(e,t){this.setActiveConfiguration(e),this._updateFileTree(t),this._lastRemovedSetting=void 0,this._lastRemovedSettingIndex=void 0},_removeButtonAction:function(e,t){e.set("disabled",!1),t.set("disabled",!0),this._fileTreeWidget.expandAll();var i=this._fileTreeWidget.getSelection();if(i.length>0){var n=i[0].id;this._fileTreeWidget.clearFilter(),this._getFileTreeElement(n,function(e){var i;e&&e.length>0&&(e[0].data.reference?(i=this._configurations.indexOf(e[0].data.reference),this._lastRemovedSetting=e[0].data.reference,this._configurations.splice(i,1)):(this._lastRemovedSetting=e[0].data.childReferences,this._lastRemovedSetting.forEach(function(e){i||(i=this._configurations.indexOf(e));var t=this._configurations.indexOf(e);this._configurations.splice(t,1)}.bind(this))),this._lastRemovedSettingIndex=i,this._updateFileTree(),this._setNewActiveConfiguration(n));t.set("disabled",!1)}.bind(this))}},_setNewActiveConfiguration:function(e){this._getFileTreeElement(e,function(t){t?t[0].data.reference?(this.setActiveConfiguration(t[0].data.reference),this._fileTreeWidget.setSelection([{id:t[0].id}])):(this.setActiveConfiguration(t[0].data.childReferences[0]),this._fileTreeWidget.setSelection([{id:t[0].id+1}])):this._getFileTreeElement(e-1,function(e){e?e[0].data.reference?(this.setActiveConfiguration(e[0].data.reference),this._fileTreeWidget.setSelection([{id:e[0].id}])):(this.setActiveConfiguration(e[0].data.childReferences[0]),this._fileTreeWidget.setSelection([{id:e[0].id+1}])):(this.setActiveConfiguration(void 0),this._fileTreeWidget.setSelection([]))}.bind(this))}.bind(this))},_undoButtonAction:function(e){e.set("disabled",!0),this._lastRemovedSetting&&this._lastRemovedSettingIndex&&(this._fileTreeWidget.setSelection([]),Array.isArray(this._lastRemovedSetting)?(this._lastRemovedSetting=this._lastRemovedSetting.reverse(),this._lastRemovedSetting.forEach(function(e){this._configurations.splice(this._lastRemovedSettingIndex,0,e)}.bind(this)),this.setActiveConfiguration(this._configurations[this._lastRemovedSettingIndex])):(this._configurations.splice(this._lastRemovedSettingIndex,0,this._lastRemovedSetting),this.setActiveConfiguration(this._lastRemovedSetting)),this._lastRemovedSetting=void 0,this._lastRemovedSettingIndex=void 0,this._updateFileTree())},_updateFileTree:function(e){r.updateFileTreeConfiguration(this._configurations,this._activeConfiguration,this._fileTreeDataStore,this._fileTreeWidget,this._fileFilter.get("value"),e)},_updateFileExistInformationOnConfiguration:function(e,t){var i=e.AssociatedFile;n.fileExist(i,(function(i){e.fileExist=i.fileExist,t&&t()}))},_updateFileGroupViewElements:function(e,i){n.fileExist(e,function(n){this._fileTreeDataStore.clearFilter();var o=this._fileTreeDataStore.getLocalCellData(i);this._fileTreeDataStore.getChildNodes(o).then(function(e){e.forEach((function(e){e.node.data.reference.fileExist=n.fileExist})),this._fileTreeDataStore.filter({field:"fileName",value:this._fileFilter.get("value")}),""===this._fileFilter.get("value")&&this._fileTreeDataStore.clearFilter()}.bind(this));var r=a.getFileNameFromPath(e),s=t.substitute(c.filePathSettingDescription,{0:r});n.fileExist?this._filePathSettingTextField.set("validationState","normal"):(this._filePathSettingTextField.set("validationState","error"),this._filePathSettingTextField.set("errorText",c.fineNotExist),s=c.filePathSettingNotFound+"\n"+s),this._filePathDescriptionField.set("text",s)}.bind(this))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(1531)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._classname=e},getDomNode:function(e){var t=this.inherited(arguments),i=document.createElement("div");if(i.className=this._classname,i.appendChild(t),e.childReferences&&e.childReferences[0]){var n=e.childReferences[0];n.fileExist&&i.classList.contains("fileNotExist")?i.classList.remove("fileNotExist"):!1===n.fileExist&&i.classList.add("fileNotExist")}return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6687)],o=i.dj.d(n,(function(e){return e}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(206),i(2253),i(2254),i(2228),i(2227),i(2230),i(6688),i(6690),i(6694),i(6695),i(2384),i(6696),i(6697),i(1507),i(239),i(955),i(2386),i(461),i(6715),i(848),i(636),i(974),i(633),i(2252),i(2383),i(6717),i(6718),i(6726),i(6727),i(6728),i(1176)],o=i.dj.d(n,(function(e,t,i,n,o,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M){"use strict";var P={GeometryController:o,TreeColumnController:h,Scroll:n,TableResize:s,EditControllerProxy:c,ScrollToController:d,ColConfigController:l,FilterController:u,DoubleClickController:p,CustomKeyController:f};return function(){function n(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,n),o=n._parseColumnOptions(o,e),this._events=[],this._eventMap={},this._dataStore=e,this.resizeHandler=this.resizeHandler.bind(this);var r={CellComponent:x,RowComponent:N,TooltipComponent:L,TBodyComponent:D,widgetType:b.protected.TYPE.TREETABLE},s=this._viewModel=i.setViewModel(g,t,e,m,r);i.setupRegistration(this,s),n._initialSettingsOnViewModel(s,o),this._internalTableView=i.initializeTableView(s,e,P,v,o);var l=this._internalTableView.registry;i.mixinFacade(this,l,"exposedTreeTableAPIs"),i.facadeListeners(this,l,"treeTableEmits")}return r(n,[{key:"registerRenderer",value:function(e,t){i.registerRenderer(this,this._viewModel,e,t)}},{key:"registerEditor",value:function(e,t){i.registerEditor(this,this._viewModel,e,t)}},{key:"startup",value:function(){this.domNode.classList.add("mwTreeTable"),this._internalTableView.renderTable()}},{key:"destroy",value:function(){this._events.forEach((function(e){e.remove()})),this._internalTableView.removeTable(this._container)}},{key:"on",value:function(t,i){var n=e(this._eventMap[t],t,i);return this._events.push(n),n}},{key:"resizeHandler",value:function(){this._internalTableView.throttledResize()}},{key:"focus",value:function(){this._internalTableView.focus()}},{key:"editCell",value:function(){this.focus();var e=this._internalTableView.domNode;this._editCell({container:e})}},{key:"domNode",get:function(){return this._internalTableView.domNode}}],[{key:"_parseColumnOptions",value:function(e,t){return e.features=e.features||[],e.features.push(v.AVAILABLE.ColumnResize),e.features.push(A.getPluginsBasedOnDSConfiguration(t)),e}},{key:"_initialSettingsOnViewModel",value:function(e,t){e.setState(b.protected.testId,"__MW_TREETABLE__"+t.dataTestId),e.setState(b.treetable.treeColumnIndex,t.treeColumnIndex||C.TREE_COLUMN_INDEX),e.setState(b.protected.INIT_CUSTOM_PROPS_FUNC,A.initTreeColumnProps),e.setState(b.protected.UPDATE_CUSTOM_PROPS_FUNC,A.updateTreeColumnProps)}},{key:"range",value:function(){return m.range()}},{key:"FEATURE",get:function(){return v.AVAILABLE}},{key:"EDITORS",get:function(){return y}},{key:"compare",get:function(){return _.compare}},{key:"RadiobuttonGroup",get:function(){return I}},{key:"REORDER",get:function(){return w.AVAILABLE}},{key:"REPARENT",get:function(){return S.AVAILABLE.REPARENT}},{key:"DND",get:function(){return{DEFAULT_TYPE:S.TREETABLE_DEFAULT_TYPE}}},{key:"PLATFORMS",get:function(){return E.exposed}},{key:"KEYS",get:function(){return T}},{key:"gridStyle",get:function(){return M.public_enum}}]),n}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(461),i(337),i(739),i(6689)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._viewModel=e.viewModel,this._baseColumnConfig=Object.create(this._viewModel.getColumnHeaders()),this._orderedColumnConfig=Object.create(this._baseColumnConfig),this._computedHeaderWidths=[],this._getMapping(),this.setColumnConfig(this.getColumnConfig())}return a(o,[{key:"eventList",value:function(){var e=this,i={};return i[t.protected.COL_HEADER_MOUNT]=function(t){return e._storePixelWidths(t.event)},i[t.protected.COL_RESIZE]=function(t){return e._swapPercentsForPixels(t.event)},i}},{key:"exposedTreeTableAPIs",value:function(){return{getColumnConfig:this.getColumnConfig.bind(this),setColumnConfig:this.setColumnConfig.bind(this)}}},{key:"_columnsNotPaged",value:function(e){var t=e.length||this._viewModel.dataSize.columns.end;return i.notEnoughColumnsToPage(t)}},{key:"_storePixelWidths",value:function(e){var t=e.width,i=e.column,n=this._viewModel.getColumnHeaders();if(this._columnsNotPaged(n)){var o=i;n[i]&&(o=this._customMapping[n[i].columnId]),this._computedHeaderWidths[o]=t}}},{key:"_swapPercentsForPixels",value:function(){var e=this,t=this._viewModel.getColumnHeaders();this._columnsNotPaged(t)&&this._baseColumnConfig.forEach((function(t,i){t.width={value:e._computedHeaderWidths[i],unit:"px"}})),this.setColumnConfig(this.getColumnConfig()),this._swapPercentsForPixels=function(){return!0},this._storePixelWidths=function(){return!0}}},{key:"_removeHiddenColumns",value:function(){for(var e=Object.create(this._orderedColumnConfig),t=0;t<e.length;t+=1){var i=void 0===e[t].hideable||e[t].hideable;e[t].hidden&&i&&e.length>1&&(e.splice(t,1),t-=1)}return this._autoFillMissingPercentageWidth(e),e}},{key:"_autoFillMissingPercentageWidth",value:function(e){var t=i.validateColPct(e),n=r(t,2),o=n[0],a=n[1];if(a>-1){var s=Object.create(e[a]);Object.keys(e[a]).forEach((function(t){s[t]=e[a][t]})),s.width={value:s.width.value+o,unit:"%"},e[a]=s}}},{key:"_mergeBaseItem",value:function(e,t){Object.keys(t).forEach((function(i){e[i]=t[i]}))}},{key:"_moveColumns",value:function(e){var t=this;e.forEach((function(e){var i=t._orderedColumnConfig.indexOf(e.item);t._orderedColumnConfig.splice(i,1),t._orderedColumnConfig.splice(e.toIndex,0,e.item)}))}},{key:"_getMapping",value:function(){var e=[],t=Object.create(e);this._baseColumnConfig.forEach((function(i,n){var o=n.toString();e.push(n),o!==i.columnId&&(t[i.columnId]=n)})),this._customMapping=t}},{key:"getColumnConfig",value:function(){return n(this._baseColumnConfig,this._customMapping)}},{key:"setColumnConfig",value:function(t){var i=this;this._moveColumns(t._moves),Object.keys(t).forEach((function(e){i._mergeBaseItem(i._baseColumnConfig[e],t[e])})),this._viewModel.setColumnHeaders(this._removeHiddenColumns()),this._viewModel.setState(e.protected.WIDTH_CHANGED,!0),this._viewModel.setState(e.protected.COLUMN_CONFIG,!0)}},{key:"treeTableEmits",get:function(){return[]}}]),o}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){"use strict";return function(e,t){var i=[];function n(e){return!(!e||null===e.columnId||void 0===e.columnId)&&!(isNaN(t[e.columnId])||t[e.columnId]<0)}var o={getColumn:{value:function(i){if(!n(i))return null;var o=t[i.columnId];if(!this[o]){var r=Object.create(e[o]);this[o]=r}return this[o]},writable:!1},moveColumn:{value:function(o,r){if(n(o)&&function(e){return!(!e||null===e.index||void 0===e.index)&&!isNaN(e.index)}(r)){var a,s,l=Math.min(Math.max(r.index,0),e.length-1),c=t[o.columnId];a=e[c],s=e[l],a.parentId===s.parentId?i.push({item:e[c],toIndex:l}):console.warn("The destination index ("+l+") does not share the same parent as the column being moved (columnId: "+o.columnId+")")}},writable:!1},_moves:{get:function(){return i}}};return Object.create(null,o)}}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(6691),i(6692),i(2233)],o=i.dj.d(n,(function(e,t,i){return function(i){function n(i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return i.emitEditCompleted=o.emitEditCompleted.bind(o),i.emitEditCanceled=o.emitEditCanceled.bind(o),i.emitIconAction=o.emitIconAction.bind(o),o._editController=new e(i),o._interactiveController=new t(i),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),r(n,[{key:"exposedTreeTableAPIs",value:function(){return{_editCell:this.editCell.bind(this)}}},{key:"treeTableEmits",get:function(){return["editCompleted","editCanceled","iconAction"]}}]),n}(i)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(461),i(392),i(636)],o=i.dj.d(n,(function(e,t,i,n){return function(){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=e.emitEditCompleted,i=e.dataStore,r=e.viewModel;this._dataStore=i,this._viewModel=r,this._emitEditCompleted=t,this._validKeys={},this._originalValuePromise={then:function(){}};for(var a=n.BACKSPACE;a<=n.SYM2_END;a++)this._validKeys[a]=this._isValidKeyDownEvent(a);var s=e.emitEditCanceled;this._emitEditCanceled=s}return r(o,[{key:"eventList",value:function(){var e=this;return{treeTableKeyPress:function(t){return e.setEditorOnKeyPress(t)},editComplete:function(t){return e.handleEditComplete(t)},enterEditMode:function(t){return e.setEditorOnCell(t)},leaveEditMode:function(t){return e.handleEditCancel(t)}}}},{key:"editCell",value:function(e){var t=e.container;this._setEditorOnFocusedCell(t)}},{key:"setEditorOnCell",value:function(t){if(!i.hasModifierKey(t.event)){var n=t.event,o=n.row,r=n.column,a=e.range().setRows(o,o).setColumns(r,r);this._setupEditorOnRange(a)}}},{key:"setEditorOnKeyPress",value:function(e){var t=e.event;t.ctrlKey||t.altKey||t.meta||t.shiftKey&&t.keyCode===n.SPACE||this._validKeys[t.keyCode]&&this._setEditorOnFocusedCell(t.nativeEvent.target)}},{key:"_setEditorOnFocusedCell",value:function(e){var i=this._viewModel.getStateByKey(t.protected.FOCUSED)||{};if(i.rangeList&&i.rangeList.length>0){var n=i.rangeList[0];this._isTargetCellEditable(e,n)&&this._setupEditorOnRange(n)}}},{key:"removeEditorOnCell",value:function(){this._viewModel.deleteState(t.protected.EDIT_STATE)}},{key:"_isTargetCellEditable",value:function(e,t){var i=e;if(!i.hasAttribute("data-cell-type")){var n=t.rows.start,o=t.columns.start;return 1===i.querySelectorAll('[data-row="'+n+'"][data-col="'+o+'"][data-cell-type^="Editable"]').length}return 0===i.getAttribute("data-cell-type").indexOf("Editable")}},{key:"_setupEditorOnRange",value:function(e){this._originalValuePromise=this._dataStore.getData([e]).then((function(t){return t[0][e.rows.start][e.columns.start]}));var i={};i[e.rows.start+","+e.columns.start]=!0,this._viewModel.setState(t.protected.EDIT_STATE,i,[e])}},{key:"_isValidKeyDownEvent",value:function(e){return(e=e||1)===n.F2||e===n.ENTER}},{key:"handleEditCancel",value:function(e){var t=e.event,i=t.newValue,n=t.oldValue,o=t.column,r=t.node,a=t.columnId;this.removeEditorOnCell(),this._emitEditCanceled({cellInfo:{id:r.id,column:o,columnId:a},newValue:i,oldValue:n})}},{key:"handleEditComplete",value:function(e){var i=e.event,n=i.newValue,o=i.column,r=i.node,a=(this._viewModel.getColumnHeaders()[Number(o)]||{dataIndex:o}).dataIndex;this.removeEditorOnCell(),this._viewModel.deleteColumnMetaData(t.protected.SORTED,a);var s=[];s[a]=n,this._dataStore.update({id:r.id},s),this._emitEditCompletedEvent(e.event)}},{key:"_emitEditCompletedEvent",value:function(e){var t=e.newValue,i=e.oldValue,n=e.column,o=e.node,r=e.columnId;this._emitEditCompleted({cellInfo:{id:o.id,column:n,columnId:r},newValue:t,oldValue:i})}}]),o}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(337),i(461),i(636),i(2383),i(212),i(6693),i(392),i(690)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){return function(){function c(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var t=e.emitEditCompleted,i=e.emitIconAction,n=e.dataStore,o=e.viewModel;this._viewModel=o,this._dataStore=n,this._emitEditCompleted=t,this._emitIconAction=i}return r(c,[{key:"eventList",value:function(){var t={};return t[e.internal.INTERACTIVE_CELL_CLICK]=this._handleCellClickEvent.bind(this),t[e.internal.TREETABLE_KEY_PRESS]=this._handleKeyPressEvent.bind(this),t}},{key:"_getInteractiveRenderer",value:function(e,t){var i=this._viewModel.getStateByKey("interactiveRenderer")||{},n=l.getInteractiveRendererFor(i,e,t);if(n)return n.renderer}},{key:"_getCurrentlyCheckedValue",value:function(e){var t=this,i=e.data,o=e.row,r=e.column,a=e.renderer,s=e.metaData,l=e.rowIndices,c=(this._viewModel.getColumnHeaders()[Number(r)]||{dataIndex:r}).dataIndex,d=void 0;switch(s.rendererConfig.groupBy){case n.PARENT:d=i.map((function(e,i){var n=l[i];return a=t._getInteractiveRenderer(n,r),{row:i,column:c,arrayIndex:i,dataIndex:c,renderer:a}}));break;case n.ROW:d=i[0].map((function(e,i){return{row:0,column:i,arrayIndex:0,dataIndex:i,renderer:a=t._getInteractiveRenderer(o,i)}}))}return this._getCheckedValue(d,i)}},{key:"_getCheckedValue",value:function(e,t){var i=void 0,n=!0,o=!1,r=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var c=s.value;if(c.renderer&&c.renderer.toggle&&(i=c.renderer.handleAction(t[c.row][c.column],{actionName:a.CONTROLLER})).hasChanged)return{dataIndex:c.dataIndex,value:i,arrayIndex:c.arrayIndex}}}catch(e){o=!0,r=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw r}}return null}},{key:"_updateToggledValues",value:function(e){var t=this,i=e.row,r=e.column,a=e.node,s=e.metaData,l=e.renderer,c=new o,d=[],u=void 0,h=void 0;switch(s.rendererConfig.groupBy){case n.PARENT:h=this._dataStore.getChildNodes({id:e.metaData.parentId}).then((function(e){return u=e.map((function(e){return d.push(e.index),{id:e.node.id}})),t._dataStore.getData({proxyNodes:u})})).then((function(e){var n={data:e,rowIndices:d,row:i,column:r,metaData:s,renderer:l},o=t._getCurrentlyCheckedValue(n);return c.resolve({currentlyCheckedValue:o,proxyNodes:u}),c.promise}));break;case n.ROW:u=[{id:a.id}],h=this._dataStore.getData({proxyNodes:u}).then((function(e){var n={data:e,row:i,column:r,metaData:s,renderer:l},o=t._getCurrentlyCheckedValue(n);return c.resolve({currentlyCheckedValue:o,proxyNodes:u}),c.promise}))}this._updateDataStoreForToggleRenderer(h,e)}},{key:"_updateDataStoreForToggleRenderer",value:function(e,t){var i=this;e.then((function(e){var n=e.currentlyCheckedValue,o=e.proxyNodes;if(n){var r=[],a=o[n.arrayIndex].id;r[n.dataIndex]=n.value.newValue,i._dataStore.update({id:a},r)}i._updateDataStore({newValue:t.newValue,oldValue:t.oldValue,id:t.node.id,row:t.row,column:t.column})}))}},{key:"_handleCellClickEvent",value:function(e){var t=e.event,i=t.row,n=t.column,o=this._getInteractiveRenderer(i,n);o&&(e.event.renderer=o,o.toggle?this._updateToggledValues(e.event):o.iconAction?this._updateIconAction(e.event):this._updateDataStore(e.event))}},{key:"_updateIconAction",value:function(e){var t=this._viewModel.getColumnHeaders()[Number(e.column)],i=void 0;i=e.node?e.node.id:e.id,this._emitIconAction({cellInfo:{id:i,column:e.column,columnId:t.columnId}})}},{key:"_updateDataStore",value:function(e){var t=this._viewModel.getColumnHeaders()[Number(e.column)]||{dataIndex:e.column},i=[],n=void 0;i[t.dataIndex]=e.newValue,n=e.node?e.node.id:e.id,this._dataStore.update({id:n},i),this._emitEditCompleted({cellInfo:{id:n,column:e.column,columnId:t.columnId},newValue:e.newValue,oldValue:e.oldValue})}},{key:"_handleKeyPressEvent",value:function(e){var n=this,o=s.hasModifierKey(e.event),r=[i.SPACE,i.ENTER],l=[i.SPACE];if(r.includes(e.event.keyCode)&&!o){var c=this._viewModel.getStateByKey(t.protected.FOCUSED);if(c&&c.rangeList&&c.rangeList.length>0){var d=c.rangeList[0],u=d.rows.start,h=d.columns.start,p=this._getInteractiveRenderer(u,h);if(!p)return;if(!p.iconAction&&!l.includes(e.event.keyCode))return;var f=(this._viewModel.getColumnHeaders()[Number(h)]||{dataIndex:h}).dataIndex,g=this._dataStore.getLocalCellData(u,f),m=this._dataStore.getLocalCellMetaData(u,f),_=p.handleAction(g,{actionName:a.KEY_PRESS});_.hasChanged&&(p.toggle?this._dataStore.getNode({id:m.id}).then((function(e){var t={node:e.node,row:u,column:h,renderer:p,metaData:m,oldValue:_.oldValue,newValue:_.newValue};n._updateToggledValues(t)})):p.iconAction?this._updateIconAction({id:c.value,row:u,column:h}):this._updateDataStore({newValue:_.newValue,oldValue:_.oldValue,id:c.value,row:u,column:h}))}}}}]),c}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({CLICK:"click",KEY_PRESS:"keypress",CONTROLLER:"controller"})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(973),i(337),i(212)],o=i.dj.d(n,(function(e,t,i){function n(e){return"number"==typeof e&&e%1==0}var o=function(e){var t=new i;setTimeout((function(){return e(t.resolve,t.reject)}),0),this.then=t.promise.then};return function(){function i(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._viewModel=t.viewModel,this._dataStore=t.dataStore,this._logicalViewPort=t.viewPortList[0],this.cellNav=new e(this._viewModel)}return r(i,[{key:"eventList",value:function(){var e=this,i={};return i[t.protected.HEADER_RECTS]=function(t){return e._setHeaderRects(t)},i}},{key:"_setHeaderRects",value:function(e){this._headerRects=e.event.children}},{key:"exposedTreeTableAPIs",value:function(){return{scrollTo:this.scrollTo.bind(this)}}},{key:"scrollTo",value:function(e){var t=this,i=void 0;if(e){if(e.id)i=this._dataStore.expandTo({id:e.id}).then((function(e){if(!e)return new o((function(e,t){t(new Error("Couldn't find the row with id to be scrolled to"))}));var i=e.index,n=t.cellNav.getScrollTopPosition(i);t._logicalViewPort.setScrollTopPx(n)}));else if(n(e.row)&&e.row>=0){var r=this._viewModel.dataSize.rows.count>e.row?e.row:this._viewModel.dataSize.rows.count-1,a=this.cellNav.getScrollTopPosition(r);this._logicalViewPort.setScrollTopPx(a),i=new o((function(e){return e(null)}))}if(n(e.column)&&e.column>=0){var s=this._viewModel.dataSize.columns.count>e.column?e.column:this._viewModel.dataSize.columns.count-1,l=this.cellNav.getScrollLeftPosition(s,this._headerRects());this._logicalViewPort.setScrollLeftPx(l),i=new o((function(e){return e(null)}))}}return i=i||new o((function(e,t){t(new Error("The usage of position argument is not correct. Please check JSDoc to see the correct usage."))}))}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(212),i(244),i(394)],o=i.dj.d(n,(function(e,t,i){return function(i){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._dataStore=e.dataStore,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),r(n,[{key:"filter",value:function(i){var n=new e,o=this._dataStore.filter(i),r=this._dataStore.expandAll();return t({filterPromise:o,expandAllPromise:r}).then((function(){return n.resolve()}))}},{key:"clearFilter",value:function(){return this._dataStore.clearFilter()}},{key:"exposedTreeTableAPIs",value:function(){var e=this;return{filter:function(t){return e.filter(t)},clearFilter:function(){return e.clearFilter()}}}},{key:"eventList",value:function(){return{}}},{key:"treeTableEmits",get:function(){return[]}}]),n}(i)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(337)],o=i.dj.d(n,(function(e,t){return function(e){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));t._handleDoubleClick=t._handleDoubleClick.bind(t),t._preventDefault=t._preventDefault.bind(t);var n=e.viewModel;return t._viewModel=n,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),r(i,[{key:"eventList",value:function(){var e=this,i={};return i[t.protected.CELL_DBL_CLICK]=function(t){return e._handleDoubleClick(t.event)},i}},{key:"_preventDefault",value:function(){this._defaultPrevented=!0}},{key:"_handleDoubleClick",value:function(e){this._defaultPrevented=!1;var i={id:e.id,column:e.column,columnId:e.columnId},n=this._viewModel.getStateForCustomEvent(),o=Object.assign(n,{cellInfo:i,preventDefault:this._preventDefault});this.emit(t.exposed.DOUBLE_CLICKED,o),!this._defaultPrevented&&e.defaultFn&&e.defaultFn()}},{key:"exposedTreeTableAPIs",value:function(){return{}}},{key:"treeTableEmits",get:function(){return[t.exposed.DOUBLE_CLICKED]}}]),i}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2385),i(392),i(6698),i(974),i(337),i(848),i(461),i(636)],o=i.dj.d(n,(function(e,t,i,n,o,s,l,c){"use strict";return function(){function d(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var t=e.dataStore,i=e.viewModel;this._viewModel=i,this._dataStore=t,this._keyHandlerList=[],this._preventDefault=this._preventDefault.bind(this)}return a(d,[{key:"_getKeyHandlerList",value:function(){return this._keyHandlerList}},{key:"_setKeyHandlerList",value:function(e){this._keyHandlerList=e}},{key:"eventList",value:function(){var e={};return e[o.protected.TABLE_KEY_PRESS]=this._handleTreeTableKeyPress.bind(this),e}},{key:"exposedTreeTableAPIs",value:function(){return{addCustomKeyHandler:this.addCustomKeyHandler.bind(this),removeCustomKeyHandler:this.removeCustomKeyHandler.bind(this)}}},{key:"removeCustomKeyHandler",value:function(e){if(!e||"string"!=typeof e)throw new Error("Invalid KeyHandlerName, "+e+" should be a String.");var i=this._getKeyHandlerList();if(!t.isPropertyInTheObject(i,s.KEY_HANDLER_NAME,e))throw new Error("Invalid KeyHandlerName, "+e+" has not been added by addCustomKeyHandler API.");i&&Array.isArray(i)&&i.length>0&&(i=i.filter((function(t){return t[s.KEY_HANDLER_NAME]!==e})),this._setKeyHandlerList(i))}},{key:"addCustomKeyHandler",value:function(e,i,n){if(!e||"string"!=typeof e)throw new Error("Invalid KeyHandlerName, "+e+" should be a String.");var o=this._getKeyHandlerList();if(t.isPropertyInTheObject(o,s.KEY_HANDLER_NAME,e))throw new Error("Invalid KeyHandlerName, "+e+" should be Unique, "+e+" is already bound to addCustomKeyHandler API.");if("function"!=typeof n)throw new Error("Invalid KeyHandler callback, "+n+" should be a function.");this._generateKeyHandlerList(e,i,n,o)}},{key:"_generateKeyHandlerList",value:function(o,a,l,c){var d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.internal.ALL;if(a&&Array.isArray(a)){if(i.validatingKeyBindingLength(a),t.hasDuplicates(a))throw new Error("Invalid KeyBinding, Duplicate keycode found.");var u=!0,h=!1,p=void 0;try{for(var f,g=a[Symbol.iterator]();!(u=(f=g.next()).done);u=!0){var m=f.value;this._validatingIndividualKeyCombination(m,d,c);var _=e.isKeyBindingInHandlerList(m,o,c);if(_){var v=e.findPropertyInTheObject(m,o,c);v&&v[s.PLATFORMS]&&this._updateKeyHandlerObjectWithPlatform(v[s.PLATFORMS],d)}if(m&&!_){var b=e.getModifierLookupList();Array.isArray(m)&&(b=e.getModifierKeyCodeList(m));var y={};y[s.KEY_CODE]=m,y[s.KEY_HANDLER_NAME]=o,y[s.KEY_HANDLER]=l,y[s.PLATFORMS]=[d],y[s.MODIFIER_KEY_LIST]=b,c.push(y)}}}catch(e){h=!0,p=e}finally{try{!u&&g.return&&g.return()}finally{if(h)throw p}}}else{if(!a||"object"!==(void 0===a?"undefined":r(a)))throw new Error("Invalid KeyBinding, it should be an Array or Object");for(var C in i.validatingKeyBindingLength(Object.keys(a)),i.validatingPlatformInKeyBinding(a),a)a.hasOwnProperty(C)&&this._generateKeyHandlerList(o,a[C],l,c,C)}}},{key:"_validatingIndividualKeyCombination",value:function(n,o,r){if(!n)throw new Error("Invalid KeyBinding, Please refer to valid keycode in JSDoc.");if(Array.isArray(n)){if(n.length<=1)throw new Error("Invalid KeyBinding, Key Combination should have one regular key and multiple modifier keys");i.validateSequenceOfKeyCombination(n),i.validateKeyCombinations(n,o,r)}else{if(!e.keyCodeLookUpArray().includes(n))throw new Error("Invalid KeyBinding, Please refer to valid keycode in jsDoc");var a=e.findKeyCodeInTheList(n,o,r);if(a&&a[s.KEY_HANDLER_NAME])throw new Error("Invalid KeyBinding, "+t.getKeyByValue(c,n)+" is already bound to "+a[s.KEY_HANDLER_NAME]+" KeyHandler")}}},{key:"_updateKeyHandlerObjectWithPlatform",value:function(t,i){!e.isPlatformInTheList(t,i)&&Array.isArray(t)&&t.push(i)}},{key:"_getSelectionState",value:function(){var e=this._viewModel.getStateByKey(l.protected.SELECTED);return e&&e.value?e.value:[]}},{key:"_getSelection",value:function(){return this._getSelectionState().map((function(e){return{id:e}}))}},{key:"_getFocusedState",value:function(){return this._viewModel.getStateByKey(l.protected.FOCUSED)||null}},{key:"_getFocused",value:function(){var e={},t=this._getFocusedState();return t&&t.rangeList[0]&&t.value&&(e.column=t.rangeList[0].columns.start,e.id=t.value),e}},{key:"_handleTreeTableKeyPress",value:function(e){var t=this;this._defaultPrevented=!1;var i=Object.assign([],this._getKeyHandlerList()),n=e.event,o={};if(o.preventDefault=this._preventDefault,o.selectedRows=this._getSelection(),o.focusedCell=this._getFocused(),i){var r=i.filter((function(e){return t._isKeyHandlerObjInTheList(n,e)})),a=!0,l=!1,c=void 0;try{for(var d,u=r[Symbol.iterator]();!(a=(d=u.next()).done);a=!0){if(d.value[s.KEY_HANDLER](o),this._defaultPrevented)break}}catch(e){l=!0,c=e}finally{try{!a&&u.return&&u.return()}finally{if(l)throw c}}}!this._defaultPrevented&&n.eventCallback&&this._emitExistingEvents(n)}},{key:"_isKeyHandlerObjInTheList",value:function(i,o){var r=t.getUsersPlaform(),a=o[s.KEY_CODE],l=o.modifierKeyList;Array.isArray(a)&&(a=e.getKeyCodeArray(a)[0]);var c=e.isPlatformInTheList(o[s.PLATFORMS],r),d=c;return c||o[s.PLATFORMS][0]!==n.internal.ALL||(d=!0),i[s.KEY_CODE]===a&&i[s.ALT_KEY]===l[s.ALT_KEY]&&i[s.CTRL_KEY]===l[s.CTRL_KEY]&&i[s.META]===l[s.META]&&i[s.SHIFT_KEY]===l[s.SHIFT_KEY]&&d}},{key:"_preventDefault",value:function(){this._defaultPrevented=!0}},{key:"_emitExistingEvents",value:function(e){var t=e.nativeEvent,i=e.keyCode,n=e.meta,r=e.ctrlKey,a=e.shiftKey,s=e.altKey;e.eventCallback&&e.eventCallback(o.internal.TREETABLE_KEY_PRESS,{nativeEvent:t,keyCode:i,meta:n,ctrlKey:r,shiftKey:a,altKey:s})}}]),d}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2385),i(392),i(974),i(848)],o=i.dj.d(n,(function(e,t,i,n){return function(){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o)}return r(o,null,[{key:"validatingKeyBindingLength",value:function(e){if(t.isArrayEmpty(e))throw new Error("Invalid KeyBinding, one or more values are empty")}},{key:"validatingPlatformInKeyBinding",value:function(e){var t=i.exposed.WINDOWS in e,n=i.exposed.LINUX in e,o=i.exposed.MAC in e;if(!(t&&n&&o))throw new Error("Invalid KeyBinding, it should have TreeTable.PLATFORMS.WINDOWS, TreeTable.PLATFORMS.LINUX and TreeTable.PLATFORMS.MAC as a key")}},{key:"validateSequenceOfKeyCombination",value:function(i){if(i){if(t.hasDuplicates(i))throw new Error("Invalid KeyBinding, Duplicate Key Combination found");if(1!==e.getKeyCodeArray(i).length)throw new Error("Invalid KeyBinding, Excluding modifiers, there can only be one key for the binding");return!0}return!1}},{key:"validateKeyCombinations",value:function(i,o,r){if(i&&o&&r){var a=r.filter((function(e){return Array.isArray(e.keyCode)})),s=!0,l=!1,c=void 0;try{for(var d,u=a[Symbol.iterator]();!(s=(d=u.next()).done);s=!0){var h=d.value;if(t.isArrayMatching(h[n.KEY_CODE],i)&&e.isThePlatformInObject(h[n.PLATFORMS],o))throw new Error("Invalid KeyBinding, Key Combination is already bound to addCustomKeyHandler API")}}catch(e){l=!0,c=e}finally{try{!s&&u.return&&u.return()}finally{if(l)throw c}}}}}]),o}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(2387),i(337),i(636)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(e){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(i.protected.CELL_SELECTION_CLICK,(function(e){return t._handleSelection(e)})),e.adaptor.on(i.protected.CELL_SELECTION_KEY,(function(e){return t._keyPressed(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),r(o,[{key:"_handleSelection",value:function(e){var t=this,i=e.node?e.node.id:void 0,n=e.ctrlKey||e.meta;this._lastSelectedRow=e.row,void 0===i?this.adaptor.getRowIdForIndex(e.row).then((function(i){t._lastSelectedRow===e.row&&void 0!==i&&t._setSingleSelection({selectionId:i,isCtrlKeyOrMetaKeyPressed:n})})):this._setSingleSelection({selectionId:i,isCtrlKeyOrMetaKeyPressed:n})}},{key:"_setSingleSelection",value:function(e){var t=e.selectionId,i=e.isCtrlKeyOrMetaKeyPressed,n=this._isSelectionChanged(t);if(i)this._handleSelectAndDeselectEvent(t,n);else{var o=void 0!==t?[t]:null;this.adaptor.setSelectionState(o)}this._handleSelectionChangedEvent(t,n,i)}},{key:"_isSelectionChanged",value:function(e){return this.adaptor.getSelectedIdIndex(e)<0}},{key:"_handleSelectAndDeselectEvent",value:function(e,t){t?this.adaptor.setSelectionState([e]):this.adaptor.setSelectionState([])}},{key:"_keyPressed",value:function(e){if(!e.ctrlKey&&!e.meta||e.keyCode===n.SPACE)switch(e.keyCode){case n.ARROW_DOWN:case n.ARROW_UP:case n.ARROW_LEFT:case n.ARROW_RIGHT:case n.PAGE_DOWN:case n.PAGE_UP:case n.HOME:case n.END:case n.SPACE:this._handleSelection(e)}}},{key:"_handleSelectionChangedEvent",value:function(e,t,i){(void 0!==e&&t||void 0!==e&&i)&&this._emitSelectionEvt()}},{key:"_emitSelectionEvt",value:function(){var e=this.adaptor.getSelectionState().map((function(e){return{id:e}}));this.emit(i.exposed.SELECTION_CHANGED,{selection:e})}},{key:"setSelection",value:function(e){if(null===e&&(e=[]),!Array.isArray(e))throw new Error("Expected: proxyNode array or empty array to signify no selection. Usage: setSelection([{id: 'a'}]), setSelection([])");var t=e.map((function(e){if(e.id)return e.id;throw new Error(e+" should be a proxyNode containing an id property")}));this.adaptor.setSelectionState(t)}},{key:"getSelection",value:function(){return this.adaptor.getSelectionState().map((function(e){return{id:e}}))}},{key:"exposedTreeTableAPIs",value:function(){return{setSelection:this.setSelection.bind(this),getSelection:this.getSelection.bind(this)}}},{key:"treeTableEmits",get:function(){return[i.exposed.SELECTION_CHANGED]}}],[{key:"adaptor",get:function(){return t}}]),o}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(239),i(394),i(2387),i(337),i(636)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return function(t){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(n.protected.CELL_SELECTION_CLICK,(function(e){return t._handleSelection(e)})),e.adaptor.on(n.protected.CELL_SELECTION_KEY,(function(e){return t._keyPressed(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,t),r(a,[{key:"_handleSelection",value:function(t){var i=this,n=e.range().setEntireRows(Number(t.row)),o=t.node?t.node.id:void 0,r=t.ctrlKey||t.meta,a=t.shiftKey;this._lastSelectionRange=n,void 0===o?this.adaptor.getRowIdForIndex(t.row).then((function(e){i._lastSelectionRange===n&&i._setMultipleSelection({selectionId:e,selectionRange:n,isCtrlKeyOrMetaKeyPressed:r,isShiftPressed:a})})):this._setMultipleSelection({selectionId:o,selectionRange:n,isCtrlKeyOrMetaKeyPressed:r,isShiftPressed:a})}},{key:"_setMultipleSelection",value:function(e){var t=this,i=e.selectionId,n=e.selectionRange,o=e.isCtrlKeyOrMetaKeyPressed,r=e.isShiftPressed,a=this._isSelectionChanged(i);o?(this.adaptor.setDiscontiguousRow(i),this._emitSelectionEvt()):r?this.adaptor.setContiguousRows(n).then((function(){a&&t._emitSelectionEvt()})):this._handleIndividualRowSelection(i,a)}},{key:"_isSelectionChanged",value:function(e){return this.adaptor.isRowSelected(e)<0}},{key:"_handleIndividualRowSelection",value:function(e,t){this.adaptor.setIndividualRow(e),void 0!==e?t&&this._emitSelectionEvt():this.adaptor.emitSelectionEvtWhenDataPagesIntoView(this._emitSelectionEvt.bind(this))}},{key:"_keyPressed",value:function(e){var t=e.node?e.node.id:null;if(e.ctrlKey||e.meta)return e.keyCode===o.SPACE?void this._handleSelection(e):void 0;switch(e.keyCode){case o.ARROW_DOWN:case o.ARROW_UP:case o.ARROW_LEFT:case o.ARROW_RIGHT:case o.PAGE_DOWN:case o.PAGE_UP:case o.HOME:case o.END:this._handleSelection(e);break;case o.SPACE:e.shiftKey?this._handleSelection(e):this.adaptor.isRowSelected(t)<0&&(e.ctrlKey=!0,this._handleSelection(e))}}},{key:"_emitSelectionEvt",value:function(){var e=this.adaptor.getSelectionState().map((function(e){return{id:e}}));this.emit(n.exposed.SELECTION_CHANGED,{selection:e})}},{key:"setSelection",value:function(e){if(null===e&&(e=[]),!Array.isArray(e))throw new Error("Expected: proxyNode array or empty array to signify no selection. Usage: setSelection([{id: 'a'}, {id: 'b'}]), setSelection([])");var t=e.map((function(e){if(e.id)return e.id;throw new Error(e+" should be a proxyNode containing an id property")}));this.adaptor.setSelectionState(t)}},{key:"getSelection",value:function(){return this.adaptor.getSelectionState().map((function(e){return{id:e}}))}},{key:"exposedTreeTableAPIs",value:function(){return{setSelection:this.setSelection.bind(this),getSelection:this.getSelection.bind(this)}}},{key:"treeTableEmits",get:function(){return[n.exposed.SELECTION_CHANGED]}}],[{key:"adaptor",get:function(){return i}}]),a}(t)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(6702),i(337)],o=i.dj.d(n,(function(e,t,i){return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(i.internal.TABLE_RIGHT_CLICK,(function(e){return t._emitContextMenu(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"_emitContextMenu",value:function(e){this.emit(i.exposed.CONTEXT_MENU,e)}},{key:"exposedTreeTableAPIs",value:function(){return{}}},{key:"treeTableEmits",get:function(){return[i.exposed.CONTEXT_MENU]}}],[{key:"adaptor",get:function(){return t}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(337),i(459)],o=i.dj.d(n,(function(e,t,i){return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t._viewModel=e.viewModel,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"eventList",value:function(){var e={};return e[t.internal.TABLE_RIGHT_CLICK]=this.handleRightClick.bind(this),e}},{key:"handleRightClick",value:function(e){var n=this._viewModel.getStateForCustomEvent(),o=Object.assign(n,e.event);i.validateContextMenuEventInfo(o),this.emit(t.internal.TABLE_RIGHT_CLICK,o)}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(6704),i(337)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(i.protected.HEADER_CLICKED,(function(e){return t._handleHeaderMenu(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"_handleHeaderMenu",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.emit(i.exposed.HEADER_MENU,e)}},{key:"treeTableEmits",get:function(){return[i.exposed.HEADER_MENU]}}],[{key:"adaptor",get:function(){return t}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(337),i(461),i(327)],o=i.dj.d(n,(function(e,t,i,n){return function(e){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return t._viewModel=e.viewModel,t._viewModel.setState(i.protected.HEADER_MENU_AFFORDANCE,!0),t._handleHeaderMenu=t._handleHeaderMenu.bind(t),t._initialize(e.options),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),r(o,[{key:"_initialize",value:function(e){var t=this._viewModel.getColumnHeaders()||[],i=n.getNestedProp(e,["columnModel","columnConfig"]);i&&t.forEach((function(e,t){i[t]&&i[t].headerMenu&&(e.headerMenu=i[t].headerMenu)}))}},{key:"eventList",value:function(){var e={};return e[t.protected.HEADER_CLICKED]=this._handleHeaderMenu,e}},{key:"_handleHeaderMenu",value:function(e){var i={top:e.event.bottomRect,left:e.event.leftRect,columnIndex:e.event.columnIndex};this.emit(t.protected.HEADER_CLICKED,i)}}]),o}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(6706),i(337)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(i.protected.TABLE_COLUMN_SORT,(function(e){return t._handleSort(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"exposedTreeTableAPIs",value:function(){return{setSortIndicator:this.setSortIndicator.bind(this)}}},{key:"_handleSort",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.order,i=e.column,n=e.type;t&&i>=0&&n&&this.adaptor.sortColumn({columnIndex:i,order:t,compare:n})}},{key:"setSortIndicator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.adaptor.setSortIndicator(e)}},{key:"treeTableEmits",get:function(){return[]}}],[{key:"adaptor",get:function(){return t}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(327),i(239),i(394),i(337),i(461),i(212),i(244)],o=i.dj.d(n,(function(e,t,i,n,o,a,s){var l=function(e){var t=new a;setTimeout((function(){return e(t.resolve,t.reject)}),0),this.then=t.promise.then};return function(i){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return t._viewModel=e.viewModel,t._dataStore=e.dataStore,t._initialize(e.options),t._viewModel.setState(o.protected.SORTABLE,!0),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,i),r(a,[{key:"_dataStoreGetNode",value:function(){var e;return(e=this._dataStore).getNode.apply(e,arguments)}},{key:"eventList",value:function(){var e=this,t={};return t[n.protected.SORT_AFFORDANCE_CLICKED]=function(t){return e.emit(n.protected.TABLE_COLUMN_SORT,t.event)},t}},{key:"_initialize",value:function(t){var i=this._viewModel.getColumnHeaders()||[],n=e.getNestedProp(t,["columnModel","columnConfig"]);n&&i.forEach((function(e,t){n[t]&&n[t].sortType&&(e.sortType=n[t].sortType)}))}},{key:"sortColumn",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.columnIndex,n=t.order;return isNaN(i)||i<0||!n?new l((function(e){return e()})):this.setSortIndicator(t).then((function(){return e._viewModel.sort([t])}))}},{key:"_removeColumnSortState",value:function(){var e=this._viewModel.getStateByKey(o.protected.SORTED);if(e&&e.rangeList){var t=e.rangeList[0].columns.start;this._viewModel.deleteColumnMetaData(o.protected.SORTED,t)}}},{key:"_addColumnSortState",value:function(e,i){var n={order:i},r=t.range().setEntireColumns(e);this._viewModel.setColumnMetaData(o.protected.SORTED,n,e),this._viewModel.setState(o.protected.SORTED,i,[r])}},{key:"setSortIndicator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,i=e.order;return t=Number(t),0===Object.keys(e).length?(this._removeColumnSortState(),this._viewModel.deleteState(o.protected.SORTED)):!isNaN(t)&&t>=0&&i&&(this._removeColumnSortState(),this._addColumnSortState(t,i)),this._updateCellStates()}},{key:"_updateCellState",value:function(e){var i=this,n=this._viewModel.getStateByKey(e);if(n&&n.value){var o=void 0,r=n.value.id,a=n.rangeList[0].columns.start;return this._dataStoreGetNode({id:r}).then((function(n){n&&(o=t.range().setRows(n.index,n.index).setColumns(a,a),i._viewModel.setState(e,{id:r},[o]))}))}return new l((function(e){return e()}))}},{key:"_updateCellStates",value:function(){return s([this._updateCellState(o.protected.ACTIVE_CELL),this._updateCellState(o.protected.FOCUSED)])}}]),a}(i)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(973),i(327),i(1177),i(1205),i(461),i(337),i(636),i(394),i(392),i(6708),i(239)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c,d,u){return function(l){function h(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this)),n=t.viewModel,o=t.options;return i._expandCollpaseController=i._findExpandCollapseController(o.initializedControllers),i._viewModel=n,i._logicalViewPort=t.viewPortList[0],i._handler={},i._handler[s.PAGE_UP]=i._handlePageUp.bind(i),i._handler[s.PAGE_DOWN]=i._handlePageDown.bind(i),i._handler[s.END]=i._handleEnd.bind(i),i._handler[s.HOME]=i._handleHome.bind(i),i._handler[s.ARROW_LEFT]=i._handleArrowLeft.bind(i),i._handler[s.ARROW_UP]=i._handleArrowUp.bind(i),i._handler[s.ARROW_RIGHT]=i._handleArrowRight.bind(i),i._handler[s.ARROW_DOWN]=i._handleArrowDown.bind(i),i._rowRects=[],i._headerRects=[],i.cellNav=new e(n),i._activeCell=new d(t),i._dataStore=t.dataStore,i._handler[s.SPACE]=i._handleSpace.bind(i),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,l),r(h,[{key:"_findExpandCollapseController",value:function(e){var t=!0,i=!1,n=void 0;try{for(var o,r=e[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;if(a[0].treeTableEmits&&a[0].treeTableEmits.includes("expanded")&&a[0].treeTableEmits.includes("collapsed"))return a[0]}}catch(e){i=!0,n=e}finally{try{!t&&r.return&&r.return()}finally{if(i)throw n}}}},{key:"_rowClicked",value:function(e){var t=n.getRangeForCell(e.row,e.column),i={id:e.node.id};this._viewModel.setState(o.protected.ACTIVE_CELL,i,[t])}},{key:"_processAndEmitKeyPress",value:function(e){var t=e.event,i={keyCode:t.keyCode};i.modifiers=t,i.dataSize={},i.viewPort={},i.dataSize=e.dataSize,i.viewPort=e.viewPort.rangeList[0],i.viewModel=this._viewModel,i.headerRects=this._headerRects,i.currentState=this._getActiveState();var n=this._viewModel.getStateByKey(o.treetable.POTENTIAL_ACTIVE_CELL);n&&(i.currentState=n,i.potentialActiveCell=!0),this._keyPressed(i),this._viewModel.deleteState(o.treetable.POTENTIAL_ACTIVE_CELL)}},{key:"_keyPressed",value:function(e){if(!this._hasModifier(e)&&(e.keyCode!==s.SPACE||e.currentState)){var t=this._handler[e.keyCode];if(t){var i=t(e);i.leftScrollFn=i.leftScrollFn||this._logicalViewPort.setScrollLeftPx,i.topScrollFn=this._logicalViewPort.setScrollTopPx,e.potentialActiveCell&&e.keyCode!==s.PAGE_DOWN&&e.keyCode!==s.PAGE_UP&&(i.potentialActiveCell=e.currentState),this._handleHorizontalForGroupedRow(e,i),this._activeCell.setActiveCell(i)}}}},{key:"_handleHorizontalForGroupedRow",value:function(e,t){if(e.currentState&&(e.keyCode===s.ARROW_LEFT||e.keyCode===s.ARROW_RIGHT)){var i=e.currentState.rangeList[0],n=this._activeCell.getActiveNodeInView(i);if(n&&c.isGroupedRow(n.groupRow)){var o=t.potentialActiveCell?t.potentialActiveCell.rangeList[0].rows.start:i.rows.start;t.activeRange=u.range().setRows(o,o).setColumns(i.columns.start,i.columns.start),t.leftScrollFn=function(){}}}return t}},{key:"_handleArrowUp",value:function(e){var i=t.curry(this.cellNav.decrement)(e.dataSize.rows.start,1);return e.potentialActiveCell&&(i=t.curry(this.cellNav.decrement)(e.dataSize.rows.start,0)),this._handleVertical(e,i,this.cellNav.getScrollTopPosition)}},{key:"_handleArrowDown",value:function(e){var i=t.curry(this.cellNav.increment)(e.dataSize.rows.end,1);return e.potentialActiveCell&&(i=t.curry(this.cellNav.increment)(e.dataSize.rows.end,0)),this._handleVertical(e,i,this._getLastRowPositionForHeight())}},{key:"_shouldExpandCollapseOnSpaceKey",value:function(e){return!(e.modifiers.altKey||!(!c.getCheckboxTreetableState(this._viewModel)||c.getCheckboxTreetableState(this._viewModel)&&e.modifiers.shiftKey))}},{key:"_handleSpace",value:function(e){var i=t.curry(this.cellNav.decrement)(e.dataSize.rows.start,0),n=this._handleVertical(e,i,this.cellNav.getScrollTopPosition);return this._shouldExpandCollapseOnSpaceKey(e)&&this._handleExpandCollapseOnSpaceKey(n.activeRange),n.handleSpace=!0,n}},{key:"_handleExpandCollapseOnSpaceKey",value:function(e){var t=this,i=this._viewModel.getStateByKey(o.protected.ACTIVE_CELL).value.id;this._dataStore.getNode({id:i}).then((function(i){if(i){var n=e.columns.start,r=t._viewModel.getStateByKey(o.treetable.treeColumnIndex).value,a=i.node,s=a.groupRow;if(n===r||c.isGroupedRow(s)){var l=a.isExpandable,d=a.isExpandable&&!a.isExpanded;l&&(d?t._expandCollpaseController.expandNode(a,{updateActiveCell:!1}):t._expandCollpaseController.collapseNode(a,{updateActiveCell:!1}))}}}))}},{key:"eventList",value:function(){var e=this,t={};return t[a.protected.TABLE_CELL_CLICK]=function(t){return e._rowClicked(t.event)},t[a.internal.TREETABLE_KEY_PRESS]=function(t){return e._processAndEmitKeyPress(t)},t[a.protected.HEADER_RECTS]=function(t){return e._setHeaderRects(t)},t[a.protected.ROW_RECTS]=function(t){return e._setRowRects(t)},t}},{key:"_setRowRects",value:function(e){this._rowRects=e.event.children}},{key:"_setHeaderRects",value:function(e){this._headerRects=e.event.children}},{key:"_hasModifier",value:function(e){return!1}},{key:"_getActiveState",value:function(){var e=this._viewModel.getStateByKey(o.protected.ACTIVE_CELL);return e||null}},{key:"_getLastRowPositionForHeight",value:function(){var e=this._logicalViewPort.getHeight();return t.curry(this.cellNav.getScrollBottomPosition)(e)}},{key:"_getRightColPositionForWidth",value:function(){var e=this._logicalViewPort.getWidth();return t.curry(this.cellNav.getScrollRightPosition)(e)}},{key:"_getScrollRect",value:function(){var e=this._logicalViewPort.getBoundingRect(),t=e.height-this._logicalViewPort.getHeight(),i=e.width-this._logicalViewPort.getWidth();return{top:e.top,left:e.left,bottom:e.bottom-t,right:e.right-i}}},{key:"_handleVertical",value:function(e,t,n){var o=this.cellNav.getCurrent(e,"rows"),r=Math.max(0,this.cellNav.getCurrent(e,"columns")),a=t(o),s=this._getScrollRect(),l=this._logicalViewPort.getWidth(),c=null,d=this.cellNav.getColPosition(r,s,l,this._headerRects()),u=this._rowRects()[a]||{},h=i.map(u,[["top","prev"],["bottom","next"]]),p=i.map(s,[["top","prev"],["bottom","next"]]);return this.cellNav.isInRange(p,h)||(c=n(a)),this.cellNav.setCellMeta(c,d,a,r)}},{key:"_handleHorizontal",value:function(e,n,o){var r=Math.max(0,this.cellNav.getCurrent(e,"rows")),a=n(this.cellNav.getCurrent(e,"columns")),s=this._headerRects(),l=s[a]||{},c=this._getScrollRect(),d=i.map(l,[["left","prev"],["right","next"]]),u=i.map(c,[["left","prev"],["right","next"]]),h=null,p=this._rowRects()[r]||{},f=this.cellNav.getRowPosition(c,p,r,this._logicalViewPort.getHeight());this.cellNav.isInRange(u,d)||(h=o(a,s));var g=this.cellNav.setCellMeta(f,h,r,a);return g.scrollInPixels.scrollFn=t.curry(o)(a),g}},{key:"_handleArrowLeft",value:function(e){var i=t.curry(this.cellNav.decrement)(e.dataSize.columns.start,1),n=this._handleHorizontal(e,i,this.cellNav.getScrollLeftPosition);return n.leftScrollFn=this._logicalViewPort.setScrollLeftPx,n}},{key:"_handleArrowRight",value:function(e){var i=t.curry(this.cellNav.increment)(e.dataSize.columns.end,1),n=this._getRightColPositionForWidth(),o=this._handleHorizontal(e,i,n);return o.leftScrollFn=this._logicalViewPort.setScrollRightPx,o}},{key:"_handleHome",value:function(e){return this._handleHorizontal(e,(function(){return 0}),this.cellNav.getScrollLeftPosition)}},{key:"_handleEnd",value:function(e){var t=this._handleHorizontal(e,(function(){return e.dataSize.columns.end}),this._getRightColPositionForWidth());return t.leftScrollFn=this._logicalViewPort.setScrollRightPx,t}},{key:"_handlePageUp",value:function(e){var i=t.curry(this.cellNav.decrement)(e.dataSize.rows.start,e.viewPort.rows.count);return this._handleVertical(e,i,this.cellNav.getScrollTopPosition)}},{key:"_handlePageDown",value:function(e){var i=t.curry(this.cellNav.increment)(e.dataSize.rows.end,e.viewPort.rows.count);return this._handleVertical(e,i,this._getLastRowPositionForHeight())}}]),h}(l)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(461),i(239)],o=i.dj.d(n,(function(e,t){return function(){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._viewModel=e.viewModel,this._dataStore=e.dataStore}return r(i,[{key:"setActiveCell",value:function(i){var n=i.activeRange,o=i.scrollInPixels,r=i.leftScrollFn,a=i.topScrollFn,s=i.handleSpace,l=i.potentialActiveCell;if(n){if(!s){var c=void 0,d=void 0;if(l)c=l.value,d=[t.range().setRows(l.rangeList[0].rows.start,l.rangeList[0].rows.start).setColumns(n.columns.start,n.columns.start)];else c=this.getActiveNodeInView(n),d=[n];var u=c?{id:c.id}:null;this._viewModel.setState(e.protected.ACTIVE_CELL,u,d)}if(o){var h=o.scrollLeft,p=o.scrollCol,f=o.scrollFn,g=o.scrollTop;isNaN(h)||null===h||(r(h,p,f),this._viewModel.setState("ScrollChangeOnKeyPress",!0)),isNaN(g)||null===g||(a(g),this._viewModel.setState("ScrollChangeOnKeyPress",!0))}}}},{key:"getActiveNodeInView",value:function(e){var t=null;return e.rows.start<=this._viewModel.viewBuffer.rangeList[0].rows.end&&e.rows.start>=this._viewModel.viewBuffer.rangeList[0].rows.start&&(t=this._dataStore.getLocalRowMetaData(e.rows.start)),t}}]),i}()}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1205),i(394),i(392),i(6710),i(337)],o=i.dj.d(n,(function(e,t,i,n,o){return function(){function s(e){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),this.adaptor=e.adaptor,this.eventCallback=e.eventCallback;var n=new t;this._emit=n.emit.bind(n),this.on=n.on.bind(n),e.adaptor.on(o.protected.CELL_FOCUS_CLICK,(function(e){return i._rowClicked(e)})),e.adaptor.on(o.protected.CELL_FOCUS_KEY,(function(e){return i._keyPressed(e)}))}return a(s,[{key:"_rowClicked",value:function(t){var i=e.getRangeForCell(t.row,t.column),n={range:i,node:{id:t.node.id}};this.adaptor.setFocusState(n);var o={focusedCell:{column:i.columns.start,id:t.node.id,columnId:t.columnId}};this._emit("cellFocused",o)}},{key:"_keyPressed",value:function(e){var t={range:e.range,node:{id:e.node?e.node.id:void 0}};this.adaptor.setFocusState(t)}},{key:"setCellFocus",value:function(e){var t=this;if(e&&"object"===(void 0===e?"undefined":r(e))&&e.hasOwnProperty("id")&&e.hasOwnProperty("column"))return this.adaptor.getFocusedCellRange(e.id,e.column).then((function(i){if(!i)throw new Error("The cell to be setCellFocus is not in the view");var n={range:i,node:{id:e.id}};t.adaptor.setFocusState(n)}));if(e&&"object"===(void 0===e?"undefined":r(e))&&i.isObjectEmpty(e))return this.adaptor.setFocusState(null),Promise.resolve();throw new Error("Expected: cellInfo object or empty object to signify no focus. Usage: setCellFocus({id: 'a', column: 5}) or setCellFocus({})")}},{key:"getFocusedCell",value:function(){var e=this.adaptor.getFocusState(),t={};return e&&e.rangeList[0]&&e.value&&(t.column=e.rangeList[0].columns.start,t.id=e.value),t}},{key:"exposedTreeTableAPIs",value:function(){return{setCellFocus:this.setCellFocus.bind(this),getFocusedCell:this.getFocusedCell.bind(this)}}},{key:"treeTableEmits",get:function(){return["cellFocused"]}}],[{key:"adaptor",get:function(){return n}}]),s}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(327),i(461),i(337),i(239),i(1205),i(632),i(392),i(394)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l){return function(){function c(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var t=new l;this._emit=t.emit.bind(t),this.on=t.on.bind(t),this._tableView=e.tableView,this.viewModel=e.viewModel,this.dataStore=e.dataStore}return r(c,[{key:"eventList",value:function(){var e=this,t={};return t[i.protected.TABLE_CELL_FOCUS]=function(t){return e._emit(i.protected.CELL_FOCUS_CLICK,t.event)},t[i.protected.TABLE_CELL_CLICK]=function(t){return e._emit(i.protected.CELL_FOCUS_CLICK,t.event)},t[i.internal.TREETABLE_KEY_PRESS]=function(t){return e._processAndEmitKeyPress(t)},t[i.protected.CELL_DOM_FOCUS_CACHE]=this._cacheFocusToOuterWrapper.bind(this),t}},{key:"getFocusState",value:function(){return this.viewModel.getStateByKey(t.protected.FOCUSED)||null}},{key:"setFocusState",value:function(e){var i=this;e?(this.viewModel.deleteState(t.protected.PENDING_FOCUS_FUNC),void 0===e.node.id?(this._lastRequestedAsyncFocusState=e,this.getRowIdForIndex(e.range.rows.start).then((function(n){i._lastRequestedAsyncFocusState===e&&(e.node.id=n,a.isRangeVisible(e.range,i.viewModel.viewBuffer.rangeList[0])?i._setFocus(e):i.viewModel.setState(t.protected.PENDING_FOCUS_FUNC,(function(e){return i._setAsyncFocus(e)}),[e]))}))):this._setFocus(e)):this._removeFocusState()}},{key:"getRowIdForIndex",value:function(e){var t=[n.range().setRows(e,e)];return this.dataStore.getRowIds(t).then((function(e){return e[0]}))}},{key:"_setAsyncFocus",value:function(t){var i=this;e.convertSyncFunctionToPromise().then((function(){return i._setFocus(t)}))}},{key:"_setFocus",value:function(i){var r=e.curry(o.fitRangeToBounds)(this.viewModel.dataSize.rows.end,this.viewModel.dataSize.columns.end),a=i.range,s=r(n.range().setRows(a.rows.start,a.rows.start).setColumns(a.columns.start,a.columns.start));this.viewModel.setState(t.protected.FOCUSED,i.node.id,[s]),this.viewModel.setState(t.protected.ACTIVE_CELL,i.node,[s])}},{key:"_removeFocusState",value:function(){this.viewModel.deleteState(t.protected.FOCUSED),this.viewModel.deleteState(t.protected.ACTIVE_CELL),this.viewModel.deleteState(t.treetable.POTENTIAL_ACTIVE_CELL),this.viewModel.deleteState(t.protected.PENDING_FOCUS_FUNC)}},{key:"_processAndEmitKeyPress",value:function(e){var t=e.event,n={keyCode:t.keyCode},o=s.getActiveCell(this.viewModel);n.modifiers=t,n.dataSize={},n.viewPort={},n.dataSize=e.dataSize,n.viewPort=e.viewPort.rangeList[0],n.range=o.rangeList[0],n.node=o.value,this._emit(i.protected.CELL_FOCUS_KEY,n)}},{key:"_cacheFocusToOuterWrapper",value:function(){return this._tableView.focus()}},{key:"getFocusedCellRange",value:function(e,t){return this.dataStore.getNode({id:e}).then((function(e){return!!e&&n.range().setRows(e.index,e.index).setColumns(t,t)}))}}]),c}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(6712),i(337)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(i.internal.CHECKBOX_STATUS_CHANGE_REQUESTED,(function(e){return t._handleCheckboxState(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"_handleCheckboxState",value:function(e){var t=e.newValue;!t&&e.isSpaceKeyPressed&&(t="mixed"===e.node.check||!(!0===e.node.check)),this.adaptor.updateCheckboxState(e.node,t),this.emit(i.exposed.CHECK_CHANGED,{id:e.node.id,oldValue:e.node.check,newValue:t})}},{key:"exposedTreeTableAPIs",value:function(){return{}}},{key:"treeTableEmits",get:function(){return[i.exposed.CHECK_CHANGED]}}],[{key:"adaptor",get:function(){return t}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(460),i(461),i(337),i(392)],o=i.dj.d(n,(function(e,t,i,n,o){return function(e){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return t.viewModel=e.viewModel,t.dataStore=e.dataStore,t.viewModel.setState(i.treetable.CHECKBOX_TREETABLE,!0),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,e),r(a,[{key:"eventList",value:function(){var e=this,t={};return t[n.internal.CHECKBOX_CLICKED]=function(t){return e._checkboxClicked(t.event)},t[n.internal.TREETABLE_KEY_PRESS]=function(t){return e._handleKeyChange(t.event)},t}},{key:"_emitCheckboxStateChanged",value:function(e){this.emit(n.internal.CHECKBOX_STATUS_CHANGE_REQUESTED,{node:e.node,newValue:e.newValue,isSpaceKeyPressed:e.isSpaceKeyPressed})}},{key:"updateCheckboxState",value:function(e,t){this.dataStore.updateChecked({id:e.id},t)}},{key:"_checkboxClicked",value:function(e){e&&e.node&&e.detail&&this._emitCheckboxStateChanged({node:e.node.value,newValue:e.detail.newValue})}},{key:"_handleKeyChange",value:function(e){var i=this;if(e.keyCode===t.SPACE&&!o.hasModifierKey(e)){var n=o.getFocusState(this.viewModel),r=o.getTreeColumnIndex(this.viewModel);if(n&&n.value&&n.rangeList[0].columns.start===r.value){var a={id:n.value};return this.dataStore.getNode(a).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i._emitCheckboxStateChanged({node:e.node,isSpaceKeyPressed:!0})}))}}}}]),a}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(327),i(6714),i(337)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(e){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return t.adaptor=e.adaptor,e.adaptor.on(n.internal.SCROLL_CHANGED,(function(e){return t._emitScrollEvent(e)})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),r(o,[{key:"_emitScrollEvent",value:function(e){this.emit("scrollViewChanged",e)}},{key:"scrollToPosition",value:function(e){var i=this;return t.convertSyncFunctionToPromise((function(){return function(){if(!("number"==typeof e.scrollTop&&"number"==typeof e.scrollLeft||"number"==typeof e.scrollTop&&void 0===e.scrollLeft||"number"==typeof e.scrollLeft&&void 0===e.scrollTop))throw new Error("scrollToPosition needs scrollTop, scrollLeft, or both set as properties as positive integers. \nExamples: \nscrollToPosition({ scrollTop: 30 }) \nscrollToPosition({ scrollTop: 30, scrollLeft: 50 })");i.adaptor.scrollToPosition(e)}()}))}},{key:"getScrollComponentDimensions",value:function(){return this.adaptor.getScrollComponentDimensions()}},{key:"exposedTreeTableAPIs",value:function(){return{scrollToPosition:this.scrollToPosition.bind(this),getScrollComponentDimensions:this.getScrollComponentDimensions.bind(this)}}},{key:"treeTableEmits",get:function(){return["scrollViewChanged"]}}],[{key:"adaptor",get:function(){return i}}]),o}(e)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(394),i(337),i(459)],o=i.dj.d(n,(function(e,t){return function(i){function n(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),o=new e;return i._emit=o.emit.bind(o),i.on=o.on.bind(o),i._viewModel=t.viewModel,i._logicalViewPort=t.viewPortList[0],i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),r(n,[{key:"eventList",value:function(){var e=this,i={};return i[t.internal.TABLE_SCROLL]=function(){return e.handleScrollChanged()},i}},{key:"handleScrollChanged",value:function(){var e=this.getScrollComponentDimensions(),i=this._viewModel.getStateByKey("scrollPositionChanged").value;!0===this._viewModel.getStateByKey("ScrollChangeOnKeyPress").value?(this._viewModel.setState("ScrollChangeOnKeyPress",!1),this._emit(t.internal.SCROLL_CHANGED,e)):!1===i&&this._emit(t.internal.SCROLL_CHANGED,e)}},{key:"scrollToPosition",value:function(e){var t=this.getScrollComponentDimensions(),i=t.scrollHeight-t.clientHeight,n=t.scrollWidth-t.clientWidth;if(!isNaN(e.scrollTop)){var o=Math.max(0,Math.min(e.scrollTop,i));this._logicalViewPort.setScrollTopPx(o)}if(!isNaN(e.scrollLeft)){var r=Math.max(0,Math.min(e.scrollLeft,n));this._logicalViewPort.setScrollLeftPx(r)}}},{key:"getScrollComponentDimensions",value:function(){return this._logicalViewPort.getScrollComponentDimensions()}}]),n}(e)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(6716),i(1183)],o=i.dj.d(n,(function(e,t){"use strict";return Object.freeze({DefaultEditor:e,ComboBoxEditor:t})}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(841),i(394),i(636)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(){function n(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var o=new t,r=void 0;r=void 0===e?"":e,this.config=i,this._emit=o.emit.bind(o),this.on=o.on.bind(o),this._handleKeyDown=this._handleKeyDown.bind(this),this._handleBlur=this._handleBlur.bind(this),this._oldValue=r,this._constructEditorDom(r)}return a(n,[{key:"_constructEditorDom",value:function(e){var t=document.createElement("div");if(t.className="mw-treetable-editor",e.iconUri){t.classList.add("mw-icon-label-editor");var i=document.createElement("div");i.className="mw-data-icon-renderer",i.style.backgroundImage="url('"+encodeURI(e.iconUri)+"')",t.appendChild(i)}"object"===(void 0===e?"undefined":r(e))&&(e=e.hasOwnProperty("label")?e.label:"");var n=this._textField=document.createElement("input");n.className="mwTreeTableTextEditor",n.input="text",n.value=e,this._oldTextValue=e,n.tabIndex=0,n.spellcheck=!1,n.setAttribute("data-editor",!0),t.appendChild(n),this._domNode=t,this._textField.addEventListener("blur",this._handleBlur),this._textField.addEventListener("keydown",this._handleKeyDown)}},{key:"_getNewValue",value:function(){var t=void 0;return"object"===r(this._oldValue)?(t=e().shallowCopy(this._oldValue)).label=this._textField.value:t=this._textField.value,t}},{key:"_handleKeyDown",value:function(e){switch(e.stopPropagation(),e.keyCode){case i.ESCAPE:this._textField.value=this._oldTextValue,this._emit("editCanceled",{newValue:this._getNewValue(),oldValue:this._oldValue});break;case i.ENTER:this._emit("editComplete",{newValue:this._getNewValue(),oldValue:this._oldValue});break;case i.PAGE_UP:case i.PAGE_DOWN:e.preventDefault()}}},{key:"_handleBlur",value:function(){this._emit("editComplete",{newValue:this._getNewValue(),oldValue:this._oldValue})}},{key:"setFocus",value:function(){this._textField.focus(),this._textField.setSelectionRange(this._textField.value.length,this._textField.value.length)}},{key:"getDomNode",value:function(){return this._domNode}},{key:"destroy",value:function(){this._textField&&(this._textField.removeEventListener("blur",this._handleBlur),this._textField.removeEventListener("keydown",this._handleKeyDown),delete this._textField),delete this._domNode}},{key:"value",get:function(){return this._textField.value},set:function(e){this._textField.value=e}}]),n}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(461),i(2386),i(392)],o=i.dj.d(n,(function(e,t,i){return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}return r(n,null,[{key:"initTreeColumnProps",value:function(t,i){i.customProps=i.customProps||{},i.customProps.treeColumnIndex=t.getStateByKey(e.treetable.treeColumnIndex).value,i.focused=[!0,{}]}},{key:"updateTreeColumnProps",value:function(t,n,o){var r=n.rangeList[0];o.customProps.rowMetaData=n.rowMetaData[0],o.customProps.viewDataRowRange=r.rows,o.focused=i.getFocusedCellForTreeTable(n,t.getStateByKey(e.protected.FOCUSED),t);var a=i.getSelectionIdList(n,t.getStateByKey(e.protected.SELECTED),t);o.metadata={selections:a}}},{key:"getPluginsBasedOnDSConfiguration",value:function(e){var n=[];return i.isCheckboxTreetable(e)&&n.push(t.INTERNAL.CheckboxTreetable),n}}]),n}()}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(1206),i(6720),i(2388),i(6722),i(6723),i(6724),i(6725),i(392),i(634),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,l,c,d,u,h){"use strict";var p=new u;return function(u){function f(){return a(this,f),s(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,u),r(f,[{key:"render",value:function(){var r=this.props,a=r.getRenderer,s=r.getInteractiveRenderer,u=r.getEditor,f=r.colIndex,g=r.rowIndex,m=r.styleData,_=r.numberOfGutters,v=r.data,b=r.eventCallback,y=r.focused,C=r.focusCached,T=r.editState,E=r.customProps,S=r.setInteractiveRenderer,w=r.registration,I=r.useEditorRendererDataFields,A=r.checkboxTreetable,x=r.additionalClass,N=void 0===x?[]:x,L=r.displaySearch,D=void 0,M=void 0,P=void 0,O=void 0,R=void 0,k=v(g)(f),F=E.cellMetaData,B=E.isGroupedRow,H=E.treeColumnIndex,V=E.groupedRowEditorType,j=E.headers,U=void 0;U=y[0]?[F.value.id,f].join(","):[g,f].join(","),B&&(U=F.value.id,m={minWidth:"100%",maxWidth:"100%",width:"100%",height:m.height}),M=s(g,f),P=u(g,f);var W=!!T[g+","+f]&&{rowIndex:g,colIndex:f};k.metaData&&(L&&k.metaData.searchHighlight&&(R={searchHighlight:k.metaData.searchHighlight}),k.metaData.style&&(m.color=k.metaData.style.color||m.color,m.backgroundColor=k.metaData.style.backgroundColor||m.backgroundColor,m.fontWeight=k.metaData.style.fontWeight||m.fontWeight,m.fontSize=k.metaData.style.fontSize||m.fontSize,m.fontFamily=k.metaData.style.fontFamily||m.fontFamily,m.fontStyle=k.metaData.style.fontStyle||m.fontStyle,m.textAlign=k.metaData.style.textAlign||m.textAlign),k.metaData.rendererConfig&&((R=R||{}).rendererConfig=k.metaData.rendererConfig),k.metaData.renderer&&(D="string"==typeof k.metaData.renderer?w.renderer[k.metaData.renderer]:k.metaData.renderer),"interactiveRenderer"in k.metaData&&("string"==typeof k.metaData.interactiveRenderer?S(g,f,M=w.renderer[k.metaData.interactiveRenderer]):k.metaData.interactiveRenderer?S(g,f,M=k.metaData.interactiveRenderer):M=null),k.metaData.gutterColors?_&&H===f&&(m.gridTemplateColumns=3*_+"px calc(100% - "+3*_+"px)",O={numberOfGutters:_,gutterColors:k.metaData.gutterColors},N.push("mw-tree-node-gutter")):_>0&&(m.gridTemplateColumns="100%"),"editor"in k.metaData&&(P="string"==typeof k.metaData.editor?w.editor[k.metaData.editor]:k.metaData.editor?k.metaData.editor:null)),D=D||a(g,f)||p,P=B?V:P;var G=void 0,z=void 0,q=void 0,K=void 0,X=void 0;if(H===f){if(G=i,q="treeCell",z=h.createElement(l,{cellMetaData:F,row:g,eventCallback:b}),A&&F&&F.value&&void 0!==F.value.check&&(K=h.createElement(c,{cellMetaData:F,row:g,eventCallback:b}),X=d.getCheckboxTreetableAriaLabel(F.value)),M)throw new Error("Interactive renderer cannotbe configured on a Tree Column currently");P&&(G=n)}else G=e,q="tableCell",M?(P=null,G=o,D=M):P&&(G=t);return h.createElement(G,{styleData:m,gutterInfo:O,rowIndex:g,colIndex:f,cellData:k,cellMetaData:F,columnId:d.getColumnId(j,f),eventCallback:b,focusCached:C,focusClass:y[1][U],additionalClass:N,renderer:D,editor:P,editState:W,disclosureIcon:z,row:g,column:f,editType:q,renderMetaData:R,triStateCheckbox:K,ariaLabel:X,useEditorRendererDataFields:I})}}]),f}(h.Component)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(250)],o=i.dj.d(n,(function(e){return e.memo((function(t){var i=function(t){var i=t.gutterColors,n=t.numberOfGutters,o=[];if(i&&Array.isArray(i))for(var r=0;r<i.length&&r<n;r++){var a=i[r];o.push(e.createElement("span",{class:"mw-tree-node-gutter-item",style:{backgroundColor:a}}))}return o}(t.gutterInfo);return e.createElement("div",{class:"mw-tree-node-gutter-wrapper","data-test-id":"gutterHandle"},i)}),(function(e,t){return e.gutterInfo.numberOfGutters===t.gutterInfo.numberOfGutters&&e.gutterInfo.gutterColors.join("")===t.gutterInfo.gutterColors.join("")}))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1206),i(1180),i(429)],o=i.dj.d(n,(function(e,t,i){"use strict";return t(e,{baseStyle:"mw-table-cell",cellType:i.cellType.EDITABLE_TABLE_CELL})}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(848),i(2268),i(459),i(392),i(593),i(337),i(250)],o=i.dj.d(n,(function(e,t,i,n,o,s,l){"use strict";return function(c){return function(d){var u=d.eventCallback,h=e.TREE_NODE_INDENTATION,p={baseStyle:d.type&&d.type.baseStyle?d.type.baseStyle:"mw-table-cell mw-tree-cell mw-table-cell-background",cellType:d.type&&d.type.cellType?d.type.cellType:"TreeCell"},f=d.cellMetaData,g=d.cellData;if("object"!==(void 0===g?"undefined":a(g))||!g.hasOwnProperty("isEqual"))throw new Error("cellData property requires an isEqual function.");if("object"!==(void 0===f?"undefined":a(f))||!f.hasOwnProperty("value"))throw new Error("cellMetaData property requires a value property.");var m=!1;d.type&&"EditableTreeCell"===d.type.cellType&&(m=!0);var _=function(e){var t=["tree-list-item","treeNode"],i={marginLeft:e.level*h};return e.isExpandable?t.push("parentNode"):(t.push("leafNode"),i.marginLeft+=h),{classes:t.join(" "),style:i}}(f.value);d.gutterInfo&&!d.focusClass&&(_.classes=_.classes.concat(" mw-tree-node-gutter-sibling"));var v=t.getTreeNode(f.value);return l.createElement(c,r({type:p,treeNodeRendererClassName:"treeNodeRenderer",rendererEditorContainer:"rendererEditorContainer",tableSection:o.TREE_CELL,classAndStyling:_,treeCellContentClassName:m?"mw-tree-cell-content":"",isTreeCell:!0,ariaTreeNode:v,onDoubleClick:function(e){var t=n.getCellInfo(e),o=t.isDisclosureTarget,r=t.cellInfo;if(!o){return i.emitDoubleClickEvent(u,r,(function(){u&&u(s.internal.TREE_CELL_DOUBLE_CLICK,r)}))}}},d))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2388),i(1180),i(429)],o=i.dj.d(n,(function(e,t,i){"use strict";return t(e,{baseStyle:"mw-table-cell mw-tree-cell",cellType:i.cellType.EDITABLE_TREE_CELL})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1206),i(2258),i(429)],o=i.dj.d(n,(function(e,t,i){"use strict";return t(e,{baseStyle:"mw-table-cell",cellType:i.cellType.INTERACTIVE_TABLE_CELL})}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(337),i(250)],o=i.dj.d(n,(function(e,t){"use strict";return function(i){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e.handleNodeDisclosureClick=e.handleNodeDisclosureClick.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),r(n,[{key:"handleNodeDisclosureClick",value:function(t){t.stopPropagation();var i={node:this.props.cellMetaData.value};this.props.eventCallback&&this.props.eventCallback(e.internal.TREE_DISCLOSURE_CLICK,i)}},{key:"render",value:function(){var e=this.props.cellMetaData;if((e=e.value).isExpandable){var i=["disclosureIcon"];return e.isExpanded?i.push("collapse"):i.push("expand"),i=i.join(" "),t.createElement("span",{className:i,"data-test-id":"disclosureHandle","data-disclosure-id":e.id,onClick:this.handleNodeDisclosureClick},t.createElement("span",{className:"disclosureImage","data-disclosure-id":e.id}))}return null}}]),n}(t.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2150),i(337),i(250)],o=i.dj.d(n,(function(e,t,i){"use strict";return function(n){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e));return t.checkboxContainer=i.createRef(),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),r(o,[{key:"componentDidUpdate",value:function(){this.props.cellMetaData.value.check?this.tristateCB.checked=this.props.cellMetaData.value.check:this.tristateCB.checked=!1,this.tristateCB.setAttribute("tabindex","-1")}},{key:"componentDidMount",value:function(){var i=this;this.tristateCB=e({checked:this.props.cellMetaData.value.check||!1}),this.changeListener=this.tristateCB.on("change",(function(e){e.node=i.props.cellMetaData,i.props.eventCallback&&i.props.eventCallback(t.internal.CHECKBOX_CLICKED,e)})),this.checkboxContainer.current&&this.checkboxContainer.current.appendChild(this.tristateCB),this.tristateCB.setAttribute("tabindex","-1")}},{key:"componentWillUnmount",value:function(){this.changeListener&&this.changeListener.remove()}},{key:"_mouseDownHandler",value:function(e){e.preventDefault()}},{key:"_doubleClickHandler",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"render",value:function(){return i.createElement("span",{className:"mw-checkbox-tree",onMouseDown:this._mouseDownHandler,onDoubleClick:this._doubleClickHandler,ref:this.checkboxContainer})}}]),o}(i.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(2259),i(392),i(848),i(250)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return function(o){function c(){return s(this,c),l(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,o),a(c,[{key:"render",value:function(){var o={value:{}},a=void 0,s=this.props,l=s.rowIndex,c=s.customProps,d=s.endCol,u=s.startCol,h=s.headers,p=c.rowMetaData,f=c.viewDataRowRange,g=c.treeColumnIndex;p&&l<=f.end&&l>=f.start&&(o=p(l)),c.cellMetaData=o,c.headers=h;var m=o.value.groupRow,_=t.isGroupedRow(m);if(c.isGroupedRow=_,_&&(a="mw-treetable-group-row",d=u,c.groupedRowEditorType=null,g!==i.TREE_COLUMN_INDEX))throw new Error("treeColumnIndex should be 0 for displaying grouped rows.");return n.createElement(e,r({},this.props,{endCol:d,customProps:c,className:a}))}}]),c}(n.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n=[i(2261),i(250)],o=i.dj.d(n,(function(e,t){"use strict";return function(i){function n(){return s(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,i),a(n,[{key:"render",value:function(){return t.createElement(e,r({},this.props,{adjustLeftFn:n._setAdjustLeft}))}}],[{key:"_getTreeCellAdjustment",value:function(e,t){return t.getBoundingClientRect().left>=e.node.offsetWidth+e.left?e.left+(e.node.offsetWidth-10):t.getBoundingClientRect().left}},{key:"_setAdjustLeft",value:function(e,t){var i=void 0,o=e.node.classList.contains("mw-tree-cell"),r=e.node.querySelectorAll("[checkbox-label=true]")[0],a=e.node.querySelectorAll(".rendererEditorContainer")[0],s=e.node.querySelector(".mw-data-label-renderer");if(i=e.left+Math.min(0,document.documentElement.clientWidth-(e.left+t.clientWidth)),o)a=s||a,i=n._getTreeCellAdjustment(e,a);else if(r){var l=e.node.getBoundingClientRect().right;l<(i=r.getBoundingClientRect().left)&&(i=l)}return i}}]),n}(t.Component)}),e,t),e.exports=o},function(e,t,i){var n,o,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2260),i(337),i(392),i(632),i(250)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";var s=function(e){var t=e.metadata,i=e.customProps.rowMetaData;return{rows:function(e){var n=i(e).value.id;return t&&t.selections&&t.selections[n]?1:0}}},l=function(e,t){var i=e.rowMetaData,n=t;return i&&(n=i(t).value.id),n},c=function(){return{triggerEditState:!1}};return function(d){function u(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this));return e.state={triggerEditState:!1,waitForMouseUp:!1},e._handleClick=e._handleClick.bind(e),e._handleMouseDown=e._handleMouseDown.bind(e),e._handleMouseEvent=e._handleMouseEvent.bind(e),e._handleEdit=e._handleEdit.bind(e),e._handleMouseUp=e._handleMouseUp.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,d),a(u,[{key:"_handleClick",value:function(e,t){switch(t.cellType){case"TableCell":case"TreeCell":case"InteractiveTableCell":break;case"EditableTableCell":this._handleEdit(e,t);break;case"EditableTreeCell":e.target.attributes["data-disclosure-id"]||this._handleEdit(e,t)}}},{key:"_handleMouseUp",value:function(e,t){if(this.state.waitForMouseUp){var i=this._getInfo(e,t),n=i.key,o=i.cellInEdit;this.state.waitForMouseUp===n&&(this.setState({waitForMouseUp:!1}),o||this.state.triggerEditState||this._handleMouseEvent(e,t))}}},{key:"_handleFocusOnly",value:function(e,n){var o=this._getInfo(e,n),r=o.row,a=o.col,s=this._rowMetaData(r).value;this.props.eventCallback(t.protected.TABLE_CELL_FOCUS,{node:s,row:r,column:a,columnId:i.getColumnId(this.props.headers,a),meta:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey})}},{key:"_shouldCellEnterEdit",value:function(e,t){var i=this._getInfo(e,t),n=i.hasModifierKey,o=i.cellNode,r=i.cellInFocus,a=i.cellInEdit,s=t.cellType;if(!e.target.attributes["data-disclosure-id"]){if(r&&!a&&!n){var l=o.querySelector("[data-region]"),c=void 0;if(l)c=e.target===l||l.contains(e.target);else switch(s){case"EditableTableCell":c=!0;break;case"EditableTreeCell":var d=o.querySelector("span[data-container]");c=e.target===d||d.contains(e.target)}if(c)return!0}return!1}return!1}},{key:"_setTriggerEditState",value:function(e,t){var i=u._parseCellInfo(t),n=i.row,o=i.col,r=!1;this._shouldCellEnterEdit(e,t)&&(r=n+","+o),this.setState({triggerEditState:r})}},{key:"_getInfo",value:function(e,t){var n=i.hasModifierKey(e),o=t.cellType,r=t.cellNode,a=this.props,s=a.focused,l=a.editState,c=u._parseCellInfo(t),d=c.id,h=c.row,p=c.col,f=this._rowMetaData(h),g=i.isGroupedRow(f.value.groupRow),m=void 0;return m=s[0]?[d,p].join(","):[h,p].join(","),g&&(m=d),{hasModifierKey:n,cellType:o,cellNode:r,key:m,cellInFocus:s[1][m],cellInEdit:l[h+","+p],id:d,row:h,col:p}}},{key:"_handleMouseDown",value:function(e,t){var i=e.target.attributes["data-disclosure-id"],o=this._getInfo(e,t),r=o.hasModifierKey,a=o.cellType,s=o.key,l=o.id;if(this._setTriggerEditState(e,t),!i&&!this.state.triggerEditState&&n.isIdInSelections(l,this.props.metadata.selections))return this.setState({waitForMouseUp:s}),void this._handleFocusOnly(e,t);switch(a){case"TableCell":this._handleMouseEvent(e,t);break;case"TreeCell":i||this._handleMouseEvent(e,t);break;case"EditableTableCell":this.state.triggerEditState||this._handleMouseEvent(e,t);break;case"EditableTreeCell":i||this.state.triggerEditState||this._handleMouseEvent(e,t);break;case"InteractiveTableCell":!r&&e.target.hasAttribute("data-clickable")||this._handleMouseEvent(e,t)}}},{key:"_handleEdit",value:function(e,t){var n=u._parseCellInfo(t),o=n.row,r=n.col;t.columnId=i.getColumnId(this.props.headers,r);var a=[o,r].join(",");this.state.triggerEditState===a&&this._handleMouseEvent(e,t,"enterEditMode"),this.setState(c)}},{key:"_handleMouseEvent",value:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.protected.TABLE_CELL_CLICK,r=u._parseCellInfo(n),a=r.row,s=r.col,l=this._rowMetaData(a).value;this.props.eventCallback&&this.props.eventCallback(o,{node:l,row:a,column:s,columnId:i.getColumnId(this.props.headers,s),meta:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey})}},{key:"render",value:function(){var t={click:this._handleClick,doubleClick:function(){},mousedown:this._handleMouseDown,mouseup:this._handleMouseUp};return this._rowMetaData=this.props.customProps.rowMetaData,o.createElement(e,r({},this.props,{selectionMapFn:s,getKeyOnRowComponentFn:l,eventsToHandle:t}))}}],[{key:"_parseCellInfo",value:function(e){return{id:e.id,row:Number(e.rowIndex),col:Number(e.colIndex)}}}]),u}(o.Component)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(204),i(273),i(262),i(269),i(258),i(350),i(315),i(531),i(208),i(507),i(6730)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return n([t,e,i],{templateString:f,widgetsInTemplate:!0,_DIALOG_CLASS:"rtcPublishDialog savePublishSettingsDialog",_NAME_LABEL_CLASS:"saveConfigurationAsNameLabel",_NEW_SETTINGS_NAME_CLASS:"saveConfigurationAsTextField",_SETTINGS_LABEL_CLASS:"saveConfigurationAsLabel",_SETTINGS_LIST_CLASS:"saveConfigurationAsList",constructor:function(e,t,i){this._saveCallback=e,this._configurations=t,this._activeConfiguration=i},postCreate:function(){this.inherited(arguments),this._saveSettingsDialog=a.createDialog({title:p.savePublishSettingsTitle,content:this,buttons:[r.SAVE,r.CLOSE],className:this._DIALOG_CLASS,dialogType:a.MODAL,draggable:!0,resizable:!0}),this._saveSettingsDialog.addButtonEventListener(r.SAVE,o.hitch(this,"onSave"),!1),this._saveSettingsDialog.addButtonEventListener(r.CLOSE,o.hitch(this,"onCancel"),!1),this._saveSettingsDialog.disableButton(r.SAVE),this._saveSettingsDialog.on("close",o.hitch(this,"onClose")),this._createContainer(),h.before(this._saveSettingsDialog,"close",o.hitch(this,this.onClose))},_createDefaultConfigurationsList:function(){var e=this._saveSettingsDialog.domNode.getElementsByClassName(this._SETTINGS_LIST_CLASS)[0],t=0,i=[];this._configurations.forEach((function(e,n){0===n||e.PublishOptionsBasedOn||i.push({id:t++,label:e.Name,parent:null,reference:e})})),this._dataStore=c.create(i,{type:d.TREE});var n={dataTestId:"saveAsList",editor:{},plugins:[u.PLUGINS.SingleNodeSelection]};this._list=new u(this._dataStore,n),this._list.startup(),e.appendChild(this._list.domNode),this._list.on("selectionChanged",function(e){this._selectedItem=this._dataStore.getLocalCellData(e.nodeIds[0]),this._saveSettingsDialog.domNode.querySelectorAll('[data-button-type="DoIt"]')[0].innerText=p.overwriteButtonText,this._nameTextField.set("value",this._selectedItem.data.label),this._selectedItem&&this._saveSettingsDialog.enableButton(r.SAVE)}.bind(this))},_createContainer:function(){var e=this._saveSettingsDialog.domNode.getElementsByClassName(this._SETTINGS_LABEL_CLASS)[0],t=this._saveSettingsDialog.domNode.getElementsByClassName(this._NEW_SETTINGS_NAME_CLASS)[0],i=this._saveSettingsDialog.domNode.getElementsByClassName(this._NAME_LABEL_CLASS)[0],n=new s({text:p.savePublishSettingsLabel});e.appendChild(n.domNode);var o=new s({text:p.savePublishSettingsName});i.appendChild(o.domNode),this._nameTextField=new l({value:""}),this._nameTextField.startup(),t.appendChild(this._nameTextField.domNode),this._nameTextField.on("change, typing",function(e){var t=e.mwEventData.currentContent||e.mwEventData.newValue||"";""===(t=t.replace(/\s/g,"").length?t:"")?this._saveSettingsDialog.disableButton(r.SAVE):this._saveSettingsDialog.enableButton(r.SAVE);for(var i=0;i<this._dataStore.dataSize.rows.count;i++){var n=this._dataStore.getLocalCellData(i);if(n.data.label===t)return this._saveSettingsDialog.domNode.querySelectorAll('[data-button-type="DoIt"]')[0].innerText=p.overwriteButtonText,this._selectedItem=n,void this._list.setSelection([{id:i}])}this._saveSettingsDialog.domNode.querySelectorAll('[data-button-type="DoIt"]')[0].innerText=r.SAVE.label}.bind(this)),this._createDefaultConfigurationsList()},onSave:function(){var e="";if(this._saveSettingsDialog.domNode.querySelectorAll('[data-button-type="DoIt"]')[0].innerText===p.overwriteButtonText)this._selectedItem.data.reference.PublishOptions=new Map(this._activeConfiguration.PublishOptions),e=this._selectedItem.data.reference.Name;else{var t={Name:this._nameTextField.get("value")};t.PublishOptions=new Map(this._activeConfiguration.PublishOptions);var i=1;this._configurations.forEach((function(e,t){0===t||e.PublishOptionsBasedOn||(i=t)})),this._configurations.splice(i+1,0,t),this._activeConfiguration.PublishOptionsBasedOn=t.Name,e=t.Name}this._saveCallback(e),this.onCancel()},onCancel:function(){this._saveSettingsDialog.close(),this.onClose()},onClose:function(){}})}),e,t),e.exports=o},function(e,t){e.exports='<table class="saveSettingsAsDialog">\n <tr>\n <td>\n <div class="saveConfigurationAsLabel"></div>\n </td>\n <td>\n <div class="saveConfigurationAsList"></div>\n </td>\n </tr>\n <tr>\n <td>\n <div class="saveConfigurationAsNameLabel"></div>\n </td>\n <td>\n <div class="saveConfigurationAsTextField"></div>\n </td>\n </tr>\n</table>'},function(e,t,i){var n,o;n=[i(493),i(243),i(507)],o=i.dj.d(n,(function(e,t,i){return{_ICON_ADD:"add_16",_ICON_DELETE:"delete_16",_ICON_UNDO:"undo_16",_PANEL_LEFT_CLASS:"buttonPanelLeft",_PANEL_RIGHT_CLASS:"buttonPanelRight",createButtonBarPanel:function(n){var o=n.domNode.getElementsByClassName(this._PANEL_LEFT_CLASS)[0],r=n.domNode.getElementsByClassName(this._PANEL_RIGHT_CLASS)[0],a=new t({icon:this._ICON_ADD});o.appendChild(a.domNode),a.startup(),e.createTooltip({referenceNode:a.domNode,content:{text:i.tooltipAddButton}});var s=new t({icon:this._ICON_DELETE});o.appendChild(s.domNode),s.startup(),e.createTooltip({referenceNode:s.domNode,content:{text:i.tooltipRemoveButton}});var l=new t({icon:this._ICON_UNDO});return r.appendChild(l.domNode),l.startup(),e.createTooltip({referenceNode:l.domNode,content:{text:i.tooltipUndoButton}}),{addButton:a,removeButton:s,undoButton:l}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(269),i(258),i(507)],o=i.dj.d(n,(function(e,t,i){return{_CONFIGURATION_LABEL_CLASS:"configurationNameLabel",_CONFIGURATION_TEXT_FIELD_CLASS:"configurationNameTextField",createConfigurationNamePanel:function(n,o){var r=n.domNode.getElementsByClassName(this._CONFIGURATION_LABEL_CLASS)[0],a=n.domNode.getElementsByClassName(this._CONFIGURATION_TEXT_FIELD_CLASS)[0],s=new e({text:i.configurationLabel});r.appendChild(s.domNode);var l=new t({value:o});return a.appendChild(l.domNode),l.startup(),l}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(493),i(243),i(258),i(507)],o=i.dj.d(n,(function(e,t,i,n){return{_CLEAR_BUTTON:"clearButton",_FILE_FILTER:"fileFilter",_ICON:"clear_all",createFileFilterPanel:function(o,r){var a=o.domNode.getElementsByClassName(this._FILE_FILTER)[0],s=o.domNode.getElementsByClassName(this._CLEAR_BUTTON)[0],l=new i({value:r});a.appendChild(l.domNode),l.startup(),e.createTooltip({referenceNode:l.domNode,content:{text:n.tooltipFilterField}});var c=new t({icon:this._ICON});return s.appendChild(c.domNode),c.startup(),{clearButtonContainer:s,fileFilter:l,clearButton:c}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(236),i(493),i(269),i(243),i(258),i(988),i(507)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{_FILE_PATH_BUTTON_CLASS:"filePathSettingButton",_FILE_PATH_DESCRIPTION_CLASS:"filePathSettingDescriptionPanel",_FILE_PATH_LABEL_CLASS:"filePathSettingLabel",_FILE_PATH_TEXT_FIELD_CLASS:"filePathSettingTextField",createFilePathPanel:function(r,s,l){var c=r.domNode.getElementsByClassName(this._FILE_PATH_LABEL_CLASS)[0],d=r.domNode.getElementsByClassName(this._FILE_PATH_TEXT_FIELD_CLASS)[0],u=r.domNode.getElementsByClassName(this._FILE_PATH_BUTTON_CLASS)[0],h=r.domNode.getElementsByClassName(this._FILE_PATH_DESCRIPTION_CLASS)[0],p=new i({text:a.filePathSettingLabel});c.appendChild(p.domNode);var f=new o({value:l});d.appendChild(f.domNode),f.startup();var g=new n({text:a.filePathSettingButton});g.startup(),t.createTooltip({referenceNode:g.domNode,content:{text:a.tooltipChooseButton}}),u.appendChild(g.domNode);var m=e.substitute(a.filePathSettingDescription,{0:s}),_=new i({text:m});return h.appendChild(_.domNode),{textField:f,button:g,descriptionField:_}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(269),i(413),i(507)],o=i.dj.d(n,(function(e,t,i){return{_EXPRESSION_LABEL_CLASS:"matlabExpressionLabel",_EXPRESSION_TEXT_AREA_CLASS:"matlabExpressionTextArea",createMatlabExpressionPanel:function(n,o){o=o||"";var r=n.domNode.getElementsByClassName(this._EXPRESSION_LABEL_CLASS)[0],a=n.domNode.getElementsByClassName(this._EXPRESSION_TEXT_AREA_CLASS)[0],s=new e({text:i.matlabExpression});r.appendChild(s.domNode);var l=new t({value:o});return l.startup(),a.appendChild(l.domNode),l}}}),e,t),e.exports=o},function(e,t){e.exports='<div class="publishDialog">\n <table>\n <tr>\n <td>\n <table class="leftPanel">\n <tr>\n <td>\n <div class="fileFilter">\n <div class="searchIcon search_16"></div>\n <div class="clearButton"></div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n <div class="fileTree"></div>\n </td>\n </tr>\n <tr>\n <td>\n <div class="buttonPanel">\n <div class="buttonPanelLeft"></div>\n <div class="buttonPanelRight"></div>\n </div>\n </td>\n </tr>\n </table>\n </td>\n <td>\n <table class="rightPanelSettings">\n <tr>\n <td>\n <div class="configurationNamePanel">\n <div class="configurationNameLabel"></div>\n <div class="configurationNameTextField"></div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n <table class="fileSettingsPanel">\n <tr>\n <td>\n <div class="matlabExpressionLabel"></div>\n </td>\n </tr>\n <tr>\n <td>\n <div class="matlabExpressionTextArea"></div>\n </td>\n </tr>\n <tr>\n <td>\n <div class="defaultSettingsPanel">\n <div class="defaultSettingsLabel"></div>\n <div class="defaultSettingsCombobox"></div>\n <div class="defaultSettingsButton"></div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n <div class="settingsTreeTable"></div>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <div class="descriptionField"></div>\n </td>\n </tr>\n </table>\n <table class="rightPanelFile" hidden>\n <tr>\n <td>\n <div class="filePathSettingPanel">\n <div class="filePathSettingLabel"></div>\n <div class="filePathSettingTextField"></div>\n <div class="filePathSettingButton"></div>\n </div>\n </td>\n </tr>\n <tr>\n <td>\n <div class="filePathSettingDescriptionPanel"></div>\n </td>\n </tr>\n </div>\n </td>\n </tr>\n </table>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(205),i(378),i(6738)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(e,t){return i.isMatlabCodeFileOrBuffer(e)&&t&&t.getAllSettingsForSettingGroup},requires:function(){return{isApplicable:["rtc.backingstore","rtc.settings.backingservice"],createInstance:["rtc.actionservice","rtc.datatip","rtc.settings.backingservice"]}},createInstance:function(){return new n(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2373)],o=i.dj.d(n,(function(e,t){return e(t,{_getDataTipActionId:function(){return"rtc_matlab_datatips"},_getSettingGroup:function(){return["matlab","editor","displaysettings"]},_getSettingName:function(){return"DataTipsInEditMode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(726),i(1202),i(208),i(207),i(6740),i(6742),i(6743)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c="/liveeditor/events/backup/write",d="/liveeditor/events/notdirty/",u="/liveeditor/events/backup/delete";return e(r,{constructor:function(e,t,i,o,r,c){this._document=e,this._backingStore=t,this._internalDocument=i,this._settingsService=o,this._codeTextService=r,this._rtcId=c,this._preferences=s.getInstance(),this._liveEditorDirtyChannel=d+this._rtcId,this._timer=a.getInstance(),this._backupId=l.generateFileIdentifier(this._rtcId),this._plainEditorSaveLoadUtility=new n(this._backupId,this._settingsService),this.own(this._plainEditorSaveLoadUtility),this._fileObject={},this._initBackup()},_initBackup:function(){this._fileObject=this._cloneBackingStoreFileInfo(this._backingStore.file),this._fileObject.isUntitled=l.isUntitledFile(this._fileObject),this._fileObject.isUntitled&&i.getPwd().then(function(e){e&&e[0]&&(this._pwd=e[0]||"",this._readSettings())}.bind(this)),this._bindEvents(),this._readSettings(),this._initializeFileObjectMetaData()},onBackupWritten:function(e){},onBackupDeleted:function(e){},_initializeFileObjectMetaData:function(){this._fileObject&&(this._fileObject.modifiedDate=null)},_bindEvents:function(){this.own(o.after(this._internalDocument,"onDocumentChanged",function(){this._fileObject.modifiedDate=new Date}.bind(this),!0)),this.own(o.after(this._backingStore,"onLocationUpdated",function(){this._fileObject=this._cloneBackingStoreFileInfo(this._backingStore.file),this._initializeFileObjectMetaData(),this._fileObject.isUntitled=l.isUntitledFile(this._fileObject),this._readSettings()}.bind(this))),this.own(o.after(this._preferences,"onSettingsUpdated",this._readSettings.bind(this),!0)),t.subscribe(this._liveEditorDirtyChannel,"_handleDirtyChannel",this)},_clearEvents:function(){t.unsubscribe(this._liveEditorDirtyChannel,"_handleDirtyChannel",this)},_cloneBackingStoreFileInfo:function(e){let t=Object.assign({},e);return"fileInfo"in e&&(t.fileInfo=Object.assign({},e.fileInfo)),t},_handleDirtyChannel:function(){this._fileObject.modifiedDate=null,this._checkForDelete()},_readSettings:function(){let e=this._preferences.getSettings();if(null!==e){var t=this._backupEnabled,i=this._delay;this._backupPath=l.generateBackupPathForFile(this._fileObject,e,this._pwd),this._delay=e.frequency.value,this._backupEnabled=l.toggleBackupForFile(this._fileObject,e),this._delay===i&&this._backupEnabled===t||this._toggleSubscription(this._backupEnabled)}},_toggleSubscription:function(e){e?this._subscribeToBackup():this._unsubscribeToBackup()},_subscribeToBackup:function(){this._subscriptionUID&&this._unsubscribeToBackup();var e=l.convertMinsToMilliSeconds(this._delay);this._subscriptionUID=this._timer.subscribe(this._backupFile.bind(this),e)},_unsubscribeToBackup:function(){this._subscriptionUID&&(this._timer.unsubscribe(this._subscriptionUID),this._subscriptionUID=void 0)},_checkForDelete:function(){i.isFile(this._backupPath).then(e=>{e&&e[0]||this._fireBackupDeletedEvent()})},_backupFile:function(){if(null!==this._fileObject.modifiedDate&&this._backupPath){var e=this._buildPlainContentPayload(this._backupPath);this._plainEditorSaveLoadUtility.save(this._backupPath,e).then(function(){this._fireBackupWriteEvent()}.bind(this),()=>{})}},_fireBackupWriteEvent:function(){var e=this._buildEventObject();this.onBackupWritten(e),t.publish(c,e)},_fireBackupDeletedEvent:function(){var e=this._buildEventObject();this.onBackupDeleted(e),t.publish(u,this._buildEventObject())},_buildEventObject:function(){return{originalFilePath:this._backingStore.getAbsoluteFilePath(),backupFilePath:this._backupPath,id:this._rtcId}},_buildPlainContentPayload:function(e){return{rtcId:this._backupId,content:this._codeTextService.getCodeText(),contentType:l.ContentBundleProperties.PlainCode.contentType,encoding:l.ContentBundleProperties.PlainCode.encoding,filePath:e,suppressLogging:!0}},destroy:function(){this._unsubscribeToBackup(),this._clearEvents(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(6741)],o=i.dj.d(n,(function(e,t,i){var n,o=0,r=t(null,{constructor:function(){this._timer=null,this._filesCount=0,this._filesOpen={},this.initializeTimer()},initializeTimer:function(){this.timer=new i,e.after(this.timer,"timerEvent",function(e){this._handleTimerMessage(e)}.bind(this),!0)},subscribe:function(e,t){var i=this._generateUID();return this._filesOpen[i]={callback:e},this._filesCount++,this.timer.setDelay(t),this._toggleTimer(),i},unsubscribe:function(e){e in this._filesOpen&&(delete this._filesOpen[e],this._filesCount--,this._toggleTimer())},getFilesOpen:function(){return this._filesOpen},_generateUID:function(){return(new Date).getTime()+"BACKUP"+o++},_handleTimerMessage:function(e){if(e&&"state"in e&&e.state===i.State.RUNNING)for(const e in this._filesOpen)"function"==typeof this._filesOpen[e].callback&&this._filesOpen[e].callback()},_toggleTimer:function(){this._filesCount>0?this.timer.state!==i.State.RUNNING&&this.timer.start():this.timer.stop()}});return{getInstance:function(){return void 0===n&&(n=new r),n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){var t={STOPPED:"STOPPED",RUNNING:"RUNNING"},i=e(null,{timer:void 0,state:t.STOPPED,delay:1e3,start:function(){this.timer||(this.timer=setInterval(function(){this._emitStateEvent()}.bind(this),this.delay),this.timer&&(this.state=t.RUNNING))},timerEvent:function(e){},stop:function(){this.state===t.RUNNING&&(clearInterval(this.timer),this.timer=void 0,this.state=t.STOPPED,this._emitStateEvent())},setDelay:function(e){this.delay=e,this.state===t.RUNNING&&(this.delay=e,this.stop(),this.start())},getDelay:function(){return this.delay},_emitStateEvent:function(){this.timerEvent({state:this.state})}});return i.State=t,i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(263)],o=i.dj.d(n,(function(e,t){var i,n=["matlab","editor","backup"],o=e(null,{_throttleDelayMS:200,_throttleMap:{},_settings:{enableFileBackup:{key:"EnableFileBackup",default:!0},frequency:{key:"Frequency",default:5},saveUntitled:{key:"SaveUntitled",default:!1},saveIntoSourceFolder:{key:"SaveIntoSourceFolder",default:!0},saveToFolder:{key:"SaveToFolder",default:""},fileExtensionToAppend:{key:"FileExtensionToAppend",default:"~"},fileExtensionToReplace:{key:"FileExtensionToReplace",default:"asv"},deleteOnClose:{key:"DeleteOnClose",default:!0},replaceExtension:{key:"ReplaceExtension",default:!0}},_listeners:{},constructor:function(){this._getSettings().then(function(){this._listenToSettings()}.bind(this))},commitSettings:function(){Object.keys(this._settings).forEach(function(e){this.commitSetting(this._settings[e].key,this._settings[e].value)}.bind(this))},commitSetting:function(e,i){t.setSetting(n,e,i)},onSettingsUpdated:function(e){},getSettings:function(){for(const e in this._settings)if(!("value"in this._settings[e]))return null;let e={};for(const t in this._settings)e[t]=Object.assign({},this._settings[t]);return e},listenToBackupSetting:function(e,i){return t.listenTo(n,e,i)},_getSettings:function(){var e=Object.keys(this._settings);return new Promise(function(i,o){Promise.all(e.map(function(e){return t.getSetting(n,this._settings[e].key)}.bind(this))).then(function(t){for(var n=t.length,o=0;o<n;o++)this._settings[e[o]].value=t[o].value;this.onSettingsUpdated(),i()}.bind(this)).catch((function(e){o(e)}))}.bind(this))},_listenToSettings:function(){for(var e in this._settings)this._listeners[e]=this.listenToBackupSetting(this._settings[e].key,function(e){var t=this._getSettingFromKey(e.setting);this._settings[t].value=e.newValue,this._throttle(this,this.onSettingsUpdated,[])}.bind(this))},_getSettingFromKey:function(e){for(var t in this._settings)if(this._settings[t].key===e)return t},_removeListeners:function(){Object.keys(this._settings).forEach(function(e){this._listeners[e].remove()}.bind(this)),this._listeners=[]},_throttle:function(e,t,i,n){i=i||[];var o=n=n||this._throttleDelayMS;if(t in this._throttleMap){var r=(new Date).getTime();clearTimeout(this._throttleMap[t].timeout),o=r-this._throttleMap[t].time,this._throttleMap[t].time=(new Date).getTime()}else this._throttleMap[t]={},this._throttleMap[t].time=(new Date).getTime();this._throttleMap[t].args=Object.assign([],i),this._throttleMap[t].timeout=setTimeout(function(){t.apply(e,i),delete this._throttleMap[t]}.bind(this),o)}});return{getInstance:function(){return i||(i=new o),i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(233)],o=i.dj.d(n,(function(e){return{generateFileIdentifier:function(e){return e+"BACKUP"},ContentBundleProperties:{PlainCode:{encoding:"UTF-8",contentType:"text/plain"}},isUntitledFile:function(e){var t=!0;return e&&e.fileInfo&&(t=""===e.fileInfo.location),t},getNewFileName:function(e,t){if(!e||!e.fileInfo.name||!t)return"";var i=e.fileInfo.name,n=i.lastIndexOf("."),o=i.substring(0,n);return t.replaceExtension.value?i=o+"."+t.fileExtensionToReplace.value:(e.isUntitled&&(i=o),i+=t.fileExtensionToAppend.value),i},generateBackupPathForFile:function(t,i,n){if(!t||!i)return"";var o=this.getNewFileName(t,i),r=t.fileInfo.location;if(i.saveIntoSourceFolder.value||(r=i.saveToFolder.value),t.isUntitled&&i.saveIntoSourceFolder.value){if(!n)return"";r=n}var a=e.getFileSeparator(r);return r.endsWith(a)||(r+=a),r+o},toggleBackupForFile:function(e,t){if(!e||!t)return"";var i=!1;return t.enableFileBackup.value&&(i=!0,e.isUntitled&&!t.saveUntitled.value&&(i=!1)),i},convertMinsToMilliSeconds:function(e){return 60*e*1e3}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6745)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.navigate.find","rtc.keyhandler.customkeyboardshortcuts"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i){this._findHandler=e,this._customkeyboardshortcuts=i,this._customkeyboardshortcuts&&this.own(n.after(this._customkeyboardshortcuts,"onRawKeybindingChange",t.hitch(this,"_keybindingChangeCallback"),!0))},_keybindingChangeCallback:function(e,t){var i=this._findHandler.getActions(),n=!1;t.forEach((function(t){for(var o in i)if(i[o].id===t){i[o].customKeys=e,n=!0;break}}),this),n&&this._findHandler.setActions(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(989),i(269),i(1568),i(215),i(216),i(272),i(990),i(2390)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([r,a,s,l],{templateString:o,baseClass:"MATLABPreferencePanel",constructor:function(){this._buildMATLABPanel()},buildRendering:function(){this.inherited(arguments),this._placeMATLABPanel()},_buildMATLABPanel:function(){this.container=new i({title:""}),this.label=new n({tag:"MATLABPreferencePanel.defaultLabel",text:c.labelText})},validatePrefsPanel:function(){return!0},_placeMATLABPanel:function(){t.place(this.label.domNode,this.container.domNode),t.place(this.container.domNode,this.domNode)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point = "panelContainer">\n <fieldset data-dojo-attach-point ="panelFieldset,containerNode">\n <legend data-dojo-attach-point="panelLegend"></legend>\n </fieldset>\n</div>'},function(e,t,i){e.exports={PanelLabel:"MATLAB",labelText:"ツリーで要素を選択し、基本設定を行います。"}},function(e,t,i){e.exports={PanelLabel:"MATLAB",labelText:"트리에서 요소를 선택하여 해당 기본 설정을 지정하십시오."}},function(e,t,i){e.exports={PanelLabel:"MATLAB",labelText:"选择树中的元素以设置其预设项。"}},function(e,t,i){e.exports={root:{PanelLabel:"MATLAB",labelText:"Select an element in the tree to set its preferences."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(206),i(212),i(244),i(2391),i(1568),i(215),i(216),i(990),i(989),i(308),i(422),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=["matlab","desktop","commandhistory"],f=["MatchAnywhere","MatchCase","FilterMatches"];return e([a,s,l],{templateString:r,baseClass:"mwCommandHistoryPreferencePanel",constructor:function(e){this._settingsService=e&&e.settingsService?e.settingsService:h,this._matchPrefItemsList=[],this._buildMatchPanel()},_buildMatchPanel:function(){this.matchContainer=new c({title:o.MatchTitle,class:"mwCommandHistoryMatchSection"}),this._matchPrefItemsList.push(this.matchAnywhereRadioButton=new u({tag:"CommandHistoryMatchAnywhereRadioButton",text:o.MatchAnywhere,buttonGroup:"commandHistoryMatchPref","data-test-id":"matchAnywhereRadioButton"})),this.matchAnywhereRadioButton.domNode.classList.add("mwCommandHistoryPreferenceItem"),this.matchBeginningRadioButton=new u({tag:"CommandHistoryMatchBeginningRadioButton",text:o.MatchBeginning,buttonGroup:"commandHistoryMatchPref","data-test-id":"matchBeginningRadioButton"}),this.matchBeginningRadioButton.domNode.classList.add("mwCommandHistoryPreferenceItem"),this._matchPrefItemsList.push(this.matchCaseCheckBox=new d({tag:"CommandHistoryMatchCaseCheckBox",text:o.MatchCase,"data-test-id":"matchCaseCheckBox"})),this.matchCaseCheckBox.domNode.classList.add("mwCommandHistoryPreferenceItem"),this._matchPrefItemsList.push(this.filterMatchesCheckBox=new d({tag:"CommandHistoryFilterMatchesCheckBox",text:o.FilterMatches,"data-test-id":"filterMatchesCheckBox"})),this.matchCaseCheckBox.domNode.classList.add("mwCommandHistoryPreferenceItem");var e=f.map(function(e){return this._settingsService.getSetting(p,e)}.bind(this));n(e).then(function(e){this._destroyed||(this._matchPrefItemsList.forEach((function(t,i){t.set("checked",e[i].value)})),this.matchBeginningRadioButton.set("checked",!e[0].value))}.bind(this))},_placeMatchPanel:function(){this.domNode.appendChild(this.matchContainer.domNode),this.matchContainer.domNode.appendChild(this.matchAnywhereRadioButton.domNode),this.matchContainer.domNode.appendChild(this.matchBeginningRadioButton.domNode),this.matchContainer.domNode.appendChild(this.matchCaseCheckBox.domNode),this.matchContainer.domNode.appendChild(this.filterMatchesCheckBox.domNode)},postCreate:function(){this.inherited(arguments),this._placeMatchPanel()},validatePrefsPanel:function(e){return!0},commitPrefsChanges:function(e){this._matchPrefItemsList.forEach(function(e,t){this._settingsService.setSetting(p,f[t],e.checked)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){e.exports={PanelLabel:"コマンド履歴",MatchTitle:"一致",MatchAnywhere:"部分一致",MatchBeginning:"前方一致",MatchCase:"大文字小文字の区別",FilterMatches:"一致のみ表示"}},function(e,t,i){e.exports={PanelLabel:"명령 내역",MatchTitle:"일치",MatchAnywhere:"임의의 위치에서 일치",MatchBeginning:"시작 부분 일치",MatchCase:"대/소문자 구분",FilterMatches:"일치 항목 필터링"}},function(e,t,i){e.exports={PanelLabel:"命令历史记录",MatchTitle:"匹配",MatchAnywhere:"从任意位置匹配",MatchBeginning:"从头匹配",MatchCase:"匹配大小写",FilterMatches:"筛选匹配项"}},function(e,t,i){e.exports={root:{PanelLabel:"Command History",MatchTitle:"Match",MatchAnywhere:"Match Anywhere",MatchBeginning:"Match Beginning",MatchCase:"Match Case",FilterMatches:"Filter Matches"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(989),i(269),i(1568),i(206),i(215),i(216),i(272),i(990),i(2392),i(422),i(308),i(243),i(258),i(232),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){const m=["matlab"],_=["matlab","workingfolder"],v=["matlab","toolboxpathcache"],b=["matlab","ddux","ddux_1234567890123456789"];return e([r,a,s,l],{templateString:n,baseClass:"GeneralPreferencePanel",constructor:function(e){this._settingsService=e&&e.settingsService?e.settingsService:g,this._showDummyGeneralPanel=!e||!e.hasOwnProperty("showDummyGeneralPanel")||e.showDummyGeneralPanel,this._showDummyGeneralPanel?this._buildDummyGeneralPanel():this._buildGeneralPanel()},buildRendering:function(){this.inherited(arguments),this._showDummyGeneralPanel?this._placeDummyGeneralPanel():(this._getSettings(),this._placeGeneralPanel())},startup:function(){this.inherited(arguments),this._showDummyGeneralPanel||(this._lastWorkingFolderRadioButton.startup(),this._specifyFullPathRadioButton.startup(),this._toolboxPathCacheCheckBox.startup())},_buildDummyGeneralPanel:function(){this.container=new t({title:""}),this.label=new i({text:c.labelText})},_buildGeneralPanel:function(){this._initialWorkingFolderContainer=new t({title:c.initialWorkingFolderTitle}),this._initialWorkingFolderContainer.domNode.classList.add("initialWorkingFolderContainer"),this._initialWorkingFolderlabel=new i({}),this._initialWorkingFolderlabel.domNode.classList.add("initialWorkingFolderLabel"),this._initialWorkingFolderlabel.textNode.classList.add("initialWorkingFolderTextNode"),this._lastWorkingFolderRadioButton=new d({tag:"lastWorkingFolderRadioButton",buttonGroup:"initialworkingfolder"}),this._lastWorkingFolderRadioButton.domNode.classList.add("lastWorkingFolderRadioButton"),this._specifyFullPathRadioButton=new d({tag:"specifyFullPathRadioButton",buttonGroup:"initialworkingfolder"}),this._specifyFullPathRadioButton.domNode.classList.add("specifyFullPathRadioButton"),this.own(this._specifyFullPathRadioButton.on("change",this._handleSpecifyFullPathRadioButtonChange.bind(this))),this._pathTextField=new p({tag:"pathTextField",editable:!1,disabled:!0}),this._pathTextField.domNode.classList.add("pathTextField"),this._browsePathButton=new h({tag:"browsePathButton",disabled:!0}),this._browsePathButton.domNode.classList.add("browsePathButton"),this.own(this._browsePathButton.on("click",this._handleBrowsePathButtonClick)),f.registerResponseHandler("FEvalResponse:initialWorkingFolderPath",this._handleinitialWorkingFolderPathResponse,this),this._deletingFilesContainer=new t({title:c.deletingFilesTitle}),this._moveToTrashRadioButton=new d({tag:"moveToTrashRadioButton",buttonGroup:"deletingfiles"}),this._deletePermanentlyRadioButton=new d({tag:"deletePermanentlyRadioButton",buttonGroup:"deletingfiles"}),this._toolboxPathCachingContainer=new t({title:c.toolboxPathCachingTitle}),this._toolboxPathCacheCheckBox=new u({tag:"toolboxPathCacheCheckBox"}),this.own(this._toolboxPathCacheCheckBox.on("change",this._handleToolboxPathCacheCheckBoxChange.bind(this))),this._updateToolboxPathCachePushButton=new h({tag:"updateToolboxPathCachePushButton"}),this._updateToolboxPathCachePushButton.domNode.classList.add("updateToolboxPathCacheButton"),this._updateToolboxPathCachePushButton.set("disabled",!0),this.own(this._updateToolboxPathCachePushButton.on("click",this._handleUpdateToolboxPathCacheButtonClick.bind(this))),this._helpContainer=new t({title:c.helpTitle}),this._helpCheckBox=new u({tag:"helpCheckBox"})},_handleSpecifyFullPathRadioButtonChange:function(e){e.mwEventData&&"checked"===e.mwEventData.propertyName&&(e.mwEventData.newValue?(this._pathTextField.set("disabled",!1),this._browsePathButton.set("disabled",!1)):(this._pathTextField.set("disabled",!0),this._browsePathButton.set("disabled",!0)))},_handleBrowsePathButtonClick:function(){f.sendMessage({FEval:{function:"uigetdir",nargout:1}},{},"initialWorkingFolderPath")},_handleToolboxPathCacheCheckBoxChange:function(e){e.mwEventData&&"checked"===e.mwEventData.propertyName&&(e.mwEventData.newValue?this._updateToolboxPathCachePushButton.set("disabled",!1):this._updateToolboxPathCachePushButton.set("disabled",!0))},_handleUpdateToolboxPathCacheButtonClick:function(){f.sendMessage({Eval:{mcode:"rehash toolboxcache"}},{},"updateToolboxPathCache")},_handleinitialWorkingFolderPathResponse:function(e){e&&e.length>0&&e[0].results&&e[0].results.length>0&&0!==e[0].results[0]&&this._pathTextField.set("value",e[0].results[0])},_getSettings:function(){this._settingsService.getSetting(_,"InitialWorkingFolder").then(e=>{"custom_folder"===e.value?(this._specifyFullPathRadioButton.set("checked",!0),this._browsePathButton.set("disabled",!1),this._settingsService.getSetting(_,"CustomFolderPath").then(e=>{this._pathTextField.set("value",e.value)})):"last_folder"!==e.value&&""!==e.value||this._lastWorkingFolderRadioButton.set("checked",!0)}),this._settingsService.getSetting(m,"DeleteFilesPermanently").then(e=>{e.value?this._deletePermanentlyRadioButton.set("checked",!0):this._moveToTrashRadioButton.set("checked",!0)}),this._settingsService.getSetting(v,"EnableToolboxPathCache").then(e=>{e.value&&(this._toolboxPathCacheCheckBox.set("checked",!0),this._updateToolboxPathCachePushButton.set("disabled",!1))}),this._settingsService.getSetting(b,"chosen").then(e=>{e.value&&this._helpCheckBox.set("checked",!0)})},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){if(!this._showDummyGeneralPanel){let e;this._lastWorkingFolderRadioButton.get("checked")||""===this._pathTextField.get("value")?e="last_folder":(e="custom_folder",this._settingsService.setSetting(_,"CustomFolderPath",this._pathTextField.get("value"))),this._settingsService.setSetting(_,"InitialWorkingFolder",e),this._settingsService.setSetting(m,"DeleteFilesPermanently",this._deletePermanentlyRadioButton.get("checked")),this._settingsService.setSetting(v,"EnableToolboxPathCache",this._toolboxPathCacheCheckBox.get("checked")),this._settingsService.setSetting(b,"chosen",this._helpCheckBox.get("checked"))}},_placeGeneralPanel:function(){this._initialWorkingFolderContainer.domNode.appendChild(this._initialWorkingFolderlabel.domNode),this._initialWorkingFolderContainer.domNode.appendChild(this._lastWorkingFolderRadioButton.domNode),this._initialWorkingFolderContainer.domNode.appendChild(this._specifyFullPathRadioButton.domNode),this._initialWorkingFolderContainer.domNode.appendChild(this._pathTextField.domNode),this._initialWorkingFolderContainer.domNode.appendChild(this._browsePathButton.domNode),this.domNode.appendChild(this._initialWorkingFolderContainer.domNode),this._deletingFilesContainer.domNode.appendChild(this._moveToTrashRadioButton.domNode),this._deletingFilesContainer.domNode.appendChild(this._deletePermanentlyRadioButton.domNode),this.domNode.appendChild(this._deletingFilesContainer.domNode),this._toolboxPathCachingContainer.domNode.appendChild(this._toolboxPathCacheCheckBox.domNode),this._toolboxPathCachingContainer.domNode.appendChild(this._updateToolboxPathCachePushButton.domNode),this.domNode.appendChild(this._toolboxPathCachingContainer.domNode),this._helpContainer.domNode.appendChild(this._helpCheckBox.domNode),this.domNode.appendChild(this._helpContainer.domNode)},_placeDummyGeneralPanel:function(){this.container.domNode.appendChild(this.label.domNode),this.domNode.appendChild(this.container.domNode)}})}),e,t),e.exports=o},function(e,t,i){e.exports={PanelLabel:"一般",labelText:"ツリーで要素を選択し、基本設定を行います。"}},function(e,t,i){e.exports={PanelLabel:"일반",labelText:"트리에서 요소를 선택하여 해당 기본 설정을 지정하십시오."}},function(e,t,i){e.exports={PanelLabel:"常规",labelText:"选择树中的元素以设置其预设项。"}},function(e,t,i){e.exports={root:{PanelLabel:"General",labelText:"Select an element in the tree to set its preferences."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(225),i(206),i(212),i(244),i(989),i(6763),i(215),i(216),i(263),i(990),i(2393),i(243),i(326),i(691),i(350),i(239),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b=["CommandHistoryDeleteConfirm","CommandWindowClearConfirmation","EditorPromptBeforeExitingDebugMode","ImportDataShowDialog","NavigationShortcutsConfirm","MatlabExitConfirm","WorkspaceBrowserClearConfirmation"],y=b.length,C=_.range().setColumns(0,0).setRows(0,y-1),T={dataTestId:"confirmationDialogModelTable",features:[f.FEATURE.SingleRowSelection,f.FEATURE.CellFocus],columnModel:{columnConfig:[{label:h.Header1,dataIndex:0,interactiveRenderer:new g({isChecked:function(e){return!0===e},getValueForAction:function(e){return{oldValue:e,newValue:!e}}}),width:{value:10,unit:"%"}},{label:h.Header2,dataIndex:1,width:{value:50,unit:"%"}},{label:h.Header3,dataIndex:2,width:{value:40,unit:"%"}}]}};return e([l,c,u],{templateString:s,baseClass:"ConfirmationDialogPreferencePanel",constructor:function(e){this._buildConfirmationDialogsPanel()},_buildConfirmationDialogsPanel:function(){this._loadSettings().then(t.hitch(this,(function(e){var t=[];t.push([e[0].value,h.CommandHistoryDelete,h.CommandHistory]),t.push([e[1].value,h.CommandWindowClear,h.CommandWindow]),t.push([e[2].value,h.PromptBeforeExitingDebugMode,h.Editor]),t.push([e[3].value,h.ImportDataConfirmDialog,h.ImportData]),t.push([e[4].value,h.NavigationShortcutsShow,h.NavigationShortcuts]),t.push([e[5].value,h.MATLABExitConfirm,h.General]),t.push([e[6].value,h.ClearWorkSpace,h.Workspace]),this._dataStore=m.create(t,{type:v.TABLE}),this._table=new f(this._dataStore,T),this._table.domNode.classList.add("mwConfirmationDialogsTable"),this._placeMATLABPanel(),this._table.startup()}))),this._panelContainer=new a({}),this._selectAllButton=new p({text:h.SelectAll,tag:"ConfirmationDialogsSelectAllButton"}),this._clearAllButton=new p({text:h.ClearAll,tag:"ConfirmationDialogsClearAllButton"})},_placeMATLABPanel:function(){this.domNode.appendChild(this._panelContainer.domNode),this._panelContainer.domNode.appendChild(this._table.domNode),this._panelContainer.domNode.appendChild(this._selectAllButton.domNode),this._panelContainer.domNode.appendChild(this._clearAllButton.domNode),n.emit(this.domNode,"confirmationDialogPreferencePanelPlaced",{bubbles:!0,cancelable:!0})},postCreate:function(){var e,i=[],n=[];for(this.inherited(arguments),this.descriptionNode.textContent=h.ConfirmationDialogsHeader,e=0;e<=y-1;++e)i.push([!0]),n.push([!1]);this._selectAllButton.domNode.addEventListener("click",t.hitch(this,(function(e){this._dataStore.update(C,i)}))),this._clearAllButton.domNode.addEventListener("click",t.hitch(this,(function(e){this._dataStore.update(C,n)})))},validatePrefsPanel:function(e){return!0},commitPrefsChanges:function(e){this._dataStore.getData([C]).then(t.hitch(this,(function(e){e[0].forEach(t.hitch(this,(function(e,i){var n=e[0];d.setSetting(["matlab","confirmationdialogs"],b[i],n).then(t.hitch(this,(function(e){})),(function(e){}))})))})))},_loadSettings:function(){return Promise.all(b.map(e=>d.getSetting(["matlab","confirmationdialogs"],e)))}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="containerNode">\n\t<div data-dojo-attach-point="descriptionNode"> \n\t</div>\n</div>'},function(e,t,i){e.exports={PanelLabel:"確認ダイアログ",ConfirmationDialogsHeader:"次のダイアログ ボックスはユーザー確認を要求します。ダイアログ ボックスを表示する場合はチェック ボックスをオンにしてください。",Header1:"状態",Header2:"ダイアログ ボックスの説明",Header3:"ツール",CommandHistory:"コマンド履歴",CommandHistoryDelete:"コマンド履歴の項目を削除する前に警告",CommandWindow:"コマンド ウィンドウ",CommandWindowClear:"コマンド ウィンドウをクリアする前に警告",NavigationShortcuts:"ナビゲーション ショートカット",NavigationShortcutsShow:"セッション開始時に [ナビゲーション キーボード ショートカット] ダイアログを自動表示",General:"一般",MATLABExitConfirm:"MATLAB を終了する前に確認",Workspace:"ワークスペース",ClearWorkSpace:"変数を削除するときに確認",ClearAll:"すべてクリア",SelectAll:"すべて選択",ImportData:"データのインポート",ImportDataConfirmDialog:"MAT ファイルおよびメディア ファイルをインポートするために [データのインポート] ダイアログを表示",Editor:"エディター",PromptBeforeExitingDebugMode:"ファイルの保存時にデバッグ モードの終了を促す"}},function(e,t,i){e.exports={PanelLabel:"확인 대화 상자",ConfirmationDialogsHeader:"다음 대화 상자에는 사용자 확인이 필요합니다. 대화 상자를 표시하려면 체크박스를 선택하십시오.",Header1:"상태",Header2:"대화 상자 설명",Header3:"툴",CommandHistory:"명령 내역",CommandHistoryDelete:"명령 내역 항목을 삭제하기 전에 경고 표시",CommandWindow:"명령 창",CommandWindowClear:"명령 창을 지우기 전에 경고 표시",NavigationShortcuts:"탐색 바로 가기",NavigationShortcutsShow:"세션 시작 시 자동으로 [탐색 바로 가기 키] 대화 상자 표시",General:"일반",MATLABExitConfirm:"MATLAB을 종료하기 전에 확인",Workspace:"작업 공간",ClearWorkSpace:"변수를 삭제할 때 확인",ClearAll:"모두 지우기",SelectAll:"모두 선택",ImportData:"데이터 가져오기",ImportDataConfirmDialog:"MAT 파일과 미디어 파일을 가져오기 위한 [데이터 가져오기] 대화 상자 표시",Editor:"편집기",PromptBeforeExitingDebugMode:"파일을 저장할 때 디버그 모드를 종료할지 여부 확인"}},function(e,t,i){e.exports={PanelLabel:"确认对话框",ConfirmationDialogsHeader:"以下对话框需要用户确认。如果要显示该对话框,请选中相应复选框。",Header1:"状态",Header2:"对话框说明",Header3:"工具",CommandHistory:"命令历史记录",CommandHistoryDelete:"删除命令历史记录项目之前发出警告",CommandWindow:"命令行窗口",CommandWindowClear:"清空命令行窗口之前发出警告",NavigationShortcuts:"导航快捷方式",NavigationShortcutsShow:'会话开始时自动显示 "导航键盘快捷方式" 对话框',General:"常规",MATLABExitConfirm:"退出 MATLAB 之前确认",Workspace:"工作区",ClearWorkSpace:"删除变量时进行确认",ClearAll:"全部清除",SelectAll:"全选",ImportData:"导入数据",ImportDataConfirmDialog:'显示用于导入 MAT 和媒体文件的 "导入数据" 对话框',Editor:"编辑器",PromptBeforeExitingDebugMode:"保存文件时提示退出调试模式"}},function(e,t,i){e.exports={root:{PanelLabel:"Confirmation Dialogs",ConfirmationDialogsHeader:"The following dialog boxes require user confirmation. Select a check box if you want that dialog to appear.",Header1:"State",Header2:"Dialog Box Description",Header3:"Tool",CommandHistory:"Command History",CommandHistoryDelete:"Warn before deleting Command History items",CommandWindow:"Command Window",CommandWindowClear:"Warn before clearing the Command Window",NavigationShortcuts:"Navigation Shortcuts",NavigationShortcutsShow:"Show Navigation Keyboard Shortcuts dialog automatically on session start",General:"General",MATLABExitConfirm:"Confirm before exiting MATLAB",Workspace:"Workspace",ClearWorkSpace:"Confirm when deleting variables",ClearAll:"Clear all",SelectAll:"Select all",ImportData:"Import Data",ImportDataConfirmDialog:"Show Import Data dialog for importing MAT and media files",Editor:"Editor",PromptBeforeExitingDebugMode:"Prompt to exit debug mode when saving file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(211),i(989),i(269),i(243),i(6769),i(215),i(216),i(272),i(990),i(2394),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([a,s,l,c],{templateString:r,constructor:function(){this._buildSimulinkPanel()},buildRendering:function(){this.inherited(arguments),this._placeSimulinkPanel()},_buildSimulinkPanel:function(){this.container=new i({title:""}),this.label=new n({tag:"SimulinkPreferencePanel.defaultLabel",text:d.labelText}),this.openSimulinkPrefButton=new o({tag:"openSimulinkPrefButton",text:d.openSimulinkPrefButton}),this.openSimulinkPrefButton.on("click",(function(){u.sendMessage({FEval:{function:"slprivate",arguments:["showprefs"],nargout:0}},{},"ShowSimulinkPrefs")}))},validatePrefsPanel:function(){return!0},_placeSimulinkPanel:function(){this.label.placeAt(this.labelNode),this.openSimulinkPrefButton.placeAt(this.pushButtonNode)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="containerNode">\n <div data-dojo-attach-point="labelNode">\n </div>\n\n <div data-dojo-attach-point="pushButtonNode" style="float:right">\n </div>\n</div>\n'},function(e,t,i){e.exports={root:{simulinkTitle:"Simulink",labelText:"Click the button below to open the Simulink Preference window.",openSimulinkPrefButton:"Open Simulink Preferences"}}},function(e,t,i){var n,o;n=[i(203),i(2395),i(6776),i(215),i(216),i(422),i(597),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=["matlab","editor","autocoding"];return e([n,o],{_ENABLE_AUTOCODING:"EnableAutoCoding",_SHOW_AUTOMATICALLY:"ShowAutomatically",_SHOW_ON_TAB:"ShowOnTab",_SUGGESTIONS_SETTING_PATH:["matlab","keyboard","suggestions"],templateString:i,autocodingOptions:t.autocodingOptions,autoCompletePairsLabel:t.autoCompletePairsLabel,autoCompleteWhenSplittingLabel:t.autoCompleteWhenSplittingLabel,autoCompleteBlockEndingLabel:t.autoCompleteBlockEndingLabel,suggestionsLabel:t.suggestionsLabel,postCreate:function(){this.inherited(arguments),this._buildSuggestionPreferencesInEditorPanel(),this._placeSuggestionPreferencesInEditorPanel(),this._buildAutocodingPreferencesInEditorPanel(),this._placeAutocodingPreferencesInEditorPanel()},_buildSuggestionPreferencesInEditorPanel:function(){this._showAutomaticallyRadioButton=new r({tag:this._SHOW_AUTOMATICALLY,text:t.showAutomaticallyLabel,buttonGroup:"suggestionsRadioButton"}),this._showOnTabRadioButton=new r({tag:this._SHOW_ON_TAB,text:t.showOnTabLabel,buttonGroup:"suggestionsRadioButton"}),s.getSetting(this._SUGGESTIONS_SETTING_PATH,this._SHOW_AUTOMATICALLY).then(function(e){this._showAutomaticallyRadioButton.set("checked",e.value),this._showOnTabRadioButton.set("checked",!e.value)}.bind(this))},_placeSuggestionPreferencesInEditorPanel:function(){this._showAutomaticallyRadioButton.placeAt(this.suggestionsNode),this._showOnTabRadioButton.placeAt(this.suggestionsNode)},_buildAutocodingPreferencesInEditorPanel:function(){this._checkboxWithAttributes=[new a("Parentheses",t.parenthesesLabel,this.autoCompletePairsNode),new a("CurlyBraces",t.curlyBracesLabel,this.autoCompletePairsNode),new a("SquareBrackets",t.squareBracketsLabel,this.autoCompletePairsNode),new a("SingleQuotes",t.singleQuotesLabel,this.autoCompletePairsNode),new a("DoubleQuotes",t.doubleQuotesLabel,this.autoCompletePairsNode),new a("Comments",t.commentsLabel,this.autoCompleteWhenSplittingNode),new a("CharacterVectors",t.characterVectorsLabel,this.autoCompleteWhenSplittingNode),new a("Strings",t.stringsLabel,this.autoCompleteWhenSplittingNode),new a("SplitParentheses",t.parenthesesSplittingLabel,this.autoCompleteWhenSplittingNode),new a("ControlFlows",t.controlFlowStatementsLabel,this.autoCompleteBlockEndingsNode),new a("Definitions",t.functionAndClassDefinitionsLabel,this.autoCompleteBlockEndingsNode)],this._checkboxWithAttributes.forEach(function(e){this._setCurrentValueForCheckBox(l,e.getSettingKey(),e.getAssociatedWidget())}.bind(this)),this._enableAutoCodingCheckboxAttribute=new a(this._ENABLE_AUTOCODING,t.enableAutocodingLabel,this.enableAutocodingNode),s.getSetting(l,this._ENABLE_AUTOCODING).then(function(e){this._destroyed||(this._enableAutoCodingCheckboxAttribute.getAssociatedWidget().set("checked",e.value),this._enableAutoCodingCheckboxAttribute.getAssociatedWidget().set("disabled",!1),this._setDisabled(!e.value))}.bind(this)),this._enableAutoCodingCheckboxAttribute.getAssociatedWidget().on("change",function(e){this._setDisabled(e.mwEventData.oldValue)}.bind(this))},_setCurrentValueForCheckBox:function(e,t,i){s.getSetting(e,t).then(function(e){this._destroyed||(i.set("checked",e.value),i.set("disabled",!this._enableAutoCodingCheckboxAttribute.getAssociatedWidget().checked))}.bind(this))},_setDisabled:function(e){this._checkboxWithAttributes.forEach((function(t){t.getAssociatedWidget().set("disabled",e)}))},_placeAutocodingPreferencesInEditorPanel:function(){this._enableAutoCodingCheckboxAttribute.placeInPanel(),this._checkboxWithAttributes.forEach((function(e){e.placeInPanel()}))},startup:function(){this.inherited(arguments),this._showAutomaticallyRadioButton.startup(),this._showOnTabRadioButton.startup(),this._enableAutoCodingCheckboxAttribute.getAssociatedWidget().startup(),this._checkboxWithAttributes.forEach((function(e){e.getAssociatedWidget().startup()}))},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){s.setSetting(this._SUGGESTIONS_SETTING_PATH,this._SHOW_AUTOMATICALLY,this._showAutomaticallyRadioButton.get("checked")?1:0),s.setSetting(l,this._ENABLE_AUTOCODING,this._enableAutoCodingCheckboxAttribute.getAssociatedWidget().get("checked")),this._checkboxWithAttributes.forEach(function(e){s.setSetting(l,e.getSettingKey(),e.getAssociatedWidget().get("checked"))}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){e.exports={autocodingTitle:"自動補完",suggestionsLabel:"候補と補完",showAutomaticallyLabel:"自動的に表示",showOnTabLabel:"タブに表示",enableAutocodingLabel:"オートコーディングの有効化",autocodingOptions:"オートコーディングのオプション",autoCompletePairsLabel:"オートコンプリートのペア",parenthesesLabel:"かっこ ( )",curlyBracesLabel:"中かっこ { }",squareBracketsLabel:"大かっこ [ ]",singleQuotesLabel:"一重引用符 (' ')",doubleQuotesLabel:'二重引用符 (" ")',autoCompleteWhenSplittingLabel:"分割時にオートコンプリート",commentsLabel:"コメント (%)",characterVectorsLabel:"文字ベクトル (' ')",stringsLabel:'string (" ")',parenthesesSplittingLabel:"かっこ ( )",autoCompleteBlockEndingLabel:"オートコンプリートブロックの終了",controlFlowStatementsLabel:"制御フロー ステートメント (if、for など)",functionAndClassDefinitionsLabel:"関数定義とクラス定義"}},function(e,t,i){e.exports={autocodingTitle:"자동 완성",suggestionsLabel:"제안 및 완성",showAutomaticallyLabel:"자동으로 표시",showOnTabLabel:"탭에 표시",enableAutocodingLabel:"자동 코딩 사용",autocodingOptions:"자동 코딩 옵션",autoCompletePairsLabel:"자동 완성 쌍",parenthesesLabel:"소괄호 ( )",curlyBracesLabel:"중괄호 { }",squareBracketsLabel:"대괄호 [ ]",singleQuotesLabel:"작은따옴표(' ')",doubleQuotesLabel:'큰따옴표(" ")',autoCompleteWhenSplittingLabel:"분할 시 자동 완성",commentsLabel:"주석(%)",characterVectorsLabel:"문자형 벡터(' ')",stringsLabel:'string형(" ")',parenthesesSplittingLabel:"소괄호 ( )",autoCompleteBlockEndingLabel:"블록 끝 자동 완성",controlFlowStatementsLabel:"제어 흐름 명령문(if, for 등)",functionAndClassDefinitionsLabel:"함수와 클래스 정의"}},function(e,t,i){e.exports={autocodingTitle:"自动填充",suggestionsLabel:"建议和自动填充项",showAutomaticallyLabel:"自动显示",showOnTabLabel:"按 Tab 键时显示",enableAutocodingLabel:"启用自动编码",autocodingOptions:"自动编码选项",autoCompletePairsLabel:"自动填充对组",parenthesesLabel:"圆括号 ( )",curlyBracesLabel:"花括号 { }",squareBracketsLabel:"方括号 [ ]",singleQuotesLabel:"单引号(' ')",doubleQuotesLabel:'双引号(" ")',autoCompleteWhenSplittingLabel:"拆分时自动补全",commentsLabel:"注释(%)",characterVectorsLabel:"字符向量(' ')",stringsLabel:'字符串(" ")',parenthesesSplittingLabel:"圆括号 ( )",autoCompleteBlockEndingLabel:"自动补全块结尾",controlFlowStatementsLabel:"控制流语句(if、for 等)",functionAndClassDefinitionsLabel:"函数和类定义"}},function(e,t,i){e.exports={root:{autocodingTitle:"Automatic Completions",suggestionsLabel:"Suggestions and completions",showAutomaticallyLabel:"Show automatically",showOnTabLabel:"Show on tab",enableAutocodingLabel:"Enable autocoding",autocodingOptions:"Autocoding options",autoCompletePairsLabel:"Autocomplete pairs",parenthesesLabel:"Parentheses ( )",curlyBracesLabel:"Curly braces { }",squareBracketsLabel:"Square brackets [ ]",singleQuotesLabel:"Single quotes (' ')",doubleQuotesLabel:'Double quotes (" ")',autoCompleteWhenSplittingLabel:"Autocomplete when splitting",commentsLabel:"Comments (%)",characterVectorsLabel:"Character vectors (' ')",stringsLabel:'Strings (" ")',parenthesesSplittingLabel:"Parentheses ( )",autoCompleteBlockEndingLabel:"Autocomplete block endings",controlFlowStatementsLabel:"Control flow statements (if, for, etc.)",functionAndClassDefinitionsLabel:"Function and class definitions"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="autocodingPrefs preferencePanelContent">\n <fieldset>\n <legend>${suggestionsLabel}</legend>\n <div class="suggestions" data-dojo-attach-point="suggestionsNode"></div>\n </fieldset>\n <br>\n <fieldset>\n <legend>${autocodingOptions}</legend>\n <div data-dojo-attach-point="enableAutocodingNode" class="enableAutocoding"></div>\n <fieldset>\n <legend>${autoCompletePairsLabel}</legend>\n <div data-dojo-attach-point="autoCompletePairsNode" class="autoCompletePairs"></div>\n </fieldset>\n <fieldset>\n <legend>${autoCompleteWhenSplittingLabel}</legend>\n <div data-dojo-attach-point="autoCompleteWhenSplittingNode" class="autoCompleteWhenSplitting"></div>\n </fieldset>\n <fieldset>\n <legend>${autoCompleteBlockEndingLabel}</legend>\n <div data-dojo-attach-point="autoCompleteBlockEndingsNode" class="autoCompleteBlockEndings"></div>\n </fieldset>\n </fieldset>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(2396),i(6782),i(215),i(216),i(308),i(597),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=["matlab","editor","autoformat"];return e([n,o],{_ENABLE_AUTOFORMATTING:"EnableAutoFormatting",templateString:i,textFormatLabel:t.textFormatLabel,sectionBreakTextLabel:t.sectionBreakTextLabel,insertOptionsLabel:t.insertOptionsLabel,textStyleLabel:t.textStyleLabel,postCreate:function(){this.inherited(arguments),this._buildAutoformattingPreferencesInEditorPanel(),this._placeAutoformattingPreferencesInEditorPanel()},_buildAutoformattingPreferencesInEditorPanel:function(){this._checkboxWithAttributes=[new a("AsteriskForItalicAndBold",t.asteriskForItalicAndBoldLabel,this.textFormatNode),new a("UnderscoreForItalicAndBold",t.underscoreForItalicAndBoldLabel,this.textFormatNode),new a("BacktickAndBarForMonospace",t.backtickAndBarForMonospaceLabel,this.textFormatNode),new a("SectionBreak",t.sectionBreakLabel,this.sectionBreakNode),new a("SectionBreakAndHeading",t.sectionBreakAndHeadingLabel,this.sectionBreakNode),new a("DollarSignForLatex",t.dollarSignForLatexLabel,this.insertOptionsNode),new a("URLToHyperlink",t.uRLToHyperlinkLabel,this.insertOptionsNode),new a("AngleBracketsForHyperlink",t.angleBracketsForHyperlink,this.insertOptionsNode),new a("LabelURLToHyperlink",t.labelURLToHyperlinkLabel,this.insertOptionsNode),new a("TrademarkCopyrightSymbol",t.trademarkCopyrightSymbolLabel,this.insertOptionsNode),new a("HashtagForTitle",t.hashtagForTitleLabel,this.textStyleNode),new a("HashtagsForHeading",t.hashtagsForHeadingLabel,this.textStyleNode),new a("AutomaticBulletedList",t.automaticBulletedList,this.textStyleNode),new a("AutomaticNumberedList",t.automaticNumberedList,this.textStyleNode)],this._checkboxWithAttributes.forEach(function(e){this._setCurrentValueForCheckBox(l,e.getSettingKey(),e.getAssociatedWidget())}.bind(this)),this._enableAutoFormattingCheckboxAttribute=new a(this._ENABLE_AUTOFORMATTING,t.enableAutoformattingLabel,this.enableAutoformattingNode),s.getSetting(l,this._ENABLE_AUTOFORMATTING).then(function(e){this._destroyed||(this._enableAutoFormattingCheckboxAttribute.getAssociatedWidget().set("checked",e.value),this._enableAutoFormattingCheckboxAttribute.getAssociatedWidget().set("disabled",!1),this._setDisabled(!e.value))}.bind(this)),this._enableAutoFormattingCheckboxAttribute.getAssociatedWidget().on("change",function(e){this._setDisabled(e.mwEventData.oldValue)}.bind(this))},_setCurrentValueForCheckBox:function(e,t,i){s.getSetting(e,t).then(function(e){this._destroyed||(i.set("checked",e.value),i.set("disabled",!this._enableAutoFormattingCheckboxAttribute.getAssociatedWidget().checked))}.bind(this))},_setDisabled:function(e){this._checkboxWithAttributes.forEach((function(t){t.getAssociatedWidget().set("disabled",e)}))},_placeAutoformattingPreferencesInEditorPanel:function(){this._enableAutoFormattingCheckboxAttribute.placeInPanel(),this._checkboxWithAttributes.forEach((function(e){e.placeInPanel()}))},startup:function(){this.inherited(arguments),this._enableAutoFormattingCheckboxAttribute.getAssociatedWidget().startup(),this._checkboxWithAttributes.forEach((function(e){e.getAssociatedWidget().startup()}))},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){s.setSetting(l,this._ENABLE_AUTOFORMATTING,this._enableAutoFormattingCheckboxAttribute.getAssociatedWidget().get("checked")),this._checkboxWithAttributes.forEach(function(e){s.setSetting(l,e.getSettingKey(),e.getAssociatedWidget().get("checked"))}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){e.exports={autoformattingTitle:"オートフォーマット",enableAutoformattingLabel:"ライブ エディターでオートフォーマットを有効にする",textFormatLabel:"テキストの書式",asteriskForItalicAndBoldLabel:"*イタリック*、**太字**",underscoreForItalicAndBoldLabel:"_イタリック_、__太字__",backtickAndBarForMonospaceLabel:"`固定幅`、|固定幅|",sectionBreakTextLabel:"セクション区切り",sectionBreakLabel:"%%、*** または --- でセクション区切りを入れる",sectionBreakAndHeadingLabel:"%% でテキストを見出しにしてセクション区切りを入れる",insertOptionsLabel:"挿入オプション",dollarSignForLatexLabel:"$LaTeX$ で LaTeX 式にする",uRLToHyperlinkLabel:"URL をハイパーリンクに自動変換",angleBracketsForHyperlink:"<URL> でハイパーリンクにする",labelURLToHyperlinkLabel:"[Label](URL) でラベル付きハイパーリンクにする",trademarkCopyrightSymbolLabel:"(TM)、(SM)、(R)、および (C) で商標、サービス マーク、および著作権記号にする",textStyleLabel:"テキスト スタイル",hashtagForTitleLabel:"#テキストでタイトル",hashtagsForHeadingLabel:"##テキスト、###テキスト、####テキストで見出し",automaticBulletedList:"自動箇条書きリスト (*、+ または -)",automaticNumberedList:"自動番号付きリスト (1.、2. など)"}},function(e,t,i){e.exports={autoformattingTitle:"자동 서식 지정",enableAutoformattingLabel:"라이브 편집기에서 자동 서식 지정 사용",textFormatLabel:"텍스트 형식",asteriskForItalicAndBoldLabel:"*기울임꼴*, **굵게**",underscoreForItalicAndBoldLabel:"_기울임꼴_, __굵게__",backtickAndBarForMonospaceLabel:"`고정 폭`, |고정 폭|",sectionBreakTextLabel:"섹션 나누기",sectionBreakLabel:"섹션 나누기의 경우 %%, *** 또는 ---",sectionBreakAndHeadingLabel:"섹션 나누기 및 소제목의 경우 %% 텍스트",insertOptionsLabel:"삽입 옵션",dollarSignForLatexLabel:"LaTeX 수식의 경우 $LaTeX$",uRLToHyperlinkLabel:"URL을 하이퍼링크로 자동 변환",angleBracketsForHyperlink:"하이퍼링크의 경우 <URL>",labelURLToHyperlinkLabel:"레이블이 있는 하이퍼링크의 경우 [레이블](URL)",trademarkCopyrightSymbolLabel:"상표, 서비스 표시 및 저작권 기호의 경우 (TM), (SM), (R) 및 (C)",textStyleLabel:"텍스트 스타일",hashtagForTitleLabel:"제목의 경우 #text",hashtagsForHeadingLabel:"소제목의 경우 ##text, ###text 또는 ####text",automaticBulletedList:"자동 글머리 기호 목록(*, +, - 중 하나)",automaticNumberedList:"자동 번호 매기기 목록(1., 2. 등)"}},function(e,t,i){e.exports={autoformattingTitle:"自动格式化",enableAutoformattingLabel:"在实时编辑器中启用自动格式化",textFormatLabel:"文本格式",asteriskForItalicAndBoldLabel:"*italic*、**bold**",underscoreForItalicAndBoldLabel:"_italic_、__bold__",backtickAndBarForMonospaceLabel:"`monospace`、|monospace|",sectionBreakTextLabel:"分节符",sectionBreakLabel:"%%、*** 或 --- 表示分节符",sectionBreakAndHeadingLabel:"%% 文本表示分节符和题头",insertOptionsLabel:"插入选项",dollarSignForLatexLabel:"$LaTeX$ 表示 LaTeX 方程",uRLToHyperlinkLabel:"自动将 URL 转换为超链接",angleBracketsForHyperlink:"<URL> 表示超链接",labelURLToHyperlinkLabel:"[Label](URL) 表示带标签的超链接",trademarkCopyrightSymbolLabel:"(TM)、(SM)、(R) 和 (C) 表示商标、服务标记和版权符号",textStyleLabel:"文本样式",hashtagForTitleLabel:"#text 表示标题",hashtagsForHeadingLabel:"##text、###text 或 ####text 表示题头",automaticBulletedList:"自动项目符号列表(*、+ 或 -)",automaticNumberedList:"自动编号列表(1.、2. 等)"}},function(e,t,i){e.exports={root:{autoformattingTitle:"Autoformatting",enableAutoformattingLabel:"Enable autoformatting in Live Editor",textFormatLabel:"Text format",asteriskForItalicAndBoldLabel:"*italic*, **bold**",underscoreForItalicAndBoldLabel:"_italic_, __bold__",backtickAndBarForMonospaceLabel:"`monospace`, |monospace|",sectionBreakTextLabel:"Section break",sectionBreakLabel:"%%, ***, or --- for section break",sectionBreakAndHeadingLabel:"%% text for section break and heading",insertOptionsLabel:"Insert options",dollarSignForLatexLabel:"$LaTeX$ for LaTeX equation",uRLToHyperlinkLabel:"Automatically convert URLs to hyperlinks",angleBracketsForHyperlink:"<URL> for hyperlink",labelURLToHyperlinkLabel:"[Label](URL) for labeled hyperlink",trademarkCopyrightSymbolLabel:"(TM), (SM), (R), and (C) for trademark, service mark, and copyright symbols",textStyleLabel:"Text style",hashtagForTitleLabel:"#text for title",hashtagsForHeadingLabel:"##text, ###text, or ####text for heading",automaticBulletedList:"Automatic bulleted lists (*, +, or -)",automaticNumberedList:"Automatic numbered lists (1., 2., etc.)"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="autoformattingPrefs preferencePanelContent">\n <div data-dojo-attach-point="enableAutoformattingNode"></div>\n <fieldset>\n <legend>${textFormatLabel}</legend>\n <div data-dojo-attach-point="textFormatNode"></div>\n </fieldset>\n <fieldset>\n <legend>${sectionBreakTextLabel}</legend>\n <div data-dojo-attach-point="sectionBreakNode"></div>\n </fieldset>\n <fieldset>\n <legend>${insertOptionsLabel}</legend>\n <div data-dojo-attach-point="insertOptionsNode"></div>\n </fieldset>\n <fieldset>\n <legend>${textStyleLabel}</legend>\n <div data-dojo-attach-point="textStyleNode"></div>\n </fieldset>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(2397),i(6785),i(215),i(216),i(597),i(520),i(269),i(422),i(258),i(243),i(726),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=["matlab","editor","backup"],f={minimum:1,maximum:120};return e([n,o],{backupLabels:t,settings:{enableFileBackup:{key:"EnableFileBackup",default:!0},frequency:{key:"Frequency",default:5},saveUntitled:{key:"SaveUntitled",default:!1},saveIntoSourceFolder:{key:"SaveIntoSourceFolder",default:!0},saveToFolder:{key:"SaveToFolder",default:""},fileExtensionToAppend:{key:"FileExtensionToAppend",default:"~"},fileExtensionToReplace:{key:"FileExtensionToReplace",default:"asv"},deleteOnClose:{key:"DeleteOnClose",default:!0},replaceExtension:{key:"ReplaceExtension",default:!0}},templateString:i,generalDisplayOptionsLabel:t.backupPanelTitle,fileNameGroup:"fileNameRadioGroup",locationGroup:"locationGroup",postCreate:function(){this.inherited(arguments),this._buildUI()},startup:function(){this.inherited(arguments),this.getSettings().then(function(){this.updatePrefsToUI(),this._initializeUI()}.bind(this)).catch((function(e){console.error("Error in fetching preferences from the service ")}))},validatePrefsPanel:function(){return!0},commitSettings:function(){Object.keys(this.settings).forEach(function(e){h.setSetting(p,this.settings[e].key,this.settings[e].value)}.bind(this))},getSettings:function(){var e=Object.keys(this.settings);return new Promise(function(t,i){Promise.all(e.map(function(e){return h.getSetting(p,this.settings[e].key)}.bind(this))).then(function(i){for(var n=i.length,o=0;o<n;o++)this.settings[e[o]].value=i[o].value;t()}.bind(this)).catch((function(e){i(e)}))}.bind(this))},updatePrefsFromUI:function(){this.settings.enableFileBackup.value=this._autoCreateBackupFiles.get("checked");var e=this._minutesSpinner.get("value");e>=f.minimum&&e<=f.maximum?this.settings.frequency.value=this._minutesSpinner.get("value"):this._minutesSpinner.set("value",this.settings.frequency.value),this.settings.saveUntitled.value=this._saveUntitledCheckbox.get("checked"),this.settings.saveIntoSourceFolder.value=this._sourceDirectoryRadio.get("checked"),this.settings.saveToFolder.value=this._directoryTextField.get("value"),this.settings.replaceExtension.value=this._replaceExtensionRadio.get("checked"),this.settings.fileExtensionToReplace.value=this._replaceExtensionText.get("value"),this.settings.fileExtensionToAppend.value=this._appendExtensionText.get("value"),this.settings.deleteOnClose.value=this._autoDeleteBackupFilesCheckbox.get("checked")},updatePrefsToUI:function(){this._autoCreateBackupFiles.set("checked",this.settings.enableFileBackup.value),this._minutesSpinner.set("value",this.settings.frequency.value),this._saveUntitledCheckbox.set("checked",this.settings.saveUntitled.value),this._sourceDirectoryRadio.set("checked",this.settings.saveIntoSourceFolder.value),this._singleDirectoryRadio.set("checked",!this.settings.saveIntoSourceFolder.value),this._directoryTextField.set("value",this.settings.saveToFolder.value),this._replaceExtensionRadio.set("checked",this.settings.replaceExtension.value),this._appendExtensionRadio.set("checked",!this.settings.replaceExtension.value),this._replaceExtensionText.set("value",this.settings.fileExtensionToReplace.value),this._appendExtensionText.set("value",this.settings.fileExtensionToAppend.value),this._autoDeleteBackupFilesCheckbox.set("checked",this.settings.deleteOnClose.value)},commitPrefsChanges:function(){this.updatePrefsFromUI(),this.commitSettings()},_initializeUI:function(){this._handleAutoCreateBackupToggled()},_buildUI:function(){this._autoCreateBackupFiles=this._createCheckbox(this.settings.enableFileBackup.key,t.autoCreateBackupFilesLabel,this.autoCreateCheckboxNode,!0),this._autoCreateBackupFiles.on("change",this._handleAutoCreateBackupToggled.bind(this)),this._buildSaveOptionsPreferences(),this._buildCloseOptionsPreferences(),this._buildFileNameOptionsPreferences(),this._buildLocationPreferences()},_buildSaveOptionsPreferences:function(){this._saveBackup=new s({text:t.saveBackupLabel+": "}),this._saveBackup.placeAt(this.minutesBackupNode),this._minutesSpinner=new a({disabled:!1,step:1,tag:"minutesSpinbox",width:60,value:this.settings.frequency.default,limits:f}),this._minutesSpinner.placeAt(this.minutesBackupNode),this._minutesSpinner.startup(),this._minutesLabel=new s({text:t.minutesLabel}),this._minutesLabel.placeAt(this.minutesBackupNode),this._saveUntitledCheckbox=this._createCheckbox(this.settings.saveUntitled.key,t.untitledLabel,this.saveUntitledFilesNode,this.settings.saveUntitled.default)},_toggleSaveOptions:function(e){this._minutesSpinner.set("disabled",!e),this._saveUntitledCheckbox.set("disabled",!e),this._saveBackup.set("disabled",!e),this._minutesLabel.set("disabled",!e)},_buildCloseOptionsPreferences:function(){this._autoDeleteBackupFilesCheckbox=this._createCheckbox(this.settings.deleteOnClose.key,t.autoDeleteBackupLabel,this.closeOptionsNode,this.settings.deleteOnClose.default)},_toggleCloseOptions:function(e){this._autoDeleteBackupFilesCheckbox.set("disabled",!e)},_handleFileNameRadioChange:function(){this._replaceExtensionRadio.checked?(this._replaceExtensionText.set("disabled",!1),this._appendExtensionText.set("disabled",!0)):(this._replaceExtensionText.set("disabled",!0),this._appendExtensionText.set("disabled",!1))},_handleAutoCreateBackupToggled:function(){var e=this._autoCreateBackupFiles.checked;this._toggleSaveOptions(e),this._toggleCloseOptions(e),this._toggleLocationOptions(e),this._toggleFileNameOptions(e),e&&(this._handleFileNameRadioChange(),this._handleLocationRadioToggle())},_handleLocationRadioToggle:function(){var e=this._sourceDirectoryRadio.get("checked");this._directoryTextField.set("disabled",e),this._browseButton.set("disabled",e)},_buildFileNameOptionsPreferences:function(){this._replaceExtensionRadio=this._createRadioButtonInstance(this.settings.replaceExtension.key,t.replaceRadioLabel,this.fileNameGroup,this.replaceNode,!0),this._replaceExtensionText=this._createInputBox(this.settings.fileExtensionToReplace.key,this.settings.fileExtensionToReplace.default,this.replaceNode),this._appendExtensionRadio=this._createRadioButtonInstance(this.settings.fileExtensionToAppend.key+"RADIO",t.appendRadioLabel,this.fileNameGroup,this.appendNode),this._appendExtensionRadio.on("change",this._handleFileNameRadioChange.bind(this)),this._appendExtensionText=this._createInputBox(this.settings.fileExtensionToAppend.key,this.settings.fileExtensionToAppend.default,this.appendNode,!0)},_toggleFileNameOptions:function(e){this._replaceExtensionRadio.set("disabled",!e),this._replaceExtensionText.set("disabled",!e),this._appendExtensionRadio.set("disabled",!e),this._appendExtensionText.set("disabled",!e),e&&(this.settings.replaceExtension.value?this._appendExtensionText.set("disabled",!0):this._replaceExtensionText.set("disabled",!0))},_buildLocationPreferences:function(){this._sourceDirectoryRadio=this._createRadioButtonInstance(this.settings.saveIntoSourceFolder.key,t.sourceFilesRadioLabel,this.locationGroup,this.sourceFilesDirectoriesNode,!0),this._singleDirectoryRadio=this._createRadioButtonInstance(this.settings.saveToFolder.key+"RADIO",t.singleDirectoryRadioLabel,this.locationGroup,this.singleDirectoryNode),this._directoryTextField=this._createInputBox(this.settings.saveToFolder.key,this.settings.saveToFolder.default,this.singleDirectoryNode,!0),this._sourceDirectoryRadio.on("change",this._handleLocationRadioToggle.bind(this)),this._browseButton=new d({text:"..."}),this._browseButton.placeAt(this.singleDirectoryNode),this._browseButton.startup(),this._browseButton.on("click",function(){this._handleBrowseClick()}.bind(this))},_toggleLocationOptions:function(e){this._sourceDirectoryRadio.set("disabled",!e),this._singleDirectoryRadio.set("disabled",!e);var t=!e||e&&this.settings.saveIntoSourceFolder.value;this._directoryTextField.set("disabled",t),this._browseButton.set("disabled",t)},_handleBrowseClick:function(){u.showOpenFolderDialog().then(function(e){e&&"name"in e&&this._directoryTextField.set("value",e.name)}.bind(this))},_createRadioButtonInstance:function(e,t,i,n,o){var r=new l({tag:e,text:t,buttonGroup:i,checked:o=o||!1});return r.placeAt(n),r.startup(),r},_createInputBox:function(e,t,i,n){var o=new c({tag:e,value:t,disabled:n=n||!1});return o.placeAt(i),o.startup(),o},_createCheckbox:function(e,t,i,n,o){n=n||!1,o=o||!1;var a=new r(e,t,i);return a.placeInPanel(),a.getAssociatedWidget().startup(),a.getAssociatedWidget().set("checked",n),a.getAssociatedWidget().set("disabled",o),a.getAssociatedWidget()}})}),e,t),e.exports=o},function(e,t,i){e.exports={root:{backupPanelTitle:"Backup Files",saveOptionsLabel:"Save Options",closeOptionsLabel:"Close Options",autoCreateBackupFilesLabel:"Automatically create backup files while working in the MATLAB Editor",minutesLabel:"minutes",saveBackupLabel:"Save the backup every",untitledLabel:"Save untitled files",autoDeleteBackupLabel:"Automatically delete backup files when the editor closes",fileNameLabel:"File Name",replaceRadioLabel:"Replace extension with",appendRadioLabel:"Append file name with",locationLabel:"Location",sourceFilesRadioLabel:"Source file directories",singleDirectoryRadioLabel:"Single directory"}}},function(e,t){e.exports='<div class="backupPanelPrefs preferencePanelContent">\n <div data-dojo-attach-point="autoCreateCheckboxNode"></div>\n\n <div class="backupPanelPrefsOption">\n <h3 dota-dojo-attach-point="saveOptionsLabel"> ${backupLabels.saveOptionsLabel}</h3>\n <div class="row rowBetween content saveOptions" data-dojo-attach-point="saveOptionsNode">\n <div class="row rowStart" data-dojo-attach-point="minutesBackupNode"></div>\n <div data-dojo-attach-point="saveUntitledFilesNode"></div>\n </div>\n </div>\n\n <div class="backupPanelPrefsOption">\n <h3 dota-dojo-attach-point="closeOptionsLabel"> ${backupLabels.closeOptionsLabel}</h3>\n <div class="row rowStart content" data-dojo-attach-point="closeOptionsNode"></div>\n </div>\n\n <div class="backupPanelPrefsOption">\n <h3 dota-dojo-attach-point="fileNameLabel"> ${backupLabels.fileNameLabel}</h3>\n <div class="column columnCenter content fileName">\n <div class="row rowStart" data-dojo-attach-point="replaceNode"></div>\n <div class="row rowStart" data-dojo-attach-point="appendNode"></div>\n </div>\n </div>\n\n <div class="backupPanelPrefsOption">\n <h3 dota-dojo-attach-point="locationLabel"> ${backupLabels.locationLabel} </h3>\n <div class="column columnCenter">\n <div class="row rowStart" data-dojo-attach-point="sourceFilesDirectoriesNode"></div>\n <div class="row rowStart singleDirectory" data-dojo-attach-point="singleDirectoryNode"></div>\n </div>\n </div>\n\n</div>'},function(e,t,i){var n,o;n=[i(215),i(216),i(203),i(204),i(214),i(991),i(1569),i(6795),i(2398),i(6798),i(1570),i(1571),i(922),i(286),i(269),i(597),i(992),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return i([e,t],{templateString:s,_ENABLE_WARNING_ERROR_MSGS:d.enableErrorWarningMessages,_PATH_TO_SETTING:d.pathToSetting,_UNDERLINING:d.underlining,activeSettingsLabel:r.activeSettings,autofixLabel:r.autofix,underliningLabel:r.underlining,postCreate:function(){this.inherited(arguments),this._buildCodeAnalyzerPreferences(),this._placeCodeAnalyzerPreferences(),this._createHyperlink()},_createHyperlink:function(){m.createHyperlink({wrapperNode:this.hyperlinkWrapper,wrapperText:r.hyperlinkWrapperText,linkText:r.hyperlinkText,navigateTo:a.progTitle})},_buildCodeAnalyzerPreferences:function(){this._enableWarningErrorMsgsCheckboxAttribute=new g(this._ENABLE_WARNING_ERROR_MSGS,r.enableWarningErrorMsgs,this.enableWarningErrorMsgNode),_.getSetting(this._PATH_TO_SETTING,this._ENABLE_WARNING_ERROR_MSGS).then(function(e){this._enableWarningErrorMsgsCheckboxAttribute.getAssociatedWidget().set("checked",e.value),this._underliningComboBox.set("disabled",!e.value),this._enableWarningErrorMsgsCheckboxAttribute.getAssociatedWidget().set("disabled",!1)}.bind(this)),this._underliningComboBox=new p({tag:this._UNDERLINING,items:[{label:r.underlineWarningError,value:2},{label:r.underlineErrorOnly,value:1},{label:r.noUnderline,value:0}]}),this._underliningComboBox.set("width","100%"),_.getSetting(this._PATH_TO_SETTING,this._UNDERLINING).then(function(e){this._underliningComboBox.set("value",e.value)}.bind(this)),this._enableWarningErrorMsgsCheckboxAttribute.getAssociatedWidget().on("change",function(e){var t=e.mwEventData.oldValue;this._underliningComboBox.set("disabled",t)}.bind(this)),this._autofix=new f({text:this.autofixLabel}),this._activeSettingsCombobox=l.createActiveSettingsCombobox(),this._settingsDropdown=l.createSettingsDropdown();var e=u.createFilters();this._searchTextField=e.searchTextField,this._searchFilterDropDown=e.searchFilterDropDown,l.setDefaultConfigFileName().then(function(){c.setInitialConfig(this.ErrorWarningMsgsNode)}.bind(this)),o.after(u,"eventToUpdateLabel",n.hitch(l,"checkAndUpdate")),o.after(h,"onConfigUpdated",n.hitch(l,"updateTreeOnExternalUpdate"))},_placeCodeAnalyzerPreferences:function(){this._enableWarningErrorMsgsCheckboxAttribute.placeInPanel(),this._underliningComboBox.placeAt(this.underliningComboBoxNode),this._autofix.placeAt(this.autofixLabelNode),this._activeSettingsCombobox.placeAt(this.activeSettingsComboBoxNode),this._settingsDropdown.placeAt(this.settingsDropDownNode),this._searchTextField.placeAt(this.searchTextFieldNode),this._searchFilterDropDown.placeAt(this.searchFilterDropDownNode)},startup:function(){this.inherited(arguments),this._enableWarningErrorMsgsCheckboxAttribute.getAssociatedWidget().startup(),this._underliningComboBox.startup(),this._autofix.startup(),this._activeSettingsCombobox.startup(),this._settingsDropdown.startup(),this._searchTextField.startup(),this._searchFilterDropDown.startup(),void 0!==u.treeWidget&&u.resizeTree()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(){_.setSetting(this._PATH_TO_SETTING,this._ENABLE_WARNING_ERROR_MSGS,this._enableWarningErrorMsgsCheckboxAttribute.getAssociatedWidget().get("checked")),_.setSetting(this._PATH_TO_SETTING,this._UNDERLINING,this._underliningComboBox.get("value")),l.commitActiveSettingsValue(),l.commitAllConfigSettingValue(),l.commitActiveConfigurationFileSettingsValue(),c.commitConfiguration()},destroy:function(){this.inherited(arguments),u.destroy(),l.destroy()}})}),e,t),e.exports=o},function(e,t,i){e.exports={codeAnalyzerTitle:"コード アナライザー",enableWarningErrorMsgs:"統合された警告とエラー メッセージを有効にする",underlining:"下線:",underlineWarningError:"警告とエラーに下線を引く",underlineErrorOnly:"エラーのみ下線を引く",noUnderline:"下線なし",autofix:"自動変更:",activeSettings:"アクティブ設定:",defaultSetting:"既定の設定",defaultSettingModified:"既定の設定 (修正)",browse:"参照...",settingsDropdownSaveAs:"名前を付けて保存...",settingsDropdownRestoreDefaults:"既定の設定に戻す",searchTextFieldMsg:"コード アナライザー警告/エラー メッセージの検索",showAllFilter:"すべて表示",showModifiedMessagesFilter:"既定から変更されたメッセージを表示",fileDoesNotExist:"ファイル ... ${fileName} はもう存在しません。",codeAnalyzerPreferences:"コード アナライザー基本設定",saveChangesTo:'"${fileName}" に変更を保存しますか?',yesButton:"はい",noButton:"いいえ",cancelButton:"キャンセル",okButton:"OK",alertMessage:"${fileName} の読み取りで問題がありました。\n行は 0、1、または # で始まらなければなりません。",hyperlinkText:"自動変更の強調色を調整",hyperlinkWrapperText:"${aTagStart}${hyperlinkText}${aTagEnd}",contextMenuEnable:"有効",contextMenuDisable:"無効",contextMenuExpandAll:"すべて展開",contextMenuCollapseAll:"すべて折りたたむ"}},function(e,t,i){e.exports={codeAnalyzerTitle:"코드 분석기",enableWarningErrorMsgs:"통합 경고 및 오류 메시지 사용",underlining:"밑줄:",underlineWarningError:"경고 및 오류에 밑줄 표시",underlineErrorOnly:"오류에만 밑줄 표시",noUnderline:"밑줄 표시 안 함",autofix:"자동 수정:",activeSettings:"활성화된 설정:",defaultSetting:"디폴트 설정",defaultSettingModified:"디폴트 설정(수정됨)",browse:"찾아보기...",settingsDropdownSaveAs:"다른 이름으로 저장...",settingsDropdownRestoreDefaults:"디폴트 값 복원",searchTextFieldMsg:"코드 분석기 경고/오류 메시지 검색",showAllFilter:"모두 표시",showModifiedMessagesFilter:"디폴트 설정에서 수정된 메시지 표시",fileDoesNotExist:"파일 ${fileName}이(가) 더 이상 존재하지 않습니다.",codeAnalyzerPreferences:"코드 분석기 기본 설정",saveChangesTo:'변경 내용을 "${fileName}"에 저장하시겠습니까?',yesButton:"예",noButton:"아니요",cancelButton:"취소",okButton:"확인",alertMessage:"${fileName}을(를) 읽는 중 문제가 발생했습니다.\n라인은 0, 1 또는 #으로 시작해야 합니다.",hyperlinkText:"강조 표시를 위한 색 조정",hyperlinkWrapperText:"${aTagStart}${hyperlinkText}${aTagEnd}",contextMenuEnable:"사용",contextMenuDisable:"사용 안 함",contextMenuExpandAll:"모두 확장",contextMenuCollapseAll:"모두 축소"}},function(e,t,i){e.exports={codeAnalyzerTitle:"代码分析器",enableWarningErrorMsgs:"启用集成警告和错误消息",underlining:"下划线:",underlineWarningError:"为警告和错误添加下划线",underlineErrorOnly:"仅为错误添加下划线",noUnderline:"不添加下划线",autofix:"自动修复:",activeSettings:"当前设置:",defaultSetting:"默认设置",defaultSettingModified:"默认设置(已修改)",browse:"浏览...",settingsDropdownSaveAs:"另存为...",settingsDropdownRestoreDefaults:"还原默认值",searchTextFieldMsg:"搜索代码分析器警告/错误消息",showAllFilter:"全部显示",showModifiedMessagesFilter:"显示根据默认值修改的消息",fileDoesNotExist:"文件 ${fileName} 不再存在。",codeAnalyzerPreferences:"代码分析器预设",saveChangesTo:'是否保存对 "${fileName}" 的更改?',yesButton:"是",noButton:"否",cancelButton:"取消",okButton:"确定",alertMessage:"读取 ${fileName} 时出现问题。\n行必须以 0、1 或 # 开头。",hyperlinkText:"调整自动修复高亮颜色",hyperlinkWrapperText:"${aTagStart}${hyperlinkText}${aTagEnd}",contextMenuEnable:"启用",contextMenuDisable:"禁用",contextMenuExpandAll:"全部展开",contextMenuCollapseAll:"全部折叠"}},function(e,t,i){e.exports={root:{codeAnalyzerTitle:"Code Analyzer",enableWarningErrorMsgs:"Enable integrated warning and error messages",underlining:"Underlining:",underlineWarningError:"Underline warnings and errors",underlineErrorOnly:"Underline errors only",noUnderline:"No underlines",autofix:"Autofix:",activeSettings:"Active settings:",defaultSetting:"Default Settings",defaultSettingModified:"Default Settings (modified)",browse:"Browse...",settingsDropdownSaveAs:"Save As...",settingsDropdownRestoreDefaults:"Restore Defaults",searchTextFieldMsg:"Search Code Analyzer warning/error messages",showAllFilter:"Show All",showModifiedMessagesFilter:"Show Messages Modified from Default",fileDoesNotExist:"The file ... ${fileName} no longer exists.",codeAnalyzerPreferences:"Code Analyzer Preferences",saveChangesTo:'Save changes to "${fileName}"?',yesButton:"Yes",noButton:"No",cancelButton:"Cancel",okButton:"OK",alertMessage:"There was a problem reading ${fileName}.\nLines must begin with a 0, 1, or #.",hyperlinkText:"Adjust autofix highlight color",hyperlinkWrapperText:"${aTagStart}${hyperlinkText}${aTagEnd}",contextMenuEnable:"Enable",contextMenuDisable:"Disable",contextMenuExpandAll:"Expand All",contextMenuCollapseAll:"Collapse All"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){e.exports={progTitle:"プログラミング ツール",codeAnalyzerColorsNode:"コード アナライザーの色",warningsLabel:"警告",autofixLabel:"自動修正の強調",variableColorsNode:"変数および関数の色",autoHighlightLabel:"自動的に強調",variablesScopeLabel:"共有スコープをもつ変数",sampleRTCText:"サンプル",restoreDefaultsLabel:"既定の設定に戻す"}},function(e,t,i){e.exports={progTitle:"프로그래밍 툴",codeAnalyzerColorsNode:"코드 분석기 색",warningsLabel:"경고",autofixLabel:"자동 수정 강조 표시",variableColorsNode:"변수 및 함수 색",autoHighlightLabel:"자동으로 강조 표시",variablesScopeLabel:"공유 범위를 가지는 변수",sampleRTCText:"샘플",restoreDefaultsLabel:"디폴트 값 복원"}},function(e,t,i){e.exports={progTitle:"编程工具",codeAnalyzerColorsNode:"代码分析器颜色",warningsLabel:"警告",autofixLabel:"突出显示自动修复",variableColorsNode:"变量和函数颜色",autoHighlightLabel:"自动突出显示",variablesScopeLabel:"具有共享作用域的变量",sampleRTCText:"示例",restoreDefaultsLabel:"还原默认值"}},function(e,t,i){e.exports={root:{progTitle:"Programming Tools",codeAnalyzerColorsNode:"Code analyzer colors",warningsLabel:"Warnings",autofixLabel:"Autofix highlight",variableColorsNode:"Variable and function colors",autoHighlightLabel:"Automatically highlight",variablesScopeLabel:"Variables with shared scope",sampleRTCText:"Sample",restoreDefaultsLabel:"Restore Defaults"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="codeAnalyzerPref preferencePanelContent">\n <div data-dojo-attach-point="enableWarningErrorMsgNode"></div>\n <div class="underliningContainer">\n <div class="underliningLabel" data-dojo-attach-point="underliningLabelNode">\n ${underliningLabel}\n </div>\n <div class="underliningComboBox" data-dojo-attach-point="underliningComboBoxNode"></div>\n <div class="autofixLabel" data-dojo-attach-point="autofixLabelNode"></div>\n <div class="hyperlinkContainer" data-dojo-attach-point="hyperlinkWrapper"></div>\n </div>\n <div class="activeSettingsLabel" data-dojo-attach-point="activeSettingsLabelNode">${activeSettingsLabel}</div>\n <div class="activeSettingsContainer">\n <div class="activeSettingsComboBox" data-dojo-attach-point="activeSettingsComboBoxNode"></div>\n <div class="settingsDropDown" data-dojo-attach-point="settingsDropDownNode"></div>\n </div>\n <div class="searchContainer">\n <div class="searchTextField" data-dojo-attach-point="searchTextFieldNode"></div>\n <div class="searchFilterDropDown" data-dojo-attach-point="searchFilterDropDownNode"></div>\n </div>\n <div class="ErrorWarningMsgs" data-dojo-attach-point="ErrorWarningMsgsNode"></div>\n</div>'},function(e,t,i){var n,o;n=[i(1345)],o=i.dj.d(n,(function(e){var t="Warning",i="Error";function n(e){return{getCategories:function(){return r(e.categories,(function(e,t){return{categoryMessage:e.categoryMessage,tag:t}}))},getMessagesForCategory:function(t){if(t in e.categories){var i=e.categories[t],n=[];return i&&(n=r(i.messages,(function(e,t){return{tag:e.tag,message:e.message,severity:e.severity,defaultEnabled:e.defaultEnabled}}))),n}},isWarning:function(i){if(i in e.severityTable)return e.severityTable[i]===t},isError:function(t){if(t in e.severityTable)return e.severityTable[t]===i}}}function o(e){if(e&&Object.getOwnPropertyNames(e).length){if(e.categories&&Object.getOwnPropertyNames(e.categories).length&&e.severityTable&&Object.getOwnPropertyNames(e.severityTable).length)return!0;if(e.failure)return!0}return!1}function r(e,t){var i=[];return Object.keys(e).forEach((function(n){i.push(t(e[n],n,e))})),i}return function(t){var i=new e(t);return{getMsgChecks:function(){return i.requestData("/codeanalyzer/requestChannel/preferences","/codeanalyzer/responseChannel/preferences",n,o,{})}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(277),i(30),i(203),i(225),i(2165),i(1109)],o=i.dj.d(n,(function(e,t,i,n,o,r){return i([o],{_handlers:[],_messageNodes:[],_msgId:"",getDomNode:function(e,t){var i=this.inherited(arguments),n=document.createElement("modifiedMessage");if(n.classList.add("imageSource"),e.modified?n.classList.remove("hideDot"):n.classList.add("hideDot"),e.extendedHelpUrl){const t=i.lastChild;t.classList.add("link");const n=this._handleMessageNodeClickEvent.bind(this,e);t.addEventListener("click",n),this._messageNodes.push(t),this._handlers.push(n)}return i.insertBefore(n,i.childNodes[0]),i},_createTooltipDialog:function(i,o){this.tooltipDialog&&this._destroyTooltipDialog(),this.tooltipDialog=new t({content:i,class:"rtcTooltip codeAnalyzerTooltip"}),e.open({popup:this.tooltipDialog,around:n(".ErrorWarningMsgs [data-test-id ="+o+"]")[0],orient:["before-centered","after-centered"]}),this.windowClickHandler=this._handleWindowClickEvent.bind(this),window.addEventListener("click",this.windowClickHandler)},_getMessageHtml:function(e){return r.getCshHtml(e)},_handleMessageNodeClickEvent:function(e){if(event.stopPropagation(),this._msgId===e.id&&this._tooltipOpened)return this._destroyTooltipDialog(),void(this._tooltipOpened=!1);this._getMessageHtml(e.extendedHelpUrl).then(function(t){this._createTooltipDialog(t,e.id),this._msgId=e.id,this._tooltipOpened=!0}.bind(this))},_handleWindowClickEvent:function(){this.tooltipDialog.domNode&&!this.tooltipDialog.domNode.contains(event.target)&&this._destroyTooltipDialog()},_destroyTooltipDialog:function(){e.close(this.tooltipDialog),this.tooltipDialog=null,this._tooltipOpened=!1,window.removeEventListener("click",this.windowClickHandler)},removeMessageNodeListeners:function(){for(var e=0;e<this._messageNodes.length;e++)this._messageNodes[e].removeEventListener("click",this._handlers[e])},handleTreeScroll:function(){this._tooltipOpened&&this._destroyTooltipDialog()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(991),i(1570),i(269),i(233),i(922),i(1111),i(263),i(2398),i(1571)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return{_ALL_CONFIGS:t.allConfigs,_ACTIVE_CONFIG:t.activeConfig,_MODIFIED_SETTINGS:t.modifiedSettings,_PATH_TO_SETTING:t.pathToSetting,_DEFAULT_SETTINGS:e.defaultSetting,_MODIFIED_DEFAULT_SETTINGS:e.defaultSettingModified,setInitialConfig:function(e){a.getSetting(this._PATH_TO_SETTING,this._ALL_CONFIGS).then(t=>{var i=t.value.split(";"),l=i.splice(0,1).concat(i.reverse()),c=[];a.getSetting(this._PATH_TO_SETTING,this._ACTIVE_CONFIG).then(t=>{Promise.all(r.doFilesExist(l)).then(i=>{for(var r=t.value,d=0;d<i.length;d++)i[d]&&d>0?c.push(l[d]):d+1===t.value&&(r=0);var u=s.updateDropdownItems(c,r),h=n.fileInfoFromPath(u);if(i[0])this._readConfigFromFileAndUpdateTree(h,r,e);else{var p=s._DEFAULT_CONFIG_FILE_NAME,f=n.fileInfoFromPath(p);o.updateConfig(f.location,f.name,[],a).then(()=>{this._readConfigFromFileAndUpdateTree(h,r,e)})}})})})},_readConfigFromFileAndUpdateTree:function(e,t,i){o.getConfig(e).then(e=>{this._setCurrentTreeConfig(e,t,i)})},_setCurrentTreeConfig:function(e,t,i){l.updateModifiedNodes(e),l.createTree(i),s.defaultSettingsLabelModification(t),s.restoreDefaultsButtonStateChange(!e.length)},commitConfiguration:function(){var e=s.getValue(),t=s.getFileInformation(e),i=l.getCurrentTreeConfig();o.updateConfig(t.location,t.name,i,a)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(206),i(244),i(2399),i(6804),i(215),i(216),i(350),i(315),i(239),i(308),i(269),i(326),i(691),i(597),i(263),i(6805)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e([a,s],{_SETTING_KEY_LIST:["FoldArgumentsBlocks","InitiallyFoldArgumentsBlocks","FoldComments","InitiallyFoldComments","FoldBlockComments","InitiallyFoldBlockComments","FoldClassCode","InitiallyFoldClassCode","FoldClassEnumerationBlocks","InitiallyFoldClassEnumerationBlocks","FoldClassEventBlocks","InitiallyFoldClassEventBlocks","FoldClassMethodBlocks","InitiallyFoldClassMethodBlocks","FoldClassPropertiesBlocks","InitiallyFoldClassPropertiesBlocks","FoldForAndParforBlocks","InitiallyFoldForAndParforBlocks","FoldFunctionCode","InitiallyFoldFunctionCode","FoldIfElseBlocks","InitiallyFoldIfElseBlocks","FoldSections","InitiallyFoldSections","FoldSpmdBlocks","InitiallyFoldSpmdBlocks","FoldSwitchCaseBlocks","InitiallyFoldSwitchCaseBlocks","FoldTryCatchBlocks","InitiallyFoldTryCatchBlocks","FoldWhileBlocks","InitiallyFoldWhileBlocks"],_PATH_TO_SETTING:["matlab","editor","codefolding"],_ENABLE_CODE_FOLDING:"EnableCodeFolding",_RANGE:d.range().setColumns(1,2).setRows(0,15),_READ_ONLY_RULE:"EnableAndFoldInitiallyReadRules",_READ_WRITE_RULE:"EnableAndFoldInitiallyReadWriteRules",_READ_ONLY_COLUMN_RULE:"FoldInitiallyReadRules",_CHECKBOX_RENDERER:"CheckboxRenderer",_DISABLED_CHECKBOX_RENDERER:"DisabledCheckboxRenderer",_CODE_FOLDING_TABLE:{dataTestId:"CodeFoldingTable",rowHeaderModel:{},features:[p.FEATURE.MultiRowSelection],columnModel:{columnConfig:[{label:o.firstColumnLabel,dataIndex:0,width:{value:50,unit:"%"}},{label:o.secondColumnLabel,dataIndex:1,width:{value:25,unit:"%"}},{label:o.thirdColumnLabel,dataIndex:2,width:{value:25,unit:"%"}}]}},templateString:r,postCreate:function(){this.inherited(arguments),this._buildCodeFoldingPreferencesInEditorPanel(),this._placeCodeFoldingPreferencesInEditorPanel(),this._createTableBasedOnSettings(),this._dataStore},_buildCodeFoldingPreferencesInEditorPanel:function(){this._enableCodeFoldingCheckbox=new g(this._ENABLE_CODE_FOLDING,o.enableCodeFoldingLabel,this.enableCodeFoldingNode),m.getSetting(this._PATH_TO_SETTING,this._ENABLE_CODE_FOLDING).then(function(e){!0!==this._destroyed&&(this._enableCodeFoldingCheckbox.getAssociatedWidget().set("checked",e.value),this._enableCodeFoldingCheckbox.getAssociatedWidget().set("disabled",!1))}.bind(this)),this._foldInfo=this._foldInitInfo=new h({tag:"foldInfoLabel",text:o.foldInstruction}),this._foldInitInfo=new h({tag:"foldInitInfoLabel",text:o.foldInitiallyInstruction})},_createTableBasedOnSettings:function(){n(this._loadSettings()).then(this._createTable.bind(this))},_createTable:function(e){var t=[];t.push([o.argumentsLabel,e[0],e[1]]),t.push([o.commentsLabel,e[2],e[3]]),t.push([o.blockCommentsLabel,e[4],e[5]]),t.push([o.classCodeLabel,e[6],e[7]]),t.push([o.classEnumLabel,e[8],e[9]]),t.push([o.classEventsLabel,e[10],e[11]]),t.push([o.classMethodLabel,e[12],e[13]]),t.push([o.classPropertiesLabel,e[14],e[15]]),t.push([o.forAndParforLabel,e[16],e[17]]),t.push([o.functionCodeLabel,e[18],e[19]]),t.push([o.ifElseLabel,e[20],e[21]]),t.push([o.sectionsLabel,e[22],e[23]]),t.push([o.spdmLabel,e[24],e[25]]),t.push([o.switchCaseLabel,e[26],e[27]]),t.push([o.tryCatchLabel,e[28],e[29]]),t.push([o.whileLabel,e[30],e[31]]),this._dataStore=l.create(t,Object.assign({},{type:c.TABLE}));var i=this._dataStore,n=new p(this._dataStore,this._CODE_FOLDING_TABLE);this.domNode.querySelector(".codeFoldingtable").appendChild(n.domNode),n.startup();var r={isChecked:function(e){return!0===e},getValueForAction:function(e){return{oldValue:e,newValue:!e}}};n.registerRenderer(this._CHECKBOX_RENDERER,new f(r)),n.registerRenderer(this._DISABLED_CHECKBOX_RENDERER,new _(r)),this._createAndSetMetaDataRules(i),n.on("editCompleted",function(e){var t=e.viewRange.rows.start,n=e.viewRange.columns.start,o=d.range().setColumns(2,2).setRows(t,t);1===n&&(e.newValue||i.update(o,[[!1]]),this._createAndSetFoldInitiallyRule(i))}.bind(this))},_createAndSetFoldInitiallyRule:function(e){this._dataStore.getData([this._RANGE]).then(function(t){var i=t[0].map((function(e){return e[1]})),n=[];i.forEach((function(e,t){e||n.push(d.range().setColumns(2,2).setRows(t,t))}));var o=this._createMetaDataRuleForRange(e,n,void 0,this._DISABLED_CHECKBOX_RENDERER);e.addMetaDataRule(this._READ_ONLY_COLUMN_RULE,o)}.bind(this))},_createAndSetMetaDataRules:function(e){var t=this._createMetaDataRuleForRange(e,[this._RANGE],void 0,this._DISABLED_CHECKBOX_RENDERER),i=this._createMetaDataRuleForRange(e,[this._RANGE],this._CHECKBOX_RENDERER,void 0);this._enableCodeFoldingCheckbox.getAssociatedWidget().checked?(e.addMetaDataRule(this._READ_WRITE_RULE,i),this._createAndSetFoldInitiallyRule(e)):e.addMetaDataRule(this._READ_ONLY_RULE,t),this._enableCodeFoldingCheckbox.getAssociatedWidget().on("change",function(n){!1===n.mwEventData.newValue?e.addMetaDataRule(this._READ_ONLY_RULE,t):(e.addMetaDataRule(this._READ_WRITE_RULE,i),this._createAndSetFoldInitiallyRule(e))}.bind(this))},_createMetaDataRuleForRange:function(e,t,i,n){return e.createMetaDataRule({cell:{interactiveRenderer:i,renderer:n}},{type:"rangeList",value:t})},_placeCodeFoldingPreferencesInEditorPanel:function(){this._enableCodeFoldingCheckbox.placeInPanel(),this._foldInfo.placeAt(this.foldInstructionNode),this._foldInitInfo.placeAt(this.foldInitInstructionNode)},startup:function(){this.inherited(arguments),this._enableCodeFoldingCheckbox.getAssociatedWidget().startup(),this._foldInfo.startup(),this._foldInitInfo.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){m.setSetting(this._PATH_TO_SETTING,this._ENABLE_CODE_FOLDING,this._enableCodeFoldingCheckbox.getAssociatedWidget().get("checked")),this._dataStore.getData([this._RANGE]).then(function(e){e[0].forEach(function(e,t){var i=e[1],n=e[2];m.setSetting(this._PATH_TO_SETTING,this._SETTING_KEY_LIST[2*t],i),m.setSetting(this._PATH_TO_SETTING,this._SETTING_KEY_LIST[2*t+1],n)}.bind(this))}.bind(this))},_loadSettings:function(){var e=[];return this._SETTING_KEY_LIST.forEach(function(i){var n=new t;e.push(n.promise),m.getSetting(this._PATH_TO_SETTING,i).then((function(e){n.resolve(e.value)}))}.bind(this)),e}})}),e,t),e.exports=o},function(e,t,i){e.exports={codeFoldingTitle:"コードの折りたたみ",enableCodeFoldingLabel:"コードの折りたたみを有効にする",foldInstruction:"ファイルが閉じられた時に折りたたまれていた構成は、ファイルが再度開かれたときに折りたたまれたままになります。",foldInitiallyInstruction:"最初にファイルを開くと、最初に折りたたむオプションを選択した場合、折りたたまれた状態になります。",argumentsLabel:"引数ブロック",commentsLabel:"コメント",blockCommentsLabel:"ブロック コメント",classCodeLabel:"クラスのコード",classEnumLabel:"クラスの列挙ブロック",classEventsLabel:"クラスのイベント ブロック",classMethodLabel:"クラスのメソッド ブロック",classPropertiesLabel:"クラスのプロパティのブロック",forAndParforLabel:"for と parfor ブロック",functionCodeLabel:"関数のコード",ifElseLabel:"if/else ブロック",sectionsLabel:"セクション",spdmLabel:"1 つのプログラムで複数のデータ (spmd) のブロック",switchCaseLabel:"switch/case ブロック",tryCatchLabel:"try/catch ブロック",whileLabel:"while ブロック",firstColumnLabel:"プログラミングの構成",secondColumnLabel:"有効",thirdColumnLabel:"初期状態で折りたたむ"}},function(e,t,i){e.exports={codeFoldingTitle:"코드 접기",enableCodeFoldingLabel:"코드 접기 사용",foldInstruction:"파일을 닫을 때 접혀 있던 구문은 파일을 다시 열어도 접힌 상태로 남아 있게 됩니다.",foldInitiallyInstruction:"[미리 접기] 옵션을 선택하면 파일을 처음 열 때 구문이 접혀 있게 됩니다.",argumentsLabel:"arguments 블록",commentsLabel:"주석",blockCommentsLabel:"블록 주석",classCodeLabel:"클래스 코드",classEnumLabel:"클래스의 enumeration 블록",classEventsLabel:"클래스의 events 블록",classMethodLabel:"클래스의 method 블록",classPropertiesLabel:"클래스의 properties 블록",forAndParforLabel:"For 및 parfor 블록",functionCodeLabel:"함수 코드",ifElseLabel:"If/else 블록",sectionsLabel:"섹션",spdmLabel:"단일 프로그램, 여러 데이터(spmd) 블록",switchCaseLabel:"Switch/case 블록",tryCatchLabel:"Try/catch 블록",whileLabel:"While 블록",firstColumnLabel:"프로그래밍 구문",secondColumnLabel:"사용",thirdColumnLabel:"미리 접기"}},function(e,t,i){e.exports={codeFoldingTitle:"代码折叠",enableCodeFoldingLabel:"启用代码折叠",foldInstruction:"文件关闭时折叠的构造在文件重新打开时保持折叠状态。",foldInitiallyInstruction:'首次打开文件时,如果选择了其 "初始折叠" 选项,将会折叠构造。',argumentsLabel:"参数块",commentsLabel:"注释",blockCommentsLabel:"块注释",classCodeLabel:"类代码",classEnumLabel:"类枚举块",classEventsLabel:"类事件块",classMethodLabel:"类方法块",classPropertiesLabel:"类属性块",forAndParforLabel:"For 和 parfor 块",functionCodeLabel:"函数代码",ifElseLabel:"If/else 块",sectionsLabel:"节",spdmLabel:"单程序多数据(spmd)块",switchCaseLabel:"Switch/case 块",tryCatchLabel:"Try/catch 块",whileLabel:"While 块",firstColumnLabel:"编程构造",secondColumnLabel:"启用",thirdColumnLabel:"初始折叠"}},function(e,t,i){e.exports={root:{codeFoldingTitle:"Code Folding",enableCodeFoldingLabel:"Enable code folding",foldInstruction:"Constructs that are folded when a file is closed remain folded when the file is reopened.",foldInitiallyInstruction:"The first time a file is opened, a construct is folded if its Fold Initially option is selected.",argumentsLabel:"Arguments blocks",commentsLabel:"Comments",blockCommentsLabel:"Block comments",classCodeLabel:"Class code",classEnumLabel:"Class enumeration blocks",classEventsLabel:"Class events blocks",classMethodLabel:"Class method blocks",classPropertiesLabel:"Class properties blocks",forAndParforLabel:"For and parfor blocks",functionCodeLabel:"Function code",ifElseLabel:"If/else blocks",sectionsLabel:"Sections",spdmLabel:"Single program, multiple data (spmd) blocks",switchCaseLabel:"Switch/case blocks",tryCatchLabel:"Try/catch blocks",whileLabel:"While blocks",firstColumnLabel:"Programming Construct",secondColumnLabel:"Enable",thirdColumnLabel:"Fold Initially"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="codeFoldPref preferencePanelContent">\n <div data-dojo-attach-point="enableCodeFoldingNode"></div>\n <div data-dojo-attach-point="foldInstructionNode"></div>\n <div data-dojo-attach-point="foldInitInstructionNode"></div>\n <div class="codeFoldingtable"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(691)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this.inherited(arguments),this._checkboxDefaultClasses.push("disabledCheckbox")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(216),i(203),i(211),i(2400),i(223),i(206),i(6811),i(6812),i(6813),i(243),i(1207),i(589),i(637),i(251),i(263),i(7178)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return i([e,t],{_TEXT:"ForegroundColor",_BACKGROUND:"BackgroundColor",_KEYWORDS:"KeywordColor",_COMMENTS:"CommentColor",_STRINGS:"StringColor",_UNTERMINATED_STRING_COLOR:"UnterminatedStringColor",_SYSTEM_COMMAND_COLOR:"SystemCommandColor",_VALIDATION_SECTION_COLOR:"ValidationSectionColor",_SYNTAX_ERROR_COLOR:"SyntaxErrorColor",_CMD_WIN_ERROR_COLOR:"ErrorColor",_CMD_WIN_WARNING_COLOR:"WarningColor",_CMD_WIN_HYPERLINK_COLOR:"HyperlinkColor",_COLORS_MATLAB_SETTING_PATH:["matlab","colors"],_COLORS_COMMAND_WINDOW_SETTING_PATH:["matlab","colors","commandwindow"],_COLORS_MATLAB_SETTING_KEY:"matlab.colors.",templateString:s,desktopToolColorsLabel:o.desktopToolColorsLabel,textLabel:o.textLabel,backgroundLabel:o.backgroundLabel,syntaxHighlightColorsLabel:o.syntaxHighlightColorsLabel,keywordsLabel:o.keywordsLabel,stringsLabel:o.stringsLabel,systemCommandsLabel:o.systemCommandsLabel,validationSectionsLabel:o.validationSectionsLabel,commentsLabel:o.commentsLabel,unterminatedStringsLabel:o.unterminatedStringsLabel,syntaxErrorsLabel:o.syntaxErrorsLabel,syntaxHighlightSampleLabel:o.syntaxHighlightSampleLabel,restoreDefaultColorsLabel:o.restoreDefaultColorsLabel,commandWindowColorsLabel:o.commandWindowColorsLabel,errorTextLabel:o.errorTextLabel,warningTextLabel:o.warningTextLabel,hyperlinksLabel:o.hyperlinksLabel,commandWindowSampleLabel:o.commandWindowSampleLabel,postCreate:function(){this.inherited(arguments),this._buildSyntaxHighlightingPanel(),this._placeSyntaxHighlightingPanel(),this._syntaxHighlightPreviewPanel(),this._commandWindowPreviewPanel(),this._getSettingsValue(),this._tabKeyHandler(),this._registerPanelResizeListener()},_registerPanelResizeListener:function(){var e=document.getElementsByClassName("mwDialog");e.length&&this.own(a(e[0],"resize",function(){this._rtc.resize()}.bind(this)))},_tabKeyHandler:function(){var e=this._cmdWinHyperlinkPickerUtility,t=this._restoreDefaultsButton.domNode;e.getNode().onkeydown=function(e){e.shiftKey||e.keyCode!==r.TAB||(t.focus(),e.preventDefault())},t.onkeydown=function(t){t.shiftKey&&t.keyCode===r.TAB&&(e.setFocus(),t.preventDefault())}},_buildSyntaxHighlightingPanel:function(){this._textPickerUtility=new u({tag:"textPreview"}),this._backgroundPickerUtility=new u({tag:"backgroundPreview"}),this._keywordsPickerUtility=new u({tag:"keywordPreview"}),this._stringsPickerUtility=new u({tag:"stringPreview"}),this._systemPickerUtility=new u({tag:"systemPreview"}),this._validationPickerUtility=new u({tag:"validationPreview"}),this._commentsPickerUtility=new u({tag:"commentPreview"}),this._unterminatedPickerUtility=new u({tag:"unterminatedPreview"}),this._syntaxErrorPickerUtility=new u({tag:"syntaxErrorPreview"}),this._cmdWinErrorPickerUtility=new u({tag:"errorPreview"}),this._cmdWinWarningPickerUtility=new u({tag:"warningPreview"}),this._cmdWinHyperlinkPickerUtility=new u({tag:"hyperlinkPreview"}),this.pickers={ForegroundColor:this._textPickerUtility.getColorPicker(),BackgroundColor:this._backgroundPickerUtility.getColorPicker(),KeywordColor:this._keywordsPickerUtility.getColorPicker(),StringColor:this._stringsPickerUtility.getColorPicker(),SystemCommandColor:this._systemPickerUtility.getColorPicker(),ValidationSectionColor:this._validationPickerUtility.getColorPicker(),CommentColor:this._commentsPickerUtility.getColorPicker(),UnterminatedStringColor:this._unterminatedPickerUtility.getColorPicker(),SyntaxErrorColor:this._syntaxErrorPickerUtility.getColorPicker(),ErrorColor:this._cmdWinErrorPickerUtility.getColorPicker(),WarningColor:this._cmdWinWarningPickerUtility.getColorPicker(),HyperlinkColor:this._cmdWinHyperlinkPickerUtility.getColorPicker()},this.labels={ForegroundColor:this.textLabel,BackgroundColor:this.backgroundLabel,KeywordColor:this.keywordsLabel,StringColor:this.stringsLabel,SystemCommandColor:this.systemCommandsLabel,ValidationSectionColor:this.validationSectionsLabel,CommentColor:this.commentsLabel,UnterminatedStringColor:this.unterminatedStringsLabel,SyntaxErrorColor:this.syntaxErrorsLabel,ErrorColor:this.errorTextLabel,WarningColor:this.warningTextLabel,HyperlinkColor:this.hyperlinksLabel},this.defaultValues={ForegroundColor:[0,0,0],BackgroundColor:[255,255,255],KeywordColor:[14,0,255],StringColor:[170,4,249],SystemCommandColor:[178,140,0],ValidationSectionColor:[160,82,45],CommentColor:[2,128,9],UnterminatedStringColor:[196,0,0],SyntaxErrorColor:[255,0,0],ErrorColor:[230,0,0],WarningColor:[255,100,0],HyperlinkColor:[0,0,255]},this._restoreDefaultsButton=new d({text:o.restoreDefaultColorsLabel,tag:"restoreButton"}),this._restoreDefaultsButton.on("click",function(){this.restoreDefaultsFunction()}.bind(this))},restoreDefaultsFunction:function(){var e,t={ForegroundColor:this._textPickerUtility,BackgroundColor:this._backgroundPickerUtility,KeywordColor:this._keywordsPickerUtility,StringColor:this._stringsPickerUtility,SystemCommandColor:this._systemPickerUtility,ValidationSectionColor:this._validationPickerUtility,CommentColor:this._commentsPickerUtility,UnterminatedStringColor:this._unterminatedPickerUtility,SyntaxErrorColor:this._syntaxErrorPickerUtility,ErrorColor:this._cmdWinErrorPickerUtility,WarningColor:this._cmdWinWarningPickerUtility,HyperlinkColor:this._cmdWinHyperlinkPickerUtility};for(e in this.pickers)t[e].loadSettings(this.defaultValues[e])},_getSettingsValue:function(){g.getSetting(this._COLORS_MATLAB_SETTING_PATH,this._TEXT).then(function(e){this._textRGB=e.value,this._textPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_MATLAB_SETTING_PATH,this._BACKGROUND).then(function(e){this._backgroundRGB=e.value,this._backgroundPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_MATLAB_SETTING_PATH,this._KEYWORDS).then(function(e){this._keywordsRGB=e.value,this._keywordsPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_MATLAB_SETTING_PATH,this._STRINGS).then(function(e){this._stringsRGB=e.value,this._stringsPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_MATLAB_SETTING_PATH,this._SYSTEM_COMMAND_COLOR).then(function(e){this._systemCommandsRGB=e.value,this._systemPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_MATLAB_SETTING_PATH,this._VALIDATION_SECTION_COLOR).then(function(e){this._validationSectionRGB=e.value,this._validationPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_MATLAB_SETTING_PATH,this._COMMENTS).then(function(e){this._commentsRGB=e.value,this._commentsPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_MATLAB_SETTING_PATH,this._UNTERMINATED_STRING_COLOR).then(function(e){this._unterminatedStringsRGB=e.value,this._unterminatedPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_MATLAB_SETTING_PATH,this._SYNTAX_ERROR_COLOR).then(function(e){this._syntaxErrorPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_COMMAND_WINDOW_SETTING_PATH,this._CMD_WIN_ERROR_COLOR).then(function(e){this._errorTextRGB=e.value,this._cmdWinErrorPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_COMMAND_WINDOW_SETTING_PATH,this._CMD_WIN_WARNING_COLOR).then(function(e){this._warningTextRGB=e.value,this._cmdWinWarningPickerUtility.loadSettings(e.value)}.bind(this)),g.getSetting(this._COLORS_COMMAND_WINDOW_SETTING_PATH,this._CMD_WIN_HYPERLINK_COLOR).then(function(e){this._hyperlinkRGB=e.value,this._cmdWinHyperlinkPickerUtility.loadSettings(e.value)}.bind(this))},_syntaxHighlightPreviewPanel:function(){var e=h.getBrowserSyncedClipboard(),t={features:[f.CUT_COPY_PASTE],visualFamily:"Colors",clipboard:e,enabled:["language.matlab.syntaxhighlighter.colorcontributor","rtc.settings.service","rtc.settings.colorsservice","codeanalyzer","rtc.settings.ColorsPanelCodeAnalyzerPreferenceProvider","rtc.settings.ColorsPanelSyntaxHighlighterPreferencesProvider","rtc.settings.ColorsPanelSyntaxHighlighterProvider","rtc.settings.ColorsPanelBackgroundForegroundProvider","settings.matlabsynchronizer"],disabled:["rtc.code.enablesyntaxhighlight"],dependencies:{"preferences.pickers":this.pickers,"preferences.labels":this.labels,"preferences.settingKey":this._COLORS_MATLAB_SETTING_KEY},registry:[{id:"rtc.settings.colorsservice",path:"panel-utilities-js/PreviewSettingsServiceProvider"},{id:"rtc.settings.ColorsPanelSyntaxHighlighterProvider",path:"editorpanels-ui/ColorsPanelSyntaxHighlighterProvider"},{id:"rtc.settings.ColorsPanelSyntaxHighlighterPreferencesProvider",path:"editorpanels-ui/ColorsPanelSyntaxHighlighterPreferencesProvider"},{id:"rtc.settings.ColorsPanelCodeAnalyzerPreferenceProvider",path:"editorpanels-ui/ColorsPanelCodeAnalyzerPreferenceProvider"},{id:"rtc.settings.ColorsPanelBackgroundForegroundProvider",path:"editorpanels-ui/ColorsPanelBackgroundForegroundProvider"}]};this._promise=p.createRTC(t).then(function(e){this._rtc=e,this.own(this._rtc),this._rtc.getDocument().setText(l),this._rtc.getDocument().setReadOnly(!0),this._rtc.placeAt(this.syntaxHighlightRTCNode),this._rtc.blur(),this._getSettingsValue()}.bind(this))},_commandWindowPreviewPanel:function(){this._cwPreview=new m(this.pickers),n.place(c,this.commandWindowSampleNode)},_placeSyntaxHighlightingPanel:function(){this._textPickerUtility.placeDropDown(this.textLabel),this._backgroundPickerUtility.placeDropDown(this.backgroundLabel),this._keywordsPickerUtility.placeDropDown(this.keywordsLabel),this._stringsPickerUtility.placeDropDown(this.stringsLabel),this._systemPickerUtility.placeDropDown(this.systemCommandsLabel),this._validationPickerUtility.placeDropDown(this.validationSectionsLabel),this._commentsPickerUtility.placeDropDown(this.commentsLabel),this._unterminatedPickerUtility.placeDropDown(this.unterminatedStringsLabel),this._syntaxErrorPickerUtility.placeDropDown(this.syntaxErrorsLabel),this._cmdWinErrorPickerUtility.placeDropDown(this.errorTextLabel),this._cmdWinWarningPickerUtility.placeDropDown(this.warningTextLabel),this._cmdWinHyperlinkPickerUtility.placeDropDown(this.hyperlinksLabel),this._restoreDefaultsButton.placeAt(this.restoreDefaultColorsLabel)},startup:function(){this.inherited(arguments),this._textPickerUtility.startup(),this._backgroundPickerUtility.startup(),this._keywordsPickerUtility.startup(),this._stringsPickerUtility.startup(),this._systemPickerUtility.startup(),this._validationPickerUtility.startup(),this._commentsPickerUtility.startup(),this._unterminatedPickerUtility.startup(),this._syntaxErrorPickerUtility.startup(),this._cmdWinErrorPickerUtility.startup(),this._cmdWinWarningPickerUtility.startup(),this._cmdWinHyperlinkPickerUtility.startup(),this._restoreDefaultsButton.startup(),this._promise.then(function(){this._rtc.startup()}.bind(this))},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){g.setSetting(this._COLORS_MATLAB_SETTING_PATH,this._TEXT,this._textPickerUtility.getRGB()),g.setSetting(this._COLORS_MATLAB_SETTING_PATH,this._BACKGROUND,this._backgroundPickerUtility.getRGB()),g.setSetting(this._COLORS_MATLAB_SETTING_PATH,this._KEYWORDS,this._keywordsPickerUtility.getRGB()),g.setSetting(this._COLORS_MATLAB_SETTING_PATH,this._STRINGS,this._stringsPickerUtility.getRGB()),g.setSetting(this._COLORS_MATLAB_SETTING_PATH,this._SYSTEM_COMMAND_COLOR,this._systemPickerUtility.getRGB()),g.setSetting(this._COLORS_MATLAB_SETTING_PATH,this._VALIDATION_SECTION_COLOR,this._validationPickerUtility.getRGB()),g.setSetting(this._COLORS_MATLAB_SETTING_PATH,this._COMMENTS,this._commentsPickerUtility.getRGB()),g.setSetting(this._COLORS_MATLAB_SETTING_PATH,this._UNTERMINATED_STRING_COLOR,this._unterminatedPickerUtility.getRGB()),g.setSetting(this._COLORS_MATLAB_SETTING_PATH,this._SYNTAX_ERROR_COLOR,this._syntaxErrorPickerUtility.getRGB()),g.setSetting(this._COLORS_COMMAND_WINDOW_SETTING_PATH,this._CMD_WIN_ERROR_COLOR,this._cmdWinErrorPickerUtility.getRGB()),g.setSetting(this._COLORS_COMMAND_WINDOW_SETTING_PATH,this._CMD_WIN_WARNING_COLOR,this._cmdWinWarningPickerUtility.getRGB()),g.setSetting(this._COLORS_COMMAND_WINDOW_SETTING_PATH,this._CMD_WIN_HYPERLINK_COLOR,this._cmdWinHyperlinkPickerUtility.getRGB())}})}),e,t),e.exports=o},function(e,t,i){e.exports={colorsTitle:"色",desktopToolColorsLabel:"デスクトップ ツールの色",textLabel:"テキスト",backgroundLabel:"背景",syntaxHighlightColorsLabel:"MATLAB 構文の強調色",keywordsLabel:"キーワード",stringsLabel:"文字列",systemCommandsLabel:"システム コマンド",validationSectionsLabel:"検証セクション",commentsLabel:"コメント",unterminatedStringsLabel:"未終了の文字列",syntaxErrorsLabel:"構文エラー",commandWindowColorsLabel:"MATLAB 出力の色",errorTextLabel:"エラー テキスト",warningTextLabel:"警告テキスト",hyperlinksLabel:"コマンド ウィンドウのハイパーリンク",syntaxHighlightSampleLabel:"強調色を使用した構文のサンプル",commandWindowSampleLabel:"コマンド ウィンドウのサンプル",restoreDefaultColorsLabel:"既定の色に戻す"}},function(e,t,i){e.exports={colorsTitle:"색",desktopToolColorsLabel:"데스크탑 툴 색",textLabel:"텍스트",backgroundLabel:"배경",syntaxHighlightColorsLabel:"MATLAB 구문 강조 표시 색",keywordsLabel:"키워드",stringsLabel:"문자열",systemCommandsLabel:"시스템 명령",validationSectionsLabel:"유효성 검사 섹션",commentsLabel:"주석",unterminatedStringsLabel:"종결되지 않은 문자열",syntaxErrorsLabel:"구문 오류",commandWindowColorsLabel:"MATLAB 출력 색",errorTextLabel:"오류 텍스트",warningTextLabel:"경고 텍스트",hyperlinksLabel:"명령 창 내 하이퍼링크",syntaxHighlightSampleLabel:"구문 강조 표시 샘플",commandWindowSampleLabel:"명령 창 샘플",restoreDefaultColorsLabel:"디폴트 색 복원"}},function(e,t,i){e.exports={colorsTitle:"颜色",desktopToolColorsLabel:"桌面工具颜色",textLabel:"文本",backgroundLabel:"背景",syntaxHighlightColorsLabel:"MATLAB 语法高亮颜色",keywordsLabel:"关键字",stringsLabel:"字符串",systemCommandsLabel:"系统命令",validationSectionsLabel:"验证节",commentsLabel:"注释",unterminatedStringsLabel:"未终止的字符串",syntaxErrorsLabel:"语法错误",commandWindowColorsLabel:"MATLAB 输出颜色",errorTextLabel:"错误文本",warningTextLabel:"警告文本",hyperlinksLabel:"命令行窗口中的超链接",syntaxHighlightSampleLabel:"语法高亮示例",commandWindowSampleLabel:"命令行窗口示例",restoreDefaultColorsLabel:"还原默认颜色"}},function(e,t,i){e.exports={root:{colorsTitle:"Colors",desktopToolColorsLabel:"Desktop tool colors",textLabel:"Text",backgroundLabel:"Background",syntaxHighlightColorsLabel:"MATLAB syntax highlighting colors",keywordsLabel:"Keywords",stringsLabel:"Strings",systemCommandsLabel:"System commands",validationSectionsLabel:"Validation sections",commentsLabel:"Comments",unterminatedStringsLabel:"Unterminated strings",syntaxErrorsLabel:"Syntax errors",commandWindowColorsLabel:"MATLAB output colors",errorTextLabel:"Error text",warningTextLabel:"Warning text",hyperlinksLabel:"Hyperlinks in Command Window",syntaxHighlightSampleLabel:"Syntax highlighting sample",commandWindowSampleLabel:"Command Window sample",restoreDefaultColorsLabel:"Restore Default Colors"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="colorsPrefs preferencePanelContent">\n\t<fieldset>\n\t\t<legend>${desktopToolColorsLabel}</legend>\n\t</fieldset>\n\t<fieldset class="syntaxColors desktopColors">\n\t\t<div class="textColors">\n\t\t\t<div class="container">\n\t\t\t\t<div class="content">${textLabel}</div>\n\t\t\t\t<div class="widget" data-dojo-attach-point="textLabel"></div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="backgroundColors">\n\t\t\t<div class="container">\n\t\t\t\t<div class="content">${backgroundLabel}</div>\n\t\t\t\t<div class="widget" data-dojo-attach-point="backgroundLabel"></div>\n\t\t\t</div>\n\t\t</div>\n\t</fieldset>\n\n\t<fieldset>\n\t\t<legend>${syntaxHighlightColorsLabel}</legend>\n\t</fieldset>\n <fieldset class="syntaxColors syntaxHighlightColors">\n <div data-dojo-attach-point="syntaxHighlightNode"></div>\n\t\t<div class="leftAlignedColors">\n\t\t\t<div class="keywordsColors">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="content">${keywordsLabel}</div>\n\t\t\t\t\t<div class="widget" data-dojo-attach-point="keywordsLabel"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="stringsColors">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="content">${stringsLabel}</div>\n\t\t\t\t\t<div class="widget" data-dojo-attach-point="stringsLabel"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="systemCommandsColors">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="content">${systemCommandsLabel}</div>\n\t\t\t\t\t<div class="widget" data-dojo-attach-point="systemCommandsLabel"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="validationSectionsColors">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="content">${validationSectionsLabel}</div>\n\t\t\t\t\t<div class="widget" data-dojo-attach-point="validationSectionsLabel"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="rightAlignedColors">\n\t\t\t<div class="commentsColors">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="content">${commentsLabel}</div>\n\t\t\t\t\t<div class="widget" data-dojo-attach-point="commentsLabel"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="unterminatedStringsColors">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="content">${unterminatedStringsLabel}</div>\n\t\t\t\t\t<div class="widget" data-dojo-attach-point="unterminatedStringsLabel"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="syntaxErrorsColors">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="content">${syntaxErrorsLabel}</div>\n\t\t\t\t\t<div class="widget" data-dojo-attach-point="syntaxErrorsLabel"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n </fieldset>\n\n\t<fieldset>\n\t\t<legend>${commandWindowColorsLabel}</legend>\n\t</fieldset>\n <fieldset class="syntaxColors commandWindowColors">\n <div data-dojo-attach-point="commandWindowColorsNode"></div>\n\t\t<div class="leftAlignedColors">\n\t\t\t<div class="errorTextColors">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="content">${errorTextLabel}</div>\n\t\t\t\t\t<div class="widget" data-dojo-attach-point="errorTextLabel"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="hyperlinksColors">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="content">${hyperlinksLabel}</div>\n\t\t\t\t\t<div class="widget" data-dojo-attach-point="hyperlinksLabel"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="rightAlignedColors">\n\t\t\t<div class="warningTextColors">\n\t\t\t\t<div class="container">\n\t\t\t\t\t<div class="content">${warningTextLabel}</div>\n\t\t\t\t\t<div class="widget" data-dojo-attach-point="warningTextLabel"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n </fieldset>\n\n <fieldset class="samples">\n <div class="syntaxHighlightSample">\n <legend>${syntaxHighlightSampleLabel}</legend>\n <div class="syntax" data-dojo-attach-point="syntaxHighlightRTCNode" id="syntax"></div>\n </div>\n <div class="commandWindowSample">\n <legend>${commandWindowSampleLabel}</legend>\n <div class="syntax" data-dojo-attach-point="commandWindowSampleNode" id="cwSample"></div>\n </div>\n </fieldset>\n <div class="restore" data-dojo-attach-point="restoreDefaultColorsLabel"></div>\n</div>\n'},function(e,t){e.exports="% create a file for output\n!touch testFile.txt\nfid = fopen('testFile.txt', 'w');\nfor i=1:10\n fprintf(fid,'%6.2f \\n, i);\nend"},function(e,t){e.exports='<div class="cwSample rootNode rootNodeFixedSize">\n <div class="lineNode mwRichTextComponentLine plainTextFixedSize">\n <span class="promptNode">&gt;&gt; </span>\n <span class="textBox">\n <span class="textWrapper">samplefunction</span>\n </span>\n </div>\n\n <div class="paragraphNode" style="text-align: left;">\n <span class="textBox">\n <span class="textWrapper">Link to sample:</span>\n </span>\n <a class="hyperlinkNode" target="_blank" rel="noreferrer noopener">\n <span class="textBox">\n <span class="textWrapper">link</span>\n </span>\n </a>\n </div>\n\n <div class="lineNode mwRichTextComponentLine plainTextFixedSize warningMessage">\n <span class="textBox">\n <span class="textWrapper">Warning: Min value set to 0</span>\n </span>\n </div>\n <div class="lineNode mwRichTextComponentLine plainTextFixedSize warningMessage"><span\n class="textBox"><span class="textWrapper">&gt;\n In </span>\n <a class="hyperlinkNode" target="_blank" rel="noreferrer noopener">\n <span class="textBox">\n <span class="textWrapper">samplefunction at 4</span>\n </span>\n </a>\n </span>\n </div>\n\n <div class="paragraphNode" style="text-align: left;">\n <span class="textBox">\n <span class="textWrapper errorMessage">Error using </span>\n </span>\n <a class="hyperlinkNode" target="_blank" rel="noreferrer noopener">\n <span class="textBox">\n <span class="textWrapper">samplefunction</span>\n </span>\n </a>\n </div>\n <div class="lineNode mwRichTextComponentLine plainTextFixedSize">\n <span class="textBox errorMessage">\n <span class="textWrapper errorMessage">Invalid type</span>\n </span>\n </div>\n <div class="lineNode mwRichTextComponentLine plainTextFixedSize">\n <span class="textBox">\n <span class="textWrapper">&gt;&gt;</span>\n </span>\n </div>\n</div>'},function(e,t){e.exports='<span class="dijit dijitReset dijitInline"\n\t><span class=\'dijitReset dijitInline dijitButtonNode\'\n\t\tdata-dojo-attach-event="ondijitclick:__onClick" data-dojo-attach-point="_buttonNode"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdata-dojo-attach-point="focusNode,titleNode,_arrowWrapperNode,_popupStateNode"\n\t\t\trole="button" aria-haspopup="true" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon"\n\t\t\t\tdata-dojo-attach-point="iconNode"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tdata-dojo-attach-point="containerNode"\n\t\t\t\tid="${id}_label"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonInner"></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdata-dojo-attach-event="onclick:_onClick" data-dojo-attach-point="valueNode" aria-hidden="true"\n/></span>\n'},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(386),i(216),i(230),i(6816),i(7168),i(2431),i(454),i(229),i(993),i(1572)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([r,n,o],{templateString:"<div class='MultiViewRTC'><div class='rtcPlaceholder' data-dojo-attach-point=\"rtcPlaceholder\"></div></div>",constructor:function(e){var n=null,o=null,r=null,p={},f=function(e){(e=e||{}).id||(e.id="id"+d.generateUuid()),p=t.mixin({},e),e.id+="mrtc",p.pluginRegistryManager=e.registry||new u,p.dependencies=p.dependencies||{},p.features=p.features||{},p.disabledPlugins=p.features.disabled||[],p.enabledPlugins=p.features.enabled||[],p.enabledPlugins=m(),p.rtcStatesTransferManager=new h(e.states)};this._postCreate=function(){this._setupLanguage(),r=new a(p,this.rtcPlaceholder,this),o=new s(p),n=r.initialize(o),window.isTestingEnvironment,this._forTestingOnly=n,this._forTestingOnlyCore=o,g()},this._setupLanguage=function(){if(p.dependencies["rtc.internal.language"])return;const e=p.language||c.DEFAULT_SUPPORTED_LANGUAGES.MATLAB,t=p.dependencies["rtc.filepath"],i=new l;i.isLanguageSupportedLanguage(e)&&i.setLanguage(e),t?i.setFileNameToMatch(t):i.setTargetLanguage(e),p.dependencies["rtc.internal.language"]=i},this.startup=function(){r.startup()},this.setCursorToEnd=function(){n.setCursorToEnd()},this.getActionDataService=function(){return o.getActionDataService()},this.getCursor=function(){return n.getCursor()},this.getDocument=function(){return n.getDocument()},this.getView=function(){return n.getView()},this.isEditable=function(){return n.isEditable()},this.getUndoRedoStates=function(){return n.getUndoRedoStates()},this.undoRedoStackUpdated=function(e){},this.undo=function(){n.undo()},this.redo=function(){n.redo()},this.addDocumentChangeListener=function(e){n.addDocumentChangeListener(e)},this.getId=function(){return n.getId()},this.getMatlabCellModeText=function(){return n.getMatlabCellModeText()},this.focus=function(){r.focus()},this.blur=function(){r.blur()},this.resize=function(){r.resize()},this.setCursorInView=function(e,t,i){n.setCursorInView(e,t,i)},this.documentChanged=function(e){},this.hasSelection=function(){return n.hasSelection()},this.getText=function(){return n.getText()},this.setActive=function(){n.setActive()},this.onCursorChanged=function(){},this.onLateFeaturesAdded=function(){},this.resetEditor=function(e,t){n.resetEditor(e,t)},this.selectAll=function(){n.selectAll()},this.getFeatureInterface=function(){return n.getFeatureInterface()},this.serialize=function(){return p.rtcStatesTransferManager.serialize(o,r)};var g=function(){this.own(i.after(n,"undoRedoStackUpdated",function(e){this.undoRedoStackUpdated(e)}.bind(this),!0)),this.own(i.after(n,"documentChanged",function(e){this.documentChanged(e)}.bind(this),!0)),this.own(i.after(n,"onCursorChanged",function(){this.onCursorChanged()}.bind(this),!0)),this.own(i.after(n,"onLateFeaturesAdded",function(){this.onLateFeaturesAdded()}.bind(this),!0))}.bind(this),m=function(){var e=p.enabledPlugins,t=p.disabledPlugins;return e.push("rtc.margin"),e.push("rtc.eventhandler"),e.push("rtc.serializers"),e.push("rtc.actionservice.synchronizer"),e.push("rtc.actionservice"),t.indexOf("document")<0&&e.push("document"),t.indexOf("cursor")<0&&e.push("cursor"),t.indexOf("view")<0&&e.push("view"),t.indexOf("rtc.clipboard")<0&&e.push("rtc.clipboard"),t.indexOf("rtc.divcaret")<0&&e.push("rtc.divcaret"),t.indexOf("rtc.undoredo.action")<0&&e.push("rtc.undoredo.action"),t.indexOf("rtc.undoredo.cursor")<0&&e.push("rtc.undoredo.cursor"),t.indexOf("rtc.tooltip")<0&&e.push("rtc.tooltip"),t.indexOf("rtc.imeinput")<0&&e.push("rtc.imeinput"),t.indexOf("rtc.divselection")<0&&e.push("rtc.divselection"),t.indexOf("rtc.plaintextmimeconverter")<0&&e.push("rtc.plaintextmimeconverter"),t.indexOf("rtc.plaintextmimeincodeconverter")<0&&e.push("rtc.plaintextmimeincodeconverter"),t.indexOf("rtc.unicodestringmimeconverter")<0&&e.push("rtc.unicodestringmimeconverter"),t.indexOf("rtc.plaintextmimegeneratorprovider")<0&&e.push("rtc.plaintextmimegeneratorprovider"),t.indexOf("rtc.plugins.cursorgripper")<0&&e.push("rtc.plugins.cursorgripper"),t.indexOf("rtc.plugins.device.ios.virtualkeyboardshortcutbar")<0&&e.push("rtc.plugins.device.ios.virtualkeyboardshortcutbar"),e}.bind(this);this._destroy=function(){o.destroy(),p.pluginRegistryManager.destroy()},f.apply(this,arguments)},postCreate:function(){this._postCreate()},destroy:function(){this.inherited(arguments),this._destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(230),i(276),i(464),i(1572),i(6819),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(n,{constructor:function(e,t,i){this._args=e,this._rtcDomNode=t,this._rtc=i,this._multiViewBorderContainer=null,this._rtcCenterNode=null,this._args.features.fixedSize?(this._rtcCenterNode=this._setupBorderContainer(this._rtcDomNode),this._args.dependencies["rtc.domnode.external"]=this._rtcDomNode):(this._rtcCenterNode=this._rtcDomNode,this._args.dependencies["rtc.domnode.external"]=this._rtcDomNode.parentElement),this._args.containerNode=this._rtcCenterNode,this._args.dependencies["rtc.viewmanager"]=this,this._args.dependencies["rtc.bordercontainer.external"]=this._multiViewBorderContainer,this._primaryRTCView=null,this._secondaryRtcView=null},initialize:function(e){return this._rtcCore?null:(this._rtcCore=e,this._args.rtcCore=this._rtcCore,this._args.dependencies["rtc.isprimaryview"]=!0,this._args.rtcStatesTransferHandler=this._args.rtcStatesTransferManager.getHandlerForView("primary"),this._primaryRTCView=new s(this._args,this._rtcCenterNode),this._currentViewWrapper=this._rtcCore.getCorePluginResolver().getDependency("rtc.view.current"),this._primaryRTCView)},startup:function(){this._started||(this._started=!0,this._multiViewBorderContainer&&this._multiViewBorderContainer.resize(),this._primaryRTCView.startup(),this._args.rtcStatesTransferHandler&&this._args.rtcStatesTransferHandler.destroy(),this._args.rtcStatesTransferManager.notifyRtcStarted(),this._args.rtcStatesTransferManager.destroy(),this.onStarted())},onStarted:function(){},resize:function(){this._multiViewBorderContainer?this._multiViewBorderContainer.resize():this._primaryRTCView.resize(),this.onResize()},onResize:function(){},focus:function(){var e=this._currentViewWrapper.getCurrentInstance();e&&e.getRTCView().focus()},blur:function(){var e=this._currentViewWrapper.getCurrentInstance();e&&e.getRTCView().blur()},getExternalBorderContainer:function(){return this._multiViewBorderContainer},createSecondaryView:function(e){var i=t.mixin({},this._args);i.id=i.id+"_split_"+l.generateUuid(),i.containerNode=e,i.dependencies["rtc.isprimaryview"]=!1;const n=this._args.rtcStatesTransferManager.getHandlerForView("secondary");i.rtcStatesTransferHandler=n,this._secondaryRtcView=new s(i,e,this._rtcCore),this._secondaryRtcView.startup(),this._secondaryRtcView.blur(),n&&n.destroy(),window.isTestingEnvironment&&(this._rtc._forTestingOnlySecondaryView=this._secondaryRtcView)},destroySecondaryView:function(){null!==this._secondaryRtcView&&(this._secondaryRtcView.destroy(),this._secondaryRtcView=null,this._rtc._forTestingOnlySecondaryView=null)},_setupBorderContainer:function(e){this._multiViewBorderContainer=new r({id:this._getCssQualifiedId(this._args.id)+"_borderContainer"},e),this._multiViewBorderContainer.startup();var t=new o({}),n=i.create("div");return i.place(n,t.domNode,"last"),this._multiViewBorderContainer.addWithProperties(t,{region:"center"}),n},_getCssQualifiedId:function(e){return e=e.replace(/[^a-zA-Z0-9-_:.]/g,""),/^[a-zA-Z]/.test(e)?e:"id"+e},serialize:function(e,t){var i={};return this._primaryRTCView&&(i.primary=this._primaryRTCView.serialize(e,t)),this._secondaryRtcView&&(i.secondary=this._secondaryRtcView.serialize(e,t)),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(274),i(573)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,t){this._restoreQueues=e,this._nodeDescription=t||[]},whenPrimaryViewReady:function(e){this._restoreQueues.primaryViewReady.push(e)},whenAllViewsReady:function(e){this._restoreQueues.allViewsReady.push(e)},configureDocument:function(e){this._internalDocument=e;const i=[];let n=0;t.forAllDescendants([e.root],e=>{i[n++]=e});for(let e=0,t=this._nodeDescription.length;e<t;e++){const t=this._nodeDescription[e];t>=0&&(this._nodeDescription[e]=i[t])}},loadFromStates:function(e,t,i,n){i&&i.forEach(i=>{e.hasOwnProperty(i)&&(t[i]=e[i])}),n&&n.forEach(i=>{if(e.hasOwnProperty(i)){const n=e[i];t[i]=Array.isArray(n)?this.getNodes(n):this.getNode(n)}})},getNodes:function(e){return e.map(this.getNode,this)},getNode:function(e){if(!this._internalDocument)throw new Error("Document not configured yet!");let t=this._nodeDescription[e];if(t instanceof i)return t;let n=this._internalDocument._deserializeNode(t);return this._nodeDescription[e]=n,t.children&&(n.children=t.children.map(e=>{const t=this.getNode(e);return t.parent=n,t})),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(274)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){this._nodeDescriptionCache={},this._documentNodeMap=this._createDocumentNodeMap(e.root),this._nodeDescription=[],this._count=0},_createDocumentNodeMap:function(e){const i={};let n=0;return t.forAllDescendants([e],e=>{i[e.uid]=n++}),i},getNodeDescription:function(){return this._nodeDescription},writeIntoStates:function(e,t,i,n){return i&&i.forEach(i=>{const n=t[i];null!=n&&(e[i]=t[i])}),n&&n.forEach(i=>{const n=t[i];n&&(e[i]=Array.isArray(n)?this.serializeNodes(n):this.serializeNode(n))}),e},serializeNodes:function(e){return e.map(this.serializeNode,this)},serializeNode:function(e){const t=e.uid;if(this._nodeDescriptionCache.hasOwnProperty(t))return this._nodeDescriptionCache[t];let i;if(this._documentNodeMap.hasOwnProperty(t)){const e=this._documentNodeMap[t];i=this._addNode(t,e)}else{const n=e.serialize(!0);i=this._addNode(t,n),e.children&&(n.children=this.serializeNodes(e.children))}return i},_addNode:function(e,t){this._nodeDescription.push(t);const i=this._count++;return this._nodeDescriptionCache[e]=i,i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(211),i(213),i(228),i(221),i(276),i(386),i(216),i(255),i(6820),i(6821),i(368),i(1341),i(7167),i(1573),i(464),i(335),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return e([l,c,d,v],{templateString:u,widgetsInTemplate:!0,baseClass:"rtePane mwRichTextComponent",visualFamily:"default",constructor:function(e){e=e||{},this._dependencies=e.dependencies,this._pluginRegistryManager=e.pluginRegistryManager,this._rtcCore=e.rtcCore||{},this._rtcViewId=b.generateUuid(),this._dependencies["rtc.view.id"]=this._rtcViewId,this._dependencies["rtc.rtcview"]=this,this.clipboard=e.clipboard,this.features=e.features||{},this._enabledPlugins=e.enabledPlugins,this._disabledPlugins=e.disabledPlugins,this.started=!1,this._syncTimer=null,this._rtcStatesTransferHandler=e.rtcStatesTransferHandler},postCreate:function(){this.scrollPane=n.create("div",{class:"scrollPane mwRichTextComponentDocument dijitInline mwDoNotApplyCustomScrollbarCSS",tabindex:0}),r.set(this.scrollPane,"data-testid","rtc_scrollPane"),this.features.fixedSize&&(this.borderContainer=new _({},this.rteWindow),this._initializeBorderContainer()),this._loadPlugins(),this.own(i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"documentChanged"),!0)),this.features.fixedSize&&(this.view.paddingLeft=4),this.own(i.after(this.cursor,"onChange",t.hitch(this,"onCursorChanged"))),this.own(i.after(this._pluginResolver,"onLateFeaturesAdded",t.hitch(this,"onLateFeaturesAdded"),!0)),this.own(i.after(this._undoRedoController,"onUndoRedoStackUpdated",t.hitch(this,"undoRedoStackUpdated"),!0)),this.keyHandler=this._pluginResolver.getDependency("rtc.keyhandler"),f.addLabelsForActionService(this.getActionDataService()),this._focusService=this._pluginResolver.getDependency("rtc.focusservice"),this._pluginResolver.getDependency("rtc.viewready").onViewReady(),a("ff")&&this._focusService.setFocus(),this.features.fixedSize||(this.scrollPane.style.paddingRight="2px",this.scrollPane.style.overflow="visible")},startup:function(){this.started||(this.started=!0,this.borderContainer?this._finalizeBorderContainerSetup():n.place(this.scrollPane,this.rteWindow),this.view.initialize(),this.cursor.initialize())},_initializeBorderContainer:function(){this.borderContainer.design="sidebar";this._scrollPaneContentPane=this._scrollPaneContentPane||this._createContentPaneWrapper(this.scrollPane,"overflow: hidden");this.borderContainer.addWithProperties(this._scrollPaneContentPane,{isResizable:!0,isProportional:!0,region:"center"})},_finalizeBorderContainerSetup:function(){this.own(i.after(this.borderContainer,"layout",t.hitch(this.view,"onResize"))),this._enabledPlugins.indexOf("margin.linenumber")>=0?(this.addLeftMargin(),this._featureInterface.onEnableLineGutter(),this.borderContainer.startup()):(this.borderContainer.startup(),this.borderContainer.resize())},destroy:function(){this._featureInterface.onClose(),this._syncTimer&&clearTimeout(this._syncTimer),this._pluginResolver.destroy(),this.borderContainer&&this.borderContainer.destroyRecursive(),this.inherited(arguments)},_onClose:function(){},showEditor:function(){o.set(this.scrollPane,"left","auto")},hideEditor:function(){o.set(this.scrollPane,"left","-10000px")},_createContentPaneWrapper:function(e,t){var i=new s({style:t});return i.domNode.appendChild(e),i},addLeftMargin:function(){if(this.borderContainer){if(this._gutterContentPane)return;var e="overflow: hidden; width: "+this.marginProvider.getWidth()+"px";this._gutterContentPane=this._gutterContentPane||this._createContentPaneWrapper(this.marginProvider.marginContainer,e);this.borderContainer.addWithProperties(this._gutterContentPane,{isProportional:!0,region:"left",layoutOrder:1})}},hideCursor:function(){this.cursor.hide()},showCursor:function(){this.cursor.show()},setCursorToEnd:function(){this.cursor.movePosition(this.cursor.END)},getActionDataService:function(){return this._pluginResolver.getDependency("rtc.actionservice")},getCursor:function(){return this.cursor},getDocument:function(){return this.document},getView:function(){return this.view},isEditable:function(){return!this._internalDocument.isReadOnly()},getUndoRedoStates:function(){return{isUndoable:this._undoRedoController.canUndo(),isRedoable:this._undoRedoController.canRedo()}},undoRedoStackUpdated:function(e){},undo:function(){this._undoRedoController.undo()},redo:function(){this._undoRedoController.redo()},addDocumentChangeListener:function(e){this.own(i.after(this._internalDocument,"onDocumentChanged",e,!0))},getId:function(){return this.id},getMatlabCellModeText:function(){return""},focus:function(){this._focusService.setFocus()},blur:function(){this._focusService.setBlur()},resize:function(){this.borderContainer&&(this._updateDimensionsOfBorderContainer(),this.borderContainer.resize()),this.view.onResize()},_updateDimensionsOfBorderContainer:function(){var e=this.marginProvider?this.marginProvider.getWidth():0;this.borderContainer.setFreeDimension("left",e)},setCursorInView:function(e,t,i){!e.rteNode&&e.parentNode.rteNode&&(e=e.parentNode),i?this.cursor.fixAnchor():this.cursor.releaseAnchor(),this.cursor.setPosition(this._internalDocument.textNode(e.rteNode,t),t,!1)},documentChanged:function(e){},hasSelection:function(){return this.cursor.hasSelection()},getText:function(){return this.document.getText()},setActive:function(){this._featureInterface.onActivated()},_onActivated:function(){},onCursorChanged:function(){if(this.cursor.isHidden())return!1;this.keyHandler.prepareKeyCapture(this.cursor.hasSelection())},onLateFeaturesAdded:function(){},resetEditor:function(e,t){var i=t&&t.readOnly,n=t&&t.silentUpdate,o=t?t.cursorOffset:null;t&&t.preserveUndoStack||this._undoRedoController.clear(),this.cursor.hide(),this._internalDocument.newDocument(i),e?!1===n?(this._internalDocument.openTextDocument("",i),this.cursor.movePosition(this.cursor.START),this.document.insertTextAtCurrentPosition(e)):this._internalDocument.openTextDocument(e,i):this._internalDocument.newDocument(i),null!==e&&o?this.cursor.setPosition(o):this.cursor.movePosition(this.cursor.START),this.cursor.show(),this._enabledPlugins.indexOf("margin.linenumber")>0&&this.marginProvider.update()},selectAll:function(){this.cursor.selectAll()},getFeatureInterface:function(){return this._featureInterface||(this._featureInterface={onClose:t.hitch(this,"_onClose"),onActivated:t.hitch(this,"_onActivated"),resize:t.hitch(this,"resize"),onEnableLineGutter:function(){}}),this._featureInterface},_loadPlugins:function(){var e=this._getDefaultDependencies();this._pluginResolver=new h(this._pluginRegistryManager,this._enabledPlugins,this._disabledPlugins,e,this._dependencies,this._rtcViewId,this._rtcCore.getCorePluginResolver(),this._rtcStatesTransferHandler),this._loadFeatures()},_getDefaultDependencies:function(){var e={"rtc.bordercontainer":this.borderContainer,"rtc.domnode":this.domNode,"rtc.fixedsize":this.features.fixedSize,"rtc.fileendselectable":this.features.fileEndSelectable,"rtc.scrollpane":this.scrollPane,"rtc.scrollpanecontentpane":this._scrollPaneContentPane,"rtc.featureinterface":this.getFeatureInterface()};return this.clipboard&&(e["rtc.clipboard"]=this.clipboard),e},_loadFeatures:function(){this._pluginResolver.resolve(),this.marginProvider=this._pluginResolver.getDependency("rtc.margin"),this.own(i.after(this.marginProvider,"onResize",t.hitch(this,"_handleMarginResize"))),this._internalDocument=this._pluginResolver.getDependency("rtc.internaldocument"),this.document=this._pluginResolver.getDependency("rtc.document"),this.cursor=this._pluginResolver.getDependency("rtc.cursor"),this.view=this._pluginResolver.getDependency("rtc.view"),this._undoRedoController=this._pluginResolver.getDependency("rtc.undoredo.controller")},_handleMarginResize:function(){this.borderContainer&&this._updateDimensionsOfBorderContainer(),this.view.onLayoutChange()},serialize:function(e,t){var i=m.getPluginIdToInstanceMap(this._pluginResolver);return m.serializePlugins(e,i,t)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="rtePane"><div class="rteWindow" data-dojo-attach-point="rteWindow"></div></div>\n'},function(e,t,i){var n,o;n=[i(203),i(208),i(1208),i(7165)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i,n,o,r,a,s,l){this._viewId=a,this._corePluginResolver=s,this._rtcStatesTransferHandler=l,this.inherited(arguments,[e,i,n,o,r]),this._corePluginResolver&&(this._resolveListener=t.after(this,"resolve",function(){this._handleResolve()}.bind(this)))},_handleResolve:function(){this._resolveListener.remove(),this._resolveListener=null,this.own(t.after(this._corePluginResolver,"onViewPluginRequired",this._populateCorePluginWrapper.bind(this),!0)),this._populateCorePluginWrappers()},_populateCorePluginWrappers:function(){this._corePluginResolver.getAllViewPluginsRequired().forEach(this._populateCorePluginWrapper,this)},_populateCorePluginWrapper:function(e){var t=this.getDependency(e);this._corePluginResolver.getDependency(e).addPlugin(t,this._viewId)},getRegistryBasedDependencyInjector:function(e){return new n(e,this._rtcStatesTransferHandler,this._corePluginResolver)},destroy:function(){if(this._resolveListener&&(this._resolveListener.remove(),this._resolveListener=null),this._corePluginResolver){var e=this._corePluginResolver.getAllViewPluginsRequired();e.forEach((function(e){this._corePluginResolver.getDependency(e).removePlugin(this._viewId)}),this)}this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1574),i(1575)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._passThroughInjectors=[],e&&this.addInjector(e),this._cachedDependancies=new i,this._passThroughInjectors.push(this._cachedDependancies)},addInjector:function(e){this._verifyInstanceOfInjector(e),this._passThroughInjectors.push(e)},injectDependency:function(e,t){this._cachedDependancies.injectDependency(e,t)},_verifyInstanceOfInjector:function(e){if(!e instanceof n)throw new Error("Attempted to add a DependencyInjector that is not an instance of MW.rtc.core/_dependencyinjector.DependencyInjector")},getDependency:function(e){return this._getCachedDependency(e)},_getCachedDependency:function(e){for(var t=0;t<this._passThroughInjectors.length;t++){var i=this._passThroughInjectors[t].getDependency(e);if(void 0!==i)return i}},destroy:function(){this._cachedDependancies.destroy(),this._cachedDependancies=null,this._passThroughInjectors=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6824)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice.external","rtc.actionservice.synchronizer","rtc.view.id"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i){this._externalActionDataService=e,this._actionDataServiceSynchronizer=t,this._viewId=i,this._callingMethods={},this._methodsCalled={},t.addActionDataService(this,i)},loadActions:function(e){return this._methodsCalled.loadActions||e.forEach((function(e){e.isLocal=!0})),this._forwardCallingMethod("loadActions",arguments)},addAction:function(e){return this._methodsCalled.addAction||(e.isLocal=!0),this._forwardCallingMethod("addAction",arguments)},getAction:function(){return this._forwardCallingMethod("getAction",arguments)},getAllActions:function(){return this._forwardCallingMethod("getAllActions",arguments)},removeAction:function(){return this._forwardCallingMethod("removeAction",arguments)},enableAction:function(){return this._forwardCallingMethod("enableAction",arguments)},disableAction:function(){return this._forwardCallingMethod("disableAction",arguments)},updateAction:function(){return this._forwardCallingMethod("updateAction",arguments)},actionHasProperty:function(){return this._forwardCallingMethod("actionHasProperty",arguments)},executeAction:function(){return this._forwardCallingMethod("executeAction",arguments)},addActionCallback:function(){return this._forwardCallingMethod("addActionCallback",arguments)},removeActionCallback:function(){return this._forwardCallingMethod("removeActionCallback",arguments)},addActionChangeCallback:function(){return this._forwardCallingMethod("addActionChangeCallback",arguments)},removeActionChangeCallback:function(){return this._forwardCallingMethod("removeActionChangeCallback",arguments)},onActionChange:function(e){},onActionAdd:function(e){},_actionById:function(e){return this._forwardCallingMethod("_actionById",arguments)},isForwardingCallingMethod:function(){return Object.keys(this._callingMethods).length>0},_forwardCallingMethod:function(e,t){if(!this._methodsCalled[e]){this._callingMethods[e]=!0;var i=this._actionDataServiceSynchronizer.invokeActionDataServiceMethod(this._viewId,e,t);return delete this._callingMethods[e],i}},forwardMethodCalled:function(e,t){this._callingMethods[e]||(this._methodsCalled[e]=!0,this[e].apply(this,t),delete this._methodsCalled[e])},destroy:function(){this._actionDataServiceSynchronizer.getActionDataService(this._viewId)!==this._externalActionDataService&&this._forwardCallingMethod("destroy",arguments),this._actionDataServiceSynchronizer.removeActionDataService(this,this._viewId)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6826),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.actionservice.external","rtc.viewselector","rtc.actionservice.external.filter","rtc.actionservice.external.converter","rtc.actionservice.external.destroynotifier"]}},createInstance:function(e,i,n,o,r){return new t(e,i,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(368),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_EQN_EDITOR_ACTIVE:"rtc.equationeditor-active",_ACTIONS_TO_REMOVE:["rtc.equationeditor-active","equationeditor.","figure_","rtc_copy_output","rtc_copy_all_output","rtc_clear_output","rtc_clear_all_output"],constructor:function(e,t,i,n,r){this._externalActionDataService=e,this._viewSelector=t,this._actionFilter=i,this._actionConverter=n,this._initialized=!1,this._currentLocalActionDataService=null,this._currentLocalActionDataServiceWrapper=null,this._isLocalActionSyncingToExternal=!1,this._viewIdMap={},this._externalUpdatesCache={},this._externalActionChangedListener=null,this._syncedLocalActionHandles=[],this._eventForwardingListeners=[],this._localActionDataServiceActionAddedListeners={},this._EXTERNAL_EQN_EDITOR_ACTIVE=this._actionConverter.getExternalActionIdFromActionId(this._EQN_EDITOR_ACTIVE),this.own(o.after(t,"onCurrentViewChange",this._handleViewChanged.bind(this))),this.own(o.after(r,"onDestroyed",this._handleDestroyed.bind(this)))},_handleDestroyed:function(){this._externalActionDataServiceDestroyed=!0},addActionDataService:function(e,t){if(!this._externalActionDataServiceDestroyed&&!this._viewIdMap.hasOwnProperty(t)){if(!this._initialized)return this._addExternalActionChangedListener(),this._currentLocalActionDataService=this._externalActionDataService,this._currentLocalActionDataServiceWrapper=e,this._addEventForwardingListeners(t,this._externalActionDataService),this._mapViewIdToActionDataService(t,this._externalActionDataService,e),void(this._initialized=!0);var n=this._getViewIdOfExternalActionDataService();n&&this._replaceWithLocalActionDataService(n);var o=new i;this._mapViewIdToActionDataService(t,o,e),this._handleLocalActionDataServiceAdded(o,t)}},removeActionDataService:function(e,t){if(!this._externalActionDataServiceDestroyed&&this._viewIdMap.hasOwnProperty(t)){var i=this.getActionDataService(t);this._localActionDataServiceActionAddedListeners[t]&&this._handleLocalActionDataServiceRemoved(i,t),delete this._viewIdMap[t];var n=this._getNumberOfActionDataServices();if(1===n){var o=Object.keys(this._viewIdMap)[0];this._replaceWithExternalActionDataService(o)}else 0===n&&(this._removeExternalActionChangedListener(),this._removeEventForwardingListeners(),this._currentLocalActionDataService=null,this._currentLocalActionDataServiceWrapper=null,this._initialized=!1)}},invokeActionDataServiceMethod:function(e,t,i){if(!this._externalActionDataServiceDestroyed&&this._viewIdMap.hasOwnProperty(e)){var n=this.getActionDataService(e);return n[t].apply(n,i)}},_replaceWithLocalActionDataService:function(e){var t=this._getActionDataServiceWrapper(e),n=new i;this._mapViewIdToActionDataService(e,n,t),this._removeEventForwardingListeners(),this._externalActionDataService.getAllActions().forEach((function(e){e.isLocal&&n.addAction(e)}),this),this._currentLocalActionDataService=n,this._currentLocalActionDataServiceWrapper=t,this._handleLocalActionDataServiceAdded(n,e),this._synchronizeActionDataService(null,n)},_replaceWithExternalActionDataService:function(e){var t=this.getActionDataService(e),i=this._getActionDataServiceWrapper(e);this._handleLocalActionDataServiceRemoved(t,e),t.destroy(),this._mapViewIdToActionDataService(e,this._externalActionDataService,i)},_getNumberOfActionDataServices:function(){return Object.keys(this._viewIdMap).length},_getViewIdOfExternalActionDataService:function(){var e=null;return Object.keys(this._viewIdMap).some((function(t){this._viewIdMap[t].actionDataService===this._externalActionDataService&&(e=t)}),this),e},_mapViewIdToActionDataService:function(e,t,i){this._viewIdMap[e]={actionDataServiceWrapper:i,actionDataService:t}},_forEachLocalActionDataService:function(e){Object.keys(this._viewIdMap).forEach((function(t){var i=this.getActionDataService(t);i!==this._externalActionDataService&&e(i)}),this)},getActionDataService:function(e){var t=this._viewIdMap[e];return t?t.actionDataService:null},_getActionDataServiceWrapper:function(e){var t=this._viewIdMap[e];return t?t.actionDataServiceWrapper:null},_handleLocalActionDataServiceAdded:function(e,t){this._syncExistingExternalUpdates(e),this._addLocalActionAddedListener(e,t)},_handleLocalActionDataServiceRemoved:function(e,t){this._localActionDataServiceActionAddedListeners[t].remove(),delete this._localActionDataServiceActionAddedListeners[t],this._currentLocalActionDataService===e&&(this._removeSyncedLocalActionListeners(),this._currentLocalActionDataService=null,this._currentLocalActionDataServiceWrapper=null)},_syncExistingExternalUpdates:function(e){Object.keys(this._externalUpdatesCache).forEach((function(t){e.getAction(t)&&e.updateAction(t,this._externalUpdatesCache[t])}),this)},_addLocalActionAddedListener:function(e,t){this._localActionDataServiceActionAddedListeners[t]=o.after(e,"onActionAdd",function(t){var i=t.id;this._externalUpdatesCache[i]&&e.updateAction(i,this._externalUpdatesCache[i])}.bind(this),!0)},_addExternalActionChangedListener:function(){this._externalActionChangedListener=o.after(this._externalActionDataService,"onActionChange",function(e){this._currentLocalActionDataServiceWrapper&&(this._currentLocalActionDataServiceWrapper.isForwardingCallingMethod()||this._handleExternalActionChanged(e.id,e.key,e.newValue,e.oldValue))}.bind(this),!0)},_removeExternalActionChangedListener:function(){this._externalActionChangedListener.remove(),this._externalActionChangedListener=null},_handleExternalActionChanged:function(e,t,i){if(!this._isLocalActionSyncingToExternal){var n=this._actionConverter.getActionIdFromExternalActionId(e);if(this._actionFilter.shouldSynchronizeAction(n)){var o={};if(o[t]=i,"selected"===t){var r=this._currentLocalActionDataService;if(!r)return;r.getAction(n)&&r.updateAction(n,o)}else this._externalUpdatesCache[n]||(this._externalUpdatesCache[n]={}),this._externalUpdatesCache[n][t]=i,this._forEachLocalActionDataService((function(e){e.getAction(n)&&e.updateAction(n,o)}),this)}}},_handleViewChanged:function(){if(!this._externalActionDataServiceDestroyed&&this._initialized){var e=this._viewSelector.getCurrentViewId();if(e){var t=this.getActionDataService(e);if(t!==this._currentLocalActionDataService){var i=this._currentLocalActionDataService;this._currentLocalActionDataService=t,this._currentLocalActionDataServiceWrapper=this._getActionDataServiceWrapper(e),this._removeEventForwardingListeners(),this._addEventForwardingListeners(e,t),this._synchronizeActionDataService(i,t,e)}}}},_synchronizeActionDataService:function(e,t){e&&this._removeSyncedLocalActionListeners(),t&&(this._addExistingActionsToExternal(t),this._addSyncedLocalActionListeners(t))},_addExistingActionsToExternal:function(e){e.getAllActions().forEach((function(e){this._syncLocalActionToExternal(e.id,e)}),this),!e.getAction(this._EQN_EDITOR_ACTIVE)&&this._externalActionDataService.getAction(this._EXTERNAL_EQN_EDITOR_ACTIVE)&&this._externalActionDataService.removeAction(this._EXTERNAL_EQN_EDITOR_ACTIVE)},_addSyncedLocalActionListeners:function(e){this._syncedLocalActionHandles=[o.after(e,"onActionChange",function(t){this._handleLocalActionChanged(e,t.id,t.key,t.newValue,t.oldValue)}.bind(this),!0),o.after(e,"onActionAdd",function(t){this._syncLocalActionToExternal(t.id,e.getAction(t.id))}.bind(this),!0),o.before(e,"removeAction",function(t){this._handleLocalActionRemoved(t,e)}.bind(this),!0)]},_addEventForwardingListeners:function(e,t){this._eventForwardingListeners=[o.after(t,"onActionChange",function(t){this._getActionDataServiceWrapper(e).forwardMethodCalled("onActionChange",arguments)}.bind(this),!0),o.after(t,"onActionAdd",function(t){this._getActionDataServiceWrapper(e).forwardMethodCalled("onActionAdd",arguments)}.bind(this),!0),o.after(t,"addAction",function(t){this._getActionDataServiceWrapper(e).forwardMethodCalled("addAction",arguments)}.bind(this),!0),o.after(t,"updateAction",function(t){this._getActionDataServiceWrapper(e).forwardMethodCalled("updateAction",arguments)}.bind(this),!0)]},_syncLocalActionToExternal:function(e,i){if(this._actionFilter.shouldSynchronizeAction(e)){var n=this._actionConverter.getExternalActionIdFromActionId(e),o=t.mixin({},i);this._externalActionDataService.getAction(n)?(delete o.id,this._updateExternalActionWithGuard(n,o)):(o.id=n,this._externalActionDataService.addAction(o))}},_handleLocalActionChanged:function(e,t,i,n){if(this._actionFilter.shouldSynchronizeAction(t)){var o={};o[i]=n;var r=this._actionConverter.getExternalActionIdFromActionId(t);this._updateExternalActionWithGuard(r,o)}},_handleLocalActionRemoved:function(e,t){t!==this._externalActionDataService&&this._actionFilter.shouldSynchronizeAction(e)&&this._ACTIONS_TO_REMOVE.forEach((function(t){if(0===e.indexOf(t)){var i=this._actionConverter.getExternalActionIdFromActionId(e);this._externalActionDataService.getAction(i)&&this._externalActionDataService.removeAction(i)}}),this)},_updateExternalActionWithGuard:function(e,t){var i=this._isLocalActionSyncingToExternal;this._isLocalActionSyncingToExternal=!0,this._externalActionDataService.updateAction(e,t),this._isLocalActionSyncingToExternal=i},_removeSyncedLocalActionListeners:function(){this._syncedLocalActionHandles.forEach((function(e){e.remove()})),this._syncedLocalActionHandles=[]},_removeEventForwardingListeners:function(){this._eventForwardingListeners.forEach((function(e){e.remove()})),this._eventForwardingListeners=[]},destroy:function(){this.inherited(arguments),this._removeSyncedLocalActionListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6828)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},onDestroyed:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(6830),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},priority:function(){return 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){},getActionIdFromExternalActionId:function(e){return e},getExternalActionIdFromActionId:function(e){return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(6832),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},priority:function(){return 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){},shouldSynchronizeAction:function(e){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(589),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:[]}},createInstance:function(){return i.getInternalClipboard()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6835)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","rtc.keyhandler","rtc.cursorcontroller"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t,i){this._keyHandler=t,e.loadActions(this._getActions(i)),this._addAdditionalKeyBindings()},_getActions:function(e){return[{id:"rtc_move_left",enabled:!0,key:"left",callback:this._createCallback(e,"movePosition",[e.LEFT])},{id:"rtc_move_right",enabled:!0,key:"right",callback:this._createCallback(e,"movePosition",[e.RIGHT])},{id:"rtc_move_up",enabled:!0,key:"up",callback:this._createCallback(e,"movePosition",[e.UP])},{id:"rtc_move_down",enabled:!0,key:"down",callback:this._createCallback(e,"movePosition",[e.DOWN])},{id:"rtc_move_word_left",enabled:!0,key:"ctrl_left",platformKey:{mac:"alt_left"},callback:this._createCallback(e,"movePosition",[e.WORD_LEFT])},{id:"rtc_move_word_right",enabled:!0,key:"ctrl_right",platformKey:{mac:"alt_right"},callback:this._createCallback(e,"movePosition",[e.WORD_RIGHT])},{id:"rtc_move_line_end",enabled:!0,key:"end",platformKey:{mac:"meta_right"},callback:this._createCallback(e,"movePosition",[e.LINE_END])},{id:"rtc_move_line_start",enabled:!0,key:"home",platformKey:{mac:"meta_left"},callback:this._createCallback(e,"movePosition",[e.LINE_START])},{id:"rtc_move_start",enabled:!0,key:"ctrl_home",platformKey:{mac:"meta_up"},callback:this._createCallback(e,"movePosition",[e.START])},{id:"rtc_move_end",enabled:!0,key:"ctrl_end",platformKey:{mac:"meta_down"},callback:this._createCallback(e,"movePosition",[e.END])},{id:"rtc_select_left",enabled:!0,key:"shift_left",callback:this._createCallback(e,"movePosition",[e.LEFT,e.KEEP_ANCHOR])},{id:"rtc_select_right",enabled:!0,key:"shift_right",callback:this._createCallback(e,"movePosition",[e.RIGHT,e.KEEP_ANCHOR])},{id:"rtc_select_up",enabled:!0,key:"shift_up",callback:this._createCallback(e,"movePosition",[e.UP,e.KEEP_ANCHOR])},{id:"rtc_select_down",enabled:!0,key:"shift_down",callback:this._createCallback(e,"movePosition",[e.DOWN,e.KEEP_ANCHOR])},{id:"rtc_select_word_left",enabled:!0,key:"ctrl_shift_left",platformKey:{mac:"alt_shift_left"},callback:this._createCallback(e,"movePosition",[e.WORD_LEFT,e.KEEP_ANCHOR])},{id:"rtc_select_word_right",enabled:!0,key:"ctrl_shift_right",platformKey:{mac:"alt_shift_right"},callback:this._createCallback(e,"movePosition",[e.WORD_RIGHT,e.KEEP_ANCHOR])},{id:"rtc_select_line_start",enabled:!0,key:"shift_home",platformKey:{mac:"meta_shift_left"},callback:this._createCallback(e,"movePosition",[e.LINE_START,e.KEEP_ANCHOR])},{id:"rtc_select_line_end",enabled:!0,key:"shift_end",platformKey:{mac:"meta_shift_right"},callback:this._createCallback(e,"movePosition",[e.LINE_END,e.KEEP_ANCHOR])},{id:"rtc_select_start",enabled:!0,key:"ctrl_shift_home",platformKey:{mac:"meta_shift_up"},callback:this._createCallback(e,"movePosition",[e.START,e.KEEP_ANCHOR])},{id:"rtc_select_end",enabled:!0,key:"ctrl_shift_end",platformKey:{mac:"meta_shift_down"},callback:this._createCallback(e,"movePosition",[e.END,e.KEEP_ANCHOR])},{id:"rtc_move_page_up",enabled:!0,key:"pageup",callback:this._createCallback(e,"movePosition",[e.PAGE_UP])},{id:"rtc_move_page_down",enabled:!0,key:"pagedown",callback:this._createCallback(e,"movePosition",[e.PAGE_DOWN])},{id:"rtc_select_page_up",enabled:!0,key:"shift_pageup",callback:this._createCallback(e,"movePosition",[e.PAGE_UP,e.KEEP_ANCHOR])},{id:"rtc_select_page_down",enabled:!0,key:"shift_pagedown",callback:this._createCallback(e,"movePosition",[e.PAGE_DOWN,e.KEEP_ANCHOR])},{id:"rtc_select_all",key:"ctrl_a",platformKey:{mac:"meta_a"},enabled:!0,callback:this._createCallback(e,"selectAll",[])},{id:"rtc_clear_selection",enabled:!0,key:"escape",callback:t.hitch(e,"clearSelection")}]},_createCallback:function(e,t,i){return function(){return e[t].apply(e,i),!0}},_addAdditionalKeyBindings:function(){this._keyHandler.addBinding({platformKey:{mac:"ctrl_b"}},"rtc_move_left"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_f"}},"rtc_move_right"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_p"}},"rtc_move_up"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_n"}},"rtc_move_down"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_a"}},"rtc_move_line_start"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_e"}},"rtc_move_line_end"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_shift_a"}},"rtc_select_line_start"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_shift_e"}},"rtc_select_line_end"),this._keyHandler.addBinding({platformKey:{mac:"shift_home"}},"rtc_select_start"),this._keyHandler.addBinding({platformKey:{mac:"shift_end"}},"rtc_select_end"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_left"}},"rtc_move_word_left"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_right"}},"rtc_move_word_right"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_shift_left"}},"rtc_select_word_left"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_shift_right"}},"rtc_select_word_right"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_v"}},"rtc_move_page_down"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_shift_v"}},"rtc_select_page_down")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6837)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.view","rtc.fileendselectable","rtc.cursor","rtc.actionservice","rtc.columnselection.enabled","rtc.cursor.navigator","rtc.viewready"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(212),i(207),i(282),i(492),i(6838),i(2404),i(923),i(234),i(270),i(401)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([o,a],{LEFT:1,RIGHT:2,UP:3,DOWN:4,START:5,END:6,LINE_START:7,LINE_END:9,WORD_LEFT:10,WORD_RIGHT:11,PAGE_UP:13,PAGE_DOWN:14,KEEP_ANCHOR:15,constructor:function(e,t,n,o,r,a,s,l){this._internalDocument=e,this._view=t,this._fileEndSelectable=n,this._cursor=o,this._actionService=r,this._columnSelectionEnabled=a,this._cursorNavigator=s,this._viewReadyService=l,this._currentAction=null,this._suspended=0,this._hidden=!1,this._initializeController(),this._initializeOriginalCursor(),this._statesToReenable=null,this._actionServiceListener=null,this.own(i.before(this._internalDocument,"onDocumentReset",this._reset.bind(this))),this.own(i.after(this._view,"onScroll",this._handleScroll.bind(this),!0))},_reset:function(){this._removeExtraCursors()},holdCursors:function(){this._heldCursors?this._holdCount++:(this._holdCount=1,this._heldCursors=[],this._getCursorIDs().forEach((function(e){this._heldCursors[e]=this._cursors[e].getCursorAsLiveRange()}),this))},resetCursors:function(e){!this._heldCursors||this._holdCount>1?this._holdCount--:(this._backupCursors&&(this._cursors=this._backupCursors,this._backupCursors=null,this._cursorListeners=this._backupListeners,this._backupListeners=null),this._getCursorIDs().forEach((function(t){var i=this._heldCursors[t];!e&&this._cursors[t]&&this._cursors[t].setCursorToRange(i),i.destroy()}),this),this._heldCursors=null,0===this._suspended&&this.onUpdate())},scrollIntoView:function(){1===this._getCursorIDs().length&&(this._cursor.suspendChangeEvent(),this._cursor.onUpdate(!1),this._cursor.activateChangeEvent(!0))},setTemporaryLineColumn:function(e,t,i){this._backupCursors=this._cursors,this._backupListeners=this._cursorListeners,this._cursorListeners=[this._cursorListeners[0]],this._cursors={},this._cursors[0]=this._cursor,this._cursor.setLineColumn(e,t,i)},setTemporarySelectionLineColumn:function(e,t,i,n){this._backupCursors=this._cursors,this._backupListeners=this._cursorListeners,this._cursorListeners=[this._cursorListeners[0]],this._cursors={},this._cursors[0]=this._cursor,this._cursor.setSelectionLineColumn(e,t,i,n,!0)},selectLine:function(e,t){this._removeExtraCursors(),this._cursor.selectLine(e,t)},isEventInSelection:function(e){return this.getCursors().some((function(t){return t.isEventInSelection(e)}))},areCursorsReadOnly:function(){return this.getCursors().reduce((function(e,t){return e||t.isCursorReadOnly()}),!1)},reinitializeCursors:function(){this.suspendUpdates(),this._removeExtraCursors(),this._cursor.movePosition(this._cursor.START,!1,!1),this.activateUpdates()},selectedText:function(){var e="";return this.getCursors(!0).forEach((function(t){e=e+t.selectedText()+"\n"})),e.substring(0,e.length-1)},getCursors:function(e){var i=this._getCursorIDs().map((function(e){return this._cursors[e]}),this);return e&&i.sort(t.hitch(c,c.cursorSortFunc)),i},getCursorsWithoutSelection:function(){return this.getCursors(!0).filter((function(e){return!e.hasSelection()}))},getCursorPositions:function(e){return this.getCursors(e).map((function(e){return e.getCursorPosition()}))},getPositions:function(e){return this.getCursors(e).map((function(e){return e.hasSelection()?e.getSelection():e.getPosition()}))},setLineColumns:function(e){var t=e.map((function(e){return this._internalDocument.getPositionForLineColumn(e.line,e.column)}),this);this.setPositions(t)},setPositions:function(e){this.suspendUpdates(),this._ensureCorrectNumberOfCursorsAvailable(e.length);var t=this.getCursors();e.forEach((function(e,i){var n=t[i];e.isInstanceOf&&e.isInstanceOf(h)?n.setSelection(e):(n.collapseSelection(),n.setPosition(e))}),this),this.activateUpdates()},hasSelection:function(){return this.getCursors().some((function(e){return e.hasSelection()}),this)},getSelection:function(){return this.hasSelection()?this.getCursors().map((function(e){if(e.hasSelection())return e.getSelection();var t=new u(e.getNode(),e.getOffset());return new h(t,t)})):null},setSelection:function(e){this.suspendUpdates(),this.clearSelection(),e.forEach((function(e,t){(0===t?this._cursor:this._getCursor(this._addCursor(1,1))).setSelection(e)}),this),this.activateUpdates()},getSelectionLineColumn:function(){return this._getCursorsWithSelection().map((function(e){return e.getSelectionLineColumn()}))},movePosition:function(e,t,i){this.suspendUpdates(),e!==this.PAGE_UP&&e!==this.PAGE_DOWN||this._removeExtraCursors(),this._forEachCursor((function(n){if(!this._disallowCursorMovement(e,n))if(!this.hasMultipleCursors()||e!==this.UP&&e!==this.DOWN)n.movePosition(e,t,i);else{var o=n.getLineColumn().line,r=this._getLineNumberForNextVisibleCodeLine(o,e);if(-1===r)return;for(;o!==r;){if(!n.movePosition(e,t))break;o=n.getLineColumn().line}}})),this.activateUpdates()},onUpdate:function(e,t){this._pendingOnUpdate=!0,this.hasMultipleCursors()&&(this._mergeCursors(),this._checkForAndClearCursorsFromRichText()),this._handleActions(),e&&this.scrollIntoView(),t&&this.getCursors().forEach((function(e){e.onChange()})),this._pendingOnUpdate=!1},isPendingUpdate:function(){return this._pendingOnUpdate||this._queuedUpdate||this._suspended},setCursorToEvent:function(e){this.suspendUpdates(),this.clearSelection(),this._cursor.setCursorToEvent(e),this.activateUpdates()},clearSelection:function(){var e=this._removeExtraCursors();return this.hasSelection()?(this.suspendUpdates(),this._cursor.collapseSelection(),this.activateUpdates(),!0):e},selectAll:function(){this.suspendUpdates(),this._removeExtraCursors(),this._cursor.selectAll(),this.activateUpdates()},positionsAreValid:function(){return this.getCursors().every((function(e){return e.position.isValid()}))},show:function(e,t){this._hidden&&(this._hidden=!1,this.suspendUpdates(),this._forEachCursor((function(i){i.show(e,t)})),this.activateUpdates())},hide:function(){this._hidden||(this._hidden=!0,this.suspendUpdates(),this._forEachCursor((function(e){e.hide()})),this.activateUpdates())},isPositionInSelectionRange:function(e){return this.getCursors().some((function(t){return t.isPositionInSelectionRange(e)}))},getScrollIntoViewPosition:function(){return this._cursor.position},suspendUpdates:function(){this._suspended++,this._forEachCursor((function(e){e.suspendChangeEvent()}))},activateUpdates:function(){if(this._suspended--,!(this._suspended>0)&&(this._forEachCursor((function(e){e.activateChangeEvent()})),this._queuedUpdate)){var e=this._queuedUpdate.scroll,t=this._queuedUpdate.change;this._queuedUpdate=null,this.onUpdate(e,t)}},emitUpdate:function(e,t){this._pendingOnUpdate||(this._suspended>0?this._queuedUpdate?(this._queuedUpdate.scroll=this._queuedUpdate.scroll||e,this._queuedUpdate.change=this._queuedUpdate.change||t):this._queuedUpdate={scroll:e,change:t}:this.onUpdate(e,t))},_checkForAndClearCursorsFromRichText:function(){this.suspendUpdates();var e=this._getRemovableCursorIDs().filter((function(e){var t=this._getCursor(e);return!!this._isCursorInCodeOnly(t)||(this._removeCursor(e),!1)}),this);if(0!==e.length){if(!this._isCursorInCodeOnly(this._cursor)){var t=this._getCursor(e[0]);this._setCursorToCursor(this._cursor,t),this._removeCursor(e[0])}this.activateUpdates()}else this.activateUpdates()},_isCursorInCodeOnly:function(e){var t,i;if(e.hasSelection()){var n=e.getSelection();t=n.getStartPosition(),i=n.getEndPosition()}else i=t=e.getCursorPosition();var o=d.isCodeContainer(t.getNode(),!1),r=d.isCodeContainer(i.getNode(),!1);return o&&r},_setCursorToCursor:function(e,t){t.hasSelection()?e.setSelection(t.getSelection()):e.setPosition(t.getCursorPosition())},_ensureCorrectNumberOfCursorsAvailable:function(e){var t=this._getCursorIDs(),i=e-t.length;if(i>0)for(var n=0;n<i;n+=1)this._addCursor(1,1);else if(i<0){t.slice(e).forEach((function(e){this._removeCursor(e)}),this)}},_getLineNumberForNextVisibleCodeLine:function(e,t){for(var i=e-1+(t===this.UP?-1:1),n=this._internalDocument.getMaxLineNumber();i>=0&&i<=n;){if(d.isCodeContainer(this._internalDocument.getLineNode(i))&&this._view.isLineVisible(i+1))return i+1;i+=t===this.UP?-1:1}return-1},_getRemovableCursorIDs:function(e){return(e=e||this._getCursorIDs()).indexOf("0")>-1&&e.splice(e.indexOf("0"),1),e},_handleActions:function(){this._getCursorIDs().length>1?this._actionServiceListener||this._disableActions():this._actionServiceListener&&this._reenableActions()},_disableActions:function(){this._statesToReenable=r.createMap(),s.actionsToReEnable.forEach((function(e){var t=this._actionService.getAction(e);t&&this._statesToReenable.set(e,t.enabled)}),this),s.actions.forEach((function(e){this._actionService.updateAction(e,{enabled:!1})}),this),this._actionServiceListener=i.before(this._actionService,"updateAction",t.hitch(this,"_handleActionUpdate"),!0),this.own(this._actionServiceListener)},_reenableActions:function(){this._actionServiceListener.remove(),this._actionServiceListener=null,this._statesToReenable.forEach((function(e,t){var i=this._actionService.getAction(t);i&&(e!==i.enabled&&this._actionService.updateAction(t,{enabled:e}))}),this),this._statesToReenable.clear(),this._statesToReenable=null},_handleActionUpdate:function(e,t,i){return this._statesToReenable.has(e)&&t.hasOwnProperty("enabled")&&this._statesToReenable.set(e,t.enabled),s.actions.indexOf(e)>-1&&(t.enabled=!1),[e,t,i]},_getCursor:function(e){return this._cursors[e]},_getCursorsWithSelection:function(){return this.getCursors().filter((function(e){return e.hasSelection()}))},_disallowCursorMovement:function(e,t){var i=this._getCursorIDs().length>1,n=t.getLineColumn(),o=1===n.column,r=e===this.LEFT||e===this.WORD_LEFT,a=this._internalDocument.getLineNode(n.line-1).maxOffset()+1,s=n.column===a,l=e===this.RIGHT||e===this.WORD_RIGHT;return i&&(o&&r||s&&l)},_getCursorIDs:function(){return Object.keys(this._cursors)},_initializeOriginalCursor:function(){var e=this._getNextCursorID();this._cursors[e]=this._cursor,this._addListeners(this._cursor,e)},_addCursor:function(e,t){var i=this._getNextCursorID(),n=this._createCursorAtLineColumn(e,t);return this._cursors[i]=n,this._addListeners(n,i),0===this._suspended&&this.onUpdate(),i},_removeCursor:function(e){return!!this._cursors[e]&&(this._cursorListeners[e].forEach((function(e){e.remove()}),this),delete this._cursorListeners[e],this._cursors[e]!==this._cursor&&this._cursors[e].destroy(),delete this._cursors[e],this.emitUpdate(),!0)},_removeExtraCursors:function(){return 1!==this._getCursorIDs().length&&(this.suspendUpdates(),this._getRemovableCursorIDs().forEach(this._removeCursor,this),this.activateUpdates(),!0)},_addListeners:function(e,n){var o=i.after(e,"onUpdate",t.hitch(this,(function(){this.emitUpdate()})),!0);this.own(o),this._cursorListeners[n]=[o]},_createCursorAtLineColumn:function(e,t){var i=new l(this._internalDocument,this._view,this._fileEndSelectable,this._cursorNavigator,this._viewReadyService);return 0!==this._suspended&&i.suspendChangeEvent(),i.setLineColumn(e,t),i},_forEachCursor:function(e){this.getCursors().forEach(e,this)},_getNextCursorID:function(){return this._cursorID++},_initializeController:function(){this._cursors={},this._cursorListeners={},this._cursorID=0},_mergeCursors:function(){this.suspendUpdates(),this._getCursorsToMerge().reduce(t.hitch(this,(function(e,t){return this._mergeCursorSet(t)||e})),!1),this.activateUpdates()},_getCursorsToMerge:function(){var e=[];return this._getCursorIDs().forEach((function(t){var i=this._getCursor(t),n=c.getLineColumnPair(i),o=i.isFileEndSelected();if(!e.some((function(e){if(this._cursorMergeableWithSet(n,e))return e.push({id:t,lineColPair:n,fileEndSelected:o}),!0}),this)){var r=[{id:t,lineColPair:n,fileEndSelected:o}];e.push(r)}}),this),e},_cursorMergeableWithSet:function(e,t){return t.some((function(t){return this._lineColInRange(e.start,t.lineColPair)||this._lineColInRange(t.lineColPair.start,e)||this._lineColInRange(e.end,t.lineColPair)||this._lineColInRange(t.lineColPair.end,e)}),this)},_lineColInRange:function(e,t){var i=e.line,n=e.column,o=t.start.line,r=t.start.column,a=t.end.line,s=t.end.column;return i===o&&n===r||i===a&&n===s||i>o&&i<a||(i<a||i===a&&n<=s)&&(i>o||i===o&&n>=r)},_mergeCursorSet:function(e){if(1===e.length)return!1;var t=this._getRangeFromCursors(e),i=this._getMergedCursorFromCursorIDs(e.map((function(e){return e.id})));if(t.start.line===t.end.line&&t.start.column===t.end.column)i.setLineColumn(t.start.line,t.start.column);else{var n=this._internalDocument.getPositionForLineColumn(t.start.line,t.start.column),o=this._internalDocument.getPositionForLineColumn(t.end.line,t.end.column),r=new h(n,o,!1,this._isFileEndSelectedInCursorSet(e));i.setSelection(r)}return!0},_getRangeFromCursors:function(e){var t,i={line:Number.POSITIVE_INFINITY,column:Number.POSITIVE_INFINITY},n={line:Number.NEGATIVE_INFINITY,column:Number.NEGATIVE_INFINITY};return e.forEach((function(e){((t=e.lineColPair).start.line<i.line||t.start.line===i.line&&t.start.column<i.column)&&(i=t.start),(t.end.line>n.line||t.end.line===n.line&&t.end.column>n.column)&&(n=t.end)})),{start:i,end:n}},_getMergedCursorFromCursorIDs:function(e){var t;return e.indexOf("0")<0?t=this._getCursor(this._addCursor(1,1)):(this._cursor.releaseAnchor(),t=this._cursor),this._getRemovableCursorIDs(e).forEach(this._removeCursor,this),t},_isFileEndSelectedInCursorSet:function(e){return e.some((function(e){return e.fileEndSelected}))},startDragAction:function(){var e=this._startNewAction();return t.mixin(e,{onUp:t.hitch(this,(function(t){e.isFulfilled()||(this.hasSelection()||this._cursor._fileEndSelected)&&t&&this.isPositionInSelectionRange(t)&&(this._removeExtraCursors(),this._cursor.releaseAnchor(),this._cursor._setPosition(t),this._cursor.onUpdate())}))}),e},startSelectionAction:function(e,i,n,o){this._removeExtraCursors();var r=this._startNewAction();this._currentSelectionActionCoords={y:e.y+this._view.getScrollTop(),x:e.x};let a=!1;return e.target.classList.contains("clickToSelectLineLayer")&&(a=!0),t.mixin(r,{onMove:t.hitch(this,(function(e,t,i,n){r.isFulfilled()||(this._currentSelectionActionCoords={y:i+this._view.getScrollTop(),x:n},this._cursor._modifyPositionBasedOnMoveEvent(e,t,i,a),this._cursor.onUpdate())}))}),r.promise.always(t.hitch(this,(function(){this._releaseAnchorIfNoSelection(),this._stopAutoScroll(),this._currentSelectionActionCoords=null}))),a?this._cursor.selectLine(i.getLine(),!0,e.shiftKey):this._cursor._modifyPositionBasedOnDownEvent(i,n,o),this._cursor.onUpdate(),this.onMouseDown(),r},onMouseDown:function(){},startBlockSelectionAction:function(e,i,n,o,r){if(!this._columnSelectionEnabled)return this.startSelectionAction(e,i,n,o);this._removeExtraCursors();var a=this._startNewAction(),s=i.getLineColumn().line,l=r;return t.mixin(a,{onMove:t.hitch(this,(function(e,t,i,n){if(!a.isFulfilled()){this.suspendUpdates(),this._removeExtraCursors();for(var o=e.getLineColumn().line,r=Math.min(o,s),c=Math.max(o,s),u=this._getFirstCodeLineInRange(r,c),h=r;h<=c;h+=1)if(d.isCodeContainer(this._internalDocument.getLineNode(h-1))){var p=this._view.getCoordinateForLineColumn(h,1);if(this._view.isValidCoordinate(p)){var f,g=p.y,m=this._view.getPositionFromCoordinate({x:l,y:g}).getLineColumn().column,_=this._view.getPositionFromCoordinate({x:n,y:g}).getLineColumn().column;h===u?(this._cursor.releaseAnchor(),f=this._cursor):f=this._getCursor(this._addCursor(1,1)),m===_?f.setLineColumn(h,m):f.setSelectionLineColumn(h,m,h,_)}}this.activateUpdates()}}))}),a.promise.always(t.hitch(this,(function(){this._stopAutoScroll(),0===this._suspended&&this.onUpdate()}))),this._cursor._modifyPositionBasedOnDownEvent(i,!1,o),0===this._suspended&&this.onUpdate(),a},_getFirstCodeLineInRange:function(e,t){var i=this._internalDocument.getLineNode(e-1),n=this._internalDocument.getLineNode(t-1),o=d.getCodeNodesInNodeRange(i,n);return 0===o.length?-1:this._internalDocument.getLineNumber(o[0])+1},startGroupedSelectionAction:function(e,t,i,n){return this.clearSelection(),this._cursor.startGroupedSelectionAction(e,t,i,n)},startSecondarySelectionAction:function(e,t,i){return this._getCursorIDs().length>1&&!this.isPositionInSelectionRange(e)&&this.clearSelection(),1===this._getCursorIDs().length?this._cursor.startSecondarySelectionAction(e,t,i):this._startNewAction()},isActionInProgress:function(){return null!==this._currentAction},onActionStarted:function(){},_startNewAction:function(){var e=new n;return this._setCurrentAction(e),this.onActionStarted(),e},_stopAutoScroll:function(){this._forEachCursor((function(e){e._stopAutoScroll()}))},_releaseAnchorIfNoSelection:function(){this._forEachCursor((function(e){e.hasAnchor()&&e.position.isEqualTo(e.anchor)&&!e._fileEndSelected&&e.releaseAnchor()}))},_setCurrentAction:function(e){this._clearCurrentAction(),this._currentAction=e,this._currentAction.promise.always(t.hitch(this,(function(){this._currentAction=null})))},_clearCurrentAction:function(){this._currentAction&&!this._currentAction.isFulfilled()&&this._currentAction.cancel()},_handleScroll:function(e){if(!e||!this._currentSelectionActionCoords)return;if(0===e.diffY&&0===e.diffX)return;this._currentSelectionActionCoords.y+=e.diffY,this._currentSelectionActionCoords.x+=e.diffX;const t=this._view.getPositionFromCoordinate(this._currentSelectionActionCoords);this._cursor._setPosition(t),this.onUpdate()},hasMultipleCursors:function(){return this.getCursors().length>1},hasMultiplePendingCursors:function(){return this.hasMultipleCursors()||this._heldCursors&&this._heldCursors.length>1},getNumberOfSelectedLines:function(){var e=this.getSelectionLineColumn(),t=e.length;return 1===t?Math.abs(e[0].end.line-e[0].start.line)+1:t},getCursor:function(){return this._cursor},serializePlugin:function(){return this.getCursors().map((function(e){var t=e.getSelection();return t?{selection:{start:t.getStartPosition().getLineColumn(),end:t.getEndPosition().getLineColumn(),isReversed:t.isReversed(),fileEndSelected:t.fileEndSelected()}}:e.getCursorPosition().getLineColumn()}))},deserializePlugin:function(e,t){t.whenAllViewsReady(function(){this.suspendUpdates(),this.clearSelection(),e.forEach((function(e,t){var i;i=0===t?this._cursor:this._getCursor(this._addCursor(1,1));var n=e.selection;if(n){var o=n.start,r=n.end,a=this._internalDocument.getPositionForLineColumn(o.line,o.column),s=this._internalDocument.getPositionForLineColumn(r.line,r.column),l=n.isReversed,c=n.fileEndSelected,d=new h(a,s,l,c);i.setSelection(d,!1)}else i.setLineColumn(e.line,e.column,!1)}),this),this.activateUpdates()}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(251)],o=i.dj.d(n,(function(e,t){return{actions:[t.CODE_EXAMPLE.DEFAULT_ACTION,t.CODE_EXAMPLE.MATLAB_ACTION,t.CODE_EXAMPLE.PLAIN_ACTION,t.EQUATIONS.LATEX_EDITOR_ACTION,t.EQUATIONS.WYSIWYG_EDITOR_ACTION,t.EVALUATE_SELECTION.EVALUATE_SELECTION_ACTION,t.FIND_STRING.FIND_ACTION,t.FIND_STRING.FIND_NEXT_ACTION,t.FIND_STRING.FIND_PREVIOUS_ACTION,t.FIND_STRING.FIND_SELECTION_ACTION,t.FIND_STRING.REPLACE_ACTION,t.FORMAT_CODE.SMART_INDENT_ACTION,t.GOTO.GOTO_DIALOG.Action,t.HYPERLINK.HYPERLINK_ACTION,t.IMAGES.IMAGE_ACTION,t.INDENT.INDENT_ACTION,t.INDENT.OUTDENT_ACTION,t.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_BREAKPOINT.Action,t.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_ENABLE_BREAKPOINT.Action,t.OPEN_SELECTION.OPEN_SELECTION_ACTION,t.PAREN_MATCH,t.RICH_TEXT.TOGGLE_CODE_AND_TEXT_ACTION,t.SECTIONS.INSERT_SECTION_ACTION,t.SMART_TAB,t.TABLE_OF_CONTENTS.TABLE_OF_CONTENTS_ACTION,t.VARIABLE_HIGHLIGHTING,"help_on_selection","rtc_configure_live_control","rtc_format_code_tab","rtc_general_hyperlink","rtc_insert_code","rtc_insert_combo_box","rtc_insert_sectionbreak","rtc_insert_slider","rtc_insert_text"],actionsToReEnable:[t.CODE_EXAMPLE.DEFAULT_ACTION,t.CODE_EXAMPLE.MATLAB_ACTION,t.CODE_EXAMPLE.PLAIN_ACTION,t.COMMENT.COMMENT.Action,t.COMMENT.UNCOMMENT.Action,t.EQUATIONS.LATEX_EDITOR_ACTION,t.EQUATIONS.WYSIWYG_EDITOR_ACTION,t.FIND_STRING.FIND_ACTION,t.FIND_STRING.FIND_NEXT_ACTION,t.FIND_STRING.FIND_PREVIOUS_ACTION,t.FIND_STRING.FIND_SELECTION_ACTION,t.FIND_STRING.REPLACE_ACTION,t.FORMAT_CODE.SMART_INDENT_ACTION,t.GOTO.GOTO_DIALOG.Action,t.HYPERLINK.HYPERLINK_ACTION,t.IMAGES.IMAGE_ACTION,t.INDENT.INDENT_ACTION,t.INDENT.OUTDENT_ACTION,t.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_BREAKPOINT,t.EXECUTION_CONTROLS.BREAKPOINTS.TOGGLE_ENABLE_BREAKPOINT,t.OPEN_SELECTION.OPEN_SELECTION_ACTION,t.RICH_TEXT.TOGGLE_CODE_AND_TEXT_ACTION,t.SMART_TAB,t.TABLE_OF_CONTENTS.TABLE_OF_CONTENTS_ACTION,"help_on_selection","rtc_format_code_tab","rtc_insert_code","rtc_insert_text","rtc_insert_sectionbreak"]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6840)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(234),i(237),i(270),i(313),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(t,{constructor:function(e,t){this._view=e,this._hiddenNodeModel=t},moveLineStart:function(e,t){var n=e.getNode();if(!0!==t&&i.isCodeContainer(n)){var o=n.rootContainer(),r=o.firstChild();if(r.isTextNode()){var s=r.getText().search(/\S|$/);if(s>0)if(n.offsetInContainer()+e.getOffset()!==s)return o.getPositionFromOffset(s)}}var l=n.textContainer();if(l.wrappable){var c=this._view.getCoordinateForPosition(e);return this._view.getPositionFromCoordinate({x:0,y:c.y+c.height/2})}return a.getClosestVisiblePosition(l.startPosition(),this._view)},moveLineEnd:function(e){var t=e.getNode().textContainer();if(t.wrappable){var i=this._view.getCoordinateForPosition(e),n=this._view.getDomTargetPosition();return this._view.getPositionFromCoordinate({x:n.scrollWidth,y:i.y+i.height/2})}return a.getClosestVisiblePosition(t.endPosition(),this._view)},moveLeft:function(e){var t=e.getNode().movePositionLeft(e);if(!e.isAtEdge())return t;for(;t;){var i=t.getNode();if(!this._hiddenNodeModel.isHidden(i))return t;t=i.movePositionLeft(new o(i,0))}return t},moveRight:function(e){var t=e.getNode().movePositionRight(e);if(!e.isAtEdge())return t;for(;t;){var i=t.getNode();if(!this._hiddenNodeModel.isHidden(i))return t;t=i.movePositionRight(new o(i,i.maxOffset()))}return t},moveUp:function(e,t){var i=this._view.getCoordinateForPosition(e).y-1;return this._findPosition(e,t,i,0)},moveDown:function(e,t){var i=this._view.getCoordinateForPosition(e),n=this._view.getDocumentDimension(),o=i.y+i.height,r=n.height;return this._findPosition(e,t,o,r)},_findPosition:function(e,t,i,n){var o=i<=n?1:-1;this._view.isPaginated()&&this._view.scrollPositionIntoView(e,0);for(var a=i*o;a<=n*o;a+=1){var s=this._view.getPositionFromCoordinate({x:t,y:Math.abs(a)});if(s&&0!==r.comparePositions(s,e))return s}return null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2404)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.view","rtc.fileendselectable","rtc.cursor.navigator","rtc.viewready"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6843)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.cursor","rtc.view","rtc.cursorcontroller"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(373)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,n,o){this._cursor=e,this._view=n,this._cursorController=o,this.own(i.before(e,"onUpdate",t.hitch(this,"_handleCursorUpdate"),!0)),this.own(i.after(e,"onChange",t.hitch(this,"_handleCursorChange"))),this.own(i.after(n,"onViewUpdated",t.hitch(this,"_handleViewUpdated"),!0)),this.own(i.after(o,"onUpdate",t.hitch(this,"_handleCursorControllerUpdate"),!0)),this.own(i.after(n,"initialize",t.hitch(this,"_handleViewInitialized"),!0)),this._scrollScheduled=!1,this._updateScheduled=!1,this._changeScheduled=!1,this._viewInitialized=!1},_handleViewInitialized:function(){this._viewInitialized=!0},_handleCursorControllerUpdate:function(e){var t;t=!this._cursorController.hasMultipleCursors()||!e,this._doScrollIntoView(t),this._doCursorUpdate()},_handleCursorUpdate:function(e){this._doScrollIntoView(e)},_handleCursorChange:function(){this._view.isLayoutPending()?this._changeScheduled=!0:this.onChange()},_handleViewUpdated:function(e){this._viewInitialized&&this._cursor.position.isValid()&&(this._scrollScheduled&&(this._scrollScheduled=!1,this.onScrollCursorIntoView()),(this._updateScheduled||this._needsUpdateFromViewEvents(e))&&(this._updateScheduled=!1,this.onUpdate()),this._changeScheduled&&(this._changeScheduled=!1,this.onChange()))},onScrollCursorIntoView:function(){},onUpdate:function(){},onChange:function(){},_doScrollIntoView:function(e){e||(this._view.isLayoutPending()?this._scrollScheduled=!0:this.onScrollCursorIntoView())},_doCursorUpdate:function(){this._view.isLayoutPending()?this._updateScheduled=!0:this.onUpdate()},_needsUpdateFromViewEvents:function(e){return o.hasSizingEvent(e)||o.hasLayoutEvent(e)||o.hasRenderEvent(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1835),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2055),i(6846)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.actionservice","rtc.domnode","rtc.keyhandler.keyboardshortcutsmodel","rtc.keyhandler.alternateActionServiceSupport","rtc.keyhandler.multistrokeshortcuts"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(208),i(211),i(210),i(221),i(223),i(206),i(486)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(null,{constructor:function(){this.keyCapture=o.create("textarea",{class:"mobileKeyCapture",value:"",autocapitalize:"off",autocomplete:"off",autocorrect:"off",spellcheck:!1}),l(this.keyCapture,"focus",i.hitch(this,"onFocus")),l(this.keyCapture,"blur",i.hitch(this,"onBlur"))},getKeyCapture:function(){return this.keyCapture},setPosition(e,t){this.keyCapture.style.top=e+"px",this.keyCapture.style.left=t+"px"},moveKeyCaptureToNode:function(e,t,i){o.place(this.keyCapture,i),this.setPosition(e,t)},focus:function(){},blur:function(){},onFocus:function(e){},prepareKeyCapture:function(){},listenTo:function(e,t){},onBlur:function(e){},enableBrowserCopyPaste:function(e){},hasFocus:function(){},addBindings:function(e){c.deprecated({deprecated:{module:"rtc/events/MobileKeyHandler",method:"addBindings"},removalVersion:"R2019a",additionalInformation:"Replaced by addBinding"})},removeBindings:function(e){c.deprecated({deprecated:{module:"rtc/events/KeyHandler",method:"removeBindings"},removalVersion:"R2019a",additionalInformation:"Replaced by removeBinding"})},addBinding:function(e,t,i){},removeBinding:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2054)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.keyhandler.alternateActionServiceSupport"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2053)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice.external"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2056)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.keyhandler.keyboardshortcutsmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6851)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.linenumberservice","rtc.cursorcontroller","rtc.linenumberpreference","rtc.linenumberdecorator.stylers"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(2405)],o=i.dj.d(n,(function(e,t,i){return e(i,{_SELECT_LINE_CSS:"selectLine",handleMouseClick:function(e,t){this._cursorController.selectLine(t+1,!0)},createDecorationForLineNumber:function(e){const i=this.inherited(arguments);return t.add(i,this._SELECT_LINE_CSS),i},_adjustAlignment:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6853)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.settings.service"]}},createInstance:function(e){return new i(e)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{_SHOW_LINE_NUMBER_ID:"matlab.editor.displaysettings.ShowLineNumbers",constructor:function(e){this._settingService=e,this.own(this._settingService.listenToSettingChange(this._SHOW_LINE_NUMBER_ID,this._onPreferenceSet.bind(this))),this._enabled=null,this._settingService.getSetting(this._SHOW_LINE_NUMBER_ID).then(function(e){this._setNewValue(e)}.bind(this),function(e){this._setNewValue(!0)}.bind(this))},_onPreferenceSet:function(e){e!==this._enabled&&this._setNewValue(e)},_setNewValue:function(e){this._enabled=e,this.onPreferenceChanged(this._enabled)},onPreferenceChanged:function(e){},isEnabled:function(){return this._enabled}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6855)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.actionservice","rtc.keyhandler"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(249)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,t,i){this._keyHandler=i,t.loadActions(this._getActions(e)),this._addAdditionalKeyBindings()},_getActions:function(e){return[{id:"rtc_tab",enabled:!0,key:"tab",callback:t.hitch(e,"insertTab")},{id:"rtc_delete_backward",enabled:!0,key:"backspace",callback:t.hitch(e,"deleteTextAtCurrentPosition",i.BACKWARD_DELETE)},{id:"rtc_delete_forward",enabled:!0,key:"delete",callback:t.hitch(e,"deleteTextAtCurrentPosition",i.FORWARD_DELETE)},{id:"rtc_delete_previous_word",enabled:!0,key:"ctrl_backspace",platformKey:{mac:"alt_backspace"},callback:t.hitch(e,"deleteWord",-1)},{id:"rtc_delete_next_word",enabled:!0,key:"ctrl_delete",platformKey:{mac:"alt_delete"},callback:t.hitch(e,"deleteWord",1)}]},_addAdditionalKeyBindings:function(){this._keyHandler.addBinding({key:"shift_backspace"},"rtc_delete_backward"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_d"}},"rtc_delete_forward"),this._keyHandler.addBinding({platformKey:{mac:"ctrl_h"}},"rtc_delete_backward")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2406)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.cursorcontroller","rtc.internaldocument","rtc.position.controller","rtc.document.info","rtc.document.editblockcontroller","rtc.document.changenotifier","rtc.document.modification"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6858)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.undoredo.editblock","rtc.insertionruleservice","rtc.nodes.contentconverter"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(512),i(209),i(282),i(492),i(1438),i(2408),i(234),i(249),i(237),i(260),i(497),i(1144),i(945),i(2409),i(2410),i(2411),i(2412),i(2413),i(2414),i(2415),i(1209),i(1107),i(274),i(270),i(313),i(266),i(333),i(401),i(803),i(1095),i(470),i(672),i(547),i(323),i(389),i(670),i(2416),i(2417),i(2418),i(2419),i(2420)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U){return e(r,{MAX_NODE_TEXT_LENGTH:1e4,constructor:function(e,t,i){this._editBlockController=e,this._insertionRuleService=t,this._contentConverter=i,this.root=new O([]),this._documentState=0,this._blockEditsStack=[],this._pendingDocumentEvents=[],this.registerFormatTemplates([{name:"code",method:function(){var e={};return e.container=new R([]),e}}])},onPreDocumentChanged:function(){},onDocumentChanged:function(e){u.assertValidEventPayload(e),this._documentState=this._documentState+1},insertAtPosition:function(e,t){return this._insertAtPositionRespectingReplacement(e,t,!1)},insertDuringReplace:function(e,t){return this._insertAtPositionRespectingReplacement(e,t,!0)},_insertAtPositionRespectingReplacement:function(e,t,i){if(Array.isArray(e)||(e=[e]),0===e.length)throw new Error("rtc.model.InternalDocument._insertAtPositionRespectingReplacement: Expected at least one node to insert.");var n=this._insertNodesAtPosition(e,t,i),o=[],r=null;return n.insertedRange&&(r=this._mergeTextNodesInRange(n.insertedRange),o=this._buildEventList(r,n.insertedContainerAtEndOfContainer,n.insertedRootContainers,n.containerWasSplit)),{insertionNotAllowed:n.insertionNotAllowed,events:o,insertedRange:r}},_insertNodesAtPosition:function(e,t,i){var n=!1,o=t,r=[],a=null,s=null,l=null,c=null,d=!1,u=!1;return e.forEach((function(t,l){var h=this._insertNodeAtPosition(t,o,i);if(r=r.concat(h.insertedRootContainers),d=h.insertedContainerAtEndOfContainer,n=n||h.insertionNotAllowed,u=u||h.containerWasSplit,c=h.lastInsertedNode,!n){a=a||h.insertedRange.getStartPosition();var p=h.insertedRange.getEndPosition();(!s||I.comparePositions(s,p)<0)&&(s=p);var f=e[l+1];o=f&&f.isInstanceOf(M)?s:c.endPosition()}}),this),a&&(l=new A(a,s)),{insertionNotAllowed:n,insertedRange:l,insertedRootContainers:r,insertedContainerAtEndOfContainer:d,containerWasSplit:u,lastInsertedNode:c}},_insertNodeAtPosition:function(e,t,i){if(this._doesReadOnlyBlockInsertion(t))return{insertedRootContainers:[],insertedRange:null,insertionNotAllowed:!0,lastInsertedNode:null};var n=this._findInsertionPositionUsingReceivingRules(e,t,i);return n.canDirectlyInsert?(n.alternateNode&&(e=n.alternateNode),this._insertNodeInCompatiblePosition(e,n.newInsertionPosition)):this._insertUsingTopLevelRules(e,n.newInsertionPosition,n.preferredRelationToPosition)},_doesReadOnlyBlockInsertion:function(e){n.assert(!e.getNode().isRootNode(),"This function does not support root");for(var t=e,i=t.getNode();t.isAtEdge()&&!i.isRootContainer();)t=this._createEquivalentPositionInContainer(t,i.parent),i=i.parent;var o=i.isRootContainer()&&t.isAtRightEdge(),r=i.nextSibling();return!(o&&r&&r.startNode()&&!r.startNode().isReadOnly())&&i.isReadOnly()},_findInsertionPositionUsingReceivingRules:function(e,t,i){for(var n=t,o=t.getNode(),r=(t.getOffset(),this._insertionRuleService.getRulesForNode(e));o;){var a=this._insertionRuleService.getRulesForNode(o),s=r.canInsertInContainer(o),l=a.getReceivingInstruction(n,e);if(i&&s)return{newInsertionPosition:n,canDirectlyInsert:!0};var c=this._insertionRuleService.RECEIVING_INSTRUCTION;if(this._insertionRuleService.isInstructionOfType(l,c.CONTINUE_AT_POSITION))n=l.getPosition();else{if(this._insertionRuleService.isInstructionOfType(l,c.USE_TOP_LEVEL_RULE_AT_POSITION))return{newInsertionPosition:l.getPosition(),canDirectlyInsert:!1,preferredRelationToPosition:l.getPreferredRelationToPosition()};if(this._insertionRuleService.isInstructionOfType(l,c.INSERT_IF_COMPATIBLE)&&s)return{newInsertionPosition:n,canDirectlyInsert:!0};if(this._insertionRuleService.isInstructionOfType(l,c.INSERT_ALTERNATE_NODE))return{newInsertionPosition:n,canDirectlyInsert:!0,alternateNode:l.getAlternateNode()};if(!this._insertionRuleService.isInstructionOfType(l,c.CONTINUE_UP)&&!this._insertionRuleService.isInstructionOfType(l,c.INSERT_IF_COMPATIBLE))throw new Error("rtc.model.InternalDocument._findInsertionPositionUsingReceivingRules: Invalid instruction: "+l.getType());if(o.isRootContainer())return{newInsertionPosition:t,canDirectlyInsert:!1};n=this._createEquivalentPositionInContainer(n,o.parent)}n.getOffset(),o=n.getNode()}return{newInsertionPosition:t,canDirectlyInsert:!1}},_insertNodeInCompatiblePosition:function(e,t){var i=t.getNode().getEquivalentChildPositions(t.getOffset())[0];if(n.assert(i,"MW.rtc.model.InternalDocument: Expected a valid insertion position"),!i.isAtEdge()){n.assert(i.getNode().isSplittable(i.getOffset()),"MW.rtc.model.InternalDocument: Insertion was requested at a non-splittable position");var o=this._splitForInsertion(i).firstPart;i=new w(o,o.maxOffset())}i.isAtLeftEdge()&&!i.isAtRightEdge()?this._insertNodeWithEvent(e,i.getNode(),"before"):this._insertNodeWithEvent(e,i.getNode(),"after");var r=e.startPosition(),a=e.endPosition(),s=i.getNode().parent.CHILD_TEXT_SEPARATOR,l=a.getNode().nextNode();s.length>0&&l&&(a=l.startPosition());var c=e.nextSibling(),d=e.previousSibling();return c&&c.isEmpty()&&c.isTextNode()&&this.deleteNode(c,{node:e,offset:e.maxOffset()}),d&&d.isEmpty()&&d.isTextNode()&&this.deleteNode(d,{node:e,offset:0}),{insertedRootContainers:[],insertedRange:new A(r,a),insertionNotAllowed:!1,insertedContainerAtEndOfContainer:!1,lastInsertedNode:e}},_insertUsingTopLevelRules:function(e,t,i){var o,r,a,s,l,c,d,u=[],h=(c=(l=t.getNode().isRootContainer()?t:this._createEquivalentPositionInContainer(t)).getNode()).previousSibling(),p=c.nextSibling(),f=this._findNextBreakablePosition(l),g=this._insertionRuleService.getRulesForNode(e).getTopLevelInsertionInstruction(l,h,p,e,f),m=!1,_=!1;if(g)if(g.insertInRoot){var v,b=g.insertInRoot.insertionPosition||l;if(s=g.insertInRoot.containerConstructor?new g.insertInRoot.containerConstructor([e]):e,v=void 0!==i&&void 0!==g.insertInRoot.relationToPosition&&g.insertInRoot.relationToPosition!==i?i:g.insertInRoot.relationToPosition,g.insertInRoot.siblingConstructor)for(var y=new g.insertInRoot.siblingConstructor([]),C=y;C.getDefaultChild&&C.getDefaultChild();){var T=this.createNode(C.getDefaultChild());C.addChild(T),C=T}if(v===this._insertionRuleService.RELATION.AFTER){if(g.insertInRoot.siblingConstructor){var E=this._insertContainerInRoot(y,l.getNode(),"after").getEndPosition();u=[y],d=y}else d=s;r=this._insertContainerInRoot(s,l.getNode(),"after"),m=!0,a=!1,u.unshift(s),_=!1}if(v===this._insertionRuleService.RELATION.BEFORE){if(g.insertInRoot.siblingConstructor){var S=this._insertContainerInRoot(y,l.getNode(),"before").getStartPosition();u=[y]}r=this._insertContainerInRoot(s,l.getNode(),"before"),u.push(s),a=!1,m=!1,_=!1,d=s}(v===this._insertionRuleService.RELATION.AT||g.insertInRoot.insertionPosition)&&(r=(o=this._insertRootContainerInCompatiblePosition(s,b)).insertedRange,m=o.insertedContainerAtEndOfContainer,a=o.insertionNotAllowed,u=o.insertedRootContainers,_=o.containerWasSplit,d=s),a?(n.error("MW.rtc.InternalDocument: Insertion not allowed."),S=null,E=null,r=null,d=null):(S=S||r.getStartPosition(),E=E||r.getEndPosition(),r=new A(S,E))}else g.insertAlternateNodes&&(u=(o=this._insertNodesAtPosition(g.insertAlternateNodes,l)).insertedRootContainers,r=o.insertedRange,m=o.insertedContainerAtEndOfContainer,a=!1,d=o.lastInsertedNode);else n.error("MW.rtc.InternalDocument: No insertion instructions found"),u=[],r=null,a=!0,d=null;return{insertedRootContainers:u,insertedRange:r,insertionNotAllowed:a,insertedContainerAtEndOfContainer:m,containerWasSplit:_,lastInsertedNode:d}},_insertRootContainerInCompatiblePosition:function(e,t){var i,o,r=!1,a=t.getOffset(),s=!1;if(e.children.forEach(this._ensureMaxTextLength,this),t.isAtLeftEdge())o=this._insertContainerInRoot(e,t.getNode(),"before");else if(t.isAtRightEdge())o=this._insertContainerInRoot(e,t.getNode(),"after"),s=!0;else{if(!t.getNode().isSplittable(a))return n.error("MW.rtc.model.InternalDocument: Insertion was requested at a non-splittable position"),{insertedRootContainers:[],insertedRange:null,insertionNotAllowed:!0,insertedContainerAtEndOfContainer:!1,containerWasSplit:!1,lastInsertedNode:null};for(var l=t.getNode().getEquivalentChildPositions(t.getOffset())[0];l.getNode().children&&l.getNode().children.length>0;)l=l.getNode().getEquivalentChildPositions(l.getOffset())[0];var c=this._splitContainerAtPosition(l).first,d=c.endPosition();i=new w(c,c.maxOffset()),r=!0;var u=this._insertContainerInRoot(e,i.getNode(),"after");o=new A(d,u.getEndPosition())}return{insertedRootContainers:[e],insertedRange:o,insertionNotAllowed:!1,insertedContainerAtEndOfContainer:s,containerWasSplit:r,lastInsertedNode:e}},_insertContainerInRoot:function(e,t,i){e.children.forEach(this._ensureMaxTextLength,this),this._insertNodeWithEvent(e,t,i);var n=e.startPosition(),o=e.nextSibling(),r=o?o.startPosition():e.endPosition();return new A(n,r)},_findNextBreakablePosition:function(e){var t=e.getNode(),i=e.getOffset();if(!e.isAtEdge())for(;i<t.maxOffset()&&!t.isSplittable(i);)i++;return new w(t,i)},_createEquivalentPositionInContainer:function(e,t){var i=e.getNode();t=t||i.rootContainer();var n=i.offsetInContainer(t)+e.getOffset();return new w(t,n)},_insertNode:function(e,t,i){const n=this._convertRelationToIndex(t,i),o=n.parentNode,r=n.index;this._insertChildren(o,[e],r);const a=g.create([e],t,0),s=_.create([e],t),l=new H(this,a,s);return this._executeCommand(l),e},_insertNodeWithEvent:function(e,t,i){var n=this._convertRelationToIndex(t,i),o=n.parentNode,r=n.index;o.isRootNode()&&o.children.length&&this.onPreDocumentChanged(),this._insertChildren(o,[e],r),this._notifyInsertNodes([e],t,i)},_convertRelationToIndex:function(e,t){var i,n;return"first"===t?(n=e,i=0):"last"===t?i=(n=e).children.length:"before"===t?(n=e.parent,i=o.indexOf(n.children,e)):"after"===t&&(n=e.parent,i=o.indexOf(n.children,e)+1),{parentNode:n,index:i}},deleteNode:function(e,t){const i=this._getNodeCollapseInfo(e,e,t),o=e.parent;n.assert(o,"deleteNode called without parent"),this._notifyDeleteNodesAndChildren([e],i.collapseTo);const r=o.children.indexOf(e),a=new V(this,o,r,1);return this._executeCommand(a),{previousSibling:i.previousSibling,nextSibling:i.nextSibling}},_getNodeCollapseInfo:function(e,t,i){if(!i){var n=e.previousSibling(),o=t.nextSibling();if(i={node:null,offset:0},n)i.node=n,i.offset=n.maxOffset();else if(o)i.node=o;else{var r=this._insertDefaultTextNode(e,"after");i.node=r.getNode()}}return{collapseTo:i,previousSibling:n,nextSibling:o}},removeChildren:function(e,t,i){var n=new V(this,e,t,i);return this._executeCommand(n)},_insertChildren:function(e,t,i){var n=new B(this,e,t,i);this._executeCommand(n)},updateTextInNode:function(e,t,i,n){this._insertTextInNode(e,t,i);var o=t.length;this._deleteTextInNode(e,o+i,o+n)},_insertTextInNode:function(e,t,i){var n=m.create(e,i,t.length),o=new H(this,n);this._executeCommand(o);var r=new j(this,e,i,0,t);this._executeCommand(r);var a=v.create(e,i,t.length);o=new H(this,null,a),this._executeCommand(o)},deleteText:function(e,t,i){e.isTextNode()&&this._deleteTextInNode(e,t,i)},_deleteTextInNode:function(e,t,i){if(t=t||0,void 0===i&&(i=e.getText().length),i-t!=0){var n=v.create(e,t,i-t),o=new H(this,n);this._executeCommand(o);var r=new j(this,e,t,i-t,"");this._executeCommand(r);var a=m.create(e,t,i-t);o=new H(this,null,a),this._executeCommand(o)}},changeNodeAttributes:function(e,t){var i;i=new U(this,e,t),this._executeCommand(i);var n=C.create(e);i=new H(this,n,n),this._executeCommand(i)},setReadOnlyLine:function(e,t){var i=this.getLineNode(e);return i.isReadOnly()!==t&&(i.readOnly=t,this.onNodeChange(C.create(i)),!0)},_executeCommand:function(e){if(!this._editBlockController||!this._editBlockController.getActiveBlock)return e.execute();var t=this._editBlockController.getActiveBlock();return t?t.pushAndExecuteCommand(e):(n.assert("No block active"),e.execute())},getNodeById:function(e){return S.searchNodeById(e,this.root)},startBlockEdit:function(e){return e=e||new s,this._blockEditsStack.push(e),e},endBlockEdit:function(e){var t=this._blockEditsStack[this._blockEditsStack.length-1];n.assert(e===t,"InternalDocument: Start and End block edits' blocks do not match."),this._blockEditsStack.pop(),0===this._blockEditsStack.length&&this._emitPendingEvents()},emitDocumentEvents:function(e){var t=this._pendingDocumentEvents,i=E.getCoalescingType(this._blockEditsStack);if(i){var n=E.coalesce(t,e,i,!1);this._pendingDocumentEvents=n||t.concat(e)}else this._pendingDocumentEvents=t.concat(e);0===this._blockEditsStack.length&&this._emitPendingEvents()},_emitPendingEvents:function(){var e=this._pendingDocumentEvents;e.length>0&&(this._pendingDocumentEvents=[],this.onDocumentChanged(e))},onDocumentReset:function(){this._documentState=this._documentState+1},readOnlyChanged:function(e){},onNodeChange:function(e){},newDocument:function(e){this.openTextDocument("",e)},openTextDocument:function(e,t){this._setTextInDocument(e,t),this.onDocumentReset()},_setTextInDocument:function(e,t){let i;this.root=new O([]),i=e?d.textLineArray(e):[""];const n=i.map(e=>{const t=new k({text:e});return new R([t])});this._insertChildren(this.root,n,0),n.forEach(e=>{this._ensureMaxTextLength(e.startNode())});const o=_.create([this.root],null),r=new H(this,null,o);this._executeCommand(r),this.setReadOnly(t)},formatTemplates:{},registerFormatTemplates:function(e){var t;for(t=0;t<e.length;t+=1)this.formatTemplates[e[t].name]=e[t].method},createContainerForType:function(e){var t=this.formatTemplates[e];return t?t():null},serialize:function(e){return(e=e||this.root).serialize()},deserialize:function(e){this.root=this._deserializeNode(e),this.onDocumentReset()},_deserializeNodes:function(e){for(var t=[],i=e.length,n=0;n<i;n++){var o=this._deserializeNode(e[n]);o&&t.push(o)}return t},_deserializeNode:function(e){return this._contentConverter.unpack(e)},serializeContentArray:function(e){var t=[];return e.forEach((function(e){t.push(this.cloneNode(e))}),this),new O(t).serialize()},getState:function(){return this._documentState},getTextInRange:function(e){var t=new T;return e instanceof N?new L(t).traverseSelection(e):new D(t).traverseRange(e,!1),t.getText()},deleteTextRange:function(e,t,i){if(e.isReadOnly())return 0;for(var n=i,o=e.startNode(),r=o.getText().length,a=o,s=0;n>0&&o;)(r=o.getText().length)<=n?(n-=r,o=o.nextSibling()):(a=o,s=n,n=0);if(!o)return 0;var l,c,d=t;s+d<=r?(l=o,c=s+d):(d-=r-s,o=o.nextSibling());if(!l)for(;d>0&&o;)(r=o.getText().length)<d?(d-=r,o=o.nextSibling()):(l=o,c=d,d=0);if(!l)return 0;var u={startPosition:new w(a,s),endPosition:new w(l,c),startNode:a,endNode:l,startPos:s,endPos:c,isLocal:!0,fileEndSelected:!1},h=this.deleteSelection(u);return this.emitDocumentEvents([h]),t},isReadOnly:function(){return this.root&&this.root.readOnly},setReadOnly:function(e,t){this.root&&this.root.readOnly!==e&&(e=void 0!==e&&e,t=void 0!==t&&t,this.root.readOnly=e,t||this.readOnlyChanged(e))},startNode:function(){return this.root.startNode()},endNode:function(){return this.root.endNode()},getChild:function(e,t){return t=t||this.root,e>=0&&t.children&&t.children.length>=e?t.children[e]:null},_getChildIndex:function(e,t){return t=t||this.root,o.indexOf(t.children,e)},getLineNode:function(e,t){return this.getChild(e,t)},getLineNumber:function(e,t){return this._getChildIndex(e,t)},getMaxLineNumber:function(e){return(e=e||this.root)&&e.children&&e.children.length},getPositionForLineColumn:function(e,t){var i=this.getLineNode(e-1);return d.assert(i,"Caret requested for invalid line!"),i.getPositionFromOffset(t-1)},getRangeForLineColumn:function(e,t,i,n){var o=this.getPositionForLineColumn(e,t),r=this.getPositionForLineColumn(i,n),a=new A(o,r);return x.trimRange(a)},getRangeForLine:function(e){var t=this.getLineNode(e-1);return new A(t.startPosition(),t.endPosition())},getFullRange:function(){return new A(this.root.startPosition(),this.root.endPosition())},_getOrCreateEditablePosition:function(e,t){if(d.isEdgeOfTextLevelContainer(e,t)&&(e.containsTextNodes()||(t+=e.offsetInContainer(e.parent),e=e.parent)),e.isTextNode()&&!e.isReadOnly()&&!d.isTextLevelContainer(e))return new w(e,t);if(e.textContainer().isReadOnly())return new w;var i=t>0?e.nextSibling():e.previousSibling();return i?!i.isTextNode()||i.isReadOnly()||d.isTextLevelContainer(i)?this._insertDefaultTextNode(e,t>0?"after":"before"):new w(i,t>0?0:i.maxOffset()):this._insertDefaultTextNode(e,t>0?"after":"before")},_insertDefaultTextNode:function(e,t){var i=this.createNode(e.textContainer().getDefaultChild());return this._insertNode(i,e,t),new w(i,0)},insertBreakInTextNode:function(e,t){var i=this._getOrCreateEditablePosition(e,t);if(e=i.getNode(),t=i.getOffset(),!e)return null;var n=e.textContainer();if(n.isReadOnly())return null;var o=this.getLineNumber(n.rootContainer()),r=o;n.isRootContainer()&&(r+=1);var a=e.offsetInContainer()+t,s=p.create(o,r,a);this.onPreDocumentChanged(s);var l=!(0===t&&!e.previousSibling()),c=(n=this._splitContainerInNode(n,e,t,!0,l)).startNode();return c.nextSibling()&&c.isEmpty()&&this.mergeTextNodeWithSibling(c.nextSibling()),s.line=this.getLineNumber(n.rootContainer()),{newNode:n,event:s}},_ensureMaxTextLength:function(e,t){t=t||0;var i=null;if(e.isTextNode())for(var n=e.getText();n.length>this.MAX_NODE_TEXT_LENGTH;){if(e.containsTextNodes()){var o;for(o=e.children.length-1;o>=0;o-=1)this._ensureMaxTextLength(e.children[o]);break}var r=a.findSafeSplitLocation(n,this.MAX_NODE_TEXT_LENGTH);e=this._splitTextNodeAt(e,r),t<r?i||(i=e):t-=r,n=(e=e.nextSibling()).getText()}},deleteSelection:function(e){d.assert(e,"Selection should never be null at this point.");var t,i=this.getLineNumber(e.startNode.rootContainer()),n=this.getLineNumber(e.endNode.rootContainer()),o=e.endNode.offsetInContainer()+e.endPos,r=e.isLocal;if(!r){var a=new w(e.startPosition.node,e.startPosition.offset,!1);a.setLive(!0);var s=new w(e.endPosition.node,e.endPosition.offset,!0);s.setLive(!0),t=n-i}this.onPreDocumentChanged();var l=e.startNode;if(l===e.endNode?l.isTextNode()&&!l.containsTextNodes()?this._deleteRangeInNodeAndMerge(l,e.startPos,e.endPos):0===e.startPos&&e.endPos===l.maxOffset()&&this.deleteNodeAndMerge(l):this._deleteRangeBeyondNodeAndMerge(e),!r){var c=this.getLineNumber(s.getNode().rootContainer())-this.getLineNumber(a.getNode().rootContainer());a.destroy(),s.destroy();var u=c-t!=0&&t<=1||!c;return h.create(i,n,o,u)}return h.create(i,n,o,!0)},_deleteRangeBeyondNodeAndMerge:function(e){var t=e.startNode,i=e.endNode,n=e.endNode.rootContainer().previousSibling()===e.startNode.rootContainer(),o=d.isAtEndOfContainer(e.startPosition,e.startNode.rootContainer()),r=d.isAtStartOfContainer(e.endPosition,e.endNode.rootContainer());if(!(o&&r&&n)){t=(e=this._splitAtSelection(e,!0)).startNode.prevNode(),i=e.endNode.nextNode();var a={node:t,offset:t.maxOffset(),endNode:i,endOffset:0};this.deleteRange(e.startNode,e.endNode,a)}var s=!t.textContainer().isRootContainer(),l=new w(i,0);if(t.rootContainer()!==i.rootContainer()&&(this._canMergeContainerWithSibling(i.rootContainer())?l=this._mergeContainerWithSibling(i.rootContainer()):i.rootContainer().isEmpty()&&this.deleteNode(i.rootContainer(),{node:t,offset:t.maxOffset()})),t.rootContainer()&&(s&&t.textContainer()!==i.textContainer()&&this._canMergeContainerWithSibling(i.textContainer())&&(l=this._mergeContainerWithSibling(i.textContainer())),t.textContainer()===l.getNode().textContainer())){if(this.mergeTextNodeWithSibling(t,!0),this.mergeTextNodeWithSibling(i),t.isEmpty()){var c=t.nextSibling();c&&this.mergeTextNodeWithSibling(c)}d.isInTextLevelContainer(t)&&this.mergeTextNodeWithSibling(t.parent,!0),d.isInTextLevelContainer(i)&&this.mergeTextNodeWithSibling(i.parent)}},_deleteRangeInNodeAndMerge:function(e,t,i){var n=e.previousSibling(),o=e.nextSibling();if(0===t&&i===e.maxOffset()&&(n||o))return this.deleteNodeAndMerge(e);this.deleteText(e,t,i)},deleteNodeAndMerge:function(e){var t=this.deleteNode(e);t.previousSibling&&t.nextSibling&&this.mergeTextNodeWithSibling(t.nextSibling)},deleteRange:function(e,t,i){if(t&&t!==e){var n=e?e.textContainer():t.textContainer();e=e||n.children[0];var o=t.textContainer();n===o&&e.parent===t.parent?(this._deleteRangeInContainer(n,e,t,i),0===n.children.length&&this.deleteNode(n,i)):(n=this.splitContainerAtNode(e.rootContainer(),e,!0,!0),o=this.splitContainerAtNode(t.rootContainer(),t,!1,!0),this._deleteRangeInContainer(this.root,n,o,i))}else this.deleteNode(e,i)},_deleteRangeInContainer:function(e,t,i,n){if(!t&&!i)return void this._emptyNode(e,n);t=t||e.firstChild(),i=i||e.lastChild(),d.assert(t.parent===i.parent,"startNode and endNode must have the same parent.");const o=t.parent,r=o.children,a=r.indexOf(t),s=t===i?a:r.indexOf(i),l=this._getNodeCollapseInfo(t,i,n),c=r.slice(a,s+1);this._notifyDeleteNodesAndChildren(c,l.collapseTo);const u=new V(this,o,a,s-a+1);this._executeCommand(u)},createNode:function(e,t){return t=t||{},"string"==typeof e&&(t.className=e,e=t),this._deserializeNode(e)},cloneNode:function(e,t){return this._deserializeNode(this.serialize(e))},cloneNodeWithoutChildren:function(e){var t=this.serialize(e);t.children&&t.children.length>0&&(t.children=[]);var i=this._deserializeNode(t);return i.resetUniqueAttributes(),i},_notifyInsertNodes:function(e,t,i){let n;d.assert(e.length>0,"Must insert some nodes."),n="after"===i?{node:t.endNode(),offset:t.endNode().maxOffset()}:{node:t.startNode(),offset:0};const o=S.getNodesAndAllDescendents(e),r=g.create(o,n.node,n.offset,n.endNode,n.endOffset),a=_.create(e,t),s=new H(this,r,a);this._executeCommand(s)},_notifyDeleteNodesAndChildren:function(e,t){if(!e||0===e.length)return;const i=S.getNodesAndAllDescendents(e);this._notifyDeleteNodes(i,t)},_notifyDeleteNodes:function(e,t){t=t||{node:null,offset:0};const i=g.create(e,t.node,t.offset,t.endNode,t.endOffset),n=_.create(e),o=new H(this,n,i);this._executeCommand(o)},_emptyNode:function(e,t){this._notifyDeleteNodesAndChildren(e.children,t),e.empty()},_insertContainerRange:function(e,t){var i=(e=this._deserializeNodes(e)).length;if(0===i.length)return{insertionNotAllowed:!1,newPosition:null,event:[]};var n,o,r=t.getLine()-1,a=t.node.rootContainer(),s="after",l=!0,c=!1,d="";a.isEmpty()?(n=a,l=!1):t.node===a.startNode()&&0===t.offset?(s="before",l=!1,c=!0):t.node===a.endNode()&&t.offset===t.node.maxOffset()||(this._splitContainerInNode(a,t.node,t.offset),s="before",c=!0);var u=this._convertRelationToIndex(a,s);this._insertChildren(u.parentNode,e,u.index);for(var h=0;h<i;h+=1){var p=e[h];d+=p.getText()+(h<i-1?"\n":""),p.isTextContainerNode()&&(p.children.length?p.children.forEach((function(e){e.isTextContainerNode()&&!e.children.length&&this._insertDefaultTextNode(e,"first")}),this):this._insertDefaultTextNode(p,"first")),p.children&&p.children.forEach(this._ensureMaxTextLength,this)}this._notifyInsertNodes(e,a,s);var g=e[0],m=e[e.length-1];if(l){var _=g.previousSibling();_&&this._canSpliceContainers(g,_)&&(o=this._mergeContainerWithSibling(g),g.parent||g!==m||(m=o.node.rootContainer()))}if(o=m.endPosition(),c){var v=m.nextSibling();v&&(o=m.isEmpty()||this._canSpliceContainers(m,v)?this._mergeContainerWithSibling(v):v.startPosition())}n&&this.deleteNode(n,{node:m.startNode(),offset:0});var b=this.getLineNumber(o.getNode().rootContainer()),y=this.getLineNode(r);return{insertionNotAllowed:!1,newPosition:o,event:[f.create(r,b,new w(y,0),d)]}},_insertNodeRange:function(e,t){var i=l.isCodeContainer(t.node)||l.isNonExecutableCodeContainer(t.node),n=e.map((function(e){var n=this._deserializeNode(e);if(!n)return null;if(i){var o=this._insertionRuleService.getRulesForNode(n),r=t.getNode().rootContainer();if(o.canInsertInContainer(r))return n;var a=d.DEFAULT_TEXT_NODE;a.text=n.getText().replace(/[\r\n]+$/," "),n=this.createNode(a)}return n}),this);if(0===(n=n.filter((function(e){return!!e&&!e.isEmpty()}))).length)return{insertionNotAllowed:!0,newPosition:t,event:[]};var o=this.insertAtPosition(n,t);return{insertionNotAllowed:o.insertionNotAllowed,newPosition:o.insertedRange?o.insertedRange.getEndPosition():null,event:o.events}},insertContent:function(e,t){return n.assert(e.length>0),e.some((function(e){var t=this._deserializeNode(e);return t&&t.isTextContainerNode()}),this)?this._insertContainerRange(e,t):this._insertNodeRange(e,t)},_splitTextNodeAt:function(e,t,i,n,o,r){var a,s,l,c,d,u;if(!n&&(0===t||t>=e.maxOffset()))return e;var h=this.cloneNode(e,o);i?(h.deleteText(t),c="before",d=0,u=t):(h.deleteText(0,t),c="after",d=t,u=e.text.length-t),s=b.create(h,e,d),a=new H(this,s,null),this._executeCommand(a),s=v.create(e,d,u),a=new H(this,s,null),this._executeCommand(a),a=new j(this,e,d,u,""),this._executeCommand(a);var p=this._convertRelationToIndex(e,c);return this._insertChildren(p.parentNode,[h],p.index),l=y.create(e,t,h,i,r),a=new H(this,null,l),this._executeCommand(a),e},_splitNodeAt:function(e,t,i,n,o){if(e.isTextNode()&&!d.isTextLevelContainer(e))return this._splitTextNodeAt(e,t,i,n,!1,o);if(e.isOpaqueNode()){var r,a;if(!n||n&&e.isReadOnly())return e;var s=e.textContainer().getDefaultChild();if(!s)return e;var l=this.createNode(s);return 0===t?(r=e.previousSibling(),a=e,r||(this._insertNodeAtPosition(l,new w(e,t)),r=l)):(r=e,(a=e.nextSibling())||(this._insertNodeAtPosition(l,new w(e,t)),a=l)),i?a:r}if(!e.children)return e;if(0===t&&i||t>=e.children.length||!i&&t===e.children.length-1)return e;var c=this.cloneNodeWithoutChildren(e);i?(c.children=this.removeChildren(e,0,t).slice(0),this._insertNode(c,e,"before")):(c.children=this.removeChildren(e,t+1,e.children.length-t-1).slice(0),this._insertNode(c,e,"after"));var u=b.create(c,e,t),h=y.create(e,t,c,!0,o),p=new H(this,u,h);return this._executeCommand(p),e},_splitContainerAtPosition:function(e){var t=e.getNode().rootContainer(),i=e.getLineColumn(),n=1===i.column||i.column===t.maxOffset()+1,o=n?-1:0,r=0===e.getOffset(),a=e.getOffset()===e.getNode().maxOffset();return r||a?this.splitContainerAtNode(t,e.getNode(),r,n,o):e.getNode().isInstanceOf(P)?this.splitContainerAtNode(t,e.getNode(),!1,!0,o):this._splitContainerInNode(t,e.getNode(),e.getOffset()),{first:this.getLineNode(i.line-1),second:this.getLineNode(i.line)}},splitContainerAtNode:function(e,t,i,n,o){i&&!t.previousSibling()?t=this._splitNodeAt(t,0,!0,n,o):i||t.nextSibling()||(t=this._splitNodeAt(t,t.maxOffset(),!1,n,o));for(var r=!0;r;){var a=t.parent;(a.isRootContainer()||a===e)&&(r=!1);var s=this.getLineNumber(t,a);t=this._splitNodeAt(a,s,i,!1,o)}return t},_splitContainerInNode:function(e,t,i,n,o){var r=!1,a=0;if(i>0&&i>=t.maxOffset()){var s=t.nextSibling();s?(t=s,i=0):(r=!0,a=1)}else 0!==i||t.previousSibling()||(0===t.maxOffset()&&t.nextSibling()?t=t.nextSibling():(r=!0,a=-1));var l=!t.isOpaqueNode();if(!d.isTextLevelContainer(t)&&d.isEdgeOfTextLevelContainer(t,i)){var c=t.parent.previousSibling();0===i&&t.maxOffset()>0&&c?(d.isTextLevelContainer(c)||(i=(t=t.parent.previousSibling()).maxOffset()),l=!1):i>0&&t.parent.nextSibling()&&(t=t.parent.nextSibling(),i=0,l=!1)}l&&(t=this._splitTextNodeAt(t,i,!0,r,o,a));for(var u=t.parent,h=this._getChildIndex(t,u);u;){var p=this._splitNodeAt(u,h,!0,!1,a);if(u===e||!u.parent)break;u=u.parent,h=this._getChildIndex(p,u)}return n?u:u.previousSibling()},_splitAtSelection:function(e,t){var i=e.startNode,n=e.endNode,o=t&&(0===e.endPos&&!n.previousSibling()||e.endPos===n.maxOffset()&&!n.nextSibling());o||0===e.endPos&&n.previousSibling()&&(n=n.previousSibling(),e.endPos=n.maxOffset()),n=this._splitNodeAt(n,e.endPos,!1,o);var r=e.startPos===e.startNode.maxOffset();if(e.isLocal?(t=t&&(!n.previousSibling()||!n.nextSibling()),n=i=this._splitNodeAt(n,e.startPos,!0,t)):(i=e.startNode,t=t&&(!i.previousSibling()||!i.nextSibling()),i=this._splitNodeAt(i,e.startPos,!0,t)),e.startNode=i,r&&!t){var a=i.nextSibling();a?(e.startNode=a.startNode(),e.startPos=0):e.startPosAtEnd=!0}else e.startPos=0;return e.endNode=n,e.endPos>0?e.endPos=n.maxOffset():e.endPosAtStart=!0,e},_splitForInsertion:function(e){var t,i=e.getNode(),n=e.getOffset();if(e.isAtLeftEdge())return{firstPart:i.previousSibling(),secondPart:i};if(e.isAtRightEdge())return{firstPart:i,secondPart:i.nextSibling()};if(i.isTextNode()&&!d.isTextLevelContainer(i))return{firstPart:t=this._splitTextNodeAt(i,n,!1,!1,!1,!1),secondPart:t.nextSibling()};var o=i.getEquivalentChildPositions(n)[0],r=(t=this._splitForInsertion(o).firstPart)?this._getChildIndex(t,i):0,a=this.cloneNodeWithoutChildren(i);a.children=this.removeChildren(i,r+1,i.children.length-r-1).slice(0),this._insertNode(a,i,"after");var s=y.create(i,r,a,!0,!1),l=new H(this,null,s);return this._executeCommand(l),{firstPart:i,secondPart:a}},mergeTextNodeWithSibling:function(e,t){var i=t?e.nextSibling():e.previousSibling(),n=t?e.maxOffset():0;return i&&(!i.isEmpty()||(this.deleteNode(i,{node:e,offset:n}),i=t?e.nextSibling():e.previousSibling()))?!e.isTextNode()||d.isTextLevelContainer(e)||i.className!==e.className||e.readOnly||i.readOnly?new w(e,n):0===e.getText().length?this._mergeEmptyTextNodeWithSibling(e,t):!0===e.compareStyleAttributes(i)?this._mergeTextNodeWithSibling(e,t):new w(e,n):new w(e,n)},_mergeEmptyTextNodeWithSibling:function(e,t){var i=t?e.nextSibling():e.previousSibling(),n=t?e.maxOffset():0;if(this.changeNodeAttributes(e,{cssClass:null}),e.parent.children.length>1){this._insertTextInNode(e,i.text,0),this.changeNodeAttributes(e,i.getStyleAttributes()),this.onNodeChange(b.create(i,e,0));var o=t?0:e.maxOffset(),r={node:e,offset:o};this.deleteNode(i,r)}return new w(e,n)},_mergeTextNodesInRange:function(e){for(var t,i=e.getStartPosition().getNode(),n=e.getEndPosition().getNode(),o=i.rootContainer(),r=n.rootContainer(),a=e.getStartPosition().getLineColumn().column-1,s=e.getEndPosition().getLineColumn().column-1,l=i;l;){if(t=this.mergeTextNodeWithSibling(l),this._ensureMaxTextLength(l),l===n){this.mergeTextNodeWithSibling(l,!0),this._ensureMaxTextLength(l);break}l=t.getNode().nextNode()}var c=o.getPositionFromOffset(a),d=r.getPositionFromOffset(s);return new A(c,d)},_mergeTextNodeWithSibling:function(e,t){var i,n,o,r,a,s,l=t?e.nextSibling():e.previousSibling(),c=t?e.maxOffset():0,d=e.getText(),u=l.getText();if(d.length+u.length>=this.MAX_NODE_TEXT_LENGTH)return new w(e,c);t?(i=new j(this,e,e.text.length,0,u),this._executeCommand(i),r=!1,s=d.length,a=d.length):(i=new j(this,e,0,0,u),this._executeCommand(i),o=b.create(e,e,u.length),i=new H(this,null,o),this._executeCommand(i),r=!0,s=0,a=u.length,c=u.length),o=b.create(l,e,s),n=y.create(e,a,l,r,void 0),i=new H(this,n,o),this._executeCommand(i);var h=this._getChildIndex(l,l.parent);return this.removeChildren(l.parent,h,1),new w(e,c)},_mergeContainerWithSibling:function(e,t){var i,n;if(t?(i=e.nextSibling(),n=new w(e.endNode(),e.endNode().maxOffset())):(i=e.previousSibling(),n=new w(e.startNode(),0)),!i)return n;if(i.isEmpty()){if(e.isEmpty())return n=new w(i.startNode(),0),this.deleteNode(e,n),n;n=t?new w(e.endNode(),e.endNode().maxOffset()):new w(e.startNode(),0),this.deleteNode(i,n)}else{var o=this.containerType(i.textContainer());if(o!==this.containerType(e)&&(e=this.convertParagraph(o,e),o!==this.containerType(e)))return n;n=t?this.spliceContainers(e,i):this.spliceContainers(i,e)}return n},spliceContainers:function(e,t){var i,n=this.removeChildren(t).slice(0);i=e.children.length,this._insertChildren(e,n,i);var o=y.create(e,i,t),r=b.create(t,e,void 0),a=new H(this,o,r);return this._executeCommand(a),this.deleteNode(t,{node:e,offset:0}),this.mergeTextNodeWithSibling(e.children[i])},_canMergeContainerWithSibling:function(e,t){if(e.isReadOnly())return!1;var i=t?e.nextSibling():e.previousSibling();return!(!i||i.isReadOnly())&&(e.className===i.className?!e.canMergeContainerWithSibling||e.canMergeContainerWithSibling(e,i):!(!i.isEmpty()&&!e.isEmpty())||!(!e.isTextContainerNode()||!i.isTextContainerNode()))},_canSpliceContainers:function(e,t){return!e.isReadOnly()&&!t.isReadOnly()&&(!(!t.isEmpty()||e.childrenAreContainers)||e.className===t.className&&(!e._canSpliceContainers||e._canSpliceContainers(e,t)))},containerType:function(e){var t="none";return e&&e.containerType&&(t=e.containerType()),t},convertParagraph:function(e,t){if(this.containerType(t)===e)return t;if(!t.isTextContainerNode())return t;var i=null,n=null,o=this.createContainerForType(e);if(!o)return t;if(i=o.container,n=o.textContainer||i,t.firstChild().isTextContainerNode())return t;if(l.isCodeContainer(t)||l.isCodeContainer(n)){var r=F.createTextNodeForContainer(t.getText().replace(/(\r\n|\n|\r)/gm," "),n);return n.addChild(r),this._insertNodeWithEvent(i,t,"before"),this.deleteNode(t,{node:r,offset:0}),this._ensureMaxTextLength(r),i}return this._insertNode(i,t,"before"),this.spliceContainers(n,t),i},createContiguousRange:function(e,t,i){var n={startNode:e.getNode(),startPos:e.getOffset(),endNode:t.getNode(),endPos:t.getOffset(),isLocal:e.getNode()===t.getNode()},o=this._splitAtSelection(n,i);return{startNode:o.startNode,endNode:o.endNode}},_buildEventList:function(e,t,i,n){var o,r=[],a=[],s=[],l=e.getStartPosition(),c=l.getNode().rootContainer(),d=e.getEndPosition(),u=d.getNode().rootContainer(),h=l.getLineColumn().line===d.getLineColumn().line,g=c===i[0],m=u===i[i.length-1];if(h&&0===i.length){if(0===(o=this._createTextInsertionEventsForRange(l,d)).length){var _=this.getLineNumber(l.getNode().rootContainer());o.push(f.create(_,_,l,""))}return o}if(g||(r=this._createTextInsertionEventsForRange(l,c.endPosition())),m||(s=this._createTextInsertionEventsForRange(u.startPosition(),d)),n){var v=l.getLineColumn().line-1,b=l.getLineColumn().column-1;a.push(p.create(v,v+1,b))}return i.forEach((function(e){var i,n,o=this.getLineNumber(e);t?(i=o-1,n=e.previousSibling().maxOffset()):(i=o,n=e.maxOffset());var r,s=e.startPosition(),l=e.endPosition();r=s.getLine()!==o||l.getLine()!==o?[]:this._createTextInsertionEventsForRange(s,l),t||(a=a.concat(r)),a.push(p.create(i,i+1,n)),t&&(a=a.concat(r))}),this),o=r.concat(a).concat(s)},_createTextInsertionEventsForRange:function(e,t){for(var i,n,o,r=[],a=!e.isAtLeftEdge(),s=!t.isAtRightEdge(),l=e.getNode(),c=t.getNode().nextNode();l&&l!==c;){if(o=this.getLineNumber(l.rootContainer()),i=l.getText(),n=0,s&&l===t.getNode()&&(n=0,i=i.substr(0,t.getOffset())),a&&l===e.getNode()&&(n=e.getOffset(),i=i.substr(n)),i.length>0||l.isOpaqueNode()){var d=new w(l,n);r.push(f.create(o,o,d,i))}l=l.nextNode()}return r},serializePlugin:function(){return{content:this.serialize(),state:this._documentState,readOnly:this.isReadOnly()}},deserializePlugin:function(e,t){this.deserialize(e.content),this.setReadOnly(e.readOnly),this._documentState=e.state,t.configureDocument(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2409),i(2410),i(2411),i(2412),i(2413),i(469),i(2414),i(2415)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{serialize:function(e,t){return e.serialize(t)},deserialize:function(l,c){let d;switch(l.type){case r.DELETE_NODE:d=e.create();break;case r.DELETE_TEXT:d=t.create();break;case r.INSERT_NODE:d=i.create();break;case r.INSERT_TEXT:d=n.create();break;case r.MERGE_NODE:d=o.create();break;case r.SPLIT_NODE:d=a.create();break;case r.UPDATE_ATTRIBUTES:d=s.create()}return d.deserialize(l,c),d}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6861)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.linenumberservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(6862),i(237),i(274),i(313),i(282)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(i,{constructor:function(e,i){this._internalDocument=e,this._lineNumberService=i,this._activePositions=s.createSet(),this.own(t.after(this._internalDocument,"onNodeChange",a.updatePositions.bind(this),!0))},createPosition:function(e,t,i,o){var r=new n(e,t,i,this._lineNumberService);return o||(r.updateLineColumn(),this._registerActiveUpdate(r)),r},deletePosition:function(e){e.destroy()},createPositionAtLineColumn:function(e,t,i,n){var r=this._internalDocument.getLineNode(e);o.assert(r,"Line "+e+" does not exist.");var a=r.getPositionFromOffset(t);return o.assert(a,"Offset "+t+" does not exist in line "+e+"."),this.createPosition(a.getNode(),a.getOffset(),i,n)},createLinePosition:function(e,t,i){var o=e.rootContainer(),r=new n(o,0,t,this._lineNumberService);return r.setIgnoreOffset(),i||(r.updateLineColumn(),this._registerActiveUpdate(r)),r},createLinePositionInLine:function(e,t,i){var n=this._internalDocument.getLineNode(e);return o.assert(n,"Line "+e+" does not exist."),this.createLinePosition(n,t,i)},getLinePositionsForNodeRange:function(e,t,i){return r.getParagraphNodesInRange(e,t).map((function(e){return this.createLinePosition(e,!1,i)}),this)},updatePositionsAndEmitChangeEvents:function(){this._activePositions.forEach((function(e){e.updateLineColumn()}),this),a.firePendingEvents()},_registerActiveUpdate:function(e){this._activePositions.add(e);var i=t.after(e,"destroy",function(){this._activePositions.delete(e),i.remove()}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2421)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i,n){this._lineLookupService=n},_getLine:function(e){return this._lineLookupService.getLineNumber(e)},setPosition:function(e,t){this.inherited(arguments),this.updateLineColumn()},updateLineColumn:function(){var e=this.getLineColumn(),t=e.line-1!==this.line,i=e.column-1!==this.column;(t||i)&&(this.line=e.line-1,this.column=e.column-1,this.onChange({lineHasChanged:t,columnHasChanged:i}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{addChangeListener:function(e){this._listeners?(Array.isArray(this._listeners)||(this._listeners=[this._listeners]),this._listeners.push(e)):this._listeners=e},removeChangeListener:function(e){if(this._listeners!==e){if(Array.isArray(this._listeners)){var t=this._listeners.indexOf(e);-1!==t&&(this._listeners.splice(t,1),0===this._listeners.length&&delete this._listeners)}}else delete this._listeners},dispatchChangeEvent:function(e){if(this._listeners)if(Array.isArray(this._listeners))for(var t=0,i=this._listeners.length;t<i;t++)this._listeners[t](e);else this._listeners(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6865)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.position.controller","rtc.document.eventcache"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(249),i(260),i(364)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(t,{constructor:function(e,t,n){this._internalDocument=e,this._positionController=t,this._documentEventCache=n,this.own(i.after(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0))},onChange:function(e){},notifyPreDeletion:function(e,t){return this.onPreDeletion(e,t)},onPreDeletion:function(e,t){},_handleDocumentChanged:function(e){this._positionController.updatePositionsAndEmitChangeEvents(),this._emitTranslatedDocumentChangeEvents(e)},_emitTranslatedDocumentChangeEvents:function(e){e=e||[];var t=[],i=this._documentEventCache.getLengthChangeEvent();null!==i&&t.push(i);var a=o.getEventsOfType(e,n.READONLY_STATE_CHANGE_EVENT);t=t.concat(a);var s=this._documentEventCache.finalLineRangeFromEvents();t.push(r.create(s.startLine,s.endLine)),this.onChange(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6867)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.internaldocument","rtc.undoredo.editblock"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e,t,i){this._internalDocument=t,this._cursorControllerWrapper=e,this._editBlockController=i},startBlockEdit:function(e){this._cursorControllerWrapper.callMethodOnEachInstance("suspendUpdates");var t=this.startEdit(e);return this._internalDocument.startBlockEdit(t),t},endBlockEdit:function(e){this.endEdit(),this._internalDocument.endBlockEdit(e),this._cursorControllerWrapper.callMethodOnEachInstance("activateUpdates")},startEdit:function(e){return this._editBlockController.startEdit(e)},endEdit:function(){this._editBlockController.endEdit()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6869)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.code.codetextservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(207),i(6870),i(234),i(237),i(6871),i(1095)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(i,{constructor:function(e,t){this._internalDocument=e,this._codeTextService=t},getEndOfDocumentLineColumn:function(){var e=this.getLinePropertiesArray(),t=e[e.length-1].content;return new a(e.length,t.length+1)},getLinePropertiesArray:function(){var e,t=this.getNumberOfLines(),i=[];for(e=0;e<t;e+=1){var n=this._internalDocument.getLineNode(e),o={content:n.getText(),readOnly:this.isReadOnly()||n.isReadOnly()};i.push(o)}return i},getLineText:function(e){r.checkLineExists(this._internalDocument,e);var t=this._internalDocument.getLineNode(e-1);return t?t.getText():""},getLineLength:function(e){return this.getLineText(e).length},getNumberOfLines:function(){return this._internalDocument.getMaxLineNumber()},getState:function(){return this._internalDocument.getState()},getText:function(){var e=this._internalDocument.root;return e&&e.getText?e.getText():""},getTextCharacters:function(e,i,n){t.assert(e>=0,"lineNumber should be a positive integer"),t.assert(i>=0,"startColumn should be a positive integer"),t.assert(n>0,"length should be a positive integer");var o=this.getLineText(e+1),r="";return o&&i+n<=o.length&&(r=o.substr(i,n)),r},isReadOnly:function(){return this._internalDocument.isReadOnly()},isReadOnlyLine:function(e){var t=this._internalDocument.getLineNode(e-1);return this.isReadOnly()||t.isReadOnly()},getCodeText:function(){return this._codeTextService.getCodeText()},getCodeTextForRange:function(e){var t=new n;return new s(t).traverseRange(e),t.getText()},isLineCode:function(e){var t=this._internalDocument.getLineNode(e-1);return o.isCodeContainer(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(1209)],o=i.dj.d(n,(function(e,t,i){return e(i,{visitLeafNode:function(e,i,n){t.isExecutableCodeLine(e.rootContainer())&&(this._text+=e.getCodeText().slice(i,n))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t){this.line=e||1,this.column=t||1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6873)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller","rtc.internaldocument","rtc.document.editblockcontroller"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(237),i(260),i(403),i(670)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(t,{constructor:function(e,t,i){this._internalDocument=t,this._cursorControllerWrapper=e,this._documentEditBlockController=i},onPreInsertText:function(e,t){},insertText:function(e,t,i){if(this._isDocumentAndLineReadOnly(t))return!1;this._cursorControllerWrapper.callMethodOnEachInstance("holdCursors");var n=this.insertTextRespectingReplacement(e,t,i,!1);return this._cursorControllerWrapper.callMethodOnEachInstance("resetCursors"),n},insertTextRespectingReplacement:function(e,t,i,o){var r=this._documentEditBlockController.startEdit(),a=this._internalDocument.getPositionForLineColumn(t,i),s=this._insertText(e,a,o);return s?(r.appendUndoEvents(n.translateEventsForUndo(s.event)),r.appendRedoEvents(s.event),this._documentEditBlockController.endEdit(),this._internalDocument.emitDocumentEvents(s.event),!0):(this._documentEditBlockController.endEdit(),!1)},_insertText:function(e,t,n){var o=this.onPreInsertText(e,t);return o||e.search(i.NewLineRegex)>=0?this._insertMultilineText(e,t,o):this._insertPlainText(e,t,n)},_insertMultilineText:function(e,t,n){var o={};n||(n=i.textToContent(e,t.getNode()));var r=this._internalDocument.insertContent(n,t);return!r.insertionNotAllowed&&(o.newPosition=r.newPosition,o.event=r.event?[].concat(r.event):null,o)},_insertPlainText:function(e,t,i){var n,o={},a=r.createTextNodeForPosition(e,t);return!(n=i?this._internalDocument.insertDuringReplace(a,t):this._internalDocument.insertAtPosition(a,t)).insertionNotAllowed&&(o.newPosition=n.insertedRange.getEndPosition(),o.event=n.events,o)},insertBreakAt:function(e,t){var i=this._internalDocument.getLineNode(e-1).getPositionFromOffset(t-1);this._cursorControllerWrapper.callMethodOnEachInstance("holdCursors");var n=this._documentEditBlockController.startBlockEdit(),r=this.insertBreakAtPositionWithoutAnEditBlock(i),a=r.event;if(a){n.appendRedoEvents([o.create(a.startLine,a.endLine,1)]),n.appendUndoEvents([o.create(a.startLine,a.endLine,-1)]);var s=a?[].concat(a):null;this._internalDocument.emitDocumentEvents(s)}return this._documentEditBlockController.endBlockEdit(n),this._cursorControllerWrapper.callMethodOnEachInstance("resetCursors"),!!r.event},insertBreakAtPositionWithoutAnEditBlock:function(e){var t,n,o=null,a=e,s=e.getNode(),l=s.rootContainer(),c=i.isAtStartOfContainer(a,l),d=i.isAtEndOfContainer(a,l),u="\n"===l.CHILD_TEXT_SEPARATOR;if(!c&&!d||u||l.isEmpty()){var h=a.getNode(),p=a.getOffset();if(!s.isTextNode()){if(h=r.createTextNodeForPosition("",a),!(t=this._internalDocument.insertAtPosition(h,a)).insertedRange)return!1;var f=t.insertedRange.getEndPosition();h=f.getNode(),p=f.getOffset()}if(!(t=this._internalDocument.insertBreakInTextNode(h,p))||!t.newNode)return!1;o=t.newNode.startPosition(),n=t.event}else{var g=this._internalDocument.cloneNodeWithoutChildren(l),m=r.createTextNodeForContainer("",g),_=s.getStyleAttributes();if(m.updateAttributes(_),g.addChild(m),(t=this._internalDocument.insertAtPosition(g,a)).insertionNotAllowed)return!1;d?o=t.insertedRange.getStartPosition():c&&(o=t.insertedRange.getEndPosition()),n=t.events[0]}return{newPosition:o,event:n}},insertContentAt:function(e,t){var i={newPosition:null,wasSuccessful:!1};if(this._internalDocument.isReadOnly())return i;var o=this._documentEditBlockController.startEdit(),r=this._internalDocument.insertContent(e,t);i.newPosition=r.newPosition;var a=r.event;return 0===a.length?(this._documentEditBlockController.endEdit(),i):(o.appendRedoEvents(a),o.appendUndoEvents(n.translateEventsForUndo(a)),this._documentEditBlockController.endEdit(),this._internalDocument.emitDocumentEvents(a),i.wasSuccessful=!0,i)},setReadOnly:function(e){this._internalDocument.isReadOnly()!==e&&(this._internalDocument.setReadOnly(e),this._cursorControllerWrapper.callMethodOnEachInstance("emitUpdate"))},setText:function(e){this._internalDocument.isReadOnly()||this._internalDocument.openTextDocument(e,!1)},_isDocumentAndLineReadOnly:function(e){var t=this._internalDocument.getLineNode(e-1).isReadOnly();return this._internalDocument.isReadOnly()||t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1392)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.serializer"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6876)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(209),i(319),i(521),i(300),i(524),i(362)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(r,{_CHILD_TYPE:"PlainTextNode",constructor:function(e){this._nonPlainTextObjects=[],this._decorationviewmodel=e},write:function(e,t){n.assert(t.serializers,"Required argument missed: 'serializers'");var i,r=document.createElement(this.getXMLType()),s=a.createXMLElement(!1),l=a.createParagraphProperty(this.getXMLType());s.appendChild(l);for(var c=0;c<e.length;c++)if(e[c].anchorId){i=e[c].anchorId;break}if(i){var d=a.createBookmarkStart(o.BOOKMARK_PREFIX+i,i);s.appendChild(d)}var u=t.serializers.getSerializer(this._CHILD_TYPE);if(t.codeDecoration)this._writeSyntaxHighlightedCodeLine(e,s,u);else{var h={text:"",className:""};e.forEach((function(e,t){this._writeCodeAndCacheNonPlainTextObjects(e,h,t)}),this),h.text=h.text.slice(0,-1),s.appendChild(u.write(h))}if(this._writeNonPlainText(t.serializers,s),r.appendChild(s),i){var p=a.createBookmarkEnd(i);s.appendChild(p)}return r},_writeSyntaxHighlightedCodeLine:function(e,t,n){e.forEach((function(e){e.children.forEach((function(e){for(var o=i.create(s.SPAN),r=l.getSyntaxHighlightingForExport(e.node,this._decorationviewmodel),a=l.createViewForTextNode(e.text,r,o),c=0;c<a.childNodes.length;c++)t.appendChild(n.write(a.childNodes[c]))}),this)}),this)},_writeNonPlainText:function(e,t){this._nonPlainTextObjects.forEach((function(i){var n=e.getSerializer(i.className);t.appendChild(n.write(i))}),this),this._nonPlainTextObjects=[]},read:function(e,t,i){var n=[],r=i.getSerializer(this._CHILD_TYPE).read(e);return r.readObject.forEach((function(e){var t={className:this.getNodeType(),children:[]};t.children.push(e),n.push(t)}),this),e.forEach((function(e){for(var r=e.getElementsByTagNameNS(o.NAMESPACE_URL,o.CUSTOM_XML_TAG),s=0;s<r.length;s++){var l=a.getClassName(r[s]),c=i.getSerializer(l);n=c.read(r[s],t,n)}var d=a.getBookmarkStart(e);d&&d.id&&(n[0].anchorId=d.id)}),this),r=r.readStatus,{readObject:n,readStatus:!0}},_writeCodeAndCacheNonPlainTextObjects:function(e,t,i){e.children.forEach((function(e){t.text+=e.text,t.className=this._CHILD_TYPE,t.node=e.node,e.className!==this._CHILD_TYPE&&(e.startOffsetLine=i,e.endOffsetLine=i,this._nonPlainTextObjects.push(e))}),this),t.text=t.text+"\n"},getXMLType:function(){return"code"},getNodeType:function(){return"LineNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6878)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(300),i(319),i(574)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{write:function(e){var t=i.createXMLElement(n.RUN_OF_TEXT_TAG_NAME),o=i.createXMLElement(n.TEXT_TAG_NAME),r=document.implementation.createDocument(n.NAMESPACE_URL,"textDocument",null);return this._hasCDATAEndingSequence(e.text)?this._modifyTextNodeWithEndingSequence(r,o,e.text):o.appendChild(this._createCDATASection(r,e.text)),t.appendChild(o),t},read:function(e){var t=!0,i=[];return e.forEach((function(e){var n=this._readCodeParagraph(e);i=n.readObject,t=t&&n.readStatus}),this),{readObject:i,readStatus:t}},_readCodeParagraph:function(e){var t=[],o=e.getElementsByTagNameNS(n.NAMESPACE_URL,n.RUN_OF_TEXT_TAG_NAME);return i.getTextFromRun(o[0]).split("\n").forEach((function(e){var i={};i.className=this.getNodeType(),i.text=e,t.push(i)}),this),{readObject:t,readStatus:!0}},_createCDATASection:function(e,t){return e.createCDATASection(t)},_createCDATASectionForEndingCharacter:function(e,t){var i=e.createCDATASection("]]");t.appendChild(i);i=e.createCDATASection(">"),t.appendChild(i)},_hasCDATAEndingSequence:function(e){return!!e.match(/]]>/g)},_modifyTextNodeWithEndingSequence:function(e,t,i){for(;i&&-1!==i.indexOf("]]>");){var n=i.indexOf("]]>");if(0!==n){var o=i.slice(0,n);t.appendChild(this._createCDATASection(e,o))}this._createCDATASectionForEndingCharacter(e,t),-1===(i=i.substring(n+3)).indexOf("]]>")&&""!==i&&t.appendChild(this._createCDATASection(e,i))}},getXMLType:function(){return"PlainTextNode"},getNodeType:function(){return"PlainTextNode"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6880)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.nodes.contentconverter.converter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1577)],o=i.dj.d(n,(function(e,t){return e(t,{_classNameToConstructor:null,constructor:function(e){this._initializeRecursiveConverter(e),this._classNameToConstructor={},e.forEach((function(e){var t=e.getApplicableNodeClass(),i=t.prototype.className;this._classNameToConstructor[i]=t}),this)},pack:function(e){return this._getConverter(e).pack(e)},unpack:function(e){var t=this._classNameToConstructor[e.className],i=this._getConverterByConstructor(t);try{return i.unpack(e)}catch(e){return null}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6882)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(323),i(498)],o=i.dj.d(n,(function(e,t,i){return e(i,{getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6884)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(389),i(731)],o=i.dj.d(n,(function(e,t,i){return e(i,{getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6886)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(547),i(498)],o=i.dj.d(n,(function(e,t,i){return e(i,{getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6888)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(323),i(424),i(390)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_compatibleParents:[],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return t},getTopLevelInsertionInstruction:function(e,t,i,o,r){return e.isLinePosition()?{insertInRoot:{relationToPosition:n.RELATION.AFTER}}:r.isAtLeftEdge()?{insertInRoot:{relationToPosition:n.RELATION.BEFORE}}:r.isAtRightEdge()?{insertInRoot:{relationToPosition:n.RELATION.AFTER}}:{insertInRoot:{insertionPosition:r}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6890)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(270),i(672),i(424),i(390),i(920),i(6891),i(918),i(347)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([o],{_compatibleParents:[l],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return n},getReceivingInstruction:function(e){if(e.isAtEdge())return new a;var t=e.getNode(),n=new i(t,t.maxOffset());return new s(n)},getTopLevelInsertionInstruction:function(e,t,i,n,o){return{insertInRoot:{relationToPosition:r.RELATION.AFTER,containerConstructor:c}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(919),i(390)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){if(!e||!e.isValid())throw new Error("MW.rtc.plugins.insertionrules.receivinginstructions.ContinueAtPositionInstruction: Invalid position");this._type=i.RECEIVING_INSTRUCTION.CONTINUE_AT_POSITION,this._position=e},getPosition:function(){return this._position}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6893)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(323),i(389),i(424),i(390)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{_compatibleParents:[i],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return n},getTopLevelInsertionInstruction:function(e,t,n,o,a){return{insertInRoot:{relationToPosition:r.RELATION.AT,containerConstructor:i}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6895)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(573),i(818)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){},getApplicableNodeClass:function(){return t},isConvertibleTo:function(e){return!1},isConvertibleFrom:function(e){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6897)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(470),i(818)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(){},getApplicableNodeClass:function(){return t},isConvertibleTo:function(e){return e.prototype.isInstanceOf(t)},isConvertibleFrom:function(e){return e.isInstanceOf(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6899)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(915)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._codeText=""},getCodeText:function(){return this._ensureBuilt(),this._codeText},_build:function(){this._codeText=this._internalDocument.root.getCodeText()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6901),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.focusnotifier","rtc.focusservice"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t){this._focusNotifierWrapper=e,this._focusServiceWrapper=t,this._currentViewId=null,this._currentViews=[],this.own(i.after(this._focusNotifierWrapper,"onPluginAdded",this._handleOnViewAdded.bind(this),!0)),this.own(i.after(this._focusNotifierWrapper,"onPluginRemoved",this._handleOnViewRemoved.bind(this),!0)),this._listeners={}},_handleOnViewAdded:function(e,t){this._listeners[t]=i.after(e,"onFocus",function(){var e=this._focusServiceWrapper.getCurrentInstance();this._currentViewId=t,e!==this._focusServiceWrapper.getCurrentInstance()&&e.setBlur(),this.onCurrentViewChange()}.bind(this)),this._currentViews.push(t),this._currentViewId||(this._currentViewId=t)},_handleOnViewRemoved:function(e,t){this._listeners[t].remove(),delete this._listeners[t],this._currentViews.splice(this._currentViews.indexOf(t),1),this._currentViewId===t&&(this._currentViewId=this._currentViews[0]||null,this.onCurrentViewChange())},onCurrentViewChange:function(){},getCurrentViewId:function(){return this._currentViewId},setFocus:function(){this._focusServiceWrapper.getCurrentInstance().setFocus()},setBlur:function(){this._focusServiceWrapper.getCurrentInstance().setBlur()},destroy:function(){for(var e in this._listeners)this._listeners.hasOwnProperty(e)&&this._listeners[e].remove();this._listeners={},this._currentViews=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6903)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e){this._promise=new i,this.own(o.after(e,"onDocumentReset",t.hitch(this,"onViewReset"))),this.own(o.after(this,"onViewReady",t.hitch(this,"onViewReset")))},onViewReady:function(){this._promise.resolve()},whenViewReady:function(e){this._promise.then(e,(function(e){}))},onViewReset:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6905)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.scrollpane"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(616)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._scrollPane=e,this.inherited(arguments)},contributeToContextMenu:function(e){return this._scrollPane.contains(e)?this.inherited(arguments):{}},_getMenuItemsToContribute:function(e,t){var i=[];return this.groupMenuItemsMap[e].forEach((function(e){this._filterMenuItemFromContextMenu(e,t)||i.push(e)}),this),i},_filterMenuItemFromContextMenu:function(e,t){return this.hiddenActionsList.indexOf(e.actionId||e.label)>=0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(205),i(6907)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.cursor","rtc.keyhandler","rtc.view.movehiddenkeycapture"]}},isApplicable:function(){return!1},createInstance:function(e,t,i){return new n(e,t,i)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(225),i(211),i(217),i(213),i(208),i(206),i(248),i(209),i(6908)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([],{DEFAULT_RTC_LINE_HEIGHT:18,HIDE_GRIPPER_TIMEOUT:5e3,constructor:function(e,i,n){this._view=e,this._keyHandler=n,this._cursor=i,this._cursorGripperView=new u(e,i),this._cursorMover=this._cursorGripperView.getCursorMover(),this._anchorMover=this._cursorGripperView.getAnchorMover(),this._listeners=[],this._addMoverListeners(this._cursorMover),this._addMoverListeners(this._anchorMover),this._listeners.push(l(this._view.getDomtarget(),c.release,t.hitch(this,"_showMovers"))),this._listeners.push(s.after(this._keyHandler,"onKeyPress",t.hitch(this,"_hideMovers"))),this._listeners.push(s.after(this._cursor,"hide",t.hitch(this,"_hideMovers"))),this._listeners.push(s.after(this._cursor,"onChange",t.hitch(this,(function(){this._cursor.hasSelection()&&!this._cursor.isHidden()&&this._cursorGripperView.showMovers()})))),this._listeners.push(s.after(this._view,"onLayoutChange",t.hitch(this,(function(e){this._cursorGripperView.updateLayerSizes()})))),this._hideMovers(),this._startListeningForRtcCursorChanges()},destroy:function(){this._listeners.forEach((function(e){e.remove()})),this._stopListeningForRtcCursorChanges(),this._cursorGripperView.destroy()},_addMoverListeners:function(e){var t=this;this._listeners.push(s.after(e,"onMoveStart",(function(){t._stopListeningForRtcCursorChanges(),t._cursorGripperView.updateLayerSizes()}))),this._listeners.push(s.after(e,"onMoveStop",(function(){t._startListeningForRtcCursorChanges(),t._showMovers(),document.activeElement!==t._keyHandler.keyCapture&&t._keyHandler.focus()}))),this._listeners.push(s.after(e,"onMove",(function(){t._updateRtcCursorBasedOnMovers(),t._showMovers()}))),this._listeners.push(l(e.node,c.press,this._stopEvent))},_stopEvent:function(e){e.stopPropagation(),e.preventDefault()},_showMovers:function(){var e=this;this._cursorHiderTimeout&&window.clearTimeout(this._cursorHiderTimeout),this._cursorHiderTimeout=window.setTimeout((function(){e._cursorHiderTimeout=null,e._cursor.hasSelection()||e._cursorGripperView.hideMovers()}),this.HIDE_GRIPPER_TIMEOUT),e._updateMoversBasedOnRtcCursor(),e._cursorGripperView.showMovers()},_hideMovers:function(){this._cursorHiderTimeout&&window.clearTimeout(this._cursorHiderTimeout),this._cursorHiderTimeout=null,this._cursorGripperView.hideMovers()},_startListeningForRtcCursorChanges:function(){this._stopListeningForRtcCursorChanges(),this._cursorListener=s.after(this._cursor,"onChange",t.hitch(this,"_updateMoversBasedOnRtcCursor")),this._updateMoversBasedOnRtcCursor()},_stopListeningForRtcCursorChanges:function(){this._cursorListener&&this._cursorListener.remove()},_updateMoversBasedOnRtcCursor:function(){var e,t,i;try{this._cursor.hasSelection()?(e=(i=this._cursor.getCoordinatesOfSelection()).startCoords,t=i.endCoords,e.x-=this._anchorMover.node.offsetWidth/2,t.x-=this._cursorMover.node.offsetWidth/2):((t=this._cursor.getCursorCoordinates()).x-=this._cursorMover.node.offsetWidth/2,e=t),this._anchorMover.node.style.left=e.x+"px",this._anchorMover.node.style.top=e.y+this._getEffectiveLineHeight(e)+"px",this._cursorMover.node.style.left=t.x+"px",this._cursorMover.node.style.top=t.y+this._getEffectiveLineHeight(t)+"px"}catch(e){}},_updateRtcCursorBasedOnMovers:function(){var e,t;e={x:this._anchorMover.node.offsetLeft,y:this._anchorMover.node.offsetTop},t={x:this._cursorMover.node.offsetLeft,y:this._cursorMover.node.offsetTop},e.x+=this._anchorMover.node.offsetWidth/2,e.y-=this._getEffectiveLineHeight(e)/3,t.x+=this._cursorMover.node.offsetWidth/2,t.y-=this._getEffectiveLineHeight(t)/3,this._cursor.setSelectionFromCoordinates({startCoords:e,endCoords:t})},_getEffectiveLineHeight:function(e){var t=this._view.getPositionFromCoordinate(e),i=this._view.getCoordinateForPosition(t);return i?i.height:this.DEFAULT_RTC_LINE_HEIGHT}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(210),i(217),i(208),i(6909),i(6910)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(null,{STYLES:{LAYER:"cursorGripperLayer",GRIPPER:"cursorGripper"},constructor:function(e,t){this._view=e,this._cursor=t,this._layer=i.create("div",{class:this.STYLES.LAYER}),e.addLayer(this._layer),this._setUpMovers()},destroy:function(){this._cursorMover.destroy(),this._anchorMover.destroy()},_setUpMovers:function(){this._cursorDragger=i.create("div",{class:this.STYLES.GRIPPER},this._layer),this._anchorDragger=i.create("div",{class:this.STYLES.GRIPPER},this._layer);var e={mover:a};this._cursorMover=new s(this._cursorDragger,e),this._anchorMover=new s(this._anchorDragger,e)},getCursorMover:function(){return this._cursorMover},getAnchorMover:function(){return this._anchorMover},hideMovers:function(){this._layer.style.visibility="hidden"},showMovers:function(){this._layer.style.visibility="visible"},updateLayerSizes:function(){var e=this._view.getDocumentDimension(),t={h:e.height,w:e.width};o.setMarginBox(this._layer,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(713)],o=i.dj.d(n,(function(e,t){return e([t],{onMouseMove:function(e){var t=this.marginBox;this.host.onMove(this,{l:t.l+e.pageX,t:t.t+e.pageY},e),e.preventDefault(),e.stopPropagation()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(213),i(2038)],o=i.dj.d(n,(function(e,t,i,n){return e(n.constrainedMoveable,{area:"content",constructor:function(e,n){var o=n&&n.area;this.constraints=function(){var e=this.node.parentNode,n=i.getComputedStyle(e),r=t.getMarginBox(e,n);if("margin"==o)return r;var a=t.getMarginExtents(e,n);return r.l+=a.l,r.t+=a.t,r.w-=a.w,r.h-=a.h,"border"==o?r:(a=t.getBorderExtents(e,n),r.l+=a.l,r.t+=a.t,r.w-=a.w,r.h-=a.h,"padding"==o||(a=t.getPadExtents(e,n),r.l+=a.l,r.t+=a.t,r.w-=a.w,r.h-=a.h,r.l-=this.node.offsetWidth,r.w+=this.node.offsetWidth),r)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6912)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.cutcopypaste.mimeconverters"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(221),i(209),i(274),i(314)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(null,{constructor:function(e){this._registeredNodeHandlers=[],this._registeredPasteHandlers=[],this._registeredMimeHandlers=[],e.forEach((function(e){this.registerMimeHandler(e.getType(),i.hitch(e,e.convertFromMimeData),e.priority())}),this)},registerMimeHandler:function(e,t,i){o.assert(i>=0&&i<=100,"Priority must be in the range 0..100."),this._registeredMimeHandlers.push({handler:t,mimeType:e,priority:i}),this._registeredMimeHandlers=this._registeredMimeHandlers.sort((function(e,t){return t.priority-e.priority}))},getRegisteredMimeTypes:function(){var e=[];return this._registeredMimeHandlers.forEach((function(t){"Unicode String"!==t.mimeType&&e.push(t.mimeType)})),e},registerNodeConverter:function(e,t){this._registeredNodeHandlers.push({nodeClass:e,handler:t})},registerPasteHandler:function(e,t){this._registeredPasteHandlers.push({nodeClass:e,handler:t})},insertContentInDocumentAtPosition:function(e,t){var i=r.getLineage(e.getNode());return this._doInsert(i,null,e,t)},insertContentInDocumentAtSelection:function(e,t){var i=r.getCommonAncestors(e.getStartPosition().getNode(),e.getEndPosition().getNode());return this._doInsert(i,e,null,t)},_doInsert:function(e,t,i,n){return this._getPasteHandlersHelper(e).some((function(e){return e.call(null,t,i,n)}),this)},_getPasteHandlersHelper:function(e){for(var t=[],i=e.length-1;i>=0;i-=1)for(var n=e[i];n;)t=this._getPasteHandlersForNode(n,t),n=n.parent;return t},_getPasteHandlersForNode:function(e,t){return this._registeredPasteHandlers.forEach((function(i){e.isInstanceOf(i.nodeClass)&&t.indexOf(i.handler)<0&&t.push(i.handler)})),t},convertToClipboard:function(e){Array.isArray(e)||(e=[e]);var t=this._getContentMapForSelectionArray(e);return this._convertContentMapToMIMEData(t)},_getContentMapForSelectionArray:function(e){var t={};if(e.forEach((function(e){var i=this._getContentMapForSelection(e);Object.keys(i).forEach((function(e){t[e]=this._mergeFlavorContent(e,t[e],i[e])}),this)}),this),e.length>1){var i={};i[a.TEXT]=i[a.COPY_FOR_COMMAND_WINDOW]=t[a.TEXT],t=i}return t},_getContentMapForSelection:function(e){return r.getCommonAncestors(e.getStartPosition().getNode(),e.getEndPosition().getNode()).reduce(i.hitch(this,"_collectContentForNode",e),{})},_mergeFlavorContent:function(e,t,i){if(!t)return i;var n=t;return e===a.TEXT&&(n+="\n"+i),n},_convertContentMapToMIMEData:function(t){return e.map(Object.keys(t),(function(e){return{flavor:e,content:t[e]}}))},_collectContentForNode:function(e,t,n){return this._getConverterForNode(n).reduce(i.hitch(this,(function(t,i){var n=i.call(null,e);return this._mergeMIMEDataIntoMap(n,t)})),t)},_mergeMIMEDataIntoMap:function(e,t){return e.forEach((function(e){void 0!==e.content?t[e.flavor]=e.content:delete t[e.flavor]}),this),t},_isHtmlOnMac:function(e){return n("mac")&&-1!==e.indexOf("html")},_getConverterForNode:function(e){var t=[];return this._registeredNodeHandlers.forEach((function(i){e.isInstanceOf(i.nodeClass)&&t.push(i.handler)})),t},convertContentFromSource:function(e){var t;return this._registeredMimeHandlers.some((function(i){var n=i.mimeType,o=e(n);if(o)return t=i.handler(o)})),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6914)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cutcopypaste.converter","rtc.cursor"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1209),i(803),i(547),i(314)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e,i){this._cursor=i,e.registerNodeConverter(o,t.hitch(this,"_convertToText"))},_convertToText:function(e){var t=new i;new n(t).traverseSelection(e);var o=t.getText();return[{flavor:r.TEXT,content:o},{flavor:r.COPY_FOR_COMMAND_WINDOW,content:o}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1579)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6917)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(1579)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._cursor=e},convertFromMimeData:function(e){var i=this._cursor.selectionInfo();return t.isCodeRange(i.startNode,i.endNode)?this.inherited(arguments):null},priority:function(){return 60}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6919)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(237),i(314),i(1579)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{getType:function(){return i.UNICODE_STRING},priority:function(){return 11}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(205),i(6921)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{requires:function(){return{isApplicable:[],createInstance:["rtc.cursor","rtc.keyhandler"]}},isApplicable:function(){return!1},createInstance:function(e,t){return new n(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208)],o=i.dj.d(n,(function(e,t,i){return e(null,{REFOCUS_DELAY:0,constructor:function(e,n){this._cursor=e,this._keyHandler=n,this._handler=i.after(this._cursor,"onUpdate",t.hitch(this,"onCursorUpdate"))},destroy:function(){this._handler.remove(),this._timeout&&window.clearTimeout(this._timeout)},onCursorUpdate:function(){var e=this;this._timeout&&window.clearTimeout(this._timeout),this._timeout=window.setTimeout((function(){e._timeout=null,e._doUpdateVirtualKeyboard()}),this.REFOCUS_DELAY)},_doUpdateVirtualKeyboard:function(){document.activeElement===this._keyHandler.keyCapture&&this._cursor.hasSelection()!==this._virtualKeyboardShowsSelection&&this._refocus()},_refocus:function(){this._keyHandler.keyCapture.blur(),this._keyHandler.keyCapture.focus(),this._virtualKeyboardShowsSelection=this._keyHandler.keyCapture.selectionEnd-this._keyHandler.keyCapture.selectionStart>0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6923)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.cursor","rtc.cursorcontroller"]}},createInstance:function(e,t,n){return new i(e,t,n)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(242),i(208),i(221),i(206),i(248),i(477),i(527),i(933),i(1428),i(6924),i(6925)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(h,{constructor:function(e,t,n){var o;this._cursor=t,this._cursorController=n,this._view=e,this._isGestureEnabled=!0,o=e.getDomtarget(),this._gestureDetector=new l(o);var s=c.tapmove({options:{pointerTypes:[d.MOUSE,d.PEN],numTaps:0},callbacks:{began:i.hitch(this,(function(e,t){r("mac")&&e.srcEvent.ctrlKey?this._handleGesture(e.srcEvent,t,i.hitch(this,"_handleSecondaryDown")):this._handleGesture(e.srcEvent,t,i.hitch(this,"_handleSingleDown")),this.onMouseDown(e.srcEvent)})),recognized:i.hitch(this,(function(e){this.onMouseUp(e.srcEvent)}))}}),h=c.tapmove({options:{pointerTypes:[d.MOUSE,d.PEN],numTaps:0,button:u.RIGHT},callbacks:{began:i.hitch(this,(function(e,t){this._handleGesture(e.srcEvent,t,i.hitch(this,"_handleSecondaryDown")),this.onMouseDown(e.srcEvent)})),recognized:i.hitch(this,(function(e){this.onMouseUp(e.srcEvent)}))}}),p=c.tap({options:{pointerTypes:[d.TOUCH],numTaps:1},callbacks:{recognized:i.hitch(this,(function(e,t){this._handleGesture(e.srcEvent,t,i.hitch(this,"_onTap"))}))}}),f=c.tapmove({options:{pointerTypes:[d.MOUSE,d.PEN],numTaps:1,tapDelay:500,maxHold:500,maxRadius:2},callbacks:{began:i.hitch(this,(function(e,t){this._handleGesture(e.srcEvent,t,i.hitch(this,"_onTapDown")),this.onMouseDown(e.srcEvent)})),recognized:i.hitch(this,(function(e){this.onMouseUp(e.srcEvent)}))}}),g=c.tapmove({options:{pointerTypes:[d.MOUSE,d.PEN],numTaps:2,tapDelay:500,maxHold:500,maxRadius:2},callbacks:{began:i.hitch(this,(function(e,t){this._handleGesture(e.srcEvent,t,i.hitch(this,"_onDoubleTapDown")),this.onMouseDown(e.srcEvent)})),recognized:i.hitch(this,(function(e){this.onMouseUp(e.srcEvent)}))}});g.getCoordinator().prevents(f),g.getCoordinator().prevents(s),f.getCoordinator().prevents(s),s.getCoordinator().prevents(h),this._gestureDetector.add([g,f,s,p,h]),this.own(a(o,"selectstart",i.hitch(this,"_handleSelectStart"))),this._focusHandle=a.pausable(o,"focus",i.hitch(this,"onFocus")),this.own(this._focusHandle),r("chrome")||this.own(a.pausable(o,"focusin",i.hitch(this,this.onFocus)))},destroy:function(){this.inherited(arguments),this._gestureDetector.destroy(),this._gestureDetector=null},_handleGesture:function(e,t,i){if(this.isGestureEnabled()){var n=this._view.fixEvent(e);this._view.isFixedEventOutside(n)||(this._cursor.show(),i(e,t),p.collapseBrowserSelection())}},_handleSingleDown:function(e,t){this._view.isDraggable()&&this._cursorController.isEventInSelection(e)?this._startDragAction(e,t):(this.onFocus(),this._startSelectionAction(e,t),e.preventDefault())},_onTapDown:function(e,t){this._startWordSelectionAction(e,t),e.preventDefault()},_onDoubleTapDown:function(e,t){this._startLineSelectionAction(e,t),e.preventDefault()},_handleSecondaryDown:function(e,t){this._startSecondarySelectionAction(e,t)},_onTap:function(e,t){this._cursor.resetAction(),this._cursor.setCursorToEvent(e)},_startDragAction:function(e,t){var i=this;this._focusHandle.pause(),p.startDragActionForGesture(t,this._cursorController,this._view),t.onTemp({after:function(){i._focusHandle.resume(),i.onFocus()}})},_startSelectionAction:function(e,t){p.startSelectionActionForGesture(t,this._cursorController,this._view,e)},_startWordSelectionAction:function(e,t){p.startWordSelectionActionForGesture(t,this._cursorController,this._view,e)},_startLineSelectionAction:function(e,t){p.startLineSelectionActionForGesture(t,this._cursorController,this._view,e)},_startSecondarySelectionAction:function(e,t){p.startSecondarySelectionActionForGesture(t,this._cursorController,this._view,e)},_handleSelectStart:function(e){var t=e.target.tagName;"TEXTAREA"!==t&&"INPUT"!==t&&e.preventDefault()},disableGesture:function(){this._isGestureEnabled=!1},enableGesture:function(){this._isGestureEnabled=!0},isGestureEnabled:function(){return this._isGestureEnabled},onMouseDown:function(e){},onMouseUp:function(e){},onFocus:function(e){},onBlur:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{onMouseDown:function(e){throw new Error("Unimplemented API: onMouseDown")},onMouseUp:function(e){throw new Error("Unimplemented API: onMouseUp")},onFocus:function(e){throw new Error("Unimplemented API: onFocus")},onBlur:function(e){throw new Error("Unimplemented API: onBlur")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(242),i(221),i(1425)],o=i.dj.d(n,(function(e,t,i){var n=function(e,t,i){var n,r;n=e.fixEvent(t),(r=o(e,n))&&i.onMove(r.position,r.diffXY,n.layerY,n.offsetX)},o=function(e,i){var n,o;if(!t("mozilla")||0!==i.layerX||0!==i.layerY)return e.isFixedEventOutside(i)?(n=e.getFixedEventDirectionOutside(i),o=e.getFixedEventPositionAtBorder(i)):o=e.getPositionFromEvent(i),{diffXY:n,position:o}},r=function(){var t=e.global.getSelection();t.isCollapsed||t.collapseToStart()};return{startSelectionActionForGesture:function(e,t,i,o){var a,s=o,l=i.fixEvent(o),c=this._getPositionFromFixedEvent(l,i);a=o.altKey?t.startBlockSelectionAction(o,c,o.shiftKey,l.layerY,l.offsetX):t.startSelectionAction(o,c,o.shiftKey,o.layerY);var d=o.altKey;e.onTemp({progress:function(e){var o=e.srcEvent,u=o.altKey;if(!(d!==u))return n(i,o,a),void r();d=u,a=o.altKey?t.startBlockSelectionAction(s,c,s.shiftKey,l.layerY,l.offsetX):t.startSelectionAction(s,c,s.shiftKey,s.layerY),r()},recognized:function(e){a.resolve(),r()},cancelled:function(){a.cancel()},after:function(){r()}})},startWordSelectionActionForGesture:function(e,t,i,o){var a=i.fixEvent(o),s=this._getPositionFromFixedEvent(a,i),l=t.startGroupedSelectionAction(s,o.shiftKey,o.layerY,!0);e.onTemp({progress:function(e){var t=e.srcEvent;n(i,t,l),r()},recognized:function(e){l.resolve(),r()},cancelled:function(){l.cancel()},after:function(){r()}})},startLineSelectionActionForGesture:function(e,t,i,o){var a=i.fixEvent(o),s=this._getPositionFromFixedEvent(a,i),l=t.startGroupedSelectionAction(s,o.shiftKey,o.layerY,!1);e.onTemp({progress:function(e){var t=e.srcEvent;n(i,t,l),r()},recognized:function(e){l.resolve(),r()},cancelled:function(){l.cancel()},after:function(){r()}})},startSecondarySelectionActionForGesture:function(e,t,i,n){var o=i.fixEvent(n),a=this._getPositionFromFixedEvent(o,i),s=t.startSecondarySelectionAction(a,n.shiftKey,n.layerY);e.onTemp({recognized:function(){s.resolve()},cancelled:function(){s.cancel()},after:function(){r()}})},startDragActionForGesture:function(e,t,i){i.setDomTargetDraggable(!0);var n=t.startDragAction();e.onTemp({recognized:function(e){var t=e.srcEvent,o=i.fixEvent(t);i.isFixedEventOutside(o)||n.onUp(i.getPositionFromEvent(o)),n.resolve()},cancelled:function(){n.cancel()},after:function(){i.setDomTargetDraggable(!1),r()}})},preventDefaultIfTouchEvent:function(e){i.isTouchEvent(e)&&e.preventDefault()},collapseBrowserSelection:r,_getPositionFromFixedEvent:function(e,t){var i=t.getPositionFromEvent(e);if(i)return i;var n=t.getCoordinateFromEvent(e);return t.getPositionFromCoordinate(n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2004)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.document","rtc.internaldocument","rtc.keyhandler","rtc.shadowtextservice","rtc.view","rtc.view.movehiddenkeycapture"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6928)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.actionservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(720)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._document=e,t.loadActions(this._getActions())},_getActions:function(){return[{id:"rtc_insert_break",enabled:!0,key:"enter",callback:this._insertBreak.bind(this)},{id:"rtc_shift_insert_break",enabled:!0,key:"shift_enter",callback:this._insertBreakWithoutFormatting.bind(this)}]},_insertBreak:function(){this._document.insertBreak()},_insertBreakWithoutFormatting:function(){i.disableAutoIndent(),this._document.insertBreak(),i.restoreAutoIndent()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6930)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.insertionrule"]}},createInstance:function(e){return new i(e)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1102),i(390)],o=i.dj.d(n,(function(e,t,i){return e(null,{RECEIVING_INSTRUCTION:i.RECEIVING_INSTRUCTION,RELATION:i.RELATION,constructor:function(e){this._rules=new t(e)},destroy:function(){},getRulesForNode:function(e){var t=this._rules.get(e);if(!t)throw new Error("MW.rtc.plugins.insertionrules.InsertionRuleService: No rule for node of type: "+e.className);return t},isInstructionOfType:function(e,t){return e.getType()===t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(205),i(6932)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.left.margin","rtc.featureinterface","rtc.focusservice"]}},createInstance:function(e,t,i,o){return new n(e,t,i,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(210),i(211),i(213),i(206),i(209),i(207),i(716),i(373),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(l,{RIGHT_PADDING:3,_LAST_MARGIN_CSS:"last",constructor:function(e,n,r,s){this._view=e,this.marginContainer=o.create("div",{class:"leftMargin"}),this.lineMargin=o.create("div",{class:"rteGutter"},this.marginContainer),this.lineMargin.setAttribute("tabIndex",-1),this.margins=n,this._focusService=s,this._lastMarginIndex=-1,this.margins.sort(this.marginPriorityComparator),this.own(i.after(e,"onViewUpdated",t.hitch(this,"_handleViewUpdated"),!0)),this.margins.forEach((function(e){o.place(e.getMarginElement(),this.lineMargin),this.own(i.after(e,"onWidthChange",t.hitch(this,"update",!0)))}),this),this.own(i.after(r,"onEnableLineGutter",t.hitch(this,this.show,!0))),this.own(a(this.lineMargin,"focus",t.hitch(this,"_setFocus"))),c.redirectMouseScroll(this.lineMargin,e)},_setFocus:function(){this._focusService.setFocus()},_handleViewUpdated:function(e){0!==this.margins.length&&(d.hasVerticalScrollEvent(e)||d.hasSizingEvent(e)||d.hasLayoutEvent(e))&&this.update()},marginPriorityComparator:function(e,t){var i=t.priority()-e.priority();return s.assert(0!==i,"Duplicate priority of "+t.priority()+" found."),i},onResize:function(){},show:function(){r.set(this.lineMargin,{display:"block"}),this.lineMargin.hidden=!1},hide:function(){r.set(this.lineMargin,{display:"none"}),this.lineMargin.hidden=!0},update:function(e){var t,i=0;!e&&this.margins.length>0&&(t=u.getZeroBasedVisibleLineNumbers(this._view));let o=0;this.margins.forEach((function(n,r){e||n.update(null,t),n.isVisible()&&(o=r),n.getMarginElement().style.left=i+"px";var a=n.getWidth(),s=n.getHorizontalPadding();i=i+a+s}),this),i+=this.RIGHT_PADDING,this._hasWidthChanged(this.marginContainer.style.width,i)&&(this.marginContainer.style.width=i+"px",this.lineMargin.style.width=i+"px",this._width=i,this.onResize()),o!==this._lastMarginIndex&&(this._lastMarginIndex>=0&&n.remove(this.lineMargin.children[this._lastMarginIndex],this._LAST_MARGIN_CSS),n.add(this.lineMargin.children[o],this._LAST_MARGIN_CSS),this._lastMarginIndex=o)},_hasWidthChanged:function(e,t){return!e||Math.abs(parseFloat(e)-t)>1e-4},getWidth:function(){return this._width||10},getLineMargin:function(){return this.lineMargin}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(210),i(205),i(908)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{requires:function(){return{createInstance:["rtc.view","rtc.internaldocument","rtc.focusservice","margin.linenumberdecorator","margin.shared.decorations","margin.linenumber.decorations"]}},createInstance:function(e,n,r,a,s,l){var c=s.concat(l,[a]),d=new o(e,n,r,c,300,null);return i.add(d.getMarginElement(),"lineNumberMargin"),t.set(d.getMarginElement(),"data-testid","lineNumberMargin"),d}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6935)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.nodeconversionrule"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1577)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._initializeRecursiveConverter(e)},isNodeConvertibleTo:function(e,t){var i=this._getConverter(e),n=this._getConverterByConstructor(t);return i.isConvertibleTo(t)&&n.isConvertibleFrom(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6937)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.keyhandler","rtc.eventhandler","rtc.cursorcontroller","rtc.scrollpane"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,n,o,r){this._keyHandler=e,this._cursorController=o,this._eventHandler=n,this._domTarget=r,this.own(i.after(this._keyHandler,"onFocus",t.hitch(this,"_doFocus"))),this.own(i.after(this._keyHandler,"onBlur",t.hitch(this,"_doBlur"),!0)),this.own(i.after(this._eventHandler,"onFocus",t.hitch(this,"setFocus"))),this._showHideCursor=!0},_doFocus:function(){this._keyHandler.hasFocus()&&(this._showHideCursor&&this._cursorController.show(!0,!0),this.onFocus())},_doBlur:function(e){var t=e.relatedTarget;t&&this._domTarget!==t&&(this._showHideCursor&&this._cursorController.hide(),this.onBlur())},onFocus:function(){},onBlur:function(){},setFocus:function(){this._cursorController.positionsAreValid()||this._cursorController.reinitializeCursors(),this._keyHandler.focus()},setBlur:function(){this._keyHandler.blur(),this._showHideCursor&&this._cursorController.hide(),this.onBlur()},hasFocus:function(){return this._keyHandler.hasFocus()},setShowHideCursor:function(e){this._showHideCursor=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6939)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(915),i(282),i(469),i(234)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{constructor:function(e){this._lineToCodeLine=null,this._codeLineToLine=null,this._lineNodeToLineMap=null},_addListenersForCacheInvalidation:function(){this._addDocumentEventListenerForCacheInvalidation("onDocumentReset"),this.own(i.after(this._internalDocument,"onNodeChange",e=>{if(!this._outOfDate)switch(e.type){case r.INSERT_NODE:e.newNodes.some(e=>e.isRootContainer())&&(this._outOfDate=!0);break;case r.DELETE_NODE:e.nodes.some(e=>e.isRootContainer())&&(this._outOfDate=!0)}},!0,i.priority.INFRASTRUCTURE))},getCodeLineNumberFromLineNumber:function(e){return this._ensureBuilt(),this._lineToCodeLine[e]},getCodeLineNumberAtOrBeforeLineNumber:function(e){this._ensureBuilt();for(var t=e;t>=0;t--)if(this._lineToCodeLine[t]>-1)return this._lineToCodeLine[t];return 0},getCodeLineNumberAtOrAfterLineNumber:function(e){this._ensureBuilt();for(var t=e;t<this._lineToCodeLine.length;t++)if(this._lineToCodeLine[t]>-1)return this._lineToCodeLine[t];return 0},getLineNumberFromCodeLineNumber:function(e){this._ensureBuilt();var t=this._codeLineToLine[e];if(void 0===t){var i="LineNumberService: Invalid code line number "+e+". There are only "+this.getNumberOfCodeLines()+" lines of code.";throw new Error(i)}return t},getNumberOfCodeLines:function(){return this._ensureBuilt(),0===this._codeLineToLine.length?0:this._codeLineToLine.length-1},getLineNumber:function(e){this._ensureBuilt();var t=this._lineNodeToLineMap.get(e);return t>=0?t:-1},_build:function(){var e=this._internalDocument.root.children;this._lineToCodeLine=[],this._codeLineToLine=[],this._lineNodeToLineMap=o.createMap();var t=1;e.forEach((function(e,i){if(this._lineNodeToLineMap.set(e,i),a.isCodeContainer(e,!0)){var n=t++;this._lineToCodeLine[i]=n,this._codeLineToLine[n]=i}else this._lineToCodeLine[i]=-1}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6941)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document","rtc.cursor","rtc.divcaret","rtc.view","rtc.document.eventcache"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(260),i(6942)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e,n,r,a,s,l){this._internalDocument=e,this._document=n,this._cursor=r,this._rtcView=s,this._documentEventCache=l,this._view=new o(a,s),this._services=[],this._aspectHandles=[i.after(this._rtcView,"onLinesDOMUpdated",t.hitch(this,"_handleLinesDOMUpdated"),!0),i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleDocumentChanged"))]},_handleLinesDOMUpdated:function(e,t,i){i||this._updateLineRange(e,t)},_handleDocumentChanged:function(e){var t;if(e&&e.length>0)t=this._documentEventCache.finalLineRangeFromEvents();else{var i=this._cursor.getLineColumn().line-1;t={startLine:i,endLine:i}}t.startLine>=0&&t.endLine>=0&&this._updateLineRange(t.startLine,t.endLine)},_updateLineRange:function(e,t){this._services.filter((function(i){var n=i.position.getLineColumn();return n.line>=e+1&&n.line<=t+1})).forEach((function(e){e.updateCallback&&e.updateCallback(e.handle)}))},requestTextAfterCursor:function(e){var t=this._cursor.getLineColumn();return e.position=this._document.createPositionAtLineColumn(t.line-1,t.column-1,!0),this.requestTextAtPosition(e)},requestTextAtPosition:function(e){var t=e;return t.handle=this._getServiceHandle(t),this._services.push(t),this._view.drawView(t),t.handle},_getServiceHandle:function(e){return{position:e.position,remove:t.hitch(this,"_removeService",e),update:t.hitch(this,"_updateService",e)}},_updateService:function(e,t,i){e.text=t,e.domNodeToAppend=i||e.domNodeToAppend,this._view.redrawView(e)},_removeService:function(e){e.position.destroy();var t=this._services.indexOf(e);this._services.splice(t,1),this._view.removeView(e)},destroy:function(){for(this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[];this._services.length>0;)this._removeService(this._services[this._services.length-1])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(211)],o=i.dj.d(n,(function(e,t,i){return e(null,{_SHADOW_TEXT_CSS:"shadowText",constructor:function(e,t){this._divcaret=e,this._view=t,this._gutterNeedsUpdate=!1},drawView:function(e){var t=this._drawView(e);if(e.caretRightAligned){var i=this._view.getCoordinateForDomNode(t);i.x+=i.width,this._divcaret.updateCaretGeometry(this._divcaret._permanentLayer,i)}},_drawView:function(e){var t=this._createView(e.text,e.cssClass,e.domNodeToAppend);return e.viewHandle=this._view.insertDomNode(t,e.position,"first"),this._view.onLayoutChange(),t},redrawView:function(e){this._removeView(e),this.drawView(e)},removeView:function(e){e.viewHandle&&(this._removeView(e),e.viewHandle=null,e.cleanup=null)},_removeView:function(e){e.viewHandle&&(e.viewHandle.remove(),this._view.onLayoutChange()),e.cleanup&&e.cleanup(),this._gutterNeedsUpdate&&(this._view.onLayoutChange(),this._gutterNeedsUpdate=!1)},_createView:function(e,n,o){n=n||"";var r=i.create("span",{textContent:e,class:n,"data-testid":this._SHADOW_TEXT_CSS+n});return t.add(r,this._SHADOW_TEXT_CSS),o&&r.appendChild(o),-1!==e.indexOf("\n")&&(this._view.onLayoutChange(),this._gutterNeedsUpdate=!0),r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6944),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.view","hoverabletooltip","rtc.view.visibility","rtc.tooltipservice","rtc.focusservice","rtc.actionservice","rtc.domnode.mousedown"]}},createInstance:function(e,i,n,o,r,a,s,l){return new t(e,i,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(302),i(204),i(213),i(208),i(206),i(225),i(207),i(1957),i(234),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(s,{_HIDE_TOOLTIP_TIMEOUT:600,constructor:function(e,n,a,s,l,c,d,u){this._internalDocument=e,this._view=n,this._tooltipService=l,this._mouseDownNotifier=u;var h=[{id:"rtc_tooltip_close",key:"escape",enabled:!0,callback:this.cleanup.bind(this)}];if(d.loadActions(h),a&&this._sortPluginsBasedOnPriority(a),this._tooltipPlugins)for(var p=0;p<this._tooltipPlugins.length;p++)if("function"==typeof this._tooltipPlugins[p].onTooltipClose){this.own(t.connect(this._tooltipPlugins[p],"onTooltipClose",this,"cleanup"));break}this.own(o.after(s,"onHide",i.hitch(this,"cleanup"))),this.own(o.after(u,"onMouseDown",this._cleanupIfMouseNotInTooltip.bind(this))),this.own(o.after(c,"onBlur",this._cleanupIfMouseNotInTooltip.bind(this)));var f=this._view.getDomtarget();this.own(r(f,"mouseleave",this._handleMouseLeftWindow.bind(this))),this.own(r(f,"mouseenter",this._handleMouseEnteredWindow.bind(this))),this._initializeTooltip(),this._isMouseOutsideRTC=!1,this._currentTargetNode=null,this._currentTooltipPlugin=null,this._windowExitTimer=null,this._tooltipCloseTimer=null},_initializeTooltip:function(){this._tooltip=new l(this._view,this._internalDocument,{timeout:250}),this.own(this._tooltip),this.own(o.after(this._tooltip,"onTooltip",this._handleOnTooltip.bind(this),!0)),this.own(o.after(this._tooltip,"hideTooltip",this._handleHideTooltip.bind(this))),this.own(o.after(this._tooltip,"showTooltip",this._handleShowTooltip.bind(this))),this.own(o.after(this._tooltip,"onMouseLeave",this._handleMouseLeave.bind(this))),this.own(o.after(this._tooltip,"onMouseEnter",this._handleMouseEnter.bind(this)))},_handleOnTooltip:function(e,t){if(this._isActiveWindow()&&!this._tooltip.isMouseInTooltip()){var i=this.getPositionFromEvent(t);null!==i&&(this._currentTargetNode=e,this._sortPluginsBasedOnPriority(this._tooltipPlugins),this._tooltipPlugins.forEach((function(e){e.cleanupTooltipContent()})),this._displayTooltip(e,t,i,0))}},_handleHideTooltip:function(){this._tooltipServiceHandle&&(this._tooltipServiceHandle.remove(),this._tooltipServiceHandle=null),this._currentTooltipPlugin&&(this._currentTooltipPlugin.cleanupTooltipContent(),this._currentTooltipPlugin=null),this._clearWindowExitTimer()},_handleShowTooltip:function(){this._tooltipCloseTimer&&(clearTimeout(this._tooltipCloseTimer),this._tooltipCloseTimer=null),this._handleMouseLeaveListener=this._handleMouseLeave.bind(this),this._view.getNodeBox(this._currentTargetNode).addEventListener("mouseleave",this._handleMouseLeaveListener),this._clearWindowExitTimer()},_clearWindowExitTimer:function(){this._windowExitTimer&&(clearTimeout(this._windowExitTimer),this._windowExitTimer=null)},_isActiveWindow:function(){return!!a(".layeredNode").every((function(e){return"none"===n.get(e,"display")}))},getPositionFromEvent:function(e){var t=this._view.fixEvent(e),i=this._view.getCoordinateFromEvent(t);return null===i?null:this._view.getPositionFromCoordinate(i)},_displayTooltip:function(e,t,n,o){if(o>=this._tooltipPlugins.length)this.cleanup();else{var r=this._view.getNodeBox(e);if(e&&r&&r.contains(t.target)){var a=this._tooltipPlugins[o],s=function(r,s){var l=this._view.getNodeBox(e);if(l&&this._currentTargetNode&&this._currentTargetNode===e&&this.isStillHoveringOverTarget(l)&&n.isValid())if(r){var c={domNode:l};if(s){t=this._view.fixEvent(t);const e=l.getBoundingClientRect().left-this._view.getDomtarget().getBoundingClientRect().left;c.xOffset=t.layerX-e}this._tooltipServiceHandle=this._tooltipService.requestTooltip(i.hitch(this._tooltip,"showTooltip",r,c),i.hitch(this._tooltip,"hideTooltip"),this._tooltipService.PRIORITY.HOVER),this._currentTooltipPlugin=a}else this._displayTooltip(e,t,n,o+1)}.bind(this);try{a.getTooltipContent(e,n,s)}catch(e){d.assert(!1,"Resolving Tooltip failed: "+e)}}}},_handleMouseLeave:function(){this._tooltipCloseTimer&&(clearTimeout(this._tooltipCloseTimer),this._tooltipCloseTimer=null),this._tooltipCloseTimer=setTimeout(this._handleTooltipCloseTimeout.bind(this),this._HIDE_TOOLTIP_TIMEOUT)},_handleMouseEnter:function(){clearTimeout(this._tooltipCloseTimer),this._tooltipCloseTimer=null},_handleTooltipCloseTimeout:function(){this._tooltip.hideTooltip(),clearTimeout(this._tooltipCloseTimer),this._tooltipCloseTimer=null,this._removeListener(),this._currentTargetNode=null},_handleMouseLeftWindow:function(){this._isMouseOutsideRTC=!0,this._windowExitTimer=setTimeout(this._hideTooltipIfMouseStillOutsideRTC.bind(this),this._HIDE_TOOLTIP_TIMEOUT)},_hideTooltipIfMouseStillOutsideRTC:function(){this._cleanupIfMouseNotInTooltip()},_cleanupIfMouseNotInTooltip:function(){this._tooltip.isMouseInTooltip()||this.cleanup()},_handleMouseEnteredWindow:function(){this._isMouseOutsideRTC&&(this._isMouseOutsideRTC=!1,this._clearWindowExitTimer(),this._tooltipCloseTimer||this.cleanup())},isStillHoveringOverTarget:function(e){return!0},_sortPluginsBasedOnPriority:function(e){this._tooltipPlugins=e.sort((function(e,t){return t.priority()-e.priority()}))},_removeListener:function(){var e=this._view.getNodeBox(this._currentTargetNode);e&&e.removeEventListener("mouseleave",this._handleMouseLeaveListener)},cleanup:function(){var e=!1;return this._tooltip&&(this._tooltip.isShowing()&&(e=!0),this._tooltip.clearTooltip()),this._removeListener(),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6946)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.undoredo.controller","rtc.keyhandler"]}},createInstance:function(e,t,n){return new i(e,t,n)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(251)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(null,{constructor:function(e,o,r){this._actionService=e,this._undoRedoController=o,this._keyHandler=r;var a=[{id:n.UNDO_REDO.UNDO_ACTION,enabled:o.canUndo(),key:"ctrl_z",platformKey:{mac:"meta_z"},callback:t.hitch(this._undoRedoController,"undo")},{id:n.UNDO_REDO.REDO_ACTION,enabled:o.canRedo(),key:"ctrl_y",platformKey:{mac:"meta_shift_z"},callback:t.hitch(this._undoRedoController,"redo")},{id:n.UNDO_REDO.CLEAR_ACTION,enabled:!0,callback:t.hitch(this._undoRedoController,"clear")}];e.loadActions(a),this._addAdditionalKeyBindings(),this.aspectHandler=i.after(o,"onUndoRedoStackUpdated",t.hitch(this,"_updateActions"),!0)},_updateActions:function(e){this._actionService.updateAction(n.UNDO_REDO.UNDO_ACTION,{enabled:e.isUndoable}),this._actionService.updateAction(n.UNDO_REDO.REDO_ACTION,{enabled:e.isRedoable})},_addAdditionalKeyBindings:function(){this._keyHandler.addBinding({platformKey:{windows:"alt_backspace"}},n.UNDO_REDO.UNDO_ACTION),this._keyHandler.addBinding({platformKey:{windows:"alt_shift_backspace"}},n.UNDO_REDO.REDO_ACTION),this._keyHandler.addBinding({platformKey:{windows:"ctrl_shift_z"}},n.UNDO_REDO.REDO_ACTION)},destroy:function(){this.aspectHandler.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6948)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.undoredo.editblock","rtc.cursor","rtc.cursorcontroller"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(492),i(2422),i(496)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";return e([n,o],{constructor:function(e,n,o,r){this._undoStack=[],this._redoStack=[],this._transientBlock=null,this._lastNotDirty=0,this._internalDocument=e,this._cursor=o,this._cursorControllerWrapper=r,this.own(i.after(n,"onEndBlock",t.hitch(this,"_insert"),!0)),this.own(i.after(e,"onDocumentReset",t.hitch(this,"_reset"),!0))},markAsNotDirty:function(){this._lastNotDirty=this._undoStack.length},_resetNotDirty:function(){this._lastNotDirty=-1},_isNotDirtyState:function(){return this._lastNotDirty===this._undoStack.length},_update:function(){this.onUndoRedoStackUpdated({isUndoable:this.canUndo(),isRedoable:this.canRedo()})},_reset:function(){this.clear(),this._lastNotDirty=0},onUndoRedoStackUpdated:function(e){},onNotDirty:function(){},clear:function(){return this._undoStack=[],this._redoStack=[],this._transientBlock=null,this._update(),!0},canUndo:function(){return this._undoStack.length>0&&!this._internalDocument.isReadOnly()},canRedo:function(){return this._redoStack.length>0&&!this._internalDocument.isReadOnly()},undo:function(){if(!this.canUndo())return!1;var e=this._suspendCursors();this._transientBlock&&(this._transientBlock.unexecute(),this._transientBlock=null);var t=this._undoStack.pop();t.unexecute();var i=t.getUndoEvents();return i.length&&this._internalDocument.emitDocumentEvents(i),this._resumeCursors(e),this._redoStack.push(t),this._update(),this._isNotDirtyState()&&this.onNotDirty(),!0},redo:function(){if(!this.canRedo())return!1;var e=this._suspendCursors();this._transientBlock&&(this._transientBlock.unexecute(),this._transientBlock=null);var t=this._redoStack.pop();t.execute();var i=t.getRedoEvents();return i.length&&this._internalDocument.emitDocumentEvents(i),this._resumeCursors(e),this._undoStack.push(t),this._update(),this._isNotDirtyState()&&this.onNotDirty(),!0},_insert:function(e){var t=e.getBlockTypesForMergeAndAdvance();if(0!==this._undoStack.length||0!==this._redoStack.length||!(t.length>0||e.getType()===a.AUTO))if(this._redoStack.length>0&&e.getType()===a.AUTO)this._transientBlock?e.mergeWith(this._transientBlock):this._transientBlock=e;else{var i=this._undoStack[this._undoStack.length-1];i&&this._transientBlock&&this._transientBlock.mergeWith(i),this._transientBlock=null,i&&!this._isNotDirtyState()&&e.canMergeWith(i)?e.mergeWith(i):(this._lastNotDirty>this._undoStack.length&&this._resetNotDirty(),this._undoStack.push(e),this._redoStack=[],this._update()),this._mergeAndAdvance(t)}},_mergeAndAdvance:function(e){for(;e.length>0;){var t=this._undoStack[this._undoStack.length-1],i=this._undoStack[this._undoStack.length-2];if(!t||!i)break;if(t.mergeWith(i),this._undoStack.pop(),e.indexOf(i.getType())<0)break}},_suspendCursors:function(){return this._cursorControllerWrapper.callMethodOnEachInstance("suspendUpdates"),this._cursor.getAllInstances().filter((function(e){return!e.isSelectionHidden()&&(e.hideSelection(),!0)}),this)},_resumeCursors:function(e){e.forEach((function(e){e.showSelection()}),this),this._cursorControllerWrapper.forEach((function(e,t){e.emitUpdate(t,!0)}),this),this._cursorControllerWrapper.callMethodOnEachInstance("activateUpdates",[!0])},serializePlugin:function(e){return{undo:this._serializeStack(this._undoStack,e),redo:this._serializeStack(this._redoStack,e),lastNotDirty:this._lastNotDirty}},_serializeStack:function(e,t){return e.map(e=>e.serialize(t))},deserializePlugin:function(e,t){t.whenAllViewsReady(()=>{this._undoStack=this._deserializeStack(e.undo,t),this._redoStack=this._deserializeStack(e.redo,t),this._lastNotDirty=e.lastNotDirty,this._update()})},_deserializeStack:function(e,t){return e.map(e=>{const i=new r;return i.deserialize(e,t,this._internalDocument,this._cursorControllerWrapper),i})},destroy:function(){this.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(746),i(2416),i(2417),i(2418),i(2419),i(2423),i(2420)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{serialize:function(e,t){return e.map(e=>e.serialize(t))},deserialize:function(s,l,c,d){return s.map(s=>{let u;switch(s.type){case e.INSERT_CHILDREN:u=new t(c);break;case e.REMOVE_CHILDREN:u=new n(c);break;case e.REPLACE_TEXT:u=new o(c);break;case e.UPDATE_ATTRIBUTES:u=new a(c);break;case e.SET_CURSOR:u=new r,u.setCursorPlugin(d);break;case e.NODE_CHANGE:u=new i(c);break;default:throw new Error("Unsupported command type")}return u.deserialize(s,l),u})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(249),i(497),i(364),i(1090),i(1116),i(1144),i(945),i(1940),i(403),i(2407)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return{serialize:function(e,t){return e.map(e=>e.serialize(t))},deserialize:function(n,d){return n.map(n=>{let u;switch(n.type){case e.DELETION_EVENT:u=t.create(0,0);break;case e.FORMAT_CHANGE_EVENT:u=o.create(0,0);break;case e.INSERT_BREAK_EVENT:u=r.create(0,0);break;case e.INSERT_TEXT:u=a.create(0,0);break;case e.LINES_CHANGED:u=s.create(0,0,0,0);break;case e.NUMBER_OF_LINES_CHANGED:u=l.create(0,0);break;case e.READONLY_STATE_CHANGE_EVENT:u=c.create(0,0);break;default:u=i.create(0,0)}return u.deserialize(n,d),u})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6952)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.undoredo.editblock","rtc.cursorcontroller"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(2423),i(496)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{constructor:function(e,n){this._cursorControllerWrapper=n,this._lastPosition=null,this.own(i.after(e,"onStartBlock",t.hitch(this,"_onStartBlock"),!0)),this.own(i.after(e,"onBeforeEndBlock",t.hitch(this,"_onEndBlock"),!0))},_onStartBlock:function(e){e.getType()!==r.AUTO&&(!this._cursorControllerWrapper.getCurrentInstance().hasSelection()&&this._matchesLastPosition()||e.preventMerge(),e.appendCommand(new o(this._cursorControllerWrapper)))},_onEndBlock:function(e){e.getType!==r.AUTO&&(this._lastPosition=this._getPositions(),e.appendCommand(new o(this._cursorControllerWrapper,!0)))},_matchesLastPosition:function(){var e=this._getPositions();return this._lastPosition&&e.length===this._lastPosition.length&&e.every((function(e,t){return e.line===this._lastPosition[t].line&&e.column===this._lastPosition[t].column}),this)},_getPositions:function(){return this._cursorControllerWrapper.getCurrentInstance().getCursors(!0).map((function(e){return e.getPosition()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6954)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(2422),i(496)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(null,{constructor:function(){this._block=null},startEdit:function(e){return this._block?this._block.incrementReferenceCount():(this._block=new i(e),this.onStartBlock(this._block)),this._block},endEdit:function(){this._block.decrementReferenceCount()&&(this._block.hasSufficientCommands()?(this.onBeforeEndBlock(this._block),this.onEndBlock(this._block),this._block=null):this._block=null)},getActiveBlock:function(){return this._block},onStartBlock:function(e){},onEndBlock:function(e){},onBeforeEndBlock:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2052)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return!e.getAttribute("contenteditable")},requires:function(){return{isApplicable:["rtc.scrollpane"],createInstance:["rtc.cursor.view","rtc.view","rtc.cursorcontroller","rtc.focusnotifier"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6957)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.cursor.view","rtc.view","rtc.cursorcontroller","rtc.divselection.renderer","rtc.focusnotifier","rtc.backingstore","rtc.internaldocument","rtc.view.decoration"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(211),i(217),i(213),i(207),i(281),i(333),i(362),i(373)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(a,{_PX:"px",_MARGIN:15,_BLURRED_SELECTION_CLASS:"blurredSelection",_SELECTED_TEXT_CLASS:"selectedText",_SELECTION_GROUP_CLASS:"selectionGroup",constructor:function(e,o,r,a,l,c,d,u){this._rtcView=o,this._paddingLeft=this._rtcView.paddingLeft,this._cursorController=r,this._divSelectionRenderer=a,this._focusNotifier=l,this._isLiveCode=s.isLiveCodeFile(c),this._internalDocument=d,this._decorator=u.createDecorator(),this._layers=[],this._ranges=[],this._layer=n.create("span",{class:this._SELECTION_GROUP_CLASS}),this._rtcView.addLayer(this._layer),this._isLocked=!1,this._hidden=!1,this.own(i.after(e,"onUpdate",t.hitch(this,"_layout"))),this.own(i.after(l,"onFocus",t.hitch(this,"_layout"))),this.own(i.after(l,"onBlur",t.hitch(this,"_layout"))),this.own(i.after(o,"onViewUpdated",t.hitch(this,"_handleViewUpdated"),!0))},_handleViewUpdated:function(e){this._cursorController.isPendingUpdate()||this._cursorController.isActionInProgress()||!d.hasScrollEvent(e)||this._layout()},_layout:function(){if(this._isLocked)return;this._layers=[],this._cursorController.getCursors().forEach((function(e){this._checkCursorSelectionAndHidden(e)||this.draw(e)}),this);const e=this._rtcView.getDomtarget();this._focusNotifier.hasFocus()?e.classList.remove(this._BLURRED_SELECTION_CLASS):e.classList.add(this._BLURRED_SELECTION_CLASS),this._isLiveCode||this._updateDecoration(),this._updateLayer()},_updateDecoration:function(){if(this._pendingChanges)return;let e=[];this._cursorController.getCursors().forEach((function(t){var i=this._divSelectionRenderer.getSelectionToDecorate(t.getSelection());i&&e.push(i)}),this);let t=[];if(1===this._ranges.length&&1===e.length){const i=this._ranges[0],n=e[0];if(!i.isEqualTo(n)){t=l.getRangeDifference(i,n);const o=e;e=l.getRangeDifference(n,i),this._ranges=o}}else t=this._ranges,this._ranges=e;0===t.length&&0===e.length||(t.forEach(function(e){this._decorator.clearRange(e),e.getStartPosition().setLive(!1),e.getEndPosition().setLive(!1)}.bind(this)),e.forEach(function(e){this._decorator.addClass(e,[this._SELECTED_TEXT_CLASS])}.bind(this)),this._ranges.forEach((function(e){e.getStartPosition().setLive(!0),e.getEndPosition().setLive(!0)})),this._pendingChanges=!0,this._decorator.applyChanges(),this._pendingChanges=!1)},lockSelection:function(){this._isLocked=!0},unlockSelection:function(){this._isLocked=!1,this._layout()},_checkCursorSelectionAndHidden:function(e){return!e.hasSelection()||e.isSelectionHidden()},_setSelectionInfoEndPosition:function(e,t){e.isReversed()?e.endPosition=t.anchor:e.endPosition=t.position},draw:function(e){this._hidden=!1;var t=e.getSelection();this._setSelectionInfoEndPosition(t,e);var i=this._divSelectionRenderer.createSelectionLayer(t);i&&this._layers.push(i)},_updateLayer:function(){if(0===this._layers.length)return this._layer.innerHTML="",void(this._layer.style.display="none");const e=this._layer.cloneNode(!1);c.setLayerToFullWidth(e,this._rtcView),c.setLayerToFullHeight(e,this._rtcView),e.style.display="",this._layers.forEach((function(t){e.appendChild(t)})),this._rtcView.switchLayer(e,this._layer),this._layer=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6959)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.backingstore","rtc.view.viewmeasurementservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(209),i(207),i(281),i(234),i(401),i(672),i(334),i(628),i(473),i(283)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(n,{_SELECTION_CLASS:"selection",_SELECTION_LAYER_CLASS:"selectionLayer",_OVERLAY_CLASS:"overlay",_SECTION_BREAK_HEIGHT:24,constructor:function(e,t,i){this._rtcView=e,this._isLiveCode=o.isLiveCodeFile(t),this._viewMeasurementService=i},createSelectionLayer:function(e){const t=this.getSelectionToDecorate(e);if(!t)return null;const i=this._createNewLayer();let n=t.getStartPosition().getNode();for(;n;){const e=this._addSpanForNode(n,t,i),o=e.node,r=e.endPosition;if(r.isEqualTo(t.getEndPosition())){t.fileEndSelected()&&this._selectOutputsForNode(n.rootContainer(),i);break}(r.isEqualTo(n.endPosition())||l.isAtVisibleEndOfContainer(r,this._rtcView))&&this._selectOutputsForNode(n.rootContainer(),i),n=this._getNextNodeToSelect(o)}return i},getSelectionToDecorate:function(e){if(!e||!this._isSelectionInViewport(e))return null;const t=this._getFirstSelectedNodeInViewport(e),i=t===e.getStartPosition().getNode()?e.getStartPosition():t.startPosition(),n=this._getLastSelectedNodeInViewport(e),o=n===e.getEndPosition().getNode()?e.getEndPosition():n.endPosition(),r=l.getClosestVisiblePosition(i,this._rtcView),s=l.getClosestVisiblePosition(o,this._rtcView);return new a(r,s,e.isReversed(),e.fileEndSelected())},_getNextNodeToSelect:function(e){let t=null;const i=this._rtcView.getNodeBox(e);if(i){let e=i.nextElementSibling,n=i.parentElement;for(;!t&&n;){for(;e;)e.rteNode&&(t=e.rteNode),e=e.firstElementChild;e=n.nextElementSibling,n=n.nextElementSibling||n.parentElement}}return t},_isSelectionInViewport:function(e){const t=e.getStartPosition().getLine(),i=this._rtcView.getFirstVisibleLineNumber(),n=e.getEndPosition().getLine(),o=this._rtcView.getLastVisibleLineNumber();return n>=i&&t<=o},_arePositionsOnSameLine:function(e,t){const i=this._rtcView.getCoordinateForPosition(e),n=this._rtcView.getCoordinateForPosition(t),o=i.y<=n.y,r=n.y<=i.y,a=i.y+i.height,s=n.y+n.height,l=i.y+i.height/2,c=n.y+n.height/2;return o&&a>c||r&&s>l},_createNewLayer:function(){let e=this._SELECTION_LAYER_CLASS+" ";return e+=this._isLiveCode?"overlay":"",t.create("span",{className:e})},_createSelectionSpan:function(e,i,n,o,r){return t.create("span",{className:this._SELECTION_CLASS,style:{left:e-this._rtcView.getScrollLeft()+"px",top:i-this._rtcView.getScrollTop()+"px",width:(0!==n?n:Math.floor(this._viewMeasurementService.getNumericCharacterWidth()))+"px",height:o+"px"}},r)},_addSpanForNode:function(e,t,i){if(e.isInstanceOf(d))return this._addSpanForSectionBreak(e,i),{node:e,endPosition:e.startPosition()};const n=e.rootContainer();if(!this._rtcView.isRootContainerVisible(n))return{node:e,endPosition:e.endPosition()};const o=t.getStartPosition(),a=t.getEndPosition(),s=o.getNode(),c=a.getNode(),h=e===s?o:e.startPosition();let p;const f=this._getVisualContainer(e);p=f===this._getVisualContainer(c)?a:f.endPosition(),p=l.getClosestVisiblePosition(p,this._rtcView);const g=!p.isEqualTo(t.getEndPosition());if(h.isEqualTo(t.getEndPosition())&&0===h.offset){const e=this._rtcView.getCoordinateForPosition(h);this._createSelectionSpan(e.x,e.y,-1,e.height,i)}else if(u.isLiveAppLineNode(n)){this._addSpanForLiveApp(h,i);const t=u.getEndLineOfGeneratedCode(n);p=(e=this._rtcView.isRootContainerVisible(t)?t:n).endPosition()}else r.isCodeContainer(n)?(this._addSpanForLine(i,h,p,g),e=l.getLastVisibleNodeInContainer(f,this._rtcView)):(this._addSpanForMultiLineNode(i,h,p,g),e=l.getLastVisibleNodeInContainer(f,this._rtcView));return{node:e,endPosition:p}},_getVisualContainer:function(e){let t=e.textContainer();return t.isInstanceOf(c)&&(t=e.parent),t},_addSpanForMultiLineNode:function(e,t,i,n){const o=this._rtcView.getCoordinateForPosition(t),r=this._rtcView.getCoordinateForPosition(i),a=o.x;let s=r.x-a;const l=this._getTopAndHeightForPosition(t),c=l.top,d=l.height;if(this._arePositionsOnSameLine(t,i))this._createSelectionSpan(a,c,s,d,e);else{const o=this._rtcView.getNodeBox(t.getNode().textContainer()),l=this._rtcView.getCoordinateForDomNode(o),u=this._getTopAndHeightForPosition(i),h=a-l.x;s=Math.max(l.width-h,0),this._createSelectionSpan(a,c,s,d,e);let p=u.top-(c+d);p>this._viewMeasurementService.getNumericLineHeight()/2&&(this._createSelectionSpan(l.x,c+d,l.width,p,e),p=0);let f=-1;r.x!==l.x&&(f=this._adjustWidthForEndPosition(i,r.x-l.x,n)),this._createSelectionSpan(l.x,u.top-p,f,u.height+p,e)}},_addSpanForLine:function(e,t,n,o){const r=this._rtcView.getNodeBox(t.getNode().rootContainer());if(r){if(t=l.getClosestVisiblePosition(t,this._rtcView),n=l.getClosestVisiblePosition(n,this._rtcView),t&&n){const i=this._getNodeDimensions(r),a=this._rtcView.getCoordinateForPosition(t),s=this._rtcView.getCoordinateForPosition(n),l=this._adjustWidthForEndPosition(n,s.x-a.x,o);this._createSelectionSpan(a.x,i.y,l,i.height,e)}}else i.warn("_addSpanForLine called with a position that isn't visible")},_addSpanForLiveApp:function(e,t){const i=u.getLiveAppLineNode(e),n=this._rtcView.getNodeBox(i);this._addSpanForDomNode(n,t)},_addSpanForDomNode:function(e,t){if(!e)return;const i=this._getNodeDimensions(e);this._createSelectionSpan(i.x,i.y,i.width,i.height,t)},_addSpanForSectionBreak:function(e,t){const i=l.getVisibleRootContainerBelow(e,this._rtcView);if(!i)return;const n=this._rtcView.getCoordinateForPosition(i.startPosition()),o=this._rtcView.getCoordinateForNode(e).y-this._SECTION_BREAK_HEIGHT/2;this._createSelectionSpan(n.x,o,Math.floor(this._viewMeasurementService.getNumericCharacterWidth()),this._SECTION_BREAK_HEIGHT,t)},_selectOutputsForNode:function(e,t){if(!this._isLiveCode)return;const i=[],n=this._rtcView.getNodeBox(e);let o=n&&n.nextElementSibling;for(;o&&o.classList.contains("outputParagraph");)i.push(o),o=o.nextElementSibling;i.length>0&&i.forEach(function(e){this._addSpanForDomNode(e,t)}.bind(this))},_getFirstSelectedNodeInViewport:function(e){if(e.getStartPosition().getLine()<this._rtcView.getFirstVisibleLineNumber()){const e=this._rtcView.getFirstVisibleNode();let t=l.getVisibleRootContainerAbove(e,this._rtcView)||e;for(;t&&t.isInstanceOf(d);)t=l.getVisibleRootContainerAbove(t,this._rtcView);let i=t.firstChild();for(;i&&!this._rtcView.isNodeVisible(i);)i=i.nextSibling();return i}return e.getStartPosition().getNode()},_getLastSelectedNodeInViewport:function(e){if(e.getEndPosition().getLine()>this._rtcView.getLastVisibleLineNumber()){const e=this._rtcView.getLastVisibleNode();return l.getVisibleRootContainerBelow(e,this._rtcView)||e}return e.getEndPosition().getNode()},_getTopAndHeightForPosition:function(e){const t=e.getNode(),i=this._rtcView.getCoordinateForPosition(e);let n=i.y,o=i.height;if(t.isInstanceOf(s)&&!e.isAtEdge())return{top:n,height:o};let r=t.nextNode();for(;r&&this._arePositionsOnSameLine(e,r.startPosition());){const e=this._rtcView.getCoordinateForPosition(r.startPosition()),t=n-e.y;t>0&&(n=e.y,o+=t);const i=e.y+e.height-(n+o);i>0&&(o+=i),r=r.nextNode()}let a=t.prevNode();for(;a&&this._arePositionsOnSameLine(e,a.endPosition());){const e=this._rtcView.getCoordinateForPosition(a.endPosition()),t=n-e.y;t>0&&(n=e.y,o+=t);const i=e.y+e.height-(n+o);i>0&&(o+=i),a=a.prevNode()}return{top:n,height:o}},_adjustWidthForEndPosition:function(e,t,i){return e.isEqualTo(e.getNode().rootContainer().endPosition())&&(t+=i?Math.floor(this._viewMeasurementService.getNumericCharacterWidth()):0),t},_getNodeDimensions:function(e){const t=this._rtcView.getCoordinateForDomNode(e);let i=t.x,n=t.y,o=t.width,r=t.height;const a=window.getComputedStyle(e),s=parseFloat(a.paddingTop)||0,l=s+parseFloat(a.paddingBottom)||0,c=e.classList.contains("wrappable")?0:parseFloat(a.marginTop)||0;n+=s-c,r+=c-l;const d=parseFloat(a.paddingLeft)||0;return i+=d,o-=d+parseFloat(a.paddingRight)||0,{x:i,y:n,width:o,height:r}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(6961),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.focusables"]}},createInstance:function(e){return new t(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(282)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e){this._focusedSet=o.createSet(),e.forEach((function(e){this.own(i.after(e,"onFocus",t.hitch(this,"_handleFocus",e))),this.own(i.after(e,"onBlur",t.hitch(this,"_handleBlur",e)))}),this),this._updateToSend=null},_handleFocus:function(e){var t=0===this._focusedSet.size;this._focusedSet.add(e),t&&this.onFocus()},_handleBlur:function(e){this._focusedSet.delete(e),0===this._focusedSet.size&&this.onBlur()},onFocus:function(){},onBlur:function(){},hasFocus:function(){return this._focusedSet.size>0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6963)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.scrollpane","rtc.fixedsize","rtc.view.viewmodel","rtc.view.layoutmanager.layouter","rtc.view.layoutmanager.rule","rtc.view.layoutmanager.rules.default","rtc.view.rangeconverter"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(e,t,n,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(208),i(228),i(210),i(211),i(217),i(213),i(209),i(207),i(1102),i(1129),i(1130)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return t(d,{constructor:function(e,t,o,r,a,s,l,c){this._internalDocument=e,this._domTarget=t,this.fixedSize=o,this._viewModel=r,this._defaultRule=l,this._rangeConverter=c,this._root=null,this._scrollTopMayHaveChanged=!1,this._layoutOperations=[],this._layoutCache={},this._pendingNodes=[],this._initializeRules(s),this._initializeLayouters(a),this.own(n.after(e,"onNodeChange",i.hitch(this,"_handleNodeChanged"),!0))},_initializeRules:function(e){e&&e.length>1?this._layoutRules=e.sort((function(e,t){return t.priority()-e.priority()})):this._layoutRules=[this._defaultRule]},_initializeLayouters:function(e){this._layouters=new u(e)},registerLayouter:function(e){this._layouters.registerOverwrite(e)},_handleNodeChanged:function(e){for(var t=p.getLayoutOperationsFromNodeChangeEvent(e,this._viewModel),i=0;i<t.length;i+=1)this._layoutOperations.push(t[i])},layoutDocument:function(){var e=this._internalDocument.root;this._getDomNode(e)||this._reset();var t=this._root;this._root=this._createDomNode(e),t&&t.parentElement?a.place(this._root,t,"replace"):a.place(this._root,this._domTarget),this._viewModel.isPaginated()||this._postLayoutUniqueNodes(e.children),this.resize(),r.toggle(this._domTarget,"readonly",e.readOnly),this._layoutOperations=[],this._layoutCache={}},filterPendingOperationsByNodes:function(e){let t=[],i=[];return this._layoutOperations=this._layoutOperations.filter(n=>{let o=n.node;if("remove"===n.type){o.parent||i.push(o);let e=this._viewModel.getNodeBox(o);return e&&this._domTarget.contains(e)}let r=o.rootContainer();return e.indexOf(r)>=0&&(o.isRootContainer()&&!this._domTarget.contains(this._viewModel.getNodeBox(o))&&t.indexOf(r)<0&&t.push(r),!0)}),{lineNodesToLayout:t,lineViewsToRemove:i}},doPendingLayoutOperations:function(){if(0!==this._layoutOperations.length){var e=this._viewModel.getViewProperties().scrollTop,t=[];this._layoutOperations.forEach((function(e){var i=this._executeOperation(e);i&&t.push(i)}),this),this._flushPendingNodes(),this._postLayoutNodes(t),this._scrollTopMayHaveChanged&&(this._domTarget.scrollTop=e,this._scrollTopMayHaveChanged=!1),this._layoutOperations=[],this._layoutCache={}}},_executeOperation:function(e){var t=null,i=e.node,n=p.isInModel(i),o=p.isInView(i,this._domTarget,this._viewModel),r=i.parent&&p.isInView(i.parent,this._domTarget,this._viewModel),a=this._viewModel.isPaginated();return n?((p.isUpdateOperation(e)&&(o||a)||p.isLayoutOperation(e)&&(r||a))&&(t=i,this._layoutNode(i,e)),t):(p.isRemoveOperation(e)&&(o||a)&&(t=i,this._removeNode(i)),t)},layoutNode:function(e){this._layoutNode(e),this._flushPendingNodes(),this._postLayoutUniqueNodes([e]),this._layoutCache={}},_layoutNode:function(e,t){if(e=this._getNodeToLayout(e,t)){this._relayout=!0,t&&(t.node=e);var i=this._createDomNode(e),n=e.parent;i&&n&&this._getDomNode(n)&&this._layoutNodeUsingRules(i,e,null,t),this._relayout=!1}},_getNodeToLayout:function(e,t){for(;e;){if(e.isRootContainer())return e;var i=this._getLayouter(e).getNodeToLayout(e,t);if(i===e)return e;e=i}return e},_addToPendingNodesList:function(e){this._pendingNodes.indexOf(e)<0&&this._pendingNodes.push(e)},_flushPendingNodes:function(){for(;this._pendingNodes.length>0;){var e=this._pendingNodes;this._pendingNodes=[],e.forEach(this.refreshNode,this)}},refreshNode:function(e){if(e.parent){var t=this._getDomNode(e);if(t&&t.parentNode&&(!this._viewModel.isPaginated()||this._domTarget.contains(t))){var i=this._getLayouter(e).refresh(this,e,t,t.cloneNode(!1));this._postLayoutUniqueNodes([e]),i&&i!==t&&(a.place(i,t,"replace"),this._connect(e,i)),this._layoutRules.forEach((function(t){var i=t.getOperationsForRefresh(e);i&&(this._setWidthFromLayoutInfo(i),this._setRootWidthFromLayoutInfo(i),this._performHostingFromLayoutInfo(i,e))}),this)}}},_createDomNode:function(e){return this._getLayouter(e).createDomNode(this,e)},_getLayouter:function(e){var t=this._layouters.get(e);return c.assert(t,"No layouter found for "+e.className),t},layoutInto:function(e,t,i){var n=this._getDomNode(e);if(n&&!this._relayout)return o.set(n,i),n;n&&this._removeNode(e);var r=a.create(t,i);return(!this._viewModel.isPaginated()||i&&i.class!==h.ROOTNODE_CLASS)&&this._layoutNodesIntoContainer(r,e.children),this._connect(e,r),r},removeAndDisconnectNode:function(e){this._getDomNode(e)&&this._removeNode(e),this._connect(e,null),this._viewModel.isPaginated()&&e.isRootContainer()&&this._viewModel.notifyNodesRemoved([e])},_layoutNodesIntoContainer:function(e,t){t&&t.length&&t.forEach((function(t){this._layoutNodeIntoContainer(e,t)}),this)},_layoutNodeIntoContainer:function(e,t){var i=this._createDomNode(t);this._layoutNodeUsingRules(i,t,e)},_layoutNodeUsingRules:function(e,t,i,n){var o=i||this._root;this._layoutRules.forEach((function(r){var a=e&&e.parentElement||i,s=r.getOperationsForLayout(e,t,o,n);s&&(this._placeDomNodeFromLayoutInfo(s,t,a),this._mergeBlocksFromLayoutInfo(s),this._removeDomNodesFromLayoutInfo(s),this._injectBlocksFromLayoutInfo(s),this._redrawBlocksFromLayoutInfo(s),this._performHostingFromLayoutInfo(s,t),this._scheduleRefreshFromLayoutInfo(s),this._decorateFromLayoutInfo(s))}),this)},_placeDomNodeFromLayoutInfo:function(e,t,i){e.nodeToPlace&&(this._viewModel.isPaginated()&&!this.isLayoutPending()&&t.isRootContainer()||(e.nodeToPlaceRefNode?a.place(e.nodeToPlace,e.nodeToPlaceRefNode,e.nodeToPlaceRefPos):this._placeDomNode(e.nodeToPlace,t,i)))},_mergeBlocksFromLayoutInfo:function(e){if(e.nodeToPlace&&e.mergeWithSiblingBlock){var t=e.nodeToPlace,i=t.className,n=t.nextElementSibling,o=t.previousElementSibling;n&&n.className.indexOf(i)>=0?this._mergeBlocks([[t,n]]):o&&o.className.indexOf(i)>=0&&this._mergeBlocks([[o,t]])}},_removeDomNodesFromLayoutInfo:function(e){e.nodesToRemove&&e.nodesToRemove.forEach((function(e){for(e.parentNode&&e.parentNode.removeChild(e);e.childElementCount>0;)e.removeChild(e.firstElementChild)}),this)},_injectBlocksFromLayoutInfo:function(e){var t=this._createBlockFromLayoutInfo(e.prevBlock);this._placeBlock(t,e.nodeToPlace,"before");var i=this._createBlockFromLayoutInfo(e.nextBlock);this._placeBlock(i,e.nodeToPlace,"after")},_createBlockFromLayoutInfo:function(e){if(e&&e.container){var t=e.container;return e.childDomNodes.forEach((function(e){a.place(e,t)}),this),e.oldBlockDomNodes.forEach((function(e){e&&e.parentNode&&!e.hasChildNodes()&&e.parentNode.removeChild(e)}),this),t}},_redrawBlocksFromLayoutInfo:function(e){var t=this._getRedrawnBlockByNodes(e.prevNodes),i=this._getRedrawnBlockByNodes(e.nextNodes);this._placeBlock(t,e.nodeToPlace,"before"),this._placeBlock(i,e.nodeToPlace,"after")},_performHostingFromLayoutInfo:function(e,t){if(e.hostedNodes){var i=e.hostedNodes.map((function(t){return this._getDomNode(t)||this._createDomNode(t),e.mapFunction(t)}),this);this._getLayouter(t).place(t,i)}e.hostingNode&&this._addToPendingNodesList(e.hostingNode)},_scheduleRefreshFromLayoutInfo:function(e){var t=[],i=e.prevBlock,n=e.nextBlock,o=e.prevNodes,r=e.nextNodes;i&&(t=t.concat(i.childNodes)),n&&(t=t.concat(n.childNodes)),o&&(t=t.concat(o)),r&&(t=t.concat(r)),t.forEach(this._addToPendingNodesList,this)},_decorateFromLayoutInfo:function(e){this._setWidthFromLayoutInfo(e),this._setClassFromLayoutInfo(e),this._setRootWidthFromLayoutInfo(e)},_setWidthFromLayoutInfo:function(e){var t=e.widthToSet;t&&t.forEach((function(e){e.nodesToApply.forEach((function(t){this._domTarget.contains(t)&&(t.style.width=this._getMarginWidth(t)-e.widthOffset+"px")}),this)}),this)},_getMarginWidth:function(e){var t=e.className;if(!this._layoutCache.hasOwnProperty(t)){var i=e.getBoundingClientRect(),n=this._domTarget.getBoundingClientRect(),o=i.left-n.left+this._domTarget.scrollLeft,r=l.get(e,"marginRight");this._layoutCache[t]=this._domTarget.offsetWidth-(o+r)}return this._layoutCache[t]},_setClassFromLayoutInfo:function(e){var t=e.classToSet;t&&t.forEach((function(e){e.nodesToApply.forEach((function(t){r.toggle(t,e.name,e.value)}))}),this)},_setRootWidthFromLayoutInfo:function(e){var t=e.rootNodeWidth;t&&this._layoutCache.rootWidth!==t&&(this._layoutCache.rootWidth=t,this._root.style.minWidth=t>this._domTarget.clientWidth?t+"px":"100%")},_getRedrawnBlockByNodes:function(e){if(!e||!e.length)return null;var t=a.create("div",{class:h.ROOTNODE_CLASS});return e.forEach((function(e){this._getDomNode(e)&&this._layoutNodeIntoContainer(t,e)}),this),t.firstChild},_placeDomNode:function(e,t,i){if(!e.parentElement){var n=this._getReferenceForPlace(t,e,i);if(n&&this._isDomNodeAttached(n.domNode))a.place(e,n.domNode,n.position);else{var o=t.parent;i?a.place(e,i):o&&this._getDomNode(o)&&a.place(e,this._getDomNode(o))}}},_placeBlock:function(e,t,i){e&&(this._scrollTopMayHaveChanged=!0,a.place(e,t,i))},_getReferenceForPlace:function(e,t,i){if(!e)return null;if(!(i=i||this._root).hasChildNodes())return null;var n=e,o=e;do{if(n=n&&n.previousSibling()){var r=this._getRefDomNode(e,n,t);if(this._isPreferredReference(r,i))return r}if(o=o&&o.nextSibling()){var a=this._getRefDomNode(e,o,t);if(this._isPreferredReference(a,i))return a}if(this._isValidReference(r,i))return r;if(this._isValidReference(a,i))return a}while(n||o);return null},_isPreferredReference:function(e,t){return!!this._isValidReference(e,t)&&(!this._domTarget.contains(t)||e.base)},_isValidReference:function(e,t){return e&&e.domNode&&t.contains(e.domNode)},_getRefDomNode:function(e,t,i){if(!t)return null;var n=null;return this._layoutRules.some((function(o){var r=o.getRefDomNode(e,t,i);if(r)return n=r,!0}),this),n},_isDomNodeAttached:function(e){for(;e;){if(r.contains(e,h.ROOTNODE_CLASS))return!0;e=e.parentElement}return!1},resize:function(){this._layoutRules.forEach((function(e){var t=e.getOperationsForResize();t&&(this._setWidthFromLayoutInfo(t),this._setRootWidthFromLayoutInfo(t))}),this),this._layoutCache={}},_removeNode:function(e){for(var t=[],i=[],n=[],o=this._layoutRules.length-1;o>=0;o-=1){var r=this._layoutRules[o].getOperationsForRemove(e,i);r&&(r.nodeToMerge&&r.nodeToMerge.length&&t.unshift(r.nodeToMerge),r.nodeToRemove&&i.unshift(r.nodeToRemove),r.nodesToLayout&&(n=n.concat(r.nodesToLayout)),this._decorateFromLayoutInfo(r))}t.forEach(this._mergeBlocks,this),i.forEach((function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}),this),n.forEach(this._layoutNode,this),this._viewModel.isPaginated()&&e&&!e.parent&&this._viewModel.removeView(e)},onNodeSizeChanged:function(){},_mergeBlocks:function(t){t&&t.length&&t.forEach((function(t){if(2===t.length){var i=t[0],n=t[1],o=i.parentElement,r=n.parentElement,s=e.indexOf(o.children,i);o.removeChild(i),r.removeChild(n);var l=this._getBlockAfterMerge(i,n);a.place(l,o,s)}}),this)},_getBlockAfterMerge:function(e,t){for(var i=a.create("div",{class:e.className});e.childElementCount;)a.place(e.firstChild,i);for(;t.childElementCount;)a.place(t.firstChild,i);return i},isLayoutPending:function(){return this._layoutOperations.length>0},insertDomNode:function(e,t,i,n){var o=this._rangeConverter.getContainerForPosition(t,n);return o?a.place(e,o,i):null},removeDomNode:function(e){this._domTarget.contains(e)&&e.parentNode.removeChild(e)},_reset:function(){this._layoutRules.forEach((function(e){e.reset()}),this)},_connect:function(e,t){t&&(t.rteNode=e),this._viewModel.setNodeBox(e,t)},applyStyle:function(e,t,i){this._getDomNode(e).style[t]=i},clearStyle:function(e,t){this._getDomNode(e).style[t]=""},applyClass:function(e,t){var i=this._getDomNode(e);null!==i&&r.add(i,t)},clearClass:function(e,t){var i=this._getDomNode(e);null!==i&&r.remove(i,t)},_getDomNode:function(e){return this._viewModel.getNodeBox(e)},_postLayoutNodes:function(e){if(1===e.length)return this._postLayoutUniqueNodes(e);var t={},i=function(e){e.forEach((function(e){e.rootContainer()&&!t[e.uid]&&(this._getLayouter(e).postLayout(e),t[e.uid]=!0,e.children&&i(e.children))}),this)}.bind(this);i(e)},_postLayoutUniqueNodes:function(e){e.forEach((function(e){this._getLayouter(e).postLayout(e),e.children&&this._postLayoutUniqueNodes(e.children)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2065)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.layerviewmodel","rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e,t){return new i(e,t)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2104)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel","rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e,t){return new i(e,t)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6967)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(391),i(547)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return n},createDomNode:function(e,t){return this.layout(e,t)},layout:function(e,i){var n=e.layoutInto(i,"div",{class:"rootNode"});return i.plainText&&t.add(n,"plainText"),e.fixedSize&&t.add(n,"rootNodeFixedSize"),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2089)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6970)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return!e},requires:function(){return{isApplicable:["rtc.integration.touchmode"],createInstance:["rtc.divcaret","rtc.domnode","rtc.scrollpane","rtc.keyhandler"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,t,i,o){this._divcaret=e,this._keyCapture=o.keyCapture,this._rtePane=t,this._rteScrollPane=i,this.own(n.after(this._divcaret,"onLayerUpdated",this._moveHiddenKeyCaptureToCaret.bind(this))),this._rteScrollPane.addEventListener("scroll",this._moveHiddenKeyCaptureToCaret.bind(this))},_getFocusPosition:function(e){var i=t.position(e),n={x:0,y:0};this._rtePane&&(n=t.position(this._rtePane));var o=i.x-n.x,r=i.y-n.y,a={w:500,h:300};return this._rteScrollPane&&(a=t.position(this._rteScrollPane)),(o<0||o>a.w)&&(o=a.w/2),(r<0||r>a.h)&&(r=a.h/2),{left:o+"px",top:r+"px"}},_moveHiddenKeyCaptureToCaret:function(){var e=this._divcaret.getBox(),t=this._getFocusPosition(e);this._keyCapture.style.top=t.top,this._keyCapture.style.left=t.left}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6972)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","rtc.view"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,i){this._view=i;var n=[{id:"rtc_adjust_window_top",platformKey:{mac:"home"},enabled:!0,callback:t.hitch(this,"_adjustWindowTop")},{id:"rtc_adjust_window_bottom",platformKey:{mac:"end"},enabled:!0,callback:t.hitch(this,"_adjustWindowBottom")}];e.loadActions(n)},_adjustWindowTop:function(){return this._view.setScrollTop(0),!0},_adjustWindowBottom:function(){return this._view.setScrollTop(this._view.getScrollHeight()),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(6974)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:["rtc.scrollpane"]}},createInstance:function(e){return new n(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{_TEXT:"1234567890",_WRAPPER_CLASS:"characterWidthTextWrapper",_TEXT_NODE_CLASS:"characterWidthTextNode",constructor:function(e){this._scrollPane=e,this._cache={},this._singleCharWidth=null,this._lineHeight=null},getSizeOfView:function(e){let t=0,i=0;for(let n=0,o=e.length;n<o;n++){const o=e[n];if(o.measurement.height>0){const e=o.style?o.style.paddingLeft+o.style.paddingRight:0,i=o.measurement.width+e;t=Math.max(t,i)}i+=o.measurement.height}return{width:t,height:i}},getNumericLineHeight:function(){return this._lineHeight||this.calculateNumericLineHeightAndCharacterWidth(),this._lineHeight},getNumericCharacterWidth:function(){return this._singleCharWidth||this.calculateNumericLineHeightAndCharacterWidth(),this._singleCharWidth},calculateNumericLineHeightAndCharacterWidth:function(){let e=0,i=0;if(document.contains(this._scrollPane)){const n=t.create("div",{className:"rootNode"}),o=t.create("div",{className:"lineNode"}),r=t.create("span",{className:"textBox",innerHTML:this._TEXT});t.place(r,o),t.place(o,n),t.place(n,this._scrollPane),i=r.getBoundingClientRect().width/this._TEXT.length,e=o.getBoundingClientRect().height,t.destroy(n)}this._lineHeight=e,this._singleCharWidth=i},getNumericCharacterWidthForFontFamilyAndSize:function(e,i){if(!this._cache[e]||!this._cache[e][i]){this._cache[e]=this._cache[e]||{};var n=t.create("span",{className:this._WRAPPER_CLASS});n.style.position="fixed",n.style.visibility="hidden",n.style.whiteSpace="nowrap";var o=t.create("span",{innerHTML:this._TEXT,className:this._TEXT_NODE_CLASS},n);o.style.fontFamily=e,o.style.fontSize=i+"px",t.place(n,document.body),this._cache[e][i]=o.getBoundingClientRect().width/this._TEXT.length,t.destroy(n)}return this._cache[e][i]},getNextMultipleOfNumericCharacterWidth:function(e){var t=this.getNumericCharacterWidth(),i=e/t,n=Number(Number(i).toFixed(5));return n===Math.round(i)&&(i=n),i%1!=0&&(e=Math.ceil(i)*t),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6976)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.scrollpane","rtc.linenumberservice","rtc.view.hidden.hiddennodemodel","rtc.document.eventcache","rtc.view.viewmeasurementservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(260),i(237),i(274),i(373),i(6977),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(t,{DOMTARGET_PROPERTIES:["scrollTop","scrollLeft","clientWidth","clientHeight","offsetHeight","offsetWidth","scrollHeight","scrollWidth"],constructor:function(e,t,n,o,r,a){this._internalDocument=e,this._domTarget=t,this._lineNumberService=n,this._hiddenNodeModel=o,this._documentEventCache=r,this._viewMeasurementService=a,this._boxUid=l.generateUuid(),this._documentDimension=null,this.setDocumentDimensionGetter(),this._sequentialViews=[],this._invalidatedLineRange=null,this._lineViews={},this._properties={},this._paginated=!1,this._initialized=!1,this._nodesToMeasure=[],this.own(i.after(e,"onDocumentChanged",this._handleDocumentChanged.bind(this),!1,i.priority.INFRASTRUCTURE)),this.own(i.after(e,"onDocumentReset",this._handleDocumentReset.bind(this),!1,i.priority.INFRASTRUCTURE))},_handleDocumentChanged:function(){if(this.isPaginated()&&0!==this._sequentialViews.length){var e=this._documentEventCache.getLengthChangeEvent(),t=this._documentEventCache.finalLineRangeFromEvents(),i=t.startLine,n=t.endLine;if(e){var r=e.change;if(r>0){var a=new Array(r);this._sequentialViews=o.insertArrayAt(a,this._sequentialViews,i+1)}else this._sequentialViews.splice(i+1,-r)}this._invalidatedLineRange={start:i,end:n}}},_handleDocumentReset:function(){this.isPaginated()&&(this._sequentialViews=[],this._invalidatedLineRange=null)},initialize:function(){this._initialized=!0},isInitialized:function(){return this._initialized},update:function(e){e!==a.SOURCES.documentChange&&this.updateViews(this._nodesToMeasure),this.willUpdate();var t=this._updateViewProperties(this.DOMTARGET_PROPERTIES);return this._invalidateCacheForDocumentDimension(),this.onModelUpdated(),t},updateViewMeasurements:function(){if(this.isPaginated()){this._viewMeasurementService.calculateNumericLineHeightAndCharacterWidth();var e=this.getNumericLineHeight(),t=this.getNumericCharacterWidth();if(this._lineHeight!==e||this._characterWidth!==t)return this._lineHeight=e,this._characterWidth=t,this._sequentialViews.forEach((function(e){var t=null===this.getNodeBox(e.node);e.updateMeasurement(t,this)}),this),!0}},getNumericLineHeight:function(){return this._viewMeasurementService.getNumericLineHeight()},getNumericCharacterWidth:function(){return this._viewMeasurementService.getNumericCharacterWidth()},willUpdate:function(){},onModelUpdated:function(){},_invalidateAllCaches:function(){this._invalidateCacheForDocumentDimension()},_invalidateCacheForDocumentDimension:function(){this._documentDimension=null},_updateViewProperties:function(e){var t=[];return e.forEach((function(e){var i=this._domTarget[e];i!==this._properties[e]&&(t.push(a.EVENTS[e]),this._properties[e]=i)}),this),t},getViewProperties:function(){return this._properties},canScroll:function(){return this._properties.scrollHeight>this._properties.clientHeight},getDomTargetDomNode:function(){return this._domTarget},getDomTargetBoundingClientRect:function(){return this._domTarget.getBoundingClientRect()},setDocumentDimensionGetter:function(e){this._documentDimensionGetter=e||function(){var e=this.getDocumentClientRect()||{width:0,height:0};return{width:e.width,height:e.height}}.bind(this)},getDocumentDimension:function(){return this._documentDimension||(this._documentDimension=this._documentDimensionGetter()),this._documentDimension},getDerivedViewPort:function(){var e=Math.min(this._properties.scrollTop,this.getDocumentDimension().height),t=this._properties.clientHeight;return{top:Math.max(0,e-t),bottom:e+2*t}},getDocumentClientRect:function(){var e=this.getNodeBox(this.getRootNode());return e?e.getBoundingClientRect():null},getNodeBox:function(e){return e&&e.boxes&&e.boxes[this._boxUid]},setNodeBox:function(e,t){if(e.boxes||(e.boxes={}),e.boxes[this._boxUid]=t,this._paginated){var i=e.rootContainer();if(!i)return;null===t?this.createView(i):this._nodesToMeasure.indexOf(i)<0&&this._nodesToMeasure.push(i)}},getNodeOffsetTop:function(e){return e.getTop(this.getNodeBox(e))},getNodeOffsetBottom:function(e){return e.getBottom(this.getNodeBox(e))},getNodeOffsetLeft:function(e){return e.getLeft(this.getNodeBox(e))},getNodeOffsetRight:function(e){return e.getRight(this.getNodeBox(e))},getNodeOffsetWidth:function(e){return e.getWidth(this.getNodeBox(e))},getNodeOffsetHeight:function(e){return e.getHeight(this.getNodeBox(e))},getRootNodePaddingTop:function(){if(void 0===this._rootNodePaddingTop){var e=this.getNodeBox(this.getRootNode());if(!document.contains(e))return 0;this._rootNodePaddingTop=parseInt(window.getComputedStyle(e).paddingTop)}return this._rootNodePaddingTop},getNodeFromDomNode:function(e){return e&&e.rteNode},getLineNumberForNode:function(e){return this._lineNumberService.getLineNumber(e)},getRootNode:function(){return this._internalDocument.root},isDomNodeVisible:function(e){return e&&this._domTarget.contains(e)},setPaginated:function(e){this._paginated=e,this.isInitialized()&&(this.updateViewMeasurements(),this.update())},isPaginated:function(){return this._paginated},isNodeVisible:function(e){return!this._hiddenNodeModel.isHidden(e)},getOrCreateView:function(e){return this.getView(e)||this.createView(e)},getView:function(e){return this._lineViews[this.getKey(e)]},createView:function(e){var t=this.getNodeBox(e),i=this._lineViews[this.getKey(e)];if(null===t){(i=i||new s(e)).updateMeasurement(!0,this),this._lineViews[this.getKey(e)]=i}else{if(document.contains(t)){var n=window.getComputedStyle(t),o=parseFloat(n.paddingRight),r=parseFloat(n.paddingLeft),a=t.getBoundingClientRect().left||0;i=new s(e,a,{paddingLeft:r||0,paddingRight:o||0})}(i=i||new s(e)).updateMeasurement(!1,this),this._lineViews[this.getKey(e)]=i}var l=this.getLineNumberForNode(e);return this._sequentialViews[l]&&(this._sequentialViews[l]=i),i},removeView:function(e){var t=this.getKey(e);delete this._lineViews[t]},updateViews:function(e){if(this._paginated&&0!==e.length){var t=e.map((function(e){return e.rootContainer()}),this),i=t.filter((function(e){return e&&!e.parent})),n=t.filter((function(e){return e&&e.parent}));i.forEach(this.removeView,this),n.forEach(this.createView,this),this._nodesToMeasure=[]}},getSequentialViews:function(){if(0===this._sequentialViews.length&&(this._sequentialViews=this.getModelElements().map((function(e){return this.getOrCreateView(e)}),this)),this._invalidatedLineRange){for(var e=this._invalidatedLineRange.start;e<=this._invalidatedLineRange.end;e++){var t=this._internalDocument.getLineNode(e);this._sequentialViews[e]=this.getOrCreateView(t)}this._invalidatedLineRange=null}return this._sequentialViews},getNodesInRange:function(e,t,i){var n;e=e-this.getRootNodePaddingTop()||0;for(var o=[],r=this.getSequentialViews(),a=0,s=0,l=0,c=0,d=r.length;c<d;c++){var u=r[c],h=u.measurement.height;if(!(h<=0)){if(s=a+h,(a>=e&&s<=t||i&&(a<=e&&s>=e||a<=t&&s>=t))&&(void 0===n&&(n=a,l=c),o.push(u.node)),a>t)break;a=s}}return{lineNodes:o,viewPortTop:n,firstLineIndex:l}},getLineNumberAtCoordinate:function(e){if(this.getRootNodePaddingTop()>e.y)return 1;var t=this.getNodesInRange(e.y,e.y,!0);return void 0!==t.viewPortTop?t.firstLineIndex+1:this.getSequentialViews().length||-1},_getVisibleLineCount:function(){return this.getModelElements().reduce(function(e,t){return this.isNodeVisible(t)&&e++,e}.bind(this),0)},getMeasurementAndOffsetForNode:function(e){var t=e.rootContainer(),i=this.getOrCreateView(t);if(0===i.measurement.height)return null;for(var n=this.getSequentialViews(),o=0,r=0,a=n.length;r<a;r++){if(t===n[r].node)return{paddingLeft:i.style?i.style.paddingLeft:0,offsetTop:o+this.getRootNodePaddingTop(),height:i.measurement.height,width:i.measurement.width,pageX:i.measurement.pageX};o+=n[r].measurement.height}return null},getModelElements:function(){return this.getRootNode().children},getKey:function(e){return e.uid},notifyNodesAdding:function(e){},notifyNodesRemoved:function(e){},destroy:function(){r.forAllDescendants([this._internalDocument.root],function(e){e.boxes&&delete e.boxes[this._boxUid]}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){function e(e,t,i){this.node=e||null,this.style=i||null,this.measurement={height:0,width:0,pageX:t||0}}return e.prototype.updateMeasurement=function(e,t){this.measurement.height=e?0:function(e){return e.getNumericLineHeight()}(t),this.measurement.width=e?this.measurement.width:function(e,t){var i=0,n=t.getNodeBox(e.node);return document.contains(n)?(e.node.children.forEach((function(e){i+=t.getNodeBox(e).getBoundingClientRect().width})),i):0===e.measurement.width?i+=e.node.getText().length*t.getNumericCharacterWidth():e.measurement.width}(this,t)},e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6979)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.view.viewmodel","rtc.scrollpane","rtc.view.styles.globalstylechanger","rtc.view.layoutmanager","rtc.view.coordinateconverter","rtc.viewready","rtc.view.viewmeasurementservice"]}},createInstance:function(){return new i(...arguments)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(210),i(211),i(217),i(213),i(221),i(206),i(209),i(207),i(492),i(237),i(274),i(373),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([d,u],{_DEFAULT_HORIZONTAL_PADDING:60,_DEFAULT_VERTICAL_PADDING:14,_DEFAULT_SCROLL_AMOUNT:50,_LINE_SHOULD_BE_IN_VIEW:"The specified line should be in the current view.",_POSITION_SHOULD_NOT_BE_NULL:"The position should not be null.",constructor:function(e,n,o,r,a,s,c,d){this._internalDocument=e,this._viewModel=n,this._domTarget=o,this._globalStyleChanger=r,this._layoutManager=a,this._coordinateConverter=s,this._viewMeasurementService=d,this.paddingLeft=0,this._pendingEvents=[],this.own(l(o,"scroll",t.hitch(this,"_handleScroll"))),this.own(i.after(a,"onNodeSizeChanged",t.hitch(this,"onLayoutChange"),!0)),this.own(i.after(e,"onDocumentChanged",t.hitch(this,"_handleDocumentChanged"),!0,i.priority.INFRASTRUCTURE)),this.own(i.after(e,"onDocumentReset",t.hitch(this,"_handleDocumentReset"),!1,i.priority.INFRASTRUCTURE)),this.own(i.after(e,"readOnlyChanged",t.hitch(this,"_handleReadOnlyChanged"),!1,i.priority.INFRASTRUCTURE)),this.own(i.after(r,"onRulesChanged",t.hitch(this,"_handleRulesChanged"),!1,i.priority.INFRASTRUCTURE)),this.own(i.after(c,"onViewReady",t.hitch(this,"_handleViewReady"),!1,i.priority.INFRASTRUCTURE))},initialize:function(){this._layoutManager.resize(),this._viewModel.updateViewMeasurements(),this._updateViewProperties(f.SOURCES.documentChange),this._viewModel.initialize(),this._emitPendingEvents()},onViewWillUpdate:function(e){},onViewUpdated:function(e){},onLinesDOMUpdated:function(e,t,i){},onLayoutChange:function(e){e&&e.isValid()&&this.scrollPositionIntoView(e),this._pendingEvents.push(f.createEvent(f.EVENTS.layoutChange)),this._updateViewPropertiesAndEmitEvents()},onScroll:function(e){},onResize:function(){this._viewModel.isInitialized()&&(this._layoutManager.resize(),this._updateViewMeasurements())},_handleScroll:function(){const e=this.getScrollTop(),t=this.getScrollLeft();this._updateViewPropertiesAndEmitEvents();const i=this.getScrollTop()-e,n=this.getScrollLeft()-t;this.onScroll({diffY:i,diffX:n})},_handleDocumentChanged:function(e){this._layoutOnDocumentChanged();var t=f.SOURCES.documentChange;this._pendingEvents.push(f.createEvent(f.EVENTS.renderUpdate,t)),f.isLayoutChangeEventToPatch(e,this._internalDocument)&&this._pendingEvents.push(f.createEvent(f.EVENTS.layoutChange,t)),this._updateViewPropertiesAndEmitEvents(t)},_layoutOnDocumentChanged:function(){if(this.isPaginated()){let e=this._viewModel.getDerivedViewPort(),t=this._viewModel.getNodesInRange(e.top,e.bottom,!0),i=this._layoutManager.filterPendingOperationsByNodes(t.lineNodes);this._viewModel.notifyNodesAdding(i.lineNodesToLayout),i.lineViewsToRemove.forEach(this._viewModel.removeView,this._viewModel)}this._layoutManager.doPendingLayoutOperations()},_handleRulesChanged:function(){var e=f.EVENTS.styleChange,t=f.SOURCES.styleRuleChange;this._pendingEvents.push(f.createEvent(e,t)),this._updateViewMeasurements()},_handleViewReady:function(){this._layoutDocument()},_updateViewMeasurements:function(){if(this._viewModel.isInitialized()&&!this._pendingViewUpdate){var e=this.getLineFromCoordinate({y:this.getScrollTop()+1}),t=this._viewModel.updateViewMeasurements();this._updateViewPropertiesAndEmitEvents(),e>0&&t&&this.scrollLineToPercent(e,0)}},_handleDocumentReset:function(){this._layoutDocument(),this._updateViewPropertiesAndEmitEvents(f.SOURCES.documentChange)},_layoutDocument:function(){var e=f.EVENTS.layoutChange,t=f.SOURCES.documentChange;this._layoutManager.layoutDocument(),this._pendingEvents.push(f.createEvent(e,t))},_handleReadOnlyChanged:function(){this._layoutManager.layoutDocument()},_updateViewPropertiesAndEmitEvents:function(e){this._updateViewProperties(e)&&this._emitPendingEvents()},_updateViewProperties:function(e){if(this._pendingViewUpdate)return!1;this._pendingViewUpdate=!0,this.onViewWillUpdate(e),this._pendingViewUpdate=!1;var t=this._viewModel.update(e),i=this._createEvents(t,e);return this.canScroll()||i.push(f.createEvent(f.EVENTS.layoutChange,e)),this._pendingEvents=this._pendingEvents.concat(i),!0},_createEvents:function(e,t){return e.map((function(e){return f.createEvent(e,t)}))},_emitPendingEvents:function(){var e=this._pendingEvents;e.length>0&&(this._pendingEvents=[],this.onViewUpdated(e))},getDomTargetPosition:function(){return this._viewModel.getViewProperties()},setScrollTopWithoutEvents:function(e){this._domTarget.scrollTop=e,this._updateViewProperties()},setScrollTop:function(e){this.getScrollTop()===e||0===this.getScrollTop()&&e<0||(this._domTarget.scrollTop=e,this._updateViewPropertiesAndEmitEvents(),this.onScroll())},offsetScrollTop:function(e){var t=this.getScrollTop(),i=this.getScrollHeight()-this.getClientHeight(),n=Math.min(Math.max(t+e,0),i);n!==t&&(this._domTarget.scrollTop=n,this._updateViewPropertiesAndEmitEvents(),this.onScroll())},setScrollLeftWithoutEvents:function(e){this._domTarget.scrollLeft=e,this._updateViewProperties()},setScrollLeft:function(e){this.getScrollLeft()===e||0===this.getScrollLeft()&&e<0||(this._domTarget.scrollLeft=e,this._updateViewPropertiesAndEmitEvents(),this.onScroll())},offsetScrollLeft:function(e){var t=this.getScrollLeft(),i=this.getScrollWidth()-this.getClientWidth(),n=Math.min(Math.max(t+e,0),i);n!==t&&(this._domTarget.scrollLeft=n,this._updateViewPropertiesAndEmitEvents(),this.onScroll())},canScroll:function(){return this._viewModel.canScroll()},getScrollLeft:function(){return this._viewModel.getViewProperties().scrollLeft},getScrollTop:function(){return this._viewModel.getViewProperties().scrollTop},getScrollWidth:function(){return this._viewModel.getViewProperties().scrollWidth},getScrollHeight:function(){return this._viewModel.getViewProperties().scrollHeight},getClientWidth:function(){return this._viewModel.getViewProperties().clientWidth},getClientHeight:function(){return this._viewModel.getViewProperties().clientHeight},applyStyleToLine:function(e,t,i){h.checkLineExists(this._internalDocument,e);var n=this._internalDocument.getLineNode(e-1);n&&this._layoutManager.applyStyle(n,t,i)},registerLayouter:function(e){this._layoutManager.registerLayouter(e)},isLayoutPending:function(){return this._layoutManager.isLayoutPending()},layoutNode:function(e){this._layoutManager.layoutNode(e)},refreshNode:function(e){this._layoutManager.refreshNode(e)},getDomtarget:function(){return this._domTarget},addLayer:function(e,t,i){t=t||this._domTarget,n.add(e,"layer"),o.place(e,t,i)},switchLayer:function(e,t){this._domTarget.contains(t)&&(n.add(e,"layer"),o.place(e,t,"replace"))},setBlockLayer:function(e){n.add(e,"layer fullWidthLayer");var t=this;l(this._domTarget,"scroll",(function(){var i=t._domTarget.scrollLeft;a.set(e,{left:i+"px"})}))},isElementOutOfView:function(e,t){var i=this._viewModel.getDomTargetBoundingClientRect(),n=e.getBoundingClientRect();return t=t||{left:0,right:0,top:0,bottom:0},n.top>i.bottom+t.bottom||n.left>i.right+t.right||n.bottom<i.top-t.top||n.right<i.left-t.left},_getNearestVisibleLine:function(e){if(this.isLineVisible(e))return e;var t=this._internalDocument.getLineNode(e-1),i=g.getVisibleRootContainerAbove(t,this)||g.getVisibleRootContainerBelow(t,this);return i?this._internalDocument.getLineNumber(i)+1:null},getLineCenter:function(e){h.checkLineExists(this._internalDocument,e+1);var t=this._internalDocument.getLineNode(e);return this.getNodeCenter(t,!0)},getLineHeight:function(e){h.checkLineExists(this._internalDocument,e);var t=this._internalDocument.getLineNode(e-1);return this.getNodeOffsetHeight(t)},getPreciseLineHeight:function(e){h.checkLineExists(this._internalDocument,e);var t=this._internalDocument.getLineNode(e-1);if(this._viewModel.getNodeBox(t)){var i=this.getNodeTopAndBottom(t.rootContainer(),!0);return i.bottom-i.top}return 0},getCharacterWidthForLine:function(e){var t=this._internalDocument.getLineNode(e-1),i=window.getComputedStyle(this.getNodeBox(t)),n=i.fontFamily,o=i.fontSize;return o=o.substring(0,o.indexOf("px")),o=parseFloat(o),this._viewMeasurementService.getNumericCharacterWidthForFontFamilyAndSize(n,o)},getNodeTop:function(e,t){let i,n=0;const o=this._viewModel.getNodeBox(e);if(o&&t&&this._domTarget.contains(o)){const e=a.getComputedStyle(o);n+=a.get(o,"paddingTop",e),n+=a.get(o,"borderTopWidth",e),i=this.getCoordinateForDomNode(o)}else{const t=e.startPosition();i=this.getCoordinateForPosition(t)}return i.y+n},getNodeBottom:function(e,t){let i,n=0;const o=this._viewModel.getNodeBox(e);if(o&&t&&this._domTarget.contains(o)){const e=a.getComputedStyle(o);n+=a.get(o,"paddingBottom",e),n+=a.get(o,"borderBottomWidth",e),i=this.getCoordinateForDomNode(o)}else{const t=e.startPosition();i=this.getCoordinateForPosition(t)}return i.y+i.height-n},getNodeTopAndBottom:function(e,t){let i,n=0,o=0;const r=this._viewModel.getNodeBox(e);if(r&&t&&this._domTarget.contains(r)){const e=a.getComputedStyle(r);n+=parseFloat(e.paddingTop),n+=parseFloat(e.borderTopWidth),o+=parseFloat(e.paddingBottom),o+=parseFloat(e.borderBottomWidth),i=this.getCoordinateForDomNode(r)}else{const t=e.startPosition();i=this.getCoordinateForPosition(t)}return{top:i.y+n,bottom:i.y+i.height-o}},getNodeCenter:function(e,t){return(this.getNodeTop(e,t)+this.getNodeBottom(e,t))/2},getNodeHeight:function(e,t){var i=this.getNodeBox(e);return e.getOffsetHeight()+(t?a.get(i,"paddingTop")+a.get(i,"paddingBottom"):0)},scrollNodeToPercent:function(e,t){this.scrollLineToPercent(this._internalDocument.getLineNumber(e)+1,t)},scrollLineToPercent:function(e,t){h.checkLineExists(this._internalDocument,e);var i=this.getNodeBox(this._internalDocument.getLineNode(e-1));this.scrollElementToPercent(i,t)},scrollNearestVisibleLineToPercent:function(e,t){var i=this._getNearestVisibleLine(e);i&&this.scrollLineToPercent(i,t)},scrollElementToPercent:function(e,t){if(e){var i=e.clientHeight;if(this.isPaginated()){var n=this._viewModel.getNodeFromDomNode(e);i=this._viewModel.getOrCreateView(n).measurement.height}else g.assert(g.isDescendant(e,this.getDomtarget()));null==t&&(t=this._DEFAULT_SCROLL_AMOUNT);var o=(this.getClientHeight()-i)*(t/100),r=this.getCoordinateForDomNode(e).y-o;this.setScrollTop(r)}},getLineAtPercent:function(e){var t=this.getScrollTop(),i=this.getClientHeight(),n=t+i*(e/100),o=this.getLineColumnFromCoordinate({x:0,y:n}).line,r=this.getFirstVisibleLineNumber();o===r&&(this.getCoordinateForLineColumn(r,1).y<t&&(o+=1));var a=this.getLastVisibleLineNumber();if(o===a){var s=this.getCoordinateForLineColumn(a,1),l=s.height;s.y+l>t+i&&(o-=1)}return Math.min(this._internalDocument.getMaxLineNumber(),Math.max(1,o))},getPositionAtPercent:function(e){var t=this.getLineAtPercent(e);return this._internalDocument.getPositionForLineColumn(t,1)},getLinePercentScrolled:function(e,t,i){h.checkLineExists(this._internalDocument,e),t||h.assert(this.isLineInView(e,i),this._LINE_SHOULD_BE_IN_VIEW);var n=this.getCoordinateForLineColumn(e,1),o=n.y,r=n.height,a=this.getClientHeight()-r,s=(o-this.getScrollTop())/a*100;return isNaN(s)&&(s=0),t||(s=Math.max(Math.min(100,s),0)),s},getNodePercentScrolled:function(e,t){var i=this._internalDocument.getLineNumber(e)+1;return this.getLinePercentScrolled(i,t)},isNodeInView:function(e,t){h.assert("boolean"==typeof t||void 0===t,"Second parameter should be boolean");var i=this._internalDocument.getLineNumber(e)+1;return this.isLineInView(i,t)},isNodeVisible:function(e){return this._viewModel.isNodeVisible(e)},isLineInView:function(e,t){h.assert("boolean"==typeof t||void 0===t,"Second parameter should be boolean"),h.checkLineExists(this._internalDocument,e);var i=this.getFirstVisibleLineNumber(t),n=this.getLastVisibleLineNumber(t);return e>=i&&e<=n},isLineVisible:function(e){var t=this._internalDocument.getLineNode(e-1);return this.isRootContainerVisible(t)},isRootContainerVisible:function(e){return!!e&&(0===e.children.length?this.isNodeVisible(e):this.isNodeVisible(e)&&e.children.some(this.isNodeVisible,this))},getVisibleLineNumbers:function(e){for(var t=this.getFirstVisibleLineNumber(e),i=this.getLastVisibleLineNumber(e),n=[],o=t;o<=i;o+=1)this.isLineVisible(o)&&n.push(o);return n},isLineColumnInView:function(e,t,i){h.checkLineColumnExists(this._internalDocument,e,t);var n=this._internalDocument.getPositionForLineColumn(e,t);return this.isPositionInView(n,i)},isPositionInView:function(e,t){if(h.assert("boolean"==typeof t||void 0===t,"Second parameter should be boolean"),h.assert(e,this._POSITION_SHOULD_NOT_BE_NULL),!e.isValid())return!1;if(!this.isLineInView(e.getLine(),t))return!1;var i=this.getCoordinateForPosition(e);return!!this.isValidCoordinate(i)&&(t?i.x>=this.getScrollLeft()&&i.x+i.width<=this.getScrollLeft()+this.getClientWidth():i.x<=this.getScrollLeft()+this.getClientWidth()&&i.x+i.width>=this.getScrollLeft())},getFirstVisibleLineNumber:function(e){h.assert("boolean"==typeof e||void 0===e,"Second parameter should be boolean");var t={x:0,y:this._getTopOfView()},i=this.getLineFromCoordinate(t);return e&&!this.isLineFullyOnScreen(i)&&(i+=1),i},getFirstVisibleNode:function(e){var t=this.getFirstVisibleLineNumber(e);return this._internalDocument.getLineNode(t-1)},getLastVisibleLineNumber:function(e){h.assert("boolean"==typeof e||void 0===e,"Second parameter should be boolean");var t={x:0,y:this._getBottomOfView()-1},i=this.getLineFromCoordinate(t),n=this._internalDocument.getMaxLineNumber(),o=i>=0?i:n;return e&&!this.isLineFullyOnScreen(o)&&(o-=1),o},getLastVisibleNode:function(e){var t=this.getLastVisibleLineNumber(e);return this._internalDocument.getLineNode(t-1)},isLineFullyOnScreen:function(e){h.assert("number"==typeof e,e+" is not of type number");var t=this._internalDocument.getLineNode(e-1);return this.isNodeFullyOnScreen(t)},isNodeFullyOnScreen:function(e){h.assert(p.isNode(e),e+" is not of type Node");var t=this.getCoordinateForNode(e),i=t.y,n=i+t.height,o=i>=this._getTopOfView(),r=n<=this._getBottomOfView();return o&&r},_getTopOfView:function(){return this.getScrollTop()},_getBottomOfView:function(){return this._getTopOfView()+this.getClientHeight()},getDocumentDimension:function(){return this._viewModel.getDocumentDimension()},scrollLineColumnIntoView:function(e,t,i,n){h.checkLineColumnExists(this._internalDocument,e,t);var o=this._internalDocument.getPositionForLineColumn(e,t);return this.scrollPositionIntoView(o,i,n)},scrollPositionIntoView:function(e,t,i){if(h.assert(e,this._POSITION_SHOULD_NOT_BE_NULL),!e.isValid())return!1;var n,o=this.getClientHeight(),r=this.getClientWidth(),a=this._viewMeasurementService.getNumericLineHeight(),s=this._viewMeasurementService.getNumericCharacterWidth();if(o<a&&r<s)return!1;t=void 0===t?this._DEFAULT_VERTICAL_PADDING:t,i=void 0===i?this._DEFAULT_HORIZONTAL_PADDING:i;var l=this.getCoordinateForPosition(e),c=e.getNode().parent,d=this.getCoordinateForNode(c);if(n=this.isValidCoordinate(d)?{x:l.x,y:d.y,width:l.width,height:d.height}:l,!this.isValidCoordinate(n)||n.x<0||n.y<0)return!1;var u=n.y,p=this.getScrollTop()+t,f=u+n.height,g=this.getScrollTop()+o-t,m=u<=p,_=f>=g,v=f-u>g-p;_&&m&&(_=!1,m=!1);var b=this.getScrollTop();v?_?b-=p-u:m&&(b+=f-g):_?b+=f-g:m&&(b-=p-u),b=Math.max(0,b),this.setScrollTop(b);var y=n.x,C=this.getScrollLeft()+i,T=y,E=Math.max(0,this.getScrollLeft()+r-i),S=y<=C,w=T>=E,I=this.getScrollLeft();return w?I+=T-E:S&&(I-=C-y),I=Math.max(0,I),this.setScrollLeft(I),_||m||S||w},applyClassToLine:function(e,t){var i=this._internalDocument.getLineNode(e);i&&this._layoutManager.applyClass(i,t)},removeClassFromLine:function(e,t){var i=this._internalDocument.getLineNode(e);i&&this._layoutManager.clearClass(i,t)},removeClassFromAllLines:function(e){for(var t=this._internalDocument.getMaxLineNumber(),i=0;i<t;i+=1)this.removeClassFromLine(i,e)},getCoordinateForLineColumn:function(e,t){h.checkLineColumnExists(this._internalDocument,e,t);var i=this._internalDocument.getPositionForLineColumn(e,t);return this.getCoordinateForPosition(i)},getLineColumnFromCoordinate:function(e){var t=this.getPositionFromCoordinate(e);return t?t.getLineColumn():null},getLineFromCoordinate:function(e){if(this.isPaginated())return this._viewModel.getLineNumberAtCoordinate(e);var t=this.getPositionFromCoordinate(e);return t?t.getLineColumn().line:-1},getLeftmostVisibleColumnNumber:function(e){const t=this.getCoordinateForLineColumn(e,1);t.x=this.getDomtarget().scrollLeft;const i=this.getPositionFromCoordinate(t);return this.isPositionInView(i,!0)?i.getColumn():i.getColumn()+1},getRightmostVisibleColumnNumber:function(e){const t=this.getDomtarget(),i=this.getCoordinateForLineColumn(e,1);i.x=t.scrollLeft+t.clientWidth;return this.getPositionFromCoordinate(i).getColumn()},fixEvent:function(e){var t,i,n,o,a,s;if(i=this.getDomtarget(),n={target:e.target,pageX:e.pageX,pageY:e.pageY,layerX:e.layerX,layerY:e.layerY,button:e.button,offsetX:e.offsetX},o=r.position(i),s=r.position(document.getElementsByTagName("body")[0]),a={x:o.x-s.x,y:o.y-s.y,w:o.w,h:o.h},n.layerX=e.pageX-Math.floor(a.x),n.layerY=e.pageY-Math.floor(a.y),n._meta={viewSelectionOffset:{top:a.y,bottom:a.y+a.h,left:a.x,right:a.x+a.w}},(t=e.target)&&!t.rteNode){for(;t&&t!==i&&t.parentNode&&!t.rteNode;)t=t.parentNode;t===i&&(t=this.getNodeBox(this._internalDocument.root))}return n.target=t||this.getNodeBox(this._internalDocument.root),n.offsetX=n.layerX+this.getScrollLeft(),n},isFixedEventOutside:function(e){var t=this.getDomTargetPosition();return e.layerX<0||e.layerY<0||e.layerX>=t.clientWidth||e.layerY>=t.clientHeight},getFixedEventDirectionOutside:function(e){var t={x:0,y:0,layerX:e.layerX,layerY:e.layerY};return e.pageX<e._meta.viewSelectionOffset.left?t.x=-1:e.pageX>e._meta.viewSelectionOffset.right&&(t.x=1),e.pageY<e._meta.viewSelectionOffset.top?t.y=-1:e.pageY>e._meta.viewSelectionOffset.bottom&&(t.y=1),t},getFixedEventPositionAtBorder:function(e){var t={target:e.target,layerX:e.layerX,layerY:e.layerY},i=this.getFixedEventDirectionOutside(e);return 0===i.x&&0===i.y||(i.x<0?t.layerX=0:i.x>0&&(t.layerX=e._meta.viewSelectionOffset.right-e._meta.viewSelectionOffset.left),i.y<0?t.layerY=0:i.y>0&&(t.layerY=e._meta.viewSelectionOffset.bottom-e._meta.viewSelectionOffset.top),t.target=this.getNodeBox(this._internalDocument.root)),this.getPositionFromEvent(t)},getCoordinateFromEvent:function(e){var t={x:e.layerX,y:e.layerY};return s("mozilla")&&0===t.x&&0===t.y?null:(t.x+=this.getScrollLeft(),t.y+=this.getScrollTop(),t)},getPositionFromEvent:function(e){var t=e.target,i=this.getCoordinateFromEvent(e);return this._coordinateConverter.getPositionFromCoordinate({x:i.x,y:i.y+1},t.rteNode)},getCoordinateForNode:function(e){return this.getCoordinateForDomNode(this._viewModel.getNodeBox(e))},getCoordinateForLineNumber:function(e){var t=this._internalDocument.getLineNode(e);return this.getCoordinateForNode(t)},getDomNodeForLine:function(e){return this.getNodeBox(this._internalDocument.getLineNode(e))},getCoordinateForDomNode:function(e){return this._coordinateConverter.getCoordinateForDomNode(e)||{x:0,y:0,width:0,height:0}},getCoordinateForPosition:function(e){var t=this._coordinateConverter.getCoordinateFromPosition(e);return t||this._getCoordinateForInvisiblePosition(e)},_getCoordinateForInvisiblePosition:function(e){var t;return h.isAtEndOfFile(e)&&(t=this._getCoordinateForVisualEndOfFile()),t||{x:0,y:0,width:0,height:0}},_getCoordinateForVisualEndOfFile:function(){var e=this.getDocumentDimension(),t=this.getPositionFromCoordinate({x:e.width,y:e.height});if(!t)return null;var i=this.getCoordinateForNode(t.getNode());return i.x+=i.width,i.width=1,i},isValidCoordinate:function(e){return!!e&&(0!==e.x||0!==e.y||0!==e.width||0!==e.height)},getPositionFromCoordinate:function(e){return this._coordinateConverter.getPositionFromCoordinate({x:e.x,y:e.y+1})},setDraggable:function(e){e||this.setDomTargetDraggable(!1),this._allowDrag=e},setDomTargetDraggable:function(e){this._allowDrag?this._domTarget.draggable=e:c.assert(!1,"The dom node is not allow to be a draggable object")},isDraggable:function(){return this._allowDrag},isDomTargetDraggable:function(){return this._domTarget.draggable},isPaginated:function(){return this._viewModel.isPaginated()},insertDomNode:function(e,i,n){return!!this._viewModel.getNodeBox(i.getNode())&&(this._layoutManager.insertDomNode(e,i,n)?{remove:t.hitch(this._layoutManager,"removeDomNode",e)}:null)},setDefaultVerticalPadding:function(e){this._DEFAULT_VERTICAL_PADDING=e},getNodeBox:function(e){this.isPaginated()&&(!this._viewModel.getNodeBox(e)&&e&&this._layoutManager.layoutNode(e));return this._viewModel.getNodeBox(e)},getNodeOffsetTop:function(e){return this._viewModel.getNodeOffsetTop(e)},getNodeOffsetBottom:function(e){return this._viewModel.getNodeOffsetBottom(e)},getNodeOffsetLeft:function(e){return this._viewModel.getNodeOffsetLeft(e)},getNodeOffsetRight:function(e){return this._viewModel.getNodeOffsetRight(e)},getNodeOffsetWidth:function(e){return this._viewModel.getNodeOffsetWidth(e)},getNodeOffsetHeight:function(e){return this._viewModel.getNodeOffsetHeight(e)},serializePlugin:function(){return{scrollTop:this.getScrollTop(),scrollLeft:this.getScrollLeft()}},deserializePlugin:function(e,t){t.whenAllViewsReady(function(){this.setScrollTop(e.scrollTop),this.setScrollLeft(e.scrollLeft)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6981)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.view.viewmodel","rtc.view.coordinateconverter.converter"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(217),i(1578),i(500),i(686)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{CONVERTER_PLUGIN_NAME:"CoordinateConverter",constructor:function(e,t,i){this._internalDocument=e,this._viewModel=t,this._baseConverter=new o(t),this._createConverterMap(i)},getPositionFromCoordinate:function(e,t){var i;e=n.convertFromOffsetToClient(e,this._viewModel),t=t||this._internalDocument.root;do{var o=this._getPositionFromCoordinate(e,t);if(!o)break;i=o,t=o.getNode()}while(t.children&&t.children.length>0);return i&&i.getNode().isRootContainer()?i.getNode().startPosition():i},_getPositionFromCoordinate:function(e,t){var i=this._getConverter(t),o=this._getRectsRetriever.bind(this),r=i.getClosestRect(t,e,o);if(!r)return null;var a=r.associatedNode,s=this._getConverter(a);return e=n.getProjectedCoordinate(e,r),s.getPositionFromCoordinate(e,a)},_getRectsRetriever:function(e){return this._getConverter(e).getClientRects(e)},getCoordinateFromPosition:function(e){return this._viewModel.isPaginated()?this._getCoordinateFromPositionForPaginatedView(e):this._getCoordinateFromPosition(e)},_getCoordinateFromPositionForPaginatedView:function(e){var t=this._viewModel.getNodeBox(e.getNode());if(this._viewModel.isDomNodeVisible(t))return this._getCoordinateFromPosition(e);var i=e.getNode(),n=this._viewModel.getMeasurementAndOffsetForNode(i);if(!n)return null;var o=e.getOffset()/e.getNode().maxOffset()*n.width||0;return{x:n.paddingLeft+o,y:n.offsetTop,width:n.width,height:n.height,pageX:n.pageX+n.paddingLeft+o}},_getCoordinateFromPosition:function(e){var i=this._viewModel.getNodeBox(e.getNode());if(this._viewModel.isDomNodeVisible(i)){for(;e;){var n=this._getConverter(e.getNode()),o=n.getCoordinateFromPosition(e);if(o){var r=this._viewModel.getDomTargetDomNode(),a=t.position(r);return o.x=o.pageX-a.x+r.scrollLeft,o}e=n.getDelegatedPositionForCoordinate(e)}return{x:0,y:0,width:0,height:0,pageX:0}}},getCoordinateForDomNode:function(e){return this._viewModel.isPaginated()?this._getCoordinateFromDomNodeForPaginatedView(e):this._getCoordinateFromDomNode(e)},_getCoordinateFromDomNodeForPaginatedView:function(e){var t=this._viewModel.getNodeFromDomNode(e);if(t&&!this._viewModel.isDomNodeVisible(e)){var i=this._viewModel.getMeasurementAndOffsetForNode(t);return i?{x:0,y:i.offsetTop,width:i.width,height:i.height}:null}return this._getCoordinateFromDomNode(e)},_getCoordinateFromDomNode:function(e){if(!this._viewModel.isDomNodeVisible(e))return{x:0,y:0,width:0,height:0};var t=e.getBoundingClientRect(),i=this._viewModel.getDomTargetDomNode().getBoundingClientRect(),n=this._viewModel.getViewProperties();return{x:t.left-i.left+n.scrollLeft,y:t.top-i.top+n.scrollTop,width:t.width,height:t.height}},_getConverter:function(e){return this.inherited(arguments)||this._baseConverter}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6983)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel","rtc.view.rangeconverter.converter.plaintext"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(389),i(1146)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t){this._rangeConverter=t,this._viewModel=e},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6985)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(547),i(334),i(500),i(1143)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){this._viewModel=e},getApplicableNodeClass:function(){return t},getClosestRect:function(e,t,o){var r=this.inherited(arguments);if(!r){var a=e.children[0];if(a){var s=this.getDomNode(a);return(r=s?s.getBoundingClientRect():{left:0,top:0,width:0,height:0}).associatedNode=a,r}return null}if(n.isCoordinateRightOfRect(t,r)){var l=i.getLineage(r.associatedNode,this._viewModel);r.associatedNode=l[0]}return r},_chooseUpOrDownRect:function(e,t,o){if(!n.isCoordinateRightOfRect(e,t))return this.inherited(arguments);var r=i.getLineage(t.associatedNode,this._viewModel),a=r[0];return a!==t.associatedNode?t:this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6987)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.view","rtc.view.decoration.viewmodel","rtc.view.decoration.layerviewmodel","rtc.linenumberservice","rtc.view.decoration.pendinginlinedecoration"]}},createInstance:function(e,t,n,o,r,a){return new i(e,t,n,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(282),i(260),i(333),i(373),i(362),i(6988),i(6989)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(n,{constructor:function(e,n,r,a,s,l){this._internalDocument=e,this._rtcView=n,this._inlineViewModel=r,this._layerViewModel=a,this._lineNumberService=s,this._pendingInlineDecoration=l,this._decoratorToCacheDataMap=o.createMap(),this._decoratorLayerMap=o.createMap(),this.own(i.after(e,"onDocumentChanged",t.hitch(this,"_handleDocumentChanged"),!0),i.after(e,"onPreDocumentChanged",t.hitch(this,"_handlePreDocumentChanged"),!0),i.after(e,"onDocumentReset",t.hitch(this,"_handleDocumentReset"),!1,i.priority.INFRASTRUCTURE),i.after(a,"onLayerDecoratorUpdate",t.hitch(this,"_handleLayerDecorationUpdate"),!0),i.after(n,"onViewUpdated",t.hitch(this,"_handleViewUpdated"),!0)),this._cachedDocumentWidth=0,this._resetPendingLayerNodesList(),this._resetPendingLayerDecorators()},_handleDocumentChanged:function(e){this._pendingInlineDecoration.getRanges().length>0&&this._applyChanges(),(this._pendingLayerDecorators.length>0||this._layerUpdateOccurredDuringDocumentChange)&&(this._addPendingLayerNodesFromDocumentEvents(e),this._applyLayerChanges(e)),this._layerUpdateOccurredDuringDocumentChange=!1,this._documentChangeInProgress=!1},_handlePreDocumentChanged:function(){this._documentChangeInProgress=!0},_handleDocumentReset:function(){this._pendingInlineDecoration.reset(),this._resetPendingLayerDecorators(),this._decoratorToCacheDataMap.clear()},createDecorator:function(e,i,n,o){void 0===i&&(i=!1);const r=new c(this._inlineViewModel,e,t.hitch(this,"_applyChanges",i),n,o);return this._inlineViewModel.addDecorator(r),r},_applyChanges:function(e){this._pendingInlineDecoration.getNodes().forEach(this._rtcView.refreshNode,this._rtcView);var t=null;this._pendingInlineDecoration.getRanges().forEach((function(e){var i=e.getStartPosition().getNode().rootContainer(),n=e.getEndPosition().getNode().rootContainer(),o=this._lineNumberService.getLineNumber(i),r=this._lineNumberService.getLineNumber(n);t?o>=t.start&&o<=t.end+1&&r>=t.end?t.end=r:(this._rtcView.onLinesDOMUpdated(t.start,t.end,!1),t={start:o,end:r}):t={start:o,end:r}}),this),t&&this._rtcView.onLinesDOMUpdated(t.start,t.end,!1),this._pendingInlineDecoration.getRanges().length>0&&(e&&this._rtcView.onViewUpdated([s.createEvent(s.EVENTS.renderUpdate)]),this.onDecorationsChanged()),this._pendingInlineDecoration.reset()},onDecorationsChanged:function(){},createLayerDecorator:function(e,t,i=!0){if("number"!=typeof t)throw new Error("Priority is required and must be a number");var n,o,r=this._applyLayerChanges.bind(this),a=new d(this._layerViewModel,r,e,t,i),s=l.createNewLayerForDecorator(a,this._layerViewModel,this._rtcView),c={};this._decoratorLayerMap.forEach((function(e,t){c[t.getPriority()]={decorator:t,domLayer:e}}),this);var u=[];if(Object.keys(c).forEach((function(e){u.push(Number(e))})),u.length>0){if(u.indexOf(t)>-1)throw new Error("LayerDecorator priority must be unique");for(var h=0;h<u.length;h++)if(t<u[h]){n=c[u[h]].domLayer,o="before";break}}return this._rtcView.addLayer(s,n,o),this._decoratorLayerMap.set(a,s),a},_applyLayerChanges:function(){this._documentChangeInProgress&&(this._layerUpdateOccurredDuringDocumentChange=!0);var e=this._pendingLayerDecorators,t=[];e.forEach((function(e){var i=this._decoratorLayerMap.get(e),n=l.createNewLayerForDecorator(e,this._layerViewModel,this._rtcView);t.push({newLayer:n,oldLayer:i}),this._decoratorLayerMap.set(e,n),this._getNodesToRefreshForLayerDecorator(e).forEach(this._addPendingLayerNode,this)}),this),t.forEach(function(e){this._rtcView.switchLayer(e.newLayer,e.oldLayer)}.bind(this)),this._lastDrawnLayerDecorators=e,this._resetPendingLayerDecorators(),this._refreshPendingLayerNodes(),this._resetPendingLayerNodesList()},_addPendingLayerNodesFromDocumentEvents:function(e){r.getLineNodesFromEvents(e,this._internalDocument).map((function(e){return e.rootContainer()})).forEach(this._addPendingLayerNode,this)},_refreshPendingLayerNodes:function(){this._getPendingLayerNodes().forEach((function(e){this._rtcView.refreshNode(e);var t=e.startPosition();if(null!==t){var i=t.getLine()-1;this._rtcView.onLinesDOMUpdated(i,i,!0)}}),this)},_getNodesToRefreshForLayerDecorator:function(e){var t=[],i=[];if(this._decoratorToCacheDataMap.has(e)){var n=this._decoratorToCacheDataMap.get(e);t=n.lineNumbers,i=n.rootContainers}var o=[],r=[],a=this._layerViewModel.getDescriptorsForLayerDecorator(e);null!==a&&a.forEach((function(e){var t=e.getRange().getStartPosition();o.push(t.getLine()),r.push(t.getNode().rootContainer())}),this);var s=t.filter((function(e){return o.indexOf(e)<0}),this),l=o.filter((function(e){return t.indexOf(e)<0}),this),c={lineNumbers:o,rootContainers:r};this._decoratorToCacheDataMap.set(e,c);var d=s.concat(l).map(this._getLineNodeForLineNumber.bind(this));return(d=d.concat(i).concat(r)).filter((function(e){return e}))},_getLineNodeForLineNumber:function(e){return this._internalDocument.getLineNode(e-1)},_addPendingLayerNode:function(e){this._pendingLayerNodes[e.uid]||(this._pendingLayerNodes[e.uid]=e)},_getPendingLayerNodes:function(){return Object.keys(this._pendingLayerNodes).map((function(e){return this._pendingLayerNodes[e]}),this)},_resetPendingLayerNodesList:function(){this._pendingLayerNodes={}},_resetPendingLayerDecorators:function(){this._pendingLayerDecorators=[]},_handleLayerDecorationUpdate:function(e){-1===this._pendingLayerDecorators.indexOf(e)&&this._pendingLayerDecorators.push(e)},_handleViewUpdated:function(e){(s.hasSizingEvent(e)||s.hasLayoutEvent(e)||s.hasScrollEvent(e)&&this._lastDrawnLayerDecorators||this._cachedDocumentWidth!==this._rtcView.getDocumentDimension().width)&&(this._cachedDocumentWidth=this._rtcView.getDocumentDimension().width,this._redrawAllLayerDecorators(),this._lastDrawnLayerDecorators&&(this._lastDrawnLayerDecorators=null))},_redrawAllLayerDecorators:function(){var e=[];this._decoratorLayerMap.forEach((function(t,i){var n=l.createNewLayerForDecorator(i,this._layerViewModel,this._rtcView);e.push({newLayer:n,oldLayer:t}),this._decoratorLayerMap.set(i,n)}),this),e.forEach(function(e){this._rtcView.switchLayer(e.newLayer,e.oldLayer)}.bind(this))},destroy:function(){this.inherited(arguments),this._pendingInlineDecoration.reset(),this._resetPendingLayerNodesList(),this._resetPendingLayerDecorators(),this._decoratorLayerMap.clear(),this._decoratorToCacheDataMap.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(229)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,i,n,o,r){this._viewModel=e,this._priority=i||0,this._applyChangesCallback=n,this.uid=o||t.generateUuid(),this._cloneDecorationOnSplit="boolean"!=typeof r||r},updateClasses:function(e,t){this._viewModel.updateClasses(e,t,this)},addClasses:function(e){this._viewModel.addClasses(e,this)},addClass:function(e,t){this._viewModel.addClass(e,t,this)},removeClass:function(e,t){this._viewModel.removeClass(e,t,this)},updateStyles:function(e,t,i){this._viewModel.updateStyles(e,t,i,this)},setStyle:function(e,t,i){this._viewModel.setStyle(e,t,i,this)},removeStyle:function(e,t){this._viewModel.removeStyle(e,t,this)},addDomNode:function(e,t,i){this._viewModel.addDomNode(t,e,i,this)},removeDomNode:function(e,t,i){this._viewModel.removeDomNode(t,e,i,this)},clearRange:function(e){this._viewModel.clearRange(e,this)},shouldCloneDecorationOnSplit:function(){return this._cloneDecorationOnSplit},registerUpdateCallback:function(e){this._updateCallback=e},getUpdateCallback:function(){return this._updateCallback},updateLineRange:function(e,t,i){this._updateCallback&&this._viewModel.updateLineRange(e,t,i,this)},clearAllLineRange:function(){this._updateCallback&&this._viewModel.clearAllLineRange(this)},applyChanges:function(){this._applyChangesCallback()},priority:function(){return this._priority}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(234),i(209)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,t,i,n,o){this._viewModel=e,this._applyChangesCallback=t,this._layerCssClass=i||"",this._priority=n,this._extendToMargin=o},getLayerCssClass:function(){return this._layerCssClass},getLineNodeCssClass:function(){return"layerDecoratedLine"},getPriority:function(){return this._priority},extendsToMargin:function(){return this._extendToMargin},addClasses:function(e){e.forEach((function(e){this.addClass(e.range,e.classList)}),this)},addClass:function(e,n){i.assert(t.isCodeRange(e.getStartPosition().getNode(),e.getEndPosition().getNode()),"Layer decorator class should only be applied to code range"),this._viewModel.addLayerClass(e,n,this)},removeClass:function(e,t){this._viewModel.removeLayerClass(e,t,this)},setStyle:function(e,t){this._viewModel.setLayerStyle(e,t,this)},removeStyle:function(e,t){this._viewModel.removeStyle(e,t,this)},clearRange:function(e){this._viewModel.clearLayerRange(e,this)},applyChanges:function(){this._applyChangesCallback()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6991)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(333)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){this.reset()},reset:function(){this._pendingNodes={},this._pendingRanges=[]},addRanges:function(e){e.forEach(this._addRange,this)},getRanges:function(){return this._pendingRanges},getNodes:function(){return Object.values?Object.values(this._pendingNodes):Object.keys(this._pendingNodes).map((function(e){return this._pendingNodes[e]}),this)},_addRange:function(e){this._pendingRanges.push(e),t.nodesInRange(e).forEach(this._addNode,this)},_addNode:function(e){this._pendingNodes[e.uid]||(this._pendingNodes[e.uid]=e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6993)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view.decoration.layerviewmodel","rtc.view","rtc.internaldocument"]}},createInstance:function(e,t,n){return i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(228),i(210),i(211),i(213),i(203),i(204),i(209),i(208),i(575),i(807),i(808),i(334)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return o([l,c],{_DEFAULT_WIDTH:0,_BASE_CSS_CLASS:"marginLineHighlight",_ID:"LayerDecoration",constructor:function(e,t,i){this._decorationViewModel=e,this._view=t,this._internalDocument=i,this.own(s.after(this._decorationViewModel,"onLayerDecoratorUpdate",r.hitch(this,"_handleLayerDecorationChanged"),!0))},getRangeDescriptions:function(e){e||(e=u.getZeroBasedVisibleLineNumbers(this._view));var t=[];return e.forEach((function(e){if(this.hasLayerForLineNumber(e)){var i=this.createDecorationForLineNumber(e);t.push(new d(i,e+1,e+1,this,!1,!1))}}),this),t},hasLayerForLineNumber:function(e){return this._decorationViewModel.hasLayerDecorationForLineNumber(e+1)},createDecorationForLineNumber:function(e){var t=i.create("div",{style:{width:"100%"}}),n=e+1,o=this._decorationViewModel.getLayerCssClassesArrayForLineNumber(n,!1),r=this._decorationViewModel.getLayerStylesArrayForLineNumber(n,!1),a=this._internalDocument.getPositionForLineColumn(n,1),s=u.getVerticalDimensionsBetweenPositions(a,a,this._view),l=s.bottom-s.top;return o.forEach((function(n,o){var a=i.create("div",{style:{height:l+"px"}},t),s=r[o];this._applyStyle(a,n,s,e)}),this),t},getPriority:function(){return 1},getId:function(){return this._ID},_applyStyle:function(e,i,o,r){var a=i.slice();a.push(this._BASE_CSS_CLASS);var s=a.join(" ");t.add(e,s),n.set(e,o),this._addTestTag(e,a,r)},_addTestTag:function(t,i,n){var o=n;i&&i.length>0?o=o+"_"+i.join("_"):o+="_invalid",e.set(t,"data-testid",o)},_handleLayerDecorationChanged:function(e){e.extendsToMargin()&&this.onUpdate()},getWidth:function(){return this._DEFAULT_WIDTH}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6995)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.view.viewmodel","rtc.linenumberservice"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(282),i(260),i(237),i(313),i(333)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(t,{constructor:function(e,t,o){this._internalDocument=e,this._viewModel=t,this._lineNumberService=o,this._descriptorMap=n.createMap(),this._initializeTemporaryStore(),this.own(i.before(e,"onDocumentReset",this._handleDocumentReset.bind(this))),this.own(i.before(e,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0))},_initializeTemporaryStore:function(){this._temporaryDecorationStore=new Array(this._internalDocument.root.children.length)},_handleDocumentReset:function(){this.clear(),this._initializeTemporaryStore()},_handleDocumentChanged:function(e){if(!this._viewModel.isPaginated())return;const t=o.finalLineRangeFromEvents(e);this._pendingLineRange=t;const i=o.toLengthChangeEvent(e);if(!i)return;const n=t.startLine,a=i.change;if(a>0){const e=new Array(a);this._temporaryDecorationStore=r.insertArrayAt(e,this._temporaryDecorationStore,n+1)}else this._temporaryDecorationStore.splice(n+1,-a)},fetchPendingLineRange:function(){const e=this._pendingLineRange;return this._pendingLineRange=null,e},add:function(e){var t=this._getKeyForDescriptor(e);this._descriptorMap.set(t,e)},remove:function(e){this._destroyDescriptor(e),this._removeFromMap(e)},clear:function(){this._clearMap()},classesEqualToByRange:function(e,t,i){var n=this._getRangeDescriptionMapForDecorator(e,i);return 0===t.length&&0===Object.keys(n).length||!(t.some((function(e){return s.rangeIterator(e.range,function(t,i,o){var r=n[this._getKeyForNode(t)];return!r||!this._compareClassesAndEliminate(r,i,o,e.classList)}.bind(this))}),this)||this._hasResidualsInRangeDecorationMap(n))},_compareClassesAndEliminate:function(e,t,i,n){for(var o=t;o<i;o+=1){var r=e[o];if(!r||!r.classesEqualTo(n))return!1;delete e[o]}return!0},_hasResidualsInRangeDecorationMap:function(e){return Object.keys(e).some((function(t){return Object.keys(e[t]).length>0}),this)},_getRangeDescriptionMapForDecorator:function(e,t){var i=this.getForRange(e),n={};return 0===i.length||i.forEach((function(e){var i=e.getAtomicDescriptor(t);if(i){var o=e.getRange().getStartPosition().getNode(),r=this._getKeyForNode(o),a=n[r];a||(a={},n[r]=a);for(var s=e.getStartOffset(),l=e.getEndOffset(),c=s;c<l;c+=1)a[c]=i}}),this),n},getForRange:function(e){var t=[];return s.rangeIterator(e,function(e,i,n){for(var o=this.getForRangeInNode(e,i,n),r=o.length,a=0;a<r;a++)t.push(o[a])}.bind(this)),t},getForRangeInNode:function(e,t,i){return 0===t&&i===e.maxOffset()?this.getForNode(e):this.getInNode(e,t,i)},getForNode:function(e){var t=[],i=a.getPositions(e);return 0===i.length?t:(i.forEach((function(e){var i=this.getForPosition(e);i&&t.push(i)}),this),t.sort((function(e,t){return e.getStartOffset()-t.getStartOffset()})))},getForPosition:function(e){return this._descriptorMap.get(e)},getInNode:function(e,t,i){var n=this.getForNode(e);return 0===n.length?n:n.filter((function(e){var n=e.getStartOffset(),o=e.getEndOffset();return n>=t&&n<i||o>t&&o<=i||n<t&&o>i}),this)},updateTemporaryStore:function(e,t,i){let n=this.getTemporaryStoreByLine(e);if(t&&t.length>0)return n||(n={},this._temporaryDecorationStore[e]=n),void(n[i.uid]=t);n&&(delete n[i.uid],0===Object.keys(n).length&&(this._temporaryDecorationStore[e]=void 0))},getTemporaryStoreByNode:function(e){const t=e.rootContainer(),i=this._lineNumberService.getLineNumber(t);return this.getTemporaryStoreByLine(i)},getTemporaryStoreByLine:function(e){return this._temporaryDecorationStore[e]},_removeFromMap:function(e){var t=this._getKeyForDescriptor(e);this._descriptorMap.delete(t)},_getKeyForDescriptor:function(e){return e.getRange().getStartPosition()},_getKeyForNode:function(e){return e.uid},_clearMap:function(){this._descriptorMap.forEach(this._destroyDescriptor,this),this._descriptorMap.clear(),this._temporaryDecorationStore=null},_destroyDescriptor:function(e){e.destroy()},destroy:function(){this.inherited(arguments),this.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(6997)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(234),i(1344),i(6998)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{constructor:function(e){this._internalDocument=e,this._layerDecoratorDescriptorsStore=new a,this.own(i.after(this._internalDocument,"onDocumentReset",t.hitch(this,"_handleDocumentReset"),!1,i.priority.INFRASTRUCTURE))},_handleDocumentReset:function(){this._layerDecoratorDescriptorsStore.clear()},getAllLayerDecoratorsForRange:function(e,t=!0){return this._layerDecoratorDescriptorsStore.getAllDecoratorsForRange(e,t)},getLayerDecoratorsLineNodeCSSForRange:function(e){return this.getAllLayerDecoratorsForRange(e).map((function(e){return e.getLineNodeCssClass()})).join(" ")},hasLayerDecorationForLineNumber:function(e){var t=this._internalDocument.getRangeForLine(e);if(!this._isValidRangeForLineNumberSearch(t))return!1;for(var i=this._getAllLayerDescriptorsForRange(t),n=0;n<i.length;n+=1)if(i[n].hasClasses())return!0;return!1},_getAllLayerDescriptorsForRange:function(e,t){var i=this._layerDecoratorDescriptorsStore.getAllDecoratorsForRange(e,t),n=[];return i.forEach((function(t){n.push(this._layerDecoratorDescriptorsStore.getDescriptorForRange(e,t))}),this),n},getLayerCssClassesArrayForLineNumber:function(e,t=!0){var i=[],n=this._internalDocument.getRangeForLine(e);return this._isValidRangeForLineNumberSearch(n)?(this._getAllLayerDescriptorsForRange(n,t).forEach((function(e){var t=e.getClasses();if(t){var n=Object.keys(t);i.push(n)}}),this),i):i},getLayerStylesArrayForLineNumber:function(e,t=!0){var i=[],n=this._internalDocument.getRangeForLine(e);return this._getAllLayerDescriptorsForRange(n,t).map((function(e){var t=e.getStyles();i.push(t)}),this),i},addLayerClass:function(e,t,i){var n=this._createLayerDescriptor(e);t.forEach((function(e){n.addClass(e,i)}),this),this._configureLayerRangeDescriptor(n,i),this.onLayerDecoratorUpdate(i)},removeLayerClass:function(e,t,i){this._configureDecorationRange(e);var n=this._layerDecoratorDescriptorsStore.getDescriptorForRange(e,i);t.forEach((function(e){n.removeClass(e,i)}),this),this.onLayerDecoratorUpdate(i)},setLayerStyle:function(e,t,i){var n=this._createLayerDescriptor(e);Object.keys(t).forEach((function(e){n.setStyle(e,t[e],i)}),this),this._configureLayerRangeDescriptor(n,i),this.onLayerDecoratorUpdate(i)},_configureLayerRangeDescriptor:function(e,t){this._layerDecoratorDescriptorsStore.add(t,e)||e.addChangeListener(this._handleLayerDescriptorChanged.bind(this,e,t))},getDescriptorsForLayerDecorator:function(e){return this._layerDecoratorDescriptorsStore.get(e)},clearLayerRange:function(e,t){this._layerDecoratorDescriptorsStore.clearRange(e,t),this.onLayerDecoratorUpdate(t)},_createLayerDescriptor:function(e){this._configureDecorationRange(e);var t=e.getStartPosition(),i=e.getEndPosition();return t.setLive(!0),i.setLive(!0),new r({startPosition:t,endPosition:i})},_configureDecorationRange:function(e){var t,i=e.getStartPosition(),n=e.getEndPosition();i.setPosition(i.getNode(),0),t=n.isLinePosition()?0:i.getNode().maxOffset(),n.setPosition(i.getNode(),t)},_handleLayerDescriptorChanged:function(e,t,i){i.hasOwnProperty("columnHasChanged")?this._handleActivePositionUpdateForLayer(e,t,i):this._handlePositionUpdateForLayer(e,t),i.hasOwnProperty("nodeHasChanged")&&i.nodeHasChanged&&this.onLayerDecoratorUpdate(t)},_handlePositionUpdateForLayer:function(e,t){var i=e.getRange(),n=i.getStartPosition().getNode();!o.isCodeContainer(n)&&this._clearRangeFromDecoratorAndUpdate(i,t)},_handleActivePositionUpdateForLayer:function(e,t,i){var n=e.getRange(),o=n.getStartPosition().isLinePosition()||n.getEndPosition().isLinePosition(),r=this._isRangeStartEndEqual(n),a=e.getStartOffset()>e.getEndOffset(),s=r&&!o||a;i.columnHasChanged&&!i.lineHasChanged&&1===n.getEndPosition().getColumn()&&(s=!1),s?this._clearRangeFromDecoratorAndUpdate(n,t):i.lineHasChanged&&this.onLayerDecoratorUpdate(t)},_clearRangeFromDecoratorAndUpdate:function(e,t){this._layerDecoratorDescriptorsStore.clearRange(e,t),this.onLayerDecoratorUpdate(t)},_isRangeStartEndEqual:function(e){return e.getStartPosition().isEqualTo(e.getEndPosition())},_isValidRangeForLineNumberSearch:function(e){return e.getStartPosition().getNode().rootContainer()===e.getEndPosition().getNode().rootContainer()},onLayerDecoratorUpdate:function(e){},destroy:function(){this.inherited(arguments),this._layerDecoratorDescriptorsStore.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(282),i(313)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(){this._descriptorMap=i.createMap()},add:function(e,t){var i=this._descriptorMap.get(e);if(i){var n=this.getDescriptorForRange(t.getRange(),e);if(n)return this._mergeClasses(n,t,e),!0;i.push(t)}else{var o={};this._descriptorMap.forEach((function(e,t){o[t.getPriority()]={decorator:t,descriptorArray:e}}),this),o[e.getPriority()]={decorator:e,descriptorArray:[t]},this._descriptorMap.clear();for(var r=Object.keys(o),a=0;a<r.length;a++)this._descriptorMap.set(o[r[a]].decorator,o[r[a]].descriptorArray)}return!1},_mergeClasses:function(e,t,i){var n=t.getAtomicDescriptor(i),o=n.getClasses();for(var r in o)o.hasOwnProperty(r)&&e.addClass(r,i);var a=n.getStyles();for(var s in a)a.hasOwnProperty(s)&&e.setStyle(s,a[s],i)},getDescriptorForRange:function(e,t){var i=this._descriptorMap.get(t);if(!i)return null;for(var o=0;o<i.length;o++){var r=i[o],a=r.getRange().getStartPosition(),s=e.getStartPosition(),l=e.getEndPosition();if(n.comparePositions(s,a)<=0&&n.comparePositions(l,a)>=0)return r}return null},get:function(e){return this._descriptorMap.has(e)?this._descriptorMap.get(e):null},getAllDecoratorsForRange:function(e,t=!0){var i=e.getStartPosition(),o=e.getEndPosition(),r=[];return this._descriptorMap.forEach((function(e,a){(t||a.extendsToMargin())&&e.some((function(e){var t=e.getRange().getStartPosition();if(n.comparePositions(i,t)<=0&&n.comparePositions(o,t)>=0)return r.push(a),!0}),this)}),this),r},clearRange:function(e,t){var i=this.getDescriptorForRange(e,t);if(null!==i){var n=this._descriptorMap.get(t),o=n.indexOf(i);n.splice(o,1)}e.destroy()},clear:function(){this._clearMap()},_clearMap:function(){this._descriptorMap.forEach(this._destroyDescriptors,this),this._descriptorMap.clear()},_destroyDescriptors:function(e){e.forEach(this._destroyDescriptor,this)},_destroyDescriptor:function(e){e.destroy()},destroy:function(){this.inherited(arguments),this._clearMap()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7e3)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.view.decoration.descriptorsstore","rtc.view.decoration.pendinginlinedecoration","rtc.linenumberservice","rtc.view.viewmodel"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(234),i(237),i(2421),i(270),i(266),i(333),i(362),i(1344)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(n,{constructor:function(e,t,n,o,r){this._internalDocument=e,this._descriptorsStore=t,this._pendingInlineDecoration=n,this._lineNumberService=o,this._viewModel=r,this._decorators=[],this.own(i.after(r,"notifyNodesAdding",this._handleNodesAdding.bind(this),!0)),this.own(i.after(r,"notifyNodesRemoved",this._handleNodesRemoved.bind(this),!0))},_handleNodesAdding:function(e){if(!this.isUsingTemporaryStore())return;this._eventSuspended=!0;const t=this._descriptorsStore.fetchPendingLineRange();e.forEach(this._addDecorationForLineNode.bind(this,t)),this._eventSuspended=!1},_handleNodesRemoved:function(e){this.isUsingTemporaryStore()&&(this._eventSuspended=!0,e.forEach(this._removeDecorationForLineNode,this),this._eventSuspended=!1)},getDecoration:function(e){var t=this._descriptorsStore.getForNode(e),i=[];return this._invalidDescriptorsForNode(t,e)||t.forEach((function(e){!this._isDescriptorEmptyOrRangeInvalid(e)&&c.rangeIsInsideOneNode(e.getRange())&&i.push({start:e.getStartOffset(),end:e.getEndOffset(),styles:e.getStyles(),classes:e.getClasses(),domNodes:e.getDomNodes()})}),this),i},addDecorator:function(e){if(this._decorators.find(t=>t.uid===e.uid))throw new Error("Decorator of the specified UID already exists");this._decorators.push(e)},getDescriptorsStore:function(){return this._descriptorsStore},isUsingTemporaryStore:function(){return this._viewModel.isPaginated()},_invalidDescriptorsForNode:function(e,t){var i=t.maxOffset(),n=0;return e.some((function(e){var t=e.getStartOffset(),o=e.getEndOffset();if(t<n||o>i||t>o)return!0;n=o}),this)},updateClasses:function(e,t,i){!this._descriptorsStore.classesEqualToByRange(e,t,i)&&(this.clearRange(e,i),this.addClasses(t,i))},addClasses:function(e,t){e.forEach((function(e){this.addClass(e.range,e.classList,t)}),this)},addClass:function(e,t,i){this._addDecoration(e,(function(e){e.forEach((function(e){t.forEach((function(t){e.addClass(t,i)}),this)}),this)}))},removeClass:function(e,t,i){this._removeDecoration(e,(function(e){var n=[];return e.forEach((function(e){var o=!1;t.forEach((function(t){o=e.removeClass(t,i)||o}),this),o&&n.push(e.getRange())})),n}))},updateStyles:function(e,t,i,n){var o=this._descriptorsStore.getForRange(e);if((o=this._updateDescriptorsToExpectedStructure(e,o)).length>0){if(this._clearDecorationOnDescriptorsAndMerge(o,this._clearDecorationOnDescriptors.bind(this,n),!0),0===i.length)return;o=this._descriptorsStore.getForRange(e)}o.length>0?i.forEach((function(e){var i=e.value,o=e.range;this.setStyle(o,t,i,n)}),this):(i.forEach((function(e){var i=e.value,r=e.range;c.rangeIterator(r,function(e,a,s){var l=this._createAndAddDescriptor(e,a,s);l&&(l.setStyle(t,i,n),this._addRangesIntoPendingList([r]),o.push(l))}.bind(this))}),this),this._merge(o))},setStyle:function(e,t,i,n){this._addDecoration(e,(function(e){e.forEach((function(e){e.setStyle(t,i,n)}),this)}))},removeStyle:function(e,t,i){this._removeDecoration(e,(function(e){var n=[];return e.forEach((function(e){e.removeStyle(t,i)&&n.push(e.getRange())}),this),n}))},addDomNode:function(e,t,i,n){var o,r;switch(i){case d.PLACEMENT.BEFORE:o=e.getStartPosition(),r="first";break;case d.PLACEMENT.AFTER:o=e.getEndPosition(),r="last";break;case d.PLACEMENT.BETWEEN:o=e.getStartPosition(),r="last"}this._addDecoration(e,function(e){var a=this._getDescriptorForDomNodeLocation(e,i);null!==a&&a.addDomNode(t,o,r,n)}.bind(this))},removeDomNode:function(e,t,i,n){this._removeDecoration(e,function(e){var o=[],r=this._getDescriptorForDomNodeLocation(e,i);return null!==r&&r.removeDomNode(t,n)&&o.push(r.getRange()),o}.bind(this))},_getDescriptorForDomNodeLocation:function(e,t){if(e.length<1)return null;var i=0;return t===d.PLACEMENT.AFTER&&(i=e.length-1),e[i]},clearRange:function(e,t){this._removeDecoration(e,this._clearDecorationOnDescriptors.bind(this,t))},updateLineRange:function(e,t,i,n){if(this.isUsingTemporaryStore())this._updateLineRangeWithPagination(e,t,i,n);else for(let o=e;o<=t;o++){const e=i[o];this._updateDecorationOfLineUsingUpdateCallback(o,e,n)}},clearAllLineRange:function(e){this.isUsingTemporaryStore()?this._updateLineRangeWithPagination(0,this._internalDocument.getMaxLineNumber()-1,null,e):this.clearRange(this._internalDocument.getFullRange(),e)},_updateLineRangeWithPagination:function(e,t,i,n){for(let o=e;o<=t;o++){const e=i&&i[o];this._descriptorsStore.updateTemporaryStore(o,e,n),this._isInViewPort(o)&&this._updateDecorationOfLineUsingUpdateCallback(o,e,n)}},_addDecorationForLineNode:function(e,t){const i=this._lineNumberService.getLineNumber(t),n=this._descriptorsStore.getTemporaryStoreByLine(i),o=e&&(i===e.startLine||i===e.endLine);(n||o)&&this._decorators.forEach(e=>{if(!e.getUpdateCallback())return;const t=n&&n[e.uid];(t||o)&&this._updateDecorationOfLineUsingUpdateCallback(i,t,e)})},_updateDecorationOfLineUsingUpdateCallback:function(e,t,i){i.getUpdateCallback()(e,t||[])},_removeDecorationForLineNode:function(e){const t=new l(e.startPosition(),e.endPosition()),i=this._descriptorsStore.getForRange(t);if(0===i.length)return;let n=!1;this._decorators.forEach(e=>{e.getUpdateCallback()&&i.forEach(t=>{t.clear(e)&&(n=!0)})}),n&&(this._merge(i),this._cleanup(i))},_addDecoration:function(e,t){if(this._isRangeExpected(e)){var i=this._prepareDescriptorsForRange(e,!0);t(i),i.forEach(this._mergeForSiblingDescriptors,this),this._addRangesIntoPendingList([e])}},_removeDecoration:function(e,t){if(this._isRangeExpected(e)){var i,n=e.getStartPosition(),o=e.getEndPosition(),a=r.isAtStartOfContainer(n,n.getNode().rootContainer())&&r.isAtEndOfContainer(o,o.getNode().rootContainer());a?(i=this._descriptorsStore.getForRange(e),i=this._updateDescriptorsToExpectedStructure(e,i)):i=this._prepareDescriptorsForRange(e,!1),this._clearDecorationOnDescriptorsAndMerge(i,t,a)}},_clearDecorationOnDescriptorsAndMerge:function(e,t,i){if(0!==e.length){var n=t(e);0!==n.length&&(i?(this._merge(e),this._cleanup(e)):(e.forEach(this._mergeForSiblingDescriptors,this),e.forEach(this._cleanupForSiblingDescriptors,this)),this._addRangesIntoPendingList(n))}},_clearDecorationOnDescriptors:function(e,t){var i=[];return t.forEach((function(t){t.clear(e)&&i.push(t.getRange())}),this),i},_prepareDescriptorsForRange:function(e,t){const i=[];return c.rangeIterator(e,(e,n,o)=>{const r=this._prepareDescriptorsInNode(e,n,o,t),a=r.length;for(let e=0;e<a;e++)i.push(r[e])}),i},_prepareDescriptorsInNode:function(e,t,i,n){let o,r,a=this._descriptorsStore.getForRangeInNode(e,t,i);if(a.length>0){let n=!1;a.forEach(e=>{let t=this._updateDescriptorToExpectedStructure(e);n=n||t.length>0}),n&&(a=this._descriptorsStore.getForRangeInNode(e,t,i))}if(0===a.length){if(n){const n=this._createAndAddDescriptor(e,t,i);if(n)return[n]}return[]}let s=!1;n&&a.forEach(t=>{o=t.getStartOffset(),o>r&&(this._createAndAddDescriptor(e,r,o),s=!0),r=t.getEndOffset()});const l=a[a.length-1],c=l.getStartOffset(),d=l.getEndOffset();i>c&&i<d?(this._split(l,i),s=!0):n&&d<i&&(this._createAndAddDescriptor(e,d,i),s=!0);const u=a[0],h=u.getStartOffset(),p=u.getEndOffset();return t>h&&t<p?(this._split(u,t),s=!0):n&&t<h&&(this._createAndAddDescriptor(e,t,h),s=!0),s&&(a=this._descriptorsStore.getForRangeInNode(e,t,i)),a},_updateDescriptorsToExpectedStructure:function(e,t){if(0===t.length)return t;var i=!1;return t.forEach((function(e){var t=this._updateDescriptorToExpectedStructure(e);i=i||t.length>0}),this),i?this._descriptorsStore.getForRange(e):t},_updateDescriptorToExpectedStructure:function(e){var t=e.getRange(),i=[];return this._isDescriptorEmptyOrRangeInvalid(e)?(this._descriptorsStore.remove(e),i=[t]):c.rangeIsInsideOneNode(t)||(i=this._handleRangeChangeAcrossNodes(e)),i.length>0&&this._pendingInlineDecoration.addRanges(i),i},_createAndAddDescriptor:function(e,t,i,n){if(t>=i)return null;var o=new a(e,t),r=new a(e,i);(n=n||{}).startPosition=o,n.endPosition=r,o.setRightAligned(!0);var s=new u(n),l=this._handleDescriptorChanged.bind(this,s);return s.addChangeListener(l),this._descriptorsStore.add(s),s},_split:function(e,t){var i=e.getStartNode(),n=e.cloneSettings(),o=t,r=e.getEndOffset();return e.adjust(t),this._createAndAddDescriptor(i,o,r,n)},_mergeForSiblingDescriptors:function(e){var t=e.getStartNode(),i=this._descriptorsStore.getForNode(t);this._merge(i)},_merge:function(e){for(var t=0;t<e.length-1;){var i=e[t],n=e[t+1];i.canMerge(n)?(i.merge(n),e.splice(t+1,1),this._descriptorsStore.remove(n)):t+=1}},_cleanupForSiblingDescriptors:function(e){var t=e.getStartNode(),i=this._descriptorsStore.getForNode(t);this._cleanup(i)},_cleanup:function(e){e.filter((function(e){return!e.hasDecoration()})).forEach(this._descriptorsStore.remove,this._descriptorsStore)},_handleDescriptorChanged:function(e){var t=e.getRange();if(this._isDescriptorEmptyOrRangeInvalid(e))return this._descriptorsStore.remove(e),void this._addRangesIntoPendingList([t]);var i=c.rangeIsInsideOneNode(t)?this._handleRangeChangeInNode(e):this._handleRangeChangeAcrossNodes(e);i.length>0&&this._addRangesIntoPendingList(i)},_addRangesIntoPendingList:function(e){this._eventSuspended||this._pendingInlineDecoration.addRanges(e)},_isDescriptorEmptyOrRangeInvalid:function(e){var t=e.getRange();return!!this._isRangeStartEndEqual(t)||!!(c.rangeIsInsideOneNode(t)&&e.getStartOffset()>e.getEndOffset())},_handleRangeChangeAcrossNodes:function(e){var t=[];if(e.isDestroyed())return t;var i=e.getStartNode(),n=e.getEndNode(),o=e.getEndOffset();if(this._isRangeDescriptorPositionsInvalidOrFlipped(e))return this._descriptorsStore.remove(e),t;var r=i.maxOffset();if(e.adjust(r),t.push(e.getRange()),o>0){var a=e.cloneSettings();if(a.descriptorSettings=a.descriptorSettings.filter(e=>e.decorator.shouldCloneDecorationOnSplit()),a.descriptorSettings.length>0){var s=this._createAndAddDescriptor(n,0,o,a);t.push(s.getRange())}}return t},_isRangeDescriptorPositionsInvalidOrFlipped:function(e){var t=e.getRange(),i=e.getStartNode(),n=e.getEndNode();return!t.getStartPosition().isValid()||!t.getEndPosition().isValid()||-1===r.nodesInOrder(i,n)},_handleRangeChangeInNode:function(e){return this._mergeForSiblingDescriptors(e),[e.getRange()]},_isRangeExpected:function(e){if(e.getStartPosition().isLinePosition()||e.getEndPosition().isLinePosition())throw new Error("Input range for decoration cannot be line positions");return!this._isRangeStartEndEqual(e)},_isRangeStartEndEqual:function(e){return e.getStartPosition().isEqualTo(e.getEndPosition())},_isInViewPort:function(e){const t=this._internalDocument.getLineNode(e),i=this._viewModel.getNodeBox(t);return i&&this._viewModel.getDomTargetDomNode().contains(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7002)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(282),i(274)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(){this._hideStateCache={}},setHidden:function(e,t){var i=e.uid;if(this._hideStateCache.hasOwnProperty(i)){var n=this._hideStateCache[i];return n.hasOwnProperty(t)?(n[t]++,null):(n[t]=1,e)}return this._hideStateCache[i]={},this._hideStateCache[i][t]=1,e},setVisible:function(e,t){var i=null,o=e.uid;return this._hideStateCache.hasOwnProperty(o)?(n.getLineageReverse(e).forEach((function(e){var n=e.uid;this._hideStateCache.hasOwnProperty(n)&&(this._setNodeIdToVisible(n,t)&&(i=e))}),this),i):i},setAllVisible:function(e){Object.keys(this._hideStateCache).forEach((function(t){this._setNodeIdToVisible(t,e)}),this)},_setNodeIdToVisible:function(e,t){var i=Object.keys(this._hideStateCache[e]).length;return!!this._hideStateCache[e][t]&&(1===i?delete this._hideStateCache[e]:delete this._hideStateCache[e][t],!0)},isHidden:function(e){return n.getLineageReverse(e).some((function(e){return this._hideStateCache.hasOwnProperty(e.uid)}),this)},isChildNodeHidden:function(e){return e.children.some((function(e){if(this.isHidden(e))return!0}),this)},destroy:function(){this._hideStateCache={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7004)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.viewmodel"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(389),i(2102)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7006)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.rangeconverter.converter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1578)],o=i.dj.d(n,(function(e,t){return e(t,{CONVERTER_PLUGIN_NAME:"RangeConverter",constructor:function(e){this._createConverterMap(e)},getRangeFromPosition:function(e){var t=e.getNode(),i=this._getConverter(t);return i?i.getRangeFromPosition(e):null},getContainerForPosition:function(e,t){var i=e.getNode(),n=this._getConverter(i);return n?n.getContainerForPosition(e,t):null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7008)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.domnode.external"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(921),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{_STYLE_SHEET:"rtcGlobalStyleChanger",_CSS_ID_PREFIX:"#",_SPACE_CHAR:" ",_CSS_PROPERTY_VALUE_SEPARATOR:":",_CSS_DECLARATION_TERMINATOR:";",_REFLOW_NEEDED_PROPERTIES:["font-family","font-size","font-weight","font-style"],_LINE_HEIGHT_UPDATED_PROPERTIES:["font-size"],constructor:function(e){this._rtcCssId=e.id,this._styleSheet=t.getStyleSheet(this._STYLE_SHEET)||t.getDynamicStyleSheet(this._STYLE_SHEET),this._stylesCache={}},onRulesChanged:function(){},onLineHeightUpdated:function(){},insertOrReplaceRule:function(e,t){e=this._appendRtcIdPrefix(e);var i=!1,n=!1;t.forEach((function(t){var o=t.name,r=t.value;this._isStyleChangeNeeded(e,o,r)&&(this._removeRule(e,o),this._insertRule(e,o,r),i=i||this._isReflowNeeded(t.name),n=n||this._isLineHeightUpdated(t.name))}),this),i&&!this._onRulesChangedQueued&&(this._onRulesChangedQueued=window.requestAnimationFrame(()=>{this._onRulesChangedQueued=null,this.onRulesChanged()})),n&&!this._onLineHeightUpdatedQueued&&(this._onLineHeightUpdatedQueued=window.requestAnimationFrame(()=>{this._onLineHeightUpdatedQueued=null,this.onLineHeightUpdated()}))},getCachedCssValue:function(e,t){return e=this._appendRtcIdPrefix(e),this._getCssValueFromCache(e,t)},_insertRule:function(e,i,n){var o=i+this._CSS_PROPERTY_VALUE_SEPARATOR+n+this._CSS_DECLARATION_TERMINATOR;t.insertCssRule(e,o,this._STYLE_SHEET),this._updateStylesCache(e,i,n)},_removeRule:function(e,i){var n=this._getCssValueFromCache(e,i);if(n){var o=i+this._CSS_PROPERTY_VALUE_SEPARATOR+n+this._CSS_DECLARATION_TERMINATOR;t.removeCssRule(e,o,this._STYLE_SHEET)}},_updateStylesCache:function(e,t,i){this._stylesCache[e]=this._stylesCache[e]||{},this._stylesCache[e][t]=i},_getCssValueFromCache:function(e,t){return this._stylesCache[e]?this._stylesCache[e][t]:void 0},_isStyleChangeNeeded:function(e,t,i){return this._getCssValueFromCache(e,t)!==i},_appendRtcIdPrefix:function(e){return this._CSS_ID_PREFIX+this._rtcCssId+this._SPACE_CHAR+e},_isReflowNeeded:function(e){return this._REFLOW_NEEDED_PROPERTIES.includes(e)},_isLineHeightUpdated:function(e){return this._LINE_HEIGHT_UPDATED_PROPERTIES.includes(e)},destroy:function(){Object.keys(this._stylesCache).forEach((function(e){Object.keys(this._stylesCache[e]).forEach((function(t){this._removeRule(e,t)}),this)}),this),this._onRulesChangedQueued&&window.cancelAnimationFrame(this._onRulesChangedQueued),this._onLineHeightUpdatedQueued&&window.cancelAnimationFrame(this._onLineHeightUpdatedQueued),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{plugins:[{id:"rtc.touch.service",path:"rtc/plugins/touch/TouchServiceProvider",family:"touch"},{id:"rtc.touch.events",path:"rtc/plugins/touch/events/TouchEventHandlerProvider",family:"touch"},{id:"rtc.touch.events.input.cutcopypaste",path:"rtc/plugins/touch/events/TouchInputCutCopyPasteServiceProvider",family:"touch"},{id:"rtc.touch.imeinput",path:"rtc/plugins/imeinput/TouchIMEInputEventHandlerProvider",family:"touch"},{id:"rtc.compacttoolstrip.focusmanager",path:"rtc/plugins/toolstrip/CompactToolstripFocusManagerProvider",family:"matlabmobile"},{id:"rtc.compacttoolstrip",path:"rtc/plugins/toolstrip/CompactToolstripProvider",family:"matlabmobile"},{id:"rtc.compacttoolstrip.actions",path:"rtc/plugins/toolstrip/CompactToolstripActionsProvider",family:"matlabmobile"},{id:"rtc.compacttoolstrip.togglestate",path:"rtc/plugins/toolstrip/CompactToolstripToggleStateProvider",family:"matlabmobile"},{id:"rtc.connectivity.contributors.pagevisibility",path:"rtc/plugins/matlabmobile/services/PageVisibilityConnectivityContributorProvider",subsystem:"rtc.connectivity.contributors",family:"matlabmobile",isSharedPlugin:!0},{id:"rtc.matlabmobile.native.ios",path:"rtc/plugins/matlabmobile/native/NativeIosHandlerProvider",family:"matlabmobile"},{id:"rtc.matlabmobile",path:"rtc/plugins/matlabmobile/MatlabMobileServiceProvider",family:"matlabmobile"},{id:"rtc.matlabmobile.view",path:"rtc/plugins/matlabmobile/view/MatlabMobileViewServiceProvider",family:"matlabmobile"},{id:"rtc.matlabmobile.livecontrol",path:"rtc/plugins/language/matlab/codingui/livecontrols/LiveControlMobileHandlerProvider",family:"matlabmobile"},{id:"rtc.documentrenderedservice",path:"rtc/plugins/view/renderednotifier/DocumentRenderedServiceProvider"},{id:"language.common.lexer.preferences",path:"rtc/plugins/language/common/tokenizer/preferences/MaxTokenizationLineLengthPreferenceProvider",isSharedPlugin:!0},{id:"language.common.tokenmatcher",path:"rtc/plugins/language/common/tokenizer/matching/TokenMatcherProvider",family:["refactoringtools","blockmatching"],isSharedPlugin:!0},{id:"language.interface.tokenmatcher.rules",path:"rtc/plugins/language/matlab/tokenizer/MatlabTokenMatcherRulesProvider",family:["refactoringtools","blockmatching"],isSharedPlugin:!0},{id:"rtc.externallanguagemanager",path:"rtc/plugins/language/pluggability/ExternalLanguageManagerProvider",family:"externallanguagesupport"},{id:"rtc.fileextensionspreferences",path:"rtc/plugins/language/pluggability/FileExtensionPreferencesProvider",family:"externallanguagesupport"},{id:"rtc.languagenotifier",path:"rtc/plugins/language/pluggability/LanguageNotifierProvider",family:["comment","externallanguagesupport"]},{id:"debug.margin.matlab.breakpoint.hover",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointHoverDecoratorProvider",family:"executioncontrols",subsystem:"margin.linenumber.decorations"},{id:"debug.margin.matlab.breakpoint.linenumberaddon",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointDecoratorProvider",family:"executioncontrols",subsystem:"margin.linenumber.decorations"},{id:"debug.margin.matlab.breakpoint",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointDecoratorProvider",family:"debugging"},{id:"margin.linenumberdecorator.executablestyler",path:"rtc/margin/ExecutableLineNumberStylerProvider",family:"executioncontrols",subsystem:"rtc.linenumberdecorator.stylers"},{id:"debug.breakpoint.temporary",path:"rtc/plugins/breakpoint/matlab/temporary/TemporaryBreakpointManagerProvider",family:["executioncontrols","debugging"],isSharedPlugin:!0},{id:"debug.breakpoint.promise",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointPromiseManagerProvider",family:["executioncontrols","debugging"],isSharedPlugin:!0},{id:"rtc.breakpoint.inline.viewmodel",path:"rtc/plugins/breakpoint/matlab/inline/InlineBreakpointsViewModelProvider",family:"executioncontrols"},{id:"rtc.breakpoint.anonymous.viewmodel",path:"rtc/plugins/breakpoint/matlab/inline/AnonymousBreakpointsViewModelProvider",family:"executioncontrols"},{id:"debug.breakpointmodel",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointDataModelProvider",family:["executioncontrols","debugging"],isSharedPlugin:!0},{id:"debug.breakpoint.livemodel",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointLiveModelProvider",family:["executioncontrols","debugging"],isSharedPlugin:!0},{id:"debug.breakpoints.conditionalbreakpointdialogmanager",path:"rtc/plugins/breakpoint/matlab/ConditionalBreakpointDialogManagerProvider",family:["executioncontrols","debugging"]},{id:"debug.breakpoints.errordisplaymanager",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointErrorDisplayManagerProvider",family:["executioncontrols","debugging"]},{id:"debug.breakpointfactory",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointFactoryProvider",family:["executioncontrols","debugging"],isSharedPlugin:!0},{id:"debug.breakpointactions",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointActionsProvider",family:["executioncontrols","debugging"]},{id:"debug.breakpoint.dataservice",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointDataServiceProvider",family:["executioncontrols","debugging"],isSharedPlugin:!0},{id:"debug.breakpoint.savesynchronizer",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointSaveSynchronizerProvider",isSharedPlugin:!0},{id:"debug.breakpointdirtyservice",path:"rtc/plugins/breakpoint/matlab/TraditionalBreakpointDirtyServiceProvider",family:["executioncontrols","debugging"],isSharedPlugin:!0},{id:"debug.breakpoint.translator",path:"rtc/plugins/breakpoint/matlab/translation/BreakpointTranslatorProvider",family:["executioncontrols","debugging"],isSharedPlugin:!0},{id:"debug.margin.matlab.breakpointstyler",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointStylerProvider",family:["executioncontrols","debugging"]},{id:"debug.contextmenucontributor",family:["executioncontrols","debugging"],path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointContextMenuContributorProvider",subsystem:"contextmenucontributor"},{id:"rtc.debug.breadcrumbstackbanner",path:"rtc/plugins/debug/breadcrumbstack/BreadcrumbStackProvider",family:"executioncontrols",isSharedPlugin:!0},{id:"rtc.debug.breadcrumbstack.navigation",path:"rtc/plugins/debug/breadcrumbstack/BreadcrumbNavigationProvider",family:"executioncontrols",isSharedPlugin:!0},{id:"debug.ddux",path:"rtc/plugins/debug/ddux/DebugDDUXLoggerProvider",family:["debugging","executioncontrols"],subsystem:"rtc.ddux.contributors",isSharedPlugin:!0},{id:"debug.margin.executionarrow",path:"rtc/plugins/debug/executionarrow/ExecutionArrowDecoratorProvider",family:"debugging"},{id:"debug.executionlines",path:"rtc/plugins/debug/executionlines/ExecutionLinesPluginProvider",family:"executioncontrols"},{id:"debug.enabledisable",path:"rtc/plugins/debug/EnableDisableDebugActionsProvider"},{id:"debug.enabledisable.traditional",path:"rtc/plugins/debug/EnableDisableTraditionalDebugActionsProvider",family:"debugging"},{id:"rtc.editor.executionnotifier",path:"rtc/plugins/execution/DefaultEditorExecutionNotifierProvider",family:["execution","executioncontrols"],isSharedPlugin:!0},{id:"margin.debug",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointMarginProvider",subsystem:"rtc.left.margin",family:"debugging"},{id:"margin.debug",path:"rtc/plugins/breakpoint/DummyBreakpointMarginProvider",subsystem:"rtc.left.margin"},{id:"rtc.code.parenmatch",path:"rtc/plugins/language/matlab/parenmatch/ParenMatchingPluginProvider",family:"parenmatching"},{id:"language.matlab.syntaxhighlighter",path:"rtc/plugins/language/matlab/syntaxhighlighter/MatlabSyntaxHighlighterProvider",family:"syntaxhighlighter"},{id:"language.matlab.syntaxhighlighter.colorpreferences",path:"rtc/plugins/language/matlab/syntaxhighlighter/preferences/MatlabSyntaxHighlighterPreferencesProvider",family:"syntaxhighlighter"},{id:"language.matlab.syntaxhighlighter.enablepreference",path:"rtc/plugins/language/matlab/syntaxhighlighter/preferences/MatlabEnableSyntaxHighlightingPreferenceProvider"},{id:"language.common.syntaxhighlighter.colors",path:"rtc/plugins/language/common/syntaxhighlighter/SyntaxHighlightingColorsProvider",family:["syntaxhighlighter","blockmatching"],isSharedPlugin:!0},{id:"language.matlab.syntaxhighlighter.colorcontributor",path:"rtc/plugins/language/matlab/syntaxhighlighter/colormap/MatlabSyntaxHighlightingColorContributorProvider",family:["syntaxhighlighter","blockmatching"],isSharedPlugin:!0},{id:"language.interface.smartindent",path:"rtc/plugins/language/matlab/smartindenting/MatlabSmartIndentingProvider",family:"smartindent"},{id:"language.common.smartindent.preference",path:"rtc/plugins/language/common/smartindenting/preferences/SmartIndentPreferenceProvider",family:"smartindent"},{id:"matlab.languageanalysis.messagenotifier",path:"rtc/plugins/language/matlab/languageanalysis/MessageNotifierWrapperProvider",family:"codeanalyzer",isSharedPlugin:!0},{id:"rtc.code.codeanalyzermodel",path:"rtc/plugins/language/matlab/codeanalyzer/model/CodeAnalyzerModelProvider",family:"codeanalyzer",isSharedPlugin:!0},{id:"rtc.code.codeanalyzer.enablestate",path:"rtc/plugins/language/matlab/codeanalyzer/preferences/CodeAnalyzerEnableStateProvider",family:"codeanalyzer",isSharedPlugin:!0},{id:"rtc.code.codeanalyzerpreferences",path:"rtc/plugins/language/matlab/codeanalyzer/preferences/CodeAnalyzerPreferencesProvider",family:"codeanalyzer"},{id:"rtc.code.codeanalyzerautofix",path:"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerAutoFixProvider",family:"codeanalyzer",subsystem:"rtc.code.codeanalyzer.actioncontributor"},{id:"rtc.code.codeanalyzersuppression",path:"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerSuppressionProvider",family:"codeanalyzer",subsystem:"rtc.code.codeanalyzer.actioncontributor"},{id:"rtc.code.codeanalyzer.messagedisabler",path:"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerMessageDisablerProvider",family:"codeanalyzer"},{id:"rtc.code.codeanalyzeractionhandler",path:"rtc/plugins/language/matlab/codeanalyzer/actions/CodeAnalyzerActionHandlerProvider",family:"codeanalyzer"},{id:"rtc.code.alertmessagelayer",path:"rtc/plugins/language/matlab/codeanalyzer/messagebar/AlertMessageLayerProvider",subsystem:"messagebarlayer"},{id:"rtc.code.codeanalyzermessagelayer",path:"rtc/plugins/language/matlab/codeanalyzer/messagebar/CodeAnalyzerMessageLayerProvider",family:"codeanalyzer",subsystem:"messagebarlayer"},{id:"rtc.code.codeanalyzerview",path:"rtc/plugins/language/matlab/codeanalyzer/view/CodeAnalyzerViewProvider",family:"codeanalyzer"},{id:"rtc.code.codeanalyzer",path:"rtc/plugins/language/matlab/codeanalyzer/CodeAnalyzerPluginProvider",family:"codeanalyzer"},{id:"rtc.code.codeanalyzer.tooltipservice",path:"rtc/plugins/language/matlab/codeanalyzer/tooltip/CodeAnalyzerTooltipServiceProvider",family:"codeanalyzer"},{id:"rtc.code.codeanalyzer.hoverabletooltip",path:"rtc/plugins/language/matlab/codeanalyzer/tooltip/CodeAnalyzerHoverableTooltipProvider",subsystem:"hoverabletooltip",family:"codeanalyzer"},{id:"rtc.code.codeanalyzer.programmatictooltip",path:"rtc/plugins/language/matlab/codeanalyzer/tooltip/CodeAnalyzerProgrammaticTooltipProvider",family:"codeanalyzer",subsystem:"rtc.code.codeanalyzer.actioncontributor"},{id:"rtc.code.codeanalyzer.outputmetadatacontributor",path:"rtc/plugins/language/matlab/codeanalyzer/model/CodeAnalyzerOutputMetadataContributorProvider",family:"codeanalyzer",subsystem:"rtc.editorservice.documentcachecontributors",isSharedPlugin:!0},{id:"rtc.fontprefs.code.propertychanger",path:"rtc/plugins/fontprefs/code/CodeFontPropertyChangerProvider",family:"rtc.preferences.fonts.code"},{id:"rtc.settings.fonts.code",path:"rtc/plugins/fontprefs/code/CodeFontSettingsProvider",family:"rtc.preferences.fonts.code"},{id:"rtc.fonts.settings.cssproperties.config",path:"rtc/plugins/fontprefs/FontSettingsToCssFontPropertiesProvider",family:"rtc.fonts.settings"},{id:"rtc.fonts.settings.cssproperties.manager",path:"rtc/plugins/fontprefs/FontCssSettingsManagerProvider",family:"rtc.fonts.settings"},{id:"rtc.datatip",path:"rtc/plugins/datatip/MatlabDataTipProvider",subsystem:"hoverabletooltip",family:["debugging","executioncontrols","datatip"]},{id:"rtc.datatip.requester",path:"rtc/plugins/datatip/DataTipRequesterProvider",family:["debugging","executioncontrols","datatip"]},{id:"rtc.view.hide.code.stateholder",path:"rtc/view/hidden/AllCodeHiddenStateHolderProvider",family:"hidecode"},{id:"rtc.view.hide.text.stateholder",path:"rtc/view/hidden/AllTextHiddenStateHolderProvider"},{id:"rtc.code.localfunctions.controller",path:"rtc/plugins/language/matlab/functions/LocalFunctionsProvider",family:"rtc.code.localfunctions"},{id:"rtc.code.sections.attribute.localfunctions",path:"rtc/plugins/language/matlab/functions/LocalFunctionsSectionAttributeContributorProvider",family:"rtc.code.localfunctions"},{id:"rtc.code.functions.controller",path:"rtc/plugins/language/matlab/functions/TopLevelFunctionProvider",family:"rtc.code.localfunctions"},{id:"rtc.code.sections.attribute.toplevelfunction",path:"rtc/plugins/language/matlab/functions/TopLevelFunctionSectionAttributeContributorProvider",family:"rtc.code.localfunctions"},{id:"matlab.foldablenodetypes",path:"rtc/plugins/language/matlab/folding/FoldableMtreeNodeTypesProvider",family:"folding"},{id:"matlab.folding",path:"rtc/plugins/language/matlab/folding/MatlabCodeFoldingProvider",family:"folding"},{id:"matlab.foldpreferences",path:"rtc/plugins/language/matlab/folding/FoldPreferencesProvider",family:"folding",subsystem:"foldinitiallycontributors"},{id:"rtc.markup.publishingmarkup",path:"rtc/plugins/language/matlab/markup/PublishingMarkupProvider",family:["section","plaincodesections"]},{id:"matlab.code.variables.nonlocalhighlighting",path:"rtc/plugins/language/matlab/variablehighlighting/NonlocalVariableHighlightingProvider",family:"matlab.code.variables.highlighting"},{id:"matlab.code.variables.nonlocalhighlightingpreference",path:"rtc/plugins/language/matlab/variablehighlighting/NonlocalVariableHighlightingPreferenceProvider"},{id:"matlab.code.variables.nonlocalhighlighting.tooltip",path:"rtc/plugins/language/matlab/variablehighlighting/NonlocalVariableHighlightingTooltipProvider",family:"matlab.code.variables.highlighting",subsystem:"hoverabletooltip"},{id:"matlab.code.variablehighlightingmessagelayer",path:"rtc/plugins/language/matlab/variablehighlighting/messagebar/VariableHighlightMessageLayerProvider",family:"matlab.code.variables.highlighting",subsystem:"messagebarlayer"},{id:"matlab.code.variables.variablehighlighting",path:"rtc/plugins/language/matlab/variablehighlighting/VariableHighlightingProvider",family:"matlab.code.variables.highlighting"},{id:"matlab.code.variables.variablehighlightingpreference",path:"rtc/plugins/language/matlab/variablehighlighting/VariableHighlightingPreferenceProvider",family:"matlab.code.variables.highlighting"},{id:"matlab.code.variablenavigation",path:"rtc/plugins/language/matlab/variablenavigation/VariableNavigatorProvider",family:"matlab.code.variables.highlighting"},{id:"matlab.code.variables.rename.controller",path:"rtc/plugins/language/matlab/variablerenaming/VariableRenamingControllerProvider",family:"matlab.code.variables.rename"},{id:"matlab.code.variables.rename.model",path:"rtc/plugins/language/matlab/variablerenaming/VariableRenamingModelProvider",family:"matlab.code.variables.rename"},{id:"matlab.code.variables.rename.utility",path:"rtc/plugins/language/matlab/variablerenaming/VariableRenamingModelUtilityProvider",family:"matlab.code.variables.rename"},{id:"matlab.code.variables.rename.view",path:"rtc/plugins/language/matlab/variablerenaming/view/VariableRenamingViewProvider",family:"matlab.code.variables.rename"},{id:"matlab.code.variables.rename.listenerservice",path:"rtc/plugins/language/matlab/variablerenaming/VariableRenamingListenerServiceProvider",family:"matlab.code.variables.rename"},{id:"matlab.templateservice",path:"rtc/plugins/templates/TemplateServiceProvider",isSharedPlugin:!0},{id:"rtc.autowhitespacelinenotifier",path:"rtc/plugins/trimautowhitespace/AutoWhitespaceLineNotifierProvider",family:["trimautowhitespace","autoindent"],isSharedPlugin:!0},{id:"rtc.trimautowhitespace",path:"rtc/plugins/trimautowhitespace/TrimAutoWhitespaceProvider",family:"trimautowhitespace",isSharedPlugin:!0},{id:"rtc.trimautowhitespace.preference",path:"rtc/plugins/trimautowhitespace/preferences/TrimAutoWhitespacePreferenceProvider",family:"trimautowhitespace",isSharedPlugin:!0},{id:"rtc.contextualselection.evaluateselection",path:"rtc/plugins/language/matlab/contextualselection/EvaluateSelectionProvider",subsystem:"rtc.contextualselection.plugins"},{id:"rtc.helponselection",path:"rtc/plugins/language/matlab/contextualselection/HelpOnSelectionProvider",subsystem:"rtc.contextualselection.plugins"},{id:"rtc.navigate.find",path:"rtc/plugins/find/FindProvider",family:"findandreplace"},{id:"rtc.navigate.find.dialoghandler",path:"rtc/plugins/find/FindDialogHandlerProvider",family:"findandreplace"},{id:"rtc.navigate.find.actions",path:"rtc/plugins/find/FindReplaceActionsProvider",family:"findandreplace"},{id:"rtc.navigate.find.result",path:"rtc/plugins/find/FindResultDisplayHandlerProvider",family:"findandreplace"},{id:"rtc.navigate.find.result.display",path:"rtc/plugins/find/FindResultDialogDisplayProvider",family:"findandreplace"},{id:"rtc.navigate.replace.notifier",path:"rtc/plugins/find/ReplaceNotifierProvider",family:"findandreplace",subsystem:"variablerenamecontributors"},{id:"rtc.navigate.replace",path:"rtc/plugins/find/ReplaceProvider",family:"findandreplace"},{id:"rtc.navigate.find.syncopen",path:"rtc/plugins/find/FindSyncOpenProvider",family:"findandreplace"},{id:"rtc.navigate.find.synchronizer",path:"rtc/plugins/find/FindSynchronizeProvider"},{id:"rtc.navigate.goto",path:"rtc/plugins/goto/GotoProvider",family:"gotolinenumber",subsystem:"hideallcodeplugins"},{id:"rtc.navigate.goto.sectionservice",path:"rtc/plugins/goto/GotoSectionServiceProvider",family:"gotolinenumber"},{id:"rtc.navigate.bookmarks",path:"rtc/plugins/bookmarks/BookmarksProvider",family:"bookmarks"},{id:"rtc.margin.bookmarks",path:"rtc/plugins/bookmarks/DecoratableBookmarksMarginProvider",subsystem:"rtc.left.margin",family:"bookmarks"},{id:"rtc.margin.bookmarks.icon",path:"rtc/plugins/bookmarks/BookmarksDecoratorProvider",family:"bookmarks"},{id:"rtc.contextmenu.bookmarkscontributor",path:"rtc/plugins/bookmarks/BookmarksContextMenuContributorProvider",family:"bookmarks",subsystem:"contextmenucontributor"},{id:"rtc.headingmodel",path:"rtc/plugins/headings/HeadingModelProvider",family:["presentationmode","slideview","rtc.richtext.hyperlink"],isSharedPlugin:!0},{id:"rtc.documentfragment.model",path:"rtc/plugins/documentfragments/DocumentFragmentModelProvider",family:["presentationmode","slideview"]},{id:"rtc.documentfragment.contributor.section",path:"rtc/plugins/documentfragments/SectionFragmentContributorProvider",family:["presentationmode","slideview"]},{id:"rtc.documentfragment.contributor.heading",path:"rtc/plugins/documentfragments/HeadingFragmentContributorProvider",family:["presentationmode","slideview"]},{id:"rtc.editorservice.documentsynchronizer",path:"rtc/plugins/documentsynchronizer/DocumentSynchronizerProvider",family:"codeanalyzer",isSharedPlugin:!0},{id:"rtc.contextualselection.controller",path:"rtc/plugins/language/matlab/contextualselection/ContextualSelectionControllerProvider",subsystemControllerFor:["rtc.contextualselection.plugins"]},{id:"rtc.contextualselection.openselection",path:"rtc/plugins/language/matlab/contextualselection/OpenSelectionProvider",subsystem:"rtc.contextualselection.plugins"},{id:"rtc.code.sections",path:"rtc/plugins/language/matlab/section/SectionPluginProvider",family:"section"},{id:"rtc.code.sectionslist",path:"rtc/plugins/language/matlab/section/SectionListProvider",isSharedPlugin:!0,family:["section","plaincodesections"]},{id:"rtc.code.sections.view.section",path:"rtc/plugins/language/matlab/section/view/SectionViewProvider",family:"section"},{id:"debug.lineautoscroll",path:"rtc/plugins/debug/DebugLineAutoScrollPluginProvider",family:["debugging","executioncontrols"]},{id:"debug.linefocus",path:"rtc/plugins/debug/DebugLineFocusPluginProvider",family:["debugging","executioncontrols"]},{id:"debug.linefocus.delegator",path:"rtc/plugins/debug/DebugLineFocusPluginDelegatorProvider",family:["debugging","executioncontrols"],isSharedPlugin:!0},{id:"debug.stack.model.persistent",path:"rtc/plugins/debug/PersistentStackModelProvider",family:["debugging","executioncontrols"],isSharedPlugin:!0},{id:"debug.stack.model",path:"rtc/plugins/debug/DebugStackModelProvider",family:["debugging","executioncontrols"],isSharedPlugin:!0},{id:"debug.documentdebugservices",path:"rtc/plugins/debug/DocumentDebugServicesProvider",family:["debugging","executioncontrols"],isSharedPlugin:!0},{id:"debug.runtolineservice",path:"rtc/plugins/debug/RunToLineServiceProvider",family:["debugging","executioncontrols"]},{id:"debug.errordialog.hittingbreakpoint",path:"rtc/plugins/debug/ErrorHittingBreakpointDialogManagerProvider",family:["debugging","executioncontrols"]},{id:"debug.saveinterceptor",path:"rtc/plugins/debug/DebugSaveInterceptorProvider"},{id:"debug.documentdirtyservice",path:"rtc/plugins/debug/DocumentDirtyDebugServiceProvider",family:"executioncontrols",isSharedPlugin:!0},{id:"debug.contextualbuttons.buttonfactory",path:"rtc/plugins/debug/contextualbuttons/ContextualButtonFactoryProvider",family:"executioncontrols"},{id:"margin.runtohere",path:"rtc/plugins/debug/margin/RunToHereMarginProvider",family:"executioncontrols",subsystem:["rtc.left.margin","hideallcodeplugins"]},{id:"margin.runtohere.runtoheredecorator",path:"rtc/plugins/debug/margin/RunToHereMarginDecoratorProvider",family:"executioncontrols",subsystem:"margin.runtohere.decorations"},{id:"margin.runtohere.visibilitycontroller",path:"rtc/plugins/debug/margin/RunToHereMarginVisibilityControllerProvider",family:"executioncontrols",subsystem:"contextmenucontributor"},{id:"debug.contextualbuttons.runtohere.viewmodel",path:"rtc/plugins/debug/contextualbuttons/runtohere/RunToHereViewModelProvider",family:"executioncontrols"},{id:"debug.contextualbuttons.runtohere.hoverservice",path:"rtc/plugins/debug/contextualbuttons/runtohere/hoverservice/RunToHereCodeHoverServiceProvider",family:"executioncontrols"},{id:"debug.contextualbuttons.stepin.functioncallsitefactory",path:"rtc/plugins/debug/contextualbuttons/stepin/FunctionCallsiteFactoryProvider",family:"executioncontrols"},{id:"debug.contextualbuttons.stepin.locatorservice",path:"rtc/plugins/debug/contextualbuttons/stepin/FunctionCallsiteLocatorServiceProvider",family:"executioncontrols"},{id:"debug.contextualbuttons.stepin.manager",path:"rtc/plugins/debug/contextualbuttons/stepin/StepInManagerProvider",family:"executioncontrols"},{id:"debug.contextualbuttons.stepin.view",path:"rtc/plugins/debug/contextualbuttons/stepin/StepInViewProvider",family:"executioncontrols"},{id:"rtc.executionmanager.viewservice",path:"rtc/plugins/execution/ExecutionManagerViewServiceProvider",family:"execution"},{id:"rtc.execution.executionstalenessaugmentor",path:"rtc/plugins/execution/ExecutionStalenessAugmentorProvider",family:"execution"},{id:"matlab.executable.line",path:"rtc/plugins/breakpoint/matlab/executablelines/ExecutableLineDecoratorProvider",family:"debugging"},{id:"rtc.buttonfactory",path:"rtc/plugins/buttonfactory/ButtonFactoryProvider"},{id:"rtc.tooltippreview.code",path:"rtc/plugins/code/CodeTooltipPreviewProvider",subsystem:"rtc.tooltippreview",requiredForSubsystem:!0},{id:"rtc.emacsstyle.tab",path:"rtc/plugins/emacstabindent/EmacsTabIndentProvider"},{id:"rtc.indent",path:"rtc/plugins/indentation/IndentationProvider"},{id:"rtc.cutcopypaste",family:"rtc.cutcopypaste",path:"rtc/plugins/cutcopypaste/CutCopyPasteProvider"},{id:"rtc.killline",path:"rtc/plugins/killline/KillLineProvider"},{id:"rtc.xcopypaste",family:"rtc.cutcopypaste",path:"rtc/plugins/cutcopypaste/xselection/XCopyPasteProvider"},{id:"rtc.autocompletions.actionhandler",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionActionHandlerProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.ddux.contributor",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionDDUXContributorProvider",family:"rtc.autocompletions",subsystem:"rtc.ddux.contributors"},{id:"rtc.autocompletions.ddux.controller",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionDDUXControllerProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.texthandler",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionTextHandlerProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.tabkeyhandler",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionTabKeyHandlerProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.plugin",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.contextmanager",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionContextManagerProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.focusmanager",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionFocusManagerProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.help",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionHelpProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.requesthandler",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionRequestHandlerProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.requestmodifier",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionRequestModifierProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.defaulttabaction",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionDefaultTabActionProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.eventbus",path:"rtc/plugins/language/matlab/codingui/autocompletions/AutoCompletionViewEventBusProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.preference",path:"rtc/plugins/language/matlab/codingui/autocompletions/preferences/AutoCompletionPreferenceProvider"},{id:"rtc.autocompletions.closeview",path:"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionCloseViewProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.functionassistantview",path:"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionFunctionAssistantViewProvider",family:"rtc.autocompletions",subsystem:"rtc.autocompletions.views"},{id:"rtc.autocompletions.shadowtextview",path:"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionShadowTextViewProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.suggestionview",path:"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionSuggestionViewProvider",family:"rtc.autocompletions",subsystem:"rtc.autocompletions.views"},{id:"rtc.autocompletions.view",path:"rtc/plugins/language/matlab/codingui/autocompletions/view/AutoCompletionViewProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.customizers.embeddablecompletion",path:"rtc/plugins/language/matlab/codingui/autocompletions/customizers/AutoCompletionEmbeddableCompletionCustomizerProvider",family:"rtc.autocompletions",subsystem:"rtc.autocompletions.customizers"},{id:"rtc.cutcopypaste.defaultmimeconverterprovider",family:"rtc.cutcopypaste",path:"rtc/plugins/cutcopypaste/DefaultMIMEConverterProvider"},{id:"rtc.cutcopypaste.promptlesstextmimeconverter",family:"rtc.cutcopypaste",path:"rtc/plugins/cutcopypaste/mime/PromptlessTextMimeConverterProvider",subsystem:"rtc.cutcopypaste.mimeconverters"},{id:"rtc.cutcopypaste.htmlmimeconverter",path:"rtc/plugins/htmlmime/HTMLMimeConverterProvider",family:"rtc.cutcopypaste",subsystem:"rtc.cutcopypaste.mimeconverters"},{id:"rtc.cutcopypaste.htmlgenerator",family:"rtc.cutcopypaste",path:"rtc/plugins/cutcopypaste/HTMLGeneratorProvider"},{id:"rtc.cutcopypaste.rtfgenerator",family:"rtc.cutcopypaste",path:"rtc/plugins/cutcopypaste/RTFGeneratorProvider"},{id:"rtc.cutcopypaste.internalserializationgenerator",family:"rtc.cutcopypaste",path:"rtc/plugins/cutcopypaste/InternalSerializationGeneratorProvider"},{id:"rtc.draganddrop",path:"rtc/plugins/draganddrop/DragAndDropProvider",family:"draganddrop"},{id:"rtc.draganddropnotifier",path:"rtc/plugins/draganddrop/DragAndDropNotifierProvider",family:"draganddrop"},{id:"rtc.alert.controller",path:"rtc/plugins/language/matlab/alert/AlertControllerProvider",family:"rtc.alert"},{id:"rtc.alert.model",path:"rtc/plugins/language/matlab/alert/AlertModelProvider",family:"rtc.alert"},{id:"rtc.alert.widgetfactory",path:"rtc/plugins/language/matlab/alert/AlertWidgetFactoryProvider",family:"rtc.alert"},{id:"rtc.visual.alert",path:"rtc/plugins/language/matlab/alert/AlertViewProvider",family:"rtc.alert"},{id:"rtc.code.codecontent",path:"rtc/plugins/language/matlab/codecontent/CodeContentProvider",family:["plaincodesections","livecodesections"],isSharedPlugin:!0},{id:"language.common.autoindent",path:"rtc/plugins/language/common/autoindent/AutoIndentProvider",family:"autoindent"},{id:"language.interface.autoindent.service",path:"rtc/plugins/language/matlab/autoindent/MatlabAutoIndentServiceProvider",family:"autoindent"},{id:"language.matlab.autoindent.preference",path:"rtc/plugins/language/matlab/autoindent/preferences/MatlabAutoIndentingPreferenceProvider",family:"autoindent"},{id:"rtc.code.functionindentingformatpreference",path:"rtc/plugins/language/matlab/autoindent/preferences/FunctionIndentingFormatPreferenceProvider",family:"autoindent"},{id:"rtc.code.codingui.codeprovider",path:"rtc/plugins/service/CodingUIBackendCodeProviderProvider",family:"rtc.autocompletions"},{id:"rtc.code.codingui.backendservice.prewarm",path:"rtc/plugins/service/CodingUIBackendPrewarmServiceProvider",family:"rtc.autocompletions",isSharedPlugin:!0},{id:"rtc.code.codingui.backendservice.pubsub",path:"rtc/plugins/service/CodingUIPubSubBackendServiceProvider",family:"rtc.autocompletions"},{id:"rtc.print",path:"rtc/plugins/print/PrintProvider",family:["print","plainTextPrint"]},{id:"rtc.print.printaction",path:"rtc/plugins/print/PrintActionProvider",family:"plainTextPrint"},{id:"rtc.export.settings",path:"rtc/plugins/export/settings/ExportSettingsProvider"},{id:"rtc.export.settings.pagesettings",path:"rtc/plugins/export/settings/PageSettingsProvider",subsystem:"rtc.exportsettings",requiredForSubsystem:!0},{id:"rtc.export.settings.outputsettings",path:"rtc/plugins/export/settings/OutputSettingsProvider",subsystem:"rtc.exportsettings",requiredForSubsystem:!0},{id:"rtc.export.docbookxml",path:"rtc/plugins/export/docbookxml/DocBookXMLExporterProvider",family:"export",subsystem:"rtc.exporters"},{id:"rtc.export.exportFolder",path:"rtc/plugins/export/ExportFolderProvider",family:"export"},{id:"rtc.export.xslfo",path:"rtc/plugins/export/xslfo/XSLFOExporterProvider",family:"export",subsystem:"rtc.exporters"},{id:"rtc.export.xslfo.sectionbreak",path:"rtc/plugins/sectionbreak/export/SectionBreak2XSLFOProvider",subsystem:"rtc.export.xslfowriters",family:"rtc.sectionbreak"},{id:"rtc.refactoringtools.toolstripmenuaction",path:"rtc/plugins/refactor/RefactorToolstripMenuActionProvider",family:"refactoringtools",subsystem:"hideallcodeplugins"},{id:"rtc.refactoringtools.externalfunction.filecreator",path:"rtc/plugins/refactor/function/externalfunction/ExternalFunctionFileCreatorProvider",family:"refactoringtools"},{id:"rtc.refactoringtools.externalfunction",path:"rtc/plugins/refactor/function/externalfunction/ExternalFunctionRefactorProvider",family:"refactoringtools",subsystem:"hideallcodeplugins"},{id:"rtc.refactoringtools.errornotifier",path:"rtc/plugins/refactor/function/FunctionRefactoringErrorNotifierProvider",family:"refactoringtools"},{id:"rtc.refactoringtools.functionvalidator",path:"rtc/plugins/refactor/function/FunctionRefactoringValidatorProvider",family:"refactoringtools"},{id:"rtc.refactoringtools.localfunction",path:"rtc/plugins/refactor/function/localfunction/LocalFunctionRefactorProvider",family:"refactoringtools",subsystem:"hideallcodeplugins"},{id:"rtc.duplicateline.plugin",path:"rtc/plugins/duplicate/DuplicateLinePluginProvider"},{id:"rtc.refactoringtools.config",path:"rtc/plugins/refactor/function/FunctionRefactoringConfigProvider",family:"refactoringtools"},{id:"rtc.presentationmode",path:"rtc/plugins/presentationmode/PresentationModeProvider",family:"presentationmode"},{id:"rtc.presentationmode.fullscreen",path:"rtc/plugins/presentationmode/fullscreen/AutomaticFullScreenServiceProvider",family:"presentationmode"},{id:"rtc.export.docx",path:"rtc/plugins/export/docx/DOCXExporterProvider",family:"export",subsystem:"rtc.exporters"},{id:"rtc.export.docx.serializers",path:"rtc/plugins/export/docx/DOCXSerializersProvider"},{id:"rtc.export.latex",path:"rtc/plugins/export/latex/LaTeXExporterProvider",family:"export",subsystem:"rtc.exporters"},{id:"rtc.export.latex.sectionbreak",path:"rtc/plugins/sectionbreak/export/SectionBreak2LaTeXProvider",subsystem:"rtc.export.latexwriters",family:"rtc.sectionbreak"},{id:"rtc.export.rtf",path:"rtc/plugins/export/rtf/RTFExporterProvider",family:["export","rtc.cutcopypaste"],subsystem:"rtc.exporters"},{id:"rtc.export.rtf.linenode",path:"rtc/plugins/export/rtf/LineNode2RTFProvider",subsystem:"rtc.export.rtfwriters",requiredForSubsystem:!0,family:"rtc.cutcopypaste"},{id:"rtc.export.rtf.plaintextnode",path:"rtc/plugins/export/rtf/PlainTextNode2RTFProvider",subsystem:"rtc.export.rtfwriters",requiredForSubsystem:!0},{id:"rtc.export.html",path:"rtc/plugins/export/html/HTMLExporterProvider",family:["export","rtc.cutcopypaste"],subsystem:"rtc.exporters"},{id:"rtc.export.html.linenode",path:"rtc/plugins/export/html/LineNode2HTMLProvider",subsystem:"rtc.export.htmlwriters",requiredForSubsystem:!0,family:"rtc.cutcopypaste"},{id:"rtc.export.html.plaintextnode",path:"rtc/plugins/export/html/PlainTextNode2HTMLProvider",subsystem:"rtc.export.htmlwriters",requiredForSubsystem:!0},{id:"rtc.export.m",path:"rtc/plugins/export/m/MExporterProvider",family:["export","refactoringtools"],subsystem:"rtc.exporters"},{id:"rtc.export.m.linenode",path:"rtc/plugins/export/m/LineNode2MProvider",family:"refactoringtools",subsystem:"rtc.export.mwriters",requiredForSubsystem:!0},{id:"rtc.export.helptext",path:"rtc/plugins/export/helptext/HelpTextExporterProvider",family:["export","rtc.documentation"]},{id:"rtc.smartformatting.formatter.automaticcoding.autowrapcomment",path:"rtc/plugins/smartformatting/formatter/automaticcoding/AutoWrapCommentSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.splitcomment",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SplitCommentSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.roundpareninsert",path:"rtc/plugins/smartformatting/formatter/automaticcoding/RoundParenInsertSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.roundparendelete",path:"rtc/plugins/smartformatting/formatter/automaticcoding/RoundParenDeleteSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.squarepareninsert",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SquareParenInsertSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.squareparendelete",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SquareParenDeleteSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.curlypareninsert",path:"rtc/plugins/smartformatting/formatter/automaticcoding/CurlyParenInsertSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.curlyparendelete",path:"rtc/plugins/smartformatting/formatter/automaticcoding/CurlyParenDeleteSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.singlequoteinsert",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SingleQuoteInsertSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.singlequotedelete",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SingleQuoteDeleteSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.doublequoteinsert",path:"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleQuoteInsertSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.doublequotedelete",path:"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleQuoteDeleteSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.roundparenoverwrite",path:"rtc/plugins/smartformatting/formatter/automaticcoding/RoundParenOverwritingSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.curlyparenoverwrite",path:"rtc/plugins/smartformatting/formatter/automaticcoding/CurlyParenOverwritingSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.squareparenoverwrite",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SquareParenOverwritingSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.singlequoteoverwrite",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SingleQuoteOverwritingSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.doublequoteoverwrite",path:"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleQuoteOverwritingSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.singlecurlyquote",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SingleCurlyQuoteInsertSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.singlecurlyquotereplacement",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SingleCurlyQuoteReplacementSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.doublecutlyquote",path:"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleCurlyQuoteInsertSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.doublecurlyquotereplacement",path:"rtc/plugins/smartformatting/formatter/automaticcoding/DoubleCurlyQuoteReplacementSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.splitdoublequotestring",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SplitDoubleQuoteStringSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.splitsinglequotestring",path:"rtc/plugins/smartformatting/formatter/automaticcoding/SplitSingleQuoteStringSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endargumentsblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndArgumentsBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endclassdefblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndClassDefBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endenumerationblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndEnumerationBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endeventsblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndEventsBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endforblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndForBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endfunctionblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndFunctionBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endifblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndIfBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endmethodsblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndMethodsBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endparforblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndParforBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endpropertiesblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndPropertiesBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endspmdblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndSpmdBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endswitchblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndSwitchBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endtryblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndTryBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.automaticcoding.endwhileblock",path:"rtc/plugins/smartformatting/formatter/automaticcoding/EndWhileBlockSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.formatter.markdown.bulletedlist",path:"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownBulletedListSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.heading",path:"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownHeadingSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.numberedlist",path:"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownNumberedListSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.title",path:"rtc/plugins/smartformatting/formatter/markdown/paragraph/MarkdownTitleSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.bold2",path:"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownBold2SmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.bold",path:"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownBoldSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.hyperlink.labelurl",path:"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownHyperlinkLabelUrlSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.hyperlink.urltag",path:"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownHyperlinkUrlTagSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.italic2",path:"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalic2SmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.italicbold2",path:"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalicBold2SmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.italicbold",path:"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalicBoldSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.italic",path:"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownItalicSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markdown.monospace",path:"rtc/plugins/smartformatting/formatter/markdown/text/MarkdownMonospaceSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.matlab.monospace",path:"rtc/plugins/smartformatting/formatter/matlab/MatlabMonospaceSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.matlab.sectionbreak.heading",path:"rtc/plugins/smartformatting/formatter/matlab/MatlabSectionBreakHeadingSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.matlab.sectionbreak.separator",path:"rtc/plugins/smartformatting/formatter/matlab/MatlabSectionBreakSeparatorSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.symbol.trademarkcopyright",path:"rtc/plugins/smartformatting/formatter/symbol/SymbolTrademarkCopyrightSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.hyperlink",path:"rtc/plugins/smartformatting/formatter/HyperlinkSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.markup.equation",path:"rtc/plugins/smartformatting/formatter/MarkupEquationSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.backspaceundohandler",path:"rtc/plugins/smartformatting/BackspaceUndoHandlerProvider",family:["rtc.smartformatting.formatters.autocoding","rtc.smartformatting.formatters.autoformatting"]},{id:"rtc.smartformatting.controller",path:"rtc/plugins/smartformatting/SmartFormattingProvider",subsystemControllerFor:["rtc.smartformatter"]},{id:"rtc.smartformatting.settings.autocoding",path:"rtc/plugins/smartformatting/settings/AutoCodingSettingManagerProvider",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smartformatting.settings.autoformatting",path:"rtc/plugins/smartformatting/settings/AutoFormattingSettingManagerProvider",family:"rtc.smartformatting.formatters.autoformatting"},{id:"rtc.smartformatting.formatter.automaticcoding.parentheseslinebreak",path:"rtc/plugins/smartformatting/formatter/automaticcoding/ParenthesesLineBreakSmartFormatterProvider",subsystem:"rtc.smartformatter",family:"rtc.smartformatting.formatters.autocoding"},{id:"rtc.smarttab",path:"rtc/plugins/smarttab/SmartTabProvider"},{id:"rtc.serializers.containers.container",path:"rtc/model/io/serializers/providers/containers/ContainerSerializerProvider"},{id:"rtc.serializers.containers.sectionbreakcontainer",path:"rtc/model/io/serializers/providers/containers/SectionBreakContainerSerializerProvider",subsystem:"rtc.serializer",family:"rtc.sectionbreak"},{id:"rtc.view.hide.allcode.plugindisabler",path:"rtc/view/hidden/HideAllCodePluginDisablerProvider",family:"hidecode"},{id:"rtc.view.hide.code.service",path:"rtc/view/hidden/HideAllCodeServiceProvider",family:"hidecode"},{id:"rtc.view.hide.text.service",path:"rtc/view/hidden/HideAllTextServiceProvider"},{id:"rtc.view.hide.code",path:"rtc/view/hidden/HideShowAllCodeProvider"},{id:"rtc.view.hide.text",path:"rtc/view/hidden/HideShowAllTextProvider"},{id:"rtc.view.paginationcontroller",path:"rtc/view/pagination/PaginationControllerProvider",family:"pagination"},{id:"rtc.view.layoutmanager.paragraphhostingmodel",path:"rtc/plugins/view/layoutmanager/LayoutParagraphHostingModelProvider",family:["layoutrules","rtc.liveapps"]},{id:"rtc.view.layoutmanager.rules.containmentgrouping",path:"rtc/plugins/view/layoutmanager/rules/ContainmentGroupingRuleProvider",subsystem:"rtc.view.layoutmanager.rule",family:"layoutrules"},{id:"rtc.view.layoutmanager.rules.contiguousgrouping",path:"rtc/plugins/view/layoutmanager/rules/ContiguousGroupingRuleProvider",subsystem:"rtc.view.layoutmanager.rule",family:"layoutrules"},{id:"rtc.view.layoutmanager.rules.basegrouping",path:"rtc/plugins/view/layoutmanager/rules/BaseGroupingRuleProvider",subsystem:"rtc.view.layoutmanager.rule",family:"layoutrules"},{id:"rtc.view.layoutmanager.rules.wrappable",path:"rtc/plugins/view/layoutmanager/rules/WrappableRuleProvider",subsystem:"rtc.view.layoutmanager.rule",family:"layoutrules"},{id:"rtc.view.layoutmanager.rules.output",path:"rtc/plugins/view/layoutmanager/rules/OutputRuleProvider",subsystem:"rtc.view.layoutmanager.rule",family:"layoutrules"},{id:"rtc.view.layoutmanager.rules.paragraphhosting",path:"rtc/plugins/view/layoutmanager/rules/ParagraphHostingRuleProvider",subsystem:"rtc.view.layoutmanager.rule",family:"layoutrules"},{id:"rtc.view.layoutmanager.rules.expandable",path:"rtc/plugins/view/layoutmanager/rules/ExpandableRuleProvider",subsystem:"rtc.view.layoutmanager.rule",family:"layoutrules"},{id:"rtc.view.smoothscrolling",path:"rtc/plugins/smoothscrolling/SmoothScrollingPluginProvider"},{id:"rtc.documentationservice",path:"rtc/model/io/documentation/DocumentationServiceProvider",family:"rtc.documentation"},{id:"rtc.code.sections.view.section",path:"rtc/plugins/language/matlab/sections/view/SectionViewProvider",family:["plaincodesections","livecodesections"],subsystem:"hideallcodeplugins"},{id:"rtc.navigate.sections",path:"rtc/plugins/navigation/NavigateSectionProvider",family:["plaincodesections","livecodesections"],subsystem:"hideallcodeplugins"},{id:"rtc.navigate.slides",path:"rtc/plugins/navigation/NavigateSlideProvider",family:["presentationmode","slideview"]},{id:"rtc.code.sections.insert",path:"rtc/plugins/language/matlab/section/InsertSectionProvider",family:"plaincodesections"},{id:"rtc.code.sections.contributor.coderegion",path:"rtc/plugins/language/matlab/sections/CodeRegionSectionContributorProvider"},{id:"rtc.code.sections.stale.model",path:"rtc/plugins/language/matlab/sections/StaleSectionModelProvider",family:["plaincodesections","livecodesections"],isSharedPlugin:!0},{id:"rtc.margin.button",path:"rtc/plugins/margin/RightMarginButtonProvider",family:"messagebar",subsystem:"messagebartooltip"},{id:"rtc.messagebar.rightmargincontainer",path:"rtc/plugins/margin/RightMarginContainerProvider",family:"messagebar"},{id:"rtc.margin.severitystatusbutton",path:"rtc/plugins/margin/SeverityStatusButtonProvider",family:"messagebar",subsystem:"hideallcodeplugins"},{id:"rtc.messagebar.model",path:"rtc/plugins/messagebar/MessageBarModelProvider",family:"messagebar"},{id:"rtc.messagebar.service",path:"rtc/plugins/messagebar/MessageBarServiceProvider",family:"messagebar"},{id:"rtc.messagebar.view",path:"rtc/plugins/messagebar/MessageBarViewProvider",family:"messagebar",subsystem:["hideallcodeplugins","messagebartooltip"]},{id:"rtc.messagebar.tooltip",path:"rtc/plugins/messagebar/MessageBarTooltipProvider",family:"messagebar"},{id:"margin.statusactionbar.sectionsdecorator",path:"rtc/plugins/statusactionbar/decorators/SectionsDecoratorProvider",family:"executionmargin"},{id:"margin.statusactionbar.stalesectionsdecorator",path:"rtc/plugins/statusactionbar/decorators/StaleSectionsDecoratorProvider",family:"executionmargin"},{id:"margin.statusactionbar.stalesectionsbackgrounddecorator",path:"rtc/plugins/statusactionbar/decorators/StaleSectionsBackgroundDecoratorProvider",family:"executionmargin"},{id:"margin.statusactionbar.evaluation",path:"rtc/plugins/statusactionbar/evaluation/StatusActionBarEvaluationProvider",family:"executionmargin"},{id:"rtc.execution.executionenabler",path:"rtc/plugins/execution/DefaultExecutionEnablerProvider",family:"execution"},{id:"rtc.execution.executiondatamanager",path:"rtc/plugins/execution/ExecutionDataManagerProvider",family:["execution","executioncontrols"]},{id:"rtc.execution.traditionalrequestexecutor",path:"rtc/plugins/execution/TraditionalRequestExecutorProvider",family:"execution",subsystem:"rtc.requestexecutors",isSharedPlugin:!0},{id:"rtc.execution.lifecycle",path:"rtc/plugins/execution/events/LifecycleHandlerProvider",isSharedPlugin:!0},{id:"rtc.execution.serversiderequestexecutor",path:"rtc/plugins/execution/ServerSideRequestExecutorProvider",subsystem:"rtc.requestexecutors",requiredForSubsystem:!0,isSharedPlugin:!0},{id:"rtc.execution.executionrequestfactory",path:"rtc/plugins/execution/ExecutionRequestFactoryProvider",family:"execution",subsystem:"rtc.execution.factories",isSharedPlugin:!0},{id:"rtc.execution.requestexecutorfactory",path:"rtc/plugins/execution/RequestExecutorFactoryProvider",family:"execution",isSharedPlugin:!0},{id:"rtc.executionandoutputscontroller",path:"rtc/plugins/execution/ExecutionAndOutputsDataServiceControllerProvider",family:"execution",isSharedPlugin:!0},{id:"rtc.execution.executionmanager",path:"rtc/plugins/execution/ExecutionManagerProvider",family:"execution"},{id:"rtc.exportnotifier",path:"rtc/plugins/export/ExportNotifierProvider"},{id:"rtc.folding.foldingactions",path:"rtc/plugins/folding/FoldingActionsProvider",family:"folding"},{id:"rtc.folding.foldingcontroller",path:"rtc/plugins/folding/FoldingControllerProvider",family:["folding","rtc.liveapps"]},{id:"rtc.folding.foldingmodel",path:"rtc/plugins/folding/FoldingModelProvider",family:["folding","rtc.liveapps"],subsystem:"messagebar.modifier"},{id:"rtc.folding.margin",path:"rtc/plugins/folding/view/FoldingMarginProvider",family:"folding",subsystem:"rtc.left.margin"},{id:"rtc.folding.margin.decorator",path:"rtc/plugins/folding/view/FoldingDecoratorProvider",family:"folding"},{id:"rtc.folding.margin.visibilitycontroller",path:"rtc/plugins/folding/view/FoldingMarginVisibilityControllerProvider",family:"folding",subsystem:"contextmenucontributor"},{id:"rtc.folding.ellipses",path:"rtc/plugins/folding/view/FoldingEllipsesManagerProvider",family:"folding"},{id:"matlab.persistfold",path:"rtc/plugins/language/matlab/folding/PersistFoldProvider",family:"folding",subsystem:"foldinitiallycontributors"},{id:"matlab.foldinitially",path:"rtc/plugins/language/matlab/folding/FoldInitiallyProvider",family:"folding"},{id:"rtc.typocorrection",path:"rtc/plugins/typocorrection/TypoSuggestionFeatureProvider",family:"typocorrection"},{id:"rtc.typocorrection.actionhandler",path:"rtc/plugins/typocorrection/TypoSuggestionActionHandlerProvider",family:"typocorrection"},{id:"rtc.typocorrection.model",path:"rtc/plugins/typocorrection/TypoSuggestionModelProvider",family:"typocorrection"},{id:"rtc.typocorrection.typocorrectionhandlerfactory",path:"rtc/plugins/typocorrection/handler/TypoSuggestionHandlerFactoryProvider",family:"typocorrection"},{id:"rtc.keyhandler.customkeyboardshortcuts",path:"rtc/events/customkeyboardshortcuts/CustomKeyboardShortcutsProvider",isSharedPlugin:!0},{id:"rtc.contextmenu.model",path:"rtc/plugins/contextmenu/ContextMenuContributorModelProvider",family:"contextmenu"},{id:"rtc.contextmenu",path:"rtc/plugins/contextmenu/ContextMenuProvider",family:"contextmenu"},{id:"rtc.contextmenu.generator",path:"rtc/plugins/contextmenu/JSContextMenuGeneratorProvider",family:"contextmenu"},{id:"rtc.linehighlightmanager",path:"rtc/plugins/view/linehighlight/LineHighlightManagerProvider",family:["currentlinehighlight","linehighlight"]},{id:"rtc.texthighlightmanager",path:"rtc/plugins/view/texthighlight/TextHighlightManagerProvider",family:"texthighlight"},{id:"rtc.currentlinehighlight",path:"rtc/plugins/currentlinehighlight/CurrentLineHighlightProvider",family:"currentlinehighlight"},{id:"rtc.currentlinehighlight.preference",path:"rtc/plugins/currentlinehighlight/CurrentLineHighlightPreferenceProvider",family:"currentlinehighlight"},{id:"rtc.code.sections.sectionbreak",path:"rtc/plugins/sectionbreak/SectionBreakProvider",family:"rtc.sectionbreak",subsystem:"hideallcodeplugins"},{id:"rtc.code.sections.sectionbreak.nodeconversionrules",path:"rtc/plugins/sectionbreak/SectionBreakNodeConversionRulesProvider",family:"rtc.sectionbreak",subsystem:"rtc.nodeconversionrule"},{id:"rtc.code.sections.sectionbreak.contentconverter",path:"rtc/plugins/sectionbreak/model/SectionBreakNodeContentConverterProvider",family:"rtc.sectionbreak",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"rtc.code.sections.sectionbreak.coordinateconverter",path:"rtc/plugins/sectionbreak/view/SectionBreakCoordinateConverterProvider",family:"rtc.sectionbreak",subsystem:"rtc.view.coordinateconverter.converter"},{id:"rtc.code.sections.sectionbreak.insertionrules",path:"rtc/plugins/sectionbreak/SectionBreakInsertionRulesProvider",family:"rtc.sectionbreak",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"rtc.code.sections.sectionbreak.layouter",path:"rtc/plugins/sectionbreak/view/SectionBreakLayouterProvider",family:"rtc.sectionbreak",subsystem:"rtc.view.layoutmanager.layouter"},{id:"rtc.selectline.view",path:"rtc/plugins/selectline/SelectLineViewProvider"},{id:"rtc.code.sections.contributor.sectionbreak",path:"rtc/plugins/language/matlab/sections/SectionBreakSectionContributorProvider",family:"rtc.sectionbreak"},{id:"rtc.editortabservice.preference",path:"rtc/plugins/editortabservice/EditorTabPreferenceProvider"},{id:"rtc.slides.slidecontroller",path:"rtc/plugins/slides/SlideControllerProvider",family:["presentationmode","slideview"]},{id:"rtc.execution.actions",path:"rtc/plugins/execution/ExecutionActionsProvider",family:"executioncontrols"},{id:"rtc.execution.runtocursor",path:"rtc/plugins/execution/RunToCursorProvider",family:"executioncontrols"},{id:"rtc.execution.runtohere",path:"rtc/plugins/execution/RunToHereActionsProvider",family:"executioncontrols"},{id:"rtc.execution.controlc",path:"rtc/plugins/execution/ControlCServiceProvider",isSharedPlugin:!0},{id:"matlab.execution.currentline",path:"rtc/plugins/execution/CurrentExecutionLineModelProvider",family:"executioncontrols"},{id:"rtc.margin.preview.sectionsnotifier",path:"rtc/plugins/statusactionbar/SectionBarActionHoverManagerProvider",family:"executionmargin"},{id:"rtc.margin.execution",path:"rtc/plugins/execution/margin/DecoratableExecutionMarginProvider",family:"executionmargin",subsystem:["rtc.left.margin","hideallcodeplugins"]},{id:"rtc.margin.execution.visiblitycontroller",path:"rtc/plugins/execution/margin/DecoratableExecutionMarginVisibilityControllerProvider",family:"executionmargin"},{id:"rtc.margin.execution.currentlinedecorator",path:"rtc/plugins/execution/margin/CurrentExecutionLineDecoratorProvider",family:"executionmargin"},{id:"margin.execution.sectionsdecorator.utilities",path:"rtc/plugins/statusactionbar/SectionDecoratorUtilitiesProvider",family:"executionmargin"},{id:"rtc.margin.execution.visiblitycontroller",path:"rtc/plugins/execution/margin/DecoratableExecutionMarginVisibilityControllerProvider",family:"executionmargin"},{id:"rtc.caseconverter",path:"rtc/plugins/caseconverter/CaseConverterProvider"},{id:"rtc.dataservice.sections.rich",path:"rtc/plugins/sections/RichSectionsRequestHandlerProvider"},{id:"rtc.dataservice.sections.plain",path:"rtc/plugins/sections/PlainSectionsRequestHandlerProvider"},{id:"rtc.dataservice.functions",path:"rtc/plugins/functions/FunctionsRequestHandlerProvider"},{id:"rtc.saveready.manager",path:"rtc/plugins/save/SaveReadyManagerProvider"},{id:"rtc.margin.sectionexpander",path:"rtc/plugins/statusactionbar/SectionRangeMarginExpansionHandlerProvider",family:"executionmargin"},{id:"rtc.margin.sectionbreak",path:"rtc/plugins/statusactionbar/decorators/SectionBreakMarginDecoratorProvider",family:"rtc.sectionbreak",subsystem:"margin.shared.decorations"},{id:"rtc.offscreennotification",path:"rtc/plugins/offscreennotification/OffscreenNotificationProvider",family:"blockmatching"},{id:"rtc.tokenmatching.eventhandler",path:"rtc/plugins/tokens/matching/TokenMatchingEventHandlerProvider",family:["parenmatching","blockmatching"]},{id:"rtc.tokenhighlighting.view",path:"rtc/plugins/tokens/highlighting/view/TokenHighlightingViewProvider",family:["parenmatching","blockmatching"]},{id:"language.common.blockmatching",path:"rtc/plugins/language/common/blockmatching/BlockMatchingProvider",family:"blockmatching"},{id:"language.common.blockmatching.view",path:"rtc/plugins/language/common/blockmatching/BlockMatchingViewProvider",family:"blockmatching"},{id:"rtc.tokenhighlighting.notifier",path:"rtc/plugins/tokens/highlighting/TokenHighlightingNotifierProvider",family:["parenmatching","blockmatching"]},{id:"rtc.tokenmatching.preference",path:"rtc/plugins/tokens/matching/preference/TokenMatchingPreferenceProvider",family:"blockmatching"},{id:"rtc.bannermanager",path:"rtc/plugins/bannermanager/EditorBannerManagerProvider"},{id:"rtc.execution.range.continue",path:"rtc/plugins/execution/range/ContinueRangeProvider",subsystem:"rtc.execution.range"},{id:"rtc.execution.range.runall",path:"rtc/plugins/execution/range/RunAllRangeProvider",subsystem:"rtc.execution.range"},{id:"rtc.execution.range.runsectionadvance",path:"rtc/plugins/execution/range/RunSectionAdvanceRangeProvider",subsystem:"rtc.execution.range"},{id:"rtc.execution.range.runsectionend",path:"rtc/plugins/execution/range/RunSectionEndRangeProvider",subsystem:"rtc.execution.range"},{id:"rtc.execution.range.runsection",path:"rtc/plugins/execution/range/RunSectionRangeProvider",subsystem:"rtc.execution.range"},{id:"rtc.execution.range.runtohere",path:"rtc/plugins/execution/range/RunToHereRangeProvider",subsystem:"rtc.execution.range"},{id:"rtc.execution.range.continuetohere",path:"rtc/plugins/execution/range/ContinueToHereRangeProvider",subsystem:"rtc.execution.range"},{id:"rtc.execution.range.stepout",path:"rtc/plugins/execution/range/StepOutRangeProvider",subsystem:"rtc.execution.range"},{id:"rtc.execution.range.step",path:"rtc/plugins/execution/range/StepRangeProvider",subsystem:"rtc.execution.range"},{id:"rtc.execution.range.utilities",path:"rtc/plugins/execution/range/ExecutionRangeUtilitiesProvider",family:"executioncontrols"},{id:"rtc.execution.range.manager",path:"rtc/plugins/execution/range/ExecutionRangeManagerProvider"},{id:"rtc.execution.triggers.evalonlinechange",path:"rtc/plugins/execution/triggers/EvalOnLineChangeTriggerProvider",family:"execution"},{id:"rtc.execution.triggers.liveeval",path:"rtc/plugins/execution/triggers/LiveEvalTriggerProvider",family:"execution"},{id:"rtc.execution.triggers.manualsection",path:"rtc/plugins/execution/triggers/ManualRunSectionTriggerProvider",family:"execution",subsystem:"hideallcodeplugins"},{id:"rtc.execution.triggers.manualall",path:"rtc/plugins/execution/triggers/ManualRunAllTriggerProvider",family:"execution"},{id:"rtc.execution.triggers",path:"rtc/plugins/execution/triggers/TriggersProvider",family:"execution"},{id:"rtc.execution.interruptaction",path:"rtc/plugins/execution/triggers/InterruptActionProvider",family:"execution"},{id:"rtc.splitscreen",path:"rtc/plugins/splitscreen/SplitScreenProvider",isSharedPlugin:!0},{id:"rtc.dduxusagelogger",path:"rtc/plugins/ddux/DDUXUsageLoggerProvider",family:"ddux"},{id:"rtc.actionlistenerservice",path:"rtc/plugins/actionlistenerservice/ActionListenerServiceProvider",family:"ddux"},{id:"rtc.actionlistenerserviceblacklist",path:"rtc/plugins/actionlistenerservice/ActionListenerServiceBlacklistProvider",family:"ddux"},{id:"rtc.actionloggerservice",path:"rtc/plugins/ddux/ActionLoggerServiceProvider",family:"ddux"},{id:"rtc.dduxcontributorloggingservice",path:"rtc/plugins/ddux/DDUXContributorLoggingServiceProvider",family:"ddux"},{id:"rtc.ddux.compositionlogging.service",path:"rtc/plugins/ddux/DDUXCompositionLoggingServiceProvider",family:"ddux"},{id:"rtc.ddux.compositionlogging.trigger",path:"rtc/plugins/ddux/DDUXCompositionLoggingTriggerProvider",family:"ddux"},{id:"rtc.ddux.compositionlogging.artifact",path:"rtc/plugins/ddux/DDUXCompositionArtifactServiceProvider",family:"ddux"},{id:"rtc.code.comment",path:"rtc/plugins/language/common/CommentCodeProvider",family:"comment"},{id:"rtc.code.wrapComments",path:"rtc/plugins/language/matlab/commentCode/WrapCommentsProvider"},{id:"rtc.accessibility.screenreader",path:"rtc/plugins/accessibility/screenreader/ScreenReaderServiceProvider",family:"rtc.accessibility"},{id:"rtc.lineScreenReaderContributor",path:"rtc/plugins/accessibility/screenreader/LineScreenReaderContributorProvider",family:"linenumbersupport",subsystem:"screenReaderContributors"},{id:"rtc.verticalborder.plugin",path:"rtc/plugins/verticalborder/VerticalBorderProvider",family:"verticalcodeborder"},{id:"rtc.verticalborderpreference",path:"rtc/plugins/verticalborder/VerticalBorderPreferenceProvider",family:"verticalcodeborder"},{id:"rtc.backgroundforegroundcolor",path:"rtc/plugins/colors/BackgroundForegroundColorProvider"},{id:"rtc.addlinetermination",path:"rtc/plugins/addlinetermination/AddLineTerminationProvider",isSharedPlugin:!0},{id:"rtc.zoom.controller",path:"rtc/plugins/zoom/ZoomControllerProvider",family:"zoom",isSharedPlugin:!0},{id:"rtc.zoom.configuration",path:"rtc/plugins/zoom/ZoomConfigurationProvider",family:"zoom",isSharedPlugin:!0},{id:"rtc.zoom.indicator",path:"rtc/plugins/zoom/ZoomLevelIndicatorProvider",family:"zoom",isSharedPlugin:!0},{id:"rtc.zoom.handler.cef",path:"rtc/plugins/zoom/CEFZoomHandlerProvider",family:"zoom",subsystem:"zoomhandlers",isSharedPlugin:!0},{id:"rtc.view.zoommodel",path:"rtc/view/ZoomModelProvider",family:"zoom",isSharedPlugin:!0},{id:"rtc.editoreventnotifier",path:"rtc/plugins/editoreventnotifier/EditorEventNotifierProvider",isSharedPlugin:!0},{id:"rtc.toggletextandcode",path:"rtc/plugins/richtext/ToggleTextAndCodeProvider",family:"rtc.richtext",subsystem:"hideallcodeplugins"},{id:"rtc.toggletextandcode.shortcuts",path:"rtc/plugins/richtext/CodeTextToggleShortcutsProvider",family:"rtc.richtext"}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7011),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.actionservice"]}},createInstance:function(e){return new t(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(209),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._actionService=e,this._parentToChildActionIdsMap={},this._childToParentActionIdMap={},this.own(t.after(this._actionService,"onActionChange",this._handleActionChange.bind(this),!0)),this.own(t.after(this._actionService,"removeAction",this._handleRemoveAction.bind(this),!0))},registerAction:function(e,t,n=0){if(!this._actionService.getAction(e))throw new Error(e+" action id doesn't exist");let o=this._actionService.getAction(t);(o.key||o.platformKey)&&i.error("Child action id "+t+" shouldn't have any key or platformKey"),this._childToParentActionIdMap[t]=e;let r=this._getContributingActionIdsForGivenId(e);r||(r=[],this._parentToChildActionIdsMap[e]=r,this._actionService.updateAction(e,{callback:this._executeAction.bind(this,e)})),r.push({actionId:t,priority:n})},_handleActionChange:function(e){let t=e.id;if("enabled"!==e.key)return;let n=this._childToParentActionIdMap[t];if(!n)return;if(!this._actionService.getAction(n))return void i.error(n+" parent action for given child action doesn't exist.");let o=this._getContributingActionIdsForGivenId(n).some(e=>this._actionService.getAction(e.actionId).enabled);this._actionService.updateAction(n,{enabled:o})},_handleRemoveAction:function(e){let t=this._childToParentActionIdMap[e];if(!t)return;delete this._childToParentActionIdMap[e];let i=this._getContributingActionIdsForGivenId(t);if(!i)return;let n=i.map((function(e){return e.actionId})).indexOf(e);i.splice(n,1),0===i.length&&delete this._parentToChildActionIdsMap[t]},_executeAction:function(e,t){let i=this._getContributingActionIdsForGivenId(e);if(!i)return!1;for(let e=0;e<i.length;e++){let o=this._actionService.getAction(i[e].actionId);if(o.enabled){var n=o.callback(t);if(void 0===n)throw new Error("All actions must return success result");if(n)return n}}return!1},_getContributingActionIdsForGivenId:function(e){const t=this._parentToChildActionIdsMap[e];return t?t.sort((function(e,t){return e.priority-t.priority})):t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7013),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.backingstore","rtc.service.documentloaded"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){e.onLoadComplete&&t.whenDocumentLoadedWithText(function(){this.own(i.after(e,"onLoadComplete",this.handleExternalChange.bind(this)))}.bind(this))},handleExternalChange:function(){this.onExternalChangeLoad()},onExternalChangeLoad:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7015)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.id"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(219)],o=i.dj.d(n,(function(e,t,i){return e(t,{_START_MESSAGE:"/editorService/start",_STOP_MESSAGE:"/editorService/stop",constructor:function(e){this._rtcId=e,i.publish(this._START_MESSAGE,this._rtcId)},destroy:function(){i.publish(this._STOP_MESSAGE,this._rtcId)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7017)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(219)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e){this._messageService=e||n,this.streamingEval=!1},authoringEval:function(e){this._messageService.publish("/editor/executionservice/authoringEval",e)},executionEval:function(e){this._messageService.publish("/editor/executionservice/executionEval",e)},isMessageServiceRunning:function(){return this._messageService.isRunning()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7019)],o=i.dj.d(n,(function(e,t,i){var n=null,o=0;return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.executionservice"]}},createInstance:function(e){return null===n&&(n=new i(e)),o+=1,n},destroyInstance:function(){(o-=1)<1&&(n.destroy(),n=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(257),i(206),i(209),i(627)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(e,{_MATLAB_PROTOCOL:"matlab:",_SCHEME_REG_EXPRESSION:"^(http|https|ftp)://$",constructor:function(e){this._executionService=e,this._addEventListener(document,this.openUrl)},_isMatlabUrl:function(e){return e.substring(0,7)===this._MATLAB_PROTOCOL},_openUrlWithExecutionService:function(e){var t=this._isMatlabUrl(e);e=(e=t?e:e.replace(/'/g,"''")).trim();var i=t?e.slice(this._MATLAB_PROTOCOL.length):"web('"+e+"', '-browser')";this._executeMatlabCommand(i)},_executeMatlabCommand:function(e){this._executionService.streamingEval&&this._executionService.executionEval(e,this._executionService.streamingEval),this._executionService.isMessageServiceRunning&&this._executionService.isMessageServiceRunning()&&this._executionService.executionEval(e)},_handleHyperlink:function(e,t){if(n.isMiddle(t)||n.isRight(t))return t.stopPropagation(),void t.preventDefault();var i=t.selectorTarget||t.srcElement||t.originalTarget;"A"===i.tagName&&e.call(this,i.getAttribute("href"))&&(t.stopPropagation(),t.preventDefault())},_addEventListener:function(e,t){this.own(o(e,".rteWindow a:click, .rteWindow a:auxclick, .rtcTooltip a:click, .rtcTooltip a:auxclick",i.hitch(this,"_handleHyperlink",t),!0))},_makeAbsolutePath:function(e,t){var i=-1!==e.indexOf("/")?"/":"\\";return(e.startsWith("."+i)||e.startsWith(".."+i))&&t&&(e.startsWith("."+i)&&(e=e.slice(2)),e=t+e),e},_isExecutionServiceAvailable:function(){return!!this._executionService.streamingEval||!(!this._executionService.isMessageServiceRunning||!this._executionService.isMessageServiceRunning())},_openFilePath:function(e,t){var i="open('"+this._makeAbsolutePath(e,t)+"')";this._executeMatlabCommand(i)},openHyperReference:function(e,t){if(!this._isExecutionServiceAvailable()){var i="#";return e.isWebTarget()?i=e.getReference():e.isExternalFileTarget()&&(i=this._makeAbsolutePath(e.getReference(),t)),void this._handleWithoutExecutionService(i)}e.isWebTarget()?this._openUrlWithExecutionService(e.getReference()):e.isExternalFileTarget()?this._openFilePath(e.getReference(),t,e.getAnchor()):e.isMatlabCommand()&&this._executeMatlabCommand(e.getReference())},_handleWithoutExecutionService:function(e){var t=a.getFilePathFromOpenCommand(e);t&&(e=t),window.open(e,null,"noopener=1")},openUrl:function(e){return this._isExecutionServiceAvailable()||-1!==e.search(new RegExp(this._SCHEME_REG_EXPRESSION,"i"))?this._openUrlWithExecutionService(e):this._handleWithoutExecutionService(e),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7021)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208),i(249),i(260),i(577)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(t,{constructor:function(e){this._internalDocument=e,this._cachedRawMutations=[],this.own(i.before(this._internalDocument,"onDocumentChanged",this._handleDocumentChanged.bind(this),!0))},_handleDocumentChanged:function(e){this._cachedRawMutations=o.getRawCoalescedDocumentMutations(e)},getLineNumbersFromEvents:function(){return o.getLineNumbersFromMutations(this._cachedRawMutations)},getLineNodesFromEvents:function(){return o.getLineNodesFromMutations(this._cachedRawMutations,this._internalDocument)},getLengthChangeEvent:function(){return o.toLengthChangeEventFromMutations(this._cachedRawMutations)},finalLineRangeFromEvents:function(){return o.finalLineRangeFromMutations(this._cachedRawMutations)},getCoalescedDocumentMutations:function(){return this._cachedRawMutations.map((function(e){return r.create(e.from[0],e.from[1],e.to[0],e.to[1])}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7023)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(208)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._timeoutTimer=null,this.own(i.after(e,"onDocumentChanged",this._handleDocumentChanged.bind(this)))},_handleDocumentChanged:function(){this._timeoutTimer&&clearTimeout(this._timeoutTimer),this._timeoutTimer=setTimeout(function(){this.onDocumentIdle()}.bind(this),2e3)},onDocumentIdle:function(){},destroy:function(){this.inherited(arguments),this._timeoutTimer&&clearTimeout(this._timeoutTimer)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7025)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.domnode"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(477),i(527),i(933),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{constructor:function(e){this._rtcDomNode=e,this.own(this._createGestureHandlerForDownEvent())},_createGestureHandlerForDownEvent:function(){return new i(this._rtcDomNode,[n.tapmove({options:{pointerTypes:[o.MOUSE,o.PEN,o.TOUCH],numTaps:0},callbacks:{began:function(e){this.onMouseDown(e.srcEvent)}.bind(this)}})])},onMouseDown:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7027)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1088),i(801),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(){this._disabledCapabilities=[]},disableCapability:function(e){-1===this._disabledCapabilities.indexOf(e)&&this._disabledCapabilities.push(e)},enableCapability:function(e){var t=this._disabledCapabilities.indexOf(e);-1!==t&&this._disabledCapabilities.splice(t,1)},excludeCurrentCapabilitiesFromRunOptions:function(e,n){n=n||[];var o=[...this._disabledCapabilities,...n];o=o.map((function(e){return t[e]})).filter((function(e){return!!e}));var r=i.getFullCapabilitiesList(),a=i.getCapabilitiesListDiff(r,o);return e.setCapabilities(a),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2113)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7030)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203)],o=i.dj.d(n,(function(e,t){return t([e],{constructor:function(){},onEvaluationRequested:function(e){},onQueuedRequestRemoved:function(e){},notifyEvaluationRequested:function(e){this.onEvaluationRequested(e)},notifyQueuedRequestRemoved:function(e){this.onQueuedRequestRemoved(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7032)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.position.controller"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(1397)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._internalDocument=e,this._positionController=t},serializeRequest:function(e){return e.serialize()},deserializeRequest:function(e){return e.positionController=this._positionController,new i(this._internalDocument,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7034),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.executionservice.statehandler","rtc.executionservice.executionrequestnotifier"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,i){this._stateHandler=e,this._executionRequestNotifier=i,this._executionStore={},this._trackers={},this._currentExecutionId=null,this.own(o.after(this._stateHandler,"onStateChanged",t.hitch(this,"_stateChangeListener"),!0)),this.own(o.after(this._executionRequestNotifier,"onEvaluationRequested",t.hitch(this,"_handleEvaluationRequested"),!0)),this.own(o.after(this._executionRequestNotifier,"onQueuedRequestRemoved",t.hitch(this,"_handleQueuedRequestRemoved"),!0))},registerTracker:function(e){var t=e.getId();this._trackers[t]&&i.error("A tracker with the same ID has already been registered: "+t),this._trackers[t]=e},get:function(e,t){if(t=t||this._currentExecutionId){var i=this._executionStore[t];if(i)return i[e]}},remove:function(e,t){(t?[t]:Object.keys(this._executionStore)).forEach((function(t){var i=this._executionStore[t];i&&(i[e]&&this._destroyCustomData(i,t,e),delete i[e],0===Object.keys(i).length&&delete this._executionStore[t])}),this)},_handleEvaluationRequested:function(e){this._executionStore[e]={},Object.keys(this._trackers).forEach((function(t){var i=this._trackers[t].getDataAtRequestTime(e);this._add(t,i,e)}),this)},_handleQueuedRequestRemoved:function(e){this._clearExecutions(e)},_stateChangeListener:function(e,t){e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_INITIALIZED?this._currentExecutionId=t.evaluationId:e===this._stateHandler.CHANGE_TYPE_ENUM.EVAL_COMPLETE&&(this._clearExecutions(this._currentExecutionId),this._currentExecutionId=null)},_add:function(e,t,n){var o=this._executionStore[n];o[e]&&i.error("Tracker ID already exists and will be overwritten."),o[e]=t},_clearExecutions:function(e){(e?[e]:Object.keys(this._executionStore)).forEach((function(e){var t=this._executionStore[e];t&&(this._destroyCustomData(t,e),delete this._executionStore[e])}),this)},_destroyCustomData:function(e,t,i){(i?[i]:Object.keys(e)).forEach((function(i){this._trackers[i].destroyTrackedData(e[i],t)}),this)},destroy:function(){this.inherited(arguments),this._clearExecutions(),this._currentExecutionId=null,this._trackers=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7036)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.internaldocument","rtc.executionservice.executiontrackingstore"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(208),i(234),i(1440)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_EXECUTION_TRACKING_STORE_ID:"LineNumberTrackerKey",constructor:function(e,i,o){this._document=e,this._internalDocument=i,this._executionTrackingStore=o,this._executionIds=[],this.own(n.after(this._internalDocument,"onDocumentReset",t.hitch(this,"_reset"))),this._executionTrackingStore.registerTracker(this)},createPositionFromOldLineNumber:function(e,t){var i=this._getNodeFromOldLineNumber(e,t);return this._document.createLinePosition(i,!1)},getNewLineNumberFromOldLineNumber:function(e){var t=this._executionTrackingStore.get(this._EXECUTION_TRACKING_STORE_ID);if(t)return t[e].getLine()-1;var i=this._getNodeFromOldLineNumber(e);return this._internalDocument.getLineNumber(i)},getId:function(){return this._EXECUTION_TRACKING_STORE_ID},getDataAtRequestTime:function(e){var t=o.getCodeLineNodes(this._internalDocument),i=this._tryToReusePreviousPositions(e,t);return i||t.map((function(e){return this._document.createLinePosition(e,!1)}),this)},destroyTrackedData:function(e,t){var n=this._findExecution(t);if(n){var o=this._executionIds[n.groupIndex];1===o.length?(this._executionIds.splice(n.groupIndex,1),e.forEach((function(e){this._document.deletePosition(e)}),this)):o.splice(n.executionIndex,1)}else i.error("LineNumberTracker.destroyTrackedData: executionId not found. Continuing without destroying data.")},_reset:function(){this._executionTrackingStore.remove(this._EXECUTION_TRACKING_STORE_ID)},_tryToReusePreviousPositions:function(e,t){var i=this._executionIds[this._executionIds.length-1]||[],n=i[i.length-1];if(n){var o=this._executionTrackingStore.get(this._EXECUTION_TRACKING_STORE_ID,n);if(!this._didLineNumbersChange(o,t))return i.push(e),o}return this._executionIds.push([e]),null},_findExecution:function(e){for(var t=0;t<this._executionIds.length;t++)for(var i=this._executionIds[t],n=0;n<i.length;n++)if(e===i[n])return{groupIndex:t,executionIndex:n};return null},_didLineNumbersChange:function(e,t){return!(e.length===t.length&&e.every((function(e,i){return e.getNode()===t[i]})))},_getNodeFromOldLineNumber:function(e,t){var i,n=this._executionTrackingStore.get(this._EXECUTION_TRACKING_STORE_ID);n?i=n[e].node:i=o.getCodeLineNodes(this._internalDocument)[e];if(!i){var r=o.getCodeLineNodes(this._internalDocument),a=new Error,s="n/a";throw n&&(s=n.length),new Error("Node is null.;\noldLineNumber: "+e+" ;\nmapping Length: "+s+" ;\ncodeLinesLength: "+r.length+" ;\nstack: "+a.stack+" ;\noutputData: "+JSON.stringify(t)+" ;\ndocumentText: \n=====START OF DOCUMENT=====\n"+this._document.getText()+" ;\n=====END OF DOCUMENT=====\n")}return i},destroy:function(){this.inherited(arguments),this._reset()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7038),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.executionservice.requestserializer"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(492),i(208)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{CHANGE_TYPE_ENUM:{EVAL_INITIALIZED:1,EVAL_COMPLETE:2,REGION_EVAL_STARTED:3,SECTION_EVAL_COMPLETE:4},constructor:function(e){this._executionRequestSerializationService=e,this._isRunning=!1,this._evaluationRange=null,this._currentRequest=null},stateChanged:function(e,t){switch(e){case this.CHANGE_TYPE_ENUM.EVAL_INITIALIZED:this._evaluationRange=t.evaluationRange,this._isRunning=!0,this._currentRequest=t.request;break;case this.CHANGE_TYPE_ENUM.REGION_EVAL_STARTED:this._isRunning=!0;break;case this.CHANGE_TYPE_ENUM.EVAL_COMPLETE:this._isRunning=!1,this._evaluationRange=null,this._currentRequest=null}this.onStateChanged(e,t)},getCurrentRequest:function(){return this._currentRequest},onStateChanged:function(e,t){},attachListener:function(e,i){var o=t.partial((function(e,t,i){i===e&&t()}),e,i);return n.after(this,"onStateChanged",o,!0)},isRunning:function(){return this._isRunning},isRunningRequestInvalid:function(){return!!this._currentRequest&&!this._currentRequest.isValid()},getEvaluationRange:function(){return this._evaluationRange},serializePlugin:function(e){var t=null;return this._currentRequest&&(t=this._executionRequestSerializationService.serializeRequest(this._currentRequest)),{currentRequest:t}},deserializePlugin:function(e,t){e.currentRequest&&t.whenPrimaryViewReady(function(){this._currentRequest=this._executionRequestSerializationService.deserializeRequest(e.currentRequest),this._isRunning=this._currentRequest.isValid(),this._evaluationRange=this._currentRequest.getEvaluationRange()}.bind(this))},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7040),i(378)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(e){return o.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.document","rtc.cursor"]}},createInstance:function(e,t){return new n(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(234),i(2425),i(925)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{constructor:function(e,n){this._document=e,this._cursor=n,this._lastEventObject=null,this.own(i.after(n,"onChange",t.hitch(this,"_checkFunctionArgsNavigation")))},onFunctionNavigationNotify:function(e){},getFunctionInfo:function(){return this._lastEventObject.functionInfo},_checkFunctionArgsNavigation:function(){var e={},t=this._getFunctionInfoForCursorPosition();if(!t)return e.type=a.FUNCTION_ARGS_NAVIGATE_EXIT,void this._notifyFunctionInfoChanged(e);var i=!0,n=null;if(this._lastEventObject&&this._lastEventObject.functionInfo&&(i=(n=this._lastEventObject.functionInfo).functionName!==t.functionName),i)return t.relation=this._checkForRelationship(t,n),e={type:a.FUNCTION_ARGS_NAVIGATE_ENTER,functionInfo:t},void this._notifyFunctionInfoChanged(e);this._lastEventObject.functionInfo.currentArgumentNumber!==t.currentArgumentNumber?(e={type:a.FUNCTION_ARGS_NAVIGATE_CHANGE,functionInfo:t},this._notifyFunctionInfoChanged(e)):(e={type:a.FUNCTION_ARGS_NAVIGATE,functionInfo:t},this._notifyFunctionInfoChanged(e))},_notifyFunctionInfoChanged:function(e){this._lastEventObject=e,this.onFunctionNavigationNotify(e)},_getFunctionInfoForCursorPosition:function(){var e=this._getCodeLineInfoUnderCursor();return e?r.getFunctionArgsInfoForOffset(e.lineText,e.column-1,e.line-1):null},_getCodeLineInfoUnderCursor:function(){var e=this._cursor.selectionInfo();if(!o.isCodeInRange(e.startNode,e.endNode))return null;var t=this._cursor.getLineColumn(),i=this._document.getLineText(t.line),n=t.column;return{lineText:i,line:t.line,column:n}},_checkForRelationship:function(e,t){return t&&e.line===t.line?-1===e.line?null:e.functionCallDepth>t.functionCallDepth?a.INNER_NESTED_FUNCTION_CALL:a.OUTER_NESTED_FUNCTION_CALL:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7042),i(378)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(e){return o.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.functionservice"]}},createInstance:function(e){return new n(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1580)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t){this._functionService=e,this._codeAnalyzerModel=t},getFunctionInfoOfDesiredFunctions:function(){return this._functionService.getLocalFunctionsDeclarations()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7044),i(378)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(e){return o.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.functionservice"]}},createInstance:function(e){return new n(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1580)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._functionService=e},getFunctionInfoOfDesiredFunctions:function(){return this._functionService.getFunctionDeclarations()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7046),i(378)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(e){return o.isMatlabCodeFileOrBuffer(e)},requires:function(){return{isApplicable:["rtc.backingstore"],createInstance:["rtc.functionservice"]}},createInstance:function(e){return new n(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(1580)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._functionService=e},getFunctionInfoOfDesiredFunctions:function(){return this._functionService.getTopLevelFunctionDeclarations()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7048)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document.changenotifier","rtc.internaldocument","rtc.linenumberservice","rtc.document.eventcache"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207),i(234),i(249),i(260),i(379),i(473)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(n,{constructor:function(e,n,o,r){this._documentChangeNotifier=e,this._internalDocument=n,this._lineNumberService=o,this._documentEventCache=r,this._numberOfCodeLines=0,this._deletedCodeLines=[],this._numberOfDeletedSections=0,this.own(i.after(this._documentChangeNotifier,"onPreDeletion",t.hitch(this,"_handlePreDeletion"),!0),i.after(this._internalDocument,"onDocumentChanged",t.hitch(this,"_handleDocumentChanged"),!0),i.after(this._internalDocument,"onDocumentReset",t.hitch(this,"_checkCodeChangeOnReset")))},onCodeChanged:function(e,t){},onCodeReadOnlyChanged:function(e){},onNumberOfCodeLinesChanged:function(e){},_handleDocumentChanged:function(e){var t=[],i=[];e.forEach((function(e){e.type===r.READONLY_STATE_CHANGE_EVENT?t.push(e):i.push(e)}),this);var n=0!==t.length;i.length>0&&this._checkCodeChange(i,this.onCodeChanged.bind(this),!n),t.length>0&&this._checkCodeChange(t,this.onCodeReadOnlyChanged.bind(this),!n),this._checkNumberOfCodeLinesChanged(),this._deletedCodeLines=[]},_handlePreDeletion:function(e,t){t.hasSelection()&&this._storeCodeLinesFromDeletedSelection(t)},_storeCodeLinesFromDeletedSelection:function(e){this._deletedCodeLines=[],this._numberOfDeletedSections=0;var t=e.adjustSelection(e.selectionInfo()),i=t.startPosition.getNode().rootContainer(),n=this._internalDocument.getLineNumber(i),r=t.endPosition.getNode().rootContainer(),a=this._internalDocument.getLineNumber(r);o.isCodeContainer(i)&&s.isInFullSelection(e,this._internalDocument,i)&&this._deletedCodeLines.push(n);for(var c=n+1;c<a;c+=1){var d=this._internalDocument.getLineNode(c);d&&(d instanceof l?this._numberOfDeletedSections+=1:o.isCodeContainer(d)&&this._deletedCodeLines.push(c))}o.isCodeContainer(r)&&s.isInFullSelection(e,this._internalDocument,r)&&this._deletedCodeLines.push(a)},_checkCodeChange:function(e,t,i){var n=this._getCodeChangesFromEvents(e,i);n&&t(n,!1)},_checkNumberOfCodeLinesChanged:function(){var e=this._lineNumberService.getNumberOfCodeLines();this._numberOfCodeLines!==e&&(this._numberOfCodeLines=e,this.onNumberOfCodeLinesChanged(this._numberOfCodeLines))},_getOnCodeChangePayload:function(e,t){if(e.length>0||this._deletedCodeLines.length>0||t.length>0||this._numberOfDeletedSections>0)return{changedCodeLineNodes:e,deletedCodeLines:this._deletedCodeLines,numberOfDeletedSections:this._numberOfDeletedSections,formerCodeLines:t}},_getCodeChangesFromEvents:function(e,t){var i=(t?this._documentEventCache.getLineNodesFromEvents():a.getLineNodesFromEvents(e,this._internalDocument)).filter(o.isCodeContainer,o),n=this._getFormerCodeLines(e);return this._getOnCodeChangePayload(i,n)},_getFormerCodeLines:function(e){var t=a.getEventsOfType(e,r.FORMAT_CHANGE_EVENT);return t=t.filter((function(e){return"code"===e.oldFormat})),a.getLineNumbersFromEvents(t)},_checkCodeChangeOnReset:function(){this._deletedCodeLines=[],this._numberOfDeletedSections=0;var e=o.getCodeLineNodes(this._internalDocument),t=this._getOnCodeChangePayload(e,[]);t&&this.onCodeChanged(t,!0),this._checkNumberOfCodeLinesChanged()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7050)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.internaldocument","rtc.document"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(236),i(253),i(207),i(237),i(7051)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{_REGEX_DELIMITER_FOR_TARGET:/[^a-zA-Z0-9._]|[.]{2,}/,constructor:function(e,t,i){this._cursor=e,this._internalDocument=t,this._document=i},_getTextDataAtPosition:function(){return o.getStringAtPosition(this._internalDocument,this._cursor.position,this._REGEX_DELIMITER_FOR_TARGET)},getTextInformation:function(){var e=this._cursor.selectedText(),t=null;if(e){e=e.trim();var i=this._cursor.getSelectionLineColumn().start.line,n=this._cursor.getSelectionLineColumn().start.column;t=new r(e,i,n)}else{var o=this._getTextDataAtPosition();if(o){var a=this._cursor.getCursorPosition().getLine();return new r(o.text,a,o.startLineCol.column+1)}}return t},getUpdatedLabel:function(e,i,n,o){var r="";e?r=e.split("\n").length>1?i:e.length>30?t.substitute(o,[e.substring(0,30)]):t.substitute(n,[e]):r=i;return r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t,i){this.text=e,this.startLine=t,this.startColumn=i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7053),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{createInstance:[]}},createInstance:function(){return new t},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(7054),i(7055)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(){},destroy:function(){},createErrorMessageWithStack:function(e){return new n(e)},createWarningMessageWithStack:function(e){return new o(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2426)],o=i.dj.d(n,(function(e,t){return e([t],{_SECTION_SEPARATOR:"<br><br>",_ERROR_CLASS:"diagnosticMessage-errorType",constructor:function(){},getClass:function(){return this._ERROR_CLASS},getSectionSeparator:function(){return this._SECTION_SEPARATOR}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2426)],o=i.dj.d(n,(function(e,t){return e([t],{_SECTION_SEPARATOR:"<br>> ",_WARNING_CLASS:"diagnosticMessage-warningType",constructor:function(){},getClass:function(){return this._WARNING_CLASS},getSectionSeparator:function(){return this._SECTION_SEPARATOR}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7057)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document.executablecode.executablecodeconverter"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209)],o=i.dj.d(n,(function(e,t){return e(null,{_internalDocument:null,_executableCodeConverter:null,constructor:function(e,t){this._internalDocument=e,this._executableCodeConverter=t},getEvalText:function(){var e=this._executableCodeConverter.getEvalTextFromNode(this._internalDocument.root);if(!e)return e;var i=e.replace(/\r/g,"");return i.length!==e.length&&t.error("Unexpected \\r character found in the document. Removing for evaluation."),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7059)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document.executablecode.executablecodeconverter.converter"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1577)],o=i.dj.d(n,(function(e,t){return e(t,{CONVERTER_PLUGIN_NAME:"ExecutableCodeConverter",constructor:function(e){this._initializeRecursiveConverter(e)},getEvalTextFromNode:function(e){var t=this._getConverter(e);return t?t.getEvalTextFromNode(e):null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7061)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2427),i(323)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7063)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7064),i(389)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1471)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},getEvalTextFromNode:function(e){return e.getCodeText()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7066)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2427),i(547)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(2292),i(454)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(e){return e.getLanguage()===o.DEFAULT_SUPPORTED_LANGUAGES.MATLAB},requires:function(){return{isApplicable:["rtc.internal.language"],createInstance:["rtc.internaldocument","rtc.code.codechange","matlab.languageanalysis.filestructureservice"]}},createInstance:function(){return new n(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7069),i(7071)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{createInstance:["rtc.id","rtc.code.codechange","rtc.editorservice.synchronizationmodel"]}},createInstance:function(e,t,o){var r=i(e);return new n(r,t,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1414),i(7070)],o=i.dj.d(n,(function(e,t){function i(e){var i=[];return i=t.extractNodesFromAST(e.structure,i,["function","method","classdef"],"functions",n),{getDocumentState:function(){return t.getDocumentState(e)},hasTreeError:function(){return t.hasTreeError(e)},hasBlockStructureError:function(){return e.hasBlockStructureError},getFileType:function(){return t.getFileType(e)},getAllSections:function(){return t.getAllSections(e)},getBlockLocations:function(){return t.getBlockLocations(e)},getAllFunctions:function(){return t.getAllFunctions(e,i)},getMainFunctionDeclaration:function(){return"FunctionFile"===e.fileType?e.mainFunctionDeclaration:null},getEnclosingScope:function(t,n){var r=[];return t>0&&n>0&&("FunctionFile"!==e.fileType&&"ClassdefFile"!==e.fileType||o(i[0],t,n)||r.push(i[0].name),r=function e(t,i,n,r){for(var a=0;a<n.length;a++)if(o(n[a],t,i)&&(r.push(n[a].name),0!==n[a].functions.length))return e(t,i,n[a].functions,r),r;return r}(t,n,i,r)),r},getAllLocalFunctions:function(){var t=[];if("FunctionFile"===e.fileType||"ClassdefFile"===e.fileType){for(var n=1;n<i.length;n++)t.push({name:i[n].name,type:i[n].type,startLine:i[n].startLine,startColumn:i[n].startColumn,endLine:i[n].endLine,endColumn:i[n].endColumn,functions:i[n].functions});return t}return"ScriptFile"===e.fileType?i:t},getClassDefinitions:function(){return e.classDefinitions}}}function n(e,t){var i={name:e.name,type:e.type,startLine:e.startLine,startColumn:e.startColumn,endLine:e.endLine,endColumn:e.endColumn};return i[t]=[],i}function o(e,t,i){return!(e.startLine>t)&&(!(e.endLine<t)&&(!(e.startLine===t&&e.startColumn>i)&&!(e.endLine===t&&e.endColumn+1<i)))}function r(e){if(e&&Object.getOwnPropertyNames(e).length)return e.hasOwnProperty("documentState")&&e.hasOwnProperty("hasTreeError")&&e.hasOwnProperty("hasBlockStructureError")&&e.fileType&&e.structure&&e.sections&&e.classDefinitions?("FunctionFile"!==e.fileType||e.mainFunctionDeclaration,!0):!!e.failure}return function(t,n){var o=new e("/codeanalyzer/responseChannel/fileStructure/"+t,n);return{subscribeToFileStructureUpdates:function(e,t){o.addCAEventListener(e,t,i,r)},unsubscribeFromFileStructureUpdates:function(){o.removeCAEventListener()}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getDocumentState:function(e){return e.documentState},hasTreeError:function(e){return e.hasTreeError},getFileType:function(e){return e.fileType},getAllSections:function(e){var t=[];if(e.sections.endLines.length>0)for(var i=0;i<e.sections.endLines.length;++i)t.push({startLine:e.sections.startLines[i],endLine:e.sections.endLines[i],isExplicit:e.sections.isExplicit[i],name:e.sections.names[i]});return t},getBlockLocations:function(e){return e.structure},getAllFunctions:function(e,t){if("ClassdefFile"===e.fileType){for(var i=[],n=0;n<t[0].functions.length;n++)i.push(t[0].functions[n]);for(var o=1;o<t.length;o++)i.push(t[o]);return i}return t},extractNodesFromAST:function(e,t,i,n,o){for(var r=!1,a=0;a<e.length;a++){r=!1;for(var s=0;s<i.length;s++)if(e[a].type===i[s]){t.push(o(e[a],n)),r=!0;break}if(e[a].blocks&&e[a].blocks.length>0){var l=t.length;r?t[l-1][n]=this.extractNodesFromAST(e[a].blocks,t[l-1][n],i,n,o):t=this.extractNodesFromAST(e[a].blocks,t,i,n,o)}}return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(845),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e([n,i],{constructor:function(e,t,i){this._fileStructureService=e,this._synchronizationModel=i,this._fileStructureService.subscribeToFileStructureUpdates(this._handleUpdate.bind(this),this._handleError.bind(this)),this.initializeSynchronizable(t),this._fileStructureObject=null},destroy:function(){this._fileStructureService.unsubscribeFromFileStructureUpdates()},_handleUpdate:function(e){this._synchronizationModel.getLastPendingCodeSynchronizationState()===e.getDocumentState()&&(this._fileStructureObject=e,this.onDataUpdated())},_handleError:function(e){t.error(e)},onDataUpdated:function(){this.markClean()},getDocumentState:function(){return this._fileStructureObject.getDocumentState()},hasTreeError:function(){return this._fileStructureObject.hasTreeError()},hasBlockStructureError:function(){return this._fileStructureObject.hasBlockStructureError()},getFileType:function(){return this._fileStructureObject.getFileType()},getBlockLocations:function(){return this._fileStructureObject.getBlockLocations()},getAllSections:function(){return this._fileStructureObject.getAllSections()},getAllFunctions:function(){return this._fileStructureObject.getAllFunctions()},getAllLocalFunctions:function(){return this._fileStructureObject.getAllLocalFunctions()},getEnclosingScope:function(e,t){return this._fileStructureObject.getEnclosingScope(e,t)},getMainFunctionDeclaration:function(){return this._fileStructureObject.getMainFunctionDeclaration()},getClassDefinitions:function(){return this._fileStructureObject.getClassDefinitions()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7073),i(203),i(205),i(7074)],o=i.dj.d(n,(function(e,t,i,n){return t(i,{requires:function(){return{createInstance:["rtc.id","rtc.code.codechange","rtc.editorservice.synchronizationmodel"]}},createInstance:function(t,i,o){var r=e(t);return new n(r,i,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1414)],o=i.dj.d(n,(function(e){var t=new RegExp("[a-zA-Z][a-zA-Z0-9_]*");function i(e){return{getDocumentState:function(){return e.documentState},getIdentifierLocations:function(t,i,n){var o=[],s=r(e.identifiers,n,t,i);if(s.found&&s.symbol.isValid&&(s.symbol.isVariable||s.symbol.hasLocalDeclaration))for(var l=0;l<s.symbol.startLines.length;l++)o.push(a(s.symbol,l));return o},isIdentifierValidForRename:function(t,i,n){var o=r(e.identifiers,n,t,i);if(o.found&&o.symbol.isValid&&(o.symbol.isVariable||o.symbol.hasLocalDeclaration))return o.symbol.isDefinitions[o.propertyIndex]},getAllNonLocalVariables:function(){var t=[];for(var i in e.identifiers)e.identifiers.hasOwnProperty(i)&&e.identifiers[i].forEach((function(e){if(e.isGlobal||e.isShared||e.isPersistent)for(var i=0;i<e.endColumns.length;i++)t.push(a(e,i))}));return t},isSharedVariable:function(t,i,n){var o=r(e.identifiers,n,t,i);if(o.found&&o.symbol.isValid&&o.symbol.isVariable)return o.symbol.isShared},isGlobalVariable:function(t,i,n){var o=r(e.identifiers,n,t,i);if(o.found&&o.symbol.isValid&&o.symbol.isVariable)return o.symbol.isGlobal},isPersistentVariable:function(t,i,n){var o=r(e.identifiers,n,t,i);if(o.found&&o.symbol.isValid&&o.symbol.isVariable)return o.symbol.isPersistent},hasTreeError:function(){return e.hasTreeError},isVariableName:function(e){return"string"==typeof e&&0===e.search(t)},generateUnusedVariableName:function(t,i,r,a){var s=t,l=2;if(r&&a)for(;o(s,i)||n(e.identifiers[s],r,a);)s=t+l,l++;else for(;o(s,i)||e.identifiers.hasOwnProperty(s);)s=t+l,l++;return s},getIdentifierDefinition:function(t,i,n){var o,a=r(e.identifiers,n,t,i);if(a.found)return(o={}).isValid=a.symbol.isValid,o.isVariable=a.symbol.isVariable,o.declarationPosition=null,a.symbol.declarationStartLine&&a.symbol.declarationStartColumn&&(o.declarationPosition={},o.declarationPosition={declarationStartLine:a.symbol.declarationStartLine,declarationStartColumn:a.symbol.declarationStartColumn}),o;if(e.identifiers.hasOwnProperty(n))for(var s=void 0,c=0;c<e.identifiers[n].length;c++){var d=e.identifiers[n][c];d.parentRegionStartLine&&l(d,t,i)&&(void 0===s||l(s,d.parentRegionStartLine,d.parentRegionStartColumn))&&(s=d)}return s?o={isValid:s.isValid,isVariable:s.isVariable,declarationPosition:{declarationStartLine:s.declarationStartLine,declarationStartColumn:s.declarationStartColumn}}:void 0}}}function n(e,t,i){if(e){for(var n=0;n<e.length;n++)for(var o=0;o<e[n].startLines.length;o++)if(e[n].startLines[o]<t||e[n].endLines[o]>i)return!0;return!1}return!1}function o(e,t){return t.includes(e)}function r(e,t,i,n){var o={found:!1};if(e.hasOwnProperty(t))for(var r=0;r<e[t].length;r++)for(var a=e[t][r],s=0;s<a.startLines.length;s++)if(a.startLines[s]===i&&a.startColumns[s]===n)return o.found=!0,o.symbol=a,o.propertyIndex=s,o;return o}function a(e,t){return{startLine:e.startLines[t],startColumn:e.startColumns[t],endLine:e.endLines[t],endColumn:e.endColumns[t],byHeuristic:e.byHeuristics[t]}}function s(e){if(e&&Object.getOwnPropertyNames(e).length){if(e.hasOwnProperty("documentState")&&e.hasOwnProperty("hasTreeError")&&e.identifiers)return!0;if(e.failure)return!0}return!1}function l(e,t,i){return!(e.parentRegionStartLine>t)&&(!(e.parentRegionEndLine<t)&&(!(e.parentRegionStartLine===t&&e.parentRegionStartColumn>i)&&!(e.parentRegionEndLine===t&&e.parentRegionEndColumn+1<i)))}return function(t,n){var o=new e("/codeanalyzer/responseChannel/identifiers/"+t,n);return{subscribeToIdentifierUpdates:function(e,t){o.addCAEventListener(e,t,i,s)},unsubscribeFromIdentifierUpdates:function(){o.removeCAEventListener()}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(208),i(845),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o,n],{constructor:function(e,t,i){this._identifierService=e,this._synchronizationModel=i,this._identifierService.subscribeToIdentifierUpdates(this._handleUpdate.bind(this),this._handleError.bind(this)),this.initializeSynchronizable(t),this._identifierServiceDataObject=null},destroy:function(){this.inherited(arguments),this._identifierService.unsubscribeFromIdentifierUpdates()},_handleUpdate:function(e){this._identifierServiceDataObject=e,this._synchronizationModel.getLastPendingCodeSynchronizationState()===this._identifierServiceDataObject.getDocumentState()&&this.onDataUpdated()},_handleError:function(e){t.error(e)},onDataUpdated:function(){this.markClean()},getDocumentState:function(){return this._identifierServiceDataObject.getDocumentState()},getIdentifierLocations:function(e,t,i){return this._identifierServiceDataObject.getIdentifierLocations(e,t,i)},getAllNonLocalVariables:function(){return this._identifierServiceDataObject.getAllNonLocalVariables()},isIdentifierValidForRename:function(e,t,i){return this._identifierServiceDataObject.isIdentifierValidForRename(e,t,i)},isSharedVariable:function(e,t,i){return this._identifierServiceDataObject.isSharedVariable(e,t,i)},isGlobalVariable:function(e,t,i){return this._identifierServiceDataObject.isGlobalVariable(e,t,i)},isPersistentVariable:function(e,t,i){return this._identifierServiceDataObject.isPersistentVariable(e,t,i)},generateUnusedVariableName:function(e,t,i,n){return this._identifierServiceDataObject.generateUnusedVariableName(e,t,i,n)},getIdentifierDefinition:function(e,t,i){return this._identifierServiceDataObject.getIdentifierDefinition(e,t,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7076),i(203),i(205),i(7077)],o=i.dj.d(n,(function(e,t,i,n){return t(i,{requires:function(){return{createInstance:["rtc.id","rtc.editorservice.synchronizationmodel"]}},createInstance:function(t,i){var o=e(t);return new n(o,t,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1345),i(229),i(1087)],o=i.dj.d(n,(function(e,t,i){function n(e){return e}function o(e){if(e&&Object.getOwnPropertyNames(e).length){if(e.hasOwnProperty("documentState")&&e.hasOwnProperty("error")&&(e.hasOwnProperty("successResult")||e.hasOwnProperty("errorResult")))return!0;if(e.failure)return!0}return!1}function r(r,a,s,l,c){var d=new e(c);if(function(e,t){if(e&&t)return e>=0&&function(e){if(e.startLine<=0||!Number.isInteger(e.startLine))return!1;if(e.startColumn<=0||!Number.isInteger(e.startColumn))return!1;if(e.endLine<=0||!Number.isInteger(e.endLine))return!1;if(e.endColumn<=0||!Number.isInteger(e.endColumn))return!1;return!0}(t);return!1}(r,a)){var u=t.generateUuid(),h={editorId:s,documentState:r,endLine:a.endLine,endColumn:a.endColumn,startLine:a.startLine,startColumn:a.startColumn,channelId:u,type:l},p="/codeanalyzer/responseChannel/refactoring/"+u;return d.requestData("/codeanalyzer/requestChannel/refactoring",p,n,o,h)}return Promise.reject(i.invalidInput)}return function(e,t){return{refactorToLocalFunction:function(i,n){return r(i,n,e,"local",t)},refactorToExternalFunction:function(i,n){return r(i,n,e,"external",t)}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t,i){this._refactoringService=e,this._synchronizationModel=i,this._rtcId=t},refactorToLocalFunction:function(e){return this._refactoringService.refactorToLocalFunction(this._synchronizationModel.getLastPendingCodeSynchronizationState(),e)},refactorToExternalFunction:function(e){return this._refactoringService.refactorToExternalFunction(this._synchronizationModel.getLastPendingCodeSynchronizationState(),e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7079)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.linenumberservice","matlab.languageanalysis.filestructureservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{constructor:function(e,t){this._lineNumberService=e,this._fileStructureService=t,this.own(n.after(this._fileStructureService,"onDataUpdated",this._handleDataUpdate.bind(this)))},_handleDataUpdate:function(){var e=this._fileStructureService.getAllSections().map((function(e){return this._convertToDocumentData(e)}),this);this.onSectionLocationUpdate(e,this._fileStructureService.hasBlockStructureError())},_convertToDocumentData:function(e){var i=t.clone(e);return i.startLine=this._lineNumberService.getLineNumberFromCodeLineNumber(e.startLine),i.endLine=this._lineNumberService.getLineNumberFromCodeLineNumber(e.endLine),i},onSectionLocationUpdate:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7081)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.editorservice.synchronizationmodel","rtc.linenumberservice","rtc.code.codechange","matlab.languageanalysis.filestructureservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(845),i(207),i(7082),i(1944),i(7083)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([o,n],{constructor:function(e,t,n,o){this._synchronizationModel=e,this._lineNumberService=t,this._fileStructureService=o,this._functionDeclarations=null,this.own(i.after(this._fileStructureService,"onDataUpdated",this._handleDataUpdate.bind(this))),this.initializeSynchronizable(n)},onUpdate:function(){this._synchronizationModel.getLastPendingCodeSynchronizationState()===this._fileStructureService.getDocumentState()&&this.markClean()},_handleDataUpdate:function(){this._functionDeclarations=null,this.onUpdate()},hasSyntaxError:function(){return!!this.isReady()&&this._fileStructureService.hasTreeError()},getLocalFunctionsDeclarations:function(){return this.isReady()?this._transformData(this._fileStructureService.getAllLocalFunctions()):[]},getTopLevelFunctionDeclarations:function(){return this.getFunctionDeclarations().filter((function(e){return e.isTopLevelFunction()}))},getMainFunctionDeclaration:function(){if(this.isReady()){var e=this._fileStructureService.getMainFunctionDeclaration();if(e){var t=this._convertFunctionInfoToDocumentLines(e);return t.declarationEndLine=this._lineNumberService.getLineNumberFromCodeLineNumber(t.declarationEndLine)+1,new s(t)}}return null},getAllFunctionDeclarations:function(){return this.getFunctionDeclarations().map((function(e){return a.flattenFunctionDeclaration(e)})).reduce((function(e,t){return e.concat(t)}),[])},getFunctionDeclarations:function(){return this._functionDeclarations||(this._functionDeclarations=this._buildFunctionDeclarations()),this._functionDeclarations},getFunctionDeclarationByName:function(e,t){var i=this._getLocalFunctionInfoByName(e);return i||((t=t||!1)?this._getFirstFunctionDeclarationByName(e):null)},isLineInFunction:function(e){return!!this._getFunctionInfoByLine(e)},_buildFunctionDeclarations:function(){if(this.isReady()){var e=this._fileStructureService.getAllFunctions();return"FunctionFile"===this._fileStructureService.getFileType()&&(e[0].isTopLevelFunction=!0),this._transformData(e)}return[]},_transformData:function(e){var t=[];return e.forEach((function(e){var i=this._convertFunctionInfoToDocumentLines(e);t.push(new r(i))}),this),t},_convertFunctionInfoToDocumentLines:function(e){var i=t.clone(e);return this._convertFunctionInfoToDocumentLinesHelper(i)},_convertFunctionInfoToDocumentLinesHelper:function(e){e.startLine=this._lineNumberService.getLineNumberFromCodeLineNumber(e.startLine)+1,e.endLine=this._lineNumberService.getLineNumberFromCodeLineNumber(e.endLine)+1;var t=e.functions;return t&&(e.functions=t.map(function(e){return this._convertFunctionInfoToDocumentLinesHelper(e)}.bind(this))),e},_getFirstFunctionDeclarationByName:function(e){var t=null;return this.getAllFunctionDeclarations().some((function(i){return i.getName()===e&&(t=i,!0)})),t},_getLocalFunctionInfoByName:function(e){var t=null;return this.getLocalFunctionsDeclarations().some((function(i){if(i.getName()===e)return t=i,!0})),t},_getFunctionInfoByLine:function(e){var t=null;return this.getFunctionDeclarations().some((function(i){return e>=i.getStartLine()&&e<=i.getEndLine()&&(t=i,!0)})),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2428)],o=i.dj.d(n,(function(e,t){return e(t,{getNestedFunctionDeclarations:function(){var e=this.constructor;return this._data.functions.map((function(t){return new e(t)}))},equals:function(e){if(this===e)return!0;if(!(this.getName()===e.getName()&&this.getStartLine()===e.getStartLine()&&this.getStartColumn()===e.getStartColumn()&&this.getEndLine()===e.getEndLine()&&this.getEndColumn()===e.getEndColumn()&&this.isTopLevelFunction()===e.isTopLevelFunction()))return!1;var t=this.getNestedFunctionDeclarations(),i=e.getNestedFunctionDeclarations();if(t.length===i.length){for(var n=0;n<t.length;n++)if(!t[n].equals(i[n]))return!1;return!0}return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2428)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._data=e},isTopLevelFunction:function(){return!0},getDeclarationEndLine:function(){return this._data.declarationEndLine},getInputArgumentNames:function(){return this._data.inputs.map((function(e){return e.name}))},getOutputArgumentNames:function(){return this._data.outputs.map((function(e){return e.name}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7085)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.linenumberservice","rtc.code.codechange","matlab.languageanalysis.filestructureservice"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(845),i(207),i(913),i(7086)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n,i],{constructor:function(e,i,n){this._lineNumberService=e,this._fileStructureServiceWrapper=n,this.own(t.after(this._fileStructureServiceWrapper,"onDataUpdated",this._handleDataUpdate.bind(this))),this.initializeSynchronizable(i),this._dataCache=null},_handleDataUpdate:function(){this._dataCache=null,this.onBlocksUpdated()},onBlocksUpdated:function(){this.markClean()},hasSyntaxError:function(){return this._fileStructureServiceWrapper.hasTreeError()},hasBlockStructureError:function(){return this._fileStructureServiceWrapper.hasBlockStructureError()},getBlockLocations:function(){if(!this._dataCache){var e=this._fileStructureServiceWrapper.getBlockLocations();this._dataCache=this._flattenTree(e)}return this._dataCache},isLineInFunction:function(e){var t=this._fileStructureServiceWrapper.getBlockLocations();return null!==this._findOutermostBlockOfType(t,e,[o.FUNCTION_DEFINITION])},getInnermostLoop:function(e){var t=this._fileStructureServiceWrapper.getBlockLocations();return this._findInnermostBlockOfType(t,e,[o.FOR_LOOP,o.WHILE_LOOP])},getOutermostLoop:function(e){var t=this._fileStructureServiceWrapper.getBlockLocations();return this._findOutermostBlockOfType(t,e,[o.FOR_LOOP,o.WHILE_LOOP])},getInnermostBlockOfType:function(e,t){var i=t?[t]:[],n=this._fileStructureServiceWrapper.getBlockLocations();return this._findInnermostBlockOfType(n,e,i)},_findInnermostBlockOfType:function(e,t,i){for(var n=null,o=0;o<e.length;o+=1){var r=e[o];if(r.startLine<=t&&r.endLine>=t){var a=this._findInnermostBlockOfType(r.blocks,t,i);a?n=a:this._isBlockOfType(r,i)&&(n=r);break}}return n},_findOutermostBlockOfType:function(e,t,i){for(var n=0;n<e.length;n+=1){var o=e[n];if(o.startLine<=t&&o.endLine>=t)return this._isBlockOfType(o,i)?o:this._findOutermostBlockOfType(o.blocks,t,i)}return null},_isBlockOfType:function(e,t){return 0===t.length||t.indexOf(e.type)>=0},_flattenTree:function(e){return e.reduce(function(e,t){var i=this._flattenNode(t);return e.concat(i)}.bind(this),[])},_flattenNode:function(e){this._convertToDocumentData(e);var t=r.createBlock(e);return e.blocks.reduce(function(e,t){return e.concat(this._flattenNode(t))}.bind(this),[t])},_convertToDocumentData:function(e){e.startLine=this._lineNumberService.getLineNumberFromCodeLineNumber(e.startLine)+1,e.endLine=this._lineNumberService.getLineNumberFromCodeLineNumber(e.endLine)+1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(917)],o=i.dj.d(n,(function(e){return{create:function(t){return new(0,e.REGISTRY[t.type])(t,t.children?this.createMultiple(t.children):null)},createBlock:function(t){return new(0,e.BLOCK_REGISTRY[t.type])(t,t.blocks?this.createMultipleBlocks(t.blocks):null)},createMultipleBlocks:function(e){return e.map(this.createBlock,this)},createMultiple:function(e){return e.map(this.create,this)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7088)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.position.controller"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(266)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._positionController=e},getRangeForMTreeNode:function(e){var t=this._makePosition(e.getStartLine(),e.getStartColumn()),n=this._makePosition(e.getEndLine(),e.getEndColumn());return new i(t,n)},_makePosition:function(e,t){return this._positionController.createPositionAtLineColumn(e-1,t-1,!1,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7090)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document.info","rtc.document.eventcache"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(208),i(207),i(249),i(260),i(1581),i(7092),i(7093),i(324),i(1987)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){const h=e(o,{constructor:function(e,t,i){this._internalDocument=e,this._documentInfo=t,this._documentEventCache=i,this._lexer=u,this._lexer.initialize(),this._maxTokenizationLineLength=1e4,this.own(n.after(e,"onDocumentReset",this._handleDocumentReset.bind(this),!1,n.priority.INFRASTRUCTURE)),this.own(n.after(e,"onDocumentChanged",function(e){this._handleDocumentChanged(e)}.bind(this),!0,n.priority.INFRASTRUCTURE))},onInitialLinesLexed:function(e){},onInsert:function(e,t,i){},onDelete:function(e,t,i){},onUpdate:function(e,t){},getInitialLexerState:function(){return new c(this._lexer.make_lex_state(),!1)},getNumberOfLines:function(){return this._internalDocument.getMaxLineNumber()},setMaxTokenizationLineLength:function(e,t){this._maxTokenizationLineLength!==e&&(this._maxTokenizationLineLength=e,t&&this._lexInitialCode())},lexLine:function(e,t,n){if(i.assert(void 0!==e,"codeToLex should never be undefined"),e.length>this._maxTokenizationLineLength)return new l(new s(e,[e.length,d.TOKENS.ID]),new c(n.getState(),n.isExecutable()));var o=e.length+3,r=n.getState(),a=[],u=this._lexer.lex_line(a,o,r,e,e.length);return-1===u.numTokens&&(o*=2,u=this._lexer.lex_line(a,o,r,e,e.length)),new l(new s(e,h._parseTokens(a)),new c(u.newState,u.isExecutable))},createBlankLexicalInfoForLine:function(e){return new l(new s("",[]),this.getInitialLexerState())},_handleDocumentReset:function(){this._lexInitialCode()},_lexInitialCode:function(){for(var e=this._documentInfo.getCodeText().split("\n"),t=[],i=this.getInitialLexerState(),n=0;n<e.length;n++){var o=e[n],r=n!==e.length-1?o+"\n":o,a=this.lexLine(r,n,i);t.push(a),i=a.getNewState()}this.onInitialLinesLexed(t)},_handleDocumentChanged:function(e){var t=this._getEventsToProcess(e);if(t.length){var i,n=this._documentEventCache.getLengthChangeEvent(),o=(i=t.length===e.length?this._documentEventCache.finalLineRangeFromEvents():a.finalLineRangeFromEvents(t)).startLine,r=i.endLine;null!==n?this._isInsert(n)?this.onInsert(o,r,n.change):this.onDelete(o,r,-n.change):this.onUpdate(o,r)}},_isInsert:function(e){return e.change>0},_getEventsToProcess:function(e){return e.filter((function(e){return e.type!==r.READONLY_STATE_CHANGE_EVENT}))}});return h._parseTokens=function(e){let t=0;const i=[];for(let n=0,o=e.length;n<o;n++){const o=e[n],r=255&o;t+=o>>8,i.push(t,r)}return i},h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return class{constructor(e,t,i,n,o){this._index=e,this._type=t,this._offset=i,this._length=n,this._value=o}equals(e){return e&&this.getIndex()===e.getIndex()&&this.getType()===e.getType()&&this.getColumn()===e.getColumn()&&this.getLength()===e.getLength()&&this.getValue()===e.getValue()}getIndex(){return this._index}getType(){return this._type}getColumn(){return this._offset}getLength(){return this._length}getValue(){return this._value}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t){this._tokenInfo=e,this._matlabState=t},getNewState:function(){return this._matlabState},getTokenInfo:function(){return this._tokenInfo}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7094)],o=i.dj.d(n,e=>class{constructor(t,i){this._rawState=e.cloneState(t),this._isExecutable=i}getState(){return this._rawState}isExecutable(){return this._isExecutable}isEqual(t){return e.areStatesEqual(this.getState(),t.getState())&&this.isExecutable()===t.isExecutable()}isContinuation(){return this._rawState.contin}haveEnds(){return this._rawState.haveends}doFunctionsHaveEnds(){return this._rawState.funchaveends}isInNestedFunction(){return this._rawState.infun>1}},e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{cloneState:function(e){var t={};return t.cstate=e.cstate,t.lstate=e.lstate,t.indent=e.indent,t.infun=e.infun,t.npars=e.npars,t.ncoms=e.ncoms,t.ldsv=e.ldsv,t.atlp=e.atlp,t.contin=e.contin,t.elist=e.elist,t.haveends=e.haveends,t.funchaveends=e.funchaveends,t.begin=e.begin,t.spare=e.spare,t.stack=e.stack,t.valParseState=e.valParseState,t.fcnLineParseState=e.fcnLineParseState,t},areStatesEqual:function(e,t){return e.lstate===t.lstate&&e.cstate===t.cstate&&e.indent===t.indent&&e.atlp===t.atlp&&e.begin===t.begin&&e.infun===t.infun&&e.ldsv===t.ldsv&&e.ncoms===t.ncoms&&e.elist===t.elist&&e.npars===t.npars&&e.stack===t.stack&&e.haveends===t.haveends&&e.funchaveends===t.funchaveends&&e.fcnLineParseState===t.fcnLineParseState&&e.valParseState===t.valParseState}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7096)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.document.info","language.interface.lexer"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(208),i(207),i(237)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e(null,{constructor:function(e,t,i){this._startLine=e,this._endLine=t,this._eventEndLine=i},getStartLine:function(){return this._startLine},getEndLine:function(){return this._endLine},getEventEndLine:function(){return this._eventEndLine},getExtent:function(){return this.getEndLine()-this.getStartLine()+1}});return e(o,{_lineHandles:[],constructor:function(e,i,o){this._internalDocument=e,this._documentInfo=i,this._matlabLexer=o,this._initialize(),this.own(n.after(o,"onInitialLinesLexed",t.hitch(this,"_handleInitialLinesLexed"),!0)),this.own(n.after(o,"onInsert",t.hitch(this,"_handleOnInsert"),!0)),this.own(n.after(o,"onDelete",t.hitch(this,"_handleOnDelete"),!0)),this.own(n.after(o,"onUpdate",t.hitch(this,"_handleOnUpdate"),!0))},_initialize:function(e){this._lineHandles=[this._matlabLexer.getInitialLexerState()],e&&this._storeInitialStates(e)},resetTokenStateForLine:function(e){var t=this._matlabLexer.getInitialLexerState();this._replaceLineHandle(e-1,t)},getLexStateForLine:function(e){return this._lineHandles[e]},getMatlabStateAfterLexingLine:function(e){return this._lineHandles[e+1]},isLineContinuation:function(e){return e.isContinuation()},hasLineContinuation:function(e){return this.isLineContinuation(this.getMatlabStateAfterLexingLine(e))},getFirstExecutableLine:function(){return this.getNextExecutableLine(0)},getNextExecutableLine:function(e){for(var t;t=this.getMatlabStateAfterLexingLine(e);){if(t.isExecutable())return e;e++}return-1},isLineExecutable:function(e){var t=this.getMatlabStateAfterLexingLine(e);return!!t&&t.isExecutable()},haveEnds:function(e){return e.haveEnds()},doFunctionsHaveEnds:function(){return this._lineHandles[this._lineHandles.length-1].doFunctionsHaveEnds()},getSyntacticalEndOfLine:function(e){for(var t=this._matlabLexer.getNumberOfLines(),i=e;i+1<t&&this.hasLineContinuation(i);)i++;return i},onLinesInserted:function(e,t,i){this._assertStateInfoLength()},onLinesDeleted:function(e,t){this._assertStateInfoLength()},onLinesUpdated:function(e,t){this._assertStateInfoLength()},onLinesInitialized:function(e,t){this._assertStateInfoLength()},_handleInitialLinesLexed:function(e){this._initialize(e);var t=this._matlabLexer.getNumberOfLines()-1,i=new a(0,t,t);this.onLinesInitialized(i,e)},_storeInitialStates:function(e){e.forEach((function(e,t){this._replaceLineHandle(t,e.getNewState())}),this)},_handleOnInsert:function(e,t,i){let n=[];for(let i=e;i<=t;i++){let t=this._matlabLexer.createBlankLexicalInfoForLine(e);n.push(t.getNewState())}var o=n.length-i,a=[];for(let t=0;t<n.length;t++)t<o?this._replaceLineHandle(t+e,n[t]):a.push(n[t]);var s=e+1;this._lineHandles=r.insertArrayAt(a,this._lineHandles,s+1);const l=this._updateLines(e,t),c=l.lexicalInfoForLines.slice(0,i);return this.onLinesInserted(e,i,c),this.onLinesUpdated(l.lineRange,l.lexicalInfoForLines),l.lineRange},_createLexicalInfoForLine:function(e){var t=this.getLexStateForLine(e);return this._createLexicalInfoUsingPreviousHandle(e,t)},_createLexicalInfoUsingPreviousHandle:function(e,t){var i=this._getCodeTextOnLine(e);return this._matlabLexer.lexLine(i,e,t)},_replaceLineHandle:function(e,t){e+1<this.getLineHandles().length?this._lineHandles[e+1]=t:this._lineHandles.push(t)},_handleOnDelete:function(e,t,i){this._lineHandles.splice(e+1,i),this.onLinesDeleted(e,i);const n=this._updateLines(e,t);this.onLinesUpdated(n.lineRange,n.lexicalInfoForLines)},_handleOnUpdate:function(e,t){const i=this._updateLines(e,t);this.onLinesUpdated(i.lineRange,i.lexicalInfoForLines)},_updateLines:function(e,t){return this._rippleThroughLines(e,t)},_rippleThroughLines:function(e,t){for(var i,n=e,o=!1,r=-1,s=!1,l=[],c=this._matlabLexer.getNumberOfLines();!o;){var d=this._createLexicalInfoForLine(n);l.push(d),i=d.getNewState(),(s=this._isStateEquivalent(n,i))||(r=n,this._replaceLineHandle(n,i)),n>t&&s&&(o=!0),++n===c&&(o=!0)}return(-1===r||r<t)&&(r=t),{lineRange:new a(e,Math.min(r+1,c-1),Math.min(t+1,c-1)),lexicalInfoForLines:l}},_isStateEquivalent:function(e,t){var i=this.getMatlabStateAfterLexingLine(e);return!!i&&i.isEqual(t)},getLineHandles:function(){return this._lineHandles},_getCodeTextOnLine:function(e){var t=this._internalDocument.getLineNode(e);return e!==this._internalDocument.getMaxLineNumber()-1?this._getCodeFromLineNode(t)+"\n":this._getCodeFromLineNode(t)},_getCodeFromLineNode:function(e){return e?e.getCodeText():""},_assertStateInfoLength:function(){var e=this._matlabLexer.getNumberOfLines()+1,t=this.getLineHandles().length,n=t-e;i.assert(0===n,"Incorrect number of lexical states. Expected: "+e+", Actual: "+t+", Diff: "+n)},destroy:function(){this.inherited(arguments),this._lineHandles=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7098)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["language.interface.lexer","matlab.lexer.statemanager"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(214),i(209),i(2429),i(237),i(1581),i(1123),i(324),i(320)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return class extends n{constructor(i,n){super(),this._matlabLexer=i,this._matlabStateManager=n,this._initialize(),this.own(t.after(i,"onInitialLinesLexed",e.hitch(this,"_handleInitialLinesLexed"),!0)),this.own(t.after(n,"onLinesInserted",e.hitch(this,"_handleLinesInserted"),!0)),this.own(t.after(n,"onLinesDeleted",e.hitch(this,"_handleLinesDeleted"),!0)),this.own(t.after(n,"onLinesUpdated",e.hitch(this,"_handleLinesUpdated"),!0))}_initialize(e){this._tokens=[new r("",[0,s.TOKENS.IEOL])],e&&this._storeInitialTokens(e)}onTokensUpdated(e){}getTokens(){return this._tokens}getTokensOnLine(e){const t=this._tokens[e];return t?t.map(t=>this._createToken(t,e)):null}getNumberOfTokensOnLine(e){return this._tokens[e].getNumTokens()}getFirstTokenOnLine(e){var t=this._tokens[e];if(!t)return null;var i=t.getToken(0);return!i||l.isEndOfLineToken(i)?null:this._createToken(i,e)}getTokenOnLineColumn(e,t){var i=this._tokens[e];if(!i)return null;var n=i.getTokenAtColumn(t);return!n||l.isEndOfLineToken(n)?null:this._createToken(n,e)}getNextTokenOf(e){var t=e.getLine(),i=e.getIndex(),n=this._tokens[t].getToken(i+1);return!n||l.isEndOfLineToken(n)?null:this._createToken(n,t)}getPreviousTokenOf(e,t){const i=this.iterateTokens(e,t,!0);for(;i&&i.next();)if(!l.isEndOfLineToken(i))return i.clone();return null}isInComment(e,t){var i=this.getTokenOnLineColumn(e,t);return!!i&&l.isCommentToken(i)}isInBlockComment(e,t){var i=this.getFirstOnLineTokenToPassCheck(e,l.isBlockCommentToken);return!(!i||!(i.getColumn()<t||i.getType()===s.TOKENS.BLKCOM||i.getType()===s.TOKENS.BLKEND))}willTextAtLineColumnBeComment(e,t){var i=this._getCommentStartColumnOnLineComment(e);if(i>-1)return t>i;var n=this.getFirstTokenOnLine(e);return!!n&&l.isCommentToken(n)}_getCommentStartColumnOnLineComment(e){let t=-1;const i=this._tokens[e];return i?(i.some(e=>{const i=e.getColumn();return l.isLineCommentToken(e)||l.isSectionTitleToken(e)?(t=i,!0):l.isDotDotDotToken(e)?(t=i+2,!0):void 0}),t):t}isInString(e,t){return!!t&&this._isTokenAtLineColumnOfType(e,t,l.isMatlabStringToken)}getCommentTokenFromLine(e){return this.getFirstOnLineTokenToPassCheck(e,l.isCommentToken)}getPragmaTokenFromLine(e){return this.getFirstOnLineTokenToPassCheck(e,l.isPragmaCommentToken)}getAllBlockTokens(){const e=[];return this.getTokens().forEach((function(t,i){t.forEach(t=>{(l.isTokenStartOfBlock(t)||l.isTokenEndOfBlock(t))&&e.push(this._createToken(t,i))})}),this),e}isUnmatchedStartToken(e){var t=this.getAllBlockTokens(),i=!1,n=[],o=!0;if(t.length>0&&l.isFunctionToken(t[0])){var r=t[0],a=this._matlabStateManager.getFirstExecutableLine(),s=r.getLine();if(r.equals(e)&&a>=s&&(a-s>1||-1!==this._matlabStateManager.getNextExecutableLine(a+1)))return!1;var c=this._matlabStateManager.getLexStateForLine(this._matlabLexer.getNumberOfLines());this._matlabStateManager.haveEnds(c)||(t=t.filter((function(e){return!l.isFunctionToken(e)})))}return t.some((function(t){if(e.equals(t))i=!0;else if(l.isTokenStartOfBlock(t))n.push(t);else if(n.length>0)n.pop();else if(i)return o=!1,!0})),o}findStartOfBlockOnLine(e){let t=0,i=null;return this._tokens[e].someFromLast(e=>{if(l.isTokenStartOfBlock(e)){if(0===t)return i=e,!0;t-=1}else l.isTokenEndOfBlock(e)&&(t+=1)}),i?this._createToken(i,e):null}_handleInitialLinesLexed(e){this._initialize(e);for(var t=new Array(this._matlabLexer.getNumberOfLines()),i=0;i<t.length;i++)t[i]=i;this.onTokensUpdated(new a(t))}_storeInitialTokens(e){e.forEach((function(e,t){this._replaceTokensOnLine(t,e.getTokenInfo())}),this)}_handleLinesInserted(e,t,i){for(var n=this._getTokenInfoFromLexicalInfo(i),r=n.length-t,a=[],s=0;s<n.length;s++)s<r?this._replaceTokensOnLine(s+e,n[s]):a.push(n[s]);this._tokens=o.insertArrayAt(a,this._tokens,e+1),this._assertTokenInfoLength()}_handleLinesDeleted(e,t){this._tokens.splice(e+1,t),this._assertTokenInfoLength()}_handleLinesUpdated(e,t){for(var i=this._getTokenInfoFromLexicalInfo(t),n=e.getStartLine(),o=e.getEndLine(),r=e.getEventEndLine(),s=n,l=[];s<=o;){var c=i[s-n],d=!c.equals(this._tokens[s]);d&&(this._tokens[s]=c),(s<=r||d)&&l.push(s),s++}this.onTokensUpdated(new a(l))}_replaceTokensOnLine(e,t){e<this.getTokens().length?this._tokens[e]=t:this._tokens.push(t)}_isTokenAtLineColumnOfType(e,t,i){var n=this.getTokenOnLineColumn(e,t);return!!n&&i(n)}getFirstOnLineTokenToPassCheck(e,t){const i=this._tokens[e];if(!i)return null;let n=null;return i.some(e=>{if(t(e))return n=e,!0}),this._createToken(n,e)}getTokensOnLineToPassCheck(e,t){const i=this._tokens[e];if(!i)return[];const n=[];return i.forEach(i=>{t(i)&&n.push(this._createToken(i,e))}),n}lineHasTokenToPassCheck(e,t){const i=this._tokens[e];return!!i&&i.some(e=>t(e))}_getTokenInfoFromLexicalInfo(e){return e.map((function(e){return e.getTokenInfo()}))}_assertTokenInfoLength(){var e=this._matlabLexer.getNumberOfLines(),t=this.getTokens().length,n=t-e;i.assert(0===n,"Incorrect number of token objects. Expected: "+e+", Actual: "+t+", Diff: "+n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1582)],o=i.dj.d(n,(function(e){return class{constructor(e,t,i,n){this._backward=e,this._tokensInfoArray=t,this._currentTokensInfo=t[i],this._currentLine=i,this._currentIndex=n}next(){for(;this._backward?this._nextBackward():this._nextForward();)if(this._currentIndex>=0)return!0;return!1}_nextForward(){return this._currentIndex<this._getMaxTokenIndex()?(this._currentIndex++,!0):this._currentLine<this._getMaxLineIndex()&&(this._currentLine++,this._currentTokensInfo=this._tokensInfoArray[this._currentLine],this._currentIndex=Math.min(0,this._getMaxTokenIndex()),!0)}_nextBackward(){return this._currentIndex>0?(this._currentIndex--,!0):this._currentLine>0&&(this._currentLine--,this._currentTokensInfo=this._tokensInfoArray[this._currentLine],this._currentIndex=this._getMaxTokenIndex(),!0)}hasNext(){return this._backward?this._currentIndex>0||this._currentLine>0:this._currentIndex<this._getMaxTokenIndex()||this._currentLine<this._getMaxLineIndex()}skipLine(){this._backward?this._currentIndex=0:this._currentIndex=this._getMaxTokenIndex()}getIndex(){return this._currentIndex}getToken(){return this._currentTokensInfo.getToken(this._currentIndex)}getType(){return this._currentTokensInfo.getType(this._currentIndex)}getValue(){return this._currentTokensInfo.getValue(this._currentIndex)}getLength(){return this._currentTokensInfo.getLength(this._currentIndex)}getLine(){return this._currentLine}getColumn(){return this._currentTokensInfo.getColumn(this._currentIndex)}equals(e){return e&&this._currentLine===e.getLine()&&this.getToken().equals(e.getToken())}getPositionInfo(){return{line:this.getLine(),column:this.getColumn()}}clone(){return e.createToken(this.getToken(),this._currentLine)}isAtStartOfLine(){return 0===this._currentIndex}isAtEndOfLine(){return this._currentIndex>=this._getMaxTokenIndex()-1}_getMaxTokenIndex(){return this._currentTokensInfo.getNumTokens()-1}_getMaxLineIndex(){return this._tokensInfoArray.length-1}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7101)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.linenumberservice","matlab.languageanalysis.identifierservice","rtc.code.codechange"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(845),i(207),i(282),i(237),i(1983)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([o,n],{constructor:function(e,t,n,o){this._internalDocument=e,this._identifierService=n,this._lineNumberService=t,this.own(i.after(this._identifierService,"onDataUpdated",this._handleVariableUpdate.bind(this))),this._variableLocationCache=r.createMap(),this._isListeningToServer=!0,this._variableBeingChanged=null,this.initializeSynchronizable(o)},onDisable:function(){},onEnable:function(){},_handleVariableUpdate:function(){this._isListeningToServer&&this._identifierService.isReady()&&this.onVariablesUpdated()},onVariablesUpdated:function(){this.markClean()},onCacheUpdated:function(){},_isDataUpToDate:function(){return this._identifierService.isReady()},getVariableInstances:function(e){if(!e||this._isListeningToServer&&!this._isDataUpToDate())return[];var t=e.text,i=this._lineNumberService.getCodeLineNumberFromLineNumber(e.startLineCol.line),n=e.startLineCol.column+1,o=this._getModifiedVariableLocationCache(e);if(o)return o;var r=this._identifierService.getIdentifierLocations(i,n,t);try{return this._convertToCursorPositions(r)}catch(e){return[]}},getNonlocalVariableInstances:function(){if(!this._isDataUpToDate())return null;var e=[];return this._isListeningToServer&&this._isDataUpToDate()&&(e=this._identifierService.getAllNonLocalVariables()),this._convertToCursorPositions(e)},_convertToCursorPositions:function(e){return e?e.map((function(e){return{startLine:this._lineNumberService.getLineNumberFromCodeLineNumber(e.startLine),startColumn:e.startColumn-1,endLine:this._lineNumberService.getLineNumberFromCodeLineNumber(e.endLine),endColumn:e.endColumn-1+1}}),this):[]},getNonLocalInstanceData:function(e){if(this._isListeningToServer&&this._isDataUpToDate()){var t=this._internalDocument.getPositionForLineColumn(e.line,e.column),i=a.getWordAtPosition(this._internalDocument,t);return i?this._createNonLocalInstanceData(i):null}return null},_createNonLocalInstanceData:function(e){var t=e.text,i=this._lineNumberService.getCodeLineNumberFromLineNumber(e.startLineCol.line),n=e.startLineCol.column+1,o=this._identifierService.isSharedVariable(i,n,t),r=this._identifierService.isGlobalVariable(i,n,t),a=this._identifierService.isPersistentVariable(i,n,t);return o||r||a?{isGlobal:r,isPersistent:a,isUsedAcrossFunctions:o}:null},setModifiedVariableLocationCache:function(e,t){this._variableLocationCache.set(this._getKeyFromWordData(e),t),this.onCacheUpdated()},_getModifiedVariableLocationCache:function(e){var t;return this._variableBeingChanged?(t=this._getKeyFromWordData(this._variableBeingChanged),this._variableLocationCache.get(t)):(t=this._getKeyFromWordData(e),this._variableLocationCache.get(t))},_getKeyFromWordData:function(e){return e.text+"_"+e.startLineCol.line+"_"+e.startLineCol.column},generateUnusedVariableName:function(e,t,i,n){if(n=n||[],t===i&&-1===this._lineNumberService.getCodeLineNumberFromLineNumber(t))return this._identifierService.generateUnusedVariableName(e,n);var o=this._lineNumberService.getCodeLineNumberAtOrAfterLineNumber(t),r=this._lineNumberService.getCodeLineNumberAtOrBeforeLineNumber(i);return this._identifierService.generateUnusedVariableName(e,n,o,r)},getVariableThatOverlapsRange:function(e){if(!this._overwriteCacheWithUpToDateEDS())return null;var t=e.text,i=this._lineNumberService.getCodeLineNumberFromLineNumber(e.startLineCol.line),n=e.startLineCol.column+1,o=this._identifierService.getIdentifierLocations(i,n,t);if(0===o.length)return null;var r=new s(e.startLineCol,e.endLineCol,t);return o.forEach((function(e){e.startLine===i&&e.startColumn===n||r.addOtherInstance(this._lineNumberService.getLineNumberFromCodeLineNumber(e.startLine),e.startColumn-1,this._lineNumberService.getLineNumberFromCodeLineNumber(e.endLine),e.endColumn)}),this),r.isAssignment=this._identifierService.isIdentifierValidForRename(i,n,t),r},getVariableBeingChangedText:function(){return this._variableBeingChanged?this._variableBeingChanged.text:""},_overwriteCacheWithUpToDateEDS:function(){return!(this._isListeningToServer&&!this._isDataUpToDate())},stopListeningToEDS:function(e){this._isListeningToServer&&(this._variableBeingChanged=e,this._isListeningToServer=!1)},startListeningToEDS:function(){this._isListeningToServer||(this._variableLocationCache.clear(),this._variableBeingChanged=null,this._isListeningToServer=!0,this.onVariablesUpdated())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7103),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.linenumberservice","matlab.lexer.statemanager"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{NO_LINE:-1,constructor:function(e,n){this._lineNumberService=e,this._matlabStateManager=n,this.own(i.after(this._matlabStateManager,"onLinesUpdated",t.hitch(this,"_handleLinesStateUpdated"),!0)),this.own(i.after(this._matlabStateManager,"onLinesInitialized",t.hitch(this,"_handleLinesStateUpdated"),!0))},isCodeLineExecutable:function(e){var t=this._lineNumberService.getLineNumberFromCodeLineNumber(e);return this._matlabStateManager.isLineExecutable(t)},onUpdate:function(){},getFirstExecutableCodeLine:function(){var e=this._matlabStateManager.getFirstExecutableLine();return-1===e?this.NO_LINE:this._lineNumberService.getCodeLineNumberFromLineNumber(e)},getNextExecutableCodeLine:function(e){var t=this._lineNumberService.getLineNumberFromCodeLineNumber(e),i=this._matlabStateManager.getNextExecutableLine(t+1);return-1===i?this.NO_LINE:this._lineNumberService.getCodeLineNumberFromLineNumber(i)},_handleLinesStateUpdated:function(e,t){this.onUpdate()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7105),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.view.id","rtc.viewselector","rtc.rtcview"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t,i){this._viewId=e,this._viewSelector=t,this._rtcView=i},isCurrentView:function(){return this._viewId===this._viewSelector.getCurrentViewId()},getRTCView:function(){return this._rtcView}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7107)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:[]}},createInstance:function(){return new n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){var n=["rtc_move_left","rtc_move_right","rtc_move_up","rtc_move_down","rtc_insert_break","rtc_delete_backward"];return e(i,{constructor:function(){this._blacklistedActions={},n.forEach((function(e){this.addAction(e)}),this)},addAction:function(e){this._blacklistedActions[e]=!0},removeAction:function(e){delete this._blacklistedActions[e]},isAdded:function(e){return!0===this._blacklistedActions[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7109),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.document.info"]}},createInstance:function(e,i){return new t(e,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(212),i(203),i(221),i(204),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r){return i(r,{constructor:function(i,n){this._internalDocument=i,this._documentInfo=n,this._isLoaded=!1,this._promise=new t,this._listeners=[e.after(this._internalDocument,"onDocumentChanged",o.hitch(this,"_handleDocumentChanged")),e.after(this._internalDocument,"onDocumentReset",o.hitch(this,"_handleDocumentReset"))]},whenDocumentLoadedWithText:function(e){this._promise.then(e,(function(e){}))},onDocumentLoadedWithText:function(){},isDocumentLoadedWithText:function(){return this._isLoaded},_handleDocumentChanged:function(){this._documentInfo.getText()&&this._flushEvents()},_handleDocumentReset:function(){this._documentInfo.getText()&&this._flushEvents()},_flushEvents:function(){this._isLoaded=!0,this._promise.resolve(),this.onDocumentLoadedWithText(),this._cleanupListeners()},_cleanupListeners:function(){this._listeners.forEach((function(e){e.remove()})),this._listeners=[]},destroy:function(){this.inherited(arguments),this._cleanupListeners(),this._promise.reject(),this._promise=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7111)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){this._lastPendingCodeSyncState=-1},getLastPendingCodeSynchronizationState:function(){return this._lastPendingCodeSyncState},setLastPendingCodeSynchronizationState:function(e){this._lastPendingCodeSyncState=e},isStateOutdated:function(e){return this._lastPendingCodeSyncState>e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7113)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice.external","rtc.backingstore","rtc.cursor","rtc.cursorcontroller","rtc.document.info","rtc.document","rtc.id","rtc.internal.language","rtc.internaldocument","rtc.functionservice","rtc.linenumberservice","rtc.view","rtc.position.controller"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d,u,h,p){return new i(e,t,n,o,r,a,s,l,c,d,u,h,p)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(285),i(251),i(810),i(207),i(923),i(281),i(454),i(234),i(260),i(237),i(364),i(323),i(389),i(7114),i(7115),i(668),i(209),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return e(r,{_EDITOR_API_MESSAGE_REQUEST_CHANNEL_PREFIX:"/api/editor/request/",_EDITOR_API_MESSAGE_RESPONSE_CHANNEL_PREFIX:"/api/editor/response/",_LIVE_EDITOR_EVENT_CHANNEL_PREFIX:"/liveeditor/events/",_NOT_DIRTY:"not_dirty",_GLOBAL:"global",_SAVE_PREFIX:"SAVE_",constructor:function(e,t,i,n,o,r,a,s,l,c,d,u,h){this._rtcActionServiceExternal=e,this._rtcBackingStore=t,this._rtcCursorWrapper=i,this._rtcCursorControllerWrapper=n,this._rtcDocumentInfo=o,this._rtcDocumentWrapper=r,this._rtcId=a,this._rtcInternalLanguage=s,this._rtcInternalDocument=l,this._rtcFunctionService=c,this._rtcLineNumberService=d,this._rtcViewWrapper=u,this._rtcPositionController=h,this._EDITOR_API_MESSAGE_SPECIFIC_REQUEST_CHANNEL=this._EDITOR_API_MESSAGE_REQUEST_CHANNEL_PREFIX+this._rtcId,this._EDITOR_API_MESSAGE_SPECIFIC_RESPONSE_CHANNEL=this._EDITOR_API_MESSAGE_RESPONSE_CHANNEL_PREFIX+this._rtcId,this._EDITOR_API_MESSAGE_GLOBAL_REQUEST_CHANNEL=this._EDITOR_API_MESSAGE_REQUEST_CHANNEL_PREFIX+this._GLOBAL,this._EDITOR_API_MESSAGE_GLOBAL_RESPONSE_CHANNEL=this._EDITOR_API_MESSAGE_RESPONSE_CHANNEL_PREFIX+this._GLOBAL,this._LIVE_EDITOR_EVENT_CHANNEL=this._LIVE_EDITOR_EVENT_CHANNEL_PREFIX+this._rtcId,this._subscribeMessageServiceChannels(),this._installEditor()},_notifyNotDirty:function(){return b.publish(this._LIVE_EDITOR_EVENT_CHANNEL,{eventName:this._NOT_DIRTY}),!0},_subscribeMessageServiceChannels:function(){b.subscribe(this._EDITOR_API_MESSAGE_GLOBAL_REQUEST_CHANNEL,"_handleGlobalMessages",this),b.subscribe(this._EDITOR_API_MESSAGE_SPECIFIC_REQUEST_CHANNEL,"_handleSpecificMessages",this)},_handleGlobalMessages:function(e){e.data||v.error("Message data undefined for "+e),"QueryEditorId"===e.data.action&&e.data.absoluteFilePath===this._getAbsoluteFilePathFromBackingStore()&&this._installEditor()},_handleSpecificMessages:function(e){e.data||v.error("Message data undefined for "+e);var t=e.data.action;g.hasOwnProperty(t)||v.error("API action message handler not defined for "+t);var n=[].concat(e.data.arguments),o=this[g[t]].apply(this,n);i(o,function(e){this._sendResponse(t,e)}.bind(this),(function(e){this._sendResponse(t,e)}))},_sendResponse:function(e,t){var i,n;t.hasOwnProperty("status")&&t.hasOwnProperty("result")?(i=t.status,n=t.result):(i=m.SUCCESS,n=t),b.publish(this._EDITOR_API_MESSAGE_SPECIFIC_RESPONSE_CHANNEL,{actionPerformed:e,status:i,result:n})},_installEditor:function(){this._sendGlobalMessage("Install")},_sendGlobalMessage:function(e){b.publish(this._EDITOR_API_MESSAGE_GLOBAL_RESPONSE_CHANNEL,{absoluteFilePath:this._getAbsoluteFilePathFromBackingStore(),action:e,rtcId:this._rtcId})},_handleGetFilename:function(){return this._getAbsoluteFilePathFromBackingStore()},_handleGetLanguage:function(){return this._getLanguage()},_handleGetSelectedText:function(){return this._getCursorSelectedText(this._getRtcCursor())},_handleGetExtendedSelectedText:function(){return this._getCursorController().getCursors(!0).map(this._getCursorSelectedText,this)},_handleGetModified:function(){return this.__notImplemented()},_handleGetText:function(){if("function"!=typeof this._rtcBackingStore.getLoadPromise)return this._getDocumentCodeText();var e=new t;return i(this._rtcBackingStore.getLoadPromise(),function(){var t=this._getDocumentCodeText();e.resolve(t)}.bind(this)),e.promise},_handleSetText:function(e){return this._setDocumentText(e)},_handleGetSelection:function(){return this._getCursorSelection(this._getRtcCursor())},_handleGetExtendedSelection:function(){return this._getCursorController().getCursors(!0).map(this._getCursorSelection,this)},_handleSetSelection:function(e){return this._hasNoMatlabCode()?this._createSuccessReturnPacket():this._setCursorSelection(e)},_handleGetEditable:function(){return!this._getDocumentIsReadOnly()},_handleSetEditable:function(e){return this._setDocumentIsReadOnly(!e)},_handleAppendText:function(e){var t=this._rtcInternalDocument.endNode().rootContainer();return c.isExecutableCodeLine(t)&&0!==e.indexOf("\n")?this._insertTextAtEndOfDocument(e):this._insertTextBelowEndOfDocument(e)},_handleInsertTextAtPositionInLine:function(e,t,i){if(this._hasNoMatlabCode())return this._createReturnPacket(m.NONEXISTENT_POSITION);var n=this._getNormalizedLineColumn(t,i);return this._insertTextInCodeLine(e,n.line,n.column)},_handleGoToFunction:function(e){var i=new t;return this._getLanguage()!==l.DEFAULT_SUPPORTED_LANGUAGES.MATLAB?i.resolve(this._createSuccessReturnPacket()):(this._rtcFunctionService.whenReady(function(){var t=this._rtcFunctionService.getFunctionDeclarationByName(e,!0);if(!t)return i.resolve(this._createSuccessReturnPacket());var n=this._gotoLineColumnInDocument(t.getStartLine(),t.getStartColumn());return this._hasError(n)||this._selectTillLineEnd(),i.resolve(n)}.bind(this)),i.promise)},_handleGoToLine:function(e){if(this._hasNoMatlabCode())return this._createSuccessReturnPacket();e=this._getNormalizedLine(e);var t=this._getColumnOfFirstCharacterOnCodeLine(e),i=this._gotoLineColumnInCode(e,t);return this._hasError(i)||this._selectTillLineEnd(),i},_handleGoToPositionInLine:function(e,t){return this._gotoLineColumnInCode(e,t)},_handleSmartIndentContents:function(){var e=n.FORMAT_CODE.SMART_INDENT_ALL_ACTION,t=this._rtcActionServiceExternal.getAction(e);return t&&t.enabled&&this._rtcActionServiceExternal.executeAction(e),this._createSuccessReturnPacket()},_handleIndexToPositionInLine:function(e){if(this._hasNoMatlabCode())return{line:-1,column:-1};var t=this._getDocumentCodeText();if(e>t.length){var i=this._getLastCodeLineColumn();return{line:i.line,column:i.column}}var n=o.getLineColumnFromOffset(t,e);return this._getNormalizedLineColumn(n.line+1,n.column+1)},_handlePositionInLineToIndex:function(e,t){if(this._hasNoMatlabCode())return-1;var i=this._getNormalizedLineColumn(e,t);return o.getOffsetFromLine(this._getDocumentCodeText(),i.line-1)[0]+i.column},_handleClose:function(){return this.__notImplemented()},_handleCloseNoPrompt:function(){return this.__notImplemented()},_handleMakeActive:function(){return this.__notImplemented()},_handleReload:function(){if(this._isUntitledBuffer())return!1;try{return i(this._rtcBackingStore.load(this._getAbsoluteFilePathFromBackingStore()),function(e){return e&&this._notifyNotDirty()}.bind(this),(function(e){return v.warn(e),!1}))}catch(e){return v.warn(e),!1}},_handleSave:function(){if(this._isUntitledBuffer())return this._createReturnPacket(m.SAVE_UNTITLED_BUFFER);const e=function(){return this._rtcBackingStore.save(this._getAbsoluteFilePathFromBackingStore())}.bind(this);return this._performSaveAndHandleError(e)},_handleSaveAs:function(e){const t=function(){return this._rtcBackingStore.saveAs(e)}.bind(this);return this._performSaveAndHandleError(t)},_handlePostSaveAs:function(){return this._notifyNotDirty()},_insertTextBelowEndOfDocument:function(e){var t,i,n=this._getRtcDocument(),o=n.startBlockEdit(),r=this._getEndOfDocumentPosition(),a=r.getNode().rootContainer(),s=a.readOnly;return a.readOnly=!1,c.isExecutableCodeLine(a)?(i=r.getLine(),t=this._insertTextAtPosition(e,r,!0)):(t=this._insertEmptyCodeLineAfterContainer(a),this._hasError(t)||(i=(r=this._getEndOfDocumentPosition()).getLine(),t=this._insertTextAtPosition(e,r,!0))),a.readOnly=s,n.endBlockEdit(o),this._hasError(t)||this._getRtcView().scrollNearestVisibleLineToPercent(i,50),t},_insertEmptyCodeLineAfterContainer:function(e){var t=this._getRtcDocument(),i=t.startBlockEdit(),n=new f({text:""}),o=new p([n]),r=this._rtcPositionController.createLinePosition(e,!1,!0),a=this._rtcInternalDocument.insertAtPosition(o,r);return r.destroy(),a.insertionNotAllowed?(t.endBlockEdit(i),this._createReturnPacket(m.READONLY_POSITION)):(i.appendRedoEvents(a.events),i.appendUndoEvents(d.translateEventsForUndo(a.events)),this._rtcInternalDocument.emitDocumentEvents(a.events),t.endBlockEdit(i),this._createSuccessReturnPacket())},_insertTextAtEndOfDocument:function(e){return this._insertTextAtPosition(e,this._getEndOfDocumentPosition())},_insertTextInCodeLine:function(e,t,i){return this._insertTextAtPosition(e,this._getPositionByCodeLineColumn(t,i))},_insertTextAtPosition:function(e,t,i){if(this._isPositionReadOnly(t))return this._createReturnPacket(m.READONLY_POSITION);var n=this._getRtcCursor(),o=this._getRtcDocument(),r=this._getRtcView(),a=o.startEdit();if(n.setLineColumn(t.getLine(),t.getColumn()),this._isPositionReadOnly(t))return o.endEdit(a),this._createReturnPacket(m.READONLY_POSITION);var s=t.getLineColumn();return o.insertText(e,s.line,s.column)?(i||r.scrollNearestVisibleLineToPercent(s.line,50),o.endEdit(a),this._createSuccessReturnPacket()):(o.endEdit(a),this._createReturnPacket(m.READONLY_POSITION))},_gotoLineColumnInCode:function(e,t){if(this._hasNoMatlabCode())return this._createSuccessReturnPacket();var i=this._getNormalizedLineColumn(e,t);e=i.line,t=i.column;var n=this._getPositionByCodeLineColumn(e,t);return this._isPositionInaccessible(n)?this._createReturnPacket(m.INACCESSIBLE_POSITION):(_.gotoCodeLineColumn(this._rtcInternalDocument,this._rtcLineNumberService,this._getRtcCursor(),e,t,this._getRtcView()),this._createSuccessReturnPacket())},_gotoLineColumnInDocument:function(e,t){var i=this._getPositionByDocumentLineColumn(e,t);return this._isPositionInaccessible(i)?this._createReturnPacket(m.INACCESSIBLE_POSITION):(_.gotoDocumentLineColumn(this._rtcInternalDocument,this._getRtcCursor(),e,t,this._getRtcView()),this.onGotoLineColumnInDocument(),this._createSuccessReturnPacket())},onGotoLineColumnInDocument:function(){},_setDocumentText:function(e){this._getRtcDocument().setText(e);var t=Math.max(this._getNumberOfCodeLines()-1,0);return this._rtcInternalDocument.emitDocumentEvents([h.create(0,t)]),!0},_setDocumentIsReadOnly:function(e){return this._getRtcDocument().setReadOnly(e),!0},_setCursorSelection:function(e){var t=this._getNormalizedLineColumn(e[0],e[1]),i=this._getNormalizedLineColumn(e[2],e[3]),n=this._getDocumentLineForCodeLine(t.line),o=t.column,r=this._getDocumentLineForCodeLine(i.line),a=i.column;return this._isRangeInaccessible(n,o,r,a)?this._createReturnPacket(m.INACCESSIBLE_POSITION):(this._clearSelection(),this._getRtcCursor().setSelectionLineColumn(n,o,r,a),this._createSuccessReturnPacket())},_selectTillLineEnd:function(){this._clearSelection(),this._getRtcCursor().movePosition(this._getRtcCursor().LINE_END,this._getRtcCursor().KEEP_ANCHOR)},_clearSelection:function(){this._getCursorController().clearSelection()},_isUntitledBuffer:function(){return!s.hasFileLocation(this._rtcBackingStore)},_performSaveAndHandleError:async function(e){let t;try{await e(),t={status:!0}}catch(e){t=e,v.error(e)}if(t.status)return this._createSuccessReturnPacket();if(!t.errorId)return this._createReturnPacket(m.SAVE_UNKNOWN,!1);let i=this._SAVE_PREFIX+t.errorId.toUpperCase();return m.hasOwnProperty(i)?this._createReturnPacket(m[i],!1):this._createReturnPacket(m.SAVE_UNKNOWN,!1)},_getAbsoluteFilePathFromBackingStore:function(){return s.getAbsoluteFilePathFromBackingStore(this._rtcBackingStore)},_getCursorSelectedText:function(e){var t=e.getSelection();return t?c.getCodeInRange(t):""},_getDocumentIsReadOnly:function(){return this._rtcDocumentInfo.isReadOnly()},_getDocumentCodeText:function(){return c.getCodeInRange(this._rtcInternalDocument.getFullRange())},_getCursorSelection:function(e){var t=a.getLineColumnPair(e),i=t.start.line-1,n=t.start.column,o=t.end.line-1,r=t.end.column,s=this._rtcInternalDocument.getLineNode(i),l=this._rtcInternalDocument.getLineNode(o);return c.isExecutableCodeLine(s)?i=this._rtcLineNumberService.getCodeLineNumberFromLineNumber(i):(i=this._rtcLineNumberService.getCodeLineNumberAtOrAfterLineNumber(i))>0&&(n=1),c.isExecutableCodeLine(l)?o=this._rtcLineNumberService.getCodeLineNumberFromLineNumber(o):(o=this._rtcLineNumberService.getCodeLineNumberAtOrBeforeLineNumber(o))>0&&(r=this._getLineLengthForCodeLine(o)+1),0===i||0===o||i>o?[-1,-1,-1,-1]:[i,n,o,r]},_getRtcCursor:function(){return this._rtcCursorWrapper.getCurrentInstance()},_getCursorController:function(){return this._rtcCursorControllerWrapper.getCurrentInstance()},_getRtcDocument:function(){return this._rtcDocumentWrapper.getCurrentInstance()},_getRtcView:function(){return this._rtcViewWrapper.getCurrentInstance()},_getNormalizedLineColumn:function(e,t){var i=this._getNormalizedLine(e),n=this._trunc(t);return{line:i,column:this._clamp(n,1,this._getLineLengthForCodeLine(i)+1)}},_getNormalizedLine:function(e){var t=this._trunc(e);return this._clamp(t,1,this._getNumberOfCodeLines())},_getNumberOfCodeLines:function(){return this._rtcLineNumberService.getNumberOfCodeLines()},_getEndOfDocumentPosition:function(){return this._rtcInternalDocument.root.endPosition()},_getLastCodeLineColumn:function(){var e=this._rtcLineNumberService.getNumberOfCodeLines();return{line:e,column:this._getLineLengthForCodeLine(e)+1}},_getColumnOfFirstCharacterOnCodeLine:function(e){var t=this._getDocumentLineForCodeLine(e),i=this._rtcInternalDocument.getLineNode(t-1).getTextForPositioning();return u.getLeadingWhitespace(i)+1},_getLineLengthForCodeLine:function(e){var t=this._getDocumentLineForCodeLine(e);return this._rtcDocumentInfo.getLineLength(t)},_getPositionByCodeLineColumn:function(e,t){var i=this._getDocumentLineForCodeLine(e);return this._getPositionByDocumentLineColumn(i,t)},_getPositionByDocumentLineColumn:function(e,t){return this._rtcInternalDocument.getPositionForLineColumn(e,t)},_getDocumentLineForCodeLine:function(e){return this._rtcLineNumberService.getLineNumberFromCodeLineNumber(e)+1},_getLanguage:function(){return this._rtcInternalLanguage.getLanguage()},_isRangeInaccessible:function(e,t,i,n){var o;return o=this._getPositionByDocumentLineColumn(e,t),!!this._isPositionInaccessible(o)||(o=this._getPositionByDocumentLineColumn(i,n),!!this._isPositionInaccessible(o))},_isPositionReadOnly:function(e){return e.getNode().isReadOnly()},_isPositionInaccessible:function(e){return!(!e.getNode().isOpaqueNode()||e.isAtEdge())},_hasNoMatlabCode:function(){return 0===this._getNumberOfCodeLines()},_clamp:function(e,t,i){return Math.min(Math.max(e,t),i)},_trunc:function(e){return e-e%1},_unsubscribeMessageServiceChannels:function(){b.unsubscribe(this._EDITOR_API_MESSAGE_GLOBAL_REQUEST_CHANNEL,"_handleGlobalMessages",this),b.unsubscribe(this._EDITOR_API_MESSAGE_SPECIFIC_REQUEST_CHANNEL,"_handleSpecificMessages",this)},__notImplemented:function(){var e=this.__notImplemented.caller+" not implemented";return v.error(e),e},_createSuccessReturnPacket:function(e){return void 0===e&&(e=!0),this._createReturnPacket(m.SUCCESS,e)},_createReturnPacket:function(e,t){return{status:e,result:t}},_hasError:function(e){return e.status!==m.SUCCESS},destroy:function(){this._unsubscribeMessageServiceChannels(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{GetFilename:"_handleGetFilename",GetLanguage:"_handleGetLanguage",GetSelectedText:"_handleGetSelectedText",GetModified:"_handleGetModified",GetText:"_handleGetText",SetText:"_handleSetText",GetSelection:"_handleGetSelection",SetSelection:"_handleSetSelection",GetEditable:"_handleGetEditable",SetEditable:"_handleSetEditable",GetExtendedSelection:"_handleGetExtendedSelection",GetExtendedSelectedText:"_handleGetExtendedSelectedText",AppendText:"_handleAppendText",InsertTextAtPositionInLine:"_handleInsertTextAtPositionInLine",GoToFunction:"_handleGoToFunction",GoToLine:"_handleGoToLine",GoToPositionInLine:"_handleGoToPositionInLine",SmartIndentContents:"_handleSmartIndentContents",IndexToPositionInLine:"_handleIndexToPositionInLine",PositionInLineToIndex:"_handlePositionInLineToIndex",Close:"_handleClose",CloseNoPrompt:"_handleCloseNoPrompt",MakeActive:"_handleMakeActive",Reload:"_handleReload",Save:"_handleSave",SaveAs:"_handleSaveAs",PostSaveAs:"_handlePostSaveAs"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({SUCCESS:0,READONLY_POSITION:1,INACCESSIBLE_POSITION:2,NONEXISTENT_POSITION:3,SAVE_UNTITLED_BUFFER:4,SAVE_READ_ONLY_FILE:5,SAVE_PERMISSION_DENIED:6,SAVE_UNKNOWN:7})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205)],o=i.dj.d(n,(function(e,t){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2430)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return i.getInstance()},destroyInstance:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(369),i(219),i(7119),i(247),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(null,{_RETRY_TIME_MILLISECONDS:250,_START_MESSAGE:"/editordataservice/start",_STARTED_MESSAGE:"/editordataservice/started/",constructor:function(e){this._isPeerModelInitialized=!1,this._namespace=e,this._mockFeatureDataServices={},this._mockRequestService={},this._namespaceUID={},this._startedInitialization=!1,this._initializationRetryTimer=null,this._messageService=o},_initializeRoot:function(){this._root=this._peerModel.setRoot("root",{one:1})},start:function(){this._initializePeerModel(),this._peerModel.hasRoot()||this._initializeRoot(),this._peerModel.isSyncEnabled()||this._peerModel.setSyncEnabled(!0)},_initializePeerModel:function(){if(!this._startedInitialization){this._startedInitialization=!0,this._namespaceUID=s.generateUuid();var e=this._namespace?this._namespace:"/editordataservice/"+this._namespaceUID;this._peerModel=n.getServerInstance(e),this._namespace||this._hasNoJVM()||(this._messageService.subscribe(this._STARTED_MESSAGE+this._namespaceUID,this._serverSideEditorDataServiceInitialized,this),this._initializeServerSideEditorDataService())}},_hasNoJVM:function(){var e=a.parseQueryString();return e.hasOwnProperty("nojvm")&&"true"===e.nojvm},_initializeServerSideEditorDataService:function(){this._isPeerModelInitialized?this._initializationRetryTimer=null:(this._messageService.publish(this._START_MESSAGE,this._namespaceUID),this._initializationRetryTimer=setTimeout(t.hitch(this,this._initializeServerSideEditorDataService),this._RETRY_TIME_MILLISECONDS))},_serverSideEditorDataServiceInitialized:function(){!0!==this._isPeerModelInitialized&&(this._messageService.unsubscribe(this._STARTED_MESSAGE+this._namespaceUID,this._serverSideEditorDataServiceInitialized,this),this._initializationRetryTimer&&(clearTimeout(this._initializationRetryTimer),this._initializationRetryTimer=null),this._isPeerModelInitialized=!0)},stop:function(){this.isInitialized()&&(this._root.destroy(),this._root=null,this._peerModel.setSyncEnabled(!1),this._mockFeatureDataServices={},this._mockRequestService={},this._isPeerModelInitialized=!1,this._namespace="",this._initializeRoot())},isInitialized:function(){return this._isPeerModelInitialized},installMockDataService:function(e,t){this._mockFeatureDataServices[e]=t},removeMockDataService:function(e){delete this._mockFeatureDataServices[e]},installMockRequestService:function(e,t){this._mockRequestService[e]=t},removeMockRequestService:function(e,t){delete this._mockRequestService[e]},_getMockDataServices:function(){return t.clone(this._mockFeatureDataServices)},_getMockRequestServices:function(){return t.clone(this._mockRequestService)},getEditorDataServiceProvider:function(e,t,i,n,o){this.start();var a=this._addEditorOpenedNode(o);return new r(a,e,this._getMockDataServices(),i,n,this._getMockRequestServices(),t)},_addEditorOpenedNode:function(e){return this._root.addChild("editor",{uniqueId:e})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(212),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{PROPERTY_SET_ID:"propertySet",DOCUMENT_STATE_ID_SUFFIX:".documentstate",constructor:function(e,t,i,n,o,r,a){this._peerNode=e,this._mockFeatureDataServices=i,this._documentInfo=o,this._internalDocument=n,this._connections=[],this._mockRequestDataServices=r,this._fullyRegisteredFeatures={},this._registeredClientSideDataServices=[],this._backingStore=a,this._clientSidePlugins={},t.forEach((function(e){this._clientSidePlugins[e.getFeatureId()]=e}),this),this._clientSideDataTable={},this._clientSideDataListeners={},this._editorDataServiceBroadcast=this._createDataBroadcastDependency(),Object.keys(i).length>0&&this._registerDocumentListenerWithNode(n),this._registerFilepathListenerWithNode()},_registerDocumentListenerWithNode:function(e){var n=t.hitch(this,(function(){this._dispatchNewText(this._documentInfo)}));this._connections.push(i.after(e,"onDocumentChanged",n,!0,i.priority.EXTERNAL)),this._connections.push(i.after(e,"onDocumentReset",n,!0,i.priority.EXTERNAL)),this._dispatchNewText(this._documentInfo)},_registerFilepathListenerWithNode:function(){var e=t.hitch(this,(function(){this._dispatchFileUpdate(this._backingStore)}));this._connections.push(i.after(this._backingStore,"onLocationUpdated",e,!0)),this._dispatchFileUpdate(this._backingStore)},_hasMockInstalled:function(e){return this._mockFeatureDataServices.hasOwnProperty(e)},_dispatchNewText:function(e){clearTimeout(this._textToServerTimerId),this._textToServerTimerId=setTimeout(t.hitch(this,(function(){var t=e.getCodeText(),i=e.getState();this._dispatchEventToServer("documentChanged",{data:t,documentState:i})})),200),Object.keys(this._mockFeatureDataServices).length>0&&this._dispatchNewTextToMockFeatures(e)},_dispatchNewTextToMockFeatures:function(e){var t=e.getCodeText();for(var i in this._mockFeatureDataServices)if(this._mockFeatureDataServices.hasOwnProperty(i)){var n=(0,this._mockFeatureDataServices[i])(t,this._documentInfo.getState());this._putDataInFeatureTableAndBroadcastUpdate(i,n),this._peerNode.dispatchEvent(this.PROPERTY_SET_ID,this._peerNode,this._createMockFeatureMessage(i,n))}},_dispatchFileUpdate:function(e){if("function"==typeof e.getFileName&&"function"==typeof e.getFileLocation){var i=e.getFileName(),n=e.getFileLocation();clearTimeout(this._pathToServerTimerId),this._pathToServerTimerId=setTimeout(t.hitch(this,(function(){this._dispatchEventToServer("filepathChanged",{filename:i,location:n})})),200)}},_putDataInFeatureTableAndBroadcastUpdate:function(e,t){this._peerNode.setProperty(e,t),this._peerNode.setProperty(e+this.DOCUMENT_STATE_ID_SUFFIX,this._documentInfo.getState())},_dispatchEventToServer:function(e,t){this._peerNode.dispatchPeerEvent(e,this._peerNode,t)},_createMockFeatureMessage:function(e,t){return{key:e,newValue:t}},getEditorDataService:function(){var e=this._peerNode,i=t.hitch(this,this._registerFeatureWithNode),r=this.PROPERTY_SET_ID,a=t.hitch(this,this._dispatchEventToServer),s=this._mockRequestDataServices,l=this._fullyRegisteredFeatures,c=t.hitch(this,this._isClientSideRegisteredFeature),d=this._clientSideDataListeners,u=this._clientSideDataTable;return{listenTo:function(t,n){i(t);var o=function(e){if(e.type===r){var i=e.data;i.key===t&&(l[t]=!0,n(i.newValue))}};return c(t)?(d[t]||(d[t]=[]),d[t].push(n),{remove:function(){}}):(e.addEventListener(r,o),{remove:function(){e.removeEventListener(r,o)}})},get:function(t){return i(t),c(t)?u[t]:e.getProperty(t)},request:function(t,r,l){i(t);var c,d=o.generateUuid(),u={internalRequestId:d,requestData:r},h=new n;if(s.hasOwnProperty(t)){var p=s[t];h.resolve(p(u))}else{var f=(c=d,function(t){t.data.internalRequestId===c&&(clearTimeout(m),t.error?h.reject(t.error):h.resolve(t.data),h.isFulfilled()&&e.removePeerEventListener(g,f))}),g=t+".RESPONSE";e.addPeerEventListener(g,f),a(t,u);var m=setTimeout((function(){h.resolve(console.warn("EditorDataService timed out for the feature "+t)),e.removePeerEventListener(g,f)}),l||5e3)}return h.promise}}},_registerFeatureWithNode:function(e){this._hasMockInstalled(e)||this.hasFeatureBeenRegisteredWithServer(e)||this._isDocumentStateId(e)||this._isClientSideRegisteredFeature(e)||(this._clientSidePlugins[e]?(this._clientSidePlugins[e].beginBroadcasting(this._editorDataServiceBroadcast),this._appendFeatureToClientSideRegisteredList(e)):this._dispatchEventToServer("registerFeature",{featureId:e}))},_createDataBroadcastDependency:function(){var e=t.hitch(this,this._putDataIntoClientSideTable);return{updateFeatureData:function(t,i){e(t,i)}}},_putDataIntoClientSideTable:function(e,t){this._clientSideDataTable[e]=t;var i=this._clientSideDataListeners[e];i&&i.forEach((function(e){e()}))},_isClientSideRegisteredFeature:function(e){return this._registeredClientSideDataServices.indexOf(e)>=0},_appendFeatureToClientSideRegisteredList:function(e){this._registeredClientSideDataServices.push(e)},_isDocumentStateId:function(e){return e&&-1!==e.indexOf(this.DOCUMENT_STATE_ID_SUFFIX,e.length-this.DOCUMENT_STATE_ID_SUFFIX.length)},hasFeatureBeenRegisteredWithServer:function(e){return!!this._fullyRegisteredFeatures[e]},dispose:function(){this._connections.forEach((function(e){e.remove()})),this._peerNode.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205)],o=i.dj.d(n,(function(e,t){return e(t,{requires:function(){return{createInstance:["rtc.editordataservicemanager","rtc.backingstore","rtc.editordataservice.plugincontainer","rtc.internaldocument","rtc.document.info","rtc.id"]}},createInstance:function(e,t,i,n,o,r){return this._editorDataSeviceProvider=e.getEditorDataServiceProvider(i||[],t,n,o,r),this._editorDataSeviceProvider.getEditorDataService()},destroyInstance:function(e){this._editorDataSeviceProvider.dispose()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7122)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.view.styles.globalstylechanger"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(236),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_TAB_SIZE_CSS_PROPERTY:"tab-size",_TAB_SIZE_CLASS_SELECTOR:".rtePane .lineNode .textBox",_TAB_CHARACTER:"\t",_SPACE_CHARACTER:" ",DEFAULT_TAB_SIZE:4,DEFAULT_INDENT_SIZE:4,DEFAULT_TAB_KEY_INSERTS_SPACES:!0,DEFAULT_EMACS_STYLE:!1,constructor:function(e,t){this._documentWrapper=e,this._globalStyleChanger=t,this._tabKeyInsertSpacesFlag=this.DEFAULT_TAB_KEY_INSERTS_SPACES,this._tabSize=this.DEFAULT_TAB_SIZE,this._indentSize=this.DEFAULT_INDENT_SIZE,this._defaultEmacsStyleFlag=this.DEFAULT_EMACS_STYLE,this._updateTabString(),this._tabCharacterMatchRegexp=null,this._updateTabStringMatchRegex(),this._updateTabSizeDynamicStyleSheet(),this.own(i.after(this._documentWrapper,"onPluginAdded",this._handleDocumentAdded.bind(this),!0))},getTabSize:function(){return this._tabSize},setTabSize:function(e){e!==this._tabSize&&(this._tabSize=e,this._updateTabSizeDynamicStyleSheet(),this._updateTabString())},getIndentSize:function(){return this._indentSize},setIndentSize:function(e){this._indentSize=e},isTabKeyInsertSpaces:function(){return this._tabKeyInsertSpacesFlag},isEmacsStyle:function(){return this._emacsStyleFlag},setTabKeyInsertSpacesFlag:function(e){e!==this._tabKeyInsertSpacesFlag&&(this._tabKeyInsertSpacesFlag=e,this._updateTabString())},setEmacsStyleFlag:function(e){this._emacsStyleFlag=e},getTabCharacter:function(){return this._TAB_CHARACTER},getSpaceCharacter:function(){return this._SPACE_CHARACTER},getTabString:function(){return this._tabString},_setTabString:function(e){this._tabString=e,this._documentWrapper.callMethodOnEachInstance("setTabString",[this._tabString])},_handleDocumentAdded:function(e){e&&e.setTabString(this._tabString)},_updateTabString:function(){this._setTabString(this.getWhitespaceStringOfLength(this.getTabSize()))},_updateTabStringMatchRegex:function(){this._tabCharacterMatchRegexp=new RegExp(this.getTabCharacter(),"g")},_updateTabSizeDynamicStyleSheet:function(){this._globalStyleChanger.insertOrReplaceRule(this._TAB_SIZE_CLASS_SELECTOR,[{name:this._TAB_SIZE_CSS_PROPERTY,value:this.getTabSize()}])},getWhitespaceStringOfLength:function(e,i){var n="";return this.isTabKeyInsertSpaces()||i?n=t.rep(this.getSpaceCharacter(),e):(n=t.rep(this.getTabCharacter(),e/this.getTabSize()),n+=t.rep(this.getSpaceCharacter(),e%this.getTabSize())),n},getLengthCompensatingTabs:function(e){for(var t=this.getTabSize(),i=this.getTabCharacter(),n=0,o=0,r=0,a=0,s=0;-1!==(n=e.indexOf(i,o));)r=(a=r+n)+(s=t-(a%t||0))-1-n,o=n+=i.length;return a+s+e.length-o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7124)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["matlab.services.busyidle"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(1583)],o=i.dj.d(n,(function(e,t,i,n){return t(n,{_DELAY:100,constructor:function(t){this._busyIdleService=t,this._isBusy=!1,this._timeout=null,this.own(e.after(this._busyIdleService,"onIdleBusyStatusChange",i.hitch(this,"_handleBusyChange"),!0))},_handleBusyChange:function(e){e&&!this._isBusy&&!this._timeout?this._timeout=setTimeout(()=>{this._isBusy=!0,this._clearTimeout(),this.onIdleBusyStatusChange(!0)},this._DELAY):e||(this._clearTimeout(),this._isBusy&&(this._isBusy=!1,this.onIdleBusyStatusChange(!1)))},isBusy:function(){return this._isBusy},_clearTimeout:function(){this._timeout&&clearTimeout(this._timeout),this._timeout=null},destroy:function(){this.inherited(arguments),this._clearTimeout()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7126)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.editordataservice"]}},createInstance:function(e){return new i(e)},priority:function(){return 1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(219),i(1583)],o=i.dj.d(n,(function(e,t,i,n,o){return t(o,{_BUSY_IDLE_FEATURE_ID:"matlab.busyidle",_channel:"/editor/busy-idle-state-change",_request_channel:"/editor/busy-idle-request",constructor:function(e,t){this._isBusy=!1,this._listener=e.listenTo(this._BUSY_IDLE_FEATURE_ID,i.hitch(this,"_handleBusyIdleChange")),this.messageService=t||n,this.messageService.subscribe(this._channel,"_handleBusyIdleChange",this),this.messageService.publish(this._request_channel,{})},isBusy:function(){return this._isBusy},_handleBusyIdleChange:function(e){const t=e.data.isBusy;t!==this._isBusy&&(this._isBusy=t,this.onIdleBusyStatusChange(this._isBusy))},destroy:function(){this.inherited(arguments),this._listener.remove(),this.messageService.unsubscribe(this._channel,"_handleBusyIdleChange",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2406),i(7128)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.cursorcontroller","rtc.internaldocument","rtc.document","language.interface.tokenmanager","matlab.lexer.statemanager","rtc.editortabservice"]}},createInstance:function(e,t,i,o,r,a){return new n(e,t,i,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(208),i(207),i(249),i(237),i(234),i(274),i(270),i(364),i(670),i(7129),i(496),i(320)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e(o,{_INDENT_AMOUNT:4,_UNDOREDO_BLOCK_NAME:"AutoIndent",constructor:function(e,t,i,o,r,a){this._cursorController=e,this._cursor=e.getCursor(),this._internalDocument=t,this._document=i,this._matlabTokenManager=o,this._matlabStateManager=r,this._editorTabService=a,this.setIndentingStyle(h.MixedFunctionIndenting),this._isPerformingIndentation=!1,this._pendingLines=[],this.own(n.after(t,"onDocumentChanged",this._processLines.bind(this),!0))},setIndentingStyle:function(e){this._indentingStyle=e},isPerformingIndentation:function(){return this._isPerformingIndentation},_indentContainerWithTabs:function(e,t,i,n){var o,r=this._getTextToBeFormatted(t),a=this._getPrecedingWhiteSpace(r),s=(this._internalDocument.getLineNumber(t),this._editorTabService.getLengthCompensatingTabs(a));o=1===e?i.length+s:s-n;var c=this._editorTabService.getWhitespaceStringOfLength(o),d=t.startNode();if(this._internalDocument.deleteText(d,0,a.length),""!==c){var u=this._insertIndentAndUpdateCursor(d,c);u.line===l.getLineNumberForNode(t,this._internalDocument)&&this._cursor.setPosition(u)}if(-1===e)return a.length-c.length},indentContainer:function(e,t){var i,n=e.startNode();if(n)return this._editorTabService.isTabKeyInsertSpaces()?i=this._insertIndentAndUpdateCursor(n,t):(this._indentContainerWithTabs(1,e,t),i=this._cursor.getPosition()),i},_insertIndentAndUpdateCursor:function(e,t){var i=new c(e,0),n=u.createTextNodeForPosition(t,i);this._internalDocument.insertAtPosition(n,i);var o=this._cursor.getPosition();return o.column<t.length&&(o.column+=t.length),o},unindentContainer:function(e,t){return this._indentContainerWithTabs(-1,e,"",t)},rightTrimContainer:function(e){var t=0,i=0,n=e.getText().match(/\s*$/);return n&&n[0]?(i=n.index,t=n[0].length,this._internalDocument.deleteTextRange(e,t,i)):0},skipWhiteSpaces:new RegExp("\\S|$"),getMinimumIndentForLines:function(e,t){for(var i=Number.MAX_VALUE,n=e;n<=t;n++){var o=this._internalDocument.getLineNode(n);a.isLineNodeEmpty(o)||(i=Math.min(i,this.getIndentForLineNumber(n)))}return i===Number.MAX_VALUE&&(i=this.getIndentForLineNumber(e)),i},getIndentLevel:function(e){var t=this._getTextToBeFormatted(e);return this._getFirstNonWhitespaceCharacterPosition(t)},_getTextToBeFormatted:function(e){return(e=e.children[0])&&e.isTextNode()?e.getText():""},_containsTextOnly:function(e){for(var t=e.children,i=!0,n=0;n<t.length;n++)if(!t[n].isTextNode()){i=!1;break}return i},getIndentForLineNumber:function(e){var t=this._internalDocument.getLineNode(e);return this.getIndentLevel(t)},_formatLine:function(e,t,i,n){return!(!i||(this.rightTrimContainer(this._internalDocument.getLineNode(e).lastChild()),!s.isEmptyLine(this._document,e+1)))||(this.changeLineIndent(e,t,n)||i)},changeLineIndent:function(e,t,i){if(0===t&&!this._forceSmartIndent(e))return!1;if(!i)var n=this._document.startEdit();var o=this._internalDocument.getLineNode(e);if(this._cursorController.holdCursors(),t>0?this._indentContainer(o,t):t<=0&&this._unindentContainer(o,-t),this._cursorController.resetCursors(),!i){var r=d.create(e,e);n.appendUndoEvents([r]),n.appendRedoEvents([r]),this._document.endEdit(),this._internalDocument.emitDocumentEvents([r])}return!0},_forceSmartIndent:function(e){var t=this._document.getLineText(e+1),i=this._getPrecedingWhiteSpace(t),n=this._editorTabService.getLengthCompensatingTabs(i);return i!==this._editorTabService.getWhitespaceStringOfLength(n)},_indentContainer:function(e,t){i.assert(t>0,"Amount to indent should be greater than zero");var n=this._editorTabService.getWhitespaceStringOfLength(t,!0);this.indentContainer(e,n)},_unindentContainer:function(e,t){i.assert(t>=0,"Amount to un-indent should be greater than or equal to zero"),this.unindentContainer(e,t)},enqueueLineNumberToFormat:function(e){this._pendingLines.push(e)},_processLines:function(){if(0!==this._pendingLines.length){var e=this._document.startBlockEdit(p.AUTO);this._pendingLines.forEach(function(e){this.format(e)}.bind(this)),this._document.endBlockEdit(e),this._pendingLines=[]}},format:function(e,t){return this.formatLines(e,e,t)[e]},formatLines:function(e,t,i){i=i||{};var n=this._document.startEdit();this._cursorController.holdCursors();var o=this._doFormatLines(e,t,i.trimWhitespace,n);return this._cursorController.resetCursors(),this._document.endEdit(),i.alignCursors&&this._doAlignCursors(e,t),o.indentEvents.length&&this._cursorController.scrollIntoView(),o.indentLevels},_doAlignCursors:function(e,t){this._cursorController.getCursors().forEach(i=>{const n=i.getLineColumn();if(n.line-1<e||n.line-1>t)return;const o=this._getPrecedingWhiteSpace(this._document.getLineText(n.line)).length;n.column-1<o&&i.setLineColumn(n.line,o+1)})},_doFormatLines:function(e,i,n,o){for(var r=!1,a=[],s=null,l={},c=e;c<=i;c++){if(r=!1,l[c]=0,this._shouldFormatLine(c,n)){var d=this._findIndentLevelForLine(c),u=this.getDeltaOfIndent(c,d),h=this._shouldTrimWhitespaceOnLine(c,n);(this._shouldSmartIndentLine(c,u)||h)&&(r=this._document.undoable(t.hitch(this,"_formatLine",c,u,h,!0),this._UNDOREDO_BLOCK_NAME)),l[c]=d}var p=this._updateEventIfNecessary(c,r,s,i);s=p.newEventStart,p.event&&a.push(p.event)}return this._fireFormatEventsIfNecessary(a,o),{indentLevels:l,indentEvents:a}},_shouldFormatLine:function(e,t){return(!t||""!==this._document.getLineText(e+1))&&(s.isCodeLine(this._internalDocument,e)&&!this._internalDocument.getLineNode(e).isReadOnly()&&!this._isWithinBlockComment(e))},_isWithinBlockComment:function(e){var t=this._matlabTokenManager.getFirstTokenOnLine(e);if(t)return f.isBlockCommentMidToken(t);var i=this._getPreviousCodeLine(e);return i!==e&&((t=this._matlabTokenManager.getFirstTokenOnLine(i))&&(f.isBlockCommentMidToken(t)||f.isBlockCommentStartToken(t)))},_getPreviousCodeLine:function(e){for(var t=e-1;t>=0;){if(s.isCodeLine(this._internalDocument,t))return t;t--}return e},_findIndentLevelForLine:function(e){var t=0,i=this._matlabStateManager.getLexStateForLine(e);i&&this._matlabStateManager.isLineContinuation(i)&&(t=this.processLineContinuations(e));var n=this.findFirstNonWhitespaceTokenInLine(e);return this._findIndentLevel(n,e,t)},_shouldSmartIndentLine:function(e,t){return 0!==t||this._forceSmartIndent(e)},_shouldTrimWhitespaceOnLine:function(e,t){return t&&this._document.hasTrailingWhitespaceOnLine(e+1)},_fireFormatEventsIfNecessary:function(e,t){e.length&&(t.appendUndoEvents(e),t.appendRedoEvents(e),this._internalDocument.emitDocumentEvents(e))},_updateEventIfNecessary:function(e,t,i,n){var o=null,r=null;return t?(o=null===i?e:i,e===n&&(r=d.create(o,e))):null!==i&&(r=d.create(i,e-1)),{newEventStart:o,event:r}},processLineContinuations:function(e){var t,i=0,n=null;return e>0&&(n=this._matlabStateManager.getLexStateForLine(e-1)),t=!0,n&&this._matlabStateManager.isLineContinuation(n)&&(t=!1),t&&(i=this._editorTabService.getIndentSize()),i},findFirstNonWhitespaceTokenInLine:function(e){const t=this._matlabTokenManager.iterateTokens(null,e-1,!1);for(;t&&t.next();){if(f.isEndOfLineToken(t))return null;if(!f.isWhitespaceToken(t)||!this._tokenMatchesTextNode(t))return t.clone()}return null},_tokenMatchesTextNode:function(e){if(e){var t=e.getPositionInfo().line,i=e.getPositionInfo().column;return this._internalDocument.getPositionForLineColumn(t+1,i+1).getNode().isTextNode()}return!1},_findIndentLevel:function(e,t,i){var n=-1;if(null!==e){var o=this._findStartTokenForMidBlock(e,t);null!==o?n=this._getIndentLevelForMidToken(o):f.isTokenEndOfBlock(e)?n=this._getIndentLevelForEndToken(e,t):f.isFunctionToken(e)&&(this._isTokenNestedFunction(e)?n=this._getIndentLevelForFunctionToken(e,t):this._matlabStateManager.doFunctionsHaveEnds()||(n=0))}if(n<0){var r=this._findNonWhitespaceAndComment(e,null,!0,t);if(null!==r){const e=this._getTokenForIndentCalculation(t,r.getLine());f.isTokenEndOfBlock(r)&&r.equals(e)?(n=this.getTokenIndent(r),this._shouldDeIndentAfterBlock(t,r)&&(n-=this._editorTabService.getIndentSize())):null!==e&&(n=this.searchBackAndCalculateIndent(r,e))}n+=i}return n<0&&(n=0),n},_shouldDeIndentAfterBlock:function(e,t){if(this._indentingStyle===h.ClassicFunctionIndenting||this._indentingStyle===h.MixedFunctionIndenting&&!this._matlabStateManager.getLexStateForLine(e).isInNestedFunction()){const e=this.findCorrespondingStartToken(t,t.getLine());if(e&&this._isTokenNestedFunction(e,e.getLine()))return!0}return!1},_getTokenForIndentCalculation:function(e,t){if(e>0&&this._matlabStateManager.hasLineContinuation(e-1))return this.findFirstNonWhitespaceTokenInLine(t);for(;t>0;){if(!this._matlabStateManager.hasLineContinuation(t-1))return this.findFirstNonWhitespaceTokenInLine(t);t--}return this.findFirstNonWhitespaceTokenInLine(0)},_findStartTokenForMidBlock:function(e,t){var i=null;return f.isTokenStartOfMidBlock(e)&&(i=this.findCorrespondingStartToken(e,t)),i},findCorrespondingStartToken:function(e,t){let i=0;const n=this._matlabTokenManager.iterateTokens(e,t,!0);for(;n&&n.next();)if(f.isTokenStartOfBlock(n)){if(0===i)return n.clone();if((i-=1)<0)return null}else f.isTokenEndOfBlock(n)&&(i+=1);return null},_isTokenNestedFunction:function(e,t){this._matlabStateManager.getLexStateForLine(this._internalDocument.getMaxLineNumber());return f.isFunctionToken(e)&&this._matlabStateManager.doFunctionsHaveEnds()&&null!==this._findMatchingFunctionToken(e,t)},searchBackAndCalculateIndent:function(e,t){for(var i=0,n=e;null!==n;){if(e=n,f.isTokenStartOfBlockIndent(e))f.isFunctionToken(e)&&!this._shouldIndentFunctionContents(e)||(e.equals(t)||f.isTokenStartOfBlock(e))&&(i+=1);else if(f.isTokenEndOfBlock(e)&&!e.equals(t)&&(i-=1,this._indentingStyle===h.MixedFunctionIndenting)){var o=this.findCorrespondingStartToken(e,e._line);o&&this._isTokenNestedFunction(o)&&i--}n=this._findNonWhitespaceAndComment(e,t,!0)}return this.getTokenIndent(e)+i*this._editorTabService.getIndentSize()},_shouldIndentFunctionContents:function(e){return this._indentingStyle===h.AllFunctionIndent||this._indentingStyle===h.MixedFunctionIndenting&&f.isIndentableFunction(e)&&this._matlabStateManager.doFunctionsHaveEnds()},_findMatchingFunctionToken:function(e,t){if(!f.isFunctionToken(e))return null;var i=this.findCorrespondingStartToken(e,t);return i&&f.isFunctionToken(i)?i:null},_getIndentLevelForMidToken:function(e){var t=this.getTokenIndent(e);return f.isSwitchToken(e)&&(t+=this._editorTabService.getIndentSize()),t},_getIndentLevelForEndToken:function(e,t){var i=-1,n=this.findCorrespondingStartToken(e,t);return null!==n&&(i=this.getTokenIndent(n)),i},_getIndentLevelForFunctionToken:function(e,t){var i=-1,n=this._findMatchingFunctionToken(e,t);return null!==n&&(i=this.getTokenIndent(n)+this._editorTabService.getIndentSize()),i},getTokenIndent:function(e){return this.getIndentForLineNumber(e.getLine())},getDeltaOfIndent:function(e,t){i.assert(t>=0,"Indent should be greater than or equal to zero");return t-this.getIndentForLineNumber(e)},_findNonWhitespaceAndComment:function(e,t,i,n){if(null!==e&&e.equals(t))return null;const o=null!==e&&f.isBlockCommentToken(e);let r=1;const a=this._matlabTokenManager.iterateTokens(e,n,i);for(;a&&a.next();){if(!f.isEndOfLineToken(a)){f.isBlockCommentStartToken(a)?r--:f.isBlockCommentEndToken(a)&&r++;const e=o&&!r;if(this._isNotWhitespaceOrComment(a,e))return a.clone()}if(a.equals(t))return null}return null},_isNotWhitespaceOrComment:function(e,t){if(i.assert(null!==e,"Token passed in cannot be null"),f.isWhitespaceToken(e)&&!f.isSectionTitleToken(e))return!1;const n=this.findFirstNonWhitespaceTokenInLine(e.getLine());if(f.isBlockCommentToken(e)){const i=n.equals(e)&&f.isBlockCommentStartToken(e);if(!t||!i)return!1}else if(f.isCommentToken(e)&&!n.equals(e))return!1;return!0},_getPrecedingWhiteSpace:function(e){var t=e.match(/\s*/);return t&&t[0]?t[0]:""},_getFirstNonWhitespaceCharacterPosition:function(e){return this._editorTabService.getLengthCompensatingTabs(this._getPrecedingWhiteSpace(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{AllFunctionIndent:"AllFunctionIndent",MixedFunctionIndenting:"MixedFunctionIndent",ClassicFunctionIndenting:"ClassicFunctionIndent"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7131)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.executionservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(234)],o=i.dj.d(n,(function(e,t,i){return e(t,{_HELP_COMMAND:"helpPopup ",constructor:function(e){this._executionService=e},showInHelpBrowser:function(e){e=i.getMATLABStringFromCodeText(e),this._executionService.executionEval(this._HELP_COMMAND+"("+e+")")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7133),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.position.controller","rtc.linenumberservice"]}},createInstance:function(e,i,n){return new t(e,i,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(209),i(915),i(1913)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{constructor:function(e,t,i){this._internalDocument=e,this._positionController=t,this._lineNumberService=i,this._sections=[],this._build()},_build:function(){this._sectionRangeTree=new r(this._sections)},_areSectionsEqual:function(e){return this._sections.length===e.length&&!this._sections.some((function(t,i){var n=e[i];if(t.start.getNode()!==n.startNode||t.end.getNode()!==n.endNode)return!0}),this)},_areAttributesEqual:function(e,t){return this._sections.every((function(i,n){return i.hasOwnProperty(e)&&t.hasOwnProperty(n)&&i[e]===t[n]}))},resetSectionsWithAttribute:function(e,t,i){var n=!this._areAttributesEqual(t,i),o=this._resetSections(e);this._setAttribute(t,i),o&&this.onModelUpdated(),n&&this.onAttributesUpdated(t)},resetSections:function(e){this._resetSections(e)&&this.onModelUpdated()},_resetSections:function(e){return this._areSectionsEqual(e)?(this.onCurrentSectionInvalidated(!1,!0),!1):(this._clearSections(),this._sections=this._convertFromNodesToPositions(e),this._build(),this.onCurrentSectionInvalidated(!0),!0)},onCurrentSectionInvalidated:function(e,t){},_convertFromNodesToPositions:function(e){return e.map((function(e,t){return{start:this._positionController.createLinePosition(e.startNode),end:this._positionController.createLinePosition(e.endNode),getStartLine:function(){return this.start.getLine()-1},getEndLine:function(){return this.end.getLine()-1},number:t}}),this)},setAttribute:function(e,t){this._areAttributesEqual(e,t)||(this._setAttribute(e,t),this.onAttributesUpdated(e))},setAttributeOnReset:function(e,t){this._setAttribute(e,t)},_setAttribute:function(e,t){n.assert("start"!==e&&"end"!==e,"You cannot use start/end as they are reserved attributes!"),this._sections.forEach((function(i,n){i[e]=t.hasOwnProperty(n)?t[n]:null}))},getFirstSectionWithAttributeData:function(e){var t=null;return this._sections.some((function(i){return(t=i[e])&&t.length>0})),t},_clearSections:function(){this._sections.forEach((function(e){this._positionController.deletePosition(e.start),this._positionController.deletePosition(e.end)}),this),this._sections=[]},onModelUpdated:function(){},onSectionsChanged:function(){},onAttributesUpdated:function(){},getSections:function(){return this._sections},getSection:function(e){if(e<0||e>=this._sections.length)return null;var t=this._sections[e];return this._isSectionValid(t)?t:null},_isSectionValid:function(e){return e&&e.start&&e.start.isValid()&&e.end&&e.end.isValid()},getStartLineForSection:function(e){return this._sections[e]&&this._sections[e].start.getLine()-1},getEndLineForSection:function(e){return this._sections[e]&&this._sections[e].end.getLine()-1},getSectionNumberForNode:function(e){var t=this._lineNumberService.getLineNumber(e.rootContainer());return this.getSectionNumberForLine(t)},getSectionForNode:function(e){var t=this._lineNumberService.getLineNumber(e.rootContainer());return this.getSectionForLine(t)},getSectionNumberForLine:function(e){var t=this.getSectionForLine(e);return null!==t?t.number:-1},getSectionForLine:function(e){return this._ensureBuilt(),this._sectionRangeTree.find(e)},getAllSectionsForLine:function(e){return this._ensureBuilt(),this._sectionRangeTree.findAll(e)},getOuterSectionForLine:function(e){return this._ensureBuilt(),this._sectionRangeTree.find(e,!0)},getOuterSectionNumberForLine:function(e){var t=this.getOuterSectionForLine(e);return null!==t?t.number:-1},hasSection:function(){return this._sections.length>0},getLastSectionNumber:function(){this._ensureBuilt();var e=this._sectionRangeTree.getTopLevelRanges(),t=e[e.length-1];return t?t.obj.number:-1},hasExplicitSection:function(){return 0!==this._sections.length&&(this._sections.length>1||!this._sections[0].implicitSection)},destroy:function(){this.inherited(arguments),this._clearSections()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7135),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.document","rtc.cursor","rtc.code.sections.model"]}},createInstance:function(e,i,n,o){return new t(e,i,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,n,o,r){this._internalDocument=e,this._document=n,this._cursor=o,this._sectionModel=r,this._currentSectionNumber=-1,this._lastLine=null,this.own(i.after(o,"onChange",t.hitch(this,"_updateCurrentSection",!1))),this.own(i.after(r,"onCurrentSectionInvalidated",t.hitch(this,"_updateCurrentSection"),!0))},_updateCurrentSection:function(e,t){if(e)this._currentSectionNumber=-1,this._lastLine=null;else if(t&&-1!==this._currentSectionNumber)return;var i=this._cursor.getNode().rootContainer();if(!(this._lastLine===i&&this._currentSectionNumber>-1)){var n=i?this._sectionModel.getSectionNumberForNode(i):-1;this._lastLine=i,n!==this._currentSectionNumber&&(this._currentSectionNumber=n,this.onCurrentSectionChanged())}},onCurrentSectionChanged:function(){},getCurrentSectionNumber:function(){return this._currentSectionNumber},getCurrentSection:function(){return this._currentSectionNumber<0?null:this._sectionModel.getSections()[this._currentSectionNumber]},getNextSection:function(){var e=this._sectionModel.getSections();return this._currentSectionNumber<0||this._currentSectionNumber===e.length-1?null:e[this._currentSectionNumber+1]},getPreviousSection:function(){return this._currentSectionNumber<0||0===this._currentSectionNumber?null:this._sectionModel.getSections()[this._currentSectionNumber-1]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7137)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.connectivity.contributors"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(219)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i){i=i||n,this.own(t.after(i,"onFatallyDisconnected",this._handleFatallyDisconnected.bind(this))),e.forEach((function(e){this.own(t.after(e,"onPossibleDisconnection",this._handlePossibleDisconnection.bind(this))),this.own(t.after(e,"onPossibleReconnection",this._handlePossibleReconnection.bind(this)))}),this),this._isFatallyDisconnected=!1},_handleFatallyDisconnected:function(){this._isFatallyDisconnected=!0,this.onFatallyDisconnected()},onFatallyDisconnected:function(){},_handlePossibleDisconnection:function(){this._isFatallyDisconnected||this.onPossibleDisconnection()},onPossibleDisconnection:function(){},_handlePossibleReconnection:function(){this._isFatallyDisconnected||this.onPossibleReconnection()},onPossibleReconnection:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7139)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(219)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){e=e||n,this.own(t.after(e,"onConnected",this._handleConnected.bind(this))),this.own(t.after(e,"onDisconnected",this._handleDisconnected.bind(this))),this.own(t.after(e,"onNotConnected",this._handleNotConnected.bind(this))),this.own(t.after(e,"onReconnected",this._handleReconnected.bind(this)))},_handleConnected:function(){this.onPossibleReconnection()},_handleDisconnected:function(){this.onPossibleDisconnection()},_handleNotConnected:function(){this.onPossibleDisconnection()},_handleReconnected:function(){this.onPossibleReconnection()},onPossibleReconnection:function(){},onPossibleDisconnection:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7141)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.view.styles.globalstylechanger","rtc.settings.service"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(447),i(203),i(207)],o=i.dj.d(n,(function(e,t,i){return t(i,{constructor:function(e,t){this._globalStyleChanger=e,this._settingsService=t,this._listeners={}},register:function(e,t){this.unregister(t),this._settingsService.getSetting(e).then(function(e){this._changeColor(t,e)}.bind(this),(function(e){})),this._listeners[t]=this._settingsService.listenToSettingChange(e,function(e){this._changeColor(t,e)}.bind(this))},unregister:function(e){void 0!==this._listeners[e]&&(this._listeners[e].remove(),delete this._listeners[e])},_changeColor:function(t,i){this._globalStyleChanger.insertOrReplaceRule(t,[{name:"color",value:new e(i)}])},destroy:function(){Object.keys(this._listeners).forEach(e=>this.unregister(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1109)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7144)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{PRIORITY:{HOVER:0,AUTO:5,PROMPT:10,ON_DEMAND:15},constructor:function(){this._tooltipInfo=null},requestTooltip:function(e,i,n){return n=n||this.PRIORITY.HOVER,this._tooltipInfo&&n<this._tooltipInfo.priority?null:(this._tooltipInfo&&this._closeTooltip(),this._tooltipInfo=this._createTooltipInfo(e,i,n),this._showTooltip(),{remove:t.hitch(this,"_handleNotifyClosed",this._tooltipInfo)})},_createTooltipInfo:function(e,t,i){return{show:e,close:t,priority:i}},_showTooltip:function(){this._tooltipInfo.show()},_closeTooltip:function(){this._tooltipInfo.close()},_handleNotifyClosed:function(e){e===this._tooltipInfo&&(this._tooltipInfo=null)},destroy:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7146)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(208),i(203),i(204),i(282),i(1584)],o=i.dj.d(n,(function(e,t,i,n,o){return t(o,{constructor:function(){this._listenersMap=n.createMap()},registerHoverNotifier:function(t){this._listenersMap.set(t,[e.after(t,"onHover",i.hitch(this,"onHover"),!0),e.after(t,"onHoverAway",i.hitch(this,"onHoverAway"),!0)])},unregisterHoverNotifier:function(e){this._listenersMap.has(e)&&(this._removeListeners(e),this._listenersMap.delete(e))},onHover:function(e,t){},onHoverAway:function(e){},_removeListeners:function(e){this._listenersMap.get(e).forEach((function(e){e.remove()}))},destroy:function(){this.inherited(arguments),this._listenersMap.forEach((function(e,t){this._removeListeners(t)}),this),this._listenersMap.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7148)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.service.actionhover"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(208),i(203),i(204),i(7149)],o=i.dj.d(n,(function(e,t,i,n,o){return i([e],{constructor:function(e){this._actionHoverService=e},createNotifier:function(e,t,i){return new o(this._actionHoverService,e,t,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(208),i(206),i(203),i(204),i(1584)],o=i.dj.d(n,(function(e,t,i,n,o,r){return n([e,r],{constructor:function(e,t,i,n){this._actionHoverService=e,this._domNode=t,this._actionId=i,this._payload=n,this._isHovering=!1,this._hoverEnabled=!1,this._setupHoverListeners()},_setupHoverListeners:function(){this.own(i(this._domNode,"mouseenter",o.hitch(this,"_handleMouseEnter"))),this.own(i(this._domNode,"mouseleave",o.hitch(this,"_handleMouseLeave"))),this._actionHoverService.registerHoverNotifier(this)},enable:function(){this._enableHoverEvents()},disable:function(){this._disableHoverEvents()},onHover:function(e,t){},onHoverAway:function(e){},_enableHoverEvents:function(){this._hoverEnabled=!0,this._isHovering&&this.onHover(this._actionId,this._payload)},_disableHoverEvents:function(){this._hoverEnabled=!1},_handleMouseEnter:function(){this._isHovering=!0,this._hoverEnabled&&this.onHover(this._actionId,this._payload)},_handleMouseLeave:function(){this._isHovering=!1,this._hoverEnabled&&this.onHoverAway(this._actionId)},destroy:function(){this.inherited(arguments),this._isHovering&&this._handleMouseLeave(),this._actionHoverService.unregisterHoverNotifier(this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1585)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7152)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return e&&e.getAllSettingsForSettingGroup},requires:function(){return{isApplicable:["rtc.settings.backingservice"],createInstance:["rtc.settings.backingservice"]}},createInstance:function(e){return new i(e)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(1585),i(7153)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._matlabSettingService=e,this._initializeSettingCache()},listenToSettingChange:function(e,t){var i=this._getSettingParts(e);return this._matlabSettingService.listenTo(i.settingGroup,i.settingName,(function(e){t(e.newValue)}))},getSetting:function(e){var i=new t,n=this._getSettingParts(e);return this._matlabSettingService.getSetting(n.settingGroup,n.settingName).then(function(e){i.resolve(e.value)}.bind(this)),i.promise},setSetting:function(e,t){this.inherited(arguments);var i=this._getSettingParts(e);return this._matlabSettingService.setSetting(i.settingGroup,i.settingName,t)},_getSettingParts:function(e){var t=e.split(".");return{settingGroup:t.splice(0,t.length-1),settingName:t[t.length-1]}},_initializeSettingCache:function(){this._syncSettingServiceWithMatlabSettings().then(function(e){e.forEach((function(e){this.own(e)}),this)}.bind(this))},_syncSettingServiceWithMatlabSettings:function(){var e=[],t=this._initializeSettingEntry.bind(this,e);return this._matlabSettingService.getAllSettingsForSettingGroup(["matlab"]).then((function(i){return i.forEach((function(e){var i=e.settingsGroup.join(".")+"."+e.setting;n.settingIds.indexOf(i)>=0&&t(e)})),e}),(function(e){Log.error("Could not sync settings: "+e)}))},_initializeSettingEntry:function(e,t){var i=t.settingsGroup.join(".")+"."+t.setting;this._setValueToCache(i,t.settingValue);var n=this._matlabSettingService.listenTo(t.settingsGroup,t.setting,function(e){var t=e.newValue;this._setValueToCache(i,t)}.bind(this));e.push(n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{settingIds:["matlab.colors.CommentColor","matlab.colors.StringColor","matlab.colors.SystemCommandColor","matlab.colors.KeywordColor","matlab.colors.ValidationSectionColor","matlab.colors.UnterminatedStringColor","matlab.colors.SyntaxErrorColor","matlab.editor.language.tlc.EnableSyntaxHighlighting","matlab.editor.language.tlc.KeywordColor","matlab.editor.language.tlc.CommentColor","matlab.editor.language.tlc.StringsColor","matlab.editor.language.tlc.MacroColor","matlab.editor.language.vhdl.EnableSyntaxHighlighting","matlab.editor.language.vhdl.KeywordColor","matlab.editor.language.vhdl.CommentColor","matlab.editor.language.vhdl.StringsColor","matlab.editor.language.vhdl.OperatorColor","matlab.editor.language.verilog.EnableSyntaxHighlighting","matlab.editor.language.verilog.KeywordColor","matlab.editor.language.verilog.CommentColor","matlab.editor.language.verilog.StringsColor","matlab.editor.language.verilog.OperatorColor","matlab.editor.language.c.EnableSyntaxHighlighting","matlab.editor.language.c.KeywordColor","matlab.editor.language.c.CommentColor","matlab.editor.language.c.StringsColor","matlab.editor.language.c.PreprocessorColor","matlab.editor.language.c.CharactersColor","matlab.editor.language.c.BadCharactersColor","matlab.editor.language.cpp.EnableSyntaxHighlighting","matlab.editor.language.cpp.KeywordColor","matlab.editor.language.cpp.CommentColor","matlab.editor.language.cpp.StringsColor","matlab.editor.language.cpp.PreprocessorColor","matlab.editor.language.cpp.CharactersColor","matlab.editor.language.cpp.BadCharactersColor","matlab.editor.language.xml.EnableSyntaxHighlighting","matlab.editor.language.xml.AttributeNameColor","matlab.editor.language.xml.AttributeValueColor","matlab.editor.language.xml.CdataSectionColor","matlab.editor.language.xml.CharacterColor","matlab.editor.language.xml.CommentColor","matlab.editor.language.xml.DoctypeDeclarationColor","matlab.editor.language.xml.ErrorColor","matlab.editor.language.xml.OperatorColor","matlab.editor.language.xml.TagColor","matlab.editor.language.xml.ProcessingInstructionColor","matlab.editor.language.html.EnableSyntaxHighlighting","matlab.editor.language.html.AttributeNameColor","matlab.editor.language.html.AttributeValueColor","matlab.editor.language.html.CdataSectionColor","matlab.editor.language.html.CharacterColor","matlab.editor.language.html.CommentColor","matlab.editor.language.html.DoctypeDeclarationColor","matlab.editor.language.html.ErrorColor","matlab.editor.language.html.OperatorColor","matlab.editor.language.html.TagColor","matlab.editor.language.html.ProcessingInstructionColor","matlab.editor.language.simscape.EnableSyntaxHighlighting","matlab.editor.language.simscape.KeywordColor","matlab.editor.language.simscape.StringColor","matlab.editor.language.simscape.UnterminatedStringColor","matlab.editor.language.simscape.CommentColor","matlab.editor.language.simscape.ErrorColor","matlab.editor.language.java.EnableSyntaxHighlighting","matlab.editor.language.java.CharactersColor","matlab.editor.language.java.CommentColor","matlab.editor.language.java.KeywordColor","matlab.editor.language.java.StringsColor","matlab.editor.language.java.BadCharactersColor","matlab.editor.language.javascript.EnableSyntaxHighlighting","matlab.editor.language.javascript.KeywordColor","matlab.editor.language.javascript.StringsColor","matlab.editor.language.javascript.CommentColor","matlab.editor.language.javascript.ErrorColor","matlab.editor.language.typescript.EnableSyntaxHighlighting","matlab.editor.language.typescript.KeywordColor","matlab.editor.language.typescript.StringsColor","matlab.editor.language.typescript.CommentColor","matlab.editor.language.typescript.ErrorColor","matlab.editor.language.json.EnableSyntaxHighlighting","matlab.editor.language.json.KeywordColor","matlab.editor.language.json.StringsColor","matlab.editor.language.json.CommentColor","matlab.editor.language.json.ErrorColor","matlab.editor.codefolding.EnableCodeFolding","matlab.editor.codefolding.FoldArgumentsBlocks","matlab.editor.codefolding.FoldComments","matlab.editor.codefolding.FoldBlockComments","matlab.editor.codefolding.FoldClassCode","matlab.editor.codefolding.FoldClassEnumerationBlocks","matlab.editor.codefolding.FoldClassEventBlocks","matlab.editor.codefolding.FoldClassMethodBlocks","matlab.editor.codefolding.FoldClassPropertiesBlocks","matlab.editor.codefolding.FoldForAndParforBlocks","matlab.editor.codefolding.FoldFunctionCode","matlab.editor.codefolding.FoldIfElseBlocks","matlab.editor.codefolding.FoldSections","matlab.editor.codefolding.FoldSpmdBlocks","matlab.editor.codefolding.FoldSwitchCaseBlocks","matlab.editor.codefolding.FoldTryCatchBlocks","matlab.editor.codefolding.FoldWhileBlocks","matlab.editor.codefolding.FoldForAndParforBlocks","matlab.editor.codefolding.InitiallyFoldArgumentsBlocks","matlab.editor.codefolding.InitiallyFoldComments","matlab.editor.codefolding.InitiallyFoldBlockComments","matlab.editor.codefolding.InitiallyFoldClassCode","matlab.editor.codefolding.InitiallyFoldClassEnumerationBlocks","matlab.editor.codefolding.InitiallyFoldClassEventBlocks","matlab.editor.codefolding.InitiallyFoldClassMethodBlocks","matlab.editor.codefolding.InitiallyFoldClassPropertiesBlocks","matlab.editor.codefolding.InitiallyFoldForAndParforBlocks","matlab.editor.codefolding.InitiallyFoldFunctionCode","matlab.editor.codefolding.InitiallyFoldIfElseBlocks","matlab.editor.codefolding.InitiallyFoldSections","matlab.editor.codefolding.InitiallyFoldSpmdBlocks","matlab.editor.codefolding.InitiallyFoldSwitchCaseBlocks","matlab.editor.codefolding.InitiallyFoldTryCatchBlocks","matlab.editor.codefolding.InitiallyFoldWhileBlocks","matlab.editor.codefolding.InitiallyFoldForAndParforBlocks","matlab.editor.debug.EnableNestedDebuggingLiveEditor","matlab.editor.displaysettings.DefaultView","matlab.editor.language.matlab.SmartIndentWhileTyping","matlab.editor.language.tlc.SmartIndentWhileTyping","matlab.editor.language.c.SmartIndentWhileTyping","matlab.editor.language.cpp.SmartIndentWhileTyping","matlab.editor.language.xml.SmartIndentWhileTyping","matlab.editor.language.html.SmartIndentWhileTyping","matlab.editor.language.simscape.SmartIndentWhileTyping","matlab.editor.language.java.SmartIndentWhileTyping","matlab.editor.language.javascript.SmartIndentWhileTyping","matlab.editor.language.typescript.SmartIndentWhileTyping","matlab.editor.language.json.SmartIndentWhileTyping","matlab.editor.language.matlab.comments.FromCommentStart","matlab.editor.language.matlab.comments.MaxWidth","matlab.codeanalyzer.EnableIntegratedMessages","matlab.codeanalyzer.UnderlineOption","matlab.colors.SyntaxErrorColor","matlab.colors.programmingtools.CodeAnalyzerWarningColor","matlab.colors.programmingtools.HighlightAutofixes","matlab.colors.programmingtools.AutofixHighlightColor","matlab.editor.AddLineTerminationOnSave","matlab.editor.OnlyStepInToUserFunctions","matlab.editor.export.pagesetup.Margins","matlab.editor.export.pagesetup.Orientation","matlab.editor.export.pagesetup.PaperSize","matlab.editor.export.pagesetup.pdf.Margins","matlab.editor.export.pagesetup.pdf.Orientation","matlab.editor.export.pagesetup.pdf.PaperSize","matlab.editor.export.pagesetup.docx.Margins","matlab.editor.export.pagesetup.docx.Orientation","matlab.editor.export.pagesetup.docx.PaperSize","matlab.editor.export.pagesetup.latex.Margins","matlab.editor.export.pagesetup.latex.Orientation","matlab.editor.export.pagesetup.latex.PaperSize","matlab.editor.export.FigureFormat","matlab.editor.export.FigureResolution","matlab.editor.export.latex.FigureFormat","matlab.editor.export.latex.FigureResolution","matlab.editor.export.pdf.FigureFormat","matlab.editor.export.pdf.FigureResolution","matlab.fonts.editor.normal.Size","matlab.fonts.editor.title.Size","matlab.fonts.editor.heading1.Size","matlab.fonts.editor.heading2.Size","matlab.fonts.editor.heading3.Size","matlab.editor.language.c.Extensions","matlab.editor.language.cpp.Extensions","matlab.editor.language.java.Extensions","matlab.editor.language.xml.Extensions","matlab.editor.language.html.Extensions","matlab.editor.language.javascript.Extensions","matlab.editor.language.typescript.Extensions","matlab.editor.language.json.Extensions","matlab.editor.language.tlc.Extensions","matlab.editor.language.vhdl.Extensions","matlab.editor.language.simscape.Extensions","matlab.editor.language.matlab.Extensions"]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7155)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.view.visibility"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(282),i(208)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e){this._visibilityNotifier=e,this._callbackMap=n.createMap(),e.whenInstanceAvailable?e.whenInstanceAvailable(this._handleVisibilityNotifierAvailable.bind(this)):this._handleVisibilityNotifierAvailable(e)},_handleVisibilityNotifierAvailable:function(e){this._visibilityNotifier=e,this.own(o.after(this._visibilityNotifier,"onShow",this._handleOnEditorShow.bind(this)))},runWhenVisible:function(e,t){this._isEditorVisible()?t.apply(e):this._callbackMap.set(e,t)},clearPendingRequests:function(e){this._callbackMap.delete(e)},_handleOnEditorShow:function(){this._callbackMap.forEach((e,t)=>{e.apply(t)}),this._callbackMap.clear()},_isEditorVisible:function(){return!this._visibilityNotifier.isActive||this._visibilityNotifier.isActive()},destroy:function(){this.inherited(arguments),this._callbackMap.clear()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7157)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.editordataservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{MATLAB_PREFERENCES_FEATURE_ID:"matlab.preferences",constructor:function(e){this._editorDataService=e,this._listener=this._editorDataService.listenTo(this.MATLAB_PREFERENCES_FEATURE_ID,t.hitch(this,"_preferencesChanged"))},_preferencesChanged:function(){this.onPreferencesChanged()},getValue:function(e,t){var i=this._editorDataService.get(this.MATLAB_PREFERENCES_FEATURE_ID);return i&&e in i?i[e]:t},getValues:function(e){var t=this._editorDataService.get(this.MATLAB_PREFERENCES_FEATURE_ID),i={};return e.forEach((function(e){i[e]=t[e]}),this),i},onPreferencesChanged:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7159)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view","rtc.domnode","rtc.service.documentloaded","rtc.internaldocument"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(212),i(207),i(373)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t,n,o){this._view=e,this._rtcDomNode=t,this._documentLoadedService=n,this._internalDocument=o,this._viewportOpenedWithContentPromise=new i,this._viewportOpenedPromise=new i,this._setupViewListener(),n.whenDocumentLoadedWithText(this._updateViewportOpenedWithContentPromise.bind(this))},_setupViewListener:function(){this._isViewPortOpenedWithRootDomNode()?(this._viewportOpenedPromise.resolve(),this._updateViewportOpenedWithContentPromise()):this._viewUpdatedHandler=t.after(this._view,"onViewUpdated",function(e){o.hasSizingEvent(e)&&this._isViewPortOpenedWithRootDomNode()&&(this._removeViewListener(),this._viewportOpenedPromise.resolve(),this._updateViewportOpenedWithContentPromise())}.bind(this),!0)},_isViewPortOpenedWithRootDomNode:function(){return this._view.getNodeBox(this._internalDocument.root)&&this._rtcDomNode.getBoundingClientRect().height>0},whenViewportOpenedWithContent:function(e){this._viewportOpenedWithContentPromise.then(e,(function(){}))},whenViewportOpened:function(e){this._viewportOpenedPromise.then(e,(function(){}))},_updateViewportOpenedWithContentPromise:function(){this._viewportOpenedPromise&&this._viewportOpenedPromise.isResolved()&&this._documentLoadedService.isDocumentLoadedWithText()&&this._viewportOpenedWithContentPromise.resolve()},_removeViewListener:function(){this._viewUpdatedHandler&&(this._viewUpdatedHandler.remove(),this._viewUpdatedHandler=null)},destroy:function(){this.inherited(arguments),this._viewportOpenedPromise.reject(),this._viewportOpenedPromise=null,this._viewportOpenedWithContentPromise.reject(),this._viewportOpenedWithContentPromise=null,this._removeViewListener()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7161)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{createInstance:[]}},createInstance:function(){return new n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(7162)],o=i.dj.d(n,(function(e,t,i){return e(i,{onShow:function(){},onHide:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{onShow:function(){throw new Error("Unimplemented OnShow method")},onHide:function(){throw new Error("Unimplemented onHide method")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7164)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.hidden.hiddennodemodel","rtc.view","rtc.internaldocument"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(229),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t,i){this._hiddenNodeModel=e,this._view=t,this._internalDocument=i,this._pendingEvent=!1},createHandle:function(){var e=i.generateUuid();return{hide:this._hide.bind(this,e),show:this._show.bind(this,e),showOnly:this._showOnly.bind(this,e),hideAll:this._hideAll.bind(this,e),showFullDocument:this._showFullDocument.bind(this,e),showAll:this._showAll.bind(this,e)}},_hide:function(e,t,i){this._hideAndPrepareEvent(t,e),i||this._firePendingEvent()},_show:function(e,t,i){this._showAndPrepareEvent(t,e),i||this._firePendingEvent()},_showOnly:function(e,t){this._hideAll(e,this._internalDocument.root.children,!0),this._showAll(e,t,!0),this._firePendingEvent()},_hideAll:function(e,t,i){t.forEach((function(t){this._hide(e,t,!0)}),this),i||this._firePendingEvent()},_showFullDocument:function(e){this._showAll(e,this._internalDocument.root.children,!1)},_showAll:function(e,t,i){t.forEach((function(t){this._show(e,t,!0)}),this),i||this._firePendingEvent()},_hideAndPrepareEvent:function(e,t){this._setAndPrepareEvent(this._hiddenNodeModel.setHidden.bind(this._hiddenNodeModel),e,t)},_showAndPrepareEvent:function(e,t){this._setAndPrepareEvent(this._hiddenNodeModel.setVisible.bind(this._hiddenNodeModel),e,t)},_setAndPrepareEvent:function(e,t,i){var n=e(t,i);this._layoutNode(n)},_layoutNode:function(e){e&&(this._view.layoutNode(e),this._pendingEvent=!0)},_firePendingEvent:function(){this._pendingEvent&&(this._view.onLayoutChange(),this._pendingEvent=!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1210)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t,i){this._corePluginResolver=i},_getPluginFromProvider:function(e,t){var i=this._pluginRegistryManager.getRegistryByKey(t),n=!i||this._isViewPlugin(i)||i.isSubsystemEntry;return n?this.inherited(arguments):this._getSharedPlugin(t)},_getSharedPlugin:function(e){if(this._corePluginResolver){var t=this._corePluginResolver.getDependency(e);return this._cachedInjector.injectDependency(e,t),t}throw new Error("Tried to construct a shared plugin without a core plugin resolver")},_isViewPlugin:function(e){return!e.isSharedPlugin}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(209),i(205),i.dj.c(e.i)],o=i.dj.d(n,(function(e,t,i){return{getInstanceDependencies:function(e){return this._getDependenciesGivenMethodName(e,"createInstance")},_getDependenciesGivenMethodName:function(i,n){e.assert(i instanceof t,"Not a ProviderInterface.");var o=i.requires(),r=o&&o[n];return r||[]},getIsApplicableDependencies:function(e){return this._getDependenciesGivenMethodName(e,"isApplicable")},_constructObjectFromAbsolutePath:function(e){return new(i(e))(e)},constructProvider:function(i){var n=i instanceof t?i:this._constructObjectFromAbsolutePath(i);return e.assert(n instanceof t,"Not a ProviderInterface."),n},isPluginApplicable:function(i,n){return e.assert(i instanceof t,"Not a ProviderInterface."),i.isApplicable.apply(i,n)},constructPlugin:function(i,n){return e.assert(i instanceof t,"Not a ProviderInterface."),i.createInstance.apply(i,n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){e.add("windows",(function(){return window.navigator.userAgent.toLowerCase().indexOf("windows")>=0})),e.add("linux",(function(){return window.navigator.userAgent.toLowerCase().indexOf("linux")>=0})),e.add("matlab",(function(){return window.navigator.userAgent.toLowerCase().indexOf("matlab")>=0}))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(230),i(7169),i(1572),i(1573),i(368)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(n,{constructor:function(e){this._args=e,this._pluginRegistryManager=this._args.pluginRegistryManager,this._viewSelectorId=this._args.viewSelectorId||"rtc.focusmanager",e.dependencies["rtc.id"]=e.dependencies["rtc.id"]||e.id,this._externalActionDataService=e.actionDataService||new s,e.actionDataService||this.own(this._externalActionDataService),e.dependencies["rtc.actionservice.external"]=this._externalActionDataService,e.dependencies["rtc.statestransfermanager"]=e.rtcStatesTransferManager;var i=t.mixin({},e.dependencies),n=e.rtcStatesTransferManager.getHandlerForCore();this._pluginResolver=new o(this._pluginRegistryManager,this._args.enabledPlugins,this._args.disabledPlugins,[],i,this._getCurrentViewId.bind(this),n),this.own(this._pluginResolver),this._viewSelector=this._pluginResolver.getDependency(this._viewSelectorId),this._pluginResolver.injectDependency("rtc.viewselector",this._viewSelector),e.dependencies["rtc.viewselector"]=this._viewSelector,this._pluginResolver.resolve(),n&&n.destroy();var r=e.dependencies["rtc.backingstore"],a=r&&r.getStorageData?r.getStorageData():"";this._internalDocument=this._pluginResolver.getDependency("rtc.internaldocument");var l=e.rtcStatesTransferManager.getCoreStates();l&&l.hasOwnProperty("rtc.internaldocument")?this._internalDocument.onDocumentReset():this._initializeDocument(e.initialDocumentText||a,e.readOnly)},_initializeDocument:function(e,t){e?this._internalDocument.openTextDocument(e,t):this._internalDocument.newDocument(t)},getCorePluginResolver:function(){return this._pluginResolver},getActionDataService:function(){return this._externalActionDataService},_getCurrentViewId:function(){return this._viewSelector?this._viewSelector.getCurrentViewId():null},serialize:function(e){var t=a.getPluginIdToInstanceMap(this._pluginResolver);return a.serializePlugins(e,t)},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(1208),i(7170),i(993)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,t,i,n,o,r,a){this._getCurrentViewId=r,this._rtcStatesTransferHandler=a,this.inherited(arguments)},injectDependency:function(e,t){this._injector.injectDependency(e,t)},getRegistryBasedDependencyInjector:function(e){return this._coreRegistryBasedDependencyInjectory=new n(e,this._rtcStatesTransferHandler,this._getCurrentViewId),this.own(t.after(this._coreRegistryBasedDependencyInjectory,"onViewPluginRequired",function(e){this.onViewPluginRequired(e)}.bind(this),!0)),this._coreRegistryBasedDependencyInjectory},onViewPluginRequired:function(e){},getAllViewPluginsRequired:function(){return this._coreRegistryBasedDependencyInjectory.getAllViewPluginsRequired()},postProcessPluginMapping:function(e){if(this._pluginsBySubsystems[o.DEFAULT_SUBSYSTEM_ID]){var t=e.createSharedPluginMap();this._removeViewPluginsFromDefaultSubsystem(t)}},_removeViewPluginsFromDefaultSubsystem:function(e){const t=o.DEFAULT_SUBSYSTEM_ID;this._pluginsBySubsystems[t]=this._pluginsBySubsystems[t].filter((function(t){var i=e[t];return void 0===i||i}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1210),i(7171)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,t,i){this._viewPluginsRequired=[],this._getCurrentViewId=i},_getPluginFromProvider:function(e,t){var i=this._pluginRegistryManager.getRegistryByKey(t),n=!i||this._isSharedPlugin(i)||i.isSubsystemEntry;if(n){var o=this.inherited(arguments);if(void 0!==o)return o}return this._createViewWrapper(t)},_createViewWrapper:function(e){var t=n.make(this._getCurrentViewId);return this._viewPluginsRequired.push(e),this._constructedPlugins.unshift({provider:n,plugin:t}),this._cachedInjector.injectDependency(e,t),this.onViewPluginRequired(e),t},_isSharedPlugin:function(e){return!!e.isSharedPlugin},onViewPluginRequired:function(e){},getAllViewPluginsRequired:function(){return this._viewPluginsRequired},destroy:function(){this.inherited(arguments),this._viewPluginsRequired=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212)],o=i.dj.d(n,(function(e){class t{constructor(e){this._plugins={},this._allPlugins=[],this._getCurrentViewId=e||function(){return null},this._deferred=null}getCurrentInstance(){var e=this._getCurrentViewId();return e?this._plugins[e]:this._allPlugins[0]||null}getAllInstances(){return this._allPlugins}callMethodOnEachInstance(e,t){t=t||[],this.getAllInstances().forEach((function(i){i[e].apply(i,t)}),this)}forEach(e,t){const i=this.getCurrentInstance();this.getAllInstances().forEach((function(n){e.call(t,n,n===i)}),this)}whenInstanceAvailable(t){var i=this.getCurrentInstance();i?t(i):(this._deferred||(this._deferred=new e),this._deferred.then(t,(function(){})))}onPluginAdded(e,t){}onPluginRemoved(e,t){}addPlugin(e,t){this._plugins[t]||(this._plugins[t]=e,this._allPlugins.push(e),this.onPluginAdded(e,t),this._deferred&&(this._deferred.resolve(e),this._deferred=null))}removePlugin(e){if(this._plugins[e]){var t=this._plugins[e];delete this._plugins[e],this._allPlugins.splice(this._allPlugins.indexOf(t),1),this.onPluginRemoved(t,e)}}isViewPluginWrapper(){return!0}destroy(){this._plugins=[]}}return{make:function(e){return new t(e)},destroyInstance:function(e){e.destroy()}}}),e,t),e.exports=o},function(e,t){e.exports='{\n "moduleDefs": [\n {\n "dependsOn": [],\n "provides": ["EmbeddedOutputsPluginRegistry"],\n "modulePath": {\n "amd": "rtc/core/registry/EmbeddedOutputsPluginRegistryModule"\n }\n }\n ]\n}\n'},function(e,t){e.exports='{\n "moduleDefs": [\n {\n "dependsOn": [],\n "provides": ["EquationEditorPluginRegistry"],\n "modulePath": {\n "amd": "rtc/core/registry/EquationEditorPluginRegistryModule"\n }\n }\n ]\n}\n'},function(e,t){e.exports='{\n "moduleDefs": [\n {\n "dependsOn": [],\n "provides": ["LiveAppsPluginRegistry"],\n "modulePath": {\n "amd": "rtc/core/registry/LiveAppsPluginRegistryModule"\n }\n }\n ]\n}\n'},function(e,t){e.exports='{\n "moduleDefs": [\n {\n "dependsOn": [],\n "provides": ["LiveControlsPluginRegistry"],\n "modulePath": {\n "amd": "rtc/core/registry/LiveControlsPluginRegistryModule"\n }\n }\n ]\n}\n'},function(e,t){e.exports='{\n "moduleDefs": [\n {\n "dependsOn": [],\n "provides": ["RichTextPluginRegistry"],\n "modulePath": {\n "amd": "rtc/core/registry/RichTextPluginRegistryModule"\n }\n }\n ]\n}\n'},function(e,t,i){var n,o;n=[i(203),i(229),i(1208),i(1210)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,t,i,n,o,r){this.inherited(arguments)},getRegistryBasedDependencyInjector:function(e){return new n(e,this._corePluginResolver)},getPluginPathsArray:function(e){var i=[];Object.keys(this._pluginsBySubsystems).forEach(function(e){var t=this._pluginsBySubsystems[e];i=i.concat(t)}.bind(this));var n=t.unique(i),o=e.getDependencyToProviderPath(),r=[];return n.forEach((function(e){var t=o[e];t&&(r=r.concat(t))})),r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_BACKGROUND_COLOR_SETTING:"BackgroundColor",constructor:function(e){this.settingsToCssMap={ErrorColor:".cwSample .errorMessage",WarningColor:".cwSample .warningMessage",HyperlinkColor:".cwSample .hyperlinkNode span > *",ForegroundColor:".cwSample",BackgroundColor:".cwSample"},this._pickers=e,Object.keys(this.settingsToCssMap).forEach((function(e){this._pickers.hasOwnProperty(e)&&this.own(this._pickers[e].on("change",this._handleUpdate.bind(this,e)))}),this)},_handleUpdate:function(e,t){var i=this.settingsToCssMap[e],n=document.querySelectorAll(i);e!==this._BACKGROUND_COLOR_SETTING?n.forEach((function(e){e.style.color=t.mwEventData.newValue})):n.forEach((function(e){e.style.backgroundColor=t.mwEventData.newValue}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2433),i(244),i(7184),i(215),i(216),i(308),i(286),i(269),i(520),i(1207),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([o,r],{_HIGHLIGHT_CURRENT_LINE:"HighlightCurrentLine",_SHOW_LINE_NUMBERS:"ShowLineNumbers",_DATA_TIPS_IN_EDIT_MODE:"DataTipsInEditMode",_DEFAULT_VIEW_SETTING:"DefaultView",_DEFAULT_VIEW_LABEL:"defaultViewLabel",_DEFAULT_VIEW_CODE:"code",_DEFAULT_VIEW_DOCUMENT:"document",_SHOW_OPEN_AS_LIVE_SCRIPT_BANNER:"ShowOpenAsLiveScriptBanner",_RHTL_SHOW_LINE:"ShowLine",_RHTL_LINE_COLUMN:"LineColumn",_HIGHLIGHT_CURRENT_LINE_COLOR:"HighlightCurrentLineColor",_RHTL_LINE_COLOR:"LineColor",_DISPLAY_SETTING_PATH:["matlab","editor","displaysettings"],_RHTL_SETTING_PATH:["matlab","editor","displaysettings","linelimit"],_DEFAULT_VIEW_WIDTH:150,_SPINNER_WIDTH:60,templateString:n,defaultViewLabel:t.defaultViewLabel,generalDisplayOptionsLabel:t.generalDisplayOptionsLabel,RHTLLabel:t.RHTLLabel,postCreate:function(){this.inherited(arguments),this._buildDisplayPreferencesInEditorPanel(),this._buildColorPicker(),this._RHTLWidgets=[this._RHTLColumnSpinner,this._RHTLColumnSpinnerLabel,this._RHTLColumnLabel,this._RHTLColorLabel],this._widgets=[this._highlightCurrentLineCheckbox,this._RHTLShowLineCheckbox,this._RHTLColumnSpinner,this._RHTLColorUtility,this._highlightLineColorUtility,this._showLineNumbersCheckbox,this._dataTipsInEditModeCheckbox,this._defaultViewComboBox,this._showOpenAsLiveScriptBannelastColorheckbox],this._toggleVisibility(),this._placeDisplayPreferencesInEditorPanel()},_updateCheckboxToMatchSetting:function(e,t,i){u.getSetting(e,t).then(function(e){this._destroyed||(i.set("checked",e.value),i.set("disabled",!1))}.bind(this))},_updateSpinnerToMatchSetting:function(e,t,i){u.getSetting(e,t).then(function(e){i.set("value",e.value)}.bind(this))},_buildDisplayPreferencesInEditorPanel:function(){this._highlightCurrentLineCheckbox=new a({tag:this._HIGHLIGHT_CURRENT_LINE,text:t.highlightCurrentLineLabel,disabled:!0}),this._showLineNumbersCheckbox=new a({tag:this._SHOW_LINE_NUMBERS,text:t.showLineNumbersLabel,disabled:!0}),this._dataTipsInEditModeCheckbox=new a({tag:this._DATA_TIPS_IN_EDIT_MODE,text:t.enableDatatipsLabel,disabled:!0}),this._defaultViewComboBox=new s({tag:this._DEFAULT_VIEW_LABEL,width:this._DEFAULT_VIEW_WIDTH,items:[{label:t.onRightViewLabel,value:this._DEFAULT_VIEW_CODE},{label:t.inlineViewLabel,value:this._DEFAULT_VIEW_DOCUMENT}],value:this._DEFAULT_VIEW_CODE}),this._showOpenAsLiveScriptBannelastColorheckbox=new a({tag:this._SHOW_OPEN_AS_LIVE_SCRIPT_BANNER,text:t.ShowOpenAsLiveScriptBannerLabel,disabled:!0}),this._RHTLShowLineCheckbox=new a({tag:this._RHTL_SHOW_LINE,text:t.RHTLShowLineLabel,disabled:!0}),this._RHTLColumnSpinner=new c({tag:this._RHTL_LINE_COLUMN,width:this._SPINNER_WIDTH,step:5,limits:{minimum:1,maximum:160}}),this._RHTLColumnSpinnerLabel=new l({text:t.RHTLColumnSpinnerLabel}),this._RHTLColumnLabel=new l({text:t.RHTLColumnLabel}),this._RHTLColorLabel=new l({text:t.RHTLColorLabel}),u.getSetting(this._DISPLAY_SETTING_PATH,this._DEFAULT_VIEW_SETTING).then(function(e){this._defaultViewComboBox.set("value",e.value)}.bind(this)),this._updateCheckboxToMatchSetting(this._DISPLAY_SETTING_PATH,this._HIGHLIGHT_CURRENT_LINE,this._highlightCurrentLineCheckbox),this._updateCheckboxToMatchSetting(this._DISPLAY_SETTING_PATH,this._SHOW_LINE_NUMBERS,this._showLineNumbersCheckbox),this._updateCheckboxToMatchSetting(this._DISPLAY_SETTING_PATH,this._DATA_TIPS_IN_EDIT_MODE,this._dataTipsInEditModeCheckbox),this._updateCheckboxToMatchSetting(this._DISPLAY_SETTING_PATH,this._SHOW_OPEN_AS_LIVE_SCRIPT_BANNER,this._showOpenAsLiveScriptBannelastColorheckbox),this._updateCheckboxToMatchSetting(this._RHTL_SETTING_PATH,this._RHTL_SHOW_LINE,this._RHTLShowLineCheckbox),this._updateSpinnerToMatchSetting(this._RHTL_SETTING_PATH,this._RHTL_LINE_COLUMN,this._RHTLColumnSpinner)},_buildColorPicker:function(){this._highlightLineColorUtility=new d({tag:"HighlightLineColorPreview"}),this._RHTLColorUtility=new d({tag:"RHTLColorPreview"});var e=u.getSetting(this._DISPLAY_SETTING_PATH,"HighlightCurrentLine"),t=u.getSetting(this._DISPLAY_SETTING_PATH,"HighlightCurrentLineColor");i([e,t]).then(function(e){var t=e[0].value;this._highlightLineColorUtility.loadSettings(e[1].value),t||this._highlightLineColorUtility.disableDropDown()}.bind(this));var n=u.getSetting(this._RHTL_SETTING_PATH,"ShowLine"),o=u.getSetting(this._RHTL_SETTING_PATH,"LineColor");i([n,o]).then(function(e){var t=e[0].value;this._RHTLColorUtility.loadSettings(e[1].value),t||(this._RHTLWidgets.forEach((function(e){e.set("disabled",!0)})),this._RHTLColorUtility.disableDropDown())}.bind(this))},_toggleVisibility:function(){this._highlightCurrentLineCheckbox.on("change",function(e){e.mwEventData.oldValue?this._highlightLineColorUtility.disableDropDown():this._highlightLineColorUtility.enableDropDown()}.bind(this)),this._RHTLShowLineCheckbox.on("change",function(e){this._RHTLWidgets.forEach((function(t){t.set("disabled",e.mwEventData.oldValue)})),e.mwEventData.oldValue?this._RHTLColorUtility.disableDropDown():this._RHTLColorUtility.enableDropDown()}.bind(this))},_placeDisplayPreferencesInEditorPanel:function(){this._highlightCurrentLineCheckbox.placeAt(this.highlightCurrentLineNode),this._highlightLineColorUtility.placeDropDown(this.highlightCurrentLineColorNode),this._RHTLShowLineCheckbox.placeAt(this.RHTLShowLineNode),this._RHTLColumnSpinner.placeAt(this.RHTLColumnSpinnerNode),this._RHTLColorUtility.placeDropDown(this.RHTLColorPickerNode),this._showLineNumbersCheckbox.placeAt(this.showLineNumbersNode),this._dataTipsInEditModeCheckbox.placeAt(this.enableDatatipsNode),this._defaultViewComboBox.placeAt(this.defaultViewComboBoxNode),this._showOpenAsLiveScriptBannelastColorheckbox.placeAt(this.ShowOpenAsLiveScriptBannerNode),this._RHTLColumnSpinnerLabel.placeAt(this.RHTLColumnSpinnerLabelNode),this._RHTLColumnLabel.placeAt(this.RHTLColumnNode),this._RHTLColorLabel.placeAt(this.RHTLColorNode)},startup:function(){this.inherited(arguments),this._widgets.forEach((function(e){e.startup()}))},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){u.setSetting(this._DISPLAY_SETTING_PATH,this._DATA_TIPS_IN_EDIT_MODE,this._dataTipsInEditModeCheckbox.get("checked")),u.setSetting(this._DISPLAY_SETTING_PATH,this._HIGHLIGHT_CURRENT_LINE,this._highlightCurrentLineCheckbox.get("checked")),u.setSetting(this._DISPLAY_SETTING_PATH,this._SHOW_LINE_NUMBERS,this._showLineNumbersCheckbox.get("checked")),u.setSetting(this._DISPLAY_SETTING_PATH,this._DEFAULT_VIEW_SETTING,this._defaultViewComboBox.get("value")),u.setSetting(this._DISPLAY_SETTING_PATH,this._SHOW_OPEN_AS_LIVE_SCRIPT_BANNER,this._showOpenAsLiveScriptBannelastColorheckbox.get("checked")),u.setSetting(this._DISPLAY_SETTING_PATH,this._HIGHLIGHT_CURRENT_LINE_COLOR,this._highlightLineColorUtility.getRGB()),u.setSetting(this._RHTL_SETTING_PATH,this._RHTL_SHOW_LINE,this._RHTLShowLineCheckbox.get("checked")),u.setSetting(this._RHTL_SETTING_PATH,this._RHTL_LINE_COLOR,this._RHTLColorUtility.getRGB()),u.setSetting(this._RHTL_SETTING_PATH,this._RHTL_LINE_COLUMN,this._RHTLColumnSpinner.get("value"))}})}),e,t),e.exports=o},function(e,t,i){e.exports={debugDisplayTitle:"表示",generalDisplayOptionsLabel:"一般的な表示オプション",highlightCurrentLineLabel:"現在の行を強調",showLineNumbersLabel:"行番号を表示",enableDatatipsLabel:"編集モードでデータ ヒントを表示",defaultViewLabel:"ライブ エディターの既定の表示:",onRightViewLabel:"右側に出力",inlineViewLabel:"インラインで出力",ShowOpenAsLiveScriptBannerLabel:"[ライブ スクリプトとして開く] バナーを表示",RHTLLabel:"テキスト右端の制限",RHTLShowLineLabel:"線を表示",RHTLColumnLabel:"配置:",RHTLColorLabel:"色:",RHTLColumnSpinnerLabel:"列"}},function(e,t,i){e.exports={debugDisplayTitle:"표시",generalDisplayOptionsLabel:"일반 표시 옵션",highlightCurrentLineLabel:"현재 라인 강조 표시",showLineNumbersLabel:"라인 번호 표시",enableDatatipsLabel:"편집 모드에서 데이터팁 사용",defaultViewLabel:"라이브 편집기 디폴트 보기:",onRightViewLabel:"출력값을 오른쪽에 표시",inlineViewLabel:"출력값을 인라인으로 표시",ShowOpenAsLiveScriptBannerLabel:"라이브 스크립트로 열기 배너 표시",RHTLLabel:"오른쪽 텍스트 제한",RHTLShowLineLabel:"라인 표시",RHTLColumnLabel:"배치:",RHTLColorLabel:"색:",RHTLColumnSpinnerLabel:"열"}},function(e,t,i){e.exports={debugDisplayTitle:"显示",generalDisplayOptionsLabel:"常规显示选项",highlightCurrentLineLabel:"突出显示当前行",showLineNumbersLabel:"显示行号",enableDatatipsLabel:"在编辑模式下启用数据提示",defaultViewLabel:"实时编辑器默认视图:",onRightViewLabel:"右侧输出",inlineViewLabel:"内嵌输出",ShowOpenAsLiveScriptBannerLabel:'显示 "以实时脚本方式打开" 横幅',RHTLLabel:"右侧文本限制",RHTLShowLineLabel:"显示线条",RHTLColumnLabel:"布局:",RHTLColorLabel:"颜色:",RHTLColumnSpinnerLabel:"列"}},function(e,t,i){e.exports={root:{debugDisplayTitle:"Display",generalDisplayOptionsLabel:"General display options",highlightCurrentLineLabel:"Highlight current line",showLineNumbersLabel:"Show line numbers",enableDatatipsLabel:"Enable datatips in edit mode",defaultViewLabel:"Live Editor default view:",onRightViewLabel:"Output on right",inlineViewLabel:"Output inline",ShowOpenAsLiveScriptBannerLabel:"Show the Open as a Live Script banner",RHTLLabel:"Right-hand text limit",RHTLShowLineLabel:"Show line",RHTLColumnLabel:"Placement:",RHTLColorLabel:"Color:",RHTLColumnSpinnerLabel:"columns"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="displayPrefs preferencePanelContent">\n\t<fieldset>\n\t\t<legend> ${generalDisplayOptionsLabel}</legend>\n\t\t<div class="highlightCurrentLinePrefs">\n\t\t\t<div class="checkbox" data-dojo-attach-point="highlightCurrentLineNode"></div>\n\t\t\t<div class="picker" data-dojo-attach-point="highlightCurrentLineColorNode" tabindex="-1"></div>\n\t\t</div>\n\t\t<div data-dojo-attach-point="showLineNumbersNode"> </div>\n\t\t<div data-dojo-attach-point="enableDatatipsNode"> </div>\n <div class="defaultViewContainer">\n <div class="defaultViewLabel" dota-dojo-attach-point="defaultViewLabel">${defaultViewLabel}</div>\n <div class="defaultViewComboBox" data-dojo-attach-point="defaultViewComboBoxNode"></div>\n </div>\n\t\t<div data-dojo-attach-point="ShowOpenAsLiveScriptBannerNode"> </div>\n\t</fieldset>\n\t<fieldset>\n\t\t<legend>${RHTLLabel}</legend>\n\t\t<div class="RHTLShowLine" data-dojo-attach-point="RHTLShowLineNode"> </div>\n\t\t<div class="RHTLContainer">\n\t\t\t<div class="RHTLNode" data-dojo-attach-point="RHTLColumnNode"></div>\n\t\t\t<div class="RHTLWidget" data-dojo-attach-point="RHTLColumnSpinnerNode"></div>\n\t\t\t<div class="RHTLLabel" data-dojo-attach-point="RHTLColumnSpinnerLabelNode"></div>\n\t\t</div>\n\t\t<div class="RHTLContainer">\n\t\t\t<div class="RHTLNode colorText" data-dojo-attach-point="RHTLColorNode"></div>\n\t\t\t<div class="RHTLWidget" data-dojo-attach-point="RHTLColorPickerNode" tabindex="-1"></div>\n\t\t</div>\n\t</fieldset>\n</div>'},function(e,t,i){var n,o;n=[i(216),i(215),i(203),i(2434),i(7190),i(308),i(243),i(422),i(258),i(241),i(726),i(7191),i(263),i(520)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=u.isLocalClient();return i([t,e],{_USE_MATLAB_EDITOR:"UseMATLABEditor",_OTHER_EDITOR:"OtherEditor",_RECENT_FILES_LIST_SIZE:"RecentFileListSize",_REOPEN_FILES_ON_RESTART:"ReopenFilesOnRestart",_NUMBER_OF_ENTRIES_SPINNER:"numberOfEntriesLabel",_OPEN_FILE_AT_BREAKPOINT:"OpenFileAtBreakpoint",_ONLY_STEP_INTO_USER_FUNCTIONS:"OnlyStepInToUserFunctions",_MATLAB_EDITOR_TAG:"matlabEditor",_OTHER_EDITOR_TAG:"otherEditor",_EDITOR_SELECTOR_BUTTON_GROUP:"editorSelection",_ADD_LINE_TERMINATION:"AddLineTerminationOnSave",_RELOAD_EXTERNALLY_MODIFIED_FILES:"ReloadFilesOnChange",_RECENT_FILE_LIST_SIZE_SPINNER_WIDTH:60,_NUMBER_OF_ENTRIES_MINIMUM_LIMIT:0,_NUMBER_OF_ENTRIES_MAXIMUM_LIMIT:12,_NUMBER_OF_ENTRIES_VALUE:12,_EDITOR_SETTING_PATH:["matlab","editor"],_OTHER_EDITOR_PATH_TEXTFIELD_WIDTH:"100%",_DISABLED:"disabled",_CLICK:"click",_CHANGE:"change",_VALUE:"value",_CHECKED:"checked",templateString:o,editorSelectionLabel:n.editorSelectionLabel,recentFileListLabel:n.recentFileListLabel,numberOfEntriesLabel:n.numberOfEntriesLabel,openingFilesInEditorLabel:n.openingFilesInEditorLabel,debuggingLabel:n.debuggingLabel,automaticFileChangesLabel:n.automaticFileChangesLabel,editorChoiceLabel:n.editorChoiceLabel,reloadExternallyModifiedFilesLabel:n.reloadExternallyModifiedFilesLabel,postCreate:function(){this.inherited(arguments),this._buildEditorPreferencesInEditorPanel(),this._buildAndPlaceEditorSelectionPanel()},_buildAndPlaceEditorSelectionPanel:function(){f&&(this._buildEditorSelectionPanel(),this._placeEditorSelectionPanel(),this.editorSelectionNode.style.display="block"),this._showEditorDebuggerNode(),this._placeOtherPreferencesInEditorPanel()},_placeOtherPreferencesInEditorPanel:function(){this._placeEditorPreferencesInEditorPanel()},_updateCheckboxToMatchSetting:function(e,t,i,n){h.getSetting([e,t],i).then(function(e){this._destroyed||(n.set(this._CHECKED,e.value),n.set(this._DISABLED,!1))}.bind(this))},_showEditorDebuggerNode:function(){this.editorDebuggerNode.style.display="block"},_buildEditorSelectionPanel:function(){this._matlabEditorRadioButton=new s({tag:this._MATLAB_EDITOR_TAG,text:n.matlabEditorRadioButtonLabel,buttonGroup:this._EDITOR_SELECTOR_BUTTON_GROUP,checked:!0}),this._otherEditorRadioButton=new s({tag:this._OTHER_EDITOR_TAG,text:n.otherEditorRadioButtonLabel,buttonGroup:this._EDITOR_SELECTOR_BUTTON_GROUP,checked:!1}),this._otherEditorPathTextField=new l({value:"",width:this._OTHER_EDITOR_PATH_TEXTFIELD_WIDTH,disabled:!0}),this._ellipsisButton=new a({text:"...",disabled:!0}),this._otherEditorRadioButton.on(this._CHANGE,function(e){this._otherEditorPathTextField.set(this._DISABLED,!e.mwEventData.newValue),this._ellipsisButton.set(this._DISABLED,!e.mwEventData.newValue)}.bind(this)),this._ellipsisButton.on(this._CLICK,function(){d.showOpenFileDialog({title:this.editorChoiceLabel}).then(function(e){e&&this._otherEditorPathTextField.set(this._VALUE,e.path+e.name)}.bind(this))}.bind(this)),h.getSetting(this._EDITOR_SETTING_PATH,this._USE_MATLAB_EDITOR).then(function(e){this._otherEditorPathTextField.set(this._DISABLED,e.value),this._ellipsisButton.set(this._DISABLED,e.value),this._matlabEditorRadioButton.set(this._CHECKED,e.value),this._otherEditorRadioButton.set(this._CHECKED,!e.value)}.bind(this)),h.getSetting(this._EDITOR_SETTING_PATH,this._OTHER_EDITOR).then(function(e){this._otherEditorPathTextField.set(this._VALUE,e.value)}.bind(this))},_buildEditorPreferencesInEditorPanel:function(){this._recentFileListSize=new p({tag:this._NUMBER_OF_ENTRIES_SPINNER,width:this._RECENT_FILE_LIST_SIZE_SPINNER_WIDTH,limits:{minimum:this._NUMBER_OF_ENTRIES_MINIMUM_LIMIT,maximum:this._NUMBER_OF_ENTRIES_MAXIMUM_LIMIT},value:this._NUMBER_OF_ENTRIES_VALUE}),this._onRestartReopenCheckbox=new r({tag:this._REOPEN_FILES_ON_RESTART,text:n.onRestartReopenLabel,disabled:!0}),this._openFileAtBreakpointCheckbox=new r({tag:this._OPEN_FILE_AT_BREAKPOINT,text:n.breakpointLabel,disabled:!0}),this._onlyStepInToUserFunctionsCheckbox=new r({tag:this._ONLY_STEP_INTO_USER_FUNCTIONS,text:n.onlyStepIntoUserFunctionsLabel,disabled:!0}),this._addLineTerminationCheckbox=new r({tag:this._ADD_LINE_TERMINATION,text:n.addLineTerminationLabel,disabled:!0}),this._reloadExternallyModifiedFilesCheckbox=new r({tag:this._RELOAD_EXTERNALLY_MODIFIED_FILES,text:n.reloadExternallyModifiedFilesLabel,disabled:!0}),h.getSetting(this._EDITOR_SETTING_PATH,this._RECENT_FILES_LIST_SIZE).then(function(e){this._recentFileListSize.set("value",e.value)}.bind(this)),this._updateCheckboxToMatchSetting("matlab","editor",this._REOPEN_FILES_ON_RESTART,this._onRestartReopenCheckbox),this._updateCheckboxToMatchSetting("matlab","editor",this._OPEN_FILE_AT_BREAKPOINT,this._openFileAtBreakpointCheckbox),this._updateCheckboxToMatchSetting("matlab","editor",this._ONLY_STEP_INTO_USER_FUNCTIONS,this._onlyStepInToUserFunctionsCheckbox),this._updateCheckboxToMatchSetting("matlab","editor",this._ADD_LINE_TERMINATION,this._addLineTerminationCheckbox),this._updateCheckboxToMatchSetting("matlab","editor",this._RELOAD_EXTERNALLY_MODIFIED_FILES,this._reloadExternallyModifiedFilesCheckbox)},_placeEditorSelectionPanel:function(){this._matlabEditorRadioButton.placeAt(this.matlabEditorRadioButtonNode),this._otherEditorRadioButton.placeAt(this.otherEditorRadioButtonNode),this._otherEditorPathTextField.placeAt(this.otherEditorPathTextFieldNode),this._ellipsisButton.placeAt(this.ellipsisButtonNode)},_placeEditorPreferencesInEditorPanel:function(){this._recentFileListSize.placeAt(this.numberOfEntriesNode),this._onRestartReopenCheckbox.placeAt(this.openingFilesInEditorNode),this._openFileAtBreakpointCheckbox.placeAt(this.openingFilesInEditorNode),this._onlyStepInToUserFunctionsCheckbox.placeAt(this.debuggingNode),this._addLineTerminationCheckbox.placeAt(this.automaticFileChangesNode),this._reloadExternallyModifiedFilesCheckbox.placeAt(this.reloadExternallyModifiedFilesNode)},startup:function(){this.inherited(arguments),f&&(this._matlabEditorRadioButton.startup(),this._otherEditorRadioButton.startup(),this._otherEditorPathTextField.startup(),this._ellipsisButton.startup()),this._recentFileListSize.startup(),this._onRestartReopenCheckbox.startup(),this._openFileAtBreakpointCheckbox.startup(),this._onlyStepInToUserFunctionsCheckbox.startup(),this._addLineTerminationCheckbox.startup(),this._reloadExternallyModifiedFilesCheckbox.startup()},validatePrefsPanel:function(){return!f||(!(!this._otherEditorPathTextField.get(this._DISABLED)&&0===this._otherEditorPathTextField.get(this._VALUE).trim().length)||(c.displayAlertDialog(n.matlabEditorRadioButtonLabel,n.otherEditorPathError),!1))},commitPrefsChanges:function(e){this._recentFileListSize.get("value")<=this._NUMBER_OF_ENTRIES_VALUE&&this._recentFileListSize.get("value")>=this._NUMBER_OF_ENTRIES_MINIMUM_LIMIT&&h.setSetting(this._EDITOR_SETTING_PATH,this._RECENT_FILES_LIST_SIZE,this._recentFileListSize.get("value")),h.setSetting(this._EDITOR_SETTING_PATH,this._REOPEN_FILES_ON_RESTART,this._onRestartReopenCheckbox.get(this._CHECKED)),h.setSetting(this._EDITOR_SETTING_PATH,this._OPEN_FILE_AT_BREAKPOINT,this._openFileAtBreakpointCheckbox.get(this._CHECKED)),h.setSetting(this._EDITOR_SETTING_PATH,this._ONLY_STEP_INTO_USER_FUNCTIONS,this._onlyStepInToUserFunctionsCheckbox.get(this._CHECKED)),h.setSetting(this._EDITOR_SETTING_PATH,this._ADD_LINE_TERMINATION,this._addLineTerminationCheckbox.get("checked")),h.setSetting(this._EDITOR_SETTING_PATH,this._RELOAD_EXTERNALLY_MODIFIED_FILES,this._reloadExternallyModifiedFilesCheckbox.get("checked")),f&&(h.setSetting(this._EDITOR_SETTING_PATH,this._USE_MATLAB_EDITOR,this._matlabEditorRadioButton.get(this._CHECKED)),h.setSetting(this._EDITOR_SETTING_PATH,this._OTHER_EDITOR,this._otherEditorPathTextField.get(this._VALUE)))}})}),e,t),e.exports=o},function(e,t,i){e.exports={editorTitle:"エディター/デバッガー",recentFileListLabel:"最近利用したファイルのリスト",numberOfEntriesLabel:"入力数:",openingFilesInEditorLabel:"エディター内にファイルを開く",onRestartReopenLabel:"MATLAB 終了時に開いていたファイルを再び開く",breakpointLabel:"MATLAB がブレークポイントに達したらファイルを自動的に開く",automaticFileChangesLabel:"自動的にファイルを変更",reloadExternallyModifiedFilesLabel:"外部で修正された未編集のファイルの再読み込み",addLineTerminationLabel:"ファイルの最後に行を追加",debuggingLabel:"デバッグ",onlyStepIntoUserFunctionsLabel:"コンテキストの [ステップ イン] ボタンをユーザー定義関数にのみ表示",matlabEditorRadioButtonLabel:"MATLAB エディター",otherEditorRadioButtonLabel:"テキスト エディター:",editorSelectionLabel:"エディター",otherEditorPathError:"代わりのテキスト エディターを指定するか、MATLAB エディターを選択してください"}},function(e,t,i){e.exports={editorTitle:"편집기/디버거",recentFileListLabel:"가장 최근에 사용한 파일 목록",numberOfEntriesLabel:"항목 수:",openingFilesInEditorLabel:"편집기에서 파일 열기",onRestartReopenLabel:"다시 시작할 때 이전 MATLAB 세션의 파일 다시 열기",breakpointLabel:"MATLAB이 중단점에 도달할 때 자동으로 파일 열기",automaticFileChangesLabel:"자동 파일 변경",reloadExternallyModifiedFilesLabel:"외부에서 수정된 편집되지 않은 파일 다시 불러오기",addLineTerminationLabel:"파일 끝에 개행 문자 추가",debuggingLabel:"디버그",onlyStepIntoUserFunctionsLabel:"사용자 정의 함수에 대해서만 상황별 [스텝 인] 버튼 표시",matlabEditorRadioButtonLabel:"MATLAB 편집기",otherEditorRadioButtonLabel:"텍스트 편집기:",editorSelectionLabel:"편집기",otherEditorPathError:"대체 텍스트 편집기를 지정하거나 MATLAB 편집기를 선택합니다."}},function(e,t,i){e.exports={editorTitle:"编辑器/调试器",recentFileListLabel:"最近使用的文件列表",numberOfEntriesLabel:"条目数:",openingFilesInEditorLabel:"在编辑器中打开文件",onRestartReopenLabel:"在重新启动时重新打开先前 MATLAB 会话中的文件",breakpointLabel:"当 MATLAB 到达断点时自动打开文件",automaticFileChangesLabel:"文件自动更改",reloadExternallyModifiedFilesLabel:"重新加载已在外部修改的未编辑的文件",addLineTerminationLabel:"在文件结尾添加行终止符",debuggingLabel:"调试",onlyStepIntoUserFunctionsLabel:'仅对用户定义的函数显示 "步入" 上下文按钮',matlabEditorRadioButtonLabel:"MATLAB 编辑器",otherEditorRadioButtonLabel:"文本编辑器:",editorSelectionLabel:"编辑器",otherEditorPathError:"指定备用文本编辑器或选择 MATLAB 编辑器"}},function(e,t,i){e.exports={root:{editorTitle:"Editor/Debugger",recentFileListLabel:"Most recently used file list",numberOfEntriesLabel:"Number of entries:",openingFilesInEditorLabel:"Opening files in editor",onRestartReopenLabel:"On restart reopen files from previous MATLAB session",breakpointLabel:"Automatically open files when MATLAB reaches a breakpoint",automaticFileChangesLabel:"Automatic file changes",reloadExternallyModifiedFilesLabel:"Reload unedited files that have been externally modified",addLineTerminationLabel:"Add line termination at end of file",debuggingLabel:"Debugging",onlyStepIntoUserFunctionsLabel:"Only show contextual Step In button for user-defined functions",matlabEditorRadioButtonLabel:"MATLAB Editor",otherEditorRadioButtonLabel:"Text editor:",editorSelectionLabel:"Editor",otherEditorPathError:"Specify an alternate text editor, or select MATLAB Editor"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="editorPrefs preferencePanelContent" data-dojo-attach-point="editorDebuggerNode">\n <fieldset class="editorSelectionContainer" data-dojo-attach-point="editorSelectionNode">\n <legend>${editorSelectionLabel}</legend>\n <div>\n <div class="matlabEditorRadioButton" data-dojo-attach-point="matlabEditorRadioButtonNode"></div>\n <div class="otherEditorRadioButton" data-dojo-attach-point="otherEditorRadioButtonNode"></div>\n <div class="otherEditorPathTextField" data-dojo-attach-point="otherEditorPathTextFieldNode"></div>\n <div class="ellipsisButton" data-dojo-attach-point="ellipsisButtonNode"></div>\n </div>\n </fieldset>\n <fieldset>\n <legend>${recentFileListLabel}</legend>\n <div class="recentFilesListContainer">\n <div class="numberOfEntriesLabel" dota-dojo-attach-point="numberOfEntriesLabel">${numberOfEntriesLabel}</div>\n <div class="numberOfEntriesSpinner" data-dojo-attach-point="numberOfEntriesNode"></div>\n </div>\n </fieldset>\n <br>\n <fieldset>\n <legend>${openingFilesInEditorLabel}</legend>\n <div data-dojo-attach-point="openingFilesInEditorNode"></div>\n </fieldset>\n <fieldset>\n <legend data-dojo-attach-point="automaticFileChangesLegendNode">${automaticFileChangesLabel}</legend>\n <div data-dojo-attach-point="reloadExternallyModifiedFilesNode"></div>\n <div data-dojo-attach-point="automaticFileChangesNode"></div>\n </fieldset>\n <fieldset>\n <legend>${debuggingLabel}</legend>\n <div data-dojo-attach-point="debuggingNode"></div>\n </fieldset>\n</div>'},function(e,t,i){var n,o;n=[i(247)],o=i.dj.d(n,(function(e){return{isLocalClient:function(){var t=e.parseUrl();return"localhost"===t.hostname||"127.0.0.1"===t.hostname}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(244),i(747),i(7197),i(216),i(215),i(2435),i(2436),i(2437),i(2438),i(2439),i(992),i(269),i(208),i(809),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([r,o],{templateString:n,codeFontLabel:i.codeFontLabel,textFontLabel:i.textFontLabel,customFontLabel:i.customFontLabel,sampleLabel:i.sampleLabel,currentlyUsedByLabel:i.currentlyUsedByLabel,noToolsForTheFontLabel:i.noToolsForTheFont,noToolsForCustomFontLabel:i.noToolsForCustomFont,_FONT_SIZE_UNIT:"pt",postCreate:function(){this.inherited(arguments),this._buildCodeFontPreferences(),this._placeCodeFontPreferences(),this._buildTextFontPreferences(),this._placeTextFontPreferences(),this._buildCustomFontPreferences(),this._placeCustomFontPreferences(),this._updateFontEntities(this._codeFontNameComboBox,this._codeFontStyleComboBox,this._codeFontSizeComboBox,this._codeFontPreviewTextArea,["matlab","fonts","codefont"],"monospace"),this._updateFontEntities(this._textFontNameComboBox,this._textFontStyleComboBox,this._textFontSizeComboBox,this._textFontPreviewTextArea,["matlab","fonts","textfont"],"sans-serif");const e=f.getDefaultMonospacedFontFamilyValue(),t=f.getDefaultSansSerifFontFamilyValue();this._codeFontNameComboBox.on("change",this._fontNameChanged.bind(this,this._codeFontPreviewTextArea,e)),this._codeFontStyleComboBox.on("change",this._fontStyleChanged.bind(this,this._codeFontPreviewTextArea)),this._codeFontSizeComboBox.on("change",this._fontSizeChanged.bind(this,this._codeFontPreviewTextArea)),this._textFontNameComboBox.on("change",this._fontNameChanged.bind(this,this._textFontPreviewTextArea,t)),this._textFontStyleComboBox.on("change",this._fontStyleChanged.bind(this,this._textFontPreviewTextArea)),this._textFontSizeComboBox.on("change",this._fontSizeChanged.bind(this,this._textFontPreviewTextArea)),p.after(this._codeFontNameComboBox,"onValidFontNameTyped",this._updateFontNamePreview.bind(this,this._codeFontPreviewTextArea,e),!0),p.after(this._codeFontSizeComboBox,"onValidFontSizeTyped",this._updateFontSizePreview.bind(this,this._codeFontPreviewTextArea),!0),p.after(this._textFontNameComboBox,"onValidFontNameTyped",this._updateFontNamePreview.bind(this,this._textFontPreviewTextArea,t),!0),p.after(this._textFontSizeComboBox,"onValidFontSizeTyped",this._updateFontSizePreview.bind(this,this._textFontPreviewTextArea),!0),this._createHyperlink()},_createHyperlink:function(){u.createHyperlink({wrapperNode:this.hyperlinkWrapper,wrapperText:i.hyperlinkWrapperText,linkText:i.hyperlinkText,navigateTo:i.customFontsTitle})},startup:function(){this.inherited(arguments),this._codeFontToolsLabel.startup(),this._codeFontNameComboBox.startup(),this._codeFontStyleComboBox.startup(),this._codeFontSizeComboBox.startup(),this._codeFontPreviewTextArea.startup(),this._textFontToolsLabel.startup(),this._textFontNameComboBox.startup(),this._textFontStyleComboBox.startup(),this._textFontSizeComboBox.startup(),this._textFontPreviewTextArea.startup(),this._customFontToolsLabel.startup(),this._updateCurrentlyUsedBy()},commitPrefsChanges:function(e){g.setSetting(["matlab","fonts","codefont"],"Name",this._codeFontNameComboBox.get("value")),g.setSetting(["matlab","fonts","codefont"],"Style",this._codeFontStyleComboBox.get("value")),g.setSetting(["matlab","fonts","codefont"],"Size",Number(this._codeFontSizeComboBox.get("value"))),g.setSetting(["matlab","fonts","textfont"],"Name",this._textFontNameComboBox.get("value")),g.setSetting(["matlab","fonts","textfont"],"Style",this._textFontStyleComboBox.get("value")),g.setSetting(["matlab","fonts","textfont"],"Size",Number(this._textFontSizeComboBox.get("value")))},validatePrefsPanel:function(){return!0},_buildCodeFontPreferences:function(){this._codeFontToolsLabel=new h({text:""}),this._codeFontNameComboBox=new a({tag:"codeFontName",width:250}),this._codeFontStyleComboBox=new c({tag:"codeFontStyle",width:100}),this._codeFontSizeComboBox=new l({tag:"codeFontSize",width:60}),this._codeFontPreviewTextArea=new s({tag:"codeFontPreview",width:"100%"})},_buildTextFontPreferences:function(){this._textFontToolsLabel=new h({text:""}),this._textFontNameComboBox=new a({tag:"textFontName",width:250}),this._textFontStyleComboBox=new c({tag:"textFontStyle",width:100}),this._textFontSizeComboBox=new l({tag:"textFontSize",width:60}),this._textFontPreviewTextArea=new s({tag:"textFontPreview",width:"100%"})},_buildCustomFontPreferences:function(){this._customFontToolsLabel=new h({text:""})},_placeCodeFontPreferences:function(){this._codeFontToolsLabel.placeAt(this.codeFontToolsNode),this._codeFontNameComboBox.placeAt(this.codeFontNameNode),this._codeFontStyleComboBox.placeAt(this.codeFontStyleNode),this._codeFontSizeComboBox.placeAt(this.codeFontSizeNode),this._codeFontPreviewTextArea.placeAt(this.codeFontPreviewNode)},_placeTextFontPreferences:function(){this._textFontToolsLabel.placeAt(this.textFontToolsNode),this._textFontNameComboBox.placeAt(this.textFontNameNode),this._textFontStyleComboBox.placeAt(this.textFontStyleNode),this._textFontSizeComboBox.placeAt(this.textFontSizeNode),this._textFontPreviewTextArea.placeAt(this.textFontPreviewNode)},_placeCustomFontPreferences:function(){this._customFontToolsLabel.placeAt(this.customFontToolsNode)},_fontNameChanged:function(e,t,i){this._updateFontNamePreview(e,t,i.mwEventData.newValue)},_updateFontNamePreview:function(e,t,i){this._updatePreview(e,"fontFamily",f.getFontFamilyValueFromSettingValue(i,t))},_fontStyleChanged:function(e,t){this._updatePreview(e,"fontWeight",f.getFontWeightValueFromSettingValue(t.mwEventData.newValue)),this._updatePreview(e,"fontStyle",f.getFontStyleValueFromSettingValue(t.mwEventData.newValue))},_fontSizeChanged:function(e,t){this._updateFontSizePreview(e,t.mwEventData.newValue)},_updateFontSizePreview:function(e,t){try{this._updatePreview(e,"fontSize",f.getFontSizeValueFromSettingValue(Number(t),this._FONT_SIZE_UNIT))}catch(e){}},_updateFontEntities:function(e,t,i,n,o,r){g.getSetting(o,"Name").then(function(t){e.set("value",t.value),this._updatePreview(n,"fontFamily",f.getFontFamilyValueFromSettingValue(t.value,r))}.bind(this)),g.getSetting(o,"Style").then(function(e){t.set("value",e.value),this._updatePreview(n,"fontWeight",f.getFontWeightValueFromSettingValue(e.value)),this._updatePreview(n,"fontStyle",f.getFontStyleValueFromSettingValue(e.value))}.bind(this)),g.getSetting(o,"Size").then(function(e){i.set("value",e.value);try{this._updatePreview(n,"fontSize",f.getFontSizeValueFromSettingValue(e.value,this._FONT_SIZE_UNIT))}catch(e){}}.bind(this))},_updatePreview:function(e,t,i){e.focusNode.style[t]=i},_updateCurrentlyUsedBy:function(){var e=[],i=[],n=[],o=[];d.getTools().forEach((function(t){o.push(g.getSetting(t.customFontSettingBase,"FontToUse").then(function(o){switch(o.value){case"CodeFont":e.push(t.label);break;case"TextFont":i.push(t.label);break;case"CustomFont":n.push(t.label)}}.bind(this)))}),this),t(o).then(function(){e.length>0?this._codeFontToolsLabel.set("text",this.currentlyUsedByLabel+e.join(", ")):this._codeFontToolsLabel.set("text",this.noToolsForTheFontLabel),i.length>0?this._textFontToolsLabel.set("text",this.currentlyUsedByLabel+i.join(", ")):this._textFontToolsLabel.set("text",this.noToolsForTheFontLabel),n.length>0?this._customFontToolsLabel.set("text",this.currentlyUsedByLabel+n.join(", ")):this._customFontToolsLabel.set("text",this.noToolsForCustomFontLabel)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){e.exports={fontsTitle:"フォント",codeFontLabel:"デスクトップ コード フォント",textFontLabel:"デスクトップ テキスト フォント",customFontLabel:"カスタム フォント",customFontsTitle:"カスタム",customPanelDescription:"各デスクトップ ツールに対して、デスクトップ コード フォント、デスクトップ テキスト フォント、またはカスタム フォントを使用フォントとして指定できます。メインのフォント基本設定パネルを使用してデスクトップ フォントのプロパティを設定してください。",desktopToolsLabel:"デスクトップ ツール",fontsToUseLabel:"使用するフォント",codeRadioButtonLabel:"デスクトップ コード",textRadioButtonLabel:"デスクトップ テキスト",customRadioButtonLabel:"カスタム:",noToolsForCustomFont:"カスタム フォントを使用したデスクトップ ツールがありません。",currentlyUsedByLabel:"現在使用中: ",noToolsForTheFont:"このフォントはどのデスクトップ ツールでも使用されていません。",sampleLabel:"サンプル",fontNotRecognized:"フォントが認識されません",invalidFontSize:"無効なフォント サイズ",editor:"エディター",plain:"標準",bold:"太字",italic:"イタリック",boldItalic:"太字イタリック",hyperlinkText:"カスタム フォント基本設定",hyperlinkWrapperText:"デスクトップ ツールにカスタム フォントを設定するには、${aTagStart}${hyperlinkText}${aTagEnd}に移動してください。"}},function(e,t,i){e.exports={fontsTitle:"글꼴",codeFontLabel:"데스크탑 코드 글꼴",textFontLabel:"데스크탑 텍스트 글꼴",customFontLabel:"사용자 지정 글꼴",customFontsTitle:"사용자 지정",customPanelDescription:"각 데스크탑 툴에 대해 데스크탑 코드 글꼴, 데스크탑 텍스트 글꼴 또는 사용자 지정 글꼴을 사용하도록 지정할 수 있습니다. 데스크탑 글꼴 속성을 설정하려면 [글꼴] 기본 설정 패널을 사용하십시오.",desktopToolsLabel:"데스크탑 툴",fontsToUseLabel:"사용할 글꼴",codeRadioButtonLabel:"데스크탑 코드",textRadioButtonLabel:"데스크탑 텍스트",customRadioButtonLabel:"사용자 지정:",noToolsForCustomFont:"사용자 지정 글꼴을 사용하는 데스크탑 툴이 없습니다.",currentlyUsedByLabel:"현재 다음에 사용 중: ",noToolsForTheFont:"이 글꼴은 현재 데스크탑 툴에서 전혀 사용되고 있지 않습니다.",sampleLabel:"샘플",fontNotRecognized:"글꼴을 인식할 수 없음",invalidFontSize:"유효하지 않은 글꼴 크기임",editor:"편집기",plain:"보통",bold:"굵게",italic:"기울임꼴",boldItalic:"굵은 기울임꼴",hyperlinkText:"사용자 지정 글꼴 기본 설정",hyperlinkWrapperText:"데스크탑 툴에 대한 사용자 지정 글꼴을 설정하려면 ${aTagStart}${hyperlinkText}${aTagEnd}(으)로 이동하십시오."}},function(e,t,i){e.exports={fontsTitle:"字体",codeFontLabel:"桌面代码字体",textFontLabel:"桌面文本字体",customFontLabel:"自定义字体",customFontsTitle:"自定义",customPanelDescription:"对于每种桌面工具,您可以将其指定为使用桌面代码字体、桌面文本字体或自定义字体。要设置桌面字体属性,请使用主字体预设项面板。",desktopToolsLabel:"桌面工具",fontsToUseLabel:"要使用的字体",codeRadioButtonLabel:"桌面代码",textRadioButtonLabel:"桌面文本",customRadioButtonLabel:"自定义:",noToolsForCustomFont:"没有任何桌面工具正在使用自定义字体。",currentlyUsedByLabel:"当前使用者: ",noToolsForTheFont:"该字体当前未被任何桌面工具使用。",sampleLabel:"示例",fontNotRecognized:"字体无法识别",invalidFontSize:"无效字体大小",editor:"编辑器",plain:"普通",bold:"粗体",italic:"斜体",boldItalic:"粗斜体",hyperlinkText:"自定义字体预设项",hyperlinkWrapperText:"要为任何桌面工具设置自定义字体,请转至 ${aTagStart}${hyperlinkText}${aTagEnd}。"}},function(e,t,i){e.exports={root:{fontsTitle:"Fonts",codeFontLabel:"Desktop code font",textFontLabel:"Desktop text font",customFontLabel:"Custom fonts",customFontsTitle:"Custom",customPanelDescription:"For each desktop tool, you can specify that it use the desktop code font, desktop text font, or a custom font. To set desktop font properties, use the main Fonts preference panel.",desktopToolsLabel:"Desktop tools",fontsToUseLabel:"Fonts to use",codeRadioButtonLabel:"Desktop code",textRadioButtonLabel:"Desktop text",customRadioButtonLabel:"Custom:",noToolsForCustomFont:"No desktop tools are using a custom font.",currentlyUsedByLabel:"Currently used by: ",noToolsForTheFont:"This font is not currently used by any desktop tools.",sampleLabel:"Sample",fontNotRecognized:"Font not recognized",invalidFontSize:"Invalid font size",editor:"Editor",plain:"Plain",bold:"Bold",italic:"Italic",boldItalic:"Bold Italic",hyperlinkText:"Custom Fonts preferences",hyperlinkWrapperText:"To set a custom font for any desktop tool, go to the ${aTagStart}${hyperlinkText}${aTagEnd}."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class= "fontPrefs preferencePanelContent">\n <fieldset class="fontField codeFont">\n <legend class="fontLabel">${codeFontLabel}</legend>\n <div class="fontFieldsBody">\n <div class="currentlyUsedBy">\n <span class="currentlyUsedByTools" data-dojo-attach-point="codeFontToolsNode"></span>\n </div>\n <div class="fontProperties">\n <span class="fontName" data-dojo-attach-point="codeFontNameNode"></span>\n <span class="fontStyle" data-dojo-attach-point="codeFontStyleNode"></span>\n <span class="fontSize" data-dojo-attach-point="codeFontSizeNode"></span>\n </div>\n <fieldset class="sampleField">\n <legend class="sampleLabel">${sampleLabel}</legend>\n <div class="fontPreview" data-dojo-attach-point="codeFontPreviewNode"></div>\n </fieldset>\n </div>\n </fieldset>\n\n <fieldset class="fontField textFont">\n <legend class="fontLabel">${textFontLabel}</legend>\n <div class="fontFieldsBody">\n <div class="currentlyUsedBy">\n <span class="currentlyUsedByTools" data-dojo-attach-point="textFontToolsNode"></span>\n </div>\n <div class="fontProperties">\n <span class="fontName" data-dojo-attach-point="textFontNameNode"></span>\n <span class="fontStyle" data-dojo-attach-point="textFontStyleNode"></span>\n <span class="fontSize" data-dojo-attach-point="textFontSizeNode"></span>\n </div>\n <fieldset class="sampleField">\n <legend class="sampleLabel">${sampleLabel}</legend>\n <div class="fontPreview" data-dojo-attach-point="textFontPreviewNode"></div>\n </fieldset>\n </div>\n </fieldset>\n\n <fieldset class="fontField customFont">\n <legend class="fontLabel">${customFontLabel}</legend>\n <div class="fontFieldsBody">\n <div class="currentlyUsedBy">\n <span class="currentlyUsedByTools" data-dojo-attach-point="customFontToolsNode"></span>\n </div>\n <div class="hyperlinkContainer" data-dojo-attach-point="hyperlinkWrapper"></div>\n </div>\n </fieldset>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(244),i(747),i(7199),i(216),i(215),i(2435),i(2436),i(2437),i(2438),i(2439),i(1078),i(422),i(208),i(809),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([r,o],{templateString:n,customPanelDescription:i.customPanelDescription,desktopToolsLabel:i.desktopToolsLabel,fontsToUseLabel:i.fontsToUseLabel,codeRadioButtonLabel:i.codeRadioButtonLabel,textRadioButtonLabel:i.textRadioButtonLabel,customRadioButtonLabel:i.customRadioButtonLabel,sampleLabel:i.sampleLabel,_FONTS_TO_USE_BUTTON_GROUP:"FontToUse",_FONT_TO_USE_KEY:"fontToUse",_FONT_NAME_KEY:"fontName",_FONT_STYLE_KEY:"fontStyle",_FONT_SIZE_KEY:"fontSize",_FONT_SIZE_UNIT:"pt",_CODE_FONT_VALUE:"CodeFont",_TEXT_FONT_VALUE:"TextFont",_CUSTOM_FONT_VALUE:"CustomFont",postCreate:function(){this.inherited(arguments),this._buildCustomFontPreferences(),this._placeCustomFontPreferences(),this._toolsStates={},this._toolsListBox.on("change",this._toolsListBoxChanged.bind(this)),[this._codeRadioButton,this._textRadioButton,this._customRadioButton].forEach((function(e){e.on("change",this._radioButtonChanged.bind(this))}),this),this._fontNameComboBox.on("change",this._customFontNameChanged.bind(this)),this._fontStyleComboBox.on("change",this._customFontStyleChanged.bind(this)),this._fontSizeComboBox.on("change",this._customFontSizeChanged.bind(this)),p.after(this._fontNameComboBox,"onValidFontNameTyped",this._updateFontNamePreview.bind(this),!0),p.after(this._fontSizeComboBox,"onValidFontSizeTyped",this._updateFontSizePreview.bind(this),!0)},startup:function(){this.inherited(arguments),this._toolsListBox.startup(),this._fontNameComboBox.startup(),this._fontStyleComboBox.startup(),this._fontSizeComboBox.startup(),this._fontPreviewTextArea.startup(),this._codeRadioButton.startup(),this._textRadioButton.startup(),this._customRadioButton.startup(),this._toolsListBoxChanged({mwEventData:{newValue:this._toolsListBox.get("value")}})},commitPrefsChanges:function(e){var i=[];Object.keys(this._toolsStates).forEach((function(e){var t=this._getToolState(e,this._FONT_TO_USE_KEY),n=d.getToolFromValue(e).customFontSettingBase;i.push(g.setSetting(n,"FontToUse",t)),t===this._CUSTOM_FONT_VALUE&&(i.push(g.setSetting(n,"Name",this._getToolState(e,this._FONT_NAME_KEY))),i.push(g.setSetting(n,"Style",this._getToolState(e,this._FONT_STYLE_KEY))),i.push(g.setSetting(n,"Size",this._getToolState(e,this._FONT_SIZE_KEY))))}),this),t(i).then(function(){this._toolsStates={}}.bind(this))},validatePrefsPanel:function(){return!0},_buildCustomFontPreferences:function(){this._toolsListBox=new u({tag:"toolsListBox",items:d.getTools(),selectionMode:"single",value:[d.getTools()[0].value],width:"100%",height:80}),this._codeRadioButton=new h({tag:this._CODE_FONT_VALUE,text:this.codeRadioButtonLabel,buttonGroup:this._FONTS_TO_USE_BUTTON_GROUP}),this._textRadioButton=new h({tag:this._TEXT_FONT_VALUE,text:this.textRadioButtonLabel,buttonGroup:this._FONTS_TO_USE_BUTTON_GROUP}),this._customRadioButton=new h({tag:this._CUSTOM_FONT_VALUE,text:this.customRadioButtonLabel,buttonGroup:this._FONTS_TO_USE_BUTTON_GROUP}),this._fontNameComboBox=new a({tag:"customFontName",width:200}),this._fontStyleComboBox=new c({tag:"customFontStyle",width:120}),this._fontSizeComboBox=new l({tag:"customFontSize",width:60}),this._fontPreviewTextArea=new s({tag:"customFontPreview",width:"100%"})},_placeCustomFontPreferences:function(){this._toolsListBox.placeAt(this.toolsListBoxNode),this._fontNameComboBox.placeAt(this.customFontNameNode),this._fontStyleComboBox.placeAt(this.customFontStyleNode),this._fontSizeComboBox.placeAt(this.customFontSizeNode),this._fontPreviewTextArea.placeAt(this.customFontPreviewNode),this._codeRadioButton.placeAt(this.codeRadioButtonNode),this._textRadioButton.placeAt(this.textRadioButtonNode),this._customRadioButton.placeAt(this.customRadioButtonNode)},_toolsListBoxChanged:function(e){var t=e.mwEventData.newValue[0];this._toolsStates[t]=this._toolsStates[t]||{},this._updateFontToUseRadioButtons(t)},_radioButtonChanged:function(e){e.mwEventData.newValue&&this._updateCustomFontEntities(this._getActiveTool(),e.detail.widget.tag)},_customFontNameChanged:function(e){this._updatePreview(this._getActiveTool(),this._getActiveFontToUse(),this._FONT_NAME_KEY,e.mwEventData.newValue)},_customFontStyleChanged:function(e){this._updatePreview(this._getActiveTool(),this._getActiveFontToUse(),this._FONT_STYLE_KEY,e.mwEventData.newValue)},_customFontSizeChanged:function(e){this._updatePreview(this._getActiveTool(),this._getActiveFontToUse(),this._FONT_SIZE_KEY,Number(e.mwEventData.newValue))},_getActiveTool:function(){return this._toolsListBox.get("value")[0]},_getActiveFontToUse:function(){return[this._codeRadioButton,this._textRadioButton,this._customRadioButton].find((function(e){return e.get("checked")})).get("tag")},_setToolState:function(e,t,i){this._toolsStates[e]=this._toolsStates[e]||{},this._toolsStates[e][t]=i},_getToolState:function(e,t){return this._toolsStates[e]&&this._toolsStates[e][t]},_fontPropertyResolver:function(e,t,i,n,o){var r=this._getToolState(e,t);r||0===r?o(r):g.getSetting(i,n).then((function(e){o(e.value)}))},_updateFontToUseRadioButtons:function(e){this._fontPropertyResolver(e,this._FONT_TO_USE_KEY,d.getToolFromValue(e).customFontSettingBase,"FontToUse",function(t){switch(t){case this._CODE_FONT_VALUE:this._updateCustomFontEntities(e,this._codeRadioButton.get("tag")),this._codeRadioButton.set("checked",!0);break;case this._TEXT_FONT_VALUE:this._updateCustomFontEntities(e,this._textRadioButton.get("tag")),this._textRadioButton.set("checked",!0);break;case this._CUSTOM_FONT_VALUE:this._updateCustomFontEntities(e,this._customRadioButton.get("tag")),this._customRadioButton.set("checked",!0)}}.bind(this))},_updateCustomFontEntities:function(e,t){var i,n=!0,o="none",r="none",a="none";switch(t){case this._CODE_FONT_VALUE:i=["matlab","fonts","codefont"];break;case this._TEXT_FONT_VALUE:i=["matlab","fonts","textfont"];break;case this._CUSTOM_FONT_VALUE:i=d.getToolFromValue(e).customFontSettingBase,o=this._FONT_NAME_KEY,r=this._FONT_STYLE_KEY,a=this._FONT_SIZE_KEY,n=!1}this._fontNameComboBox.set("disabled",n),this._fontStyleComboBox.set("disabled",n),this._fontSizeComboBox.set("disabled",n),this._fontPropertyResolver(e,o,i,"Name",function(i){this._fontNameComboBox.set("value",i),this._updatePreview(e,t,this._FONT_NAME_KEY,i)}.bind(this)),this._fontPropertyResolver(e,r,i,"Style",function(i){this._fontStyleComboBox.set("value",i),this._updatePreview(e,t,this._FONT_STYLE_KEY,i)}.bind(this)),this._fontPropertyResolver(e,a,i,"Size",function(i){this._fontSizeComboBox.set("value",i),this._updatePreview(e,t,this._FONT_SIZE_KEY,Number(i))}.bind(this))},_updatePreview:function(e,t,i,n){switch(this._setToolState(e,this._FONT_TO_USE_KEY,t),t===this._CUSTOM_FONT_VALUE&&this._setToolState(e,i,n),i){case this._FONT_NAME_KEY:this._updateFontNamePreview(n);break;case this._FONT_STYLE_KEY:this._applyPreviewStyle("fontWeight",f.getFontWeightValueFromSettingValue(n)),this._applyPreviewStyle("fontStyle",f.getFontStyleValueFromSettingValue(n));break;case this._FONT_SIZE_KEY:this._updateFontSizePreview(n)}},_updateFontNamePreview:function(e){this._applyPreviewStyle("fontFamily",f.getFontFamilyValueFromSettingValue(e,"monospace"))},_updateFontSizePreview:function(e){try{this._applyPreviewStyle("fontSize",f.getFontSizeValueFromSettingValue(e,this._FONT_SIZE_UNIT))}catch(e){}},_applyPreviewStyle:function(e,t){this._fontPreviewTextArea.focusNode.style[e]=t}})}),e,t),e.exports=o},function(e,t){e.exports='<div class= "customFontPrefs preferencePanelContent">\n <fieldset class="customFont">\n\n <div class="description">${customPanelDescription}</div>\n <div class="controls">\n <div class="desktopTools">\n <legend class="desktopToolsLabel">${desktopToolsLabel}</legend>\n <div class="toolsList" data-dojo-attach-point="toolsListBoxNode"></div>\n </div>\n\n <div class="fontsToUse">\n <legend class="fontsToUseLabel">${fontsToUseLabel}</legend>\n <div class="desktopCode" data-dojo-attach-point="codeRadioButtonNode"></div>\n <div class="desktopText" data-dojo-attach-point="textRadioButtonNode"></div>\n <div class="custom" data-dojo-attach-point="customRadioButtonNode"></div>\n <div class="fontName" data-dojo-attach-point="customFontNameNode"></div>\n <div class="sizeAndStyle">\n <span class="fontStyle" data-dojo-attach-point="customFontStyleNode"></span>\n <span class="fontSize" data-dojo-attach-point="customFontSizeNode"></span>\n </div>\n </div>\n </div>\n <div class="sampleField">\n <legend class="sampleLabel">${sampleLabel}</legend>\n <div class="fontPreview" data-dojo-attach-point="customFontPreviewNode"></div>\n </div>\n </fieldset>\n</div>'},function(e,t,i){var n,o;n=[i(216),i(215),i(203),i(2440),i(7205),i(286),i(269),i(597),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return i([t,e],{templateString:o,delimiterMatchingLabel:n.delimiterMatchingLabel,showMatchWithLabel:n.showMatchWithLabel,showMismatchWithLabel:n.showMismatchWithLabel,balanceLabel:n.balanceOptionLabel,highlightLabel:n.highlightOptionLabel,strikethroughLabel:n.strikethroughOptionLabel,_KEYBOARD_SETTING_PATH:["matlab","keyboard","delimiter"],_MATCH_WHILE_TYPING_SETTING:"ShowMatchesWhenTyping",_MATCH_ON_ARROW_KEY_SETTING:"ShowMatchesOnArrowKey",_MATCH_WHILE_TYPING_LABEL:"matchWhileTyping",_MATCH_ON_ARROW_KEY_LABEL:"matchOnArrowKey",postCreate:function(){this.inherited(arguments),this._buildDelimiterMatchingSection(),this._placeDelimiterMatchingSection()},_buildDelimiterMatchingSection:function(){this.matchWhileTypingCheckbox=new s(this._MATCH_WHILE_TYPING_LABEL,n.matchWhileTypingLabel,this.matchWhileTypingLabelNode),this.matchOnArrowKeyCheckbox=new s(this._MATCH_ON_ARROW_KEY_LABEL,n.matchOnArrowKeyLabel,this.matchOnArrowKeyLabelNode),l.getSetting(this._KEYBOARD_SETTING_PATH,this._MATCH_WHILE_TYPING_SETTING).then(function(e){this._destroyed||(this.matchWhileTypingCheckbox.getAssociatedWidget().set("disabled",!1),this.matchWhileTypingCheckbox.getAssociatedWidget().set("checked",e.value))}.bind(this)),l.getSetting(this._KEYBOARD_SETTING_PATH,this._MATCH_ON_ARROW_KEY_SETTING).then(function(e){this._destroyed||(this.matchOnArrowKeyCheckbox.getAssociatedWidget().set("disabled",!1),this.matchOnArrowKeyCheckbox.getAssociatedWidget().set("checked",e.value))}.bind(this))},_placeDelimiterMatchingSection:function(){this.matchWhileTypingCheckbox.placeInPanel(),this.matchOnArrowKeyCheckbox.placeInPanel()},startup:function(){this.inherited(arguments),this.matchWhileTypingCheckbox.getAssociatedWidget().startup(),this.matchOnArrowKeyCheckbox.getAssociatedWidget().startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){l.setSetting(this._KEYBOARD_SETTING_PATH,this._MATCH_WHILE_TYPING_SETTING,this.matchWhileTypingCheckbox.getAssociatedWidget().get("checked")),l.setSetting(this._KEYBOARD_SETTING_PATH,this._MATCH_ON_ARROW_KEY_SETTING,this.matchOnArrowKeyCheckbox.getAssociatedWidget().get("checked"))}})}),e,t),e.exports=o},function(e,t,i){e.exports={keyboardTitle:"キーボード",delimiterMatchingLabel:"区切り文字の一致",matchWhileTypingLabel:"入力中に一致と不一致を表示",matchOnArrowKeyLabel:"矢印キーの使用中に一致と不一致を表示"}},function(e,t,i){e.exports={keyboardTitle:"키보드",delimiterMatchingLabel:"구분 기호 일치",matchWhileTypingLabel:"입력할 때 일치 항목과 불일치 항목 표시",matchOnArrowKeyLabel:"화살표 키를 사용할 때 일치 항목과 불일치 항목 표시"}},function(e,t,i){e.exports={keyboardTitle:"键盘",delimiterMatchingLabel:"分隔符匹配",matchWhileTypingLabel:"键入时显示匹配项和不匹配项",matchOnArrowKeyLabel:"使用箭头键时显示匹配项和不匹配项"}},function(e,t,i){e.exports={root:{keyboardTitle:"Keyboard",delimiterMatchingLabel:"Delimiter Matching",matchWhileTypingLabel:"Show matches and mismatches when typing",matchOnArrowKeyLabel:"Show matches and mismatches when using arrow keys"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="keyboardPrefs preferencePanelContent">\n <fieldset>\n <legend>${delimiterMatchingLabel}</legend>\n <div data-dojo-attach-point="matchWhileTypingLabelNode"></div>\n <div data-dojo-attach-point="matchOnArrowKeyLabelNode"></div>\n </fieldset>\n</div>'},function(e,t,i){var n,o;n=[i(215),i(216),i(203),i(1587),i(7211),i(286),i(422),i(520),i(597),i(263),i(2441)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return i([e,t],{_SMART_INDENT:"SmartIndent",_NO_INDENT:"NoIndent",_ENABLE_VARIABLE_RENAMING:"EnableVariableAndFunctionRenaming",_WRAP_AUTOMATICALLY:"WrapAutomatically",_MAX_WIDTH:"MaxWidth",_COMMENT_START:"FromCommentStart",_FUNCTION_INDENTING_FORMAT:"FunctionIndentingFormat",_SMART_INDENT_WHILE_TYPING:"SmartIndentWhileTyping",_ENABLE_SYNTAX_HIGHLIGHTING:"EnableSyntaxHighlighting",_LANGUAGE_MATLAB_SETTING_PATH:["matlab","editor","language","matlab"],_COMMENTS_SETTING_PATH:["matlab","editor","language","matlab","comments"],_MAXIMUM_COLUMN_WIDTH_SPINNER_WIDTH:60,_FUNCTION_INDENTING_FORMAT_COMBOBOX_WIDTH:200,templateString:o,renamingLabel:n.renamingLabel,commentFormattingLabel:n.commentFormattingLabel,maximumColumnWidthLabel:n.maximumColumnWidthLabel,smartIndentLabel:n.smartIndentLabel,functionIndentingFormatLabel:n.functionIndentingFormatLabel,syntaxHighlightingLabel:n.syntaxHighlightingLabel,postCreate:function(){this.inherited(arguments),this._buildSyntaxHighlightingPanel(),this._placeSyntaxHighlightingPanel(),this._buildVariableAndFunctionRenamingPanel(),this._placeVariableAndFunctionRenamingPanel(),this._buildCommentFormattingPanel(),this._placeCommentFormattingPanel(),this._buildIndentingPanel(),this._placeIndentingPanel(),this._fileExtension=new d({settingPath:this._LANGUAGE_MATLAB_SETTING_PATH,languageName:"MATLAB",nodes:{addButtonNode:this.addButtonNode,removeButtonNode:this.removeButtonNode,treeNode:this.myTreeContainer,fileExtensionsNode:this.fileExtensions}})},_buildSyntaxHighlightingPanel:function(){this._syntaxHighlightingCheckboxAttribute=new l("syntaxHighlightingLabel",n.enableSyntaxHighlightingLabel,this.enableSyntaxHighlightingNode),c.getSetting(this._LANGUAGE_MATLAB_SETTING_PATH,this._ENABLE_SYNTAX_HIGHLIGHTING).then(function(e){this._destroyed||(this._syntaxHighlightingCheckboxAttribute.getAssociatedWidget().set("checked",e.value),this._syntaxHighlightingCheckboxAttribute.getAssociatedWidget().set("disabled",!1))}.bind(this))},_buildVariableAndFunctionRenamingPanel:function(){this._automaticVariableAndFunctionRenamingCheckboxAttribute=new l("renamingLabel",n.variableAndFunctionRenamingLabel,this.variableAndFunctionRenamingNode),c.getSetting(this._LANGUAGE_MATLAB_SETTING_PATH,this._ENABLE_VARIABLE_RENAMING).then(function(e){this._destroyed||(this._automaticVariableAndFunctionRenamingCheckboxAttribute.getAssociatedWidget().set("checked",e.value),this._automaticVariableAndFunctionRenamingCheckboxAttribute.getAssociatedWidget().set("disabled",!1))}.bind(this))},_buildCommentFormattingPanel:function(){this._maximumColumnWidthSpinner=new s({tag:"maximumColumnWidthLabel",width:this._MAXIMUM_COLUMN_WIDTH_SPINNER_WIDTH,step:5,limits:{minimum:1,maximum:500}}),this._wrapCommentsCheckboxAttribute=new l("wrapComments",n.wrapCommentsLabel,this.wrapCommentsNode),this._startFromLineRadioButton=new a({tag:"startFromLine",text:n.startFromLineRadioButtonLabel,buttonGroup:"commentWrappingRadioButton",checked:!0}),this._startFromCommentRadioButton=new a({tag:"startFromComment",text:n.startFromCommentRadioButtonLabel,buttonGroup:"commentWrappingRadioButton",checked:!1}),c.getSetting(this._COMMENTS_SETTING_PATH,this._WRAP_AUTOMATICALLY).then(function(e){this._wrapCommentsCheckboxAttribute.getAssociatedWidget().set("checked",e.value),this._wrapCommentsCheckboxAttribute.getAssociatedWidget().set("disabled",!1)}.bind(this)),c.getSetting(this._COMMENTS_SETTING_PATH,this._MAX_WIDTH).then(function(e){this._maximumColumnWidthSpinner.set("value",e.value)}.bind(this)),c.getSetting(this._COMMENTS_SETTING_PATH,this._COMMENT_START).then(function(e){this._startFromCommentRadioButton.set("checked",e.value)}.bind(this))},_buildIndentingPanel:function(){this._smartIndentingCheckboxAttribute=new l("smartIndenting",n.smartIndentingLabel,this.smartIndentingNode),this._functionIndentingFormatComboBox=new r({tag:"functionIndentingFormat",width:this._FUNCTION_INDENTING_FORMAT_COMBOBOX_WIDTH,items:[{label:n.indentNestedFunctionsLabel,value:"MixedFunctionIndent"},{label:n.indentAllFunctionsLabel,value:"AllFunctionIndent"},{label:n.indentClassicFunctionsLabel,value:"ClassicFunctionIndent"}]}),c.getSetting(this._LANGUAGE_MATLAB_SETTING_PATH,this._SMART_INDENT_WHILE_TYPING).then(function(e){this._destroyed||(e.value==this._SMART_INDENT?this._smartIndentingCheckboxAttribute.getAssociatedWidget().set("checked",!0):this._smartIndentingCheckboxAttribute.getAssociatedWidget().set("checked",!1),this._smartIndentingCheckboxAttribute.getAssociatedWidget().set("disabled",!1))}.bind(this)),c.getSetting(this._LANGUAGE_MATLAB_SETTING_PATH,this._FUNCTION_INDENTING_FORMAT).then(function(e){this._functionIndentingFormatComboBox.set("value",e.value)}.bind(this))},_placeSyntaxHighlightingPanel:function(){this._syntaxHighlightingCheckboxAttribute.placeInPanel()},_placeVariableAndFunctionRenamingPanel:function(){this._automaticVariableAndFunctionRenamingCheckboxAttribute.placeInPanel()},_placeCommentFormattingPanel:function(){this._maximumColumnWidthSpinner.placeAt(this.commentFormattingNode),this._wrapCommentsCheckboxAttribute.placeInPanel(),this._startFromLineRadioButton.placeAt(this.startFromLineRadioButtonNode),this._startFromCommentRadioButton.placeAt(this.startFromCommentRadioButtonNode)},_placeIndentingPanel:function(){this._smartIndentingCheckboxAttribute.placeInPanel(),this._functionIndentingFormatComboBox.placeAt(this.functionIndentingFormatComboBoxNode)},startup:function(){this.inherited(arguments),this._syntaxHighlightingCheckboxAttribute.getAssociatedWidget().startup(),this._automaticVariableAndFunctionRenamingCheckboxAttribute.getAssociatedWidget().startup(),this._maximumColumnWidthSpinner.startup(),this._wrapCommentsCheckboxAttribute.getAssociatedWidget().startup(),this._startFromLineRadioButton.startup(),this._startFromCommentRadioButton.startup(),this._smartIndentingCheckboxAttribute.getAssociatedWidget().startup(),this._functionIndentingFormatComboBox.startup(),this._fileExtension.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){c.setSetting(this._LANGUAGE_MATLAB_SETTING_PATH,this._ENABLE_SYNTAX_HIGHLIGHTING,this._syntaxHighlightingCheckboxAttribute.getAssociatedWidget().get("checked")),c.setSetting(this._LANGUAGE_MATLAB_SETTING_PATH,this._ENABLE_VARIABLE_RENAMING,this._automaticVariableAndFunctionRenamingCheckboxAttribute.getAssociatedWidget().get("checked")),c.setSetting(this._COMMENTS_SETTING_PATH,this._MAX_WIDTH,this._maximumColumnWidthSpinner.get("value")),c.setSetting(this._COMMENTS_SETTING_PATH,this._WRAP_AUTOMATICALLY,this._wrapCommentsCheckboxAttribute.getAssociatedWidget().get("checked")),c.setSetting(this._COMMENTS_SETTING_PATH,this._COMMENT_START,this._startFromCommentRadioButton.get("checked")),c.setSetting(this._LANGUAGE_MATLAB_SETTING_PATH,this._FUNCTION_INDENTING_FORMAT,this._functionIndentingFormatComboBox.get("value")),this._smartIndentingCheckboxAttribute.getAssociatedWidget().get("checked")?c.setSetting(this._LANGUAGE_MATLAB_SETTING_PATH,this._SMART_INDENT_WHILE_TYPING,this._SMART_INDENT):c.setSetting(this._LANGUAGE_MATLAB_SETTING_PATH,this._SMART_INDENT_WHILE_TYPING,this._NO_INDENT),this._fileExtension.commitPrefsChanges()}})}),e,t),e.exports=o},function(e,t,i){e.exports={languageTitle:"MATLAB 言語",syntaxHighlightingLabel:"構文の強調表示",enableSyntaxHighlightingLabel:"構文の強調を有効にする",renamingLabel:"変数名と関数名の変更",variableAndFunctionRenamingLabel:"変数名と関数名の自動変更を有効にする",commentFormattingLabel:"コメント書式",maximumColumnWidthLabel:"列の最大幅:",wrapCommentsLabel:"入力中にコメントを自動的に折り返す",smartIndentLabel:"インデント処理",smartIndentingLabel:"入力時にスマート インデントを適用",functionIndentingFormatLabel:"関数のインデント書式:",startFromLineRadioButtonLabel:"行の先頭から開始",startFromCommentRadioButtonLabel:"コメントの先頭から開始",indentNestedFunctionsLabel:"入れ子関数のインデント",indentAllFunctionsLabel:"すべての関数のインデント",indentClassicFunctionsLabel:"クラシック"}},function(e,t,i){e.exports={languageTitle:"MATLAB 언어",syntaxHighlightingLabel:"구문 강조 표시",enableSyntaxHighlightingLabel:"구문 강조 표시 사용",renamingLabel:"변수 및 함수 이름 바꾸기",variableAndFunctionRenamingLabel:"변수 및 함수 이름 자동 바꾸기 사용",commentFormattingLabel:"주석 형식 지정",maximumColumnWidthLabel:"최대 열 너비:",wrapCommentsLabel:"입력하는 동안 자동으로 주석 줄 바꿈",smartIndentLabel:"들여쓰기",smartIndentingLabel:"입력하는 동안 스마트 들여쓰기 적용",functionIndentingFormatLabel:"함수 들여쓰기 형식:",startFromLineRadioButtonLabel:"라인 시작 부분에서 시작",startFromCommentRadioButtonLabel:"주석 시작 부분에서 시작",indentNestedFunctionsLabel:"중첩 함수 들여쓰기",indentAllFunctionsLabel:"모든 함수 들여쓰기",indentClassicFunctionsLabel:"기본"}},function(e,t,i){e.exports={languageTitle:"MATLAB 语言",syntaxHighlightingLabel:"语法高亮",enableSyntaxHighlightingLabel:"启用语法高亮",renamingLabel:"变量和函数重命名",variableAndFunctionRenamingLabel:"启用变量和函数自动重命名",commentFormattingLabel:"注释格式设置",maximumColumnWidthLabel:"最大列宽度:",wrapCommentsLabel:"键入注释时自动换行",smartIndentLabel:"缩进",smartIndentingLabel:"键入时应用智能缩进",functionIndentingFormatLabel:"函数缩进格式:",startFromLineRadioButtonLabel:"从行开头开始",startFromCommentRadioButtonLabel:"从注释开头开始",indentNestedFunctionsLabel:"缩进嵌套函数",indentAllFunctionsLabel:"缩进所有函数",indentClassicFunctionsLabel:"经典"}},function(e,t,i){e.exports={root:{languageTitle:"MATLAB Language",syntaxHighlightingLabel:"Syntax highlighting",enableSyntaxHighlightingLabel:"Enable syntax highlighting",renamingLabel:"Variable and function renaming",variableAndFunctionRenamingLabel:"Enable automatic variable and function renaming",commentFormattingLabel:"Comment formatting",maximumColumnWidthLabel:"Maximum column width:",wrapCommentsLabel:"Wrap comments automatically while typing",smartIndentLabel:"Indenting",smartIndentingLabel:"Apply smart indenting while typing",functionIndentingFormatLabel:"Function indenting format:",startFromLineRadioButtonLabel:"Start from beginning of line",startFromCommentRadioButtonLabel:"Start from beginning of comment",indentNestedFunctionsLabel:"Indent nested functions",indentAllFunctionsLabel:"Indent all functions",indentClassicFunctionsLabel:"Classic"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="languagePrefs preferencePanelContent">\n <fieldset>\n <legend>${syntaxHighlightingLabel}</legend>\n <div data-dojo-attach-point="enableSyntaxHighlightingNode"></div>\n </fieldset>\n <fieldset>\n <legend>${renamingLabel}</legend>\n <div data-dojo-attach-point="variableAndFunctionRenamingNode"></div>\n </fieldset>\n <fieldset>\n <legend>${commentFormattingLabel}</legend>\n <div class="commentFormattingContainer">\n <div class="maximumColumnWidthLabel label" dota-dojo-attach-point="maximumColumnWidthLabel">${maximumColumnWidthLabel}</div>\n <div class="maximumColumnWidthSpinner" data-dojo-attach-point="commentFormattingNode"></div>\n <div class="startFromLineRadioButton" data-dojo-attach-point="startFromLineRadioButtonNode"></div>\n <div class="startFromCommentRadioButton" data-dojo-attach-point="startFromCommentRadioButtonNode"></div>\n </div>\n <div data-dojo-attach-point="wrapCommentsNode"></div>\n </fieldset>\n <fieldset>\n <legend>${smartIndentLabel}</legend>\n <div data-dojo-attach-point="smartIndentingNode"></div>\n <div class="functionIndentingContainer">\n <div class="functionIndentingFormatLabel label" dota-dojo-attach-point="functionIndentingFormatLabel">${functionIndentingFormatLabel}</div>\n <div class="functionIndentingFormatComboBox" data-dojo-attach-point="functionIndentingFormatComboBoxNode"></div>\n </div>\n </fieldset>\n <fieldset data-dojo-attach-point="fileExtensions" class="extensionsNode">\n <div class="FileExtensionsNode">\n <div class="FileExtensions MlikeFileExtenions" data-dojo-attach-point="myTreeContainer">\n </div>\n <div class="buttonsNode">\n <div data-dojo-attach-point="addButtonNode"></div>\n <div data-dojo-attach-point="removeButtonNode"></div>\n </div>\n </div>\n </fieldset>\n</div>'},function(e,t,i){var n,o;n=[i(218),i(220),i(7213),i(7214),i(7215),i(7216)],o=i.dj.d(n,(function(e,t){return t(e,"editorpanels-ui/l10n/nls/FileExtensionsLabels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={fileExtensionsLabel:"ファイル拡張子",fileExtensionsDialogTitle:"ファイル拡張子",addButtonLabel:"追加...",removeButtonLabel:"削除",textContentLabel:"新規ファイルの拡張子を追加:",alertDialogTitle:"MATLAB の基本設定",duplicateExtensionMessage:"ファイル拡張子を追加できません。ファイル拡張子 '${extension}' は、${language} の言語基本設定で既に定義されています。",duplicateExtensionWithInSamePreference:"この拡張子は既にこの言語に関連付けられています。",duplicateExtensionMessageWhileRestore:"1 つ以上の既定のファイル拡張子が、既に別の言語で定義されているため復元できません。",extensionLimitMessage:"ファイル拡張子を追加できません。リストに含まれるファイル拡張子の最大数は 100 です。",extensionLengthLimitMessage:"文字数は 100 未満でなければなりません",semiColonErrorMessage:"; はサポートされていません"}},function(e,t,i){e.exports={fileExtensionsLabel:"파일 확장자",fileExtensionsDialogTitle:"파일 확장자",addButtonLabel:"추가...",removeButtonLabel:"제거",textContentLabel:"새 파일 확장자 추가:",alertDialogTitle:"MATLAB 기본 설정",duplicateExtensionMessage:"파일 확장자를 추가할 수 없습니다. 파일 확장자 '${extension}'은(는) 이미 ${language} 언어 기본 설정에 정의되어 있습니다.",duplicateExtensionWithInSamePreference:"이 확장자는 이미 이 언어와 연결되어 있습니다.",duplicateExtensionMessageWhileRestore:"디폴트 파일 확장자 중 하나 이상을 복원할 수 없습니다. 다른 언어용으로 이미 정의되어 있기 때문입니다.",extensionLimitMessage:"파일 확장자를 추가할 수 없습니다. 나열된 파일 확장자의 최대 개수는 100개입니다.",extensionLengthLimitMessage:"문자 수는 100보다 작아야 함",semiColonErrorMessage:";은 지원되지 않음"}},function(e,t,i){e.exports={fileExtensionsLabel:"文件扩展名",fileExtensionsDialogTitle:"文件扩展名",addButtonLabel:"添加...",removeButtonLabel:"删除",textContentLabel:"添加新文件扩展名:",alertDialogTitle:"MATLAB 预设项",duplicateExtensionMessage:"无法添加文件扩展名。文件扩展名 '${extension}' 已在 ${language} 语言预设项中定义。",duplicateExtensionWithInSamePreference:"此扩展名已与该语言相关联。",duplicateExtensionMessageWhileRestore:"无法还原一个或多个默认文件扩展名,因为它们已为另一种语言定义。",extensionLimitMessage:"无法添加文件扩展名。列出的文件扩展名的最大数量为 100。",extensionLengthLimitMessage:"字符数必须小于 100",semiColonErrorMessage:"不支持 ;"}},function(e,t,i){e.exports={root:{fileExtensionsLabel:"File extensions",fileExtensionsDialogTitle:"File Fxtensions",addButtonLabel:"Add...",removeButtonLabel:"Remove",textContentLabel:"Add a new file extension:",alertDialogTitle:"MATLAB preferences",duplicateExtensionMessage:"Unable to add file extension. File extension '${extension}' is already defined in the ${language} language preferences.",duplicateExtensionWithInSamePreference:"This extension is already associated with this language.",duplicateExtensionMessageWhileRestore:"Unable to restore one or more of the default file extensions because they already defined for another language.",extensionLimitMessage:"Unable to add file extension. The maximum number of listed file extensions is 100.",extensionLengthLimitMessage:"Number of characters must be less than 100",semiColonErrorMessage:"; is not supported"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{MATLAB:"m;mlx",C:"c",CPP:"cpp;h;hpp;cu;cuh",Java:"java",XML:"xml;xsl;wsdl;arxml;x3d",HTML:"html;htm;shtml",Simscape:"ssc",JavaScript:"js",TypeScript:"ts",JSON:"json",Verilog:"v",VHDL:"vhd;vhdl",TLC:"tlc;cgt",VRML:"wrl;x3dv"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_languageExtensionsMap:{},getLanguagesExtensionMap:function(){return this._languageExtensionsMap},getExtensionsOfLanguage:function(e){return this._languageExtensionsMap[e]},setPropertyInMap:function(e,t){t instanceof Array?this._languageExtensionsMap[e]=t:"string"==typeof t&&this._languageExtensionsMap[e].push(t)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2444)],o=i.dj.d(n,(function(e){return function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._toggledIds=[],this._allExpanded=!1,e.allExpanded&&(this._allExpanded=!0)}return r(t,[{key:"isExpanded",value:function(e){var t=this._toggledIds.indexOf(e)>=0;return this._allExpanded?!t:t}},{key:"expandAll",value:function(){var e=this._toggledIds.length>0||!this._allExpanded;return this._allExpanded=!0,this._toggledIds=[],{changeOccurred:e,allExpanded:this._allExpanded,updateAll:!0}}},{key:"collapseAll",value:function(){var e=this._toggledIds.length>0||this._allExpanded;return this._allExpanded=!1,this._toggledIds=[],{changeOccurred:e,updateAll:!0}}},{key:"expand",value:function(t){if(!Array.isArray(t))throw new Error("'expand' expected an array in proxyNodeList.");for(var i=!1,n=this._toggledIds.slice(0),o=0;o<t.length;o+=1){var r=e.normalize(t[o]).id,a=n.indexOf(r);this._allExpanded?a>=0&&(n.splice(a,1),i=!0):a<0&&(n.push(r),i=!0)}this._toggledIds=n;var s=t.map((function(e){return e.id}));return{changeOccurred:i,changedIds:i?s:[],updateAll:!1}}},{key:"collapse",value:function(t){if(!Array.isArray(t))throw new Error("'expand' expected an array in proxyNodeList.");for(var i=!1,n=this._toggledIds.slice(0),o=0;o<t.length;o+=1){var r=e.normalize(t[o]).id,a=n.indexOf(r);this._allExpanded?a<0&&(n.push(r),i=!0):a>=0&&(n.splice(a,1),i=!0)}this._toggledIds=n;var s=t.map((function(e){return e.id}));return{changeOccurred:i,changedIds:i?s:[],updateAll:!1}}},{key:"getState",value:function(){return{toggledIds:this._toggledIds,allExpanded:this._allExpanded}}},{key:"setState",value:function(e){this._toggledIds=e.toggledIds,this._allExpanded=e.allExpanded}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n=[i(994),i(1212),i(2445),i(7223),i(7224),i(7225),i(7227),i(7228)],o=i.dj.d(n,(function(e,t,i,n,o,s,l,c){var d=i.ERROR_CIRCULAR_REF,u=i.ERROR_NODE_NON_EXISTENT,h=function(e){var t={};return e.forEach((function(e,i){t[e]=i})),t};return function(){function i(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,i),this._data=t||[],this._columnMap=o.columnMap||[0],this._columnMap||(this._columnMap=Object.keys(this._data[0])),this.defaultColumnCount=this._columnMap.length,this._paramToIndexMap=h(this._columnMap),o.metaDataColumns=o.metaDataColumns||[0],this._metaDataColumns=o.metaDataColumns.map((function(e){return n._paramToIndexMap[e]})),this._metaDataRanges=l.columnArray(this._metaDataColumns),this._sort=new s(o.sorted),this._sort.sorted&&this._sort.sort(this._data),this._isExpanded=o.isExpanded,this.getParentId=function(e){return e.parent},o.getParentId&&(this.getParentId=o.getParentId),this.setParentId=function(e,t){e.parent=t},o.setParentId&&(this.setParentId=o.setParentId),this.getId=function(e){return e.id},o.getId&&(this.getId=o.getId),this.getCheck=function(e){return e.check},o.getCheck&&(this.getCheck=o.getCheck),this.setCheck=function(e,t){e.check=!0===t},o.setCheck&&(this.setCheck=o.setCheck),this.isCheckboxTree=o.isCheckboxTree,this._isFiltering=!1,this._isSearching=!1,this._treeNodeIdCache=new e,this._treeRootId=null,this._getCheckedState=function(e){return!1},this.isCheckboxTree&&(this._getCheckedState=this._getCheckStatus),this._createTreeNode=function(e,t,i){var r=n.getId(e),a=n._isExpandable(r),s=n._getCheckedState(r);return o.createTreeNode(r,e,t,i,a&&n._isExpanded(r),a,s)},this._filterOptions={},this._indexCache=new c(this._data,{getId:this.getId}),this._createParentCache()}return r(i,[{key:"getNumColumns",value:function(){return this._data.length>0&&this._data[0].length||this.defaultColumnCount}},{key:"getCell",value:function(e,t){return e[t]}},{key:"setCell",value:function(e,t,i){e[t]=i}},{key:"getMetaDataRanges",value:function(){return this._metaDataRanges}},{key:"_hasChild",value:function(e){var i=this;return t.findIndex(this._data,(function(t){return i.getParentId(t)===e}))>=0}},{key:"_isExpandable",value:function(e){var t=this._parentCache.get(e);return!!(t&&t.length>0)}},{key:"_updateParentCacheNode",value:function(e,i){var n=this,o=this._parentCache.get(e);if(o&&0!==o.length){var r=this._getIndexById(this.getId(i.node)),a=o.length-1;if(this._getIndexById(this.getId(o[a].node))<r)o.push(i);else if(this._getIndexById(this.getId(o[0].node))>r)o.unshift(i);else{var s=t.findIndex(o,(function(e){return n._getIndexById(n.getId(e.node))>r}));o.splice(s,0,i)}}else this._parentCache.set(e,[i])}},{key:"_removeParentCacheNode",value:function(e,i){var n=this,o=this._parentCache.get(e);if(o){var r=this._getIndexById(this.getId(i.node)),a=t.findIndex(o,(function(e){return n._getIndexById(n.getId(e.node))===r}));o.splice(a,1)}}},{key:"_createChildIndexValue",value:function(e,t){return{index:e,node:t}}},{key:"_createParentCache",value:function(){this._parentCache=new e,this._rootNodes=[];for(var t=this._data.length,i=0;i<t;i+=1){var n=this._data[i],o=this.getParentId(n);this._updateParentCacheNode(o,{node:n})}}},{key:"filterTreeNodes",value:function(e,t){this._filterOptions=t;var i=t.displayChildren;this._filter=new n(e,{getId:this.getId,getParentId:this.getParentId,treeRootId:this._treeRootId});for(var o=0;o<this._data.length;o+=1){var r=this._data[o];if(this._treeNodeIdCache.set(this.getId(r),r),!this._filter.isFiltered(this.getId(r)))this._filter.isFilterMatch(r)&&(this._filter.addAncestorsToFilter(this.getParentId(r)),i&&this._addChildrenToFilter(this.getId(r)))}this._includeFilteredAncestors(),this._filter.clearAncestorIds(),this._isFiltering=!0;var a={changeOccurred:!0,updateAll:!0};return a}},{key:"normalizeFilterCriteria",value:function(e){return e&&(e.field||e.and||e.or)?e:{field:"",value:""}}},{key:"clearFilter",value:function(){var e={};return this._isFiltering?(this._isFiltering=!1,e=this._filter.clearFilter()):e.changeOccurred=!1,e}},{key:"_includeFilteredAncestors",value:function(){for(var e=this._filter.getAncestorIds(),t=0;t<e.length;t+=1)this._addFilterAncestors(e[t])}},{key:"_addChildrenToFilter",value:function(e){var t=this._parentCache.get(e);if(t)for(var i=[{arr:t,lastIndex:0}];i.length>0;){for(var n=i.length-1,o=i[n].lastIndex,r=i[n].arr,a=o,s=r.length;a<s;a+=1){var l=r[a].node.id;if(this._filter.addtoFilterCache(l),this._parentCache.has(l)){i.push({arr:this._parentCache.get(l),lastIndex:0}),i[n].lastIndex=a+1;break}}a===r.length&&i.pop()}}},{key:"_addFilterAncestors",value:function(e){for(;e!==this._treeRootId&&!this._filter.isFiltered(e);)this._filter.addtoFilterCache(e),e=this.getParentId(this._treeNodeIdCache.get(e))}},{key:"searchTreeNodes",value:function(e){this._search=new o(e,{getId:this.getId}),this._isSearching=!0;for(var t=0;t<this._data.length;t+=1){var i=this._data[t];this._search.searchNodeForMatches(i)}var n={changeOccurred:!0,updateAll:!0};return n}},{key:"clearSearch",value:function(){var e={};return this._isSearching?(this._isSearching=!1,e.changeOccurred=!0,e.updateAll=!0):e.changeOccurred=!1,e}},{key:"_updateResults",value:function(){var e=!1;if(this._isFiltering){var t=this._filter.getFilterCriteria();this.filterTreeNodes(t,this._filterOptions),e=!0}if(this._isSearching){var i=this._search.getSearchCriteria();this.searchTreeNodes(i),e=!0}return e}},{key:"flatten",value:function(){var e=this._createTreeNode,t=[],i=this._parentCache.get(this._treeRootId);if(i)for(var n=[{arr:i,lastIndex:0,path:{id:this._treeRootId,parent:null}}];n.length>0;){for(var o=n.length-1,r=n[o].lastIndex,a=n[o].arr,s=r,l=a.length,c=n[o].path;s<l;s+=1){var d={parent:c},u=e(a[s].node,o,d);d.id=u.id;var h=u.id,p=u.isExpanded,f=!0;if(this._isFiltering?(f=!1,this._filter.isFiltered(h)&&(t.push(u),f=!0)):t.push(u),this._isSearching&&this._search.isNodeAMatch(u)&&(u.highlight=this._search.getMatchesFromCache(u)),f&&p&&this._parentCache.has(h)){n.push({arr:this._parentCache.get(h),lastIndex:0,path:d}),n[o].lastIndex=s+1;break}}s===a.length&&n.pop()}return t}},{key:"_getIndexById",value:function(e){return this._indexCache.getIndex(e)}},{key:"_cacheParents",value:function(){for(var t=new e,i=0;i<this._data.length;i+=1){var n=this.getId(this._data[i]),o=this.getParentId(this._data[i]);t.set(n,o)}return t}},{key:"getAncestorIds",value:function(e){for(var t=this._cacheParents(),i=function(e){var i=void 0;return t.has(e)&&(i=t.get(e)),i},n=[],o=i(e);o&&o!==this._treeRootId;)n.push(o),o=i(o);return n}},{key:"_getChildIndiciesByParent",value:function(e){var t=this._parentCache.get(e);if(t){for(var i=[],n=t.length,o=0;o<n;o++){var r=t[o].node;i.push({index:this._getIndexById(this.getId(r)),node:r})}return i}return[]}},{key:"_getNodesByParent",value:function(e,t){var i=this,n=[],o=[];if(0===this._getChildIndiciesByParent(e).length&&e===this._treeRootId)return{leafNodeIds:n,parentNodeIds:o};return function e(r){var a=i._getChildIndiciesByParent(r);if(0!==a.length){t&&r&&o.push(r);for(var s=0;s<a.length;s++){var l=a[s];e(i.getId(l.node))}}else n.push(r)}(e),{leafNodeIds:n,parentNodeIds:o}}},{key:"getChildNodes",value:function(e,i){var n=this,o=this._getChildIndiciesByParent(e),r=null,a=[];return 0===o.length?[]:(o.forEach((function(e){var o=t.findIndex(i,(function(t){return e.node.id===t.id}));if(o>=0)r={index:o,node:i[o]};else{var s=n._createTreeNode(e.node,null);r={index:null,node:{id:s.id,isExpandable:s.isExpandable,isExpanded:s.isExpanded,level:s.level,data:s.data}}}a.push(r)})),a)}},{key:"getSiblingNodes",value:function(e){throw new Error("This configuration is not suported")}},{key:"getRootNodes",value:function(e){throw new Error("This configuration is not suported")}},{key:"getAncestorNodes",value:function(e){throw new Error("This configuration is not suported")}},{key:"_calcPlacementIndex",value:function(e,i,n){var o=this;if(this._sort.sorted)return this._sort.getInsertIndex(this._data,i);var r=n.place,a=this._data.length;if("first"===r)a=0;else if("last"===r)a=this._data.length;else if(n.node){var s=this.getId(n.node),l=!1,c=this._getChildIndiciesByParent(e);if(c){var d=t.find(c,(function(e){return s===o.getId(e.node)}));d&&(a=d.index,l=!0)}if(!l){var u=this._getIndexById(s);u>=0&&(a=u,l=!0)}l&&"after"===r&&(a+=1)}return a}},{key:"add",value:function(e,t,i){this.setParentId(t,e);var n=this._calcPlacementIndex(e,t,i),o=this._isExpandable(e);this._data.splice(n,0,t),this._indexCache.setNode(this.getId(t),n,{index:n,node:t}),this._updateParentCacheNode(e,{node:t});var r=[this.getId(t)];return o!==this._isExpandable(e)&&r.push(e),{changeOccurred:!0,changedIds:r,updateAll:this._updateResults()}}},{key:"remove",value:function(e,t,i){var n=this,o=this._getIndexById(t),r=this._isExpandable(e);if(o<0)return{changeOccurred:!1};var a=void 0;if(i.keepChildren){this._getChildIndiciesByParent(t).forEach((function(t){n.setParentId(t.node,e),n._updateParentCacheNode(e,{node:t.node})})),a=[o]}else{var s=[];!function e(t){if(0!==t.length){var i=[];t.forEach((function(e){var t=n.getId(e.node);i=i.concat(n._getChildIndiciesByParent(t))})),s=s.concat(i),e(i)}}([{node:this._data[o]}]),(a=s.map((function(e){return e.index}))).push(o),a.sort((function(e,t){return t-e}))}for(var l=[],c=0;c<a.length;c+=1){var d=a[c],u=this._data[d];l.push(this.getId(u)),this._removeParentCacheNode(this.getParentId(u),{node:u}),this._indexCache.removeNode(this.getId(u),d),this._data.splice(d,1)}return r!==this._isExpandable(e)&&l.push(e),{changeOccurred:!0,changedIds:l,updateAll:this._updateResults()}}},{key:"move",value:function(e,t,i,n){var o=this._getIndexById(t);if(o<0)return{changeOccurred:!1};if(i&&!this._indexCache.hasIndex(i)){var r=new Error("New parent Id does not exists");throw r.reason=u,r}if(this.getAncestorIds(i).indexOf(t)>=0||t===i){var a=new Error("Move caused a circular reference");throw a.reason=d,a}var s=this._calcPlacementIndex(i,this._data[o],n),l=this._isExpandable(i),c=this._isExpandable(e),h=this._data[o];o>=0&&s>=0&&o!==s?(this._removeParentCacheNode(e,{node:h}),this._indexCache.removeNode(t,o),this._data.splice(o,1),o<s&&(s-=1),this._data.splice(s,0,h),this._indexCache.setNode(t,s,{index:s,node:h}),this._updateParentCacheNode(i,{node:h})):o===s&&(this._removeParentCacheNode(e,{node:h}),this._updateParentCacheNode(i,{node:h})),this.setParentId(h,i);var p=[t];return c!==this._isExpandable(e)&&p.push(e),l!==this._isExpandable(i)&&p.push(i),{changeOccurred:!0,changedIds:p,updateAll:this._updateResults()}}},{key:"updateChecked",value:function(e,t){var i=this.getId(e);if(this._getIndexById(i)<0)return{changeOccurred:!1,changedIds:[],updateAll:!1};var n=this._getNodesByParent(i,!0),o=n.leafNodeIds,r=n.parentNodeIds;0===o.length&&o.push(i);var a=this._updateCheckedNodes(o,t),s=a.recalc,l=a.changedIds,c=this.getAncestorIds(this.getId(e));return r.length>0&&(l=l.concat(r)),c.length>0&&(l=l.concat(c)),{changeOccurred:s,changedIds:s?l:[],updateAll:!1}}},{key:"getCheckNodes",value:function(){for(var e=[],t=this._getNodesByParent(this._treeRootId,!0),i=t.leafNodeIds,n=t.parentNodeIds,o=0;o<i.length;o++){var r=i[o];this._getCheckStatusById(r)&&e.push(r)}for(var a=0;a<n.length;a++){var s=n[a],l=this._getNodesByParent(s).leafNodeIds;this._isEveryLeafNodeChecked(l)&&e.push(s)}return{checkTrueNodes:e}}},{key:"_updateCheckedNodes",value:function(e,t){for(var i=[],n=!1,o=0;o<e.length;o++){var r=e[o],a=this._getIndexById(r),s=this._data[a];this.getCheck(s)!==t&&(n=!0,this.setCheck(s,t),i.push(r))}return{recalc:n,changedIds:i}}},{key:"_getCheckStatus",value:function(e){var t=this._getNodesByParent(e).leafNodeIds;return 0===t.length?this._getCheckStatusById(e):!!this._isEveryLeafNodeChecked(t)||!!this._atleastOneleafNodeChecked(t)&&"mixed"}},{key:"_isEveryLeafNodeChecked",value:function(e){return t.every(e,(function(e){return this._getCheckStatusById(e)}),this)}},{key:"_atleastOneleafNodeChecked",value:function(e){return t.some(e,(function(e){return this._getCheckStatusById(e)}),this)}},{key:"_getCheckStatusById",value:function(e){var t=this._getIndexById(e),i=this._data[t];return this.getCheck(i)}},{key:"update",value:function(e,t,i){var n=this._getIndexById(t);if(n<0)return{changeOccurred:!1,changedIds:[],updateAll:!1};var o=this._data[n];for(var r in i)o[r]=i[r];if(this._sort.sorted){var a=this.getParentId(o);this._removeParentCacheNode(a,{node:o}),this._indexCache.removeNode(t,n),this._data.splice(n,1);var s=this._calcPlacementIndex(a,o,{});this._data.splice(s,0,o),this._indexCache.setNode(t,s,{index:s,node:o}),this._updateParentCacheNode(a,{node:o})}return{changeOccurred:!0,changedIds:[t],updateAll:this._updateResults()}}},{key:"runSort",value:function(e){if(this._sort.sorted)throw new Error("Dynamic sort should not be used after configuration sort");return this._data.sort(this._sort.generateCompareFunctionFromList(e)),this._indexCache._reindex(),this._createParentCache(),{changeOccurred:!0,updateAll:!0}}},{key:"registerCustomSort",value:function(e,t){this._sort.validateCustomSortName(e),this._sort.addCustomCompare(e,t)}}]),i}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cache=Object.create(null)}return r(e,[{key:"set",value:function(e,t){this.canIndex(e)&&(this._cache[e]=t)}},{key:"get",value:function(e){if(this.has(e))return this._cache[e]}},{key:"has",value:function(e){return e in this._cache}},{key:"remove",value:function(e){delete this._cache[e]}},{key:"keys",value:function(){var e=[];for(var t in this._cache)e.push(t);return e}},{key:"canIndex",value:function(e){return"string"==typeof e}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cache=new Map}return r(e,[{key:"set",value:function(e,t){this._cache.set(e,t)}},{key:"get",value:function(e){return this._cache.get(e)}},{key:"has",value:function(e){return this._cache.has(e)}},{key:"remove",value:function(e){this._cache.delete(e)}},{key:"keys",value:function(){return Array.from(this._cache.keys())}},{key:"canIndex",value:function(e){return!0}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(994)],o=i.dj.d(n,(function(e){return function(){function t(i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._filteredNodesCache=new e,this._filterCriteria=i,this._ancestorIds=[],this._getId=n.getId,this._getParentId=n.getParentId,this._treeRootId=n.treeRootId}return r(t,[{key:"_checkComposite",value:function(e){return e.and||e.or}},{key:"isFilterMatch",value:function(e){var t=!1;return(t=this._checkComposite(this._filterCriteria)?this._compositeCriteria(e,this._filterCriteria):this._filterNode(e,[this._filterCriteria],!1))&&this.addtoFilterCache(this._getId(e)),t}},{key:"_compareFunction",value:function(e,t,i){return(null!==e?i&&-1!==e.toString().toLowerCase().indexOf(t):null===t&&i)||!1}},{key:"_filterNode",value:function(e,t,i){for(var n=!0,o=0;o<t.length;o+=1){if(this._isBaseCriteria(t[o])){var r=t[o].value&&t[o].value.toString().toLowerCase(),a=t[o].field,s=e[a],l=!0;e.hasOwnProperty(a)||(n=!1,l=!1),""===r&&(n=!1,l=!1,""===s&&(n=!0,l=!0)),n=this._compareFunction(s,r,l)}else this._checkComposite(t[o])&&(n=this._compositeCriteria(e,t[o]));if(n===i)return i}return n}},{key:"_isBaseCriteria",value:function(e){return"value"in e}},{key:"_compositeCriteria",value:function(e,t){var i=!1;return t.and?i=this._filterNode(e,t.and,!1):t.or&&(i=this._filterNode(e,t.or,!0)),i}},{key:"isFiltered",value:function(e){return this._filteredNodesCache.has(e)}},{key:"clearFilteredNodes",value:function(){this._filteredNodesCache=new e}},{key:"addAncestorsToFilter",value:function(e){e!==this._treeRootId&&(this.isFiltered(e)||this._ancestorIds.push(e))}},{key:"clearFilter",value:function(){this.clearFilteredNodes();var e={changeOccurred:!0,updateAll:!0};return e}},{key:"addtoFilterCache",value:function(e){this._filteredNodesCache.set(e,!0)}},{key:"removeNodeFromFilter",value:function(e){this._filteredNodesCache.remove(e)}},{key:"getAncestorIds",value:function(){return this._ancestorIds}},{key:"clearAncestorIds",value:function(){this._ancestorIds=[]}},{key:"getFilterCriteria",value:function(){return this._filterCriteria}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(994)],o=i.dj.d(n,(function(e){return function(){function t(i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._searchCriteria=i,this._searchCache=new e,this._getId=n.getId}return r(t,[{key:"_isCompositeCriteria",value:function(e){return e.and||e.or}},{key:"searchNodeForMatches",value:function(e){var t=null;(t=this._isCompositeCriteria(this._searchCriteria)?this._compositeCriteria(e,this._searchCriteria):this.searchMatchedNodes(e,[this._searchCriteria],!0)).length>0&&this._setMatchesInCache(e,t)}},{key:"searchMatchedNodes",value:function(e,t,i){for(var n=[],o=!1,r=0;r<t.length;r++){if(o=!1,this._isBaseCriteria(t[r])){if(null===t[r].value&&null===e[t[r].field])o=!0;else if(this._isValidCriteria(e,t[r].field,t[r].value)){var a=t[r].field,s=t[r].value.toString().toLowerCase(),l=e[a].toString().toLowerCase();if(""===s)""===l&&(n.push(this._createSearchMetadata([{start:0,count:0}],a)),o=!0);else{var c=this._searchNode(a,s,l);c&&(n.push(c),o=!0)}}}else if(this._isCompositeCriteria(t[r])){var d=this._compositeCriteria(e,t[r]);d.length>0&&(n=n.concat(d),o=!0)}if(!o&&!i)return[]}return n}},{key:"_isValidCriteria",value:function(e,t,i){return null!==i&&null!==e[t]&&t in e&&void 0!==e[t]}},{key:"_searchNode",value:function(e,t,i){for(var n=!1,o=this.escapeRegExp(t),r=new RegExp(o,"gi"),a=0,s=[];a=r.exec(i);){var l={};l.start=a.index,l.count=t.length,l.value=t,s.push(l),n=!0}return n?this._createSearchMetadata(s,e):null}},{key:"_isBaseCriteria",value:function(e){return"value"in e}},{key:"_compositeCriteria",value:function(e,t){var i=[];return t.and?i=this.searchMatchedNodes(e,t.and,!1):t.or&&(i=this.searchMatchedNodes(e,t.or,!0)),i}},{key:"_setMatchesInCache",value:function(e,t){this._searchCache.set(this._getId(e),t)}},{key:"isNodeAMatch",value:function(e){return this._searchCache.has(this._getId(e))}},{key:"getMatchesFromCache",value:function(e){return this._searchCache.get(this._getId(e))}},{key:"_createSearchMetadata",value:function(e,t){return{field:t,matches:e}}},{key:"getSearchCriteria",value:function(){return this._searchCriteria}},{key:"escapeRegExp",value:function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(7226)],o=i.dj.d(n,(function(e){var t=void 0,i={caseFirst:"lower",ignorePunctuation:!1,numeric:!1,sensitivity:"variant",usage:"sort"};if("undefined"!=typeof Intl&&Intl.Collator){var n=new Intl.Collator("en-US",i);t=function(e,t){return n.compare(e,t)}}else t=function(e,t){return String.prototype.localeCompare.call(e,t,"en-US",i)};var o={STRING:t,NUMERIC:function(e,t){"number"!=typeof e&&(e=parseFloat(e)),"number"!=typeof t&&(t=parseFloat(t));var i=e-t;return isNaN(i)?isNaN(e)&&isNaN(t)?0:isNaN(e)?-1:1:i}};return function(){function t(i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i?(this._sorted=!0,this._sortOptions=[{field:"label",order:e.order.ASC,compare:e.compare.STRING}]):(this._sorted=!1,this._sortOptions=[])}return r(t,[{key:"sort",value:function(e,t){if(t)throw new Error("Sort is not implimented with arbitrary options");if(!this._sorted)throw new Error("Sort is only available when sort is maintained on Tree using the 'sorted' option");t=this._sortOptions;var i=this.generateCompareFunctionFromList(t);e.sort(i)}},{key:"getInsertIndex",value:function(e,t){if(!this._sorted)throw new Error("getInsertIndex is only available when sort is maintained on Tree using the 'sorted' option");for(var i=this._sortOptions,n=this.generateCompareFunctionFromList(i),o=0,r=e.length,a=void 0,s=void 0;o<r;){if(0===(s=n(t,e[a=Math.floor((r+o)/2)])))return a;s<0?r=a:o=a+1}return o}},{key:"generateCompareFunctionFromList",value:function(e){for(var t=[],i=0;i<e.length;i+=1){var n=e[i];this._validateSortOption(n),t.push(this._generateCompareFunctionFromItem(n))}return function(e,i){for(var n=0;n<t.length;n+=1){var o=t[n](e,i);if(0!==o)return o}return 0}}},{key:"_generateCompareFunctionFromItem",value:function(t){var i=1;t.order===e.order.DESC&&(i=-1);var n=o[t.compare];return function(e,o){var r=e[t.field],a=o[t.field];if(void 0===r||void 0===a)throw new Error("A valid field must be specified");return n(r,a)*i}}},{key:"_validateSortOption",value:function(t){if(!t.field)throw new Error("Field must be specified");if(!o[t.compare])throw new Error("A valid compare type must be specified!");if(!e.order[t.order])throw new Error("A valid sort order must be specified!")}},{key:"validateCustomSortName",value:function(t){if(e.compare[t])throw new Error(t+" is already a built-in sort type. Please provide a unique name.")}},{key:"addCustomCompare",value:function(e,t){o[e]=t}},{key:"sorted",get:function(){return this._sorted}},{key:"sortOptions",get:function(){return this._sortOptions}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{order:{ASC:"ASC",DESC:"DESC"},compare:{NUMERIC:"NUMERIC",STRING:"STRING"}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1211)],o=i.dj.d(n,(function(e){var t=function(e){return"row"===e?function(e,t,i){return e.setRows(t,i)}:function(e,t,i){return e.setColumns(t,i)}},i=function(i,n){var o=void 0,r=void 0,a=void 0;"row"===i?(o=t("row"),r=t("column"),a="row"):(o=t("column"),r=t("row"),a="column"),n.sort((function(e,t){return e-t}));var s=[];if(n.length>0){var l=r(e.range(),0,1/0);l=o(l,n[0],n[0]);for(var c=0;c<n.length;c+=1)l[a].end+1===n[c]?l[a].end=n[c]:(s.push(l),l=o(l=r(e.range(),0,1/0),n[0],n[0]));s.push(l)}return s};return{columnArray:function(e){return i("column",e)},rowArray:function(e){return i("row",e)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(994)],o=i.dj.d(n,(function(e){return function(){function t(i,n){var o=n.getId;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._indexCache=new e,this._data=i,this._history=[],this.getId=o,this._reindex()}return r(t,[{key:"_reindex",value:function(){this._history=[];for(var e=this._data.length,t=0;t<e;t++){var i=this._data[t];this._indexCache.set(this.getId(i),{index:t,node:i,timestamp:0})}}},{key:"getIndex",value:function(e){return this.hasIndex(e)?(this._history.length>=500&&this._reindex(),this._calcIndex(e)):-1}},{key:"hasIndex",value:function(e){return this._indexCache.has(e)}},{key:"setNode",value:function(e,t,i){var n=i.index,o=i.node;this._updateHistory({op:1,opIdx:t}),this._indexCache.set(e,{index:n,node:o,timestamp:this._history.length})}},{key:"removeNode",value:function(e,t){this._updateHistory({op:-1,opIdx:t}),this._indexCache.remove(e)}},{key:"_updateHistory",value:function(e){this._history.push(e)}},{key:"_calcIndex",value:function(e){for(var t=this._indexCache.get(e),i=t.index,n=t.timestamp,o=this._history.length,r=n;r<o;r++){var a=this._history[r],s=a.op;i>=a.opIdx&&(i+=s)}return i}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2446),i(7230),i(7231),i(2443)],o=i.dj.d(n,(function(e,t,i,n){var o=void 0;o=Object.assign?function(e,t){return Object.assign({},e,t)}:function(e,t){for(var i={},n=Object.keys(e),o=0;o<n.length;o+=1){var r=n[o];i[r]=e[r]}n=Object.keys(t);for(var a=0;a<n.length;a+=1){var s=n[a];i[s]=t[s]}return i};var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._metaData={},this._metaDataOrder=new t,this._hierarchicalMetaDataOrder=new i,this._dynamicMetaDataOrder=new t,this._hierarchicalDynamicMetaDataOrder=new i,this._clearCache(),this._on=new n}return r(e,[{key:"on",value:function(e,t){return this._on.on(e,t)}},{key:"_clearCache",value:function(){this._cacheRuleResult={},this._cacheRuleResult.cell={},this._cacheRuleResult.row={},this._cacheRuleResult.column={}}},{key:"add",value:function(e,t){if(e.indexOf("|")>0||e.indexOf("*")>0||e.indexOf("$")>0)throw new Error('"|", "*", and "$" are invalid in metadata rule names');if("function"!=typeof t._getRangeList||"function"!=typeof t.getMetaData)throw new Error("A metaDataRule must be created using 'create' before trying to add it");var i=this._metaData[e],n=[];i&&(n=this._getOrderedRules(i).remove(e));var o=t._getRangeList();this._metaData[e]=t;var r=t.getMetaData();r.cell=r.cell||{},r.row=r.row||{},r.column=r.column||{};var a={name:e,rangeList:o,metaData:r,isDynamic:t.isDynamic,applyMetaDataFunction:t._applyMetaDataFunction,dataSelector:t.dataSelector};this._getOrderedRules(t).add(a),this._clearCache(),this._raiseChangeEvent(n.concat(o))}},{key:"_getOrderedRules",value:function(e){return this._isHierarchicalRule(e)?e.isDynamic?this._hierarchicalDynamicMetaDataOrder:this._hierarchicalMetaDataOrder:e.isDynamic?this._dynamicMetaDataOrder:this._metaDataOrder}},{key:"remove",value:function(e){var t=this._metaData[e];if(!t)throw new Error("'"+e+"' does not exist");this._clearCache();var i=this._getOrderedRules(t).remove(e);delete this._metaData[e],this._raiseChangeEvent(i)}},{key:"get",value:function(e){if(!this._metaData[e])throw new Error("'"+e+"' does not exist");return this._metaData[e]}},{key:"_raiseChangeEvent",value:function(e){this._on.emit("metaDataChanged",{rangeList:e})}},{key:"getCellMetaData",value:function(e){var t={rows:{start:e.rowIndex,end:e.rowIndex,count:1},columns:{start:e.columnIndex,end:e.columnIndex,count:1}};return e.dynamic&&(e.dynamic.columnIndex=e.columnIndex,e.dynamic.rowIndex=e.rowIndex),this._getMetaData(t,"cell",e)}},{key:"getRowMetaData",value:function(e){var t={rows:{start:e.rowIndex,end:e.rowIndex,count:1},columns:{start:0,end:0,count:1}};return e.dynamic&&(e.dynamic.rowIndex=e.rowIndex),this._getMetaData(t,"row",e)}},{key:"getColumnMetaData",value:function(e){var t={rows:{start:0,end:0,count:1},columns:{start:e.columnIndex,end:e.columnIndex,count:1}};return e.dynamic&&(e.dynamic.columnIndex=e.columnIndex),this._getMetaData(t,"column",e)}},{key:"_getMetaData",value:function(e,t,i){var n=this._metaDataOrder.getRulesForRange(e);Array.prototype.push.apply(n,this._hierarchicalMetaDataOrder.getRulesForRange(i)),Array.prototype.push.apply(n,this._dynamicMetaDataOrder.getRulesForRange(e)),Array.prototype.push.apply(n,this._hierarchicalDynamicMetaDataOrder.getRulesForRange(i));var o={},r=this._cacheRuleResult[t],a=void 0,s=void 0,l=void 0,c=void 0,d=void 0;for(d=0;d<n.length&&(a=r[s=(c=n[d]).name]);d+=1)o=a["|RESULT|"],r=r[s];for(var u=!0,h=d;h<n.length;h+=1){if(s=(c=n[h]).name,l=c.metaData[t],c.isDynamic&&"function"==typeof l){if(!i.dynamic)continue;l=Object.assign({},l(i.dynamic)),u=!1}o=this._combineMetaData(o,l),u&&(r[s]={},r[s]["|RESULT|"]=o,r=r[s])}return o}},{key:"_combineMetaData",value:function(e,t){var i=null;(e.style||t.style)&&(i=o(e.style||{},t.style||{}));var n=o(e,t);return i&&(n.style=i),n}},{key:"_isHierarchicalRule",value:function(e){return"hierarchy"===e.dataSelector.type}}]),e}();return a.create=e.create,a.dataSelectorTypes=e.dataSelectorTypes,a}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1211),i(1212)],o=i.dj.d(n,(function(e,t){return function(){function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._orderedRules=[]}return r(i,[{key:"add",value:function(e){this._orderedRules.push(e)}},{key:"remove",value:function(e){var i=[],n=t.findIndex(this._orderedRules,(function(t){return t.name===e}));n>=0&&(i=this._orderedRules.splice(n,1)[0].rangeList);return i}},{key:"getRulesForRange",value:function(t){for(var i=[],n=0;n<this._orderedRules.length;n+=1){for(var o=this._orderedRules[n],r=o.rangeList,a=!1,s=0;s<r.length&&!(a=e.doesRangeIntersect(r[s],t));s+=1);a&&(o.applyMetaDataFunction(t.rows.start,t.columns.start)&&i.push(o))}return i}}]),i}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(1212)],o=i.dj.d(n,(function(e){return function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._hierarchicalOrderedRules=[]}return r(t,[{key:"add",value:function(e){this._hierarchicalOrderedRules.push(e)}},{key:"remove",value:function(t){var i=[],n=e.findIndex(this._hierarchicalOrderedRules,(function(e){return e.name===t}));n>=0&&(i=this._hierarchicalOrderedRules.splice(n,1)[0].rangeList);return i}},{key:"getRulesForRange",value:function(e){for(var t=[],i=0;i<this._hierarchicalOrderedRules.length;i+=1){var n=this._hierarchicalOrderedRules[i];n.applyMetaDataFunction(e)&&t.push(n)}var o=t.slice();return 0!==o.length&&(t=this._rearrangeHierarchyRules(o,e)),t}},{key:"_rearrangeHierarchyRules",value:function(e,t){for(var i=[],n=t.dynamic.path,o=n.length-1;o>=0&&e.length>0;o--){for(var r=[],a=0;a<e.length;a++)e[a].dataSelector.value.includes(n[o])&&(r.push(e[a]),e.splice(a,1),a--);r.reverse().forEach((function(e){i.unshift(e)}))}return i}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(2447),i(2448)],o=i.dj.d(n,(function(e,t){return{isValidCriteria:function(i){var n=function(t){var i,n=!0;t&&t.compare&&t.compare.dataType&&(n=function(t){var i=!1;t!==e.dataType.STRING&&t!==e.dataType.BOOLEAN&&t!==e.dataType.NUMBER||(i=!0);return i}(t.compare.dataType));return i=t&&t.metadata,i&&n}(i.queryCriteria),o=function(e){var i=!1,n=e.position;n!==t.POSITION.NEXT&&n!==t.POSITION.PREVIOUS&&n!==t.POSITION.FIRST&&n!==t.POSITION.LAST||(i=!0);return i}(i);return n&&o},getValueByType:function(t,i){return t===e.dataType.STRING?String(i).toLowerCase():t===e.dataType.NUMBER?Number(i):t===e.dataType.BOOLEAN?Boolean(i):void 0}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(203),i(2449),i(7238),i(269)],o=i.dj.d(n,(function(e,t,i,n,o,r){return i([t,e],{templateString:o,_OTHER_LANGUAGE_PREF_LABEL_TAG:"labelText",postCreate:function(){this.inherited(arguments),this._buildOtherLanguagesPanel(),this._placeOtherLanguagesPanel()},_buildOtherLanguagesPanel:function(){this._label=new r({tag:this._OTHER_LANGUAGE_PREF_LABEL_TAG,text:n.labelText})},validatePrefsPanel:function(){return!0},_placeOtherLanguagesPanel:function(){this._label.placeAt(this.languageNodeContainer)}})}),e,t),e.exports=o},function(e,t,i){e.exports={otherLanguageTitle:"その他の言語",labelText:"ツリーで言語を選択し、構文の強調表示とインデントの基本設定を設定してください。"}},function(e,t,i){e.exports={otherLanguageTitle:"기타 언어",labelText:"트리에서 언어를 선택하여 해당 언어의 구문 강조 표시 및 들여쓰기 기본 설정을 지정하십시오."}},function(e,t,i){e.exports={root:{otherLanguageTitle:"其他语言",labelText:"在树中选择一种语言来设置其语法高亮和缩进预设项。"}}},function(e,t,i){e.exports={root:{otherLanguageTitle:"Other Languages",labelText:"Select a language in the tree to set its syntax highlighting and indentation preferences."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="otherLanguagePanelPrefs preferencePanelContent">\n <div data-dojo-attach-point="languageNodeContainer"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(1569),i(223),i(7240),i(7241),i(215),i(216),i(2450),i(7242),i(7243),i(2451),i(7245),i(2452),i(7246),i(308),i(243),i(597),i(1207),i(589),i(637),i(251),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){var T="CodeAnalyzerWarningColor";return e([r,a],{_PROGRAMMING_TOOLS_MATLAB_SETTING_PATH:["matlab","colors","programmingtools"],_AUTOHIGHLIGHT_DEFAULT_COLOR:[202,232,232],_VARIABLES_WITH_SHARED_SCOPE_DEFAULT_COLOR:[0,163,163],_WARNINGS_DEFAULT_COLOR:[255,148,0],_AUTOFIX_DEFAULT_COLOR:[238,225,180],templateString:n,warningsLabel:t.warningsLabel,autofixLabel:t.autofixLabel,autoHighlightLabel:t.autoHighlightLabel,variablesScopeLabel:t.variablesScopeLabel,restoreDefaultsLabel:t.restoreDefaultsLabel,codeAnalyzerColorsNode:t.codeAnalyzerColorsNode,variableColorsNode:t.variableColorsNode,sampleRTCText:t.sampleRTCText,_WARNING_TAG:"warningsPreview",_AUTOFIX_TAG:"autofixHighlightPreview",_AUTOMATICALLY_HIGHLIGHT_TAG:"automaticallyHighlightPreview",_VARIABLES_WITH_SHARED_SCOPE_TAG:"variablesWithSharedScopePreview",_PREFERENCE_DIALOG:"mwPreferencesDialogContainer",postCreate:function(){this.inherited(arguments),this._buildProgrammingToolsPanel(),this._placeProgrammingToolsPanel(),this._samplePreviewPanel(),this._getSettingsValue(),this._tabKeyHandler()},_tabKeyHandler:function(){var e=this._variableScopePickerUtility,t=this._varScopeCheckbox,n=this._restoreDefaultsButton.domNode,o=function(e,t){e.shiftKey||e.keyCode!==i.TAB||(t.focus(),e.preventDefault())};e.getNode().onkeydown=function(e){o(e,n)}.bind(this),t.getNode().onkeydown=function(e){t.isUnchecked()&&o(e,n)}.bind(this),n.onkeydown=function(n){n.shiftKey&&n.keyCode===i.TAB&&(t.isUnchecked()?t.setFocus():e.setFocus(),n.preventDefault())}.bind(this)},_buildProgrammingToolsPanel:function(){this._warningsPickerUtility=new _({tag:this._WARNING_TAG}),this._autoFixCheckbox=new m("HighlightAutofixes",t.autofixLabel,this.autofixCheckboxLabel),this._autoFixPickerUtility=new _({tag:this._AUTOFIX_TAG}),this._autoHighlightCheckbox=new m("AutomaticallyHighlightVariables",t.autoHighlightLabel,this.autoHighlightCheckboxLabel),this._autoHighlightPickerUtility=new _({tag:this._AUTOMATICALLY_HIGHLIGHT_TAG}),this._varScopeCheckbox=new m("ShowVariablesWithSharedScope",t.variablesScopeLabel,this.variablesScopeCheckboxLabel),this._variableScopePickerUtility=new _({tag:this._VARIABLES_WITH_SHARED_SCOPE_TAG}),this.pickers={},this.pickers[T]=this._warningsPickerUtility.getColorPicker(),this.pickers.AutofixHighlightColor=this._autoFixPickerUtility.getColorPicker(),this.pickers.VariableHighlightColor=this._autoHighlightPickerUtility.getColorPicker(),this.pickers.VariablesWithSharedScopeColor=this._variableScopePickerUtility.getColorPicker(),this.labels={},this.labels[T]=this.warningsLabel,this.labels.AutofixHighlightColor=this.autofixLabel,this.labels.VariableHighlightColor=this.autoHighlightLabel,this.labels.VariablesWithSharedScopeColor=this.variablesScopeLabel,this.checkBoxes={},this.checkBoxes.HighlightAutofixes=this._autoFixCheckbox.getAssociatedWidget(),this.checkBoxes.AutomaticallyHighlightVariables=this._autoHighlightCheckbox.getAssociatedWidget(),this.checkBoxes.ShowVariablesWithSharedScope=this._varScopeCheckbox.getAssociatedWidget(),this._restoreDefaultsButton=new g({text:t.restoreDefaultsLabel,tag:"restoreButton"}),this._restoreDefaultsButton.on("click",function(){this.restoreDefaultsFunction()}.bind(this))},_placeProgrammingToolsPanel:function(){this._warningsPickerUtility.placeDropDown(this.warningsLabel),this._autoFixCheckbox.placeInPanel(),this._autoFixPickerUtility.placeDropDown(this.autofixLabel),this._autoHighlightCheckbox.placeInPanel(),this._autoHighlightPickerUtility.placeDropDown(this.autoHighlightLabel),this._varScopeCheckbox.placeInPanel(),this._variableScopePickerUtility.placeDropDown(this.variablesScopeLabel),this._restoreDefaultsButton.placeAt(this.restoreDefaultsLabel)},_samplePreviewPanel:function(){var e=v.getBrowserSyncedClipboard(),t={features:[y.SYNTAX_HIGHLIGHTING,y.CUT_COPY_PASTE,y.CODE_ANALYZER],visualFamily:"Colors",clipboard:e,enabled:["rtc.code.codeanalyzermessagelayer","messagebar","rtc.code.sectionslist","rtc.sectionbreak","rtc.code.sections.view","rtc.code.alertmessagelayer","codeanalyzer","rtc.settings.variablehighlightmarkerpreview","rtc.settings.service","rtc.programmingtools.service","matlab.code.variables.highlighting","settings.matlabsynchronizer","rtc.settings.nonlocalvariablehighlightpreview","rtc.settings.variablehighlightpreview","rtc.backgroundforegroundcolor"],disabled:["matlab.code.variables.nonlocalhighlighting.tooltip","rtc.messagebar.tooltip","rtc.code.codeanalyzer.hoverabletooltip"],dependencies:{"ptools.pickers":this.pickers,"ptools.labels":this.labels,"ptools.checkBoxes":this.checkBoxes,"rtc.code.codeanalyzer.ignoreReadOnlyState":!0},registry:[{id:"rtc.programmingtools.service",path:"editorpanels-ui/ProgrammingToolsPanelPreviewProvider"},{id:"rtc.settings.nonlocalvariablehighlightpreview",path:"editorpanels-ui/NonlocalVariableHighlightPreviewProvider"},{id:"rtc.settings.variablehighlightpreview",path:"editorpanels-ui/VariableHighlightPreviewProvider"},{id:"rtc.settings.variablehighlightmarkerpreview",path:"editorpanels-ui/VariableHighlightMarkerPreviewProvider"}]};this._promise=b.createRTC(t).then(function(e){this._rtc=e,this.own(this._rtc),this._rtc.getDocument().setText(o),this._rtc.getCursor().setLineColumn(6,1),this._rtc.getDocument().setReadOnly(!0),this._rtc.blur(),this._rtc.placeAt(this.sampleRTCNode)}.bind(this))},_getSettingsValue:function(){C.getSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,T).then(function(e){this._warningsPickerUtility.loadSettings(e.value)}.bind(this)),C.getSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,"AutofixHighlightColor").then(function(e){this._autoFixPickerUtility.loadSettings(e.value)}.bind(this)),this._loadCheckboxSettings(this.checkBoxes.HighlightAutofixes,"HighlightAutofixes",this._autoFixPickerUtility),C.getSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,"VariablesWithSharedScopeColor").then(function(e){this._variableScopePickerUtility.loadSettings(e.value)}.bind(this)),this._loadCheckboxSettings(this.checkBoxes.ShowVariablesWithSharedScope,"ShowVariablesWithSharedScope",this._variableScopePickerUtility),C.getSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,"VariableHighlightColor").then(function(e){this._autoHighlightPickerUtility.loadSettings(e.value)}.bind(this)),this._loadCheckboxSettings(this.checkBoxes.AutomaticallyHighlightVariables,"AutomaticallyHighlightVariables",this._autoHighlightPickerUtility)},restoreDefaultsFunction:function(){var e={};e.HighlightAutofixes=this._autoFixPickerUtility,e.AutomaticallyHighlightVariables=this._autoHighlightPickerUtility,e.ShowVariablesWithSharedScope=this._variableScopePickerUtility;var t={};for(var i in t.HighlightAutofixes=this._AUTOFIX_DEFAULT_COLOR,t.AutomaticallyHighlightVariables=this._AUTOHIGHLIGHT_DEFAULT_COLOR,t.ShowVariablesWithSharedScope=this._VARIABLES_WITH_SHARED_SCOPE_DEFAULT_COLOR,this.checkBoxes){var n=this.checkBoxes[i].get("checked");this.checkBoxes[i].set("checked",!0),this.checkBoxes[i].set("disabled",!1),this.checkBoxes[i].emit("change",{mwEventData:{propertyName:"value",oldValue:n,newValue:!0}}),e[i].setDropDown("disabled",!1),this._warningsPickerUtility.loadSettings(this._WARNINGS_DEFAULT_COLOR),e[i].loadSettings(t[i])}},_loadCheckboxSettings:function(e,t,i){C.getSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,t).then(function(t){var i=e.get("checked");e.set("checked",t.value),e.set("disabled",!1),e.emit("change",{mwEventData:{propertyName:"value",oldValue:i,newValue:t.value}})}.bind(this)),i&&(C.getSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,t).then(function(e){e.value||i.disableDropDown()}.bind(this)),e.on("change",function(e){!0===e.mwEventData.newValue?i.enableDropDown():i.disableDropDown()}.bind(this)))},startup:function(){this.inherited(arguments),this._warningsPickerUtility.startup(),this._autoFixCheckbox.getAssociatedWidget().startup(),this._autoFixPickerUtility.startup(),this._autoHighlightCheckbox.getAssociatedWidget().startup(),this._autoHighlightPickerUtility.startup(),this._varScopeCheckbox.getAssociatedWidget().startup(),this._variableScopePickerUtility.startup(),this._promise.then(function(){this._rtc.startup()}.bind(this)),this._restoreDefaultsButton.startup();var e=document.getElementsByClassName(this._PREFERENCE_DIALOG);e.length&&e[0].addEventListener("resize",function(){this._rtc.resize()}.bind(this))},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){C.setSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,T,this._warningsPickerUtility.getRGB()),C.setSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,this._autoFixCheckbox.getSettingKey(),this.checkBoxes.HighlightAutofixes.get("checked")),C.setSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,"AutofixHighlightColor",this._autoFixPickerUtility.getRGB()),C.setSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,this._autoHighlightCheckbox.getSettingKey(),this.checkBoxes.AutomaticallyHighlightVariables.get("checked")),C.setSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,"VariableHighlightColor",this._autoHighlightPickerUtility.getRGB()),C.setSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,this._varScopeCheckbox.getSettingKey(),this.checkBoxes.ShowVariablesWithSharedScope.get("checked")),C.setSetting(this._PROGRAMMING_TOOLS_MATLAB_SETTING_PATH,"VariablesWithSharedScopeColor",this._variableScopePickerUtility.getRGB())}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="programmingtoolspanelprefs preferencePanelContent">\n <fieldset>\n <legend>${codeAnalyzerColorsNode}</legend>\n <div data-dojo-attach-point="codeAnalyzerColorsNode"></div>\n <div class="syntaxColors codeAnalyzerColors">\n <div class="warnings">\n <div class="container">\n <div class="content">${warningsLabel}</div>\n <div class="widget" data-dojo-attach-point="warningsLabel"></div>\n </div>\n </div>\n <div class="autofixlabel">\n <div class="container">\n <div class="content" data-dojo-attach-point="autofixCheckboxLabel"></div>\n <div class="widget" data-dojo-attach-point="autofixLabel"></div>\n </div>\n </div>\n </div>\n </fieldset>\n <fieldset>\n <legend>${variableColorsNode}</legend>\n <div data-dojo-attach-point="variableColorsNode"></div>\n <div class="syntaxColors variableColors">\n <div class="autoHighlight">\n <div class="container">\n <div class="content checkbox" data-dojo-attach-point="autoHighlightCheckboxLabel" tabindex="-1"></div>\n <div class="widget" data-dojo-attach-point="autoHighlightLabel" tabindex="-1"></div>\n </div>\n </div>\n <div class="variablesScope">\n <div class="container">\n <div class="content checkbox" data-dojo-attach-point="variablesScopeCheckboxLabel" tabindex="-1"></div>\n <div class="widget" data-dojo-attach-point="variablesScopeLabel" tabindex="-1"></div>\n </div>\n </div>\n </div>\n </fieldset>\n <fieldset>\n <legend>${sampleRTCText}</legend>\n </fieldset>\n <div class="sample" data-dojo-attach-point="sampleRTCNode" id="sample"></div>\n <div class="restore" data-dojo-attach-point="restoreDefaultsLabel"></div>\n</div>'},function(e,t){e.exports="function testfunction(input)\npersistent multfactor;\nmultfactor = multfactor + 1;\n\n%% section title\na_var = nestedfunction(multfactor)\nunused_var = a_var;\n function out = nestedfunction(factor)\n out = input * factor;\n end\nend"},function(e,t,i){var n,o;n=[i(203),i(205),i(2450)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["matlab.code.variables.nonlocalhighlightingpreference"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7244)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["ptools.pickers","ptools.labels","ptools.checkBoxes","rtc.settings.service"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_RGB_CONVERSION_EXPRESSION:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,_SETTING_PATH:"matlab.colors.programmingtools.",constructor:function(e,t,i,n){for(var o in this._settingsService=n,i)i.hasOwnProperty(o)&&this.own(i[o].on("change",this._handleToUpdateCheckbox.bind(this,o)));for(var r in e)e.hasOwnProperty(r)&&this.own(e[r].on("change",this.handleToUpdateColor.bind(this,r,t[r])))},handleToUpdateColor:function(e,t,i){this._updateColor(e,i),this._updateLabel(t,i)},_handleToUpdateCheckbox:function(e,t){this._updateCheckboxState(e,t)},_updateColor:function(e,t){this._settingsService.setSetting(this._SETTING_PATH+e,this._hexToRgb(t.mwEventData.newValue))},_updateCheckboxState:function(e,t){this._settingsService.setSetting(this._SETTING_PATH+e,t.mwEventData.newValue)},_updateLabel:function(e,i){t.set(e.querySelector('div[class="divColor"]'),"background-color",i.mwEventData.newValue)},_hexToRgb:function(e){var t=this._RGB_CONVERSION_EXPRESSION.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2451)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["matlab.code.variablehighlightingmessagelayer"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2452)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["matlab.code.variables.variablehighlightingpreference"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1587),i(2453),i(7252),i(215),i(216),i(269),i(520),i(597),i(992),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([o,r],{_TAB_SIZE_SPINNER_WIDTH:60,_INDENT_SIZE_SPINNER_WIDTH:60,_TAB_SIZE:"TabSize",_INDENT_SIZE:"IndentSize",_INSERT_SPACES:"InsertSpaces",_EMACS_STYLE:"EmacsStyle",_MIN_TAB_SIZE:1,_MAX_TAB_SIZE:1024,_MIN_INDENT_SIZE:1,_MAX_INDENT_SIZE:1024,_TAB_SETTING_PATH:["matlab","editor","tab"],templateString:n,tabsAndIndentsLabel:i.tabsAndIndentsLabel,tabSizeLabel:i.tabSizeLabel,indentSizeLabel:i.indentSizeLabel,postCreate:function(){this.inherited(arguments),this._buildTabPanel(),this._placeTabPanel(),this._createHyperlink()},_createHyperlink:function(){c.createHyperlink({wrapperNode:this.hyperlinkWrapper,wrapperText:i.hyperlinkWrapperText,linkText:i.hyperlinkText,navigateTo:t.languageTitle})},_buildTabPanel:function(){this._tabSizeLabel=new a({tag:"tabSizeLabel",text:i.tabSizeLabel}),this._tabSizeSpinner=new s({tag:"tabSize",width:this._TAB_SIZE_SPINNER_WIDTH,limits:{minimum:this._MIN_TAB_SIZE,maximum:this._MAX_TAB_SIZE}}),this._indentSizeLabel=new a({tag:"indentSizeLabel",text:i.indentSizeLabel}),this._indentSizeSpinner=new s({tag:"indentSize",width:this._INDENT_SIZE_SPINNER_WIDTH,limits:{minimum:this._MIN_INDENT_SIZE,maximum:this._MAX_INDENT_SIZE}}),this._insertSpacesCheckboxAttribute=new l("insertSpaces",i.insertSpacesLabel,this.insertSpacesNode),this._emacsStyleCheckboxAttribute=new l("emacsStyle",i.emacsStyleLabel,this.emacsStyleTabSmartIndentNode),d.getSetting(this._TAB_SETTING_PATH,this._TAB_SIZE).then(function(e){this._tabSizeSpinner.set("value",e.value)}.bind(this)),d.getSetting(this._TAB_SETTING_PATH,this._INDENT_SIZE).then(function(e){this._indentSizeSpinner.set("value",e.value)}.bind(this)),d.getSetting(this._TAB_SETTING_PATH,this._INSERT_SPACES).then(function(e){this._insertSpacesCheckboxAttribute.getAssociatedWidget().set("checked",e.value),this._insertSpacesCheckboxAttribute.getAssociatedWidget().set("disabled",!1)}.bind(this)),d.getSetting(this._TAB_SETTING_PATH,this._EMACS_STYLE).then(function(e){this._emacsStyleCheckboxAttribute.getAssociatedWidget().set("checked",e.value),this._emacsStyleCheckboxAttribute.getAssociatedWidget().set("disabled",!1)}.bind(this))},_placeTabPanel:function(){this._tabSizeLabel.placeAt(this.tabSizeLabelNode),this._tabSizeSpinner.placeAt(this.tabSizeSpinnerNode),this._indentSizeLabel.placeAt(this.indentSizeLabelNode),this._indentSizeSpinner.placeAt(this.indentSizeSpinnerNode),this._insertSpacesCheckboxAttribute.placeInPanel(),this._emacsStyleCheckboxAttribute.placeInPanel()},startup:function(){this.inherited(arguments),this._tabSizeLabel.startup(),this._tabSizeSpinner.startup(),this._indentSizeLabel.startup(),this._indentSizeSpinner.startup(),this._insertSpacesCheckboxAttribute.getAssociatedWidget().startup(),this._emacsStyleCheckboxAttribute.getAssociatedWidget().startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){d.setSetting(this._TAB_SETTING_PATH,this._TAB_SIZE,this._tabSizeSpinner.get("value")).otherwise((function(e){})),d.setSetting(this._TAB_SETTING_PATH,this._INDENT_SIZE,this._indentSizeSpinner.get("value")).otherwise((function(e){})),d.setSetting(this._TAB_SETTING_PATH,this._INSERT_SPACES,this._insertSpacesCheckboxAttribute.getAssociatedWidget().get("checked")),d.setSetting(this._TAB_SETTING_PATH,this._EMACS_STYLE,this._emacsStyleCheckboxAttribute.getAssociatedWidget().get("checked"))}})}),e,t),e.exports=o},function(e,t,i){e.exports={tabTitle:"タブ",tabsAndIndentsLabel:"タブとインデント",tabSizeLabel:"タブ サイズ:",indentSizeLabel:"インデント サイズ:",insertSpacesLabel:"Tab キーでスペースを挿入",emacsStyleLabel:"Tab キー スマート インデント",hyperlinkText:"言語固有のインデントの基本設定",hyperlinkWrapperText:"${aTagStart}${hyperlinkText}${aTagEnd}を表示"}},function(e,t,i){e.exports={tabTitle:"탭",tabsAndIndentsLabel:"탭 및 들여쓰기",tabSizeLabel:"탭 크기:",indentSizeLabel:"들여쓰기 크기:",insertSpacesLabel:"Tab 키를 사용하여 공백 삽입",emacsStyleLabel:"Tab 키를 사용하여 스마트 들여쓰기",hyperlinkText:"언어별 들여쓰기 기본 설정",hyperlinkWrapperText:"${aTagStart}${hyperlinkText}${aTagEnd} 보기"}},function(e,t,i){e.exports={tabTitle:"制表符",tabsAndIndentsLabel:"制表符和缩进",tabSizeLabel:"制表符大小:",indentSizeLabel:"缩进大小:",insertSpacesLabel:"Tab 键插入空位",emacsStyleLabel:"Tab 键智能缩进",hyperlinkText:"语言特定的缩进预设项",hyperlinkWrapperText:"查看 ${aTagStart}${hyperlinkText}${aTagEnd}"}},function(e,t,i){e.exports={root:{tabTitle:"Tab",tabsAndIndentsLabel:"Tabs and indents",tabSizeLabel:"Tab size:",indentSizeLabel:"Indent size:",insertSpacesLabel:"Tab key inserts spaces",emacsStyleLabel:"Tab key smart indenting",hyperlinkText:"language-specific indent preferences",hyperlinkWrapperText:"View ${aTagStart}${hyperlinkText}${aTagEnd}"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="tabPrefs preferencePanelContent">\n <fieldset class="fieldsetWithBorder">\n <legend>${tabsAndIndentsLabel}</legend>\n <div class="tabsAndIndentsContainer">\n <div class="tabSizeLabel" data-dojo-attach-point="tabSizeLabelNode"></div>\n <div class="tabSizeSpinner" data-dojo-attach-point="tabSizeSpinnerNode"></div>\n <div class="insertSpaces" data-dojo-attach-point="insertSpacesNode"></div>\n <div class="indentSizeLabel" data-dojo-attach-point="indentSizeLabelNode"></div>\n <div class="indentSizeSpinner" data-dojo-attach-point="indentSizeSpinnerNode"></div>\n <div class="emacsStyleTabSmartIndent" data-dojo-attach-point="emacsStyleTabSmartIndentNode"></div>\n </div>\n <div class="hyperlinkContainer" data-dojo-attach-point="hyperlinkWrapper"></div>\n </fieldset>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(205),i(2012)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.colorsservice","rtc.view.styles.globalstylechanger"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1951)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.colorsservice","rtc.id","rtc.code.codeanalyzer.enablestate","rtc.view.styles.globalstylechanger"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1999)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.colorsservice"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1996)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.document.info","rtc.view.decoration","rtc.viewready","language.interface.tokenmanager","language.common.syntaxhighlighter.colors","rtc.settings.ColorsPanelSyntaxHighlighterPreferencesProvider","rtc.code.enablesyntaxhighlight"]}},createInstance:function(e,t,n,o,r,a,s,l){return new i(n,e,t,o,r,a,s,l)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(216),i(203),i(204),i(2454),i(7262),i(308),i(286),i(422),i(269),i(520),i(232),i(263),i(992)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=["matlab","commandwindow"],g=["matlab","datetime"];return i([e,t],{_NUMBER_OF_LINES_IN_COMMAND_WINDOW_SCROLL_BUFFER_SPINNER_WIDTH:80,templateString:r,textDisplayTitle:o.textDisplayTitle,lineSpacingLabel:o.lineSpacingLabel,numericFormatLabel:o.numericFormatLabel,dateTimeTitle:o.dateTimeTitle,localeLabel:o.localeLabel,defaultDateAndTimeLabel:o.defaultDateAndTimeLabel,defaultDateOnlyLabel:o.defaultDateOnlyLabel,displayTitle:o.displayTitle,postCreate:function(){this.inherited(arguments),u.registerResponseHandler("FEvalResponse:FormatValue",this._handleFormatValueResponse,this),u.registerResponseHandler("FEvalResponse:DisplayValue",this._handleDisplayValueResponse,this),u.registerResponseHandler("FEvalResponse:matrixDisplayValue",this._handleMatrixDisplayValueResponse,this),this.defaultDateAndTimeFormatComboBoxItems={en_US:[{label:"dd-MMM-uuuu HH:mm:ss",value:"dd-MMM-uuuu HH:mm:ss"},{label:"dd-MMM-uuuu HH:mm:ss.SSS",value:"dd-MMM-uuuu HH:mm:ss.SSS"},{label:"uuuu-MMM-dd HH:mm:ss",value:"uuuu-MMM-dd HH:mm:ss"},{label:"uuuu-MM-dd HH:mm:ss",value:"uuuu-MM-dd HH:mm:ss"},{label:"dd/MMM/uuuu HH:mm:ss",value:"dd/MMM/uuuu HH:mm:ss"},{label:"dd.MM.uuuu HH:mm:ss",value:"dd.MM.uuuu HH:mm:ss"}],zh_CN:[{label:"uuuu-MM-dd HH:mm:ss",value:"uuuu-MM-dd HH:mm:ss"},{label:"uuuu年 M月 d日 HH:mm:ss",value:"uuuu年 M月 d日 HH:mm:ss"},{label:"uuuu年 M月 d日 HH:mm:ss.SSS",value:"uuuu年 M月 d日 HH:mm:ss.SSS"},{label:"uuuu年 MM月 dd日 HH:mm:ss",value:"uuuu年 MM月 dd日 HH:mm:ss"},{label:"uuuu/MM/dd HH:mm:ss",value:"uuuu/MM/dd HH:mm:ss"}],ja_JP:[{label:"uuuu/MM/dd HH:mm:ss",value:"uuuu/MM/dd HH:mm:ss"},{label:"uuuu年 M月 d日 HH:mm:ss",value:"uuuu年 M月 d日 HH:mm:ss"},{label:"uuuu年 M月 d日 HH:mm:ss.SSS",value:"uuuu年 M月 d日 HH:mm:ss.SSS"},{label:"uuuu年 MM月 dd日 HH:mm:ss",value:"uuuu年 MM月 dd日 HH:mm:ss"},{label:"uuuu-MM-dd HH:mm:ss",value:"uuuu-MM-dd HH:mm:ss"}],ko_KR:[{label:"uuuu-MM-dd HH:mm:ss",value:"uuuu-MM-dd HH:mm:ss"},{label:"uuuu년 M월 d일 HH:mm:ss",value:"uuuu년 M월 d일 HH:mm:ss"},{label:"uuuu년 M월 d일 HH:mm:ss.SSS",value:"uuuu년 M월 d일 HH:mm:ss.SSS"},{label:"uuuu년 MM월 dd일 HH:mm:ss",value:"uuuu년 MM월 dd일 HH:mm:ss"},{label:"uuuu/MM/dd HH:mm:ss",value:"uuuu/MM/dd HH:mm:ss"}]},this.defaultDateOnlyFormatComboBoxItems={en_US:[{label:"dd-MMM-uuuu",value:"dd-MMM-uuuu"},{label:"uuuu-MMM-dd",value:"uuuu-MMM-dd"},{label:"uuuu-MM-dd",value:"uuuu-MM-dd"},{label:"dd/MMM/uuuu",value:"dd/MMM/uuuu"},{label:"dd.MM.uuuu",value:"dd.MM.uuuu"}],zh_CN:[{label:"uuuu-MM-dd",value:"uuuu-MM-dd"},{label:"uuuu年 M月 d日",value:"uuuu年 M月 d日"},{label:"uuuu年 MM月 dd日",value:"uuuu年 MM月 dd日"},{label:"uuuu/MM/dd",value:"uuuu/MM/dd"}],ja_JP:[{label:"uuuu/MM/dd",value:"uuuu/MM/dd"},{label:"uuuu年 M月 d日",value:"uuuu年 M月 d日"},{label:"uuuu年 MM月 dd日",value:"uuuu年 MM月 dd日"},{label:"uuuu-MM-dd",value:"uuuu-MM-dd"}],ko_KR:[{label:"uuuu-MM-dd",value:"uuuu-MM-dd"},{label:"uuuu년 M월 d일",value:"uuuu년 M월 d일"},{label:"uuuu년 M월 dd일",value:"uuuu년 M월 dd일"},{label:"uuuu/MM/dd",value:"uuuu/MM/dd"}]},this._buildTextDisplayPanel(),this._buildDateTimePanel(),this._buildDisplayPanel(),this._placeTextDisplayPanel(),this._placeDateTimePanel(),this._placeDisplayPanel(),this._createHyperlink()},_createHyperlink:function(){p.createHyperlink({wrapperNode:this.hyperlinkWrapper,wrapperText:o.hyperlinkWrapperText,linkText:o.hyperlinkText,navigateTo:o.colorsTitle})},_buildTextDisplayPanel:function(){this._numericFormatComboBox=new s({tag:"CommandWindowFormatLabelComboBox",placeholder:"select a value",items:[{label:o.numericFormatShort,value:"short"},{label:o.numericFormatLong,value:"long"},{label:o.numericFormatShorte,value:"shortE"},{label:o.numericFormatLonge,value:"longE"},{label:o.numericFormatShortg,value:"shortG"},{label:o.numericFormatLongg,value:"longG"},{label:o.numericFormatShorteng,value:"shortEng"},{label:o.numericFormatLongeng,value:"longEng"},{label:o.numericFormatHex,value:"hex"},{label:o.numericFormatBank,value:"bank"},{label:o.numericFormatPlus,value:"+"},{label:o.numericFormatRational,value:"rational"}],value:"short"}),this._lineSpacingComboBox=new s({tag:"CommandWindowDisplayLabelComboBox",placeholder:"select a value",items:[{label:o.lineSpacingLoose,value:"loose"},{label:o.lineSpacingCompact,value:"compact"}],value:"loose"}),h.getSetting(f,"NumericFormat").then(function(e){this._destroyed||this._numericFormatComboBox.set("value",e.value)}.bind(this)),h.getSetting(f,"DisplayLineSpacing").then(function(e){this._destroyed||this._lineSpacingComboBox.set("value",e.value)}.bind(this))},_buildDateTimePanel:function(){this._localeComboBoxValue="en_US",this._defaultDateAndTimeComboBoxValue="dd-MMM-uuuu HH:mm:ss",this._defaultDateOnlyComboBoxValue="dd-MMM-uuuu",this._localeComboBox=new s({tag:"CommandWindowLocaleLabelComboBox",editable:!0,errorText:o.localeComboBoxErrorState,placeholder:"select a value",items:[{label:"en_US",value:"en_US"},{label:"zh_CN",value:"zh_CN"},{label:"ja_JP",value:"ja_JP"},{label:"ko_KR",value:"ko_KR"}],value:"en_US"}),this._localeComboBox.on("change",this._localeComboBoxOnChange.bind(this)),this._defaultDateAndTimeComboBox=new s({tag:"CommandWindowDefaultDateAndTimeLabelComboBox",width:200,editable:!0,items:[{label:"dd-MMM-uuuu HH:mm:ss",value:"dd-MMM-uuuu HH:mm:ss"},{label:"dd-MMM-uuuu HH:mm:ss.SSS",value:"dd-MMM-uuuu HH:mm:ss.SSS"},{label:"uuuu-MMM-dd HH:mm:ss",value:"uuuu-MMM-dd HH:mm:ss"},{label:"uuuu-MM-dd HH:mm:ss",value:"uuuu-MM-dd HH:mm:ss"},{label:"dd/MMM/uuuu HH:mm:ss",value:"dd/MMM/uuuu HH:mm:ss"},{label:"dd.MM.uuuu HH:mm:ss",value:"dd.MM.uuuu HH:mm:ss"}],value:"dd-MMM-uuuu HH:mm:ss"}),this._defaultDateAndTimeComboBox.on("change",this._defaultDateAndTimeComboBoxOnChange.bind(this)),this._defaultDateOnlyComboBox=new s({tag:"CommandWindowDefaultDateOnlyComboBox",editable:!0,items:[{label:"dd-MMM-uuuu",value:"dd-MMM-uuuu"},{label:"uuuu-MMM-dd",value:"uuuu-MMM-dd"},{label:"uuuu-MM-dd",value:"uuuu-MM-dd"},{label:"dd/MMM/uuuu",value:"dd/MMM/uuuu"},{label:"dd.MM.uuuu",value:"dd.MM.uuuu"}],value:"dd-MMM-uuuu"}),this._defaultDateOnlyComboBox.on("change",this._defaultDateOnlyComboBoxOnChange.bind(this)),h.getSetting(g,"DisplayLocale").then(function(e){this._destroyed||(this._localeComboBox.set("value",e.value),this._localeComboBoxOnChange(e))}.bind(this)),h.getSetting(g,"DefaultFormat").then(function(e){this._destroyed||(this._defaultDateAndTimeComboBox.set("value",e.value),this._defaultDateAndTimeComboBoxOnChange(e))}.bind(this)),h.getSetting(g,"DefaultDateFormat").then(function(e){this._destroyed||(this._defaultDateOnlyComboBox.set("value",e.value),this._defaultDateOnlyComboBoxOnChange(e))}.bind(this))},_buildDisplayPanel:function(){this._checkboxes=[new a({tag:"CommandWindowWrapLinesCheckBox",text:o.wrapLinesLabel,disabled:!0}),new a({tag:"CommandWindowMatrixDisplayCheckBox",text:o.matrixDisplayLabel,disabled:!0}),new a({tag:"CommandWindowGettingStartedCheckBox",text:o.gettingStartedLabel,disabled:!0}),new a({tag:"SuggestCorrectionsCheckBox",text:o.suggestCorrectionsLabel,disabled:!0})],this._numberOfLinesInCommandWindowScrollBufferLabel=new c({tag:"numberOfLinesInCommandWindowScrollBufferLabel",text:o.numberOfLinesInCommandWindowScrollBufferLabel,verticalAlignment:"top"}),this._numberOfLinesInCommandWindowScrollBufferSpinner=new d({tag:"numberOfLinesInCommandWindowScrollBufferSpinner",width:this._NUMBER_OF_LINES_IN_COMMAND_WINDOW_SCROLL_BUFFER_SPINNER_WIDTH,step:1e3,value:5e3,limits:{minimum:1e3,maximum:25e3}}),h.getSetting(f,"WrapLines").then(function(e){!0!==this._destroyed&&(this._checkboxes[0].set("checked",e.value),this._checkboxes[0].set("disabled",!1))}.bind(this)),h.getSetting(f,"UseEightyColumnDisplayWidth").then(function(e){!0!==this._destroyed&&(this._checkboxes[1].set("checked",e.value),this._checkboxes[1].set("disabled",!1))}.bind(this)),h.getSetting(f,"GettingStarted").then(function(e){!0!==this._destroyed&&(this._checkboxes[2].set("checked",e.value),this._checkboxes[2].set("disabled",!1))}.bind(this)),h.getSetting(f,"ShowTypoSuggestions").then(function(e){!0!==this._destroyed&&(this._checkboxes[3].set("checked",e.value),this._checkboxes[3].set("disabled",!1))}.bind(this)),h.getSetting(f,"NumberOfLinesInScrollBuffer").then(function(e){!0!==this._destroyed&&this._numberOfLinesInCommandWindowScrollBufferSpinner.set("value",e.value)}.bind(this))},_placeTextDisplayPanel:function(){this._numericFormatComboBox.placeAt(this.numericFormatWidgetNode),this._lineSpacingComboBox.placeAt(this.lineSpacingWidgetNode)},_placeDisplayPanel:function(){this._checkboxes.forEach(function(e){e.placeAt(this.displayNode)}.bind(this)),this._numberOfLinesInCommandWindowScrollBufferLabel.placeAt(this.numberOfLinesInCommandWindowScrollBufferLabelNode),this._numberOfLinesInCommandWindowScrollBufferSpinner.placeAt(this.numberOfLinesInCommandWindowScrollBufferSpinnerNode)},_placeDateTimePanel:function(){this._localeComboBox.placeAt(this.localeWidgetNode),this._defaultDateAndTimeComboBox.placeAt(this.defaultDateTimeWidgetNode),this._defaultDateOnlyComboBox.placeAt(this.defaultDateOnlyWidgetNode)},startup:function(){this._numericFormatComboBox.startup(),this._lineSpacingComboBox.startup(),this._localeComboBox.startup(),this._defaultDateAndTimeComboBox.startup(),this._defaultDateOnlyComboBox.startup(),this._checkboxes.forEach((function(e){e.startup()})),this._numberOfLinesInCommandWindowScrollBufferLabel.startup(),this._numberOfLinesInCommandWindowScrollBufferSpinner.startup()},validatePrefsPanel:function(e){return"error"!==this._localeComboBox.get("validationState")&&"error"!==this._defaultDateAndTimeComboBox.get("validationState")},commitPrefsChanges:function(e){h.setSetting(f,"NumericFormat",this._numericFormatComboBox.get("value")),h.setSetting(f,"DisplayLineSpacing",this._lineSpacingComboBox.get("value")),h.setSetting(g,"DisplayLocale",this._localeComboBoxValue).then(n.hitch(this,(function(e){this._localeComboBox.set("validationState","normal")})),n.hitch(this,(function(e){this._localeComboBox.set("validationState","error"),this._localeComboBox.set("errorText",e)}))),h.setSetting(g,"DefaultFormat",this._defaultDateAndTimeComboBoxValue).then(n.hitch(this,(function(e){this._defaultDateAndTimeComboBox.set("validationState","normal")})),n.hitch(this,(function(e){this._defaultDateAndTimeComboBox.set("validationState","error"),this._defaultDateAndTimeComboBox.set("errorText",e)}))),h.setSetting(g,"DefaultDateFormat",this._defaultDateOnlyComboBoxValue).then(n.hitch(this,(function(e){this._defaultDateOnlyComboBox.set("validationState","normal")})),n.hitch(this,(function(e){this._defaultDateOnlyComboBox.set("validationState","error"),this._defaultDateOnlyComboBox.set("errorText",e)}))),h.setSetting(f,"WrapLines",this._checkboxes[0].get("checked")),h.setSetting(f,"UseEightyColumnDisplayWidth",this._checkboxes[1].get("checked")),h.setSetting(f,"GettingStarted",this._checkboxes[2].get("checked")),h.setSetting(f,"ShowTypoSuggestions",this._checkboxes[3].get("checked")),h.setSetting(f,"NumberOfLinesInScrollBuffer",this._numberOfLinesInCommandWindowScrollBufferSpinner.get("value"))},_localeComboBoxOnChange:function(e){this._localeComboBoxValue=e.value?e.value:e.mwEventData.newValue;var t=this._localeComboBoxValue;this._destroyed||this._localeComboBox.set("validationState","normal"),this.defaultDateAndTimeFormatComboBoxItems[t]&&(this._defaultDateAndTimeComboBox.set("items",this.defaultDateAndTimeFormatComboBoxItems[t]),this._defaultDateAndTimeComboBox.set("value",this.defaultDateAndTimeFormatComboBoxItems[t][0].value),this._defaultDateOnlyComboBox.set("items",this.defaultDateOnlyFormatComboBoxItems[t]),this._defaultDateOnlyComboBox.set("value",this.defaultDateOnlyFormatComboBoxItems[t][0].value),this._defaultDateAndTimeComboBoxValue=this.defaultDateAndTimeFormatComboBoxItems[t][0].value,this._defaultDateOnlyComboBoxValue=this.defaultDateOnlyFormatComboBoxItems[t][0].value)},_defaultDateAndTimeComboBoxOnChange:function(e){this._defaultDateAndTimeComboBoxValue=e.value?e.value:e.mwEventData.newValue},_defaultDateOnlyComboBoxOnChange:function(e){this._defaultDateOnlyComboBoxValue=e.value?e.value:e.mwEventData.newValue},_isSupported:function(e,t){for(let i=0;i<t.length;i++)if(t[i].value===e)return!0;return!1},_handleFormatValueResponse:function(e){},_handleDisplayValueResponse:function(e){},_handleMatrixDisplayValueResponse:function(e){}})}),e,t),e.exports=o},function(e,t,i){e.exports={commandWindow:"コマンド ウィンドウ",textDisplayTitle:"テキスト表示",lineSpacingLabel:"行間隔:",lineSpacingLoose:"loose",lineSpacingCompact:"compact",numericFormatLabel:"数値形式:",dateTimeTitle:"日付と時刻の形式",localeLabel:"ロケール:",defaultDateAndTimeLabel:"既定の日時の形式:",defaultDateOnlyLabel:"既定の日付のみの形式:",displayTitle:"表示",wrapLinesLabel:"行の折り返し",matrixDisplayLabel:"行列の表示幅を 80 文字に設定",gettingStartedLabel:"「入門」メッセージ バーを表示",suggestCorrectionsLabel:"関数や変数の誤入力に対する修正候補を表示",numberOfLinesInCommandWindowScrollBufferLabel:"コマンド ウィンドウ スクロール バッファー行数: ",localeComboBoxErrorState:"指定されたロケールを作成できません",numericFormatShort:"short",numericFormatLong:"long",numericFormatShorte:"short e",numericFormatLonge:"long e",numericFormatShortg:"short g",numericFormatLongg:"long g",numericFormatShorteng:"short eng",numericFormatLongeng:"long eng",numericFormatHex:"hex",numericFormatBank:"bank",numericFormatPlus:"+",numericFormatRational:"rational",defaultLocaleComboBoxLabel:"ja_JP",hyperlinkText:"色の基本設定",hyperlinkWrapperText:"${aTagStart}${hyperlinkText}${aTagEnd}を設定",colorsTitle:"色"}},function(e,t,i){e.exports={commandWindow:"명령 창",textDisplayTitle:"텍스트 표시",lineSpacingLabel:"줄 간격:",lineSpacingLoose:"loose",lineSpacingCompact:"compact",numericFormatLabel:"수치 형식:",dateTimeTitle:"날짜/시간 형식",localeLabel:"로캘:",defaultDateAndTimeLabel:"디폴트 날짜/시간 형식:",defaultDateOnlyLabel:"디폴트 날짜 전용 형식:",displayTitle:"표시",wrapLinesLabel:"줄 바꿈",matrixDisplayLabel:"행렬 표시 너비를 80개 열로 설정",gettingStartedLabel:"시작 메시지 표시줄 표시",suggestCorrectionsLabel:"잘못 입력한 함수 및 변수에 대한 정정 제안",numberOfLinesInCommandWindowScrollBufferLabel:"명령 창 스크롤 버퍼의 라인 수: ",localeComboBoxErrorState:"지정한 로캘을 만들 수 없음",numericFormatShort:"short",numericFormatLong:"long",numericFormatShorte:"short e",numericFormatLonge:"long e",numericFormatShortg:"short g",numericFormatLongg:"long g",numericFormatShorteng:"short eng",numericFormatLongeng:"long eng",numericFormatHex:"hex",numericFormatBank:"bank",numericFormatPlus:"+",numericFormatRational:"rational",defaultLocaleComboBoxLabel:"ko_KR",hyperlinkText:"색 기본 설정",hyperlinkWrapperText:"${aTagStart}${hyperlinkText}${aTagEnd} 설정",colorsTitle:"색"}},function(e,t,i){e.exports={commandWindow:"命令行窗口",textDisplayTitle:"文本显示",lineSpacingLabel:"行距:",lineSpacingLoose:"loose",lineSpacingCompact:"compact",numericFormatLabel:"数值格式:",dateTimeTitle:"日期时间格式",localeLabel:"区域设置:",defaultDateAndTimeLabel:"默认日期和时间格式:",defaultDateOnlyLabel:"默认仅日期格式:",displayTitle:"显示",wrapLinesLabel:"换行",matrixDisplayLabel:"将矩阵显示宽度设置为 80 列",gettingStartedLabel:"显示快速入门消息栏",suggestCorrectionsLabel:"建议更正输错的函数和变量",numberOfLinesInCommandWindowScrollBufferLabel:"命令行窗口滚动缓冲区中的行数: ",localeComboBoxErrorState:"无法创建指定的区域设置",numericFormatShort:"short",numericFormatLong:"long",numericFormatShorte:"short e",numericFormatLonge:"long e",numericFormatShortg:"short g",numericFormatLongg:"long g",numericFormatShorteng:"short eng",numericFormatLongeng:"long eng",numericFormatHex:"hex",numericFormatBank:"bank",numericFormatPlus:"+",numericFormatRational:"rational",defaultLocaleComboBoxLabel:"zh_CN",hyperlinkText:"颜色预设项",hyperlinkWrapperText:"设置 ${aTagStart}${hyperlinkText}${aTagEnd}",colorsTitle:"颜色"}},function(e,t,i){e.exports={root:{commandWindow:"Command Window",textDisplayTitle:"Text display",lineSpacingLabel:"Line spacing:",lineSpacingLoose:"loose",lineSpacingCompact:"compact",numericFormatLabel:"Numeric format:",dateTimeTitle:"Datetime format",localeLabel:"Locale:",defaultDateAndTimeLabel:"Default date and time format:",defaultDateOnlyLabel:"Default date-only format:",displayTitle:"Display",wrapLinesLabel:"Wrap lines",matrixDisplayLabel:"Set matrix display width to eighty columns",gettingStartedLabel:"Show getting started message bar",suggestCorrectionsLabel:"Suggest corrections for mistyped functions and variables",numberOfLinesInCommandWindowScrollBufferLabel:"Number of lines in command window scroll buffer: ",localeComboBoxErrorState:"Cannot create the specified locale",numericFormatShort:"short",numericFormatLong:"long",numericFormatShorte:"short e",numericFormatLonge:"long e",numericFormatShortg:"short g",numericFormatLongg:"long g",numericFormatShorteng:"short eng",numericFormatLongeng:"long eng",numericFormatHex:"hex",numericFormatBank:"bank",numericFormatPlus:"+",numericFormatRational:"rational",defaultLocaleComboBoxLabel:"en_US",hyperlinkText:"color preferences",hyperlinkWrapperText:"Set ${aTagStart}${hyperlinkText}${aTagEnd}",colorsTitle:"Colors"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="commandWindowPrefs preferencePanelContent">\n <fieldset class="textDisplay">\n <legend>${textDisplayTitle}</legend>\n <div class="textDisplayContainer">\n <div class="textDisplayLabels" data-dojo-attach-point="numericFormatNode">${numericFormatLabel}</div>\n <div class="textDisplayWidgets" data-dojo-attach-point="numericFormatWidgetNode"></div>\n </div>\n <div class="textDisplayContainer">\n <div class="textDisplayLabels" data-dojo-attach-point="lineSpacingNode">${lineSpacingLabel}</div>\n <div class="textDisplayWidgets" data-dojo-attach-point="lineSpacingWidgetNode"></div>\n </div>\n </fieldset>\n\n <fieldset class="dateTime">\n <legend>${dateTimeTitle}</legend>\n <div class="datetimeFormatContainer">\n <div class="datetimeFormatLabels" data-dojo-attach-point="localeNode">${localeLabel}</div>\n <div class="datetimeFormatWidgets" data-dojo-attach-point="localeWidgetNode"></div>\n </div>\n <div class="datetimeFormatContainer">\n <div class="datetimeFormatLabels" data-dojo-attach-point="defaultDateTimeNode">${defaultDateAndTimeLabel}\n </div>\n <div class="datetimeFormatWidgets" data-dojo-attach-point="defaultDateTimeWidgetNode"></div>\n </div>\n <div class="datetimeFormatContainer">\n <div class="datetimeFormatLabels" data-dojo-attach-point="defaultDateOnlyNode">${defaultDateOnlyLabel}</div>\n <div class="datetimeFormatWidgets" data-dojo-attach-point="defaultDateOnlyWidgetNode"></div>\n </div>\n </fieldset>\n\n <fieldset>\n <legend>${displayTitle}</legend>\n <div class="display" data-dojo-attach-point="displayNode"></div>\n <div class="numberOfLinesInCommandWindowScrollBufferContainer">\n <div class="numberOfLinesInCommandWindowScrollBufferLabel" data-dojo-attach-point="numberOfLinesInCommandWindowScrollBufferLabelNode"></div>\n <div class="numberOfLinesInCommandWindowScrollBufferSpinner" data-dojo-attach-point="numberOfLinesInCommandWindowScrollBufferSpinnerNode"></div>\n </div>\n <div class="hyperlinkContainer" data-dojo-attach-point="hyperlinkWrapper"></div>\n </fieldset>\n</div>'},function(e,t,i){var n,o;n=[i(215),i(216),i(203),i(2455),i(7268),i(422),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=["matlab","commandwindow"];return i([e,t],{templateString:o,suggestionsTitle:n.suggestionsTitle,postCreate:function(){this.inherited(arguments),this._buildSuggestionPreferences(),this._placeSuggestionPreferences()},_buildSuggestionPreferences:function(){this._showAutomaticallyRadioButton=new r({tag:"cwShowAutomatically",text:n.showAutomaticallyLabel,buttonGroup:"cwKeyboardRadioButton"}),this._showOnTabRadioButton=new r({tag:"cwStartOnTab",text:n.showOnTabLabel,buttonGroup:"cwKeyboardRadioButton"}),a.getSetting(s,"ShowCompletionsAutomatically").then(function(e){!0!==this._destroyed&&(this._showAutomaticallyRadioButton.set("checked",e.value),this._showOnTabRadioButton.set("checked",!e.value))}.bind(this))},_placeSuggestionPreferences:function(){this._showAutomaticallyRadioButton.placeAt(this.suggestionsNode),this._showOnTabRadioButton.placeAt(this.suggestionsNode)},startup:function(){this._showAutomaticallyRadioButton.startup(),this._showOnTabRadioButton.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){a.setSetting(s,"ShowCompletionsAutomatically",this._showAutomaticallyRadioButton.get("checked")?1:0)}})}),e,t),e.exports=o},function(e,t,i){e.exports={commandWindowCompletionTitle:"自動補完",suggestionsTitle:"候補と補完",showAutomaticallyLabel:"自動的に表示",showOnTabLabel:"タブに表示"}},function(e,t,i){e.exports={commandWindowCompletionTitle:"자동 완성",suggestionsTitle:"제안 및 완성",showAutomaticallyLabel:"자동으로 표시",showOnTabLabel:"탭에 표시"}},function(e,t,i){e.exports={commandWindowCompletionTitle:"自动填充",suggestionsTitle:"建议和自动填充项",showAutomaticallyLabel:"自动显示",showOnTabLabel:"按 Tab 键时显示"}},function(e,t,i){e.exports={root:{commandWindowCompletionTitle:"Automatic Completions",suggestionsTitle:"Suggestions and completions",showAutomaticallyLabel:"Show automatically",showOnTabLabel:"Show on tab"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="commandWindowPrefs preferencePanelContent">\n <fieldset>\n <legend>${suggestionsTitle}</legend>\n <div class="suggestions" data-dojo-attach-point="suggestionsNode"></div>\n </fieldset>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(213),i(7270),i(269),i(520),i(243),i(308),i(263),i(2456)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([t,i],{templateString:o,historyLabel:d.historySubPanelTitle,pathIndicationLabel:d.pathIndicationSubPanelTitle,postCreate:function(){this.inherited(arguments),this._buildHistoryPanel(),this._buildPathIndicationPanel(),this._placeHistoryPanel(),this._placePathIndicationPanel()},_buildHistoryPanel:function(){this.historySizeLabel=new r({tag:"historySizeLabel",text:d.historySizeLabel}),this.historySizeSpinner=new a({value:0,tag:"historySize",disabled:!0,width:50}),n.set(this.historySizeSpinner.domNode,"vertical-align","top"),this.clearButton=new s({tag:"clearButton",text:d.clearHistoryButton,disabled:!0}),n.set(this.clearButton.domNode,"vertical-align","top"),n.set(this.clearButton.domNode,"margin-left","5px"),c.getSetting(["matlab","desktop","currentfolder"],"HistorySize").then(function(e){!0!==this._destroyed&&(this.historySizeSpinner.set("value",e.value),this.historySizeSpinner.set("disabled",!1))}.bind(this)),c.getSetting(["matlab","desktop","currentfolder"],"History").then(function(e){var t=0===e.value.length;this.clearButton.set("disabled",t)}.bind(this)),this.clearButton.on("click",(function(){c.setSetting(["matlab","desktop","currentfolder"],"History",[]),c.setSetting(["matlab","desktop","addressbar"],"LocationHistory","[]")}))},_buildPathIndicationPanel:function(){this.pathIndicationCheckBox=new l({tag:"pathIndicationCheckBox",text:d.pathIndicationCheckBox,disabled:!0}),c.getSetting(["matlab","desktop","currentfolder","pathaffordance"],"Enabled").then(function(e){!0!==this._destroyed&&(this.pathIndicationCheckBox.set("disabled",!1),this.pathIndicationCheckBox.set("checked",e.value))}.bind(this))},_placeHistoryPanel:function(){this.historySizeLabel.placeAt(this.historyNode),this.historySizeSpinner.placeAt(this.historyNode),this.clearButton.placeAt(this.historyNode)},_placePathIndicationPanel:function(){this.pathIndicationCheckBox.placeAt(this.pathIndicationNode)},startup:function(){this.inherited(arguments),this.historySizeLabel.startup(),this.historySizeSpinner.startup(),this.clearButton.startup(),this.pathIndicationCheckBox.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(e){c.setSetting(["matlab","desktop","currentfolder"],"HistorySize",this.historySizeSpinner.get("value")),c.setSetting(["matlab","desktop","currentfolder","pathaffordance"],"Enabled",this.pathIndicationCheckBox.get("checked"))}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="currentFolderPrefs preferencePanelContent">\n <h3 dota-dojo-attach-point="historyLabel" class="historyHeader">${historyLabel}</h3>\n <div data-dojo-attach-point="historyNode" class="historySection"></div>\n <br>\n <h3 dota-dojo-attach-point="pathIndicationLabel" class="pathIndicationHeader">${pathIndicationLabel}</h3>\n <div data-dojo-attach-point="pathIndicationNode" class="pathIndicationSection"></div>\n</div>\n'},function(e,t,i){e.exports={currentFolderTitle:"現在のフォルダー",historySubPanelTitle:"履歴",historySizeLabel:"保存する最新のフォルダー数: ",clearHistoryButton:"履歴のクリア",pathIndicationSubPanelTitle:"パスの表示",pathIndicationCheckBox:"アクセス不可能なファイルを表示 (例: パスにないもの、プライベート ファイルなど)",tooltipCheckBox:"ファイルがアクセス不可能である理由を説明するツールのヒントを表示"}},function(e,t,i){e.exports={currentFolderTitle:"현재 폴더",historySubPanelTitle:"내역",historySizeLabel:"표시할 최근 폴더의 수: ",clearHistoryButton:"내역 지우기",pathIndicationSubPanelTitle:"경로 표시",pathIndicationCheckBox:"액세스할 수 없는 파일 표시(예: 경로에 없는 파일, 프라이빗 파일)",tooltipCheckBox:"파일에 액세스할 수 없는 이유를 설명하는 툴팁 표시"}},function(e,t,i){e.exports={currentFolderTitle:"当前文件夹",historySubPanelTitle:"历史记录",historySizeLabel:"要保存的最新文件夹数: ",clearHistoryButton:"清除历史记录",pathIndicationSubPanelTitle:"路径指示",pathIndicationCheckBox:"指示无法访问的文件(例如不在路径中,或者是私有文件)",tooltipCheckBox:"显示工具提示,说明文件无法访问的原因"}},function(e,t,i){e.exports={root:{currentFolderTitle:"Current Folder",historySubPanelTitle:"History",historySizeLabel:"Number of most recent folders to save: ",clearHistoryButton:"Clear History",pathIndicationSubPanelTitle:"Path indication",pathIndicationCheckBox:"Indicate inaccessible files (e.g. not on path, private files)",tooltipCheckBox:"Show tooltip explaining why files are inaccessible"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(7276),i(2458),i(7277),i(215),i(216),i(203),i(1588),i(2459),i(2460),i(696),i(39),i(1589),i(997)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return r([n,o],{syntaxHighlightingLabel:a.syntaxHighlightingLabel,keywordsLabel:a.keywordsLabel,commentsLabel:a.commentsLabel,stringsLabel:a.stringsLabel,preprocessorLabel:a.preprocessorLabel,charactersLabel:a.charactersLabel,badCharactersLabel:a.badCharactersLabel,applySmartIndentingLabel:a.applySmartIndentingLabel,templateString:s,postCreate:function(){this.inherited(arguments);var n={};n[t.settingKeys.KEYWORD]=this.keywordsNode,n[t.settingKeys.COMMENT]=this.commentsNode,n[t.settingKeys.STRING]=this.stringsNode,n[t.settingKeys.PREPROCESSOR]=this.preprocessorNode,n[t.settingKeys.CHARACTER]=this.charactersNode,n[t.settingKeys.BAD_CHARACTER]=this.badCharactersNode;var o={syntaxHighlightingNode:this.enableSyntaxHighlightingNode,smartIndentingNode:this.smartIndentingNode,restoreDefaultsNode:this.restoreDefaultsNode,syntaxHighlightRTCNode:this.syntaxHighlightRTCNode,fileExtensionsNode:this.fileExtensions,addButtonNode:this.addButtonNode,removeButtonNode:this.removeButtonNode,myTreeContainer:this.myTreeContainer,colorPickerNodes:n};this._baseLanguagePanel=new c({languageSettingKeys:i,colorPickerConstants:t,panelLabels:a,panelNodes:o,languageSupportRegistry:d,languageRegistry:e,sampleText:l,colorMapDefaults:u,syntaxTokenTypes:h,isAutoIndentingSupported:!0})},startup:function(){this.inherited(arguments),this._baseLanguagePanel.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(){this._baseLanguagePanel.commitPrefsChanges()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2457)],o=i.dj.d(n,(function(e){return{registry:[{id:"rtc.settings.LanguageCLikePanelSyntaxHighlighterPreferencesProvider",path:"cpanel-ui/LanguageCLikePanelSyntaxHighlighterPreferencesProvider"},{id:"rtc.settings.LanguageCLikeEnableSyntaxHighlighterPreferenceProvider",path:"cpanel-ui/LanguageCLikeEnableSyntaxHighlighterPreferenceProvider"}].concat(e.getRegistry()),enabledList:["rtc.settings.LanguageCLikePanelSyntaxHighlighterPreferencesProvider","rtc.settings.LanguageCLikeEnableSyntaxHighlighterPreferenceProvider"].concat(e.getEnabledList())}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LANGUAGE_SETTING_PATH:["matlab","editor","language","c"],LANGUAGE_SETTING_KEY:"matlab.editor.language.c.",LANGUAGE_NAME:"C",LANGUAGE_MIME:"text/x-c++src"}}),e,t),e.exports=o},function(e,t,i){e.exports={languageCLikeTitle:"C",languageCppTitle:"C++",syntaxHighlightingLabel:"構文の強調表示",enableSyntaxHighlightingLabel:"構文の強調を有効にする",keywordsLabel:"キーワード",commentsLabel:"コメント",stringsLabel:"文字列",preprocessorLabel:"プリプロセッサ",charactersLabel:"文字",badCharactersLabel:"無効な文字",indentingLabel:"インデント処理",applySmartIndentingLabel:"入力時にスマート インデントを適用",restoreDefaultsLabel:"既定の設定に戻す"}},function(e,t,i){e.exports={languageCLikeTitle:"C",languageCppTitle:"C++",syntaxHighlightingLabel:"구문 강조 표시",enableSyntaxHighlightingLabel:"구문 강조 표시 사용",keywordsLabel:"키워드",commentsLabel:"주석",stringsLabel:"문자열",preprocessorLabel:"전처리기",charactersLabel:"문자",badCharactersLabel:"잘못된 문자",indentingLabel:"들여쓰기",applySmartIndentingLabel:"입력하는 동안 스마트 들여쓰기 적용",restoreDefaultsLabel:"디폴트 값 복원"}},function(e,t,i){e.exports={languageCLikeTitle:"C",languageCppTitle:"C++",syntaxHighlightingLabel:"语法高亮",enableSyntaxHighlightingLabel:"启用语法高亮",keywordsLabel:"关键字",commentsLabel:"注释",stringsLabel:"字符串",preprocessorLabel:"预处理器",charactersLabel:"字符",badCharactersLabel:"错误字符",indentingLabel:"缩进",applySmartIndentingLabel:"键入时应用智能缩进",restoreDefaultsLabel:"还原默认值"}},function(e,t,i){e.exports={root:{languageCLikeTitle:"C",languageCppTitle:"C++",syntaxHighlightingLabel:"Syntax highlighting",enableSyntaxHighlightingLabel:"Enable syntax highlighting",keywordsLabel:"Keywords",commentsLabel:"Comments",stringsLabel:"Strings",preprocessorLabel:"Preprocessor",charactersLabel:"Characters",badCharactersLabel:"Bad characters",indentingLabel:"Indenting",applySmartIndentingLabel:"Apply smart indenting while typing",restoreDefaultsLabel:"Restore Defaults"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(218),i(220),i(7283),i(7284),i(7285),i(7286)],o=i.dj.d(n,(function(e,t){return t(e,"rtc_clike_language_support/resources/rtc_language_support/nls/cLanguage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={description:"C ソースまたはヘッダー ファイル"}},function(e,t,i){e.exports={description:"C 소스 또는 헤더 파일"}},function(e,t,i){e.exports={description:"源文件或头文件"}},function(e,t,i){e.exports={root:{description:"C source or header file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(205),i(995)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.document","rtc.editortabservice","language.interface.lexer"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(583)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.settings.service","language.common.autoindent"]}}createInstance(){return new t("matlab.editor.language.c.SmartIndentWhileTyping",...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(996)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.cursorcontroller","rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.internaldocument","language.interface.lexer","rtc.editortabservice"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(639)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.view.decoration","rtc.internaldocument","language.interface.tokenmanager","language.common.syntaxhighlighter.colors"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.c.EnableSyntaxHighlighting",requires:function(){return{createInstance:["rtc.settings.service","clike.syntaxhighlighter"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2462)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.service"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{KEYWORD_COLOR:"matlab.editor.language.c.KeywordColor",COMMENT_COLOR:"matlab.editor.language.c.CommentColor",STRING_COLOR:"matlab.editor.language.c.StringsColor",PREPROCESSOR_COLOR:"matlab.editor.language.c.PreprocessorColor",CHARACTERS_COLOR:"matlab.editor.language.c.CharactersColor",BAD_CHARACTERS_COLOR:"matlab.editor.language.c.BadCharactersColor"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[i(203),i(205),i(7295)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document.info","rtc.internaldocument","rtc.document.eventcache","rtc.internal.language","rtc.editortabservice"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(998),i(2463)],o=i.dj.d(n,(function(e,t,i){return e(t,{_setupCodeMirror:function(e){i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=function(){this.modes={},this.mimeModes={},this.defineMIME("text/plain","null"),this.defineMode("null",(function(){return{token:function(e){e.skipToEnd()}}}))};return e.prototype.defineMIME=function(e,t){this.mimeModes[e]=t},e.prototype.defineMode=function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),this.modes[e]=t},e.prototype.resolveMode=function(e){return"string"==typeof e&&this.mimeModes.hasOwnProperty(e)?e=this.mimeModes[e]:e&&"string"==typeof e.name&&this.mimeModes.hasOwnProperty(e.name)&&(e=this.mimeModes[e.name]),"string"==typeof e?{name:e}:e||{name:"null"}},e.prototype.getMode=function(e,t){t=this.resolveMode(t);var i=this.modes[t.name];if(!i)throw new Error("Unknown mode: "+t);return i(e,t)},e.prototype.startState=function(e,t,i){return!e.startState||e.startState(t,i)},e.prototype.splitLines=function(e){return e.split(/\r?\n|\r|\n/)},e.prototype.copyState=function(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var o=t[n];o instanceof Array&&(o=o.concat([])),i[n]=o}return i},e.prototype.registerGlobalHelper=Math.min,e.prototype.registerHelper=Math.min,e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};return e.prototype.eol=function(){return this.pos>=this.string.length},e.prototype.sol=function(){return this.pos===this.lineStart},e.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},e.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},e.prototype.eat=function(e){let t,i=this.string.charAt(this.pos);if(t="string"==typeof e?i==e:i&&(e.test?e.test(i):e(i)),t)return++this.pos,i},e.prototype.eatWhile=function(e){let t=this.pos;for(;this.eat(e););return this.pos>t},e.prototype.eatSpace=function(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},e.prototype.skipToEnd=function(){this.pos=this.string.length},e.prototype.skipTo=function(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},e.prototype.backUp=function(e){this.pos-=e},e.prototype.countColumn=function(e,t,i,n,o){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(let r=n||0,a=o||0;;){let n=e.indexOf("\t",r);if(n<0||n>=t)return a+(t-r);a+=n-r,a+=i-a%i,r=n+1}},e.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=this.countColumn(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?this.countColumn(this.string,this.lineStart,this.tabSize):0)},e.prototype.indentation=function(){return this.countColumn(this.string,null,this.tabSize)-(this.lineStart?this.countColumn(this.string,this.lineStart,this.tabSize):0)},e.prototype.match=function(e,t,i){if("string"!=typeof e){let i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}{let n=e=>i?e.toLowerCase():e;if(n(this.string.substr(this.pos,e.length))==n(e))return!1!==t&&(this.pos+=e.length),!0}},e.prototype.current=function(){return this.string.slice(this.start,this.pos)},e.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},e.prototype.lookAhead=function(e){let t=this.lineOracle;return t&&t.lookAhead(e)},e.prototype.baseToken=function(){let e=this.lineOracle;return e&&e.baseToken(this.pos)},e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(999)],o=i.dj.d(n,(function(e,t,i){return class extends t{requires(){return{createInstance:["language.interface.lexer"]}}createInstance(){return new i(...arguments)}priority(){return 10}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1415)],o=i.dj.d(n,e=>{const t="(",i=")",n="[",o="]",r="{",a="}";return class extends e{isStartToken(e){return this._doesTokenMatchParenType(e)&&(e.getValue()===t||e.getValue()===n||e.getValue()===r)}isMidToken(e){return!1}isEndToken(e){return this._doesTokenMatchParenType(e)&&(e.getValue()===i||e.getValue()===o||e.getValue()===a)}areMatchingTokens(e,s){return e.getValue()===t&&s.getValue()===i||e.getValue()===i&&s.getValue()===t||e.getValue()===n&&s.getValue()===o||e.getValue()===o&&s.getValue()===n||e.getValue()===r&&s.getValue()===a||e.getValue()===a&&s.getValue()===r}areSameClassOfBlockToken(e,s){const l=e.getValue(),c=s.getValue();switch(l){case t:case i:return c===t||c===i;case n:case o:return c===n||c===o;case r:case a:return c===r||c===a}return!1}_doesTokenMatchParenType(e){return!e.getType()}}},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2458),i(7301),i(7302),i(215),i(216),i(203),i(1588),i(2459),i(2460),i(696),i(39),i(47),i(1589),i(997)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return r([n,o],{syntaxHighlightingLabel:a.syntaxHighlightingLabel,keywordsLabel:a.keywordsLabel,commentsLabel:a.commentsLabel,stringsLabel:a.stringsLabel,preprocessorLabel:a.preprocessorLabel,charactersLabel:a.charactersLabel,badCharactersLabel:a.badCharactersLabel,applySmartIndentingLabel:a.applySmartIndentingLabel,templateString:s,postCreate:function(){this.inherited(arguments);var n={};n[e.settingKeys.KEYWORD]=this.keywordsNode,n[e.settingKeys.COMMENT]=this.commentsNode,n[e.settingKeys.STRING]=this.stringsNode,n[e.settingKeys.PREPROCESSOR]=this.preprocessorNode,n[e.settingKeys.CHARACTER]=this.charactersNode,n[e.settingKeys.BAD_CHARACTER]=this.badCharactersNode;var o={syntaxHighlightingNode:this.enableSyntaxHighlightingNode,smartIndentingNode:this.smartIndentingNode,restoreDefaultsNode:this.restoreDefaultsNode,syntaxHighlightRTCNode:this.syntaxHighlightRTCNode,colorPickerNodes:n,fileExtensionsNode:this.fileExtensions,addButtonNode:this.addButtonNode,removeButtonNode:this.removeButtonNode,myTreeContainer:this.myTreeContainer};this._baseLanguagePanel=new c({languageSettingKeys:i,colorPickerConstants:e,panelLabels:a,panelNodes:o,aliasLanguageSupportRegistry:u,languageSupportRegistry:d,languageRegistry:t,sampleText:l,colorMapDefaults:h,syntaxTokenTypes:p,isAutoIndentingSupported:!0})},startup:function(){this.inherited(arguments),this._baseLanguagePanel.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(){this._baseLanguagePanel.commitPrefsChanges()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2457)],o=i.dj.d(n,(function(e){return{registry:[{id:"rtc.settings.LanguageCppPanelSyntaxHighlighterPreferencesProvider",path:"cpanel-ui/LanguageCppPanelSyntaxHighlighterPreferencesProvider"},{id:"rtc.settings.LanguageCppEnableSyntaxHighlighterPreferenceProvider",path:"cpanel-ui/LanguageCppEnableSyntaxHighlighterPreferenceProvider"}].concat(e.getRegistry()),enabledList:["rtc.settings.LanguageCppPanelSyntaxHighlighterPreferencesProvider","rtc.settings.LanguageCppEnableSyntaxHighlighterPreferenceProvider"].concat(e.getEnabledList())}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LANGUAGE_SETTING_PATH:["matlab","editor","language","cpp"],LANGUAGE_SETTING_KEY:"matlab.editor.language.cpp.",LANGUAGE_NAME:"CPP",LANGUAGE_MIME:"text/x-c++src"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7304),i(7305),i(7306),i(7307)],o=i.dj.d(n,(function(e,t){return t(e,"rtc_clike_language_support/resources/rtc_language_support/nls/cppLanguage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={description:"C++ ソースまたはヘッダー ファイル"}},function(e,t,i){e.exports={description:"C++ 소스 또는 헤더 파일"}},function(e,t,i){e.exports={description:"C++ 源文件或头文件"}},function(e,t,i){e.exports={root:{description:"C++ source or header file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(205),i(583)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.settings.service","language.common.autoindent"]}}createInstance(){return new t("matlab.editor.language.cpp.SmartIndentWhileTyping",...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(415)],o=i.dj.d(n,(function(e,t){return class extends e{constructor(){super(),this._SETTING_KEY="matlab.editor.language.cpp.EnableSyntaxHighlighting"}requires(){return{createInstance:["rtc.settings.service","clike.syntaxhighlighter"]}}createInstance(e,i){return new t(this._SETTING_KEY,e,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2464)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.service"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{KEYWORD_COLOR:"matlab.editor.language.cpp.KeywordColor",COMMENT_COLOR:"matlab.editor.language.cpp.CommentColor",STRING_COLOR:"matlab.editor.language.cpp.StringsColor",PREPROCESSOR_COLOR:"matlab.editor.language.cpp.PreprocessorColor",CHARACTERS_COLOR:"matlab.editor.language.cpp.CharactersColor",BAD_CHARACTERS_COLOR:"matlab.editor.language.cpp.BadCharactersColor"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.c.EnableSyntaxHighlighting",requires:function(){return{isApplicable:[],createInstance:["rtc.settings.colorsservice","rtc.settings.LanguageCLikePanelSyntaxHighlighterProvider"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2462)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.colorsservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(639)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.view.decoration","rtc.internaldocument","language.interface.tokenmanager","language.common.syntaxhighlighter.colors"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(415)],o=i.dj.d(n,(function(e,t){return class extends e{constructor(){super(),this._SETTING_KEY="matlab.editor.language.cpp.EnableSyntaxHighlighting"}requires(){return{createInstance:["rtc.settings.colorsservice","rtc.settings.LanguageCLikePanelSyntaxHighlighterProvider"]}}createInstance(e,i){return new t(this._SETTING_KEY,e,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2464)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.colorsservice"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){e.exports={languageJavaTitle:"Java",syntaxHighlightingLabel:"構文の強調表示",enableSyntaxHighlightingLabel:"構文の強調を有効にする",keywordsLabel:"キーワード",commentsLabel:"コメント",stringsLabel:"文字列",charactersLabel:"文字",badCharactersLabel:"無効な文字",indentingLabel:"インデント処理",applySmartIndentingLabel:"入力時にスマート インデントを適用",restoreDefaultsLabel:"既定の設定に戻す"}},function(e,t,i){e.exports={languageJavaTitle:"Java",syntaxHighlightingLabel:"구문 강조 표시",enableSyntaxHighlightingLabel:"구문 강조 표시 사용",keywordsLabel:"키워드",commentsLabel:"주석",stringsLabel:"문자열",charactersLabel:"문자",badCharactersLabel:"잘못된 문자",indentingLabel:"들여쓰기",applySmartIndentingLabel:"입력하는 동안 스마트 들여쓰기 적용",restoreDefaultsLabel:"디폴트 값 복원"}},function(e,t,i){e.exports={languageJavaTitle:"Java",syntaxHighlightingLabel:"语法高亮",enableSyntaxHighlightingLabel:"启用语法高亮",keywordsLabel:"关键字",commentsLabel:"注释",stringsLabel:"字符串",charactersLabel:"字符",badCharactersLabel:"错误字符",indentingLabel:"缩进",applySmartIndentingLabel:"键入时应用智能缩进",restoreDefaultsLabel:"还原默认值"}},function(e,t,i){e.exports={root:{languageJavaTitle:"Java",syntaxHighlightingLabel:"Syntax highlighting",enableSyntaxHighlightingLabel:"Enable syntax highlighting",keywordsLabel:"Keywords",commentsLabel:"Comments",stringsLabel:"Strings",charactersLabel:"Characters",badCharactersLabel:"Bad characters",indentingLabel:"Indenting",applySmartIndentingLabel:"Apply smart indenting while typing",restoreDefaultsLabel:"Restore Defaults"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(216),i(215),i(203),i(2465),i(7322),i(7323),i(696),i(7324),i(7325),i(7326),i(48),i(2467),i(1591)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return i([t,e],{templateString:o,syntaxHighlightingLabel:n.syntaxHighlightingLabel,enableSyntaxHighlightingLabel:n.enableSyntaxHighlightingLabel,keywordsLabel:n.keywordsLabel,commentsLabel:n.commentsLabel,stringsLabel:n.stringsLabel,charactersLabel:n.charactersLabel,badCharactersLabel:n.badCharactersLabel,indentingLabel:n.indentingLabel,applySmartIndentingLabel:n.applySmartIndentingLabel,postCreate:function(){this.inherited(arguments);var e={};e[s.settingKeys.KEYWORD]=this.keywordsNode,e[s.settingKeys.COMMENT]=this.commentsNode,e[s.settingKeys.STRING]=this.stringsNode,e[s.settingKeys.CHARACTER]=this.charactersNode,e[s.settingKeys.ERROR]=this.badCharactersNode;var t={syntaxHighlightingNode:this.enableSyntaxHighlightingNode,smartIndentingNode:this.applySmartIndentingNode,restoreDefaultsNode:this.restoreDefaultsNode,syntaxHighlightRTCNode:this.rtcNode,fileExtensionsNode:this.fileExtensions,addButtonNode:this.addButtonNode,removeButtonNode:this.removeButtonNode,myTreeContainer:this.myTreeContainer,colorPickerNodes:e};this._baseLanguagePanel=new a({languageSettingKeys:l,colorPickerConstants:s,panelLabels:n,panelNodes:t,languageSupportRegistry:d,languageRegistry:c,sampleText:r,colorMapDefaults:u,syntaxTokenTypes:h,isAutoIndentingSupported:!0})},startup:function(){this.inherited(arguments),this._baseLanguagePanel.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(){this._baseLanguagePanel.commitPrefsChanges()}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="languageJavaPrefs preferencePanelContent">\n <fieldset>\n <legend>${syntaxHighlightingLabel}</legend>\n </fieldset>\n <div data-dojo-attach-point="enableSyntaxHighlightingNode"></div>\n <fieldset class="syntaxColors">\n <div class="leftAlignedColors">\n <div class="javaKeywords">\n <div class="container">\n <div class="content">${keywordsLabel}</div>\n <div class="widget" data-dojo-attach-point="keywordsNode"></div>\n </div>\n </div>\n <div class="javaStrings">\n <div class="container">\n <div class="content">${stringsLabel}</div>\n <div class="widget" data-dojo-attach-point="stringsNode"></div>\n </div>\n </div>\n <div class="javaBadCharacters">\n <div class="container">\n <div class="content">${badCharactersLabel}</div>\n <div class="widget" data-dojo-attach-point="badCharactersNode"></div>\n </div>\n </div>\n </div>\n <div class="rightAlignedColors">\n <div class="javaComments">\n <div class="container">\n <div class="content">${commentsLabel}</div>\n <div class="widget" data-dojo-attach-point="commentsNode"></div>\n </div>\n </div>\n <div class="javaCharacters">\n <div class="container">\n <div class="content">${charactersLabel}</div>\n <div class="widget" data-dojo-attach-point="charactersNode"></div>\n </div>\n </div>\n </div>\n </fieldset>\n <div class="previewPanel" data-dojo-attach-point="rtcNode" id="previewPanel"></div>\n <div class="space"></div>\n <fieldset class="indenting">\n <legend>${indentingLabel}</legend>\n <div class="smartIndent" data-dojo-attach-point="applySmartIndentingNode"></div>\n </fieldset>\n <fieldset data-dojo-attach-point="fileExtensions">\n <div class="FileExtensionsNode">\n <div class="FileExtensions JavaFileExtensions" data-dojo-attach-point="myTreeContainer">\n </div>\n <div class="buttonsNode">\n <div data-dojo-attach-point="addButtonNode"></div>\n <div data-dojo-attach-point="removeButtonNode"></div>\n </div>\n </div>\n </fieldset>\n <div class="restore" data-dojo-attach-point="restoreDefaultsNode"></div>\n</div>'},function(e,t){e.exports="switch(getCurrentState()){\n case 'a':\n return \"alive\"; # // active state"},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{settingKeys:{KEYWORD:"KeywordColor",COMMENT:"CommentColor",STRING:"StringsColor",CHARACTER:"CharactersColor",ERROR:"BadCharactersColor"},pickerTags:{KEYWORD:"keywordPreview",COMMENT:"commentsPreview",STRING:"stringsPreview",CHARACTER:"charactersPreview",ERROR:"badCharactersPreview"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LANGUAGE_SETTING_PATH:["matlab","editor","language","java"],LANGUAGE_SETTING_KEY:"matlab.editor.language.java.",LANGUAGE_NAME:"Java",LANGUAGE_MIME:"text/x-java"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7327),i(7328),i(7330),i(7331)],o=i.dj.d(n,(function(){return{registry:[{id:"rtc.settings.colorsservice",path:"panel-utilities-js/PreviewSettingsServiceProvider"},{id:"java.LanguageJavaPanelSyntaxHighlighterProvider",path:"javapanel-ui/LanguageJavaPanelSyntaxHighlighterProvider"},{id:"java.LanguageJavaPanelSyntaxHighlighterPreferencesProvider",path:"javapanel-ui/LanguageJavaPanelSyntaxHighlighterPreferencesProvider"},{id:"java.LanguageJavaEnableSyntaxHighlighterPreferenceProvider",path:"javapanel-ui/LanguageJavaEnableSyntaxHighlighterPreferenceProvider"}],enabledList:["rtc.settings.service","rtc.settings.colorsservice","java.LanguageJavaPanelSyntaxHighlighterProvider","java.LanguageJavaPanelSyntaxHighlighterPreferencesProvider","java.LanguageJavaEnableSyntaxHighlighterPreferenceProvider","settings.matlabsynchronizer","language.common.syntaxhighlighter.colors","language.java.syntaxhighlighter.colorcontributor","java.tokenizer"]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.java.EnableSyntaxHighlighting",requires:function(){return{isApplicable:[],createInstance:["rtc.settings.colorsservice","java.LanguageJavaPanelSyntaxHighlighterProvider"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2466)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.colorsservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{KEYWORD_COLOR:"matlab.editor.language.java.KeywordColor",COMMENT_COLOR:"matlab.editor.language.java.CommentColor",STRING_COLOR:"matlab.editor.language.java.StringsColor",CHARACTERS_COLOR:"matlab.editor.language.java.CharactersColor",BAD_CHARACTERS_COLOR:"matlab.editor.language.java.BadCharactersColor"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[i(203),i(205),i(639)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.view.decoration","rtc.internaldocument","language.interface.tokenmanager","language.common.syntaxhighlighter.colors"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7332),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["preferences.pickers","preferences.labels","preferences.settingKey","preferences.checkBox"]}},createInstance:function(e,i,n,o){return new t(e,i,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(208),i(1585)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_RGB_CONVERSION_EXPRESSION:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,constructor:function(e,t,i,n){var o;for(o in this._pickers=e,this._labels=t,this._settingKey=i,this._checkBox=n,this._pickers)this._pickers.hasOwnProperty(o)&&this.own(this._pickers[o].on("change",this._handleToUpdate.bind(this,o,this._labels[o])));for(n in this._checkBox)this._checkBox.hasOwnProperty(n)&&this.own(this._checkBox[n].on("change",this._handleToUpdateCheckBox.bind(this,n)))},_handleToUpdate:function(e,t,i){this._updateLabel(t,i),this._updateColor(e,i)},_handleToUpdateCheckBox:function(e,t){this.setSetting(this._settingKey+e,t.mwEventData.newValue)},_updateColor:function(e,t){this.setSetting(this._settingKey+e,this._hexToRgb(t.mwEventData.newValue))},_updateLabel:function(e,i){t.set(e.querySelector('div[class="divColor"]'),"background-color",i.mwEventData.newValue)},_hexToRgb:function(e){var t=this._RGB_CONVERSION_EXPRESSION.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7334),i(7335),i(7336),i(7337)],o=i.dj.d(n,(function(e,t){return t(e,"rtc_java_language_support/resources/rtc_language_support/nls/javaLanguage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={description:"Java ソース ファイル"}},function(e,t,i){e.exports={description:"Java 소스 파일"}},function(e,t,i){e.exports={description:"Java 源文件"}},function(e,t,i){e.exports={root:{description:"Java source file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(205),i(995)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.document","rtc.editortabservice","language.interface.lexer"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(583)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.settings.service","language.common.autoindent"]}}createInstance(){return new t("matlab.editor.language.java.SmartIndentWhileTyping",...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(996)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.cursorcontroller","rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.internaldocument","language.interface.lexer","rtc.editortabservice"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(821),i(2467)],o=i.dj.d(n,(function(e,t,i){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors"]}}createInstance(){return new t(i.colorMapDefaults,i.typeMapDefaults,...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(639)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.view.decoration","rtc.internaldocument","language.interface.tokenmanager","language.common.syntaxhighlighter.colors"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.java.EnableSyntaxHighlighting",requires:function(){return{createInstance:["rtc.settings.service","java.syntaxhighlighter"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2466)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.service"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7346)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document.info","rtc.internaldocument","rtc.document.eventcache","rtc.internal.language","rtc.editortabservice"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2463),i(998)],o=i.dj.d(n,(function(e,t,i){return e(i,{_setupCodeMirror:function(e){t(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(999)],o=i.dj.d(n,(function(e,t,i){return class extends t{requires(){return{createInstance:["language.interface.lexer"]}}createInstance(){return new i(...arguments)}priority(){return 10}}}),e,t),e.exports=o},function(e,t,i){e.exports={languageXmlTitle:"XML",languageHtmlTitle:"HTML",syntaxHighlightingLabel:"構文の強調表示",enableSyntaxHighlightingLabel:"構文の強調を有効にする",errorLabel:"エラー",tagLabel:"タグ",attributeNameLabel:"属性名",operatorLabel:"演算子",attributeValueLabel:"属性値",commentLabel:"コメント",doctypeDeclarationLabel:"DOCTYPE 宣言",characterLabel:"文字",processingInstructionLabel:"処理する命令",cdataSectionLabel:"CDATA セクション",smartIndentingLabel:"インデント処理",applySmartIndentingLabel:"入力時にスマート インデントを適用",restoreDefaultsLabel:"既定の設定に戻す"}},function(e,t,i){e.exports={languageXmlTitle:"XML",languageHtmlTitle:"HTML",syntaxHighlightingLabel:"구문 강조 표시",enableSyntaxHighlightingLabel:"구문 강조 표시 사용",errorLabel:"오류",tagLabel:"태그",attributeNameLabel:"특성(Attribute) 이름",operatorLabel:"연산자",attributeValueLabel:"특성(Attribute) 값",commentLabel:"주석",doctypeDeclarationLabel:"DOCTYPE 선언",characterLabel:"문자",processingInstructionLabel:"처리 명령",cdataSectionLabel:"CDATA 섹션",smartIndentingLabel:"들여쓰기",applySmartIndentingLabel:"입력하는 동안 스마트 들여쓰기 적용",restoreDefaultsLabel:"디폴트 값 복원"}},function(e,t,i){e.exports={languageXmlTitle:"XML",languageHtmlTitle:"HTML",syntaxHighlightingLabel:"语法高亮",enableSyntaxHighlightingLabel:"启用语法高亮",errorLabel:"错误",tagLabel:"标签",attributeNameLabel:"属性名称",operatorLabel:"运算符",attributeValueLabel:"属性值",commentLabel:"注释",doctypeDeclarationLabel:"DOCTYPE 声明",characterLabel:"字符",processingInstructionLabel:"处理指令",cdataSectionLabel:"CDATA 节",smartIndentingLabel:"缩进",applySmartIndentingLabel:"键入时应用智能缩进",restoreDefaultsLabel:"还原默认值"}},function(e,t,i){e.exports={root:{languageXmlTitle:"XML",languageHtmlTitle:"HTML",syntaxHighlightingLabel:"Syntax highlighting",enableSyntaxHighlightingLabel:"Enable syntax highlighting",errorLabel:"Error",tagLabel:"Tag",attributeNameLabel:"Attribute name",operatorLabel:"Operator",attributeValueLabel:"Attribute value",commentLabel:"Comment",doctypeDeclarationLabel:"DOCTYPE declaration",characterLabel:"Character",processingInstructionLabel:"Processing instruction",cdataSectionLabel:"CDATA section",smartIndentingLabel:"Indenting",applySmartIndentingLabel:"Apply smart indenting while typing",restoreDefaultsLabel:"Restore Defaults"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(216),i(215),i(203),i(1592),i(2468),i(2469),i(696),i(1593),i(1e3),i(49),i(40),i(2475),i(7378),i(7379)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return i([t,e],{templateString:o,syntaxHighlightingLabel:n.syntaxHighlightingLabel,enableSyntaxHighlightingLabel:n.enableSyntaxHighlightingLabel,errorLabel:n.errorLabel,tagLabel:n.tagLabel,attributeNameLabel:n.attributeNameLabel,operatorLabel:n.operatorLabel,attributeValueLabel:n.attributeValueLabel,commentLabel:n.commentLabel,doctypeDeclarationLabel:n.doctypeDeclarationLabel,characterLabel:n.characterLabel,processingInstructionLabel:n.processingInstructionLabel,cdataSectionLabel:n.cdataSectionLabel,smartIndentingLabel:n.smartIndentingLabel,applySmartIndentingLabel:n.applySmartIndentingLabel,postCreate:function(){this.inherited(arguments);var e={};e[u.settingKeys.ERROR]=this.errorNode,e[u.settingKeys.TAG]=this.tagNode,e[u.settingKeys.ATTRIBUTE_NAME]=this.attributeNameNode,e[u.settingKeys.OPERATOR]=this.operatorNode,e[u.settingKeys.COMMENT]=this.commentNode,e[u.settingKeys.DOCTYPE_DECLARATION]=this.doctypeDeclarationNode,e[u.settingKeys.CHARACTER]=this.characterNode,e[u.settingKeys.PROCESSING_INSTRUCTION]=this.processingInstructionNode,e[u.settingKeys.CDATA_SECTION]=this.cdataSectionNode,e[u.settingKeys.ATTRIBUTE_VALUE]=this.attributeValueNode;var t={syntaxHighlightingNode:this.enableSyntaxHighlightingNode,smartIndentingNode:this.applySmartIndentingNode,restoreDefaultsNode:this.restoreDefaultsNode,syntaxHighlightRTCNode:this.rtcNode,colorPickerNodes:e,fileExtensionsNode:this.fileExtensions,addButtonNode:this.addButtonNode,removeButtonNode:this.removeButtonNode,myTreeContainer:this.myTreeContainer};this._baseLanguagePanel=new a({languageSettingKeys:h,colorPickerConstants:u,panelLabels:n,panelNodes:t,aliasLanguageSupportRegistry:d,languageSupportRegistry:c,languageRegistry:p,sampleText:r,colorMapDefaults:s,syntaxTokenTypes:l,isAutoIndentingSupported:!0})},startup:function(){this.inherited(arguments),this._baseLanguagePanel.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(){this._baseLanguagePanel.commitPrefsChanges()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7354),i(7355),i(7356),i(7357)],o=i.dj.d(n,(function(e,t){return t(e,"rtc_xml_language_support/resources/rtc_language_support/nls/htmlLanguage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={description:"HTML ソース ファイル"}},function(e,t,i){e.exports={description:"HTML 소스 파일"}},function(e,t,i){e.exports={description:"HTML 源文件"}},function(e,t,i){e.exports={root:{description:"HTML source file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(205),i(583)],o=i.dj.d(n,(function(e,t){return class extends e{constructor(){super(),this._SETTING_KEY="matlab.editor.language.html.SmartIndentWhileTyping"}requires(){return{createInstance:["rtc.settings.service","language.common.autoindent"]}}createInstance(e,i){return new t(this._SETTING_KEY,e,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(415)],o=i.dj.d(n,(function(e,t){return class extends e{constructor(){super(),this._SETTING_KEY="matlab.editor.language.html.EnableSyntaxHighlighting"}requires(){return{createInstance:["rtc.settings.service","xml.syntaxhighlighter"]}}createInstance(e,i){return new t(this._SETTING_KEY,e,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2471)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.service"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{ERROR_COLOR:"matlab.editor.language.html.ErrorColor",TAG_COLOR:"matlab.editor.language.html.TagColor",ATTRIBUTE_NAME_COLOR:"matlab.editor.language.html.AttributeNameColor",OPERATOR_COLOR:"matlab.editor.language.html.OperatorColor",ATTRIBUTE_VALUE_COLOR:"matlab.editor.language.html.AttributeValueColor",COMMENT_COLOR:"matlab.editor.language.html.CommentColor",DOCTYPE_DECLARATION_COLOR:"matlab.editor.language.html.DoctypeDeclarationColor",CHARACTER_COLOR:"matlab.editor.language.html.CharacterColor",PROCESSING_INSTRUCTION_COLOR:"matlab.editor.language.html.ProcessingInstructionColor",CDATA_SECTION_COLOR:"matlab.editor.language.html.CdataSectionColor"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[i(218),i(220),i(7363),i(7364),i(7365),i(7366)],o=i.dj.d(n,(function(e,t){return t(e,"rtc_xml_language_support/resources/rtc_language_support/nls/xmlLanguage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={description:"XML ソース ファイル"}},function(e,t,i){e.exports={description:"XML 소스 파일"}},function(e,t,i){e.exports={description:"XML 源文件"}},function(e,t,i){e.exports={root:{description:"XML source file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(205),i(995)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.document","rtc.editortabservice","language.interface.lexer"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(583)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.settings.service","language.common.autoindent"]}}createInstance(){return new t("matlab.editor.language.xml.SmartIndentWhileTyping",...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(996)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.cursorcontroller","rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.internaldocument","language.interface.lexer","rtc.editortabservice"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(639)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.view.decoration","rtc.internaldocument","language.interface.tokenmanager","language.common.syntaxhighlighter.colors"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.xml.EnableSyntaxHighlighting",requires:function(){return{createInstance:["rtc.settings.service","xml.syntaxhighlighter"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2472)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.service"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{ERROR_COLOR:"matlab.editor.language.xml.ErrorColor",TAG_COLOR:"matlab.editor.language.xml.TagColor",ATTRIBUTE_NAME_COLOR:"matlab.editor.language.xml.AttributeNameColor",OPERATOR_COLOR:"matlab.editor.language.xml.OperatorColor",ATTRIBUTE_VALUE_COLOR:"matlab.editor.language.xml.AttributeValueColor",COMMENT_COLOR:"matlab.editor.language.xml.CommentColor",DOCTYPE_DECLARATION_COLOR:"matlab.editor.language.xml.DoctypeDeclarationColor",CHARACTER_COLOR:"matlab.editor.language.xml.CharacterColor",PROCESSING_INSTRUCTION_COLOR:"matlab.editor.language.xml.ProcessingInstructionColor",CDATA_SECTION_COLOR:"matlab.editor.language.xml.CdataSectionColor"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[i(203),i(205),i(7375)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document.info","rtc.internaldocument","rtc.document.eventcache","rtc.internal.language","rtc.editortabservice"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2473),i(7376),i(1594),i(2474),i(998)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_setupCodeMirror:function(e){t(e),n(e),o(e),i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2474),i(1594),i(2473)],o=i.dj.d(n,(function(){"use strict";var e={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};var t={};function i(e,i){var n=e.match(function(e){var i=t[e];return i||(t[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(i));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function n(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function o(e,t){for(var i in e)for(var n=t[i]||(t[i]=[]),o=e[i],r=o.length-1;r>=0;r--)n.unshift(o[r])}return function(t){t.defineMode("htmlmixed",(function(r,a){var s=t.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag}),l={},c=a&&a.tags,d=a&&a.scriptTypes;if(o(e,l),c&&o(c,l),d)for(var u=d.length-1;u>=0;u--)l.script.unshift(["type",d[u].matches,d[u].mode]);function h(e,o){var a,c=s.token(e,o.htmlState),d=/\btag\b/.test(c);if(d&&!/[<>\s\/]/.test(e.current())&&(a=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))o.inTag=a+" ";else if(o.inTag&&d&&/>$/.test(e.current())){var u=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var p=">"==e.current()&&function(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(!o[0]||o[1].test(i(t,o[0])))return o[2]}}(l[u[1]],u[2]),f=t.getMode(r,p),g=n(u[1],!0),m=n(u[1],!1);o.token=function(e,t){return e.match(g,!1)?(t.token=h,t.localState=t.localMode=null,null):function(e,t,i){var n=e.current(),o=n.search(t);return o>-1?e.backUp(n.length-o):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),i}(e,m,t.localMode.token(e,t.localState))},o.localMode=f,o.localState=t.startState(f,s.indent(o.htmlState,""))}else o.inTag&&(o.inTag+=e.current(),e.eol()&&(o.inTag+=" "));return c}return{startState:function(){return{token:h,inTag:null,localMode:null,localState:null,htmlState:t.startState(s)}},copyState:function(e){var i;return e.localState&&(i=t.copyState(e.localMode,e.localState)),{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:i,htmlState:t.copyState(s,e.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(e,i,n){return!e.localMode||/^\s*<\//.test(i)?s.indent(e.htmlState,i):e.localMode.indent?e.localMode.indent(e.localState,i,n):t.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||s}}}}),"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(999)],o=i.dj.d(n,(function(e,t,i){return class extends t{requires(){return{createInstance:["language.interface.lexer"]}}createInstance(){return new i(...arguments)}priority(){return 10}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LANGUAGE_SETTING_PATH:["matlab","editor","language","html"],LANGUAGE_SETTING_KEY:"matlab.editor.language.html.",LANGUAGE_NAME:"HTML",LANGUAGE_MIME:"text/html"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2476)],o=i.dj.d(n,(function(e){return{registry:[{id:"xml.LanguageHtmlPanelSyntaxHighlighterPreferencesProvider",path:"xmlpanel-ui/LanguageHtmlPanelSyntaxHighlighterPreferencesProvider"},{id:"xml.LanguageHtmlEnableSyntaxHighlighterPreferenceProvider",path:"xmlpanel-ui/LanguageHtmlEnableSyntaxHighlighterPreferenceProvider"}].concat(e.getRegistry()),enabledList:["xml.LanguageHtmlPanelSyntaxHighlighterPreferencesProvider","xml.LanguageHmlEnableSyntaxHighlighterPreferenceProvider"].concat(e.getEnabledList())}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(203),i(1592),i(2468),i(2469),i(696),i(1593),i(1e3),i(40),i(2475),i(7381),i(7382)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return i([t,e],{templateString:o,syntaxHighlightingLabel:n.syntaxHighlightingLabel,enableSyntaxHighlightingLabel:n.enableSyntaxHighlightingLabel,errorLabel:n.errorLabel,tagLabel:n.tagLabel,attributeNameLabel:n.attributeNameLabel,operatorLabel:n.operatorLabel,attributeValueLabel:n.attributeValueLabel,commentLabel:n.commentLabel,doctypeDeclarationLabel:n.doctypeDeclarationLabel,characterLabel:n.characterLabel,processingInstructionLabel:n.processingInstructionLabel,cdataSectionLabel:n.cdataSectionLabel,smartIndentingLabel:n.smartIndentingLabel,applySmartIndentingLabel:n.applySmartIndentingLabel,postCreate:function(){this.inherited(arguments);var e={};e[d.settingKeys.ERROR]=this.errorNode,e[d.settingKeys.TAG]=this.tagNode,e[d.settingKeys.ATTRIBUTE_NAME]=this.attributeNameNode,e[d.settingKeys.OPERATOR]=this.operatorNode,e[d.settingKeys.COMMENT]=this.commentNode,e[d.settingKeys.DOCTYPE_DECLARATION]=this.doctypeDeclarationNode,e[d.settingKeys.CHARACTER]=this.characterNode,e[d.settingKeys.PROCESSING_INSTRUCTION]=this.processingInstructionNode,e[d.settingKeys.CDATA_SECTION]=this.cdataSectionNode,e[d.settingKeys.ATTRIBUTE_VALUE]=this.attributeValueNode;var t={syntaxHighlightingNode:this.enableSyntaxHighlightingNode,smartIndentingNode:this.applySmartIndentingNode,restoreDefaultsNode:this.restoreDefaultsNode,syntaxHighlightRTCNode:this.rtcNode,colorPickerNodes:e,fileExtensionsNode:this.fileExtensions,addButtonNode:this.addButtonNode,removeButtonNode:this.removeButtonNode,myTreeContainer:this.myTreeContainer};this._baseLanguagePanel=new a({languageSettingKeys:u,colorPickerConstants:d,panelLabels:n,panelNodes:t,languageSupportRegistry:c,languageRegistry:h,sampleText:r,colorMapDefaults:s,syntaxTokenTypes:l,isAutoIndentingSupported:!0})},startup:function(){this.inherited(arguments),this._baseLanguagePanel.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(){this._baseLanguagePanel.commitPrefsChanges()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LANGUAGE_SETTING_PATH:["matlab","editor","language","xml"],LANGUAGE_SETTING_KEY:"matlab.editor.language.xml.",LANGUAGE_NAME:"XML",LANGUAGE_MIME:"text/xml"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2476)],o=i.dj.d(n,(function(e){return{registry:[{id:"xml.LanguageXmlPanelSyntaxHighlighterPreferencesProvider",path:"xmlpanel-ui/LanguageXmlPanelSyntaxHighlighterPreferencesProvider"},{id:"xml.LanguageXmlEnableSyntaxHighlighterPreferenceProvider",path:"xmlpanel-ui/LanguageXmlEnableSyntaxHighlighterPreferenceProvider"}].concat(e.getRegistry()),enabledList:["xml.LanguageXmlPanelSyntaxHighlighterPreferencesProvider","xml.LanguageXmlEnableSyntaxHighlighterPreferenceProvider"].concat(e.getEnabledList())}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(415)],o=i.dj.d(n,(function(e,t){return class extends e{constructor(){super(),this._SETTING_KEY="matlab.editor.language.html.EnableSyntaxHighlighting"}requires(){return{createInstance:["rtc.settings.colorsservice","xml.LanguageXmlPanelSyntaxHighlighterProvider"]}}createInstance(e,i){return new t(this._SETTING_KEY,e,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2471)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.colorsservice"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.xml.EnableSyntaxHighlighting",requires:function(){return{isApplicable:[],createInstance:["rtc.settings.colorsservice","xml.LanguageXmlPanelSyntaxHighlighterProvider"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2472)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.colorsservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(639)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.view.decoration","rtc.internaldocument","language.interface.tokenmanager","language.common.syntaxhighlighter.colors"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){e.exports={languageJavaScriptTitle:"JavaScript",languageTypeScriptTitle:"TypeScript",languageJsonTitle:"JSON",syntaxHighlightingLabel:"構文の強調表示",enableSyntaxHighlightingLabel:"構文の強調を有効にする",keywordsLabel:"キーワード",stringsLabel:"文字列",badCharactersLabel:"無効な文字",commentsLabel:"コメント",indentingLabel:"インデント処理",applySmartIndentingLabel:"入力時にスマート インデントを適用",restoreDefaultsLabel:"既定の設定に戻す"}},function(e,t,i){e.exports={languageJavaScriptTitle:"JavaScript",languageTypeScriptTitle:"TypeScript",languageJsonTitle:"JSON",syntaxHighlightingLabel:"구문 강조 표시",enableSyntaxHighlightingLabel:"구문 강조 표시 사용",keywordsLabel:"키워드",stringsLabel:"문자열",badCharactersLabel:"잘못된 문자",commentsLabel:"주석",indentingLabel:"들여쓰기",applySmartIndentingLabel:"입력하는 동안 스마트 들여쓰기 적용",restoreDefaultsLabel:"디폴트 값 복원"}},function(e,t,i){e.exports={languageJavaScriptTitle:"JavaScript",languageTypeScriptTitle:"TypeScript",languageJsonTitle:"JSON",syntaxHighlightingLabel:"语法高亮",enableSyntaxHighlightingLabel:"启用语法高亮",keywordsLabel:"关键字",stringsLabel:"字符串",badCharactersLabel:"错误字符",commentsLabel:"注释",indentingLabel:"缩进",applySmartIndentingLabel:"键入时应用智能缩进",restoreDefaultsLabel:"还原默认值"}},function(e,t,i){e.exports={root:{languageJavaScriptTitle:"JavaScript",languageTypeScriptTitle:"TypeScript",languageJsonTitle:"JSON",syntaxHighlightingLabel:"Syntax highlighting",enableSyntaxHighlightingLabel:"Enable syntax highlighting",keywordsLabel:"Keywords",stringsLabel:"Strings",badCharactersLabel:"Bad characters",commentsLabel:"Comments",indentingLabel:"Indenting",applySmartIndentingLabel:"Apply smart indenting while typing",restoreDefaultsLabel:"Restore Defaults"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(215),i(216),i(203),i(1213),i(1595),i(1596),i(696),i(1597),i(7393),i(7394),i(37),i(1214),i(748)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return i([e,t],{syntaxHighlightingLabel:n.syntaxHighlightingLabel,keywordsLabel:n.keywordsLabel,stringsLabel:n.stringsLabel,commentsLabel:n.commentsLabel,badCharactersLabel:n.badCharactersLabel,smartIndetingLabel:n.indentingLabel,templateString:o,postCreate:function(){this.inherited(arguments);var e={};e[s.settingKeys.KEYWORD]=this.keywordsNode,e[s.settingKeys.STRING]=this.stringsNode,e[s.settingKeys.COMMENT]=this.commentsNode,e[s.settingKeys.ERROR]=this.errorNode;var t={syntaxHighlightingNode:this.enableSyntaxHighlightingNode,restoreDefaultsNode:this.restoreDefaultsNode,smartIndentingNode:this.smartIndentingNode,syntaxHighlightRTCNode:this.syntaxHighlightRTCNode,fileExtensionsNode:this.fileExtensions,addButtonNode:this.addButtonNode,removeButtonNode:this.removeButtonNode,myTreeContainer:this.myTreeContainer,colorPickerNodes:e};this._baseLanguagePanel=new a({languageSettingKeys:l,colorPickerConstants:s,panelLabels:n,panelNodes:t,languageSupportRegistry:d,languageRegistry:c,sampleText:r,colorMapDefaults:u,syntaxTokenTypes:h,isAutoIndentingSupported:!0})},startup:function(){this.inherited(arguments),this._baseLanguagePanel.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(){this._baseLanguagePanel.commitPrefsChanges()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LANGUAGE_SETTING_PATH:["matlab","editor","language","javascript"],LANGUAGE_SETTING_KEY:"matlab.editor.language.javascript.",LANGUAGE_NAME:"JavaScript",LANGUAGE_MIME:"application/javascript"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1598)],o=i.dj.d(n,(function(e){return{registry:[{id:"rtc.settings.LanguageJavaScriptPanelSyntaxHighlighterPreferencesProvider",path:"javascriptpanel-ui/LanguageJavaScriptPanelSyntaxHighlighterPreferencesProvider"},{id:"rtc.settings.LanguageJavaScriptEnableSyntaxHighlighterPreferenceProvider",path:"javascriptpanel-ui/LanguageJavaScriptEnableSyntaxHighlighterPreferenceProvider"}].concat(e.getRegistry()),enabledList:["rtc.settings.LanguageJavaScriptPanelSyntaxHighlighterPreferencesProvider","rtc.settings.LanguageJavaScriptEnableSyntaxHighlighterPreferenceProvider"].concat(e.getEnabledList())}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7396),i(7397),i(7398),i(7399)],o=i.dj.d(n,(function(e,t){return t(e,"rtc_javascript_language_support/resources/rtc_language_support/nls/javascriptLanguage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={description:"JavaScript ソース ファイル"}},function(e,t,i){e.exports={description:"JavaScript 소스 파일"}},function(e,t,i){e.exports={description:"JavaScript 源文件"}},function(e,t,i){e.exports={root:{description:"JavaScript source file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(205),i(995)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.document","rtc.editortabservice","language.interface.lexer"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(583)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.settings.service","language.common.autoindent"]}}createInstance(){return new t("matlab.editor.language.javascript.SmartIndentWhileTyping",...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(996)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.cursorcontroller","rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.internaldocument","language.interface.lexer","rtc.editortabservice"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(639)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.view.decoration","rtc.internaldocument","language.interface.tokenmanager","language.common.syntaxhighlighter.colors"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.javascript.EnableSyntaxHighlighting",requires:function(){return{createInstance:["rtc.settings.service","javascript.syntaxhighlighter"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2477)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.service"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{KEYWORDS_COLOR:"matlab.editor.language.javascript.KeywordColor",STRINGS_COLOR:"matlab.editor.language.javascript.StringsColor",COMMENTS_COLOR:"matlab.editor.language.javascript.CommentColor",ERRORS_COLOR:"matlab.editor.language.javascript.ErrorColor"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[i(203),i(205),i(7408)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document.info","rtc.internaldocument","rtc.document.eventcache","rtc.internal.language","rtc.editortabservice"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(998),i(1594)],o=i.dj.d(n,(function(e,t,i){return e(t,{_setupCodeMirror:function(e){i(e)},_isObjEqual:function(e,t){return"function"==typeof e&&"function"==typeof t?e.toString()===t.toString():this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(999)],o=i.dj.d(n,(function(e,t,i){return class extends t{requires(){return{createInstance:["language.interface.lexer"]}}createInstance(){return new i(...arguments)}priority(){return 10}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(216),i(203),i(1213),i(1595),i(1596),i(696),i(1597),i(7411),i(7412),i(37),i(50),i(1214),i(748)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return i([e,t],{syntaxHighlightingLabel:n.syntaxHighlightingLabel,keywordsLabel:n.keywordsLabel,stringsLabel:n.stringsLabel,commentsLabel:n.commentsLabel,badCharactersLabel:n.badCharactersLabel,smartIndetingLabel:n.indentingLabel,templateString:o,postCreate:function(){this.inherited(arguments);var e={};e[s.settingKeys.KEYWORD]=this.keywordsNode,e[s.settingKeys.STRING]=this.stringsNode,e[s.settingKeys.COMMENT]=this.commentsNode,e[s.settingKeys.ERROR]=this.errorNode;var t={syntaxHighlightingNode:this.enableSyntaxHighlightingNode,restoreDefaultsNode:this.restoreDefaultsNode,smartIndentingNode:this.smartIndentingNode,syntaxHighlightRTCNode:this.syntaxHighlightRTCNode,colorPickerNodes:e,fileExtensionsNode:this.fileExtensions,addButtonNode:this.addButtonNode,removeButtonNode:this.removeButtonNode,myTreeContainer:this.myTreeContainer};this._baseLanguagePanel=new a({languageSettingKeys:l,colorPickerConstants:s,panelLabels:n,panelNodes:t,languageSupportRegistry:d,aliasLanguageSupportRegistry:u,languageRegistry:c,sampleText:r,colorMapDefaults:h,syntaxTokenTypes:p,isAutoIndentingSupported:!0})},startup:function(){this.inherited(arguments),this._baseLanguagePanel.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(){this._baseLanguagePanel.commitPrefsChanges()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LANGUAGE_SETTING_PATH:["matlab","editor","language","json"],LANGUAGE_SETTING_KEY:"matlab.editor.language.json.",LANGUAGE_NAME:"JSON",LANGUAGE_MIME:"application/javascript"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1598)],o=i.dj.d(n,(function(e){return{registry:[{id:"rtc.settings.LanguageJsonPanelSyntaxHighlighterPreferencesProvider",path:"javascriptpanel-ui/LanguageJsonPanelSyntaxHighlighterPreferencesProvider"},{id:"rtc.settings.LanguageJsonEnableSyntaxHighlighterPreferenceProvider",path:"javascriptpanel-ui/LanguageJsonEnableSyntaxHighlighterPreferenceProvider"}].concat(e.getRegistry()),enabledList:["rtc.settings.LanguageJsonPanelSyntaxHighlighterPreferencesProvider","rtc.settings.LanguageJsonEnableSyntaxHighlighterPreferenceProvider"].concat(e.getEnabledList())}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7414),i(7415),i(7416),i(7417)],o=i.dj.d(n,(function(e,t){return t(e,"rtc_javascript_language_support/resources/rtc_language_support/nls/jsonLanguage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={description:"JSON ソース ファイル"}},function(e,t,i){e.exports={description:"JSON 소스 파일"}},function(e,t,i){e.exports={description:"JSON 源文件"}},function(e,t,i){e.exports={root:{description:"JSON source file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(205),i(583)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.settings.service","language.common.autoindent"]}}createInstance(){return new t("matlab.editor.language.json.SmartIndentWhileTyping",...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return class extends t{constructor(){super(),this._SETTING_KEY="matlab.editor.language.json.EnableSyntaxHighlighting"}requires(){return{createInstance:["rtc.settings.service","javascript.syntaxhighlighter"]}}createInstance(e,t){return new i(this._SETTING_KEY,e,t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2478)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.service"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{KEYWORDS_COLOR:"matlab.editor.language.json.KeywordColor",STRINGS_COLOR:"matlab.editor.language.json.StringsColor",COMMENTS_COLOR:"matlab.editor.language.json.CommentColor",ERRORS_COLOR:"matlab.editor.language.json.ErrorColor"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[i(215),i(216),i(203),i(1213),i(1595),i(1596),i(696),i(1597),i(7423),i(7424),i(37),i(51),i(1214),i(748)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return i([e,t],{syntaxHighlightingLabel:n.syntaxHighlightingLabel,keywordsLabel:n.keywordsLabel,stringsLabel:n.stringsLabel,commentsLabel:n.commentsLabel,badCharactersLabel:n.badCharactersLabel,smartIndetingLabel:n.indentingLabel,templateString:o,postCreate:function(){this.inherited(arguments);var e={};e[s.settingKeys.KEYWORD]=this.keywordsNode,e[s.settingKeys.STRING]=this.stringsNode,e[s.settingKeys.COMMENT]=this.commentsNode,e[s.settingKeys.ERROR]=this.errorNode;var t={syntaxHighlightingNode:this.enableSyntaxHighlightingNode,restoreDefaultsNode:this.restoreDefaultsNode,smartIndentingNode:this.smartIndentingNode,syntaxHighlightRTCNode:this.syntaxHighlightRTCNode,colorPickerNodes:e,fileExtensionsNode:this.fileExtensions,addButtonNode:this.addButtonNode,removeButtonNode:this.removeButtonNode,myTreeContainer:this.myTreeContainer};this._baseLanguagePanel=new a({languageSettingKeys:l,colorPickerConstants:s,panelLabels:n,panelNodes:t,languageSupportRegistry:d,aliasLanguageSupportRegistry:u,languageRegistry:c,sampleText:r,colorMapDefaults:h,syntaxTokenTypes:p,isAutoIndentingSupported:!0})},startup:function(){this.inherited(arguments),this._baseLanguagePanel.startup()},validatePrefsPanel:function(){return!0},commitPrefsChanges:function(){this._baseLanguagePanel.commitPrefsChanges()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{LANGUAGE_SETTING_PATH:["matlab","editor","language","typescript"],LANGUAGE_SETTING_KEY:"matlab.editor.language.typescript.",LANGUAGE_NAME:"TypeScript",LANGUAGE_MIME:"application/javascript"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1598)],o=i.dj.d(n,(function(e){return{registry:[{id:"rtc.settings.LanguageTypeScriptPanelSyntaxHighlighterPreferencesProvider",path:"javascriptpanel-ui/LanguageTypeScriptPanelSyntaxHighlighterPreferencesProvider"},{id:"rtc.settings.LanguageTypeScriptEnableSyntaxHighlighterPreferenceProvider",path:"javascriptpanel-ui/LanguageTypeScriptEnableSyntaxHighlighterPreferenceProvider"}].concat(e.getRegistry()),enabledList:["rtc.settings.LanguageTypeScriptPanelSyntaxHighlighterPreferencesProvider","rtc.settings.LanguageTypeScriptEnableSyntaxHighlighterPreferenceProvider"].concat(e.getEnabledList())}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7426),i(7427),i(7428),i(7429)],o=i.dj.d(n,(function(e,t){return t(e,"rtc_javascript_language_support/resources/rtc_language_support/nls/typescriptLanguage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={description:"TypeScript ソース ファイル"}},function(e,t,i){e.exports={description:"TypeScript 소스 파일"}},function(e,t,i){e.exports={description:"TypeScript 源文件"}},function(e,t,i){e.exports={root:{description:"TypeScript source file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(205),i(583)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.settings.service","language.common.autoindent"]}}createInstance(){return new t("matlab.editor.language.typescript.SmartIndentWhileTyping",...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.typescript.EnableSyntaxHighlighting",requires:function(){return{createInstance:["rtc.settings.service","javascript.syntaxhighlighter"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2479)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.service"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{KEYWORDS_COLOR:"matlab.editor.language.typescript.KeywordColor",STRINGS_COLOR:"matlab.editor.language.typescript.StringsColor",COMMENTS_COLOR:"matlab.editor.language.typescript.CommentColor",ERRORS_COLOR:"matlab.editor.language.typescript.ErrorColor"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.javascript.EnableSyntaxHighlighting",requires:function(){return{isApplicable:[],createInstance:["rtc.settings.colorsservice","rtc.settings.LanguageJavaScriptPanelSyntaxHighlighterProvider"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2477)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.colorsservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(639)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.view.decoration","rtc.internaldocument","language.interface.tokenmanager","language.common.syntaxhighlighter.colors"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(415)],o=i.dj.d(n,(function(e,t){return class extends e{constructor(){super(),this._SETTING_KEY="matlab.editor.language.json.EnableSyntaxHighlighting"}requires(){return{createInstance:["rtc.settings.colorsservice","rtc.settings.LanguageJavaScriptPanelSyntaxHighlighterProvider"]}}createInstance(e,i){return new t(this._SETTING_KEY,e,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2478)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.colorsservice"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(415)],o=i.dj.d(n,(function(e,t){return class extends e{constructor(){super(),this._SETTING_KEY="matlab.editor.language.typescript.EnableSyntaxHighlighting"}requires(){return{createInstance:["rtc.settings.colorsservice","rtc.settings.LanguageJavaScriptPanelSyntaxHighlighterProvider"]}}createInstance(e,i){return new t(this._SETTING_KEY,e,i)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(2479)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.colorsservice"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(233),i(418),i(1002)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e){e=e||{},this.id="Script",this.label=o.newScriptLabel,this.isDirectory=!1,this.placeholderName="untitled",this.placeholderExtension="m",this.supportsKeyBinding=!1,this.fileOperationService=n.getFileOperationsService(),this.callback=async function(e,t){await this.fileOperationService.createFile(e,t,"")}.bind(this),this.fileNameValidatorFcn=function(e,t){return!0},this.sectionId="EDITOR",this.parentActionId="NEW2",this.enabled=!0,this.orderPriorityWithinSection=1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(244),i(219),i(229),i(209),i(516),i(517),i(565),i(2480),i(2481)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,{default:s},{default:l},{default:c},d,u){function h(e){for(var t=r.generateUuid();void 0!==e[t];)t=r.generateUuid();return t}var p=new(e([i],{constructor:function(e){this._baseChannel=e.baseChannel,this._initializePathSeparatorPromise=null,this._serviceStarted=!1,this._startedDeferred=void 0,this._requestsMap={},this._requestsQueue=[],this._getCwdDeferred=new t,this._fileSystemRoots=new t,this._modelReady=new t,this._mf0Model=new mf.zero.Model,c.loadDefinition(u),this._mf0Listener=new d,this._mf0Listener.transactionCommitted=function(e){this.emit("model:update",e)}.bind(this),this._mf0Model.addShallowListener(this._mf0Listener),this._mf0Channel=new s({inChannel:"/matlab_filesystem_datamodel/lf-channel",outChannel:"/matlab_filesystem_datamodel/lf-channel"});const i=this.on(this.events.STARTED,async()=>{i.remove();const e=this._mf0Model;if([...e.getTopLevelElements().values()].length>0)return a.warn("[fs:lfs]: Ignoring reinitialization"),void this._modelReady.resolve();const t=new l(e,this._mf0Channel);return await t.fetchModel(),this._modelReady.resolve(),e})},start:function(){return this._isClientStarted()||(this._startedDeferred=new t,n([o.subscribe(this._baseChannel+"/started",this._handleStarted,this),o.subscribe(this._baseChannel+"/children",this._handleGetChildrenResponse,this),o.subscribe(this._baseChannel+"/filesystemroots",this._handleFileSystemRootsResponse,this),this._mf0Channel.start()]).then(function(){o.publish(this._baseChannel+"/start",{})}.bind(this))),this._startedDeferred.promise},stop:function(){this.isStarted()&&(this._startedDeferred=void 0,n([o.unsubscribe(this._baseChannel+"/started",this._handleStarted,this),o.unsubscribe(this._baseChannel+"/children",this._handleGetChildrenResponse,this)]).then(function(){this._serviceStarted=!1}.bind(this)))},isStarted:function(){return this._serviceStarted},getChildren:function(e,t=!0){var i=this._createRequestHandle();return o.publish(this._baseChannel+"/getchildren",{path:e,computeHasChildren:t,uuid:i.uuid}),i},getFileSystemRoots:function(){var e=this._createRequestHandle();return o.publish(this._baseChannel+"/getfilesystemroots",{uuid:e.uuid}),e},_createRequestHandle:function(){var e=new t,i={uuid:h(this._requestsMap),requestTime:new Date,deferred:e,then:e.promise.then,resolve:e.resolve};return this._requestsMap[i.uuid]=i,i},_handleGetChildrenResponse:function(e){this._requestsMap[e.data.uuid]&&(this._requestsMap[e.data.uuid].resolve(e.data),this._requestsMap[e.data.uuid]=void 0)},_handleFileSystemRootsResponse:function(e){if(this._requestsMap[e.data.uuid]){var t=e.data.fileSystemRoots.map((function(e){return e.location=e.path.substring(0,e.path.lastIndexOf(e.name)),e})).sort((e,t)=>e.name.localeCompare(t.name));this._requestsMap[e.data.uuid].resolve(t),this._requestsMap[e.data.uuid]=void 0}},_isClientStarted:function(){return void 0!==this._startedDeferred},_queueRequest:function(e){var i={asyncCallback:e,deferred:new t};return this._requestsQueue.push(i),i.deferred.promise},_processQueuedRequests:function(){function e(e){e.asyncCallback().then((function(t){e.deferred.resolve(t)}),(function(t){e.deferred.reject(t)}))}for(;this._requestsQueue.length>0;){e(this._requestsQueue.shift())}},_assertClientStarted:function(){if(!this._isClientStarted())throw new Error("Service is not started")},initializePathSeparator(){return this._initializePathSeparatorPromise=this._initializePathSeparatorPromise||new Promise((e,t)=>{const i=this._baseChannel+"/path-separator";o.subscribe(i,(function t(n){let{data:{separator:r}}=n;Number.isInteger(r)&&(r=String.fromCharCode(r)),e(r),o.unsubscribe(i,t)})),o.publish(this._baseChannel+"/get-path-separator",{})}),this._initializePathSeparatorPromise},async _handleStarted(e){this._serviceStarted=!0,this.emit(this.events.STARTED),await this._modelReady,this._processQueuedRequests(),this._startedDeferred.resolve(!0)},events:{STARTED:"started"}}))({baseChannel:"/filesystem/listfolder"});return{getInstance:function(){return p}}}),e,t),e.exports=o},function(e,t){e.exports='{\n "family" : "filesystem_datamodel",\n "modelVersion" : "R2020b",\n "packages" : {\n "fs" : {\n "packages" : {\n "services" : {\n "packages" : {\n "datamodel" : {\n "classes" : {\n "FileAttributes" : {\n "properties" : {\n "path" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "size" : { "type" : "UInteger64","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "lastModified" : { "type" : "UInteger64","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "isWritable" : { "type" : "Boolean","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true }\n },\n \n \n \n "isAbstract":false\n },\n "FileInfo" : {\n "properties" : {\n "path" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "name" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "separator" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "type" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "hasChildren" : { "type" : "Boolean","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "isDirectory" : { "type" : "Boolean","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true }\n },\n \n \n \n "isAbstract":false\n },\n "FolderSync" : {\n "properties" : {\n "path" : { "type" : "String","lower" : "1","upper" : "1", "isOrdered" : true, "isUnique" : true },\n "children" : { "type" : "FileInfo","lower" : "0","upper" : "*", "qualifiedBy" : "path", "isComposite" : true, "isOrdered" : true, "isUnique" : false },\n "attributes" : { "type" : "FileAttributes","lower" : "0","upper" : "*", "qualifiedBy" : "path", "isComposite" : true, "isOrdered" : true, "isUnique" : false },\n "folders" : { "type" : "FolderSync","lower" : "0","upper" : "*", "qualifiedBy" : "path", "isComposite" : true, "isOrdered" : true, "isUnique" : false }\n },\n \n \n \n "isAbstract":false\n }\n }\n }\n }\n }\n }\n }\n }\n}\n'},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(244),i(219),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){function a(e){for(var t=r.generateUuid();void 0!==e[t];)t=r.generateUuid();return t}var s=new(e([i],{constructor:function(e){this._baseChannel=e.baseChannel,this._serviceStarted=!1,this._startedDeferred=void 0,this._requestsMap={},this._requestsQueue=[],this._getCwdDeferred=new t},start:function(){return this._isClientStarted()||(this._startedDeferred=new t,n([o.subscribe(this._baseChannel+"/started",this._handleStarted,this),o.subscribe(this._baseChannel+"/metadata",this._handleGetMetadataResponse,this)]).then(function(){o.publish(this._baseChannel+"/start",{})}.bind(this))),this._startedDeferred.promise},stop:function(){this.isStarted()&&(this._startedDeferred=void 0,n([o.unsubscribe(this._baseChannel+"/started",this._handleStarted,this),o.unsubscribe(this._baseChannel+"/metadata",this._handleGetMetadataResponse,this)]).then(function(){this._serviceStarted=!1}.bind(this)))},isStarted:function(){return this._serviceStarted},getMetadata:function(e){var t=this._createRequestHandle();return o.publish(this._baseChannel+"/getmetadata",{uuid:t.uuid,path:e.file,contentTypeFriendlyName:e.contentTypeFriendlyName,createdTime:e.createdTime,lastModifiedTime:e.lastModifiedTime,matlabReleaseInfo:e.matlabReleaseInfo,createdBy:e.createdBy,lastModifiedBy:e.lastModifiedBy,title:e.title,description:e.description,category:e.category,version:e.version,revision:e.revision,keywords:e.keywords,image:e.image,contentType:e.contentType,matlabVersion:e.matlabVersion,fileUuid:e.uuid}),t},_createRequestHandle:function(){var e=new t,i={uuid:a(this._requestsMap),requestTime:new Date,deferred:e,then:e.promise.then,resolve:e.resolve};return this._requestsMap[i.uuid]=i,i},_handleGetMetadataResponse:function(e){this._requestsMap[e.data.uuid]&&(this._requestsMap[e.data.uuid].resolve(e.data),this._requestsMap[e.data.uuid]=void 0)},_isClientStarted:function(){return void 0!==this._startedDeferred},_queueRequest:function(e){var i={asyncCallback:e,deferred:new t};return this._requestsQueue.push(i),i.deferred.promise},_processQueuedRequests:function(){function e(e){e.asyncCallback().then((function(t){e.deferred.resolve(t)}),(function(t){e.deferred.reject(t)}))}for(;this._requestsQueue.length>0;){e(this._requestsQueue.shift())}},_assertClientStarted:function(){if(!this._isClientStarted())throw new Error("Service is not started")},_handleStarted:function(e){this._serviceStarted=!0,this.emit(this.events.STARTED),this._processQueuedRequests()},events:{STARTED:"started"}}))({baseChannel:"/filesystem/metadata"});return{getInstance:function(){return s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(244),i(219),i(229),i(209),i(516),i(517),i(565),i(2480),i(2481)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,{default:s},{default:l},{default:c},d,u){function h(e){for(var t=r.generateUuid();void 0!==e[t];)t=r.generateUuid();return t}var p=new(e([i],{constructor:function(e){this._baseChannel=e.baseChannel,this._serviceStarted=!1,this._startedDeferred=void 0,this._requestsMap={},this._requestsQueue=[],this._getCwdDeferred=new t,this._modelReady=new t,this._mf0Model=new mf.zero.Model,c.loadDefinition(u),this._mf0Listener=new d,this._mf0Listener.transactionCommitted=function(e){this.emit("model:update",e)}.bind(this),this._mf0Model.addShallowListener(this._mf0Listener),this._mf0Channel=new s({inChannel:"/matlab_filesystem_datamodel/attrs-channel",outChannel:"/matlab_filesystem_datamodel/attrs-channel"});const i=this.on(this.events.STARTED,async()=>{i.remove();const e=this._mf0Model;if([...e.getTopLevelElements().values()].length>0)return a.warn("[fs:vfs-attrs]: Ignoring reinitialization"),void this._modelReady.resolve();const t=new l(e,this._mf0Channel);return await t.fetchModel(),this._modelReady.resolve(),e})},start:function(){return this._isClientStarted()||(this._startedDeferred=new t,n([o.subscribe(this._baseChannel+"/started",this._handleStarted,this),o.subscribe(this._baseChannel+"/get-attributes-response",this._handleGetAttributesResponse,this),this._mf0Channel.start()]).then(function(){o.publish(this._baseChannel+"/start",{})}.bind(this))),this._startedDeferred.promise},stop:function(){this.isStarted()&&(this._startedDeferred=void 0,n([o.unsubscribe(this._baseChannel+"/started",this._handleStarted,this)]).then(function(){this._serviceStarted=!1}.bind(this)))},isStarted:function(){return this._serviceStarted},_isClientStarted:function(){return void 0!==this._startedDeferred},_processQueuedRequests:function(){function e(e){e.asyncCallback().then((function(t){e.deferred.resolve(t)}),(function(t){e.deferred.reject(t)}))}for(;this._requestsQueue.length>0;){e(this._requestsQueue.shift())}},async _handleStarted(e){this._serviceStarted=!0,this.emit(this.events.STARTED),await this._modelReady,this._processQueuedRequests(),this._startedDeferred.resolve()},_createRequestHandle:function(){var e=new t,i={uuid:h(this._requestsMap),requestTime:new Date,deferred:e,then:e.promise.then,resolve:e.resolve};return this._requestsMap[i.uuid]=i,i},request:function(e){var t=this._createRequestHandle();return o.publish(this._baseChannel+"/request",{path:e,uuid:t.uuid}),t},events:{STARTED:"started"}}))({baseChannel:"/filesystem/vfsattributes"});return{getInstance:function(){return p}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(244),i(219),i(229),i(233),i(7447)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){function l(e){for(var t=r.generateUuid();void 0!==e[t];)t=r.generateUuid();return t}var c=new(e([i],{constructor:function(e){this._baseChannel=e.baseChannel,this._fileOpenPluginService=s.getFileOpenPluginService(),this._serviceStarted=!1,this._startedDeferred=void 0,this._requestsMap={},this._requestsQueue=[],this._getCwdDeferred=new t},start:function(){return this._isClientStarted()||(this._startedDeferred=new t,this._fileOpenPluginService.start(),n([o.subscribe(this._baseChannel+"/started",this._handleStarted,this)]).then(function(){o.publish(this._baseChannel+"/start",{})}.bind(this))),this._startedDeferred.promise},stop:function(){this.isStarted()&&(this._startedDeferred=void 0,n([o.unsubscribe(this._baseChannel+"/started",this._handleStarted,this)]).then(function(){this._serviceStarted=!1}.bind(this)))},isStarted:function(){return this._serviceStarted},_createRequestHandle:function(){var e=new t,i={uuid:l(this._requestsMap),requestTime:new Date,deferred:e,then:e.promise.then,resolve:e.resolve};return this._requestsMap[i.uuid]=i,i},_isClientStarted:function(){return void 0!==this._startedDeferred},_queueRequest:function(e){var i={asyncCallback:e,deferred:new t};return this._requestsQueue.push(i),i.deferred.promise},_processQueuedRequests:function(){function e(e){e.asyncCallback().then((function(t){e.deferred.resolve(t)}),(function(t){e.deferred.reject(t)}))}for(;this._requestsQueue.length>0;){e(this._requestsQueue.shift())}},_assertClientStarted:function(){if(!this._isClientStarted())throw new Error("Service is not started")},_handleStarted:function(e){this._serviceStarted=!0,this.emit(this.events.STARTED),this._processQueuedRequests(),this._startedDeferred.resolve(!0)},open:async function(e,t){await this._fileOpenPluginService.open(e,t)},delete(e){return"string"==typeof e&&(e=[e]),this._makeRequest("/delete",{paths:e})},renameFileInfo(e,t){const{path:i}=e,{path:n}=t;return this.rename(i,n)},rename(e,t){return this._makeRequest("/rename",{currentPath:e,newPath:t})},async create(e,t){const i={};Object.assign(i,e,{content:t});const n=await this._makeRequest("/create",i),{path:o,isDirectory:r}=n;let s;return s=r?a.folderInfoFromPath(o):a.fileInfoFromPath(o),s},createFile(e,t,i){const n=a.createFilePath(t,e),o=a.fileInfoFromPath(n);return this.create(o,i)},createFolder(e,t){const i=a.createFilePath(t,e),n=a.folderInfoFromPath(i);return this.create(n)},_replaceClipboard(e,t){this.clipboard={type:e,paths:t}},copy(e){return this._replaceClipboard("copy",e)},cut(e){return this._replaceClipboard("cut",e)},paste(e){const{clipboard:t}=this;if(!t)throw new Error("Attempting to paste content without anything in the clipboard");const{type:i,paths:n}=t;return this._makeRequest("/paste",{type:i,source:n,destination:e})},async _makeRequest(e,t,i=!0){const n=this._createRequestHandle(),{uuid:r}=n;e.startsWith("/")||(e="/"+e),Object.assign(t,{uuid:r});const a=`${this._baseChannel}${e}`;if(i){const t=`${this._baseChannel}${e}-complete`,i=e=>{const{data:a}=e,{uuid:s}=a;if(r!==s)return;o.unsubscribe(t,i,this),delete this._requestsMap[n.uuid];let{error:l}=a;if(l)if("string"!=typeof l){const e=l,t=Object.keys(l);l=new Error(t.join("\n")),l.paths=t,l.data=e}else l=new Error(l),l.data=l;if(l)return n.deferred.reject(l);n.resolve(a)};await o.subscribe(t,i,this)}return o.publish(a,t),n.deferred.promise},events:{STARTED:"started"}}))({baseChannel:"/filesystem/operations"});return{getInstance:function(){return c}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(546),i(576),i(7448)],o=i.dj.d(n,(function(e,t,i,n){let o=new n({moduleLoader:new t,registrationFramework:i.getRegistrationFramework(),actionResourceSpecification:{resourceName:"actions.open"}});return{getFileOpenPluginService:function(){return o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(849),i(222),i(209),i(232),i(1001),i(2482),i(2483),i(291),i(297),i(617),i(801),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){let p=l.getMVM(),f=async function(e,t){try{t?await p.feval("cd",0,[e],new c({dequeueMode:d.DEQUEUE_AT_PPE,capabilitiesList:u.getCapabilitiesListDiff(u.getFullCapabilitiesList(),["LocalClient"])})):await p.feval("open",0,[e],new c({dequeueMode:d.DEQUEUE_AT_PPE,capabilitiesList:u.getCapabilitiesListDiff(u.getFullCapabilitiesList(),["LocalClient"])}))}catch(e){e._id&&e._msg?n.error("open failed with error: "+e._id+"; "+e._msg):n.error("open failed with error: "+JSON.stringify(e))}};return e([i],{constructor:function(e){this._moduleLoader=e.moduleLoader,this._registrationFramework=e.registrationFramework,this._communicationAvailable=e.communicationAvailable,this._actionResourceSpecification=e.actionResourceSpecification,this._actionModuleFileMap={},this._actionIdRegistry={};let i=new a;this.checkIfZipIriAndExtractFcn=i.checkIfZipIriAndExtractFcn,this.openActionCallbacks=Object.assign({},i.openActionCallbacks),this._fileOpenPluginServiceReady=new t,this._actionRegistrationPoint={registered:function(e){},unregistered:function(e){},enabled:async function(e){if(!this._actionModuleFileMap[e.resourcesFile]){var t=this._registerModuleDefObj(e,this._moduleLoader);if(t){var i=await this._pluginManager.loadWithModuleLoader(t,!0),n=this._initializeLoadedActionModules(i);this.emit("actionsUpdated",{actions:n})}}}.bind(this),disabled:function(e){if(this._actionModuleFileMap[e.resourcesFile]){let i=this._pluginManager.getLoadedModuleRegistry();var t=this._actionModuleFileMap[e.resourcesFile];t.moduleDef.provides.forEach(function(e){let t=i[e].openActionCallbacks;Object.keys(t).forEach(e=>{delete this.openActionCallbacks[e]}),delete this._actionIdRegistry[e]}.bind(this)),this._pluginManager.removeModuleDefFromRegistry(t.actionModuleName),this._pluginManager.removeLoadedModulesFromRegistry(t.moduleDef.provides),delete this._actionModuleFileMap[e.resourcesFile],this.emit("actionsUpdated",{actions:t.moduleDef.provides})}}.bind(this)},this._pluginManager=new r({moduleLoader:e.moduleLoader,registrationFramework:e.registrationFramework,resourceSpecification:this._actionResourceSpecification,registerModuleDefObjFcn:this._registerModuleDefObj.bind(this),registrationPoint:this._actionRegistrationPoint})},start:async function(){this._pluginManager.subscribeAndLoadModules({requestResponseService:o},!0).catch(e=>{n.error("Open action plugins failed to initialize correctly. Error: ",e)}),this._fileOpenPluginServiceReady.resolve()},_registerModuleDefObj:function(e,t){if(!this._pluginManager.isModuleRegistered(e.resourcesFileContents.actionModuleName))return e=this._pluginManager.updateModuleDefObjForEnvironment(e,this._requestResponseService),this._pluginManager.addModuleDefToRegistry(e.resourcesFileContents.actionModuleName,e.resourcesFileContents),this._actionModuleFileMap[e.resourcesFile]=e.resourcesFileContents,e.resourcesFileContents.moduleDef.provides.forEach(function(t,i){this._actionIdRegistry[e.resourcesFileContents.actionModuleIds[i]]?n.error("Action with id '"+e.resourcesFileContents.actionModuleIds[i]+"' already registered."):this._actionIdRegistry[t]=e.resourcesFileContents.actionModuleIds[i]}.bind(this)),t.register([e.resourcesFileContents.moduleDef]);n.error("Module '"+e.resourcesFileContents.actionModuleName+"' already registered.")},subscribeAndGetLoadedActionModules:function(){return this._communicationAvailable.then(function(e){return this._pluginManager.subscribeAndLoadModules(e,!1)}.bind(this)).then(function(){return this.getLoadedActionModules()}.bind(this))},getLoadedActionModules:function(){return this._pluginManager.areModulesLoaded().then(function(){var e=this._pluginManager.getRegisteredModuleNames(),t=this._pluginManager.getLoadedModules(e);return this._initializeLoadedActionModules(t)}.bind(this))},_initializeLoadedActionModules:function(t){Object.keys(t).map(function(i){var n=t[i],o=e(n)({});o&&"OPEN"===o.parentActionId&&this._initializeOpenAction(o)}.bind(this))},_initializeOpenAction:function(e){this._assertOpenActionCallbacks(e),this.openActionCallbacks=Object.assign(this.openActionCallbacks,e.openActionCallbacks)},_assertOpenActionCallbacks:function(e){this._assert(e.hasOwnProperty("parentActionId")),this._assert(e.hasOwnProperty("openActionCallbacks"))},_assert:function(e,t){if(!e)throw t||"Action Assertion failed"},open:async function(e,t){let i,o=Object.assign({},e),r=o.path;await this._fileOpenPluginServiceReady;try{i=await this.checkIfZipIriAndExtractFcn(r,o)}catch(e){return void n.error(e)}i&&(r=i.path,o.path=r,o.parent=i.parent,o.location=i.location);const a=o.type||h.getFileNameExtension(o.name);if(this.openActionCallbacks[a])try{await this.openActionCallbacks[a](r,o,t)}catch(e){e instanceof s&&await f(o.path,o.isDirectory)}else await f(r,o.isDirectory)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(232),i(209),i(471),i(1001)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e){this._moduleLoader=e.moduleLoader,this._registrationFramework=e.registrationFramework,this._fileIconResourceSpecification={resourceName:"fileIconModuleDef",resourceType:o.JSON},this._fileIconModuleFileMap={},this._fileExtensionToPathMap={},this._fileExtensionToPluginMap={},this._pluginNameToPromiseMap={},this._fileIconPluginServiceReady=new t,this._fileIconRegistrationPoint={registered:function(e){},unregistered:function(e){},enabled:function(e){var t=this._registerModuleDefObj(e,this._moduleLoader);if(t)return this._pluginManager.loadWithModuleLoader(t).then(e=>{for(const[t,i]of Object.entries(e))this._pluginNameToPromiseMap[t].resolve(i);return e})}.bind(this),disabled:function(e){this._fileIconModuleFileMap[e.resourcesFile]&&(e.resourcesFileContents=this._fileIconModuleFileMap[e.resourcesFile],e.resourcesFileContents.moduleDef?this._unregisterIconsWithPlugins(e):this._unregisterIconsWithoutPlugins(e))}.bind(this)},this._pluginManager=r({moduleLoader:this._moduleLoader,registrationFramework:this._registrationFramework,resourceSpecification:this._fileIconResourceSpecification,registerModuleDefObjFcn:this._registerModuleDefObj.bind(this),registrationPoint:this._fileIconRegistrationPoint})},start:function(){this._fileIconPluginServiceReady.isFulfilled()||(this._fileIconPluginServiceReady.resolve(),this._pluginManager.subscribeAndLoadModules({requestResponseService:i},!0).then(e=>{for(const[t,i]of Object.entries(e))this._pluginNameToPromiseMap[t].resolve(i);return e}))},_registerModuleDefObj:function(e,t){if(!this._fileIconModuleFileMap[e.resourcesFile])return this._fileIconModuleFileMap[e.resourcesFile]=e.resourcesFileContents,e.resourcesFileContents.moduleDef?this._registerIconsWithPlugins(e,t):this._registerIconsWithoutPlugins(e);n.error("Module '"+e.resourcesFileContents.fileIconModuleName+"' already registered.")},isFileExtensionRegistered:function(e){return this._fileExtensionToPluginMap[e]||this._fileExtensionToPathMap[e]},_registerIconsWithPlugins:function(e,i){for(var[o,r]of(e=this._pluginManager.updateModuleDefObjForEnvironment(e),this._pluginManager.addModuleDefToRegistry(e.resourcesFileContents.fileIconModuleName,e.resourcesFileContents),Object.entries(e.resourcesFileContents.extensionPluginMap)))this.isFileExtensionRegistered(o)?n.error('File extension "'+o+'" already registered.'):(this._fileExtensionToPluginMap[o]={name:r,extensionIconMap:e.resourcesFileContents.extensionIconMap},this._pluginNameToPromiseMap[r]=new t);return i.register([e.resourcesFileContents.moduleDef])},_registerIconsWithoutPlugins:function(e){for(var[t,i]of Object.entries(e.resourcesFileContents.extensionIconMap))this.isFileExtensionRegistered(t)?n.error('File extension "'+t+'" already registered.'):this._fileExtensionToPathMap[t]=i},_unregisterIconsWithPlugins:function(e){var t=e.resourcesFileContents;this._pluginManager.removeModuleDefFromRegistry(t.fileIconModuleName),this._pluginManager.removeLoadedModulesFromRegistry(t.moduleDef.provides),Object.keys(t.extensionIconMap).forEach(e=>{delete this._fileExtensionToPluginMap[e]}),t.moduleDef.provides.forEach(e=>{delete this._pluginNameToPromiseMap[e]}),delete this._fileIconModuleFileMap[e.resourcesFile]},_unregisterIconsWithoutPlugins:function(e){Object.keys(e.resourcesFileContents.extensionIconMap).forEach(e=>{delete this._fileExtensionToPathMap[e]}),delete this._fileIconModuleFileMap[e.resourcesFile]},getIconData:async function(e,t){return await this._fileIconPluginServiceReady,await this._pluginManager.areModulesLoaded(),this._fileExtensionToPathMap[e.type.toLowerCase()]?this._getIconDataWithoutPlugin(e):this._fileExtensionToPluginMap[e.type.toLowerCase()]?this._getIconDataWithPlugin(e,t):null},_getIconDataWithoutPlugin:async function(e){return{iconData:i.getWorkerRoutingHost().slice(0,-1)+this._fileExtensionToPathMap[e.type.toLowerCase()]}},_getIconDataWithPlugin:function(e,t){var n=i.getWorkerRoutingHost().slice(0,-1),o=this._fileExtensionToPluginMap[e.type];return this._pluginNameToPromiseMap[o.name].then(i=>{var r=i.getIconData(e,o.extensionIconMap,t);return r.then(e=>(e&&(e.iconData=n+e.iconData),e)),r})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(212),i(222),i(209),i(233),i(219),i(2484)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l="/matlab/fileIconProviderChannel",c=["m","exe","lnk","app","bat","mlx"];return e([n],{constructor:function(e){e=e||{},this._pendingReq={},a.subscribe(l,this._responseHandler,this),this._fileIconPluginService=s.getFileIconPluginService()},stop:function(){this._pendingReq=void 0,a.unSubscribe(l,this._responseHandler,this)},_createPendingRequestObj:function(e){var t=r.pathFromFileInfo(e);if(e.isDirectory)return{key:t,shouldCache:!1,isDirectory:!0};var i=r.getFileNameExtension(r.nameFromPath(t));return-1!==c.indexOf(i)?{key:t,shouldCache:!1,isDirectory:!1}:""===i?{key:"DefaultFile",shouldCache:!0,isDirectory:!1}:{key:i,shouldCache:!0,isDirectory:!1}},_publishAndReturnPendingReq:function(e,t){var n=r.pathFromFileInfo(e);const o=e.type||r.getFileNameExtension(e.name);var s=new i;return this._pendingReq[t.key]={defer:s,shouldCache:t.shouldCache,fileType:o},a.publish(l,{request:"getIconInfo",filePath:n,key:t.key}),s.promise},setIcon:async function(e,i){var n=await this.getIconData(e);i&&(n.iconClass?t.add(i,n.iconClass):i.style.backgroundImage="url('"+n.iconData+"')")},getIconData:async function(e,t){var i;try{i=await this._fileIconPluginService.getIconData(e,t)}catch(e){o.error("File icon plugins failed to initialize correctly. Error: ",e)}if(i)return i;var n=this._createPendingRequestObj(e);return this._pendingReq[n.key]?this._pendingReq[n.key].defer.promise:this._publishAndReturnPendingReq(e,n)},_responseHandler:function(e){if("iconInfo"===e.data.identifier){var t=e.data.data;this._resolveIconInformation(t)}},_resolveIconInformation:function(e){var t,i=this._pendingReq[e.key];if(i){if(i.shouldCache){var n=this._getCssClassName(i.fileType,i.key,i.isDirectory);this._createStyleTagAndStoreInDataCache(e,i),t={fileType:e.fileType,iconData:e.iconData,iconClass:n}}else t={fileType:e.fileType,iconData:e.iconData},this._pendingReq[i.key]=void 0;i.defer.resolve(t)}},_createStyleTagAndStoreInDataCache:function(e,t){var i=this._getFileIconProviderNode(),n=this._getCssSelector(t.fileType,t.key,t.isDirectory);if(!t.defer.isResolved()){var o=document.createElement("style");o.type="text/css";var r="{background-image:url('"+e.iconData+"'); background-repeat:no-repeat; background-position-x: 0px;}";o.innerHTML=n+r,i.appendChild(o)}},_getFileIconProviderNode:function(){var e=document.getElementById("fileIconProviderNode");return null===e&&((e=document.createElement("div")).id="fileIconProviderNode",document.body.appendChild(e)),e},_getCssSelector:function(e,t,i){return"Folder"===e&&i?".fileIcon.motwFolder":"File"===e&&""===t?".fileIcon.motwFileTypeDefault":".fileIcon.motwFileType"+e.split(" ").join("_").replace(/[^\w\s]/gi,"")},_getCssClassName:function(e,t,i){return"Folder"===e&&i?"fileIcon motwFolder":"File"===e&&""===t?"fileIcon motwFileTypeDefault":"fileIcon motwFileType"+e.split(" ").join("_").replace(/[^\w\s]/gi,"")}})}),e,t),e.exports=o},function(e,t,i){e.exports={newClassLabel:"クラス",newFunctionLabel:"関数",newLiveScriptLabel:"ライブ スクリプト",newScriptLabel:"スクリプト",openAsTextLabel:"テキストとして開く"}},function(e,t,i){e.exports={newClassLabel:"클래스",newFunctionLabel:"함수",newLiveScriptLabel:"라이브 스크립트",newScriptLabel:"스크립트",openAsTextLabel:"텍스트로 열기"}},function(e,t,i){e.exports={newClassLabel:"类",newFunctionLabel:"函数",newLiveScriptLabel:"实时脚本",newScriptLabel:"脚本",openAsTextLabel:"以文本方式打开"}},function(e,t,i){e.exports={root:{newClassLabel:"Class",newFunctionLabel:"Function",newLiveScriptLabel:"Live Script",newScriptLabel:"Script",openAsTextLabel:"Open as Text"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(296),i(233),i(219),i(1002)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e){e=e||{},this.id="LiveScript",this.label=o.newLiveScriptLabel,this.isDirectory=!1,this.placeholderName="untitled",this.placeholderExtension="mlx",this.supportsKeyBinding=!1,this.callback=async(e,t)=>{const o={filePath:i.createFilePath(t,e)};n.publish("/mlx/service/createEmptyOpcRequest",o)},this.fileNameValidatorFcn=function(e,t){return i.isLiveScriptFile(e)},this.sectionId="EDITOR",this.parentActionId="NEW2",this.enabled=!0,this.orderPriorityWithinSection=2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(296),i(233),i(418),i(1122),i(1002)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(i,{constructor:function(e){e=e||{},this.id="Function",this.label=a.newFunctionLabel,this.isDirectory=!1,this.placeholderName="untitled",this.placeholderExtension="m",this.supportsKeyBinding=!1,this.fileOperationService=o.getFileOperationsService(),this.callback=async function(e,i){const o=n.getFileNameNoExtension(e),a=function(e,i){let n={fileName:i,fileNameCaps:i.toUpperCase()};return t.replace(e,n)}(r.functionContent,o);await this.fileOperationService.createFile(e,i,a)}.bind(this),this.fileNameValidatorFcn=function(e,t){return!0},this.sectionId="EDITOR",this.parentActionId="NEW2",this.enabled=!0,this.orderPriorityWithinSection=3}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(296),i(233),i(418),i(1122),i(1002)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(i,{constructor:function(e){e=e||{},this.id="Class",this.label=a.newClassLabel,this.isDirectory=!1,this.placeholderName="untitled",this.placeholderExtension="m",this.supportsKeyBinding=!1,this.fileOperationService=o.getFileOperationsService(),this.callback=async function(e,i){const o=n.getFileNameNoExtension(e),a=function(e,i){let n={fileName:i,fileNameCaps:i.toUpperCase()};return t.replace(e,n)}(r.classContent,o);await this.fileOperationService.createFile(e,i,a)}.bind(this),this.fileNameValidatorFcn=function(e,t){return!0},this.sectionId="EDITOR",this.parentActionId="NEW2",this.enabled=!0,this.orderPriorityWithinSection=4}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1002),i(296),i(233),i(726)],o=i.dj.d(n,(function(e,t,i,n,o){var r=["m","mlx","slx","mlapp","txt"];function a(e,t){return e.some((function(e){return t===e}))}return e(i,{constructor:function(e){this.id="OpenAsText",this.label=t.openAsTextLabel,this.fileService=e.fileService;var i=!1;this.isApplicableTo=function(e,t){return this.filePaths=e,this.fileInfos=t,void 0!==this.fileInfos&&(i=this.fileInfos.some((function(e){return!(a(r,e.type)||!0===e.isDirectory)}))),i},this.callback=async function(){const e=[];for(var t=0;t<this.filePaths.length;t++)if(!a(r,this.fileInfos[t].type)&&!1===this.fileInfos[t].isDirectory){var i=n.locationFromPath(this.filePaths[t]),s=n.nameFromPath(this.filePaths[t]),l=n.createEmptyFileObject(i,s);e.push(o.openAsText(l))}await Promise.all(e)},this.section={id:"FILE_OPERATION",name:"FILE_OPERATION",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!1,this.forceSubMenu=!1,this.orderPriorityWithinSection=3}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7460),i(7461),i(7462),i(7463)],o=i.dj.d(n,(function(e,t){return t(e,"physmod_simscape_language_editor/resources/rtc_language_support/nls/simscapeLanguage",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={description:"Simscape モデル ファイル"}},function(e,t,i){e.exports={description:"Simscape 모델 파일"}},function(e,t,i){e.exports={description:"Simscape 模型文件"}},function(e,t,i){e.exports={root:{description:"Simscape model file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(995)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.editortabservice","language.interface.lexer"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(583)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.matlab.SmartIndentWhileTyping",requires:function(){return{createInstance:["rtc.settings.service","language.common.autoindent"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(996)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.cursorcontroller","rtc.actionservice","rtc.contextmenu.documentcontributor","rtc.internaldocument","language.interface.lexer","rtc.editortabservice"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(821),i(7468)],o=i.dj.d(n,(function(e,t,i){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors"]}}createInstance(){return new t(i.colorMapDefaults,i.typeMapDefaults,...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(585),i(2485)],o=i.dj.d(n,(function(e,t){return{typeMapDefaults:{keyword:t.KEYWORD,string:t.STRING,unterminatedstring:t.UNTERMINATEDSTRING,comment:t.COMMENT,error:t.ERROR},colorMapDefaults:function(){const i={};return i[t.KEYWORD]=new e(14,0,255),i[t.STRING]=new e(170,4,249),i[t.UNTERMINATEDSTRING]=new e(196,0,0),i[t.COMMENT]=new e(2,128,9),i[t.ERROR]=new e(255,0,0),i}()}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(639)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["rtc.view.decoration","rtc.internaldocument","language.interface.tokenmanager","language.common.syntaxhighlighter.colors"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(415)],o=i.dj.d(n,(function(e,t,i){return e(t,{_SETTING_KEY:"matlab.editor.language.simscape.EnableSyntaxHighlighting",requires:function(){return{createInstance:["rtc.settings.service","simscape.syntaxhighlighter"]}},createInstance:function(e,t){return new i(this._SETTING_KEY,e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(7472)],o=i.dj.d(n,(function(e,t){return class extends e{requires(){return{createInstance:["language.common.syntaxhighlighter.colors","rtc.settings.service"]}}createInstance(){return new t(...arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(640),i(2485),i(7473)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{_getSettingKeyToSyntaxTypeMap:function(){var e={};return e[n.KEYWORD_COLOR]=i.KEYWORD,e[n.STRING_COLOR]=i.STRING,e[n.UNTERMINATEDSTRING_COLOR]=i.UNTERMINATEDSTRING,e[n.COMMENT_COLOR]=i.COMMENT,e[n.ERROR_COLOR]=i.ERROR,e}})}),e,t),e.exports=o},function(e,t,i){var n;void 0===(n=function(){return{KEYWORD_COLOR:"matlab.colors.KeywordColor",STRING_COLOR:"matlab.colors.StringColor",UNTERMINATEDSTRING_COLOR:"matlab.colors.UnterminatedstringColor",COMMENT_COLOR:"matlab.colors.CommentColor",ERROR_COLOR:"matlab.colors.SyntaxErrorColor"}}.call(null,i,t,e))||(e.exports=n)},function(e,t,i){var n,o;n=[i(203),i(205),i(7475)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document.info","rtc.internaldocument","rtc.document.eventcache","rtc.internal.language","rtc.editortabservice"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 10}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(998),i(7476)],o=i.dj.d(n,(function(e,t,i){return e(t,{_setupCodeMirror:function(e){i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1600),i(2486)],o=i.dj.d(n,(function(e,t){"use strict";function i(e,t){e.length>0?e.push(e[e.length-1]+t):e.push(t)}function n(e){e.pop()}function o(e,t=0){return e.length>t?e[e.length-(1+t)]:0}function r(e,t){0===e.length?e.push(t):e[e.length-1]=t}return function(a){a.defineMode("simscape",(function(s,l){const c=s.indentUnit,d=t,u=e.Token,h=e.TokenMap,p=d.strings(d.StartTokens),f=h[u.SWITCH].String,g=h[u.DER].String,m=d.strings(d.MidTokens),_=d.strings(d.GroupTokens),v=d.strings([u.LP,u.LC]),b=d.strings(d.Keywords),y=h[u.STARTCOMMENT].String,C=h[u.ENDCOMMENT].String,T=new RegExp(y+"\\s*$"),E=new RegExp("\\s*"+C+"\\s*$"),S=h[u.END].String;function w(e,t){return e.match(E)?(t.tokenize=x,"comment"):(e.skipToEnd(),"comment")}function I(e,t){return e.skipToEnd(),t.tokenize=x,"comment"}function A(e){const t=e[e.length-1];return!(!t||t.String!==f)}function x(e,t){if(e.sol()&&!t.continueOnNextLine&&(t.firstToken=!0),t.continueOnNextLine=!1,e.eatSpace())return null;if(t.firstToken&&e.match(T))return t.tokenize=w,e.skipToEnd(),"comment";const o=e.pos;if(e.match(/^%/))return e.skipToEnd(),t.firstToken&&r(t.indentLevels,o),"comment";if(e.match(/^\.\.\./))return e.eol()||(t.tokenize=I),t.continueOnNextLine=!0,t.firstToken=!1,"keyword";if(e.match(/"/))return e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"unterminatedstring");if(e.match(/'/))return!t.firstToken&&e.string[e.pos-2].match(/\w|\]|\)|\.|\}/)?null:e.skipTo("'")?(e.next(),"string"):(e.skipToEnd(),"unterminatedstring");if(e.match(/\w+/,!0)){let a=e.current();if(a===g)return"keyword";if(e.start>0&&e.string[e.start-1].match(/\./))return null;if(a===S){let e=t.Context[t.Context.length-1];return e&&_.includes(e.String)?null:(n(t.indentLevels),A(t.Context)&&n(t.indentLevels),t.Context.pop(),"keyword")}return a===f?(t.Context.push(h[d.StringMap.get(a)]),t.firstToken&&r(t.indentLevels,o),i(t.indentLevels,c),i(t.indentLevels,c),"keyword"):p.includes(a)?(t.Context.push(h[d.StringMap.get(a)]),t.firstToken&&r(t.indentLevels,o),i(t.indentLevels,c),"keyword"):b.includes(a)?"keyword":(t.firstToken=!1,null)}if(_.includes(e.peek())){const i=e.peek();if(v.includes(i))t.Context.push(h[d.StringMap.get(i)]);else{let e=t.Context[t.Context.length-1];e&&e.End===i&&t.Context.pop()}return e.next(),"group"}return e.next(),t.firstToken=!1,null}return{startState:function(){return{tokenize:x,indentLevels:[],Context:[],firstToken:!1,continueOnNextLine:!1}},token:function(e,t){const i=t.tokenize(e,t);return i&&(t.firstToken=!1),i},indent:function(e,t){if(e.tokenize!==x)return a.Pass;const i=e.continueOnNextLine?c:"",n=t.match(/^\w+/);return n&&(n[0]===S||m.includes(n[0]))?n[0]===S&&A(e.Context)?o(e.indentLevels,2)+i:o(e.indentLevels,1)+i:o(e.indentLevels)+i},electricInput:new RegExp([S].concat(m).join("|")),lineComment:"%",fold:"indent"}})),a.defineMIME("text/x-simscape","simscape")}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(999)],o=i.dj.d(n,(function(e,t,i){return class extends t{requires(){return{createInstance:["language.interface.lexer"]}}createInstance(){return new i(...arguments)}priority(){return 10}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(205),i(7479)],o=i.dj.d(n,(function(e,t){return class extends e{createInstance(){return new t(...arguments)}priority(){return 10}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1415),i(1600),i(2486)],o=i.dj.d(n,(function(e,t,i){let n=i,o=t.Token,r=t.TokenMap;const a=n.strings(n.StartTokens),s=n.strings(n.MidTokens),l=n.strings(n.EndTokens),c=n.strings([o.LP,o.RP]),d=n.strings([o.LB,o.RB]),u=n.strings([o.LC,o.RC]),h=r[o.END].String;function p(e){switch(e){case"keyword":case"group":return!0}return!1}return class extends e{isStartToken(e){return p(e.getType())&&a.includes(e.getValue())}isMidToken(e){return p(e.getType())&&s.includes(e.getValue())}isEndToken(e){return p(e.getType())&&l.includes(e.getValue())}areMatchingTokens(e,t){const i=e.getValue(),o=t.getValue();return"keyword"===e.getType()&&"keyword"===t.getType()?i===h||o===h||(r[n.StringMap.get(o)].Mid.includes(i)||r[n.StringMap.get(i)].Mid.includes(o)):"group"===e.getType()}isMismatchAllowed(e){return!1}areSameClassOfBlockToken(e,t){if(e.getType()!==t.getType())return!1;if("keyword"===e.getType())return!0;const i=e.getValue(),n=t.getValue();return!(!c.includes(i)||!c.includes(n))||(!(!d.includes(i)||!d.includes(n))||!(!u.includes(i)||!u.includes(n)))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(244),i(214),i(210),i(206),i(225),i(204),i(912)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([l],{constructor:function(e){this.pathService=e.pathService,this.addressbarL10n=e.addressbarL10n,this.id="upOneNode",this.text=this.addressbarL10n.upOneLevel,this.enabled=!1,this.actionClass="cdUpOneDirButton addressBarButton",this.style={"background-image":"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAftJREFUeNqkU0toU0EUPS/ELuzCGGNJU9quFYSCGzdKwJWFdqNdC+LCpS60KCqCYKlBISsRdOFO6EYrCLaLphsFUUypEBBN80F8xKbGJO+XmTe3982LXwhKM3CYefe+c+6ZOzMGEaGfEUGfI/osk+5pYfrSqvFPAUZj6mIu9nfi5ePzWLwN+h+BPCP9Z1ihWfuIg0dnYfAmIwzjB4xf32+fzyMqfVXarOSRGJvokrkoKcRGDmEtN9ez8oHDJyB8hajlirJjN38j+zz7OHKyN3np4Qysdh22KxCxHJmrVQshkaQmgwSKH17jzKnjKBaWQd46yHkFsl5AtRcQT+7HVr0G5iLieKLRan1joghBHqtvIXvzOtxmHdlb87DbnCeX/Xk6PzSyD6Zphg4uZNfy1Y33oOCHLrI3ZiGYFBsc4Pk7i93R8UAEykVqLI5K9TN4+/oU8LVm5tnjRNA8QOJK5p6+Y5dPT2Lu0RMOt7jwOyY7vHbgCx+J4QTKG19CgXLpUwPK+tlAooa2umf3ABd8w2sbQZ4YSnYgO4RkagiFQiUUsFy5Wi2up0fHx7UDUCcUGNyF+1fvdk+HcPbaJERHQXoKqeFkwAsFbE+U2k2Tq+zVjSQSWuRc5oF2RfqEfHibTyHdUGA0ldQ90Hd9+lg8uIkrO3lMRr/PeVuAAQAHlyFMpE3gowAAAABJRU5ErkJggg==')",width:"100%",height:"100%","background-origin":"content-box","background-repeat":"no-repeat"},this.callback=async function(){this.enabled&&await this.pathService.setCwd(this.pathService.currentWorkingFolder.location)}.bind(this),r(this.pathService,"CWDChanged",this._handleCwdChangedInfo.bind(this))},_fileInfoHasAnAccessibleParent:function(e){var n=new t,o=this.pathService.getAccessibleRootsCachedData()||this.pathService.getAccessibleRoots(),r=this.pathService.requestCdAnywhereFlagFromJava();return i({accessibleRoots:o,cdAnywhereFlag:r}).then(function(){var t=(!!this.pathService.getCdAnywhereFlag()||this.pathService.isAccessiblePath(this.pathService.getAccessibleRootsCachedData(),e.location))&&""!==e.location;n.resolve(t)}.bind(this)),n},_getUpOneNode:function(){return a(".cdUpOneDirButton")[0]},_handleCwdChangedInfo:function(e){this._fileInfoHasAnAccessibleParent(e).then(function(e){e?this._enableUpButton():this._disableUpButton()}.bind(this))},_disableUpButton:function(){var e=this._getUpOneNode();this.enabled=!1,e.setAttribute("enabled","false"),e.setAttribute("aria-disabled","true"),e.firstElementChild&&(o.add(e.firstElementChild,"actionDisabled"),o.remove(e.firstElementChild,"actionEnabled"))},_enableUpButton:function(){var e=this._getUpOneNode();this.enabled=!0,e.setAttribute("enabled","true"),e.setAttribute("aria-disabled","false"),e.firstElementChild&&(o.remove(e.firstElementChild,"actionDisabled"),o.add(e.firstElementChild,"actionEnabled"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(216),i(912),i(850),i(1609)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{constructor:function(e){this.pathService=e.pathService,this.layoutService=e.layoutService,this.addressbarL10n=e.addressbarL10n,this.id="browseForFolderNode",this.text=this.addressbarL10n.BrowseForFolder,this.enabled=!0,this.actionClass="browseForFolderButton addressBarButton",this.style={"background-image":"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAlZJREFUeNqkU19IU1EY/93tYqtteWcunWtyW4F/2mYPJWNCGiRWlFpGEEhBDyKGEZEPChW9SG/60KKHSKGHQbHqpQdJkZGDRabioqzWnC2iIm217W53/07n3pEQ+LDRBx/fOd/h9/t+33fOYQgh+B9jGYb5J/Hgam1RjOxGgLY+V0HgidtnwNIYOnp5kldzRjn58Fod3kzfgq5id2EKMlnc8E85x+xdw3JiX+cwfO4hLL/2bgiwNJ1dX1Ms5AGMXaldPjU0yWt0koocQOgJSYFApNsEdYHu45hxO1Gi2I4SlUYmWPDeh1JaHGnU/xKFaOdO60H8iH6Ba9YJ//fneLe6gI9rnzD+8i4O7XLQtvSYm57AVs6EHK0TDi3KM0Dv6Nvx0T5cj+yo5pficzjZ2IFEbgWRWByZFItklNYhaWg5LUoNpRBiMWxSqSGmkVcgWWWzkQmz0cM9bd1YWn2Mp745eF4FoVZuBq+rgM1oAiEJlFdyeDE1g21lJgSD/rwCyZYYpuFivQOhiA/PfCE4qo/hZkcr7T9Jq9MZ5GI0ilS+CpyhBIIQlxUo/hKIYo63mvdgeTUADvU4bZfAdIi0quSESERJOTa1NuD9h0WZgLVdsM5XlRv2qlRKZHMEX9d+Yz4cgH3Qg679BzDQfpyChDwRvRGSTUKj2QKtXgFxhQFj6bPwVWWG+YHuXu5behZCJohkPA23KwDb52xh77mmp6alZbCZeAKPyB1vP7H11/2kOb4Q7PpPMp83X+LU3EgilaC9iSeC94JPiv6apnOmMeojxWD+CDAAzA3wVXfzkqsAAAAASUVORK5CYII=')",width:"100%",height:"100%","background-origin":"content-box","background-repeat":"no-repeat"},this.callback=function(e){this._handleBrowseForFolderAction(e)}.bind(this),this._fileService=e.fileService},_handleBrowseForFolderAction:async function(i){let n=await this.pathService.getCwd(),a={dialogName:this.addressbarL10n.folderChooserTitle,initialPath:n.cwd};if(void 0!==window.cefclient){this.fileChooserService=new r;let e=await this.fileChooserService.openDirectory(a);e[0]&&this._changePath(e)}else this._fileChooser=e([o])({fileService:this._fileService,pathService:this.pathService,style:{width:"425px",height:"425px"},fileMustExist:!0,selectionMode:1}),this._fileChooser.on("okButtonClicked",t.hitch(this,(function(e){var t=e.selectedNode[0].path;this._changePath(t),this._close()}))),this._fileChooser.on("cancelButtonClicked",t.hitch(this,(function(e){this._close()}))),this._fileChooser.onClose=t.hitch(this,(function(){this._close()})),this._fileChooser.startup(),this.layoutService.addWidget("fileChooser","newDialog",this._fileChooser,{title:this.addressbarL10n.folderChooserTitle})},_changePath:function(e){this.pathService.setCwd(e)},_close:function(){this.inherited(arguments),this.layoutService.removeWidget("fileChooser")}})}),e,t),e.exports=o},function(e,t){e.exports='<div id=${id} class="fileBrowser2" data-dojo-attach-point="fileBrowserContainer">\n<div data-dojo-attach-point="dgridContainer"\n class="dgridContainer highlightRowOnPath"></div>\n<form id="uploadForm" data-dojo-attach-point="uploadForm"\n enctype="multipart/form-data">\n <input id="fileupload" class="hiddenFileInputForUpload"\n data-dojo-attach-point="hiddenFileInputForUpload"\n data-test-id="hiddenFileInputForUpload" name="uploadFileName"\n type="file" multiple/>\n</form>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(224),i(306),i(214),i(206),i(256),i(221),i(794),i(795),i(1075),i(430),i(697),i(33),i(53),i(7490)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=e(l,{grid:null,getObject:function(e){var t=this.grid;return t.store.get(e.id.slice(t.id.length+5))},_legalMouseDown:function(e){var t=this.inherited(arguments);return t&&e.target!=this.grid.bodyNode},onDrop:function(e,t,i){var o=this,r=this._targetAnchor=this.targetAnchor,a=this.grid,s=a.store;!this.before&&r&&(r=r.nextSibling),r=r&&a.row(r),n.when(r&&s.get(r.id),(function(n){o!=e?o.onDropExternal(e,t,i,n):o.onDropInternal(t,i,n)}))},onDropInternal:function(e,t,i){var o,r,a=this.grid,s=a.store,l=this,c=l._targetAnchor;c&&(o=this.before?c.previousSibling:c.nextSibling),r=a.row(e[0]),(t||o!==e[0]&&(i||!r||a.down(r).element!=e[0]))&&e.forEach((function(e){n.when(l.getObject(e),(function(e){var n=s.getIdentity(e);s[t&&s.copy?"copy":"put"](e,{before:i}),l._selectedNodes[n]&&(l._selectedNodes[n]=a.row(n).element)}))}))},onDropExternal:function(e,t,i,o){var r=this.grid.store,a=e.grid;t.forEach((function(t,s){n.when(e.getObject(t),(function(l){i||(a?n.when(a.store.getIdentity(l),(function(i){!s&&e.selectNone(),e.delItem(t.id),a.store.remove(i)})):e.deleteSelectedNodes()),r[r.copy?"copy":"put"](l,{before:o})}))}))},onDndStart:function(e,t,i){this.inherited(arguments),e==this&&(this.grid.cancelTouchScroll&&this.grid.cancelTouchScroll(),c.manager().avatar.node.style.width=this.grid.domNode.offsetWidth/2+"px")},onMouseDown:function(e){s("touch")&&this.isDragging&&p.countCurrentTouches(e,this.grid.touchNode)>1?(a.publish("/dnd/cancel"),c.manager().stopDrag()):this.inherited(arguments)},onMouseMove:function(e){(!s("touch")||p.countCurrentTouches(e,this.grid.touchNode)<=1)&&this.inherited(arguments)},checkAcceptance:function(e,t){return e.getObject&&l.prototype.checkAcceptance.apply(this,arguments)},getSelectedNodes:function(){if(!this.grid.selection)return this.inherited(arguments);var e,t=new d;for(e in this.grid.selection)t.push(this._selectedNodes[e]);return t}}),g=e(h,{dndSourceType:"dgrid-row",dndParams:null,dndConstructor:f,postMixInProperties:function(){this.inherited(arguments),this.dndParams=t.mixin({accept:[this.dndSourceType]},this.dndParams)},postCreate:function(){this.inherited(arguments),this.dndSource=new(this.dndConstructor||f)(this.bodyNode,t.mixin(this.dndParams,{grid:this,dropParent:this.contentNode}));var e=this.dndSource._selectedNodes={};function n(t){e[t.id]=t.element}function r(t){delete e[t.id],u(t.element,"!dojoDndItemSelected!dojoDndItemAnchor")}this.on("dgrid-select",(function(e){i.forEach(e.rows,n)})),this.on("dgrid-deselect",(function(e){i.forEach(e.rows,r)})),o.after(this,"destroy",(function(){delete this.dndSource._selectedNodes,e=null,this.dndSource.destroy()}),!0)},insertRow:function(e){var t=this.inherited(arguments),i="function"==typeof this.getObjectDndType?this.getObjectDndType(e):[this.dndSourceType];return u(t,".dojoDndItem"),this.dndSource.setItem(t.id,{data:e,type:i instanceof Array?i:[i]}),t},removeRow:function(e){this.dndSource.delItem(this.row(e)),this.inherited(arguments)}});return g.GridSource=f,g}),e,t),e.exports=o},function(e,t,i){var n=i(723),o=i(7485);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);e.exports=o.locals||{}},function(e,t,i){(e.exports=i(724)(!1)).push([e.i,"/* styles for scrollbars during touch-scroll */\n\n.touchscroll-x, .touchscroll-y {\n\tdisplay: none; /* overridden below */\n\toverflow: hidden; /* cut off ends of scrollbar during rubber-banding */\n\tposition: absolute;\n\t/* establish base style for scrollbar fade-in/out */\n\topacity: 0.7;\n}\n.touchscroll-fadeout .touchscroll-x, .touchscroll-fadeout .touchscroll-y {\n\topacity: 0;\n\t-webkit-transition: opacity 0.3s ease-out 0.1s;\n\t-moz-transition: opacity 0.3s ease-out 0.1s;\n\t-o-transition: opacity 0.3s ease-out 0.1s;\n\ttransition: opacity 0.3s ease-out 0.1s;\n}\n\n.touchscroll-bar {\n\tbackground-color: rgba(88,88,88,0.97);\n\tborder: 1px solid rgba(88,88,88,1);\n\tborder-radius: 3px;\n\t\n\t/* the borders aren't anti-aliased on Android, so this smooths it out a bit */\n\t-webkit-box-shadow: 0 0 1px rgba(88,88,88,0.4);\n}\n\n.touchscroll-x {\n\tleft: 1px;\n\tright: 3px;\n\tbottom: 1px;\n\theight: 5px;\n}\n.touchscroll-y {\n\ttop: 1px;\n\tbottom: 3px;\n\tright: 1px;\n\twidth: 5px;\n}\n\n.touchscroll-scrollable-x .touchscroll-x, .touchscroll-scrollable-y .touchscroll-y {\n\tdisplay: block; /* display scrollbar when appropriate */\n}\n\n.touchscroll-bar {\n\t/* Establish transition property and timing function for scrollbars */\n\t-webkit-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1);\n\t-moz-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1);\n\t-o-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1);\n\ttransition: transform cubic-bezier(0.33, 0.66, 0.66, 1);\n}\n\n/* indicator of a successful load */\n#dgrid-css-TouchScroll-loaded {\n\tdisplay: none;\n}",""])},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){var t={};return function(){for(var i=arguments,n=0;n<i.length;n++){var o=i[n];if(!t[o]){t[o]=!0;var r=o.match(/^(no-)?(.+?)((-[\d\.]+)(-[\d\.]+)?)?$/),a=e(r[2]),s=-r[4];(s>0?s<=a&&(-r[5]||s)>=a:!!a)==!r[1]&&(document.documentElement.className+=" has-"+o)}}}}),e,t),e.exports=o},function(e,t,i){var n=i(723),o=i(7488);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);e.exports=o.locals||{}},function(e,t,i){var n=i(1399);(e.exports=i(724)(!1)).push([e.i,"/* This stylesheet provides the structural CSS for the dgrid */\n.dgrid {\n\tposition: relative;\n\toverflow: hidden; /* This is needed by IE to prevent crazy scrollbar flashing */\n\tborder: 1px solid #ddd;\n\theight: 30em;\n\tdisplay: block;\n}\n\n.dgrid-header {\n\tbackground-color: #eee;\n}\n\n.dgrid-header-row {\n\tposition: absolute;\n\tright: 17px; /* scrollbar width; revised in List.js if necessary */\n\tleft: 0;\n}\n\n.dgrid-header-scroll {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n}\n\n.dgrid-footer {\n\tposition: absolute;\n\tbottom: 0;\n\twidth: 100%;\n}\n\n.dgrid-header-hidden,\nhtml.has-quirks .dgrid-header-hidden .dgrid-cell {\n\t/*\n\t\tUsed to \"hide\" header, without losing size information for reference.\n\t\t!important is used to supersede theme styles at higher specificity.\n\t\tLeft/right box styles are untouched, as they may influence width of\n\t\t.dgrid-content as updated in Grid's resize method.\n\t\tNote: Still not quite perfect in IE Quirks mode (1px left over).\n\t*/\n\tfont-size: 0; /* allow shrinkage in IE Quirks mode for Lists */\n\theight: 0 !important;\n\tborder-top: none !important;\n\tborder-bottom: none !important;\n\tmargin-top: 0 !important;\n\tmargin-bottom: 0 !important;\n\tpadding-top: 0 !important;\n\tpadding-bottom: 0 !important;\n}\n\n.dgrid-footer-hidden {\n\t/* Hiding footer is much simpler; simply set its display to none. */\n\tdisplay: none;\n}\n\n.dgrid-sortable {\n\tcursor: pointer;\n}\n.dgrid-header, .dgrid-header-row, .dgrid-footer {\n\toverflow: hidden;\n\tbackground-color: #eee;\n}\n\n.dgrid-row-table {\n\tborder-collapse: collapse;\n\tborder: none;\n\ttable-layout: fixed;\n\tempty-cells: show;\n\twidth: 100%; /* this becomes 'auto' for IE7 (non-quirks) */\n\theight: 100%;\n}\n.dgrid-cell {\n\tpadding: 0px;\n\ttext-align: left;\n\toverflow: hidden;\n\tvertical-align: top;\n\tborder: 1px solid #ddd;\n\tborder-top-style: none;\n\t\n\tbox-sizing: border-box;\n\t-moz-box-sizing: border-box;\n\t-ms-box-sizing: border-box;\n\t-webkit-box-sizing: border-box;\n}\n.dgrid-cell-padding {\n\tpadding: 3px;\n}\n\n.dgrid-content {\n\tposition: relative;\n\theight: 99%;\n}\n\n.dgrid-scroller {\n\toverflow-x: auto;\n\toverflow-y: scroll;\n\tposition: absolute;\n\ttop: 0px;\n\tmargin-top: 25px; /* this will be adjusted programmatically to fit below the header*/\n\tbottom: 0px;\n\twidth: 100%;\n}\n\n.dgrid-preload {\n\t/* Force IE6 to honor 0 height */\n\tfont-size: 0;\n\tline-height: 0;\n}\n\n.dgrid-loading {\n\tposition: relative;\n\theight: 100%;\n}\n.dgrid-above {\n\tposition: absolute;\n\tbottom: 0;\n}\n\n.ui-icon {\n\twidth: 16px;\n\theight: 16px;\n\tbackground-image: url("+n(i(7489))+");\n}\n\n.ui-icon-triangle-1-e {\n\tbackground-position: -32px -16px;\n}\n.ui-icon-triangle-1-se {\n\tbackground-position: -48px -16px;\n}\n\n.dgrid-expando-icon {\n\twidth: 16px;\n\theight: 16px;\n}\n.dgrid-tree-container {\n\t-webkit-transition-duration: 0.3s;\n\t-moz-transition-duration: 0.3s;\n\t-ms-transition-duration: 0.3s;\n\t-o-transition-duration: 0.3s;\n\ttransition-duration: 0.3s;\n\toverflow: hidden;\n}\n.dgrid-tree-container.dgrid-tree-resetting {\n\t-webkit-transition-duration: 0;\n\t-moz-transition-duration: 0;\n\t-ms-transition-duration: 0;\n\t-o-transition-duration: 0;\n\ttransition-duration: 0;\n}\n\n/* Single Sort */\n.dgrid-sort-arrow {\n\tbackground-position: -64px -16px;\n\tdisplay: block;\n\tfloat: right;\n\tmargin: 0 4px 0 5px;\n\theight: 12px;\n}\n.dgrid-sort-up .dgrid-sort-arrow {\n\tbackground-position: 0px -16px;\n}\n\n/* selection*/\n.dgrid-selected {\n\tbackground-color: #bfd6eb;\n}\n\n.dgrid-input {\n\twidth: 99%;\n}\n\n/* UA-specific hacks*/\nhtml.has-mozilla .dgrid *:focus, html.has-opera .dgrid *:focus {\n\t/* firefox's focus doesn't work by default for divs prior to actually tabbing into it. This fixes that\n\t(we don't do any other browsers because we are trying to stay as close to native as possible) */ \n\toutline: 1px dotted;\n}\nhtml.has-ie-6-7.has-no-quirks .dgrid-row-table {\n\t/* in IE7 this is needed instead of 100% to make it not create a horizontal scroll bar*/\n\twidth: auto;\n}\nhtml.has-quirks .dgrid-row-table, html.has-ie-6 .dgrid-row-table {\n\t/* similar story, height looks too high */\n\theight: auto; \n}\n\nhtml.has-quirks .dgrid-header-scroll,\nhtml.has-ie-6 .dgrid-header-scroll {\n\t/* ensure that header scroll node can shrink to 0 height in IE6 & quirks */\n\tfont-size: 0;\n}\n\nhtml.has-mozilla .dgrid-focus {\n\t/* fix row focus outline (prevents horizontal scroll in FF 3.6) */\n\toutline-offset: -1px;\n}\n\n/* will be used to calculate the width of the scrollbar */\n.dgrid-scrollbar-measure {\n\twidth: 100px;\n\theight: 100px;\n\toverflow: scroll;\n\tposition: absolute;\n\ttop: -9999px;\n}\n\n/* Styles for auto-height grids; simply add the dgrid-autoheight class */\n.dgrid-autoheight {\n\theight: auto;\n}\n.dgrid-autoheight .dgrid-scroller {\n\tposition: relative;\n\toverflow-y: hidden;\n}\n.dgrid-autoheight .dgrid-header-scroll {\n\tdisplay: none;\n}\n.dgrid-autoheight .dgrid-header {\n\tright: 0;\n}\n\n/* indicator of a successful load */\n#dgrid-css-dgrid-loaded {\n\tdisplay: none;\n}",""])},function(e,t,i){e.exports=i.p+"images/ui-icons_222222_256x240-ebe6b6902a408fbf9cac6379a1477525.png"},function(e,t,i){var n=i(723),o=i(7491);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);e.exports=o.locals||{}},function(e,t,i){var n=i(1399);(e.exports=i(724)(!1)).push([e.i,"/* DnD avatar-specific settings */\n.dojoDndAvatar\t\t\t{font-size: 75%; color: black;}\n.dojoDndAvatarHeader td\t{padding-left: 20px; padding-right: 4px; height: 16px;}\n.dojoDndAvatarHeader\t{background: #ccc;}\n.dojoDndAvatarItem\t\t{background: #eee;}\n.dojoDndMove .dojoDndAvatarHeader\t{background-image: url("+n(i(7492))+"); background-repeat: no-repeat;}\n.dojoDndCopy .dojoDndAvatarHeader\t{background-image: url("+n(i(7493))+"); background-repeat: no-repeat;}\n.dojoDndMove .dojoDndAvatarCanDrop .dojoDndAvatarHeader\t{background-image: url("+n(i(7494))+"); background-repeat: no-repeat;}\n.dojoDndCopy .dojoDndAvatarCanDrop .dojoDndAvatarHeader\t{background-image: url("+n(i(7495))+"); background-repeat: no-repeat;}\n\n.dojoDndHandle {cursor: move;}\n.dojoDndIgnore {cursor: default;}\n\n.dj_a11y .dojoDndAvatar { font-size: 1em; font-weight:bold;}\n.dj_a11y .dojoDndAvatarHeader td {padding-left:2px !important;}\n.dj_a11y .dojoDndAvatarHeader td span {padding-right: 5px;}\n",""])},function(e,t,i){e.exports=i.p+"images/dndNoMove-1ecdfdfd544b0d51696e0f98de00bf1c.png"},function(e,t,i){e.exports=i.p+"images/dndNoCopy-b410a55565487121b08d46a17d86a9d5.png"},function(e,t,i){e.exports=i.p+"images/dndMove-fa959bb51d8ddb15e9d012a8dd9e9d92.png"},function(e,t,i){e.exports=i.p+"images/dndCopy-48447a05ea6c467c4d2336e7fdecc739.png"},function(e,t,i){var n,o;n=[i(1215),i(7497),i(203),i(204),i(306),i(227),i(206),i(749),i(430)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return i([e,t],{minRowsPerPage:25,maxRowsPerPage:250,maxEmptySpace:1/0,bufferRows:10,farOffRemoval:2e3,queryRowsOverlap:0,pagingMethod:"debounce",pagingDelay:s.defaultDelay,keepScrollPosition:!1,rowHeight:22,postCreate:function(){this.inherited(arguments);var e=this;a(this.bodyNode,"scroll",s[this.pagingMethod]((function(t){e._processScroll(t)}),null,this.pagingDelay))},renderQuery:function(e,t){var i,r,a=this,s=t&&t.container||this.contentNode,c={query:e,count:0,options:t},d=this.preload,u={node:l(s,"div.dgrid-preload",{rowIndex:0}),count:0,query:e,next:c,options:t};u.node.style.height="0",c.node=i=l(s,"div.dgrid-preload"),c.previous=u,i.rowIndex=this.minRowsPerPage,d?((c.next=d.next)&&i.offsetTop>=d.node.offsetTop?c.previous=d:(c.next=d,c.previous=d.previous),c.previous.next=c,c.next.previous=c):this.preload=c;var h=l(i,"-div.dgrid-loading");function p(e){if(l(h,"!"),e)throw a._refreshDeferred&&(a._refreshDeferred.reject(e),delete a._refreshDeferred),e}if(l(h,"div.dgrid-below").innerHTML=this.loadingMessage,t=n.mixin(this.get("queryOptions"),t,{start:0,count:this.minRowsPerPage},"level"in e?{queryLevel:e.level}:null),this._trackError((function(){return r=e(t)})),void 0!==r)return o.when(a.renderArray(r,i,t),(function(e){var n=void 0===r.total?r.length:r.total;return o.when(n,(function(n){var o=e.length,s=i.parentNode,d=a.noDataNode;l(h,"!"),"queryLevel"in t||(a._total=n),0===n&&(d&&(l(d,"!"),delete a.noDataNode),a.noDataNode=d=l("div.dgrid-no-data"),s.insertBefore(d,a._getFirstRowSibling(s)),d.innerHTML=a.noDataMessage);for(var u=0,p=0;p<o;p++)u+=a._calcRowHeight(e[p]);return o&&u&&(a.rowHeight=u/o),n-=o,c.count=n,i.rowIndex=o,n?i.style.height=Math.min(n*a.rowHeight,a.maxEmptySpace)+"px":(i.style.display="none",t.count++),a._previousScrollPosition&&(a.scrollTo(a._previousScrollPosition),delete a._previousScrollPosition),a._processScroll(),a._refreshDeferred&&(a._refreshDeferred.resolve(r),delete a._refreshDeferred),e}),p)}),p),r;p()},refresh:function(e){var t,i=this,n=e&&e.keepScrollPosition;if(void 0===n&&(n=this.keepScrollPosition),n&&(this._previousScrollPosition=this.getScrollPosition()),this.inherited(arguments),this.store)return t=this._refreshDeferred=new o,void 0===i.renderQuery((function(e){return i.store.query(i.query,e)}))&&t.reject(),t.then((function(e){return setTimeout((function(){a.emit(i.domNode,"dgrid-refresh-complete",{bubbles:!0,cancelable:!1,grid:i,results:e})}),0),delete i._refreshDeferred,e}),(function(e){throw delete i._refreshDeferred,e}))},resize:function(){this.inherited(arguments),this._processScroll()},_getFirstRowSibling:function(e){return e.lastChild},_calcRowHeight:function(e){var t=e.nextSibling;return t&&!/\bdgrid-preload\b/.test(t.className)?t.offsetTop-e.offsetTop:e.offsetHeight},lastScrollTop:0,_processScroll:function(e){var t,i,r,a,s,c=this,d=c.bodyNode,u=e&&e.scrollTop||this.getScrollPosition().y,h=d.offsetHeight+u,p=c.preload,f=c.lastScrollTop,g=c.bufferRows*c.rowHeight,m=g-c.rowHeight,_=!0;function v(e,t,i,n){var o=c.farOffRemoval,r=e.node;if(t>2*o){for(var a,s=r[i],d=0,u=0,h=[];a=s;){var p=c._calcRowHeight(a);if(d+p+o>t||s.className.indexOf("dgrid-row")<0&&s.className.indexOf("dgrid-loading")<0)break;s=a[i];d+=p,u+=a.count||1,c.removeRow(a,!0),h.push(a)}e.count+=u,n?(r.rowIndex-=u,b(e)):r.style.height=r.offsetHeight+d+"px";var f=l("div",h);setTimeout((function(){l(f,"!")}),1)}}function b(e,t){e.node.style.height=Math.min(e.count*c.rowHeight,t?1/0:c.maxEmptySpace)+"px"}function y(e,t){do{e=t?e.next:e.previous}while(e&&!e.node.offsetWidth);return e}for(c.lastScrollTop=u;p&&!p.node.offsetWidth;)p=p.previous;for(;p&&p!=t;){t=c.preload,c.preload=p;var C=(i=p.node).offsetTop;if(h+1+m<C)p=y(p,_=!1);else if(u-1-m>C+i.offsetHeight)p=y(p,_=!0);else{var T=((i.rowIndex?u-g:h)-C)/c.rowHeight,E=(h-u+2*g)/c.rowHeight,S=Math.max(Math.min((u-f)*c.rowHeight,c.maxRowsPerPage/2),c.maxRowsPerPage/-2);if(E+=Math.min(Math.abs(S),10),0==i.rowIndex&&(T-=E),(T=Math.max(T,0))<10&&T>0&&E+T<c.maxRowsPerPage&&(E+=Math.max(0,T),T=0),0==(E=Math.min(Math.max(E,c.minRowsPerPage),c.maxRowsPerPage,p.count))){p=y(p,_);continue}E=Math.ceil(E),T=Math.min(Math.floor(T),p.count-E);var w=n.mixin(c.get("queryOptions"),p.options);p.count-=E;var I,A=i,x=c.queryRowsOverlap,N=(i.rowIndex>0||i.offsetTop>u)&&p;if(N){var L=p.previous;L&&(v(L,u-(L.node.offsetTop+L.node.offsetHeight),"nextSibling"),T>0&&L.node==i.previousSibling?(T=Math.min(p.count,T),p.previous.count+=T,b(p.previous,!0),i.rowIndex+=T,x=0):E+=T,p.count-=T),w.start=i.rowIndex-x,w.count=Math.min(E+x,c.maxRowsPerPage),i.rowIndex=w.start+w.count}else{if(p.next)v(p.next,p.next.node.offsetTop-h,"previousSibling",!0),(A=i.nextSibling)==p.next.node?(p.next.count+=p.count-T,p.next.node.rowIndex=T+E,b(p.next),p.count=T,x=0):I=!0;w.start=p.count,w.count=Math.min(E+x,c.maxRowsPerPage)}if(I&&A&&A.offsetWidth&&(I=A.offsetTop),b(p),"level"in p.query&&(w.queryLevel=p.query.level),!("queryLevel"in w)&&(w.start>c._total||w.count<0))continue;var D=l(A,"-div.dgrid-loading[style=height:"+E*c.rowHeight+"px]");l(D,"div.dgrid-"+(N?"below":"above")).innerHTML=c.loadingMessage,D.count=E;var M=p.query(w);if(void 0===c._trackError((function(){return M})))return void l(D,"!");(function(e,t,i,n){s=o.when(c.renderArray(n,e,w),(function(r){if(a=n,A=e.nextSibling,l(e,"!"),i&&A&&A.offsetWidth){var s=c.getScrollPosition();c.scrollTo({x:s.x,y:s.y+A.offsetTop-i,preserveMomentum:!0})}return o.when(n.total||n.length,(function(e){"queryLevel"in w||(c._total=e),t&&(t.count=e-t.node.rowIndex,0===t.count&&w.count++,b(t))})),c._processScroll(),r}),(function(t){throw l(e,"!"),t}))}).call(this,D,N,I,M),p=p.previous}}s&&(r=this._refreshDeferred)&&(delete this._refreshDeferred,o.when(s,(function(){r.resolve(a)})))},removeRow:function(e,t){function i(e,t){return null!=e?e:t}if(e){var n=e.previousSibling,o=e.nextSibling,a=n&&i(n.observerIndex,n.previousObserverIndex),s=o&&i(o.observerIndex,o.nextObserverIndex),l=e.observerIndex;if(e.observerIndex=void 0,t&&(e.nextObserverIndex=s,e.previousObserverIndex=a),this.cleanEmptyObservers&&l>-1&&l!==a&&l!==s){var c=this.observers,d=c[l];if(d){if(!t)for(var u=d.rows,h=0;h<u.length;h++)if(u[h]!=e&&r.isDescendant(u[h],this.domNode))return this.inherited(arguments);d.cancel(),this._numObservers--,c[l]=0}}}this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(203),i(204),i(306),i(206),i(214),i(430)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){function s(e){return e}function l(e){if("object"!=typeof e)e=new Error(e);else if("cancel"===e.dojoType)return;e.grid=this,o.emit(this.domNode,"dgrid-error",{grid:this,error:e,cancelable:!0,bubbles:!0})&&console.error(e)}return t(null,{store:null,query:null,queryOptions:null,getBeforePut:!0,noDataMessage:"",loadingMessage:"",constructor:function(){this.query={},this.queryOptions={},this.dirty={},this._updating={},this._columnsWithSet={},r.before(this,"configStructure",i.hitch(this,(function(){this._columnsWithSet={}})))},postCreate:function(){this.inherited(arguments),this.store&&this._updateNotifyHandle(this.store)},destroy:function(){this.inherited(arguments),this._notifyHandle&&this._notifyHandle.remove()},_configColumn:function(e){e.set&&(this._columnsWithSet[e.field]=e),this.inherited(arguments)},_updateNotifyHandle:function(e){if(this._notifyHandle&&(this._notifyHandle.remove(),delete this._notifyHandle),e&&"function"==typeof e.notify){this._notifyHandle=r.after(e,"notify",i.hitch(this,"_onNotify"),!0);var t=this.get("sort");t&&t.length||console.warn("Observable store detected, but no sort order specified. You may experience quirks when adding/updating items. These can be resolved by setting a sort order on the list or grid.")}},_setStore:function(e,t,i){this._updateNotifyHandle(e),this.store=e,this.dirty={},this.set("query",t,i)},_setQuery:function(e,t){var i=t&&t.sort;this.query=void 0!==e?e:this.query,this.queryOptions=t||this.queryOptions,i?this.set("sort",i):this.refresh()},setStore:function(t,i,n){e.deprecated("setStore(...)",'use set("store", ...) instead',"dgrid 0.4"),this.set("store",t,i,n)},setQuery:function(t,i){e.deprecated("setQuery(...)",'use set("query", ...) instead',"dgrid 0.4"),this.set("query",t,i)},_getQueryOptions:function(){var e=i.delegate(this.queryOptions,{});return("function"==typeof this._sort||this._sort.length)&&(e.sort=this._sort),e},_getQuery:function(){var e=this.query;return"object"==typeof e&&null!=e?i.delegate(e,{}):e},_setSort:function(e,t){this.store&&(this._lastCollection=null),this.inherited(arguments)},_onNotify:function(e,t){this.inherited(arguments),e&&this._numObservers<1&&this.refresh({keepScrollPosition:!0})},refresh:function(){var e=this.inherited(arguments);return this.store||(this.noDataNode=a(this.contentNode,"div.dgrid-no-data"),this.noDataNode.innerHTML=this.noDataMessage),e},renderArray:function(){var e=this,t=this.inherited(arguments);return this.store||n.when(t,(function(t){t.length&&e.noDataNode&&a(e.noDataNode,"!")})),t},insertRow:function(e,t,n,o,r){var a,s=this.store,l=this.dirty,c=s&&s.getIdentity(e);return c in l&&!(c in this._updating)&&(a=l[c]),a&&(e=i.delegate(e,a)),this.inherited(arguments)},updateDirty:function(e,t,i){var n=this.dirty,o=n[e];o||(o=n[e]={}),o[t]=i},setDirty:function(t,i,n){e.deprecated("setDirty(...)","use updateDirty() instead","dgrid 0.4"),this.updateDirty(t,i,n)},save:function(){var e=this,t=this.store,i=this.dirty,o=new n,r=o.promise,a=function(i){var n;return e.getBeforePut||!(n=e.row(i).data)?function(){return t.get(i)}:function(){return n}};function s(o,r){return function(a){var s,l,c=e._columnsWithSet,d=e._updating;if("function"==typeof a.set)a.set(r);else for(s in r)a[s]=r[s];for(s in c)void 0!==(l=c[s].set(a))&&(a[s]=l);return d[o]=!0,n.when(t.put(a),(function(){delete i[o],delete d[o]}))}}for(var l in i){var c=s(l,i[l]);r=r.then(a(l)).then(c)}return o.resolve(),r},revert:function(){this.dirty={},this.refresh()},_trackError:function(e){var t;"string"==typeof e&&(e=i.hitch(this,e));try{t=e()}catch(e){l.call(this,e)}return n.when(t,s,i.hitch(this,l))},newRow:function(){var e=this.inherited(arguments);return this.noDataNode&&(a(this.noDataNode,"!"),delete this.noDataNode),e},removeRow:function(e,t){var i={element:e};return!t&&this.noDataMessage&&this.up(i).element===e&&this.down(i).element===e&&(this.noDataNode=a(this.contentNode,"div.dgrid-no-data"),this.noDataNode.innerHTML=this.noDataMessage),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(206),i(749),i(430),i(7499),i(7503)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s,l=t("ie"),c=l&&t("quirks"),d=l<8||c?"htmlFor":"for";function u(e,t){return e.id.substr(t.id.length+18)}return e(null,{hiderMenuNode:null,hiderToggleNode:null,i18nColumnHider:r,_hiderMenuOpened:!1,_columnHiderRules:null,_columnHiderCheckboxes:null,_renderHiderMenuEntries:function(){var e,t,i,n,o=this.subRows,r=!0;for(delete this._columnHiderFirstCheckbox,i=0,e=o.length;i<e;i++)for(n=0,t=o[i].length;n<t;n++)this._renderHiderMenuEntry(o[i][n]),r&&(r=!1,this._columnHiderFirstCheckbox=this._columnHiderCheckboxes[o[i][n].id])},_renderHiderMenuEntry:function(e){var t,i,r,a=e.id,s=n.escapeCssIdentifier(a,"-");e.hidden&&(e.hidden=!1,this._hideColumn(a),e.hidden=!0),e.unhidable||(t=o("div.dgrid-hider-menu-row"),i=this.domNode.id+"-hider-menu-check-"+s,(r=this._columnHiderCheckboxes[a]=o(t,"input.dgrid-hider-menu-check.hider-menu-check-"+s+"[type=checkbox]")).id=i,o(t,"label.dgrid-hider-menu-label.hider-menu-label-"+s+"["+d+"="+i+"]",e.label||e.field||""),o(this.hiderMenuNode,t),e.hidden||(r.checked=!0))},renderHeader:function(){var e,t=this,n=this.hiderMenuNode,r=this.hiderToggleNode;function d(e){e.stopPropagation()}if(this.inherited(arguments),n){for(e in this._columnHiderRules)this._columnHiderRules[e].remove();n.innerHTML=""}else r=this.hiderToggleNode=o(this.domNode,"button.ui-icon.dgrid-hider-toggle[type=button][aria-label="+this.i18nColumnHider.popupTriggerLabel+"]"),this._listeners.push(i(r,"click",(function(e){t._toggleColumnHiderMenu(e)}))),(n=this.hiderMenuNode=o("div.dgrid-hider-menu[role=dialog][aria-label="+this.i18nColumnHider.popupLabel+"]")).id=this.id+"-hider-menu",this._listeners.push(i(n,"keyup",(function(e){27===(e.charCode||e.keyCode)&&(t._toggleColumnHiderMenu(e),r.focus())}))),n.style.display="none",o(this.domNode,n),this._listeners.push(i(n,".dgrid-hider-menu-check:"+(l<9||c?"click":"change"),(function(e){t._updateColumnHiddenState(u(e.target,t),!e.target.checked)}))),this._listeners.push(i(n,"mousedown",d),i(r,"mousedown",d)),s||(s=i.pausable(document,"mousedown",(function(e){a&&a._toggleColumnHiderMenu(e)}))).pause();this._columnHiderCheckboxes={},this._columnHiderRules={},this._renderHiderMenuEntries()},destroy:function(){for(var e in this.inherited(arguments),this._columnHiderRules)this._columnHiderRules[e].remove()},left:function(e,t){return this.right(e,-t)},right:function(e,t){e.element||(e=this.cell(e));for(var i=this.inherited(arguments),n=e;i.column.hidden;){if(i=this.inherited(arguments,[i,t>0?1:-1]),n.element===i.element)return e;n=i}return i},isColumnHidden:function(e){return!!this._columnHiderRules[e]},_toggleColumnHiderMenu:function(){var e,t=this._hiderMenuOpened,i=this.hiderMenuNode,n=this.domNode;i.style.display=t?"none":"",t?i.style.height="":(i.offsetHeight>n.offsetHeight-12&&(i.style.height=n.offsetHeight-12+"px"),(e=this._columnHiderFirstCheckbox)&&e.focus()),s[t?"pause":"resume"](),a=t?null:this,this._hiderMenuOpened=!t},_hideColumn:function(e){var i,o=this,r="#"+n.escapeCssIdentifier(this.domNode.id)+" .dgrid-column-";this._columnHiderRules[e]||(this._columnHiderRules[e]=n.addCssRule(r+n.escapeCssIdentifier(e,"-"),"display: none;"),8!==t("ie")&&10!==t("ie")||t("quirks")||(i=n.addCssRule(".dgrid-row-table","display: inline-table;"),window.setTimeout((function(){i.remove(),o.resize()}),0)))},_showColumn:function(e){this._columnHiderRules[e]&&(this._columnHiderRules[e].remove(),delete this._columnHiderRules[e])},_updateColumnHiddenState:function(e,t){this[t?"_hideColumn":"_showColumn"](e),this.columns[e].hidden=t,i.emit(this.domNode,"dgrid-columnstatechange",{grid:this,column:this.columns[e],hidden:t,bubbles:!0}),this.resize()},toggleColumnHiddenState:function(e,t){void 0===t&&(t=!this._columnHiderRules[e]),this._updateColumnHiddenState(e,t),this._columnHiderCheckboxes[e].checked=!t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7500),i(7501),i(7502)],o=i.dj.d(n,(function(e,t){return t(e,"dgrid/extensions/nls/columnHider",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={popupTriggerLabel:"Mostrar o esconder columnas",popupLabel:"Mostrar o esconder columnas"}},function(e,t,i){e.exports={popupTriggerLabel:"Afișarea sau ascunderea coloanelor",popupLabel:"Afișarea sau ascunderea coloanelor"}},function(e,t,i){e.exports={root:{popupTriggerLabel:"Show or hide columns",popupLabel:"Show or hide columns"},es:!0,ro:!0}},function(e,t,i){var n=i(723),o=i(7504);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);e.exports=o.locals||{}},function(e,t,i){(e.exports=i(724)(!1)).push([e.i,".dgrid-hider-toggle {\n\tbackground-position: 0 -192px;\n\tbackground-color: transparent;\n\tborder: none;\n\tcursor: pointer;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n}\n\n.dgrid-rtl-swap .dgrid-hider-toggle {\n\tright: auto;\n\tleft: 0;\n}\n\n.dgrid-hider-menu {\n\tposition: absolute;\n\ttop: 0;\n\tright: 17px;\n\twidth: 184px;\n\tbackground-color: #fff;\n\tborder: 1px solid black;\n\tz-index: 99999;\n\tpadding: 4px;\n\toverflow-x: hidden;\n\toverflow-y: auto;\n}\n\n.dgrid-rtl-swap .dgrid-hider-menu {\n\tright: auto;\n\tleft: 17px;\n}\n\n.dgrid-hider-menu-row {\n\tposition: relative;\n\tpadding: 2px;\n}\n.dgrid-hider-menu-check {\n\tposition: absolute;\n\ttop: 2px;\n\tleft: 2px;\n\tpadding: 0;\n}\n.dgrid-hider-menu-label {\n\tdisplay: block;\n\tpadding-left: 20px;\n}\n\nhtml.has-quirks .dgrid-hider-menu-check,\nhtml.has-ie-6-7 .dgrid-hider-menu-check {\n\t/* IE < 8 seems to ignore padding: 0, so counteract */\n\ttop: 0;\n\tleft: 0;\n}\n\n#dgrid-css-extensions-ColumnHider-loaded {\n\tdisplay: none;\n}\n",""])},function(e,t,i){var n,o;n=[i(204),i(203),i(224),i(206),i(225),i(794),i(430),i(7506)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=/(\d+)(?:-(\d+))?$/;function l(e,t){var i=t[2],n=e[i?"columnSets":"subRows"][t[1]];return i?n[t[2]]:n}function c(e,t,i){t[2]?e.columnSets[t[1]][t[2]]=i:e.subRows[t[1]]=i}function d(e){return"dgrid-"+e+"-"}function u(e,t){return t.slice(d(e).length)}var h=t(r,{copyState:function(){return!1},checkAcceptance:function(e,t){return e==this},_legalMouseDown:function(e){return!(e.target.className.indexOf("dgrid-resize-handle")>-1)&&this.inherited(arguments)},onDropInternal:function(e){var t=this.grid,o=s.exec(u(t.id,e[0].getAttribute("dndType"))),r=o[2]?"columnSets":"subRows",a=l(t,o),d=t.columns;this.inherited(arguments),o&&setTimeout((function(){var s,l=i.map(e[0].parentNode.childNodes,(function(e){return d[e.columnId]}));c(t,o,l),(s={grid:t,subRow:l,column:d[e[0].columnId],bubbles:!0,cancelable:!0,parentType:"dnd"})[r]=t[r],n.emit(t.domNode,"dgrid-columnreorder",s)?t.set(r,t[r]):(c(t,o,a),t.renderHeader(),this._sort&&this._sort.length&&this.updateSortArrow(this._sort))}),0)}}),p=t(null,{columnDndConstructor:h,_initSubRowDnd:function(e,t){var i,n,o,r,s;for(n=0,o=e.length;n<o;n++)!1!==(r=e[n]).reorderable&&("TH"!=(s=r.headerNode).tagName&&(s=s.parentNode),a(s,".dojoDndItem[dndType="+t+"]"),i||(i=s.parentNode));i&&this._columnDndSources.push(new this.columnDndConstructor(i,{horizontal:!0,grid:this}))},renderHeader:function(){var e,t,n=d(this.id);if(this.inherited(arguments),this._columnDndSources=[],this.columnSets)for(t=0,e=this.columnSets.length;t<e;t++)i.forEach(this.columnSets[t],(function(e,i){this._initSubRowDnd(e,n+t+"-"+i)}),this);else i.forEach(this.subRows,(function(e,t){this._initSubRowDnd(e,n+t)}),this)},_destroyColumns:function(){this._columnDndSources&&i.forEach(this._columnDndSources,(function(e){e.destroy()})),this.inherited(arguments)}});return p.ColumnDndSource=h,p}),e,t),e.exports=o},function(e,t,i){var n=i(723),o=i(7507);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);e.exports=o.locals||{}},function(e,t,i){(e.exports=i(724)(!1)).push([e.i,".dgrid-header .dojoDndContainer .dgrid-cell {\n\tdisplay: table-cell; /* override any spurious dojoDndItem settings elsewhere */\n}\n\n.dgrid-header .dojoDndItemBefore {\n\tborder-left: 2px dotted #000 !important;\n}\n.dgrid-header .dojoDndItemAfter {\n\tborder-right: 2px dotted #000 !important;\n}\n\n#dgrid-css-extensions-ColumnReorder-loaded { /* load indicator for xstyle */\n\tdisplay: none;\n}\n",""])},function(e,t,i){var n,o;n=[i(204),i(203),i(606),i(767)],o=i.dj.d(n,(function(e,t,i,n){return t([],{constructor:function(){this._actionsKeyBindingsListeners={}},setNavigationKeyBindings:function(t,i){var o=this;t.grid.addKeyHandler(n.LEFT_ARROW,e.hitch(t,"moveFocusLeft")),t.grid.addKeyHandler(n.RIGHT_ARROW,e.hitch(t,"moveFocusRight")),t.grid.addKeyHandler(n.LEFT_ARROW,e.hitch(t,"moveFocusLeft"),!0),t.grid.addKeyHandler(n.RIGHT_ARROW,e.hitch(t,"moveFocusRight"),!0),t.on("keydown",(function(e){var n=function(e){var t="";return t+=e.altKey?"Alt_":"",t+=e.ctrlKey?"Ctrl_":"",t+=e.metaKey?"Meta_":"",t+=e.shiftKey?"Shift_":"",t+=e.keyCode}(e);i.getActions().then((function(i){!o._actionsKeyBindingsListeners.hasOwnProperty(n)||e.target.type&&"text"===e.target.type||(o._actionsKeyBindingsListeners[n].executeAction(e),t.setShouldGiveFocusBackToDgrid(!0))}))}))},updateActionsKeyBindings:function(e,t){var n=this;this.clearActionsKeyBindings(),e.forEach((function(e){if(e.supportsKeyBinding){var o;void 0!==t[e.id]?o=t[e.id]:e.keyCode&&(o=[e.keyCode]);var r=o&&i.getKeyBindingData(o);if(r){var a=function(e){var t="";return t+=e.hasAltKey?"Alt_":"",t+=e.hasCtrlKey?"Ctrl_":"",t+=e.hasMetaKey?"Meta_":"",t+=e.hasShiftKey?"Shift_":"",t+=e.keyCode||""}(r);n._actionsKeyBindingsListeners[a]={executeAction:function(t){t.preventDefault(),t.stopPropagation(),e.callback()}}}}}))},clearActionsKeyBindings:function(){this._actionsKeyBindingsListeners={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(306),i(204),i(1075),i(210),i(221),i(256),i(795),i(794),i.dj.h("touch?33"),i(1796),i(233),i(7510),i(7512)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([l,p],{manager:s.manager(),hoveredTarget:[],folderTimeout:[],_updateUiDroppableState:function(){if(this.manager.target){var e=this.getTargetFolderInfo(),t=u.normalizePath(u.pathFromFileInfo(e));if(!u.isWritable(e))return!1;var i=!0,n=!1,o=!1;this.manager.draggedObjectInfos.forEach((function(e){var r=u.normalizePath(u.pathFromFileInfo(e)),a=u.normalizePath(e.location);t===a&&(n=!0),e.isDirectory&&0===t.indexOf(r)&&(o=!0),e.isParentWritable&&(i=!1)}),this),i&&(this.manager.copy=!0),n||o?(this.manager.canDrop(!1),this.removeHighlightTargetNode()):(this.manager.canDrop(!0),this.highlightTargetNode(this.grid.row(e).element))}},onFilesDrop:function(e,t,i){},getTargetRow:function(){var e=this._targetAnchor=this.targetAnchor,t=this.grid;return e&&t.row(e)},getHoveredFolderInfo:function(){var e,t=this.grid.store,i=this.getTargetRow();return i&&(e=t.get(i.id)),e},getTargetFolderInfo:function(){var e=this.grid,t=e.store,i=this.getHoveredFolderInfo();return i&&(i.isDirectory||i.parent!==e.getCurrentFolderPath())||(i=e.getCurrentFolderInfo()),i.isDirectory||(i=t.get(i.parent)),i},highlightTargetNode:function(e){this.removeHighlightTargetNode(),e&&(o.add(e,"isDnDTarget"),this.previousTargetRowNode=e)},removeHighlightTargetNode:function(){this.previousTargetRowNode&&(o.remove(this.previousTargetRowNode,"isDnDTarget"),this.previousTargetRowNode=null)},getObject:function(e){var t=this.grid;return t._trackError((function(){var n=t.store.get(e.id.slice(t.id.length+5)),o=t.store.get(n.parent),r=void 0===o||u.isWritable(o);return i.mixin({isParentWritable:r},n)}))},_legalMouseDown:function(e){var t=this.inherited(arguments);return t&&e.target!==this.grid.bodyNode},constructor:function(){d.registerMakeAvatar(this,(function(){return new h(s.manager())})),"function"==typeof this.postCreate&&this.postCreate()},onDndCancel:function(){this.inherited(arguments),this.removeHighlightTargetNode()},onDrop:function(e,i,n){var o=[],r=this.getTargetFolderInfo();i.forEach((function(i){t.when(e.getObject(i),(function(e){o.push(e)}))})),this.onFilesDrop(o,r,n)},onDndStart:function(e){var t=this;this._dragStarted=!0,this.inherited(arguments),e===this&&(this.grid.cancelTouchScroll&&this.grid.cancelTouchScroll(),this.manager.draggedObjectInfos=[],this.manager.nodes.forEach(function(e){this.manager.draggedObjectInfos.push(this.getObject(e))}.bind(this)),this.manager.nodes.forEach((function(i){var n=e.getObject(i);u.isUserPublishedDirectoryPath(n.path)&&(t.manager.canDrop(!1),t.manager.stopDrag(),a.publish("/dnd/cancel"))})))},onMouseDown:function(e){var t=this;function i(){return r("touch")&&this.isDragging&&c.countCurrentTouches(e,this.grid.touchNode)>1}function n(){return!(e.target.classList.contains("dgrid-cell-data")||e.target.classList.contains("iconOverlay")||e.target.classList.contains("dgrid-expando-icon"))}function o(e){return!t.grid.isSelected(t.grid.row(e.target))&&n()&&0===e.button}i()||o(e)||this.inherited(arguments)},onMouseUp:function(e){this.dragHappened=!1,this._dragStarted&&(this.dragHappened=!0),this._dragStarted=!1,this.inherited(arguments)},onMouseMove:function(e){if((!r("touch")||c.countCurrentTouches(e,this.grid.touchNode)<=1)&&(this.inherited(arguments),this.isDragging)){this._updateUiDroppableState();var t=this.getHoveredFolderInfo();this._expandDirectory(t,400)}},checkAcceptance:function(e,t){return e.getObject&&l.prototype.checkAcceptance.apply(this,arguments)},getSelectedNodes:function(){var e,t=new n;for(e in this.grid.selection)t.push(this._selectedNodes[e]);return t},_markDndStatus:function(){this.inherited(arguments),this._updateUiDroppableState()},_expandDirectory:function(e,t){if(e){if(this.hoveredTarget!==e){clearTimeout(this.folderTimeout),this.hoveredTarget=e;var i=this.grid,n=i.row(e);this.folderTimeout=setTimeout((function(){i.expand(n,!0)}),t)}}else clearTimeout(this.folderTimeout)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1795),i(228),i(211),i(1274),i(508),i(236)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t],{construct:function(){var e=n.create("table",{class:"fileBrowserGridDnDAvatar dojoDndAvatar"});e.style.zIndex=25;var t=n.create("tbody",null,e),r=n.create("tr",null,t),a=n.create("td",null,r);o("highcontrast")&&n.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},a),n.create("span",{innerHTML:this.manager.source.generateText?this._generateText():""},a),i.set(r,{class:"dojoDndAvatarHeader"}),this.node=e},_generateText:function(){return this.manager.copy?a.substitute(r.dndCopyMessage,[this.manager.nodes.length.toString()]):a.substitute(r.dndMoveMessage,[this.manager.nodes.length.toString()])}})}),e,t),e.exports=o},function(e,t,i){e.exports={root:{name:"Name",size:"Size",dateModified:"Date Modified",type:"Type",publishedMySite:"(my site)",stopGrouping:"Stop Grouping",groupBy:"Group By",dndCopyMessage:"Copy ${0} item(s)",dndMoveMessage:"Move ${0} item(s)",defaultFolderType:"Folder",defaultFileType:"${0} File",kb:"KB",mb:"MB",gb:"GB",tb:"TB",pb:"PB",eb:"EB",zb:"ZB",yb:"YB",fileSize:"${0} ${1}",fileGroup:"File",small:"Small",medium:"Medium",large:"Large",older:"Older",lastWeek:"Last Week",twoWeeksAgo:"Two Weeks Ago",threeWeeksAgo:"Three Weeks Ago",today:"Today",sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday"}}},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=[i(203),i(214)],o=i.dj.d(n,(function(e,t){return e([],{postCreate:function(){t.after(this,"delItem",function(e){"object"===(void 0===e?"undefined":r(e))&&e.element instanceof HTMLElement&&(e=e.element.id),this.map[e]&&delete this.map[e]}.bind(this),!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(225),i(204),i(227),i(217),i(221),i(749),i(430),i(1326),i(2490)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){function c(e,t,i,n,o){for(var r=1;r<t;r++)e[i+r][n]=o}function d(e){for(var t=e.length,i=t,n=e[0].length,o=new Array(t);t--;)o[t]=new Array(n);var r={};for(t=0;t<i;t++)for(var a=o[t],s=e[t],l=0,d=0;l<n;l++){var u,h=s[d];if(void 0===a[l]){if(a[l]=h.id,h.rowSpan&&h.rowSpan>1&&c(o,h.rowSpan,t,l,h.id),t>0&&h.colSpan&&h.colSpan>1)for(u=1;u<h.colSpan;u++)a[++l]=h.id,h.rowSpan&&h.rowSpan>1&&c(o,h.rowSpan,t,l,h.id);r[h.id]=e[0][l].id,d++}}return r}function u(e,i,n,o,r){if(!(n<=0)){var a,l,c=e.columns[i];if(c)return a={grid:e,columnId:i,width:n,bubbles:!0,cancelable:!0},o&&(a.parentType=o),!e._resizedColumns||t.emit(e.headerNode,"dgrid-columnresize",a)?("auto"===n?delete c.width:(c.width=n,n+="px"),(l=e._columnSizes[i])?l.set("width",n):l=s.addCssRule("#"+s.escapeCssIdentifier(e.domNode.id)+" .dgrid-column-"+s.escapeCssIdentifier(i,"-"),"width: "+n+";"),e._columnSizes[i]=l,!1!==r&&e.resize(),!0):void 0}}var h,p,f=0,g=function(){h=l("div.dgrid-column-resizer"),p=l("div.dgrid-resize-guard")},m=function(){l(h,"!"),l(p,"!"),h=p=null},_=function(e){var t=r.position(e.domNode,!0);h.style.top=t.y+"px",h.style.height=t.h+"px",l(document.body,h),l(e.domNode,p)},v=function(e){h.style.left=e+"px"},b=function(){h.parentNode.removeChild(h),p.parentNode.removeChild(p)};return e(null,{resizeNode:null,minWidth:40,adjustLastColumn:!0,_resizedColumns:!1,buildRendering:function(){this.inherited(arguments),f++||g()},destroy:function(){for(var e in this.inherited(arguments),this._columnSizes)this._columnSizes[e].remove();--f||m()},resizeColumnWidth:function(e,t){return u(this,e,t)},configStructure:function(){var e,t=this._oldColumnSizes=n.mixin({},this._columnSizes);for(e in this._resizedColumns=!1,this._columnSizes={},this.inherited(arguments),t)e in this._columnSizes||t[e].remove();delete this._oldColumnSizes},_configColumn:function(e){this.inherited(arguments);var t,i=e.id;"width"in e&&((t=this._oldColumnSizes[i])?t.set("width",e.width+"px"):t=s.addCssRule("#"+s.escapeCssIdentifier(this.domNode.id)+" .dgrid-column-"+s.escapeCssIdentifier(i,"-"),"width: "+e.width+"px;"),this._columnSizes[i]=t)},renderHeader:function(){this.inherited(arguments);var e,o=this;if(this.columnSets&&this.columnSets.length)for(var r=this.columnSets.length;r--;)e=n.mixin(e||{},d(this.columnSets[r]));else this.subRows&&this.subRows.length>1&&(e=d(this.subRows));for(var c=i(".dgrid-cell",o.headerNode),u=c.length;u--;){var h=c[u],p=h.columnId,f=o.columns[p],g=h.childNodes;if(f&&!1!==f.resizable){var m=l("div.dgrid-resize-header-container");for(h.contents=m;g.length>0;)l(m,g[0]);l(h,m,"div.dgrid-resize-handle.resizeNode-"+s.escapeCssIdentifier(p,"-")).columnId=e&&e[p]||p}}o.mouseMoveListen||(t(o.headerNode,".dgrid-resize-handle:mousedown"+(a("touch")?",.dgrid-resize-handle:touchstart":""),(function(e){o._resizeMouseDown(e,this),o.mouseMoveListen.resume(),o.mouseUpListen.resume()})),o._listeners.push(o.mouseMoveListen=t.pausable(document,"mousemove"+(a("touch")?",touchmove":""),s.throttleDelayed((function(e){o._updateResizerPosition(e)})))),o._listeners.push(o.mouseUpListen=t.pausable(document,"mouseup"+(a("touch")?",touchend":""),(function(e){o._resizeMouseUp(e),o.mouseMoveListen.pause(),o.mouseUpListen.pause()}))),o.mouseMoveListen.pause(),o.mouseUpListen.pause())},_resizeMouseDown:function(e,t){e.preventDefault(),o.setSelectable(this.domNode,!1),this._startX=this._getResizeMouseLocation(e),this._targetCell=i(".dgrid-column-"+s.escapeCssIdentifier(t.columnId,"-"),this.headerNode)[0],this._updateResizerPosition(e),_(this)},_resizeMouseUp:function(e){var t,n,r,a=this._columnSizes;this.adjustLastColumn&&(r=this.headerNode.clientWidth-1),this._resizedColumns||(t=i(".dgrid-cell",this.headerNode),this.columnSets&&this.columnSets.length?t=t.filter((function(e){return"0"===e.columnId.split("-")[0]&&!(e.columnId in a)})):this.subRows&&this.subRows.length>1&&(t=t.filter((function(e){return"0"===e.columnId.charAt(0)&&!(e.columnId in a)}))),n=t.map((function(e){return e.offsetWidth})),t.forEach((function(e,t){u(this,e.columnId,n[t],null,!1)}),this),this._resizedColumns=!0),o.setSelectable(this.domNode,!0);var l=this._targetCell,c=this._getResizeMouseLocation(e)-this._startX,d=l.offsetWidth+c,h=this._getResizedColumnWidths(),p=h.totalWidth,f=h.lastColId,g=i(".dgrid-column-"+s.escapeCssIdentifier(f,"-"),this.headerNode)[0].offsetWidth;d<this.minWidth&&(d=this.minWidth),u(this,l.columnId,d,e.type)&&l.columnId!==f&&this.adjustLastColumn&&(p+c<r?u(this,f,"auto",e.type):g-c<=this.minWidth&&u(this,f,this.minWidth,e.type)),b(),delete this._startX,delete this._targetCell},_updateResizerPosition:function(e){if(this._targetCell){var t=this._getResizeMouseLocation(e),i=t-this._startX,n=this._targetCell.offsetWidth,o=t;n+i<this.minWidth&&(o=this._startX-(n-this.minWidth)),v(o)}},_getResizeMouseLocation:function(e){var t=0;return e.pageX?t=e.pageX:e.clientX&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),t},_getResizedColumnWidths:function(){var e=0,t=i((this.columnSets?".dgrid-column-set-cell ":"")+"tr:first-child .dgrid-cell",this.headerNode),n=t.length;if(!n)return{};for(var o=t[n-1].columnId;n--;)e+=t[n].offsetWidth;return{totalWidth:e,lastColId:o}}})}),e,t),e.exports=o},function(e,t,i){(e.exports=i(724)(!1)).push([e.i,".dgrid-column-resizer {\n\tcursor: col-resize;\n\tposition: absolute;\n\twidth: 2px;\n\tbackground-color: #666;\n\tz-index: 1000;\n}\n\n.dgrid-resize-guard {\n\tcursor: col-resize;\n\tposition: absolute;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\ttop: 0;\n}\n\n\n.dgrid-resize-handle {\n\theight: 100px;\n\twidth: 0;\n\tposition: absolute;\n\tright: -4px;\n\ttop:-4px;\n\tcursor: col-resize;\n\tz-index: 999;\n\tborder-left: 5px solid transparent;\n\toutline: none;\n}\nhtml.has-ie-6 .dgrid-resize-handle {\n\tborder-color: pink;\n\tfilter: chroma(color=pink);\n}\nhtml.has-mozilla .dgrid .dgrid-resize-handle:focus,\nhtml.has-opera .dgrid .dgrid-resize-handle:focus {\n\t/* Override focus outline style set in dgrid.css */\n\toutline: none;\n}\n\n.dgrid-resize-header-container {\n\theight:100%;\n}\n\n/* make the resize handles larger on touch-capable devices */\nhtml.has-touch .dgrid-resize-handle {\n\tborder-left: 20px solid transparent;\n}\nhtml.has-touch .dgrid-column-resizer {\n\twidth: 2px;\n}\n\nhtml.has-no-quirks .dgrid-resize-header-container {\n\t/* set to relative so we can do the resizing against this node...\n\t\texcept when in quirks mode, where we have to use the th */\n\tposition: relative;\n}\nhtml.has-ie-6 .dgrid-resize-header-container {\n\tposition: static; /* and in IE6 we have to do the th hack */\n}\n.dgrid-header .dgrid-cell-padding {\n\toverflow: hidden;\n}\nhtml.has-ie-6 .dgrid-header .dgrid-cell-padding {\n\tmargin-right: 4px; /* for IE6, keep the resizer visible */\n}\nhtml.has-ie-6 .dgrid-header .dgrid-sort-arrow {\n margin-right: 0; /* for IE6, zero out the right margin due to the right margin for the container */\n}\nhtml.has-quirks .dgrid-header .dgrid-cell-padding, html.has-ie-6 .dgrid-header .dgrid-cell {\n\tposition:relative;\n}\n\n#dgrid-css-extensions-ColumnResizer-loaded {\n\tdisplay: none;\n}\n",""])},function(e,t,i){var n,o;n=[i(203),i(221),i(233),i(1603)],o=i.dj.d(n,(function(e,t,i,n){function o(e){return t("mac")&&e.ctrlKey&&0===e.button}return e(null,{clearRemovedFocus:function(){delete this._removedFocus},getSelectedFilePaths:function(){var e=Object.keys(this.selection);return e=e.length>0?e:[]},getSelectedFileInfos:function(){var e=[],t=this;return this.getSelectedFilePaths().forEach((function(i){e.push(t.row(i).data)})),e},setCurrentFolderInfo:function(e){this.currentFolderInfo=e},getCurrentFolderInfo:function(){return this.currentFolderInfo},getCurrentFolderPath:function(){return this.getCurrentFolderInfo()?i.pathFromFileInfo(this.getCurrentFolderInfo()):""},down:function(e,t,i){if(e)return this.inherited(arguments);var n=document.getElementsByClassName("dgrid-row")[0];return this.row(n)},moveFocusRight:function(e){var t=this.row(e)?this.row(e):this._focusedNode;if(this._expanded[t.id]){var i=this.down(this._focusedNode,1,!0);this.focus(i,!1,e)}else this.expand(t,!0),this.focus(t)},moveFocusLeft:function(e){var t=this.row(e)?this.row(e):this._focusedNode;if(this._expanded[t.id])this.expand(t,!1),this.focus(t);else{var i=this.row(t.data.parent);this.focus(i,!1,e)}},updateSortArrow:function(e,t){e=n.getFBSortArray(),this.inherited(arguments)},_customSelectionHandler:function(e,t){setTimeout(function(){if("dgrid-cellfocusin"===e.type&&this.getSelectedFilePaths().length>1&&!e.keyCode){for(var i=0;i<this.getSelectedFileInfos().length;i++){var n=this.row(this.getSelectedFileInfos()[i]);this.select(n,null,!0)}this.select(t,null,!0)}else if(!e.target.classList.contains("dgrid-cell")||2!==e.button&&!o(e)||t.classList.contains("dgrid-selected")){!(n=this.row(t))||this.isSelected(n)&&o(e)||this._extendedSelectionHandler(e,t)}else this.clearSelection()}.bind(this),0)},_focusOnNode:function(e,t,i){i&&i.target.classList.contains("dgrid-cell")&&!i.target.classList.contains("dgrid-selected")&&2===i.button||this.inherited(arguments)},selectAll:function(){for(var e in this.selection={},this._rowIdToObject){var t=this.row(this._rowIdToObject[e]);this._select(t.id,null,!0)}this._fireSelectionEvents()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(7517),i(7518),i(7519),i(7520),i(7521)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([].concat([i,n,o,r],[a]),{setupFBEvents:function(e){this.bindNativeEventsFromFBRegistry(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210)],o=i.dj.d(n,(function(e,t){return e([],{getDomNode:function(){return this.grid.domNode},getRow:function(e){return this.grid.row(e)},getColumns:function(){return this.grid.subRows[0]},getRowNodes:function(){return this.grid.domNode.querySelectorAll(".dgrid-row")},getRowCount:function(){return this.grid.domNode.querySelectorAll(".dgrid-row").length},getRowId:function(e){return this.grid.row(e).id},getRowElement:function(e){return this.grid.row(e).element},getRowFileInfo:function(e){return this.grid.row(e).data},getColumn:function(e){return this.grid.columns[e]},isExpanded:function(e){return!!this.grid._expanded[e]},isExpandoElement:function(e){return t.contains(e,"dgrid-expando-icon")},getHeaderContextMenu:function(){return this.grid.headerContextMenu},expandRow:function(e){this.grid.expand(e,!0)},collapseRow:function(e){this.grid.expand(e,!1)},expandAll:function(){var e=this.grid.domNode.querySelectorAll(".dgrid-row");Array.from(e).forEach(function(e){this.grid.expand(this.grid.row(e),!0)}.bind(this))},collapseAll:function(){var e=this.grid.domNode.querySelectorAll(".dgrid-row");Array.from(e).forEach(function(e){this.grid.expand(this.grid.row(e),!1)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(223),i(650),i(306)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{focus:function(e){this.grid.focus(e)},isSelected:function(e){return this.grid.isSelected(e)},setFocusAndSelection:function(e){var t=new o;this.clearRemovedFocus(),this.clearSelection();var i=this.grid.on("dgrid-cellfocusin",(function(){i.remove(),t.resolve()}));return this.focus(e),t.promise},removeFocusAndSelection:function(){t.add(this.domNode,"fileBrowser2-blur");var e=this.grid._focusedNode;e&&e.classList.remove("dgrid-focus")},clearRemovedFocus:function(){delete this.grid._removedFocus},getFocusableElements:function(){if(event.keyCode===i.TAB){var e=n._getTabNavigable(this.domNode);this._firstFocusItem=e.lowest||e.first,this._lastFocusItem=e.last||e.highest||this._firstFocusItem}return{focusableElements:[this._firstFocusItem,this._lastFocusItem]}},selectRow:function(e,t){t?this.grid.select(e,t):this.grid.select(e)},deSelectRow:function(e,t){t?this.grid.deselect(e,t):this.grid.deselect(e)},selectAll:function(){this.grid.selectAll()},deSelectAll:function(){this.grid.clearSelection(),this.grid.clearRemovedFocus()},getSelection:function(){return this.grid.selection},clearSelection:function(){this.grid.clearSelection(null,!0)},getSelectedRows:function(){return Object.keys(this.grid.selection)},getSelectedRowCount:function(){return Object.keys(this.grid.selection).length},down:function(e,t,i){if(e)return this.grid.inherited(arguments);var n=document.getElementsByClassName("dgrid-row")[0];return this.grid.row(n)},moveFocusRight:function(e){var t=this.grid.row(e)?this.grid.row(e):this.grid._focusedNode;if(this.grid._expanded[t.id]){var i=this.grid.down(this.grid._focusedNode,1,!0);this.grid.focus(i,!1,e)}else this.grid.expand(t,!0),this.grid.focus(t)},moveFocusLeft:function(e){var t=this.grid.row(e)?this.grid.row(e):this.grid._focusedNode;if(this.grid._expanded[t.id])this.grid.expand(t,!1),this.grid.focus(t);else{var i=this.grid.row(t.data.parent);this.grid.focus(i,!1,e)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{queryFromStore:function(e){return this.grid.store.query(e)},setQueryFilterCriteria:function(e){this.grid.set("query",e)},getQueryFilterCriteria:function(){return this.grid.get("query")},addElementToStore:function(e){this.grid.store.put(e)},removeElementFromStore:function(e){this.grid.store.remove(e)},getStore:function(){return this.grid.store},clearStore:function(){var e=this.grid.store;e.query({}).forEach((function(t){e.remove(t.path)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(233)],o=i.dj.d(n,(function(e,t){return e([],{getSelectedFilePaths:function(){var e=Object.keys(this.grid.selection);return e=e.length>0?e:[]},getSelectedFileInfos:function(){var e=[],t=this.grid;return this.getSelectedFilePaths().forEach((function(i){e.push(t.row(i).data)})),e},setCurrentFolderInfo:function(e){this.grid.currentFolderInfo=e},getCurrentFolderInfo:function(){return this.grid.currentFolderInfo},getCurrentFolderPath:function(){return this.getCurrentFolderInfo()?t.pathFromFileInfo(this.getCurrentFolderInfo()):""}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(210),i(221),i(1603)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a={whiteSpaceMouseDown:".dgrid-content:mousedown",rowDoubleClick:".dgrid-row:dblclick",rowClick:".dgrid-row:click",rowSelected:"dgrid-select",rowDeSelected:"dgrid-deselect",rowSort:"dgrid-sort",headerFocusIn:".dgrid-header-row:focusin",headerFocusOut:".dgrid-header-row:focusout",rowFocusIn:".dgrid-row:focusin",rowFocusOut:".dgrid-row:focusout",contentFocusIn:".dgrid-content:focusin",keypress:"keypress",keydown:"keydown",editorShow:"dgrid-editor-show",editorHide:"dgrid-editor-hide",scrollerMouseDown:".dgrid-scroller:mousedown",scrollerMouseMove:".dgrid-scroller:mousemove",scrollerMouseUp:".dgrid-scroller:mouseup",columnReorder:"dgrid-columnreorder",columnResize:"dgrid-columnresize",columnStateChange:"dgrid-columnstatechange"},s={whiteSpaceMouseDown:"_handleWhiteSpaceMouseDown",rowDoubleClick:"_handleRowDoubleClick",rowSelected:"_handleGridSelectionChange",rowDeSelected:"_handleGridSelectionChange",rowSort:"_handleSort",headerFocusIn:"_handleGridHeaderFocus",headerFocusOut:"_handleGridHeaderBlur",rowFocusIn:"_handleGridRowFocus",rowFocusOut:"_handleGridRowBlur",contentFocusIn:"_handleGridContentFocus"};return e([],{bindNativeEventsFromFBRegistry:function(e){Object.keys(a).forEach((function(i){e.own(e.grid.on(a[i],t.hitch(e,(function(t){s.hasOwnProperty(i)&&e[s[i]](t),e.emit(i,t)}))))})),i.after(e.grid,"renderRow",(function(t,i){return e.emit("rowRender",t,i),t}))},_handleWhiteSpaceMouseDown:function(e){this.grid.row(e)||e.ctrlKey||e.shiftKey||o("mac")&&e.metaKey||this.grid.clearSelection()},_handleRowDoubleClick:function(e){if(!this.isExpandoElement(e.target)){var t=this.grid.row(e);t&&!t.data.isGroupHeader&&this.onDoubleClick(t.data)}},_handleGridSelectionChange:function(){this.onSelectionChange(this.grid.getSelectedFileInfos(),this.grid.getSelectedFilePaths())},_handleSort:function(e){e.preventDefault();var t=e.sort[0],i=r.getFBSortArray()[0],n=i.attribute===t.attribute&&!i.descending;this.updateCompareFunction(t.attribute,n)},_handleGridHeaderFocus:function(e){var t=e.target;n.add(t,"dgrid-header-focus"),this.removeFocusAndSelection()},_handleGridHeaderBlur:function(e){if(!this.grid.headerContextMenu.isMenuOpen()){var t=e.target;n.remove(t,"dgrid-header-focus"),this.onFocus();var i=this.grid._focusedNode;i&&i.classList.add("dgrid-focus")}},_handleGridRowFocus:function(e){this.onFocus();var t=this.grid._focusedNode;t&&t.classList.add("dgrid-focus")},_handleGridRowBlur:function(e){e.target.classList.contains("dgrid-selected")||this.removeFocusAndSelection()},_handleGridContentFocus:function(){if(this.onFocus(),!this.grid._focusedNode){var e=this.grid.domNode.getElementsByClassName("dgrid-row")[0];e&&(this.grid._focusedNode=e,e.classList.add("dgrid-focus"))}}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="fileChooser2">\n <div class = "fileBrowser" tabindex="-1" data-dojo-attach-point="fileBrowserNode"></div>\n <div class="bottom" data-dojo-attach-point="bottom">\n <div class="fileNameWithLabel" data-dojo-attach-point="fileNameWithLabelNode">\n <div class="fileNameLabel fileChooserLabels" data-dojo-attach-point="fileNameLabelNode">${localization.saveAsFileNameLabel}</div>\n <div class="fileName fileChooserFields" data-dojo-attach-point="fileNameNode"></div>\n </div>\n <div class="fileTypeWithLabel" data-dojo-attach-point="fileTypeWithLabelNode">\n <div class="inputLabel fileChooserLabels" data-dojo-attach-point="fileTypeLabelNode">${localization.saveAsFileDropDownLabel}</div>\n <div class="fileType fileChooserFields" data-dojo-attach-point="fileTypeNode"></div>\n </div>\n <div class="buttons" data-dojo-attach-point="buttons">\n <div class="okButton fileChooserButtons" data-dojo-attach-point="okButtonNode"></div>\n <div class="cancelButton fileChooserButtons" data-dojo-attach-point="cancelButtonNode"></div>\n </div>\n </div>\n</div>'},function(e,t,i){e.exports={blankFileNameError:"ファイル名を指定しなければなりません",cancel:"キャンセル",currentFolderIsReadOnly:"選択されたフォルダーは書き込み可能ではありません",fileMustExist:"ファイルは選択されたフォルダー内になければなりません",fileNameLengthError:"ファイル名は 128 文字より長くできません",fileOrFolderExistsError:"ファイルまたはフォルダーが既に存在します",invalidFileNameError:'次の文字はファイル名に使用できません: \\ / : * ? " < > |',invalidMFileNameError:"MATLAB 名は英字で始まり、英字、数字、およびアンダースコアのみを含んでいなければなりません",mFileNameLengthError:"MATLAB ファイル名は 63 文字未満でなければなりません",ok:"OK",publishedMySite:"(マイ サイト)",saveAsFileDropDownLabel:"タイプ",saveAsFileNameLabel:"名前を付けて保存",sharedWithMe:"(自分と)"}},function(e,t,i){e.exports={blankFileNameError:"파일 이름을 지정해야 함",cancel:"취소",currentFolderIsReadOnly:"선택한 폴더에 쓸 수 없음",fileMustExist:"선택한 폴더에 파일이 존재해야 함",fileNameLengthError:"파일 이름은 128자를 초과할 수 없음",fileOrFolderExistsError:"파일이나 폴더가 이미 존재함",invalidFileNameError:'다음 문자는 파일 이름에 사용할 수 없습니다. \\ / : * ? " < > |',invalidMFileNameError:"MATLAB 이름은 영문자로 시작해야 하며 영문자, 숫자, 밑줄만 포함할 수 있음",mFileNameLengthError:"MATLAB 파일 이름은 63자 미만이어야 함",ok:"확인",publishedMySite:"(내 사이트)",saveAsFileDropDownLabel:"유형",saveAsFileNameLabel:"다른 이름으로 저장",sharedWithMe:"(나와 공유)"}},function(e,t,i){e.exports={blankFileNameError:"您必须指定文件名",cancel:"取消",currentFolderIsReadOnly:"选定的文件夹不可写",fileMustExist:"选定的文件夹中必须存在该文件",fileNameLengthError:"文件名的长度不能超过 128 个字符",fileOrFolderExistsError:"文件或文件夹已存在",invalidFileNameError:'以下字符在文件名中无效: \\ / : * ? " < > |',invalidMFileNameError:"MATLAB 名称必须以字母开头,并且只能包含字母、数字和下划线",mFileNameLengthError:"MATLAB 文件名的长度不应少于 63 个字符",ok:"确定",publishedMySite:"(我的站点)",saveAsFileDropDownLabel:"类型",saveAsFileNameLabel:"另存为",sharedWithMe:"(与我)"}},function(e,t,i){e.exports={root:{blankFileNameError:"You must specify a file name",cancel:"Cancel",currentFolderIsReadOnly:"The selected folder is not writable",fileMustExist:"The file must exist in the selected folder",fileNameLengthError:"File name can't be longer than 128 characters",fileOrFolderExistsError:"File or folder already exists",invalidFileNameError:'These characters are invalid in a file name: \\ / : * ? " < > |',invalidMFileNameError:"MATLAB names must start with a letter and contain only letters, numbers and underscores",mFileNameLengthError:"MATLAB file name should be less than 63 characters",ok:"OK",publishedMySite:"(my site)",saveAsFileDropDownLabel:"Type",saveAsFileNameLabel:"Save as",sharedWithMe:"(with me)"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){const i=e([t],{}),n=new WeakMap;return class{constructor(){const e=new i;n.set(this,e),this.on=e.on.bind(e),this.emit=e.emit.bind(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1604),i(1605),i(1606),i(1607),i(1608),i.dj.c(e.i)],o=i.dj.d(n,(function(e,t,i,n,o){return{getRegistry:function(r){var a=new e;return a.addColumn(new t({id:"fcNameColumnID",fileIconProvider:r.fileIconProvider})),a.addColumn(new i({id:"fcSizeColumnID"})),a.addColumn(new n({id:"fcDMColumnID"})),a.addColumn(new o({id:"fcTypeColumnID"})),a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(224),i(306),i(225),i(206),i(214),i(1602),i(1003),i(33),i(430)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){function d(e,t,i,n){var o,r=this.grid.isRTL?"right":"left",a=".dgrid-expando-icon";return t&&(a+=".ui-icon.ui-icon-triangle-1-"+(i?"se":"e")),(o=c("div"+a+"[style=margin-"+r+": "+e*(this.indentWidth||9)+"px; float: "+r+"]")).innerHTML="",o}function u(e){var t=this,i=this.style.height;i&&(this.style.display="0px"===i?"none":"block"),e&&(c(this,".dgrid-tree-resetting"),setTimeout((function(){c(t,"!dgrid-tree-resetting")}))),this.style.height=""}function h(e){var h,p,f=e.renderCell||s.defaultRenderCell;return e||(e={}),e.shouldExpand=e.shouldExpand||function(e,t,i){return i},r.after(e,"init",(function(){var s=e.grid,f=".dgrid-content .dgrid-column-"+e.id,g=[];if(s.cleanEmptyObservers=!1,!s.store)throw new Error("dgrid tree column plugin requires a store to operate.");e.renderExpando||(e.renderExpando=d),g.push(s.on(e.expandOn||".dgrid-expando-icon:click,"+f+":dblclick,"+f+":keydown",(function(e){if(e.target.classList.contains("dgrid-expando-icon")){var t=s.row(e);(-1===e.target.className.indexOf("dgrid-cell-data")&&"id-icon-place-holder"!==e.target.id||-1!==e.target.className.indexOf("group"))&&(s.store.mayHaveChildren&&!s.store.mayHaveChildren(t.data)||"keydown"===e.type&&32!==e.keyCode||"dblclick"===e.type&&p&&p.count>1&&t.id===p.id&&e.target.className.indexOf("dgrid-expando-icon")>-1||s.expand(t),e.target.className.indexOf("dgrid-expando-icon")>-1&&(p&&p.id===s.row(e).id?p.count++:p={id:s.row(e).id,count:1}))}}))),a("touch")&&g.push(s.on(l.selector(f,l.dbltap),(function(){s.expand(this)}))),s._expanded||(s._expanded={}),g.push(r.after(s,"insertRow",(function(t){var i=this.row(t);return e.shouldExpand(i,h,this._expanded[i.id])&&this.expand(t,!0,!0),t}))),g.push(r.before(s,"removeRow",(function(e,t){var i=e.connected;i&&(n(">.dgrid-row",i).forEach((function(e){s.removeRow(e,!0)})),t||c(i,"!"))}))),e.collapseOnRefresh&&g.push(r.after(s,"cleanup",(function(){this._expanded={}}))),s._calcRowHeight=function(e){var t=e.connected;return e.offsetHeight+(t?t.offsetHeight:0)},s.expand=function(t,r,l){var d=t.element?t:s.row(t),h=a("transitionend"),p=new i,f=p.promise;if(p.resolve(),t=(t=d.element).className.indexOf("dgrid-expando-icon")>-1?t:n(".dgrid-expando-icon",t)[0],l=l||!1===e.enableTransitions,t&&t.mayHaveChildren&&(l||r!==!!this._expanded[d.id])){var g=void 0===r?!this._expanded[d.id]:r;c(t,".ui-icon-triangle-1-"+(g?"se":"e")+"!ui-icon-triangle-1-"+(g?"e":"se"));var m,_=d.element,v=_.connected,b={originalQuery:this.query};if(!v){v=b.container=_.connected=c(_,"+div.dgrid-tree-container");var y=function(e){return s.store.getChildren(d.data,e)};e.allowDuplicates&&(b.parentId=d.id),"level"in t&&(y.level=t.level),f=f.then((function(){if(s.renderQuery)return s.renderQuery(y,b);var e=c(v,"div"),t=s.renderArray(y(b),e,"level"in y?{queryLevel:y.level}:{});return i.when(t,(function(){c(e,"!")})),t})),h?o(v,h,u):u.call(v)}v.hidden=!g,m=v.style,!h||l?(m.display=g?"block":"none",m.height=""):(g?(m.display="block",v.scrollHeight,m.height="0px"):(c(v,".dgrid-tree-resetting"),m.height=v.scrollHeight+"px"),setTimeout((function(){c(v,"!dgrid-tree-resetting"),m.height=g?"auto":"0px"}))),g?this._expanded[d.id]=!0:delete this._expanded[d.id]}return f},r.after(e,"destroy",(function(){t.forEach(g,(function(e){e.remove()})),delete s.expand,delete s._calcRowHeight}))})),e.renderCell=function(t,i,n,o){var r,a,s=e.grid,l=Number(o&&o.queryLevel)+1,d=!s.store.mayHaveChildren||s.store.mayHaveChildren(t),u=o.parentId;l=h=isNaN(l)?0:l,(r=e.renderExpando(l,d,s._expanded[(u?u+"-":"")+s.store.getIdentity(t)],t)).level=l,r.mayHaveChildren=d,(a=f.call(e,t,i,n,o))&&a.celldata.nodeType?(a.icon&&c(r,a.icon),c(r,a.celldata),c(n,r)):n.insertBefore(r,n.firstChild)},e}return h.defaultRenderExpando=d,h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(508),i(233)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{constructor:function(e){e=e||{},this.id="groupBySize",this.text=n.size,this.itemType="check",this.grouped=!1,this.enabled=!0,this.description="Action to group file browser column by size",this.groups=[],this.groupFileInfos=[]},getGroup:function(e){return e.size<8192?{name:n.small,filter:function(e){return e.size<8192}}:e.size>8192&&e.size<262144?{name:n.medium,filter:function(e){return e.size>8192&&e.size<262144}}:{name:n.large,filter:function(e){return e.size>262144}}},getGroupFileInfo:function(e,t){var i={id:e.name,hasChildren:!0,isDirectory:!0,isGroupHeader:!0,group:e.name,type:"group",filter:e.filter};return i.name=e.name,i.path=e.name,i.location=e.name,i.parent=o.pathFromFileInfo(t),i},filter:function(e){var i;return this.groupFileInfos.forEach(t.hitch(this,(function(t){if(t.filter(e))return i=t}))),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{compareDate:function(e,t){return e<t?-1:e>t?1:0},separateFoldersFromFiles:function(e,t){var i=new Date(e.modifiedUtc),n=new Date(t.modifiedUtc);return e.isDirectory&&t.isDirectory?this.compareDate(i,n):e.isDirectory?-1:t.isDirectory?1:void 0}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(958),i(508),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i],{constructor:function(e){e=e||{},this.id="groupByDateModified",this.text=o.dateModified,this.itemType="check",this.grouped=!1,this.enabled=!0,this.description="Action to group file browser column by Date Modified",this.groups=[],this.groupFileInfos=[]},getGroup:function(e){if(this._today(e))return{name:"Today",filter:t.hitch(this,(function(e){return this._today(e)}))};if(this._inWeek(e)){var i=this._getDay(e);return i!==o.sunday?{name:i,filter:t.hitch(this,(function(e){return this._inWeek(e)}))}:{name:"Last Week",filter:t.hitch(this,(function(e){return this._lastWeek(e)}))}}return this._lastWeek(e)?{name:"Last Week",filter:t.hitch(this,(function(e){return this._lastWeek(e)}))}:this._twoWeeksAgo(e)?{name:"Two Weeks Ago",filter:t.hitch(this,(function(e){return this._twoWeeksAgo(e)}))}:this._threeWeeksAgo(e)?{name:"Three Weeks Ago",filter:t.hitch(this,(function(e){return this._threeWeeksAgo(e)}))}:{name:"Older",filter:t.hitch(this,(function(e){return!(this._today(e)||this._inWeek(e)||this._lastWeek(e)||this._twoWeeksAgo(e)||this._threeWeeksAgo(e))}))}},getGroupFileInfo:function(e,t){var i={id:e.name,hasChildren:!0,isDirectory:!0,isGroupHeader:!0,group:e.name,type:"group",filter:e.filter};return i.name=e.name,i.path=e.name,i.location=e.name,i.parent=r.pathFromFileInfo(t),i},filter:function(e){var t;for(var i in this.groupFileInfos)if(this.groupFileInfos[i].filter(e)&&this._inWeek(e)&&(t=this._getDayInWeek(e)),t)break;return t},_getDayInWeek:function(e){var t,i=this._getDay(e);for(var n in this.groupFileInfos)if(this.groupFileInfos[n].name===i&&(t=this.groupFileInfos[n]),t)break;return t},_today:function(e){var t=new Date(e.modifiedUtc);return 0===Math.abs(n.difference(new Date,t))},_inWeek:function(e){var t=new Date(e.modifiedUtc),i=Math.abs(n.difference(new Date,t));return i>0&&i<7&&t.getDay()<(new Date).getDay()},_lastWeek:function(e){var t=new Date(e.modifiedUtc),i=Math.abs(n.difference(new Date,t));return!this._inWeek(e)&&i<=7},_twoWeeksAgo:function(e){var t=new Date(e.modifiedUtc),i=Math.abs(n.difference(new Date,t));return i>7&&i<=14},_threeWeeksAgo:function(e){var t=new Date(e.modifiedUtc),i=Math.abs(n.difference(new Date,t));return i>14&&i<=21},_getDay:function(e){switch(new Date(e.modifiedUtc).getDay()){case 1:return o.monday;case 2:return o.tuesday;case 3:return o.wednesday;case 4:return o.thursday;case 5:return o.friday;case 6:return o.saturday;default:return o.sunday}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(236),i(508),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i],{constructor:function(e){e=e||{},this.id="groupByType",this.text=o.type,this.itemType="check",this.grouped=!1,this.enabled=!0,this.description="Action to group file browser column by type",this.groups=[],this.groupFileInfos=[]},getGroup:function(e){if(e.isDirectory)return{name:o.defaultFolderType,filter:function(e){return e.isDirectory}};var t=r.getFileNameExtension(e.name);return""!==t?{name:e.type,ext:t,filter:function(e,t,i){return!e.isDirectory&&!e.hasChildren&&t===i}}:{name:o.fileGroup,ext:"",filter:function(e,t,i){return!e.isDirectory&&!e.hasChildren&&""===i}}},getGroupFileInfo:function(e,t){var i={id:e.name,hasChildren:!0,isDirectory:!0,isGroupHeader:!0,group:e.name,type:"group",filter:e.filter,ext:e.ext};return i.name=e.name,i.path=e.name,i.location=e.name,i.parent=r.pathFromFileInfo(t),i},filter:function(e){for(var t=0;t<this.groupFileInfos.length;++t)if(this.groupFileInfos[t].group===this.getGroup(e).name)return this.groupFileInfos[t]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(212)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){this._actionsReq=new i},getActions:function(){return this._actionsReq.promise}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(443),i(419),i(598)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this.id="ADD_TO_PROJECT",this.label=t.AddToProject,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.fCommandName="addFiles",this.orderPriorityWithinSection=110,this.fProgressHandler=new i({title:t.ProjectBusyAction,description:t.AddToProjectAction,showCancel:!1}),this.fFileService=e.fileService,this.isApplicableTo=function(e){const t=this.fFileService.getFileInfosFromPaths(e).filter(e=>!e.inProject).map(e=>this.fFileService.getRelativePath(e.path));return this.setPaths(t),t.length>0}}})}),e,t),e.exports=o},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"プロジェクトにファイルを追加できません。",AddToProject:"プロジェクトに追加",AddToProjectAction:"ファイルをプロジェクトに追加中",AddToProjectPath:"プロジェクトのパスに追加",AddToProjectPathAction:"選択したフォルダーをプロジェクト パスに追加中",Copy:"コピー",CreateShortcut:"ショートカットの作成",Cut:"切り取り",EditShortcut:"ショートカットの編集",ErrorDialogTitle:"エラー",Open:"開く",Paste:"貼り付け",ProjectBusyAction:"アクションの実行中",RemoveAtShutdown:"シャットダウンから削除",RemoveAtStartup:"起動から削除",RemoveFilesAlertDialogTitle:"プロジェクトからファイルを削除できません。",RemoveFromProject:"プロジェクトから削除",RemoveFromProjectPath:"プロジェクトのパスから削除",RemoveFromProjectPathAction:"選択したフォルダーをプロジェクト パスから削除中",RemoveShortcut:"ショートカットの削除",RunAtShutdown:"シャットダウン時に実行",RunAtStartup:"起動時に実行",SelectedFolders:"選択フォルダー",SelectedFoldersRecursive:"選択フォルダーとサブフォルダー",SettingRemoveAtShutdown:"シャットダウン アクション時の実行をクリアします。",SettingRemoveAtStartup:"起動アクション時の実行をクリアします。",SettingRunAtShutdown:"プロジェクトのシャットダウン時に実行するファイルを更新します。",SettingRunAtStartup:"プロジェクトの起動時に実行するファイルを更新します。"}},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"프로젝트에 파일을 추가할 수 없음.",AddToProject:"프로젝트에 추가",AddToProjectAction:"프로젝트에 파일을 추가하는 중",AddToProjectPath:"프로젝트 경로에 추가",AddToProjectPathAction:"프로젝트 경로에 선택한 폴더를 추가하는 중",Copy:"복사",CreateShortcut:"바로 가기 만들기",Cut:"잘라내기",EditShortcut:"바로 가기 편집",ErrorDialogTitle:"오류",Open:"열기",Paste:"붙여넣기",ProjectBusyAction:"동작을 수행하는 중",RemoveAtShutdown:"종료에서 제거",RemoveAtStartup:"시작에서 제거",RemoveFilesAlertDialogTitle:"프로젝트에서 파일을 제거할 수 없음.",RemoveFromProject:"프로젝트에서 제거",RemoveFromProjectPath:"프로젝트 경로에서 제거",RemoveFromProjectPathAction:"프로젝트 경로에서 선택한 폴더를 제거하는 중",RemoveShortcut:"바로 가기 제거",RunAtShutdown:"종료 시 실행",RunAtStartup:"시작 시 실행",SelectedFolders:"선택한 폴더",SelectedFoldersRecursive:"선택한 폴더 및 하위 폴더",SettingRemoveAtShutdown:"종료 동작 시 실행을 지우는 중입니다.",SettingRemoveAtStartup:"시작 동작 시 실행을 지우는 중입니다.",SettingRunAtShutdown:"프로젝트 종료 시 실행할 파일을 업데이트하는 중입니다.",SettingRunAtStartup:"프로젝트 시작 시 실행할 파일을 업데이트하는 중입니다."}},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"无法将文件添加到工程。",AddToProject:"添加到工程",AddToProjectAction:"向工程添加文件",AddToProjectPath:"添加到工程路径",AddToProjectPathAction:"将所选文件夹添加到工程路径",Copy:"复制",CreateShortcut:"创建快捷方式",Cut:"剪切",EditShortcut:"编辑快捷方式",ErrorDialogTitle:"错误",Open:"打开",Paste:"粘贴",ProjectBusyAction:"执行操作",RemoveAtShutdown:"从关闭项中删除",RemoveAtStartup:"从启动项中删除",RemoveFilesAlertDialogTitle:"无法从工程中删除文件。",RemoveFromProject:"从工程中删除",RemoveFromProjectPath:"从工程路径中删除",RemoveFromProjectPathAction:"从工程路径中删除所选文件夹",RemoveShortcut:"删除快捷方式",RunAtShutdown:"关闭时运行",RunAtStartup:"启动时运行",SelectedFolders:"选定的文件夹",SelectedFoldersRecursive:"选定的文件夹和子文件夹",SettingRemoveAtShutdown:"清除关闭时运行操作。",SettingRemoveAtStartup:"清除启动时运行操作。",SettingRunAtShutdown:"将文件更新为在工程关闭时运行。",SettingRunAtStartup:"将文件更新为在工程启动时运行。"}},function(e,t,i){e.exports={root:{AddFilesAlertDialogTitle:"Unable to add file(s) to project.",AddToProject:"Add to Project",AddToProjectAction:"Adding files to the project",AddToProjectPath:"Add to Project Path",AddToProjectPathAction:"Adding selected folders to the project path",Copy:"Copy",CreateShortcut:"Create Shortcut",Cut:"Cut",EditShortcut:"Edit Shortcut",ErrorDialogTitle:"Error",Open:"Open",Paste:"Paste",ProjectBusyAction:"Performing Action",RemoveAtShutdown:"Remove from Shutdown",RemoveAtStartup:"Remove from Startup",RemoveFilesAlertDialogTitle:"Unable to remove file(s) from project.",RemoveFromProject:"Remove from Project",RemoveFromProjectPath:"Remove from Project Path",RemoveFromProjectPathAction:"Removing selected folders from the project path",RemoveShortcut:"Remove Shortcut",RunAtShutdown:"Run at Shutdown",RunAtStartup:"Run at Startup",SelectedFolders:"Selected Folders",SelectedFoldersRecursive:"Selected Folders and Subfolders",SettingRemoveAtShutdown:"Clearing run at shutdown action.",SettingRemoveAtStartup:"Clearing run at startup action.",SettingRunAtShutdown:"Updating file to run at project shutdown.",SettingRunAtStartup:"Updating file to run at project startup."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){e.exports={Cancel:"キャンセル",ErrorDialogTitle:"エラー",ProjectFileSelectionTitle:"ファイルの選択",ProjectFolderSelectionTitle:"フォルダーの選択",ProjectSelectionAllFiles:"すべてのファイル"}},function(e,t,i){e.exports={Cancel:"취소",ErrorDialogTitle:"오류",ProjectFileSelectionTitle:"파일 선택",ProjectFolderSelectionTitle:"폴더 선택",ProjectSelectionAllFiles:"모든 파일"}},function(e,t,i){e.exports={Cancel:"取消",ErrorDialogTitle:"错误",ProjectFileSelectionTitle:"选择文件",ProjectFolderSelectionTitle:"选择文件夹",ProjectSelectionAllFiles:"所有文件"}},function(e,t,i){e.exports={root:{Cancel:"Cancel",ErrorDialogTitle:"Error",ProjectFileSelectionTitle:"Select a File",ProjectFolderSelectionTitle:"Select a Folder",ProjectSelectionAllFiles:"All Files"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(296),i(443),i(7545),i(7546),i(241),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(t,{constructor:function(e){e=e||{},this.addToProjectPath=new n(e),this.addToProjectPathRecursive=new o(e),this.fFileService=e.fileService,this.fCommandExecutor=e.commandExecutor,this.fProjectPathCache=e.projectPathCache,this.id="ADD_TO_PROJECT_PATH_SECTION",this.label=i.AddToProjectPath,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!1,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.orderPriorityWithinSection=120,this.isApplicableTo=e=>{const t=this.fFileService.getFileInfosFromPaths(e).filter(e=>e.isDirectory).map(e=>this.fFileService.getRelativePath(e.path)).filter(e=>!this.fProjectPathCache.isMember(e));return this.addToProjectPath.setPaths(t),this.addToProjectPathRecursive.setPaths(t),t.length>0},this.allowSubMenu=!0,this.forceSubMenu=!0,this.childrenActions=[this.addToProjectPath,this.addToProjectPathRecursive]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(443),i(419),i(598)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this.id="ADD_TO_PROJECT_PATH",this.label=t.SelectedFolders,this.section={id:"ADD_TO_PROJECT_PATH_SECTION",name:"AddToProjectPathSection",allowSubMenu:!1,forceSubMenu:!1},this.fCommandName="addToProjectPath",this.fProgressHandler=new i({title:t.ProjectBusyAction,description:t.AddToProjectPathAction,showCancel:!1})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(443),i(419),i(598)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this.id="ADD_TO_PROJECT_PATH_RECURSIVE",this.label=t.SelectedFoldersRecursive,this.section={id:"ADD_TO_PROJECT_PATH_SECTION",name:"AddToProjectPathSection",allowSubMenu:!1,forceSubMenu:!1},this.fCommandName="addToProjectPathRecursive",this.fProgressHandler=new i({title:t.ProjectBusyAction,description:t.AddToProjectPathAction,showCancel:!1})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(443),i(7548),i(7549),i(241),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(t,{constructor:function(e){e=e||{},this.removeFromProjectPath=new n(e),this.removeFromProjectPathRecursive=new o(e),this.fFileService=e.fileService,this.fCommandExecutor=e.commandExecutor,this.fProjectPathCache=e.projectPathCache,this.id="REMOVE_FROM_PROJECT_PATH_SECTION",this.label=i.RemoveFromProjectPath,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!1,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.orderPriorityWithinSection=120,this.isApplicableTo=e=>{const t=this.fFileService.getFileInfosFromPaths(e).filter(e=>e.isDirectory).map(e=>this.fFileService.getRelativePath(e.path)).filter(e=>this.fProjectPathCache.isMember(e));return this.removeFromProjectPath.setPaths(t),this.removeFromProjectPathRecursive.setPaths(t),t.length>0},this.allowSubMenu=!0,this.forceSubMenu=!0,this.childrenActions=[this.removeFromProjectPath,this.removeFromProjectPathRecursive]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(443),i(419),i(598)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this.id="REMOVE_FROM_PROJECT_PATH",this.label=t.SelectedFolders,this.section={id:"REMOVE_FROM_PROJECT_PATH_SECTION",name:"RemoveFromProjectPathSection",allowSubMenu:!1,forceSubMenu:!1},this.fCommandName="removeFromProjectPath",this.fProgressHandler=new i({title:t.ProjectBusyAction,description:t.RemoveFromProjectPathAction,showCancel:!1})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(443),i(419),i(598)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this.id="REMOVE_FROM_PROJECT_PATH_RECURSIVE",this.label=t.SelectedFoldersRecursive,this.section={id:"REMOVE_FROM_PROJECT_PATH_SECTION",name:"RemoveFromProjectPathSection",allowSubMenu:!1,forceSubMenu:!1},this.fCommandName="removeFromProjectPathRecursive",this.fProgressHandler=new i({title:t.ProjectBusyAction,description:t.RemoveFromProjectPathAction,showCancel:!1})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(443),i(419),i(598)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this.id="REMOVE_FROM_PROJECT",this.label=t.RemoveFromProject,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.fCommandName="removeFiles",this.orderPriorityWithinSection=100,this.fProgressHandler=new i({title:t.ProjectBusyAction,description:t.RemoveFromProjectAction,showCancel:!1}),this.fFileService=e.fileService,this.isApplicableTo=function(e){const t=this.fFileService.getFileInfosFromPaths(e).filter(e=>e.inProject).map(e=>this.fFileService.getRelativePath(e.path));return this.setPaths(t),t.length>0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(443),i(419),i(598)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this.id="SET_STARTUP_FILE",this.label=t.RunAtStartup,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.fCommandName="setAsStartupFile",this.entryPointCache=e.entryPointCache,this.orderPriorityWithinSection=10,this.fProgressHandler=new i({title:t.ProjectBusyAction,description:t.SettingRunAtStartup,showCancel:!1}),this.fFileService=e.fileService,this.isApplicableTo=function(e){const t=this.fFileService.getFileInfosFromPaths(e).map(e=>this.fFileService.getRelativePath(e.path)).filter(e=>!this.entryPointCache.isStartup(e));return this.setPaths(t),t.length>0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(443),i(419),i(598)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this.id="CLEAR_STARTUP_FILE",this.label=t.RemoveAtStartup,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.fCommandName="clearStartupFile",this.entryPointCache=e.entryPointCache,this.orderPriorityWithinSection=10,this.fProgressHandler=new i({title:t.ProjectBusyAction,description:t.SettingRemoveAtStartup,showCancel:!1}),this.fFileService=e.fileService,this.isApplicableTo=function(e){const t=this.fFileService.getFileInfosFromPaths(e).map(e=>this.fFileService.getRelativePath(e.path)).filter(e=>this.entryPointCache.isStartup(e));return this.setPaths(t),t.length>0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(443),i(419),i(598)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this.id="SET_SHUTDOWN_FILE",this.label=t.RunAtShutdown,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.fCommandName="setAsShutdownFile",this.entryPointCache=e.entryPointCache,this.orderPriorityWithinSection=11,this.fProgressHandler=new i({title:t.ProjectBusyAction,description:t.SettingRunAtShutdown,showCancel:!1}),this.fFileService=e.fileService,this.isApplicableTo=function(e){const t=this.fFileService.getFileInfosFromPaths(e).map(e=>this.fFileService.getRelativePath(e.path)).filter(e=>!this.entryPointCache.isShutdown(e));return this.setPaths(t),t.length>0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(443),i(419),i(598)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this.id="CLEAR_SHUTDOWN_FILE",this.label=t.RemoveAtShutdown,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.fCommandName="clearShutdownFile",this.entryPointCache=e.entryPointCache,this.orderPriorityWithinSection=11,this.fProgressHandler=new i({title:t.ProjectBusyAction,description:t.SettingRemoveAtShutdown,showCancel:!1}),this.fFileService=e.fileService,this.isApplicableTo=function(e){const t=this.fFileService.getFileInfosFromPaths(e).map(e=>this.fFileService.getRelativePath(e.path)).filter(e=>this.entryPointCache.isShutdown(e));return this.setPaths(t),t.length>0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(443),i(233),i(2498)],o=i.dj.d(n,(function(e,t,i,n,o){let r;return e(t,{constructor:function(e){e=e||{},this.fFileService=e.fileService,this.fExecutor=e.cfbExecutor,this.id="CUT",this.label=i.Cut,this.supportsKeyBinding=!0,this.enabled=!0,this.needsCheckBox=!1,this.section={id:"DATA_TRANSFER",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.orderPriorityWithinSection=1,this.isApplicableTo=function(e){return r=[],r=this.fFileService.getFileInfosFromPaths(e),!o.isWhiteSpace(e)},this.callback=function(e){const t=r.map(e=>n.pathFromFileInfo(e));this.fExecutor.execute("cut-to-clipboard",t)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(443),i(233),i(2498)],o=i.dj.d(n,(function(e,t,i,n,o){let r;return e(t,{constructor:function(e){e=e||{},this.fFileService=e.fileService,this.fExecutor=e.cfbExecutor,this.id="COPY",this.label=i.Copy,this.supportsKeyBinding=!0,this.enabled=!0,this.needsCheckBox=!1,this.section={id:"DATA_TRANSFER",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.orderPriorityWithinSection=2,this.isApplicableTo=function(e){return r=[],r=this.fFileService.getFileInfosFromPaths(e),!o.isWhiteSpace(e)},this.callback=function(e){var t=r.map(e=>n.pathFromFileInfo(e));this.fExecutor.execute("copy-to-clipboard",t)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(443),i(233)],o=i.dj.d(n,(function(e,t,i,n){let o;return e(t,{constructor:function(e){e=e||{},this.fFileService=e.fileService,this.fExecutor=e.cfbExecutor,this.id="PASTE",this.label=i.Paste,this.supportsKeyBinding=!0,this.enabled=!0,this.needsCheckBox=!1,this.section={id:"DATA_TRANSFER",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.orderPriorityWithinSection=3,this.isApplicableTo=function(e){return!(e.length>1)&&(o=0===e.length?[this.fFileService.getCurrentFolderInfo()]:this.fFileService.getFileInfosFromPaths(e),!0)},this.callback=function(e){this.fExecutor.execute("paste-from-clipboard",[n.pathFromFileInfo(o[0])])}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(233),i(7559),i(7569),i(1218),i(751),i(1610)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){let l="",c=!1,d=!1,u=0;async function h(e){const t=await async function(){const e=performance.now();if(e-u>=5e3){const t=a.getInstance();await t.start();const i=await t.isSyncing();c=i.response;const n=await t.getAuthToken();d=""!==n.response;const o=await t.getMATLABDrivePath(!0,0);l=o.response,u=e}return d?c?l:"":l}();return!!(t&&e&&e.includes(t))}return e(t,{constructor:function(e={}){const t=r.getSharingManager(),a=new n({sharingManager:t,actionsResourceBundle:e.actionsResourceBundle}),l=new o({sharingManager:t,actionsResourceBundle:e.actionsResourceBundle});this.id="SHARE",this.isApplicableTo=async function(e){const t=this.fileService.getFileInfosFromPaths(e);if(1!==t.length||!t[0].isDirectory)return!1;const n=t[0];return!!await h(n.location)&&(!!n&&(l.setFileInfos(n),a.setFileInfos(n),i.isShareable(n)))},this.label=s.share,this.supportsKeyBinding=!1,this.section={id:"SHARE",name:"SHARE",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!0,this.forceSubMenu=!0,this.childrenActions=[a,l]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(1218),i(1610)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e={}){this._sharingManager=i.getSharingManager(),this.id="MANAGESHARE",this.label=n.inviteMembersAction,this.supportsKeyBinding=!1,this.enabled=!0,this.icon="manageShareIcon",this.section={id:"SHARE",name:"Share",allowSubMenu:!1,forceSubMenu:!1}},setFileInfos:function(e){this._fileInfo=e,this._sharingManager.sharingDataService.getSharingInfo(this._fileInfo).then(e=>{e.path===this._fileInfo.path&&(e.isShared?"OWNER"===e.accessType?this.label=n.manageShareAction:this.label=n.viewMembersAction:this.label=n.inviteMembersAction)})},callback:function(){this._sharingManager.openSharingDialog(this._fileInfo,"manage")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(751),i(7561),i(233),i(7562)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){let s,l,c,d,u,h,p=(async()=>{const e=n.getInstance();return await e.start(),p=await e.isPosixBackend(),p})();function f(e,t){let i=e.replace(t,"");return i.startsWith(t)&&(i=i.substr(t.length)),i}async function g(){const e=n.getInstance();return await e.start(),e.getMATLABDrivePath(!0,0)}let m=function(){return{initiatesharing:{widgetName:"initiatesharing",instances:[{frameId:"mldoIframe",interactive:!0,interactionReadyCallback:async function(e){const t=(await g()).response,i=f(d.path,t);c.getSharingInfo(d).then((async function(e){var n=f(e.path,t);if(i===n){let t;"manage"===u?t=e.isShared&&"OWNER"===e.accessType||!e.isShared?"manage":"view":(t="links",e.isShared||(e.accessType="OWNER"));const i=await async function(e,t,i,n){const o=(await g()).response;let a=f(e.path,o);(await p).response||(a=a.replace(/\\/g,"/"));const s=r.getParentPath(a),l=s+"";let c={isDirectory:!0,filePermissions:{canWrite:!("READ_ONLY"===i||"READ_ONLY_FROM_OPEN"===i)},type:"folder",separator:"/",name:r.nameFromPath(a),parent:s,location:l,path:a,modifiedUtc:e.modifiedUtc,accessType:i,isSharedFolder:n};return{path:c.path,folderInfo:c,type:t,currentUserEmail:""}}(d,t,e.accessType,e.isShared);s.setWidgetData("initiatesharing","mldoIframe",i)}}))},widgetResizedCallback:function(e,t,i){let n=document.getElementById("mldoIframe").parentElement;n.style.height=i+"px",n.style.width=t+"px",l.isShareUnderlayPresent()||l.createAndPlaceUnderLay(),l.shareDialogContainer.style.visibility="visible"},widgetClosedCallback:function(e){return i.emit(l.shareDialogContainer,"restorefocus",{bubbles:!0}),l.destroyRecursive(),!1},configOptions:{}}]}}};return e([],{constructor:function(e){c=e.sharingDataService,this.sharingDataService=c,this._startEmbeddedClient()},openSharingDialog:async function(e,i){const o=n.getInstance();await o.start();(await o.isSyncing()).response&&this._startEmbeddedClient(),d=e,u=i,l=new a,l.show(),window.addEventListener("resize",t.hitch(this,(function(e){l.domNode&&l.resize()})));const r=await o.getMLDOEmbedURL();l.setDialogSource(r.response)},_startEmbeddedClient:async function(){const e=n.getInstance();await e.start();const t=await e.isSyncing(),i=await e.getMLDOEmbedURL(),r=await e.getUserID(),a=await e.getAuthToken();if(s&&t.response){if(!r.response||h===r.response)return;s.stop(),h=r.response}s=new o({trustedOrigin:i.response,userId:t.response?r.response:void 0,authToken:t.response?a.response:void 0,sessionId:t.response?"":void 0,widgetInfo:m(),gdsClientType:t.response?"DESKTOP":"MOTW",clientString:t.response?"DESKTOP":"MOTW"}),s.start()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=function(e){if(!e||"object"!=typeof e)throw new TypeError("Invalid constructor argument");if(e.trustedOrigin=e.trustedOrigin||"*","string"!=typeof e.trustedOrigin)throw new TypeError("Invalid trustedOrigin value. Should be valid URL string. ");if(this.trustedOrigin=e.trustedOrigin,e.userId&&"string"!=typeof e.userId)throw new TypeError("Invalid userId value. Should be string value.");if(this.userId=e.userId||"",this.userId=this.userId.toLowerCase(),e.authToken&&"string"!=typeof e.authToken)throw new TypeError("Invalid authToken value. Should be string value.");if(this.authToken=e.authToken||"",e.sessionId&&"string"!=typeof e.sessionId)throw new TypeError("Invalid sessionId value. Should be string value.");if(this.sessionId=e.sessionId||"",e.gdsClientType&&"string"!=typeof e.gdsClientType)throw new TypeError("Invalid gdsClientType value. Should be string value.");if(this.gdsClientType=e.gdsClientType||"MLDO",e.clientString&&"string"!=typeof e.clientString)throw new TypeError("Invalid clientString value. Should be string value.");if(this.clientString=e.clientString||"embedded-mldo",!e.widgetInfo||"object"!=typeof e.widgetInfo)throw new TypeError("Invalid widgetInfo value. Should be an object.");this.widgetInfo=e.widgetInfo,this.init()};return e.prototype={getTrustedOrigin:function(){return this.trustedOrigin},getSessionId:function(){return this.sessionId},getUserId:function(){return this.userId},getAuthToken:function(){return this.authToken},getGdsClientType:function(){return this.gdsClientType},getClientString:function(){return this.clientString},getWidgetInfo:function(){return this.widgetInfo},getWidget:function(e,t){var i,n;if(!e||"string"!=typeof e)throw new TypeError("Invalid widgetName argument");if(!t||"object"!=typeof t||!t.frameId||!("configOptions"in t))throw new TypeError("Invalid instance argument");i=document.getElementById(t.frameId).contentWindow,n=JSON.stringify({widget:e,configOptions:t.configOptions,containerId:t.frameId,sessionId:this.getSessionId(),userId:this.getUserId(),authToken:this.getAuthToken(),gdsClientType:this.getGdsClientType(),clientString:this.getClientString()}),i.postMessage(n,this.getTrustedOrigin())},setWidgetData:function(e,t,i,n){var o,r;if(!e||"string"!=typeof e)throw new TypeError("Invalid widgetName argument");if(!t||"string"!=typeof t)throw new TypeError("Invalid frameId argument");if(!i||"object"!=typeof i)throw new TypeError("Invalid configOptions argument");o=document.getElementById(t).contentWindow,r=JSON.stringify({widget:e,configOptions:i,containerId:t,sessionId:this.getSessionId(),userId:this.getUserId(),authToken:this.getAuthToken(),gdsClientType:this.getGdsClientType(),clientString:this.getClientString()}),o.postMessage(r,this.getTrustedOrigin()),n&&n.length&&(r=JSON.stringify({stylesheetUrl:n}),o.postMessage(r,this.getTrustedOrigin()))},sendWidgetBlobData:function(e,t,i){var n,o,r,a={},s=this;if(!e||"string"!=typeof e)throw new TypeError("Invalid widgetName argument");if(!t||"string"!=typeof t)throw new TypeError("Invalid frameId argument");if(!(i&&"object"==typeof i&&"blob"in i&&"size"in i.blob&&"type"in i.blob))throw new TypeError("Invalid blobData argument");if((n=document.getElementById(t))&&(o=n.contentWindow),o){for(var l in i)"blob"!==l&&(a[l]=i[l]);var c=new FileReader;c.onerror=function(){c.abort()},c.onload=function(n){var l,c,d,u,h;a.dataArray=n.target.result,a.mimeType=i.blob.type,r={widget:e,blobData:a,containerId:t,sessionId:s.getSessionId(),userId:s.getUserId(),authToken:s.getAuthToken(),gdsClientType:s.getGdsClientType(),clientString:s.getClientString()};try{l=!(!window.chrome||"object"!=typeof window.chrome),c=window.navigator,d=c.vendor,u=void 0!==window.opr,h=c.userAgent.indexOf("Edge")>=0,(c.userAgent.match("CriOS")||l&&"Google Inc."===d&&!1===u&&!1===h)&&!function(){var e=!1;return new URL(s.getTrustedOrigin()).protocol===window.location.protocol&&(e=!0),e}()?o.postMessage(r,s.getTrustedOrigin()):o.postMessage(r,s.getTrustedOrigin(),[a.dataArray])}catch(e){o.postMessage(r,s.getTrustedOrigin())}},c.readAsArrayBuffer(i.blob)}},setStylesheet:function(e){if(e.frameId&&"string"==typeof e.frameId&&e.stylesheet&&e.stylesheet.length){var t=document.getElementById(e.frameId).contentWindow;if(t){var i=JSON.stringify({stylesheetUrl:e.stylesheet});t.postMessage(i,this.getTrustedOrigin())}}},processMessageLoop:function(e){var t,i,n,o,r,a,s=this,l="";if(e&&e.origin===this.getTrustedOrigin()&&e.data){try{a=JSON.parse(e.data)}catch(t){a=e.data}"name"in a&&"string"==typeof a.name&&3===(i=a.name.split(":")).length&&(r=i[0],o=i[1],n=i[2],o in this.getWidgetInfo()&&(t=this.getWidgetInfo()[o]).instances.forEach((function(e){switch(r){case"widgetinit":n&&n!==e.frameId||(e.stylesheet&&e.stylesheet.length&&s.setStylesheet(e),e.interactive?"interactionReadyCallback"in e&&"function"==typeof e.interactionReadyCallback&&e.interactionReadyCallback(o+":"+n):s.getWidget(t.widgetName,e));break;case"widgetclosed":!("widgetClosedCallback"in e)||"function"!=typeof e.widgetClosedCallback||n&&e.frameId!==n||e.widgetClosedCallback(n);break;case"widgetresized":!("widgetResizedCallback"in e)||"function"!=typeof e.widgetResizedCallback||n&&e.frameId!==n||"width"in a&&"height"in a&&e.widgetResizedCallback(n,a.width,a.height);break;case"widgetstaticready":!("widgetStaticReadyCallback"in e)||"function"!=typeof e.widgetStaticReadyCallback||n&&e.frameId!==n||e.widgetStaticReadyCallback(n);break;case"widgetcmdcomplete":!("widgetCommandCompleteCallback"in e)||"function"!=typeof e.widgetCommandCompleteCallback||n&&e.frameId!==n||("commandData"in a&&a.commandData&&("string"==typeof a.commandData?l=a.commandData:"object"==typeof a.commandData&&(l=JSON.stringify(a.commandData))),e.widgetCommandCompleteCallback(n,l));break;case"widgetcmdfailure":!("widgetCommandFailureCallback"in e)||"function"!=typeof e.widgetCommandFailureCallback||n&&e.frameId!==n||("commandData"in a&&"string"==typeof a.commandData&&(l=a.commandData),e.widgetCommandFailureCallback(n,l))}})))}},start:function(){window.addEventListener("message",this.boundFunction,!1)},stop:function(){window.removeEventListener("message",this.boundFunction,!1)},init:function(){this.boundFunction=this.processMessageLoop.bind(this)}},e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(216),i(386),i(7563),i(377)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([o,n],{templateString:r,constructor:function(e){},postCreate:function(){this.inherited(arguments),a.temporaryFocus(this.domNode)},resize:function(e){this.inherited(arguments),this._handleResize()},_handleResize:function(){if(this.shareDialogIFrameContainer){var e=this.shareDialogIFrameContainer.parentElement;e.style.top="calc(50vh - 200px)",e.style.left="calc(50vw - 300px)"}},startup:function(){this._handleResize()},destroyRecursive:function(){this.inherited(arguments),i.destroy(this._underlay),this._underlay=void 0},show:function(e){document.body.appendChild(this.shareDialogContainer)},createAndPlaceUnderLay:function(){this._underlay=document.createElement("div"),this._underlay.id="shareunderlay",this._underlay.style.width="100%",this._underlay.style.height="100%",this._underlay.style.position="absolute",this._underlay.style.top="0px",this._underlay.style.left="0px",this._underlay.style.backgroundColor="gray",this._underlay.style.opacity=.5,this._underlay.style.zIndex=949,document.body.appendChild(this._underlay)},isShareUnderlayPresent:function(){return void 0!==this._underlay},setDialogSource:function(e){this.shareDialogIFrameContainer.src=e.concat("/widget/initiatesharing/mldoIframe")}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="shareDialogContainer" data-dojo-attach-point="shareDialogContainer" style="visibility: hidden; z-index: 950; width: 600px; top: calc(50vh - 200px); left: calc(50vw - 300px); position: absolute">\n <iframe id = "mldoIframe" data-dojo-attach-point="shareDialogIFrameContainer" style="width: 600px; height: 100%"></iframe>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(233),i(219),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){const a={folderAccessType:{resolve:function(e,t){e._resolveAccessTypeInfo(t)}},isShared:{resolve:function(e,t){e._resolveIsShared(t)}},sharingInfo:{resolve:function(e,t){e._resolveSharingInfo(t)}}};return e([i],{constructor:function(e={}){this._pendingReq={}},start:function(){o.subscribe("/matlab/mldoShareService",this._responseHandler,this)},stop:function(){this._pendingReq=void 0},_responseHandler:function(e){if(a[e.data.identifier]){a[e.data.identifier].resolve(this,e.data)}},_resolveIsShared:function(e){const t=this._pendingReq[e.key],i={isShared:e.isShared,path:t.path};delete this._pendingReq[e.key],t.defer.resolve(i)},_resolveAccessTypeInfo:function(e){const t=this._pendingReq[e.key],i={accessType:e.accessType,path:t.path};delete this._pendingReq[e.key],t.defer.resolve(i)},_createPendingRequestObj:function(e){const t=function(e){let t=r.generateUuid();for(;void 0!==e[t];)t=r.generateUuid();return t}(this._pendingReq).toString();if(e.isDirectory)return{key:t}},_publishAndReturnPendingReq:function(e,i,r){const a=n.pathFromFileInfo(e),s=new t;return this._pendingReq[i.key]={defer:s,path:a,request:r},o.publish("/matlab/mldoShareService",{identifier:r,path:a,key:i.key}),s.promise},getFolderAccessType:function(e){const t=this._createPendingRequestObj(e);return this._pendingReq[t.key]?this._pendingReq[t.key].defer.promise:this._publishAndReturnPendingReq(e,t,"getFolderAccessType")},isShared:function(e){const t=this._createPendingRequestObj(e);return this._pendingReq[t.key]?this._pendingReq[t.key].defer.promise:this._publishAndReturnPendingReq(e,t,"getIsSharedInfo")},getSharingInfo:function(e){const t=this._createPendingRequestObj(e);return this._pendingReq[t.key]?this._pendingReq[t.key].defer.promise:this._publishAndReturnPendingReq(e,t,"getSharingInfo")},_resolveSharingInfo:function(e){const t=this._pendingReq[e.key],i={accessType:e.accessType,isShared:"true"===e.isShared,path:t.path};delete this._pendingReq[e.key],t.defer.resolve(i)}})}),e,t),e.exports=o},function(e,t,i){e.exports={access:"MATLAB Drive ファイルへのアクセス",createLinkAction:"リンクの作成",gotomldo:"MATLAB Drive Online に移動...",inviteMembersAction:"メンバーの招待",manageLinkAction:"リンクの管理",manageShareAction:"メンバーの管理",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive の最近のアクティビティ",share:"共有",sharing:"MATLAB Drive の共有",tripwireCloseButton:"閉じる",tripwireInstallButton:"インストール",tripwireInstallText:"MATLAB Drive を使用して、どこからでもファイルを保存、アクセス、および管理できます。\n\n[インストール] をクリックして、このコンピューターに MATLAB Drive と MATLAB Drive Connector を設定し、ファイルを同期してください。",tripwireInstallingText:"MATLAB Drive Connector は現在ダウンロード中です。\n\nMATLAB Drive フォルダーにアクセスするには、インストールの完了後に [MATLAB Drive] ボタンを再びクリックしてください。",tripwireLearnMoreButton:"詳細",tripwireNotConfiguredText:"MATLAB Drive フォルダーが見つかりません。\n\n既存のフォルダーを選択するか新規フォルダーを作成するには、MATLAB Drive Connector を開いてください。",tripwireOfflineText:"MATLAB Drive を使用して、どこからでもファイルを保存、アクセス、および管理できます。\n\nMATLAB Drive の設定に必要となる、インターネット接続がアクティブではありません。\n\n接続が回復したら、再試行してください。",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector は現在ソフトウェアの更新を適用中です。\n\nMATLAB Drive フォルダーにアクセスするには、インストールの完了後に [MATLAB Drive] ボタンを再びクリックしてください。",viewLinkAction:"リンクの表示",viewMembersAction:"メンバーの表示",viewrecentactivity:"最近のアクティビティを表示..."}},function(e,t,i){e.exports={access:"MATLAB Drive 파일에 액세스",createLinkAction:"링크 만들기",gotomldo:"MATLAB Drive Online으로 이동...",inviteMembersAction:"구성원 초대",manageLinkAction:"링크 관리",manageShareAction:"구성원 관리",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive 최근 활동",share:"공유",sharing:"MATLAB Drive 공유",tripwireCloseButton:"닫기",tripwireInstallButton:"설치",tripwireInstallText:"MATLAB Drive를 사용하여 어디에서나 파일을 저장하고 액세스하고 관리할 수 있습니다.\n\n이 컴퓨터에서 MATLAB Drive와 MATLAB Drive Connector를 설정하고 파일을 동기화하려면 [설치]를 클릭하십시오.",tripwireInstallingText:"MATLAB Drive Connector를 현재 다운로드하는 중입니다.\n\nMATLAB Drive 폴더에 액세스하려면 설치가 완료된 후에 [MATLAB Drive] 버튼을 다시 클릭하십시오.",tripwireLearnMoreButton:"자세히 알아보기",tripwireNotConfiguredText:"MATLAB Drive 폴더를 찾을 수 없습니다.\n\n기존 폴더를 선택하거나 새 폴더를 만들려면 MATLAB Drive Connector를 여십시오.",tripwireOfflineText:"MATLAB Drive를 사용하여 어디에서나 파일을 저장하고 액세스하고 관리할 수 있습니다.\n\nMATLAB Drive를 설정하려면 인터넷에 연결되어 있어야 합니다.\n\n연결이 복원되면 다시 시도하십시오.",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector가 현재 소프트웨어 업데이트를 적용하고 있습니다.\n\nMATLAB Drive 폴더에 액세스하려면 설치가 완료된 후에 [MATLAB Drive] 버튼을 다시 클릭하십시오.",viewLinkAction:"링크 보기",viewMembersAction:"구성원 보기",viewrecentactivity:"최근 활동 보기..."}},function(e,t,i){e.exports={access:"访问您的 MATLAB Drive 文件",createLinkAction:"创建链接",gotomldo:"转至 MATLAB Drive Online...",inviteMembersAction:"邀请成员",manageLinkAction:"管理链接",manageShareAction:"管理成员",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive 最近活动",share:"共享",sharing:"MATLAB Drive 共享",tripwireCloseButton:"关闭",tripwireInstallButton:"安装",tripwireInstallText:"使用 MATLAB Drive 从任何位置存储、访问和管理您的文件。\n\n点击“安装”在此计算机上设置 MATLAB Drive 和 MATLAB Drive Connector 并同步您的文件。",tripwireInstallingText:"MATLAB Drive Connector 正在下载。\n\n要访问 MATLAB Drive 文件夹,请在安装完成后再次点击 MATLAB Drive 按钮。",tripwireLearnMoreButton:"了解更多",tripwireNotConfiguredText:"找不到 MATLAB Drive 文件夹。\n\n要选择现有文件夹或创建新文件夹,请打开 MATLAB Drive Connector。",tripwireOfflineText:"使用 MATLAB Drive 从任何位置存储、访问和管理您的文件。\n\n没有有效的 Internet 连接,这是设置 MATLAB Drive 所必需的。\n\n请在恢复连接后重试。",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector 当前正在应用软件更新。\n\n要访问 MATLAB Drive 文件夹,请在安装完成后再次点击 MATLAB Drive 按钮。",viewLinkAction:"查看链接",viewMembersAction:"查看成员",viewrecentactivity:"查看最新活动..."}},function(e,t,i){e.exports={root:{access:"Access your MATLAB Drive files",createLinkAction:"Create Link",gotomldo:"Go to MATLAB Drive Online...",inviteMembersAction:"Invite Members",manageLinkAction:"Manage Link",manageShareAction:"Manage Members",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive Recent Activity",share:"Share",sharing:"MATLAB Drive Sharing",tripwireCloseButton:"Close",tripwireInstallButton:"Install",tripwireInstallText:"Store, access, and manage your files from anywhere using MATLAB Drive.\n\nClick Install to set up MATLAB Drive and MATLAB Drive Connector on this computer and sync your files.",tripwireInstallingText:"MATLAB Drive Connector is currently downloading.\n\nTo access your MATLAB Drive folder, click the MATLAB Drive button again after installation is completed.",tripwireLearnMoreButton:"Learn more",tripwireNotConfiguredText:"MATLAB Drive folder cannot be found.\n\nTo select an existing folder or create a new folder, open MATLAB Drive Connector.",tripwireOfflineText:"Store, access, and manage your files from anywhere using MATLAB Drive.\n\nThere is no active internet connection, which is required to set up MATLAB Drive.\n\nTry again when connectivity is restored.",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector is currently applying a software update.\n\nTo access your MATLAB Drive folder, click the MATLAB Drive button again after installation is completed.",viewLinkAction:"View Link",viewMembersAction:"View Members",viewrecentactivity:"View recent activity..."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(296),i(1218),i(1610)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e={}){this._sharingManager=i.getSharingManager(),this.id="MANAGELINK",this.label=n.createLinkAction,this.supportsKeyBinding=!1,this.enabled=!0,this.icon="manageLinkIcon",this.section={id:"SHARE",name:"Share",allowSubMenu:!1,forceSubMenu:!1}},setFileInfos:function(e){this._fileInfo=e,this._sharingManager.sharingDataService.getSharingInfo(this._fileInfo).then(e=>{e.path===this._fileInfo.path&&(e.isShared?"OWNER"===e.accessType?this.label=n.manageLinkAction:this.label=n.viewLinkAction:this.label=n.createLinkAction)})},callback:function(){this._sharingManager.openSharingDialog(this._fileInfo,"links")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(212),i.dj.c(e.i),i(229),i(7571),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a={};return e([],{constructor:function(e){this._previewServerRequest=new r},getTitle:function(){},_getTitleImpl:function(e){},getUpperRightMetadata:function(){},_getUpperRightMetadataImpl:function(e){},getPrimaryMetadata:function(){},_getPrimaryMetadataImpl:function(e){},getSecondaryMetadata:function(){},_getSecondaryMetadataImpl:function(e){},getRichContent:function(){return{getRichContentFcn:this._getRichContentImpl.bind(this),overridePriority:3}},_getRichContentImpl:function(e){return{richContent:this._getImageImpl(e),isWidget:!1}},_getWidgetImpl:function(e){},_getImageImpl:function(e){var t=e.path+"?v="+e.modifiedUtc;if(a[t])return this._createImageElementFromUrl(a[t]);var i=o.generateUuid()+(new Date).getTime(),n=this._previewServerRequest.createRequest("matlab.ui.internal.URLUtils.getURLToUserFile",[e.path],1),r="getPreviewUrlForEnvironmentInfo: "+i;return this._previewServerRequest.sendRequest(n,r).then(function(i){var n=this._previewServerRequest.getWorkerRoutingHost()+i+"?v="+e.modifiedUtc;return a[t]=n,this._createImageElementFromUrl(n)}.bind(this))},_createImageElementFromUrl:function(e){var t=document.createElement("img");return t.src=e,t},getRichContentLabel:function(){},_getRichContentLabelImpl:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(232)],o=i.dj.d(n,(function(e,t,i,n){return e([],{createRequest:function(e,t,i,n){return{function:e,arguments:t||[],nargout:i||0,priority:n||1}},sendRequest:function(e,o){n.registerResponseHandler("FEvalResponse:"+o,this._handleFEvalResponse,this),n.registerFaultHandler("FEvalResponse:"+o,this._handleFEvalFault,this);var r=new i;return r.then((function(){n.deregisterResponseHandler("FEvalResponse:"+o),n.deregisterFaultHandler("FEvalResponse:"+o)})),n.sendMessage({FEval:t.mixin({function:"",arguments:[],nargout:0,dequeMode:"ppe",priority:1},e)},r,o),r.promise},_handleFEvalFault:function(e,t){t.reject(e[0].messageFaults[0].message)},_handleFEvalResponse:function(e,t){1===e.length?!0===e[0].isError?(t.reject(e[0].messageFaults[0].message),console.error(e[0].messageFaults[0].message)):t.resolve(e[0].results):t.reject("Recieved unexpected response")},getWorkerRoutingHost:function(){return n.getWorkerRoutingHost().replace(/\/$/,"")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(291),i(318)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){this._mvm=t.getMVM(),this._mlappFileInfoCache={}},getRichContent:function(){return{getRichContentFcn:this._getRichContentImpl.bind(this),overridePriority:1}},getRichContentLabel:function(){return{getRichContentLabelFcn:this._getRichContentLabelImpl.bind(this),overridePriority:1}},_getRichContentLabelImpl:function(e){return[this._getMlappFileInfo(e).then((function(e){return e.Summary?e.Summary:""}),(function(){return""}))]},_getRichContentImpl:function(e){return{richContent:this._getImageImpl(e),isWidget:!1}},_getImageImpl:function(e){return this._getMlappFileInfo(e).then(function(e){return e.ScreenshotURI?this._createImageElementFromUrl(e.ScreenshotURI):""}.bind(this),(function(){return""}))},_createImageElementFromUrl:function(e){var t=document.createElement("img");return t.src=e,t},_getMlappFileInfo:function(e){return new Promise(function(t,i){var n=e.path+"?v="+e.modifiedUtc;this._mlappFileInfoCache[n]?t(this._mlappFileInfoCache[n]):this._mvm.feval("appdesigner.internal.matlabintegration.cfb.getMLAPPFileInfo",0,[e.path]).then(function(e){this._mlappFileInfoCache[n]=e[0],t(e[0])}.bind(this),(function(t){var n="call getMLAPPFileInfo failed for "+e.path+", "+t.getMsg()+".";console.error(n),i(n)}))}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(7574),i(7579),i(751),i(1611),i(1219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){let s="",l=!1,c=0;return e(t,{constructor:function(e={}){this.id="MATLABDriveAction",this.label=r.matlabdrive,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!1,this.orderPriorityWithinSection=1,this.isApplicableTo=async function(e){const t=await a.getPathDataService().getCurrentFolder();let i="";t&&(i=t.location+t.name);const n=await async function(){const e=performance.now();if(e-c>=5e3){const t=o.getInstance();await t.start();const i=await t.isSyncing();l=i.response;const n=await t.getMATLABDrivePath(!0,0);s=n.response,c=e}return l?s:""}();if(!n)return!1;const r=this.fileService.getFileInfosFromPaths(e);return!(1!==r.length||!r[0].isDirectory||r[0].path!==n)||!(!i||!i.includes(n))},this.section={id:"SHARE",name:"SHARE",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!0,this.childrenActions=[new i,new n]},callback:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(291),i(751),i(1611)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e={}){this._mvm=i.getMVM(),this._enabled=!0,this.id="RecentActivityAction",this.label=o.viewrecentactivity,this.supportsKeyBinding=!1,Object.defineProperty(this,"enabled",{enumerable:!0,configurable:!0,get:()=>this._enabled}),this.needsCheckBox=!1},callback:async function(){const e=n.getInstance();await e.start();const t=await e.getSelfSignedCert(),i=await e.getRecentActivityBaseUrl();this._mvm.feval("matlab.internal.storage.openRecentActivityWindow",0,[i.response,t.response])}})}),e,t),e.exports=o},function(e,t,i){e.exports={access:"MATLAB Drive ファイルへのアクセス",createLinkAction:"リンクの作成",gotomldo:"MATLAB Drive Online に移動...",inviteMembersAction:"メンバーの招待",manageLinkAction:"リンクの管理",manageShareAction:"メンバーの管理",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive の最近のアクティビティ",share:"共有",sharing:"MATLAB Drive の共有",tripwireCloseButton:"閉じる",tripwireInstallButton:"インストール",tripwireInstallText:"MATLAB Drive を使用して、どこからでもファイルを保存、アクセス、および管理できます。\n\n[インストール] をクリックして、このコンピューターに MATLAB Drive と MATLAB Drive Connector を設定し、ファイルを同期してください。",tripwireInstallingText:"MATLAB Drive Connector は現在ダウンロード中です。\n\nMATLAB Drive フォルダーにアクセスするには、インストールの完了後に [MATLAB Drive] ボタンを再びクリックしてください。",tripwireLearnMoreButton:"詳細",tripwireNotConfiguredText:"MATLAB Drive フォルダーが見つかりません。\n\n既存のフォルダーを選択するか新規フォルダーを作成するには、MATLAB Drive Connector を開いてください。",tripwireOfflineText:"MATLAB Drive を使用して、どこからでもファイルを保存、アクセス、および管理できます。\n\nMATLAB Drive の設定に必要となる、インターネット接続がアクティブではありません。\n\n接続が回復したら、再試行してください。",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector は現在ソフトウェアの更新を適用中です。\n\nMATLAB Drive フォルダーにアクセスするには、インストールの完了後に [MATLAB Drive] ボタンを再びクリックしてください。",viewLinkAction:"リンクの表示",viewMembersAction:"メンバーの表示",viewrecentactivity:"最近のアクティビティを表示..."}},function(e,t,i){e.exports={access:"MATLAB Drive 파일에 액세스",createLinkAction:"링크 만들기",gotomldo:"MATLAB Drive Online으로 이동...",inviteMembersAction:"구성원 초대",manageLinkAction:"링크 관리",manageShareAction:"구성원 관리",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive 최근 활동",share:"공유",sharing:"MATLAB Drive 공유",tripwireCloseButton:"닫기",tripwireInstallButton:"설치",tripwireInstallText:"MATLAB Drive를 사용하여 어디에서나 파일을 저장하고 액세스하고 관리할 수 있습니다.\n\n이 컴퓨터에서 MATLAB Drive와 MATLAB Drive Connector를 설정하고 파일을 동기화하려면 [설치]를 클릭하십시오.",tripwireInstallingText:"MATLAB Drive Connector를 현재 다운로드하는 중입니다.\n\nMATLAB Drive 폴더에 액세스하려면 설치가 완료된 후에 [MATLAB Drive] 버튼을 다시 클릭하십시오.",tripwireLearnMoreButton:"자세히 알아보기",tripwireNotConfiguredText:"MATLAB Drive 폴더를 찾을 수 없습니다.\n\n기존 폴더를 선택하거나 새 폴더를 만들려면 MATLAB Drive Connector를 여십시오.",tripwireOfflineText:"MATLAB Drive를 사용하여 어디에서나 파일을 저장하고 액세스하고 관리할 수 있습니다.\n\nMATLAB Drive를 설정하려면 인터넷에 연결되어 있어야 합니다.\n\n연결이 복원되면 다시 시도하십시오.",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector가 현재 소프트웨어 업데이트를 적용하고 있습니다.\n\nMATLAB Drive 폴더에 액세스하려면 설치가 완료된 후에 [MATLAB Drive] 버튼을 다시 클릭하십시오.",viewLinkAction:"링크 보기",viewMembersAction:"구성원 보기",viewrecentactivity:"최근 활동 보기..."}},function(e,t,i){e.exports={access:"访问您的 MATLAB Drive 文件",createLinkAction:"创建链接",gotomldo:"转至 MATLAB Drive Online...",inviteMembersAction:"邀请成员",manageLinkAction:"管理链接",manageShareAction:"管理成员",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive 最近活动",share:"共享",sharing:"MATLAB Drive 共享",tripwireCloseButton:"关闭",tripwireInstallButton:"安装",tripwireInstallText:"使用 MATLAB Drive 从任何位置存储、访问和管理您的文件。\n\n点击“安装”在此计算机上设置 MATLAB Drive 和 MATLAB Drive Connector 并同步您的文件。",tripwireInstallingText:"MATLAB Drive Connector 正在下载。\n\n要访问 MATLAB Drive 文件夹,请在安装完成后再次点击 MATLAB Drive 按钮。",tripwireLearnMoreButton:"了解更多",tripwireNotConfiguredText:"找不到 MATLAB Drive 文件夹。\n\n要选择现有文件夹或创建新文件夹,请打开 MATLAB Drive Connector。",tripwireOfflineText:"使用 MATLAB Drive 从任何位置存储、访问和管理您的文件。\n\n没有有效的 Internet 连接,这是设置 MATLAB Drive 所必需的。\n\n请在恢复连接后重试。",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector 当前正在应用软件更新。\n\n要访问 MATLAB Drive 文件夹,请在安装完成后再次点击 MATLAB Drive 按钮。",viewLinkAction:"查看链接",viewMembersAction:"查看成员",viewrecentactivity:"查看最新活动..."}},function(e,t,i){e.exports={root:{access:"Access your MATLAB Drive files",createLinkAction:"Create Link",gotomldo:"Go to MATLAB Drive Online...",inviteMembersAction:"Invite Members",manageLinkAction:"Manage Link",manageShareAction:"Manage Members",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive Recent Activity",share:"Share",sharing:"MATLAB Drive Sharing",tripwireCloseButton:"Close",tripwireInstallButton:"Install",tripwireInstallText:"Store, access, and manage your files from anywhere using MATLAB Drive.\n\nClick Install to set up MATLAB Drive and MATLAB Drive Connector on this computer and sync your files.",tripwireInstallingText:"MATLAB Drive Connector is currently downloading.\n\nTo access your MATLAB Drive folder, click the MATLAB Drive button again after installation is completed.",tripwireLearnMoreButton:"Learn more",tripwireNotConfiguredText:"MATLAB Drive folder cannot be found.\n\nTo select an existing folder or create a new folder, open MATLAB Drive Connector.",tripwireOfflineText:"Store, access, and manage your files from anywhere using MATLAB Drive.\n\nThere is no active internet connection, which is required to set up MATLAB Drive.\n\nTry again when connectivity is restored.",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector is currently applying a software update.\n\nTo access your MATLAB Drive folder, click the MATLAB Drive button again after installation is completed.",viewLinkAction:"View Link",viewMembersAction:"View Members",viewrecentactivity:"View recent activity..."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(296),i(291),i(751),i(1611)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{constructor:function(e={}){this._enabled=!0,this.id="ViewMLDOAction",this.label=o.gotomldo,this.supportsKeyBinding=!1,Object.defineProperty(this,"enabled",{enumerable:!0,configurable:!0,get:()=>this._enabled}),this.needsCheckBox=!1},callback:async function(){const e=n.getInstance();await e.start(),e.viewMLDO()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(244),i(410),i(222),i(233),i(209),i(291),i(297),i(617),i(1220),i(418),i(486),i(219),i(232),i(229),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){var v="/matlab/pathDataService",b={friendlyNameLocation:{},icon:"data:image/gif;base64,R0lGODlhEAAQAPUAAAAAAJlnAZpoApxqBJ5sBqBuCKNxC6VzDah2EKt5E658FrB+GLOBG7SBHLWCHbeEH7iFILqHIryJJL2KJb+MJ8CNKMKPKsWSLceUL8mWMcuYM8yZNNOgO9ypROazTu+8V/jFYP/MZ//Ub//ge//mgf/rhf/0jv/3kf//mf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAAALAAAAAAQABAARQidAAEIHEiwIAALITSgOMGwIcMPKAgA0HDChEWLKTJmVEDQAYMFChIgOGCgAIEBAgIM3KAxhQWDAzGMuNCyJokUBgBMCEEBxYifQH92QCEAplGCGzRkwHAUAEsUUFGkmBDhgccFAzOUIHGhq9cKEiA0YMAAwAURG6KqhQoCRQEAFUJcQFGirt26HlAMABAhBAQUIgILDswBhcqmiBEHBAA7",hasChildren:!0};return p.deprecated({deprecated:{module:"PathDataService",method:"getCurrentFolder"},replacement:{module:"PathDataService",method:"getCwd"},additionalInformation:"method will be removed in 21b"}),p.deprecated({deprecated:{module:"PathDataService",method:"getCurrentFolderPath"},replacement:{module:"PathDataService",method:"getCwd"},additionalInformation:"method will be removed in 21b"}),p.deprecated({deprecated:{module:"PathDataService",method:"setMATLABCWD"},replacement:{module:"PathDataService",method:"setCwd"},additionalInformation:"method will be removed in 21b"}),e([r],{constructor:function(e){e=e||{},this.pathCache=new Set,this.arrayOfPathEntriesFromServer=[],this._mvmCache=l.getMVM(),this._readyToResolveMatlabBasedAccessibleRootsCallbacks=new i,this._javaAccessibleRootsRequestResolved=new i,this._cdAnywhereFlagRequestResolved=new i,this._javaAccessibleRoots=void 0,this._cachedFileSystemRoots=void 0,this._cachedAccessibleRoots=void 0,this._cdAnywhereFlag=void 0,this._cwdMetadata={deferred:new i,correspondingPath:void 0},this._orderedCwdChangedPromiseQueue=u.createOrderedQueue(),this._listFolderService=h.getListFolderService(),this.currentWorkingFolder=void 0,this._cwdData=void 0,this.startupFolder=void 0,this.settingsService=e.settingsService||_,this._matlabCallbacksCachedValues={}},start:function(){let{_startedDeferred:e}=this;return e||(this._startedDeferred=e=new i,f.subscribe(v,this._responseHandler,this),f.publish(v,{request:"startServerSide"}),this._listPathEntries(),this._getPwdFromMatlab().then(async function(e){this._readyToResolveMatlabBasedAccessibleRootsCallbacks.resolve(e),await this.getAccessibleRoots(),this.emit(this.events.READY_TO_INTERACT,e)}.bind(this)),this._mvmCache.getState().subscribe("cwd",function(e){this.requestCdAnywhereFlagFromJava();var t={cwd:e.cwd,fileInfo:a.folderInfoFromPath(e.cwd)};this._cwdData=t,this._updateLegacyStateAndNotifyCwdChanged(t)}.bind(this)),this.getCwd().then(function(t){this.requestCdAnywhereFlagFromJava(),this._logTimepoint("loginflow.cwdReceived"),this._updateLegacyStateAndNotifyCwdChanged(t),e.resolve()}.bind(this))),e.promise},setMotwUDCLogging:function(e){this._motwUDCLogging=e},_logTimepoint:function(e){this._motwUDCLogging&&this._motwUDCLogging.addData(e)},reset:function(){f.unsubscribe(this._responseHandler),this.currentWorkingFolder=void 0,this.startupFolder=void 0,this.pathCache=new Set,this.arrayOfPathEntriesFromServer=[]},stop:function(){this.reset()},setCwd:async function(e){try{await this._cdAnywhereFlagRequestResolved;var t=this.getAccessibleRootsCachedData(),i=this.getCdAnywhereFlag(),n=this.isAccessiblePath(t,e);if(!i&&!(!!i||n))throw new Error("setCwd failed because path is not accessible");await this._mvmCache.feval("cd",0,[e],new c({dequeueMode:d.DEQUEUE_AT_PPE}))}catch(e){throw e._id&&e._msg?this.emit(this.events.CWD_FAULT,{data:e._id+"; "+e._msg}):s.error("setCwd failed with error: ",e),e}},getCwd:async function(){return this._cwdData||(this._cwdData=await new Promise(e=>{this._mvmCache.getState().getCWD().then((function(t){var i;i=t?{cwd:t,fileInfo:a.folderInfoFromPath(t)}:"",e(i)}))})),this._cwdData},_createRequestForLocationMetadata:function(e){var t={deferred:new i,correspondingPath:e};return f.publish(v,{request:"getMetadata",location:e}),t},_updateMatlabPathCache:function(e){this.pathCache=new Set(e),this.emit(this.events.MATLAB_PATH_CHANGED,this.pathCache)},_listPathEntries:function(){f.publish(v,{request:"listPathEntries"})},getAccessibleRoots:async function(){var e=this._readyToResolveMatlabBasedAccessibleRootsCallbacks.isResolved(),t=this._getFileSystemRoots(),i=this._getDisplayedRoots(e),n=this._getAccessibleRootsFromJava(),o=await Promise.all([t,i,n]),r={data:{directories:this._javaAccessibleRoots.data.directories.concat(o[1]).concat(o[0]).filter((function(e){const t=e.fileInfo.path||a.pathFromFileInfo(e.fileInfo);return!this.has(t)&&this.add(t)}),new Set),parentPath:"/"}};return this._cachedAccessibleRoots=r,this.emit("accessibleRoots",r),r},getCwdMetaData:async function(e){var t,i,n=this._cachedAccessibleRoots||await this.getAccessibleRoots();if(e)i=e;else{var o=await this.getCwd();i=o.cwd}(t=n.data&&n.data.directories?n.data.directories.reduce(function(e,t){return t.fileInfo.path=t.fileInfo.path||t.fileInfo.location+t.fileInfo.name,e&&e.path?i.startsWith(t.fileInfo.path)?t.fileInfo.path.length<e.path.length?e:this._generateCwdMetadataFromRoot(t):e:i.startsWith(t.fileInfo.path)?this._generateCwdMetadataFromRoot(t):void 0}.bind(this),void 0):b)||(t=b);var r=await this._listFolderService.getChildren(i,!1);return t.hasChildren=r.folder.hasChildren,t.hasChildFolders=r.folderContents.some(e=>e.isDirectory),t},_generateCwdMetadataFromRoot:function(e){var t=e.metaData.displayName||e.fileInfo.name;return{friendlyNameLocation:e.metaData.friendlyNameLocation,icon:e.metaData.icon,path:e.fileInfo.path,displayName:t}},_getDisplayedRoots:async function(e){var t=["matlab","desktop","displayedroots"],i=(await this.settingsService.get("matlab.desktop.displayedroots")).SettingObject.ChildrenGroups;return(await Promise.all(i.map(async i=>{var n={},o=t.concat([i]),r=(await this.settingsService.get("matlab.desktop.displayedroots."+i)).SettingObject.ChildrenSettings;return await Promise.all(r.map(async e=>{var t=await this.settingsService.getSetting(o,e);n[e]=t.value})),this._generateDisplayedRootFromSetting(n,e)}))).filter(e=>void 0!==e).sort((e,t)=>e.metaData.displayName.localeCompare(t.metaData.displayName))},_generateDisplayedRootFromSetting:async function(e,t){if(this._isValidDisplayedRootSettingsGroup(e)){var i,n={};if(n.metaData={},e.IsEnabled?i=e.IsEnabled:e.IsEnabledFcn&&void 0!==this._matlabCallbacksCachedValues[e.IsEnabledFcn]?i=this._matlabCallbacksCachedValues[e.IsEnabledFcn]:e.IsEnabledFcn&&t?(this._getDisplayedRootEnabledStateFromMatlab(e.IsEnabledFcn).then(async i=>{this._matlabCallbacksCachedValues[e.IsEnabledFcn]=i,this._matlabCallbacksCachedValues[e.GetPathFcn]=await this._getDisplayedRootPathFromMatlab(e.GetPathFcn,t),this._matlabCallbacksCachedValues[e.Icon]=await this._getFolderIconUrlFromMatlab(e.Icon),await this.getAccessibleRoots(),this._updateLegacyStateAndNotifyCwdChangedCallback(this._temporaryCachedCwdData)}),i=!1):i=!1,i){var o={};return n.metaData.isEnabled=i,n.metaData.path=e.Path?e.Path:this._matlabCallbacksCachedValues[e.GetPathFcn],e.Icon&&this._matlabCallbacksCachedValues[e.Icon]?n.metaData.icon=this._matlabCallbacksCachedValues[e.Icon]:(e.Icon&&!this._matlabCallbacksCachedValues[e.Icon]&&this._getFolderIconUrlFromMatlab(e.Icon).then(async t=>{this._matlabCallbacksCachedValues[e.Icon]=t,await this.getAccessibleRoots(),this._updateLegacyStateAndNotifyCwdChangedCallback(this._temporaryCachedCwdData)}),n.metaData.icon=b.icon),n.fileInfo=a.folderInfoFromPath(n.metaData.path),n.metaData.displayName=e.DisplayName?e.DisplayName:n.fileInfo.name,o[n.metaData.displayName]=n.metaData.path,n.metaData.friendlyNameLocation=o,n.metaData.path?n:void 0}}else s.error("invalid DisplayedRoot SettingsGroup: "+JSON.stringify(e))},_isValidDisplayedRootSettingsGroup:function(e){return e.hasOwnProperty("Path")||e.hasOwnProperty("GetPathFcn")},_getPwdFromMatlab:async function(){try{return(await this._mvmCache.feval("pwd",1,[],new c({dequeueMode:d.DEQUEUE_AT_PPE})))[0]}catch(e){return void s.error("Exception thrown by pwd")}},_getDisplayedRootEnabledStateFromMatlab:async function(e){try{return(await this._mvmCache.feval(e,1,[],new c({dequeueMode:d.DEQUEUE_AT_PPE})))[0]}catch(t){return s.error("Exception thrown by DisplayedRoot GetPathFcn: "+e),!1}},_getDisplayedRootPathFromMatlab:async function(e,t){if(t)try{return(await this._mvmCache.feval(e,1,[],new c({dequeueMode:d.DEQUEUE_AT_PPE})))[0].mwdata[0]}catch(t){return void s.error("Exception thrown by DisplayedRoot GetPathFcn: "+e)}},_getFolderIconUrlFromMatlab:async function(e){try{let t=await this._mvmCache.feval("matlab.ui.internal.URLUtils.getURLToUserFile",1,[e],new c({dequeueMode:d.DEQUEUE_AT_PPE}));return g.getWorkerRoutingHost().slice(0,-1)+t}catch(t){return s.error("invalid DisplayedRoot Icon: "+e),b.icon}},_getAccessibleRootsFromJava:function(){return this._javaAccessibleRootsRequestResolved.isResolved()&&(this._javaAccessibleRootsRequestResolved=new i),f.publish(v,{request:"getAccessibleRoots"}),this._javaAccessibleRootsRequestResolved},_getFileSystemRoots:async function(){return this._cachedFileSystemRoots?this._cachedFileSystemRoots:this.refreshFileSystemAccessibleRoots()},refreshFileSystemAccessibleRoots:async function(){if(this.requestCdAnywhereFlagFromJava(),await this._cdAnywhereFlagRequestResolved,window.cefclient||this.getCdAnywhereFlag()){var e=(await this._listFolderService.getFileSystemRoots()).filter(e=>"."!==e.name[0]).map((function(e){var t={metaData:{}};return t.metaData.path=e.path,t.metaData.displayName=e.name,t.metaData.icon=b.icon,t.metaData.friendlyNameLocation=void 0,t.fileInfo=e,t}));return this._cachedFileSystemRoots=e,e}return this._cachedFileSystemRoots=[],[]},requestCdAnywhereFlagFromJava:function(){return f.publish(v,{request:"getCdAnywhereFlag"}),this._cdAnywhereFlagRequestResolved},getAccessibleRootsCachedData:function(){return this._cachedAccessibleRoots&&this._cachedAccessibleRoots.data?this._cachedAccessibleRoots.data:void 0},getCdAnywhereFlag:function(){return this._cdAnywhereFlag.data},setMATLABCWD:function(e){this.setCwd(e)},_responseHandler:function(e){if("listPathEntries"===e.data.identifier){var t=e.data.data;this._updateMatlabPathCache(t)}else"folderMetaDataFromJava"===e.data.identifier?this._handleMetaDataFromJava(e.data):"notifyCWDFault"===e.data.identifier?this.emit(this.events.CWD_FAULT,e.data):"cwdNotChanged"===e.data.identifier?this.emit("cwdNotChanged",e.data):"listRootFolderResponse"===e.data.identifier?(this._javaAccessibleRoots=e.data,this.emit("javaAccessibleRoots",e.data),this._javaAccessibleRootsRequestResolved.resolve(!0)):"getCdAnywhereFlagResponse"===e.data.identifier&&(this._cdAnywhereFlag=e.data,this._cdAnywhereFlagRequestResolved.resolve(!0))},getCurrentFolder:function(){return this.currentWorkingFolder},getCurrentFolderPath:function(){return this.getCurrentFolder()?a.pathFromFileInfo(this.getCurrentFolder()):""},_handleMetaDataFromJava:function(e){if(e.decoyEvent)this._cwdMetadata.deferred.resolve(b);else{var t=e.data,i=a.pathFromFileInfo(t.fileInfo);this._cwdMetadata&&this._cwdMetadata.correspondingPath===i&&this._cwdMetadata.deferred.resolve(t.metaData)}},isAccessiblePath:function(e,t){return this._getAccessibleRootPaths(e).some((function(e){return t.startsWith(e)}))},_getAccessibleRootPaths:function(e){return e.directories.map((function(e){return e.path||e.fileInfo.location+e.fileInfo.name}))},_updateLegacyStateAndNotifyCwdChanged:function(e){this._temporaryCachedCwdData=e;var t=Promise.all([this.getAccessibleRoots(),this._cdAnywhereFlagRequestResolved]);this._orderedCwdChangedPromiseQueue.enqueue(t,4e3).then(function(){var t=this.getAccessibleRootsCachedData(),i=this.getCdAnywhereFlag(),n=e.fileInfo.location+e.fileInfo.name,o=this.isAccessiblePath(t,n);(i||(!!i||o))&&this._updateLegacyStateAndNotifyCwdChangedCallback(e)}.bind(this)).catch(function(){this._updateLegacyStateAndNotifyCwdChangedCallback(e)}.bind(this))},_updateLegacyStateAndNotifyCwdChangedCallback:function(e){if(e){this.currentWorkingFolder=e.fileInfo,this._setStartupFolder(this.currentWorkingFolder);var t=a.pathFromFileInfo(e.fileInfo);this._cwdMetadata=this._createRequestForLocationMetadata(t),this.emit(this.events.CWD_CHANGED,this.currentWorkingFolder)}},_setStartupFolder:function(e){this.startupFolder||(this.startupFolder=e,this.emit(this.events.PATH_DATA_SERVICE_STARTED))},getFriendlyLocation:function(e){var t=e||{},i="";for(var n in t)t.hasOwnProperty(n)&&(i+=t[n]);return i},events:{MATLAB_PATH_CHANGED:"MaltabPathChanged",CWD_FAULT:"CWDFault",CWD_CHANGED:"CWDChanged",SERVICE_STARTED:"PathDataServiceStarted",READY_TO_INTERACT:"ReadyToInteract"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return class extends Error{constructor(){super("promise expired")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(912),i(2500),i(751),i(7587)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{constructor:function(e){this.dialog=new o,this.callbackBusy=!1,this.pathService=e.pathService,this.id="TripwireButtonNode",this.text=i.access,this.enabled=!0,this.actionClass="TripwireButton addressBarButton",this.style={"background-image":"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAACXBIWXMAAAsSAAALEgHS3X78AAACG0lEQVQokZWTX0hTURzHP7uuhIhaW02daGKU+CAMjBAKLPOhGKUVQb6l4FMPJVEgBL0EUgTVWy+Sewl6EoKEgmILinoIHBH9GYHOVeturTl2t3s9u/fEvcu1sCH94Mc5v9/5fb7n94NzXA9v9Evq2PHLUVe9s1WzBX4euxTx1CbzapxoeHw91jE3MA8crE1u8e9iQ+Nmdu87h0sBRcFZHXf9id/MXcddNq2FTGKe7e3B37gEaeFp7SEWmap7c3fvUYRp4dZ0sVgq5mtgEzDpO1UffjJ9Gq3wg6IucGulckRden+1rWs/YFVcCqTUwNJBlsAqglUAK4+UebzNO8h+U9FKZZSSIXIZNQGIiksDieGsf7tezftbfaRSKacDZeJObF5NLSLtAqkz8/Qd3pEwylAY5cQDJqZjThf2mS1idxVo95JY+oKmCxrsmQ4E/cMtPQPN0bdJRm5G0IVZnfd1fNnprL+7ASwNaWmYQvDpQ5J0Zrki4A9sO3PxcWNH+NnnKjjct4cjvZ28+viVxbSBZ5PJTp/ORpeBMCTq9xzxeBKF0JRnrjSQy2krVfjsYA+zV05yfmivEy+kBWN3sxy+ViCTsygbFoGWZjS9jALMZqVveBUOdjZxa3zQ2ecKBh1NW6vCsYQk/Lwi0BawBQQuQlNr/oIN3bsQ4tDk/TVvoGvlJV3Gi2r8T4F1bJRHkzOrNfYIo/8B366FAX4B2EIBmLcRU/4AAAAASUVORK5CYII=')",width:"100%",height:"100%","background-origin":"content-box","background-repeat":"no-repeat"}},isVisible:async function(){const e=n.getInstance();await e.start();return!!(await e.getMATLABDrivePath(!0,0)).response||!!window.cefclient},callback:async function(){if(!this.callbackBusy)try{this.callbackBusy=!0,this.enabled=!1;const e=n.getInstance();await e.start();let t=await e.getMATLABDrivePath(!0,0);if(t.response)return void this.pathService.setCwd(t.response);const i=(await e.getTripwireStatus()).response;if("STARTING"===i)return;if("RUNNING_CONFIGURED"===i){const t=await e.getMATLABDrivePath(!0,5);if(!t.response)return void this.dialog.show("RUNNING_NOT_CONFIGURED");this.pathService.setCwd(t.response)}if("NOT_RUNNING"===i){await e.startMLDC();for(let i=1;i<=10&&(t=await e.getMATLABDrivePath(!0,0),!t.response);i++)await new Promise(e=>setTimeout(e,500));return t.response?void this.pathService.setCwd(t.response):void this.dialog.show("RUNNING_NOT_CONFIGURED")}if("UPDATE_REQUIRED"===i)return e.installMLDC("TRIPWIRE_BAR"),void this.dialog.show(i);this.dialog.show(i)}finally{this.callbackBusy=!1,this.enabled=!0}}})}),e,t),e.exports=o},function(e,t,i){e.exports={access:"MATLAB Drive ファイルへのアクセス",createLinkAction:"リンクの作成",gotomldo:"MATLAB Drive Online に移動...",inviteMembersAction:"メンバーの招待",manageLinkAction:"リンクの管理",manageShareAction:"メンバーの管理",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive の最近のアクティビティ",share:"共有",sharing:"MATLAB Drive の共有",tripwireCloseButton:"閉じる",tripwireInstallButton:"インストール",tripwireInstallText:"MATLAB Drive を使用して、どこからでもファイルを保存、アクセス、および管理できます。\n\n[インストール] をクリックして、このコンピューターに MATLAB Drive と MATLAB Drive Connector を設定し、ファイルを同期してください。",tripwireInstallingText:"MATLAB Drive Connector は現在ダウンロード中です。\n\nMATLAB Drive フォルダーにアクセスするには、インストールの完了後に [MATLAB Drive] ボタンを再びクリックしてください。",tripwireLearnMoreButton:"詳細",tripwireNotConfiguredText:"MATLAB Drive フォルダーが見つかりません。\n\n既存のフォルダーを選択するか新規フォルダーを作成するには、MATLAB Drive Connector を開いてください。",tripwireOfflineText:"MATLAB Drive を使用して、どこからでもファイルを保存、アクセス、および管理できます。\n\nMATLAB Drive の設定に必要となる、インターネット接続がアクティブではありません。\n\n接続が回復したら、再試行してください。",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector は現在ソフトウェアの更新を適用中です。\n\nMATLAB Drive フォルダーにアクセスするには、インストールの完了後に [MATLAB Drive] ボタンを再びクリックしてください。",viewLinkAction:"リンクの表示",viewMembersAction:"メンバーの表示",viewrecentactivity:"最近のアクティビティを表示..."}},function(e,t,i){e.exports={access:"MATLAB Drive 파일에 액세스",createLinkAction:"링크 만들기",gotomldo:"MATLAB Drive Online으로 이동...",inviteMembersAction:"구성원 초대",manageLinkAction:"링크 관리",manageShareAction:"구성원 관리",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive 최근 활동",share:"공유",sharing:"MATLAB Drive 공유",tripwireCloseButton:"닫기",tripwireInstallButton:"설치",tripwireInstallText:"MATLAB Drive를 사용하여 어디에서나 파일을 저장하고 액세스하고 관리할 수 있습니다.\n\n이 컴퓨터에서 MATLAB Drive와 MATLAB Drive Connector를 설정하고 파일을 동기화하려면 [설치]를 클릭하십시오.",tripwireInstallingText:"MATLAB Drive Connector를 현재 다운로드하는 중입니다.\n\nMATLAB Drive 폴더에 액세스하려면 설치가 완료된 후에 [MATLAB Drive] 버튼을 다시 클릭하십시오.",tripwireLearnMoreButton:"자세히 알아보기",tripwireNotConfiguredText:"MATLAB Drive 폴더를 찾을 수 없습니다.\n\n기존 폴더를 선택하거나 새 폴더를 만들려면 MATLAB Drive Connector를 여십시오.",tripwireOfflineText:"MATLAB Drive를 사용하여 어디에서나 파일을 저장하고 액세스하고 관리할 수 있습니다.\n\nMATLAB Drive를 설정하려면 인터넷에 연결되어 있어야 합니다.\n\n연결이 복원되면 다시 시도하십시오.",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector가 현재 소프트웨어 업데이트를 적용하고 있습니다.\n\nMATLAB Drive 폴더에 액세스하려면 설치가 완료된 후에 [MATLAB Drive] 버튼을 다시 클릭하십시오.",viewLinkAction:"링크 보기",viewMembersAction:"구성원 보기",viewrecentactivity:"최근 활동 보기..."}},function(e,t,i){e.exports={access:"访问您的 MATLAB Drive 文件",createLinkAction:"创建链接",gotomldo:"转至 MATLAB Drive Online...",inviteMembersAction:"邀请成员",manageLinkAction:"管理链接",manageShareAction:"管理成员",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive 最近活动",share:"共享",sharing:"MATLAB Drive 共享",tripwireCloseButton:"关闭",tripwireInstallButton:"安装",tripwireInstallText:"使用 MATLAB Drive 从任何位置存储、访问和管理您的文件。\n\n点击“安装”在此计算机上设置 MATLAB Drive 和 MATLAB Drive Connector 并同步您的文件。",tripwireInstallingText:"MATLAB Drive Connector 正在下载。\n\n要访问 MATLAB Drive 文件夹,请在安装完成后再次点击 MATLAB Drive 按钮。",tripwireLearnMoreButton:"了解更多",tripwireNotConfiguredText:"找不到 MATLAB Drive 文件夹。\n\n要选择现有文件夹或创建新文件夹,请打开 MATLAB Drive Connector。",tripwireOfflineText:"使用 MATLAB Drive 从任何位置存储、访问和管理您的文件。\n\n没有有效的 Internet 连接,这是设置 MATLAB Drive 所必需的。\n\n请在恢复连接后重试。",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector 当前正在应用软件更新。\n\n要访问 MATLAB Drive 文件夹,请在安装完成后再次点击 MATLAB Drive 按钮。",viewLinkAction:"查看链接",viewMembersAction:"查看成员",viewrecentactivity:"查看最新活动..."}},function(e,t,i){e.exports={root:{access:"Access your MATLAB Drive files",createLinkAction:"Create Link",gotomldo:"Go to MATLAB Drive Online...",inviteMembersAction:"Invite Members",manageLinkAction:"Manage Link",manageShareAction:"Manage Members",matlabdrive:"MATLAB Drive",recent:"MATLAB Drive Recent Activity",share:"Share",sharing:"MATLAB Drive Sharing",tripwireCloseButton:"Close",tripwireInstallButton:"Install",tripwireInstallText:"Store, access, and manage your files from anywhere using MATLAB Drive.\n\nClick Install to set up MATLAB Drive and MATLAB Drive Connector on this computer and sync your files.",tripwireInstallingText:"MATLAB Drive Connector is currently downloading.\n\nTo access your MATLAB Drive folder, click the MATLAB Drive button again after installation is completed.",tripwireLearnMoreButton:"Learn more",tripwireNotConfiguredText:"MATLAB Drive folder cannot be found.\n\nTo select an existing folder or create a new folder, open MATLAB Drive Connector.",tripwireOfflineText:"Store, access, and manage your files from anywhere using MATLAB Drive.\n\nThere is no active internet connection, which is required to set up MATLAB Drive.\n\nTry again when connectivity is restored.",tripwireTitle:"MATLAB Drive",tripwireUpdatingText:"MATLAB Connector is currently applying a software update.\n\nTo access your MATLAB Drive folder, click the MATLAB Drive button again after installation is completed.",viewLinkAction:"View Link",viewMembersAction:"View Members",viewrecentactivity:"View recent activity..."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(211),i(262),i(273),i(2500),i(751),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{_addImage:function(){"INSTALLING"===this._status&&t.create("div",{style:{"background-image":"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAAArCAMAAAD46mIlAAADAFBMVEX///++vsDl5eX5+fnn5+fq6ur8/Pzw8PDMzMzY5vLo6Oj6+vr9/f329vbr6+vv7+/39/ft7e3z8/Pu7u7x8fH09PTA3PMAS4cAAADp6erk5OTm5uaqqqqXl5d/P2BAQEDs7OyoqKihoaGLi4ufn5/7+/vy8vOlpqakpKT4+Pj19fWcnJyBP2KqfSiyij+RkZEAvPKpqamd1fDw8Lvz87wWFiOUlJTx1p2Ojo6gyOOr0eh/u/GUwN7X2t3S1NieoaWe1/Pt7bgpT3Db7fjx58/W19ltTythPz89P0n++9lGd5ma0eyg2vab0u3YvYfM0NWwtbtAQUuAPz/a//+xij//2o46Oju6vL7f4OKmeij29r7IycsAOY7++M7fy7W7wcVRUVFhnda98/UzMzXHqIPCxcX//vP99LLs7LdHSE0+PoL+9bs/f7r+9sQ1YoLt0pr/tmZ0oL5dj7Te5u3875IsLCz98aD//vqoqq+igUA3bjL///3z8eIoKDRhP3+JuNl3Wie78PBmtv+0u7iGZSuatcSjilZaW13986qeYT8nZCdFc4m5nVm9oXrTtob+/ezLroD09PcKChfV8PDtuH5/o3Oix4FvpE+wsLCIiIh+Pz9SQRQoSGlCQkL35YuOOQDJ3us/P2Bgi6m/zdLE4fO32e6TbivT3+mWeU+0kk3MtG/v5aDk1LrRwKHCpGb+++RRhU5Hfz/4+MCYy1dhYZ2AgGKqxJPE44u6fz/yvICOtv9hTRt6rNEWNVY5AACIoLP22qBUfJuCmqS2//85AGadu9F0ma61ydaHrMo/YZ6ddi8gxPQwbZ4PVY4fYZLm0oR/3fhtzenLyr+eu/Lu7tPY39i4t5mUn4W+2q6ezHPS6bt+t1GOt3C21pjb77fVnWA1caEpRk7v2ojp34wcPV5EX3qWprVngZi80d9iP4DQ5fLb+Pjs4tBMf6Hm8/pSh6qetJ1YibDr2oFjodtc/1yWspZslWxhjl678rxbkUhgmpqz22VgP3647e1inp5hP2HC6T2rAAAACXBIWXMAAAsSAAALEgHS3X78AAAGaUlEQVRYhe2Xd1gTZxjAP7A2h61lBDlUkjOA5tqgCQpJagqilCKOalAkSh0gowxRhrKLiqjIEJDhqop71z1ad6t17z279967fb7v7nIX+EjAkKf+4e957vm4N2/e95cv710OIGoD3PA0X9iuLWgbdQcc5tRBW/BY/f9VX5eGaSIztEy9F8NljHpPAbZRfzc9HWOlVkeZBiQMjdU3wFr5vYyw6kj6RSOm6jEXL7aFuiEtbcW3OHVPxUJ7YUDhAVFIJILP4ObgsBUV2zAOsXkzp94rH4CeW1/mEKifUQGVStUG6qtWHv8m+GuculxOewcKAsjcQ+IJoWmaU4/9CgCQVzmSoWIkq76lEoBxoxkqKipG8+qqlqmHLXd3f2VE8+odTqxcEbx69SAGtrySgaZp2nthe6N6kVy4696c+vXNAORlsTXLNuZws56TD/Ky4ue/ETZ2a2xl5WmTgcHibhKMODQTgIg3hSE+AW750eLg1WvWrAlGlHLqnnIE2l15CKceR3vwKBRqVv3ylry8LMZxUsLGstOc+pbyvPy6urp7d8Zumh0bu9byrrsL3cOWzzSTIBIdPvrZF315UtnyWk8BtCKSDYd4Q3FaS8tkMhmvTpRnZcUz5slzL+SsNd5hcvbcvb937736Scll5UL1M6ruKpUqICAkMHDYsHZCM4F7xDtvo3WKYGb4BJHocOnx5wUY1b0FKNScugFepzKtl1Yuk8k8JUpW3WF2fHzxOZI8MTY5YVrmrFlG9ev19/+s//1uXXLCpvWxs4QD07nvpUuseoCJOu8ekTQCp+7OD0zqysIXjAxgy3sJxZXGgRFJfH191VqtVimTyeRKXn3+KhJyLGHutMyc6Ub12j176/eg72LahnKheg+DwRDAqg/rZn7XTQeG33WRqOunqWmFhYUDGDh1BoVCIdF68JepiPaFKH19ZTK5XK3l1NcXkyT5fRp5/rtNmcvKePVfb++sheYJ0zJ/WD9doB6YnZ0tl8v7IaIebtYhnwwYdODA0ia3RpHIS6FQKk1+leS+0BrtuZyWcOorSkmSTM/IIEky9cNlG99i1bdt33b7zvbc2mT4XSybLVQfP2fChMTXR42aOHHe1Kn9eDMTzynu6A5jMjDAVF0U8PHS9I8w6ovUXnQXk4gdukDVajW85Ss49fdIkjy7DmScJ0nyxgcXOPVr227e2rkz9yUOnHruT/ME6o2IOATv61Owt3aj0rGDB3HqiyIbRaI8oTocGjlNe3qx6mjOz647B5f3lyxZwg1M3Pabt3KvNa5qZtdbAV9vPG5gFAGNIyFeJgjVWU4KH79+zp1X1KQqVM8YHxkZWVQ0HBFonfrD4+bgcJI3Tzd9cvyltmndx8/rNlL3H+7m2CyPkDoG/4HFZtQfmX+rcfiDgXbNuzs6Wt/Bhurm3a3vAAgb4Q8AGNXPVtUhgGiTK6YpUB3oo1r5rlZBPG0bkDrQRz3ZDNY3BURzta2EUQf6qO54rO8AiKdsA6veTh/XDov1TQHB1g0roahTX+LbmLAjnKKoH9nIDp8hgkUIqw5c9XHP4mhBJwsAwglxJFTn5HTkipMZxvgMceIXBlyMgVMHnfVxHTGY69QyAIGq5pfocPVNGOMzpCO/MOBiDEZ1YNA/h8FiO4sAohNE83kMWv18guDh57M76Tef3UkxmlAqKcbP5wZFRfuFU1QKmwLfEUpROnSiCaX+YRaYujuJqQTVqwDQQ1wwdLIaQKCqml0L0OonDYKHX3i0CzqkQS77o/3CU1z2J82AJzAFzrrOL1znovk3COXqXB40BHGp0aylPwBV1cOBPrsHHtzHaR2AcIVoXpuB1j7S3vBgF1e4tVSKIMimsG/Yp+sj7a3ZtQDG+FQGf1BVbVcADAXN/Iy7Wg0gUKGrJTq09pH2FjGW6E/NazNMg+yZiHmFU4cxPpV9hqmqtnNMjAOJ2bZ7hhEjaiidWDz5ytUSnbimYWh/6VAxOhZHi8Vi9gwu7JlY3H+xTjz5r79heLFO/KBhKJ/KMLA60tk5sgCEFDhjEVsNINi6k0Mp6tQC5xqKKpUOflU62BkeKJrCne2jUpydmTh6pYEJ11DUH9LBfCpDN0RiCJjYDQv+A7UGQDxjG9ojAgvm2LXHYn1TQOArW01nC1jfARAdbMMTFrC+KSAs9XhIulrA+g6AsLcNXSxgZVd7e/v/AKEzr9x6lAFOAAAAAElFTkSuQmCC')",width:"100%",height:"100%",alignSelf:"left",padding:"0 0 90px 0","background-repeat":"no-repeat","background-position":"left"}},this._textNode)},_installMessageHandler:function(e){this._dialog&&e.data.installResult&&this._dialog.close()},_setTextNode:function(){let e="";switch(this._status){case"NOT_INSTALLED":e=o.tripwireInstallText;break;case"INSTALLING":e=o.tripwireInstallingText;break;case"OFFLINE":e=o.tripwireOfflineText;break;case"UPDATE_REQUIRED":e=o.tripwireUpdatingText;break;case"RUNNING_NOT_CONFIGURED":e=o.tripwireNotConfiguredText;break;default:this._dialog.close()}this._textNode.textContent=e},_getButtons:function(){return"NOT_INSTALLED"===this._status?[{type:n.TYPE.HELP,label:o.tripwireLearnMoreButton},{type:n.TYPE.DO_IT,label:o.tripwireInstallButton},{type:n.TYPE.DONT_DO_IT,label:o.tripwireCloseButton}]:"OFFLINE"===this._status?[{type:n.TYPE.DONT_DO_IT,label:o.tripwireCloseButton}]:[{type:n.TYPE.HELP,label:o.tripwireLearnMoreButton},{type:n.TYPE.DONT_DO_IT,label:o.tripwireCloseButton}]},constructor:function(){a.subscribe("/storage/matlabdriveaccess/installmldc",this._installMessageHandler,this),this._status="NOT_INSTALLED"},show:function(e){this._status=e;const a=t.create("div",{style:{display:"flex",height:"100%",alignItems:"center"}});t.create("div",{style:{"background-image":"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAABmJLR0QA/wD/AP+gvaeTAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTAzLTE0VDEwOjMyOjE2LTA0OjAwxaJuBgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0wMy0xNFQxMDozMjoxNi0wNDowMLT/1roAABQjSURBVHhe7V0JeFRVmj21pir7BoQtJIAJm+wg0oiI6Iiy6SCO6zfq2Nra4+coPa3dOrZLd3/dIrg2KtjadiOtKCq7rYgsigQCBElYAtkgQBKSELLUXjXnf1XRJBSQpaqS51cn/kVy333v3XfP/bd77ys1HgJhqAZa379hqARhwlSGMGEqQ5gwlSFMmMoQJkxlCBOmMoQJUxnChKkMYcJUhjBhKkOYMJUhTJjKECZMZQgTpjKECVMZwoSpDGHCVIYwYSrDT35PR63NiWN1Dpyqt6HGxkfVuKHVaBAfoUevKAP6xBhh1ut8tbs+fnKECUFflNTg/cNVyD5Vj+MNDji1etoSIUXjrSTwuAG3Cwa4MDDBhCtSYjArPR5TU2O6NIE/CcJOWxzYVlqLJbnVWFdQSTJo6Q3sdJfLq1EXeEQ3tQ0QgniOzc7ztLhhQCIeGZGECb1iEC3X6UJQNWHVVic+O1KFV7+vwO7SOva5Fjrxyh6nokwan0Zd6AEbdc7DHw3Jc5NsETgcmDIwAXdnJuF6al5ypMFXs3OhWsLWF1TjL7mnseYwNUpDoqhJ7G4eaWL22g2hT0sF1UCn1+CqPjH4xYjuuOmSJN/xzoPqCHO63HhiWwmW5lXiDP0T9YFBhDxCIIhqCY9X49xuxEVF4o5L4vDKtDTer/OCa1URZne6MW1FHraeqCdzTrobNl3xQcGGB7w1PHojLksxY+WsDPSKjvAdCy1UQ1hxdQMy390Hm8MDPUSzQkFUc0hXOdwaxEUa8RFJm5ae4DsSOqiCsOyTZ3HjykPMp+wwKgFF6MlqCju1LTnGjCXXpGFOZjdfaWjQ5QnbfaoWd649jLyKBug9LiWS63SIplHHk6NNWDZjIK5NT/QdCD66NGEnzlpx2+pD2MxEWNdVyPJBWuKgpsWZjci7bzR6xZi8B4KMzgt3LgoPnt5cjM1FZ6BzO5WGcnR1GREt0zOVqKGZnv3hPkaSoRn3vLfcveth6e5S3LcyFzqz3ttBAYRXUfnB63bkynIZyfxkguu+kcl4a8YQpTyY6JKEVVvsSHxhK5NhJq5KlwQWogxOfuh1moCYGAevFcM8ben0/rh5aE9faXAQMpPoZPIpPulIZT0OVNQhv6oBJ2ttcDARbomH1h7ksGVn0hSKFgRS7C4Xk28Xkkx6uOR3tstfvbaInqp29mw9Fu86iXI+UzARVA2zMdvcWlSNb49VI7e8FmVWwEJPbXe7YNTpEGXQoluEBiNSonF5agKuSk/CzmNVmPzePtjtNui0iu0KGGSWJEKvw+OT03HtgGSszD2FBVsLYDDqfTXaDxl2buZoS2YNxr1j+ngLg4CgEfZWdgmW5ZTjYJUFp+ttcFs58mTZojHSU+7KD5KqMxuQHGXG2G5mnKyrR045yWJUGOh8y25x4MVZQ/Hoz9J9JcC0d7Kw8UA5IiINHfJnoml2EnZ5v3hsuHMMYiM6Pgj8IeCE5VfW4TZGTbtEnZx2ZZ6PrkIJySV4aHozocPDcmmBix8yfdvotwIVwsv95Eo2uwvpSZEomH+VUt6IwuoG9H/uX9BHGanRHfMQ0pV23mfd3eMxPbO7rzSwCKgPW7yjCBkvbsWu4zUwOC0wMuyVcSvrURqfrxDSGkX5m+Vaj7eekUQp+ZYck/odFE/j77JYWW/HY000qxHpCZGYO7YvnA12pT0tr9EWUdqtM+CFbYW+qwceASFMRtbzmw7j4XX5ikaZSJSyJCiEtEGkflvPOZ9I5+s4COIidHDIzK1Jh1tH9PI2uAUemUgidbKc4h0sHRGDxoVNB8tQLQMgCAgIYa9tL8JzXxfBzUBBtEQZqZ0sEmD0p/b0jTXBTR86ZUASEiONvhY3x4hesbgsNZ4WvONRqeJ72QVrDpX5rh5YdJiw74qrMH9tHhx2u5L5u9nozhYX8yLRrpmDejDMpi8lebeP7O1r8bmIZpR40zDmT6zn73ptEknyDDp8mlvqu3pg0WHCbns/C3aG6sxqfIOMgUUnCj/gqLNgztAUpMabcfzUWUTFmXDlgAvPqk9hSpEQbYLd6dUyf9dulfBHfObOkmrflQOLDhG2cHM+Ck87abedDB5ow8Xxdqawo+w2BwwmI/55+3gs+a5AVj0xgxFbX5J2IWR2j8GktHiGkzRp7Hi/12+ViHa7cbzaisp6aneA0W7CGuwOvLatgGbQDgMHlZ4P2Zmio0iepWeyvfHBSdh/8gz25JcDkXpcNygFpovsfopjLnhl/2RlA5WWptHfPVorRreLKacBe0rP/GAqA4V2E7b6+xOosEoY3slBBk1Qg80JC6OyPgwyls4bjSvSk/HE2v2KTxqYFI1xqa1bGb4sNREpURFwuDoYfBAamtbfrDuABz/ei8fX7MdLXx/G6v0nkF9RxyreOu0BI9H2nX3f8p14Z9dxxXd12joVW25lfpXWMxa3jE7Fv4/oTXISUUczGPPICg5HLe6Z2B9v3DKGccDFx+ZZqxMzl2zFlvwKmIwd248o3Wr3aODhoBESNdT8uCgzBiTHYHB3E67NTMGMISlIiGzb3pB2aViNxY78ynq4nA7FyTaLkkIkMoFrrWnA3Mv64dtHpuKPMy5VyBIs2HiQvsiBSJMeV2d0bxVZgljWn5CapHSw7JTyd9/WimiBgVGzTFNGGLRsgwZ1Fiuyi8rxj53FePiT7zHl9a1YRM1rC9pFWOkZCx0qNUv+4ABSWhcikR1tbhcJq3dgPklacfdE9Iwz/zDteIZ+7C9b8iE9lZEcjesGt22549pB3RFBbSBffu/fNmGjRMvkWgxGZFLAyB43srF19RbsO16FRz/NxdA/fY69x6pY6eJoF2El1Q2os9p5sm92gk8XKnHTxDgZ8MyfPgQvzBnpa9GPWEjtqmD7hNmbR/VBYpT/ZPl8mHJJD/RPioKTPkimzPy1oc0i15F+aiJ69l0E+TR6bMgrrcGoBV/i+X/th9VB/3kBtJ4w3uTbggo8v34/nlqXi1PVtco6UJPhFHSRHwc7ctbw3vjtdcNY1hxFlXVYsbuIv3mQxODhrvHnzh1eDLKkMyWDORv9Wcv7B1qoe8qbNCatN7r8v7UH8YsPs3G67vzpQKsI20vVffCDLMx75zs8tSoH2cWnqea+SdoQikw3JVNjHrt6MOIZhrfEezsKcZiJsviveQxCJGpsD24a2ReyUVXMmL92BEN0tAh6jxPvbi/CfcuyYKUV8YeLEObBIpqY//jrDizefIRaVac4UJmFV47yRsEUfigiAYCVgY6ef9ZbHfiIWmRzMsFtgkNlZ7E8qxBuKec5T91wqe9I2zFtUE+Yohne+67lr22BFn4oLkb69tO9J3Dve1m+1jTH+Qmj3b3r3W/wKPOII2VVMtmtRD3eWWklHwiaiI2XWQuXk0TVWmGvs2FE30TY6KitzLle3XgAd7y9jY/Hhvjw9+1HcZCWQLRr5rh09Iw1+460D5MHdoeLAYy/9gVT5F0Bo9aF9/eU4sUN3/ta8yNYh7VaQAKKSS9+gZyCSkTQM4Yiz1LuwA+xQrIcIpFgtFmPG4an4mlGg4N7xuMfOwpw59KtSn1Q4y5JS0L2kzNQdLoOw59dzUEGmA06HPr9HPRNiPbWaydWZBdi3sIvYU4g8bzuOZ0UZDj5/AaTGR/dOwHXX/rjloNzCLPRdl790iZ8c6gMZgljgt5U72CQ3MXm8Jq5nnGRmD0qFQ9cmaFoVlOs2FWEX76fhfJaRoJMkIend0NSjAmbck8obP9qxnD8ee5YX+32Qxx/6q8/5i1k/4kYolBTxjFJNzo1swc+un+yMjEtaEaYm2bo3r99i3e3FjDTF3sZZM3i5eX2Fpo5+SOzZxxmjUzFzePSMC4t2VvHD9Z/fxyPMgg6UlFLs8nmi43mfxkpsVj18DXI6BHrq9kxTF/0BTbklCDS3LbUIFCgkkGn12HRvDH4+eRMpayZD1u86QDe31GECJ34ERYIl0EUDzXC0mDD0N7xWHDLOHzy0FT8+eaxFyRLMJ0m4tVbL0MiI0WZQRCR8PjBqwYHjCzBDUwfZJOQMqY7QSR/a6DpX7GrGOVnLUqbfiAsr7QKi7cUcMS6lGV+nhFcYYOErFfvnIi9z8zBY/82DIN7xfNY63Ck/CxqJShgW+3Mma5mZPdfV1ziOxoYTBrYAzGxEYpZPKf9IRAJHSL0Wmw+cAJ7mUoJFMJkBL25+RByC08pS/yypiMz3UEVGUVs0ZKvD6Gsxjt6Wouv8krx5IpdsNPfOuwuJMWasOjW8YiMCOx7yKlJ0ZjYPxkueVk9FH3iR3TMdx0ONz7J8a5gK4TllJzGSqqdXu/bxx4KYW4VGaHHvoIKjPjtx1izp0Rp0MWQc6wS97+zDZU0EVotg2AmuEv+82cY0jvwL9clMhebOoRmkfdpnHXvDNHrNfSlxWhgyqIQ9iUjrOPlNcpWsxZaGVxhJ0TSD1XWWnDXG1/htS9zWXh+5JfV4J63vsYR5ltGow6OBiuenD0aN45p+xRUazEurRu6MUJzuCSJZkEniGxJLTpxBsWVddC62Gmr9h6DxkDt8lc7BCKaVkN/Nn/Zdjy2fDt5lPLmKKTPmvvKF9h9pAxGkx52iw0/v2YYngtACH8hDGNaIUGRTIv5a3soRIIPCRnzTlRDK9HHjsMnYJQQm/5LZg9C/kO1lwVDSZYXrt6LG1/awIb+iKyjZZi5cD32Ha1Q9sHb6VPuJ1kLbrucRwOXetRZHRw4zfcTdmOONymjh7J72cOOa9LqEP6QMD73hn0l0Hy5r8Qz7dnPEBkVoQQBnQm5u2wTs1jtmMCo77PHpisR0v1vb0Y1zZ9ZxzCe9vzx2WPwxKxR3pMCgFya2P+lZm/PL6d2u3H5wO5Y/t/XIkH6hNh68CRmL1yHeqtLWQyVcR9ayHyqBomxBmieWP6d548c1VGGziWrJerpYOWbbKRztFoNzDTZMtbk7ZOEaCOG9knC63dfgb5JMd4T2ok36TcfePlzgGbWaCZB1HZ7vQ2GSBPWPX49pg3rq9Sb+vxnHDzH2Y7O+0Ycl0cDXVnfKb+rVxYjuxaMzD+EKPlXEmPpSDEAMs9YVWvFwfyT2H+qBndckcny9g22l9fvwy+XbIIxxgiTyahsL5eXMSIYCFkdDqzdU4xhfRKR0TMeFqYQa7IKYTDoAmiE2wiaZJ1l4DW/k44RtQukPwgEZPaiJaSpepolPTv1EH3bgN5JGNHvwjMj/vDBN4fxP+9tVb4cTN5Vkwi6EfK7lNXSn20/fAoj05Ixm5HoS5/vU5Zc5C2X0JpFsS1gcKaTPvG+BhTsJZP2iKJVfspEdNJeJspPr9jhfaY2YD9zOTmvzmKHSSZ2m1y/6X0iqU2FTHfuWbwRRadr8cDVQ5WlnpZ1gy+ATLdOykihJZTN+1JIDtUkbLSSDhSy81fuOOplohWQfOrZj7JwiOdFypamFtdtJtTmKNYpKqvG1GdW8nedotkSGPmtHyyhKXSTsRnUcu204X1hlddxGB2pTcRgahk1vrxmt0JGa/Dq2hys+CpPSdilI/xdt6lIHZnyqjhTj2c+/A4R1DpZZPRXN1jikd1XDhtGp/WAdu64AXCJvnkHrbqEIz2CGpBTVIHNucdZcGHsKazA/Pe2wBBl8K1GtFJ4HwP9VpTMVSpTVH7qBFHkGw96d49l8BML7bBUOmxlQ6gwqT4R919ncWDVzgI+3fkh83B3vrIeHloTmQH3d63WiERq/sqDKTaHE5OG9EEUI1ntgJQ49O4RRxa9398pn6r7oQ/eknsMJRVnvey0gMvlwQNvbkRuQTmi5aU+9nuTs7v0j7IZlWbx+lGpSvqijeEDTLk0VXlpW3llqFl0og4Rc5V3vBLbD530UfQjxJw88vYmLP/6ACL5rP7O77LCtsv3mFxKKzghw7uDmWmNBjeOTyOLDhl4hHyqS/QM9hosNqzOOqokvI2oqGnArN9/gtfWZsNAM+h9vcH/NbqiiJuSxdM549OR0cu7t0WZ4JiU2RtXDUvjw7rERPs7t4uLh4muHuuyj2JXfpkyG/L62t0Y9OBfsf7bw4rtV3Yps57/87ueCA92pwej+6fgjsmDWegFNY+6R7yxfg/m/20b0zKnMj2jNsj3fVjsToxncikbc7JyS6AzRyh5lO8RVQVZYtLodfjT7ZPw0MzRvtImhFXWNuCOReuxcW8JoyjF3akO8iAWRoPyRJEm5lneYtVBKGHgizkT+uOfv5qpTMU14gfCBFv2F+OmP6xGvdWmLCOEEXoIHfIVtT0TorFzwe3olhDlO+JFM1YmD+uHp2+dAKvFxVBYjKn6TImaIWRZZYMWzeGqp2afQ5agmYY14pll2/Dch1kwaDxgcKVa06ImSDwkr9j2TozCyt/MxqiBKb4jzeGXMMHTy7bg5VV7GS5blUVDhbQwc4EHe19yRZnOnTC0DxbefSXG+nIufzgvYYKl6/fihU+ycORUDUw6+aY1FoZJCwzY69LxFocHJpMed00Zgl/PnYB+PeK8x8+DCxImyM4/SU3Lxt+/2A+dQQcTI0hl+U6FoX/XANNhmj47fZXDZsf4wX3w+LwJuGFcfxgNF/+OxYsSJpBse3NOMZ79YDu25RTJmgYMBi2TUY+yAhzGxSGLQbK1Ub7miYkixg7uzfxqDGaMH4DkuNa/KdoqwpricGkllm8+gA07jyKv+DRHChugkUmfMHN+IcvFJMjIOGBAz1jMnjgIN08ahCH92vd/lGgzYU1hszuRX1qF0sqzsMrkcZizFtAg2mxAr+RY9OsWB3MAvla2Q4SFEXqEpzNUhjBhKkOYMJUhTJjKECZMZQgTpjKECVMZwoSpDGHCVIYwYSpDmDCVIUyYyhAmTGUIE6YyhAlTGcKEqQxhwlSGMGEqQ5gwVQH4f+36Kc/OFGElAAAAAElFTkSuQmCC')",width:"170px",height:"100%",margin:"-20px 0 0 -20px",alignSelf:"baseline",padding:"0 0 40px 0","background-origin":"content-box","background-repeat":"no-repeat","background-color":"white","background-position":"50% 70%"}},a),this._textNode=t.create("div",{style:{textAlign:"left",whiteSpace:"pre-wrap",padding:"20px 0 20px 20px",flex:1},textContent:""},a),this._dialog=i.createDialog({dialogType:i.MODAL,title:o.tripwireTitle,id:"matlab-drive-install-dlg",draggable:!0,resizable:!1,closeOnEscape:!0,"data-test-id":"matlab-drive-install-dlg",content:a,className:"matlab-drive-install-dlg",buttons:this._getButtons(this._status)}),this._dialog.resizeTo({height:310,width:500}),this._setTextNode(),this._addImage(),this._dialog.addButtonEventListener(n.TYPE.HELP,async()=>{const e=r.getInstance();await e.start(),e.viewMLDProductURL()},!1),this._dialog.addButtonEventListener(n.TYPE.DONT_DO_IT,()=>{},!0),this._dialog.addButtonEventListener(n.TYPE.DO_IT,async()=>{this._status="INSTALLING",this._dialog.disableButton(n.TYPE.DO_IT);const e=r.getInstance();await e.start(),e.installMLDC("TRIPWIRE_BAR"),this._setTextNode("INSTALLING"),this._addImage()},!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(240),i(231)],o=i.dj.d(n,(function(e,t,i,n){var o=t("dijit.WidgetSet",null,{constructor:function(){this._hash={},this.length=0},add:function(e){if(this._hash[e.id])throw new Error("Tried to register widget with id=="+e.id+" but that id is already registered");this._hash[e.id]=e,this.length++},remove:function(e){this._hash[e]&&(delete this._hash[e],this.length--)},forEach:function(e,t){t=t||i.global;var n,o=0;for(n in this._hash)e.call(t,this._hash[n],o++,this._hash);return this},filter:function(e,t){t=t||i.global;var n,r=new o,a=0;for(n in this._hash){var s=this._hash[n];e.call(t,s,a++,this._hash)&&r.add(s)}return r},byId:function(e){return this._hash[e]},byClass:function(e){var t,i,n=new o;for(t in this._hash)(i=this._hash[t]).declaredClass==e&&n.add(i);return n},toArray:function(){var e=[];for(var t in this._hash)e.push(this._hash[t]);return e},map:function(t,i){return e.map(this.toArray(),t,i)},every:function(e,t){t=t||i.global;var n,o=0;for(n in this._hash)if(!e.call(t,this._hash[n],o++,this._hash))return!1;return!0},some:function(e,t){t=t||i.global;var n,o=0;for(n in this._hash)if(e.call(t,this._hash[n],o++,this._hash))return!0;return!1}});return e.forEach(["forEach","filter","byClass","map","every","some"],(function(e){n[e]=o.prototype[e]})),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(227),i(204),i(245),i(242),i(238)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=function(a){var s=a.document;this.getType=function(){if(s.getSelection){var e,t="text";try{e=a.getSelection()}catch(e){}if(e&&1==e.rangeCount){var i=e.getRangeAt(0);i.startContainer==i.endContainer&&i.endOffset-i.startOffset==1&&3!=i.startContainer.nodeType&&(t="control")}return t}return s.selection.type.toLowerCase()},this.getSelectedText=function(){if(s.getSelection){var e=a.getSelection();return e?e.toString():""}return"control"==this.getType()?null:s.selection.createRange().text},this.getSelectedHtml=function(){if(s.getSelection){var e=a.getSelection();if(e&&e.rangeCount){var t,i="";for(t=0;t<e.rangeCount;t++){var n=e.getRangeAt(t).cloneContents(),o=s.createElement("div");o.appendChild(n),i+=o.innerHTML}return i}return null}return"control"==this.getType()?null:s.selection.createRange().htmlText},this.getSelectedElement=function(){if("control"==this.getType()){if(s.getSelection){var e=a.getSelection();return e.anchorNode.childNodes[e.anchorOffset]}var t=s.selection.createRange();if(t&&t.item)return s.selection.createRange().item(0)}return null},this.getParentElement=function(){if("control"==this.getType()){var e=this.getSelectedElement();if(e)return e.parentNode}else{if(!s.getSelection){var t=s.selection.createRange();return t.collapse(!0),t.parentElement()}var i=s.getSelection();if(i){for(var n=i.anchorNode;n&&1!=n.nodeType;)n=n.parentNode;return n}}return null},this.hasAncestorElement=function(e){return null!=this.getAncestorElement.apply(this,arguments)},this.getAncestorElement=function(e){var t=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(t,arguments)},this.isTag=function(e,t){if(e&&e.tagName)for(var i=e.tagName.toLowerCase(),n=0;n<t.length;n++){var o=String(t[n]).toLowerCase();if(i==o)return o}return""},this.getParentOfType=function(e,t){for(;e;){if(this.isTag(e,t).length)return e;e=e.parentNode}return null},this.collapse=function(e){if(s.getSelection){var t=a.getSelection();t.removeAllRanges?e?t.collapseToStart():t.collapseToEnd():t.collapse(e)}else{var i=s.selection.createRange();i.collapse(e),i.select()}},this.remove=function(){var e=s.selection;return s.getSelection?((e=a.getSelection()).deleteFromDocument(),e):("none"!=e.type.toLowerCase()&&e.clear(),e)},this.selectElementChildren=function(e,i){var o;if(e=t.byId(e),s.getSelection){var r=a.getSelection();n("opera")?((o=r.rangeCount?r.getRangeAt(0):s.createRange()).setStart(e,0),o.setEnd(e,3==e.nodeType?e.length:e.childNodes.length),r.addRange(o)):r.selectAllChildren(e)}else if((o=e.ownerDocument.body.createTextRange()).moveToElementText(e),!i)try{o.select()}catch(e){}},this.selectElement=function(e,i){var r;if(e=t.byId(e),s.getSelection){var a=s.getSelection();r=s.createRange(),a.removeAllRanges&&(n("opera")&&a.getRangeAt(0)&&(r=a.getRangeAt(0)),r.selectNode(e),a.removeAllRanges(),a.addRange(r))}else try{var l=e.tagName?e.tagName.toLowerCase():"";(r="img"===l||"table"===l?o.body(s).createControlRange():o.body(s).createRange()).addElement(e),i||r.select()}catch(t){this.selectElementChildren(e,i)}},this.inSelection=function(e){var t,i;if(e)if(s.getSelection){var n=a.getSelection();if(n&&n.rangeCount>0&&(i=n.getRangeAt(0)),i&&i.compareBoundaryPoints&&s.createRange)try{if((t=s.createRange()).setStart(e,0),1===i.compareBoundaryPoints(i.START_TO_END,t))return!0}catch(e){}}else{i=s.selection.createRange();try{(t=e.ownerDocument.body.createTextRange()).moveToElementText(e)}catch(e){}if(i&&t&&1===i.compareEndPoints("EndToStart",t))return!0}return!1},this.getBookmark=function(){var e,t,i,n=s.selection,o=r.curNode;if(s.getSelection){if(n=a.getSelection())if(n.isCollapsed){if((i=o?o.tagName:"")&&("textarea"==(i=i.toLowerCase())||"input"==i&&(!o.type||"text"==o.type.toLowerCase())))return{isCollapsed:(n={start:o.selectionStart,end:o.selectionEnd,node:o,pRange:!0}).end<=n.start,mark:n};e={isCollapsed:!0},n.rangeCount&&(e.mark=n.getRangeAt(0).cloneRange())}else e={isCollapsed:!1,mark:(t=n.getRangeAt(0)).cloneRange()}}else if(n){if(i=(i=o?o.tagName:"").toLowerCase(),o&&i&&("button"==i||"textarea"==i||"input"==i))return n.type&&"none"==n.type.toLowerCase()?{isCollapsed:!0,mark:null}:{isCollapsed:!(t=n.createRange()).text||!t.text.length,mark:{range:t,pRange:!0}};e={};try{t=n.createRange(),e.isCollapsed=!("Text"==n.type?t.htmlText.length:t.length)}catch(t){return e.isCollapsed=!0,e}if("CONTROL"==n.type.toUpperCase())if(t.length){e.mark=[];for(var l=0,c=t.length;l<c;)e.mark.push(t.item(l++))}else e.isCollapsed=!0,e.mark=null;else e.mark=t.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return e},this.moveToBookmark=function(t){var n=t.mark;if(n)if(s.getSelection){var o=a.getSelection();if(o&&o.removeAllRanges)if(n.pRange){var r=n.node;r.selectionStart=n.start,r.selectionEnd=n.end}else o.removeAllRanges(),o.addRange(n);else console.warn("No idea how to restore selection for this browser!")}else if(s.selection&&n){var l;n.pRange?l=n.range:i.isArray(n)?(l=s.body.createControlRange(),e.forEach(n,(function(e){l.addElement(e)}))):(l=s.body.createTextRange()).moveToBookmark(n),l.select()}},this.isCollapsed=function(){return this.getBookmark().isCollapsed}},s=new a(window);return s.SelectionManager=a,s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(204),i(279),i(1276),i(31)],o=i.dj.d(n,(function(e,t,i,n,o){var r={getViewport:function(){return i.getBox()}};return r.placeOnScreen=n.at,r.placeOnScreenAroundElement=function(e,i,o,r){var a;if(t.isArray(o))a=o;else for(var s in a=[],o)a.push({aroundCorner:s,corner:o[s]});return n.around(e,i,a,!0,r)},r.placeOnScreenAroundNode=r.placeOnScreenAroundElement,r.placeOnScreenAroundRectangle=r.placeOnScreenAroundElement,r.getPopupAroundAlignment=function(t,i){var n={};return e.forEach(t,(function(e){var t=i;switch(e){case"after":n[i?"BR":"BL"]=i?"BL":"BR";break;case"before":n[i?"BL":"BR"]=i?"BR":"BL";break;case"below-alt":t=!t;case"below":n[t?"BL":"BR"]=t?"TL":"TR",n[t?"BR":"BL"]=t?"TR":"TL";break;case"above-alt":t=!t;case"above":default:n[t?"TL":"TR"]=t?"BL":"BR",n[t?"TR":"TL"]=t?"BR":"BL"}})),n},t.mixin(o,r),o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(210),i(242),i(277),i(867)],o=i.dj.d(n,(function(e,t,i){var n=i._createWrapper;i._createWrapper=function(i){return i.declaredClass||(i={_popupWrapper:i.parentNode&&e.contains(i.parentNode,"dijitPopup")?i.parentNode:null,domNode:i,destroy:function(){},ownerDocument:i.ownerDocument,ownerDocumentBody:t.body(i.ownerDocument)}),n.call(this,i)};var o=i.open;return i.open=function(e){if(e.orient&&"string"!=typeof e.orient&&!("length"in e.orient)){var t=[];for(var i in e.orient)t.push({aroundCorner:i,corner:e.orient[i]});e.orient=t}return o.call(this,e)},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(279),i(31)],o=i.dj.d(n,(function(e,t){t.scrollIntoView=function(t,i){e.scrollIntoView(t,i)}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1700)],o=i.dj.d(n,(function(){}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(896)],o=i.dj.d(n,(function(){}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(228),i(204),i(31),i(865)],o=i.dj.d(n,(function(e,t,i){var n={hasWaiRole:function(e,t){var i=this.getWaiRole(e);return t?i.indexOf(t)>-1:i.length>0},getWaiRole:function(i){return t.trim((e.get(i,"role")||"").replace("wairole:",""))},setWaiRole:function(t,i){e.set(t,"role",i)},removeWaiRole:function(i,n){var o=e.get(i,"role");if(o)if(n){var r=t.trim((" "+o+" ").replace(" "+n+" "," "));e.set(i,"role",r)}else i.removeAttribute("role")},hasWaiState:function(e,t){return e.hasAttribute?e.hasAttribute("aria-"+t):!!e.getAttribute("aria-"+t)},getWaiState:function(e,t){return e.getAttribute("aria-"+t)||""},setWaiState:function(e,t,i){e.setAttribute("aria-"+t,i)},removeWaiState:function(e,t){e.removeAttribute("aria-"+t)}};return t.mixin(i,n),i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(279),i(31)],o=i.dj.d(n,(function(e,t){t.getDocumentWindow=function(t){return e.get(t)}}),e,t),e.exports=o},function(e,t){e.exports='<table class="dijit dijitReset dijitInline dijitLeft"\n\tcellspacing=\'0\' cellpadding=\'0\' role="presentation"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonNode" data-dojo-attach-point="buttonNode" data-dojo-attach-event="ondijitclick:__onClick,onkeydown:_onButtonKeyDown"\n\t\t><div id="${id}_button" class="dijitReset dijitButtonContents"\n\t\t\tdata-dojo-attach-point="titleNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><div class="dijitReset dijitInline dijitIcon" data-dojo-attach-point="iconNode" role="presentation"></div\n\t\t\t><div class="dijitReset dijitInline dijitButtonText" id="${id}_label" data-dojo-attach-point="containerNode" role="presentation"></div\n\t\t></div\n\t\t></td\n\t\t><td id="${id}_arrow" class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdata-dojo-attach-point="_popupStateNode,focusNode,_buttonNode"\n\t\t\tdata-dojo-attach-event="onkeydown:_onArrowKeyDown"\n\t\t\ttitle="${optionsTitle}"\n\t\t\trole="button" aria-haspopup="true"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t\t><td style="display:none !important;"\n\t\t\t><input ${!nameAttrSetting} type="${type}" value="${value}" data-dojo-attach-point="valueNode"\n\t\t\t\tclass="dijitOffScreen" aria-hidden="true" data-dojo-attach-event="onclick:_onClick"\n\t\t/></td></tr></tbody\n></table>\n'},function(e,t){e.exports='<tr class="dijitReset" data-dojo-attach-point="focusNode" role="${role}" tabIndex="-1" aria-checked="${checked}">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<span class="dijitInline dijitIcon dijitMenuItemIcon dijitCheckedMenuItemIcon" data-dojo-attach-point="iconNode"></span>\n\t\t<span class="dijitMenuItemIconChar dijitCheckedMenuItemIconChar">${!checkedChar}</span>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" data-dojo-attach-point="containerNode,labelNode,textDirNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" data-dojo-attach-point="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">&#160;</td>\n</tr>\n'},function(e,t){e.exports='<tr class="dijitMenuSeparator" role="separator">\n\t<td class="dijitMenuSeparatorIconCell">\n\t\t<div class="dijitMenuSeparatorTop"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n\t<td colspan="3" class="dijitMenuSeparatorLabelCell">\n\t\t<div class="dijitMenuSeparatorTop dijitMenuSeparatorLabel"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n</tr>\n'},function(e,t,i){var n,o;n=[i(203),i(217),i(210),i(318)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.VariableEditorDnD",[],{ValidDataFlavor:"text/workspacebrowser",ValidDropEffect:"copy",InvalidDropEffect:"none",_onDragEnter:function(e,t,n){n.preventDefault(),n.stopPropagation(),this.isDropZone(e,n)&&this.isValidDropObject(n)&&i.add(e,t)},isDropZone:function(e,i){var n=!1,o=t.position(e,!0);return o&&i.pageX>o.x&&i.pageX<o.x+o.w&&i.pageY>o.y&&i.pageY+5<o.y+o.h&&(n=!0),n},isValidDropObject:function(e){if(e.dataTransfer){if(e.dataTransfer.types.indexOf)return e.dataTransfer.types.indexOf(this.ValidDataFlavor)>-1;if(e.dataTransfer.types.contains)return e.dataTransfer.types.contains(this.ValidDataFlavor)}return!1},_onDragOver:function(e){return e.preventDefault(),e.stopPropagation(),this.isValidDropObject(e)?e.dataTransfer.dropEffect=this.ValidDropEffect:e.dataTransfer.dropEffect=this.InvalidDropEffect,!1},_onDragLeave:function(e,t,n){n.preventDefault(),n.stopPropagation(),this.isDropZone(e,n)||i.remove(e,t)},_onDrop:function(e,t,n){return n.preventDefault(),n.stopPropagation(),i.remove(e,t),!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(302),i(204),i(210),i(369),i(2275),i(483),i(209),i(714),i(292),i(1542)],o=i.dj.d(n,(function(e,t,n,o,r,a,s,l,c,d,u){return e("workspacebrowser.WorkspaceBrowserManager",[a],{_WSB_DOC_CLASS:"WorkspaceBrowserDocument",constructor:function(e){this.allArgs=e},_init:function(){this.inherited(arguments),this.channel="/LegacyWorkspaceBrowserManager",this.editable=!0,this.cssSpecifier="mw_type_WorkspaceBrowser",this.workspace="caller",this.fixedColumnWidths=!1,this.ignoreUpdates=!1,this.requestFocusOnStart=!1,this.cssSpecifier="mw_type_WorkspaceBrowser",this.dataTagRoot="motw.datatools.workspacebrowser",this.workspaceDocument=null,this.useJsDragDrop=!0,this.defaultContextId="workspace",this.allArgs&&(this.messageService=this.allArgs.messageService,this.channel=this.allArgs.channel||"/LegacyWorkspaceBrowserManager",this.contextId=this.allArgs.contextId="WorkspaceBrowser",this.workspace=this.allArgs.workspace||"caller",void 0===this.allArgs.editable?this.editable=!0:this.editable=this.allArgs.editable,void 0===this.allArgs.ignoreUpdates?this.ignoreUpdates=!1:this.ignoreUpdates=this.allArgs.ignoreUpdates,this.cssSpecifier=this.allArgs.cssSpecifier||"mw_type_WorkspaceBrowser",this.allArgs=this.allArgs,this.dataTagRoot=this.allArgs.dataTagRoot||"motw.datatools.workspacebrowser",this.cssSpecifier=this.allArgs.cssSpecifier||"mw_type_WorkspaceBrowser",void 0===this.allArgs.autoStart?this.autoStart=!0:this.autoStart=this.allArgs.autoStart,void 0===this.allArgs.fixedColumnWidths?this.fixedColumnWidths=!1:this.fixedColumnWidths=this.allArgs.fixedColumnWidths,void 0===this.allArgs.requestFocusOnStart?this.requestFocusOnStart=!1:this.requestFocusOnStart=this.allArgs.requestFocusOnStart),this.allArgs.showSummaryBar=!1,this.topicBase="/ML/"+this.channel,this.allArgs.topicBase=this.topicBase,t.subscribe("/nonModalDialogClose",this,"purgeAll"),this.manager=r.getInstance(this.channel),this.peerDocuments=[],this.variableListeners=[],this.hasFocus=!1,this.focusedDocument=null,this.managerListeners=[],this._setupListeners()},_setupListeners:function(){var e=this;this.addEventListener("variableAdded",(function(t){var i=t.data.peerDoc;e.workspaceDocument=i,s.logDebug("WSBManager: Document Added"),i.addEventListener("viewAdded",(function(t){s.logDebug("WSBManager: View Added");var i=t.data.peerDoc,o=t.data.peerView;e.dispatchEvent("workspaceReady",i.domNode,{workspaceBrowser:e,widget:i,view:o}),o.peerNode.addEventListener("peerEvent",n.hitch(e,"_handleVariableEvents"));var r=function(e){s.logDebug("WSBManager: View Ready");var t=e.data.peerView,i=t.table;i.domNode;i.startup&&i.startup(),t.table.sendSelectionRanges=!1,t.removeEventListener("viewReady",r,this)};o.addEventListener("viewReady",r)})),i.addEventListener("viewRemoved",(function(e){s.logDebug("WSBManager: View Removed")}))})),this.addEventListener("variableRemoved",(function(e){s.logDebug("WSBManager: Document Removed")}))},_initContextMenuManager:function(e,t){var i;try{i=c.getInstance()}catch(e){}if(void 0===i&&"/WSBContextMenuManager"===e){d.getInstance({actionService:null}).create({tag:"motwToolstrip",type:"Toolstrip"});i=c.getInstance({parentAppId:"motw",toolstripTag:"motwToolstrip",toolstripId:"toolstripId",uiContainer:null,qabContextualControlsActionMap:{}})}this.contextNameSpace=e,this.contextMenuManager=new u({namespace:e,mode:t,contextAppID:this.channel,contextManagerFactoryInstance:i})},_addDocument:function(e){this.inherited(arguments);var t=this.peerDocuments[e.getProperty("docID")];o.add(t.domNode,this._WSB_DOC_CLASS),this.allArgs.keyboardAccessibility&&(t.allArgs.keyBindingSelector="."+this._WSB_DOC_CLASS),this.allArgs.hasOwnProperty("SingleRowSelection")&&(t.allArgs.SingleRowSelection=this.allArgs.SingleRowSelection)},_handleVariableEvents:function(e){s.logDebug("WSBManager: peerEvent: "+e.data.type),e.data.type&&"VariablesAdded"===e.data.type&&this.workspaceDocument?e.data.Variables?(s.logDebug("WSBManager: VariablesAdded: "+e.data.Variables),this.dispatchEvent("variablesAdded",this.workspaceDocument.domNode,{workspaceBrowser:this,variables:e.data.Variables})):l.warn("WSBManager Server VariablesAdded with no variables."):e.data.type&&"VariablesRemoved"===e.data.type&&this.workspaceDocument?e.data.Variables?(s.logDebug("WSB: VariablesRemoved: "+e.data.Variables),this.dispatchEvent("variablesRemoved",this.workspaceDocument.domNode,{workspaceBrowser:this,variables:e.data.Variables})):l.warn("WSBManager Server VariablesRemoved with no variables."):e.data.type&&"VariablesChanged"===e.data.type&&this.workspaceDocument?e.data.Variables?(s.logDebug("WSBManager: VariablesChanged: "+e.data.Variables),this.dispatchEvent("variablesChanged",this.workspaceDocument.domNode,{workspaceBrowser:this,variables:e.data.Variables})):l.warn("WSBManager Server VariablesChanged with no variables."):e.data.type&&"error"===e.data.type&&(e.data.message?l.error(e.data.message):l.warn("WSBManager Server error with no message."))},getSelectedFields:function(){if(this.workspaceDocument&&this.workspaceDocument.clientPeerView&&this.workspaceDocument.clientPeerView.getSelectedFields)return this.workspaceDocument.clientPeerView.getSelectedFields()},destroy:function(){var e=this;Promise.resolve().then((function(){var t=[i(2502)];Promise.all(i.dj.w(t)).then(function(t){return function(t){t.deleteWorkspaceBrowser(e)}.apply(null,i.dj.u(t))}.bind(this))})).catch(i.oe)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7603),i(7604),i(7605),i(7606)],o=i.dj.d(n,(function(e,t){return t(e,"workspacebrowser/app/l10n/nls/app",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={helloWorld:"Hello World!",dialogTitle:"Title",title:"ワークスペース"}},function(e,t,i){e.exports={helloWorld:"Hello World!",dialogTitle:"Title",title:"工作区"}},function(e,t,i){e.exports={helloWorld:"Hello World!",dialogTitle:"Title",title:"작업 공간"}},function(e,t,i){e.exports={root:{helloWorld:"Hello World!",dialogTitle:"Title",title:"Workspace"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e([],{TIERS:{GUEST:"GUEST",LEU:"LEU"},constructor:function(e){this._actionReducer=e.actionReducer},setAccessTier:function(e){var i=new t;return"MLDO"===e.repository?this._useTier(this.TIERS.LEU):this._useTier(this.TIERS.GUEST),i.resolve(),i.promise},_useTier:function(e){switch(e){case this.TIERS.GUEST:this._actionReducer.removeFileActions();break;case this.TIERS.LEU:this._actionReducer.modifyFileOptions()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(226),i(1006),i(290),i(535)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{constructor:function(e){this.uiBuilder=e.uiBuilder;var t=document.createElement("style");document.head.appendChild(t),this._customStylesheet=t.sheet},curateLiveEditorExperience:function(){var e=new t;return this.removeBaseTabs(),this.hideLiveEditorActions(),this.removeActionFromLiveEditorContextMenu(),this.modifyRtcPaneHyperLinks(),e.resolve(),e.promise},removeBaseTabs:function(){this._removeTags(["motwToolstrip.matlabTab","motwToolstrip.plotsTab","motwToolstrip.appsTab","motwToolstrip.publishTab","motwToolstrip.liveEditorTab.file"]),this._customStylesheet.insertRule(".tabPlusButton {display: none;}",0),this._customStylesheet.insertRule(".tabCloseIcon {visibility: hidden;}",0)},removeFileActions:function(){this._removeTags(["motwToolstrip.editorTab.file","motwToolstrip.liveEditorTab.file"]),this._customStylesheet.insertRule(".tabPlusButton {display: none;}",0),this._customStylesheet.insertRule(".tabCloseIcon {visibility: hidden;}",0),this._customStylesheet.insertRule(".actionsButton {display: none;}",0)},hideLiveEditorActions:function(){this._customStylesheet.insertRule('.figurefloatingpalette[data-tag="OutputPopoutPalette"] {display: none;}',0),this._customStylesheet.insertRule(".figurePopoutButton {display: none;}",0)},_removeTags:function(e){e.forEach((function(e){try{var t=this.uiBuilder.tagToId(e);this.uiBuilder.remove(t)}catch(e){}}),this)},removeActionFromLiveEditorContextMenu:function(){this._customStylesheet.insertRule('tr[data-testid="contextMenu_rtc_evaluate_selection"] {display: none;}',0)},modifyRtcPaneHyperLinks:function(){this._customStylesheet.insertRule('.rtePane a[href^="matlab:"] { font-weight: normal !important; color: black; text-decoration: none; cursor: default; pointer-events: none; }',0)},modifyFileOptions:function(){if(!this._checkLiveEditorHasNewFileSection()){var e=this.uiBuilder.create({tag:"motwToolstrip.liveEditorTab.newFile",type:i.SECTION,title:r.fileSectionTitle}),t=this.uiBuilder.create({tag:"motwToolstrip.liveEditorTab.newFile.saveColumn",type:i.COLUMN,parentId:e}),a=(this.uiBuilder.create({type:i.PUSH_BUTTON,tag:"motwToolstrip.liveEditorTab.newFile.save",text:o.saveLabel,description:"Save all modified files (Ctrl+S)",icon:"save_24",parentId:t,actionId:n.SAVE}),this.uiBuilder.tagToId("motwToolstrip.liveEditorTab"));this.uiBuilder.add(e,a,0)}},_checkLiveEditorHasNewFileSection:function(){return this.uiBuilder.tagToId("motwToolstrip.liveEditorTab.newFile")}})}),e,t),e.exports=o},function(e,t,i){e.exports={showLabel:"ラベルの表示",hideLabel:"ラベルの非表示",removeFromQAB:"クイック アクセス ツール バーから削除",addToQAB:"クイック アクセス ツール バーに追加",restoreFactoryControls:"既定の設定に戻す",restoreFactoryControlsDialogTitle:"復元の確認",restoreFactoryControlsDialogMessage:"すべてのカスタマイズが削除され、クイック アクセス ツール バーが既定の設定に戻されます。​",minimizeToolstrip:"ツールストリップの最小化",restoreToolstrip:"ツールストリップの復元",showMore:"さらに表示",noSearchMatchNode:"検索に一致する項目はありません。",homeTabTitle:"ホーム",fileSectionTitle:"ファイル",navigateSectionTitle:"ナビゲート",editSectionTitle:"編集",codeSectionTitle:"コード",sectionSectionTitle:"セクション",textSectionTitle:"テキスト",formatSectionTitle:"形式",runSectionTitle:"実行",simulinkSectionTitle:"Simulink",variableSectionTitle:"変数",environmentSectionTitle:"環境",resourcesSectionTitle:"リソース",plotsTabTitle:"プロット",selectionSectionTitle:"選択",noVariableSelected:"変数が選択されていません",swapVariables:"変数の順番を切り替えます",andMore:"およびその他 ${0} 個",allPlots:"すべてのプロット",plotsForSelection:"${0} のプロット",selection:" 選択",plotsSectionTitle:"プロット",selectVariableToPlot:"プロットする変数を選択",noPlotsForSelection:"選択するプロットはありません",optionsSectionTitle:"オプション",reuseFigure:"Figure の再利用",plotIntoCurrentFigure:"現在の Figure にプロットを作成します",newFigure:"新規 Figure",plotIntoNewFigure:"新規 Figure にプロットを作成します",appsTabTitle:"アプリ",fileSectionTitle:"ファイル",appsSectionTitle:"アプリ",noAppsInstalled:"アプリがインストールされていません。",designAppLabel:"アプリの設計",designAppDescription:"App Designer を開いてアプリを作成または編集します",getMoreApps:"アプリをさらに取得",getMoreAppsButtonDescription:"さらにアプリを取得します",installApp:"アプリのインストール",installAppButtonDescription:"ダウンロードしたアプリをインストールします",installAppDialogOpenButtonText:"開く",bookmark:"ブックマーク",bookmarkDescription:"行に新しいブックマークを追加します",bookmarkSetClear:"ブックマークの設定/クリア",bookmarkSetClearDescription:"新しいブックマークを設定/クリアします",bookmarkNext:"次へ",bookmarkNextDescription:"次のブックマークに移動します",bookmarkPrev:"前へ",bookmarkPrevDescription:"前のブックマークに移動します"}},function(e,t,i){e.exports={showLabel:"레이블 표시",hideLabel:"레이블 숨기기",removeFromQAB:"빠른 액세스 도구 모음에서 제거",addToQAB:"빠른 액세스 도구 모음에 추가",restoreFactoryControls:"디폴트 값 복원",restoreFactoryControlsDialogTitle:"복원 확인",restoreFactoryControlsDialogMessage:"모든 사용자 지정이 삭제되고 빠른 액세스 도구 모음이 디폴트 설정으로 복원됩니다.​",minimizeToolstrip:"툴스트립 최소화",restoreToolstrip:"툴스트립 복원",showMore:"더 보기",noSearchMatchNode:"검색어와 일치하는 항목이 없습니다.",homeTabTitle:"홈",fileSectionTitle:"파일",navigateSectionTitle:"탐색",editSectionTitle:"편집",codeSectionTitle:"코드",sectionSectionTitle:"섹션",textSectionTitle:"텍스트",formatSectionTitle:"형식",runSectionTitle:"실행",simulinkSectionTitle:"Simulink",variableSectionTitle:"변수",environmentSectionTitle:"환경",resourcesSectionTitle:"리소스",plotsTabTitle:"플롯",selectionSectionTitle:"선택",noVariableSelected:"변수가 선택되지 않음",swapVariables:"변수 순서 전환",andMore:"및 ${0} 이상",allPlots:"모든 플롯",plotsForSelection:"${0}에 대한 플롯",selection:" 선택",plotsSectionTitle:"플롯",selectVariableToPlot:"플로팅할 변수 선택",noPlotsForSelection:"선택할 수 있는 플롯 없음",optionsSectionTitle:"옵션",reuseFigure:"Figure 재사용",plotIntoCurrentFigure:"현재 Figure로 플로팅합니다.",newFigure:"새 Figure",plotIntoNewFigure:"새 Figure로 플로팅합니다.",appsTabTitle:"앱",fileSectionTitle:"파일",appsSectionTitle:"앱",noAppsInstalled:"설치된 앱이 없습니다.",designAppLabel:"앱 디자인",designAppDescription:"앱을 만들거나 편집할 수 있는 앱 디자이너를 엽니다.",getMoreApps:"추가 앱 다운로드",getMoreAppsButtonDescription:"추가 앱을 다운로드합니다.",installApp:"앱 설치",installAppButtonDescription:"다운로드한 앱을 설치합니다.",installAppDialogOpenButtonText:"열기",bookmark:"책갈피",bookmarkDescription:"라인에 새 책갈피를 추가합니다.",bookmarkSetClear:"책갈피 설정/지우기",bookmarkSetClearDescription:"새 책갈피를 설정하거나 지웁니다.",bookmarkNext:"다음",bookmarkNextDescription:"다음 책갈피로 이동합니다.",bookmarkPrev:"이전",bookmarkPrevDescription:"이전 책갈피로 이동합니다."}},function(e,t,i){e.exports={showLabel:"显示标签",hideLabel:"隐藏标签",removeFromQAB:"从快速访问工具栏中删除",addToQAB:"添加到快速访问工具栏",restoreFactoryControls:"还原默认值",restoreFactoryControlsDialogTitle:"确认还原",restoreFactoryControlsDialogMessage:"所有自定义项都将被删除,快速访问工具栏也会还原为默认设置。​",minimizeToolstrip:"最小化工具条",restoreToolstrip:"还原工具条",showMore:"显示更多",noSearchMatchNode:"没有任何项目与您的搜索匹配。",homeTabTitle:"主页",fileSectionTitle:"文件",navigateSectionTitle:"导航",editSectionTitle:"编辑",codeSectionTitle:"代码",sectionSectionTitle:"节",textSectionTitle:"文本",formatSectionTitle:"格式",runSectionTitle:"运行",simulinkSectionTitle:"Simulink",variableSectionTitle:"变量",environmentSectionTitle:"环境",resourcesSectionTitle:"资源",plotsTabTitle:"绘图",selectionSectionTitle:"所选内容",noVariableSelected:"未选择变量",swapVariables:"切换变量顺序",andMore:"及其他 ${0} 个",allPlots:"所有绘图",plotsForSelection:"${0} 的绘图",selection:" 所选内容",plotsSectionTitle:"绘图",selectVariableToPlot:"选择要绘制的变量",noPlotsForSelection:"没有适用于所选内容的绘图",optionsSectionTitle:"选项",reuseFigure:"重用图窗",plotIntoCurrentFigure:"绘制到当前图窗中",newFigure:"新建图窗",plotIntoNewFigure:"绘制到新图窗中",appsTabTitle:"App",fileSectionTitle:"文件",appsSectionTitle:"App",noAppsInstalled:"未安装任何 App!",designAppLabel:"设计 App",designAppDescription:"打开 App 设计工具以创建或编辑 App",getMoreApps:"获取更多 App",getMoreAppsButtonDescription:"获取更多 App",installApp:"安装 App",installAppButtonDescription:"安装已下载的 App",installAppDialogOpenButtonText:"打开",bookmark:"书签",bookmarkDescription:"在行中添加新书签",bookmarkSetClear:"设置/清除书签。",bookmarkSetClearDescription:"设置/清除新书签",bookmarkNext:"下一个",bookmarkNextDescription:"转至下一书签",bookmarkPrev:"上一个",bookmarkPrevDescription:"转至上一书签"}},function(e,t,i){e.exports={root:{showLabel:"Show Label",hideLabel:"Hide Label",removeFromQAB:"Remove from Quick Access Toolbar",addToQAB:"Add to Quick Access Toolbar",restoreFactoryControls:"Restore Defaults",restoreFactoryControlsDialogTitle:"Confirm Restore",restoreFactoryControlsDialogMessage:"All customizations will be deleted and the Quick Access Toolbar will be restored to the default settings.​",minimizeToolstrip:"Minimize Toolstrip",restoreToolstrip:"Restore Toolstrip",showMore:"Show more",noSearchMatchNode:"No items match your search.",homeTabTitle:"Home",fileSectionTitle:"File",navigateSectionTitle:"Navigate",editSectionTitle:"Edit",codeSectionTitle:"Code",sectionSectionTitle:"Section",textSectionTitle:"Text",formatSectionTitle:"Format",runSectionTitle:"Run",simulinkSectionTitle:"Simulink",variableSectionTitle:"Variable",environmentSectionTitle:"Environment",resourcesSectionTitle:"Resources",plotsTabTitle:"Plots",selectionSectionTitle:"Selection",noVariableSelected:"No Variable Selected",swapVariables:"Switch Variable Order",andMore:"and ${0} more",allPlots:"All Plots",plotsForSelection:"Plots for${0}",selection:" Selection",plotsSectionTitle:"PLOTS",selectVariableToPlot:"Select variable to plot",noPlotsForSelection:"No plots for selection",optionsSectionTitle:"Options",reuseFigure:"Reuse Figure",plotIntoCurrentFigure:"Plot into current figure",newFigure:"New Figure",plotIntoNewFigure:"Plot into new figure",appsTabTitle:"Apps",fileSectionTitle:"File",appsSectionTitle:"Apps",noAppsInstalled:"No Apps installed!",designAppLabel:"Design App",designAppDescription:"Open App Designer to create or edit an app",getMoreApps:"Get More Apps",getMoreAppsButtonDescription:"Get More Apps",installApp:"Install App",installAppButtonDescription:"Install downloaded App",installAppDialogOpenButtonText:"Open"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(7614),i(7616),i(7621),i(7628),i(1222),i(1612)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s,l,c,d,u;return e([],{constructor:function(e){s=e.executionService,e.featureService,l=e.actionService,c=e.iframeLayoutManager,d=e.uiBuilder,u=e.settingsService},start:function(){l.loadActions(t({executionService:s})),this._initCommunicationWithMATLAB(),this.addGetAddOnsToolstripEntry(),u.getSetting(["matlab","desktop","currentfolder","layout"],"GroupMode").then((function(e){var t;(t=a).initialize(["addOns"]),t.start()}))},addGetAddOnsToolstripEntry:function(){new o({uiBuilder:d,actionService:l}).add()},reset:function(){i.destroy(),n.destroy()},_initCommunicationWithMATLAB:function(){i.initialize({iframeLayoutManager:c}),n.initialize()},getAddOnsRoot:function(){return"/MATLAB Add-Ons"},_updateToolstripAction:function(e,t){l&&l.updateAction(e,t)},enableGetAddOns:function(){this._updateToolstripAction(r.GET_ADDONS,{enabled:!0})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1222),i(299),i(1007)],o=i.dj.d(n,(function(e,t,i){return function(t){var i,n=[];return n.push((i=t.executionService,{id:e.GET_ADDONS,enabled:!0,callback:function(){i.executionEval("com.mathworks.addons.AddonsLauncher.showExplorer('AddOns')")}})),n.push(function(t){return{id:e.MANAGE_ADDONS,enabled:!0,callback:function(){t.executionEval("com.mathworks.addons.AddonsLauncher.showManager('manageaddons')")}}}(t.executionService)),n}}),e,t),e.exports=o},function(e,t,i){e.exports={root:{saveToMatlabDriveDialogTitle:"Save to MATLAB Drive",saveToMatlabDriveDialogButtonSaveLabel:"Save",getAddOns:"Get Add-Ons",manageAddOns:"Manage Add-Ons",addOns:"Add-Ons",addOnsButtonDescription:"Extend MATLAB capabilities with MathWorks toolboxes, hardware support, and community submissions",checkForUpdates:"Check for Updates"}}},function(e,t,i){var n,o;n=[i(219),i(7617),i(853),i(2503),i(280)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a,s,l=function(e){"openWindow"===e.data.type?d(e.data.body):"openUrl"===e.data.type&&u(e.data)},c=function(){r&&(r=void 0,a.remove(),p(!1))},d=function(t){r?e.publish(i.EXPLORER_CHANNEL,t.navigateTo):h(t),r.bringToFront()},u=function(t){t.body.url&&(t.body.url=n.getResolvedUrl(t.body.url),e.publish(i.EXPLORER_CHANNEL,t))},h=function(e){(r=new t({title:e.title,iframeLayoutManager:s})).show(n.getResolvedExplorerUrl(e.url)),a=r.on("onClose",c),p(!0)},p=function(t){var n={type:"explorerWindowState",isOpen:t};e.publish(i.EXPLORER_CHANNEL,n)};return{initialize:function(t){e.subscribe(i.EXPLORER_CHANNEL,l),s=t.iframeLayoutManager},destroy:function(){e.unsubscribe(i.EXPLORER_CHANNEL,l),r&&r.close()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1223)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this._title=e.title,this._iframeLayoutManager=e.iframeLayoutManager,this._peerNodeId="addOnWindow_"+Math.random()},show:function(e){this.showIframe({host:e,name:this._title,maximize:!1,peerNodeId:this._peerNodeId})},bringToFront:function(){this._iframeLayoutManager.restore(this._peerNodeId),this._iframeLayoutManager.bringToTop(this._peerNodeId)},removeWindow:function(e){this.inherited(arguments),this.emit("onClose",{})},close:function(){this.removeWindow(this._peerNodeId)},getTitle:function(){return this._title}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(217),i(204),i(222),i(206),i(215),i(216),i(255),i(7619),i(7620)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([a,s,l,o],{templateString:c,constructor:function(e,t){this.browserSupport=!0,this.isMoving=!1,!1===t&&(this.templateString=d,this.browserSupport=!1),this.layoutWidgetId=e.peerNodeId,this.style="width:"+e.position[2]+"px; height:"+e.position[3]+"px;",this.onLoad=e.onLoad||function(){}},postCreate:function(){var e=this;this.browserSupport&&(this.frame.src=this.host,this.frame.onreadystatechange?this.frame.onreadystatechange=this.onLoad:this.frame.onload=this.onLoad,this.update(this.position[2],this.position[3]),r(this.transparentDiv,"click, mouseup, MSPointerUp",(function(){e.isMoving=!1,e.onBringToTop()})),this.emit("onWidgetStartup"))},destroyRecursive:function(){},update:function(e,i){this.browserSupport&&(t.set(this.domNode,{width:e+"px",height:i+"px"}),t.set(this.transparentDiv,{width:e+"px",height:i+"px"}),this.frame.width=e,this.frame.height=i)},onBringToTop:function(){this.isMoving||t.set(this.transparentDiv,{display:"none"}),this.emit("onBringToTop")},onSendBack:function(){t.set(this.transparentDiv,{display:"block"}),this.emit("onSendBack")},getPosition:function(){return i.position(this.domNode)},onResize:function(e){if(this.browserSupport){var t=this.getPosition(),i=[t.y,t.x,e.w,e.h];this.update(e.w,e.h),this.emit("onContainerResize",i)}}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="iframecontainer">\n <iframe data-dojo-attach-point="frame"></iframe>\n <div data-dojo-attach-point="transparentDiv" class="transparentDiv"></div>\n</div>'},function(e,t){e.exports='<div>\n <div style="vertical-align: middle; text-align: center; display: table-cell">\n This content cannot be displayed in the browser you are using, please use latest version of Google Chrome.\n </div>\n<div data-dojo-attach-point="transparentDiv" class="transparentDiv"></div>\n</div>'},function(e,t,i){var n,o;n=[i(219),i(853),i(7622)],o=i.dj.d(n,(function(e,t,i){var n=function(e){var t=e.data;i[t.type]&&i[t.type](t.body)};return{initialize:function(){e.isRunning()||e.start(),e.subscribe(t.GENERAL_PURPOSE_SUBSCRIPTION_CHANNEL,n)},destroy:function(){e.unsubscribe(t.GENERAL_PURPOSE_SUBSCRIPTION_CHANNEL,n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7623),i(7627),i(280),i(853),i(2503),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r){return{openInSystemBrowser:function(e){window.open(e)},showBalloonTooltipNotification:function(t){(new e).show(t)},showSaveToMatlabDriveDialog:function(e){new t({metadataFileUrl:e.metadataFileUrl}).show()},refreshOpenFolders:function(){i.fileDataService.refreshOpenFolders()},resolveInstallerUrlAndOpenInManager:function(e){var t={type:"openResolvedInstallerUrlInManager",url:o.getResolvedUrl(e)};r.publish(n.GENERAL_PURPOSE_PUBLISH_CHANNEL,t)},resolveExplorerUrlAndOpenExplorer:function(e){var t={type:"openExplorerWithResolvedUrl",url:o.getResolvedExplorerUrl(e)};r.publish(n.GENERAL_PURPOSE_PUBLISH_CHANNEL,t)},resolveUrlInOpenUrlMessageAndShowInExplorer:function(e){var t=JSON.parse(e),i=t.url,a=o.getResolvedUrl(i);t.url=a;var s={type:"showResolvedUrlInExplorer",body:t};r.publish(n.GENERAL_PURPOSE_PUBLISH_CHANNEL,s)},enableGetAddOns:function(e){i.addOnsService.enableGetAddOns()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(204),i(230),i(231),i(219),i(514),i(7624),i(853),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([n],{show:function(e){this._addOnIdentifier=e.addOnIdentifier,this._addOnType=e.addOnType.toLowerCase(),this._targetNode=t(e.selectorForTooltipSourceDomNode)[0],this.own(this._balloonTooltipDialog=new s({addOnName:e.addOnName,icon:e.icon,notificationTitle:e.notificationTitle,onClickHandler:i.hitch(this,this._onClickHandlerForApp),targetNode:this._targetNode})),("app"===this._addOnType||a.isElementInViewport(this._targetNode))&&this._balloonTooltipDialog.show()},_onClickHandlerForApp:function(){var e=o.getEnclosingWidget(t('[data-tag="motwToolstrip.appsTab.apps.column1.appsGallery"]')[0]);this._targetNode.click(),e.toggleDropDown()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(30),i(277),i(356),i(204),i(7625)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{constructor:function(e){this._addOnName=e.addOnName,this._icon=e.icon,this._notificationTitle=e.notificationTitle,this._onClickHandler=e.onClickHandler,this._targetNode=e.targetNode},show:function(){this._contentWidget=new a({addOnName:this._addOnName,icon:this._icon,notificationTitle:this._notificationTitle}),this._balloonTooltip=new i({onClick:this._onClickHandler}),this._balloonTooltip.set("content",this._contentWidget.domNode),n.open({popup:this._balloonTooltip,around:this._targetNode,orient:["below-centered"]}),o.fadeOut({node:t.byId(this._balloonTooltip.id),duration:5e3,onEnd:r.hitch(this,this._close)}).play()},_close:function(){n.close(this._balloonTooltip),this._balloonTooltip.destroyRecursive()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(216),i(203),i(228),i(7626)],o=i.dj.d(n,(function(e,t,i,n,o){return i([e,t],{templateString:o,constructor:function(e){this._addOnName=e.addOnName,this._icon=e.icon,this._notificationTitle=e.notificationTitle},postCreate:function(){this.notificationTitle.innerHTML=this._notificationTitle,this.iconDataNode.src=this._icon,this.addOnName.innerHTML=this._addOnName;var e,t,i=(e=this._addOnName,t=new RegExp("\\W","g"),"install-notification-balloon-tooltip-content-"+e.replace(t,"-"));n.set(this.domNode,"data-tag",i)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="installNotificationContentContainer" class="installNotificationContentContainer" align="center">\n <div data-dojo-attach-point="notificationTitle" class="notificationTitle"></div>\n <img class="balloonNotificationIcon" src="" data-dojo-attach-point="iconDataNode" alt=""/>\n <div data-dojo-attach-point="addOnName" class="addOnName"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(230),i(850),i(280),i(853),i(219),i(1007)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([i],{constructor:function(i){this._metadataFileUrl=i.metadataFileUrl,this.fileChooser=e([n])({fileService:o.fileDataService,pathService:o.pathService,actionService:o.actionService,style:{width:"425px",height:"425px"},approveButtonText:s.saveToMatlabDriveDialogButtonSaveLabel,selectionMode:1,excludeOnlyRoots:[o.addOnsService.getAddOnsRoot()]}),this.fileChooser.on("okButtonClicked",t.hitch(this,(function(e){this._save(e)}))),this.fileChooser.on("cancelButtonClicked",t.hitch(this,(function(){this._close()}))),this.fileChooser.onClose=function(){this._close()}.bind(this)},_save:function(e){var t={type:"downloadAndExtractToDestinationUsingMetadataFile",downloadLocation:e.selectedNode[0].path,metadataFileUrl:this._metadataFileUrl};a.publish(r.GENERAL_PURPOSE_PUBLISH_CHANNEL,t),this._close()},show:function(){this.fileChooser.startup(),o.layoutService.addWidget("SaveToMatlabDriveDialog","newDialog",this.fileChooser,{title:s.saveToMatlabDriveDialogTitle})},_close:function(){o.layoutService.removeWidget("SaveToMatlabDriveDialog")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(226),i(2504),i(7629),i(1222),i(1007)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s,l,c;return e([],{constructor:function(e){a=e.uiBuilder,s=e.actionService},add:function(){this._addColumn(),this._addSplitButton()},remove:function(){a.destroy(c),a.destroy(l),n.popups.forEach((function(e){a.destroy(a.tagToId(e.tag))}))},_addColumn:function(){var e={tag:i.ADDONS_COLUMN,type:t.COLUMN};l=a.create(e);var n=a.tagToId(i.ENVIRONMENT_SECTION);a.add(l,n,2)},_addSplitButton:function(){a.createPopupsFromConfig(n);var e={tag:i.SPLIT_BUTTON,actionId:o.GET_ADDONS,type:t.SPLIT_BUTTON,textOverride:r.addOns,descriptionOverride:r.addOnsButtonDescription,icon:"icon_addons_24",quickAccessIcon:"icon_addons_16",mnemonic:"D",popupTag:i.ADDONS_POPUP_LIST};c=a.create(e),a.add(c,l,0),s.updateAction(o.GET_ADDONS,{enabled:!1})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(1222),i(2504),i(1007)],o=i.dj.d(n,(function(e,t,i,n){return{popups:[{tag:i.ADDONS_POPUP_LIST,type:e.POPUP_LIST,children:[{tag:i.GET_ADDONS_MENU_ITEM,actionId:t.GET_ADDONS,type:e.LIST_ITEM,text:n.getAddOns,icon:"icon_addons_24",quickAccessIcon:"icon_addons_16",showDescription:!1},{tag:i.MANAGE_ADDONS_MENU_ITEM,actionId:t.MANAGE_ADDONS,type:e.LIST_ITEM,text:n.manageAddOns,icon:"icon_manage_addons_24",quickAccessIcon:"icon_manage_addons_16",showDescription:!1}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(225),i(210),i(211),i(213),i(206),i(222),i(223),i(246),i(204),i(306),i(285),i(650),i(238),i(216),i(386),i(7631),i(209),i(1371),i(7637),i(7638),i(241),i(233),i(468),i(7639),i(339),i(377),i(1220),i(2505)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N){return e([m,g,s],{templateString:w,constructor:function(e){S.mark("addressbarStart"),this._fileService=e.fileService,this._fileIconProvider=e.fileIconProvider,this._pathService=e.pathService,this._layoutService=e.layoutService,this._pathDataServiceFaultHandler=e.pathDataServiceFaultHandler,this._addressBarService=e.addressBarService,this._settingsService=e.settingsService,this._communicationAvailable=e.communicationAvailable,this._hasMeasuredTiming=!1},resize:function(e){this.inherited(arguments),this._resize(e.w,this.domNode),this.navigationBarWidget&&this.navigationBarWidget.resizeWidget(e)},_resize:function(e,t){var i=dijit.getEnclosingWidget(t);if(i.navigationBarWidget){var n=i.navigationBarWidget.locationNodeWithIcon;r.set(n,{width:(e-(i.navigationBarWidget.actionToolbar.actionToolbarContainer.offsetWidth+18)).toString()+"px"})}},_initializeNavigationBar:function(t,i){return this._getActionsList().then(function(n){this.navigationBarWidget=e([b,y,C])({currentLocation:t,userActionsList:n,getChildNodes:d.hitch(this,this._getChildNodesASynchronously),getIntelliHints:d.hitch(this,this._getIntelliHints),metaData:{locationIcon:i.icon||"",hasChildren:void 0===i.hasChildren||i.hasChildren,displayName:this._getLocationText(t,i.friendlyNameLocation),breadCrumbObjectsArray:""!==t?this._getBreadCrumbObjectsArray(t,i.friendlyNameLocation):[]},iconAriaLabelPrefix:N.currentFolder,breadCrumbLabelPrefix:N.navigateTo}),a(this.navigationBarWidget,"locationChanged",function(e){this._cdToLocation(e)}.bind(this)),a(this.navigationBarWidget,"rebuildLocationNode",d.hitch(this,(function(e){this._removeFolderDropdownTextNode()}))),a(this._pathService,"accessibleRoots",d.hitch(this,(function(e){if(this.callback&&this.callback.listFolderComplete&&!this.callback.listFolderComplete.isResolved())this._handleJavaAccessibleRootsResponse(e.data);else if(this.callback&&this.callback.listOfLocationOptions&&!this.callback.listOfLocationOptions.isResolved()&&e.data.directories){let t={directories:e.data.directories.map(e=>e.fileInfo),parentPath:e.data.parentPath};this._handleLocationOptionsResponse(t)}}))),a(this._addressBarService,"listFolderResponse",d.hitch(this,this._handleListFolderResponse)),a(this._addressBarService,"listOfLocationOptionsResponse",d.hitch(this,this._handleLocationOptionsResponse)),a(this.domNode,"keydown",d.hitch(this,this._handleTabKeyboardAccessibility)),this.emit("initialized")}.bind(this))},postCreate:function(){this._navigationBarInitialied=this._initializeNavigationBar(this._pathService.getCurrentFolderPath(),{}),this._navigationBarInitialied.then(function(){this.navigationBarWidget.placeAt(this.addressBarContainer),n.add(this.navigationBarWidget.actionToolbar.actionToolbarContainer,"disableActions"),this.navigationBarWidget.startup(),this._resize(this.addressBarContainer.offsetWidth,this.addressBarContainer);var e=this.navigationBarWidget.locationNodeWithIcon.offsetWidth-this.navigationBarWidget.iconNode.parentNode.offsetWidth-4;this.navigationBarWidget.currentLocationNode.style.width=e+"px",a(this._pathService,"CWDChanged",function(e){this.navigationBarWidget.removeBusyMode();var t=E.pathFromFileInfo(e);this._setCurrentLocationAndRemoveFolderTextNode(t)}.bind(this)),a(this._pathService,"ReadyToInteract",function(e){e&&(this.navigationBarWidget.removeBusyMode(),this._setCurrentLocationAndRemoveFolderTextNode(e),this._measureTiming())}.bind(this)),a(this._pathDataServiceFaultHandler,"CWDFault",function(e){n.remove(this.navigationBarWidget.actionToolbar.actionToolbarContainer,"disableActions"),this.navigationBarWidget.isNavigatingBackOrForward()&&this.navigationBarWidget.reset()}.bind(this)),a(this._pathService,"cwdNotChanged",function(e){this.navigationBarWidget.navigatingBackOrForward=!0,this._setCurrentLocationAndRemoveFolderTextNode(this._pathService.getCurrentFolderPath())}.bind(this)),""===this._pathService.getCurrentFolderPath()?this.navigationBarWidget.showBusyAffordance():(this._setCurrentLocationAndRemoveFolderTextNode(this._pathService.getCurrentFolderPath()),this._measureTiming()),this._refuseFocusToAddressBar()}.bind(this))},_measureTiming:function(){this._hasMeasuredTiming||(S.mark("addressbarReady"),S.measure("Addressbar","addressbarStart","addressbarReady"),this._hasMeasuredTiming=!0)},startup:function(){},_cdToLocation:async function(e){let t=e.split(E.getFileSeparator(e)),i=function(e){return 0===e.indexOf("/")?"/":e.match(/^\\\\/)?"\\\\":""}(e),o="/"===this._pathService.getCurrentFolderPath()?"/":this._pathService.getCurrentFolderPath()+E.getFileSeparator(e);if(i=function(e,t,i){for(var n=0;n<e.length;n++){var o=e[n];if(""!==o){for(;o.match(/\.$/)||o.match(/\/$/)||o.match(/\\$/);)o=(o=(o=o.replace(/\.$/,"")).replace(/\/$/,"")).replace(/\\$/,"");""!==o&&(t=t+o+E.getFileSeparator(i))}}return t}(t,i,e),i===o)this.navigationBarWidget.navigatingBackOrForward=!0,this._setCurrentLocationAndRemoveFolderTextNode(this._pathService.getCurrentFolderPath());else{n.add(this.navigationBarWidget.actionToolbar.actionToolbarContainer,"disableActions");try{await this._pathService.setCwd(e)}catch(e){this._setCurrentLocationAndRemoveFolderTextNode(this._pathService.getCurrentFolderPath())}}},_removeFolderDropdownTextNode:function(){if(""===this.navigationBarWidget.breadCrumbsModule.breadCrumbsParentNode.children[0].getAttribute("data-test-id")){var e=dijit.registry.getEnclosingWidget(this.navigationBarWidget.breadCrumbsModule.breadCrumbsParentNode.children[0]);o.destroy(e.buttonNode)}},_setCurrentLocationAndRemoveFolderTextNode:function(e){this._pathService.getCwdMetaData(e).then(function(t){var i={locationIcon:t.icon,hasChildren:t.hasChildFolders,displayName:this._getLocationText(e,t.friendlyNameLocation),breadCrumbObjectsArray:this._getBreadCrumbObjectsArray(e,t.friendlyNameLocation)};this.navigationBarWidget.setCurrentLocation(e,i),new RegExp("^/[a-zA-Z]*").test(e)||this._removeFolderDropdownTextNode(),n.remove(this.navigationBarWidget.actionToolbar.actionToolbarContainer,"disableActions")}.bind(this))},_getIntelliHints:function(e){return this.listOfLocationOptions=new u,this.callback={listOfLocationOptions:this.listOfLocationOptions,path:""===e?"/":e},h(this.callback.listOfLocationOptions,(function(e){return e})),""===e?this._pathService.getAccessibleRoots():this._addressBarService.listOfLocationOptions(e),this.callback},_handleLocationOptionsResponse:function(e){for(var t=e.directories,i=e.parentPath,n=[],o=0;o<t.length;o++){let e=t[o].path||E.pathFromFileInfo(t[o]);n.push(e)}this.callback.path===i&&(this.callback.folders=n,this._handleCallback(this.callback))},_getChildNodesASynchronously:function(e){return this.listFolderComplete=new u,this.callback={listFolderComplete:this.listFolderComplete,path:e.path},h(this.callback.listFolderComplete,(function(e){return e})),"/"===e.path?(this._pathService.refreshFileSystemAccessibleRoots(),this._pathService.getAccessibleRoots()):this._addressBarService.listFolders(e.path),this.callback},_handleListFolderResponse:function(e){for(var t=e.directories,i=e.parentPath,n=[],o=0;o<t.length;o++){var r={};r.label=t[o].name,r.path=t[o].path,r.icon=this._fileIconProvider.getIconData(t[o]),n.push(r)}this.callback.path===i&&(this.callback.folders=n,this._handleCallback(this.callback))},_handleJavaAccessibleRootsResponse:function(e){for(var t=e.directories,i=e.parentPath,n=[],o=0;o<t.length;o++){var r={};r.label=t[o].metaData.displayName||t[o].fileInfo.name,r.path=t[o].fileInfo.path||t[o].fileInfo.location+t[o].fileInfo.name,r.icon=t[o].metaData.icon,n.push(r)}this.callback.path===i&&(this.callback.folders=n,this._handleCallback(this.callback))},_handleCallback:function(e){e.listFolderComplete?e.listFolderComplete.resolve(e):e.listOfLocationOptions&&e.listOfLocationOptions.resolve(e)},_getBreadCrumbObjectsArray:function(e,t){var i=[],n=[],o=this._getFolderDropdown(e),r={pathToNavigateOnClick:o.location,textToDisplay:o.text};n.push(r);var a=this._getFirstElement(e,t),s={};if(void 0!==a){s={pathToNavigateOnClick:a.location,textToDisplay:a.text},n.push(s);var l=e.substring(a.location.length,e.length).split(E.getFileSeparator(e));i=i.concat(l);for(var c=s.pathToNavigateOnClick,d=0;d<i.length;d++)if(""!==i[d]){var u=i[d],h={pathToNavigateOnClick:c=c+u+E.getFileSeparator(e),textToDisplay:u};n.push(h)}}return n},_getFolderDropdown:function(e){return new RegExp("^/[a-zA-Z]*").test(e)?{location:"/",text:"/"}:{location:"/",text:""}},_getFirstElement:function(e,t){var i=new RegExp("^\\\\[A-Za-z0-9_]*");if(t&&0!==Object.getOwnPropertyNames(t).length)return this._getFriendlyNameBreadCrumb(t,e);if(window.navigator.platform.match("Win")&&0!==window.navigator.platform.match("Win").length&&i.test(e))return this._getUNCPathBreadCrumb(e);var n=new RegExp("^/[a-zA-Z]*"),o=this._getNormalPathBreadCrumb(e);return n.test(e)&&o&&(o.location="/"+o.location),o},_getNormalPathBreadCrumb:function(e){if("/"!==e){var t=0;do{var i=e.split(E.getFileSeparator(e))[t];t++}while(""===i);return{location:i+E.getFileSeparator(e),text:i}}},_getFriendlyNameBreadCrumb:function(e,t){var i=Object.keys(e)[0];return{location:e[Object.keys(e)[0]]+E.getFileSeparator(t),text:i}},_getUNCPathBreadCrumb:function(e){var t=e.split(E.getFileSeparator(e));if(""!==t)for(var i=0;i<t.length;i++)if(""!==t[i]){var n="\\\\"+t[i]+E.getFileSeparator(e)+t[i+1];return{location:n+E.getFileSeparator(e),text:n}}},_getActionsList:function(){return _.getRegistry({pathService:this._pathService,layoutService:this._layoutService,fileService:this._fileService,communicationAvailable:this._communicationAvailable})},_getLocationText:function(e,t){var i,n=this._pathService.getFriendlyLocation(t);if(n.length>0){var o=Object.keys(t)[0];if(n===e)i=o;else i=o+e.substring(n.length,e.length)}else i=e;return i},focus:function(){},onBlur:function(){this._refuseFocusToAddressBar()},focusContainer:function(){this.domNode.contains(document.activeElement)?"INPUT"===document.activeElement.nodeName&&document.activeElement.blur():(this._temporaryFocusToAddressBar(),this.navigationBarWidget.focus())},_refuseFocusToAddressBar:function(){A.refuseFocus(this.navigationBarWidget.domNode),A.temporaryFocus(this.navigationBarWidget.textField.domNode),A.temporaryFocus(this.navigationBarWidget.iconNode),A.refuseFocus(this.navigationBarWidget.breadCrumbsModule.breadCrumbsParentNode)},_temporaryFocusToAddressBar:function(){A.temporaryFocus(this.navigationBarWidget.domNode)},_nextFocusableButton:function(e,t){var i=this.navigationBarWidget.breadCrumbsModule.breadCrumbsParentNode.children,n=Array.prototype.slice.call(i),o=n.indexOf(t.parentNode);"right"===e?(o===n.length-1&&(o=-1),++o):(0===o&&(o=n.length),--o);var r=n[o].querySelector('[tabindex="0"]');f.focus(r)},_handleTabKeyboardAccessibility:function(e){this._temporaryFocusToAddressBar();var t=e.target;if(e.keyCode===l.TAB){var i=p._getTabNavigable(this.domNode);this._firstFocusItem=i.lowest||i.first,this._lastFocusItem=i.last||i.highest||this._firstFocusItem,t===this._firstFocusItem&&e.shiftKey?(f.focus(this._lastFocusItem),c.stop(e)):t!==this._lastFocusItem||e.shiftKey||(f.focus(this._firstFocusItem),c.stop(e))}var n=this.navigationBarWidget.breadCrumbsModule.breadCrumbsParentNode.querySelector('[tabindex="0"]');if(t.parentNode.classList.contains("breadCrumbsFocused")){var o=this.navigationBarWidget.historyNode.querySelector('[tabindex="0"]'),r=this.navigationBarWidget.iconNode;e.keyCode===l.TAB?(e.shiftKey?f.focus(r):f.focus(o),c.stop(e)):e.keyCode===l.ENTER||e.keyCode===l.SPACE?t===n&&this.navigationBarWidget.locationNodeOnClickListener():e.keyCode===l.UP_ARROW||e.keyCode===l.DOWN_ARROW?this.navigationBarWidget.breadCrumbsModule.handleArrowNodeDropDownClick(t):e.keyCode===l.RIGHT_ARROW?(this._nextFocusableButton("right",t),c.stop(e)):e.keyCode===l.LEFT_ARROW&&(this._nextFocusableButton("left",t),c.stop(e))}t.parentNode.parentNode&&t.parentNode.parentNode.classList.contains("historyNode")&&e.keyCode===l.TAB&&e.shiftKey&&(f.focus(n),c.stop(e))},locationDataBuilder:async function(e){let t=[];for(let n of e)if(n){let e=E.fileInfoFromPath(n),o=await this._fileIconProvider.getIconData(e);null!==o.iconData&&void 0!==o.iconData&&o.iconData&&(o=o.iconData);var i=await this._pathService.getCwdMetaData(n);let r={path:n,icon:o,text:this._getLocationText(n,i.friendlyNameLocation)};t.push(r)}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(546),i(576),i(471),i(7632),i(219),i(232),i(306),i(2505)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=new o({moduleLoader:new t,registrationFramework:i.getRegistrationFramework(),addressButtonResourceSpecification:{resourceName:"addressButtonModuleDef",resourceType:n.JSON}});return{getRegistry:function(e){return c.subscribeAndGetLoadedAddressButtonModules({pathService:e.pathService,layoutService:e.layoutService,fileService:e.fileService,communicationAvailable:e.communicationAvailable,addressbarL10n:l})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(209),i(1001)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{constructor:function(e){this._moduleLoader=e.moduleLoader,this._registrationFramework=e.registrationFramework,this._addressButtonResourceSpecification=e.addressButtonResourceSpecification,this._addressButtonModuleFileMap={},this.isInitialListReady=!1,this._hasNotificationBeenReceived=!1,this._addressButtonRegistrationPoint={registered:function(e){},unregistered:function(e){},enabled:function(e){this._addressButtonModuleFileMap[e.resourcesFile]||this._hasNotificationBeenReceived||this.isInitialListReady||(this._hasNotificationBeenReceived=!0,this._registrationFramework.getResourceList(this._addressButtonResourceSpecification,"enabled").then(function(e){if(!Array.isArray(e)){var t=this._registerModuleDefObj.bind(this),i=this._pluginManager._matchingResourcesToLoadInitiallyFcn(e,t);this._pluginManager.loadWithModuleLoader(i.reduce((function(e,t){return e.concat(t)}),[]),!1).then(function(e){this.getLoadedAddressButtonModules(this._subscriptionArgs).then(function(e){this._loadedModulePromise.resolve(e),this.isInitialListReady=!0}.bind(this))}.bind(this))}}.bind(this)))}.bind(this),disabled:function(e){if(this._addressButtonModuleFileMap[e.resourcesFile]){var t=this._addressButtonModuleFileMap[e.resourcesFile];this._pluginManager.removeModuleDefFromRegistry(t.addressButtonModuleName),this._pluginManager.removeLoadedModulesFromRegistry(t.moduleDef.provides),delete this._addressButtonModuleFileMap[e.resourcesFile]}}.bind(this)},this._pluginManager=new o({moduleLoader:e.moduleLoader,registrationFramework:e.registrationFramework,resourceSpecification:this._addressButtonResourceSpecification,registerModuleDefObjFcn:this._registerModuleDefObj.bind(this),registrationPoint:this._addressButtonRegistrationPoint})},_registerModuleDefObj:function(e,t){if(!this._pluginManager.isModuleRegistered(e.resourcesFileContents.addressButtonModuleName))return e=this._pluginManager.updateModuleDefObjForEnvironment(e),this._pluginManager.addModuleDefToRegistry(e.resourcesFileContents.addressButtonModuleName,e.resourcesFileContents),this._addressButtonModuleFileMap[e.resourcesFile]=e.resourcesFileContents,t.register([e.resourcesFileContents.moduleDef]);n.error("Module '"+e.resourcesFileContents.addressButtonModuleName+"' already registered.")},subscribeAndGetLoadedAddressButtonModules:function(e){return this._subscriptionArgs=e,this._loadedModulePromise=new t,e.communicationAvailable.then(function(e){return this._pluginManager.subscribeAndLoadModules(e,!1)}.bind(this)).then(function(){return this.getLoadedAddressButtonModules(e)}.bind(this)).then(function(e){e.length>0&&(e.sort((e,t)=>e.id<t.id?1:-1),this.isInitialListReady=!0,this._loadedModulePromise.resolve(e))}.bind(this)),this._loadedModulePromise},getLoadedAddressButtonModules:function(t){return this._pluginManager.areModulesLoaded().then(async function(){const i=this._pluginManager.getRegisteredModuleNames(),n=await this._pluginManager.getLoadedModules(i),o=Object.values(n);return(await Promise.all(o.map((async function(i){const n=e([i])({pathService:t.pathService,layoutService:t.layoutService,fileService:t.fileService,addressbarL10n:t.addressbarL10n});if(n.isVisible){return await n.isVisible()?n:void 0}return n})))).filter(e=>e).sort((e,t)=>e.id<t.id?1:-1)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){e.exports={BrowseForFolder:"フォルダーの参照",backNavigation:"戻る",currentFolder:"現在のフォルダー",cwdFaultErrorDialogTitle:"フォルダーの変更エラー",folderChooserTitle:"新規フォルダーの選択",forwardNavigation:"進む",navigateTo:"移動先",upOneLevel:"1 つ上のレベル"}},function(e,t,i){e.exports={BrowseForFolder:"폴더 찾아보기",backNavigation:"뒤로",currentFolder:"현재 폴더",cwdFaultErrorDialogTitle:"폴더 변경 오류",folderChooserTitle:"새 폴더 선택",forwardNavigation:"앞으로",navigateTo:"이동:",upOneLevel:"한 단계 위로"}},function(e,t,i){e.exports={BrowseForFolder:"浏览文件夹",backNavigation:"返回",currentFolder:"当前文件夹",cwdFaultErrorDialogTitle:"更改文件夹时出错",folderChooserTitle:"选择新文件夹",forwardNavigation:"前进",navigateTo:"导航到",upOneLevel:"向上一级"}},function(e,t,i){e.exports={root:{BrowseForFolder:"Browse For Folder",backNavigation:"Back",currentFolder:"Current Folder",cwdFaultErrorDialogTitle:"Error Changing Folder",folderChooserTitle:"Select a New Folder",forwardNavigation:"Forward",navigateTo:"Navigate To",upOneLevel:"Up One Level"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(306),i(204),i(410),i(227),i(228),i(210),i(211),i(222),i(223),i(206),i(225),i(238),i(258),i(277),i(1078)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([l],{constructor:function(e){this.getIntelliHints=e.getIntelliHints,this.selectedIndex=1,this.listBox=void 0,this.popup=f,this._inEditMode=!1,this._iconAriaLabelPrefix=e.iconAriaLabelPrefix?e.iconAriaLabelPrefix+" ":""},postCreate:function(){this.inherited(arguments),this.locationNodeOnClickListener=function(){0===this.currentLocationNode.getElementsByClassName("textFieldNode").length&&(this.textField.set("value",this.getCurrentLocation()),this._clickListener.pause(),this.switchToEditMode())},r.set(this.iconNode,"aria-label",this._iconAriaLabelPrefix+":"+this.getCurrentLocation()),r.set(this.iconNode,"tabindex",0),this.own(d(this.iconNode,"click",this.switchToEditMode.bind(this)),d(this.iconNode,"keydown",function(e){e.keyCode!==c.SPACE&&e.keyCode!==c.ENTER||(e.stopPropagation(),e.preventDefault(),this.switchToEditMode())}.bind(this)),d(this.iconNode,"blur",function(e){a.remove(this.locationNodeWithIcon,"iconFocused")}.bind(this)),d(this.iconNode,"focus",function(e){a.add(this.locationNodeWithIcon,"iconFocused")}.bind(this))),this._clickListener=d.pausable(this.locationNodeWithIcon,"click",i.hitch(this,this.locationNodeOnClickListener)),this.textField=new p({value:"",selectOnClick:!0,height:16}),d(this.textField,"focus",function(){this.textField.focusNode.select(),this.textField.domNode.setAttribute("style","border-color:rgba(0,153,255,1) !important; z-index:1")}.bind(this)),a.add(this.textField.domNode,"textFieldNode"),d(this.textField,"keyup",n(i.hitch(this,(function(e){var t=e.keyCode;(t>47&&t<58||t>64&&t<91||t>95&&t<112||t>185&&t<193||t>218&&t<223||8===t||46===t)&&this._handleInput()})),500)),d(this.textField,"keyup",i.hitch(this,(function(e){switch(e.keyCode){case c.ESCAPE:this._handleOnBlur(),this.focus();break;case c.DOWN_ARROW:this.listBox&&(this.selectedIndex>this.listBox.items.length&&(this.selectedIndex=1),this.listBox._setSelectedIndex([this.selectedIndex]),this.selectedIndex=this.selectedIndex+1);break;case c.UP_ARROW:this.listBox&&(this.selectedIndex<=1?this.selectedIndex=this.listBox.items.length:this.selectedIndex=this.selectedIndex-1,this.listBox._setSelectedIndex([this.selectedIndex]))}}))),d(this.textField,"keydown",i.hitch(this,(function(e){switch(e.keyCode){case c.ENTER:this._handleOnChange(e);break;case c.TAB:setTimeout(function(){this._handleOnBlur(),this.focus()}.bind(this),0)}})))},blurTextField:function(){this._handleOnBlur()},onBlur:function(){this.inherited(arguments),this.shouldClearEditMode()&&this._handleOnBlur()},focus:function(){h.focus(this.iconNode)},_getIntelliHints:function(e){var i=this.getIntelliHints(e);t.when(i.listOfLocationOptions,function(e){this._inEditMode&&this._listOptions(e.folders)}.bind(this))},_listOptions:function(e){if(this._destroyIntelliHintsPopup(),e.length>0){for(var t=[],n=0;n<e.length;n++){var o={label:e[n],value:e[n]};t.push(o)}this.listBox=new g({items:t}),a.add(this.listBox.domNode,"navBarIntelliHintsListBox"),this.popup.open({parent:this.textField,popup:this.listBox,around:this.textField.domNode,style:{width:this.textField.domNode.offsetWidth+"px"},onCancel:function(){this.popup.close(this.listBox)},onClose:i.hitch(this,(function(){this._resetAfterEditMode()})),onBlur:function(){this.popup.close(this.listBox)},onExecute:i.hitch(this,(function(){this._emitLocationChange(this.listBox.value[0]),this.popup.close(this.listBox)}))}),a.add(this.listBox.domNode.parentElement,"intelliHintsParent")}},_destroyIntelliHintsPopup:function(){this.listBox&&(this.listBox.destroy(),this.listBox=void 0)},_closeIntelliHintsIfOpen:function(){void 0!==u(".intelliHintsParent")[0]&&this.popup.close(this.listBox)},setCurrentLocation:function(){this.inherited(arguments),this._closeIntelliHintsIfOpen(),this.currentLocationNode.contains(this.textField.domNode)&&(this._removeTextField(),this.focus())},switchToEditMode:function(){this.displayTextField(this.currentLocation)},displayTextField:function(e){this.currentLocationNode.textContent="",this.textField.placeAt(this.currentLocationNode),this.textField.set("value",e),this.textField.onFocus(),this._inEditMode=!0},_handleInput:function(){void 0!==this.getIntelliHints&&this._getIntelliHints(this.textField.inputNode.value)},_handleOnChange:function(e){if(e.stopPropagation(),e.preventDefault(),""!==this.textField.inputNode.value.trim()){if(this.textField.inputNode.value===this.getCurrentLocation())this._removeTextField(),this.emit("rebuildLocationNode"),this.focus();else{var t=this._getLocationToEmit();this.navigatingBackOrForward=!1,this._emitLocationChange(t)}this._resetAfterEditMode()}},_getLocationToEmit:function(){var e;return void 0!==u(".navBarIntelliHintsListBox")[0]&&(e=this.listBox.focusNode.getElementsByClassName("mwListItemSelected")[0]),void 0!==e?e.innerHTML:this.textField.inputNode.value},_removeTextField:function(){this.currentLocationNode.removeChild(this.textField.domNode),this._inEditMode=!1,this._resetAfterEditMode()},_handleOnBlur:function(){this.currentLocationNode.contains(this.textField.domNode)&&(this._removeTextField(),this.textField.set("value",this.getCurrentLocation()),this.emit("rebuildLocationNode"),this.emit("locationEditModeCancelled"))},_resetAfterEditMode:function(){var e=u(".intelliHintsParent")[0];void 0!==e&&s.destroy(e),this._clickListener.resume(),this.selectedIndex=1},_emitLocationChange:function(e){this.emit("locationChanged",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(228),i(211),i(210),i(213),i(222),i(223),i(206),i(225),i(331),i(288),i(1329),i(1099)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([s],{constructor:function(e){""!==e.currentLocation&&this._addToVisitedLocationsList(e.currentLocation,e.metaData)},postCreate:function(){this.inherited(arguments),this.historyNode=o.create("div"),r.add(this.historyNode,"historyNode"),this._createAndPlaceHistoryNode()},_createAndPlaceHistoryNode:function(){this._historyButton=new p({description:f.history,icon:"downArrowIconNode",hasDynamicMenu:!0}),o.destroy(this._historyButton.buttonNode),c(this._historyButton,"dropdownclick",t.hitch(this,(function(e){e.stopPropagation(),this._createHistoryMenu()}))),c(this._historyButton,"keyup",t.hitch(this,(function(e){e.stopPropagation(),e.keyCode!==l.DOWN_ARROW&&e.keyCode!==l.UP_ARROW||this._createHistoryMenu()}))),this._historyButton.arrowNode.setAttribute("data-tag","historyFocusNode"),this._historyButton.placeAt(this.historyNode),o.place(this.historyNode,this.locationNodeWithIcon),this._historyButton.startup()},_closeHistoryMenuIfOpen:function(){var e=d(".historyDropDownMenu")[0];void 0!==e&&o.destroy(e)},setCurrentLocation:function(e,t){this.inherited(arguments),this._closeHistoryMenuIfOpen(),this._addToVisitedLocationsList(e,t)},_addToVisitedLocationsList:function(e,t){for(var i=0;i<this.visitedLocations.length;i++)this.visitedLocations[i].path===e&&this.visitedLocations.splice(i,1);var n={path:e,icon:t.locationIcon,text:t.displayName};this.visitedLocations.push(n)},setLocationHistory:function(e){for(var t=0;t<e.length;t++){for(var i=0;i<this.visitedLocations.length;i++)this.visitedLocations[i].path===e[t].path&&this.visitedLocations.splice(i,1);var n={path:e[t].path,icon:e[t].icon,text:e[t].text};this.visitedLocations.push(n)}if(0===e.length&&this.visitedLocations.length>0){var o=this.visitedLocations[this.visitedLocations.length-1];this.visitedLocations=[o]}},_createHistoryMenu:function(){for(var e=new u,i=this.visitedLocations.length-1;i>=0;i--){var n=new h({text:this.visitedLocations[i].text,icon:"folderIcon"});n.iconNode.setAttribute("style","background-image: url('"+this.visitedLocations[i].icon+"')"),n.set("data-tag",this.visitedLocations[i].path),r.add(n.domNode,"historyDropDownItem");var o=this;n.on("click",t.hitch(n,(function(e){e.stopPropagation();var t=dijit.registry.getEnclosingWidget(e.target).domNode.getAttribute("data-tag");o.emit("locationChanged",t)}))),e.addChild(n)}e.on("close",t.hitch(this,(function(){this._cleanAfterClosingHistoryMenu()}))),r.add(e.focusNode,"historyDropDownMenu"),this._historyButton.set("menu",e),this._historyButton.set("aroundNode",this.locationNodeWithIcon),a.set(e.domNode,{minWidth:this.locationNodeWithIcon.offsetWidth+"px"}),this._historyButton.showMenu(),r.add(this._historyButton,"addBorder")},_cleanAfterClosingHistoryMenu:function(){void 0!==d(".historyDropDownMenu")[0]&&o.destroy(d(".historyDropDownMenu")[0].parentElement)},resize:function(){this.inherited(arguments),a.set(this.currentLocationNode,{width:(this.locationNodeWithIcon.offsetWidth-27).toString()+"px"})},disableLocationHistoryMode:function(){a.set(this.historyNode,"visibility","hidden")},enableLocationHistoryMode:function(){a.set(this.historyNode,"visibility","visible")}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="addressBarContainer" data-dojo-attach-point="addressBarContainer">\n</div>'},function(e,t,i){var n,o;n=[i(218),i(220),i(7641)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/addressBar",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{ariaLabel:"Current Folder"}}},function(e,t,i){var n,o;n=[i(203),i(226),i(752),i(2506),i(7643),i(7645),i(7649),i(232),i(535)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){const c="localhost"===location.hostname||"127.0.0.1"===location.hostname;return e([i,n],{constructor:function(e){this._codeMap={},this._galleryPopupTag="motwToolstrip.appsTab.apps.appsGalleryPopup",this._buildGalleryAndPopup(),e.actionService.loadActions(r(e)),this._addToolstripEntries()},_buildGalleryAndPopup:function(){this._uiBuilder.createGalleryPopupFromConfig(a),this._galleryId=this._uiBuilder.create({tag:"motwToolstrip.appsTab.apps.column1.appsGallery",galleryPopupTag:this._galleryPopupTag,parentId:this._uiBuilder.tagToId("motwToolstrip.appsTab.apps.column1"),type:t.GALLERY,displayState:"busy",maxColumnCount:this._isMATLABLocal?12:void 0,mnemonic:"A"}),this._uiBuilder.set(this._galleryId,"textOverlay",l.noAppsInstalled),this._uiBuilder.set(this._galleryId,"displayState","blocked")},populateGalleryItems:function(e){let t=!1;e.apps.forEach((function(e){let i=this._uiBuilder.tagToId(e.tag);if(!this._uiBuilder.exists(i)){let i=this._uiBuilder.tagToId(e.category),n=s.getWorkerRoutingHost();n=n.substr(0,n.length-1),e.icon=n+e.icon,e.quickAccessIcon&&(e.quickAccessIcon=n+e.quickAccessIcon),(c||!1===e.localClient)&&(this._createGalleryItem(e,i),t=!0)}}),this),t&&this._uiBuilder.set(this._galleryId,"textOverlay","")},removeGalleryItems:function(e){0!==e.apps.length&&e.apps.forEach(function(e){let t=this._uiBuilder.tagToId(e.tag);this._uiBuilder.destroy(t)}.bind(this))},postPopulateGalleryItems:function(){this._postPopulateGallery()},_addToolstripEntries:function(){new o({uiBuilder:this._uiBuilder}).add()},_setGalleryState:function(e){this._appsGalleryState=e,this.inherited(arguments)},_createGalleryItem:function(e,t){var i=e.callback;delete e.callback,"my_apps"===e.category&&(e.removable=!0,e.removeMessage="Uninstall");var n=this.inherited(arguments);return this._uiBuilder.addEventCallback(n,(function(e){if("itemPushed"===e.eventType)this._executionService.executionEval(i);else if("remove"===e.eventType){var t=i.slice(i.indexOf("'")+1,i.lastIndexOf("'"));this._executionService.executionEval(`matlab.apputil.uninstall('${t}')`),this._uiBuilder.destroy(n)}}),this),n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(226),i(7644),i(2507),i(535)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a,s,l;return e([],{constructor:function(e){r=e.uiBuilder},add:function(){this._addColumns(),this._addPushButtons()},remove:function(){r.destroy(l),r.destroy(a),r.destroy(s)},_addColumns:function(){var e={tag:i.DESIGN_APP_COLUMN,type:t.COLUMN};l=r.create(e);var n={tag:i.GET_MORE_APPS_COLUMN,type:t.COLUMN};a=r.create(n);var o={tag:i.INSTALL_APP_COLUMN,type:t.COLUMN};s=r.create(o);var c=r.tagToId(i.FILE_SECTION);r.add(l,c,0),r.add(a,c,1),r.add(s,c,2)},_addPushButtons:function(){var e={tag:i.DESIGN_APP_BUTTON,type:t.PUSH_BUTTON,actionId:n.DESIGN_APP,text:o.designAppLabel,description:o.designAppDescription,icon:"icon_design_app_24",quickAccessIcon:"icon_design_app_16",mnemonic:"D"},c=r.create(e);r.add(c,l);var d={tag:i.GET_MORE_APPS_PUSH_BUTTON,type:t.PUSH_BUTTON,actionId:n.GET_MORE_APPS,text:o.getMoreApps,description:o.getMoreAppsButtonDescription,icon:"icon_get_more_apps_24",quickAccessIcon:"icon_get_more_apps_16",mnemonic:"G"},u=r.create(d);r.add(u,a);var h={tag:i.INSTALL_APP_PUSH_BUTTON,type:t.PUSH_BUTTON,actionId:n.INSTALL_APP,text:o.installApp,description:o.installAppButtonDescription,icon:"icon_install_app_24",quickAccessIcon:"icon_install_app_16",mnemonic:"I"},p=r.create(h);r.add(p,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{FILE_SECTION:"motwToolstrip.appsTab.file",DESIGN_APP_COLUMN:"motwToolstrip.appsTab.file.column1",DESIGN_APP_BUTTON:"motwToolstrip.appsTab.file.column1.designAppPushButton",GET_MORE_APPS_COLUMN:"motwToolstrip.appsTab.file.column2",GET_MORE_APPS_PUSH_BUTTON:"motwToolstrip.appsTab.file.column2.getMoreAppsPushButton",INSTALL_APP_COLUMN:"motwToolstrip.appsTab.file.column3",INSTALL_APP_PUSH_BUTTON:"motwToolstrip.appsTab.file.column3.installAppPushButton"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(280),i(7646),i(2507),i(7648),i(535)],o=i.dj.d(n,(function(e,t,i,n,o){var r=[],a=function(t){return{id:i.DESIGN_APP,enabled:!0,callback:function(){e.executionService.executionEval("appdesigner;")}}},s=function(e){return{id:i.GET_MORE_APPS,enabled:!0,callback:function(){t.openAppsViewInExplorer("AddOns")}}},l=function(e){return{id:i.INSTALL_APP,enabled:!0,callback:function(){new n({approveButtonText:o.installAppDialogOpenButtonText,dialogTitle:o.installApp,executionService:e.executionService,layoutService:e.layoutService,actionService:e.actionService,addOnsService:e.addOnsService,pathService:e.pathService,fileDataService:e.fileDataService}).show()}}};return r.push(a),r.push(s),r.push(l),function(e){var t=[];return t.push(a()),t.push(s()),t.push(l(e)),t}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7647)],o=i.dj.d(n,(function(e){return{openAppsViewInExplorer:function(t){e.sendOpenAppsViewInExplorerMessage(t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(853),i(219)],o=i.dj.d(n,(function(e,t){return{sendOpenAppsViewInExplorerMessage:function(i){var n={type:"openAppsViewInExplorer",entryPointIdentifier:i};t.publish(e.GENERAL_PURPOSE_PUBLISH_CHANNEL,n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(850),i(1613),i(1609)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(e){this.executionService=e.executionService,this.layoutService=e.layoutService,this.actionService=e.actionService,this.addOnsService=e.addOnsService,this.pathService=e.pathService,this.fileDataService=e.fileDataService,this.approveButtonText=e.approveButtonText,this.dialogTitle=e.dialogTitle},_install:function(e){var t=e;this.executionService.executionEval("com.mathworks.appmanagement.AppManagementApiBuilder.getAppManagementApi().installAsynchronously('"+t+"')"),void 0===window.cefclient&&this._close()},show:async function(){let r=await this.pathService.getCwd(),a={dialogName:this.dialogTitle,initialPath:r.cwd,filters:[{label:"MATLAB App Installer (*.mlappinstall)",patterns:["*.mlappinstall"]}],multiSelection:!0};if(void 0!==window.cefclient){this.fileChooserService=new o;let e=await this.fileChooserService.openFile(a);e[0]&&this._install(e[0])}else{var s=[];s.push({label:"MATLAB App Installer (*.mlappinstall)",patterns:["*.mlappinstall"],selected:!0}),this.fileChooser=e([i,n])({fileService:this.fileDataService,pathService:this.pathService,actionService:this.actionService,style:{width:"425px",height:"425px"},fileMustExist:!0,filters:s,fileTypeFilterMustExist:!1,approveButtonText:this.approveButtonText,excludeOnlyRoots:[this.addOnsService.getAddOnsRoot()]}),this.fileChooser.on("okButtonClicked",t.hitch(this,(function(e){this._install(e.selectedNode[0].path)}))),this.fileChooser.on("cancelButtonClicked",t.hitch(this,(function(){this._close()}))),this.fileChooser.onClose=function(){this._close()}.bind(this),this.fileChooser.startup(),this.layoutService.addWidget("InstallAppDialog","newDialog",this.fileChooser,{title:this.dialogTitle})}},_close:function(){this.layoutService.removeWidget("InstallAppDialog")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(7650)],o=i.dj.d(n,(function(e,t){return{tag:"motwToolstrip.appsTab.apps.appsGalleryPopup",type:e.GALLERY_POPUP,galleryItemWidth:90,children:[{tag:"my_apps",type:e.GALLERY_CATEGORY,title:t.my_apps,alphabetize:!0},{tag:"learning_products",type:e.GALLERY_CATEGORY,title:t.learning_products,alphabetize:!0},{tag:"math_products",type:e.GALLERY_CATEGORY,title:t.math_products,alphabetize:!0},{tag:"control_products",type:e.GALLERY_CATEGORY,title:t.control_products,alphabetize:!0},{tag:"automotive_products",type:e.GALLERY_CATEGORY,title:t.automotive_products,alphabetize:!0},{tag:"signal_products",type:e.GALLERY_CATEGORY,title:t.signal_products,alphabetize:!0},{tag:"image_products",type:e.GALLERY_CATEGORY,title:t.image_products,alphabetize:!0},{tag:"test_products",type:e.GALLERY_CATEGORY,title:t.test_products,alphabetize:!0},{tag:"finance_products",type:e.GALLERY_CATEGORY,title:t.finance_products,alphabetize:!0},{tag:"biology_products",type:e.GALLERY_CATEGORY,title:t.biology_products,alphabetize:!0},{tag:"code_gen_products",type:e.GALLERY_CATEGORY,title:t.code_gen_products,alphabetize:!0},{tag:"code_verify_products",type:e.GALLERY_CATEGORY,title:t.code_verify_products,alphabetize:!0},{tag:"deployment_products",type:e.GALLERY_CATEGORY,title:t.deployment_products,alphabetize:!0},{tag:"database_products",type:e.GALLERY_CATEGORY,title:t.database_products,alphabetize:!0},{tag:"simulation_products",type:e.GALLERY_CATEGORY,title:t.simulation_products,alphabetize:!0},{tag:"internal",type:e.GALLERY_CATEGORY,title:t.internal,alphabetize:!0},{tag:"help_internal",type:e.GALLERY_CATEGORY,title:t.help_internal,alphabetize:!0}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7651),i(7652),i(7653),i(7654)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/appsgallery",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={my_apps:"マイ アプリ",learning_products:"機械学習および深層学習",math_products:"数学、統計および最適化",control_products:"制御システム設計と解析",automotive_products:"自動車関連",signal_products:"信号処理と通信",image_products:"イメージ処理とコンピューター ビジョン",test_products:"テストと計測",finance_products:"金融工学",biology_products:"情報生命科学",code_gen_products:"コード生成",code_verify_products:"コード検証",deployment_products:"アプリケーション配布",database_products:"データベース接続とレポート",simulation_products:"シミュレーション グラフィックスとレポート",internal:"MathWorks インターナル",help_internal:"MathWorks インターナルのドキュメンテーション ツールとオプション"}},function(e,t,i){e.exports={my_apps:"내 앱",learning_products:"머신러닝 및 딥러닝",math_products:"수학, 통계학 및 최적화",control_products:"제어 시스템 설계 및 분석",automotive_products:"자동차",signal_products:"신호 처리 및 통신",image_products:"영상 처리 및 컴퓨터 비전",test_products:"테스트 및 계측",finance_products:"계산 금융",biology_products:"계산 생물학",code_gen_products:"코드 생성",code_verify_products:"코드 검증(Verification)",deployment_products:"응용 프로그램 배포",database_products:"데이터베이스 액세스 및 리포팅",simulation_products:"시뮬레이션 그래픽스 및 리포팅",internal:"MathWorks 내부",help_internal:"MathWorks 내부 문서 툴 및 옵션"}},function(e,t,i){e.exports={my_apps:"我的 App",learning_products:"机器学习和深度学习",math_products:"数学、统计和优化",control_products:"控制系统设计和分析",automotive_products:"汽车",signal_products:"信号处理和通信",image_products:"图像处理和计算机视觉",test_products:"测试和测量",finance_products:"计算金融学",biology_products:"计算生物学",code_gen_products:"代码生成",code_verify_products:"代码验证",deployment_products:"应用程序部署",database_products:"数据库连接和报告",simulation_products:"仿真图形和报告",internal:"MathWorks 内部",help_internal:"MathWorks 内部文档工具和选项"}},function(e,t,i){e.exports={root:{my_apps:"My Apps",learning_products:"Machine Learning and Deep Learning",math_products:"Math, Statistics and Optimization",control_products:"Control System Design and Analysis",automotive_products:"Automotive",signal_products:"Signal Processing and Communications",image_products:"Image Processing and Computer Vision",test_products:"Test and Measurement",finance_products:"Computational Finance",biology_products:"Computational Biology",code_gen_products:"Code Generation",code_verify_products:"Code Verification",deployment_products:"Application Deployment",database_products:"Database Connectivity and Reporting",simulation_products:"Simulation Graphics and Reporting",internal:"MathWorks Internal",help_internal:"MathWorks Internal Documentation Tools and Options"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(7656),i(219),i(902),i(7658)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{constructor:function(e){this.channel=e.channel||"/audio",this.messageService=e.messageService||n.messageService,this.map=new Map},start:function(){if(!this._started){var e=this;this.messageService.subscribe(this.channel+"/*",this._handleMessage,this).then((function(){e.messageService.publish(e.channel+"/audioRefresh",{})})),this._started=!0}},stop:function(){this._started&&(this.messageService.unsubscribe(this.channel+"/*",this._handleMessage,this),this._started=!1),this.map.clear()},_audioplayerOnlineHandler:function(e){var t={channel:this.channel,messageService:this.messageService,data:e},i=new r(t);this.map.set(e.UUID,i)},_audioplayerCollectData:function(e){this.map.get(e.UUID).collectData(e.data)},_audioplayerInitialize:function(e){this.map.get(e).initialize()},_play:function(e){this.map.get(e.UUID).play(e)},_pause:function(e){this.map.get(e).pause()},_stopHandler:function(e){this.map.get(e).stopHandler()},_resume:function(e){this.map.get(e).resume()},_isplaying:function(e){this.map.get(e).isplaying()},_getCurrentSample:function(e){this.map.get(e).getCurrentSample()},_delete:function(e){this.map.delete(e)},_enumerateAudioOutputDevicesOnBrowser:function(){var e=this;e.audioOutputDevicesInfo=[],navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices||e.messageService.publish("/audio/publishlist",i.MediaAPINotAvailable),navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia,"Chrome"!==o.getBrowserInfo().name&&e.messageService.publish("/audio/publishlist",i.MediaAPINotAvailable),navigator.getUserMedia({audio:!0},(function(t){navigator.mediaDevices.enumerateDevices().then((function(t){t.forEach((function(t){if("audiooutput"===t.kind&&t.label.length>0){var i={audioDeviceName:t.label,audioDeviceID:t.deviceId};e.audioOutputDevicesInfo.push(i)}})),e.messageService.publish("/audio/publishlist",e.audioOutputDevicesInfo)})),t.getTracks().forEach((function(e){e.stop()}))}),t.hitch(this,this._onError))},_onError:function(e){"DevicesNotFoundError"===e.name?this.messageService.publish("/audio/publishlist",[]):"PermissionDeniedError"===e.name||"NotAllowedError"===e.name?this.messageService.publish("/audio/publishlist",i.PermissionDeniedError):"NotFoundError"===e.name&&this.messageService.publish("/audio/publishlist",[])},_handleMessage:function(e){e.channel.indexOf("createConnection")>0&&this._audioplayerOnlineHandler(e.data),e.channel.indexOf("dataSent")>0&&this._audioplayerCollectData(e.data),e.channel.indexOf("dataComplete")>0&&this._audioplayerInitialize(e.data),e.channel.indexOf("list")>0&&this._enumerateAudioOutputDevicesOnBrowser(),e.channel.indexOf("play")>0&&this._play(e.data),e.channel.indexOf("pause")>0&&this._pause(e.data),e.channel.indexOf("stop")>0&&this._stopHandler(e.data),e.channel.indexOf("resume")>0&&this._resume(e.data),e.channel.indexOf("isPlayOn")>0&&this._isplaying(e.data),e.channel.indexOf("currentSample")>0&&this._getCurrentSample(e.data),e.channel.indexOf("delete")>0&&this._delete(e.data)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7657)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/audio",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{PermissionDeniedError:"Audio device not detected because permissions were denied. Allow access to audio device in browser settings.",MediaAPINotAvailable:"Audio device access is not supported in this browser. Use Google Chrome instead."}}},function(e,t,i){var n,o;n=[i(203),i(204),i(219)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e){var t=this;t.messageService=e.messageService||i.messageService,t.moAudioChannel=e.channel+"/"+e.data.UUID,t._connStatusChannel=t.moAudioChannel+"/audioConnStatus",t._dataReceivedChannel=t.moAudioChannel+"/audioDataReceived",t._playStartedChannel=t.moAudioChannel+"/audioPlayStarted",t._playEndedChannel=t.moAudioChannel+"/audioPlayEnded",t._playingStatusChannel=t.moAudioChannel+"/audioPlayingStatus",t._currentSampleValueChannel=t.moAudioChannel+"/currentSampleValue",t._isPlaying=!1,t._isPaused=!1,t._data=[],t._sampleRate=e.data.SampleRate,t._totalSamples=e.data.TotalSamples,t._numChannels=e.data.NumChannels,t._audio=document.createElement("audio");var n=t._audio.setSinkId(e.data.InternalDeviceID);void 0!==n&&n.catch((function(e){t.messageService.publish(t._connStatusChannel,!1)}));const o=window.AudioContext||window.webkitAudioContext;t._audioCtx=new o;try{t._buffer=t._audioCtx.createBuffer(t._numChannels,t._totalSamples,t._sampleRate),t.messageService.publish(t._connStatusChannel,!0)}catch(e){t.messageService.publish(t._connStatusChannel,e.message)}},collectData:function(e){this._data=this._data.concat(e),this.messageService.publish(this._dataReceivedChannel,!0)},initialize:function(){if(this._numChannels>1)for(var e=0;e<this._numChannels;e++)for(var t=this._buffer.getChannelData(e),i=0;i<this._data.length;i++)t[i]=this._data[i][e];else for(t=this._buffer.getChannelData(e),i=0;i<this._data.length;i++)t[i]=this._data[i]},play:function(e){this._startIndex=e.StartIndex,this._endIndex=e.EndIndex,this._curTime=(this._startIndex-1)/this._sampleRate,this._playHelper()},_playHelper:function(){var e=this;e._source=e._audioCtx.createBufferSource(),e._source.buffer=e._buffer,e._source.onended=function(){e._isPlaying=!1,e.stopHandler()};var t=e._audioCtx.createMediaStreamDestination();e._source.connect(t),e._audio.srcObject=t.stream;var i=(e._endIndex-1)/e._sampleRate;e._source.start(0,e._curTime,i-e._curTime),e.startedAt=e._audioCtx.currentTime,e.pausedAt=0;var n=e._audio.play();void 0!==n&&n.catch((function(t){e.messageService.publish(e._playStartedChannel,!1)})),e.messageService.publish(e._playStartedChannel,!0),e._isPlaying=!0,e._isPaused=!1},pause:function(){if(this._isPlaying){var e=this._audioCtx.currentTime-this.startedAt;this.stopHandler(),this.pausedAt=e,this._isPaused=!0}},stopHandler:function(){this._source&&(this._source.disconnect(),this._source.stop(0),this._source=null,this.pausedAt=0,this.startedAt=0,this._isPlaying=!1),this.messageService.publish(this._playEndedChannel,!0)},resume:function(){if(!this._isPlaying){if(this._isPaused){this._curTime=this._curTime+this.pausedAt;var e=(this._endIndex-1)/this._sampleRate;this._curTime==e&&(this._curTime=0)}else this._curTime=0;this._playHelper()}},isplaying:function(){this.messageService.publish(this._playingStatusChannel,this._isPlaying)},getCurrentSample:function(){var e=1,t=0;this._isPlaying&&(t=this._curTime+this._audio.currentTime),this._isPaused&&(t=this._curTime+this.pausedAt),e=Math.floor(t*this._sampleRate),this._isPlaying||(e+=1),this.messageService.publish(this._currentSampleValueChannel,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(232),i(209)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(){t.registerResponseHandler("AuthorizationDetailsResponse",this._handleAuthorizationDetailsResponse,this),t.registerFaultHandler("AuthorizationDetails",this._handleAuthorizationDetailsError,this)},getAuthorizedProductIds:function(e){t.sendMessage({AuthorizationDetails:[{authorizationProperties:{authorizationAttribute:"authorizedProductIds"}}]},{callback:e})},_handleAuthorizationDetailsResponse:function(e,t){e.forEach((function(e){t.callback(e.authorizationProperties.authorizedProductIds)}),this)},_handleAuthorizationDetailsError:function(e){i.assert(!1,"Received the following error: "+e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(304),i(549)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e){this.editorService=e.editorService,this.workerActionDisabler=e.workerActionDisabler,this.uiConfigService=e.uiConfigService},closeEditor:function(e){e&&this.editorService._closeEditor(e)},injectContents:function(e){e&&this.bufferedEditorView&&this.doInjectOpcIntoEditor(JSON.parse(e))},setTitle:function(e){0===e.indexOf("/")&&(e=e.substring(1)),this.bufferedEditorView.set(i.TITLE,e)},setDescription:function(e){this.bufferedEditorView.set(i.DESCRIPTION,e)},doInjectOpcIntoEditor:function(e){var t=n.fromJson(e);this.bufferedEditorView.widget.injectContents(t)},extractContentsFromLiveEditor:function(){var e=new t;return this.bufferedEditorView.widget.getBackingStore().getContentBundle().then(function(t){e.resolve(JSON.stringify(t.content))}.bind(this)),e.promise},handleBufferedContent:function(e){var i=new t,n=e.targetInformation;if(n.bufferedEditorContent){if(!this.editorService)return;var o;o=e.workingDirectory?e.workingDirectory+n.editor.activeEditorPath:n.editor.activeEditorPath,o=this._ensureNoDoubleSlashes(o),this.bufferedEditorView||(this.bufferedEditorView=this.editorService.createLiveCodeEditor(),this.workerActionDisabler.reValidateRunActions()),this.setDescription(o),this.setTitle(n.editor.activeEditorPath),this.injectContents(n.bufferedEditorContent)}return i.resolve(),i.promise},_ensureNoDoubleSlashes:function(e){return e.replace(/\/\/+/g,"/")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7662),i(7663),i(7664),i(7665)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/cfb",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={title:"現在のフォルダー",shareFolderTooltip:"このフォルダーの共有",fileHistoryTooltip:"ファイル バージョンの表示",publishedMySite:"(マイ サイト)",sharedWithMe:"(自分と)"}},function(e,t,i){e.exports={title:"현재 폴더",shareFolderTooltip:"이 폴더를 공유합니다.",fileHistoryTooltip:"파일 버전을 표시합니다.",publishedMySite:"(내 사이트)",sharedWithMe:"(나와 공유)"}},function(e,t,i){e.exports={title:"当前文件夹",shareFolderTooltip:"共享此文件夹",fileHistoryTooltip:"显示文件版本",publishedMySite:"(我的站点)",sharedWithMe:"(与我)"}},function(e,t,i){e.exports={root:{title:"Current Folder",shareFolderTooltip:"Share this folder",fileHistoryTooltip:"Show file versions",publishedMySite:"(my site)",sharedWithMe:"(with me)"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(216),i(386),i(203),i(204),i(849),i(214),i(211),i(217),i(213),i(222),i(206),i(225),i(223),i(238),i(30),i(277),i(7667),i(7668),i(368),i(1601),i(2508),i(2510),i(2511),i(2512),i(2513),i(233),i(339),i(209),i(291),i(297),i(617),i(854),i(599),i(7683),i(7685),i(2514),i(7688),i(7703),i(546),i(576),i(471),i(7704),i(7705),i(2518),i(2519),i(2520),i(1615),i(2521),i(1616),i(2522),i(7706),i(2523),i(7721),i(7722),i(7723),i(7724),i(7725),i(7726),i(7727),i(2528),i(1220),i(2529),i(855),i(418),i(468)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U,W,G,z,q,K,X,Y,Q,$,J,Z,ee,te,ie,ne,oe,re,ae,se,le,ce,de){return i([t,e,c],{templateString:m,idAttr:"data-tag",USER_PUBLISHED_DIR:"Published",constructor:function(e){de.mark("cfbStart"),e=e||{},this.fileService=e.fileDataService,this.fileOperationsService=ce.getFileOperationsService(),this.listFolderService=e.listFolderService,this.sharingManager=e.sharingManager,this.pathService=e.pathService,this.executionService=e.executionService,this.layoutService=e.layoutService,this.clipboard=new U,this.findFilesService=e.findFilesService,this.motwActionService=e.actionService,this.settingsService=e.settingsService,this.layoutConfiguration=e.layoutConfiguration,this.communicationAvailable=e.communicationAvailable,this.cfbJavaScriptActionService=e.cfbJavaScriptActionService||new v({nameSpace:"/cfb/actions/javascript",mode:"StandAlone"}),this.mvm=x.getMVM(),this.uiContainer=e.uiContainer,this._contextMenuBuilder=e.contextMenuBuilder,this._fileIconProvider=e.fileIconProvider||ce.getFileIconProvider(),this._lastCwdPath=void 0,O.getRegistry({fileService:this.fileService,executionService:this.executionService,clipboard:this.clipboard,actionService:this.cfbJavaScriptActionService,sharingManager:this.sharingManager}),this.columnRegistry=e.columnRegistry||W.getRegistry({sharingManager:this.sharingManager,fileIconProvider:this._fileIconProvider}),this._inputSource=new z,this._actionManager=new k({clientActionsService:this.cfbJavaScriptActionService,inputSource:this._inputSource,fileService:this.fileService,pathService:this.pathService,actionsResourceBundle:M}),this._cfbActionMenuListener=new ie({expandCfbPanelIfCollapsedFcn:this._expandCfbPanelIfCollapsed.bind(this)}),this._actionCommunicator=new j({}),this.fileBrowser=i([b,y,C,T,E,S])({fileBrowserId:"cfb:file-browser",fileService:this.fileService,columnRegistry:this.columnRegistry,keybindings:R,allowDnD:!0,includeGroupByMenuInColumnHeader:!0,actionManager:this._actionManager,contextMenuBuilder:this._contextMenuBuilder,layoutConfiguration:this.layoutConfiguration}),this._actionInputArgs={actionsResourceBundle:M,pathService:this.pathService,fileService:this.fileService,columnRegistry:this.columnRegistry,fileBrowser:this.fileBrowser},this._actionManager.setDefaultActions(new Set(["NEW2","OPEN","RENAME","DELETE","SHOW","SORT_BY","GROUP_BY","CREATE_ZIP"]),this._actionInputArgs);var t=new B,o=H.getRegistrationFramework(),r={resourceName:"actionMenuItem",resourceType:V.JSON};this._cfbActionPluginManager=F.createActionPluginManagerInstance({moduleLoader:t,registrationFramework:o,actionResourceSpecification:r,actionService:this.cfbJavaScriptActionService,communicationAvailable:this.communicationAvailable,actionCategories:new Set(["filebrowser_common"]),actionInputArgs:this._actionInputArgs}),this._actionManager.initializeActionPluginManager(this._cfbActionPluginManager),this.currentFolderActions=new J,this.currentFolderActions.addActionSubmenu(M.new,Z.getActionObjects(this._actionManager,this._cfbActionMenuListener)),this.currentFolderActions.addMenuDivider(),this.currentFolderActions.addActionSubmenu(M.reports,ee.getActionObjects()),this.currentFolderActions.addActionItem(te.getAction(this.findFilesService)),this.currentFolderActions.addMenuDivider(),this.currentFolderActions.addActionSubmenu(M.show,ne.getActionObjects(this.columnRegistry,this._cfbActionMenuListener,n.hitch(this.fileBrowser,"updateColumnVisible"))),this.currentFolderActions.addActionSubmenu(M.groupBy,oe.getActionObjects(this.columnRegistry,this._cfbActionMenuListener,n.hitch(this,"_callbackForGroupByAction"),n.hitch(this,"_stopGrouping"))),this.own(d(this.fileBrowser,"columnstatechange",n.hitch(this,(function(e){this._updateToolstripAction(e.columnId,{selected:e.makeVisible,hidden:!e.makeVisible})}))),d(this.fileBrowser,"fileBrowserDropEvent",n.hitch(this,(function(e,t){Q.handleDropEvent(e,this.pathService,t)})))),new P({fileService:this.fileService,handleToGetSelectionLength:n.hitch(this.fileBrowser.grid,"getSelectedFilePaths")})},postCreate:function(){if(this.inherited(arguments),this.validationService=new K,this.validateName=new re({fileBrowser:this.fileBrowser,validationService:this.validationService}),this._cwdAndProjectRootManager=se.getInstance(),this._isProjectOpened=!1,this.fileBrowser.startupFB(),this.fileBrowser.placeAt(this.cfbContainer),this.pathService.getCwd().then(function(e){var t=e.fileInfo;this._handleCurrentFolderChange(t),this.own(d(this.pathService,this.pathService.events.CWD_CHANGED,this._handleCurrentFolderChange.bind(this)))}.bind(this)),this.own(d(this.fileService,"rename-initialized",this._handleRenameAction.bind(this)),d(this.fileService,"create-action-initialized",this._createNewFileAndSwitchToRenameMode.bind(this)),d(this.fileService,"extract-initialized",this._handleExtractToFolder.bind(this)),d(this._actionCommunicator,"AddEntryAndEnableRenameMode",n.hitch(this,this._addFileInfoAndSwitchToRenameMode)),d(this._actionCommunicator,"ClearCutAffordance",n.hitch(this,this._clearCutAffordance)),d(this._actionCommunicator,"AddCutAffordance",n.hitch(this,this._addCutAffordance)),d(this.pathService,"PathDataServiceStarted",n.hitch(this,this._enableUploadAction)),d(this.fileBrowser,"updateColumnGrouping",n.hitch(this,this._updateGroupByActions)),d(this.fileBrowser,"filebrowser-editor-show",n.hitch(this,this._handleActiveRenameMode)),d(this.fileBrowser,"filebrowser-editor-hide",n.hitch(this,this._handleHidingEditor)),d(this.cfbContainer,"keydown",n.hitch(this,this._handleTabKeyboardAccessibility)),d(this.pathService,this.pathService.events.CWD_CHANGED,(function(e){var t=w.pathFromFileInfo(e);se.updateCwd(t)})),d(this._cwdAndProjectRootManager,this._cwdAndProjectRootManager.events.CWD_EQUAL_TO_PROJECT,function(e){this._isProjectOpened&&(e?this._collapseCfbPanelIfExpanded():this._expandCfbPanelIfCollapsed())}.bind(this)),d(this._cwdAndProjectRootManager,this._cwdAndProjectRootManager.events.PROJECT_OPENED,function(e){this._isProjectOpened=e,this._expandCfbPanelIfCollapsed()}.bind(this)),r.after(this.fileBrowser,"onSelectionChange",n.hitch(this,this._updateSelectionBasedActions),!0),r.after(this.fileBrowser,"onDoubleClick",n.hitch(this,this._openFile),!0),r.after(this.fileBrowser,"onFilesDrop",n.hitch(this,this._onFilesDrop),!0),r.after(this.fileBrowser,"onFileNameChanged",n.hitch(this,this._renameFile),!0),r.after(this.fileBrowser,"onFileInputChange",n.hitch(this,this._uploadFile),!0)),this.layoutConfiguration){var e=this.layoutConfiguration.GroupColumn.value,t=this.layoutConfiguration.GroupMode.value;if(t&&e){var i=this.columnRegistry.getColumn(e);i&&setTimeout(function(){this._lastCwdPath?this.fileBrowser.group(i):d.once(this.pathService,this.pathService.events.CWD_CHANGED,()=>{this.fileBrowser.group(i)})}.bind(this),0)}}},_expandCfbPanelIfCollapsed:function(){return this.uiContainer.getChildProperties("cfb").isCollapsed&&this.getParent().restore("cfb"),this.uiContainer.getChildProperties("cfb").isCollapsed},_collapseCfbPanelIfExpanded:function(){return this.uiContainer.getChildProperties("cfb").isCollapsed||this.getParent().collapse("cfb"),this.uiContainer.getChildProperties("cfb").isCollapsed},async _doRename(e,t){if(e.name!==t.name)try{await this.fileService.renameFile(e,t)}catch(t){this.fileService.emit("rename-failed",{path:e.path,error:t})}},_handleRenameAction:function(e){const t=this.fileBrowser.getRowFileInfo(e);let i=this.fileBrowser.renameFile([t]);const n=this.fileService.on("rename-complete",e=>{n.remove(),this.fileBrowser.setFocusAndSelection(e)});i.then(async function(i){if(!this.validateName.hideErrorPopups()){const n=w.fileInfoFromPath(e);n.path=w.createFilePath(n.location,i.newName),n.parent=w.getParentPath(n.path),Object.assign(n,{name:i.newName});const o=new Promise(e=>le.subscribe("store-modified",e,{path:n.path,once:!0,clientId:"cfb"}));this._doRename(t,n),await o}}.bind(this))},_handleHidingEditor:function(e){const{__renaming:t}=this;delete this.__renaming,t.name===e.editor.value&&this.fileService.emit("rename-complete",t),this.fileService.unLockListFolderRequestAndResponse(),this.validateName.handleBlankValues(e)},_handleActiveRenameMode:function(e){const t=this.fileBrowser.grid.row(e).data;this.__renaming=t,this.fileService.lockListFolderRequestAndResponse(),this.validateName.handleEditorInput(e)},_handleExtractToFolder:async function(e){const{extractedFolderPath:t,parentFolderPath:i,extractedToFolderPromise:n,folderExists:o}=e;o||await new Promise(e=>le.subscribe("store-modified",e,{path:t,once:!0,clientId:"cfb"})),this.fileBrowser.setFocusAndSelection(t)},_expandRowWithChildren:async function(e){const t=this.fileBrowser.grid.row(e),i=e.path;let{id:n}=t;if(!this.fileBrowser.isExpanded(n)){let e=this.fileDataService.updateModelAfterExpansion(i);await this.fileBrowser.grid.expand(n,!0),await e}},_createNewFileAndSwitchToRenameMode:async function(e){const t=function(e){return new Promise(t=>{const i=this.fileBrowser.on("renderRow",n=>{n[e]&&(i.remove(),t())})})}.bind(this),i=function(e){return new Promise(t=>{const i=this.fileBrowser.on("renderRow",n=>{Object.values(n).some(t=>t.parent===e)&&(i.remove(),t())})})}.bind(this),n=Object.freeze({FOLDER_EMPTY:"FOLDER_EMPTY",FOLDER_COLLAPSED:"FOLDER_COLLAPSED",FOLDER_EXPANDED:"FOLDER_EXPANDED"});let o,r,a,s,l,c,d=this._inputSource.getInput();if(1===d.filePaths.length&&d.fileInfoArray[0].isDirectory&&"zip"!==e.placeholderExtension)if(l=d.fileInfoArray[0].path,c=this.fileBrowser.grid.store.query(e=>e.path===l)[0],c.hasChildren){const e=this.fileBrowser.grid.row(c);let{id:t}=e;o=this.fileBrowser.isExpanded(t)?n.FOLDER_EXPANDED:n.FOLDER_COLLAPSED}else o=n.FOLDER_EMPTY;else{let e=await this.pathService.getCwd();l=e.cwd,c=this.fileBrowser.grid.store.query(e=>e.path===l)[0],o=n.FOLDER_EXPANDED}switch(o){case n.FOLDER_EMPTY:{r=this._getAvailableDefaultFileName(e.placeholderName,e.placeholderExtension,l,e.isDirectory),a=w.createFilePath(l,r);let i=t(l),n=t(a);await e.callbackFcn(r,l),await i,await this._expandRowWithChildren(c),await n;break}case n.FOLDER_COLLAPSED:{let n=i(l);await this._expandRowWithChildren(c),await n,r=this._getAvailableDefaultFileName(e.placeholderName,e.placeholderExtension,l,e.isDirectory),a=w.createFilePath(l,r);let o=t(a);await e.callbackFcn(r,l),await o;break}case n.FOLDER_EXPANDED:{r=this._getAvailableDefaultFileName(e.placeholderName,e.placeholderExtension,l,e.isDirectory),a=w.createFilePath(l,r);let i=t(a);await e.callbackFcn(r,l),await i;break}}s=function(e,t){let i;return i=e?w.folderInfoFromPath(t):w.fileInfoFromPath(t),i}(e.isDirectory,a);const u=this.fileService.on("rename-complete",async e=>{u.remove(),setTimeout(()=>{e.name!==s.name&&this.fileBrowser.setFocusAndSelection(e);const t=new CustomEvent("rename-complete",{detail:e});window.dispatchEvent(t)},0)});setTimeout(()=>{this.fileBrowser.setFocusAndSelection(s),this.fileBrowser.renameFile([s]).then(async t=>{if((e.fileNameValidatorFcn||q.validateFileName)(t.newName,l)){const{fileInfo:e,newName:r}=t;var i=w.pathFromFileInfo(e),n=w.locationFromPath(i),o=w.createFilePath(n,r);const a=new Promise(e=>le.subscribe("store-modified",e,{path:o,once:!0,clientId:"cfb"})),s=(await this.fileOperationsService.rename(i,o),await a);this.fileService.emit("rename-complete",s)}else A.warn("fileNameValidatorFcn(): Invalid File Name")})},0)},_getAvailableDefaultFileName:function(e,t,i,n){let o,r=this.fileBrowser.grid.store.query({parent:i}).map(e=>e.name),a=new Set;r.forEach(e=>a.add(e));let s=1;if(n)for(o=e;a.has(o);)s+=1,o=e+" ("+s.toString()+")";else for(o=e+"."+t;a.has(o);)s+=1,o=e+s.toString()+"."+t;return o},_isNotDuplicatedFileName:function(e,t){let i=this.fileBrowser.grid.store.query({parent:t}).map(e=>e.name),n=new Set;return i.forEach(e=>n.add(e)),!n.has(e)},_addFileInfoAndSwitchToRenameMode:async function(e){if(this.pathService.getCurrentFolderPath()!==e.parent){const i=this.fileBrowser.grid.row(e.parent);var{id:t}=i;this.fileBrowser.grid.store.query({path:e.parent})[0].hasChildren||await new Promise(t=>{le.subscribe("store-modified",t,{path:e.parent,once:!0,clientId:"cfb"})});this.fileBrowser.isExpanded(t)||await this.fileBrowser.grid.expand(t,!0)}let i;const n=this.fileBrowser.grid.store.query({path:e.path})[0];i=n?Promise.resolve(n):new Promise(t=>le.subscribe("store-modified",t,{path:e.path,once:!0,clientId:"cfb"})),await i;const o=this.fileService.on("rename-complete",async t=>{o.remove(),setTimeout(()=>{t.name!==e.name&&this.fileBrowser.setFocusAndSelection(t);const i=new CustomEvent("rename-complete",{detail:t});window.dispatchEvent(i)},0)});this.fileBrowser.setFocusAndSelection(e),this.fileBrowser.renameFile([e]).then(async e=>{if(this.validateName.hideErrorPopups());else{const{fileInfo:o,newName:r}=e;var t=w.pathFromFileInfo(o),i=w.locationFromPath(t),n=w.createFilePath(i,r);const a=new Promise(e=>le.subscribe("store-modified",e,{path:n,once:!0,clientId:"cfb"})),s=(await this.fileOperationsService.rename(t,n),await a);this.fileService.emit("rename-complete",s)}})},_clearCutAffordance:function(){this.fileBrowser.clearCutAffordance()},_addCutAffordance:function(e){var t,i=[];for(t=0;t<e.length;t++)i.push(w.pathFromFileInfo(e[t]));this.fileBrowser.addCutAffordance(i)},focus:function(){this.fileBrowser.grid.focus()},onFocus:function(){this.fileBrowser.onFocus()},onBlur:function(){this.fileBrowser.onBlur()},removeSpinner:function(){this.emit("removeSpinner")},getActionsMenuActionObjects:function(){return this.currentFolderActions.getFlatActionObjectList()},getActionsMenuActionIds:function(){return this.currentFolderActions.getActionIdList()},_openFile:function(e){this.fileOperationsService.open(e,this._actionInputArgs),this.fileBrowser.setShouldGiveFocusBackToDgrid(!0)},_renameFile:function(e,t){if(!this.validateName.hideErrorPopups()){const i=w.fileInfoFromPath(e.path);return i.path=w.createFilePath(i.location,t),Object.assign(i,{name:t}),this._doRename(e,i)}},_enableUploadAction:function(){this._updateToolstripAction("motw.upload",{enabled:!0})},_uploadFile:function(e,t){var i=e.files;i&&Q.validateFileList(i)?$.launch(this.pathService,e,this.pathService.getCurrentFolderPath(),t):t.reset()},_onFilesDrop:function(e,t,i){this._inputSource.setInput([],[]);var n=e.map((function(e){return w.pathFromFileInfo(e)})),o=w.pathFromFileInfo(t);if(i)this._actionManager.executeAction("copy-to-clipboard",n),this._actionManager.executeAction("paste-from-clipboard",[o]);else{for(var r=[],a=[],s=0;s<e.length;s++){var l=this.fileService.fileStore.store.query({path:e[s].parent})[0];l&&!1===l.filePermissions.canWrite?r.push(w.pathFromFileInfo(e[s])):a.push(w.pathFromFileInfo(e[s]))}r.length>0&&(this._actionManager.executeAction("copy-to-clipboard",r),this._actionManager.executeAction("paste-from-clipboard",[o])),a.length>0&&(this._actionManager.executeAction("cut-to-clipboard",a),this._actionManager.executeAction("paste-from-clipboard",[o]))}},_updateDownloadActionState:function(e){if(1===e.length){var t=e[0],i=w.canDownload(t);t?this._updateToolstripAction("motw.download",{enabled:i,selectedFileInfo:t}):this._updateToolstripAction("motw.download",{enabled:i})}else this._updateToolstripAction("motw.download",{enabled:!1})},_updateSelectionBasedActions:function(e,t){this._inputSource.setInput(t,e),this._updateDownloadActionState(e)},_handleCurrentFolderChange:async function(e){var t={enabled:w.isWritable(e),currentWorkingFolder:e};this._updateToolstripAction("motw.newFile",t),this._updateToolstripAction("motw.newLiveScript",t),this._updateToolstripAction("motw.newLiveFunction",t),this._updateToolstripAction("motw.newFunction",t),this._updateToolstripAction("motw.newExample",t),this._updateToolstripAction("motw.newClass",t),this._updateToolstripAction("motw.openAsNotebook",t),this._updateToolstripAction("motw.newClass",t),this._updateToolstripAction("motw.upload",t),this._updateDownloadActionState([e]),this._inputSource.setInput([],[]);const i=w.pathFromFileInfo(e);this._lastCwdPath!==i&&(await this.fileBrowser.clearView(),void 0!==this._lastCwdPath&&await this.fileService.stopWatchingFolderAndChildren(this._lastCwdPath,X.cwdWatchReason("CFB")),await this.fileService.watchFolderAndChildren(i,X.cwdWatchReason("CFB")),this._lastCwdPath=i,await this.fileBrowser.changeCurrentFolder(e),this.removeSpinner(),this.fileService.emit("cfb:tracking-cwd",e))},resize:function(e){this.inherited(arguments),e&&(l.set(this.cfbContainer,{height:e.h.toString()+"px",width:e.w.toString()+"px"}),this.fileBrowser.resize(e))},_stopGrouping:function(){this.fileBrowser.unGroup()},_callbackForGroupByAction:function(e){var t=dijit.registry.getEnclosingWidget(e[0].target);if(this._clearPreviousGrouping(e,t),t.checkBox.checked){this.columnRegistry.getColumns().forEach(n.hitch(this,(function(e){e.groupingAction&&e.groupingAction.text===t.text&&this.fileBrowser.group(e)})))}else{var i=this.fileBrowser.getGroupedColumn();i.groupingAction.grouped=!0,this._updateGroupByActions({column:i,grouped:!0})}},_clearPreviousGrouping:function(e,t){var i=this.fileBrowser.getGroupedColumn();i&&i.groupingAction&&i.groupingAction.text!==t.text&&(i.groupingAction.grouped=!1,this._updateGroupByActions({}))},_updateGroupByActions:function(e){e.column?(this._updateToolstripAction(e.column.groupingAction.id,{grouped:e.grouped,selected:e.grouped}),this._updateToolstripAction("stopGrouping",{enabled:!0})):(this.columnRegistry.getColumns().forEach(n.hitch(this,(function(e){e.groupable&&this._updateToolstripAction(e.groupingAction.id,{grouped:!1,selected:!1})}))),this._updateToolstripAction("stopGrouping",{enabled:!1}))},_updateToolstripAction:function(e,t){this.motwActionService&&this.motwActionService.updateAction(e,t)},_handleTabKeyboardAccessibility:function(e){var t;if(e.keyCode===h.TAB){var i=this.fileBrowser.getFocusableElements().focusableElements,n=e.target,o=i.indexOf(n);o<0?p.focus(i[0]):e.shiftKey?e.shiftKey&&(t=i[o-1]?i[o-1]:i[i.length-1]):t=i[o+1]?i[o+1]:i[0],p.focus(t),e.preventDefault(),e.stopPropagation()}}})}),e,t),e.exports=o},function(e,t){e.exports='<div id=${id} class="CurrentFolderBrowser">\n<div data-dojo-attach-point="cfbContainer"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(222),i(204),i(206),i(7669),i(1614),i(7671),i(7672),i(7673),i(7674)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([],{constructor:function(e){this._communicator=o.getCommunicator(),this._iconLookupTable=new a,this._tooltipLookupTable=new c,this._statusCache=new s({communicator:this._communicator}),this._statusColumn=new l(i.hitch(this,this._getIcon),i.hitch(this,this._getStatus),i.hitch(this,this._getTooltip),this._statusCache.getStatusCacheNotifier())},init:function(){this._communicator.registerInterest(r.STATUS_ICONS,i.hitch(this,this._handleStatusIconsMessage)),this._communicator.registerInterest(r.STATUS_TOOLTIPS,i.hitch(this,this._handleTooltipsMessage)),this._communicator.start(),this._statusCache.init()},getStatusColumn:function(){return this._statusColumn},_getIcon:function(e){return this._iconLookupTable.getIconFromStatusString(this._getStatus(e))},_getTooltip:function(e){return this._tooltipLookupTable.getTooltipFromStatus(e)},_getStatus:function(e){var t="UNKNOWN";if(this._statusCache.hasCache()){var i=this._statusCache.getStatusFromFileName(e);i&&(t=i)}return t},_handleStatusIconsMessage:function(e){this._iconLookupTable.updateIcons(e)},_handleTooltipsMessage:function(e){this._tooltipLookupTable.updateTooltips(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7670)],o=i.dj.d(n,(function(e){var t=new e({startChannel:"/matlab/sourcecontrol/start",stopChannel:"/matlab/sourcecontrol/stop",communicationChannel:"/matlab/sourcecontrol/main"});return{getCommunicator:function(){return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1035),i(206),i(219),i(1614)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{constructor:function(e){this._startChannel=e.startChannel,this._stopChannel=e.stopChannel,this._communicationChannel=e.communicationChannel,this.listenerMap=[]},start:function(){o.subscribe(this._communicationChannel,this._handleResponses,this),o.publish(this._startChannel,{})},stop:function(){o.unsubscribe(this._communicationChannel,this._handleResponses),o.publish(this._stopChannel,{})},registerInterest:function(e,t){this.listenerMap.push({id:e,callback:t})},_handleResponses:function(e){var t=e.data;this.listenerMap.forEach((function(e){e.id===t.type&&e.callback(t)}))},publish:function(e,t){var i={type:e};o.publish(this._communicationChannel,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._icons={}},updateIcons:function(e){for(var t=e.data,i=0;i<t.length;i++){var n=Object.keys(t[i])[0];this._icons[n]=t[i][n]}},getIconFromStatusString:function(e){var t=this._icons[e];if(void 0===t)throw new Error("Could not find an icon for status:"+e);return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(1614)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(t){this._communicator=t.communicator,this._status=void 0,this._systemName="";var n=e([i],{notifySoureControlRemoved:function(){this.emit("RemovedSourceControl",{})},cacheUpdated:function(e){this.emit("StatusCacheUpdated",e)},systemNameChanged:function(e,t){this.emit("SourceControlSystemChanged",{previousName:e,newName:t})}});this._statusCacheNotifier=new n},init:function(){this._communicator.registerInterest(n.REMOVE_SOURCECONTROL,t.hitch(this,this._handleRemoveSourceControl)),this._communicator.registerInterest(n.STATUS_CACHE,t.hitch(this,this._handleStatusCacheUpdated))},_handleStatusCacheUpdated:function(e){this._populateStatusCache(e.data),this._updateSystemName(e.column),this._statusCacheNotifier.cacheUpdated(this)},_handleRemoveSourceControl:function(){this._clearCache(),this._statusCacheNotifier.notifySoureControlRemoved(),this._updateSystemName("")},_updateSystemName:function(e){var t=this._systemName;t!==e&&(this._systemName=e,this._statusCacheNotifier.systemNameChanged(t,this._systemName))},getStatusFromFileName:function(e){return this._status[e]},hasCache:function(){return void 0!==this._status},_clearCache:function(){this._status=void 0},_populateStatusCache:function(e){this._status={};for(var t=0;t<e.length;t++){var i=e[t].fileName;this._status[i]=e[t].status}},getStatusCacheNotifier:function(){return this._statusCacheNotifier}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(211),i(204),i(206),i(228),i(257),i(312),i(210)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([],{constructor:function(n,o,a,s){this._headerLabel=document.createElement("div"),this._headerLabel.className="columnHeaderLabel",this._headerLabel.textContent="Status";var l=new(e(t,{headerLabel:this._headerLabel,id:"statusColumn",label:"Status",renderHeaderCell:function(e){e.appendChild(this.headerLabel)},field:"status",sortable:!0,renderCell:function(e,t,l,c){var d=e.path,u=i.create("img");function h(){r.set(u,"src",n(d)),r.set(u,"title",a(o(d))),r.set(u,"class",o(d))}s.on("StatusCacheUpdated",h),h(),l.appendChild(u)},sort:function(e,t){var i=o(e.path),n=o(t.path);return e.isDirectory||t.isDirectory?e.isDirectory&&t.isDirectory?this._compareStatus(i,n):e.isDirectory?-1:t.isDirectory?1:void 0:this._compareStatus(i,n)},hidden:!0,unhidable:!1,updateHeaderLabel:function(e){this.headerLabel.textContent=e},_compareStatus:function(e,t){return e<t?-1:e>t?1:0}}));s.on("StatusCacheUpdated",(function(){!0===l.hidden&&l.grid.toggleColumnHiddenState(l.id,!1)})),s.on("RemovedSourceControl",(function(){!1===l.hidden&&l.grid.toggleColumnHiddenState(l.id,!0)})),s.on("SourceControlSystemChanged",(function(e){var t;t=e.newName,l.updateHeaderLabel(t)})),this.column=l}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._tooltips={}},updateTooltips:function(e){for(var t=e.data,i=0;i<t.length;i++){var n=Object.keys(t[i])[0],o=n.replace(/\s+/g,"-");this._tooltips[o]=t[i][n]}},getTooltipFromStatus:function(e){return this._tooltips[e]}})}),e,t),e.exports=o},function(e,t,i){e.exports={blankTooltip:"ファイル名を空にはできません。",columnLabelPreview:"プレビュー",duplicateFileTooltip:"この名前のファイルは既に存在します。",duplicateFolderTooltip:"この名前のフォルダーは既に存在します。",fileHistoryTooltip:"ファイル バージョンを表示します",hiddenTooltip:"隠しファイルとフォルダーを表示しないように基本設定している場合、ファイル名を隠しファイル名に変更することはできません。",invalidTooltipUnix:"ファイル名にスラッシュ (/) を含めたり、バックスラッシュ (\\) で始めることはできません。",invalidTooltipWin:'次の文字はファイル名に使用できません: \\ / : * ? " < > |',item:"項目",items:"項目",matlabTooltip:"警告: MATLAB ファイル名は英字で始まらなければならず、63 文字までの英数字やアンダースコアを含めることができます。",publishedMySite:"(マイ サイト)",shareFolderTooltip:"このフォルダーを共有します",sharedWithMe:"(自分と)",title:"現在のフォルダー"}},function(e,t,i){e.exports={blankTooltip:"파일 이름은 비워 둘 수 없습니다.",columnLabelPreview:"미리보기",duplicateFileTooltip:"이 이름의 파일이 이미 존재합니다.",duplicateFolderTooltip:"이 이름의 폴더가 이미 있습니다.",fileHistoryTooltip:"파일 버전을 표시합니다.",hiddenTooltip:"숨겨진 파일 및 폴더를 표시하지 않도록 설정되어 있으면 파일 이름을 숨겨진 파일과 같은 이름으로 바꿀 수 없습니다.",invalidTooltipUnix:"파일 이름은 슬래시(/)를 포함하거나 백슬래시(\\)로 시작할 수 없습니다.",invalidTooltipWin:'다음 문자는 파일 이름에 사용할 수 없습니다. \\ / : * ? " < > |',item:"항목",items:"항목",matlabTooltip:"경고: MATLAB 파일 이름은 영문자로 시작해야 하며 최대 63자의 영숫자 또는 밑줄을 포함할 수 있습니다.",publishedMySite:"(내 사이트)",shareFolderTooltip:"이 폴더를 공유합니다.",sharedWithMe:"(나와 공유)",title:"현재 폴더"}},function(e,t,i){e.exports={blankTooltip:"文件名不能为空。",columnLabelPreview:"预览",duplicateFileTooltip:"已存在同名文件。",duplicateFolderTooltip:"已存在同名文件夹。",fileHistoryTooltip:"显示文件版本",hiddenTooltip:"如果您的首选项设置为不显示隐藏文件和文件夹,则不能将文件名重命名为隐藏文件名。",invalidTooltipUnix:"文件名不能包含斜杠(/),也不能以反斜杠(\\)开头。",invalidTooltipWin:'以下字符在文件名中无效: \\ / : * ? " < > |',item:"项目",items:"项目",matlabTooltip:"警告: MATLAB 文件名必须以字母字符开头,最多可以包含 63 个字母数字字符或下划线。",publishedMySite:"(我的站点)",shareFolderTooltip:"共享此文件夹",sharedWithMe:"(与我)",title:"当前文件夹"}},function(e,t,i){e.exports={root:{blankTooltip:"The file name cannot be blank.",columnLabelPreview:"Preview",duplicateFileTooltip:"A file by this name already exists.",duplicateFolderTooltip:"A folder by this name already exists.",fileHistoryTooltip:"Show file versions",hiddenTooltip:"The file name cannot be renamed to a hidden file name while your preference is set to not show hidden files and folders.",invalidTooltipUnix:"A file name cannot contain a slash (/) or begin with a backslash(\\).",invalidTooltipWin:'These characters are invalid in a file name: \\ / : * ? " < > |',item:"item",items:"items",matlabTooltip:"Warning: MATLAB file names must start with an alphabetic character and can contain up to 63 alphanumeric characters or underscores.",publishedMySite:"(my site)",shareFolderTooltip:"Share this folder",sharedWithMe:"(with me)",title:"CURRENT FOLDER"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){e.exports={ErrorDialogTitle:"エラーが発生しました",addToPath:"パスに追加",class:"クラス",codeAnalyzerReport:"コード アナライザー レポート",copy:"コピー",copyKey:"Ctrl + C",coverageReport:"カバレッジレポート",createErrorDialogMessage:"ファイルを作成できません。",createErrorDialogTitle:"ファイルの作成エラー",createLinkAction:"リンクの作成",createZipFile:"Zip ファイルの作成",cut:"切り取り",cutKey:"Ctrl + X",deleteFileDialogMessage:"このファイルを削除してもよろしいですか?",deleteFileDialogTitle:"ファイルの削除",deleteFileErrorDialogMessage:'ファイル "${0}" を削除できません',deleteFolderDialogMessage:"このフォルダーを削除してもよろしいですか?",deleteFolderDialogTitle:"フォルダーの削除",deleteFolderErrorDialogMessage:'フォルダー "${0}" を削除できません',deleteMenu:"削除",deleteMultipleItemsDialogMessage:"これら ${0} 個の項目を削除してもよろしいですか?",deleteMultipleItemsDialogTitle:"複数の項目の削除",deleteMultipleItemsErrorDialogMessage:"次の項目を削除できません:\n${0}",dependencyReport:"依存関係レポート",enter:"入力",example:"例",extractZipErrorDialogMessage:"Zip ファイルの内容をフォルダーに解凍できません",extractZipErrorDialogTitle:"Zip ファイルの解凍",f2:"F2",f9:"F9",findFiles:"ファイル検索",folder:"フォルダー",function:"関数",groupBy:"グループ化",helpReport:"ヘルプ レポート",indicateFilesNotOnPath:"パスにないファイルを薄く表示",inviteMembersAction:"メンバーの招待",liveFunction:"ライブ関数",liveScript:"ライブ スクリプト",manageLinkAction:"リンクの管理",manageShareAction:"メンバーの管理",new:"新規",noButtonLabel:"いいえ",open:"開く",openAsLiveScript:"ライブ スクリプトとして開く",paste:"貼り付け",pasteKey:"Ctrl + V",removeFromPath:"パスから削除",rename:"名前の変更",renameErrorDialogMessage:"ファイルの名前を変更できません。${0}。",renameErrorDialogTitle:"ファイル名の変更エラー",replaceFileDialogLabel:"この場所に同じ名前のファイルが既にあります。 \n \n 既存のファイルをこのファイルに置き換えますか? \n \n",replaceFileDialogTitle:"ファイルの置き換えの確認",replaceFolderDialogForExtractMessage:"この場所に同じ名前のフォルダーが既にあります。 \n \n 既存のフォルダー内のファイルと解凍中のフォルダー内のファイルが同名である場合、ファイルは置き換えられます。続行しますか? \n \n",replaceFolderDialogLabel:"この場所に同じ名前のフォルダーが既にあります。 \n \n 既存のフォルダー内のファイルとコピー中のフォルダー内のファイルが同じ名前である場合、ファイルが置き換えられます。フォルダーのコピーを続けますか? \n \n",replaceFolderDialogTitle:"フォルダーの置き換えの確認",reports:"レポート",run:"実行",script:"スクリプト",selectedFolder:"選択フォルダー",selectedFolderAndSubFolders:"選択フォルダーとサブフォルダー",serverError:"MATLAB エラー",share:"共有",show:"表示",showColumn:"表示",sortBy:"並べ替え",sortOrderAscending:"昇順",sortOrderDescending:"降順",stopGrouping:"グループ化の停止",todoFixmeReport:"TODO/FIXME レポート",viewLinkAction:"リンクの表示",viewMembersAction:"メンバーの表示",yesButtonLabel:"はい",zipFile:"Zip ファイル"}},function(e,t,i){e.exports={ErrorDialogTitle:"오류가 발생함",addToPath:"경로에 추가",class:"클래스",codeAnalyzerReport:"코드 분석기 리포트",copy:"복사",copyKey:"Ctrl+C",coverageReport:"커버리지 리포트",createErrorDialogMessage:"파일을 만들 수 없습니다.",createErrorDialogTitle:"파일 만들기 오류",createLinkAction:"링크 만들기",createZipFile:"Zip 파일로 압축",cut:"잘라내기",cutKey:"Ctrl+X",deleteFileDialogMessage:"이 파일을 삭제하시겠습니까?",deleteFileDialogTitle:"파일 삭제",deleteFileErrorDialogMessage:'파일 "${0}"을(를) 삭제할 수 없음',deleteFolderDialogMessage:"이 폴더를 삭제하시겠습니까?",deleteFolderDialogTitle:"폴더 삭제",deleteFolderErrorDialogMessage:'폴더 "${0}"을(를) 삭제할 수 없음',deleteMenu:"삭제",deleteMultipleItemsDialogMessage:"${0}개 항목을 삭제하시겠습니까?",deleteMultipleItemsDialogTitle:"여러 항목 삭제",deleteMultipleItemsErrorDialogMessage:"다음 항목을 삭제할 수 없습니다.\n${0}",dependencyReport:"종속성 리포트",enter:"Enter",example:"예제",extractZipErrorDialogMessage:"폴더에 Zip 파일 내용의 압축을 풀 수 없음",extractZipErrorDialogTitle:"Zip 파일 압축 풀기",f2:"F2",f9:"F9",findFiles:"파일 찾기",folder:"폴더",function:"함수",groupBy:"그룹화 기준",helpReport:"도움말 리포트",indicateFilesNotOnPath:"경로에 없는 파일 표시",inviteMembersAction:"구성원 초대",liveFunction:"라이브 함수",liveScript:"라이브 스크립트",manageLinkAction:"링크 관리",manageShareAction:"구성원 관리",new:"새로 만들기",noButtonLabel:"아니요",open:"열기",openAsLiveScript:"라이브 스크립트로 열기",paste:"붙여넣기",pasteKey:"Ctrl+V",removeFromPath:"경로에서 제거",rename:"이름 바꾸기",renameErrorDialogMessage:"파일 이름을 바꿀 수 없습니다. ${0}.",renameErrorDialogTitle:"파일 이름 바꾸기 오류",replaceFileDialogLabel:"이 위치에 이름이 같은 파일이 이미 있습니다. \n \n 기존 파일을 이 파일로 바꾸시겠습니까? \n \n",replaceFileDialogTitle:"파일 바꾸기 확인",replaceFolderDialogForExtractMessage:"이 위치에 이름이 같은 폴더가 이미 있습니다. \n \n 기존 폴더에 있는 파일의 이름이 압축을 풀 폴더에 있는 파일의 이름과 동일한 경우 파일이 바뀝니다. 계속하시겠습니까? \n \n",replaceFolderDialogLabel:"이 위치에 이름이 같은 폴더가 이미 있습니다. \n \n 기존 폴더에 있는 파일의 이름이 복사할 폴더에 있는 파일의 이름과 동일한 경우 파일이 바뀝니다. 폴더를 복사하시겠습니까? \n \n",replaceFolderDialogTitle:"폴더 바꾸기 확인",reports:"리포트",run:"실행",script:"스크립트",selectedFolder:"선택한 폴더",selectedFolderAndSubFolders:"선택한 폴더 및 하위 폴더",serverError:"MATLAB 오류",share:"공유",show:"표시",showColumn:"표시",sortBy:"정렬 기준",sortOrderAscending:"오름차순",sortOrderDescending:"내림차순",stopGrouping:"그룹화 중지",todoFixmeReport:"TODO/FIXME 리포트",viewLinkAction:"링크 보기",viewMembersAction:"구성원 보기",yesButtonLabel:"예",zipFile:"Zip 파일"}},function(e,t,i){e.exports={ErrorDialogTitle:"发生错误",addToPath:"添加到路径",class:"类",codeAnalyzerReport:"代码分析器报告",copy:"复制",copyKey:"Ctrl + C",coverageReport:"覆盖率报告",createErrorDialogMessage:"无法创建文件。",createErrorDialogTitle:"创建文件时出错",createLinkAction:"创建链接",createZipFile:"创建 Zip 文件",cut:"剪切",cutKey:"Ctrl + X",deleteFileDialogMessage:"是否确定要删除此文件?",deleteFileDialogTitle:"删除文件",deleteFileErrorDialogMessage:'无法删除文件 "${0}"',deleteFolderDialogMessage:"是否确定要删除此文件夹?",deleteFolderDialogTitle:"删除文件夹",deleteFolderErrorDialogMessage:'无法删除文件夹 "${0}"',deleteMenu:"删除",deleteMultipleItemsDialogMessage:"是否确定要删除这 ${0} 个项目?",deleteMultipleItemsDialogTitle:"删除多个项目",deleteMultipleItemsErrorDialogMessage:"无法删除以下项:\n${0}",dependencyReport:"依存关系报告",enter:"Enter",example:"示例",extractZipErrorDialogMessage:"无法将 Zip 文件内容提取到文件夹",extractZipErrorDialogTitle:"提取 Zip 文件",f2:"F2",f9:"F9",findFiles:"查找文件",folder:"文件夹",function:"函数",groupBy:"分组依据",helpReport:"帮助报告",indicateFilesNotOnPath:"指示不在路径中的文件",inviteMembersAction:"邀请成员",liveFunction:"实时函数",liveScript:"实时脚本",manageLinkAction:"管理链接",manageShareAction:"管理成员",new:"新建",noButtonLabel:"否",open:"打开",openAsLiveScript:"以实时脚本方式打开",paste:"粘贴",pasteKey:"Ctrl + V",removeFromPath:"从路径中删除",rename:"重命名",renameErrorDialogMessage:"无法重命名文件。${0}。",renameErrorDialogTitle:"重命名文件时出错",replaceFileDialogLabel:"此位置已存在具有相同名称的文件。\n \n 是否要使用此文件替换现有文件? \n \n",replaceFileDialogTitle:"确认文件替换",replaceFolderDialogForExtractMessage:"此位置已存在具有相同名称的文件夹。\n \n 如果现有文件夹中的文件与要提取的文件夹中的文件同名,现有文件夹中的文件将被替换。是否仍要继续? \n \n",replaceFolderDialogLabel:"此位置已存在具有相同名称的文件夹。\n \n 如果现有文件夹中的文件与要复制的文件夹中的文件同名,现有文件夹中的文件将被替换。是否仍要复制该文件夹? \n \n",replaceFolderDialogTitle:"确认文件夹替换",reports:"报告",run:"运行",script:"脚本",selectedFolder:"选定的文件夹",selectedFolderAndSubFolders:"选定的文件夹和子文件夹",serverError:"MATLAB 错误",share:"共享",show:"显示",showColumn:"显示",sortBy:"排序依据",sortOrderAscending:"升序",sortOrderDescending:"降序",stopGrouping:"停止分组",todoFixmeReport:"TODO/FIXME 报告",viewLinkAction:"查看链接",viewMembersAction:"查看成员",yesButtonLabel:"是",zipFile:"Zip 文件"}},function(e,t,i){e.exports={root:{ErrorDialogTitle:"An Error Has Occurred",addToPath:"Add to Path",class:"Class",codeAnalyzerReport:"Code Analyzer Report",copy:"Copy",copyKey:"Ctrl + C",coverageReport:"Coverage Report",createErrorDialogMessage:"Unable to create file.",createErrorDialogTitle:"Error Creating File",createLinkAction:"Create Link",createZipFile:"Create Zip File",cut:"Cut",cutKey:"Ctrl + X",deleteFileDialogMessage:"Are you sure you want to delete this file?",deleteFileDialogTitle:"Delete File",deleteFileErrorDialogMessage:'Unable to delete file "${0}"',deleteFolderDialogMessage:"Are you sure you want to delete this folder?",deleteFolderDialogTitle:"Delete Folder",deleteFolderErrorDialogMessage:'Unable to delete folder "${0}"',deleteMenu:"Delete",deleteMultipleItemsDialogMessage:"Are you sure you want to delete these ${0} items?",deleteMultipleItemsDialogTitle:"Delete Multiple Items",deleteMultipleItemsErrorDialogMessage:"Unable to delete these items:\n${0}",dependencyReport:"Dependency Report",enter:"Enter",example:"Example",extractZipErrorDialogMessage:"Unable to extract Zip file contents to folder",extractZipErrorDialogTitle:"Extract Zip File",f2:"F2",f9:"F9",findFiles:"Find Files",folder:"Folder",function:"Function",groupBy:"Group By",helpReport:"Help Report",indicateFilesNotOnPath:"Indicate Files Not on Path",inviteMembersAction:"Invite Members",liveFunction:"Live Function",liveScript:"Live Script",manageLinkAction:"Manage Link",manageShareAction:"Manage Members",new:"New",noButtonLabel:"No",open:"Open",openAsLiveScript:"Open as Live Script",paste:"Paste",pasteKey:"Ctrl + V",removeFromPath:"Remove from Path",rename:"Rename",renameErrorDialogMessage:"Unable to rename file. ${0}.",renameErrorDialogTitle:"Error Renaming File",replaceFileDialogLabel:"There is already a file with the same name in this location. \n \n Would you like to replace the existing file with this one? \n \n",replaceFileDialogTitle:"Confirm File Replace",replaceFolderDialogForExtractMessage:"There is already a folder with the same name in this location. \n \n If the files in the existing folder have the same name as files in the folder you are extracting, they will be replaced. Do you still want to continue? \n \n",replaceFolderDialogLabel:"There is already a folder with the same name in this location. \n \n If the files in the existing folder have the same name as files in the folder you are copying, they will be replaced. Do you still want to copy the folder? \n \n",replaceFolderDialogTitle:"Confirm Folder Replace",reports:"Reports",run:"Run",script:"Script",selectedFolder:"Selected Folder",selectedFolderAndSubFolders:"Selected Folder and Subfolders",serverError:"MATLAB Error",share:"Share",show:"Show",showColumn:"Show",sortBy:"Sort By",sortOrderAscending:"Ascending",sortOrderDescending:"Descending",stopGrouping:"Stop Grouping",todoFixmeReport:"TODO/FIXME Report",viewLinkAction:"View Link",viewMembersAction:"View Members",yesButtonLabel:"Yes",zipFile:"Zip File"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(236),i(7684),i(241),i(599)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s,l,c,d={yesButtonLabel:a.yesButtonLabel,noButtonLabel:a.noButtonLabel};function u(e){return"true"===e.isMultiFileAction}var h=function(e){return u(e)?(d.dialogTitle=a.deleteMultipleItemsDialogTitle,d.dialogMessage=n.substitute(a.deleteMultipleItemsDialogMessage,[c().length])):(d.dialogTitle=e.dialogTitle,d.dialogMessage=e.dialogText),d};return e([],{constructor:function(e){s=e.fileService,c=e.handleToGetSelectionLength,this._responseHandler=function(e){var t=h(e),n=t.dialogTitle,o=function(e,t){var n=e.dialogMessage,o=i.create("div");return i.create("span",{textContent:n},o),i.create("br",null,o),i.create("br",null,o),!u(t)&&i.create("span",o),o}(t,e),a={icon:"question","data-test-id":"cfbDeleteDialog",defaultAcceptButton:1,buttonText:[t.yesButtonLabel,t.noButtonLabel],closeCallback:function(t){u(e)?1===t.response?l.publish({result:"YES_TO_ALL"}):2===t.response&&l.publish({result:"CANCEL"}):1===t.response?l.publish({result:"YES"}):2===t.response&&l.publish({result:"NO"})}};r.displayConfirmDialog(n,o,a)},l=new o({callback:t.hitch(this,"_responseHandler"),fileService:s})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(219)],o=i.dj.d(n,(function(e,t,i){return e([],{_publishChannel:"",_subscribeChannel:"",_messageType:"",_callbackFunction:"",constructor:function(e){this._publishChannel="/matlabOnline/cfbDialogChannel",this._subscribeChannel="/matlabOnline/cfbDialogChannel",e&&(this.subscribe(t.hitch(this,this._handleJavaResponse)),this._messageType=e.messageType,this._callbackFunction=e.callback,this.fileService=e.fileService)},publish:function(e){i.publish(this._publishChannel,e)},subscribe:function(e){i.subscribe(this._subscribeChannel,e)},_handleJavaResponse:function(e){this._callbackFunction(e.data)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7686),i(7687),i.dj.c(e.i)],o=i.dj.d(n,(function(e,t){return{getRegistry:function(i){i.actionService.addAction(new e({fileService:i.fileService,executionService:i.executionService})),i.actionService.addAction(new t({fileService:i.fileService}))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(221),i(599),i(296),i(233),i(342),i(606)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l,c,d=i("mac")?[a.Keys.SHIFT,a.Keys.F7]:[a.Keys.F9];return e(o,{constructor:function(e){(e=e||{}).fileService,l=e.executionService,this.id="evaluate-selection",this.label=n.run,this.keyCode=s.getKeyBindingData(d).keyCode,this.shortcut=s.getKeyBindingData(d).shortcut,this.supportsKeyBinding=!0,this.isApplicableTo=function(e){if(1===(c=this.fileService.getFileInfosFromPaths(e)).length){var t=c[0];return!!r.isMatlabFileInfo(t)}return!1},this.callback=function(){var e=c[0];l.runFile(e)},this.section={id:"OPEN",name:"OPEN",allowSubMenu:!1,forceSubMenu:!1}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(599),i(296),i(263),i(210)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a=["matlab","desktop","currentfolder","pathaffordance"];return e(i,{constructor:function(e){this.fileService=e.fileService,this.id="pathAffordanceEnabled",this.label=t.indicateFilesNotOnPath,n.getSetting(a,"Enabled").then((function(e){r=e.value})),n.listenTo(a,"Enabled",(function(e){r=e.newValue})),this.supportsKeyBinding=!1,this.isApplicableTo=function(e){var t=this.fileService.getFileInfosFromPaths(e);return 1===t.length||0===t.length},this.needsCheckBox=!0,this.checked=function(){return r},this.callback=function(e){var t,i=!r;e.checked=i,r=t=i,n.setSetting(a,"Enabled",t)},this.section={id:"PATH",name:"PATH",allowSubMenu:!1,forceSubMenu:!1}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(410),i(212),i(219),i(2515)],o=i.dj.d(n,(function(e,t,i,n,o){const r={OPEN:"OPEN",MISC:"MISC",NEW_RENAME_DELETE:"FILE_MANAGEMENT",PATH:"PATH_MANAGEMENT",LAYOUT:"LAYOUT_MANAGEMENT",PREVIEW:"FILE_OPERATION",DATA_TRANSFER:"DATA_TRANSFER"};var a=t((function(e){n.publish("/cfb/actionmanager",{identifier:"inputChanged",input:e})}),50);function s(e,t){return t===e||void 0!==e&&void 0!==t&&t.length===e.length&&t.every((function(t){return-1!==e.indexOf(t)}))}return n.publish("/cfb/actionmanager",{identifier:"startServerSide"}),e([o],{constructor:function(e){this._clientActionsService=e.clientActionsService,this._inputSource=e.inputSource,n.subscribe("/cfb/actionmanager",function(e){if("true"===e.data.decoyEvent||"actionsUpdated"===e.data.identifier&&this._refreshActionsRequest&&s(e.data.input,this._refreshActionsRequest.selection)){var t=e.data.actions||[];t.forEach(e=>{e.callback=()=>{this.executeAction(e.id,this._refreshActionsRequest.selection)},e.isJavaAction=!0});var n=this._clientActionsService.getAllActions().concat(t).map(function(e){return this._updateActionWithCorrectSectionId(e)}.bind(this)),o=this.groupAndOrderActions(n);this._getApplicableActions(o,this._refreshActionsRequest.selection).then(function(e){if(this.emit("actions-updated",e),this._refreshActionsRequest.deferred.isResolved()){var t=new i;t.resolve(e),this._refreshActionsRequest.deferred=t}else this._refreshActionsRequest.deferred.resolve(e)}.bind(this))}}.bind(this))},_getApplicableActions:async function(e,t){var i=e.map(async function(e){if(e.isJavaAction||void 0===e.isApplicableTo)return e.applicable=!0,e.label=e.label.replace(/&/,""),e;var i=this._inputSource.getInput();return e.applicable=await e.isApplicableTo(i.filePaths,i.fileInfoArray),e.enabled=e.isEnabled?await e.isEnabled(t):e.applicable,e}.bind(this));return(await Promise.all(i)).filter(e=>e.applicable)},_updateActionWithCorrectSectionId:function(e){var t=this.getSectionId(e),i=r[t]?r[t]:t;return e.section.parent?e.section.parent.id=i:e.section.id=i,e},_selectionHasChanged:function(e){return!s(this._refreshActionsRequest.selection,e)},createRefreshRequestFor:function(e){return a(e),this.inherited(arguments)},refreshActions:function(e){(void 0===this._refreshActionsRequest||this._selectionHasChanged(e))&&this.inherited(arguments)},executeAction:function(e,t){n.publish("/cfb/actionmanager",{identifier:"executeAction",actionId:e,input:t})},passCoordinates:function(e,t){n.publish("/cfb/actionmanager",{identifier:"menuCoordinates",input:this._refreshActionsRequest.selection,x:e,y:t})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(233),i(221),i(236),i(342),i(606),i(241),i(209),i(291),i(297),i(617),i(801),i(2482)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=n("mac")?[r.Keys.COMMAND,r.Keys.DOWN_ARROW]:[r.Keys.ENTER];let g,m,_=!1,v=c.getMVM();return e(t,{constructor:function(e){e=e||{},this._actionInputArgs=e,this.id="OPEN",this.keyCode=f,this.shortcut=a.getKeyBindingData(f).shortcut,this.supportsKeyBinding=!0,this.label=e.actionsResourceBundle.open,this.supportsKeyBinding=!0,this._blockedEvents=new Set,this._fileService=e.fileService,this._fileService.on("toggle-open-action",async e=>{e?this._blockedEvents.delete("OPEN"):this._blockedEvents.add("OPEN")}),this.openActionCallbacks={};let t=new p(this._actionInputArgs);this.openActionCallbacks=Object.assign(this.openActionCallbacks,t.openActionCallbacks),this.checkIfZipIriAndExtractFcn=t.checkIfZipIriAndExtractFcn,this.computeIsApplicableCallback=function(e,t){return _=!!t[0]&&t[0].isDirectory,0!==e.length&&(1===e.length||(e.length>0?!t.some(e=>e.isDirectory):void 0))},this.isApplicableTo=function(e,t){return g=e,m=t,this.computeIsApplicableCallback(e,t)},this.callback=async function(){const{_blockedEvents:e}=this;e.has("OPEN")||g.forEach(async(e,t)=>{let i,n=Object.assign({},m[t]);await this._fileOpenPluginServiceReady;try{i=await this.checkIfZipIriAndExtractFcn(e,n)}catch(e){return void l.error(e)}i&&(e=i.path,n.path=e,n.parent=i.parent,n.location=i.location),this.openActionCallbacks[n.type]?await this.openActionCallbacks[n.type](e,n,this._actionInputArgs):await async function(e,t){try{t?await v.feval("cd",0,[e],new d({dequeueMode:u.DEQUEUE_AT_PPE,capabilitiesList:h.getCapabilitiesListDiff(h.getFullCapabilitiesList(),["LocalClient"])})):await v.feval("open",0,[e],new d({dequeueMode:u.DEQUEUE_AT_PPE,capabilitiesList:h.getCapabilitiesListDiff(h.getFullCapabilitiesList(),["LocalClient"])}))}catch(e){e._id&&e._msg?l.error("open failed with error: "+e._id+"; "+e._msg):l.error("open failed with error: ",e)}}(e,_)})},this.section={id:"OPEN",name:"OPEN",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!1,this.forceSubMenu=!1,this.orderPriorityWithinSection=1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(221),i(236),i(342),i(606),i(241)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){const s=i("mac")?[o.Keys.ENTER]:[o.Keys.F2];return e(t,{constructor:function(e){e=e||{},this.fileService=e.fileService,this.id="RENAME",this.label=e.actionsResourceBundle.rename,this.keyCode=r.getKeyBindingData(s).keyCode,this.shortcut=r.getKeyBindingData(s).shortcut,this.supportsKeyBinding=!0,this.isApplicableTo=function(e){return this.filePaths=e,1===e.length},this.callback=function(e){let t,i;const o=this.filePaths[0];delete this.filePaths;const r=new Promise((e,n)=>{t=this.fileService.on("rename-failed",({path:e,error:t})=>{e===o&&n(t)}),i=this.fileService.on("rename-complete",t=>{t===o&&e()})});this.fileService.emit("rename-initialized",o),r.catch(e=>{const{actionsResourceBundle:t}=this,{renameErrorDialogTitle:i,renameErrorDialogMessage:o}=t,r=n.substitute(o,[e.message]);a.displayAlertDialog(i,r)}).finally(()=>{t&&t.remove(),i&&i.remove()})},this.section={id:"FILE_MANAGEMENT",name:"FILE_MANAGEMENT",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!1,this.forceSubMenu=!1,this.orderPriorityWithinSection=1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(233),i(221),i(236),i(342),i(606),i(241),i(418)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){const c=n("mac")?[r.Keys.COMMAND,r.Keys.BACKSPACE]:[r.Keys.DELETE];return e(t,{constructor:function(e){e=e||{},this.id="DELETE",this.label=e.actionsResourceBundle.deleteMenu,this.keyCode=c,this.shortcut=a.getKeyBindingData(c).shortcut,this.supportsKeyBinding=!0,this.isApplicableTo=function(e){return this.filePaths=e,e.length>0},this.callback=async function(t){const{fileService:i}=e;i.emit("toggle-open-action",!1);const n=l.getFileOperationsService(),{filePaths:r}=this,a=r.map(e=>this.fileBrowser.getRowFileInfo(e));let c,d,u,h;const{actionsResourceBundle:{deleteFolderDialogTitle:p,deleteFolderDialogMessage:f,deleteFileDialogTitle:g,deleteFileDialogMessage:m,deleteMultipleItemsDialogTitle:_,deleteMultipleItemsDialogMessage:v,ErrorDialogTitle:b,deleteFolderErrorDialogMessage:y,deleteFileErrorDialogMessage:C,deleteMultipleItemsErrorDialogMessage:T,yesButtonLabel:E,noButtonLabel:S}}=this;if(1===a.length){const{isDirectory:e}=a[0];c=e?p:g,d=e?f:m,u=e?y:C,h=[a[0].path]}else c=_,d=o.substitute(v,[a.length]),u=T;s.displayConfirmDialog(c,d,{"data-test-id":"cfbDeleteDialog",buttonText:[E,S],closeCallback:async e=>{const{response:t}=e;if(1===t)try{await n.delete(this.filePaths)}catch(e){({paths:h}=e);const t=h.join("\n"),i=o.substitute(u,[t]);s.displayAlertDialog(b,i)}delete this.filePaths,i.emit("toggle-open-action",!0)}})},this.section={id:"FILE_MANAGEMENT",name:"FILE_MANAGEMENT",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!1,this.forceSubMenu=!1,this.orderPriorityWithinSection=2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(7693)],o=i.dj.d(n,(function(e,t,i){var n;return e(t,{constructor:function(e){e=e||{},this.columnRegistry=e.columnRegistry,this.fileBrowser=e.fileBrowser,this.id="SHOW",this.label=e.actionsResourceBundle.showColumn,n=this.columnRegistry.getColumns().filter((function(e){return"name"!==e.field})).map(function(e){return new i({column:e,fileBrowser:this.fileBrowser})}.bind(this)),this.supportsKeyBinding=!1,this.isApplicableTo=function(e){return 0===e.length},this.callback=function(e){},this.section={id:"LAYOUT",name:"Layout",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!0,this.forceSubMenu=!0,this.childrenActions=n,this.orderPriorityWithinSection=1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(296)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){e=e||{},this.column=e.column,this.fileBrowser=e.fileBrowser,this.id="SHOW_"+this.column.id.toUpperCase(),this.label=this.column.label,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!0,this.checked=function(){return!this.column.hidden},this.callback=function(e){this.fileBrowser.grid.toggleColumnHiddenState(this.column.id,!this.column.hidden)},this.section={id:"COLUMNS",name:"Columns",allowSubMenu:!1,forceSubMenu:!1}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(7695),i(7696)],o=i.dj.d(n,(function(e,t,i,n){var o,r;return e(t,{constructor:function(e){e=e||{},this.columnRegistry=e.columnRegistry,this.layoutConfiguration=e.layoutConfiguration,this.fileBrowser=e.fileBrowser,this.id="SORT_BY",this.label=e.actionsResourceBundle.sortBy,this.actionsResourceBundle=e.actionsResourceBundle,o=this.columnRegistry.getColumns().filter((function(e){return!1!==e.sortable})).map(function(e){return new i({column:e,fileBrowser:this.fileBrowser})}.bind(this)),r=[!1,!0].map(function(e){return new n({isDescending:e,fileBrowser:this.fileBrowser,actionsResourceBundle:this.actionsResourceBundle})}.bind(this)),this.supportsKeyBinding=!1,this.isApplicableTo=function(e){return 0===e.length},this.section={id:"LAYOUT",name:"Layout",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!0,this.forceSubMenu=!0,this.childrenActions=o.concat(r),this.orderPriorityWithinSection=2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(296)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){e=e||{},this.id="SORT_BY_"+e.column.id.toUpperCase(),this.column=e.column,this.fileBrowser=e.fileBrowser,this.label=this.column.label,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!0,this.checked=function(){return this.column.field===this.fileBrowser.getCurrentSortAttributes().attribute},this.callback=function(e){this.fileBrowser.updateCompareFunction(this.column.field,this.fileBrowser.getCurrentSortAttributes().descending)},this.section={id:"COLUMNS",name:"Columns",allowSubMenu:!1,forceSubMenu:!1}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(296)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){e=e||{},this.isDescending=e.isDescending,this.id=this.isDescending?"SORT_BY_DESCENDING":"SORT_BY_ASCENDING",this.contentSeparator=!this.isDescending,this.fileBrowser=e.fileBrowser,this.label=this.isDescending?e.actionsResourceBundle.sortOrderDescending:e.actionsResourceBundle.sortOrderAscending,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!0,this.checked=function(){return this.isDescending?this.fileBrowser.getCurrentSortAttributes().descending:!this.fileBrowser.getCurrentSortAttributes().descending},this.callback=function(e){this.fileBrowser.updateCompareFunction(this.fileBrowser.getCurrentSortAttributes().attribute,this.isDescending)},this.section={id:"SORT_ORDER",name:"Sort Order",allowSubMenu:!1,forceSubMenu:!1}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(7698),i(7699)],o=i.dj.d(n,(function(e,t,i,n){var o,r;return e(t,{constructor:function(e){e=e||{},this.columnRegistry=e.columnRegistry,this.fileBrowser=e.fileBrowser,this.id="GROUP_BY",this.label=e.actionsResourceBundle.groupBy,this.actionsResourceBundle=e.actionsResourceBundle,r=new n({fileBrowser:this.fileBrowser,actionsResourceBundle:this.actionsResourceBundle}),o=this.columnRegistry.getColumns().filter((function(e){return!0===e.groupable})).map(function(e){return new i({column:e,fileBrowser:this.fileBrowser})}.bind(this)),this.supportsKeyBinding=!1,this.isApplicableTo=function(e){return 0===e.length},this.section={id:"LAYOUT",name:"Layout",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!0,this.forceSubMenu=!0,this.childrenActions=[r].concat(o),this.orderPriorityWithinSection=3}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(296)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){e=e||{},this.id="GROUP_BY_"+e.column.id.toUpperCase(),this.column=e.column,this.fileBrowser=e.fileBrowser,this.label=this.column.label,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!0,this.checked=function(){return this.fileBrowser.getGroupedColumn()&&this.column.field===this.fileBrowser.getGroupedColumn().field},this.callback=function(e){var t=this.fileBrowser.getGroupedColumn();t&&t.groupingAction.id!==this.column.field&&(t.groupingAction.grouped=!1,this.fileBrowser.emit("updateColumnGrouping",{grid:this,column:t,grouped:t.groupingAction.grouped,bubbles:!0})),this.fileBrowser.group(this.column)},this.section={id:"COLUMNS",name:"Columns",allowSubMenu:!1,forceSubMenu:!1}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(296)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){e=e||{},this.isDescending=e.isDescending,this.id="GROUPED_MODE",this.fileBrowser=e.fileBrowser,this.label=e.actionsResourceBundle.stopGrouping,this.supportsKeyBinding=!1,this.enabled=function(){return this.fileBrowser.getGroupedColumn()},this.needsCheckBox=!1,this.callback=function(e){this.fileBrowser.unGroup()},this.section={id:"GROUP_MODE",name:"Group Mode",allowSubMenu:!1,forceSubMenu:!1}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){e=e||{},this.id="NEW2",this.label=e.actionsResourceBundle.new,this.supportsKeyBinding=!1,this.isApplicableTo=function(e,t){return this.selectedPath=e,window.cefclient&&(0===e.length||1===e.length&&t[0].isDirectory)},this.section={id:"FILE_MANAGEMENT",name:"FILE_MANAGEMENT",allowSubMenu:!0,forceSubMenu:!0},this.allowSubMenu=!0,this.forceSubMenu=!0,this.childrenActions=[],this.orderPriorityWithinSection=1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(1615),i(418)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(e){e=e||{},this.id="NEW_FOLDER",this.label=e.actionsResourceBundle.folder,this.isDirectory=!0,this.placeholderName="New Folder",this.placeholderExtension=null,this.supportsKeyBinding=!1,this.fileOperationService=n.getFileOperationsService(),this.callback=async function(e,t){return this.fileOperationService.createFolder(e,t)},this.fileNameValidatorFcn=i.validateFileName,this.sectionId="FOLDER",this.parentActionId="NEW2",this.enabled=!0,this.orderPriorityWithinSection=1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(291),i(297),i(617),i(233),i(296)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{constructor:function(e){e=e||{},this._actionInputArgs=e,this.id="CREATE_ZIP",this.supportsKeyBinding=!1,this.label=e.actionsResourceBundle.createZipFile,this._fileService=e.fileService,this.mvm=i.getMVM(),this.isApplicableTo=function(e,t){if(this.selectedFilePaths=e,1===e.length){let e=t[0].name;this.placeholderName=e.substr(0,e.lastIndexOf("."))||e}else this.placeholderName="untitled";return e&&e.length>0},this.createZipFileFcn=async function(e,i){try{let t=i+r.getFileSeparator(i)+e;await this.mvm.eval('zip("'+t+'",'+JSON.stringify(this.selectedFilePaths)+',"'+i+'")',new n({dequeueMode:o.DEQUEUE_AT_PPE}))}catch(e){e._id&&e._msg?t.error("load failed with error: "+e._id+"; "+e._msg):t.error("load failed with error: "+JSON.stringify(e))}},this.callback=async function(){this._fileService.emit("create-action-initialized",{isDirectory:!1,placeholderName:this.placeholderName,placeholderExtension:"zip",callbackFcn:this.createZipFileFcn.bind(this)})},this.section={id:"FILE_MANAGEMENT",name:"FILE_MANAGEMENT",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!1,this.forceSubMenu=!1,this.orderPriorityWithinSection=3}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2517)],o=i.dj.d(n,(function(e){return{createActionPluginManagerInstance:function(t){return new e({moduleLoader:t.moduleLoader,registrationFramework:t.registrationFramework,actionResourceSpecification:t.actionResourceSpecification,actionService:t.actionService,actionCategories:t.actionCategories,communicationAvailable:t.communicationAvailable,actionInputArgs:t.actionInputArgs})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(219),i(241),i(247)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{constructor:function(e){i.subscribe("/cfb/cfbActionResultsCommunicator",(function(e){"AddEntryAndEnableRenameMode"==e.data.identifier?this.emit("AddEntryAndEnableRenameMode",e.data.result):"ClearCutAffordance"==e.data.identifier?this.emit("ClearCutAffordance"):"AddCutAffordance"==e.data.identifier?this.emit("AddCutAffordance",e.data.result):"PutToRename"==e.data.identifier?this.emit("PutToRename",e.data.result):"DisplayErrorDialog"==e.data.identifier&&n.displayAlertDialog(e.data.result.errorTitle,o.escapeHtml(e.data.result.errorMessage),{"data-test-id":"cwdCreationFault"})}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){function t(e){var t=e,i=[];return t.forEach((function(e){var n=e;return t.filter((function(e){return e.path===n.parent})).length>0?void 0:void i.push(n)})),i}return e([],{_data:[],_copy:!0,clear:function(){this._data=[]},cut:function(e){this._copy=!1,this._data=t(e)},copy:function(e){this._copy=!0,this._data=t(e)},isCopy:function(){return this._copy},getData:function(){return this._data},containsData:function(){return this._data.length>0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2523),i(236),i(1224),i(241)],o=i.dj.d(n,(function(e,t,i,n){function o(){n.displayAlertDialog(i.errorDialogTitle,t.substitute(i.unsupportedUploadMsg,[256]),{"data-test-id":"unsupportedUploadErrorDialog",icon:"info"})}function r(){n.displayAlertDialog(i.errorDialogTitle,i.noFilesSelected,{"data-test-id":"uploadNoFilesSelectedErrorDialog",icon:"info"})}return{_validateDroppedFilesData:function(e){if(e.items)for(var t=0;t<e.items.length;t++){if(e.items[t].webkitGetAsEntry().isDirectory)return o(),!1}return this.validateFileList(e.files)},validateFileList:function(e){var t=!0;return 0===e.length?(r(),t=!1):function(e){for(var t=0;t<e.length;t++){if(e[t].size>268435456)return!0}return!1}(e)&&(o(),t=!1),t},handleDropEvent:function(t,i,n){if(0===t.dataTransfer.files.length)r();else{var o=t.dataTransfer;this._validateDroppedFilesData(o)&&e.launch(i,o.files,n)}}}}),e,t),e.exports=o},function(e,t,i){e.exports={cancelButtonLabel:"キャンセル",cancelLabel:"キャンセル",confirmReplaceDialogMsg:"ターゲット フォルダーには、アップロード用に選択されたファイルと同名のファイルが既に 1 つ以上あります。",confirmReplaceDialogTitle:"ファイルの置換",dialogTitle:"ファイルのアップロード",errorDialogTitle:"アップロード エラー",failed:"アップロードできませんでした。",fileNameExists:"この名前のファイルは既に現在のフォルダー内に存在します。いずれかのファイルの名前を変更してアップロードしてください。",fileUploadLimitError:"アップロードできるのは 5 ファイルまでです",finished:"${0} 個のファイルをアップロードしました。",inProgress:"ファイルをアップロード中...",noFilesSelected:"アップロードするファイルが選択されていません。",okButtonLabel:"OK",promptText:"ファイル名:",replaceAllLabel:"すべて置換",replaceLabel:"置換",selectFiles:"アップロードするファイルを選択してください。",selectedFiles:"${0} 個のファイルがアップロード対象として選択されました",submitLabel:"アップロード",unsupportedUploadMsg:"${0} MB を超えるファイルまたはフォルダーが選択に含まれていないことを確認してください。",uploadButtonLabel:"アップロード",uploadError:"ファイルをアップロードできません。ファイルのサイズが 0 MB より大きく、16 MB より小さいことを確認してください。",uploadingFiles:"${0} 個のファイルをアップロード中...",waitingForServerResponse:"アップロードを完了中..."}},function(e,t,i){e.exports={cancelButtonLabel:"취소",cancelLabel:"취소",confirmReplaceDialogMsg:"대상 폴더에 업로드를 위해 선택한 파일과 이름이 동일한 파일이 이미 하나 이상 있습니다.",confirmReplaceDialogTitle:"파일 바꾸기",dialogTitle:"파일 업로드",errorDialogTitle:"업로드 오류",failed:"업로드에 실패했습니다.",fileNameExists:"이 이름을 가진 파일이 현재 폴더에 이미 있습니다. 파일 이름을 바꾼 후 파일을 업로드하십시오.",fileUploadLimitError:"최대 5개의 파일을 업로드할 수 있음",finished:"${0}개 파일을 업로드했습니다.",inProgress:"파일 업로드 중...",noFilesSelected:"업로드할 파일을 선택하지 않았습니다.",okButtonLabel:"확인",promptText:"파일 이름:",replaceAllLabel:"모두 바꾸기",replaceLabel:"바꾸기",selectFiles:"업로드할 파일을 선택하십시오.",selectedFiles:"${0}개의 파일을 업로드하도록 선택함",submitLabel:"업로드",unsupportedUploadMsg:"선택 항목에 ${0}MB보다 큰 파일 또는 폴더가 포함되어 있지 않은지 확인하십시오.",uploadButtonLabel:"업로드",uploadError:"파일을 업로드할 수 없습니다. 파일 크기가 0MB보다 크고 16MB보다 작은지 확인하십시오.",uploadingFiles:"${0}개의 파일을 업로드하는 중...",waitingForServerResponse:"업로드를 완료하는 중..."}},function(e,t,i){e.exports={cancelButtonLabel:"取消",cancelLabel:"取消",confirmReplaceDialogMsg:"目标文件夹中已有一个或多个文件与选择上传的文件同名。",confirmReplaceDialogTitle:"替换文件",dialogTitle:"上传文件",errorDialogTitle:"上传错误",failed:"上传失败。",fileNameExists:"当前文件夹中已存在具有此名称的文件。请重命名其中一个文件,然后上传该文件。",fileUploadLimitError:"最多可以上传 5 个文件",finished:"已上传 ${0} 个文件。",inProgress:"正在上传文件...",noFilesSelected:"未选择要上传的文件。",okButtonLabel:"确定",promptText:"文件名:",replaceAllLabel:"全部替换",replaceLabel:"替换",selectFiles:"选择要上传的文件。",selectedFiles:"已选择 ${0} 个要上传的文件",submitLabel:"上传",unsupportedUploadMsg:"确保选择的内容不包含大于 ${0} MB 的文件,也不包含文件夹。",uploadButtonLabel:"上传",uploadError:"无法上传文件。请确认文件大小大于 0MB 并且小于 16MB。",uploadingFiles:"正在上传 ${0} 个文件...",waitingForServerResponse:"正在完成上传..."}},function(e,t,i){e.exports={root:{cancelButtonLabel:"Cancel",cancelLabel:"Cancel",confirmReplaceDialogMsg:"The target folder already has one or more files with the same name as the files selected for upload.",confirmReplaceDialogTitle:"Replace Files",dialogTitle:"Upload Files",errorDialogTitle:"Upload error",failed:"Upload failed.",fileNameExists:"A file with this name already exists in the current folder. Please rename one of the files, and then upload the file.",fileUploadLimitError:"A maximum of 5 files can be uploaded",finished:"Uploaded ${0} file(s).",inProgress:"Uploading files...",noFilesSelected:"No files selected to upload.",okButtonLabel:"OK",promptText:"File Name:",replaceAllLabel:"Replace All",replaceLabel:"Replace",selectFiles:"Select file(s) to upload.",selectedFiles:"Selected ${0} file(s) to upload",submitLabel:"Upload",unsupportedUploadMsg:"Ensure that the selection does not contain files greater than ${0} MB or folders.",uploadButtonLabel:"Upload",uploadError:"Files can't be uploaded. Please check that the file size is greater than 0MB and less than 16MB.",uploadingFiles:"Uploading ${0} file(s)...",waitingForServerResponse:"Completing upload..."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(228),i(211),i(213),i(222),i(206),i(236),i(1224),i(262),i(273),i(787),i(233),i(247),i(243)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=function(e,t){e.textContent=t},g=function(e){e.textContent=""},m=function(e,t){e.textContent=t};function _(e){var t,i,{contentArea:n,message:o,error:r,progressBar:u}=function(){var e=document.createElement("div"),t=document.createElement("p"),i=document.createElement("p"),n=document.createElement("div");t.setAttribute("class","message"),i.setAttribute("class","error"),e.setAttribute("class","contentArea"),n.setAttribute("class","progressBarContainer");var o=new d;return e.appendChild(t),e.appendChild(i),e.appendChild(n),o.placeAt(n),{contentArea:e,message:t,error:i,progressBar:o}}(),h=l.createDialog({title:"Upload Files",className:"uploadFilesDialog",dialogType:l.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!1,"data-test-id":"uploadFilesDialog",content:n,buttons:[c.CANCEL,c.OK]});u.startup(),h.disableButton(c.OK),h.addButtonEventListener(c.CANCEL,(function(){p()})),h.addButtonEventListener(c.OK,(function(){h.close()}));var p=function(){i&&!i.isCanceled()&&i.cancel("cancelled"),e.fileInput.value=null};(i=e.remote.upload(e.fileList,e.dropTargetPath)).then((function(t){!function(e,t,i,n,o){var r=200===e.status&&e.response.indexOf("SUCCESS")>-1,l=t.fileList.length;r?f(n,a.substitute(s.finished,[l])):(g(n),m(o,s.failed)),t.form&&t.form.reset(),i.disableButton(c.CANCEL),i.enableButton(c.OK),t.fileInput.value=null}(t,e,h,o,r)}),(function(t){!function(e,t,i,n,o){t.form&&t.form.reset(),"cancelled"===e?i.close():(g(n),m(o,s.failed),i.disableButton(c.CANCEL),i.enableButton(c.OK))}(t,e,h,o,r)}),(function(e){!function(e,t,i,n){var o=e.loaded,r=e.total,a=Math.round(100*o/r);i.set("value",a),100===a&&(f(n,s.waitingForServerResponse),t.disableButton(c.CANCEL))}(e,h,u,o)})),t=e.fileList.length,f(o,a.substitute(s.uploadingFiles,[t]))}return e(null,{constructor:function(e){(e=e||{}).fileList=e.fileInput.files||e.fileInput,_(e),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(228),i(213),i(210),i(222),i(221),i(1224),i(7713),i(216),i(215),i(255),i(233),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([d,c,u,r],{templateString:l,_action:"",_targetFrame:"MOTWUploadFrame",constructor:function(e){if(e=e||{},this._localization=s,this.pathDataService=e.pathDataService,e.action)this._action=e.action;else{var t=this.pathDataService.getCurrentFolderPath();this._action=p.getEndPoint()+t.substring(1,t.length)}this._action=encodeURI(this._action),this.uploadInProgress=!1,this._hiddenForm=e.form,p.createUploadIframeTarget(this._targetFrame,this._uploadResponseHandler,this)},startup:function(){this.inherited(arguments),a("ff")&&(a("mac")?o.add(t.byId("fileToUpload"),"mozilla-mac"):o.add(t.byId("fileToUpload"),"mozilla-win"))},onChangeHandler:function(){var e=this.fileInput.files;if(i.set(this.fileSubmit,"disabled",""),this.errorText.textContent="",e||this.fileInput.value)if(e){if(0===e.length)return;if(e.length>5)return void(this.errorText.textContent=s.fileUploadLimitError);for(var t=0;t<e.length;t++){var n=e[t],o=h.extractSelectedFileName(n.name);if(this._isFileTooBig(n))return void(this.errorText.textContent=this._localization.uploadError)}this._updateLabelAndEnableButton(e,o)}else if(this.fileInput.value){o=h.extractSelectedFileName(this.fileInput.value);this._updateLabelAndEnableButton(e,o)}},_isFileTooBig:function(e){return e.size>16777216},_updateLabelAndEnableButton:function(e,n){a("webkit")&&t.byId("fakeInput")&&(e?i.set("fakeInput","textContent","Multiple files selected"):i.set("fakeInput","textContent",n)),i.remove(this.fileSubmit,"disabled")},_uploadResponseHandler:function(e){e&&("SUCCESS"===e?this.onClose():"FAILURE"===e&&(this.statusText.textContent="",n.set(this.fileInput,"display","block"),n.set(this.fileSubmit,"display","block"),this.errorText.textContent=this._localization.uploadError,this.uploadInProgress=!1,i.remove(this.fileSubmit,"disabled")))},onUpload:function(e){this.errorText.textContent="",n.set(this.fileInput,"display","none"),n.set(this.fileSubmit,"display","none"),this.statusText.textContent=this._localization.inProgress,this.uploadInProgress=!0,this.uploadForm.submit()},onCancel:function(){this.uploadInProgress&&(p.cancelUpload(this._targetFrame),this.uploadInProgress=!1),this.onClose()},onClose:function(){this._hiddenForm&&this._hiddenForm.reset(),this.emit("close")}})}),e,t),e.exports=o},function(e,t){e.exports='<form data-dojo-attach-point="uploadForm" class="upload"\n method="post"\n enctype="multipart/form-data"\n action="${_action}"\n target="${_targetFrame}">\n \x3c!-- Firefox does not respect css width property for input type="file". This is firefox bug which has been\n there since 12years. https://bugzilla.mozilla.org/show_bug.cgi?id=52500. Workaround for this bug is to set the\n size so that the text length is nearer to how the text box looks in IE.--\x3e\n <div class="upload statusText" data-dojo-attach-point="statusText"></div>\n <div class="upload browseFile">\n <input class="upload inputFile" size="29"\n data-dojo-attach-point="fileInput" name="uploadFileName"\n data-dojo-attach-event="onchange:onChangeHandler"\n id="fileToUpload" type="file" multiple/>\n </div>\n <div class="upload errText" data-dojo-attach-point="errorText"></div>\n <div class="upload uploadControls">\n <button class="upload cancelButton"\n data-dojo-attach-point="cancelButton" type="reset"\n data-dojo-attach-event="onclick:onCancel"\n name="${_localization.cancelLabel}">\n ${_localization.cancelLabel}\n </button>\n <input class="upload uploadButton" data-dojo-attach-point="fileSubmit"\n data-dojo-attach-event="onclick:onUpload" type="button"\n disabled="disabled" value="${_localization.submitLabel}"/>\n </div>\n</form>'},function(e,t,i){var n,o;n=[i(203),i(849),i(204),i(222),i(206),i(428),i(209),i(232),i(641),i(233),i(229),i(2524),i(7719),i(1616),i(2526),i(219),i(468),i(7720),i(855)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){var b=e([r],{size:function(){return this.query().length}});const y="/matlab/FileDataServiceChannel",C="/filesystem/listfolder";return e([n],{constructor:function(e){e=e||{},this._startedDeferred=new t,this._started=!1,this._pathService=e.pathService,this._listFolderService=e.listFolderService,this._vfsAttributesService=e.vfsAttributesService,this._fileOperationsService=e.fileOperationsService,this.fileStore=new h({fileService:this,clientId:"cfb"}),this.openedFilesDataStore=new b,this.classifier=e.classifier,this._subscriptionMessageResolution=Promise.all([g.subscribe(y,this._responseHandler,this),g.subscribe(C,this._responseHandler,this)]),this._listFolderLockCounter=0,this._loggedStoreInitialLoad=!1,this._listFolderRequestsQueue=new f({processingCallback:this._listFolderRequest.bind(this)}),this._folderSyncWaitMap={},this._fileInfoWaitMap={},this._fileAttributesWaitMap={},this._watchMap={data:{},add(e,t){const{data:i}=this;i[e]||(i[e]=new Set),i[e].add(t)},remove(e,t){const{data:i}=this;if(!i[e])return 0;const{[e]:n}=i;return n.delete(t),0===n.size&&delete i[e],n.size},getDescendants(e,t){const{data:i}=this;return Object.keys(i).filter(n=>n.startsWith(e)&&n!==e&&i[n].has(t))},getReasons(e){const{data:t}=this;return t[e]||new Set}},this.fileInfoMap=new Map,this.fileInfoUUIDToPath=new Map,this.fileAttributesMap=new Map,this.fileAttributesUUIDToPathMap=new Map;Promise.all(["list-folder-update","vfsattributes-update"].map(e=>new Promise(t=>{const i=this.on(e,()=>{i.remove(),t()})}))).then(()=>{m.mark("cfbReady"),m.measure("CurrentFolderBrowser","cfbStart","cfbReady"),this._logTimepoint("loginflow.fileDataStoreInitialLoadDone")}),this._listFolderService.on("model:update",e=>{const i=function({storeEntry:e,attributes:t,reason:i}){this._attachAttributesToFileInfo(e,t),this._updateFileInfoWaitMap(e),this.fileStore.addOrUpdateFile(e,!0,null,i)}.bind(this);e.processAdded(e=>{switch(e.getMetaClass().name){case"FolderSync":{const t=e,i=this._folderSyncWaitMap[t.path];i&&(delete this._folderSyncWaitMap[t.path],i.resolve(t))}break;case"FileInfo":{const n=e,{uuid:o,path:r}=n;this.fileInfoMap.set(r,n),this.fileInfoUUIDToPath.set(o,r);let a=this.fileStore.store.get(r);a=this._processFileInfoEntry(n);const s=this.fileAttributesMap.get(r);if(s)i({storeEntry:a,attributes:s,reason:"FileInfo added"});else{const e=new t;e.then(e=>{i(e)}).catch(()=>{}).finally(()=>{delete this._fileAttributesWaitMap[r]}),this._fileAttributesWaitMap[r]=e}}}}),e.processModified(e=>{switch(e.getMetaClass().name){case"FileInfo":{const t=e,n=this.fileInfoUUIDToPath.get(t.uuid);if(!n)return void console.warn("Modified FileInfo object has no entry in fileInfoUUIDToPath map");if(!this.fileStore.store.get(n))return;const o=this._processFileInfoEntry(t),r=this.fileAttributesMap.get(n);r&&i({storeEntry:o,attributes:r,reason:"FileInfo modified"});break}}}),e.processDestroyed(e=>{switch(e.getMetaClass().name){case"FolderSync":{const{_path:t}=e,i=this._watchMap.getReasons(t);i.size>0&&[...i].forEach(e=>this._watchMap.remove(t,e));break}case"FileInfo":{const t=e,i=this.fileInfoUUIDToPath.get(t.uuid);if(this.fileInfoUUIDToPath.delete(t.uuid),this.fileInfoMap.delete(i),!i)return void console.warn("Deleted FileInfo object has no entry in fileInfoUUIDToPath map");const n=this._fileAttributesWaitMap[i];n&&n.reject(new Error("FileInfo deleted"));const o=this.fileStore.store.get(i);if(!o)return;this.fileStore.deleteFile(o)}}}),this.emit("list-folder-update")}),this._vfsAttributesService.on("model:update",e=>{e.processAdded(e=>{switch(e.getMetaClass().name){case"FileAttributes":{const t=e,i=t.path;this.fileAttributesMap.set(i,t),this.fileAttributesUUIDToPathMap.set(t.uuid,t.path);const n="FileAttributes added";{const e=this._fileAttributesWaitMap[i];if(e){const o=this.fileInfoMap.get(i);if(o){const i=this._processFileInfoEntry(o);e.resolve({storeEntry:i,attributes:t,reason:n})}else e.reject(new Error("FileInfo has been deleted"))}}}}}),e.processModified(e=>{switch(e.getMetaClass().name){case"FileAttributes":{const t=e,i=t.path,n=this.fileStore.store.get(i);n?this.fileStore.addOrUpdateFile(n,!1,null,"attributes update"):console.warn("Received attributes for a non-existing fileInfo: "+t.path)}}}),e.processDestroyed(e=>{switch(e.getMetaClass().name){case"FileAttributes":{const t=e,i=this.fileAttributesUUIDToPathMap.get(t.uuid);this.fileAttributesUUIDToPathMap.delete(t.uuid),i&&(this.fileAttributesMap.delete(i),delete this._fileInfoWaitMap[i])}}}),this.emit("vfsattributes-update")})},updateModelAfterExpansion:async function(e){let i=new t,n=new t,o=this._listFolderService.on("model:update",t=>{t.processAdded(t=>{switch(t.getMetaClass().name){case"FolderSync":t.path===e&&(i.resolve(!0),o.remove())}})}),r=this._vfsAttributesService.on("model:update",t=>{t.processAdded(t=>{switch(t.getMetaClass().name){case"FolderSync":t.path===e&&(n.resolve(!0),r.remove())}})});await Promise.all([i,n])},_updateFileInfoWaitMap:function(e){const{path:t}=e,i=this._fileInfoWaitMap[t];i&&(delete this._fileInfoWaitMap[t],i.resolve(e))},_attachAttributesToFileInfo:function(e,t,i){if(!e.attributes){if(!t){if(!(t=this.fileAttributesMap.get(e.path)))return}e.attributes=t,Object.defineProperties(e,{modifiedUtc:{get:function(){return 1e3*this.attributes._lastModified},enumerable:!0},size:{get:function(){return this.attributes._size},enumerable:!0,configurable:!0}})}},_responseHandler:function(e){try{var t=[e.data];"ListFolderResponse"===t[0].identifier?this._handleListFolderResponse(t):"newFolderCreationResponse"===t[0].identifier?this._handleCreateFolderResponse(t):("renameFileResponse"===t[0].identifier||"renameNewFileResponse"===t[0].identifier)&&this._handleRenameFileResponse(t)}catch(e){console.log(e.toString())}},reset:function(){this.fileStore.resetStore(),this.openedFilesDataStore.setData([])},getAllOpenedFileInfoPaths:function(){var e=[];return this.openedFilesDataStore.query().forEach((function(t){e.push(t.fileInfo)})),e},start:function(){if(this._started)return this._startedDeferred;this._started=!0;const{_startedDeferred:e}=this;this._subscriptionMessageResolution.then(async()=>{g.publish(y,{type:"startServerSide",filepaths:[]}),await this.initializePathSeparator(),await Promise.all([this._pathService.start(),this._listFolderService.start(),this._vfsAttributesService.start(),this._fileOperationsService.start()]),e.resolve()});var t=this.classifier?":"+this.classifier:"";return s.registerDefaultMessageFactory("UpdateFile"+t,this._createUpdateFileRequest,this),s.registerDefaultMessageFactory("CloseFile"+t,this._createCloseAllFilesRequest,this),s.registerResponseHandler("CreateFileResponse"+t,this._handleCreateFileResponse,this),s.registerResponseHandler("DeleteFileResponse"+t,this._handleDeleteFileResponse,this),s.registerResponseHandler("OpenFileResponse"+t,this._handleOpenFileResponse,this),s.registerResponseHandler("CloseFileResponse"+t,this._handleCloseFileResponse,this),s.registerResponseHandler("UpdateFileResponse"+t,this._handleUpdateFileResponse,this),s.registerResponseHandler("MoveFileResponse"+t,this._handleMoveFileResponse,this),s.registerFaultHandler("CreateFile"+t,this._logErrorInConsole,this),s.registerFaultHandler("DeleteFile"+t,this._logErrorInConsole,this),s.registerFaultHandler("OpenFile"+t,this._logErrorInConsole,this),s.registerFaultHandler("CloseFile"+t,this._logErrorInConsole,this),s.registerFaultHandler("UpdateFile"+t,this._logErrorInConsole,this),s.registerFaultHandler("MoveFile"+t,this._logErrorInConsole,this),this._pathService&&o(this._pathService,"CWDChanged",i.hitch(this,this._handleCurrentFolderChange)),e.promise},setMotwUDCLogging:function(e){this._motwUDCLogging=e},lockListFolderRequestAndResponse:function(){this._listFolderLockCounter=this._listFolderLockCounter+1,this.fileStore.lockStore()},unLockListFolderRequestAndResponse:function(){this._listFolderLockCounter=Math.max(this._listFolderLockCounter-1,0),this.fileStore.unlockStore(),0===this._listFolderLockCounter&&this._listFolderRequestsQueue.processItems()},stop:function(){var e=this.classifier?":"+this.classifier:"";s.deregisterDefaultMessageFactory("UpdateFile"+e,this._createUpdateFileRequest,this),s.deregisterDefaultMessageFactory("CloseFile"+e,this._createCloseAllFilesRequest,this),s.deregisterResponseHandler("CreateFileResponse"+e,this._handleCreateFileResponse,this),s.deregisterResponseHandler("DeleteFileResponse"+e,this._handleDeleteFileResponse,this),s.deregisterResponseHandler("OpenFileResponse"+e,this._handleOpenFileResponse,this),s.deregisterResponseHandler("CloseFileResponse"+e,this._handleCloseFileResponse,this),s.deregisterResponseHandler("UpdateFileResponse"+e,this._handleUpdateFileResponse,this),s.deregisterResponseHandler("MoveFileResponse"+e,this._handleMoveFileResponse,this),s.deregisterFaultHandler("CreateFile"+e,this._logErrorInConsole,this),s.deregisterFaultHandler("DeleteFile"+e,this._logErrorInConsole,this),s.deregisterFaultHandler("OpenFile"+e,this._logErrorInConsole,this),s.deregisterFaultHandler("CloseFile"+e,this._logErrorInConsole,this),s.deregisterFaultHandler("UpdateFile"+e,this._logErrorInConsole,this),s.deregisterFaultHandler("MoveFile"+e,this._logErrorInConsole,this),this.reset()},refreshOpenFolders:function(){return this._listFolderRequest(this._createDefaultListFolderMessage(),void 0)},_listFolderRequest:function(e,i){if(!e||0===e.length)return void console.warn("Called _listFolderRequest with bad arrayOfFilePaths",{arrayOfFilePaths:e});const n=[...this._listFolderService._mf0Model.getTopLevelElements().values()].find(e=>"FolderSyncMap"===e.getMetaClass().name),o=[];for(const{path:i}of e){const e=new t,r=new t,a=new t;o.push(a.promise),Promise.all([e,r]).then(([e,t])=>{const i={folder:void 0,folderContents:[]};if(!e.isValid)return;const n=e.children.getAllValues();for(const e of n){let t=this.fileStore.store.get(e.path);t||(t=this._processFileInfoEntry(e)),i.folderContents.push(t)}i.folder=t});let s=!0;if(n){const t=n.folders._collection.get(i);t&&(s=!1,e.resolve(t))}s&&(this._folderSyncWaitMap[i]=e);const l=this.fileStore.store.get(i);l?r.resolve(l):this._fileInfoWaitMap[i]=r,a.resolve()}return Promise.all(o)},async addWatchReason(e,t){const i=p.expandedWatchReason(t);return this._watchMap.add(e,i),i},async removeWatchReason(e,t){this._watchMap.remove(e,t)},onExpandOrCollapse:async function(e,t,i){const n=p.expandedWatchReason(i);return t?(await this._listFolderRequest([{path:e}]),this.watchFolderAndChildren(e,n)):this.stopWatchingFolderAndChildren(e,n)},_isPathToZipFileOrZipContent:e=>e.endsWith(".zip")||e.includes(".zip/"),async watchFolderAndChildren(e,t){if(await this._startedDeferred.promise,this._watchMap.add(e,t),this._isPathToZipFileOrZipContent(e))return Promise.all([g.publish(y,{type:"ListFolder",filePaths:[{path:e}],context:{type:""}}),g.publish(y,{type:"RegisterChildren",filePaths:[{path:e}]})]);{const t=d.generateUuid(),i=t+"-lfs",n=t+"-vfs",o=new Promise(e=>{g.subscribe(C+"/watched",(function t(n){n.data.id===i&&(g.unsubscribe(C+"/watched",t),e())}))}),r=new Promise(e=>{g.subscribe("/filesystem/vfsattributes/watched",(function t(i){i.data.id===n&&(g.unsubscribe("/filesystem/vfsattributes/watched",t),e())}))});await Promise.all([g.publish(C+"/watch",{path:e,id:t+"-lfs"}),g.publish("/filesystem/vfsattributes/watch",{path:e,id:t+"-vfs"}),o,r])}},stopWatchingFolderAndChildren:async function(e,t,i=!0){await this._startedDeferred.promise;if(0===this._watchMap.remove(e,t)){if(this._isPathToZipFileOrZipContent(e))return g.publish(y,{type:"UnregisterChildren",filePaths:[{path:e}]});if(i){const i=this._watchMap.getDescendants(e,t).reverse();for(const e of i){const i=this._watchMap.getReasons(e);i&&1===i.size&&await this.stopWatchingFolderAndChildren(e,t,!1)}}return Promise.all([g.publish(C+"/unwatch",{path:e,recursive:!1}),g.publish("/filesystem/vfsattributes/unwatch",{path:e,recursive:!1})])}},_logTimepoint:function(e){this._motwUDCLogging&&this._motwUDCLogging.addData(e)},_processFolderData:function(e){this._attachAttributesToFileInfo(e.folder,null),e.folderContents.forEach(e=>{this.fileStore.addOrUpdateFile(e)}),this.fileStore.recursiveDelete(e.folder,e.folderContents),e.context&&("renameFile"===e.context.type?this.renameFileListFolderComplete.resolve(e.context):"moveFile"===e.context.type&&this.moveFileListFolderComplete.resolve(e.context))},_handleListFolderResponse:function(e){this.fileStore;var t=this;e.forEach((function(e){if(0===t._listFolderLockCounter)t._processFolderData(e);else{var i=c.pathFromFileInfo(e.folder);t._listFolderRequestsQueue.push([{path:i}],i)}})),this._loggedStoreInitialLoad||(this._logTimepoint("loginflow.fileDataStoreInitialLoadDone"),this._loggedStoreInitialLoad=!0)},_handleCurrentFolderChange:function(){this.currentWorkingFolder=this.getCurrentFolderInfo(),this.listFolder(this.getCurrentFolderInfo())},_logErrorInConsole:function(e){a.error("Error received in FileDataService"),a.dir(e)},currentDirectory:function(e){!e||this.getCurrentFolderInfo()&&e===c.pathFromFileInfo(this.getCurrentFolderInfo())||this._pathService.setMATLABCWD(e)},listFolder:function(e,t){if(!this.isListFolderRequestAndResponseLocked){var i=c.assertAndUpdateFileInfo(e);return this._listFolderRequest([{path:i.path}],t)}},createFile:function(e,t){var i=c.assertAndUpdateFile(e),n=c.remoteFile(i),o=i.fileInfo.location,r={file:n},a={};return a.CreateFile={file:n,updateIfExists:t},n.fileInfo.isDirectory?this._createNewFolderRequest(n):s.sendMessage(a,r,this.classifier),this._listFolderRequest([{path:o}],r)},_createNewFolderRequest:function(e){g.publish(y,{type:"createNewFolder",name:e.fileInfo.name,filePaths:[{path:e.fileInfo.location}]})},renameFile:async function(e,t){let n;var o=c.assertAndUpdateFileInfo(e),r=(c.assertAndUpdateFileInfo(t),o.path);this.saveOpenFiles(),this._queryForRelatedOpenFiles(r).forEach(i.hitch(this,(function(e){this.openedFilesDataStore.remove(c.pathFromFileInfo(e.fileInfo)),this.onFileClose(e.fileInfo)})));const a=t.location+t.name,s={};let l;try{const e=new Promise((e,t)=>{l=v.subscribe("store-modified",t=>{e(t)},{path:a,once:!0})});await this._fileOperationsService.rename(r,a);const t=await e;s.fileInfo=t}catch(e){n=e,l&&l.remove(),s.messageFaults=[e]}if(this._handleRenameFileResponse([s]),n)throw n},renameNewFile:function(e,t){var n=c.assertAndUpdateFileInfo(e),o=(c.assertAndUpdateFileInfo(t),n.path);this.saveOpenFiles(),this._queryForRelatedOpenFiles(o).forEach(i.hitch(this,(function(e){this.openedFilesDataStore.remove(c.pathFromFileInfo(e.fileInfo)),this.onFileClose(e.fileInfo)}))),g.publish(y,{type:"renameNewFileRequest",oldName:e.name,newName:t.name,filePaths:[{path:e.location}]})},deleteFile:function(e){var t={},i=c.assertAndUpdateFileInfo(e);return this._isFileOpen(i)&&this._doCloseFile(i,!1),t.DeleteFile={path:i.path},s.sendMessage(t,null,this.classifier),this._listFolderRequest([{path:c.fileInfoFromPath(e.location).location}],void 0)},cdUpOneFolder:function(){var e=this.getCurrentFolderInfo().location;this._pathService.setMATLABCWD(e)},moveFile:function(e,t){var i=[],n={},o={};o.listFolderTargetPath=[{path:c.pathFromFileInfo(t)}],o.fileInfos=e,e.forEach((function(e){this.fileStore.store.remove(c.pathFromFileInfo(e))}),this),c.isFileInfo(t)&&t.isDirectory&&(e.forEach((function(e){i.push({srcPath:c.pathFromFileInfo(e),destPath:c.pathFromFileInfo(t)})}),this),this.saveOpenFiles(),n.MoveFile=0===d.getArrayLength(i)?[{}]:i,s.sendMessage(n,o,this.classifier))},openFile:function(e,t){var i=c.assertAndUpdateFileInfo(e);this._showIfOpen(i,t)||s.sendMessage({OpenFile:{path:c.pathFromFileInfo(e)}},{showVersionHistory:t},this.classifier)},closeFile:function(e){this._doCloseFile(e,!0)},setFileModified:function(e){a.assert(this._isFileOpen(e.fileInfo),"MW.FileDataService: cannot mark '"+c.pathFromFileInfo(e.fileInfo)+"' modified because it is not open."),a.assert(!e.fileInfo.filePermissions||e.fileInfo.filePermissions.canWrite,"MW.FileDataService: cannot mark '"+c.pathFromFileInfo(e.fileInfo)+"' modified because it is read-only"),this._setModifiedDate(e,new Date,!1)},setFileClean:function(e){this._setModifiedDate(e,null,!0)},isFileModified:function(e){return!!this._getModifiedDate(e)},saveFile:function(e,t){if(e&&this.isFileModified(e)&&!e.savePending){e.savePending=!0,this.openedFilesDataStore.put(e);var i=c.remoteFile(e),n=c.pathFromFileInfo(i.fileInfo),o={ModifiedDates:{},postSaveWork:t};o.ModifiedDates[n]=this._getModifiedDate(i),s.sendMessage({UpdateFile:[{file:i}]},o)}else t&&t()},saveOpenFiles:function(e){},doesOpenModifiedFileExist:function(){var e,t=this.openedFilesDataStore.query();for(e=0;e<t.length;e+=1)if(this.isFileModified(t[e]))return!0;return!1},doesFileExistAtLocation:function(e,t){var i=!1,n=(t=c.normalizeLocation(t))+e;null!==n&&(this.getFileInfoFromPath(n).length>0&&(i=!0));return i},_doCloseFile:function(e,t){var i=this._getOpenFile(e);a.assert(i,"MW.FileDataService: cannot close '"+c.pathFromFileInfo(e)+"' because it is not open.");var n=t&&this.isFileModified(i);i=this._prepareFileForClose(i),this.openedFilesDataStore.remove(c.pathFromFileInfo(i.fileInfo)),this._sendFileCloseMessage(i,n)},_sendFileCloseMessage:function(e,t){s.sendMessage({CloseFile:{file:e,updateFile:t}},null,this.classifier)},_prepareFileForClose:function(e){return this.onFileClose(e.fileInfo),e=c.remoteFile(e)},_isFileOpen:function(e){return this._getOpenFile(e)},_handleCreateFileResponse:function(e,t){e.forEach((function(e){var i;e.messageFaults&&e.messageFaults.length>0?this.onFileMessageFault(e):e.fileInfo.isDirectory||(this.fileStore.addOrUpdateFile(e.fileInfo,!0,null,"_handleCreateFileResponse"),this.onCreate(e.fileInfo),(i=t.file)&&(i.fileInfo=e.fileInfo,this.openedFilesDataStore.put(dojo.mixin(i,{modifiedDate:null,savePending:!1,id:c.pathFromFileInfo(i.fileInfo)})),this.onFileOpen(i,!1,e.lineNumber,e.column)))}),this)},_handleCreateFolderResponse:function(e){"newFolderCreationSuccess"===e.identifier?(this.fileStore.addOrUpdateFile(e.folder),this.onCreate(e.folder)):(e.messageFaults=[{message:u.NewFolderCreationError.replace("{0}",e.folder)}],this.onFileMessageFault(e))},_handleRenameFileResponse:async function(e){let i;const n={},o=new t;return Promise.all(e.map(async e=>{if(!(e.messageFaults&&e.messageFaults.length>0)){i=e.fileInfo.path,n.type="renameFile",n.newFilePath=i,this.renameFileListFolderComplete=o,await this._listFolderRequest(this._createDefaultListFolderMessage(),n);const t=c.fileInfoFromPath(i);t.path=i,this.onRename(t),this.emit("rename-complete",t),this.renameFileListFolderComplete=null}},this))},_handleDeleteFileResponse:function(e){e.forEach((function(e){e.messageFaults&&e.messageFaults.length>0&&this.onFileMessageFault(e)}),this)},_handleOpenFileResponse:function(e,t){var i=t&&t.showVersionHistory;e.forEach((function(e){e.messageFaults&&e.messageFaults.length>0?this.onFileMessageFault(e):this._showIfOpen(e.file.fileInfo,i,e.lineNumber,e.column,e.isDebugEvent)||(this.openedFilesDataStore.put(dojo.mixin(e.file,{modifiedDate:null,savePending:!1,id:c.pathFromFileInfo(e.file.fileInfo)})),this.onFileOpen(e.file,i,e.lineNumber,e.column,e.isDebugEvent))}),this)},_showIfOpen:function(e,t,i,n,o){return!!this._isFileOpen(e)&&(this.onFileShow(this._getOpenFile(e),t,i,n,o),!0)},_handleCloseFileResponse:function(e){this.onFileClosed(e[0].fileInfo)},_handleUpdateFileResponse:function(e,t){e.forEach((function(e){var i=this._getOpenFile(e.fileInfo);if(i){var n=t.ModifiedDates[c.pathFromFileInfo(e.fileInfo)];""!==this._getModifiedDate(i)&&n.valueOf()===this._getModifiedDate(i).valueOf()&&this._setModifiedDate(i,null,!0),t.postSaveWork&&t.postSaveWork();var o=c.pathFromFileInfo(i.fileInfo);this.openedFilesDataStore.get(o).savePending=!1}}),this)},_handleMoveFileResponse:function(e,i){var n=new t,o=this,r=[{path:c.pathFromFileInfo(this.getCurrentFolderInfo())}];i.fileInfos.forEach((function(e){r.push({path:c.getParentPath(c.pathFromFileInfo(e))})}),this),this._listFolderRequest(r,void 0),e[0]&&e[0].fault?this.onMoveFileMessageFault(e[0].fault):(i.type="moveFile",this.moveFileListFolderComplete=n,this._listFolderRequest(i.listFolderTargetPath,i),t.when(this.moveFileListFolderComplete,(function(t){return o.onMove(e[0].fileInfo),o.emit("fileMoveEvent",e[0].fileInfo),this.moveFileListFolderComplete=null,t})))},_createDefaultListFolderMessage:function(){var e=[];return this.getCurrentFolderInfo()&&e.push({path:c.pathFromFileInfo(this.getCurrentFolderInfo())}),e},_createUpdateFileRequest:function(e){var t=[];e.ModifiedDates={};var i=this;return this.openedFilesDataStore.query().forEach((function(n){if(i.isFileModified(n)&&!n.savePending){var o=c.remoteFile(n);t.push({file:o}),n.savePending=!0,i.openedFilesDataStore.put(n),e.ModifiedDates[c.pathFromFileInfo(o.fileInfo)]=i._getModifiedDate(o)}})),0===d.getArrayLength(t)?[]:t},_createCloseAllFilesRequest:function(){var e=[];return this.openedFilesDataStore.query().forEach((function(t){var i=this.isFileModified(t)&&!t.savePending;e.push({file:c.remoteFile(t),updateFile:i}),this._setModifiedDate(t,null,!0),this.onFileClose(t.fileInfo)}),this),this.openedFilesDataStore.setData([]),e},_getOpenFile:function(e){var t=c.assertAndUpdateFileInfo(e);return this.openedFilesDataStore.get(t.path)},_getModifiedDate:function(e){var t=this.openedFilesDataStore.get(c.pathFromFileInfo(e.fileInfo));return t?t.modifiedDate:""},_setModifiedDate:function(e,t,i){var n=this.openedFilesDataStore.get(c.pathFromFileInfo(e.fileInfo));n&&(n.modifiedDate=t,this.onFileModificationChange(e.fileInfo,i))},_queryForRelatedOpenFiles:function(e){var t=this.openedFilesDataStore.query({});return t=t.filter((function(t){return 0===c.pathFromFileInfo(t.fileInfo).indexOf(e)}))},onCurrentFolderChange:function(e){},onFileOpen:function(e,t,i,n,o){},onMove:function(e){},onCreate:function(e){},onRename:function(e){},onFileClose:function(e){},onFileClosed:function(e){},onFileShow:function(e,t,i,n,o){},onFileModificationChange:function(e,t){},onFileMessageFault:function(e,t){},onMoveFileMessageFault:function(e,t){},getOpenFileInfoFromName:function(e){for(var t=[".m",".mat"],i=this.openedFilesDataStore.query(),n=0;n<t.length;n++)for(var o=0;o<i.length;o++){var r=i[o].id;if(c.extractSelectedFileName(r)===e.concat(t[n]))return c.fileInfoFromPath(r)}return null},getFileInfoFromPath:function(e){return this.fileStore.store.query({path:e})},getFileInfosFromPaths:function(e){var t=[],i=this;return e.forEach((function(e){if(""!==e){var n=i.getFileInfoFromPath(e)[0];n&&t.push(n)}})),t},getCurrentFolderInfo:function(){return this._pathService?this._pathService.getCurrentFolder():null},_processFileInfoEntry:function(e){const{_path:t,_name:i,_separator:n,_type:o,_hasChildren:r,_isDirectory:a}=e,s=n.length,l=t.substring(0,t.lastIndexOf(i));let c,d;c=l.length>s&&l.endsWith(n)?"\\"===n&&1===l.split(n).filter(e=>!!e).length?l:l.slice(0,l.length-s):l;const u=()=>!d.attributes||d.attributes._isWritable;return d={location:l,separator:n,parent:c,type:o,hasChildren:r,path:t,name:i,isDirectory:a,get isWritable(){return u()},filePermissions:{get canWrite(){return u()}}},Object.defineProperty(d,"info",{enumerable:!1,value:e}),d},async initializePathSeparator(){const e=await this._listFolderService.initializePathSeparator();c.setPathSeparator(e)},events:{FOLDER_UPDATE:"folder_update"},addOrUpdateFilesInStore:function(...e){this.fileStore.addOrUpdateFile(...e)}})}),e,t),e.exports=o},function(e,t,i){e.exports={ErrorDialogTitle:"エラーが発生しました",NewFolderCreationError:"${0} を作成できません"}},function(e,t,i){e.exports={ErrorDialogTitle:"오류가 발생함",NewFolderCreationError:"${0}을(를) 생성할 수 없음"}},function(e,t,i){e.exports={ErrorDialogTitle:"发生错误",NewFolderCreationError:"无法创建 ${0}"}},function(e,t,i){e.exports={root:{ErrorDialogTitle:"An Error Has Occurred",NewFolderCreationError:"Could not create ${0}"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(428),i(753),i(233),i(2525),i(1618),i(855),i(1216)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([],{constructor:function(e){this.clientId=e.clientId,this.fileService=e.fileService,this.fileComparator=e.fileComparator?e.fileComparator:new a,this._storeUpdateQueue=new r;const t=this._fsuiConfig=new l;this.store=new n(new i({idProperty:"path",getChildren:function(e,i){var n,o=(n=this.query((function(n){const o=t.getHiddenEntryFilter(),{originalQuery:r}=i,{commonFilter:a}=r;return(!a||a(n))&&o(n)&&n.parent===e.path}),i)).observe;return n.observe=function(e,t){return o((function(){try{return e.apply(null,arguments)}catch(e){}}),t)},n},mayHaveChildren:function(e){return e.hasChildren},getIdentity:function(e){return e.path}}))},lockStore:function(){this._storeUpdateQueue.lock()},unlockStore:function(){this._storeUpdateQueue.unlock()},deleteFile:function(e){this._storeUpdateQueue.process(()=>this.store.remove(o.pathFromFileInfo(e)))},addOrUpdateFile:function(e,t=!0,i,n){this._storeUpdateQueue.process(()=>{const{store:n,fileComparator:o}=this;let r=!0;const a=n.get(e.path);a&&t&&(r=o.isFileChanged(a,e)),a&&a.proxyParent&&(e.proxyParent=a.proxyParent),r&&(n.put(e),s.publish("store-modified",{fileInfo:e,clientId:this.clientId})),i&&i(e)})},_childrenToAdd:function(e,t){var i=this.store.get(e.path);i?this.fileComparator.isFileChanged(i,e)&&t.push(e):t.push(e)},resetStore:function(){var e=this;this.store.query({}).forEach((function(t){e.deleteFile(t)}))},isItemAChild:function(e,t){return 0===o.normalizePath(o.pathFromFileInfo(e)).indexOf(o.normalizePath(o.pathFromFileInfo(t)))},recursiveDelete:function(e,t){const i=[],n=new Set(t.map(e=>e.path));this.store.query({parent:e.path}).forEach(e=>{n.has(e.path)||(this._queryForRelatedSubFolders(e.path).forEach((function(e){i.push(e)})),i.push(e))}),i.forEach(this.deleteFile,this)},_queryForRelatedSubFolders:function(e){return this.store.query({location:e+o.getFileSeparator(e)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){const e=window.localStorage.getItem("measure");let t;return e&&(t=new RegExp(e)),{measure:async function(e,i){if(!t||!i||!t.test(i))return e();var n=`[${i}]: Time taken`;const o=Date.now(),r=await e(),a=Date.now();return console.log(`${n}: ${a-o}ms`),r}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){function t(e,t){t.push(e)}function i(e,t){t.push(e.id)}function n(e,t,i){if("object"!=typeof e)throw"Invalid item syntax. Expecting an object with properties id, enabled, selected, text, callback, and itemType.";if(void 0===e.id)throw"Invalid item syntax. Expecting an object with property id.";i(e,t)}return e([],{_actionData:[],getActionIdList:function(){var e=[];return this._actionData.forEach((function(t){if(null!==t)if(Array.isArray(t)){var o=[];t.forEach((function(e){"string"==typeof e?o.push(e):n(e,o,i)})),e.push(o)}else n(t,e,i);else e.push(null)})),e},getFlatActionObjectList:function(){var e=[];return this._actionData.forEach((function(i){null!==i&&(Array.isArray(i)?i.forEach((function(i){"string"!=typeof i&&n(i,e,t)})):n(i,e,t))})),e},addActionItem:function(e){this._actionData.push(e)},addActionSubmenu:function(e,t){var i=[e].concat(t);this._actionData.push(i)},addMenuDivider:function(){this._actionData.push(null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(599)],o=i.dj.d(n,(function(e){var t=[{newId:"newfoldersubmenu",newText:e.folder},{newId:"new.BlankMFileTemplate",newText:e.script},{newId:"new.NewLiveScriptTemplate",newText:e.liveScript},{newId:"new.FunctionMFileTemplate",newText:e.function},{newId:"new.NewLiveFunctionTemplate",newText:e.liveFunction},{newId:"new.ExampleMFileTemplate",newText:e.example},{newId:"new.ClassMFileTemplate",newText:e.class},{newId:"new.ZipFileTemplate",newText:e.zipFile}];return{getActionObjects:function(e,i){var n=[];return t.forEach((function(t){var o=function(e,t,i,n){return{id:e,enabled:!0,text:t,callback:function(t){n.invokeCallback()?i.executeAction(e,[]):setTimeout((function(){i.executeAction(e,[])}),750)}}}(t.newId,t.newText,e,i);n.push(o)})),n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(219),i(599)],o=i.dj.d(n,(function(e,t){var i=[{reportId:"reports.mlint",reportText:t.codeAnalyzerReport},{reportId:"reports.todo",reportText:t.todoFixmeReport},{reportId:"reports.help",reportText:t.helpReport},{reportId:"reports.depen",reportText:t.dependencyReport},{reportId:"reports.cov",reportText:t.coverageReport}];return{getActionObjects:function(){var t=[];return i.forEach((function(i){var n,o,r=(n=i.reportId,o=i.reportText,{id:n,enabled:!0,text:o,callback:function(t){e.publish("/matlab/currentfolder/reports/actions",{action:"reports",report:n})}});t.push(r)})),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(599)],o=i.dj.d(n,(function(e){return{getAction:function(t){return{id:"motw.actions.findFiles",enabled:!0,text:e.findFiles,callback:function(){t.openFindFilesPopUp()}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(222)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e){this._expandCfbPanelIfCollapsedFcn=e.expandCfbPanelIfCollapsedFcn},invokeCallback:function(){this._expandCfbPanelIfCollapsedFcn()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getActionObjects:function(e,t,i){var n=function(e){var t=[];return e.getColumns().forEach((function(e){e.unhidable||t.push(e)})),t}(e),o=[];return n.forEach((function(e){var n=function(e,t,i){return{id:e.id,enabled:!0,selected:!e.hidden,text:e.label,callback:function(n){t.invokeCallback(),i(e.id,e.hidden)},itemType:"check"}}(e,t,i);o.push(n)})),o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2509)],o=i.dj.d(n,(function(e){return{getActionObjects:function(t,i,n,o){var r=function(e){var t=e.getColumns(),i=[];return t.forEach((function(e){e.groupable&&i.push(e.groupingAction)})),i}(t),a=[],s=new e;return s.callback=function(){i.invokeCallback(),o()},a.push(s),r.forEach((function(e){var t=function(e,t,i){return{id:e.id,enabled:!0,selected:e.grouped,text:e.text,callback:function(e){t.invokeCallback(),i(e)},itemType:e.itemType}}(e,i,n);a.push(t)})),a}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2522),i(2530)],o=i.dj.d(n,(function(e,t){return{async getColumn(){const i=await e.getSCStatusCache(),n=new t({sourceControlStatusCache:i});return n.column.id="cfb-scstatuscolumn",n.column.hidden=!0,n.column.allowUserToggle=!1,n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7730),i(7731),i(7732),i(7733)],o=i.dj.d(n,(function(e,t){return t(e,"cmlink-core-ui/l10n/gen/resources/shared_cmlink/nls/core",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={ADDED:"追加されました",CONFLICTED:"競合しています",DELETED:"削除されました",EXTERNAL:"外部参照",IGNORED:"無視されました",MISSING:"見つかりません",MODIFIED:"変更されました",NOT_UNDER_CM:"ソース管理対象ではありません",Revison:"リビジョン",SVNDisabledInMATLABOnline:"SVN が MATLAB Online で有効になっていません。",UNKNOWN:"不明",UNMODIFIED:"変更されていません"}},function(e,t,i){e.exports={ADDED:"추가됨",CONFLICTED:"충돌함",DELETED:"삭제됨",EXTERNAL:"외부 참조",IGNORED:"무시됨",MISSING:"누락됨",MODIFIED:"수정됨",NOT_UNDER_CM:"소스 컨트롤 상태에 있지 않음",Revison:"수정본",SVNDisabledInMATLABOnline:"MATLAB Online에서는 SVN이 활성화되지 않습니다.",UNKNOWN:"알 수 없음",UNMODIFIED:"수정되지 않음"}},function(e,t,i){e.exports={ADDED:"已添加",CONFLICTED:"存在冲突",DELETED:"已删除",EXTERNAL:"外部引用",IGNORED:"已忽略",MISSING:"缺失",MODIFIED:"已修改",NOT_UNDER_CM:"未进行源代码管理",Revison:"修订版",SVNDisabledInMATLABOnline:"SVN 在 MATLAB Online 中未启用。",UNKNOWN:"未知",UNMODIFIED:"未修改"}},function(e,t,i){e.exports={root:{ADDED:"Added",CONFLICTED:"Conflicted",DELETED:"Deleted",EXTERNAL:"External Reference",IGNORED:"Ignored",MISSING:"Missing",MODIFIED:"Modified",NOT_UNDER_CM:"Not Under Source Control",Revison:"Revision",SVNDisabledInMATLABOnline:"SVN is not enabled in MATLAB Online.",UNKNOWN:"Unknown",UNMODIFIED:"Unmodified"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(233)],o=i.dj.d(n,(function(e){return class{constructor(e){this.fStatusCache=e,this.fRoot=e.getRoot(),this.fMonitored=["MODIFIED","CONFLICTED","ADDED","DELETED"],this.fStatusCache.on(e.events._L1_CACHE_REFRESH,()=>{this._update()}),this._update()}getEntries(e){return this.fFolderMap.get(e)}_update(){this.fFolderMap=new Map,this.fStatusCache.forEach(t=>{const i=t.status;if(!this.fMonitored.includes(i))return;let n=t.path;for(;n&&n!==this.fRoot;){n=e.getParentPath(n);let t=this.fFolderMap.get(n);t||(t=new Map,this.fFolderMap.set(n,t));const o=t.get(i);t.set(i,o?o+1:1)}})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(210),i(204),i(206),i(233),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=function(e){return"RESOURCES"===e.name.toUpperCase()},s=function(e){return function(e){return"+"===e.name.substring(0,1)}(e)||function(e){return"@"===e.name.substring(0,1)}(e)};return e([],{constructor:function(){this.own(t.after(this.fileBrowser.grid,"renderRow",n.hitch(this,this._customizeRow),!1))},postCreate:function(){this.inherited(arguments);var e,t=["matlab","desktop","currentfolder","pathaffordance"];this.settingsService.getSetting(t,"Enabled").then(function(t){e=t.value,this._updateFilesNotOnPathView(e)}.bind(this)),this.settingsService.listenTo(t,"Enabled",function(t){e=t.newValue,this._updateFilesNotOnPathView(e)}.bind(this))},_customizeRow:function(e,t){var i=t[0],r={row:e,fileInfo:i};return this.pathService&&this.pathService.getCwd().then(function(){if(void 0!==e){void 0!==this.pathService.pathCache&&this._highlightRow(r,this.pathService.pathCache);const t=o(this.pathService,this.pathService.events.MATLAB_PATH_CHANGED,n.hitch(this,(function(e){this._highlightRow(r,e)}))),i=o(this.pathService,this.pathService.events.CWD_CHANGED,n.hitch(this,(function(){void 0!==this.pathService.pathCache&&this._highlightRow(r,this.pathService.pathCache)})));e.addEventListener("removeRow",(function n(){e.removeEventListener("removeRow",n),t&&t.remove(),i&&i.remove()}))}}.bind(this)),e},_isRowOnMATLABVisiblePath:function(e,t,i){if(this.pathService.getCurrentFolder())return t.has(i)||r.pathFromFileInfo(this.pathService.getCurrentFolder())===i},_getParentWithPathAffordance:function(e){var t=r.folderInfoFromPath(e.parent);return t.parent=r.getParentPath(r.pathFromFileInfo(t)),s(t)&&this._getParentWithPathAffordance(t),t},_isFolderOnVisiblePath:function(e,t){if(this.pathService.getCurrentFolder()){var i=r.pathFromFileInfo(e),n=s(e),o=a(e)&&r.pathFromFileInfo(this.pathService.getCurrentFolder())===i;if(n||a(e)&&!o||!this._isRowOnMATLABVisiblePath(e,t,i)){if(n){var l=this._getParentWithPathAffordance(e);return this._rowNeedsToHighlight(l,t)}return!1}return!0}},_isParentOfFileOnVisiblePath:function(e,t){var i=this._getParentWithPathAffordance(e);return this._rowNeedsToHighlight(i,t)},_rowNeedsToHighlight:function(e,t){return e.isDirectory?!!e.isGroupHeader||this._isFolderOnVisiblePath(e,t):!!e.group||this._isParentOfFileOnVisiblePath(e,t)},_highlightRow:function(e,t){var n=e.fileInfo,o=e.row;this._rowNeedsToHighlight(n,t)?i.remove(o,"notOnPath"):i.add(o,"notOnPath")},_updateFilesNotOnPathView:function(e){var t=this.fileBrowser.grid.domNode;e?i.add(t,"highlightRowOnPath"):i.remove(t,"highlightRowOnPath")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(214),i(210),i(204),i(244),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{postCreate:function(){this.inherited(arguments),this._persistedLayout={};var e={SortColumn:this._getSetting("SortColumn"),SortDescending:this._getSetting("SortDescending"),ColumnSizes:this._getSetting("ColumnSizes"),VisibleColumns:this._getSetting("VisibleColumns"),ColumnOrder:this._getSetting("ColumnOrder")};r(e).then(function(e){this._persistedLayout={sortedColumn:e.SortColumn.value,sortedByDescending:e.SortDescending.value,columnSizes:e.ColumnSizes.value,visibleColumns:e.VisibleColumns.value,columnOrder:e.ColumnOrder.value}}.bind(this)),this.own(this.fileBrowser.grid.on("dgrid-columnreorder",o.hitch(this,this._updateColumnOrderProperty)),this.fileBrowser.grid.on("dgrid-columnresize",o.hitch(this,this._updateColumnSizesProperty)),this.fileBrowser.grid.on("dgrid-sort",o.hitch(this,this._updateColumnSortProperty)),this.fileBrowser.grid.on("dgrid-columnstatechange",o.hitch(this,this._updateVisibleColumnsProperty)),this.fileBrowser.on("updateColumnGrouping",o.hitch(this,this._updateGroupColumnProperty)))},_updateColumnOrderProperty:function(e){var t=e.subRow.map((function(e){return e.field})),i=this._persistedLayout.columnOrder||this.columnRegistry.getColumns().map((function(e){return e.field}));t.concat().sort().join(",")===i.concat().sort().join(",")&&this._persistedLayout.columnSizes?this._persistedLayout.columnSizes=t.map(function(e){return this._persistedLayout.columnSizes[i.indexOf(e)]}.bind(this)):this._persistedLayout.columnSizes=e.subRow.map((function(e){return e.width||"auto"})),this._persistedLayout.columnOrder=t,this._setSetting("ColumnOrder",this._persistedLayout.columnOrder),this._setSetting("ColumnSizes",this._persistedLayout.columnSizes)},_updateColumnSizesProperty:function(e){if(this._persistedLayout.columnSizes){this._correctLayoutSettings();var t=this._persistedLayout.columnOrder.indexOf(this.fileBrowser.grid.columns[e.columnId].field);this._persistedLayout.columnSizes[t]=e.width.toString(),this._setSetting("ColumnSizes",this._persistedLayout.columnSizes)}},_updateColumnSortProperty:function(e){this._persistedLayout.sortedColumn&&void 0!==this._persistedLayout.sortedByDescending&&(this._persistedLayout.sortedByDescending=e.sort[0].attribute===this._persistedLayout.sortedColumn&&!this._persistedLayout.sortedByDescending,this._persistedLayout.sortedColumn=e.sort[0].attribute,this._setSetting("SortColumn",this._persistedLayout.sortedColumn),this._setSetting("SortDescending",this._persistedLayout.sortedByDescending))},_updateVisibleColumnsProperty:function(e){if(this._persistedLayout.visibleColumns){this._correctLayoutSettings();var t=this._getColumnSet(this._persistedLayout.visibleColumns);t[e.column.field]&&e.hidden?delete t[e.column.field]:t[e.column.field]||e.hidden||(t[e.column.field]=!0),this._persistedLayout.visibleColumns=Object.keys(t),this._setSetting("VisibleColumns",this._persistedLayout.visibleColumns)}},_updateGroupColumnProperty:function(e){this._setSetting("GroupMode",e.grouped),e.grouped&&this._setSetting("GroupColumn",e.column.field)},_correctLayoutSettings:function(){var e=this.fileBrowser.grid.subRows[0].map((function(e){return e.field}));this._persistedLayout.columnOrder&&this._persistedLayout.columnOrder.concat().sort().join(",")!==e.concat().sort().join(",")?(this._persistedLayout.columnSizes=this.fileBrowser.grid.subRows[0].map((function(e){return e.width||"auto"})),this._persistedLayout.columnOrder=e):this._persistedLayout.columnOrder=this._persistedLayout.columnOrder||e,this._setSetting("ColumnOrder",this._persistedLayout.columnOrder),this._setSetting("ColumnSizes",this._persistedLayout.columnSizes)},_getColumnSet:function(e){for(var t={},i=0;i<e.length;i++)t[e[i]]=!0;return t},_getSetting:function(e){return this.settingsService.getSetting(["matlab","desktop","currentfolder","layout"],e)},_setSetting:function(e,t){return this.settingsService.setSetting(["matlab","desktop","currentfolder","layout"],e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(244),i(214),i(210),i(410),i(204),i(223),i(30),i(277),i(238),i(2531),i(7738),i(215),i(216),i(2493),i(7741),i(7742),i(546),i(576),i(471),i(2514),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){return e([p,f],{constructor:function(e){var t=new v,i=b.getRegistrationFramework(),n={resourceName:"previewModuleDef",resourceType:y.JSON};this._previewPluginManager=_.createPreviewPluginManagerInstance({moduleLoader:t,registrationFramework:i,previewResourceSpecification:n}),this._previewPopupInfo={previewDialog:new l({id:"previewPopupDialog",style:"width: 100%; max-width: 40vw; height:100%; overflow-y: hidden;",onMouseDown:function(e){this._mouseDown=e,clearTimeout(this._previewPopupTimeout),this._previewPopupTimeout=null,d.focus(this._previewPopupInfo.previewDialog.domNode)}.bind(this),onMouseUp:function(e){this._mouseDown=void 0}.bind(this),onMouseLeave:function(e){if(this._mouseDown){var t=window.getSelection?window.getSelection():document.selection?document.selection:null;t&&(t.empty?t.empty():t.removeAllRanges())}}.bind(this),onBlur:a.hitch(this,"_timeoutPreviewPopup")}),isTooltipOpen:!1},this._previewPopupTimeout=null,this._previewPopupDelay=null,this.cfbJavaScriptActionService.addAction(new m({columnRegistry:this.columnRegistry,fileBrowser:this.fileBrowser,fileService:this.fileService,delayPreviewPopupFcn:this._delayPreviewPopup.bind(this)}))},postCreate:function(){this.inherited(arguments),this.own(t(document.body,"previewOpenButtonClicked",function(e){this._openFile(e.fileInfo)}.bind(this)),t(document.body,"previewKeyDown",function(e){this._handleTabKeyboardAccessibility(e.keyboardEvent)}.bind(this)),t(this.fileBrowser.grid,".dgrid-row:click",a.hitch(this,this._handlePreviewClick)),t(this.fileBrowser.grid,"dgrid-sort",a.hitch(this,this._hidePreviewPopup)),t(this.fileBrowser.grid.domNode,"scroll",a.hitch(this,this._timeoutPreviewPopup)),t(window,"resize",a.hitch(this,this._hidePreviewPopup))),this.communicationAvailable.then(function(e){this._previewPluginManager.subscribeAndLoadModulesWhenIdle(e)}.bind(this))},onBlur:function(){this.inherited(arguments),this._timeoutPreviewPopup()},_handlePreviewActionForUpdatedSelection:r((function(e,t){if(this._previewPopupInfo.isTooltipOpen)if(1===e.length){var i=e[0],n=t[0];this._activePreviewedRow&&this._activePreviewedRow.data.path!==n&&this._hidePreviewPopup();var o=this.fileBrowser.grid.row(i),r=o.element;this._delayPreviewPopup(o,r)}else this._hidePreviewPopup()}),50),_updateSelectionBasedActions:function(e,t){this.inherited(arguments),this._handlePreviewActionForUpdatedSelection(e,t)},_generatePreviewMessage:function(e,t){var i={fileInfo:e,iconData:t,getDirectoryContentsCallback:this.listFolderService.getChildren.bind(this.listFolderService),getActionsCallback:this._actionManager.getActions.bind(this._actionManager),keyBindingMap:C,previewPlugins:this._previewPluginManager.getPreviewModulesFromFileExtension(e.type)};return new h(i)},_getFileIcon:function(e){var t;return(t=document.createElement("span")).id="fileIcon-"+e.path.replace(":",""),t.className="fileIcon ",this._fileIconProvider&&!e.isDirectory?this._fileIconProvider.getIconData(e).then((function(e){e.iconClass?t.className+=e.iconClass:t.style.backgroundImage="url('"+e.iconData+"')"})):t.className+=g.getIconClass(e,!1),t},_handlePreviewClick:function(e){if(e.target.classList.contains("motwPreviewPopupCell")){var t=this.fileBrowser.grid.row(e.target),i=t.element;this._delayPreviewPopup(t,i)}else this._timeoutPreviewPopup(e)},_showPreviewPopup:function(e,t){if(!this._previewPopupInfo.isTooltipOpen){this._previewPopupTimeout&&(clearTimeout(this._previewPopupTimeout),this._previewPopupTimeout=null),this._activePreviewedRow=e;var i=this._previewPopupInfo.previewDialog;this._previewPopupInfo.isTooltipOpen=!0;var n=this._getFileIcon(e.data);this._previewContent=e?this._generatePreviewMessage(e.data,n):void 0,this._previewContent&&this._previewContent.on("previewRendered",function(e){this._popupInfo&&setTimeout(a.hitch(this,(function(){c.open(this._popupInfo),this._addClassNameToTooltipParent(this._popupInfo.popup)})),0)}.bind(this)),this._previewPopupInfo.previewDialog.addChild(this._previewContent),this._popupInfo={popup:i,around:t,orient:["after-centered","above-centered"],onCancel:a.hitch(this,"_timeoutPreviewPopup"),onExecute:a.hitch(this,"_timeoutPreviewPopup"),maxHeight:"100%",doNotClose:!0},c.open(this._popupInfo),this._addClassNameToTooltipParent(this._popupInfo.popup)}},_delayPreviewPopup:function(e,t){this._previewPopupDelay&&(clearTimeout(this._previewPopupDelay),this._previewPopupDelay=null),this._previewPopupDelay=setTimeout(a.hitch(this,(function(){this._showPreviewPopup(e,t)})),50)},_hidePreviewPopup:function(){this._previewPopupInfo.isTooltipOpen&&(this._previewPopupInfo.previewDialog.removeChild(this._previewContent),c.close(this._previewPopupInfo.previewDialog),this._previewContent&&this._previewContent.destroyRecursive(),this._previewPopupInfo.isTooltipOpen=!1,this._popupInfo=null,this._activePreviewedRow=void 0)},_timeoutPreviewPopup:function(e){null===this._previewPopupTimeout&&(this._previewPopupTimeout=setTimeout(a.hitch(this,(function(){this._hidePreviewPopup()})),100)),this._previewPopupDelay&&(clearTimeout(this._previewPopupDelay),this._previewPopupDelay=null)},_openFile:function(e){this._timeoutPreviewPopup(),this.inherited(arguments)},_handleTabKeyboardAccessibility:function(e){var t;if(e.keyCode===s.TAB&&this._previewPopupInfo.isTooltipOpen){var i=this.fileBrowser.getFocusableElements().focusableElements,n=Object.values(this._previewPopupInfo.previewDialog.domNode.querySelectorAll('[tabindex="0"]')),o=i.concat(n),r=e.target,a=o.indexOf(r);a<0?d.focus(o[0]):e.shiftKey?e.shiftKey&&(t=o[a-1]?o[a-1]:o[o.length-1]):t=o[a+1]?o[a+1]:o[0],d.focus(t),n.length>0?(clearTimeout(this._previewPopupTimeout),this._previewPopupTimeout=null):this._timeoutPreviewPopup(),e.preventDefault(),e.stopPropagation()}else e.keyCode===s.ESCAPE?(this._timeoutPreviewPopup(),e.preventDefault(),e.stopPropagation()):this.inherited(arguments)},_addClassNameToTooltipParent:function(e){var t=e.domNode.parentElement;o.add(t,"previewTooltipDialogPopup")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(210),i(211),i(213),i(221),i(206),i(212),i(222),i(244),i(342),i(285),i(204),i(7739),i(7740),i(215),i(216),i(354),i(243),i(2531),i(599),i(229),i(661),i.dj.c(e.i),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){return e([g,m,l],{templateString:b,constructor:function(e){this._fileInfo=e.fileInfo,this._iconData=e.iconData,this._getDirectoryContentsCallback=e.getDirectoryContentsCallback,this._getActionsCallback=e.getActionsCallback,this._keyBindingMap=e.keyBindingMap,this._previewPlugins=e.previewPlugins},postCreate:function(){this._setPreviewContent(),this.own(a(this.domNode,"keydown",h.hitch(this,this._emitKeyDownEvent)))},_resolveDeferredMetadata:function(e,t,n){h.isString(n)?(i.add(t,"metadataString"),t.appendChild(document.createTextNode(n))):(i.add(t,"metadataPair"),Object.keys(n).forEach((function(e){if(h.isString(e)&&h.isString(n[e])){var i=document.createElement("div");i.className="metadataPairKey",i.appendChild(document.createTextNode(e+": "));var o=document.createElement("div");o.className="metadataPairValue",o.appendChild(document.createTextNode(n[e])),t.appendChild(i),t.appendChild(o)}})))},_setMetadata:function(e,t){e.forEach(function(e,n){var o=document.createElement("div");i.add(o,"row-"+(n+1)),i.add(o,"metadata"),t.appendChild(o),u(e,function(e){this._resolveDeferredMetadata(n,o,e)}.bind(this))}.bind(this))},_setPreviewContent:async function(){this.previewContentCallbacks=e([p,f])({getDirectoryContentsCallback:this._getDirectoryContentsCallback,previewPlugins:await this._previewPlugins});var t=[];this.fileIconNode.appendChild(this._iconData);var i=this.previewContentCallbacks.getTitle(this._fileInfo);i&&(t.push(i),u(i,function(e){this.titleNode.textContent=e}.bind(this))),this.own(this.headerSeparator=new _),this.headerSeparator.domNode.classList.add("contentSeparator"),this.bodyNode.insertBefore(this.headerSeparator.domNode,this.richContentNode);var n=this.previewContentCallbacks.getRichContent(this._fileInfo);if(n&&n.richContent){var o=new s;t.push(o);var r=T({type:"spinner",size:"xsmall"});this.richContentNode.appendChild(r),n.isWidget||(this.richContentNode.style.minWidth="5vw",this.richContentNode.style.minHeight="5vh"),u(n.richContent,function(e){this.richContentNode&&(this.richContentNode.removeChild(r),n.isWidget&&e?(e.startup(),e.placeAt(this.richContentNode)):e&&(e.style.objectFit="contain",e.style.maxWidth="25vw",e.style.maxHeight="25vh",this.richContentNode.appendChild(e)),o.resolve())}.bind(this))}var a=this.previewContentCallbacks.getRichContentLabel(this._fileInfo);a instanceof Array&&0!==a.length&&(t=t.concat(a),this._setMetadata(a,this.richContentLabelNode),this.own(this.primaryMetadataSeparator=new _),this.primaryMetadataSeparator.domNode.classList.add("contentSeparator"),this.bodyNode.insertBefore(this.primaryMetadataSeparator.domNode,this.primaryMetadataNode));var l=this.previewContentCallbacks.getPrimaryMetadata(this._fileInfo);l instanceof Array&&0!==l.length&&(t=t.concat(l),this._setMetadata(l,this.primaryMetadataNode),this.previewContentCallbacks.getSecondaryMetadata(this._fileInfo)&&(this.own(this.secondaryMetadataSeparator=new _),this.secondaryMetadataSeparator.domNode.classList.add("contentSeparator"),this.bodyNode.insertBefore(this.secondaryMetadataSeparator.domNode,this.secondaryMetadataNode)));var d=this.previewContentCallbacks.getSecondaryMetadata(this._fileInfo);d instanceof Array&&0!==d.length&&(t=t.concat(d),this._setMetadata(d,this.secondaryMetadataNode));var g=this.previewContentCallbacks.getUpperRightMetadata(this._fileInfo);g?(t.push(g),u(g,function(e){this.upperRightMetadataNode.textContent=e}.bind(this))):this.headerNode.removeChild(this.upperRightMetadataNode),this._fileInfo.isDirectory||(this.own(this.footerMetadataSeparator=new _),this.footerMetadataSeparator.domNode.classList.add("contentSeparator"),this.footerNode.insertBefore(this.footerMetadataSeparator.domNode,this.openButtonNode),this.own(this._openButton=new v({text:" ... "})),this._openButton.placeAt(this.openButtonNode),this._openButton.startup(),this.own(this._openButton.on("click",h.hitch(this,this._openFile))),this._setCustomOpenActionLabelIfExists()),c(t).then(function(){setTimeout(function(){this.emit("previewRendered",{previewSections:t})}.bind(this),0)}.bind(this))},_openFile:function(e){a.emit(document.body,"previewOpenButtonClicked",{bubbles:!0,fileInfo:this._fileInfo})},_emitKeyDownEvent:function(e){a.emit(document.body,"previewKeyDown",{bubbles:!0,keyboardEvent:e})},_setCustomOpenActionLabelIfExists:function(){this._getActionsCallback().then(function(e){var t=e.filter(function(e){var t=r("mac")?[d.Keys.COMMAND,d.Keys.DOWN_ARROW]:[d.Keys.ENTER];if(this._keyBindingMap[e.id]&&this._keyBindingMap[e.id].length===t.length&&JSON.stringify(this._keyBindingMap[e.id])===JSON.stringify(t))return e}.bind(this));t&&t.length>0&&this._openButton.set("text",t[0].label)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(210),i(211),i(213),i(206),i(2496),i(2494),i(508),i(854),i.dj.c(e.i),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([],{constructor:function(e){this._getDirectoryContentsCallback=e.getDirectoryContentsCallback},getTitle:function(e){return e.name},getPrimaryMetadata:function(e){var t=[];if(s.convert(e)){var i={};i[l.size]=s.convert(e),t.push(i)}else e.isDirectory&&t.push(new Promise(function(t,i){this._getDirectoryContentsCallback(e.path).then((function(e){1===e.folderContents.length?t(e.folderContents.length+" "+c.item):t(e.folderContents.length+" "+c.items)}))}.bind(this)));var n={};return n[l.dateModified]=a.formatDate(e.modifiedUtc),t.push(n),t},getUpperRightMetadata:function(e){},getSecondaryMetadata:function(e){},getRichContent:function(e){},getRichContentLabel:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(318)],o=i.dj.d(n,(function(e){return e([],{constructor:function(e){this._getDirectoryContentsCallback=e.getDirectoryContentsCallback,this._previewPlugins=e.previewPlugins},getTitle:function(e){var t=this._findApplicable(this._previewPlugins,"getTitle");return t&&t.callback&&"number"==typeof t.overridePriority?t.callback(e):this.inherited(arguments)},getPrimaryMetadata:function(e){var t=this._findApplicable(this._previewPlugins,"getPrimaryMetadata");if(t&&"number"==typeof t.overridePriority&&t.callback)return t.callback(e);if(t&&t.callbacks){var i=this.inherited(arguments);return t.callbacks.forEach((function(t){i=i.concat(t(e))})),i}return this.inherited(arguments)},getUpperRightMetadata:function(e){var t=this._findApplicable(this._previewPlugins,"getUpperRightMetadata");return t&&t.callback&&"number"==typeof t.overridePriority?t.callback(e):this.inherited(arguments)},getSecondaryMetadata:function(e){var t=this._findApplicable(this._previewPlugins,"getSecondaryMetadata");if(t&&"number"==typeof t.overridePriority&&t.callback)return t.callback(e);if(t&&t.callbacks){var i=this.inherited(arguments);return t.callbacks.forEach((function(t){i=i.concat(t(e))})),i}return this.inherited(arguments)},getRichContent:function(e){var t=this._findApplicable(this._previewPlugins,"getRichContent");return t&&t.callback&&"number"==typeof t.overridePriority?t.callback(e):this.inherited(arguments)},getRichContentLabel:function(e){var t=this._findApplicable(this._previewPlugins,"getRichContentLabel");return t&&t.callback&&"number"==typeof t.overridePriority?t.callback(e):this.inherited(arguments)},_findApplicable:function(e,t){if(e){var i,n,o=[];if(e.forEach((function(e){if(e[t]&&e[t]()&&e[t]()[t+"Fcn"]){var r=e[t]()[t+"Fcn"],a=e[t]().overridePriority;r&&o.push(r),r&&n?"number"==typeof a&&a<n&&(n=a,i=r):(n=a,i=r)}})),i&&n)return{callback:i,overridePriority:n};if(o.length>0)return{callbacks:o}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(854),i(296)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){e=e||{},this.fileBrowser=e.fileBrowser,this.fileService=e.fileService,this._delayPreviewPopup=e.delayPreviewPopupFcn,this.id="PREVIEW",this.label=t.columnLabelPreview,this.supportsKeyBinding=!1,this._fileInfo=void 0,this.isApplicableTo=function(e){if(1===e.length)return this._fileInfo=this.fileService.getFileInfosFromPaths(e)[0],!0},this.callback=function(e){if(this._fileInfo){this.fileBrowser.grid.toggleColumnHiddenState("filePreviewPopupColumn",!1),this._activePreviewedRow=this.fileBrowser.grid.row(this._fileInfo);var t=this._activePreviewedRow.element;this._delayPreviewPopup(this._activePreviewedRow,t)}},this.orderPriorityWithinSection=6,this.section={id:"FILE_OPERATION",name:"File Operation",allowSubMenu:!1,forceSubMenu:!1},this.allowSubMenu=!1,this.forceSubMenu=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(7743)],o=i.dj.d(n,(function(e,t,i){return{createPreviewPluginManagerInstance:function(e){return new i({moduleLoader:e.moduleLoader,registrationFramework:e.registrationFramework,previewResourceSpecification:e.previewResourceSpecification})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(209),i(1001)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{constructor:function(e){this._moduleLoader=e.moduleLoader,this._registrationFramework=e.registrationFramework,this._previewResourceSpecification=e.previewResourceSpecification,this._previewModuleRegistry={},this._previewModuleFileMap={},this._previewFileExtensionRegistry={},this._previewRegistrationPoint={registered:function(e){},unregistered:function(e){},enabled:function(e){if(!this._previewModuleFileMap[e.resourcesFile]){var t=this._registerModuleDefObj(e,this._moduleLoader);if(t)return this._pluginManager.loadWithModuleLoader(t)}}.bind(this),disabled:function(e){if(this._previewModuleFileMap[e.resourcesFile]){var t=this._previewModuleFileMap[e.resourcesFile];t.previewFileExtensions.forEach(function(e){this._previewFileExtensionRegistry[e]=this._previewFileExtensionRegistry[e].filter((function(e){return e!==t.previewModuleName}))}.bind(this)),this._pluginManager.removeModuleDefFromRegistry(t.previewModuleName),this._pluginManager.removeLoadedModulesFromRegistry(t.moduleDef.provides),delete this._previewModuleFileMap[e.resourcesFile]}}.bind(this)},this._pluginManager=new o({moduleLoader:e.moduleLoader,registrationFramework:e.registrationFramework,resourceSpecification:this._previewResourceSpecification,registerModuleDefObjFcn:this._registerModuleDefObj.bind(this),registrationPoint:this._previewRegistrationPoint})},subscribeAndLoadModulesWhenIdle:function(e){return this._pluginManager.subscribeAndLoadModules(e,!0)},_registerModuleDefObj:function(e,t){if(!this._pluginManager.isModuleRegistered(e.resourcesFileContents.previewModuleName))return e=this._pluginManager.updateModuleDefObjForEnvironment(e),this._pluginManager.addModuleDefToRegistry(e.resourcesFileContents.previewModuleName,e.resourcesFileContents),this._previewModuleFileMap[e.resourcesFile]=e.resourcesFileContents,e.resourcesFileContents.previewFileExtensions.forEach(function(t){this._previewFileExtensionRegistry[t]?(this._previewFileExtensionRegistry[t].push(e.resourcesFileContents.previewModuleName),this._previewFileExtensionRegistry[t]=this._previewFileExtensionRegistry[t].sort()):this._previewFileExtensionRegistry[t]=[e.resourcesFileContents.previewModuleName]}.bind(this)),t.register([e.resourcesFileContents.moduleDef]);n.error("Module '"+e.resourcesFileContents.previewModuleName+"' already registered.")},getRegisteredPreviewModuleNamesFromFileExtension:function(e){return this._previewFileExtensionRegistry[e.toLowerCase()]},getPreviewModulesFromFileExtension:async function(e){var t=await this._pluginManager.getLoadedModules(this.getRegisteredPreviewModuleNamesFromFileExtension(e));return t?Object.values(t):void 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(307),i(216),i(255),i(203),i(7745),i(7746),i(589),i(637),i(263),i(38),i(2088)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return o([e,t,i,n],{templateString:r,widgetsInTemplate:!0,constructor:function(e){this._actionService=e.actionService,this._executionService=e.executionService,this._uiLifecycle=e.uiLifecycle,this._wraService=e.wraService,this._commandWindowInitializer={onInitialize:function(){},onReset:function(){}}},postCreate:function(){this._commandWindowPane=this.cmdEditorWindow.parentNode,this._commandWindowPane.onResize=function(){},this._initializeEditor()},_initializeEditor:function(){var e={};e["cw.view"]=this._commandWindowPane,e["cw.initializer"]=this._commandWindowInitializer,e["cw.commandwindowpane"]=this._commandWindowPane,e["rtc.clipboard"]=s.getBrowserSyncedClipboard(),e["rtc.executionservice"]=this._executionService,e["rtc.uiLifecycle"]=this._uiLifecycle,e["rtc.wraService"]=this._wraService,e["rtc.motwactionservice"]=this._actionService,e["rtc.settings.backingservice"]=c,e["rtc.clientId"]="CommandWindow";var t=a.plugins,i={id:"internal_"+this.id,containerElement:this.cmdEditorWindow,registry:t,dependencies:e,enabled:["syntaxhighlighter","rtc.code.parenmatch","rtc.contextualselection.evaluateselection","rtc.contextualselection.openselection","findandreplace","rtc.navigate.find.synchronizer","rtc.serializers.serialize","rtc.richtext","rtc.richtext.hyperlink","rtc.code.syntaxhighlighter","rtc.cutcopypaste","rtc.draganddrop","commandwindow.output","commandwindow.prompt","cw.core.promptinput","cw.core.commandwindowhistory","rtc.autocompletions","cw.autocompletions.preference","cw.commands.clearcommandwindow","cw.commands.homecommand","cw.commands.exitmatlab","cw.commands.pausematlab","cw.commandhistorynavigation","cw.commandwindowstatehandler","cw.executionhandler","cw.gettingstartedbanner","cw.keyhandler","cw.matlabtokenshandler","cw.promptinputhandler","cw.view.commandwindowview","cw.undoredocontroller","cw.wraplines","cw.interruptcommandwindow","contextmenu","rtc.helponselection","rtc.bannermanager","rtc.execution.actions","commandwindow.screenreadersupport","cw.preferences.numberoflinesinscrollbuffer","cw.preferences.colors","cw.preferences.showtyposuggestions","cw.commandwindowsize","rtc.backgroundforegroundcolor","cw.processkey"],disabled:["margin.linenumberdecorator","rtc.navigate.replace","rtc.navigate.find.syncopen","rtc.richtext.matlabjsonmimeconverter","rtc.richtext.images.imagemimeconverter","rtc.richtext.images.htmlhandler","rtc.cutcopypaste.internalserializationgenerator","rtc.indent","rtc.richtext.latexeditor","rtc.richtext.hyperlinkeditor","rtc.richtext.equationeditor","rtc.toggletextandcode","rtc.richtext.shortcuts","rtc.toggletextandcode.shortcuts","rtc.code.codingui.backendservice.prewarm"]};l.createRTC(i).then(function(e){this._rtcInstance=e}.bind(this))},startup:function(){this._commandWindowInitializer.onInitialize()},resize:function(){this._rtcInstance.resize(),this._commandWindowPane.onResize()},focus:function(){this._rtcInstance.focus()},blur:function(){this._rtcInstance.blur()},onFocus:function(){this._rtcInstance.focus()},destroy:function(){this._rtcInstance.destroy()}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="commandWindowView plainCode" tabindex="0">\n <div class="cmdEditorWindow dijitInline" dojoAttachPoint="cmdEditorWindow">\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(7747),i(7753),i(7755),i(7757),i(7761),i(7763),i(7765),i(7767),i(7769),i(7776),i(7778),i(7780),i(7782),i(7805),i(7807),i(7809),i(2543),i(7810),i(7812),i(7813),i(7815),i(7822),i(2545),i(7825),i(7827),i(7829),i(7831),i(7833),i(7835),i(2545),i(7837),i(7839),i(7841),i(7843),i(7845),i(7847),i(7849),i(7851),i(7853),i(7855),i(7857),i(7859),i(7861)],o=i.dj.d(n,(function(){return{plugins:[{id:"cw.commands.clearcommandwindow",path:"commandwindow/commands/ClearCommandWindowProvider"},{id:"cw.commands.homecommand",path:"commandwindow/commands/HomeCommandProvider"},{id:"cw.commands.pausematlab",path:"commandwindow/commands/PauseHandlerProvider"},{id:"cw.core.commandwindowhistory",path:"commandwindow/core/history/CommandWindowHistoryProvider"},{id:"cw.core.prompt",path:"commandwindow/core/prompt/PromptProvider",family:"commandwindow.prompt"},{id:"cw.promptcoordinateconverter",path:"commandwindow/core/prompt/coordinateConverter/PromptNodeCoordinateConverterProvider",family:"commandwindow.prompt",subsystem:"rtc.view.coordinateconverter.converter"},{id:"cw.promptinsertionrules",path:"commandwindow/core/prompt/insertionRules/PromptNodeInsertionRulesProvider",family:"commandwindow.prompt",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"cw.promptlayouter",path:"commandwindow/core/prompt/view/PromptLayouterProvider",family:"commandwindow.prompt",subsystem:"rtc.view.layoutmanager.layouter"},{id:"cw.core.promptinput",path:"commandwindow/core/promptinput/PromptInputProvider"},{id:"rtc.autocompletions.requestmodifier",path:"commandwindow/plugins/autocompletions/AutoCompletionRequestModifierProvider",family:"rtc.autocompletions"},{id:"rtc.autocompletions.defaulttabaction",path:"commandwindow/plugins/autocompletions/AutoCompletionDefaultTabActionProvider",family:"rtc.autocompletions"},{id:"cw.autocompletions.preference",path:"commandwindow/plugins/autocompletions/AutoCompletionPreferenceProvider"},{id:"cw.autocompletions.plugin",path:"commandwindow/plugins/autocompletions/AutoCompletionPreference"},{id:"cw.commandhistorynavigation",path:"commandwindow/plugins/commandhistorynavigation/CommandHistoryNavigationProvider"},{id:"cw.commandwindowstatehandler",path:"commandwindow/plugins/commandwindowstatehandler/CommandWindowStateHandlerProvider"},{id:"cw.executionhandler",path:"commandwindow/plugins/executionhandler/ExecutionHandlerProvider"},{id:"cw.gettingstartedbanner",path:"commandwindow/plugins/gettingstartedbanner/GettingStartedBannerProvider"},{id:"cw.keyhandler",path:"commandwindow/plugins/keyhandler/CommandWindowKeyHandlerProvider"},{id:"cw.promptinputhandler",path:"commandwindow/plugins/promptinputhandler/PromptInputHandlerProvider"},{id:"rtc.cutcopypaste.plaintextmimeconverter",family:"rtc.cutcopypaste",path:"commandwindow/plugins/CmdPlainTextMimeConverterProvider",subsystem:"rtc.cutcopypaste.mimeconverters"},{id:"rtc.cutcopypaste.unicodestringmimeconverter",family:"rtc.cutcopypaste",path:"commandwindow/plugins/CmdUnicodeStringMimeConverterProvider",subsystem:"rtc.cutcopypaste.mimeconverters"},{id:"rtc.contextualselection.openselection",path:"commandwindow/plugins/openselection/OpenSelectionProvider",subsystem:"rtc.contextualselection.plugins"},{id:"rtc.cutcopypaste.promptlesstextgenerator",family:"rtc.cutcopypaste",path:"commandwindow/plugins/PromptlessTextGeneratorProvider"},{id:"rtc.code.codingui.codeprovider",path:"commandwindow/plugins/service/CodingUIBackendCodeProviderProvider"},{id:"cw.matlabtokenshandler",path:"commandwindow/plugins/syntaxhighlighting/MatlabTokensHandlerProvider"},{id:"cw.undoredocontroller",path:"commandwindow/plugins/undoredo/UndoRedoControllerProvider"},{id:"cw.wraplines",path:"commandwindow/plugins/wraplines/WrapLinesProvider"},{id:"cw.view.commandwindowview",path:"commandwindow/view/CommandWindowViewProvider"},{id:"cw.preferences.colors",path:"commandwindow/preferences/commandwindowcolors/CommandWindowColorsProvider"},{id:"rtc.contextualselection.evaluateselection",path:"commandwindow/plugins/evaluateselection/EvaluateSelectionProvider"},{id:"cw.interruptcommandwindow",path:"commandwindow/plugins/interrupt/InterruptCommandWindowProvider"},{id:"cw.outputnodecontentconverter",path:"commandwindow/core/output/model/OutputNodeContentConverterProvider",family:"commandwindow.output",subsystem:"rtc.nodes.contentconverter.converter",isSharedPlugin:!0},{id:"cw.outputnodecoordinateconverter",path:"commandwindow/core/output/coordinateconverter/OutputNodeCoordinateConverterProvider",family:"commandwindow.output",subsystem:"rtc.view.coordinateconverter.converter"},{id:"cw.outputnodeinsertionrules",path:"commandwindow/core/output/insertionrules/OutputNodeInsertionRulesProvider",family:"commandwindow.output",subsystem:"rtc.insertionrule",isSharedPlugin:!0},{id:"cw.outputnodelayouter",path:"commandwindow/core/output/view/OutputNodeLayouterProvider",family:"commandwindow.output",subsystem:"rtc.view.layoutmanager.layouter"},{id:"cw.contextmenu.model",path:"commandwindow/plugins/contextmenu/CWContextMenuModelProvider",family:"contextmenu"},{id:"cw.accessibility.screenreader.output",path:"commandwindow/plugins/accessibility/screenreader/ScreenReaderOutputServiceProvider",family:"commandwindow.screenreadersupport"},{id:"cw.accessibility.screenreader",path:"commandwindow/plugins/accessibility/screenreader/ScreenReaderServiceProvider",family:"commandwindow.screenreadersupport"},{id:"cw.preferences.numberoflinesinscrollbuffer",path:"commandwindow/preferences/numberoflinesinscrollbuffer/NumberOfLinesInScrollBufferProvider"},{id:"cw.preferences.showtyposuggestions",path:"commandwindow/preferences/showtyposuggestions/ShowTypoSuggestionsProvider"},{id:"cw.commandwindowsize",path:"commandwindow/plugins/commandwindowsize/CommandWindowSizeProvider"},{id:"cw.processkey",path:"commandwindow/plugins/processkey/ProcessKeyProvider"}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7748)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","cw.initializer","rtc.executionservice","rtc.document","rtc.internaldocument","rtc.contextmenu.documentcontributor"]}},createInstance:function(e,t,i,o,r,a){return new n(e,t,i,o,r,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(1226),i(1008),i(207),i(294)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(r,{_CONTEXT_MENU_GROUP:a.COMMANDS,constructor:function(e,r,a,s,l,c){this._commandWindowInitializer=r,this._rtcDocument=s,this._internalDocument=l,this._executionService=a,this._contextMenuContributor=c,this.own(i.after(r,"onInitialize",t.hitch(this,"_handleCommandWindowInitialization")));var d=[{id:o.CLEAR_COMMAND_WINDOW,text:n.clearCommandWindowLabel,platformKey:{mac:"meta_k"},enabled:!0,callback:t.hitch(this,"_handleClearCommandWindow")}];e.loadActions(d),this._contextMenuContributor.addActionToMap(this._CONTEXT_MENU_GROUP,o.CLEAR_COMMAND_WINDOW)},_handleCommandWindowInitialization:function(){this.own(i.after(this._executionService,"onClcExecution",t.hitch(this,"_handleClearCommandWindow"))),this.own(i.after(this._internalDocument,"onDocumentReset",t.hitch(this._commandWindowInitializer,"onReset")))},_handleClearCommandWindow:function(){this._rtcDocument.setText("")}})}),e,t),e.exports=o},function(e,t,i){e.exports={clearCommandWindowLabel:"コマンド ウィンドウのクリア",commandWindowTitle:"コマンド ウィンドウ",findLabel:"検索...",gettingStartedText:"MATLAB のご利用がはじめての場合は、「<a href= '' id='gettingStartedBannerHyperLink' target='_blank'>入門</a>」のリソースを参照してください。",lineTruncatingText:"...出力が打ち切られています。テキストはコマンド ウィンドウで表示される行の最大長を超えています。",selectAllLabel:"すべて選択",typoSuggestionText:"OK"}},function(e,t,i){e.exports={clearCommandWindowLabel:"명령 창 지우기",commandWindowTitle:"명령 창",findLabel:"찾기...",gettingStartedText:"MATLAB을 처음 사용한다면 <a href= '' id='gettingStartedBannerHyperLink' target='_blank'>시작하기</a>를 참조하십시오.",lineTruncatingText:"... 출력이 잘렸습니다. 텍스트가 명령 창 표시에 대한 최대 라인 길이를 초과합니다.",selectAllLabel:"모두 선택",typoSuggestionText:"확인"}},function(e,t,i){e.exports={clearCommandWindowLabel:"清空命令行窗口",commandWindowTitle:"命令行窗口",findLabel:"查找...",gettingStartedText:"不熟悉 MATLAB? 请参阅<a href= '' id='gettingStartedBannerHyperLink' target='_blank'>快速入门</a>的资源。",lineTruncatingText:"...输出已截断。文本超出命令行窗口显示的最大行长度。",selectAllLabel:"全选",typoSuggestionText:"确定"}},function(e,t,i){e.exports={root:{clearCommandWindowLabel:"Clear Command Window",commandWindowTitle:"Command Window",findLabel:"Find...",gettingStartedText:"New to MATLAB? See resources for <a href= '' id='gettingStartedBannerHyperLink' target='_blank'>Getting Started</a>.",lineTruncatingText:"... Output truncated. Text exceeds maximum line length for Command Window display.",selectAllLabel:"Select All",typoSuggestionText:"OK"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7754)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["cw.initializer","rtc.executionservice","rtc.view","cw.core.promptinput","cw.core.commandwindowhistory"]}},createInstance:function(e,t,i,o,r){return new n(e,t,i,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(211),i(213),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{_ROOT_NODE_PADDING:5,constructor:function(e,n,o,r,a){this._commandWindowInitializer=e,this._executionService=n,this._rtcView=o,this._commandWindowHistory=a,this._promptInput=r,this._domTarget=o.getDomtarget(),this.own(i.after(e,"onInitialize",t.hitch(this,"_handleCommandWindowInitialization"))),this._rtcView.setDefaultVerticalPadding(0),this._bottomPadHeight=0},_handleCommandWindowInitialization:function(){this._bottomPad=n.create("div",{className:"CommandWindowBottomPad",style:{height:"0px"}}),n.place(this._bottomPad,this._domTarget,"last"),this.own(i.after(this._commandWindowInitializer,"onReset",t.hitch(this,"_handleCommandWindowReset"))),this.own(i.after(this._promptInput,"onPromptInputLineChange",t.hitch(this,"_handleBottomPadding"))),this.own(i.after(this._executionService,"onHomeExecution",t.hitch(this,"_handleHomeCommand")))},_handleCommandWindowReset:function(){this._bottomPadHeight=0,o.set(this._bottomPad,"height",this._bottomPadHeight+"px")},_handleBottomPadding:function(){if(this._bottomPadHeight>0){var e=this._domTarget.scrollHeight-this._prevTargetScrollHeight;this._bottomPadHeight=Math.max(this._bottomPadHeight-e,0),o.set(this._bottomPad,"height",this._bottomPadHeight+"px"),this._prevTargetScrollHeight=this._domTarget.scrollHeight}},_handleHomeCommand:function(){this._commandWindowHistory.triggerActionOnHistory(t.hitch(this,"_executeHomeCommand"))},_executeHomeCommand:function(){var e=this._promptInput.getPromptInputLineColumn();this._bottomPadHeight=this._domTarget.clientHeight-this._rtcView.getLineHeight(e.line)-this._ROOT_NODE_PADDING,o.set(this._bottomPad,"height",this._bottomPadHeight+"px"),this._rtcView.scrollLineToPercent(e.line,0),this._prevTargetScrollHeight=this._domTarget.scrollHeight}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7756)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["cw.commandwindowstatehandler","rtc.executionservice","cw.keyhandler"]}},createInstance:function(e,t,i){return new n(e,t,i)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(214)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(e,i,o){this._commandWindowStateHandler=e,this._commandWindowKeyHandler=o,this._executionService=i,this._isPaused=!1,this._keydownListener=null,this._aspectHandles=[],this._aspectHandles.push(n.after(this._commandWindowStateHandler,"onCommandWindowStateChange",t.hitch(this,"_checkForPauseState"),!0))},_checkForPauseState:function(e){"pause"===e?(this._isPaused=!0,this._keydownListener=this._commandWindowKeyHandler.attachListener("keydown",t.hitch(this,"_handleUnPause"))):this._isPaused&&this._unPause()},_handleUnPause:function(e){this._isValidKeyForUnpause(e.keyCode)&&this._unPause(e)},_unPause:function(e){e&&(e.preventDefault(),e.stopPropagation(),this._executionService.publishPauseMessage()),this._commandWindowKeyHandler.removeListener(this._keydownListener),this._keydownListener=null,this._isPaused=!1},_isValidKeyForUnpause:function(e){return e>=48&&e<=90||e>=i.NUMPAD_0&&e<=i.NUMPAD_DIVIDE||e>=186&&e<=222||e>=i.LEFT_ARROW&&e<=i.DOWN_ARROW||e===i.BACKSPACE||e===i.TAB||e===i.ENTER||e===i.SHIFT||e===i.ESCAPE||e===i.SPACE||e===i.DELETE},destroy:function(){this._keydownListener&&(this._commandWindowKeyHandler.removeListener(this._keydownListener),this._keydownListener=null),this._aspectHandles.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7758)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["cw.initializer","rtc.executionservice","rtc.cutcopypaste.htmlmimeconverter","rtc.internaldocument","rtc.document","cw.view.commandwindowview","cw.preferences.colors"]}},createInstance:function(e,t,i,o,r,a,s){return new n(e,t,i,o,r,a,s)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(221),i(1226),i(7759),i(237),i(364),i(274),i(209),i(951),i(1009),i(1010),i(7760)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([],{_MAX_LINE_LENGTH:25e3,_MAX_CONTAINER_LINES:200,_COMMAND_WINDOW_BUFFER_SIZE:5e3,_LINE_BREAK_REGEX:/\r\n|\r|\n/g,constructor:function(e,n,o,r,a,s,l){this._internalDocument=r,this._rtcDocument=a,this._executionService=n,this._view=s,this._colorsPreference=l,this._htmlMimeConverter=o,this._aspectHandles=[],this._aspectHandles.push(i.after(e,"onInitialize",t.hitch(this,"_handleCommandWindowInitialization"))),this._aspectHandles.push(i.after(e,"onReset",t.hitch(this,"_handleCommandWindowReset"))),this._initializeHistoryBuffers(),this._enqueuedActionMap={}},_handleCommandWindowInitialization:function(){this._insertCommandHistoryPositions(),this._aspectHandles.push(i.after(this._executionService.historyStore,"onNew",t.hitch(this,"_handleAddHistory"),!0)),this._aspectHandles.push(i.after(this._executionService.historyStore,"onSet",t.hitch(this,"_handleUpdateHistory"),!0))},_handleCommandWindowReset:function(){this._destroyHistoryPositions(),this._insertCommandHistoryPositions(),this._initializeHistoryBuffers()},_initializeHistoryBuffers:function(){this._displayedHistory=new r(this._COMMAND_WINDOW_BUFFER_SIZE,t.hitch(this,"_truncateHistoryItemsCallback")),this._incomingOutputHistory=new r(this._COMMAND_WINDOW_BUFFER_SIZE),this._interval=null},_truncateHistoryItemsCallback:function(e){var t,i=[].concat.apply([],e),n=this._internalDocument.getLineNumber(i[0]),o={node:i[i.length-1].nextSibling().startNode(),offset:0};try{for(t=0;t<i.length;t++)this._internalDocument.deleteNode(i[t],o);return s.create(n,n+i.length)}catch(e){return c.error("Error when deleting history lines",e),s.create(n,n+t)}},_insertCommandHistoryPositions:function(){this._historyStartPosition=this._rtcDocument.createPositionAtLineColumn(0,0,!0)},_handleAddHistory:function(e){e.visible&&("request"===e.type?this._addInputHistory(e):"response"===e.type&&this.addOutputHistory(e),this._view.scrollToBottom())},_handleUpdateHistory:function(e,t,i,n){"value"===t&&(e.value=n.replace(i,""),this._handleAddHistory(e))},_addInputHistory:function(e){var t=e.value.split(this._LINE_BREAK_REGEX),i=null,n=!e.isSessionData&&t.length>this._MAX_CONTAINER_LINES,o=[];i=this._convertTextToContainer("code",{text:t.shift(),readOnly:!0,promptString:e.promptString}),o.push(i);var r=1;t.forEach((function(e){i=this._convertTextToContainer("code",{text:e,readOnly:!0}),r+=1,o.push(i),r===this._MAX_CONTAINER_LINES&&(this._addHistoryElements(o,r,n),r=0,o=[])}),this),o.length>0&&this._addHistoryElements(o,r,n)},addOutputHistory:function(e){for(var t=e.isError?"error":null,i=this._truncateIncomingOutputHistoryContent(e.value),n=[],o=0,r=!e.isSessionData,a=Math.ceil(i.length/this._MAX_CONTAINER_LINES),s=1;s<=a;s++){var l=i.splice(0,this._MAX_CONTAINER_LINES),c=l.join("\n");this._containsLinksAndHtml(c)?o=(n=this._convertHtmlToContainers(c,{readOnly:!0,type:t})).length:(n=[this._convertTextToContainer("text",{text:c,readOnly:!0,type:t})],o=l.length),p.applyBackspacesToContainers(n),this._addHistoryElements(n,o,r)}},_truncateIncomingOutputHistoryContent:function(e){var t=e.split(this._LINE_BREAK_REGEX),i=this._incomingOutputHistory.getMaxLineLimit();return t.length>i&&t.splice(0,t.length-i),t.map((function(e){return e.length>this._MAX_LINE_LENGTH?e.substring(0,this._MAX_LINE_LENGTH)+o.lineTruncatingText:e}),this)},_convertHtmlToContainers:function(e,t){return e=this.convertTextToHtml(e),this._htmlMimeConverter.convertFromMimeData(e).map((function(e){var i=this._internalDocument.createNode(e);l.setAttributesForNodes(i.children,t);var n=t.type;return p.hasWarnings(i.getText())&&(n="warning",l.setAttributesForNodes(i.children,{type:n})),n&&i.children.forEach((function(e){if(e.text){var t=this._colorsPreference.getCssForType(n);e.addClass(t)}}),this),i}),this)},convertTextToHtml:function(e){var t=d.treatHtmlLikeCommandWindow(e);return t="<div>"+(t=t.replace(this._LINE_BREAK_REGEX,"<br>"))+"</div>"},_convertTextToContainer:function(e,t){var i=this._internalDocument.createContainerForType(e).container,n=[];if(t.promptString){var o=new h({text:t.promptString});i.addChild(o)}if("text"===e){var r=[];p.hasWarnings(t.text)?r=p.createTextToInsertWithWarnings(t.text):r.push(t),n=r.map((function(e){var t=new u(e);if(e.type){var i=this._colorsPreference.getCssForType(e.type);t.addClass(i)}return t}),this)}else{var a=this._internalDocument.createNode(i.getDefaultChild());a=l.setNodeAttributes(a,t),n.push(a)}return i.readOnly=t.readOnly,n.forEach((function(e){i.addChild(e)}),this),i},_addHistoryElements:function(e,t,i){i?this._addToHistoryBuffer(e,t):this._insertHistoryItems(e)},_addToHistoryBuffer:function(e,t){this._incomingOutputHistory.add(e,t);var i=this._incomingOutputHistory.getKeyAtLastIndex();this._incomingOutputHistory.getValueAtIndexOf(i);this._triggerIntervalForInsertion()},_triggerIntervalForInsertion:function(){this._interval||(this._interval=setInterval(t.hitch(this,(function(){var e=this._incomingOutputHistory.getValueAtIndexOf(0);if(e&&e.length>0){var t=this._incomingOutputHistory.getKeyAtIndexOf(0);this._incomingOutputHistory.remove(t),this._insertHistoryItems(e),this._enqueuedActionMap[t]&&this._enqueuedActionMap[t]()}else this._clearIntervalForTruncation()})),0))},_clearIntervalForTruncation:function(){this._interval&&(clearInterval(this._interval),this._interval=null)},_insertHistoryItems:function(e){var t=0,i=[];e.forEach((function(e){var i=e.getText()?e.getText().split(this._LINE_BREAK_REGEX).length:1;t+=i}),this);var n=this._displayedHistory.add(e,t);i=i.concat(n);var o=this._internalDocument.insertAtPosition(e,this._historyStartPosition);i=i.concat(o.events),this._internalDocument.emitDocumentEvents(i),this._view.scrollToBottom()},_containsLinksAndHtml:function(e){return!!(e.match(d.STRONG_ESCAPE_REGEXP)||e.match(d.HYPERLINK_ESCAPE_REGEXP)||e.match(d.HYPERLINK_WITH_PARENTHESIS_ESCAPE_REGEXP))},triggerActionOnHistory:function(e){if(this._interval&&this._incomingOutputHistory.getKeyAtLastIndex()){var t=this._incomingOutputHistory.getKeyAtLastIndex();this._enqueuedActionMap[t]=e}else e()},_destroyHistoryPositions:function(){this._historyStartPosition&&(this._rtcDocument.deletePosition(this._historyStartPosition),this._historyStartPosition=null)},updateScrollBufferSize:function(e){this._COMMAND_WINDOW_BUFFER_SIZE=e,this._displayedHistory.setBufferSize(e),this._incomingOutputHistory.setBufferSize(e)},destroy:function(){this._destroyHistoryPositions(),this._clearIntervalForTruncation(),this._aspectHandles.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t){this._keyValueMap={},this._keyArray=[],this._truncatorCallback=t,this._maxLimit=e,this._lastTruncatedEntryKey=0},add:function(e,i){var n=this._truncateData(i),o=this.getKeyAtLastIndex()||0,r=o+i;return r===o?(t.error("The data passed in should have minimum 1 line"),[]):(this._keyArray.push(r),this._keyValueMap[r]=e,n)},remove:function(e){var t=this._keyArray.indexOf(e);t>-1&&this._keyArray.splice(t,1),delete this._keyValueMap[e]},forEach:function(e){for(var t=0;t<this._keyArray.length;t++){var i=this._keyArray[t];e(this._keyValueMap[i],i,t)}},getKeys:function(){return this._keyArray},get:function(e){return this._keyValueMap[e]},getValueAtIndexOf:function(e){var t=this.getKeyAtIndexOf(e);return this._keyValueMap[t]},getKeyAtIndexOf:function(e){return this._keyArray[e]},getKeyAtLastIndex:function(){return this._keyArray[this._keyArray.length-1]},getMaxLineLimit:function(){return this._maxLimit},setBufferSize:function(e){this._maxLimit=e},_truncateData:function(e){for(var t=[],i=this.getKeyAtLastIndex()||0,n=i+e,o=this.getKeyAtIndexOf(0)||0,r=[],a=0;n-o>=this._maxLimit&&(r.push(this.get(o)),this.remove(o),a+=o-this._lastTruncatedEntryKey,!(this.getKeys().length<1));)n=(i=this.getKeyAtLastIndex())+e,this._lastTruncatedEntryKey=o,o=this.getKeyAtIndexOf(0);return r.length>0&&this._truncatorCallback&&t.push(this._truncatorCallback(r,a)),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{_WARNING_MESSAGE_ENCODING_REGEX:/(\[[\b](?:.*?)][\b])/g,hasWarnings:function(e){return this._WARNING_MESSAGE_ENCODING_REGEX.lastIndex=0,this._WARNING_MESSAGE_ENCODING_REGEX.test(e)},createTextToInsertWithWarnings:function(e){var t=[];return e.split(this._WARNING_MESSAGE_ENCODING_REGEX).forEach((function(e){this.hasWarnings(e)?t.push({text:e,readOnly:!0,type:"warning"}):t.push({text:e,readOnly:!0})}),this),t},applyBackspacesToContainers:function(e){e.forEach((function(e){e.children.forEach((function(e){e.hasOwnProperty("text")&&(e.text=this._applyBackspaces(e.text))}),this)}),this)},_applyBackspaces:function(e){for(var t=0;t<e.length;){if("\b"===e[t]){for(var i=1,n=t+1;"\b"===e[n]&&n<e.length;)++i,++n;e=t-i<0?e.substring(t+i):e.substring(0,t-i)+e.substring(n),t-=i}++t}return e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7762)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(731),i(1009)],o=i.dj.d(n,(function(e,t,i){return e(t,{getApplicableNodeClass:function(){return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7764)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.rangeconverter.converter.plaintext","rtc.view.viewmodel"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(1009),i(500),i(1146)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,t){this._rangeConverter=e,this._viewModel=t},getApplicableNodeClass:function(){return i},_getOffsetFromCoordinate:function(e,t){var i=this.inherited(arguments),n=i.indexMap,o=i.offset;if(0===i.offset)return i;if(!i.isRightAligned&&n[o]){var r=n[o].textNode,a="\n"===r.textContent.charAt(o);a&&(o+=1)}return{offset:o,isRightAligned:i.isRightAligned}},_selectedRectFromRange:function(e,t){var i=e.getClientRects();return 0===i.length?null:(t=void 0===t||t,"\n"===e.toString()&&t?i[i.length-1]:this.inherited(arguments))},isRightAligned:function(e){var t=e.getNode(),i=e.getOffset(),n=this.inherited(arguments);return 0===i?n:n||"\n"===t.getTextForPositioning().charAt(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7766)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1009),i(424),i(918)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{_compatibleParents:[n],constructor:function(){},getApplicableNodeClass:function(){return t},getTopLevelInsertionInstruction:function(e,t,i,n,o){return{insertInRoot:{insertionPosition:o}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7768)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel","rtc.view.hidden.hiddennodemodel"]}},createInstance:function(e,t){return new i(e,t)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1009),i(2103)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t){this._decorationViewModel=e},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7770)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["cw.initializer","cw.commandwindowstatehandler","rtc.internaldocument","rtc.document","rtc.view"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(1010),i(1227),i(274),i(364),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(null,{constructor:function(e,n,r,a,s){this._internalDocument=r,this._rtcDocument=a,this._rtcView=s,this._prompt=o.DEFAULT_PROMPT,this._commandWindowStateHandler=n,this._aspectHandles=[],this._aspectHandles.push(i.after(e,"onInitialize",t.hitch(this,"_handleCommandWindowInitialization"))),this._aspectHandles.push(i.after(e,"onReset",t.hitch(this,"_handleCommandWindowReset")))},_handleCommandWindowInitialization:function(){var e=this._commandWindowStateHandler.getCommandWindowState();this.setCurrentPrompt(o.getPromptFromExecutionState(e)),this.insertPrompt(),this._aspectHandles.push(i.after(this._commandWindowStateHandler,"onCommandWindowStateChange",t.hitch(this,"_setAndUpdatePrompt"),!0))},_handleCommandWindowReset:function(){this.destroyPrompt(),this.insertPrompt()},insertPrompt:function(){this._promptNode=new n({text:this._prompt.trim(),active:!0});var e=this._rtcDocument.createPositionAtLineColumn(0,0);e.getNode().rootContainer();this._rtcDocument.insertTextAtCurrentPosition(" "),this._internalDocument.insertAtPosition(this._promptNode,e);var t=e.getLineColumn(),i=a.create(t.line-1,t.line-1);this._internalDocument.emitDocumentEvents([i]),this._rtcDocument.deletePosition(e)},_setAndUpdatePrompt:function(e){this.setCurrentPrompt(o.getPromptFromExecutionState(e)),this.updatePrompt()},setCurrentPrompt:function(e){s.assert(void 0!==e,"A value should be passed in to set the prompt"),this._prompt=e},updatePrompt:function(){this._promptNode.replaceText(this._prompt.trim()),this._rtcView.layoutNode(this._promptNode);var e=r.getLineNumberForNode(this._promptNode,this._internalDocument),t=a.create(e,e);this._internalDocument.emitDocumentEvents([t])},destroyPrompt:function(){this._promptNode=null},destroy:function(){this.destroyPrompt(),this._aspectHandles.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7772),i(7773),i(7774),i(7775)],o=i.dj.d(n,(function(e,t){return t(e,"commandwindow/resources/commandwindow/nls/cmdPrompts",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={faultString:"[MATLAB を終了し、再起動してください]>>",keyboardPrompt:"K>>",sfEmlDebugPrompt:"debug>>",simEventsDebugPrompt:"sedebug>>"}},function(e,t,i){e.exports={faultString:"[MATLAB을 종료한 후 다시 시작하십시오.]>>",keyboardPrompt:"K>>",sfEmlDebugPrompt:"debug>>",simEventsDebugPrompt:"sedebug>>"}},function(e,t,i){e.exports={faultString:"[请退出并重新启动 MATLAB]>>",keyboardPrompt:"K>>",sfEmlDebugPrompt:"debug>>",simEventsDebugPrompt:"sedebug>>"}},function(e,t,i){e.exports={root:{faultString:"[Please exit and restart MATLAB]>>",keyboardPrompt:"K>>",sfEmlDebugPrompt:"debug>>",simEventsDebugPrompt:"sedebug>>"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7777)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["cw.initializer","cw.commandwindowstatehandler","rtc.cursor","rtc.executionservice","rtc.document","rtc.focusservice"]}},createInstance:function(e,t,i,o,r,a){return new n(e,t,i,o,r,a)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(270),i(313),i(266),i(401)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{constructor:function(e,n,o,r,a,s){this._rtcDocument=a,this._cursor=o,this._rtcFocusService=s,this._aspectHandles=[],this._aspectHandles.push(i.after(r,"onTypoCorrection",t.hitch(this,"_handleTypoCorrection"),!0)),this._aspectHandles.push(i.after(n,"onCommandWindowBusy",t.hitch(this,"_commandWindowBusyHandler"))),this._aspectHandles.push(i.after(n,"onCommandWindowReady",t.hitch(this,"_commandWindowReadyHandler"))),this._aspectHandles.push(i.after(e,"onInitialize",t.hitch(this,"_handleCommandWindowInitialization"))),this._aspectHandles.push(i.after(e,"onReset",t.hitch(this,"_handleCommandWindowReset"))),this._commandWindowStateHandler=n},_handleCommandWindowInitialization:function(){this._insertPromptInput(),"busy"===this._commandWindowStateHandler.getCommandWindowState()?this._commandWindowBusyHandler():this._commandWindowReadyHandler()},_handleCommandWindowReset:function(){this._destroyPromptInput(),this._insertPromptInput()},_commandWindowBusyHandler:function(){this._cursor.hide()},_commandWindowReadyHandler:function(){this._rtcFocusService.hasFocus()&&(this.moveToPromptInputEnd(),this._cursor.show())},_insertPromptInput:function(){var e=this._rtcDocument.getEndOfDocumentLineColumn(),n=this._rtcDocument.createPositionAtLineColumn(e.line-1,e.column-1),o=n.getNode();this._promptInputStartPosition=this._rtcDocument.createPosition(o,1),this._promptInputPositionListener=i.after(this._promptInputStartPosition,"onChange",t.hitch(this,(function(e){var t=this.getPromptInputLineColumn();if(t.line<0)this._promptInputPositionListener.remove();else{var i=this._promptInputStartPosition.getNode().rootContainer().endPosition().getLineColumn().column,n=this._cursor.getLineColumn(),o=n.column>=t.column&&n.column<i;e.lineHasChanged&&o?this._cursor.setLineColumn(t.line,n.column):(e.columnHasChanged||e.lineHasChanged)&&this.moveToPromptInputEnd(),e.lineHasChanged&&this.onPromptInputLineChange()}})),!0),this._cursor.movePosition(this._cursor.END),this._rtcDocument.deletePosition(n)},getPromptInput:function(){var e=this._rtcDocument.getEndOfDocumentLineColumn(),t=this._rtcDocument.createPositionAtLineColumn(e.line-1,e.column-1),i=new r(this._promptInputStartPosition,t),n=this._rtcDocument.getCodeTextForRange(i);return t.destroy(),n},_deletePromptText:function(){var e=this._rtcDocument.getEndOfDocumentLineColumn(),t=this._promptInputStartPosition.getLineColumn();this._rtcDocument.deleteText(t.line,t.column,e.line,e.column)},setPromptInput:function(e,t){this._deletePromptText();var i=this.getPromptInputLineColumn();this._rtcDocument.insertText(e,i.line,i.column),t||this._cursor.movePosition(this._cursor.END)},clearPromptInput:function(){this._deletePromptText(),this.onPromptInputClear()},onPromptInputClear:function(){},updateCursorToPromptInput:function(){var e=this._cursor.position,t=this._cursor.position;if(this._cursor.hasSelection()){var i=this._cursor.getSelection();e=i.getStartPosition(),t=i.getEndPosition()}var n=o.comparePositions(e,this._promptInputStartPosition)<0,r=o.comparePositions(t,this._promptInputStartPosition)<0;if(n&&r){var s=this._rtcDocument.getEndOfDocumentLineColumn(),l=this._rtcDocument.createPositionAtLineColumn(s.line-1,s.column-1);return this._cursor.setPosition(l.getNode(),l.getOffset(),!0),this._cursor.collapseSelection(),void l.destroy()}if(n&&!r||!n&&r)if(e=n?this._promptInputStartPosition:e,t=r?this._promptInputStartPosition:t,this._cursor.collapseSelection(),0===o.comparePositions(e,t))this._cursor.setPosition(e.getNode(),e.getOffset(),!0);else{var c=new a(e,t,i.isReversed(),i.fileEndSelected());this._cursor.setSelection(c)}},_handleTypoCorrection:function(e){this.setPromptInput(e)},_destroyPromptInput:function(){this._promptInputStartPosition&&(this._promptInputPositionListener.remove(),this._rtcDocument.deletePosition(this._promptInputStartPosition),this._promptInputStartPosition=null)},isCursorOnPromptInput:function(){var e=this._cursor.getLineColumn(),t=this.getPromptInputLineColumn();return e.line===t.line?0:e.line>t.line?1:-1},moveToPromptInputEnd:function(){this._cursor.collapseSelection(),this._cursor.movePosition(this._cursor.END)},moveToPromptInputStart:function(e){e?this._cursor.fixAnchor():this._cursor.collapseSelection(),this._cursor.setPosition(this._promptInputStartPosition.getNode(),this._promptInputStartPosition.getOffset(),!0)},getPromptInputLineColumn:function(){return this._promptInputStartPosition.getLineColumn()},onPromptInputLineChange:function(){},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7779)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.rangeconverter.converter.plaintext","rtc.view.viewmodel"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1010),i(270),i(1146)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t){this._rangeConverter=e,this._viewModel=t},getApplicableNodeClass:function(){return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7781)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(1010),i(323),i(424)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{_compatibleParents:[n],constructor:function(){},destroy:function(){},getApplicableNodeClass:function(){return i},getTopLevelInsertionInstruction:function(e,i,n,o,r){t.Error("The prompt node should have been inserted into a LineNode.")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7783)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{requires:function(){return{isApplicable:[],createInstance:["cw.initializer","rtc.actionservice","rtc.executionservice","rtc.view","rtc.cursor","rtc.focusservice","rtc.document","rtc.keyhandler","cw.core.promptinput","rtc.tooltipservice"]}},createInstance:function(e,t,i,o,r,a,s,l,c,d){return new n(e,t,i,o,r,a,s,l,c,d)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(214),i(223),i(1620),i(1008),i(2542),i(226),i(292),i(514),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return t(null,{_REGEXP_SINGLE_QUOTES:/'/g,_REGEXP_NEWLINE:/\n/g,constructor:function(e,t,i,n,o,a,s,l,c,d){this._actionService=t,this._executionService=i,this._view=n,this._cursor=o,this._promptInput=c,this._currentHistoryItemNumber=0,this._requestHistory=[],this._lastUpdatedItem=null,this._document=s,this._focusService=a,this._keyHandler=l,this._tooltipService=d,this._commandHistoryManager=r.getInstance(),this._actions=[],this._listeners=[],this._popupActions=[],this._popupListeners=[],this._closedListeners=[],this._loadPopupActions(),this._attachListeners(),this._loadActions()},_attachListeners:function(){this._listeners=[this._commandHistoryManager.on("startCommandHistoryPopup",this._startCommandHistoryPopup.bind(this)),this._commandHistoryManager.on("startCommandHistoryClosed",this._startCommandHistoryClosed.bind(this)),this._commandHistoryManager.on("stopCommandHistoryClosed",this._stopCommandHistoryClosed.bind(this)),this._commandHistoryManager.on("stopCommandHistoryPopup",this._stopCommandHistoryPopup.bind(this))]},_loadActions:function(){this._actions=[{id:"commandhistory_up",key:"up",enabled:!0,callback:i.hitch(this,"_handleUpArrowKey",{keyCode:o.UP_ARROW})},{id:"commandhistory_shift_up",enabled:!0,key:"shift_up",callback:i.hitch(this,"_handleUpArrowKey",{keyCode:o.UP_ARROW,shiftKey:!0})},{id:"commandhistory_down",key:"down",enabled:!0,callback:i.hitch(this,"_handleNavigation",{keyCode:o.DOWN_ARROW})},{id:"commandhistory_shift_down",enabled:!0,key:"shift_down",callback:i.hitch(this,"_handleNavigation",{keyCode:o.DOWN_ARROW,shiftKey:!0})},{id:"commandhistory_pageup",enabled:!0,key:"pageup",callback:i.hitch(this,"_handleNavigation",{keyCode:o.PAGE_UP})},{id:"commandhistory_shift_pageup",enabled:!0,key:"shift_pageup",callback:i.hitch(this,"_handleNavigation",{keyCode:o.PAGE_UP,shiftKey:!0})},{id:"commandhistory_pagedown",enabled:!0,key:"pagedown",callback:i.hitch(this,"_handleNavigation",{keyCode:o.PAGE_DOWN})},{id:"commandhistory_shift_pagedown",enabled:!0,key:"shift_pagedown",callback:i.hitch(this,"_handleNavigation",{keyCode:o.PAGE_DOWN,shiftKey:!0})},{id:"commandhistory_escape",enabled:!0,key:"escape",callback:i.hitch(this,"_handleCloseCommandHistory",{keyCode:o.ESCAPE})}],this._actionService.loadActions(this._actions)},_loadPopupActions:function(){this._popupActions=[{id:"commandhistory.left",enabled:!1,key:"left",callback:i.hitch(this,"_handleCloseCommandHistory",{keyCode:o.LEFT_ARROW})},{id:"commandhistory.right",enabled:!1,key:"right",callback:i.hitch(this,"_handleCloseCommandHistory",{keyCode:o.RIGHT_ARROW})},{id:"commandhistory.home",enabled:!1,key:"home",callback:i.hitch(this,"_handleCloseCommandHistory",{keyCode:o.HOME})},{id:"commandhistory.end",enabled:!1,key:"end",callback:i.hitch(this,"_handleCloseCommandHistory",{keyCode:o.END})},{id:"commandhistory_enter",enabled:!1,key:"enter",callback:i.hitch(this,"_handleCloseCommandHistory",{keyCode:o.ENTER})},{id:"commandhistory_backspace",enabled:!1,key:"backspace",callback:i.hitch(this,"_handleCloseCommandHistory",{keyCode:o.BACKSPACE})},{id:"commandhistory_delete",enabled:!1,key:"delete",callback:i.hitch(this,"_handleCloseCommandHistory",{keyCode:o.DELETE})}],this._actionService.loadActions(this._popupActions)},_startCommandHistoryPopup:function(e){this._commandHistoryPopupWidget=e,this._attachPopupListeners(),this._displayMode="popup"},_startCommandHistoryClosed:function(){this._attachClosedListeners(),this._displayMode="closed"},_stopCommandHistoryClosed:function(){this._removeClosedListeners(),this._displayMode=""},_stopCommandHistoryPopup:function(e){this._removePopupListeners(),this._commandHistoryPopupWidget=null,this._escapeFlag=!1,this._displayMode=""},_attachPopupListeners:function(){this._popupActions.forEach(function(e){this._actionService.enableAction(e.id)}.bind(this)),this._popupListeners.push(this._commandHistoryPopupWidget.on("recallSelectedCommands",this._recallSelectedCommands.bind(this)),this._commandHistoryPopupWidget.on("actionsMenuClosed",this._handleActionsMenuClosed.bind(this)),h(window,"resize",this._handleWindowsResize.bind(this)),h(window,"blur",this._handleWindowBlur.bind(this))),window.PointerEvent?this._popupListeners.push(h(document.body,"pointerdown",this._handleMouseDown.bind(this),!0)):this._popupListeners.push(h(document.body,"mousedown",this._handleMouseDown.bind(this),!0));var e=this._keyHandler.keyCapture;e&&this._popupListeners.push(h(e,"blur",this._handleKeyCaptureBlur.bind(this)))},_attachClosedListeners:function(){this._closedListeners.push(n.after(this._promptInput,"onPromptInputClear",this._resetHistoryNavigation.bind(this)))},_removePopupListeners:function(){this._popupListeners.forEach((function(e){e.remove()})),this._popupActions.forEach(function(e){this._actionService.disableAction(e.id)}.bind(this)),this._documentOnChangeHandler&&(this._documentOnChangeHandler.remove(),this._documentOnChangeHandler=null),this._popupListeners=[]},_removeClosedListeners:function(){this._closedListeners.forEach((function(e){e.remove()})),this._closedListeners=[]},_handleActionsMenuClosed:function(){this._focusService.hasFocus()||this._commandHistoryPopupWidget.hidePopup()},_handleCommandWindowInitialization:function(){window.PointerEvent?this._popupListeners.push(h(document.body,"pointerdown",this._handleMouseDown.bind(this),!0)):this._popupListeners.push(h(document.body,"mousedown",this._handleMouseDown.bind(this),!0)),this._popupListeners.push(h(window,"blur",this._handleWindowBlur.bind(this)));var e=this._keyHandler.keyCapture;e&&this._popupListeners.push(h(e,"blur",this._handleKeyCaptureBlur.bind(this))),this._popupListeners.push(h(window,"resize",this._handleWindowsResize.bind(this)))},_resetHistoryNavigation:function(){this._currentHistoryItemNumber=0,this._requestHistory=[],this._lastUpdatedItem=null},_retrievePreviousHistoryCommand:function(){if(this._shouldCursorNavigate())return 0===this._promptInput.isCursorOnPromptInput();var e=this._promptInput.getPromptInput();return this._lastUpdatedItem!==e&&this._resetHistoryNavigation(),this._currentHistoryItemNumber+=1,1===this._currentHistoryItemNumber?(this._originalCommand=e,this._executionService.historyStore.fetch({query:{type:"request",value:this._originalCommand+"*",historyVisible:!0},onComplete:i.hitch(this,this._updateCurrentHistoryItem)})):this._updateCurrentHistoryItem(),!0},_retrieveNextHistoryCommand:function(){return!this._shouldCursorNavigate()&&(this._lastUpdatedItem!==this._promptInput.getPromptInput()&&this._resetHistoryNavigation(),this._currentHistoryItemNumber>0&&(this._currentHistoryItemNumber-=1,0===this._currentHistoryItemNumber?(this._promptInput.setPromptInput(this._originalCommand.trim()),this._lastUpdatedItem=this._originalCommand.trim()):this._updateCurrentHistoryItem()),!0)},_handleWindowsResize:function(){this._closeCommandHistory()},_handleKeyCaptureBlur:function(e){setTimeout(function(){var t=d.parseFocusEvent(e).gainedFocusNode;t&&t!==document.body&&this._checkTargetToCloseCommandHistory(t)}.bind(this),0)},_handleWindowBlur:function(){this._closeCommandHistory()},_handleMouseDown:function(e){this._checkTargetToCloseCommandHistory(e.target)},_handleDocumentChange:function(){this._escapeFlag=!1},_checkTargetToCloseCommandHistory:function(e){this._commandHistoryPopupWidget.isPopupVisible()&&!this._commandHistoryPopupWidget.containsTarget(e)&&this._closeCommandHistory()},_checkIfValidCursorPosition:function(){var e=this._cursor.getLineColumn(),t=this._promptInput.getPromptInputLineColumn(),i=this._document.getNumberOfLines();return e.line===t.line&&e.line===i},_checkIfValidKeysPressed:function(e){if(e.keyCode===o.UP_ARROW||e.keyCode===o.DOWN_ARROW||e.keyCode===o.PAGE_UP||e.keyCode===o.PAGE_DOWN)return!0===e.shiftKey},_handleUpArrowKey:function(e){return"popup"===this._displayMode?this._checkIfValidCursorPosition()||this._checkIfValidKeysPressed(e)&&this._commandHistoryPopupWidget.isPopupVisible()?this._commandHistoryPopupWidget.isPopupVisible()?this._handleNavigation(e):this._show(e):this._closeCommandHistory():this._handleNavigation(e)},_show:function(){return this._ensureTooltipRemoved(),this._tooltipServiceHandle=this._tooltipService.requestTooltip(i.hitch(this,"_showCallback"),i.hitch(this,"_closeCommandHistory"),this._tooltipService.PRIORITY.ON_DEMAND),!0},_showCallback:function(){var e=this._escapeFlag?"":this._promptInput.getPromptInput(),t=this._promptInput.getPromptInputLineColumn(),i=this._getCoordinateForPosition(t);this._commandHistoryPopupWidget.showPopup(e,i)},_handleNavigation:function(e){if("popup"===this._displayMode){this._escapeFlag||this._promptInput.getPromptInput();if(this._checkIfValidCursorPosition()||this._checkIfValidKeysPressed(e)&&this._commandHistoryPopupWidget.isPopupVisible())return this._commandHistoryPopupWidget.navigate(e);this._closeCommandHistory()}else switch(e.keyCode){case o.UP_ARROW:if(!e.shiftKey)return this._retrievePreviousHistoryCommand();break;case o.DOWN_ARROW:if(!e.shiftKey)return this._retrieveNextHistoryCommand();break;default:return!1}},_getCoordinateForPosition:function(e){var t=this._view.getCoordinateForLineColumn(e.line,e.column),i=this._getPageX(t),n=this._getPageY(t);return{height:n,x:i-26,y:window.innerHeight-n}},_getPageX:function(e){return e.pageX},_getPageY:function(e){var t=this._view.getDomtarget().getBoundingClientRect().top,i=this._view.getDomTargetPosition().scrollTop;return e.y+t-i},_recallSelectedCommands:function(e){this._documentOnChangeHandler&&(this._documentOnChangeHandler.remove(),this._documentOnChangeHandler=null),this._promptInput.setPromptInput(e,!0),"popup"===this._displayMode&&(this._documentOnChangeHandler=n.after(this._document,"onChange",function(){this._closeCommandHistory()}.bind(this)))},_executeSelectedCommands:function(e){this._executionService.authoringEval(e,this._executionService.streamingEval),this._closeCommandHistory(),this._recallSelectedCommands("")},_deleteCommands:function(e,t){t&&this._closeCommandHistory()},_handleCloseCommandHistory:function(e){return"popup"===this._displayMode&&(this._escapeFlag=!1,this._commandHistoryPopupWidget.isPopupVisible()&&(e.keyCode===o.ESCAPE&&(this._escapeFlag=!0),this._closeCommandHistory())),this._escapeFlag},_closeCommandHistory:function(e){var t=this._cursor.getLineColumn(),i=this._promptInput.getPromptInputLineColumn();return this._documentOnChangeHandler&&(this._documentOnChangeHandler.remove(),this._documentOnChangeHandler=null),this._commandHistoryPopupWidget.hidePopup(),this._ensureTooltipRemoved(),this._view.scrollPositionIntoView(this._cursor.getCursorPosition()),t.line===i.line},_ensureTooltipRemoved:function(){this._tooltipServiceHandle&&(this._tooltipServiceHandle.remove(),this._tooltipServiceHandle=null)},_updateCurrentHistoryItem:function(t){if(t&&(t=e.filter(t,(function(e,n){return i.trim(e.value).length>0&&(0===n||i.trim(t[n-1].value)!==i.trim(e.value))})),this._requestHistory=t),this._currentHistoryItemNumber<=this._requestHistory.length){var n=i.trim(this._requestHistory[this._requestHistory.length-this._currentHistoryItemNumber].value);this._promptInput.setPromptInput(n),this._lastUpdatedItem=n}else this._currentHistoryItemNumber=this._requestHistory.length},_createFile:function(e){var t=this._actionService.getAction(s.NEW_FILE);t&&t.enabled?this._actionService.executeAction(s.NEW_FILE,{fileContents:e,ignoreTemplates:!0,isModified:!0}):DialogUtils.displayMessage(this._localization.fileCreationErrorMessage,this._localization.fileCreationErrorTitle),this._closeCommandHistory()},_createLiveFile:function(e){var t;t="matlab.internal.liveeditor.openAsLiveCode(['"+(e=(e=e.replace(this._REGEXP_SINGLE_QUOTES,"''")).replace(this._REGEXP_NEWLINE,"' newline '"))+"'])",this._executionService.executionEval(t),this._closeCommandHistory()},_checkIfMultilineInput:function(){return this._promptInput.getPromptInput().split("\n").length>1},_shouldCursorNavigate:function(){return this._checkIfMultilineInput()&&this._promptInput.isCursorOnPromptInput()>-1},destroy:function(){this._listeners.forEach((function(e){e.remove()})),this._displayModeSettingListener.remove(),this._aspectHandle&&this._aspectHandle.remove()}});function h(e,t,i,n){return n=!!n,e.addEventListener(t,i,n),{remove:function(){e.removeEventListener(t,i,n)}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(223),i(317),i(288),i(354),i(515),i(879),i(1814),i(339),i(2532),i(2540),i(857)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([d],{constructor:function(){this.inherited(arguments),this._isInSearchMode=!1,this._searchString="",this._actionsMenuBtnContainer=null,this.actionsMenu=null},navigate:function(e){return!!this.isPopupVisible()&&(this.isTableVisible()?this._handleNavigate(e):e.keyCode===i.UP_ARROW||this.hidePopup(),!0)},_handleNavigate:function(e){var t,n=this.table.getCurrentSelectedRow();switch(e.keyCode){case i.DOWN_ARROW:t=e.shiftKey?{bubbles:!0,keyCode:i.DOWN_ARROW,shiftKey:!0}:this._handleDownNavigate(n);break;case i.UP_ARROW:t=e.shiftKey?{bubbles:!0,keyCode:i.UP_ARROW,shiftKey:!0}:this._handleUpNavigate(n);break;case i.PAGE_DOWN:t=e.shiftKey?{bubbles:!0,keyCode:i.PAGE_DOWN,shiftKey:!0}:{bubbles:!0,keyCode:i.PAGE_DOWN};break;case i.PAGE_UP:t=e.shiftKey?{bubbles:!0,keyCode:i.PAGE_UP,shiftKey:!0}:{bubbles:!0,keyCode:i.PAGE_UP}}t&&this._dispatchKey(t)},_handleDownNavigate:function(e){var t;return e===this.table.getNumberOfRows()-1?(this.emit("recallSelectedCommands",this._searchString),this.hidePopup()):!this._isInSearchMode||this._isInSearchMode&&this._commandHistoryPrefs.filterMatches?t={bubbles:!0,keyCode:i.DOWN_ARROW}:this.dataStore.searchNextOccurrence(this._searchString,this._commandHistoryPrefs,e).then(function(e){"number"==typeof e?this._setSelection(e,e):(this.emit("recallSelectedCommands",this._searchString),this.hidePopup())}.bind(this)),t},_handleUpNavigate:function(e){var t;return!this._isInSearchMode||this._isInSearchMode&&this._commandHistoryPrefs.filterMatches?t={bubbles:!0,keyCode:i.UP_ARROW}:this.dataStore.searchPreviousOccurrence(this._searchString,this._commandHistoryPrefs,e).then(function(e){"number"==typeof e&&this._setSelection(e,e)}.bind(this)),t},_recallSelectedCommands:function(){var e=this.table.getSelection();e.length>0&&this.table.dataStore.getSelectedCommands(e).then(function(e){e&&this.emit("recallSelectedCommands",e)}.bind(this))},attachListenersOnContainer:function(){this.inherited(arguments),this.domNode.addEventListener("mousedown",(function(e){e.preventDefault()}),!0)},hidePopup:function(){this.hideBusyOverlay(),this.hideContainer(),this.hideContent(),this._isInSearchMode&&(this._isInSearchMode=!1,this._searchString="")},createBusyOverlay:function(){this.busyOverlay=new c(c.SIZE.MEDIUM)},hideBusyOverlay:function(){this.busyOverlay&&this.busyOverlay.hide(),this.domNode.classList.remove("mwCommandHistoryPopupBusyOverlay")},showBusyOverlay:function(){this.busyOverlay.show(),this.domNode.classList.add("mwCommandHistoryPopupBusyOverlay")},destroy:function(){this.actionsMenu&&this.actionsMenu.destroy(),this.inherited(arguments)},postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwCommandHistoryPopupWidget"),this.domNode.setAttribute("data-test-id","commandHistoryPopupWidget"),this.domNode.setAttribute("data-focus","refuse"),document.body.appendChild(this.domNode)},showPopup:async function(e,t){this.showContainer(),await this._createAndShowPopupContent(e),this._reposition(t),this._preventClipingAtTop(),this._scrollToLastSelectedItem(),this.emit("commandhistoryPopupPlaced",this.domNode)},_reposition:function(e){this.domNode.style.left=e.x+"px",this.domNode.style.bottom=e.y+"px",this.domNode.style.zIndex=100},_preventClipingAtTop:function(){var e=this.domNode.getBoundingClientRect();if(e.top<0){var t=this.table.domNode,i=parseInt(t.style.height)+e.top;t.style.height=i+"px"}},attachListenersOnTable:function(){this.inherited(arguments),this.listeners.push(this.table._table.on("selectionChanged",this._recallSelectedCommands.bind(this)))},_attachListenersOnActionsMenu:function(){this.listeners.push(this.actionsMenu.on("close",function(e){this.emit("actionsMenuClosed")}.bind(this)))},_createAndShowPopupContent:async function(e){this.busyOverlay||(this.createBusyOverlay(),this.domNode.appendChild(this.busyOverlay.domNode)),this.showBusyOverlay(),this._commandHistoryDataService.ready().then(async function(){if(this.noCommandRecordedLabel||(this.createNoCommandRecordedLabel(),this.domNode.appendChild(this.noCommandRecordedLabel.domNode)),this.table||(this.createCommandHistoryTable(),this.domNode.appendChild(this.table.domNode)),this.noMatchingCommandsLabel||(this.createNoMatchingCommandsLabel(),this.domNode.appendChild(this.noMatchingCommandsLabel.domNode)),this.dataStore.clearFilter(),""===e)if(this.dataStore.isDataStoreEmpty())this._setPanelState("NoRecords"),this.emit("recallSelectedCommands","");else{this._setPanelState("Normal");var t=this.table.getNumberOfRows()-1;this._setSelection(t,t)}else this._isInSearchMode=!0,this._searchString=e,this._commandHistoryPrefs.filterMatches?await this._filterRecords():this._searchRecords();this._createAndShowActionsMenu(),this.hideBusyOverlay(),this._preventClipingAtTop(),this._scrollToLastSelectedItem()}.bind(this))},_handleFilterResponse:function(e){if(this.dataStore.isDataStoreEmpty())this._setPanelState("NoRecords");else if(0===this.dataStore.getFiltrateCount())this._setPanelState("NoMatches"),this._adjustHeight(),this.emit("recallSelectedCommands",this._searchString);else if(this._setPanelState("Normal"),e)this.table.setFocus([]),this.table.setSelection([]);else{let e=this.table.getNumberOfRows()-1;this._setSelection(e,e)}this.isTableVisible()&&this._adjustActionsMenuBtn()},_handleSearchResponse:function(e){this.dataStore.isDataStoreEmpty()?this._setPanelState("NoRecords"):"number"==typeof e?(this._setPanelState("Normal"),this._setSelection(e,e)):(this._setPanelState("NoMatches"),this._adjustHeight(),this.emit("recallSelectedCommands",this._searchString)),this.isTableVisible()&&this._adjustActionsMenuBtn()},showCommandHistoryTable:function(){this.table.domNode.style.height="180px",this.inherited(arguments),this._adjustHeight()},_createActionsMenu:function(){var e=new s({text:h.matchAnywhereButtonLabel,checked:this._commandHistoryPrefs.matchAnywhere,buttonGroup:"commandHistoryMatchPref","data-test-id":"menuItemMatchAnywhere"});e.on("click",function(e){u.setMatchAnywhere([e]),this.actionsMenu.close()}.bind(this));var t=new s({text:h.matchBeginningButtonLabel,checked:!this._commandHistoryPrefs.matchAnywhere,buttonGroup:"commandHistoryMatchPref","data-test-id":"menuItemMatchBeginning"});t.on("click",function(e){u.setMatchBeginning([e]),this.actionsMenu.close()}.bind(this));var i=new a({text:h.matchCaseButtonLabel,checked:this._commandHistoryPrefs.matchCase,"data-test-id":"menuItemMatchCase"});i.on("click",function(e){u.setMatchCase([e]),this.actionsMenu.close()}.bind(this));var n=new a({text:h.filterMatchesButtonLabel,checked:this._commandHistoryPrefs.filterMatches,"data-test-id":"filterMatchCase"});n.on("click",e=>{u.setFilterMatches([e]),this.actionsMenu.close()});var l=new o({text:h.clearHistoryButtonLabel,"data-test-id":"menuItemClearHistory"});l.on("click",u.clearCommandHistory.bind(u));let c=new o({text:h.insertTimestampButtonLabel,"data-test-id":"menuItemInsertTimestamp"});c.on("click",async function(e){await u.insertTimestampAtEnd();const t=this.table.getNumberOfRows();1===t&&this._setPanelState("Normal"),this._setSelection(t-1,t-1),this.emit("recallSelectedCommands","")}.bind(this)),this.actionsMenu.addChild(e),this.actionsMenu.addChild(t),this.actionsMenu.addChild(i),this.actionsMenu.addChild(n),this.actionsMenu.addChild(new r),this.actionsMenu.addChild(c),this.actionsMenu.addChild(l),this.actionsMenu.startup()},_createAndShowActionsMenu:function(){if(!this.actionsMenu){this.actionsMenu=new n({targetNodes:[".mwCommandHistoryActionsMenuBtnContainer"]}),this._createActionsMenu(),this._attachListenersOnActionsMenu(),this.actionsMenu.domNode.setAttribute("data-test-id","actionsMenu"),this._actionsMenuBtnContainer=document.createElement("div"),this._actionsMenuBtnContainer.classList.add("mwCommandHistoryActionsMenuBtnContainer"),this.domNode.appendChild(this._actionsMenuBtnContainer);var e=new l({"data-test-id":"actionsMenuBtn",class:"mwCommandHistoryActionsMenuBtn"});e.placeAt(this._actionsMenuBtnContainer),e.startup()}this.isTableVisible()?this._adjustActionsMenuBtn():setTimeout(()=>{this._adjustActionsMenuBtn()},0)},_scrollToLastSelectedItem:function(){if(this.table){var e=this.table.getSelection();e&&e[0]&&this.table._table.scrollTo(e[0])}},isPopupVisible:function(){return this.isContainerVisible()},containsTarget:function(e){return this.domNode.contains(e)||this.actionsMenu&&this.actionsMenu.domNode.contains(e)||this.contextMenu&&this.contextMenu.domNode.contains(e)},_updatePreferences:function(e){if(this.inherited(arguments),this.actionsMenu){var t=this.actionsMenu.getChildren();t[0].set("checked",e.matchAnywhere),t[1].set("checked",!e.matchAnywhere),t[2].set("checked",e.matchCase),t[3].set("checked",e.filterMatches)}},_adjustHeight:function(){this.isTableVisible()&&(this.table.dataStore.dataSize.rows.count>7?this.table.domNode.style.height="180px":this.table.domNode.style.height=this.table.domNode.querySelector("table.mw-table").clientHeight+2+"px")},_adjustActionsMenuBtn:function(){this._actionsMenuBtnContainer&&(this.isTableVisible()&&this.domNode.querySelector("div.mw-table-has-vertical-scroll")?(this._actionsMenuBtnContainer.classList.remove("mwCommandHistoryActionsBtnWithoutScrollBar"),this._actionsMenuBtnContainer.classList.add("mwCommandHistoryActionsBtnWithScrollBar")):(this._actionsMenuBtnContainer.classList.remove("mwCommandHistoryActionsBtnWithScrollBar"),this._actionsMenuBtnContainer.classList.add("mwCommandHistoryActionsBtnWithoutScrollBar")))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(228),i(856),i(1228),i(486)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return a.deprecated({deprecated:{module:"MW/dialog/DialogDisplayManager"},replacement:{module:"mw-dialogs/Dialogs"},geckNumber:1471429}),t([r],{constructor:function(e){e=e||{},this.dialogWidgetStore=new o},addWidget:function(e,t,i,n){var o={};o.widget=i,o.position=n.position,o.closable=!1!==n.closable,o.autofocus=!0,o.title=n.title,o.id=e,o.style=n.style,o.dialogClass=n.dialogClass,o.parentDiv=n.parentDiv,o["data-testid"]=n["data-testid"],n.isModal?this._displayModalDialog(o):(o.resizable=n.resizable,this._displayNonModalDialog(o)),this.dialogWidgetStore.newItem(o)},_displayModalDialog:function(e){e.wrapper=this.createModalDialogWrapper(e),e.wrapper.show(),e.widget.startup()},_displayNonModalDialog:function(e){e.wrapper=this.createNonModalDialogWrapper(e),e.widget.close||(e.widget.close=function(){e.wrapper.close()}),this.startNonModalDialogAndAddResizeHandlers(e.wrapper)},removeWidget:function(e){var t=null;this.dialogWidgetStore.fetch({query:{id:e},onItem:function(e){t=e}}),t&&(t.wrapper.destroyRecursive(),this.dialogWidgetStore.deleteItem(t))},removeWidgetsWithParentId:function(){},removeWidgetsWithLayoutId:function(){},showWidget:function(){},focusWidget:function(){},disableWidget:function(){},enableWidget:function(){},updateWidget:function(){},updateWidgetsWithLayoutId:function(){},ensureParentExistsInStore:function(){}})}),e,t),e.exports=o},function(e,t,i){e.exports={ok:"OK",cancel:"キャンセル",switchPanes:"ウィンドウの切り替え",close:"閉じる",maximize:"最大化",minimize:"最小化",yes:"はい",no:"いいえ"}},function(e,t,i){e.exports={ok:"확인",cancel:"취소",switchPanes:"창 전환",close:"닫기",maximize:"최대화",minimize:"최소화",yes:"예",no:"아니요"}},function(e,t,i){e.exports={ok:"确定",cancel:"取消",switchPanes:"切换窗口",close:"关闭",maximize:"最大化",minimize:"最小化",yes:"是",no:"否"}},function(e,t,i){e.exports={root:{ok:"OK",cancel:"Cancel",switchPanes:"Switch Windows",close:"Close",maximize:"Maximize",minimize:"Minimize",yes:"Yes",no:"No"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(356),i(204),i(572),i(210),i(217),i(213),i(256),i(206),i(222),i(279),i(248),i(2538),i(328),i(1011),i(754),i(7795)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([h],{isOnTop:!1,attributeMap:i.delegate(p.prototype.attributeMap,{title:{type:"textContent",node:"titleNode"}}),startup:function(){this.inherited(arguments),this._checkResizeConstraints(),this.resizable&&this.connect(this._resizeHandle.domNode,u.press,"bringToTop"),this.connect(this.focusNode,u.press,(function(){this.domNode.focus()})),this._resizeHandle&&this.connect(this._resizeHandle.domNode,u.press,(function(){this.domNode.focus()})),this.domNode.focus()},postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-focus","temporary"),this._moveable.destroy(),this._moveable=new n(this.domNode,{handle:this.titleNode}),this._moveable.mover=f,this.dockable&&(this.own(s.subscribe("/floatingPaneDockUpdate",i.hitch(this,(function(e){this.dockTo=e.newWidget})))),this.dockTo.addItem(this)),this.closeNode.title=g.close,this.closeNode.setAttribute("tabindex","0"),this.maxNode.title=g.maximize,this.dockNode.title=g.minimize},templateString:m,hide:function(e){var n,o;"function"==typeof e?(n=e,o=i.hitch(this,(function(){n(),this.onClose(),this.emit("onClose")})),this.inherited(arguments,[o])):"boolean"==typeof e?(this.paneOriginalPosition=r.position(this.domNode),t.animateProperty({node:this.domNode,properties:{top:r.position(this.dockTo.domNode).y,left:r.position(this.dockTo.domNode).x,height:0,width:r.position(this.dockTo.domNode).w,opacity:0},onEnd:i.hitch(this,(function(){this.domNode.style.visibility="hidden",this.dockTo&&this.dockable&&this.dockTo._positionDock(null)})),duration:this.duration}).play()):this.inherited(arguments)},close:function(){l.emit(this.domNode,"restorefocus",{bubbles:!0}),this.closeAlreadyInvoked||(this.closeAlreadyInvoked=!0,this.inherited(arguments))},show:function(){this.onTop||(this.paneOriginalPosition&&(this.domNode.style.top=this.paneOriginalPosition.y+"px",this.domNode.style.left=this.paneOriginalPosition.x+"px",this.domNode.style.width=this.paneOriginalPosition.w-a.get(this.domNode,"borderLeftWidth")-a.get(this.domNode,"borderRightWidth")+"px",this.domNode.style.height=this.paneOriginalPosition.h-a.get(this.domNode,"borderLeftWidth")-a.get(this.domNode,"borderRightWidth")+"px"),delete this.closeAlreadyInvoked,this._isMinimized=!1,this.inherited(arguments))},onClose:function(){},resize:function(e){e||(this._naturalState=r.position(this.domNode),this._naturalState.w-=a.get(this.domNode,"borderLeftWidth")+a.get(this.domNode,"borderRightWidth"),this._naturalState.h-=a.get(this.domNode,"borderTopWidth")+a.get(this.domNode,"borderBottomWidth")),this.inherited(arguments)},minimize:function(){this._isDocked||(this.hide(!0),this.onTop=!1,this.onMinimize())},bringToTop:function(){if(!this._isMinimized){var e=this._allFPs.filter((function(e){return e!==this}),this),t=document.getElementsByClassName("mwModelessDialog");t.length>0&&(t=(t=Array.prototype.slice.call(t)).map((function(e){return{domNode:e}})),e=e.concat(t)),e.sort((function(e,t){return e.domNode.style.zIndex-t.domNode.style.zIndex})),e.push(this),e.forEach((function(e,i){e.domNode.style.zIndex=this._startZ+2*i,o.remove(e.domNode,"dojoxFloatingPaneFg"),t.length>0&&o.remove(e.domNode,"mwModelessDialogFg")}),this),o.add(this.domNode,"dojoxFloatingPaneFg"),this.onTop=!0,this.onBringToTop()}},onBringToTop:function(){},onMinimize:function(){this._isMinimized=!0},forceClose:function(){this.dockable&&this.dockTo.removeItem(this),this.inherited("close",arguments)},_dock:function(){!this._isDocked&&this.dockable&&(this.dockTo.addItem(this),this._isDocked=!0)},_checkResizeConstraints:function(){var e;this._resizeHandle&&(e=i.hitch(this._resizeHandle,this._resizeHandle._checkConstraints),this._resizeHandle._checkConstraints=function(t,i){var n,o,s,l,c,u={};return n=e(t,i),o=r.position(this.targetDomNode),l=2*(a.get(this.targetDomNode,"borderTopWidth")+a.get(this.targetDomNode,"borderBottomWidth")),c=2*(a.get(this.targetDomNode,"borderLeftWidth")+a.get(this.targetDomNode,"borderRightWidth")),s=d.getBox(),u.w=Math.min(n.w,Math.floor(s.w-(o.x+c))),u.h=Math.min(n.h,Math.floor(s.h-(o.y+l))),u})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(765),i(276),i(7792),i(203)],o=i.dj.d(n,(function(e,t,i,n,o){return o("dojox.layout.ContentPane",i,{adjustPaths:!1,cleanContent:!1,renderStyles:!1,executeScripts:!0,scriptHasHooks:!1,ioMethod:t.get,ioArgs:{},onExecError:function(e){},_setContent:function(t){var i=this._contentSetter;return i&&i instanceof n._ContentSetter||(i=this._contentSetter=new n._ContentSetter({node:this.containerNode,_onError:e.hitch(this,this._onError),onContentError:e.hitch(this,(function(e){var t=this.onContentError(e);try{this.containerNode.innerHTML=t}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e)}}))})),this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"},this.inherited("_setContent",arguments)},destroy:function(){var e=this._contentSetter;e&&e.tearDown(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(211),i(1034),i(240),i(204),i(385),i(445),i(1035),i(765),i(285),i(242)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=o.getObject("dojox.html",!0);if(s("ie"))var p=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;var f=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g,g=h._adjustCssPaths=function(e,t){if(t&&e)return p&&(t=t.replace(p,(function(t,i,n,o,r){return i+new l(e,"./"+o).toString()+r}))),t.replace(f,(function(t,i,n,o,r,a){return n?'@import "'+new l(e,"./"+n).toString()+'"'+a:"url("+new l(e,"./"+r).toString()+")"+a}))},m=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi,_=h._adjustHtmlPaths=function(e,t){var i=e||"./";return t.replace(m,(function(e,t,n,o,r,a,s,c){return t+(n?n+"="+o+new l(i,r).toString()+o:"style="+a+g(i,s)+a)+c}))},v=h._snarfStyles=function(e,t,i){return i.attributes=[],(t=t.replace(/<[!][-][-](.|\s)*?[-][-]>/g,(function(e){return e.replace(/<(\/?)style\b/gi,"&lt;$1Style").replace(/<(\/?)link\b/gi,"&lt;$1Link").replace(/@import "/gi,'@ import "')}))).replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,(function(t,n,o,r,a,s){var l,c=(n||r||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(o?l=i.push(e?g(e,o):o):(l=i.push('@import "'+s+'";'),c=c.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"")),c){for(var d,u={},h=0,p=(c=c.split(/\s+/)).length;h<p;h++)u[(d=c[h].split("="))[0]]=d[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");i.attributes[l-1]=u}return""}))},b=h._snarfScripts=function(e,t){return t.code="",(e=e.replace(/<[!][-][-](.|\s)*?[-][-]>/g,(function(e){return e.replace(/<(\/?)script\b/gi,"&lt;$1Script")}))).replace(/<script\s*(?![^>]*type=['"]?(?:dojo\/|text\/html\b))[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?>([\s\S]*?)<\/script>/gi,(function(e,i,n,o){return n?function(e){t.downloadRemote&&(e=e.replace(/&([a-z0-9#]+);/g,(function(e,t){switch(t){case"amp":return"&";case"gt":return">";case"lt":return"<";default:return"#"==t.charAt(0)?String.fromCharCode(t.substring(1)):"&"+t+";"}})),c.get({url:e,sync:!0,load:function(e){""!==t.code&&(e="\n"+e),t.code+=e+";"},error:t.errBack}))}(n):(""!==t.code&&(o="\n"+o),t.code+=o+";"),""}))},y=h.evalInGlobal=function(e,t){var i=(t=t||u.doc.body).ownerDocument.createElement("script");i.type="text/javascript",t.appendChild(i),i.text=e};return h._ContentSetter=e(n._ContentSetter,{adjustPaths:!1,referencePath:".",renderStyles:!1,executeScripts:!1,scriptHasHooks:!1,scriptHookReplacement:null,_renderStyles:function(e){this._styleNodes=[];for(var t,i,n,o=this.node.ownerDocument,r=o.getElementsByTagName("head")[0],a=0,s=e.length;a<s;a++){for(var l in n=e[a],i=e.attributes[a],(t=o.createElement("style")).setAttribute("type","text/css"),i)t.setAttribute(l,i[l]);this._styleNodes.push(t),r.appendChild(t),t.styleSheet?t.styleSheet.cssText=n:t.appendChild(o.createTextNode(n))}},empty:function(){this.inherited("empty",arguments),this._styles=[]},onBegin:function(){this.inherited("onBegin",arguments);var e=this.content,t=(this.node,this._styles);if(this._code=null,r.isString(e)&&(this.adjustPaths&&this.referencePath&&(e=_(this.referencePath,e)),(this.renderStyles||this.cleanContent)&&(e=v(this.referencePath,e,t)),this.executeScripts)){var i=this,n={downloadRemote:!0,errBack:function(e){i._onError.call(i,"Exec",'Error downloading remote script in "'+i.id+'"',e)}};e=b(e,n),this._code=n.code}this.content=e},onEnd:function(){var e=this._code,n=this._styles;if(this._styleNodes&&this._styleNodes.length)for(;this._styleNodes.length;)i.destroy(this._styleNodes.pop());this.renderStyles&&n&&n.length&&this._renderStyles(n);var o=new t,s=this.getInherited(arguments),l=arguments,c=r.hitch(this,(function(){s.apply(this,l),d(this.parseDeferred,(function(){o.resolve()}))}));if(this.executeScripts&&e){this.cleanContent&&(e=e.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"")),this.scriptHasHooks&&(e=e.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement));try{y(e,this.node)}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e)}a(c)}else c();return o.promise},tearDown:function(){if(this.inherited(arguments),delete this._styles,this._styleNodes&&this._styleNodes.length)for(;this._styleNodes.length;)i.destroy(this._styleNodes.pop());delete this._styleNodes,r.mixin(this,h._ContentSetter.prototype)}}),h.set=function(e,t,i){return i?new h._ContentSetter(r.mixin(i,{content:t,node:e})).set():n._setNodeContent(e,t,!0)},h}),e,t),e.exports=o},function(e,t){e.exports='<div class="dojoxFloatingPane" id="${id}">\n\t<div tabindex="0" role="button" class="dojoxFloatingPaneTitle" dojoAttachPoint="focusNode">\n\t\t<span dojoAttachPoint="closeNode" dojoAttachEvent="onclick: close" class="dojoxFloatingCloseIcon"></span>\n\t\t<span dojoAttachPoint="maxNode" dojoAttachEvent="onclick: maximize" class="dojoxFloatingMaximizeIcon">&thinsp;</span>\n\t\t<span dojoAttachPoint="restoreNode" dojoAttachEvent="onclick: _restore" class="dojoxFloatingRestoreIcon">&thinsp;</span>\t\n\t\t<span dojoAttachPoint="dockNode" dojoAttachEvent="onclick: minimize" class="dojoxFloatingMinimizeIcon">&thinsp;</span>\n\t\t<span dojoAttachPoint="titleNode" class="dijitInline dijitTitleNode"></span>\n\t</div>\n\t<div dojoAttachPoint="canvas" class="dojoxFloatingPaneCanvas">\n\t\t<div dojoAttachPoint="containerNode" role="region" tabindex="-1" class="${contentClass}">\n\t\t</div>\n\t\t<span dojoAttachPoint="resizeHandle" class="dojoxFloatingResizeHandle"></span>\n\t</div>\n</div>\n'},function(e,t,i){var n,o;n=[i(204),i(242),i(203),i(356),i(206),i(224),i(445),i(279),i(227),i(210),i(217),i(211),i(216),i(215)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=i("dojox.layout.Dock",[p,h],{templateString:'<div class="dojoxDock"><ul data-dojo-attach-point="containerNode" class="dojoxDockList"></ul></div>',_docked:[],_inPositioning:!1,autoPosition:!1,addNode:function(e){var t=u.create("li",null,this.containerNode),i=new g({title:e.title,paneRef:e},t);return i.startup(),i},startup:function(){("dojoxGlobalFloatingDock"==this.id||this.isFixedDock)&&(this.own(o(window,"resize",e.hitch(this,"_positionDock")),o(window,"scroll",e.hitch(this,"_positionDock"))),a("ie")&&this.own(o(this.domNode,"resize",e.hitch(this,"_positionDock")))),this._positionDock(null),this.inherited(arguments)},_positionDock:function(e){this._inPositioning||"south"==this.autoPosition&&this.defer((function(){this._inPositiononing=!0;var e=s.getBox(),t=this.domNode.style;t.left=e.l+"px",t.width=e.w-2+"px",t.top=e.h+e.t-this.domNode.offsetHeight+"px",this._inPositioning=!1}),125)}}),g=i("dojox.layout._DockNode",[p,h],{title:"",paneRef:null,templateString:'<li data-dojo-attach-event="onclick: restore" class="dojoxDockNode"><span data-dojo-attach-point="restoreNode" class="dojoxDockRestoreButton" data-dojo-attach-event="onclick: restore"></span><span class="dojoxDockTitleNode" data-dojo-attach-point="titleNode">${title}</span></li>',restore:function(){this.paneRef.show(),this.paneRef.bringToTop(),this.destroy()}});return f}),e,t),e.exports=o},function(e,t){e.exports='<div tabindex="0" class="mwNonModalDialog dojoxFloatingPane" id="${id}">\n\t<div role="button" class="dojoxFloatingPaneTitle dijitDialogTitleBar" dojoAttachPoint="focusNode">\n \x3c!--\n This template is required because the dojox Floating pane template uses onClick Event instead of ondijitclick,\n which causes some issues with Ipad. Dojo ticket for dialogs not closing on touch devices: http://bugs.dojotoolkit.org/ticket/13488\n the fix was implemented in _onDijitClickMixin() so using ondijitclick solves the problem.\n\n This template also groups the icons into a div so that it can be absolute positioned which\n allows it to be stacked on top of the title node. Previously long titles were overlapping\n the icons making them unclickable, z-index does not work because the buttons are floats.\n g985154\n --\x3e\n\t\t<span style="float:left" dojoAttachPoint="titleNode" class="dijitInline dijitTitleNode dijitDialogTitle"></span>\n\n <div class="dojoxFloatingIconContainer">\n <span dojoAttachPoint="closeNode" dojoAttachEvent="ondijitclick: close" class="dojoxFloatingCloseIcon"></span>\n <span dojoAttachPoint="maxNode" dojoAttachEvent="ondijitclick: maximize" class="dojoxFloatingMaximizeIcon">&thinsp;</span>\n <span dojoAttachPoint="restoreNode" dojoAttachEvent="ondijitclick: _restore" class="dojoxFloatingRestoreIcon">&thinsp;</span>\n <span dojoAttachPoint="dockNode" dojoAttachEvent="ondijitclick: minimize" class="dojoxFloatingMinimizeIcon">&thinsp;</span>\n </div>\n\t</div>\n\t<div dojoAttachPoint="canvas" class="dojoxFloatingPaneCanvas">\n\t\t<div dojoAttachPoint="containerNode" role="region" tabindex="-1" class="${contentClass}">\n\t\t</div>\n\t\t<span dojoAttachPoint="resizeHandle" class="dojoxFloatingResizeHandle"></span>\n\t</div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(326),i(350),i(239),i(315),i(7797),i(7798),i(7799)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l;return e(null,{constructor:function(e){this.domNode=document.createElement("div"),this.domNode.className="mwCommandHistoryTableContainer",this._started=!1,this.dataStore=e,l=this._createTableConfig(),this._table=new t(e,l),this.domNode.appendChild(this._table.domNode)},startup:function(){this._table.startup()},focus:function(){this._table.focus()},destroy:function(){this._table&&this._table.destroy(),this.domNode.remove()},getSelection:function(){var e=this._table.getSelection();return e&&e.length>0&&e.sort((function(e,t){return e.rows.start<t.rows.start?-1:e.rows.start>t.rows.start?1:0})),e},setSelection:function(e){this._table.setSelection(e)},setFocus:function(e){this._table.setCellFocus(e)},resize:function(){this._table.resizeHandler()},selectAllEntries:function(){var e=n.range().setRows(0,this.dataStore.dataSize.rows.end).setColumns(0,1/0);this.setSelection([e])},_getSelectedRows:function(){var e=this._table.getSelection();return e&&e.length>0?e[0].rows:null},getCurrentSelectedRow:function(){var e=null,t=this._getSelectedRows();return t&&t.hasOwnProperty("start")&&(e=t.start),e},getNumberOfRows:function(){return this.dataStore.dataSize.rows.count},_setAvatar:function(e){const t=document.createElement("div"),i=e.data.value.split("\n"),n=document.createTextNode(i[0]);return t.appendChild(n),{node:t}},_setDragDataBySelection:function(e){return this.dataStore.getData(e).then(e=>{const t=[];return e.forEach(e=>{e.forEach(e=>{const i=e[0].value;t.push(i)})}),{dragSourceType:"text/plain",value:t.join("\n")}})},_createTableConfig:function(){return{dataTestId:"commandHistory",features:[t.FEATURE.MultiRowSelection,t.FEATURE.DragAndDrop],columnModel:{columnConfig:[{label:"Gutter",dataIndex:0,width:{value:22,unit:"px"},renderer:new r,columnId:"gutter",hideable:!1},{label:"Command",dataIndex:0,width:{value:100,unit:"%"},renderer:new a,columnId:"command",hideable:!1},{label:"Error",dataIndex:0,renderer:new s,columnId:"error",width:{value:22,unit:"px"},hideable:!1}]},attributes:{minColWidth:22,gridStyle:t.gridStyle.LIGHT_WEIGHT},dragAndDropConfig:{setAvatar:this._setAvatar.bind(this),setDragDataBySelection:this._setDragDataBySelection.bind(this)}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getDomNode:function(e){var t=document.createElement("div");if(void 0!==e&&!e.filtered){var i=e.repeat,n=e.positionInBatch,o=function(e){var i=document.createElement("span");i.className=e,t.appendChild(i)},r=i>1?i+"x":"";switch(i>9&&(t.setAttribute("title",r),r=i>9?"9+":r),n){case"start":""!==r?t.textContent=r:(o("horizontalLine"),o("verticalLineStart"));break;case"middle":o("verticalLineMiddle");break;case"end":o("verticalLineEnd"),o("horizontalLine");break;default:t.textContent=r}}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(256),i(637),i(251),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=null;return i.subscribe("/wra/logout",(function(){null!==a&&(a.destroy(),a=null)})),e(null,{constructor:function(){var e=document.documentElement;r.getSetting(["matlab","colors"],"BackgroundColor").then(function(t){let i=this._getBackgroundColor(t.value);e.style.setProperty("--commandhistory-bg-color",i);let n=this._getBackgroundColor(t.value,!0);e.style.setProperty("--commandhistory-docked-bg-color",n)}.bind(this)),r.getSetting(["matlab","colors"],"ForegroundColor").then(function(t){let i=this._getRGBString(t.value);e.style.setProperty("--commandhistory-fg-color",i)}.bind(this)),r.listenTo(["matlab","colors"],"BackgroundColor",function(t){let i=this._getBackgroundColor(t.newValue);e.style.setProperty("--commandhistory-bg-color",i);let n=this._getBackgroundColor(t.newValue,!0);e.style.setProperty("--commandhistory-docked-bg-color",n)}.bind(this)),r.listenTo(["matlab","colors"],"ForegroundColor",function(t){let i=this._getRGBString(t.newValue);e.style.setProperty("--commandhistory-fg-color",i)}.bind(this))},_getRGBString:function(e){return"rgb("+e.join(",")+")"},_getRGBAString:function(e,t){return"rgba("+e.join(",")+","+t+")"},_getBackgroundColor:function(e,t){return t?this._getRGBString(e):255===e[0]&&255===e[1]&&255===e[2]?"#f5f5f5":0===e[0]&&0===e[1]&&0===e[2]?"#404040":this._getRGBAString(e,.3)},getDomNode:function(e){var i,r,s;return function(){var e=new t;if(null===a){var i={features:[o.SYNTAX_HIGHLIGHTING],containerElement:document.createElement("div")};n.createRTC(i).then((function(t){a=t,e.resolve(a)}))}else e.resolve(a);return e.promise}().then((function(t){a=t,i=void 0!==e&&e.value?e.value:"",t.getDocument().setText(i),r=t.getView().getDomNodeForLine(0),s=r.cloneNode(!0)})),s},getTooltip:function(e){return{text:e.value}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{getDomNode:function(e){var t,i=document.createElement("div"),n=document.createElement("div");if(i.appendChild(n),void 0!==e&&!e.filtered){var o=e.isError,r=e.errorText;r=function(e){if("string"==typeof e){for(var t="",i=0;i<e.length;i++)"\b"===e[i]?t=t.substring(0,t.length-1):t+=e[i];return t}return e}(r),t=r,r=(new DOMParser).parseFromString(t,"text/html").body.textContent||"",o&&(i.setAttribute("title",r),i.className="errorCell",n.className="errorRectangle"),n.style.textAlign="right",n.style.textOverflow="ellipsis",n.style.overflow="auto"}return i}})}),e,t),e.exports=o},function(e,t,i){e.exports={root:{commandHistoryPopupLabel:"Command History",commandHistoryDockedLabel:"Command History",clearCommandsDialogTitle:"Confirm Clear",clearCommandWindowDialogMessage:"All text will be cleared from the Command Window.",clearCommandHistoryDialogMessage:"All commands will be cleared from the Command History.",clearHistoryButtonLabel:"Clear Command History",emptyCommandHistory:"No Commands Recorded",filterMatchesButtonLabel:"Filter Matches",matchAnywhereButtonLabel:"Match Anywhere",matchBeginningButtonLabel:"Match Beginning",matchCaseButtonLabel:"Match Case",noSearchResults:"No Matching Commands",searchFieldPlaceholder:"Search",contextMenuDeleteButtonLabel:"Delete",contextMenuCreateScriptButtonLabel:"Create Script",contextMenuCreateLiveScriptButtonLabel:"Create Live Script",insertTimestampButtonLabel:"Insert Time Stamp"}}},function(e,t,i){var n,o;n=[i(203),i(410),i(223),i(206),i(1321),i(239),i(2532),i(857)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(a,{constructor:function(){this.inherited(arguments)},postCreate:function(){this.inherited(arguments),this.domNode.classList.add("mwCommandHistoryDockedWidget"),this.domNode.setAttribute("data-test-id","commandHistoryDockedWidget")},focus:function(){this.isTableVisible()?this._searchTextField.focusNode.focus():this.noCommandRecordedLabel.focusNode.focus()},createPanel:function(){this._createAndShowSearchTextField(),this._createAndShowDockedContent()},attachListenersOnDataStore:function(){this.inherited(arguments),this.listeners.push(this.dataStore.on("dataChanged",function(e){if(!this._deletingRecord){var t=e.rangeList[0];0===t.rows.start?this.dataStore.isDataStoreFiltered()||this._createAndShowDockedContent():this.domNode.contains(document.activeElement)||this.dataStore.dataSize.rows.end!==t.rows.start||this.scrollViewToBottom()}}.bind(this)))},_createAndShowDockedContent:function(){this.showContainer(),this._commandHistoryDataService.ready().then(async function(){this.noCommandRecordedLabel||(this.createNoCommandRecordedLabel(),this.domNode.appendChild(this.noCommandRecordedLabel.domNode)),this.table||(this.createCommandHistoryTable(),this.createNoMatchingCommandsLabel(),this.domNode.appendChild(this.table.domNode),this.domNode.appendChild(this.noMatchingCommandsLabel.domNode)),this.dataStore.isDataStoreEmpty()?this._setPanelState("NoRecords"):this.dataStore.isDataStoreFiltered()&&this.dataStore.getFiltrateCount()<1?this._setPanelState("NoMatches"):this._setPanelState("Normal"),setTimeout(function(){this.scrollViewToBottom(),this.emit("showcommandhistorydocked")}.bind(this),10)}.bind(this))},attachListenersOnTable:function(){this.inherited(arguments),this.listeners.push(n(this.table.domNode,"keydown",e=>{"a"===e.key&&e.ctrlKey&&e.preventDefault()}),n(this.table._table.domNode,"click",e=>{e.target.classList.contains("mw-table-inner-wrapper")&&(this.table.setFocus([]),this.table.setSelection([]))}))},attachListenersOnContainer:function(){this.inherited(arguments),this.listeners.push(n(this.domNode,"keydown",function(e){e.keyCode===i.TAB&&(e.preventDefault(),this._isSearchTextFieldVisible()&&(this._searchTextField.domNode.contains(document.activeElement)?this.table.focus():this._searchTextField.focusNode.focus()))}.bind(this)))},_attachListenersOnSearchTextField:function(){this.listeners.push(n(this._searchTextField,"typing",t(this._startSearch.bind(this),100)),n(this._searchTextField,"keydown",function(e){if(e.keyCode===i.UP_ARROW){e.preventDefault(),this._searchString=this._searchTextField.focusNode.value;let t=this.table.getCurrentSelectedRow();this.dataStore.searchPreviousOccurrence(this._searchString,this._commandHistoryPrefs,t).then(function(e){"number"==typeof e&&this._setSelection(e,e)}.bind(this))}else if(e.keyCode===i.DOWN_ARROW){e.preventDefault(),this._searchString=this._searchTextField.focusNode.value;let t=this.table.getCurrentSelectedRow();this.dataStore.searchNextOccurrence(this._searchString,this._commandHistoryPrefs,t).then(function(e){"number"==typeof e&&this._setSelection(e,e)}.bind(this))}else if(e.keyCode===i.ESCAPE)this._searchTextField._onClickClearButtonHandler.bind(this._searchTextField)();else if(e.keyCode===i.ENTER){let t=this.isTableVisible();this._startSearch(),t&&this.isTableVisible()&&this._dispatchKey(e)}}.bind(this)))},_createAndShowSearchTextField:function(){this._searchTextField=new o({placeholder:s.searchFieldPlaceholder,"data-test-id":"commandHistorySearchTextField"}),this._searchTextField.domNode.classList.add("mwCommandHistorySearchTextField"),this._searchTextField.set("width","100%"),this._attachListenersOnSearchTextField(),this.domNode.appendChild(this._searchTextField.domNode),this._searchTextField.startup(),this._searchTextFieldStarted=!0},_isSearchTextFieldVisible:function(){return this._searchTextField&&!this._searchTextField.domNode.classList.contains("mwHidden")},createNoCommandRecordedLabel:function(){this.inherited(arguments),this.noCommandRecordedLabel.focusNode.tabIndex=0},_handleFilterResponse:function(e){if(this.table){const t=this.table.getNumberOfRows();this.dataStore.isDataStoreEmpty()?this._setPanelState("NoRecords"):t>0?(this._setPanelState("Normal"),e?(this.table.setFocus([]),this.table.setSelection([])):this._setSelection(t-1,t-1)):this._setPanelState("NoMatches")}},_handleSearchResponse:function(e){this.dataStore.isDataStoreEmpty()?this._setPanelState("NoRecords"):"number"==typeof e?(this.isTableVisible()||this._setPanelState("Normal"),e!==this.table.getCurrentSelectedRow()&&this._setSelection(e,e)):this.dataStore.searchPreviousOccurrence(this._searchString,this._commandHistoryPrefs,this.table.getNumberOfRows()).then(e=>{"number"==typeof e?(this.isTableVisible()||this._setPanelState("Normal"),this._setSelection(e,e)):this._setPanelState("NoMatches")})},_setPanelState:function(){this.inherited(arguments),"NoRecords"===this._panelState?(this._searchTextField.set("disabled",!0),this._searchTextField.set("value","")):this._searchTextField.set("disabled",!1)},_startSearch:function(){if(this._searchString=this._searchTextField.focusNode.value,this._commandHistoryPrefs.filterMatches)this._filterRecords();else{var e=this.table.getCurrentSelectedRow(),t=null!==e?e+1:this.table.getNumberOfRows();this._searchRecords(t)}},scrollViewToBottom:function(){if(!this.dataStore.isDataStoreEmpty()&&!this.dataStore.isDataStoreFiltered()&&this.table){var e=r.range().setRows(this.dataStore.dataSize.rows.end,1/0).setColumns(0,1/0);this.table._table.scrollTo(e)}},resize:function(){this.inherited(arguments),this.table&&this.isTableVisible()&&this.table.resize()},destroy:function(){this._searchTextField&&this._searchTextField.destroy(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(302),i(204),i(212),i(244),i(209),i(239),i(229),i(2541),i(7803)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d=null,u=["value","id","uuid","type","promptString","promptType","searchValue","timestamp","commandHistoryDivId","errorText","repeat","positionInBatch","isError","chTimestamp"],h=e(null,{constructor:function(e){this._executionService=e.executionService,this._sessionService=e.sessionService,this._backendStoreReady=new n,this._ready=new n,this._backendStore=null,this._clientDataStore=l.getInstance(),this._executionServiceStore=this._executionService.historyStore,this._buffer=[],this._connectors=[]},copyDataFromBuffer:function(){this._buffer.forEach(function(e){this._getDuplicate(e)||this._preprocessCommand(e).forEach(function(e){this.insertItemToExecutionServiceStore(e),this.insertItemToClientStore(e),this.insertItemToBackendStore(e)}.bind(this))}.bind(this)),this._ready.resolve()},_getCommandRepository:function(e){var t;return e.model.getTopLevelElements().forEach((function(e){"CommandRepository"===e.getMetaClass().name&&(t=e)})),t},loadDataFromBackend:function(){return c.init().then(function(e){this._backendStore=e;var t=[],i=this._getCommandRepository(e);i&&i.records&&(records=i.records.getAllValues(),records.forEach((function(e){var i={id:e.id,uuid:e.uuid,isError:e.isError,errorText:e.errorText,value:e.value,repeat:e.repeat,positionInBatch:e.positionInBatch,chTimestamp:e.chTimestamp};t.push(i)}))),this._dataLoadedFromDB=t,this._backendStoreReady.resolve()}.bind(this)),this._backendStoreReady},setupListenersOnExecutionService:function(){this._connectors.push(t.connect(this._executionServiceStore,"onNew",this,function(e){"request"===e.type&&e.historyVisible&&""!==e.value.trim()&&!e._fromCommandHistoryDataService&&(this._executionServiceStore.deleteItem(e),this.insertItem(e))}.bind(this)),t.connect(this._executionServiceStore,"onSet",this,function(e,t,i,n){this.updateItem(e,t,i,n)}.bind(this)))},backendStoreReady:function(){return this._backendStoreReady},saveBuffer:function(){this._executionServiceStore.items.forEach(function(e){"request"!==e.type||e._fromMigration||(this._executionServiceStore.setValue(e,"historyVisible",!1),this._buffer.push(e))}.bind(this))},copyDataFromPreviousSessions:function(){var e=function(e){this.insertItemToClientStore(e),this.insertItemToExecutionServiceStore(e)}.bind(this);this._dataLoadedFromDB&&this._dataLoadedFromDB.forEach(e)},ready:function(){return this._ready},insertItem:function(e){var t,i=e.commandHistoryDivId,n=this._getDuplicate(e);if(n)if(this.isTimestamp(n))t=Promise.resolve();else{t=this.updateItem(n,"repeat",null,n.repeat+1);var o={};u.forEach((function(t){void 0!==e[t]&&(o[t]=e[t])})),this.insertItemToExecutionServiceStore(o,!1)}else{var r=this._preprocessCommand(e);t=this.insertMultipleItemsToBackendStore(r).then(function(e){e.forEach(function(e){this.insertItemToClientStore(e),e.commandHistoryDivId=i,this.insertItemToExecutionServiceStore(e)}.bind(this))}.bind(this))}return t},insertMultipleItemsToBackendStore:function(e){var t;return new Promise(function(i,n){this.backendStoreReady().then(function(){var n,o=this._backendStore;try{n=o.model.beginRevertibleTransaction();var r=this._getCommandRepository(o);t=Array.from(e,(function(e){var t=new commandhistory.datamodel.CommandRecord(o.model);return t.errorText=e.errorText||"",t.value=e.value,e.uuid=t.uuid,t.id=e.id,t.positionInBatch=e.positionInBatch||"",t.repeat=e.repeat,t.chTimestamp=e.chTimestamp,r.records.push(t),e})),n.commit()}catch(e){this._cancelBackendTransaction(n,e)}i(t)}.bind(this))}.bind(this))},insertItemToClientStore:function(e){this._clientDataStore.insertAtEnd([[e]])},insertItemToBackendStore:function(e){return new Promise(function(t,i){this.backendStoreReady().then(function(){var t,i=this._backendStore;try{t=i.model.beginRevertibleTransaction();var n=this._getCommandRepository(i),o=new commandhistory.datamodel.CommandRecord(i.model);o.errorText=e.errorText||"",o.value=e.value,e.uuid=o.uuid,o.id=e.id,o.positionInBatch=e.positionInBatch||"",o.repeat=e.repeat,o.chTimestamp=e.chTimestamp,n.records.push(o),t.commit()}catch(e){this._cancelBackendTransaction(t,e)}}.bind(this)),t()}.bind(this))},_getDuplicate:function(e){var t,i=this._clientDataStore.isDataStoreFiltered();i&&(t=this._clientDataStore.getLastKnownFilterCriteria(),this._clientDataStore.clearFilter());var n=this._getDuplicateHelper(e);return i&&this._clientDataStore.filter(t),n},_getDuplicateHelper:function(e){splitResponse=e.value.split("\n"),splitResponse=splitResponse.filter((function(e){return""!==e}));var t=this._clientDataStore.dataSize.rows.count-splitResponse.length;if(t<0||0===splitResponse.length)return null;var i,n,o=this._clientDataStore.getLocalCellData(t,0).positionInBatch;if(splitResponse.length>1&&"start"!==o||1===splitResponse.length&&"end"===o)return null;for(var r=0;r<splitResponse.length;r++){i=t<0?"":this._clientDataStore.getCommand(t+r),n=splitResponse[r].trim();var a=r!==splitResponse.length-1&&"end"===this._clientDataStore.getPositionInBatch(t+r);if(i!==n||a)return null}return this._clientDataStore.getItem(t)},_preprocessCommand:function(e){var t=[],i=e.value.split("\n"),n=(i=i.filter((function(e){return""!==e}))).length;return i.forEach((function(i,o){let r=Object.assign({},e);if(r.value=i.trim(),r.searchValue=">>"+i,r.repeat=1,r.chTimestamp=r.isTimestamp?1:Math.floor((new Date).getTime()/1e3),r.isTimestamp&&(r.isError=!1),n>1){var a;switch(o){case 0:a="start";break;case n-1:a="end",r.isError=!1;break;default:r.isError=!1,a="middle"}r.positionInBatch=a}else r.positionInBatch="";t.push(r)})),t},isTimestamp:function(e){return!(e.chTimestamp&&1!==e.chTimestamp)||/^%--.*[AP]M\s--%$/i.test(e.value)},generateTimestamp:function(e){const t=`%-- ${e.toLocaleDateString()} ${e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} --%`;return{id:s.generateUuid(),type:"request",value:t,visible:!0,historyVisible:!0,isTimestamp:!0}},insertTimestampAtEnd:function(){const e=new Date;let t=this.generateTimestamp(e),i=this._clientDataStore.dataSize.rows.count;if(i>0){let e=this._clientDataStore.getItem(i-1);return this.isTimestamp(e)?this.updateTimeStamp(e,t.value):this.insertItem(t)}return this.insertItem(t)},insertTimestampAtIndex:function(e,t){let i=this.generateTimestamp(new Date(1e3*e));this.insertTimestampToClientStore(i,t),this.insertTimestampToBackendStore(i,t)},insertTimestampToClientStore:function(e,t){let i=a.range().setRows(t,t).setColumns(0,1/0);this._clientDataStore.add(i,[[e]])},insertTimestampToBackendStore:function(e,t){return new Promise(function(i,n){this.backendStoreReady().then(function(){let i,n=this._backendStore;try{i=n.model.beginRevertibleTransaction();let o=this._getCommandRepository(n),r=new commandhistory.datamodel.CommandRecord(n.model);r.errorText=e.errorText||"",r.value=e.value,e.uuid=r.uuid,r.id=e.id,r.positionInBatch=e.positionInBatch||"",r.repeat=e.repeat,r.chTimestamp=e.chTimestamp,o.records.insert(r,t),i.commit()}catch(e){this._cancelBackendTransaction(i,e)}}.bind(this)),i()}.bind(this))},insertItemToExecutionServiceStore:function(e,t){e.type="request",e.historyVisible=t||!0,e.visible=!1,e._fromCommandHistoryDataService=!0,this._executionServiceStore.newItem(e)},removeItem:function(e){return this.removeItemFromClientStore(e),this.removeItemFromExecutionServiceStore(e),this.removeItemFromBackendStore(e)},removeItemFromClientStore:function(e){var t=this._clientDataStore.getItemByUUId(e.uuid),i=a.range().setRows(t.rowIndex-1,t.rowIndex-1).setColumns(0,1/0);this._clientDataStore.remove(i)},removeItemFromBackendStore:function(e){return new Promise(function(t,i){this.backendStoreReady().then(function(){var i,n=this._backendStore;try{i=n.model.beginRevertibleTransaction();var o=n.model.findElement(e.uuid);o&&o.destroy(),i.commit()}catch(e){this._cancelBackendTransaction(i,e)}t()}.bind(this))}.bind(this))},removeMultipleItemsFromBackendStore:function(e){return new Promise(function(t,i){this.backendStoreReady().then(function(){var i,n=this._backendStore;try{i=n.model.beginRevertibleTransaction(),e.forEach((function(e){var t=n.model.findElement(e.uuid);t&&t.destroy()})),i.commit()}catch(e){this._cancelBackendTransaction(i,e)}t()}.bind(this))}.bind(this))},removeItemFromExecutionServiceStore:function(e){var t=this._executionServiceStore.items.find((function(t){return t.uuid===e.uuid}));t&&this._executionServiceStore.setValue(t,"historyVisible",!1)},updateItem:function(e,t,i,n){var o;return u.includes(t)&&(this.updateItemInClientStore(e,t,i,n),o=this.updateItemInBackendStore(e,t,i,n)),o||Promise.resolve()},updateTimeStamp:function(e,t){return this.updateItemInClientStore(e,"value",e.value,t),this.updateItemInBackendStore(e,"value",e.value,t)||Promise.resolve()},updateItemInClientStore:function(e,t,i,n){var o,r=this._clientDataStore.isDataStoreFiltered();r&&(o=this._clientDataStore.getLastKnownFilterCriteria(),this._clientDataStore.clearFilter());var s=e.uuid?this._clientDataStore.getItemByUUId(e.uuid):this._clientDataStore.getItemById(e.id);if(s){s.item[t]=n;var l=a.range().setRows(s.rowIndex-1,s.rowIndex-1).setColumns(0,0);this._clientDataStore.update(l,[[s.item]])}r&&this._clientDataStore.filter(o)},updateItemInBackendStore:function(e,t,i,n){return new Promise(function(i,o){this.backendStoreReady().then(function(){var o,r=this._backendStore;try{var a;if(o=r.model.beginRevertibleTransaction(),e.uuid)a=r.model.findElement(e.uuid);else this._getCommandRepository(r).records.some((function(t){if(t.id===e.id)return a=t,!0}));a&&(a[t]=n),o.commit()}catch(e){this._cancelBackendTransaction(o,e)}i()}.bind(this))}.bind(this))},updateItemInExecutionServiceStore:function(e,t,i,n){var o,r;this._executionServiceStore.items.some((function(t,i){if(e.id===t.id)return r=i,(o=t).value=n,!0})),this._executionServiceStore.items[r]=o},resetStore:function(){var e;return this.resetClientStore(),e=this.resetBackendStore(),this.resetExecutionServiceStore(),e},resetClientStore:function(){this._clientDataStore.clearStore()},resetBackendStore:function(){return new Promise(function(e,t){this.backendStoreReady().then(function(){var t,i=this._backendStore;try{t=i.model.beginRevertibleTransaction(),i.model.topLevelElements.forEach(function(e){e.records.getAllValues().forEach((function(e){e.destroy()}))}.bind(this)),t.commit()}catch(e){this._cancelBackendTransaction(t,e)}e()}.bind(this))}.bind(this))},resetExecutionServiceStore:function(){var e,t={query:{type:"request",historyVisible:!0},onComplete:function(t){e=t}};this._executionService.historyStore.fetch(t),e&&e.forEach(function(e){this._executionService.historyStore.setValue(e,"historyVisible",!1)}.bind(this))},_cancelBackendTransaction:function(e,t){r.error("Failed to commit to command history backend"),r.error(t),e.cancel()},destroy:function(){this._connectors.forEach((function(e){t.disconnect(e)}))}});return{getInstance:function(e){return null===d&&(d=new h(e)),d}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(516),i(517),i(219),i(209),i(7804)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){i=i.default,n=n.default;var s=new mf.zero.Model;new a(s);var l=!1,c=new i({inChannel:"/history_datamodel/channel",outChannel:"/history_datamodel/channel"});return{init:function(){var e=new t;return o.subscribe("/commandhistory/dataservice/out",(function(t){l||(l=!0,r.log("Command History requesting model from backend"),c.start().then((function(){const e=new n(s,c);return e.fetchModelWithDataDefinition().then(()=>(e.start(),{model:s,sync:e}))})).then((function(t){e.resolve(t)})))})).then(()=>{o.publish("/commandhistory/dataservice/in",{request:"start"})},()=>{r.log("Command History could not connect to backend")}),e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(345)],o=i.dj.d(n,(function(e,t){return e([t=t.default],{constructor:function(e){this.inherited(arguments),this.repositoryAddedFlag=!1,this.model=e,this.model.addShallowListener(this),this.IsObserver=!1,this.isValidator=!0},destroy:function(){this.model.removeListener(this)},validateOnCommit:function(e){var t=!1;return e.processAdded((function(){this.repositoryAddedFlag?t=!0:this.repositoryAddedFlag=!0}),["commandhistory.datamodel.CommandRepository"]),!t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7806)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.executionservice"]}},createInstance:function(e){return new i(e)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){this._executionService=e},shouldPreventRequest:function(){return this._executionService.executionState===this._executionService.EXECUTION_STATES.INPUT}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7808)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document"]}},createInstance:function(e){return new i(e)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){this._document=e},doDefaultTab:function(){this._document.insertTab()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2543)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.settings.service","rtc.autocompletions.plugin"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7811)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["cw.initializer","rtc.executionservice","cw.commandwindowpane"]}},createInstance:function(e,t,n){return new i(e,t,n)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(228)],o=i.dj.d(n,(function(e,t,i,n){return e([],{_COMMAND_WINDOW_STATE_TEST_TAG:"data-commandwindowstatus",constructor:function(e,n,o){this._commandWindowInitializer=e,this._executionService=n,this._currentState=null,this._aspectHandles=[],this._commandWindowPane=o,this._aspectHandles.push(i.after(e,"onInitialize",t.hitch(this,"_handleCommandWindowInitialization")))},_handleCommandWindowInitialization:function(){this._aspectHandles.push(i.after(this._executionService,"onExecutionStateChange",t.hitch(this,"_handleExecutionStateChange"),!0)),this._aspectHandles.push(i.after(this,"onCommandWindowStateChange",t.hitch(this,"_handleReadyBusyStates"),!0)),this._currentState=this._executionService.executionState,this._updateDataTestId(this._currentState)},_handleExecutionStateChange:function(e){this._currentState!==e&&(this.onCommandWindowStateChange(e),this._currentState=e,this._updateDataTestId(this._currentState))},onCommandWindowStateChange:function(e){},_handleReadyBusyStates:function(e){e===this._executionService.EXECUTION_STATES.BUSY?this.onCommandWindowBusy(e):this.onCommandWindowReady(e)},onCommandWindowBusy:function(e){},onCommandWindowReady:function(e){},setCommandWindowState:function(e){this._handleExecutionStateChange(e)},getCommandWindowState:function(){return this._currentState},_updateDataTestId:function(e){n.set(this._commandWindowPane,this._COMMAND_WINDOW_STATE_TEST_TAG,e)},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2544)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor"]}},createInstance:function(e){return new i(e)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7814)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["cw.initializer","rtc.actionservice","rtc.contextmenu.model","rtc.contextmenu.documentcontributor"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(1226),i(207),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{_DEFAULT_CONTEXT_MENU_GROUP:"Default",_COPY_PASTE_GROUP:"copyPaste",_SELECT_ALL_ACTION:"rtc_select_all",constructor:function(e,n,o,r){this._actionService=n,this._baseContextMenuModel=o,this._contextMenuContributor=r,this.own(i.after(e,"onInitialize",t.hitch(this,"_handleCommandWindowInitialization")))},_handleCommandWindowInitialization:function(){this._baseContextMenuModel.hideGroup(this._COPY_PASTE_GROUP),this._setContextMenuGroup(r.FIND_STRING.FIND_ACTION,this._DEFAULT_CONTEXT_MENU_GROUP,n.findLabel),this._setContextMenuGroup(this._SELECT_ALL_ACTION,this._DEFAULT_CONTEXT_MENU_GROUP,n.selectAllLabel)},_setContextMenuGroup:function(e,t,i){this._actionService.updateAction(e,{text:i}),this._contextMenuContributor.addActionToMap(t,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7816)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.document","rtc.cursor","rtc.actionservice","rtc.executionservice","rtc.contextmenu.documentcontributor"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7817),i(1968),i(251)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i,o,r){o.updateAction(n.EVALUATE_SELECTION.EVALUATE_SELECTION_ACTION,{text:t.evaluateSelectionLabel})},getSelection:function(){var e="";return this._cursor.hasSelection()&&(e=this._cursor.selectedText()),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7818),i(7819),i(7820),i(7821)],o=i.dj.d(n,(function(e,t){return t(e,"commandwindow/resources/commandwindow/nls/actions",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={evaluateSelectionLabel:"選択の実行",evaluateSelectionShortcut:"F9"}},function(e,t,i){e.exports={evaluateSelectionLabel:"선택 항목 실행",evaluateSelectionShortcut:"F9"}},function(e,t,i){e.exports={evaluateSelectionLabel:"执行所选内容",evaluateSelectionShortcut:"F9"}},function(e,t,i){e.exports={root:{evaluateSelectionLabel:"Evaluate Selection",evaluateSelectionShortcut:"F9"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7823)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","rtc.executionservice"]}},createInstance:function(e,t){return new n(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(1008)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(e,i){this._executionService=i;var o=[{id:n.INTERRUPT_COMMAND,enabled:!0,key:"ctrl_c",platformKey:{mac:"meta_."},callback:t.hitch(this,"_handleInterruptCommandWindow")}];e.loadActions(o)},_handleInterruptCommandWindow:function(){this._executionService.interrupt()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1209),i(803),i(547),i(314),i(1227)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{constructor:function(e){e.registerNodeConverter(o,t.hitch(this,"_convertToText"))},_convertToText:function(e){var t=new i;new n(t).traverseSelection(e);var o=t.getText(),s=a.stripPrompts(o);return[{flavor:r.PROMPTLESS_STRING,content:s}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7826)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor"]}},createInstance:function(e){return new i(e)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(314),i(2544)],o=i.dj.d(n,(function(e,t,i){return e(i,{getType:function(){return t.UNICODE_STRING},priority:function(){return 71}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7828)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internaldocument","rtc.cursor","rtc.actionservice","rtc.executionservice","rtc.contextualselection.utility","rtc.contextmenu.documentcontributor","rtc.view","rtc.linenumberservice","matlab.languageanalysis.identifierservice","rtc.backingstore"]}},createInstance:function(e,t,n,o,r,a,s,l,c,d){return new i(e,t,n,o,r,a,s,l,c,d)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1969)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},shouldLookUpIdentifierData:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7830)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","cw.commandwindowstatehandler","rtc.cursor","rtc.executionservice","cw.core.promptinput"]}},createInstance:function(e,t,i,o,r){return new n(e,t,i,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(1008),i(1227)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(e,i,o,r,a){this._cursor=o,this._executionService=r,this._promptInput=a,this._commandWindowStateHandler=i;var s=[{id:n.EXECUTE_COMMAND,key:"enter",enabled:!0,callback:t.hitch(this,"_executeCommand")}];e.loadActions(s)},_executeCommand:function(){var e="";return this._cursor.hasSelection()?e=this._cursor.selectedText():(e=this._promptInput.getPromptInput(),this._promptInput.clearPromptInput()),this._promptInput.moveToPromptInputEnd(),this._executionService.authoringEval(e,this._executionService.streamingEval),!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7832)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["cw.initializer","cw.commandwindowpane","rtc.featureinterface","rtc.hyperlinkservice","rtc.domnode.external","rtc.focusservice","rtc.bannermanager"]}},createInstance:function(e,t,n,o,r,a,s){return new i(e,t,n,o,r,a,s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(214),i(225),i(1226),i(263),i(207),i(827)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(s,{_GETTING_STARTED_DOC_ID:"matlab_getting_started",_GETTING_STARTED_SELECTOR_STRING:"#gettingStartedBannerHyperLink",constructor:function(e,t,o,r,s,l,c){this._commandWindowInitializer=e,this._commandWindowPane=t,this._featureInterface=o,this._hyperlinkService=r,this._rtcDomNodeExternal=s,this._settingsService=a,this._focusService=l,this._bannerManager=c,this._aspectHandles=[],this._settingsService.listenTo(["matlab","commandwindow"],"GettingStarted",i.hitch(this,(function(e){this._handleSettingsUpdated(e.newValue)}))),this._settingsService._listenToCallback=i.hitch(this,(function(e){this._handleSettingsUpdated(e.newValue)})),this.own(n.after(this._commandWindowInitializer,"onInitialize",i.hitch(this,"_queryPreferencesOnStartup")))},_createBanner:function(){this._banner=new l({bannerText:r.gettingStartedText,closable:!0,parent:this._bannerManager.getTopBannerContainer(),type:"top",resizer:this._featureInterface.resize,focusService:this._focusService,sibling:this._rtcDomNodeExternal}),this._bannerManager.registerBanner(this._banner,this._rtcDomNodeExternal),this._aspectHandles.push(n.after(this._commandWindowPane,"onResize",i.hitch(this,"_resize"))),this._aspectHandles.push(n.after(this._banner,"closeBanner",i.hitch(this,"_disablePreference"))),this._attachOnClickCallbackToHyperlink(this._GETTING_STARTED_DOC_ID,this._GETTING_STARTED_SELECTOR_STRING)},_resize:function(){this._banner.resize()},_queryPreferencesOnStartup:function(){this._settingsService.getSetting(["matlab","commandwindow"],"GettingStarted").then(i.hitch(this,(function(e){this._handleSettingsUpdated(e.value)})))},_disablePreference:function(){this._settingsService.setSetting(["matlab","commandwindow"],"GettingStarted",!1)},_handleSettingsUpdated:function(e){e&&!this._banner?this._createBanner():!e&&this._banner&&this._removeBanner()},_attachOnClickCallbackToHyperlink:function(e,n){var r=o(n)[0];r&&(r.onclick=i.hitch(this,(function(i){this._onHyperlinkClick(e),t.stop(i)})))},_onHyperlinkClick:function(e){this._hyperlinkService.openUrl("matlab:helpview(fullfile(docroot,'matlab','helptargets.map'), '"+e+"')")},_removeBanner:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[],this._banner.closeBanner(),this._bannerManager.deregisterBanner(this._banner,this._rtcDomNodeExternal),this._banner=null},destroy:function(){this.inherited(arguments),this._banner&&this._removeBanner()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7834)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["cw.commandwindowpane","cw.core.promptinput"]}},createInstance:function(e,t){return new i(e,t)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(221),i(223),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e,i){this._targetNode=e,this._promptInput=i,this._eventHandlerList=[];var n=t.hitch(this,"_handleKeyDown");this.attachListener("keydown",n)},attachListener:function(e,t){var i={event:e,handler:t};return this._targetNode.addEventListener(i.event,i.handler,!0),this._eventHandlerList.push(i),i},removeListener:function(e){this._eventHandlerList.indexOf(e)>-1?(this._targetNode.removeEventListener(e.event,e.handler,!0),this._eventHandlerList.splice(this._eventHandlerList.indexOf(e),1)):o.error("RemoveListener Failed: Event Listener does not exist")},_handleKeyDown:function(e){return this._willEventUnaffectCursor(e)||this._promptInput.updateCursorToPromptInput(),!1},_willEventUnaffectCursor:function(e){return this._checkCopyShortcuts(e)||e.keyCode>=13&&e.keyCode<=20||224===e.keyCode||91===e.keyCode||93===e.keyCode||e.keyCode>=33&&e.keyCode<=37||e.keyCode===n.RIGHT_ARROW||e.keyCode===n.INSERT||e.keyCode>=112&&e.keyCode<=123||(e.ctrlKey||e.metaKey)&&!(86===e.keyCode)||e.shiftKey&&(e.keyCode===n.UP_ARROW||e.keyCode===n.DOWN_ARROW)},_checkCopyShortcuts:function(e){return i("mac")?e.metaKey&&67===e.keyCode:e.ctrlKey&&67===e.keyCode||e.shiftKey&&e.keyCode===n.INSERT},destroy:function(){this._eventHandlerList.forEach(this.removeListener,this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7836)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.actionservice","cw.core.promptinput","rtc.keyhandler"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1008)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,t,n){this._promptInput=t,this._rtcKeyHandler=n;var o=[{id:i.CLEAR_PROMPT_INPUT,key:"escape",enabled:!0,callback:this._clearPromptInput.bind(this)},{id:i.HOME_NAVIGATION,key:"home",platformKey:{mac:"ctrl_a"},enabled:!0,callback:this._moveToPromptStartCallback.bind(this)},{id:i.HOME_SELECTION_NAVIGATION,key:"shift_home",platformKey:{mac:"ctrl_shift_a"},enabled:!0,callback:this._moveToPromptStartWithSelectionCallback.bind(this)}];e.loadActions(o),this._addOtherKeyBindings()},_clearPromptInput:function(){return this._promptInput.clearPromptInput(),!0},_moveToPromptStartCallback:function(){return this._moveToPromptStartIfApplicable(!1)},_moveToPromptStartWithSelectionCallback:function(){return this._moveToPromptStartIfApplicable(!0)},_moveToPromptStartIfApplicable:function(e){return 0===this._promptInput.isCursorOnPromptInput()&&(this._promptInput.moveToPromptInputStart(e),!0)},_addOtherKeyBindings:function(){var e=i.HOME_NAVIGATION,t=i.HOME_SELECTION_NAVIGATION;this._rtcKeyHandler.addBinding({platformKey:{mac:"meta_left"}},e),this._rtcKeyHandler.addBinding({platformKey:{mac:"meta_shift_left"}},t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7838)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["cw.core.promptinput","rtc.document"]}},createInstance:function(e,t){return new i(e,t)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(810)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t){this._promptInput=e,this._document=t},getCode:function(){return this._promptInput.getPromptInput()},getAbsolutePositionInCode:function(e){var t=this._document.getCodeText(),n=this._promptInput.getPromptInputLineColumn(),o=i.getOffsetFromLine(t,n.line-1)[0]+n.column-1;return i.getOffsetFromLine(t,e.line-1)[0]+e.column-1-o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7840)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["matlab.lexer.statemanager","cw.core.promptinput","cw.commandwindowstatehandler","rtc.executionservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e,n,o,r){this._matlabStateManager=e,this._promptInput=n,this._commandWindowStateHandler=o,this._executionService=r,this._aspectHandle=i.after(this._commandWindowStateHandler,"onCommandWindowReady",t.hitch(this,"_resetTokenizer"),!0)},_resetTokenizer:function(e){if(e!==this._executionService.EXECUTION_STATES.COMPLETING_BLOCK){var t=this._promptInput.getPromptInputLineColumn();this._matlabStateManager.resetTokenStateForLine(t.line-1)}},destroy:function(){this._aspectHandle.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7842)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["cw.initializer","rtc.undoredo.controller","rtc.motwactionservice","rtc.actionservice","rtc.executionservice"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(2542),i(251)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e,n,o,r,a){this._rtcUndoRedoController=n,this._motwActionService=o,this._rtcActionService=r,this._aspectHandles=[],this._aspectHandles.push(i.after(a,"onAuthoringEval",t.hitch(this,"_handleClearUndoRedoStack"))),this._aspectHandles.push(i.after(e,"onInitialize",t.hitch(this,"_handleClearUndoRedoStack"))),this._aspectHandles.push(i.after(e,"onReset",t.hitch(this,"_handleClearUndoRedoStack"))),this._aspectHandles.push(i.after(n,"onUndoRedoStackUpdated",t.hitch(this,"_handleUndoRedoStackUpdate"),!0)),this._updateMotwUndoRedoActions()},_updateMotwUndoRedoActions:function(){this._motwActionService.updateAction(n.UNDO_CMD,{callback:t.hitch(this._rtcActionService,"executeAction",o.UNDO_REDO.UNDO_ACTION)}),this._motwActionService.updateAction(n.REDO_CMD,{callback:t.hitch(this._rtcActionService,"executeAction",o.UNDO_REDO.REDO_ACTION)})},_handleClearUndoRedoStack:function(){this._rtcUndoRedoController.clear()},_handleUndoRedoStackUpdate:function(e){this._motwActionService.updateAction(n.UNDO_CMD,{enabled:e.isUndoable}),this._motwActionService.updateAction(n.REDO_CMD,{enabled:e.isRedoable})},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7844)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(263),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){this._view=e,this._settingsService=n,this._settingsService.listenTo(["matlab","commandwindow"],"WrapLines",t.hitch(this,(function(e){this._handleSettingsUpdated(e.newValue)}))),this._settingsService._listenToCallback=t.hitch(this,(function(e){this._handleSettingsUpdated(e.newValue)})),this._settingsService.getSetting(["matlab","commandwindow"],"WrapLines").then(t.hitch(this,(function(e){this._handleSettingsUpdated(e.value)})))},_handleSettingsUpdated:function(e){e?this._enableWrapLines():this._disableWrapLines()},_enableWrapLines:function(){i.add(this._view.getDomtarget(),"wrappable")},_disableWrapLines:function(){i.remove(this._view.getDomtarget(),"wrappable")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7846)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.view.decoration.viewmodel"]}},createInstance:function(){return new i(...arguments)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1010),i(391),i(362)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._decorationViewModel=e},getApplicableNodeClass:function(){return t},createDomNode:function(e,t){return this.layout(e,t)},layout:function(e,t){var i={class:"promptNode"+(t.active?" active":"")};i.textContent=t.text;var n=e.layoutInto(t,"span",i);return n.hasChildNodes()||this._render(e,t,n),n},refresh:function(e,t,i,n){return this._render(e,t,n),n},_render:function(e,t,i){var o=t.getText(),r=document.createElement("span"),a=this._decorationViewModel.getDecoration(t);n.createViewForTextNode(o,a,r,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(7848),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["cw.commandwindowpane","rtc.document","rtc.view"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(207)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,n,o){this._view=o,this._rtcDocument=n,this.own(i.after(e,"onResize",t.hitch(this,"scrollToBottom")));this._view.getDomtarget().classList.add("commandWindowSelection")},scrollToBottom:function(){var e=this._rtcDocument.getEndOfDocumentLineColumn();this._view.scrollLineColumnIntoView(e.line,e.column)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7850)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.domnode","cw.core.commandwindowhistory","cw.commandwindowstatehandler","rtc.executionservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(211),i(207),i(951)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{_MAX_OUTPUT_CHARS:1e3,constructor:function(e,t,i,n){this._commandWindowHistory=t,this._commandWindowStateHandler=i,this._executionService=n,this._domNode=e,this._handlers=[],this._liveOutputRegion=null,this._enableScreenReaderAccessibility()},_createLiveOutputRegion:function(){this._liveOutputRegion||(this._liveOutputRegion=n.create("div",{class:"liveOutputRegion","aria-live":"polite","aria-atomic":!1}),n.place(this._liveOutputRegion,this._domNode))},_destroyLiveOutputRegion:function(){this._liveOutputRegion&&(n.destroy(this._liveOutputRegion),this._liveOutputRegion=null)},toggleScreenReaderAccessibility:function(e){e?this._enableScreenReaderAccessibility():this._disableScreenReaderAccessibility()},_enableScreenReaderAccessibility:function(){this._createLiveOutputRegion(),this._handlers.push(i.after(this._commandWindowHistory,"addOutputHistory",t.hitch(this,this._handleAfterAddOutputHistory),!0)),this._handlers.push(i.after(this._commandWindowStateHandler,"onCommandWindowStateChange",t.hitch(this,this._handleAfterOnCommandWindowStateChange))),this._handlers.push(i.after(this._executionService,"onTypoCorrection",t.hitch(this,this._updateLiveRegion),!0))},_disableScreenReaderAccessibility:function(){this._destroyLiveOutputRegion(),this._destroyHandlers()},_handleAfterAddOutputHistory:function(e){var t=e.value;t=t.substring(0,this._MAX_OUTPUT_CHARS),this._updateLiveRegion(t)},_updateLiveRegion:function(e){n.place(this._wrapOutput(e),this._liveOutputRegion)},_wrapOutput:function(e){var t=n.create("div"),i=this._commandWindowHistory.convertTextToHtml(e).replace(r.HYPERLINK_ESCAPE_REGEXP,(function(e){return"link "+e+" out of link"}));return t.innerHTML=i,t},_handleAfterOnCommandWindowStateChange:function(){this._commandWindowStateHandler.getCommandWindowState()===this._executionService.EXECUTION_STATES.READY&&n.empty(this._liveOutputRegion)},getLiveOutputRegion:function(){return this._liveOutputRegion},_destroyHandlers:function(){this._handlers.forEach((function(e){e.remove()})),this._handlers=[]},destroy:function(){this._disableScreenReaderAccessibility(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7852)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.accessibility.screenreader"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(211),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){e.setTitleLabel("Command Window")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7854)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["cw.core.commandwindowhistory"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(263)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._commandWindowHistory=e,this._settingsService=i,this._settingsService.listenTo(["matlab","commandwindow"],"NumberOfLinesInScrollBuffer",function(e){this._handleSettingsUpdated(e.newValue)}.bind(this)),this._settingsService._listenToCallback=function(e){this._handleSettingsUpdated(e.newValue)}.bind(this),this._settingsService.getSetting(["matlab","commandwindow"],"NumberOfLinesInScrollBuffer").then(function(e){this._handleSettingsUpdated(e.value)}.bind(this))},_handleSettingsUpdated:function(e){this._commandWindowHistory.updateScrollBufferSize(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(7856)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{createInstance:function(){return new n}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(447),i(225),i(209),i(263),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{constructor:function(){this._ERROR_MESSAGE_CSS="errorMessage",this._WARNING_MESSAGE_CSS="warningMessage",this._HYPERLINK_CSS="hyperlinkNode span",this._settingsService=r,this._style=document.createElement("style"),document.head.appendChild(this._style),this._settingsService.listenTo(["matlab","colors","commandwindow"],"ErrorColor",function(e){this._handleColorSettingUpdate(this._ERROR_MESSAGE_CSS,e.newValue)}.bind(this)),this._settingsService.listenTo(["matlab","colors","commandwindow"],"WarningColor",function(e){this._handleColorSettingUpdate(this._WARNING_MESSAGE_CSS,e.newValue)}.bind(this)),this._settingsService.listenTo(["matlab","colors","commandwindow"],"HyperlinkColor",function(e){this._handleColorSettingUpdate(this._HYPERLINK_CSS,e.newValue)}.bind(this)),this._settingsService._listenToCallback=function(e){this._loadColorSettings(e.cssClass,e.newValue)}.bind(this),this._settingsService.getSetting(["matlab","colors","commandwindow"],"ErrorColor").then(function(e){this._loadColorSettings(this._ERROR_MESSAGE_CSS,e.value)}.bind(this)),this._settingsService.getSetting(["matlab","colors","commandwindow"],"WarningColor").then(function(e){this._loadColorSettings(this._WARNING_MESSAGE_CSS,e.value)}.bind(this)),this._settingsService.getSetting(["matlab","colors","commandwindow"],"HyperlinkColor").then(function(e){this._loadColorSettings(this._HYPERLINK_CSS,e.value)}.bind(this))},getCssForType:function(e){return"error"===e?this._ERROR_MESSAGE_CSS:"warning"===e?this._WARNING_MESSAGE_CSS:"hyperlink"===e?this._HYPERLINK_CSS:(o.error("Invalid output type"),"")},_handleColorSettingUpdate:function(e,t){for(var n=this._style.sheet.rules,o=0;o<this._style.sheet.rules.length;++o)n[o].selectorText==="."+e&&(n[o].style.color=new i(t))},_loadColorSettings:function(e,t){this._style.sheet.insertRule("."+e+" { color: "+new i(t)+"; }")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7858)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.executionservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(263)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this._executionDataService=e,this._settingsService=i,this._settingsService.listenTo(["matlab","commandwindow"],"ShowTypoSuggestions",function(e){this._handleSettingsUpdated(e.newValue)}.bind(this)),this._settingsService._listenToCallback=function(e){this._handleSettingsUpdated(e.newValue)}.bind(this),this._settingsService.getSetting(["matlab","commandwindow"],"ShowTypoSuggestions").then(function(e){this._handleSettingsUpdated(e.value)}.bind(this))},_handleSettingsUpdated:function(e){this._executionDataService.updateShowTypoCorrectionsSetting(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7860)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["cw.commandwindowpane","rtc.view"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(263),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_timeout:500,constructor:function(e,t){this._rtcView=t,this.own(i.after(e,"onResize",this._handleResize.bind(this)))},_handleResize:function(){this._timer&&clearTimeout(this._timer),this._timer=setTimeout(this._setCommandWindowSize.bind(this),this._timeout)},_setCommandWindowSize:function(){var e=this._rtcView.getClientHeight(),t=this._rtcView.getClientWidth(),i=this._rtcView.getLastVisibleLineNumber(),o=this._rtcView.getLineHeight(i),r=this._rtcView.getCharacterWidthForLine(i),a=parseInt(e/o),s=parseInt(t/r);n.setSettingValue("matlab.commandwindow.WindowSize",[s,a],2)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(7862)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.focusservice","rtc.document","rtc.executionservice","rtc.keyhandler","cw.core.promptinput"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(219),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{_channel:"/commandwindow/processKey",constructor:function(e,n,r,a,s){this._focusService=e,this._document=n,this._executionService=r,this._currentState=null,this._keyHandler=a,this._promptInput=s,i.subscribe(this._channel,"_handleProcessKeyMessage",this),this.own(o.after(this._executionService,"onExecutionStateChange",t.hitch(this,"_handleExecutionStateChange"),!0))},_handleProcessKeyMessage:function(e){const t=e.data[0],i=e.data[1],n=e.data[2],o=t.includes("ctrl"),r=t.includes("shift"),a=t.includes("meta"),s=new KeyboardEvent("keydown",{isTrusted:!0,key:i,keyCode:n,code:n,ctrlKey:o,shiftKey:r,metaKey:a});this._processKey(s)},_processKey:function(e){if("pause"!==this._currentState){const t=this._keyHandler.checkForActionAndUpdateMultistrokeState(e);this._promptInput.updateCursorToPromptInput(),t?this._keyHandler.processKey(e):1===e.key.length&&(this._focusService.setFocus(),e.shiftKey?this._document.insertTextAtCurrentPosition(e.key.toUpperCase()):this._document.insertTextAtCurrentPosition(e.key))}else this._executionService.publishPauseMessage()},_handleExecutionStateChange:function(e){this._currentState!==e&&(this._currentState=e)},destroy:function(){i.unsubscribe(this._channel,"_constructKeyEvent",this),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){e.exports={root:{RunTests:{Label:"Run Tests",Description:"Run all tests in file"},RunCurrentTest:{Label:"Run Current\nTest",Description:"Run current or selected test procedures"},NoTestsSelected:"Cursor is not inside of test procedure.",TestOptions:"Test Options",ConfigureRunTests:{Label:"Customize Test Run",Description:"Customize Test execution, Output and Logging options"},ClearOutput:{Label:"Clear Output Before Running Tests",Description:"Clears Command Window before running tests"},Strict:{Label:"Strict",Description:"Applies strict checks while running tests"},Debug:{Label:"Debug",Description:"Applies debugging capabilities while running tests"},Parallel:{Label:"Parallel",Description:"Uses parallel pool to run tests"},OutputDetail:"Output Detail",LoggingLevel:"Logging Level",Verbosity:{Default:"Default",None:"0: None",Terse:"1: Terse",Concise:"2: Concise",Detailed:"3: Detailed",Verbose:"4: Verbose"},ErrorHandlingTitle:"Error Handling",TestClass:{Label:"Test Class",Description:"Create a new test class"}}}},function(e,t,i){var n,o;n=[i(204),i(2546)],o=i.dj.d(n,(function(e,t){var i;return i={FOLDER_DIALOG:t.FOLDER_DIALOG,FILE_DIALOG:t.FILE_DIALOG,DEFAULT_INPUT_LABEL:["Folder Name","File Name"],DEFAULT_START_VALUE:["",".m"],createForm:function(e){if(null===(e=e||{}).dialogType||!e.fileLocation||!e.okAction||!e.cancelAction)throw new Error("One or more required Parameters (dialogType, fileLocation, okAction, cancelAction) for creating form not supplied");var n=e.inputLabel?e.inputLabel:i.DEFAULT_INPUT_LABEL[e.dialogType],o=void 0!==e.startValue?e.startValue:i.DEFAULT_START_VALUE[e.dialogType],r=0;return null!==e.numSelectedChars&&"number"==typeof e.numSelectedChars&&(r=e.numSelectedChars),new t({dialogType:e.dialogType,inputLabel:n,okAction:e.okAction,cancelAction:e.cancelAction,fileDataService:e.fileDataService?e.fileDataService:null,startValue:o,selected:r,location:e.fileLocation})}}}),e,t),e.exports=o},function(e,t){e.exports='<div class="fileFolderDialog" data-dojo-attach-event="onkeyup:onTextKeyup" data-testid="newFileFolderDialog">\n\n <div class="input-row">\n <label data-dojo-attach-point="nameInputLabel" for="name"></label>\n <input tabindex="0" data-dojo-attach-point="inputBox"\n data-dojo-type="mw-form/TextField"\n data-dojo-props="width:260"\n data-dojo-attach-event="typing:onTyping"\n id="name" data-testid="newFileFolderInput"/>\n </div>\n\n <div class="actionButton"\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'${_localization.cancel}\'"\n data-dojo-attach-point="cancelButton"\n data-dojo-attach-event="click:_doCancelAction"\n\t\t\t\tdata-testid="newFileFolderCancelButton">\n </div>\n\n <div class="actionButton"\n data-dojo-type="mw-form/PushButton" style="padding: 2px 34px"\n data-dojo-props="text: \'${_localization.ok}\'"\n data-dojo-attach-point="okButton"\n data-dojo-attach-event="click:_doOkAction"\n\t\t\t\tdata-testid="newFileFolderOkButton">\n </div>\n\n</div>\n'},function(e,t,i){e.exports={root:{ok:"OK",save:"Save",warningTitle:"MATLAB will not be able to run the file _file_ unless you change its name.",warningDesc:"Specify a new file name below:",cancel:"Cancel",switchPanes:"Switch Windows",close:"Close",continueMsg:"Start new session",exit:"Exit",maximize:"Maximize",minimize:"Minimize",restore:"Restore",gdsNotificationsFileChangedTitle:"File has changed",gdsNotificationsFileChangedLabel:"Get the latest version of this file (you may overwrite any edits you’ve made)<br><br>${filename}"}}},function(e,t){e.exports='<div class="saveAsDialog" data-dojo-attach-event="onkeyup:onTextKeyup" data-testid="saveAsDialog">\n <div class="input-row">\n <label data-dojo-attach-point=\'nameInputLabel\' for="name"></label>\n <input tabindex="0" data-dojo-attach-point=\'inputBox\'\n data-dojo-attach-event="typing:updateButtons"\n data-dojo-props="width:260"\n data-dojo-type="mw-form/TextField" id="name"/>\n </div>\n \x3c!-- div class="input-row">\n <label dojoAttachPoint=\'typeLabel\' for="typeSelection"></label>\n <div dojoAttachPoint=\'saveAsOptions\' id=\'typeSelection\' ></div>\n </div--\x3e\n <div class="saveAsActionContainer">\n <div class="saveAsButton" style="padding: 2px 34px"\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text:\'${_localization.ok}\'"\n data-dojo-attach-event="click:okAction"\n data-dojo-attach-point="okButton"\n data-testId="saveAsOkButton"></div>\n <div class="saveAsButton"\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'${_localization.cancel}\'"\n data-dojo-attach-event="click:cancelAction"\n data-dojo-attach-point="cancelButton"\n data-testId="saveAsCancelButton"></div>\n </div>\n</div>'},function(e,t){e.exports='<div class="specifyNewFilenameDialog">\n <div class="filenameTitle"></div>\n <div class="filenameDesc"></div>\n <div class="fileInputRow">\n <span class="filenameTextField"></span>\n <span class="fileExtension"></span>\n </div>\n <div class="filenameErr"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(242),i(233)],o=i.dj.d(n,(function(e,t,i){var n;return e(null,{constructor:function(e){(e=e||{}).fileService,n=e.executionService,this.callback=function(e){this.executeOpenAction(e)},this.executeOpenAction=function(e,t){var o=e[0];o.isDirectory||function(e,t){i.isBrowserType(e,t)?n.executionEval("edit("+i.constructMatlabFilePath(e)+")"):i.isLoadType(e)?n.executionEval("load("+i.constructMatlabFilePath(e)+")"):i.isMatlabOpenType(e)?n.executionEval("open("+i.constructMatlabFilePath(e)+")"):n.executionEval("uiopen("+i.constructMatlabFilePath(e)+",1)")}(o,t)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(242),i(204),i(214),i(211),i(213),i(233),i(209),i(241),i(2527),i(599)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return{id:"DOWNLOAD",supportsKeyBinding:!1,isApplicableTo:function(){return!0},callback:function(t,i){if(r.isFileInfo(i)){var o=i.path,s=encodeURI(l.getWorkerRoutingHost()+"download"+o),c=n.create("iframe");c.src=s,this.setDomStyleForDownloadIFrame(c),this.attachOnloadEvent(c,t),n.place(c,e.body())}else a.warn("Unidentified Selected file info object, Cannot Download")},handleDownloadError:function(e){if(e&&e.contentDocument&&e.contentDocument.title===c.serverError){var i=t.getObject("downloadFailedDialogTitle",!1,this.localization),o=t.getObject("downloadFailed",!1,this.localization);s.displayAlertDialog(i,o),n.destroy(e)}},setDomStyleForDownloadIFrame:function(e){o.set(e,{display:"none",width:"0px",height:"0px",top:"-9000px",left:"-9000px",position:"absolute"})},attachOnloadEvent:function(e,n){e.attachEvent?e.attachEvent("onload",t.hitch(n,t.partial(this.handleDownloadError,e))):i.after(e,"onload",t.hitch(n,t.partial(this.handleDownloadError,e)),!0)}}}),e,t),e.exports=o},function(e,t,i){e.exports={root:{title:"About MATLAB",content:"The MathWorks, Inc.",versionText:"Version",legalInfo:"Copyright 1984-${0}. The MathWorks,Inc. Protected by U.S.and international patents. See www.mathworks.com/patents. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders. ",buildLabel:"Build",timestamp:"Time",buildInfoError:""}}},function(e,t){e.exports='<div class="motw-about">\n\t<div class="motw-versionInfo">\n\t\t<div class="motw-matlabVersion">$matlabVersion$</div>\n \t<div class="motw-buildInfo">$buildInfo$</div>\n </div>\n <div class="motw-legalInfo">$legalInfo$</div>\n</div>\n'},function(e,t,i){e.exports={searchText:"一致はありません",searchPlaceholderText:"検索",preferences:"基本設定",MATLAB:"MATLAB",panelErrorMsg:"基本設定の読み込み中にエラーが発生しました。後で再度実行してください。"}},function(e,t,i){e.exports={searchText:"일치 항목 없음",searchPlaceholderText:"검색",preferences:"기본 설정",MATLAB:"MATLAB",panelErrorMsg:"기본 설정을 불러오는 중 오류가 발생했습니다. 나중에 다시 시도하십시오."}},function(e,t,i){e.exports={searchText:"无匹配项",searchPlaceholderText:"搜索",preferences:"预设项",MATLAB:"MATLAB",panelErrorMsg:"加载预设项时出错。请稍后重试。"}},function(e,t,i){e.exports={root:{searchText:"No matches",searchPlaceholderText:"Search",preferences:"Preferences",MATLAB:"MATLAB",panelErrorMsg:"Error in loading the preferences. Please try again later."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(7878),i(2551),i(219),i(256)],o=i.dj.d(n,(function(e,t,i,n){var o=null;i.subscribe("/JavaScript/Preferences/CommandLineChannel",(function(e){var i,n;n=e.data[0],i=r.getInstance(n),t.createDialog(i)}));var r={getInstance:function(t){return o||(o=new e(t)),!0===o._beingDestroyed&&(o=new e(t)),o},destroy:function(){o&&(o=null)}};return r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(210),i(213),i(206),i(238),i(215),i(216),i(1622),i(7879),i(7880),i(7881),i(7883),i(7885),i(7888),i(232),i(219),i(209),i(546)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){var y="",C=[],T={},E={},S=!1,w=!1;return e([s,l],{templateString:d,baseClass:"preferenceUI",constructor:function(e){this.selection=e||this._getParameterByName("selection"),this._moduleLoader=new b,this.preferenceFetcher=new u({moduleLoader:this._moduleLoader}),this.navigateToNodeListener=new h,this._createdPanels={},_.isRunning()||_.start(),_.subscribe("/Preferences/PrefPanel",this._handleReceivedMessage,this),this.preferenceFetcher.on("preferencedataavailable",t.hitch(this,(function(e){this._preferenceData=e.preferenceData,this._preferenceDataMap=e.preferenceDataMap,C=this._preferenceData,T=this._preferenceDataMap,w=!0,Object.keys(e.searchData).forEach((function(t){"MATLAB"===T[t].codeType&&(void 0!==E[t]?e.searchData[t]=E[t]:e.searchData[t]="");var i=e.searchData[t];let n=T[t].parent;n&&Object.keys(T).indexOf(n)<0&&(T[t].parent=null),y="",this._generateParentLabelsFromIdExculdingSelf(T,t),i=i+y+"Preferences",e.searchData[t]=i.toLowerCase()}),this),this._preferenceData.forEach((function(t){t.searchData=e.searchData[t.id]})),this._createSidePanelContainer(this._preferenceData),S&&this.grid.searchBox.set("disabled",!1),this.emit("preferencedataavailable")}))),this.own(this.preferenceFetcher)},_unSubscribeFromMessageServiceChannel:function(){_.unsubscribe("/Preferences/PrefPanel",this._handleReceivedMessage,this)},_handleReceivedMessage:function(e){var t=e.data;if("PanelResponse"===t.type){if(t.errorMessage){var i=document.createElement("div");i.textContent=c.panelErrorMsg,i.classList.add("panelLoadError"),this.centerPanel.appendChild(i)}else{var n=new p;n.createEmbeddedFigure(t.figure,this.centerPanel).then(function(){n.startup(),this.emit("preferencepanelplaced",{label:t.id})}.bind(this)),this._createdPanels[t.id]=n}this.emit("preferencedataavailable")}else"CommitResponse"===t.type?t.validationSuccess&&(this._commitAllPrefPanelChanges(),this._needServerValidationToClose&&(t.commitSuccess&&this.emit("closedialog"),this._needServerValidationToClose=!1)):"ReadMessageCatalogResponse"===t.type&&(S=!0,this._messagesToMap(t.message),w&&this._preferenceData.forEach(e=>{var t=e.id,i="";"MATLAB"===e.codeType&&(i=void 0!==E[t]?E[t]:"",y="",this._generateParentLabelsFromIdExculdingSelf(T,t),i=(i=i+y+"Preferences").toLowerCase(),e.searchData=i)}),void 0!==this.grid&&this.grid.searchBox.set("disabled",!1))},_messagesToMap:function(e){for(var t=0;t<e.length;t++)E[e[t].id]=e[t].value},_generateParentLabelsFromIdExculdingSelf:function(e,t){var i=e[t].parent;null!==i&&(y=e[i].label+" "+y,this._generateParentLabelsFromIdExculdingSelf(e,i))},_generateParentLabelsFromIdIncludingSelf:function(e,t){null!==t&&(y=e[t].label+" "+y,this._generateParentLabelsFromIdIncludingSelf(e,e[t].parent))},_getParameterByName:function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))},_handleOkApplyButtons:function(){var e=this.grid._grid.getSelection()[0].id;return"MATLABAuthoredPrefPanel"===this._createdPanels[e].baseClass?(_.publish("/Preferences/PrefPanel",{type:"Commit",dataToBeValidated:{id:e}}),"wait"):this._createdPanels[e].validatePrefsPanel()?(this._commitAllPrefPanelChanges(),_.publish("/Preferences/PrefPanel",{type:"Commit",dataToBeValidated:{}}),"yes"):"no"},handleOkButtonClick:function(){var e=this._handleOkApplyButtons();"yes"===e?this.emit("closedialog"):"wait"===e&&(this._needServerValidationToClose=!0)},handleApplyButtonClick:function(){this._handleOkApplyButtons()},handleHelpButtonClick:function(){var e=0,t=this._preferenceData,i=this.grid._grid.getSelection()[0];for(e=0;e<t.length;++e)if(t[e].id===i.id){var n=t[e].help.split(","),o="helpview('"+n[0]+"','"+n[2]+"','CSHelpWindow')";m.sendMessage({Eval:{mcode:o}},{},"PreferencesHelpButton");break}},_destroyCreatedPanels:function(){Object.keys(this._createdPanels).forEach(function(e){this._createdPanels[e].destroyRecursive&&this._createdPanels[e].destroyRecursive()}.bind(this))},_commitAllPrefPanelChanges:function(){Object.keys(this._createdPanels).forEach(t.hitch(this,(function(e){this._createdPanels[e].commitPrefsChanges&&this._createdPanels[e].commitPrefsChanges(!0)})))},_moveCursor:function(e,t){var i=e.domNode,n=e.inputNode;if(i.createTextRange){var o=i.createTextRange();o.moveStart("character",t),o.collapse(),o.select()}else n.setSelectionRange(t,t)},_isChildOfPreferenceUI:function(e){for(;e;){if(n.contains(e,"preferenceUI"))return!0;e=e.parentNode}return!1},_createSidePanelContainer:function(e){this.grid&&this.grid.domNode&&i.empty(this.grid.domNode),this.grid=new f({gridData:e,selection:this.selection}),this.leftPanel&&i.place(this.grid.domNode,this.leftPanel),this.grid.startup(),this.grid.on("selectionchange",t.hitch(this,(function(e){this._event=e;let t,i="";C=this._preferenceData,T=this._preferenceDataMap,y="",this._generateParentLabelsFromIdIncludingSelf(T,e.id),i=y+c.preferences,i=i.trim();const n=new g({title:i});if(t=e.source,"MATLAB"===e.codeType){if(this._clearCenterPanel(),this.centerPanel.appendChild(n.domNode),this._createdPanels[e.id]){var o=this._createdPanels[e.id];this.centerPanel.appendChild(o.domNode),o.startup(),this.emit("preferencepanelplaced",{label:e.label})}else r.emit(this.domNode,"showBusyIndicator",{bubbles:!1}),_.publish("/Preferences/PrefPanel",{type:"PanelRequest",id:e.id,source:e.source});this._updateHelpButton(e.label)}else{let t=e.source,i=[{name:t}];this._moduleLoader.loadExports(i).then(i=>{this._createdPanels[e.id]||(this._createdPanels[e.id]=new i.exports[t]);var o=this._createdPanels[e.id];e===this._event&&(this._clearCenterPanel(),this.centerPanel.appendChild(n.domNode),this.centerPanel.appendChild(o.domNode),o.startup(),this._updateHelpButton(e.label),this.emit("preferencepanelplaced",{label:e.label}))})}})))},_updateHelpButton:function(e){for(var t=0;t<C.length;++t)if(e===C[t].label){void 0===C[t].help?r.emit(this.domNode,"disableHelpButton",{bubbles:!1,cancelable:!0}):r.emit(this.domNode,"enableHelpButton",{bubbles:!1,cancelable:!0});break}},_clearCenterPanel:function(){for(;this.centerPanel.firstElementChild;)this.centerPanel.removeChild(this.centerPanel.firstElementChild)},destroyRecursive:function(){this._destroyCreatedPanels(),this._unSubscribeFromMessageServiceChannel(),_.publish("/Preferences/PrefPanel",{type:"Destroy"}),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="preferenceUI">\n <div data-dojo-attach-point="leftPanel" class="leftPanel">\n </div>\n <div data-dojo-attach-point="centerPanel" class="centerPanel">\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(222),i(576),i(471),i(219)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{constructor:function(e){this._moduleLoader=e.moduleLoader,this._subscribeToRegFwkAndFetchPrefPanelsData()},_subscribeToRegFwkAndFetchPrefPanelsData:async function(){const e=i.getRegistrationFramework(),t={resourceName:"preferences",resourceType:n.JSON};this._registrationPoint=e.subscribe({},t);let o=await this._registrationPoint;if(o&&o.resourcesFilesData&&o.resourcesFilesData instanceof Array&&o.resourcesFilesData.length>0){var r=[];o.resourcesFilesData.forEach(e=>{Array.isArray(e.resourcesFileContents)?r.push.apply(r,e.resourcesFileContents):"object"==typeof e.resourcesFileContents&&null!==e.resourcesFileContents&&r.push(e.resourcesFileContents)}),this._addPreferencePanels(r)}},_addPreferencePanels:async function(e){if(e.forEach(e=>{e.parentId=e.parentId||null,e.label=e.label||e.id,e.moduleDef&&this._moduleLoader.register([e.moduleDef])}),e&&0!==e.length){o.isRunning()||o.start();var t,i=[];e.forEach(e=>{"MATLAB"===e.codeType&&i.push({id:e.id,path:e.l10nPath})}),o.publish("/Preferences/PrefPanel",{type:"ReadMessageCatalog",paths:i}),t=await Promise.all(this._processL10N(e));var n=[],r=[],a=0,s={},l={};t.forEach(e=>{let t=e.preferenceData;switch(t.parent=t.parentId||null,delete t.parentId,t.label=t.label||t.id,t.id){case"matlab":n.splice(0,0,t),a++;break;case"simulink":a>0?n.splice(1,0,t):n.splice(0,0,t),a++;break;default:let e=t.label||t.id;r.push(e),r.sort(),n.splice(r.indexOf(e)+a,0,t)}l[t.id]=e.searchData.replace(/{[\w|,|' ']*}/g,""),s[t.id]=t}),this.emit("preferencedataavailable",{preferenceData:n,preferenceDataMap:s,searchData:l})}},_processL10N:function(e){var t=[];return e.forEach(e=>{t.push(new Promise((t,i)=>{if("MATLAB"===e.codeType)t({preferenceData:e,searchData:""});else{let i=[{name:e.l10nPath}];this._moduleLoader.loadExports(i).then(i=>{let n="",o=i.exports[e.l10nPath];for(var r in o)void 0!==o[r]&&(n=n+o[r]+" ");"PanelLabel"in o?e.label=o.PanelLabel:e.id in o&&(e.label=o[e.id]),t({preferenceData:e,searchData:n})})}}))}),t},destroy:function(){this._registrationPoint&&this._registrationPoint.remove&&this._registrationPoint.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(7882),i(992)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(){t.after(n,"navigateToNode",this._navigateToNode.bind(this),!0)},_navigateToNode:function(e){i.navigateToNode(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(256)],o=i.dj.d(n,(function(e){return{navigateToNode:function(t){e.publish("preferences/navigation",t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(7884),i(215),i(1147)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{templateString:i,baseClass:"MATLABAuthoredPrefPanel",constructor:function(e){this._embeddedFigureFactory=new o},buildRendering:function(){this.inherited(arguments)},createEmbeddedFigure:function(e,i){if(e)return this._embeddedFigure=this._embeddedFigureFactory.createWidget(this,e,this._handleServerPropertyChange.bind(this)),this._embeddedFigure.placeAt(this.domNode),i.appendChild(this.domNode),this._embeddedFigure.on("figurefitsizechanged",this._handleFigureFitSizeChanged.bind(this)),this._deferred=new t,this._deferred.promise},_handleServerPropertyChange:function(e){"windowOpen"===e.data.eventType&&this._deferred.resolve()},_handleFigureFitSizeChanged:function(e){this._embeddedFigure.resize({l:1,t:1,w:e.fitSize[0],h:e.fitSize[1]})},destroyRecursive:function(){}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="prefPanelUIFigure" class="MATLABAuthoredPrefPanel">\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(227),i(256),i(228),i(213),i(223),i(206),i(204),i(225),i(7886),i(215),i(216),i(1622),i(1321),i(350),i(531),i(7887),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e([d,u],{templateString:c,constructor:function(e){this.gridData=e.gridData,this.selection=e.selection,this._preferencePanelNavigationSubscriptionHandle=i.subscribe("preferences/navigation",s.hitch(this,(function(e){this.set("selection",e),this.searchBox.set("value",""),this._enforceClear(),this._handlePreferenceWithArgument(this.selection,"programmatic")})))},_setGridDataAttr:function(e){this._set("gridData",e)},_setSelectionAttr:function(e){""===e&&(e="matlab"),this._set("selection",e)},postCreate:function(){this.inherited(arguments),this._createSearchBoxAndGrid(),this._handlePreferenceWithArgument(this.selection,"UI"),this._grid.on("selectionChanged",s.hitch(this,this._handleSelectionChange)),n.set(this._grid.domNode,"data-tag","preferencesGrid"),this.emptyGrid.textContent=h.searchText},startup:function(){this.inherited(arguments),this.searchBox.startup(),this._grid.startup()},_handlePreferenceWithArgument:function(e,t){var i="";this.gridData.forEach(function(t){t.label===e&&(i=t.id)}.bind(this)),""===i&&(i="matlab"),this._grid.expand([{id:i}]),this._preferencesStore.expandTo({id:i}),this._grid.setSelection([{id:i}]),this._grid.setNodeFocus({id:i}),this._selectedPanelId=i,this._handleSelectionChange().then(s.hitch(this,(function(){"programmatic"!==t&&this.emit("preferencetreeloaded")})))},_createSearchBoxAndGrid:function(){this._preferencesStore=f.create(this.gridData,{type:_.TREE}),this._grid=new g(this._preferencesStore,{dataTestId:"preferencesGrid",plugins:[g.PLUGINS.Filter,g.PLUGINS.SingleNodeSelection],renderer:m}),this.searchBox=new p({value:"",placeholder:h.searchPlaceholderText,tag:"preferencesSearchTextField"}),this.searchBox.set("disabled",!0),this.searchBox.set("width",250),this.searchBox.set("height",22),this.searchBox.domNode.setAttribute("aria-label",h.searchPlaceholderText),this._tempSearchValue="",this.searchBox.on("typing",s.hitch(this,(function(e){""===e.mwEventData.currentContent?this._enforceClear():this._tempSearchValue!==e.mwEventData.currentContent&&this._enforceSearch(),this._tempSearchValue=e.mwEventData.currentContent}))),this.searchBox.on("change",s.hitch(this,(function(e){""===e.mwEventData.newValue?this._enforceClear():this._enforceSearch()}))),this.own(a(this.searchBox.inputNode,"keydown",s.hitch(this,(function(e){e.keyCode===r.ESCAPE&&""!==this.searchBox.inputNode.value&&(this.searchBox.set("value",""),this._enforceClear(),e.stopPropagation())})))),this._preferencesStore.on("dataSizeChanged",s.hitch(this,(function(e){0===e.dataSize.rows.count?this._destroyed||(this.emptyGrid.style.display="block",this.gridContainer.style.display="none"):this._destroyed||(this.emptyGrid.style.display="none",this.gridContainer.style.display="block")}))),this.own(a(this.searchBox.inputNode,"keydown",s.hitch(this,this._stopPropagationOfEnter))),this.own(a(this.searchBox.inputNode,"keyup",s.hitch(this,this._stopPropagationOfEnter))),this.own(this.searchBox),this.own(this._grid),this.searchContainer.appendChild(this.searchBox.domNode),this.gridContainer.appendChild(this._grid.domNode)},_stopPropagationOfEnter:function(e){e.keyCode===r.ENTER&&(e.stopPropagation(),e.stopImmediatePropagation())},_enforceSearch:function(){var e=this.searchBox.inputNode.value;this._grid.filter({field:"searchData",value:e})},_enforceClear:function(){this.searchBox.inputNode.value;this._grid.clearFilter()},_handleSelectionChange:function(){var e=this._grid.getSelection()[0];if(e){this._selectedPanelId=e.id;var t=this._preferencesStore.getNode(e);return t.then(s.hitch(this,(function(e){if(e&&e.node){var t=e.node.data;this.emit("selectionchange",{id:t.id,label:t.label,source:t.source,codeType:t.codeType})}}))),t}return this._grid.setSelection([{id:this._selectedPanelId}]),null},destroy:function(){this._preferencePanelNavigationSubscriptionHandle.remove(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="leftPane">\n <div class="searchContainer preferenceSearchContainer" data-dojo-attach-point="searchContainer">\n\n </div>\n <div class="gridContainer" data-dojo-attach-point="gridContainer">\n\n </div>\n\n <div class="emptyGrid" data-dojo-attach-point="emptyGrid">\n </div>\n</div>'},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getDomNode:function(e,t){var i=t.highlight,n=document.createElement("span");n.className="mw-tree-renderer";var o=e.label,r=document.createElement("span");if(r.className="treeNodeText",r.textContent=o.trim(),r.setAttribute("data-test-id","label1"),n.appendChild(r),i){var a=i[0].matches.length,s=document.createElement("span");s.className="preferenceSearchCounterNode",a>9&&(a="9+"),s.textContent=a,n.appendChild(s)}return n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7889),i(215),i(216)],o=i.dj.d(n,(function(e,t,i,n){return e([i,n],{templateString:t,baseClass:"preferencePanelHeader",_setTitleAttr:function(e){this.panelHeader.innerHTML=e,this._set("title",e)},postCreate:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point = "panelHeader">\n\n</div>'},function(e,t,i){var n,o;n=[i(203),i(222),i(1232),i(206),i(2552),i(7895),i(2554),i(7896),i(2553),i(262),i(273),i(1088),i(297),i(291),i(339),i(232),i(241),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){const v=e([t],{_content:null,_controller:null,_overlay:null,Events:{CreateProject:"OK"},_model:null,_spinner:null,constructor:function(e){const t=e.Instruction;this._content=void 0!==t?new s(e):new a(e),this._content.startup(),this._model=new o(e.Name,e.DefaultFolderPath),this._controller=new r(this._content,this._model,e.Name),this._spinner=new f(f.SIZE.SMALL),this._spinner.set("target",this._content.domNode)},show:function(){this._overlay=c.createDialog({title:i.CreateProjectLabel,content:this._content,dialogType:c.MODAL,resizable:!0,draggable:!0,closable:!0,closeOnEscape:!0,"data-test-id":"NewProjectForm",buttons:[d.OK,d.CANCEL],defaultActionButton:d.OK,specifiedFocusItem:"NPOProjectNameInput"}),this._overlay.addButtonEventListener(d.OK,()=>this.emit(this.Events.CreateProject),!1),this._overlay.addButtonEventListener(d.CANCEL,()=>this._overlay.close(),!1);const e=this._content.getNameTextField();e.focusNode.focus(),n(e,"typing",e=>this._model.setName(e.mwEventData.currentContent));const t=this._content.getFolderComboBox();n(t,"typing",e=>this._model.setFolderPath(e.mwEventData.currentContent));const o=t.menu.onClose;t.menu.onClose=()=>{o(),this._model.setFolderPath(t.inputNode.value)},this._model.on(this._model.Events.ValueChanged,()=>this._enableOkButton()),this._model.on(this._model.Events.CreatingProjectChanged,()=>this._enableSpinner())},getValues:function(){return{Name:this._model.getName(),FolderPath:this._model.getFolderPath()}},setCreatingProject:function(e){this._model.setCreatingProject(e)},_enableOkButton:function(){const e=this.getValues();""===e.Name||""===e.FolderPath?this._overlay.disableButton(d.OK):this._overlay.enableButton(d.OK)},_enableSpinner:function(){this._model.getCreatingProject()?this._spinner.show():this._spinner.hide()},close:function(){return this._overlay.close()}}),b=new h;async function y(){return(await p.getMVM().feval("matlab.internal.project.creation.getDefaultFolder",1,[],b))[0]}async function C(){return(await p.getMVM().feval("pwd",1,[],b))[0]}b.setOutTextCallback(null),b.setErrTextCallback(null);function T(e,t){const n=e[0];if(t.setCreatingProject(!1),n.isError){const e=n.messageFaults[0].message;return m.displayAlertDialog(i.ProjectErrorDialogTitle,e)}t.close()}function E(e,t){const n=e.getMsg();m.displayAlertDialog(i.ProjectErrorDialogTitle,n),t.setCreatingProject(!1)}function S(e){const t=e.getValues();return{function:"matlab.project.createProject",nargout:0,arguments:["Name",t.Name,"Folder",t.FolderPath]}}function w(e,t=S){g.registerResponseHandler("FEvalResponse:CREATE_PROJECT_CLASSIFIER",T,e),g.registerFaultHandler("FEval:CREATE_PROJECT_CLASSIFIER",E,e),e.on(e.Events.CreateProject,()=>async function(e,t){e.setCreatingProject(!0);const i=t(e);g.sendMessage({FEval:i},e,"CREATE_PROJECT_CLASSIFIER")}(e,t))}async function I(e){return(await p.getMVM().feval("matlab.internal.project.util.generateFolderGroupNames",1,[e,"untitled"],b))[0]}return{create:function(e){return new v(e)},createForBlankProject:async function(e,t){if(void 0===e){const t=await y(),i=await C();e=await Promise.all([t,i].map(I))}const i={Name:await l.getFileName(e[0]),DefaultFolderPath:e[0],FolderPaths:e},n=new v(i);return w(n,t),n},createForProjectFromFolder:async function(e,t){if(void 0===e){const t=await y();e=[await C(),t]}const n={Name:await l.getFileName(e[0]),DefaultFolderPath:e[0],FolderPaths:e,Instruction:i.ProjectFromSourcesMainInstruction},o=new v(n);return w(o,t),o}}}),e,t),e.exports=o},function(e,t,i){e.exports={CreateProjectLabel:"プロジェクトを作成",ProjectErrorDialogTitle:"エラー",ProjectFolderLabel:"フォルダー:",ProjectFromSourcesMainInstruction:"フォルダーをプロジェクトに自動変換することで、既存のファイルを管理します。",ProjectNameLabel:"名前:",ProjectSelectProjectDirectory:"プロジェクト フォルダーの選択"}},function(e,t,i){e.exports={CreateProjectLabel:"프로젝트 만들기",ProjectErrorDialogTitle:"오류",ProjectFolderLabel:"폴더:",ProjectFromSourcesMainInstruction:"폴더를 자동으로 프로젝트로 변환하여 기존 파일을 관리하십시오.",ProjectNameLabel:"이름:",ProjectSelectProjectDirectory:"프로젝트 폴더 선택"}},function(e,t,i){e.exports={CreateProjectLabel:"创建工程",ProjectErrorDialogTitle:"错误",ProjectFolderLabel:"文件夹:",ProjectFromSourcesMainInstruction:"通过自动将文件夹转换为工程来管理现有文件。",ProjectNameLabel:"名称:",ProjectSelectProjectDirectory:"选择工程文件夹"}},function(e,t,i){e.exports={root:{CreateProjectLabel:"Create Project",ProjectErrorDialogTitle:"Error",ProjectFolderLabel:"Folder:",ProjectFromSourcesMainInstruction:"Manage existing files by automatically converting a folder into a project.",ProjectNameLabel:"Name:",ProjectSelectProjectDirectory:"Select a Project Folder"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(206),i(232),i(339),i(1232),i(2552),i(2553)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){const s=/[<>/\\:|?*"]/g,l=/^[+@]+/,c=/^\.+$/,d=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,u=/[. ]+$/;return e(null,{_layout:null,_autoUpdateFolderPathListener:null,_model:null,_defaultProjectName:null,constructor:function(e,t,i){this._layout=e,this._model=t,this._defaultProjectName=i,this._createFolderBrowseButtonHandler(),this._createNameTextFieldHandler(),this._createFolderTextFieldHandler(),this._busyOverlay=new n,this._busyOverlay.set("target",this._layout.domNode)},_createFolderBrowseButtonHandler:function(){const e=this._layout.getFolderBrowseButton();if(window.hasOwnProperty("cefclient")){const i=this;t(e,"click",(function(){cefclient.setMessageCallback("openFolder",(function(e,t,n){i._handleCEFOpenFolderResponse(t),cefclient.removeMessageCallback("openFolder")})),cefclient.sendMessage("openFolder")}))}else{i.registerResponseHandler("FEvalResponse:NEWPROJECT_UIGETFILE",this._handleUigetdirResponse,this);const n={function:"uigetdir",nargout:1};t(e,"click",()=>{this._busyOverlay.show(),i.sendMessage({FEval:n},{},"NEWPROJECT_UIGETFILE")})}},_createNameTextFieldHandler:function(){const e=this._layout.getNameTextField();this._autoUpdateFolderPathListener=t(e,"typing",e=>{this._autoUpdateFolderPath(e.mwEventData.currentContent)})},_createFolderTextFieldHandler:function(){const e=this._layout.getFolderComboBox();t.once(e,"change",()=>this._autoUpdateFolderPathListener.remove())},_autoUpdateFolderPath:async function(e){const t=this._layout.getFolderComboBox(),i=t.get("value");if(i){const n=await a.getFileName(i),o=new RegExp(n+"$"),r=function(e,t){const i=e.replace(s,"").replace(l,"").replace(c,"").replace(d,"").replace(u,"");return""===i?t:i}(e,this._defaultProjectName),h=i.replace(o,r);this._model.setFolderPath(h),t.set("value",h)}},_handleUigetdirResponse:function(e){const t=e[0].results[0];this._busyOverlay.hide(),0!==t&&this._handleSelectedPath(t)},_handleCEFOpenFolderResponse:function(e){const t=e[0];0!==t.length&&this._handleSelectedPath(t[0])},_handleSelectedPath:function(e){const t=this._layout.getFolderComboBox(),i=t.get("items");i.push({label:e,value:e}),t.set("items",i),t.set("value",e),this._model.setFolderPath(e),this._autoUpdateFolderPathListener.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(211),i(269),i(1232),i(2554)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t([e],{_initialValues:null,_layout:null,constructor:function(e){this._initialValues=e},buildRendering:function(){this.domNode=i.create("div",{class:"NPOVerticalContainer"})},postCreate:function(){this.inherited(arguments),this._build(),i.place(this._mainInstructionLabel.domNode,this._mainInstructionContainer),i.create("div",{class:"NPOEmptyRowNode"},this._mainInstructionContainer),i.place(this._layout.domNode,this._layoutContainer),this._mainInstructionLabel.startup(),this._layout.startup(),i.place(this._mainInstructionContainer,this.domNode),i.place(this._layoutContainer,this.domNode)},startup:function(){this.inherited(arguments)},_build:function(){this._mainInstructionContainer=i.create("div",{class:"NPOColumnContainer"}),this._mainInstructionLabel=new n({class:"NPOLabel",height:24,text:this._initialValues.Instruction}),this._layoutContainer=i.create("div",{class:"NPORowContainer"}),this._layout=new r(this._initialValues)},getFolderBrowseButton:function(){return this._layout.getFolderBrowseButton()},getFolderComboBox:function(){return this._layout.getFolderComboBox()},getNameTextField:function(){return this._layout.getNameTextField()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(383),i(262),i(273),i(291),i(297),i(241),i(209),i(7898),i(7904),i(1623)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(null,{resources:d,channel:"/cmlink/view/clone",sourceControlProvider:null,initialFolderLocation:null,dialog:null,dialogContent:null,progressDialog:null,commandExecutor:null,constructor:function(e){this.commandExecutor=new t(this.channel),Object.assign(this,e)},createDialog:async function(){const e=this.initialFolderLocation||await this._getDefaultProjectFolder();s.info("Initial folder = "+e),this.dialogContent=new l,this.dialog=i.createDialog({title:d.NewFromSourceControl,draggable:!0,resizable:!0,dialogType:i.MODAL,content:this.dialogContent,buttons:[{type:n.TYPE.DO_IT,label:d.RetrieveButtonLabel},n.CANCEL],defaultActionButton:n.TYPE.DO_IT,"data-test-id":"cmlinkCloneDialog"}),this.dialogContent.sandboxTextField.set("value",e),this.dialog.addButtonEventListener(n.TYPE.DO_IT,()=>this._handleRetrieveClicked(),!1),this.dialog.addButtonEventListener(n.CANCEL,()=>this._handleCancelClicked(),!0)},_getDefaultProjectFolder:async function(){const e=new r;e.setOutTextCallback(null),e.setErrTextCallback(null);return(await o.getMVM().feval("userpath",1,[],e))[0]},_handleRetrieveClicked:function(){this.progressDialog=new c({channel:this.channel}),this.commandExecutor.executeWithProgress(this.progressDialog,"retrieveSandbox",this.sourceControlProvider,this.dialogContent.repositoryComboBox.value,this.dialogContent.sandboxTextField.value).then(()=>this._changeDirectory(this.dialogContent.sandboxTextField.value)).then(()=>this._cleanup()).catch(e=>this._onError(e))},_cleanup:function(){this.dialog.close()},_changeDirectory:async function(e){const t=new r;t.setOutTextCallback(null),t.setErrTextCallback(null);const i=o.getMVM();await i.feval("cd",0,[e],t)},_onError:function(e){a.displayAlertDialog(d.RetrieveRepositoryErrorTitle,e)},_handleCancelClicked:function(){console.log("cancel")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(216),i(215),i(255),i(7899),i(286),i(269),i(243),i(258),i(209),i(291),i(297),i(339),i(1623)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e("DefaultCloneForm",[i,t,n],{templateString:o,resources:p,_handleBrowserButtonClick:async function(){const e=new u;e.setOutTextCallback(null),e.setErrTextCallback(null);const t=d.getMVM(),i=new h;i.set("target",this.domNode),i.show();try{const i=await t.feval("uigetdir",1,["",p.SelectSandboxFolder],e),n="string"==typeof i[0]?i[0]:"";n&&this.sandboxTextField.set("value",n)}catch(e){c.error(e)}i.hide()}})}),e,t),e.exports=o},function(e,t){e.exports="<div class='CloneWebFormContainer'>\n <div class='CloneWebRowContainer'>\n <div class='CloneWebColumnContainer CloneWebFlexElement'>\n <div class='CloneWebRowContainer'>\n <div class='CloneWebLabel'\n data-dojo-type=\"mw-form/Label\"\n data-dojo-props=\"text: '${resources.RepositoryPathLabel}'\">\n </div>\n <div class='CloneWebInput CloneWebFlexElement CmRepositoryComboBox'\n data-dojo-type=\"mw-form/ComboBox\"\n data-dojo-props=\"width:'auto', editable:'true'\"\n data-dojo-attach-point=\"repositoryComboBox\"\n data-test-id=\"CmRepositoryComboBox\">\n </div>\n </div>\n <div class='CloneWebEmptyRowNode'></div>\n <div class='CloneWebRowContainer'>\n <div class='CloneWebLabel'\n data-dojo-type=\"mw-form/Label\"\n data-dojo-props=\"text: '${resources.SandboxLabel}'\">\n </div>\n <div class='CloneWebRowContainer CloneWebFlexElement'>\n <div class='CloneWebInput CloneWebFlexElement CmSandboxTextField'\n data-dojo-type=\"mw-form/TextField\"\n data-dojo-props=\"width:'auto'\"\n data-dojo-attach-point=\"sandboxTextField\"\n data-test-id=\"CmSandboxTextField\">\n </div>\n <div class='CloneWebBrowserButton'\n data-dojo-type=\"mw-form/PushButton\"\n data-dojo-props=\"icon: 'open_16', description: '${resources.BrowseTooltip}'\"\n data-dojo-attach-event=\"click: _handleBrowserButtonClick\"\n data-test-id=\"CmBrowseButton\">\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n"},function(e,t,i){e.exports={BrowseTooltip:"参照...",CancelButtonLabel:"キャンセル",NewFromSourceControl:"Git リポジトリのクローン",RepositoryPathLabel:"URL:",RetrieveButtonLabel:"クローン",RetrieveRepositoryErrorTitle:"リポジトリのクローン",SandboxLabel:"フォルダーの場所:",SelectSandboxFolder:"フォルダーの選択",SyncProgressDialogInitialMessage:"起動中...",SyncProgressDialogTitle:"リポジトリをクローン中"}},function(e,t,i){e.exports={BrowseTooltip:"찾아보기...",CancelButtonLabel:"취소",NewFromSourceControl:"Git 리포지토리 복제",RepositoryPathLabel:"URL:",RetrieveButtonLabel:"복제",RetrieveRepositoryErrorTitle:"리포지토리 복제",SandboxLabel:"폴더 위치:",SelectSandboxFolder:"폴더 선택",SyncProgressDialogInitialMessage:"시작 중...",SyncProgressDialogTitle:"리포지토리를 복제하는 중"}},function(e,t,i){e.exports={BrowseTooltip:"浏览...",CancelButtonLabel:"取消",NewFromSourceControl:"克隆 Git 存储库",RepositoryPathLabel:"URL:",RetrieveButtonLabel:"克隆",RetrieveRepositoryErrorTitle:"克隆存储库",SandboxLabel:"文件夹位置:",SelectSandboxFolder:"选择文件夹",SyncProgressDialogInitialMessage:"正在启动...",SyncProgressDialogTitle:"克隆存储库"}},function(e,t,i){e.exports={root:{BrowseTooltip:"Browse...",CancelButtonLabel:"Cancel",NewFromSourceControl:"Clone Git Repository",RepositoryPathLabel:"URL:",RetrieveButtonLabel:"Clone",RetrieveRepositoryErrorTitle:"Clone Repository",SandboxLabel:"Folder location:",SelectSandboxFolder:"Select a Folder",SyncProgressDialogInitialMessage:"Starting...",SyncProgressDialogTitle:"Cloning Repository"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(1133),i(241),i(219),i(1623)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{channel:null,progressDialog:null,cancelHandler:null,onProgressThrottled:null,constructor:function(e){Object.assign(this,e)},_createProgressDialog:function(){this.progressDialog=i.displayProgressDialog(o.SyncProgressDialogTitle,o.SyncProgressDialogInitialMessage,{showCancelButton:!0,cancelCallback:()=>this.cancelHandler()})},_showProgress:function(){this._createProgressDialog()},_closeProgress:function(){this.progressDialog&&(this.progressDialog.closeProgressDialog(),this.progressDialog=null)},onStart:function(){n.subscribe(this.channel+"/endCredentialRequest",this._showProgress,this),n.subscribe(this.channel+"/startCredentialRequest",this._closeProgress,this),this._createProgressDialog();this.onProgressThrottled=t((e,t)=>{this.progressDialog.updateMessage(e),this.progressDialog.progressBar.set("value",t)},50)},onStop:function(){n.unsubscribe(this.channel+"/endCredentialRequest",this._showProgress,this),n.unsubscribe(this.channel+"/startCredentialRequest",this._closeProgress,this),this._closeProgress()},onProgress:function(e,t){this.onProgressThrottled(e,t)},handleCancel:function(e){this.cancelHandler=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(7906),i(7909),i(7916),i(7918),i(7919),i(2555)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{constructor:function(e){e=e||{}},createFeedbackDialog:function(e){var s=new t,l=new i({headingLabel:a.feedbackContentDefaultHeadingLabel,feedbackBottomLabel:a.feedbackContentFeedbackDefaultBottomLabel,emailBottomLabel:a.feedbackContentEmailDefaultBottomLabel,requireSubjectField:r.REQUIRE_SUBJECT,emailEditable:r.EMAIL_NOT_EDITABLE});l.emailInput.set("value",e),this.feedbackDialog=new n({feedbackContent:l}),this.feedbackDialog.privacyPolicyLinkNode.onclick=null,new o(s,this.feedbackDialog).openFeedbackDialog()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(224),i(407),i(232),i(290),i(2555),i(7908)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([s],{constructor:function(){this._deferred=new t,o.registerResponseHandler("FeedbackResponse",this._handleSubmitFeedbackResponse,this),o.registerFaultHandler("Feedback",this._handleSubmitFeedbackFault,this)},submitFeedback:function(e){this._deferred=new t;var i=n.getSystemInfo();i.TYPE="motw",i.VERSION=r.versionNumber;var a={summary:e.subject,description:e.feedback,nameValuePairs:i};return o.sendMessage({Feedback:a}),this._deferred.promise},_handleSubmitFeedbackResponse:function(e){i.forEach(e,(function(e){e.messageFaults&&e.messageFaults.length>0?this._handleSubmitFeedbackFault(e):this._deferred.resolve(a.udcSuccessMessage)}),this)},_handleSubmitFeedbackFault:function(e){this._deferred.reject(a.udcFailureMessage)}})}),e,t),e.exports=o},function(e,t,i){e.exports={root:{udcSuccessMessage:"Thank you for submitting feedback.",udcFailureMessage:"Unable to connect to MathWorks. Please verify you are connected to the Internet or try again later.",feedbackContentHeadingLabelDefault:"Send Feedback",feedbackContentDefaultHeadingLabel:"Please share your experience using MATLAB Online.",feedbackContentValidationMessage:"Feedback text is required.",feedbackContentSubjectLabelDefault:"Subject:",feedbackContentFeedbackTopLabelDefault:"Feedback:",feedbackContentFeedbackBottomLabelDefault:"",feedbackContentFeedbackDefaultBottomLabel:"We welcome suggestions on ways to improve MATLAB Online to better fit your needs. If you have encountered any bugs or issues, providing reproduction steps and error messages will help us investigate the problem.",feedbackContentEmailTopLabelDefault:"Email (optional):",feedbackContentEmailBottomLabelDefault:"",feedbackContentEmailDefaultBottomLabel:"We may use your email address to contact you for additional information, if needed.",feedbackDialogTitleDefault:"Send Feedback",feedbackDialogPrivacyPolicyLinkLabel:"Privacy Policy",feedbackDialogSubmitButtonLabel:"Submit",feedbackDialogSubmittingButtonLabel:"Submitting feedback...",feedbackDialogSubmittedButtonLabel:"Feedback Submitted",feedbackDialogCancelButtonLabel:"Cancel",feedbackDialogCloseButtonLabel:"Close"}}},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{submitFeedback:function(e){throw new Error("This function must be implemented in a sub class and return a promise.")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(258),i(413),i(215),i(216),i(255),i(7910),i(1624),i(7915)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([n,o,r,l],{templateString:a,baseClass:"feedbackWithEmailContent",headingLabel:s.feedbackContentHeadingLabelDefault,subjectPlaceholder:s.feedbackContentSubjectPlaceholderDefault,feedbackPlaceholder:s.feedbackContentFeedbackPlaceholderDefault,feedbackBottomLabel:s.feedbackContentFeedbackBottomLabelDefault,emailPlaceholder:s.feedbackContentEmailPlaceholderDefault,emailBottomLabel:s.feedbackContentEmailBottomLabelDefault,requireSubjectField:null,emailEditable:!0,subjectInputContainerNode:null,feedbackInputContainerNode:null,emailInputContainerNode:null,subjectInput:null,feedbackInput:null,emailInput:null,constructor:function(e){(e=e||{}).requireSubjectField&&(this.subjectPlaceholder=s.feedbackContentSubjectPlaceholderRequired)},buildRendering:function(){this.inherited(arguments),this.subjectInput=new t({placeholder:this.subjectPlaceholder,class:"feedback-input","data-test-id":"feedback.subjectInput"}),this.feedbackInput=new i({placeholder:this.feedbackPlaceholder,class:"feedback-input-textarea","data-test-id":"feedback.feedbackInput"}),this.emailInput=new t({placeholder:this.emailPlaceholder,class:"feedback-input","data-test-id":"feedback.emailInput",editable:this.emailEditable}),this.subjectInput.placeAt(this.subjectInputContainerNode),this.feedbackInput.placeAt(this.feedbackInputContainerNode),this.emailInput.placeAt(this.emailInputContainerNode)},getFeedback:function(){return{subject:this.subjectInput.get("value"),feedback:this.feedbackInput.get("value"),email:this.emailInput.get("value")}},validateFeedback:function(){var e="",t=this.feedbackInput.get("value"),i=this.subjectInput.get("value");return""===t&&(e=s.feedbackContentValidationMessage),this.requireSubjectField&&""===i&&(e=s.feedbackSubjectValidationMessage),e},_setHeadingLabelAttr:{node:"headingLabelNode",type:"innerHTML"},_setFeedbackBottomLabelAttr:{node:"feedbackBottomLabelNode",type:"innerHTML"},_setEmailTopLabelAttr:{node:"emailTopLabelNode",type:"innerHTML"},_setEmailBottomLabelAttr:{node:"emailBottomLabelNode",type:"innerHTML"}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <h1 class="feedback-heading" data-test-id="feedback.headingLabel" data-dojo-attach-point="headingLabelNode"></h1>\n <div class="feedback-input-row">\n <span data-dojo-attach-point="subjectInputContainerNode"></span>\n </div>\n <div class="feedback-input-row">\n <span data-dojo-attach-point="feedbackInputContainerNode"></span>\n <p data-test-id="feedback.feedbackBottomLabel" data-dojo-attach-point="feedbackBottomLabelNode"></p>\n </div>\n <div class="feedback-input-row">\n <span data-dojo-attach-point="emailInputContainerNode"></span>\n <p data-test-id="feedback.emailBottomLabel" data-dojo-attach-point="emailBottomLabelNode"></p>\n </div>\n</div>'},function(e,t,i){e.exports={udcSuccessMessage:"フィードバックを送信していただきありがとうございました。",udcFailureMessage:"MathWorks に接続できません。インターネットへの接続をご確認いただくか、しばらく後に再度お試しください。",feedbackContentHeadingLabelDefault:"",feedbackContentValidationMessage:"フィードバック テキストが必要です。",feedbackSubjectValidationMessage:"フィードバックの件名が必要です。",feedbackContentSubjectPlaceholderDefault:"件名",feedbackContentSubjectPlaceholderRequired:"件名 (必須)",feedbackContentFeedbackPlaceholderDefault:"フィードバック (必須)",feedbackContentFeedbackBottomLabelDefault:"",feedbackContentEmailPlaceholderDefault:"電子メール",feedbackContentEmailBottomLabelDefault:"",feedbackDialogTitleDefault:"フィードバックの送信",feedbackDialogPrivacyPolicyLinkLabel:"プライバシー ポリシー",feedbackDialogSubmitButtonLabel:"送信",feedbackDialogSubmittingButtonLabel:"フィードバックの送信中...",feedbackDialogSubmittedButtonLabel:"フィードバック送信済み",feedbackDialogCancelButtonLabel:"キャンセル",feedbackDialogCloseButtonLabel:"閉じる"}},function(e,t,i){e.exports={udcSuccessMessage:"사용자 의견을 주셔서 감사합니다.",udcFailureMessage:"MathWorks에 연결할 수 없습니다. 인터넷에 연결되어 있는지 확인하거나 나중에 다시 시도하십시오.",feedbackContentHeadingLabelDefault:"",feedbackContentValidationMessage:"사용자 의견을 입력하십시오.",feedbackSubjectValidationMessage:"사용자 의견의 제목을 입력하십시오.",feedbackContentSubjectPlaceholderDefault:"제목",feedbackContentSubjectPlaceholderRequired:"제목(필수)",feedbackContentFeedbackPlaceholderDefault:"사용자 의견(필수)",feedbackContentFeedbackBottomLabelDefault:"",feedbackContentEmailPlaceholderDefault:"이메일",feedbackContentEmailBottomLabelDefault:"",feedbackDialogTitleDefault:"사용자 의견 보내기",feedbackDialogPrivacyPolicyLinkLabel:"개인 정보 취급 방침",feedbackDialogSubmitButtonLabel:"제출",feedbackDialogSubmittingButtonLabel:"사용자 의견 전송 중...",feedbackDialogSubmittedButtonLabel:"사용자 의견 전송 완료",feedbackDialogCancelButtonLabel:"취소",feedbackDialogCloseButtonLabel:"닫기"}},function(e,t,i){e.exports={udcSuccessMessage:"感谢您提交反馈。",udcFailureMessage:"无法连接到 MathWorks。请确认您已连接到 Internet 或稍后重试。",feedbackContentHeadingLabelDefault:"",feedbackContentValidationMessage:"反馈文本是必填项。",feedbackSubjectValidationMessage:"反馈主题是必填项。",feedbackContentSubjectPlaceholderDefault:"主题",feedbackContentSubjectPlaceholderRequired:"主题(必填)",feedbackContentFeedbackPlaceholderDefault:"反馈(必填)",feedbackContentFeedbackBottomLabelDefault:"",feedbackContentEmailPlaceholderDefault:"电子邮件",feedbackContentEmailBottomLabelDefault:"",feedbackDialogTitleDefault:"发送反馈",feedbackDialogPrivacyPolicyLinkLabel:"隐私政策",feedbackDialogSubmitButtonLabel:"提交",feedbackDialogSubmittingButtonLabel:"正在提交反馈...",feedbackDialogSubmittedButtonLabel:"反馈已提交",feedbackDialogCancelButtonLabel:"取消",feedbackDialogCloseButtonLabel:"关闭"}},function(e,t,i){e.exports={root:{udcSuccessMessage:"Thank you for submitting feedback.",udcFailureMessage:"Unable to connect to MathWorks. Please verify you are connected to the Internet or try again later.",feedbackContentHeadingLabelDefault:"",feedbackContentValidationMessage:"Feedback text is required.",feedbackSubjectValidationMessage:"Feedback subject is required.",feedbackContentSubjectPlaceholderDefault:"Subject",feedbackContentSubjectPlaceholderRequired:"Subject (Required)",feedbackContentFeedbackPlaceholderDefault:"Feedback (Required)",feedbackContentFeedbackBottomLabelDefault:"",feedbackContentEmailPlaceholderDefault:"Email",feedbackContentEmailBottomLabelDefault:"",feedbackDialogTitleDefault:"Send Feedback",feedbackDialogPrivacyPolicyLinkLabel:"Privacy Policy",feedbackDialogSubmitButtonLabel:"Submit",feedbackDialogSubmittingButtonLabel:"Submitting feedback...",feedbackDialogSubmittedButtonLabel:"Feedback Submitted",feedbackDialogCancelButtonLabel:"Cancel",feedbackDialogCloseButtonLabel:"Close"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{getFeedback:function(){throw new Error("This function must be implemented in a sub class.")},validateFeedback:function(){throw new Error("This function must be implemented in a sub class.")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(204),i(243),i(215),i(216),i(7917),i(1624)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([o,r],{templateString:a,baseClass:"feedback-dialog",privacyPolicyLinkLabel:s.feedbackDialogPrivacyPolicyLinkLabel,submitButtonLabel:s.feedbackDialogSubmitButtonLabel,cancelButtonLabel:s.feedbackDialogCancelButtonLabel,statusMessageLabel:"",title:s.feedbackDialogTitleDefault,feedbackContentNode:null,privacyPolicyLinkNode:null,statusIconNode:null,buttonContainerNode:null,submitButton:null,cancelButton:null,constructor:function(e){if(!e.feedbackContent)throw new Error("Feedback content required to display FeedbackDialog.")},buildRendering:function(){this.inherited(arguments),this.submitButton=new n({text:"Submit",class:"feedback-button","data-test-id":"feedback.submitButton"}),this.cancelButton=new n({text:"Cancel",class:"feedback-button","data-test-id":"feedback.cancelButton"}),t.place(this.submitButton.domNode,this.buttonContainerNode),t.place(this.cancelButton.domNode,this.buttonContainerNode)},postCreate:function(){this.inherited(arguments),t.place(this.feedbackContent.domNode,this.feedbackContentNode),this.feedbackContent.startup(),this.submitButton.on("click",i.hitch(this,(function(e){this.emit("submitClicked",e)}))),this.cancelButton.on("click",i.hitch(this,(function(e){this.emit("cancelClicked",e)}))),this.privacyPolicyLinkNode.onclick=i.hitch(this,(function(){return this.emit("privacyPolicyClicked",{url:this.privacyPolicyLinkNode.getAttribute("href")}),!1}))},displayMessage:function(e,t){"error"===e?this.statusIconNode.setAttribute("class","feedback-status-errorIcon"):"success"===e?this.statusIconNode.setAttribute("class","feedback-status-successIcon"):this.statusIconNode.setAttribute("class","feedback-statusMessage-noIcon"),this.set("statusMessageLabel",t)},_setStatusMessageLabelAttr:{node:"statusMessageNode",type:"innerHTML"},_setPrivacyPolicyLinkLabelAttr:{node:"privacyPolicyLinkNode",type:"innerHTML"},_setTitleAttr:function(e){this._set("title",e)},_setSubmitButtonLabelAttr:function(e){this.submitButton.set("text",e)},_setSubmitButtonDisabledAttr:function(e){this.submitButton.set("disabled",e)},_setCancelButtonLabelAttr:function(e){this.cancelButton.set("text",e)},_setCancelButtonDisabledAttr:function(e){this.submitButton.set("disabled",e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-test-id="feedback.feedbackDialog">\n <div class="feedback-content" data-dojo-attach-point="feedbackContentNode"></div>\n <div class="feedback-status">\n <span class="feedback-status-noIcon" data-test-id="feedback.statusIcon" data-dojo-attach-point="statusIconNode"></span>\n <span class="feedback-status-message" data-test-id="feedback.statusMessage" data-dojo-attach-point="statusMessageNode"></span>\n </div>\n <div class="feedback-controls-row">\n <a href="http://www.mathworks.com/company/aboutus/policies_statements/" target="_blank"\n data-test-id="feedback.privacyLink"\n data-dojo-attach-point="privacyPolicyLinkNode">\n Privacy Policy\n </a>\n <span class="feedback-buttons" data-dojo-attach-point="buttonContainerNode"></span>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(230),i(232),i(1624),i(262)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n],{constructor:function(e,n){this._feedbackService=e,this._feedbackDialog=n,this._modalDialog=null,this._feedbackServicePromise=null,this.own(i(this._feedbackDialog,"submitclicked",t.hitch(this,"_handleSubmitClicked")),i(this._feedbackDialog,"cancelclicked",t.hitch(this,"_handleCancelClicked")),i(this._feedbackDialog,"privacypolicyclicked",t.hitch(this,"_handlePrivacyPolicyLinkClicked")))},openFeedbackDialog:function(){this._modalDialog=a.createDialog({title:this._feedbackDialog.get("title"),className:"mwFeedbackDialog",dialogType:a.MODAL,content:this._feedbackDialog,draggable:!0,resizable:!1}),this.own(i(this._modalDialog.domNode,"close",t.hitch(this,"_cancelFeedbackServicePromise"))),this._feedbackDialog.displayMessage("none","")},closeFeedbackDialog:function(){this._cancelFeedbackServicePromise(),this._modalDialog.close(),this.destroy()},_cancelFeedbackServicePromise:function(){this._feedbackServicePromise&&this._feedbackServicePromise.cancel()},_handleSubmitClicked:function(){var e=this._feedbackDialog.get("feedbackContent"),i=e.validateFeedback();if(i)this._feedbackDialog.displayMessage("error",i);else{this._feedbackDialog.set("submitButtonLabel",r.feedbackDialogSubmittingButtonLabel),this._feedbackDialog.set("submitButtonDisabled",!0);var n=e.getFeedback();this._feedbackServicePromise=this._feedbackService.submitFeedback(n),this._feedbackServicePromise.then(t.hitch(this,"_handleSubmissionSuccess"),t.hitch(this,"_handleSubmissionFailure"))}},_handleCancelClicked:function(){this.closeFeedbackDialog()},_handlePrivacyPolicyLinkClicked:function(e){var t=e.url;o.sendMessage({FEval:{function:"web",arguments:[t],nargout:0,priority:1}},{},"FeedbackDialogPrivacyPolicyLink")},_handleSubmissionSuccess:function(e){this._feedbackDialog.set("submitButtonDisabled",!0),this._feedbackDialog.set("submitButtonLabel",r.feedbackDialogSubmittedButtonLabel),this._feedbackDialog.set("cancelButtonLabel",r.feedbackDialogCloseButtonLabel),this._feedbackDialog.displayMessage("success",e)},_handleSubmissionFailure:function(e){this._feedbackServicePromise.isCanceled()||(this._feedbackDialog.set("submitButtonDisabled",!1),this._feedbackDialog.set("submitButtonLabel",r.feedbackDialogSubmitButtonLabel),this._feedbackDialog.displayMessage("error",e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({REQUIRE_SUBJECT:!0,NOT_REQUIRE_SUBJECT:!1,EMAIL_EDITABLE:!0,EMAIL_NOT_EDITABLE:!1})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(214),i(203),i(204),i(244),i(209),i(241),i(1906)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return i(e,{constructor:function(e,i){(this._debugServices=e,this._motwApp=i,this._saveReadyManagers=[],this._needsSaveOnQuitDebugging=!1,this._shouldPromptToSaveWhileDebugging=!1,this._motwApp.settingsService)?(this._motwApp.settingsService.getSetting(s.SETTING_GROUP,s.SETTING_NAME).then(function(e){this._updatePromptWhenSavingInDebugMode(e)}.bind(this),(function(e){r.warn(e)})),this._settingChangeListener=this._motwApp.settingsService.listenTo(s.SETTING_GROUP,s.SETTING_NAME,this._updatePromptWhenSavingInDebugMode.bind(this))):r.warn("SettingsService did not exist during construction of MatlabOnlineSaveHandler");this.own(t.after(this._debugServices,"onDebugModeChanged",n.hitch(this,"_handleDebugModeChanged"),!0))},registerSaveReadyPlugin:function(e){this._saveReadyManagers.push(e)},unregisterSaveReadyPlugin:function(e){this._saveReadyManagers=this._saveReadyManagers.filter((function(t){return t!==e}))},save:function(){this._motwApp.fileDataService.doesOpenModifiedFileExist()&&(this._debugServices.isPaused?this._shouldPromptToSaveWhileDebugging?this._createAndShowPrompt():this._stopDebuggingAndSave():this._motwApp.fileDataService.saveOpenFiles())},_createAndShowPrompt:function(){s.createAndShowPrompt(null,this._stopDebuggingAndSave.bind(this),(function(){}),this._resetSetting.bind(this))},_stopDebuggingAndSave:function(){this._needsSaveOnQuitDebugging=!0,this._motwApp.executionService.executionEval("dbquit all")},_updatePromptWhenSavingInDebugMode:function(e){var t=e.hasOwnProperty("newValue")?e.newValue:e.value;this._shouldPromptToSaveWhileDebugging=t},_resetSetting:function(){this._motwApp.settingsService.setSetting(s.SETTING_GROUP,s.SETTING_NAME,!1)},_performSave:function(){var e=this._saveReadyManagers.map((function(e){return e.getReadyPromise()}));o(e).then(function(){this._motwApp.fileDataService.saveOpenFiles()}.bind(this))},_handleDebugModeChanged:function(e){!e&&this._needsSaveOnQuitDebugging&&(this._needsSaveOnQuitDebugging=!1,this._performSave())},destroy:function(){this.inherited(arguments),this._settingChangeListener&&(this._settingChangeListener.remove(),this._settingChangeListener=null)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2557),i(755)],o=i.dj.d(n,(function(e,t){return{sysObjBasic:{id:e.NEW_SYSTEM_OBJECT_BASIC,enabled:!0,text:t.newSystemObjectBasicLabel,icon:"icon_new_class_24",quickAccessIcon:"icon_new_class_16"},sysObjAdvanced:{id:e.NEW_SYSTEM_OBJECT_ADVANCED,enabled:!0,text:t.newSystemObjectAdvancedLabel,icon:"icon_new_class_24",quickAccessIcon:"icon_new_class_16"},sysObjSimulinkExtension:{id:e.NEW_SYSTEM_OBJECT_SIMULINK_EXTENSION,enabled:!0,text:t.newSystemObjectSimulinkExtensionLabel,icon:"icon_new_class_24",quickAccessIcon:"icon_new_class_16"}}}),e,t),e.exports=o},function(e,t,i){e.exports={root:{enumerationTitle:"Enumeration",customPropertyTitle:"Custom Property",insertButton:"Insert",namePrompt:"Property Name:",enumerationPrompt:"Enumeration Name:",createEnumerationLabel:"Create new enumeration",tableValue:"Value",tableDefault:"Default",addValue:"Add value",removeValue:"Remove value",access:"Access",systemAttributes:"System Object Attributes",matlabAttributes:"MATLAB Property Attributes",eventSpecificationMethods:"Discrete event specification",eventAlgorithmMethods:"Discrete event algorithm",constructorMethods:"Constructor",algorithmMethods:"Algorithm",ioMethods:"Inputs and outputs",psMethods:"Properties and states",lsMethods:"Loading, saving, and status",dialogMethods:"System block dialog",iconMethods:"System block icon and port labels",propagationMethods:"System block signal propagation",dfMethods:"Simulink nondirect feedthrough",modelingMethods:"Simulink modeling",getEntityTypesImpl:"Specify entity types",getEntityStorageImpl:"Specify entity storage",getEntityPortsImpl:"Specify entity inputs and outputs",getResourceNamesImpl:"Specify resource pool names",setupEvents:"Specify one-time entity generation",generate:"Respond to entity generation",entry:"Respond to entity entry in storage",exit:"Respond to entity exit from storage",timer:"Respond to entity timer completion",iterate:"Respond to entity iteration in storage",blocked:"Respond to entity blocked from storage",destroy:"Respond to entity destruction",testEntry:"Accept or refuse an entity into storage",modified:"Respond to entity modification",resourceAcquired:"Respond to resource acquisition",resourceReleased:"Respond to resource release",SystemObjectConstructor:"Set properties from name-value pairs",stepImpl:"Implement algorithm",setupImpl:"Perform one-time calculations",resetImpl:"Initialize / reset states",releaseImpl:"Release resources",validateInputsImpl:"Validate inputs",isInputSizeMutableImpl:"Disallow input size changes",isInputComplexityMutableImpl:"Disallow input complexity changes",isInputDataTypeMutableImpl:"Disallow input data type changes",processInputSpecificationChangeImpl:"Perform actions when input specifications change",getNumInputsImpl:"Specify number of inputs",getNumOutputsImpl:"Specify number of outputs",validatePropertiesImpl:"Validate related property values",processTunedPropertiesImpl:"Perform actions when tunable properties change",isTunablePropertyDataTypeMutableImpl:"Disallow tunable property data type changes",isInactivePropertyImpl:"Set property visibility",getDiscreteStateImpl:"Specify state values",isDiscreteStateSpecificationMutableImpl:"Disallow state specification changes",loadObjectImpl:"Load from MAT-file",saveObjectImpl:"Save in MAT-file",isDoneImpl:"Set end-of-data flag",infoImpl:"Display information",getHeaderImpl:"Specify dialog header",getPropertyGroupsImpl:"Specify dialog layout",getSimulateUsingImpl:"Specify simulation mode",showSimulateUsingImpl:"Set simulation mode visibility",showFiSettingsImpl:"Set fixed-point settings visibility",getIconImpl:"Specify block icon",getInputNamesImpl:"Specify input port labels",getOutputNamesImpl:"Specify output port labels",getOutputSizeImpl:"Specify output size",getOutputDataTypeImpl:"Specify output data type",isOutputComplexImpl:"Set output complexity",isOutputFixedSizeImpl:"Set output fixed-size status",getDiscreteStateSpecificationImpl:"Specify state size, data type, and complexity",getSampleTimeImpl:"Specify sample time type and parameters",getImpulseResponseLengthImpl:"Specify impulse response length",getInputDimensionConstraintImpl:"Specify input dimension constraint",getOutputDimensionConstraintImpl:"Specify output dimension constraint",updateImpl:"Update states",outputImpl:"Calculate output",isInputDirectFeedthroughImpl:"Set input direct feedthrough status",supportsMultipleInstanceImpl:"Support For Each subsystem",allowModelReferenceDiscreteSampleTimeInheritanceImpl:"Allow sample time inheritance in reference model",getGlobalNamesImpl:"Specify global variable names for DSM block",getSimulinkFunctionNamesImpl:"Specify Simulink function names",contextMenuHelpLabelPrefix:"Help on",disabledMethodMessage:"This method cannot be inserted.",desDisabledMethodMessage:"Method is not relevant for Discrete-Event System objects.",sealedMethod:"(Sealed)",TabSystemEditor:{Label:"Editor (System Objects)"},TabEditorSectionSystemObject:{Label:"System Object"},TabEditorSectionSystemObjectSimulink:{Label:"Simulink"},ToolInsertProperty:{Label:"Insert\nProperty",Description:"Insert public numeric property"},ToolPublicGroup:{Label:"Public"},ToolNumeric:{Label:"Numeric",Description:"Numeric property"},ToolTunableNumeric:{Label:"Tunable Numeric",Description:"Tunable Numeric property"},ToolLogical:{Label:"Logical",Description:"Logical property"},ToolEnumeration:{Label:"Enumeration...",Description:"Enumeration property"},ToolPositiveInteger:{Label:"Positive Integer",Description:"Positive integer property"},ToolRestrictedGroup:{Label:"Restricted"},ToolPrivate:{Label:"Private",Description:"Private property"},ToolProtected:{Label:"Protected",Description:"Protected property"},ToolCustomGroup:{Label:"Custom"},ToolCustomProperty:{Label:"Custom Property...",Description:"Custom property"},ToolInsertMethod:{Label:"Insert\nMethod",Description:"Insert System object method"},ToolInsertMethodsGallery:{Label:"Methods Gallery",Description:"Gallery of System object methods"},ToolInsertState:{Label:"Insert State",Description:"Insert discrete-state property"},ToolInputOutput:{Label:"Input / Output",Description:"Insert input, output, or related System object method"},ToolInsertGroup:{Label:"Insert"},ToolInput:{Label:"Input",Description:"Insert required input"},ToolOptionalInput:{Label:"Optional Input",Description:"Insert optional input"},ToolOutput:{Label:"Output",Description:"Insert required output"},ToolOptionalOutput:{Label:"Optional Output",Description:"Insert optional output"},ToolInsertInputOutputMethodsGroup:{Label:"Insert Method"},ToolAnalyze:{Label:"Analyze",Description:"Display outline of System object code"},ToolSystemBlock:{Label:"System\nBlock",Description:"Preview MATLAB System block dialog"},ToolPreviewBlockDialog:{Label:"Preview Block Dialog",Description:"Preview MATLAB System block dialog"},ToolSpecifyBlockIconGroup:{Label:"Specify Block Icon"},ToolSpecifyBlockTextIcon:{Label:"Add Text Icon",Description:"Specify text for MATLAB System block icon"},ToolSpecifyBlockImageIcon:{Label:"Add Image Icon...",Description:"Specify image file for MATLAB System block icon"},ToolInsertDialogMethodsGroup:{Label:"Insert Dialog Method"},ToolInsertPortMethodsGroup:{Label:"Insert Port Labels Method"},newSystemObjectLabel:"System Object",newSystemObjectBasicLabel:"Basic",newSystemObjectAdvancedLabel:"Advanced",newSystemObjectSimulinkExtensionLabel:"Simulink Extension"}}},function(e,t,i){var n,o;n=[i(203),i(222),i(304),i(1620),i(857)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{constructor:function(e){this._uiContainer=e.uiContainer,this._workerReady=e.workerReady,this._commandHistoryManager=n.getInstance(),this._commandHistoryManager.on("startCommandHistoryDocked",this._startCommandHistoryDocked.bind(this)),this._commandHistoryManager.on("stopCommandHistoryDocked",this._stopCommandHistoryDocked.bind(this))},_startCommandHistoryDocked:function(e){this._commandHistoryPanelProperties=new i({panelId:"commandHistory",title:o.commandHistoryDockedLabel,closable:!1,isCollapsible:!0,region:"right",actions:this._commandHistoryManager.getActionIds(),isBusy:!0}),this._uiContainer.addPanel(e,this._commandHistoryPanelProperties),e.on("showcommandhistorydocked",()=>{this._commandHistoryPanelProperties.set("isBusy",!1)}),this._workerReady.then((function(){e.createPanel()}))},_stopCommandHistoryDocked:function(e){this._uiContainer.removePanel(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(1625)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e){this.workerReady=e.workerReady},downloadDependencies:function(e){var n,o,r,a=new t,s=[],l=e.workingDirectory;if(l){var c="[status, msg, msgID] = mkdir('"+l+"');";s.push(c),c="cd('"+l+"');",s.push(c)}if(e.filesToAdd)for(n=0;n<e.filesToAdd.length;n++){o=e.filesToAdd[n];var d=this._extractFileNameFromSourceUrl(o.source);o.credentials?(r=this._prepareAuthenticationRequestForSupportingFile(o.credentials),c="websave('"+d+"','"+o.source+"',"+r+");"):c="websave('"+d+"','"+o.source+"');",s.push(c),this.isZipFile(d)&&(c="unzip('"+d+"',pwd);",s.push(c))}return s=s.join(""),this.workerReady.then(function(){i.send({Eval:{mcode:s}}).then((function(e){e.fault?a.reject():a.resolve()}))}.bind(this)),a},initializeWorker:function(e){var n=new t,o=[],r=e.initializationCode;return r&&(r+=";",o.push(r)),o=o.join(""),this.workerReady.then(function(){i.send({Eval:{mcode:o}}).then((function(e){e.fault?n.reject():n.resolve()}))}.bind(this)),n},_prepareAuthenticationRequestForSupportingFile:function(e){var t="'"+e.token+"'";return e.token?" weboptions('HeaderFields', {'x-mw-gds-session-id' "+t+"})":" weboptions('Username', '"+e.username+"','Password','"+e.password+"')"},_extractFileNameFromSourceUrl:function(e){return e.split("/").pop()},isZipFile:function(e){return"zip"===e.split(".").pop()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7926)],o=i.dj.d(n,(function(e){var t=new e;return{getAddressBarService:function(){return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(204),i(418),i(7927),i(1216),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t],{constructor:function(e){this._listFolderService=n.getListFolderService(),this.messageService=new o({callback:i.hitch(this,"_responseHandler")}),this._fsuiConfig=new r,this._hiddenEntryFilter=this._fsuiConfig.getHiddenEntryFilter()},start:function(){},reset:function(){},stop:function(){this.reset()},listFolders:async function(e){var t=(await this._listFolderService.getChildren(e,!1)).folderContents.filter(e=>!1!==e.isDirectory&&this._hiddenEntryFilter(e)).sort((e,t)=>e.name.localeCompare(t.name));this.emit("listFolderResponse",{parentPath:e,directories:t})},listOfLocationOptions:async function(e){var t=a.getFileSeparator(e),i=e.substr(0,e.lastIndexOf(t)+1),n=(await this._listFolderService.getChildren(i,!1)).folderContents.filter(t=>!1!==t.isDirectory&&t.path&&t.path.startsWith(e)&&this._hiddenEntryFilter(t)).sort((e,t)=>e.name.localeCompare(t.name));this.emit("listOfLocationOptionsResponse",{parentPath:e,directories:n})},_responseHandler:function(e){"listOfLocationOptionsResponse"===e.identifier&&this.emit("listOfLocationOptionsResponse",e.data)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(219)],o=i.dj.d(n,(function(e,t,i){return e([],{_publishChannel:"",_subscribeChannel:"",_messageType:"",_callbackFunction:"",constructor:function(e){this.args=e||{},this._publishChannel=this.getChannelPrefix(),this._subscribeChannel=this.getChannelPrefix(),e&&(this.subscribe(t.hitch(this,this._handleJavaResponse)),this._messageType=e.messageType,this._callbackFunction=e.callback)},publish:function(e){i.publish(this._publishChannel,e)},subscribe:function(e){i.subscribe(this._subscribeChannel,e)},getChannelPrefix:function(){return"/matlab/addressBarServicesChannel"},_handleJavaResponse:function(e){var t=e.data;this._callbackFunction(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(204),i(241),i(2524),i(247)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=function(e){var t=r.escapeHtml(e);n.displayAlertDialog(o.ErrorDialogTitle,t,{"data-test-id":"fileDataServiceFaultDialog"})};return e([],{constructor:function(e){e=e||{},this.fileDataService=e.fileDataService,t.after(this.fileDataService,"onFileMessageFault",i.hitch(this._handleFileMessageFault),!0),t.after(this.fileDataService,"onMoveFileMessageFault",i.hitch(this._handleMoveFileMessageFault),!0),t.after(this.fileDataService,"onListFolderMessageFault",i.hitch(this._handleFileMessageFault),!0)},_handleFileMessageFault:function(e){var t;for(t=0;t<e.messageFaults.length;t+=1){var i=e.messageFaults[t];if(i){a(i.message);break}}},_handleMoveFileMessageFault:function(e){a(e.message)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7930),i(7931),i(7932),i(7933)],o=i.dj.d(n,(function(e,t){return t(e,"executiondataservice/resources/executiondataservice/nls/executiondataservice",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={typoSuggestionText:"もしかして:\n"}},function(e,t,i){e.exports={typoSuggestionText:"정정 제안:\n"}},function(e,t,i){e.exports={typoSuggestionText:"是不是想输入:\n"}},function(e,t,i){e.exports={root:{typoSuggestionText:"Did you mean:\n"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(856)],o=i.dj.d(n,(function(e,t){return e([t],{_timestampProp:"timestamp",constructor:function(e){e=e||{},Array.isArray(e.history)&&e.history.forEach((function(e){this.newItem(e)}),this)},getAttributes:function(){return["type","timestamp","value"]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{STOP:"motw.stop"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(210),i(203),i(204),i(223),i(213),i(228),i(206),i(236),i(328),i(216),i(255),i(7937),i(241),i(233),i(232),i(7938),i(225),i(828),i(2548)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return i([c,d,u],{templateString:h,idAttr:"motw-dialog-pathUpdate",FILE_NOT_ON_PATH:0,FILE_WILL_RUN:1,FILE_SHADOWED_BY_PWD:2,FILE_SHADOWED_BY_TBX:3,FILE_SHADOWED_BY_PFILE:4,FILE_SHADOWED_BY_MEXFILE:5,FILE_SHADOWED_BY_MLXFILE:6,FILE_SHADOWED_BY_MLAPPFILE:7,CHANGE_DIR_ACTION_ID:1,ADD_PATH_ACTION_ID:2,CANCEL_ACTION_ID:3,HELP_ACTION_ID:4,constructor:function(e){e=e||{},this.fileInfo=e.fileInfo,this._filename=e.fileInfo.name,this._displayName=e.displayName,this._fileStatus=e.fileStatus,this.fileService=e.fileService,this.pathService=e.pathService,this.runAction=e.runAction,this.cancelAction=e.cancelAction,this._errorText="",this._dialog=null,this._actions=this.setDialogActions,this._content=h,this._localization=m,this._content=this._content.replace("${_localization.cancel}",m.cancel),g.registerResponseHandler("FEvalResponse:AddPath",(function(e,t){this.runAction(this.fileInfo)}),this),g.registerFaultHandler("FEvalResponse:AddPath",(function(e){Log.error("Error received while trying to add file to path.",e)}),this)},getDialog:function(){return this._dialog},runFileOnChangeDir:function(){this.runAction(this.fileInfo),this._handle.remove()},setDialogActions:function(e){if(e.response===this.CHANGE_DIR_ACTION_ID)this._handle=s(this.pathService,"CWDChanged",n.hitch(this,"runFileOnChangeDir")),this.fileService.currentDirectory(this.fileInfo.location);else if(e.response===this.ADD_PATH_ACTION_ID&&this._fileStatus!==this.FILE_SHADOWED_BY_PWD){var t={FEval:{function:"addpath",arguments:[this.fileInfo.location],nargout:1}};g.sendMessage(t,{},"AddPath")}else(e.response===this.CANCEL_ACTION_ID||this._fileStatus===this.FILE_SHADOWED_BY_PWD&&e.response===this.CANCEL_ACTION_ID-1)&&"function"==typeof this.cancelAction&&this.cancelAction()},setNotificationActions:function(e){},postCreate:function(){var t="",i="",o="",r=[m.changeDir,m.addPath,m.cancel],a=!1;switch(this._fileStatus){case this.FILE_NOT_ON_PATH:t=l.substitute(m.notOnPath,[this._displayName]),i=m.solutionChangeOrAdd;break;case this.FILE_SHADOWED_BY_PWD:r=[m.changeDir,m.cancel],t=l.substitute(m.shadowedByPwd,[this._displayName]),i=m.solutionChangeDir,!0;break;case this.FILE_SHADOWED_BY_TBX:t=l.substitute(m.shadowedByPath,[this._displayName]),i=m.solutionChangeOrAdd;break;case this.FILE_SHADOWED_BY_PFILE:o=m.shadowerPcode,a=!0;break;case this.FILE_SHADOWED_BY_MEXFILE:o=m.shadowerMex,a=!0;break;case this.FILE_SHADOWED_BY_MLXFILE:o=l.substitute(m.shadowerMlx,[f.nameFromPath(this._displayName)]),a=!0;break;case this.FILE_SHADOWED_BY_MLAPPFILE:o=l.substitute(m.shadowerMlapp,[f.nameFromPath(this._displayName)]),a=!0}a&&(r=[m.ok],this._actions=this.setNotificationActions,t=m.fileCannotRun,i=this._displayName);var s={buttonText:r,defaultAcceptButton:this.CHANGE_DIR_ACTION_ID,defaultCancelButton:this.CANCEL_ACTION_ID,"data-testid":"pathUpdateDialog",icon:"info",closeCallback:n.hitch(this,this._actions)},c=e.toDom(this._content);c.querySelector(".pathUpdateDialog .messageTitle").textContent=t,c.querySelector(".pathUpdateDialog .messageDesc").textContent=i,c.querySelector(".pathUpdateDialog .messageDetails").textContent=o,a||c.querySelector(".pathUpdateDialog .messageTitle").classList.add("titleBold"),this._dialog=p.displayConfirmDialog(m.matlabEditor,c,s),this._dialog.domNode.classList.add("wideDialog")}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="pathUpdateDialog">\n <div class="messageTitle"></div>\n <div class="messageDesc"></div>\n <span class="messageDetails"></span>\n</div>\n'},function(e,t,i){var n,o;n=[i(218),i(220),i(7939),i(7940),i(7941),i(7942)],o=i.dj.d(n,(function(e,t){return t(e,"executiondataservice/resources/dialog/nls/dialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={addPath:"パスに追加",cancel:"キャンセル",changeDir:"フォルダーの変更",close:"閉じる",continueMsg:"新規セッションの開始",exit:"終了",fileCannotRun:"MATLAB はこのファイルを実行できません。",gdsNotificationsFileChangedLabel:"このファイルの最新バージョンを取得 (編集した内容が上書きされる可能性があります)<br><br>${filename}",gdsNotificationsFileChangedTitle:"ファイルは変更されています",matlabEditor:"MATLAB エディター",notOnPath:"ファイル ${0} は現在のフォルダーや MATLAB パス上で見つかりません。",ok:"OK",save:"保存",shadowedByPath:"${0} は MATLAB パスにおいてこのファイルより優先されるため、MATLAB はこのファイルを実行できません。",shadowedByPwd:"${0} は現在の作業フォルダーにおいてこのファイルより優先されるため、MATLAB はこのファイルを実行できません。",shadowerMex:"が優先されます。影響を与えているファイルを削除して再度実行してください。",shadowerMlapp:"が優先されます。\n\n${0} の名前を変更するか、これを MATLAB パスから削除して、再度実行してください。",shadowerMlx:"が優先されます。\n\n${0} の名前を変更するか、これを MATLAB パスから削除して、再度実行してください。",shadowerPcode:"が優先されます。P ファイルを削除するか、またはこのファイルで関数 pcode を実行してください。",solutionChangeDir:"このファイルを実行するには、MATLAB の現在のフォルダーを変更しなければなりません。",solutionChangeOrAdd:"このファイルを実行するには、MATLAB の現在のフォルダーを変更するか、そのフォルダーを MATLAB パスに追加します。",switchPanes:"ウィンドウの切り替え",warningDesc:"以下に新しいファイル名を指定してください:",warningTitle:"ファイル名を変更しない限り、MATLAB はファイル _file_ を実行できません。"}},function(e,t,i){e.exports={addPath:"경로에 추가",cancel:"취소",changeDir:"폴더 변경",close:"닫기",continueMsg:"새 세션을 시작합니다.",exit:"종료",fileCannotRun:"다음과 같은 이유로 MATLAB에서 이 파일을 실행할 수 없습니다.",gdsNotificationsFileChangedLabel:"이 파일의 최신 버전 가져오기(지금까지의 수정 내용을 덮어쓸 수 있음)<br><br>${filename}",gdsNotificationsFileChangedTitle:"파일이 변경됨",matlabEditor:"MATLAB 편집기",notOnPath:"${0} 파일을 현재 폴더 또는 MATLAB 경로에서 찾을 수 없습니다.",ok:"확인",save:"저장",shadowedByPath:"MATLAB 경로에서 ${0}이(가) 이 파일을 가리고 있어 MATLAB에서 해당 파일을 실행할 수 없습니다.",shadowedByPwd:"현재 작업 폴더에서 ${0}이(가) 이 파일을 가리고 있어 MATLAB에서 해당 파일을 실행할 수 없습니다.",shadowerMex:"이(가) 이 파일을 가리고 있습니다. 가리는 파일을 삭제하고 다시 시도하십시오.",shadowerMlapp:"이(가) 이 파일을 가리고 있습니다.\n\n${0}의 이름을 바꾸거나 MATLAB 경로에서 이 파일을 제거한 후 다시 시도하십시오.",shadowerMlx:"이(가) 이 파일을 가리고 있습니다.\n\n${0}의 이름을 바꾸거나 MATLAB 경로에서 이 파일을 제거한 후 다시 시도하십시오.",shadowerPcode:"이(가) 이 파일을 가리고 있습니다. P 파일을 삭제하거나 이 파일에 대해 pcode 함수를 실행하십시오.",solutionChangeDir:"이 파일을 실행하려면 MATLAB 현재 폴더를 변경해야 합니다.",solutionChangeOrAdd:"이 파일을 실행하려면 MATLAB 현재 폴더를 변경하거나 해당 폴더를 MATLAB 경로에 추가하십시오.",switchPanes:"창 전환",warningDesc:"아래에 새 파일 이름을 지정하십시오.",warningTitle:"_file_ 이름의 파일은 MATLAB에서 실행할 수 없습니다. 실행하려면 파일 이름을 변경하십시오."}},function(e,t,i){e.exports={addPath:"添加到路径",cancel:"取消",changeDir:"更改文件夹",close:"关闭",continueMsg:"开始新会话",exit:"退出",fileCannotRun:"MATLAB 无法运行该文件,因为",gdsNotificationsFileChangedLabel:"获取此文件的最新版本(您可以覆盖您所做的任何编辑)<br><br>${filename}",gdsNotificationsFileChangedTitle:"文件已更改",matlabEditor:"MATLAB 编辑器",notOnPath:"在当前文件夹或 MATLAB 路径中未找到文件 ${0}。",ok:"确定",save:"保存",shadowedByPath:"MATLAB 无法运行该文件,因为 MATLAB 路径中存在 ${0},导致该文件被遮蔽。",shadowedByPwd:"MATLAB 无法运行该文件,因为当前工作文件夹中存在 ${0},导致该文件被遮蔽。",shadowerMex:"遮蔽了它。请删除遮蔽文件,然后重试。",shadowerMlapp:"遮蔽了它。\n\n请重命名 ${0} 或将其从 MATLAB 路径中删除,然后重试。",shadowerMlx:"遮蔽了它。\n\n请重命名 ${0} 或将其从 MATLAB 路径中删除,然后重试。",shadowerPcode:"遮蔽了它。请删除 P 文件,或对此文件运行 pcode 函数。",solutionChangeDir:"要运行此文件,您必须更改 MATLAB 当前文件夹。",solutionChangeOrAdd:"要运行此文件,您可以更改 MATLAB 当前文件夹,或者将其文件夹添加到 MATLAB 路径。",switchPanes:"切换窗口",warningDesc:"请在下面指定新文件名:",warningTitle:"除非您更改文件 _file_ 的名称,否则 MATLAB 将无法运行该文件。"}},function(e,t,i){e.exports={root:{addPath:"Add to Path",cancel:"Cancel",changeDir:"Change Folder",close:"Close",continueMsg:"Start new session",exit:"Exit",fileCannotRun:"MATLAB cannot run this file because",gdsNotificationsFileChangedLabel:"Get the latest version of this file (you may overwrite any edits you've made)<br><br>${filename}",gdsNotificationsFileChangedTitle:"File has changed",matlabEditor:"MATLAB Editor",notOnPath:"File ${0} is not found in the current folder or on the MATLAB path.",ok:"OK",save:"Save",shadowedByPath:"MATLAB cannot run this file because ${0} shadows it in the MATLAB path.",shadowedByPwd:"MATLAB cannot run this file because ${0} shadows it in the current working folder.",shadowerMex:"shadows it. Delete the shadowing file and try again.",shadowerMlapp:"shadows it.\n\nRename ${0} or remove it from the MATLAB path and try again.",shadowerMlx:"shadows it.\n\nRename ${0} or remove it from the MATLAB path and try again.",shadowerPcode:"shadows it. Either delete the P-file, or run the pcode function on this file.",solutionChangeDir:"To run this file, you must change the MATLAB current folder.",solutionChangeOrAdd:"To run this file, you can either change the MATLAB current folder or add its folder to the MATLAB path.",switchPanes:"Switch Windows",warningDesc:"Specify a new file name below:",warningTitle:"MATLAB will not be able to run the file _file_ unless you change its name."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(242),i(209),i(299),i(232),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{constructor:function(e){e=e||{},this._actionService=e.actionService,o.registerResponseHandler("OpenWithBrowser",this._handleOpenWithBrowser,this)},_handleOpenWithBrowser:function(e,o){e.forEach((function(e){var o=e.uri;i.assert(o,"No URI was sent in the response"),/^(\/|[a-z]:\\).*/i.test(o)?this._actionService.executeAction(n.OPEN_FILE,{fileInfo:r.fileInfoFromPath(o)}):(/^https?:\/\/.*/i.test(o)||(o="http://"+o),t.global.open(o,"_blank"))}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(856),i(509),i(7945),i(7946),i(1626),i(280)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([],{_featureStore:null,_executionService:null,constructor:function(e){if(e=e||{},this._featureStore=new n,this._executionService=e.executionService,!this._executionService)throw new r("Can't create FeatureDataService: required ExecutionDataService reference not passed to constructor.");this._executionService.intercept("motw.internal.featureList",this._listFeatures,this),e.pollableFeatures&&e.pollableFeatures.forEach((function(e){this.addFeature(new a(e))}),this),s.promise.then(t.hitch(this,(function(e){var t=e&&e.featureSwitches?e.featureSwitches:[];l.featureSwitches=t.concat(l.featureSwitches);try{this.processFeatureSwitches(l.featureSwitches)}catch(e){i.log("Error while processing feature switches")}})))},addFeature:function(e){if(!(e instanceof o))throw new r("Can't add feature: it's not a subclass of MOTW.motw.feature.Feature");if(this.getFeature(e.name()))throw new r("Can't add feature: already added to service");return this._executionService.intercept(e.name(),t.hitch(this,this._processEvalFeatureSwitch,e.name())),this._featureStore.newItem(t.mixin({id:e.name()},e))},removeFeature:function(e){var t=this.getFeature(e);if(!t)throw new r("Can't remove feature: "+e+" not in this FeatureDataService");this._featureStore.deleteItem(t),this._executionService.removeIntercept(t.name())},enableFeature:function(e,t){var n=this.getFeature(e);if(!n)throw new r("Can't enable feature: "+e+" not in this FeatureDataService");try{n.enable.call(n.executionScope())}catch(t){i.warn("Error enabling feature: "+e+", "+t)}t&&this._featureStore.setValue(n,"saveInSession",!0)},disableFeature:function(e){var t=this.getFeature(e);if(!t)throw new r("Can't disable feature: "+e+" not in this FeatureDataService");try{t.disable.call(t.executionScope())}catch(t){i.warn("Error disabling feature: "+e+", "+t)}t.saveInSession&&this._featureStore.setValue(t,"saveInSession",!1)},getSessionData:function(){var e="";return this._featureStore.fetch({query:{saveInSession:!0},onItem:function(t){t&&(e.length>0&&(e+=","),e+=t.name())}}),e},setSessionData:function(e){e&&e.split(",").forEach((function(e){try{this.enableFeature(e,!0)}catch(e){i.warn("Feature "+name+" is not registered - ignoring request to turn feature: ON from Session Data")}}),this)},processFeatureSwitches:function(e){e.forEach((function(e){var t=e.name,n=e.status;this._isFeatureRegistered(t)?"ON"===e.status?this.enableFeature(t):"OFF"===e.status&&this.disableFeature(t):i.warn("Feature "+t+" is not registered - ignoring request to turn feature: "+n+" from FeatureSwitches (likely a URL)")}),this)},reset:function(){var e;this._featureStore.fetch({onComplete:function(t){e=t}}),e.forEach((function(e){this.disableFeature(e.name())}),this)},_processEvalFeatureSwitch:function(e,t){var i,n,o,r=t?t.toLocaleLowerCase().trim().split(":"):[],a={message:"",isError:!1};return r.length>0&&(i=r[0],n="always"===r[1],"on"===i?this.enableFeature(e,n):"off"===i&&this.disableFeature(e)),(o=this.getFeature(e))&&(a.message+="\n "+e,a.message+=" : ",a.message+=o.featureState()+"\n\n"),a},_listFeatures:function(){var e={message:"",isError:!1};return this._featureStore.fetch({onItem:function(t){e.message||(e.message="\n"),e.message+=" "+t.name(),e.message+=" : ",e.message+=t.featureState(),e.message+=t.saveInSession?" (always)":"",e.message+="\n"}}),e.message?e.message+="\n":e.message="\n No features registered.\n\n",e},getFeature:function(e){var t;return this._featureStore.fetch({query:{id:e},onItem:function(e){e&&(t=e)}}),t},_isFeatureRegistered:function(e){return!!this.getFeature(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([Error],{constructor:function(e){this.message=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(509)],o=i.dj.d(n,(function(e,t){return e([t],{enabled:!1,enableFeature:function(){this.enabled=!0},disableFeature:function(){this.enabled=!1},isEnabled:function(){return this.enabled}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(2558),i(290)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(e){e=e||{},this._executionService=e.executionService},addShadow:function(e){this._executionService.intercept(e,(function(){return{message:t.replace(o.commandNotSupported,{cmd:e}),isError:!0}}),this)},removeShadow:function(e){this._executionService.removeIntercept(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(206),i(204),i(222),i(7949),i(241),i(247)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([o],{constructor:function(e){e=e||{},this.pathDataService=e.pathDataService,i(this.pathDataService,"CWDFault",n.hitch(this,(function(e){this._handleSetCWDMessageFault(e)})))},_handleSetCWDMessageFault:function(e){var t;t=e,a.displayAlertDialog(r.cwdFaultErrorDialogTitle,s.escapeHtml(t.data),{"data-test-id":"cwdFaultDialog"}),this.emit("CWDFault",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7950)],o=i.dj.d(n,(function(e,t){return t(e,"pathdataservice-js/l10n/nls/PathDataServiceMessages",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{cwdFaultErrorDialogTitle:"Error Changing Folder"}}},function(e,t,i){var n,o;n=[i(7952)],o=i.dj.d(n,(function(e){var t=new e;return{getSearchService:function(){return t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(7953),i(219),i(516),i(517),i(345),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){let c=s.default,d=r.default,u=a.default;return e([i],{constructor:function(){this._startedDeferred=null,this._serviceStarted=!1,this._preStartupRequestsQueue=[],this._requestManager=new n,this._mf0Model=new mf.zero.Model,this._mf0Listener=new c,this._mf0Listener.transactionCommitted=this._handleTransactionReport.bind(this),this._mf0Model.addShallowListener(this._mf0Listener),this._mf0Channel=new d({inChannel:"/filename_searchservice/update",outChannel:"/filename_searchservice/update"})},start:function(){return this._isClientStarted()||(this._startedDeferred=new t,Promise.all([o.subscribe("/filename_searchservice/started",this._handleServerStarted,this),this._mf0Channel.start()]).then(()=>{o.publish("/filename_searchservice/start",{})})),this._startedDeferred.promise},_queueRequestBeforeStartup:function(e){this._preStartupRequestsQueue.push(e)},_processQueuedRequests:function(){for(;this._preStartupRequestsQueue.length>0;){this._preStartupRequestsQueue.shift()()}},performSearch:function(e){e.id=l.generateUuid(),e.deferred=new t,this._requestManager.add(e);const i={id:e.id,promise:e.deferred.promise},n={id:e.id,location:e.location,keyword:e.searchText,matchCase:!1,wholeWord:!1,includeSubfolders:!0};return this._serviceStarted?this._communicator.performSearch.emit(JSON.stringify(n)):this._queueRequestBeforeStartup(()=>{this._communicator.performSearch.emit(JSON.stringify(n))}),i},cancelSearch:function(e){this._requestManager.cancel(e),this._serviceStarted?this._communicator.cancelSearch.emit(e):this._queueRequestBeforeStartup(()=>{this._communicator.cancelSearch.emit(e)})},_handleTransactionReport:function(e){e.processAdded(e=>{switch(e.getMetaClass().name){case"EventCommunicator":this._communicator||(this._communicator=e,this._registerListeners(),this._startedDeferred.resolve(!0),this._processQueuedRequests(),this._serviceStarted=!0);break;case"SearchResult":const{id:t}=e,i=this._requestManager.getRequest(t);if(void 0===i)return;let n={};Object.defineProperties(n,{name:{get:()=>e._name,enumerable:!0},path:{get:()=>e._path,enumerable:!0}}),i.newResultCallback(n)}})},_handleServerStarted:async function(){if([...this._mf0Model.getTopLevelElements().values()].length>0)return;const e=new u(this._mf0Model,this._mf0Channel);e.start(),await e.fetchModelWithDataDefinition()},_isClientStarted:function(){return null!==this._startedDeferred},_registerListeners:function(){this._communicator.searchCompleted.registerHandler((e,t)=>{this._requestManager.complete(t)}),this._communicator.searchCanceled.registerHandler((e,t)=>{this._requestManager.cancel(t)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){this._requestMap=new Map},add:function(e){const{id:t}=e;this._requestMap.set(t,e)},getRequest:function(e){return this._requestMap.get(e)},isEmpty:function(){return!this._requestMap},cancel:function(e){this._requestMap.delete(e)},complete:function(e){const t=this._requestMap.get(e);void 0!==t&&(t.deferred.resolve("Request was completed"),this._requestMap.delete(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(262),i(214),i(206),i(225),i(210),i(213),i(219)],o=i.dj.d(n,(function(e,t,n,o,r,a,s,l){var c={},d=e(null,{constructor:function(e){this.subscriptionHandler=l.subscribe("/datatoolsservices/DialogHandler",this._handleMessage,this)},_handleMessage:function(e){var t=this;if(e&&e.data&&e.data.dialogHandler){var n=e.data.dialogHandler;Promise.resolve().then((function(){var o=[require(n,null,!1)];Promise.all(i.dj.w(o)).then(function(n){return function(i){var n=new i(e.data);if(n&&n.domNode)if(n.createNewDialog){var o=t.createDialog(n);c[n.ID]=o}else c[n.ID]&&c[n.ID].bringToTop()}.apply(null,i.dj.u(n))}.bind(this))})).catch(i.oe)}},createDialog:function(e){var i=e.titleString||"",r=e.domNode,a=t.createDialog({title:i,content:r,"data-test-id":e.testID||"PopoutDialog",className:e.className||"PopoutDialogClass",closable:!0,draggable:!0,resizable:!0});this._updateCssStyles(e,a),a.on("resize",(function(t){e.resize(t)}));var s=this;return a.on("close",(function(t){e.close(t),s._removeDialogFromMap(e.ID)})),n.after(e,"destroy",(function(){a.domNode&&(a.close(),s._removeDialogFromMap(e.ID))})),o.emit(e.domNode,"dialogShown",{bubbles:!0,canceleable:!0}),a},_removeDialogFromMap:function(e){c.hasOwnProperty(e)&&delete c[e]},_updateCssStyles:function(e,t){var i=e.width?e.width+"px":"auto",n=e.height?e.height+"px":"auto";s.set(t.domNode,{width:i,height:n});var o=r(".mwDialogBody",t.domNode);s.set(o[0],{padding:"0px"}),e.contentClassName&&t._contentWidget&&a.add(t._contentWidget.domNode,e.contentClassName)},stop:function(){l.unsubscribe("/datatoolsservices/DialogHandler")}});return d.getInstance=function(e){return d._instance||(d._instance=new d(e)),d._instance},{getInstance:d.getInstance}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(232)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(){this.ServiceToEndPointsMap={USAGE_DATA_COLLECTION_SERVICE:{service:"USAGE_DATA_COLLECTION_SERVICE",endpoint:""},HELP_DATA_SERVICE:{service:"HELP_DATA_SERVICE",endpoint:"",serverRoot:"/help/search",serviceURI:""}},i.registerResponseHandler("ServiceRegistryResponse",this._handleServiceRegistryResponse,this),i.registerDefaultMessageFactory("ServiceRegistry",this.updateAllServiceEndPoints,this)},_handleServiceRegistryResponse:function(e){var t=this;e instanceof Array&&e.forEach((function(e){e.properties.endpoint&&(t.ServiceToEndPointsMap[e.properties.service]=e.properties)})),this.emit("serviceSet",this.ServiceToEndPointsMap)},updateAllServiceEndPoints:function(){var e,t=[];for(e in this.ServiceToEndPointsMap)this.ServiceToEndPointsMap.hasOwnProperty(e)&&t.push({properties:{service:e}});return t},getServiceEndPointsMap:function(){return this.ServiceToEndPointsMap}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(304),i(484),i(7957),i(2559)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{modulePath:"gbtfigure_uicontainer/UIContainerDivFigureFactory",constructor:function(){this._divFigureFactory=new o},createWidget:function(e,t,i){if(!e||!t||!i)throw new Error("All three parameters to createWidget() are required.");var o={state:t,handler:new n(i,e)};return this._divFigureFactory.createWidget(o)},createProperties:function(e,i,n){var o=new t(void 0===n?{}:n);if(o.origin=t.BOTTOM_LEFT_ORIGIN,o.updateSizeWhenHidden=!0,o.channel=i.channel,n&&"closable"in n||(o.closable=!0),n&&"documentType"in n||(i.ToolsStyle&&"toolstrip"!==i.ToolsStyle?o.documentType="legacyfigure":o.documentType="defaultfigure"),n&&"description"in n||(o.description="Figure"),n&&"title"in n||(o.title=i.Title),n&&"documentId"in n||(o.documentId=i.channel),n&&"isDocked"in n||(o.isDocked="docked"===i.WindowStyle),!o.isDocked){var r={x:i.Position[0],y:i.Position[1],w:i.Position[2],h:i.Position[3]};o.innerBounds=r}return o},getCssFiles:function(){return this._divFigureFactory.getCssFiles()},destroyWidget:function(e,t){},getState:function(e,t){return e.getFigureState()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(256),i(230),i(304),i(1627),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i,o],{constructor:function(e,t){this._properties=e,this._container=t,e.updateSizeWhenHidden=!0,this._figureControllerViewCreated=!1,this._properties.canClose=function(){return new Promise(function(e,t){this.handleCloseApprovedFromUIContainer().then(e).catch(t)}.bind(this))}.bind(this),this._UIContainerWindowClosingPromise={}},handleCloseApprovedFromUIContainer:function(){return new Promise(function(e,t){var i=r.generateUuid();this._UIContainerWindowClosingPromise[i]={resolve:e,reject:t},this._divFigureMsgFromClientHandler.handleEventFromClient("windowClosingRequest",i)}.bind(this))},setPropertyValueFromServer:function(e,t){switch(e){case"Position":this._setPositionFromServer(t);break;case"Resize":this._setResizeFromServer(t);break;case"Title":this._figureControllerViewCreated&&this._setTitleFromServer(t);break;case"Visible":this._setVisibleFromServer(t);break;case"WindowState":this._setWindowStateFromServer(t);break;case"WindowStyle":this._setWindowStyleFromServer(t);break;default:throw new Error("Server attempt to set value of unsupported property: "+e)}},_setPositionFromServer:function(e){if(this._isRenderable()){var t={x:e[0],y:e[1],w:e[2],h:e[3]};if(!0===this._properties.isDocked||void 0!==this._properties.panelId){var i=[0,0,(t=this._properties.innerBounds).w,t.h];this._divFigureMsgFromClientHandler.setPropertyValueFromClient("Position",i)}else this._properties.set(n.INNER_BOUNDS,t)}},_isRenderable:function(){return!this._properties.get("isPhantom")},_setResizeFromServer:function(e){this._properties.window&&this._properties.window.set("resizable",e)},_setTitleFromServer:function(e){this._properties.set(n.TITLE,e)},_setVisibleFromServer:function(e){console.warn("Visible is not currently supported")},_setWindowStateFromServer:function(e){!0===this._properties.get(n.IS_DOCKED)||void 0!==this._properties.panelId?this._divFigureMsgFromClientHandler.setPropertyValueFromClient("WindowState","normal"):this._properties.window.set("state",e)},_setWindowStyleFromServer:function(e){if("modal"===e)console.warn('WindowStyle "modal" not yet supported');else{var t="docked"===e;void 0!==this._properties.panelId&&(t=!0),this._properties.set(n.IS_DOCKED,t)}},handleEventFromServer:function(e,t){switch(e){case"figureControllerViewCreated":this._figureControllerViewCreated=!0;break;case"windowClosed":this._windowClosed();break;case"windowClosingRejected":this._windowClosingRejected(t);break;case"widgetDestroyed":this._removeWatches();break;default:throw new Error("Attempt to process unsupported event from server: "+e)}},_windowClosed:function(){this._properties.canClose=function(){return!0},Object.keys(this._UIContainerWindowClosingPromise).forEach(function(e){this._UIContainerWindowClosingPromise[e].resolve()}.bind(this)),this._properties.set(n.IS_OPEN,!1)},_windowClosingRejected:function(e){this._UIContainerWindowClosingPromise[e]&&(this._UIContainerWindowClosingPromise[e].reject(),delete this._UIContainerWindowClosingPromise[e])},_removeWatches:function(){this._watchIS_OPEN.unwatch(),this._watchTITLE.unwatch(),this._watchIS_DOCKED.unwatch(),this._watchInnerPosition.unwatch()},registerMsgFromClientHandler:function(e){this._divFigureMsgFromClientHandler=e,this._watchIS_OPEN=this._properties.watch(n.IS_OPEN,this.watchIS_OPEN.bind(this)),this._watchTITLE=this._properties.watch(n.TITLE,this.watchTITLE.bind(this)),this._watchIS_DOCKED=this._properties.watch(n.IS_DOCKED,this.watchIS_DOCKED.bind(this)),this._watchInnerPosition=this._properties.watch(n.INNER_BOUNDS,this.watchInnerPosition.bind(this))},watchIS_OPEN:function(e,t,i){"isOpen"!==e||!0!==t||!1!==i||this._properties.panelId&&!this._properties.isRemoving||!1===this._properties.destroyOnClose&&!this._container.isClosing()||this._divFigureMsgFromClientHandler.handleEventFromClient("viewDestroyed")},watchTITLE:function(e,t,i){t!==i&&this._divFigureMsgFromClientHandler.setPropertyValueFromClient("Title",i)},watchIS_DOCKED:function(e,t,i){if(t!==i){var n=i?"docked":"normal";this._divFigureMsgFromClientHandler.setPropertyValueFromClient("WindowStyle",n)}},watchInnerPosition:function(e,t,i){if(t!==i){var n=[i.x,i.y,i.w,i.h];this._properties.isDocked&&(n[0]=0,n[1]=0),this._divFigureMsgFromClientHandler.setPropertyValueFromClient("Position",n)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(256),i(206),i(230),i(219),i(369),i(7959),i(2560),i(7960),i(1171),i(1627),i(2213)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([n,s,l,c],{constructor:function(e,t){if(!t.isInstanceOf(d))throw new Error("handler must be an instance of AppMsgFromServerInterface");t.registerMsgFromClientHandler(this),this._handleMsgFromServer=t,this._state=e,this._fcpWidget=new a({handler:this}),this._fcpWidget.domNode.classList.add("figureContentPane"),this._ctsChannel=e.ClientToServer+e.channel,this._stcChannel=e.ServerToClient+e.channel,this._isSubscribed=!1},getWidget:function(){return this._fcpWidget},subscribe:function(){try{o.subscribe(this._stcChannel,this.handleAdminMsgFromServer,this).then(this.subscribeDone.bind(this))}catch(e){throw new Error("error in subscribe: "+e)}},subscribeDone:function(){o.publish(this._ctsChannel,{eventType:"clientReady"}),this._isSubscribed=!0},_unsubscribe:function(){this._isSubscribed&&(o.unsubscribe(this._stcChannel,this.handleAdminMsgFromServer,this),this._isSubscribed=!1)},handleAdminMsgFromServer:function(e){"windowClosed"===e.data.eventType&&this._unsubscribe(),this._handleMsgFromServer.handleEventFromServer(e.data.eventType,e.data.value)},sendViewInDomMsg:function(){this._figureViewIsInDom=!0,void 0!==this._figureViewIsInDomTopicName&&(this._fcpWidget.resize(),t.publish(this._figureViewIsInDomTopicName,this))},destroy:function(){var e;this._handleMsgFromServer._properties&&(!0===this._handleMsgFromServer._properties.isDocking?e="docked":!0===this._handleMsgFromServer._properties.isUndocking&&(e="normal")),void 0!==e&&(this.setPropertyValueFromClient("WindowStyle",e),o.messageService.flush()),this._handleMsgFromServer.handleEventFromServer("widgetDestroyed"),this._unsubscribe(),this.inherited(arguments),r.cleanup(this._state.channel),this._fcpWidget.destroy()},getFigureState:function(){return this._state},startupCalled:function(){this.sendViewInDomMsg()},widgetDestroyed:function(){this.destroy()},setPropertyValueFromClient:function(e,t){if(void 0===this._handleMsgFromClient)console.log("setPropertyValueFromClient() called before FigureControllerMsgFromClientInterface instance registered: "+e+" set to "+t);else{switch(e){case"Position":this._state.Position=t;break;case"Title":this._state.Title=t;break;case"Visible":this._state.Visible=t;break;case"Resize":this._state.Resize=t;break;case"WindowState":this._state.WindowState=t;break;case"WindowStyle":this._state.WindowStyle=t;break;default:console.log("Unsupported property "+e+" set by Client to "+t)}this._handleMsgFromClient.setPropertyValueFromClient(e,t)}},handleEventFromClient:function(e,t){switch(e){case"viewDestroyed":this._viewDestroyed();break;case"windowClosingRequest":this._windowClosingRequest(t);break;default:throw new Error("Attempt to process unsupported event from client: "+e)}},_windowClosingRequest:function(e){o.publish(this._ctsChannel,{eventType:"windowClosingRequest",eventId:e})},_viewDestroyed:function(){o.publish(this._ctsChannel,{eventType:"viewDestroyed"}),this._unsubscribe()},setPropertyValueFromServer:function(e,t){switch(e){case"Position":this._state.Position=t;break;case"Title":this._state.Title=t;break;case"Visible":this._state.Visible=t;break;case"Resize":this._state.Resize=t;break;case"WindowState":this._state.WindowState=t;break;case"WindowStyle":this._state.WindowStyle=t;break;default:console.log("Unsupported property "+e+" set by Server to "+t)}this._handleMsgFromServer.setPropertyValueFromServer(e,t)},setUniqueFigureId:function(e){this._figureViewIsInDomTopicName="WebFigure/FigureViewIsInDom/"+e,void 0!==this._figureViewIsInDom&&(this._fcpWidget.resize(),t.publish(this._figureViewIsInDomTopicName,this)),this._handleMsgFromServer.handleEventFromServer("figureControllerViewCreated")},registerMsgFromClientHandler:function(e){if(!e.isInstanceOf(u))throw new Error("handler must be an instance of FigureControllerMsgFromClientInterface");this._handleMsgFromClient=e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(276),i(2560)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e){if(!e.handler.isInstanceOf(i))throw new Error("handler must be an instance of MsgFromFigureContentPaneInterface");this._fcpHandler=e.handler},startup:function(){this.inherited(arguments),this.domNode.setAttribute("tabIndex","-1"),this._fcpHandler.startupCalled()},destroy:function(){this._destroyed||(this.inherited(arguments),this._fcpHandler.widgetDestroyed())},getFigureState:function(){return this._fcpHandler.getFigureState()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{setPropertyValueFromClient:function(e,t){throw new Error("setPropertyValueFromClient() unimplemented function")},handleEventFromClient:function(e,t){throw new Error("handleEventFromClient() unimplemented function")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(219),i(209)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{_divFigureChannel:"/gbtweb/divfigure",constructor:function(e){n.assert(e.documentFactory,"documentFactory is required to initialize DivFigureWidgetManager"),n.assert(e.uiContainer,"uiContainer is required to initialize DivFigureWidgetManager"),n.assert(e.layoutService,"layoutService is required to initialize DivFigureWidgetManager"),this.documentFactory=e.documentFactory,this.uiContainer=e.uiContainer,this.layoutService=e.layoutService,this._figureMap={},this.messageService=e.messageService?e.messageService:i},subscribe:function(){var e=!0;try{this.messageService.subscribe(this._divFigureChannel+"/*",this._handleMessage,this)}catch(t){e=!1}return e},refreshFigures:function(){this.messageService.publish(this._divFigureChannel+"/figureRefresh",{})},_handleMessage:function(e){e.channel.indexOf("figureCreated")>0&&this._createDivFigureWidget(e.data)},_createDivFigureWidget:function(e){var t=this.documentFactory.createProperties(this.uiContainer,e);this.uiContainer.addDocument(null,t,e)},reset:function(){Object.keys(this._figureMap).forEach((function(e){var t=this._figureMap[e];t&&t.destroy()}),this);this._figureMap={},this.messageService.unsubscribe(this._divFigureChannel+"/*")},_getDivFigureWidget:function(e){return this._figureMap[e]},destroy:function(){this.inherited(arguments),this._figureMap={}}})}),e,t),e.exports=o},function(e,t,i){e.exports={figure:"Figure",explore:"座標軸",fileTabTitle:"ファイル",toolsTabTitle:"ツール",editTabTitle:"編集",plotEditTitle:"編集",insertTabTitle:"挿入",styleSectionTitle:"スタイル",reusePlotSectionTitle:"プロットの再利用",axesSectionTitle:"座標軸",scaleSectionTitle:"スケール",directionSectionTitle:"方向",limitSectionTitle:"範囲",linkTitle:"リンク",newFigure:"新規",openTab:"開く",closeTab:"閉じる",clearFigure:"Figure のクリア",save:"保存",saveAs:"名前を付けて保存",generateCode:"コード生成...",inspector:"インスペクター",plotEdit:"編集",plotEditDescription:"プロット編集モードをアクティブにします",brushing:"ブラシ選択",colorMap:"カラーマップ",camera:"カメラ ツール",cameraDescription:"カメラ ビュー ツールを開きます",link:"リンク",statistics:"データの統計",statisticsDescription:"プロットに統計値を追加します",fitting:"基本的な近似",fittingDescription:"プロットに近似ラインを追加します",print:"印刷",printPreview:"印刷プレビュー",copyFigure:"Figure のコピー",copyFigureDescription:"Figure の内容をクリップボードにコピーします",codeGen:"コード生成",gridlines:"グリッド線",annotationsSectionTitle:"注釈",subplotSectionTitle:"座標軸",labelsAndTitle:"タイトル\nとラベル",legends:"凡例",grids:"グリッド",annotations:"注釈",xlabel:"X ラベル",xlabelDescription:"X 軸ラベルを挿入します",ylabel:"Y ラベル",ylabelDescription:"Y 軸ラベルを挿入します",title:"タイトル",titleDescription:"タイトルを挿入します",legend:"凡例",legendDescription:"凡例を挿入します",removeLegend:"凡例の削除",removeLegendDescription:"すべての凡例を削除します",colorbar:"カラー バー",colorbarDescription:"カラー バーを挿入します",removeColorbar:"カラー バーの削除",removeColorbarDescription:"すべてのカラー バーを削除します",xGrid:"X グリッド",xgridDescription:"X 軸グリッド ラインを表示します",yGrid:"Y グリッド",ygridDescription:"Y 軸グリッド ラインを表示します",grid:"グリッド",gridDescription:"グリッド ラインを表示します",removeGrid:"グリッドの削除",removeGridDescription:"すべてのグリッド ラインを削除します",line:"ライン",lineDescription:"ラインの注釈を追加します",arrow:"矢印",arrowDescription:"矢印の注釈を追加します",textArrow:"テキスト矢印",textArrowDescription:"テキスト矢印の注釈を追加します",doubleArrow:"双方向矢印",doubleArrowDescription:"双方向矢印の注釈を追加します",textSectionTitle:"テキスト",colorSectionTitle:"色",axesSectionTitle:"座標軸",toolsSectionTitle:"ツール",lineSectionTitle:"ライン",outlineColor:"エッジ",backgroundColor:"塗りつぶし",insertAxes:"レイアウト",insertAxesDescription:"レイアウトに座標軸を追加します",toggleLegendDescription:"凡例を切り替えます",toggleColorbarDescription:"カラー バーを切り替えます",pinToAxes:"表示を座標軸に固定する",alignTool:"ツールの整列",axisTight:"狭い",axisBox:"ボックス",axisOff:"オフ",linkData:"データのリンク",linkAxes:"座標軸のリンク",linkplot:"プロットのリンク",linkplotdescription:"プロットをリンク/リンク解除",linkDataDescription:"プロットをデータにリンクします",optionMenu:"オプション",saveOptions:"保存オプション",exportOptions:"エクスポート オプション",printOptions:"印刷オプション",exportAll:"エクスポート",exportPNG:"PNG にエクスポート",exportPDF:"PDF にエクスポート",holdOn:"ホールド オン",font:"フォント",fontIncrease:"フォントのスケール アップ",fontDecrease:"フォントのスケール ダウン",bold:"太字",italics:"イタリック",alignLeft:"左揃え",alignRight:"右揃え",alignCenter:"中央揃え",fontColor:"フォント カラー",backgroundColor:"塗りつぶし色",edgeColor:"エッジの色",gridX:"X",gridY:"Y",gridXY:"XY",gridOff:"オフ",linearLabel:"線形",logLabel:"対数",linear:"線形",log:"対数",XScale:"X スケール",YScale:"Y スケール",ZScale:"Z スケール",toolsGallery:"データ探索ツール",X:"X ",Y:"Y ",Z:"Z ",XLim:"X [",YLim:"Y [",ZLim:"Z [",XLimEnd:"]",YLimEnd:"]",ZLimEnd:"]",marker:"マーカー",width:"幅",lineWidthDescription:"ライン幅",style:"スタイル",lineStyle:"ライン スタイル",lineStyleDescription:"ライン スタイル",textstyleSectionTitle:"テキスト スタイル",linestyleSectionTitle:"ライン スタイル",solid:"実線",dashed:"破線",dotted:"点線",dashdot:"一点鎖線",noStyle:"なし",fontError:"無効なフォント名",cameraTitle:"カメラ ツール",orbit:"旋回移動",tilt:"傾斜",move:"パン",dolly:"水平移動",cameraZoom:"ズーム",roll:"回転",principalX:"X 軸",principalY:"Y 軸",principalZ:"Z 軸",principalNone:"なし",sceneLight:"細",projectionOrthographic:"正投影法",projectionPerspective:"遠近投影法",cameraReset:"シーンの\nリセット",cameraStop:"モーション\nの中止",cameraMotionTools:"カメラ モーション ツール",cameraPrincipalAxis:"主軸",cameraSceneLight:"シーンライト",cameraProjection:"投影タイプ",cameraStopReset:"停止とリセット",orbitDescription:"カメラの旋回移動",tiltDescription:"カメラの回転",moveDescription:"カメラを水平/垂直方向に移動",dollyDescription:"カメラを前方/後方に移動",cameraZoomDescription:"カメラのズーム",rollDescription:"カメラの回転",close:"閉じる"}},function(e,t,i){e.exports={figure:"Figure",explore:"좌표축",fileTabTitle:"파일",toolsTabTitle:"툴",editTabTitle:"편집",plotEditTitle:"편집",insertTabTitle:"삽입",styleSectionTitle:"스타일",reusePlotSectionTitle:"플롯 재사용",axesSectionTitle:"좌표축",scaleSectionTitle:"스케일",directionSectionTitle:"방향",limitSectionTitle:"제한",linkTitle:"연결",newFigure:"새로 만들기",openTab:"열기",closeTab:"닫기",clearFigure:"Figure 지우기",save:"저장",saveAs:"다른 이름으로 저장",generateCode:"코드 생성...",inspector:"인스펙터",plotEdit:"편집",plotEditDescription:"플롯 편집 모드를 활성화합니다.",brushing:"브러싱",colorMap:"컬러맵",camera:"카메라 툴",cameraDescription:"카메라 시각 툴을 엽니다.",link:"연결",statistics:"데이터 통계량",statisticsDescription:"플롯에 통계량을 추가합니다.",fitting:"기본 피팅",fittingDescription:"플롯에 피팅 선을 추가합니다.",print:"인쇄",printPreview:"인쇄 미리보기",copyFigure:"Figure 복사",copyFigureDescription:"Figure 내용을 클립보드에 복사합니다.",codeGen:"코드 생성",gridlines:"그리드 선",annotationsSectionTitle:"주석",subplotSectionTitle:"좌표축",labelsAndTitle:"제목 및\n레이블",legends:"범례",grids:"그리드",annotations:"주석",xlabel:"X 레이블",xlabelDescription:"x축 레이블을 삽입합니다.",ylabel:"Y 레이블",ylabelDescription:"y축 레이블을 삽입합니다.",title:"제목",titleDescription:"제목을 삽입합니다.",legend:"범례",legendDescription:"범례를 삽입합니다.",removeLegend:"범례 제거",removeLegendDescription:"범례를 모두 제거합니다.",colorbar:"컬러바",colorbarDescription:"컬러바를 삽입합니다.",removeColorbar:"컬러바 제거",removeColorbarDescription:"컬러바를 모두 제거합니다.",xGrid:"X 그리드",xgridDescription:"x축 그리드 선을 표시합니다.",yGrid:"Y 그리드",ygridDescription:"y축 그리드 선을 표시합니다.",grid:"그리드",gridDescription:"그리드 선을 표시합니다.",removeGrid:"그리드 제거",removeGridDescription:"그리드 선을 모두 제거합니다.",line:"라인",lineDescription:"선 주석을 추가합니다.",arrow:"화살표",arrowDescription:"화살표 주석을 추가합니다.",textArrow:"텍스트 화살표",textArrowDescription:"텍스트 화살표 주석을 추가합니다.",doubleArrow:"양방향 화살표",doubleArrowDescription:"양방향 화살표 주석을 추가합니다.",textSectionTitle:"텍스트",colorSectionTitle:"색",axesSectionTitle:"좌표축",toolsSectionTitle:"툴",lineSectionTitle:"라인",outlineColor:"경계",backgroundColor:"채우기",insertAxes:"레이아웃",insertAxesDescription:"레이아웃에 좌표축을 추가합니다.",toggleLegendDescription:"범례를 켜거나 끕니다.",toggleColorbarDescription:"컬러바를 켜거나 끕니다.",pinToAxes:"좌표축에 고정",alignTool:"정렬 툴",axisTight:"좁게",axisBox:"Box",axisOff:"꺼짐",linkData:"데이터 연결",linkAxes:"좌표축 연동",linkplot:"플롯 연결",linkplotdescription:"플롯을 연결하거나 연결 해제합니다.",linkDataDescription:"플롯을 데이터에 연결합니다.",optionMenu:"옵션",saveOptions:"저장 옵션",exportOptions:"내보내기 옵션",printOptions:"인쇄 옵션",exportAll:"내보내기",exportPNG:"PNG로 내보내기",exportPDF:"PDF로 내보내기",holdOn:"유지",font:"글꼴",fontIncrease:"글꼴 확대",fontDecrease:"글꼴 축소",bold:"굵게",italics:"기울임꼴",alignLeft:"왼쪽 맞춤",alignRight:"오른쪽 맞춤",alignCenter:"가운데 맞춤",fontColor:"글꼴 색",backgroundColor:"채우기 색",edgeColor:"모서리 색",gridX:"X",gridY:"Y",gridXY:"XY",gridOff:"꺼짐",linearLabel:"선형",logLabel:"로그",linear:"선형",log:"로그",XScale:"X 스케일",YScale:"Y 스케일",ZScale:"Z 스케일",toolsGallery:"데이터 탐색 툴",X:"X ",Y:"Y ",Z:"Z ",XLim:"X [",YLim:"Y [",ZLim:"Z [",XLimEnd:"]",YLimEnd:"]",ZLimEnd:"]",marker:"마커",width:"너비",lineWidthDescription:"선 너비",style:"스타일",lineStyle:"선 스타일",lineStyleDescription:"선 스타일",textstyleSectionTitle:"텍스트 스타일",linestyleSectionTitle:"선 스타일",solid:"실선",dashed:"파선",dotted:"점선",dashdot:"일점 쇄선",noStyle:"없음",fontError:"유효하지 않은 글꼴 이름임",cameraTitle:"카메라 툴",orbit:"선회",tilt:"틸트",move:"패닝",dolly:"달리",cameraZoom:"확대/축소",roll:"롤링",principalX:"X축",principalY:"Y축",principalZ:"Z축",principalNone:"없음",sceneLight:"조명",projectionOrthographic:"직교",projectionPerspective:"원근",cameraReset:"장면\n초기화",cameraStop:"움직임\n중지",cameraMotionTools:"카메라 움직임 툴",cameraPrincipalAxis:"기본 축",cameraSceneLight:"장면 조명",cameraProjection:"투영 유형",cameraStopReset:"중지 및 재설정",orbitDescription:"카메라 선회",tiltDescription:"카메라 틸트",moveDescription:"카메라 가로/세로 이동",dollyDescription:"카메라 앞/뒤 이동",cameraZoomDescription:"카메라 확대/축소",rollDescription:"카메라 롤링",close:"닫기"}},function(e,t,i){e.exports={figure:"图窗",explore:"坐标区",fileTabTitle:"文件",toolsTabTitle:"工具",editTabTitle:"编辑",plotEditTitle:"编辑",insertTabTitle:"插入",styleSectionTitle:"样式",reusePlotSectionTitle:"重用绘图",axesSectionTitle:"坐标区",scaleSectionTitle:"缩放",directionSectionTitle:"方向",limitSectionTitle:"范围",linkTitle:"链接",newFigure:"新建",openTab:"打开",closeTab:"关闭",clearFigure:"清空图窗",save:"保存",saveAs:"另存为",generateCode:"生成代码...",inspector:"检查器",plotEdit:"编辑",plotEditDescription:"激活绘图编辑模式",brushing:"刷亮",colorMap:"颜色图",camera:"相机工具",cameraDescription:"打开相机视图工具",link:"链接",statistics:"数据统计信息",statisticsDescription:"向绘图添加统计信息",fitting:"基本拟合",fittingDescription:"向绘图添加拟合线",print:"打印",printPreview:"打印预览",copyFigure:"复制图窗",copyFigureDescription:"将图窗内容复制到剪贴板",codeGen:"生成代码",gridlines:"网格线",annotationsSectionTitle:"注释",subplotSectionTitle:"坐标区",labelsAndTitle:"标题和标签\n",legends:"图例",grids:"网格",annotations:"注释",xlabel:"X 标签",xlabelDescription:"插入 x 轴标签",ylabel:"Y 标签",ylabelDescription:"插入 y 轴标签",title:"标题",titleDescription:"插入标题",legend:"图例",legendDescription:"插入图例",removeLegend:"删除图例",removeLegendDescription:"删除所有图例",colorbar:"颜色栏",colorbarDescription:"插入颜色栏",removeColorbar:"删除颜色栏",removeColorbarDescription:"删除所有颜色栏",xGrid:"X 网格",xgridDescription:"显示 x 轴网格线",yGrid:"Y 网格",ygridDescription:"显示 y 轴网格线",grid:"网格",gridDescription:"显示网格线",removeGrid:"删除网格",removeGridDescription:"删除所有网格线",line:"线",lineDescription:"添加线注释",arrow:"箭头",arrowDescription:"添加箭头注释",textArrow:"文本箭头",textArrowDescription:"添加文本箭头注释",doubleArrow:"双箭头",doubleArrowDescription:"添加双箭头注释",textSectionTitle:"文本",colorSectionTitle:"颜色",axesSectionTitle:"坐标区",toolsSectionTitle:"工具",lineSectionTitle:"线",outlineColor:"边",backgroundColor:"填充",insertAxes:"布局",insertAxesDescription:"在布局中添加坐标区",toggleLegendDescription:"切换图例",toggleColorbarDescription:"切换颜色栏",pinToAxes:"固定到坐标区",alignTool:"对齐工具",axisTight:"紧凑",axisBox:"边框",axisOff:"关闭",linkData:"链接数据",linkAxes:"链接坐标区",linkplot:"链接绘图",linkplotdescription:"链接/取消链接绘图",linkDataDescription:"将绘图链接到数据",optionMenu:"选项",saveOptions:"保存选项",exportOptions:"导出选项",printOptions:"打印选项",exportAll:"导出",exportPNG:"导出为 PNG",exportPDF:"导出为 PDF",holdOn:"保持",font:"字体",fontIncrease:"放大字体",fontDecrease:"缩小字体",bold:"粗体",italics:"斜体",alignLeft:"左对齐",alignRight:"右对齐",alignCenter:"居中对齐",fontColor:"字体颜色",backgroundColor:"填充颜色",edgeColor:"边颜色",gridX:"X",gridY:"Y",gridXY:"XY",gridOff:"关闭",linearLabel:"线性",logLabel:"对数",linear:"线性",log:"对数",XScale:"X 刻度",YScale:"Y 刻度",ZScale:"Z 刻度",toolsGallery:"数据探索工具",X:"X ",Y:"Y ",Z:"Z ",XLim:"X [",YLim:"Y [",ZLim:"Z [",XLimEnd:"]",YLimEnd:"]",ZLimEnd:"]",marker:"标记",width:"宽度",lineWidthDescription:"线宽",style:"样式",lineStyle:"线型",lineStyleDescription:"线型",textstyleSectionTitle:"文本样式",linestyleSectionTitle:"线型",solid:"实线",dashed:"虚线",dotted:"点虚线",dashdot:"点划线",noStyle:"无",fontError:"字体名称无效",cameraTitle:"相机工具",orbit:"环移",tilt:"纵转",move:"平转",dolly:"推移",cameraZoom:"缩放",roll:"旋转",principalX:"X 轴",principalY:"Y 轴",principalZ:"Z 轴",principalNone:"无",sceneLight:"灯光",projectionOrthographic:"正交",projectionPerspective:"透视",cameraReset:"重置场景\n",cameraStop:"停止移动\n",cameraMotionTools:"相机移动工具",cameraPrincipalAxis:"主轴",cameraSceneLight:"场景灯光",cameraProjection:"投影类型",cameraStopReset:"停止并重置",orbitDescription:"环移相机",tiltDescription:"纵转相机",moveDescription:"平移/纵移相机",dollyDescription:"前移/后移相机",cameraZoomDescription:"缩放相机",rollDescription:"旋转相机",close:"关闭"}},function(e,t,i){e.exports={root:{figure:"FIGURE",explore:"AXES",fileTabTitle:"FILE",toolsTabTitle:"TOOLS",editTabTitle:"EDIT",plotEditTitle:"EDIT",insertTabTitle:"INSERT",styleSectionTitle:"STYLE",reusePlotSectionTitle:"REUSE PLOT",axesSectionTitle:"AXES",scaleSectionTitle:"SCALE",directionSectionTitle:"DIRECTION",limitSectionTitle:"LIMITS",linkTitle:"LINK",newFigure:"New",openTab:"Open",closeTab:"Close",clearFigure:"Clear Figure",save:"Save",saveAs:"Save As",generateCode:"Generate Code...",inspector:"Inspector",plotEdit:"Edit",plotEditDescription:"Activate Plot Editing Mode",brushing:"Brushing",colorMap:"Colormap",camera:"Camera Tools",cameraDescription:"Open Camera View Tools",link:"Link",statistics:"Data Statistics",statisticsDescription:"Add stats to plot",fitting:"Basic Fitting",fittingDescription:"Add Fit Lines to Plot",print:"Print",printPreview:"Print Preview",copyFigure:"Copy Figure",copyFigureDescription:"Copy Figure Contents to Clipboard",codeGen:"Generate Code",gridlines:"Gridlines",annotationsSectionTitle:"Annotations",subplotSectionTitle:"Axes",labelsAndTitle:"Titles\nand Labels",legends:"Legends",grids:"Grids",annotations:"Annotations",xlabel:"X-Label",xlabelDescription:"Insert x-axis label",ylabel:"Y-Label",ylabelDescription:"Insert y-axis label",title:"Title",titleDescription:"Insert title",legend:"Legend",legendDescription:"Insert legend",removeLegend:"Remove Legend",removeLegendDescription:"Remove all legends",colorbar:"Colorbar",colorbarDescription:"Insert colorbar",removeColorbar:"Remove Colorbar",removeColorbarDescription:"Remove all colorbars",xGrid:"X-Grid",xgridDescription:"Show x-axis grid lines",yGrid:"Y-Grid",ygridDescription:"Show y-axis grid lines",grid:"Grid",gridDescription:"Show grid lines",removeGrid:"Remove Grid",removeGridDescription:"Remove all grid lines",line:"Line",lineDescription:"Add line annotation",arrow:"Arrow",arrowDescription:"Add arrow annotation",textArrow:"Text Arrow",textArrowDescription:"Add text arrow annotation",doubleArrow:"Double Arrow",doubleArrowDescription:"Add double-headed arrow annotation",textSectionTitle:"TEXT",colorSectionTitle:"COLOR",axesSectionTitle:"AXES",toolsSectionTitle:"TOOLS",lineSectionTitle:"LINE",outlineColor:"Edge",backgroundColor:"Fill",insertAxes:"Layout",insertAxesDescription:"Add Axes To Layout",toggleLegendDescription:"Toggle Legend",toggleColorbarDescription:"Toggle Colorbar",pinToAxes:"Pin to Axes",alignTool:"Align Tool",axisTight:"Tight",axisBox:"Box",axisOff:"Off",linkData:"Link Data",linkAxes:"Link Axes",linkplot:"Link plot",linkplotdescription:"Link/unlink plot",linkDataDescription:"Link plot to data",optionMenu:"Options",saveOptions:"Save Options",exportOptions:"Export Options",printOptions:"Printing Options",exportAll:"Export",exportPNG:"Export to PNG",exportPDF:"Export to PDF",holdOn:"Hold On",font:"Font",fontIncrease:"Scale Font Up",fontDecrease:"Scale Font Down",bold:"Bold",italics:"Italics",alignLeft:"Align Left",alignRight:"Align Right",alignCenter:"Align Center",fontColor:"Font Color",backgroundColor:"Fill Color",edgeColor:"Edge Color",gridX:"X",gridY:"Y",gridXY:"XY",gridOff:"Off",linearLabel:"Linear",logLabel:"Log",linear:"linear",log:"log",XScale:"X Scale",YScale:"Y Scale",ZScale:"Z Scale",toolsGallery:"Data Exploration Tools",X:"X ",Y:"Y ",Z:"Z ",XLim:"X [",YLim:"Y [",ZLim:"Z [",XLimEnd:"]",YLimEnd:"]",ZLimEnd:"]",marker:"Marker",width:"Width",lineWidthDescription:"Line Width",style:"Style",lineStyle:"Line Style",lineStyleDescription:"Line Style",textstyleSectionTitle:"TEXT STYLE",linestyleSectionTitle:"LINE STYLE",solid:"Solid",dashed:"Dashed",dotted:"Dotted",dashdot:"Dash-dotted",noStyle:"None",fontError:"Invalid Font Name",cameraTitle:"CAMERA TOOLS",orbit:"Orbit",tilt:"Tilt",move:"Pan",dolly:"Dolly",cameraZoom:"Zoom",roll:"Roll",principalX:"X-Axis",principalY:"Y-Axis",principalZ:"Z-Axis",principalNone:"None",sceneLight:"Light",projectionOrthographic:"Orthographic",projectionPerspective:"Perspective",cameraReset:"Reset\nScene",cameraStop:"Stop\nMotion",cameraMotionTools:"CAMERA MOTION TOOLS",cameraPrincipalAxis:"PRINCIPAL AXIS",cameraSceneLight:"SCENE LIGHT",cameraProjection:"PROJECTION TYPE",cameraStopReset:"STOP AND RESET",orbitDescription:"Orbit Camera",tiltDescription:"Tilt Camera",moveDescription:"Move Camera Horizontally/Vertically",dollyDescription:"Move Camera Forward/Back",cameraZoomDescription:"Zoom Camera",rollDescription:"Roll Camera",close:"Close"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(231),i(219)],o=i.dj.d(n,(function(e,t,i,n){return e([],{TS_CHANNEL:"/figure/toolstrip/state",constructor:function(e){this._uiBuilder=e.uiBuilder,this._actionService=e.actionService,this._toolstripTag="motwToolstrip.defaultFigureToolstripTabGroup",this._figureTabTag="motwToolstrip.figureToolstripTab2",this._axesTabTag="motwToolstrip.figureToolstripExploreTab",this._plotEditTabTag="motwToolstrip.plotEditTab",this.subscribe()},subscribe:function(){n.subscribe(this.TS_CHANNEL,t.hitch(this,this._updateToolstripState))},_updateToolstripState:function(e){var t=e.data;this._setState(this._figureTabTag,t),this._setState(this._axesTabTag,t),this._setState(this._plotEditTabTag,t)},_setState:function(e,t){t.forEach((function(t){if(itemId=this._getItemId(e,t.name),null!==itemId&&void 0!==itemId){if(this._uiBuilder.set(itemId,"enabled",t.enabled),"section"===t.type)if(!1===t.enabled)this._uiBuilder.remove(itemId);else{var i=this._uiBuilder.tagToId(e);null!=i&&this._uiBuilder.add(itemId,i,t.value)}else if(!0===t.enabled&&void 0!==t.value){var n=this._uiBuilder.widgetByTag(e+"."+t.name);n&&n.actionId&&this._actionService.disableAction(n.actionId);var o=t.value;this._uiBuilder.set(itemId,t.type,o),n&&n.actionId&&this._actionService.enableAction(n.actionId)}if(!0===t.enabled&&void 0!==t.tooltip){var r=t.tooltip;this._uiBuilder.set(itemId,"description",r)}}}),this)},_getItemId:function(e,t){var i=e+"."+t;return this._uiBuilder.tagToId(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(536)],o=i.dj.d(n,(function(e,t){return{tag:"motwToolstrip.defaultFigureToolstripTabGroup",type:e.TAB_GROUP,children:[{tag:"motwToolstrip.figureToolstripTab2",type:e.TAB,title:t.figure,mnemonic:"E",children:[{tag:"motwToolstrip.figureToolstripTab2.File",type:e.SECTION,title:t.fileTabTitle,children:[{tag:"motwToolstrip.figureToolstripTab2.File.Save",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.File.Save.SaveMenu",type:e.SPLIT_BUTTON,actionId:"motw.embeddedfigures.savefigure",popupTag:"motwToolstrip.figureToolstripTab2.File.Save.SaveMenu.SaveList",textOverride:t.save,iconOverride:"save_24",quickAccessIcon:"save_16",mnemonic:"S"}]},{tag:"motwToolstrip.figureToolstripTab2.File.Export",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.File.Export.ExportMenu",type:e.SPLIT_BUTTON,actionId:"motw.embeddedfigures.export",popupTag:"motwToolstrip.figureToolstripTab2.File.Export.ExportMenu.ExportList",descriptionOverride:t.exportAll,iconOverride:"export_24",quickAccessIcon:"export_16",textOverride:t.exportAll,mnemonic:"X"}]}]},{tag:"motwToolstrip.figureToolstripTab2.textstyle",type:e.SECTION,title:t.textstyleSectionTitle,children:[{tag:"motwToolstrip.figureToolstripTab2.style.fontColumn",type:e.COLUMN,width:85,children:[{tag:"motwToolstrip.figureToolstripTab2.style.font",type:e.COMBO_BOX,editable:!0,description:t.font,icon:"fontIcon",quickAccessIcon:"fontIcon"},{tag:"motwToolstrip.figureToolstripTab2.style.font.panel",type:e.PANEL,children:[{tag:"motwToolstrip.figureToolstripTab2.style.font.panel.column1",type:e.COLUMN,width:40,children:[{tag:"motwToolstrip.figureToolstripTab2.style.fontIncrease",actionId:"motw.embeddedfigures.scaleUpFont",type:e.PUSH_BUTTON,descriptionOverride:t.fontIncrease,icon:"fontGrowIcon",quickAccessIcon:"fontGrowIcon",mnemonic:"U"}]},{tag:"motwToolstrip.figureToolstripTab2.style.font.panel.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.style.fontDecrease",actionId:"motw.embeddedfigures.scaleDownFont",type:e.PUSH_BUTTON,descriptionOverride:t.fontDecrease,icon:"fontShrinkIcon",quickAccessIcon:"fontShrinkIcon",mnemonic:"D"}]}]}]}]},{tag:"motwToolstrip.figureToolstripTab2.linestyle",type:e.SECTION,title:t.linestyleSectionTitle,children:[{tag:"motwToolstrip.figureToolstripTab2.style.lineStyleColumn",type:e.COLUMN,width:66,children:[{type:e.PANEL,children:[{type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.lineWidthLabel",type:e.LABEL,descriptionOverride:t.lineWidthDescription,icon:"lineWidthIcon",quickAccessIcon:"lineWidthIcon"}]},{type:e.COLUMN,width:50,children:[{tag:"motwToolstrip.figureToolstripTab2.all.line.width",type:e.SPINNER,text:t.width,minorStepSize:.5,majorStepSize:.5,minimum:.5,maximum:5}]}]},{tag:"motwToolstrip.figureToolstripTab2.all.line.style",type:e.DROP_DOWN_BUTTON,icon:"lineStyleIcon",quickAccessIcon:"lineStyleIcon",popupTag:"motwToolstrip.plotEditTab.lineStyle.lineStyleList",text:t.lineStyle,descriptionOverride:t.lineStyleDescription}]}]},{tag:"motwToolstrip.figureToolstripExploreTab.tools",type:e.SECTION,title:t.toolsTabTitle,collapsePriority:2,children:[{tag:"motwToolstrip.figureToolstripExploreTab.tools.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripExploreTab.tools.gallery",type:e.GALLERY,galleryPopupTag:"motwToolstrip.figureToolstripExploreTab.tools.galleryPopup",minColumnCount:1,maxColumnCount:4}]}]},{tag:"motwToolstrip.figureToolstripTab2.plotEdit",type:e.SECTION,title:t.plotEditTitle,children:[{tag:"motwToolstrip.figureToolstripTab2.plotEdit.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.tools.plotEdit",type:e.TOGGLE_BUTTON,actionId:"motw.embeddedfigures.plotedit",text:t.plotEdit,descriptionOverride:t.plotEditDescription,icon:"plotEditIcon",quickAccessIcon:"plotEditIcon_16"}]}]}]},{tag:"motwToolstrip.figureToolstripExploreTab",type:e.TAB,title:t.explore,mnemonic:"F",children:[{tag:"motwToolstrip.figureToolstripTab2.insert",type:e.SECTION,title:t.insertTabTitle,children:[{tag:"motwToolstrip.figureToolstripTab2.insert.labelColumn",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.insert.titleLabel",type:e.DROP_DOWN_BUTTON,popupTag:"motwToolstrip.figureToolstripTab2.insert.titleLabel.titleLabelList",text:t.labelsAndTitle,description:t.labelsAndTitle,iconOverride:"titleLabelIcon",quickAccessIcon:"titleLabelIcon_16"}]},{tag:"motwToolstrip.figureToolstripTab2.insert.legendColumn",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.insert.legend",type:e.TOGGLE_BUTTON,text:t.legend,descriptionOverride:t.toggleLegendDescription,iconOverride:"legendIcon",quickAccessIcon:"legendIcon",mnemonic:"L"},{tag:"motwToolstrip.figureToolstripTab2.insert.colorbar",type:e.TOGGLE_BUTTON,text:t.colorbar,descriptionOverride:t.toggleColorbarDescription,iconOverride:"colormapIcon",quickAccessIcon:"colormapIcon",mnemonic:"C"},{tag:"motwToolstrip.figureToolstripExploreTab.axes.gridlines",type:e.DROP_DOWN_BUTTON,popupTag:"motwToolstrip.figureToolstripExploreTab.axes.gridlines.gridList",text:t.gridlines,descriptionOverride:t.gridlines,iconOverride:"gridSelectorIcon",quickAccessIcon:"gridSelectorIcon"}]}]},{tag:"motwToolstrip.figureToolstripExploreTab.axes",type:e.SECTION,title:t.axesSectionTitle,collapsePriority:3,children:[{tag:"motwToolstrip.figureToolstripExploreTab.axes.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab2.insert.axes",type:e.GRID_PICKER_BUTTON,iconOverride:"axesIcon",quickAccessIcon:"axesIcon",text:t.insertAxes,descriptionOverride:t.insertAxesDescription},{tag:"motwToolstrip.figureToolstripExploreTab.axes.hold",type:e.CHECK_BOX,actionId:"motw.embeddedfigures.hold",text:t.holdOn,descriptionOverride:t.holdOn,icon:"layout_16",quickAccessIcon:"layout_16",mnemonic:"H"}]}]},{tag:"motwToolstrip.figureToolstripExploreTab.limits",type:e.SECTION,title:t.limitSectionTitle,collapsePriority:1,children:[{tag:"motwToolstrip.figureToolstripExploreTab.limits.minLabelColumn",type:e.COLUMN,horizontalAlignment:"right",children:[{tag:"motwToolstrip.figureToolstripExploreTab.limits.XLimLabel",type:e.LABEL,text:t.XLim},{tag:"motwToolstrip.figureToolstripExploreTab.limits.YLimLabel",type:e.LABEL,text:t.YLim},{tag:"motwToolstrip.figureToolstripExploreTab.limits.ZLimLabel",type:e.LABEL,text:t.ZLim}]},{tag:"motwToolstrip.figureToolstripExploreTab.limits.minColumn",type:e.COLUMN,width:65,children:[{tag:"motwToolstrip.figureToolstripExploreTab.limits.XMin",type:e.TEXT_FIELD},{tag:"motwToolstrip.figureToolstripExploreTab.limits.YMin",type:e.TEXT_FIELD},{tag:"motwToolstrip.figureToolstripExploreTab.limits.ZMin",type:e.TEXT_FIELD}]},{tag:"motwToolstrip.figureToolstripExploreTab.limits.midLabelColumn",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripExploreTab.limits.XlimitComma",type:e.LABEL,text:" , "},{tag:"motwToolstrip.figureToolstripExploreTab.limits.YlimitComma",type:e.LABEL,text:" , "},{tag:"motwToolstrip.figureToolstripExploreTab.limits.ZlimitComma",type:e.LABEL,text:" , "}]},{tag:"motwToolstrip.figureToolstripExploreTab.limits.maxColumn",type:e.COLUMN,width:65,children:[{tag:"motwToolstrip.figureToolstripExploreTab.limits.XMax",type:e.TEXT_FIELD},{tag:"motwToolstrip.figureToolstripExploreTab.limits.YMax",type:e.TEXT_FIELD},{tag:"motwToolstrip.figureToolstripExploreTab.limits.ZMax",type:e.TEXT_FIELD}]},{tag:"motwToolstrip.figureToolstripExploreTab.limits.endLabelColumn",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripExploreTab.limits.XLimEnd",type:e.LABEL,text:t.XLimEnd},{tag:"motwToolstrip.figureToolstripExploreTab.limits.YLimEnd",type:e.LABEL,text:t.YLimEnd},{tag:"motwToolstrip.figureToolstripExploreTab.limits.ZLimEnd",type:e.LABEL,text:t.ZLimEnd}]}]},{tag:"motwToolstrip.figureToolstripExploreTab.scale",type:e.SECTION,title:t.scaleSectionTitle,collapsePriority:1,children:[{tag:"motwToolstrip.figureToolstripExploreTab.limits.scaleLabelColumn",type:e.COLUMN,horizontalAlignment:"right",children:[{tag:"motwToolstrip.figureToolstripExploreTab.scale.XLabel",type:e.LABEL,text:t.X},{tag:"motwToolstrip.figureToolstripExploreTab.scale.YLabel",type:e.LABEL,text:t.Y},{tag:"motwToolstrip.figureToolstripExploreTab.scale.ZLabel",type:e.LABEL,text:t.Z}]},{tag:"motwToolstrip.figureToolstripExploreTab.scale.column1",type:e.COLUMN,width:75,children:[{tag:"motwToolstrip.figureToolstripExploreTab.scale.XScale",type:e.COMBO_BOX,items:[{label:t.linearLabel,value:t.linear,selected:!0},{label:t.logLabel,value:t.log}],text:t.XTag,descriptionOverride:t.XScale,icon:""},{tag:"motwToolstrip.figureToolstripExploreTab.scale.YScale",type:e.COMBO_BOX,items:[{label:t.linearLabel,value:t.linear,selected:!0},{label:t.logLabel,value:t.log}],text:t.YTag,descriptionOverride:t.YScale,icon:""},{tag:"motwToolstrip.figureToolstripExploreTab.scale.ZScale",type:e.COMBO_BOX,items:[{label:t.linearLabel,value:t.linear,selected:!0},{label:t.logLabel,value:t.log}],text:t.ZTag,descriptionOverride:t.ZScale,icon:""}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(536),i(567)],o=i.dj.d(n,(function(e,t,i){return{tag:"motwToolstrip.plotEditTabGroup",type:e.TAB_GROUP,children:[{tag:"motwToolstrip.plotEditTab",type:e.TAB,title:t.plotEditTitle,removeable:!0,mnemonic:"E",children:[{tag:"motwToolstrip.plotEditTab.text",type:e.SECTION,title:t.textSectionTitle,children:[{type:e.COLUMN,width:110,children:[{tag:"motwToolstrip.plotEditTab.text.font",type:e.COMBO_BOX,editable:!0,descriptionOverride:t.font,mnemonic:"H"},{type:e.PANEL,children:[{type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.plotEditTab.text.bold",type:e.TOGGLE_BUTTON,actionId:"motw.embeddedfigures.plotedit.bold",descriptionOverride:t.bold,icon:"smallBold",quickAccessIcon:"smallBold"}]},{type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.plotEditTab.text.italics",type:e.TOGGLE_BUTTON,actionId:"motw.embeddedfigures.plotedit.italics",descriptionOverride:t.italics,icon:"smallItalic",quickAccessIcon:"smallItalic"}]},{type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.plotEditTab.text.alignLeft",type:e.TOGGLE_BUTTON,icon:"smallAlignedLeft",actionId:"motw.embeddedfigures.plotedit.alignleft",descriptionOverride:t.alignLeft,quickAccessIcon:"smallAlignedLeft",buttonGroupName:"alignGroup"}]},{type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.plotEditTab.text.alignCenter",type:e.TOGGLE_BUTTON,actionId:"motw.embeddedfigures.plotedit.aligncenter",descriptionOverride:t.alignCenter,icon:"smallAlignedCenter",quickAccessIcon:"smallAlignedCenter",buttonGroupName:"alignGroup"}]},{type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.plotEditTab.text.alignRight",type:e.TOGGLE_BUTTON,actionId:"motw.embeddedfigures.plotedit.alignright",descriptionOverride:t.alignRight,icon:"smallAlignedRight",quickAccessIcon:"smallAlignedRight",buttonGroupName:"alignGroup"}]}]}]},{type:e.COLUMN,width:55,children:[{type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.plotEditTab.text.fontSize",type:e.SPINNER,minorStepSize:1,majorStepSize:1,minimum:5,maximum:100,editable:!0},{type:e.PANEL,children:[{type:e.COLUMN,children:[{tag:"motwToolstrip.plotEditTab.text.fontColor",type:e.COLOR_PICKER_BUTTON,descriptionOverride:t.fontColor,icon:"fontIcon",quickAccessIcon:"fontIcon",mnemonic:"T"}]}]}]}]}]},{tag:"motwToolstrip.plotEditTab.color",type:e.SECTION,title:t.colorSectionTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",children:[{tag:"motwToolstrip.plotEditTab.color.backgroundColor",type:e.COLOR_PICKER_BUTTON,icon:"colorFillIcon",quickAccessIcon:"colorFillIcon",text:t.backgroundColor,mnemonic:"C"},{tag:"motwToolstrip.plotEditTab.color.edgeColor",type:e.COLOR_PICKER_BUTTON,icon:"colorEdgeIcon",quickAccessIcon:"colorEdgeIcon",text:t.edgeColor,mnemonic:"T"}]}]},{tag:"motwToolstrip.plotEditTab.line",type:e.SECTION,title:t.lineSectionTitle,children:[{type:e.COLUMN,width:66,children:[{type:e.PANEL,children:[{type:e.COLUMN,children:[{tag:"motwToolstrip.plotEditTab.line.WidthLabel",type:e.LABEL,descriptionOverride:t.lineWidthDescription,icon:"lineWidthIcon",quickAccessIcon:"lineWidthIcon"}]},{type:e.COLUMN,width:50,children:[{tag:"motwToolstrip.plotEditTab.line.width",type:e.SPINNER,text:t.width,minorStepSize:.5,majorStepSize:.5,minimum:.5,maximum:5}]}]},{tag:"motwToolstrip.plotEditTab.line.style",type:e.DROP_DOWN_BUTTON,icon:"lineStyleIcon",quickAccessIcon:"lineStyleIcon",popupTag:"motwToolstrip.plotEditTab.lineStyle.lineStyleList",description:t.lineStyle,text:t.lineStyleDescription}]}]},{tag:"motwToolstrip.plotEditTab.annotationSection",type:e.SECTION,title:t.annotations,children:[{type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.plotEditTab.annotations",type:e.DROP_DOWN_BUTTON,popupTag:"motwToolstrip.plotEditTab.annotations.annotationsList",iconOverride:"annotationIcon",quickAccessIcon:"annotationIcon_16",text:t.annotations,description:t.annotations}]}]},{tag:"motwToolstrip.plotEditTab.inspector",type:e.SECTION,title:t.inspector,children:[{type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.plotEditTab.tools.inspector",type:e.PUSH_BUTTON,actionId:"motw.embeddedfigures.inspector",iconOverride:"inspectorIcon",quickAccessIcon:"inspectorIcon_16",textOverride:t.inspector,descriptionOverride:t.inspector}]}]},{tag:"motwToolstrip.plotEditTab.closeSection",type:e.SECTION,title:"CLOSE",children:[{type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.plotEditTab.close",type:e.PUSH_BUTTON,actionId:"motw.embeddedfigures.plotedit.close",icon:"close_24",quickAccessIcon:"close_16",text:t.close,description:t.close}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(536),i(567)],o=i.dj.d(n,(function(e,t,i){return{tag:"motwToolstrip.cameraTabGroup",type:e.TAB_GROUP,children:[{tag:"motwToolstrip.cameraTab",type:e.TAB,title:"Camera",removeable:!0,children:[{tag:"motwToolstrip.cameraTab.cameraMotionTools",type:e.SECTION,title:t.cameraMotionTools,children:[{tag:"motwToolstrip.cameraTab.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.orbit",actionId:"motw.embeddedfigures.camera.orbit",type:e.TOGGLE_BUTTON,textOverride:t.orbit,descriptionOverride:t.orbitDescription,iconOverride:"orbitIcon_24",quickAccessIcon:"orbitIcon"}]},{tag:"motwToolstrip.cameraTab.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.setmodeguipan",actionId:"motw.embeddedfigures.camera.pan",type:e.TOGGLE_BUTTON,textOverride:t.tilt,descriptionOverride:t.tiltDescription,iconOverride:"setmodeguipanIcon_24",quickAccessIcon:"setmodeguipanIcon"}]},{tag:"motwToolstrip.cameraTab.column3",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.setmodeguidollyhv",actionId:"motw.embeddedfigures.camera.dollyhv",type:e.TOGGLE_BUTTON,textOverride:t.move,descriptionOverride:t.moveDescription,iconOverride:"setmodeguidollyhvIcon_24",quickAccessIcon:"setmodeguidollyhvIcon"}]},{tag:"motwToolstrip.cameraTab.column4",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.setmodeguidollyfb",actionId:"motw.embeddedfigures.camera.dollyfb",type:e.TOGGLE_BUTTON,textOverride:t.dolly,descriptionOverride:t.dollyDescription,iconOverride:"setmodeguidollyfbIcon_24",quickAccessIcon:"setmodeguidollyfbIcon"}]},{tag:"motwToolstrip.cameraTab.column5",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.setmodeguizoom",actionId:"motw.embeddedfigures.camera.zoom",type:e.TOGGLE_BUTTON,textOverride:t.cameraZoom,descriptionOverride:t.cameraZoomDescription,iconOverride:"setmodeguizoomIcon_24",quickAccessIcon:"setmodeguizoomIcon"}]},{tag:"motwToolstrip.cameraTab.column6",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.setmodeguiroll",actionId:"motw.embeddedfigures.camera.roll",type:e.TOGGLE_BUTTON,textOverride:t.roll,descriptionOverride:t.rollDescription,iconOverride:"setmodeguirollIcon_24",quickAccessIcon:"setmodeguirollIcon"}]}]},{tag:"motwToolstrip.cameraTab.cameraAxis",type:e.SECTION,title:t.cameraPrincipalAxis,children:[{tag:"motwToolstrip.cameraTab.column7",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.setcoordsysx",actionId:"motw.embeddedfigures.camera.resetx",type:e.PUSH_BUTTON,textOverride:t.principalX,iconOverride:"setcoordsysxIcon_24",quickAccessIcon:"setcoordsysxIcon"}]},{tag:"motwToolstrip.cameraTab.column8",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.setcoordsysy",type:e.PUSH_BUTTON,actionId:"motw.embeddedfigures.camera.resety",textOverride:t.principalY,iconOverride:"setcoordsysyIcon_24",quickAccessIcon:"setcoordsysyIcon"}]},{tag:"motwToolstrip.cameraTab.column9",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.setcoordsysz",actionId:"motw.embeddedfigures.camera.resetz",type:e.PUSH_BUTTON,textOverride:t.principalZ,iconOverride:"setcoordsyszIcon_24",quickAccessIcon:"setcoordsyszIcon"}]},{tag:"motwToolstrip.cameraTab.column10",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.setcoordsysnone",actionId:"motw.embeddedfigures.camera.resetnone",type:e.PUSH_BUTTON,textOverride:t.principalNone,iconOverride:"setcoordsysnoneIcon_24",quickAccessIcon:"setcoordsysnoneIcon"}]}]},{tag:"motwToolstrip.cameraTab.cameraLight",type:e.SECTION,title:t.cameraSceneLight,children:[{tag:"motwToolstrip.cameraTab.column11",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.togglescenelight",actionId:"motw.embeddedfigure.camera.togglescenelight",type:e.PUSH_BUTTON,textOverride:t.sceneLight,iconOverride:"togglescenelightIcon_24",quickAccessIcon:"togglescenelightIcon"}]}]},{tag:"motwToolstrip.cameraTab.cameraProjection",type:e.SECTION,title:t.cameraProjection,children:[{tag:"motwToolstrip.cameraTab.column12",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.orthographic",actionId:"motw.embeddedfigures.camera.orthographic",type:e.PUSH_BUTTON,textOverride:t.projectionOrthographic,iconOverride:"orthographicIcon_24",quickAccessIcon:"orthographicIcon"}]},{tag:"motwToolstrip.cameraTab.column13",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.perspective",actionId:"motw.embeddedfigures.camera.perspective",type:e.PUSH_BUTTON,textOverride:t.projectionPerspective,iconOverride:"perspectiveIcon_24",quickAccessIcon:"perspectiveIcon"}]}]},{tag:"motwToolstrip.cameraTab.cameraStopReset",type:e.SECTION,title:t.cameraStopReset,children:[{tag:"motwToolstrip.cameraTab.column15",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.stopmoving",actionId:"motw.embeddedfigures.camera.stop",type:e.PUSH_BUTTON,textOverride:t.cameraStop,iconOverride:"end_24",quickAccessIcon:"stopmovingIcon"}]},{tag:"motwToolstrip.cameraTab.column14",type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.resetcameraandscenelight",actionId:"motw.embeddedfigures.camera.resetcameralight",type:e.PUSH_BUTTON,textOverride:t.cameraReset,iconOverride:"restore_24",quickAccessIcon:"resetcameraandscenelightIcon"}]}]},{tag:"motwToolstrip.cameraTab.CameraToolbar.close",type:e.SECTION,title:"CLOSE",children:[{type:e.COLUMN,children:[{tag:"motwToolstrip.cameraTab.close",type:e.PUSH_BUTTON,actionId:"motw.embeddedfigures.camera.close",iconOverride:"close_24",quickAccessIcon:"close_16",text:"Close"}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(212),i(227),i(232),i(241),i(7971)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=e(null,{_classifier:"matlab_colon_remote_service",callbacks:{},enabledChannels:["matlab"],constructor:function(){r.registerResponseHandler("FEvalResponse:"+this._classifier,this._handleEvalResponse,this),r.registerFaultHandler("FEval:"+this._classifier,this._handleEvalError,this);var e=this;window.addEventListener("message",(function(t){t.data.channel&&e.enabledChannels.includes(t.data.channel)&&e._doFEval(t.data.data).then((function(e){var i={id:t.data.id,data:e};t.source.postMessage(i,t.origin)}))}))},_handleEvalError:function(e,t){t.reject(e)},_handleEvalResponse:function(e,t){var i=t;if(1===e.length)e[0].isError?i.reject(e[0].messageFaults[0].message):i.resolve(e[0].results);else{var n="Error: Expected 1 result message back, received: "+e.length();i.reject(n)}},_doFEval:function(e){var t=new n,i=this,o=i._getMatlabCommand(e),l=i._getOpenWithCommand(o);if(l&&l.length>=1){var c=new n;return r.sendMessage({FEval:{function:"isExampleOpened",arguments:[l[0]],nargout:1,priority:1,dequeMode:"ppe"}},c,i._classifier),c.then((function(n){if(n&&!1===n[0])r.sendMessage({FEval:{function:"evalMatlabColon",arguments:[e.currenturl,o],nargout:0,priority:1,dequeMode:"ppe"}},t,i._classifier);else{var c={buttonText:[s.dialogNo,s.dialogYes],closeCallback:function(n){console.log(n),1===n.response?r.sendMessage({FEval:{function:"cleanAndOpenExample",arguments:[l],nargout:0,priority:1,dequeMode:"ppe"}},t,i._classifier):2===n.response&&r.sendMessage({FEval:{function:"evalMatlabColon",arguments:[e.currenturl,o],nargout:0,priority:1,dequeMode:"ppe"}},t,i._classifier)}};a.displayConfirmDialog(s.dialogTitle,s.dialogDescription,c)}})),t.promise}return r.sendMessage({FEval:{function:"evalMatlabColon",arguments:[e.currenturl,o],nargout:0,priority:1,dequeMode:"ppe"}},t,i._classifier),t.promise},_getMatlabCommand:function(e){return e.url?e.url.replace("matlab:",""):e.replace("matlab:","")},_getOpenWithCommand:function(e){var t=[],i=e.match(/openExample\('(.*)'\)/);return i&&(t=i[1].split(/[',\s]+/)),t},publishMessage:function(e,t){return this._doEval(t)}});return l.singleton=new l,l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(7972),i(7973),i(7974),i(7975)],o=i.dj.d(n,(function(e,t){return t(e,"mw-help-matlab-colon/l10n/nls/mw_help_matlab_colon_resources",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={dialogTitle:"例を開く",dialogYes:"はい",dialogNo:"いいえ、この例を開いて編集内容を破棄します",dialogDescription:"この例の変更されたバージョンがあります。編集された方の例を開きますか?"}},function(e,t,i){e.exports={dialogTitle:"예제 열기",dialogYes:"예",dialogNo:"아니요, 이 예제를 열고 내가 편집한 내용 무시",dialogDescription:"이 예제의 수정된 버전이 있습니다. 이 예제를 편집 내용이 적용된 상태로 여시겠습니까?"}},function(e,t,i){e.exports={dialogTitle:"打开示例",dialogYes:"是",dialogNo:"否,打开原示例并放弃我的编辑",dialogDescription:"您曾对此示例进行过修改。是否要打开带有您的编辑的示例?"}},function(e,t,i){e.exports={root:{dialogTitle:"Open Example",dialogYes:"Yes",dialogNo:"No, open this example and discard my edits",dialogDescription:"You have a modified version of this example. Do you want to open this example with your edits?"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(224),i(214),i(212),i(206),i(285),i(230),i(290),i(568),i(2563),i(7978),i(642),i(2564),i(7979),i(2565),i(8146),i(8163),i(8164),i(8168),i(340),i(8210),i(8211),i(8212),i(2603),i(8213),i(2593),i(8214),i(8215),i(233),i(247),i(229),i(241),i(232),i(299),i(8220),i(1012),i(2605),i(281),i(1341),i(549),i(275),i(304),i(467),i(209),i(468),i(263),i(2567),i(2568)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U,W,G,z,q,K,X){return e(s,{_EDITOR_TYPE:{PLAIN_EDITOR:"editor",LIVE_EDITOR:"liveEditor"},_NOT_A_SUPPORTED_FILE_ERROR_ID:"notASupportedFileError",constructor:function(e){G.assert(e.uiContainer,"uiContainer is required to initialize EditorService"),G.assert(e.executionService,"executionService is required to initialize EditorService"),G.assert(e.actionService,"actionService is required to initialize EditorService"),G.assert(e.fileDataService,"fileDataService is required to initialize EditorService"),this._editorViews={},this._actionProviders={},this._filesToOpenAfterRename={},this._activeEditor=null,this._nextUuid=null,this._generateUuid(),this.uiContainer=e.uiContainer,this.executionDataService=e.executionService,this.actionService=e.actionService,this.fileDataService=e.fileDataService,this.statusBar=e.statusBar,this._debugServices=j.getInstance(),this._saveOptionsEnablementService=new E(this,this.fileDataService,this.actionService),this.untitledBufferService=new w(this,this.fileDataService),this._openToLineService=new T(this,this.fileDataService),this._pluggableBackingStoreFeature=new A,this._isUnifiedEditorEnabled=!1,this._registerEventListeners(),this._registerSettingsListeners(),this.navigationModel=K.getInstance(),this.navigationModel.on(X.NAVIGATION_MODEL_STARTED,()=>{this.navigationModel.clear()}),this.navigationModel.start(),H.addLabelsForActionService(this.actionService),this._plainEditorWidgetFactory=new b,this._liveEditorWidgetFactory=new _;var t={};t[k.UNDO]=y.UNDO_EDITOR,t[k.REDO]=y.REDO_EDITOR;const i=x.getStatusComponentTags(),n=new x;this._editorProperties=new W({defaultRegion:"left",isDefault:!0,title:"Editor",collectiveLabel:"Editor Files",willReopen:!0,plusActions:[O.NEW_FILE],tabGroupTags:["motwToolstrip.editorTabGroup"],qabControlToActionMap:t,documentFactory:this._plainEditorWidgetFactory,tabGroupFactories:{"motwToolstrip.editorTabGroup":new v},canUndock:!0,statusComponentTags:i,statusComponentFactory:n}),this._liveEditorProperties=new W({defaultRegion:"left",title:"Live Editor",collectiveLabel:"Live Code Files",willReopen:!0,plusActions:[O.NEW_LIVE_SCRIPT],tabGroupTags:["motwToolstrip.liveEditorTabGroup"],contexts:[{contextId:"motwToolstrip.equationEditorContext",tabGroupTags:["motwToolstrip.equationEditorTabGroup"]},{contextId:"motwToolstrip.figuretab",tabGroupTags:[R.tag]}],qabControlToActionMap:t,documentFactory:this._liveEditorWidgetFactory,tabGroupFactories:{"motwToolstrip.liveEditorTabGroup":new m,"motwToolstrip.equationEditorTabGroup":new f},canUndock:!0,statusComponentTags:i,statusComponentFactory:n}),L.parseQueryString().editorUndocking||(this._editorProperties.canUndock=!1,this._liveEditorProperties.canUndock=!1),this.setActionProviders(S.createActionProviders(this,this.actionService,this.fileDataService),window),this.uiContainer.registerDocumentType(h.DOCUMENT_TYPE.PLAIN_CODE_FILE,this._editorProperties),this.uiContainer.registerDocumentType(h.DOCUMENT_TYPE.LIVE_CODE_FILE,this._liveEditorProperties),e.figureAnnotationsGalleryManager&&(e.figureAnnotationsGalleryManager.buildGalleryPopup(),this.uiContainer.addTabGroupFromConfig(R,R.tag),e.figureAnnotationsGalleryManager.postPopulateGallery()),this._openAsLiveScriptService=new C(this.fileDataService),this._updateSaveErrorMessageStoreDialogCreateCallbacks()},_registerEventListeners:function(){this.own(n.after(this.fileDataService,"onFileOpen",t.hitch(this,"_onFileOpen"),!0)),this.own(n.after(this.fileDataService,"onFileClose",t.hitch(this,"_onFileClose"),!0)),this.own(n.after(this.fileDataService,"onFileClosed",t.hitch(this,"_onFileClosed"),!0)),this.own(n.after(this.fileDataService,"onFileShow",t.hitch(this,"_onFileShow"),!0)),this.own(n.after(this.fileDataService,"onFileModificationChange",t.hitch(this,"_onFileModificationChange"),!0)),this.own(n.after(this.fileDataService,"onCurrentFolderChange",t.hitch(this,"_updateSaveActionState"))),this.own(n.after(this.fileDataService,"saveOpenFiles",t.hitch(this,"_onSaveOpenFiles"),!0)),this.own(n.before(this.fileDataService,"renameFile",t.hitch(this,"_prepareForRename"))),this.own(n.before(this.fileDataService,"renameNewFile",t.hitch(this,"_prepareForRename"))),this.own(n.after(this.fileDataService,"onRename",t.hitch(this,"_onRename"),!0)),this.own(n.after(this._debugServices,"onDebugModeChanged",t.hitch(this,"_handleOnDebugModeChanged")))},_registerSettingsListeners:function(){q.getSetting(["matlab","desktop"],"EnableMOUnifiedEditor").then(function(e){this._isUnifiedEditorEnabled=e.value}.bind(this),(function(e){})),this.own(q.listenTo(["matlab","desktop"],"EnableMOUnifiedEditor",function(e){this._isUnifiedEditorEnabled=e.newValue}.bind(this)))},isUnifiedEditorEnabled:function(){return this._isUnifiedEditorEnabled},_executeCloseEditorActionCallback:function(e){var t=e.widget.editor.getActionDataService().getAction(y.CLOSE_EDITOR);return!(!t||!t.enabled)&&t.callback()},_saveCodeFileOnClose:function(e){var t=e.getFile();return this.onEditorSave(t.id,!0)},_canCloseCallback:function(e){var t=e.getFile();return!this.fileDataService.isFileModified(t)||(this._isUntitled(t)?this._executeCloseEditorActionCallback(e):this._saveCodeFileOnClose(e))},loadEditor:async function(e,t,i){const n=e.getFile(),o=n.fileInfo,r=(N.pathFromFileInfo(o),this._isUntitled(n)&&n.content&&n.content instanceof V?this._loadEditorWithOpcContent(e,n.content):this._loadEditor(e));try{return await r?(this._postLoadEditor(e,i),this._isUntitled(n)||this.fileDataService.refreshOpenFolders(),e.isFileEditable()||(e.editor.getDocument().setReadOnly(!0),this._updateActions(e)),e):(t?this._showInvalidFileDialog(o):this._onFileClose(o),null)}catch(e){return G.error(e),t?this._showInvalidFileDialog(o):this._onFileClose(o),null}},_postLoadEditor:function(e,i){const o=e.getFile();this.own(n.after(e,"undoRedoStackUpdated",t.hitch(this,"_updateUndoRedoActionState",e),!0)),e.canClose=t.hitch(this,"_canCloseCallback",e),this._registerWatchCallbacksForChildProperties(e),this._pendingUndockFileInfo&&this._pendingUndockFileInfo.location===o.fileInfo.location&&this._pendingUndockFileInfo.name===o.fileInfo.name&&(e.isDocked=!1),this._pendingUndockFileInfo=null,i&&this.uiContainer.addDocument(e.widget,e),this._updateContentProperty(e),this._registerOnLocationUpdateEventListener(e),this._updateEditorViewTitle(e);const r=this._isLiveCodeFile(e.getFile().fileInfo.name)?"liveEditorWindow":"textEditorWindow";e.widget[r].parentNode.replaceChild(e.editor.domNode,e.widget[r]),delete e.widget[r],e.editor.startup(),e.setActive(),e.get(U.IS_SELECTED)?e.editor.focus():e.editor.blur(),this._notifyOfActiveEditor(e);var a=this._getActionProviders(e);a&&a.liveEditorActionProvider&&(a.liveEditorActionProvider.setActionPropertiesOnLoad(e),this._updateActions(e)),this._isUntitled(o)&&e.set(U.DESCRIPTION,""),this.onOpen(e)},_awaitEditorLoaded:async function(e){return await e.rtcCreatedPromise,await e.widget.getBackingStore().getLoadPromise()},_registerWatchCallbacksForChildProperties:function(e){i.forEach([{childProperty:U.IS_OPEN,callback:"_editorViewIsOpenCallback"},{childProperty:U.IS_SELECTED,callback:"_editorViewIsSelectedCallback"},{childProperty:U.IS_DOCKED,callback:"_editorViewIsDockedCallback"}],(function(i){this.own(e.watch(i.childProperty,t.hitch(this,i.callback,e)))}),this)},_editorViewIsOpenCallback:function(e,t,i,n){if(i&&!n){var o=e.getFile().fileInfo;this._isLiveCodeFile(o.name)?(this.fileDataService.openedFilesDataStore.remove(N.pathFromFileInfo(o)),this.fileDataService.onFileClose(o),this.actionService.updateAction(O.SAVE,{enabled:!1})):this.fileDataService._isFileOpen(o)&&(this._isUntitled(e.getFile())?this.fileDataService._doCloseFile(o,!1):this.fileDataService.closeFile(o))}},_editorViewIsSelectedCallback:async function(e,t,i,n){n&&(this._getActionProviders(e).lastSelectedType=e.isLiveEditor()?"live":"plain",e.setActive&&e.setActive(),await this._awaitEditorLoaded(e),this._notifyOfActiveEditor(e),this._updateActions(e))},_editorViewIsDockedCallback:function(e,t,i,n){e.get(U.IS_SELECTED)&&this._updateActions(e)},hasActionProviders:function(e){return!!this.getActionProvidersForWindow(e)},setActionProviders:function(e,i){var n=i.name||"";e.window=i,this._actionProviders[n]=e,this.own(r(i,"unload",t.hitch(this,(function(){delete this._actionProviders[n]})))),this._editorProperties.watchForWindow(i,W.LAST_SELECTED,(e,t,i)=>{i&&(this._actionProviders[n].lastSelectedType="plain")}),this._liveEditorProperties.watchForWindow(i,W.LAST_SELECTED,(e,t,i)=>{i&&(this._actionProviders[n].lastSelectedType="live")})},_getActionProviders:function(e){return this.getActionProvidersForWindow(e.window)},getActionProvidersForWindow:function(e){return this._actionProviders[e.name||""]},_removeUntitledFilesFromMessagesAndContext:function(e,t){for(var i=e.length;i--;){var n=e[i].file.fileInfo;this._isUntitled(this._getEditorFromFileInfo(n).getFile())&&(delete t.ModifiedDates[N.pathFromFileInfo(n)],e.splice(i,1))}},_saveAllEditorUntitledBuffer:async function(){const e=Object.keys(this._editorViews);for(let t=0;t<e.length;t++){const i=this.getAllOpenEditors(e[t]);try{await i.widget.getBackingStore().save(i.getFile().id,!1)}catch(e){}}},_saveActiveEditorUntitledBuffer:function(){var e=this.getActiveEditor(window);if(e){var t=e.getFile();this._isUntitled(t)&&a(this.onEditorSave(t.id,!1),(function(){}),(function(){}))}},_onSaveOpenFiles:function(e){var t={},i=this.fileDataService._createUpdateFileRequest(t);this._removeUntitledFilesFromMessagesAndContext(i,t),this.isLocalClient()?this._saveAllEditorUntitledBuffer():this._saveActiveEditorUntitledBuffer(),this._saveLiveScriptFile(i),this._savePlainCodeFiles(i),i.length>0?(t.postSaveWork=e,P.sendMessage({UpdateFile:i},t,this.classifier)):e&&e()},_openFilesForSession:function(e){z.start("RestoreFiles"),this._restoreFilesAtStartup(e).then(function(){this.uiContainer.set("isDocumentContainerBusy",!1),z.end("RestoreFiles")}.bind(this),(function(){}))},_restoreFilesAtStartup:function(e){const t=new o,i=t.promise;return 0===e.length?(t.resolve(),i):(q.getSetting(["matlab","editor"],"ReopenFilesOnRestart").then(function(i){if(!i.value)return void t.resolve();let n=e.length;const o=function(){--n>=0&&(t.resolve(),n=0)},r=function(){0==--n&&t.resolve()};e.forEach((function(e){const t=N.locationFromPath(e),i=N.nameFromPath(e),n=N.createEmptyFileObject(t,i),s=this.openFile(n,!1);a(s,o,r)}),this)}.bind(this)),i)},_saveLiveScriptFileFromEditor:function(e){var t=e.getFile();return a(this.onEditorSave(t.id),function(e){!this._isUntitled(t)&&e&&this.fileDataService.setFileClean(t)}.bind(this),(function(){}))},_saveLiveScriptFile:function(e){for(var t=e.length;t--;){var i=e[t].file.fileInfo,n=this._getEditorFromFileInfo(i);this._isLiveCodeFile(i.name)&&(this._saveLiveScriptFileFromEditor(n),e.splice(t,1)),n&&n.file&&!this._isUntitled(n.file)&&(n.file.savePending=!1)}},_savePlainCodeFiles:function(e){for(var t=e.length;t--;){var i=e[t].file.fileInfo,n=this._getEditorFromFileInfo(i);this._isLiveCodeFile(i.name)||(this._saveLiveScriptFileFromEditor(n),e.splice(t,1)),n&&n.file&&!this._isUntitled(n.file)&&(n.file.savePending=!1)}},_isUntitled:function(e){return e.isUntitled||!1},_showInvalidFileDialog:function(e){const t=N.pathFromFileInfo(e),i=l.disableFunctionSaveTitle,n=l.errorLoadingText.replace("{0}",t),o=this._createDialogBox("error");o.closeCallback=function(){this._onFileClose(e)}.bind(this),M.displayConfirmDialog(i,n,o)},_generateUuid:function(){var e=this._nextUuid;return this._nextUuid=D.generateUuid(),e},_getNextUuid:function(){return this._nextUuid},generatePlainEditorId:function(){return this._EDITOR_TYPE.PLAIN_EDITOR+this._generateUuid()},generateLiveEditorId:function(){return this._EDITOR_TYPE.LIVE_EDITOR+this._generateUuid()},_generateInitialState:function(e){return{Filename:N.pathFromFileInfo(e.fileInfo),IsUntitled:this._isUntitled(e),IsMATLABApiRequest:!1,InitialEditorContent:e.content,ShowErrorDialogs:!0,AddEditorViewToUiContainer:!0}},_generateInitialProperties:function(){return{documentId:d()}},_setupEditor:function(e){var t=this._getActionProviders(e);t&&t.matlabActionProvider&&t.matlabActionProvider.setupEditor(e)},isLocalClient:function(){return!!this.enableSaveOptions},_setupPlainEditor:function(e){this._setupEditor(e);var t=e.editor._forTestingOnly._pluginResolver._cachedInjector.getDependency("rtc.code.sections.model");t&&e.editor.own(n.after(t,"onSectionsChanged",this._updateSectionActions.bind(this,e)))},_registerOnLocationUpdateEventListener:function(e){const t=e.widget.getBackingStore();e.editor.own(n.after(t,"onLocationUpdated",this._updateContentProperty.bind(this,e),!0))},_updateContentProperty:function(e){e.set("content",{Filename:B.getLongName(e.widget.getBackingStore()),RtcId:e.id})},openFile:function(e,i){return this.fileDataService.openedFilesDataStore.put(t.mixin(e,{modifiedDate:null,savePending:!1,id:N.pathFromFileInfo(e.fileInfo),isUntitled:i})),this._onFileOpen(e,!1,1,1,!1)},openAsLiveCode:function(e){this._openAsLiveScriptService.openAsLiveCode(e)},_onFileOpen:function(e,t,i,n,o){var r=document.activeElement;if(this.isLocalClient()||this._saveOptionsEnablementService.removeOptionsIfApplicable(),this._editorViews[e.id])return this._onFileShow(e,t,i,n),this._editorViews[e.id];var a=this._createAndLoadEditor(e,i,n);return o&&r&&r.focus(),a},_createAndLoadEditor:async function(e,t,i){z.start("Open "+e.fileInfo.name);const n=this._generateInitialState(e),o=this._generateInitialProperties(),r=this._isLiveCodeFile(e.fileInfo.name)?this._liveEditorWidgetFactory:this._plainEditorWidgetFactory,a=r.createProperties(this.uiContainer,n,o);try{r.createWidget(this.uiContainer,n,a);const o=await this._awaitEditorLoaded(a);return z.end("Open "+e.fileInfo.name),o?(this._goToPositionInLine(a,t,i),a):null}catch(e){return G.warn(e),null}},_setupDropTarget:function(e){a(e.rtcCreatedPromise,function(){u.createSelectableDnDTarget(e.editor.domNode,{accept:["dgrid-row"]},function(t,i){t.accept.hasOwnProperty("dgrid-row")&&(e.focus(),i.forEach(e=>{const i=t.getItem(e.id).data;i&&this._executeOpenFileAction(i)}))}.bind(this))}.bind(this))},_goToPositionInLine:function(e,t,i){t>-1&&e.editor.getActionDataService().executeAction(y.GOTO_POSITION_IN_LINE,{line:t,position:i})},closeAllEditors:function(){Object.keys(this._editorViews).forEach((function(e){this._closeEditor(this._editorViews[e])}),this),this._editorViews={}},_onFileClose:function(e){const t=N.pathFromFileInfo(e);this.fileDataService.openedFilesDataStore.remove(t);const i=this._getViewFromFileInfo(e);this._closeEditor(i),this._unregisterEditorView(t)},_closeEditor:function(e){e.get(U.IS_OPEN)&&e.set(U.IS_OPEN,!1),this._activeEditor===e&&(this._activeEditor=null),this.onClose(e)},_onFileClosed:function(e){this._updateSaveActionState()},_onFileShow:async function(e,t,i,n,o){var r=document.activeElement,a=this._getViewFromFileInfo(e.fileInfo);a.set(U.IS_SELECTED,!0);try{await this._awaitEditorLoaded(a),this._goToPositionInLine(a,i,n),o&&r?r.focus():a.set(U.IS_SELECTED,!0)}catch(e){G.warn("Editor is not loaded")}},_onFileModificationChange:function(e,t){var i=this._getViewFromFileInfo(e);this._updateEditorViewTitle(i,t?"":" *"),this._updateActions(i)},_getEditorFromFileInfo:function(e){var t=N.pathFromFileInfo(e),i=this._editorViews[t];return G.assert(i,"Editor does not exist for file: "+t),i},_getViewFromFileInfo:function(e){var t=N.pathFromFileInfo(e),i=this._editorViews[t];return G.assert(i,"Editor does not exist for file: "+t),i},_getFileNameForEditorViewTitle:function(e){return!this._isLiveCodeFile(e.fileInfo.name)&&this._isUntitled(e)?N.getFileNameNoExtension(e.fileInfo.name):e.fileInfo.name},_updateEditorViewTitle:function(e,t){t=t||"",e.set(U.TITLE,this._getFileNameForEditorViewTitle(e.getFile())+t)},_updateSaveActionState:function(){this.fileDataService&&Object.keys(this._actionProviders).forEach(t.hitch(this,(function(e){var t=this._actionProviders[e],i=!1;(this._editorProperties.getForWindow(t.window,W.LAST_SELECTED)||this._liveEditorProperties.getForWindow(t.window,W.LAST_SELECTED))&&(i=!0);var n=this.fileDataService.doesOpenModifiedFileExist();t.actionService.updateAction(O.SAVE,{enabled:i}),t.liveEditorActionProvider.updateSaveActionState(i,n),n?t.actionService.updateAction(O.SAVE,{icon:"save_dirty_24",quickAccessIcon:"save_dirty_16"}):t.actionService.updateAction(O.SAVE,{icon:"save_24",quickAccessIcon:"save_16"}),t.actionService.updateAction(y.SAVEAS,{enabled:i&&N.isWritable(this.fileDataService.currentWorkingFolder),currentWorkingFolder:this.fileDataService.currentWorkingFolder})})))},_updateSectionActions:function(e){var t=this._getActionProviders(e);t.matlabActionProvider.updateActions(e),t.publishTabActionProvider.updateActions(e)},_updateUndoRedoActionState:function(e,t){var i=!(!e||!e.isEditable())&&t.isUndoable,n=!(!e||!e.isEditable())&&t.isRedoable,o=this._getActionProviders(e);o.actionService.updateAction(y.UNDO_EDITOR,{enabled:i}),o.actionService.updateAction(y.REDO_EDITOR,{enabled:n})},_notifyOfActiveEditor:function(e){var t=this._activeEditor;this._activeEditor=e,this.onActiveEditor(e,t)},onOpen:function(e){},onClose:function(e){},_updateActions:function(e){this._updateSaveActionState(),this.isLocalClient()&&this._saveOptionsEnablementService.updateSaveAllEnablementState(),this._updateUndoRedoActionState(e,e.getUndoRedoStates());var t=this._getActionProviders(e);t.editSectionActionProvider.updateActions(e),t.matlabActionProvider.updateActions(e),t.compareActionProvider.updateActions(e)},onShow:function(e){},onActiveEditor:function(e,t){e!==t&&(this._newFeaturesHandle&&this._newFeaturesHandle.remove(),this._newFeaturesHandle=n.after(e.editor,"onLateFeaturesAdded",function(){this._updateActions(e)}.bind(this),!0))},onEditorSave:function(e,t){var i=this.getAllOpenEditors(e);if(i&&i.widget.getBackingStore){var n=i.widget.getBackingStore();return this._isUntitled(i.getFile())?n.save(e,t):n.save(e).then((function(e){return e&&e.status}))}},onEditorRenamed:function(e,t){},emplaceEditorView:function(e,t){const i=this._editorViews[e];this._editorViews[t]=i,this._unregisterEditorView(e),this.onEditorRenamed(e,t)},_registerEditorView:function(e){const t=N.pathFromFileInfo(e.getFile().fileInfo);this._editorViews[t]=e},_unregisterEditorView:function(e){delete this._editorViews[e]},registerPlainEditor:function(e){this._registerEditorView(e),this.own(n.after(e,"setEditor",this._setupPlainEditor.bind(this,e)))},registerLiveEditor:function(e){this._registerEditorView(e),this.own(n.after(e,"setEditor",this._setupEditor.bind(this,e)))},_createDialogBox:function(e){return{icon:e,buttonText:[c.ok],defaultAcceptButton:1,closeCallback:function(){}}},_createDisableSaveFunctionDialogBox:function(){return{icon:"warning",buttonText:[c.ok],defaultAcceptButton:1,closeCallback:function(){}}},getLiveEditorToolstripActionProvider:function(){return this._getActionProviders(window).liveEditorActionProvider},_isLiveCodeFile:function(e){return N.isLiveScriptFile(e)},_loadEditorWithOpcContent:async function(e,t){let i;await e.rtcCreatedPromise;return i=e.widget.getBackingStore().experimentalLoadOpc(t),i},_loadEditor:async function(e){let t;await e.rtcCreatedPromise;return t=e.widget.getBackingStore().load(),t},createLiveCodeEditor:function(e){return this.fileDataService.enableUntitledBuffer?this.untitledBufferService.createLiveCodeBuffer(e):null},createUntitledBuffer:function(e){return this.untitledBufferService.createUntitledBuffer(e)},getActiveEditor:function(e){if(this._activeEditorForTest)return this._activeEditorForTest;e||(e=window);var t,i=this.getActionProvidersForWindow(e).lastSelectedType,n=this._editorProperties.getForWindow(e,W.LAST_SELECTED),o=this._liveEditorProperties.getForWindow(e,W.LAST_SELECTED);if("plain"===i&&n?t=n:"live"===i&&o&&(t=o),t||(t=n||o),t)return t.editorView;var r=this.fileDataService.openedFilesDataStore.query({},{start:0,count:1});return r.length>0?this.getAllOpenEditors(N.pathFromFileInfo(r[0].fileInfo)):void 0},_setActiveEditorForTest:function(e){if(this._activeEditorForTest!==e&&(this._activeEditorForTest=e,e)){var t=N.pathFromFileInfo(e.getFile().fileInfo);this._editorViews[t]||(this._editorViews[t]=e),e.setActive&&e.setActive(),this._notifyOfActiveEditor(e),this._updateActions(e)}},getAllOpenEditors:function(e){return this._editorViews[e]},setUndockUponOpen:function(e){this._pendingUndockFileInfo=e},_handleOnDebugModeChanged:async function(){var e=this.getActiveEditor();e&&(await e.rtcCreatedPromise,this._getActionProviders(e).matlabActionProvider.updateActions(e))},_prepareForRename:function(e,t){var i=N.pathFromFileInfo(e),n=N.pathFromFileInfo(t);this._filesToOpenAfterRename[n]=this.fileDataService._queryForRelatedOpenFiles(i).map((function(e){return N.pathFromFileInfo(e.fileInfo).replace(i,n)}))},_onRename:function(e){var t=N.pathFromFileInfo(e);this._filesToOpenAfterRename[t]&&(this._filesToOpenAfterRename[t].map(N.fileInfoFromPath,N).forEach(this._executeOpenFileAction,this),delete this._filesToOpenAfterRename[t])},_executeOpenFileAction:function(e){this.actionService.executeAction(O.OPEN_FILE,{fileInfo:e})},_prepareForFileDelete:function(e){var t=N.pathFromFileInfo(e),i=this.getAllOpenEditors(t);i&&(this.fileDataService.enableUntitledBuffer&&this._createUntitledBufferOnDelete(i),this.fileDataService._doCloseFile(e,!1))},_createUntitledBufferOnDelete:function(e){var t=e.editor.getActionDataService().getAction(O.NEW_UNTITLED_BUFFER_ON_FILE_DELETE);t&&t.enabled?e.widget.editor.getActionDataService().executeAction(O.NEW_UNTITLED_BUFFER_ON_FILE_DELETE):G.warn("NEW_UNTITLED_BUFFER_ON_FILE_DELETE action should be enabled to create a new untitled buffer when a file opened in editor is deleted.")},_updateSaveErrorMessageStoreDialogCreateCallbacks:function(){var e=I.getStore();e.query().forEach(function(t){t.beforeDialogCreateCallback=function(e){this.getAllOpenEditors(e).set(U.IS_SELECTED,!0)}.bind(this),e.put(t)}.bind(this))},destroy:function(){this.untitledBufferService.destroy(),this._saveOptionsEnablementService.destroy(),this.untitledBufferService=null,this._openToLineService.destroy(),this._openToLineService=null,this._pluggableBackingStoreFeature.destroy(),this._pluggableBackingStoreFeature=null,I.getStore().destroy(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204)],o=i.dj.d(n,(function(e){return e.getObject("uuid",!0,dojox),dojox.uuid.NIL_UUID="00000000-0000-0000-0000-000000000000",dojox.uuid.version={UNKNOWN:0,TIME_BASED:1,DCE_SECURITY:2,NAME_BASED_MD5:3,RANDOM:4,NAME_BASED_SHA1:5},dojox.uuid.variant={NCS:"0",DCE:"10",MICROSOFT:"110",UNKNOWN:"111"},dojox.uuid.assert=function(e,t){if(!e)throw t||(t="An assert statement failed.\nThe method dojox.uuid.assert() was called with a 'false' value.\n"),new Error(t)},dojox.uuid.generateNilUuid=function(){return dojox.uuid.NIL_UUID},dojox.uuid.isValid=function(t){t=t.toString();var i=e.isString(t)&&36==t.length&&t==t.toLowerCase();if(i){var n=t.split("-");i=5==n.length&&8==n[0].length&&4==n[1].length&&4==n[2].length&&4==n[3].length&&12==n[4].length;for(var o in n){var r=n[o],a=parseInt(r,16);i=i&&isFinite(a)}}return i},dojox.uuid.getVariant=function(e){if(!dojox.uuid._ourVariantLookupTable){var t=dojox.uuid.variant,i=[];i[0]=t.NCS,i[1]=t.NCS,i[2]=t.NCS,i[3]=t.NCS,i[4]=t.NCS,i[5]=t.NCS,i[6]=t.NCS,i[7]=t.NCS,i[8]=t.DCE,i[9]=t.DCE,i[10]=t.DCE,i[11]=t.DCE,i[12]=t.MICROSOFT,i[13]=t.MICROSOFT,i[14]=t.UNKNOWN,i[15]=t.UNKNOWN,dojox.uuid._ourVariantLookupTable=i}var n=(e=e.toString()).charAt(19),o=parseInt(n,16);return dojox.uuid.assert(o>=0&&o<=16),dojox.uuid._ourVariantLookupTable[o]},dojox.uuid.getVersion=function(e){dojox.uuid.assert(dojox.uuid.getVariant(e)==dojox.uuid.variant.DCE,"dojox.uuid.getVersion() was not passed a DCE Variant UUID.");var t=(e=e.toString()).charAt(14);return parseInt(t,16)},dojox.uuid.getNode=function(e){return dojox.uuid.assert(dojox.uuid.getVersion(e)==dojox.uuid.version.TIME_BASED,"dojox.uuid.getNode() was not passed a TIME_BASED UUID."),(e=e.toString()).split("-")[4]},dojox.uuid.getTimestamp=function(e,t){switch(dojox.uuid.assert(dojox.uuid.getVersion(e)==dojox.uuid.version.TIME_BASED,"dojox.uuid.getTimestamp() was not passed a TIME_BASED UUID."),e=e.toString(),t||(t=null),t){case"string":case String:return dojox.uuid.getTimestamp(e,Date).toUTCString();case"hex":var i=e.split("-"),n=i[0],o=i[1],r=i[2],a=(r=r.slice(1))+o+n;return dojox.uuid.assert(15==a.length),a;case null:case"date":case Date:var s=e.split("-"),l=parseInt(s[0],16),c=parseInt(s[1],16),d=4095&parseInt(s[2],16);d<<=16,d+=c,d*=4294967296,d+=l;return new Date(d/1e4-122192928e5);default:dojox.uuid.assert(!1,"dojox.uuid.getTimestamp was not passed a valid returnType: "+t)}},dojox.uuid}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(34)],o=i.dj.d(n,(function(e,t){var i=e(t,{onSelectStart:function(e){}});return{createSelectableDnDTarget:function(e,t,n){var o=new i(e,t);return n&&(o.onDrop=n),o}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(484),i(280),i(7980),i(7989),i(7991)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t],{INSERT_MATRIX_TAG:"motwToolstrip.equationEditorTab.matrices.insertMatrix_NxM",INSERT_MATRIX_ACTION_PREFIX:"equationeditor.insert.matrix",modulePath:"MOTW/editor/EquationEditorTabGroupFactory",createWidget:function(e,t){var i=e.uiBuilder;this.uiBuilder=i;var n=e.getRootUIContainer();if(this.equationEditorSymbolsGalleryManager=new r({uiBuilder:i,authorizationDetailsService:n.application.authorizationDetailsService,executionService:n.application.executionService}),this.equationEditorStructuresGalleryManager=new o({uiBuilder:i,authorizationDetailsService:n.application.authorizationDetailsService,executionService:n.application.executionService}),t)this.equationEditorSymbolsGalleryManager.setGalleryState(t.symbolsGalleryState),this.equationEditorStructuresGalleryManager.setGalleryState(t.structuresGalleryState);else if(n.application.sessionService){var a=n.application.sessionService,s=this.equationEditorSymbolsGalleryManager,l=this.equationEditorStructuresGalleryManager;a.convertObjectPropertyToStringSetting("EquationEditorSymbolsGalleryState",["matlab","editor","equations"],"EquationEditorSymbolsGalleryState"),a.registerSettingToSync(["matlab","editor","equations"],"EquationEditorSymbolsGalleryState",{get:function(){if(this._built)return JSON.stringify(s.getGalleryState())}.bind(this),set:function(e){this._setSymbolsOnce||(this._setSymbolsOnce=!0,s.setGalleryState(JSON.parse(e)))}.bind(this)}),a.convertObjectPropertyToStringSetting("EquationEditorStructuresGalleryState",["matlab","editor","equations"],"EquationEditorStructuresGalleryState"),a.registerSettingToSync(["matlab","editor","equations"],"EquationEditorStructuresGalleryState",{get:function(){if(this._built)return JSON.stringify(l.getGalleryState())}.bind(this),set:function(e){this._setStructuresOnce||(this._setStructuresOnce=!0,l.setGalleryState(JSON.parse(e)))}.bind(this)})}else{n.application.galleryManagers||(n.application.galleryManagers={});var c=n.application.galleryManagers;c.EquationEditorSymbols=this.equationEditorSymbolsGalleryManager,c.EquationEditorStructures=this.equationEditorStructuresGalleryManager}this._built=!1},_insertMatrixNxM:function(e){if("selection"===e.property){var t=this.INSERT_MATRIX_ACTION_PREFIX+e.newValue.row+"x"+e.newValue.column;i.editorService.getActiveEditor(window).editor.getActionDataService().executeAction(t)}},getState:function(){return{symbolsGalleryState:this.equationEditorSymbolsGalleryManager.getGalleryState(),structuresGalleryState:this.equationEditorStructuresGalleryManager.getGalleryState()}},ensureBuilt:function(){this._built||(this._built=!0,this.equationEditorSymbolsGalleryManager.buildGalleryPopup(),this.equationEditorStructuresGalleryManager.buildGalleryPopup(),this.uiBuilder.addTabGroupFromConfig(n,"motwToolstrip.equationEditorTabGroup"),this.equationEditorSymbolsGalleryManager.postPopulateGallery(),this.equationEditorStructuresGalleryManager.postPopulateGallery(),this.uiBuilder.addPropertySetCallback(this.uiBuilder.tagToId(this.INSERT_MATRIX_TAG),this._insertMatrixNxM,this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(299),i(340),i(1233),i(1635),i(643),i(290),i(535),i(567)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return{tag:"motwToolstrip.equationEditorTabGroup",type:e.TAB_GROUP,children:[{tag:"motwToolstrip.equationEditorTab",type:e.TAB,title:a.equationEditorTabTitle,mnemonic:"E",children:[{tag:"motwToolstrip.equationEditorTab.format",type:e.SECTION,title:s.formatSectionTitle,children:[{tag:"motwToolstrip.equationEditorTab.format.column",type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.equationEditorTab.format.bold",type:e.TOGGLE_BUTTON,mnemonic:"B",actionId:n.ids.BOLD,description:r.boldDescription,textOverride:l.DO_NOT_DISPLAY,icon:"smallBold"},{tag:"motwToolstrip.equationEditorTab.format.italics",type:e.TOGGLE_BUTTON,mnemonic:"I",textOverride:l.DO_NOT_DISPLAY,actionId:n.ids.ITALIC,description:r.italicDescription,icon:"smallItalic"}]}]},{tag:"motwToolstrip.equationEditorTab.symbols",type:e.SECTION,title:o.symbolsSectionTitle,children:[{tag:"motwToolstrip.equationEditorTab.symbols.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.equationEditorTab.symbols.gallery",type:e.GALLERY,mnemonic:"S",galleryPopupTag:"motwToolstrip.equationEditorTab.symbols.galleryPopup",minColumnCount:5,maxColumnCount:15}]}]},{tag:"motwToolstrip.equationEditorTab.structures",type:e.SECTION,title:o.structuresSectionTitle,children:[{tag:"motwToolstrip.equationEditorTab.structures.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.equationEditorTab.structures.gallery",type:e.GALLERY,mnemonic:"T",galleryPopupTag:"motwToolstrip.equationEditorTab.structures.galleryPopup",maxColumnCount:12}]}]},{tag:"motwToolstrip.equationEditorTab.matrices",type:e.SECTION,title:o.matricesSectionTitle,children:[{tag:"motwToolstrip.equationEditorTab.matrices.column",type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.equationEditorTab.matrices.insertMatrix_NxM",type:e.GRID_PICKER_BUTTON,mnemonic:"M",text:o.insertMatrix,maxRows:10,maxColumns:10,actionId:n.ids.INSERT_MATRIX_NXM,icon:"smallMatrix"}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){e.exports={symbolsSectionTitle:"記号",structuresSectionTitle:"構成",matricesSectionTitle:"行列",categoryGreekLetters:"ギリシャ文字",alpha:"アルファ",alphaDescription:"アルファ (\\alpha)",beta:"ベータ",betaDescription:"ベータ (\\beta)",gamma:"ガンマ",gammaDescription:"ガンマ (\\gamma)",delta:"デルタ",deltaDescription:"デルタ (\\delta)",epsilon:"イプシロン",epsilonDescription:"イプシロン (\\epsilon)",varepsilon:"イプシロン (異体字)",varepsilonDescription:"イプシロン (異体字) (\\varepsilon)",zeta:"ゼータ",zetaDescription:"ゼータ (\\zeta)",eta:"イータ",etaDescription:"イータ (\\eta)",theta:"シータ",thetaDescription:"シータ (\\theta)",vartheta:"シータ (異体字)",varthetaDescription:"シータ (異体字) (\\vartheta)",iota:"イオタ",iotaDescription:"イオタ (\\iota)",kappa:"カッパ",kappaDescription:"カッパ (\\kappa)",lambda:"ラムダ",lambdaDescription:"ラムダ (\\lambda)",mu:"ミュー",muDescription:"ミュー (\\mu)",nu:"ニュー",nuDescription:"ニュー (\\nu)",xi:"グザイ",xiDescription:"グザイ (\\xi)",omicron:"オミクロン",omicronDescription:"オミクロン (\\omicron)",pi:"パイ",piDescription:"パイ (\\pi)",varpi:"パイ (異体字)",varpiDescription:"パイ (異体字) (\\varpi)",rho:"ロー",rhoDescription:"ロー (\\rho)",varrho:"ロー (異体字)",varrhoDescription:"ロー (異体字) (\\varrho)",sigma:"シグマ",sigmaDescription:"シグマ (\\sigma)",varsigma:"シグマ (異体字)",varsigmaDescription:"シグマ (異体字) (\\varsigma)",tau:"タウ",tauDescription:"タウ (\\tau)",upsilon:"ウプシロン",upsilonDescription:"ウプシロン (\\upsilon)",phi:"ファイ",phiDescription:"ファイ (\\phi)",varphi:"ファイ (異体字)",varphiDescription:"ファイ (異体字) (\\varphi)",chi:"カイ",chiDescription:"カイ (\\chi)",psi:"プサイ",psiDescription:"プサイ (\\psi)",omega:"オメガ",omegaDescription:"オメガ (\\omega)",Alpha:"アルファ",AlphaDescription:"アルファ (\\Alpha)",Beta:"ベータ",BetaDescription:"ベータ (\\Beta)",Gamma:"ガンマ",GammaDescription:"ガンマ (\\Gamma)",Delta:"デルタ",DeltaDescription:"デルタ (\\Delta)",Epsilon:"イプシロン",EpsilonDescription:"イプシロン (\\Epsilon)",Zeta:"ゼータ",ZetaDescription:"ゼータ (\\Zeta)",Eta:"イータ",EtaDescription:"イータ (\\Eta)",Theta:"シータ",ThetaDescription:"シータ (\\Theta)",Iota:"イオタ",IotaDescription:"イオタ (\\Iota)",Kappa:"カッパ",KappaDescription:"カッパ (\\Kappa)",Lambda:"ラムダ",LambdaDescription:"ラムダ (\\Lambda)",Mu:"ミュー",MuDescription:"ミュー (\\Mu)",Nu:"ニュー",NuDescription:"ニュー (\\Nu)",Xi:"グザイ",XiDescription:"グザイ (\\Xi)",Omicron:"オミクロン",OmicronDescription:"オミクロン (\\Omicron)",Pi:"Pi",PiDescription:"パイ (\\Pi)",Rho:"Rho",RhoDescription:"ロー (\\Rho)",Sigma:"シグマ",SigmaDescription:"シグマ (\\Sigma)",Tau:"タウ",TauDescription:"タウ (\\Tau)",Upsilon:"ウプシロン",UpsilonDescription:"ウプシロン (\\Upsilon)",Phi:"Phi",PhiDescription:"ファイ (\\Phi)",Chi:"カイ",ChiDescription:"カイ (\\Chi)",Psi:"プサイ",PsiDescription:"プサイ (\\Psi)",Omega:"オメガ",OmegaDescription:"オメガ (\\Omega)",categoryOperatorSymbols:"演算子記号",pm:"プラスマイナス",pmDescription:"プラスマイナス (\\pm)",mp:"マイナスプラス",mpDescription:"マイナスプラス (\\mp)",times:"乗算",timesDescription:"乗算 (\\times)",div:"除算",divDescription:"除算 (\\div)",cdot:"ドット積",cdotDescription:"ドット積 (\\cdot)",ast:"アスタリスク",astDescription:"アスタリスク (\\ast)",star:"スター",starDescription:"スター (\\star)",dagger:"ダガー",daggerDescription:"ダガー (\\dagger)",ddagger:"ダブル ダガー",ddaggerDescription:"ダブル ダガー (\\ddagger)",amalg:"直和",amalgDescription:"直和 (\\amalg)",cap:"共通部分",capDescription:"共通部分 (\\cap)",cup:"和集合",cupDescription:"和集合 (\\cup)",uplus:"直和",uplusDescription:"直和 (\\uplus)",sqcap:"直積",sqcapDescription:"直積 (\\sqcap)",sqcup:"直和",sqcupDescription:"直和 (\\sqcup)",vee:"論理和",veeDescription:"論理和 (\\vee)",wedge:"論理積",wedgeDescription:"論理積 (\\wedge)",setminus:"差集合",setminusDescription:"差集合 (\\setminus)",wr:"リース積",wrDescription:"リース積 (\\wr)",circ:"合成",circDescription:"合成 (\\circ)",bullet:"黒丸",bulletDescription:"黒丸 (\\bullet)",diamond:"菱形",diamondDescription:"菱形 (\\diamond)",oslash:"丸付きスラッシュ",oslashDescription:"丸付きスラッシュ (\\oslash)",odot:"丸付きドット",odotDescription:"丸付きドット (\\odot)",bigcirc:"丸 (大きい)",bigcircDescription:"丸 (大きい) (\\bigcirc)",bigtriangleup:"上向き三角形 (大きい)",bigtriangleupDescription:"上向き三角形 (大きい) (\\bigtriangleup)",bigtriangledown:"下向き三角形 (大きい)",bigtriangledownDescription:"下向き三角形 (大きい) (\\bigtriangledown)",triangleleft:"正規部分群",triangleleftDescription:"正規部分群 (\\triangleleft)",triangleright:"正規部分群として含む",trianglerightDescription:"正規部分群として含む (\\triangleright)",oplus:"丸付き加算記号",oplusDescription:"丸付き加算記号 (\\oplus)",ominus:"丸付き減算記号",ominusDescription:"丸付き減算記号 (\\ominus)",otimes:"丸付き乗算記号",otimesDescription:"丸付き乗算記号 (\\otimes)",bot:"矛盾対当",botDescription:"矛盾対当 (\\bot)",top:"普遍的に真",topDescription:"普遍的に真 (\\top)",sumop:"総和",sumopDescription:"総和 (\\sumop)",prodop:"総乗",prodopDescription:"総乗 (\\prodop)",intop:"積分",intopDescription:"積分 (\\intop)",ointop:"線積分",ointopDescription:"線積分 (\\ointop)",biguplus:"直和 (大きい)",biguplusDescription:"直和 (大きい) (\\biguplus)",bigoplus:"丸付き加算記号 (大きい)",bigoplusDescription:"丸付き加算記号 (大きい) (\\bigoplus)",bigvee:"論理和 (大きい)",bigveeDescription:"論理和 (大きい) (\\bigvee)",bigcap:"共通部分 (大きい)",bigcapDescription:"共通部分 (大きい) (\\bigcap)",bigotimes:"丸付き乗算記号 (大きい)",bigotimesDescription:"丸付き乗算記号 (大きい) (\\bigotimes)",bigwedge:"論理積",bigwedgeDescription:"論理積 (大きい) (\\bigwedge)",bigcup:"和集合 (大きい)",bigcupDescription:"和集合 (大きい) (\\bigcup)",bigodot:"丸付きドット (大きい)",bigodotDescription:"丸付きドット (大きい) (\\bigodot)",bigsqcup:"直和 (大きい)",bigsqcupDescription:"直和 (大きい) (\\bigsqcup)",categoryRelationSymbols:"関係演算子記号",lt:"より小さい",ltDescription:"より小さい (<)",gt:"より大きい",gtDescription:"より大きい (>)",leq:"以下",leqDescription:"以下 (\\leq)",geq:"以上",geqDescription:"以上 (\\geq)",ll:"十分小さい",llDescription:"十分小さい (\\ll)",gg:"十分大きい",ggDescription:"十分大きい (\\gg)",neq:"等しくない",neqDescription:"等しくない (\\neq)",doteq:"ほぼ等しい",doteqDescription:"ほぼ等しい (\\doteq)",sim:"相似",simDescription:"相似 (\\sim)",simeq:"ほぼ等しい",simeqDescription:"ほぼ等しい (\\simeq)",approx:"近似的に等しい",approxDescription:"近似的に等しい (\\approx)",asymp:"漸近的に等しい",asympDescription:"漸近的に等しい (\\asymp)",cong:"合同",congDescription:"合同 (\\cong)",equiv:"同一",equivDescription:"同一 (\\equiv)",subset:"真部分集合である",subsetDescription:"真部分集合である (\\subset)",supset:"真上位集合である",supsetDescription:"真上位集合である (\\supset)",subseteq:"部分集合である",subseteqDescription:"部分集合である (\\subseteq)",supseteq:"上位集合である",supseteqDescription:"上位集合である (\\supseteq)",sqsubseteq:"像が等しい",sqsubseteqDescription:"像が等しい (\\sqsubseteq)",sqsupseteq:"原像が等しい",sqsupseteqDescription:"原像が等しい (\\sqsupseteq)",in:"要素である",inDescription:"要素である (\\in)",ni:"含む",niDescription:"要素として含む (\\ni)",notin:"含まれない",notinDescription:"含まれない (\\notin)",models:"含意する",modelsDescription:"含意する (\\models)",vdash:"導出される",vdashDescription:"導出される (\\vdash)",dashv:"導出されない",dashvDescription:"導出されない (\\dashv)",perp:"垂直",perpDescription:"垂直 (\\perp)",mid:"区分",midDescription:"区分 (\\mid)",parallel:"平行",parallelDescription:"平行 (\\parallel)",propto:"比例",proptoDescription:"比例 (\\propto)",bowtie:"結合",bowtieDescription:"結合 (\\bowtie)",prec:"先行する",precDescription:"先行する (\\prec)",preceq:"先行または同等",preceqDescription:"先行または同等 (\\preceq)",succ:"後続する",succDescription:"後続する (\\succ)",succeq:"後続または同等",succeqDescription:"後続または同等 (\\succeq)",notlt:"より小さくない",notltDescription:"より小さくない (\\notlt)",notgt:"より大きくない",notgtDescription:"より大きくない (\\notgt)",notleq:"小さくなく、かつ等しくない",notleqDescription:"小さくなく、かつ等しくない (\\notleq)",notgeq:"大きくなく、かつ等しくない",notgeqDescription:"大きくなく、かつ等しくない (\\notgeq)",notequiv:"同一ではない",notequivDescription:"同一ではない (\\notequiv)",notapprox:"近似的に等しくはない",notapproxDescription:"近似的に等しくはない (\\notapprox)",notcong:"合同ではない",notcongDescription:"合同ではない (\\notcong)",notsim:"相似ではない",notsimDescription:"相似ではない (\\notsim)",notsimeq:"ほぼ等しくはない",notsimeqDescription:"ほぼ等しくはない (\\notsimeq)",notmodels:"含意していない",notmodelsDescription:"含意していない (\\notmodels)",notni:"含まない",notniDescription:"含まない (\\notni)",notsucc:"後続しない",notsuccDescription:"後続しない (\\notsucc)",notsucceq:"後続または同等ではない",notsucceqDescription:"後続または同等ではない (\\notsucceq)",notprec:"先行しない",notprecDescription:"先行しない (\\notprec)",notpreceq:"先行または同等ではない",notpreceqDescription:"先行または同等ではない (\\notpreceq)",notparallel:"平行でない",notparallelDescription:"平行でない (\\notparallel)",notsubset:"真部分集合でない",notsubsetDescription:"真部分集合でない (\\notsubset)",notsupset:"真上位集合でない",notsupsetDescription:"真上位集合でない (\\notsupset)",notsubseteq:"部分集合でない",notsubseteqDescription:"部分集合でない (\\notsubseteq)",notsupseteq:"上位集合でない",notsupseteqDescription:"上位集合でない (\\notsupseteq)",categoryArrows:"矢印",leftarrow:"左矢印",leftarrowDescription:"左矢印 (\\leftarrow)",rightarrow:"右矢印",rightarrowDescription:"右矢印 (\\rightarrow)",uparrow:"上矢印",uparrowDescription:"上矢印 (\\uparrow)",Leftarrow:"左二重矢印",LeftarrowDescription:"左二重矢印 (\\Leftarrow)",Rightarrow:"右二重矢印",RightarrowDescription:"右二重矢印 (\\Rightarrow)",Uparrow:"上二重矢印",UparrowDescription:"上二重矢印 (\\Uparrow)",longleftarrow:"左矢印 (長い)",longleftarrowDescription:"左矢印 (長い) (\\longleftarrow)",longrightarrow:"右矢印 (長い)",longrightarrowDescription:"右矢印 (長い) (\\longrightarrow)",downarrow:"下矢印",downarrowDescription:"下矢印 (\\downarrow)",Longleftarrow:"左二重矢印 (長い)",LongleftarrowDescription:"左二重矢印 (長い) (\\Longleftarrow)",Longrightarrow:"右二重矢印 (長い)",LongrightarrowDescription:"右二重矢印 (長い) (\\Longrightarrow)",Downarrow:"下二重矢印",DownarrowDescription:"下二重矢印 (\\Downarrow)",hookleftarrow:"カギ線左矢印",hookleftarrowDescription:"カギ線左矢印 (\\hookleftarrow)",hookrightarrow:"カギ線右矢印",hookrightarrowDescription:"カギ線右矢印 (\\hookrightarrow)",updownarrow:"上下矢印",updownarrowDescription:"上下矢印 (\\updownarrow)",leftharpoondown:"左半矢印 (下)",leftharpoondownDescription:"左半矢印 (下) (\\leftharpoondown)",rightharpoondown:"右半矢印 (下)",rightharpoondownDescription:"右半矢印 (下) (\\rightharpoondown)",Updownarrow:"上下二重矢印",UpdownarrowDescription:"上下二重矢印 (\\Updownarrow)",leftharpoonup:"左半矢印 (上)",leftharpoonupDescription:"左半矢印 (上) (\\leftharpoonup)",rightharpoonup:"右半矢印 (上)",rightharpoonupDescription:"右半矢印 (上) (\\rightharpoonup)",leftrightarrow:"左右矢印",leftrightarrowDescription:"左右矢印 (\\leftrightarrow)",swarrow:"左下向き矢印",swarrowDescription:"左下向き矢印 (\\swarrow)",nearrow:"右上向き矢印",nearrowDescription:"右上向き矢印 (\\nearrow)",Leftrightarrow:"左右二重矢印",LeftrightarrowDescription:"左右二重矢印 (\\Leftrightarrow)",nwarrow:"左上向き矢印",nwarrowDescription:"左上向き矢印 (\\nwarrow)",searrow:"右下向き矢印",searrowDescription:"右下向き矢印 (\\searrow)",longleftrightarrow:"左右矢印 (長い)",longleftrightarrowDescription:"左右矢印 (長い) (\\longleftrightarrow)",mapsto:"棒付矢印",mapstoDescription:"棒付矢印 (\\mapsto)",longmapsto:"棒付矢印 (長い)",longmapstoDescription:"棒付矢印 (長い) (\\longmapsto)",Longleftrightarrow:"左右二重矢印 (長い)",LongleftrightarrowDescription:"左右二重矢印 (長い) (\\Longleftrightarrow)",categoryBrackets:"大かっこ",lbrace:"左中かっこ",lbraceDescription:"左中かっこ (\\lbrace)",rbrace:"右中かっこ",rbraceDescription:"右中かっこ (\\rbrace)",vert:"縦線",vertDescription:"縦線 (\\vert)",lbrack:"左大かっこ",lbrackDescription:"左大かっこ (\\lbrack)",rbrack:"右大かっこ",rbrackDescription:"右大かっこ (\\rbrack)",Vert:"二重縦線",VertDescription:"二重縦線 (\\Vert)",langle:"左山かっこ",langleDescription:"左山かっこ (\\langle)",rangle:"右山かっこ",rangleDescription:"右山かっこ (\\rangle)",backslash:"バックスラッシュ",backslashDescription:"バックスラッシュ (\\backslash)",lceil:"天井関数記号 (左)",lceilDescription:"天井関数記号 (左) (\\lceil)",rceil:"天井関数記号 (右)",rceilDescription:"天井関数記号 (右) (\\rceil)",lfloor:"床関数記号 (左)",lfloorDescription:"床関数記号 (左) (\\lfloor)",rfloor:"床関数記号 (右)",rfloorDescription:"床関数記号 (右) (\\rfloor)",categoryMiscSymbols:"その他の記号",aleph:"アレフ",alephDescription:"アレフ (\\aleph)",infty:"無限大",inftyDescription:"無限大 (\\infty)",forall:"全称記号",forallDescription:"全称記号 (\\forall)",wp:"筆記体の大文字 P",wpDescription:"筆記体の大文字 P (\\wp)",nabla:"ナブラ",nablaDescription:"ナブラ (\\nabla)",exists:"存在記号",existsDescription:"存在記号 (\\exists)",angle:"角記号",angleDescription:"角記号 (\\angle)",partial:"偏微分",partialDescription:"偏微分 (\\partial)",emptyset:"空集合",emptysetDescription:"空集合 (\\emptyset)",triangle:"三角形",triangleDescription:"三角形 (\\triangle)",Im:"虚数部",ImDescription:"虚数部 (\\Im)",imath:"数学で使用する点のない小文字 i",imathDescription:"数学で使用する点のない小文字 i (\\imath)",hbar:"プランク定数",hbarDescription:"プランク定数 (\\hbar)",Re:"実数部",ReDescription:"実数部 (\\Re)",jmath:"数学で使用する点のない小文字 j",jmathDescription:"数学で使用する点のない小文字 j (\\jmath)",prime:"プライム記号",primeDescription:"プライム記号 (\\prime)",ldots:"ドット",ldotsDescription:"ドット (\\ldots)",ell:"筆記体の小文字 l",ellDescription:"筆記体の小文字 l (\\ell)",colon:"コロン",colonDescription:"コロン (\\colon)",cdots:"センター ドット",cdotsDescription:"センター ドット (\\cdots)",neg:"否定",negDescription:"否定 (\\neg)",ddots:"斜めドット",ddotsDescription:"斜めドット (\\ddots)",surd:"根",surdDescription:"根 (\\surd)",ldotp:"ピリオド",ldotpDescription:"ピリオド (\\ldotp)",vdots:"垂直ドット",vdotsDescription:"垂直ドット (\\vdots)",to:"右矢印",toDescription:"右矢印 (\\to)",gets:"左矢印",getsDescription:"左矢印 (\\gets)",categoryScript:"スクリプト",superscript:"べき乗",superscriptDescription:"べき乗 (^)",subscript:"指数",subscriptDescription:"指数 (_)",subsuperscript:"上付き文字",subsuperscriptDescription:"上付き文字 (\\subsuperscript)",multiscript:"マルチスクリプト",multiscriptDescription:"マルチスクリプト (\\multiscript)",over:"上",overDescription:"上 (\\over)",under:"下",underDescription:"下 (\\under)",underover:"上下",underoverDescription:"上下 (\\underover)",categoryFractionsAndRadicals:"分数と根",frac:"分数",fracDescription:"分数 (\\frac)",fracbevelled:"斜めの分数",fracbevelledDescription:"斜めの分数 (\\fracbevelled)",fracinline:"インラインの分数",fracinlineDescription:"インラインの分数 (\\fracinline)",sqrt:"平方根",sqrtDescription:"平方根 (\\sqrt)",root:"n 乗根",rootDescription:"n 乗根 (\\root)",categoryOperators:"演算子",int:"積分",intDescription:"不定積分 (\\int)",intdef:"定積分",intdefDescription:"定積分 (\\intdef)",oint:"閉曲線積分",ointDescription:"閉曲線不定積分 (\\oint)",ointdef:"閉曲線定積分",ointdefDescription:"閉曲線定積分 (\\ointdef)",sum:"総和",sumDescription:"Indefinite Sum (\\sum)",sumdef:"総和 (Def Sum)",sumdefDescription:"Definite Sum (\\sumdef)",prod:"総乗",prodDescription:"不定乗積 (\\prod)",proddef:"定乗積",proddefDescription:"定乗積 (\\proddef)",lim:"極限",limDescription:"極限 (\\lim)",categoryMisc:"その他",cases:"場合分け",casesDescription:"場合分け (\\cases)",derivative:"導関数",derivativeDescription:"導関数 (\\derivative)",derivativeN:"n 次導関数",derivativeNDescription:"n 次導関数 (\\derivativeN)",partialderivative:"偏導関数",partialderivativeDescription:"偏導関数 (\\partialderivative)",partialderivativeN:"n 次偏導関数",partialderivativeNDescription:"n 次偏導関数 (\\partialderivativeN)",categoryBracketPairs:"大かっこ",parentheses:"小かっこ",parenthesesDescription:"小かっこ (\\parentheses)",brackets:"大かっこ",bracketsDescription:"大かっこ (\\brackets)",braces:"中かっこ",bracesDescription:"中かっこ (\\braces)",ceil:"天井関数の記号",ceilDescription:"天井関数の記号 (\\ceil)",floor:"床関数の記号",floorDescription:"床関数の記号 (\\floor)",anglebracket:"山かっこ",anglebracketDescription:"山かっこ (\\anglebracket)",bars:"線",barsDescription:"線 (\\bars)",doublebars:"二重線",doublebarsDescription:"二重線 (\\double)",categoryAccents:"アクセント",hat:"ハット",hatDescription:"ハット (\\hat)",breve:"ブリーブ",breveDescription:"ブリーブ (\\breve)",grave:"グレイブ",graveDescription:"グレイブ (\\grave)",bar:"バー",barDescription:"バー (\\bar)",dot:"ドット",dotDescription:"ドット (\\dot)",check:"チェック",checkDescription:"チェック (\\check)",acute:"アキュート",acuteDescription:"アキュート (\\acute)",tilde:"チルダ",tildeDescription:"チルダ (\\tilde)",vec:"ベクトル",vecDescription:"ベクトル (\\vec)",ddot:"ウムラウト",ddotDescription:"ウムラウト (\\ddot)",widehat:"ハット (長い)",widehatDescription:"ハット (長い) (\\widehat)",widetilde:"チルダ (長い)",widetildeDescription:"チルダ (長い) (\\widetilde)",overleftarrow:"上付き左矢印",overleftarrowDescription:"上付き左矢印 (\\overleftarrow)",overrightarrow:"上付き右矢印",overrightarrowDescription:"上付き右矢印 (\\overrightarrow)",overleftrightarrow:"上付き両矢印",overleftrightarrowDescription:"上付き両矢印 (\\overleftrightarrow)",overbrace:"上向き波かっこ",overbraceDescription:"上向き波かっこ (\\overbrace)",overline:"上線",overlineDescription:"上線 (\\overline)",underbrace:"下向き波かっこ",underbraceDescription:"下向き波かっこ (\\underbrace)",underline:"下線",underlineDescription:"下線 (\\underline)",insertMatrix:"行列",insertMatrixDescription:"行列を挿入します"}},function(e,t,i){e.exports={symbolsSectionTitle:"기호",structuresSectionTitle:"구조",matricesSectionTitle:"행렬",categoryGreekLetters:"그리스 문자",alpha:"알파",alphaDescription:"알파(\\alpha)",beta:"베타",betaDescription:"베타(\\beta)",gamma:"감마",gammaDescription:"감마(\\gamma)",delta:"델타",deltaDescription:"델타(\\delta)",epsilon:"엡실론",epsilonDescription:"엡실론(\\epsilon)",varepsilon:"바엡실론",varepsilonDescription:"바엡실론(\\varepsilon)",zeta:"제타",zetaDescription:"제타(\\zeta)",eta:"에타",etaDescription:"에타(\\eta)",theta:"세타",thetaDescription:"세타(\\theta)",vartheta:"바세타",varthetaDescription:"바세타(\\vartheta)",iota:"이오타",iotaDescription:"이오타(\\iota)",kappa:"카파",kappaDescription:"카파(\\kappa)",lambda:"람다",lambdaDescription:"람다(\\lambda)",mu:"뮤",muDescription:"뮤(\\mu)",nu:"뉴",nuDescription:"뉴(\\nu)",xi:"크사이",xiDescription:"크사이(\\xi)",omicron:"오미크론",omicronDescription:"오미크론(\\omicron)",pi:"파이",piDescription:"파이(\\pi)",varpi:"바파이",varpiDescription:"바파이(\\varpi)",rho:"로",rhoDescription:"로(\\rho)",varrho:"바로",varrhoDescription:"바로(\\varrho)",sigma:"시그마",sigmaDescription:"시그마(\\sigma)",varsigma:"바시그마",varsigmaDescription:"바시그마(\\varsigma)",tau:"타우",tauDescription:"타우(\\tau)",upsilon:"입실론",upsilonDescription:"입실론(\\upsilon)",phi:"화이",phiDescription:"화이(\\phi)",varphi:"바화이",varphiDescription:"바화이(\\varphi)",chi:"카이",chiDescription:"카이(\\chi)",psi:"프사이",psiDescription:"프사이(\\psi)",omega:"오메가",omegaDescription:"오메가(\\omega)",Alpha:"알파",AlphaDescription:"대문자 알파(\\Alpha)",Beta:"베타",BetaDescription:"대문자 베타(\\Beta)",Gamma:"대문자 감마",GammaDescription:"대문자 감마(\\Gamma)",Delta:"대문자 델타",DeltaDescription:"대문자 델타(\\Delta)",Epsilon:"대문자 엡실론",EpsilonDescription:"대문자 엡실론(\\Epsilon)",Zeta:"대문자 제타",ZetaDescription:"대문자 제타(\\Zeta)",Eta:"대문자 에타",EtaDescription:"대문자 에타(\\Eta)",Theta:"대문자 세타",ThetaDescription:"대문자 세타(\\Theta)",Iota:"대문자 이오타",IotaDescription:"대문자 이오타(\\Iota)",Kappa:"대문자 카파",KappaDescription:"대문자 카파(\\Kappa)",Lambda:"대문자 람다",LambdaDescription:"대문자 람다(\\Lambda)",Mu:"대문자 뮤",MuDescription:"대문자 뮤(\\Mu)",Nu:"대문자 뉴",NuDescription:"대문자 뉴(\\Nu)",Xi:"대문자 크사이",XiDescription:"대문자 크사이(\\Xi)",Omicron:"대문자 오미크론",OmicronDescription:"대문자 오미크론(\\Omicron)",Pi:"대문자 파이",PiDescription:"대문자 파이(\\Pi)",Rho:"대문자 로",RhoDescription:"대문자 로(\\Rho)",Sigma:"대문자 시그마",SigmaDescription:"대문자 시그마(\\Sigma)",Tau:"대문자 타우",TauDescription:"대문자 타우(\\Tau)",Upsilon:"대문자 입실론",UpsilonDescription:"대문자 입실론(\\Upsilon)",Phi:"대문자 화이",PhiDescription:"대문자 화이(\\Phi)",Chi:"대문자 카이",ChiDescription:"대문자 카이(\\Chi)",Psi:"대문자 프사이",PsiDescription:"대문자 프사이(\\Psi)",Omega:"대문자 오메가",OmegaDescription:"대문자 오메가(\\Omega)",categoryOperatorSymbols:"연산자 기호",pm:"플러스마이너스",pmDescription:"플러스마이너스(\\pm)",mp:"마이너스플러스",mpDescription:"마이너스플러스(\\mp)",times:"곱하기",timesDescription:"곱하기(\\times)",div:"나누기",divDescription:"나누기(\\div)",cdot:"중간점",cdotDescription:"중간점(\\cdot)",ast:"별표",astDescription:"별표(\\ast)",star:"별",starDescription:"별(\\star)",dagger:"칼",daggerDescription:"칼(\\dagger)",ddagger:"이중 칼",ddaggerDescription:"이중 칼(\\ddagger)",amalg:"융합",amalgDescription:"융합(\\amalg)",cap:"교집합",capDescription:"교집합(\\cap)",cup:"합집합",cupDescription:"합집합(\\cup)",uplus:"합집합 안의 플러스",uplusDescription:"합집합 안의 플러스(\\uplus)",sqcap:"정사각 교집합",sqcapDescription:"정사각 교집합(\\sqcap)",sqcup:"정사각 합집합",sqcupDescription:"정사각 합집합(\\sqcup)",vee:"V자",veeDescription:"V자(\\vee)",wedge:"쐐기",wedgeDescription:"쐐기(\\wedge)",setminus:"차집합",setminusDescription:"차집합(\\setminus)",wr:"세로 물결",wrDescription:"세로 물결(\\wr)",circ:"원",circDescription:"원(\\circ)",bullet:"글머리 기호",bulletDescription:"글머리 기호(\\bullet)",diamond:"다이아몬드",diamondDescription:"다이아몬드(\\diamond)",oslash:"원 안의 슬래시",oslashDescription:"원 안의 슬래시(\\oslash)",odot:"원 안의 점",odotDescription:"원 안의 점(\\odot)",bigcirc:"큰 원",bigcircDescription:"큰 원(\\bigcirc)",bigtriangleup:"큰 삼각형",bigtriangleupDescription:"큰 삼각형(\\bigtriangleup)",bigtriangledown:"큰 역삼각형",bigtriangledownDescription:"큰 역삼각형(\\bigtriangledown)",triangleleft:"왼쪽 삼각형",triangleleftDescription:"왼쪽 삼각형(\\triangleleft)",triangleright:"오른쪽 삼각형",trianglerightDescription:"오른쪽 삼각형(\\triangleright)",oplus:"원 안의 플러스",oplusDescription:"원 안의 플러스(\\oplus)",ominus:"원 안의 마이너스",ominusDescription:"원 안의 마이너스(\\ominus)",otimes:"원 안의 곱하기",otimesDescription:"원 안의 곱하기(\\otimes)",bot:"맨 아래",botDescription:"맨 아래(\\bot)",top:"맨 위",topDescription:"맨 위(\\top)",sumop:"합 연산",sumopDescription:"합 연산(\\sumop)",prodop:"곱 연산",prodopDescription:"곱 연산(\\prodop)",intop:"적분 연산",intopDescription:"적분 연산(\\intop)",ointop:"원이 겹친 적분 연산",ointopDescription:"원이 겹친 적분 연산(\\ointop)",biguplus:"큰 합집합 안의 플러스",biguplusDescription:"큰 합집합 안의 플러스(\\biguplus)",bigoplus:"큰 원 안의 플러스",bigoplusDescription:"큰 원 안의 플러스(\\bigoplus)",bigvee:"큰 V자",bigveeDescription:"큰 V자(\\bigvee)",bigcap:"큰 교집합",bigcapDescription:"큰 교집합(\\bigcap)",bigotimes:"큰 원 안의 곱하기",bigotimesDescription:"큰 원 안의 곱하기(\\bigotimes)",bigwedge:"큰 쐐기",bigwedgeDescription:"큰 쐐기(\\bigwedge)",bigcup:"큰 합집합",bigcupDescription:"큰 합집합(\\bigcup)",bigodot:"큰 원 안의 점",bigodotDescription:"큰 원 안의 점(\\bigodot)",bigsqcup:"큰 정사각 합집합",bigsqcupDescription:"큰 정사각 합집합(\\bigsqcup)",categoryRelationSymbols:"관계 기호",lt:"보다 작음",ltDescription:"보다 작음(<)",gt:"보다 큼",gtDescription:"보다 큼(>)",leq:"보다 작거나 같음",leqDescription:"보다 작거나 같음(\\leq)",geq:"보다 크거나 같음",geqDescription:"보다 크거나 같음(\\geq)",ll:"보다 훨씬 작음",llDescription:"보다 훨씬 작음(\\ll)",gg:"보다 훨씬 큼",ggDescription:"보다 훨씬 큼(\\gg)",neq:"같지 않음",neqDescription:"같지 않음(\\neq)",doteq:"점 등호",doteqDescription:"점 등호(\\doteq)",sim:"닮음",simDescription:"닮음(\\sim)",simeq:"닮거나 같음",simeqDescription:"닮거나 같음(\\simeq)",approx:"근사",approxDescription:"근사(\\approx)",asymp:"점근",asympDescription:"점근(\\asymp)",cong:"합동",congDescription:"합동(\\cong)",equiv:"동치",equivDescription:"동치(\\equiv)",subset:"부분 집합",subsetDescription:"부분 집합(\\subset)",supset:"상위 집합",supsetDescription:"상위 집합(\\supset)",subseteq:"부분 집합이거나 같음",subseteqDescription:"부분 집합이거나 같음(\\subseteq)",supseteq:"상위 집합이거나 같음",supseteqDescription:"상위 집합이거나 같음(\\supseteq)",sqsubseteq:"정사각 부분 집합이거나 같음",sqsubseteqDescription:"정사각 부분 집합이거나 같음(\\sqsubseteq)",sqsupseteq:"정사각 상위 집합이거나 같음",sqsupseteqDescription:"정사각 상위 집합이거나 같음(\\sqsupseteq)",in:"속함",inDescription:"속함(\\in)",ni:"포함",niDescription:"원소로 포함(\\ni)",notin:"속하지 않음",notinDescription:"속하지 않음(\\notin)",models:"모델",modelsDescription:"모델(\\models)",vdash:"세로선이 겹친 대시",vdashDescription:"세로선이 겹친 대시(\\vdash)",dashv:"대시가 겹친 세로선",dashvDescription:"대시가 겹친 세로선(\\dashv)",perp:"수직",perpDescription:"수직(\\perp)",mid:"세로선",midDescription:"세로선(\\mid)",parallel:"병렬",parallelDescription:"평행(\\parallel)",propto:"비례",proptoDescription:"비례(\\propto)",bowtie:"보타이",bowtieDescription:"보타이(\\bowtie)",prec:"선행",precDescription:"선행(\\prec)",preceq:"선행이거나 같음",preceqDescription:"선행이거나 같음(\\preceq)",succ:"후행",succDescription:"후행(\\succ)",succeq:"후행이거나 같음",succeqDescription:"후행이거나 같음(\\succeq)",notlt:"보다 작지 않음",notltDescription:"보다 작지 않음(\\notlt)",notgt:"보다 크지 않음",notgtDescription:"보다 크지 않음(\\notgt)",notleq:"보다 작지 않거나 같지 않음",notleqDescription:"보다 작지 않거나 같지 않음(\\notleq)",notgeq:"보다 크지 않거나 같지 않음",notgeqDescription:"보다 크지 않거나 같지 않음(\\notgeq)",notequiv:"동치가 아님",notequivDescription:"동치가 아님(\\notequiv)",notapprox:"근사가 아님",notapproxDescription:"근사가 아님(\\notapprox)",notcong:"합동이 아님",notcongDescription:"합동이 아님(\\notcong)",notsim:"닮지 않음",notsimDescription:"닮지 않음(\\notsim)",notsimeq:"닮지 않거나 같지 않음",notsimeqDescription:"닮지 않거나 같지 않음(\\notsimeq)",notmodels:"모델이 아님",notmodelsDescription:"모델이 아님(\\notmodels)",notni:"포함 안 함",notniDescription:"포함 안 함(\\notni)",notsucc:"후행이 아님",notsuccDescription:"후행이 아님(\\notsucc)",notsucceq:"후행이 아니거나 같지 않음",notsucceqDescription:"후행이 아니거나 같지 않음(\\notsucceq)",notprec:"선행이 아님",notprecDescription:"선행이 아님(\\notprec)",notpreceq:"선행이 아니거나 같지 않음",notpreceqDescription:"선행이 아니거나 같지 않음(\\notpreceq)",notparallel:"평행이 아님",notparallelDescription:"평행이 아님(\\notparallel)",notsubset:"부분 집합이 아님",notsubsetDescription:"부분 집합이 아님(\\notsubset)",notsupset:"상위 집합이 아님",notsupsetDescription:"상위 집합이 아님(\\notsupset)",notsubseteq:"부분 집합이 아니거나 같지 않음",notsubseteqDescription:"부분 집합이 아니거나 같지 않음(\\notsubseteq)",notsupseteq:"상위 집합이 아니거나 같지 않음",notsupseteqDescription:"상위 집합이 아니거나 같지 않음(\\notsupseteq)",categoryArrows:"화살표",leftarrow:"왼쪽 화살표",leftarrowDescription:"왼쪽 화살표(\\leftarrow)",rightarrow:"오른쪽 화살표",rightarrowDescription:"오른쪽 화살표(\\rightarrow)",uparrow:"위쪽 화살표",uparrowDescription:"위쪽 화살표(\\uparrow)",Leftarrow:"큰 왼쪽 화살표",LeftarrowDescription:"큰 왼쪽 화살표(\\Leftarrow)",Rightarrow:"큰 오른쪽 화살표",RightarrowDescription:"큰 오른쪽 화살표(\\Rightarrow)",Uparrow:"큰 위쪽 화살표",UparrowDescription:"큰 위쪽 화살표(\\Uparrow)",longleftarrow:"긴 왼쪽 화살표",longleftarrowDescription:"긴 왼쪽 화살표(\\longleftarrow)",longrightarrow:"긴 오른쪽 화살표",longrightarrowDescription:"긴 오른쪽 화살표(\\longrightarrow)",downarrow:"아래쪽 화살표",downarrowDescription:"아래쪽 화살표(\\downarrow)",Longleftarrow:"긴 큰 왼쪽 화살표",LongleftarrowDescription:"긴 큰 왼쪽 화살표(\\Longleftarrow)",Longrightarrow:"긴 큰 오른쪽 화살표",LongrightarrowDescription:"긴 큰 오른쪽 화살표(\\Longrightarrow)",Downarrow:"큰 아래쪽 화살표",DownarrowDescription:"큰 아래쪽 화살표(\\Downarrow)",hookleftarrow:"고리 달린 왼쪽 화살표",hookleftarrowDescription:"고리 달린 왼쪽 화살표(\\hookleftarrow)",hookrightarrow:"고리 달린 오른쪽 화살표",hookrightarrowDescription:"고리 달린 오른쪽 화살표(\\hookrightarrow)",updownarrow:"위아래쪽 화살표",updownarrowDescription:"위아래쪽 화살표(\\updownarrow)",leftharpoondown:"왼쪽 작살 아래 화살표",leftharpoondownDescription:"왼쪽 작살 아래 화살표(\\leftharpoondown)",rightharpoondown:"오른쪽 작살 아래 화살표",rightharpoondownDescription:"오른쪽 작살 아래 화살표(\\rightharpoondown)",Updownarrow:"큰 위아래쪽 화살표",UpdownarrowDescription:"큰 위아래쪽 화살표(\\Updownarrow)",leftharpoonup:"왼쪽 작살 위 화살표",leftharpoonupDescription:"왼쪽 작살 위 화살표(\\leftharpoonup)",rightharpoonup:"오른쪽 작살 위 화살표",rightharpoonupDescription:"오른쪽 작살 위 화살표(\\rightharpoonup)",leftrightarrow:"양쪽 화살표",leftrightarrowDescription:"양쪽 화살표(\\leftrightarrow)",swarrow:"남서 화살표",swarrowDescription:"남서 화살표(\\swarrow)",nearrow:"북동 화살표",nearrowDescription:"북동 화살표(\\nearrow)",Leftrightarrow:"큰 양쪽 화살표",LeftrightarrowDescription:"큰 양쪽 화살표(\\Leftrightarrow)",nwarrow:"북서 화살표",nwarrowDescription:"북서 화살표(\\nwarrow)",searrow:"남동 화살표",searrowDescription:"남동 화살표(\\searrow)",longleftrightarrow:"긴 양쪽 화살표",longleftrightarrowDescription:"긴 양쪽 화살표(\\longleftrightarrow)",mapsto:"대응 화살표",mapstoDescription:"대응 화살표(\\mapsto)",longmapsto:"긴 대응 화살표",longmapstoDescription:"긴 대응 화살표(\\longmapsto)",Longleftrightarrow:"긴 큰 양쪽 화살표",LongleftrightarrowDescription:"긴 큰 양쪽 화살표(\\Longleftrightarrow)",categoryBrackets:"괄호",lbrace:"왼쪽 중괄호",lbraceDescription:"왼쪽 중괄호(\\lbrace)",rbrace:"오른쪽 중괄호",rbraceDescription:"오른쪽 중괄호(\\rbrace)",vert:"세로 막대",vertDescription:"세로 막대(\\vert)",lbrack:"왼쪽 대괄호",lbrackDescription:"왼쪽 대괄호(\\lbrack)",rbrack:"오른쪽 대괄호",rbrackDescription:"오른쪽 대괄호(\\rbrack)",Vert:"이중 세로 막대",VertDescription:"이중 세로 막대(\\Vert)",langle:"왼쪽 꺾쇠 괄호",langleDescription:"왼쪽 꺾쇠 괄호(\\langle)",rangle:"오른쪽 꺾쇠 괄호",rangleDescription:"오른쪽 꺾쇠 괄호(\\rangle)",backslash:"백슬래시",backslashDescription:"백슬래시(\\backslash)",lceil:"왼쪽 올림",lceilDescription:"왼쪽 올림(\\lceil)",rceil:"오른쪽 올림",rceilDescription:"오른쪽 올림(\\rceil)",lfloor:"왼쪽 내림",lfloorDescription:"왼쪽 내림(\\lfloor)",rfloor:"오른쪽 내림",rfloorDescription:"오른쪽 내림(\\rfloor)",categoryMiscSymbols:"기타 기호",aleph:"알레프",alephDescription:"알레프(\\aleph)",infty:"무한대",inftyDescription:"무한대(\\infty)",forall:"전칭",forallDescription:"전칭(\\forall)",wp:"스크립트 대문자 P",wpDescription:"스크립트 대문자 P(\\wp)",nabla:"나블라",nablaDescription:"나블라(\\nabla)",exists:"존재함",existsDescription:"존재함(\\exists)",angle:"각",angleDescription:"각(\\angle)",partial:"편미분",partialDescription:"편미분(\\partial)",emptyset:"공집합",emptysetDescription:"공집합(\\emptyset)",triangle:"삼각형",triangleDescription:"삼각형(\\triangle)",Im:"허수부",ImDescription:"허수부(\\Im)",imath:"점 없는 수학적 소문자 i",imathDescription:"점 없는 수학적 소문자 i(\\imath)",hbar:"막대 h",hbarDescription:"플랑크 상수(\\hbar)",Re:"실수부",ReDescription:"실수부(\\Re)",jmath:"점 없는 수학적 소문자 j",jmathDescription:"점 없는 수학적 소문자 j(\\jmath)",prime:"윗빗점",primeDescription:"윗빗점(\\prime)",ldots:"세 점",ldotsDescription:"세 점(\\ldots)",ell:"스크립트 소문자 l",ellDescription:"스크립트 소문자 l(\\ell)",colon:"콜론",colonDescription:"콜론(\\colon)",cdots:"세 중간점",cdotsDescription:"세 중간점(\\cdots)",neg:"부정",negDescription:"부정(\\neg)",ddots:"세 대각선 점",ddotsDescription:"세 대각선 점(\\ddots)",surd:"근호",surdDescription:"근호(\\surd)",ldotp:"마침표",ldotpDescription:"마침표(\\ldotp)",vdots:"세 세로 점",vdotsDescription:"세 세로 점(\\vdots)",to:"오른쪽 화살표",toDescription:"오른쪽 화살표(\\to)",gets:"왼쪽 화살표",getsDescription:"왼쪽 화살표(\\gets)",categoryScript:"첨자",superscript:"거듭제곱",superscriptDescription:"거듭제곱(^)",subscript:"인덱스",subscriptDescription:"인덱스(_)",subsuperscript:"위/아래 첨자",subsuperscriptDescription:"위/아래 첨자(\\subsuperscript)",multiscript:"다중 첨자",multiscriptDescription:"다중 첨자(\\multiscript)",over:"위",overDescription:"위(\\over)",under:"아래",underDescription:"아래(\\under)",underover:"위/아래",underoverDescription:"위/아래(\\underover)",categoryFractionsAndRadicals:"분수와 근호",frac:"분수",fracDescription:"분수(\\frac)",fracbevelled:"빗금 분수",fracbevelledDescription:"빗금 분수(\\fracbevelled)",fracinline:"인라인 분수",fracinlineDescription:"인라인 분수(\\fracinline)",sqrt:"제곱근",sqrtDescription:"제곱근(\\sqrt)",root:"N제곱근",rootDescription:"N제곱근(\\root)",categoryOperators:"연산자",int:"적분",intDescription:"부정적분(\\int)",intdef:"정적분",intdefDescription:"정적분(\\intdef)",oint:"경로 적분",ointDescription:"경로 부정적분(\\oint)",ointdef:"경로 정적분",ointdefDescription:"경로 정적분(\\ointdef)",sum:"합",sumDescription:"부정합(\\sum)",sumdef:"정합",sumdefDescription:"정합(\\sumdef)",prod:"곱",prodDescription:"부정곱(\\prod)",proddef:"정곱",proddefDescription:"정곱(\\proddef)",lim:"극한",limDescription:"극한(\\lim)",categoryMisc:"기타",cases:"경우",casesDescription:"경우(\\cases)",derivative:"도함수",derivativeDescription:"도함수(\\derivative)",derivativeN:"N계 도함수",derivativeNDescription:"N계 도함수(\\derivativeN)",partialderivative:"편도함수",partialderivativeDescription:"편도함수(\\partialderivative)",partialderivativeN:"N계 편도함수",partialderivativeNDescription:"N계 편도함수(\\partialderivativeN)",categoryBracketPairs:"괄호",parentheses:"소괄호",parenthesesDescription:"소괄호(\\parentheses)",brackets:"대괄호",bracketsDescription:"대괄호(\\brackets)",braces:"중괄호",bracesDescription:"중괄호(\\braces)",ceil:"올림",ceilDescription:"올림(\\ceil)",floor:"내림",floorDescription:"내림(\\floor)",anglebracket:"꺾쇠 괄호",anglebracketDescription:"꺾쇠 괄호(\\anglebracket)",bars:"막대",barsDescription:"막대(\\bars)",doublebars:"이중 막대",doublebarsDescription:"이중 막대(\\doublebars)",categoryAccents:"악센트",hat:"해트",hatDescription:"해트 악센트(\\hat)",breve:"단음",breveDescription:"단음 악센트(\\breve)",grave:"억음",graveDescription:"억음 악센트(\\grave)",bar:"막대",barDescription:"막대 악센트(\\bar)",dot:"점",dotDescription:"점 악센트(\\dot)",check:"체크",checkDescription:"체크 악센트(\\check)",acute:"양음",acuteDescription:"양음 악센트(\\acute)",tilde:"물결표",tildeDescription:"물결표 악센트(\\tilde)",vec:"벡터",vecDescription:"벡터 악센트(\\vec)",ddot:"이중 점",ddotDescription:"이중 점 악센트(\\ddot)",widehat:"넓은 해트",widehatDescription:"넓은 해트 악센트(\\widehat)",widetilde:"넓은 물결표",widetildeDescription:"넓은 물결표 악센트(\\widetilde)",overleftarrow:"위 왼쪽 화살표",overleftarrowDescription:"위 왼쪽 화살표(\\overleftarrow)",overrightarrow:"위 오른쪽 화살표",overrightarrowDescription:"위 오른쪽 화살표(\\overrightarrow)",overleftrightarrow:"위 양쪽 화살표",overleftrightarrowDescription:"위 양쪽 화살표(\\overleftrightarrow)",overbrace:"위 중괄호",overbraceDescription:"위 중괄호(\\overbrace)",overline:"윗줄",overlineDescription:"윗줄(\\overline)",underbrace:"아래 중괄호",underbraceDescription:"아래 중괄호(\\underbrace)",underline:"밑줄",underlineDescription:"밑줄(\\underline)",insertMatrix:"행렬",insertMatrixDescription:"행렬을 삽입합니다."}},function(e,t,i){e.exports={symbolsSectionTitle:"符号",structuresSectionTitle:"结构体",matricesSectionTitle:"矩阵",categoryGreekLetters:"希腊字母",alpha:"alpha",alphaDescription:"alpha (\\alpha)",beta:"beta",betaDescription:"beta (\\beta)",gamma:"gamma",gammaDescription:"gamma (\\gamma)",delta:"delta",deltaDescription:"delta (\\delta)",epsilon:"epsilon",epsilonDescription:"epsilon (\\epsilon)",varepsilon:"varepsilon",varepsilonDescription:"varepsilon (\\varepsilon)",zeta:"zeta",zetaDescription:"zeta (\\zeta)",eta:"eta",etaDescription:"eta (\\eta)",theta:"theta",thetaDescription:"theta (\\theta)",vartheta:"vartheta",varthetaDescription:"vartheta (\\vartheta)",iota:"iota",iotaDescription:"iota (\\iota)",kappa:"kappa",kappaDescription:"kappa (\\kappa)",lambda:"lambda",lambdaDescription:"lambda (\\lambda)",mu:"mu",muDescription:"mu (\\mu)",nu:"nu",nuDescription:"nu (\\nu)",xi:"xi",xiDescription:"xi (\\xi)",omicron:"omicron",omicronDescription:"omicron (\\omicron)",pi:"pi",piDescription:"pi (\\pi)",varpi:"varpi",varpiDescription:"varpi (\\varpi)",rho:"rho",rhoDescription:"rho (\\rho)",varrho:"varrho",varrhoDescription:"varrho (\\varrho)",sigma:"sigma",sigmaDescription:"sigma (\\sigma)",varsigma:"varsigma",varsigmaDescription:"varsigma (\\varsigma)",tau:"tau",tauDescription:"tau (\\tau)",upsilon:"upsilon",upsilonDescription:"upsilon (\\upsilon)",phi:"phi",phiDescription:"phi (\\phi)",varphi:"varphi",varphiDescription:"varphi (\\varphi)",chi:"chi",chiDescription:"chi (\\chi)",psi:"psi",psiDescription:"psi (\\psi)",omega:"omega",omegaDescription:"omega (\\omega)",Alpha:"Alpha",AlphaDescription:"Alpha (\\Alpha)",Beta:"Beta",BetaDescription:"Beta (\\Beta)",Gamma:"Gamma",GammaDescription:"Gamma (\\Gamma)",Delta:"Delta",DeltaDescription:"Delta (\\Delta)",Epsilon:"Epsilon",EpsilonDescription:"Epsilon (\\Epsilon)",Zeta:"Zeta",ZetaDescription:"Zeta (\\Zeta)",Eta:"Eta",EtaDescription:"Eta (\\Eta)",Theta:"Theta",ThetaDescription:"Theta (\\Theta)",Iota:"Iota",IotaDescription:"Iota (\\Iota)",Kappa:"Kappa",KappaDescription:"Kappa (\\Kappa)",Lambda:"Lambda",LambdaDescription:"Lambda (\\Lambda)",Mu:"Mu",MuDescription:"Mu (\\Mu)",Nu:"Nu",NuDescription:"Nu (\\Nu)",Xi:"Xi",XiDescription:"Xi (\\Xi)",Omicron:"Omicron",OmicronDescription:"Omicron (\\Omicron)",Pi:"Pi",PiDescription:"Pi (\\Pi)",Rho:"Rho",RhoDescription:"Rho (\\Rho)",Sigma:"Sigma",SigmaDescription:"Sigma (\\Sigma)",Tau:"Tau",TauDescription:"Tau (\\Tau)",Upsilon:"Upsilon",UpsilonDescription:"Upsilon (\\Upsilon)",Phi:"Phi",PhiDescription:"Phi (\\Phi)",Chi:"Chi",ChiDescription:"Chi (\\Chi)",Psi:"Psi",PsiDescription:"Psi (\\Psi)",Omega:"Omega",OmegaDescription:"Omega (\\Omega)",categoryOperatorSymbols:"运算符符号",pm:"加减",pmDescription:"加减 (\\pm)",mp:"减加",mpDescription:"减加 (\\mp)",times:"乘",timesDescription:"乘 (\\times)",div:"除",divDescription:"除 (\\div)",cdot:"点",cdotDescription:"点 (\\cdot)",ast:"星号",astDescription:"星号 (\\ast)",star:"五角星",starDescription:"五角星 (\\star)",dagger:"剑号",daggerDescription:"剑号 (\\dagger)",ddagger:"双剑号",ddaggerDescription:"双剑号 (\\ddagger)",amalg:"amalg",amalgDescription:"amalg (\\amalg)",cap:"圆帽",capDescription:"圆帽 (\\cap)",cup:"圆杯",cupDescription:"圆杯 (\\cup)",uplus:"圆杯加号",uplusDescription:"圆杯加号 (\\uplus)",sqcap:"方帽",sqcapDescription:"方帽 (\\sqcap)",sqcup:"方杯",sqcupDescription:"方杯 (\\sqcup)",vee:"正 V",veeDescription:"正 V (\\vee)",wedge:"倒 V",wedgeDescription:"倒 V (\\wedge)",setminus:"集差",setminusDescription:"集差 (\\setminus)",wr:"环积",wrDescription:"环积 (\\wr)",circ:"圆圈",circDescription:"圆圈 (\\circ)",bullet:"实心圆",bulletDescription:"实心圆 (\\bullet)",diamond:"菱形",diamondDescription:"菱形 (\\diamond)",oslash:"圆圈斜线",oslashDescription:"圆圈斜线 (\\oslash)",odot:"圆圈点",odotDescription:"圆圈点 (\\odot)",bigcirc:"大圆圈",bigcircDescription:"大圆圈 (\\bigcirc)",bigtriangleup:"大正三角形",bigtriangleupDescription:"大正三角形 (\\bigtriangleup)",bigtriangledown:"大倒三角形",bigtriangledownDescription:"大倒三角形 (\\bigtriangledown)",triangleleft:"左三角形",triangleleftDescription:"左三角形 (\\triangleleft)",triangleright:"右三角形",trianglerightDescription:"右三角形 (\\triangleright)",oplus:"圆圈加号",oplusDescription:"圆圈加号 (\\oplus)",ominus:"圆圈减号",ominusDescription:"圆圈减号 (\\ominus)",otimes:"圆圈乘号",otimesDescription:"圆圈乘号 (\\otimes)",bot:"倒 T",botDescription:"倒 T (\\bot)",top:"正 T",topDescription:"正 T (\\top)",sumop:"求和",sumopDescription:"求和 (\\sumop)",prodop:"乘积",prodopDescription:"乘积 (\\prodop)",intop:"积分",intopDescription:"积分 (\\intop)",ointop:"围道积分",ointopDescription:"围道积分 (\\ointop)",biguplus:"大圆杯加号",biguplusDescription:"大圆杯加号 (\\biguplus)",bigoplus:"大圆圈加号",bigoplusDescription:"大圆圈加号 (\\bigoplus)",bigvee:"大 V",bigveeDescription:"大 V (\\bigvee)",bigcap:"大圆帽",bigcapDescription:"大圆帽 (\\bigcap)",bigotimes:"大圆圈乘号",bigotimesDescription:"大圆圈乘号 (\\bigotimes)",bigwedge:"大倒 V",bigwedgeDescription:"大倒 V (\\bigwedge)",bigcup:"大圆杯",bigcupDescription:"大圆杯 (\\bigcup)",bigodot:"大圆圈点",bigodotDescription:"大圆圈点 (\\bigodot)",bigsqcup:"大方杯",bigsqcupDescription:"大方杯 (\\bigsqcup)",categoryRelationSymbols:"关系符号",lt:"小于",ltDescription:"小于 (<)",gt:"大于",gtDescription:"大于 (>)",leq:"小于等于",leqDescription:"小于等于 (\\leq)",geq:"大于等于",geqDescription:"大于等于 (\\geq)",ll:"远小于",llDescription:"远小于 (\\ll)",gg:"远大于",ggDescription:"远大于 (\\gg)",neq:"不等于",neqDescription:"不等于 (\\neq)",doteq:"点等于",doteqDescription:"点等于 (\\doteq)",sim:"相似于",simDescription:"相似于 (\\sim)",simeq:"近似等于",simeqDescription:"近似等于 (\\simeq)",approx:"约等于",approxDescription:"约等于 (\\approx)",asymp:"趋于",asympDescription:"趋于 (\\asymp)",cong:"全等于",congDescription:"全等于 (\\cong)",equiv:"恒等于",equivDescription:"恒等于 (\\equiv)",subset:"子集",subsetDescription:"子集 (\\subset)",supset:"超集",supsetDescription:"超集 (\\supset)",subseteq:"子集或等于",subseteqDescription:"子集或等于 (\\subseteq)",supseteq:"超集或等于",supseteqDescription:"超集或等于 (\\supseteq)",sqsubseteq:"方形子集或等于",sqsubseteqDescription:"方形子集或等于 (\\sqsubseteq)",sqsupseteq:"方形超集或等于",sqsupseteqDescription:"方形超集或等于 (\\sqsupseteq)",in:"包含于",inDescription:"包含于 (\\in)",ni:"包含",niDescription:"包含为成员 (\\ni)",notin:"不包含于",notinDescription:"不包含于 (\\notin)",models:"后承于",modelsDescription:"后承于 (\\models)",vdash:"竖线短横",vdashDescription:"竖线短横 (\\vdash)",dashv:"短横竖线",dashvDescription:"短横竖线 (\\dashv)",perp:"垂直",perpDescription:"垂直 (\\perp)",mid:"中线",midDescription:"中线 (\\mid)",parallel:"平行",parallelDescription:"平行 (\\parallel)",propto:"成比例",proptoDescription:"成比例 (\\propto)",bowtie:"领结",bowtieDescription:"领结 (\\bowtie)",prec:"先于",precDescription:"先于 (\\prec)",preceq:"先于等于",preceqDescription:"先于等于 (\\preceq)",succ:"后于",succDescription:"后于 (\\succ)",succeq:"后于等于",succeqDescription:"后于等于 (\\succeq)",notlt:"不小于",notltDescription:"不小于 (\\notlt)",notgt:"不大于",notgtDescription:"不大于 (\\notgt)",notleq:"不小于等于",notleqDescription:"不小于等于 (\\notleq)",notgeq:"不大于等于",notgeqDescription:"不大于等于 (\\notgeq)",notequiv:"不恒等于",notequivDescription:"不恒等于 (\\notequiv)",notapprox:"不约等于",notapproxDescription:"不约等于 (\\notapprox)",notcong:"不全等于",notcongDescription:"不全等于 (\\notcong)",notsim:"不相似于",notsimDescription:"不相似于 (\\notsim)",notsimeq:"不近似等于",notsimeqDescription:"不近似等于 (\\notsimeq)",notmodels:"不后承于",notmodelsDescription:"不后承于 (\\notmodels)",notni:"不包含",notniDescription:"不包含 (\\notni)",notsucc:"不后于",notsuccDescription:"不后于 (\\notsucc)",notsucceq:"不后于等于",notsucceqDescription:"不后于等于 (\\notsucceq)",notprec:"不先于",notprecDescription:"不先于 (\\notprec)",notpreceq:"不先于等于",notpreceqDescription:"不先于等于 (\\notpreceq)",notparallel:"不平行",notparallelDescription:"不平行 (\\notparallel)",notsubset:"非子集",notsubsetDescription:"非子集 (\\notsubset)",notsupset:"非超集",notsupsetDescription:"非超集 (\\notsupset)",notsubseteq:"非子集或等于",notsubseteqDescription:"非子集或等于 (\\notsubseteq)",notsupseteq:"非超集或等于",notsupseteqDescription:"非超集或等于 (\\notsupseteq)",categoryArrows:"箭头",leftarrow:"左箭头",leftarrowDescription:"左箭头 (\\leftarrow)",rightarrow:"右箭头",rightarrowDescription:"右箭头 (\\rightarrow)",uparrow:"上箭头",uparrowDescription:"上箭头 (\\uparrow)",Leftarrow:"左双线箭头",LeftarrowDescription:"左双线箭头 (\\Leftarrow)",Rightarrow:"右双线箭头",RightarrowDescription:"右双线箭头 (\\Rightarrow)",Uparrow:"上双线箭头",UparrowDescription:"上双线箭头 (\\Uparrow)",longleftarrow:"长左箭头",longleftarrowDescription:"长左箭头 (\\longleftarrow)",longrightarrow:"长右箭头",longrightarrowDescription:"长右箭头 (\\longrightarrow)",downarrow:"下箭头",downarrowDescription:"下箭头 (\\downarrow)",Longleftarrow:"长双线左箭头",LongleftarrowDescription:"长双线左箭头 (\\Longleftarrow)",Longrightarrow:"长双线右箭头",LongrightarrowDescription:"长双线右箭头 (\\Longrightarrow)",Downarrow:"下箭头",DownarrowDescription:"下箭头 (\\Downarrow)",hookleftarrow:"弯钩左箭头",hookleftarrowDescription:"弯钩左箭头 (\\hookleftarrow)",hookrightarrow:"弯钩右箭头",hookrightarrowDescription:"弯钩右箭头 (\\hookrightarrow)",updownarrow:"上下双向箭头",updownarrowDescription:"上下双向箭头 (\\updownarrow)",leftharpoondown:"下半钩左箭头",leftharpoondownDescription:"下半钩左箭头 (\\leftharpoondown)",rightharpoondown:"下半钩右箭头",rightharpoondownDescription:"下半钩右箭头 (\\rightharpoondown)",Updownarrow:"上下双向双线箭头",UpdownarrowDescription:"上下双向双线箭头 (\\Updownarrow)",leftharpoonup:"上半钩左箭头",leftharpoonupDescription:"上半钩左箭头 (\\leftharpoonup)",rightharpoonup:"上半钩右箭头",rightharpoonupDescription:"上半钩右箭头 (\\rightharpoonup)",leftrightarrow:"左右双向箭头",leftrightarrowDescription:"左右双向箭头 (\\leftrightarrow)",swarrow:"左斜下箭头",swarrowDescription:"左斜下箭头 (\\swarrow)",nearrow:"右斜上箭头",nearrowDescription:"右斜上箭头 (\\nearrow)",Leftrightarrow:"左右双向双线箭头",LeftrightarrowDescription:"左右双向双线箭头 (\\Leftrightarrow)",nwarrow:"左斜上箭头",nwarrowDescription:"左斜上箭头 (\\nwarrow)",searrow:"右斜下箭头",searrowDescription:"右斜下箭头 (\\searrow)",longleftrightarrow:"长左右双向箭头",longleftrightarrowDescription:"长左右双向箭头 (\\longleftrightarrow)",mapsto:"映射箭头",mapstoDescription:"映射箭头 (\\mapsto)",longmapsto:"长映射箭头",longmapstoDescription:"长映射箭头 (\\longmapsto)",Longleftrightarrow:"长左右双向双线箭头",LongleftrightarrowDescription:"长左右双向双线箭头 (\\Longleftrightarrow)",categoryBrackets:"括号",lbrace:"左花括号",lbraceDescription:"左花括号 (\\lbrace)",rbrace:"右花括号",rbraceDescription:"右花括号 (\\rbrace)",vert:"竖线",vertDescription:"竖线 (\\vert)",lbrack:"左方括号",lbrackDescription:"左方括号 (\\lbrack)",rbrack:"右方括号",rbrackDescription:"右方括号 (\\rbrack)",Vert:"双竖线",VertDescription:"双竖线 (\\Vert)",langle:"左尖括号",langleDescription:"左尖括号 (\\langle)",rangle:"右尖括号",rangleDescription:"右尖括号 (\\rangle)",backslash:"反斜杠",backslashDescription:"反斜杠 (\\backslash)",lceil:"左上半框括号",lceilDescription:"左上半框括号 (\\lceil)",rceil:"右上半框括号",rceilDescription:"右上半框括号 (\\rceil)",lfloor:"左下半框括号",lfloorDescription:"左下半框括号 (\\lfloor)",rfloor:"右下半框括号",rfloorDescription:"右下半框括号 (\\rfloor)",categoryMiscSymbols:"其他符号",aleph:"Aleph",alephDescription:"Aleph (\\aleph)",infty:"无穷",inftyDescription:"无穷 (\\infty)",forall:"任取",forallDescription:"任取 (\\forall)",wp:"手写体大写 P",wpDescription:"手写体大写 P (\\wp)",nabla:"劈形",nablaDescription:"劈形 (\\nabla)",exists:"存在",existsDescription:"存在 (\\exists)",angle:"角",angleDescription:"角 (\\angle)",partial:"偏导数",partialDescription:"偏导数 (\\partial)",emptyset:"空集",emptysetDescription:"空集 (\\emptyset)",triangle:"三角形",triangleDescription:"三角形 (\\triangle)",Im:"虚部",ImDescription:"虚部 (\\Im)",imath:"imath",imathDescription:"数学小写无点 i (\\imath)",hbar:"hbar",hbarDescription:"普朗克常数 (\\hbar)",Re:"实部",ReDescription:"实部 (\\Re)",jmath:"jmath",jmathDescription:"数学小写无点 j (\\jmath)",prime:"质数",primeDescription:"质数 (\\prime)",ldots:"下三连点",ldotsDescription:"下三连点 (\\ldots)",ell:"ell",ellDescription:"手写体小写 l (\\ell)",colon:"冒号",colonDescription:"冒号 (\\colon)",cdots:"中三连点",cdotsDescription:"中三连点 (\\cdots)",neg:"取反号",negDescription:"取反号 (\\neg)",ddots:"斜三连点",ddotsDescription:"斜三连点 (\\ddots)",surd:"不尽根号",surdDescription:"不尽根号 (\\surd)",ldotp:"句点",ldotpDescription:"句点 (\\ldotp)",vdots:"竖三连点",vdotsDescription:"竖三连点 (\\vdots)",to:"右箭头",toDescription:"右箭头 (\\to)",gets:"左箭头",getsDescription:"左箭头 (\\gets)",categoryScript:"脚本",superscript:"幂",superscriptDescription:"幂 (^)",subscript:"索引",subscriptDescription:"索引 (_)",subsuperscript:"上下角标",subsuperscriptDescription:"上下角标 (\\subsuperscript)",multiscript:"多角标",multiscriptDescription:"多角标 (\\multiscript)",over:"正上标",overDescription:"正上标 (\\over)",under:"正下标",underDescription:"正下标 (\\under)",underover:"正上下标",underoverDescription:"正上下标 (\\underover)",categoryFractionsAndRadicals:"分数和方根",frac:"标准分数",fracDescription:"标准分数 (\\frac)",fracbevelled:"错位斜分数",fracbevelledDescription:"错位斜分数 (\\fracbevelled)",fracinline:"行内斜分数",fracinlineDescription:"行内斜分数 (\\fracinline)",sqrt:"平方根",sqrtDescription:"平方根 (\\sqrt)",root:"N 次方根",rootDescription:"N 次方根 (\\root)",categoryOperators:"运算符",int:"积分",intDescription:"不定积分 (\\int)",intdef:"定积分",intdefDescription:"定积分 (\\intdef)",oint:"围道积分",ointDescription:"不定围道积分 (\\oint)",ointdef:"定围道积分",ointdefDescription:"定围道积分 (\\ointdef)",sum:"总和",sumDescription:"不定总和 (\\sum)",sumdef:"定总和",sumdefDescription:"定总和 (\\sumdef)",prod:"乘积",prodDescription:"不定乘积 (\\prod)",proddef:"定乘积",proddefDescription:"定乘积 (\\proddef)",lim:"极限",limDescription:"极限 (\\lim)",categoryMisc:"其他",cases:"大括号",casesDescription:"大括号 (\\cases)",derivative:"导数",derivativeDescription:"导数 (\\derivative)",derivativeN:"N 阶导数",derivativeNDescription:"N 阶导数 (\\derivativeN)",partialderivative:"偏导数",partialderivativeDescription:"偏导数 (\\partialderivative)",partialderivativeN:"N 阶偏导数",partialderivativeNDescription:"N 阶偏导数 (\\partialderivativeN)",categoryBracketPairs:"括号",parentheses:"圆括号",parenthesesDescription:"圆括号 (\\parentheses)",brackets:"方括号",bracketsDescription:"方括号 (\\brackets)",braces:"花括号",bracesDescription:"花括号 (\\braces)",ceil:"上半框括号",ceilDescription:"上半框括号 (\\ceil)",floor:"下半框括号",floorDescription:"下半框括号 (\\floor)",anglebracket:"尖括号",anglebracketDescription:"尖括号 (\\anglebracket)",bars:"竖线括号",barsDescription:"竖线括号 (\\bars)",doublebars:"双竖线括号",doublebarsDescription:"双竖线括号 (\\doublebars)",categoryAccents:"音调符",hat:"扬抑符",hatDescription:"扬抑符 (\\hat)",breve:"短音符",breveDescription:"短音符 (\\breve)",grave:"抑音符",graveDescription:"抑音符 (\\grave)",bar:"长音符",barDescription:"长音符 (\\bar)",dot:"圆点符",dotDescription:"圆点符 (\\dot)",check:"抑扬符",checkDescription:"抑扬符 (\\check)",acute:"尖音符",acuteDescription:"尖音符 (\\acute)",tilde:"颚化符",tildeDescription:"颚化符 (\\tilde)",vec:"右箭矢",vecDescription:"右箭矢 (\\vec)",ddot:"分音符",ddotDescription:"分音符 (\\ddot)",widehat:"宽扬抑符",widehatDescription:"宽扬抑符 (\\widehat)",widetilde:"宽颚化符",widetildeDescription:"宽颚化符 (\\widetilde)",overleftarrow:"上左箭头",overleftarrowDescription:"上左箭头 (\\overleftarrow)",overrightarrow:"上右箭头",overrightarrowDescription:"上右箭头 (\\overrightarrow)",overleftrightarrow:"上左右箭头",overleftrightarrowDescription:"上左右箭头 (\\overleftrightarrow)",overbrace:"上花括号",overbraceDescription:"上花括号 (\\overbrace)",overline:"上划线",overlineDescription:"上划线 (\\overline)",underbrace:"下花括号",underbraceDescription:"下花括号 (\\underbrace)",underline:"下划线",underlineDescription:"下划线 (\\underline)",insertMatrix:"矩阵",insertMatrixDescription:"插入矩阵"}},function(e,t,i){e.exports={root:{symbolsSectionTitle:"SYMBOLS",structuresSectionTitle:"STRUCTURES",matricesSectionTitle:"MATRICES",categoryGreekLetters:"Greek Letters",alpha:"alpha",alphaDescription:"alpha (\\alpha)",beta:"beta",betaDescription:"beta (\\beta)",gamma:"gamma",gammaDescription:"gamma (\\gamma)",delta:"delta",deltaDescription:"delta (\\delta)",epsilon:"epsilon",epsilonDescription:"epsilon (\\epsilon)",varepsilon:"varepsilon",varepsilonDescription:"varepsilon (\\varepsilon)",zeta:"zeta",zetaDescription:"zeta (\\zeta)",eta:"eta",etaDescription:"eta (\\eta)",theta:"theta",thetaDescription:"theta (\\theta)",vartheta:"vartheta",varthetaDescription:"vartheta (\\vartheta)",iota:"iota",iotaDescription:"iota (\\iota)",kappa:"kappa",kappaDescription:"kappa (\\kappa)",lambda:"lambda",lambdaDescription:"lambda (\\lambda)",mu:"mu",muDescription:"mu (\\mu)",nu:"nu",nuDescription:"nu (\\nu)",xi:"xi",xiDescription:"xi (\\xi)",omicron:"omicron",omicronDescription:"omicron (\\omicron)",pi:"pi",piDescription:"pi (\\pi)",varpi:"varpi",varpiDescription:"varpi (\\varpi)",rho:"rho",rhoDescription:"rho (\\rho)",varrho:"varrho",varrhoDescription:"varrho (\\varrho)",sigma:"sigma",sigmaDescription:"sigma (\\sigma)",varsigma:"varsigma",varsigmaDescription:"varsigma (\\varsigma)",tau:"tau",tauDescription:"tau (\\tau)",upsilon:"upsilon",upsilonDescription:"upsilon (\\upsilon)",phi:"phi",phiDescription:"phi (\\phi)",varphi:"varphi",varphiDescription:"varphi (\\varphi)",chi:"chi",chiDescription:"chi (\\chi)",psi:"psi",psiDescription:"psi (\\psi)",omega:"omega",omegaDescription:"omega (\\omega)",Alpha:"Alpha",AlphaDescription:"Alpha (\\Alpha)",Beta:"Beta",BetaDescription:"Beta (\\Beta)",Gamma:"Gamma",GammaDescription:"Gamma (\\Gamma)",Delta:"Delta",DeltaDescription:"Delta (\\Delta)",Epsilon:"Epsilon",EpsilonDescription:"Epsilon (\\Epsilon)",Zeta:"Zeta",ZetaDescription:"Zeta (\\Zeta)",Eta:"Eta",EtaDescription:"Eta (\\Eta)",Theta:"Theta",ThetaDescription:"Theta (\\Theta)",Iota:"Iota",IotaDescription:"Iota (\\Iota)",Kappa:"Kappa",KappaDescription:"Kappa (\\Kappa)",Lambda:"Lambda",LambdaDescription:"Lambda (\\Lambda)",Mu:"Mu",MuDescription:"Mu (\\Mu)",Nu:"Nu",NuDescription:"Nu (\\Nu)",Xi:"Xi",XiDescription:"Xi (\\Xi)",Omicron:"Omicron",OmicronDescription:"Omicron (\\Omicron)",Pi:"Pi",PiDescription:"Pi (\\Pi)",Rho:"Rho",RhoDescription:"Rho (\\Rho)",Sigma:"Sigma",SigmaDescription:"Sigma (\\Sigma)",Tau:"Tau",TauDescription:"Tau (\\Tau)",Upsilon:"Upsilon",UpsilonDescription:"Upsilon (\\Upsilon)",Phi:"Phi",PhiDescription:"Phi (\\Phi)",Chi:"Chi",ChiDescription:"Chi (\\Chi)",Psi:"Psi",PsiDescription:"Psi (\\Psi)",Omega:"Omega",OmegaDescription:"Omega (\\Omega)",categoryOperatorSymbols:"Operator Symbols",pm:"pm",pmDescription:"plusminus (\\pm)",mp:"mp",mpDescription:"minusplus (\\mp)",times:"times",timesDescription:"times (\\times)",div:"div",divDescription:"div (\\div)",cdot:"cdot",cdotDescription:"cdot (\\cdot)",ast:"ast",astDescription:"ast (\\ast)",star:"star",starDescription:"star (\\star)",dagger:"dagger",daggerDescription:"dagger (\\dagger)",ddagger:"ddagger",ddaggerDescription:"ddagger (\\ddagger)",amalg:"amalg",amalgDescription:"amalg (\\amalg)",cap:"cap",capDescription:"cap (\\cap)",cup:"cup",cupDescription:"cup (\\cup)",uplus:"uplus",uplusDescription:"uplus (\\uplus)",sqcap:"sqcap",sqcapDescription:"sqcap (\\sqcap)",sqcup:"sqcup",sqcupDescription:"sqcup (\\sqcup)",vee:"vee",veeDescription:"vee (\\vee)",wedge:"wedge",wedgeDescription:"wedge (\\wedge)",setminus:"setminus",setminusDescription:"setminus (\\setminus)",wr:"wr",wrDescription:"wr (\\wr)",circ:"circ",circDescription:"circ (\\circ)",bullet:"bullet",bulletDescription:"bullet (\\bullet)",diamond:"diamond",diamondDescription:"diamond (\\diamond)",oslash:"oslash",oslashDescription:"oslash (\\oslash)",odot:"odot",odotDescription:"odot (\\odot)",bigcirc:"bigcirc",bigcircDescription:"bigcirc (\\bigcirc)",bigtriangleup:"bigtriangleup",bigtriangleupDescription:"bigtriangleup (\\bigtriangleup)",bigtriangledown:"bigtriangledown",bigtriangledownDescription:"bigtriangledown (\\bigtriangledown)",triangleleft:"triangleleft",triangleleftDescription:"triangleleft (\\triangleleft)",triangleright:"triangleright",trianglerightDescription:"triangleright (\\triangleright)",oplus:"oplus",oplusDescription:"oplus (\\oplus)",ominus:"ominus",ominusDescription:"ominus (\\ominus)",otimes:"otimes",otimesDescription:"otimes (\\otimes)",bot:"bot",botDescription:"bot (\\bot)",top:"top",topDescription:"top (\\top)",sumop:"sumop",sumopDescription:"sumop (\\sumop)",prodop:"prodop",prodopDescription:"prodop (\\prodop)",intop:"intop",intopDescription:"intop (\\intop)",ointop:"ointop",ointopDescription:"ointop (\\ointop)",biguplus:"biguplus",biguplusDescription:"biguplus (\\biguplus)",bigoplus:"bigoplus",bigoplusDescription:"bigoplus (\\bigoplus)",bigvee:"bigvee",bigveeDescription:"bigvee (\\bigvee)",bigcap:"bigcap",bigcapDescription:"bigcap (\\bigcap)",bigotimes:"bigotimes",bigotimesDescription:"bigotimes (\\bigotimes)",bigwedge:"bigwedge",bigwedgeDescription:"bigwedge (\\bigwedge)",bigcup:"bigcup",bigcupDescription:"bigcup (\\bigcup)",bigodot:"bigodot",bigodotDescription:"bigodot (\\bigodot)",bigsqcup:"bigsqcup",bigsqcupDescription:"bigsqcup (\\bigsqcup)",categoryRelationSymbols:"Relation Symbols",lt:"Less",ltDescription:"Less than (<)",gt:"Greater",gtDescription:"Greater than (>)",leq:"Less equal",leqDescription:"Less equal than (\\leq)",geq:"Greater equal",geqDescription:"Greater equal than (\\geq)",ll:"Much less",llDescription:"Much less than (\\ll)",gg:"Much greater",ggDescription:"Much greater than (\\gg)",neq:"Not equal",neqDescription:"Not equal (\\neq)",doteq:"Dot equal",doteqDescription:"Dot equal (\\doteq)",sim:"Similar",simDescription:"Similar (\\sim)",simeq:"Similar equal",simeqDescription:"Similar equal (\\simeq)",approx:"Approx",approxDescription:"Approx (\\approx)",asymp:"Asymp",asympDescription:"Asymp (\\asymp)",cong:"Cong",congDescription:"Cong (\\cong)",equiv:"Equiv",equivDescription:"Equiv (\\equiv)",subset:"Subset",subsetDescription:"Subset (\\subset)",supset:"Superset",supsetDescription:"Superset (\\supset)",subseteq:"Subset Equal",subseteqDescription:"Subset Equal (\\subseteq)",supseteq:"Superset Equal",supseteqDescription:"Superset Equal (\\supseteq)",sqsubseteq:"Square Subset Equal",sqsubseteqDescription:"Square Subset Equal (\\sqsubseteq)",sqsupseteq:"Square Superset Equal",sqsupseteqDescription:"Square Superset Equal (\\sqsupseteq)",in:"In",inDescription:"In (\\in)",ni:"Contains",niDescription:"Contains as member (\\ni)",notin:"Not in",notinDescription:"Not in (\\notin)",models:"Models",modelsDescription:"Models (\\models)",vdash:"Vdash",vdashDescription:"V-dash (\\vdash)",dashv:"Dashv",dashvDescription:"Dashv (\\dashv)",perp:"Perp",perpDescription:"Perpendicular (\\perp)",mid:"Mid",midDescription:"Mid (\\mid)",parallel:"Parallel",parallelDescription:"Parallel (\\parallel)",propto:"Propto",proptoDescription:"Propto (\\propto)",bowtie:"Bowtie",bowtieDescription:"Bowtie (\\bowtie)",prec:"Prec",precDescription:"Prec (\\prec)",preceq:"Preceq",preceqDescription:"Preceq (\\preceq)",succ:"Succ",succDescription:"Succ (\\succ)",succeq:"Succeq",succeqDescription:"Succeq (\\succeq)",notlt:"Not Less Than",notltDescription:"Not Lt (\\notlt)",notgt:"Not Gt",notgtDescription:"Not Greater Than (\\notgt)",notleq:"Not Leq",notleqDescription:"Not Leq (\\notleq)",notgeq:"Not Geq",notgeqDescription:"Not Geq (\\notgeq)",notequiv:"Not Equiv",notequivDescription:"Not Equiv (\\notequiv)",notapprox:"Not Approx",notapproxDescription:"Not Approx (\\notapprox)",notcong:"Not Cong",notcongDescription:"Not Cong (\\notcong)",notsim:"Not Sim",notsimDescription:"Not Sim (\\notsim)",notsimeq:"Not Simeq",notsimeqDescription:"Not Simeq (\\notsimeq)",notmodels:"Not Models",notmodelsDescription:"Not Models (\\notmodels)",notni:"Not Ni",notniDescription:"Not Ni (\\notni)",notsucc:"Not Succ",notsuccDescription:"Not Succ (\\notsucc)",notsucceq:"Not Succeq",notsucceqDescription:"Not Succeq (\\notsucceq)",notprec:"Not Prec",notprecDescription:"Not Prec (\\notprec)",notpreceq:"Not Preceq",notpreceqDescription:"Not Preceq (\\notpreceq)",notparallel:"Not Parallel",notparallelDescription:"Not Parallel (\\notparallel)",notsubset:"Not Subset",notsubsetDescription:"Not Subset (\\notsubset)",notsupset:"Not Supset",notsupsetDescription:"Not Supset (\\notsupset)",notsubseteq:"Not Subseteq",notsubseteqDescription:"Not Subseteq (\\notsubseteq)",notsupseteq:"Not Supseteq",notsupseteqDescription:"Not Supseteq (\\notsupseteq)",categoryArrows:"Arrows",leftarrow:"leftarrow",leftarrowDescription:"leftarrow (\\leftarrow)",rightarrow:"rightarrow",rightarrowDescription:"rightarrow (\\rightarrow)",uparrow:"uparrow",uparrowDescription:"uparrow (\\uparrow)",Leftarrow:"Leftarrow",LeftarrowDescription:"Leftarrow (\\Leftarrow)",Rightarrow:"Rightarrow",RightarrowDescription:"Rightarrow (\\Rightarrow)",Uparrow:"Uparrow",UparrowDescription:"Uparrow (\\Uparrow)",longleftarrow:"longleftarrow",longleftarrowDescription:"longleftarrow (\\longleftarrow)",longrightarrow:"longrightarrow",longrightarrowDescription:"longrightarrow (\\longrightarrow)",downarrow:"downarrow",downarrowDescription:"downarrow (\\downarrow)",Longleftarrow:"Longleftarrow",LongleftarrowDescription:"Longleftarrow (\\Longleftarrow)",Longrightarrow:"Longrightarrow",LongrightarrowDescription:"Longrightarrow (\\Longrightarrow)",Downarrow:"Downarrow",DownarrowDescription:"Downarrow (\\Downarrow)",hookleftarrow:"hookleftarrow",hookleftarrowDescription:"hookleftarrow (\\hookleftarrow)",hookrightarrow:"hookrightarrow",hookrightarrowDescription:"hookrightarrow (\\hookrightarrow)",updownarrow:"updownarrow",updownarrowDescription:"updownarrow (\\updownarrow)",leftharpoondown:"leftharpoondown",leftharpoondownDescription:"leftharpoondown (\\leftharpoondown)",rightharpoondown:"rightharpoondown",rightharpoondownDescription:"rightharpoondown (\\rightharpoondown)",Updownarrow:"Updownarrow",UpdownarrowDescription:"Updownarrow (\\Updownarrow)",leftharpoonup:"leftharpoonup",leftharpoonupDescription:"leftharpoonup (\\leftharpoonup)",rightharpoonup:"rightharpoonup",rightharpoonupDescription:"rightharpoonup (\\rightharpoonup)",leftrightarrow:"leftrightarrow",leftrightarrowDescription:"leftrightarrow (\\leftrightarrow)",swarrow:"swarrow",swarrowDescription:"swarrow (\\swarrow)",nearrow:"nearrow",nearrowDescription:"nearrow (\\nearrow)",Leftrightarrow:"Leftrightarrow",LeftrightarrowDescription:"Leftrightarrow (\\Leftrightarrow)",nwarrow:"nwarrow",nwarrowDescription:"nwarrow (\\nwarrow)",searrow:"searrow",searrowDescription:"searrow (\\searrow)",longleftrightarrow:"longleftrightarrow",longleftrightarrowDescription:"longleftrightarrow (\\longleftrightarrow)",mapsto:"mapsto",mapstoDescription:"mapsto (\\mapsto)",longmapsto:"longmapsto",longmapstoDescription:"longmapsto (\\longmapsto)",Longleftrightarrow:"Longleftrightarrow",LongleftrightarrowDescription:"Longleftrightarrow (\\Longleftrightarrow)",categoryBrackets:"Brackets",lbrace:"lbrace",lbraceDescription:"Left Brace (\\lbrace)",rbrace:"rbrace",rbraceDescription:"Right Brace (\\rbrace)",vert:"vert",vertDescription:"Vertical Bar (\\vert)",lbrack:"lbrack",lbrackDescription:"Left Bracket (\\lbrack)",rbrack:"rbrack",rbrackDescription:"Right Bracket (\\rbrack)",Vert:"Vert",VertDescription:"Vertical Double Bars (\\Vert)",langle:"langle",langleDescription:"Left Angle (\\langle)",rangle:"rangle",rangleDescription:"Right Angle (\\rangle)",backslash:"backslash",backslashDescription:"Backslash (\\backslash)",lceil:"lceil",lceilDescription:"Left Ceil (\\lceil)",rceil:"rceil",rceilDescription:"Right Ceil (\\rceil)",lfloor:"lfloor",lfloorDescription:"Left Floor (\\lfloor)",rfloor:"rfloor",rfloorDescription:"Right Floor (\\rfloor)",categoryMiscSymbols:"Misc Symbols",aleph:"Aleph",alephDescription:"Aleph (\\aleph)",infty:"infty",inftyDescription:"Infinity (\\infty)",forall:"forall",forallDescription:"For All (\\forall)",wp:"wp",wpDescription:"Script Capital P (\\wp)",nabla:"nabla",nablaDescription:"Nabla (\\nabla)",exists:"exists",existsDescription:"Exists (\\exists)",angle:"angle",angleDescription:"Angle (\\angle)",partial:"partial",partialDescription:"Partial d (\\partial)",emptyset:"emptyset",emptysetDescription:"Emptyset (\\emptyset)",triangle:"triangle",triangleDescription:"Triangle (\\triangle)",Im:"Im",ImDescription:"Imaginary Part (\\Im)",imath:"imath",imathDescription:"Mathematical Small Dotless i (\\imath)",hbar:"hbar",hbarDescription:"Planck Constant (\\hbar)",Re:"Re",ReDescription:"Real Part (\\Re)",jmath:"jmath",jmathDescription:"Mathematical Small Dotless j (\\jmath)",prime:"prime",primeDescription:"Prime (\\prime)",ldots:"ldots",ldotsDescription:"Dots (\\ldots)",ell:"ell",ellDescription:"Script Small l (\\ell)",colon:"colon",colonDescription:"Colon (\\colon)",cdots:"cdots",cdotsDescription:"Centered Dots (\\cdots)",neg:"neg",negDescription:"Negation (\\neg)",ddots:"ddots",ddotsDescription:"Diagonal Dots (\\ddots)",surd:"surd",surdDescription:"Radical (\\surd)",ldotp:"ldotp",ldotpDescription:"Period (\\ldotp)",vdots:"vdots",vdotsDescription:"Vertical Dots (\\vdots)",to:"to",toDescription:"To (\\to)",gets:"gets",getsDescription:"Gets (\\gets)",categoryScript:"Script",superscript:"Power",superscriptDescription:"Power (^)",subscript:"Index",subscriptDescription:"Index (_)",subsuperscript:"Subsuperscript",subsuperscriptDescription:"Subsuperscript (\\subsuperscript)",multiscript:"Multiscript",multiscriptDescription:"Multiscript (\\multiscript)",over:"Over",overDescription:"Over (\\over)",under:"Under",underDescription:"Under (\\under)",underover:"Underover",underoverDescription:"Underover (\\underover)",categoryFractionsAndRadicals:"Fractions and Radicals",frac:"Fraction",fracDescription:"Fraction (\\frac)",fracbevelled:"Bevelled Fraction",fracbevelledDescription:"Bevelled Fraction (\\fracbevelled)",fracinline:"Inline Fraction",fracinlineDescription:"Inline Fraction (\\fracinline)",sqrt:"Sqrt",sqrtDescription:"Square Root (\\sqrt)",root:"N-th-Root",rootDescription:"N-th Root (\\root)",categoryOperators:"Operators",int:"Integral",intDescription:"Indefinite Integral (\\int)",intdef:"Def Int",intdefDescription:"Definite Integral (\\intdef)",oint:"Contour Integral",ointDescription:"Indefinite Contour Integral (\\oint)",ointdef:"Def Contour Int",ointdefDescription:"Definite Contour Integral (\\ointdef)",sum:"Sum",sumDescription:"Indefinite Sum (\\sum)",sumdef:"Def Sum",sumdefDescription:"Definite Sum (\\sumdef)",prod:"Product",prodDescription:"Indefinite Product (\\prod)",proddef:"Def Prod",proddefDescription:"Definite Product (\\proddef)",lim:"Limit",limDescription:"Limit (\\lim)",categoryMisc:"Misc",cases:"Cases",casesDescription:"Cases (\\cases)",derivative:"Derivative",derivativeDescription:"Derivative (\\derivative)",derivativeN:"N-th Derivative",derivativeNDescription:"N-th Derivative (\\derivativeN)",partialderivative:"Partial Derivative",partialderivativeDescription:"Partial Derivative (\\partialderivative)",partialderivativeN:"N-th Partial Derivative",partialderivativeNDescription:"N-th Partial Derivative (\\partialderivativeN)",categoryBracketPairs:"Brackets",parentheses:"Parentheses",parenthesesDescription:"Parentheses (\\parentheses)",brackets:"Brackets",bracketsDescription:"Brackets (\\brackets)",braces:"Braces",bracesDescription:"Braces (\\braces)",ceil:"Ceil",ceilDescription:"Ceil (\\ceil)",floor:"Floor",floorDescription:"Floor (\\floor)",anglebracket:"Anglebracket",anglebracketDescription:"Angle Brackets (\\anglebracket)",bars:"Bars",barsDescription:"Bars (\\bars)",doublebars:"Doublebars",doublebarsDescription:"Doublebars (\\doublebars)",categoryAccents:"Accents",hat:"Hat",hatDescription:"Hat (\\hat)",breve:"Breve",breveDescription:"Breve (\\breve)",grave:"Grave",graveDescription:"Grave (\\grave)",bar:"Bar",barDescription:"Bar (\\bar)",dot:"Dot",dotDescription:"Dot (\\dot)",check:"Check",checkDescription:"Check (\\check)",acute:"Acute",acuteDescription:"Acute (\\acute)",tilde:"Tilde",tildeDescription:"Tilde (\\tilde)",vec:"Vec",vecDescription:"Vector (\\vec)",ddot:"Ddot",ddotDescription:"Double dots (\\ddot)",widehat:"Widehat",widehatDescription:"Widehat (\\widehat)",widetilde:"Widetilde",widetildeDescription:"Widetilde (\\widetilde)",overleftarrow:"Overleftarrow",overleftarrowDescription:"Overleftarrow (\\overleftarrow)",overrightarrow:"Overrightarrow",overrightarrowDescription:"Overrightarrow (\\overrightarrow)",overleftrightarrow:"Overleftrightarrow",overleftrightarrowDescription:"Overleftrightarrow (\\overleftrightarrow)",overbrace:"Overbrace",overbraceDescription:"Overbrace (\\overbrace)",overline:"Overline",overlineDescription:"Overline (\\overline)",underbrace:"Underbrace",underbraceDescription:"Underbrace (\\underbrace)",underline:"Underline",underlineDescription:"Underline (\\underline)",insertMatrix:"Matrix",insertMatrixDescription:"Insert Matrix"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){e.exports={genericTitle:"MATLAB ライブ エディター",saveAsLabel:"名前を付けて保存...",saveAsDescription:"現在のファイルを新しいファイルに保存します",exportAsDialogTitle:"出力形式",exportAsHTMLLabel:"HTML にエクスポート...",exportAsHTMLDescription:"ドキュメントを HTML ファイルにエクスポートします。",exportAsPDFLabel:"PDF にエクスポート...",exportAsPDFDescription:"ドキュメントを PDF ファイルにエクスポートします。",exportAsDOCXLabel:"Word にエクスポート...",exportAsDOCXDescription:"ドキュメントを Microsoft Word ファイルにエクスポートします。",exportAsDOCXError:"Microsoft Word ファイルを作成できませんでした。",exportAsPDFError:"PDF ファイルを作成できませんでした。",exportAsLaTeXLabel:"LaTeX にエクスポート...",exportAsLaTeXDescription:"ドキュメントを LaTeX ファイルにエクスポートします。",exportFolderLabel:"フォルダーをエクスポート...",exportFolderDescription:"フォルダーからすべてのライブ スクリプトをエクスポートします。",goToLabel:"移動",goToDescription:"カーソルを行、関数、セクションに移動します",findLabel:"検索",findDescription:"テキストを検索し、必要に応じて置換します",previousSectionDescription:"前へ",nextSectionDescription:"次へ",boldDescription:"太字",italicDescription:"イタリック",underlineDescription:"下線",monospacedDescription:"等幅",refactorLabel:"リファクター",refactorDescription:"選択内容を関数に変換します",convertFunction:"関数への変換",convertLocalFunction:"ローカル関数への変換",insertSectionTitle:"挿入",insertTabTitle:"挿入",codeSectionTitle:"コード",sectionTitle:"セクション",textSectionTitle:"テキスト",imageSectionTitle:"イメージ",linkSectionTitle:"リンク",equationSectionTitle:"式",code:"コード",codeDescription:"コードの行を挿入します",text:"テキスト",textDescription:"テキストの行を挿入します",sectionBreak:"セクション区切り",sectionBreakDescription:"セクション区切りを挿入します",equation:"式",equationDescription:"式を挿入します",defaultEquation:"式",defaultEquationDescription:"式を挿入します",texEquation:"LaTeX 式",texEquationDescription:"LaTeX 式を挿入します",hyperlink:"ハイパーリンク",hyperlinkDescription:"ハイパーリンクを挿入します",image:"イメージ",imageDescription:"イメージを挿入します",tableOfContents:"目次\n",tableOfContentsDescription:"現在のカーソルの位置の上に目次を挿入します",codeExample:"コード例",codeExampleDescription:"コード例を挿入します",codeExampleMatlab:"MATLAB",codeExampleMatlabDescription:"MATLAB コード例を挿入します",codeExamplePlain:"標準",codeExamplePlainDescription:"標準のコード例を挿入します",textStyleSectionTitle:"テキスト スタイル",normal:"標準",normalDescription:"標準テキストのスタイルを適用します",heading:"見出し 1",headingDescription:"見出し 1 のスタイルを適用します",heading2:"見出し 2",heading2Description:"見出し 2 のスタイルを適用します",heading3:"見出し 3",heading3Description:"見出し 3 のスタイルを適用します",title:"タイトル",titleDescription:"タイトルのスタイルを適用します",bulletedList:"箇条書きリスト",bulletedListDescription:"箇条書きリストのスタイルを適用します",numberedList:"番号付きリスト",numberedListDescription:"番号付きリストのスタイルを適用します",runSectionTitle:"実行",runAll:"実行",runAllDescription:"すべてのセクションを実行します",liveFunctionRunDescription:"アクティブ ファイルを保存して実行します",pause:"一時停止",pauseDescription:"現在実行中のコードを一時停止して、デバッグ モードに入ります",continue:"続行",continueDescription:"実行を続行します",step:"ステップ",stepDescription:"次の行を実行します",stop:"停止",stopDescription:"実行を終了します",breakpointsTitle:"ブレークポイント",clearAllBreakpoints:"すべてクリア",clearAllBreakpointsDescription:"すべてのファイル内のブレークポイントをすべてクリアします",toggleBreakpoint:"設定/クリア",toggleBreakpointDescription:"現在の行でブレークポイントを設定またはクリアします",toggleEnableBreakpoint:"有効/無効",toggleEnableBreakpointDescription:"現在の行で有効または無効にします",runSection:"セクションを\n実行",runSectionDescription:"現在のセクションを実行します",runAndAdvance:"実行して次に進む",runAndAdvanceDescription:"現在のセクションを実行して次のセクションに進みます",runToEnd:"最後まで実行",runToEndDescription:"現在のセクションから最後のセクションまで実行します",viewTabTitle:"ビュー",outputSectionTitle:"出力",clearOutput:"すべての出力\n をクリア",clearOutputDescription:"すべての出力をクリアします",viewSectionTitle:"ビュー",codeView:"右側に\n出力",codeViewDescription:"出力をコードの右側に表示します",documentView:"インラインで\n出力",documentViewDescription:"出力をコードにインラインで表示します",hideCodeView:"コードを\n非表示",hideCodeViewDescription:"すべてのコードを非表示にします",alignRightLabel:"右揃え",alignRightDescription:"右に揃えます",alignLeftLabel:"左揃え",alignLeftDescription:"左に揃えます",alignCenterLabel:"中央揃え",alignCenterDescription:"中央に揃えます",control:"コントロール",controlDescription:"スライダー、ドロップ ダウン、その他のコントロールを挿入します",slider:"数値スライダー",sliderDescription:"数値スライダーを挿入します",comboBox:"ドロップ ダウン",comboBoxDescription:"ドロップ ダウンを挿入します",embeddedAppDropDown:"タスク",embeddedAppDescription:"アプリを挿入してタスクの実行とコードの生成を行います",my_tasks:"マイ タスク",fortestingonly_category:"テスト用のみ",dataandvisualization_category:"データと可視化",datapreprocessing_category:"データ前処理",tables_category:"table と timetable",statsandmachinelearning_category:"統計と機械学習",optim_category:"最適化",controls_category:"制御システム設計と解析",predmaint_category:"予知保全",sysid_category:"システム同定",spc_category:"信号処理と通信",symbolic_category:"シンボリック数学",imaq_category:"イメージの取得",computationalfinance_category:"金融工学",checkBox:"チェック ボックス",checkBoxDescription:"チェック ボックスを挿入します",editField:"編集フィールド",editFieldDescription:"編集フィールドを挿入します",button:"ボタン",buttonDescription:"ボタンを挿入します"}},function(e,t,i){e.exports={genericTitle:"MATLAB 라이브 편집기",saveAsLabel:"다른 이름으로 저장...",saveAsDescription:"현재 파일을 새 파일로 저장합니다.",exportAsDialogTitle:"내보낼 형식",exportAsHTMLLabel:"HTML로 내보내기...",exportAsHTMLDescription:"문서를 HTML 파일로 내보냅니다.",exportAsPDFLabel:"PDF로 내보내기...",exportAsPDFDescription:"문서를 PDF 파일로 내보냅니다.",exportAsDOCXLabel:"Word로 내보내기...",exportAsDOCXDescription:"문서를 Microsoft Word 파일로 내보냅니다.",exportAsDOCXError:"Microsoft Word 파일을 만들 수 없습니다.",exportAsPDFError:"PDF 파일을 만들 수 없습니다.",exportAsLaTeXLabel:"LaTeX으로 내보내기...",exportAsLaTeXDescription:"문서를 LaTeX 파일로 내보냅니다.",exportFolderLabel:"폴더 내보내기...",exportFolderDescription:"폴더에 있는 모든 라이브 스크립트를 내보냅니다.",goToLabel:"이동",goToDescription:"라인, 함수 또는 섹션으로 커서를 이동합니다.",findLabel:"찾기",findDescription:"텍스트를 찾아 선택적으로 바꿉니다.",previousSectionDescription:"이전",nextSectionDescription:"다음",boldDescription:"굵게",italicDescription:"기울임꼴",underlineDescription:"밑줄",monospacedDescription:"고정 폭",refactorLabel:"리팩터링",refactorDescription:"선택 항목을 함수로 변환합니다.",convertFunction:"함수로 변환",convertLocalFunction:"로컬 함수로 변환",insertSectionTitle:"삽입",insertTabTitle:"삽입",codeSectionTitle:"코드",sectionTitle:"섹션",textSectionTitle:"텍스트",imageSectionTitle:"이미지",linkSectionTitle:"연결",equationSectionTitle:"수식",code:"코드",codeDescription:"코드 라인을 삽입합니다.",text:"텍스트",textDescription:"텍스트 라인을 삽입합니다.",sectionBreak:"섹션 나누기",sectionBreakDescription:"섹션 나누기를 삽입합니다.",equation:"수식",equationDescription:"수식을 삽입합니다.",defaultEquation:"수식",defaultEquationDescription:"수식을 삽입합니다.",texEquation:"LaTeX 수식",texEquationDescription:"LaTeX 수식을 삽입합니다.",hyperlink:"하이퍼링크",hyperlinkDescription:"하이퍼링크를 삽입합니다.",image:"이미지",imageDescription:"이미지를 삽입합니다.",tableOfContents:"목차\n",tableOfContentsDescription:"현재 커서 위치 위에 목차를 삽입합니다.",codeExample:"코드 예제",codeExampleDescription:"코드 예제를 삽입합니다.",codeExampleMatlab:"MATLAB",codeExampleMatlabDescription:"MATLAB 코드 예제를 삽입합니다.",codeExamplePlain:"일반",codeExamplePlainDescription:"일반 코드 예제를 삽입합니다.",textStyleSectionTitle:"텍스트 스타일",normal:"일반",normalDescription:"일반 텍스트 스타일을 적용합니다.",heading:"소제목 1",headingDescription:"소제목 1 스타일을 적용합니다.",heading2:"소제목 2",heading2Description:"소제목 2 스타일을 적용합니다.",heading3:"소제목 3",heading3Description:"소제목 3 스타일을 적용합니다.",title:"제목",titleDescription:"제목 스타일을 적용합니다.",bulletedList:"글머리 기호 목록",bulletedListDescription:"글머리 기호 목록 스타일을 적용합니다.",numberedList:"번호 매기기 목록",numberedListDescription:"번호 매기기 목록 스타일을 적용합니다.",runSectionTitle:"실행",runAll:"실행",runAllDescription:"모든 섹션을 실행합니다.",liveFunctionRunDescription:"활성 파일을 저장한 후 실행합니다.",pause:"일시 중지",pauseDescription:"현재 실행 중인 코드를 일시 중지하고 디버그 모드로 전환합니다.",continue:"계속",continueDescription:"실행을 계속합니다.",step:"스텝",stepDescription:"다음 라인을 실행합니다.",stop:"중지",stopDescription:"실행을 중지합니다.",breakpointsTitle:"중단점",clearAllBreakpoints:"모두 지우기",clearAllBreakpointsDescription:"모든 파일에서 모든 중단점을 지웁니다.",toggleBreakpoint:"설정/지우기",toggleBreakpointDescription:"현재 라인에 대해 중단점을 설정하거나 지웁니다.",toggleEnableBreakpoint:"사용/사용 안 함",toggleEnableBreakpointDescription:"현재 라인에 대해 사용하거나 사용하지 않습니다.",runSection:"섹션\n실행",runSectionDescription:"현재 섹션을 실행합니다.",runAndAdvance:"실행 및 진행",runAndAdvanceDescription:"현재 섹션을 실행하고 다음 섹션으로 진행합니다.",runToEnd:"끝까지 실행",runToEndDescription:"현재 섹션부터 마지막 섹션까지 실행합니다.",viewTabTitle:"보기",outputSectionTitle:"출력값",clearOutput:"모든 출력값\n 지우기",clearOutputDescription:"모든 출력값을 지웁니다.",viewSectionTitle:"보기",codeView:"출력값을\n오른쪽에 표시",codeViewDescription:"출력값을 코드 오른쪽에 표시합니다.",documentView:"출력값을\n인라인으로 표시",documentViewDescription:"출력값을 코드에 인라인으로 표시합니다.",hideCodeView:"코드\n숨기기",hideCodeViewDescription:"코드를 모두 숨깁니다.",alignRightLabel:"오른쪽 맞춤",alignRightDescription:"오른쪽으로 맞춥니다.",alignLeftLabel:"왼쪽 맞춤",alignLeftDescription:"왼쪽으로 맞춥니다.",alignCenterLabel:"가운데 맞춤",alignCenterDescription:"가운데로 맞춥니다.",control:"컨트롤",controlDescription:"슬라이더, 드롭다운 또는 기타 컨트롤을 삽입합니다.",slider:"숫자 슬라이더",sliderDescription:"숫자 슬라이더를 삽입합니다.",comboBox:"드롭다운",comboBoxDescription:"드롭다운을 삽입합니다.",embeddedAppDropDown:"작업",embeddedAppDescription:"앱을 삽입하여 작업을 수행하고 코드를 생성합니다.",my_tasks:"내 작업",fortestingonly_category:"테스트 전용",dataandvisualization_category:"데이터 및 시각화",datapreprocessing_category:"데이터 전처리",tables_category:"테이블 및 타임테이블",statsandmachinelearning_category:"통계 및 머신러닝",optim_category:"최적화",controls_category:"제어 시스템 설계 및 분석",predmaint_category:"예측 유지관리",sysid_category:"시스템 식별",spc_category:"신호 처리 및 통신",symbolic_category:"기호 수학",imaq_category:"이미지 수집",computationalfinance_category:"계산 금융",checkBox:"체크박스",checkBoxDescription:"체크박스를 삽입합니다.",editField:"편집 필드",editFieldDescription:"편집 필드를 삽입합니다.",button:"버튼",buttonDescription:"버튼을 삽입합니다."}},function(e,t,i){e.exports={genericTitle:"MATLAB 实时编辑器",saveAsLabel:"另存为...",saveAsDescription:"将当前文件保存为新文件",exportAsDialogTitle:"导出为",exportAsHTMLLabel:"导出为 HTML...",exportAsHTMLDescription:"将文档导出为 HTML 文件。",exportAsPDFLabel:"导出为 PDF...",exportAsPDFDescription:"将文档导出为 PDF 文件。",exportAsDOCXLabel:"导出为 Word...",exportAsDOCXDescription:"将文档导出为 Microsoft Word 文件。",exportAsDOCXError:"无法创建 Microsoft Word 文件。",exportAsPDFError:"无法创建 PDF 文件。",exportAsLaTeXLabel:"导出为 LaTeX...",exportAsLaTeXDescription:"将文档导出为 LaTeX 文件。",exportFolderLabel:"导出文件夹...",exportFolderDescription:"从文件夹导出所有实时脚本。",goToLabel:"转至",goToDescription:"将光标移至行、函数或节",findLabel:"查找",findDescription:"查找并替换文本",previousSectionDescription:"上一个",nextSectionDescription:"下一个",boldDescription:"粗体",italicDescription:"斜体",underlineDescription:"下划线",monospacedDescription:"等宽",refactorLabel:"重构",refactorDescription:"将所选内容转换为函数",convertFunction:"转换为函数",convertLocalFunction:"转换为局部函数",insertSectionTitle:"插入",insertTabTitle:"插入",codeSectionTitle:"代码",sectionTitle:"节",textSectionTitle:"文本",imageSectionTitle:"图像",linkSectionTitle:"链接",equationSectionTitle:"方程",code:"代码",codeDescription:"插入一行代码",text:"文本",textDescription:"插入一行文本",sectionBreak:"分节符",sectionBreakDescription:"插入分节符",equation:"方程",equationDescription:"插入方程",defaultEquation:"方程",defaultEquationDescription:"插入方程",texEquation:"LaTeX 方程",texEquationDescription:"插入 LaTeX 方程",hyperlink:"超链接",hyperlinkDescription:"插入超链接",image:"图像",imageDescription:"插入图像",tableOfContents:"目录\n",tableOfContentsDescription:"在当前光标位置之上插入目录",codeExample:"代码示例",codeExampleDescription:"插入代码示例",codeExampleMatlab:"MATLAB",codeExampleMatlabDescription:"插入 MATLAB 代码示例",codeExamplePlain:"纯文本",codeExamplePlainDescription:"插入纯文本代码示例",textStyleSectionTitle:"文本样式",normal:"普通",normalDescription:"设置为普通文本样式",heading:"标题 1",headingDescription:"设置为标题 1 样式",heading2:"标题 2",heading2Description:"设置为标题 2 样式",heading3:"标题 3",heading3Description:"设置为标题 3 样式",title:"标题",titleDescription:"设置为标题样式",bulletedList:"项目符号列表",bulletedListDescription:"设置为项目符号列表样式",numberedList:"编号列表",numberedListDescription:"设置为编号列表样式",runSectionTitle:"运行",runAll:"运行",runAllDescription:"运行所有节",liveFunctionRunDescription:"保存并运行活动文件",pause:"暂停",pauseDescription:"暂停当前正在执行的代码并进入调试模式",continue:"继续",continueDescription:"继续运行",step:"步进",stepDescription:"运行下一行",stop:"停止",stopDescription:"退出执行",breakpointsTitle:"断点",clearAllBreakpoints:"全部清除",clearAllBreakpointsDescription:"清除所有文件中的全部断点",toggleBreakpoint:"设置/清除",toggleBreakpointDescription:"设置或清除当前行上的断点",toggleEnableBreakpoint:"启用/禁用",toggleEnableBreakpointDescription:"在当前行上启用或禁用",runSection:"运行节\n",runSectionDescription:"运行当前节",runAndAdvance:"运行并前进",runAndAdvanceDescription:"运行当前节并前进到下一节",runToEnd:"运行到结束",runToEndDescription:"从当前节运行到结束节",viewTabTitle:"视图",outputSectionTitle:"输出",clearOutput:"清除所有\n输出",clearOutputDescription:"清除所有输出",viewSectionTitle:"视图",codeView:"右侧输出\n",codeViewDescription:"在代码右侧显示输出",documentView:"内嵌输出\n",documentViewDescription:"在代码中内嵌输出",hideCodeView:"隐藏代码\n",hideCodeViewDescription:"隐藏所有代码",alignRightLabel:"右对齐",alignRightDescription:"与右侧对齐",alignLeftLabel:"左对齐",alignLeftDescription:"与左侧对齐",alignCenterLabel:"居中对齐",alignCenterDescription:"与中心对齐",control:"控件",controlDescription:"插入滑块、下拉列表或其他控件",slider:"数值滑块",sliderDescription:"插入数值滑块",comboBox:"下拉列表",comboBoxDescription:"插入下拉列表",embeddedAppDropDown:"任务",embeddedAppDescription:"插入 App 以执行任务和生成代码",my_tasks:"我的任务",fortestingonly_category:"仅用于测试",dataandvisualization_category:"数据和可视化",datapreprocessing_category:"数据预处理",tables_category:"表和时间表",statsandmachinelearning_category:"统计和机器学习",optim_category:"优化",controls_category:"控制系统设计和分析",predmaint_category:"预测性维护",sysid_category:"系统辨识",spc_category:"信号处理和通信",symbolic_category:"符号数学",imaq_category:"图像采集",computationalfinance_category:"计算金融学",checkBox:"复选框",checkBoxDescription:"插入复选框",editField:"编辑字段",editFieldDescription:"插入编辑字段",button:"按钮",buttonDescription:"插入按钮"}},function(e,t,i){e.exports={root:{genericTitle:"MATLAB Live Editor",saveAsLabel:"Save As...",saveAsDescription:"Save current file to a new file",exportAsDialogTitle:"Export As",exportAsHTMLLabel:"Export to HTML...",exportAsHTMLDescription:"Exports the document to an HTML file.",exportAsPDFLabel:"Export to PDF...",exportAsPDFDescription:"Exports the document to a PDF file.",exportAsDOCXLabel:"Export to Word...",exportAsDOCXDescription:"Exports the document to a Microsoft Word file.",exportAsDOCXError:"Could not create Microsoft Word file.",exportAsPDFError:"Could not create PDF file.",exportAsLaTeXLabel:"Export to LaTeX...",exportAsLaTeXDescription:"Exports the document to a LaTeX file.",exportFolderLabel:"Export Folder...",exportFolderDescription:"Exports all live scripts from folder.",goToLabel:"Go To",goToDescription:"Move cursor to line, function, or section",findLabel:"Find",findDescription:"Find and optionally replace text",previousSectionDescription:"Previous",nextSectionDescription:"Next",boldDescription:"Bold",italicDescription:"Italic",underlineDescription:"Underline",monospacedDescription:"Monospaced",refactorLabel:"Refactor",refactorDescription:"Convert selection to function",convertFunction:"Convert to Function",convertLocalFunction:"Convert to Local Function",insertSectionTitle:"Insert",insertTabTitle:"Insert",codeSectionTitle:"Code",sectionTitle:"Section",textSectionTitle:"Text",imageSectionTitle:"Image",linkSectionTitle:"Link",equationSectionTitle:"Equation",code:"Code",codeDescription:"Insert a line of code",text:"Text",textDescription:"Insert a line of text",sectionBreak:"Section Break",sectionBreakDescription:"Insert Section Break",equation:"Equation",equationDescription:"Insert an equation",defaultEquation:"Equation",defaultEquationDescription:"Insert an equation",texEquation:"LaTeX Equation",texEquationDescription:"Insert a LaTeX equation",hyperlink:"Hyperlink",hyperlinkDescription:"Insert a hyperlink",image:"Image",imageDescription:"Insert an image",tableOfContents:"Table of\nContents",tableOfContentsDescription:"Insert the table of contents above the current cursor position",codeExample:"Code Example",codeExampleDescription:"Insert code example",codeExampleMatlab:"MATLAB",codeExampleMatlabDescription:"Insert MATLAB code example",codeExamplePlain:"Plain",codeExamplePlainDescription:"Insert plain code example",textStyleSectionTitle:"Text Style",normal:"Normal",normalDescription:"Style as normal text",heading:"Heading 1",headingDescription:"Style as heading 1",heading2:"Heading 2",heading2Description:"Style as heading 2",heading3:"Heading 3",heading3Description:"Style as heading 3",title:"Title",titleDescription:"Style as title",bulletedList:"Bulleted List",bulletedListDescription:"Style as bulleted list",numberedList:"Numbered List",numberedListDescription:"Style as numbered list",runSectionTitle:"Run",runAll:"Run",runAllDescription:"Run all sections",liveFunctionRunDescription:"Save and run the active file",pause:"Pause",pauseDescription:"Pause the currently executing code and enter debug mode",continue:"Continue",continueDescription:"Continue running",step:"Step",stepDescription:"Run next line",stop:"Stop",stopDescription:"Quit execution",breakpointsTitle:"Breakpoints",clearAllBreakpoints:"Clear All",clearAllBreakpointsDescription:"Clear all breakpoints in all files",toggleBreakpoint:"Set/Clear",toggleBreakpointDescription:"Set or clear breakpoint on current line",toggleEnableBreakpoint:"Enable/Disable",toggleEnableBreakpointDescription:"Enable or disable on current line",runSection:"Run\nSection",runSectionDescription:"Run current section",runAndAdvance:"Run and Advance",runAndAdvanceDescription:"Run current section and advance to next section",runToEnd:"Run to End",runToEndDescription:"Run from current section to end section",viewTabTitle:"View",outputSectionTitle:"Output",clearOutput:"Clear all\n output",clearOutputDescription:"Clear all output",viewSectionTitle:"View",codeView:"Output\non Right",codeViewDescription:"Display output to right of code",documentView:"Output\nInline",documentViewDescription:"Display output in line with code",hideCodeView:"Hide\nCode",hideCodeViewDescription:"Hide all code",alignRightLabel:"Align Right",alignRightDescription:"Align to the right",alignLeftLabel:"Align Left",alignLeftDescription:"Align to the left",alignCenterLabel:"Align Center",alignCenterDescription:"Align to the center",control:"Control",controlDescription:"Insert slider, drop down, or other control",slider:"Numeric Slider",sliderDescription:"Insert numeric slider",comboBox:"Drop Down",comboBoxDescription:"Insert drop down",embeddedAppDropDown:"Task",embeddedAppDescription:"Insert app to perform task and generate code",my_tasks:"My Tasks",fortestingonly_category:"For Testing Only",dataandvisualization_category:"Data and Visualization",datapreprocessing_category:"Data Preprocessing",tables_category:"Tables and Timetables",statsandmachinelearning_category:"Statistics and Machine Learning",optim_category:"Optimization",controls_category:"Control System Design and Analysis",predmaint_category:"Predictive Maintenance",sysid_category:"System Identification",spc_category:"Signal Processing and Communications",symbolic_category:"Symbolic Math",imaq_category:"Image Acquisition",computationalfinance_category:"Computational Finance",checkBox:"Check Box",checkBoxDescription:"Insert check box",editField:"Edit Field",editFieldDescription:"Insert edit field",button:"Button",buttonDescription:"Insert button"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(231),i(7990),i(752),i(398)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{constructor:function(){this._galleryTag="motwToolstrip.equationEditorTab.structures.gallery",this._galleryPopupTag="motwToolstrip.equationEditorTab.structures.galleryPopup"},buildGalleryPopup:function(){o.markStart("ToolstripLoadTime.EquationEditorStructuresGallery"),this._populateGallery(),o.markEnd("ToolstripLoadTime.EquationEditorStructuresGallery")},_populateGallery:function(){var e=this._uiBuilder;e.createGalleryPopupFromConfig(i);["superscript","frac","sqrt","subscript","subsuperscript","sumdef","intdef"].forEach((function(t){e.addGalleryItemToFavorites("motwToolstrip.equationEditorTab.structures."+t)}))},postPopulateGallery:function(){this._galleryId=this._uiBuilder.tagToId(this._galleryTag),this._galleryWidget=t.byId(this._galleryId),this._postPopulateGallery()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(1233),i(1635)],o=i.dj.d(n,(function(e,t,i){return{type:e.GALLERY_POPUP,tag:"motwToolstrip.equationEditorTab.structures.galleryPopup",galleryItemTextLineCount:1,favCategoryId:"motwToolstrip.equationEditorTab.structures.favorites",children:[{tag:"motwToolstrip.equationEditorTab.structures.favorites",type:e.GALLERY_FAVORITE_CATEGORY},{tag:"motwToolstrip.equationEditorTab.structures.script",type:e.GALLERY_CATEGORY,title:i.categoryScript,children:[{tag:"motwToolstrip.equationEditorTab.structures.superscript",type:e.GALLERY_ITEM,text:i.superscript,description:i.superscriptDescription,actionId:t.ids.INSERT_SUPERSCRIPT,icon:"gallerySuperscript"},{tag:"motwToolstrip.equationEditorTab.structures.subscript",type:e.GALLERY_ITEM,text:i.subscript,description:i.subscriptDescription,actionId:t.ids.INSERT_SUBSCRIPT,icon:"gallerySubscript"},{tag:"motwToolstrip.equationEditorTab.structures.subsuperscript",type:e.GALLERY_ITEM,text:i.subsuperscript,description:i.subsuperscriptDescription,actionId:t.ids.INSERT_SUBSUPERSCRIPT,icon:"gallerySupersubscript"},{tag:"motwToolstrip.equationEditorTab.structures.multiscript",type:e.GALLERY_ITEM,text:i.multiscript,description:i.multiscriptDescription,actionId:t.ids.INSERT_MULTISCRIPT,icon:"galleryMultiscript"},{tag:"motwToolstrip.equationEditorTab.structures.over",type:e.GALLERY_ITEM,text:i.over,description:i.overDescription,actionId:t.ids.INSERT_OVER,icon:"galleryOver"},{tag:"motwToolstrip.equationEditorTab.structures.under",type:e.GALLERY_ITEM,text:i.under,description:i.underDescription,actionId:t.ids.INSERT_UNDER,icon:"galleryUnder"},{tag:"motwToolstrip.equationEditorTab.structures.underover",type:e.GALLERY_ITEM,text:i.underover,description:i.underoverDescription,actionId:t.ids.INSERT_UNDEROVER,icon:"galleryUnderover"}]},{tag:"motwToolstrip.equationEditorTab.structures.fractionsAndRadicals",type:e.GALLERY_CATEGORY,title:i.categoryFractionsAndRadicals,children:[{tag:"motwToolstrip.equationEditorTab.structures.frac",type:e.GALLERY_ITEM,text:i.frac,description:i.fracDescription,actionId:t.ids.INSERT_FRAC,icon:"galleryFrac"},{tag:"motwToolstrip.equationEditorTab.structures.fracbevelled",type:e.GALLERY_ITEM,text:i.fracbevelled,description:i.fracbevelledDescription,actionId:t.ids.INSERT_FRACBEVELLED,icon:"galleryFracbevelled"},{tag:"motwToolstrip.equationEditorTab.structures.fracinline",type:e.GALLERY_ITEM,text:i.fracinline,description:i.fracinlineDescription,actionId:t.ids.INSERT_FRACINLINE,icon:"galleryFracinline"},{tag:"motwToolstrip.equationEditorTab.structures.sqrt",type:e.GALLERY_ITEM,text:i.sqrt,description:i.sqrtDescription,actionId:t.ids.INSERT_SQRT,icon:"gallerySqrt"},{tag:"motwToolstrip.equationEditorTab.structures.root",type:e.GALLERY_ITEM,text:i.root,description:i.rootDescription,actionId:t.ids.INSERT_ROOT,icon:"galleryRoot"}]},{tag:"motwToolstrip.equationEditorTab.structures.operators",type:e.GALLERY_CATEGORY,title:i.categoryOperators,children:[{tag:"motwToolstrip.equationEditorTab.structures.int",type:e.GALLERY_ITEM,text:i.int,description:i.intDescription,actionId:t.ids.INSERT_INT,icon:"galleryInt"},{tag:"motwToolstrip.equationEditorTab.structures.intdef",type:e.GALLERY_ITEM,text:i.intdef,description:i.intdefDescription,actionId:t.ids.INSERT_INTDEF,icon:"galleryIntdef"},{tag:"motwToolstrip.equationEditorTab.structures.oint",type:e.GALLERY_ITEM,text:i.oint,description:i.ointDescription,actionId:t.ids.INSERT_OINT,icon:"galleryOint"},{tag:"motwToolstrip.equationEditorTab.structures.ointdef",type:e.GALLERY_ITEM,text:i.ointdef,description:i.ointdefDescription,actionId:t.ids.INSERT_OINTDEF,icon:"galleryOintdef"},{tag:"motwToolstrip.equationEditorTab.structures.sum",type:e.GALLERY_ITEM,text:i.sum,description:i.sumDescription,actionId:t.ids.INSERT_SUM,icon:"gallerySum"},{tag:"motwToolstrip.equationEditorTab.structures.sumdef",type:e.GALLERY_ITEM,text:i.sumdef,description:i.sumdefDescription,actionId:t.ids.INSERT_SUMDEF,icon:"gallerySumdef"},{tag:"motwToolstrip.equationEditorTab.structures.prod",type:e.GALLERY_ITEM,text:i.prod,description:i.prodDescription,actionId:t.ids.INSERT_PROD,icon:"galleryProd"},{tag:"motwToolstrip.equationEditorTab.structures.proddef",type:e.GALLERY_ITEM,text:i.proddef,description:i.proddefDescription,actionId:t.ids.INSERT_PRODDEF,icon:"galleryProddef"},{tag:"motwToolstrip.equationEditorTab.structures.lim",type:e.GALLERY_ITEM,text:i.lim,description:i.limDescription,actionId:t.ids.INSERT_LIM,icon:"galleryLim"}]},{tag:"motwToolstrip.equationEditorTab.structures.misc",type:e.GALLERY_CATEGORY,title:i.categoryMisc,children:[{tag:"motwToolstrip.equationEditorTab.structures.cases",type:e.GALLERY_ITEM,text:i.cases,description:i.casesDescription,actionId:t.ids.INSERT_CASES,icon:"galleryCases"},{tag:"motwToolstrip.equationEditorTab.structures.derivative",type:e.GALLERY_ITEM,text:i.derivative,description:i.derivativeDescription,actionId:t.ids.INSERT_DERIVATIVE,icon:"galleryDerivative"},{tag:"motwToolstrip.equationEditorTab.structures.derivativeN",type:e.GALLERY_ITEM,text:i.derivativeN,description:i.derivativeNDescription,actionId:t.ids.INSERT_DERIVATIVE_N_,icon:"galleryDerivativeN"},{tag:"motwToolstrip.equationEditorTab.structures.partialderivative",type:e.GALLERY_ITEM,text:i.partialderivative,description:i.partialderivativeDescription,actionId:t.ids.INSERT_PARTIALDERIVATIVE,icon:"galleryPartialDerivative"},{tag:"motwToolstrip.equationEditorTab.structures.partialderivativeN",type:e.GALLERY_ITEM,text:i.partialderivativeN,description:i.partialderivativeNDescription,actionId:t.ids.INSERT_PARTIALDERIVATIVE_N_,icon:"galleryPartialDerivativeN"}]},{tag:"motwToolstrip.equationEditorTab.structures.bracketpairs",type:e.GALLERY_CATEGORY,title:i.categoryBracketPairs,children:[{tag:"motwToolstrip.equationEditorTab.structures.parentheses",type:e.GALLERY_ITEM,text:i.parentheses,description:i.parenthesesDescription,actionId:t.ids.INSERT_PARENTHESES,icon:"galleryParentheses"},{tag:"motwToolstrip.equationEditorTab.structures.brackets",type:e.GALLERY_ITEM,text:i.brackets,description:i.bracketsDescription,actionId:t.ids.INSERT_BRACKETS,icon:"galleryBrackets"},{tag:"motwToolstrip.equationEditorTab.structures.braces",type:e.GALLERY_ITEM,text:i.braces,description:i.bracesDescription,actionId:t.ids.INSERT_BRACES,icon:"galleryBraces"},{tag:"motwToolstrip.equationEditorTab.structures.ceil",type:e.GALLERY_ITEM,text:i.ceil,description:i.ceilDescription,actionId:t.ids.INSERT_CEIL,icon:"galleryCeil"},{tag:"motwToolstrip.equationEditorTab.structures.floor",type:e.GALLERY_ITEM,text:i.floor,description:i.floorDescription,actionId:t.ids.INSERT_FLOOR,icon:"galleryFloor"},{tag:"motwToolstrip.equationEditorTab.structures.anglebracket",type:e.GALLERY_ITEM,text:i.anglebracket,description:i.anglebracketDescription,actionId:t.ids.INSERT_ANGLEBRACKET,icon:"galleryAnglebracket"},{tag:"motwToolstrip.equationEditorTab.structures.bars",type:e.GALLERY_ITEM,text:i.bars,description:i.barsDescription,actionId:t.ids.INSERT_BARS,icon:"galleryBars"},{tag:"motwToolstrip.equationEditorTab.structures.doublebars",type:e.GALLERY_ITEM,text:i.doublebars,description:i.doublebarsDescription,actionId:t.ids.INSERT_DOUBLEBARS,icon:"galleryDoublebars"}]},{tag:"motwToolstrip.equationEditorTab.structures.accents",type:e.GALLERY_CATEGORY,title:i.categoryAccents,children:[{tag:"motwToolstrip.equationEditorTab.structures.hat",type:e.GALLERY_ITEM,text:i.hat,description:i.hatDescription,actionId:t.ids.INSERT_HAT,icon:"galleryHat"},{tag:"motwToolstrip.equationEditorTab.structures.breve",type:e.GALLERY_ITEM,text:i.breve,description:i.breveDescription,actionId:t.ids.INSERT_BREVE,icon:"galleryBreve"},{tag:"motwToolstrip.equationEditorTab.structures.grave",type:e.GALLERY_ITEM,text:i.grave,description:i.graveDescription,actionId:t.ids.INSERT_GRAVE,icon:"galleryGrave"},{tag:"motwToolstrip.equationEditorTab.structures.bar",type:e.GALLERY_ITEM,text:i.bar,description:i.barDescription,actionId:t.ids.INSERT_BAR,icon:"galleryBar"},{tag:"motwToolstrip.equationEditorTab.structures.dot",type:e.GALLERY_ITEM,text:i.dot,description:i.dotDescription,actionId:t.ids.INSERT_DOT,icon:"galleryDot"},{tag:"motwToolstrip.equationEditorTab.structures.check",type:e.GALLERY_ITEM,text:i.check,description:i.checkDescription,actionId:t.ids.INSERT_CHECK,icon:"galleryCheck"},{tag:"motwToolstrip.equationEditorTab.structures.acute",type:e.GALLERY_ITEM,text:i.acute,description:i.acuteDescription,actionId:t.ids.INSERT_ACUTE,icon:"galleryAcute"},{tag:"motwToolstrip.equationEditorTab.structures.tilde",type:e.GALLERY_ITEM,text:i.tilde,description:i.tildeDescription,actionId:t.ids.INSERT_TILDE,icon:"galleryTilde"},{tag:"motwToolstrip.equationEditorTab.structures.vec",type:e.GALLERY_ITEM,text:i.vec,description:i.vecDescription,actionId:t.ids.INSERT_VEC,icon:"galleryOverrightarrow"},{tag:"motwToolstrip.equationEditorTab.structures.ddot",type:e.GALLERY_ITEM,text:i.ddot,description:i.ddotDescription,actionId:t.ids.INSERT_DDOT,icon:"galleryDdot"},{tag:"motwToolstrip.equationEditorTab.structures.widehat",type:e.GALLERY_ITEM,text:i.widehat,description:i.widehatDescription,actionId:t.ids.INSERT_WIDEHAT,icon:"galleryWidehat"},{tag:"motwToolstrip.equationEditorTab.structures.widetilde",type:e.GALLERY_ITEM,text:i.widetilde,description:i.widetildeDescription,actionId:t.ids.INSERT_WIDETILDE,icon:"galleryWidetilde"},{tag:"motwToolstrip.equationEditorTab.structures.overleftarrow",type:e.GALLERY_ITEM,text:i.overleftarrow,description:i.overleftarrowDescription,actionId:t.ids.INSERT_OVERLEFTARROW,icon:"galleryOverleftarrow"},{tag:"motwToolstrip.equationEditorTab.structures.overrightarrow",type:e.GALLERY_ITEM,text:i.overrightarrow,description:i.overrightarrowDescription,actionId:t.ids.INSERT_OVERRIGHTARROW,icon:"galleryOverrightarrow"},{tag:"motwToolstrip.equationEditorTab.structures.overleftrightarrow",type:e.GALLERY_ITEM,text:i.overleftrightarrow,description:i.overleftrightarrowDescription,actionId:t.ids.INSERT_OVERLEFTRIGHTARROW,icon:"galleryOverleftrightarrow"},{tag:"motwToolstrip.equationEditorTab.structures.overbrace",type:e.GALLERY_ITEM,text:i.overbrace,description:i.overbraceDescription,actionId:t.ids.INSERT_OVERBRACE,icon:"galleryOverbrace"},{tag:"motwToolstrip.equationEditorTab.structures.overline",type:e.GALLERY_ITEM,text:i.overline,description:i.overlineDescription,actionId:t.ids.INSERT_OVERLINE,icon:"galleryOverline"},{tag:"motwToolstrip.equationEditorTab.structures.underbrace",type:e.GALLERY_ITEM,text:i.underbrace,description:i.underbraceDescription,actionId:t.ids.INSERT_UNDERBRACE,icon:"galleryUnderbrace"},{tag:"motwToolstrip.equationEditorTab.structures.underline",type:e.GALLERY_ITEM,text:i.underline,description:i.underlineDescription,actionId:t.ids.INSERT_UNDERLINE,icon:"galleryUnderline"}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(231),i(7992),i(752),i(398)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{constructor:function(){this._galleryTag="motwToolstrip.equationEditorTab.symbols.gallery",this._galleryPopupTag="motwToolstrip.equationEditorTab.symbols.galleryPopup"},buildGalleryPopup:function(){o.markStart("ToolstripLoadTime.EquationEditorSymbolsGallery"),this._populateGallery(),o.markEnd("ToolstripLoadTime.EquationEditorSymbolsGallery")},_populateGallery:function(){var e=this._uiBuilder;e.createGalleryPopupFromConfig(i);["alpha","lambda","pi","sigma","Delta","Lambda","infty","nabla","cdot","cdots","ddots","vdots","neq","leq","geq","approx","in"].forEach((function(t){e.addGalleryItemToFavorites("motwToolstrip.equationEditorTab.symbols."+t)}))},postPopulateGallery:function(){this._galleryId=this._uiBuilder.tagToId(this._galleryTag),this._galleryWidget=t.byId(this._galleryId),this._postPopulateGallery()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(1233),i(1635)],o=i.dj.d(n,(function(e,t,i){return{type:e.GALLERY_POPUP,tag:"motwToolstrip.equationEditorTab.symbols.galleryPopup",galleryItemWidth:50,galleryItemRowCount:3,galleryItemTextLineCount:0,favCategoryId:"motwToolstrip.equationEditorTab.symbols.favorites",children:[{tag:"motwToolstrip.equationEditorTab.symbols.favorites",type:e.GALLERY_FAVORITE_CATEGORY},{tag:"motwToolstrip.equationEditorTab.symbols.greekLetters",type:e.GALLERY_CATEGORY,title:i.categoryGreekLetters,children:[{tag:"motwToolstrip.equationEditorTab.symbols.alpha",type:e.GALLERY_ITEM,text:i.alpha,description:i.alphaDescription,actionId:t.ids.INSERT_ALPHA,icon:"galleryalpha"},{tag:"motwToolstrip.equationEditorTab.symbols.beta",type:e.GALLERY_ITEM,text:i.beta,description:i.betaDescription,actionId:t.ids.INSERT_BETA,icon:"gallerybeta"},{tag:"motwToolstrip.equationEditorTab.symbols.gamma",type:e.GALLERY_ITEM,text:i.gamma,description:i.gammaDescription,actionId:t.ids.INSERT_GAMMA,icon:"gallerygamma"},{tag:"motwToolstrip.equationEditorTab.symbols.delta",type:e.GALLERY_ITEM,text:i.delta,description:i.deltaDescription,actionId:t.ids.INSERT_DELTA,icon:"gallerydelta"},{tag:"motwToolstrip.equationEditorTab.symbols.epsilon",type:e.GALLERY_ITEM,text:i.epsilon,description:i.epsilonDescription,actionId:t.ids.INSERT_EPSILON,icon:"galleryepsilon"},{tag:"motwToolstrip.equationEditorTab.symbols.varepsilon",type:e.GALLERY_ITEM,text:i.varepsilon,description:i.varepsilonDescription,actionId:t.ids.INSERT_VAREPSILON,icon:"galleryvarepsilon"},{tag:"motwToolstrip.equationEditorTab.symbols.zeta",type:e.GALLERY_ITEM,text:i.zeta,description:i.zetaDescription,actionId:t.ids.INSERT_ZETA,icon:"galleryzeta"},{tag:"motwToolstrip.equationEditorTab.symbols.eta",type:e.GALLERY_ITEM,text:i.eta,description:i.etaDescription,actionId:t.ids.INSERT_ETA,icon:"galleryeta"},{tag:"motwToolstrip.equationEditorTab.symbols.theta",type:e.GALLERY_ITEM,text:i.theta,description:i.thetaDescription,actionId:t.ids.INSERT_THETA,icon:"gallerytheta"},{tag:"motwToolstrip.equationEditorTab.symbols.vartheta",type:e.GALLERY_ITEM,text:i.vartheta,description:i.varthetaDescription,actionId:t.ids.INSERT_VARTHETA,icon:"galleryvartheta"},{tag:"motwToolstrip.equationEditorTab.symbols.iota",type:e.GALLERY_ITEM,text:i.iota,description:i.iotaDescription,actionId:t.ids.INSERT_IOTA,icon:"galleryiota"},{tag:"motwToolstrip.equationEditorTab.symbols.kappa",type:e.GALLERY_ITEM,text:i.kappa,description:i.kappaDescription,actionId:t.ids.INSERT_KAPPA,icon:"gallerykappa"},{tag:"motwToolstrip.equationEditorTab.symbols.lambda",type:e.GALLERY_ITEM,text:i.lambda,description:i.lambdaDescription,actionId:t.ids.INSERT_LAMBDA,icon:"gallerylambda"},{tag:"motwToolstrip.equationEditorTab.symbols.mu",type:e.GALLERY_ITEM,text:i.mu,description:i.muDescription,actionId:t.ids.INSERT_MU,icon:"gallerymu"},{tag:"motwToolstrip.equationEditorTab.symbols.nu",type:e.GALLERY_ITEM,text:i.nu,description:i.nuDescription,actionId:t.ids.INSERT_NU,icon:"gallerynu"},{tag:"motwToolstrip.equationEditorTab.symbols.xi",type:e.GALLERY_ITEM,text:i.xi,description:i.xiDescription,actionId:t.ids.INSERT_XI,icon:"galleryxi"},{tag:"motwToolstrip.equationEditorTab.symbols.omicron",type:e.GALLERY_ITEM,text:i.omicron,description:i.omicronDescription,actionId:t.ids.INSERT_OMICRON,icon:"galleryomicron"},{tag:"motwToolstrip.equationEditorTab.symbols.pi",type:e.GALLERY_ITEM,text:i.pi,description:i.piDescription,actionId:t.ids.INSERT_PI,icon:"gallerypi"},{tag:"motwToolstrip.equationEditorTab.symbols.varpi",type:e.GALLERY_ITEM,text:i.varpi,description:i.varpiDescription,actionId:t.ids.INSERT_VARPI,icon:"galleryvarpi"},{tag:"motwToolstrip.equationEditorTab.symbols.rho",type:e.GALLERY_ITEM,text:i.rho,description:i.rhoDescription,actionId:t.ids.INSERT_RHO,icon:"galleryrho"},{tag:"motwToolstrip.equationEditorTab.symbols.varrho",type:e.GALLERY_ITEM,text:i.varrho,description:i.varrhoDescription,actionId:t.ids.INSERT_VARRHO,icon:"galleryvarrho"},{tag:"motwToolstrip.equationEditorTab.symbols.sigma",type:e.GALLERY_ITEM,text:i.sigma,description:i.sigmaDescription,actionId:t.ids.INSERT_SIGMA,icon:"gallerysigma"},{tag:"motwToolstrip.equationEditorTab.symbols.varsigma",type:e.GALLERY_ITEM,text:i.varsigma,description:i.varsigmaDescription,actionId:t.ids.INSERT_VARSIGMA,icon:"galleryvarsigma"},{tag:"motwToolstrip.equationEditorTab.symbols.tau",type:e.GALLERY_ITEM,text:i.tau,description:i.tauDescription,actionId:t.ids.INSERT_TAU,icon:"gallerytau"},{tag:"motwToolstrip.equationEditorTab.symbols.upsilon",type:e.GALLERY_ITEM,text:i.upsilon,description:i.upsilonDescription,actionId:t.ids.INSERT_UPSILON,icon:"galleryupsilon"},{tag:"motwToolstrip.equationEditorTab.symbols.phi",type:e.GALLERY_ITEM,text:i.phi,description:i.phiDescription,actionId:t.ids.INSERT_PHI,icon:"galleryphi"},{tag:"motwToolstrip.equationEditorTab.symbols.varphi",type:e.GALLERY_ITEM,text:i.varphi,description:i.varphiDescription,actionId:t.ids.INSERT_VARPHI,icon:"galleryvarphi"},{tag:"motwToolstrip.equationEditorTab.symbols.chi",type:e.GALLERY_ITEM,text:i.chi,description:i.chiDescription,actionId:t.ids.INSERT_CHI,icon:"gallerychi"},{tag:"motwToolstrip.equationEditorTab.symbols.psi",type:e.GALLERY_ITEM,text:i.psi,description:i.psiDescription,actionId:t.ids.INSERT_PSI,icon:"gallerypsi"},{tag:"motwToolstrip.equationEditorTab.symbols.omega",type:e.GALLERY_ITEM,text:i.omega,description:i.omegaDescription,actionId:t.ids.INSERT_OMEGA,icon:"galleryomega"},{tag:"motwToolstrip.equationEditorTab.symbols.Alpha",type:e.GALLERY_ITEM,text:i.Alpha,description:i.AlphaDescription,actionId:t.ids.INSERT__A_LPHA,icon:"galleryAlpha"},{tag:"motwToolstrip.equationEditorTab.symbols.Beta",type:e.GALLERY_ITEM,text:i.Beta,description:i.BetaDescription,actionId:t.ids.INSERT__B_ETA,icon:"galleryBeta"},{tag:"motwToolstrip.equationEditorTab.symbols.Gamma",type:e.GALLERY_ITEM,text:i.Gamma,description:i.GammaDescription,actionId:t.ids.INSERT__G_AMMA,icon:"galleryGamma"},{tag:"motwToolstrip.equationEditorTab.symbols.Delta",type:e.GALLERY_ITEM,text:i.Delta,description:i.DeltaDescription,actionId:t.ids.INSERT__D_ELTA,icon:"galleryDelta"},{tag:"motwToolstrip.equationEditorTab.symbols.Epsilon",type:e.GALLERY_ITEM,text:i.Epsilon,description:i.EpsilonDescription,actionId:t.ids.INSERT__E_PSILON,icon:"galleryEpsilon"},{tag:"motwToolstrip.equationEditorTab.symbols.Zeta",type:e.GALLERY_ITEM,text:i.Zeta,description:i.ZetaDescription,actionId:t.ids.INSERT__Z_ETA,icon:"galleryZeta"},{tag:"motwToolstrip.equationEditorTab.symbols.Eta",type:e.GALLERY_ITEM,text:i.Eta,description:i.EtaDescription,actionId:t.ids.INSERT__E_TA,icon:"galleryEta"},{tag:"motwToolstrip.equationEditorTab.symbols.Theta",type:e.GALLERY_ITEM,text:i.Theta,description:i.ThetaDescription,actionId:t.ids.INSERT__T_HETA,icon:"galleryTheta"},{tag:"motwToolstrip.equationEditorTab.symbols.Iota",type:e.GALLERY_ITEM,text:i.Iota,description:i.IotaDescription,actionId:t.ids.INSERT__I_OTA,icon:"galleryIota"},{tag:"motwToolstrip.equationEditorTab.symbols.Kappa",type:e.GALLERY_ITEM,text:i.Kappa,description:i.KappaDescription,actionId:t.ids.INSERT__K_APPA,icon:"galleryKappa"},{tag:"motwToolstrip.equationEditorTab.symbols.Lambda",type:e.GALLERY_ITEM,text:i.Lambda,description:i.LambdaDescription,actionId:t.ids.INSERT__L_AMBDA,icon:"galleryLambda"},{tag:"motwToolstrip.equationEditorTab.symbols.Mu",type:e.GALLERY_ITEM,text:i.Mu,description:i.MuDescription,actionId:t.ids.INSERT__M_U,icon:"galleryMu"},{tag:"motwToolstrip.equationEditorTab.symbols.Nu",type:e.GALLERY_ITEM,text:i.Nu,description:i.NuDescription,actionId:t.ids.INSERT__N_U,icon:"galleryNu"},{tag:"motwToolstrip.equationEditorTab.symbols.Xi",type:e.GALLERY_ITEM,text:i.Xi,description:i.XiDescription,actionId:t.ids.INSERT__X_I,icon:"galleryXi"},{tag:"motwToolstrip.equationEditorTab.symbols.Omicron",type:e.GALLERY_ITEM,text:i.Omicron,description:i.OmicronDescription,actionId:t.ids.INSERT__O_MICRON,icon:"galleryOmicron"},{tag:"motwToolstrip.equationEditorTab.symbols.Pi",type:e.GALLERY_ITEM,text:i.Pi,description:i.PiDescription,actionId:t.ids.INSERT__P_I,icon:"galleryPi"},{tag:"motwToolstrip.equationEditorTab.symbols.Rho",type:e.GALLERY_ITEM,text:i.Rho,description:i.RhoDescription,actionId:t.ids.INSERT__R_HO,icon:"galleryRho"},{tag:"motwToolstrip.equationEditorTab.symbols.Sigma",type:e.GALLERY_ITEM,text:i.Sigma,description:i.SigmaDescription,actionId:t.ids.INSERT__S_IGMA,icon:"gallerySigma"},{tag:"motwToolstrip.equationEditorTab.symbols.Tau",type:e.GALLERY_ITEM,text:i.Tau,description:i.TauDescription,actionId:t.ids.INSERT__T_AU,icon:"galleryTau"},{tag:"motwToolstrip.equationEditorTab.symbols.Upsilon",type:e.GALLERY_ITEM,text:i.Upsilon,description:i.UpsilonDescription,actionId:t.ids.INSERT__U_PSILON,icon:"galleryUpsilon"},{tag:"motwToolstrip.equationEditorTab.symbols.Phi",type:e.GALLERY_ITEM,text:i.Phi,description:i.PhiDescription,actionId:t.ids.INSERT__P_HI,icon:"galleryPhi"},{tag:"motwToolstrip.equationEditorTab.symbols.Chi",type:e.GALLERY_ITEM,text:i.Chi,description:i.ChiDescription,actionId:t.ids.INSERT__C_HI,icon:"galleryChi"},{tag:"motwToolstrip.equationEditorTab.symbols.Psi",type:e.GALLERY_ITEM,text:i.Psi,description:i.PsiDescription,actionId:t.ids.INSERT__P_SI,icon:"galleryPsi"},{tag:"motwToolstrip.equationEditorTab.symbols.Omega",type:e.GALLERY_ITEM,text:i.Omega,description:i.OmegaDescription,actionId:t.ids.INSERT__O_MEGA,icon:"galleryOmega"}]},{tag:"motwToolstrip.equationEditorTab.symbols.operatorSymbols",type:e.GALLERY_CATEGORY,title:i.categoryOperatorSymbols,children:[{tag:"motwToolstrip.equationEditorTab.symbols.pm",type:e.GALLERY_ITEM,text:i.pm,description:i.pmDescription,actionId:t.ids.INSERT_PM,icon:"gallerypm"},{tag:"motwToolstrip.equationEditorTab.symbols.mp",type:e.GALLERY_ITEM,text:i.mp,description:i.mpDescription,actionId:t.ids.INSERT_MP,icon:"gallerymp"},{tag:"motwToolstrip.equationEditorTab.symbols.times",type:e.GALLERY_ITEM,text:i.times,description:i.timesDescription,actionId:t.ids.INSERT_TIMES,icon:"gallerytimes"},{tag:"motwToolstrip.equationEditorTab.symbols.div",type:e.GALLERY_ITEM,text:i.div,description:i.divDescription,actionId:t.ids.INSERT_DIV,icon:"gallerydiv"},{tag:"motwToolstrip.equationEditorTab.symbols.cdot",type:e.GALLERY_ITEM,text:i.cdot,description:i.cdotDescription,actionId:t.ids.INSERT_CDOT,icon:"gallerycdot"},{tag:"motwToolstrip.equationEditorTab.symbols.ast",type:e.GALLERY_ITEM,text:i.ast,description:i.astDescription,actionId:t.ids.INSERT_AST,icon:"galleryast"},{tag:"motwToolstrip.equationEditorTab.symbols.star",type:e.GALLERY_ITEM,text:i.star,description:i.starDescription,actionId:t.ids.INSERT_STAR,icon:"gallerystar"},{tag:"motwToolstrip.equationEditorTab.symbols.dagger",type:e.GALLERY_ITEM,text:i.dagger,description:i.daggerDescription,actionId:t.ids.INSERT_DAGGER,icon:"gallerydagger"},{tag:"motwToolstrip.equationEditorTab.symbols.ddagger",type:e.GALLERY_ITEM,text:i.ddagger,description:i.ddaggerDescription,actionId:t.ids.INSERT_DDAGGER,icon:"galleryddagger"},{tag:"motwToolstrip.equationEditorTab.symbols.amalg",type:e.GALLERY_ITEM,text:i.amalg,description:i.amalgDescription,actionId:t.ids.INSERT_AMALG,icon:"galleryamalg"},{tag:"motwToolstrip.equationEditorTab.symbols.cap",type:e.GALLERY_ITEM,text:i.cap,description:i.capDescription,actionId:t.ids.INSERT_CAP,icon:"gallerycap"},{tag:"motwToolstrip.equationEditorTab.symbols.cup",type:e.GALLERY_ITEM,text:i.cup,description:i.cupDescription,actionId:t.ids.INSERT_CUP,icon:"gallerycup"},{tag:"motwToolstrip.equationEditorTab.symbols.uplus",type:e.GALLERY_ITEM,text:i.uplus,description:i.uplusDescription,actionId:t.ids.INSERT_UPLUS,icon:"galleryuplus"},{tag:"motwToolstrip.equationEditorTab.symbols.sqcap",type:e.GALLERY_ITEM,text:i.sqcap,description:i.sqcapDescription,actionId:t.ids.INSERT_SQCAP,icon:"gallerysqcap"},{tag:"motwToolstrip.equationEditorTab.symbols.sqcup",type:e.GALLERY_ITEM,text:i.sqcup,description:i.sqcupDescription,actionId:t.ids.INSERT_SQCUP,icon:"gallerysqcup"},{tag:"motwToolstrip.equationEditorTab.symbols.vee",type:e.GALLERY_ITEM,text:i.vee,description:i.veeDescription,actionId:t.ids.INSERT_VEE,icon:"galleryvee"},{tag:"motwToolstrip.equationEditorTab.symbols.wedge",type:e.GALLERY_ITEM,text:i.wedge,description:i.wedgeDescription,actionId:t.ids.INSERT_WEDGE,icon:"gallerywedge"},{tag:"motwToolstrip.equationEditorTab.symbols.setminus",type:e.GALLERY_ITEM,text:i.setminus,description:i.setminusDescription,actionId:t.ids.INSERT_SETMINUS,icon:"gallerysetminus"},{tag:"motwToolstrip.equationEditorTab.symbols.wr",type:e.GALLERY_ITEM,text:i.wr,description:i.wrDescription,actionId:t.ids.INSERT_WR,icon:"gallerywr"},{tag:"motwToolstrip.equationEditorTab.symbols.circ",type:e.GALLERY_ITEM,text:i.circ,description:i.circDescription,actionId:t.ids.INSERT_CIRC,icon:"gallerycirc"},{tag:"motwToolstrip.equationEditorTab.symbols.bullet",type:e.GALLERY_ITEM,text:i.bullet,description:i.bulletDescription,actionId:t.ids.INSERT_BULLET,icon:"gallerybullet"},{tag:"motwToolstrip.equationEditorTab.symbols.oslash",type:e.GALLERY_ITEM,text:i.oslash,description:i.oslashDescription,actionId:t.ids.INSERT_OSLASH,icon:"galleryoslash"},{tag:"motwToolstrip.equationEditorTab.symbols.odot",type:e.GALLERY_ITEM,text:i.odot,description:i.odotDescription,actionId:t.ids.INSERT_ODOT,icon:"galleryodot"},{tag:"motwToolstrip.equationEditorTab.symbols.bigcirc",type:e.GALLERY_ITEM,text:i.bigcirc,description:i.bigcircDescription,actionId:t.ids.INSERT_BIGCIRC,icon:"gallerybigcirc"},{tag:"motwToolstrip.equationEditorTab.symbols.bigtriangleup",type:e.GALLERY_ITEM,text:i.bigtriangleup,description:i.bigtriangleupDescription,actionId:t.ids.INSERT_BIGTRIANGLEUP,icon:"gallerybigtriangleup"},{tag:"motwToolstrip.equationEditorTab.symbols.bigtriangledown",type:e.GALLERY_ITEM,text:i.bigtriangledown,description:i.bigtriangledownDescription,actionId:t.ids.INSERT_BIGTRIANGLEDOWN,icon:"gallerybigtriangledown"},{tag:"motwToolstrip.equationEditorTab.symbols.triangleleft",type:e.GALLERY_ITEM,text:i.triangleleft,description:i.triangleleftDescription,actionId:t.ids.INSERT_TRIANGLELEFT,icon:"gallerytriangleleft"},{tag:"motwToolstrip.equationEditorTab.symbols.triangleright",type:e.GALLERY_ITEM,text:i.triangleright,description:i.trianglerightDescription,actionId:t.ids.INSERT_TRIANGLERIGHT,icon:"gallerytriangleright"},{tag:"motwToolstrip.equationEditorTab.symbols.oplus",type:e.GALLERY_ITEM,text:i.oplus,description:i.oplusDescription,actionId:t.ids.INSERT_OPLUS,icon:"galleryoplus"},{tag:"motwToolstrip.equationEditorTab.symbols.ominus",type:e.GALLERY_ITEM,text:i.ominus,description:i.ominusDescription,actionId:t.ids.INSERT_OMINUS,icon:"galleryominus"},{tag:"motwToolstrip.equationEditorTab.symbols.otimes",type:e.GALLERY_ITEM,text:i.otimes,description:i.otimesDescription,actionId:t.ids.INSERT_OTIMES,icon:"galleryotimes"},{tag:"motwToolstrip.equationEditorTab.symbols.bot",type:e.GALLERY_ITEM,text:i.bot,description:i.botDescription,actionId:t.ids.INSERT_BOT,icon:"gallerybot"},{tag:"motwToolstrip.equationEditorTab.symbols.top",type:e.GALLERY_ITEM,text:i.top,description:i.topDescription,actionId:t.ids.INSERT_TOP,icon:"gallerytop"},{tag:"motwToolstrip.equationEditorTab.symbols.sumop",type:e.GALLERY_ITEM,text:i.sumop,description:i.sumopDescription,actionId:t.ids.INSERT_SUMOP,icon:"gallerysumop"},{tag:"motwToolstrip.equationEditorTab.symbols.prodop",type:e.GALLERY_ITEM,text:i.prodop,description:i.prodopDescription,actionId:t.ids.INSERT_PRODOP,icon:"galleryprodop"},{tag:"motwToolstrip.equationEditorTab.symbols.intop",type:e.GALLERY_ITEM,text:i.intop,description:i.intopDescription,actionId:t.ids.INSERT_INTOP,icon:"galleryintop"},{tag:"motwToolstrip.equationEditorTab.symbols.ointop",type:e.GALLERY_ITEM,text:i.ointop,description:i.ointopDescription,actionId:t.ids.INSERT_OINTOP,icon:"galleryointop"},{tag:"motwToolstrip.equationEditorTab.symbols.biguplus",type:e.GALLERY_ITEM,text:i.biguplus,description:i.biguplusDescription,actionId:t.ids.INSERT_BIGUPLUS,icon:"gallerybiguplus"},{tag:"motwToolstrip.equationEditorTab.symbols.bigoplus",type:e.GALLERY_ITEM,text:i.bigoplus,description:i.bigoplusDescription,actionId:t.ids.INSERT_BIGOPLUS,icon:"gallerybigoplus"},{tag:"motwToolstrip.equationEditorTab.symbols.bigvee",type:e.GALLERY_ITEM,text:i.bigvee,description:i.bigveeDescription,actionId:t.ids.INSERT_BIGVEE,icon:"gallerybigvee"},{tag:"motwToolstrip.equationEditorTab.symbols.bigcap",type:e.GALLERY_ITEM,text:i.bigcap,description:i.bigcapDescription,actionId:t.ids.INSERT_BIGCAP,icon:"gallerybigcap"},{tag:"motwToolstrip.equationEditorTab.symbols.bigotimes",type:e.GALLERY_ITEM,text:i.bigotimes,description:i.bigotimesDescription,actionId:t.ids.INSERT_BIGOTIMES,icon:"gallerybigotimes"},{tag:"motwToolstrip.equationEditorTab.symbols.bigwedge",type:e.GALLERY_ITEM,text:i.bigwedge,description:i.bigwedgeDescription,actionId:t.ids.INSERT_BIGWEDGE,icon:"gallerybigwedge"},{tag:"motwToolstrip.equationEditorTab.symbols.bigcup",type:e.GALLERY_ITEM,text:i.bigcup,description:i.bigcupDescription,actionId:t.ids.INSERT_BIGCUP,icon:"gallerybigcup"},{tag:"motwToolstrip.equationEditorTab.symbols.bigodot",type:e.GALLERY_ITEM,text:i.bigodot,description:i.bigodotDescription,actionId:t.ids.INSERT_BIGODOT,icon:"gallerybigodot"},{tag:"motwToolstrip.equationEditorTab.symbols.bigsqcup",type:e.GALLERY_ITEM,text:i.bigsqcup,description:i.bigsqcupDescription,actionId:t.ids.INSERT_BIGSQCUP,icon:"gallerybigsqcup"}]},{tag:"motwToolstrip.equationEditorTab.symbols.relationSymbols",type:e.GALLERY_CATEGORY,title:i.categoryRelationSymbols,children:[{tag:"motwToolstrip.equationEditorTab.symbols.equiv",type:e.GALLERY_ITEM,text:i.equiv,description:i.equivDescription,actionId:t.ids.INSERT_EQUIV,icon:"galleryequiv"},{tag:"motwToolstrip.equationEditorTab.symbols.lt",type:e.GALLERY_ITEM,text:i.lt,description:i.ltDescription,actionId:t.ids.INSERT_LT,icon:"gallerylt"},{tag:"motwToolstrip.equationEditorTab.symbols.gt",type:e.GALLERY_ITEM,text:i.gt,description:i.gtDescription,actionId:t.ids.INSERT_GT,icon:"gallerygt"},{tag:"motwToolstrip.equationEditorTab.symbols.cong",type:e.GALLERY_ITEM,text:i.cong,description:i.congDescription,actionId:t.ids.INSERT_CONG,icon:"gallerycong"},{tag:"motwToolstrip.equationEditorTab.symbols.leq",type:e.GALLERY_ITEM,text:i.leq,description:i.leqDescription,actionId:t.ids.INSERT_LEQ,icon:"galleryleq"},{tag:"motwToolstrip.equationEditorTab.symbols.geq",type:e.GALLERY_ITEM,text:i.geq,description:i.geqDescription,actionId:t.ids.INSERT_GEQ,icon:"gallerygeq"},{tag:"motwToolstrip.equationEditorTab.symbols.neq",type:e.GALLERY_ITEM,text:i.neq,description:i.neqDescription,actionId:t.ids.INSERT_NEQ,icon:"galleryneq"},{tag:"motwToolstrip.equationEditorTab.symbols.prec",type:e.GALLERY_ITEM,text:i.prec,description:i.precDescription,actionId:t.ids.INSERT_PREC,icon:"galleryprec"},{tag:"motwToolstrip.equationEditorTab.symbols.succ",type:e.GALLERY_ITEM,text:i.succ,description:i.succDescription,actionId:t.ids.INSERT_SUCC,icon:"gallerysucc"},{tag:"motwToolstrip.equationEditorTab.symbols.sim",type:e.GALLERY_ITEM,text:i.sim,description:i.simDescription,actionId:t.ids.INSERT_SIM,icon:"gallerysim"},{tag:"motwToolstrip.equationEditorTab.symbols.preceq",type:e.GALLERY_ITEM,text:i.preceq,description:i.preceqDescription,actionId:t.ids.INSERT_PRECEQ,icon:"gallerypreceq"},{tag:"motwToolstrip.equationEditorTab.symbols.succeq",type:e.GALLERY_ITEM,text:i.succeq,description:i.succeqDescription,actionId:t.ids.INSERT_SUCCEQ,icon:"gallerysucceq"},{tag:"motwToolstrip.equationEditorTab.symbols.simeq",type:e.GALLERY_ITEM,text:i.simeq,description:i.simeqDescription,actionId:t.ids.INSERT_SIMEQ,icon:"gallerysimeq"},{tag:"motwToolstrip.equationEditorTab.symbols.ll",type:e.GALLERY_ITEM,text:i.ll,description:i.llDescription,actionId:t.ids.INSERT_LL,icon:"galleryll"},{tag:"motwToolstrip.equationEditorTab.symbols.gg",type:e.GALLERY_ITEM,text:i.gg,description:i.ggDescription,actionId:t.ids.INSERT_GG,icon:"gallerygg"},{tag:"motwToolstrip.equationEditorTab.symbols.approx",type:e.GALLERY_ITEM,text:i.approx,description:i.approxDescription,actionId:t.ids.INSERT_APPROX,icon:"galleryapprox"},{tag:"motwToolstrip.equationEditorTab.symbols.subset",type:e.GALLERY_ITEM,text:i.subset,description:i.subsetDescription,actionId:t.ids.INSERT_SUBSET,icon:"gallerysubset"},{tag:"motwToolstrip.equationEditorTab.symbols.supset",type:e.GALLERY_ITEM,text:i.supset,description:i.supsetDescription,actionId:t.ids.INSERT_SUPSET,icon:"gallerysupset"},{tag:"motwToolstrip.equationEditorTab.symbols.asymp",type:e.GALLERY_ITEM,text:i.asymp,description:i.asympDescription,actionId:t.ids.INSERT_ASYMP,icon:"galleryasymp"},{tag:"motwToolstrip.equationEditorTab.symbols.subseteq",type:e.GALLERY_ITEM,text:i.subseteq,description:i.subseteqDescription,actionId:t.ids.INSERT_SUBSETEQ,icon:"gallerysubseteq"},{tag:"motwToolstrip.equationEditorTab.symbols.supseteq",type:e.GALLERY_ITEM,text:i.supseteq,description:i.supseteqDescription,actionId:t.ids.INSERT_SUPSETEQ,icon:"gallerysupseteq"},{tag:"motwToolstrip.equationEditorTab.symbols.doteq",type:e.GALLERY_ITEM,text:i.doteq,description:i.doteqDescription,actionId:t.ids.INSERT_DOTEQ,icon:"gallerydoteq"},{tag:"motwToolstrip.equationEditorTab.symbols.sqsubseteq",type:e.GALLERY_ITEM,text:i.sqsubseteq,description:i.sqsubseteqDescription,actionId:t.ids.INSERT_SQSUBSETEQ,icon:"gallerysqsubseteq"},{tag:"motwToolstrip.equationEditorTab.symbols.sqsupseteq",type:e.GALLERY_ITEM,text:i.sqsupseteq,description:i.sqsupseteqDescription,actionId:t.ids.INSERT_SQSUPSETEQ,icon:"gallerysqsupseteq"},{tag:"motwToolstrip.equationEditorTab.symbols.propto",type:e.GALLERY_ITEM,text:i.propto,description:i.proptoDescription,actionId:t.ids.INSERT_PROPTO,icon:"gallerypropto"},{tag:"motwToolstrip.equationEditorTab.symbols.mid",type:e.GALLERY_ITEM,text:i.mid,description:i.midDescription,actionId:t.ids.INSERT_MID,icon:"gallerymid"},{tag:"motwToolstrip.equationEditorTab.symbols.in",type:e.GALLERY_ITEM,text:i.in,description:i.inDescription,actionId:t.ids.INSERT_IN,icon:"galleryin"},{tag:"motwToolstrip.equationEditorTab.symbols.models",type:e.GALLERY_ITEM,text:i.models,description:i.modelsDescription,actionId:t.ids.INSERT_MODELS,icon:"gallerymodels"},{tag:"motwToolstrip.equationEditorTab.symbols.parallel",type:e.GALLERY_ITEM,text:i.parallel,description:i.parallelDescription,actionId:t.ids.INSERT_PARALLEL,icon:"galleryparallel"},{tag:"motwToolstrip.equationEditorTab.symbols.notin",type:e.GALLERY_ITEM,text:i.notin,description:i.notinDescription,actionId:t.ids.INSERT_NOTIN,icon:"gallerynotin"},{tag:"motwToolstrip.equationEditorTab.symbols.perp",type:e.GALLERY_ITEM,text:i.perp,description:i.perpDescription,actionId:t.ids.INSERT_PERP,icon:"galleryperp"},{tag:"motwToolstrip.equationEditorTab.symbols.vdash",type:e.GALLERY_ITEM,text:i.vdash,description:i.vdashDescription,actionId:t.ids.INSERT_VDASH,icon:"galleryvdash"},{tag:"motwToolstrip.equationEditorTab.symbols.ni",type:e.GALLERY_ITEM,text:i.ni,description:i.niDescription,actionId:t.ids.INSERT_NI,icon:"galleryni"},{tag:"motwToolstrip.equationEditorTab.symbols.bowtie",type:e.GALLERY_ITEM,text:i.bowtie,description:i.bowtieDescription,actionId:t.ids.INSERT_BOWTIE,icon:"gallerybowtie"},{tag:"motwToolstrip.equationEditorTab.symbols.dashv",type:e.GALLERY_ITEM,text:i.dashv,description:i.dashvDescription,actionId:t.ids.INSERT_DASHV,icon:"gallerydashv"},{tag:"motwToolstrip.equationEditorTab.symbols.notlt",type:e.GALLERY_ITEM,text:i.notlt,description:i.notltDescription,actionId:t.ids.INSERT_NOTLT,icon:"gallerynotlt"},{tag:"motwToolstrip.equationEditorTab.symbols.notgt",type:e.GALLERY_ITEM,text:i.notgt,description:i.notgtDescription,actionId:t.ids.INSERT_NOTGT,icon:"gallerynotgt"},{tag:"motwToolstrip.equationEditorTab.symbols.notleq",type:e.GALLERY_ITEM,text:i.notleq,description:i.notleqDescription,actionId:t.ids.INSERT_NOTLEQ,icon:"gallerynotleq"},{tag:"motwToolstrip.equationEditorTab.symbols.notgeq",type:e.GALLERY_ITEM,text:i.notgeq,description:i.notgeqDescription,actionId:t.ids.INSERT_NOTGEQ,icon:"gallerynotgeq"},{tag:"motwToolstrip.equationEditorTab.symbols.notequiv",type:e.GALLERY_ITEM,text:i.notequiv,description:i.notequivDescription,actionId:t.ids.INSERT_NOTEQUIV,icon:"gallerynotequiv"},{tag:"motwToolstrip.equationEditorTab.symbols.notapprox",type:e.GALLERY_ITEM,text:i.notapprox,description:i.notapproxDescription,actionId:t.ids.INSERT_NOTAPPROX,icon:"gallerynotapprox"},{tag:"motwToolstrip.equationEditorTab.symbols.notcong",type:e.GALLERY_ITEM,text:i.notcong,description:i.notcongDescription,actionId:t.ids.INSERT_NOTCONG,icon:"gallerynotcong"},{tag:"motwToolstrip.equationEditorTab.symbols.notsim",type:e.GALLERY_ITEM,text:i.notsim,description:i.notsimDescription,actionId:t.ids.INSERT_NOTSIM,icon:"gallerynotsim"},{tag:"motwToolstrip.equationEditorTab.symbols.notsimeq",type:e.GALLERY_ITEM,text:i.notsimeq,description:i.notsimeqDescription,actionId:t.ids.INSERT_NOTSIMEQ,icon:"gallerynotsimeq"},{tag:"motwToolstrip.equationEditorTab.symbols.notmodels",type:e.GALLERY_ITEM,text:i.notmodels,description:i.notmodelsDescription,actionId:t.ids.INSERT_NOTMODELS,icon:"gallerynotmodels"},{tag:"motwToolstrip.equationEditorTab.symbols.notni",type:e.GALLERY_ITEM,text:i.notni,description:i.notniDescription,actionId:t.ids.INSERT_NOTNI,icon:"gallerynotni"},{tag:"motwToolstrip.equationEditorTab.symbols.notsucc",type:e.GALLERY_ITEM,text:i.notsucc,description:i.notsuccDescription,actionId:t.ids.INSERT_NOTSUCC,icon:"gallerynotsucc"},{tag:"motwToolstrip.equationEditorTab.symbols.notsucceq",type:e.GALLERY_ITEM,text:i.notsucceq,description:i.notsucceqDescription,actionId:t.ids.INSERT_NOTSUCCEQ,icon:"gallerynotsucceq"},{tag:"motwToolstrip.equationEditorTab.symbols.notprec",type:e.GALLERY_ITEM,text:i.notprec,description:i.notprecDescription,actionId:t.ids.INSERT_NOTPREC,icon:"gallerynotprec"},{tag:"motwToolstrip.equationEditorTab.symbols.notpreceq",type:e.GALLERY_ITEM,text:i.notpreceq,description:i.notpreceqDescription,actionId:t.ids.INSERT_NOTPRECEQ,icon:"gallerynotpreceq"},{tag:"motwToolstrip.equationEditorTab.symbols.notparallel",type:e.GALLERY_ITEM,text:i.notparallel,description:i.notparallelDescription,actionId:t.ids.INSERT_NOTPARALLEL,icon:"gallerynotparallel"},{tag:"motwToolstrip.equationEditorTab.symbols.notsubset",type:e.GALLERY_ITEM,text:i.notsubset,description:i.notsubsetDescription,actionId:t.ids.INSERT_NOTSUBSET,icon:"gallerynotsubset"},{tag:"motwToolstrip.equationEditorTab.symbols.notsupset",type:e.GALLERY_ITEM,text:i.notsupset,description:i.notsupsetDescription,actionId:t.ids.INSERT_NOTSUPSET,icon:"gallerynotsupset"},{tag:"motwToolstrip.equationEditorTab.symbols.notsubseteq",type:e.GALLERY_ITEM,text:i.notsubseteq,description:i.notsubseteqDescription,actionId:t.ids.INSERT_NOTSUBSETEQ,icon:"gallerynotsubseteq"},{tag:"motwToolstrip.equationEditorTab.symbols.notsupseteq",type:e.GALLERY_ITEM,text:i.notsupseteq,description:i.notsupseteqDescription,actionId:t.ids.INSERT_NOTSUPSETEQ,icon:"gallerynotsupseteq"}]},{tag:"motwToolstrip.equationEditorTab.symbols.arrows",type:e.GALLERY_CATEGORY,title:i.categoryArrows,children:[{tag:"motwToolstrip.equationEditorTab.symbols.leftarrow",type:e.GALLERY_ITEM,text:i.leftarrow,description:i.leftarrowDescription,actionId:t.ids.INSERT_LEFTARROW,icon:"galleryleftarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.rightarrow",type:e.GALLERY_ITEM,text:i.rightarrow,description:i.rightarrowDescription,actionId:t.ids.INSERT_RIGHTARROW,icon:"galleryrightarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.uparrow",type:e.GALLERY_ITEM,text:i.uparrow,description:i.uparrowDescription,actionId:t.ids.INSERT_UPARROW,icon:"galleryuparrow"},{tag:"motwToolstrip.equationEditorTab.symbols.Leftarrow",type:e.GALLERY_ITEM,text:i.Leftarrow,description:i.LeftarrowDescription,actionId:t.ids.INSERT__L_EFTARROW,icon:"galleryLeftarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.Rightarrow",type:e.GALLERY_ITEM,text:i.Rightarrow,description:i.RightarrowDescription,actionId:t.ids.INSERT__R_IGHTARROW,icon:"galleryRightarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.Uparrow",type:e.GALLERY_ITEM,text:i.Uparrow,description:i.UparrowDescription,actionId:t.ids.INSERT__U_PARROW,icon:"galleryUparrow"},{tag:"motwToolstrip.equationEditorTab.symbols.longleftarrow",type:e.GALLERY_ITEM,text:i.longleftarrow,description:i.longleftarrowDescription,actionId:t.ids.INSERT_LONGLEFTARROW,icon:"gallerylongleftarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.longrightarrow",type:e.GALLERY_ITEM,text:i.longrightarrow,description:i.longrightarrowDescription,actionId:t.ids.INSERT_LONGRIGHTARROW,icon:"gallerylongrightarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.downarrow",type:e.GALLERY_ITEM,text:i.downarrow,description:i.downarrowDescription,actionId:t.ids.INSERT_DOWNARROW,icon:"gallerydownarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.Longleftarrow",type:e.GALLERY_ITEM,text:i.Longleftarrow,description:i.LongleftarrowDescription,actionId:t.ids.INSERT__L_ONGLEFTARROW,icon:"galleryLongleftarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.Longrightarrow",type:e.GALLERY_ITEM,text:i.Longrightarrow,description:i.LongrightarrowDescription,actionId:t.ids.INSERT__L_ONGRIGHTARROW,icon:"galleryLongrightarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.Downarrow",type:e.GALLERY_ITEM,text:i.Downarrow,description:i.DownarrowDescription,actionId:t.ids.INSERT__D_OWNARROW,icon:"galleryDownarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.hookleftarrow",type:e.GALLERY_ITEM,text:i.hookleftarrow,description:i.hookleftarrowDescription,actionId:t.ids.INSERT_HOOKLEFTARROW,icon:"galleryhookleftarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.hookrightarrow",type:e.GALLERY_ITEM,text:i.hookrightarrow,description:i.hookrightarrowDescription,actionId:t.ids.INSERT_HOOKRIGHTARROW,icon:"galleryhookrightarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.updownarrow",type:e.GALLERY_ITEM,text:i.updownarrow,description:i.updownarrowDescription,actionId:t.ids.INSERT_UPDOWNARROW,icon:"galleryupdownarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.leftharpoondown",type:e.GALLERY_ITEM,text:i.leftharpoondown,description:i.leftharpoondownDescription,actionId:t.ids.INSERT_LEFTHARPOONDOWN,icon:"galleryleftharpoondown"},{tag:"motwToolstrip.equationEditorTab.symbols.rightharpoondown",type:e.GALLERY_ITEM,text:i.rightharpoondown,description:i.rightharpoondownDescription,actionId:t.ids.INSERT_RIGHTHARPOONDOWN,icon:"galleryrightharpoondown"},{tag:"motwToolstrip.equationEditorTab.symbols.Updownarrow",type:e.GALLERY_ITEM,text:i.Updownarrow,description:i.UpdownarrowDescription,actionId:t.ids.INSERT__U_PDOWNARROW,icon:"galleryUpdownarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.leftharpoonup",type:e.GALLERY_ITEM,text:i.leftharpoonup,description:i.leftharpoonupDescription,actionId:t.ids.INSERT_LEFTHARPOONUP,icon:"galleryleftharpoonup"},{tag:"motwToolstrip.equationEditorTab.symbols.rightharpoonup",type:e.GALLERY_ITEM,text:i.rightharpoonup,description:i.rightharpoonupDescription,actionId:t.ids.INSERT_RIGHTHARPOONUP,icon:"galleryrightharpoonup"},{tag:"motwToolstrip.equationEditorTab.symbols.leftrightarrow",type:e.GALLERY_ITEM,text:i.leftrightarrow,description:i.leftrightarrowDescription,actionId:t.ids.INSERT_LEFTRIGHTARROW,icon:"galleryleftrightarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.swarrow",type:e.GALLERY_ITEM,text:i.swarrow,description:i.swarrowDescription,actionId:t.ids.INSERT_SWARROW,icon:"galleryswarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.nearrow",type:e.GALLERY_ITEM,text:i.nearrow,description:i.nearrowDescription,actionId:t.ids.INSERT_NEARROW,icon:"gallerynearrow"},{tag:"motwToolstrip.equationEditorTab.symbols.Leftrightarrow",type:e.GALLERY_ITEM,text:i.Leftrightarrow,description:i.LeftrightarrowDescription,actionId:t.ids.INSERT__L_EFTRIGHTARROW,icon:"galleryLeftrightarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.nwarrow",type:e.GALLERY_ITEM,text:i.nwarrow,description:i.nwarrowDescription,actionId:t.ids.INSERT_NWARROW,icon:"gallerynwarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.searrow",type:e.GALLERY_ITEM,text:i.searrow,description:i.searrowDescription,actionId:t.ids.INSERT_SEARROW,icon:"gallerysearrow"},{tag:"motwToolstrip.equationEditorTab.symbols.longleftrightarrow",type:e.GALLERY_ITEM,text:i.longleftrightarrow,description:i.longleftrightarrowDescription,actionId:t.ids.INSERT_LONGLEFTRIGHTARROW,icon:"gallerylongleftrightarrow"},{tag:"motwToolstrip.equationEditorTab.symbols.mapsto",type:e.GALLERY_ITEM,text:i.mapsto,description:i.mapstoDescription,actionId:t.ids.INSERT_MAPSTO,icon:"gallerymapsto"},{tag:"motwToolstrip.equationEditorTab.symbols.longmapsto",type:e.GALLERY_ITEM,text:i.longmapsto,description:i.longmapstoDescription,actionId:t.ids.INSERT_LONGMAPSTO,icon:"gallerylongmapsto"},{tag:"motwToolstrip.equationEditorTab.symbols.Longleftrightarrow",type:e.GALLERY_ITEM,text:i.Longleftrightarrow,description:i.LongleftrightarrowDescription,actionId:t.ids.INSERT__L_ONGLEFTRIGHTARROW,icon:"galleryLongleftrightarrow"}]},{tag:"motwToolstrip.equationEditorTab.symbols.brackets",type:e.GALLERY_CATEGORY,title:i.categoryBrackets,children:[{tag:"motwToolstrip.equationEditorTab.symbols.lbrace",type:e.GALLERY_ITEM,text:i.lbrace,description:i.lbraceDescription,actionId:t.ids.INSERT_LBRACE,icon:"gallerylbrace"},{tag:"motwToolstrip.equationEditorTab.symbols.rbrace",type:e.GALLERY_ITEM,text:i.rbrace,description:i.rbraceDescription,actionId:t.ids.INSERT_RBRACE,icon:"galleryrbrace"},{tag:"motwToolstrip.equationEditorTab.symbols.vert",type:e.GALLERY_ITEM,text:i.vert,description:i.vertDescription,actionId:t.ids.INSERT_VERT,icon:"galleryvert"},{tag:"motwToolstrip.equationEditorTab.symbols.lbrack",type:e.GALLERY_ITEM,text:i.lbrack,description:i.lbrackDescription,actionId:t.ids.INSERT_LBRACK,icon:"gallerylbrack"},{tag:"motwToolstrip.equationEditorTab.symbols.rbrack",type:e.GALLERY_ITEM,text:i.rbrack,description:i.rbrackDescription,actionId:t.ids.INSERT_RBRACK,icon:"galleryrbrack"},{tag:"motwToolstrip.equationEditorTab.symbols.Vert",type:e.GALLERY_ITEM,text:i.Vert,description:i.VertDescription,actionId:t.ids.INSERT__V_ERT,icon:"galleryVert"},{tag:"motwToolstrip.equationEditorTab.symbols.langle",type:e.GALLERY_ITEM,text:i.langle,description:i.langleDescription,actionId:t.ids.INSERT_LANGLE,icon:"gallerylangle"},{tag:"motwToolstrip.equationEditorTab.symbols.rangle",type:e.GALLERY_ITEM,text:i.rangle,description:i.rangleDescription,actionId:t.ids.INSERT_RANGLE,icon:"galleryrangle"},{tag:"motwToolstrip.equationEditorTab.symbols.backslash",type:e.GALLERY_ITEM,text:i.backslash,description:i.backslashDescription,actionId:t.ids.INSERT_BACKSLASH,icon:"gallerybackslash"},{tag:"motwToolstrip.equationEditorTab.symbols.lceil",type:e.GALLERY_ITEM,text:i.lceil,description:i.lceilDescription,actionId:t.ids.INSERT_LCEIL,icon:"gallerylceil"},{tag:"motwToolstrip.equationEditorTab.symbols.rceil",type:e.GALLERY_ITEM,text:i.rceil,description:i.rceilDescription,actionId:t.ids.INSERT_RCEIL,icon:"galleryrceil"},{tag:"motwToolstrip.equationEditorTab.symbols.lfloor",type:e.GALLERY_ITEM,text:i.lfloor,description:i.lfloorDescription,actionId:t.ids.INSERT_LFLOOR,icon:"gallerylfloor"},{tag:"motwToolstrip.equationEditorTab.symbols.rfloor",type:e.GALLERY_ITEM,text:i.rfloor,description:i.rfloorDescription,actionId:t.ids.INSERT_RFLOOR,icon:"galleryrfloor"}]},{tag:"motwToolstrip.equationEditorTab.symbols.miscSymbols",type:e.GALLERY_CATEGORY,title:i.categoryMiscSymbols,children:[{tag:"motwToolstrip.equationEditorTab.symbols.aleph",type:e.GALLERY_ITEM,text:i.aleph,description:i.alephDescription,actionId:t.ids.INSERT_ALEPH,icon:"galleryaleph"},{tag:"motwToolstrip.equationEditorTab.symbols.infty",type:e.GALLERY_ITEM,text:i.infty,description:i.inftyDescription,actionId:t.ids.INSERT_INFTY,icon:"galleryinfty"},{tag:"motwToolstrip.equationEditorTab.symbols.forall",type:e.GALLERY_ITEM,text:i.forall,description:i.forallDescription,actionId:t.ids.INSERT_FORALL,icon:"galleryforall"},{tag:"motwToolstrip.equationEditorTab.symbols.wp",type:e.GALLERY_ITEM,text:i.wp,description:i.wpDescription,actionId:t.ids.INSERT_WP,icon:"gallerywp"},{tag:"motwToolstrip.equationEditorTab.symbols.nabla",type:e.GALLERY_ITEM,text:i.nabla,description:i.nablaDescription,actionId:t.ids.INSERT_NABLA,icon:"gallerynabla"},{tag:"motwToolstrip.equationEditorTab.symbols.exists",type:e.GALLERY_ITEM,text:i.exists,description:i.existsDescription,actionId:t.ids.INSERT_EXISTS,icon:"galleryexists"},{tag:"motwToolstrip.equationEditorTab.symbols.angle",type:e.GALLERY_ITEM,text:i.angle,description:i.angleDescription,actionId:t.ids.INSERT_ANGLE,icon:"galleryangle"},{tag:"motwToolstrip.equationEditorTab.symbols.partial",type:e.GALLERY_ITEM,text:i.partial,description:i.partialDescription,actionId:t.ids.INSERT_PARTIAL,icon:"gallerypartial"},{tag:"motwToolstrip.equationEditorTab.symbols.emptyset",type:e.GALLERY_ITEM,text:i.emptyset,description:i.emptysetDescription,actionId:t.ids.INSERT_EMPTYSET,icon:"galleryemptyset"},{tag:"motwToolstrip.equationEditorTab.symbols.triangle",type:e.GALLERY_ITEM,text:i.triangle,description:i.triangleDescription,actionId:t.ids.INSERT_TRIANGLE,icon:"gallerytriangle"},{tag:"motwToolstrip.equationEditorTab.symbols.Im",type:e.GALLERY_ITEM,text:i.Im,description:i.ImDescription,actionId:t.ids.INSERT__I_M,icon:"galleryIm"},{tag:"motwToolstrip.equationEditorTab.symbols.imath",type:e.GALLERY_ITEM,text:i.imath,description:i.imathDescription,actionId:t.ids.INSERT_IMATH,icon:"galleryimath"},{tag:"motwToolstrip.equationEditorTab.symbols.hbar",type:e.GALLERY_ITEM,text:i.hbar,description:i.hbarDescription,actionId:t.ids.INSERT_HBAR,icon:"galleryhbar"},{tag:"motwToolstrip.equationEditorTab.symbols.Re",type:e.GALLERY_ITEM,text:i.Re,description:i.ReDescription,actionId:t.ids.INSERT__R_E,icon:"galleryRe"},{tag:"motwToolstrip.equationEditorTab.symbols.jmath",type:e.GALLERY_ITEM,text:i.jmath,description:i.jmathDescription,actionId:t.ids.INSERT_JMATH,icon:"galleryjmath"},{tag:"motwToolstrip.equationEditorTab.symbols.prime",type:e.GALLERY_ITEM,text:i.prime,description:i.primeDescription,actionId:t.ids.INSERT_PRIME,icon:"galleryprime"},{tag:"motwToolstrip.equationEditorTab.symbols.ldots",type:e.GALLERY_ITEM,text:i.ldots,description:i.ldotsDescription,actionId:t.ids.INSERT_LDOTS,icon:"galleryldots"},{tag:"motwToolstrip.equationEditorTab.symbols.ell",type:e.GALLERY_ITEM,text:i.ell,description:i.ellDescription,actionId:t.ids.INSERT_ELL,icon:"galleryell"},{tag:"motwToolstrip.equationEditorTab.symbols.colon",type:e.GALLERY_ITEM,text:i.colon,description:i.colonDescription,actionId:t.ids.INSERT_COLON,icon:"gallerycolon"},{tag:"motwToolstrip.equationEditorTab.symbols.cdots",type:e.GALLERY_ITEM,text:i.cdots,description:i.cdotsDescription,actionId:t.ids.INSERT_CDOTS,icon:"gallerycdots"},{tag:"motwToolstrip.equationEditorTab.symbols.neg",type:e.GALLERY_ITEM,text:i.neg,description:i.negDescription,actionId:t.ids.INSERT_NEG,icon:"galleryneg"},{tag:"motwToolstrip.equationEditorTab.symbols.ddots",type:e.GALLERY_ITEM,text:i.ddots,description:i.ddotsDescription,actionId:t.ids.INSERT_DDOTS,icon:"galleryddots"},{tag:"motwToolstrip.equationEditorTab.symbols.surd",type:e.GALLERY_ITEM,text:i.surd,description:i.surdDescription,actionId:t.ids.INSERT_SURD,icon:"gallerysurd"},{tag:"motwToolstrip.equationEditorTab.symbols.ldotp",type:e.GALLERY_ITEM,text:i.ldotp,description:i.ldotpDescription,actionId:t.ids.INSERT_LDOTP,icon:"galleryldotp"},{tag:"motwToolstrip.equationEditorTab.symbols.vdots",type:e.GALLERY_ITEM,text:i.vdots,description:i.vdotsDescription,actionId:t.ids.INSERT_VDOTS,icon:"galleryvdots"},{tag:"motwToolstrip.equationEditorTab.symbols.to",type:e.GALLERY_ITEM,text:i.to,description:i.toDescription,actionId:t.ids.INSERT_TO,icon:"galleryto"},{tag:"motwToolstrip.equationEditorTab.symbols.gets",type:e.GALLERY_ITEM,text:i.gets,description:i.getsDescription,actionId:t.ids.INSERT_GETS,icon:"gallerygets"}]}]}}),e,t),e.exports=o},function(e,t){e.exports='<div class="editorWindow liveCode" dojoAttachPoint="editorWindow" tabindex="0">\n <div class="textEditorWindow dijitInline" dojoAttachPoint="liveEditorWindow"></div>\n</div>'},function(e,t){e.exports='{\n "moduleDefs": [\n {\n "dependsOn": [],\n "provides": ["LiveCodePluginRegistry"],\n "modulePath": {\n "amd": "livecode_features/LiveCodePluginRegistryModule"\n },\n "bundle": {\n "location": "/toolbox/matlab/editor/livecode/features/release/bundle.mwBundle.livecode_features.js"\n },\n "debugLocations": {}\n }\n ]\n}\n'},function(e,t){e.exports='{\n "moduleDefs": [\n {\n "dependsOn": [],\n "provides": ["PlainCodePluginRegistry"],\n "modulePath": {\n "amd": "plaincode_features/PlainCodePluginRegistryModule"\n }\n }\n ]\n}\n'},function(e,t,i){var n,o;n=[i(209),i(233),i(7997),i(903),i(454)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return{_FILE_CATEGORY:{LIVE_MATLAB_CODE:0,PLAIN_MATLAB_CODE:1,PLAIN_TEXT:2},getPluginList:function(i){return i?this._getFullPluginList(t.getFileNameExtension(i).toLowerCase()):(e.error("no plugins retrieved because of invalid file name"),null)},getLiveEditorPluginList:function(){var e=[i.commonPlugins,i.matlabLanguagePlugins,i.mlxEditorPlugins],t=i.combinePluginLists(e);return t.setAttribute("fileEndSelectable",!0),t.setAttribute("language",o.DEFAULT_SUPPORTED_LANGUAGES.MATLAB),i.getConfiguredPluginList(t)},getPlainMatlabEditorPluginList:function(){var e=[i.commonPlugins,i.plainTextPlugins,i.matlabLanguagePlugins,i.mEditorPlugins],t=i.combinePluginLists(e);return t.setAttribute("language",o.DEFAULT_SUPPORTED_LANGUAGES.MATLAB),i.getConfiguredPluginList(t)},getPlainTextEditorPluginList:function(){var e=[i.commonPlugins,i.plainTextPlugins],t=i.combinePluginLists(e);return t.setAttribute("language",o.DEFAULT_SUPPORTED_LANGUAGES.TEXT),i.getConfiguredPluginList(t)},getFileCategory:function(i){return i?this._getFileCategory(t.getFileNameExtension(i).toLowerCase()):(e.error("no file category because of invalid file name"),null)},_getFullPluginList:function(e){var t;switch(this._getFileCategory(e)){case this._FILE_CATEGORY.LIVE_MATLAB_CODE:t=this.getLiveEditorPluginList();break;case this._FILE_CATEGORY.PLAIN_MATLAB_CODE:t=this.getPlainMatlabEditorPluginList();break;case this._FILE_CATEGORY.PLAIN_TEXT:t=this.getPlainTextEditorPluginList(e)}return t},_getFileCategory:function(e){switch(e){case n.FILE_EXTENSIONS.MLX:return this._FILE_CATEGORY.LIVE_MATLAB_CODE;case n.FILE_EXTENSIONS.M:return this._FILE_CATEGORY.PLAIN_MATLAB_CODE;default:return this._FILE_CATEGORY.PLAIN_TEXT}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(7998),i(637)],o=i.dj.d(n,(function(e,t){var i;return{_MASTER_SORT_LIST:(i={enabled:{},disabled:{}},["matlabmobile","embeddedoutputs","rtc.livecontrols","rtc.liveapps","rtc.richtext","rtc.richtext.codeexample","rtc.richtext.hyperlink","rtc.richtext.resizeimage","rtc.richtext.tableofcontents","liveeditor.embeddedoutputs.variablestringoutputhandler","liveeditor.embeddedoutputs.export.html.interactivetableoutput","liveeditor.embeddedoutputs.export.latex.interactivevariablestringoutput","liveeditor.embeddedoutputs.export.docbookxml.interactivetableoutput","liveeditor.embeddedoutputs.export.docbookxml.interactivevariablestringoutput","liveeditor.embeddedoutputs.export.html.matrixoutput","liveeditor.embeddedoutputs.export.xslfo.interactivetableoutput","liveeditor.embeddedoutputs.matrixoutputhandler","rtc.execution.range","rtc.execution.range.continue","rtc.execution.range.runall","rtc.execution.range.runsection","rtc.execution.range.runsectionadvance","rtc.execution.range.runsectionend","rtc.execution.range.step","rtc.execution.range.stepout","rtc.execution.range.runtohere","rtc.execution.range.continuetohere","presentationmode","rtc.traditionalexecutionservice","rtc.execution.traditionalrequestexecutor","rtc.execution.executionrequestfactory","rtc.execution.executiondataservice","rtc.execution.executionenabler","rtc.execution.requestexecutorfactory","rtc.embeddedoutputs.syntaxerrors","rtc.embeddedoutputs.model","execution","rtc.execution.triggers.evalonlinechange","rtc.execution.triggers.liveeval","rtc.execution.triggers.manualsection","rtc.execution.triggers.manualall","rtc.execution.executionmanager","rtc.executionandoutputscontroller","rtc.embeddedoutputs.executiondatamanager","pagination","codeanalyzer","executionmargin","rtc.code.sections.insert","matlab.code.variables.rename","rtc.autocompletions","rtc.emacsstyle.tab","rtc.cutcopypaste","rtc.smarttab","rtc.indent","matlab.code.variables.highlighting","language.interface.smartindent","rtc.helponselection","blockmatching","executioncontrols","rtc.execution.triggers","rtc.execution.interruptaction","rtc.execution.controlc","rtc.execution.range.utilities","rtc.execution.range.manager","rtc.editor.executionnotifier"].forEach((function(e,t){i.enabled[e]=t+1})),[].forEach((function(e,t){i.disabled[e]=t+1})),i),commonPlugins:new e(t.getCommonDefaultPlugins(!0).concat(["liveeditor.contentmodifiedlistener","margin.linehighlight.decorator","commoneditor.savecompletednotifier","rtc.view.smoothscrolling","rtc.print","liveeditor.opentolinecolumn","liveeditor.statusbar","externallanguagesupport","rtc.bannermanager","rtc.killline","navigationhistory","rtc.selectline.view","zoom"]),["rtc.print.printaction"]),plainTextPlugins:new e(t.getPlainTextDefaultPlugins(!0).concat(["rtc.backingstore.contentcontributor","rtc.backingstore.saveloadcontributor","rtc.editorapiservice","rtc.splitscreen","debug.documentdirtyservice","rtc.execution.actions","rtc.backgroundforegroundcolor","rtc.addlinetermination","liveeditor.backup","rtc.linehighlightmanager","rtc.navigate.find.customshortcuts","rtc.texthighlightmanager"]),[]),matlabLanguagePlugins:new e(t.getMatlabDefaultPlugins(!0).concat(["matlab.templateservice","rtc.code.codeanalyzerpreferences","executionmargin","rtc.tooltipservice","refactoringtools","execution","executioncontrols","rtc.execution.triggers","rtc.execution.interruptaction","rtc.execution.lifecycle","rtc.execution.controlc","rtc.execution.range.utilities","matlab.code.variables.variablehighlightingpreference","rtc.dataservice.functions","rtc.editoreventnotifier","rtc.editor.executionnotifier"]),["rtc.externallanguagemanager"]),mEditorPlugins:new e(["rtc.traditionalexecutionservice","rtc.execution.traditionalrequestexecutor","liveeditor.banner.openaslivescript","liveeditor.publish","debug.enabledisable","rtc.dataservice.sections.plain","rtc.datatip.matlab.preference","rtc.execution.margin.readybusyindicator"],["rtc.embeddedoutputs","rtc.smartformatting.formatter.matlab.sectionbreak.separator","rtc.smartformatting.formatter.matlab.sectionbreak.heading"]),mlxEditorPlugins:new e(["touch","matlabmobile","rtc.serializers.serialize","layoutrules","embeddedoutputs","typocorrection","rtc.alert","rtc.livecontrols","rtc.liveapps","rtc.serializers.containers.container","rtc.sectionbreak","rtc.margin.sectionbreak","rtc.code.localfunctions","rtc.richtext","rtc.richtext.lists","rtc.richtext.codeexample","rtc.richtext.hyperlink","equationrenderer","equationeditors","rtc.richtext.images","rtc.richtext.images.edit","rtc.richtext.insertimage","rtc.richtext.resizeimage","rtc.richtext.tableofcontents","rtc.smartformatting.formatters.autoformatting","rtc.diagnosticmessage","liveeditor.disablefunctionsclasses","liveeditor.smoothscrollingpreference","liveeditor.figure.toolstrip","liveeditor.embeddedoutputs.variablestringoutputhandler","liveeditor.embeddedoutputs.export.html.interactivetableoutput","liveeditor.embeddedoutputs.export.latex.interactivevariablestringoutput","liveeditor.embeddedoutputs.export.docbookxml.interactivetableoutput","liveeditor.embeddedoutputs.export.docbookxml.interactivevariablestringoutput","liveeditor.embeddedoutputs.export.html.matrixoutput","liveeditor.embeddedoutputs.export.xslfo.interactivetableoutput","livecode.saveload.withoutputs","liveeditor.saveload.forwardcompatibilty","rtc.export.output.xslfo.variablematrix","liveeditor.embeddedoutputs.matrixoutputhandler","rtc.documentation","hidecode","presentationmode","liveeditor.banner.welcomebanner","liveeditor.filename.banner","rtc.editorapiservice","rtc.dataservice.sections.rich","export","rtc.fonts.settings","liveeditor.embeddedoutputs.figurefactory","rtc.documentrenderedservice","livecodesections","commoneditor.hyperlinks.navigationcontributor","rtc.localfunctionnotifier","rtc.toplevelfunctionnotifier","rtc.export.fullfile","rtc.export.settings","rtc.export.settings.pagesettings","rtc.export.docx.serializers","rtc.exportnotifier"],["plaincodesections","folding","matlab.persistfold"]),combinePluginLists:function(t){var i=[],n=[];return t.forEach((function(e){i=i.concat(e.enabled),n=n.concat(e.disabled)})),new e(i,n)},getConfiguredPluginList:function(e){return this._sortPluginConfiguration(e)},_sortPluginConfiguration:function(e){return e.enabled.sort(function(e,t){return(this._MASTER_SORT_LIST.enabled[e]||1/0)<(this._MASTER_SORT_LIST.enabled[t]||1/0)?-1:1}.bind(this)),e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{enabled:[],disabled:[],constructor:function(e,t){this.enabled=e||[],this.disabled=t||[]},setAttribute:function(e,t){this[e]=t},getAttribute:function(e){return this[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8e3),i(1852),i(8001),i(8003),i(8005),i(8007),i(8009),i(8011),i(8014),i(8017),i(8020),i(8022),i(8024),i(8026),i(8028),i(8030),i(8032),i(8034),i(8036)],o=i.dj.d(n,(function(){return{plugins:[{id:"margin.linenumberdecorator",path:"rtc/margin/LineNumberDecoratorProvider"},{id:"debug.margin.matlab.breakpointstyler",path:"rtc/plugins/breakpoint/matlab/MatlabBreakpointStylerProvider"},{id:"rtc.debug.breadcrumbstack.navigation",path:"common_features/plugin/debug/EditorBreadcrumbNavigationProvider",family:"executioncontrols",isSharedPlugin:!0},{id:"liveeditor.opentolinecolumn",path:"common_features/plugin/OpenToLineColumnProvider",isSharedPlugin:!0},{id:"commoneditor.savecompletednotifier",path:"common_features/plugin/savecompletednotifier/SaveCompletedNotifierProvider",isSharedPlugin:!0},{id:"commoneditor.navigationhistory.navigationpoints",path:"common_features/plugin/navigationhistory/NavigationPluginProvider",family:"navigationhistory"},{id:"commoneditor.navigationhistory.navigationmodel",path:"common_features/plugin/navigationhistory/NavigationModelProvider",family:"navigationhistory",isSharedPlugin:!0},{id:"commoneditor.navigationhistory.navigationstack",path:"common_features/plugin/navigationhistory/NavigationStackProvider",family:"navigationhistory",isSharedPlugin:!0},{id:"commoneditor.navigationhistory.cursorstack",path:"common_features/plugin/navigationhistory/NavigationCursorStackProvider",family:"navigationhistory",subsystem:"navigationstackcontributors",isSharedPlugin:!0},{id:"commoneditor.find.navigationcontributor",path:"common_features/plugin/navigationcontributors/FindNavigationContributorProvider",subsystem:"navigationcontributingplugins",family:"navigationhistory"},{id:"commoneditor.goto.navigationcontributor",path:"common_features/plugin/navigationcontributors/GotoNavigationContributorProvider",subsystem:"navigationcontributingplugins",family:"navigationhistory"},{id:"commoneditor.navigationhistory.navigationbuttons",path:"common_features/plugin/navigationhistory/NavigationButtonHandlerProvider",family:"navigationhistory"},{id:"commoneditor.cursor.navigationcontributor",path:"common_features/plugin/navigationcontributors/CursorNavigationContributorProvider",subsystem:"navigationcontributingplugins",family:"navigationhistory"},{id:"commoneditor.keyhandler.navigationcontributor",path:"common_features/plugin/navigationcontributors/KeyhandlerNavigationContributorProvider",subsystem:"navigationcontributingplugins",family:"navigationhistory"},{id:"commoneditor.editorapiservice.navigationcontributor",path:"common_features/plugin/navigationcontributors/EditorAPIServiceNavigationContributorProvider",subsystem:"navigationcontributingplugins",family:"navigationhistory"},{id:"commoneditor.hyperlinks.navigationcontributor",path:"common_features/plugin/navigationcontributors/HyperlinkNavigationContributorProvider",subsystem:"navigationcontributingplugins"},{id:"commoneditor.bookmarks.navigationcontributor",path:"common_features/plugin/navigationcontributors/BookmarksNavigationContributorProvider",subsystem:"navigationcontributingplugins",family:"navigationhistory"},{id:"commoneditor.opentolinecolumn.navigationcontributor",path:"common_features/plugin/navigationcontributors/OpenToLineColumnNavigationContributorProvider",subsystem:"navigationcontributingplugins",family:"navigationhistory"},{id:"commoneditor.openselection.navigationcontributor",path:"common_features/plugin/navigationcontributors/OpenSelectionNavigationContributorProvider",subsystem:"navigationcontributingplugins",family:"navigationhistory"}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2405)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.linenumberservice","rtc.cursorcontroller","rtc.linenumberpreference","rtc.linenumberdecorator.stylers"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)},priority:function(){return 3}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8002)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["debug.ddux","debug.stack.model.persistent"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(275),i(1900),i(363)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t,i){this._mvm=i||o.getInstance(),this._persistentStackModel=t},doWorkspaceChange:function(e,t){this.inherited(arguments);const i=this._persistentStackModel.getStackFrames(),n=i[e];n&&this._mvm.feval("opentoline",0,[n.getFullPath(),n.getLineNumber(),1])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8004),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.id","rtc.internaldocument","rtc.cursor","rtc.linenumberservice","rtc.view"]}},createInstance:function(){return new t(...arguments)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(668)],o=i.dj.d(n,(function(e,t,i){return e(null,{_OPEN_TO_CODE_LINE_COLUMN_PREFIX:"/liveeditor/opentolinecolumn/code/",_OPEN_TO_DOCUMENT_LINE_COLUMN_PREFIX:"/liveeditor/opentolinecolumn/document/",_LINE:"line",_COLUMN:"column",constructor:function(e,t,i,n,o){this._internalDocument=t,this._cursorWrapper=i,this._lineNumberService=n,this._viewWrapper=o,this._codeLineNamespace=this._OPEN_TO_CODE_LINE_COLUMN_PREFIX+e,this._documentLineNamespace=this._OPEN_TO_DOCUMENT_LINE_COLUMN_PREFIX+e,this._installSubscribers()},_installSubscribers:function(){t.subscribe(this._codeLineNamespace,"_openToCodeLineColumnRequest",this),t.subscribe(this._documentLineNamespace,"_openToDocumentLineColumnRequest",this)},_openToCodeLineColumnRequest:function(e){var t=e.data,n=t[this._LINE],o=t[this._COLUMN];i.gotoCodeLineColumn(this._internalDocument,this._lineNumberService,this._cursorWrapper.getCurrentInstance(),n,o,this._viewWrapper.getCurrentInstance())},_openToDocumentLineColumnRequest:function(e){var t=e.data,n=t[this._LINE],o=t[this._COLUMN];i.gotoDocumentLineColumn(this._internalDocument,this._cursorWrapper.getCurrentInstance(),n,o,this._viewWrapper.getCurrentInstance()),this.onOpenToDocumentLineColumn(n,o)},onOpenToDocumentLineColumn:function(e,t){},destroy:function(){t.unsubscribe(this._codeLineNamespace,"_openToCodeLineColumnRequest",this),t.unsubscribe(this._documentLineNamespace,"_openToDocumentLineColumnRequest",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8006),i(205)],o=i.dj.d(n,(function(e,t,i){return e(i,{requires:function(){return{createInstance:["rtc.backingstore"]}},createInstance:function(){return new t(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{_SAVE_COMPLETED_CHANNEL:"/liveeditor/events/pct_temp/onSaveCompleted",_DEBEOUNCE_TIMEOUT:50,constructor:function(e){this._backingStore=e,this._timer=null,this._setupEventListeners()},_setupEventListeners:function(){this.own(n.after(this._backingStore,"onSaveCompleted",this._handleSaveCompleted.bind(this))),this.own(n.after(this._backingStore,"onLocationUpdated",this._handleLocationUpdated.bind(this),!0))},_handleSaveCompleted:function(){const e=this._backingStore.getFilePath();this._queueNotificationEvent(e)},_handleLocationUpdated:function(e){this._queueNotificationEvent(e)},_queueNotificationEvent:function(e){this._timer&&clearTimeout(this._timer),this._timer=setTimeout(()=>{this._timer=null,this._sendEvent(e)},this._DEBEOUNCE_TIMEOUT)},_sendEvent:function(e){t.publish(this._SAVE_COMPLETED_CHANNEL,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8008)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.backingstore","commoneditor.navigationhistory.navigationstack","navigationcontributingplugins","rtc.position.controller","rtc.statestransfermanager","rtc.internaldocument","rtc.id"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(207),i(492),i(281),i(208),i(810),i(556)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([i,n],{constructor:function(e,i,n,l,c,d,u){this._filePath=o.getLongName(e),this._navigationStack=i,this._plugins=n,this._positionController=l,this._rtcStatesTransferManager=c,this._internalDocument=d,this._documentLoaded=new t,this._prevEvent=null,this.own(r.after(d,"onDocumentReset",function(){this._documentLoaded.resolve()}.bind(this))),this._navigationStack.isFirstPositionAdded()||a.isInternalRtcId(u)||(""===o.hasFileLocation(e)?this._addFirstPosition():this.whenDocumentLoaded(this._addFirstPosition.bind(this))),this._plugins.forEach((function(e){this.own(r.after(e,"emitNavigationData",function(e){e.livePosition=this._positionController.createPosition(e.node,e.offset,!0,!1);let t=!1;(e.eventType===s.KEYPRESS_EVENT||e.eventType===s.MOUSECLICK_EVENT||e.eventType===s.OPENFILE_EVENT)&&this._prevEvent&&(t=e.eventType===this._prevEvent.eventType,e.eventType===s.KEYPRESS_EVENT&&this._prevEvent.eventType===s.MOUSECLICK_EVENT&&(t=!0)),this._addPosition(e,t)}.bind(this),!0))}),this)},whenDocumentLoaded:function(e){this._documentLoaded.then(e,(function(){}))},_addFirstPosition:function(){let e=this._positionController.createPositionAtLineColumn(0,0,!0,!1),t={livePosition:e,eventType:s.OPENFILE_EVENT,node:e.node,offset:e.offset};this._rtcStatesTransferManager.hasStatesToTransfer()||this._addPosition(t,!1),this._updatePrevEvent(t)},serializePlugin:function(){return this._prevEvent?{eventType:this._prevEvent.eventType}:{}},deserializePlugin:function(e,t){t.whenAllViewsReady(function(){this._prevEvent=e}.bind(this))},_isRedundant:function(e){return!(!this._prevEvent||!this._prevEvent.livePosition)&&(e.livePosition.getLine()===this._prevEvent.livePosition.getLine()&&e.livePosition.getColumn()===this._prevEvent.livePosition.getColumn())},_updatePrevEvent:function(e){this._prevEvent={eventType:e.eventType,livePosition:e.livePosition}},_addPosition:function(e,t){if(!this._isRedundant(e)){var i=this._buildNavigationObject(e.livePosition,e.eventType,(new Date).getTime());return this._navigationStack.addToHistory(i,t),void this._updatePrevEvent(e)}this._updatePrevEvent(e),this._positionController.deletePosition(e.livePosition)},_buildNavigationObject:function(e,t,i){return{livePosition:e,eventType:t,id:i,filePath:this._filePath}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8010)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(207),i(2567)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(){this._navigationService=n.getInstance(),this._navigationService.start(),this.own(this._navigationService.on("model:update",this.updateButtons.bind(this)))},getNextPosition:function(){return this._navigationService.getNext()},getPreviousPosition:function(){return this._navigationService.getPrevious()},getPositionsByFilepath:function(e){return this._navigationService.getPositionsByFilepath(e)},getCurrentPosition:function(){return this._navigationService.getCurrentPosition()},removePositionById:function(e){this._navigationService.removePosition({uid:e})},clearPositionsByFilePath:function(e){this._navigationService.clearPositionsByFilePath(e)},updatePositionById:function(e){this._navigationService.updatePosition(e)},hasNext:function(){return this._navigationService.hasNext()},hasPrevious:function(){return this._navigationService.hasPrevious()},pushPosition:function(e){this._navigationService.addPosition(e)},updatePosition:function(e){this._navigationService.updatePosition(e)},updateButtons:function(){this.updateButtonsStatus(this.hasNext(),this.hasPrevious())},updateButtonsStatus:function(e,t){},updateFilePath:function(e,t){this._navigationService.updateFilePath(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8012)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["navigationstackcontributors","rtc.backingstore","commoneditor.navigationhistory.navigationmodel"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(232),i(208),i(207),i(8013),i(281)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(n,{constructor:function(e,t,n){this._plugins=e,this._navigationModel=n,this._stacks={},this._backingStore=t,this._isFirstPositionAdded=null,this._filePath=r.getLongName(t),this._plugins.forEach(function(e){this._stacks[e.getType()]=e}.bind(this)),this.own(i.after(t,"onLocationUpdated",function(){let e=r.getLongName(t);this._navigationModel.updateFilePath(this._filePath,e)}.bind(this)))},isFirstPositionAdded:function(){return this._isFirstPositionAdded},addToHistory:function(e,t){e&&"eventType"in e&&e.eventType in o&&o[e.eventType]in this._stacks&&(this._stacks[o[e.eventType]].addToHistory(e,t),this._isFirstPositionAdded||(this._isFirstPositionAdded=!0))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2569),i(556)],o=i.dj.d(n,(function(e,t){return{[t.FIND_EVENT]:e.CURSOR,[t.KEYPRESS_EVENT]:e.CURSOR,[t.MOUSECLICK_EVENT]:e.CURSOR,[t.GOTO_EVENT]:e.CURSOR,[t.OPENFILE_EVENT]:e.CURSOR,[t.DEBUG_EVENT]:e.CURSOR,[t.HYPERLINK_EVENT]:e.CURSOR,[t.BOOKMARKS_EVENT]:e.CURSOR}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8015)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["commoneditor.navigationhistory.navigationmodel","rtc.position.controller"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207),i(492),i(8016),i(2569)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,n,i],{constructor:function(e,t){this._navigationModel=e,this._positionController=t,this._navObjects=[],this._filePath="",this._isSerialized=!1},getType:function(){return o.CURSOR},addToHistory:function(e,t){""===this._filePath&&(this._filePath=e.filePath),this._attachListener(e.livePosition,e.id),this.inherited(arguments)},serializePlugin:function(){return this._isSerialized=!0,this._navObjects.map((function(e){var t=e.livePosition;return{data:{eventType:e.eventType,lineColumn:t.getLineColumn(),id:e.id}}}))},deserializePlugin:function(e,t){t.whenAllViewsReady(function(){this.reconstructLivePositionInstances(e),this._isSerialized=!1}.bind(this))},reconstructLivePositionInstances:function(e){e.forEach((function(e){if(e.data){let t=e.data.id,i=e.data.lineColumn,n=this._positionController.createPositionAtLineColumn(i.line-1,i.column,!0,!1);this._navObjects.push(this._buildNavigationObject(n,e.data.eventType,t)),this._attachListener(n,t)}}),this)},_buildNavigationObject:function(e,t,i){return{livePosition:e,eventType:t,id:i,filePath:this._filePath}},_attachListener:function(e,t){e.addChangeListener(function(t,i){i.nodeHasChanged&&this._clearRedundantPositions(t),-1!==e.getLine()?this._updatePositionById(t,e.getLineColumn()):this.removePositionById(t)}.bind(this,t))},_clearRedundantPositions:function(e){let t;for(let i=0;i<this._navObjects.length;i++)this._navObjects[i].id===e&&(t=this._navObjects[i].livePosition);if(t)for(const i of this._navObjects)if(i.id!==e){i.livePosition.getLine()===t.getLine()&&i.livePosition.getColumn()===t.getColumn()&&this.removePositionById(i.id)}},removePositionById:function(e){this._navObjects=this._navObjects.filter(function(t){return t.id!==e||(this._positionController.deletePosition(t.livePosition),!1)}.bind(this)),this._navigationModel.removePositionById(e)},_updatePositionById:function(e,t){this._navigationModel.updatePositionById({uid:e,line:t.line,column:t.column})},_pushPositionToStack:function(e){this._navObjects.push(e),this._navigationModel.pushPosition(this._buildPositionObject(e))},_updatePositionInStack:function(e){if(this._navObjects.length>0){var t=this._navObjects.pop(),i=t.id;t.livePosition.destroy(),this._navigationModel.removePositionById(i),this._navObjects.push(e),this._navigationModel.pushPosition(this._buildPositionObject(e))}},_buildPositionObject:function(e){let t=this.inherited(arguments);return t&&(t.line=e.livePosition.getLine(),t.column=e.livePosition.getColumn(),t.filePath=e.filePath,t.uid=e.id),t},destroy:function(){this._isSerialized||this._navigationModel.clearPositionsByFilePath(this._filePath),this._navObjects.forEach(function(e){this._positionController.deletePosition(e.livePosition)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{getType:function(){throw new Error("Unimplemented method : getType")},addToHistory:function(e,t){t?this._updatePositionInStack(e):this._pushPositionToStack(e)},_pushPositionToStack:function(e){},_updatePositionToStack:function(e){},_buildPositionObject:function(e){if(e&&"object"==typeof e)return{uid:e.uid,type:this.getType()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8018)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.navigate.find.actions","rtc.cursor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(410),i(208),i(644),i(556)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t){this._cursor=t,this.own(i.after(e,"onFind",this._handleFind.bind(this),!0)),this.own(i.after(e,"onReplace",()=>{this.pushToNavigation(o.FIND_EVENT,this._cursor)}))},_handleFind:function(e,t){"onEnter"!==t&&"shortcut"!==t&&"autoFind"!==t||this.pushToNavigation(o.FIND_EVENT,this._cursor)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{emitNavigationData:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8021)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.navigate.goto","rtc.cursor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(644),i(556)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i){this.own(t.after(e,"onGotoLineColumn",()=>{this.pushToNavigation(n.GOTO_EVENT,i)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8023)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.backingstore","commoneditor.navigationhistory.navigationmodel","rtc.cursor","rtc.focusservice","rtc.settings.service"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(281),i(208),i(363)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a="matlab.editor.DisableNavigationButtons";return e(i,{constructor:function(e,t,i,s,l,c){this._actionService=e,this._navigationModel=i,this._cursor=s,this._mvm=r.getInstance(),this._backingStore=t,this._filePath=n.getLongName(t),this._settingsService=c,this._focusService=l,this._buttonsDisable=!1,e.loadActions(this._addActions()),this.own(o.after(this._navigationModel,"updateButtonsStatus",this._updateButtonsStatus.bind(this),!0)),this.own(this._settingsService.listenToSettingChange(a,e=>{!1===e&&this._updateButtonsStatus(this._navigationModel.hasNext(),this._navigationModel.hasPrevious())}))},_addActions:function(){return[{id:"commoneditor_navigate_backward",enabled:this._navigationModel.hasPrevious(),callback:t.hitch(this,"_navigateBackward")},{id:"commoneditor_navigate_forward",enabled:this._navigationModel.hasNext(),callback:t.hitch(this,"_navigateForward")}]},_navigateBackward:function(){this._setFocus(),this._navigateToPosition(this._navigationModel.getPreviousPosition())},_navigateForward:function(){this._setFocus(),this._navigateToPosition(this._navigationModel.getNextPosition())},_setFocus:function(){this._focusService&&!this._focusService.hasFocus()&&this._focusService.setFocus()},_navigateToPosition:function(e){e&&(e.filePath===this._filePath?this._cursor.setLineColumn(e.line,e.column,!0):(this._updateButtonsStatus(!1,!1),this._buttonsDisable=!0,this._settingsService.setSetting(a,!0),this._mvm.feval("opentoline",0,[e.filePath,e.line,e.column]).then(function(){this._buttonsDisable=!1,this._settingsService.setSetting(a,!1)}.bind(this))))},_updateButtonsStatus:function(e,t){this._buttonsDisable||(this._actionService.updateAction("commoneditor_navigate_forward",{enabled:e}),this._actionService.updateAction("commoneditor_navigate_backward",{enabled:t}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8025)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursorcontroller"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(644),i(556)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this.own(t.after(e,"onMouseDown",()=>{this.pushToNavigation(n.MOUSECLICK_EVENT,e.getCursor())}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8027)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.keyhandler","rtc.cursor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(410),i(208),i(644),i(556)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,n){this._cursor=n,"onTextInput"in e&&this.own(i.after(e,"onTextInput",t(()=>{this.pushToNavigation(o.KEYPRESS_EVENT,n)},50)))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8029)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.editorapiservice","rtc.cursor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(644),i(556)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i){this._cursor=i,this.own(t.after(e,"onGotoLineColumnInDocument",()=>{this.pushToNavigation(n.OPENFILE_EVENT,this._cursor)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8031)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.internalhyperlinkservice","rtc.cursor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(410),i(208),i(644),i(556)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t){this._cursor=t,this.own(i.after(e,"onHyperlinkOpen",()=>{this.pushToNavigation(o.HYPERLINK_EVENT,this._cursor)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8033)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.navigate.bookmarks","rtc.cursor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(410),i(208),i(644),i(556)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e,t){this._cursor=t,this.own(i.after(e,"onNavigation",()=>{this.pushToNavigation(o.BOOKMARKS_EVENT,this._cursor)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8035)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["liveeditor.opentolinecolumn","rtc.cursor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(644),i(556)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i){this._cursor=i,this.own(t.after(e,"onOpenToDocumentLineColumn",()=>{this.pushToNavigation(n.GOTO_EVENT,this._cursor)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8037)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.contextualselection.openselection","rtc.cursor"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(644),i(556)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i){this._cursor=i,this.own(t.after(e,"onGotoFunctionDefinition",()=>{this.pushToNavigation(n.GOTO_EVENT,this._cursor)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(228),i(210),i(225),i(205),i(499)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=e(null,{constructor:function(e,n,o,r){this._internalDocument=e,this._scrollPane=o,this._view=r,this._listener=i.after(n,"layoutDocument",t.hitch(this,"addTags"),!0),this._listener=i.after(n,"_layoutNode",t.hitch(this,"addTags"),!0),this._listener=i.after(n,"layoutInto",t.hitch(this,"addTags"),!0),this._listener=i.after(n,"_removeNode",t.hitch(this,"addTags"),!0),this.addTags()},destroy:function(){this._listener.remove()},addTags:function(){0!==r(".rootNode",this._scrollPane).length&&(this._counter=0,this._internalDocument.root.children.forEach((function(e){e instanceof s&&(this._addTagForLineWidget(e,this._counter),this._addTagForInlineWidget(e.getInlineNode(),this._counter),this._counter++)}),this))},_addTagForLineWidget:function(e,t){var i=e.getWidget();i&&i.domNode.setAttribute("data-testid","liveAppLineWidget_"+t)},_addTagForInlineWidget:function(e,t){if(e){var i=e.getWidget();i&&(i._optionsMenuButton.domNode.setAttribute("data-testid","optionsMenuButton_"+t),i._autorunButton.domNode.setAttribute("data-testid","autorunButton_"+t))}}});return e(a,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.view.layoutmanager","rtc.scrollpane","rtc.view"]}},createInstance:function(e,t,i,n){return new l(e,t,i,n)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(221),i(207),i(205)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e(n,{constructor:function(e,t,i,n,o){this._view=e,this._documentLoadedService=t,this._embeddedOutputsView=i,this._undoredoController=n,this._uifigureHandler=o,console.log("perf plugin created"),this._emitCustomEventAfterOnScroll(),this._emitCustomEventAfterDocumentLoadedWithText(),this._emitCustomEventBeforeOutputViewToggle(),this._emitCustomEventAfterOutputViewToggle(),this._emitCustomEventAfterUndo(),this._emitCustomEventAfterRedo(),this._emitCustomEventAfterLiveAppLoad()},_emitCustomEventAfterOnScroll:function(){this.own(t.after(this._view,"onScroll",(function(){if(!i("mac")){var e=new CustomEvent("customMPoint",{detail:"ScrollCompleted"});window.dispatchEvent(e)}}),!0))},_emitCustomEventAfterDocumentLoadedWithText:function(){this.own(t.after(this._documentLoadedService,"onDocumentLoadedWithText",(function(){if(i("chrome")){var e=new CustomEvent("customMPoint",{detail:"textLoaded"});window.dispatchEvent(e)}}),!0))},_emitCustomEventBeforeOutputViewToggle:function(){this.own(t.before(this._embeddedOutputsView,"toggle",(function(){if(i("chrome")){var e=new CustomEvent("customMPoint",{detail:"startToggle"});window.dispatchEvent(e)}}),!0))},_emitCustomEventAfterOutputViewToggle:function(){this.own(t.after(this._embeddedOutputsView,"toggle",(function(){if(i("chrome")){var e=new CustomEvent("customMPoint",{detail:"endToggle"});window.dispatchEvent(e)}}),!0))},_emitCustomEventAfterUndo:function(){this.own(t.after(this._undoredoController,"undo",(function(){if(i("chrome")){var e=new CustomEvent("customMPoint",{detail:"undo"});window.dispatchEvent(e)}}),!0))},_emitCustomEventAfterRedo:function(){this.own(t.after(this._undoredoController,"redo",(function(){if(i("chrome")){var e=new CustomEvent("customMPoint",{detail:"redo"});window.dispatchEvent(e)}}),!0))},_emitCustomEventAfterLiveAppLoad:function(){this.own(t.after(this._uifigureHandler,"onLiveAppLineInitialized",(function(){var e=new CustomEvent("customMPoint",{detail:"liveAppInitialized"});window.dispatchEvent(e)}),!0))}});return e(o,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view","rtc.service.documentloaded","rtc.embeddedoutputs","rtc.undoredo.controller","rtc.liveapps.uifigurehandler"]}},createInstance:function(e,t,i,n,o){return new r(e,t,i.getEmbeddedOutputsView(),n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(221),i(207),i(205)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e(n,{constructor:function(e,t,i,n,o){this._document=e,this._documentLoadedService=t,this._view=i,this._undoredoController=n,this._codeAnalyzerPlugin=o,console.log("perf plugin created"),this._emitCustomEventAfterDocumentLoadedWithText(),this._emitCustomEventAfterSetText(),this._emitCustomEventAfterOnScroll(),this._emitCustomEventAfterUndo(),this._emitCustomEventAfterRedo(),this._emitCustomEventAfterCodeAnalyzerLoad()},_emitCustomEventAfterSetText:function(){this.own(t.after(this._document,"setText",(function(){var e=new CustomEvent("customMPoint",{detail:"setTextCompleted"});window.dispatchEvent(e)}),!0))},_emitCustomEventAfterOnScroll:function(){this.own(t.after(this._view,"onScroll",(function(){if(!i("mac")){var e=new CustomEvent("customMPoint",{detail:"ScrollCompleted"});window.dispatchEvent(e)}}),!0))},_emitCustomEventAfterDocumentLoadedWithText:function(){this.own(t.after(this._documentLoadedService,"onDocumentLoadedWithText",(function(){if(i("chrome")){var e=new CustomEvent("customMPoint",{detail:"textLoaded"});window.dispatchEvent(e)}}),!0))},_emitCustomEventAfterUndo:function(){this.own(t.after(this._undoredoController,"undo",(function(){if(i("chrome")){var e=new CustomEvent("customMPoint",{detail:"undo"});window.dispatchEvent(e)}}),!0))},_emitCustomEventAfterRedo:function(){this.own(t.after(this._undoredoController,"redo",(function(){if(i("chrome")){var e=new CustomEvent("customMPoint",{detail:"redo"});window.dispatchEvent(e)}}),!0))},_emitCustomEventAfterCodeAnalyzerLoad:function(){this.own(t.after(this._codeAnalyzerPlugin,"onUpdatesComplete",(function(){var e=new CustomEvent("customMPoint",{detail:"codeAnalyzerCssInserted"});window.dispatchEvent(e)}),!0))}});return e(o,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document","rtc.service.documentloaded","rtc.view","rtc.undoredo.controller","rtc.code.codeanalyzer"]}},createInstance:function(e,t,i,n,o){return new r(e,t,i,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(228),i(210),i(225),i(205)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=e(null,{constructor:function(e,n,o,r){this._internalDocument=e,this._scrollPane=o,this._view=r,this._listener=i.after(n,"layoutDocument",t.hitch(this,"addTags"),!0),this._listener=i.after(n,"_layoutNode",t.hitch(this,"addTags"),!0),this._listener=i.after(n,"layoutInto",t.hitch(this,"addTags"),!0),this._listener=i.after(n,"_removeNode",t.hitch(this,"addTags"),!0),this._lineCounter=0,this.addTags()},destroy:function(){this._listener.remove()},addTags:function(){0!==r(".rootNode",this._scrollPane).length&&(this._lineCounter=0,this._internalDocument.root.children.forEach((function(e){var t=this._view._viewModel.getNodeBox(e);this._addChildTag(t)}),this))},_addChildTag:function(e){if(e){if(o.contains(e,"heading-1"))n.set(e,"data-testid","RtcLine"+this._lineCounter++),n.set(e,"type","TitleLine");else if(o.contains(e,"heading-2"))n.set(e,"data-testid","RtcLine"+this._lineCounter++),n.set(e,"type","HeadingLine");else if(o.contains(e,"paragraphNode"))n.set(e,"data-testid","RtcLine"+this._lineCounter++),n.set(e,"type","NormalLine");else if(o.contains(e,"RTClistItem"))n.set(e,"data-testid","RtcLine"+this._lineCounter++),"OL"===e.parentElement.tagName?n.set(e,"type","OrderedListItem"):n.set(e,"type","UnorderedListItem");else if(o.contains(e,"lineNode"))n.set(e,"data-testid","RtcLine"+this._lineCounter++),n.set(e,"type","CodeLine");else if(e.children.length>0)for(var t=0;t<e.children.length;t+=1){var i=e.children[t];this._addChildTag(i)}}else this._lineCounter++}});return e(a,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.view.layoutmanager","rtc.scrollpane","rtc.view"]}},createInstance:function(e,t,i,n){return new s(e,t,i,n)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(228),i(210),i(225),i(205)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=e(null,{SECTION_CSS:"SectionBlock",SECTION_DATATEST_PREFIX:"RtcSection",constructor:function(e,n){this._scrollPane=n,this._listener=i.after(e,"layoutDocument",t.hitch(this,"addTags"),!0),this._listener=i.after(e,"_layoutNode",t.hitch(this,"addTags"),!0),this._listener=i.after(e,"layoutInto",t.hitch(this,"addTags"),!0),this._listener=i.after(e,"_removeNode",t.hitch(this,"addTags"),!0),this.addTags()},addTags:function(){var e=r(".rootNode",this._scrollPane);if(0!==e.length){var t=0;e=e[0];for(var i=0;i<e.children.length;i+=1){var a=e.children[i];o.contains(a,this.SECTION_CSS)&&n.set(a,"data-testid",this.SECTION_DATATEST_PREFIX+t++)}}},destroy:function(){this._listener.remove()}});return e(a,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.view.layoutmanager","rtc.scrollpane"]}},createInstance:function(e,t){return new s(e,t)},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(993),i(8044),i(8045)],o=i.dj.d(n,(function(e,t,i,n,o){return new(e(null,{constructor:function(){},getPluginsPaths:function(){return n.plugins.map((function(e){return e.path}))},cacheSettingsForFeatures:function(e,r,a,s,l){const c=new t;a=a||[];const d=["viewcore"].concat(r=r||[]),u=new o(new i(n.plugins,null,!0),d,a,s,l);u.resolve();const h=u.getDependency("rtc.settings.providers").reduce((function(e,t){return e.concat(t.getSettingKeys())}),[]);u.destroy();return e.cacheSettings(h).then((function(){c.resolve()}),(function(e){c.reject(e)})),c.promise}}))}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{plugins:[{id:"rtc.settings.provider.backgroundcolor",path:"rtc/settings/plugins/BackgroundColorSettingProvider",family:"viewcore",subsystem:"rtc.settings.providers"},{id:"rtc.settings.provider.codefoldingmargin",path:"rtc/settings/plugins/CodeFoldingMarginSettingProvider",family:"folding",subsystem:"rtc.settings.providers"},{id:"rtc.settings.provider.embeddedoutputs",path:"rtc/settings/plugins/EmbeddedOutputsSettingProvider",family:"embeddedoutputs",subsystem:"rtc.settings.providers"},{id:"rtc.settings.provider.fonts",path:"rtc/settings/plugins/FontSettingProvider",family:"rtc.preferences.fonts.code",subsystem:"rtc.settings.providers"},{id:"rtc.settings.provider.lexer",path:"rtc/settings/plugins/LexerSettingProvider",subsystem:"rtc.settings.providers"},{id:"rtc.settings.provider.linenumber",path:"rtc/settings/plugins/LineNumberSettingProvider",family:"viewcore",subsystem:"rtc.settings.providers"},{id:"rtc.settings.provider.matlabsyntaxhighlighting",path:"rtc/settings/plugins/MatlabSyntaxHighlightingSettingProvider",family:"syntaxhighlighter",subsystem:"rtc.settings.providers"},{id:"rtc.settings.provider.verticalborder",path:"rtc/settings/plugins/VerticalBorderSettingProvider",family:"verticalcodeborder",subsystem:"rtc.settings.providers"},{id:"rtc.settings.provider.runtoheremargin",path:"rtc/settings/plugins/RunToHereMarginSettingProvider",family:"executioncontrols",subsystem:"rtc.settings.providers"}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1208),i(1210)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e,t,i,n,o){this.inherited(arguments)},injectDependency:function(e,t){this._injector.injectDependency(e,t)},getRegistryBasedDependencyInjector:function(e){return this._registryBasedDependencyInjectory=new i(e),this._registryBasedDependencyInjectory}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(227),i(228),i(203),i(8047),i(219),i(292),i(304)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l="motwToolstrip.figureToolstripTab.annotations.";return n(o,{_editorView:null,constructor:function(e){this._editorView=e,this._namespace="/toolstrip/toolstriptabevent/"+e.getId(),this._uiBuilder=a.getInstance(),this._galleryID=this._uiBuilder.tagToId("motwToolstrip.figureToolstripTab.annotations.gallery")},selectTab:function(e,t){if(t.focusedFigureProperties&&!0===t.showing)this._editorView.set(s.ACTIVE_CONTEXTS,["motwToolstrip."+e]),this._updateGallery(t.focusedFigureProperties);else{var i=this._editorView.get(s.ACTIVE_CONTEXTS);i&&i.length>0&&(i=i.filter((function(t){return t!=="motwToolstrip."+e}))),this._editorView.set(s.ACTIVE_CONTEXTS,i),this._updateGallery(null)}r.publish(this._namespace,t)},_updateGallery:function(e){var t=this._formatFigureProperties(e);for(var i in t){var n=this._uiBuilder.tagToId(l+i),o=this._uiBuilder.tagToId(l+"remove"+i);n&&this._toggleSingleItem(n,t[i].valueOf()),o&&this._toggleSingleItem(o,t[i].valueOf())}this._uiBuilder.refreshGallery(this._galleryID)},_toggleSingleItem:function(e,t){this._uiBuilder.set(e,"enabled",t)},_formatFigureProperties:function(e){var t={};return Array.isArray(e)?e.forEach((function(e){if(e&&e.hasOwnProperty("supportedActions")){var i=e.supportedActions;for(var n in i)t.hasOwnProperty(n)?t[n]=t[n]&&i[n].valueOf():t[n]=i[n].valueOf()}})):e&&e.hasOwnProperty("supportedActions")&&(t=e.supportedActions),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{setVisible:function(e,t,i){throw Error("clients should override this method")},selectTab:function(e,t){throw Error("clients should override this method")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},destroy:function(){},setModified:function(){throw new Error("Unimplemented API: matlab.toolbox.matlab.codetools.liveeditor.liveeditor.plugin.filemodificationnotifier.FileModificationNotifier.setModified")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2011)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(2574)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(8052)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.integration.toolstrip.executionbuttontags","matlab.services.batchedbusyidle","rtc.integration.service.editorservice","rtc.integration.toolstrip.creationnotifier"]}},createInstance:function(e,t,o,r){var a=i.getInstance();return new n(e,t,o,a,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(207),i(208),i(2575),i(292)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s="RUN",l="CONTINUE",c="PAUSE";return e(n,{constructor:function(e,t,i,n,r){this._toolstripTags=e,this._busyIdleManager=t,this._editorService=i,this._debugServices=n,this._toolstripCreationNotifier=r,this._toolstripCreationNotifier.hasToolstripBeenCreated()?this._initialize():this.own(o.after(this._toolstripCreationNotifier,"onToolstripCreated",this._initialize.bind(this)))},_initialize:function(){this._initialized&&i.assert("Toolstrip initialized multiple times."),this._initialized=!0,this._setInitialState(),this.own(o.after(this._busyIdleManager,"onIdleBusyStatusChange",t.hitch(this,"_handleBusyIdleStatusChange"),!0)),this.own(o.after(this._debugServices,"onDebugModeChanged",t.hitch(this,"_handleDebugModeChanged"),!0)),this.own(o.after(this._editorService,"onActivated",t.hitch(this,"_handleActivation"),!0))},_removeButtonsIfNeeded:function(){r.isParented(this._toolstripTags.RUN)&&r.isParented(this._toolstripTags.CONTINUE)&&r.isParented(this._toolstripTags.PAUSE)&&(r.replace(this._toolstripTags.CONTINUE,null),r.replace(this._toolstripTags.PAUSE,null))},_setInitialState:function(){this._removeButtonsIfNeeded(),this._debugServices.isDebugging&&this._showContinue(),this._updateStepState(),this._busyIdleManager.isBusy()&&this._showPause(),this._debugServices.isDebugging||this._busyIdleManager.isBusy()||this._showRun()},_handleActivation:function(){_unsetRunState&&this._showTag(_unsetRunState),this._updateStepState()},_updateStepState:function(){this._debugServices.isDebugging?this._showStepButtons():this._hideStepButtons()},_handleBusyIdleStatusChange:function(e){e?this._showPause():this._debugServices.isDebugging?this._showContinue():this._showRun()},_handleDebugModeChanged:function(e){e?(this._showContinue(),this._showStepButtons()):(this._showRun(),this._hideStepButtons())},_showStepButtons:function(){if(this._shouldDelayChanges())return;const e=r.isParented(this._toolstripTags.STEP_IN),t=r.isParented(this._toolstripTags.STEP_OUT);if(e!==t&&i.assert("State of step in and step out desynced in toolstrip"),e&&t)return;var n=a.getInstance();const o=n.tagToId(this._toolstripTags.STEP_IN_OUT_COLUMN);var s=n.tagToId(this._toolstripTags.STEP_IN),l=n.tagToId(this._toolstripTags.STEP_OUT);n.add(s,o,0),n.add(l,o,1)},_hideStepButtons:function(){this._shouldDelayChanges()||(r.isParented(this._toolstripTags.STEP_IN)&&r.replace(this._toolstripTags.STEP_IN,null),r.isParented(this._toolstripTags.STEP_OUT)&&r.replace(this._toolstripTags.STEP_OUT,null))},_showRun:function(){this._showTag(s)},_showContinue:function(){this._showTag(l)},_showPause:function(){this._showTag(c)},_showTag:function(e){if(this._shouldDelayChanges())_unsetRunState=e;else{var t=this._toolstripTags[e];_unsetRunState=null;var n=this._getTagThatIsInToolstrip();n?n!==t&&r.replace(n,t):i.assert("None of Run/Continue/Pause are showing in the toolstrip")}},_getTagThatIsInToolstrip:function(){return r.isParented(this._toolstripTags.RUN)?this._toolstripTags.RUN:r.isParented(this._toolstripTags.PAUSE)?this._toolstripTags.PAUSE:r.isParented(this._toolstripTags.CONTINUE)?this._toolstripTags.CONTINUE:null},_shouldDelayChanges:function(){return this._editorService.hasActiveEditor()&&!this._editorService.isActive()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8054)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:[]}},createInstance:function(){return new i},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{hasToolstripBeenCreated:function(){return!0},onToolstripCreated:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8056)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return e},requires:function(){return{isApplicable:["rtc.integration.isJavaToolstrip"],createInstance:["rtc.id","rtc.editordataservice","rtc.view.viewportopenedservice","rtc.service.actionhover"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(219),i(1584)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{_FEATURE_ID:"toolstrip.hover",constructor:function(e,n,o,r,a){o.whenViewportOpened(t.hitch(this,(function(){n.request(this._FEATURE_ID,{}).then((function(){}),(function(){}))}))),this.messageService=a||i,this._hoverChannel="/editor/toolstrip/hover/"+e,this.messageService.subscribe(this._hoverChannel,"_handleToolstripHoverEvent",this),this._actionHoverService=r,this._actionHoverService.registerHoverNotifier(this)},destroy:function(){this.inherited(arguments),this.messageService.unsubscribe(this._hoverChannel,"_handleToolstripHoverEvent",this),this._actionHoverService.unregisterHoverNotifier(this)},_handleToolstripHoverEvent:function(e){if(e&&e.data){var t=e.data.action;e.data.isHovering?this.onHover(t):this.onHoverAway(t)}},onHover:function(e){},onHoverAway:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8058)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(e){return!e},requires:function(){return{isApplicable:["rtc.integration.isJavaToolstrip"],createInstance:["rtc.integration.toolstrip.executionbuttontags","rtc.integration.service.actionconverter","rtc.service.hover.domnodenotifierfactory","rtc.integration.service.editorservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(207),i(208),i(2575)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e,i,o,r){this._domNodeActionHoverNotifierFactory=o,this._actionConverter=i,this._initializeListeners(e),this.own(n.after(r,"onActivated",t.hitch(this,"_handleActivated"))),this.own(n.after(r,"onDeactivated",t.hitch(this,"_handleDeactivated")))},_initializeListeners:function(e){this._hoverNotifiers=Object.keys(e).map((function(t){var i=e[t],n=o.getNodeForTag(i),r=o.getActionIdForTag(i);if(n&&r){var a=this._actionConverter.getRTCActionIdFromGlobalActionId(r),s=this._domNodeActionHoverNotifierFactory.createNotifier(n,a);return s.enable(),s}return null}),this).filter((function(e){return!!e}))},_handleActivated:function(){this._hoverNotifiers.forEach((function(e){e.enable()}))},_handleDeactivated:function(){this._hoverNotifiers.forEach((function(e){e.disable()}))},destroy:function(){this.inherited(arguments),this._hoverNotifiers.forEach((function(e){e.destroy()})),this._hoverNotifiers=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(1636)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203)],o=i.dj.d(n,(function(e,t){return t(e,{constructor:function(){},getToolstripTag:function(){throw new Error("Unimplemented API: getToolstripTag")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8062)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.runconfigs.view.model","rtc.code.matlabfiletype","rtc.backingstore","rtc.functionservice","rtc.integration.service.editorservice","rtc.runconfigs.filevalidator"]}},createInstance:function(e,t,n,o,r,a){var s=r.getEditorService().fileDataService;return new i(e,t,n,o,s,a)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(233),i(208),i(281),i(8063)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,t,n,o,r,a){this._fileType=t,this._backingStore=n,this._functionService=o,this._fileValidator=a,this._ASSOCIATED_ID=this._backingStore.getAbsoluteFilePath(),this._handledFileClose=!1,this.own(i.after(r,"onFileClose",this._handleFileClose.bind(this))),this._isUntitledBuffer=this._isUntitled(),this._setDefaultExecutionExpression(),this.own(i.after(this._backingStore,"onLocationUpdated",this._handleOnLocationUpdated.bind(this),!0))},onReset:function(){},getDefaultRunConfigExpression:function(){return this._fileType.isFunction()?this._getFunctionSignature():this._fileType.isClass()?this._getFileNameWithoutExtension()+"()":this._getFileNameWithoutExtension()},getDefaultExecutionExpression:function(){return this._defaultExecutionExpression},getRunConfigsExpressions:function(){return this._isUntitledBuffer&&!this._runConfigsViewModel.hasRunConfigs()?[]:this.inherited(arguments)},_setDefaultExecutionExpression:function(){this._defaultExecutionExpression=this._getFileNameWithoutExtension()},_isUntitled:function(){return!n.hasFileLocation(this._backingStore)},_getFunctionSignature:function(){var e="",t=this._getFileNameWithoutExtension(),i=this._functionService.getMainFunctionDeclaration();i&&(this._isUntitled()&&(t=i.getName()),e="("+i.getInputArgumentNames().join(", ")+")");return t+e},_getFileNameWithoutExtension:function(){return this._backingStore.getFullyQualifiedFileName()},_getBaseConfigName:function(){return this._getFileNameWithoutExtension()},_handleFileClose:function(){this._handledFileClose||(this._handledFileClose=!0,this._isUntitledBuffer?this._clearAllRunConfigs(this._ASSOCIATED_ID):this._dataService.updateAllCachedRunConfigs())},_handleOnLocationUpdated:function(e){var i=t.fileInfoFromPath(e);if(this._fileValidator.isValidMatlabFileExtension(i)){var n=this.getDefaultExecutionExpression(),o=this._ASSOCIATED_ID;this._ASSOCIATED_ID=e,this._setDefaultExecutionExpression(),this._isUntitledBuffer?(this._handleUntitledBufferNamed(n,o),this._isUntitledBuffer=this._isUntitled()):this._handleRename()}},_handleRename:function(){this.onReset()},_handleUntitledBufferNamed:function(e,t){if(this._runConfigsViewModel.hasRunConfigs()){this._clearAllRunConfigs(t);var i=this._runConfigsViewModel.getRunConfigWidgetForExpression(e);i&&this._runConfigsViewModel.setRunConfigExpression(i,this.getDefaultExecutionExpression()),this._updateRunConfigs()}},_clearAllRunConfigs:function(e){this._dataService.updateRunConfigsExpressionsForId(e,"",[])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(8064)],o=i.dj.d(n,(function(e,t,i){return t(e,{_ASSOCIATED_ID:"",constructor:function(e){this._runConfigsViewModel=e,this._dataService=this._getDataService()},getRunConfigsExpressions:function(){return this._dataService.getRunConfigsExpressionsForId(this._ASSOCIATED_ID)},getDefaultRunConfigExpression:function(){throw new Error("Unimplemented API: getDefaultRunConfigExpression")},getDefaultExecutionExpression:function(){return this.getDefaultRunConfigExpression()},updateForRunConfigsChange:function(){this._updateRunConfigs()},_getBaseConfigName:function(){throw new Error("Unimplemented API: _getBaseConfigName")},_getDataService:function(){return i.getInstance()},_updateRunConfigs:function(){var e=this._runConfigsViewModel.getAllRunConfigs(),t=this._getBaseConfigName();this._dataService.updateRunConfigsExpressionsForId(this._ASSOCIATED_ID,t,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8065)],o=i.dj.d(n,(function(e,t){var i;return{getInstance:function(){return i||(i=new t),i}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(282),i(715),i(8066)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_PREFERENCE_FILE_NAME:"run_commands.m",_ASSOCIATED_ID_PROPERTY_STRING:"@associatedFile",_UNIQUE_ID_PROPERTY_STRING:"@uniqueId",_MOST_RECENTLY_ACTIONED_PROPERTY_STRING:"@mostRecentlyActioned",constructor:function(){this._idsToRunConfigsMap=t.createMap(),this._cachedFileStr=null,this._readPromise=i.readFileFromPreferenceDirectory(this._PREFERENCE_FILE_NAME),this._readPromise.then(function(e){this._cachedFileStr=e,this._deserializeRunConfigs(e)}.bind(this),(function(e){}))},getRunConfigsExpressionsForId:function(e){var t=this._idsToRunConfigsMap.get(e);return t?t.map((function(e){return e.getExpression()})):[]},updateAllCachedRunConfigs:function(){this._cachedFileStr&&i.writeFileToPreferenceDirectory(this._PREFERENCE_FILE_NAME,this._cachedFileStr)},updateRunConfigsExpressionsForId:function(e,t,i){this._updateMap(e,t,i);var n=this._generateFileHeader();this._idsToRunConfigsMap.forEach((function(e){e.forEach((function(e,t){n+=e.serialize(0===t)}))})),this._cachedFileStr=n,this.updateAllCachedRunConfigs()},_updateMap:function(e,t,i){var n=this._idsToRunConfigsMap.get(e);n?this._updateExistingRunConfigs(n,e,t,i):this._createRunConfigsForExpressions(e,t,i)},_updateExistingRunConfigs:function(e,t,i,n){var o=n.map((function(e,t){return{expression:e,finalSortOrder:t}}));o.sort((function(e,t){return e.expression.localeCompare(t.expression)})),e.sort((function(e,t){return e.getExpression().localeCompare(t.getExpression())})),this._updateSortedRunConfigs(o,e,t,i),e.sort((function(e,t){return e.getOrderIndex()-t.getOrderIndex()}))},_updateSortedRunConfigs:function(e,t,i,o){for(var r=0,a=0,s=[],l=[];e.length>r||t.length>a;){var c=e[r],d=t[a],u=!d||c&&c.expression.localeCompare(d.getExpression())<0,h=!c||d&&c.expression.localeCompare(d.getExpression())>0;if(u){var p=new n("",i,c.expression);t.splice(a,0,p),p.setOrderIndex(c.finalSortOrder),l.push(p),r++,a++}else h?t.splice(a,1):(d.setOrderIndex(c.finalSortOrder),s.push(d.getName()),r++,a++)}var f=1;l.forEach(function(e){var t;do{t=this._generateName(o,f),f++}while(s.includes(t));s.push(t),e.setName(t)}.bind(this))},_createRunConfigsForExpressions:function(e,t,i){var o=[];i.forEach(function(i,r){var a=this._generateName(t,r+1);o.push(new n(a,e,i))}.bind(this)),this._idsToRunConfigsMap.set(e,o)},_generateFileHeader:function(){return"% MATLAB Editor Run Commands\n% @version 4\n% It is recommended that you do not edit this file directly, but use the\n% Run button. Changes made to comments that exist outside of a\n% configuration will not be saved.\n\n"},_generateName:function(e,t){return t>1?e+"_"+t:e},_deserializeRunConfigs:function(e){var t=e.split("%% @name");t.shift(),t.forEach(function(e){var t=this._createRunConfigFromString(e),i=this._getPropertyFromConfigData(e,this._MOST_RECENTLY_ACTIONED_PROPERTY_STRING);if(null!==t&&i){var n=t.getAssociatedId(),o=this._idsToRunConfigsMap.get(n)||[];"true"===i?o.unshift(t):o.push(t),this._idsToRunConfigsMap.set(n,o)}}.bind(this))},_createRunConfigFromString:function(e){var t=e.trim(),i=t.search(/\s/),o=t.slice(0,i),r=this._getPropertyFromConfigData(t,this._ASSOCIATED_ID_PROPERTY_STRING),a=this._getPropertyFromConfigData(t,this._UNIQUE_ID_PROPERTY_STRING),s="",l=e.match(/[^\n]+\s*$/);if(l&&(l=l[0],this._doesNotMatchAnyProperty(l))){var c=l.indexOf("\n");s=l.slice(0,c)}return!r||r.length<1||!a||a.length<1?null:new n(o,r,s,a)},_getPropertyFromConfigData:function(e,t){var i=e.indexOf(t);if(-1===i)return null;var n=t.length+i,o=e.substring(n),r=o.search(/\n/);return r>0&&(o=o.substring(0,r)),o.trim()},_doesNotMatchAnyProperty:function(e){return!this._getPropertyFromConfigData(e,this._ASSOCIATED_ID_PROPERTY_STRING)&&!this._getPropertyFromConfigData(e,this._UNIQUE_ID_PROPERTY_STRING)&&!this._getPropertyFromConfigData(e,this._MOST_RECENTLY_ACTIONED_PROPERTY_STRING)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(229)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,i,n,o){this._name=e,this._associatedId=i,this._expression=n,this._uniqueId=o||t.generateUuid()},getAssociatedId:function(){return this._associatedId},getName:function(){return this._name},setName:function(e){this._name=e},getExpression:function(){return this._expression},serialize:function(e){var t="";return t+="%% @name "+this._name+"\n",t+="% @associatedFile "+this._associatedId+"\n",t+="% @mostRecentlyActioned "+e+"\n",t+="% @uniqueId "+this._uniqueId+"\n",t+="\n"+this._expression+"\n\n"},setOrderIndex:function(e){this._orderIndex=e},getOrderIndex:function(){return this._orderIndex}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8068)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.executionservice","rtc.id","rtc.integration.service.editorservice","rtc.runconfigs.filevalidator","rtc.editor.executionnotifier"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1637),i(233),i(209),i(232),i(208),i(8073)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{_REQUEST_ID_FOR_LAST_ERROR:"GetLastError",_NOT_ENOUGH_INPUTS_ID:"MATLAB:minrhs",_TOO_MANY_INPUTS_ID:"MATLAB:TooManyInputs",_SYNTAX_ERROR_IDS:["MATLAB:m_incomplete_statement","MATLAB:m_invalid_lhs_of_assignment","MATLAB:m_improper_grouping","MATLAB:m_missing_operator","MATLAB:m_unexpected_sep","MATLAB:m_missing_variable_or_function","MATLAB:m_unbalanced_parens","MATLAB:lang:InvalidBinaryNumber","MATLAB:lang:InvalidHexNumber"],constructor:function(e,t,i,n,r){this._executionService=e,this._rtcId=t,this._editorService=i.getEditorService(),this._fileValidator=n,this._executionNotifier=r,this._handles=[],this._triggeredExecutionCommand="",this._triggeredExecutionId=null,o.registerResponseHandler("FEvalResponse:"+this._REQUEST_ID_FOR_LAST_ERROR+":"+this._rtcId,this._checkLastError,this)},execute:function(e){var t=this._editorService.getActiveEditor(window);n.assert(t,"Execute should be called for the active editor only"),this._isUntitled(t)?this._saveAndRunUntitledBuffer(t,e):this._saveAndRunExistingFile(t,e)},_isUntitled:function(e){return e.getFile().isUntitled},_saveAndRunUntitledBuffer:function(e,t){var n=e.widget.getBackingStore(),o=e.getFile().fileInfo,r=i.pathFromFileInfo(o),a=i.getFileNameNoExtension(o.name);this._oldExpression=t!==a?t:null,n.save(r).then(function(e){var t=e.fileInfo;if(this._fileValidator.isValidMatlabFileExtension(t)){var i=this._getExpressionToRun(t.name);this._runFile(t,i)}}.bind(this),(function(){}))},_getExpressionToRun:function(e){return this._oldExpression?this._oldExpression:i.getFileNameNoExtension(e)},_saveAndRunExistingFile:function(e,t){const n=e.getFile();if(e.widget.fileDataService.isFileModified(n)){const o=i.pathFromFileInfo(n.fileInfo);e.widget.getBackingStore().save(o).then(()=>{this._runFile(n.fileInfo,t)},()=>{})}else this._runFile(n.fileInfo,t)},_runFile:function(e,t){this._executionService.checkIfFileOnPath(e,this._focusAndRun.bind(this,t))},_focusAndRun:function(e){this._editorService.getActiveEditor(window).focus(),this._fileValidator.showDialogIfInvalidFileName()||(this._setUpExecutionListeners(e),this._executionService.authoringEval(e,this._executionService.streamingEval),this._executionNotifier.executionStarted())},_setUpExecutionListeners:function(e){this._triggeredExecutionCommand=e,this._handles.push(r.after(this._executionService,"onAuthoringEval",this._handleAuthoringEval.bind(this),!0)),this._handles.push(r.after(this._executionService,"onExecutionError",this._handleExecutionError.bind(this),!0)),this._handles.push(r.after(this._executionService,"onExecutionComplete",this._handleExecutionComplete.bind(this),!0))},_handleAuthoringEval:function(e,t){this._triggeredExecutionCommand===e&&(this._triggeredExecutionId=t)},_handleExecutionError:function(e){if(e.commandHistoryDivId===this._triggeredExecutionId){this._triggeredExecutionCommand="",this._triggeredExecutionId=null;o.sendMessage({FEval:{function:"lasterror",arguments:[],nargout:1}},{},this._REQUEST_ID_FOR_LAST_ERROR+":"+this._rtcId)}},_checkLastError:function(e){if(e.length>0&&e[0].results.length>0){var t=e[0].results[0].identifier,i=this._createErrorMessage(t);i&&this.onError(i)}},_createErrorMessage:function(e){var i="";if(e===this._NOT_ENOUGH_INPUTS_ID)i+=t.notEnoughInputsMessage;else if(e===this._TOO_MANY_INPUTS_ID)i+=t.tooManyInputsMessage;else{if(!(this._SYNTAX_ERROR_IDS.indexOf(e)>=0))return i;i+=t.syntaxErrorMessage}return i+"\n\n${1}\n\n"+t.genericErrorTooltipMessage},_handleExecutionComplete:function(e){e.commandHistoryDivId!==this._triggeredExecutionId&&""!==this._triggeredExecutionCommand||(this._executionNotifier.executionCompleted(),this._triggeredExecutionCommand="",this._triggeredExecutionId=null,this._removeListeners())},onError:function(e){},_removeListeners:function(){this._handles.forEach((function(e){e.remove()})),this._handles=[]},destroy:function(){this.inherited(arguments),this._removeListeners(),o.deregisterResponseHandler("FEvalResponse:"+this._REQUEST_ID_FOR_LAST_ERROR+":"+this._rtcId,this._checkLastError,this)}})}),e,t),e.exports=o},function(e,t,i){e.exports={genericErrorTooltipMessage:"ここで入力引数を与え、Enter キーを押して実行してください。入力値は今後 [実行] ボタンをクリックした場合の既定の入力として設定されます。",notEnoughInputsMessage:'"${0}" は、次の実行ではより多くの入力引数が必要です:',run:"実行:",syntaxErrorMessage:'構文エラー: "${0}" は表示されているとおりに実行できません。',tooManyInputsMessage:'"${0}" は、次の実行ではより少ない入力引数が必要です:',typeCodeToRun:"コードを入力して実行"}},function(e,t,i){e.exports={genericErrorTooltipMessage:"지금 입력 인수를 입력한 다음 Enter 키를 눌러 실행하십시오. 입력한 값은 나중에 [실행] 버튼을 클릭할 때 디폴트 입력으로 설정됩니다.",notEnoughInputsMessage:'"${0}"에는 실행할 입력 인수가 추가로 필요합니다.',run:"실행:",syntaxErrorMessage:'구문 오류: "${0}"은(는) 표시되는 대로 실행될 수 없습니다.',tooManyInputsMessage:'"${0}"에는 실행할 입력 인수가 더 적게 필요합니다.',typeCodeToRun:"실행할 코드 입력"}},function(e,t,i){e.exports={genericErrorTooltipMessage:'请立即键入这些输入参数,然后按 Enter 键运行。所输入的值将设置为以后点击 "运行" 按钮时的默认输入。',notEnoughInputsMessage:'输入参数不足,需增加输入参数才能运行 "${0}":',run:"运行:",syntaxErrorMessage:'语法错误: "${0}" 无法按所示运行。',tooManyInputsMessage:'输入参数过多,需减少输入参数才能运行 "${0}":',typeCodeToRun:"键入要运行的代码"}},function(e,t,i){e.exports={root:{genericErrorTooltipMessage:"Enter input arguments by typing them now, then press Enter to run. The values you enter will be set as the default inputs when you click the Run button in the future.",notEnoughInputsMessage:'"${0}" requires more input arguments to run:',run:"Run:",syntaxErrorMessage:'Syntax Error: "${0}" cannot run as it appears.',tooManyInputsMessage:'"${0}" requires fewer input arguments to run:',typeCodeToRun:"type code to run"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(230),i(203)],o=i.dj.d(n,(function(e,t){return t(e,{constructor:function(){},execute:function(e){throw new Error("Unimplemented API: execute")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(2578)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{createInstance:["rtc.runconfigs.view.model","rtc.runconfigs.manager","rtc.runconfigs.runner","rtc.runconfigs.dropdownbuttondata","rtc.integration.service.editorservice","rtc.runconfigs.filevalidator","rtc.actionservice","rtc.actiondelegationservice"]}},createInstance:function(e,t,o,r,a,s,l,c){const d=i.getInstance();return new n(e,t,o,r,null,a,s,d,l,c)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(231),i(203),i(8076),i(1638),i(208),i(292)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i(e,{constructor:function(e,t,i,o,s,l,c){this._runConfigsViewModel=e,this._runConfigsManager=t,this._runConfigsRunner=i,this._dropdownButtonDataContributor=o,this._fileValidator=c,this._uiBuilder=s||a.getInstance(),this._view=n.getInstance(this._uiBuilder),this.own(r.after(this._view,"onPopupOpen",this._handlePopupOpen.bind(this))),this._addDropdownOpenEventListener(),this._selectedWidget=null,this._lastAddedWidgetId=null,this._uncommittedRunConfig=!1},_addDropdownOpenEventListener:function(){var e=this._getToolstripButtonId();e&&this._uiBuilder.addEventCallback(e,this._handleOpenOnButton.bind(this))},_handleOpenOnButton:function(e){this._shouldHandleDropdownEvents()&&("dropDownPerformed"===e.eventType?this._handleDropdownPerformedEvent():"buttonPushed"===e.eventType&&this._handleButtonPushedEvent())},_handleDropdownPerformedEvent:function(){this._assignMenuId();var e=this._getToolstripButtonId();this._uiBuilder.showPopup(e,this._menuId),t.byId(e).get("menu").domNode.addEventListener("mousedown",this._handleMenuMousedown.bind(this),!0),this._handleDropdownOpen(),this._addDropdownCloseEventListener()},_assignMenuId:function(){if(!this._menuId){var e=this._uiBuilder.widgetByTag(this._getToolstripTag());this._menuId=e.menuId}},_getToolstripTag:function(){return this._dropdownButtonDataContributor.getToolstripTag()},_handleDropdownOpen:function(){var e=this._getPanel();e||(e=this._createPanelAndAddWidgets()),this._view.drawView(e.id,this._menuId),this._attachClickCallback(),this._selectedWidget=null},_createPanelAndAddWidgets:function(){var e=this._runConfigsViewModel.createViewPanel();return e?(this._createAndAddRunConfigsWidgets(),e):null},_handleMenuMousedown:function(e){var i=e.target;if(this._lastEditedWidgetId){if(t.byId(this._lastEditedWidgetId).domNode.contains(i))return;var n=t.byId(this._getPanel()).domNode,o=t.byId(this._view.getTypeCodeToRunWidgetId()).domNode;(n.contains(i)||o.contains(i))&&(this._uncommittedRunConfig=!0)}},_createAndAddRunConfigsWidgets:function(){var e=this._runConfigsManager.getRunConfigsExpressions();0===e.length&&e.push(this._runConfigsManager.getDefaultExecutionExpression()),e.forEach(function(e,t){var i=this._addNewWidget(e,!1);0===t&&this._updateShortcuts(i)}.bind(this))},_addNewWidget:function(e,t){var i=this._runConfigsViewModel.createWidgetAndAddToPanel(e,t);this._addWidgetListeners(i);var n=o.getWidgetById(i);return this._updateWidgetSelection(n,t,e),i},_addDefaultWidget:function(){var e=this._runConfigsManager.getDefaultRunConfigExpression(),t=this._addNewWidget(e,!0);this._updateShortcuts(t)},_addWidgetListeners:function(e){this._uiBuilder.addEventCallback(e,function(e){var t=e.eventType;"itemPushed"===t||"commit"===t||"recommit"===t?("commit"===t&&(this._uncommittedRunConfig=!0),this._handleItemSelected(e)):"remove"===t?this._handleItemRemoved(e):"typing"===t&&this._handleItemTyping(e)}.bind(this)),this._uiBuilder.addPropertySetCallback(e,function(i){var n=t.byId(e);"editable"===i.property&&setTimeout(this._handleEditableState.bind(this,i,n),0)}.bind(this))},_performUpdatesForRunConfigsChange:function(){this._runConfigsManager.updateForRunConfigsChange()},_handleEditableState:function(e,t){var i=e.newValue;this._updateWidgetSelection(t,i),i?this._lastEditedWidgetId=t.id:(this._uncommittedRunConfig&&this._runConfigsViewModel.setRunConfigExpression(t,this._uncommittedRunConfigExpression),this._runConfigsViewModel.removeDuplicateRunConfig(t.id,!this._selectedWidget),this._performUpdatesForRunConfigsChange(),this._lastEditedWidgetId!==this._lastAddedWidgetId||this._selectedWidget||t.get("value")!==this._runConfigsManager.getDefaultRunConfigExpression()||(this._removeRunConfigWidgetId=t.id),this._uncommittedRunConfigExpression=null,this._uncommittedRunConfig=!1,this._lastAddedWidgetId=null)},_handleItemSelected:function(e){this._lastAddedWidgetId=null;var i,n=e.id;this._updateShortcuts(n),this._runConfigsViewModel.moveRunConfigToTop(n),this._selectedWidget=t.byId(n),i="value"===e.propertyName?e.value:this._selectedWidget.get("value"),"itemPushed"===e.eventType&&this._performUpdatesForRunConfigsChange(),this._executeRunConfig(i)},_executeRunConfig:function(e){this._runConfigsRunner.execute(e)},_updateShortcuts:function(e){},_handleItemRemoved:function(e){this._lastAddedWidgetId=null;var t=e.id;this._runConfigsViewModel.removeRunConfig(t),this._performUpdatesForRunConfigsChange(),this._selectedWidget&&this._selectedWidget.get("id")===t&&(this._selectedWidget=null),0===this._getPanel().getChildren().length&&(t=this._addNewWidget(this._runConfigsManager.getDefaultExecutionExpression(),!1),this._updateShortcuts(t))},_handleButtonPushedEvent:function(){this._executeFirstRunConfig()},_attachClickCallback:function(){if(!this._clickCallback){var e=this._view.getTypeCodeToRunWidgetId();this._clickCallback=this._uiBuilder.addEventCallback(e,function(e){this._shouldHandleDropdownEvents()&&"itemPushed"===e.eventType&&this._handleTypeCodeToRunClicked()}.bind(this))}},_handleTypeCodeToRunClicked:function(){if(!this._fileValidator.showDialogIfInvalidFileName()){var e=this._runConfigsManager.getDefaultRunConfigExpression();this._lastAddedWidgetId=this._addNewWidget(e,!0),this._lastEditedWidgetId=this._lastAddedWidgetId,this._uncommittedRunConfig=!1}},_executeFirstRunConfig:function(){var e=this._runConfigsManager.getRunConfigsExpressions()[0]||this._runConfigsManager.getDefaultExecutionExpression();return this._executeRunConfig(e),!0},_handleItemTyping:function(e){this._uncommittedRunConfigExpression=e.text},_updateWidgetSelection:function(e,t,i){if(e){var n=e.domNode.querySelector(".mwInputNode");if(t){var o=(i=i||n.value).indexOf("("),r=i.indexOf(")");-1===o||-1===r?n.select():n.setSelectionRange(o+1,r)}else n.setSelectionRange(0,0)}},_addDropdownCloseEventListener:function(){this._assignMenuId(),this._menuCloseCallback||(this._menuCloseCallback=this._uiBuilder.addEventCallback(this._menuId,this._handleCloseOnMenu.bind(this)))},_handleCloseOnMenu:function(e){"onClose"===e.eventType&&this._handleDropdownClose()},_handleDropdownClose:function(){this._clickCallback&&(this._clickCallback.remove(),this._clickCallback=null),this._lastAddedWidgetId&&(this._runConfigsViewModel.removeRunConfig(this._lastAddedWidgetId),this._lastAddedWidgetId=null),this._removeRunConfigWidgetId&&(this._runConfigsViewModel.removeRunConfig(this._removeRunConfigWidgetId),this._removeRunConfigWidgetId=null),this._view.clearView(this._getPanel().id),this._menuCloseCallback&&(this._menuCloseCallback.remove(),this._menuCloseCallback=null),this._lastEditedWidgetId=null},_getPanel:function(){return this._runConfigsViewModel.getViewPanel()},_shouldHandleDropdownEvents:function(){return!0},_getToolstripButtonId:function(){return this._uiBuilder.tagToId(this._getToolstripTag())},_handlePopupOpen:function(){this._attachClickCallback(),this._addDropdownCloseEventListener()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8077)],o=i.dj.d(n,(function(e){var t=null;return{getInstance:function(i){return null===t&&(t=new e(i)),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(277),i(203),i(1637),i(434),i(1638)],o=i.dj.d(n,(function(e,t,i,n,o){return t(null,{_MULTI_LINE_ERROR_TOOLTIP_CLASS:"mwMultiLineErrorTooltip",_RUN_CONFIGURATION_CLASS:"mwRunConfiguration",constructor:function(e){this._uiBuilder=e,this._typeCodeToRunWidgetId=this._createTypeCodeToRunWidget(),this._erroredWidget=null},drawView:function(e,t){this._uiBuilder.add(e,t,0),this._uiBuilder.add(this._typeCodeToRunWidgetId,t,1)},clearView:function(e){this._uiBuilder.remove(e),this._uiBuilder.remove(this._typeCodeToRunWidgetId),this._erroredWidget&&(this._uiBuilder.set(this._erroredWidget.id,"validationState","normal"),this._erroredWidget=null)},showErrorMessage:function(e,t,i,n,o){this.drawView(o,n),this._uiBuilder.showPopup(i,n),this._erroredWidget=e(),this._uiBuilder.set(this._erroredWidget.id,"editable",!0),this._uiBuilder.set(this._erroredWidget.id,"validationState","error"),this._uiBuilder.set(this._erroredWidget.id,"errorText",t);var r=this._erroredWidget.validationTooltip;r.domNode.classList.add(this._MULTI_LINE_ERROR_TOOLTIP_CLASS),r.domNode.classList.add(this._RUN_CONFIGURATION_CLASS),this.onPopupOpen()},onPopupOpen:function(){},getTypeCodeToRunWidgetId:function(){return this._typeCodeToRunWidgetId},_createTypeCodeToRunWidget:function(){return o.createItemWithoutContextMenu(this._uiBuilder,i.typeCodeToRun)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8079)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(1638),i(292)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{constructor:function(){this._viewPanel=null,this._uiBuilder=n.getInstance()},createViewPanel:function(){var e=i.createPopupPanel(this._uiBuilder);return this._viewPanel=i.getWidgetById(e),this.own(this._viewPanel),this._viewPanel},destroyViewPanel:function(){this._viewPanel&&(this._viewPanel.getChildren().forEach(function(e){this._uiBuilder.remove(e.id),this._uiBuilder.destroy(e.id)}.bind(this)),this._uiBuilder.remove(this._viewPanel.id),this._uiBuilder.destroy(this._viewPanel.id),this._viewPanel=null)},getViewPanel:function(){return this._viewPanel},hasRunConfigs:function(){return this._viewPanel&&this._viewPanel.hasChildren()},createWidgetAndAddToPanel:function(e,t){if(!this._viewPanel)throw new Error("Panel doesn't exist");var n=i.createItemWithContextMenu(this._uiBuilder,e,t);return this._uiBuilder.add(n,this._viewPanel.id),n},getFirstRunConfigExpression:function(){return this.getFirstRunConfigWidget().get("value")},getAllRunConfigs:function(){if(!this._viewPanel)throw new Error("Panel doesn't exist");return this._viewPanel.getChildren().map((function(e){return e.get("value")}))},moveRunConfigToTop:function(e){if(!this._viewPanel)throw new Error("Panel doesn't exist");if(0===this._viewPanel.getChildren().length)throw new Error("Panel has no children");this._viewPanel.getChildren()[0].id!==e&&(this._uiBuilder.remove(e),this._uiBuilder.add(e,this._viewPanel.id,0))},getFirstRunConfigWidget:function(){if(!this._viewPanel)throw new Error("Panel doesn't exist");if(0===this._viewPanel.getChildren().length)throw new Error("Panel has no children");return this._viewPanel.getChildren()[0]},getRunConfigWidgetForExpression:function(e){if(!this._viewPanel||0===this._viewPanel.getChildren().length)return null;var t=null;return this._viewPanel.getChildren().some(function(i){var n=this._uiBuilder.get(i.id,"text").trim();return e===n&&(t=i,!0)}.bind(this)),t},removeRunConfig:function(e){if(!this._viewPanel)throw new Error("Panel doesn't exist");if(0===this._viewPanel.getChildren().length)throw new Error("Panel has no children");this._uiBuilder.remove(e),this._uiBuilder.destroy(e)},removeDuplicateRunConfig:function(e,t){if(!this._viewPanel)throw new Error("Panel doesn't exist");if(0===this._viewPanel.getChildren().length)throw new Error("Panel has no children");var i,n=this._viewPanel.getChildren(),o=this._uiBuilder.get(e,"text").trim();if(t=!!t,n.some(function(t){if(t.id===e)return!1;var n=this._uiBuilder.get(t.id,"text").trim();return o===n&&(i=t.id,!0)}.bind(this))){var r=t?e:i;this._uiBuilder.remove(r)}},setRunConfigExpression:function(e,t){null!=t&&(this._uiBuilder.set(e.id,"text",t),e._textFieldValueLine.textContent=t)},destroy:function(){this.inherited(arguments),this.destroyViewPanel()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8081)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(233),i(2577)],o=i.dj.d(n,(function(e,t,i){return e(i,{isValidMatlabFileExtension:function(e){return t.isLiveScriptFile(e.name)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(275),i(8083)],o=i.dj.d(n,(function(e,t,i,n){return e(t,{requires:function(){return{createInstance:["rtc.runconfigs.view.model","rtc.runconfigs.manager","rtc.runconfigs.runner","rtc.runconfigs.dropdownbuttondata","rtc.integration.service.editorservice","rtc.runconfigs.filevalidator","rtc.actionservice","rtc.actiondelegationservice","rtc.code.matlabfiletype","rtc.validscriptfiletypenotifier"]}},createInstance:function(e,t,o,r,a,s,l,c,d,u){const h=i.getInstance();return new n(e,t,o,r,null,a,s,h,l,c,d,u)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(2578)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,i,n,o,r,a,s,l,c,d,u,h){this._validScriptFileTypeNotifier=h,this._fileType=u,this.own(t.after(this._validScriptFileTypeNotifier,"onScriptFileTypeChange",this._handleScriptFileTypeChange.bind(this),!0))},_handleScriptFileTypeChange:function(){this._updateAction(),this._updateRunIcon()},_updateAction:function(){let e;const t=this._isLiveFunction(),i=this._debugServices.isDebugging,n=t&&!i;this._enableDisableAction(n),e=t?this._dropdownButtonDataContributor.getLiveFunctionRunDescription():this._dropdownButtonDataContributor.getDefaultRunDescription(),this._uiBuilder.set(this._getToolstripButtonId(),"description",e)},_handleDropdownPerformedEvent:function(){if(this._isLiveFunction())this.inherited(arguments);else{this._assignMenuId();let e=this._getToolstripButtonId();this._uiBuilder.showPopup(e,this._menuId),this._handleDropdownOpen()}},_handleDropdownOpen:function(){this._isLiveFunction()?(this._removeRunListItem(),this.inherited(arguments)):this._addRunListItem()},_handleDropdownClose:function(){this._isLiveFunction()&&this.inherited(arguments)},_handleError:function(){this._removeRunListItem(),this._addDropdownCloseEventListener(),this.inherited(arguments)},_updateRunIcon:function(){this._isLiveFunction()?this.inherited(arguments):this._uiBuilder.set(this._getToolstripButtonId(),"icon","run_24")},_isLiveFunction:function(){return this._validScriptFileTypeNotifier&&!this._validScriptFileTypeNotifier.isFileTypeScript()&&this._fileType.isFunction()},_getRunListItemTag:function(){return this._dropdownButtonDataContributor.getRunListItemTag()},_getRunListItemId:function(){return this._uiBuilder.tagToId(this._getRunListItemTag())},_addRunListItem:function(){this._uiBuilder.add(this._getRunListItemId(),this._menuId,0)},_removeRunListItem:function(){this._uiBuilder.remove(this._getRunListItemId())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{RUN:"motwToolstrip.liveEditorTab.run.runAll",PAUSE:"motwToolstrip.liveEditorTab.run.pause",CONTINUE:"motwToolstrip.liveEditorTab.run.continue",STEP:"motwToolstrip.liveEditorTab.run.step",STEP_IN:"motwToolstrip.liveEditorTab.run.stepIn",STEP_OUT:"motwToolstrip.liveEditorTab.run.stepOut",STEP_IN_OUT_COLUMN:"motwToolstrip.liveEditorTab.run.stepInOutColumn",STOP:"motwToolstrip.liveEditorTab.run.stop",RUN_SECTION:"motwToolstrip.liveEditorTab.run.runSection",RUN_SECTION_ADVANCE:"motwToolstrip.liveEditorTab.run.runAndAdvance",RUN_SECTION_END:"motwToolstrip.liveEditorTab.run.runToEnd"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(2582),i(914),i(549),i(858),i(859),i(280),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([n],{constructor:function(e,t,i,n,o,r){},saveAs:async function(e,t){const i=this.getAbsoluteFilePath(),n=this.file,r=c.locationFromPath(e),l=c.nameFromPath(e),d=c.createEmptyFileObject(r,l),u=c.isLiveScriptFile(i),h=c.isLiveScriptFile(e);let p=!0;try{if(u===h)await this._saveSameType(e);else if(!u&&h){const t=await this._backingstoreContentContributor.getContent();await a.doConvertContent(t,e)}else if(u&&!h){const t=c.getFileNameExtension(l);if(!s.isExportableExtension(t)){throw{errorId:o.NOT_SUPPORTED_MLX_EXPORT_FILE_TYPE}}{const i=this._rtcId,n=e;await s.exportViaMATLAB(i,n,t,d),p=!1}}}catch(e){const t=null!==e&&e.errorId?e.errorId:e;throw this.onSaveFailed(t),{status:!1,errorId:t}}return t&&this._asyncCloseFile(n),p&&this._openFile(e,d),{status:!0}},experimentalLoadOpc:async function(e){this._loadDeferred=new i;try{const t={content:r.toJson(e),originalFilePath:this.getAbsoluteFilePath(),readOnly:!1};await this._backingstoreContentContributor.loadContent(t),this.onLoadComplete(),this.onLoadCompleted(),this._processReload(),this._loadDeferred.resolve(!0)}catch(e){this.onLoadFailed(e),this._loadDeferred.reject({exception:e})}return this._loadDeferred.promise},_saveSameType:async function(e){if(!1===await this.directSaveWithNoEvents(e))throw this.onSaveFailed("unknown"),{status:!1,errorId:"unknown"}},_asyncCloseFile:function(e){setTimeout(()=>{l.fileDataService._doCloseFile(e.fileInfo,!1)},250)},_openFile:function(e,t){void 0===l.fileDataService.openedFilesDataStore.get(e)&&l.editorService.openFile(t,!1)},destroy:function(){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8087)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.id","rtc.integration.service.editorservice","matlab.templateservice","rtc.templateType","rtc.code.matlabfiletype"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(212),i(859),i(858),i(8088),i(281),i(914),i(233),i(304),i(363),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return class extends a{constructor(e,t,i,n,o){super(e),this._templateType=n,this._templateService=i,this._editorServiceWrapper=t,this._isCurrentFileTypeSupported=!0,this._setupFileTypePluginListener(o)}allowSave(e){return this._isCurrentFileTypeSupported}async load(e,t,i){if(""===this._templateType||s.hasFileLocation({file:e}))return super.load(e,t,i);{const e=new n,i=c.getFileNameNoExtension(t);return this._templateService.applyTemplate(this._templateType,i),this._templateType="",e.resolve({content:null}),e.promise}}async save(e,t){let i;const n={fileInfo:c.fileInfoFromPath(e)};if(s.hasFileLocation({file:n}))try{i=await this._saveLiveCodeFile(e,t),this._markFileClean(e)}catch(e){throw e}else i=await this._saveUntitledFile(e,t);return this._clearCacheIfRequired(t.filePath),i}_setupFileTypePluginListener(e){this.own(i.after(e,"onSupportedFileTypeChange",e=>{this._isCurrentFileTypeSupported=e},!0))}async _saveUntitledFile(e,t){const i=this._editorServiceWrapper.getEditorService(),n=c.pathFromFileInfo(i.fileDataService.currentWorkingFolder);let o=null;try{o=await this._getFileNameFromDialog(e)}catch(e){this._handleCancelSave()}const r=c.createFilePath(n,o);t.filePath=r;try{if(c.isLiveScriptFile(r))await this._saveLiveCodeFile(r,t);else{await this._convertFromLiveCode(r,t)?this._handleCancelSave():this._handleExportFailed()}}catch(e){throw e}return this._handleSwapFiles(e,r)}_getFileNameFromDialog(e){return new Promise((t,i)=>{setTimeout(()=>{o.getExportFileName(e).then(e=>{t(e)},e=>{i(e)})},500)})}async _convertFromLiveCode(e){const t=c.getFileNameExtension(e);let i=!1;if(o.isExportableExtension(t))try{const n=this._rtcId,r=e,a=this._createNewFileObjectFromFullFilePath(e);await o.exportViaMATLAB(n,r,t,a),i=!0}catch(e){i=!1}return i}async _saveLiveCodeFile(e,t){return await super.save(e,t)}_markFileClean(e){const t=this._editorServiceWrapper.getEditorService().fileDataService,i=t.openedFilesDataStore.get(e);t.setFileClean(i)}_createNewFileObjectFromFullFilePath(e){return{content:"",fileInfo:c.fileInfoFromPath(e),modifiedDate:null,savePending:!1,id:e}}_handleSwapFiles(e,t){let i=this._createNewFileObjectFromFullFilePath(t);return c.isLiveScriptFile(t)?i=this._switchDataToSwap(e,i):this._openAndCloseToSwap(e,i),i}_switchDataToSwap(e,t){const i=this._editorServiceWrapper.getEditorService(),n=i.fileDataService,o=e,r=t.id,a=n.openedFilesDataStore.get(o);n.openedFilesDataStore.remove(o),a.fileInfo.location=t.fileInfo.location,a.fileInfo.name=t.fileInfo.name,a.fileInfo.path=t.fileInfo.path,a.id=r,a.isUntitled=!1,a.savePending=!1,n.openedFilesDataStore.put(a),i.emplaceEditorView(o,r);const s=i.getAllOpenEditors(r);return s.set(d.DESCRIPTION,r),s.set("documentId",r),n.setFileClean(a),a}_openAndCloseToSwap(e,t){const i=this._editorServiceWrapper.getEditorService(),n=i.fileDataService,o=i.getAllOpenEditors(e).getFile();setTimeout(()=>{n._doCloseFile(o.fileInfo,!1)},250),n.openedFilesDataStore.put(t);n.onFileOpen(t,!1,void 0,void 0)}_clearCacheIfRequired(e){const t=c.nameFromPath(e);if(c.isPlainCodeFile(t)||c.isLiveScriptFile(t))try{const i=u.getInstance();i.feval("clear",0,e).then(()=>{},e=>{h.error("Clearing the cache failed for "+t,e)})}catch(e){h.error("Clearing the cache failed for "+t,e)}}_handleCancelSave(){throw{errorId:l.SAVE_CANCELLED}}_handleExportFailed(){throw{errorId:l.NOT_SUPPORTED_MLX_EXPORT_FILE_TYPE}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(2376),i(281),i(2583),i(219),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([n],{constructor:function(e){this._rtcId=e,this._loadDeferred=null,this._saveDeferred=null,this._setupLiveCodeMessageServiceSubscriptions()},allowSave:function(e){return!0},load:function(e,t,n){return this._loadDeferred=new i,o.hasFileLocation({file:e})?this._loadFile(t,n):this._loadUnsavedBuffer(),this._loadDeferred.promise},save:async function(e,t){if(this._saveDeferred&&!this._saveDeferred.isFulfilled())return this._saveDeferred.promise;this._saveDeferred=new i;const n="livecode-saveload-"+t.rtcId,o=t.filePath,a=t.content;try{const e=await r.writeLiveCodeContentToFile(n,o,a);this._handleWriteContentResponse(e)}catch(e){s.log(e)}return this._saveDeferred.promise},_setupLiveCodeMessageServiceSubscriptions:function(){a.subscribe("/mlx/service/readResponse/"+this._rtcId,"_handleReadContentResponse",this),a.subscribe("/mlx/service/writeResponse/"+this._rtcId,"_handleWriteContentResponse",this)},_teardownLiveCodeMessageServiceSubscriptions:function(){a.unsubscribe("/mlx/service/readResponse/"+this._rtcId,"_handleReadContentResponse",this),a.unsubscribe("/mlx/service/writeResponse/"+this._rtcId,"_handleWriteContentResponse",this)},_loadFile:function(e,t){const i={filePath:e,rtcId:this._rtcId,contentType:t};this._sendLoadRequest(i)},_sendLoadRequest:function(e){const t=this._getChannelBasedOnSetting("/mlx/service/readRequest",!0);a.publish(t,e)},_getChannelBasedOnSetting:function(e,t){return e+(t?"_cpp":"")},_loadUnsavedBuffer:function(){this._loadDeferred.resolve({content:null})},_sendSaveRequest:function(e){const t=this._getChannelBasedOnSetting("/mlx/service/writeRequest",!0);a.publish(t,e)},_handleReadContentResponse:function(e){const t=e.data;if(t.status){const e={parts:t.parts,relationships:t.relationships},i=t.originalFilePath,n=t.readOnly;this._loadDeferred.resolve({content:e,originalFilePath:i,readOnly:n})}else this._loadDeferred.reject("Failed to read content")},_handleWriteContentResponse:function(e){if(!this._saveDeferred||this._saveDeferred.isFulfilled())return;const t=e.data;t.wasSuccessful?this._saveDeferred.resolve({status:!0}):(!0!==t.suppressLogging&&s.error("Error while writing file: "+t.errorMessage),this._saveDeferred.reject({status:!1,errorId:t.errorId}))},destroy:function(){this._teardownLiveCodeMessageServiceSubscriptions(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8090)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{isApplicable:[],createInstance:["rtc.internaldocument","rtc.serializers","rtc.code.matlabfiletype","rtc.documentationservice","rtc.embeddedoutputs","rtc.id","rtc.export.fullfile","rtc.document.modification","rtc.integration.service.editorservice"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8091)],o=i.dj.d(n,(function(e){return class extends e{constructor(e,t,i,n,o,r,a,s,l){super(e,t,i,n,o,r,a),this._documentModificationController=s,this._editorServiceWrapper=l}loadContent(e){const t=e.content;if(null!=t){super.loadContent(e);const t=!!e.readOnly;this._documentModificationController.setReadOnly(t);this._editorServiceWrapper.getEditorService().fileDataService.openedFilesDataStore.get(e.originalFilePath).fileInfo.filePermissions.canWrite=!t}}destroy(){this._editorServiceWrapper=null,this._documentModificationController=null,super.destroy()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2584),i(8092),i(2583),i(219),i(1128)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t,i],{constructor:function(e,t,i,n,o,a,s){this._rtcId=a,this._fullFileExporterWrapper=s,this._lineEndingStyle=r.Types.INTERNAL_REPRESENTATION,this._setupAbstractLiveEditorMessageServiceSubscriptions()},loadContent:function(e){const t=this.inherited(arguments);!1===t&&this.onLoadFutureVersion()},getLineEndingStyle:function(){return this._lineEndingStyle},onLoadFutureVersion:function(){},_setupAbstractLiveEditorMessageServiceSubscriptions:function(){o.subscribe("/liveeditor/events/getContentRequest/"+this._rtcId,"_handleGetContentRequest",this)},_handleGetContentRequest:async function(e){const t="/liveeditor/events/getContentResponse/"+this._rtcId,i=e.data,r=i.contentType,a=i.additionalArguments,s={status:!0,exception:null,contentType:r,content:null};try{let e;if("mlx"===r)e=await this.getContent();else{let t=null;a&&(t=a.length?a[0]:a);const i=this._fullFileExporterWrapper.getCurrentInstance();if(e=await i.export(r,t),"docx"===r&&a.Destination){const t=a.Destination,i="export-docx-"+this._rtcId;await n.writeLiveCodeContentToFile(i,t,e)}}s.content=e}catch(e){s.exception=e.stack,s.status=!1}o.publish(t,s)},_teardownAbstractLiveEditorMessageServiceSubscriptions(){o.unsubscribe("/liveeditor/events/getContentRequest/"+this._rtcId,"_handleGetContentRequest",this)},destroy:function(){this._teardownAbstractLiveEditorMessageServiceSubscriptions(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8093),i(549),i(2112),i(2110)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{constructor:function(e,t,i,n,o){this._embeddedOutputsPluginWrapper=o},loadContent:function(e){const t=e.content;if(null!=t){const e=i.fromJson(t);return this._loadContent(e)}return null},_loadContent:function(e){const t=this.inherited(arguments),i=e.getPart("/matlab/output.xml");let o=!0;const r=this._embeddedOutputsPluginWrapper.getCurrentInstance(),a=!!r,s=0!==Object.keys(i).length;return a&&s&&i.getContent()&&(o=n.read(r,{output:i.getContent()})),t&&o},_getOpcPackage:function(){const e=this.getInherited("_getOpcPackage",arguments),t=async()=>{const t=await e.apply(this),i=this._embeddedOutputsPluginWrapper.getCurrentInstance(),n=o.write(i);return t.createPart("/matlab/output.xml","text/xml").setContent(n),t.createRelationship("http://schemas.mathworks.com/matlab/code/2013/relationships/output","/matlab/output.xml"),t};return t()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1639),i(549),i(1484),i(1404),i(2109)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([t],{constructor:function(e,t,i,n){this._internalDocument=e,this._serializersWrapper=t,this._fileTypePlugin=i,this._documentationServiceWrapper=n},loadContent:function(e){const t=e.content;if(null!=t){const e=i.fromJson(t);return this._loadContent(e)}return null},getContent:async function(){const e=await this._getOpcPackage();return i.toJson(e)},getContentType:function(){return"text/xml"},_loadContent:function(e){const t=this._serializersWrapper.getCurrentInstance();return!!n.read(this._internalDocument,e,t)},_getOpcPackage:async function(){const e=new i,t=this._serializersWrapper.getCurrentInstance();o.write(this._internalDocument,{opcPackage:e,serializers:t});const n=this._documentationServiceWrapper.getCurrentInstance();return await r.write(n,this._fileTypePlugin,e),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8095),i(205),i(275),i(219)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.executionservice"]}},createInstance:function(e){var i=n.getInstance();return new t(e,i,o)},priority:function(){return 100}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(204),i(1583)],o=i.dj.d(n,(function(e,t,i,n){return t(n,{EVAL_STARTED_CHANNEL:"/liveeditor/evaluation/eval-started",EVAL_ENDED_CHANNEL:"/liveeditor/evaluation/eval-ended",constructor:function(t,n,o){this._executionService=t,this._debugServices=n,this._messageService=o,this._isBusy=null,this._handleExecutionStateChange(this._executionService.executionState),this.own(e.after(this._executionService,"onExecutionStateChange",i.hitch(this,"_handleExecutionStateChange"),!0)),this.own(e.after(this._debugServices,"onDBCont",i.hitch(this,"_handleDBCont"))),this.own(e.after(this._debugServices,"onDBStop",i.hitch(this,"_handleDBStop"))),this._messageService.subscribe(this.EVAL_STARTED_CHANNEL,"_handleLiveEditorStarted",this),this._messageService.subscribe(this.EVAL_ENDED_CHANNEL,"_handleLiveEditorEnded",this)},isBusy:function(){return this._isBusy},_transitionToState:function(e){this._isBusy!==e&&(this._isBusy=e,this.onIdleBusyStatusChange(e))},_handleExecutionStateChange:function(e){var t=!1;switch(e){case this._executionService.EXECUTION_STATES.BUSY:t=!0;break;case this._executionService.EXECUTION_STATES.READY:case this._executionService.EXECUTION_STATES.DEBUG:case this._executionService.EXECUTION_STATES.KEYBOARD:case this._executionService.EXECUTION_STATES.PAUSE:case this._executionService.EXECUTION_STATES.INPUT:case this._executionService.EXECUTION_STATES.COMPLETING_BLOCK:t=!1}this._transitionToState(t)},_handleDBCont:function(){this._transitionToState(!0)},_handleDBStop:function(){this._transitionToState(!1)},_handleLiveEditorStarted:function(){this._transitionToState(!0)},_handleLiveEditorEnded:function(){this._transitionToState(!1)},destroy:function(){this.inherited(arguments),this._messageService.unsubscribe(this.EVAL_STARTED_CHANNEL,"_handleLiveEditorStarted",this),this._messageService.unsubscribe(this.EVAL_ENDED_CHANNEL,"_handleLiveEditorEnded",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(285),i(212),i(290),i(754),i(340),i(280),i(207),i(281),i(233),i(241)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(l,{constructor:function(e,i){this._actionService=e,this._backingStore=i,this._actionService.loadActions([{id:a.CLOSE_EDITOR,enabled:!0,callback:t.hitch(this,"_handleCloseEditor")}])},_handleCloseEditor:function(){var e=s.editorService.getAllOpenEditors(c.getAbsoluteFilePathFromBackingStore(this._backingStore));return this._showConfirmationDialog(e.getFile())},_showConfirmationDialog:function(e){var t=new n,o=u.displayConfirmDialog(this._getConfirmationDialogTitle(e.fileInfo.name),this._getConfirmationDialogDescription(e.fileInfo.name),{icon:"warning",buttonText:[r.yes,r.no,r.cancel],closeCallback:function(n){switch(n.response){case 1:o&&o.destroy();var r=s.editorService.onEditorSave(e.id,!0);i(r,(function(e){e?t.resolve(e):t.reject(e)}),(function(){t.reject("Error saving the file.")}));break;case 2:t.resolve(!0);break;default:t.cancel("User cancelled close operation")}}.bind(this)});return t.promise},_getConfirmationDialogTitle:function(e){return d.isLiveScriptFile(e)?o.saveUntitledBufferLiveEditorTitle:o.saveUntitledBufferEditorTitle},_getConfirmationDialogDescription:function(e){return o.saveUntitledBufferDescription.replace("{0}",d.isLiveScriptFile(e)?e:d.getFileNameNoExtension(e))},destroy:function(){this._actionService.removeAction(a.CLOSE_EDITOR)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(290),i(340),i(299),i(642),i(304),i(233),i(207),i(208)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(s,{constructor:function(e,t,i){this._editorService=e.getEditorService(),this._editorView=e.getEditorView(),this._fileType=t,this._backingStore=i,this._updateActions(),this._registerEventListeners()},_updateActions:function(){let e=[];e.push(this._getNewAction());const t=this._getOpenAsAction();t&&(e.push(null),e.push(t)),this._editorView.set(r.ACTIONS,e)},_registerEventListeners:function(){a.isMatlabFileName(this._editorView.getFile().fileInfo.name)&&(this.own(l.after(this._backingStore,"onSaveCompleted",this._updateActions.bind(this))),this._fileType.whenReady(this._updateActions.bind(this)))},_getNewAction:function(){return a.isLiveScriptFile(this._editorView.getFile().fileInfo.name)?n.NEW_LIVE_SCRIPT:n.NEW_FILE},_getOpenAsAction:function(){if(o.isUntitled(this._editorView)||!a.isMatlabFileName(this._editorView.getFile().fileInfo.name))return null;const e=this._getOpenAsLabel();return e?{text:e,enabled:!0,callback:function(){const e=a.pathFromFileInfo(this._editorView.getFile().fileInfo);this._editorService.openAsLiveCode(e)}.bind(this)}:null},_getOpenAsLabel:function(){let e=t.openLabel+" "+this._backingStore.getFileName()+" ";switch(this._fileType.getFileType()){case this._fileType.FILE_TYPE.FunctionFile:e+=t.openAsLiveFunctionLabel;break;case this._fileType.FILE_TYPE.ClassDefinitionFile:e=null;break;default:e+=t.openAsLiveScriptLabel}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{_COPY_PASTE_GROUP:"copyPaste",constructor:function(e){e.hideGroup(this._COPY_PASTE_GROUP)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8100)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","livecode.saveload.withoutputs"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(299),i(280),i(2588)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e,t){this._saveload=t},_handleFileDelete:function(){this._saveload.getMLXContentOpcPackage().then(function(e){i.actionService.executeAction(t.NEW_LIVE_SCRIPT,{fileContents:e,isModified:!0})}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(340),i(207),i(668)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,i,n,o,r){this._actionService=i,this._cursorController=n,this._internalDocument=o,this._lineNumberService=r,this._actionLoggerServiceBlacklist=e,this._actionService.loadActions([{id:t.GOTO_POSITION_IN_LINE,enabled:!0,callback:this._handleGotoPositionInLine.bind(this)}]),this._actionLoggerServiceBlacklist.addAction(t.GOTO_POSITION_IN_LINE)},_handleGotoPositionInLine:function(e){this._cursorController.getCursors().forEach(function(t){n.gotoCodeLineColumn(this._internalDocument,this._lineNumberService,t,e.line,e.position)}.bind(this))},destroy:function(){this._actionService.removeAction(t.GOTO_POSITION_IN_LINE),this._actionLoggerServiceBlacklist.removeAction(t.GOTO_POSITION_IN_LINE),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8103)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["motw.actionservice","rtc.domnode.external"]}},createInstance:function(){return new i(...arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(206),i(299),i(207),i(615)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(o,{constructor:function(e,t){this._actionService=e,this._rtcExternalDomNode=t,this.own(i(this._rtcExternalDomNode,"keydown",this._handleKeyDown.bind(this)))},_handleKeyDown:function(e){if(r.getKeyStrokeFromEvent(e)===(t("mac")?"meta_s":"ctrl_s")&&e.target.matches(".eoOutputWrapper, .eoOutputWrapper *")){var i=this._actionService.getAction(n.SAVE);if(!i)return;r.executeActions([i]),e.preventDefault(),e.stopPropagation()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8105)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["motw.actionservice","rtc.keyhandler"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(299),i(207)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e,t){this._actionService=e,this._keyHandler=t,this._keyHandler.removeBinding({key:"ctrl_s",platformKey:{mac:"meta_s"}},"save"),this._addAdditionalKeyBindings()},_addAdditionalKeyBindings:function(){this._addBinding(t.SAVE)},_addBinding:function(e){var t=this._actionService.getAction(e),i={key:t.key,platformKey:t.platformKey};this._keyHandler.addBinding(i,e,this._actionService)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8107)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:[]}},createInstance:function(){return new i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2590),i(207),i(208),i(2077)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(){this._liveAppsGalleryManager=t.getInstance(),this._liveAppDataModel=o.getInstance(),this.own(n.after(this._liveAppDataModel,"onTasksAdded",this._handleOnTaskAdded.bind(this),!0)),this.own(n.after(this._liveAppDataModel,"onTasksRemoved",this._handleOnTasksRemoved.bind(this),!0))},_handleOnTaskAdded:function(e){this._liveAppsGalleryManager.addTasksToGallery(e).then(()=>{this._liveAppDataModel.handleItemsLoaded()},()=>{})},_handleOnTasksRemoved:function(e){this._liveAppsGalleryManager.removeTasksFromGallery(e).then((function(){}),()=>{})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(752),i(232),i(226)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{constructor:function(e){this._dropdownTag="motwToolstrip.liveeditor.insertTab.insert.embeddedApp",this._galleryPopupTag="motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup",this._resolveFunction=null,this._rejectFunction=null,this._promise=new Promise((e,t)=>{this._resolveFunction=e,this._rejectFunction=t})},setArgs:function(e){this._editorService=e.editorService,this._uiBuilder=e.uiBuilder,this._resolveFunction(),this._resolveFunction=null},addTasksToGallery:function(e){return this._promise.then(()=>{e.forEach((function(e){let t=this._getItemCategoryTag(e);this._createGalleryItem(e,this._uiBuilder.tagToId(t))}),this),this._galleryPopulated||this._postPopulateGallery()},()=>{}),this._promise},_createGalleryItem:function(e,t){let i=e.appIdentifier;if(e.type=o.GALLERY_ITEM,e.parentId=t,e.text=e.label,e.tag=this._getItemTag(e),e.icon=this._updateIconProperty(e),e.quickAccessIcon&&(e.quickAccessIcon=n.getWorkerRoutingHost().slice(0,-1)+e.quickAccessIcon),!this._uiBuilder.tagToId(e.tag)){let t=this._uiBuilder.create(e);this._uiBuilder.addEventCallback(t,this._handleUIBuilderEvent.bind(this,i),this)}},_handleUIBuilderEvent:function(e,t){"itemPushed"===t.eventType&&this._insertLiveAppIntoLastActiveEditor(e)},_insertLiveAppIntoLastActiveEditor:function(e){this._editorService.getActiveEditor(window).editor._forTestingOnly._pluginResolver.getDependency("rtc.liveapps.controller").insertLiveAppAtCurrentPosition(e)},removeTasksFromGallery:function(e){return this._promise.then(()=>{e.forEach((function(e){let t=this._getItemTag(e);this._uiBuilder.destroy(this._uiBuilder.tagToId(t))}),this)},()=>{}),this._promise},_getItemTag:function(e){return this._getItemCategoryTag(e)+"."+e.toolId},_getItemCategoryTag:function(e){var t=this._galleryPopupTag+"."+e.category;return this._uiBuilder.tagToId(t)||(t=this._galleryPopupTag+".my_tasks"),t},_updateIconProperty:function(e){return e.icon?n.getWorkerRoutingHost().slice(0,-1)+e.icon:"bigEmbeddedApp"},_postPopulateGallery:function(){this._galleryId=this._uiBuilder.tagToId(this._dropdownTag),this._galleryPopulated=!0},destroy:function(){this._rejectFunction(),this._rejectFunction=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8110)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.contextmenu.model"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){e.hideGroup("LiveAppsCopyPaste")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8112)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["livecode.saveload.withoutputs","rtc.backingstore"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(233),i(859),i(280),i(207),i(549)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(a,{constructor:function(e,t){this._saveload=e,this._backingStore=t,this._backingStore._load=this.load.bind(this),this._backingStore._save=this.save.bind(this),this._backingStore._exportToMLX=this.exportToMLX.bind(this)},load:function(e){if(this._saveload.hasTemplateType())this._saveload.setTemplateName(this._backingStore.getFileName()),this._saveload.applyTemplate();else if(e){if(!(e instanceof s))return this._saveload._loaddeferred&&!this._saveload._loaddeferred.isFulfilled()&&this._saveload._loaddeferred.reject(!1),!1;this._saveload.loadDocumentAndOutputFromOpcPackage(e)}return this._saveload._loaddeferred&&!this._saveload._loaddeferred.isFulfilled()&&this._saveload._loaddeferred.resolve(!0),!0},exportToMLX:function(e,t,i){return this._saveUntitledFile(t,e).then(function(e){return!!n.isFile(e)&&(i||(r.fileDataService.onFileClose(this._backingStore.file.fileInfo),this._openSavedFile(e)),e)}.bind(this),(function(){return!1}))},_openSavedFile:function(e){r.fileDataService.openedFilesDataStore.put(t.mixin(e,{modifiedDate:null,savePending:!1,id:n.pathFromFileInfo(e.fileInfo)})),r.fileDataService.onFileOpen(e)},_saveUntitledFile:function(e,t){var i=n.createFilePath(t,e);return this._saveload.save(i).then((function(i){return i.status?n.createEmptyFileObject(t,e):null}),(function(){return null}))},save:function(e,i){i=i||!1;var n=r.editorService.getAllOpenEditors(e);return o.exportToFileForEditor(n.getFile().fileInfo.name,t.mixin(n,{shouldNotOpenSavedFile:i})).then(e=>(this._backingStore.updateFile(e),e),()=>!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(8114),i(233),i(1230),i(280),i(1938)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{_SAVE_AS_DIALOG_ID:"saveAs",promptForFile:function(e){var a=new t,s=function(){r.layoutService.removeWidget(this._SAVE_AS_DIALOG_ID)}.bind(this),l=r.pathService.getCurrentFolder();l.path=r.pathService.getCurrentFolderPath();var c="."+e[0],d=new o({fileDataService:r.fileDataService,fileLocation:n.pathFromFileInfo(l),saveAsNameLabel:i.functionName,startValue:c,numSelectedChars:0,okAction:function(){var e=d.getFileName(),t=n.createFilePath(this.fileLocation,e),i=n.getFileNameNoExtension(e);a.resolve({functionName:i,filePath:t}),s()},cancelAction:s});return r.layoutService.addWidget(this._SAVE_AS_DIALOG_ID,"newDialog",d,{title:i.extractFunctionTitle}),a}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8115)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/extractFunctionDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{extractFunctionTitle:"Convert To Function",functionName:"Function Name:"}}},function(e,t,i){var n,o;n=[i(203),i(205),i(8117)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.integration.service.editorservice"]}},createInstance:function(e){var t=e.getEditorService().actionService;return new i(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(643),i(645),i(1636)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){},getToolstripTag:function(){return"motwToolstrip.liveEditorTab.run.runAll"},getRunListItemTag:function(){return"motwToolstrip.liveEditorTab.run.runList.run"},getDefaultRunDescription:function(){return t.runAllDescription},getLiveFunctionRunDescription:function(){return t.liveFunctionRunDescription},_getRunActionId:function(){return i.RUN_ALL}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8119)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.saveready.manager"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(212),i(203),i(204),i(2556),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r){return i([r],{constructor:function(e){this._saveReadyManager=e,o.getInstance().registerSaveReadyPlugin(this._saveReadyManager)},destroy:function(){this.inherited(arguments),o.getInstance().unregisterSaveReadyPlugin(this._saveReadyManager)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(698),i(2593),i(207),i(281),i(208),i(304),i(203),i(537),i(643)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return a(i,{constructor:function(e){this._backingStore=e,this.own(o.after(this._backingStore,"onSaveFailed",this._handleSaveFailed.bind(this),!0))},_getErrorMessage:function(e){return t.getStore().get(e)},_handleSaveFailed:function(t){var i=n.getAbsoluteFilePathFromBackingStore(this._backingStore),o=this._getErrorMessage(t);o||((o=this._getErrorMessage("generic")).dialogText=o.dialogText.replace("{0}",i));var r=o.dialogTitle?o.dialogTitle:n.isLiveCodeFile(this._backingStore)?l.genericTitle:s.genericTitle;"function"==typeof o.beforeDialogCreateCallback&&o.beforeDialogCreateCallback(i),e.openNotificationAlertDialog(r,o.dialogText,o.dialogOptions)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(224),i(8122),i(856)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{constructor:function(e){e=e||{},this.layoutStore=new o,this.layoutStrategy=new n},addWidget:function(e,i,n,o){e&&i&&n&&this._callWithModules(e,(function(r){if(r&&0!==r.length)n.destroyRecursive();else{var a=this.layoutStrategy.getModuleMetaDataFromId(i);a.parentId&&this.ensureParentExistsInStore(a.parentId),a.id=e,a.widget=n,t.mixin(a,o),this.layoutStore.newItem(a)}}))},removeWidget:function(e){var t=this;this._callWithModule(e,(function(e){var i="root"===e.parentId?null:this.layoutStrategy.getModuleMetaDataFromId(e.parentId);this.layoutStore.deleteItem(e),this.layoutStore.fetch({query:{parentId:e.parentId},onComplete:function(n){n&&0!==n.length?t.layoutStrategy.getNextFocusableModule(e.id)?t.focusWidget(t.layoutStrategy.getNextFocusableModule(e.id)):i&&i.hasOwnFocusPolicy||t.focusWidget(n[n.length-1].id):t.removeWidget(e.parentId)}})}))},removeWidgetsWithParentId:function(e){var t=this;this.layoutStore.fetch({query:{parentId:e},onComplete:function(e){e.forEach((function(e){t.removeWidget(e.id)}))}})},removeWidgetsWithLayoutId:function(e){var t=this;this.layoutStore.fetch({query:{layoutId:e},onComplete:function(e){e.forEach((function(e){t.removeWidget(e.id)}))}})},closeAppWindows:function(){var e=this;this.layoutStore.fetch({query:{layoutId:"appWindow"},onComplete:function(t){i.forEach(t,(function(t){e.removeWidget(t.id)}))}})},showWidget:function(e){this._callWithModule(e,(function(e){var t=this.layoutStore;this.layoutStore.fetch({query:{parentId:e.parentId,active:!0},onItem:function(e){t.setValue(e,"active",!1)}}),this.layoutStore.setValue(e,"active",!0)}))},focusWidget:function(e){this.showWidget(e),this._callWithModule(e,(function(t){var i=this.layoutStore;this.layoutStore.fetch({query:{focused:!0},onItem:function(t){t.id!==e&&i.setValue(t,"focused",!1)}}),this.layoutStore.setValue(t,"focused",!0)}))},disableWidget:function(e){this.updateWidget(e,"enabled",!1)},enableWidget:function(e){this.updateWidget(e,"enabled",!0)},updateWidget:function(e,t,i){this._callWithModule(e,(function(e){this.layoutStore.setValue(e,t,i)}))},updateWidgetsWithLayoutId:function(e,t,i){var n=this;this.layoutStore.fetch({query:{layoutId:e},onComplete:function(e){e.forEach((function(e){n.updateWidget(e.id,t,i)}))}})},ensureParentExistsInStore:function(e){this._callWithModules(e,(function(t){var i;t&&0!==t.length||((i=this.layoutStrategy.getModuleMetaDataFromId(e)).id=e,i.parentId&&"root"!==i.parentId&&this.ensureParentExistsInStore(i.parentId),this.layoutStore.newItem(i))}))},_callWithModule:function(e,t){this._callWithModules(e,(function(e){i.forEach(e,(function(e){t.call(this,e)}),this)}))},_callWithModules:function(e,t){var i=this;this.layoutStore.fetch({query:{id:e},onComplete:function(e){t.call(i,e)}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(224),i(445),i.dj.h("touch?55"),i(2501)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(){this.layoutConfig=o?new o:new r},getNextFocusableModule:function(e){return this.layoutConfig.getNextFocusableModule(e)},getModuleMetaDataFromId:function(e){var n,o,r=this.layoutConfig.getDefaultLayoutConfig(),a=this.layoutConfig.getDefaultModuleConfig();if(e=this._fallBackToMggForIE(e),o=this._findParentConfig(r,e))return(n=i.filter(o.modules,(function(t){return t.layoutId===e}))[0]).parentId=o.layoutId,delete n.modules,t.mixin(a,n),a;throw new Error("No module for the supplied key: "+e)},_findParentConfig:function(e,t){var i,n,o;if(e.modules)for(n=e.modules.length,i=0;i<n;i+=1)if(o=e.modules[i].layoutId===t?e:this._findParentConfig(e.modules[i],t))return o},_fallBackToMggForIE:function(e){return n("ie")&&"mggPopup"===e&&(e="mggDocked"),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8124)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/saveErrorDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{generic:{message:"Unable to save '{0}'.\nCheck the folder permissions and whether there is sufficient free space."},classesNotSupported:{message:"Classes are not supported in the Live Editor.\n\nTo continue, save the file as a plain text code file (.m)."},unsupportedMlxFile:{message:"Unable to export the current MLX file to the requested file type."}}}},function(e,t,i){e.exports={genericTitle:"MATLAB エディター",runLabel:"実行",runDescription:"アクティブ ファイルを保存して実行します",runToEndLabel:"最後まで実行",runToEndDescription:"現在のセクションから最後のセクションまで実行します",runCellLabel:"セクションを\n実行",runCellDescription:"現在のセクションを実行します",runCellShortcut:"Ctrl+Enter",runCellAdvanceLabel:"実行して次に進む",runCellAdvanceDescription:"現在のセクションを実行して次のセクションに進みます",runToCursorLabel:"カーソルまで実行",runToCursorDescription:"カーソルがある行まで実行します",runLanguageError:"MATLAB は有効な名前をもつファイルのみを実行できます。\nMATLAB 名は英字で始まり、英字、数字、またはアンダースコアのみを含んでいなければなりません。\n",pause:"一時停止",pauseDescription:"現在実行中のコードを一時停止して、デバッグ モードに入ります",continue:"続行",continueDescription:"実行を続行します",stepDescription:"次の行を実行します",stopLabel:"停止",stopDescription:"実行を終了します",stepInDescription:"次の行を実行して関数にステップ インします",stepInLabel:"ステップ イン",stepInShortcut:"F11",stepLabel:"ステップ",stepOutDescription:"現在の関数が戻るまで実行します",stepOutLabel:"ステップ アウト",stepOutShortcut:"Shift+F11",stepShortcut:"F10",sectionTitle:"セクション",nextSectionLabel:"次のセクション",nextSectionDescription:"次のセクションに移動します",nextSectionShortcut:"Ctrl+↓",previousSectionLabel:"前のセクション",previousSectionDescription:"前のセクションに移動します",previousSectionShortcut:"Ctrl+Up",breakpointsTitle:"ブレークポイント",errorHandlingTitle:"エラーの取り扱い",stopIfErrorText:"エラーで一時停止",stopIfErrorDescription:"エラーの発生時に実行を一時停止します",stopIfWarningText:"警告で一時停止",stopIfWarningDescription:"警告の発生時に実行を一時停止します",stopIfNanInfText:"NaN または Inf で一時停止",stopIfNanInfDescription:"NaN 値または Inf 値が返された時に実行を一時停止します",compareLabel:"比較",compareWithDisk:"ディスク上のバージョンと比較",compareWithAutosave:"自動保存機能による保存および比較",locationTitle:"場所",findLabel:"検索",replaceLabel:"置換...",replaceShortcut:"Ctrl+H",findFilesLabel:"ファイル検索",findListItemLabel:"検索...",findDescription:"テキストを検索し、必要に応じて置換します",findShortcut:"Ctrl+F",findNextLabel:"次を検索",findNextShortcut:"F3",findPreviousLabel:"前を検索",findPreviousShortcut:"Shift+F3",findSelectionLabel:"選択を検索",findSelectionShortcut:"Ctrl+F3",insertSectionLabel:"セクション区切り",insertSectionShortcut:"Ctrl+Alt+Enter",insertSectionDescription:"セクション区切りを挿入します",refactorLabel:"リファクター",refactorDescription:"選択内容を関数に変換します",refactorExternalFunctionLabel:"関数への変換",refactorExternalFunctionDescription:"関数への変換",refactorLocalFunctionLabel:"ローカル関数への変換",refactorLocalFunctionDescription:"ローカル関数への変換",smartIndentLabel:"スマート インデント",smartIndentDescription:"スマート インデント",indentDescription:"インデントを増やす",outdentDescription:"インデントを減らす",insertCommentShortcut:"Ctrl+R",smartIndentShortcut:"Ctrl+I",indentShortcut:"Ctrl+]",outdentShortcut:"Ctrl+[",publishTabTitle:"パブリッシュ",publishConfigurations:"パブリッシュ オプションの編集...",publishConfigurationsDescription:"パブリッシュ構成を編集または作成します",publishRecentConfiguration:"パブリッシュ",publishRecentConfigurationDescription:"最新の構成をパブリッシュします",publishPopupListConfigurationsHeader:"ファイル構成",publishPopupListConfigurationEditorHeader:"設定エディター",insertSectionTitle:"セクションの挿入",newSectionLabel:"セクション",newSectionShortcut:"Ctrl+Alt+Enter",newSectionDescription:"セクション区切りを挿入します",insertSectionWithTitleLabel:"タイトル付き\nのセクション",insertSectionWithTitleDescription:"タイトルと説明を付けてセクション区切りを挿入します",insertInlineMarkupTitle:"インライン マークアップの挿入",boldLabel:"太字",boldDescription:"太字テキストのマークアップを挿入します",italicLabel:"イタリック",italicDescription:"イタリック テキストのマークアップを挿入します",monospacedLabel:"等幅",monospacedDescription:"固定幅テキストのマークアップを挿入します",hyperlinkLabel:"ハイパーリンク",hyperlinkDescription:"ハイパーリンクのマークアップを挿入します",inlineLatexLabel:"インライン LaTeX",inlineLatexDescription:"インライン LaTeX のマークアップを挿入します",insertBlockMarkupTitle:"ブロック マークアップの挿入",bulletedListLabel:"箇条書きリスト",bulletedListDescription:"箇条書きリストのマークアップを挿入します",numberedListLabel:"番号付きリスト",numberedListDescription:"番号付きリストのマークアップを挿入します",imageLabel:"イメージ",imageDescription:"イメージのマークアップを挿入します",preformattedTextLabel:"整形済みテキスト",preformattedTextDescription:"整形済みテキストのマークアップを挿入します",codeLabel:"コード",codeDescription:"コードのマークアップを挿入します",displayLatexLabel:"LaTeX 表示",displayLatexDescription:"LaTeX 表示のマークアップを挿入します",publishSectionTitle:"パブリッシュ",publishMenuLabel:"パブリッシュ",publishAsHtmlLabel:"HTML として\nパブリッシュ",publishAsHtmlDescription:"Published フォルダーに MATLAB ファイルの HTML 出力を作成します",publishAsPdfLabel:"PDF として\nパブリッシュ",publishAsPdfDescription:"Published フォルダーに MATLAB ファイルの PDF 出力を作成します",breakpointsLabel:"ブレークポイント",breakpointsDescription:"コードの実行を一時停止するオプションを表示します",clearAllBreakpointsLabel:"すべてクリア",clearAllBreakpointsDescription:"すべてのファイル内のブレークポイントをすべてクリアします",toggleBreakpointLabel:"設定/クリア",toggleBreakpointDescription:"現在の行でブレークポイントを設定またはクリアします",toggleBreakpointShortcut:"F12",toggleBreakpointShortcutMac:"meta+\\",toggleEnableBreakpointLabel:"有効/無効",toggleEnableBreakpointDescription:"現在の行で有効または無効にします",saveAsLabel:"名前を付けて保存...",saveAsDescription:"現在のファイルを新しいファイルに保存します",saveAllLabel:"すべて保存",saveAllDescription:"変更されたファイルをすべて保存します",saveCopyAsLabel:"コピーに名前を付けて保存...",saveCopyAsDescription:"現在のファイルのバックアップを作成します",exportAsMFileLabel:"スクリプトとして保存",exportAsMFileDescription:"スクリプトとしてのコピーを保存します",getOlderVersionLabel:"それ以前",getOlderVersionDescription:"古いバージョンを表示します",getNewerVersionLabel:"それ以降",getNewerVersionDescription:"新しいバージョンを表示します",restoreAsLatestLabel:"最新として\n元に戻す",restoreAsLatestDescription:"最新として元に戻します",undoEditorLabel:"元に戻す",undoEditorDescription:"最後の編集を元に戻します",undoEditorShortcut:"Ctrl+Z",redoEditorLabel:"やり直し",redoEditorDescription:"最後の編集をやり直します",redoEditorShortcut:"Ctrl+Y",viewTabTitle:"ビュー",completions:"自動\n補完",completionsDescription:"候補と補完を自動的に表示します",currentLineStatusBar:"行",currentColumnStatusBar:"列"}},function(e,t,i){e.exports={genericTitle:"MATLAB 편집기",runLabel:"실행",runDescription:"활성 파일을 저장한 후 실행합니다.",runToEndLabel:"끝까지 실행",runToEndDescription:"현재 섹션부터 마지막 섹션까지 실행합니다.",runCellLabel:"섹션\n실행",runCellDescription:"현재 섹션을 실행합니다.",runCellShortcut:"Ctrl+Enter",runCellAdvanceLabel:"실행 및 진행",runCellAdvanceDescription:"현재 섹션을 실행하고 다음 섹션으로 진행합니다.",runToCursorLabel:"커서까지 실행",runToCursorDescription:"커서가 있는 라인까지 실행합니다.",runLanguageError:"MATLAB은 유효한 이름을 가진 파일만 실행할 수 있습니다.\nMATLAB 이름은 영문자로 시작해야 하며 영문자, 숫자, 밑줄만 포함할 수 있습니다.\n",pause:"일시 중지",pauseDescription:"현재 실행 중인 코드를 일시 중지하고 디버그 모드로 전환합니다.",continue:"계속",continueDescription:"실행을 계속합니다.",stepDescription:"다음 라인을 실행합니다.",stopLabel:"중지",stopDescription:"실행을 중지합니다.",stepInDescription:"다음 라인을 실행하고 호출 함수가 있으면 이동해 실행합니다.",stepInLabel:"스텝 인",stepInShortcut:"F11",stepLabel:"스텝",stepOutDescription:"실행 후 현재 함수를 호출한 곳으로 돌아갑니다.",stepOutLabel:"스텝 아웃",stepOutShortcut:"Shift+F11",stepShortcut:"F10",sectionTitle:"섹션",nextSectionLabel:"다음 섹션",nextSectionDescription:"다음 섹션으로 이동합니다.",nextSectionShortcut:"Ctrl+아래쪽 화살표",previousSectionLabel:"이전 섹션",previousSectionDescription:"이전 섹션으로 이동합니다.",previousSectionShortcut:"Ctrl+위쪽 화살표",breakpointsTitle:"중단점",errorHandlingTitle:"오류 처리",stopIfErrorText:"오류 발생 시 일시 중지",stopIfErrorDescription:"오류가 발생하면 실행을 일시 중지합니다.",stopIfWarningText:"경고 발생 시 일시 중지",stopIfWarningDescription:"경고가 발생하면 실행을 일시 중지합니다.",stopIfNanInfText:"NaN 또는 Inf 반환 시 일시 중지",stopIfNanInfDescription:"NaN 값이나 Inf 값이 반환되면 실행을 일시 중지합니다.",compareLabel:"비교",compareWithDisk:"디스크 버전 비교",compareWithAutosave:"저장 및 자동 저장과 비교",locationTitle:"위치",findLabel:"찾기",replaceLabel:"바꾸기...",replaceShortcut:"Ctrl+H",findFilesLabel:"파일 찾기",findListItemLabel:"찾기...",findDescription:"텍스트를 찾아 선택적으로 바꿉니다.",findShortcut:"Ctrl+F",findNextLabel:"다음 찾기",findNextShortcut:"F3",findPreviousLabel:"이전 찾기",findPreviousShortcut:"Shift+F3",findSelectionLabel:"선택 항목 찾기",findSelectionShortcut:"Ctrl+F3",insertSectionLabel:"섹션 나누기",insertSectionShortcut:"Ctrl+Alt+Enter",insertSectionDescription:"섹션 나누기를 삽입합니다.",refactorLabel:"리팩터링",refactorDescription:"선택 항목을 함수로 변환합니다.",refactorExternalFunctionLabel:"함수로 변환",refactorExternalFunctionDescription:"함수로 변환",refactorLocalFunctionLabel:"로컬 함수로 변환",refactorLocalFunctionDescription:"로컬 함수로 변환",smartIndentLabel:"스마트 들여쓰기",smartIndentDescription:"스마트 들여쓰기",indentDescription:"들여쓰기",outdentDescription:"내어쓰기",insertCommentShortcut:"Ctrl+R",smartIndentShortcut:"Ctrl+I",indentShortcut:"Ctrl+]",outdentShortcut:"Ctrl+[",publishTabTitle:"퍼블리시",publishConfigurations:"퍼블리시 옵션 편집...",publishConfigurationsDescription:"퍼블리시 구성을 편집하거나 생성합니다.",publishRecentConfiguration:"퍼블리시",publishRecentConfigurationDescription:"가장 최근 구성을 퍼블리시합니다.",publishPopupListConfigurationsHeader:"파일 구성",publishPopupListConfigurationEditorHeader:"구성 편집기",insertSectionTitle:"섹션 삽입",newSectionLabel:"섹션",newSectionShortcut:"Ctrl+Alt+Enter",newSectionDescription:"섹션 나누기를 삽입합니다.",insertSectionWithTitleLabel:"제목이 있는\n섹션",insertSectionWithTitleDescription:"제목과 설명을 포함하여 섹션 나누기를 삽입합니다.",insertInlineMarkupTitle:"인라인 마크업 삽입",boldLabel:"굵게",boldDescription:"굵은 텍스트 마크업을 삽입합니다.",italicLabel:"기울임꼴",italicDescription:"기울임꼴 텍스트 마크업을 삽입합니다.",monospacedLabel:"고정 폭",monospacedDescription:"고정 폭 텍스트 마크업을 삽입합니다.",hyperlinkLabel:"하이퍼링크",hyperlinkDescription:"하이퍼링크 마크업을 삽입합니다.",inlineLatexLabel:"인라인 LaTeX",inlineLatexDescription:"인라인 LaTeX 마크업을 삽입합니다.",insertBlockMarkupTitle:"블록 마크업 삽입",bulletedListLabel:"글머리 기호 목록",bulletedListDescription:"글머리 기호 목록 마크업을 삽입합니다.",numberedListLabel:"번호 매기기 목록",numberedListDescription:"번호 매기기 목록 마크업을 삽입합니다.",imageLabel:"이미지",imageDescription:"이미지 마크업을 삽입합니다.",preformattedTextLabel:"서식이 지정된 텍스트",preformattedTextDescription:"서식이 지정된 텍스트에 마크업을 삽입합니다.",codeLabel:"코드",codeDescription:"코드 마크업을 삽입합니다.",displayLatexLabel:"LaTeX 표시",displayLatexDescription:"LaTeX 표시 마크업을 삽입합니다.",publishSectionTitle:"퍼블리시",publishMenuLabel:"퍼블리시",publishAsHtmlLabel:"HTML로\n퍼블리시",publishAsHtmlDescription:"퍼블리시된 폴더에 MATLAB 파일의 HTML 출력물을 만듭니다.",publishAsPdfLabel:"PDF로\n퍼블리시",publishAsPdfDescription:"퍼블리시된 폴더에 MATLAB 파일의 PDF 출력물을 만듭니다.",breakpointsLabel:"중단점",breakpointsDescription:"코드 실행을 일시 중지하는 옵션을 표시합니다.",clearAllBreakpointsLabel:"모두 지우기",clearAllBreakpointsDescription:"모든 파일에서 모든 중단점을 지웁니다.",toggleBreakpointLabel:"설정/지우기",toggleBreakpointDescription:"현재 라인에 대해 중단점을 설정하거나 지웁니다.",toggleBreakpointShortcut:"F12",toggleBreakpointShortcutMac:"meta+\\",toggleEnableBreakpointLabel:"사용/사용 안 함",toggleEnableBreakpointDescription:"현재 라인에 대해 사용하거나 사용하지 않습니다.",saveAsLabel:"다른 이름으로 저장...",saveAsDescription:"현재 파일을 새 파일로 저장합니다.",saveAllLabel:"모두 저장",saveAllDescription:"수정된 파일을 모두 저장합니다.",saveCopyAsLabel:"복사본 저장...",saveCopyAsDescription:"현재 파일의 백업을 생성합니다.",exportAsMFileLabel:"스크립트로 저장",exportAsMFileDescription:"복사본을 스크립트로 저장합니다.",getOlderVersionLabel:"이전 버전",getOlderVersionDescription:"이전 버전을 표시합니다.",getNewerVersionLabel:"최신 버전",getNewerVersionDescription:"최신 버전을 표시합니다.",restoreAsLatestLabel:"최신 버전으로\n복원",restoreAsLatestDescription:"최신 버전으로 복원합니다.",undoEditorLabel:"실행 취소",undoEditorDescription:"마지막 편집 작업을 실행 취소합니다.",undoEditorShortcut:"Ctrl+Z",redoEditorLabel:"다시 실행",redoEditorDescription:"마지막 편집 작업을 다시 실행합니다.",redoEditorShortcut:"Ctrl+Y",viewTabTitle:"보기",completions:"자동 \n완성",completionsDescription:"제안 및 완성을 자동으로 표시합니다",currentLineStatusBar:"라인",currentColumnStatusBar:"열"}},function(e,t,i){e.exports={genericTitle:"MATLAB 编辑器",runLabel:"运行",runDescription:"保存并运行活动文件",runToEndLabel:"运行到结束",runToEndDescription:"从当前节运行到结束节",runCellLabel:"运行节\n",runCellDescription:"运行当前节",runCellShortcut:"Ctrl+Enter",runCellAdvanceLabel:"运行并前进",runCellAdvanceDescription:"运行当前节并前进到下一节",runToCursorLabel:"运行到光标处",runToCursorDescription:"一直运行到包含光标的行",runLanguageError:"MATLAB 只能运行具有有效名称的文件。\nMATLAB 名称必须以字母开头,并且只能包含字母、数字或下划线。\n",pause:"暂停",pauseDescription:"暂停当前正在执行的代码并进入调试模式",continue:"继续",continueDescription:"继续运行",stepDescription:"运行下一行",stopLabel:"停止",stopDescription:"退出执行",stepInDescription:"运行下一行并步入函数",stepInLabel:"步入",stepInShortcut:"F11",stepLabel:"步进",stepOutDescription:"一直运行到当前函数返回",stepOutLabel:"步出",stepOutShortcut:"Shift+F11",stepShortcut:"F10",sectionTitle:"节",nextSectionLabel:"下一节",nextSectionDescription:"导航到下一节",nextSectionShortcut:"Ctrl+向下键",previousSectionLabel:"上一节",previousSectionDescription:"导航到上一节",previousSectionShortcut:"Ctrl+向上键",breakpointsTitle:"断点",errorHandlingTitle:"错误处理",stopIfErrorText:"出现错误时暂停",stopIfErrorDescription:"出现错误时暂停执行",stopIfWarningText:"出现警告时暂停",stopIfWarningDescription:"出现警告时暂停执行",stopIfNanInfText:"返回 NaN 或 Inf 时暂停",stopIfNanInfDescription:"返回 NaN 或 Inf 值时暂停执行",compareLabel:"比较",compareWithDisk:"与磁盘上的版本进行比较",compareWithAutosave:"保存并与自动保存版本进行比较",locationTitle:"位置",findLabel:"查找",replaceLabel:"替换...",replaceShortcut:"Ctrl+H",findFilesLabel:"查找文件",findListItemLabel:"查找...",findDescription:"查找并替换文本",findShortcut:"Ctrl+F",findNextLabel:"查找下一处",findNextShortcut:"F3",findPreviousLabel:"查找上一处",findPreviousShortcut:"Shift+F3",findSelectionLabel:"查找所选内容",findSelectionShortcut:"Ctrl+F3",insertSectionLabel:"分节符",insertSectionShortcut:"Ctrl+Alt+Enter",insertSectionDescription:"插入分节符",refactorLabel:"重构",refactorDescription:"将所选内容转换为函数",refactorExternalFunctionLabel:"转换为函数",refactorExternalFunctionDescription:"转换为函数",refactorLocalFunctionLabel:"转换为局部函数",refactorLocalFunctionDescription:"转换为局部函数",smartIndentLabel:"智能缩进",smartIndentDescription:"智能缩进",indentDescription:"增加缩进",outdentDescription:"减少缩进",insertCommentShortcut:"Ctrl+R",smartIndentShortcut:"Ctrl+I",indentShortcut:"Ctrl+]",outdentShortcut:"Ctrl+[",publishTabTitle:"发布",publishConfigurations:"编辑发布选项...",publishConfigurationsDescription:"编辑或创建发布配置",publishRecentConfiguration:"发布",publishRecentConfigurationDescription:"发布最新配置",publishPopupListConfigurationsHeader:"文件配置",publishPopupListConfigurationEditorHeader:"配置编辑器",insertSectionTitle:"插入节",newSectionLabel:"节",newSectionShortcut:"Ctrl+Alt+Enter",newSectionDescription:"插入分节符",insertSectionWithTitleLabel:"包含标题\n的节",insertSectionWithTitleDescription:"插入带有标题和描述的分节符",insertInlineMarkupTitle:"插入行内标记",boldLabel:"粗体",boldDescription:"插入粗体文本标记",italicLabel:"斜体",italicDescription:"插入斜体文本标记",monospacedLabel:"等宽",monospacedDescription:"插入等宽文本标记",hyperlinkLabel:"超链接",hyperlinkDescription:"插入超链接标记",inlineLatexLabel:"行内 LaTeX",inlineLatexDescription:"插入行内 LaTeX 标记",insertBlockMarkupTitle:"插入行间标记",bulletedListLabel:"项目符号列表",bulletedListDescription:"插入项目符号列表的标记",numberedListLabel:"编号列表",numberedListDescription:"插入编号列表标记",imageLabel:"图像",imageDescription:"插入图像标记",preformattedTextLabel:"预设格式文本",preformattedTextDescription:"插入预设格式文本标记",codeLabel:"代码",codeDescription:"插入代码标记",displayLatexLabel:"显示 LaTeX",displayLatexDescription:"插入用于显示 LaTeX 的标记",publishSectionTitle:"发布",publishMenuLabel:"发布",publishAsHtmlLabel:"以 HTML 形式\n发布",publishAsHtmlDescription:"在 Published 文件夹中创建 MATLAB 文件的 HTML 输出",publishAsPdfLabel:"以 PDF 形式\n发布",publishAsPdfDescription:"在 Published 文件夹中创建 MATLAB 文件的 PDF 输出",breakpointsLabel:"断点",breakpointsDescription:"显示用于暂停代码执行的选项",clearAllBreakpointsLabel:"全部清除",clearAllBreakpointsDescription:"清除所有文件中的全部断点",toggleBreakpointLabel:"设置/清除",toggleBreakpointDescription:"设置或清除当前行上的断点",toggleBreakpointShortcut:"F12",toggleBreakpointShortcutMac:"meta+\\",toggleEnableBreakpointLabel:"启用/禁用",toggleEnableBreakpointDescription:"在当前行上启用或禁用",saveAsLabel:"另存为...",saveAsDescription:"将当前文件保存为新文件",saveAllLabel:"全部保存",saveAllDescription:"保存所有已修改的文件",saveCopyAsLabel:"将副本另存为...",saveCopyAsDescription:"创建当前文件的备份",exportAsMFileLabel:"另存为脚本",exportAsMFileDescription:"将副本另存为脚本",getOlderVersionLabel:"更早",getOlderVersionDescription:"查看更早版本",getNewerVersionLabel:"更新",getNewerVersionDescription:"查看更新版本",restoreAsLatestLabel:"还原\n为最新",restoreAsLatestDescription:"还原为最新版本",undoEditorLabel:"撤消",undoEditorDescription:"撤消上一次编辑",undoEditorShortcut:"Ctrl+Z",redoEditorLabel:"重做",redoEditorDescription:"重做上一次编辑",redoEditorShortcut:"Ctrl+Y",viewTabTitle:"视图",completions:"自动填充\n",completionsDescription:"自动显示建议和自动填充项",currentLineStatusBar:"行",currentColumnStatusBar:"列"}},function(e,t,i){e.exports={root:{genericTitle:"MATLAB Editor",runLabel:"Run",runDescription:"Save and run the active file",runToEndLabel:"Run to End",runToEndDescription:"Run from current section to end section",runCellLabel:"Run\nSection",runCellDescription:"Run current section",runCellShortcut:"Ctrl+Enter",runCellAdvanceLabel:"Run and Advance",runCellAdvanceDescription:"Run current section and advance to next section",runToCursorLabel:"Run to Cursor",runToCursorDescription:"Run up to line containing cursor",runLanguageError:"MATLAB can only run a file with a valid name.\nMATLAB names must start with a letter and contain only letters, numbers, or underscores.\n",pause:"Pause",pauseDescription:"Pause the currently executing code and enter debug mode",continue:"Continue",continueDescription:"Continue running",stepDescription:"Run next line",stopLabel:"Stop",stopDescription:"Quit execution",stepInDescription:"Run next line and step into function",stepInLabel:"Step In",stepInShortcut:"F11",stepLabel:"Step",stepOutDescription:"Run until current function returns",stepOutLabel:"Step Out",stepOutShortcut:"Shift+F11",stepShortcut:"F10",sectionTitle:"SECTION",nextSectionLabel:"Next Section",nextSectionDescription:"Navigate to next section",nextSectionShortcut:"Ctrl+Down",previousSectionLabel:"Previous Section",previousSectionDescription:"Navigate to previous section",previousSectionShortcut:"Ctrl+Up",breakpointsTitle:"Breakpoints",errorHandlingTitle:"Error Handling",stopIfErrorText:"Pause on Errors",stopIfErrorDescription:"Pauses execution when an error occurs",stopIfWarningText:"Pause on Warnings",stopIfWarningDescription:"Pauses execution when a warning occurs",stopIfNanInfText:"Pause on NaN or Inf",stopIfNanInfDescription:"Pauses execution when a NaN or Inf value is returned",compareLabel:"Compare",compareWithDisk:"Compare with Version on Disk",compareWithAutosave:"Save and Compare with Autosave",locationTitle:"LOCATION",findLabel:"Find",replaceLabel:"Replace...",replaceShortcut:"Ctrl+H",findFilesLabel:"Find Files",findListItemLabel:"Find...",findDescription:"Find and optionally replace text",findShortcut:"Ctrl+F",findNextLabel:"Find Next",findNextShortcut:"F3",findPreviousLabel:"Find Previous",findPreviousShortcut:"Shift+F3",findSelectionLabel:"Find Selection",findSelectionShortcut:"Ctrl+F3",insertSectionLabel:"Section Break",insertSectionShortcut:"Ctrl+Alt+Enter",insertSectionDescription:"Insert section break",refactorLabel:"Refactor",refactorDescription:"Convert selection to function",refactorExternalFunctionLabel:"Convert to Function",refactorExternalFunctionDescription:"Convert to Function",refactorLocalFunctionLabel:"Convert to Local Function",refactorLocalFunctionDescription:"Convert to Local Function",smartIndentLabel:"Smart Indent",smartIndentDescription:"Smart Indent",indentDescription:"Increase Indent",outdentDescription:"Decrease Indent",insertCommentShortcut:"Ctrl+R",smartIndentShortcut:"Ctrl+I",indentShortcut:"Ctrl+]",outdentShortcut:"ctrl+[",publishTabTitle:"PUBLISH",publishConfigurations:"Edit Publishing Options...",publishConfigurationsDescription:"Edit or create a publish configuration",publishRecentConfiguration:"Publish",publishRecentConfigurationDescription:"Publish the most recent configuration",publishPopupListConfigurationsHeader:"File Configurations",publishPopupListConfigurationEditorHeader:"Configuration Editor",insertSectionTitle:"INSERT SECTION",newSectionLabel:"Section",newSectionShortcut:"Ctrl+Alt+Enter",newSectionDescription:"Insert section break",insertSectionWithTitleLabel:"Section\nwith Title",insertSectionWithTitleDescription:"Insert section break with title and description",insertInlineMarkupTitle:"INSERT INLINE MARKUP",boldLabel:"Bold",boldDescription:"Insert markup for bold text",italicLabel:"Italic",italicDescription:"Insert markup for italic text",monospacedLabel:"Monospaced",monospacedDescription:"Insert markup for monospaced text",hyperlinkLabel:"Hyperlink",hyperlinkDescription:"Insert markup for hyperlink",inlineLatexLabel:"Inline LaTeX",inlineLatexDescription:"Insert markup for inline LaTeX",insertBlockMarkupTitle:"INSERT BLOCK MARKUP",bulletedListLabel:"Bulleted List",bulletedListDescription:"Insert markup for Bulleted list",numberedListLabel:"Numbered List",numberedListDescription:"Insert markup for Numbered List",imageLabel:"Image",imageDescription:"Insert markup for Image",preformattedTextLabel:"Preformatted Text",preformattedTextDescription:"Insert markup for Preformatted Text",codeLabel:"Code",codeDescription:"Insert markup for Code",displayLatexLabel:"Display LaTeX",displayLatexDescription:"Insert markup for Display LaTeX",publishSectionTitle:"PUBLISH",publishMenuLabel:"Publish",publishAsHtmlLabel:"Publish\nas HTML",publishAsHtmlDescription:"Create HTML output of MATLAB file in Published folder",publishAsPdfLabel:"Publish\nas PDF",publishAsPdfDescription:"Create PDF output of MATLAB file in Published folder",breakpointsLabel:"Breakpoints",breakpointsDescription:"Show options for pausing code execution",clearAllBreakpointsLabel:"Clear All",clearAllBreakpointsDescription:"Clear all breakpoints in all files",toggleBreakpointLabel:"Set/Clear",toggleBreakpointDescription:"Set or Clear breakpoint on current Line",toggleBreakpointShortcut:"F12",toggleBreakpointShortcutMac:"meta+\\",toggleEnableBreakpointLabel:"Enable/Disable",toggleEnableBreakpointDescription:"Enable or Disable on current Line",saveAsLabel:"Save As...",saveAsDescription:"Save current file to a new file",saveAllLabel:"Save All",saveAllDescription:"Save all modified files",saveCopyAsLabel:"Save Copy As...",saveCopyAsDescription:"Create a backup of current file",exportAsMFileLabel:"Save as Script",exportAsMFileDescription:"Save a copy as a script",getOlderVersionLabel:"Older",getOlderVersionDescription:"View older version",getNewerVersionLabel:"Newer",getNewerVersionDescription:"View newer version",restoreAsLatestLabel:"Restore\nas latest",restoreAsLatestDescription:"Restore as latest",undoEditorLabel:"Undo",undoEditorDescription:"Undo last edit",undoEditorShortcut:"Ctrl+Z",redoEditorLabel:"Redo",redoEditorDescription:"Redo last edit",redoEditorShortcut:"Ctrl+Y",viewTabTitle:"VIEW",completions:"Automatic \nCompletions",completionsDescription:"Show suggestions and completions automatically",currentLineStatusBar:"Ln",currentColumnStatusBar:"Col"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(8130),i(292),i(2595),i(2596),i(2597),i(2598),i(2599)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(t,{_updateView:function(e,t,l,c,d){const u=i.getInstance();n.setValue(u,"UTF-8"),o.setValue(u,d),""!==e?r.setValue(u,e):r.setBlank(u),l!==this._RICH_TEXT_SECTION_VALUE?(a.setValue(u,l),s.setValue(u,c)):(a.setBlank(u),s.setBlank(u))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2594),i(208),i(207),i(923),i(454),i(1128)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(o,{_RICH_TEXT_SECTION_VALUE:-1,constructor:function(e,t,i,o,r,a,s,l){this._cursor=e,this._document=t,this._editorTabService=o,this._lineNumberService=i,this._language=r,this._fileStructureService=a,this._fileTypeService=s,this._backingstore=l,this._timeOut=null,this.own(n.after(this._cursor,"onChange",this._handleCursorChange.bind(this))),this.own(n.after(this._language,"onLanguageChanged",this._assembleDataAndUpdateView.bind(this))),this.own(n.after(this._language,"onLanguageUpdated",this._assembleDataAndUpdateView.bind(this)))},_handleCursorChange:function(){this._timeOut&&clearTimeout(this._timeOut),this._timeOut=setTimeout(()=>this._assembleDataAndUpdateView(),250)},_assembleDataAndUpdateView:function(){const e=this._cursor.getLineColumn().line,t=e-1,i=r.getTextBeforeCursor(this._cursor,this._document,!1),n=this._editorTabService.getLengthCompensatingTabs(i)+1,o=this._lineNumberService.getCodeLineNumberFromLineNumber(t),l=this._language.getLanguage(),c=s.Utilities.getTextValueForType(this._backingstore.getLineEndingStyle?this._backingstore.getLineEndingStyle():s.Types.LF);if(l===a.DEFAULT_SUPPORTED_LANGUAGES.MATLAB)this._fileStructureService.whenReady(()=>{this._fileTypeService.whenReady(()=>{const i=this._getEnclosingScopeString(t,o,n);this._updateView(i,e,o,n,c)})});else{const t=this._language.getDescription();this._updateView(t,e,o,n,c)}},_getEnclosingScopeString:function(e,t,i){let n;return n=t===this._RICH_TEXT_SECTION_VALUE?this._findEnclosingScopeForNonCodeLine(e):this._findEnclosingScopeForCodeLine(t,i),n.join(" / ")},_findEnclosingScopeForNonCodeLine:function(e){let t,i=this._lineNumberService.getCodeLineNumberAtOrBeforeLineNumber(e);if(0===i)i=1,t=1;else{const e=this._lineNumberService.getLineNumberFromCodeLineNumber(i);t=this._document.getLineLength(e+1)}return this._findEnclosingScopeForCodeLine(i,t)},_findEnclosingScopeForCodeLine:function(e,t){let n=[];return this._fileTypeService.isScript()&&n.push(i.scriptLabel),n.concat(this._fileStructureService.getEnclosingScope(e,t))},_updateView:function(e,t,i,n,o){throw new Error("Unimplemented API")}})}),e,t),e.exports=o},function(e,t,i){e.exports={scriptLabel:"スクリプト",variableHighlightStatusBarLabel:'"${1}" の ${0} 回の使用が見つかりました'}},function(e,t,i){e.exports={scriptLabel:"스크립트",variableHighlightStatusBarLabel:'"${1}"이(가) ${0}회 사용됨'}},function(e,t,i){e.exports={scriptLabel:"脚本",variableHighlightStatusBarLabel:'发现 "${1}" 使用了 ${0} 次'}},function(e,t,i){e.exports={root:{scriptLabel:"script",variableHighlightStatusBarLabel:'${0} usages of "${1}" found'},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(205),i(8136)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.richtext","rtc.actionservice","rtc.cursor"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(643),i(582),i(525)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e,n,o){this._actionDataService=n,this._cursor=o,this._richText=e,this._actionDataService.loadActions([{id:"rtc_paragraph_style",enabled:!1}]),i.after(this._cursor,"onChange",t.hitch(this,"_updateActions"))},_updateActions:function(){var e=this._richText.getFormatAndStyle(),t=o.NORMAL.FORMAT;r.isRichTextParagraphFormat(e.format)&&(t=e.format);var i="smallNormalTextStyle",a=n.normal;switch(t){case o.TITLE.FORMAT:i="smallTitleTextStyle",a=n.title;break;case o.HEADING1.FORMAT:i="smallHeadingTextStyle",a=n.heading;break;case o.HEADING2.FORMAT:i="smallHeading2TextStyle",a=n.heading2;break;case o.HEADING3.FORMAT:i="smallHeading3TextStyle",a=n.heading3}this._actionDataService.updateAction("rtc_paragraph_style",{enabled:this._richText.canSetFormat(),text:a,icon:i})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2594),i(236),i(434),i(292),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(a,{_STATUS_BAR_TAG:"variableHighlightStatusBar",constructor:function(e,t){this._statusBar=e,this._variableHighlight=t,this.own(r.after(t,"onModelUpdated",this._updateStatusBar.bind(this),!0)),this._uiBuilder=o.getInstance(),this._statusBarWidgetId=this._uiBuilder.create({tag:this._STATUS_BAR_TAG,type:n.STATUS_LABEL})},_updateStatusBar:function(e){if(this._clearTransientStatus(),e.length>1){var n=i.substitute(t.variableHighlightStatusBarLabel,{0:e.length,1:this._variableHighlight.getHighlightedVariableText()});this._uiBuilder.set(this._statusBarWidgetId,"text",n),this._statusBar.setTransientStatus(this._statusBarWidgetId)}},_clearTransientStatus:function(){this._statusBar.resetTransientStatus()},destroy:function(){this.inherited(arguments),this._uiBuilder.destroy(this._statusBarWidgetId)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8139)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.cursor","rtc.view","rtc.scrollpane","rtc.actionservice","rtc.richtext.images"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)},priority:function(){return 2},destroyInstance:function(e){e.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(211),i(213),i(206),i(209),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(s,{constructor:function(e,o,a,s,l){this._cursor=e,this._view=o,this._imagesPlugin=l,this._actionService=s,this._actionService.loadActions([{id:"rtc_image",enabled:!1,callback:t.hitch(this,"_insertImage")}]);this._hiddenField=n.create("input",{type:"file",accept:"image/*",style:{display:"none"}}),n.place(this._hiddenField,a),this.own(r(this._hiddenField,"change",t.hitch(this,"_handleImageFileInputChange"))),this._fileReader=new FileReader,this.own(r(this._fileReader,"load",t.hitch(this,"_imageLoaded"))),this.own(i.after(this._cursor,"onChange",t.hitch(this,this._updateActions)))},_updateActions:function(){this._actionService.updateAction("rtc_image",{enabled:this._canInsertImage()})},_insertImage:function(){this._actionService.getAction("rtc_image").enabled&&(a.assert(this._canInsertImage(),"Insert image action called even though it should have been disabled."),this._hiddenField.click())},_handleImageFileInputChange:function(e){this._hiddenField.files.length<=0||this._fileReader.readAsDataURL(this._hiddenField.files[0])},_canInsertImage:function(){return this._imagesPlugin.canInsertImage()},_imageLoaded:function(e){var t=this._hiddenField.value;this._putImage({imgSrc:e.target.result,altText:t.replace(/^.*(\\|\/|\:)/,"")}),this._hiddenField.value=""},_putImage:function(e){var t=this._imagesPlugin.getWidthToFitOnScreen();this._imagesPlugin.startImageChange();var i=this._imagesPlugin.insertImageFromData(e);this._view.layoutNode(i),this._view.getNodeBox(i).naturalWidth>t&&(i.width=t),this._imagesPlugin.endImageChange(i)},destroy:function(){n.destroy(this._hiddenField),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(219),i(2602)],o=i.dj.d(n,(function(e,t,i,n){const o="matlabunit_runtests",r="matlabunit_runcurrenttest",a={[o]:"run-all-tests",[r]:"run-current-test"};return e(n,{onload:function(){this.inherited(arguments),i.subscribe(this._MLXCHANGED_CHANNEL,"_handleMLXChanged",this),this.own(t.after(this._debugServices,"onDebugModeChanged",this._handleDebugModeChanged.bind(this),!0)),this._updateTestState()},destroy:function(){i.unsubscribe(this._MLXCHANGED_CHANNEL,"_handleMLXChanged",this),this._runTestsActions.destroy(),this.inherited(arguments)},runtests:function(){return this._relayAction(o),!0},runCurrentTest:function(){return this._relayAction(r),!0},onTestStateChanged:function(e){this.inherited(arguments),this._updateStepButton(e&&!this._debugServices.isDebugging)},_handleDebugModeChanged:function(e){this._lastKnownTestState&&(this._updateActions(!e),this._updateStepButton(!e))},_handleMLXChanged:function(e){const t=e.data;this._lastKnownTestState=t,this.onTestStateChanged(t)},_updateStepButton:function(e){this._actions._overrideStepActionEnablement=e,this._actions._refreshActions()},_relayAction:function(e){let t=a[e];i.publish("/matlabunit/runtests/javaActions/execute/"+this._id,{actionId:t})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(1621),i(241),i(1642),i(2602),i(8142),i(1643)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(r,{constructor:function(e,t,i,n,o,r,a,s,l){this.inherited(arguments),this._idleNotifier=s,this._internalDocument=l},onload:function(){this.inherited(arguments);let e=o.getInstance();this.own(t.after(e,"onActiveFileChanged",this._onActiveFileChanged.bind(this),!0)),this.own(t.after(this._idleNotifier,"onDocumentIdle",this._onDocumentIdle.bind(this))),this._debugServices.isDebugging||this._updateTestStateOnDocumentLoad()},runtests:async function(){let e=this._toolstripSection.getRunConfig();const t=o.getInstance().getActiveFile();let i=await this.getRunTestsFirstArgument(t);await this._applyCLC(e);let n=a.toCommandString(i,e);this._matlabExecutionDataService.authoringEval(n,this._matlabExecutionDataService.streamingEval)},runCurrentTest:async function(){let e=this._toolstripSection.getRunConfig(),t=Object.assign({},e);const r=o.getInstance().getActiveFile();let s=this.getRunTestsFirstArgument(r),l=this.getActiveTestProcedures(r),[c,d]=await Promise.all([s,l]);if(0===d.length)return void n.displayAlertDialog("MATLAB Editor",i.NoTestsSelected);await this._applyCLC(t);let u=a.toCommandString(c,Object.assign(t,{ProcedureName:d}));this._matlabExecutionDataService.authoringEval(u,this._matlabExecutionDataService.streamingEval)},getRunTestsFirstArgument:async function(e){return(await s.FEval(1,"matlab.unittest.internal.ui.toolstrip.getRunTestsFirstArgument",e))[0]},getActiveTestProcedures:async function(e){return(await s.FEval(1,"matlab.unittest.internal.ui.toolstrip.getTestProcedureNames",e))[0].mwdata},_applyCLC:function(e){if(e.ClearCommandWindow)return s.FEval(0,"clc")},_onActiveFileChanged:function(e){if(!this._debugServices.isDebugging&&e===this._getFilePath()){let e=!0===this._lastKnownTestState;this.onTestStateChanged(e)}},_onDocumentIdle:function(){let e=this._internalDocument.getFullRange(),t=this._internalDocument.getTextInRange(e);this._updateTestState(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{parse:function(e){let t=[];if(e.ProcedureName&&e.ProcedureName.length>0){let i=e.ProcedureName;i=i.map(e=>`"${e}"`),i=1===i.length?i[0]:`[${i.join(",")}]`,t.push('"ProcedureName"',i)}return["Strict","Debug","UseParallel"].forEach(i=>{e[i]&&t.push(`"${i}"`,"true")}),["OutputDetail","LoggingLevel"].forEach(i=>{e[i]&&t.push(`"${i}"`,`"${e[i]}"`)}),t},toCommandString:function(e,t){let i=this.parse(t);return i.unshift(""),i=i.join(","),`runtests("${e}"${i})`}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){const t={RUN_TESTS:"matlabunit_runtests",RUN_CURRENT_TEST:"matlabunit_runcurrenttest"};return e([],{constructor:function(e,t,i,n){this._actionService=e,this._keyboardShortcutsModel=t,this._keyHandler=i,this._debugServices=n},destroy:function(){this._removeOtherKeyBindings(),this._unloadActions()},build:function(e,i){let n=[{id:t.RUN_TESTS,enabled:!1,key:"f5",platformKey:{mac:"meta_alt_r"},callback:this._executeCallback.bind(this,e)},{id:t.RUN_CURRENT_TEST,enabled:!1,key:"ctrl_enter",platformKey:{mac:"meta_enter"},callback:this._executeCallback.bind(this,i)}];this._actionService.loadActions(n),this._addOtherKeyBindings(),this._modifyActionsToFireFirst(n)},enable:function(){this._delegateToActionService("enableAction")},disable:function(){this._delegateToActionService("disableAction")},_executeCallback:function(e){return!this._debugServices.isDebugging&&(e(),!0)},_unloadActions:function(){this._delegateToActionService("removeAction")},_delegateToActionService:function(e){Object.values(t).forEach(t=>{this._actionService.getAction(t)&&this._actionService[e](t)})},_addOtherKeyBindings:function(){this._keyHandler.addBinding({platformKey:{mac:"f5"}},t.RUN_TESTS)},_removeOtherKeyBindings:function(){this._keyHandler.removeBinding({platformKey:{mac:"f5"}},t.RUN_TESTS)},_modifyActionsToFireFirst:function(e){e.forEach(e=>{let t=e.id;this._keyboardShortcutsModel.getActionGroupsContainingAction(t).forEach(e=>{this._keyboardShortcutsModel.moveActionIdToFrontOfActionGroup(e,t)})})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(1621),i(230),i(226),i(1642)],o=i.dj.d(n,(function(e,t,i,n,o,r){const a={popups:[{tag:"matlabunit.customizerun.popup",type:o.POPUP_LIST,children:[{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.clc",text:i.ClearOutput.Label,description:i.ClearOutput.Description,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.strict",text:i.Strict.Label,description:i.Strict.Description,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.parallel",text:i.Parallel.Label,description:i.Parallel.Description,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.debug",text:i.Debug.Label,description:i.Debug.Description,closePopupOnClick:!0},{type:o.POPUP_LIST_HEADER,title:i.OutputDetail},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.outputdetail.default",text:i.Verbosity.Default,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.outputdetail.none",text:i.Verbosity.None,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.outputdetail.terse",text:i.Verbosity.Terse,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.outputdetail.concise",text:i.Verbosity.Concise,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.outputdetail.detailed",text:i.Verbosity.Detailed,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.outputdetail.verbose",text:i.Verbosity.Verbose,closePopupOnClick:!0},{type:o.POPUP_LIST_HEADER,title:i.LoggingLevel},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.logginglevel.default",text:i.Verbosity.Default,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.logginglevel.none",text:i.Verbosity.None,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.logginglevel.terse",text:i.Verbosity.Terse,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.logginglevel.concise",text:i.Verbosity.Concise,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.logginglevel.detailed",text:i.Verbosity.Detailed,closePopupOnClick:!0},{type:o.LIST_ITEM_WITH_CHECKBOX,tag:"matlabunit.logginglevel.verbose",text:i.Verbosity.Verbose,closePopupOnClick:!0}]},{tag:"matlabunit.runtests.popup",type:o.POPUP_LIST,children:[{tag:"matlabunit.runtests.item",type:o.LIST_ITEM,text:i.RunTests.Label,icon:"RunTests_Small",shortcut:"Ctrl+Alt+R"},{type:o.POPUP_LIST_HEADER,title:i.TestOptions},{type:o.LIST_ITEM_WITH_POPUP,text:i.ConfigureRunTests.Label,description:i.ConfigureRunTests.Description,popupTag:"matlabunit.customizerun.popup"},{tag:"matlabunit.runtests.errorHandlingTitle",title:i.ErrorHandlingTitle,type:o.POPUP_LIST_HEADER},{tag:"matlabunit.runtests.stopIfError",actionId:"motw.stopIfError",type:o.LIST_ITEM_WITH_CHECKBOX,closePopupOnClick:!0},{tag:"matlabunit.runtests.stopIfWarning",actionId:"motw.stopIfWarning",type:o.LIST_ITEM_WITH_CHECKBOX,closePopupOnClick:!0},{tag:"matlabunit.runtests.stopIfNanInf",actionId:"motw.stopIfNanInf",type:o.LIST_ITEM_WITH_CHECKBOX,closePopupOnClick:!0}]}]},s=[void 0,"None","Terse","Concise","Detailed","Verbose"],l=e(n,{_built:!1,constructor:function(e,t,i){this._uibuilder=e,this._rootSectionId=void 0,this._runConfig={ClearCommandWindow:!1,Strict:!1,Debug:!1,UseParallel:!1,OutputDetail:void 0,LoggingLevel:void 0},this._debugServices=t,this._runTestsActions=i},startup:function(){this.own(t.after(this._debugServices,"onDebugModeChanged",this._handleDebugModeChanged.bind(this),!0))},isEnabled:function(){return this._rootSectionId&&-1!==this._uibuilder.indexOf(this._rootSectionId)},replace:function(){let e=r.getInstance().isMLXFile()?"motwToolstrip.liveEditorTab":"motwToolstrip.editorTab",t=this._uibuilder.tagToId(e);if(void 0===t)return;let i=r.getInstance().isMLXFile()?"motwToolstrip.liveEditorTab.run":"motwToolstrip.editorTab.run",n=this._uibuilder.tagToId(i);this._uibuilder.remove(n),this._uibuilder.add(this._rootSectionId,t,5)},restore:function(){this._uibuilder.remove(this._rootSectionId);let e=r.getInstance().isMLXFile()?"motwToolstrip.liveEditorTab":"motwToolstrip.editorTab",t=r.getInstance().isMLXFile()?"motwToolstrip.liveEditorTab.run":"motwToolstrip.editorTab.run",i=this._uibuilder.tagToId(t);if(this._uibuilder.isAnOrphan(i)){let t=this._uibuilder.tagToId(e);this._uibuilder.add(i,t,5)}},getRunConfig:function(){return this._runConfig},build:function(e,t){const n=this._uibuilder;if(this._built)return;this._built=!0,n.createPopupsFromConfig(a);const r=n.create({type:o.SECTION,tag:"matlabunit.runtestssection",title:i.RunTests.Label});this._rootSectionId=r;let l=n.create({parentId:r,type:o.COLUMN}),c=n.create({tag:"matlabunit.runtests.button",parentId:l,type:o.SPLIT_BUTTON,text:i.RunTests.Label,description:i.RunTests.Description,icon:"RunTests_Large",quickAccessIcon:"RunTests_Small",key:"f5",platformKey:{mac:"meta_alt_r"},popupTag:"matlabunit.runtests.popup",shortcut:"F5"}),d=n.create({parentId:r,type:o.COLUMN}),u=n.create({tag:"matlabunit.runCurrentTest.button",parentId:d,type:o.PUSH_BUTTON,text:i.RunCurrentTest.Label,description:i.RunCurrentTest.Description,icon:"RunCurrentTest_Large",quickAccessIcon:"RunCurrentTest_Small",key:"ctrl_enter",platformKey:{mac:"meta_alt_r"},shortcut:"Ctrl+Enter"});const h=function(){e()};n.addEventCallback(c,h);let p=n.tagToId("matlabunit.runtests.item");n.addEventCallback(p,h),n.addEventCallback(u,(function(){t()})),n.addPropertySetCallback(n.tagToId("matlabunit.clc"),e=>{this._runConfig.ClearCommandWindow=e.newValue}),n.addPropertySetCallback(n.tagToId("matlabunit.strict"),e=>{this._runConfig.Strict=e.newValue}),n.addPropertySetCallback(n.tagToId("matlabunit.parallel"),e=>{"selected"===e.property&&(this._runConfig.UseParallel=e.newValue,n.widgetByTag("matlabunit.debug").set("disabled",e.newValue))}),n.addPropertySetCallback(n.tagToId("matlabunit.debug"),e=>{"selected"===e.property&&(this._runConfig.Debug=e.newValue,n.widgetByTag("matlabunit.parallel").set("disabled",e.newValue))}),this._groupRadioChecks(["matlabunit.outputdetail.default","matlabunit.outputdetail.none","matlabunit.outputdetail.terse","matlabunit.outputdetail.concise","matlabunit.outputdetail.detailed","matlabunit.outputdetail.verbose"],e=>{this._runConfig.OutputDetail=s[e]}),this._groupRadioChecks(["matlabunit.logginglevel.default","matlabunit.logginglevel.none","matlabunit.logginglevel.terse","matlabunit.logginglevel.concise","matlabunit.logginglevel.detailed","matlabunit.logginglevel.verbose"],e=>{this._runConfig.LoggingLevel=s[e]})},_groupRadioChecks:function(e,t){const i=this._uibuilder;let n=[];e.forEach(e=>{n.push(i.tagToId(e))});const o=n.length;let r=0;i.set(n[r],"selected",!0);for(let e=0;e<o;e++)i.addPropertySetCallback(n[e],o=>{o.newValue?(i.set(n[r],"selected",!1),r=e,t(r)):i.set(n[r],"selected",!0)})},_handleDebugModeChanged:async function(e){const t=()=>{const e=this._uibuilder,t=r.getInstance().isMLXFile()?"motwToolstrip.liveEditorTab.run.continue":"motwToolstrip.editorTab.run.continue";let i=e.tagToId(t),n=e.getParentId(i);e.remove(i),e.isAnOrphan(e.tagToId(t))&&e.add(i,n,1)};if(e)return this.restore(),t(),void this._runTestsActions.disable();await r.getInstance().getActiveFileInfoForToolstrip()&&(this.replace(),this._runTestsActions.enable())}});let c;return{_impl:l,getInstance:function(...e){return c||(c=new l(...e)),c}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return class{build(){}destroy(){}replace(){}restore(){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1234),i(484),i(8158),i(8162)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{modulePath:"MOTW/editor/LiveEditorTabGroupFactory",createWidget:function(e,i){t.ensureActionsLoaded(e);var r=e.uiBuilder;r.createPopupsFromConfig(o),r.addTabGroupFromConfig(n,"motwToolstrip.liveEditorTabGroup")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(757),i(299),i(555),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(i,{constructor:function(e){r.assert(e,"Must supply actionService");var t=[n.SAVE,n.NEW_FILE,n.NEW_FILE_EDITOR,n.NEW_FILE_LIVE_EDITOR,n.NEW_LIVE_SCRIPT,n.NEW_FUNCTION,n.NEW_LIVE_FUNCTION,n.NEW_EXAMPLE,n.NEW_CLASS,n.NEW_TEST_CLASS,n.NEW_LIVE_CLASS,n.SAVE,n.FIND_FILES,n.OPEN];o.setupComplete||o.setup(),o.actions.forEach((function(i){t.indexOf(i.id)>=0&&!e.getAction(i.id)&&e.addAction(i)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(642),i(340),i(1644),i(757)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{_COMPARE_WITH_DISK_TEMP_MESSAGE:"The Compare with Version on Disk action will bring up the plain code diff tool once it is available in the JS Desktop",constructor:function(e,t,n){this._executionService=e,this._actionService=t,this._fileDataService=n,this._actionService.updateAction(i.COMPARE_WITH_DISK,{callback:this._displayMessage.bind(this,this._COMPARE_WITH_DISK_TEMP_MESSAGE)})},updateActions:function(e){this._actionService.updateAction(i.COMPARE_WITH_DISK,{enabled:this._shouldEnableCompareWithDisk(e)}),this._actionService.updateAction(i.COMPARE_WITH_AUTOSAVE,{enabled:this._shouldEnableCompareWithAutosave(e),callback:this._getCompareWithAutosaveCallback(e)})},_shouldEnableCompareWithDisk:function(e){return!this._isUntitled(e)&&this._isDirty(e)},_shouldEnableCompareWithAutosave:function(e){if(this._isUntitled(e)||!this._isDirty(e))return!1;var t=this._getLocalAction(e);return!!t&&t.enabled},_getCompareWithAutosaveCallback:function(e){var t=this._getLocalAction(e);if(t)return t.callback},_getLocalAction:function(e){return e.editor.getActionDataService().getAction(n.getInstance().getRTCActionIdFromGlobalActionId(i.COMPARE_WITH_AUTOSAVE))},_isUntitled:function(e){return t.isUntitled(e)},_isDirty:function(e){return this._fileDataService.isFileModified(e.getFile())},_displayMessage:function(e){this._executionService.executionEval("disp('"+e+"')")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(642),i(340),i(8150),i(757),i(251),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(r,{constructor:function(e,t){s.assert(e,"Must supply editorService"),s.assert(t,"Must supply actionService"),this.editorService=e,this.actionService=t,this.actionService.loadActions(o.actions)},updateActions:function(e){if(this.actionService){var t=i.isExtensionM(e),o=i.isNotSharedAndLatestAndEditable(e),r=i.isEditable(e);this._enableActionWithCondition(e,n.SMART_INDENT,a.FORMAT_CODE.SMART_INDENT_ACTION,r),this._enableActionWithCondition(e,n.INDENT,a.INDENT.INDENT_ACTION,o),this._enableActionWithCondition(e,n.OUTDENT,a.INDENT.OUTDENT_ACTION,o),this._enableActionWithCondition(e,n.INSERT_COMMENT,a.COMMENT.COMMENT.Action,o),this._enableActionWithCondition(e,n.UNCOMMENT,a.COMMENT.UNCOMMENT.Action,o),this._enableActionWithCondition(e,n.PREVIOUS_SECTION,a.SECTIONS.PREVIOUS_SECTION_ACTION,t),this._enableActionWithCondition(e,n.NEXT_SECTION,a.SECTIONS.NEXT_SECTION_ACTION,t),this._enableActionWithCondition(e,n.BOOKMARK_TOGGLE,a.BOOKMARKS.TOGGLE_BOOKMARK.Action,t),this._enableActionWithCondition(e,n.BOOKMARK_PREVIOUS,a.BOOKMARKS.PREV_BOOKMARK.Action,t),this._enableActionWithCondition(e,n.BOOKMARK_NEXT,a.BOOKMARKS.NEXT_BOOKMARK.Action,t),this._enableActionWithCondition(e,n.WRAP_COMMENT,a.COMMENT.WRAP_COMMENT.Action,t&&o),this._enableActionWithCondition(e,n.INSERT_SECTION,"rtc_insert_sectionbreak",t&&o),this.actionService.updateAction(n.REFACTOR,{enabled:t&&o}),this._enableActionWithCondition(e,n.REFACTOR_LOCAL_FUNCTION,a.REFACTOR.REFACTOR_LOCAL_FUNCTION,t&&o),this._enableActionWithCondition(e,n.REFACTOR_EXTERNAL_FUNCTION,a.REFACTOR.REFACTOR_EXTERNAL_FUNCTION,t&&o)}},_enableActionWithCondition:function(e,t,i,n){var o=e.editor.getActionDataService().getAction(i),r=o&&o.enabled;this.actionService.updateAction(t,{enabled:n&&r,callback:this._executeActionAndFocus.bind(this,e,i)})},_executeActionAndFocus:function(e,t){e.editor.getActionDataService().executeAction(t),e.focus()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(340),i(251),i(537),i(253),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};return r.actions=[{id:e.INSERT_SECTION,shortcut:i.insertSectionShortcut,platformShortcut:{mac:"meta+alt+enter"},enabled:!0,description:i.insertSectionDescription,text:i.insertSectionLabel,icon:"smallInsertSectionBreak",quickAccessIcon:"smallInsertSectionBreak",callback:function(){o.warn("Action "+e.INSERT_SECTION+" doesn't do anything yet.")}},{id:e.REFACTOR,enabled:!0,description:i.refactorDescription,icon:"bigRefactor",text:i.refactorLabel,quickAccessIcon:"smallRefactor"},{id:e.REFACTOR_LOCAL_FUNCTION,enabled:!0,text:i.refactorLocalFunctionLabel,description:i.refactorLocalFunctionDescription,callback:function(){o.warn("Action "+e.REFACTOR_LOCAL_FUNCTION+" doesn't do anything yet.")}},{id:e.REFACTOR_EXTERNAL_FUNCTION,enabled:!0,text:i.refactorExternalFunctionLabel,description:i.refactorExternalFunctionDescription,callback:function(){o.warn("Action "+e.REFACTOR_EXTERNAL_FUNCTION+" doesn't do anything yet.")}},{id:e.INSERT_COMMENT,shortcut:i.insertCommentShortcut,platformShortcut:{mac:"meta+/"},enabled:!0,description:t.COMMENT.COMMENT.Description,icon:t.COMMENT.COMMENT.Icon,quickAccessIcon:t.COMMENT.COMMENT.QABIcon,callback:function(){o.warn("Action "+e.INSERT_COMMENT+" doesn't do anything yet.")}},{id:e.SMART_INDENT,shortcut:i.smartIndentShortcut,enabled:!0,description:i.smartIndentDescription,text:i.smartIndentLabel,icon:"smallSmartIndent",quickAccessIcon:"smallSmartIndent",callback:function(){o.warn("Action "+e.SMART_INDENT+" doesn't do anything yet.")}},{id:e.UNCOMMENT,shortcut:"ctrl_shift_r",platformShortcut:{mac:"meta_alt_/"},enabled:!0,description:t.COMMENT.UNCOMMENT.Description,icon:t.COMMENT.UNCOMMENT.Icon,quickAccessIcon:t.COMMENT.UNCOMMENT.QABIcon,callback:function(){o.warn("Action "+e.UNCOMMENT+" doesn't do anything yet.")}},{id:e.INDENT,shortcut:i.indentShortcut,enabled:!0,description:i.indentDescription,icon:"smallIndent",quickAccessIcon:"smallIndent",callback:function(){o.warn("Action "+e.INDENT+" doesn't do anything yet.")}},{id:e.WRAP_COMMENT,shortcut:n.wrapCommentShortcut,platformShortcut:{mac:"meta_shift_w"},enabled:!0,description:t.COMMENT.WRAP_COMMENT.Description,icon:t.COMMENT.WRAP_COMMENT.Icon,quickAccessIcon:t.COMMENT.WRAP_COMMENT.QABIcon,callback:function(){o.warn("Action "+e.WRAP_COMMENT+" doesn't do anything yet.")}},{id:e.OUTDENT,shortcut:i.outdentShortcut,enabled:!0,description:i.outdentDescription,icon:"smallOutdent",quickAccessIcon:"smallOutdent",callback:function(){o.warn("Action "+e.OUTDENT+" doesn't do anything yet.")}}],r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(204),i(214),i(233),i(299),i(209),i(642),i(340),i(8152),i(757),i(275),i(371),i(8153),i(251),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m=["matlab","editor","displaysettings"];return t([d,e],{constructor:function(e,t,n){a.assert(e,"Must supply editorService"),a.assert(t,"Must supply actionService"),a.assert(n,"Must supply executionService"),this.editorService=e,this.actionService=t,this.executionService=n,this._debugServices=u.getInstance(),this.actionService.loadActions(c.actions),this.actionService.updateAction(l.RUN_CELL,{callback:i.hitch(this,this._executeDialogActionCallback,h.RUN_SECTION)}),this.actionService.updateAction(l.NEXT_SECTION,{callback:i.hitch(this,this._executeDialogActionCallback,f.SECTIONS.NEXT_SECTION_ACTION)}),this.actionService.updateAction(l.PREVIOUS_SECTION,{callback:i.hitch(this,this._executeDialogActionCallback,f.SECTIONS.PREVIOUS_SECTION_ACTION)}),this.actionService.updateAction(l.INSERT_SECTION,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_insert_sectionbreak")}),this.actionService.updateAction(l.RUN_CELL_ADVANCE,{callback:i.hitch(this,this._executeDialogActionCallback,h.RUN_SECTION_ADVANCE)}),this.actionService.updateAction(l.FORWARD,{callback:i.hitch(this,this._executeDialogActionCallback,"commoneditor_navigate_forward")}),this.actionService.updateAction(l.BACK,{callback:i.hitch(this,this._executeDialogActionCallback,"commoneditor_navigate_backward")}),this.actionService.updateAction(l.GOTO_LINE,{callback:i.hitch(this,this._executeDialogActionCallback,f.GOTO.GOTO_DIALOG.Action)}),this.actionService.updateAction(l.FIND,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_find_dialog")}),this.actionService.updateAction(l.REPLACE,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_replace_dialog")}),this.actionService.updateAction(l.BOOKMARK_TOGGLE,{callback:i.hitch(this,this._executeDialogActionCallback,f.BOOKMARKS.TOGGLE_BOOKMARK.Action)}),this.actionService.updateAction(l.BOOKMARK_PREVIOUS,{callback:i.hitch(this,this._executeDialogActionCallback,f.BOOKMARKS.PREV_BOOKMARK.Action)}),this.actionService.updateAction(l.BOOKMARK_NEXT,{callback:i.hitch(this,this._executeDialogActionCallback,f.BOOKMARKS.NEXT_BOOKMARK.Action)}),this.actionService.updateAction(l.FIND_NEXT,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_find_dialog_find_next_key")}),this.actionService.updateAction(l.FIND_PREVIOUS,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_find_dialog_find_previous_key")}),this.actionService.updateAction(l.FIND_SELECTION,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_find_dialog_find_selection_key")}),this.actionService.updateAction(l.CLEAR_ALL_BREAKPOINTS,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_clear_all_breakpoints")}),this.actionService.updateAction(l.TOGGLE_BREAKPOINT,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_toggle_breakpoint")}),this.actionService.updateAction(l.TOGGLE_ENABLE_BREAKPOINT,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_toggle_enable_breakpoint")}),this.actionService.updateAction(l.EXPAND,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_unfold_current_block")}),this.actionService.updateAction(l.COLLAPSE,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_fold_current_block")}),this.actionService.updateAction(l.EXPAND_ALL,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_unfold_all")}),this.actionService.updateAction(l.COLLAPSE_ALL,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_fold_all")}),this.actionService.updateAction(l.PAUSE,{callback:i.hitch(this,this._executeDialogActionCallback,h.PAUSE_ACTION_ID)}),this.actionService.updateAction(l.CONTINUE,{callback:i.hitch(this,this._executeDialogActionCallback,h.CONTINUE_ACTION_ID)}),this.actionService.updateAction(l.STOP,{callback:i.hitch(this,this._executeDialogActionCallback,h.STOP_ACTION_ID)}),this.actionService.updateAction(l.STEP,{callback:i.hitch(this,this._executeDialogActionCallback,h.STEP_ACTION_ID)}),this.actionService.updateAction(l.DEBUG_STEP_IN,{callback:i.hitch(this,this._executeDialogActionCallback,p.DEBUG_STEP_IN_ACTION_ID)}),this.actionService.updateAction(l.DEBUG_STEP_OUT,{callback:i.hitch(this,this._executeDialogActionCallback,p.DEBUG_STEP_OUT_ACTION_ID)}),this.actionService.updateAction(l.RUN_TO_END,{callback:i.hitch(this,this._executeDialogActionCallback,h.RUN_SECTION_END)}),this.actionService.updateAction(l.RUN_TO_CURSOR,{callback:i.hitch(this,this._executeDialogActionCallback,"rtc_run_to_cursor")}),this.actionService.updateAction(f.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.Action,{selected:!1}),this.actionService.addActionChangeCallback(f.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.Action,i.hitch(this,"_updateSettingValue","HighlightCurrentLine")),this.actionService.updateAction(f.DISPLAY_SECTION.LINE_NUMBERS.Action,{selected:!1}),this.actionService.addActionChangeCallback(f.DISPLAY_SECTION.LINE_NUMBERS.Action,i.hitch(this,"_updateSettingValue","ShowLineNumbers")),this.actionService.updateAction(f.DISPLAY_SECTION.DATATIPS.Action,{selected:!1}),this.actionService.addActionChangeCallback(f.DISPLAY_SECTION.DATATIPS.Action,i.hitch(this,"_updateSettingValue","DataTipsInEditMode")),this.actionService.updateAction(f.DISPLAY_SECTION.AUTO_COMPLETION.Action,{selected:!0}),this.actionService.addActionChangeCallback(f.DISPLAY_SECTION.AUTO_COMPLETION.Action,i.hitch(this,"_updateIntegerSettingValue","ShowAutomatically",["matlab","keyboard","suggestions"])),g.listenTo(m,"HighlightCurrentLine",i.hitch(this,this._updateActionBasedOnSetting,f.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.Action)),g.listenTo(m,"DataTipsInEditMode",i.hitch(this,this._updateActionBasedOnSetting,f.DISPLAY_SECTION.DATATIPS.Action)),g.listenTo(m,"ShowLineNumbers",i.hitch(this,this._updateActionBasedOnSetting,f.DISPLAY_SECTION.LINE_NUMBERS.Action)),g.listenTo(["matlab","keyboard","suggestions"],"ShowAutomatically",i.hitch(this,this._updateActionBasedOnSetting,f.DISPLAY_SECTION.AUTO_COMPLETION.Action)),this._isGoToSetup=!1},setupEditor:function(e){this._setupPlugins(e),this._setupActionDataService(e),this._setActionPropertiesOnLoad()},_updateActionBasedOnSetting:function(e,t){this.actionService.updateAction(e,{selected:t.newValue})},_setupActionDataService:function(e){var t=e.editor.getActionDataService(),o={rtc_find_dialog:l.FIND,rtc_find_dialog_find_next_key:l.FIND_NEXT,rtc_find_dialog_find_previous_key:l.FIND_PREVIOUS,rtc_find_dialog_find_selection_key:l.FIND_SELECTION,rtc_run_section_end:l.RUN_TO_END,rtc_continue:l.CONTINUE,rtc_pause:l.PAUSE,rtc_step:l.STEP,rtc_stop_execution:l.STOP,rtc_debug_step_in:l.DEBUG_STEP_IN,rtc_debug_step_out:l.DEBUG_STEP_OUT,rtc_run_to_cursor:l.RUN_TO_CURSOR,rtc_navigate_next_section:l.NEXT_SECTION,rtc_navigate_previous_section:l.PREVIOUS_SECTION,rtc_run_section:l.RUN_CELL,rtc_run_section_advance:l.RUN_CELL_ADVANCE,rtc_toggle_bookmark:l.BOOKMARK_TOGGLE,rtc_previous_bookmark:l.BOOKMARK_PREVIOUS,rtc_next_bookmark:l.BOOKMARK_NEXT,commoneditor_navigate_forward:l.FORWARD,commoneditor_navigate_backward:l.BACK};for(const e in o){var r=t.getAction(e);r&&this.actionService.updateAction(o[e],{enabled:r.enabled})}e.editor.own(n.after(t,"onActionChange",i.hitch(this,(function(e){if(o[e.id]){e.id=o[e.id];var t={};t[e.key]=e.newValue,this.actionService.updateAction(e.id,t)}})),!0))},updateActions:function(e){if(e){var t=s.isLatest(e),i=s.isExtensionM(e),n=s.isExtensionMorMLN(e),o=s.isExtensionMLX(e),a=n||o,c=s.isUntitled(e);this.actionService.updateAction(l.RUN,{enabled:n&&t&&!this._debugServices.isDebugging}),this.actionService.updateAction(l.EXPAND,{enabled:n&&t}),this.actionService.updateAction(l.COLLAPSE,{enabled:n&&t}),this.actionService.updateAction(l.EXPAND_ALL,{enabled:n&&t}),this.actionService.updateAction(l.COLLAPSE_ALL,{enabled:n&&t}),this.actionService.updateAction(f.DISPLAY_SECTION.DATATIPS.Action,{enabled:n&&t}),this.actionService.updateAction(f.DISPLAY_SECTION.AUTO_COMPLETION.Action,{enabled:n&&t}),this._updateGoToSectionsListState(),this._updatePublishConfigurationsListState(),this._updateBreakpointActions(i&&!c),i&&t?this._updateCellActions():(this.actionService.updateAction(l.RUN_CELL,{enabled:!1}),this.actionService.updateAction(l.RUN_CELL_ADVANCE,{enabled:!1})),this.actionService.updateAction(l.STEP,{enabled:a||this._debugServices.isDebugging}),this.actionService.updateAction(l.RUN_TO_END,{enabled:a}),this.actionService.updateAction(r.OPEN_AS_NOTEBOOK,{enabled:i})}},_updateGoToSectionsListState:function(){var e=this.editorService.getActiveEditor(window);if(e){var t=e.editor._forTestingOnly._pluginResolver.getDependency("rtc.navigate.goto");t&&t.setActiveGoToHandlerInstance(t)}},_updatePublishConfigurationsListState:function(){var e=this.editorService.getActiveEditor(window);if(e){var t=e.editor._forTestingOnly._pluginResolver.getDependency("liveeditor.publish");t&&t.getToolstripService().setActiveEditorId(e.id)}},_setupPlugins:function(e){a.assert(e,"Editor instance can not be null or undefined");var t=e.editor._forTestingOnly._pluginResolver.getDependency("rtc.navigate.goto");a.assert(t,"Current editor should have an active goto instance"),this._isGoToSetup||(t.setupGoToToolStripButton(),this._isGoToSetup=!0),t.setActiveGoToHandlerInstance(t);var i=e.editor._forTestingOnly._pluginResolver.getDependency("liveeditor.publish");if(i){var n=i.getToolstripService();n.setupPublishToolStripButton(),n.setActiveEditorId(e.id)}},_updateCellActions:function(){var e=this.actionService.getAction(l.RUN);this.actionService.updateAction(l.RUN_CELL,{enabled:e.enabled}),this.actionService.updateAction(l.RUN_CELL_ADVANCE,{enabled:e.enabled})},_updateBreakpointActions:function(e){this.actionService.updateAction(l.TOGGLE_BREAKPOINT,{enabled:e}),this.actionService.updateAction(l.TOGGLE_ENABLE_BREAKPOINT,{enabled:e})},_setActionPropertiesOnLoad:function(){g.getSetting(m,"HighlightCurrentLine").then(function(e){this.actionService.updateAction(f.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.Action,{selected:e.value})}.bind(this)),g.getSetting(m,"ShowLineNumbers").then(function(e){this.actionService.updateAction(f.DISPLAY_SECTION.LINE_NUMBERS.Action,{selected:e.value})}.bind(this)),g.getSetting(m,"DataTipsInEditMode").then(function(e){this.actionService.updateAction(f.DISPLAY_SECTION.DATATIPS.Action,{selected:e.value})}.bind(this)),g.getSetting(["matlab","keyboard","suggestions"],"ShowAutomatically").then(function(e){this.actionService.updateAction(f.DISPLAY_SECTION.AUTO_COMPLETION.Action,{selected:e.value})}.bind(this))},_executeDialogActionCallback:function(e){this.editorService.getActiveEditor(window).editor.getActionDataService().executeAction(e,{actionOrigin:"motwToolstrip"})},_updateSettingValue:function(e,t){"selected"===t.property&&g.setSetting(m,e,t.newValue)},_updateIntegerSettingValue:function(e,t,i){"selected"===i.property&&g.setSetting(t,e,i.newValue?1:0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1230),i(2547),i(1229),i(340),i(280),i(1228),i(233),i(290),i(537),i(204),i(221),i(206),i(209),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f,g={},m=function(n){var r=o.editorService.getActiveEditor(window),l=r.getFile();if(l.isUntitled)r.widget.getBackingStore().save(l.id,!1);else{var c="",d="",h=o.fileDataService.currentWorkingFolder,p=function(){if(c&&""!==c){var e=a.pathFromFileInfo(h),t="";t=""!==d?a.createFilePath(e,d.getFileName()):a.createFilePath(e,c.getFileName()),r.widget.getBackingStore().saveAs(t,n).then(()=>{},()=>{})}v("saveAs")},f=function(){v("saveAs"),u.emit(document.body,"restorefocus",{bubbles:!0})},g=s.saveAsDialogTitle,m=o.editorService.getActiveEditor(window).getFile().fileInfo.name,b=-1===m.lastIndexOf(".")?m.length:m.lastIndexOf(".");(c=new e({fileDataService:o.fileDataService,placeHolder:s.FileDialogPlaceholder,startValue:m,fileLocation:a.pathFromFileInfo(h),numSelectedChars:b,saveAsNameLabel:s.saveAsFileNameLabel,okAction:function(){var e=c.getFileName();!i.SUPPORTED_FILENAME_PATTERN.test(e)||e.length>a.MATLAB_NAME_LENGTH?d=new t({fileDataService:o.fileDataService,filename:e,okAction:p,cancelAction:f,fileLocation:a.pathFromFileInfo(h)}):p()},cancelAction:f})).onClose=function(){v("saveAs"),u.emit(document.body,"restorefocus",{bubbles:!0})},_(c,{id:"saveAs",layoutId:"newDialog",title:g})}};g.actions=[{id:n.RUN,enabled:!1,key:"f5",platformKey:{mac:"meta_alt_r"},text:l.runLabel,description:l.runDescription,icon:"run_24",quickAccessIcon:"run_16",callback:function(){h.warn("Action "+n.RUN+" doesn't do anything yet.")}},{id:n.RUN_TO_END,enabled:!0,text:l.runToEndLabel,description:l.runToEndLabelDescription,icon:"smallRunCellAdvance",quickAccessIcon:"smallRunCellAdvance",callback:function(){h.warn("Action "+n.RUN_TO_END+" doesn't do anything yet.")}},{id:n.RUN_CELL,key:"ctrl_enter",shortcut:l.runCellShortcut,platformKey:{mac:"meta_enter"},enabled:!0,text:l.runCellLabel,description:l.runCellDescription,icon:"bigRunSection",quickAccessIcon:"smallRunCell",callback:function(){h.warn("Action "+n.RUN_CELL+" doesn't do anything yet.")}},{id:n.RUN_CELL_ADVANCE,enabled:!0,key:"ctrl_shift_enter",platformKey:{mac:"meta_shift_enter"},text:l.runCellAdvanceLabel,description:l.runCellAdvanceDescription,icon:"bigRunCellAdvance",quickAccessIcon:"smallRunCellAdvance",callback:function(){h.warn("Action "+n.RUN_CELL_ADVANCE+" doesn't do anything yet.")}},{id:n.NEXT_SECTION,key:"Ctrl_down",shortcut:l.nextSectionShortcut,platformKey:{mac:"meta_down"},enabled:!1,text:l.nextSectionLabel,description:l.nextSectionDescription,icon:"bigNext",quickAccessIcon:"smallNext",callback:function(){h.warn("Action "+n.NEXT_SECTION+" doesn't do anything yet.")}},{id:n.PREVIOUS_SECTION,key:"Ctrl_up",shortcut:l.previousSectionShortcut,platformKey:{mac:"meta_up"},enabled:!1,text:l.previousSectionLabel,description:l.previousSectionDescription,icon:"bigPrevious",quickAccessIcon:"smallPrevious",callback:function(){h.warn("Action "+n.PREVIOUS_SECTION+" doesn't do anything yet.")}},{id:n.TOGGLE_STOP_IF_ERROR,enabled:!0,text:l.stopIfErrorText,description:l.stopIfErrorDescription,callback:function(){h.warn("Action "+n.TOGGLE_STOP_IF_ERROR+" doesn't do anything yet.")}},{id:n.TOGGLE_STOP_IF_WARNING,enabled:!0,text:l.stopIfWarningText,description:l.stopIfWarningDescription,callback:function(){h.warn("Action "+n.TOGGLE_STOP_IF_WARNING+" doesn't do anything yet.")}},{id:n.TOGGLE_STOP_IF_NAN_INF,enabled:!0,text:l.stopIfNanInfText,description:l.stopIfNanInfDescription,callback:function(){h.warn("Action "+n.TOGGLE_STOP_IF_NAN_INF+" doesn't do anything yet.")}},{id:n.COMPARE_WITH_DISK,enabled:!1,text:l.compareWithDisk,icon:"bigCompare",callback:function(){h.warn("Action "+n.COMPARE_WITH_DISK+" doesn't do anything yet.")}},{id:n.COMPARE_WITH_AUTOSAVE,enabled:!1,text:l.compareWithAutosave,callback:function(){h.warn("Action "+n.COMPARE_WITH_AUTOSAVE+" doesn't do anything yet.")}},{id:n.BACK,enabled:!0,icon:"smallBack",quickAccessIcon:"smallBack",callback:function(){h.warn("Action "+n.BACK+" doesn't do anything yet.")}},{id:n.FORWARD,enabled:!0,icon:"smallForward",quickAccessIcon:"smallForward",callback:function(){h.warn("Action "+n.FORWARD+" doesn't do anything yet.")}},{id:n.GOTO,enabled:!0,text:p.GOTO.GOTO_TOOLSTRIP_BUTTON.Text,description:p.GOTO.GOTO_TOOLSTRIP_BUTTON.Description,icon:p.GOTO.GOTO_TOOLSTRIP_BUTTON.Icon,quickAccessIcon:p.GOTO.GOTO_TOOLSTRIP_BUTTON.QuickAccessIcon,hasDynamicPopup:!0,popupTag:"motwToolstrip.editorTab.navigate.goTo.goToList",callback:function(){o.actionService.executeAction(n.GOTO_LINE)}},{id:n.GOTO_LINE,enabled:!0,text:p.GOTO.GOTO_LINE.Text,shortcut:d("safari")?"":p.GOTO.GOTO_LINE.Shortcut,platformShortcut:{mac:d("safari")?"":p.GOTO.GOTO_LINE.PlatformShortcut},description:p.GOTO.GOTO_LINE.Description,icon:p.GOTO.GOTO_LINE.Icon,quickAccessIcon:p.GOTO.GOTO_LINE.QuickAccessIcon,callback:function(){h.warn("Action "+n.GOTO+" doesn't do anything yet.")}},{id:n.FIND,enabled:!0,text:l.findLabel,shortcut:l.findShortcut,description:l.findDescription,icon:"smallFind",quickAccessIcon:"smallFind",popupTag:"motwToolstrip.editorTab.navigate.find.findList",callback:function(){h.warn("Action "+n.FIND+" doesn't do anything yet.")}},{id:n.REPLACE,enabled:!0,text:l.replaceLabel,shortcut:l.replaceShortcut,callback:function(){h.warn("Action "+n.REPLACE+" doesn't do anything yet.")}},{id:n.FIND_NEXT,enabled:!1,text:l.findNextLabel,shortcut:l.findNextShortcut,platformShortcut:{mac:"meta+g"},callback:function(){h.warn("Action "+n.FIND_NEXT+" doesn't do anything yet.")}},{id:n.FIND_PREVIOUS,enabled:!1,text:l.findPreviousLabel,shortcut:l.findPreviousShortcut,platformShortcut:{mac:"meta+shift+g"},callback:function(){h.warn("Action "+n.FIND_PREVIOUS+" doesn't do anything yet.")}},{id:n.FIND_SELECTION,enabled:!1,text:l.findSelectionLabel,shortcut:l.findSelectionShortcut,platformShortcut:{mac:"meta+e"},callback:function(){h.warn("Action "+n.FIND_SELECTION+" doesn't do anything yet.")}},{id:n.CLEAR_ALL_BREAKPOINTS,enabled:!0,text:l.clearAllBreakpointsLabel,description:l.clearAllBreakpointsDescription,icon:"bigClearAllBreakpoints",quickAccessIcon:"smallClearAllBreakpoints",callback:function(){h.warn("Action "+n.CLEAR_ALL_BREAKPOINTS+" doesn't do anything yet.")}},{id:n.TOGGLE_BREAKPOINT,enabled:!0,text:l.toggleBreakpointLabel,description:l.toggleBreakpointDescription,shortcut:l.toggleBreakpointShortcut,platformShortcut:{mac:l.toggleBreakpointShortcutMac},icon:"bigToggleBreakpoint",quickAccessIcon:"smallToggleBreakpoint",callback:function(){h.warn("Action "+n.TOGGLE_BREAKPOINT+" doesn't do anything yet.")}},{id:n.BREAKPOINTS,enabled:!0,text:l.breakpointsLabel,description:l.breakpointsDescription,icon:"bigBreakpoints",quickAccessIcon:"smallBreakpoints",popupTag:"motwToolstrip.editorTab.breakpoints.breakpointList",callback:function(){h.warn("Action "+n.CLEAR_ALL_BREAKPOINTS+" doesn't do anything yet.")}},{id:n.TOGGLE_ENABLE_BREAKPOINT,enabled:!0,text:l.toggleEnableBreakpointLabel,description:l.toggleEnableBreakpointDescription,icon:"bigToggleEnableBreakpoint",quickAccessIcon:"smallToggleEnableBreakpoint",callback:function(){h.warn("Action "+n.TOGGLE_ENABLE_BREAKPOINT+" doesn't do anything yet.")}},{id:n.VERSION_LIST,enabled:!1,label:"displayName",items:[],selectedItem:"",editable:!1,callback:function(){var e=o.editorVersioningService.getActiveController();e&&e.versionDropDownOpen()}},{id:n.GET_OLDER_VERSION,enabled:!1,text:l.getOlderVersionLabel,description:l.getOlderVersionDescription,icon:"icon_file_version_older_24",quickAccessIcon:"icon_file_version_older_16",callback:function(){var e=o.editorVersioningService.getActiveController();e&&e.olderButtonClick()}},{id:n.GET_NEWER_VERSION,enabled:!1,text:l.getNewerVersionLabel,description:l.getNewerVersionDescription,icon:"icon_file_version_newer_24",quickAccessIcon:"icon_file_version_newer_16",callback:function(){var e=o.editorVersioningService.getActiveController();e&&e.newerButtonClick()}},{id:n.RESTORE_AS_LATEST,enabled:!1,text:l.restoreAsLatestLabel,description:l.restoreAsLatestDescription,icon:"icon_file_version_restore_24",quickAccessIcon:"icon_file_version_restore_16",callback:function(){var e=o.editorVersioningService.getActiveController();e&&e.restoreButtonClick()}},{id:n.SAVEALL,icon:"save_all_24",quickAccessIcon:"save_all_16",text:l.saveAllLabel,description:l.saveAllDescription,enabled:!0,callback:function(){o.fileDataService.saveOpenFiles()}},{id:n.SAVECOPYAS,icon:"save_copy_as_24",quickAccessIcon:"save_copy_as_16",text:l.saveCopyAsLabel,description:l.saveCopyAsDescription,enabled:!0,callback:function(){m(!1)}},{id:n.SAVEAS,platformKey:{mac:"meta_shift_s"},enabled:!1,icon:"save_as_24",quickAccessIcon:"save_as_16",text:l.saveAsLabel,description:l.saveAsDescription,callback:function(){o.editorService.isLocalClient()?m(!0):m(!1)}},{id:n.UNDO_EDITOR,shortcut:l.undoEditorShortcut,platformShortcut:{mac:"meta+z"},enabled:!1,text:l.undoEditorLabel,description:l.undoEditorDescription,quickAccessIcon:"undo_16",callback:function(){o.editorService.getActiveEditor(window).undo()}},{id:n.REDO_EDITOR,shortcut:l.redoEditorShortcut,platformShortcut:{mac:"shift+meta+z"},enabled:!1,text:l.redoEditorLabel,description:l.redoEditorDescription,quickAccessIcon:"redo_16",callback:function(){o.editorService.getActiveEditor(window).redo()}},{id:p.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.Action,text:p.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.Text,description:p.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.Description,enabled:!0,callback:function(){h.warn("Action "+p.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.Action+" doesn't do anything yet.")}},{id:p.DISPLAY_SECTION.DATATIPS.Action,text:p.DISPLAY_SECTION.DATATIPS.Text,description:p.DISPLAY_SECTION.DATATIPS.Description,enabled:!0,callback:function(){h.warn("Action "+p.DISPLAY_SECTION.DATATIPS.Action+" doesn't do anything yet.")}},{id:p.DISPLAY_SECTION.AUTO_COMPLETION.Action,text:p.DISPLAY_SECTION.AUTO_COMPLETION.Text,description:p.DISPLAY_SECTION.AUTO_COMPLETION.Description,enabled:!0,callback:function(){h.warn("Action "+p.DISPLAY_SECTION.AUTO_COMPLETION.Action+" doesn't do anything yet.")}},{id:p.DISPLAY_SECTION.LINE_NUMBERS.Action,text:p.DISPLAY_SECTION.LINE_NUMBERS.Text,description:p.DISPLAY_SECTION.LINE_NUMBERS.Description,enabled:!0,callback:function(){h.warn("Action "+p.DISPLAY_SECTION.LINE_NUMBERS.Action+" doesn't do anything yet.")}},{id:n.EXPAND,shortcut:p.CODE_FOLDING.UNFOLD_CURRENT_BLOCK.Shortcut,text:p.CODE_FOLDING.UNFOLD_CURRENT_BLOCK.Text,description:p.CODE_FOLDING.UNFOLD_CURRENT_BLOCK.Description,enabled:!0,callback:function(){h.warn("Action "+n.EXPAND+" doesn't do anything yet.")}},{id:n.COLLAPSE,shortcut:p.CODE_FOLDING.FOLD_CURRENT_BLOCK.Shortcut,text:p.CODE_FOLDING.FOLD_CURRENT_BLOCK.Text,description:p.CODE_FOLDING.FOLD_CURRENT_BLOCK.Description,enabled:!0,callback:function(){h.warn("Action "+n.COLLAPSE+" doesn't do anything yet.")}},{id:n.EXPAND_ALL,shortcut:p.CODE_FOLDING.UNFOLD_ALL.Shortcut,text:p.CODE_FOLDING.UNFOLD_ALL.Text,description:p.CODE_FOLDING.UNFOLD_ALL.Description,enabled:!0,callback:function(){h.warn("Action "+n.EXPAND_ALL+" doesn't do anything yet.")}},{id:n.COLLAPSE_ALL,shortcut:p.CODE_FOLDING.FOLD_ALL.Shortcut,text:p.CODE_FOLDING.FOLD_ALL.Text,description:p.CODE_FOLDING.FOLD_ALL.Description,enabled:!0,callback:function(){h.warn("Action "+n.COLLAPSE_ALL+" doesn't do anything yet.")}},{id:n.BOOKMARK_TOGGLE,text:p.BOOKMARKS.TOGGLE_BOOKMARK.Text,description:p.BOOKMARKS.TOGGLE_BOOKMARK.Description,icon:p.BOOKMARKS.TOGGLE_BOOKMARK.Icon,quickAccessIcon:p.BOOKMARKS.TOGGLE_BOOKMARK.QABIcon,enabled:!0,callback:function(){h.warn("Action "+n.BOOKMARK_TOGGLE+" doesn't do anything yet.")}},{id:n.BOOKMARK_PREVIOUS,text:p.BOOKMARKS.PREV_BOOKMARK.Text,description:p.BOOKMARKS.PREV_BOOKMARK.Description,icon:p.BOOKMARKS.PREV_BOOKMARK.Icon,quickAccessIcon:p.BOOKMARKS.PREV_BOOKMARK.QABIcon,enabled:!0,callback:function(){h.warn("Action "+n.BOOKMARK_PREVIOUS+" doesn't do anything yet.")}},{id:n.BOOKMARK_NEXT,text:p.BOOKMARKS.NEXT_BOOKMARK.Text,description:p.BOOKMARKS.NEXT_BOOKMARK.Description,icon:p.BOOKMARKS.NEXT_BOOKMARK.Icon,quickAccessIcon:p.BOOKMARKS.NEXT_BOOKMARK.QABIcon,enabled:!0,callback:function(){h.warn("Action "+n.BOOKMARK_NEXT+" doesn't do anything yet.")}},{id:n.PAUSE,description:l.pauseDescription,enabled:!0,callback:function(){h.warn("Action "+n.PAUSE+" doesn't do anything yet.")}},{id:n.STOP,text:l.stopLabel,description:l.stopDescription,enabled:!1,callback:function(){h.warn("Action "+n.STOP+" doesn't do anything yet.")}},{id:n.CONTINUE,description:l.continueDescription,enabled:!0,callback:function(){h.warn("Action "+n.CONTINUE+" doesn't do anything yet.")}},{id:n.STEP,text:l.stepLabel,description:l.stepDescription,enabled:!0,callback:function(){h.warn("Action "+n.STEP+" doesn't do anything yet.")}},{id:n.DEBUG_STEP_IN,shortcut:l.stepInShortcut,text:l.stepInLabel,description:l.stepInDescription,enabled:!0,callback:function(){h.warn("Action "+n.DEBUG_STEP_IN+" doesn't do anything yet.")}},{id:n.DEBUG_STEP_OUT,shortcut:l.stepOutShortcut,text:l.stepOutLabel,description:l.stepOutDescription,enabled:!0,callback:function(){h.warn("Action "+n.DEBUG_STEP_OUT+" doesn't do anything yet.")}},{id:n.RUN_TO_CURSOR,text:l.runToCursorLabel,description:l.runToCursorDescription,enabled:!0,callback:function(){h.warn("Action "+n.RUN_TO_CURSOR+" doesn't do anything yet.")}}];var _=function(e,t){if(o.layoutService)o.layoutService.addWidget(t.id,t.layoutId,e,t);else{var i={widget:e,refocus:!1};c.mixin(i,t),(f=(new r).createModalDialogWrapper(i)).show(),e.startup()}},v=function(e){o.layoutService?o.layoutService.removeWidget(e):f&&(f.destroyRecursive(),f=null)};return g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{DEBUG_CONTINUE_ACTION_ID:"rtc_debug_continue",DEBUG_STEP_ACTION_ID:"rtc_debug_step",DEBUG_STEP_IN_ACTION_ID:"rtc_debug_step_in",DEBUG_STEP_OUT_ACTION_ID:"rtc_debug_step_out",DEBUG_QUIT_ACTION_ID:"rtc_debug_quit"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(204),i(642),i(340),i(8155),i(757),i(1396),i(341),i(233),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(a,{constructor:function(e,n,o){d.assert(e,"Must supply editorService"),d.assert(n,"Must supply actionService"),this.editorService=e,this.actionService=n,this.fileDataService=o,this.actionService.loadActions(r.actions),this._setupPublishActions(),t.after(this.editorService,"onActiveEditor",i.hitch(this,"updateActions"),!0)},_setupPublishActions:function(){this.publishingHTML=!1,this.publishingPDF=!1;var e=function(e,t,i){e.updateAction(t,{enabled:i})}.bind(null,this.actionService),t=function(t){l.getFeatureStatus(l.FeatureNames.NATIVE_PUBLISH)?this._evalPublishAndOpenCommandOnActiveFile("html",t.getFile().fileInfo):(e(o.PUBLISH_AS_HTML,!1),this.publishingHTML=!0,t.publishAsHTML(function(){e(o.PUBLISH_AS_HTML,!0),this.publishingHTML=!1}.bind(this)))}.bind(this);this.actionService.updateAction(o.PUBLISH_AS_HTML,{callback:function(){n.saveUntitledBufferBeforeCallback(this.editorService,t)}.bind(this)});var i=function(t){l.getFeatureStatus(l.FeatureNames.NATIVE_PUBLISH)?this._evalPublishAndOpenCommandOnActiveFile("pdf",t.getFile().fileInfo):(e(o.PUBLISH_AS_PDF,!1),this.publishingPDF=!0,t.publishAsPDF(function(){e(o.PUBLISH_AS_PDF,!0),this.publishingPDF=!1}.bind(this)))}.bind(this);this.actionService.updateAction(o.PUBLISH_AS_PDF,{callback:function(){n.saveUntitledBufferBeforeCallback(this.editorService,i)}.bind(this)});var r=function(e){this._getRTCActionService(e).executeAction("rtc_publish_most_recent")}.bind(this);this.actionService.updateAction(o.PUBLISH,{callback:function(){n.saveUntitledBufferBeforeCallback(this.editorService,r)}.bind(this)});var a=function(e){this._getRTCActionService(e).executeAction("rtc_publish_dialog")}.bind(this);this.actionService.updateAction(o.PUBLISH_CONFIGURATION,{callback:function(){n.saveUntitledBufferBeforeCallback(this.editorService,a)}.bind(this)})},_evalPublishAndOpenCommandOnActiveFile:function(e,t){var i="web(publish('"+c.pathFromFileInfo(t)+"'";"pdf"===e&&(i+=", 'pdf'"),i+="))",this.editorService.executionDataService.executionEval(i)},updateActions:function(e){if(this.actionService){var t=n.isExtensionM(e),i=n.isNotSharedAndLatestAndEditable(e),r=t&&i;this._updateInsertSectionActions(r),this._updateInsertInlineMarkupActions(r),this._updateInsertBlockMarkupActions(r);var a=n.isLatest(e),s=t&&a,l=s&&!this.publishingHTML,c=s&&!this.publishingPDF;this.actionService.updateAction(o.PUBLISH_AS_HTML,{enabled:l}),this.actionService.updateAction(o.PUBLISH_AS_PDF,{enabled:c}),this.actionService.updateAction(o.PUBLISH,{enabled:s}),this.actionService.updateAction(o.PUBLISH_CONFIGURATION,{enabled:s})}},_updateInsertSectionActions:function(e){this.actionService.updateAction(o.NEW_SECTION,{enabled:e,callback:this._insertSection.bind(this)}),this.actionService.updateAction(o.INSERT_SECTION_WITH_TITLE,{enabled:e,callback:this._insertSectionWithTitle.bind(this)})},_updateInsertInlineMarkupActions:function(e){this.actionService.updateAction(o.BOLD,{enabled:e,callback:this._runMarkupAction.bind(this,s.BOLD)}),this.actionService.updateAction(o.ITALIC,{enabled:e,callback:this._runMarkupAction.bind(this,s.ITALIC)}),this.actionService.updateAction(o.MONOSPACED,{enabled:e,callback:this._runMarkupAction.bind(this,s.MONOSPACED)}),this.actionService.updateAction(o.HYPERLINK,{enabled:e,callback:this._runMarkupAction.bind(this,s.HYPERLINK)}),this.actionService.updateAction(o.INLINE_LATEX,{enabled:e,callback:this._runMarkupAction.bind(this,s.INLINE_LATEX)})},_updateInsertBlockMarkupActions:function(e){this.actionService.updateAction(o.BULLETED_LIST,{enabled:e,callback:this._runMarkupAction.bind(this,s.BULLETED_LIST)}),this.actionService.updateAction(o.NUMBERED_LIST,{enabled:e,callback:this._runMarkupAction.bind(this,s.NUMBERED_LIST)}),this.actionService.updateAction(o.IMAGE,{enabled:e,callback:this._runMarkupAction.bind(this,s.IMAGE)}),this.actionService.updateAction(o.PREFORMATTED_TEXT,{enabled:e,callback:this._runMarkupAction.bind(this,s.PREFORMATTED_TEXT)}),this.actionService.updateAction(o.CODE,{enabled:e,callback:this._runMarkupAction.bind(this,s.PREFORMATTED_CODE)}),this.actionService.updateAction(o.DISPLAY_LATEX,{enabled:e,callback:this._runMarkupAction.bind(this,s.DISPLAY_LATEX)})},_disableActions:function(){for(var e=0;e<r.actions.length;e++){var t=r.actions[e];this.actionService.updateAction(t.id,{enabled:!1})}},_getRTCActionService:function(e){return e.editor.getActionDataService()},_insertSection:function(){var e=this.editorService.getActiveEditor(window);this._getRTCActionService(e).executeAction(s.NEW_SECTION),e.focus()},_insertSectionWithTitle:function(){var e=this.editorService.getActiveEditor(window);this._getRTCActionService(e).executeAction(s.INSERT_SECTION_WITH_TITLE),e.focus()},_runMarkupAction:function(e){var t=this.editorService.getActiveEditor(window);this._disableActions(),this._getRTCActionService(t).executeAction(e),t.focus()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(340),i(537),i(209)],o=i.dj.d(n,(function(e,t,i){var n={};return n.actions=[{id:e.NEW_SECTION,shortcut:t.insertSectionShortcut,platformShortcut:{mac:"meta+alt+enter"},enabled:!0,text:t.newSectionLabel,description:t.newSectionDescription,icon:"bigInsertSectionBreak",quickAccessIcon:"smallInsertSectionBreak",callback:function(){i.warn("Action "+e.NEW_SECTION+" doesn't do anything yet.")}},{id:e.INSERT_SECTION_WITH_TITLE,enabled:!0,text:t.insertSectionWithTitleLabel,description:t.insertSectionWithTitleDescription,icon:"bigInsertSectionBreak",quickAccessIcon:"smallInsertSectionBreak",callback:function(){i.warn("Action "+e.INSERT_SECTION_WITH_TITLE+" doesn't do anything yet.")}},{id:e.BOLD,enabled:!0,text:t.boldLabel,description:t.boldDescription,icon:"smallBold",quickAccessIcon:"smallBold",callback:function(){i.warn("Action "+e.BOLD+" doesn't do anything yet.")}},{id:e.ITALIC,enabled:!0,text:t.italicLabel,description:t.italicDescription,icon:"smallItalic",quickAccessIcon:"smallItalic",callback:function(){i.warn("Action "+e.ITALIC+" doesn't do anything yet.")}},{id:e.MONOSPACED,enabled:!0,text:t.monospacedLabel,description:t.monospacedDescription,icon:"smallMonospaced",quickAccessIcon:"smallMonospaced",callback:function(){i.warn("Action "+e.MONOSPACED+" doesn't do anything yet.")}},{id:e.HYPERLINK,enabled:!0,text:t.hyperlinkLabel,description:t.hyperlinkDescription,icon:"smallHyperlink",quickAccessIcon:"smallHyperlink",callback:function(){i.warn("Action "+e.HYPERLINK+" doesn't do anything yet.")}},{id:e.INLINE_LATEX,enabled:!0,text:t.inlineLatexLabel,description:t.inlineLatexDescription,icon:"smallInlineLatex",quickAccessIcon:"smallInlineLatex",callback:function(){i.warn("Action "+e.INLINE_LATEX+" doesn't do anything yet.")}},{id:e.BULLETED_LIST,enabled:!0,text:t.bulletedListLabel,description:t.bulletedListDescription,icon:"smallBulletedList",quickAccessIcon:"smallBulletedList",callback:function(){i.warn("Action "+e.BULLETED_LIST+" doesn't do anything yet.")}},{id:e.NUMBERED_LIST,enabled:!0,text:t.numberedListLabel,description:t.numberedListDescription,icon:"smallNumberedList",quickAccessIcon:"smallNumberedList",callback:function(){i.warn("Action "+e.NUMBERED_LIST+" doesn't do anything yet.")}},{id:e.IMAGE,enabled:!0,text:t.imageLabel,description:t.imageDescription,icon:"smallImage",quickAccessIcon:"smallImage",callback:function(){i.warn("Action "+e.IMAGE+" doesn't do anything yet.")}},{id:e.PREFORMATTED_TEXT,enabled:!0,text:t.preformattedTextLabel,description:t.preformattedTextDescription,icon:"smallPreformattedText",quickAccessIcon:"smallPreformattedText",callback:function(){i.warn("Action "+e.PREFORMATTED_TEXT+" doesn't do anything yet.")}},{id:e.CODE,enabled:!0,text:t.codeLabel,description:t.codeDescription,icon:"smallCode",quickAccessIcon:"smallCode",callback:function(){i.warn("Action "+e.CODE+" doesn't do anything yet.")}},{id:e.DISPLAY_LATEX,enabled:!0,text:t.displayLatexLabel,description:t.displayLatexDescription,icon:"smallDisplayLatex",quickAccessIcon:"smallDisplayLatex",callback:function(){i.warn("Action "+e.DISPLAY_LATEX+" doesn't do anything yet.")}},{id:e.PUBLISH_AS_HTML,enabled:!1,text:t.publishAsHtmlLabel,description:t.publishAsHtmlDescription,icon:"icon_publish_as_HTML_24",quickAccessIcon:"icon_publish_as_HTML_16",callback:function(){i.warn("Action "+e.PUBLISH_AS_HTML+" doesn't do anything yet.")}},{id:e.PUBLISH_AS_PDF,enabled:!1,text:t.publishAsPdfLabel,description:t.publishAsPdfDescription,icon:"icon_publish_as_PDF_24",quickAccessIcon:"icon_publish_as_PDF_16",callback:function(){i.warn("Action "+e.PUBLISH_AS_PDF+" doesn't do anything yet.")}},{id:e.PUBLISH,enabled:!0,text:t.publishRecentConfiguration,description:t.publishRecentConfigurationDescription,icon:"icon_publish_24",quickAccessIcon:"icon_publish_16",callback:function(){i.warn("Action "+e.PUBLISH+" doesn't do anything yet.")}},{id:e.PUBLISH_CONFIGURATION,enabled:!0,text:t.publishConfigurations,description:t.publishConfigurationsDescription,icon:"icon_publish_24",quickAccessIcon:"icon_publish_16",callback:function(){i.warn("Action "+e.PUBLISH_CONFIGURATION+" doesn't do anything yet.")}}],n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(214),i(203),i(204),i(245),i(209),i(768),i(8157),i(2580),i(645),i(859),i(1006),i(757),i(304)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return t(u,{_SELECTED_PROPERTY_STRING:"selected",_SELECTED_ITEM_PROPERTY_STRING:"text",_ICON_PROPERTY_STRING:"icon",_EQN_INSERT_ACTION_PREFIX:"equationeditor.insert",_EQN_EDITOR_ACTIVE:"rtc.equationeditor-active",constructor:function(t,n){o.assert(t,"Must supply editorService"),o.assert(n,"Must supply actionService"),this.editorService=t,this.actionService=n,this.actionService.loadActions(a.motwActions),this.actionService.loadActions(s.actions),this.actionService.loadActions(c.actions),this._liveEditorActions=s.actions.concat(a.motwActions),e.after(this.editorService,"onActiveEditor",i.hitch(this,"_handleOnActiveEditor"),!0),e.after(this.editorService,"onOpen",i.hitch(this,"_handleOnEditorOpen"),!0),e.after(this.editorService,"onClose",i.hitch(this,"_handleOnEditorClose"),!0)},_handleOnEditorOpen:function(e){if(e.isLiveEditor()){var t=e.editor.getActionDataService();t.addAction({id:this._EQN_EDITOR_ACTIVE,enabled:!1}),t.addActionChangeCallback(this._EQN_EDITOR_ACTIVE,(function(t){this.editorService._liveEditorProperties.tabGroupFactories["motwToolstrip.equationEditorTabGroup"].ensureBuilt(),e.set(h.ACTIVE_CONTEXTS,"enabled"===t.property&&!0===t.newValue?["motwToolstrip.equationEditorContext"]:null)}),this)}},_handleOnActiveEditor:function(t,n){if(t.isLiveEditor()&&t!==n){n&&this._removeActionChangeListeners(n);var o=t.editor.getActionDataService();t.isLiveEditor()&&!o.getAction(a.rtcActions[0].id)&&o.loadActions(a.rtcActions);for(var r=this._actions(t),l=0;l<r.length;l++){var c=r[l],d=o.getAction(s.getRTCActionIdFromGlobalActionId(c.id));d&&this._addActionChangeListeners(o,d,c,t)}this._updateShortcutLabels(),e.before(o,"removeAction",i.hitch(this,"_handleRTCActionRemoved",o,t),!0),e.after(o,"addAction",i.hitch(this,"_handleRTCActionAdded",o,t),!0),this._updateActions(t)}},_updateShortcutLabels:function(){var e=n("mac")?"meta_i":"ctrl_i";this.actionService.updateAction(l.ITALIC,{shortcut:r.getPlatformSpecificString(e)})},_addActionChangeListeners:function(e,t,n,o){e.addActionChangeCallback(t.id,i.hitch(this,"_handleActionChanged",n.id)),e.actionHasProperty(t.id,this._SELECTED_PROPERTY_STRING)&&this.actionService.addActionChangeCallback(n.id,i.hitch(this,"_handleToggleButtonActionChanged",n.id,o)),e.actionHasProperty(t.id,this._SELECTED_ITEM_PROPERTY_STRING)&&this.actionService.addActionChangeCallback(n.id,i.hitch(this,"_handleSelectedItemChanged",n.id,o))},_handleRTCActionRemoved:function(e,t,i){this.actionService.getAction(s.getGlobalActionIdFromRTCActionId(i))&&e.removeActionChangeCallback(i),i===this._EQN_EDITOR_ACTIVE&&t.set(h.ACTIVE_CONTEXTS,null)},_handleRTCActionAdded:function(e,t,i){var n=this.actionService.getAction(s.getGlobalActionIdFromRTCActionId(i.id));n&&(this.actionService.updateAction(n.id,{enabled:!0}),this._addActionChangeListeners(e,i,n,t)),i.id===this._EQN_EDITOR_ACTIVE&&i.enabled&&t.set(h.ACTIVE_CONTEXTS,["motwToolstrip.equationEditorContext"])},updateSaveActionState:function(e,t){this.actionService.updateAction(d.SAVE,{enabled:e}),t?this.actionService.updateAction(d.SAVE,{icon:"save_dirty_24",quickAccessIcon:"save_dirty_24"}):this.actionService.updateAction(d.SAVE,{icon:"save_24",quickAccessIcon:"save_16"})},_handleOnEditorClose:function(e){this._removeActionChangeListeners(e)},_removeActionChangeListeners:function(e){if(e.isLiveEditor())for(var t=e.editor.getActionDataService(),i=this._actions(e),n=this.editorService.getActiveEditor()===e,o=0;o<i.length;o++){var r=i[o],a=t.getAction(s.getRTCActionIdFromGlobalActionId(r.id));a&&(t.removeActionChangeCallback(a.id),n&&t.actionHasProperty(a.id,this._SELECTED_PROPERTY_STRING)&&this.actionService.removeActionChangeCallback(r.id),n&&t.actionHasProperty(a.id,this._SELECTED_ITEM_PROPERTY_STRING)&&this.actionService.removeActionChangeCallback(r.id))}},_actions:function(e){return e.isLiveEditor()?this._liveEditorActions:s.actions},_handleActionChanged:function(e,t){var i={};i[t.property]=t.newValue,this.actionService.updateAction(e,i)},_handleToggleButtonActionChanged:function(e,t,i){var n=t.editor.getActionDataService();if(i.property===this._SELECTED_PROPERTY_STRING){var o=s.getRTCActionIdFromGlobalActionId(e);n.updateAction(o,{selected:i.newValue})}},_handleSelectedItemChanged:function(e,t,i){var n=t.editor.getActionDataService();if(i.property===this._SELECTED_ITEM_PROPERTY_STRING){var o=s.getRTCActionIdFromGlobalActionId(e);n.updateAction(o,{selectedItem:i.newValue})}},_fireCallback:function(e,t){var i=t.editor.getActionDataService();t.focus(),i.executeAction(e,{actionOrigin:"motwToolstrip"})},setActionPropertiesOnLoad:function(e){for(var t=e.editor.getActionDataService(),i=0;i<s.actions.length;i++){var n=s.actions[i],o=t.getAction(s.getRTCActionIdFromGlobalActionId(n.id));if(o){for(var r={},a=Object.keys(o),l=0;l<a.length;l++){var c=a[l];"id"!==c&&(r[c]=o[c])}delete r.callback,this.actionService.updateAction(n.id,r)}}},_updateAction:function(e,t,n,o){var r={enabled:t.enabled};e.actionHasProperty(t.id,this._SELECTED_PROPERTY_STRING)&&(r[this._SELECTED_PROPERTY_STRING]=t[this._SELECTED_PROPERTY_STRING]),e.actionHasProperty(t.id,this._ICON_PROPERTY_STRING)&&(r[this._ICON_PROPERTY_STRING]=t[this._ICON_PROPERTY_STRING]),e.actionHasProperty(t.id,this._SELECTED_ITEM_PROPERTY_STRING)&&(r[this._SELECTED_ITEM_PROPERTY_STRING]=t[this._SELECTED_ITEM_PROPERTY_STRING]),r.callback=i.hitch(this,"_fireCallback",t.id,o),this.actionService.updateAction(n.id,r)},_updateActions:function(e){for(var t=e.editor.getActionDataService(),i=this._actions(e),n=0;n<i.length;n++){var o=i[n],r=t.getAction(s.getRTCActionIdFromGlobalActionId(o.id));r?this._updateAction(t,r,o,e):this.actionService.updateAction(o.id,{enabled:!1})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(340),i(1233),i(1221),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){var r={motwActions:[],rtcActions:[]},a=function(t,i){return i=i||{},e.mixin({id:t,enabled:!0,callback:function(){o.warn("Action "+t+" does not do anything yet")}},i)};return Object.keys(i.ids).forEach((function(e){var t=i.ids[e],o=t.slice(n.MOTW_PREFIX.length);r.motwActions.push(a(t)),r.rtcActions.push(a(o,i.rtcAttributes[e]))})),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8159),i(8160),i(8161),i(226)],o=i.dj.d(n,(function(e,t,i,n){return{tag:"motwToolstrip.liveEditorTabGroup",type:n.TAB_GROUP,children:[e,t,i]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(299),i(340),i(645),i(1006),i(567),i(226),i(251),i(643),i(290),i(535),i(253)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return{tag:"motwToolstrip.liveEditorTab",type:r.TAB,title:l.liveEditorTabTitle,mnemonic:"L",children:[{tag:"motwToolstrip.liveEditorTab.file",type:r.SECTION,title:c.fileSectionTitle,children:[{type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.file.newScript",type:r.SPLIT_BUTTON,actionId:e.NEW_FILE_LIVE_EDITOR,textOverride:l.newMenuLabel,description:l.newMenuDescription,iconOverride:"new_24",mnemonic:"N"}]},{type:r.COLUMN,children:[{tag:"motwToolstrip.matlabTab.file.open",actionId:e.OPEN,type:r.SPLIT_BUTTON,popupTag:"motwToolstrip.matlabTab.file.open.openList",mnemonic:"O"}]},{type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.file.save",enabled:!0,icon:"save_24",text:l.saveLabel,actionId:n.SAVE,type:r.SPLIT_BUTTON,mnemonic:"S"}]}]},{tag:"motwToolstrip.liveEditorTab.navigate",type:r.SECTION,title:l.navigateSectionTitle,children:[{tag:"motwToolstrip.liveEditorTab.navigate.column1",type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.navigate.goTo",type:r.DROP_DOWN_BUTTON,text:a.GOTO.GOTO_TOOLSTRIP_BUTTON.Text,actionId:i.GOTO,description:a.GOTO.GOTO_TOOLSTRIP_BUTTON.Description,icon:a.GOTO.GOTO_TOOLSTRIP_BUTTON.Icon,quickAccessIcon:a.GOTO.GOTO_TOOLSTRIP_BUTTON.QuickAccessIcon,hasDynamicPopup:!0,popupTag:"motwToolstrip.liveEditorTab.navigate.goTo.goToList",mnemonic:"G"}]},{tag:"motwToolstrip.editorTab.navigate.column2",type:r.COLUMN,children:[{type:r.PANEL,children:[{tag:"motwToolstrip.liveEditorTab.navigate.back",type:r.PUSH_BUTTON,actionId:t.BACK,icon:"smallBack",quickAccessIcon:"smallBack",mnemonic:"BA"},{tag:"motwToolstrip.liveEditorTab.navigate.forward",type:r.PUSH_BUTTON,actionId:t.FORWARD,icon:"smallForward",quickAccessIcon:"smallForward",mnemonic:"FO"}]},{tag:"motwToolstrip.liveEditorTab.navigate.find",type:r.SPLIT_BUTTON,text:s.findLabel,actionId:t.FIND,description:s.findDescription,icon:"smallFind",quickAccessIcon:"smallFind",mnemonic:"FD"},{tag:"motwToolstrip.liveEditorTab.navigate.bookmarksButton",type:r.SPLIT_BUTTON,text:a.BOOKMARKS.TOGGLE_BOOKMARK.Text,actionId:i.BOOKMARK_TOGGLE,description:a.BOOKMARKS.TOGGLE_BOOKMARK.Description,icon:a.BOOKMARKS.TOGGLE_BOOKMARK.Icon,quickAccessIcon:a.BOOKMARKS.TOGGLE_BOOKMARK.QABIcon,popupTag:"motwToolstrip.liveEditorTab.navigate.bookmarks.dropDown",mnemonic:"BO"}]}]},{tag:"motwToolstrip.liveEditorTab.text",type:r.SECTION,title:c.textSectionTitle,children:[{type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.insert.text",type:r.PUSH_BUTTON,text:s.text,description:s.textDescription,actionId:i.INSERT_TEXT,icon:"bigInsertText",quickAccessIcon:"smallInsertText",mnemonic:"T"}]},{type:r.COLUMN,width:110,children:[{tag:"motwToolstrip.liveEditorTab.style",type:r.DROP_DOWN_BUTTON,actionId:i.PARAGRAPH_STYLE,popupTag:"motwToolstrip.liveEditorTab.text.paragraphStyle.paragraphStyleList",text:s.normal,icon:"smallNormalTextStyle",mnemonic:"H"},{type:r.PANEL,children:[{type:r.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.liveEditorTab.format.bold",type:r.TOGGLE_BUTTON,actionId:i.BOLD,description:s.boldDescription,textOverride:o.DO_NOT_DISPLAY,icon:"smallBold",quickAccessIcon:"smallBold",mnemonic:"FB"},{tag:"motwToolstrip.liveEditorTab.format.bulletedlist",type:r.TOGGLE_BUTTON,actionId:i.BULLETED_LIST,description:s.bulletedList,textOverride:o.DO_NOT_DISPLAY,icon:"smallBulletedList",quickAccessIcon:"smallBulletedList",mnemonic:"LB"}]},{type:r.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.liveEditorTab.format.italics",type:r.TOGGLE_BUTTON,textOverride:o.DO_NOT_DISPLAY,actionId:i.ITALIC,description:s.italicDescription,icon:"smallItalic",quickAccessIcon:"smallItalic",mnemonic:"FI"},{tag:"motwToolstrip.liveEditorTab.format.numberedlist",type:r.TOGGLE_BUTTON,actionId:i.NUMBERED_LIST,description:s.numberedList,textOverride:o.DO_NOT_DISPLAY,icon:"smallNumberedList",quickAccessIcon:"smallNumberedList",mnemonic:"LN"}]},{type:r.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.liveEditorTab.format.underline",type:r.TOGGLE_BUTTON,textOverride:o.DO_NOT_DISPLAY,actionId:i.UNDERLINE,description:s.underlineDescription,icon:"smallUnderline",quickAccessIcon:"smallUnderline",mnemonic:"FU"},{tag:"motwToolstrip.liveEditorTab.format.alignLeft",type:r.TOGGLE_BUTTON,actionId:i.ALIGN_LEFT,description:s.alignLeftLabel,textOverride:o.DO_NOT_DISPLAY,icon:"smallAlignedLeft",quickAccessIcon:"smallAlignedLeft",mnemonic:"AL"}]},{type:r.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.liveEditorTab.format.monospace",type:r.TOGGLE_BUTTON,textOverride:o.DO_NOT_DISPLAY,actionId:i.MONOSPACE,description:s.monospacedDescription,icon:"smallMonospaced",quickAccessIcon:"smallMonospaced",mnemonic:"FM"},{tag:"motwToolstrip.liveEditorTab.format.alignCenter",type:r.TOGGLE_BUTTON,actionId:i.ALIGN_CENTER,description:s.alignCenterLabel,textOverride:o.DO_NOT_DISPLAY,icon:"smallAlignedCenter",quickAccessIcon:"smallAlignedCenter",mnemonic:"AC"}]},{type:r.COLUMN,horizontalAlignment:"center",children:[{type:r.EMPTY_CONTROL},{tag:"motwToolstrip.liveEditorTab.format.alignRight",type:r.TOGGLE_BUTTON,actionId:i.ALIGN_RIGHT,description:s.alignRightLabel,textOverride:o.DO_NOT_DISPLAY,icon:"smallAlignedRight",quickAccessIcon:"smallAlignedRight",mnemonic:"AR"}]}]}]}]},{tag:"motwToolstrip.liveEditorTab.code",type:r.SECTION,title:s.codeSectionTitle,children:[{type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.insert.code",type:r.PUSH_BUTTON,text:s.code,description:s.codeDescription,actionId:i.INSERT_CODE,icon:"bigInsertCode",quickAccessIcon:"smallInsertCode",mnemonic:"K"}]},{type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.insert.control",type:r.DROP_DOWN_BUTTON,text:s.control,popupTag:"motwToolstrip.liveeditor.insert.control.controlList",description:s.controlDescription,actionId:i.INSERT_CONTROL,iconOverride:"bigControl",quickAccessIcon:"smallControl",mnemonic:"IL",preventRestoreFocus:!0}]},{type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.insert.embeddedApp",type:r.DROP_DOWN_BUTTON,text:s.embeddedAppDropDown,popupTag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup",description:s.embeddedAppDescription,actionId:i.INSERT_TASK,iconOverride:"bigEmbeddedApp",quickAccessIcon:"smallEmbeddedApp",mnemonic:"IT",preventRestoreFocus:!0,userCustomization:!1}]},{type:r.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.liveEditorTab.code.refactor",type:r.DROP_DOWN_BUTTON,icon:"smallRefactor",quickAccessIcon:"smallRefactor",text:s.refactorLabel,description:s.refactorDescription,popupTag:"motwToolstrip.liveEditorTab.code.refactorList",actionId:i.REFACTOR,mnemonic:"IR"},{type:r.PANEL,children:[{type:r.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.liveEditorTab.format.comment",type:r.PUSH_BUTTON,textOverride:o.DO_NOT_DISPLAY,icon:a.COMMENT.COMMENT.Icon,quickAccessIcon:a.COMMENT.COMMENT.QABIcon,description:a.COMMENT.COMMENT.Description,actionId:i.COMMENT,mnemonic:"IC"},{tag:"motwToolstrip.liveEditorTab.format.smartIndent",type:r.PUSH_BUTTON,textOverride:o.DO_NOT_DISPLAY,icon:"smallSmartIndent",quickAccessIcon:"smallSmartIndent",description:d.smartIndentLabel,actionId:i.SMART_INDENT,mnemonic:"IS"}]},{type:r.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.liveEditorTab.format.uncomment",type:r.PUSH_BUTTON,textOverride:o.DO_NOT_DISPLAY,icon:a.COMMENT.UNCOMMENT.Icon,quickAccessIcon:a.COMMENT.UNCOMMENT.QABIcon,description:a.COMMENT.UNCOMMENT.Description,actionId:i.UNCOMMENT,mnemonic:"IU"},{tag:"motwToolstrip.liveEditorTab.format.indent",type:r.PUSH_BUTTON,textOverride:o.DO_NOT_DISPLAY,icon:"smallIndent",quickAccessIcon:"smallIndent",description:d.indentDescription,actionId:i.INDENT,mnemonic:"II"}]},{type:r.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.liveEditorTab.format.wrapComment",type:r.PUSH_BUTTON,textOverride:o.DO_NOT_DISPLAY,icon:a.COMMENT.WRAP_COMMENT.Icon,quickAccessIcon:a.COMMENT.WRAP_COMMENT.QABIcon,description:a.COMMENT.WRAP_COMMENT.Description,actionId:i.WRAP_COMMENT,mnemonic:"IW"},{tag:"motwToolstrip.liveEditorTab.format.outdent",type:r.PUSH_BUTTON,textOverride:o.DO_NOT_DISPLAY,icon:"smallOutdent",quickAccessIcon:"smallOutdent",description:d.outdentDescription,actionId:i.UNINDENT,mnemonic:"ID"}]}]}]},{type:r.COLUMN,horizontalAlignment:"center",children:[{type:r.EMPTY_CONTROL},{type:r.EMPTY_CONTROL}]}]},{tag:"motwToolstrip.liveEditorTab.section",type:r.SECTION,title:s.sectionTitle,children:[{type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.run.runSection",type:r.PUSH_BUTTON,text:s.runSection,description:s.runSectionDescription,mnemonic:"C",actionId:i.RUN_SECTION,icon:"bigRunSection",quickAccessIcon:"smallRunSection"}]},{type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.insert.sectionBreak",type:r.PUSH_BUTTON,text:s.sectionBreak,description:s.sectionBreakDescription,actionId:i.INSERT_SECTION_BREAK,icon:"bigInsertSectionBreak",quickAccessIcon:"smallInsertSectionBreak",mnemonic:"BR"},{tag:"motwToolstrip.liveEditorTab.run.runAndAdvance",type:r.PUSH_BUTTON,text:s.runAndAdvance,description:s.runAndAdvanceDescription,mnemonic:"V",actionId:i.RUN_AND_ADVANCE,icon:"smallRunAndAdvance",quickAccessIcon:"smallRunAndAdvance"},{tag:"motwToolstrip.liveEditorTab.run.runToEnd",type:r.PUSH_BUTTON,text:s.runToEnd,description:s.runToEndDescription,mnemonic:"E",actionId:i.RUN_TO_END,icon:"smallRunToEnd",quickAccessIcon:"smallRunToEnd"}]}]},{tag:"motwToolstrip.liveEditorTab.run",type:r.SECTION,title:s.runSectionTitle,children:[{type:r.COLUMN,width:60,horizontalAlignment:"center",children:[{tag:"motwToolstrip.liveEditorTab.run.runAll",type:r.SPLIT_BUTTON,text:s.runAll,description:s.runAllDescription,mnemonic:"R",actionId:i.RUN_ALL,icon:"run_24",quickAccessIcon:"run_16",popupTag:"motwToolstrip.liveEditorTab.run.runList",hasDynamicPopup:!0},{tag:"motwToolstrip.liveEditorTab.run.pause",type:r.PUSH_BUTTON,text:s.pause,description:s.pauseDescription,mnemonic:"R",actionId:i.PAUSE,icon:"bigPause",quickAccessIcon:"smallPause"},{tag:"motwToolstrip.liveEditorTab.run.continue",type:r.PUSH_BUTTON,text:s.continue,description:s.continue,mnemonic:"R",actionId:i.CONTINUE,icon:"bigContinue",quickAccessIcon:"smallContinue"}]},{type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.run.step",type:r.PUSH_BUTTON,text:s.step,description:s.stepDescription,mnemonic:"DD",actionId:i.STEP,iconOverride:"bigStep",quickAccessIcon:"smallStep"}]},{tag:"motwToolstrip.liveEditorTab.run.stepInOutColumn",type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.run.stepIn",type:r.PUSH_BUTTON,text:s.stepInLabel,description:s.stepInDescription,mnemonic:"DI",actionId:i.STEP_IN,iconOverride:"smallStepIn",quickAccessIcon:"smallStepIn"},{tag:"motwToolstrip.liveEditorTab.run.stepOut",type:r.PUSH_BUTTON,text:s.stepOutLabel,description:s.stepOutDescription,mnemonic:"DO",actionId:i.STEP_OUT,iconOverride:"smallStepOut",quickAccessIcon:"smallStepOut"}]},{type:r.COLUMN,children:[{tag:"motwToolstrip.liveEditorTab.run.stop",type:r.PUSH_BUTTON,text:s.stop,description:s.stopDescription,mnemonic:"Q",actionId:i.STOP,icon:"bigQuit",quickAccessIcon:"smallQuit"}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(645),i(226),i(643)],o=i.dj.d(n,(function(e,t,i){return{tag:"motwToolstrip.liveeditor.insertTab",type:t.TAB,title:i.insertTabTitle,mnemonic:"I",children:[{type:t.SECTION,title:i.codeSectionTitle,children:[{type:t.COLUMN,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.code",type:t.PUSH_BUTTON,text:i.code,description:i.codeDescription,actionId:e.INSERT_CODE,icon:"bigInsertCode",quickAccessIcon:"smallInsertCode",mnemonic:"K"}]},{type:t.COLUMN,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.control",type:t.DROP_DOWN_BUTTON,text:i.control,popupTag:"motwToolstrip.liveeditor.insert.control.controlList",description:i.controlDescription,actionId:e.INSERT_CONTROL,iconOverride:"bigControl",quickAccessIcon:"smallControl",mnemonic:"IL",preventRestoreFocus:!0}]},{type:t.COLUMN,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.embeddedApp",type:t.DROP_DOWN_BUTTON,text:i.embeddedAppDropDown,popupTag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup",description:i.embeddedAppDescription,actionId:e.INSERT_TASK,iconOverride:"bigEmbeddedApp",quickAccessIcon:"smallEmbeddedApp",mnemonic:"IT",preventRestoreFocus:!0,userCustomization:!1}]}]},{type:t.SECTION,title:i.sectionTitle,children:[{type:t.COLUMN,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.sectionBreak",type:t.PUSH_BUTTON,text:i.sectionBreak,description:i.sectionBreakDescription,actionId:e.INSERT_SECTION_BREAK,icon:"bigInsertSectionBreak",quickAccessIcon:"smallInsertSectionBreak",mnemonic:"B"}]}]},{type:t.SECTION,title:i.textSectionTitle,children:[{type:t.COLUMN,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.text",type:t.PUSH_BUTTON,text:i.text,description:i.textDescription,actionId:e.INSERT_TEXT,icon:"bigInsertText",quickAccessIcon:"smallInsertText",mnemonic:"T"}]},{type:t.COLUMN,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.tableOfContents",type:t.PUSH_BUTTON,text:i.tableOfContents,description:i.tableOfContentsDescription,actionId:e.INSERT_TABLE_OF_CONTENTS,icon:"bigInsertToC",quickAccessIcon:"smallInsertToC",mnemonic:"E"}]},{type:t.COLUMN,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.codeExample",type:t.SPLIT_BUTTON,text:i.codeExample,popupTag:"motwToolstrip.liveeditor.insertTab.insert.codeExample.codeExampleList",description:i.codeExampleDescription,actionId:e.INSERT_CODE_EXAMPLE,iconOverride:"bigInsertCodeExample",quickAccessIcon:"smallInsertCodeExample",mnemonic:"O"}]}]},{type:t.SECTION,title:i.imageSectionTitle,children:[{type:t.COLUMN,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.image",type:t.PUSH_BUTTON,text:i.image,description:i.imageDescription,actionId:e.INSERT_IMAGE,icon:"bigImage",quickAccessIcon:"smallImage",mnemonic:"A"}]}]},{type:t.SECTION,title:i.linkSectionTitle,children:[{type:t.COLUMN,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.hyperlink",type:t.PUSH_BUTTON,text:i.hyperlink,description:i.hyperlinkDescription,actionId:e.INSERT_HYPERLINK,icon:"bigHyperlink",quickAccessIcon:"smallHyperlink",mnemonic:"H"}]}]},{type:t.SECTION,title:i.equationSectionTitle,children:[{type:t.COLUMN,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.equation",type:t.SPLIT_BUTTON,text:i.equation,popupTag:"motwToolstrip.liveeditor.insertTab.insert.equation.equationList",description:i.equationDescription,actionId:e.INSERT_EQUATION_EDITOR,iconOverride:"bigEquation",quickAccessIcon:"smallEquation",mnemonic:"Q"}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(645),i(643),i(251)],o=i.dj.d(n,(function(e,t,i,n){return{tag:"motwToolstrip.liveeditor.viewTab",type:e.TAB,title:i.viewTabTitle,mnemonic:"W",children:[{tag:"motwToolstrip.liveeditor.viewTab.display",type:e.SECTION,title:n.DISPLAY_SECTION.Title,children:[{tag:"motwToolstrip.liveeditor.viewTab.display.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.liveeditor.viewTab.display.dataTips",type:e.TOGGLE_BUTTON,text:n.DISPLAY_SECTION.DATATIPS.Text,description:n.DISPLAY_SECTION.DATATIPS.Description,actionId:t.DATATIPS,icon:n.DISPLAY_SECTION.DATATIPS.Icon,quickAccessIcon:n.DISPLAY_SECTION.DATATIPS.QuickAccessIcon,mnemonic:"DE"}]},{tag:"motwToolstrip.liveeditor.viewTab.display.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.liveeditor.viewTab.display.completions",type:e.TOGGLE_BUTTON,text:n.DISPLAY_SECTION.AUTO_COMPLETION.Text,description:n.DISPLAY_SECTION.AUTO_COMPLETION.Description,actionId:t.COMPLETIONS,icon:n.DISPLAY_SECTION.AUTO_COMPLETION.Icon,quickAccessIcon:n.DISPLAY_SECTION.AUTO_COMPLETION.QuickAccessIcon,mnemonic:"DC"}]}]},{tag:"motwToolstrip.liveeditor.viewTab.output",type:e.SECTION,title:i.outputSectionTitle,children:[{tag:"motwToolstrip.liveeditor.viewTab.output.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.liveeditor.viewTab.output.clearOutput",type:e.PUSH_BUTTON,text:i.clearOutput,description:i.clearOutputDescription,actionId:t.CLEAR_ALL_OUTPUT,icon:"bigClearOutput",quickAccessIcon:"smallClearOutput",mnemonic:"C"}]}]},{tag:"motwToolstrip.liveeditor.viewTab.view",type:e.SECTION,title:i.viewSectionTitle,children:[{type:e.COLUMN,children:[{tag:"motwToolstrip.liveeditor.viewTab.view.code",type:e.TOGGLE_BUTTON,text:i.codeView,description:i.codeViewDescription,actionId:t.OUTPUT_ON_RIGHT,buttonGroupName:"viewToggleButton",icon:"bigCodeView",quickAccessIcon:"smallCodeView",mnemonic:"OR"}]},{type:e.COLUMN,children:[{tag:"motwToolstrip.liveeditor.viewTab.view.document",type:e.TOGGLE_BUTTON,text:i.documentView,description:i.documentViewDescription,actionId:t.OUTPUT_INLINE,buttonGroupName:"viewToggleButton",icon:"bigDocumentView",quickAccessIcon:"smallDocumentView",mnemonic:"OI"}]},{type:e.COLUMN,children:[{tag:"motwToolstrip.liveeditor.viewTab.view.hidecode",type:e.TOGGLE_BUTTON,text:i.hideCodeView,description:i.hideCodeViewDescription,actionId:t.HIDE_CODE_VIEW,buttonGroupName:"viewToggleButton",icon:"bigHideCodeView",quickAccessIcon:"smallHideCodeView",mnemonic:"HC"}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(340),i(645),i(1006),i(299),i(226),i(537),i(643),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{popups:[{tag:"motwToolstrip.liveEditorTab.file.save.saveList",type:o.POPUP_LIST,children:[{tag:"motwToolstrip.liveEditorTab.file.save.newList.save",actionId:n.SAVE,type:o.LIST_ITEM},{tag:"motwToolstrip.liveEditorTab.file.save.newList.saveAs",actionId:e.SAVEAS,type:o.LIST_ITEM},{tag:"motwToolstrip.liveEditorTab.file.save.newList.saveAll",actionId:e.SAVEALL,type:o.LIST_ITEM},{tag:"motwToolstrip.liveEditorTab.file.save.saveList.saveAsPDF",type:o.LIST_ITEM,actionId:i.EXPORT_AS_PDF},{tag:"motwToolstrip.liveEditorTab.file.save.saveList.saveAsDOCX",type:o.LIST_ITEM,actionId:i.EXPORT_AS_DOCX},{tag:"motwToolstrip.liveEditorTab.file.save.saveList.saveAsHTML",type:o.LIST_ITEM,actionId:i.EXPORT_AS_HTML},{tag:"motwToolstrip.liveEditorTab.file.save.saveList.saveAsLaTeX",type:o.LIST_ITEM,actionId:i.EXPORT_AS_LATEX},{tag:"motwToolstrip.liveEditorTab.file.save.saveList.exportFolder",type:o.LIST_ITEM,actionId:i.EXPORT_FOLDER}]},{tag:"motwToolstrip.liveEditorTab.text.paragraphStyle.paragraphStyleList",type:o.POPUP_LIST,children:[{tag:"motwToolstrip.liveEditorTab.text.paragraphStyle.paragraphStyleList.normal",actionId:t.NORMAL,type:o.LIST_ITEM,icon:"bigNormalTextStyle",text:a.normal},{tag:"motwToolstrip.liveEditorTab.text.paragraphStyle.paragraphStyleList.heading",actionId:t.HEADING1,type:o.LIST_ITEM,icon:"bigHeadingTextStyle",text:a.heading},{tag:"motwToolstrip.liveEditorTab.text.paragraphStyle.paragraphStyleList.heading2",actionId:t.HEADING2,type:o.LIST_ITEM,icon:"bigHeading2TextStyle",text:a.heading2},{tag:"motwToolstrip.liveEditorTab.text.paragraphStyle.paragraphStyleList.heading3",actionId:t.HEADING3,type:o.LIST_ITEM,icon:"bigHeading3TextStyle",text:a.heading3},{tag:"motwToolstrip.liveEditorTab.text.paragraphStyle.paragraphStyleList.title",actionId:t.TITLE,type:o.LIST_ITEM,icon:"bigTitleTextStyle",text:a.title}]},{tag:"motwToolstrip.liveeditor.insertTab.insert.equation.equationList",type:o.POPUP_LIST,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.equation.equationList.defaultEquation",type:o.LIST_ITEM,actionId:t.INSERT_EQUATION_EDITOR,text:a.defaultEquation,description:a.defaultEquationDescription,icon:"smallEquation"},{tag:"motwToolstrip.liveeditor.insertTab.insert.equation.equationList.texEquation",type:o.LIST_ITEM,actionId:t.INSERT_EQUATION,text:a.texEquation,description:a.texEquationDescription,icon:"smallEquationLatex"}]},{tag:"motwToolstrip.liveeditor.insertTab.insert.codeExample.codeExampleList",type:o.POPUP_LIST,children:[{tag:"motwToolstrip.liveeditor.insertTab.insert.codeExample.codeExampleList.codeExampleMatlab",type:o.LIST_ITEM,actionId:t.INSERT_CODE_EXAMPLE_MATLAB,text:a.codeExampleMatlab,description:a.codeExampleMatlabDescription},{tag:"motwToolstrip.liveeditor.insertTab.insert.codeExample.codeExampleList.codeExamplePlain",type:o.LIST_ITEM,actionId:t.INSERT_CODE_EXAMPLE_PLAIN,text:a.codeExamplePlain,description:a.codeExamplePlainDescription}]},{tag:"motwToolstrip.liveEditorTab.code.refactorList",type:o.POPUP_LIST,children:[{tag:"motwToolstrip.liveEditorTab.code.convertfunction.externalfunction",type:o.LIST_ITEM,actionId:t.REFACTOR_FUNCTION,text:a.convertFunction},{tag:"motwToolstrip.liveEditorTab.code.convertfunction.localfunction",type:o.LIST_ITEM,actionId:t.REFACTOR_LOCAL_FUNCTION,text:a.convertLocalFunction}]},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup",type:o.GALLERY_POPUP,galleryItemWidth:90,galleryItemTextLineCount:2,favCategoryId:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.favorites",children:[{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.favorites",type:o.GALLERY_FAVORITE_CATEGORY},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.my_tasks",type:o.GALLERY_CATEGORY,title:a.my_tasks,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.fortestingonly_category",type:o.GALLERY_CATEGORY,title:a.fortestingonly_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.dataandvisualization_category",type:o.GALLERY_CATEGORY,title:a.dataandvisualization_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.datapreprocessing_category",type:o.GALLERY_CATEGORY,title:a.datapreprocessing_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.tables_category",type:o.GALLERY_CATEGORY,title:a.tables_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.statsandmachinelearning_category",type:o.GALLERY_CATEGORY,title:a.statsandmachinelearning_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.optim_category",type:o.GALLERY_CATEGORY,title:a.optim_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.controls_category",type:o.GALLERY_CATEGORY,title:a.controls_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.predmaint_category",type:o.GALLERY_CATEGORY,title:a.predmaint_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.sysid_category",type:o.GALLERY_CATEGORY,title:a.sysid_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.spc_category",type:o.GALLERY_CATEGORY,title:a.spc_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.symbolic_category",type:o.GALLERY_CATEGORY,title:a.symbolic_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.imaq_category",type:o.GALLERY_CATEGORY,title:a.imaq_category,alphabetize:!0},{tag:"motwToolstrip.liveeditor.insert.embeddedApp.embeddedAppGalleryPopup.computationalfinance_category",type:o.GALLERY_CATEGORY,title:a.computationalfinance_category,alphabetize:!0}]},{tag:"motwToolstrip.liveeditor.insert.control.controlList",type:o.POPUP_LIST,children:[{tag:"motwToolstrip.liveeditor.insert.control.controlList.slider",type:o.LIST_ITEM,actionId:t.INSERT_SLIDER,text:a.slider,description:a.sliderDescription,icon:"smallSlider"},{tag:"motwToolstrip.liveeditor.insert.control.controlList.comboBox",type:o.LIST_ITEM,actionId:t.INSERT_COMBO_BOX,text:a.comboBox,description:a.comboBoxDescription,icon:"smallComboBox"},{tag:"motwToolstrip.liveeditor.insert.control.controlList.checkBox",type:o.LIST_ITEM,actionId:t.INSERT_CHECK_BOX,text:a.checkBox,description:a.checkBoxDescription,icon:"smallCheckBox"},{tag:"motwToolstrip.liveeditor.insert.control.controlList.editField",type:o.LIST_ITEM,actionId:t.INSERT_EDIT_FIELD,text:a.editField,description:a.editFieldDescription,icon:"smallEditField"},{tag:"motwToolstrip.liveeditor.insert.control.controlList.button",type:o.LIST_ITEM,actionId:t.INSERT_BUTTON,text:a.button,description:a.buttonDescription,icon:"smallButton"}]},{tag:"motwToolstrip.liveEditorTab.run.runList",type:o.POPUP_LIST,children:[{tag:"motwToolstrip.liveEditorTab.run.runList.run",actionId:t.RUN_ALL,type:o.LIST_ITEM,text:a.runAll,description:a.runAllDescription,quickAccessIcon:"run_16",closePopupOnClick:!0},{tag:"motwToolstrip.liveEditorTab.run.runList.breakpointsTitle",title:a.breakpointsTitle,type:o.POPUP_LIST_HEADER},{tag:"motwToolstrip.liveEditorTab.run.runList.breakpoints.clearAllBreakpoints",type:o.LIST_ITEM,actionId:t.CLEAR_ALL_BREAKPOINTS,iconOverride:"bigClearAllBreakpoints",quickAccessIcon:"smallClearAllBreakpoints",textOverride:a.clearAllBreakpoints,descriptionOverride:a.clearAllBreakpointsDescription},{tag:"motwToolstrip.liveEditorTab.run.runList.breakpoints.toggleBreakpoint",type:o.LIST_ITEM,actionId:t.TOGGLE_BREAKPOINT,iconOverride:"bigToggleBreakpoint",quickAccessIcon:"smallToggleBreakpoint",textOverride:a.toggleBreakpoint,descriptionOverride:a.toggleBreakpointDescription},{tag:"motwToolstrip.liveEditorTab.run.runList.breakpoints.toggleEnableBreakpoint",type:o.LIST_ITEM,actionId:t.TOGGLE_ENABLE_BREAKPOINT,iconOverride:"bigToggleEnableBreakpoint",quickAccessIcon:"smallToggleEnableBreakpoint",textOverride:a.toggleEnableBreakpoint,descriptionOverride:a.toggleEnableBreakpointDescription}]},{tag:"motwToolstrip.liveEditorTab.navigate.goTo.goToList",type:o.POPUP_LIST,children:[{tag:"motwToolstrip.liveEditorTab.navigate.goTo.goToList.sectionList",type:o.POPUP_LIST_HEADER,title:r.locationTitle},{tag:"motwToolstrip.liveEditorTab.navigate.goTo.goToList.goToLine",type:o.LIST_ITEM,actionId:e.GOTO_LINE,icon:s.GOTO.GOTO_LINE.Icon,quickAccessIcon:s.GOTO.GOTO_LINE.QuickAccessIcon},{tag:"motwToolstrip.liveEditorTab.navigate.goTo.goToList.goToFile",type:o.LIST_ITEM,actionId:e.GOTO_FILE,iconOverride:"icon_go_to_file_24"},{type:o.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.liveEditorTab.navigate.goTo.goToList.previousSection",type:o.LIST_ITEM,actionId:t.PREVIOUS_SECTION,text:r.previousSectionLabel,description:r.previousSectionDescription,icon:"bigPrevious",quickAccessIcon:"smallPrevious"},{tag:"motwToolstrip.liveEditorTab.navigate.goTo.goToList.nextSection",type:o.LIST_ITEM,actionId:t.NEXT_SECTION,text:r.nextSectionLabel,description:r.nextSectionDescription,icon:"bigNext",quickAccessIcon:"smallNext"}]},{tag:"motwToolstrip.liveEditorTab.navigate.bookmarks.dropDown",type:o.POPUP_LIST,children:[{tag:"motwToolstrip.liveEditorTab.navigate.bookmarks.dropDown.toggle",type:o.LIST_ITEM,actionId:t.BOOKMARK_TOGGLE,text:s.BOOKMARKS.TOGGLE_BOOKMARK.Text,description:s.BOOKMARKS.TOGGLE_BOOKMARK.Description,icon:s.BOOKMARKS.TOGGLE_BOOKMARK.Icon,quickAccessIcon:s.BOOKMARKS.TOGGLE_BOOKMARK.QABIcon},{tag:"motwToolstrip.liveEditorTab.navigate.bookmarks.dropDown.prev",type:o.LIST_ITEM,actionId:t.BOOKMARK_PREVIOUS,text:s.BOOKMARKS.PREV_BOOKMARK.Text,description:s.BOOKMARKS.PREV_BOOKMARK.Description,icon:s.BOOKMARKS.PREV_BOOKMARK.Icon,quickAccessIcon:s.BOOKMARKS.PREV_BOOKMARK.QABIcon},{tag:"motwToolstrip.liveEditorTab.navigate.bookmarks.dropDown.next",type:o.LIST_ITEM,actionId:t.BOOKMARK_NEXT,text:s.BOOKMARKS.NEXT_BOOKMARK.Text,description:s.BOOKMARKS.NEXT_BOOKMARK.Description,icon:s.BOOKMARKS.NEXT_BOOKMARK.Icon,quickAccessIcon:s.BOOKMARKS.NEXT_BOOKMARK.QABIcon}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1234),i(642),i(2565),i(484)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{modulePath:"MOTW/editor/LiveEditorWidgetFactory",createWidget:function(e,i,o){var r=o,a=e.getRootUIContainer(),s=a.application.fileDataService;const l=a.application.editorService,c=!!o.get("isUndocking");return t.ensureActionsLoaded(e),r.widget=new n({id:o.id,editorView:r,actionService:e.actionService,fileDataService:s,editorService:l,statusBar:l.statusBar}),e==a&&a.application.editorService._setupDropTarget(r),!c&&i?l.loadEditor(r,i.ShowErrorDialogs,i.AddEditorViewToUiContainer):l.loadEditor(r,!0,!1),r.widget},createProperties:function(e,n,o){const r=e.getRootUIContainer().application.editorService,a=t.createEditorView(e,n,o.documentId,i.DOCUMENT_TYPE.LIVE_CODE_FILE,r.generateLiveEditorId());return r.registerLiveEditor(a),a}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(226),i(484),i(1234),i(299),i(8165),i(8167),i(1012)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([i],{modulePath:"MOTW/editor/PlainEditorTabGroupFactory",createWidget:function(e,i,l){n.ensureActionsLoaded(e);var c=e.uiBuilder;if(c.createPopupsFromConfig(a),c.addTabGroupFromConfig(r,"motwToolstrip.editorTabGroup"),e.isChildContainer()){var d=c.tagToId("motwToolstrip.editorTabGroup"),u=c.get(d,"QAGroupId");c.create({tag:"qabSave",type:t.QAB_PUSH_BUTTON,actionId:o.SAVE,parentId:u}),c.create({tag:s.UNDO,type:t.QAB_PUSH_BUTTON,quickAccessIcon:"undo_16",parentId:u}),c.create({tag:s.REDO,type:t.QAB_PUSH_BUTTON,quickAccessIcon:"redo_16",parentId:u})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(299),i(340),i(537),i(290),i(535),i(341),i(8166),i(251)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c={tag:"motwToolstrip.editorTabGroup",type:e.TAB_GROUP,children:[s,{tag:"motwToolstrip.publishTab",type:e.TAB,title:n.publishTabTitle,mnemonic:"B",children:[{tag:"motwToolstrip.publishTab.file",type:e.SECTION,title:r.fileSectionTitle,children:[{tag:"motwToolstrip.publishTab.file.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.publishTab.file.save",actionId:t.SAVE,type:e.SPLIT_BUTTON,mnemonic:"S"}]}]},{tag:"motwToolstrip.publishTab.insertSection",type:e.SECTION,title:n.insertSectionTitle,children:[{tag:"motwToolstrip.publishTab.insertSection.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.publishTab.insertSection.newSection",actionId:i.NEW_SECTION,type:e.PUSH_BUTTON,mnemonic:"N"}]},{tag:"motwToolstrip.publishTab.insertSection.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.publishTab.insertSection.insertSectionWithTitle",actionId:i.INSERT_SECTION_WITH_TITLE,type:e.PUSH_BUTTON,mnemonic:"T"}]}]},{tag:"motwToolstrip.publishTab.insertInlineMarkupSection",type:e.SECTION,title:n.insertInlineMarkupTitle,children:[{tag:"motwToolstrip.publishTab.insertInlineMarkupSection.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.publishTab.insertInlineMarkupSection.bold",actionId:i.BOLD,type:e.PUSH_BUTTON,mnemonic:"B"},{tag:"motwToolstrip.publishTab.insertInlineMarkupSection.italic",actionId:i.ITALIC,type:e.PUSH_BUTTON,mnemonic:"I"},{tag:"motwToolstrip.publishTab.insertInlineMarkupSection.monospaced",actionId:i.MONOSPACED,type:e.PUSH_BUTTON,mnemonic:"O"}]},{tag:"motwToolstrip.publishTab.insertInlineMarkupSection.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.publishTab.insertInlineMarkupSection.hyperlink",actionId:i.HYPERLINK,type:e.PUSH_BUTTON,mnemonic:"H"},{tag:"motwToolstrip.publishTab.insertInlineMarkupSection.inlineLatex",actionId:i.INLINE_LATEX,type:e.PUSH_BUTTON,mnemonic:"L"}]}]},{tag:"motwToolstrip.publishTab.insertBlockMarkupSection",type:e.SECTION,title:n.insertBlockMarkupTitle,children:[{tag:"motwToolstrip.publishTab.insertBlockMarkupSection.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.publishTab.insertBlockMarkupSection.bulletedList",actionId:i.BULLETED_LIST,type:e.PUSH_BUTTON,mnemonic:"U"},{tag:"motwToolstrip.publishTab.insertBlockMarkupSection.numberedList",actionId:i.NUMBERED_LIST,type:e.PUSH_BUTTON,mnemonic:"M"},{tag:"motwToolstrip.publishTab.insertBlockMarkupSection.image",actionId:i.IMAGE,type:e.PUSH_BUTTON,mnemonic:"G"}]},{tag:"motwToolstrip.publishTab.insertBlockMarkupSection.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.publishTab.insertBlockMarkupSection.preformattedText",actionId:i.PREFORMATTED_TEXT,type:e.PUSH_BUTTON,mnemonic:"F"},{tag:"motwToolstrip.publishTab.insertBlockMarkupSection.code",actionId:i.CODE,type:e.PUSH_BUTTON,mnemonic:"C"},{tag:"motwToolstrip.publishTab.insertBlockMarkupSection.displayLatex",actionId:i.DISPLAY_LATEX,type:e.PUSH_BUTTON,mnemonic:"X"}]}]},{tag:"motwToolstrip.publishTab.publish",type:e.SECTION,title:n.publishSectionTitle,children:[{tag:"motwToolstrip.publishTab.publish.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.publishTab.publish.publish",actionId:i.PUBLISH,type:e.SPLIT_BUTTON,popupTag:"motwToolstrip.publishTab.publishPopupList",mnemonic:"PL"}]},{tag:"motwToolstrip.publishTab.publish.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.publishTab.publish.publishAsHTML",actionId:i.PUBLISH_AS_HTML,type:e.PUSH_BUTTON,mnemonic:"PH"}]},{tag:"motwToolstrip.publishTab.publish.column3",type:e.COLUMN,children:[{tag:"motwToolstrip.publishTab.publish.publishAsPDF",actionId:i.PUBLISH_AS_PDF,type:e.PUSH_BUTTON,mnemonic:"PP"}]}]}]}]},d={tag:"motwToolstrip.fileHistoryTab",type:e.TAB,title:o.fileHistoryTabTitle,mnemonic:"V",children:[{tag:"motwToolstrip.fileHistoryTab.browse",type:e.SECTION,title:o.browseSectionTitle,children:[{tag:"motwToolstrip.fileHistoryTab.browse.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.fileHistoryTab.browse.older",actionId:i.GET_OLDER_VERSION,type:e.PUSH_BUTTON,mnemonic:"O"}]},{tag:"motwToolstrip.fileHistoryTab.browse.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.fileHistoryTab.browse.newer",actionId:i.GET_NEWER_VERSION,type:e.PUSH_BUTTON,mnemonic:"N"}]}]},{tag:"motwToolstrip.fileHistoryTab.restore",type:e.SECTION,title:o.restoreSectionTitle,children:[{tag:"motwToolstrip.fileHistoryTab.restore.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.fileHistoryTab.restore.restoreAsLatest",actionId:i.RESTORE_AS_LATEST,type:e.PUSH_BUTTON,mnemonic:"R"}]}]},{tag:"motwToolstrip.fileHistoryTab.history",type:e.SECTION,title:o.historySectionTitle,children:[{tag:"motwToolstrip.fileHistoryTab.history.column1",type:e.COLUMN,width:230,children:[{tag:"motwToolstrip.fileHistoryTab.history.historyComboBox",actionId:i.VERSION_LIST,type:e.COMBO_BOX,mnemonic:"V"}]}]}]},u={tag:"motwToolstrip.viewTab",type:e.TAB,title:n.viewTabTitle,mnemonic:"W",children:[{tag:"motwToolstrip.viewTab.display",type:e.SECTION,title:l.DISPLAY_SECTION.Title,children:[{tag:"motwToolstrip.viewTab.display.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.viewTab.display.highlightCurrentline",type:e.TOGGLE_BUTTON,actionId:l.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.Action,icon:l.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.Icon,quickAccessIcon:l.DISPLAY_SECTION.HIGHLIGHT_CURRENT_LINE.QuickAccessIcon,mnemonic:"DH"}]},{tag:"motwToolstrip.viewTab.display.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.viewTab.display.lineNumbers",type:e.TOGGLE_BUTTON,actionId:l.DISPLAY_SECTION.LINE_NUMBERS.Action,icon:l.DISPLAY_SECTION.LINE_NUMBERS.Icon,quickAccessIcon:l.DISPLAY_SECTION.LINE_NUMBERS.QuickAccessIcon,mnemonic:"DS"}]},{tag:"motwToolstrip.viewTab.display.column3",type:e.COLUMN,children:[{tag:"motwToolstrip.viewTab.display.dataTips",type:e.TOGGLE_BUTTON,actionId:l.DISPLAY_SECTION.DATATIPS.Action,icon:l.DISPLAY_SECTION.DATATIPS.Icon,quickAccessIcon:l.DISPLAY_SECTION.DATATIPS.QuickAccessIcon,mnemonic:"D"}]},{tag:"motwToolstrip.viewTab.display.column4",type:e.COLUMN,children:[{tag:"motwToolstrip.viewTab.display.completions",type:e.TOGGLE_BUTTON,actionId:l.DISPLAY_SECTION.AUTO_COMPLETION.Action,icon:l.DISPLAY_SECTION.AUTO_COMPLETION.Icon,quickAccessIcon:l.DISPLAY_SECTION.AUTO_COMPLETION.QuickAccessIcon,mnemonic:"DC"}]}]},{tag:"motwToolstrip.viewTab.codeFolding",type:e.SECTION,title:l.CODE_FOLDING.codeFoldingSectionTitle,children:[{tag:"motwToolstrip.viewTab.codeFolding.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.viewTab.codeFolding.exapnd",type:e.PUSH_BUTTON,actionId:i.EXPAND,icon:l.CODE_FOLDING.UNFOLD_CURRENT_BLOCK.Icon,quickAccessIcon:l.CODE_FOLDING.UNFOLD_CURRENT_BLOCK.QuickAccessIcon,mnemonic:"EX"}]},{tag:"motwToolstrip.viewTab.codeFolding.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.viewTab.codeFolding.collapse",type:e.PUSH_BUTTON,actionId:i.COLLAPSE,icon:l.CODE_FOLDING.FOLD_CURRENT_BLOCK.Icon,quickAccessIcon:l.CODE_FOLDING.FOLD_CURRENT_BLOCK.QuickAccessIcon,mnemonic:"FC"}]},{tag:"motwToolstrip.viewTab.codeFolding.column3",type:e.COLUMN,children:[{tag:"motwToolstrip.viewTab.codeFolding.exapndAll",type:e.PUSH_BUTTON,actionId:i.EXPAND_ALL,icon:l.CODE_FOLDING.UNFOLD_ALL.Icon,quickAccessIcon:l.CODE_FOLDING.UNFOLD_ALL.QuickAccessIcon,mnemonic:"XA"}]},{tag:"motwToolstrip.viewTab.codeFolding.column3",type:e.COLUMN,children:[{tag:"motwToolstrip.viewTab.codeFolding.collapseAll",type:e.PUSH_BUTTON,actionId:i.COLLAPSE_ALL,icon:l.CODE_FOLDING.FOLD_ALL.Icon,quickAccessIcon:l.CODE_FOLDING.FOLD_ALL.QuickAccessIcon,mnemonic:"CA"}]}]}]};return a.isFeatureRegistered(a.FeatureNames.GDS)&&!0===a.getFeatureStatus(a.FeatureNames.GDS)&&(c.children.push(d),c.children.push(u)),c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(299),i(340),i(537),i(290),i(535),i(567)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{tag:"motwToolstrip.editorTab",prefix:"motw",type:e.TAB,title:o.editorTabTitle,mnemonic:"E",children:[{tag:"motwToolstrip.editorTab.file",type:e.SECTION,title:r.fileSectionTitle,collapsePriority:3,children:[{tag:"motwToolstrip.editorTab.file.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.file.newScript",type:e.SPLIT_BUTTON,actionId:t.NEW_FILE_EDITOR,textOverride:o.newMenuLabel,description:o.newMenuDescription,iconOverride:"new_24",mnemonic:"N"}]},{tag:"motwToolstrip.editorTab.file.open",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.file.open",actionId:t.OPEN,type:e.SPLIT_BUTTON,popupTag:"motwToolstrip.matlabTab.file.open.openList",mnemonic:"O"}]},{tag:"motwToolstrip.editorTab.file.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.file.save",actionId:t.SAVE,type:e.SPLIT_BUTTON,mnemonic:"S"}]},{tag:"motwToolstrip.editorTab.file.column4",type:e.COLUMN,children:[]}]},{tag:"motwToolstrip.editorTab.navigate",type:e.SECTION,collapsePriority:2,title:r.navigateSectionTitle,children:[{tag:"motwToolstrip.editorTab.navigate.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.navigate.goTo",actionId:i.GOTO,type:e.DROP_DOWN_BUTTON,mnemonic:"G"}]},{tag:"motwToolstrip.editorTab.navigate.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.navigate.row1",type:e.PANEL,children:[{tag:"motwToolstrip.editorTab.navigate.back",type:e.PUSH_BUTTON,actionId:i.BACK,mnemonic:"BA"},{tag:"motwToolstrip.editorTab.navigate.forward",type:e.PUSH_BUTTON,actionId:i.FORWARD,mnemonic:"FO"}]},{tag:"motwToolstrip.editorTab.navigate.find",actionId:i.FIND,type:e.SPLIT_BUTTON,popupTag:"motwToolstrip.editorTab.navigate.find.findList",mnemonic:"FD"},{tag:"motwToolstrip.editorTab.navigate.bookmarksButton",actionId:i.BOOKMARK_TOGGLE,type:e.SPLIT_BUTTON,popupTag:"motwToolstrip.editorTab.navigate.bookmarks.dropDown",mnemonic:"BO"}]}]},{tag:"motwToolstrip.editorTab.edit",type:e.SECTION,collapsePriority:1,title:r.codeSectionTitle,children:[{tag:"motwToolstrip.editorTab.edit.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.edit.refactor",actionId:i.REFACTOR,type:e.DROP_DOWN_BUTTON,popupTag:"motwToolstrip.editorTab.edit.refactor.refactorList",mnemonic:"IR"}]},{tag:"motwToolstrip.editorTab.edit.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.edit.commentPanel",type:e.PANEL,horizontalAlignment:"right",children:[{tag:"motwToolstrip.editorTab.edit.comment.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.edit.insertComment",actionId:i.INSERT_COMMENT,type:e.PUSH_BUTTON,mnemonic:"IC"}]},{tag:"motwToolstrip.editorTab.edit.comment.column3",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.edit.uncomment",actionId:i.UNCOMMENT,type:e.PUSH_BUTTON,mnemonic:"IU"}]},{tag:"motwToolstrip.editorTab.edit.comment.column4",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.edit.wrapComment",actionId:i.WRAP_COMMENT,type:e.PUSH_BUTTON,mnemonic:"IW"}]}]},{tag:"motwToolstrip.editorTab.edit.indentPanel",type:e.PANEL,horizontalAlignment:"right",children:[{tag:"motwToolstrip.editorTab.edit.indent.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.edit.smartIndent",actionId:i.SMART_INDENT,type:e.PUSH_BUTTON,textOverride:a.DO_NOT_DISPLAY,mnemonic:"IS"}]},{tag:"motwToolstrip.editorTab.edit.indent.column3",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.edit.indent",actionId:i.INDENT,type:e.PUSH_BUTTON,mnemonic:"II"}]},{tag:"motwToolstrip.editorTab.edit.indent.column4",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.edit.outdent",actionId:i.OUTDENT,type:e.PUSH_BUTTON,mnemonic:"ID"}]}]}]}]},{tag:"motwToolstrip.editorTab.section",type:e.SECTION,title:r.sectionSectionTitle,children:[{type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.run.runCell",actionId:i.RUN_CELL,type:e.PUSH_BUTTON,mnemonic:"C",icon:"bigRunSection",quickAccessIcon:"smallRunSection"}]},{type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.edit.insertSection",text:n.insertSectionLabel,description:n.insertSectionDescription,actionId:i.INSERT_SECTION,icon:"smallInsertSectionBreak",type:e.PUSH_BUTTON,mnemonic:"BR"},{tag:"motwToolstrip.editorTab.run.runAndAdvance",type:e.PUSH_BUTTON,text:n.runCellAdvanceLabel,description:n.runCellAdvanceDescription,mnemonic:"V",actionId:i.RUN_CELL_ADVANCE,icon:"smallRunAndAdvance",quickAccessIcon:"smallRunAndAdvance"},{tag:"motwToolstrip.editorTab.run.runToEnd",type:e.PUSH_BUTTON,text:n.runToEndLabel,description:n.runToEndDescription,mnemonic:"E",actionId:i.RUN_TO_END,icon:"smallRunToEnd",quickAccessIcon:"smallRunToEnd"}]}]},{tag:"motwToolstrip.editorTab.run",type:e.SECTION,collapsePriority:4,title:o.runSectionTitle,children:[{tag:"motwToolstrip.editorTab.run.column1",width:60,horizontalAlignment:"center",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.run.run",actionId:i.RUN,type:e.SPLIT_BUTTON,popupTag:"motwToolstrip.editorTab.runList",mnemonic:"R",hasDynamicPopup:!0},{tag:"motwToolstrip.editorTab.run.pause",type:e.PUSH_BUTTON,text:n.pause,description:n.pauseDescription,mnemonic:"R",actionId:i.PAUSE,icon:"bigPause",quickAccessIcon:"smallPause"},{tag:"motwToolstrip.editorTab.run.continue",type:e.PUSH_BUTTON,text:n.continue,description:n.continue,mnemonic:"R",actionId:i.CONTINUE,icon:"bigContinue",quickAccessIcon:"smallContinue"}]},{type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.run.step",type:e.PUSH_BUTTON,text:n.step,description:n.stepDescription,mnemonic:"DD",actionId:i.STEP,iconOverride:"bigStep",quickAccessIcon:"smallStep"}]},{tag:"motwToolstrip.editorTab.run.stepInOutColumn",type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.run.stepIn",type:e.PUSH_BUTTON,text:n.stepInLabel,description:n.stepInDescription,mnemonic:"DI",actionId:i.DEBUG_STEP_IN,iconOverride:"smallStepIn",quickAccessIcon:"smallStepIn"},{tag:"motwToolstrip.editorTab.run.stepOut",type:e.PUSH_BUTTON,text:n.stepOutLabel,description:n.stepOutDescription,mnemonic:"DO",actionId:i.DEBUG_STEP_OUT,iconOverride:"smallStepOut",quickAccessIcon:"smallStepOut"}]},{type:e.COLUMN,children:[{tag:"motwToolstrip.editorTab.run.stop",type:e.PUSH_BUTTON,text:n.stop,description:n.stopDescription,mnemonic:"Q",actionId:i.STOP,icon:"bigQuit",quickAccessIcon:"smallQuit"}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(340),i(226),i(299),i(290),i(537),i(535),i(567),i(2604)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{popups:[{tag:"motwToolstrip.editorTab.file.new.newList.systemObjectList",type:s.PopUp.type,children:s.PopUp.children},{tag:"motwToolstrip.editorTab.file.save.newList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.file.save.newList.save",actionId:i.SAVE,type:t.LIST_ITEM},{tag:"motwToolstrip.editorTab.file.save.newList.saveAs",actionId:e.SAVEAS,type:t.LIST_ITEM},{tag:"motwToolstrip.editorTab.file.save.newList.saveAll",actionId:e.SAVEALL,type:t.LIST_ITEM},{tag:"motwToolstrip.editorTab.file.save.newList.saveCopyAs",actionId:e.SAVECOPYAS,type:t.LIST_ITEM}]},{tag:"motwToolstrip.editorTab.file.open.openList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.file.open.openList.icon",actionId:i.OPEN,type:t.LIST_ITEM,showDescription:!1,textOverride:n.openLabelEllipsis}]},{tag:"motwToolstrip.editorTab.file.compare.compareList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.file.compare.compareList.compareWithVersionOnDisk",type:t.LIST_ITEM,actionId:e.COMPARE_WITH_DISK,showIcon:!1},{tag:"motwToolstrip.editorTab.file.compare.compareList.saveAndCompareWithAutosave",type:t.LIST_ITEM,actionId:e.COMPARE_WITH_AUTOSAVE,showIcon:!1}]},{tag:"motwToolstrip.editorTab.navigate.find.findList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.navigate.find.findList.find",actionId:e.FIND,type:t.LIST_ITEM,textOverride:o.findListItemLabel,showIcon:!1,showDescription:!1},{tag:"motwToolstrip.editorTab.navigate.find.findList.replace",type:t.LIST_ITEM,actionId:e.REPLACE,showIcon:!1},{tag:"motwToolstrip.editorTab.navigate.find.findList.findNext",type:t.LIST_ITEM,actionId:e.FIND_NEXT,showIcon:!1},{tag:"motwToolstrip.editorTab.navigate.find.findList.findPrevious",type:t.LIST_ITEM,actionId:e.FIND_PREVIOUS,showIcon:!1},{tag:"motwToolstrip.editorTab.navigate.find.findList.findSelection",type:t.LIST_ITEM,actionId:e.FIND_SELECTION,showIcon:!1},{type:t.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.editorTab.file.findFiles",type:t.LIST_ITEM,actionId:e.FIND_FILES,showDescription:!1,showIcon:!1}]},{tag:"motwToolstrip.editorTab.navigate.goTo.goToList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.navigate.goTo.goToList.sectionList",type:t.POPUP_LIST_HEADER,title:o.locationTitle},{tag:"motwToolstrip.editorTab.navigate.goTo.goToList.goToLine",type:t.LIST_ITEM,actionId:e.GOTO_LINE},{tag:"motwToolstrip.editorTab.navigate.goTo.goToList.goToFile",type:t.LIST_ITEM,actionId:e.GOTO_FILE,iconOverride:"icon_go_to_file_24"},{type:t.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.editorTab.navigate.goTo.goToList.previousSection",type:t.LIST_ITEM,actionId:e.PREVIOUS_SECTION,icon:"bigPrevious",quickAccessIcon:"smallPrevious"},{tag:"motwToolstrip.editorTab.navigate.goTo.goToList.nextSection",type:t.LIST_ITEM,actionId:e.NEXT_SECTION,icon:"bigNext",quickAccessIcon:"smallNext"}]},{tag:"motwToolstrip.editorTab.edit.refactor.refactorList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.edit.refactor.refactorList.externalfunction",actionId:e.REFACTOR_EXTERNAL_FUNCTION,type:t.LIST_ITEM,showIcon:!1,showDescription:!1},{tag:"motwToolstrip.editorTab.edit.refactor.refactorList.localfunction",actionId:e.REFACTOR_LOCAL_FUNCTION,type:t.LIST_ITEM,showIcon:!1,showDescription:!1}]},{tag:"motwToolstrip.editorTab.breakpoints.breakpointList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.breakpoints.breakpointList.clearAllBreakpoints",type:t.LIST_ITEM,actionId:e.CLEAR_ALL_BREAKPOINTS},{tag:"motwToolstrip.editorTab.breakpoints.breakpointList.toggleBreakpoint",type:t.LIST_ITEM,actionId:e.TOGGLE_BREAKPOINT},{tag:"motwToolstrip.editorTab.breakpoints.breakpointList.toggleEnableBreakpoint",type:t.LIST_ITEM,actionId:e.TOGGLE_ENABLE_BREAKPOINT}]},{tag:"motwToolstrip.editorTab.runList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.runList.breakpoints",title:o.breakpointsTitle,type:t.POPUP_LIST_HEADER},{tag:"motwToolstrip.editorTab.runList.breakpoints.clearall",actionId:e.CLEAR_ALL_BREAKPOINTS,type:t.LIST_ITEM,closePopupOnClick:!0},{tag:"motwToolstrip.editorTab.runList.breakpoints.setclear",actionId:e.TOGGLE_BREAKPOINT,type:t.LIST_ITEM,closePopupOnClick:!0},{tag:"motwToolstrip.editorTab.runList.breakpoints.enabledisable",actionId:e.TOGGLE_ENABLE_BREAKPOINT,type:t.LIST_ITEM,closePopupOnClick:!0},{tag:"motwToolstrip.editorTab.runList.errorHandlingTitle",title:o.errorHandlingTitle,type:t.POPUP_LIST_HEADER},{tag:"motwToolstrip.editorTab.runList.stopIfError",actionId:e.TOGGLE_STOP_IF_ERROR,type:t.LIST_ITEM_WITH_CHECKBOX,closePopupOnClick:!0},{tag:"motwToolstrip.editorTab.runList.stopIfWarning",actionId:e.TOGGLE_STOP_IF_WARNING,type:t.LIST_ITEM_WITH_CHECKBOX,closePopupOnClick:!0},{tag:"motwToolstrip.editorTab.runList.stopIfNanInf",actionId:e.TOGGLE_STOP_IF_NAN_INF,type:t.LIST_ITEM_WITH_CHECKBOX,closePopupOnClick:!0}]},{tag:"motwToolstrip.publishTab.publishPopupList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.publishTab.publishList.handlingTitle",title:o.publishPopupListConfigurationsHeader,type:t.POPUP_LIST_HEADER},{tag:"motwToolstrip.publishTab.publish.publishConfiguration.handlingTitle",title:o.publishPopupListConfigurationEditorHeader,type:t.POPUP_LIST_HEADER},{tag:"motwToolstrip.publishTab.publish.publishConfiguration",actionId:e.PUBLISH_CONFIGURATION,type:t.LIST_ITEM}]},{tag:"motwToolstrip.editorTab.file.new.newList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.file.new.newList.script",actionId:i.NEW_FILE,type:t.LIST_ITEM,iconOverride:"icon_new_script_24",showDescription:!1,textOverride:n.newFileListItemLabel},{tag:"motwToolstrip.matlabTab.file.new.newList.liveScript",actionId:i.NEW_LIVE_SCRIPT,type:t.LIST_ITEM,iconOverride:"icon_new_live_script_24",showDescription:!1,textOverride:n.newLiveScriptListItemLabel},{tag:"motwToolstrip.editorTab.file.new.newList.function",actionId:i.NEW_FUNCTION,type:t.LIST_ITEM},{tag:"motwToolstrip.editorTab.file.new.newList.liveFunction",actionId:i.NEW_LIVE_FUNCTION,type:t.LIST_ITEM,showDescription:!1},{tag:"motwToolstrip.editorTab.file.new.newList.class",actionId:i.NEW_CLASS,type:t.LIST_ITEM},{tag:"motwToolstrip.editorTab.file.new.newList.testClass",actionId:i.NEW_TEST_CLASS,type:t.LIST_ITEM,showDescription:!1,closePopupOnClick:!0},{tag:"motwToolstrip.editorTab.file.new.newList.liveClass",actionId:i.NEW_LIVE_CLASS,type:t.LIST_ITEM,showDescription:!1},{tag:"motwToolstrip.editorTab.file.new.newList.SystemObject",type:s.NewListItem.type,showDescription:s.NewListItem.showDescription,text:s.NewListItem.text,icon:s.NewListItem.icon,popupTag:"motwToolstrip.editorTab.file.new.newList.systemObjectList"}]},{tag:"motwToolstrip.liveEditorTab.file.new.newList",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.file.new.newList.script",actionId:i.NEW_FILE,type:t.LIST_ITEM,iconOverride:"icon_new_script_24",showDescription:!1,textOverride:n.newFileListItemLabel},{tag:"motwToolstrip.matlabTab.file.new.newList.liveScript",actionId:i.NEW_LIVE_SCRIPT,type:t.LIST_ITEM,iconOverride:"icon_new_live_script_24",showDescription:!1,textOverride:n.newLiveScriptListItemLabel},{tag:"motwToolstrip.liveEditorTab.file.new.newList.function",actionId:i.NEW_FUNCTION,type:t.LIST_ITEM},{tag:"motwToolstrip.liveEditorTab.file.new.newList.liveFunction",actionId:i.NEW_LIVE_FUNCTION,type:t.LIST_ITEM,showDescription:!1},{tag:"motwToolstrip.editorTab.file.new.newList.class",actionId:i.NEW_CLASS,type:t.LIST_ITEM},{tag:"motwToolstrip.editorTab.file.new.newList.testClass",actionId:i.NEW_TEST_CLASS,type:t.LIST_ITEM,showDescription:!1,closePopupOnClick:!0},{tag:"motwToolstrip.liveEditorTab.file.new.newList.liveClass",actionId:i.NEW_LIVE_CLASS,type:t.LIST_ITEM,showDescription:!1}]},{tag:"motwToolstrip.editorTab.navigate.bookmarks.dropDown",type:t.POPUP_LIST,children:[{tag:"motwToolstrip.editorTab.navigate.bookmarks.dropDown.toggle",type:t.LIST_ITEM,actionId:e.BOOKMARK_TOGGLE,text:r.bookmark,description:r.bookmarkDescription,icon:"icon_bookmark_set-clear_24"},{tag:"motwToolstrip.editorTab.navigate.bookmarks.dropDown.prev",type:t.LIST_ITEM,actionId:e.BOOKMARK_PREVIOUS,text:r.bookmarkPrev,description:r.bookmarkPrevDescription,icon:"icon_bookmark_previous_24"},{tag:"motwToolstrip.editorTab.navigate.bookmarks.dropDown.next",type:t.LIST_ITEM,actionId:e.BOOKMARK_NEXT,text:r.bookmarkNext,description:r.bookmarkNextDescription,icon:"icon_bookmark_next_24"}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1234),i(642),i(8169),i(484)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{modulePath:"MOTW/editor/PlainEditorWidgetFactory",createWidget:function(e,i,o){var r=e.getRootUIContainer(),a=r.application.fileDataService,s=o,l=r.application.editorService;const c=!!o.get("isUndocking");return t.ensureActionsLoaded(e),o.widget=new n({id:s.id,editorView:s,actionService:e.actionService,fileDataService:a,editorService:l,statusBar:l.statusBar,states:c?i:null}),e===r&&r.application.editorService._setupDropTarget(s),!c&&i?l.loadEditor(s,i.ShowErrorDialogs,i.AddEditorViewToUiContainer):l.loadEditor(s,!0,!1),o.widget},createProperties:function(e,n,o){const r=e.getRootUIContainer().application.editorService,a=t.createEditorView(e,n,o.documentId,i.DOCUMENT_TYPE.PLAIN_CODE_FILE,r.generatePlainEditorId());return r.registerPlainEditor(a),a},getState:function(e,t){const i=!!t.get("isUndocking");return e.editor&&i?e.editor.serialize():null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(208),i(212),i(2571),i(8170),i(8171),i(8174),i(8176),i(2573),i(637),i(589),i(1388),i(903),i(454),i(2570),i(263),i(292),i(368),i(233),i(2579),i(2572),i(2605),i(2566),i(8177),i(1644),i(2377),i(2581),i(8178),i(8180),i(2585),i(2586),i(2587),i(8184),i(2589),i(8186),i(8188),i(2591),i(8190),i(8192),i(2592),i(2600),i(2601),i(1641),i(8194),i(1641),i(2389),i(8202),i(8206),i(2378),i(1837),i(1838),i(1840),i(1842),i(8208)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w){return e([o],{templateString:l,_initializeEditor:function(){var e=new n;this.editorView.rtcCreatedPromise=e.promise;var t=this.editorView,i=g.plugins.concat([{id:"rtc.contextmenu.documenttab",path:"MOTW/editor/plugins/contextmenu/DocumentTabContextMenuProvider"},{id:"rtc.contextmenu.reconfiguremodel",path:"MOTW/editor/plugins/contextmenu/ReconfigureContextMenuModelProvider",family:"contextmenu"},{id:"rtc.refactoringtools.externalfunction.filecreator",path:"MOTW/editor/plugins/refactor/function/externalfunction/MatlabOnlineExternalFunctionFileCreatorProvider"},{id:"plaineditor.keybindings",path:"MOTW/editor/plugins/keybindings/PlainEditorKeyBindingsProvider",isSharedPlugin:!0},{id:"liveeditor.banner.openaslivescript",path:"plaincode_features/plugin/openaslivescriptbanner/OpenAsLiveScriptBannerProvider"},{id:"rtc.gotocodelinecolumn",path:"MOTW/editor/plugins/gotocodelinecolumn/MatlabOnlineGotoCodeLineColumnProvider"},{id:"rtc.runconfigs.dropdownbuttondata",path:"MOTW/editor/plugins/runconfiguration/RunButtonDataContributorProvider",family:"rtc.runconfigs"},{id:"rtc.runconfigs.filevalidator",path:"MOTW/editor/plugins/runconfiguration/RunConfigsFileValidatorProvider",family:"rtc.runconfigs"},{id:"matlab.code.variables.variablehighlightingstatusbar",path:"MOTW/editor/plugins/variablehighlighting/VariableHighlightingStatusBarProvider",family:"matlab.code.variables.highlighting"},{id:"matlabunit",path:"liveeditor/plugin/external/matlabunit/MATLABUnitPluginProvider"},{id:"sysobj",path:"liveeditor/plugin/external/sysobj/SysObjPluginProvider"},{id:"liveeditor.statusbar",path:"MOTW/editor/plugins/statusbar/OnlineEditorStatusBarUpdaterProvider"},{id:"liveeditor.backup",path:"plaincode_features/plugin/backup/BackupPluginProvider"},{id:"rtc.navigate.bookmarks",path:"rtc/plugins/bookmarks/BookmarksProvider",family:"bookmarks"},{id:"rtc.margin.bookmarks",path:"rtc/plugins/bookmarks/DecoratableBookmarksMarginProvider",subsystem:"rtc.left.margin",family:"bookmarks"},{id:"motw.externalfile.reload",path:"MOTW/editor/plugins/reloadexternallymodifiedfiles/ReloadExternallyModifiedFilesProvider"},{id:"rtc.margin.bookmarks.icon",path:"rtc/plugins/bookmarks/BookmarksDecoratorProvider",family:"bookmarks"},{id:"rtc.contextmenu.bookmarkscontributor",path:"rtc/plugins/bookmarks/BookmarksContextMenuContributorProvider",family:"bookmarks",subsystem:"contextmenucontributor"},{id:"comparewithautosave",path:"MOTW/editor/plugins/comparewithbackup/CompareWithAutosaveProvider"},{id:"liveeditor.publish",path:"plaincode_features/plugin/publish/PublishProvider",family:"liveeditor.publish"}]);i=(i=i.concat(c.plugins)).concat(c.plainEditorPlugins);var o,r=t.file.fileTemplate||"",a=b.pathFromFileInfo(t.file.fileInfo),l="internal_"+t.id,d={};d["plaineditor.view"]=this.editorWindow,d["rtc.id"]=l,this._rtcClipboard=u.getBrowserSyncedClipboard(),d["rtc.clipboard"]=this._rtcClipboard,d["rtc.templateType"]=r,d["rtc.executionservice"]=t.executionDataService,d["rtc.columnselection.enabled"]=!0,d["motw.actionservice"]=this.actionService,d["rtc.id"]=this.id,d["rtc.clientId"]="Editor_MOTW",d["rtc.integration.service.editorservice"]=new y(this.editorService,this.editorView),d["rtc.filepath"]=a,d["rtc.integration.statusbar"]=this.statusBar,d["rtc.settings.backingservice"]=m,d["rtc.integration.toolstrip.executionbuttontags"]=S,d["rtc.integration.service.actionconverter"]=w;var h=["linenumbersupport","plaineditor.keybindings","rtc.preferences.fonts.code","pagination","ddux","rtc.gotocodelinecolumn","rtc.accessibility.screenreader","verticalcodeborder","rtc.editortabservice.preference","rtc.editorapiservice","rtc.runconfigs","rtc.navigate.find.synchronizer","liveeditor.statusbar","liveeditor.backup","motw.externalfile.reload","comparewithautosave","liveeditor.publish","bookmarks","rtc.contextmenu.documenttab","rtc.backgroundforegroundcolor","rtc.integration.toolstrip.executioncontrols"];o=!this.editorView.isFileEditable(),h.push("rtc.backingstore","rtc.addlinetermination","motw.saveerrorhandler");i=i.concat([{id:"rtc.backingstore",path:"MOTW/editor/plugins/backingstore/OnlineEditorBackingstoreProvider",isSharedPlugin:!0},{id:"rtc.backingstore.saveloadcontributor",path:"MOTW/editor/plugins/backingstore/OnlineJsEditorSaveLoadContributorProvider",isSharedPlugin:!0},{id:"rtc.backingstore.contentcontributor",path:"MOTW/editor/plugins/backingstore/OnlineJsEditorBackingstoreContentContributorProvider",isSharedPlugin:!0},{id:"motw.saveerrorhandler",path:"MOTW/editor/plugins/save/SaveErrorHandlerProvider",isSharedPlugin:!0}]);const T=new v({nameSpace:"/actions/plaineditormodule/"+this.id,mode:"StandAlone"});this._actionDataService=T;var I={id:l,initialDocumentText:t.initialDocumentText,readOnly:o,actionDataService:T,dependencies:d,registry:i,enabled:h,disabled:["zoom","rtc.navigate.find.customshortcuts"],states:this.states};switch(b.getFileNameExtension(t.file.fileInfo.name)){case p.FILE_EXTENSIONS.M:I.language=f.DEFAULT_SUPPORTED_LANGUAGES.MATLAB,I.enabled.push("language.interface.tokenmanager"),I.enabled.push("rtc.code.parenmatch","rtc.code.parenmatch.preference","rtc.smartformatting.controller","rtc.bannermanager","matlab.persistfold","matlabunit","debug.saveinterceptor","sysobj","rtc.execution.actions","debug.documentdirtyservice","rtc.integration.toolstrip.executioncontrols");var A=_.getInstance();s.getInstance(this.actionService,t.debugServices,A),I.registry.push({id:"editorclosehandler",path:"MOTW/editor/plugins/close/EditorCloseHandlerProvider"}),this.editorView.getFile().isUntitled&&I.enabled.push("editorclosehandler"),I.enabled.push("plaineditorfiledeletehandler"),I.registry.push({id:"plaineditorfiledeletehandler",path:"MOTW/editor/plugins/delete/PlainEditorFileDeleteHandlerProvider"});break;default:I.language=f.DEFAULT_SUPPORTED_LANGUAGES.TEXT,I.enabled.push("externallanguagesupport")}return I.dependencies["liveeditor.filemodificationnotifier"]=new C(this.fileDataService,this.editorView.file),I.additionalFeaturesToEnable=I.enabled,I.additionalFeaturesToDisable=I.disabled,I.additionalPluginsToAdd=I.registry,E.createLiveEditor(I).then(function(t){this._prepEditorInstance(t,e)}.bind(this)),e.promise},_prepEditorInstance:function(e,n){this._backingStore=h.getBackingStore(this.id),this.editorView.setEditor(e);const o=t.hitch(this.editorView,"_updateFile");this.own(i.after(e.getDocument()._internalDocument,"onDocumentReset",o)),e.addDocumentChangeListener(o),this._showCompareActionsIfApplicable(),n.resolve(e)},_showCompareActionsIfApplicable:async function(){await T.isLocalClient()&&r.showActions()},destroy:function(){this.inherited(arguments),this._rtcClipboard&&u.destroy(this._rtcClipboard),this._actionDataService.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(292),i(340),i(537)],o=i.dj.d(n,(function(e,t,i,n){return{showActions:function(){const o=t.getInstance();if(!o.exists(o.tagToId("motwToolstrip.editorTab.file.compare"))){var r=o.create({tag:"motwToolstrip.editorTab.file.compare",type:e.SPLIT_BUTTON,mnemonic:"M",actionId:i.COMPARE_WITH_DISK,popupTag:"motwToolstrip.editorTab.file.compare.compareList",textOverride:n.compareLabel});o.add(r,o.tagToId("motwToolstrip.editorTab.file.column4"),1)}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8172)],o=i.dj.d(n,(function(e){var t=null;return{getInstance:function(i,n,o){return null===t&&(t=new e(i,n,o)),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(1086),i(219),i(8173),i(280),i(226)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(null,{RUN_SECTION_INDEX:4,RUN_SECTION_TAG:"motwToolstrip.editorTab.run",RUNTESTS_SECTION_TAG:"matlabunit.runtestssection",EDITOR_TAB_TAG:"motwToolstrip.editorTab",RUN_BUTTON_TAG:"motwToolstrip.editorTab.run.run",DEBUG_CONTINUE_TAG:"motwToolstrip.editorTab.debugContinue",DEBUG_STEP_TAG:"motwToolstrip.editorTab.debugStep",DEBUG_STEP_IN_TAG:"motwToolstrip.editorTab.debugStepIn",DEBUG_STEP_OUT_TAG:"motwToolstrip.editorTab.debugStepOut",DEBUG_QUIT_TAG:"motwToolstrip.editorTab.debugExit",DEBUG_FUNCTION_STACK_TAG:"motwToolstrip.editorTab.debugFunctionStack",DEBUG_FUNCTION_STACK_LABEL_TAG:"motwToolstrip.editorTab.debugFunctionStackLabel",DEBUG_CONTINUE_ACTION_ID:"rtc_continue",DEBUG_STEP_ACTION_ID:"rtc_step",DEBUG_STEP_IN_ACTION_ID:"rtc_debug_step_in",DEBUG_STEP_OUT_ACTION_ID:"rtc_debug_step_out",DEBUG_QUIT_ACTION_ID:"rtc_stop_execution",constructor:function(e,n,o){this._uiBuilder=n,this._debugServices=e,this._actionService=o,this._functionCallStackActions=new r(this._debugServices,this._actionService),this.DEBUG_SECTION_ID=this._createDebugSection(),this._debuggerChanged(e.isDebugging),this._aspectHandles=[],this._aspectHandles.push(i.after(this._debugServices,"onDebugModeChanged",t.hitch(this,"_debuggerChanged"),!0))},_debuggerChanged:function(e){var t=e,i=this._uiBuilder.tagToId(this.RUN_SECTION_TAG),n=this._uiBuilder.tagToId(this.RUNTESTS_SECTION_TAG),o=this._uiBuilder.tagToId(this.EDITOR_TAB_TAG),r=this._uiBuilder.tagToId(this.RUN_BUTTON_TAG),a=this._uiBuilder.tagToId(this.DEBUG_CONTINUE_TAG),s=this._uiBuilder.tagToId(this.DEBUG_STEP_TAG),l=this._uiBuilder.tagToId(this.DEBUG_STEP_IN_TAG),c=this._uiBuilder.tagToId(this.DEBUG_STEP_OUT_TAG),d=this._uiBuilder.tagToId(this.DEBUG_QUIT_TAG),u=this._uiBuilder.tagToId(this.DEBUG_FUNCTION_STACK_LABEL_TAG),h=this._uiBuilder.tagToId(this.DEBUG_FUNCTION_STACK_TAG);if(t){if(this._isCurrentlyInToolstrip(i))this._uiBuilder.remove(i);else{if(!this._isCurrentlyInToolstrip(n))return;this._uiBuilder.remove(n)}this._uiBuilder.add(this.DEBUG_SECTION_ID,o,this.RUN_SECTION_INDEX),this._uiBuilder.set(r,"enabled",!1),this._uiBuilder.set(a,"enabled",!0),this._uiBuilder.set(s,"enabled",!0),this._uiBuilder.set(l,"enabled",!0),this._uiBuilder.set(c,"enabled",!0),this._uiBuilder.set(d,"enabled",!0),this._uiBuilder.set(u,"enabled",!0),this._uiBuilder.set(h,"enabled",!0)}else!t&&this._isCurrentlyInToolstrip(this.DEBUG_SECTION_ID)&&(this._uiBuilder.remove(this.DEBUG_SECTION_ID),this._uiBuilder.add(i,o,this.RUN_SECTION_INDEX),this._uiBuilder.set(r,"enabled",!0),this._uiBuilder.set(a,"enabled",!1),this._uiBuilder.set(s,"enabled",!1),this._uiBuilder.set(l,"enabled",!1),this._uiBuilder.set(c,"enabled",!1),this._uiBuilder.set(d,"enabled",!1),this._uiBuilder.set(u,"enabled",!1),this._uiBuilder.set(h,"enabled",!1))},_isCurrentlyInToolstrip:function(e){return-1!==this._uiBuilder.indexOf(e)},_createDebugSection:function(){var e=this._uiBuilder.create({tag:"motwToolstrip.editorTab.debugSection",type:s.SECTION,title:n.debugSectionTitle}),i=this._uiBuilder.create({tag:"motwToolstrip.editorTab.debugContinueColumn",type:s.COLUMN,parentId:e}),o=this._uiBuilder.create({tag:this.DEBUG_CONTINUE_TAG,type:s.SPLIT_BUTTON,icon:"bigDebugContinue",quickAccessIcon:"smallDebugContinue",shortcut:n.debugContinueShortcut,text:n.debugContinueLabel,description:n.debugContinueDescription,parentId:i,popupTag:"motwToolstrip.editorTab.runList"});this._uiBuilder.addEventCallback(o,t.hitch(this,this._performAction,this.DEBUG_CONTINUE_ACTION_ID));var r=this._uiBuilder.create({tag:"motwToolstrip.editorTab.debugStepColumn",type:s.COLUMN,parentId:e}),a=this._uiBuilder.create({tag:this.DEBUG_STEP_TAG,type:s.PUSH_BUTTON,icon:"bigDebugStep",quickAccessIcon:"smallDebugStep",text:n.debugStepLabel,shortcut:n.debugStepShortcut,description:n.debugStepDescription,parentId:r});this._uiBuilder.addEventCallback(a,t.hitch(this,this._performAction,this.DEBUG_STEP_ACTION_ID));var l=this._uiBuilder.create({tag:"motwToolstrip.editorTab.debugStepInOutColumn",type:s.COLUMN,parentId:e}),c=this._uiBuilder.create({tag:this.DEBUG_STEP_IN_TAG,type:s.PUSH_BUTTON,icon:"smallDebugStepIn",quickAccessIcon:"smallDebugStepIn",text:n.debugStepInLabel,shortcut:n.debugStepInShortcut,description:n.debugStepInDescription,parentId:l});this._uiBuilder.addEventCallback(c,t.hitch(this,this._performAction,this.DEBUG_STEP_IN_ACTION_ID));var d=this._uiBuilder.create({tag:this.DEBUG_STEP_OUT_TAG,type:s.PUSH_BUTTON,icon:"smallDebugStepOut",quickAccessIcon:"smallDebugStepOut",text:n.debugStepOutLabel,shortcut:n.debugStepOutShortcut,description:n.debugStepOutDescription,parentId:l});this._uiBuilder.addEventCallback(d,t.hitch(this,this._performAction,this.DEBUG_STEP_OUT_ACTION_ID));var u=this._uiBuilder.create({tag:"motwToolstrip.editorTab.debugFunctionCallStackColumn",type:s.COLUMN,parentId:e});this._createFunctionStackDropdown(u);var h=this._uiBuilder.create({tag:"motwToolstrip.editorTab.debugExitColumn",type:s.COLUMN,parentId:e}),p=this._uiBuilder.create({tag:this.DEBUG_QUIT_TAG,type:s.PUSH_BUTTON,icon:"bigDebugExit",quickAccessIcon:"smallDebugExit",text:n.debugExitLabel,shortcut:n.debugExitShortcut,description:n.debugExitDescription,parentId:h});return this._uiBuilder.addEventCallback(p,t.hitch(this,this._performAction,this.DEBUG_QUIT_ACTION_ID)),e},_createFunctionStackDropdown:function(e){this._uiBuilder.create({tag:this.DEBUG_FUNCTION_STACK_LABEL_TAG,type:s.LABEL,text:n.debugFunctionStackLabel,parentId:e}),this._uiBuilder.create({tag:this.DEBUG_FUNCTION_STACK_TAG,type:s.COMBO_BOX,actionId:this._functionCallStackActions.DEBUG_STACK_ACTION_ID,items:[],selectedItem:"",parentId:e})},_performAction:function(e){a.editorService.getActiveEditor(window).editor.getActionDataService().executeAction(e)},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[],this._functionCallStackActions.destroy(),this._functionCallStackActions=null,this._uiBuilder.destroy(this.DEBUG_SECTION_ID)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214)],o=i.dj.d(n,(function(e,t,i){return e(null,{DEBUG_STACK_ACTION_ID:"rtc.functionStackList",constructor:function(e,n){this._debugServices=e,this._actionService=n,this._actions=[{id:this.DEBUG_STACK_ACTION_ID,enabled:!0}],this._actionService.loadActions(this._actions),this._actionService.addActionChangeCallback(this.DEBUG_STACK_ACTION_ID,t.hitch(this,"_handleItemSelected")),this._aspectHandles=[],this._aspectHandles.push(i.after(this._debugServices,"onStackChanged",t.hitch(this,"_handleStackChange"),!0))},destroy:function(){this._aspectHandles.forEach((function(e){e.remove()})),this._aspectHandles=[],this._actions.forEach((function(e){this._actionService.getAction(e.id)&&this._actionService.removeAction(e.id)}),this)},_handleItemSelected:function(e){if("selectedItem"===e.property&&""!==e.newValue&&""!==e.oldValue){var t=parseInt(e.newValue,10)-parseInt(e.oldValue,10);this._debugServices.dbUpDown(t)}},_handleStackChange:function(e,t){if(0!==e.length){var i=[],n=e.map((function(e,t){var n=e.getName(),o=this._createUniqueLabel(n,i);return i.push(o),{label:o,value:t.toString()}}),this);this._actionService.updateAction(this.DEBUG_STACK_ACTION_ID,{items:n,selectedItem:t.toString()})}else this._actionService.updateAction(this.DEBUG_STACK_ACTION_ID,{items:[],selectedItem:""})},_createUniqueLabel:function(e,t){for(var i=e;t.indexOf(i)>-1;)i+=" ";return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(292),i(8175)],o=i.dj.d(n,(function(e,t){return{getInstance:function(e,i,n){return new t(i,n)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214)],o=i.dj.d(n,(function(e,t,i){return e(null,{STOP_IF_ERROR_TAG:"motwToolstrip.editorTab.runList.stopIfError",STOP_IF_WARNING_TAG:"motwToolstrip.editorTab.runList.stopIfWarning",STOP_IF_NAN_INF_TAG:"motwToolstrip.editorTab.runList.stopIfNanInf",constructor:function(e,n){this._uiBuilder=n,this._debugServices=e,this._setupCheckListeners(),this._aspectHandles=[],this._aspectHandles.push(i.after(this._debugServices,"onDbStopConditionsEvent",t.hitch(this,"_handleStopConditionChange"),!0))},_setupCheckListeners:function(){var e=this._uiBuilder.tagToId(this.STOP_IF_ERROR_TAG),i=this._uiBuilder.tagToId(this.STOP_IF_WARNING_TAG),n=this._uiBuilder.tagToId(this.STOP_IF_NAN_INF_TAG);e&&this._uiBuilder.addPropertySetCallback(e,t.hitch(this,"_toggleStopIfError"),!0),i&&this._uiBuilder.addPropertySetCallback(i,t.hitch(this,"_toggleStopIfWarning"),!0),n&&this._uiBuilder.addPropertySetCallback(n,t.hitch(this,"_toggleStopIfNanInf"),!0)},_handleStopConditionChange:function(e){var t=this._uiBuilder.tagToId(this.STOP_IF_ERROR_TAG),i=this._uiBuilder.tagToId(this.STOP_IF_WARNING_TAG),n=this._uiBuilder.tagToId(this.STOP_IF_NAN_INF_TAG);this._uiBuilder.set(t,"selected",e.stopIfError),this._uiBuilder.set(i,"selected",e.stopIfWarning),this._uiBuilder.set(n,"selected",e.stopIfNanInf)},_toggleStopIfError:function(e){var t=e.newValue;this._debugServices.setDBStopIfError(t)},_toggleStopIfWarning:function(e){var t=e.newValue;this._debugServices.setDBStopIfWarning(t)},_toggleStopIfNanInf:function(e){var t=e.newValue;this._debugServices.setDBStopIfNanInf(t)},dispose:function(){}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="editorWindow liveCode" dojoAttachPoint="editorWindow" tabindex="0">\n <div class="textEditorWindow dijitInline" dojoAttachPoint="textEditorWindow"></div>\n</div>'},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{RUN:"motwToolstrip.editorTab.run.run",PAUSE:"motwToolstrip.editorTab.run.pause",CONTINUE:"motwToolstrip.editorTab.run.continue",STEP:"motwToolstrip.editorTab.run.step",STEP_IN:"motwToolstrip.editorTab.run.stepIn",STEP_OUT:"motwToolstrip.editorTab.run.stepOut",STEP_IN_OUT_COLUMN:"motwToolstrip.editorTab.run.stepInOutColumn",STOP:"motwToolstrip.editorTab.run.stop",RUN_SECTION:"motwToolstrip.editorTab.run.runSection",RUN_SECTION_ADVANCE:"motwToolstrip.editorTab.run.runAndAdvance",RUN_SECTION_END:"motwToolstrip.editorTab.run.runToEnd"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8179)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.id","rtc.settings.service","rtc.integration.service.editorservice","matlab.templateservice","rtc.templateType"]}},createInstance:function(e,t,n,o,r){return new i(e,t,n,o,r)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(859),i(858),i(1202),i(281),i(914),i(233),i(304),i(363),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return class extends r{constructor(e,t,i,n,o){super(e,t),this._templateType=o,this._templateService=n,this._editorServiceWrapper=i}async load(e,t,n){if(""===this._templateType||a.hasFileLocation({file:e}))return super.load(e,t,n);var o=new i,r=l.getFileNameNoExtension(t);return this._templateService.applyTemplate(this._templateType,r),this._templateType="",o.resolve({content:null}),o.promise}async save(e,t){let i;const n={fileInfo:l.fileInfoFromPath(e)};if(a.hasFileLocation({file:n}))try{i=await this._savePlainCode(e,t),this._markFileClean(e)}catch(e){throw e}else i=await this._saveUntitledFile(e,t);return this._clearCacheIfRequired(t.filePath),i}async _saveUntitledFile(e,t){const i=this._editorServiceWrapper.getEditorService(),n=l.pathFromFileInfo(i.fileDataService.currentWorkingFolder);let o=null;try{o=await this._getFileNameFromDialog(e)}catch(e){throw{errorId:s.SAVE_CANCELLED}}const r=l.createFilePath(n,o);t.filePath=r;try{l.isLiveScriptFile(r)?await this._convertToLiveCode(r,t):await this._savePlainCode(r,t)}catch(e){throw e}return this._handleSwapFiles(e,r)}_getFileNameFromDialog(e){return new Promise((t,i)=>{setTimeout(()=>{n.getExportFileName(e).then(e=>{t(e)},e=>{i(e)})},500)})}async _convertToLiveCode(e,t){return await o.doConvertContent(t.content,e)}async _savePlainCode(e,t){return await super.save(e,t)}_markFileClean(e){const t=this._editorServiceWrapper.getEditorService().fileDataService,i=t.openedFilesDataStore.get(e);t.setFileClean(i)}_handleSwapFiles(e,t){let i={content:"",fileInfo:l.fileInfoFromPath(t),modifiedDate:null,savePending:!1,id:t};return l.isPlainCodeFile(t)?i=this._switchDataToSwap(e,i):this._openAndCloseToSwap(e,i),i}_switchDataToSwap(e,t){const i=this._editorServiceWrapper.getEditorService(),n=i.fileDataService,o=e,r=t.id,a=n.openedFilesDataStore.get(o);n.openedFilesDataStore.remove(o),a.fileInfo.location=t.fileInfo.location,a.fileInfo.name=t.fileInfo.name,a.fileInfo.path=t.fileInfo.path,a.id=r,a.isUntitled=!1,a.savePending=!1,n.openedFilesDataStore.put(a),i.emplaceEditorView(o,r);return i.getAllOpenEditors(r).set(c.DESCRIPTION,r),n.setFileClean(a),a}_openAndCloseToSwap(e,t){const i=this._editorServiceWrapper.getEditorService(),n=i.fileDataService,o=i.getAllOpenEditors(e).getFile();setTimeout(()=>{n._doCloseFile(o.fileInfo,!1)},250),n.openedFilesDataStore.put(t);n.onFileOpen(t,!1,void 0,void 0)}_clearCacheIfRequired(e){const t=l.nameFromPath(e);if(l.isPlainCodeFile(t)||l.isLiveScriptFile(t))try{const i=d.getInstance();i.feval("clear",0,e).then(()=>{},e=>{u.error("Clearing the cache failed for "+t,e)})}catch(e){u.error("Clearing the cache failed for "+t,e)}}_sendLoadRequest(e){e.preferredEncoding="UTF-8",super._sendLoadRequest(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8181)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.document.info","rtc.document.modification","rtc.integration.service.editorservice"]}},createInstance:function(e,t,n){return new i(e,t,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8182)],o=i.dj.d(n,(function(e){return class extends e{constructor(e,t,i){super(e,t),this._editorServiceWrapper=i}loadContent(e){const t=e.content;if(null!=t){this._documentModificationController.setReadOnly(!1),super.loadContent(e);const t=!!e.readOnly;this._documentModificationController.setReadOnly(t);this._editorServiceWrapper.getEditorService().fileDataService.openedFilesDataStore.get(e.originalFilePath).fileInfo.filePermissions.canWrite=!t}}destroy(){this._editorServiceWrapper=null,super.destroy()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2584),i(8183),i(1128)],o=i.dj.d(n,(function(e,t,i,n){return e([t,i],{constructor:function(e,t){this._lineEndingStyle=n.Utilities.getDefaultLineEndingForBrowser()},loadContent:function(e){const t=e.content;if(null!=t){const e=this._detectDominantLineEnding(t);this._setLineEndingStyle(e),this.inherited(arguments)}},getLineEndingStyle:function(){return this._lineEndingStyle},getContent:function(){let e=this.inherited(arguments);return this._lineEndingStyle!==n.Types.INTERNAL_REPRESENTATION&&(e=e.replace(n.Regex.INTERNAL_NEWLINE,this._lineEndingStyle)),e},_detectDominantLineEnding:function(e){const t=e.match(n.Regex.ANY_NEWLINE);if(null===t)return n.Utilities.getDefaultLineEndingForBrowser();const i={};return i[n.Types.CR]=0,i[n.Types.LF]=0,i[n.Types.CRLF]=0,t.forEach(e=>{i[e]+=1}),t[0]},_setLineEndingStyle:function(e){this._lineEndingStyle!==e&&(this._lineEndingStyle=e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1639)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){this._documentInfo=e,this._documentModificationController=t},loadContent:function(e){const t=e.content;null!=t&&this._documentModificationController.setText(t)},getContent:function(){return this._documentInfo.getText()},getContentType:function(){return"text/plain"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8185)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.actionservice","rtc.backingstore"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(299),i(280),i(281),i(2588)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(r,{constructor:function(e,t){this._backingStore=t},_handleFileDelete:function(){var e=n.editorService.getAllOpenEditors(o.getAbsoluteFilePathFromBackingStore(this._backingStore));n.actionService.executeAction(i.NEW_FILE,{fileContents:e.getFile().content,isModified:!0})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8187)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["motw.actionservice","rtc.keyhandler"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(340),i(299),i(208),i(207)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e,t){this._actionService=e,this._keyHandlerWrapper=t,this._keyHandler=null,this._onPluginAddedListener=n.after(this._keyHandlerWrapper,"onPluginAdded",this._handleOnPluginAdded.bind(this),!0)},destroy:function(){this._onPluginAddedListener&&(this._onPluginAddedListener.remove(),this._onPluginAddedListener=null)},_handleOnPluginAdded:function(e,t){this._keyHandler=e,this._addAdditionalKeyBindings(),this._onPluginAddedListener.remove(),this._onPluginAddedListener=null},_addAdditionalKeyBindings:function(){this._addBinding(i.SAVE),this._addBinding(t.SAVEAS),this._addBinding(t.RUN_CELL_ADVANCE),this._addBinding(t.INSERT_COMMENT),this._addBinding(t.INDENT),this._addBinding(t.OUTDENT),this._addBinding(t.SMART_INDENT)},_addBinding:function(e){var t=this._actionService.getAction(e),i={key:t.key,platformKey:t.platformKey};this._keyHandler.addBinding(i,e,this._actionService)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8189)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.backingstore","rtc.id"]}},createInstance:function(e,t){return new i(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(212),i(233),i(232),i(340),i(859),i(858),i(280),i(207)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(d,{_CREATE_FILE_RESPONSE_TYPE:"CreateFileResponse:",_CREATE_FILE_RESPONSE_CLASSIFIER_PREFIX:"WriteUntitledFile",constructor:function(e,i){this._backingStore=e,this._backingStore.save=this._save.bind(this),this._editorId=i,this._createFileResponseMessageClassifier=this._CREATE_FILE_RESPONSE_CLASSIFIER_PREFIX+this._editorId,this._createFileResponseMessage=this._CREATE_FILE_RESPONSE_TYPE+this._createFileResponseMessageClassifier,r.registerResponseHandler(this._createFileResponseMessage,t.hitch(this,"_handleCreateFileResponse"),this)},_savePlainCodeFile:function(e,t,i,n){return this._createNewFile(e,t,i.content,n).then((function(e){return n||c.fileDataService._doCloseFile(i.fileInfo,!1),e}),this._noop)},_saveAsLiveScriptFile:function(e,t,i,n){return l.doConvertContent(i.content,o.createFilePath(t,e)).then(function(){n||(c.fileDataService._doCloseFile(i.fileInfo,!1),this._openFile(o.createEmptyFileObject(t,e)))}.bind(this),this._noop)},_save:function(e,t){var i=c.editorService.getAllOpenEditors(e).getFile(),n=i.fileInfo.name,r=s.checkForReadOnlyFolderAndShowError(n);if(r)return r;var a=o.pathFromFileInfo(c.fileDataService.currentWorkingFolder);return t=t||!1,s.getExportFileName(n).then(function(e){return o.isLiveScriptFile(e)?this._saveAsLiveScriptFile(e,a,i,t):this._savePlainCodeFile(e,a,i,t)}.bind(this))},_createNewFile:function(e,t,i,a){var s=o.createEmptyFileObject(t,e);s.content=i;var l={deferred:new n,file:s,shouldNotOpenSavedFile:a},c={CreateFile:{file:s,updateIfExists:!1}};return r.sendMessage(c,l,this._createFileResponseMessageClassifier),l.deferred.promise},_handleCreateFileResponse:function(e,t){if(1!==e.length||e[0].isError)t.deferred.reject();else{e[0].messageFaults&&e[0].messageFaults.length>0&&(c.fileDataService.onFileMessageFault(e[0]),t.deferred.reject());var i=t.file;i.fileInfo=e[0].fileInfo,t.shouldNotOpenSavedFile||this._openFile(i,e[0].lineNumber,e[0].column),t.deferred.resolve(i)}},_openFile:function(e,i,n){c.fileDataService.openedFilesDataStore.put(t.mixin(e,{modifiedDate:null,savePending:!1,id:o.pathFromFileInfo(e.fileInfo)})),c.fileDataService.onFileOpen(e,!1,i,n)},_noop:function(){},destroy:function(){r.deregisterResponseHandler(this._createFileResponseMessage),delete this._backingStore.save}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8191)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.integration.service.editorservice"]}},createInstance:function(e){const t=e.getEditorService().getActionProvidersForWindow(window).actionService;return new i(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(340),i(1636)],o=i.dj.d(n,(function(e,t,i){return e(i,{constructor:function(e){},getToolstripTag:function(){return"motwToolstrip.editorTab.run.run"},_getRunActionId:function(){return t.RUN}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8193)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.integration.service.editorservice"]}},createInstance:function(e){return new i(e)},priority:function(){return 2}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(537),i(241),i(233),i(2576)],o=i.dj.d(n,(function(e,t,i,n,o){return e(o,{constructor:function(e){this._editorService=e.getEditorService()},showDialogIfInvalidFileName:function(){var e=this._editorService.getActiveEditor(window).getFile().fileInfo;return!n.isMatlabFileName(e.name)&&(i.displayAlertDialog(t.genericTitle,t.runLanguageError),!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(205),i(8195),i(275),i(292),i(263),i(8199),i(1646)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(i,{requires:function(){return{createInstance:["rtc.cursor","rtc.view","rtc.document","rtc.id","rtc.integration.service.editorservice","rtc.backingstore","rtc.integration.isJavaToolstrip","rtc.executionservice"]}},createInstance:function(e,t,i,c,d,u,h,p){let f;if(h)f=new n(e,i,c);else{l.getInstance(d.getEditorService());let h=o.getInstance(),g=r.getInstance(),m=new s.getInstance(g,h);f=new n(e,i,c,m,u,h,p,t);a.getSetting(["matlab","desktop"],"EnableJSSystemEditorToolstrip").then(e=>{e.value&&(m.startup(),f.onload(),f.postbuild())})}return f}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(1349),i(1645),i(1646),i(8196),i(8197),i(285),i(410),i(281)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e(i,{PROCESS_COMMANDS_CHANNEL:"/editor/sysobj/processCommands/",_lastKnownSystemObjectState:void 0,_lastKnownEventSystemObjectState:void 0,_isMethodImplemented:void 0,_iconMode:void 0,_customPropertyDialog:void 0,_enumerationDialog:void 0,_loadCompleted:void 0,constructor:function(e,t,i,o,r,a,s,c){this._cursor=e,this._document=t,this._editorId=i,this.messageService=n.getInstance(),this._toolstripSection=o,this._backingStore=r,this._debugServices=a,this._matlabExecutionDataService=s,this._rtcView=c,this._initializeListeners(),r&&l(this._backingStore.getLoadPromise(),this._onLoadCompleted.bind(this))},_onLoadCompleted:function(){this._loadCompleted=!0},destroy:function(){if(this._cleanListeners(),this._toolstripSection&&this._toolstripSection.destroy(),this._lastKnownSystemObjectState||this._lastKnownEventSystemObjectState){const e=this._getFilePath();e===r.getInstance().getActiveFilePath()&&this._toolstripSection.remove();let t=`${"matlab.system.editor.internal.DocumentAction.onCloseJS"}("${e}")`;this._matlabExecutionDataService.executionEval(t)}},_initializeListeners:function(){this.messageService.subscribe(this.PROCESS_COMMANDS_CHANNEL+this._editorId,"_processCommands",this)},_cleanListeners:function(){this.messageService.unsubscribe(this.PROCESS_COMMANDS_CHANNEL+this._editorId,"_processCommands",this)},_processCommands:function(e){var t=e.data,i={},n=0;let o=!0;for(n=0;n<t.length;n+=1)switch((i=t[n])&&i.StartColumn<1&&(i.StartColumn=1),i&&i.EndColumn<1&&(i.EndColumn=1),i.Action){case"insert":this._document.insertText(i.Text,i.Line,i.Column);break;case"select":this._rtcView&&(this._rtcView.scrollLineToPercent(i.StartLine,50),o=!1),this._cursor.setLineColumn(i.StartLine,i.StartColumn,o),this._cursor.setSelectionLineColumn(i.StartLine,i.StartColumn,i.EndLine,i.EndColumn);break;case"replace":this._document.replaceText(i.Text,i.StartLine,i.StartColumn,i.EndLine,i.EndColumn)}},_updateSystemObjectState:async function(e){let t=await this.analyzeCode(),i=t.isSystem,n=t.isNotSystem,o=t.isEventSystem;if(i&&(this._isMethodImplemented=t.isMethodImplemented,this._iconMode=t.iconMode),e&&i&&this.executeOnSave(n),i||n){let t=this._lastKnownSystemObjectState,r=this._lastKnownEventSystemObjectState;this._lastKnownSystemObjectState=i,this._lastKnownEventSystemObjectState=o,e&&t&&n&&this.executeOnSave(!0),(t!==i||r!==o)&&this.onSystemObjectStateChanged(i)}},_updateToolstripSection:function(e){e&&this._getFilePath()===r.getInstance().getActiveFilePath()?(this._toolstripSection.add(),this._toolstripSection.update(this._lastKnownEventSystemObjectState,this._isMethodImplemented,this._iconMode)):this._toolstripSection.isEnabled()&&(this._toolstripSection.destroy(),this._toolstripSection.remove())},onSystemObjectStateChanged:function(e){this._updateToolstripSection(e)},onload:function(){this._toolstripSection.build(this.executeCode.bind(this),this.insertEnumeration.bind(this),this.insertCustomProperty.bind(this)),this.own(t.after(this._backingStore,"onSaveCompleted",this._onSave.bind(this))),this.own(t.after(this._backingStore,"onLoadCompleted",this._onLoad.bind(this)));let e=r.getInstance();this.own(t.after(e,"onActiveFileChanged",this._onActiveFileChanged.bind(this),!0)),this.own(t.after(this._document,"onChange",c(this._onDocumentIdle.bind(this),600))),this._toolstripSection.attachOnInsertMethod(this.onInsertMethod.bind(this))},postbuild:async function(){this._toolstripSection.postbuild(this.executeCode.bind(this)),void 0===this._lastKnownSystemObjectState&&!0===this._loadCompleted&&this._updateSystemObjectState(!1)},analyzeCode:async function(){const e=this._getFilePath(),t=this._getFileText();let i=await o.FEval(5,"internal.matlab.desktop.editor.getSystemObjectInfo",e,t);return{isSystem:i[0],isNotSystem:i[1],isEventSystem:i[2],isMethodImplemented:i[3][0],iconMode:i[4]}},analyzeCodeOnIdle:async function(){const e=this._getFilePath();let t=await o.FEval(2,"matlab.system.editor.internal.DocumentAction.onUpdate",e);return{isMethodImplemented:t[0][0],iconMode:t[1]}},executeCode:async function(e,t){const i=r.getInstance().getActiveFilePath();let n;n=t?`${e}("${i}","${t}")`:`${e}("${i}")`,this._matlabExecutionDataService.executionEval(n)},executeOnSave:async function(e){let t=`matlab.system.editor.internal.DocumentAction.onSave("${this._getFilePath()}",${e})`;this._matlabExecutionDataService.executionEval(t)},onInsertMethod:function(){r.getInstance().getActiveFilePath()===this._getFilePath()&&this._toolstripSection.buildInsertMethodGallery(this.executeCode.bind(this),this._lastKnownEventSystemObjectState,this._isMethodImplemented)},_getFilePath:function(){return d.getLongName(this._backingStore)},_getFileText:function(){return this._document.getCodeText()},_onActiveFileChanged:function(e){if(e===this._getFilePath()){let e=!0===this._lastKnownSystemObjectState;this.onSystemObjectStateChanged(e)}},_onDocumentIdle:async function(){if(this._lastKnownSystemObjectState){let e=await this.analyzeCodeOnIdle();this._isMethodImplemented=e.isMethodImplemented,this._iconMode=e.iconMode,this._toolstripSection.update(this._lastKnownEventSystemObjectState,this._isMethodImplemented,this._iconMode)}},_onSave:async function(){this._updateSystemObjectState(!0)},_onLoad:async function(){this._updateSystemObjectState(!1)},insertEnumeration:function(){void 0===this._enumerationDialog&&(this._enumerationDialog=new s),this._enumerationDialog.show(this.executeEnumerationCode.bind(this),this.openHelp.bind(this))},insertCustomProperty:function(){void 0===this._customPropertyDialog&&(this._customPropertyDialog=new a),this._customPropertyDialog.show(this.executeCustomPropertyCode.bind(this),this.openHelp.bind(this))},executeEnumerationCode:async function(e,t,i,n,o){let a=`matlab.system.editor.internal.DocumentAction.insertEnumerationProperty("${r.getInstance().getActiveFilePath()}","${e}","${t}",${i},"${n}","${o}");`;this._matlabExecutionDataService.executionEval(a)},executeCustomPropertyCode:async function(e,t,i){let n=`matlab.system.editor.internal.DocumentAction.insertCustomProperty("${r.getInstance().getActiveFilePath()}","${e}","${t}","${i}")`;this._matlabExecutionDataService.executionEval(n)},openHelp:async function(e,t){let i=`helpview("${e}","${t}")`;this._matlabExecutionDataService.executionEval(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(755),i(262),i(273),i(211),i(269),i(286),i(308)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(t,{_customDialog:void 0,_insertFunction:void 0,_helpFunction:void 0,_accessItems:[{label:"public",value:"public"},{label:"protected",value:"protected"},{label:"private",value:"private"},{label:"immutable",value:"immutable"}],_systemAttributes:["Logical","Nontunable","DiscreteState","PositiveInteger"],_matlabAttributes:["Constant","Hidden","Dependent"],_widgets:{},show:function(e,t){this._insertFunction=e,this._helpFunction=t;const r=this._getDialogContent();this._customDialog=n.createDialog({title:i.customPropertyTitle,dialogType:n.MODAL,content:r,resizable:!1,draggable:!0,buttons:[{type:o.TYPE.DO_IT,"data-test-id":"InsertButton",label:i.insertButton},o.CANCEL,o.HELP]}),this._customDialog.addButtonEventListener(o.TYPE.DO_IT,this._onInsert.bind(this)),this._customDialog.addButtonEventListener(o.CANCEL,this._onCancel.bind(this)),this._customDialog.addButtonEventListener(o.HELP,this._onHelp.bind(this)),this._customDialog.on("close",this._onClose.bind(this))},_onInsert:function(){let e=this._widgets,t=e.setAccessCombo.value,i=e.getAccessCombo.value,n=[];this._systemAttributes.concat(this._matlabAttributes).forEach(t=>{!e[t].disabled&&e[t].checked&&n.push(t)}),this._insertFunction(t,i,n),this._customDialog.close(),this._customDialog=void 0},_onCancel:function(){this._customDialog.close(),this._customDialog=void 0},_onClose:function(){this._customDialog=void 0},_onHelp:function(){this._helpFunction("matlab","sysobj_insert_custom_property")},_getDialogContent:function(){let e=r.create("div",{class:"customPropertyContent"});return this._createAccess(e),this._createSystem(e),this._createMATLAB(e),e},_createAccess:function(e){let t=r.create("div",{class:"access",style:{marginBottom:"10px",padding:"5px",border:"1px solid gainsboro"}});e.appendChild(t);let n=new a({text:i.access});n.placeAt(t),n.startup();let o=r.create("div",{class:"setAccess",style:{marginBottom:"10px",display:"flex"}});t.appendChild(o),this._buildLabel({text:"SetAccess:"},o),this._buildComboBox("setAccessCombo",{items:this._accessItems,value:"public"},o);let s=r.create("div",{class:"getAccess",style:{display:"flex"}});t.appendChild(s),this._buildLabel({text:"GetAccess:"},s),this._buildComboBox("getAccessCombo",{items:this._accessItems.slice(0,3),value:"public"},s)},_createSystem:function(e){let t=r.create("div",{class:"systemAttributes",style:{marginBottom:"10px",padding:"5px",border:"1px solid gainsboro"}});e.appendChild(t);let n=new a({text:i.systemAttributes});n.placeAt(t),n.startup(),this._systemAttributes.forEach(e=>{this._buildCheckBox(e,{text:e},t)})},_createMATLAB:function(e){let t=r.create("div",{class:"matlabAttributes",style:{padding:"5px",border:"1px solid gainsboro"}});e.appendChild(t);let n=new a({text:i.matlabAttributes});n.placeAt(t),n.startup(),this._matlabAttributes.forEach(e=>{this._buildCheckBox(e,{text:e},t)})},_buildLabel:function(e,t){let i=r.create("div",{class:"labelContainer",style:{paddingRight:"10px"}});t.appendChild(i);let n=new a(e);n.placeAt(i),n.startup()},_buildComboBox:function(e,t,i){let n=r.create("div",{class:"comboContainer"});i.appendChild(n);let o=new s(t);o.placeAt(n),o.startup(),this._widgets[e]=o},_buildCheckBox:function(e,t,i){let n=r.create("div",{class:"checkBoxContainer"});i.appendChild(n);let o=new l(t);o.placeAt(n),o.startup(),this._widgets[e]=o,o.on("change",this._onCheckBoxChange.bind(this))},_onCheckBoxChange:function(){let e=this._widgets;e.Logical.set("disabled",e.PositiveInteger.checked||e.Dependent.checked),e.Nontunable.set("disabled",e.DiscreteState.checked),e.DiscreteState.set("disabled",e.Nontunable.checked||e.Dependent.checked||e.Constant.checked),e.PositiveInteger.set("disabled",e.Logical.checked||e.Dependent.checked),e.Constant.set("disabled",e.Dependent.checked||e.DiscreteState.checked),e.Dependent.set("disabled",e.Constant.checked||e.DiscreteState.checked||e.Logical.checked||e.PositiveInteger.checked),e.setAccessCombo.set("disabled",e.Constant.checked),e.getAccessCombo.set("disabled",e.DiscreteState.checked)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(755),i(262),i(273),i(211),i(269),i(258),i(308),i(326),i(350),i(594),i(8198),i(239),i(243),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e(t,{_enumerationDialog:void 0,_insertFunction:void 0,_helpFunction:void 0,_widgets:{},_content:void 0,_newEnumContainer:void 0,_defaultSize:{width:300,height:200},_extendedSize:{width:300,height:380},_newEnumTable:void 0,_newEnumDataStore:void 0,show:function(e,t){this._insertFunction=e,this._helpFunction=t;const r=this._getDialogContent();this._content=r,this._enumerationDialog=n.createDialog({title:i.enumerationTitle,dialogType:n.MODAL,content:r,resizable:!1,draggable:!0,buttons:[{type:o.TYPE.DO_IT,"data-test-id":"InsertButton",label:i.insertButton},o.CANCEL,o.HELP]}),this._enumerationDialog.resizeTo(this._defaultSize),this._enumerationDialog.addButtonEventListener(o.TYPE.DO_IT,this._onInsert.bind(this)),this._enumerationDialog.addButtonEventListener(o.CANCEL,this._onCancel.bind(this)),this._enumerationDialog.addButtonEventListener(o.HELP,this._onHelp.bind(this)),this._enumerationDialog.on("close",this._onClose.bind(this))},_onInsert:function(){let e,t=this._widgets,i=[];if(void 0!==this._newEnumTable){this._newEnumDataStore._data.forEach(t=>{t[1].checked&&(e=t[0]),i.push(t[0])})}else e="red",i=["red","green","blue"];this._insertFunction(t.propName.value,t.enumName.value,t.createNewEnum.checked,e,i),this._enumerationDialog.close(),this._enumerationDialog=void 0},_onCancel:function(){this._enumerationDialog.close(),this._enumerationDialog=void 0},_onClose:function(){this._enumerationDialog=void 0},_onHelp:function(){this._helpFunction("matlab","sysobj_insert_enumeration_property")},_getDialogContent:function(){let e=r.create("div",{class:"enumerationPropertyContent"}),t=r.create("div",{class:"nameGrid",style:{marginBottom:"10px",display:"grid",gridTemplateColumns:"auto auto"}});return e.appendChild(t),this._buildLabel({text:i.namePrompt},t),this._buildText("propName",{value:"Color"},t),this._buildLabel({text:i.enumerationPrompt},t),this._buildText("enumName",{value:"ColorValues"},t),this._buildCheckBox("createNewEnum",{text:i.createEnumerationLabel},e),e},_buildLabel:function(e,t){let i=r.create("div",{class:"labelContainer",style:{paddingRight:"10px"}});t.appendChild(i);let n=new a(e);n.placeAt(i),n.startup()},_buildText:function(e,t,i){let n=r.create("div",{class:"textContainer"});i.appendChild(n);let o=new s(t);o.placeAt(n),o.startup(),this._widgets[e]=o},_buildCheckBox:function(e,t,i){let n=r.create("div",{class:"checkBoxContainer"});i.appendChild(n);let o=new l(t);o.placeAt(i),o.startup(),this._widgets[e]=o,o.on("change",this._onCheckBoxChange.bind(this))},_onCheckBoxChange:function(){this._widgets.createNewEnum.checked?(this._createNewEnumerationContent(),this._enumerationDialog.resizeTo(this._extendedSize)):(r.destroy(this._newEnumContainer),this._newEnumContainer=void 0,this._newEnumTable=void 0,this._newEnumDataStore=void 0,this._enumerationDialog.resizeTo(this._defaultSize))},_createNewEnumerationContent:function(){let e=r.create("div",{class:"newEnumContainer"});this._content.appendChild(e);let t=r.create("div",{class:"buttonsContainer",style:{display:"flex",marginBottom:"10px",flexDirection:"row-reverse"}});e.appendChild(t),this._buildPushButton({icon:"delete_16",description:i.removeValue},t,this._onRemoveRow.bind(this)),this._buildPushButton({icon:"add_16",description:i.addValue},t,this._onAddRow.bind(this));let n=r.create("div",{class:"tableContainer",style:{height:"150px"}});e.appendChild(n);var o={dataTestId:"enumTable",features:[c.FEATURE.CellFocus],columnModel:{columnConfig:[{label:i.tableValue,dataIndex:0,editor:u,width:{value:180,unit:"px"}},{label:i.tableDefault,dataIndex:1,interactiveRenderer:new h,width:{value:80,unit:"px"}}]}};this._newEnumDataStore=d.create([["red",{checked:!0}],["green",{checked:!1}],["blue",{checked:!1}]],{type:g.TABLE}),this._newEnumTable=new c(this._newEnumDataStore,o),n.appendChild(this._newEnumTable.domNode),this._newEnumTable.startup(),this._newEnumContainer=e},_buildPushButton:function(e,t,i){let n=r.create("div",{class:"buttonContainer",style:{paddingRight:"10px"}});t.appendChild(n);let o=new f(e);o.placeAt(n),o.startup(),o.on("click",i)},_onAddRow:function(){let e,t=this._newEnumTable.getFocusedCell(),i=this._newEnumDataStore.dataSize.rows.end;e=void 0!==t.row&&t.row<i?t.row+1:i+1;var n=p.range().setColumns(0,1/0).setRows(e,e);this._newEnumDataStore.add(n,[["",{checked:!1}]])},_onRemoveRow:function(){let e,t=this._newEnumTable.getFocusedCell(),i=this._newEnumDataStore.dataSize.rows.end;e=void 0!==t.row&&t.row<i?t.row:i;var n=this._newEnumDataStore.dataSize.rows.end;if(-1!==n&&0!==n){var o=p.range().setColumns(0,1/0).setRows(e,e);this._newEnumDataStore.remove(o);let t=this._newEnumDataStore._data;const i=e=>e[1].checked;if(!t.some(i)){let e=t[0];e[1].checked=!0;let i=p.range().setColumns(0,1).setRows(0,0);this._newEnumDataStore.update(i,[e])}}}})}),e,t),e.exports=o},function(e,t,i){var n,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(841)],o=i.dj.d(n,(function(e){"use strict";return function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=e=e||{},n=i.isChecked,o=i.toggleValueForAction,r=i.getA11yProperties;this._radiobuttonDefaultClasses=["mwDefaultVisualFamily","mwEnabled","mwWidget","mwRadioButton","mw-data-checkbox-renderer"],this._radiobuttonCheckedClasses=["mwRadioButtonChecked"],this.toggle=!0,n&&(this._isChecked=n),o&&(this._toggleValueForAction=o),r&&(this._getA11yProperties=r)}return a(t,[{key:"_isChecked",value:function(e){return"object"===(void 0===e?"undefined":r(e))&&!0===e.checked}},{key:"getDomNode",value:function(e){var t=document.createElement("div"),i=document.createElement("div"),n=document.createElement("div"),o=document.createElement("div"),r=this._isChecked(e);if(i.className=r?this._radiobuttonDefaultClasses.concat(this._radiobuttonCheckedClasses).join(" "):this._radiobuttonDefaultClasses.join(" "),e&&e.a11y&&e.a11y.radiobuttonDescription)n.setAttribute("aria-label",e.a11y.radiobuttonDescription);else if(this._getA11yProperties){var a=this._getA11yProperties(e);a&&a.radiobuttonDescription&&n.setAttribute("aria-label",a.radiobuttonDescription)}return n.setAttribute("role","radio"),n.setAttribute("aria-checked",r),n.setAttribute("data-clickable",!0),n.className="mwCheckBoxRadioIconNode",o.className="mwCheckBoxRadioIconInner",o.setAttribute("data-clickable",!0),n.appendChild(o),i.appendChild(n),t.appendChild(i),t.className="mw-table-cell-content",t}},{key:"getAriaLabel",value:function(e){var t="radiobutton "+this._isChecked(e);if(e&&e.a11y&&e.a11y.radiobuttonDescription)return e.a11y.radiobuttonDescription+" "+t;if(this._getA11yProperties){var i=this._getA11yProperties(e);if(i&&i.radiobuttonDescription)return i.radiobuttonDescription+" "+t}return t}},{key:"_toggleValueForAction",value:function(t){var i=e().shallowCopy(t);return"object"===(void 0===i?"undefined":r(i))&&i.hasOwnProperty("checked")?(i.checked=!i.checked,{oldValue:t,newValue:i}):null}},{key:"handleAction",value:function(e){var t=e=e||{},i=t.value,n=t.shouldUpdate,o=t.target,r=t.shouldToggle;return!(!0===n||o&&o.getAttribute("data-clickable"))||!r&&this._isChecked(i)?null:this._toggleValueForAction(i)}}]),t}()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(755),i(230),i(226),i(1646),i(8200),i(8201),i(659),i(1645)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){const d=e(n,{_built:!1,_postbuilt:!1,_hasStarted:!1,_packageName:"matlab.system.editor.internal.DocumentAction.",_insertMethod:"matlab.system.editor.internal.DocumentAction.insertSystemObjectMethod",_isSimulinkAvailable:void 0,constructor:function(e,t){this._uibuilder=e,this._rootSectionId=void 0,this._debugServices=t},startup:function(){if(!this._hasStarted){this.own(t.after(this._debugServices,"onDebugModeChanged",this._handleDebugModeChanged.bind(this),!0));let e=r.getInstance();this.own(t.after(e,"onActiveFileChanged",this._onActiveFileChanged.bind(this),!0)),this._hasStarted=!0}},isEnabled:function(){return this._rootSectionId&&-1!==this._uibuilder.indexOf(this._rootSectionId)},destroy:function(){this._hasStarted=!1},add:function(){if(this.isEnabled())return;let e=this._uibuilder.tagToId("motwToolstrip.editorTab");void 0!==e&&this._uibuilder.add(this._rootSectionId,e,3)},remove:function(){this.isEnabled()&&this._uibuilder.remove(this._rootSectionId)},update:function(e,t,i){this._updateInputOutput(e,t),this._updateSystemBlock(e,t,i)},build:function(e,t,i){const n=this._uibuilder;if(this._built)return;this._built=!0,n.createPopupsFromConfig(a);const o=this._createSystemObjectSection(n);this._rootSectionId=o,this._createInsertProperty(n,o,e),this._createInsertMethod(n,o);const r=this._createInsertState(n,o,e);this._createInputOutput(n,r),this._createAnalyze(n,r,e),this._addPopupEventHandlers(e),n.addEventCallback(n.tagToId("soe.insertProperty.enumeration"),t),n.addEventCallback(n.tagToId("soe.insertProperty.customProperty"),i)},postbuild:async function(e){if(void 0===this._isSimulinkAvailable){let t=await c.FEval(1,"internal.matlab.desktop.editor.isSimulinkAvailable");this._isSimulinkAvailable=t[0],this._isSimulinkAvailable&&this._createSystemBlock(e)}},attachOnInsertMethod:function(e){const t=this._uibuilder;t.addEventCallback(t.tagToId("sysobj.insertmethod.button"),e)},buildInsertMethodGallery:function(e,t,i){const n=this._uibuilder;let r=n.tagToId("sysobj.insertmethod.button"),a=n.get(r,"popupId"),s=l.LIST,c=[];if(a){let e=n.widgetByTag("sysobj.insertmethod.button");void 0!==e.menu.displayState&&(s=e.menu.displayState),c=this._getExistingFavorites(),n.destroy(a)}let d=n.create({tag:"soe.insertMethod",type:o.GALLERY_POPUP,displayState:s,galleryItemTextLineCount:2,galleryItemWidth:60,favoritesEnabled:!0,favCategoryId:"soe.insertMethod.favorites"});this._createInsertMethodCategories(d,t),this._createInsertMethodItems(e,t,i),c.forEach(e=>{n.addGalleryItemToFavorites(e,!1)}),n.set(r,"popupId",d),n.showPopup(r)},_createSystemObjectSection:function(e){return e.create({type:o.SECTION,tag:"sysobj.systemobject",title:i.TabEditorSectionSystemObject.Label})},_createInsertProperty:function(e,t,i){let n=e.create({parentId:t,type:o.COLUMN}),r=this._createWidget(e,"InsertProperty",n,o.SPLIT_BUTTON,"IP");e.set(r,"popupId",e.tagToId("soe.insertProperty"));e.addEventCallback(r,()=>{i(this._packageName+"insertNumericProperty")})},_createInsertMethod:function(e,t){let i=e.create({parentId:t,type:o.COLUMN}),n=this._createWidget(e,"InsertMethod",i,o.DROP_DOWN_BUTTON,"IM");e.set(n,"hasDynamicPopup",!0)},_createInsertState:function(e,t,i){let n=e.create({parentId:t,type:o.COLUMN}),r=this._createWidget(e,"InsertState",n,o.PUSH_BUTTON,"IT");return e.addEventCallback(r,()=>{i(this._packageName+"insertState")}),n},_createInputOutput:function(e,t){let i=this._createWidget(e,"InputOutput",t,o.DROP_DOWN_BUTTON,"IO");e.set(i,"popupId",e.tagToId("soe.inputOutput"))},_createAnalyze:function(e,t,i){let n=this._createWidget(e,"Analyze",t,o.PUSH_BUTTON,"A");e.addEventCallback(n,()=>{i(this._packageName+"analyze")})},_createSystemBlock:function(e){if(this._postbuilt)return;this._postbuilt=!0;const t=this._uibuilder;let i=t.create({parentId:this._rootSectionId,type:o.COLUMN}),n=this._createWidget(t,"SystemBlock",i,o.SPLIT_BUTTON,"B");t.set(n,"popupId",t.tagToId("soe.systemBlock"));t.addEventCallback(n,()=>{e(this._packageName+"showDialogPreview")})},_createWidget:function(e,t,n,o,r){return e.create({tag:"sysobj."+t.toLowerCase()+".button",parentId:n,type:o,text:i["Tool"+t].Label,description:i["Tool"+t].Description,icon:t+"_Large",quickAccessIcon:t+"_Small",mnemonic:r})},_createInsertMethodCategories:function(e,t){const n=this._uibuilder;n.create({type:o.GALLERY_FAVORITE_CATEGORY,tag:"soe.insertMethod.favorites",parentId:e}),t&&s.eventCategories.forEach(t=>{n.create({type:o.GALLERY_CATEGORY,title:i[t],tag:"soe.insertMethod."+t,parentId:e})}),s.systemCategories.forEach(t=>{n.create({type:o.GALLERY_CATEGORY,title:i[t],tag:"soe.insertMethod."+t,parentId:e})}),this._isSimulinkAvailable&&s.simulinkCategories.forEach(t=>{n.create({type:o.GALLERY_CATEGORY,title:i[t],tag:"soe.insertMethod."+t,parentId:e})})},_createInsertMethodItems:function(e,t,n){const r=this._uibuilder;let a=this._isSimulinkAvailable;for(let l in s.allMethods){let c=s.allMethods[l];if(!t&&"matlab.DiscreteEventSystem"===c.baseClass)continue;if(s.simulinkCategories.includes(c.category)&&!a)continue;let d=t&&c.sealedForDES,u=d?l+" "+i.sealedMethod:l,h="soe.insertMethod."+l,p=r.create({type:o.TOGGLE_GALLERY_ITEM,tag:h,text:i[l],description:u,selected:n[c.linearIndex],enabled:!d,icon:c.largeIcon,quickAccessIcon:c.smallIcon,parentId:r.tagToId("soe.insertMethod."+c.category)});"SystemObjectConstructor"===l&&(l="System object constructor"),r.addPropertySetCallback(p,this._makeOnCheckboxClick(e,this._insertMethod,l,h))}},_getExistingFavorites:function(){const e=this._uibuilder;let t=[];for(let i in s.allMethods){let n="soe.insertMethod."+i,o=e.tagToId(n);void 0!==o&&e.get(o,"isFavorite")&&t.push(n)}return t},_addPopupEventHandlers:function(e){const t=this._uibuilder;s.listItemEvents.forEach(i=>{i.isCheckbox?t.addPropertySetCallback(t.tagToId(i.tag),this._makeOnCheckboxClick(e,this._insertMethod,i.methodName,i.tag)):t.addEventCallback(t.tagToId(i.tag),this._makeOnItemClick(e,this._packageName+i.methodName))})},_updateInputOutput:function(e,t){const i=this._uibuilder;let n=!e;s.inputOutput.forEach(e=>{i.set(i.tagToId(e),"enabled",n)}),this._updateMethodsState(s.inputOutputMethods,e,t)},_updateSystemBlock:function(e,t,i){const n=this._uibuilder;n.set(n.tagToId("soe.systemBlock.specifyBlockTextIcon"),"enabled",1!==i),n.set(n.tagToId("soe.systemBlock.specifyBlockImageIcon"),"enabled",2!==i),this._updateMethodsState(s.systemBlockMethods,e,t)},_updateMethodsState:function(e,t,n){const o=this._uibuilder;for(let r in e){let a=s.allMethods[e[r]],l=t&&a.sealedForDES,c=o.tagToId(r);o.set(c,"selected",n[a.linearIndex]),o.set(c,"enabled",!l);let d=l?e[r]+" "+i.sealedMethod:e[r];o.set(c,"description",d)}},_makeOnItemClick:function(e,t){return i=>{"itemPushed"===i.eventType&&e(t)}},_makeOnCheckboxClick:function(e,t,i,n){return o=>{if("selected"===o.property)if(o.oldValue){const e=this._uibuilder;e.set(e.tagToId(n),"selected",!0)}else e(t,i)}},_handleDebugModeChanged:async function(e){if(e)this.remove();else{await r.getInstance().isSystemObject()&&this.add()}},_onActiveFileChanged:function(e){if(this._debugServices.isDebugging)return;r.getInstance().isUnsupportedFile(e)&&this.remove()}});let u;return{_impl:d,getInstance:function(...e){return u||(u=new d(...e)),u}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(755)],o=i.dj.d(n,(function(e,t){return{popups:[{tag:"soe.insertProperty",type:e.POPUP_LIST,children:[{type:e.POPUP_LIST_HEADER,title:t.ToolPublicGroup.Label,tag:"soe.insertProperty.publicGroup"},{type:e.LIST_ITEM,tag:"soe.insertProperty.numeric",text:t.ToolNumeric.Label,description:t.ToolNumeric.Description,closePopupOnClick:!0,showDescription:!1},{type:e.LIST_ITEM,tag:"soe.insertProperty.logical",text:t.ToolLogical.Label,description:t.ToolLogical.Description,closePopupOnClick:!0,showDescription:!1},{type:e.LIST_ITEM,tag:"soe.insertProperty.enumeration",text:t.ToolEnumeration.Label,description:t.ToolEnumeration.Description,closePopupOnClick:!0,showDescription:!1},{type:e.LIST_ITEM,tag:"soe.insertProperty.positiveInteger",text:t.ToolPositiveInteger.Label,description:t.ToolPositiveInteger.Description,closePopupOnClick:!0,showDescription:!1},{type:e.LIST_ITEM,tag:"soe.insertProperty.tunableNumeric",text:t.ToolTunableNumeric.Label,description:t.ToolTunableNumeric.Description,closePopupOnClick:!0,showDescription:!1},{type:e.POPUP_LIST_HEADER,title:t.ToolRestrictedGroup.Label,tag:"soe.insertProperty.restrictedGroup"},{type:e.LIST_ITEM,tag:"soe.insertProperty.private",text:t.ToolPrivate.Label,description:t.ToolPrivate.Description,closePopupOnClick:!0,showDescription:!1},{type:e.LIST_ITEM,tag:"soe.insertProperty.protected",text:t.ToolProtected.Label,description:t.ToolProtected.Description,closePopupOnClick:!0,showDescription:!1},{type:e.POPUP_LIST_HEADER,title:t.ToolCustomGroup.Label,tag:"soe.insertProperty.customGroup"},{type:e.LIST_ITEM,tag:"soe.insertProperty.customProperty",text:t.ToolCustomProperty.Label,description:t.ToolCustomProperty.Description,closePopupOnClick:!0,showDescription:!1}]},{tag:"soe.inputOutput",type:e.POPUP_LIST,children:[{type:e.POPUP_LIST_HEADER,title:t.ToolInsertGroup.Label,tag:"soe.inputOutput.insertGroup"},{type:e.LIST_ITEM,tag:"soe.inputOutput.input",text:t.ToolInput.Label,description:t.ToolInput.Description,closePopupOnClick:!0},{type:e.LIST_ITEM,tag:"soe.inputOutput.optionalInput",text:t.ToolOptionalInput.Label,description:t.ToolOptionalInput.Description,closePopupOnClick:!0},{type:e.POPUP_LIST_SEPARATOR,tag:"soe.inputOutput.separator"},{type:e.LIST_ITEM,tag:"soe.inputOutput.output",text:t.ToolOutput.Label,description:t.ToolOutput.Description,closePopupOnClick:!0},{type:e.LIST_ITEM,tag:"soe.inputOutput.optionalOutput",text:t.ToolOptionalOutput.Label,description:t.ToolOptionalOutput.Description,closePopupOnClick:!0},{type:e.POPUP_LIST_HEADER,title:t.ToolInsertInputOutputMethodsGroup.Label,tag:"soe.inputOutput.insertInputOutputMethodsGroup"},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.inputOutput.validateInputsImpl",text:t.validateInputsImpl,description:"validateInputsImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.inputOutput.isInputSizeMutableImpl",text:t.isInputSizeMutableImpl,description:"isInputSizeMutableImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.inputOutput.isInputComplexityMutableImpl",text:t.isInputComplexityMutableImpl,description:"isInputComplexityMutableImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.inputOutput.isInputDataTypeMutableImpl",text:t.isInputDataTypeMutableImpl,description:"isInputDataTypeMutableImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.inputOutput.processInputSpecificationChangeImpl",text:t.processInputSpecificationChangeImpl,description:"processInputSpecificationChangeImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.inputOutput.getNumInputsImpl",text:t.getNumInputsImpl,description:"getNumInputsImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.inputOutput.getNumOutputsImpl",text:t.getNumOutputsImpl,description:"getNumOutputsImpl",closePopupOnClick:!0}]},{tag:"soe.systemBlock",type:e.POPUP_LIST,children:[{type:e.LIST_ITEM,tag:"soe.systemBlock.previewBlockDialog",text:t.ToolPreviewBlockDialog.Label,description:t.ToolPreviewBlockDialog.Description,closePopupOnClick:!0,icon:"SystemBlock_Large",quickAccessIcon:"SystemBlock_Small"},{type:e.POPUP_LIST_HEADER,title:t.ToolSpecifyBlockIconGroup.Label,tag:"soe.systemBlock.specifyBlockIconGroup"},{type:e.LIST_ITEM,tag:"soe.systemBlock.specifyBlockTextIcon",text:t.ToolSpecifyBlockTextIcon.Label,description:t.ToolSpecifyBlockTextIcon.Description,closePopupOnClick:!0,icon:"SpecifyIconText_Large",quickAccessIcon:"SpecifyIconText_Small"},{type:e.LIST_ITEM,tag:"soe.systemBlock.specifyBlockImageIcon",text:t.ToolSpecifyBlockImageIcon.Label,description:t.ToolSpecifyBlockImageIcon.Description,closePopupOnClick:!0,icon:"SpecifyIconImage_Large",quickAccessIcon:"SpecifyIconImage_Small"},{type:e.POPUP_LIST_HEADER,title:t.ToolInsertDialogMethodsGroup.Label,tag:"soe.systemBlock.insertDialogMethodsGroup"},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.systemBlock.getHeaderImpl",text:t.getHeaderImpl,description:"getHeaderImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.systemBlock.getPropertyGroupsImpl",text:t.getPropertyGroupsImpl,description:"getPropertyGroupsImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.systemBlock.getSimulateUsingImpl",text:t.getSimulateUsingImpl,description:"getSimulateUsingImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.systemBlock.showSimulateUsingImpl",text:t.showSimulateUsingImpl,description:"showSimulateUsingImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.systemBlock.showFiSettingsImpl",text:t.showFiSettingsImpl,description:"showFiSettingsImpl",closePopupOnClick:!0},{type:e.POPUP_LIST_HEADER,title:t.ToolInsertPortMethodsGroup.Label,tag:"soe.systemBlock.insertPortMethodsGroup"},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.systemBlock.getInputNamesImpl",text:t.getInputNamesImpl,description:"getInputNamesImpl",closePopupOnClick:!0},{type:e.LIST_ITEM_WITH_CHECKBOX,tag:"soe.systemBlock.getOutputNamesImpl",text:t.getOutputNamesImpl,description:"getOutputNamesImpl",closePopupOnClick:!0}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(755)],o=i.dj.d(n,(function(e){return{listItemEvents:[{tag:"soe.insertProperty.numeric",methodName:"insertNumericProperty",isCheckbox:!1},{tag:"soe.insertProperty.logical",methodName:"insertLogicalProperty",isCheckbox:!1},{tag:"soe.insertProperty.positiveInteger",methodName:"insertPositiveIntegerProperty",isCheckbox:!1},{tag:"soe.insertProperty.tunableNumeric",methodName:"insertTunableNumericProperty",isCheckbox:!1},{tag:"soe.insertProperty.private",methodName:"insertPrivateProperty",isCheckbox:!1},{tag:"soe.insertProperty.protected",methodName:"insertProtectedProperty",isCheckbox:!1},{tag:"soe.inputOutput.input",methodName:"insertInput",isCheckbox:!1},{tag:"soe.inputOutput.optionalInput",methodName:"insertOptionalInputs",isCheckbox:!1},{tag:"soe.inputOutput.output",methodName:"insertOutput",isCheckbox:!1},{tag:"soe.inputOutput.optionalOutput",methodName:"insertOptionalOutputs",isCheckbox:!1},{tag:"soe.inputOutput.validateInputsImpl",methodName:"validateInputsImpl",isCheckbox:!0},{tag:"soe.inputOutput.isInputSizeMutableImpl",methodName:"isInputSizeMutableImpl",isCheckbox:!0},{tag:"soe.inputOutput.isInputComplexityMutableImpl",methodName:"isInputComplexityMutableImpl",isCheckbox:!0},{tag:"soe.inputOutput.isInputDataTypeMutableImpl",methodName:"isInputDataTypeMutableImpl",isCheckbox:!0},{tag:"soe.inputOutput.processInputSpecificationChangeImpl",methodName:"processInputSpecificationChangeImpl",isCheckbox:!0},{tag:"soe.inputOutput.getNumInputsImpl",methodName:"getNumInputsImpl",isCheckbox:!0},{tag:"soe.inputOutput.getNumOutputsImpl",methodName:"getNumOutputsImpl",isCheckbox:!0},{tag:"soe.systemBlock.previewBlockDialog",methodName:"showDialogPreview",isCheckbox:!1},{tag:"soe.systemBlock.specifyBlockTextIcon",methodName:"specifyTextIcon",isCheckbox:!1},{tag:"soe.systemBlock.specifyBlockImageIcon",methodName:"specifyImageIcon",isCheckbox:!1},{tag:"soe.systemBlock.getHeaderImpl",methodName:"getHeaderImpl",isCheckbox:!0},{tag:"soe.systemBlock.getPropertyGroupsImpl",methodName:"getPropertyGroupsImpl",isCheckbox:!0},{tag:"soe.systemBlock.getSimulateUsingImpl",methodName:"getSimulateUsingImpl",isCheckbox:!0},{tag:"soe.systemBlock.showSimulateUsingImpl",methodName:"showSimulateUsingImpl",isCheckbox:!0},{tag:"soe.systemBlock.showFiSettingsImpl",methodName:"showFiSettingsImpl",isCheckbox:!0},{tag:"soe.systemBlock.getInputNamesImpl",methodName:"getInputNamesImpl",isCheckbox:!0},{tag:"soe.systemBlock.getOutputNamesImpl",methodName:"getOutputNamesImpl",isCheckbox:!0}],allMethods:{getEntityTypesImpl:{linearIndex:0,description:e.getEntityTypesImpl,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventSpecification_Small",largeIcon:"DiscreteEventSpecification_Large",category:"eventSpecificationMethods"},getEntityPortsImpl:{linearIndex:1,description:e.getEntityPortsImpl,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventSpecification_Small",largeIcon:"DiscreteEventSpecification_Large",category:"eventSpecificationMethods"},getEntityStorageImpl:{linearIndex:2,description:e.getEntityStorageImpl,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventSpecification_Small",largeIcon:"DiscreteEventSpecification_Large",category:"eventSpecificationMethods"},getResourceNamesImpl:{linearIndex:3,description:e.getResourceNamesImpl,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventSpecification_Small",largeIcon:"DiscreteEventSpecification_Large",category:"eventSpecificationMethods"},setupEvents:{linearIndex:4,description:e.setupEvents,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},generate:{linearIndex:5,description:e.generate,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},entry:{linearIndex:6,description:e.entry,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},exit:{linearIndex:7,description:e.exit,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},timer:{linearIndex:8,description:e.timer,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},iterate:{linearIndex:9,description:e.iterate,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},blocked:{linearIndex:10,description:e.blocked,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},destroy:{linearIndex:11,description:e.destroy,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},testEntry:{linearIndex:12,description:e.testEntry,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},modified:{linearIndex:13,description:e.modified,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},resourceAcquired:{linearIndex:14,description:e.resourceAcquired,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},resourceReleased:{linearIndex:15,description:e.resourceReleased,baseClass:"matlab.DiscreteEventSystem",sealedForDES:!1,smallIcon:"DiscreteEventAlgorithm_Small",largeIcon:"DiscreteEventAlgorithm_Large",category:"eventAlgorithmMethods"},stepImpl:{linearIndex:16,description:e.stepImpl,baseClass:"matlab.System",sealedForDES:!0,smallIcon:"Algorithm_Small",largeIcon:"Algorithm_Large",category:"algorithmMethods"},setupImpl:{linearIndex:17,description:e.setupImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"Algorithm_Small",largeIcon:"Algorithm_Large",category:"algorithmMethods"},resetImpl:{linearIndex:18,description:e.resetImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"Algorithm_Small",largeIcon:"Algorithm_Large",category:"algorithmMethods"},releaseImpl:{linearIndex:19,description:e.releaseImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"Algorithm_Small",largeIcon:"Algorithm_Large",category:"algorithmMethods"},SystemObjectConstructor:{linearIndex:20,description:e.SystemObjectConstructor,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"Constructor_Small",largeIcon:"Constructor_Large",category:"constructorMethods"},validatePropertiesImpl:{linearIndex:21,description:e.validatePropertiesImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"PropertiesStates_Small",largeIcon:"PropertiesStates_Large",category:"psMethods"},processTunedPropertiesImpl:{linearIndex:22,description:e.processTunedPropertiesImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"PropertiesStates_Small",largeIcon:"PropertiesStates_Large",category:"psMethods"},isTunablePropertyDataTypeMutableImpl:{linearIndex:23,description:e.isTunablePropertyDataTypeMutableImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"PropertiesStates_Small",largeIcon:"PropertiesStates_Large",category:"psMethods"},isInactivePropertyImpl:{linearIndex:24,description:e.isInactivePropertyImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"PropertiesStates_Small",largeIcon:"PropertiesStates_Large",category:"psMethods"},getDiscreteStateImpl:{linearIndex:25,description:e.getDiscreteStateImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"PropertiesStates_Small",largeIcon:"PropertiesStates_Large",category:"psMethods"},isDiscreteStateSpecificationMutableImpl:{linearIndex:26,description:e.isDiscreteStateSpecificationMutableImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"PropertiesStates_Small",largeIcon:"PropertiesStates_Large",category:"psMethods"},validateInputsImpl:{linearIndex:27,description:e.validateInputsImpl,baseClass:"matlab.System",sealedForDES:!0,smallIcon:"InputOutput_Small",largeIcon:"InputOutput_Large",category:"ioMethods"},isInputSizeMutableImpl:{linearIndex:28,description:e.isInputSizeMutableImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"InputOutput_Small",largeIcon:"InputOutput_Large",category:"ioMethods"},isInputComplexityMutableImpl:{linearIndex:29,description:e.isInputComplexityMutableImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"InputOutput_Small",largeIcon:"InputOutput_Large",category:"ioMethods"},isInputDataTypeMutableImpl:{linearIndex:30,description:e.isInputDataTypeMutableImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"InputOutput_Small",largeIcon:"InputOutput_Large",category:"ioMethods"},processInputSpecificationChangeImpl:{linearIndex:31,description:e.processInputSpecificationChangeImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"InputOutput_Small",largeIcon:"InputOutput_Large",category:"ioMethods"},getNumInputsImpl:{linearIndex:32,description:e.getNumInputsImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"InputOutput_Small",largeIcon:"InputOutput_Large",category:"ioMethods"},getNumOutputsImpl:{linearIndex:33,description:e.getNumOutputsImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"InputOutput_Small",largeIcon:"InputOutput_Large",category:"ioMethods"},loadObjectImpl:{linearIndex:34,description:e.loadObjectImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"LoadSaveStatus_Small",largeIcon:"LoadSaveStatus_Large",category:"lsMethods"},saveObjectImpl:{linearIndex:35,description:e.saveObjectImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"LoadSaveStatus_Small",largeIcon:"LoadSaveStatus_Large",category:"lsMethods"},isDoneImpl:{linearIndex:36,description:e.isDoneImpl,baseClass:"matlab.system.mixin.FiniteSource",sealedForDES:!1,smallIcon:"LoadSaveStatus_Small",largeIcon:"LoadSaveStatus_Large",category:"lsMethods"},infoImpl:{linearIndex:37,description:e.infoImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"LoadSaveStatus_Small",largeIcon:"LoadSaveStatus_Large",category:"lsMethods"},getHeaderImpl:{linearIndex:38,description:e.getHeaderImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"SystemBlock_Small",largeIcon:"SystemBlock_Large",category:"dialogMethods"},getPropertyGroupsImpl:{linearIndex:39,description:e.getPropertyGroupsImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"SystemBlock_Small",largeIcon:"SystemBlock_Large",category:"dialogMethods"},getSimulateUsingImpl:{linearIndex:40,description:e.getSimulateUsingImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"SystemBlock_Small",largeIcon:"SystemBlock_Large",category:"dialogMethods"},showSimulateUsingImpl:{linearIndex:41,description:e.showSimulateUsingImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"SystemBlock_Small",largeIcon:"SystemBlock_Large",category:"dialogMethods"},showFiSettingsImpl:{linearIndex:42,description:e.showFiSettingsImpl,baseClass:"matlab.System",sealedForDES:!0,smallIcon:"SystemBlock_Small",largeIcon:"SystemBlock_Large",category:"dialogMethods"},getIconImpl:{linearIndex:43,description:e.getIconImpl,baseClass:"matlab.system.mixin.CustomIcon",sealedForDES:!1,smallIcon:"SystemBlockIcon_Small",largeIcon:"SystemBlockIcon_Large",category:"iconMethods"},getInputNamesImpl:{linearIndex:44,description:e.getInputNamesImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"SystemBlockIcon_Small",largeIcon:"SystemBlockIcon_Large",category:"iconMethods"},getOutputNamesImpl:{linearIndex:45,description:e.getOutputNamesImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"SystemBlockIcon_Small",largeIcon:"SystemBlockIcon_Large",category:"iconMethods"},getOutputSizeImpl:{linearIndex:46,description:e.getOutputSizeImpl,baseClass:"matlab.system.mixin.Propagates",sealedForDES:!1,smallIcon:"SystemBlockSignalPropagation_Small",largeIcon:"SystemBlockSignalPropagation_Large",category:"propagationMethods"},getOutputDataTypeImpl:{linearIndex:47,description:e.getOutputDataTypeImpl,baseClass:"matlab.system.mixin.Propagates",sealedForDES:!1,smallIcon:"SystemBlockSignalPropagation_Small",largeIcon:"SystemBlockSignalPropagation_Large",category:"propagationMethods"},isOutputComplexImpl:{linearIndex:48,description:e.isOutputComplexImpl,baseClass:"matlab.system.mixin.Propagates",sealedForDES:!1,smallIcon:"SystemBlockSignalPropagation_Small",largeIcon:"SystemBlockSignalPropagation_Large",category:"propagationMethods"},isOutputFixedSizeImpl:{linearIndex:49,description:e.isOutputFixedSizeImpl,baseClass:"matlab.system.mixin.Propagates",sealedForDES:!0,smallIcon:"SystemBlockSignalPropagation_Small",largeIcon:"SystemBlockSignalPropagation_Large",category:"propagationMethods"},getDiscreteStateSpecificationImpl:{linearIndex:50,description:e.getDiscreteStateSpecificationImpl,baseClass:"matlab.system.mixin.Propagates",sealedForDES:!1,smallIcon:"SystemBlockSignalPropagation_Small",largeIcon:"SystemBlockSignalPropagation_Large",category:"propagationMethods"},getSampleTimeImpl:{linearIndex:51,description:e.getSampleTimeImpl,baseClass:"matlab.system.mixin.SampleTime",sealedForDES:!1,smallIcon:"SystemBlockSignalPropagation_Small",largeIcon:"SystemBlockSignalPropagation_Large",category:"propagationMethods"},getImpulseResponseLengthImpl:{linearIndex:52,description:e.getImpulseResponseLengthImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"SystemBlockSignalPropagation_Small",largeIcon:"SystemBlockSignalPropagation_Large",category:"propagationMethods"},getInputDimensionConstraintImpl:{linearIndex:53,description:e.getInputDimensionConstraintImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"SystemBlockSignalPropagation_Small",largeIcon:"SystemBlockSignalPropagation_Large",category:"propagationMethods"},getOutputDimensionConstraintImpl:{linearIndex:54,description:e.getOutputDimensionConstraintImpl,baseClass:"matlab.System",sealedForDES:!1,smallIcon:"SystemBlockSignalPropagation_Small",largeIcon:"SystemBlockSignalPropagation_Large",category:"propagationMethods"},updateImpl:{linearIndex:55,description:e.updateImpl,baseClass:"matlab.system.mixin.Nondirect",sealedForDES:!0,smallIcon:"SimulinkNondirectFeedthrough_Small",largeIcon:"SimulinkNondirectFeedthrough_Large",category:"dfMethods"},outputImpl:{linearIndex:56,description:e.outputImpl,baseClass:"matlab.system.mixin.Nondirect",sealedForDES:!0,smallIcon:"SimulinkNondirectFeedthrough_Small",largeIcon:"SimulinkNondirectFeedthrough_Large",category:"dfMethods"},isInputDirectFeedthroughImpl:{linearIndex:57,description:e.isInputDirectFeedthroughImpl,baseClass:"matlab.system.mixin.Nondirect",sealedForDES:!0,smallIcon:"SimulinkNondirectFeedthrough_Small",largeIcon:"SimulinkNondirectFeedthrough_Large",category:"dfMethods"},supportsMultipleInstanceImpl:{linearIndex:58,description:e.supportsMultipleInstanceImpl,baseClass:"matlab.System",sealedForDES:!0,smallIcon:"SimulinkModeling_Small",largeIcon:"SimulinkModeling_Large",category:"modelingMethods"},allowModelReferenceDiscreteSampleTimeInheritanceImpl:{linearIndex:59,description:e.allowModelReferenceDiscreteSampleTimeInheritanceImpl,baseClass:"matlab.System",sealedForDES:!0,smallIcon:"SimulinkModeling_Small",largeIcon:"SimulinkModeling_Large",category:"modelingMethods"},getGlobalNamesImpl:{linearIndex:60,description:e.getGlobalNamesImpl,baseClass:"matlab.System",sealedForDES:!0,smallIcon:"SimulinkModeling_Small",largeIcon:"SimulinkModeling_Large",category:"modelingMethods"},getSimulinkFunctionNamesImpl:{linearIndex:61,description:e.getSimulinkFunctionNamesImpl,baseClass:"matlab.System",sealedForDES:!0,smallIcon:"SimulinkModeling_Small",largeIcon:"SimulinkModeling_Large",category:"modelingMethods"}},inputOutput:["soe.inputOutput.input","soe.inputOutput.optionalInput","soe.inputOutput.output","soe.inputOutput.optionalOutput"],inputOutputMethods:{"soe.inputOutput.validateInputsImpl":"validateInputsImpl","soe.inputOutput.isInputSizeMutableImpl":"isInputSizeMutableImpl","soe.inputOutput.isInputComplexityMutableImpl":"isInputComplexityMutableImpl","soe.inputOutput.isInputDataTypeMutableImpl":"isInputDataTypeMutableImpl","soe.inputOutput.processInputSpecificationChangeImpl":"processInputSpecificationChangeImpl","soe.inputOutput.getNumInputsImpl":"getNumInputsImpl","soe.inputOutput.getNumOutputsImpl":"getNumOutputsImpl"},systemBlockMethods:{"soe.systemBlock.getHeaderImpl":"getHeaderImpl","soe.systemBlock.getPropertyGroupsImpl":"getPropertyGroupsImpl","soe.systemBlock.getSimulateUsingImpl":"getSimulateUsingImpl","soe.systemBlock.showSimulateUsingImpl":"showSimulateUsingImpl","soe.systemBlock.showFiSettingsImpl":"showFiSettingsImpl","soe.systemBlock.getInputNamesImpl":"getInputNamesImpl","soe.systemBlock.getOutputNamesImpl":"getOutputNamesImpl"},eventCategories:["eventSpecificationMethods","eventAlgorithmMethods"],systemCategories:["algorithmMethods","constructorMethods","psMethods","ioMethods","lsMethods"],simulinkCategories:["dialogMethods","iconMethods","propagationMethods","dfMethods","modelingMethods"]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8203)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["rtc.focusservice","rtc.backingstore","rtc.settings.service","rtc.code.codetextservice"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(212),i(754),i(8204),i(1225),i(1616),i(855),i(1111),i(273),i(233),i(241),i(207),i(263)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(h,{_RELOAD_EXTERNALLY_MODIFIED_FILES_SETTING_ID:"matlab.editor.ReloadFilesOnChange",constructor:function(e,t,i,n){this._fileDataService=r.getFileDataService(),this._settingsService=i,this._focusService=e,this._backingStore=t,this._codeTextService=n,this._enableAutomaticallyReload=!0,this._internalSaveCompleted=!1,this._onFocus=!1,this._settingsService.getSetting(this._RELOAD_EXTERNALLY_MODIFIED_FILES_SETTING_ID).then(this._onAutomticallyReloadPreferenceChange.bind(this),(function(e){})),this._pendingReloads=!1,this._registerEventListeners()},_registerEventListeners:function(){this.own(this._settingsService.listenToSettingChange(this._RELOAD_EXTERNALLY_MODIFIED_FILES_SETTING_ID,this._onAutomticallyReloadPreferenceChange.bind(this))),this._filesOpenedInEditor(this._backingStore.getFilePath()),window.onblur=function(){this._handleOnBlur()}.bind(this),this.own(t.after(this._focusService,"onFocus",this._handleOnFocus.bind(this),!0)),this.own(t.after(this._focusService,"onBlur",this._handleOnBlur.bind(this),!0)),this.own(t.after(this._backingStore,"onSaveCompleted",this._handleSaveCompleted.bind(this),!0))},_onAutomticallyReloadPreferenceChange:function(e){this._enableAutomaticallyReload=e},_handleSaveCompleted:function(){this._internalSaveCompleted=!0},_filesOpenedInEditor:function(e){""!==e&&(this.own(t.after(this._backingStore,"onLocationUpdated",this._handleOnLocationUpdate.bind(this),!0)),this._watchOpenedFile(e))},_handleOnLocationUpdate:function(e){this._teardownReloadExternallyModifiedFiles(),this._watchOpenedFile(e)},_handleOnFocus:function(){this._onFocus=!0,this._checkAndReloadContent()},_handleOnBlur:function(){this._onFocus=!1},_watchOpenedFile:function(e){this._fullFilePath=e,this._parentPath=d.getParentPath(e),this._reason=a.openFileWatchReason(e),this._fileDataService.watchFolderAndChildren(this._parentPath,this._reason),this._fileModifiedhandle=s.subscribe("store-modified",()=>{this._internalSaveCompleted?this._internalSaveCompleted=!1:(this._pendingReloads||(this._pendingReloads=!0),this._onFocus&&this._checkAndReloadContent())},{path:this._fullFilePath})},_checkAndReloadContent:function(){this._pendingReloads&&(this._reloadFunctionality(this._fullFilePath),this._pendingReloads=!1)},_reloadFunctionality:function(e){var t=e;!0!==this._internalSaveCompleted?this._fileDataService.isFileModified(this._backingStore.file)||t===this._fullFilePath&&(this.promise1=this._calculateChecksumHash(this._codeTextService.getCodeText()),l.readFromFile(d.getParentPath(t),d.nameFromPath(t)).then(e=>{e.exist&&(this.promise2=this._calculateChecksumHash(e.data),Promise.all([this.promise1,this.promise2]).then(function(e){if(e[0]!==e[1])if(!0===this._enableAutomaticallyReload)this._backingStore.load();else{var i=u.displayConfirmDialog(o.dialogTitle,d.nameFromPath(t)+o.dialogMessage,{icon:o.dialogIconType,buttonText:[n.yes,n.no]});i.addButtonEventListener(c.YES,function(){i.close(),this._backingStore.load()}.bind(this)),i.addButtonEventListener(c.NO,(function(){i.close()}))}}.bind(this)))})):this._internalSaveCompleted=!1},_calculateChecksumHash:async function(e){const t=new TextEncoder("utf-8").encode(e),i=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(i)).map(e=>("00"+e.toString(16)).slice(-2)).join("")},_teardownReloadExternallyModifiedFiles:function(){""!==this._fullFilePath&&void 0!==this._fullFilePath&&this._fileDataService.stopWatchingFolderAndChildren(this._parentPath,this._reason),void 0!==this._fileModifiedhandle&&this._fileModifiedhandle.remove()},destroy:function(){this.inherited(arguments),this._teardownReloadExternallyModifiedFiles()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8205)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/reloadExternallyModified",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{dialogTitle:"MATLAB Editor",dialogMessage:"\n\nThis file has been modified outside of MATLAB. Do you want to reload it?",dialogIconType:"warning"}}},function(e,t,i){var n,o;n=[i(203),i(205),i(8207)],o=i.dj.d(n,(function(e,t,i){return e(t,{requires:function(){return{createInstance:["liveeditor.backup","rtc.actionservice","rtc.executionservice","rtc.backingstore"]}},createInstance:function(e,t,n,o){return new i(e,t,n,o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(208),i(207),i(340),i(1644)],o=i.dj.d(n,(function(e,t,i,n,o){return e(i,{_COMPARE_WITH_AUTOSAVE_TEMP_MESSAGE:"The Save and Compare with Autosave action will bring up the plain code diff tool once it is available in the JS Desktop",constructor:function(e,i,r,a){this.own(t.after(e,"onBackupWritten",this._handleBackupWritten.bind(this),!0)),this.own(t.after(e,"onBackupDeleted",this._handleBackupDeleted.bind(this),!0)),this._actionDataService=i,this._actionId=o.getInstance().getRTCActionIdFromGlobalActionId(n.COMPARE_WITH_AUTOSAVE),this._actionDataService.loadActions([{id:this._actionId,enabled:!0,callback:this._compareWithAutosave.bind(this)}]),this._executionService=r,this._backingStore=a,this._backupFilePath=""},_handleBackupWritten:function(e){this._backupFilePath=e.backupFilePath,this._actionDataService.updateAction(this._actionId,{enabled:!0})},_handleBackupDeleted:function(){this._backupFilePath="",this._actionDataService.updateAction(this._actionId,{enabled:!1})},_compareWithAutosave:function(){this._backingStore.save(),this._executionService.executionEval("disp('"+this._COMPARE_WITH_AUTOSAVE_TEMP_MESSAGE+"')")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(8209),i(205)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{isApplicable:function(){return!0},requires:function(){return{isApplicable:[],createInstance:["rtc.filepath","rtc.id","rtc.backingstore.saveloadcontributor","rtc.backingstore.contentcontributor","rtc.actionservice","rtc.settings.service","rtc.statestransfermanager","liveeditor.backingstore.lazyLoadEnabled"]}},createInstance:function(){return new i(...arguments)},priority:function(){return 1e3}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(2582),i(208),i(219),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n],{_EVENT_LOAD_DOCUMENT_CHANNEL_PREFIX:"/liveeditor/events/loadDocument/",_EVENT_LOAD_UNTITLED_DOCUMENT_CHANNEL_PREFIX:"/liveeditor/events/loadUntitledDocument/",_EVENT_SET_CONTENT_REQUEST_CHANNEL_PREFIX:"/liveeditor/events/setContentRequest/",_EVENT_SET_CONTENT_RESPONSE_CHANNEL_PREFIX:"/liveeditor/events/setContentResponse/",_EVENT_FILE_NAME_UPDATED:"/liveeditor/event/FileNameUpdated/",_EVENT_GET_CACHEABLE_CONTENT_REQUEST_CHANNEL_PREFIX:"/liveeditor/events/getCacheableContentRequest/",_EVENT_GET_CACHEABLE_CONTENT_RESPONSE_CHANNEL_PREFIX:"/liveeditor/events/getCacheableContentResponse/",_EVENT_SAVE_DOCUMENT_COMPLETED_CHANNEL_PREFIX:"/liveeditor/events/saveDocumentCompleted/",constructor:function(e,t,i,n,o,r,a,s){this._registerActions(o),this._setupEditorMessageServiceSubscriptions(),this._shouldPreLoad(a)&&s&&this.load()},_shouldPreLoad:function(e){return!e.hasStatesToTransfer()},notifyLoadComplete:function(){this._loadDeferred=new i,this._saveLoadContributor.notifyLoadComplete(),this.onLoadComplete(),this.onLoadCompleted(),this._loadDeferred.resolve(!0)},_isSaveAlreadyOccurring:function(){return!1},_registerActions:function(e){this.own(o.after(e,"onPluginAdded",function(e){this._addActions(e)}.bind(this),!0))},_addActions:function(e){var i=[{id:"save",enabled:!0,key:"ctrl_s",platformKey:{mac:"meta_s"},callback:t.hitch(this,"_saveCallback")}];e.loadActions(i)},_saveCallback:function(){return this.save(),!0},_setupEditorMessageServiceSubscriptions:function(){r.subscribe(this._EVENT_LOAD_DOCUMENT_CHANNEL_PREFIX+this._rtcId,"_handleLoadDocumentEvent",this),r.subscribe(this._EVENT_FILE_NAME_UPDATED+this._rtcId,"_handleFileNameUpdatedResponse",this),r.subscribe(this._EVENT_GET_CACHEABLE_CONTENT_REQUEST_CHANNEL_PREFIX+this._rtcId,"_handleDesktopSaveStarted",this),r.subscribe(this._EVENT_SAVE_DOCUMENT_COMPLETED_CHANNEL_PREFIX+this._rtcId,"_handleNotifySaveCompletedEvent",this),r.subscribe(this._EVENT_LOAD_UNTITLED_DOCUMENT_CHANNEL_PREFIX+this._rtcId,"_handleLoadUntitledDocumentEvent",this),r.subscribe(this._EVENT_SET_CONTENT_REQUEST_CHANNEL_PREFIX+this._rtcId,"_handleSetContentRequest",this)},async _handleSetContentRequest(e){const t=e.data,i={status:!0,exception:null};let n=!1;try{const e={content:t.opcPackage,deferSetContentUntilViewportOpened:t.deferSetContentUntilViewportOpened};await this._backingstoreContentContributor.loadContent(e)}catch(e){i.exception=e.stack,i.status=!1,n=!0}r.publish(this._EVENT_SET_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId,i),n?this._saveLoadContributor.notifyLoadError():this.notifyLoadComplete()},_handleLoadUntitledDocumentEvent:function(){this.notifyLoadComplete()},_handleLoadDocumentEvent:function(e){const t=e.data;this._updateFilePath(t),this.load()},_handleFileNameUpdatedResponse:function(e){const t=e.data;this._updateFilePath(t.fileName)},_handleDesktopSaveStarted:async function(e){this.onBeforeSave();const t=e.data.contentType,i={status:!0,exception:null,contentType:t,mContent:null,mlxContent:null},n=a.isLiveScriptFile(this.getAbsoluteFilePath());try{"m"!==t||n?"m"===t&&n?i.mlxContent=await this._backingstoreContentContributor.getContent():(i.exception="Unsupported Content Type",i.status=!1):i.mContent=this._backingstoreContentContributor.getContent()}catch(e){i.exception=e.stack,i.status=!1,i.content=null}const o=this._EVENT_GET_CACHEABLE_CONTENT_RESPONSE_CHANNEL_PREFIX+this._rtcId;r.publish(o,i)},_handleNotifySaveCompletedEvent:function(e){var t=e.data;null!=t&&""!==t&&this._updateFilePath(t),this.onSaveCompleted(),null!==this._saveDeferred&&void 0!==this._saveDeferred&&this._saveDeferred.resolve(!0)},_teardownEditorMessageServiceSubscriptions:function(){r.unsubscribe(this._EVENT_LOAD_DOCUMENT_CHANNEL_PREFIX+this._rtcId,"_handleLoadDocumentEvent",this),r.unsubscribe(this._EVENT_FILE_NAME_UPDATED+this._rtcId,"_handleFileNameUpdatedResponse",this),r.unsubscribe(this._EVENT_GET_CACHEABLE_CONTENT_REQUEST_CHANNEL_PREFIX+this._rtcId,"_handleDesktopSaveStarted",this),r.unsubscribe(this._EVENT_SAVE_DOCUMENT_COMPLETED_CHANNEL_PREFIX+this._rtcId,"_handleNotifySaveCompletedEvent",this),r.unsubscribe(this._EVENT_LOAD_UNTITLED_DOCUMENT_CHANNEL_PREFIX+this._rtcId,"_handleLoadUntitledDocumentEvent",this),r.unsubscribe(this._EVENT_SET_CONTENT_REQUEST_CHANNEL_PREFIX+this._rtcId,"_handleSetContentRequest",this)},destroy:function(){this._saveDeferred=null,this.inherited(arguments),this._teardownEditorMessageServiceSubscriptions()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(306),i(858),i(233),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{_EVENT_OPEN_AS_LIVE_SCRIPT_CHANNEL_PREFIX:"/mlx/service/openAsLiveScript",constructor:function(e){this._fileDataService=e,r.subscribe(this._EVENT_OPEN_AS_LIVE_SCRIPT_CHANNEL_PREFIX,"_handleOpenAsLiveCode",this)},_handleOpenAsLiveCode:function(e){var t=e.data.path;return this.openAsLiveCode(t)},openAsLiveCode:function(e){const t=o.nameFromPath(e).replace(".m",".mlx"),i=o.locationFromPath(e);let r=o.createEmptyFileObject(i,t);const a=o.pathFromFileInfo(r.fileInfo),s=n.doConvert(e,a);return s.then(e=>{this._fileDataService.openedFilesDataStore.put(dojo.mixin(r,{modifiedDate:null,savePending:!1,id:a})),this._fileDataService.onFileOpen(r)}),s}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(233),i(219)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{_OPEN_TO_LINE_MESSAGE_CHANNEL:"/editor/openToLine",constructor:function(e,t){this._editorService=e,this._fileDataService=t,n.subscribe(this._OPEN_TO_LINE_MESSAGE_CHANNEL,"_openToLine",this)},_openToLine:function(e){if(e.data){let n=e.data.filePath;""===i.getFileNameExtension(n)&&(n=n+"."+i.MATLAB_CODE_FILE_EXTENSION);var t=this._editorService.getAllOpenEditors(n);t&&this._fileDataService.onFileOpen(t.getFile(),!1,e.data.lineNumber,e.data.column)}},destroy:function(){n.unsubscribe(this._OPEN_TO_LINE_MESSAGE_CHANNEL,"_openToLine",this),this._editorService=null,this._fileDataService=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(214),i(233),i(292),i(340)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t(null,{_EDITOR_SAVE_ALL_TAG:"motwToolstrip.editorTab.file.save.newList.saveAll",_LIVE_EDITOR_SAVE_ALL_TAG:"motwToolstrip.liveEditorTab.file.save.newList.saveAll",_EDITOR_SAVE_COPY_AS_TAG:"motwToolstrip.editorTab.file.save.newList.saveCopyAs",constructor:function(e,t,i){this._editorService=e,this._actionService=i,this._fileDataService=t,this._uiBuilder=r.getInstance()},removeOptionsIfApplicable:function(){this._uiBuilder.remove(this._uiBuilder.tagToId(this._EDITOR_SAVE_ALL_TAG)),this._uiBuilder.remove(this._uiBuilder.tagToId(this._LIVE_EDITOR_SAVE_ALL_TAG)),this._uiBuilder.remove(this._uiBuilder.tagToId(this._EDITOR_SAVE_COPY_AS_TAG))},updateSaveAllEnablementState:function(){this._actionService.updateAction(a.SAVEALL,{enabled:!1});const e=this._fileDataService.getAllOpenedFileInfoPaths();for(let t=0;t<e.length;t++){const i=o.pathFromFileInfo(e[t]),n=this._editorService.getAllOpenEditors(i);if(this._fileDataService.isFileModified(n.getFile())||n.getFile().isUntitled){this._actionService.updateAction(a.SAVEALL,{enabled:!0});break}}},destroy:function(){this._uiBuilder=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(285),i(233),i(209),i(251),i(560),i(642)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(null,{constructor:function(e,t){this._editorService=e,this._fileDataService=t,this._untitledBufferCounterMap={}},createLiveCodeBuffer:function(e){return e=e||{},this.createUntitledBuffer({fileExtension:n.LIVE_SCRIPT_EXTENSION,fileContents:e.fileContents||"",ignoreTemplates:!0,isModified:e.isModified||!1})},createUntitledBuffer:function(e){var o=this._getUntitledBufferFileName(e.fileExtension),s=n.createEmptyFileObject([],o);if(s.content=e.fileContents||"",s.fileTemplate=e.fileTemplate||"",a.windowContainsASingleUndockedDocument()&&this._editorService.setUndockUponOpen(s.fileInfo),!e.ignoreTemplates){var l=n.getFileNameNoExtension(o),c={fileName:l,fileNameCaps:l.toUpperCase()};s.content=t.replace(s.content,c)}var d=this._editorService.openFile(s,!0);return i(d,function(t){if(!e.ignoreTemplates){const e=t.widget.editor.getActionDataService().getAction(r.FORMAT_CODE.SMART_INDENT_ALL_ACTION).enabled;t.widget.editor.getActionDataService().updateAction(r.FORMAT_CODE.SMART_INDENT_ALL_ACTION,{enabled:!0}),t.widget.editor.getActionDataService().executeAction(r.FORMAT_CODE.SMART_INDENT_ALL_ACTION,{readFunctionIndentingFormatSetting:!0}),t.widget.editor.getActionDataService().updateAction(r.FORMAT_CODE.SMART_INDENT_ALL_ACTION,{enabled:e})}e.isModified&&this._fileDataService.setFileModified(s)}.bind(this)),d},getUntitledBufferFileName:function(e){let t;switch(e){case s.DOCUMENT_TYPE.PLAIN_CODE_FILE:t=n.MATLAB_CODE_FILE_EXTENSION;break;case s.DOCUMENT_TYPE.LIVE_CODE_FILE:t=n.LIVE_SCRIPT_EXTENSION}if(!t)throw new Error("Invalid documentType: "+e);return this._getUntitledBufferFileName(t)},_getUntitledBufferFileName:function(e){return t.replace("untitled{counter}.{fileExtension}",{counter:this._getCounterValueForBuffer(e),fileExtension:e})},_getCounterValueForBuffer:function(e){return this._untitledBufferCounterMap.hasOwnProperty(e)?(++this._untitledBufferCounterMap[e],String(this._untitledBufferCounterMap[e])):(this._untitledBufferCounterMap[e]=1,"")},destroy:function(){this._untitledBufferCounterMap=null,this._editorService=null,this._fileDataService=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(263)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(){this._enablePluggableBackingstore=!1,this._backingstoreSettingListener=null,this._setupBackingstoreSetting()},isEnabled:function(){return this._enablePluggableBackingstore},isDisabled:function(){return!this.isEnabled()},_setupBackingstoreSetting:function(){var e=["matlab","editor","serialization"];i.getSetting(e,"EnablePluggableBackingStore").then(function(e){this._enablePluggableBackingstore=e.value||!1}.bind(this),(function(){})),this._backingstoreSettingListener=i.listenTo(e,"EnablePluggableBackingStore",function(e){this._enablePluggableBackingstore=e.newValue}.bind(this))},_teardownBackingstoreSetting:function(){this._backingstoreSettingListener&&this._backingstoreSettingListener.remove&&this._backingstoreSettingListener.remove()},destroy:function(){this._teardownBackingstoreSetting()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(484),i(8216),i(8217),i(8218),i(8219)],o=i.dj.d(n,(function(e,t,i,n,o,r){const a=[i,n,o,r];return class extends t{constructor(){super()}static getStatusComponentTags(){return a.reduceRight((e,t)=>(e.push(t.getTag()),e),[])}createWidget(e,t){const i=e.uiBuilder;a.forEach(e=>e.create(i))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1235),i(2595)],o=i.dj.d(n,(function(e,t){return class extends e{static create(e){const i=super.create(e);return t.create(e,i),i}static getTag(){return"editorFileEncodingGroup"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1235),i(2596)],o=i.dj.d(n,(function(e,t){return class extends e{static create(e){const i=super.create(e);return t.create(e,i),i}static getTag(){return"editorLineEndingStyleGroup"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1235),i(2597)],o=i.dj.d(n,(function(e,t){return class extends e{static create(e){const i=super.create(e);return t.create(e,i),i}static getTag(){return"editorEnclosingScopeGroup"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1235),i(2598),i(2599)],o=i.dj.d(n,(function(e,t,i){return class extends e{static create(e){const n=super.create(e);return t.create(e,n),i.create(e,n),n}static getTag(){return"editorCursorPositionGroup"}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(536)],o=i.dj.d(n,(function(e,t){return{tag:"motwToolstrip.figureToolstripTabGroup",type:e.TAB_GROUP,children:[{tag:"motwToolstrip.figureToolstripTab",type:e.TAB,title:t.figure,mnemonic:"E",children:[{tag:"motwToolstrip.figureToolstripTab.annotations",type:e.SECTION,title:t.annotationsSectionTitle,children:[{tag:"motwToolstrip.figureToolstripTab.annotations.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.figureToolstripTab.annotations.gallery",type:e.GALLERY,galleryPopupTag:"motwToolstrip.figureToolstripTab.annotations.galleryPopup",minColumnCount:1,maxColumnCount:12,hideDisabledItems:!0}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(302),i(214),i(224),i(8222)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e){this._connections=[],this._subscriptions=[],this._handles=[],this._versioningControllersForFile={},this._latestForEditor={},this._editorService=e.editorService,this._fileDataService=e.fileDataService,this._actionService=e.actionService,this._versioningService=e.versioningService,this._connections.push(i.connect(this._fileDataService,"onFileClose",this,"_onFileClose")),this._handles.push(n.after(this._editorService,"onActiveEditor",t.hitch(this,"_createAndUpdateActiveController"))),this._handles.push(n.after(this._editorService,"onEditorRenamed",t.hitch(this,"_handleEditorRenamed"),!0)),this._subscriptions.push(i.subscribe("/toolstrip/fileHistoryTabAdded",t.hitch(this,this._createAndUpdateActiveController)))},destroy:function(){o.forEach(this._connections,(function(e){i.disconnect(e)})),o.forEach(this._subscriptions,(function(e){i.unsubscribe(e)})),o.forEach(this._handles,(function(e){e.remove()})),o.forEach(this._versioningControllersForFile,(function(e){e.destroy()})),this._versioningControllersForFile=null},getActiveController:function(){var e=this._editorService.getActiveEditor(window);if(!e)return null;var t=e.getFile().fileInfo,i=this._getFileName(t);return this._versioningControllersForFile[i]},_getFileName:function(e){return e.location+e.name},_onFileClose:function(e){var t=this._getFileName(e);this._removeKeyFromControllerCache(t)},_handleEditorRenamed:function(e,t){this._removeKeyFromControllerCache(e),this._createAndUpdateActiveController()},_removeKeyFromControllerCache:function(e){this._versioningControllersForFile[e]&&(this._versioningControllersForFile[e].destroy(),delete this._versioningControllersForFile[e])},_createAndUpdateActiveController:function(){var e=this._editorService.getActiveEditor(window);if(e){var t=e.getFile(),i=this._getFileName(t.fileInfo),n=this._versioningControllersForFile[i];n||(n=this._createAndInitializeController(t,e),this._versioningControllersForFile[i]=n),this._purgeAndResetActiveState(n),n.updateState()}},_purgeAndResetActiveState:function(e){var t;for(t in this._versioningControllersForFile){if(this._versioningControllersForFile.hasOwnProperty(t))this._versioningControllersForFile[t].setActiveState(!1)}e.setActiveState(!0)},_createAndInitializeController:function(e,t){var n=new r({versioningService:this._versioningService,fileDataService:this._fileDataService,actionService:this._actionService,fileInfo:e?e.fileInfo:{},editor:t});return this._connections.push(i.connect(n,"onVersionChanged",this,"_handleVersionChanged")),n},_handleVersionChanged:function(){this._editorService._updateActions(this._editorService.getActiveEditor(window))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(279),i(214),i(224),i(302),i(203),i(204),i(340),i(299),i(233),i(2606)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return o(null,{constructor:function(e){this.versioningService=e.versioningService,this.fileDataService=e.fileDataService,this.actionService=e.actionService,this.fileInfo=e.fileInfo,this._versionStore=null,this._editor=e.editor,this._latest=null,this._editor._isLatest=!0,this._storeConnections={},this.isActive=!1,this._initializationConnection=this._initializeStore(),this.versioningService&&this.versioningService.loadVersions(this.fileInfo),this._fileDataServiceConnection=n.connect(this.fileDataService,"onFileModificationChange",this,(function(e,t){l.pathFromFileInfo(e)===l.pathFromFileInfo(this.fileInfo)&&t&&this.versioningService.loadVersions(this.fileInfo)}))},updateRestoreAsLatest:function(){var e=this._versionStore.getCurrentItem(),t=e&&void 0!==e.file.content&&!e.isLatest;this.actionService.updateAction(a.RESTORE_AS_LATEST,{enabled:!!t})},destroy:function(){this._initializationConnection&&n.disconnect(this._initializationConnection),Object.keys(this._storeConnections).forEach((function(e){n.disconnect(this._storeConnections[e])}),this),this._fileDataServiceConnection&&n.disconnect(this._fileDataServiceConnection),this._versionsloadedconnection&&n.disconnect(this._versionsloadedconnection)},_initializeStore:function(){var e;return e=n.connect(this.versioningService,"versionsLoaded",this,(function(t,i){this.updateState(),this._areFilesEqual(t,this.fileInfo)&&(n.disconnect(e),this._initializationConnection=null,this._versionStore=i,this.updateState(),this._versionsloadedconnection=n.connect(this.versioningService,"versionsLoaded",this,(function(e,t){this._areFilesEqual(e,this.fileInfo)&&this.updateState()})),this._storeConnections.onStoreFlushed||(this._storeConnections.onStoreFlushed=n.connect(this._versionStore,"onStoreFlushed",this,(function(){this.updateRestoreAsLatest()}))),this._storeConnections.onStoreLoaded||(this._storeConnections.onStoreLoaded=n.connect(this._versionStore,"onFileContentChanged",this,(function(){this.updateRestoreAsLatest()}))))}))},_areFilesEqual:function(e,t){return l.pathFromFileInfo(e)===l.pathFromFileInfo(t)},onVersionContentLoaded:function(e){!e||e.isLatest||this._editor._isLatest||(this._editor.resetEditor(e.file.content,{readOnly:!0,silentUpdate:!0,preserveUndoStack:!0}),this._editor.editor.focus())},onRestoreAsLatest:function(e,t){e&&(this.fileDataService.saveOpenFiles(t),this._editor.resetEditor(e.file.content),this._editor._updateFile(),this._latest=null,this._editor._isLatest=!0,this._editor.editor.focus())},_onVersionSelected:function(e){e&&(e.isLatest?this._latest&&(this._editor.loadFromBackup(this._latest),this._latest=null,this._editor._isLatest=!0,this._editor.editor.focus()):(this._latest||(this._latest=this._editor.getBackup(),this._editor._isLatest=!1),this._setLoading()))},_setLoading:function(){var e=c.getLoadingMessage();this._editor.resetEditor(e,{readOnly:!0,silentUpdate:!0,preserveUndoStack:!0})},_disableButtons:function(){this.actionService.updateAction(a.GET_OLDER_VERSION,{enabled:!1}),this.actionService.updateAction(a.GET_NEWER_VERSION,{enabled:!1}),this.actionService.updateAction(a.RESTORE_AS_LATEST,{enabled:!1}),this.actionService.updateAction(a.VERSION_LIST,{enabled:!1})},updateState:function(){if(this.isActive){if(!(this.fileInfo&&l.isVersioned(this.fileInfo))||!this._versionStore)return this._disableButtons(),void this.actionService.updateAction(a.VERSION_LIST,{items:[]});this.actionService.addActionChangeCallback(a.VERSION_LIST,r.hitch(this,(function(e){if("selectedItem"===e.property){var t=this._versionStore.getCurrentItem();this._versionStore.isItemIdInStore(e.newValue)&&t&&t.id!==e.newValue&&this._versionStore.setCurrentItemById(e.newValue)}}))),this.actionService.addActionCallback(a.VERSION_LIST,r.hitch(this,(function(e){"dropDownPerformed"===e.eventType&&this.actionService.updateAction(a.VERSION_LIST,{items:this._versionStore.getItems()})}))),this._storeConnections.onCurrentItemChanged||(this._storeConnections.onCurrentItemChanged=t.after(this._versionStore,"onCurrentItemChanged",r.hitch(this,"handleCurrentItemChange"),!0)),this.handleCurrentItemChange()}},setActiveState:function(e){this.isActive=e},handleCurrentItemChange:function(){if(this._versionStore){var e=this._versionStore.getCurrentItem();e!==this._currentVersion&&(this._onVersionSelected(e),this.versioningService.getVersionContent(e,r.hitch(this,this.onVersionContentLoaded)),this._currentVersion=e);var t=this._versionStore.isLatestVersion();this.actionService.updateAction(a.GET_OLDER_VERSION,{enabled:!this._versionStore.isOldestVersion()}),this.actionService.updateAction(a.GET_NEWER_VERSION,{enabled:!t}),this.updateRestoreAsLatest(),this.actionService.updateAction(a.VERSION_LIST,{items:this._versionStore.getItems()}),this.actionService.updateAction(a.VERSION_LIST,{enabled:!0,selectedItem:this._versionStore.getCurrentItem().id}),this.onVersionChanged(t)}},onVersionChanged:function(e){},versionDropDownOpen:function(){this._versionStore.refreshDisplayNames()},olderButtonClick:function(){this._versionStore.setToEarlierVersion(),this._editor.editor.focus()},newerButtonClick:function(){this._versionStore.setToLaterVersion(),this._editor.editor.focus()},_saveCallback:function(e){this.versioningService.setActiveVersion(e.file.fileInfo)},restoreButtonClick:function(){this._disableButtons(),this._initializeStore();var e=this._versionStore.getCurrentItem(),t=r.hitch(this,this._saveCallback,e);this.onRestoreAsLatest(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(218)],o=i.dj.d(n,(function(e,t){var i={};return e.setObject("dojo.cldr.supplemental",i),i.getFirstDayOfWeek=function(e){var t={bd:5,mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,iq:6,ir:6,jo:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,sy:6,ye:6,ag:0,ar:0,as:0,au:0,br:0,bs:0,bt:0,bw:0,by:0,bz:0,ca:0,cn:0,co:0,dm:0,do:0,et:0,gt:0,gu:0,hk:0,hn:0,id:0,ie:0,il:0,in:0,jm:0,jp:0,ke:0,kh:0,kr:0,la:0,mh:0,mm:0,mo:0,mt:0,mx:0,mz:0,ni:0,np:0,nz:0,pa:0,pe:0,ph:0,pk:0,pr:0,py:0,sg:0,sv:0,th:0,tn:0,tt:0,tw:0,um:0,us:0,ve:0,vi:0,ws:0,za:0,zw:0}[i._region(e)];return void 0===t?1:t},i._region=function(e){var i=(e=t.normalizeLocale(e)).split("-"),n=i[1];return n?4==n.length&&(n=i[2]):n={aa:"et",ab:"ge",af:"za",ak:"gh",am:"et",ar:"eg",as:"in",av:"ru",ay:"bo",az:"az",ba:"ru",be:"by",bg:"bg",bi:"vu",bm:"ml",bn:"bd",bo:"cn",br:"fr",bs:"ba",ca:"es",ce:"ru",ch:"gu",co:"fr",cr:"ca",cs:"cz",cv:"ru",cy:"gb",da:"dk",de:"de",dv:"mv",dz:"bt",ee:"gh",el:"gr",en:"us",es:"es",et:"ee",eu:"es",fa:"ir",ff:"sn",fi:"fi",fj:"fj",fo:"fo",fr:"fr",fy:"nl",ga:"ie",gd:"gb",gl:"es",gn:"py",gu:"in",gv:"gb",ha:"ng",he:"il",hi:"in",ho:"pg",hr:"hr",ht:"ht",hu:"hu",hy:"am",ia:"fr",id:"id",ig:"ng",ii:"cn",ik:"us",in:"id",is:"is",it:"it",iu:"ca",iw:"il",ja:"jp",ji:"ua",jv:"id",jw:"id",ka:"ge",kg:"cd",ki:"ke",kj:"na",kk:"kz",kl:"gl",km:"kh",kn:"in",ko:"kr",ks:"in",ku:"tr",kv:"ru",kw:"gb",ky:"kg",la:"va",lb:"lu",lg:"ug",li:"nl",ln:"cd",lo:"la",lt:"lt",lu:"cd",lv:"lv",mg:"mg",mh:"mh",mi:"nz",mk:"mk",ml:"in",mn:"mn",mo:"ro",mr:"in",ms:"my",mt:"mt",my:"mm",na:"nr",nb:"no",nd:"zw",ne:"np",ng:"na",nl:"nl",nn:"no",no:"no",nr:"za",nv:"us",ny:"mw",oc:"fr",om:"et",or:"in",os:"ge",pa:"in",pl:"pl",ps:"af",pt:"br",qu:"pe",rm:"ch",rn:"bi",ro:"ro",ru:"ru",rw:"rw",sa:"in",sd:"in",se:"no",sg:"cf",si:"lk",sk:"sk",sl:"si",sm:"ws",sn:"zw",so:"so",sq:"al",sr:"rs",ss:"za",st:"za",su:"id",sv:"se",sw:"tz",ta:"in",te:"in",tg:"tj",th:"th",ti:"et",tk:"tm",tl:"ph",tn:"za",to:"to",tr:"tr",ts:"za",tt:"ru",ty:"pf",ug:"cn",uk:"ua",ur:"pk",uz:"uz",ve:"za",vi:"vn",wa:"be",wo:"sn",xh:"za",yi:"il",yo:"ng",za:"cn",zh:"cn",zu:"za",ace:"id",ady:"ru",agq:"cm",alt:"ru",amo:"ng",asa:"tz",ast:"es",awa:"in",bal:"pk",ban:"id",bas:"cm",bax:"cm",bbc:"id",bem:"zm",bez:"tz",bfq:"in",bft:"pk",bfy:"in",bhb:"in",bho:"in",bik:"ph",bin:"ng",bjj:"in",bku:"ph",bqv:"ci",bra:"in",brx:"in",bss:"cm",btv:"pk",bua:"ru",buc:"yt",bug:"id",bya:"id",byn:"er",cch:"ng",ccp:"in",ceb:"ph",cgg:"ug",chk:"fm",chm:"ru",chp:"ca",chr:"us",cja:"kh",cjm:"vn",ckb:"iq",crk:"ca",csb:"pl",dar:"ru",dav:"ke",den:"ca",dgr:"ca",dje:"ne",doi:"in",dsb:"de",dua:"cm",dyo:"sn",dyu:"bf",ebu:"ke",efi:"ng",ewo:"cm",fan:"gq",fil:"ph",fon:"bj",fur:"it",gaa:"gh",gag:"md",gbm:"in",gcr:"gf",gez:"et",gil:"ki",gon:"in",gor:"id",grt:"in",gsw:"ch",guz:"ke",gwi:"ca",haw:"us",hil:"ph",hne:"in",hnn:"ph",hoc:"in",hoj:"in",ibb:"ng",ilo:"ph",inh:"ru",jgo:"cm",jmc:"tz",kaa:"uz",kab:"dz",kaj:"ng",kam:"ke",kbd:"ru",kcg:"ng",kde:"tz",kdt:"th",kea:"cv",ken:"cm",kfo:"ci",kfr:"in",kha:"in",khb:"cn",khq:"ml",kht:"in",kkj:"cm",kln:"ke",kmb:"ao",koi:"ru",kok:"in",kos:"fm",kpe:"lr",krc:"ru",kri:"sl",krl:"ru",kru:"in",ksb:"tz",ksf:"cm",ksh:"de",kum:"ru",lag:"tz",lah:"pk",lbe:"ru",lcp:"cn",lep:"in",lez:"ru",lif:"np",lis:"cn",lki:"ir",lmn:"in",lol:"cd",lua:"cd",luo:"ke",luy:"ke",lwl:"th",mad:"id",mag:"in",mai:"in",mak:"id",man:"gn",mas:"ke",mdf:"ru",mdh:"ph",mdr:"id",men:"sl",mer:"ke",mfe:"mu",mgh:"mz",mgo:"cm",min:"id",mni:"in",mnk:"gm",mnw:"mm",mos:"bf",mua:"cm",mwr:"in",myv:"ru",nap:"it",naq:"na",nds:"de",new:"np",niu:"nu",nmg:"cm",nnh:"cm",nod:"th",nso:"za",nus:"sd",nym:"tz",nyn:"ug",pag:"ph",pam:"ph",pap:"bq",pau:"pw",pon:"fm",prd:"ir",raj:"in",rcf:"re",rej:"id",rjs:"np",rkt:"in",rof:"tz",rwk:"tz",saf:"gh",sah:"ru",saq:"ke",sas:"id",sat:"in",saz:"in",sbp:"tz",scn:"it",sco:"gb",sdh:"ir",seh:"mz",ses:"ml",shi:"ma",shn:"mm",sid:"et",sma:"se",smj:"se",smn:"fi",sms:"fi",snk:"ml",srn:"sr",srr:"sn",ssy:"er",suk:"tz",sus:"gn",swb:"yt",swc:"cd",syl:"bd",syr:"sy",tbw:"ph",tcy:"in",tdd:"cn",tem:"sl",teo:"ug",tet:"tl",tig:"er",tiv:"ng",tkl:"tk",tmh:"ne",tpi:"pg",trv:"tw",tsg:"ph",tts:"th",tum:"mw",tvl:"tv",twq:"ne",tyv:"ru",tzm:"ma",udm:"ru",uli:"fm",umb:"ao",unr:"in",unx:"in",vai:"lr",vun:"tz",wae:"ch",wal:"et",war:"ph",xog:"ug",xsr:"np",yao:"mz",yap:"fm",yav:"cm",zza:"tr"}[i[0]],n},i.getWeekend=function(e){var t=i._region(e),n={in:0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5}[t],o={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6}[t];return void 0===n&&(n=6),void 0===o&&(o=0),{start:n,end:o}},i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8225),i(8226),i(8227),i(8228),i(8229),i(8230),i(8231),i(54),i(8232),i(8233),i(8234),i(8235),i(8236),i(8237),i(8238),i(8239),i(8240),i(8241),i(8242),i(8243),i(8244),i(8245),i(8246),i(8247),i(8248),i(8249),i(8250),i(8251),i(8252),i(8253),i(8254),i(8255),i(8256),i(8257),i(8258),i(8259),i(8260),i(8261),i(8262),i(8263)],o=i.dj.d(n,(function(e,t){return t(e,"dojo/cldr/nls/gregorian",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"months-format-narrow":["ي","ف","م","أ","و","ن","ل","غ","س","ك","ب","د"],"field-second-relative+0":"الآن","quarters-standAlone-narrow":["١","٢","٣","٤"],"field-weekday":"اليوم","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E، d/‏M/‏y","field-wed-relative+0":"الأربعاء الحالي","field-wed-relative+1":"الأربعاء التالي","dateFormatItem-GyMMMEd":"E، d MMM، y G","dateFormatItem-MMMEd":"E، d MMM",eraNarrow:["ق.م","م"],"dateFormatItem-yMM":"MM‏/y","field-tue-relative+-1":"الثلاثاء الماضي","days-format-short":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"dateFormat-long":"d MMMM، y","field-fri-relative+-1":"الجمعة الماضية","field-wed-relative+-1":"الأربعاء الماضي","months-format-wide":["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"م","dateFormat-full":"EEEE، d MMMM، y","field-thu-relative+-1":"الخميس الماضي","dateFormatItem-Md":"d/‏M","dateFormatItem-yMd":"d‏/M‏/y","field-era":"العصر","dateFormatItem-yM":"M‏/y","months-standAlone-wide":["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],"timeFormat-short":"h:mm a","quarters-format-wide":["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"h:mm:ss a z","field-year":"السنة","dateFormatItem-yMMM":"MMM y","field-hour":"الساعات","dateFormatItem-MMdd":"dd‏/MM","months-format-abbr":["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],"field-sat-relative+0":"السبت الحالي","field-sat-relative+1":"السبت التالي","timeFormat-full":"h:mm:ss a zzzz","field-day-relative+0":"اليوم","field-thu-relative+0":"الخميس الحالي","field-day-relative+1":"غدًا","field-thu-relative+1":"الخميس التالي","dateFormatItem-GyMMMd":"d MMM، y G","field-day-relative+2":"بعد الغد","dateFormatItem-H":"HH","months-standAlone-abbr":["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],"quarters-format-abbr":["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"],"quarters-standAlone-wide":["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"h:mm:ss a","field-sun-relative+0":"الأحد الحالي","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"الأحد التالي","quarters-standAlone-abbr":["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"],eraAbbr:["ق.م","م"],"field-minute":"الدقائق","field-dayperiod":"ص/م","days-standAlone-abbr":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["١","٢","٣","٤"],"field-day-relative+-1":"أمس","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"أول أمس","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E، d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"الجمعة الحالية","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"الجمعة التالية","field-day":"يوم","days-format-wide":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"field-zone":"التوقيت","dateFormatItem-y":"y","months-standAlone-narrow":["ي","ف","م","أ","و","ن","ل","غ","س","ك","ب","د"],"field-year-relative+-1":"السنة الماضية","field-month-relative+-1":"الشهر الماضي","dateFormatItem-hm":"h:mm a","days-format-abbr":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"dateFormatItem-yMMMd":"d MMM، y",eraNames:["قبل الميلاد","ميلادي"],"days-format-narrow":["ح","ن","ث","ر","خ","ج","س"],"days-standAlone-narrow":["ح","ن","ث","ر","خ","ج","س"],"dateFormatItem-MMM":"LLL","field-month":"الشهر","field-tue-relative+0":"الثلاثاء الحالي","field-tue-relative+1":"الثلاثاء التالي","dayPeriods-format-wide-am":"ص","dateFormatItem-MMMMEd":"E، d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"الاثنين الحالي","field-mon-relative+1":"الاثنين التالي","dateFormat-short":"d‏/M‏/y","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"الثواني","field-sat-relative+-1":"السبت الماضي","dateFormatItem-yMMMEd":"E، d MMM، y","field-sun-relative+-1":"الأحد الماضي","field-month-relative+0":"هذا الشهر","field-month-relative+1":"الشهر التالي","dateFormatItem-Ed":"E، d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"الأسبوع","dateFormat-medium":"dd‏/MM‏/y","field-year-relative+0":"هذه السنة","field-week-relative+-1":"الأسبوع الماضي","field-year-relative+1":"السنة التالية","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"الاثنين الماضي","field-week-relative+0":"هذا الأسبوع","field-week-relative+1":"الأسبوع التالي"}},function(e,t,i){e.exports={"dateFormatItem-yM":"MM.y.","field-dayperiod":"pre podne/ popodne","dayPeriods-format-wide-pm":"popodne","field-minute":"minut",eraNames:["Pre nove ere","Nove ere"],"dateFormatItem-MMMEd":"E, dd. MMM","field-day-relative+-1":"juče","field-weekday":"dan u nedelji","dateFormatItem-hms":"hh:mm:ss a","dateFormatItem-yQQQ":"y QQQ","field-day-relative+-2":"prekjuče","days-standAlone-wide":["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],"dateFormatItem-MMM":"LLL","months-standAlone-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"field-era":"era","dateFormatItem-Gy":"y. G","field-hour":"čas","dayPeriods-format-wide-am":"pre podne","quarters-standAlone-abbr":["K1","K2","K3","K4"],"dateFormatItem-y":"y.","timeFormat-full":"HH:mm:ss zzzz","months-standAlone-abbr":["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],"dateFormatItem-Ed":"E, dd.","dateFormatItem-yMMM":"MMM y.","field-day-relative+0":"danas","field-day-relative+1":"sutra",eraAbbr:["p. n. e.","n. e"],"field-day-relative+2":"prekosutra","dateFormatItem-GyMMMd":"dd. MMM y. G","dateFormat-long":"dd. MMMM y.","timeFormat-medium":"HH:mm:ss","field-zone":"zona","dateFormatItem-Hm":"HH:mm","dateFormat-medium":"dd.MM.y.","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-yMd":"dd.MM.y.","quarters-standAlone-wide":["Prvi kvartal","Drugi kvartal","Treći kvartal","Četvrti kvartal"],"dateFormatItem-ms":"mm:ss","field-year":"godina","field-week":"nedelja","months-standAlone-wide":["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"],"dateFormatItem-MMMd":"dd. MMM","timeFormat-long":"HH:mm:ss z","months-format-abbr":["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],"dateFormatItem-yQQQQ":"y QQQQ","timeFormat-short":"HH:mm","field-month":"mesec","quarters-format-abbr":["K1","K2","K3","K4"],"days-format-abbr":["ned","pon","uto","sri","čet","pet","sub"],"dateFormatItem-M":"L","dateFormatItem-yMMMd":"dd. MMM y.","field-second":"sekund","dateFormatItem-GyMMMEd":"E, dd. MMM y. G","dateFormatItem-GyMMM":"MMM y. G","field-day":"dan","dateFormatItem-MEd":"E, dd.MM.","months-format-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"days-standAlone-short":["ned","pon","uto","sri","čet","pet","sub"],"dateFormatItem-hm":"hh:mm a","days-standAlone-abbr":["ned","pon","uto","sri","čet","pet","sub"],"dateFormat-short":"dd.MM.yy.","dateFormatItem-yMMMEd":"E, dd. MMM y.","dateFormat-full":"EEEE, dd. MMMM y.","dateFormatItem-Md":"dd.MM.","dateFormatItem-yMEd":"E, dd.MM.y.","months-format-wide":["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"],"days-format-short":["ned","pon","uto","sri","čet","pet","sub"],"dateFormatItem-d":"d","quarters-format-wide":["Prvi kvartal","Drugi kvartal","Treći kvartal","Četvrti kvartal"],"days-format-wide":["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],eraNarrow:["p. n. e.","n. e"]}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["dg.","dl.","dm.","dc.","dj.","dv.","ds."],"months-format-narrow":["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],"field-second-relative+0":"ara","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"dia de la setmana","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, d/M/y","field-wed-relative+0":"aquest dimecres","dateFormatItem-GyMMMEd":"E, d MMM, y G","dateFormatItem-MMMEd":"E d MMM","field-wed-relative+1":"dimecres que ve",eraNarrow:["aC","dC"],"field-tue-relative+-1":"dimarts passat","days-format-short":["dg.","dl.","dt.","dc.","dj.","dv.","ds."],"dateFormat-long":"d MMMM 'de' y","field-fri-relative+-1":"divendres passat","field-wed-relative+-1":"dimecres passat","months-format-wide":["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"p. m.","dateFormat-full":"EEEE, d MMMM 'de' y","field-thu-relative+-1":"dijous passat","dateFormatItem-Md":"d/M","dateFormatItem-GyMMMM":"LLLL 'de' y G","dateFormatItem-yMd":"d/M/y","dateFormatItem-yM":"M/y","field-era":"era","months-standAlone-wide":["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],"timeFormat-short":"H:mm","quarters-format-wide":["1r trimestre","2n trimestre","3r trimestre","4t trimestre"],"timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"LLL y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"any","field-hour":"hora","months-format-abbr":["gen.","feb.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],"field-sat-relative+0":"aquest dissabte","field-sat-relative+1":"dissabte que ve","timeFormat-full":"H:mm:ss zzzz","field-day-relative+0":"avui","field-day-relative+1":"demà","field-thu-relative+0":"aquest dijous","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"demà passat","field-thu-relative+1":"dijous que ve","dateFormatItem-H":"H","months-standAlone-abbr":["gen.","feb.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],"quarters-format-abbr":["1T","2T","3T","4T"],"quarters-standAlone-wide":["1r trimestre","2n trimestre","3r trimestre","4t trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"aquest diumenge","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["1T","2T","3T","4T"],"field-sun-relative+1":"diumenge que ve",eraAbbr:["aC","dC"],"field-minute":"minut","field-dayperiod":"a. m./p. m.","days-standAlone-abbr":["dg.","dl.","dt.","dc.","dj.","dv.","ds."],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"ahir","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"a.m.","field-day-relative+-2":"abans-d'ahir","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"aquest divendres","dateFormatItem-yMMMM":"LLLL 'de' y","field-fri-relative+1":"divendres que ve","field-day":"dia","days-format-wide":["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],"field-zone":"zona","dateFormatItem-y":"y","months-standAlone-narrow":["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],"field-year-relative+-1":"l'any passat","field-month-relative+-1":"el mes passat","dateFormatItem-hm":"h:mm a","days-format-abbr":["dg.","dl.","dt.","dc.","dj.","dv.","ds."],"dateFormatItem-yMMMd":"d MMM y",eraNames:["abans de Crist","a. de la n. e.","després de Crist","de la n. e."],"days-format-narrow":["dg","dl","dt","dc","dj","dv","ds"],"days-standAlone-narrow":["dg","dl","dt","dc","dj","dv","ds"],"dateFormatItem-MMM":"LLL","field-month":"mes","field-tue-relative+0":"aquest dimarts","field-tue-relative+1":"dimarts que ve","dayPeriods-format-wide-am":"a. m.","dateFormatItem-MMMMEd":"E d MMMM","dateFormatItem-EHm":"E H:mm","field-mon-relative+0":"aquest dilluns","field-mon-relative+1":"dilluns que ve","dateFormat-short":"d/M/yy","dateFormatItem-EHms":"E H:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"segon","field-sat-relative+-1":"dissabte passat","dateFormatItem-yMMMEd":"E, d MMM, y","field-sun-relative+-1":"diumenge passat","field-month-relative+0":"aquest mes","field-month-relative+1":"el mes que ve","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"setmana","dateFormat-medium":"dd/MM/y","field-year-relative+0":"enguany","field-week-relative+-1":"la setmana passada","field-year-relative+1":"l'any que ve","dayPeriods-format-narrow-pm":"p.m.","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"LLL y G","field-mon-relative+-1":"dilluns passat","field-week-relative+0":"aquesta setmana","field-week-relative+1":"la setmana que ve"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["ne","po","út","st","čt","pá","so"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"nyní","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Den v týdnu","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d. M. y","field-wed-relative+0":"tuto středu","dateFormatItem-GyMMMEd":"E d. M. y G","dateFormatItem-MMMEd":"E d. M.","field-wed-relative+1":"příští středu",eraNarrow:["př.n.l.","n.l."],"field-tue-relative+-1":"minulé úterý","days-format-short":["ne","po","út","st","čt","pá","so"],"dateFormat-long":"d. MMMM y","field-fri-relative+-1":"minulý pátek","field-wed-relative+-1":"minulou středu","months-format-wide":["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"],"dateTimeFormat-medium":"{1} {0}","dateFormatItem-yMMMMd":"d. MMMM y","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE d. MMMM y","field-thu-relative+-1":"minulý čtvrtek","dateFormatItem-Md":"d. M.","dateFormatItem-yMd":"d. M. y","dateFormatItem-yM":"M/y","field-era":"Letopočet","months-standAlone-wide":["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],"timeFormat-short":"H:mm","quarters-format-wide":["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],"timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"LLLL y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"Rok","field-hour":"Hodina","months-format-abbr":["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],"field-sat-relative+0":"tuto sobotu","field-sat-relative+1":"příští sobotu","timeFormat-full":"H:mm:ss zzzz","field-day-relative+0":"dnes","field-day-relative+1":"zítra","field-thu-relative+0":"tento čtvrtek","dateFormatItem-GyMMMd":"d. M. y G","field-day-relative+2":"pozítří","field-thu-relative+1":"příští čtvrtek","dateFormatItem-H":"H","months-standAlone-abbr":["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],"dateFormatItem-MMMMd":"d. MMMM","dateFormatItem-GyMMMMd":"d. MMMM y G","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"tuto neděli","dateFormatItem-Hm":"H:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"field-sun-relative+1":"příští neděli",eraAbbr:["př. n. l.","n. l."],"field-minute":"Minuta","field-dayperiod":"AM/PM","days-standAlone-abbr":["ne","po","út","st","čt","pá","so"],"dateFormatItem-d":"d.","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"včera","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM","field-day-relative+-2":"předevčírem","dateFormatItem-MMMd":"d. M.","dateFormatItem-MEd":"E d. M.","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"tento pátek","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"příští pátek","field-day":"Den","days-format-wide":["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],"field-zone":"Časové pásmo","dateFormatItem-y":"y","months-standAlone-narrow":["l","ú","b","d","k","č","č","s","z","ř","l","p"],"field-year-relative+-1":"minulý rok","field-month-relative+-1":"minulý měsíc","dateFormatItem-hm":"h:mm a","days-format-abbr":["ne","po","út","st","čt","pá","so"],eraNames:["př. n. l.","n. l."],"dateFormatItem-yMMMd":"d. M. y","days-format-narrow":["N","P","Ú","S","Č","P","S"],"days-standAlone-narrow":["N","P","Ú","S","Č","P","S"],"dateFormatItem-MMM":"LLL","field-month":"Měsíc","field-tue-relative+0":"toto úterý","field-tue-relative+1":"příští úterý","dayPeriods-format-wide-am":"AM","dateFormatItem-MMMMEd":"E d. MMMM","dateFormatItem-EHm":"E H:mm","field-mon-relative+0":"toto pondělí","field-mon-relative+1":"příští pondělí","dateFormat-short":"dd.MM.yy","dateFormatItem-EHms":"E H:mm:ss","dateFormatItem-yMMMMEd":"E d. MMMM y","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"Sekunda","field-sat-relative+-1":"minulou sobotu","dateFormatItem-yMMMEd":"E d. M. y","field-sun-relative+-1":"minulou neděli","field-month-relative+0":"tento měsíc","field-month-relative+1":"příští měsíc","dateFormatItem-Ed":"E d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Týden","dateFormat-medium":"d. M. y","field-year-relative+0":"tento rok","field-week-relative+-1":"minulý týden","field-year-relative+1":"příští rok","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"LLLL y G","dateFormatItem-GyMMMMEd":"E d. MMMM y G","field-mon-relative+-1":"minulé pondělí","field-week-relative+0":"tento týden","field-week-relative+1":"příští týden"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h.mm a","days-standAlone-short":["sø","ma","ti","on","to","fr","lø"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"nu","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Ugedag","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d/M/y","field-wed-relative+0":"denne onsdag","dateFormatItem-GyMMMEd":"E d. MMM y G","dateFormatItem-MMMEd":"E d. MMM","field-wed-relative+1":"næste onsdag",eraNarrow:["fKr","fvt","eKr","vt"],"dateFormatItem-yMM":"MM/y","field-tue-relative+-1":"sidste tirsdag","days-format-short":["sø","ma","ti","on","to","fr","lø"],"dateFormat-long":"d. MMM y","field-fri-relative+-1":"sidste fredag","field-wed-relative+-1":"sidste onsdag","months-format-wide":["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE 'den' d. MMMM y","field-thu-relative+-1":"sidste torsdag","dateFormatItem-Md":"d/M","dayPeriods-format-wide-noon":"middag","dateFormatItem-yMd":"d/M/y","dateFormatItem-yM":"M/y","field-era":"Æra","months-standAlone-wide":["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],"timeFormat-short":"HH.mm","quarters-format-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"timeFormat-long":"HH.mm.ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"År","dateFormatItem-MMdd":"dd/MM","field-hour":"Time","months-format-abbr":["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],"field-sat-relative+0":"denne lørdag","field-sat-relative+1":"næste lørdag","timeFormat-full":"HH.mm.ss zzzz","field-day-relative+0":"i dag","field-day-relative+1":"i morgen","field-thu-relative+0":"denne torsdag","dateFormatItem-GyMMMd":"d. MMM y G","field-day-relative+2":"i overmorgen","field-thu-relative+1":"næste torsdag","dateFormatItem-H":"HH","months-standAlone-abbr":["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],"quarters-format-abbr":["K1","K2","K3","K4"],"quarters-standAlone-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"M","days-standAlone-wide":["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],"dayPeriods-format-abbr-noon":"middag","timeFormat-medium":"HH.mm.ss","field-sun-relative+0":"denne søndag","dateFormatItem-Hm":"HH.mm","quarters-standAlone-abbr":["K1","K2","K3","K4"],"field-sun-relative+1":"næste søndag",eraAbbr:["f.Kr.","e.Kr."],"field-minute":"Minut","field-dayperiod":"AM/PM","days-standAlone-abbr":["søn","man","tir","ons","tor","fre","lør"],"dateFormatItem-d":"d.","dateFormatItem-ms":"mm.ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"i går","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} 'kl.' {0}","field-day-relative+-2":"i forgårs","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} 'kl.' {0}","field-fri-relative+0":"denne fredag","field-fri-relative+1":"næste fredag","field-day":"Dag","days-format-wide":["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],"field-zone":"Tidszone","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"sidste år","field-month-relative+-1":"sidste måned","dateFormatItem-hm":"h.mm a","days-format-abbr":["søn.","man.","tir.","ons.","tor.","fre.","lør."],eraNames:["f.Kr.","før vesterlandsk tidsregning","e.Kr.","vesterlandsk tidsregning"],"dateFormatItem-yMMMd":"d. MMM y","days-format-narrow":["S","M","T","O","T","F","L"],"days-standAlone-narrow":["S","M","T","O","T","F","L"],"dateFormatItem-MMM":"MMM","field-month":"Måned","field-tue-relative+0":"denne tirsdag","field-tue-relative+1":"næste tirsdag","dayPeriods-format-wide-am":"AM","dateFormatItem-MMMMEd":"E d. MMMM","dateFormatItem-EHm":"E HH.mm","field-mon-relative+0":"denne mandag","field-mon-relative+1":"næste mandag","dateFormat-short":"dd/MM/yy","dateFormatItem-EHms":"E HH.mm.ss","dateFormatItem-Ehms":"E h.mm.ss a","dayPeriods-format-narrow-noon":"middag","field-second":"Sekund","field-sat-relative+-1":"sidste lørdag","dateFormatItem-yMMMEd":"E d. MMM y","field-sun-relative+-1":"sidste søndag","field-month-relative+0":"denne måned","field-month-relative+1":"næste måned","dateFormatItem-Ed":"E 'd'. d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Uge","dateFormat-medium":"dd/MM/y","field-year-relative+0":"i år","field-week-relative+-1":"sidste uge","field-year-relative+1":"næste år","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH.mm.ss","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"sidste mandag","field-week-relative+0":"denne uge","field-week-relative+1":"næste uge"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"jetzt","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Wochentag","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, d.M.y","field-wed-relative+0":"Diesen Mittwoch","dateFormatItem-GyMMMEd":"E, d. MMM y G","dateFormatItem-MMMEd":"E, d. MMM","field-wed-relative+1":"Nächsten Mittwoch",eraNarrow:["v. Chr.","n. Chr."],"dateFormatItem-yMM":"MM.y","dayPeriods-format-wide-earlyMorning":"morgens","field-tue-relative+-1":"Letzten Dienstag","dayPeriods-format-wide-morning":"vormittags","days-format-short":["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],"dateFormat-long":"d. MMMM y","field-fri-relative+-1":"Letzten Freitag","field-wed-relative+-1":"Letzten Mittwoch","months-format-wide":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"dayPeriods-format-wide-evening":"abends","dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"nachm.","dateFormat-full":"EEEE, d. MMMM y","field-thu-relative+-1":"Letzten Donnerstag","dateFormatItem-Md":"d.M.","dayPeriods-format-wide-noon":"Mittag","dateFormatItem-yMd":"d.M.y","dateFormatItem-yM":"M.y","field-era":"Epoche","months-standAlone-wide":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"timeFormat-short":"HH:mm","quarters-format-wide":["1. Quartal","2. Quartal","3. Quartal","4. Quartal"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"Jahr","dateFormatItem-MMdd":"dd.MM.","field-hour":"Stunde","months-format-abbr":["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],"field-sat-relative+0":"Diesen Samstag","field-sat-relative+1":"Nächsten Samstag","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"Heute","field-day-relative+1":"Morgen","field-thu-relative+0":"Diesen Donnerstag","dateFormatItem-GyMMMd":"d. MMM y G","field-day-relative+2":"Übermorgen","field-thu-relative+1":"Nächsten Donnerstag","dateFormatItem-H":"HH 'Uhr'","months-standAlone-abbr":["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["1. Quartal","2. Quartal","3. Quartal","4. Quartal"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"timeFormat-medium":"HH:mm:ss","dateFormatItem-yMMdd":"dd.MM.y","field-sun-relative+0":"Diesen Sonntag","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"field-sun-relative+1":"Nächsten Sonntag",eraAbbr:["v. Chr.","n. Chr."],"field-minute":"Minute","field-dayperiod":"Tageshälfte","days-standAlone-abbr":["So","Mo","Di","Mi","Do","Fr","Sa"],"dayPeriods-format-wide-night":"nachts","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Gestern","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"Vorgestern","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E, d.M.","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"Diesen Freitag","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"Nächsten Freitag","field-day":"Tag","days-format-wide":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"field-zone":"Zeitzone","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"Letztes Jahr","field-month-relative+-1":"Letzter Monat","dateFormatItem-hm":"h:mm a","days-format-abbr":["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],eraNames:["v. Chr.","n. Chr."],"dateFormatItem-yMMMd":"d. MMM y","days-format-narrow":["S","M","D","M","D","F","S"],"days-standAlone-narrow":["S","M","D","M","D","F","S"],"dateFormatItem-MMM":"LLL","field-month":"Monat","field-tue-relative+0":"Diesen Dienstag","field-tue-relative+1":"Nächsten Dienstag","dayPeriods-format-wide-am":"vorm.","dateFormatItem-MMMMEd":"E, d. MMMM","dateFormatItem-EHm":"E, HH:mm","field-mon-relative+0":"Diesen Montag","field-mon-relative+1":"Nächsten Montag","dateFormat-short":"dd.MM.yy","dateFormatItem-MMd":"d.MM.","dayPeriods-format-wide-afternoon":"nachmittags","dateFormatItem-EHms":"E, HH:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"Sekunde","field-sat-relative+-1":"Letzten Samstag","dateFormatItem-yMMMEd":"E, d. MMM y","field-sun-relative+-1":"Letzten Sonntag","field-month-relative+0":"Dieser Monat","field-month-relative+1":"Nächster Monat","dateFormatItem-Ed":"E, d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Woche","dateFormat-medium":"dd.MM.y","field-year-relative+0":"Dieses Jahr","field-week-relative+-1":"Letzte Woche","field-year-relative+1":"Nächstes Jahr","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"Letzten Montag","field-week-relative+0":"Diese Woche","field-week-relative+1":"Nächste Woche"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],"months-format-narrow":["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],"field-second-relative+0":"τώρα","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Ημέρα εβδομάδας","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"E, d/M/y","field-wed-relative+0":"αυτήν την Τετάρτη","field-wed-relative+1":"επόμενη Τετάρτη","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-MMMEd":"E, d MMM",eraNarrow:["π.Χ.","μ.Χ."],"field-tue-relative+-1":"προηγούμενη Τρίτη","days-format-short":["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"προηγούμενη Παρασκευή","field-wed-relative+-1":"προηγούμενη Τετάρτη","months-format-wide":["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"],"dateTimeFormat-medium":"{1} - {0}","dayPeriods-format-wide-pm":"μ.μ.","dateFormat-full":"EEEE, d MMMM y","field-thu-relative+-1":"επόμενη Πέμπτη","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d/M/y","field-era":"Περίοδος","dateFormatItem-yM":"M/y","months-standAlone-wide":["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],"timeFormat-short":"h:mm a","quarters-format-wide":["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"],"dateFormatItem-yQQQQ":"y QQQQ","timeFormat-long":"h:mm:ss a z","field-year":"Έτος","dateFormatItem-yMMM":"LLL y","field-hour":"Ώρα","months-format-abbr":["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],"field-sat-relative+0":"αυτό το Σάββατο","field-sat-relative+1":"επόμενο Σάββατο","timeFormat-full":"h:mm:ss a zzzz","field-day-relative+0":"σήμερα","field-thu-relative+0":"αυτήν την Πέμπτη","field-day-relative+1":"αύριο","field-thu-relative+1":"επόμενη Πέμπτη","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"μεθαύριο","dateFormatItem-H":"HH","months-standAlone-abbr":["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],"quarters-format-abbr":["Τ1","Τ2","Τ3","Τ4"],"quarters-standAlone-wide":["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"],"dateFormatItem-Gy":"y G","dateFormatItem-HHmmss":"HH:mm:ss","dateFormatItem-M":"L","days-standAlone-wide":["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"h:mm:ss a","field-sun-relative+0":"αυτήν την Κυριακή","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"επόμενη Κυριακή","quarters-standAlone-abbr":["Τ1","Τ2","Τ3","Τ4"],eraAbbr:["π.Χ.","μ.Χ."],"field-minute":"Λεπτό","field-dayperiod":"π.μ./μ.μ.","days-standAlone-abbr":["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"χθες","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} - {0}","field-day-relative+-2":"προχθές","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E, d/M","dateTimeFormat-full":"{1} - {0}","field-fri-relative+0":"αυτήν την Παρασκευή","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"επόμενη Παρασκευή","field-day":"Ημέρα","days-format-wide":["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],"field-zone":"Ζώνη","dateFormatItem-y":"y","months-standAlone-narrow":["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],"field-year-relative+-1":"προηγούμενο έτος","field-month-relative+-1":"προηγούμενος μήνας","dateFormatItem-hm":"h:mm a","days-format-abbr":["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],"dateFormatItem-yMMMd":"d MMM y",eraNames:["π.Χ.","μ.Χ."],"days-format-narrow":["Κ","Δ","Τ","Τ","Π","Π","Σ"],"days-standAlone-narrow":["Κ","Δ","Τ","Τ","Π","Π","Σ"],"dateFormatItem-MMM":"LLL","field-month":"Μήνας","dateFormatItem-HHmm":"HH:mm","field-tue-relative+0":"αυτήν την Τρίτη","field-tue-relative+1":"επόμενη Τρίτη","dayPeriods-format-wide-am":"π.μ.","dateFormatItem-MMMMEd":"E, d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"αυτήν τη Δευτέρα","field-mon-relative+1":"επόμενη Δευτέρα","dateFormat-short":"d/M/yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"Δευτερόλεπτο","field-sat-relative+-1":"προηγούμενο Σάββατο","dateFormatItem-yMMMEd":"E, d MMM y","field-sun-relative+-1":"προηγούμενη Κυριακή","field-month-relative+0":"τρέχων μήνας","field-month-relative+1":"επόμενος μήνας","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Εβδομάδα","dateFormat-medium":"d MMM y","field-year-relative+0":"φέτος","field-week-relative+-1":"προηγούμενη εβδομάδα","field-year-relative+1":"επόμενο έτος","dateTimeFormat-short":"{1} - {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"LLL y G","field-mon-relative+-1":"προηγούμενη Δευτέρα","field-week-relative+0":"αυτήν την εβδομάδα","field-week-relative+1":"επόμενη εβδομάδα"}},function(e,t,i){e.exports={"dateFormatItem-yMd":"d/M/y","dateFormat-medium":"d MMM y","field-year-relative+-1":"Last year","dateFormatItem-yMEd":"E, d/M/y","field-month-relative+-1":"Last month","field-day-relative+-1":"Yesterday","timeFormat-full":"h:mm:ss a zzzz","field-week-relative+0":"This week","field-week-relative+1":"Next week","timeFormat-medium":"h:mm:ss a","field-week-relative+-1":"Last week","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","dateFormat-long":"d MMMM y","field-month-relative+0":"This month","field-month-relative+1":"Next month","dateFormat-short":"d/MM/y","field-year-relative+0":"This year","field-year-relative+1":"Next year","timeFormat-short":"h:mm a","timeFormat-long":"h:mm:ss a z","dateFormat-full":"EEEE, d MMMM y"}},function(e,t,i){e.exports={"dateFormatItem-yMEd":"E, y-MM-dd","dateFormatItem-yMd":"y-MM-dd","dateFormat-short":"y-MM-dd","dateFormatItem-MEd":"E, MM-dd","dateFormatItem-yM":"y-MM","dateFormatItem-Md":"MM-dd"}},function(e,t,i){e.exports={"dateFormat-medium":"d MMM y","dateFormatItem-yMd":"dd/MM/y","dateFormatItem-MMMEd":"E d MMM","dateFormatItem-MEd":"E dd/MM","dateFormatItem-MMdd":"dd/MM","dateFormatItem-yMEd":"E, dd/MM/y","dateTimeFormat-medium":"{1} {0}","dateFormatItem-GyMMMd":"d MMM y G","timeFormat-full":"HH:mm:ss zzzz","dateFormatItem-yMMMd":"d MMM y","dateFormatItem-Md":"dd/MM","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-M":"LL","dayPeriods-format-wide-pm":"pm","dateFormatItem-MMMMd":"d MMMM","dateTimeFormat-long":"{1} {0}","dayPeriods-format-wide-am":"am","timeFormat-medium":"HH:mm:ss","dateFormat-long":"d MMMM y","field-dayperiod":"am/pm","dateFormat-short":"dd/MM/y","dateFormatItem-yMMMEd":"E, d MMM y","dateTimeFormat-short":"{1} {0}","dateFormatItem-yMMMM":"MMMM y","dateTimeFormat-full":"{1} {0}","dateFormatItem-yM":"MM/y","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z","dateFormat-full":"EEEE, d MMMM y","dateFormatItem-MMMd":"d MMM","dateFormatItem-Ed":"E d"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E, h:mm a","days-standAlone-short":["DO","LU","MA","MI","JU","VI","SA"],"months-format-narrow":["E","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"ahora","quarters-standAlone-narrow":["1T","2T","3T","4T"],"field-weekday":"día de la semana","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"EEE, d/M/y","field-wed-relative+0":"este miércoles","field-wed-relative+1":"el próximo miércoles","dateFormatItem-GyMMMEd":"E, d 'de' MMMM 'de' y G","dateFormatItem-MMMEd":"E d 'de' MMM",eraNarrow:["a. C.","d. C."],"dateFormatItem-yMM":"M/y","field-tue-relative+-1":"el martes pasado","dateFormatItem-MMMdd":"dd-MMM","days-format-short":["DO","LU","MA","MI","JU","VI","SA"],"dateFormat-long":"d 'de' MMMM 'de' y","field-fri-relative+-1":"el viernes pasado","field-wed-relative+-1":"el miércoles pasado","months-format-wide":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"p. m.","dateFormat-full":"EEEE, d 'de' MMMM 'de' y","field-thu-relative+-1":"el jueves pasado","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d/M/y","field-era":"era","dateFormatItem-yM":"M/y","months-standAlone-wide":["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],"timeFormat-short":"H:mm","quarters-format-wide":["1.er trimestre","2.º trimestre","3.er trimestre","4.º trimestre"],"dateFormatItem-yQQQQ":"QQQQ 'de' y","timeFormat-long":"H:mm:ss z","field-year":"año","dateFormatItem-yMMM":"MMM 'de' y","field-hour":"hora","dateFormatItem-MMdd":"d/M","months-format-abbr":["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],"field-sat-relative+0":"este sábado","field-sat-relative+1":"el próximo sábado","timeFormat-full":"H:mm:ss (zzzz)","field-day-relative+0":"hoy","field-thu-relative+0":"este jueves","field-day-relative+1":"mañana","field-thu-relative+1":"el próximo jueves","dateFormatItem-GyMMMd":"d MMM 'de' y G","field-day-relative+2":"pasado mañana","dateFormatItem-H":"H","months-standAlone-abbr":["Ene.","Feb.","Mar.","Abr.","May.","Jun.","Jul.","Ago.","Sept.","Oct.","Nov.","Dic."],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["1.er trimestre","2.º trimestre","3.er trimestre","4.º trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],"dateFormatItem-MMMMd":"d 'de' MMMM","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"este domingo","dateFormatItem-Hm":"H:mm","field-sun-relative+1":"el próximo domingo","quarters-standAlone-abbr":["T1","T2","T3","T4"],eraAbbr:["a. C.","d. C."],"field-minute":"minuto","field-dayperiod":"periodo del día","days-standAlone-abbr":["Dom.","Lun.","Mar.","Mié.","Jue.","Vie.","Sáb."],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1T","2T","3T","4T"],"field-day-relative+-1":"ayer","dateFormatItem-h":"h a","dateTimeFormat-long":"{1}, {0}","dayPeriods-format-narrow-am":"a.m.","field-day-relative+-2":"antes de ayer","dateFormatItem-MMMd":"d 'de' MMM","dateFormatItem-MEd":"E, d/M","dateTimeFormat-full":"{1}, {0}","field-fri-relative+0":"este viernes","dateFormatItem-yMMMM":"MMMM 'de' y","field-fri-relative+1":"el próximo viernes","field-day":"día","days-format-wide":["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],"field-zone":"zona horaria","dateFormatItem-y":"y","months-standAlone-narrow":["E","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"el año pasado","field-month-relative+-1":"el mes pasado","dateFormatItem-hm":"h:mm a","days-format-abbr":["dom.","lun.","mar.","mié.","jue.","vie.","sáb."],eraNames:["antes de Cristo","anno Dómini"],"dateFormatItem-yMMMd":"d 'de' MMM 'de' y","days-format-narrow":["D","L","M","X","J","V","S"],"days-standAlone-narrow":["D","L","M","X","J","V","S"],"dateFormatItem-MMM":"LLL","field-month":"mes","field-tue-relative+0":"este martes","field-tue-relative+1":"el próximo martes","dayPeriods-format-wide-am":"a. m.","dateFormatItem-EHm":"E, H:mm","field-mon-relative+0":"este lunes","field-mon-relative+1":"el próximo lunes","dateFormat-short":"d/M/yy","dateFormatItem-MMd":"d/M","dateFormatItem-EHms":"E, H:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"segundo","field-sat-relative+-1":"el sábado pasado","dateFormatItem-yMMMEd":"EEE, d 'de' MMMM 'de' y","field-sun-relative+-1":"el domingo pasado","field-month-relative+0":"este mes","field-month-relative+1":"el próximo mes","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"semana","dateFormat-medium":"d/M/y","field-year-relative+0":"este año","field-week-relative+-1":"la semana pasada","field-year-relative+1":"el próximo año","dayPeriods-format-narrow-pm":"p.m.","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM 'de' y G","field-mon-relative+-1":"el lunes pasado","field-week-relative+0":"esta semana","field-week-relative+1":"la próxima semana"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h.mm a","days-standAlone-short":["su","ma","ti","ke","to","pe","la"],"months-format-narrow":["T","H","M","H","T","K","H","E","S","L","M","J"],"field-second-relative+0":"nyt","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"viikonpäivä","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d.M.y","field-wed-relative+0":"tänä keskiviikkona","dateFormatItem-GyMMMEd":"E d. MMM y G","dateFormatItem-MMMEd":"ccc d. MMM","field-wed-relative+1":"ensi keskiviikkona",eraNarrow:["eK","jK"],"dateFormatItem-yMM":"M.y","field-tue-relative+-1":"viime tiistaina","days-format-short":["su","ma","ti","ke","to","pe","la"],"dateFormat-long":"d. MMMM y","field-fri-relative+-1":"viime perjantaina","field-wed-relative+-1":"viime keskiviikkona","months-format-wide":["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"ip.","dateFormat-full":"cccc d. MMMM y","field-thu-relative+-1":"viime torstaina","dateFormatItem-Md":"d.M.","dayPeriods-standAlone-wide-pm":"ip.","dayPeriods-format-abbr-am":"ap.","dateFormatItem-yMd":"d.M.y","dateFormatItem-yM":"L.y","field-era":"aikakausi","months-standAlone-wide":["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],"timeFormat-short":"H.mm","quarters-format-wide":["1. neljännes","2. neljännes","3. neljännes","4. neljännes"],"timeFormat-long":"H.mm.ss z","dateFormatItem-yMMM":"LLL y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"vuosi","field-hour":"tunti","months-format-abbr":["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"],"field-sat-relative+0":"tänä lauantaina","field-sat-relative+1":"ensi lauantaina","timeFormat-full":"H.mm.ss zzzz","field-day-relative+0":"tänään","field-day-relative+1":"huomenna","field-thu-relative+0":"tänä torstaina","dateFormatItem-GyMMMd":"d. MMM y G","field-day-relative+2":"ylihuomenna","field-thu-relative+1":"ensi torstaina","dateFormatItem-H":"H","months-standAlone-abbr":["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],"quarters-format-abbr":["1. nelj.","2. nelj.","3. nelj.","4. nelj."],"quarters-standAlone-wide":["1. neljännes","2. neljännes","3. neljännes","4. neljännes"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],"timeFormat-medium":"H.mm.ss","field-sun-relative+0":"tänä sunnuntaina","dateFormatItem-Hm":"H.mm","quarters-standAlone-abbr":["1. nelj.","2. nelj.","3. nelj.","4. nelj."],"field-sun-relative+1":"ensi sunnuntaina",eraAbbr:["eKr.","jKr."],"field-minute":"minuutti","field-dayperiod":"vuorokaudenaika","days-standAlone-abbr":["su","ma","ti","ke","to","pe","la"],"dateFormatItem-d":"d","dateFormatItem-ms":"m.ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"eilen","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"ap.","field-day-relative+-2":"toissapäivänä","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E d.M.","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"tänä perjantaina","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"ensi perjantaina","dateFormatItem-yMMMMccccd":"cccc d. MMMM y","field-day":"päivä","days-format-wide":["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"],"field-zone":"aikavyöhyke","dateFormatItem-y":"y","months-standAlone-narrow":["T","H","M","H","T","K","H","E","S","L","M","J"],"field-year-relative+-1":"viime vuonna","field-month-relative+-1":"viime kuussa","dateFormatItem-hm":"h.mm a","dayPeriods-format-abbr-pm":"ip.","days-format-abbr":["su","ma","ti","ke","to","pe","la"],eraNames:["ennen Kristuksen syntymää","jälkeen Kristuksen syntymän"],"dateFormatItem-yMMMd":"d. MMM y","days-format-narrow":["S","M","T","K","T","P","L"],"days-standAlone-narrow":["S","M","T","K","T","P","L"],"dateFormatItem-MMM":"LLL","field-month":"kuukausi","field-tue-relative+0":"tänä tiistaina","field-tue-relative+1":"ensi tiistaina","dayPeriods-format-wide-am":"ap.","dayPeriods-standAlone-wide-am":"ap.","dateFormatItem-EHm":"E H.mm","field-mon-relative+0":"tänä maanantaina","field-mon-relative+1":"ensi maanantaina","dateFormat-short":"d.M.y","dateFormatItem-EHms":"E H.mm.ss","dateFormatItem-Ehms":"E h.mm.ss a","field-second":"sekunti","field-sat-relative+-1":"viime lauantaina","dateFormatItem-yMMMEd":"E d. MMM y","field-sun-relative+-1":"viime sunnuntaina","field-month-relative+0":"tässä kuussa","field-month-relative+1":"ensi kuussa","dateFormatItem-Ed":"E d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"viikko","dateFormat-medium":"d.M.y","field-year-relative+0":"tänä vuonna","field-week-relative+-1":"viime viikolla","field-year-relative+1":"ensi vuonna","dayPeriods-format-narrow-pm":"ip.","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H.mm.ss","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-GyMMM":"LLL y G","field-mon-relative+-1":"viime maanantaina","field-week-relative+0":"tällä viikolla","field-week-relative+1":"ensi viikolla"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"maintenant","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"jour de la semaine","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d/M/y","field-wed-relative+0":"ce mercredi","dateFormatItem-GyMMMEd":"E d MMM y G","dateFormatItem-MMMEd":"E d MMM","field-wed-relative+1":"mercredi prochain",eraNarrow:["av. J.-C.","ap. J.-C."],"field-tue-relative+-1":"mardi dernier","dayPeriods-format-wide-morning":"matin","days-format-short":["di","lu","ma","me","je","ve","sa"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"vendredi dernier","field-wed-relative+-1":"mercredi dernier","months-format-wide":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE d MMMM y","field-thu-relative+-1":"jeudi dernier","dateFormatItem-Md":"d/M","dayPeriods-format-abbr-am":"AM","dayPeriods-format-wide-noon":"midi","dateFormatItem-yMd":"d/M/y","dateFormatItem-yM":"M/y","field-era":"ère","months-standAlone-wide":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"timeFormat-short":"HH:mm","quarters-format-wide":["1er trimestre","2e trimestre","3e trimestre","4e trimestre"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"année","field-hour":"heure","months-format-abbr":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"field-sat-relative+0":"ce samedi","field-sat-relative+1":"samedi prochain","timeFormat-full":"HH:mm:ss zzzz","dayPeriods-format-narrow-morning":"matin","field-day-relative+0":"aujourd’hui","field-day-relative+1":"demain","field-thu-relative+0":"ce jeudi","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"après-demain","field-thu-relative+1":"jeudi prochain","dateFormatItem-H":"HH 'h'","months-standAlone-abbr":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["1er trimestre","2e trimestre","3e trimestre","4e trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"ce dimanche","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["T1","T2","T3","T4"],"field-sun-relative+1":"dimanche prochain",eraAbbr:["av. J.-C.","ap. J.-C."],"field-minute":"minute","field-dayperiod":"cadran","days-standAlone-abbr":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"dayPeriods-format-wide-night":"soir","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"hier","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"avant-hier","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"ce vendredi","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"vendredi prochain","field-day":"jour","days-format-wide":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"field-zone":"fuseau horaire","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"l’année dernière","dayPeriods-format-narrow-night":"soir","field-month-relative+-1":"le mois dernier","dateFormatItem-hm":"h:mm a","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],eraNames:["avant Jésus-Christ","après Jésus-Christ"],"dateFormatItem-yMMMd":"d MMM y","days-format-narrow":["D","L","M","M","J","V","S"],"days-standAlone-narrow":["D","L","M","M","J","V","S"],"dateFormatItem-MMM":"LLL","field-month":"mois","field-tue-relative+0":"ce mardi","field-tue-relative+1":"mardi prochain","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"ce lundi","field-mon-relative+1":"lundi prochain","dateFormat-short":"dd/MM/y","dayPeriods-format-wide-afternoon":"après-midi","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","dayPeriods-format-narrow-noon":"midi","field-second":"seconde","field-sat-relative+-1":"samedi dernier","dateFormatItem-yMMMEd":"E d MMM y","field-sun-relative+-1":"dimanche dernier","field-month-relative+0":"ce mois-ci","field-month-relative+1":"le mois prochain","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"semaine","dateFormat-medium":"d MMM y","field-year-relative+0":"cette année","field-week-relative+-1":"la semaine dernière","field-year-relative+1":"l’année prochaine","dayPeriods-format-narrow-pm":"p","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"lundi dernier","field-week-relative+0":"cette semaine","field-week-relative+1":"la semaine prochaine"}},function(e,t,i){e.exports={"timeFormat-full":"HH.mm:ss 'h' zzzz","dateFormat-full":"EEEE, d MMMM y","dateFormat-short":"dd.MM.yy"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"עכשיו","quarters-standAlone-narrow":["ר1","ר2","ר3","ר4"],"field-weekday":"יום בשבוע","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"E, d/M/y","field-wed-relative+0":"יום רביעי","field-wed-relative+1":"יום רביעי הבא","dateFormatItem-GyMMMEd":"E, d בMMM y G","dateFormatItem-MMMEd":"E, d בMMM",eraNarrow:["לפנה״ס","BCE","לסה״נ","CE"],"dateFormatItem-yMM":"MM/y","field-tue-relative+-1":"יום שלישי שעבר","days-format-short":["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],"dateFormat-long":"d בMMMM y","field-fri-relative+-1":"יום שישי שעבר","field-wed-relative+-1":"יום רביעי שעבר","months-format-wide":["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],"dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"אחה״צ","dateFormat-full":"EEEE, d בMMMM y","field-thu-relative+-1":"יום חמישי שעבר","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d.M.y","field-era":"תקופה","dateFormatItem-yM":"M.y","months-standAlone-wide":["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],"timeFormat-short":"HH:mm","quarters-format-wide":["רבעון 1","רבעון 2","רבעון 3","רבעון 4"],"dateFormatItem-yQQQQ":"y QQQQ","timeFormat-long":"HH:mm:ss z","field-year":"שנה","dateFormatItem-yMMM":"MMM y","field-hour":"שעה","months-format-abbr":["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],"field-sat-relative+0":"השבת הזאת","field-sat-relative+1":"השבת הבאה","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"היום","field-thu-relative+0":"יום חמישי","field-day-relative+1":"מחר","field-thu-relative+1":"יום חמישי הבא","dateFormatItem-GyMMMd":"d בMMM y G","field-day-relative+2":"מחרתיים","dateFormatItem-H":"HH","months-standAlone-abbr":["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],"quarters-format-abbr":["רבעון 1","רבעון 2","רבעון 3","רבעון 4"],"quarters-standAlone-wide":["רבעון 1","רבעון 2","רבעון 3","רבעון 4"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"],"timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"יום ראשון","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"יום ראשון הבא","quarters-standAlone-abbr":["רבעון 1","רבעון 2","רבעון 3","רבעון 4"],eraAbbr:["לפנה״ס","BCE","לסה״נ","CE"],"field-minute":"דקה","field-dayperiod":"לפנה״צ/אחה״צ","days-standAlone-abbr":["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"אתמול","dateFormatItem-h":"‏h a","dateTimeFormat-long":"{1} בשעה {0}","field-day-relative+-2":"שלשום","dateFormatItem-MMMd":"d בMMM","dateFormatItem-MEd":"E, d/M","dateTimeFormat-full":"{1} בשעה {0}","field-fri-relative+0":"יום שישי","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"יום שישי הבא","field-day":"יום","days-format-wide":["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"],"field-zone":"אזור","dateFormatItem-y":"y","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-year-relative+-1":"השנה שעברה","field-month-relative+-1":"החודש שעבר","dateFormatItem-hm":"h:mm a","days-format-abbr":["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],"dateFormatItem-yMMMd":"d בMMM y",eraNames:["לפני הספירה","לספירה","לסה״נ","CE"],"days-format-narrow":["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],"days-standAlone-narrow":["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],"dateFormatItem-MMM":"LLL","field-month":"חודש","field-tue-relative+0":"יום שלישי","field-tue-relative+1":"יום שלישי הבא","dayPeriods-format-wide-am":"לפנה״צ","dateFormatItem-EHm":"E H:mm","field-mon-relative+0":"יום שני הזה","field-mon-relative+1":"יום שני הבא","dateFormat-short":"dd/MM/yy","dateFormatItem-EHms":"E H:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"שנייה","field-sat-relative+-1":"השבת שעברה","dateFormatItem-yMMMEd":"E, d בMMM y","field-sun-relative+-1":"יום ראשון שעבר","field-month-relative+0":"החודש","field-month-relative+1":"החודש הבא","dateFormatItem-Ed":"E ה-d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"שבוע","dateFormat-medium":"d בMMM y","field-year-relative+0":"השנה","field-week-relative+-1":"השבוע שעבר","field-year-relative+1":"השנה הבאה","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"יום שני שעבר","field-week-relative+0":"השבוע","field-week-relative+1":"השבוע הבא"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["ned","pon","uto","sri","čet","pet","sub"],"months-format-narrow":["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],"field-second-relative+0":"sada","quarters-standAlone-narrow":["1.","2.","3.","4."],"field-weekday":"Dan u tjednu","dateFormatItem-yQQQ":"QQQ y.","dateFormatItem-yMEd":"E, d. M. y.","field-wed-relative+0":"ova srijeda","dateFormatItem-GyMMMEd":"E, d. MMM y. G","dateFormatItem-MMMEd":"E, d. MMM","field-wed-relative+1":"sljedeća srijeda",eraNarrow:["pr.n.e.","AD"],"dateFormatItem-yMM":"MM. y.","field-tue-relative+-1":"prošli utorak","days-format-short":["ned","pon","uto","sri","čet","pet","sub"],"dateFormat-long":"d. MMMM y.","field-fri-relative+-1":"prošli petak","field-wed-relative+-1":"prošla srijeda","months-format-wide":["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenoga","prosinca"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, d. MMMM y.","field-thu-relative+-1":"prošli četvrtak","dateFormatItem-Md":"d. M.","dayPeriods-format-wide-noon":"podne","dateFormatItem-yMd":"d. M. y.","dateFormatItem-yM":"M. y.","field-era":"Era","months-standAlone-wide":["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"],"timeFormat-short":"HH:mm","quarters-format-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"LLL y.","dateFormatItem-yQQQQ":"QQQQ y.","field-year":"Godina","dateFormatItem-MMdd":"dd. MM.","field-hour":"Sat","months-format-abbr":["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],"field-sat-relative+0":"ova subota","field-sat-relative+1":"sljedeća subota","timeFormat-full":"HH:mm:ss zzzz","dayPeriods-format-narrow-morning":"prijepodne","field-day-relative+0":"danas","field-day-relative+1":"sutra","field-thu-relative+0":"ovaj četvrtak","dateFormatItem-GyMMMd":"d. MMM y. G","field-day-relative+2":"prekosutra","field-thu-relative+1":"sljedeći četvrtak","dateFormatItem-H":"HH","months-standAlone-abbr":["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],"quarters-format-abbr":["1kv","2kv","3kv","4kv"],"quarters-standAlone-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"dateFormatItem-Gy":"y. G","dateFormatItem-M":"L.","days-standAlone-wide":["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],"dayPeriods-format-narrow-evening":"navečer","dateFormatItem-MMMMd":"d. MMMM","dayPeriods-format-abbr-noon":"podne","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"ova nedjelja","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["1kv","2kv","3kv","4kv"],"field-sun-relative+1":"sljedeća nedjelja",eraAbbr:["pr. Kr.","p. Kr."],"field-minute":"Minuta","field-dayperiod":"Prijepodne/popodne","days-standAlone-abbr":["ned","pon","uto","sri","čet","pet","sub"],"dateFormatItem-d":"d.","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1.","2.","3.","4."],"field-day-relative+-1":"jučer","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} 'u' {0}","field-day-relative+-2":"prekjučer","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E, d. M.","dateTimeFormat-full":"{1} 'u' {0}","field-fri-relative+0":"ovaj petak","dateFormatItem-yMMMM":"LLLL y.","field-fri-relative+1":"sljedeći petak","field-day":"Dan","days-format-wide":["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],"field-zone":"Vremenska zona","months-standAlone-narrow":["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],"dateFormatItem-y":"y.","field-year-relative+-1":"prošle godine","dayPeriods-format-narrow-night":"noću","field-month-relative+-1":"prošli mjesec","dateFormatItem-hm":"hh:mm a","days-format-abbr":["ned","pon","uto","sri","čet","pet","sub"],eraNames:["Prije Krista","Poslije Krista"],"dateFormatItem-yMMMd":"d. MMM y.","days-format-narrow":["N","P","U","S","Č","P","S"],"dayPeriods-format-narrow-earlyMorning":"ujutro","days-standAlone-narrow":["n","p","u","s","č","p","s"],"dateFormatItem-MMM":"LLL","field-month":"Mjesec","field-tue-relative+0":"ovaj utorak","field-tue-relative+1":"sljedeći utorak","dayPeriods-format-wide-am":"AM","dateFormatItem-MMMMEd":"E, d. MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"ovaj ponedjeljak","field-mon-relative+1":"sljedeći ponedjeljak","dateFormat-short":"d.M.yy.","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","dayPeriods-format-narrow-afternoon":"popodne","dayPeriods-format-narrow-noon":"n","field-second":"Sekunda","field-sat-relative+-1":"prošla subota","dateFormatItem-yMMMEd":"E, d. MMM y.","field-sun-relative+-1":"prošla nedjelja","field-month-relative+0":"ovaj mjesec","field-month-relative+1":"sljedeći mjesec","dateFormatItem-Ed":"E, d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Tjedan","dateFormat-medium":"d. MMM y.","field-year-relative+0":"ove godine","field-week-relative+-1":"prošli tjedan","field-year-relative+1":"sljedeće godine","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"hh:mm:ss a","dateFormatItem-GyMMM":"LLL y. G","field-mon-relative+-1":"prošli ponedjeljak","field-week-relative+0":"ovaj tjedan","field-week-relative+1":"sljedeći tjedan"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["V","H","K","Sze","Cs","P","Szo"],"months-format-narrow":["J","F","M","Á","M","J","J","A","Sz","O","N","D"],"field-second-relative+0":"most","quarters-standAlone-narrow":["1.","2.","3.","4."],"field-weekday":"hét napja","dateFormatItem-yQQQ":"y. QQQ","dateFormatItem-yMEd":"y. MM. dd., E","field-wed-relative+0":"ez a szerda","dateFormatItem-GyMMMEd":"G y. MMM d., E","dateFormatItem-MMMEd":"MMM d., E","field-wed-relative+1":"következő szerda",eraNarrow:["ie.","isz."],"field-tue-relative+-1":"előző kedd","days-format-short":["V","H","K","Sze","Cs","P","Szo"],"dateFormat-long":"y. MMMM d.","field-fri-relative+-1":"előző péntek","field-wed-relative+-1":"előző szerda","months-format-wide":["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"du.","dateFormat-full":"y. MMMM d., EEEE","field-thu-relative+-1":"előző csütörtök","dateFormatItem-Md":"M. d.","dateFormatItem-yMd":"y. MM. dd.","dateFormatItem-yM":"y. M.","field-era":"éra","months-standAlone-wide":["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],"timeFormat-short":"H:mm","quarters-format-wide":["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"],"timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"y. MMM","dateFormatItem-yQQQQ":"y. QQQQ","field-year":"év","field-hour":"óra","months-format-abbr":["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],"field-sat-relative+0":"ez a szombat","field-sat-relative+1":"következő szombat","timeFormat-full":"H:mm:ss zzzz","field-day-relative+0":"ma","field-day-relative+1":"holnap","field-thu-relative+0":"ez a csütörtök","dateFormatItem-GyMMMd":"G y. MMM d.","field-day-relative+2":"holnapután","field-thu-relative+1":"következő csütörtök","dateFormatItem-H":"H","months-standAlone-abbr":["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],"quarters-format-abbr":["N1","N2","N3","N4"],"quarters-standAlone-wide":["1. negyedév","2. negyedév","3. negyedév","4. negyedév"],"dateFormatItem-Gy":"G y.","dateFormatItem-M":"L","days-standAlone-wide":["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],"dateFormatItem-MMMMd":"MMMM d.","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"ez a vasárnap","dateFormatItem-Hm":"H:mm","quarters-standAlone-abbr":["N1","N2","N3","N4"],"field-sun-relative+1":"következő vasárnap",eraAbbr:["i. e.","i. sz."],"field-minute":"perc","field-dayperiod":"napszak","days-standAlone-abbr":["V","H","K","Sze","Cs","P","Szo"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1.","2.","3.","4."],"field-day-relative+-1":"tegnap","dateFormatItem-h":"a h","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"de.","field-day-relative+-2":"tegnapelőtt","dateFormatItem-MMMd":"MMM d.","dateFormatItem-MEd":"M. d., E","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"ez a péntek","dateFormatItem-yMMMM":"y. MMMM","field-fri-relative+1":"következő péntek","field-day":"nap","days-format-wide":["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],"field-zone":"időzóna","dateFormatItem-y":"y.","months-standAlone-narrow":["J","F","M","Á","M","J","J","A","Sz","O","N","D"],"field-year-relative+-1":"előző év","field-month-relative+-1":"előző hónap","dateFormatItem-hm":"a h:mm","days-format-abbr":["V","H","K","Sze","Cs","P","Szo"],"dateFormatItem-yMMMd":"y. MMM d.",eraNames:["időszámításunk előtt","időszámításunk szerint"],"days-format-narrow":["V","H","K","Sz","Cs","P","Sz"],"days-standAlone-narrow":["V","H","K","Sz","Cs","P","Sz"],"dateFormatItem-MMM":"LLL","field-month":"hónap","field-tue-relative+0":"ez a kedd","field-tue-relative+1":"következő kedd","dayPeriods-format-wide-am":"de.","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"ez a hétfő","field-mon-relative+1":"következő hétfő","dateFormat-short":"y. MM. dd.","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"másodperc","field-sat-relative+-1":"előző szombat","dateFormatItem-yMMMEd":"y. MMM d., E","field-sun-relative+-1":"előző vasárnap","field-month-relative+0":"ez a hónap","field-month-relative+1":"következő hónap","dateFormatItem-Ed":"d., E","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"hét","dateFormat-medium":"y. MMM d.","field-year-relative+0":"ez az év","field-week-relative+-1":"előző hét","field-year-relative+1":"következő év","dateFormatItem-mmss":"mm:ss","dayPeriods-format-narrow-pm":"du.","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"a h:mm:ss","dateFormatItem-GyMMM":"G y. MMM","field-mon-relative+-1":"előző hétfő","field-week-relative+0":"ez a hét","field-week-relative+1":"következő hét"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h.mm a","days-standAlone-short":["dom","lun","mar","mer","gio","ven","sab"],"months-format-narrow":["G","F","M","A","M","G","L","A","S","O","N","D"],"field-second-relative+0":"ora","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"giorno della settimana","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d/M/y","field-wed-relative+0":"questo mercoledì","dateFormatItem-GyMMMEd":"E d MMM y G","dateFormatItem-MMMEd":"E d MMM","field-wed-relative+1":"mercoledì prossimo",eraNarrow:["aC","BCE","dC","CE"],"field-tue-relative+-1":"martedì scorso","days-format-short":["dom","lun","mar","mer","gio","ven","sab"],"dateFormat-long":"dd MMMM y","field-fri-relative+-1":"venerdì scorso","field-wed-relative+-1":"mercoledì scorso","months-format-wide":["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE d MMMM y","field-thu-relative+-1":"giovedì scorso","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d/M/y","dateFormatItem-yM":"M/y","field-era":"era","months-standAlone-wide":["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],"timeFormat-short":"HH:mm","quarters-format-wide":["1º trimestre","2º trimestre","3º trimestre","4º trimestre"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"anno","field-hour":"ora","months-format-abbr":["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],"field-sat-relative+0":"questo sabato","field-sat-relative+1":"sabato prossimo","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"oggi","field-day-relative+1":"domani","field-thu-relative+0":"questo giovedì","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"dopodomani","field-thu-relative+1":"giovedì prossimo","dateFormatItem-H":"HH","months-standAlone-abbr":["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["Primo trimestre","Secondo trimestre","Terzo trimestre","Quarto trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],"timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"questa domenica","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["T1","T2","T3","T4"],"field-sun-relative+1":"domenica prossima",eraAbbr:["aC","BCE","dC","CE"],"field-minute":"minuto","field-dayperiod":"periodo del giorno","days-standAlone-abbr":["dom","lun","mar","mer","gio","ven","sab"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"ieri","dateFormatItem-h":"hh a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"m.","field-day-relative+-2":"l'altro ieri","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"questo venerdì","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"venerdì prossimo","field-day":"giorno","days-format-wide":["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],"field-zone":"fuso orario","dateFormatItem-y":"y","months-standAlone-narrow":["G","F","M","A","M","G","L","A","S","O","N","D"],"field-year-relative+-1":"anno scorso","field-month-relative+-1":"mese scorso","dateFormatItem-hm":"hh:mm a","days-format-abbr":["dom","lun","mar","mer","gio","ven","sab"],"dateFormatItem-yMMMd":"d MMM y",eraNames:["a.C.","BCE","d.C.","CE"],"days-format-narrow":["D","L","M","M","G","V","S"],"days-standAlone-narrow":["D","L","M","M","G","V","S"],"dateFormatItem-MMM":"LLL","field-month":"mese","field-tue-relative+0":"questo martedì","field-tue-relative+1":"martedì prossimo","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E HH.mm","field-mon-relative+0":"questo lunedì","field-mon-relative+1":"lunedì prossimo","dateFormat-short":"dd/MM/yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"secondo","field-sat-relative+-1":"sabato scorso","dateFormatItem-yMMMEd":"E d MMM y","field-sun-relative+-1":"domenica scorsa","field-month-relative+0":"questo mese","field-month-relative+1":"mese prossimo","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"settimana","dateFormat-medium":"dd/MMM/y","field-year-relative+0":"quest'anno","field-week-relative+-1":"settimana scorsa","field-year-relative+1":"anno prossimo","dayPeriods-format-narrow-pm":"p.","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"hh:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"lunedì scorso","field-week-relative+0":"questa settimana","field-week-relative+1":"settimana prossima"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"a K 時 mm 分 (E)","days-standAlone-short":["日","月","火","水","木","金","土"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"今すぐ","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"曜日","dateFormatItem-yQQQ":"y/QQQ","dateFormatItem-yMEd":"y/M/d(E)","field-wed-relative+0":"今週の水曜日","dateFormatItem-GyMMMEd":"Gy年M月d日(E)","dateFormatItem-MMMEd":"M月d日(E)","field-wed-relative+1":"来週の水曜日",eraNarrow:["BC","BCE","AD","CE"],"dateFormatItem-yMM":"y/MM","field-tue-relative+-1":"先週の火曜日","days-format-short":["日","月","火","水","木","金","土"],"dateFormat-long":"y年M月d日","field-fri-relative+-1":"先週の金曜日","field-wed-relative+-1":"先週の水曜日","months-format-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"午後","dateFormat-full":"y年M月d日EEEE","field-thu-relative+-1":"先週の木曜日","dateFormatItem-Md":"M/d","dayPeriods-format-wide-noon":"正午","dateFormatItem-yMd":"y/M/d","dateFormatItem-yM":"y/M","field-era":"時代","months-standAlone-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"timeFormat-short":"H:mm","quarters-format-wide":["第1四半期","第2四半期","第3四半期","第4四半期"],"dateFormatItem-MEEEEd":"M/dEEEE","timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"y年M月","dateFormatItem-yQQQQ":"yQQQQ","field-year":"年","field-hour":"時","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-sat-relative+0":"今週の土曜日","field-sat-relative+1":"来週の土曜日","timeFormat-full":"H時mm分ss秒 zzzz","dateFormatItem-yMEEEEd":"y/M/dEEEE","field-day-relative+0":"今日","field-day-relative+1":"明日","field-thu-relative+0":"今週の木曜日","dateFormatItem-GyMMMd":"Gy年M月d日","field-day-relative+2":"明後日","field-thu-relative+1":"来週の木曜日","dateFormatItem-H":"H時","months-standAlone-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["第1四半期","第2四半期","第3四半期","第4四半期"],"dateFormatItem-Gy":"Gy年","dateFormatItem-M":"M月","days-standAlone-wide":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"dateFormatItem-yMMMEEEEd":"y年M月d日EEEE","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"今週の日曜日","dateFormatItem-Hm":"H:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"field-sun-relative+1":"来週の日曜日",eraAbbr:["紀元前","西暦"],"field-minute":"分","field-dayperiod":"午前/午後","days-standAlone-abbr":["日","月","火","水","木","金","土"],"dateFormatItem-d":"d日","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"昨日","dateFormatItem-h":"aK時","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"午前","field-day-relative+-2":"一昨日","dateFormatItem-MMMd":"M月d日","dateFormatItem-EEEEd":"d日EEEE","dateFormatItem-MEd":"M/d(E)","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"今週の金曜日","field-fri-relative+1":"来週の金曜日","field-day":"日","days-format-wide":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"field-zone":"タイムゾーン","dateFormatItem-y":"y年","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-year-relative+-1":"昨年","field-month-relative+-1":"先月","dateFormatItem-hm":"aK:mm","dateFormatItem-GyMMMEEEEd":"Gy年M月d日EEEE","days-format-abbr":["日","月","火","水","木","金","土"],eraNames:["紀元前","西暦紀元前","西暦"],"dateFormatItem-yMMMd":"y年M月d日","days-format-narrow":["日","月","火","水","木","金","土"],"dateFormatItem-MMMEEEEd":"M月d日EEEE","days-standAlone-narrow":["日","月","火","水","木","金","土"],"dateFormatItem-MMM":"M月","field-month":"月","field-tue-relative+0":"今週の火曜日","field-tue-relative+1":"来週の火曜日","dayPeriods-format-wide-am":"午前","dateFormatItem-EHm":"HH 時 mm 分 (E)","field-mon-relative+0":"今週の月曜日","field-mon-relative+1":"来週の月曜日","dateFormat-short":"y/MM/dd","dateFormatItem-EHms":"HH 時 mm 分 ss 秒 (E)","dateFormatItem-Ehms":"a K 時 mm 分 ss 秒 (E)","dayPeriods-format-narrow-noon":"正午","field-second":"秒","field-sat-relative+-1":"先週の土曜日","dateFormatItem-yMMMEd":"y年M月d日(E)","field-sun-relative+-1":"先週の日曜日","field-month-relative+0":"今月","field-month-relative+1":"翌月","dateFormatItem-Ed":"d日(E)","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"週","dateFormat-medium":"y/MM/dd","field-year-relative+0":"今年","field-week-relative+-1":"先週","field-year-relative+1":"翌年","dayPeriods-format-narrow-pm":"午後","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"aK:mm:ss","dateFormatItem-GyMMM":"Gy年M月","field-mon-relative+-1":"先週の月曜日","field-week-relative+0":"今週","field-week-relative+1":"翌週"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"(E) a h:mm","days-standAlone-short":["일","월","화","수","목","금","토"],"months-format-narrow":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"field-second-relative+0":"지금","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"요일","dateFormatItem-yQQQ":"y년 QQQ","dateFormatItem-yMEd":"y. M. d. (E)","field-wed-relative+0":"이번 수요일","field-wed-relative+1":"다음 수요일","dateFormatItem-GyMMMEd":"G y년 MMM d일 (E)","dateFormatItem-MMMEd":"MMM d일 (E)",eraNarrow:["기원전","서기"],"dateFormatItem-yMM":"y. M.","field-tue-relative+-1":"지난 화요일","days-format-short":["일","월","화","수","목","금","토"],"dateFormat-long":"y년 M월 d일","field-fri-relative+-1":"지난 금요일","field-wed-relative+-1":"지난 수요일","months-format-wide":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"오후","dateFormat-full":"y년 M월 d일 EEEE","field-thu-relative+-1":"지난 목요일","dateFormatItem-Md":"M. d.","dateFormatItem-yMd":"y. M. d.","field-era":"연호","dateFormatItem-yM":"y. M.","months-standAlone-wide":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"timeFormat-short":"a h:mm","quarters-format-wide":["제 1/4분기","제 2/4분기","제 3/4분기","제 4/4분기"],"dateFormatItem-MEEEEd":"M. d. EEEE","dateFormatItem-yQQQQ":"y년 QQQQ","timeFormat-long":"a h시 m분 s초 z","field-year":"년","dateFormatItem-yMMM":"y년 MMM","field-hour":"시","months-format-abbr":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"field-sat-relative+0":"이번 토요일","field-sat-relative+1":"다음 토요일","dateFormatItem-yMEEEEd":"y. M. d. EEEE","timeFormat-full":"a h시 m분 s초 zzzz","field-day-relative+0":"오늘","field-thu-relative+0":"이번 목요일","field-day-relative+1":"내일","field-thu-relative+1":"다음 목요일","dateFormatItem-GyMMMd":"G y년 MMM d일","field-day-relative+2":"모레","dateFormatItem-H":"H시","months-standAlone-abbr":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"quarters-format-abbr":["1분기","2분기","3분기","4분기"],"quarters-standAlone-wide":["제 1/4분기","제 2/4분기","제 3/4분기","제 4/4분기"],"dateFormatItem-Gy":"G y년","dateFormatItem-HHmmss":"HH:mm:ss","dateFormatItem-M":"M월","days-standAlone-wide":["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],"dateFormatItem-yMMMEEEEd":"y년 MMM d일 EEEE","timeFormat-medium":"a h:mm:ss","field-sun-relative+0":"이번 일요일","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"다음 일요일","quarters-standAlone-abbr":["1분기","2분기","3분기","4분기"],eraAbbr:["기원전","서기"],"field-minute":"분","field-dayperiod":"오전/오후","days-standAlone-abbr":["일","월","화","수","목","금","토"],"dateFormatItem-d":"d일","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"어제","dateFormatItem-h":"a h시","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"그저께","dateFormatItem-MMMd":"MMM d일","dateFormatItem-EEEEd":"d일 EEEE","dateFormatItem-MEd":"M. d. (E)","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"이번 금요일","field-fri-relative+1":"다음 금요일","field-day":"일","days-format-wide":["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],"field-zone":"시간대","dateFormatItem-y":"y년","months-standAlone-narrow":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"field-year-relative+-1":"지난해","field-month-relative+-1":"지난달","dateFormatItem-hm":"a h:mm","dateFormatItem-GyMMMEEEEd":"G y년 MMM d일 EEEE","days-format-abbr":["일","월","화","수","목","금","토"],"dateFormatItem-yMMMd":"y년 MMM d일",eraNames:["서력기원전","서력기원"],"days-format-narrow":["일","월","화","수","목","금","토"],"dateFormatItem-MMMEEEEd":"MMM d일 EEEE","days-standAlone-narrow":["일","월","화","수","목","금","토"],"dateFormatItem-MMM":"LLL","field-month":"월","field-tue-relative+0":"이번 화요일","field-tue-relative+1":"다음 화요일","dayPeriods-format-wide-am":"오전","dateFormatItem-EHm":"(E) HH:mm","field-mon-relative+0":"이번 월요일","field-mon-relative+1":"다음 월요일","dateFormat-short":"yy. M. d.","dateFormatItem-EHms":"(E) HH:mm:ss","dateFormatItem-Ehms":"(E) a h:mm:ss","field-second":"초","field-sat-relative+-1":"지난 토요일","dateFormatItem-yMMMEd":"y년 MMM d일 (E)","field-sun-relative+-1":"지난 일요일","field-month-relative+0":"이번 달","field-month-relative+1":"다음 달","dateFormatItem-Ed":"d일 (E)","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"주","dateFormat-medium":"y. M. d.","field-year-relative+0":"올해","field-week-relative+-1":"지난주","field-year-relative+1":"내년","dateFormatItem-mmss":"mm:ss","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H시 m분 s초","dateFormatItem-hms":"a h:mm:ss","dateFormatItem-GyMMM":"G y년 MMM","field-mon-relative+-1":"지난 월요일","field-week-relative+0":"이번 주","field-week-relative+1":"다음 주"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["нед.","пон.","вто.","сре.","чет.","пет.","саб."],"months-format-narrow":["ј","ф","м","а","м","ј","ј","а","с","о","н","д"],"field-second-relative+0":"сега","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Ден во неделата","dateFormatItem-yQQQ":"QQQ y 'г'.","dateFormatItem-yMEd":"E, d.M.y","field-wed-relative+0":"оваа среда","field-wed-relative+1":"следната среда","dateFormatItem-GyMMMEd":"E, dd MMM y 'г'. G","dateFormatItem-MMMEd":"E d MMM",eraNarrow:["пр.н.е.","н.е."],"field-tue-relative+-1":"минатиот вторник","days-format-short":["нед.","пон.","3","сре.","чет.","пет.","7"],"dateFormat-long":"dd MMMM y 'г'.","field-fri-relative+-1":"минатиот петок","field-wed-relative+-1":"минатата среда","months-format-wide":["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"попладне","dateFormat-full":"EEEE, dd MMMM y 'г'.","field-thu-relative+-1":"минатиот четврток","dateFormatItem-Md":"d.M","dateFormatItem-yMd":"d.M.y","field-era":"Ера","dateFormatItem-yM":"M.y","months-standAlone-wide":["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],"timeFormat-short":"HH:mm","quarters-format-wide":["прво тромесечје","второ тромесечје","трето тромесечје","четврто тромесечје"],"dateFormatItem-yQQQQ":"QQQQ y 'г'.","timeFormat-long":"HH:mm:ss z","field-year":"година","dateFormatItem-yMMM":"MMM y 'г'.","field-hour":"Час","months-format-abbr":["јан.","фев.","мар.","апр.","мај","јун.","јул.","авг.","септ.","окт.","ноем.","дек."],"field-sat-relative+0":"оваа сабота","field-sat-relative+1":"следната сабота","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"Денес","field-thu-relative+0":"овој четврток","field-day-relative+1":"утре","field-thu-relative+1":"следниот четврток","dateFormatItem-GyMMMd":"dd MMM y 'г'. G","field-day-relative+2":"задутре","dateFormatItem-H":"HH","months-standAlone-abbr":["јан.","фев.","мар.","апр.","мај","јун.","јул.","авг.","септ.","окт.","ноем.","дек."],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["прво тромесечје","второ тромесечје","трето тромесечје","четврто тромесечје"],"dateFormatItem-Gy":"y 'г'. G","dateFormatItem-M":"L","days-standAlone-wide":["недела","понеделник","вторник","среда","четврток","петок","сабота"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"оваа недела","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"следната недела","quarters-standAlone-abbr":["јан-мар","апр-јун","јул-сеп","окт-дек"],eraAbbr:["пр.н.е.","н.е."],"field-minute":"Минута","field-dayperiod":"претпладне/попладне","days-standAlone-abbr":["нед.","пон.","вт.","сре.","чет.","пет.","саб."],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"вчера","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"завчера","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E, d.M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"овој петок","dateFormatItem-yMMMM":"MMMM y 'г'.","field-fri-relative+1":"следниот петок","field-day":"ден","days-format-wide":["недела","понеделник","вторник","среда","четврток","петок","сабота"],"dateFormatItem-Mdd":"dd.M","field-zone":"зона","dateFormatItem-y":"y 'г'.","months-standAlone-narrow":["ј","ф","м","а","м","ј","ј","а","с","о","н","д"],"field-year-relative+-1":"минатата година","field-month-relative+-1":"минатиот месец","dateFormatItem-hm":"h:mm a","days-format-abbr":["нед.","пон.","вт.","сре.","чет.","пет.","саб."],"dateFormatItem-yMMMd":"d MMM y 'г'.",eraNames:["пр.н.е.","н.е."],"days-format-narrow":["н","п","в","с","ч","п","с"],"days-standAlone-narrow":["н","п","в","с","ч","п","с"],"dateFormatItem-MMM":"LLL","field-month":"Месец","field-tue-relative+0":"овој вторник","field-tue-relative+1":"следниот вторник","dayPeriods-format-wide-am":"претпладне","dateFormatItem-MMMMEd":"E d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"овој понеделник","field-mon-relative+1":"следниот понеделник","dateFormat-short":"dd.M.yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"Секунда","field-sat-relative+-1":"минатата сабота","dateFormatItem-yMMMEd":"E, d MMM y 'г'.","field-sun-relative+-1":"минатата недела","field-month-relative+0":"овој месец","field-month-relative+1":"следниот месец","dateFormatItem-Ed":"E, d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Недела","dateFormat-medium":"dd.M.y","field-year-relative+0":"оваа година","field-week-relative+-1":"минатата седмица","field-year-relative+1":"следната година","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y 'г'. G","field-mon-relative+-1":"минатиот понеделник","field-week-relative+0":"оваа седмица","field-week-relative+1":"следната седмица"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h.mm a","days-standAlone-short":["sø.","ma.","ti.","on.","to.","fr.","lø."],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"nå","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Ukedag","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d.MM.y","field-wed-relative+0":"onsdag denne uken","dateFormatItem-GyMMMEd":"E d. MMM y G","dateFormatItem-MMMEd":"E d. MMM","field-wed-relative+1":"onsdag neste uke",eraNarrow:["f.Kr.","fvt.","e.Kr.","vt"],"dateFormatItem-yMM":"MM.y","field-tue-relative+-1":"tirsdag sist uke","days-format-short":["sø.","ma.","ti.","on.","to.","fr.","lø."],"dateFormat-long":"d. MMMM y","field-fri-relative+-1":"fredag sist uke","field-wed-relative+-1":"onsdag sist uke","months-format-wide":["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],"dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"p.m.","dateFormat-full":"EEEE d. MMMM y","field-thu-relative+-1":"torsdag sist uke","dateFormatItem-Md":"d.M.","dayPeriods-format-abbr-am":"a.m.","dateFormatItem-yMd":"d.M.y","dateFormatItem-yM":"M.y","field-era":"Tidsalder","months-standAlone-wide":["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],"timeFormat-short":"HH.mm","quarters-format-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"timeFormat-long":"HH.mm.ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"År","dateFormatItem-MMdd":"d.M.","field-hour":"Time","months-format-abbr":["jan.","feb.","mar.","apr.","mai","jun.","jul.","aug.","sep.","okt.","nov.","des."],"field-sat-relative+0":"lørdag denne uken","field-sat-relative+1":"lørdag neste uke","timeFormat-full":"HH.mm.ss zzzz","field-day-relative+0":"i dag","field-day-relative+1":"i morgen","field-thu-relative+0":"torsdag denne uken","dateFormatItem-GyMMMd":"d. MMM y G","field-day-relative+2":"i overmorgen","field-thu-relative+1":"torsdag neste uke","dateFormatItem-H":"HH","months-standAlone-abbr":["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],"quarters-format-abbr":["K1","K2","K3","K4"],"quarters-standAlone-wide":["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L.","days-standAlone-wide":["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],"timeFormat-medium":"HH.mm.ss","field-sun-relative+0":"søndag denne uken","dateFormatItem-Hm":"HH.mm","quarters-standAlone-abbr":["K1","K2","K3","K4"],"field-sun-relative+1":"søndag neste uke",eraAbbr:["f.Kr.","e.Kr."],"field-minute":"Minutt","field-dayperiod":"AM/PM","days-standAlone-abbr":["sø.","ma.","ti.","on.","to.","fr.","lø."],"dateFormatItem-d":"d.","dateFormatItem-ms":"mm.ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"i går","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} 'kl.' {0}","dayPeriods-format-narrow-am":"a","field-day-relative+-2":"i forgårs","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E d.M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"fredag denne uken","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"fredag neste uke","field-day":"Dag","days-format-wide":["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],"field-zone":"Tidssone","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"I fjor","field-month-relative+-1":"Sist måned","dateFormatItem-hm":"h.mm a","dayPeriods-format-abbr-pm":"p.m.","days-format-abbr":["søn.","man.","tir.","ons.","tor.","fre.","lør."],eraNames:["f.Kr.","e.Kr."],"dateFormatItem-yMMMd":"d. MMM y","days-format-narrow":["S","M","T","O","T","F","L"],"days-standAlone-narrow":["S","M","T","O","T","F","L"],"dateFormatItem-MMM":"LLL","field-month":"Måned","field-tue-relative+0":"tirsdag denne uken","field-tue-relative+1":"tirsdag neste uke","dayPeriods-format-wide-am":"a.m.","dateFormatItem-EHm":"E HH.mm","field-mon-relative+0":"mandag denne uken","field-mon-relative+1":"mandag neste uke","dateFormat-short":"dd.MM.yy","dateFormatItem-EHms":"E HH.mm.ss","dateFormatItem-Ehms":"E h.mm.ss a","field-second":"Sekund","field-sat-relative+-1":"lørdag sist uke","dateFormatItem-yMMMEd":"E d. MMM y","field-sun-relative+-1":"søndag sist uke","field-month-relative+0":"Denne måneden","field-month-relative+1":"Neste måned","dateFormatItem-Ed":"E d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Uke","dateFormat-medium":"d. MMM y","field-year-relative+0":"Dette året","field-week-relative+-1":"Sist uke","field-year-relative+1":"Neste år","dayPeriods-format-narrow-pm":"p","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH.mm.ss","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"mandag sist uke","field-week-relative+0":"Denne uken","field-week-relative+1":"Neste uke"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["zo","ma","di","wo","do","vr","za"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"nu","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Dag van de week","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d-M-y","field-wed-relative+0":"deze woensdag","dateFormatItem-GyMMMEd":"E d MMM y G","dateFormatItem-MMMEd":"E d MMM","field-wed-relative+1":"volgende week woensdag",eraNarrow:["v.C.","vgj","n.C.","gj"],"field-tue-relative+-1":"afgelopen dinsdag","days-format-short":["zo","ma","di","wo","do","vr","za"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"afgelopen vrijdag","field-wed-relative+-1":"afgelopen woensdag","months-format-wide":["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE d MMMM y","field-thu-relative+-1":"afgelopen donderdag","dateFormatItem-Md":"d-M","dayPeriods-format-wide-noon":"12 uur 's middags","dateFormatItem-yMd":"d-M-y","dateFormatItem-yM":"M-y","field-era":"Tijdperk","months-standAlone-wide":["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],"timeFormat-short":"HH:mm","quarters-format-wide":["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"QQQQ y","field-year":"Jaar","field-hour":"Uur","months-format-abbr":["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],"field-sat-relative+0":"deze zaterdag","field-sat-relative+1":"volgende week zaterdag","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"vandaag","field-day-relative+1":"morgen","field-thu-relative+0":"deze donderdag","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"overmorgen","field-thu-relative+1":"volgende week donderdag","dateFormatItem-H":"HH","months-standAlone-abbr":["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],"quarters-format-abbr":["K1","K2","K3","K4"],"quarters-standAlone-wide":["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],"dateFormatItem-MMMMd":"d MMMM","dayPeriods-format-abbr-noon":"12 uur 's middags","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"deze zondag","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["K1","K2","K3","K4"],"field-sun-relative+1":"volgende week zondag",eraAbbr:["v.Chr.","n.Chr."],"field-minute":"Minuut","field-dayperiod":"AM/PM","days-standAlone-abbr":["zo","ma","di","wo","do","vr","za"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"gisteren","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM","field-day-relative+-2":"eergisteren","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d-M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"deze vrijdag","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"volgende week vrijdag","field-day":"Dag","days-format-wide":["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],"field-zone":"Zone","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"vorig jaar","field-month-relative+-1":"vorige maand","dateFormatItem-hm":"h:mm a","days-format-abbr":["zo","ma","di","wo","do","vr","za"],eraNames:["Voor Christus","vóór gewone jaartelling","na Christus","gewone jaartelling"],"dateFormatItem-yMMMd":"d MMM y","days-format-narrow":["Z","M","D","W","D","V","Z"],"days-standAlone-narrow":["Z","M","D","W","D","V","Z"],"dateFormatItem-MMM":"LLL","field-month":"Maand","field-tue-relative+0":"deze dinsdag","field-tue-relative+1":"volgende week dinsdag","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"deze maandag","field-mon-relative+1":"volgende week maandag","dateFormat-short":"dd-MM-yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","dayPeriods-format-narrow-noon":"n","field-second":"Seconde","field-sat-relative+-1":"afgelopen zaterdag","dateFormatItem-yMMMEd":"E d MMM y","field-sun-relative+-1":"afgelopen zondag","field-month-relative+0":"deze maand","field-month-relative+1":"volgende maand","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Week","dateFormat-medium":"d MMM y","field-year-relative+0":"dit jaar","field-week-relative+-1":"vorige week","field-year-relative+1":"volgend jaar","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"afgelopen maandag","field-week-relative+0":"deze week","field-week-relative+1":"volgende week"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E, h:mm a","days-standAlone-short":["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],"months-format-narrow":["s","l","m","k","m","c","l","s","w","p","l","g"],"field-second-relative+0":"teraz","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"dzień tygodnia","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, d.MM.y","field-wed-relative+0":"w tę środę","field-wed-relative+1":"w przyszłą środę","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-MMMEd":"E, d MMM",eraNarrow:["p.n.e.","n.e."],"dateFormatItem-yMM":"MM.y","field-tue-relative+-1":"w zeszły wtorek","dayPeriods-format-wide-earlyMorning":"nad ranem","dayPeriods-format-wide-morning":"rano","days-format-short":["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"w zeszły piątek","field-wed-relative+-1":"w zeszłą środę","months-format-wide":["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"],"dayPeriods-format-wide-evening":"wieczorem","dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, d MMMM y","field-thu-relative+-1":"w zeszły czwartek","dateFormatItem-Md":"d.MM","dayPeriods-format-wide-noon":"w południe","dateFormatItem-yMd":"d.MM.y","field-era":"era","dateFormatItem-yM":"MM.y","months-standAlone-wide":["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],"timeFormat-short":"HH:mm","quarters-format-wide":["I kwartał","II kwartał","III kwartał","IV kwartał"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"HH:mm:ss z","field-year":"rok","dateFormatItem-yMMM":"LLL y","field-hour":"godzina","dateFormatItem-MMdd":"d.MM","months-format-abbr":["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],"field-sat-relative+0":"w tę sobotę","field-sat-relative+1":"w przyszłą sobotę","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"dzisiaj","field-thu-relative+0":"w ten czwartek","field-day-relative+1":"jutro","field-thu-relative+1":"w przyszły czwartek","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"pojutrze","dateFormatItem-H":"HH","months-standAlone-abbr":["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],"quarters-format-abbr":["K1","K2","K3","K4"],"quarters-standAlone-wide":["I kwartał","II kwartał","III kwartał","IV kwartał"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"w tę niedzielę","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"w przyszłą niedzielę","quarters-standAlone-abbr":["1 kw.","2 kw.","3 kw.","4 kw."],eraAbbr:["p.n.e.","n.e."],"field-minute":"minuta","field-dayperiod":"rano / po południu / wieczorem","days-standAlone-abbr":["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],"dayPeriods-format-wide-night":"w nocy","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"wczoraj","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"przedwczoraj","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E, d.MM","dayPeriods-format-wide-lateMorning":"przed południem","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"w ten piątek","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"w przyszły piątek","field-day":"dzień","days-format-wide":["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],"field-zone":"strefa czasowa","dateFormatItem-y":"y","months-standAlone-narrow":["s","l","m","k","m","c","l","s","w","p","l","g"],"field-year-relative+-1":"w zeszłym roku","field-month-relative+-1":"w zeszłym miesiącu","dateFormatItem-hm":"h:mm a","days-format-abbr":["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],eraNames:["p.n.e.","n.e."],"dateFormatItem-yMMMd":"d MMM y","days-format-narrow":["N","P","W","Ś","C","P","S"],"days-standAlone-narrow":["N","P","W","Ś","C","P","S"],"dateFormatItem-MMM":"LLL","field-month":"miesiąc","field-tue-relative+0":"w ten wtorek","field-tue-relative+1":"w przyszły wtorek","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E, HH:mm","field-mon-relative+0":"w ten poniedziałek","field-mon-relative+1":"w przyszły poniedziałek","dateFormat-short":"dd.MM.y","dayPeriods-format-wide-afternoon":"po południu","dateFormatItem-EHms":"E, HH:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"sekunda","field-sat-relative+-1":"w zeszłą sobotę","dateFormatItem-yMMMEd":"E, d MMM y","field-sun-relative+-1":"w zeszłą niedzielę","field-month-relative+0":"w tym miesiącu","field-month-relative+1":"w przyszłym miesiącu","dateFormatItem-Ed":"E, d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"tydzień","dateFormat-medium":"d MMM y","field-year-relative+0":"w tym roku","field-week-relative+-1":"Zeszły tydzień","field-year-relative+1":"w przyszłym roku","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"w zeszły poniedziałek","field-week-relative+0":"w tym tygodniu","field-week-relative+1":"w przyszłym tygodniu"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E, h:mm a","days-standAlone-short":["dom","seg","ter","qua","qui","sex","sáb"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"agora","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Dia da semana","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"E, dd/MM/y","field-wed-relative+0":"esta quarta-feira","field-wed-relative+1":"próxima quarta-feira","dateFormatItem-GyMMMEd":"E, d 'de' MMM 'de' y G","dateFormatItem-MMMEd":"E, d 'de' MMM",eraNarrow:["a.C.","d.C."],"dateFormatItem-yMM":"MM/y","field-tue-relative+-1":"terça-feira passada","dayPeriods-format-wide-morning":"manhã","days-format-short":["dom","seg","ter","qua","qui","sex","sáb"],"dateFormat-long":"d 'de' MMMM 'de' y","field-fri-relative+-1":"sexta-feira passada","field-wed-relative+-1":"quarta-feira passada","months-format-wide":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, d 'de' MMMM 'de' y","field-thu-relative+-1":"quinta-feira passada","dateFormatItem-Md":"d/M","dayPeriods-format-abbr-am":"AM","dayPeriods-format-wide-noon":"meio-dia","dateFormatItem-yMd":"dd/MM/y","field-era":"Era","dateFormatItem-yM":"MM/y","months-standAlone-wide":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"timeFormat-short":"HH:mm","quarters-format-wide":["1º trimestre","2º trimestre","3º trimestre","4º trimestre"],"dateFormatItem-yQQQQ":"y QQQQ","timeFormat-long":"HH:mm:ss z","field-year":"Ano","dateFormatItem-yMMM":"MMM 'de' y","field-hour":"Hora","dateFormatItem-MMdd":"dd/MM","months-format-abbr":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],"field-sat-relative+0":"este sábado","field-sat-relative+1":"próximo sábado","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"hoje","field-thu-relative+0":"esta quinta-feira","field-day-relative+1":"amanhã","field-thu-relative+1":"próxima quinta-feira","dateFormatItem-GyMMMd":"d 'de' MMM 'de' y G","field-day-relative+2":"depois de amanhã","dateFormatItem-H":"HH","months-standAlone-abbr":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["1º trimestre","2º trimestre","3º trimestre","4º trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-HHmmss":"HH:mm:ss","dateFormatItem-M":"L","days-standAlone-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"este domingo","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"próximo domingo","quarters-standAlone-abbr":["T1","T2","T3","T4"],eraAbbr:["a.C.","d.C."],"field-minute":"Minuto","field-dayperiod":"Período do dia","days-standAlone-abbr":["dom","seg","ter","qua","qui","sex","sáb"],"dayPeriods-format-wide-night":"noite","dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"ontem","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"a","field-day-relative+-2":"anteontem","dateFormatItem-MMMd":"d 'de' MMM","dateFormatItem-MEd":"E, dd/MM","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"esta sexta-feira","field-fri-relative+1":"próxima sexta-feira","field-day":"Dia","days-format-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"field-zone":"Fuso","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"ano passado","field-month-relative+-1":"mês passado","dateFormatItem-hm":"h:mm a","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["dom","seg","ter","qua","qui","sex","sáb"],eraNames:["Antes de Cristo","Ano do Senhor"],"dateFormatItem-yMMMd":"d 'de' MMM 'de' y","days-format-narrow":["D","S","T","Q","Q","S","S"],"days-standAlone-narrow":["D","S","T","Q","Q","S","S"],"dateFormatItem-MMM":"LLL","field-month":"Mês","dateFormatItem-HHmm":"HH:mm","field-tue-relative+0":"esta terça-feira","field-tue-relative+1":"próxima terça-feira","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E, HH:mm","field-mon-relative+0":"esta segunda-feira","field-mon-relative+1":"próxima segunda-feira","dateFormat-short":"dd/MM/yy","dayPeriods-format-wide-afternoon":"tarde","dateFormatItem-EHms":"E, HH:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"Segundo","field-sat-relative+-1":"sábado passado","dateFormatItem-yMMMEd":"E, d 'de' MMM 'de' y","field-sun-relative+-1":"domingo passado","field-month-relative+0":"este mês","field-month-relative+1":"próximo mês","dateFormatItem-Ed":"E, d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Semana","dateFormat-medium":"dd/MM/y","field-year-relative+0":"este ano","field-week-relative+-1":"semana passada","field-year-relative+1":"próximo ano","dayPeriods-format-narrow-pm":"p","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM 'de' y G","field-mon-relative+-1":"segunda-feira passada","field-week-relative+0":"esta semana","field-week-relative+1":"próxima semana"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E, h:mm a","days-standAlone-short":["do","sg","te","qu","qi","sx","sb"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Dia da semana","dateFormatItem-yQQQ":"QQQQ 'de' y","dateFormatItem-yMEd":"E, dd/MM/y","field-wed-relative+0":"esta quarta-feira","field-wed-relative+1":"próxima quarta-feira","dateFormatItem-GyMMMEd":"E, d 'de' MMM 'de' y G","dateFormatItem-MMMEd":"E, d/MM",eraNarrow:["a.C.","d.C."],"dateFormatItem-yMM":"MM/y","field-tue-relative+-1":"terça-feira passada","days-format-short":["do","sg","te","qu","qi","sx","sb"],"dateFormat-long":"d 'de' MMMM 'de' y","field-fri-relative+-1":"sexta-feira passada","field-wed-relative+-1":"quarta-feira passada","months-format-wide":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],"dateTimeFormat-medium":"{1}, {0}","dateFormatItem-yMMMMd":"d 'de' MMMM 'de' y","dayPeriods-format-wide-pm":"da tarde","dateFormat-full":"EEEE, d 'de' MMMM 'de' y","field-thu-relative+-1":"quinta-feira passada","dateFormatItem-Md":"d/M","dayPeriods-standAlone-wide-pm":"p.m.","dayPeriods-format-abbr-am":"a.m.","dateFormatItem-yMd":"dd/MM/y","field-era":"Era","dateFormatItem-yM":"MM/y","months-standAlone-wide":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],"timeFormat-short":"HH:mm","dayPeriods-standAlone-abbr-am":"a.m.","quarters-format-wide":["1.º trimestre","2.º trimestre","3.º trimestre","4.º trimestre"],"dateFormatItem-yQQQQ":"QQQQ 'de' y","timeFormat-long":"HH:mm:ss z","field-year":"Ano","dateFormatItem-yMMM":"MM/y","field-hour":"Hora","dateFormatItem-MMdd":"dd/MM","months-format-abbr":["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],"field-sat-relative+0":"este sábado","field-sat-relative+1":"próximo sábado","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"hoje","field-thu-relative+0":"esta quinta-feira","field-day-relative+1":"amanhã","field-thu-relative+1":"próxima quinta-feira","dateFormatItem-GyMMMd":"d 'de' MMM 'de' y G","field-day-relative+2":"depois de amanhã","dateFormatItem-H":"HH","months-standAlone-abbr":["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],"quarters-format-abbr":["T1","T2","T3","T4"],"quarters-standAlone-wide":["1.º trimestre","2.º trimestre","3.º trimestre","4.º trimestre"],"dateFormatItem-Gy":"y G","dateFormatItem-HHmmss":"HH:mm:ss","dateFormatItem-M":"L","days-standAlone-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"dateFormatItem-MMMMd":"d 'de' MMMM","dateFormatItem-yMMMEEEEd":"EEEE, d/MM/y","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"este domingo","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"próximo domingo","quarters-standAlone-abbr":["T1","T2","T3","T4"],eraAbbr:["a.C.","d.C."],"field-minute":"Minuto","field-dayperiod":"Da manhã/da tarde","days-standAlone-abbr":["dom","seg","ter","qua","qui","sex","sáb"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"ontem","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} 'às' {0}","dayPeriods-format-narrow-am":"a.m.","field-day-relative+-2":"anteontem","dateFormatItem-MMMd":"d/MM","dateFormatItem-MEd":"E, dd/MM","dateTimeFormat-full":"{1} 'às' {0}","field-fri-relative+0":"esta sexta-feira","dateFormatItem-yMMMM":"MMMM 'de' y","field-fri-relative+1":"próxima sexta-feira","field-day":"Dia","days-format-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"field-zone":"Fuso horário","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormatItem-y":"y","field-year-relative+-1":"ano passado","field-month-relative+-1":"mês passado","dateFormatItem-hm":"h:mm a","dayPeriods-format-abbr-pm":"p.m.","days-format-abbr":["dom","seg","ter","qua","qui","sex","sáb"],"dayPeriods-standAlone-abbr-pm":"p.m.","dateFormatItem-yMMMd":"d/MM/y",eraNames:["a.C.","d.C."],"days-format-narrow":["D","S","T","Q","Q","S","S"],"days-standAlone-narrow":["D","S","T","Q","Q","S","S"],"dateFormatItem-MMM":"LLL","field-month":"Mês","dateFormatItem-HHmm":"HH:mm","field-tue-relative+0":"esta terça-feira","field-tue-relative+1":"próxima terça-feira","dayPeriods-format-wide-am":"da manhã","dayPeriods-standAlone-wide-am":"a.m.","dateFormatItem-MMMMEd":"E, d 'de' MMMM","dateFormatItem-EHm":"E, HH:mm","field-mon-relative+0":"esta segunda-feira","field-mon-relative+1":"próxima segunda-feira","dateFormat-short":"dd/MM/yy","dateFormatItem-EHms":"E, HH:mm:ss","dateFormatItem-yMMMMEd":"E, d 'de' MMMM 'de' y","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"Segundo","field-sat-relative+-1":"sábado passado","dateFormatItem-yMMMEd":"E, d/MM/y","field-sun-relative+-1":"domingo passado","field-month-relative+0":"este mês","field-month-relative+1":"próximo mês","dateFormatItem-Ed":"E, d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Semana","dateFormat-medium":"dd/MM/y","field-year-relative+0":"este ano","field-week-relative+-1":"semana passada","field-year-relative+1":"próximo ano","dayPeriods-format-narrow-pm":"p.m.","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM 'de' y G","field-mon-relative+-1":"segunda-feira passada","field-week-relative+0":"esta semana","field-week-relative+1":"próxima semana"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],"months-format-narrow":["I","F","M","A","M","I","I","A","S","O","N","D"],"field-second-relative+0":"acum","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"zi a săptămânii","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, dd.MM.y","field-wed-relative+0":"miercurea aceasta","field-wed-relative+1":"miercurea viitoare","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-MMMEd":"E, d MMM",eraNarrow:["î.Hr.","î.e.n","d.Hr.","e.n."],"dateFormatItem-yMM":"MM.y","field-tue-relative+-1":"marțea trecută","days-format-short":["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"vinerea trecută","field-wed-relative+-1":"miercurea trecută","months-format-wide":["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"],"dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"p.m.","dateFormat-full":"EEEE, d MMMM y","field-thu-relative+-1":"joia trecută","dateFormatItem-Md":"dd.MM","dateFormatItem-yMd":"dd.MM.y","field-era":"eră","dateFormatItem-yM":"MM.y","months-standAlone-wide":["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"],"timeFormat-short":"HH:mm","quarters-format-wide":["trimestrul I","trimestrul al II-lea","trimestrul al III-lea","trimestrul al IV-lea"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"HH:mm:ss z","field-year":"an","dateFormatItem-yMMM":"MMM y","field-hour":"oră","dateFormatItem-MMdd":"dd.MM","months-format-abbr":["ian.","feb.","mar.","apr.","mai","iun.","iul.","aug.","sept.","oct.","nov.","dec."],"field-sat-relative+0":"sâmbăta aceasta","field-sat-relative+1":"sâmbăta viitoare","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"azi","field-thu-relative+0":"joia aceasta","field-day-relative+1":"mâine","field-thu-relative+1":"joia viitoare","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"poimâine","dateFormatItem-H":"HH","months-standAlone-abbr":["ian.","feb.","mar.","apr.","mai","iun.","iul.","aug.","sept.","oct.","nov.","dec."],"quarters-format-abbr":["trim. I","trim. II","trim. III","trim. IV"],"quarters-standAlone-wide":["trimestrul I","trimestrul al II-lea","trimestrul al III-lea","trimestrul al IV-lea"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"duminica aceasta","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"duminica viitoare","quarters-standAlone-abbr":["T1","T2","T3","T4"],eraAbbr:["î.Hr.","î.e.n","d.Hr.","e.n."],"field-minute":"minut","field-dayperiod":"a.m./p.m","days-standAlone-abbr":["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"ieri","dateFormatItem-h":"h a","dateTimeFormat-long":"{1}, {0}","field-day-relative+-2":"alaltăieri","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E, dd.MM","dateTimeFormat-full":"{1}, {0}","field-fri-relative+0":"vinerea aceasta","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"vinerea viitoare","field-day":"zi","days-format-wide":["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"],"field-zone":"fus orar","dateFormatItem-y":"y","months-standAlone-narrow":["I","F","M","A","M","I","I","A","S","O","N","D"],"field-year-relative+-1":"anul trecut","field-month-relative+-1":"luna trecută","dateFormatItem-hm":"h:mm a","days-format-abbr":["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],"dateFormatItem-yMMMd":"d MMM y",eraNames:["înainte de Hristos","după Hristos","d.Hr.","e.n."],"days-format-narrow":["D","L","M","M","J","V","S"],"days-standAlone-narrow":["D","L","M","M","J","V","S"],"dateFormatItem-MMM":"LLL","field-month":"lună","field-tue-relative+0":"marțea aceasta","field-tue-relative+1":"marțea viitoare","dayPeriods-format-wide-am":"a.m.","dateFormatItem-MMMMEd":"E, d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"lunea aceasta","field-mon-relative+1":"lunea viitoare","dateFormat-short":"dd.MM.y","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"secundă","field-sat-relative+-1":"sâmbăta trecută","dateFormatItem-yMMMEd":"E, d MMM y","field-sun-relative+-1":"duminica trecută","field-month-relative+0":"luna aceasta","field-month-relative+1":"luna viitoare","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"săptămână","dateFormat-medium":"d MMM y","field-year-relative+0":"anul acesta","field-week-relative+-1":"săptămâna trecută","field-year-relative+1":"anul viitor","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"lunea trecută","field-week-relative+0":"săptămâna aceasta","field-week-relative+1":"săptămâna viitoare"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["вс","пн","вт","ср","чт","пт","сб"],"months-format-narrow":["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],"field-second-relative+0":"сейчас","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"День недели","dateFormatItem-yQQQ":"QQQ y 'г'.","dateFormatItem-yMEd":"ccc, d.MM.y 'г'.","field-wed-relative+0":"в эту среду","dateFormatItem-GyMMMEd":"E, d MMM y G","dateFormatItem-MMMEd":"ccc, d MMM","field-wed-relative+1":"в следующую среду",eraNarrow:["до н.э.","н.э."],"dateFormatItem-yMM":"MM.y","field-tue-relative+-1":"в прошлый вторник","days-format-short":["вс","пн","вт","ср","чт","пт","сб"],"dateFormat-long":"d MMMM y 'г'.","field-fri-relative+-1":"в прошлую пятницу","field-wed-relative+-1":"в прошлую среду","months-format-wide":["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],"dateTimeFormat-medium":"{1}, {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, d MMMM y 'г'.","field-thu-relative+-1":"в прошлый четверг","dateFormatItem-Md":"dd.MM","dayPeriods-format-abbr-am":"AM","dateFormatItem-yMd":"dd.MM.y","dateFormatItem-yM":"MM.y","field-era":"Эра","months-standAlone-wide":["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],"timeFormat-short":"H:mm","quarters-format-wide":["1-й квартал","2-й квартал","3-й квартал","4-й квартал"],"timeFormat-long":"H:mm:ss z","dateFormatItem-yMMM":"LLL y","dateFormatItem-yQQQQ":"QQQQ y 'г'.","field-year":"Год","dateFormatItem-MMdd":"dd.MM","field-hour":"Час","months-format-abbr":["янв.","февр.","марта","апр.","мая","июня","июля","авг.","сент.","окт.","нояб.","дек."],"field-sat-relative+0":"в эту субботу","field-sat-relative+1":"в следующую субботу","timeFormat-full":"H:mm:ss zzzz","dateFormatItem-E":"ccc","field-day-relative+0":"сегодня","field-day-relative+1":"завтра","field-thu-relative+0":"в этот четверг","dateFormatItem-GyMMMd":"d MMM y 'г'. G","field-day-relative+2":"послезавтра","field-thu-relative+1":"в следующий четверг","dateFormatItem-H":"H","months-standAlone-abbr":["Янв.","Февр.","Март","Апр.","Май","Июнь","Июль","Авг.","Сент.","Окт.","Нояб.","Дек."],"quarters-format-abbr":["1-й кв.","2-й кв.","3-й кв.","4-й кв."],"quarters-standAlone-wide":["1-й квартал","2-й квартал","3-й квартал","4-й квартал"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],"dateFormatItem-yLLLL":"LLLL y","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"в это воскресенье","dateFormatItem-Hm":"H:mm","quarters-standAlone-abbr":["1-й кв.","2-й кв.","3-й кв.","4-й кв."],"field-sun-relative+1":"в следующее воскресенье",eraAbbr:["до н. э.","н. э."],"field-minute":"Минута","field-dayperiod":"ДП/ПП","days-standAlone-abbr":["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"вчера","dateFormatItem-h":"h a","dateTimeFormat-long":"{1}, {0}","dayPeriods-format-narrow-am":"AM","field-day-relative+-2":"позавчера","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E, dd.MM","dateTimeFormat-full":"{1}, {0}","field-fri-relative+0":"в эту пятницу","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"в следующую пятницу","field-day":"День","days-format-wide":["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],"field-zone":"Часовой пояс","dateFormatItem-y":"y","months-standAlone-narrow":["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],"field-year-relative+-1":"в прошлом году","field-month-relative+-1":"в прошлом месяце","dateFormatItem-hm":"h:mm a","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["вс","пн","вт","ср","чт","пт","сб"],eraNames:["до н.э.","н.э."],"dateFormatItem-yMMMd":"d MMM y 'г'.","days-format-narrow":["вс","пн","вт","ср","чт","пт","сб"],"days-standAlone-narrow":["В","П","В","С","Ч","П","С"],"dateFormatItem-MMM":"LLL","field-month":"Месяц","field-tue-relative+0":"в этот вторник","field-tue-relative+1":"в следующий вторник","dayPeriods-format-wide-am":"AM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"в этот понедельник","field-mon-relative+1":"в следующий понедельник","dateFormat-short":"dd.MM.yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"Секунда","field-sat-relative+-1":"в прошлую субботу","dateFormatItem-yMMMEd":"E, d MMM y","field-sun-relative+-1":"в прошлое воскресенье","field-month-relative+0":"в этом месяце","field-month-relative+1":"в следующем месяце","dateFormatItem-Ed":"ccc, d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Неделя","dateFormat-medium":"d MMM y 'г'.","field-year-relative+0":"в этому году","field-week-relative+-1":"на прошлой неделе","field-year-relative+1":"в следующем году","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1}, {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"LLL y G","field-mon-relative+-1":"в прошлый понедельник","field-week-relative+0":"на этой неделе","field-week-relative+1":"на следующей неделе"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm","days-standAlone-short":["Ne","Po","Ut","St","Št","Pi","So"],"months-format-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"field-second-relative+0":"teraz","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Deň v týždni","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d. M. y","field-wed-relative+0":"Túto stredu","field-wed-relative+1":"Budúcu stredu","dateFormatItem-GyMMMEd":"E, d. MMM y G","dateFormatItem-MMMEd":"E, d. MMM.",eraNarrow:["pred n.l.","n.l."],"field-tue-relative+-1":"Minulý utorok","days-format-short":["Ne","Po","Ut","St","Št","Pi","So"],"dateFormat-long":"d. MMMM y","field-fri-relative+-1":"Minulý piatok","field-wed-relative+-1":"Minulú stredu","months-format-wide":["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"],"dateTimeFormat-medium":"{1} {0}","dateFormatItem-yMMMMd":"d. MMMM y","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, d. MMMM y","field-thu-relative+-1":"Minulý štvrtok","dateFormatItem-Md":"d.M.","dateFormatItem-yMd":"d.M.y","field-era":"Éra","dateFormatItem-yM":"M.y","months-standAlone-wide":["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],"timeFormat-short":"H:mm","quarters-format-wide":["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"H:mm:ss z","field-year":"Rok","dateFormatItem-yMMM":"LLL y","field-hour":"Hodina","months-format-abbr":["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],"field-sat-relative+0":"Túto sobotu","field-sat-relative+1":"Budúcu sobotu","timeFormat-full":"H:mm:ss zzzz","field-day-relative+0":"Dnes","field-thu-relative+0":"Tento štvrtok","field-day-relative+1":"Zajtra","field-thu-relative+1":"Budúci štvrtok","dateFormatItem-GyMMMd":"d.M.y G","field-day-relative+2":"Pozajtra","dateFormatItem-H":"H","months-standAlone-abbr":["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L.","days-standAlone-wide":["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],"dateFormatItem-MMMMd":"d. MMMM","dateFormatItem-GyMMMMd":"d. MMMM y G","timeFormat-medium":"H:mm:ss","field-sun-relative+0":"Túto nedeľu","dateFormatItem-Hm":"H:mm","field-sun-relative+1":"Budúcu nedeľu","quarters-standAlone-abbr":["1Q","2Q","3Q","4Q"],eraAbbr:["pred n.l.","n.l."],"field-minute":"Minúta","field-dayperiod":"Časť dňa","days-standAlone-abbr":["ne","po","ut","st","št","pi","so"],"dateFormatItem-d":"d.","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Včera","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"Predvčerom","dateFormatItem-MMMd":"d. MMM.","dateFormatItem-MEd":"E, d.M.","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"Tento piatok","dateFormatItem-yMMMM":"LLLL y","field-fri-relative+1":"Budúci piatok","field-day":"Deň","days-format-wide":["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],"field-zone":"Časové pásmo","dateFormatItem-y":"y","months-standAlone-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"field-year-relative+-1":"Minulý rok","field-month-relative+-1":"Posledný mesiac","dateFormatItem-hm":"h:mm a","days-format-abbr":["ne","po","ut","st","št","pi","so"],"dateFormatItem-yMMMd":"d.M.y",eraNames:["pred n.l.","n.l."],"days-format-narrow":["N","P","U","S","Š","P","S"],"days-standAlone-narrow":["N","P","U","S","Š","P","S"],"dateFormatItem-MMM":"LLL","field-month":"Mesiac","field-tue-relative+0":"Tento utorok","field-tue-relative+1":"Budúci utorok","dayPeriods-format-wide-am":"AM","dateFormatItem-MMMMEd":"E, d. MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"Tento pondelok","field-mon-relative+1":"Budúci pondelok","dateFormat-short":"d.M.y","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss","field-second":"Sekunda","field-sat-relative+-1":"Minulú sobotu","dateFormatItem-yMMMEd":"E, d. MMM y","field-sun-relative+-1":"Minulú nedeľu","field-month-relative+0":"Tento mesiac","field-month-relative+1":"Budúci mesiac","dateFormatItem-Ed":"E d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Týždeň","dateFormat-medium":"d.M.y","field-year-relative+0":"Tento rok","field-week-relative+-1":"Minulý týždeň","field-year-relative+1":"Budúci rok","dateFormatItem-mmss":"mm:ss","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"LLL y G","field-mon-relative+-1":"Minulý pondelok","field-week-relative+0":"Tento týždeň","field-week-relative+1":"Budúci týždeň"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h.mm a","days-standAlone-short":["ned.","pon.","tor.","sre.","čet.","pet.","sob."],"months-format-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"field-second-relative+0":"zdaj","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Dan v tednu","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E, d. M. y","field-wed-relative+0":"To sredo","field-wed-relative+1":"Naslednjo sredo","dateFormatItem-GyMMMEd":"E, d. MMM y G","dateFormatItem-MMMEd":"E, d. MMM",eraNarrow:["pr. n. št.","po Kr.","po n. št."],"field-tue-relative+-1":"Prejšnji torek","days-format-short":["ned.","pon.","tor.","sre.","čet.","pet.","sob."],"dateFormat-long":"dd. MMMM y","field-fri-relative+-1":"Prejšnji petek","field-wed-relative+-1":"Prejšnjo sredo","months-format-wide":["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"pop.","dateFormat-full":"EEEE, dd. MMMM y","field-thu-relative+-1":"Prejšnji četrtek","dateFormatItem-Md":"d. M.","dateFormatItem-yMd":"d. M. y","field-era":"Doba","dateFormatItem-yM":"M/y","months-standAlone-wide":["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"],"timeFormat-short":"HH.mm","quarters-format-wide":["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"HH.mm.ss z","field-year":"Leto","dateFormatItem-yMMM":"MMM y","field-hour":"Ura","months-format-abbr":["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],"field-sat-relative+0":"To soboto","field-sat-relative+1":"Naslednjo soboto","timeFormat-full":"HH.mm.ss zzzz","field-day-relative+0":"Danes","field-thu-relative+0":"Ta četrtek","field-day-relative+1":"Jutri","field-thu-relative+1":"Naslednji četrtek","dateFormatItem-GyMMMd":"d. MMM y G","field-day-relative+2":"Pojutrišnjem","dateFormatItem-H":"HH","months-standAlone-abbr":["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"],"timeFormat-medium":"HH.mm.ss","field-sun-relative+0":"To nedeljo","dateFormatItem-Hm":"HH.mm","field-sun-relative+1":"Naslednjo nedeljo","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],eraAbbr:["pr. n. št.","po Kr.","po n. št."],"field-minute":"Minuta","field-dayperiod":"Čas dneva","days-standAlone-abbr":["ned","pon","tor","sre","čet","pet","sob"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm.ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Včeraj","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"Predvčerajšnjim","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E, d. MM.","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"Ta petek","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"Naslednji petek","field-day":"Dan","days-format-wide":["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"],"field-zone":"Območje","dateFormatItem-y":"y","months-standAlone-narrow":["j","f","m","a","m","j","j","a","s","o","n","d"],"field-year-relative+-1":"Lani","field-month-relative+-1":"Prejšnji mesec","dateFormatItem-hm":"h.mm a","days-format-abbr":["ned.","pon.","tor.","sre.","čet.","pet.","sob."],"dateFormatItem-GyM":"M/y G","dateFormatItem-yMMMd":"d. MMM y",eraNames:["pred našim štetjem","naše štetje","po n. št."],"days-format-narrow":["n","p","t","s","č","p","s"],"days-standAlone-narrow":["n","p","t","s","č","p","s"],"dateFormatItem-MMM":"LLL","field-month":"Mesec","field-tue-relative+0":"Ta torek","field-tue-relative+1":"Naslednji torek","dayPeriods-format-wide-am":"dop.","dateFormatItem-EHm":"E HH.mm","field-mon-relative+0":"Ta ponedeljek","field-mon-relative+1":"Naslednji ponedeljek","dateFormat-short":"d. MM. yy","dateFormatItem-EHms":"E HH.mm.ss","dateFormatItem-Ehms":"E h.mm.ss a","field-second":"Sekunda","field-sat-relative+-1":"Prejšnjo soboto","dateFormatItem-yMMMEd":"E, d. MMM y","field-sun-relative+-1":"Prejšnjo nedeljo","field-month-relative+0":"Ta mesec","field-month-relative+1":"Naslednji mesec","dateFormatItem-Ed":"E, d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Teden","dateFormat-medium":"d. MMM y","field-year-relative+0":"Letos","field-week-relative+-1":"Prejšnji teden","field-year-relative+1":"Naslednje leto","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH.mm.ss","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"Prejšnji ponedeljek","field-week-relative+0":"Ta teden","field-week-relative+1":"Naslednji teden"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E, h:mm a","days-standAlone-short":["не","по","ут","ср","че","пе","су"],"months-format-narrow":["ј","ф","м","а","м","ј","ј","а","с","о","н","д"],"field-second-relative+0":"сада","quarters-standAlone-narrow":["1.","2.","3.","4."],"field-weekday":"дан у недељи","dateFormatItem-yQQQ":"QQQ. y","dateFormatItem-yMEd":"E, d.M.y.","field-wed-relative+0":"ове среде","dateFormatItem-GyMMMEd":"E, d. MMM y. G","dateFormatItem-MMMEd":"E d. MMM","field-wed-relative+1":"следеће среде",eraNarrow:["п.н.е.","н.е."],"dateFormatItem-yMM":"MM.y.","field-tue-relative+-1":"прошлог уторка","dateFormatItem-MMMdd":"dd.MMM","days-format-short":["нед","пон","уто","сре","чет","пет","суб"],"dateFormat-long":"dd. MMMM y.","field-fri-relative+-1":"прошлог петка","field-wed-relative+-1":"прошле среде","months-format-wide":["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"поподне","dateFormat-full":"EEEE, dd. MMMM y.","field-thu-relative+-1":"прошлог четвртка","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d.M.y.","dateFormatItem-yM":"M.y.","field-era":"ера","months-standAlone-wide":["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],"timeFormat-short":"HH.mm","quarters-format-wide":["Прво тромесечје","Друго тромесечје","Треће тромесечје","Четврто тромесечје"],"timeFormat-long":"HH.mm.ss z","dateFormatItem-yMMM":"MMM y.","dateFormatItem-yQQQQ":"QQQQ. y","field-year":"година","dateFormatItem-MMdd":"MM-dd","field-hour":"час","months-format-abbr":["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],"field-sat-relative+0":"ове суботе","field-sat-relative+1":"следеће суботе","timeFormat-full":"HH.mm.ss zzzz","field-day-relative+0":"данас","field-day-relative+1":"сутра","field-thu-relative+0":"овог четвртка","dateFormatItem-GyMMMd":"d. MMM y. G","field-day-relative+2":"прекосутра","field-thu-relative+1":"следећег четвртка","dateFormatItem-H":"HH","months-standAlone-abbr":["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],"quarters-format-abbr":["К1","К2","К3","К4"],"quarters-standAlone-wide":["Прво тромесечје","Друго тромесечје","Треће тромесечје","Четврто тромесечје"],"dateFormatItem-Gy":"y. G","dateFormatItem-M":"L","days-standAlone-wide":["недеља","понедељак","уторак","среда","четвртак","петак","субота"],"dateFormatItem-MMMMd":"d. MMMM","timeFormat-medium":"HH.mm.ss","dateFormatItem-yMMdd":"dd.MM.y.","field-sun-relative+0":"ове недеље","dateFormatItem-Hm":"HH.mm","quarters-standAlone-abbr":["К1","К2","К3","К4"],"field-sun-relative+1":"следеће недеље",eraAbbr:["п. н. е.","н. е."],"field-minute":"минут","field-dayperiod":"пре подне/поподне","days-standAlone-abbr":["нед","пон","уто","сре","чет","пет","суб"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm.ss","quarters-format-narrow":["1.","2.","3.","4."],"field-day-relative+-1":"јуче","dateFormatItem-h":"hh a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"прекјуче","dateFormatItem-MMMd":"d. MMM","dateFormatItem-MEd":"E, M-d","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"овог петка","dateFormatItem-yMMMM":"MMMM y.","field-fri-relative+1":"следећег петка","field-day":"дан","days-format-wide":["недеља","понедељак","уторак","среда","четвртак","петак","субота"],"field-zone":"зона","dateFormatItem-y":"y.","months-standAlone-narrow":["ј","ф","м","а","м","ј","ј","а","с","о","н","д"],"field-year-relative+-1":"Прошле године","field-month-relative+-1":"Прошлог месеца","dateFormatItem-hm":"hh.mm a","days-format-abbr":["нед","пон","уто","сре","чет","пет","суб"],eraNames:["Пре нове ере","Нове ере"],"dateFormatItem-yMMMd":"d. MMM y.","days-format-narrow":["н","п","у","с","ч","п","с"],"days-standAlone-narrow":["н","п","у","с","ч","п","с"],"dateFormatItem-MMM":"LLL","field-month":"месец","field-tue-relative+0":"овог уторка","field-tue-relative+1":"следећег уторка","dayPeriods-format-wide-am":"пре подне","dateFormatItem-MMMMEd":"E d. MMMM","dateFormatItem-EHm":"E, HH:mm","field-mon-relative+0":"овог понедељка","field-mon-relative+1":"следећег понедељка","dateFormat-short":"d.M.yy.","dateFormatItem-EHms":"E, HH:mm:ss","dateFormatItem-Ehms":"E, h:mm:ss a","field-second":"секунд","field-sat-relative+-1":"прошле суботе","dateFormatItem-yMMMEd":"E, d. MMM y.","field-sun-relative+-1":"прошле недеље","field-month-relative+0":"Овог месеца","field-month-relative+1":"Следећег месеца","dateFormatItem-Ed":"E d.","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"недеља","dateFormat-medium":"dd.MM.y.","field-year-relative+0":"Ове године","field-week-relative+-1":"Прошле недеље","field-year-relative+1":"Следеће године","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH.mm.ss","dateFormatItem-hms":"hh.mm.ss a","dateFormatItem-GyMMM":"MMM y. G","field-mon-relative+-1":"прошлог понедељка","field-week-relative+0":"Ове недеље","field-week-relative+1":"Следеће недеље"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["Sö","Må","Ti","On","To","Fr","Lö"],"months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-second-relative+0":"nu","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Veckodag","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"E, y-MM-dd","field-wed-relative+0":"onsdag denna vecka","dateFormatItem-GyMMMEd":"E d MMM y G","dateFormatItem-MMMEd":"E d MMM","field-wed-relative+1":"onsdag nästa vecka",eraNarrow:["f.Kr.","fvt","e.Kr.","vt"],"dateFormatItem-yMM":"y-MM","field-tue-relative+-1":"tisdag förra veckan","days-format-short":["sö","må","ti","on","to","fr","lö"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"fredag förra veckan","field-wed-relative+-1":"onsdag förra veckan","months-format-wide":["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"em","dateFormat-full":"EEEE d MMMM y","field-thu-relative+-1":"torsdag förra veckan","dateFormatItem-Md":"d/M","dayPeriods-format-abbr-am":"FM","dateFormatItem-yMd":"y-MM-dd","dateFormatItem-yM":"y-MM","field-era":"Era","months-standAlone-wide":["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],"timeFormat-short":"HH:mm","quarters-format-wide":["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQQQQ":"y QQQQ","field-year":"År","dateFormatItem-MMdd":"dd/MM","field-hour":"timme","months-format-abbr":["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],"field-sat-relative+0":"lördag denna vecka","field-sat-relative+1":"lördag nästa vecka","timeFormat-full":"'kl'. HH:mm:ss zzzz","field-day-relative+0":"i dag","field-day-relative+1":"i morgon","field-thu-relative+0":"torsdag denna vecka","dateFormatItem-GyMMMd":"d MMM y G","field-day-relative+2":"i övermorgon","field-thu-relative+1":"torsdag nästa vecka","dateFormatItem-H":"HH","months-standAlone-abbr":["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],"quarters-format-abbr":["K1","K2","K3","K4"],"quarters-standAlone-wide":["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"],"dateFormatItem-Gy":"y G","dateFormatItem-M":"L","days-standAlone-wide":["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"söndag denna vecka","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["K1","K2","K3","K4"],"field-sun-relative+1":"söndag nästa vecka",eraAbbr:["f.Kr.","e.Kr."],"field-minute":"Minut","field-dayperiod":"fm/em","days-standAlone-abbr":["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"i går","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"f","field-day-relative+-2":"i förrgår","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"fredag denna vecka","field-fri-relative+1":"fredag nästa vecka","field-day":"Dag","days-format-wide":["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],"field-zone":"Tidszon","dateFormatItem-y":"y","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"field-year-relative+-1":"i fjol","field-month-relative+-1":"förra månaden","dateFormatItem-hm":"h:mm a","dayPeriods-format-abbr-pm":"EM","days-format-abbr":["sön","mån","tis","ons","tors","fre","lör"],eraNames:["före Kristus","före västerländsk tideräkning","efter Kristus","västerländsk tideräkning"],"dateFormatItem-yMMMd":"d MMM y","days-format-narrow":["S","M","T","O","T","F","L"],"days-standAlone-narrow":["S","M","T","O","T","F","L"],"dateFormatItem-MMM":"LLL","field-month":"Månad","field-tue-relative+0":"tisdag denna vecka","field-tue-relative+1":"tisdag nästa vecka","dayPeriods-format-wide-am":"fm","dateFormatItem-MMMMEd":"E d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"måndag denna vecka","field-mon-relative+1":"måndag nästa vecka","dateFormat-short":"y-MM-dd","dateFormatItem-MMd":"d/M","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"Sekund","field-sat-relative+-1":"lördag förra veckan","dateFormatItem-yMMMEd":"E d MMM y","field-sun-relative+-1":"söndag förra veckan","field-month-relative+0":"denna månad","field-month-relative+1":"nästa månad","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Vecka","dateFormat-medium":"d MMM y","field-year-relative+0":"i år","field-week-relative+-1":"förra veckan","field-year-relative+1":"nästa år","dayPeriods-format-narrow-pm":"e","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM y G","field-mon-relative+-1":"måndag förra veckan","field-week-relative+0":"denna vecka","field-week-relative+1":"nästa vecka"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],"months-format-narrow":["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],"field-second-relative+0":"ขณะนี้","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"วันในสัปดาห์","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"E d/M/y","field-wed-relative+0":"พุธนี้","field-wed-relative+1":"พุธหน้า","dateFormatItem-GyMMMEd":"E d MMM G y","dateFormatItem-MMMEd":"E d MMM",eraNarrow:["ก่อน ค.ศ.","ก.ส.ศ.","ค.ศ.","ส.ศ."],"field-tue-relative+-1":"อังคารที่แล้ว","days-format-short":["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"ศุกร์ที่แล้ว","field-wed-relative+-1":"พุธที่แล้ว","months-format-wide":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"หลังเที่ยง","dateFormat-full":"EEEEที่ d MMMM G y","field-thu-relative+-1":"พฤหัสที่แล้ว","dateFormatItem-Md":"d/M","dateFormatItem-yMd":"d/M/y","field-era":"สมัย","dateFormatItem-yM":"M/y","months-standAlone-wide":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"timeFormat-short":"HH:mm","quarters-format-wide":["ไตรมาส 1","ไตรมาส 2","ไตรมาส 3","ไตรมาส 4"],"dateFormatItem-yQQQQ":"QQQQ y","timeFormat-long":"H นาฬิกา mm นาที ss วินาที z","field-year":"ปี","dateFormatItem-yMMM":"MMM y","field-hour":"ชั่วโมง","months-format-abbr":["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],"field-sat-relative+0":"เสาร์นี้","field-sat-relative+1":"เสาร์หน้า","timeFormat-full":"H นาฬิกา mm นาที ss วินาที zzzz","field-day-relative+0":"วันนี้","field-thu-relative+0":"พฤหัสนี้","field-day-relative+1":"พรุ่งนี้","field-thu-relative+1":"พฤหัสหน้า","dateFormatItem-GyMMMd":"d MMM G y","field-day-relative+2":"มะรืนนี้","dateFormatItem-H":"HH","months-standAlone-abbr":["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],"quarters-format-abbr":["ไตรมาส 1","ไตรมาส 2","ไตรมาส 3","ไตรมาส 4"],"quarters-standAlone-wide":["ไตรมาส 1","ไตรมาส 2","ไตรมาส 3","ไตรมาส 4"],"dateFormatItem-Gy":"G y","dateFormatItem-M":"L","days-standAlone-wide":["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"],"dateFormatItem-MMMMd":"d MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"อาทิตย์นี้","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"อาทิตย์หน้า","quarters-standAlone-abbr":["ไตรมาส 1","ไตรมาส 2","ไตรมาส 3","ไตรมาส 4"],eraAbbr:["ปีก่อน ค.ศ.","ค.ศ."],"field-minute":"นาที","field-dayperiod":"ช่วงวัน","days-standAlone-abbr":["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"เมื่อวาน","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"เมื่อวานซืน","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"E d/M","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"ศุกร์นี้","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"ศุกร์หน้า","field-day":"วัน","days-format-wide":["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"],"field-zone":"เขตเวลา","dateFormatItem-y":"y","months-standAlone-narrow":["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],"field-year-relative+-1":"ปีที่แล้ว","field-month-relative+-1":"เดือนที่แล้ว","dateFormatItem-hm":"h:mm a","days-format-abbr":["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],"dateFormatItem-yMMMd":"d MMM y",eraNames:["ปีก่อนคริสต์ศักราช","ก่อนสามัญศักราช","คริสต์ศักราช","สามัญศักราช"],"days-format-narrow":["อา","จ","อ","พ","พฤ","ศ","ส"],"days-standAlone-narrow":["อา","จ","อ","พ","พฤ","ศ","ส"],"dateFormatItem-MMM":"LLL","field-month":"เดือน","field-tue-relative+0":"อังคารนี้","field-tue-relative+1":"อังคารหน้า","dayPeriods-format-wide-am":"ก่อนเที่ยง","dateFormatItem-MMMMEd":"E d MMMM","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"จันทร์นี้","field-mon-relative+1":"จันทร์หน้า","dateFormat-short":"d/M/yy","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","field-second":"วินาที","field-sat-relative+-1":"เสาร์ที่แล้ว","dateFormatItem-yMMMEd":"E d MMM y","field-sun-relative+-1":"อาทิตย์ที่แล้ว","field-month-relative+0":"เดือนนี้","field-month-relative+1":"เดือนหน้า","dateFormatItem-Ed":"E d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"สัปดาห์","dateFormat-medium":"d MMM y","field-year-relative+0":"ปีนี้","field-week-relative+-1":"สัปดาห์ที่แล้ว","field-year-relative+1":"ปีหน้า","dateFormatItem-mmss":"mm:ss","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"MMM G y","field-mon-relative+-1":"จันทร์ที่แล้ว","field-week-relative+0":"สัปดาห์นี้","field-week-relative+1":"สัปดาห์หน้า"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E a h:mm","days-standAlone-short":["Pa","Pt","Sa","Ça","Pe","Cu","Ct"],"months-format-narrow":["O","Ş","M","N","M","H","T","A","E","E","K","A"],"field-second-relative+0":"şimdi","quarters-standAlone-narrow":["1.","2.","3.","4."],"field-weekday":"Haftanın Günü","dateFormatItem-yQQQ":"y/QQQ","dateFormatItem-yMEd":"dd.MM.y E","field-wed-relative+0":"bu çarşamba","field-wed-relative+1":"gelecek çarşamba","dateFormatItem-GyMMMEd":"G d MMM y E","dateFormatItem-MMMEd":"d MMMM E",eraNarrow:["MÖ","MS"],"dateFormatItem-yMM":"MM.y","field-tue-relative+-1":"geçen salı","days-format-short":["Pa","Pt","Sa","Ça","Pe","Cu","Ct"],"dateFormat-long":"d MMMM y","field-fri-relative+-1":"geçen cuma","field-wed-relative+-1":"geçen çarşamba","months-format-wide":["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"ÖS","dateFormat-full":"d MMMM y EEEE","field-thu-relative+-1":"geçen perşembe","dateFormatItem-Md":"dd/MM","dateFormatItem-yMd":"dd.MM.y","field-era":"Miladi Dönem","dateFormatItem-yM":"MM/y","months-standAlone-wide":["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],"timeFormat-short":"HH:mm","quarters-format-wide":["1. çeyrek","2. çeyrek","3. çeyrek","4. çeyrek"],"dateFormatItem-yQQQQ":"y/QQQQ","timeFormat-long":"HH:mm:ss z","field-year":"Yıl","dateFormatItem-yMMM":"MMM y","field-hour":"Saat","months-format-abbr":["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],"field-sat-relative+0":"bu cumartesi","field-sat-relative+1":"gelecek cumartesi","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"bugün","field-thu-relative+0":"bu perşembe","field-day-relative+1":"yarın","field-thu-relative+1":"gelecek perşembe","dateFormatItem-GyMMMd":"G dd MMM y","field-day-relative+2":"öbür gün","dateFormatItem-H":"HH","months-standAlone-abbr":["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],"quarters-format-abbr":["Ç1","Ç2","Ç3","Ç4"],"quarters-standAlone-wide":["1. çeyrek","2. çeyrek","3. çeyrek","4. çeyrek"],"dateFormatItem-Gy":"G y","dateFormatItem-M":"L","days-standAlone-wide":["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],"dateFormatItem-MMMMd":"dd MMMM","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"bu pazar","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"gelecek pazar","quarters-standAlone-abbr":["Ç1","Ç2","Ç3","Ç4"],eraAbbr:["MÖ","MS"],"field-minute":"Dakika","field-dayperiod":"ÖÖ/ÖS","days-standAlone-abbr":["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1.","2.","3.","4."],"field-day-relative+-1":"dün","dateFormatItem-h":"a h","dateTimeFormat-long":"{1} {0}","field-day-relative+-2":"evvelsi gün","dateFormatItem-MMMd":"d MMM","dateFormatItem-MEd":"dd/MM E","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"bu cuma","dateFormatItem-yMMMM":"MMMM y","field-fri-relative+1":"gelecek cuma","field-day":"Gün","days-format-wide":["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],"field-zone":"Saat Dilimi","dateFormatItem-y":"y","months-standAlone-narrow":["O","Ş","M","N","M","H","T","A","E","E","K","A"],"field-year-relative+-1":"geçen yıl","field-month-relative+-1":"geçen ay","dateFormatItem-hm":"a h:mm","days-format-abbr":["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],"dateFormatItem-yMMMd":"dd MMM y",eraNames:["Milattan Önce","Milattan Sonra"],"days-format-narrow":["P","P","S","Ç","P","C","C"],"days-standAlone-narrow":["P","P","S","Ç","P","C","C"],"dateFormatItem-MMM":"LLL","field-month":"Ay","field-tue-relative+0":"bu salı","field-tue-relative+1":"gelecek salı","dayPeriods-format-wide-am":"ÖÖ","dateFormatItem-MMMMEd":"dd MMMM E","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"bu pazartesi","field-mon-relative+1":"gelecek pazartesi","dateFormat-short":"d.MM.y","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E a h:mm:ss","field-second":"Saniye","field-sat-relative+-1":"geçen cumartesi","dateFormatItem-yMMMEd":"d MMM y E","field-sun-relative+-1":"geçen pazar","field-month-relative+0":"bu ay","field-month-relative+1":"gelecek ay","dateFormatItem-Ed":"d E","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Hafta","dateFormat-medium":"d MMM y","field-year-relative+0":"bu yıl","field-week-relative+-1":"geçen hafta","field-year-relative+1":"gelecek yıl","dateFormatItem-mmss":"mm:ss","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"a h:mm:ss","dateFormatItem-GyMMM":"G MMM y","field-mon-relative+-1":"geçen pazartesi","field-week-relative+0":"bu hafta","field-week-relative+1":"gelecek hafta"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"Eah:mm","days-standAlone-short":["周日","周一","周二","周三","周四","周五","周六"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"现在","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"星期","dateFormatItem-yQQQ":"y年第Q季度","dateFormatItem-yMEd":"y/M/dE","field-wed-relative+0":"本周三","dateFormatItem-GyMMMEd":"Gy年M月d日E","dateFormatItem-MMMEd":"M月d日E","field-wed-relative+1":"下周三",eraNarrow:["公元前","公元"],"dateFormatItem-yMM":"y年M月","dayPeriods-format-wide-earlyMorning":"清晨","field-tue-relative+-1":"上周二","dayPeriods-format-wide-morning":"上午","days-format-short":["周日","周一","周二","周三","周四","周五","周六"],"dateFormat-long":"y年M月d日","field-fri-relative+-1":"上周五","field-wed-relative+-1":"上周三","months-format-wide":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"下午","dateFormat-full":"y年M月d日EEEE","field-thu-relative+-1":"上周四","dateFormatItem-Md":"M/d","dayPeriods-format-narrow-midDay":"中午","dayPeriods-format-wide-noon":"中午","dateFormatItem-yMd":"y/M/d","dateFormatItem-yM":"y/M","field-era":"纪元","months-standAlone-wide":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"timeFormat-short":"ah:mm","quarters-format-wide":["第一季度","第二季度","第三季度","第四季度"],"timeFormat-long":"zah:mm:ss","dateFormatItem-yMMM":"y年M月","dateFormatItem-yQQQQ":"y年第Q季度","field-year":"年","dateFormatItem-MMdd":"MM/dd","field-hour":"小时","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-sat-relative+0":"本周六","field-sat-relative+1":"下周六","timeFormat-full":"zzzzah:mm:ss","dayPeriods-format-narrow-morning":"上午","field-day-relative+0":"今天","field-day-relative+1":"明天","field-thu-relative+0":"本周四","dateFormatItem-GyMMMd":"Gy年M月d日","field-day-relative+2":"后天","field-thu-relative+1":"下周四","dateFormatItem-H":"H时","months-standAlone-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"quarters-format-abbr":["1季度","2季度","3季度","4季度"],"quarters-standAlone-wide":["第一季度","第二季度","第三季度","第四季度"],"dateFormatItem-Gy":"Gy年","dateFormatItem-M":"M月","days-standAlone-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"timeFormat-medium":"ah:mm:ss","field-sun-relative+0":"本周日","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["1季度","2季度","3季度","4季度"],"field-sun-relative+1":"下周日",eraAbbr:["公元前","公元"],"field-minute":"分钟","field-dayperiod":"上午/下午","days-standAlone-abbr":["周日","周一","周二","周三","周四","周五","周六"],"dayPeriods-format-wide-night":"晚上","dateFormatItem-d":"d日","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"昨天","dateFormatItem-h":"ah时","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"上午","field-day-relative+-2":"前天","dateFormatItem-MMMd":"M月d日","dayPeriods-format-wide-midDay":"中午","dateFormatItem-MEd":"M/dE","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"本周五","dateFormatItem-yMMMM":"y年M月","field-fri-relative+1":"下周五","field-day":"日","days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"field-zone":"时区","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-y":"y年","field-year-relative+-1":"去年","dayPeriods-format-narrow-night":"晚上","field-month-relative+-1":"上个月","dateFormatItem-hm":"ah:mm","dayPeriods-format-narrow-weeHours":"凌晨","days-format-abbr":["周日","周一","周二","周三","周四","周五","周六"],eraNames:["公元前","公元"],"dateFormatItem-yMMMd":"y年M月d日","days-format-narrow":["日","一","二","三","四","五","六"],"dayPeriods-format-narrow-earlyMorning":"清晨","days-standAlone-narrow":["日","一","二","三","四","五","六"],"dateFormatItem-MMM":"LLL","field-month":"月","field-tue-relative+0":"本周二","field-tue-relative+1":"下周二","dayPeriods-format-wide-am":"上午","dateFormatItem-EHm":"EHH:mm","dayPeriods-format-wide-weeHours":"凌晨","dateFormatItem-MMMMdd":"M月dd日","field-mon-relative+0":"本周一","field-mon-relative+1":"下周一","dateFormat-short":"yy/M/d","dayPeriods-format-wide-afternoon":"下午","dateFormatItem-EHms":"EHH:mm:ss","dateFormatItem-Ehms":"Eah:mm:ss","dayPeriods-format-narrow-afternoon":"下午","dayPeriods-format-narrow-noon":"中午","field-second":"秒钟","field-sat-relative+-1":"上周六","dateFormatItem-yMMMEd":"y年M月d日E","field-sun-relative+-1":"上周日","field-month-relative+0":"本月","field-month-relative+1":"下个月","dateFormatItem-Ed":"d日E","dateTimeFormats-appendItem-Timezone":"{1}{0}","field-week":"周","dateFormat-medium":"y年M月d日","field-year-relative+0":"今年","field-week-relative+-1":"上周","field-year-relative+1":"明年","dayPeriods-format-narrow-pm":"下午","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"ah:mm:ss","dateFormatItem-GyMMM":"Gy年M月","field-mon-relative+-1":"上周一","field-week-relative+0":"本周","field-week-relative+1":"下周"}},function(e,t,i){e.exports={"dateFormatItem-Ehm":"E a h:mm","days-standAlone-short":["日","一","二","三","四","五","六"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"現在","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"週天","dateFormatItem-yQQQ":"y年QQQ","dateFormatItem-yMEd":"y/M/d(E)","field-wed-relative+0":"本週三","dateFormatItem-GyMMMEd":"G y 年 M 月 d 日E","dateFormatItem-MMMEd":"M月d日E","field-wed-relative+1":"下週三",eraNarrow:["西元前","公元前","西元","公元"],"dateFormatItem-yMM":"y-MM","dayPeriods-format-wide-earlyMorning":"清晨","field-tue-relative+-1":"上週二","dayPeriods-format-wide-morning":"上午","days-format-short":["日","一","二","三","四","五","六"],"dateFormat-long":"y年M月d日","field-fri-relative+-1":"上週五","field-wed-relative+-1":"上週三","months-format-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"下午","dateFormat-full":"y年M月d日EEEE","field-thu-relative+-1":"上週四","dateFormatItem-Md":"M/d","dayPeriods-format-narrow-midDay":"中午","dayPeriods-format-wide-noon":"中午","dateFormatItem-yMd":"y/M/d","dateFormatItem-yM":"y/M","field-era":"年代","months-standAlone-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"timeFormat-short":"ah:mm","quarters-format-wide":["第1季","第2季","第3季","第4季"],"timeFormat-long":"zah時mm分ss秒","dateFormatItem-yMMM":"y年M月","dateFormatItem-yQQQQ":"y年QQQQ","field-year":"年","dateFormatItem-MMdd":"MM/dd","field-hour":"小時","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-sat-relative+0":"本週六","field-sat-relative+1":"下週六","timeFormat-full":"zzzzah時mm分ss秒","dayPeriods-format-narrow-morning":"上午","field-day-relative+0":"今天","field-day-relative+1":"明天","field-thu-relative+0":"本週四","dateFormatItem-GyMMMd":"G y 年 M 月 d 日","field-day-relative+2":"後天","field-thu-relative+1":"下週四","dateFormatItem-H":"H時","months-standAlone-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"quarters-format-abbr":["1季","2季","3季","4季"],"quarters-standAlone-wide":["第1季","第2季","第3季","第4季"],"dateFormatItem-Gy":"G y 年","dateFormatItem-M":"M月","days-standAlone-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"timeFormat-medium":"ah:mm:ss","field-sun-relative+0":"本週日","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["1季","2季","3季","4季"],"field-sun-relative+1":"下週日",eraAbbr:["西元前","西元"],"field-minute":"分鐘","field-dayperiod":"上午/下午","days-standAlone-abbr":["週日","週一","週二","週三","週四","週五","週六"],"dayPeriods-format-wide-night":"晚上","dateFormatItem-d":"d日","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"昨天","dateFormatItem-h":"ah時","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"上午","field-day-relative+-2":"前天","dateFormatItem-MMMd":"M月d日","dayPeriods-format-wide-midDay":"中午","dateFormatItem-MEd":"M/d(E)","dateTimeFormat-full":"{1}{0}","field-fri-relative+0":"本週五","dateFormatItem-yMMMM":"y年M月","field-fri-relative+1":"下週五","field-day":"日","days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"field-zone":"時區","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-y":"y年","field-year-relative+-1":"去年","dayPeriods-format-narrow-night":"晚上","field-month-relative+-1":"上個月","dateFormatItem-hm":"ah:mm","dayPeriods-format-narrow-weeHours":"凌晨","days-format-abbr":["週日","週一","週二","週三","週四","週五","週六"],eraNames:["西元前","公元前","西元","公元"],"dateFormatItem-yMMMd":"y年M月d日","days-format-narrow":["日","一","二","三","四","五","六"],"dayPeriods-format-narrow-earlyMorning":"清晨","days-standAlone-narrow":["日","一","二","三","四","五","六"],"dateFormatItem-MMM":"LLL","field-month":"月","field-tue-relative+0":"本週二","field-tue-relative+1":"下週二","dayPeriods-format-wide-am":"上午","dateFormatItem-EHm":"E HH:mm","dayPeriods-format-wide-weeHours":"凌晨","dateFormatItem-MMMMdd":"M月dd日","field-mon-relative+0":"本週一","field-mon-relative+1":"下週一","dateFormat-short":"y/M/d","dayPeriods-format-wide-afternoon":"下午","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E a h:mm:ss","dayPeriods-format-narrow-afternoon":"下午","dayPeriods-format-narrow-noon":"中午","field-second":"秒","field-sat-relative+-1":"上週六","dateFormatItem-yMMMEd":"y年M月d日E","field-sun-relative+-1":"上週日","field-month-relative+0":"本月","field-month-relative+1":"下個月","dateFormatItem-Ed":"d日(E)","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"週","dateFormat-medium":"y年M月d日","field-year-relative+0":"今年","field-week-relative+-1":"上週","field-year-relative+1":"明年","dayPeriods-format-narrow-pm":"下午","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"ah:mm:ss","dateFormatItem-GyMMM":"G y 年 M 月","field-mon-relative+-1":"上週一","field-week-relative+0":"本週","field-week-relative+1":"下週"}},function(e,t,i){e.exports={"field-sat-relative+0":"本週六","field-sat-relative+1":"下週六","field-sun-relative+-1":"上週日","field-mon-relative+-1":"上週一","field-minute":"分鐘",eraNames:["西元前","西元"],"dateTimeFormat-full":"{1}{0}","field-weekday":"週天","dateFormatItem-yQQQ":"y年QQQ","field-era":"年代","dateFormatItem-Gy":"G y 年","field-hour":"小時","quarters-standAlone-abbr":["第1季","第2季","第3季","第4季"],"timeFormat-full":"zzzzah時mm分ss秒","dateTimeFormats-appendItem-Timezone":"{0} {1}","dateFormatItem-yMM":"y-MM","field-sun-relative+0":"本週日","field-sun-relative+1":"下週日","field-wed-relative+-1":"上週三","dateFormatItem-Ed":"d日(E)",eraAbbr:["西元前","西元"],"field-day-relative+2":"後天","dateFormatItem-GyMMMd":"G y 年 M 月 d 日","field-zone":"時區","field-tue-relative+0":"本週二","dateFormatItem-Ehm":"E a h:mm","field-tue-relative+1":"下週二","field-week-relative+-1":"上週","field-sat-relative+-1":"上週六",$locale:"zh-hant-hk","quarters-standAlone-wide":["第1季","第2季","第3季","第4季"],"field-fri-relative+0":"本週五","field-fri-relative+1":"下週五","months-standAlone-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-week":"週","field-week-relative+0":"本週","dateFormatItem-Ehms":"E a h:mm:ss","field-week-relative+1":"下週","timeFormat-long":"zah時mm分ss秒","dateFormatItem-yQQQQ":"y年QQQQ","field-month-relative+1":"下個月","dateFormatItem-H":"H時","field-fri-relative+-1":"上週五","quarters-format-abbr":["第1季","第2季","第3季","第4季"],"field-second":"秒","dateFormatItem-GyMMMEd":"G y 年 M 月 d 日E","field-tue-relative+-1":"上週二","dateFormatItem-GyMMM":"G y 年 M 月","dateFormatItem-MEd":"M/d(E)","field-mon-relative+0":"本週一","field-mon-relative+1":"下週一","field-second-relative+0":"現在","field-thu-relative+0":"本週四","dateFormat-short":"y/M/d","field-thu-relative+1":"下週四","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-EHm":"E HH:mm","dateFormatItem-yMEd":"y/M/d(E)","field-wed-relative+0":"本週三","months-format-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-wed-relative+1":"下週三","field-month-relative+-1":"上個月","quarters-format-wide":["第1季","第2季","第3季","第4季"],eraNarrow:["西元前","西元"],"dateFormatItem-h":"ah時","field-thu-relative+-1":"上週四"}},function(e,t,i){e.exports={"field-sat-relative+0":"本週六","field-sat-relative+1":"下週六","field-sun-relative+-1":"上週日","field-mon-relative+-1":"上週一","field-minute":"分鐘",eraNames:["西元前","西元"],"dateTimeFormat-full":"{1}{0}","field-weekday":"週天","dateFormatItem-yQQQ":"y年QQQ","field-era":"年代","dateFormatItem-Gy":"G y 年","field-hour":"小時","quarters-standAlone-abbr":["第1季","第2季","第3季","第4季"],"timeFormat-full":"zzzzah時mm分ss秒","dateTimeFormats-appendItem-Timezone":"{0} {1}","dateFormatItem-yMM":"y-MM","field-sun-relative+0":"本週日","field-sun-relative+1":"下週日","field-wed-relative+-1":"上週三","dateFormatItem-Ed":"d日(E)",eraAbbr:["西元前","西元"],"field-day-relative+2":"後天","dateFormatItem-GyMMMd":"G y 年 M 月 d 日","field-zone":"時區","field-tue-relative+0":"本週二","dateFormatItem-Ehm":"E a h:mm","field-tue-relative+1":"下週二","field-week-relative+-1":"上週","field-sat-relative+-1":"上週六",$locale:"zh-hant-tw","quarters-standAlone-wide":["第1季","第2季","第3季","第4季"],"field-fri-relative+0":"本週五","field-fri-relative+1":"下週五","months-standAlone-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-week":"週","field-week-relative+0":"本週","dateFormatItem-Ehms":"E a h:mm:ss","field-week-relative+1":"下週","timeFormat-long":"zah時mm分ss秒","dateFormatItem-yQQQQ":"y年QQQQ","field-month-relative+1":"下個月","dateFormatItem-H":"H時","field-fri-relative+-1":"上週五","quarters-format-abbr":["第1季","第2季","第3季","第4季"],"field-second":"秒","dateFormatItem-GyMMMEd":"G y 年 M 月 d 日E","field-tue-relative+-1":"上週二","dateFormatItem-GyMMM":"G y 年 M 月","dateFormatItem-MEd":"M/d(E)","field-mon-relative+0":"本週一","field-mon-relative+1":"下週一","field-second-relative+0":"現在","field-thu-relative+0":"本週四","dateFormat-short":"y/M/d","field-thu-relative+1":"下週四","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-EHm":"E HH:mm","dateFormatItem-yMEd":"y/M/d(E)","field-wed-relative+0":"本週三","months-format-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"field-wed-relative+1":"下週三","field-month-relative+-1":"上個月","quarters-format-wide":["第1季","第2季","第3季","第4季"],eraNarrow:["西元前","西元"],"dateFormatItem-h":"ah時","field-thu-relative+-1":"上週四"}},function(e,t,i){e.exports={root:{"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"months-format-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-second-relative+0":"now","quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Day of the Week","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"y-MM-dd, E","field-wed-relative+0":"this Wednesday","field-wed-relative+1":"next Wednesday","dateFormatItem-GyMMMEd":"G y MMM d, E","dateFormatItem-MMMEd":"MMM d, E",eraNarrow:["BCE","CE"],"field-tue-relative+-1":"last Tuesday","days-format-short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormat-long":"y MMMM d","field-fri-relative+-1":"last Friday","field-wed-relative+-1":"last Wednesday","months-format-wide":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"dateTimeFormat-medium":"{1} {0}","dayPeriods-format-wide-pm":"PM","dateFormat-full":"y MMMM d, EEEE","field-thu-relative+-1":"last Thursday","dateFormatItem-Md":"MM-dd","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","dayPeriods-format-wide-noon":"noon","dateFormatItem-yMd":"y-MM-dd","field-era":"Era","dateFormatItem-yM":"y-MM","months-standAlone-wide":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"timeFormat-short":"HH:mm","quarters-format-wide":["Q1","Q2","Q3","Q4"],"dateFormatItem-yQQQQ":"y QQQQ","timeFormat-long":"HH:mm:ss z","field-year":"Year","dateFormatItem-yMMM":"y MMM","dateTimeFormats-appendItem-Era":"{1} {0}","field-hour":"Hour","months-format-abbr":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"field-sat-relative+0":"this Saturday","field-sat-relative+1":"next Saturday","timeFormat-full":"HH:mm:ss zzzz","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","field-day-relative+0":"today","field-thu-relative+0":"this Thursday","field-day-relative+1":"tomorrow","field-thu-relative+1":"next Thursday","dateFormatItem-GyMMMd":"G y MMM d","dateFormatItem-H":"HH","months-standAlone-abbr":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["Q1","Q2","Q3","Q4"],"dateFormatItem-Gy":"G y","dateFormatItem-M":"L","days-standAlone-wide":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayPeriods-format-abbr-noon":"noon","timeFormat-medium":"HH:mm:ss","field-sun-relative+0":"this Sunday","dateFormatItem-Hm":"HH:mm","field-sun-relative+1":"next Sunday","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],eraAbbr:["BCE","CE"],"field-minute":"Minute","field-dayperiod":"Dayperiod","days-standAlone-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"yesterday","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"a","dateFormatItem-h":"h a","dateFormatItem-MMMd":"MMM d","dateFormatItem-MEd":"MM-dd, E","dateTimeFormat-full":"{1} {0}","field-fri-relative+0":"this Friday","field-fri-relative+1":"next Friday","field-day":"Day","days-format-wide":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"field-zone":"Zone","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"dateFormatItem-y":"y","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","field-year-relative+-1":"last year","field-month-relative+-1":"last month","dateTimeFormats-appendItem-Year":"{1} {0}","dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],eraNames:["BCE","CE"],"dateFormatItem-yMMMd":"y MMM d","days-format-narrow":["S","M","T","W","T","F","S"],"field-month":"Month","days-standAlone-narrow":["S","M","T","W","T","F","S"],"dateFormatItem-MMM":"LLL","field-tue-relative+0":"this Tuesday","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","field-tue-relative+1":"next Tuesday","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateFormatItem-EHm":"E HH:mm","field-mon-relative+0":"this Monday","field-mon-relative+1":"next Monday","dateFormat-short":"y-MM-dd","dateFormatItem-EHms":"E HH:mm:ss","dateFormatItem-Ehms":"E h:mm:ss a","dayPeriods-format-narrow-noon":"n","field-second":"Second","field-sat-relative+-1":"last Saturday","dateFormatItem-yMMMEd":"y MMM d, E","field-sun-relative+-1":"last Sunday","field-month-relative+0":"this month","field-month-relative+1":"next month","dateTimeFormats-appendItem-Timezone":"{0} {1}","dateFormatItem-Ed":"d, E","field-week":"Week","dateFormat-medium":"y MMM d","field-week-relative+-1":"last week","field-year-relative+0":"this year","field-year-relative+1":"next year","dayPeriods-format-narrow-pm":"p","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-GyMMM":"G y MMM","field-mon-relative+-1":"last Monday","field-week-relative+0":"this week","field-week-relative+1":"next week"},ar:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,"en-au":!0,"en-ca":!0,"en-gb":!0,es:!0,fi:!0,fr:!0,"fr-ch":!0,he:!0,hr:!0,hu:!0,it:!0,ja:!0,ko:!0,mk:!0,nb:!0,nl:!0,pl:!0,pt:!0,"pt-pt":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,zh:!0,"zh-hant":!0,"zh-hk":!0,"zh-tw":!0}},function(e,t,i){var n,o;n=[i(218),i(220),i(8265)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/versioning",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{restoreAsLatest:"Restore as Latest",older:"Older",newer:"Newer",latest:"Latest",historyLabel:"History:",loading:"Loading...",lessThanMinute:"Less than a minute ago",minuteAgo:"{number} minute ago",minutesAgo:"{number} minutes ago",hourAgo:"{number} hour ago",hoursAgo:"{number} hours ago"}}},function(e,t,i){var n,o;n=[i(203),i(204),i(509),i(292),i(263)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{constructor:function(){this.enableFeature()},enableFeature:function(){o.getSetting(["matlab","desktop"],"EnableLiveClassSupport").then(t.hitch(this,(function(e){e.value||this.disableFeature()})))},disableFeature:function(){var e=n.getInstance();this._remove(e,"motwToolstrip.matlabTab.file.new.newList.liveClass"),this._remove(e,"motwToolstrip.editorTab.file.new.newList.liveClass"),this._remove(e,"motwToolstrip.liveEditorTab.file.new.newList.liveClass")},_remove:function(e,t){var i=e.tagToId(t);i&&e.exists(i)&&!e.isAnOrphan(i)&&e.remove(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(219),i(299),i(280),i(509),i(549)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([r],{_CREATE_NEW_UNTITLED_BUFFER_MESSAGE_CHANNEL:"/editor/createNewUntitledBuffer",_CREATE_UNTITLED_FILE_COMMAND:"matlab.codetools.internal.edit.createUntitledFile",constructor:function(){i.subscribe(this._CREATE_NEW_UNTITLED_BUFFER_MESSAGE_CHANNEL,"_createNewUntitledBuffer",this)},_createNewUntitledBuffer:function(e){if(o.fileDataService.enableUntitledBuffer){var t,i=n.NEW_FILE;e.data&&(t={ignoreTemplates:!0},e.data.editorId?(t.editorId=e.data.editorId,t.fileContents=e.data.fileContents):(t.fileContents=e.data,i=n.NEW_LIVE_SCRIPT,t.fileContents=a.fromJson(t.fileContents)),t.isModified=!!t.fileContents),o.actionService.executeAction(i,t)}else o.executionService.executionEval(this._CREATE_UNTITLED_FILE_COMMAND)},enableFeature:function(){o.fileDataService.enableUntitledBuffer=!0},disableFeature:function(){o.fileDataService.enableUntitledBuffer=!1},destroy:function(){i.unsubscribe(this._CREATE_NEW_UNTITLED_BUFFER_MESSAGE_CHANNEL,"_createNewUntitledBuffer",this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(280),i(509)],o=i.dj.d(n,(function(e,t,i){return e([i],{enableFeature:function(){t.editorService.enableSaveOptions=!0},disableFeature:function(){t.editorService.enableSaveOptions=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8270)],o=i.dj.d(n,(function(e){return class extends e{constructor(e){super(),this._editorService=e}openFileInEditor(e){return this._editorService.openFile(e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return class{openFileInEditor(){(e=>{throw new Error("Unimplemented API: "+e)})("openFileInEditor")}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(263),i(230),i(233),i(8272),i(8273)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(n,{_RECENT_FILES_LIST_SETTING_ID:"RecentFileList",_FILE_LIST_SIZE_SETTING_ID:"RecentFileListSize",_EDITOR_MATLAB_SETTING_PATH:["matlab","editor"],_MAX_FILELIST_SIZE:12,constructor:function(e){this._editorService=e.editorService,this._recentFileListSize=this._MAX_FILELIST_SIZE,this._recentFilePathList=new r,this._recentFileListUI=new a,this._recentFileListSizeSettingListener=null,this._registerSettings(),this._registerEventListeners()},_registerEventListeners:function(){this.own(t.after(this._editorService,"onOpen",this._addToRecentFileList.bind(this),!0))},_registerSettings:function(){i.getSetting(this._EDITOR_MATLAB_SETTING_PATH,this._RECENT_FILES_LIST_SETTING_ID).then(function(e){for(var t=e.value.length-1;t>=0;t--)this._recentFilePathList.add(e.value[t]);this._saveRecentFileListToSettings()}.bind(this)).then(function(){i.getSetting(this._EDITOR_MATLAB_SETTING_PATH,this._FILE_LIST_SIZE_SETTING_ID).then(function(e){this._setRecentFileListSize(e.value)}.bind(this))}.bind(this)),this._recentFileListSizeSettingListener=i.listenTo(this._EDITOR_MATLAB_SETTING_PATH,this._FILE_LIST_SIZE_SETTING_ID,function(e){this._setRecentFileListSize(e.newValue)}.bind(this))},_addToRecentFileList:function(e){var i=e.getFile();if(i&&e.widget.getBackingStore){var n=e.widget.getBackingStore();e.editor.own(t.after(n,"onLocationUpdated",this._fileToBeAddedToRecentFileList.bind(this),!0))}if(i&&!i.isUntitled){var r=o.pathFromFileInfo(i.fileInfo);this._fileToBeAddedToRecentFileList(r)}},_fileToBeAddedToRecentFileList:function(e){this._recentFilePathList.add(e),this._updateRecentFileList(),this._saveRecentFileListToSettings()},_setRecentFileListSize:function(e){this._recentFileListSize=e,this._updateRecentFileList()},_getRecentFileList:function(e){return this._recentFilePathList.getValues().slice(0,e)},_updateRecentFileList:function(){this._recentFileListUI.setRecentFileListUI(this._getRecentFileList(this._recentFileListSize))},_saveRecentFileListToSettings:function(){this._getRecentFileList(this._MAX_FILELIST_SIZE).length>0&&i.setSetting(this._EDITOR_MATLAB_SETTING_PATH,this._RECENT_FILES_LIST_SETTING_ID,this._getRecentFileList(this._MAX_FILELIST_SIZE))},_teardownRecentFileListSizeSetting:function(){this._recentFileListSizeSettingListener&&(this._recentFileListSizeSettingListener.remove(),this._recentFileListSizeSettingListener=null)},destroy:function(){this._recentFileListUI.destroy(),this._teardownRecentFileListSizeSetting(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){this._setItems=[]},add:function(e){this._setItems.reverse();var t=this._setItems.indexOf(e);t>=0&&this._setItems.splice(t,1),this._setItems.slice(),this._setItems.push(e),this._setItems.reverse()},getValues:function(){return this._setItems},clear:function(){this._setItems=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(290),i(418),i(292),i(8274),i(233),i(291)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l;return t(e,{_OPEN_RECENT_LIST_TAG:"motwToolstrip.matlabTab.file.open.openList",_FILE_LIST_ITEM_TAG:"FileListItem",_FILE_LIST_HEADER_TAG:"FileListHeader",constructor:function(){l=o.getInstance(),this._openPopupListId=l.tagToId(this._OPEN_RECENT_LIST_TAG),this._popupList=new r(l,this._openPopupListId),this._mvm=s.getMVM(),this._filesChangedInList=!1,this._recentFileList=[],this._onOpenEvent=void 0,this._fileIconProvider=n.getFileIconProvider(),this._registerOnOpenEventCallback()},setRecentFileListUI:function(e){this._recentFileList=e,this._filesInListChanged()},_registerOnOpenEventCallback:function(){this._openPopupListId&&(this._onOpenEvent=l.addEventCallback(this._openPopupListId,(function(e){"onOpen"===e.eventType&&this._createRecentFileListUIElements()}),this))},_createRecentFileListUIElements:function(){this._filesChangedInList&&0!==this._recentFileList.length&&(this._createPopupListHeader(),this._createPopupListItems(this._recentFileList),this._filesChangedInList=!1)},_filesInListChanged:function(){this._filesChangedInList=!0,this._popupList.destroyPopupList()},_createPopupListHeader:function(){this._popupList.createPopupListHeader(this._FILE_LIST_HEADER_TAG,i.showRecentFiles)},_createPopupListItems:function(){this._recentFileList.forEach(function(e,t){if(!e)return;let i=a.fileInfoFromPath(e);this._fileIconProvider.getIconData(i).then(i=>{let n=this._popupList.createPopupListItem(this._FILE_LIST_ITEM_TAG+t,a.nameFromPath(e),e,i);this._addCallbackForListItem(n,e)})}.bind(this))},_addCallbackForListItem:function(e,t){l.addEventCallback(e,(function(){this._mvm.feval("edit",0,[t])}),this)},destroy:function(){this._popupList.destroyPopupList(),this._mvm.destroy(),this._onOpenEvent.remove(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(226)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t){this._uiBuilder=e,this._popupListId=t,this._popupListEntryIds=[],this._popupListHeaderId=null},_addChildIdToToolstrip:function(e){this._uiBuilder.add(e,this._popupListId)},createPopupListHeader:function(e,i){this._popupListHeaderId=this._uiBuilder.create({tag:e+"header",title:i,type:t.POPUP_LIST_HEADER}),this._addChildIdToToolstrip(this._popupListHeaderId)},createPopupListItem:function(e,i,n,o){var r=this._uiBuilder.create({type:t.LIST_ITEM,tag:e,text:i,description:n,icon:o.iconData});return this._popupListEntryIds.push(r),this._addChildIdToToolstrip(r),r},_destroyToolstripItem:function(e){this._uiBuilder.exists(e)&&this._uiBuilder.destroy(e)},destroyPopupList:function(){this._destroyToolstripItem(this._popupListHeaderId),this._popupListHeaderId=null,this._popupListEntryIds.forEach(this._destroyToolstripItem,this),this._popupListEntryIds=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(230),i(219),i(1147),i(8276),i(2607),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([n],{embeddedFigureChannel:"/embedded/figure",constructor:function(e){l.assert(e.layoutService,"layoutService is required to initialize EmbeddedFigureWidgetManager"),this.layoutService=e.layoutService,this._embeddedFigureFactory=new r,this._embeddedFigureConextualToolstripManager=new s(e.layoutService),this._figureMap={},this.messageService=e.messageService?e.messageService:o},subscribe:function(){var e=!0;try{this.messageService.subscribe(this.embeddedFigureChannel+"/*",this._handleMessage,this)}catch(t){e=!1}return e},refreshFigures:function(){this.messageService.publish(this.embeddedFigureChannel+"/figureRefresh",{})},_handleMessage:function(e){e.channel.indexOf("figureCreated")>0?this._createEmbeddedFigureWidget(e.data):e.channel.indexOf("figureMorphed")>0&&this._morphEmbeddedFigureWidget(e.data)},_createEmbeddedFigureWidget:function(e){var n=e.channel;if(!this._figureMap.hasOwnProperty(n)){var o={embeddedFigureFactory:this._embeddedFigureFactory,embeddedFigureConextualToolstripManager:this._embeddedFigureConextualToolstripManager,layoutService:this.layoutService,data:e},r=new a(o);this._figureMap[n]=r,this.own(i.after(r,"_handleWindowClosed",t.hitch(this,"_handleWidgetClose",n)))}},_morphEmbeddedFigureWidget:function(e){var t=e.channel,i=this._getEmbeddedFigureWidget(t);i&&(i.setFigureMorphed(),delete this._figureMap[t])},_handleWidgetClose:function(e){this._getEmbeddedFigureWidget(e)&&delete this._figureMap[e]},reset:function(){Object.keys(this._figureMap).forEach((function(e){var t=this._figureMap[e];t&&t.destroy()}),this);this._figureMap={},this.messageService.unsubscribe(this.embeddedFigureChannel+"/*")},_getEmbeddedFigureWidget:function(e){return this._figureMap[e]},destroy:function(){this.inherited(arguments),this._figureMap={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(210),i(217),i(211),i(222),i(206),i(215),i(216),i(255),i(8277),i(8278),i(646),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([l,c,d,a],{templateString:h,documentType:"embeddedfigure",_embeddedFigureFactory:null,_layoutId:"embeddedFigureDocked",_figureMorphed:!1,_figureDocked:!0,_figureVisible:!0,_figureResizable:!0,_figureTitle:"",figureAriaLabel:"",_figurePosition:[],_figureAriaLiveDiv:null,_figureAriaLiveTextContent:"",Dnd:null,constructor:function(e){f.assert(e.embeddedFigureFactory,"embeddedFigureFactory is required to initialize EmbeddedFigureWidgetManager"),f.assert(e.layoutService,"layoutService is required to initialize EmbeddedFigureWidget"),f.assert(e.embeddedFigureConextualToolstripManager,"embeddedFigureContextualToolstripManager is required to initialize EmbeddedFigureWidgetManager"),this._embeddedFigureFactory=e.embeddedFigureFactory,this.layoutService=e.layoutService,this._embeddedFigureConextualToolstripManager=e.embeddedFigureConextualToolstripManager,f.assert(void 0!==e.data,"A value should be passed in to set the figure data"),this._figureData=e.data,this._channelID=e.data.channel,this._resizing={},this.Dnd=new u(this._channelID)},postCreate:function(){this.inherited(arguments),this._createAriaLiveDiv(),f.assert(void 0!==this._figureData,"The figure data should be set"),this._setupEmbeddedFigure(),this.Dnd.initDnd(this.domNode)},setFigureMorphed:function(){this._figureMorphed=!0},_setupEmbeddedFigure:function(){this._embeddedFigure=this._embeddedFigureFactory.createWidget(this,this._figureData,this._handleServerPropertyChange.bind(this),this.domNode),this._handleWindowOpen(this._figureData)},_handleServerPropertyChange:function(e){var t=e.data,i=t.eventType;"windowClosed"===i?this._handleWindowClosed():"windowToFront"===i?this._handleWindowToFront():"Position"===i?this._handlePositionChange(t):"Resize"===i?this._handleResizabilityChange(t):"ContextualToolstrip"===i?this._handleContextualToolstripChange(t):"Title"===i?this._handleTitleChange(t):"Visible"===i?this._handleVisibilityChange(t):"AriaLabel"===i?this._handleAriaLabelChange(t):"AriaLiveTextContent"===i?this._handleAriaLiveTextContentChange(t):"PlotEdit"===i&&this.Dnd._handleServerPropertyChange(t)},_createAriaLiveDiv:function(){if(null===this._figureAriaLiveDiv){var e=r.create("div");i.set(e,{position:"fixed",overflow:"hidden",top:"0px",left:"-2px",width:"1px",height:"1px"}),e.id="ariaLiveRegion",e.setAttribute("aria-live","polite"),this.domNode.appendChild(e),this._figureAriaLiveDiv=e,this._figureAriaLiveDiv.textContent=""}},_handleWindowOpen:function(e){e.hasOwnProperty("Position")&&4===e.Position.length?(this.connect(this,"resize",t.hitch(this,this._onWidgetResize,this)),this.connect(this,"onClose",t.hitch(this,this._onWidgetClose,this)),this.connect(this,"onFocus",t.hitch(this,this._onBringToTop,this)),this.connect(this,"onShow",t.hitch(this,this._onBringToTop,this)),this._figureData.hasOwnProperty("Docked")&&!this._figureData.Docked&&(this._figureDocked=!1,this._figureResizable=!e.hasOwnProperty("Resize")||e.Resize,this._layoutId="embeddedFloatingPane"),this._figurePosition=e.Position,i.set(this.domNode,{width:this._figurePosition[2]+"px",height:this._figurePosition[3]+"px"}),this._figureTitle=e.hasOwnProperty("Title")?e.Title:"",n.add(this.domNode,"mw_name_"+this._figureTitle.toLowerCase().replace(/ /g,"_")),this._options={class:"dijitContentPane "+this.documentType,documentType:this.documentType,onMove:t.hitch(this,this._onResize),onResize:t.hitch(this,this._onResize),onBringToTop:t.hitch(this,this._onBringToTop)},this._figureVisible=!e.hasOwnProperty("Visible")||e.Visible,this._figureVisible&&(this._showWidget(),this._figureDocked&&this._embeddedFigure.FigureManager.propertyChanged({property:"Position",value:[this._figurePosition[0],this._figurePosition[1],this._figurePosition[2]+1,this._figurePosition[3]+1]}))):f.warn("Unexpected windowOpen event: "+JSON.stringify(e))},_handleWindowClosed:function(){!this._figureMorphed&&this._figureVisible&&this._hideWidget()},_handleWindowToFront:function(){this._figureVisible&&(this.layoutService.showWidget(this._channelID),this._deselectMGGChildren())},_handlePositionChange:function(e){e.hasOwnProperty("value")&&4===e.value.length?(this._figurePosition=e.value,this._figureVisible&&this._onWidgetResize(this)):f.warn("Unexpected position event: "+JSON.stringify(e))},_handleResizabilityChange:function(e){e.hasOwnProperty("value")?this._figureDocked?(this._figureResizable=!0,this._embeddedFigure.FigureManager.propertyChanged({property:"Resize",value:!0})):(this._figureResizable=e.value,this._figureVisible&&this.layoutService.updateWidget(this._channelID,"resizable",this._figureResizable)):f.warn("Unexpected resize event: "+JSON.stringify(e))},_handleTitleChange:function(e){e.hasOwnProperty("value")?(this._figureTitle=e.value,this._figureVisible&&this.layoutService.updateWidget(this._channelID,"title",this._figureTitle)):f.warn("Unexpected title event: "+JSON.stringify(e))},_handleAriaLabelChange:function(e){e.hasOwnProperty("value")?(this._figureAriaLabel=e.value,this._figureVisible&&(this.layoutService.updateWidget(this._channelID,"arialabel",this._figureAriaLabel),this._updateAriaLabel())):f.warn("Unexpected arialabel event: "+JSON.stringify(e))},_handleAriaLiveTextContentChange:function(e){e.hasOwnProperty("value")?(this._figureAriaLiveTextContent=e.value,this._figureVisible&&this._updateAriaLiveTextContent()):f.warn("Unexpected AriaLiveTextContent event: "+JSON.stringify(e))},_handleVisibilityChange:function(e){e.hasOwnProperty("value")?(this._figureVisible=e.value,this._figureVisible?this._showWidget():this._hideWidget()):f.warn("Unexpected visible event: "+JSON.stringify(e))},_onResize:function(e){this._onWidgetResize(e.widget)},_onBringToTop:function(){this._embeddedFigure.FigureManager.propertyChanged({property:"windowActivated"}),this._deselectMGGChildren(),this._embeddedFigure.domNode.hasChildNodes()&&!this._embeddedFigure.domNode.contains(document.activeElement)&&this._embeddedFigure.domNode.children[0].focus()},_onWidgetResize:function(e){var t=e._channelID;this._resizing[t]&&clearTimeout(this._resizing[t]);var n=this;this._resizing[t]=setTimeout((function(){if(clearTimeout(n._resizing[t]),delete n._resizing[t],e._embeddedFigure&&e._embeddedFigure.FigureManager&&e._figureResizable&&e.domNode&&e.domNode.parentNode){var r=o.position(e.domNode),a=o.position(e.domNode.parentNode),s=r.w/r.h;if(p.maintainAspect&&n._figureDocked)s<a.w/a.h?a.w=a.h*s:a.h=a.w/s;a.w=Math.round(a.w),a.h=Math.round(a.h),a.w>50&&a.h>50&&(i.set(e.domNode,{width:a.w+"px",height:a.h+"px"}),n._figurePosition=[1,1,a.w,a.h],e._embeddedFigure.FigureManager.propertyChanged({property:"Position",value:n._figurePosition}))}}),100)},_onWidgetClose:function(e){e._embeddedFigure.FigureManager.propertyChanged({property:"windowClosed"})},_showWidget:function(){this._options.title=this._figureTitle,this._options.tooltip=this._figureTitle,this._options.top=this._figurePosition[0],this._options.left=this._figurePosition[1],this._options.width=this._figurePosition[2],this._options.height=this._figurePosition[3],this._options.resizable=this._figureResizable,this.layoutService.addWidget(this._channelID,this._layoutId,this,this._options),this._updateAriaLabel(),this._updateAriaLiveTextContent()},_updateAriaLabel:function(){this._embeddedFigure.domNode.hasChildNodes()&&this._embeddedFigure.domNode.children[0].setAttribute("aria-label",this._figureAriaLabel)},_updateAriaLiveTextContent:function(){this._embeddedFigure.domNode.hasChildNodes()&&(null!==this._figureAriaLiveDiv&&void 0!==this._figureAriaLiveDiv||this._createAriaLiveDiv(),this._figureAriaLiveDiv.textContent=this._figureAriaLiveTextContent)},_hideWidget:function(){this.layoutService.removeWidget(this._channelID)},_deselectMGGChildren:function(){"function"==typeof p.deselectChildren&&p.deselectChildren()},_handleContextualToolstripChange:function(e){this._embeddedFigureConextualToolstripManager[e.Action](this._channelID,e.ToolstripContextId)},destroyRecursive:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1647),i(291),i(204)],o=i.dj.d(n,(function(e,t,i,n){return e("",[],{DROP_ZONE_CLASS:"VEDropZone",ACCEPTED_FLAVOR:"workspace",isPlotEdit:!1,_channelID:"",_mvm:null,constructor:function(e){this._channelID=e},initDnd:function(e){var i=this;this.dndProvider=new t({dragDropTargetConfig:{dropTarget:e,allowGlobal:!0,acceptedFlavor:this.ACCEPTED_FLAVOR,customTargetEnterHandler:function(e){return i._toggleDropZoneClassOnTarget(e),i.isPlotEdit},customTargetLeaveHandler:function(e){i._toggleDropZoneClassOnTarget(e,!0)},customTargetDropHandler:function(e,t,n){i._toggleDropZoneClassOnTarget(t,!0),i.handleDrop&&e&&i.handleDrop(e,n,i._channelID)}}}),this.dndProvider.startup()},_getMvmInstance:function(){return null===this._mvm&&(this._mvm=i.getMVM()),this._mvm},handleDrop:function(e,t,i){dropPosX=t.xOffset,dropPosY=t.yOffset,this._getMvmInstance().feval("matlab.graphics.internal.PlotEditDnd.selectPlotForDnd",0,[e,dropPosX,dropPosY,i])},_handleServerPropertyChange:function(e){this._handlePlotEditChange(e)},_handlePlotEditChange:function(e){e.hasOwnProperty("value")?this.isPlotEdit=e.value:Log.warn("Unexpected plotedit event: "+JSON.stringify(e))},_toggleDropZoneClassOnTarget:function(e,t){t?e.classList.remove(this.DROP_ZONE_CLASS):e.classList.add(this.DROP_ZONE_CLASS)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="embeddedWidget" data-dojo-attach-point="embeddedWidget_attachPoint" style="margin: 0 auto;"></div>'},function(e,t,i){var n,o;n=[i(203),i(213),i(211),i(215),i(216),i(8280),i(1015)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n,o],{templateString:r,constructor:function(e){e=e||{},this.text=e.text,this.localization=a},setText:function(e){this.text=e,this.textarea.innerHTML=e,this.textarea.focus()},_handleFocus:function(){var e=this;setTimeout((function(){e.textarea.select()}),0)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="clipboard">\n <div class="message">${localization.clipboardMessage}</div>\n <textarea data-dojo-attach-point="textarea"\n data-dojo-attach-event="focus:_handleFocus"\n class="text" rows="4" cols="40" readonly="true">${text}</textarea>\n</div>'},function(e,t,i){e.exports={root:{open:"Open",save:"Save",clipboardTitle:"MATLAB Clipboard",clipboardButton:"Close",clipboardMessage:"This data is on the MATLAB clipboard. To paste it elsewhere,\nfirst copy it to your system clipboard (with Ctrl+C or your\nsystem's equivalent).",closeGuiConfirmation:"Reloading this page will close this GUI.",MaxFiguresExceededDialog:{title:"Incomplete Figure Set",content:"MATLAB Online can only show a maximum of approximately 20 open figures at a time.",radioNone:"Always show this message",radioSession:"Don't show this message again for this session",radioNever:"Don't ever show this message again"}}}},function(e,t,i){var n,o;n=[i(203),i(228),i(328),i(216),i(255),i(1479),i(8283),i(1015)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([i,n,o],{templateString:a,postCreate:function(){this.inherited(arguments),this._updateStringsWithLocalization(),this._createOKButton()},_updateStringsWithLocalization:function(){this.title=s.MaxFiguresExceededDialog.title,t.set(this.content,"innerHTML",s.MaxFiguresExceededDialog.content),t.set(this.lblNone,"innerHTML",s.MaxFiguresExceededDialog.radioNone),t.set(this.lblNone,"for",this.radioNone.id),t.set(this.lblSession,"innerHTML",s.MaxFiguresExceededDialog.radioSession),t.set(this.lblSession,"for",this.radioSession.id),t.set(this.lblNever,"innerHTML",s.MaxFiguresExceededDialog.radioNever),t.set(this.lblNever,"for",this.radioNever.id)},_createOKButton:function(){var e=this;this.buttons={},this.buttons.ok=function(){e.radioNever.checked?(e.guiDataService.maxFiguresWarningOff=!0,e.guiDataService.maxFiguresWarningOffAlways=!0):e.radioSession.checked&&(e.guiDataService.maxFiguresWarningOff=!0),this.onClose()}}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="maxFiguresDialog">\n <div class="content" data-dojo-attach-point="content"></div>\n <div class="radioButtons">\n <div class="radioButton">\n <input data-dojo-type="dijit.form.RadioButton" data-dojo-attach-point="radioNone" checked name="group1" value="session" type="radio" />\n <label data-dojo-attach-point="lblNone"></label>\n </div>\n <div class="radioButton">\n <input data-dojo-type="dijit.form.RadioButton" data-dojo-attach-point="radioSession" name="group1" value="session" type="radio" />\n <label data-dojo-attach-point="lblSession"></label>\n </div>\n <div class="radioButton">\n <input data-dojo-type="dijit.form.RadioButton" data-dojo-attach-point="radioNever" name="group1" value="never" type="radio" />\n <label data-dojo-attach-point="lblNever"></label>\n </div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(509)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e,t){this.executionService=t.executionService},enableFeature:function(){this.executionService.executionEval("mls.internal.feature('webGraphics', 'on');",this.executionService.streamingEval)},disableFeature:function(){this.executionService.executionEval("mls.internal.feature('webGraphics', 'off');",this.executionService.streamingEval)}})}),e,t),e.exports=o},function(e,t,n){var o,r;o=[n(203),n(209),n(219)],r=n.dj.d(o,(function(e,t,n){return e([],{constructor:function(e){window.onerror=function(e,i,n,o,r){var a={message:"Error Logger Service caught the following exception: "+e,namespace:"uncaught_errors"};t.log(a)},this._initialized=!1,this.diagnosticSpec=".*=all",this.uiLifecycle=e.uiLifecycle,this.uiLifecycle.registerTask("WORKER_READY",this._setupService.bind(this))},_setupService:function(){n.subscribe("/js_log/setup/client",function(e){console.log(e),this.diagnosticSpec=e.data.fl_spec,this.prefix=e.data.prefix,this._initialized||(this._initialized=!0)}.bind(this)),n.publish("/js_log/setup/server","initialized"),t.addCallback(this._logCallback.bind(this),!0)},_logCallback:function(e,t){if(this._initialized){var i=new Date,o=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate(),r=i.getHours()+":"+i.getMinutes()+":"+i.getSeconds();t.loglevel=e,t.timestamp=o+" "+r,this._checkSpec(e,t.namespace,this.prefix,this.diagnosticSpec)&&(console.log("Publishgin to Server!"),result=n.publish("/js_log",t))}},_checkSpec:function(e,t,i,n){return n.replace(/\s+/g,"").split(";").map(function(n){return this._checkCondition(e,t,i,n)}.bind(this)).reduce((function(e,t){return e||t}),!1)},_checkCondition:function(e,t,i,n){var o=n.split("=");return 2==o.length?this._checkNamespace(t,o[0],i)&&this._checkLogMethod(e,o[1]):(console.error("Javascript Logger has invalid diagnostic spec."),!1)},_checkNamespace:function(e,t,i){return new RegExp("^"+t+"$").test(i+e)},_checkLogMethod:function(e,t){var i=t.split(","),n={error:"error",warn:"warning",info:"info",debug:"debug",log:"data"};return!this._arrIncludes(i,"none")&&this._arrIncludes(i,n[e])||this._arrIncludes(i,"all")},_arrIncludes:function(e,t){for(i=0;i<e.length;i++)if(e[i]==t)return!0;return!1}})}),e,t),e.exports=r},function(e,t,i){var n,o;n=[i(203),i(214),i(219),i(232),i(641),i(209),i(8287),i(398),i(698),i(1237),i(290),i(600)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h="MessageLevel",p="TopLevel";return o.WORKER_CRASH_FAILURE="ComputeService.WorkerCrashFailure",e([],{constructor:function(e){this._registeredFaultHandlers=new Map,this.wraService=e.wraService,this.uiLifecycle=e.uiLifecycle,this.heartbeatService=e.heartbeatService,this.uiLifecycle&&this.uiLifecycle.registerTask&&this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",function(){this._active=!1}.bind(this)),this._active=!0;const n=this._logNetworkDataToUDC.bind(this);t.after(i,"onConnected",()=>a.registerCallback(n)),t.after(i,"onDisconnected",()=>a.unregisterCallback(n)),t.after(i,"onNotConnected",this._pingAuthorityAndMCG.bind(this)),t.after(i,"onFatallyDisconnected",this._pingAuthorityAndMCG.bind(this))},start:function(e){this.registerHandlerForFault(p,{name:"*",handler:this._generalTopLevelFaultHandler}),this.registerHandlerForFault(p,{name:o.WORKER_NO_LONGER_AVAILABLE,handler:this._workerNoLongerAvailableFaultHandler}),this.registerHandlerForFault(p,{name:o.INVALID_WORKER_REQUEST,handler:this._invalidWorkerRequestFaultHandler}),this.registerHandlerForFault(p,{name:o.CONNECTION_FAULT,handler:this._connectionFaultHandler}),this.registerHandlerForFault(p,{name:o.IFRAME_LOAD_TIMEOUT,handler:this._iframeLoadTimeoutFaultHandler}),this.registerHandlerForFault(p,{name:o.WORKER_CRASH_FAILURE,handler:this._workerCrashFailureFaultHandler}),i.subscribe("/error/crash",this._registeredFaultHandlers.get(o.WORKER_CRASH_FAILURE),this),this.ignoreFault(o.NO_WORKERS_AVAILABLE),this.ignoreFault(o.SERVICE_UNAVAILABLE)},registerHandlerForFault:function(e,t,i){var o;switch(this._registeredFaultHandlers.has(t.name)&&this.deRegisterHandlerForFault(e,t.name),i=i||this,e){case h:o=n.registerEndpointLevelFaultHandler(t.entryPoint,t.name,t.handler.bind(i));break;case p:o=n.registerTopLevelFaultHandler(t.name,t.handler.bind(i));break;default:o=n.registerFaultHandler(t.name,t.handler.bind(i))}return this._registeredFaultHandlers.set(t.name,o),o},deRegisterHandlerForFault:function(e,t){switch(e){case p:n.deregisterTopLevelFaultHandler(this._registeredFaultHandlers.get(t));break;default:n.deregisterFaultHandler(this._registeredFaultHandlers.get(t))}this._registeredFaultHandlers.delete(t)},ignoreFault:function(e){n.ignoreTopLevelFault(e)},_generalTopLevelFaultHandler:function(e,t,i){var n,r,a={},s=this;this._active&&(i&&i.requestMessages&&i.requestMessages.Logout||(n=d.fault.genericFailureTitle,r=d.fault.genericFailureMessage,!e||"unauthorized"===this.wraService.getCurrentState()||e.faultCode!==o.USER_NOT_AUTHORIZED&&"403"!==e.statusCode||(n=d.fault.noLongerAuthorizedTitle,r=d.fault.noLongerAuthorizedMessage),a.closeCallback=function(){s.wraService.terminateMATLABSession({skipLogoutTasks:!0})},l.openNotificationAlertDialog(n,r,a)))},_workerNoLongerAvailableFaultHandler:function(){var e=d.fault.workerNoLongerAvailableTitle,t=d.fault.workerNoLongerAvailableMessage;this.wraService.terminateMATLABSession({skipLogoutTasks:!0}),l.openNotificationAlertDialog(e,t,{})},_invalidWorkerRequestFaultHandler:function(e,t,i){r.error("Invalid request fault:\n"+JSON.stringify(i))},_connectionFaultHandler:function(e,t,i){if(!i.requestMessages.CurrentUser&&!i.requestMessages.SyntaxHighlighting&&!i.requestMessages.Login){if(e&&";0"===e.message){if(r.log("registerTopLevelFaultHandler: XHR request was aborted"),!this._firstSeenTime||this._firstSeenTime+2e3<Date.now())return void(this._firstSeenTime=Date.now());if(this._firstSeenTime+500>Date.now())return}var n=d.fault.connectionFaultTitle,o=d.fault.connectionFaultMessage,a={buttonText:[d.refresh],defaultAcceptButton:1,defaultCancelButton:2,icon:"error",closeCallback:function(e){1===e.response&&document.location.reload(!0)}};setTimeout((function(){l.openNotificationConfirmDialog(n,o,a)}),200)}},_iframeLoadTimeoutFaultHandler:function(e){var t=d.fault.remoteLoadFaultTitle,i=d.fault.remoteLoadFaultMessage;l.openNotificationAlertDialog(t,i)},_workerCrashFailureFaultHandler:function(e){if(this._latestCrashFault=e,!this._showCrashTimeout){this._active=!1;var t=window.setInterval((function(){c.determineEvalResponsiveness(n,1e3)}),1e3);this._showCrashTimeout=window.setTimeout(function(){this._doWorkerCrashFailureFaultHandler(this._latestCrashFault),window.clearInterval(t)}.bind(this),5e3)}},_doWorkerCrashFailureFaultHandler:function(e){var t=!1;try{var i=e.faultConditions[0].faultId;"MatlabCrash"===i;var n=((t="OutOfMemory"===i)?"Out of memory detected: ":"Crash detected: ")+e.message;r.log(n)}catch(e){}var o=t?d.fault.outOfMemoryFaultTitle:d.fault.matlabCrashFaultTitle;n=t?d.fault.outOfMemoryFaultMessage:d.fault.matlabCrashFaultMessage;this.heartbeatService.stop(),l.openNotificationConfirmDialog(o,n,{buttonText:[d.fault.restartMATLAB,u.exit],defaultAcceptButton:1,defaultCancelButton:2,icon:"error",closeCallback:function(e){1===e.response?this.wraService.terminateMATLABSession({skipLogoutTasks:!0,restartSession:!0,userEndedComputeSession:!0}):(this.wraService.terminateMATLABSession({skipLogoutTasks:!0,userEndedComputeSession:!0}),this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",function(){this.wraService.reloadPage({userEndedComputeSession:!0})}.bind(this)))}.bind(this)})},_pingAuthorityAndMCG:function(){"computeResourceReady"===this.wraService.getCurrentState()&&(this.wraService.sendGetCurrentUser(),c.determineEvalResponsiveness(n,1e4).then(function(e){e||this._registeredFaultHandlers.get(o.WORKER_CRASH_FAILURE).handler()}.bind(this)))},_logNetworkDataToUDC:function(e){s.addData("NetworkHealthCheck.NetworkData",JSON.stringify(e))},setService:function(e){this.sessionService=e.sessionService}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(649),i(232)],o=i.dj.d(n,(function(e,t){let i,n=[];const o=()=>void 0!==i,r={_executeCallbacks(e){n.forEach(t=>t(e))},_start(){this._gatherNetworkData(),o()||(i=setTimeout(this._gatherNetworkData.bind(this),window._NetworkHealthCheckTimeoutOverride||18e4))},_stop(){window.clearTimeout(i),i=void 0},_gatherNetworkData(){Promise.all([this._computeLatency(),this._getBrowserNetworkInformation()]).then(e=>{const t={computedLatency:e[0],browserLatency:e[1].latency,browserBandwidth:e[1].bandwidth,browserEffectiveType:e[1].effectiveType};o()&&this._executeCallbacks(t)})},_computeLatency(){const e="NetworkHealthCheck"+Date.now(),i="CurrentUser:"+e,n="CurrentUserResponse:"+e;let o,r;let a=new Promise(e=>{let a=()=>{e(Date.now()-o),t.deregisterResponseHandler(n),t.deregisterFaultHandler(i),window.clearTimeout(r)};t.registerResponseHandler(n,a),t.registerFaultHandler(i,a),r=window.setTimeout(a,1e4)});return o=Date.now(),t.sendMessage({CurrentUser:{}},{},e),a},_getBrowserNetworkInformation(){let e={bandwidth:void 0,latency:void 0,effectiveType:void 0};if(navigator.connection){let t=navigator.connection;try{e.bandwidth=t.downlink,e.latency=t.rtt,e.effectiveType=t.effectiveType}catch(e){}}return e}};return{registerCallback(e){n.push(e),r._start()},unregisterCallback(e){n=n.filter(t=>e!==t),0===n.length&&r._stop()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8289)],o=i.dj.d(n,(function(e,t){var i=null;return{init:function(e){i?e&&i.updateRequiredServices(e):i=new t(e)},getInstance:function(e){return e&&this.init(e),i||null},destroy:function(){i&&(i.destroy(),i=null)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(231),i(226),i(659),i(1310),i(8290),i(8295),i(8300),i(8301),i(8303),i(8304),i(209),i(1238)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=function(e,t){return!(!e||!t)&&e[e.msMatchesSelector?"msMatchesSelector":"matches"](t)},f="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r])}return i},g=function(e){var i,n={};if(e.target){var o=t.byNode(e.target).getParent();if(!p(e.target,".mwToolstripPopupContextMenu *"))throw new Error("Cannot determine either target or source of event.");n.target=o._lastKnownInvokingNode?t.getEnclosingWidget(o._lastKnownInvokingNode):null,n.source="toolstrip_context_menu"}else{if(!e.id&&!e.detail.widget)throw new Error("Cannot determine either target or source of event.");if(i=t.byId(e.id)||e.detail.widget,p(i.domNode,".mwToolstripPopupContextMenu *")){o=i.getParent();n.target=o._lastKnownInvokingNode?t.getEnclosingWidget(o._lastKnownInvokingNode):null,n.source="toolstrip_context_menu"}else{if(!p(document.querySelector('[widgetid="'+e.id+'"]'),'[data-tag="'+m._galleryPopupTag+'"] *'))throw new Error("Cannot determine either target or source of event.");n.target=i||null,n.source="favorites_gallery"}}return n},m={favorites_CHANNEL:"/favoritesChannel",_contextMenuManager:null,_dataService:null,_destroyed:null,_setContextMenuManagerAttr:function(e){if(!(e instanceof Object&&e.addContextMenuCallback))throw new Error("The provided Context Menu Manager does not implement the addContextMenuCallback method");m._contextMenuManager=e},_getContextMenuManagerAttr:function(){return m._contextMenuManager},_setDataServiceAttr:function(e){if(!(e instanceof Object&&e.model&&e.category&&e.favorite))throw new Error("The provided Data Service does not implement the correct interface");m._dataService=e},_getDataServiceAttr:function(){return m._dataService},_setupFavoriteCommands:function(){m._initializeEditorDialogs(),m._loadFavoriteCommandActions(),m._loadCategoryActions(),m._renderFavoriteCommandsPopup(),m._initializeActionsManagers(),m._populateGallery()},_initializeEditorDialogs:function(){m._favoriteCommandsEditorManager=new a({favoriteActionsModule:s,categoryActionsModule:c,uiBuilder:m._uiBuilder}),m._categoryEditorManager=new l({categoryActionsModule:c,uiBuilder:m._uiBuilder})},_loadFavoriteCommandActions:function(){m._actionService.loadActions([{id:d.NEW_FAVORITE,enabled:!0,text:h.newFavoriteLabel,callback:function(e){var t=g(e);return t.target&&"GalleryItem"===t.target.type?(m._favoritesDropDownWidget.closeMenu(),void m._favoriteCommandsEditorManager.open({parent:t.target.getParent()})):t.target&&"GalleryCategory"===t.target.type?(m._favoritesDropDownWidget.closeMenu(),void m._favoriteCommandsEditorManager.open({parent:t.target})):t.target&&"QABGalleryCategoryButton"===t.target.type?(m._favoritesDropDownWidget.closeMenu(),void m._favoriteCommandsEditorManager.open({parent:m._uiBuilder.widgetByTag(t.target.tag.replace("_qab",""))})):(m._favoritesDropDownWidget.closeMenu(),void m._favoriteCommandsEditorManager.open())}},{id:d.EDIT_FAVORITE,enabled:!0,text:h.editFavoriteLabel,callback:function(e){var t=g(e),i=m._actionService.getAction(t.target.actionId),n=t.target.tag;n=n.replace("_qab",""),!0===m._getDataServiceAttr().favorite.get(n).editable&&(i.tag=n,i.favoriteId=t.target.id,delete i.id,m._favoritesDropDownWidget.closeMenu(),m._favoriteCommandsEditorManager.open(i))}},{id:d.DELETE_FAVORITE,enabled:!0,text:h.deleteFavoriteLabel,callback:function(e){var t=g(e),i=t.target.tag;i=i.replace("_qab",""),!0===m._getDataServiceAttr().favorite.get(i).editable&&s.deleteFavorite({source:t.source,favorite:t.target})}}])},_loadCategoryActions:function(){m._actionService.loadActions([{id:d.NEW_CATEGORY,enabled:!0,text:h.newCategoryLabel,callback:function(){m._favoritesDropDownWidget.closeMenu(),m._categoryEditorManager.open({galleryPopupId:m._galleryPopupId})}},{id:d.EDIT_CATEGORY,enabled:!0,text:h.editCategoryLabel,callback:function(e){var t=g(e),i=t.target.tag;i=i.replace("_qab","");var n=m._actionService.getAction(t.target.actionId),o={};!0===m._getDataServiceAttr().category.get(i).editable&&(o.tag=i,o.title=n.title,n.icon&&(o.icon=n.icon),o.isInQAB=!!n.isInQAB,o.showText=!!n.showText,o.widget=n,o.galleryPopupId=m._galleryPopupId,m._favoritesDropDownWidget.closeMenu(),m._categoryEditorManager.open(o))}},{id:d.DELETE_CATEGORY,enabled:!0,text:h.deleteCategoryLabel,callback:function(e){var t=g(e),i=t.target.tag;i=i.replace("_qab",""),!0===m._getDataServiceAttr().category.get(i).editable&&(m._favoritesDropDownWidget.closeMenu(),c.deleteCategory({category:t.target}))}}])},_initializeActionsManagers:function(){s.initialize({uiBuilder:m._uiBuilder,actionService:m._actionService,dataService:m._dataService}),c.initialize({uiBuilder:m._uiBuilder,actionService:m._actionService,dataService:m._dataService})},_buildFavoritesButton:function(){if(!m._favoritesDropDownId)if(!0===m._dataService._qe.isTestMode()){m._favoritesColumnId=m._uiBuilder.create({type:i.COLUMN}),m._favoritesDropDownId=m._uiBuilder.create({type:i.DROP_DOWN_BUTTON,parentId:m._favoritesColumnId,tag:"motwToolstrip.matlabTab.code.favCommands",icon:"icon_favorite_command_24",quickAccessIcon:"icon_favorite_command_16",text:h.favoriteCommandsFavoritesButtonLabel,description:h.favoriteCommandsFavoritesButtonDescription,mnemonic:"J",enabled:!1});var e=t.byId(m._favoritesColumnId);document.getElementById("favCommandsContainer").appendChild(e.domNode)}else m._favoritesColumnId=m._uiBuilder.tagToId("motwToolstrip.matlabTab.code.column0"),m._favoritesDropDownId=m._uiBuilder.tagToId("motwToolstrip.matlabTab.code.favCommands"),m._favoritesButtonParentId=m._uiBuilder.tagToId("motwToolstrip.matlabTab.code")},_toggleFavoritesButton:function(e){if(e&&"boolean"!=typeof e)throw new Error("Input parameter must be of type 'boolean'");e||!m._favoritesEnabled?m._enableFavoritesButton():m._disableFavoritesButton()},_enableFavoritesButton:function(){m._uiBuilder.set(m._favoritesDropDownId,"enabled",!0),m._favoritesEnabled=!0},_disableFavoritesButton:function(){m._uiBuilder.set(m._favoritesDropDownId,"enabled",!1),m._favoritesEnabled=!1},_renderFavoriteCommandsPopup:function(){m._buildGalleryPopup(),m._buildFooter()},_buildGalleryPopup:function(){m._galleryPopupTag="motwToolstrip.matlabTab.code.favCommands.popup",m._galleryPopupId=m._uiBuilder.create({tag:m._galleryPopupTag,type:i.GALLERY_POPUP,galleryItemWidth:128,galleryItemRowCount:3,galleryItemTextLineCount:1,columnCount:3,displayState:n.LIST,dndEnabled:!0,favoritesEnabled:!1,listViewDisplayDensity:o.COMPACT,qabEligible:!0}),m._cmCallback=function(e,t){p(t,'[data-tag="'+m._galleryPopupTag+'"] .Item, [data-tag="'+m._galleryPopupTag+'"] .Item *')?e.addItems(m._createAndReturnFavoriteContextMenuItems(t)):p(t,'[data-tag="'+m._galleryPopupTag+'"] .Category, [data-tag="'+m._galleryPopupTag+'"] .Category *')?e.addItems(m._createAndReturnCategoryContextMenuItems(t)):m._isTargetAFavCommandInTheQAB(t)?e.addItems(m._createAndReturnFavoriteContextMenuItems(t)):m._isTargetAFavCommandCategoryInTheQAB(t)&&e.addItems(m._createAndReturnCategoryContextMenuItems(t))}.bind(m),m._getContextMenuManagerAttr().addContextMenuCallback('[data-tag="'+m._galleryPopupTag+'"], [data-tag="'+m._galleryPopupTag+'"] *, [data-type="QuickAccessBar"] *',m._cmCallback),m._favoritesDropDownWidget=t.byId(m._favoritesDropDownId),m._uiBuilder.set(m._favoritesDropDownId,"popupId",m._galleryPopupId)},_isTargetAFavCommandInTheQAB:function(e){return m._isTargetNodeRelatedToFavCommands(e,"FavoriteCommands")},_isTargetAFavCommandCategoryInTheQAB:function(e){return m._isTargetNodeRelatedToFavCommands(e,"FavoriteCommandsCategory")},_isTargetNodeRelatedToFavCommands:function(e,i){var n=t.getEnclosingWidget(e);if(n){var o=n.get("actionId");if(o){var r=m._actionService.getAction(o);if(r&&r.groupIdForLazyLoadingQABItems===i)return!0}}return!1},_processOptions:function(e){var t,i={};return e&&Object.keys(e).length>0&&f(i,e),i.actionId&&(i.callback=function(e){m._actionService.executeAction(i.actionId,e)},(t=m._actionService.getAction(i.actionId))&&Object.keys(t).length>0&&f(i,t)),i.id&&delete i.id,i.hasOwnProperty("iconOverride")&&(i.icon=i.iconOverride),i.hasOwnProperty("descriptionOverride")&&(i.description=i.descriptionOverride),i},_createAndReturnFavoriteContextMenuItems:function(e){var n=[],o=t.getEnclosingWidget(e);"QABPushButton"!==o.type&&n.push(m._processOptions({type:i.LIST_ITEM,tag:"motwToolstrip.favoritesGallery.favoriteContextMenu.newFavorite",text:"New Favorite Command",iconOverride:"",descriptionOverride:"",actionId:d.NEW_FAVORITE,section:"general-commands"}));var r=o.get("tag");return r=r.replace("_qab",""),!0===m._getDataServiceAttr().favorite.get(r).editable&&(n.push(m._processOptions({type:i.LIST_ITEM,tag:"motwToolstrip.favoritesGallery.favoriteContextMenu.editFavorite",text:"Edit Favorite Command",actionId:d.EDIT_FAVORITE,section:"modification-commands"})),n.push(m._processOptions({type:i.LIST_ITEM,tag:"motwToolstrip.favoritesGallery.favoriteContextMenu.deleteFavorite",text:"Delete Favorite Command",actionId:d.DELETE_FAVORITE,section:"modification-commands"}))),n},_createAndReturnCategoryContextMenuItems:function(e){var n=[],o=t.getEnclosingWidget(e);"QABGalleryCategoryButton"!==o.type&&n.push(m._processOptions({type:i.LIST_ITEM,tag:"motwToolstrip.favoritesGallery.categoryContextMenu.newCategory",text:"New Category",iconOverride:"",descriptionOverride:"",actionId:d.NEW_CATEGORY,section:"general-commands"})),n.push(m._processOptions({type:i.LIST_ITEM,tag:"motwToolstrip.favoritesGallery.categoryContextMenu.newFavorite",text:"New Favorite Command",iconOverride:"",descriptionOverride:"",actionId:d.NEW_FAVORITE,section:"general-commands"}));var r=o.get("tag");return r=r.replace("_qab",""),!0===m._getDataServiceAttr().category.get(r).editable&&(n.push(m._processOptions({type:i.LIST_ITEM,tag:"motwToolstrip.favoritesGallery.categoryContextMenu.renameCategory",text:"Edit Category",actionId:d.EDIT_CATEGORY,section:"modification-commands"})),n.push(m._processOptions({type:i.LIST_ITEM,tag:"motwToolstrip.favoritesGallery.categoryContextMenu.deleteCategory",text:"Delete Category",actionId:d.DELETE_CATEGORY,section:"modification-commands"}))),n},_buildFooter:function(){var e,t;e=m._uiBuilder.create({type:i.FOOTER}),t=m._uiBuilder.create({type:i.FOOTER_CELL,parentId:e}),m._uiBuilder.create({type:i.PUSH_BUTTON,tag:"motwToolstrip.favoritesGallery.footer.newFavorite",description:h.newFavoriteDescription,icon:"icon_new_favorite_16",parentId:t,actionId:d.NEW_FAVORITE}),m._uiBuilder.create({type:i.PUSH_BUTTON,tag:"motwToolstrip.favoritesGallery.footer.newCategory",description:h.newCategoryDescription,icon:"icon_new_favorite_category_16",parentId:t,actionId:d.NEW_CATEGORY}),m._uiBuilder.set(m._galleryPopupId,"footerId",e)},_populateGallery:function(){m._getDataServiceAttr().model.load(m._messageReceived.bind(m))},_messageReceived:function(e){e.version===m._getDataServiceAttr().model.getVersion()&&e.layout.categories.forEach((function(t){var i=e.data.categories[t];i.tag=t,i.galleryPopupId=m._galleryPopupId;var n=c.createCategory(i,!0);e.layout.favorites[t].forEach((function(t){var i=e.data.favorites[t];i.tag=t,i.parentId=n,s.createFavorite(i,!0)}))}),m),m._toggleFavoritesButton(!0),this._uiBuilder.lazyLoadQABItems("FavoriteCommands"),this._uiBuilder.lazyLoadQABItems("FavoriteCommandsCategory")}};return e([],{constructor:function(e){this.updateRequiredServices(e),m._buildFavoritesButton(),m._settingsService.getSetting(["matlab","desktop"],"MOFavoriteCommandsEnabled").then(function(e){m._favoritesEnabled=!1,!0===e.value&&m._setupFavoriteCommands()}.bind(this)),m._destroyed=!1},updateRequiredServices:function(e){if(e.actionService?this.set("actionService",e.actionService):this.get("actionService")||u.assert(e.actionService,"actionService is required by FavoritesManager"),e.uiBuilder?this.set("uiBuilder",e.uiBuilder):this.get("uiBuilder")||u.assert(e.uiBuilder,"uiBuilder is required by FavoritesManager"),e.settingsService?this.set("settingsService",e.settingsService):this.get("settingsService")||u.assert(e.settingsService,"settingsService is required by FavoritesManager"),e.contextMenuManager?this.set("contextMenuManager",e.contextMenuManager):this.get("contextMenuManager")||(this.get("uiBuilder").tagToId("motwToolstrip")?this.set("contextMenuManager",this.get("uiBuilder").widgetByTag("motwToolstrip")):u.assert(e.contextMenuManager,"contextMenuManager is required by FavoritesManager")),e.dataService){if("test"===e.dataService)return this.set("dataService",r),void r._qe.isTestMode(!0);this.set("dataService",e.dataService)}else this.set("dataService",r)},set:function(e,t){switch(e){case"actionService":m._actionService=t;break;case"uiBuilder":m._uiBuilder=t;break;case"settingsService":m._settingsService=t;break;case"contextMenuManager":m._setContextMenuManagerAttr(t);break;case"dataService":m._setDataServiceAttr(t)}},get:function(e){var t;switch(e){case"destroyed":t=m._destroyed;break;case"actionService":t=m._actionService;break;case"uiBuilder":t=m._uiBuilder;break;case"settingsService":t=m._settingsService;break;case"contextMenuManager":t=m._getContextMenuManagerAttr();break;case"dataService":t=m._getDataServiceAttr();break;default:t=void 0}return t},destroy:function(){if(!0===this.get("dataService")._qe.isTestMode()){document.getElementById("favCommandsContainer").innerHTML="",delete m._favoritesDropDownId,delete m._favoritesColumnId;var e=document.getElementById(m._galleryPopupId);e.parentElement.removeChild(e)}else this.get("uiBuilder").destroy(m._favoritesDropDownId),this.get("uiBuilder").destroy(m._favoritesColumnId),this.get("uiBuilder").destroy(m._galleryPopupId);this.get("contextMenuManager").removeContextMenuCallback('[data-tag="'+m._galleryPopupTag+'"], [data-tag="'+m._galleryPopupTag+'"] *',m._cmCallback),this.get("dataService").model.close(),this.inherited(arguments),m._destroyed=!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(232),i(715),i(1238)],o=i.dj.d(n,(function(e,t,i){var n,o=!1,r=!1,a=!1,s=!1,l=[],c=function(e,t){if(!n.data[t].hasOwnProperty(e))throw new Error("Invalid 'id'. Does not exist in "+t+".")},d=function(e,t){if(!Object.keys(e).some((function(e){return C[t].indexOf(e)>-1})))throw new Error("Invalid 'data'. Does not match format for "+t+".")},u=function(e){o?s=!1:(e||f()||(n.state="1"),t.writeFileToPreferenceDirectory("favorite_commands.json",JSON.stringify(n)).then((function(e){s=!1}),(function(e){throw e})))},h=function(){return a?b(n):null},p=function(){n=JSON.parse(E),a=!0,l.length>0?m():u(!0)},f=function(){return n.hasOwnProperty("state")&&"0"!==n.state},g=function(e,i){if(o)return n=JSON.parse(E),r=!1,a=!0,void(e&&"function"==typeof e&&e(h()));r=!0,t.readFileFromPreferenceDirectory("favorite_commands.json").then((function(t){if(r=!1,(n=JSON.parse(t)).version!==y())if(f()){a=!0;var i=JSON.parse(E);Object.keys(n.data.categories).forEach(e=>{let t=n.data.categories[e],o=i.data.categories[e];o?t.hasOwnProperty("state")&&"0"!==t.state?C.categories.forEach(i=>{t.hasOwnProperty(i)||!o.hasOwnProperty(i)?!t.hasOwnProperty(i)||o.hasOwnProperty(i)?o[i]!==t[i]&&(C.exposed.categories.indexOf(i)>-1||(n.data.categories[e][i]=o[i])):delete n.data.categories[e][i]:t[i]=o[i]}):n.data.categories[e]=o:(Object.keys(t).forEach(t=>{C.categories.indexOf(t)<0&&delete n.data.categories[e][t]}),C.categories.forEach(e=>{t.hasOwnProperty(e)||(t[e]=T.categories[e])}))}),Object.keys(n.data.favorites).forEach(e=>{let t=n.data.favorites[e],o=i.data.favorites[e];o?t.hasOwnProperty("state")&&"0"!==t.state?C.favorites.forEach((function(i){t.hasOwnProperty(i)||!o.hasOwnProperty(i)?!t.hasOwnProperty(i)||o.hasOwnProperty(i)?o[i]!==t[i]&&(C.exposed.favorites.indexOf(i)>-1||(n.data.favorites[e][i]=o[i])):delete n.data.favorites[e][i]:t[i]=o[i]})):n.data.favorites[e]=o:(Object.keys(t).forEach(t=>{C.favorites.indexOf(t)<0&&delete n.data.favorites[e][t]}),C.favorites.forEach(e=>{t.hasOwnProperty(e)||(t[e]=T.favorites[e])}))}),n.version=y(),u()}else p();else a=!0;e&&"function"==typeof e&&e(h())}),(function(t){if(r=!1,t&&t.length>0&&t.some((function(e){return!!(e.faultConditions&&e.faultConditions.length>0)&&e.faultConditions.some((function(e){return"FileNotFound"===e.faultId}))})))return p(),void(n&&e&&"function"==typeof e&&e(h()));i&&"function"==typeof i&&i(t)}))},m=function(e,t){if(!a)return l.push(e),void(a||r||g(m,(function(e){throw new Error(e)})));if(!t)for(;l.length>0;)m(l.shift(),!0);if(e){var i=["create","delete","update","move"];if(!e.action||"string"!=typeof e.action||i.indexOf(e.action)<0)throw new Error('Input object must contain "action" attribute set to one of: '+JSON.stringify(i));var o=["categories","favorites"];if(!e.type||"string"!=typeof e.type||o.indexOf(e.type)<0)throw new Error('Input object must contain "type" attribute set to one of: '+JSON.stringify(i));var c,d=h();switch(e.action){case i[0]:d.data[e.type][e.data.tag]={label:e.data.label||e.data.title||"",icon:e.data.icon||"",code:e.data.code,isInQAB:e.data.isInQAB||!1,showText:e.data.showText||!1,editable:e.data.editable||!0,state:"1"},e.type===o[0]?(d.layout.categories.push(e.data.tag),d.layout.favorites[e.data.tag]=[]):d.layout.favorites[e.data.parentTag].push(e.data.tag);break;case i[1]:d.data[e.type].hasOwnProperty(e.id)&&!0===d.data[e.type][e.id].editable&&(delete d.data[e.type][e.id],e.type===o[0]?(c=d.layout.categories.indexOf(e.id),d.layout.categories.splice(c,c>-1?1:0),d.layout.favorites[e.id].forEach((function(e){delete d.data.favorites[e]})),delete d.layout.favorites[e.id]):d.layout.categories.some((function(t){return c=d.layout.favorites[t].indexOf(e.id),d.layout.favorites[t].splice(c,c>-1?1:0),c>-1})));break;case i[2]:if(d.data[e.type].hasOwnProperty(e.id)&&!0===d.data[e.type][e.id].editable){var p=e.data.label,f=e.data.code,v=e.data.isInQAB,b=e.data.showText,y=e.data.editable;void 0===p&&(p=d.data[e.type][e.id].label),void 0===f&&(f=d.data[e.type][e.id].code),void 0===v&&(v=d.data[e.type][e.id].isInQAB),void 0===b&&(b=d.data[e.type][e.id].showText),void 0===y&&(y=d.data[e.type][e.id].editable),d.data[e.type][e.id]={label:p,icon:e.data.icon||d.data[e.type][e.id].icon,code:f,isInQAB:v,showText:b,editable:y,state:"1"}}case i[3]:d.data[e.type].hasOwnProperty(e.id)&&(e.type===o[0]?(c=d.layout.categories.indexOf(e.id),e.data.hasOwnProperty("index")&&c!==e.data.index&&d.layout.categories.splice(e.data.index,0,d.layout.categories.splice(c,1)[0])):e.data.hasOwnProperty("parentTag")&&d.layout.categories.some((function(t){return(c=d.layout.favorites[t].indexOf(e.id))>-1&&(t!==e.data.parentTag&&(d.layout.favorites[t].splice(c,c>-1?1:0),d.layout.favorites[e.data.parentTag].push(e.id),c=d.layout.favorites[e.data.parentTag].indexOf(e.id)),e.data.hasOwnProperty("index")&&c!==e.data.index&&d.layout.favorites[e.data.parentTag].splice(e.data.index,0,d.layout.favorites[e.data.parentTag].splice(c,1)[0])),c>-1})))}t||_(d,n)||(n=d,s=!0,u())}},_=function(e,t){var i,n=[];if(!(e instanceof Object||t instanceof Object))return e===t;if(void 0===e||void 0===t)return!1;for(i in e)if(n.push(i),!_(e[i],t[i]))return!1;for(i in t)if(n.indexOf(i)<0)return!1;return!0},v="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r])}return i},b=function(e,t){if(!(e&&e instanceof Object))return null;switch((!t||"string"!=typeof t||["spread","assign","json","create"].indexOf(t)<0)&&(t="json"),t){case"json":return JSON.parse(JSON.stringify(e));case"assign":try{return v({},e)}catch(e){return null}case"create":return Object.create(e)}},y=function(){return 1..toString()+"."+1..toString()+"."+(0).toString()},C={categories:["label","icon","editable","state","isInQAB","showText","index"],favorites:["label","icon","code","editable","state","isInQAB","showText","parentId","index"],exposed:{categories:["label","icon","isInQAB","showText"],favorites:["label","icon","code","isInQAB","showText"]}},T={categories:{label:"",icon:"Favorite Command Icon",editable:!0,state:"1",isInQAB:!1,showText:!1},favorites:{label:"",icon:"Favorite Command Icon",code:"",editable:!0,state:"1",isInQAB:!1,showText:!1}},E='{"version":"'+y()+'","state":"0","data":{"categories":{"CAT_1":{"label":"'+i.generalCategoryTitle+'","icon":"Category Icon","isInQAB":false,"showText":false,"editable":false,"state":"0"},"CAT_2":{"label":"'+i.examplesCategoryTitle+'","icon":"Category Icon","isInQAB":false,"showText":false,"editable":true,"state":"0"}},"favorites":{"FAV_1":{"label":"'+i.aboutFavoriteCommands+'","icon":"Favorite Command Icon","code":"% '+i.aboutFavoriteCommandsComment+'\\nhelpview(\'matlab\', \'matlab_favorites\');","isInQAB":false,"showText":false,"editable":true,"state":"0"},"FAV_2":{"label":"'+i.clearVariablesAndCommands+'","icon":"Favorite Command Icon","code":"% '+i.clearVariablesAndCommandsComment1+"\\nclear;\\n\\n% "+i.clearVariablesAndCommandsComment2+'\\nclc;","isInQAB":false,"showText":false,"editable":true,"state":"0"},"FAV_3":{"label":"'+i.goToUserFolder+'","icon":"Favorite Command Icon","code":"% '+i.goToUserFolderComment+'\\ncd(userpath);","isInQAB":false,"showText":false,"editable":true,"state":"0"},"FAV_4":{"label":"'+i.matlabLogo+'","icon":"Favorite Command Icon","code":"% '+i.matlabLogoComment1+"\\nlogo;\\n\\n% "+i.matlabLogoComment2+"\\ndrawnow;\\n\\n% "+i.matlabLogoComment3+"\\n[az,el] = view;\\nfor step = 1: 360\\n % "+i.matlabLogoComment4+"\\n view(az + step, el);\\n % "+i.matlabLogoComment5+'\\n pause(0.005);\\nend\\n","isInQAB":false,"showText":false,"editable":true,"state":"0"}}},"layout":{"categories":["CAT_1","CAT_2"],"favorites":{"CAT_1":[],"CAT_2":["FAV_1","FAV_2","FAV_3","FAV_4"]}}}';return{category:{create:function(e){d(e,"categories"),m({action:"create",type:"categories",data:e})},get:function(e){var t;return a?(c(e,"categories"),n.data.categories.hasOwnProperty(e)&&((t=b(n.data.categories[e])).index=n.layout.categories.indexOf(e),t.children=n.layout.favorites[e].slice()),delete t.code,t):(g(),null)},set:function(e,t){c(e,"categories"),d(t,"categories"),m({action:"update",type:"categories",id:e,data:t})},delete:function(e){c(e,"categories"),m({action:"delete",type:"categories",id:e})}},favorite:{create:function(e){d(e,"favorites"),m({action:"create",type:"favorites",data:e})},get:function(e){var t;return a?(c(e,"favorites"),n.data.favorites.hasOwnProperty(e)&&(t=b(n.data.favorites[e]),n.layout.categories.some((function(i){var o=n.layout.favorites[i].indexOf(e);return o>-1&&(t.index=o,t.parentId=i,!0)}))),t):(g(),null)},set:function(e,t){c(e,"favorites"),d(t,"favorites"),m({action:"update",type:"favorites",id:e,data:t})},delete:function(e){c(e,"favorites"),m({action:"delete",type:"favorites",id:e})}},model:{get:function(){return h()},load:function(e,t){if(e&&"function"!=typeof e)throw new Error("Input argument 'successCallback' expected to be of type 'function'.");if(t&&"function"!=typeof t)throw new Error("Input argument 'failureCallback' expected to be of type 'function'.");a?e&&e(h()):g(e,t)},close:function(){s&&m(),n=null,r=!1,a=!1,s=!1,l=[]},getVersion:y},_qe:{isTestMode:function(e){if("boolean"!=typeof e)return o;o=e}}}}),e,t),e.exports=o},function(e,t,i){e.exports={favoriteCommandsFavoritesButtonLabel:"お気に入り",favoriteCommandsFavoritesButtonDescription:"お気に入りのコマンド",generalCategoryTitle:"お気に入りのコマンド",examplesCategoryTitle:"例",aboutFavoriteCommands:"お気に入りのコマンドについて",aboutFavoriteCommandsComment:"お気に入りのコマンドのヘルプ ドキュメンテーションを表示します",clearVariablesAndCommands:"変数とコマンドのクリア",clearVariablesAndCommandsComment1:"現在の MATLAB ワークスペースからすべての変数を削除します",clearVariablesAndCommandsComment2:"MATLAB コマンド ウィンドウからすべての入力と出力をクリアします",goToUserFolder:"ユーザー フォルダーに移動",goToUserFolderComment:"MATLAB の現在のフォルダーを検索パス上の最初のフォルダーに変更します",matlabLogo:"MATLAB ロゴ",matlabLogoComment1:"Figure を作成して MATLAB ロゴを表示します",matlabLogoComment2:"Figure を更新してアニメーション中に表示されるようにします",matlabLogoComment3:"MATLAB ロゴを回転します",matlabLogoComment4:"ビューアーの新しい位置を設定します",matlabLogoComment5:"MATLAB の実行を一時停止してアニメーション速度を低下させます",newFavoriteLabel:"新規お気に入り",newFavoriteDescription:"新規お気に入りのコマンドを作成します",editFavoriteLabel:"お気に入りの編集",deleteFavoriteLabel:"お気に入りの削除",newCategoryLabel:"新規カテゴリ",newCategoryDescription:"新規お気に入りのコマンド カテゴリを作成します",editCategoryLabel:"カテゴリの編集",deleteCategoryLabel:"カテゴリの削除",moveToTopCategoryLabel:"上",favoriteCommandsEditorTitle:"お気に入りのコマンド エディター",categoryEditorTitle:"お気に入りのカテゴリ エディター",favoriteCommandsLabelLabel:"ラベル:",favoriteCommandsCodeLabel:"コード:",favoriteCommandsCategoryLabel:"カテゴリ:",favoriteCommandsIconLabel:"アイコン:",favoriteCommandsIconButtonLabel:"...",favoriteCommandsTestButtonLabel:"テスト",favoriteCommandsIconComboBoxLabel:"お気に入りのコマンド アイコン",favoriteCategoryIconComboBoxLabel:"お気に入りのカテゴリ アイコン",matlabIconComboBoxLabel:"MATLAB アイコン",simulinkIconComboBoxLabel:"Simulink アイコン",helpIconComboBoxLabel:"ヘルプ アイコン",favoriteCommandsLabelPlaceholder:"空のままにした場合は、コードが使用されます",favoriteCommandsCodePlaceholder:"コマンドの概要をここに記述",showLabelInQABCheckBoxLabel:"クイック アクセス ツール バーにラベルを表示",addToQABCheckBoxLabel:"クイック アクセス ツール バーに追加"}},function(e,t,i){e.exports={favoriteCommandsFavoritesButtonLabel:"즐겨찾기",favoriteCommandsFavoritesButtonDescription:"즐겨찾기 명령",generalCategoryTitle:"즐겨찾기 명령",examplesCategoryTitle:"예제",aboutFavoriteCommands:"즐겨찾기 명령 정보",aboutFavoriteCommandsComment:"즐겨찾기 명령에 대한 도움말 문서를 표시합니다.",clearVariablesAndCommands:"변수와 명령 지우기",clearVariablesAndCommandsComment1:"현재 MATLAB 작업 공간에서 모든 변수를 제거합니다.",clearVariablesAndCommandsComment2:"MATLAB 명령 창에서 입력값과 출력값을 모두 지웁니다.",goToUserFolder:"사용자 폴더로 이동",goToUserFolderComment:"MATLAB 현재 폴더를 검색 경로의 첫 번째 폴더로 변경합니다.",matlabLogo:"MATLAB 로고",matlabLogoComment1:"Figure를 만들고 MATLAB 로고를 표시합니다.",matlabLogoComment2:"애니메이션 중에 표시되도록 Figure를 업데이트합니다.",matlabLogoComment3:"MATLAB 로고를 회전합니다.",matlabLogoComment4:"뷰어의 새 위치를 설정합니다.",matlabLogoComment5:"애니메이션 속도를 늦추기 위해 MATLAB 실행을 일시적으로 중지합니다.",newFavoriteLabel:"새 즐겨찾기",newFavoriteDescription:"새 즐겨찾기 명령을 생성합니다.",editFavoriteLabel:"즐겨찾기 편집",deleteFavoriteLabel:"즐겨찾기 삭제",newCategoryLabel:"새 범주",newCategoryDescription:"새 즐겨찾기 명령 범주를 생성합니다.",editCategoryLabel:"범주 편집",deleteCategoryLabel:"범주 삭제",moveToTopCategoryLabel:"맨 위",favoriteCommandsEditorTitle:"즐겨찾기 명령 편집기",categoryEditorTitle:"즐겨찾기 범주 편집기",favoriteCommandsLabelLabel:"레이블:",favoriteCommandsCodeLabel:"코드:",favoriteCommandsCategoryLabel:"범주:",favoriteCommandsIconLabel:"아이콘:",favoriteCommandsIconButtonLabel:"...",favoriteCommandsTestButtonLabel:"테스트",favoriteCommandsIconComboBoxLabel:"즐겨찾기 명령 아이콘",favoriteCategoryIconComboBoxLabel:"즐겨찾기 범주 아이콘",matlabIconComboBoxLabel:"MATLAB 아이콘",simulinkIconComboBoxLabel:"Simulink 아이콘",helpIconComboBoxLabel:"도움말 아이콘",favoriteCommandsLabelPlaceholder:"비어 있을 경우 코드 사용",favoriteCommandsCodePlaceholder:"명령에 대한 설명은 여기에 입력",showLabelInQABCheckBoxLabel:"빠른 액세스 도구 모음에 레이블 표시",addToQABCheckBoxLabel:"빠른 액세스 도구 모음에 추가"}},function(e,t,i){e.exports={favoriteCommandsFavoritesButtonLabel:"收藏夹",favoriteCommandsFavoritesButtonDescription:"收藏命令",generalCategoryTitle:"收藏命令",examplesCategoryTitle:"示例",aboutFavoriteCommands:"关于收藏命令",aboutFavoriteCommandsComment:"显示收藏命令的帮助文档",clearVariablesAndCommands:"清除变量和命令",clearVariablesAndCommandsComment1:"从当前 MATLAB 工作区中删除所有变量",clearVariablesAndCommandsComment2:"清除 MATLAB 命令行窗口中的所有输入和输出",goToUserFolder:"转至用户文件夹",goToUserFolderComment:"将 MATLAB 当前文件夹更改为搜索路径上的第一个文件夹",matlabLogo:"MATLAB 徽标",matlabLogoComment1:"创建一个图窗并显示 MATLAB 徽标",matlabLogoComment2:"更新图窗使其在动画期间可见",matlabLogoComment3:"旋转 MATLAB 徽标",matlabLogoComment4:"设置查看器的新位置",matlabLogoComment5:"暂时停止 MATLAB 执行以降低动画速度",newFavoriteLabel:"新建收藏项",newFavoriteDescription:"创建新的收藏命令",editFavoriteLabel:"编辑收藏项",deleteFavoriteLabel:"删除收藏项",newCategoryLabel:"新建类别",newCategoryDescription:"创建新的收藏命令类别",editCategoryLabel:"编辑类别",deleteCategoryLabel:"删除类别",moveToTopCategoryLabel:"顶端",favoriteCommandsEditorTitle:"收藏命令编辑器",categoryEditorTitle:"收藏项类别编辑器",favoriteCommandsLabelLabel:"标签:",favoriteCommandsCodeLabel:"代码:",favoriteCommandsCategoryLabel:"类别:",favoriteCommandsIconLabel:"图标:",favoriteCommandsIconButtonLabel:"...",favoriteCommandsTestButtonLabel:"测试",favoriteCommandsIconComboBoxLabel:"收藏命令图标",favoriteCategoryIconComboBoxLabel:"收藏项类别图标",matlabIconComboBoxLabel:"MATLAB 图标",simulinkIconComboBoxLabel:"Simulink 图标",helpIconComboBoxLabel:"帮助图标",favoriteCommandsLabelPlaceholder:"保留为空时将使用代码",favoriteCommandsCodePlaceholder:"此处显示命令摘要",showLabelInQABCheckBoxLabel:"在快速访问工具栏上显示标签",addToQABCheckBoxLabel:"添加到快速访问工具栏"}},function(e,t,i){e.exports={root:{favoriteCommandsFavoritesButtonLabel:"Favorites",favoriteCommandsFavoritesButtonDescription:"Favorite Commands",generalCategoryTitle:"Favorite Commands",examplesCategoryTitle:"Examples",aboutFavoriteCommands:"About Favorite Commands",aboutFavoriteCommandsComment:"Display help documentation for Favorite Commands",clearVariablesAndCommands:"Clear Variables & Commands",clearVariablesAndCommandsComment1:"Remove all variables from the current MATLAB workspace",clearVariablesAndCommandsComment2:"Clear all input and output from the MATLAB Command Window",goToUserFolder:"Go to User Folder",goToUserFolderComment:"Change MATLAB current folder to the first folder on the search path",matlabLogo:"MATLAB Logo",matlabLogoComment1:"Create a figure and display the MATLAB logo",matlabLogoComment2:"Update figure so it is visible during animation",matlabLogoComment3:"Rotate the MATLAB logo",matlabLogoComment4:"Set new position of viewer",matlabLogoComment5:"Stop MATLAB execution temporarily to slow down animation",newFavoriteLabel:"New Favorite",newFavoriteDescription:"Create new favorite command",editFavoriteLabel:"Edit Favorite",deleteFavoriteLabel:"Delete Favorite",newCategoryLabel:"New Category",newCategoryDescription:"Create new favorite command category",editCategoryLabel:"Edit Category",deleteCategoryLabel:"Delete Category",moveToTopCategoryLabel:"Top",favoriteCommandsEditorTitle:"Favorite Commands Editor",categoryEditorTitle:"Favorite Category Editor",favoriteCommandsLabelLabel:"Label:",favoriteCommandsCodeLabel:"Code:",favoriteCommandsCategoryLabel:"Category:",favoriteCommandsIconLabel:"Icon:",favoriteCommandsIconButtonLabel:"...",favoriteCommandsTestButtonLabel:"Test",favoriteCommandsIconComboBoxLabel:"Favorite Commands Icon",favoriteCategoryIconComboBoxLabel:"Favorite Category Icon",matlabIconComboBoxLabel:"MATLAB Icon",simulinkIconComboBoxLabel:"Simulink Icon",helpIconComboBoxLabel:"Help Icon",favoriteCommandsLabelPlaceholder:"Will use Code if left empty",favoriteCommandsCodePlaceholder:"Command summary goes here",showLabelInQABCheckBoxLabel:"Show label on quick access toolbar",addToQABCheckBoxLabel:"Add to quick access toolbar"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(8296)],o=i.dj.d(n,(function(e,t,i){return e(null,{_dialog:null,constructor:function(e){this.favoriteActionsModule=e.favoriteActionsModule,this.categoryActionsModule=e.categoryActionsModule,this.uiBuilder=e.uiBuilder},open:function(e){e||(e={}),e.favoriteId?e.isEditing=!0:e.isEditing=!1,e.favoriteActionsModule=this.favoriteActionsModule,e.categoryActionsModule=this.categoryActionsModule,this._dialog=new i({favoriteAction:e||{},uiBuilder:this.uiBuilder})},close:function(){this._dialog&&(this._dialog.close(),this._dialog.destroy(),delete this._dialog)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(231),i(215),i(262),i(273),i(258),i(286),i(2609),i(308),i(1238),i(637),i(251),i(589),i(8297),i(291),i(297),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){var _=function(e){f.getMVM().eval(e.code,new g).then((function(e){}),(function(e){m.warn("Failed to execute eval request in FavoriteCommandsEditorModule with the error: "+e)}))},v=h.getBrowserSyncedClipboard();return e([i],{constructor:function(e){this.action=e.favoriteAction,this.favoriteActions=e.favoriteAction.favoriteActionsModule,this.categoryActions=e.favoriteAction.categoryActionsModule,this.uiBuilder=e.uiBuilder,this._renderForm(e.favoriteAction)},_renderForm:function(e){var t,i,h,f,g,m,b,y,C,T,E,S,w,I,A=document.createElement("div"),x=document.createElement("div"),N=document.createElement("div"),L=document.createElement("div"),D=document.createElement("div"),M=document.createElement("div"),P=document.createElement("div");A.classList.add("mwFavoriteCommandsEditorContents"),x.classList.add("mwFavoritesEditorLayoutRow"),N.classList.add("mwFavoritesEditorLayoutRow"),N.classList.add("mwFavoritesEditorCodeContainer"),L.classList.add("mwFavoritesEditorLayoutRow"),D.classList.add("mwFavoritesEditorLayoutRow"),M.classList.add("mwFavoritesEditorLayoutRow"),P.classList.add("mwFavoritesEditorLayoutRow"),(t=document.createElement("div")).textContent=c.favoriteCommandsLabelLabel,t.classList.add("mwFavoritesEditorLabel"),t.classList.add("mwDefaultVisualFamily"),t.classList.add("mwWidget"),x.appendChild(t),this.favoriteLabel=new r({placeholder:c.favoriteCommandsLabelPlaceholder,tag:"favoriteLabel"}),this.favoriteLabel.startup(),this.favoriteLabel.domNode.classList.add("mwFavoritesEditorControl"),this.favoriteLabel.domNode.classList.add("mwFavoritesEditorExpandToFit"),this.favoriteLabel.domNode.classList.add("mwFavoriteLabel"),x.appendChild(this.favoriteLabel.domNode),(i=document.createElement("div")).textContent=c.favoriteCommandsCodeLabel,i.classList.add("mwFavoritesEditorLabel"),i.classList.add("mwDefaultVisualFamily"),i.classList.add("mwWidget"),N.appendChild(i),(h=document.createElement("div")).classList.add("mwFavoriteCodeWrapper"),h.classList.add("mwFavoritesEditorControl"),h.classList.add("mwFavoritesEditorExpandToFit"),h.setAttribute("tabindex","-1"),N.appendChild(h);var O={registry:p.plugins,features:[u.CODE_ANALYZER,u.SYNTAX_HIGHLIGHTING,u.AUTO_COMPLETION,u.PAREN_MATCH,u.CONTEXT_MENU,u.AUTO_INDENT,u.VARIABLE_HIGHLIGHTING,u.FORMAT_CODE,u.SMART_TAB,u.SECTIONS.INSERT_SECTION_ACTION,u.SECTIONS.NEXT_SECTION_ACTION,u.SECTIONS.PREVIOUS_SECTION_ACTION,u.FIND_STRING,u.INDENT_ON_NEWLINE,u.COMMENT,u.INDENT,u.UNDO_REDO,u.CUT_COPY_PASTE],enabled:["fe.contextmenu.model"],clipboard:v};d.createRTC(O).then(function(t){this.favoriteCode=t,h.appendChild(this.favoriteCode.domNode),this.favoriteCode.blur(),this.favoriteCode.getDocument().setText("% "+c.favoriteCommandsCodePlaceholder+"\n"),this.favoriteCode.domNode.classList.add("mwFavoriteCode"),this.favoriteCode.domNode.setAttribute("data-test-id","favoriteCode"),h.appendChild(this.favoriteCode.domNode),f=function(){h.classList.add("mwFocused")}.bind(this),g=function(){h.classList.remove("mwFocused")}.bind(this),m=function(e){9===e.keyCode&&(e.shiftKey||(e.preventDefault(),this.favoriteCategory.focus()))}.bind(this),h.addEventListener("focus",f),h.addEventListener("blur",g),h.addEventListener("keydown",m),T=this.favoriteCode.domNode.getElementsByClassName("keyCapture")[0],b=function(){h.classList.add("mwFocusedWithin")}.bind(this),y=function(){h.classList.remove("mwFocusedWithin"),this.favoriteCode.blur()}.bind(this),C=function(e){27===e.keyCode&&h.focus()}.bind(this),T.addEventListener("focus",b),T.addEventListener("blur",y),T.addEventListener("keydown",C),(E=document.createElement("div")).textContent=c.favoriteCommandsCategoryLabel,E.classList.add("mwFavoritesEditorLabel"),E.classList.add("mwDefaultVisualFamily"),E.classList.add("mwWidget"),L.appendChild(E);var i=this.categoryActions.getCategoriesArrayForComboBox();this.favoriteCategory=new a({editable:!0,items:i,tag:"favoriteCategory",value:i[0].value}),this.favoriteCategory.resize=function(){},this.favoriteCategory._setWidthAttr=function(){},this.favoriteCategory.menu.onOpen=function(){this.menu.domNode.style.width=this.domNode.getBoundingClientRect().width-2+"px"}.bind(this.favoriteCategory),this.favoriteCategory.startup(),this.favoriteCategory.textFieldContainerNode.style.width="calc(100% - 22px)",this.favoriteCategory._textField.domNode.style.width="100%",this.favoriteCategory.domNode.classList.add("mwFavoritesEditorControl"),this.favoriteCategory.domNode.classList.add("mwFavoritesEditorExpandToFit"),this.favoriteCategory.domNode.classList.add("mwFavoriteCategory"),L.appendChild(this.favoriteCategory.domNode),(S=document.createElement("div")).textContent=c.favoriteCommandsIconLabel,S.classList.add("mwFavoritesEditorLabel"),S.classList.add("mwDefaultVisualFamily"),S.classList.add("mwWidget"),D.appendChild(S);var r=this._generateItemList();this.favoriteIcon=new s({editable:!1,items:r,value:"icon_favorite_command_16",tag:"iconComboBox"}),this.favoriteIcon.resize=function(){},this.favoriteIcon._setWidthAttr=function(){},this.favoriteIcon.menu.onOpen=function(){this.menu.domNode.style.width=this.domNode.getBoundingClientRect().width-2+"px"}.bind(this.favoriteIcon),this.favoriteIcon.startup(),this.favoriteIcon.textFieldContainerNode.style.width="calc(100% - 22px)",this.favoriteIcon._textField.domNode.style.width="100%",this.favoriteIcon.domNode.classList.add("mwFavoritesEditorControl"),this.favoriteIcon.domNode.classList.add("mwFavoritesEditorExpandToFit"),this.favoriteIcon.domNode.classList.add("mwFavoriteIcon"),D.appendChild(this.favoriteIcon.domNode),function(e){32===e.keyCode&&e.target.click()}.bind(this),(w=document.createElement("div")).classList.add("mwFavoritesEditorLabel"),w.classList.add("mwDefaultVisualFamily"),w.classList.add("mwWidget"),M.appendChild(w),this.favoriteAddQab=new l({text:c.addToQABCheckBoxLabel}),this.favoriteAddQab.startup(),this.favoriteAddQab.domNode.classList.add("mwFavoritesEditorControl"),this.favoriteAddQab.domNode.classList.add("mwFavoriteAddQab"),M.appendChild(this.favoriteAddQab.domNode),(I=document.createElement("div")).classList.add("mwFavoritesEditorLabel"),I.classList.add("mwDefaultVisualFamily"),I.classList.add("mwWidget"),P.appendChild(I),this.favoriteShowQab=new l({text:c.showLabelInQABCheckBoxLabel}),this.favoriteShowQab.startup(),this.favoriteShowQab.domNode.classList.add("mwFavoritesEditorControl"),this.favoriteShowQab.domNode.classList.add("mwFavoriteShowQab"),P.appendChild(this.favoriteShowQab.domNode),this.own(this.favoriteAddQab.on("change",function(e){"checked"===e.mwEventData.propertyName&&this.favoriteShowQab.set("disabled",!e.mwEventData.newValue)}.bind(this))),this._populateForm(e),A.appendChild(x),A.appendChild(N),A.appendChild(L),A.appendChild(D),A.appendChild(M),A.appendChild(P),this._dialog&&this._dialog.destroy(),this._dialog=n.createDialog({title:c.favoriteCommandsEditorTitle,className:"exampleDialog",dialogType:n.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,"data-test-id":"favoriteCommandsEditor",content:A,buttons:[{type:o.TYPE.SPL1,label:c.favoriteCommandsTestButtonLabel,"data-test-id":"TestButton"},o.SAVE,o.CANCEL,o.HELP],defaultActionButton:o.SAVE}),this._dialog.on("close",function(){h.removeEventListener("focus",f),h.removeEventListener("blur",g),h.removeEventListener("keydown",m),T.removeEventListener("focus",b),T.removeEventListener("blur",y),T.removeEventListener("keydown",C),this.favoriteLabel.inputNode.removeEventListener("keydown",d),this.favoriteCode.domNode.querySelector("textarea").removeEventListener("keydown",d,!0),this.favoriteCategory.inputNode.removeEventListener("keydown",d),this.favoriteCode.destroy(),delete this._dialog}.bind(this)),this._dialog.addButtonEventListener(o.TYPE.SPL1,function(){_({code:this.favoriteCode.getDocument().getText()})}.bind(this),!1),this._dialog.addButtonEventListener(o.SAVE,function(){this._saveDialogContents()}.bind(this),!0),this._dialog.addButtonEventListener(o.CANCEL,(function(){}),!0),this._dialog.addButtonEventListener(o.HELP,function(){_({code:"helpview([docroot '/mapfiles/matlab_env.map'], 'matlab_favorites');"})}.bind(this),!1);var d=function(){setTimeout(function(){this._dialog&&((this.favoriteCode.getDocument().getText().trim()||this.favoriteLabel.inputNode.value.trim())&&this.favoriteCategory.inputNode.value.trim()?this._dialog.enableButton(o.SAVE):this._dialog.disableButton(o.SAVE))}.bind(this),0)}.bind(this);this.favoriteLabel.inputNode.addEventListener("keydown",d),this.favoriteCode.domNode.querySelector("textarea").addEventListener("keydown",d,!0),this.favoriteCategory.inputNode.addEventListener("keydown",d),this.own(this.favoriteLabel,this.favoriteCode,this.favoriteCategory,this.favoriteIcon,this.favoriteAddQab,this.favoriteShowQab,this._dialog),this.favoriteCode.startup()}.bind(this))},_generateItemList:function(){for(var e="abcdefghijklmnopqrstuvwxyz",t=[{label:c.favoriteCommandsIconComboBoxLabel,value:"icon_favorite_command_16",icon:"icon_favorite_command_16"},{label:c.matlabIconComboBoxLabel,value:"icon_matlab_favorite_16",icon:"icon_matlab_favorite_16"},{label:c.simulinkIconComboBoxLabel,value:"icon_simulink_favorite_16",icon:"icon_simulink_favorite_16"},{label:c.helpIconComboBoxLabel,value:"icon_help_favorite_16",icon:"icon_help_favorite_16"}],i=0;i<e.length;i++){var n={label:"Upper Case "+e.charAt(i).toUpperCase(),value:"fav_command_"+e.charAt(i),icon:"fav_command_"+e.charAt(i)};t.push(n)}for(var o=0;o<e.length;o++){var r={label:"Lower Case "+e.charAt(o),value:"fav_command_lower_case_"+e.charAt(o),icon:"fav_command_lower_case_"+e.charAt(o)};t.push(r)}for(var a=0;a<"0123456789".length;a++){var s={label:"Number "+"0123456789".charAt(a),value:"fav_command_"+"0123456789".charAt(a),icon:"fav_command_"+"0123456789".charAt(a)};t.push(s)}return t},_saveDialogContents:function(){var e={};e.label=this.favoriteLabel.get("value"),e.code=this.favoriteCode.getDocument().getText(),e.parentTag=this.favoriteCategory.get("value"),e.parentId=this.uiBuilder.tagToId(e.parentTag),e.parentId||(e.parentId=this.categoryActions.createCategory({title:e.parentTag}),e.parentTag=this.categoryActions.tagFromId(e.parentId)),e.icon=this.favoriteIcon.get("icon"),e.quickAccessIcon=e.icon,e.isInQAB=this.favoriteAddQab.get("checked"),e.showText=this.favoriteShowQab.get("checked"),this.action.isEditing?(e.tag=this.action.tag,e.text=e.label||e.code||"",this.favoriteActions.updateFavorite(this.action.favoriteId,e)):this.favoriteActions.createFavorite(e)},_populateForm:function(e){e.label&&"string"==typeof e.label&&this.favoriteLabel.set("value",e.label),e.code&&"string"==typeof e.code&&this.favoriteCode.getDocument().setText(e.code);var i=e.parent||t.byId(e.parentId);if(i&&i.title&&"string"==typeof i.title&&this.favoriteCategory.set("value",i.tag),e.icon&&"string"==typeof e.icon&&this.favoriteIcon.set("value",e.icon),e.isInQAB&&"boolean"==typeof e.isInQAB){this.favoriteAddQab.set("checked",e.isInQAB);var n=e.tag;n.indexOf("_qab")<0&&(n+="_qab");var o=this.uiBuilder.widgetByTag(n);if(o){var r=o.get("showText");"boolean"==typeof r&&this.favoriteShowQab.set("checked",r)}}else this.favoriteShowQab.set("disabled",!0)},close:function(){this._dialog&&this._dialog.close()},destroy:function(){this._dialog&&this._dialog.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8298)],o=i.dj.d(n,(function(){return{plugins:[{id:"fe.contextmenu.model",path:"matlab_favorite_commands/js/FavoriteCommandsEditorPlugins/FEContextMenuModelProvider"}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(205),i(8299)],o=i.dj.d(n,(function(e,t,i){return e(t,{isApplicable:function(){return!0},requires:function(){return{createInstance:["rtc.contextmenu.model"]}},createInstance:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(207)],o=i.dj.d(n,(function(e,t){return e(t,{_COPY_PASTE_GROUP:"copyPaste",constructor:function(e){this._baseContextMenuModel=e,this._updateContextMenu()},_updateContextMenu:function(){this._baseContextMenuModel.hideGroup(this._COPY_PASTE_GROUP)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(229),i(226),i(291),i(297),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s,l,c={},d=function(e,t){var i={id:e.tag,enabled:!0,label:e.label,text:e.text,icon:e.icon,quickAccessIcon:e.icon,parentId:e.parentId,isInQAB:e.isInQAB,showText:e.showText,code:e.code,groupIdForLazyLoadingQABItems:"FavoriteCommands",callback:function(){var i;i=t.getAction(e.tag),n.getMVM().eval(i.code,new o).then((function(e){}),(function(e){r.warn("Eval request in FavoriteCommandActions failed for action: "+i.text+" with the error: "+e)}))}};return t.addAction(i),i.id};return c.initialize=function(e){a=e.uiBuilder,s=e.actionService,l=e.dataService},c.createFavorite=function(e,n){var o;"Favorite Command Icon"===e.icon&&(e.icon="icon_favorite_command_16"),e.label=e.label||"",e.icon=e.icon||"icon_favorite_command_16",e.code=e.code||"",e.text=e.label||e.code,e.editable=e.editable||!0,e.parentId=e.category||e.categoryId||e.parentId||"",e.type=i.GALLERY_ITEM,e.tag=e.tag||"FAV_"+t.generateUuid(),e.isInQAB=e.isInQAB||!1,e.showText=e.showText||!1,e.actionId=d(e,s),o=a.create(e),e.index=a.indexOf(o);var r={};if(e.isInQAB){let e=a.get(o,"tag"),t=a.widgetByTag(e),i=a.tagToId(e+"_qab");r[i]=a.addPropertySetCallback(i,(function(i){"showText"===i.property&&(l.favorite.set(e,{showText:i.newValue}),c.updateFavorite(o,{isInQAB:a.get(o,"isInQAB"),showText:i.newValue,tag:e,widget:t}))}))}if(s._actionById(e.actionId).addEventListener("propertySet",e=>{"QABManager_Restore"!==e.originator&&"isInQAB"!==e.data.key||((e,t,i)=>{if("isInQAB"===e){let e=a.get(o,"tag"),n=a.widgetByTag(e),s=a.tagToId(e+"_qab");l.favorite.set(e,{isInQAB:t}),c.updateFavorite(o,{isInQAB:t,showText:!!t&&!!a.get(s,"showText"),tag:e,widget:n}),t&&!i?r[s]=a.addPropertySetCallback(s,(function(i){"showText"===i.property&&(l.favorite.set(e,{showText:i.newValue}),c.updateFavorite(o,{isInQAB:t,showText:i.newValue,tag:e,widget:n}))})):!t&&i&&r.hasOwnProperty(s)&&r[s].remove&&(r[s].remove(),delete r[s])}})(e.data.key,e.data.newValue,e.data.oldValue)}),e.showText){var u=a.widgetByTag(e.tag+"_qab");u&&u.set("showText",!0)}return n||l.favorite.create(e),o},c.updateFavorite=function(e,t){var i;if(e){if((i=a.widgetByTag(t.tag+"_qab"))&&i.get("id")===e){var n=a.widgetByTag(t.tag);n&&n.get("id")&&(e=n.get("id"))}var o=t.tag;delete t.tag,s.updateAction(o,t),t.tag=o,void 0===i&&(i=a.widgetByTag(t.tag+"_qab")),i&&t.isInQAB&&i.set("showText",t.showText),t.parentId&&(a.remove(e),a.add(e,t.parentId),t.index=a.indexOf(e)),l.favorite.set(t.tag,t)}else c.createFavorite(t)},c.deleteFavorite=function(e){var t=e.favorite.tag;t=t.replace("_qab",""),s.removeAction(t),a.remove(a.tagToId(t)),a.destroy(a.tagToId(t)),e.favorite.isInQAB&&(a.remove(a.tagToId(t+"_qab")),a.destroy(a.tagToId(t+"_qab"))),l.favorite.delete(t)},c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(8302)],o=i.dj.d(n,(function(e,t,i){return e(null,{_dialog:null,constructor:function(e){this.categoryActionsModule=e.categoryActionsModule,this.uiBuilder=e.uiBuilder},open:function(e){e?e.isEditing=!0:(e={}).isEditing=!1,e.categoryActionsModule=this.categoryActionsModule,e.uiBuilder=e.uiBuilder||this.uiBuilder,this._dialog=new i(e)},close:function(){this._dialog&&(this._dialog.close(),this._dialog.destroy(),delete this._dialog)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(262),i(273),i(258),i(2609),i(308),i(1238),i(291),i(297),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([t],{constructor:function(e){this.categoryActionsModule=e.categoryActionsModule,this.categoryWidget=e.widget,this.galleryPopupId=e.galleryPopupId,this.uiBuilder=e.uiBuilder,this._renderForm(e)},_renderForm:function(e){var t,u,h,p,f=document.createElement("div"),g=document.createElement("div"),m=document.createElement("div"),_=document.createElement("div"),v=document.createElement("div");f.classList.add("mwCategoryEditorContents"),g.classList.add("mwCategoryEditorLayoutRow"),m.classList.add("mwCategoryEditorLayoutRow"),_.classList.add("mwCategoryEditorLayoutRow"),v.classList.add("mwCategoryEditorLayoutRow"),(t=document.createElement("div")).textContent=s.favoriteCommandsLabelLabel,t.classList.add("mwCategoryEditorLabel"),t.classList.add("mwDefaultVisualFamily"),t.classList.add("mwWidget"),g.appendChild(t),this.categoryLabel=new o({tag:"favoriteCategoryLabel"}),this.categoryLabel.startup(),this.categoryLabel.domNode.classList.add("mwCategoryEditorControl"),this.categoryLabel.domNode.classList.add("mwCategoryEditorExpandToFit"),this.categoryLabel.domNode.classList.add("mwCategoryLabel"),g.appendChild(this.categoryLabel.domNode),(u=document.createElement("div")).textContent=s.favoriteCommandsIconLabel,u.classList.add("mwCategoryEditorLabel"),u.classList.add("mwDefaultVisualFamily"),u.classList.add("mwWidget"),m.appendChild(u);var b=this._generateItemList();this.categoryIcon=new r({editable:!1,items:b,value:"icon_favorite_category_16"}),this.categoryIcon.resize=function(){},this.categoryIcon._setWidthAttr=function(){},this.categoryIcon.menu.onOpen=function(){this.menu.domNode.style.width=this.domNode.getBoundingClientRect().width-2+"px"}.bind(this.categoryIcon),this.categoryIcon.startup(),this.categoryIcon.textFieldContainerNode.style.width="calc(100% - 22px)",this.categoryIcon._textField.domNode.style.width="100%",this.categoryIcon.domNode.classList.add("mwCategoryEditorControl"),this.categoryIcon.domNode.classList.add("mwCategoryEditorExpandToFit"),this.categoryIcon.domNode.classList.add("mwCategoryIcon"),m.appendChild(this.categoryIcon.domNode),(h=document.createElement("div")).classList.add("mwCategoryEditorLabel"),h.classList.add("mwDefaultVisualFamily"),h.classList.add("mwWidget"),_.appendChild(h),this.categoryAddQab=new a({text:s.addToQABCheckBoxLabel}),this.categoryAddQab.startup(),this.categoryAddQab.domNode.classList.add("mwCategoryEditorControl"),this.categoryAddQab.domNode.classList.add("mwCategoryAddQab"),_.appendChild(this.categoryAddQab.domNode),(p=document.createElement("div")).classList.add("mwCategoryEditorLabel"),p.classList.add("mwDefaultVisualFamily"),p.classList.add("mwWidget"),v.appendChild(p),this.categoryShowQab=new a({text:s.showLabelInQABCheckBoxLabel}),this.categoryShowQab.startup(),this.categoryShowQab.domNode.classList.add("mwCategoryEditorControl"),this.categoryShowQab.domNode.classList.add("mwCategoryShowQab"),v.appendChild(this.categoryShowQab.domNode),this._populateForm(e),f.appendChild(g),f.appendChild(m),f.appendChild(_),f.appendChild(v),this._dialog&&this._dialog.destroy(),this._dialog=i.createDialog({title:s.categoryEditorTitle,className:"exampleDialog",dialogType:i.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,"data-test-id":"favoriteCategoryEditor",content:f,buttons:[n.SAVE,n.CANCEL,n.HELP],defaultActionButton:n.SAVE}),this._dialog.addButtonEventListener(n.SAVE,function(){this._saveDialogContents()}.bind(this),!0),this._dialog.addButtonEventListener(n.CANCEL,(function(){}),!0),this._dialog.addButtonEventListener(n.HELP,(function(){var e;e={code:"helpview([docroot '/mapfiles/matlab_env.map'], 'matlab_favorites');"},l.getMVM().eval(e.code,new c).then((function(e){}),(function(e){d.warn("Failed to execute eval request in CategoryEditorModule with the error: "+e)}))}),!1),this.categoryAddQab.on("change",function(){this.categoryShowQab.set("disabled",!this.categoryAddQab.get("checked"))}.bind(this)),this.own(this.categoryLabel,this.categoryIcon,this.categoryAddQab,this.categoryShowQab,this._dialog)},_generateItemList:function(){for(var e="abcdefghijklmnopqrstuvwxyz",t=[{label:s.favoriteCategoryIconComboBoxLabel,value:"icon_favorite_category_16",icon:"icon_favorite_category_16"},{label:s.matlabIconComboBoxLabel,value:"icon_matlab_category_16",icon:"icon_matlab_category_16"},{label:s.simulinkIconComboBoxLabel,value:"icon_simulink_category_16",icon:"icon_simulink_category_16"},{label:s.helpIconComboBoxLabel,value:"icon_help_category_16",icon:"icon_help_category_16"}],i=0;i<e.length;i++){var n={label:"Upper Case "+e.charAt(i).toUpperCase(),value:"fav_category_"+e.charAt(i),icon:"fav_category_"+e.charAt(i)};t.push(n)}for(var o=0;o<e.length;o++){var r={label:"Lower Case "+e.charAt(o),value:"fav_category_lower_case_"+e.charAt(o),icon:"fav_category_lower_case_"+e.charAt(o)};t.push(r)}for(var a=0;a<"0123456789".length;a++){var l={label:"Number "+"0123456789".charAt(a),value:"fav_category_"+"0123456789".charAt(a),icon:"fav_category_"+"0123456789".charAt(a)};t.push(l)}return t},_saveDialogContents:function(){var e={};e.label=this.categoryLabel.get("value").trim(),e.title=e.label,e.icon=this.categoryIcon.get("icon"),e.quickAccessIcon=e.icon,e.isInQAB=this.categoryAddQab.get("checked"),e.showText=this.categoryShowQab.get("checked"),e.galleryPopupId=e.parentId=this.galleryPopupId,this.categoryWidget&&(e.tag=this.categoryWidget.id,Object.assign(this.categoryWidget,e)),this.categoryActionsModule.updateCategory(e)},_populateForm:function(e){if(e.title&&"string"==typeof e.title&&this.categoryLabel.set("value",e.title),e.icon&&"string"==typeof e.icon&&this.categoryIcon.set("value",e.icon),e.isInQAB&&"boolean"==typeof e.isInQAB){this.categoryAddQab.set("checked",e.isInQAB);var t=e.tag;t.indexOf("_qab")<0&&(t+="_qab");var i=this.uiBuilder.widgetByTag(t);if(i){var n=i.get("showText");"boolean"==typeof n&&this.categoryShowQab.set("checked",n)}}else this.categoryShowQab.set("disabled",!0)},close:function(){this._dialog&&this._dialog.close()},destroy:function(){this._dialog&&this._dialog.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(231),i(229),i(241),i(247),i(226)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a,s,l={};return l.initialize=function(e){r=e.uiBuilder,a=e.actionService,s=e.dataService},l.createCategory=function(e,i){if(!(["Help Browser Favorites"].indexOf(e.title)>-1)){var n;"Category Icon"===e.icon&&(e.icon="icon_favorite_category_16"),e.title=e.title||e.label||"",e.icon=e.icon||"icon_favorite_category_16",e.type=o.GALLERY_CATEGORY,e.hideWhenEmpty=!1,e.dndEnabled=!0,e.editable=e.editable||!0,e.tag=e.tag||"CAT_"+t.generateUuid(),e.isInQAB=e.isInQAB||!1,e.showText=e.showText||!1,e.parentId=e.galleryPopupId,e.actionId=function(e,t){var i={id:e.tag,enabled:!0,label:e.label,text:e.text,icon:e.icon,quickAccessIcon:e.icon,parentId:e.parentId,isInQAB:e.isInQAB,showText:e.showText,groupIdForLazyLoadingQABItems:"FavoriteCommandsCategory"};return t.addAction(i),i.id}(e,a),n=r.create(e),r.addEventCallback(n,(function(e){let t=r.get(e.itemId,"tag");if("categoryMoved"===e.eventType)s.category.set(t,{index:e.newIndex});else if("itemMoved"===e.eventType){let i=r.get(e.parentId,"tag");a.updateAction(t,{parentId:e.parentId}),s.favorite.set(t,{parentTag:i,parentId:e.parentId,index:e.newIndex})}}));var c={};if(e.isInQAB){let e=r.get(n,"tag"),t=r.widgetByTag(e),i=r.tagToId(e+"_qab");c[i]=r.addPropertySetCallback(i,(function(i){"showText"===i.property&&(s.category.set(e,{showText:i.newValue}),l.updateCategory({isInQAB:r.get(n,"isInQAB"),showText:i.newValue,tag:e,widget:t}))}))}if(a._actionById(e.actionId).addEventListener("propertySet",e=>{"QABManager_Restore"!==e.originator&&"isInQAB"!==e.data.key||((e,t,i)=>{if("isInQAB"===e){let e=r.get(n,"tag"),o=r.widgetByTag(e),a=r.tagToId(e+"_qab");s.category.set(e,{isInQAB:t}),l.updateCategory({isInQAB:t,showText:!!t&&!!r.get(a,"showText"),tag:e,widget:o}),t&&!i?c[a]=r.addPropertySetCallback(a,(function(i){"showText"===i.property&&(s.category.set(e,{showText:i.newValue}),l.updateCategory({isInQAB:t,showText:i.newValue,tag:e,widget:o}))})):!t&&i&&c.hasOwnProperty(a)&&c[a].remove&&(c[a].remove(),delete c[a])}})(e.data.key,e.data.newValue,e.data.oldValue)}),e.galleryPopupId||(e.galleryPopupId=r.tagToId("motwToolstrip.matlabTab.code.favCommands.popup"),r.set(n,"galleryPopupId",e.galleryPopupId),r.add(n,e.galleryPopupId)),JSON.parse(JSON.stringify(e)).id=n,e.showText){var d=r.widgetByTag(e.tag+"_qab");d&&d.set("showText",!0)}return i||s.category.create(e),n}},l.updateCategory=function(e){var t=e.tag||(e.widget?e.widget.tag:""),i=r.tagToId(t);if(i){if(!0===s.category.get(t).editable){["title","icon","isInQAB","showText"].forEach((function(t){e.hasOwnProperty(t)&&r.set(i,t,e[t])}));var n=r.widgetByTag(t+"_qab");if(n&&n.get("id")===i){var o=r.widgetByTag(t);o&&o.get("id")&&(i=o.get("id"))}var c=e.tag;delete e.tag,a.updateAction(c,e),e.tag=c,void 0===n&&(n=r.widgetByTag(t+"_qab")),n&&e.isInQAB&&n.set("showText",e.showText),e.index=r.indexOf(i),s.category.set(t,e)}}else l.createCategory(e)},l.deleteCategory=function(e){var t=e.category.tag;t=t.replace("_qab","");var o=r.tagToId(t);if(!0===s.category.get(t).editable){var l=n.escapeHtml('Are you sure you want to delete category: "'+e.category.title+'", and all of the favorite commands it contains?'),c={closeCallback:function(i){if(1===i.response){var n=r.getChildrenIds(o);n&&n.length>0&&n.forEach((function(e){r.destroy(e)}),this),r.remove(o),e.category._removeConfigurationLayoutListeners&&e.category._removeConfigurationLayoutListeners(),r.destroy(o),e.category.isInQAB&&(r.remove(r.tagToId(t+"_qab")),r.destroy(r.tagToId(t+"_qab"))),a.removeAction(t),s.category.delete(t)}}};i.displayConfirmDialog("Delete Category",l,c).domNode.classList.add("mwDeleteFavoritesCategoryConfirmation")}},l.tagFromId=function(t){var i=null,n=document.getElementById(t)||e.byId(t);return n&&(n instanceof Element&&n.hasAttribute("data-tag")?i=n.getAttribute("data-tag"):n.domNode&&(i=n.get("tag"))),i},l.getCategoriesArrayForComboBox=function(){var e=s.model.get().layout.categories,t=[];return e.forEach((function(e){t.push({label:s.category.get(e).label,value:e})})),t},l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{FAVORITE_COMMANDS:"motw.favoriteCommands",NEW_FAVORITE:"motw.newFavorite",EDIT_FAVORITE:"motw.editFavorite",DELETE_FAVORITE:"motw.deleteFavorite",TOGGLE_QAB_FAVORITE:"motw.toggleQabFavorite",NEW_CATEGORY:"motw.newCategory",EDIT_CATEGORY:"motw.editCategory",DELETE_CATEGORY:"motw.deleteCategory",MOVE_TO_TOP_CATEGORY:"motw.moveToTopCategory",MOVE_TO_BOTTOM_CATEGORY:"motw.moveToTopCategory"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(302),i(204),i(224),i(8306),i(2610)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e){if(!(e=e||{}).feedbackService)throw new Error("Feedback service required for the FeedbackManager to function");if(!e.layoutService)throw new Error("Layout service required for the FeedbackManager to display FeedbackDialog");this.feedbackService=e.feedbackService,this.layoutService=e.layoutService,t.connect(this.feedbackService,"onFault",this,"_onFault"),t.connect(this.feedbackService,"onSuccess",this,"_onSuccess"),this.feedbackResources=r,this.state=this.BASE_STATE},openFeedbackDialog:function(e){this._reset(),e=e||{},this.feedbackDialog=new o,this.closeHandler=t.connect(this.feedbackDialog,"onClose",this,"_reset"),this.contentHandlers.push(t.connect(this.feedbackDialog,"onOk",this,"_onFeedbackSubmit")),this.contentHandlers.push(t.connect(this.feedbackDialog,"onCancel",this,"_reset")),this.contentHandlers.push(t.connect(this.feedbackDialog,"onDone",this,"_reset")),this.layoutService.addWidget("feedbackDialog","newDialog",this.feedbackDialog,{title:"Submit Feedback","data-testid":"FeedbackDialog"}),this.state=this.FEEDBACK_FORM_VIEW_STATE,this.feedbackDialog.startup()},_reset:function(){this.feedbackDialog&&(this.layoutService.removeWidget("feedbackDialog"),this.feedbackDialog=null,this.state=this.BASE_STATE),this.timer&&clearTimeout(this.timer),this._resetContentHandlers()},_updateDialog:function(){var e;switch(this.state){case this.SUBMISSION_PENDING_STATE:e=this.feedbackResources.submissionPendingMessage;break;case this.SUBMISSION_SUCCESS_STATE:e=this.feedbackResources.submissionSuccessMessage;break;case this.SUBMISSION_FAILURE_STATE:e=this.feedbackResources.submissionFailureMessage;break;default:e=this.feedbackResources.submissionSuccessMessage}this.feedbackDialog&&this.feedbackDialog.showMessageView(!0,e)},_resetContentHandlers:function(){n.forEach(this.contentHandlers,(function(e){t.disconnect(e)})),this.contentHandlers=[]},_onFault:function(){this.state=this.SUBMISSION_FAILURE_STATE,this._updateDialog()},_onSuccess:function(){this.state=this.SUBMISSION_SUCCESS_STATE,this._updateDialog();var e=this;this.timer=setTimeout((function(){e._reset()}),2e3)},_onFeedbackSubmit:function(){if(this.state===this.FEEDBACK_FORM_VIEW_STATE){var e=this.feedbackDialog.getFeedback();this.feedbackService.submitFeedback(e),this.state=this.SUBMISSION_PENDING_STATE,this._updateDialog()}},BASE_STATE:0,FEEDBACK_FORM_VIEW_STATE:1,SUBMISSION_PENDING_STATE:2,SUBMISSION_SUCCESS_STATE:3,SUBMISSION_FAILURE_STATE:4})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(206),i(211),i(213),i(204),i(215),i(216),i(255),i(2610),i(600),i(8308),i(243),i(258),i(413)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([a,s,l],{templateString:u,constructor:function(e){e=e||{},this.feedbackResources=c,r.mixin(this.feedbackResources,d)},postCreate:function(){this.inherited(arguments),this.okButton.set("disabled",!0),this._updateStringsWithLocalization(this.feedbackResources),this.showMessageView(!1)},startup:function(){this.inherited(arguments)},onTyping:function(e){""===e.mwEventData.currentContent?this.okButton.set("disabled",!0):this.okButton.set("disabled",!1)},onCancel:function(){i.emit(this.domNode,"restorefocus",{bubbles:!0})},onOk:function(){},onDone:function(){},onClose:function(){i.emit(this.domNode,"restorefocus",{bubbles:!0})},_updateStringsWithLocalization:function(e){this.okButton.set("label",e.submitFeedback),this.cancelButton.set("label",e.cancel),this.doneButton.set("label",e.ok)},showMessageView:function(e,t){var i=e?"none":"block",n=e?"block":"none";o.set(this.submissionDetails,"display",i),o.set(this.feedbackButtons,"display",i),o.set(this.submissionMessage,"display",n),this.submittedMessage.innerHTML=t||""},getFeedback:function(){return{summary:this.feedbackSummaryInput.get("value"),description:this.feedbackDetailsInput.get("value")}}})}),e,t),e.exports=o},function(e,t,i){e.exports={root:{submitFeedback:"Submit",submissionPendingMessage:"Pending...",submissionSuccessMessage:"Feedback submitted successfully.",submissionFailureMessage:"Sorry, there was an error while submitting feedback."}}},function(e,t){e.exports='<div class="feedbackDialog"\n data-dojo-attach-point="contentNode">\n\n <div class="submissionDetails"\n data-dojo-attach-point="submissionDetails">\n <div class="input-row">\n <label data-dojo-attach-point=\'feedbackSummaryLabel\'\n for="feedbackSummary">Summary</label>\n <input id="feedbackSummary"\n tabindex="1"\n data-dojo-attach-point="feedbackSummaryInput"\n data-dojo-type="mw-form/TextField"\n data-dojo-props="width:300"\n data-dojo-attach-event="typing:onTyping"\n data-testid="feedbackSummary"/>\n </div>\n\n <div class="input-row">\n <label data-dojo-attach-point=\'feedbackDetailsLabel\'\n for="feedbackDetails">Description</label>\n <textarea id="feedbackDetails"\n tabindex="2"\n data-dojo-attach-point="feedbackDetailsInput"\n data-dojo-props="width:300,height:200"\n data-dojo-type="mw-form/TextArea"></textarea>\n </div>\n </div>\n\n <div class="feedbackButtons"\n data-dojo-attach-point="feedbackButtons">\n <button class="cancelButton" id="cancelFeedbackButton" tabIndex="4"\n data-dojo-attach-point="cancelButton"\n data-dojo-attach-event="click:onCancel"\n data-dojo-props="text:\'Cancel\'"\n data-dojo-type="mw-form/PushButton" data-testid="cancelFeedbackButton">\n </button>\n <button class="okButton" id="submitFeedbackButton" tabIndex="3"\n\t\t\t\tdata-dojo-type="mw-form/PushButton"\n data-dojo-attach-event="click:onOk"\n data-dojo-props="text:\'Submit\'"\n\t\t\t\tdata-dojo-attach-point="okButton" data-testid="submitFeedbackButton">\n </button>\n </div>\n\n <div class="submissionMessage"\n data-dojo-attach-point="submissionMessage">\n <p class="submittedMessage"\n data-dojo-attach-point="submittedMessage"\n data-testid="submittedMessage">Feedback message</p>\n\n <p style="text-align: center;">\n <button class="doneButton" id="doneFeedbackButton"\n\t\t\t\t\tdata-dojo-type="mw-form/PushButton"\n data-dojo-attach-point="doneButton"\n data-dojo-attach-event="click:onDone"\n data-dojo-props="text:\'Done\'"\n\t\t\t\t\tdata-testid="doneFeedbackButton">\n </button>\n </p>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(224),i(407),i(209),i(232),i(290)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{constructor:function(e){e=e||{},o.registerResponseHandler("FeedbackResponse",this._handleSubmitFeedbackResponse,this),o.registerFaultHandler("Feedback",this._handleSubmitFeedbackFault,this)},submitFeedback:function(e){if(e&&e.summary){var t=i.getSystemInfo();t.TYPE="motw",t.VERSION=r.versionNumber,this._submitFeedback(e.summary,e.description,t)}else n.error("No Summary information, cannot submit feedback")},onFault:function(){},onSuccess:function(){},_submitFeedback:function(e,t,i){var n={summary:e,description:t,nameValuePairs:i};o.sendMessage({Feedback:[n]})},_handleSubmitFeedbackResponse:function(e){t.forEach(e,(function(e){e.messageFaults&&e.messageFaults.length>0?this.onFault():this.onSuccess()}),this)},_handleSubmitFeedbackFault:function(e){n.error("**** Error received in FeedbackService ****"),n.error("**** Error is "+e+" ****"),this.onFault()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(231),i(8311),i(752)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{constructor:function(){this._galleryTag="motwToolstrip.figureToolstripTab.annotations.gallery",this._galleryPopupTag="motwToolstrip.figureToolstripTab.annotations.galleryPopup"},buildGalleryPopup:function(){this._uiBuilder.createGalleryPopupFromConfig(i)},postPopulateGallery:function(){this._galleryId=this._uiBuilder.tagToId(this._galleryTag),this._galleryWidget=t.byId(this._galleryId),this._postPopulateGallery()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(1632),i(536)],o=i.dj.d(n,(function(e,t,i){return{type:e.GALLERY_POPUP,tag:"motwToolstrip.figureToolstripTab.annotations.galleryPopup",galleryItemTextLineCount:1,favoritesEnabled:!0,favCategoryId:"motwToolstrip.figureToolstripTab.annotations.favorites",children:[{tag:"motwToolstrip.figureToolstripTab.annotations.favorites",type:e.GALLERY_FAVORITE_CATEGORY},{tag:"motwToolstrip.figureToolstripTab.annotations.labels",type:e.GALLERY_CATEGORY,title:i.labelsAndTitle,children:[{tag:"motwToolstrip.figureToolstripTab.annotations.xlabel",type:e.GALLERY_ITEM,text:i.xlabel,description:i.xlabelDescription,actionId:t.ADD_XLABEL,icon:"galleryXLabel",quickAccessIcon:"galleryXLabel_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.ylabel",type:e.GALLERY_ITEM,text:i.ylabel,description:i.ylabelDescription,actionId:t.ADD_YLABEL,icon:"galleryYLabel",quickAccessIcon:"galleryYLabel_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.title",type:e.GALLERY_ITEM,text:i.title,description:i.titleDescription,actionId:t.ADD_TITLE,icon:"galleryTitle",quickAccessIcon:"galleryTitle_16"}]},{tag:"motwToolstrip.figureToolstripTab.annotations.legends",type:e.GALLERY_CATEGORY,title:i.legends,children:[{tag:"motwToolstrip.figureToolstripTab.annotations.legend",type:e.GALLERY_ITEM,text:i.legend,description:i.legendDescription,actionId:t.ADD_LEGEND,icon:"galleryLegend",quickAccessIcon:"galleryLegend_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.removelegend",type:e.GALLERY_ITEM,text:i.removeLegend,description:i.removeLegendDescription,actionId:t.REMOVE_LEGEND,icon:"galleryRemoveLegend",quickAccessIcon:"galleryRemoveLegend_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.colorbar",type:e.GALLERY_ITEM,text:i.colorbar,description:i.colorbarDescription,actionId:t.ADD_COLORBAR,icon:"galleryColorbar",quickAccessIcon:"galleryColorbar_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.removecolorbar",type:e.GALLERY_ITEM,text:i.removeColorbar,description:i.removeColorbarDescription,actionId:t.REMOVE_COLORBAR,icon:"galleryRemoveColorbar",quickAccessIcon:"galleryRemoveColorbar_16"}]},{tag:"motwToolstrip.figureToolstripTab.annotations.grids",type:e.GALLERY_CATEGORY,title:i.grids,children:[{tag:"motwToolstrip.figureToolstripTab.annotations.grid",type:e.GALLERY_ITEM,text:i.grid,description:i.gridDescription,actionId:t.ADD_GRID,icon:"galleryGrid",quickAccessIcon:"galleryGrid_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.removegrid",type:e.GALLERY_ITEM,text:i.removeGrid,description:i.removeGridDescription,actionId:t.REMOVE_GRID,icon:"galleryRemoveGrid",quickAccessIcon:"galleryRemoveGrid_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.xgrid",type:e.GALLERY_ITEM,text:i.xGrid,description:i.xgridDescription,actionId:t.ADD_XGRID,icon:"galleryXGrid",quickAccessIcon:"galleryXGrid_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.ygrid",type:e.GALLERY_ITEM,text:i.yGrid,description:i.ygridDescription,actionId:t.ADD_YGRID,icon:"galleryYGrid",quickAccessIcon:"galleryYGrid_16"}]},{tag:"motwToolstrip.figureToolstripTab.annotations.legends",type:e.GALLERY_CATEGORY,title:i.annotations,children:[{tag:"motwToolstrip.figureToolstripTab.annotations.textArrow",type:e.TOGGLE_GALLERY_ITEM,text:i.textArrow,description:i.textArrowDescription,actionId:t.ADD_TEXT_ARROW,icon:"galleryTextArrow",quickAccessIcon:"galleryTextArrow_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.arrow",type:e.TOGGLE_GALLERY_ITEM,text:i.arrow,description:i.arrowDescription,actionId:t.ADD_ARROW,icon:"galleryArrow",quickAccessIcon:"galleryArrow_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.doublearrow",type:e.TOGGLE_GALLERY_ITEM,text:i.doubleArrow,description:i.doubleArrowDescription,actionId:t.ADD_DOUBLE_ARROW,icon:"galleryDoubleArrow",quickAccessIcon:"galleryDoubleArrow_16"},{tag:"motwToolstrip.figureToolstripTab.annotations.line",type:e.TOGGLE_GALLERY_ITEM,text:i.line,description:i.lineDescription,actionId:t.ADD_LINE,icon:"galleryLine",quickAccessIcon:"galleryLine_16"}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(230),i(2611),i(8313)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{moFigureManagerChannel:"/mlapp/figure",constructor:function(e){this.iframeLayoutManager=e.iframeLayoutManager,this.messageService=new n,this._figureMap={},this.fn=this._createMOFigureContainerController.bind(this);var t=this;this.listenMessage((function(e){"updateMOWindowBounds"===e.data.msgType&&t._handleUpdatesFormFigure(e),"getRenderedWindowBounds"===e.data.msgType&&t._handleGetRenderedWindowBounds(e)}))},subscribe:function(){var e=!0;try{this.messageService.subscribe(this.moFigureManagerChannel,this.fn)}catch(t){e=!1}return e},moRefreshed:function(){this.messageService.sendMORefreshMessage(this.moFigureManagerChannel)},_createMOFigureContainerController:function(e){if("windowOpen"===e.data.eventType){var i={channel:this.moFigureManagerChannel,iframeLayoutManager:this.iframeLayoutManager,messageService:this.messageService,data:e.data};this.moFigureContainerController=new o(i),this.moFigureContainerController.createFigureContainer();var n=e.data.peerNodeId;this._figureMap[n]=this.moFigureContainerController,this.own(t(this.moFigureContainerController,"moFigureContainerClosed",function(e){this._onFigureContainerClosed(e)}.bind(this)))}},listenMessage:function(e){var t=window.addEventListener?"addEventListener":"attachEvent";(0,window[t])("attachEvent"===t?"onmessage":"message",e,!1)},_handleUpdatesFormFigure:function(e){var t=e.data.peerNodeId,i=this._getMOFigureController(t);i&&i.handleFigureResized(e)},_handleGetRenderedWindowBounds:function(e){var t=e.data.peerNodeId,i=this._getMOFigureController(t);i&&i.handleFigureRendered()},reset:function(){if(this._figureMap)Object.keys(this._figureMap).forEach((function(e){var t=this._figureMap[e];t&&t.destroy()}),this);this._figureMap=null,this.messageService.unsubscribe(this.moFigureManagerChannel,this.fn)},_onFigureContainerClosed:function(e){var t=e.peerNodeId,i=this._getMOFigureController(t);i&&i.destroy(),delete this._figureMap[t]},_getMOFigureController:function(e){return this._figureMap[e]},destroy:function(){this.inherited(arguments),this._figureMap=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(222),i(279),i(230),i(8314)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i,o],{moPositionCorrection:[1,1,0,0],constructor:function(e){if(!e.channel)throw"Constructor arguments to a MOFigureContainerController should be given a channel.";if(!e.iframeLayoutManager)throw"Constructor arguments to a MOFigureContainerController should be given a iframeLayoutManager.";if(!e.messageService)throw"Constructor arguments to a MOFigureContainerController should be given a messageService.";if(!e.data)throw"Constructor arguments to a MOFigureContainerController should be given a peerNodeInfo.";this.data=e.data,this.messageService=e.messageService,this.iframeLayoutManager=e.iframeLayoutManager,this.moFigureChannel=e.channel+"/"+e.data.peerNodeId,this.fn=this._handleMessage.bind(this),this.messageService.subscribe(this.moFigureChannel,this.fn)},createFigureContainer:function(){var e={iframeLayoutManager:this.iframeLayoutManager};this.moFigureContainer=new r(e),this.moData=dojo.clone(this.data);var i=this;this.moData.position=this.moData.position.map((function(e,t){return e-i.moPositionCorrection[t]})),this.moData.position=this._calculateMATLABOnlinePosition(this.moData.position),this.moFigureContainer.createView(this.moData),this.own(t(this.moFigureContainer,"moFigureResized",function(e){this._onMOFigureResize(e)}.bind(this)),t(window,"resize",function(e){this._onMOWindowResize(e)}.bind(this)),t(this.moFigureContainer,"moFigureClosed",function(e){this._onMOFigureClosed(e)}.bind(this)),t(this.moFigureContainer,"moWindowActivated",function(){this._onMOWindowActivated()}.bind(this)),t(this.moFigureContainer,"moWindowDeactivated",function(){this._onMOWindowDeactivated()}.bind(this)))},_handleMessage:function(e){if("windowPropertyChanged"===e.data.eventType){if(e.data.position){this.data.positon=e.data.position;var t=this;e.data.position=e.data.position.map((function(e,i){return e-t.moPositionCorrection[i]})),e.data.position=this._calculateMATLABOnlinePosition(e.data.position)}this.moFigureContainer.updateProperty(e.data.peerNodeId,e.data)}else if("windowClosed"===e.data.eventType){this.moFigureContainer.close(e.data.peerNodeId),this.messageService.unsubscribe(this.moFigureChannel,this.fn);e={peerNodeId:e.data.peerNodeId};this.emit("moFigureContainerClosed",e)}else"windowToFront"===e.data.eventType&&this.moFigureContainer.windowToFront(e.data.peerNodeId)},handleFigureResized:function(e){if(e.data.position){var t=e.data.peerNodeId;this.data.position=e.data.position;var i=this;e.data.position=e.data.position.map((function(e,t){return e-i.moPositionCorrection[t]})),e.data.position=this._calculateMATLABOnlinePosition(e.data.position),this.moFigureContainer.setPosition(t,e.data)}},handleFigureRendered:function(){var e=this._calculateMATLABPosition(this.moFigureContainer.getRenderedPosition()),t=[e[1],e[0],e[2],e[3]],i=this;t=t.map((function(e,t){return e+i.moPositionCorrection[t]})),this._postMsgToFigure(t)},destroy:function(){this.moFigureContainer&&"destroy"in this.moFigureContainer&&"function"==typeof this.moFigureContainer.destroy&&this.moFigureContainer.destroy()},_onMOFigureResize:function(e){if(!e.newPosition||!e.peerNodeId)throw"PeerNodeId and Position is needed to send the information to the server";var t=this._calculateMATLABPosition(e.newPosition),i=[t[1],t[0],t[2],t[3]],n=this;i=i.map((function(e,t){return e+n.moPositionCorrection[t]})),this.data.position=i,this._postMsgToFigure(i)},_onMOWindowResize:function(e){var t=this,i=this.data.position.map((function(e,i){return e-t.moPositionCorrection[i]}));i=this._calculateMATLABOnlinePosition(i);var n={peerNodeId:this.data.peerNodeId,position:i,eventType:"windowPropertyChanged"};this.moFigureContainer.setPosition(this.data.peerNodeId,n)},_postMsgToFigure:function(e){var t=new URL(this.moData.host),i={position:e,msgType:"updateFigureMOStrategyBounds"};t.origin&&"null"!==t.origin&&this.moFigureContainer.widget.frame.contentWindow.postMessage(i,t.origin)},_onMOFigureClosed:function(e){this.messageService.sendCloseMessage(this.moFigureChannel,{eventType:"windowClosed"})},_onMOWindowActivated:function(){this.messageService.sendMOWindowActivatedMessage(this.moFigureChannel)},_onMOWindowDeactivated:function(){this.messageService.sendMOWindowDeactivatedMessage(this.moFigureChannel)},_calculateMATLABPosition:function(e){var t=n.getBox();return e[0]=t.h-e[3]-e[0],[e[0],e[1],e[2],e[3]]},_calculateMATLABOnlinePosition:function(e){var t=n.getBox(),i=e[0],o=e[1],r=e[2],a=e[3];return r>t.w?(i=0,r=t.w):r+i>t.w&&(i=t.w-r),a>t.h?(o=0,a=t.h):(o=t.h-a-o)<0&&(o=0),o>0&&o>=this.moFigureContainer.containerTitleBarHeight?o-=this.moFigureContainer.containerTitleBarHeight:a-=this.moFigureContainer.containerTitleBarHeight,[o,i,r,a]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(230),i(1223),i(902),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i,n],{containerTitleBarHeight:22,_position:[],constructor:function(e){if(this.inherited(arguments),!e.iframeLayoutManager)throw new Error("Constructor arguments to a AppFigureContainer should be given a iframeLayoutManager.");this.iframeLayoutManager=e.iframeLayoutManager},createView:function(e){e.avoidUrlModification||(e.host=r.createWorkerRoutingHostUrl(e.host)),e.maximize=!1,"modal"===e.windowStyle?e.modal=!0:"alwaysontop"===e.windowStyle&&(e.alwaysOnTop=!0);this.showIframe(e,!0)},setPosition:function(e,t){if(this._position[0]!==t.position[0]||this._position[1]!==t.position[1]||this._position[2]!==t.position[2]||this._position[3]!==t.position[3]){this.iframeLayoutManager.updateVisibleWidget(e,t);var i={peerNodeId:e,newPosition:this.getRenderedPosition()};this.emit("moFigureResized",i),this._position=t.position}},updateProperty:function(e,t){if(t.windowStyle&&(t.alwaysOnTop="alwaysontop"===t.windowStyle),this.iframeLayoutManager.updateVisibleWidget(e,t),t.position){this._position=t.position;var i={peerNodeId:e,newPosition:this.getRenderedPosition()};this.emit("moFigureResized",i)}},getRenderedPosition:function(){var e=this.widget.getPosition();return[e.y-1,e.x-1,e.w,e.h]},showIframe:function(e,i){this.widget=this.inherited(arguments,[e,i]),this.own(t(this.widget,"onContainerResize",function(t){this._onContainerResize(t,e.peerNodeId)}.bind(this)),t(this.widget,"onBringToTop",function(){this._onBringToTop()}.bind(this)),t(this.widget,"onSendBack",function(){this._onSendBack()}.bind(this)))},_onContainerResize:function(e,t){if(e&&0!==Object.keys(e).length){var i={peerNodeId:t,newPosition:e};this.iframeLayoutManager.layoutService.updateWidget(t,"top",e[0]-1-this.containerTitleBarHeight),this.iframeLayoutManager.layoutService.updateWidget(t,"left",e[1]-1),this.emit("moFigureResized",i)}},_onBringToTop:function(){this.emit("moWindowActivated")},_onSendBack:function(){this.emit("moWindowDeactivated")},removeWindow:function(e){var t={peerNodeId:e};this.emit("moFigureClosed",t)},windowToFront:function(e){this.iframeLayoutManager.bringToTop(e)},close:function(e){this.iframeLayoutManager.remove(e)},destroy:function(){this.inherited(arguments),this.widget.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8316),i(8318),i(2612),i(2613),i(2614)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a,s,l=r.findFilesTitle,c=function(e){e.data.type===n.CLOSE?d():e.data.type===n.OPEN_FILE_CHOOSER&&u()},d=function(){s.close()},u=function(){(new i).show()};return e([],{constructor:function(e){a=e.messageService},start:function(){a.subscribe(o.SUBSCRIBE_CHANNEL,c),a.publish(o.PUBLISH_CHANNEL,{action:n.START_SERVER_SIDE})},reset:function(){a.unsubscribe(o.SUBSCRIBE_CHANNEL,c),s&&d()},openFindFilesPopUp:function(){a.publish(o.PUBLISH_CHANNEL,{action:n.SERVER_OPEN_FIND_FILES}),s||(s=new t({title:l})),s.show()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8317)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){this._title=e.title},show:function(){const e=this._getDimension(),i=`matlab.internal.findfiles.FindFilesWindow.getInstance.launchWindow(${e.width}, ${e.height});\n matlab.internal.findfiles.FindFilesWindow.getInstance.setTitle("${this._title}")`;t.publish(i)},close:function(){t.publish("matlab.internal.findfiles.FindFilesWindow.getInstance.close")},_getDimension:function(){if(window.cefclient){return{width:window.screen.width,height:window.screen.height}}return{width:window.innerWidth,height:window.innerHeight}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(291),i(297),i(801)],o=i.dj.d(n,(function(e,t,i){return{publish:function(n){const o=e.getMVM();let r;r=window.cefclient?new t:new t({capabilitiesList:i.getCapabilitiesListDiff(i.getFullCapabilitiesList(),["LocalClient"])}),o.eval(n,r)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(230),i(850),i(280),i(219),i(2612),i(2613),i(2614)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([i],{constructor:function(i){this.fileChooser=e([n])({fileService:o.fileDataService,pathService:o.pathService,actionService:o.actionService,style:{width:"425px",height:"425px"},fileMustExist:!0,fileTypeFilterMustExist:!1,approveButtonText:l.approveButtonText,selectionMode:1}),this.fileChooser.on("okButtonClicked",t.hitch(this,(function(e){this._selectFolder(e)}))),this.fileChooser.on("cancelButtonClicked",t.hitch(this,(function(){this._close()}))),this.fileChooser.onClose=function(){this._close()}.bind(this)},_selectFolder:function(e){var t=e.selectedNode[0].path;r.publish(s.PUBLISH_CHANNEL,{action:a.SET_LOOK_IN_LOCATION,path:t}),this._close()},show:function(){this.fileChooser.startup(),o.layoutService.addWidget("ChooseLookInLocationDialog","newDialog",this.fileChooser,{title:l.lookInDialogTitle})},_close:function(){o.layoutService.removeWidget("ChooseLookInLocationDialog")}})}),e,t),e.exports=o},function(e,t,i){e.exports={allFiles:"すべてのファイル (*)",approveButtonText:"フォルダーの選択",browseString:"参照...",closeButtonLabel:"閉じる",copyLabel:"コピー",currentFolderString:"現在のフォルダー",editorAllOpenFilesString:"エディター - 開いているすべてのファイル",editorCurrentFileString:"エディター - 現在のファイルのフォルダー",entireMatlabPathString:"全体の MATLAB パス",fileNameColumnHeader:"ファイル名",filesContainingTextLabel:"次のテキストを含むファイルを検索:",filesNamedLabel:"ファイル名検索:",findButtonLabel:"検索",findFilesTitle:"ファイル検索",includeFileTypesLabel:"ファイル タイプ:",includeSubFoldersLabel:"サブフォルダーを含む",lineColumnHeader:"行",lookInDialogTitle:"検索フォルダーの選択",lookInLabel:"検索対象:",matchCaseLabel:"大文字小文字の区別",matchWholeWordLabel:"単語単位で一致",openAsTextLabel:"テキストとして開く",openLabel:"開く",openOutsideMatlabLabel:"MATLAB の外部で開く",showFullPathNamesLabel:"絶対パス名を表示",stopFindButtonLabel:"停止",textColumnHeader:"テキスト"}},function(e,t,i){e.exports={allFiles:"모든 파일(*)",approveButtonText:"폴더 선택",browseString:"찾아보기...",closeButtonLabel:"닫기",copyLabel:"복사",currentFolderString:"현재 폴더",editorAllOpenFilesString:"편집기 - 열려 있는 모든 파일",editorCurrentFileString:"편집기 - 현재 파일의 폴더",entireMatlabPathString:"전체 MATLAB 경로",fileNameColumnHeader:"파일 이름",filesContainingTextLabel:"텍스트가 포함된 파일 찾기:",filesNamedLabel:"다음 이름의 파일 찾기:",findButtonLabel:"찾기",findFilesTitle:"파일 찾기",includeFileTypesLabel:"포함할 파일 형식:",includeSubFoldersLabel:"하위 폴더 포함",lineColumnHeader:"라인",lookInDialogTitle:"검색할 폴더 선택",lookInLabel:"찾는 위치:",matchCaseLabel:"대/소문자 구분",matchWholeWordLabel:"전체 단어 일치",openAsTextLabel:"텍스트로 열기",openLabel:"열기",openOutsideMatlabLabel:"MATLAB 외부에서 열기",showFullPathNamesLabel:"전체 경로 이름 표시",stopFindButtonLabel:"중지",textColumnHeader:"텍스트"}},function(e,t,i){e.exports={allFiles:"所有文件(*)",approveButtonText:"选择文件夹",browseString:"浏览...",closeButtonLabel:"关闭",copyLabel:"复制",currentFolderString:"当前文件夹",editorAllOpenFilesString:"编辑器 - 所有打开的文件",editorCurrentFileString:"编辑器 - 当前文件的文件夹",entireMatlabPathString:"整个 MATLAB 路径",fileNameColumnHeader:"文件名",filesContainingTextLabel:"查找包含以下文本的文件:",filesNamedLabel:"查找具有以下名称的文件:",findButtonLabel:"查找",findFilesTitle:"查找文件",includeFileTypesLabel:"仅包括以下文件类型:",includeSubFoldersLabel:"包括子文件夹",lineColumnHeader:"行",lookInDialogTitle:"选择要搜索的文件夹",lookInLabel:"查找位置:",matchCaseLabel:"匹配大小写",matchWholeWordLabel:"全字匹配",openAsTextLabel:"以文本方式打开",openLabel:"打开",openOutsideMatlabLabel:"在 MATLAB 外部打开",showFullPathNamesLabel:"显示完整路径名称",stopFindButtonLabel:"停止",textColumnHeader:"文本"}},function(e,t,i){e.exports={root:{allFiles:"All files (*)",approveButtonText:"Select Folder",browseString:"Browse...",closeButtonLabel:"Close",copyLabel:"Copy",currentFolderString:"Current folder",editorAllOpenFilesString:"Editor - All open files",editorCurrentFileString:"Editor - Current file's folder",entireMatlabPathString:"Entire MATLAB path",fileNameColumnHeader:"File Name",filesContainingTextLabel:"Find files containing text:",filesNamedLabel:"Find files named:",findButtonLabel:"Find",findFilesTitle:"Find Files",includeFileTypesLabel:"Include only file type(s):",includeSubFoldersLabel:"Include subfolders",lineColumnHeader:"Line",lookInDialogTitle:"Choose folder to search",lookInLabel:"Look in:",matchCaseLabel:"Match case",matchWholeWordLabel:"Match whole word",openAsTextLabel:"Open as Text",openLabel:"Open",openOutsideMatlabLabel:"Open Outside MATLAB",showFullPathNamesLabel:"Show Full Path Names",stopFindButtonLabel:"Stop",textColumnHeader:"Text"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(236),i(211),i(262),i(273),i(219),i(600),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([],{constructor:function(e){this.fileDataService=e.fileDataService,this.editorService=e.editorService},start:function(){this.f=t.hitch(this,"_handleGDSNotification"),s.subscribe("/gds/matlabdrive",this.f)},_handleGDSNotification:function(e){var t=this.fileDataService.getFileInfoFromPath("/MATLAB Drive"+e.data.path)[0];t&&this.isFileOpen(t)?"fileRenamedMoved"!==e.data.operation&&"fileRemoved"!==e.data.operation||(this.doCloseFile(t),this.fileDataService.refreshOpenFolders()):this.fileDataService.refreshOpenFolders()},gdsNotificationFileUpdateMessage:function(e){var t=e.fileInfo,i=n.substitute(l.gdsNotificationsFileChangedLabel,{filename:t.name}),s=l.gdsNotificationsFileChangedTitle,c=!1,d=this,u=r.createDialog({title:s,dialogType:r.MODAL,content:o.create("div",{innerHTML:i}),buttons:[a.OK]});return u.addButtonEventListener(a.OK,(function(){c=!0,u.close()}),!0),u.on("close",(function(){d.openAction(c||!1,t)})),u},closeEditor:function(e){this.editorService._closeEditor(e)},openFile:function(e){var t=c.pathFromFileInfo(e);this.fileDataService.openedFilesDataStore.get(t)&&this.fileDataService.openedFilesDataStore.remove(t),this.fileDataService.openFile(e)},openAction:function(e,t){var n=this;if(e)var o="mlx"===c.getFileNameExtension(t.name)?"onFileClose":"onFileClosed",r=i.after(this.fileDataService,o,(function(e){n.openFile(e),r.remove()}),!0);this.closeEditor(this.editorService._getEditorFromFileInfo(t))},getOpenFile:function(e){return this.fileDataService._getOpenFile(e)},doCloseFile:function(e){this.fileDataService._doCloseFile(e)},isFileOpen:function(e){return this.fileDataService._isFileOpen(e)},reset:function(){s.unsubscribe("/gds/matlabdrive",this.f)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(342),i(703),i(8325),i(8326),i(8335),i(2615),i(418),i(233)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){let d=null;const u=e([t],{emitResult:function(e){this.emit("result",e)}});return e(null,{constructor:function(e){this._actionId="motw.goToFile",this._goToFileDialogInstance=void 0,this._pathService=e.pathService,this._searchService=e.searchService,this._actionService=e.actionService,this._fileOperationsService=e.fileOperationsService,this._fileIconProvider=l.getFileIconProvider(),this._uiBuilder=e.uiBuilder,this._curSearchRequest=null,this._resultManager=new o,this._resultEmitter=new u},start:function(){this._addAction(),this._setupKeyBinding(),this._uiBuilder&&(this.toolstripEntry=new a({uiBuilder:this._uiBuilder,actionId:this._actionId}),this.toolstripEntry.addGoToFileButton())},_addAction:function(){this._actionService.addAction({id:this._actionId,text:s.name,enabled:!0,icon:"icon_find_files_16",description:s.description,callback:this.createGoToFileDialog.bind(this)})},_setupKeyBinding:function(){n.getInstance(this._actionService).getBinding([i.Keys.CTRL,i.Keys.SHIFT,i.Keys.G]).setAction("body",this._actionId)},createGoToFileDialog:function(){return this._goToFileDialogInstance?this._goToFileDialogInstance.focus():(this._goToFileDialogInstance=new r({fileIconProvider:this._fileIconProvider,resultManager:this._resultManager}),this._goToFileDialogInstance.on("goToFileDialogClosed",this._handleGoToFileClose.bind(this)),this._goToFileDialogInstance.on("searchStart",this._handleStartSearch.bind(this)),this._goToFileDialogInstance.on("searchCancel",this._handleCancelSearch.bind(this)),this._goToFileDialogInstance.on("openFile",this._handleOpenFile.bind(this)),this._goToFileDialogInstance.own(this._resultEmitter.on("result",this._handleSearchResult.bind(this)))),this._goToFileDialogInstance},_handleCancelSearch:function(){this._curSearchRequest&&this._searchService.cancelSearch(this._curSearchRequest.id),d&&(clearInterval(d),d=null)},closeGoToFileDialog:function(){this._goToFileDialogInstance&&this._goToFileDialogInstance.close()},_handleGoToFileClose:function(){this._goToFileDialogInstance=void 0,this._curSearchRequest&&this._searchService.cancelSearch(this._curSearchRequest.id),this._resultManager.reset(),d&&(clearInterval(d),d=null)},_handleStartSearch:async function(e){const t=await this._pathService.getCwd();this._noResults=!0,this._resultManager.reset(),this._goToFileDialogInstance.resetDialog(),this._goToFileDialogInstance.showSpinner(),d=setInterval(()=>{this._resultManager.size()>0?this._updateDialogStatusWithNewResults():this._resultManager.getAllResultsReady()&&d&&(clearInterval(d),d=null)},1e3),this._curSearchRequest=this._searchService.performSearch({searchText:e.searchText,location:t.cwd,shouldSearchSubFolders:!0,newResultCallback:this._resultEmitter.emitResult.bind(this._resultEmitter)}),this._curSearchRequest.promise.then(()=>{this._handleSearchCompleted()})},_updateDialogStatusWithNewResults:function(){this._goToFileDialogInstance.isResultPanelOpened()||this._goToFileDialogInstance.showResultPanel(),this._goToFileDialogInstance.isResultPanelBottom()&&this._goToFileDialogInstance.updateResultPanel()},_handleSearchResult:function(e){const t=c.fileInfoFromPath(e.path);this._resultManager.addResult(t),this._noResults=!1},_handleSearchCompleted:function(){this._goToFileDialogInstance.hideSpinner(),this._resultManager.setAllResultsReady(!0),this._noResults&&this._goToFileDialogInstance.showNoResultMessage(),this._resultManager.size()>0&&this._updateDialogStatusWithNewResults()},_handleOpenFile:function(e){this._fileOperationsService.open(e),this.closeGoToFileDialog()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){this._searchResults=[],this._allResultsReady=!1},addResult:function(e){this._searchResults.push(e)},popResults:function(e){let t=this._searchResults.length;return e&&(t=Math.min(e,t)),this._searchResults.splice(0,t)},size:function(){return this._searchResults.length},getAllResultsReady:function(){return this._allResultsReady},setAllResultsReady:function(e){this._allResultsReady=e},reset:function(){this._searchResults=[],this._allResultsReady=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(216),i(215),i(206),i(223),i(222),i(410),i(210),i(8327),i(262),i(847),i(269),i(8328),i(661),i(2615)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([i,t,r],{templateString:l,constructor:function(e){this._fileIconProvider=e.fileIconProvider,this._resultManager=e.resultManager},postCreate:function(){this.inherited(arguments),this._createSearchBar(),this._createResultPanel(),this._createNoResultMessage(),this._goToFileDialog=c.createDialog({title:f.name,content:this,"data-test-id":"goToFileDialog",className:"goToFileDialog",draggable:!0,resizable:!1,closeOnEscape:!0}),this.own(this._searchBar,this._resultPanel),this._goToFileDialog.on("close",this._onClose.bind(this));var e=p({type:"spinner",size:"xsmall"});this.spinnerContainer.appendChild(e)},startup:function(){this.inherited(arguments),this._searchBar.startup(),this._resultPanel.startup()},_createSearchBar:function(){this._searchBar=new d({placeholder:f.placeholder,horizontalAlignment:"left",width:"100%"}),this._searchBar.placeAt(this.searchBarContainer),this._searchBar.startup(),this._searchBar.focusNode.select();var e=a(this._handleTextChange.bind(this),200);this.own(n(this._searchBar,"typing",e),n(this._searchBar,"keydown",this._handleTypeOnSearchBar.bind(this)))},_handleTextChange:function(e){this.emit("searchCancel");var t=e.mwEventData.currentContent;if(this._closeResultPanel(),t){var i=this.resultPanelContainer.getBoundingClientRect().left;this.resultPanelContainer.style.maxWidth="calc(100vw - "+i+"px)",this.emit("searchStart",{searchText:t})}else this.hideSpinner();this.resetDialog(),this._resultPanel.setSearchText(t)},_handleTypeOnSearchBar:function(e){if(this._resultPanel.isOpened()){var t=this._resultPanel.getSelectedResult();switch(e.keyCode){case o.ENTER:this.emit("openFile",t.fileInfo),e.stopPropagation(),e.preventDefault();break;case o.UP_ARROW:this._resultPanel.moveSelectionUp(),e.stopPropagation(),e.preventDefault();break;case o.DOWN_ARROW:this._resultPanel.moveSelectionDown(),e.stopPropagation(),e.preventDefault()}}},_createResultPanel:function(){this._resultPanel=new h({fileIconProvider:this._fileIconProvider}),this._resultPanel.placeAt(this.resultPanelContainer),this._resultPanel.startup(),this.own(this._resultPanel.on("openFile",function(e){this.emit("openFile",e)}.bind(this)),this._resultPanel.on("focusBack",this._handleFocusBack.bind(this)),this._resultPanel.on("scrollToBottom",this._handleScrollToBottom.bind(this)))},_createNoResultMessage:function(){this._noResultMessage=new u({text:f.noResultMessage}),this._noResultMessage.placeAt(this.noResultMessageContainer),this._noResultMessage.startup()},_handleFocusBack:function(e){setTimeout(function(){this._goToFileDialog&&(this._searchBar.inputNode.setAttribute("aria-activedescendant",e),this._searchBar.focusNode.focus())}.bind(this),0)},_handleScrollToBottom:function(){const e=this._resultManager.popResults(20);this._resultPanel.appendSearchResults(e)},_closeResultPanel:function(){this._resultPanel.destroyResultPanel()},showNoResultMessage:function(){this._updateNoResultsMessage(!0)},_hideNoResultMessage:function(){this._updateNoResultsMessage(!1)},showSpinner:function(){this._updateSpinner(!0)},hideSpinner:function(){this._updateSpinner(!1)},_updateSpinner:function(e){this._spinnerTimeout&&(clearTimeout(this._spinnerTimeout),this._spinnerTimeout=null),this._spinnerTimeout=setTimeout(function(){e?s.remove(this.spinnerContainer,"hideSpinner"):s.add(this.spinnerContainer,"hideSpinner")}.bind(this),50)},_updateNoResultsMessage:function(e){this._noResultsTimeout&&(clearTimeout(this._noResultsTimeout),this._noResultsTimeout=null),this._noResultsTimeout=setTimeout(function(){e?s.remove(this.noResultMessageContainer,"hideNoResultMessage"):s.add(this.noResultMessageContainer,"hideNoResultMessage")}.bind(this),50)},close:function(){this._goToFileDialog.close(),this._goToFileDialog=null},_onClose:function(){this.emit("goToFileDialogClosed")},resetDialog:function(){this._hideNoResultMessage(),this._searchBar.focusNode.focus()},destroy:function(){this._spinnerTimeout&&clearTimeout(this._spinnerTimeout),this._noResultsTimeout&&clearTimeout(this._noResultsTimeout),this.inherited(arguments)},focus:function(){this._searchBar.focusNode.focus()},updateResultPanel:function(){this._resultPanel.appendSearchResults(this._resultManager.popResults(20))},showResultPanel:function(){this._resultPanel.isOpened()||this._resultPanel.showResultPanel()},isResultPanelOpened:function(){return this._resultPanel.isOpened()},isResultPanelBottom:function(){return this._resultPanel._isCloseToBottom()}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="goToFileDialog" id="goToFileDialog">\n <div class="searchSection">\n <div class="searchBarContainer" data-dojo-attach-point="searchBarContainer"></div>\n <div class="spinner hideSpinner" data-dojo-attach-point="spinnerContainer"></div>\n </div>\n <div class="noResultMessageContainer hideNoResultMessage" data-dojo-attach-point="noResultMessageContainer"></div>\n <div class="resultPanelContainer" data-dojo-attach-point="resultPanelContainer"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(215),i(210),i(410),i(222),i(317),i(288),i(8329)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([t,o],{constructor:function(e){this._fileIconProvider=e.fileIconProvider,this._resultPanelWidget=null,this._searchText=null,this._selectedResult={},this._isResultPanelOpened=!1,this._currentResultCount=0},setSearchText:function(e){this._searchText=this._revisedSearchText(e)},destroyResultPanel:function(){this._resultPanelWidget&&(this._resultPanelWidget.destroy(),this._resultPanelWidget=null),this._isResultPanelOpened=!1,this._currentResultCount=0},showResultPanel:function(){var e=new r({maxHeight:224});this.own(e),this._resultPanelWidget=e;const t=n(this._handleScroll.bind(this),100);this._resultPanelWidget.on("scroll",t),this._resultPanelWidget.placeAt(this.domNode),this._resultPanelWidget.startup(),this._isResultPanelOpened=!0},_handleScroll:function(){this._isCloseToBottom()&&this.emit("scrollToBottom")},_isCloseToBottom:function(){const e=this._resultPanelWidget.domNode;return e.scrollHeight-(e.scrollTop+e.clientHeight)<200},appendSearchResults:function(e){e.forEach(this._appendSearchResult,this)},_appendSearchResult:function(e){var t=new a({}),i=e;t.on("click",e=>{e.stopPropagation(),e.preventDefault(),this._openFile(i)});var n=this._currentResultCount;t.on("focus",()=>{var e={index:n,fileInfo:i};this.selectResult(e),this.emit("focusBack",t.id)}),this._resultPanelWidget.addChild(t),this._resultPanelWidget.own(t);var o=new s({fileInfo:i,searchText:this._searchText,fileIconProvider:this._fileIconProvider});if(o.placeAt(t.domNode,"only"),o.startup(),t.own(o),this._currentResultCount++,1===this._resultPanelWidget.getChildren().length){var r={index:0,fileInfo:e};this.selectResult(r)}},_openFile:function(e){this.emit("openFile",e)},_revisedSearchText:function(e){var t="",i=/[\*\?]/;e.match(i)?t=e.split(i).find((function(e){return e.length>0}))||"":t=e;return t},getSelectedResult:function(){return this._selectedResult},isOpened:function(){return this._isResultPanelOpened},moveSelectionUp:function(){this._moveSelection(!0)},moveSelectionDown:function(){this._moveSelection(!1)},_moveSelection:function(e){var t=e?-1:1,i=this._resultPanelWidget.getChildren().length,n=(this._selectedResult.index+t)%i;n+=n<0?i:0;const o=this._resultPanelWidget.getChildren()[n];o.focus(),this.emit("focusBack",o.id)},selectResult:function(e){this._selectedResult.node&&i.remove(this._selectedResult.node,"selectedResultItem"),this._selectedResult.index=e.index,this._selectedResult.fileInfo=e.fileInfo,this._selectedResult.node=this._resultPanelWidget.getChildren()[e.index].domNode,i.add(this._selectedResult.node,"selectedResultItem")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(216),i(215),i(8330)],o=i.dj.d(n,(function(e,t,i,n){return e([i,t],{templateString:n,constructor:function(e){this._fileInfo=e.fileInfo,this._searchText=e.searchText,this._fileIconProvider=e.fileIconProvider},postCreate:function(){this.inherited(arguments),this._setFileIconNode(),this._setFilenameNode(),this._setFilePathNode()},_setFileIconNode:function(){this._fileIconProvider.setIcon(this._fileInfo,this.resultIconNode)},_setFilenameNode:function(){var e=this._fileInfo.name,t=e.toLowerCase().indexOf(this._searchText.toLowerCase());t>=0?(this._appendNameContent(e.substring(0,t),!1),this._appendNameContent(e.substring(t,t+this._searchText.length),!0),this._appendNameContent(e.substring(t+this._searchText.length),!1)):this.filenamePreHighlightContent.textContent=e},_appendNameContent:function(e,t){const i=document.createElement("span");i.classList.add("filenameSection"),t&&i.classList.add("highlight"),i.textContent=e,this.filenameNode.insertAdjacentElement("beforeend",i)},_setFilePathNode:function(){this.filePathNode.textContent=this._fileInfo.location}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="resultItemContent">\n <div class="resultIcon" data-dojo-attach-point="resultIconNode"></div>\n <div class="filenameNode" data-dojo-attach-point="filenameNode"></div>\n <div class="filePathContainer">\n <span data-dojo-attach-point="filePathNode" dir="ltr"></span>\n </div>\n</div>\n'},function(e,t,i){e.exports={description:"ファイルを名前で検索して開きます",name:"ファイルへ移動",noResultMessage:"結果なし",placeholder:"ファイルを検索"}},function(e,t,i){e.exports={description:"이름을 기준으로 파일을 검색하여 엽니다.",name:"파일로 이동",noResultMessage:"결과 없음",placeholder:"파일 검색"}},function(e,t,i){e.exports={description:"按名称搜索和打开文件",name:"转至文件",noResultMessage:"无结果",placeholder:"搜索文件"}},function(e,t,i){e.exports={root:{description:"Search for and open file by name",name:"Go to File",noResultMessage:"No results",placeholder:"Search for file"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(226)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){this._uiBuilder=e.uiBuilder,this._actionId=e.actionId,this._goToFileColumnTag="motwToolstrip.matlabTab.file.find",this._goToFileButtonTag="motwToolstrip.matlabTab.file.goToFile"},addGoToFileButton:function(){var e={tag:this._goToFileButtonTag,type:t.PUSH_BUTTON,actionId:this._actionId,iconOverride:"icon_go_to_file_16",mnemonic:"G",quickAccessIcon:"icon_go_to_file_16"},i=this._uiBuilder.create(e),n=this._uiBuilder.tagToId(this._goToFileColumnTag);this._uiBuilder.add(i,n,0)},removeGoToFileButton:function(){var e=this._uiBuilder.tagToId(this._goToFileButtonTag);this._uiBuilder.destroy(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(302),i(203),i(204),i(890),i(256),i(290),i(699),i(212),i(398),i(209),i(766),i(232),i(641),i(1277),i(1626),i(1648),i(1237),i(698)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){var v,b,y=(v=window.sessionStorage.getItem("mo_compute_session"),window.sessionStorage.removeItem("mo_compute_session"),"true"===v),C=(b=Date.now(),function(e){return Date.now()-b>e});return t([],{constructor:function(e){e=e||{},this.allowHiddenLoad=e.allowHiddenLoad||!1,this.pageStaleDuration=e.pageStaleDuration||6e5,this.clientContext={},this.userInfo={firstName:"Unknown"},this.account={},this._faultCode="",this.currentState="",this._isNewWorker=!0,this.sessionTimeoutSeconds=null,this._internalTiming={},this._injectedRouterEndpoint=e.injectedRouterEndpoint?e.injectedRouterEndpoint:"/",this.uiLifecycle=e.uiLifecycle,this.heartbeatService=e.heartbeatService,this._busyIndicator=e.busyIndicator,this.uiConfigService=e.uiConfigService,this.clientType="open-with",this._ssoFeatureEnabled=!0,this.singleSignOut=!1,this.ssoFeatureName="motw.internal.sso",this._attachTasksToLifecycleEvents(),this._singleLoginMessageFlag=!1,e.skipStart||i.hitch(this,this.start())},_attachTasksToLifecycleEvents:function(){this._isReadyToLogin=new s,this._loginPromise=new s,this._userLoggedInPromise=new s,this._computeReadyPromise=new s,this._userLoggedOutPromise=new s,this.uiLifecycle.registerTask("PAGE_LOAD",function(){return this._loginPromise.promise}.bind(this)),this.uiLifecycle.registerTask("WORKER_CONNECTED",function(){return this._userLoggedInPromise.promise}.bind(this)),this.uiLifecycle.registerTask("WORKER_READY",function(){return this._computeReadyPromise.promise}.bind(this)),this.uiLifecycle.registerPhaseCompletedCallback("PRE_WORKER_DISCONNECTED",function(){this._preLogoutTasksComplete()}.bind(this)),this.uiLifecycle.registerPhaseCompletedCallback("POST_WORKER_DISCONNECTED",function(){this._postLogoutTasksComplete()}.bind(this))},_getStateOptions:function(){return{context:this,name:"WraDataService",namespace:"MOTW.wra",defaultSubstate:"gettingCurrentUser",substates:{gettingCurrentUser:{transitions:{onEnterState:this.sendGetCurrentUser,"response CurrentUserResponse":[this._handleCurrentUserResponse,"gettingCurrentComputeResource"],"fault CurrentUser":{target:"unauthorized",action:this._handleCurrentUserError}}},unauthorized:{transitions:{onEnterState:this._setEndpointToLeaf,login:this._singleLoginMessageFlag?"acquireMatlab":"leafAuthorizing",createMATLABSession:"acquireMatlab"}},waitForUserRefresh:{transitions:{onEnterState:this._setEndpointToLeaf}},updateAccount:{transitions:{onEnterState:this.onUpdate,login:this._singleLoginMessageFlag?"acquireMatlab":"leafAuthorizing",createMATLABSession:"acquireMatlab"}},acquireMatlab:{transitions:{onEnterState:this._acquireMatlab,"response AcquireMatlabResponse":[this._handleAcquireMatlabResponse,"checkingMATLABHealth"],"fault AcquireMatlab":[this._handleAcquireMatlabError,"topLevelFault"]}},leafAuthorizing:{transitions:{onEnterState:this._sendLeafLogin,"response LoginResponse":[this._handleLeafLoginResponse,"acquiringComputeResource"],"fault Login":[this._handleLeafLoginError,"topLevelFault"]}},deauthorizing:{transitions:{onEnterState:this._sendLogout,"response LogoutResponse":"postLogoutTasks","fault Logout":{target:"postLogoutTasks",action:this._handleLogoutError},"timeout 5":"postLogoutTasks"}},refresh:{transitions:{onEnterState:this._refreshMO}},redirect:{},reloadPage:{transitions:{onEnterState:this.reloadPage}},topLevelFault:{transitions:{onEnterState:this._handleTopLevelFault,disableSingleSignOn:"unauthorized"}},acquiringComputeResource:{transitions:{onEnterState:this._sendAcquireComputeResource,"response NewComputeResourceResponse":[this._handleAcquireComputeResourceResponse,"checkingMATLABHealth"],"fault NewComputeResource":[this._handleAcquireComputeResourceError],logout:"deauthorizing"}},retryComputeResourceRequest:{transitions:{retryAcquireComputeService:{target:this._singleLoginMessageFlag?"acquireMatlab":"acquiringComputeResource"},logout:"preLogoutTasks",terminateMATLABSession:this._terminateMATLABSession}},gettingCurrentComputeResource:{transitions:{onEnterState:this._sendGetCurrentComputeResource,"response GetCurrentComputeResourceResponse":[this._handleCurrentComputeResourceResponse,"checkingMATLABHealth"],"fault GetCurrentComputeResource":this._singleLoginMessageFlag?"acquireMatlab":"acquiringComputeResource",logout:"deauthorizing"}},checkingMATLABHealth:{transitions:{onEnterState:this._checkMATLABHealth,_skipExplicitHealthCheck:"computeResourceReady",workerIsResponsive:"computeResourceReady",workerIsNotResponsive:"informingUserOfUnresponsiveWorker",workerIsBusyRunningEval:"waitForUserRefresh"}},informingUserOfUnresponsiveWorker:{transitions:{ignoreUnresponsiveWorker:"computeResourceReady",logout:"preLogoutTasks",terminateMATLABSession:this._terminateMATLABSession}},computeResourceReady:{transitions:{onEnterState:this._computeResourceReady,logout:"preLogoutTasks",terminateMATLABSession:this._terminateMATLABSession,logoutWithoutSessionSave:"deauthorizing",onExitState:this._stopHeartbeat,workerReset:"workerResetDiscardingComputeResource"}},workerResetDiscardingComputeResource:{transitions:{onEnterState:this._discardingComputeResource,"response LogoutResponse":this._singleLoginMessageFlag?"workerResetAcquireMATLAB":"workerResetLeafAuthorizing","fault Logout":"topLevelFault"}},preLogoutTasks:{transitions:{onEnterState:this._performPreLogoutTasks,_preLogoutTasksComplete:"deauthorizing","timeout 10":"deauthorizing"}},postLogoutTasks:{transitions:{onEnterState:this._performPostLogoutTasks,_postLogoutTasksComplete:"refresh"}}}}},start:function(){var t=new p(this._getStateOptions());e.connect(t,"onEnterState",this,this._onEnterState),e.connect(t,"onExitState",this,this._onExitState),f.promise.then(i.hitch(this,(function(e){for(var i=e.featureSwitches||[],n=0;n<i.length;n++)i[n].name===this.ssoFeatureName&&"off"===i[n].status.toLowerCase()&&(this._ssoFeatureEnabled=!1);t.start(),this.uiLifecycle.start()})))},getMode:function(){return this.mode||""},clearMode:function(){this.mode=""},getCurrentState:function(){return this.currentState},ignoreUnresponsiveWorker:function(){},getAdobeDTMEndpointFromServiceRegistry:function(){return u.getServiceRegistryEndpoint("adobedtm")},getMWAToken:function(){return this.clientContext.MW_CU||""},registerPreLogoutTask:function(){},_performPreLogoutTasks:function(){this._computeReadyPromise.resolve()},_performPostLogoutTasks:function(){this._userLoggedOutPromise.resolve()},_preLogoutTasksComplete:function(){},_postLogoutTasksComplete:function(){},_discardingComputeResource:function(){o.publish("/MatlabExitService/exitchannel",{}),this._sendLogout(),u.setComputeToken(),u.setWorkerEndpoint()},_setEndpointToLeaf:function(){this._injectedRouterEndpoint&&u.setEndpoint(this._injectedRouterEndpoint)},getCurrentUserInfo:function(){return this.userInfo},sendGetCurrentUser:function(e,t,n){this._setEndpointToLeaf();var o=d.createClientTypeMessage(n||this.clientType,r.versionNumber);u.sendMessage(i.mixin({CurrentUser:{apiVersion:"1.2"}},o))},_handleCurrentUserResponse:function(e,t,i){var n=this._getGenericFaultTargetState(i);return!n&&this._isAuthorized(i[0])?(this.userInfo=i[0].userInfo,this._setSessionTimeout(i),null):this._ssoFeatureEnabled?(g.doesUserHaveMWSession()?y?(this._faultCode="wra.userRequestedExit",n="unauthorized"):g.isDomainAllowed()&&(n=this._singleLoginMessageFlag?"acquireMatlab":"unauthorized"):n="unauthorized",n):n&&"topLevelFault"===n.target||void 0===n?"unauthorized":n},_handleCurrentUserError:function(e,t,i){c.error("Current user fault: ",i)},_heartbeatOptions:{},_startHeartbeat:function(e){e=e||{},this._heartbeatOptions=i.mixin({inactivityTimeout:1e3*this.sessionTimeoutSeconds,countdownStartCallback:i.hitch(this,"onInactivityDetected"),countdownEndCallback:i.hitch(this,"onInactivityTimeout")},e);var t=d.createClientTypeMessage(this.clientType,r.versionNumber);this.heartbeatService.start(i.mixin({CurrentUser:{apiVersion:"1.2"}},t),this._heartbeatOptions)},_stopHeartbeat:function(){this.heartbeatService.stop()},updateHeartbeatOptions:function(e){this._stopHeartbeat(),this._startHeartbeat(e)},onInactivityDetected:function(){},onInactivityTimeout:function(){this._userWasTimedOut=!0,this.terminateMATLABSession()},wasUserTimedOut:function(){return!!this._userWasTimedOut},login:function(e,t,i,n,o){},createMATLABSession:function(e){},_acquireMatlab:function(e,t,i,n,o,r,a){!this.allowHiddenLoad&&document.hidden?document.addEventListener("visibilitychange",function s(){document.hidden||(document.removeEventListener("visibilitychange",s),C(this.pageStaleDuration)?this._refreshMO():this._sendAcquireMatlab(e,t,i,n,o,r,a))}.bind(this)):this._sendAcquireMatlab(e,t,i,n,o,r,a)},_sendAcquireMatlab:function(e,t,n,o,a,s,l){"object"==typeof n&&(a=n.mwaToken,s=n.forceConcurrent,h=n.clientType);var c={AcquireMatlab:{forceConcurrentSessionLogout:s,clientType:l||"motw"}};i.isString(a)?(this.clientContext.MW_CU=a,i.mixin(c.AcquireMatlab,{token:a})):this.clientContext.MW_CU&&i.mixin(c.AcquireMatlab,{token:this.clientContext.MW_CU}),this._ssoFeatureEnabled&&i.mixin(c.AcquireMatlab,{authenticationProvider:{provider:"mwa",webService:""}});var h=d.createClientTypeMessage(l,r.versionNumber);this._loginMessage=c,u.sendMessage(i.mixin(c,h))},getLoginMessage_ForTesting:function(){return this._loginMessage},_handleAcquireMatlabResponse:function(e,t,i){var n=this._getGenericFaultTargetState(i);return this.userInfo={firstName:"Unknown"},n&&i[0].messageFaults.length>0&&i[0].messageFaults[0].faultCode===h.NO_WORKERS_AVAILABLE?{target:"retryComputeResourceRequest",args:"wra.noComputeResources"}:!n&&this._isAuthorized(i[0])?(this._loginPromise.resolve(),this.userInfo=i[0].userInfo,this._setSessionTimeout(i),this._handleAcquireComputeResourceResponse(e,t,i)):(i[0].messageFaults&&i[0].messageFaults.length>0&&(n=this._getTargetFaultState(i[0].messageFaults,i[0])||n),n)},_sendLeafLogin:function(e,t,o,a,s,l){i.isString(o)&&i.isString(a)&&(this.credentials={username:o,password:a,forceConcurrent:l}),i.isString(s)&&(this.clientContext.MW_CU=s);var c=d.createClientTypeMessage(this.clientType,r.versionNumber);this._leafServers=[],n(this.ENDPOINT_COOKIE,null,{expires:-1,path:"/"}),this._setEndpointToLeaf();var h={Login:{context:this.clientContext,login:this.credentials.username,password:this.credentials.password,forceConcurrentSessionLogout:this.credentials.forceConcurrent,apiVersion:"1.2"}};u.sendMessage(i.mixin(h,c))},_handleLeafLoginResponse:function(e,t,i){return this._handleLoginResponse(e,t,i)},_handleLeafLoginError:function(e,t,i){return c.log("WRA leaf login fault: ",i),this._handleLoginError(e,t,i)},_handleLoginResponse:function(e,t,i){var o=this._getGenericFaultTargetState(i);return this.userInfo={firstName:"Unknown"},!o&&this._isAuthorized(i[0])?(this._loginPromise.resolve(),this._leafServers=i[0].loginEndPoints||this._leafServers,n(this.ENDPOINT_COOKIE,this._leafServers.join(","),{path:"/"}),this.userInfo=i[0].userInfo,this._setSessionTimeout(i)):i[0].messageFaults&&i[0].messageFaults.length>0&&(o=this._getTargetFaultState(i[0].messageFaults,i[0])||o),o},_handleAcquireMatlabError:function(e,t,i){return c.log("WRA get MATLAB fault: ",i),this._handleLoginError(e,t,i)},_handleLoginError:function(e,t,i){var n={args:"wra.serviceError"};return i&&i.faultCode&&(n=this._getTargetFaultState(i)||n),n},_computeResourceReady:function(){this._startHeartbeat(),this._userLoggedInPromise.resolve()},clearFault:function(){this._faultCode=""},getFaultCode:function(){return this._faultCode},_handleTopLevelFault:function(e,t,i){c.error("General Top Level Fault: ",i),this._faultCode=i},logout:function(e){this.singleSignout=!0},logoutWithoutSessionSave:function(){},terminateMATLABSession:function(e){e&&e.singleSignOut&&(this.singleSignOut=!0)},_terminateMATLABSession:function(e,t,i){var n={};return i&&i.skipLogoutTasks?(this._computeReadyPromise.resolve(),n={target:"deauthorizing"}):n={target:"preLogoutTasks"},n},disableSingleSignOn:function(){},_sendLogout:function(e,t){this.credentials={},this.onUpdate(),this._setEndpointToLeaf(),u.sendMessage({Logout:{}}),this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",function(){return this._userLoggedOutPromise.promise}.bind(this))},_refreshMO:function(){n(this.ENDPOINT_COOKIE,null,{expires:-1,path:"/"}),this.reloadPage()},setUserEndedComputeSessionFlag:function(){window.sessionStorage.setItem("mo_compute_session",!0)},reloadPage:function(e){e&&e.userEndedComputeSession&&this.setUserEndedComputeSessionFlag(),g.redirect({signOut:this.singleSignOut||e&&e.singleSignOut,redirectURL:e&&e.redirectURL||window.location.href})},_handleLogoutError:function(e,t,i){this._userLoggedOutPromise.resolve(),c.error("WRA logout fault: ",i)},acquireComputeResource:function(){this.credentials={}},_sendAcquireComputeResource:function(){this._setEndpointToLeaf(),u.sendMessage({NewComputeResource:{apiVersion:"1.5",userFileSystemType:"ML_DRIVE"}})},_sendGetCurrentComputeResource:function(){this._setEndpointToLeaf(),u.sendMessage({GetCurrentComputeResource:{}})},_handleAcquireComputeResourceResponse:function(e,t,i){var n=this._getGenericFaultTargetState(i);return!n&&i[0].computeInfo?(u.setComputeToken(i[0].computeInfo.computeToken),u.setWorkerEndpoint(i[0].computeInfo.routingHost,i[0].computeInfo.routingKey)):n&&i[0].messageFaults&&i[0].messageFaults.length>0&&(n=i[0].messageFaults[0].faultCode===h.NO_WORKERS_AVAILABLE?{target:"retryComputeResourceRequest",args:"wra.noComputeResources"}:{target:"topLevelFault",args:"wra.serviceUnavailable"}),n},_handleAcquireComputeResourceError:function(e,t,i){return i.faultCode===h.NO_WORKERS_AVAILABLE?{target:"retryComputeResourceRequest",args:"wra.noComputeResources"}:{target:"topLevelFault",args:"wra.serviceUnavailable"}},_handleCurrentComputeResourceResponse:function(e,t,i){var n;return i[0].computeInfo?(this._loginPromise.resolve(),u.setComputeToken(i[0].computeInfo.computeToken),u.setWorkerEndpoint(i[0].computeInfo.routingHost,i[0].computeInfo.routingKey),this._isNewWorker=!1):n=this._singleLoginMessageFlag?"acquireMatlab":"acquiringComputeResource",n},isNewWorker:function(){return this._isNewWorker},_checkMATLABHealth:function(){this.isNewWorker()?this._skipExplicitHealthCheck():this._doHealthCheckOnWorker()},_skipExplicitHealthCheck:function(){},workerReset:function(){},workerIsResponsive:function(){},workerIsNotResponsive:function(){},workerIsBusyRunningEval:function(){},_doHealthCheckOnWorker:function(){var e,t,i,n=this;e=a.busyWorkerMsg.title,t=a.busyWorkerMsg.message,i={buttonText:[a.busyWorkerMsg.interruptExecutingTask,a.busyWorkerMsg.waitForExistingSession],"data-test-id":"unresponsiveWorkerDialog",closeCallback:function(e){1===e.response?(u.sendMessage({Interrupt:{}}),n.workerIsResponsive()):n.workerIsBusyRunningEval()}},m.getStatusOfWorker().then((function(o){switch(o){case"IDLE":n.workerIsResponsive();break;case"BUSY":n._busyIndicator.hide(),_.openNotificationConfirmDialog(e,t,i)}}))},_setSessionTimeout:function(e){e[0].sessionInfo&&e[0].sessionInfo.sessionTimeoutSeconds&&(this.sessionTimeoutSeconds=e[0].sessionInfo.sessionTimeoutSeconds)},_getGenericFaultTargetState:function(e){var t=e.filter((function(e){return e.messageFaults&&e.messageFaults.length>0}));if(!e||0===e.length||t.length>0)return{target:"topLevelFault",args:"wra.generalFault"}},_getTargetFaultState:function(e,t,i){var n;return Array.isArray(e)||(e=[e]),e.every((function(e){switch(e.faultCode){case h.INVALID_ACTIVATION_KEY:case h.USER_NOT_ENTITLED:this._faultCode="wra.invalidActivationKey",this.clientContext.MW_CU?n={target:"updateAccount",args:this._faultCode}:(this.reloadPage({redirectURL:g.getLicenseCenterURL()}),n={target:"redirect",args:this._faultCode});break;case h.USER_MISSING_USERID:this._faultCode="wra.missingUserID",n=this.clientContext.MW_CU?{target:"updateAccount",args:this._faultCode}:{target:"unauthorized"};break;default:return!0}}),this),e.every((function(e){switch(e.faultCode){case h.LOGIN_SERVICE_ERROR:case h.SERVICE_UNAVAILABLE:n={target:"topLevelFault",args:this._faultCode};break;case h.CONCURRENT_SESSION:this._faultCode="wra.concurrentLoginAttempt",n={target:"unauthorized",args:this._faultCode};break;case"Request.InvalidMessage":case h.INVALID_LOGIN_CREDENTIALS:case h.LOGIN_SERVICE_ERROR:this._faultCode="wra.userNotAuthorized",n={target:"unauthorized"};break;case h.SESSION_ALREADY_AUTHENTICATED:n={target:"gettingCurrentUser"};break;case h.USER_NOT_PROVISIONED:case h.GENERAL_SERVER_FAULT_CODE:n={target:"topLevelFault",args:"wra.generalFault"};break;default:return!0}}),this),n},_isAuthorized:function(e){return e.userInfo&&e.userInfo.userToken},retryAcquireComputeService:function(){},onUpdate:function(){},_onEnterState:function(e){switch(l.markStart("loginFlow."+e),this.timeSpentInCurrentState=l.getTime(),c.log("New state: ",e),this.currentState=e,this.onUpdate(),this.currentState){case"unauthorized":case"gettingCurrentComputeResource":case"computeResourceReady":this._isReadyToLogin.resolve()}},_onExitState:function(e){l.markEnd("loginFlow."+e);var t=l.getTime()-this.timeSpentInCurrentState;this._internalTiming[e]=t},doLoginWhenReady:function(e){this._isReadyToLogin.then(function(){switch(this._busyIndicator.showUntilFinished(this._userLoggedInPromise.promise),e&&e.type){case"guest":this.login("anonymous","anonymous");break;case"test":this.createMATLABSession()}}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){e.exports={root:{termsOfUseHeader:"Terms of Use",termsOfUseAccept:"Accept",termsOfUseDecline:"Decline",support:"Support",help:"Help",patents:"Patents",status:"Application Status",trademarks:"Trademarks",privacyPolicy:"Privacy Policy",copyright:"1984-2021 The MathWorks, Inc.",learn:"Learn about MATLAB Online",matlabDrive:'Use <a class="matlabDrive" data-test-id="matlabDrive" href="//www.mathworks.com/products/matlab-drive.html?s_tid=MLD_MOSI"aria-label="MATLAB Drive (Opens in new tab)" target="_blank">MATLAB Drive&trade;</a> to synchronize your MATLAB files between your computers and MATLAB Online.',slowSessionTitle:"Session Loading",slowSessionMessage:"Your previous MATLAB session state failed to load. To clear your previous MATLAB state and start a new session, click on New Session.",resetSession:"New Session",continueLoadingSession:"Ignore",matlabIsLoading:"MATLAB is loading",sessionLifecycle:{timeoutTitle:"Session Timeout",timeoutDescription:"Your MATLAB session has timed out. Click resume to pick up where you left off.",resume:"Resume",exit:"Exit"},waitingRoomTitle:"Trying to connect to server",waitingRoomMessage:'Please wait while MATLAB Online establishes a connection. This may take a few minutes. \n\n Retrying to connect in <span id="waitingRoomTimer">replace_me</span>',unresponsiveWorkerMsg:{title:"MATLAB not responding",message:"The MATLAB worker is not responding. To get a new session, click on New Session"},gdsStartupHealthCheckWorkaround:{title:"MATLAB Online encountered an issue",message:"MATLAB Online encountered an issue during session load, please Sign Out and Sign In again"},busyWorkerMsg:{title:"MATLAB is busy",message:"MATLAB is busy. Do you want to stop execution or wait for MATLAB to finish?",waitForExistingSession:"Wait",interruptExecutingTask:"Stop",refreshForSessionBtn:"Refresh",connectToSession:'<ul style="list-style-type: none;"><li style="margin-bottom: 20px;">MATLAB is busy and you have chosen to wait for it to finish.</li><li>To check whether MATLAB is finished, refresh the page.</li></ul>'},wra:{invalidCredentials:"MathWorks Account ID or password incorrect",concurrentLoginAttemptDialogTitle:"Existing MATLAB Session",concurrentLoginAttempt:'<ul style="list-style-type: none;"><li style="margin-bottom: 20px;">You can have only one MATLAB Online session open at a time.</li><li>Click Start new session to end the other MATLAB Online session and start a new session.</li></ul>',sessionAlreadyAuthenticated:"You are already logged in, please try refreshing your browser",serviceUnavailable:"MATLAB service not available",generalFault:"Server fault",noComputeResources:"The service is currently experiencing high usage. Try again in a few minutes.",emailNotVerified:"Your MathWorks account E-mail address has not been verified",invalidActivationKey:'Your account cannot currently access MATLAB Online. Possible reasons include:<ul> <li>You have not linked your account with a license (use text field below)</li><li>You have a license that <a href="https://www.mathworks.com/products/matlab-online.html#license-types" target="_blank">does not include access to MATLAB Online</a></li><li>Your <a href="https://www.mathworks.com/services/maintenance.html" target="_blank">software maintenance</a> expired</li></ul> To update your license, visit the <a href="https://www.mathworks.com/licensecenter" target="_blank">License Center</a> or contact your administrator',userNotEntitled:"The license linked with this account is not enabled to access MATLAB Online",userNotAuthorized:"The license linked with this account is not enabled to access MATLAB Online",invalidTermsOfUse:"You have not accepted the MATLAB Terms of Use",userExitMessage:'<ul style="list-style-type: none;"><li style="margin-bottom: 20px;">You have exited your MATLAB Online session.</li><li>Click "Start new session" to start a new MATLAB Online session.</li></ul>'}}}},function(e,t,i){var n,o;n=[i(225),i(241),i(232),i(1237),i(8339)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a=null,s=null,l=null,c=null,d=Date.now(),u=function(){d=Date.now()};document.addEventListener("click",u,!0),document.addEventListener("keypress",u,!0),document.addEventListener("keydown",u,!0);var h=null,p=function(e,t){h&&(e>0?(f(e),window.setTimeout((function(){p(e-1,t)}),1e3)):t&&t.call())},f=function(t){var i=e(".mwIconAndMessageWidgetMessage",h.domNode)[0],n=o.sessionTimeoutMessage+"<br/><br/>"+o.sessionTimeoutCountdown+t+o.sessionTimeoutUnit;i&&(i.innerHTML=n)};return{start:function(e,f){var g=this,m=f&&f.keepAliveRate?f.keepAliveRate:6e4,_=f&&f.sessionCheckRate?f.sessionCheckRate:m/10,v=f&&f.inactivityTimeout?f.inactivityTimeout:9e5,b=f&&f.countdownLength?f.countdownLength:90,y=f&&f.countdownStartCallback?f.countdownStartCallback:null,C=f&&f.countdownEndCallback?f.countdownEndCallback:null,T=f&&f.maxSessionCheckRate?f.maxSessionCheckRate:6e4,E=f&&f.maxSessionTimeout?f.maxSessionTimeout:144e5;f.isLRTFeatureEnabled||(E=v),this.stop(),u();var S,w,I,A,x=f&&f.pingServer?f.pingServer:function(){var t=i.requestManager.mapping.CurrentUser;i.requestManager.mapping.CurrentUser=[],i.sendMessage(e,{},"HeartbeatService"),i.requestManager.mapping.CurrentUser=t};l=window.setInterval(function(){n.getStatusOfWorker().then((function(e){switch(e){case"IDLE":c=Date.now(),r=!0;break;case"BUSY":r=!1}}))}.bind(this),T),s=window.setInterval(function(){S=Date.now()-d>=v,w=c>d?c:d,I=r?0:Date.now()-w,A=I>=E,(r&&S||!r&&S&&A)&&(h||(h=t.displayConfirmDialog(o.sessionTimeoutTitle,o.sessionTimeoutMessage,{icon:"warning",buttonText:[o.sessionTimeoutContinueWorking],defaultAcceptButton:1,closeCallback:function(){x(),h=null,g.start(e,f)}}),y&&y.call(),p(b,function(){this.stop(),C&&C.call()}.bind(this))))}.bind(this),_),a=window.setInterval((function(){x()}),m)},stop:function(){h&&(h.destroy(),h=null),a&&(window.clearInterval(a),a=null),s&&(window.clearInterval(s),s=null),l&&(window.clearInterval(l),l=null)},markUiActivity:u}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8340)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/session",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{sessionTimeoutTitle:"Session Timeout",sessionTimeoutMessage:"Your session is about to time out. MATLAB saved your files and data.",sessionTimeoutCountdown:"MATLAB will automatically log you out in: ",sessionTimeoutUnit:" second(s)",sessionTimeoutContinueWorking:"Continue Working"}}},function(e,t,i){var n,o;n=[i(203),i(868),i(212),i(244),i(2617),i(232),i(209),i(1231),i(1223)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([o],{WEB_ENDPOINT:"/help/",WEB_SEARCH_ENDPOINT:"/support/",DOCVIEWER_PARAM:"docviewer=ml_online",constructor:function(e){e=e||{},this.inherited(arguments),e.endPoints&&void 0!==e.endPoints.endpoint&&void 0!==e.endPoints.serverRoot&&void 0!==e.endPoints.serviceURI?(this.iframeContainer=new l({iframeLayoutManager:e.iframeLayoutManager}),this.updateHelpEndpoint(e.endPoints),r.registerResponseHandler("FEvalResponse:UPDATE_HELP_DATA_ROUTER_ENDPOINT",this._updateEndpoint,this),r.registerFaultHandler("FEval:UPDATE_HELP_DATA_ROUTER_ENDPOINT",this._handleEndpointFaultFEval,this),r.registerResponseHandler("FEvalResponse:UPDATE_HELP_DATA_ROUTER_RELEASE",this._updateRelease,this),r.registerFaultHandler("FEval:UPDATE_HELP_DATA_ROUTER_RELEASE",this._handleReleaseFaultFEval,this)):(this._enabled=!1,a.error("MW.help.HelpDataService: search endpoints parameter must not be null or undefined."))},getSuggestions:function(e){e=e||"";var i=this;if(this.isEnabled()){var o=this._getDomain(),r=this._getRelease();n([o,r]).then((function(n){var o=i.endpoint+i.serverRoot+"/"+i._getSuggestionRoute(),r='{"q":"'+encodeURIComponent(e)+'"}';t.post(o,{data:r,handleAs:"json",headers:{"Content-Type":"application/json"}}).then((function(e){i._emitSearchSuggestionRespond(e)}),(function(e){i._handleGetSuggestionResponse(e)}))}),(function(e){i._handleGetSuggestionResponse(e)}))}},updateRoute:function(){var e=this,t=this._getDomain(),i=this._getRelease();n([t,i]).then((function(t){0!==t.length&&(e.endpoint=t[0])}))},_getDomain:function(){var e=new i;return r.sendMessage({FEval:[{function:"matlab.internal.doc.getDocCenterDomain",arguments:[],nargout:1,priority:1,dequeMode:"ppe"}]},e,"UPDATE_HELP_DATA_ROUTER_ENDPOINT"),e.promise},_getRelease:function(){var e=new i;return r.sendMessage({FEval:[{function:"matlab.internal.doc.getDocCenterRelease",arguments:[],nargout:1,priority:1,dequeMode:"ppe"}]},e,"UPDATE_HELP_DATA_ROUTER_RELEASE"),e.promise},updateHelpEndpoint:function(e){this.endpoint=e.endpoint,this.serverRoot=e.serverRoot,this.serviceURI=e.serviceURI.replace("web","doccenter")},getRemoteUrl:function(e){return r.createWorkerRoutingHostUrl(e)},_updateEndpoint:function(e,t){var i=t;if(1===e.length)if(e[0].isError)a.error(e[0].messageFaults[0].message),this.endpoint="https://www.mathworks.com",i.reject(e[0].messageFaults[0].message);else{var n=e[0].results[0].trim();n=n.replace(/\/$/,""),this.endpoint=n,i.resolve(n)}else{var o="Error in HelpDataService._updateEndpoint, switch to use the default endpoint";a.error(o),this.endpoint="https://www.mathworks.com",i.reject(o)}},_updateRelease:function(e,t){var i=t;if(1===e.length)if(e[0].isError)a.error(e[0].messageFaults[0].message),this.serviceURI="/doccenter/"+s.getMATLABVersionInfo().release,i.reject(e[0].messageFaults[0].message);else{var n=e[0].results[0].trim();this.serviceURI="/doccenter/"+n,i.resolve(n)}else{var o="Error in HelpDataService._updateRelease, switch to use the default release";a.error(o),this.serviceURI="/doccenter/"+s.getMATLABVersionInfo().release,i.reject(o)}},_handleEndpointFaultFEval:function(e,t){var i=t;a.error(e),this.endpoint="https://www.mathworks.com",this.disable(),i.reject(e)},_handleReleaseFaultFEval:function(e,t){var i=t;a.error(e),this.disable(),i.reject(e)},_handleGetSuggestionResponse:function(e){a.error(e),this.disable()},_emitSearchSuggestionRespond:function(e){this.emit("searchSuggestionRespond",e)},_getSuggestionRoute:function(){return"v1/suggest"+this.serviceURI.replace("doccenter","doccenter/en")},getWebHelpEndpoint:function(){return this.endpoint+this.WEB_ENDPOINT+"?"+this.DOCVIEWER_PARAM},getMaximizeUrl:function(e){return e.replace(this.DOCVIEWER_PARAM,"docviewer=null")},addMOQueryParameter:function(e){return e.indexOf("?")>=0?e+="&":e+="?",e+=this.DOCVIEWER_PARAM}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(227),i(210),i(211),i(223),i(206),i(279),i(307),i(216),i(215),i(238),i(8343),i(258),i(331),i(1067),i(288),i(654),i(514),i(1040),i(1068),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C){return e([d,c,_,l],{templateString:h,searchText:"",DEFAULT_PLACEHOLDER:"placeholder",constructor:function(e){this.helpDataService=e.helpDataService},postCreate:function(){this.inherited(arguments),this.searchBox=new p({placeholder:this.DEFAULT_PLACEHOLDER,width:155,height:18}),o.place(this.searchBox.domNode,this.searchNode),this.searchBox.inputNode.setAttribute("role","combobox"),this.searchBox.inputNode.setAttribute("aria-autocomplete","false"),this.searchBox.inputNode.setAttribute("aria-haspopup","listbox"),this.clearLink=o.create("div",{className:"clearTextContainerNode"},this.searchBox.domNode,"first"),this._toggleSearchBoxIcon(),this.searchBox.startup(),this.own(this.searchBox),this.menu=new f({focusOnOpen:!1}),n.add(this.get("menu").domNode,"searchSuggestionsDropDownMenu"),this.own(this.get("menu")),this.toggleMenu=function(e){e=e||this.menuNode;var t=this.searchBox.inputNode.value;e=e.domNode||e,i.isDescendant(e,this.menuNode)&&(this.isMenuOpen()||t.length<=1||(this.openMenu(),this.searchBox.inputNode.setAttribute("aria-expanded","true")))},this._isDropDownDisabled(!0),this.set("clickButtons","none"),this.set("keyPressButtons","down_arrow"),this.domNode.setAttribute("data-composite-primary",""),this.searchBox.focusNode.setAttribute("data-composite-child",""),this.searchBox.domNode.setAttribute("data-composite-child",""),this.searchBox.focusNode.setAttribute("data-composite-primary-id",this.get("id")),this.searchBox.domNode.setAttribute("data-composite-primary-id",this.get("id")),this.own(a(this.helpDataService,"searchSuggestionRespond",t.hitch(this,"_onSearchSuggestionResponse"),!0)),this.own(a(this.helpDataService,"searchSuggestionError",t.hitch(this,"_onSearchSuggestionError"),!0)),this.own(a(this.searchBox,"keyup",t.hitch(this,"_onKeyUpHandler"))),this.own(a(this.searchBox,"keypress",t.hitch(this,"_onKeyPressHandler"))),this.own(a(this.searchBox,"typing",t.hitch(this,"_toggleSearchBoxIcon"))),this.own(a(this.clearLink,"click",t.hitch(this,"_onClickClearButtonHandler"))),this.own(a(this.searchBox,"focus",t.hitch(this,"_onFocusSearchBoxHandler"))),this.on("focusout",t.hitch(this,"_onFocusLost"))},_onFocusSearchBoxHandler:function(){y.getCurrentMnemonicsState()===y.NULL_NULL&&y.setCurrentMnemonicsState(y.NULL_TAB,!1)},_onSearchSuggestionResponse:function(e){if(e.searchtext===this.searchBox.inputNode.value)if(this.enterKeyPressed)this.enterKeyPressed=!1;else{var i=this;this.get("menu").getChildren().forEach((function(e){this.get("menu").removeChild(e)}),this);var n=e.pages[0];if(!n||0===n.suggestions.length)return this._isDropDownDisabled(!0),void this.closeMenu(!0);if(this._isDropDownDisabled(!1),"Functions"===n.header){var o=new g({text:n.header});this.get("menu").addChild(o),n.suggestions.forEach((function(e){var o=new m({icon:"search_suggestion_"+n.type,description:this._getTruncated(75,e.summary.join("")),text:this._getTruncated(65,e.title.join("")),shortcut:e.product,platformizeShortcut:!1});this.own(a(o,"click",t.hitch(this,(function(){i._openInMatlabOnline(e.path)})))),this.get("menu").addChild(o)}),this);var r=new m({text:"more..."});this.own(a(r,"click",t.hitch(this,(function(){const e=this.searchText+"+type:"+n.type;i._docsearch(e)})))),this.get("menu").addChild(r)}var s=e.words,l=new g({text:"Search Suggestions"});this.get("menu").addChild(l),s.wordlist.forEach((function(e){var n=new m({text:e.fullword});this.own(a(n,"click",t.hitch(this,(function(){i._docsearch(e.fullword)})))),this.get("menu").addChild(n)}),this),this.openMenu(),this.searchBox.inputNode.setAttribute("aria-expanded","true")}},_openInMatlabOnline:function(e){C.sendMessage({Eval:{mcode:"helpview(fullfile(docroot,'"+e+"'))"}},{},"SuggestionsTextField_opendoc")},_docsearch:function(e){C.sendMessage({FEval:{function:"docsearch",arguments:[e],nargout:0,priority:1,dequeMode:"ppe"}},{},"SuggestionsTextField_docsearch")},_onSearchSuggestionError:function(){this.closeMenu(),this.searchBox.inputNode.setAttribute("aria-expanded","false")},_onKeyUpHandler:function(e){e.keyCode===r.DOWN_ARROW?this._handleDownArrowKey():e.keyCode!==r.ENTER&&this._handleOtherKeyUp()},_onKeyPressHandler:function(e){e.keyCode===r.ENTER&&this._handleEnterKey()},_toggleSearchBoxIcon:function(){""!==this.searchBox.inputNode.value&&void 0!==this.searchBox.inputNode.value?(n.add(this.searchBox.inputNode,"searchBoxIconHidden"),n.remove(this.clearLink,"searchBoxIconHidden")):(n.remove(this.searchBox.inputNode,"searchBoxIconHidden"),n.add(this.clearLink,"searchBoxIconHidden"))},_onClickClearButtonHandler:function(){this.searchBox.set("value",""),this.closeMenu(!1),this.searchBox.inputNode.setAttribute("aria-expanded","false"),this._toggleSearchBoxIcon()},_handleEnterKey:function(){var e=this.searchBox.inputNode.value;e&&this._docsearch(e),this.enterKeyPressed=!0},_handleDownArrowKey:function(){if(n.contains(this.menuNode,"mwHasMenuOpened")||this.isMenuOpen())this.get("menu").focusFirst();else if(!n.contains(this.menuNode,"mwHasMenuOpened")&&!this.isMenuOpen()){var e=this.searchBox.inputNode.value;e.length>1&&(this.searchText=e,this.helpDataService.getSuggestions(e))}},_handleOtherKeyUp:function(){var e=this.searchBox.inputNode.value;e.length>1?this.searchText!==e&&(this.searchText=e,this.helpDataService.getSuggestions(e)):(this.searchText!==e&&(this.searchText=e),this._isDropDownDisabled(!0),this.closeMenu(!0),this.searchBox.inputNode.setAttribute("aria-expanded","false"))},_onFocusLost:function(e){this.isMenuOpen()&&(void 0===e?(this.closeMenu(!1),this.searchBox.inputNode.setAttribute("aria-expanded","false")):setTimeout(t.hitch(this,(function(){var t=v.parseFocusEvent(e).gainedFocusNode;this._lostSearchBoxFocus(t)})),0))},_onKeyDown:function(e){this.inherited(arguments),e.keyCode===r.ESCAPE&&(this.searchBox.inputNode.value="",setTimeout(t.hitch(this,(function(){this.emit("textcancelled",{mwEventData:{text:""}}),this._onClickClearButtonHandler()})),0))},_lostSearchBoxFocus:function(e){b.isDescendant(e,this.get("menu").domNode)||(this.closeMenu(!1),this.searchBox.inputNode.setAttribute("aria-expanded","false"))},focus:function(){this.searchBox.inputNode&&this.searchBox.inputNode.focus()},_getTruncated:function(e,t){return e<0&&(e=65),null!==t&&t.length<e?t:t.substring(0,e-1)+"..."},_setPlaceholderTextAttr:function(e){this.searchBox.set("placeholder",e)},_isDropDownDisabled:function(e){this.menu.set("disabled",e)}})}),e,t),e.exports=o},function(e,t){e.exports="<div class='searchWidgetContainer' data-dojo-attach-point=\"focusNode\">\n <div class='mwSearchSuggestionsBox' data-dojo-attach-point='searchNode'></div>\n <div data-dojo-attach-point=\"_buttonNode\"></div>\n</div>"},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(206),i(213),i(210),i(248),i(302),i(217),i(225)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([],{start:function(e){this.layoutService=e.layoutService,window.addEventListener("blur",this._moveActiveIframeElementToFront.bind(this))},addWidget:function(e,o,r){var a=this,l="iframeFloatingPane";e.modal&&(l="iframeDialog");var c={resizable:!0,title:e.name,alwaysOnTop:e.alwaysOnTop,class:this._getClass(e.visibility,e.alwaysOnTop,l),top:e.position[0],left:e.position[1],width:e.position[2],height:e.position[3],onBringToTop:t.hitch(this,this._onBringToTop),onResize:t.hitch(this,this._onResize),onMove:t.hitch(this,this._onResize),documentType:l};!1!==r&&(i.after(this.layoutService,"addWidget",t.hitch(this,"_mouseMoveEvent",o)),s.subscribe("/dojo/resize/start",(function(e){a.queryLayoutStore((function(e){e.widget.onSendBack(),e.widget.isMoving=!0}),{id:e.targetId})})),s.subscribe("/dojo/resize/stop",(function(e){a.queryLayoutStore((function(e){e.widget.isMoving=!1,e.widget.onBringToTop()}),{id:e.targetId})}))),this.layoutService.addWidget(o.layoutWidgetId,l,o,c),o.frame&&(o.focusListener=n(o.frame,"focus",this._moveActiveIframeElementToFront.bind(this))),!1===e.resizable&&this._addRemoveResizeHandle(o,!1),e.enableMaximizeButton&&this._enableMaximizeButton(e.peerNodeId)},_getClass:function(e,t,i){return(!0===t?"mwNonModalOnTopDialog":"mwNonModalDialog")+" dojoxFloatingPane dijitContentPane "+i+(void 0!==e?!1===e?" visibilityHidden":"":" visibilityVisible")},_mouseMoveEvent:function(e){this.queryLayoutStore((function(e){n(e.wrapper.titleNode,a.press,(function(){e.widget.onSendBack(),e.widget.isMoving=!0})),n(e.wrapper.titleNode,a.release,(function(){e.widget.isMoving=!1,e.widget.onBringToTop()}))}),{id:e.layoutWidgetId})},_addRemoveResizeHandle:function(e,t){this.layoutService.layoutStore.fetch({query:{id:e.layoutWidgetId},onItem:function(e){c('div[id^="dojox_layout_ResizeHandle_"]',e.wrapper.domNode).forEach((function(e){e.style.display=!1===t?"none":"block"}))}})},reset:function(){var e=this;this.layoutStore&&this.queryLayoutStore((function(t){e.remove(t.id)}))},remove:function(e){this.queryLayoutStore((function(e){e.widget.focusListener&&e.widget.focusListener.remove()}),{id:e}),this.layoutService.removeWidget(e)},_update:function(e,t){var i=this;this.queryLayoutStore((function(n){if(t.position&&(i._resizeWindow(n,t),i.layoutService.updateWidget(e,"top",t.position[0]),i.layoutService.updateWidget(e,"left",t.position[1]),i.layoutService.updateWidget(e,"width",t.position[2]),i.layoutService.updateWidget(e,"height",t.position[3])),t.name&&i.layoutService.updateWidget(e,"title",t.name),t.hasOwnProperty("resizable")&&i._addRemoveResizeHandle(n.widget,t.resizable),t.hasOwnProperty("alwaysOnTop")&&n.wrapper.setAlwaysOnTop&&n.wrapper.setAlwaysOnTop(!0===t.alwaysOnTop),t.hasOwnProperty("visibility")){!1===t.visibility?(r.remove(n.wrapper.domNode,"visibilityVisible"),r.add(n.wrapper.domNode,"visibilityHidden")):!0===t.visibility&&(r.add(n.wrapper.domNode,"visibilityVisible"),r.remove(n.wrapper.domNode,"visibilityHidden"),n.wrapper.bringToTop&&n.wrapper.bringToTop());let e=!!n.wrapper.isAlwaysOnTop&&n.wrapper.isAlwaysOnTop();n.wrapper.set("class",i._getClass(t.visibility,e,n.documentType))}}),{id:e})},updateVisibleWidget:function(e,t){var i=this;this.queryLayoutStore((function(e){i._updateWindow(e,t)}),{id:e})},_updateWindow:function(e,t){"windowPropertyChanged"===t.eventType?(t.position&&this._resizeWindow(e,t),this._update(t.peerNodeId,t)):"windowClosed"===t.eventType&&this.remove(t.peerNodeId)},_resizeWindow:function(e,t){e.widget.update(t.position[2],t.position[3])},bringToTop:function(e){this.queryLayoutStore((function(e){e.wrapper.bringToTop&&e.wrapper.bringToTop()}),{id:e})},isWindowMinimized:function(e){this.queryLayoutStore((function(e){return e.wrapper._isMinimized}),{id:e})},isWindowFocused:function(e){this.queryLayoutStore((function(e){return e.wrapper.focused}),{id:e})},restore:function(e){this.queryLayoutStore((function(e){e.wrapper.show()}),{id:e})},_onBringToTop:function(e){e.widget.onBringToTop(),this.setIframeContainerTransparentDivVisible(e.id)},_moveActiveIframeElementToFront:function(){var e=document.activeElement;this.queryLayoutStore((function(t){e===t.widget.frame&&t.wrapper.bringToTop&&t.wrapper.bringToTop()}))},_onResize:function(e){var t=l.position(e.wrapper.containerNode);e.widget.onResize({w:t.w,h:t.h})},setIframeContainerTransparentDivVisible:function(e){this.queryLayoutStore((function(t){t.id!==e&&t.widget.onSendBack()}))},queryLayoutStore:function(e,i){var n={documentType:new RegExp("iframeFloatingPane|iframeDialog")};i&&(n=t.mixin(n,i)),this.layoutService.layoutStore.fetch({query:n,onItem:function(t){e(t)}})},_enableMaximizeButton:function(e){this.queryLayoutStore((function(e){e.wrapper.enableMaximize(!0)}),{id:e})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(206),i(8346),i(8358),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=e("desktop_importtool.ImportToolMain",[],{layoutService:{},executionService:{},messageService:{},peerImportTool:null,_root:null,_aspectHandles:[],_IMPORT_TOOL_CHANNEL:"/ImportToolManager",constructor:function(e){this.peerImportTool=null,this._aspectHandles=[],this.initArgs(e),this._init()},initArgs:function(e){e&&(this.uiContainer=e.uiContainer,this.messageService=e.messageService,this.layoutService=e.layoutService,this.executionService=e.executionService)},_init:function(){this.peerImportTool=new o(this._IMPORT_TOOL_CHANNEL),this.uiImportTool=new r(this.peerImportTool,this.uiContainer,this._IMPORT_TOOL_CHANNEL)},_handleWidgetClose:function(e,t){this.layoutService.removeWidget(t.id),this.peerImportTool.removeDataSource(t)},start:function(e){this.peerImportTool.start(e)},stop:function(){this._aspectHandles&&this._aspectHandles.length>0&&this._aspectHandles.forEach((function(e){e&&e.remove&&e.remove()}))}});return s.getInstance=function(e){return s._instance?(e&&s._instance.initArgs(e),s._instance):(s._instance=new s(e),s._instance)},{getInstance:s.getInstance}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(256),i(206),i(8347),i(8349),i(630),i(209),i(278),i(1649),i(1562),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=0;return e([],{channel:"",mf0ViewModelManager:null,serverInitialized:!1,focusedManager:null,managers:null,widgetList:null,createQueue:null,_uiContainer:null,_IMPORT_TOOL_RESPONSE:"ImportToolUtilsResponse_",constructor:function(e,t,i){console.log("PeerImportTool.js: setting up "+e),this.channel=e,this.mf0ViewModelManager=null,this.managers=[],this.focusedManager=null,this.createQueue=[],this.widgetList=[],this.registry=t?new t:new a,this._uiContainer=i,h.subscribe(this.channel+"/importToolServerInitialized","init",this),console.log(" -- publishing to "+this.channel+"/queryInitStatus"),h.publish(this.channel+"/queryInitStatus",{})},init:function(){var e=s.CPPMF0ViewModel;this.mf0ViewModelManager=e.getViewModelManager(this.channel),this.mf0ViewModelManager.hasRoot()?this.runManagerCreationQueue():this.mf0ViewModelManager.addEventListener("rootSet",t.hitch(this,"_handleRootSet"))},_handleRootSet:function(e){var i=e.target;this.runManagerCreationQueue(),i.addEventListener("peerEvent",t.hitch(this,"_handlePeerEvent")),i.addEventListener("propertySet",t.hitch(this,"_handlePropertySetEvent"))},_handlePropertySetEvent:function(e){e.data&&e.data.key&&"FocusedManager"===e.data.key&&(this.focusedManager=this.managers[e.data.newValue.FocusedManager])},_handlePeerEvent:function(e){e.data.type&&"FactoryInitialized"===e.data.type?(this.serverInitialized=!0,this.runManagerCreationQueue()):e.data.type&&"ManagerCreated"===e.data.type?this._handleWidgetCreation(e):e.data.type&&"log"===e.data.type&&e.data.message&&c.logDebug("ImportTool: Server Log ("+e.data.message+")")},_handleWidgetCreation:function(e){var t=e.data.fileType,n=e.data.SheetNames,o={channel:e.data.Channel,source:"server",type:t,sheetNames:n,dataSource:e.data.DataSource};this.createManager(o);var r=null;Array.isArray(n)||(n=[n]),this.widgetList[e.data.Channel]?(r=this.widgetList[e.data.Channel])._updateWidgetWithSheetInfo(n):r=this.createWidget(this.managers[e.data.Channel],t,n,e.data.InitialSheet);var a=this;i.after(r,"focus",(function(){var e=r.getDataSource();a.focusedManager=e.remoteManager})),this.handleWidgetCreated(r)},handleWidgetCreated:function(e){},getActions:function(){return d.getActions()},createWidget:function(e,t,i,n){var o,r=this.registry.getRegisteredDataSource(t),a=this.registry.getRegisteredWidget(t);"spreadsheet"===t?o=new r(null,i,e,n):"text"===t&&(o=new r(null,e));var s=new a({dataSource:o,uiContainer:this._uiContainer,manager:e});return this.widgetList[e.channel]=s,s},deleteImportTool:function(e,t){t||(t=this.getClientPeerManager());var i=t.getRoot();i?i.dispatchEvent("peerEvent",i,{type:"DeleteManager",channel:e}):this.createQueue.push({type:"DeleteManager",channel:e})},createServerModel:function(e,t,i,n){if(this.mf0ViewModelManager.hasRoot()){var o=this.mf0ViewModelManager.getRoot();o.dispatchEvent("peerEvent",o,{type:"CreateManager",DataSource:e,channel:t,ignoreUpdates:i||!1,fileType:n||"spreadsheet"})}else this.createQueue.push({type:"CreateManager",channel:t,ignoreUpdates:i||!1,DataSource:e||"",fileType:n||"spreadsheet"})},deletePeerManager:function(e){if(!e&&e.channel)return null;try{e.destroy()}catch(e){}this.deleteServerModel(e.channel),delete this.managers[e.channel]},deleteServerModel:function(e){var t=this.mf0ViewModelManager.getRoot();t?t.dispatchEvent("peerEvent",t,{type:"DeleteManager",channel:e}):this.createQueue.push({type:"DeleteManager",channel:e})},createPeerManager:function(e){if(!e)return null;(!e.source||e.source&&"server"!==e.source)&&this.createServerModel(e.fileName,e.channel,e.ignoreUpdates||!1,e.fileType||"spreadsheet"),e.uiContainer=this._uiContainer;var t=new r(e);return e.provider=new u({channel:e.channel,manager:t}),t},createDataSource:function(e){var t=null;if(e&&e.fileName){var i=this.createManager(e),n=e.fileType;t=this.createWidget(i,n)}else l.error("Please enter a file name to import");return t},removeDataSource:function(e){var t=e.getDataSource();t.destroy();var i=t.remoteManager;this.deletePeerManager(i),this.widgetList[i.channel]&&delete this.widgetList[i.channel]},createManager:function(e){if(!e.channel){p+=1;var t=e.fileName.replace(/[^\w]/gi,"");e.channel="/ImportTool_"+t+"_"+p}return this.managers&&this.managers[e.channel]&&!e.forceNewManager||(this.managers[e.channel]=this.createPeerManager(e)),this.managers[e.channel]},startServer:function(){c.runFactoryInitInMATLAB(this._IMPORT_TOOL_RESPONSE,"internal.matlab.importtool.peer.PeerImportToolFactory.startup",t.hitch(this,this._serverStartedCallback))},_serverStartedCallback:function(e){e&&!e.isError&&(this.serverStarted=!0,this.runManagerCreationQueue())},runManagerCreationQueue:function(){this.mf0ViewModelManager&&this.mf0ViewModelManager.hasRoot()&&(this.createQueue.forEach((function(e){var t=this.mf0ViewModelManager.getRoot();c.logDebug("ImportTool: Factory Create Manager From Queue ("+e.channel+")"),t.dispatchEvent("peerEvent",t,e)}),this),this.createQueue=[])},getFocusedManager:function(){return this.focusedManager||(this.focusedManager=this.managers[Object.keys(this.managers)[0]]),this.focusedManager},start:function(e){e?this.startServer():this.serverStarted=!0},stop:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8348),i(1200)],o=i.dj.d(n,(function(e,t,i){return e("importtool_peer.RemoteImportToolManager",[i],{channel:"/ImportToolManager",_FACTORY_CLASS:"importtool_peer/ImportToolFactory",_PEERMODEL_MANAGER_CHANNEL:"/ImportToolManager",_uiContainer:null,createDocument:function(e){return e.showSummaryBar=!1,e.uiContainer&&(this._uiContainer=e.uiContainer),new t(e)},openImportSheet:function(e){var t={type:"OpenImportSheet",sheetName:e};this.provider.isReady()&&this.provider.dispatchEventToServer(this,t)},_handleSheetChanged:function(e){},handlePropertySet:function(e){var t;if("FocusedDocument"===e.data.key&&((t=e.data.newValue.Document?e.data.newValue.Document:e.data.newValue)&&this.documents)){var i;for(i in this.documents)if(this.documents.hasOwnProperty(i)&&this.documents[i].varDocID===t){this._setFocus(this.documents[i]);break}this.dispatchEvent("variableFocusGained",this,{peerDoc:this.focusedDocument});var n=this.focusedDocument.propertyObj.sheetName;this._handleSheetChanged(n)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(214),i(204),i(256),i(2618),i(2359)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("importtool_peer.RemoteImportToolDocument",[a,r],{constructor:function(){this._initListeners()},_initListeners:function(){var e=this;this.addEventListener("viewCreated",(function(i){var n=i.data.viewModel;e.parentViewToDocument(n),n._updateView();var o=n.getCurrentViewState();e._dispatchMetaDataChanged({data:o}),e._metaDataChangedListener=t(n.domNode,"metaDataChanged",(function(t){e._dispatchMetaDataChanged(t)}))}))},_dispatchMetaDataChanged:function(e){t.emit(this.domNode,"metaDataChanged",e)},getDocumentMetaData:function(e){return e.getViewMetaData()},destroy:function(){this.inherited(arguments),this._metaDataChangedListener&&this._metaDataChangedListener.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8350),i(8352),i(8354),i(8356),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a={spreadsheet:{dataSource:i,importWidget:t},text:{dataSource:o,importWidget:n}};return e([],{constructor:function(){this._widgetTypes=a},getRegisteredWidget:function(e){return this._widgetTypes[e]?this._widgetTypes[e].importWidget:{}},getRegisteredDataSource:function(e){return this._widgetTypes[e]?this._widgetTypes[e].dataSource:{}},registerType:function(e,t){e&&t&&(this._widgetTypes.hasOwnProperty(e)&&r.warn("This registration type already exists, overriding widget type"),this._widgetTypes[e]=t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(217),i(211),i(206),i(2619),i(339)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("importtool_peer.PeerSpreadsheetImportWidget",[a],{_aspectListeners:[],_sheetAddedListener:null,_managerReadyListener:null,_busyIndicator:null,_BUSY_INDICATOR_BACKGROUND:"rgb(254,254,254)",_BUSY_INDICATOR_OPACITY:.4,_BUSY_INDICATOR_ZINDEX:945,_WIDGET_TYPE:"spreadsheetImportTool",_manager:[],constructor:function(e){this.manager=e.manager,this._aspectListeners=[]},_init:function(){this.updateWidgetTabs(),this._attachListeners()},updateWidgetTabs:function(){for(var e=this.spreadSheetDataSource.getSheetCount(),t=0;t<e;t++)this._addWidgetToContainer(null,t,this.spreadSheetDataSource.getSheetName(t))},_attachListeners:function(){this.inherited(arguments),this._aspectListeners.push(i.after(this.spreadSheetDataSource,"_dataSourceInitialized",t.hitch(this,"widgetInitialized"))),this._aspectListeners.push(i.after(this.spreadSheetDataSource,"_handleSheetViewAdded",t.hitch(this,"handleWidgetCreation"),!0)),this._aspectListeners.push(i.after(this.spreadSheetDataSource,"_handleSheetAdded",t.hitch(this,"_addMetaDataChangedListener"),!0)),this.manager&&this._aspectListeners.push(i.after(this.manager,"_handleSheetChanged",t.hitch(this,"_handleServerSheetChanged"),!0))},_createBusyIndicator:function(){this._busyIndicator=new s(s.SIZE.SMALL);var e=document.getElementById("showBusy"+this._getWidgetCounter());this._busyIndicator.set("target",e),this._busyIndicator._underlayNode.style.backgroundColor=this._BUSY_INDICATOR_BACKGROUND,this._busyIndicator._underlayNode.style.opacity=this._BUSY_INDICATOR_OPACITY,this._busyIndicator._underlayNode.style.zIndex=this._BUSY_INDICATOR_ZINDEX},_openImportSheet:function(){this._busyIndicator||this._createBusyIndicator(),this._busyIndicator.show();var e=this._tabContainer.getTabForChild(this._tabContainer.selectedChildWidget).properties.title;this.spreadSheetDataSource.openImportSheet(e)},_handleServerSheetChanged:function(e){this._tabContainer.showChild(e)},_showInitialSheet:function(){this.inherited(arguments),this._busyIndicator.show()},_addBusyIndicatorToDom:function(){var e="showBusy"+this._getWidgetCounter(),t=o.toDom("<div id="+e+"></div>");o.place(t,this._tabContainer.containerNode)},widgetInitialized:function(){},_updateWidgetWithSheetInfo:function(e){e.length!==this._tabContainer.getChildrenInTabOrder().length&&(this.spreadSheetDataSource.updateSheetCount(e.length),this.spreadSheetDataSource.updateSheetNames(e),this.updateWidgetTabs()),this._showInitialSheet()},getWidgetTitle:function(){return this.spreadSheetDataSource.getProperty("DataSource")||this._DEFAULT_TITLE},getWidgetType:function(){return this._WIDGET_TYPE},getFocusedWidget:function(){var e=this.spreadSheetDataSource.getProperty("FocusedDocument");return e?e.FocusedDocument:null},handleWidgetCreation:function(e,t){var i={document:t};this._addViewUpdatedListener(t),this._createImportWidget(e,i)},_addMetaDataChangedListener:function(e){if(e&&e.data&&e.data.peerDoc){var t=e.data.peerDoc,i=this;this._metaDataChangedListener=r(t.domNode,"metaDataChanged",(function(e){e.data.importType=i.getWidgetType(),r.emit(i.domNode,"metaDataChanged",e)}))}},_addViewUpdatedListener:function(e){var t,i=this;this._viewUpdatedListener=e.addEventListener("viewUpdated",(t=i,function(){t._busyIndicator&&(t._busyIndicator.hide(),t._viewUpdatedListener=null)}))},destroy:function(){this.inherited(arguments),this._aspectListeners.forEach((function(e){e&&e.remove&&e.remove()})),this._sheetAddedListener&&this._sheetAddedListener.remove&&this._sheetAddedListener.remove(),this._metaDataChangedListener&&this._metaDataChangedListener.remove&&this._metaDataChangedListener.remove()}})}),e,t),e.exports=o},function(e,t){e.exports='[\n {\n "Keyset":{\n "Container":"importtool_client/SpreadsheetTableViewModel",\n "Datatype":"",\n "Context": ""\n },\n "Valueset":{\n "Editor":"importtool_client/SpreadsheetTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION",\n "COLUMN_RESIZE", "CORNER_SPACER_TEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "spreadsheet",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"importtool_peer/RemoteSpreadsheetTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "HeaderRenderer": "",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["HEADER_MENU", "ROW_HEADERS", "CELL_FOCUS",\n "PEER_PLAID_SELECTION", "COLUMN_RESIZE", "CORNER_SPACER_TEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":"text",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"importtool_peer/RemoteTextTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["HEADER_MENU", "ROW_HEADERS", "CELL_FOCUS",\n "PEER_PLAID_SELECTION", "COLUMN_RESIZE", "CORNER_SPACER_TEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":"text",\n "Datatype":""\n },\n "Valueset":{\n "Editor":"importtool_client/TextTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["HEADER_MENU", "ROW_HEADERS", "CELL_FOCUS",\n "PEER_PLAID_SELECTION", "COLUMN_RESIZE", "CORNER_SPACER_TEXT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["spreadsheet", "text"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": ""\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"importtool_client/renderers/RightAlignedImportToolRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "importtool_client/renderers/HeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["spreadsheet", "text"],\n "Datatype": [\n "logical"\n ],\n "Context": ""\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"importtool_client/renderers/CenterAlignedImportToolRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "importtool_client/renderers/HeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["spreadsheet", "text"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default"\n ],\n "Context": ""\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"importtool_client/renderers/ImportToolRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "importtool_client/renderers/HeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["text"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "FixedWidth"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"importtool_client/renderers/RightAlignedImportToolRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "importtool_client/renderers/FixedWidthHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["text"],\n "Datatype": [\n "logical"\n ],\n "Context": "FixedWidth"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"importtool_client/renderers/CenterAlignedImportToolRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "importtool_client/renderers/FixedWidthHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["text"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default"\n ],\n "Context": "FixedWidth"\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"importtool_client/renderers/ImportToolRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "importtool_client/renderers/FixedWidthHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["spreadsheet", "text"],\n "Datatype": "",\n "Context": ""\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"importtool_client/renderers/ImportToolRenderer",\n "EditorConverter":"",\n "HeaderRenderer": "importtool_client/renderers/HeaderRenderer"\n }\n }\n]\n'},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(209),i(2622),i(2623)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("importtool_peer.RemoteSpreadsheetDataImportSource",[o],{remoteManager:null,_DEFAULT_SHEETNAME:"DefaultSheetName",_sheetViewAddedListener:null,_manager:null,_initialSheet:null,constructor:function(e,t,i,n){this._sheetNamesList={},this.remoteManager=i,this._sheetViewAddedListener=null,this._manager=i,this._initialSheet=n,this.initListeners()},_dataSourceInitialized:function(){},_init:function(e,t){t&&(this._sheetCount=t.length,this.updateSheetNames(t))},getProperty:function(e){return this.remoteManager&&this.remoteManager.propertyObj.hasOwnProperty(e)?this.remoteManager.propertyObj[e]:{DataSource:this.remoteManager.allArgs.fileName}},initListeners:function(){this.remoteManager.addEventListener("managerReady",t.hitch(this,"_dataSourceInitialized"),this),this.variableAddedCallback=t.hitch(this,"_handleSheetAdded"),this.remoteManager.addEventListener("variableAdded",this.variableAddedCallback)},openImportSheet:function(e){this.remoteManager.openImportSheet(e)},_handleSheetAdded:function(e){if(e&&e.data&&e.data.peerDoc){var o=e.data.peerDoc;if(o.propertyObj){var a=o.propertyObj.hasOwnProperty("sheetName")?o.propertyObj.sheetName:"";a||(a=this._DEFAULT_SHEETNAME,n.warn("Sheet added without sheetName"));var s=o.provider.getUIDForObject(o);this._sheetNamesList[s]=a;var l=new r(o);this._tabularDataSourceList[s]=l,this._sheetViewAddedListener=i.after(this._tabularDataSourceList[s],"onSheetViewAdded",t.hitch(this,"_handleSheetViewAdded",s,o),!0)}}},_handleSheetViewAdded:function(){},destroy:function(){for(var e in this.remoteManager&&this.remoteManager.removeEventListener&&this.remoteManager.removeEventListener("variableAdded",this.variableAddedCallback),this._sheetViewAddedListener&&this._sheetViewAddedListener.remove(),this._tabularDataSourceList)if(this._tabularDataSourceList.hasOwnProperty(e)){var t=this._tabularDataSourceList[e];t&&t.destroy()}},setFocusedDocument:function(e){this._manager.setFocusedDocument(e),e._viewModel&&e._viewModel._table&&e._viewModel._table.focus()},setManagerFocus:function(e){this._manager.setManagerFocus(e)},removeFocusedDocument:function(e){this._manager.removeFocusedDocument(e)},updateSheetCount:function(e){this._sheetCount=e},updateSheetNames:function(e){for(var t=0;t<this._sheetCount;t+=1)e&&e[t]&&(this.sheetNames[t]=e[t])},getSheetName:function(e){return this._sheetNamesList[e]?this._sheetNamesList[e]:this.sheetNames[e]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209)],o=i.dj.d(n,(function(e,t){return e("importtool_client.TabularDataImportSource",[],{_columnMetaData:{},_selection:[],_headerRow:[],_data:[],rows:0,columns:0,constructor:function(){this._columnMetaData={},this._selection=[],this._headerRow=[],this._data=[]},getData:function(e){var t=[];if(e){if(this._dataLiesWithinRange(e)){var i=e.rows.start,n=Math.min(e.rows.end,this._data.length),o=e.columns.start,r=Math.min(e.columns.end,this._data[0].length);(t=this._data.slice(i,n+1)).forEach((function(e,i){t[i]=e.slice(o,r+1)}))}}else t=this._data;return t},_dataLiesWithinRange:function(e){return e.rows.start<=this._data.length&&e.columns.start<=this._data[0].length},getSelection:function(){return this._selection},setSelection:function(e){e.forEach((function(e){e&&(e.rows||e.columns)&&(this.getData(e).length>0&&this._selection.push(e))}),this)},getColumnMetaData:function(e,t){if(this._columnMetaData.hasOwnProperty(e)&&(e=this._columnMetaData[e]).hasOwnProperty(t)&&e[t])return e[t]},setColumnMetaData:function(e,t,i){t&&null!=i&&(this._columnMetaData[e]||(this._columnMetaData[e]={}),this._columnMetaData[e][t]=i)},getAllColumnMetaData:function(e){return this._columnMetaData[e]},getHeaderRow:function(){return this._headerRow},setHeaderRow:function(e){this._headerRow=e},getSelectedData:function(e){var i=[];return this._selection.some((function(t){return t.rows.start===e.rows.start&&t.rows.end===e.rows.end&&t.columns.start===e.columns.start&&t.columns.end===e.columns.end}))?i=this.getData(e):t.warn("No data found for the specified selection range"),i},getDocumentMetaData:function(){return this.peerDocument.getDocumentMetaData()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(217),i(211),i(206),i(8355),i(339)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("importtool_peer.PeerTextImportWidget",[a],{_aspectListeners:[],_busyIndicator:null,_BUSY_INDICATOR_BACKGROUND:"rgb(254,254,254)",_BUSY_INDICATOR_OPACITY:.4,_BUSY_INDICATOR_ZINDEX:945,_WIDGET_TYPE:"textImportTool",constructor:function(){this._aspectListeners=[]},_init:function(){this._attachListeners()},_attachListeners:function(){this.inherited(arguments),this._aspectListeners.push(i.after(this.textDataSource,"_dataSourceInitialized",t.hitch(this,"widgetInitialized"))),this._aspectListeners.push(i.after(this.textDataSource,"_handleSheetViewAdded",t.hitch(this,"handleWidgetCreation"),!0)),this._aspectListeners.push(i.after(this.textDataSource,"_handleSheetAdded",t.hitch(this,"_addMetaDataChangedListener"),!0))},widgetInitialized:function(){},handleWidgetCreation:function(e,t){var i={document:t};this._addViewUpdatedListener(t),this._createImportWidget(i)},_addMetaDataChangedListener:function(e){if(e&&e.data&&e.data.peerDoc){var t=e.data.peerDoc,i=this;this._metaDataChangedListener=r(t.domNode,"metaDataChanged",(function(e){e.data.importType=i.getWidgetType(),r.emit(i.domNode,"metaDataChanged",e)}))}},_updateWidgetWithSheetInfo:function(e){},_createBusyIndicator:function(){this._busyIndicator=new s(s.SIZE.SMALL);var e=document.getElementById("showBusy"+this._getWidgetCounter());this._busyIndicator.set("target",e),this._busyIndicator._underlayNode.style.backgroundColor=this._BUSY_INDICATOR_BACKGROUND,this._busyIndicator._underlayNode.style.opacity=this._BUSY_INDICATOR_OPACITY,this._busyIndicator._underlayNode.style.zIndex=this._BUSY_INDICATOR_ZINDEX},getWidgetTitle:function(){return this.textDataSource.getProperty("DataSource")||this._DEFAULT_TITLE},getWidgetType:function(){return this._WIDGET_TYPE},_addViewUpdatedListener:function(e){var t,i=this;this._viewUpdatedListener=e.addEventListener("viewUpdated",(t=i,function(){t._busyIndicator&&(t._busyIndicator.hide(),t._viewUpdatedListener=null)}))},_addBusyIndicatorToDom:function(){var e="showBusy"+this._getWidgetCounter(),t=o.toDom("<div id="+e+"></div>");o.place(t,this.domNode)},destroy:function(){this.inherited(arguments),this._aspectListeners.forEach((function(e){e&&e.remove&&e.remove()})),this._sheetAddedListener&&this._sheetAddedListener.remove&&this._sheetAddedListener.remove(),this._metaDataChangedListener&&this._metaDataChangedListener.remove&&this._metaDataChangedListener.remove()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(204),i(203),i(210),i(211),i(206),i(307),i(238),i(2620),i(2621),i(209),i(231)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=0;return i("importtool_client.TextImportWidget",[c,e,a],{textDataSource:null,tabularImportWidget:null,_uiContainer:null,_startupListener:null,_context:null,_VIEW_TYPE:"importtool_client/TextTableViewModel",_DEFAULT_TITLE:"No Filename",_WIDGET_TYPE:"textImportTool",_CONTAINER_TYPE:"text",constructor:function(e){e.dataSource?this.textDataSource=e.dataSource:d.warn("Widget created without data source"),e.uiContainer&&(this._uiContainer=e.uiContainer),e.context&&(this._context=e.context)},postCreate:function(){n.add(this.domNode,"TextImportWidget"),this.domNode.tabIndex=-1,this._addBusyIndicatorToDom(),h+=1,this._init()},_addBusyIndicatorToDom:function(){},_createBusyIndicator:function(){},setDataSource:function(e){this.textDataSource||(this.textDataSource=e)},getDataSource:function(){return this.textDataSource},_init:function(){this._createImportWidget({viewType:this._VIEW_TYPE,containerType:this._CONTAINER_TYPE,uiContainer:this._uiContainer,context:this._context}),this._attachListeners()},_createImportWidget:function(e){if(this.textDataSource&&this.textDataSource.getSheet){var i={dataSource:this.textDataSource.getSheet(),type:"TextTableView"};e&&t.mixin(i,e),this.tabularImportWidget=new l(i),o.place(this.tabularImportWidget.domNode,this.domNode),this.setFocusedSheet(this.tabularImportWidget),this._fitWidgetToContentPane(this.tabularImportWidget),this._widgetStarted&&(r.emit(this.tabularImportWidget.domNode,"startupWidget",{bubbles:!1,cancelable:!0}),this.resizeLayout())}},_fitWidgetToContentPane:function(e){e.domNode.style.height="100%",e.domNode.style.width="100%",e.handleResize()},_handleStartup:function(){this._widgetStarted=!0,this._createBusyIndicator(),this.tabularImportWidget&&this.tabularImportWidget.domNode&&r.emit(this.tabularImportWidget.domNode,"startupWidget",{bubbles:!1,cancelable:!0})},_attachListeners:function(){this._startupListener=r(this.domNode,"startup",t.hitch(this,this._handleStartup));var e=u.getEnclosingWidget(this.domNode);this._stateChangeListener=r(e,"onresize",t.hitch(this,this._handleSizeChange));var i=this,n=s.on("widget-blur",(function(e){e===i&&(i.dataSource&&i.dataSource.setManagerFocus&&i.dataSource.setManagerFocus(!1),n.remove())}))},_getWidgetCounter:function(){return h},_handleSizeChange:function(){var e=this.getTextWidgetFromSelectedTab();e&&e.handleResize&&e.handleResize()},focus:function(){s.focus(this.domNode),this.textDataSource.setManagerFocus(!0),this.setFocusedSheet(this.getTextWidgetFromSelectedTab())},resizeLayout:function(){this._widgetStarted&&this.tabularImportWidget&&this.tabularImportWidget.resize()},getWidgetTitle:function(){return this._DEFAULT_TITLE},getWidgetType:function(){return this._WIDGET_TYPE},getTextWidgetFromSelectedTab:function(){if(this.tabularImportWidget&&this.tabularImportWidget.domNode)return this.tabularImportWidget},setFocusedSheet:function(e){if(this._focusedSheet=e,e){var t=e.getDocument();this.dataSource.setFocusedDocument(t);var i=e.getWidgetMetaData();t&&t.dataSource&&(i.dataSource=t.dataSource),this.getWidgetType&&(i.importType=this.getWidgetType()),i&&r.emit(this.domNode,"focusedDocumentChanged",i)}},getFocusedSheet:function(){return this._focusedSheet},destroy:function(){try{this._startupListener.remove(),this.inherited(arguments)}catch(e){d.warn("Error occured while destroying textWidget:"+e)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(209),i(8357),i(2623)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("importtool_peer.RemoteTextDataImportSource",[o],{remoteManager:null,_manager:null,constructor:function(e,t){this.remoteManager=t,this._manager=t,this.initListeners()},_dataSourceInitialized:function(){},getProperty:function(e){return this.remoteManager&&this.remoteManager.propertyObj.hasOwnProperty(e)?this.remoteManager.propertyObj[e]:{DataSource:this.remoteManager.allArgs.fileName}},initListeners:function(){this.remoteManager.addEventListener("managerReady",t.hitch(this,"_dataSourceInitialized"),this),this.variableAddedCallback=t.hitch(this,"_handleSheetAdded"),this.remoteManager.addEventListener("variableAdded",this.variableAddedCallback)},_handleSheetAdded:function(e){if(e&&e.data&&e.data.peerDoc){var n=e.data.peerDoc;if(n.provider){var o=n.provider.getUIDForObject(n),a=new r(n);this._tabularDataSource=a,this._sheetViewAddedListener=i.after(this._tabularDataSource,"onSheetViewAdded",t.hitch(this,"_handleSheetViewAdded",o,n),!0)}}},_handleSheetViewAdded:function(){},setFocusedDocument:function(e){this._manager.setFocusedDocument(e),e._viewModel&&e._viewModel._table&&e._viewModel._table.focus()},setManagerFocus:function(e){this._manager.setManagerFocus(e)},removeFocusedDocument:function(e){this._manager.removeFocusedDocument(e)},destroy:function(){this.remoteManager&&this.remoteManager.removeEventListener&&this.remoteManager.removeEventListener("variableAdded",this.variableAddedCallback),this._sheetViewAddedListener&&this._sheetViewAddedListener.remove(),this._tabularDataSource&&this._tabularDataSource.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209)],o=i.dj.d(n,(function(e,t){return e("importtool_client.TextDataImportSource",[],{constructor:function(e){this._tabularDataSource=null,this._init(e)},_init:function(e){e&&(this._tabularDataSource=e)},setFocusedDocument:function(){t.warn("To be overridden")},getSheet:function(){return this._tabularDataSource}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(211),i(217),i(206),i(204),i(214),i(236),i(256),i(276),i(30),i(277),i(231),i(356),i(209),i(241),i(339),i(304),i(484),i(560),i(226),i(235),i(2622),i(2619),i(8359),i(382),i(538),i(568)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A){return e([v],{_aspectHandles:[],_uiContainer:null,_importTool:null,_TOOLSTRIP_SELECTIONSECTION_WIDTH:80,_delimiter:[],_SPREADSHEET_TYPE:"spreadsheetImportTool",_TEXT_TYPE:"textImportTool",_SPREADSHEET_PREFIX:"Spreadsheet",_TEXT_PREFIX:"Text",_tagPrefix:"",_customDelimiter:"",_eventsAdded:!1,_decimalSepHandlerPeriod:void 0,_decimalSepHandlerComma:void 0,_decimalSeparator:"",_importType:"",_properties:void 0,_busyOverlay:void 0,_selectionRangeHistoryMap:{},_DELIMITER_INDEX_TAB:0,_DELIMITER_INDEX_COMMA:1,_DELIMITER_INDEX_SPACE:2,_DELIMITER_INDEX_SEMICOLON:3,_DELIMITER_INDEX_CUSTOM:4,_DEFAULT_UNIMPORTABLE_RULE:9999999,_IMPORT_NOTIFICATION_DELAY:3e3,_IMPORT_NOTIFICATION_FADE:2e3,_IMPORT_TOOL_TESTING_CHANNEL:"uiimporttool_testing_channel",_EXCEL_RANGE_VALIDATION_REGEX:new RegExp("^([a-z]+\\d+):([a-z]+\\d+)((\\(("+I.selectionHistoryInitalText+")?\\)))?$","i"),_EXCEL_RANGE_FORMATTING_REGEX:/([a-z]+\d+:[a-z]+\d+)/gi,_DEFAULT_OUTPUT_TYPE:"table",constructor:function(e,t,i){t&&(this._uiContainer=t),e&&(this._importTool=e,this._updateToolstripCallbacks(),this._aspectHandles.push(a.after(e,"handleWidgetCreated",r.hitch(this,"_addWidget"))))},_isDesktopImport:function(e){return e&&e.startsWith("/ImportTool_")},_isDebugChannel:function(e){return e&&e.startsWith("/DebugImport")},_addToContainer:function(e){var t,i=this._getDocumentChildProperties(e),n=e.dataSource&&e.dataSource.remoteManager&&e.dataSource.remoteManager.channel,s=!0;if(f.log("IMPORT CHANNEL: "+n),i.documentType===this._TEXT_TYPE?t=document.querySelector("#textImportTool"):i.documentType===this._SPREADSHEET_TYPE&&(t=document.querySelector("#spreadsheetImportTool")),t?(f.log("IMPORT WIDGET: WEBWINDOW"),void 0!==n&&this._isDesktopImport(n)&&(s=!1)):(f.log("IMPORT WIDGET: MOL"),void 0===n||this._isDesktopImport(n)||(s=!1)),this._isDebugChannel(n)&&(s=!0),this.attachListeners(e),this._updateToolstripStyles(i.documentType),this._addCloseEventListener(e,i),s&&this._uiContainer.addDocument(e,i),o.emit(e.domNode,"startup",{bubbles:!1,cancelable:!0}),i.documentType===this._SPREADSHEET_TYPE?this._tagPrefix=this._SPREADSHEET_PREFIX:this._tagPrefix=this._TEXT_PREFIX,e.dataSource&&e.dataSource.remoteManager&&(this.focusedDataSource=e.dataSource.remoteManager.allArgs.dataSource),this._uiContainer&&this._uiContainer.uiBuilder&&i.documentType){var c=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"OutputVariableType"),d=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"VariableNamesRow"),u=this._uiContainer.uiBuilder.widgetByTag(this._tagPrefix+"VariableNamesRow"),h=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"SelectionRange"),p=this._uiContainer.uiBuilder.widgetByTag(this._tagPrefix+"SelectionRange"),g=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"OutputVariableName"),m=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ImportTabGroup.matlabTab.ImportDropDown.ImportSelection"),_=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ImportTabGroup.matlabTab.ImportDropDown.GenerateScript"),v=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ImportTabGroup.matlabTab.ImportDropDown.GenerateLiveScript"),y=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ImportTabGroup.matlabTab.ImportDropDown.GenerateFunction"),C=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"AddUnimportableRule"),T=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ModifyUnimportableRule"),E=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"RemoveUnimportableRule"),S=this._uiContainer.uiBuilder.widgetByTag(this._tagPrefix+"UnimportableCellRules"),I=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"IncludesVarNamesRow"),A=this;if(c&&this._uiContainer.uiBuilder.addPropertySetCallback(c,(function(e){var t=A._getMousePosition(A._tagPrefix+"TableOptions"),i={text:e.newValue,windowX:window.screenX,windowY:window.screenY,offsetX:t.x,offsetY:t.y};A._executeAction(i,"OutputVariableTypeChanged")})),d&&this._uiContainer.uiBuilder.addPropertySetCallback(d,(function(e){if("value"===e.property){let t=e.newValue;Number.isNaN(t)&&(t=e.oldValue?e.oldValue:1);let i={eventType:"valueChanged",text:t,newValue:t};A._executeAction(i,"VariableNamesRowChanged")}})),h&&this._uiContainer.uiBuilder.addPropertySetCallback(h,(function(e){if("selectedItem"===e.property){var t=e.newValue.replace(/ /g,"");if(t.split(",").some((function(e){return!A._EXCEL_RANGE_VALIDATION_REGEX.test(e)}))){var i=A._uiContainer.uiBuilder.get(h,"items")[0];A._uiContainer.uiBuilder.set(h,"text",i.label)}else{var n={text:t.match(A._EXCEL_RANGE_FORMATTING_REGEX).join(",")};A._executeAction(n,"SelectionChanged")}}})),g&&this._uiContainer.uiBuilder.addPropertySetCallback(g,(function(e){var t={text:e.newValue};A._executeAction(t,"OutputVariableNameChanged")})),this._setupTableOutputOptions(),S&&S.domNode){var x=S.domNode;this.rulesDblClickListener=x.addEventListener("click",r.hitch(this,"_rulesMouseListener"))}I&&this._uiContainer.uiBuilder.addPropertySetCallback(I,(function(e){var t=!e.newValue,i={enabled:t};A._executeAction(i,"IncludesVariableNamesRowChanged"),A._uiContainer.uiBuilder.set(d,"enabled",t)})),!1===this._eventsAdded&&(this._uiContainer.uiBuilder.addEventCallback(m,(function(e){A._tabWatch=A._uiContainer.watch(b.SELECTED_TOOLSTRIP_TAB,r.hitch(A,A._updateToolstripSelect,A._uiContainer)),A._showBusyOverlay();A._executeAction({text:"ImportData",eventType:"valueChanged"},"ImportData")})),this._uiContainer.uiBuilder.addEventCallback(_,(function(e){A._showBusyOverlay();A._executeAction({text:"GenerateScript",eventType:"valueChanged"},"GenerateScript")})),this._uiContainer.uiBuilder.addEventCallback(v,(function(e){A._showBusyOverlay();A._executeAction({text:"GenerateLiveScript",eventType:"valueChanged"},"GenerateLiveScript")})),this._uiContainer.uiBuilder.addEventCallback(y,(function(e){A._showBusyOverlay();A._executeAction({text:"GenerateFunction",eventType:"valueChanged"},"GenerateFunction")})),C&&(this._uiContainer.uiBuilder.addEventCallback(C,(function(e){var t=A._uiContainer.uiBuilder.get(e.id,"tag"),i=A._getMousePosition(t),n={offsetX:i.x,offsetY:i.y,windowX:window.screenX,windowY:window.screenY,eventType:"addUnimportableRule"};A._executeAction(n,"AddUnimportableRule"),A.focusTable()})),this._uiContainer.uiBuilder.addEventCallback(T,(function(e){var t=A._uiContainer.uiBuilder.get(e.id,"tag"),i=A._getMousePosition(t);let n=A._getSelectedRuleIndex();var o={offsetX:i.x,offsetY:i.y,index:n,windowX:window.screenX,windowY:window.screenY,eventType:"modifyUnimportableRule"};A._executeAction(o,"ModifyUnimportableRule"),A.focusTable()})),this._uiContainer.uiBuilder.addEventCallback(E,(function(e){A._removeUnimportableRule(e),A.focusTable()})))),i.documentType===this._TEXT_TYPE&&(this._setupDelimiterCB("Tab",this._DELIMITER_INDEX_TAB),this._setupCommaDelimiterCB(),this._setupDelimiterCB("Space",this._DELIMITER_INDEX_SPACE),this._setupDelimiterCB("Semicolon",this._DELIMITER_INDEX_SEMICOLON),this._setupDelimiterCB("Custom",this._DELIMITER_INDEX_CUSTOM),this._setupCustomDelimiter(),this._setupConsecutiveDelimiters(),this._setupDecimalSeparators(),this._setupFWDelimitedRadioButtons());var N=null;N=this._importTool&&this._importTool.getFocusedManager?this._importTool.getFocusedManager().propertyObj.channel:this._IMPORT_TOOL_TESTING_CHANNEL,this._aspectHandles.push(a.after(p,"_handleMenuItemMouseEnter",(function(e){var t=e.target.innerText;t=t.match(A._EXCEL_RANGE_FORMATTING_REGEX);var i=w.convertExcelRangeToMATLAB(t[0])[0],n=N+"/HoverSelection";l.publish(n,i)}),!0)),this._aspectHandles.push(a.after(p,"closeMenu",(function(e){var t=N+"/HoverSelection";l.publish(t,null)}),!0)),u&&this._aspectHandles.push(a.after(u,"_setStateClass",(function(e){var t=N+"/HeaderRowHighlight";u.hovering?l.publish(t,!0):l.publish(t,!1)}),!0)),this._eventsAdded=!0}},_updateToolstripSelect:function(e){this._isImportCurrentlySelectedToolstripTab(e)||(this._closePopupMenu(),this._tabWatch&&this._tabWatch.remove())},_isImportCurrentlySelectedToolstripTab:function(e){return e.toolstrip.selectedTab===e.uiBuilder.tagToId(this._tagPrefix+"ImportTabGroup.matlabTab")},_getMousePosition:function(e){var t=this._uiContainer.uiBuilder.widgetByTag(e);return C.getNodePosition(t.domNode)},_showBusyOverlay:function(){this._busyOverlay=new m(m.SIZE.SMALL);var e,t=this._importType;t===this._TEXT_TYPE?(e=document.getElementById("textImportTool"))||(e=document.getElementsByClassName("TextImportWidget")[0]):t===this._SPREADSHEET_TYPE&&((e=document.getElementById("spreadsheetImportTool"))||(e=document.getElementsByClassName("SpreadsheetImportWidget")[0])),e&&(this._busyOverlay.set("target",e),this._busyOverlay.show())},_setupDelimiterCB:function(e,t){var i=t,n=this._uiContainer.uiBuilder.tagToId("TextImportTabGroup.matlabTab.ImportDelimiterDropDown."+e);if(n){var o=this;this._uiContainer.uiBuilder.set(n,"selected",!1),this._uiContainer.uiBuilder.addPropertySetCallback(n,(function(e){var t=e.newValue;o.applyDelimiterChange(i,t)}))}},_createFixedWidthUI:function(e){var t=this._uiContainer.lastSelectedDocument._focusedSheet.document;if(!S.isFixedWidthUI(t)){var i=this._uiContainer._documentLayoutGetter().referenceWidth;S.initFixedWidthUI(e,i,t)}},_removeFixedWIdthUI:function(e){try{var t=this._uiContainer.lastSelectedDocument._focusedSheet&&this._uiContainer.lastSelectedDocument._focusedSheet.document;S.isFixedWidthUI(t)&&S.removeFixedWidthUI(e,t)}catch(e){}},applyDelimiterChange:function(e,t){this._delimiter[e]=t;var i={text:this._generateDelimiter(this._delimiter)};this._executeAction(i,"DelimiterChanged")},_setupCommaDelimiterCB:function(){var e=this._uiContainer.uiBuilder.tagToId("TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Comma");e&&this._uiContainer.uiBuilder.addPropertySetCallback(e,function(e){!0===e.newValue&&","===this._decimalSeparator?this._handleDelimConflictWithDecimalSep():this.applyDelimiterChange(this._DELIMITER_INDEX_COMMA,e.newValue)}.bind(this))},_handleDelimConflictWithDecimalSep:function(){var e=this;g.displayConfirmDialog(I.closeDialogTitle,I.commaSeparatorDelimiterConflict,{icon:"question",buttonText:[A.ok,A.cancel],closeCallback:function(t){1===t.response?e.applyDelimiterChange(e._DELIMITER_INDEX_COMMA,!0):e._updateDelimiter(e._delimiter,e._customDelimiter,e._uiContainer)}})},_onTextFileTypeChange:function(e,t){if(!0===e.newValue){var i={text:t};this._executeAction(i,"TextFileTypeChanged")}},_onDecimalSeparatorChange:function(e,t,i){if(!0===e.newValue)if(","===t&&!0===this._delimiter[1]){var n=this;i(I.closeDialogTitle,I.commaSeparatorConflict,{icon:"question",buttonText:[A.ok,A.cancel],closeCallback:function(e){1===e.response?n._applyDecimalSeparatorChange(t):n._updateDecimalSeparator(".",n._uiContainer)}})}else this._applyDecimalSeparatorChange(t)},_applyDecimalSeparatorChange:function(e){var t={text:e};this._executeAction(t,"DecimalSeparatorChanged")},_setupCustomDelimiter:function(){var e=this,t=this._uiContainer.uiBuilder.tagToId("TextImportTabGroup.matlabTab.ImportDelimiterDropDown.EnterDelimiter");void 0!==t&&(this._uiContainer.uiBuilder.set(t,"text",""),!1===this._eventsAdded&&this._uiContainer.uiBuilder.addEventCallback(t,(function(i){if("commit"===i.eventType){var n={text:[i.value]};e._executeAction(n,"DelimiterChanged"),setTimeout(r.hitch(e,(function(){e._uiContainer.uiBuilder.set(t,"text","")})),0)}})))},_setupConsecutiveDelimiters:function(){var e=this,t=this._uiContainer.uiBuilder.tagToId("TextImportTabGroup.matlabTab.ConsecutiveDelimiters");this._uiContainer.uiBuilder.addPropertySetCallback(t,(function(t){var i={text:t.newValue};e._executeAction(i,"ConsecutiveDelimiterRuleChanged")}))},_setupFWDelimitedRadioButtons:function(){var e=this,t=this._uiContainer.uiBuilder.tagToId("DelimitedRadioButton"),i=this._uiContainer.uiBuilder.tagToId("FixedWidthRadioButton");t&&i&&(this._uiContainer.uiBuilder.addPropertySetCallback(t,(function(t){e._onTextFileTypeChange(t,"delimited")})),this._uiContainer.uiBuilder.addPropertySetCallback(i,(function(t){e._onTextFileTypeChange(t,"fixedwidth")})))},_setupDecimalSeparators:function(){var e=this,t=this._uiContainer.uiBuilder.tagToId("TextImportTabGroup.matlabTab.PeriodDecimalSeparator");this._uiContainer.uiBuilder.addPropertySetCallback(t,(function(t){e._onDecimalSeparatorChange(t,".",r.hitch(g,"displayConfirmDialog"))}));var i=this._uiContainer.uiBuilder.tagToId("TextImportTabGroup.matlabTab.CommaDecimalSeparator");this._uiContainer.uiBuilder.addPropertySetCallback(i,(function(t){e._onDecimalSeparatorChange(t,",",r.hitch(g,"displayConfirmDialog"))}))},_setupTableOutputOptions:function(){var e=this,t=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"Import.TableOptions.AllowAllCharacters");this._uiContainer.uiBuilder.addPropertySetCallback(t,(function(t){var i={text:!t.newValue};e._executeAction(i,"ValidVariableNamesChanged")}));var i=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"Import.TableOptions.LimitCharacters");this._uiContainer.uiBuilder.addPropertySetCallback(i,(function(t){var i={text:t.newValue};e._executeAction(i,"ValidVariableNamesChanged")}));var n=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"Import.RowTimes.UseTimesFromColumn");this._uiContainer.uiBuilder.set(n,"selected",!0);var o=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"UseTimesFromColumnCB");this._uiContainer.uiBuilder.addPropertySetCallback(n,(function(t){if(e._uiContainer.uiBuilder.set(o,"enabled",t.newValue),t.newValue){var i={text:e._uiContainer.uiBuilder.get(o,"selectedItem")};e._executeAction(i,"RowTimesColumnChanged")}})),o&&this._uiContainer.uiBuilder.addPropertySetCallback(o,(function(t){var i={text:t.newValue};e._executeAction(i,"RowTimesColumnChanged")}));var a=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"Import.RowTimes.GenerateTimes"),s=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ConfigureRowTimes");this._uiContainer.uiBuilder.set(s,"enabled",!1),this._uiContainer.uiBuilder.addPropertySetCallback(a,(function(t){if(e._uiContainer.uiBuilder.set(s,"enabled",t.newValue),t.newValue){var i={eventType:"ConfigureRowTimes",offsetX:0,offsetY:0,windowX:window.screenX,windowY:window.screenY,buttonPressed:!1};e._executeAction(i,"ConfigureRowTimes")}})),s&&this._uiContainer.uiBuilder.addEventCallback(s,(function(t){var i=e._getMousePosition(e._tagPrefix+"TableOptions"),n={eventType:"ConfigureRowTimes",offsetX:i.x,offsetY:i.y,windowX:window.screenX,windowY:window.screenY,buttonPressed:!0};e._executeAction(n,"ConfigureRowTimes"),setTimeout(r.hitch(e,(function(){var t=h.getEnclosingWidget(document.querySelector("[data-tag='"+e._tagPrefix+"Import.TableOptions']"));t&&t._focusChange()})),100)}));var l=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"Import.TableOptions");if(void 0!==l){var c=this._uiContainer.uiBuilder.addEventCallback(l,(function(t){if("onOpen"===t.eventType){var i=e._uiContainer.uiBuilder.widgetByTag(e._tagPrefix+"UseTimesFromColumnCB");i&&void 0===i.isMenuOpen&&(i.isMenuOpen=function(){return!1},e._popupEventRemover())}}));this._popupEventRemover=c&&c.remove}},_updateDTDurationColumns:function(e,t){Array.isArray(e)||(e=[e]);for(var i=[],n=0;n<e.length;n++){var o={label:e[n],value:e[n]};i[n]=o}var r=t.uiBuilder.tagToId(this._tagPrefix+"UseTimesFromColumnCB"),a=t.uiBuilder.get(r,"selectedItem");if(t.uiBuilder.set(r,"items",i),e.indexOf(a)>=0?t.uiBuilder.set(r,"selectedItem",a):t.uiBuilder.set(r,"selectedItem",e[0]),0===e.length){var s=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"Import.RowTimes.GenerateTimes");this._uiContainer.uiBuilder.set(s,"selected",!0);var l=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"Import.RowTimes.UseTimesFromColumn");this._uiContainer.uiBuilder.set(l,"enabled",!1)}this._getOutputTypeAndUpdateTableOptions(t)},_getOutputTypeAndUpdateTableOptions:function(e){var t=e.uiBuilder.tagToId(this._tagPrefix+"OutputVariableType"),i=e.uiBuilder.get(t,"selectedItem"),n="table"===i,o="timetable"===i;this._enableDisableTableOptions(n,o)},_updateRowTimesDescriptions:function(e,t){var i,n=t.uiBuilder.tagToId(this._tagPrefix+"Import.RowTimes.UseTimesFromColumn"),o=t.uiBuilder.tagToId(this._tagPrefix+"Import.RowTimes.GenerateTimes"),r=!1,a="";if("samplerate"===e.rowTimesType)a=s.substitute(I.toolstripRowTimesSampleRate,{value:e.rowTimesValue});else if(i=1===e.rowTimesValue?"toolstripRowTimesTimeStepSingle_"+e.rowTimesUnits:"toolstripRowTimesTimeStepMulti_"+e.rowTimesUnits,a=s.substitute(I.toolstripRowTimesTimeStep,{value:e.rowTimesValue,units:I[i]}),"column"===e.rowTimesType){var l=t.uiBuilder.tagToId(this._tagPrefix+"UseTimesFromColumnCB");t.uiBuilder.set(l,"selectedItem",e.rowTimesColumn),r=!0}t.uiBuilder.set(n,"selected",r),t.uiBuilder.set(o,"selected",!r),this._getOutputTypeAndUpdateTableOptions(t),a=a+"\n"+s.substitute(I.toolstripRowTimesStartTime,{value:e.rowTimesStart}),t.uiBuilder.set(o,"description",a)},_addWidget:function(e,t){var i=t[0];this._aspectHandles.push(a.after(i,"widgetInitialized",r.hitch(this,this._addToContainer,i)))},_generateDelimiter:function(e){var t=[];return!0===e[this._DELIMITER_INDEX_TAB]&&t.push("\t"),!0===e[this._DELIMITER_INDEX_COMMA]&&t.push(","),!0===e[this._DELIMITER_INDEX_SPACE]&&t.push(" "),!0===e[this._DELIMITER_INDEX_SEMICOLON]&&t.push(";"),!0===e[this._DELIMITER_INDEX_CUSTOM]&&null!==this._customDelimiter&&t.push(this._customDelimiter),t},_addCloseEventListener:function(e,t){t.watch(_.IS_OPEN,r.hitch(this,this._handleWidgetClose,e))},_handleWidgetClose:function(e,t,i,n){i&&!n&&(this._uiContainer._removeFromLayout(e.id),this._importTool&&this._importTool.removeDataSource&&this._importTool.removeDataSource(e))},_getDocumentChildProperties:function(e){var i=new _({documentType:e.getWidgetType(),title:e.getWidgetTitle(),closable:!0,data:e.getWidgetTitle()}),n=this;return i.canClose=function(){var e=new t,o={closeCallback:function(t){1===t.response?e.resolve():e.reject()}},r=n._getResolvedFileName(i.title);return g.displayConfirmDialog(I.closeDialogTitle,s.substitute(I.close,{0:r}),o),e.promise},i.documentType=e.getWidgetType(),i},_getResolvedFileName:function(e){var t=e;return t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},_updateToolstripStyles:function(e){var t=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"SelectionRange"),i=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"VariableNamesRow"),n=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"SelectionSection");void 0!==t&&this._uiContainer.uiBuilder.set(t,"width",this._TOOLSTRIP_SELECTIONSECTION_WIDTH),void 0!==i&&this._uiContainer.uiBuilder.set(i,"width",this._TOOLSTRIP_SELECTIONSECTION_WIDTH),void 0!==n&&this._uiContainer.uiBuilder.set(n,"horizontalAlignment","-webkit-right")},_updateToolstripCallbacks:function(){var e=this._importTool.getActions(),t=this;e.forEach((function(e){"OutputVariableTypeChanged"===e.id||"OutputVariableNameChanged"===e.id||"ImportData"===e.id||"GenerateScript"===e.id||"GenerateFunction"===e.id||"GenerateLiveScript"===e.id||"RowTimesColumnChanged"===e.id||"SelectionChanged"===e.id?e.callback=function(e){}:e.callback=function(i){t._toolstripActionCallback(i,e.id)}}))},_toolstripActionCallback:function(e,t){var i=this;i.requestTimer&&clearTimeout(i.requestTimer),i.requestTimer=setTimeout((function(){i._executeAction(e,t)}),100)},_executeAction:function(e,t){var i=this;if(this._importTool&&this._importTool.getFocusedManager){var n,o=this._importTool.getFocusedManager().actionDataService.getAction(t);o.addEventListener("actionStatusChanged",n=function(e){var t=e.data;if(i._busyOverlay&&i._busyOverlay.hide&&i._busyOverlay.hide(),o.removeEventListener("actionStatusChanged",n),"error"===t.status)g.displayAlertDialog(I.errorDialogTitle,s.substitute(I.importError,{0:t.message}));else if("success"===t.status&&t.message&&i._isImportCurrentlySelectedToolstripTab(i._uiContainer)){var r=document.createElement("div");r.innerText=t.message,i.ttd=new d({class:"importConfirmation",content:r,onBlur:function(){i._closePopupMenu()}});var a=i._tagPrefix+"ImportColumn";u.open({popup:i.ttd,around:i._uiContainer.uiBuilder.widgetByTag(a).domNode,onCancel:function(){i._closePopupMenu()}}),p.fadeOut({node:i.ttd.domNode,delay:i._IMPORT_NOTIFICATION_DELAY,duration:i._IMPORT_NOTIFICATION_FADE}).play(),setTimeout((function(){i._tabWatch&&i._tabWatch.remove()}),i._IMPORT_NOTIFICATION_DELAY+i._IMPORT_NOTIFICATION_FADE)}}),o.execute(e),i.focusTable()}},_closePopupMenu:function(){u.close(this.ttd)},attachListeners:function(e){var t=this;o(e.domNode,"focusedDocumentChanged",(function(e){t.focusedDataSource=e.dataSource,t._updateToolstripMetaData(e,t._uiContainer)})),o(e.domNode,"metaDataChanged",(function(e){t._updateToolstripMetaData(e.data,t._uiContainer)}))},_updateToolstripMetaData:function(e,t){var i;(this._importType=e.importType,e.importType===this._SPREADSHEET_TYPE?this._tagPrefix=this._SPREADSHEET_PREFIX:this._tagPrefix=this._TEXT_PREFIX,void 0!==e.selectionRange&&this._updateSelectionRange(e.selectionRange,t,e.importType),e.variableNamesRow&&e.rowCount&&this._updateVariableNamesRow(e.variableNamesRow,e.rowCount,t,e.importType),(e.outputVariableName||e.outputVariableNameWarning)&&this._updateOutputVariableName(e.outputVariableName,e.outputVariableNameWarning,t,e.importType),e.outputVariableType&&this._updateOutputVariableType(e.outputVariableType,e.supportedOutputTypes,t,e.importType),e.supportedOutputActions&&this._updateOutputActions(e.supportedOutputActions,t,e.importType),void 0!==e.delimiter)&&(i=void 0!==e.customDelimiter?e.customDelimiter:"",this._updateDelimiter(e.delimiter,i,t));void 0!==e.isFixedWidth&&(!0===e.isFixedWidth?this._createFixedWidthUI(e):this._removeFixedWIdthUI(e),this._updateImportType(e.isFixedWidth,t)),void 0!==e.consecutiveDelimRule&&this._updateConsecutiveDelimRule(e.consecutiveDelimRule,t),void 0!==e.decimalSeparator&&this._updateDecimalSeparator(e.decimalSeparator,t),void 0!==e.unimportableCellRules&&this._updateUnimportableCellRules(e.unimportableCellRules,t,e.importType),void 0!==e.validVariableNames&&this._updateValidVariableNames(e.validVariableNames,t),void 0!==e.includesVariableNamesRow&&this._updateIncludesVariableNamesRow(e.includesVariableNamesRow,t),void 0!==e.dtDurationColumns&&this._updateDTDurationColumns(e.dtDurationColumns,t),void 0!==e.rowTimesType&&this._updateRowTimesDescriptions(e,t)},_updateSelectionRange:function(e,t,i){var n=this._tagPrefix+"SelectionRange",o=t.uiBuilder.tagToId(n),r=t.uiBuilder.tagToId(this._tagPrefix+"ImportSelectionButton");if(o){if(!e){this._uiContainer.uiBuilder.set(o,"text","");var a=this._uiContainer.uiBuilder.widgetByTag(n);return a&&a._textField&&a._textField.set("value",""),this._selectionRangeHistoryMap[this.focusedDataSource]=[],void(this._importTool&&r&&this._uiContainer.uiBuilder.set(r,"enabled",!1))}var s=this,l={value:e,label:e};try{var c=this._selectionRangeHistoryMap[this.focusedDataSource].filter((function(t){return t.value!==e}));c.length<1?(l.label=l.label+" ("+I.selectionHistoryInitalText+")",this.originalHoverSelection=l.value,this._uiContainer.uiBuilder.set(o,"enabled",!1),this._uiContainer.uiBuilder.set(o,"items",[l]),this._uiContainer.uiBuilder.set(o,"text","loading..."),this._uiContainer.uiBuilder.set(o,"text",l.label),this._uiContainer.uiBuilder.set(o,"enabled",!0),this._selectionRangeHistoryMap[this.focusedDataSource]=[l]):(this._selectionTimeout&&clearTimeout(this._selectionTimeout),this._selectionTimeout=setTimeout((function(){Array.isArray(l.label)&&(l.label=l.label[0]),Array.isArray(l.value)&&(l.value=l.value[0]),l.label=l.value===s.originalHoverSelection?l.label+" ("+I.selectionHistoryInitalText+")":l.label,c.unshift(l),s._uiContainer.uiBuilder.set(o,"enabled",!1),s._uiContainer.uiBuilder.set(o,"items",c),s._uiContainer.uiBuilder.set(o,"text","loading..."),s._uiContainer.uiBuilder.set(o,"text",l.label),s._uiContainer.uiBuilder.set(o,"enabled",!0),s._selectionRangeHistoryMap[s.focusedDataSource]=c}),1e3)),r&&this._uiContainer.uiBuilder.set(r,"enabled",!0)}catch(e){}}},_updateVariableNamesRow:function(e,t,i,n){var o=i.uiBuilder.tagToId(this._tagPrefix+"VariableNamesRow");this._uiContainer.uiBuilder.set(o,"maximum",t),this._uiContainer.uiBuilder.set(o,"value",e)},_updateOutputVariableName:function(e,t,i,n){var o=i.uiBuilder.tagToId(this._tagPrefix+"OutputVariableName");this._uiContainer.uiBuilder.set(o,"text",e),t&&t.length>0?(this._uiContainer.uiBuilder.set(o,"validationState","error"),this._uiContainer.uiBuilder.set(o,"errorText",t)):this._uiContainer.uiBuilder.set(o,"validationState","normal")},_configureOutputTypeCombo:function(e,t){for(var i=Array.isArray(e)?e:[e],n=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"OutputVariableType"),o=!1,r=!1,a=[],s=0;s<i.length;s++){var l,c=i[s];switch(c===t&&(o=!0),c){case"table":l=I.OutputTypeTable,r=!0;break;case"timetable":l=I.OutputTypeTimeTable;break;case"columnvector":l=I.OutputTypeColumnVectors;break;case"stringarray":l=I.OutputTypeStringArray;break;case"numericarray":l=I.OutputTypeNumericMatrix;break;case"cellarray":l=I.OutputTypeCellArray;break;default:console.error("Unsupported output type: "+c)}a[s]={label:l,value:c}}return this._uiContainer.uiBuilder.set(n,"items",a),o?t:r?this._DEFAULT_OUTPUT_TYPE:i[0]},_updateOutputVariableType:function(e,t,i,n){if(t&&(e=this._configureOutputTypeCombo(t,e)),i.uiBuilder){var o=i.uiBuilder.tagToId(this._tagPrefix+"OutputVariableType");this._uiContainer.uiBuilder.set(o,"selectedItem",e);var r="table"===e,a="timetable"===e,s="columnvector"===e,l=i.uiBuilder.tagToId(this._tagPrefix+"OutputVariableName");this._uiContainer.uiBuilder.set(l,"enabled",!s),this._enableDisableTableOptions(r,a);var c=i.uiBuilder.tagToId(this._tagPrefix+"VariableNamesRow");this._uiContainer.uiBuilder.set(c,"enabled",r||a||s);var d=i.uiBuilder.tagToId(this._tagPrefix+"IncludesVarNamesRow");this._uiContainer.uiBuilder.set(d,"enabled",r||a||s)}},_enableDisableTableOptions:function(e,t){var i=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"TableOptions");this._uiContainer.uiBuilder.set(i,"enabled",e||t),t?this._uiContainer.uiBuilder.set(i,"textOverride",I.toolstripTimetableOptions):this._uiContainer.uiBuilder.set(i,"textOverride",I.toolstripTableOptions);var n=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"Import.RowTimes.UseTimesFromColumn");this._uiContainer.uiBuilder.set(n,"enabled",t);var o=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"Import.RowTimes.GenerateTimes");this._uiContainer.uiBuilder.set(o,"enabled",t);var r=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"UseTimesFromColumnCB"),a=this._uiContainer.uiBuilder.get(r,"items"),s=a&&a.length>0,l=this._uiContainer.uiBuilder.get(n,"selected");this._uiContainer.uiBuilder.set(n,"enabled",t&&s),this._uiContainer.uiBuilder.set(r,"enabled",t&&l&&s);var c=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ConfigureRowTimes"),d=this._uiContainer.uiBuilder.get(o,"selected");this._uiContainer.uiBuilder.set(c,"enabled",t&&d)},_updateOutputActions:function(e,t,i){var n=!0;(Array.isArray(e)?e:[e]).includes("codegen")||(n=!1);var o=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ImportTabGroup.matlabTab.ImportDropDown.GenerateScript"),r=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ImportTabGroup.matlabTab.ImportDropDown.GenerateLiveScript"),a=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ImportTabGroup.matlabTab.ImportDropDown.GenerateFunction");t.uiBuilder.set(o,"enabled",n),t.uiBuilder.set(r,"enabled",n),t.uiBuilder.set(a,"enabled",n)},_updateImportType:function(e,t){if(t.uiBuilder){var i=t.uiBuilder.tagToId("DelimitedRadioButton"),n=t.uiBuilder.tagToId("FixedWidthRadioButton");!0===e?(this._uiContainer.uiBuilder.set(i,"selected",!1),this._uiContainer.uiBuilder.set(n,"selected",!0)):(this._uiContainer.uiBuilder.set(i,"selected",!0),this._uiContainer.uiBuilder.set(n,"selected",!1));var o=t.uiBuilder.tagToId("TextImportDelimiterDropDown");this._uiContainer.uiBuilder.set(o,"enabled",!e);var r=t.uiBuilder.tagToId("TextImportDelimiterOptionsDropDown");this._uiContainer.uiBuilder.set(r,"enabled",!e)}},_updateConsecutiveDelimRule:function(e,t){var i=t.uiBuilder.tagToId("TextImportTabGroup.matlabTab.ConsecutiveDelimiters");"join"===e?this._uiContainer.uiBuilder.set(i,"selected",!0):this._uiContainer.uiBuilder.set(i,"selected",!1)},_updateDecimalSeparator:function(e,t){var i;this._decimalSeparator=e,i="."===e?t.uiBuilder.tagToId("TextImportTabGroup.matlabTab.PeriodDecimalSeparator"):t.uiBuilder.tagToId("TextImportTabGroup.matlabTab.CommaDecimalSeparator"),void 0!==this._decimalSepHandlerPeriod&&(this._decimalSepHandlerPeriod.pause(),this._decimalSepHandlerComma.pause()),this._uiContainer.uiBuilder.set(i,"selected",!0),void 0!==this._decimalSepHandlerPeriod&&(this._decimalSepHandlerPeriod.resume(),this._decimalSepHandlerComma.resume())},_updateDelimiter:function(e,t,i){var n=[i.uiBuilder.tagToId("TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Tab"),i.uiBuilder.tagToId("TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Comma"),i.uiBuilder.tagToId("TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Space"),i.uiBuilder.tagToId("TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Semicolon"),i.uiBuilder.tagToId("TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Custom")];this._delimiter=[!1,!1,!1,!1,!1];for(var o=0;o<e.length;o++)if("\\t"===e[o]||"\t"===e[o])this._uiContainer.uiBuilder.set(n[this._DELIMITER_INDEX_TAB],"selected",!0),this._delimiter[this._DELIMITER_INDEX_TAB]=!0;else if(","===e[o])this._uiContainer.uiBuilder.set(n[this._DELIMITER_INDEX_COMMA],"selected",!0),this._delimiter[this._DELIMITER_INDEX_COMMA]=!0;else if(" "===e[o])this._uiContainer.uiBuilder.set(n[this._DELIMITER_INDEX_SPACE],"selected",!0),this._delimiter[this._DELIMITER_INDEX_SPACE]=!0;else if(";"===e[o])this._uiContainer.uiBuilder.set(n[this._DELIMITER_INDEX_SEMICOLON],"selected",!0),this._delimiter[this._DELIMITER_INDEX_SEMICOLON]=!0;else{var r=!0;this._uiContainer.uiBuilder.set(n[this._DELIMITER_INDEX_CUSTOM],"selected",!0),this._delimiter[this._DELIMITER_INDEX_CUSTOM]=!0,this._customDelimiter=e[o]}for(var a=0;a<this._delimiter.length;a++)!1===this._delimiter[a]&&this._uiContainer.uiBuilder.set(n[a],"selected",!1);var s=n[this._DELIMITER_INDEX_CUSTOM];t&&t.length&&t.length>0?(this._uiContainer.uiBuilder.set(s,"enabled",!0),this._uiContainer.uiBuilder.set(s,"text",I.toolstripCustomDelimiter+" ("+t+")")):r||(this._uiContainer.uiBuilder.set(s,"enabled",!1),this._uiContainer.uiBuilder.set(s,"text",I.toolstripCustomDelimiter))},_getValidVarNameWidgets:function(e){return[e.uiBuilder.tagToId(this._tagPrefix+"Import.TableOptions.AllowAllCharacters"),e.uiBuilder.tagToId(this._tagPrefix+"Import.TableOptions.LimitCharacters")]},_updateValidVariableNames:function(e,t){var i=this._getValidVarNameWidgets(t);!0===e?this._uiContainer.uiBuilder.set(i[1],"selected",!0):this._uiContainer.uiBuilder.set(i[0],"selected",!0)},_updateIncludesVariableNamesRow:function(e,t){var i=t.uiBuilder.tagToId(this._tagPrefix+"IncludesVarNamesRow");t.uiBuilder.set(i,"selected",!e)},_updateUnimportableCellRules:function(e,t,i){var n=this._tagPrefix+"UnimportableCellRules",o=t.uiBuilder.tagToId(n),r=[],a=!1;for(var s in void 0===e.length&&(e=[e]),e){var l=e[s],c={label:l.HumanReadable,type:y.LIST_ITEM,value:l.index};r.push(c),l.IsUnimportable&&(a=!0)}if(!a){var d={tag:"DefaultUnimportableRuleListItem",label:I.defaultUnimportableRule,type:y.LIST_ITEM,value:this._DEFAULT_UNIMPORTABLE_RULE,enabled:!1};r.push(d)}t.uiBuilder.set(o,"items",r),this._setRuleButtonsEnabled(i,!1,!1)},_setRuleButtonsEnabled:function(e,t,i){var n=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"RemoveUnimportableRule");this._uiContainer.uiBuilder.set(n,"enabled",t);var o=this._uiContainer.uiBuilder.tagToId(this._tagPrefix+"ModifyUnimportableRule");this._uiContainer.uiBuilder.set(o,"enabled",i)},_getSelectedRuleIndex:function(){let e=this._tagPrefix+"UnimportableCellRules",t=this._uiContainer.uiBuilder.widgetByTag(e);return 1===t.items.length?t.items[0].value:t.value[0]},_removeUnimportableRule:function(e){let t=this._getSelectedRuleIndex();if(t!==this._DEFAULT_UNIMPORTABLE_RULE){let e={index:t,eventType:"removeUnimportableRule"};this._executeAction(e,"RemoveUnimportableRule")}},_rulesMouseListener:function(e){if(e.srcElement.classList.contains("mwListItem")){let r=this._tagPrefix+"UnimportableCellRules";var t=this._getSelectedRuleIndex(),i=t!==this._DEFAULT_UNIMPORTABLE_RULE;if(this._setRuleButtonsEnabled(this._importType,i,!0),2===e.detail){var n=this._getMousePosition(r),o={offsetX:n.x,offsetY:n.y,windowX:window.screenX,windowY:window.screenY,index:t,eventType:"modifyUnimportableRule"};this._executeAction(o,"ModifyUnimportableRule")}}this.focusTable()},focusTable:function(){this._uiContainer.lastSelectedDocument._focusedSheet.document.focusTable()},destroyWidget:function(e,t){if(this.rulesDblClickListener){var i=this._uiContainer.uiBuilder.widgetByTag(this._tagPrefix+"UnimportableCellRules");i.domNode.removeEventListener("click",this.rulesDblClickListener)}this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(211),i(210),i(206),i(204),i(214),i(8360),i(538)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return{initFixedWidthUI:function(e,i,n){var a=this._getSingleCharWidth(),s=Math.ceil(a),l=s-a,c=n;try{var d={type:"setSingleCharWidth",width:s};c.provider.dispatchEventToServer(c,d)}catch(e){console.log(e)}var u=n.domNode;t.add(u,"FixedWidthTable");var h=c.getViewByType("TextTableView");h.setFixedWidthContext();var p=Array.isArray(e.variableWidths)?e.variableWidths:[e.variableWidths],f=Math.min.apply(null,p)*s;h.resetUserManualColumnWidths(),h._setColumnWidth({columnWidth:f}),u.style.letterSpacing=l+"px",this.selectorWidget=new r(s,i,u,p);var g=this;this._widthsChangeHandler=o.after(this.selectorWidget,"widthsChanged",(function(){var e={variableWidths:g.selectorWidget.variableWidths},t=Math.min.apply(null,g.selectorWidget.variableWidths)*s;h._setColumnWidth({columnWidth:t}),h._dispatchActionToServer("VariableWidthsChanged",e,!1)}))},removeFixedWidthUI:function(e,t){t.domNode.classList.remove("FixedWidthTable");var i=t.getViewByType("text");i.removeFixedWidthContext(),i._setColumnWidth({columnWidth:72}),this.selectorWidget.destroyRecursive(),this._widthsChangeHandler&&this._widthsChangeHandler.remove(),this._widthsChangeHandler=null},_getSingleCharWidth:function(){var t=e.create("span",{innerHTML:"0",className:"tempSpan"});t.style.fontFamily="courier,sans-serif",t.style.fontSize="12px",e.place(t,document.body);var i=t.getBoundingClientRect().width;return e.destroy(t),i},isFixedWidthUI:function(e){var t=!1;return e&&e.domNode&&(t=e.domNode.classList.contains("FixedWidthTable")),t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(215),i(216),i(222),i(8361)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("importtool_client/FixedWidthImportTool/FixedWidthSelectorWidget",[i,n],{templateString:r,activeSplitter:null,slider:null,_WIDGET_CLASS_ID:"Slider",_TOOLTIP_WIDTH:7,_IMPORT_TOOL_HEADER_HEIGHT:69,_TABLE_BORDER_WIDTH:1,_TABLE_SCROLL_NODE:"mw-table-inner-wrapper mw-scrolling-div",_TABLE_HEADER_NODE:"mw-table-header-wrapper",constructor:function(e,t,i,n){var o=i.children[0];this.stepSize=e,this.numSteps=t/e,this.documentNode=o,this.variableWidths=n.slice(),this.splitterToBeDeleted=null;for(var r=0;r<n.length;r++)n[r]=(n[r-1]||0)+n[r];this.splitterLocations=[0].concat(n),this.tooltipVal=0},postCreate:function(){this._createOverlay()},_createOverlay:function(){var e=this.documentNode.getElementsByClassName(this._TABLE_HEADER_NODE)[0];e.insertBefore(this.rulerOverlayNode,e.lastChild),this.rulerOverlayNode.onmousedown=this._rulerMouseDown.bind(this);var t=this.documentNode.getElementsByClassName(this._TABLE_SCROLL_NODE)[0];t.insertBefore(this.tableOverlay,t.firstChild)},_rulerMouseDown:function(e){this.tableOverlay.classList.add("show");var t=e.x,i=e.y;e.target.style.display="none";var n=document.elementFromPoint(t,i);n=n.childElementCount?n:n.parentElement,e.target.style.display="unset",this.pixelOffset=this.tableOverlay.getBoundingClientRect().left;var o=n.getBoundingClientRect().left,r=Math.round((e.x-o)/this.stepSize),a=o-this.pixelOffset+r*this.stepSize,s=this.splitterLocations[parseInt(n.parentElement.id)]+r;this.splitterToBeDeleted=-1!==this.splitterLocations.slice(1,this.splitterLocations.length-1).indexOf(s)?s:null,this.newSplitter.style.left=a+"px",this.newSplitter.classList.add("show"),this.tooltipVal=s,this.tooltipDiv.innerHTML=this.tooltipVal,this.tooltipDiv.style.left=a-this._TOOLTIP_WIDTH+"px",this.tooltipDiv.classList.add("show"),document.onmousemove=this._newSplitterMouseMove.bind(this),document.onmouseup=this._newSplitterMouseUp.bind(this)},_newSplitterMouseMove:function(e){var t=this.newSplitter,i=this.tooltipDiv,n=parseFloat(t.style.left),o=parseFloat(i.style.left);e.clientX-this.pixelOffset>=n+this.stepSize&&n<=this.splitterLocations[this.splitterLocations.length-1]*this.stepSize-this.stepSize?(t.style.left=n+this.stepSize+"px",this.tooltipDiv.style.left=o+this.stepSize+"px",this.tooltipVal=this.tooltipVal+1):e.clientX-this.pixelOffset<=n-this.stepSize&&n>=0+this.stepSize&&(t.style.left=n-this.stepSize+"px",this.tooltipDiv.style.left=o-this.stepSize+"px",this.tooltipVal=this.tooltipVal-1),this.tooltipDiv.innerHTML=this.tooltipVal},_newSplitterMouseUp:function(){var e=this;this.tooltipDiv.classList.remove("show"),this.tooltipVal=0,document.onmousemove=null,document.onmouseup=null;var t=parseFloat(this.newSplitter.style.left),i=Math.round(t/this.stepSize),n=[];if((n=this.splitterLocations.filter((function(t){return t!==e.splitterToBeDeleted}))).push(i),n=n.sort((function(e,t){return e-t})).filter((function(e,t,i){return t===i.indexOf(e)})),JSON.stringify(this.splitterLocations)!==JSON.stringify(n)){this.splitterLocations=n;for(var o=[],r=1;r<this.splitterLocations.length;r++)o.push(this.splitterLocations[r]-this.splitterLocations[r-1]);this.variableWidths=o,this.widthsChanged()}this.tableOverlay.classList.remove("show"),this.newSplitter.classList.remove("show")},widthsChanged:function(){},destroy:function(){this.rulerOverlayNode.onmousedown=null;var e=this.documentNode.getElementsByClassName(this._TABLE_HEADER_NODE)[0];e.removeChild(this.rulerOverlayNode);var t=this.documentNode.getElementsByClassName(this._TABLE_SCROLL_NODE)[0];t.removeChild(this.tableOverlay),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="FixedWidthSelectorWidget">\n <div id="Slider" class="Slider" data-dojo-attach-point="slider">\n <div class="Ruler" data-dojo-attach-point="ruler">\n </div>\n <div class="RulerOverlay" data-dojo-attach-point="rulerOverlayNode">\n <div class="TooltipDiv" data-dojo-attach-point="tooltipDiv">\n </div>\n <div class="TableOverlay" data-dojo-attach-point="tableOverlay">\n <div class="NewSplitter" data-dojo-attach-point="newSplitter"></div>\n </div>\n</div>\n'},function(e,t,i){e.exports={dialogTitle:"タイトル",toolstripRange:"選択/履歴",toolstripVariableNamesRow:"変数名行",toolstripOutputVariableName:"名前",toolstripOutputVariableType:"タイプ",toolstripImportTitle:"インポート",toolstripImportFileTypeTitle:"ファイル タイプ",toolstripUnimportableCellsTitle:"インポートできないセル",toolstripDelimiterTitle:"区切り記号",toolstripImportedDataTitle:"インポートされた変数",toolstripSelectionTitle:"選択",toolstripImportSelection:"選択の\nインポート",toolstripImportData:"データのインポート",toolstripGenerateScript:"スクリプトの生成",toolstripGenerateLiveScript:"ライブ スクリプトの生成",toolstripGenerateFunction:"関数の生成",toolstripDelimitedFile:"区切り",toolstripFixedWidthFile:"固定幅",toolstripDelimiters:"列区切り記号",toolstripTabDelimiter:"タブ",toolstripCommaDelimiter:"コンマ",toolstripSpaceDelimiter:"スペース",toolstripSemicolonDelimiter:"セミコロン",toolstripCustomDelimiter:"カスタム",toolstripDelimiterOptionsTitle:"区切り記号オプション",toolstripConsecutiveDelimitersHeader:"区切り記号の繰り返しを組み合わせる",toolstripConsecutiveDelimiters:"複数の区切り記号を 1 文字として処理する",toolstripDecimalSeparatorHeader:"小数点の文字",toolstripDecimalSeparatorPeriod:". (ピリオド)",toolstripDecimalSeparatorComma:", (コンマ)",toolstripVariableNamesRowError:"無効な変数名行",toolstripOutputValidVarName:"すべての文字を許可",toolstripOutputValidVarNameToolTip:"オンにすると、変数名ですべての文字が許可されます。オフにすると、変数名は有効な MATLAB 識別子に制限されます。",toolstripVariableNamesTitle:"変数名",toolstripAllowAllCharacters:"変数名ですべての文字を許可",toolstripLimitAllCharacters:"変数名を有効な MATLAB 識別子に制限",toolstripTableOptions:"テーブル オプション",toolstripTimetableOptions:"timetable オプション",toolstripNoVariableNames:"変数名なし",toolstripRowTimesTitle:"行時間",toolstripRowTimesColumn:"ファイルの行時間を使用",toolstripRowTimesDateOrDuration:"datetime 列または duration 列",toolstripRowTimesGenerate:"行時間を指定",toolstripRowTimesConfigure:"構成",toolstripRowTimesTimeStep:"タイム ステップ: ${value} ${units}",toolstripRowTimesSampleRate:"サンプル レート: ${value} Hz",toolstripRowTimesStartTime:"開始時間: ${value}",toolstripRowTimesTimeStepSingle_calyears:"年",toolstripRowTimesTimeStepSingle_calmonths:"月",toolstripRowTimesTimeStepSingle_calweeks:"週",toolstripRowTimesTimeStepSingle_caldays:"日",toolstripRowTimesTimeStepSingle_hours:"時間",toolstripRowTimesTimeStepSingle_minutes:"分",toolstripRowTimesTimeStepSingle_seconds:"秒",toolstripRowTimesTimeStepSingle_milliseconds:"ミリ秒",toolstripRowTimesTimeStepMulti_calyears:"年",toolstripRowTimesTimeStepMulti_calmonths:"月",toolstripRowTimesTimeStepMulti_calweeks:"週",toolstripRowTimesTimeStepMulti_caldays:"日",toolstripRowTimesTimeStepMulti_hours:"時間",toolstripRowTimesTimeStepMulti_minutes:"分",toolstripRowTimesTimeStepMulti_seconds:"秒",toolstripRowTimesTimeStepMulti_milliseconds:"ミリ秒",toosltripAddRuleTT:"新規ルール",toosltripEditRuleTT:"ルールの編集",toosltripDeleteRuleTT:"ルールの削除",close:"${0} を閉じますか?",closeDialogTitle:"インポート ツール",spreadSheetTitle:"スプレッドシート インポート ツールのすべてのファイル",textTitle:"テキスト インポート ツールのすべてのファイル",spreadSheetCollectiveLabel:"スプレッドシート インポート ツールのすべてのファイル",textCollectiveLabel:"テキスト インポート ツールのすべてのファイル",commaSeparatorConflict:"コンマを小数点の記号と区切り記号の両方にすることはできません。[OK] をクリックすると、コンマ区切り記号が解除されます。",commaSeparatorDelimiterConflict:"コンマを小数点の記号と区切り記号の両方にすることはできません。[OK] をクリックすると、小数点の記号がドットに設定されます。",defaultUnimportableRule:"既定: インポートできないセルを NaN に置換",OutputTypeTable:"table",OutputTypeColumnVectors:"列ベクトル",OutputTypeNumericMatrix:"数値行列",OutputTypeStringArray:"string 配列",OutputTypeCellArray:"cell 配列",OutputTypeTimeTable:"timetable",importError:"インポート操作に失敗しました:\n\n ${0}",errorDialogTitle:"インポート ツール",selectionHistoryInitalText:"初期値"}},function(e,t,i){e.exports={dialogTitle:"제목",toolstripRange:"선택 범위/내역",toolstripVariableNamesRow:"변수 이름 행",toolstripOutputVariableName:"이름",toolstripOutputVariableType:"유형",toolstripImportTitle:"가져오기",toolstripImportFileTypeTitle:"파일 형식",toolstripUnimportableCellsTitle:"가져올 수 없는 셀",toolstripDelimiterTitle:"구분 기호",toolstripImportedDataTitle:"가져온 변수",toolstripSelectionTitle:"선택",toolstripImportSelection:"선택 항목\n가져오기",toolstripImportData:"데이터 가져오기",toolstripGenerateScript:"스크립트 생성",toolstripGenerateLiveScript:"라이브 스크립트 생성",toolstripGenerateFunction:"함수 생성",toolstripDelimitedFile:"구분됨",toolstripFixedWidthFile:"고정 너비",toolstripDelimiters:"열 구분 기호",toolstripTabDelimiter:"탭",toolstripCommaDelimiter:"쉼표",toolstripSpaceDelimiter:"공백",toolstripSemicolonDelimiter:"세미콜론",toolstripCustomDelimiter:"사용자 지정",toolstripDelimiterOptionsTitle:"구분 기호 옵션",toolstripConsecutiveDelimitersHeader:"반복 구분 기호 결합",toolstripConsecutiveDelimiters:"여러 구분 기호를 하나로 처리",toolstripDecimalSeparatorHeader:"소수점 구분 기호",toolstripDecimalSeparatorPeriod:".(마침표)",toolstripDecimalSeparatorComma:",(쉼표)",toolstripVariableNamesRowError:"유효하지 않은 변수 이름 행임",toolstripOutputValidVarName:"모든 문자 허용",toolstripOutputValidVarNameToolTip:"변수 이름에 모든 문자를 허용하려면 선택하십시오. 변수 이름을 유효한 Matlab 식별자로 제한하려면 선택 취소하십시오.",toolstripVariableNamesTitle:"변수 이름",toolstripAllowAllCharacters:"변수 이름에 모든 문자 허용",toolstripLimitAllCharacters:"변수 이름을 유효한 MATLAB 식별자로 제한",toolstripTableOptions:"테이블 옵션",toolstripTimetableOptions:"타임테이블 옵션",toolstripNoVariableNames:"변수 이름 없음",toolstripRowTimesTitle:"행 시간값",toolstripRowTimesColumn:"파일의 행 시간값 사용",toolstripRowTimesDateOrDuration:"datetime형 또는 duration형 열",toolstripRowTimesGenerate:"행 시간값 지정",toolstripRowTimesConfigure:"구성",toolstripRowTimesTimeStep:"시간 스텝: ${value}${units}",toolstripRowTimesSampleRate:"샘플 레이트: ${value}Hz",toolstripRowTimesStartTime:"시작 시간: ${value}",toolstripRowTimesTimeStepSingle_calyears:"년",toolstripRowTimesTimeStepSingle_calmonths:"개월",toolstripRowTimesTimeStepSingle_calweeks:"주",toolstripRowTimesTimeStepSingle_caldays:"일",toolstripRowTimesTimeStepSingle_hours:"시간",toolstripRowTimesTimeStepSingle_minutes:"분",toolstripRowTimesTimeStepSingle_seconds:"초",toolstripRowTimesTimeStepSingle_milliseconds:"밀리초",toolstripRowTimesTimeStepMulti_calyears:"년",toolstripRowTimesTimeStepMulti_calmonths:"개월",toolstripRowTimesTimeStepMulti_calweeks:"주",toolstripRowTimesTimeStepMulti_caldays:"일",toolstripRowTimesTimeStepMulti_hours:"시간",toolstripRowTimesTimeStepMulti_minutes:"분",toolstripRowTimesTimeStepMulti_seconds:"초",toolstripRowTimesTimeStepMulti_milliseconds:"밀리초",toosltripAddRuleTT:"새 규칙",toosltripEditRuleTT:"규칙 편집",toosltripDeleteRuleTT:"규칙 삭제",close:"${0}을(를) 닫으시겠습니까?",closeDialogTitle:"가져오기 툴",spreadSheetTitle:"스프레드시트 가져오기 툴의 모든 파일",textTitle:"텍스트 가져오기 툴의 모든 파일",spreadSheetCollectiveLabel:"스프레드시트 가져오기 툴의 모든 파일",textCollectiveLabel:"텍스트 가져오기 툴의 모든 파일",commaSeparatorConflict:"쉼표를 소수점 구분 기호(decimal separator)와 구분 기호(delimiter) 모두로 사용할 수는 없습니다. [확인]을 누르면 쉼표 구분 기호(delimiter)가 지워집니다.",commaSeparatorDelimiterConflict:"쉼표를 소수점 구분 기호(decimal separator)와 구분 기호(delimiter) 모두로 사용할 수는 없습니다. [확인]을 누르면 소수점 구분 기호가 점으로 설정됩니다.",defaultUnimportableRule:"디폴트 규칙: 가져올 수 없는 셀을 NaN으로 바꾸기",OutputTypeTable:"테이블",OutputTypeColumnVectors:"열 벡터",OutputTypeNumericMatrix:"숫자형 행렬",OutputTypeStringArray:"string형 배열",OutputTypeCellArray:"셀형 배열",OutputTypeTimeTable:"타임테이블",importError:"가져오기 작업이 실패했습니다.\n\n ${0}",errorDialogTitle:"가져오기 툴",selectionHistoryInitalText:"초기"}},function(e,t,i){e.exports={dialogTitle:"标题",toolstripRange:"所选内容/历史记录",toolstripVariableNamesRow:"变量名称行",toolstripOutputVariableName:"名称",toolstripOutputVariableType:"类型",toolstripImportTitle:"导入",toolstripImportFileTypeTitle:"文件类型",toolstripUnimportableCellsTitle:"无法导入的单元格",toolstripDelimiterTitle:"分隔符",toolstripImportedDataTitle:"导入的变量",toolstripSelectionTitle:"所选内容",toolstripImportSelection:"导入\n所选内容",toolstripImportData:"导入数据",toolstripGenerateScript:"生成脚本",toolstripGenerateLiveScript:"生成实时脚本",toolstripGenerateFunction:"生成函数",toolstripDelimitedFile:"分隔文件",toolstripFixedWidthFile:"等宽",toolstripDelimiters:"列分隔符",toolstripTabDelimiter:"制表符",toolstripCommaDelimiter:"逗号",toolstripSpaceDelimiter:"空格",toolstripSemicolonDelimiter:"分号",toolstripCustomDelimiter:"自定义",toolstripDelimiterOptionsTitle:"分隔符选项",toolstripConsecutiveDelimitersHeader:"组合重复的分隔符",toolstripConsecutiveDelimiters:"将多个分隔符视为一个分隔符",toolstripDecimalSeparatorHeader:"小数分隔符",toolstripDecimalSeparatorPeriod:". (句点)",toolstripDecimalSeparatorComma:", (逗号)",toolstripVariableNamesRowError:"变量名称行无效",toolstripOutputValidVarName:"允许所有字符",toolstripOutputValidVarNameToolTip:"选中可允许在变量名称中使用所有字符。取消选中可限制变量名称只能使用有效 Matlab 标识符。",toolstripVariableNamesTitle:"变量名称",toolstripAllowAllCharacters:"允许变量名称中使用所有字符",toolstripLimitAllCharacters:"限制变量名称只能使用有效 MATLAB 标识符",toolstripTableOptions:"表选项",toolstripTimetableOptions:"时间表选项",toolstripNoVariableNames:"无变量名称",toolstripRowTimesTitle:"行时间",toolstripRowTimesColumn:"使用文件中的行时间",toolstripRowTimesDateOrDuration:"日期时间或持续时间列",toolstripRowTimesGenerate:"指定行时间",toolstripRowTimesConfigure:"配置",toolstripRowTimesTimeStep:"时间步: ${value} ${units}",toolstripRowTimesSampleRate:"采样率: ${value} Hz",toolstripRowTimesStartTime:"开始时间: ${value}",toolstripRowTimesTimeStepSingle_calyears:"年",toolstripRowTimesTimeStepSingle_calmonths:"月",toolstripRowTimesTimeStepSingle_calweeks:"周",toolstripRowTimesTimeStepSingle_caldays:"天",toolstripRowTimesTimeStepSingle_hours:"小时",toolstripRowTimesTimeStepSingle_minutes:"分钟",toolstripRowTimesTimeStepSingle_seconds:"秒",toolstripRowTimesTimeStepSingle_milliseconds:"毫秒",toolstripRowTimesTimeStepMulti_calyears:"年",toolstripRowTimesTimeStepMulti_calmonths:"月",toolstripRowTimesTimeStepMulti_calweeks:"周",toolstripRowTimesTimeStepMulti_caldays:"天",toolstripRowTimesTimeStepMulti_hours:"小时",toolstripRowTimesTimeStepMulti_minutes:"分钟",toolstripRowTimesTimeStepMulti_seconds:"秒",toolstripRowTimesTimeStepMulti_milliseconds:"毫秒",toosltripAddRuleTT:"新建规则",toosltripEditRuleTT:"编辑规则",toosltripDeleteRuleTT:"删除规则",close:"关闭 ${0}?",closeDialogTitle:"导入工具",spreadSheetTitle:"电子表格导入工具中的所有文件",textTitle:"文本导入工具中的所有文件",spreadSheetCollectiveLabel:"电子表格导入工具中的所有文件",textCollectiveLabel:"文本导入工具中的所有文件",commaSeparatorConflict:'逗号不能同时为小数分隔符和定界符。点击 "确定" 将清除逗号定界符。',commaSeparatorDelimiterConflict:'逗号不能同时为小数分隔符和定界符。点击 "确定" 会将小数分隔符设置为点。',defaultUnimportableRule:"默认: 用 NaN 替换无法导入的单元格",OutputTypeTable:"表",OutputTypeColumnVectors:"列向量",OutputTypeNumericMatrix:"数值矩阵",OutputTypeStringArray:"字符串数组",OutputTypeCellArray:"元胞数组",OutputTypeTimeTable:"时间表",importError:"导入操作失败:\n\n ${0}",errorDialogTitle:"导入工具",selectionHistoryInitalText:"初始"}},function(e,t,i){e.exports={root:{dialogTitle:"Title",toolstripRange:"Selection/History",toolstripVariableNamesRow:"Variable Names Row",toolstripOutputVariableName:"Name",toolstripOutputVariableType:"Type",toolstripImportTitle:"IMPORT",toolstripImportFileTypeTitle:"FILE TYPE",toolstripUnimportableCellsTitle:"UNIMPORTABLE CELLS",toolstripDelimiterTitle:"DELIMITERS",toolstripImportedDataTitle:"IMPORTED VARIABLE",toolstripSelectionTitle:"SELECTION",toolstripImportSelection:"Import\nSelection",toolstripImportData:"Import Data",toolstripGenerateScript:"Generate Script",toolstripGenerateLiveScript:"Generate Live Script",toolstripGenerateFunction:"Generate Function",toolstripDelimitedFile:"Delimited",toolstripFixedWidthFile:"Fixed Width",toolstripDelimiters:"Column Delimiters",toolstripTabDelimiter:"Tab",toolstripCommaDelimiter:"Comma",toolstripSpaceDelimiter:"Space",toolstripSemicolonDelimiter:"Semicolon",toolstripCustomDelimiter:"Custom",toolstripDelimiterOptionsTitle:"Delimiter Options",toolstripConsecutiveDelimitersHeader:"COMBINE REPEATED DELIMITERS",toolstripConsecutiveDelimiters:"Treat Multiple Delimiters as One",toolstripDecimalSeparatorHeader:"DECIMAL SEPARATOR",toolstripDecimalSeparatorPeriod:". (period)",toolstripDecimalSeparatorComma:", (comma)",toolstripVariableNamesRowError:"Invalid Variable Names Row",toolstripOutputValidVarName:"Allow All Characters",toolstripOutputValidVarNameToolTip:"Check to allow all characters in the Variable Names. Uncheck to limit the Variable Names to be valid Matlab identifiers.",toolstripVariableNamesTitle:"VARIABLE NAMES",toolstripAllowAllCharacters:"Allow all characters in variable names",toolstripLimitAllCharacters:"Limit variable names to be valid MATLAB identifiers",toolstripTableOptions:"Table Options",toolstripTimetableOptions:"Timetable Options",toolstripNoVariableNames:"No Variable Names",toolstripRowTimesTitle:"ROW TIMES",toolstripRowTimesColumn:"Use row times from file",toolstripRowTimesDateOrDuration:"Datetime or duration column",toolstripRowTimesGenerate:"Specify row times",toolstripRowTimesConfigure:"Configure",toolstripRowTimesTimeStep:"Time step: ${value} ${units}",toolstripRowTimesSampleRate:"Sample rate: ${value} Hz",toolstripRowTimesStartTime:"Start time: ${value}",toolstripRowTimesTimeStepSingle_calyears:"year",toolstripRowTimesTimeStepSingle_calmonths:"month",toolstripRowTimesTimeStepSingle_calweeks:"week",toolstripRowTimesTimeStepSingle_caldays:"day",toolstripRowTimesTimeStepSingle_hours:"hour",toolstripRowTimesTimeStepSingle_minutes:"minute",toolstripRowTimesTimeStepSingle_seconds:"second",toolstripRowTimesTimeStepSingle_milliseconds:"millisecond",toolstripRowTimesTimeStepMulti_calyears:"years",toolstripRowTimesTimeStepMulti_calmonths:"months",toolstripRowTimesTimeStepMulti_calweeks:"weeks",toolstripRowTimesTimeStepMulti_caldays:"days",toolstripRowTimesTimeStepMulti_hours:"hours",toolstripRowTimesTimeStepMulti_minutes:"minutes",toolstripRowTimesTimeStepMulti_seconds:"seconds",toolstripRowTimesTimeStepMulti_milliseconds:"milliseconds",toosltripAddRuleTT:"New Rule",toosltripEditRuleTT:"Edit Rule",toosltripDeleteRuleTT:"Delete Rule",close:"Close ${0}?",closeDialogTitle:"Import Tool",spreadSheetTitle:"All Files in SpreadSheet Import Tool",textTitle:"All Files in Text Import Tool",spreadSheetCollectiveLabel:"All Files in SpreadSheet Import Tool",textCollectiveLabel:"All Files in Text Import Tool",commaSeparatorConflict:"Comma cannot be both a decimal separator and a delimiter. Hitting OK will clear the comma delimiter.",commaSeparatorDelimiterConflict:"Comma cannot be both a decimal separator and a delimiter. Hitting OK will set the decimal separator to a dot.",defaultUnimportableRule:"Default: Replace unimportable cells with NaN",OutputTypeTable:"Table",OutputTypeColumnVectors:"Column Vectors",OutputTypeNumericMatrix:"Numeric Matrix",OutputTypeStringArray:"String Array",OutputTypeCellArray:"Cell Array",OutputTypeTimeTable:"Timetable",importError:"Import operation failed:\n\n ${0}",errorDialogTitle:"Import Tool",selectionHistoryInitalText:"initial"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){i.e(0).then((function(){var e=[i(9140)];(function(){}).apply(null,e)})).catch(i.oe)},function(e,t,i){var n,o;n=[i(203),i(8368),i(1649)],o=i.dj.d(n,(function(e,t,i){return e([t],{loadActions:function(e){try{e.actionService.loadActions(i.getActions())}catch(e){}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2624),i(8369),i(8370),i(8371),i(8372),i(467),i(484)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([s],{createWidget:function(e,s,l){var c;this.loadActions(e),e.uiBuilder.createPopupsFromConfig(r),c=null!==document.querySelector(".motwApplication"),"nocodegen"===e.scope?e.addTabGroup(n,c):"rangeonly"===e.scope?e.addTabGroup(o,c):e.addTabGroup(i,c),l.watchForWindow(window,a.LAST_SELECTED,(function(i,n,o){t.updateActions(o,o?e.getChildProperties(o):null)}))},loadActions:function(e){e.actionService.loadActions(t.getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(538)],o=i.dj.d(n,(function(e,t){return{tag:"SpreadsheetImportTabGroup",type:e.TAB_GROUP,children:[{tag:"SpreadsheetImportTabGroup.matlabTab",type:e.TAB,title:t.toolstripImportTitle,mnemonic:"I",children:[{type:e.SECTION,title:t.toolstripSelectionTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[{type:e.LABEL,text:t.toolstripRange,tag:"SpreadsheetRangeLabel"},{type:e.LABEL,text:t.toolstripVariableNamesRow,tag:"SpreadsheetVariableNamesRowLabel"},{type:e.CHECK_BOX,text:t.toolstripNoVariableNames,tag:"SpreadsheetIncludesVarNamesRow"}]},{tag:"SpreadsheetSelectionSection",type:e.COLUMN,width:100,children:[{type:e.COMBO_BOX,text:"",actionId:"SelectionChanged",tag:"SpreadsheetSelectionRange",enabled:!0,editable:!0,mnemonic:"R",items:[]},{type:e.SPINNER,text:"",actionId:"VariableNamesRowChanged",tag:"SpreadsheetVariableNamesRow",enabled:!0,editable:!0,minorStepSize:1,majorStepSize:1,minimum:1,mnemonic:"V",errorText:t.toolstripVariableNamesRowError},{type:e.LABEL,text:"",tag:"SpreadsheetValidVarNameLabel"}]}]},{type:e.SECTION,title:t.toolstripImportedDataTitle,children:[{type:e.COLUMN,horizontalAlignment:"right",extraColumnGap:!0,children:[{type:e.LABEL,text:t.toolstripOutputVariableName,tag:"SpreadsheetOutputVariableNameLabel"},{type:e.LABEL,text:t.toolstripOutputVariableType,tag:"SpreadsheetOutputVariableTypeLabel"},{type:e.LABEL,text:"",tag:"empty1"}]},{tag:"SpreadsheetOutputSection",type:e.COLUMN,children:[{type:e.TEXT_FIELD,text:"",enabled:!0,editable:!0,tag:"SpreadsheetOutputVariableName",actionId:"OutputVariableNameChanged",mnemonic:"N"},{type:e.COMBO_BOX,enabled:!0,editable:!1,tag:"SpreadsheetOutputVariableType",actionId:"OutputVariableTypeChanged",selectedItem:"table",mnemonic:"T",items:[{label:t.OutputTypeTable,value:"table"},{label:t.OutputTypeTimeTable,value:"timetable"},{label:t.OutputTypeColumnVectors,value:"columnvector"},{label:t.OutputTypeNumericMatrix,value:"numericarray"},{label:t.OutputTypeStringArray,value:"stringarray"},{label:t.OutputTypeCellArray,value:"cellarray"}]},{type:e.DROP_DOWN_BUTTON,textOverride:t.toolstripTableOptions,tag:"SpreadsheetTableOptions",popupTag:"SpreadsheetImport.TableOptions",iconOverride:"settings_16"}]}]},{type:e.SECTION,tag:"SpreadsheetUnimportableCellRulesSection",title:t.toolstripUnimportableCellsTitle,children:[{type:e.COLUMN,width:250,children:[{tag:"SpreadsheetUnimportableCellRules",type:e.LIST,items:[],mnemonic:"U"}]},{type:e.COLUMN,children:[{tag:"SpreadsheetAddUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"add_16",quickAccessIcon:"add_16",mnemonic:"A",description:t.toosltripAddRuleTT,actionId:"AddUnimportableRule"},{tag:"SpreadsheetModifyUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"icon_edit_16",quickAccessIcon:"icon_edit_16",mnemonic:"E",description:t.toosltripEditRuleTT,actionId:"ModifyUnimportableRule"},{tag:"SpreadsheetRemoveUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"delete_16",quickAccessIcon:"delete_16",mnemonic:"D",description:t.toosltripDeleteRuleTT,actionId:"RemoveUnimportableRule"}]}]},{type:e.SECTION,collapsePriority:-1,title:t.toolstripImportTitle,tag:"SpreadsheetImportSection",children:[{type:e.COLUMN,tag:"SpreadsheetImportColumn",children:[{type:e.SPLIT_BUTTON,tag:"SpreadsheetImportSelectionButton",textOverride:t.toolstripImportSelection,iconOverride:"confirm_24",quickAccessIcon:"confirm_16",popupTag:"SpreadsheetImportTabGroup.matlabTab.ImportDropDown",actionId:"ImportData",mnemonic:"I"}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(538)],o=i.dj.d(n,(function(e,t){return{tag:"SpreadsheetImportTabGroup",type:e.TAB_GROUP,children:[{tag:"SpreadsheetImportTabGroup.matlabTab",type:e.TAB,title:t.toolstripImportTitle,mnemonic:"I",children:[{type:e.SECTION,title:t.toolstripSelectionTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[{type:e.LABEL,text:t.toolstripRange,tag:"SpreadsheetRangeLabel"},{type:e.LABEL,text:t.toolstripVariableNamesRow,tag:"SpreadsheetVariableNamesRowLabel"},{type:e.CHECK_BOX,text:t.toolstripNoVariableNames,tag:"SpreadsheetIncludesVarNamesRow"}]},{tag:"SpreadsheetSelectionSection",type:e.COLUMN,width:100,children:[{type:e.COMBO_BOX,text:"",actionId:"SelectionChanged",tag:"SpreadsheetSelectionRange",enabled:!0,editable:!0,mnemonic:"R",items:[]},{type:e.SPINNER,text:"",actionId:"VariableNamesRowChanged",tag:"SpreadsheetVariableNamesRow",enabled:!0,editable:!0,minorStepSize:1,majorStepSize:1,minimum:1,mnemonic:"V",errorText:t.toolstripVariableNamesRowError},{type:e.LABEL,text:"",tag:"SpreadsheetValidVarNameLabel"}]}]},{type:e.SECTION,title:t.toolstripImportedDataTitle,children:[{type:e.COLUMN,horizontalAlignment:"right",extraColumnGap:!0,children:[{type:e.LABEL,text:t.toolstripOutputVariableName,tag:"SpreadsheetOutputVariableNameLabel"},{type:e.LABEL,text:t.toolstripOutputVariableType,tag:"SpreadsheetOutputVariableTypeLabel"},{type:e.LABEL,text:"",tag:"empty1"}]},{tag:"SpreadsheetOutputSection",type:e.COLUMN,children:[{type:e.TEXT_FIELD,text:"",enabled:!0,editable:!0,tag:"SpreadsheetOutputVariableName",actionId:"OutputVariableNameChanged",mnemonic:"N"},{type:e.COMBO_BOX,enabled:!0,editable:!1,tag:"SpreadsheetOutputVariableType",actionId:"OutputVariableTypeChanged",selectedItem:"table",mnemonic:"T",items:[{label:t.OutputTypeTable,value:"table"},{label:t.OutputTypeColumnVectors,value:"columnvector"},{label:t.OutputTypeNumericMatrix,value:"numericarray"},{label:t.OutputTypeStringArray,value:"stringarray"},{label:t.OutputTypeCellArray,value:"cellarray"}]},{type:e.DROP_DOWN_BUTTON,textOverride:t.toolstripTableOptions,tag:"SpreadsheetTableOptions",popupTag:"SpreadsheetImport.TableOptions",iconOverride:"settings_16"}]}]},{type:e.SECTION,tag:"SpreadsheetUnimportableCellRulesSection",title:t.toolstripUnimportableCellsTitle,children:[{type:e.COLUMN,width:250,children:[{tag:"SpreadsheetUnimportableCellRules",type:e.LIST,items:[],mnemonic:"U"}]},{type:e.COLUMN,children:[{tag:"SpreadsheetAddUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"add_16",quickAccessIcon:"add_16",mnemonic:"A",description:t.toosltripAddRuleTT,actionId:"AddUnimportableRule"},{tag:"SpreadsheetModifyUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"icon_edit_16",quickAccessIcon:"icon_edit_16",mnemonic:"E",description:t.toosltripEditRuleTT,actionId:"ModifyUnimportableRule"},{tag:"SpreadsheetRemoveUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"delete_16",quickAccessIcon:"delete_16",mnemonic:"D",description:t.toosltripDeleteRuleTT,actionId:"RemoveUnimportableRule"}]}]},{type:e.SECTION,collapsePriority:-1,title:t.toolstripImportTitle,tag:"SpreadsheetImportSection",children:[{type:e.COLUMN,tag:"SpreadsheetImportColumn",children:[{type:e.PUSH_BUTTON,tag:"SpreadsheetImportSelectionButton",textOverride:t.toolstripImportSelection,iconOverride:"confirm_24",quickAccessIcon:"confirm_16",actionId:"ImportData",mnemonic:"I"}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(538)],o=i.dj.d(n,(function(e,t){return{tag:"SpreadsheetImportTabGroup",type:e.TAB_GROUP,children:[{tag:"SpreadsheetImportTabGroup.matlabTab",type:e.TAB,title:t.toolstripImportTitle,mnemonic:"I",children:[{type:e.SECTION,title:t.toolstripSelectionTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[{type:e.LABEL,text:t.toolstripRange,tag:"SpreadsheetRangeLabel"}]},{tag:"SpreadsheetSelectionSection",type:e.COLUMN,width:100,children:[{type:e.COMBO_BOX,text:"",actionId:"SelectionChanged",tag:"SpreadsheetSelectionRange",enabled:!0,editable:!0,mnemonic:"R",items:[]}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(236),i(538)],o=i.dj.d(n,(function(e,t,i){return{popups:[{tag:"SpreadsheetImportTabGroup.matlabTab.ImportDropDown",type:e.POPUP_LIST,children:[{tag:"SpreadsheetImportTabGroup.matlabTab.ImportDropDown.ImportSelection",text:i.toolstripImportData,type:e.LIST_ITEM,actionId:"ImportData"},{tag:"SpreadsheetImportTabGroup.matlabTab.ImportDropDown.GenerateScript",text:i.toolstripGenerateScript,type:e.LIST_ITEM,actionId:"GenerateScript"},{tag:"SpreadsheetImportTabGroup.matlabTab.ImportDropDown.GenerateLiveScript",text:i.toolstripGenerateLiveScript,type:e.LIST_ITEM,actionId:"GenerateLiveScript"},{tag:"SpreadsheetImportTabGroup.matlabTab.ImportDropDown.GenerateFunction",text:i.toolstripGenerateFunction,type:e.LIST_ITEM,actionId:"GenerateFunction"}]},{tag:"SpreadsheetImport.TableOptions",type:e.POPUP_LIST,children:[{type:e.POPUP_LIST_HEADER,title:i.toolstripVariableNamesTitle},{type:e.LIST_ITEM_WITH_RADIO_BUTTON,tag:"SpreadsheetImport.TableOptions.AllowAllCharacters",text:i.toolstripAllowAllCharacters,actionId:"AllowAllCharacters",closePopupOnClick:!1,buttonGroupName:"SpreadsheetImport.TableOptionsGroup"},{type:e.LIST_ITEM_WITH_RADIO_BUTTON,tag:"SpreadsheetImport.TableOptions.LimitCharacters",text:i.toolstripLimitAllCharacters,actionId:"LimitCharacters",closePopupOnClick:!1,buttonGroupName:"SpreadsheetImport.TableOptionsGroup"},{type:e.POPUP_LIST_HEADER,title:i.toolstripRowTimesTitle},{type:e.LIST_ITEM_WITH_RADIO_BUTTON,tag:"SpreadsheetImport.RowTimes.UseTimesFromColumn",text:i.toolstripRowTimesColumn,actionId:"UseTimesFromColumn",closePopupOnClick:!1,buttonGroupName:"SpreadsheetImport.RowTimesGroup",description:i.toolstripRowTimesDateOrDuration},{type:e.COMBO_BOX,editable:!1,tag:"SpreadsheetUseTimesFromColumnCB",actionId:"RowTimesColumnChanged"},{type:e.LIST_ITEM_WITH_RADIO_BUTTON,tag:"SpreadsheetImport.RowTimes.GenerateTimes",text:i.toolstripRowTimesGenerate,actionId:"GenerateTimes",closePopupOnClick:!1,buttonGroupName:"SpreadsheetImport.RowTimesGroup",description:t.substitute(i.toolstripRowTimesTimeStep,{value:1,units:i.toolstripRowTimesTimeStepSingle_seconds})+"\n"+t.substitute(i.toolstripRowTimesStartTime,{value:"00:00:00"})},{type:e.PUSH_BUTTON,text:i.toolstripRowTimesConfigure,actionId:"ConfigureRowTimes",tag:"SpreadsheetConfigureRowTimes"}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8374),i(1649)],o=i.dj.d(n,(function(e,t,i){return e([t],{loadActions:function(e){try{e.actionService.loadActions(i.getActions())}catch(e){}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2624),i(8375),i(8376),i(8377),i(8378),i(8379),i(467),i(484)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([l],{createWidget:function(e,l,c){this.loadActions(e);var d,u=e.uiBuilder;u.createPopupsFromConfig(r),u.createPopupsFromConfig(a),d=null!==document.querySelector(".motwApplication"),"nocodegen"===e.scope?e.addTabGroup(n,d):"rangeonly"===e.scope?e.addTabGroup(o,d):e.addTabGroup(i,d),c.watchForWindow(window,s.LAST_SELECTED,(function(i,n,o){t.updateActions(o,o?e.getChildProperties(o):null)}))},loadActions:function(e){e.actionService.loadActions(t.getActions())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(538)],o=i.dj.d(n,(function(e,t){return{tag:"TextImportTabGroup",type:e.TAB_GROUP,children:[{tag:"TextImportTabGroup.matlabTab",type:e.TAB,title:t.toolstripImportTitle,mnemonic:"I",children:[{type:e.SECTION,title:t.toolstripImportFileTypeTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!0,children:[{type:e.RADIO_BUTTON,text:t.toolstripDelimitedFile,selected:!0,tag:"DelimitedRadioButton",buttonGroupName:"ImportTypeButtonGroup",enabled:!0},{type:e.RADIO_BUTTON,text:t.toolstripFixedWidthFile,tag:"FixedWidthRadioButton",buttonGroupName:"ImportTypeButtonGroup",enabled:!0},{type:e.LABEL,text:"",tag:"Placeholder1"}]}]},{type:e.SECTION,title:t.toolstripDelimiterTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[{type:e.DROP_DOWN_BUTTON,textOverride:t.toolstripDelimiters,tag:"TextImportDelimiterDropDown",popupTag:"TextImportTabGroup.matlabTab.ImportDelimiterDropDown",mnemonic:"D",iconOverride:"icon_columnDelimiters"},{type:e.DROP_DOWN_BUTTON,textOverride:t.toolstripDelimiterOptionsTitle,tag:"TextImportDelimiterOptionsDropDown",popupTag:"TextImportTabGroup.matlabTab.DelimiterOptions",iconOverride:"settings_16"},{type:e.LABEL,text:"",tag:"Placeholder2"}]}]},{type:e.SECTION,title:t.toolstripSelectionTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[{type:e.LABEL,text:t.toolstripRange,tag:"TextRangeLabel"},{type:e.LABEL,text:t.toolstripVariableNamesRow,tag:"TextVariableNamesRowLabel"},{type:e.CHECK_BOX,text:t.toolstripNoVariableNames,tag:"TextIncludesVarNamesRow"}]},{tag:"TextSelectionSection",width:100,type:e.COLUMN,children:[{type:e.COMBO_BOX,text:"",actionId:"SelectionChanged",tag:"TextSelectionRange",enabled:!0,editable:!0,mnemonic:"R",items:[]},{type:e.SPINNER,text:"",actionId:"VariableNamesRowChanged",tag:"TextVariableNamesRow",enabled:!0,editable:!0,minorStepSize:1,majorStepSize:1,minimum:1,mnemonic:"V",errorText:t.toolstripVariableNamesRowError},{type:e.LABEL,text:"",tag:"Tmp2"}]}]},{type:e.SECTION,title:t.toolstripImportedDataTitle,children:[{type:e.COLUMN,horizontalAlignment:"right",extraColumnGap:!0,children:[{type:e.LABEL,text:t.toolstripOutputVariableName,tag:"TextOutputVariableNameLabel"},{type:e.LABEL,text:t.toolstripOutputVariableType,tag:"TextOutputVariableTypeLabel"},{type:e.LABEL,text:"",tag:"empty1"}]},{tag:"TextOutputSection",type:e.COLUMN,children:[{type:e.TEXT_FIELD,text:"",enabled:!0,editable:!0,tag:"TextOutputVariableName",actionId:"OutputVariableNameChanged",mnemonic:"N"},{type:e.COMBO_BOX,enabled:!0,editable:!1,tag:"TextOutputVariableType",actionId:"OutputVariableTypeChanged",selectedItem:"table",mnemonic:"T",items:[{label:t.OutputTypeTable,value:"table"},{label:t.OutputTypeTimeTable,value:"timetable"},{label:t.OutputTypeColumnVectors,value:"columnvector"},{label:t.OutputTypeNumericMatrix,value:"numericarray"},{label:t.OutputTypeStringArray,value:"stringarray"},{label:t.OutputTypeCellArray,value:"cellarray"}]},{type:e.DROP_DOWN_BUTTON,textOverride:t.toolstripTableOptions,tag:"TextTableOptions",popupTag:"TextImport.TableOptions",iconOverride:"settings_16"}]}]},{type:e.SECTION,tag:"TextUnimportableCellRulesSection",title:t.toolstripUnimportableCellsTitle,children:[{type:e.COLUMN,width:250,children:[{tag:"TextUnimportableCellRules",type:e.LIST,items:[],mnemonic:"U"}]},{type:e.COLUMN,children:[{tag:"TextAddUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"add_16",quickAccessIcon:"add_16",mnemonic:"A",description:t.toosltripAddRuleTT,actionId:"AddUnimportableRule"},{tag:"TextModifyUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"icon_edit_16",quickAccessIcon:"icon_edit_16",mnemonic:"E",description:t.toosltripEditRuleTT,actionId:"ModifyUnimportableRule"},{tag:"TextRemoveUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"delete_16",quickAccessIcon:"delete_16",mnemonic:"D",description:t.toosltripDeleteRuleTT,actionId:"RemoveUnimportableRule"}]}]},{type:e.SECTION,collapsePriority:-1,title:t.toolstripImportTitle,tag:"TextImportSection",children:[{type:e.COLUMN,tag:"TextImportColumn",children:[{type:e.SPLIT_BUTTON,tag:"TextImportSelectionButton",textOverride:t.toolstripImportSelection,iconOverride:"confirm_24",quickAccessIcon:"confirm_16",popupTag:"TextImportTabGroup.matlabTab.ImportDropDown",actionId:"ImportData",mnemonic:"I"}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(538)],o=i.dj.d(n,(function(e,t){return{tag:"TextImportTabGroup",type:e.TAB_GROUP,children:[{tag:"TextImportTabGroup.matlabTab",type:e.TAB,title:t.toolstripImportTitle,mnemonic:"I",children:[{type:e.SECTION,title:t.toolstripImportFileTypeTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!0,children:[{type:e.RADIO_BUTTON,text:t.toolstripDelimitedFile,selected:!0,tag:"DelimitedRadioButton",buttonGroupName:"ImportTypeButtonGroup",enabled:!0},{type:e.RADIO_BUTTON,text:t.toolstripFixedWidthFile,tag:"FixedWidthRadioButton",buttonGroupName:"ImportTypeButtonGroup",enabled:!0},{type:e.LABEL,text:"",tag:"Placeholder1"}]}]},{type:e.SECTION,title:t.toolstripDelimiterTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[{type:e.DROP_DOWN_BUTTON,textOverride:t.toolstripDelimiters,tag:"TextImportDelimiterDropDown",popupTag:"TextImportTabGroup.matlabTab.ImportDelimiterDropDown",mnemonic:"D",iconOverride:"icon_columnDelimiters"},{type:e.DROP_DOWN_BUTTON,textOverride:t.toolstripDelimiterOptionsTitle,tag:"TextImportDelimiterOptionsDropDown",popupTag:"TextImportTabGroup.matlabTab.DelimiterOptions",iconOverride:"settings_16"},{type:e.LABEL,text:"",tag:"Placeholder2"}]}]},{type:e.SECTION,title:t.toolstripSelectionTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[{type:e.LABEL,text:t.toolstripRange,tag:"TextRangeLabel"},{type:e.LABEL,text:t.toolstripVariableNamesRow,tag:"TextVariableNamesRowLabel"},{type:e.CHECK_BOX,text:t.toolstripNoVariableNames,tag:"TextIncludesVarNamesRow"}]},{tag:"TextSelectionSection",width:100,type:e.COLUMN,children:[{type:e.COMBO_BOX,text:"",actionId:"SelectionChanged",tag:"TextSelectionRange",enabled:!0,editable:!0,mnemonic:"R",items:[]},{type:e.SPINNER,text:"",actionId:"VariableNamesRowChanged",tag:"TextVariableNamesRow",enabled:!0,editable:!0,minorStepSize:1,majorStepSize:1,minimum:1,mnemonic:"V",errorText:t.toolstripVariableNamesRowError},{type:e.LABEL,text:"",tag:"Tmp2"}]}]},{type:e.SECTION,title:t.toolstripImportedDataTitle,children:[{type:e.COLUMN,horizontalAlignment:"right",extraColumnGap:!0,children:[{type:e.LABEL,text:t.toolstripOutputVariableName,tag:"TextOutputVariableNameLabel"},{type:e.LABEL,text:t.toolstripOutputVariableType,tag:"TextOutputVariableTypeLabel"},{type:e.LABEL,text:"",tag:"empty1"}]},{tag:"TextOutputSection",type:e.COLUMN,children:[{type:e.TEXT_FIELD,text:"",enabled:!0,editable:!0,tag:"TextOutputVariableName",actionId:"OutputVariableNameChanged",mnemonic:"N"},{type:e.COMBO_BOX,enabled:!0,editable:!1,tag:"TextOutputVariableType",actionId:"OutputVariableTypeChanged",selectedItem:"table",mnemonic:"T",items:[{label:t.OutputTypeTable,value:"table"},{label:t.OutputTypeColumnVectors,value:"columnvector"},{label:t.OutputTypeNumericMatrix,value:"numericarray"},{label:t.OutputTypeStringArray,value:"stringarray"},{label:t.OutputTypeCellArray,value:"cellarray"}]},{type:e.DROP_DOWN_BUTTON,textOverride:t.toolstripTableOptions,tag:"TextTableOptions",popupTag:"TextImport.TableOptions",iconOverride:"settings_16"}]}]},{type:e.SECTION,tag:"TextUnimportableCellRulesSection",title:t.toolstripUnimportableCellsTitle,children:[{type:e.COLUMN,width:250,children:[{tag:"TextUnimportableCellRules",type:e.LIST,items:[],mnemonic:"U"}]},{type:e.COLUMN,children:[{tag:"TextAddUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"add_16",quickAccessIcon:"add_16",mnemonic:"A",description:t.toosltripAddRuleTT,actionId:"AddUnimportableRule"},{tag:"TextModifyUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"icon_edit_16",quickAccessIcon:"icon_edit_16",mnemonic:"E",description:t.toosltripEditRuleTT,actionId:"ModifyUnimportableRule"},{tag:"TextRemoveUnimportableRule",type:e.PUSH_BUTTON,iconOverride:"delete_16",quickAccessIcon:"delete_16",mnemonic:"D",description:t.toosltripDeleteRuleTT,actionId:"RemoveUnimportableRule"}]}]},{type:e.SECTION,collapsePriority:-1,title:t.toolstripImportTitle,tag:"TextImportSection",children:[{type:e.COLUMN,tag:"TextImportColumn",children:[{type:e.PUSH_BUTTON,tag:"TextImportSelectionButton",textOverride:t.toolstripImportSelection,iconOverride:"confirm_24",quickAccessIcon:"confirm_16",actionId:"ImportData",mnemonic:"I"}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(538)],o=i.dj.d(n,(function(e,t){return{tag:"TextImportTabGroup",type:e.TAB_GROUP,children:[{tag:"TextImportTabGroup.matlabTab",type:e.TAB,title:t.toolstripImportTitle,mnemonic:"I",children:[{type:e.SECTION,title:t.toolstripSelectionTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[{type:e.LABEL,text:t.toolstripRange,tag:"TextRangeLabel"}]},{tag:"TextSelectionSection",width:100,type:e.COLUMN,children:[{type:e.COMBO_BOX,text:"",actionId:"SelectionChanged",tag:"TextSelectionRange",enabled:!0,editable:!0,mnemonic:"R",items:[]}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(236),i(538)],o=i.dj.d(n,(function(e,t,i){return{popups:[{tag:"TextImportTabGroup.matlabTab.ImportDropDown",type:e.POPUP_LIST,children:[{tag:"TextImportTabGroup.matlabTab.ImportDropDown.ImportSelection",text:i.toolstripImportData,type:e.LIST_ITEM,actionId:"ImportData"},{tag:"TextImportTabGroup.matlabTab.ImportDropDown.GenerateScript",text:i.toolstripGenerateScript,type:e.LIST_ITEM,actionId:"GenerateScript"},{tag:"TextImportTabGroup.matlabTab.ImportDropDown.GenerateLiveScript",text:i.toolstripGenerateLiveScript,type:e.LIST_ITEM,actionId:"GenerateLiveScript"},{tag:"TextImportTabGroup.matlabTab.ImportDropDown.GenerateFunction",text:i.toolstripGenerateFunction,type:e.LIST_ITEM,actionId:"GenerateFunction"}]},{tag:"TextImport.TableOptions",type:e.POPUP_LIST,children:[{type:e.POPUP_LIST_HEADER,title:i.toolstripVariableNamesTitle},{type:e.LIST_ITEM_WITH_RADIO_BUTTON,tag:"TextImport.TableOptions.AllowAllCharacters",text:i.toolstripAllowAllCharacters,actionId:"AllowAllCharacters",closePopupOnClick:!1,buttonGroupName:"TextImport.TableOptionsGroup"},{type:e.LIST_ITEM_WITH_RADIO_BUTTON,tag:"TextImport.TableOptions.LimitCharacters",text:i.toolstripLimitAllCharacters,actionId:"LimitCharacters",closePopupOnClick:!1,buttonGroupName:"TextImport.TableOptionsGroup"},{type:e.POPUP_LIST_HEADER,title:i.toolstripRowTimesTitle},{type:e.LIST_ITEM_WITH_RADIO_BUTTON,tag:"TextImport.RowTimes.UseTimesFromColumn",text:i.toolstripRowTimesColumn,actionId:"UseTimesFromColumn",closePopupOnClick:!1,buttonGroupName:"TextImport.RowTimesGroup",description:i.toolstripRowTimesDateOrDuration},{type:e.COMBO_BOX,editable:!1,tag:"TextUseTimesFromColumnCB",actionId:"RowTimesColumnChanged"},{type:e.LIST_ITEM_WITH_RADIO_BUTTON,tag:"TextImport.RowTimes.GenerateTimes",text:i.toolstripRowTimesGenerate,actionId:"GenerateTimes",closePopupOnClick:!1,buttonGroupName:"TextImport.RowTimesGroup",description:t.substitute(i.toolstripRowTimesTimeStep,{value:1,units:i.toolstripRowTimesTimeStepSingle_seconds})+"\n"+t.substitute(i.toolstripRowTimesStartTime,{value:"00:00:00"})},{type:e.PUSH_BUTTON,text:i.toolstripRowTimesConfigure,actionId:"ConfigureRowTimes",tag:"TextConfigureRowTimes"}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(538)],o=i.dj.d(n,(function(e,t){return{popups:[{tag:"TextImportTabGroup.matlabTab.ImportDelimiterDropDown",type:e.POPUP_LIST,children:[{tag:"TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Tab",text:t.toolstripTabDelimiter,type:e.LIST_ITEM_WITH_CHECKBOX,actionId:"TabDelimiterChanged"},{tag:"TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Comma",text:t.toolstripCommaDelimiter,type:e.LIST_ITEM_WITH_CHECKBOX,actionId:"CommaDelimiterChanged"},{tag:"TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Space",text:t.toolstripSpaceDelimiter,type:e.LIST_ITEM_WITH_CHECKBOX,actionId:"SpaceDelimiterChanged"},{tag:"TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Semicolon",text:t.toolstripSemicolonDelimiter,type:e.LIST_ITEM_WITH_CHECKBOX,actionId:"SemicolonDelimiterChanged"},{tag:"TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Custom",text:t.toolstripCustomDelimiter,type:e.LIST_ITEM_WITH_CHECKBOX,actionId:"CustomDelimiterChanged"},{type:e.POPUP_LIST_SEPARATOR,tag:"TextImportTabGroup.matlabTab.ImportDelimiterDropDown.Separator"},{tag:"TextImportTabGroup.matlabTab.ImportDelimiterDropDown.EnterDelimiter",label:"Enter Delimiter",placeholderText:"Custom Delimiter",type:e.LIST_ITEM_WITH_TEXTFIELD}]},{tag:"TextImportTabGroup.matlabTab.DelimiterOptions",type:e.POPUP_LIST,children:[{type:e.POPUP_LIST_HEADER,title:t.toolstripConsecutiveDelimitersHeader},{tag:"TextImportTabGroup.matlabTab.ConsecutiveDelimiters",text:t.toolstripConsecutiveDelimiters,type:e.LIST_ITEM_WITH_CHECKBOX,actionId:"ConsecutiveDelimiterRuleChanged"},{type:e.POPUP_LIST_HEADER,title:t.toolstripDecimalSeparatorHeader},{tag:"TextImportTabGroup.matlabTab.PeriodDecimalSeparator",text:t.toolstripDecimalSeparatorPeriod,type:e.LIST_ITEM_WITH_RADIO_BUTTON,actionId:"PeriodDecimalSeparatorChanged",buttonGroupName:"group1"},{tag:"TextImportTabGroup.matlabTab.CommaDecimalSeparator",text:t.toolstripDecimalSeparatorComma,type:e.LIST_ITEM_WITH_RADIO_BUTTON,actionId:"CommaDecimalSeparatorChanged",buttonGroupName:"group1"}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(302),i(242),i(210),i(213),i(211),i(279),i(328),i(8381),i(8384),i(8385),i(8387),i(8388),i(8389),i(8390),i(8393),i(8394),i(209),i(1314)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return e([l],{constructor:function(e){if(!(e=e||{}).layoutStore)throw new Error("A layoutStore must be specified");this.layoutStore=e.layoutStore,this.actionService=e.actionService,this.layoutPlugins=e.layoutPlugins,t.isObject(this.layoutPlugins)||(this.nonModalDialogManager=new g,this.layoutPlugins={},this.addPlugin(new u),this.addPlugin(new c),this.addPlugin(new h),this.addPlugin(new p),this.addPlugin(new d(this.actionService)),this.addPlugin(new f),this.addPlugin(this.nonModalDialogManager),this.addPlugin(new m),this.addPlugin(new _)),this.layoutStore.fetch({onComplete:function(e){if(e&&e.length>0)throw new Error("The LayoutManager does not handle modules already existing in the store. Please create the LayoutManager before any modules are added.")}}),i.connect(this.layoutStore,"onNew",this,this._onNewModule),i.connect(this.layoutStore,"onDelete",this,this._onDeleteModule),i.connect(this.layoutStore,"onSet",this,this._onUpdateModule),a.create("div",{id:"veFloatingPane"},n.body());var o=this;n.global.onresize=function(){t.hitch(o,o._handleResize())}},postCreate:function(){this.inherited(arguments),o.add(this.domNode,"layout")},addPlugin:function(e){var t;for(t in e.handles)e.handles.hasOwnProperty(t)&&(this.layoutPlugins[e.handles[t]]=e)},hasPlugin:function(e){return this.layoutPlugins.hasOwnProperty(e)},getPlugin:function(e){if(this.hasPlugin(e))return this.layoutPlugins[e];throw new Error("Unknown plugin type: "+e)},layout:function(){this.layoutStore.fetch({query:{parentId:"root"},onItem:function(e){e.widget.resize&&e.widget.resize(),e.widget.layout&&e.widget.layout()}})},_onNewModule:function(e){e.widget||(e.widget=this.getPlugin(e.containerType).createContainer(e)),"root"===e.parentId?(e.widget.placeAt(this.domNode,"last"),e.widget.startup&&e.widget.startup()):this._callWithParent(e.parentId,(function(t){this.getPlugin(t.containerType).addModule(t,e)}))},_onDeleteModule:function(e){"root"!==e.parentId&&this._callWithParent(e.parentId,(function(t){this.getPlugin(t.containerType).removeModule(t,e)})),e.containerType&&this.getPlugin(e.containerType).destroyContainer(e)},_onUpdateModule:function(e,t,i,n){if("parentType"===t)throw new Error("Changing the parentId is not yet supported.");this._callWithParent(e.parentId,(function(o){this.getPlugin(o.containerType).updateModule(o,e,t,i,n)}))},_callWithParent:function(e,t,i){i=i||this,this.layoutStore.fetch({query:{id:e},onComplete:function(n){var o;if(1===n.length)o=n[0];else{if(!(n.length>1))throw new Error("Could not find parent module: "+e);v.info("More than 1 module matches id: "+e),o=n[0]}t.apply(i,[o])}})},_handleResize:function(){var e=function(e,t,i){setTimeout((function(){r.set(e,{top:t+"px",left:i+"px"})}),0)},t=s.getBox();this.layoutStore.fetch({query:{parentId:"veNonModalDialog"},onItem:function(i){var n=t.w/2-parseInt(i.wrapper.domNode.style.width,10)/2,o=t.h/2-parseInt(i.wrapper.domNode.style.height,10)/2;e(i.wrapper.domNode,o,n)}}),this.layoutStore.fetch({query:{parentId:"chNonModalDialog"},onItem:function(i){var n=t.w-r.get(i.wrapper.domNode,"width")-91,o=t.h-r.get(i.wrapper.domNode,"height")-36;e(i.wrapper.domNode,o,n)}}),this.layoutStore.fetch({query:{parentId:"inspectorNonModalDialog"},onItem:function(i){var n=t.w/2-parseInt(i.wrapper.domNode.style.width,10)/2,o=t.h/2-parseInt(i.wrapper.domNode.style.height,10)/2;e(i.wrapper.domNode,o,n)}})},getLayoutState:function(){var e={version:2};return["document","border","split","main"].forEach((function(t){var i=this.getPlugin(t);i&&(e[t+"Containers"]=i.getContainerStates())}),this),e},setLayoutState:function(e){e&&2===e.version&&["document","border","split","main"].forEach((function(t){var i=t+"Containers";if(e[i]){var n=this.getPlugin(t);n&&n.setContainerStates(e[i])}}),this)},setFooter:function(e){var t=this.getPlugin("main");t&&t.setFooter(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(464),i(647),i(1240)],o=i.dj.d(n,(function(e,t,i,n){return e([i,n],{handles:["border"],createContainer:function(e){var i=new t({id:e.id,liveSplitters:!1,gutters:e.gutters||!1,style:"width:100% !important;height:100% !important;",persist:!1});return this.onCreate(e.id,i),i},destroyContainer:function(e){this.onDestroy(e.id),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i(420),i(203),i(8383)],o=i.dj.d(n,(function(e,t,i,n){return i([n],{image:(t.blankGif||e.toUrl("dojo/resources/blank.gif")).toString(),templateString:'<div class="disabledOverlay"><div style="display: none; opacity: 0.75; z-index: 9999; position: absolute;" data-dojo-attach-point="_underlayNode"></div><img src="${_blankGif}" style="opacity: 1; display: none; z-index: -10000; position: absolute; top: 0px; left: 0px;" data-dojo-attach-point="_imageNode"><div style="opacity: 0; display: none; z-index: -10000; position: absolute; top: 0px;" data-dojo-attach-point="_textNode"></div></div>',duration:100,_scrollerWidths:function(){return{v:0,h:0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(203),i(224),i(246),i(445),i(227),i(228),i(211),i(217),i(213),i(279),i(242),i(356),i(614),i(328),i(216),i(231)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e.experimental("dojox.widget.Standby"),t("dojox.widget.Standby",[f,g],{image:require.toUrl("dojox/widget/Standby/images/loading.gif").toString(),imageText:"Please Wait...",text:"Please wait...",centerIndicator:"image",target:"",color:"#C0C0C0",duration:500,zIndex:"auto",opacity:.75,templateString:'<div><div style="display: none; opacity: 0; z-index: 9999; position: absolute; cursor:wait;" dojoAttachPoint="_underlayNode"></div><img src="${image}" style="opacity: 0; display: none; z-index: -10000; position: absolute; top: 0px; left: 0px; cursor:wait;" dojoAttachPoint="_imageNode"><div style="opacity: 0; display: none; z-index: -10000; position: absolute; top: 0px;" dojoAttachPoint="_textNode"></div></div>',_underlayNode:null,_imageNode:null,_textNode:null,_centerNode:null,_displayed:!1,_resizeCheck:null,_started:!1,_parent:null,startup:function(e){if(!this._started){if("string"==typeof this.target){var t=m.byId(this.target);this.target=t?t.domNode:r.byId(this.target)}this.text&&(this._textNode.innerHTML=this.text),"image"===this.centerIndicator?(this._centerNode=this._imageNode,a.set(this._imageNode,"src",this.image),a.set(this._imageNode,"alt",this.imageText)):this._centerNode=this._textNode,c.set(this._underlayNode,{display:"none",backgroundColor:this.color}),c.set(this._centerNode,"display","none"),this.connect(this._underlayNode,"onclick","_ignore"),this.domNode.parentNode&&this.domNode.parentNode!=u.body()&&u.body().appendChild(this.domNode),7==o("ie")&&(this._ieFixNode=s.create("div"),c.set(this._ieFixNode,{opacity:"0",zIndex:"-1000",position:"absolute",top:"-1000px"}),u.body().appendChild(this._ieFixNode)),this.inherited(arguments)}},show:function(){this._displayed||(this._anim&&(this._anim.stop(),delete this._anim),this._displayed=!0,this._size(),this._disableOverflow(),this._fadeIn())},hide:function(){if(this._displayed)try{this._anim&&(this._anim.stop(),delete this._anim),this._size()}catch(e){console.error(e)}finally{this._fadeOut(),this._displayed=!1,null!==this._resizeCheck&&(clearInterval(this._resizeCheck),this._resizeCheck=null)}},isVisible:function(){return this._displayed},onShow:function(){},onHide:function(){},uninitialize:function(){this._displayed=!1,this._resizeCheck&&clearInterval(this._resizeCheck),c.set(this._centerNode,"display","none"),c.set(this._underlayNode,"display","none"),7==o("ie")&&this._ieFixNode&&(u.body().removeChild(this._ieFixNode),delete this._ieFixNode),this._anim&&(this._anim.stop(),delete this._anim),this.target=null,this._imageNode=null,this._textNode=null,this._centerNode=null,this.inherited(arguments)},_size:function(){if(this._displayed){var e,t=a.get(u.body(),"dir");t&&(t=t.toLowerCase());var i=this._scrollerWidths(),n=this.target,r=c.get(this._centerNode,"display");c.set(this._centerNode,"display","block");var s=l.position(n,!0);n!==u.body()&&n!==u.doc||((s=d.getBox()).x=s.l,s.y=s.t);var h=l.getMarginBox(this._centerNode);c.set(this._centerNode,"display",r),this._ieFixNode&&(e=-this._ieFixNode.offsetTop/1e3,s.x=Math.floor((s.x+.9)/e),s.y=Math.floor((s.y+.9)/e),s.w=Math.floor((s.w+.9)/e),s.h=Math.floor((s.h+.9)/e));var p=c.get(n,"zIndex"),f=p,g=p;if("auto"===this.zIndex)if("auto"!=p)f=parseInt(f,10),g=parseInt(g,10);else{var m=n;if(m&&m!==u.body()&&m!==u.doc){m=n.parentNode;for(var _=-1e5;m&&m!==u.body();)if((p=c.get(m,"zIndex"))&&"auto"!==p){var v=parseInt(p,10);_<v&&(_=v,f=v+1,g=v+1),m=m.parentNode}else m=m.parentNode}}else f=parseInt(this.zIndex,10),g=parseInt(this.zIndex,10);c.set(this._centerNode,"zIndex",g),c.set(this._underlayNode,"zIndex",f);var b=n.parentNode;if(b&&b!==u.body()&&n!==u.body()&&n!==u.doc){var y=s.h,C=s.w,T=l.position(b,!0);this._ieFixNode&&(e=-this._ieFixNode.offsetTop/1e3,T.x=Math.floor((T.x+.9)/e),T.y=Math.floor((T.y+.9)/e),T.w=Math.floor((T.w+.9)/e),T.h=Math.floor((T.h+.9)/e)),T.w-=b.scrollHeight>b.clientHeight&&b.clientHeight>0?i.v:0,T.h-=b.scrollWidth>b.clientWidth&&b.clientWidth>0?i.h:0,"rtl"===t&&(o("opera")?(s.x+=b.scrollHeight>b.clientHeight&&b.clientHeight>0?i.v:0,T.x+=b.scrollHeight>b.clientHeight&&b.clientHeight>0?i.v:0):o("ie")?T.x+=b.scrollHeight>b.clientHeight&&b.clientHeight>0?i.v:0:o("webkit")),T.w<s.w&&(s.w=s.w-T.w),T.h<s.h&&(s.h=s.h-T.h);var E=T.y,S=T.y+T.h,w=s.y,I=s.y+y,A=T.x,x=T.x+T.w,N=s.x,L=s.x+C;if(I>E&&w<E){s.y=T.y;var D=y-(E-w);D<T.h?s.h=D:s.h-=2*(b.scrollWidth>b.clientWidth&&b.clientWidth>0?i.h:0)}else w<S&&I>S?s.h=S-w:(I<=E||w>=S)&&(s.h=0);if(L>A&&N<A){s.x=T.x;var M=C-(A-N);M<T.w?s.w=M:s.w-=2*(b.scrollHeight>b.clientHeight&&b.clientHeight>0?i.w:0)}else N<x&&L>x?s.w=x-N:(L<=A||N>=x)&&(s.w=0)}if(s.h>0&&s.w>0){c.set(this._underlayNode,{display:"block",width:s.w+"px",height:s.h+"px",top:s.y+"px",left:s.x+"px"});var P=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"];this._cloneStyles(P),o("ie")||(P=["MozBorderRadius","MozBorderRadiusTopleft","MozBorderRadiusTopright","MozBorderRadiusBottomleft","MozBorderRadiusBottomright","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius"],this._cloneStyles(P,this));var O=s.h/2-h.h/2,R=s.w/2-h.w/2;s.h>=h.h&&s.w>=h.w?c.set(this._centerNode,{top:O+s.y+"px",left:R+s.x+"px",display:"block"}):c.set(this._centerNode,"display","none")}else c.set(this._underlayNode,"display","none"),c.set(this._centerNode,"display","none");if(null===this._resizeCheck){var k=this;this._resizeCheck=setInterval((function(){k._size()}),100)}}},_cloneStyles:function(e){i.forEach(e,(function(e){c.set(this._underlayNode,e,c.get(this.target,e))}),this)},_fadeIn:function(){var e=this,t=h.animateProperty({duration:e.duration,node:e._underlayNode,properties:{opacity:{start:0,end:e.opacity}}}),i=h.animateProperty({duration:e.duration,node:e._centerNode,properties:{opacity:{start:0,end:1}},onEnd:function(){e.onShow(),delete e._anim}});this._anim=p.combine([t,i]),this._anim.play()},_fadeOut:function(){var e=this,t=h.animateProperty({duration:e.duration,node:e._underlayNode,properties:{opacity:{start:e.opacity,end:0}},onEnd:function(){c.set(this.node,{display:"none",zIndex:"-1000"})}}),i=h.animateProperty({duration:e.duration,node:e._centerNode,properties:{opacity:{start:1,end:0}},onEnd:function(){c.set(this.node,{display:"none",zIndex:"-1000"}),e.onHide(),e._enableOverflow(),delete e._anim}});this._anim=p.combine([t,i]),this._anim.play()},_ignore:function(e){e&&n.stop(e)},_scrollerWidths:function(){var e=s.create("div");c.set(e,{position:"absolute",opacity:0,overflow:"hidden",width:"50px",height:"50px",zIndex:"-100",top:"-200px",padding:"0px",margin:"0px"});var t=s.create("div");c.set(t,{width:"200px",height:"10px"}),e.appendChild(t),u.body().appendChild(e);var i=l.getContentBox(e);c.set(e,"overflow","scroll");var n=l.getContentBox(e);return u.body().removeChild(e),{v:i.w-n.w,h:i.h-n.h}},_setTextAttr:function(e){this._textNode.innerHTML=e,this.text=e},_setColorAttr:function(e){c.set(this._underlayNode,"backgroundColor",e),this.color=e},_setImageTextAttr:function(e){a.set(this._imageNode,"alt",e),this.imageText=e},_setImageAttr:function(e){a.set(this._imageNode,"src",e),this.image=e},_setCenterIndicatorAttr:function(e){this.centerIndicator=e,"image"===e?(this._centerNode=this._imageNode,c.set(this._textNode,"display","none")):(this._centerNode=this._textNode,c.set(this._imageNode,"display","none"))},_setTargetAttr:function(e){if("string"==typeof e){var t=m.byId(e);this._set("target",t?t.domNode:r.byId(e))}},_disableOverflow:function(){if(this.target===u.body()||this.target===u.doc){this._overflowDisabled=!0;var e=u.body();if(e.style&&e.style.overflow?this._oldOverflow=c.get(e,"overflow"):this._oldOverflow="",o("ie")&&!o("quirks")){if(e.parentNode&&e.parentNode.style&&e.parentNode.style.overflow)this._oldBodyParentOverflow=e.parentNode.style.overflow;else try{this._oldBodyParentOverflow=c.get(e.parentNode,"overflow")}catch(e){this._oldBodyParentOverflow="scroll"}c.set(e.parentNode,"overflow","hidden")}c.set(e,"overflow","hidden")}},_enableOverflow:function(){if(this._overflowDisabled){delete this._overflowDisabled;var e=u.body();if(o("ie")&&!o("quirks")&&(e.parentNode.style.overflow=this._oldBodyParentOverflow,delete this._oldBodyParentOverflow),c.set(e,"overflow",this._oldOverflow),o("webkit")){var t=s.create("div",{style:{height:"2px"}});e.appendChild(t),setTimeout((function(){e.removeChild(t)}),0)}delete this._oldOverflow}}})}),e,t),e.exports=o},function(e,t,n){var o,r;o=[n(221),n(203),n(210),n(217),n(1046),n(344),n(647),n(1240)],r=n.dj.d(o,(function(e,t,n,o,r,a,s,l){return t([s,l],{handles:["document"],constructor:function(e){this.actionService=e},addToContainer:function(e,t){this.inherited(arguments),!1!==t.active&&t.wrapper.set(a.IS_SELECTED,!0)},createContainer:function(e){var t,n,o;if(e.typeInfo&&this.actionService)for(t in e.typeInfo)if(n=e.typeInfo[t].plusActions)for(i=0;i<n.length;i++)"string"==typeof(o=n[i])&&(n[i]=this.actionService.getAction(o));var a=new r({animationEnabled:!1,id:e.id,typeInfo:e.typeInfo,groupTabsByType:!0});return this.onCreate(e.id,a,!0),a},_createWrapper:function(e){var t=this.inherited(arguments);return t.documentType=e.documentType,t.focusUponShow=e.focusUponShow,t.connect(t,"resize",(function(){e.onResize&&e.onResize(e)})),t},destroyContainer:function(e){this.onDestroy(e.id,!0),this.inherited(arguments)},updateModule:function(e,t,i,n,o){"active"===i&&!0===o?t.wrapper.set(a.IS_SELECTED,!0):this.inherited(arguments)}})}),e,t),e.exports=r},function(e,t,i){var n,o;n=[i(203),i(8386),i(647),i(1240)],o=i.dj.d(n,(function(e,t,i,n){return e([i,n],{handles:["main"],createContainer:function(e){var i=new t({id:e.id,style:"width:100%;height:100%;",selectionManager:{registerContainer:function(){}}});return this.footer&&i.setFooter(this.footer),e.initialState&&i.setState(e.initialState),this.onCreate(e.id,i),i},destroyContainer:function(e){this.onDestroy(e.id),this.inherited(arguments)},setContainerStates:function(e){t.stateIncludes(e.main,"cfb")&&t.stateIncludes(e.main,"workspace")&&t.stateIncludes(e.main,"commandWindow")&&this.inherited(arguments)},setFooter:function(e){this._containers.main&&this._containers.main.setFooter(e),e&&(this.footer=e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1730)],o=i.dj.d(n,(function(e,t){var i=e([t],{});return i.IS_LEFT_COLLAPSED=t.IS_LEFT_COLLAPSED,i.IS_RIGHT_COLLAPSED=t.IS_RIGHT_COLLAPSED,i.IS_BOTTOM_COLLAPSED=t.IS_BOTTOM_COLLAPSED,i.LEFT_WIDTH=t.LEFT_WIDTH,i.RIGHT_WIDTH=t.RIGHT_WIDTH,i.BOTTOM_HEIGHT=t.BOTTOM_HEIGHT,i.REGION_IS_COLLAPSED=t.REGION_IS_COLLAPSED,i.stateIncludes=t.stateIncludes,i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(464),i(647),i(1240)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n,o],{handles:["split"],createContainer:function(e){var t=new i({id:e.id});return this._containers[e.id]=t,this.onCreate(e.id,t),t},destroyContainer:function(e){this.onDestroy(e.id),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(203),i(302),i(210),i(217),i(238),i(1065),i(647)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return t([s],{handles:["tabgroup"],updateModule:function(t,i,r,a,s){"active"===r&&!0===s?(t.widget.selectChild(i.wrapper,!0),e("ie")&&(n.add(i.wrapper.domNode,"repaint"),o.position(i.wrapper.domNode),n.remove(i.wrapper.domNode,"repaint"))):this.inherited(arguments)},_createWrapper:function(e){var t=this.inherited(arguments);return t.connect(t,"resize",(function(){e.onResize&&e.onResize(e)})),t},createContainer:function(e){var t=new a({id:e.id,useMenu:!1,style:"width:100%;height:100%;"});return i.connect(t,"selectChild",(function(t){return function(e,t){e.focusOnTabChildren&&r.focus(t.domNode)}(e,t)})),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(246),i(242),i(223),i(206),i(2537),i(647),i(1228)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([l,c],{handles:["dialog"],addToContainer:function(e,t){t.wrapper.show(),t.widget.startup()},removeModule:function(e,t){t.wrapper.destroyRecursive()},createContainer:function(){},destroyContainer:function(){},_createWrapper:function(e){e.dialogClass=e.dialogClass||e.class,e.refocus=!1;var t=this.createModalDialogWrapper(e);return this._addWrapperEvents(t,e),t.onCancel=t.onClose,t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(302),i(204),i(279),i(242),i(225),i(227),i(211),i(217),i(214),i(2625),i(647),i(1011),i(229)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([u],{handles:["floatingPane"],dialogPositions:{},signals:{},addToContainer:function(e,t){var i=n.getBox(),o=this;t.wrapper.startup(),t.wrapper.bringToTop(),t.wrapper.show(),t.wrapper.set("title",e.title),t.wrapper._moveable.mover=h,t.wrapper.resizable&&(t.wrapper.fullResizeHandle.set("constrainMax",!0),t.wrapper.fullResizeHandle.set("maxSize",i)),"chNonModalDialog"===t.parentId&&(this.signals.chNonModalDialog=c.after(t.wrapper._moveable,"onMoveStop",(function(){o._saveCHNonModalDialogPosition(t)}))),"inspectorNonModalDialog"===t.parentId&&(this.signals.inspectorNonModal=c.after(t.wrapper._moveable,"onMoveStop",(function(){o._saveInspectorNonModalDialogPosition(t)}))),"webDdgNonModalDialog"===t.parentId&&t.wrapper.set("title",t.title),"rteNonModalFindDialog"===t.parentId&&t.wrapper.set("title",t.title)},removeModule:function(e,t){t.wrapper&&(t.wrapper.destroyRecursive(),this.signals.chNonModalDialog&&this.signals.chNonModalDialog.remove(),this.signals.inspectorNonModalDialog&&this.signals.inspectorNonModalDialog.remove())},createContainer:function(){},destroyContainer:function(){},_createWrapper:function(e){var c,u,h,f;e.parentId&&(h=e.parentId+"floating",c=r(e.parentId));var g,m=n.getBox();if("veNonModalDialog"===e.parentId)g="top:"+parseInt(m.h/2-200,10)+"px;left:"+parseInt(m.w/2-150,10)+"px;",f=e.style+g,u=function(){t.publish("/nonModalDialogClose")};else if("chNonModalDialog"===e.parentId){var _,v;if(this.dialogPositions.chNonModalDialog)(_=m.h<this.dialogPositions.chNonModalDialog.y+this.dialogPositions.chNonModalDialog.h?m.h-this.dialogPositions.chNonModalDialog.h:this.dialogPositions.chNonModalDialog.y)<0&&(_=0),(v=m.w<this.dialogPositions.chNonModalDialog.x+this.dialogPositions.chNonModalDialog.w?m.w-this.dialogPositions.chNonModalDialog.w:this.dialogPositions.chNonModalDialog.x)<0&&(v=0),g="top:"+_+"px;left:"+v+"px;";else g="top:"+parseInt(m.h/2-202,10)+"px;left:"+parseInt(m.w/2-153,10)+"px;";f=e.style+g,u=function(){t.publish("/chNonModalDialogClose")}}else if("rteNonModalFindDialog"===e.parentId)u=function(){setTimeout(i.hitch(e.widget,"onClose"),550)};else if("inspectorNonModalDialog"===e.parentId){var b=parseInt(m.h/2-300,10),y=parseInt(m.w/2-150,10),C=600,T=300;this.dialogPositions.inspectorNonModalDialog&&(b=this.dialogPositions.inspectorNonModalDialog.y,y=this.dialogPositions.inspectorNonModalDialog.x,T=Math.max(this.dialogPositions.inspectorNonModalDialog.h,100),C=Math.max(this.dialogPositions.inspectorNonModalDialog.w,100)),(b+T>m.h||y+C>m.w)&&(b=parseInt(m.h/2-300,10),y=parseInt(m.w/2-150,10),C=600,T=300),g="top:"+b+"px;left:"+y+"px;width:"+C+"px;height:"+T+"px;",f=e.style+g;var E=this;u=function(){e.wrapper&&e.wrapper.domNode&&(E.dialogPositions.inspectorNonModalDialog=l.position(e.wrapper.domNode)),setTimeout(i.hitch(e.widget,"onClose"),550)}}else"webDdgNonModalDialog"===e.parentId&&(f=e.style,u=function(){setTimeout(i.hitch(e.widget,"onClose"),550)});if(a.byId(h)||s.create("div",{id:h},o.body()),!c.hasOwnProperty("startup")){var S={title:e.title||"",id:"webDdgNonModalDialog"===e.parentId?e.parentId+"_"+p.generateUuid():e.parentId,resizable:"rteNonModalFindDialog"!==e.parentId,dockable:!1,style:f};e.class&&(S.class=e.class),(c=new d(S,a.byId(h))).duration=500,this._addWrapperEvents(c,e),c.onClose=u,e.widget.close=i.hitch(c,"close"),c.set("content",e.widget),e.hasOwnProperty("alwaysOnTop")&&c.setAlwaysOnTop(!0===e.alwaysOnTop)}return c},getDialogPositions:function(){return this.dialogPositions},setDialogPositions:function(e){e&&(this.dialogPositions=e)},_saveCHNonModalDialogPosition:function(e){this.dialogPositions.chNonModalDialog=l.position(e.wrapper.domNode)},_saveInspectorNonModalDialogPosition:function(e){this.dialogPositions.inspectorNonModalDialog=l.position(e.wrapper.domNode)}})}),e,t),e.exports=o},function(e,t){e.exports='<div tabindex="0" class="mwNonModalDialog dojoxFloatingPane" id="${id}">\n\t<div role="button" class="dojoxFloatingPaneTitle dijitDialogTitleBar" dojoAttachPoint="focusNode">\n \x3c!--\n This template is required because the dojox Floating pane template uses onClick Event instead of ondijitclick,\n which causes some issues with Ipad. Dojo ticket for dialogs not closing on touch devices: http://bugs.dojotoolkit.org/ticket/13488\n the fix was implemented in _onDijitClickMixin() so using ondijitclick solves the problem.\n\n This template also groups the icons into a div so that it can be absolute positioned which\n allows it to be stacked on top of the title node. Previously long titles were overlapping\n the icons making them unclickable, z-index does not work because the buttons are floats.\n g985154\n --\x3e\n\t\t<span style="float:left" dojoAttachPoint="titleNode" class="dijitInline dijitTitleNode dijitDialogTitle"></span>\n\n <div class="dojoxFloatingIconContainer">\n <span dojoAttachPoint="closeNode" dojoAttachEvent="ondijitclick: close" class="dojoxFloatingCloseIcon"></span>\n <span dojoAttachPoint="maxNode" dojoAttachEvent="ondijitclick: maximize" class="dojoxFloatingMaximizeIcon">&thinsp;</span>\n <span dojoAttachPoint="restoreNode" dojoAttachEvent="ondijitclick: _restore" class="dojoxFloatingRestoreIcon">&thinsp;</span>\n <span dojoAttachPoint="dockNode" dojoAttachEvent="ondijitclick: minimize" class="dojoxFloatingMinimizeIcon">&thinsp;</span>\n </div>\n\t</div>\n\t<div dojoAttachPoint="canvas" class="dojoxFloatingPaneCanvas">\n\t\t<div dojoAttachPoint="containerNode" role="region" tabindex="-1" class="${contentClass}">\n\t\t</div>\n\t</div>\n <span dojoAttachPoint="resizeHandle" class="dojoxFloatingResizeHandle"></span>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(210),i(213),i(211),i(217),i(2539),i(256),i(222),i(248),i(206),i(204),i(279)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([s],{constructor:function(e,t){this._resizeHandlers={topLeft:"",top:"",topRight:"",right:"",bottomRight:"",bottom:"",bottomLeft:"",left:""},this.targetId=e.id,this._addExistingResizeHandlers(t),this._addResizeHandlers(e),this._emitResizeEvents(),this.set("minSize",{w:30,h:30})},set:function(e,t){for(var i in this._resizeHandlers)this._resizeHandlers[i][e]=t,"maxSize"===e&&(this._resizeHandlers[i].constrainMax=t)},setActivityContainer:function(e){this._activityContainer=e},getActivityLimitBox:function(){var e;if(this._activityContainer){var t=this._activityContainer.getBoundingClientRect();e={l:t.left,t:t.top,w:t.width,h:t.height}}else e=u.getBox();return e},_addExistingResizeHandlers:function(e){if(e&&"object"==typeof e)for(var t in e)if(this._resizeHandlers.hasOwnProperty(t)){var i=e[t],n=this._getResizeHandleProps(t);i.domNode.classList.remove("dojoxResizeHandle"),i.domNode.classList.add(...n.classes),i._checkConstraints=this._checkResizeConstraintsFunc(i,t),this._addTouchEventHandler(i.domNode),this._resizeHandlers[t]=i}},_addResizeHandlers:function(e){for(var t in this._resizeHandlers)this._resizeHandlers[t]||(this._resizeHandlers[t]=this._createResizeHandler(e,t))},_emitResizeEvents:function(){var e=this;a.subscribe("/dojo/resize/start",(function(t){t.targetId===e.targetId&&e.emit("resizeStart",t)})),a.subscribe("/dojo/resize/stop",(function(t){t.targetId===e.targetId&&e.emit("resizeStop",t)}))},_addTouchEventHandler:function(e){var t=this;c(e,l.press,(function(e){t.emit("touchPress",e)}))},_addMarginOrBorder:function(e,t,i){switch(e){case"margin":i.w+=t.mw,i.h+=t.mh;break;case"border":i.w+=t.pbw,i.h+=t.pbh}return i},_isEventValid:function(e){try{if(!e.clientX||!e.clientY)return!1}catch(e){return!1}return!0},_calculateTopPosition:function(e,t,i,n,r,a){return e.h===r?e.t=o.position(t,!0).y+a:e.t=n.t+i.h-e.h,e.t<0&&(e.h=e.h+e.t,e.t=0),e},_getNewCoordsFunction:function(e,t){var i=this._getResizeChangeDirection(t),n=this;return function(t,r,a){if(!n._isEventValid(t))return!1;var s=t.clientX-this.startPoint.x,l=t.clientY-this.startPoint.y,c=this.startSize.w+(this._resizeX?i.x*s:0),d=this.startSize.h+(this._resizeY?i.y*l:0),u=this._checkConstraints(c,d),h=e.getBeginPos();return-1===i.x&&(u.w===c?u.l=o.position(this.targetDomNode,!0).x+s:u.l=h.l+this.startSize.w-u.w),-1===i.y&&(u=n._calculateTopPosition(u,this.targetDomNode,this.startSize,h,d,l)),n._addMarginOrBorder(r,this.startSize,u)}},_checkResizeConstraintsFunc:function(e,t){var n=d.hitch(e,e._checkConstraints),r=this;return function(e,a){var s={},l=n(e,a),c=r.getActivityLimitBox();if(c){var d=o.position(this.targetDomNode),u=2*(i.get(this.targetDomNode,"borderTopWidth")+i.get(this.targetDomNode,"borderBottomWidth")),h=2*(i.get(this.targetDomNode,"borderLeftWidth")+i.get(this.targetDomNode,"borderRightWidth")),p=c,f=r._getResizeChangeDirection(t);-1===f.x?s.w=Math.min(l.w,Math.floor(d.x+this.targetDomNode.clientWidth)):s.w=Math.min(l.w,Math.floor(p.w-(d.x+h))),-1===f.y?s.h=Math.min(l.h,Math.floor(d.y+this.targetDomNode.clientHeight)):s.h=Math.min(l.h,Math.floor(p.h-(d.y+u)))}else s=l;return s}},_getResizeHandleProps:function(e){var t=["resizeHandle_"+e],i="xy";switch(e){case"topLeft":case"topRight":case"bottomRight":case"bottomLeft":t.push("resizeCornerNode");break;case"left":case"right":t.push("resizeEdgeNode"),i="x";break;case"top":case"bottom":t.push("resizeEdgeNode"),i="y";break;default:console.log("does not have a handler in ",e)}return{classes:t,resizeAxis:i}},_createResizeHandler:function(e,t){var i={},a=this._getResizeHandleProps(t),s=new r({resizeAxis:a.resizeAxis,targetId:e.id},n.place("<div></div>",e));s.domNode.classList.remove("dojoxResizeHandle"),s.domNode.classList.add(...a.classes);var l=s._beginSizing;return s._beginSizing=function(t){var n=o.position(e,!0);i={l:n.x,t:n.y},l.bind(this)(t)},s.getBeginPos=function(){return i},s._getNewCoords=this._getNewCoordsFunction(s,t),s._checkConstraints=this._checkResizeConstraintsFunc(s,t),this._addTouchEventHandler(s.domNode),s},_getResizeChangeDirection:function(e){var t=1,i=1;return e.toLowerCase().includes("left")&&(t=-1),e.toLowerCase().includes("top")&&(i=-1),{x:t,y:i}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(302),i(213),i(242),i(214),i(223),i(238),i(647),i(209),i(1015)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([l],{handles:["appWindow"],originalWindow:o.global,addToContainer:function(e,t){t.widget.startup()},removeModule:function(e,t){t.wrapper.close()},updateModule:function(e,t,n,o,r){"softClose"===n&&r?i.disconnect(t.onBeforeUnload):this.inherited(arguments)},createContainer:function(){},destroyContainer:function(){},_createWrapper:function(e){var t=o.global.open("appWindowDev.html",e.id,this._parseOptions(e));return t.onload=function(){t.document.title=e.title||"MATLAB",e.widget.placeAt(t.document.body),setTimeout((function(){e.wrapper.inset={width:e.wrapper.outerWidth-e.wrapper.innerWidth,height:e.wrapper.outerHeight-e.wrapper.innerHeight}}),0),e.focusHandle=s.registerWin(t)},e.oldWidth=n.get(e.widget.domNode,"width"),e.oldHeight=n.get(e.widget.domNode,"height"),this._addWidgetResizeListener(t,e),this._addWindowEvents(t,e),t},_addWidgetResizeListener:function(e,t){i.connect(t.widget,"resize",(function(){t.timeout&&clearTimeout(t.timeout),t.timeout=setTimeout((function(){delete t.timeout;var e=n.get(t.widget.domNode,"width"),i=n.get(t.widget.domNode,"height");if(e>0&&i>0){var o=t.wrapper.inset;t.wrapper.resizeTo(e+o.width,i+o.height)}}),250)}))},_addWindowEvents:function(e,t){var n=this;t.onBeforeUnload=i.connect(e,"onbeforeunload",(function(e){if(this.refreshFlag)return this.refreshFlag=!1,e.returnValue=d.closeGuiConfirmation,d.closeGuiConfirmation})),i.connect(e,"onunload",(function(i){e.active&&(o.setContext(n.originalWindow,n.originalWindow.document),t.widget.onClose&&t.widget.onClose(arguments),t.focusHandle.remove())})),i.connect(e,"onfocus",(function(i){o.setContext(e,e.document),t.widget.onFocus&&t.widget.onFocus(arguments)})),i.connect(e,"onblur",(function(e){o.setContext(n.originalWindow,n.originalWindow.document),t.widget.onBlur&&t.widget.onBlur(arguments)})),i.connect(e,"onkeydown",(function(e){var t=e.which||e.keyCode,i=String.fromCharCode(e.keyCode).toUpperCase();t===a.F5||e.ctrlKey&&"R"===i||e.metaKey&&"R"===i?this.refreshFlag=!0:this.refreshFlag=!1}))},_parseOptions:function(e){var t=[];return e.top&&e.left&&("number"==typeof e.top&&"number"==typeof e.left?(t.push("top="+e.top),t.push("left="+e.left)):c.log.error("Top and Left should be numbers")),e.width&&e.height&&("number"==typeof e.width&&"number"==typeof e.height?(t.push("width="+e.width),t.push("height="+e.height)):c.log.error("Width and height should be numbers")),t.join(",")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(302),i(204),i(279),i(242),i(225),i(227),i(211),i(217),i(213),i(214),i(231),i(2625),i(647)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e([p],{handles:["dockableFloatingPane"],addToContainer:function(e,t){t.wrapper.startup(),!1!==t.active&&!0!==t.minimized&&t.wrapper.bringToTop(),t.wrapper.show()},removeModule:function(e,t){t.wrapper&&(t.wrapper.set("content",""),delete t.wrapper.close,t.wrapper.forceClose())},createContainer:function(){},destroyContainer:function(){},updateModule:function(e,t,i,n,o){this.inherited(arguments),"top"===i&&c.set(t.wrapper.domNode,{top:o+"px"}),"left"===i&&c.set(t.wrapper.domNode,{left:o+"px"}),"active"===i&&!0===o&&!0!==t.minimized&&t.wrapper.bringToTop(),"minimized"===i&&(!0===o?t.wrapper.hide(!0):t.wrapper.show());var r=this;t._sizeDirty||(t._sizeDirty=setTimeout((function(){r._updateSize(t.wrapper,t),t._sizeDirty=!1}),0))},_createWrapper:function(e){var t,i,n;e.parentId&&(i=e.parentId+"floating"),e.titleHeight=22,n="top:"+e.top+"px;left:"+e.left+"px;",a.byId(i)||s.create("div",{id:i},o.body());var r=document.getElementsByClassName("taskbarSide")[0],l=r&&u.byNode(r),c=a.byId("motw");return(t=new h({title:e.title||"",id:e.id,resizable:e.resizable,dockable:!!l,dockTo:l,autofocus:!1!==e.autofocus,style:n,class:e.class,maximizeTo:c},a.byId(i))).close=function(){var t=e.widget.onClose();return!!t&&this.inherited("close",arguments)},this._addListeners(t,e),t.set("content",e.widget),this._updateSize(t,e),e.hasOwnProperty("alwaysOnTop")&&t.setAlwaysOnTop(!0===e.alwaysOnTop),t},_addListeners:function(e,t){e.own(d.after(e._moveable,"onMoveStop",(function(){t.onMove&&t.wrapper&&t.onMove(t),this._naturalState=l.position(e.domNode)})));var i=this;e.own(d.after(e,"resize",(function(n){if(!e.minimized){if(n&&e.canvas&&e.containerNode){var o=l.position(e.canvas);c.set(e.containerNode,{position:"relative",width:o.w+"px",height:o.h+"px"}),!t._updating&&t.onResize&&t.onResize(t)}else i._updateSize(e,t);this._naturalState=l.position(e.domNode)}}),!0)),e.own(d.after(e,"onMinimize",(function(){t.onMinimize&&t.onMinimize(t)}))),e.own(d.after(e,"_onShow",(function(){t.onWindowShow&&t.onWindowShow(t)}))),e.own(d.after(e,"onBringToTop",(function(){t.onBringToTop&&t.onBringToTop(t)})))},_updateSize:function(e,t){if(t._updating=!0,t.widget.domNode){var i=l.position(t.widget.domNode);0!==i.w&&0!==i.h&&(c.set(e.domNode,{width:i.w+"px",height:i.h+t.titleHeight+"px"}),c.set(e.canvas,{width:i.w+"px",height:i.h+"px"}),c.set(e.containerNode,{position:"relative",width:i.w+"px",height:i.h+"px"})),this._naturalState=l.position(e.domNode)}setTimeout((function(){t._updating=!1}),0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(228),i(210),i(238),i(276),i(209),i(339),i(560),i(304),i(8396),i(8401),i(8402)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){return e(null,{_layoutIdToDocumentTypeMap:{editor:"editorFile",liveEditor:"liveCodeFile",figure:"figure",mggDocked:"figure",vEditor2:"variable",embeddedFigureDocked:"embeddedfigure",mggMorphed:"embeddedfigure"},constructor:function(e){this._layoutService=e.layoutService,this._uiContainer=e.uiContainer,this._documentIdToWidgetIdMap={},this.layoutStore=e.layoutService.layoutStore,this._uiContainer&&this._uiContainer.watch(c.SELECTED_CHILD,(function(e,t,i){t&&t.domNode&&o.remove(t.domNode,"focused"),i&&i.domNode&&o.add(i.domNode,"focused")}))},addWidget:function(e,t,n,o){var a=this;if("mggDocked"!==t&&"mggFloatingPane"!==t||(n.busyIndicator=new l,n.busyIndicator.set("target",n.domNode)),"workspace"===e)this._uiContainer.addPanel(n,new d({panelId:e,title:u.title,closable:!1,qabControlToActionMap:{}})),this._uiContainer.getChildProperties("workspace").watch("isOpen",function(e,t,i){let n=this._uiContainer.uiBuilder.tagToId("motwToolstrip.matlabTab.environment.layout.list.show.list.workspace");!0===i?this._uiContainer.uiBuilder.set(n,"selected",!0):!1===i&&this._uiContainer.uiBuilder.set(n,"selected",!1)}.bind(this));else if("editor"===t||"liveEditor"===t||"vEditor2"===t||"mggMorphed"===t||"mggDocked"===t||"embeddedFigureDocked"===t){if("embeddedFigureDocked"===t&&(n=this._createWrapper(n)),"mggDocked"===t||"mggMorphed"===t)if(o.hasOwnProperty("morphId")&&""!==o.morphId){if(this._getProperties(o.morphId)){c=this._getProperties(o.morphId);var s=this._uiContainer.getChildWidget(c);return this._createWrapper(n,s),void(this._documentIdToWidgetIdMap[e]=s.id)}o.morphId!==e&&(n=this._createWrapper(n),this._documentIdToWidgetIdMap[o.morphId]=n.id)}else n=this._createWrapper(n);if(this._documentIdToWidgetIdMap[e]=n.id,"embeddedFigureDocked"===t)var c=new h({documentType:this._layoutIdToDocumentTypeMap[t],title:o.title,description:o.tooltip,closable:!0,widget:n});else if("vEditor2"===t)c=new p({documentType:this._layoutIdToDocumentTypeMap[t],title:o.title,description:o.tooltip,closable:!0,widget:n});else c=new d({documentType:this._layoutIdToDocumentTypeMap[t],title:o.title,description:o.tooltip,closable:!0});n.onClose&&(c.canClose=function(){return c.closeRequest=new i,c.closePreApproved?c.closeRequest.resolve():n.onClose(n.getParent(),n),c.closeRequest.promise}),this._uiContainer.addDocument(n,c),c.watch(d.IS_OPEN,(function(t,i,n){n||delete a._documentIdToWidgetIdMap[e]})),c.watch(d.IS_SELECTED,(function(e,t,i){i&&n.domNode&&r.activeStack.indexOf(n.domNode.id)<0&&r.focus(n.domNode)}))}else o.hasOwnProperty("morphId")&&""!==o.morphId&&this._getProperties(o.morphId)&&this.removeWidget(o.morphId),this._layoutService.addWidget(e,t,n,o)},removeWidget:function(e){if("workspace"===e)this._uiContainer.removePanel(e);else{var t=this._getProperties(e);if(t)t.closeRequest?t.closeRequest.resolve():(t.closePreApproved=!0,t.set(d.IS_OPEN,!1));else if(this._layoutService.removeWidget(e),0!==e.indexOf("mgg")){var i=void 0;this._uiContainer&&(i=this._uiContainer._focusManager.lastPermanentFocus),i&&r.focus(i)}}},removeWidgetsWithParentId:function(e){this._layoutService.removeWidgetsWithParentId(e)},removeWidgetsWithLayoutId:function(e){this._layoutService.removeWidgetsWithLayoutId(e)},closeAppWindows:function(){this._layoutService.closeAppWindows()},showWidget:function(e){var t=this._getProperties(e);t?t.set(d.IS_SHOWING,!0):this._layoutService.showWidget(e)},focusWidget:function(e){var t=this._getProperties(e);t?t.set(d.IS_SELECTED,!0):this._layoutService.focusWidget(e)},disableWidget:function(e){},enableWidget:function(e){},updateWidget:function(e,t,i){var n=this._getProperties(e);n?"title"===t?(n.set(d.TITLE,i),n.set(d.DESCRIPTION,i)):"tooltip"===t?n.set(d.DESCRIPTION,i):t===d.ACTIVE_CONTEXTS?n.set(d.ACTIVE_CONTEXTS,i):"arialabel"===t&&n.set("arialabel",i):this._layoutService.updateWidget(e,t,i)},updateWidgetsWithLayoutId:function(e,t,i){this._layoutService.updateWidgetsWithLayoutId(e,t,i)},ensureParentExistsInStore:function(e){this._layoutService.ensureParentExistsInStore(e)},_getProperties:function(e){var t=this._documentIdToWidgetIdMap[e];return t?this._uiContainer.getChildProperties(t):null},_createWrapper:function(e,t){return t?t.set("content",e):t=new a({id:e.id+"Wrapper",content:e}),e.wrapper=t,n.set(t.domNode,"tabindex",0),e.onClose&&(t.onClose=function(){return e.onClose(arguments)}),e.onShow&&(t.onShow=function(){return e.onShow(arguments)}),e.onFocus&&(t.onFocus=function(){return e.onFocus(arguments)}),e.onBlur&&(t.onBlur=function(){return e.onBlur(arguments)}),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8397),i(8398),i(8399),i(8400)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/workspace",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={title:"ワークスペース",name:"名前",size:"サイズ",value:"値",className:"クラス"}},function(e,t,i){e.exports={title:"작업 공간",name:"이름",size:"크기",value:"값",className:"클래스"}},function(e,t,i){e.exports={title:"工作区",name:"名称",size:"大小",value:"值",className:"类"}},function(e,t,i){e.exports={root:{title:"workspace",name:"name",size:"size",value:"value",className:"class"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(206),i(304),i(291),i(297)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{widget:void 0,focus:function(){this.widget&&(this._handleFocusReceived(),this.widget.domNode.focus(),t.once(this.widget.domNode,"focusout",function(){this._focusLostCallback()}.bind(this)),this.widget.domNode.addEventListener("keydown",this._keydownCallback))},getChannelID:function(){let e=null;return this.widget&&(e=this.widget.content.data.channel),e},sendCommandToServer:function(e){n.getMVM().eval(e,new o).then((function(e){}),(function(e){}))},_focusLostCallback:function(){this.widget.domNode.removeEventListener("keydown",this._keydownCallback),this._handleFocusLost()},_keydownCallback:function(e){9===e.keyCode&&e.preventDefault()},_createFocusReceivedCode:function(e){return"matlab.graphics.interaction.internal.keyboardNavigation.FigureFocusService.handleFigureFocusReceived('"+e+"')"},_createFocusLostCode:function(e){return"matlab.graphics.interaction.internal.keyboardNavigation.FigureFocusService.handleFigureFocusLost('"+e+"')"},_handleFocusReceived:function(){let e=this.getChannelID();if(null===e)return;let t=this._createFocusReceivedCode(e);this.sendCommandToServer(t)},_handleFocusLost:function(){let e=this.getChannelID();if(null===e)return;let t=this._createFocusLostCode(e);this.sendCommandToServer(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(304)],o=i.dj.d(n,(function(e,t){return e([t],{widget:void 0,focus:function(){this.widget&&this.widget.focusWidget&&this.widget.focusWidget()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(560),i(1820)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{save:function(e,t){this._isFrozen||(e.indexOf("Layout")>=0?this._pendingSavedLayout=t:e.indexOf("Documents")>=0&&(this._pendingSavedDocuments=t))},retrieve:function(e){var t=new i;return e.indexOf("Layout")>=0?null!=this._pendingReceivedLayout?(this._fulfillRetrieval(t,this._pendingReceivedLayout,"layout"),delete this._pendingReceivedLayout):this._pendingRetrieval=t:e.indexOf("Documents")>=0?null!=this._pendingReceivedDocuments?(this._fulfillRetrieval(t,this._pendingReceivedDocuments,"documents"),delete this._pendingReceivedDocuments):this._pendingDocumentRetrieval=t:t.reject(e+" Retrieval not supported"),t.promise},freezeState:function(){this._isFrozen=!0},thawState:function(){this._isFrozen=!1},setLayoutState:function(e){this._pendingRetrieval?(this._fulfillRetrieval(this._pendingRetrieval,e,"layout"),delete this._pendingRetrieval):this._pendingReceivedLayout=e},getLayoutState:function(){return this._pendingSavedLayout},setDocumentsState:function(e){this._pendingDocumentRetrieval?(this._fulfillRetrieval(this._pendingDocumentRetrieval,e,"documents"),delete this._pendingDocumentRetrieval):this._pendingReceivedDocuments=e},getDocumentsState:function(){return this._pendingSavedDocuments},_validateLayoutState:function(e){return n.stateIncludes(e,"cfb")&&n.stateIncludes(e,"workspace")&&n.stateIncludes(e,"commandWindow")},_validateDocumentState:function(e){return Array.isArray(e)},_fulfillRetrieval:function(e,t,i){"layout"===i&&this._validateLayoutState(t)||"documents"===i&&this._validateDocumentState(t)?e.resolve(t):e.reject("No valid data recieved for "+i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1012),i(1650)],o=i.dj.d(n,(function(e,t){var i={};return i[e.UNDO]=t.UNDO,i[e.REDO]=t.REDO,i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){this._uiBuilder=e.uiBuilder,this._unsupportedTags=[]},start:function(){this._listener||(this._removeUnsupportedTags(),this._listener=t.after(this._uiBuilder,"add",function(){this._removeUnsupportedTags()}.bind(this)))},stop:function(){this._listener&&this._listener.remove(),this._listener=null},_removeUnsupportedTags:function(){this._unsupportedTags.forEach(function(e){try{var t=this._uiBuilder.tagToId(e);t&&this._uiBuilder.remove(t)}catch(e){}}.bind(this))},hideTags:function(e){Array.isArray(e)||(e=[e]),this._unsupportedTags=this._unsupportedTags.concat(e),this.start()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(221),i(8407),i(8409),i(341),i(8410),i(226),i(299),i(535)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c="motwToolstrip.matlabTab.file.openColumn",d="motwToolstrip.matlabTab.simulink",u="motwToolstrip.matlabTab.environment.setPathColumn",h="motwToolstrip.matlabTab.file.column4",p="motwToolstrip.matlabTab.help.column3",f="motwToolstrip.matlabTab.simulink.column1";return e(null,{constructor:function(e){if(!(e=e||{}).uiBuilder)throw new Error("A UIBuilder instance needs to be provided!");if(!e.contextManager)throw new Error("A ContextManager instance needs to be provided!");this._uiBuilder=e.uiBuilder,this._contextManager=e.contextManager,this._featureService=e.featureService},build:function(){this._buildComponentsFromGlobalConfig(),this._buildConditionalComponents()},_buildComponentsFromGlobalConfig:function(){this._uiBuilder.createPopupsFromConfig(i),this._uiBuilder.createPopupsFromConfig(r),this._uiBuilder.addTabGroupFromConfig(n,"motwToolstrip.globalTabGroup"),this._contextManager.register("TabGroups",{appId:"desktop",contextId:"global",tabGroupTags:["motwToolstrip.globalTabGroup"]})},_buildConditionalComponents:function(){this._createUploadDownLoadColumn(),!0===o.getFeatureStatus(o.FeatureNames.SIMULINK)&&this._createSimulinkSection(),!0===o.getFeatureStatus(o.FeatureNames.MATLAB_LOCAL)&&this._createOpenColumn(),!0===o.getFeatureStatus(o.FeatureNames.SET_PATH)&&this._createSetPathColumn(),this._featureService.getFeature("motw.internal.geckobutton").isEnabled()&&this._createGeckoColumn(),this._featureService.getFeature("motw.internal.serverscreenshot").isEnabled()&&this._createServerScreenshotColumn()},_createSimulinkSection:function(){var e=this._uiBuilder.create({tag:d,type:a.SECTION,title:l.simulinkSectionTitle}),t=this._uiBuilder.create({tag:"motwToolstrip.matlabTab.simulink.column",type:a.COLUMN,parentId:e});this._uiBuilder.create({tag:"motwToolstrip.matlabTab.simulink.simulink",actionId:s.SIMULINK,type:a.PUSH_BUTTON,mnemonic:"X",parentId:t}),this._uiBuilder.add(e,this._uiBuilder.tagToId("motwToolstrip.matlabTab"),3)},_createOpenColumn:function(){var e=this._uiBuilder.create({tag:c,type:a.COLUMN});this._uiBuilder.create({tag:"motwToolstrip.matlabTab.file.open",actionId:s.OPEN,type:a.PUSH_BUTTON,mnemonic:"O",parentId:e}),this._uiBuilder.add(e,this._uiBuilder.tagToId("motwToolstrip.matlabTab.file"),3)},_createSetPathColumn:function(){var e=this._uiBuilder.create({tag:u,type:a.COLUMN});this._uiBuilder.create({tag:"motwToolstrip.matlabTab.environment.setPath",actionId:s.SET_PATH,type:a.PUSH_BUTTON,mnemonic:"E",parentId:e}),this._uiBuilder.add(e,this._uiBuilder.tagToId("motwToolstrip.matlabTab.environment"),1)},_createUploadDownLoadColumn:function(){var e=this._uiBuilder.create({tag:h,type:a.COLUMN});this._uiBuilder.create({tag:"motwToolstrip.matlabTab.file.upload",actionId:s.UPLOAD,type:a.PUSH_BUTTON,parentId:e,mnemonic:"AU"}),this._uiBuilder.create({tag:"motwToolstrip.matlabTab.file.download",actionId:s.DOWNLOAD,type:a.PUSH_BUTTON,parentId:e,mnemonic:"AD"}),this._uiBuilder.add(e,this._uiBuilder.tagToId("motwToolstrip.matlabTab.file"),4)},_createGeckoColumn:function(){var e=this._uiBuilder.create({tag:p,type:a.COLUMN});this._uiBuilder.create({tag:"motwToolstrip.matlabTab.help.gecko",actionId:s.GECKO,type:a.PUSH_BUTTON,parentId:e}),this._uiBuilder.add(e,this._uiBuilder.tagToId("motwToolstrip.matlabTab.help"),2)},_createServerScreenshotColumn:function(){var e=this._uiBuilder.create({tag:f,type:a.COLUMN});this._uiBuilder.create({tag:"motwToolstrip.matlabTab.simulink.screenshot",actionId:s.SCREENSHOT,type:a.PUSH_BUTTON,parentId:e,mnemonic:"E"}),this._uiBuilder.add(e,this._uiBuilder.tagToId("motwToolstrip.matlabTab.simulink"),1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(299),i(8408),i(290),i(2604)],o=i.dj.d(n,(function(e,t,i,n,o){return{popups:[{tag:"motwToolstrip.matlabTab.file.new.newList.systemObjectList",type:o.PopUp.type,children:o.PopUp.children},{tag:"motwToolstrip.matlabTab.file.new.newList",type:e.POPUP_LIST,children:[{tag:"motwToolstrip.matlabTab.file.new.newList.script",actionId:t.NEW_FILE,type:e.LIST_ITEM,iconOverride:"icon_new_script_24",showDescription:!1,textOverride:n.newFileListItemLabel},{tag:"motwToolstrip.matlabTab.file.new.newList.liveScript",actionId:t.NEW_LIVE_SCRIPT,type:e.LIST_ITEM,iconOverride:"icon_new_live_script_24",showDescription:!1,textOverride:n.newLiveScriptListItemLabel},{tag:"motwToolstrip.editorTab.file.new.newList.function",type:e.LIST_ITEM,actionId:t.NEW_FUNCTION,showDescription:!1,textOverride:n.newFunctionLabel},{tag:"motwToolstrip.editorTab.file.new.newList.liveFunction",type:e.LIST_ITEM,actionId:t.NEW_LIVE_FUNCTION,showDescription:!1,textOverride:n.newLiveFunctionListItemLabel},{tag:"motwToolstrip.editorTab.file.new.newList.class",actionId:t.NEW_CLASS,type:e.LIST_ITEM},{tag:"motwToolstrip.editorTab.file.new.newList.testClass",actionId:t.NEW_TEST_CLASS,type:e.LIST_ITEM,showDescription:!1,closePopupOnClick:!0},{tag:"motwToolstrip.matlabTab.file.new.newList.liveClass",type:e.LIST_ITEM,actionId:t.NEW_LIVE_CLASS,showDescription:!1,textOverride:n.newLiveClassListItemLabel},{tag:"motwToolstrip.matlabTab.file.new.newList.SystemObject",type:o.NewListItem.type,showDescription:o.NewListItem.showDescription,text:o.NewListItem.text,icon:o.NewListItem.icon,popupTag:"motwToolstrip.matlabTab.file.new.newList.systemObjectList"},{type:e.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.matlabTab.file.new.newList.project",type:e.LIST_ITEM,actionId:t.NEW_PROJECT},{tag:"motwToolstrip.matlabTab.file.new.newList.fromGit",type:e.LIST_ITEM,actionId:t.NEW_FROM_GIT},{type:e.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.matlabTab.file.new.newList.figure",type:e.LIST_ITEM,actionId:t.NEW_FIGURE},{tag:"motwToolstrip.matlabTab.file.new.newList.app",type:e.LIST_ITEM,actionId:t.NEW_APP},{type:e.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.matlabTab.file.new.newList.function",type:e.LIST_ITEM,actionId:t.NEW_FOLDER}]},{tag:"motwToolstrip.matlabTab.file.open.openList",type:e.POPUP_LIST,children:[{tag:"motwToolstrip.matlabTab.file.open.openList.icon",actionId:t.OPEN,type:e.LIST_ITEM,showDescription:!1,textOverride:n.openLabelEllipsis},{tag:"motwToolstrip.matlabTab.file.open.openList.icon.openAsText",actionId:t.OPEN_AS_TEXT,type:e.LIST_ITEM,showDescription:!1,textOverride:n.openAsText}]},{tag:"motwToolstrip.matlabTab.help.help.newList",type:e.POPUP_LIST,children:[{tag:"motwToolstrip.matlabTab.help.help.newList.help",actionId:t.HELP,type:e.LIST_ITEM,iconOverride:"icon_documentation_24",showDescription:!1,textOverride:n.helpListItemLabel},{tag:"motwToolstrip.matlabTab.help.help.newList.examples",actionId:t.EXAMPLES,showDescription:!1,type:e.LIST_ITEM},{tag:"motwToolstrip.matlabTab.help.help.newList.supportWebsite",actionId:t.SUPPORT_WEBSITE,showDescription:!1,type:e.LIST_ITEM},{type:e.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.matlabTab.help.help.newList.keyboardShortcuts",actionId:t.KEYBOARD_SHORTCUTS,type:e.LIST_ITEM,showIcon:!1,showDescription:!1},{tag:"motwToolstrip.matlabTab.help.help.newList.accessibility",actionId:t.ACCESSIBILITY,type:e.LIST_ITEM,showIcon:!1,showDescription:!1},{type:e.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.matlabTab.help.help.newList.manageLicenses",actionId:t.MANAGE_LICENSES,type:e.LIST_ITEM,showIcon:!1,showDescription:!1},{type:e.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.matlabTab.help.help.newList.checkForUpdates",actionId:t.CHECK_FOR_UPDATES,type:e.LIST_ITEM,showIcon:!1,showDescription:!1},{tag:"motwToolstrip.matlabTab.help.help.newList.patents",actionId:t.PATENTS,type:e.LIST_ITEM,showIcon:!1,showDescription:!1},{tag:"motwToolstrip.matlabTab.help.help.newList.about",actionId:t.ABOUT,type:e.LIST_ITEM,showIcon:!1,showDescription:!1}]},{tag:"motwToolstrip.matlabTab.code.clearCommands.list",type:e.POPUP_LIST,children:[{tag:"motwToolstrip.matlabTab.code.clearCommands.list.clearCommands",actionId:t.CLEAR_COMMAND_WINDOW,type:e.LIST_ITEM,showDescription:!1,textOverride:n.clearCommandWindowListItemLabel,iconOverride:"icon_clear_command_window_16"},{tag:"motwToolstrip.matlabTab.code.clearCommands.list.clearCommandHistory",type:e.LIST_ITEM,text:n.clearCommandHistoryListItemLabel,icon:"icon_clear_command_history_16"}]},{tag:"motwToolstrip.matlabTab.variable.openVariable.list",type:e.POPUP_LIST},{tag:"motwToolstrip.matlabTab.variable.clearWorkspace.list",type:e.POPUP_LIST,children:[{tag:"motwToolstrip.matlabTab.variable.clearWorkspace.list.clearVariables",actionId:t.CLEAR,type:e.LIST_ITEM,showDescription:!1,textOverride:n.clearVariablesListItemLabel,iconOverride:"icon_clear_workspace_16"},{tag:"motwToolstrip.matlabTab.variable.clearWorkspace.list.clearAll",actionId:t.CLEAR_ALL,type:e.LIST_ITEM,showDescription:!1,iconOverride:"icon_clear_16"}]},{tag:"motwToolstrip.matlabTab.environment.layout.list.show.list",type:e.POPUP_LIST,children:[{tag:"motwToolstrip.matlabTab.environment.layout.list.show.list.currentFolder",type:e.LIST_ITEM_WITH_CHECKBOX,text:n.currentFolderLabel,closePopupOnClick:!0},{tag:"motwToolstrip.matlabTab.environment.layout.list.show.list.workspace",type:e.LIST_ITEM_WITH_CHECKBOX,text:n.workspaceLabel,closePopupOnClick:!0},{tag:"motwToolstrip.matlabTab.environment.layout.list.show.list.toolstrip",type:e.LIST_ITEM_WITH_CHECKBOX,text:n.toolstripLabel,closePopupOnClick:!0}]},{tag:"motwToolstrip.matlabTab.environment.layout.list.commandHistory.list",type:e.POPUP_LIST,children:[{tag:"motwToolstrip.matlabTab.environment.layout.list.commandHistory.list.popup",type:e.LIST_ITEM_WITH_RADIO_BUTTON,text:n.commandHistoryPopupLabel,closePopupOnClick:!0,buttonGroupName:"commandHistoryDisplayMode"},{tag:"motwToolstrip.matlabTab.environment.layout.list.commandHistory.list.docked",type:e.LIST_ITEM_WITH_RADIO_BUTTON,text:n.commandHistoryDockedLabel,closePopupOnClick:!0,buttonGroupName:"commandHistoryDisplayMode"},{tag:"motwToolstrip.matlabTab.environment.layout.list.commandHistory.list.closed",type:e.LIST_ITEM_WITH_RADIO_BUTTON,text:n.commandHistoryClosedLabel,closePopupOnClick:!0,buttonGroupName:"commandHistoryDisplayMode"}]},{tag:"motwToolstrip.matlabTab.environment.layout.list",type:e.POPUP_LIST,children:[{tag:"motwToolstrip.matlabTab.environment.layout.list.default",actionId:t.SET_DEFAULT_LAYOUT,type:e.LIST_ITEM,showDescription:!1,icon:"icon_two_column_16"},{tag:"motwToolstrip.matlabTab.environment.layout.list.threeColumn",actionId:t.SET_THREE_COLUMN_LAYOUT,type:e.LIST_ITEM,showDescription:!1,icon:"icon_three_column_16"},{tag:"motwToolstrip.matlabTab.environment.layout.list.minimizeAllButCmdWin",actionId:t.SET_MIN_ALL_BUT_CMD_WIN_LAYOUT,type:e.LIST_ITEM,showDescription:!1,icon:"icon_two_column_16"},{tag:"motwToolstrip.matlabTab.environment.layout.list.cmdWinOnly",actionId:t.SET_CMD_WIN_ONLY_LAYOUT,type:e.LIST_ITEM,showDescription:!1,icon:"icon_two_column_16"},{tag:"motwToolstrip.matlabTab.environment.layout.list.show",type:e.POPUP_LIST_SEPARATOR},{tag:"motwToolstrip.matlabTab.environment.layout.list.show",text:n.showMenuLabel,type:e.LIST_ITEM_WITH_POPUP,popupTag:"motwToolstrip.matlabTab.environment.layout.list.show.list"},{tag:"motwToolstrip.matlabTab.environment.layout.list.commandHistory",text:n.commandHistoryLabel,type:e.LIST_ITEM_WITH_POPUP,popupTag:"motwToolstrip.matlabTab.environment.layout.list.commandHistory.list"}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{NO_SPLIT:"layout.noSplit",LEFT_RIGHT_SPLIT:"layout.leftRightSplit",TOP_BOTTOM_SPLIT:"layout.topBottomSplit",TABS_TO_TOP:"layout.tabsToTop",TABS_TO_BOTTOM:"layout.tabsToBottom",TABS_TO_LEFT:"layout.tabsToLeft",TABS_TO_RIGHT:"layout.tabsToRight"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(299),i(290),i(535)],o=i.dj.d(n,(function(e,t,i,n){return{tag:"motwToolstrip.globalTabGroup",type:e.TAB_GROUP,children:[{tag:"motwToolstrip.matlabTab",type:e.TAB,title:n.homeTabTitle,mnemonic:"H",children:[{tag:"motwToolstrip.matlabTab.file",type:e.SECTION,title:n.fileSectionTitle,children:[{tag:"motwToolstrip.matlabTab.file.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.file.newScript",type:e.PUSH_BUTTON,actionId:t.NEW_FILE,mnemonic:"S"}]},{tag:"motwToolstrip.matlabTab.file.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.file.new.newList.liveScript",actionId:t.NEW_LIVE_SCRIPT,type:e.PUSH_BUTTON,mnemonic:"L"}]},{tag:"motwToolstrip.matlabTab.file.column3",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.file.new",type:e.DROP_DOWN_BUTTON,text:i.newMenuLabel,description:i.newMenuDescription,icon:"new_24",quickAccessIcon:"new_16",popupTag:"motwToolstrip.matlabTab.file.new.newList",mnemonic:"N"}]},{tag:"motwToolstrip.matlabTab.file.column4",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.file.open",actionId:t.OPEN,type:e.SPLIT_BUTTON,popupTag:"motwToolstrip.matlabTab.file.open.openList",mnemonic:"O"}]},{tag:"motwToolstrip.matlabTab.file.find",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.file.findFiles",type:e.PUSH_BUTTON,actionId:t.FIND_FILES,mnemonic:"F",icon:"icon_find_files_24",quickAccessIcon:"icon_find_files_16"}]}]},{tag:"motwToolstrip.matlabTab.variable",type:e.SECTION,title:n.variableSectionTitle,children:[{tag:"motwToolstrip.matlabTab.variable.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.variable.importData",actionId:t.IMPORT_DATA,type:e.PUSH_BUTTON,mnemonic:"I"}]},{tag:"motwToolstrip.matlabTab.variable.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.variable.saveWorkspace",actionId:t.SAVE_WORKSPACE,type:e.PUSH_BUTTON,mnemonic:"W"}]},{tag:"motwToolstrip.matlabTab.variable.column3",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.variable.newVariable",actionId:t.NEW_VARIABLE,type:e.PUSH_BUTTON,mnemonic:"V"},{tag:"motwToolstrip.matlabTab.variable.openVariable",actionId:t.OPEN_VARIABLE,type:e.DROP_DOWN_BUTTON,hasDynamicPopup:!0,popupTag:"motwToolstrip.matlabTab.variable.openVariable.list",mnemonic:"B"},{tag:"motwToolstrip.matlabTab.variable.clearWorkspace",actionId:t.CLEAR,type:e.SPLIT_BUTTON,popupTag:"motwToolstrip.matlabTab.variable.clearWorkspace.list",mnemonic:"K"}]}]},{tag:"motwToolstrip.matlabTab.code",type:e.SECTION,title:n.codeSectionTitle,children:[{tag:"motwToolstrip.matlabTab.code.column0",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.code.favCommands",type:e.DROP_DOWN_BUTTON,icon:"icon_favorite_command_24",quickAccessIcon:"icon_favorite_command_16",text:i.favoriteCommandsFavoritesButtonLabel,description:i.favoriteCommandsFavoritesButtonDescription,mnemonic:"J",enabled:!1}]},{tag:"motwToolstrip.matlabTab.code.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.code.clearCommands",actionId:t.CLEAR_COMMAND_WINDOW,type:e.SPLIT_BUTTON,mnemonic:"C"}]}]},{tag:"motwToolstrip.matlabTab.environment",type:e.SECTION,title:n.environmentSectionTitle,children:[{tag:"motwToolstrip.matlabTab.environment.column1",type:e.COLUMN,horizontalAlignment:"center",children:[{tag:"motwToolstrip.matlabTab.environment.layout",type:e.DROP_DOWN_BUTTON,horizontalAlignment:"center",text:i.layoutLabel,description:i.layoutDescription,icon:"icon_view_24",quickAccessIcon:"icon_view_16",popupTag:"motwToolstrip.matlabTab.environment.layout.list",mnemonic:"Y"}]},{tag:"motwToolstrip.matlabTab.environment.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.environment.preferences",type:e.PUSH_BUTTON,actionId:t.PREFERENCES,mnemonic:"P"}]}]},{tag:"motwToolstrip.matlabTab.help",type:e.SECTION,title:n.resourcesSectionTitle,children:[{tag:"motwToolstrip.matlabTab.help.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.help.help",actionId:t.HELP,type:e.SPLIT_BUTTON,mnemonic:"H"}]},{tag:"motwToolstrip.matlabTab.help.column2",type:e.COLUMN,children:[{tag:"motwToolstrip.matlabTab.help.community",actionId:t.COMMUNITY,type:e.PUSH_BUTTON,mnemonic:"U"},{tag:"motwToolstrip.matlabTab.help.feedback",actionId:t.FEEDBACK,type:e.PUSH_BUTTON,mnemonic:"Q"},{tag:"motwToolstrip.matlabTab.help.learnMatlab",actionId:t.LEARN_MATLAB,type:e.PUSH_BUTTON,mnemonic:"Z"}]}]}]},{tag:"motwToolstrip.plotsTab",type:e.TAB,title:n.plotsTabTitle,mnemonic:"P",children:[{tag:"motwToolstrip.plotsTab.selection",type:e.SECTION,title:n.selectionSectionTitle,children:[{tag:"motwToolstrip.plotsTab.selection.column1",type:e.COLUMN,width:200,children:[{tag:"motwToolstrip.plotsTab.selection.column1.noVariableSelectedLabel",type:e.LABEL,text:n.noVariableSelected}]}]},{tag:"motwToolstrip.plotsTab.plots",type:e.SECTION,title:n.plotsSectionTitle,children:[{tag:"motwToolstrip.plotsTab.plots.column1",type:e.COLUMN,children:[]}]},{tag:"motwToolstrip.plotsTab.options",type:e.SECTION,title:n.optionsSectionTitle,children:[{tag:"motwToolstrip.plotsTab.options.column1",type:e.COLUMN,children:[{tag:"motwToolstrip.plotsTab.options.column1.reuseFigure",type:e.RADIO_BUTTON,text:n.reuseFigure,description:n.plotIntoCurrentFigure,buttonGroupName:"plotsTabOptionsRadioButtonGroup",mnemonic:"R"},{tag:"motwToolstrip.plotsTab.options.column1.newFigure",type:e.RADIO_BUTTON,text:n.newFigure,description:n.plotIntoNewFigure,buttonGroupName:"plotsTabOptionsRadioButtonGroup",mnemonic:"N"}]}]}]},{tag:"motwToolstrip.appsTab",type:e.TAB,title:n.appsTabTitle,mnemonic:"A",children:[{tag:"motwToolstrip.appsTab.file",type:e.SECTION,title:n.fileSectionTitle,children:[]},{tag:"motwToolstrip.appsTab.apps",type:e.SECTION,title:n.appsSectionTitle,children:[{tag:"motwToolstrip.appsTab.apps.column1",type:e.COLUMN,children:[]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(1729),i(562)],o=i.dj.d(n,(function(e,t,i){return{popups:[{tag:"uicontainer.view",type:e.POPUP_LIST,children:[{tag:"uicontainer.view.split",type:e.POPUP_LIST_HEADER,title:i.splitTitle.toLocaleUpperCase()},{tag:"uicontainer.view.noSplit",actionId:t.NO_SPLIT,type:e.LIST_ITEM_WITH_RADIO_BUTTON,closePopupOnClick:!0},{tag:"uicontainer.view.leftRightSplit",actionId:t.LEFT_RIGHT_SPLIT,type:e.LIST_ITEM_WITH_RADIO_BUTTON,closePopupOnClick:!0},{tag:"uicontainer.view.topBottomSplit",actionId:t.TOP_BOTTOM_SPLIT,type:e.LIST_ITEM_WITH_RADIO_BUTTON,closePopupOnClick:!0},{tag:"uicontainer.view.tabPosition",type:e.POPUP_LIST_HEADER,title:i.tabPositionTitle.toLocaleUpperCase()},{tag:"uicontainer.view.tabsToTop",actionId:t.TABS_TO_TOP,type:e.LIST_ITEM_WITH_RADIO_BUTTON,closePopupOnClick:!0},{tag:"uicontainer.view.tabsToBottom",actionId:t.TABS_TO_BOTTOM,type:e.LIST_ITEM_WITH_RADIO_BUTTON,closePopupOnClick:!0},{tag:"uicontainer.view.tabsToLeft",actionId:t.TABS_TO_LEFT,type:e.LIST_ITEM_WITH_RADIO_BUTTON,closePopupOnClick:!0},{tag:"uicontainer.view.tabsToRight",actionId:t.TABS_TO_RIGHT,type:e.LIST_ITEM_WITH_RADIO_BUTTON,closePopupOnClick:!0}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(434)],o=i.dj.d(n,(function(e,t,i){const n={type:i.STATUS_BAR,tag:"matlabStatusbar",children:[]};return e(null,{constructor:function(e){this._uiContainer=e.uiContainer,this._uiBuilder=this._uiContainer.uiBuilder,this._globalStatusId=null,this._transientStatusId=null,this._leftComponentContainer=null,this._createStatusbar()},setGlobalStatus:function(e){this._globalStatusId&&this._uiBuilder.remove(this._globalStatusId,this._statusbarId),this._globalStatusId=e,this._uiBuilder.set(this._globalStatusId,"region","left"),this._transientStatusId||this._uiBuilder.add(this._globalStatusId,this._statusbarId)},resetGlobalStatus:function(){this._uiBuilder.remove(this._globalStatusId,this._statusbarId),this._globalStatusId=null},setTransientStatus:function(e){this._transientStatusId&&this._uiBuilder.remove(this._transientStatusId,this._statusbarId),this._globalStatusId&&this._uiBuilder.remove(this._globalStatusId,this._statusbarId),this._transientStatusId=e,this._uiBuilder.set(this._transientStatusId,"region","left"),this._uiBuilder.add(this._transientStatusId,this._statusbarId)},resetTransientStatus:function(){this._transientStatusId&&this._uiBuilder.remove(this._transientStatusId,this._statusbarId),this._transientStatusId=null,this._globalStatusId&&this._uiBuilder.add(this._globalStatusId,this._statusbarId)},_createStatusbar:function(){this._uiContainer.addStatusBar(n),this._statusbarId=this._uiBuilder.tagToId("matlabStatusbar")},_insertComponentAtLeft:function(e){if(!this._leftComponentContainer){let e=this._uiBuilder.widgetByTag("matlabStatusbar");this._leftComponentContainer=document.createElement("div"),this._leftComponentContainer.classList.add("statusBarLeftComponent"),e.domNode.prepend(this._leftComponentContainer)}for(;this._leftComponentContainer.lastElementChild;)this._leftComponentContainer.removeChild(this._leftComponentContainer.lastElementChild);this._leftComponentContainer.appendChild(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(299),i(342),i(703)],o=i.dj.d(n,(function(e,t,i){return{setUpKeyBindings:function(n){i.getInstance(n).getBinding([t.Keys.SYSCTRL,t.Keys.SHIFT,t.Keys.F]).setAction(".motwApplication",e.FIND_FILES)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(641),i(698),i(290),i(600)],o=i.dj.d(n,(function(e,t,i,n,o,r){return i.WORKER_CRASH_FAILURE="ComputeService.WorkerCrashFailure",e([],{constructor:function(e){this.uiLifecycle=e.uiLifecycle,this.featureService=e.featureService,this.faultHandlerModule=e.faultHandlerModule,this.manifestService=e.manifestService,this.iframeMessageService=e.iframeMessageService,this.wraService=e.wraService,this.sessionLifecycle=e.sessionLifecycle,this.manifestHandler=e.manifestHandler,this.fileDataService=e.fileDataService,this.uiConfigService=e.uiConfigService,this.heartbeatService=e.heartbeatService},initializeExperience:function(){this._configureFaultHandler(),this._configureSessionLifecycle(),this._configureBufferedEditorService()},_configureFaultHandler:function(){var e=this;this.faultHandlerModule.registerHandlerForFault("TopLevel",{name:i.WORKER_CRASH_FAILURE,handler:function(){this.heartbeatService.stop(),this._active=!1,n.openNotificationConfirmDialog(o.fault.matlabCrashFaultTitle,o.fault.matlabCrashFaultMessage,{buttonText:["Restart",r.exit],defaultAcceptButton:1,defaultCancelButton:2,icon:"error",closeCallback:function(t){e.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",(function(){e.wraService.reloadPage({userEndedComputeSession:!0})})),e.wraService.terminateMATLABSession({skipLogoutTasks:!0}),1===t.response?e.manifestHandler.handleManifestReload().then((function(t){e.iframeMessageService.postMessage("reload",t)})):e.iframeMessageService.postMessage("disconnect")}})}.bind(this.faultHandlerModule)}),this.faultHandlerModule.registerHandlerForFault("TopLevel",{name:"*",handler:function(e,t,r){var a,s,l={},c=this;c._active&&(r&&r.requestMessages&&r.requestMessages.Logout||(a=o.fault.genericFailureTitle,s=o.fault.genericFailureMessage,!e||"unauthorized"===this.wraService.getCurrentState()||e.faultCode!==i.USER_NOT_AUTHORIZED&&"403"!==e.statusCode||(a=o.fault.noLongerAuthorizedTitle,s=o.fault.noLongerAuthorizedMessage),l.closeCallback=function(){this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",function(){this.wraService.reloadPage({userEndedComputeSession:!0})}.bind(this)),c.wraService.terminateMATLABSession({skipLogoutTasks:!0})},n.openNotificationAlertDialog(a,s,l)))}.bind(this.faultHandlerModule)})},_configureSessionLifecycle:function(){"disabled"===this.uiConfigService.layoutMap.session&&(this.sessionLifecycle.setResumeHandler(function(){this.wraService.workerReset(),this.manifestHandler.handleManifestReload().then(function(e){this.iframeMessageService.postMessage("reload",e)}.bind(this))}.bind(this)),this.sessionLifecycle.setExitHandler(function(){this.iframeMessageService.postMessage("disconnect")}.bind(this)))},_configureBufferedEditorService:function(){t.around(this.fileDataService,"setFileModified",(function(e){return function(e){}}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1223),i(232),i(219)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{channel:"/web/logicAnalyzer",constructor:function(e){this.inherited(arguments),this.iframeLayoutManager=e.iframeLayoutManager,this.f=t.hitch(this,"_updateLogicAnalyzer"),o.subscribe(this.channel,this.f)},_updateLogicAnalyzer:function(e){"show"==e.data.eventType?this.showIframe(e):"windowClosed"==e.data.eventType?this._sendCloseMessage(e.data.peerNodeId):"windowPropertyChanged"==e.data.eventType&&this.iframeLayoutManager.updateVisibleWidget(e.data.peerNodeId,e.data)},_updateName:function(e){var t={};t.name=e.data.name,this.inherited(arguments,[t])},showIframe:function(e){var t={};t.host=n.createWorkerRoutingHostUrl(e.data.url),t.name="Logic Analyzer",t.peerNodeId=e.data.peerNodeId,t.maximize=!1,this.inherited(arguments,[t])},_sendCloseMessage:function(e){this.removeWindow(e)},reset:function(){o.unsubscribe(this.channel,this.f)}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(8416),i(8424),i(8426),i(8429),i(241),i(209),i(1242)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){const s=(e=>{const t={};return e.forEach(e=>{t[e.toUpperCase()]=e}),Object.freeze(t)})(i.LIST),l=Object.freeze({PERSIST_FAILED:"persist-failed"});function c(e=s.DIALOG){if("string"==typeof e)return i.create(e);if("object"==typeof e){if(e.type){const t=e.type;return delete e.type,i.create(t,e)}return e}throw new Error("Invalid type for mw-login placement: ".concat(typeof e))}let d;const u={},h=e=>{const t=e.backend||d;if(!t)throw new Error("mw-login/login: Either specify a backend when sending the message or specify one as part of a call to login.init().");return delete e.backend,t.sendMessage(e)},p=async(e={})=>{e.level||0===e.level||(e.level=2);const t=await h({backend:e.backend,message:"GetLoginInfoMessage",payload:{level:e.level,clientString:e.clientString||"DESKTOP"}});if(t.loggedIn){const i=await f({backend:e.backend,clientString:e.clientString});return t.info.token=i,t}return t.info.token="",t},f=async(e={})=>(await h({backend:e.backend,message:"RequestAccessTokenMessage",payload:{type:e.type||"short",clientString:e.clientString||"DESKTOP"}})).accessToken;return{placement:s,errors:l,init:(e={})=>{d=e.backend,e.forceLegacyFormsVersion&&(u.version="1")},getLoginInfo:p,requestAccessToken:f,logout:async(e={})=>{let i=!1;if(e.confirm){const n=c(e.placement);if(n.isDialog)i=await new Promise(t=>{o.displayConfirmDialog(e.title||a.defaultLogoutDialogTitle,e.message||a.defaultLogoutMessage,{closeCallback:e=>t(1!==e.response)})});else{const o=new t(Object.assign({"data-test-id":"mw-logout-widget"},e));n.init(o),e.onShow&&n.on("show",()=>{e.onShow({widget:o})}),e.onHide&&n.on("hide",()=>{e.onHide({widget:o})}),o.startup(),i=await new Promise(t=>{o.on("logout",()=>t(!1)),o.on("cancel",()=>t(!0)),n.place(e.container)}),n.destroy()}}return i||h({backend:e.backend||d,message:"LogoutMessage"}),{cancelled:i}},login:async function(t={}){const i=await p({backend:t.backend||d,level:t.level,clientString:t.clientString});return i.loggedIn?(i.interactive=!1,i):async function(t,i){const o=await h({backend:t.backend,message:"GetLoginParamsMessage"});t.form=t.form||{},t.form.clientString=t.clientString||"DESKTOP",void 0===t.form.cachedRememberMe&&void 0!==o.cachedRememberMe&&(t.form.cachedRememberMe=o.cachedRememberMe),delete o.cachedRememberMe,t.form.cachedUsername=t.form.cachedUsername||o.cachedUsername,delete o.cachedUsername;const r={options:Object.assign({},u,t.form)},a=Object.assign({previousLoginInfo:i},t.switchProfile),s=new e(Object.assign({switchProfile:a},o,r));return s.startup(),new Promise((e,i)=>{s.on("logged-in",async i=>{const r={loggedIn:!0,interactive:!0,level:t.level||2,info:{displayName:i.loginInfo.displayName,emailAddress:i.loginInfo.emailAddress,firstName:i.loginInfo.firstName,lastName:i.loginInfo.lastName,profileId:i.loginInfo.profileId,token:i.loginInfo.accessToken||i.loginInfo.token,userId:i.loginInfo.userId}};try{await h({backend:t.backend,message:"LoginMessage",payload:{firstName:i.loginInfo.firstName,lastName:i.loginInfo.lastName,emailAddress:i.loginInfo.emailAddress,userId:i.loginInfo.userId,profileId:i.loginInfo.profileId,displayName:i.loginInfo.displayName,identityToken:i.loginInfo.token,accessToken:i.loginInfo.accessToken||i.loginInfo.token,mfaToken:i.loginInfo.mfaToken||"",cachedUsername:i.loginInfo.cachedUsername,rememberMe:i.loginInfo.cachedRememberMe,level:t.level||2}})}catch(e){r.error=new n(e.message,l.PERSIST_FAILED)}e(r),o.destroy()}),s.on("failed",e=>{i(e),o.destroy()});const o=c(t.placement);o.init(s),t.onConnected&&s.on("connected",e=>{o.applyHeightIfRequired(e.formHeight),t.onConnected(e)}),t.onShow&&o.on("show",()=>{t.onShow({widget:s})}),t.onHide&&o.on("hide",()=>{t.onHide({widget:s})}),o.on("cancelled",()=>{e({loggedIn:!1,interactive:!0,userCancelled:!0})}),o.place(t.container||{})})}(t,i.info)},addStatusListener:function(e,t={}){const i=t.backend||d;if(!i)throw new Error("mw-login/login: Either specify a backend when adding status listeners or specify one as part of a call to login.init().");return delete t.backend,i.addLoginStatusListener(e,t)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(420),i(204),i(211),i(213),i(512),i(222),i(1242),i(568),i(407),i(247),i(241),i(8421),i(8423)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){const p=Object.freeze({version:"2",clientString:"DESKTOP",profileTier:"extended",locale:e.locale,showCreateAccount:!1,showRememberMe:!0,cachedRememberMe:!0}),f=Object.freeze({spinner:.5,warning:2,failure:30}),g=function(){let e=l.getSystemInfo().PLATFORM;return"Win32"===e&&/WOW64|Win64|x64/.test(l.getSystemInfo().USER_AGENT)?"Win64":e}();return class extends r{constructor(e={}){if(super(),!e.endpoint)throw new Error("LoginWidget :: No endpoint specified.");if(!e.release)throw new Error("LoginWidget :: No release specified.");if(!e.sourceId)throw new Error("LoginWidget :: No sourceId specified.");this.clientNonce=(Math.random()+"").substr(2),Object.assign(this,e),this.origin=(e=>{const t=c.parseUrl(e);let i=t.protocol+"//"+t.hostname;return t.port&&(i+=":"+t.port),i})(this.endpoint),this.options=Object.assign({},p,this.options),this._started=!1,this._handleFrameEvent=this._handleFrameEvent.bind(this)}startup(){this._started||(this.domNode=i.create("div",{class:"mw-login-widget"}),this.frame=i.create("iframe",{class:"mw-login-frame",name:"mw-login-frame","data-test-id":"mw-login-frame",style:"visibility: hidden"},this.domNode),this._started=!0,this.frame.addEventListener("load",()=>this._initialiseForm(),{once:!0}),window.addEventListener("message",this._handleFrameEvent),this._setupTimeouts(),this.frame.setAttribute("src","".concat(this.endpoint,"/v").concat(this.options.version,"/login.html")+"?locale=".concat(this.options.locale)))}placeAt(e,...t){i.place(this.domNode,e,...t)}destroy(){this.timeoutCascade.destroy(),i.destroy(this.domNode),window.removeEventListener("message",this._handleFrameEvent)}destroyRecursive(){this.destroy()}_setupTimeouts(){const e=Object.assign({},f,this.options.timeouts);this.options.timeout&&(e.failure=this.options.timeout);const t=new u({size:"large"});t.startup();const n=[{name:"spinner",timeout:e.spinner,callback:()=>{t.placeAt(this.domNode)}},{name:"warning",timeout:e.warning,callback:()=>{t.set("text",a.warnTakingTooLong)}},{name:"failure",timeout:e.failure,callback:()=>{t.destroy(),i.destroy(this.frame),this.emit("failed",new Error(a.errorTimeoutLoadingFrame))}}];this.timeoutCascade=new h({phases:n,onCleanup:()=>{t.destroy()}}),this.timeoutCascade.execute(),delete this.options.timeout,delete this.options.timeouts}async _confirmSwitchProfile(e){const i=this.switchProfile||{};if(!i.confirm)return!0;const n=this.switchProfile.previousLoginInfo;if(!n.profileId||n.profileId===e.profileId)return!0;const o=t.replace(i.message||a.defaultSwitchProfileConfirmationMessage,[n.displayName,n.emailAddress||n.userId,e.displayName,e.emailAddress||e.userId]);return new Promise(e=>{d.displayConfirmDialog(i.title||a.defaultSwitchProfileConfirmationTitle,o,{icon:"question",buttonText:[s.yes,s.no],defaultAcceptButton:2,closeCallback:t=>{e(1===t.response)}})})}_frameMsg(e){this.frame.contentWindow.postMessage(o.stringify(e),this.origin)}async _handleFrameEvent(e){if(!e.origin.endsWith(".mathworks.com")&&e.origin!==document.location.origin)return;let t;try{t=o.parse(e.data)}catch(e){return}let i=t.event;if(t.clientTransactionId===this.clientNonce)switch(i){case"nonce":this.timeoutCascade.destroy(),n.set(this.frame,{visibility:""});const e=Object.assign({},this.options,{event:"load",transactionId:t.transactionId,clientTransactionId:this.clientNonce,platform:g,release:this.release,clientId:this.sourceId,mfaToken:this.mfaToken});this._frameMsg(e),this.emit("connected",{formHeight:t.formHeight});break;case"login":t.isUserLoggedIn?await this._confirmSwitchProfile(t)?this._emitLoginEvent(t):this._initialiseForm():this.emit("failed",new Error(t.errors.join("\n")))}}_emitLoginEvent(e){delete e.event,delete e.transactionId,delete e.clientTransactionId;let t=e.userID;delete e.userID,e.userId=t,this.emit("logged-in",{loginInfo:e})}_initialiseForm(){this._frameMsg({event:"init",transactionId:this.clientNonce})}}}),e,t),e.exports=o},function(e,t,i){e.exports={defaultSwitchProfileConfirmationTitle:"プロファイルの切り替え",defaultSwitchProfileConfirmationMessage:"以前はこのアプリケーションを {0} ({1}) として使用していました。\n\n{2} としてサインインしますか?",defaultDialogTitle:"サインイン",defaultLogoutDialogTitle:"サインアウト",defaultLogoutMessage:"サインアウト プロセスを完了するには、このシステム上のすべての MATLAB セッションを閉じてください。\n\n続行しますか?",errorTimeoutLoadingFrame:"ログイン サービスにアクセスできません。インターネット接続に問題があるか、サービスが一時的に使用不可になっている可能性があります。問題が解決しない場合は、MathWorks のテクニカル サポートにお問い合わせください。",warnTakingTooLong:"通常より時間がかかっています"}},function(e,t,i){e.exports={defaultSwitchProfileConfirmationTitle:"프로파일 전환",defaultSwitchProfileConfirmationMessage:"이전에 이 응용 프로그램을 {0}({1})(으)로 사용했습니다.\n\n{2}(으)로 로그인하시겠습니까?",defaultDialogTitle:"로그인",defaultLogoutDialogTitle:"로그아웃",defaultLogoutMessage:"로그아웃 절차를 완료하려면 이 시스템에서 MATLAB 세션을 모두 닫으십시오.\n\n계속 진행하시겠습니까?",errorTimeoutLoadingFrame:"로그인 서비스에 연결할 수 없습니다. 인터넷 연결 문제가 있거나 서비스가 일시적으로 사용할 수 없는 상태일 수 있습니다. 문제가 지속되면 MathWorks 기술 지원팀에 문의하십시오.",warnTakingTooLong:"평소보다 시간이 더 걸리고 있습니다."}},function(e,t,i){e.exports={defaultSwitchProfileConfirmationTitle:"切换个人资料",defaultSwitchProfileConfirmationMessage:"您以前以 {0} ({1}) 身份使用此应用程序。\n\n是否确定要以 {2} 的身份登录?",defaultDialogTitle:"登录",defaultLogoutDialogTitle:"注销",defaultLogoutMessage:"要完成注销过程,请关闭此系统上的所有 MATLAB 会话。\n\n是否继续?",errorTimeoutLoadingFrame:"无法联系登录服务。您的 Internet 连接可能有问题,或服务可能暂时不可用。如果问题仍然存在,请联系 MathWorks 技术支持。",warnTakingTooLong:"这比通常情况下花费的时间长"}},function(e,t,i){e.exports={root:{cancel:"Cancel",defaultSwitchProfileConfirmationTitle:"Switch Profile",defaultSwitchProfileConfirmationMessage:"You were previously using this application as {0} ({1}).\n\nAre you sure you want to sign in as {2}?",defaultDialogTitle:"Sign In",defaultLogoutDialogTitle:"Sign Out",defaultLogoutMessage:"To complete the sign out process, close all MATLAB sessions on this system.\n\nDo you want to proceed?",done:"Done",errorTimeoutLoadingFrame:"Unable to contact login services. There may be a problem with your internet connection, or the service may be temporarily unavailable. If the problem persists contact MathWorks technical support.",warnTakingTooLong:"This is taking longer than usual"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){"use strict";var n,o;n=[i(203),i(215),i(216),i(8422),i(661)],o=i.dj.d(n,(function(e,t,i,n){return e([t,i],{baseClass:"mw-login-widget-spinner",templateString:n,postMixInProperties:function(){this.text=this.text||"",this.size=this.size||"large"},_setTextAttr:{node:"textNode",type:"textContent"}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <mw-progress-indicator size="${size}"></mw-progress-indicator>\n <div data-dojo-attach-point="textNode"\n data-test-id="textNode"\n class="${baseClass}-text">${text}</div>\n</div>\n'},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return class{constructor(e={}){if(!Array.isArray(e.phases))throw new Error("Expected TimeoutCascade phases to be an array.");this.phases=e.phases,this.onCleanup=e.onCleanup}execute(){this._executePhase(0)}_executePhase(e){const t=this.phases[e],i=t.name||"Phase ".concat(e);if(!t)throw new Error("No phase with index ".concat(e,"."));if("function"!=typeof t.callback)throw new Error("Callback for time point ".concat(i," is not a function."));let n=t.timeout;if(e>0&&(n-=this.phases[e-1].timeout),n<0)throw new Error("Timeout for ".concat(i," is set before the previous phase."));this._timeout=setTimeout(()=>{t.callback(),e+1<this.phases.length&&this._executePhase(e+1)},1e3*n)}destroy(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null,this.onCleanup())}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(203),i(215),i(216),i(255),i(1242),i(8425),i(243),i(1316)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([t,i,n],{nls:o,baseClass:"mw-logout-widget",templateString:r,postCreate:function(){this.message=this.message||o.defaultLogoutMessage,this.messageNode.set("message",this.message)},_handleOK:function(){this.emit("logout")},_handleCancel:function(){this.emit("cancel")}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="mwConfirmDialog">\n <div data-test-id="${data-test-id}-message"\n data-dojo-type="mw-notifications/IconAndMessageWidget"\n data-dojo-attach-point="messageNode"\n data-dojo-props="icon: \'warning\'"\n class="${baseClass}-message"></div>\n <div class="${baseClass}-buttons">\n <div data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'${nls.done}\'"\n data-test-id="logoutOkBtn"\n data-dojo-attach-event="click: _handleOK"></div>\n <div data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'${nls.cancel}\'"\n data-test-id="logoutCancelBtn"\n data-dojo-attach-event="click: _handleCancel"></div>\n </div>\n</div>'},function(e,t,i){"use strict";var n,o;n=[i(8427),i(8428)],o=i.dj.d(n,(e,t)=>{const i=Object.freeze(["Dialog","User"]);return class{static get LIST(){return i}static create(i,...n){if(!i)throw new Error("Placement not specified.");switch(i){case"Dialog":return new e(...n);case"User":return new t(...n)}throw new Error("Unknown login widget placement strategy: ".concat(i,"."))}}},e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(2626),i(262),i(1242)],o=i.dj.d(n,(function(e,t,i){return class extends e{place(e={}){const n=((e=Object.assign({title:i.defaultDialogTitle,dialogType:t.MODAL},e,{id:"mw-login-dialog","data-test-id":"mw-login-dialog",content:this.widget})).className||"").split(" ");n.push("mw-login-dialog"),e.noTitle&&n.push("mw-login-dialog-no-title"),delete e.noTitle,e.className=n.join(" "),this.dialog=t.createDialog(e),this.emit("show",{}),this.dialog.on("close",()=>{this._destroying||(this.emit("hide",{}),this.emit("cancelled",{}),this.dialog=null)})}get isDialog(){return!0}_applyHeight(e){if(!this.dialog)throw new Error("LoginWidget has not yet been placed in a dialog.");const t=this.dialog.domNode.offsetHeight-this.widget.domNode.offsetHeight;this.dialog.resizeTo({height:e+t})}destroy(){this.dialog&&(this.emit("hide",{}),this._destroying=!0,this.dialog.close(),this.dialog=null)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(2626),i(213)],o=i.dj.d(n,(function(e,t){return class extends e{place(e={}){this.widget.placeAt(e.parent||document.body,e.position||"last"),this.emit("show",{})}_applyHeight(e){const i=this.widget.domNode.parentElement;if(!i)throw new Error("LoginWidget has not yet been placed in the DOM.");t.set(i,{height:"".concat(e,"px")})}destroy(){this.emit("hide",{}),this.widget.destroy()}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return class extends Error{constructor(e,t){if(super(e),!t)throw new Error("Login errors must specify a type.");this._type=t}get type(){return this._type}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(8431),i(219),i(232),i(229)],o=i.dj.d(n,(function(e,t,i,n){let o=(e,t)=>{if(1!==e.length){const e=new Error("Sent single request, expected single response back.");throw t.promise.reject(e),e}let i=e[0];i.messageFaults.length>0?t.promise.reject(new Error(i.messageFaults[0].message)):(delete i.messageFaults,delete i.uuid,t.promise.resolve(i))},r=(e,t)=>{t.promise.reject(new Error(e.message||"Remote.sendMessage failed with no error message."))};return class extends e{constructor(){super(),t.start(),this._classifier="mw-login/backend/MATLAB/"+n.generateUuid(),e.MESSAGE_TYPES.forEach(e=>{i.registerResponseHandler("".concat(e,"Response:").concat(this._classifier),o),i.registerFaultHandler("".concat(e,":").concat(this._classifier),r)})}_sendMessage(e={}){return new Promise((t,n)=>{i.sendMessage({[e.message]:e.payload},{promise:{resolve:t,reject:n}},this._classifier)})}_addLoginStatusListener(e,i={}){const n=t=>{e(t.data)};return t.subscribe("/mw-login/status",n),{remove:()=>{t.unsubscribe("/mw-login/status",n)}}}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(209)],o=i.dj.d(n,(function(e){const t=Object.freeze(["LoginMessage","LogoutMessage","GetLoginInfoMessage","GetLoginParamsMessage","RequestAccessTokenMessage","AddStatusListenerMessage","RemoveStatusListenerMessage"]);return class{static get MESSAGE_TYPES(){return t}_sendMessage(){throw new Error("Backend._sendMessage is abstract.")}async sendMessage(i={}){if(!i.message)throw new Error("Backend.sendMessage: No message specified.");if(!t.includes(i.message))throw new Error("Backend.sendMessage: Unsupported message type: ".concat(i.message,"."));e.debug("Sending ".concat(i.message,"..."));try{const t=await this._sendMessage({message:i.message,payload:i.payload||{}});return e.debug("Received response for ".concat(i.message,".")),t}catch(t){throw e.error("".concat(i.message," failed. Error was:\n").concat(t.message)),t}}_addLoginStatusListener(){e.warn('WARNING: The "'.concat(this.constructor.name,"\" backend doesn't ")+"support status listeners.")}addLoginStatusListener(e,t={}){if("function"!=typeof e)throw new Error('Backend :: the "callback" parameter is not a function.');this.sendMessage({message:"AddStatusListenerMessage"});const i=this._addLoginStatusListener(e,t);return{remove:()=>{this.sendMessage({message:"RemoveStatusListenerMessage"}),i.remove()}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(302),i(211),i(206),i(225),i(256),i(568),i(290),i(231),i(263),i(308),i(341),i(241),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([],{constructor:function(e){this._showExitDialog=null,this.wraService=e.wraService,this.uiLifecycle=e.uiLifecycle,window.onbeforeunload=t.hitch(this,(function(e){if(!0===this._showExitDialog)return""})),a.subscribe("/MatlabExitService/exitchannel",t.hitch(this,(function(){this._showExitDialog=!1}))),e.executionService.intercept("exit",t.hitch(this,"exitMatlab",!0)),e.executionService.intercept("quit",t.hitch(this,"exitMatlab",!0))},logout:function(e){var t=this;a.publish("/MatlabExitService/exitchannel",{}),setTimeout((function(){t.wraService.terminateMATLABSession(e)}),20)},exitMatlab:function(e){var t=this.wraService;h.getFeatureStatus(h.FeatureNames.MATLAB_LOCAL)?this.callExitWebDesktop(e):(this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",(function(){t.reloadPage({userEndedComputeSession:!0})})),this.publishLogout())},callExitWebDesktop:function(e){var t=e?[e]:[];f.sendMessage({FEval:{function:"webdesktop.internal.exitWebDesktop",arguments:t,nargout:0,priority:1}},{},"ExitWebDesktop")},publishLogout:function(e){var t={singleSignOut:e||!1},i=this.logout.bind(this);this.wraService;if(!0===this._showExitDialog){var a=l.exitMATLABDialogMessage,h=n.create("div"),f=n.create("div");f.textContent=l.exitMATLABDialogText;var g=new u({text:l.checkBoxMessage,class:"confirmationDialogCheckBox"});h.appendChild(f),h.appendChild(n.create("br")),h.appendChild(g.domNode);var m=h,_={icon:"warning",buttonText:[s.ok,s.cancel],defaultAcceptButton:1,defaultCancelButton:2,closeCallback:function(e){if(1===e.response){var n=r(".mwConfirmDialog .confirmationDialogCheckBox")[0];c.getEnclosingWidget(n).get("checked")?d.setSetting(["matlab","confirmationdialogs"],"MatlabExitConfirm",!1).then((function(){i(t)})):i(t)}o.emit(document.body,"restorefocus",{bubbles:!0})}};p.displayConfirmDialog(a,m,_)}else i(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(203),i(212),i(222),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return t([n],{ALLOWED_INCOMING_MESSAGES:["openWithMessage","loadEmptyExampleMessage","errorLoadingContentMessage"],ALLOWED_INCOMING_DOMAINS:["https://drive-motw-integ.matlab.com","https://drive-preview.matlab.com","https://drive.matlab.com","https://ww2.mathworks.cn"],ALLOWED_OUTGOING_MESSAGES:["ready","close","status","disconnect","reload"],constructor:function(){var t=window.addEventListener?"addEventListener":"attachEvent",n=window.addEventListener?"removeEventListener":"detachEvent",o="attachEvent"===t?"onmessage":"message",r=e.hitch(this,this._receiveFcn);this._listener={add:function(){window[t](o,r,!1)},remove:function(){window[n](o,r)}},this._listener.add(),this._queue=new i,this.ALLOWED_INCOMING_DOMAINS.push(window.location.protocol+"//"+window.location.host)},start:function(){this.hasStarted()||(this._queue.resolve(),this._queue=null)},stop:function(){this._queue=new i},destroy:function(){this._listener.remove(),this._listener=null},_receiveFcn:function(t){var i,n=t.message?t.message:t.data;if(this.checkIfDomainIsAllowed(t.origin)){var o=this.retrieveMessageProperties(n);o.allowed&&(i=o.data,this._queue?this._queue.then(e.hitch(this,(function(){this.emit(o.msgType,i)}))):this.emit(o.msgType,i))}},postMessage:function(e,t){this.ALLOWED_OUTGOING_MESSAGES.forEach((function(i){i===e&&(window.opener?window.opener.postMessage(JSON.stringify({message:e,data:t}),"*"):window.parent.postMessage(JSON.stringify({message:e,data:t}),"*"))}))},hasStarted:function(){return!this._queue},retrieveMessageProperties:function(e){var t,i,n;if(e)if("string"==typeof e)for(var o in this.ALLOWED_INCOMING_MESSAGES){var r=this.ALLOWED_INCOMING_MESSAGES[o]+":";if(0===e.indexOf(r)){t=!0,i=JSON.parse(e.substring(r.length)),n=this.ALLOWED_INCOMING_MESSAGES[o];break}}else t=this.ALLOWED_INCOMING_MESSAGES.indexOf(e.type)>-1,i=e.content,n=e.type;return{allowed:t,data:i,msgType:n}},checkIfDomainIsAllowed:function(e){return this.ALLOWED_INCOMING_DOMAINS.indexOf(e)>-1||this.endsWith(e,".mathworks.com")},endsWith:function(e,t){return e.length>=t.length&&e.slice(e.length-t.length,e.length)===t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(212)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e){this.iframeMessageService=e.iframeMessageService,this.wraService=e.wraService,this._manifestHandler=e.manifestHandler,this._manifestRecieved=!1,this.workerReady=e.workerReady,i(this.iframeMessageService,"openWithMessage",t.hitch(this,this._onManifestMessage)),i(this.iframeMessageService,"errorLoadingContentMessage",t.hitch(this,this._handleGetExampleError))},_onManifestMessage:function(e){this._manifestRecieved=!0,this.wraService.doLoginWhenReady(this._fetchCredentials(e)),this.workerReady.then(function(){this._manifestHandler.consumeManifest(e)}.bind(this))},_handleGetExampleError:function(e){this._manifestHandler._handleGetExampleError(e.targetInformation.errMsg)},_fetchCredentials:function(e){return"MATLAB_ONLINE"!==e.targetInformation.targetViewer?{type:"guest"}:void 0},wasManifestReceived:function(){return this._manifestRecieved}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(290),i(241),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(e){this._waitingOnUnRegisteredTasks=new Map,this._supportedTasks=new Map,this.iframeMessageService=e.iframeMessageService,this.busyIndicator=e.busyIndicator,this.UdcService=e.UdcService,this.workerReady=e.workerReady,this.currentManifest=null},consumeManifest:function(e){if(this.currentManifestStr!=JSON.stringify(e)){var i=new t;this.busyIndicator.showUntilFinished(i.promise),this.currentManifest=e,this.currentManifestStr=JSON.stringify(this.currentManifest),"LIVE_EDITOR"===e.targetInformation.targetViewer&&this.UdcService.setMWAToken("ffada3f1-534b-4e5f-958b-1e668ec8e0ae"),this._runTask("setAccessTier",e),this._runTask("handleBufferedContent",e).then(function(){this._runTask("switchToMATLABView").then(function(){this._runTask("setupUiContainerExperience")}.bind(this)),this._runTask("curateLiveEditorExperience")}.bind(this)),this._runTask("logOpenWithMessage",e),this._sendExampleInformationToUDC();var n=this;n._runTask("downloadDependencies",e).then((function(){n._runTask("initializeWorker",e).then((function(){n.iframeMessageService.postMessage("status",!0),i.resolve()}),(function(){n._handleGetExampleError(e.targetInformation.errMsg),i.reject()}))}),(function(){n._handleGetExampleError(e.targetInformation.errMsg),i.reject()}))}},showBusyIndicator:function(){this.busyIndicator.show()},_hideBusyOverlay:function(){this.busyIndicator&&this.busyIndicator.hide()},_handleGetExampleError:function(e){e=this._sanitizeInput(e);var t=i.disableFunctionSaveTitle,o=i.errorLoadingText.replace("{0}",e),r={icon:"error",buttonText:"OK",defaultAcceptButton:1,closeCallback:function(){this.iframeMessageService.postMessage("close")}.bind(this)};n.displayAlertDialog(t,o,r),this.iframeMessageService.postMessage("status",!1)},handleManifestReload:function(){var e=new t,i=this.currentManifest;return i.targetInformation&&i.targetInformation.bufferedEditorContent&&this._runTask("extractContentsFromLiveEditor").then((function(e){e&&(i.targetInformation.bufferedEditorContent=e)})),e.resolve(i),e.promise},_sanitizeInput:function(e){if("string"==typeof e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}return e},_sendExampleInformationToUDC:function(){var e=this;this.workerReady.then((function(){e.UdcService.sendDataToServer()}))},registerTasks:function(e,t){this._supportedTasks.set(e,t),this._waitingOnUnRegisteredTasks.has(e)&&this._handleWaitingTasks(e,t)},_runTask:function(e,i){if(!this._supportedTasks.has(e)){var n=new t;return this._waitingOnUnRegisteredTasks.set(e,{deferred:n,inputParams:i}),n.promise}try{return this._supportedTasks.get(e)(i)}catch(i){return o.info("Task "+e+" has errors and can't be completed."),(new t).reject(i.message)}},_handleWaitingTasks:function(e,t){var i=this._waitingOnUnRegisteredTasks.get(e);this._waitingOnUnRegisteredTasks.delete(e),this._runTask(e,i.inputParams).then((function(){i.deferred.resolve(t)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(758),i(8437),i(8438),i(8497),i(8515),i(8516),i(2637),i(2638),i(8517)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(null,{fModel:null,fCurrentProjectService:null,fDesktop:null,fFilesPanel:null,fToolstrip:null,fProjectInitView:null,fAuxViewManager:[],fGenericToolstripItemManager:null,fToolsManager:null,constructor:function(e,d,u,h){this.fDesktop=h,this.fModel=new t(e,d),this.fCurrentProjectService=new i(this.fModel),this.fAuxViewManager=new r(this.fCurrentProjectService,this.fModel),this.fGenericToolstripItemManager=new s,this.fToolsManager=new l,this.fFilesPanel=new o(this.fModel,u,this.fCurrentProjectService,h),this.fToolstrip=new n(h,this.fModel,u,this.fCurrentProjectService,this.fGenericToolstripItemManager,this.fToolsManager),this.fProjectInitView=new a(this.fModel),this.fModel.start(),this.fReadyLatch=new c("/project/view/ready")},registerExtension:function(e,t){if("function"==typeof e&&this.fToolsManager.addExtensionFactory(e,t),e.createExtension){const t=e.createExtension(this.fDesktop);this.fAuxViewManager.registerHandler(t)}e.provideToolstripEntryPoint&&this.fGenericToolstripItemManager.addExtensionToolstipFactory(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(345)],o=i.dj.d(n,(e,t,i)=>{const n=i.default;return e([t],{fModel:null,constructor:function(e){this.fModel=e,this.fListener=new n;const t=this._handleSelection.bind(this);this.fListener.transactionCommitted=function(e){e.processModified(t,["project.view.core.ProjectView"])},this.fModel.getModel().addShallowListener(this.fListener)},events:{PROJECT_CHANGE:"TopLevelProjectChanged"},onProjectChange:function(e){return this.on(this.events.PROJECT_CHANGE,e)},getProject:function(){const e=this.fModel.getTopLevelObject("project.view.core.ProjectView");if(!e)return null;const t=e.project;return t.isEmpty()?null:t.back()},isCurrentProject:function(e){if(!e)return!1;const t=this.getProject();return t&&t.location===e.location},_handleSelection:function(e){let t=null;if(e){const i=e.project;i.isEmpty()||(t=i.back())}this.emit(this.events.PROJECT_CHANGE,t)}})},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(759),i(226),i(510),i(2628),i(2630),i(8479),i(8480),i(8494),i(8496),i(2636),i(2637),i(2638),i(1016)],o=i.dj.d(n,(e,t,i,n,o,r,a,s,l,c,d,u,h,p)=>e(null,{fModel:null,fCommandChannel:null,fContainer:null,fTab:null,fUiBuilder:null,fTempSections:null,fCurrentProjectService:null,fCurrentProject:null,fShortcutSection:null,fSourceControlSection:null,fShareList:null,fEnvironmentSection:null,fToolsSection:null,fIconProvider:null,fGenericToolstripItemManager:null,fToolsManager:null,constructor:function(e,t,i,o,r,a){this.fContainer=e,this.fUiBuilder=this.fContainer.uiBuilder,this.fModel=t,this.fCommandChannel=i,this.fCurrentProjectService=o;var s=this._update.bind(this);this.fCurrentProjectService.onProjectChange(s),this.fModel.onStart(this._start.bind(this)),this.tabGroupTag=this.fContainer.tabGroupTags[0],this.projectTabTag="projectMainTab",this.fIconProvider=new n,this.fGenericToolstripItemManager=r||new u,this.fToolsManager=a||new h},_start:function(){this._initializeToostrip(),this._update()},_update:function(){const e=this.fCurrentProjectService.getProject();this.fCurrentProjectService.isCurrentProject(this.fCurrentProject)||(this.fCurrentProject=e,this._removeMainProjectTab(),e&&(this._addMainProjectTab(),this._updateToolstrip(e),this.fUiBuilder.selectTab(this.projectTabTag)))},_updateToolstrip:function(e){this.fGenericToolstripItemManager.setProject(e),this.fShareList.update(e),this.fEnvironmentSection.update(e),this.fToolsSection.update(e),this.fShortcutSection.update(e),this.fSourceControlSection.update(e)},_addMainProjectTab:function(){this.fUiBuilder.add(this.fTab,this.fUiBuilder.tagToId(this.tabGroupTag))},_removeMainProjectTab:function(){this.fUiBuilder.remove(this.fTab)},_initializeToostrip:function(){this.fTab=this.fUiBuilder.create({tag:this.projectTabTag,type:i.TAB,parentId:this.fUiBuilder.tagToId(this.tabGroupTag),title:t.Project,removable:!0}),this._addFileSection(),this._addToolsSection(),this._addEnvironmentSection(),this._addShortcutSection(),this._addSourceControlSection(),this._addCloseSection(),this._attachCloseCallback(this.fTab)},_addEnvironmentSection(){this.fEnvironmentSection=new s(this.fContainer,this.fTab,this.fGenericToolstripItemManager)},_addToolsSection(){this.fToolsSection=new l(this.fContainer,this.fTab,this.fToolsManager)},_addShortcutSection(){this.fShortcutSection=new o(this.fContainer,this.fTab,this.fModel)},_addSourceControlSection(){this.fSourceControlSection=new r(this.fContainer,this.fTab)},_addFileSection:function(){const e=this.fUiBuilder.create({type:i.SECTION,title:t.TSSectionFile,parentId:this.fTab}),n=new p(this.fUiBuilder,this.fIconProvider,e),o=this.fUiBuilder.create({type:i.COLUMN,parentId:e}),r=new c(this.fCommandChannel);n.makeButton(o,"/toolbox/matlab/project/views/core_web/project-core-ui/images/Folder_24.png","open",t.TSButtonOpenProject,t.TSButtonOpenProjectDescription,async()=>{r.execute()}),this.fShareList=new a(this.fUiBuilder,this.fIconProvider);const s=this.fUiBuilder.create({type:i.COLUMN,parentId:e}),l=this.fUiBuilder.create({type:i.DROP_DOWN_BUTTON,tag:"share",text:t.TSButtonShareProject,description:t.TSButtonShareProjectDescription,parentId:s,hasDynamicPopup:!0});this.fShareList.setButton(l),this.fIconProvider.loadIcon("/toolbox/matlab/project/views/core_web/project-core-ui/images/share_24.png").then(e=>this.fUiBuilder.set(l,"icon",e))},_addCloseSection:function(){const e=this.fUiBuilder.create({type:i.SECTION,title:t.TSCloseSection,parentId:this.fTab}),n=this.fUiBuilder.create({type:i.COLUMN,parentId:e});new p(this.fUiBuilder,this.fIconProvider,e).makeButton(n,"/toolbox/matlab/project/views/core_web/project-core-ui/images/close_24.png","close",t.TSButtonCloseProject,t.TSButtonCloseProjectDescription,async()=>{this._handleClose()})},_attachCloseCallback:function(e){this.fUiBuilder.addEventCallback(this.fTab,e=>{"remove"===e.eventType&&this._handleClose()})},_handleClose:function(e){new d(this.fCommandChannel).execute()}}),e,t),e.exports=o},function(e,t,i){e.exports={CloseProject:"プロジェクトを閉じる",CloseProjectWarningMessage:"現在のプロジェクトを閉じますか?",CloseProjectWarningTitle:"プロジェクトを閉じる",CurrentProject:"現在のプロジェクト",Description:"説明",Location:"場所",Name:"名前",Project:"プロジェクト",ProjectFileType:"プロジェクト",ProjectSelectionTitle:"プロジェクトの選択",TSButtonCloseProject:"プロジェクトを\n閉じる",TSButtonCloseProjectDescription:"現在のプロジェクトを閉じます",TSButtonDependencyViewer:"依存関係アナライザー",TSButtonDependencyViewerDescription:"依存関係を可視化し、必要なファイルを検索し、変更の影響を評価します",TSButtonOpenProject:"開く",TSButtonOpenProjectDescription:"プロジェクトを開く",TSButtonShareProject:"共有",TSButtonShareProjectDescription:"開いているプロジェクトを共有します",TSButtonUnsavedChanges:"未保存の変更",TSButtonUnsavedChangesDescription:"変更が保存されていないプロジェクト ファイルを管理します",TSCloseSection:"閉じる",TSListItemManageExportProfiles:"エクスポート プロファイルの管理...",TSSectionEnvironment:"環境",TSSectionFile:"ファイル",TSSectionShortcuts:"ショートカット",TSSectionTools:"ツール"}},function(e,t,i){e.exports={CloseProject:"프로젝트 닫기",CloseProjectWarningMessage:"현재 프로젝트를 닫으시겠습니까?",CloseProjectWarningTitle:"프로젝트 닫기",CurrentProject:"현재 프로젝트",Description:"설명",Location:"위치",Name:"이름",Project:"프로젝트",ProjectFileType:"프로젝트",ProjectSelectionTitle:"프로젝트 선택",TSButtonCloseProject:"프로젝트\n닫기",TSButtonCloseProjectDescription:"현재 프로젝트를 닫습니다",TSButtonDependencyViewer:"종속성 분석기",TSButtonDependencyViewerDescription:"종속성을 시각화하고, 필요한 파일을 찾고, 변경 사항이 미치는 영향을 평가합니다.",TSButtonOpenProject:"열기",TSButtonOpenProjectDescription:"프로젝트를 엽니다.",TSButtonShareProject:"공유",TSButtonShareProjectDescription:"열려 있는 프로젝트를 공유합니다.",TSButtonUnsavedChanges:"저장되지 않은 변경 내용",TSButtonUnsavedChangesDescription:"저장되지 않은 변경 내용이 있는 프로젝트 파일을 관리합니다.",TSCloseSection:"닫기",TSListItemManageExportProfiles:"내보내기 프로파일 관리...",TSSectionEnvironment:"환경",TSSectionFile:"파일",TSSectionShortcuts:"바로 가기",TSSectionTools:"툴"}},function(e,t,i){e.exports={CloseProject:"关闭工程",CloseProjectWarningMessage:"是否关闭当前工程?",CloseProjectWarningTitle:"关闭工程",CurrentProject:"当前工程",Description:"说明",Location:"位置",Name:"名称",Project:"工程",ProjectFileType:"工程",ProjectSelectionTitle:"选择工程",TSButtonCloseProject:"关闭\n工程",TSButtonCloseProjectDescription:"关闭当前工程",TSButtonDependencyViewer:"依存关系分析器",TSButtonDependencyViewerDescription:"可视化依存关系,查找所需文件并评估更改的影响",TSButtonOpenProject:"打开",TSButtonOpenProjectDescription:"打开工程",TSButtonShareProject:"共享",TSButtonShareProjectDescription:"共享打开的工程",TSButtonUnsavedChanges:"未保存的更改",TSButtonUnsavedChangesDescription:"管理具有未保存更改的工程文件",TSCloseSection:"关闭",TSListItemManageExportProfiles:"管理导出配置文件...",TSSectionEnvironment:"环境",TSSectionFile:"文件",TSSectionShortcuts:"快捷方式",TSSectionTools:"工具"}},function(e,t,i){e.exports={root:{CloseProject:"Close Project",CloseProjectWarningMessage:"Close the current project?",CloseProjectWarningTitle:"Close Project",CurrentProject:"Current Project",Description:"Description",Location:"Location",Name:"Name",Project:"Project",ProjectFileType:"Projects",ProjectSelectionTitle:"Select a Project",TSButtonCloseProject:"Close\nProject",TSButtonCloseProjectDescription:"Close the current project",TSButtonDependencyViewer:"Dependency Analyzer",TSButtonDependencyViewerDescription:"Visualize dependencies, find required files, and assess the impact of changes",TSButtonOpenProject:"Open",TSButtonOpenProjectDescription:"Open a project",TSButtonShareProject:"Share",TSButtonShareProjectDescription:"Share the open project",TSButtonUnsavedChanges:"Unsaved Changes",TSButtonUnsavedChangesDescription:"Manage project files with unsaved changes",TSCloseSection:"Close",TSListItemManageExportProfiles:"Manage Export Profiles...",TSSectionEnvironment:"Environment",TSSectionFile:"File",TSSectionShortcuts:"Shortcuts",TSSectionTools:"Tools"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(218),i(220),i(8444),i(8445),i(8446),i(8447)],o=i.dj.d(n,(function(e,t){return t(e,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_core",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={CloseProject:"プロジェクトを閉じる",CloseProjectWarningMessage:"現在のプロジェクトを閉じますか?",CloseProjectWarningTitle:"プロジェクトを閉じる",CurrentProject:"現在のプロジェクト",Description:"説明",Location:"場所",Name:"名前",Project:"プロジェクト",ProjectFileType:"プロジェクト",ProjectSelectionTitle:"プロジェクトの選択",TSButtonCloseProject:"プロジェクトを\n閉じる",TSButtonCloseProjectDescription:"現在のプロジェクトを閉じます",TSButtonDependencyViewer:"依存関係アナライザー",TSButtonDependencyViewerDescription:"依存関係を可視化し、必要なファイルを検索し、変更の影響を評価します",TSButtonOpenProject:"開く",TSButtonOpenProjectDescription:"プロジェクトを開く",TSButtonShareProject:"共有",TSButtonShareProjectDescription:"開いているプロジェクトを共有します",TSButtonUnsavedChanges:"未保存の変更",TSButtonUnsavedChangesDescription:"変更が保存されていないプロジェクト ファイルを管理します",TSCloseSection:"閉じる",TSListItemManageExportProfiles:"エクスポート プロファイルの管理...",TSSectionEnvironment:"環境",TSSectionFile:"ファイル",TSSectionShortcuts:"ショートカット",TSSectionTools:"ツール"}},function(e,t,i){e.exports={CloseProject:"프로젝트 닫기",CloseProjectWarningMessage:"현재 프로젝트를 닫으시겠습니까?",CloseProjectWarningTitle:"프로젝트 닫기",CurrentProject:"현재 프로젝트",Description:"설명",Location:"위치",Name:"이름",Project:"프로젝트",ProjectFileType:"프로젝트",ProjectSelectionTitle:"프로젝트 선택",TSButtonCloseProject:"프로젝트\n닫기",TSButtonCloseProjectDescription:"현재 프로젝트를 닫습니다",TSButtonDependencyViewer:"종속성 분석기",TSButtonDependencyViewerDescription:"종속성을 시각화하고, 필요한 파일을 찾고, 변경 사항이 미치는 영향을 평가합니다.",TSButtonOpenProject:"열기",TSButtonOpenProjectDescription:"프로젝트를 엽니다.",TSButtonShareProject:"공유",TSButtonShareProjectDescription:"열려 있는 프로젝트를 공유합니다.",TSButtonUnsavedChanges:"저장되지 않은 변경 내용",TSButtonUnsavedChangesDescription:"저장되지 않은 변경 내용이 있는 프로젝트 파일을 관리합니다.",TSCloseSection:"닫기",TSListItemManageExportProfiles:"내보내기 프로파일 관리...",TSSectionEnvironment:"환경",TSSectionFile:"파일",TSSectionShortcuts:"바로 가기",TSSectionTools:"툴"}},function(e,t,i){e.exports={CloseProject:"关闭工程",CloseProjectWarningMessage:"是否关闭当前工程?",CloseProjectWarningTitle:"关闭工程",CurrentProject:"当前工程",Description:"说明",Location:"位置",Name:"名称",Project:"工程",ProjectFileType:"工程",ProjectSelectionTitle:"选择工程",TSButtonCloseProject:"关闭\n工程",TSButtonCloseProjectDescription:"关闭当前工程",TSButtonDependencyViewer:"依存关系分析器",TSButtonDependencyViewerDescription:"可视化依存关系,查找所需文件并评估更改的影响",TSButtonOpenProject:"打开",TSButtonOpenProjectDescription:"打开工程",TSButtonShareProject:"共享",TSButtonShareProjectDescription:"共享打开的工程",TSButtonUnsavedChanges:"未保存的更改",TSButtonUnsavedChangesDescription:"管理具有未保存更改的工程文件",TSCloseSection:"关闭",TSListItemManageExportProfiles:"管理导出配置文件...",TSSectionEnvironment:"环境",TSSectionFile:"文件",TSSectionShortcuts:"快捷方式",TSSectionTools:"工具"}},function(e,t,i){e.exports={root:{CloseProject:"Close Project",CloseProjectWarningMessage:"Close the current project?",CloseProjectWarningTitle:"Close Project",CurrentProject:"Current Project",Description:"Description",Location:"Location",Name:"Name",Project:"Project",ProjectFileType:"Projects",ProjectSelectionTitle:"Select a Project",TSButtonCloseProject:"Close\nProject",TSButtonCloseProjectDescription:"Close the current project",TSButtonDependencyViewer:"Dependency Analyzer",TSButtonDependencyViewerDescription:"Visualize dependencies, find required files, and assess the impact of changes",TSButtonOpenProject:"Open",TSButtonOpenProjectDescription:"Open a project",TSButtonShareProject:"Share",TSButtonShareProjectDescription:"Share the open project",TSButtonUnsavedChanges:"Unsaved Changes",TSButtonUnsavedChangesDescription:"Manage project files with unsaved changes",TSCloseSection:"Close",TSListItemManageExportProfiles:"Manage Export Profiles...",TSSectionEnvironment:"Environment",TSSectionFile:"File",TSSectionShortcuts:"Shortcuts",TSSectionTools:"Tools"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(860),i(236),i(418),i(563),i(345),i(233),i(241),i(226),i(8453),i(2629),i(383),i(510)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){const p=r.default;return e(null,{fUiBuilder:null,projectTabGroupTag:"",fSection:null,fShortcutGalleryColumn:null,fShortcutCache:null,fListener:null,fModel:null,fCommandExecutor:null,fFileIconProvider:null,constructor:function(e,t,i,o,r){this.fCommandExecutor=new u(r),this.fModel=o,this.fUiBuilder=e,this.fSection=t,this.fShortcutCache=i,this.fFileIconProvider=n.getFileIconProvider();const a=i.getMetaClass().getPropertyByName("entries");this.fListener=new p,this.fListener.transactionCommitted=e=>{e.isChanged(i,a)&&this.update()},this.fModel.getModel().addShallowListener(this.fListener),this.update()},dispose:function(){this.fModel.getModel().removeListener(this.fListener)},update:function(){if(this.fShortcutGalleryColumn&&this.fUiBuilder.remove(this.fShortcutGalleryColumn),this.fShortcutGalleryColumn=this.fUiBuilder.create({type:l.COLUMN,parentId:this.fSection}),!this.fShortcutCache.isValid)return;const e=this._addShortcutsFooter(),t=this.fUiBuilder.create({type:l.GALLERY_POPUP,galleryItemRowCount:3,galleryItemTextLineCount:1,maxColumnCount:3,reorderCategory:!1,favoritesEnabled:!1,showHeader:!0,footerId:e});this.fUiBuilder.create({type:l.GALLERY,parentId:this.fShortcutGalleryColumn,minColumnCount:1,maxColumnCount:3,galleryPopupId:t,tag:"projectShortcuts"}),this._populateShortcutGallery(t)},_populateShortcutGallery:function(e){if(!this.fShortcutCache.isValid)return;const n=this.fShortcutCache.entries.getAllValues();n.sort((e,t)=>e.group.localeCompare(t.group,void 0,{numeric:!0,sensitivity:"base"}));let o=new Set;n.forEach(e=>{o.add(e.group)});let r={},c=t=>{const i=this.fUiBuilder.create({type:l.GALLERY_CATEGORY,tag:t,title:t,parentId:e});r[t]=i};const d=this.fShortcutCache.groups.getAllValues()[0];o.has(d)&&(c(d),o.delete(d)),o.forEach(e=>{c(e)}),n.sort((e,t)=>e.name.localeCompare(t.name)),n.forEach(e=>{let n=r[e.group];const o=this.fUiBuilder.create({type:l.GALLERY_ITEM,tag:e.shortcutId,text:e.name,icon:"matlab_16",parentId:n,removable:!0,removeMessage:t.DeleteShortcut,description:e.filename});if(""!==e.icon)this.fUiBuilder.set(o,"icon",e.icon);else{const t=a.getFileNameExtension(e.filename),i={location:"",name:e.filename,isDirectory:!1,type:t};this.fFileIconProvider.getIconData(i).then(e=>{this.fUiBuilder.set(o,"icon",e.iconData)})}const c=()=>{const n=()=>{this.fUiBuilder.set(o,"enabled",!0)};this.fUiBuilder.set(o,"enabled",!1),this.fCommandExecutor.execute("runShortcut",e.filename).then(()=>{n()}).catch(o=>{n();const r=i.substitute(t.ShortcutFailure,[e.name]);s.displayAlertDialog(t.ShortcutAlertDialogTitle,r)})},d=()=>{this.fCommandExecutor.execute("removeShortcut",e.filename).catch(e=>{s.displayAlertDialog(t.ShortcutAlertDialogTitle,e)})};this.fUiBuilder.addEventCallback(o,e=>{"itemPushed"===e.eventType?c():"remove"===e.eventType&&d()})})},_addShortcutsFooter:function(){let e=this.fUiBuilder.create({type:l.FOOTER,tag:"shortcutsFooter"}),i=this.fUiBuilder.create({type:l.FOOTER_CELL,tag:"shortcutsFooterCell",parentId:e});const n=new h,o=n.getRemoteWorkerUrl("/toolbox/matlab/project/views/file_web/project-file-ui/images/new_shortcut_16.png");let r=this.fUiBuilder.create({type:l.PUSH_BUTTON,tag:"newShortcutButton",icon:o,text:t.NewShortcutButton,description:t.NewShortcutDescription,parentId:i});const a=new d(this.fCommandExecutor,this.fShortcutCache.groups.getAllValues());this.fUiBuilder.addEventCallback(r,()=>{a.show()});const s=n.getRemoteWorkerUrl("/toolbox/matlab/project/views/file_web/project-file-ui/images/organize_groups_16.png");let u=this.fUiBuilder.create({type:l.PUSH_BUTTON,tag:"organizeGroupsButton",icon:s,text:t.OrganizeGroupsButton,description:t.OrganizeGroupsDescription,parentId:i});const p=new c(this.fCommandExecutor,this.fShortcutCache,this.fModel);return this.fUiBuilder.addEventCallback(u,()=>{p.show()}),e}})}),e,t),e.exports=o},function(e,t,i){e.exports={AddPathFolderButton:"フォルダーを追加...",AddPathFolderRecursiveButton:"サブフォルダーも追加...",DeleteShortcut:"ショートカットの削除",DetailsAlertDialogTitle:"MATLAB プロジェクト",DetailsDialogButtonDescription:"プロジェクトの詳細を表示および編集します",DetailsDialogButtonName:"詳細",DetailsDialogTitle:"プロジェクトの詳細",DetailsProjectDescription:"説明:",DetailsProjectName:"名前:",DetailsProjectRoot:"プロジェクトのルート:",DetailsProjectRootButton:"現在のフォルダーとして設定",InProject:"プロジェクト内",Missing:"見つかりません",NewShortcutButton:"新規ショートカット",NewShortcutDescription:"プロジェクト ファイルをショートカットとして設定します",NotInProject:"プロジェクト外",OrganizeGroupsButton:"グループの整理",OrganizeGroupsCreate:"作成",OrganizeGroupsCreateGroupTitle:"新規ショートカット グループの作成",OrganizeGroupsDescription:"ショートカット グループを変更します",OrganizeGroupsNonexistentGroup:"グループ ${0} は存在しません。",OrganizeGroupsRemove:"削除",OrganizeGroupsRename:"名前の変更",OrganizeGroupsRenameDefaultGroup:"既定のグループ名は変更できません。",OrganizeGroupsTitle:"ショートカット グループの整理",PathChangeErrorTitle:"プロジェクト パスの変更エラー",PathDialogButtonDescription:"プロジェクトが開いている間に、MATLAB 検索パスに追加するフォルダーを指定します",PathDialogButtonName:"プロジェクトのパス",PathDialogDescription:"プロジェクトのパスに追加するフォルダーを指定します。これらのフォルダーはプロジェクトを開いたときに MATLAB 検索パスに追加され、プロジェクトを閉じたときに削除されます。",PathDialogTitle:"プロジェクトのパス",ProjectPathTooltip:"プロジェクト パス上",RemovePathFolderButton:"削除",SelectPathFolder:"パス フォルダーの選択",ShortcutAlertDialogTitle:"MATLAB プロジェクト",ShortcutAllFilesDescription:"すべてのファイル",ShortcutChangeIconButton:"変更",ShortcutFailure:"ショートカット ${0} を実行できませんでした。",ShortcutFile:"ファイル",ShortcutFileSelectionTitle:"プロジェクト ファイルの選択",ShortcutGroup:"グループ",ShortcutIcon:"アイコン",ShortcutIconFilesDescription:"アイコン ファイル (*.png、*.gif)",ShortcutIconSelectionTitle:"ショートカット アイコンの選択",ShortcutInvalidFile:"The specified file is not a project file.",ShortcutInvalidIcon:"No image found in the file ${0}.",ShortcutName:"名前",ShortcutNoFile:"ショートカットを作成するにはターゲット ファイルを指定しなければなりません。",ShortcutNoFileSelected:"ファイルが選択されていません",ShortcutNoName:"ショートカットを作成するには名前を指定しなければなりません。",ShortcutSelectFileButton:"参照",ShortcutTitleEdit:"ショートカットの編集",ShortcutTitleNew:"新規ショートカットの作成",ShortcutUseDefaultIcon:"既定値を使用",ShutdownTooltip:"シャットダウン時に実行",StartupTooltip:"起動時に実行"}},function(e,t,i){e.exports={AddPathFolderButton:"폴더 추가...",AddPathFolderRecursiveButton:"하위 폴더와 함께 추가...",DeleteShortcut:"바로 가기 삭제",DetailsAlertDialogTitle:"MATLAB 프로젝트",DetailsDialogButtonDescription:"프로젝트 세부 정보를 보고 편집합니다.",DetailsDialogButtonName:"세부 정보",DetailsDialogTitle:"프로젝트 세부 정보",DetailsProjectDescription:"설명:",DetailsProjectName:"이름:",DetailsProjectRoot:"프로젝트 루트:",DetailsProjectRootButton:"현재 폴더로 설정",InProject:"프로젝트에 포함",Missing:"누락값",NewShortcutButton:"새 바로 가기",NewShortcutDescription:"프로젝트 파일을 바로 가기로 설정합니다.",NotInProject:"프로젝트에 미포함",OrganizeGroupsButton:"그룹 구성",OrganizeGroupsCreate:"만들기",OrganizeGroupsCreateGroupTitle:"새 바로 가기 그룹 만들기",OrganizeGroupsDescription:"바로 가기 그룹을 변경합니다.",OrganizeGroupsNonexistentGroup:"그룹 ${0}이(가) 존재하지 않습니다.",OrganizeGroupsRemove:"제거",OrganizeGroupsRename:"이름 바꾸기",OrganizeGroupsRenameDefaultGroup:"디폴트 그룹의 이름은 바꿀 수 없습니다.",OrganizeGroupsTitle:"바로 가기 그룹 구성",PathChangeErrorTitle:"프로젝트 경로를 변경하는 중 오류가 발생함",PathDialogButtonDescription:"프로젝트가 열려 있는 동안 MATLAB 검색 경로에 추가할 폴더를 지정합니다.",PathDialogButtonName:"프로젝트 경로",PathDialogDescription:"프로젝트 경로에 추가할 폴더를 지정합니다. 이러한 폴더는 프로젝트를 열면 MATLAB 검색 경로에 추가되고 프로젝트를 닫으면 제거됩니다.",PathDialogTitle:"프로젝트 경로",ProjectPathTooltip:"프로젝트 경로에 있음",RemovePathFolderButton:"제거",SelectPathFolder:"경로 폴더 선택",ShortcutAlertDialogTitle:"MATLAB 프로젝트",ShortcutAllFilesDescription:"모든 파일",ShortcutChangeIconButton:"변경",ShortcutFailure:"바로 가기 ${0}을(를) 실행하지 못했습니다.",ShortcutFile:"파일",ShortcutFileSelectionTitle:"프로젝트 파일 선택",ShortcutGroup:"그룹",ShortcutIcon:"아이콘",ShortcutIconFilesDescription:"아이콘 파일(*.png, *.gif)",ShortcutIconSelectionTitle:"바로 가기 아이콘 선택",ShortcutInvalidFile:"The specified file is not a project file.",ShortcutInvalidIcon:"No image found in the file ${0}.",ShortcutName:"이름",ShortcutNoFile:"바로 가기를 만들려면 대상 파일을 지정해야 합니다.",ShortcutNoFileSelected:"선택한 파일 없음",ShortcutNoName:"바로 가기를 만들려면 이름을 지정해야 합니다.",ShortcutSelectFileButton:"찾아보기",ShortcutTitleEdit:"바로 가기 편집",ShortcutTitleNew:"새 바로 가기 만들기",ShortcutUseDefaultIcon:"디폴트 값 사용",ShutdownTooltip:"종료 시 실행",StartupTooltip:"시작 시 실행"}},function(e,t,i){e.exports={AddPathFolderButton:"添加文件夹...",AddPathFolderRecursiveButton:"添加并包含子文件夹...",DeleteShortcut:"删除快捷方式",DetailsAlertDialogTitle:"MATLAB 工程",DetailsDialogButtonDescription:"查看和编辑工程详细信息",DetailsDialogButtonName:"详细信息",DetailsDialogTitle:"工程详细信息",DetailsProjectDescription:"描述:",DetailsProjectName:"名称:",DetailsProjectRoot:"工程根目录:",DetailsProjectRootButton:"设置为当前文件夹",InProject:"在工程中",Missing:"缺失",NewShortcutButton:"新建快捷方式",NewShortcutDescription:"将工程文件设置为快捷方式",NotInProject:"不在工程中",OrganizeGroupsButton:"整理组",OrganizeGroupsCreate:"创建",OrganizeGroupsCreateGroupTitle:"创建新快捷方式组",OrganizeGroupsDescription:"更改快捷方式组",OrganizeGroupsNonexistentGroup:"组 ${0} 不存在。",OrganizeGroupsRemove:"删除",OrganizeGroupsRename:"重命名",OrganizeGroupsRenameDefaultGroup:"无法重命名默认组。",OrganizeGroupsTitle:"整理快捷方式组",PathChangeErrorTitle:"更改工程路径时出错",PathDialogButtonDescription:"指定要在打开工程时添加到 MATLAB 搜索路径的文件夹",PathDialogButtonName:"工程路径",PathDialogDescription:"指定要添加到工程路径的文件夹。打开工程时,这些文件夹会添加到 MATLAB 搜索路径中,关闭工程时会删除这些文件夹。",PathDialogTitle:"工程路径",ProjectPathTooltip:"在工程路径中",RemovePathFolderButton:"删除",SelectPathFolder:"选择路径文件夹",ShortcutAlertDialogTitle:"MATLAB 工程",ShortcutAllFilesDescription:"所有文件",ShortcutChangeIconButton:"更改",ShortcutFailure:"无法执行快捷方式 ${0}。",ShortcutFile:"文件",ShortcutFileSelectionTitle:"选择工程文件",ShortcutGroup:"组",ShortcutIcon:"图标",ShortcutIconFilesDescription:"图标文件(*.png、*.gif)",ShortcutIconSelectionTitle:"选择快捷方式图标",ShortcutInvalidFile:"The specified file is not a project file.",ShortcutInvalidIcon:"No image found in the file ${0}.",ShortcutName:"名称",ShortcutNoFile:"必须指定目标文件才能创建快捷方式。",ShortcutNoFileSelected:"未选择任何文件",ShortcutNoName:"必须指定名称才能创建快捷方式。",ShortcutSelectFileButton:"浏览",ShortcutTitleEdit:"编辑快捷方式",ShortcutTitleNew:"创建新快捷方式",ShortcutUseDefaultIcon:"使用默认值",ShutdownTooltip:"在关闭时运行",StartupTooltip:"在启动时运行"}},function(e,t,i){e.exports={root:{AddPathFolderButton:"Add Folder...",AddPathFolderRecursiveButton:"Add with Subfolders...",DeleteShortcut:"Delete Shortcut",DetailsAlertDialogTitle:"MATLAB Project",DetailsDialogButtonDescription:"View and edit project details",DetailsDialogButtonName:"Details",DetailsDialogTitle:"Project Details",DetailsProjectDescription:"Description:",DetailsProjectName:"Name:",DetailsProjectRoot:"Project root:",DetailsProjectRootButton:"Set as Current Folder",InProject:"In project",Missing:"Missing",NewShortcutButton:"New Shortcut",NewShortcutDescription:"Set a project file as a shortcut",NotInProject:"Not in project",OrganizeGroupsButton:"Organize Groups",OrganizeGroupsCreate:"Create",OrganizeGroupsCreateGroupTitle:"Create New Shortcut Group",OrganizeGroupsDescription:"Change the shortcut groups",OrganizeGroupsNonexistentGroup:"The group ${0} does not exist.",OrganizeGroupsRemove:"Remove",OrganizeGroupsRename:"Rename",OrganizeGroupsRenameDefaultGroup:"The default group cannot be renamed.",OrganizeGroupsTitle:"Organize Shortcut Groups",PathChangeErrorTitle:"Error Changing Project Path",PathDialogButtonDescription:"Specify folders to add to the MATLAB search path while the project is open",PathDialogButtonName:"Project Path",PathDialogDescription:"Specify folders to add to the project path. These folders are added to the MATLAB search path when you open the project, and removed when you close the project.",PathDialogTitle:"Project Path",ProjectPathTooltip:"On project path",RemovePathFolderButton:"Remove",SelectPathFolder:"Select Path Folder",ShortcutAlertDialogTitle:"MATLAB Project",ShortcutAllFilesDescription:"All files",ShortcutChangeIconButton:"Change",ShortcutFailure:"Failed to execute the shortcut ${0}.",ShortcutFile:"File",ShortcutFileSelectionTitle:"Pick a project file",ShortcutGroup:"Group",ShortcutIcon:"Icon",ShortcutIconFilesDescription:"Icon file (*.png, *.gif)",ShortcutIconSelectionTitle:"Pick a shortcut icon",ShortcutInvalidFile:"The specified file is not a project file.",ShortcutInvalidIcon:"No image found in the file ${0}.",ShortcutName:"Name",ShortcutNoFile:"A target file must be specified to create a shortcut.",ShortcutNoFileSelected:"No file selected",ShortcutNoName:"A name must be specified to create a shortcut.",ShortcutSelectFileButton:"Browse",ShortcutTitleEdit:"Edit Shortcut",ShortcutTitleNew:"Create New Shortcut",ShortcutUseDefaultIcon:"Use Default",ShutdownTooltip:"Run at shutdown",StartupTooltip:"Run at startup"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(860),i(222),i(345),i(273),i(262),i(317),i(288),i(243),i(241),i(531),i(2442),i(510)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){const h=i.default;class p extends t{constructor(){super(),this.fSelection=[]}set(e){this.fSelection=e,this.emit("selectionChanged")}get(){return this.fSelection}}return class{constructor(e,t,i){this.fDialog=null,this.fCommandExecutor=e,this.fShortcutCache=t,this.fModel=i,this.fDataStore=new d([]),this.fDefaultGroup=this.fShortcutCache.groups.getAllValues()[0],this.fNewGroup="___newGroup___";const n=new u;this.fGroupImage=n.getRemoteWorkerUrl("/toolbox/matlab/project/views/file_web/project-file-ui/images/shortcut_16.png")}show(){this.fDialog||(this.fDialog=this._createDialog())}close(){if(this.fDialog){this.fModel.getModel().removeListener(this.fListener);const e=this.fDialog;this.fDialog=null,e.close()}}_getGroupsData(){const e=[],t=this.fShortcutCache.groups.getAllValues();return t.sort((e,t)=>e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})),t.forEach(t=>{e.push({id:t,label:t,iconUri:this.fGroupImage,parent:null})}),e}_update(){const e=this._getGroupsData();this.fDataStore.replaceAll(e)}_createDialog(){const t=this.fShortcutCache.getMetaClass().getPropertyByName("groups");this.fListener=new h,this.fListener.transactionCommitted=e=>{e.isChanged(this.fShortcutCache,t)&&this._update()},this.fModel.getModel().addShallowListener(this.fListener);const i=document.createElement("div");i.classList.add("proj-organize-groups-root");const r=o.createDialog({title:e.OrganizeGroupsTitle,className:"OrganizeGroupsDialog",dialogType:o.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,"data-test-id":"OrganizeGroupsDialog",content:i,buttons:[n.CLOSE],defaultActionButton:n.CLOSE});r.addButtonEventListener(n.CLOSE,()=>{this.close()},!1),r.on("close",()=>{this.close()}),r.resizeTo({width:400,height:250}),r.moveTo({});let a=new p;const s=this._createGroupsTree(i,a);return this._createButtons(i,a,s),r}_createGroupsTree(t,i){const n=document.createElement("div");n.classList.add("proj-organize-groups-tree-panel"),this._update();const o=new c(this.fDataStore,{plugins:[c.PLUGINS.ContextMenu,c.PLUGINS.MultipleNodeSelection],editor:{type:c.EDITORS.DefaultEditor,config:{acceptEmptyLabel:!1}},dataTestId:"OrganizeGroupsTree"});return o.on("selectionChanged",(function(e){i.set(e.nodeIds)})),o.on("contextMenu",e=>{this._createContextMenu(o,e,i)}),o.on("editCanceled",()=>{this._update()}),o.on("editCompleted",async t=>{try{const n=t.oldValue.label,r=t.newValue.label;if(n===this.fDefaultGroup)return l.displayAlertDialog(e.ShortcutAlertDialogTitle,e.OrganizeGroupsRenameDefaultGroup,{"data-test-id":"DefaultGroupRenameError"}),void this._update();i.get().includes(n)&&(i.set([r]),o.setSelection([{id:r}]),o.setNodeFocus({id:r})),await this.fCommandExecutor.execute("organizeGroups",n,r)}catch(t){l.displayAlertDialog(e.ShortcutAlertDialogTitle,t,{"data-test-id":"GroupRenameError"}),this._update(),o.setSelection([]),o.setNodeFocus()}}),o.startup(),o.expandAll(),n.appendChild(o.domNode),t.appendChild(n),o}_createContextMenu(e,t,i){t.target.nodeId?this._addRemoveAndRenameActions(t,i,e):this._addCreateAction(t,e)}_addCreateAction(t,i){const n=new r({tag:"organizeGroupsMenu"}),o=new a({id:"createGroup",text:e.OrganizeGroupsCreate,"data-test-id":"CreateContextMenuAction"});o.domNode.addEventListener("click",()=>{this._createNewGroup(i)}),n.addChild(o),n.openMenu({x:t.left,y:t.top}),n.on("close",()=>{n.destroy(),i.focus()})}_createNewGroup(e){const t=this._getGroupsData(),i=this.fNewGroup;t.push({id:i,label:"",iconUri:this.fGroupImage,parent:null}),this.fDataStore.replaceAll(t),e.scrollTo({id:i}),e.setNodeFocus({id:i}),setTimeout(()=>e.editNode(),20)}_addRemoveAndRenameActions(t,i,n){const o=t.target.nodeId,s=new r({tag:"organizeGroupsMenu"}),l=!!i.get().includes(o),c=l?i.get():[o];if(1===c.length&&(c[0]===this.fDefaultGroup||c[0]===this.fNewGroup))return void n.focus();const d=new a({id:"removeGroup",text:e.OrganizeGroupsRemove,"data-test-id":"RemoveContextMenuAction"});if(d.domNode.addEventListener("click",()=>{this._removeGroups(c),l&&(i.set([]),n.setSelection([]))}),s.addChild(d),1===c.length){const t=new a({id:"renameGroup",text:e.OrganizeGroupsRename,"data-test-id":"RenameContextMenuAction"});t.domNode.addEventListener("click",()=>{n.setNodeFocus({id:o}),n.editNode()}),s.addChild(t)}s.openMenu({x:t.left,y:t.top}),s.on("close",()=>{s.destroy(),n.focus()})}_createButtons(t,i,n){const o=document.createElement("div");o.classList.add("proj-organize-groups-buttons-row");const r=new s({text:e.OrganizeGroupsCreate,"data-test-id":"OrganizeGroupsCreateButton"});r.on("click",()=>{this._createNewGroup(n)}),r.placeAt(o),r.startup();const a=new s({text:e.OrganizeGroupsRemove,"data-test-id":"OrganizeGroupsRemoveButton"}),l=()=>{const e=i.get().filter(e=>e!==this.fDefaultGroup&&e!==this.fNewGroup).length>0;a.set("disabled",!e)};i.on("selectionChanged",l),l(),a.on("click",()=>{const e=i.get();this._removeGroups(e),i.set([]),n.setSelection([])}),a.placeAt(o),a.startup(),t.appendChild(o)}async _removeGroups(t){for(let i of t)if(i!==this.fDefaultGroup&&i!==this.fNewGroup)try{await this.fCommandExecutor.execute("organizeGroups",i,"")}catch(t){l.displayAlertDialog(e.ShortcutAlertDialogTitle,t,{"data-test-id":"GroupRemoveError"}),this._update()}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(232),i(1054)],o=i.dj.d(n,(function(e,t,i){return e(null,{constructor:function(e,...t){this.fFileQueryFunction=e,this.fArgs=t},getFile:function(){const e=i.v4(),n="FEvalResponse:"+e,o="FEval:"+e,r=function(){t.deregisterResponseHandler(n),t.deregisterFaultHandler(o)};return new Promise((i,a)=>{t.registerResponseHandler(n,(e,t)=>{e[0].isError&&a(e[0].messageFaults[0].message);const n=e[0].results[0];i(n),r()}),t.registerFaultHandler(o,(e,t)=>{a(e.Msg),r()}),t.sendMessage({FEval:{function:this.fFileQueryFunction,arguments:this.fArgs,nargout:1,priority:1}},{},e)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8456),i(8457),i(8458),i(8459)],o=i.dj.d(n,(function(e,t){return t(e,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_source_control",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={CommitAction:"変更をコミット中",CommitDialogInstructions:"メッセージ:",CommitDialogTitle:"変更をコミット",FetchAction:"変更をフェッチ中",PullAction:"変更をプル中",PushAction:"変更をプッシュ中",SourceControlSection:"ソース管理",commit:"コミット",commitDescription:"変更したファイルをすべてリポジトリにコミットします",fetch:"フェッチ",pull:"プル",push:"プッシュ",refresh:"更新",refreshDescription:"表示を更新"}},function(e,t,i){e.exports={CommitAction:"변경 내용을 커밋하는 중",CommitDialogInstructions:"메시지:",CommitDialogTitle:"변경 내용 커밋",FetchAction:"변경 내용을 가져오는 중",PullAction:"변경 내용을 끌어오는 중",PushAction:"변경 내용을 밀어넣는 중",SourceControlSection:"소스 컨트롤",commit:"커밋",commitDescription:"수정된 모든 파일을 리포지토리로 커밋합니다.",fetch:"가져오기(Fetch)",pull:"끌어오기(Pull)",push:"밀어넣기(Push)",refresh:"새로 고침",refreshDescription:"보기를 새로 고칩니다."}},function(e,t,i){e.exports={CommitAction:"提交更改",CommitDialogInstructions:"消息:",CommitDialogTitle:"提交更改",FetchAction:"提取更改",PullAction:"取回更改",PushAction:"推动更改",SourceControlSection:"源代码管理",commit:"提交",commitDescription:"将所有修改后的文件提交到存储库",fetch:"提取",pull:"取回",push:"推送",refresh:"刷新",refreshDescription:"刷新视图"}},function(e,t,i){e.exports={root:{CommitAction:"Committing changes",CommitDialogInstructions:"Message:",CommitDialogTitle:"Commit Changes",FetchAction:"Fetching changes",PullAction:"Pulling changes",PushAction:"Pushing changes",SourceControlSection:"source control",commit:"Commit",commitDescription:"Commit all modified files to repository",fetch:"Fetch",pull:"Pull",push:"Push",refresh:"Refresh",refreshDescription:"Refresh view"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"プロジェクトにファイルを追加できません。",AddToProject:"プロジェクトに追加",AddToProjectAction:"ファイルをプロジェクトに追加中",AddToProjectPath:"プロジェクトのパスに追加",AddToProjectPathAction:"選択したフォルダーをプロジェクト パスに追加中",Copy:"コピー",CreateShortcut:"ショートカットの作成",Cut:"切り取り",EditShortcut:"ショートカットの編集",ErrorDialogTitle:"エラー",Open:"開く",Paste:"貼り付け",ProjectBusyAction:"アクションの実行中",RemoveAtShutdown:"シャットダウンから削除",RemoveAtStartup:"起動から削除",RemoveFilesAlertDialogTitle:"プロジェクトからファイルを削除できません。",RemoveFromProject:"プロジェクトから削除",RemoveFromProjectPath:"プロジェクトのパスから削除",RemoveFromProjectPathAction:"選択したフォルダーをプロジェクト パスから削除中",RemoveShortcut:"ショートカットの削除",RunAtShutdown:"シャットダウン時に実行",RunAtStartup:"起動時に実行",SelectedFolders:"選択フォルダー",SelectedFoldersRecursive:"選択フォルダーとサブフォルダー",SettingRemoveAtShutdown:"シャットダウン アクション時の実行をクリアします。",SettingRemoveAtStartup:"起動アクション時の実行をクリアします。",SettingRunAtShutdown:"プロジェクトのシャットダウン時に実行するファイルを更新します。",SettingRunAtStartup:"プロジェクトの起動時に実行するファイルを更新します。"}},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"프로젝트에 파일을 추가할 수 없음.",AddToProject:"프로젝트에 추가",AddToProjectAction:"프로젝트에 파일을 추가하는 중",AddToProjectPath:"프로젝트 경로에 추가",AddToProjectPathAction:"프로젝트 경로에 선택한 폴더를 추가하는 중",Copy:"복사",CreateShortcut:"바로 가기 만들기",Cut:"잘라내기",EditShortcut:"바로 가기 편집",ErrorDialogTitle:"오류",Open:"열기",Paste:"붙여넣기",ProjectBusyAction:"동작을 수행하는 중",RemoveAtShutdown:"종료에서 제거",RemoveAtStartup:"시작에서 제거",RemoveFilesAlertDialogTitle:"프로젝트에서 파일을 제거할 수 없음.",RemoveFromProject:"프로젝트에서 제거",RemoveFromProjectPath:"프로젝트 경로에서 제거",RemoveFromProjectPathAction:"프로젝트 경로에서 선택한 폴더를 제거하는 중",RemoveShortcut:"바로 가기 제거",RunAtShutdown:"종료 시 실행",RunAtStartup:"시작 시 실행",SelectedFolders:"선택한 폴더",SelectedFoldersRecursive:"선택한 폴더 및 하위 폴더",SettingRemoveAtShutdown:"종료 동작 시 실행을 지우는 중입니다.",SettingRemoveAtStartup:"시작 동작 시 실행을 지우는 중입니다.",SettingRunAtShutdown:"프로젝트 종료 시 실행할 파일을 업데이트하는 중입니다.",SettingRunAtStartup:"프로젝트 시작 시 실행할 파일을 업데이트하는 중입니다."}},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"无法将文件添加到工程。",AddToProject:"添加到工程",AddToProjectAction:"向工程添加文件",AddToProjectPath:"添加到工程路径",AddToProjectPathAction:"将所选文件夹添加到工程路径",Copy:"复制",CreateShortcut:"创建快捷方式",Cut:"剪切",EditShortcut:"编辑快捷方式",ErrorDialogTitle:"错误",Open:"打开",Paste:"粘贴",ProjectBusyAction:"执行操作",RemoveAtShutdown:"从关闭项中删除",RemoveAtStartup:"从启动项中删除",RemoveFilesAlertDialogTitle:"无法从工程中删除文件。",RemoveFromProject:"从工程中删除",RemoveFromProjectPath:"从工程路径中删除",RemoveFromProjectPathAction:"从工程路径中删除所选文件夹",RemoveShortcut:"删除快捷方式",RunAtShutdown:"关闭时运行",RunAtStartup:"启动时运行",SelectedFolders:"选定的文件夹",SelectedFoldersRecursive:"选定的文件夹和子文件夹",SettingRemoveAtShutdown:"清除关闭时运行操作。",SettingRemoveAtStartup:"清除启动时运行操作。",SettingRunAtShutdown:"将文件更新为在工程关闭时运行。",SettingRunAtStartup:"将文件更新为在工程启动时运行。"}},function(e,t,i){e.exports={root:{AddFilesAlertDialogTitle:"Unable to add file(s) to project.",AddToProject:"Add to Project",AddToProjectAction:"Adding files to the project",AddToProjectPath:"Add to Project Path",AddToProjectPathAction:"Adding selected folders to the project path",Copy:"Copy",CreateShortcut:"Create Shortcut",Cut:"Cut",EditShortcut:"Edit Shortcut",ErrorDialogTitle:"Error",Open:"Open",Paste:"Paste",ProjectBusyAction:"Performing Action",RemoveAtShutdown:"Remove from Shutdown",RemoveAtStartup:"Remove from Startup",RemoveFilesAlertDialogTitle:"Unable to remove file(s) from project.",RemoveFromProject:"Remove from Project",RemoveFromProjectPath:"Remove from Project Path",RemoveFromProjectPathAction:"Removing selected folders from the project path",RemoveShortcut:"Remove Shortcut",RunAtShutdown:"Run at Shutdown",RunAtStartup:"Run at Startup",SelectedFolders:"Selected Folders",SelectedFoldersRecursive:"Selected Folders and Subfolders",SettingRemoveAtShutdown:"Clearing run at shutdown action.",SettingRemoveAtStartup:"Clearing run at startup action.",SettingRunAtShutdown:"Updating file to run at project shutdown.",SettingRunAtStartup:"Updating file to run at project startup."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(218),i(220),i(8465),i(8466),i(8467),i(8468)],o=i.dj.d(n,(function(e,t){return t(e,"project-util-ui/l10n/gen/resources/MATLAB/project/nls/view_action",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"プロジェクトにファイルを追加できません。",AddToProject:"プロジェクトに追加",AddToProjectAction:"ファイルをプロジェクトに追加中",AddToProjectPath:"プロジェクトのパスに追加",AddToProjectPathAction:"選択したフォルダーをプロジェクト パスに追加中",Copy:"コピー",CreateShortcut:"ショートカットの作成",Cut:"切り取り",EditShortcut:"ショートカットの編集",ErrorDialogTitle:"エラー",Open:"開く",Paste:"貼り付け",ProjectBusyAction:"アクションの実行中",RemoveAtShutdown:"シャットダウンから削除",RemoveAtStartup:"起動から削除",RemoveFilesAlertDialogTitle:"プロジェクトからファイルを削除できません。",RemoveFromProject:"プロジェクトから削除",RemoveFromProjectPath:"プロジェクトのパスから削除",RemoveFromProjectPathAction:"選択したフォルダーをプロジェクト パスから削除中",RemoveShortcut:"ショートカットの削除",RunAtShutdown:"シャットダウン時に実行",RunAtStartup:"起動時に実行",SelectedFolders:"選択フォルダー",SelectedFoldersRecursive:"選択フォルダーとサブフォルダー",SettingRemoveAtShutdown:"シャットダウン アクション時の実行をクリアします。",SettingRemoveAtStartup:"起動アクション時の実行をクリアします。",SettingRunAtShutdown:"プロジェクトのシャットダウン時に実行するファイルを更新します。",SettingRunAtStartup:"プロジェクトの起動時に実行するファイルを更新します。"}},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"프로젝트에 파일을 추가할 수 없음.",AddToProject:"프로젝트에 추가",AddToProjectAction:"프로젝트에 파일을 추가하는 중",AddToProjectPath:"프로젝트 경로에 추가",AddToProjectPathAction:"프로젝트 경로에 선택한 폴더를 추가하는 중",Copy:"복사",CreateShortcut:"바로 가기 만들기",Cut:"잘라내기",EditShortcut:"바로 가기 편집",ErrorDialogTitle:"오류",Open:"열기",Paste:"붙여넣기",ProjectBusyAction:"동작을 수행하는 중",RemoveAtShutdown:"종료에서 제거",RemoveAtStartup:"시작에서 제거",RemoveFilesAlertDialogTitle:"프로젝트에서 파일을 제거할 수 없음.",RemoveFromProject:"프로젝트에서 제거",RemoveFromProjectPath:"프로젝트 경로에서 제거",RemoveFromProjectPathAction:"프로젝트 경로에서 선택한 폴더를 제거하는 중",RemoveShortcut:"바로 가기 제거",RunAtShutdown:"종료 시 실행",RunAtStartup:"시작 시 실행",SelectedFolders:"선택한 폴더",SelectedFoldersRecursive:"선택한 폴더 및 하위 폴더",SettingRemoveAtShutdown:"종료 동작 시 실행을 지우는 중입니다.",SettingRemoveAtStartup:"시작 동작 시 실행을 지우는 중입니다.",SettingRunAtShutdown:"프로젝트 종료 시 실행할 파일을 업데이트하는 중입니다.",SettingRunAtStartup:"프로젝트 시작 시 실행할 파일을 업데이트하는 중입니다."}},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"无法将文件添加到工程。",AddToProject:"添加到工程",AddToProjectAction:"向工程添加文件",AddToProjectPath:"添加到工程路径",AddToProjectPathAction:"将所选文件夹添加到工程路径",Copy:"复制",CreateShortcut:"创建快捷方式",Cut:"剪切",EditShortcut:"编辑快捷方式",ErrorDialogTitle:"错误",Open:"打开",Paste:"粘贴",ProjectBusyAction:"执行操作",RemoveAtShutdown:"从关闭项中删除",RemoveAtStartup:"从启动项中删除",RemoveFilesAlertDialogTitle:"无法从工程中删除文件。",RemoveFromProject:"从工程中删除",RemoveFromProjectPath:"从工程路径中删除",RemoveFromProjectPathAction:"从工程路径中删除所选文件夹",RemoveShortcut:"删除快捷方式",RunAtShutdown:"关闭时运行",RunAtStartup:"启动时运行",SelectedFolders:"选定的文件夹",SelectedFoldersRecursive:"选定的文件夹和子文件夹",SettingRemoveAtShutdown:"清除关闭时运行操作。",SettingRemoveAtStartup:"清除启动时运行操作。",SettingRunAtShutdown:"将文件更新为在工程关闭时运行。",SettingRunAtStartup:"将文件更新为在工程启动时运行。"}},function(e,t,i){e.exports={root:{AddFilesAlertDialogTitle:"Unable to add file(s) to project.",AddToProject:"Add to Project",AddToProjectAction:"Adding files to the project",AddToProjectPath:"Add to Project Path",AddToProjectPathAction:"Adding selected folders to the project path",Copy:"Copy",CreateShortcut:"Create Shortcut",Cut:"Cut",EditShortcut:"Edit Shortcut",ErrorDialogTitle:"Error",Open:"Open",Paste:"Paste",ProjectBusyAction:"Performing Action",RemoveAtShutdown:"Remove from Shutdown",RemoveAtStartup:"Remove from Startup",RemoveFilesAlertDialogTitle:"Unable to remove file(s) from project.",RemoveFromProject:"Remove from Project",RemoveFromProjectPath:"Remove from Project Path",RemoveFromProjectPathAction:"Removing selected folders from the project path",RemoveShortcut:"Remove Shortcut",RunAtShutdown:"Run at Shutdown",RunAtStartup:"Run at Startup",SelectedFolders:"Selected Folders",SelectedFoldersRecursive:"Selected Folders and Subfolders",SettingRemoveAtShutdown:"Clearing run at shutdown action.",SettingRemoveAtStartup:"Clearing run at startup action.",SettingRunAtShutdown:"Updating file to run at project shutdown.",SettingRunAtStartup:"Updating file to run at project startup."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(262),i(273),i(241),i(339),i(8470),i(1243)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{repositoryPath:null,commandExecutor:null,constructor:function(e,t){this.repositoryPath=e,this.commandExecutor=t},createDialog:function(){return new Promise(async(e,s)=>{try{const s=new r(this.repositoryPath,this.commandExecutor),l=JSON.parse(await this.commandExecutor.execute("getGitUserInfo",this.repositoryPath));s.setUserInfo(l);const c=t.createDialog({title:a.CommitDialogTitle,dialogType:t.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,content:s,"data-test-id":"cmlinkCommitDialog",buttons:[{type:i.TYPE.DO_IT,label:a.CommitDialogDoItButtonLabel},i.CANCEL],defaultActionButton:i.TYPE.DO_IT});s.commitMessage.focusNode.focus(),c.domNode.style.minHeight="400px",c.domNode.style.minWidth="500px",c.on("close",()=>{e(!1)}),c.addButtonEventListener(i.CANCEL,()=>{},!0),c.addButtonEventListener(i.TYPE.DO_IT,async()=>{const t=new o;t.set("target",c.domNode),t.show();try{await this.commandExecutor.execute("commitSourceControl",this.repositoryPath,s.commitMessage.value),e(!0),c.close()}catch(e){n.displayAlertDialog(a.CommitDialogTitle,e)}t.hide()},!1),s.startup()}catch(e){s(e)}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(216),i(215),i(255),i(8471),i(269),i(243),i(413),i(8472),i(1243)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e("CommitForm",[i,t,n],{templateString:o,resources:c,repositoryPath:null,commandExecutor:null,constructor:function(e,t){this.repositoryPath=e,this.commandExecutor=t},setUserInfo:function(e){this.emailTextField.set("text",e.user+" <"+e.email+">")},_handleChangeAuthor:async function(){const e=new l(this.repositoryPath,this.commandExecutor);if(await e.createDialog()){const e=JSON.parse(await this.commandExecutor.execute("getGitUserInfo",this.repositoryPath));this.setUserInfo(e)}}})}),e,t),e.exports=o},function(e,t){e.exports='<div class=\'CommitDialogContainer\'>\n <div class=\'CommitDialogRowContainer\'>\n <div class=\'CommitDialogLabel\'\n data-dojo-type="mw-form/Label"\n data-dojo-props="text: \'${resources.CommitDialogAuthorLabel}\'">\n </div>\n <div class=\'CommitDialogLabel\'\n data-dojo-type="mw-form/Label"\n data-dojo-props="text: \'${resources.CommitDialogEmailLabel}\'"\n data-test-id="CommitDialogEmail"\n data-dojo-attach-point="emailTextField">\n </div>\n <div class=\'CommitDialogLabel\'\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'${resources.CommitDialogChangeAuthorLabel}\'"\n data-test-id="CommitDialogChangeAuthor"\n data-dojo-attach-event="click: _handleChangeAuthor">\n </div>\n </div>\n <div class=\'CommitLabel\'\n data-dojo-type="mw-form/Label"\n data-dojo-props="text: \'${resources.CommitDialogInstructions}\'">\n </div>\n <div class=\'CommitDialogMessageInput\'\n data-dojo-type="mw-form/TextArea"\n data-dojo-props="width:\'100%\', resizable:\'true\'"\n data-dojo-attach-point="commitMessage"\n data-test-id="CommitDialogMessageInput">\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(262),i(273),i(8473),i(1243)],o=i.dj.d(n,(function(e,t,i,n,o){return e(null,{repositoryPath:null,commandExecutor:null,constructor:function(e,t){this.repositoryPath=e,this.commandExecutor=t},createDialog:function(){return new Promise(async(e,r)=>{try{const r=new n;r.startup();const a=JSON.parse(await this.commandExecutor.execute("getGitUserInfo",this.repositoryPath));r.author.set("value",a.user||""),r.email.set("value",a.email||"");const s=t.createDialog({title:o.ChangeAuthorDialogTitle,dialogType:t.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,content:r,"data-test-id":"cmlinkChangeAuthorDialog",buttons:[i.OK,i.CANCEL],specifiedFocusItem:"author"});s.on("close",()=>{e(!1)}),s.addButtonEventListener(i.CANCEL,()=>{},!0),s.addButtonEventListener(i.OK,async()=>{await this.commandExecutor.execute("setGitUserInfo",r.author.value,r.email.value),e(!0),s.close()},!1)}catch(e){r(e)}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(216),i(215),i(255),i(8474),i(269),i(258),i(1243)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e("ChangeAuthorForm",[i,t,n],{templateString:o,resources:s})}),e,t),e.exports=o},function(e,t){e.exports='<div class=\'ChangeAuthorDialogContainer\'>\n <div class=\'ChangeAuthorDialogElement\'\n data-dojo-type="mw-form/Label"\n data-dojo-props="text: \'${resources.CommitDialogAuthorLabel}\'">\n </div>\n <div class=\'ChangeAuthorDialogElement\'\n id="ChangeAuthorDialogFocusNode"\n data-dojo-type="mw-form/TextField"\n data-dojo-props="width:\'100%\', resizable:\'true\'"\n data-test-id="CommitAuthorDialogUser"\n data-dojo-attach-point="author">\n </div>\n <div class=\'ChangeAuthorDialogElement\'\n data-dojo-type="mw-form/Label"\n data-dojo-props="text: \'${resources.CommitDialogEmailLabel}\'">\n </div>\n <div class=\'ChangeAuthorDialogElement\'\n data-dojo-type="mw-form/TextField"\n data-dojo-props="width:\'100%\', resizable:\'true\'"\n data-dojo-attach-point="email"\n data-test-id="CommitAuthorDialogEmail">\n </div>\n</div>\n'},function(e,t,i){e.exports={ChangeAuthorDialogTitle:"作成者の変更",CommitDialogAuthorLabel:"作成者:",CommitDialogChangeAuthorLabel:"変更...",CommitDialogDoItButtonLabel:"コミット",CommitDialogEmailLabel:"電子メール:",CommitDialogInstructions:"メッセージ:",CommitDialogTitle:"変更をコミット"}},function(e,t,i){e.exports={ChangeAuthorDialogTitle:"작성자 변경",CommitDialogAuthorLabel:"작성자:",CommitDialogChangeAuthorLabel:"변경...",CommitDialogDoItButtonLabel:"커밋",CommitDialogEmailLabel:"이메일:",CommitDialogInstructions:"메시지:",CommitDialogTitle:"변경 내용 커밋"}},function(e,t,i){e.exports={ChangeAuthorDialogTitle:"更改作者",CommitDialogAuthorLabel:"作者:",CommitDialogChangeAuthorLabel:"更改...",CommitDialogDoItButtonLabel:"提交",CommitDialogEmailLabel:"电子邮件:",CommitDialogInstructions:"消息:",CommitDialogTitle:"提交更改"}},function(e,t,i){e.exports={root:{ChangeAuthorDialogTitle:"Change Author",CommitDialogAuthorLabel:"Author:",CommitDialogChangeAuthorLabel:"Change...",CommitDialogDoItButtonLabel:"Commit",CommitDialogEmailLabel:"Email:",CommitDialogInstructions:"Message:",CommitDialogTitle:"Commit Changes"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(226),i(759),i(383)],o=i.dj.d(n,(function(e,t,i){return class{constructor(e,t){this.fUiBuilder=e,this.fIconProvider=t}_createPopupList(t){const n=this.fUiBuilder.create({type:e.POPUP_LIST,tag:"sharePopupList"}),o=new i(t.commandChannel),r=[];return t.shareExtensions.forEach(t=>{const i=this.fUiBuilder.create({type:e.LIST_ITEM,tag:t.command,text:t.buttonName,parentId:n});this.fUiBuilder.addEventCallback(i,()=>{o.execute(t.command)}),this.fIconProvider.loadIcon(t.iconLocation).then(e=>this.fUiBuilder.set(i,"icon",e)),r.push(this.fUiBuilder.get(i,"tag"))}),this.fUiBuilder.addEventCallback(this.fButton,e=>{"dropDownPerformed"===e.eventType&&(this.fUiBuilder.showPopup(this.fButton,n),this._disableShareItemsQAB(r))}),n}setButton(e){this.fButton=e,this._disableShareButtonQAB()}update(e){const t=e.shareExtensions.size()>0;this.fUiBuilder.set(this.fButton,"enabled",t),this.fUiBuilder.set(this.fButton,"popupId",t?this._createPopupList(e):"")}_disableShareButtonQAB(){const e=this.fUiBuilder.get(this.fButton,"tag"),t=this.fUiBuilder.tagToId("motwToolstrip");if(t){const i=this.fUiBuilder.addPropertySetCallback(t,t=>{if("selectedTab"===t.property){const t=this.fUiBuilder.widgetByTag(e);t&&(t.isEligibleForQab=()=>!1,i.remove())}})}}_disableShareItemsQAB(e){e.forEach(e=>{const t=this.fUiBuilder.widgetByTag(e);t&&(t.isEligibleForQab=()=>!1)})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(759),i(226),i(8481),i(8488),i(510),i(1016),i(8493)],o=i.dj.d(n,(e,t,i,n,o,r,a,s)=>e(null,{fUiBuilder:null,fSection:null,fGenericToolstripItemManager:null,constructor:function(e,n,o){this.fGenericToolstripItemManager=o,this.fUiBuilder=e.uiBuilder,this.fParentTab=n,this.fSection=this.fUiBuilder.create({type:i.SECTION,title:t.TSSectionEnvironment,parentId:this.fParentTab})},dispose:function(){},update:function(e){const t=this.fUiBuilder.getChildrenIds(this.fSection);t.length>0&&t.forEach(e=>{this.fUiBuilder.destroy(e)}),this._addDetailsDialogControl(e),this._addPathDialogControl(e),this.fGenericToolstripItemManager.populatePanel({section:this.fSection,sectionId:"environment"},this.fUiBuilder)},_addDetailsDialogControl:function(e){const t=new r(null),i=new a(this.fUiBuilder,t,this.fSection),n=new s(e);i.makeBigButton("/toolbox/matlab/project/views/file_web/project-file-ui/images/project_details_24.png","projectDetailsDialogLauncher",o.DetailsDialogButtonName,o.DetailsDialogButtonDescription,()=>new Promise((e,t)=>{try{n.show()}catch(e){console.error(e),t(e)}e()}))},_addPathDialogControl:function(e){const t=new r(null),i=new a(this.fUiBuilder,t,this.fSection),s=new n(e);i.makeBigButton("/toolbox/matlab/project/views/file_web/project-file-ui/images/project_path_24.png","projectPathDialogLauncher",o.PathDialogButtonName,o.PathDialogButtonDescription,()=>new Promise((e,t)=>{try{s.show()}catch(e){console.error(e),t(e)}e()}))}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(222),i(860),i(8482),i(350),i(315),i(262),i(273),i(243),i(241),i(531),i(2632),i(2633),i(8487),i(510),i(383)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){class g extends e{constructor(){super(),this.fSelection=[]}set(e){this.fSelection=e,this.emit("*")}get(){return this.fSelection}}function m(e){l.displayAlertDialog(t.PathChangeErrorTitle,e)}function _(e,t){const i=new s(t);return i.on("click",()=>{e.classList.add("proj-path-disabled"),t.action().catch(e=>{m(e)}).finally(()=>{e.classList.remove("proj-path-disabled")})}),i.startup(),i}return class{constructor(e){this.fSelectedProject=e,this.fRootFolder=e.location,this.fFolderSelector=new h(this.fRootFolder,t.SelectPathFolder),this.fMF0ProjectPathCache=e.projectPathCache,this.fCommandExecutor=new f(e.commandChannel),this.fDialog=null}show(){this.fDialog||(this.fDialog=this._createDialog())}close(){if(this.fDialog){const e=this.fDialog;this.fDialog=null,e.close()}}_createDialog(){const e=new u(this.fMF0ProjectPathCache),i=[()=>{e.stop()}],n=this._createContent(e,i),o=r.createDialog({title:t.PathDialogTitle,className:"projectPathDialog",dialogType:r.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,buttons:[a.CLOSE],"data-test-id":"ProjectPathDialog",content:n});return o.addButtonEventListener(a.CLOSE,()=>{},!0),o.on("close",()=>{this.fDialog=null,i.forEach(e=>{e()})}),o.resizeTo({width:400,height:350}),o.moveTo({}),o}_createContent(e,i){const n=document.createElement("div");return n.classList.add("proj-path-root"),n.appendChild(function(){const e=document.createTextNode(t.PathDialogDescription),i=document.createElement("div");return i.appendChild(e),i.classList.add("proj-path-description"),i}()),n.appendChild(this._createControlRoot(e,i)),n}_createControlRoot(e,t){const i=new g,r=document.createElement("div");r.classList.add("proj-path-control");const a=document.createElement("div");a.classList.add("proj-path-button-list");const s=e=>{const t=document.createElement("div");e.placeAt(t),a.appendChild(t)};return s(this._createAddFolderButton(a)),s(this._createAddFolderRecursiveButton(a)),s(this._createRemoveButton(i,a)),r.appendChild(function(e,t,i){const r=n.create([],{type:o.TREE}),a=(new p).getRemoteWorkerUrl("/toolbox/matlab/project/views/file_web/project-file-ui/images/folder_16.png"),s=()=>{const t=[];e.getEntries().forEach(e=>{const i=e.path;t.push({id:i,label:i,iconUri:a,parent:null})}),r.replaceAll(t)},l=new c(r);l.on("selectionChanged",(function(e){const i=e.nodeIds;t.set(i)}));const d=document.createElement("div");return e.on(e.events.CACHE_REFRESH,s),s(),d.classList.add("proj-path-tree-panel"),l.startup(),l.expandAll(),i.push(()=>{l.destroy()}),d.appendChild(l.domNode),d}(e,i,t)),r.appendChild(a),i.set([]),r}_createRemoveButton(e,i){const n=_(i,{text:t.RemovePathFolderButton,"data-test-id":"RemovePathFolderButton",action:()=>{const t=e.get();return t.length>0?this._executeCommand("removeFromProjectPath",t):Promise.resolve()}}),o=()=>{const t=e.get();t&&t.length>0?n.set("disabled",!1):n.set("disabled",!0)};return e.on("*",o),o(),n}_createAddFolderButton(e){return _(e,{text:t.AddPathFolderButton,"data-test-id":"AddPathFolderButton",action:()=>this._selectFileAndExecuteCommand("addToProjectPath")})}_createAddFolderRecursiveButton(e){return _(e,{text:t.AddPathFolderRecursiveButton,"data-test-id":"AddPathFolderRecursiveButton",action:()=>this._selectFileAndExecuteCommand("addToProjectPathRecursive")})}async _selectFileAndExecuteCommand(e){const t=await this.fFolderSelector.getFolder();if(!t)return;if(!(new d).isChildPath(this.fRootFolder,t))return void m(i.PathNotInProjectException);const n=(new d).getRelativePath(this.fRootFolder,t);return this._executeCommand(e,[n])}_executeCommand(e,t){return this.fCommandExecutor.execute(e,...t)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8483),i(8484),i(8485),i(8486)],o=i.dj.d(n,(function(e,t){return t(e,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/management",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={BookmarkWriteFailure:"プロジェクト ブックマーク ファイルに書き込めません。${0}",CanNotModifyReadOnlyCategory:"既定のカテゴリを変更することはできません。",CanNotModifyReadOnlyLabel:"既定のラベルを変更することはできません。",CategoryDoesNotExist:'カテゴリ "${0}" がプロジェクトに存在しません。',CategoryDoesNotExistsByUUID:"UUID を含むカテゴリ ${0} がプロジェクトに存在しません。",CategoryExistsByName:"${0} というカテゴリは既に存在します。",DuplicatePathEntryException:"プロジェクトのパスのエントリは次の場所に既に存在しています:\n${0}",DuplicateReferenceException:"プロジェクトの参照は次の場所に既に存在しています:\n${0}",EntryPointGroupCreationFailure:"ショートカット グループ ${0} を作成できません",EntryPointGroupDefaultName:"一般",EntryPointGroupNameDefined:"ショートカット グループ ${0} は既に存在します。",EntryPointGroupUUIDDefined:"UUID ${0} をもつショートカット グループは既に存在します。",EntryPointTypeUndefined:"エントリ ポイントのタイプ ${0} が未定義です",FileDoesNotExistError:"ファイル\n${0}\nは存在しないため、プロジェクトに追加できません。",FileIsMetadataError:"プロジェクト定義ファイルは既にプロジェクトの一部なので、プロジェクトに追加できません。このファイルは ${0} です。",FileNotInProject:"ファイルがプロジェクト内にありません。${0}",FileNotInProjectRoot:"ファイル ${0} は次のプロジェクトのルート フォルダーの子ではありません:\n\t${1}",FileWithReservedNameError:"ファイル \n${0}\n は予約名をもっているため、プロジェクトに追加できません。",LabelDoesNotExistsByUUID:"UUID を含むラベル ${0} がプロジェクトに存在しません。",LabelExistsByName:'ラベル "${0}" は既にカテゴリ "${1}" のメンバーです。',LabelReadOnlyStateUndefined:"ラベルの読み取り専用タイプ ${0} が未定義です。",NotAFolder:"指定したプロジェクトのルートはフォルダーではありません:\n${0}",NotAProject:"指定したフォルダーはプロジェクトのルートではありません:\n${0}",PathFoldersDoNotExist:"パス フォルダーを読み込めません。\n${0}",PathNotInProjectException:"プロジェクト パス エントリは、プロジェクトのルート フォルダーに存在しなければなりません。",RootFolderNotRemoveable:"プロジェクトのルート フォルダーはプロジェクト ${0} から削除できません",SelfReferencecException:"プロジェクトが自身を参照することはできません。"}},function(e,t,i){e.exports={BookmarkWriteFailure:"프로젝트 책갈피 파일을 쓸 수 없습니다. ${0}",CanNotModifyReadOnlyCategory:"디폴트 범주는 수정할 수 없습니다.",CanNotModifyReadOnlyLabel:"디폴트 레이블은 수정할 수 없습니다.",CategoryDoesNotExist:'프로젝트에 범주 "${0}"이(가) 존재하지 않습니다.',CategoryDoesNotExistsByUUID:"uuid가 ${0}인 범주가 프로젝트에 존재하지 않습니다.",CategoryExistsByName:"범주 ${0}이(가) 이미 존재합니다.",DuplicatePathEntryException:"다음 위치에 프로젝트 경로 항목이 이미 있습니다.\n${0}",DuplicateReferenceException:"다음 위치에 프로젝트에 대한 참조가 이미 있습니다.\n${0}",EntryPointGroupCreationFailure:"바로 가기 그룹 ${0}을(를) 만들 수 없음",EntryPointGroupDefaultName:"일반",EntryPointGroupNameDefined:"바로 가기 그룹 ${0}이(가) 이미 존재합니다.",EntryPointGroupUUIDDefined:"UUID가 ${0}인 바로 가기 그룹이 이미 존재합니다.",EntryPointTypeUndefined:"${0}은(는) 정의되지 않은 진입점 유형임",FileDoesNotExistError:"다음 파일을 프로젝트에 추가할 수 없습니다.\n${0}\n존재하지 않는 파일입니다.",FileIsMetadataError:"프로젝트 정의 파일이 이미 프로젝트에 포함되어 있기 때문에 추가할 수 없습니다. 문제가 되는 파일은 ${0}입니다.",FileNotInProject:"파일이 프로젝트에 없습니다. ${0}",FileNotInProjectRoot:"파일 ${0}은(는) 다음 프로젝트 루트 폴더의 자식이 아닙니다.\n\t${1}.",FileWithReservedNameError:"다음 파일을 프로젝트에 추가할 수 없습니다. \n${0}\n 예약된 이름이 있습니다.",LabelDoesNotExistsByUUID:"uuid가 ${0}인 레이블이 프로젝트에 존재하지 않습니다.",LabelExistsByName:'레이블 "${0}"은(는) 이미 범주 "${1}"의 구성원입니다.',LabelReadOnlyStateUndefined:"${0}은(는) 정의되지 않은 레이블 읽기 전용 유형입니다.",NotAFolder:"지정된 프로젝트 루트가 폴더가 아닙니다.\n${0}",NotAProject:"지정된 폴더가 프로젝트 루트가 아닙니다.\n${0}",PathFoldersDoNotExist:"경로 폴더를 불러올 수 없음:\n${0}",PathNotInProjectException:"프로젝트 경로 항목은 프로젝트의 루트 폴더 내에 있어야 합니다.",RootFolderNotRemoveable:"프로젝트 루트 폴더는 프로젝트 ${0}에서 제거할 수 없음",SelfReferencecException:"프로젝트는 자기 자신을 참조할 수 없습니다."}},function(e,t,i){e.exports={BookmarkWriteFailure:"无法写入工程书签文件。${0}",CanNotModifyReadOnlyCategory:"不能修改默认类别。",CanNotModifyReadOnlyLabel:"不能修改默认标签。",CategoryDoesNotExist:'工程中不存在类别 "${0}"。',CategoryDoesNotExistsByUUID:"工程中不存在 uuid 为 ${0} 的类别。",CategoryExistsByName:"名为 ${0} 的类别已存在。",DuplicatePathEntryException:"工程路径条目已存在于:\n${0}",DuplicateReferenceException:"已存在对以下位置中工程的引用:\n${0}",EntryPointGroupCreationFailure:"无法创建快捷方式组 ${0}",EntryPointGroupDefaultName:"常规",EntryPointGroupNameDefined:"快捷方式组 ${0} 已存在。",EntryPointGroupUUIDDefined:"UUID 为 ${0} 的快捷方式组已存在。",EntryPointTypeUndefined:"未定义的入口函数类型 ${0}",FileDoesNotExistError:"无法将文件 \n${0}\n 添加到工程中,因为它不存在。",FileIsMetadataError:"无法将工程定义文件添加到工程中,因为它们已是工程的一部分。文件是 ${0}。",FileNotInProject:"文件不在工程中。${0}",FileNotInProjectRoot:"文件 ${0} 不是以下工程根文件夹的子级:\n\t${1}。",FileWithReservedNameError:"无法将文件 \n${0}\n 添加到工程,因为它具有保留名称。",LabelDoesNotExistsByUUID:"工程中不存在 uuid 为 ${0} 的标签。",LabelExistsByName:'标签 "${0}" 已是类别 "${1}" 的成员。',LabelReadOnlyStateUndefined:"未定义的标签只读类型 ${0}。",NotAFolder:"指定的工程根目录不是文件夹:\n${0}",NotAProject:"指定的文件夹不是工程根目录:\n${0}",PathFoldersDoNotExist:"无法加载路径文件夹:\n${0}",PathNotInProjectException:"工程路径条目必须在工程根文件夹中。",RootFolderNotRemoveable:"不能从工程 ${0} 中删除工程根文件夹",SelfReferencecException:"工程不能引用自身。"}},function(e,t,i){e.exports={root:{BookmarkWriteFailure:"Unable to write project bookmark file. ${0}",CanNotModifyReadOnlyCategory:"It is not possible to modify a default category.",CanNotModifyReadOnlyLabel:"It is not possible to modify a default label.",CategoryDoesNotExist:'The category "${0}" does not exist in the project.',CategoryDoesNotExistsByUUID:"The category with uuid ${0} does not exist in the project.",CategoryExistsByName:"A category called ${0} already exists.",DuplicatePathEntryException:"A project path entry already exists at:\n${0}",DuplicateReferenceException:"A reference already exists for a project at:\n${0}",EntryPointGroupCreationFailure:"Unable to create the shortcut group ${0}",EntryPointGroupDefaultName:"General",EntryPointGroupNameDefined:"The shortcut group ${0} already exists.",EntryPointGroupUUIDDefined:"A shortcut group with UUID ${0} already exists.",EntryPointTypeUndefined:"Undefined entry point type ${0}",FileDoesNotExistError:"Cannot add the file\n${0}\nto the project as it does not exist.",FileIsMetadataError:"Cannot add project definition files to the project because they are already part of the project.The file is ${0}.",FileNotInProject:"File is not in project. ${0}",FileNotInProjectRoot:"The file ${0} is not a child of the project root folder:\n\t${1}.",FileWithReservedNameError:"Cannot add the file \n${0}\n to the project as it has a reserved name.",LabelDoesNotExistsByUUID:"The label with uuid ${0} does not exist in the project.",LabelExistsByName:'The label "${0}" is already a member of the category "${1}".',LabelReadOnlyStateUndefined:"Undefined label read only type ${0}.",NotAFolder:"The specified project root is not a folder:\n${0}",NotAProject:"The specified folder is not a project root:\n${0}",PathFoldersDoNotExist:"Unable to load path folders:\n${0}",PathNotInProjectException:"Project path entries must be in the project root folder.",RootFolderNotRemoveable:"The project root folder cannot be removed from the project ${0}",SelfReferencecException:"A project cannot reference its self."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(291),i(297),i(1217)],o=i.dj.d(n,(function(e,t,i){const n=new t;n.setOutTextCallback(null),n.setErrTextCallback(null);return class{constructor(e="",t=i.ProjectFolderSelectionTitle){this.fDefaultFolder=e,this.fTitle=t}async getFolder(){const t=e.getMVM(),i=(await t.feval("uigetdir",1,[this.fDefaultFolder,this.fTitle],n))[0];return"string"==typeof i?i:""}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8489),i(8490),i(8491),i(8492)],o=i.dj.d(n,(function(e,t){return t(e,"project-core-ui/l10n/gen/resources/MATLAB/project/nls/view_file",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={AddPathFolderButton:"フォルダーを追加...",AddPathFolderRecursiveButton:"サブフォルダーも追加...",DeleteShortcut:"ショートカットの削除",DetailsAlertDialogTitle:"MATLAB プロジェクト",DetailsDialogButtonDescription:"プロジェクトの詳細を表示および編集します",DetailsDialogButtonName:"詳細",DetailsDialogTitle:"プロジェクトの詳細",DetailsProjectDescription:"説明:",DetailsProjectName:"名前:",DetailsProjectRoot:"プロジェクトのルート:",DetailsProjectRootButton:"現在のフォルダーとして設定",InProject:"プロジェクト内",Missing:"見つかりません",NewShortcutButton:"新規ショートカット",NewShortcutDescription:"プロジェクト ファイルをショートカットとして設定します",NotInProject:"プロジェクト外",OrganizeGroupsButton:"グループの整理",OrganizeGroupsCreate:"作成",OrganizeGroupsCreateGroupTitle:"新規ショートカット グループの作成",OrganizeGroupsDescription:"ショートカット グループを変更します",OrganizeGroupsNonexistentGroup:"グループ ${0} は存在しません。",OrganizeGroupsRemove:"削除",OrganizeGroupsRename:"名前の変更",OrganizeGroupsRenameDefaultGroup:"既定のグループ名は変更できません。",OrganizeGroupsTitle:"ショートカット グループの整理",PathChangeErrorTitle:"プロジェクト パスの変更エラー",PathDialogButtonDescription:"プロジェクトが開いている間に、MATLAB 検索パスに追加するフォルダーを指定します",PathDialogButtonName:"プロジェクトのパス",PathDialogDescription:"プロジェクトのパスに追加するフォルダーを指定します。これらのフォルダーはプロジェクトを開いたときに MATLAB 検索パスに追加され、プロジェクトを閉じたときに削除されます。",PathDialogTitle:"プロジェクトのパス",ProjectPathTooltip:"プロジェクト パス上",RemovePathFolderButton:"削除",SelectPathFolder:"パス フォルダーの選択",ShortcutAlertDialogTitle:"MATLAB プロジェクト",ShortcutAllFilesDescription:"すべてのファイル",ShortcutChangeIconButton:"変更",ShortcutFailure:"ショートカット ${0} を実行できませんでした。",ShortcutFile:"ファイル",ShortcutFileSelectionTitle:"プロジェクト ファイルの選択",ShortcutGroup:"グループ",ShortcutIcon:"アイコン",ShortcutIconFilesDescription:"アイコン ファイル (*.png、*.gif)",ShortcutIconSelectionTitle:"ショートカット アイコンの選択",ShortcutInvalidFile:"The specified file is not a project file.",ShortcutInvalidIcon:"No image found in the file ${0}.",ShortcutName:"名前",ShortcutNoFile:"ショートカットを作成するにはターゲット ファイルを指定しなければなりません。",ShortcutNoFileSelected:"ファイルが選択されていません",ShortcutNoName:"ショートカットを作成するには名前を指定しなければなりません。",ShortcutSelectFileButton:"参照",ShortcutTitleEdit:"ショートカットの編集",ShortcutTitleNew:"新規ショートカットの作成",ShortcutUseDefaultIcon:"既定値を使用",ShutdownTooltip:"シャットダウン時に実行",StartupTooltip:"起動時に実行"}},function(e,t,i){e.exports={AddPathFolderButton:"폴더 추가...",AddPathFolderRecursiveButton:"하위 폴더와 함께 추가...",DeleteShortcut:"바로 가기 삭제",DetailsAlertDialogTitle:"MATLAB 프로젝트",DetailsDialogButtonDescription:"프로젝트 세부 정보를 보고 편집합니다.",DetailsDialogButtonName:"세부 정보",DetailsDialogTitle:"프로젝트 세부 정보",DetailsProjectDescription:"설명:",DetailsProjectName:"이름:",DetailsProjectRoot:"프로젝트 루트:",DetailsProjectRootButton:"현재 폴더로 설정",InProject:"프로젝트에 포함",Missing:"누락값",NewShortcutButton:"새 바로 가기",NewShortcutDescription:"프로젝트 파일을 바로 가기로 설정합니다.",NotInProject:"프로젝트에 미포함",OrganizeGroupsButton:"그룹 구성",OrganizeGroupsCreate:"만들기",OrganizeGroupsCreateGroupTitle:"새 바로 가기 그룹 만들기",OrganizeGroupsDescription:"바로 가기 그룹을 변경합니다.",OrganizeGroupsNonexistentGroup:"그룹 ${0}이(가) 존재하지 않습니다.",OrganizeGroupsRemove:"제거",OrganizeGroupsRename:"이름 바꾸기",OrganizeGroupsRenameDefaultGroup:"디폴트 그룹의 이름은 바꿀 수 없습니다.",OrganizeGroupsTitle:"바로 가기 그룹 구성",PathChangeErrorTitle:"프로젝트 경로를 변경하는 중 오류가 발생함",PathDialogButtonDescription:"프로젝트가 열려 있는 동안 MATLAB 검색 경로에 추가할 폴더를 지정합니다.",PathDialogButtonName:"프로젝트 경로",PathDialogDescription:"프로젝트 경로에 추가할 폴더를 지정합니다. 이러한 폴더는 프로젝트를 열면 MATLAB 검색 경로에 추가되고 프로젝트를 닫으면 제거됩니다.",PathDialogTitle:"프로젝트 경로",ProjectPathTooltip:"프로젝트 경로에 있음",RemovePathFolderButton:"제거",SelectPathFolder:"경로 폴더 선택",ShortcutAlertDialogTitle:"MATLAB 프로젝트",ShortcutAllFilesDescription:"모든 파일",ShortcutChangeIconButton:"변경",ShortcutFailure:"바로 가기 ${0}을(를) 실행하지 못했습니다.",ShortcutFile:"파일",ShortcutFileSelectionTitle:"프로젝트 파일 선택",ShortcutGroup:"그룹",ShortcutIcon:"아이콘",ShortcutIconFilesDescription:"아이콘 파일(*.png, *.gif)",ShortcutIconSelectionTitle:"바로 가기 아이콘 선택",ShortcutInvalidFile:"The specified file is not a project file.",ShortcutInvalidIcon:"No image found in the file ${0}.",ShortcutName:"이름",ShortcutNoFile:"바로 가기를 만들려면 대상 파일을 지정해야 합니다.",ShortcutNoFileSelected:"선택한 파일 없음",ShortcutNoName:"바로 가기를 만들려면 이름을 지정해야 합니다.",ShortcutSelectFileButton:"찾아보기",ShortcutTitleEdit:"바로 가기 편집",ShortcutTitleNew:"새 바로 가기 만들기",ShortcutUseDefaultIcon:"디폴트 값 사용",ShutdownTooltip:"종료 시 실행",StartupTooltip:"시작 시 실행"}},function(e,t,i){e.exports={AddPathFolderButton:"添加文件夹...",AddPathFolderRecursiveButton:"添加并包含子文件夹...",DeleteShortcut:"删除快捷方式",DetailsAlertDialogTitle:"MATLAB 工程",DetailsDialogButtonDescription:"查看和编辑工程详细信息",DetailsDialogButtonName:"详细信息",DetailsDialogTitle:"工程详细信息",DetailsProjectDescription:"描述:",DetailsProjectName:"名称:",DetailsProjectRoot:"工程根目录:",DetailsProjectRootButton:"设置为当前文件夹",InProject:"在工程中",Missing:"缺失",NewShortcutButton:"新建快捷方式",NewShortcutDescription:"将工程文件设置为快捷方式",NotInProject:"不在工程中",OrganizeGroupsButton:"整理组",OrganizeGroupsCreate:"创建",OrganizeGroupsCreateGroupTitle:"创建新快捷方式组",OrganizeGroupsDescription:"更改快捷方式组",OrganizeGroupsNonexistentGroup:"组 ${0} 不存在。",OrganizeGroupsRemove:"删除",OrganizeGroupsRename:"重命名",OrganizeGroupsRenameDefaultGroup:"无法重命名默认组。",OrganizeGroupsTitle:"整理快捷方式组",PathChangeErrorTitle:"更改工程路径时出错",PathDialogButtonDescription:"指定要在打开工程时添加到 MATLAB 搜索路径的文件夹",PathDialogButtonName:"工程路径",PathDialogDescription:"指定要添加到工程路径的文件夹。打开工程时,这些文件夹会添加到 MATLAB 搜索路径中,关闭工程时会删除这些文件夹。",PathDialogTitle:"工程路径",ProjectPathTooltip:"在工程路径中",RemovePathFolderButton:"删除",SelectPathFolder:"选择路径文件夹",ShortcutAlertDialogTitle:"MATLAB 工程",ShortcutAllFilesDescription:"所有文件",ShortcutChangeIconButton:"更改",ShortcutFailure:"无法执行快捷方式 ${0}。",ShortcutFile:"文件",ShortcutFileSelectionTitle:"选择工程文件",ShortcutGroup:"组",ShortcutIcon:"图标",ShortcutIconFilesDescription:"图标文件(*.png、*.gif)",ShortcutIconSelectionTitle:"选择快捷方式图标",ShortcutInvalidFile:"The specified file is not a project file.",ShortcutInvalidIcon:"No image found in the file ${0}.",ShortcutName:"名称",ShortcutNoFile:"必须指定目标文件才能创建快捷方式。",ShortcutNoFileSelected:"未选择任何文件",ShortcutNoName:"必须指定名称才能创建快捷方式。",ShortcutSelectFileButton:"浏览",ShortcutTitleEdit:"编辑快捷方式",ShortcutTitleNew:"创建新快捷方式",ShortcutUseDefaultIcon:"使用默认值",ShutdownTooltip:"在关闭时运行",StartupTooltip:"在启动时运行"}},function(e,t,i){e.exports={root:{AddPathFolderButton:"Add Folder...",AddPathFolderRecursiveButton:"Add with Subfolders...",DeleteShortcut:"Delete Shortcut",DetailsAlertDialogTitle:"MATLAB Project",DetailsDialogButtonDescription:"View and edit project details",DetailsDialogButtonName:"Details",DetailsDialogTitle:"Project Details",DetailsProjectDescription:"Description:",DetailsProjectName:"Name:",DetailsProjectRoot:"Project root:",DetailsProjectRootButton:"Set as Current Folder",InProject:"In project",Missing:"Missing",NewShortcutButton:"New Shortcut",NewShortcutDescription:"Set a project file as a shortcut",NotInProject:"Not in project",OrganizeGroupsButton:"Organize Groups",OrganizeGroupsCreate:"Create",OrganizeGroupsCreateGroupTitle:"Create New Shortcut Group",OrganizeGroupsDescription:"Change the shortcut groups",OrganizeGroupsNonexistentGroup:"The group ${0} does not exist.",OrganizeGroupsRemove:"Remove",OrganizeGroupsRename:"Rename",OrganizeGroupsRenameDefaultGroup:"The default group cannot be renamed.",OrganizeGroupsTitle:"Organize Shortcut Groups",PathChangeErrorTitle:"Error Changing Project Path",PathDialogButtonDescription:"Specify folders to add to the MATLAB search path while the project is open",PathDialogButtonName:"Project Path",PathDialogDescription:"Specify folders to add to the project path. These folders are added to the MATLAB search path when you open the project, and removed when you close the project.",PathDialogTitle:"Project Path",ProjectPathTooltip:"On project path",RemovePathFolderButton:"Remove",SelectPathFolder:"Select Path Folder",ShortcutAlertDialogTitle:"MATLAB Project",ShortcutAllFilesDescription:"All files",ShortcutChangeIconButton:"Change",ShortcutFailure:"Failed to execute the shortcut ${0}.",ShortcutFile:"File",ShortcutFileSelectionTitle:"Pick a project file",ShortcutGroup:"Group",ShortcutIcon:"Icon",ShortcutIconFilesDescription:"Icon file (*.png, *.gif)",ShortcutIconSelectionTitle:"Pick a shortcut icon",ShortcutInvalidFile:"The specified file is not a project file.",ShortcutInvalidIcon:"No image found in the file ${0}.",ShortcutName:"Name",ShortcutNoFile:"A target file must be specified to create a shortcut.",ShortcutNoFileSelected:"No file selected",ShortcutNoName:"A name must be specified to create a shortcut.",ShortcutSelectFileButton:"Browse",ShortcutTitleEdit:"Edit Shortcut",ShortcutTitleNew:"Create New Shortcut",ShortcutUseDefaultIcon:"Use Default",ShutdownTooltip:"Run at shutdown",StartupTooltip:"Run at startup"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(860),i(273),i(262),i(269),i(243),i(413),i(258),i(241),i(383)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return class{constructor(e){this.fSelectedProject=e,this.fProjectDetails=null,this.fCommandExecutor=new l(e.commandChannel),this.fDialog=null,this.fName=null,this.fDescription=null}async show(){this.fDialog||(await this._getProjectDetails(),this.fName=this.fProjectDetails.name,this.fDescription=this.fProjectDetails.description,this.fDialog=this._createDialog())}close(){if(this.fDialog){const e=this.fDialog;this.fDialog=null,this.fProjectDetails=null,this.fName=null,this.fDescription=null,e.close()}}async _getProjectDetails(){try{const e=await this.fCommandExecutor.execute("getProjectDetails");this.fProjectDetails=JSON.parse(e)}catch(t){s.displayAlertDialog(e.DetailsAlertDialogTitle,t)}}_createDialog(){let n=document.createElement("div");const o=i.createDialog({title:e.DetailsDialogTitle,className:"ProjectDetailsDialog",dialogType:i.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,buttons:[t.OK,t.CANCEL,t.APPLY],"data-test-id":"ProjectDetailsDialog",content:n});return n.classList.add("proj-details-root"),this._addProjectName(n,o),this._addProjectDescription(n,o),this._addProjectRoot(n),o.addButtonEventListener(t.CANCEL,()=>{this.close()},!1),o.addButtonEventListener(t.OK,()=>{this._detailsHaveChanged()&&this._updateProjectDetails(),this.close()},!1),o.disableButton(t.APPLY),o.addButtonEventListener(t.APPLY,()=>{this._updateProjectDetails(),o.disableButton(t.APPLY)},!1),o.on("close",()=>{this.close()}),o.resizeTo({width:700,height:300}),o.moveTo({}),o}_detailsHaveChanged(){return this.fName!==this.fProjectDetails.name||this.fDescription!==this.fProjectDetails.description}async _updateProjectDetails(){try{await this.fCommandExecutor.execute("updateProjectDetails",this.fName,this.fDescription),await this._getProjectDetails(),this.fName=this.fProjectDetails.name,this.fDescription=this.fProjectDetails.description}catch(t){s.displayAlertDialog(e.DetailsAlertDialogTitle,t)}}_setApplyButtonState(e){this._detailsHaveChanged()?e.enableButton(t.APPLY):e.disableButton(t.APPLY)}_addProjectName(t,i){this._addText(e.DetailsProjectName,t,"proj-details-name-text");const n=document.createElement("div");n.classList.add("proj-details-textfield");const o=new a({value:this.fProjectDetails.name,"data-test-id":"ProjectNameField",width:"100%"});o.placeAt(n),o.startup(),o.on("typing",e=>{this.fName=e.mwEventData.currentContent,this._setApplyButtonState(i)}),t.appendChild(n)}_addProjectDescription(t,i){this._addText(e.DetailsProjectDescription,t,"proj-details-description-text");const n=document.createElement("div");n.classList.add("proj-details-textfield");const o=new r({value:this.fProjectDetails.description,"data-test-id":"ProjectDescriptionArea",width:"100%",height:"100%"});o.placeAt(n),o.startup(),o.on("typing",e=>{this.fDescription=e.mwEventData.currentContent,this._setApplyButtonState(i)}),t.appendChild(n)}_addProjectRoot(t){this._addText(e.DetailsProjectRoot,t,"proj-details-root-text");const i=document.createElement("div");i.classList.add("proj-details-root-path");const r=document.createElement("div"),a=new n({text:this.fProjectDetails.root,"data-test-id":"ProjectRootField",width:"100%",horizontalAlignment:"left"});a.placeAt(i),a.startup();const s=new o({text:e.DetailsProjectRootButton,"data-test-id":"SetCurrentFolderButton",disabled:!1});s.on("click",()=>{this.fCommandExecutor.execute("setCurrentFolder",this.fProjectDetails.root)}),s.placeAt(r),s.startup(),t.appendChild(i),t.appendChild(r)}_addText(e,t,i){const o=document.createElement("div");o.classList.add(i);const r=new n({text:e,width:"100%"});r.placeAt(o),r.startup(),t.appendChild(o)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(759),i(226),i(8495),i(383)],o=i.dj.d(n,(function(e,t,i,n,o){return class{constructor(e,n,o){this.fUiBuilder=e.uiBuilder,this.fParentTab=n,this.fSection=this.fUiBuilder.create({type:i.SECTION,title:t.TSSectionTools,parentId:this.fParentTab}),this.fColumn=this.fUiBuilder.create({type:i.COLUMN,parentId:this.fSection}),this.fToolsManager=o}dispose(){}update(e){this.fToolsManager.resetTools(),this.fToolsGallery&&this.fToolsGallery.destroy(),this.fToolsGallery=new n(this.fUiBuilder,this.fColumn,e),e.toolsGalleryExtensions.forEach(e=>{this.fToolsManager.addToolFactory(t=>{const i=new o(t.commandChannel);return{iconLocation:e.iconLocation,buttonCategory:e.buttonCategory,buttonId:e.buttonId,buttonName:e.buttonName,buttonDescription:e.buttonDescription,buttonCallback:function(){return i.execute(e.command)}}},e.priority)}),this.fToolsManager.populateGallery(this.fToolsGallery),this.fToolsGallery.makeReady()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(226),i(383),i(510)],o=i.dj.d(n,(function(e,t,i,n){const o=new n(null);return class{constructor(e,i,n){this.fUiBuilder=e,this.fColumn=i,this.fProject=n,this.fPopup=this.fUiBuilder.create({type:t.GALLERY_POPUP,galleryItemRowCount:1,galleryItemTextLineCount:2,galleryItemWidth:90,favoritesEnabled:!1,tag:"ProjectToolsGalleryPopup"}),this.fGallery=this.fUiBuilder.create({type:t.GALLERY,galleryPopupId:this.fPopup,parentId:this.fColumn,maxColumnCount:2,hideDisabledItems:!1,displayState:"busy",tag:"ProjectToolsGallery"}),this.fCategories={}}destroy(){this.fUiBuilder.destroy(this.fGallery)}addItem(e){const i=e(this.fProject),n=this.fUiBuilder.create({type:t.GALLERY_ITEM,tag:i.buttonId,text:i.buttonName,description:i.buttonDescription,parentId:this._getCategory(i.buttonCategory)});o.loadIcon(i.iconLocation).then(e=>{this.fUiBuilder.set(n,"icon",e)}),this.fUiBuilder.addEventCallback(n,()=>{this.fUiBuilder.set(n,"enabled",!1),i.buttonCallback().then(()=>{this.fUiBuilder.set(n,"enabled",!0)})})}makeReady(){this.fUiBuilder.set(this.fGallery,"displayState","normal")}_getCategory(e){const i=this.fCategories[e];if(i)return i;const n=this.fUiBuilder.create({type:t.GALLERY_CATEGORY,tag:e,title:e,parentId:this.fPopup});return this.fCategories[e]=n,n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(563),i(219),i(2634)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{fCommandChannel:null,constructor:function(e){this.fCommandChannel=e},execute:function(){(new n).getFile().then(e=>this._openProject(e)).catch(e=>console.log(e))},_openProject:function(e){if(function(e){return!e}(e))return;const n={action:"openProject",args:[e],id:t.uniqueId()};i.publish(this.fCommandChannel,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2639),i(2640),i(304),i(2529),i(2636),i(759)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){let s=null;const l=new n({panelId:"projectFileUI",region:"left",title:a.CurrentProject,index:1,closable:!1,actions:[{text:a.CloseProject,enabled:!0,callback:()=>{new r(s).execute()}}]});return e(null,{fModel:null,fCurrentPanel:null,fCurrentProject:null,fCurrentProjectService:null,fDesktop:null,constructor:function(e,t,i,n){this.fModel=e,s=t,this.fDesktop=n,this.fCurrentProjectService=i;const o=this._update.bind(this);this.fCurrentProjectService.onProjectChange(o),this.fModel.onStart(o)},_wipePanel:function(){const e=this.fCurrentPanel;this.fCurrentPanel&&(this.fCurrentPanel.destroy(),this.fCurrentPanel=null),e&&this.fDesktop.removePanel(e.getContentPane())},_createFileView:function(e){const n=e.location,o=new i(n);return new t({channelName:e.fileViewChannel,commandChannel:e.commandChannel,scCache:e.scCache,mf0ProjectPathCache:e.projectPathCache,mf0ShortcutCache:e.shortcuts,mf0LabelsCache:e.labels,mf0AttachedLabelsCache:e.attachedLabels,pathService:o,path:n})},_update:function(e){if(!this.fCurrentProjectService.isCurrentProject(this.fCurrentProject)){if(e||(e=this.fCurrentProjectService.getProject()),this._wipePanel(),!e)return this.fCurrentProject=null,void o.updateProjectRoot("");this.fCurrentProject=e,this.fCurrentPanel=this._createFileView(this.fCurrentProject),this.fDesktop.addPanel(this.fCurrentPanel.getContentPane(),l),o.updateProjectRoot(this.fCurrentProject.location)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(306),i(204),i(222),i(206),i(428),i(209),i(232),i(641),i(233),i(229),i(2526),i(219),i(8499),i(1618),i(383)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){const m=e([r],{size:function(){return this.query().length}}),_=e([f],{isFileChanged:function(e,t){return this.inherited(arguments)||e.inProject!==t.inProject||e.exists!==t.exists}});return e([n],{constructor:function(e){e=e||{},this.fPathService=e.pathService,this.fChannelName=e.channelName,this.classifier=e.classifier,this.fCommandExecutor=new g(e.commandChannel),this.fileStore=new p({fileService:this,fileComparator:new _,clientId:"projects-ui"}),this.openedFilesDataStore=new m,this._subscriptionMessageResolution=h.subscribe(this.fChannelName,this._responseHandler,this),this._listFolderLockCounter=0,this._listFolderRequestsQueue=new u({processingCallback:this._listFolderRequest.bind(this)})},_responseHandler:function(e){const t=[e.data];"ListFolderResponse"===t[0].identifier&&this._handleListFolderResponse(t)},reset:function(){this.fileStore.resetStore()},getAllOpenedFileInfoPaths:function(){const e=[];return this.openedFilesDataStore.query().forEach((function(t){e.push(t.fileInfo)})),e},setWraDataService:function(e){this._wraService=e},start:function(){const e=this.fChannelName;this._subscriptionMessageResolution.then((function(t){h.publish(e,{type:"startServerSide",filepaths:[]})}))},lockListFolderRequestAndResponse:function(){this._listFolderLockCounter=this._listFolderLockCounter+1},unLockListFolderRequestAndResponse:function(){this._listFolderLockCounter=Math.max(this._listFolderLockCounter-1,0),0===this._listFolderLockCounter&&this._listFolderRequestsQueue.processItems()},stop:function(){this.reset()},_listFolderRequest:function(e,t){e&&e.length>0&&h.publish(this.fChannelName,{type:"ListFolder",filePaths:e,context:t||{type:""}})},onExpandOrCollapse:function(e,t){const i=[{path:e}];t?(this._listFolderRequest(i),this.watchFolderAndChildren(i)):this.stopWatchingFolderAndChildren(i)},watchFolderAndChildren:function(e){h.publish(this.fChannelName,{type:"RegisterChildren",parentFolderPath:e})},stopWatchingFolderAndChildren:function(e){h.publish(this.fChannelName,{type:"UnregisterChildren",parentFolderPath:e})},_processFolderData:function(e){this.fileStore.syncFolder(e.folder,e.folderContents)},_handleListFolderResponse:function(e){const t=this;e.forEach((function(e){if(0===t._listFolderLockCounter)t._processFolderData(e);else{const i=c.pathFromFileInfo(e.folder);t._listFolderRequestsQueue.push([{path:i}],i)}}))},_handleCurrentFolderChange:function(){this.currentWorkingFolder=this.getCurrentFolderInfo(),this.listFolder(this.getCurrentFolderInfo())},listFolder:function(e,t){if(!this.isListFolderRequestAndResponseLocked){const i=c.assertAndUpdateFileInfo(e);this._listFolderRequest([{path:i.path}],t)}},_createDefaultListFolderMessage:function(){let e=[];return this.getCurrentFolderInfo()&&e.push({path:c.pathFromFileInfo(this.getCurrentFolderInfo())}),e},getFileInfoFromPath:function(e){return this.fileStore.store.query({path:e})},getFileInfosFromPaths:function(e){let t=[];const i=this;return e.forEach((function(e){if(""!==e){const n=i.getFileInfoFromPath(e)[0];n&&t.push(n)}})),t},getCurrentFolderInfo:function(){return this.fPathService?this.fPathService.getCurrentFolder():null},addOrUpdateFilesInStore:function(e){this.fileStore.addOrUpdateFile(e)},getRelativePaths:function(e){const t=c.pathFromFileInfo(this.getCurrentFolderInfo());return e.reduce((e,i)=>(i.startsWith(t)&&e.push(this.getRelativePath(i)),e),[])},getRelativePath:function(e){const t=c.pathFromFileInfo(this.getCurrentFolderInfo()),i=c.getFileSeparator(t);let n=e.replace(t,"");return n.startsWith(i)&&(n=n.replace(i,"")),n},renameFile:function(e){const t=c.pathFromFileInfo(e.fileInfo),i=e.fileInfo.location+e.newName;this.fCommandExecutor.execute("moveFile",this.getRelativePath(t),this.getRelativePath(i)).then(()=>{this.onRename(c.fileInfoFromPath(i)),this.emit("rename-complete",t)}).catch(e=>{this.emit("rename-failed",{path:t,error:new Error(e)})})},onRename:function(e){},addToProject:function(e){this.fCommandExecutor.execute("addFiles",...e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(428),i(753),i(233),i(2525),i(1618),i(855)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([],{constructor:function(e){this.clientId=e.clientId,this.fileService=e.fileService,this.fileComparator=e.fileComparator?e.fileComparator:new a,this._storeUpdateQueue=new r,this.store=new n(new i({idProperty:"path",getChildren:function(e,t){var i,n=(i=this.query((function(i){const{originalQuery:n}=t,{commonFilter:o}=n;return(!o||o(i))&&i.parent===e.path}),t)).observe;return i.observe=function(e,t){return n((function(){try{return e.apply(null,arguments)}catch(e){}}),t)},i},mayHaveChildren:function(e){return e.hasChildren},getIdentity:function(e){return e.path}}))},lockStore:function(){this._storeUpdateQueue.lock()},unlockStore:function(){this._storeUpdateQueue.unlock()},deleteFile:function(e,t){this._storeUpdateQueue.process(()=>{this.store.remove(o.pathFromFileInfo(e)),s.publish("store-modified",{fileInfo:e,clientId:this.clientId,type:"delete",reason:t})})},syncFolderInGroupedMode:function(e,t,i){this.fileService.syncFolderInGroupedMode(e,t,i)},addOrUpdateFile:function(e,t=!0,i,n){this._storeUpdateQueue.process(()=>{const{store:n,fileComparator:o}=this;let r=!0;const a=n.get(e.path);a&&t&&(r=o.isFileChanged(a,e)),a&&a.proxyParent&&(e.proxyParent=a.proxyParent),r&&(n.put(e),s.publish("store-modified",{fileInfo:e,clientId:this.clientId,type:a?"update":"create"})),i&&i(e)})},_childrenToAdd:function(e,t){var i=this.store.get(e.path);i?this.fileComparator.isFileChanged(i,e)&&t.push(e):t.push(e)},syncFolder:function(e,t){var i=[],n=this;t.forEach((function(e){n._childrenToAdd(e,i)})),n.store.isGroupingMode?this.syncFolderInGroupedMode(e,t,i):(i.forEach((function(e){n.addOrUpdateFile(e,!1)})),n.recursiveDelete(e,t))},resetStore:function(){var e=this;this.store.query({}).forEach((function(t){e.deleteFile(t)}))},isItemAChild:function(e,t){return 0===o.normalizePath(o.pathFromFileInfo(e)).indexOf(o.normalizePath(o.pathFromFileInfo(t)))},recursiveDelete:function(e,t){var i,n,o=[],r=this;this.store.query({parent:e.path}).forEach((function(e){for(i=!0,n=0;n<t.length;n+=1)if(t[n].path===e.path){i=!1;break}i&&(r._queryForRelatedSubFolders(e.path).forEach((function(e){o.push(e)})),o.push(e))})),o.forEach((function(e){r.deleteFile(e)}))},_queryForRelatedSubFolders:function(e){return this.store.query({location:e+o.getFileSeparator(e)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(345)],o=i.dj.d(n,(function(e,t,i){const n=i.default;return e([t],{fCache:null,fListener:null,fModel:null,fEntriesProperty:null,constructor:function(e){this.fMf0Cache=e,this.fModel=e.getModel(),this.fListener=new n,this.fEntriesProperty=e.getMetaClass().getPropertyByName("entries")},start:function(){this.fListener.transactionCommitted=e=>{e.processModified(e=>this._postRefreshed(),this.fEntriesProperty)},this.fModel.addShallowListener(this.fListener)},stop:function(){this.fModel.removeListener(this.fListener)},getStatus:function(e){if(!this.fMf0Cache.isValid)return[];return this.fMf0Cache.entries._collection.get(e)||[]},getEntries:function(){return this.fMf0Cache.isValid?Array.from(this.fMf0Cache.entries._collection.values()):[]},_postRefreshed:function(){this.emit(this.events.CACHE_REFRESH,{})},events:{CACHE_REFRESH:"refresh"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(228),i(1619),i(860),i(2632)],o=i.dj.d(n,(function(e,t,i,n,o,r){function a(e){return"project_status_"+e}const s={ByDir:function(e){return!e.isDirectory},ByStatus:function(e){return e.inProject}};return e([],{column:null,constructor:function(e){const l=e.projectPathCache,c=e.entryPointCache,d=e.root,u=new r;this.column={id:e.id,label:"Project Status",field:"projectStatus",sortable:!0,hidden:!1,unhidable:!1,renderHeaderCell:function(e){const i=t.create("div");i.className="project_file_view_header",i.textContent="Project Status",e.appendChild(i)},renderCell:function(e,n,r,s){const h=e.path,p=t.create("img");r.appendChild(p);const f=u.getRelativePath(d,h);let g;e.isDirectory&&(g=t.create("img"),r.appendChild(g));const m=t.create("img");function _(t){!function(){if(!e.isDirectory)return;const t=l.isMember(f);i.set(g,"class",t?"project_path_img":"");let n="";t&&(n=o.ProjectPathTooltip),i.set(g,"title",n)}(),function(){const e=c.isStartup(f),t=!e&&c.isShutdown(f);i.set(m,"class",e||t?"project_start_img":"");let n="";e&&(n=o.StartupTooltip,i.set(m,"initMode","Startup")),t&&(n=o.ShutdownTooltip,i.set(m,"initMode","Shutdown")),i.set(m,"title",n)}(),i.set(p,"class","project_status_img "+function(e){return e.inProject?a(e.exists?"IN_PROJECT":"MISSING"):a("NOT_IN_PROJECT")}(e));const n=e.exists?e.inProject?o.InProject:o.NotInProject:o.Missing;i.set(p,"title",n)}r.appendChild(m),l.on(l.events.CACHE_REFRESH,_),c.on(c.events.CACHE_REFRESH,_),_()},sort:function(e,t){const i=[s.ByDir,s.ByStatus];for(;i.length>0;){const n=i.shift(),o=n(e),r=n(t);if(o!==r)return o<r?-1:1}return n.sort(e,t)},width:"80"}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(228),i(1619),i(852)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{column:null,constructor:function(e){const r=e.attachedLabelsCache,a=e.labelsCache,s=(e,t)=>t?0===e.length?t||e:t?e+", "+t:e:e,l=function(e){const t=r.getStatus(e);if(!t||0===t.length)return"";return t.uuids.split(",").map(e=>{const t=a.getStatus(e);return t?t.name:null}).sort().reduce(s,"")};this.column={id:e.id,label:"Labels",field:"labels",sortable:!0,hidden:!1,unhidable:!1,renderHeaderCell:function(e){const i=t.create("div");i.className="labels_file_view_header",i.textContent="Labels",e.appendChild(i)},renderCell:function(e,n,o,s){const c=e.path,d=t.create("div");function u(e){for(;d.firstChild;)d.removeChild(d.lastChild);d.appendChild(document.createTextNode(l(c)))}i.set(d,"class","project_label_element"),o.appendChild(d),r.on(r.events.CACHE_REFRESH,u),a.on(a.events.CACHE_REFRESH,u),u()},sort:function(e,t){const i=e.isDirectory,r=t.isDirectory;if(i!==r)return i>r?-1:1;return o.caseSensitiveStringComparator(l(e.path),l(t.path))||n.sort(e,t)},width:"60"}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(2515),i(209)],o=i.dj.d(n,(function(e,t,i,n){return e([i],{constructor:function(e){},setDefaultActions:function(e,t){this.inherited(arguments);let i=function(e,t){return 0!==e.length&&(e.length>=1?t.every(e=>!e.isDirectory):void 0)};this._clientActionsService.updateAction("OPEN",{computeIsApplicableCallback:i});const n=function(e,t){return 0===e.length||1===e.length&&t[0].isDirectory};this._clientActionsService.updateAction("NEW2",{isApplicableTo:n})},getActions:function(){return this._refreshActionsForCurrentSelection(),this._resolveActions(),this.inherited(arguments)},executeCFBAction:function(e,i){t.publish("/cfb/actionmanager",{identifier:"executeAction",actionId:e,input:i})},_computeApplicable:async function(e,t,i=!1){if(void 0===e.isApplicableTo)e.applicable=!0;else if(i&&!e.hasOwnProperty("isApplicableTo"))e.applicable=!0;else{const i=this._inputSource.getInput();try{e.applicable=await e.isApplicableTo(i.filePaths,i.fileInfoArray),e.enabled=e.isEnabled?await e.isEnabled(t):e.applicable}catch(t){n.error(t),e.applicable=!1,e.enabled=!1}}if(e.applicable&&e.childrenActions){const i=e.childrenActions.map(e=>{this._computeApplicable(e,t,!0)});await Promise.all(i)}return e},_getApplicableActions:async function(e,t){const i=e.map(async e=>this._computeApplicable(e,t));return(await Promise.all(i)).filter(e=>e.applicable)},_resolveActions:function(){const e=this._clientActionsService.getAllActions(),t=this.groupAndOrderActions(e);this._getApplicableActions(t,this._refreshActionsRequest.selection).then(e=>{this.emit("actions-updated",e),this._refreshActionsRequest.deferred.resolve(e)})},_refreshActionsForCurrentSelection:function(){this.refreshActionsForCurrentSelection()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1601),i(1604),i(1605),i(1606),i(1607),i(1608),i(418),i(2508),i(2512),i(2511),i(2510),i(2513)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=s.getFileIconProvider();return e(null,{constructor:function(e){this._fileDataService=e.fileDataService,this._id=e.id,this._registry=this._getColumnRegistry(e.columns),this._hasContextMenu=!1,this._keybindings={},this._allowDnD=!1,this._contextMenuBuilder=null,this._actionManager=null,this._actionDataService=null,this._allowGrouping=!1,this._mixins=[],this._allowRename=!1,this._allowSelectionBox=!1,this._allowJumpToAction=!1},getFileBrowser:function(){return this._configMixins(),this._fileBrowser=e([t,...this._mixins])({fileService:this._fileDataService,columnRegistry:this._registry,actionManager:this._actionManager,contextMenuEnabled:this._hasContextMenu,keybindings:this._keybindings,allowDnD:this._allowDnD,includeGroupByMenuInColumnHeader:this._allowGrouping}),this._fileBrowser.on("destroyed",function(){this._actionDataService.destroy()}.bind(this)),this._fileBrowser},addColumn:function(e,t){return this._registry.addColumn(new e(t)),this},setContextMenu:function(e){return this._hasContextMenu=e,this},setActionManager:function(e){return this._actionManager=e,this},setDnD:function(e){return this._allowDnD=e,this},setActionDataService:function(e){return this._actionDataService=e,this},setAllowGrouping:function(e){return this._allowGrouping=e,this},setAllowRename:function(e){return this._allowRename=e,this},setActionKeyBindingMap:function(e){return this._keybindings=e,this},setSelectionBox:function(e){return this._allowSelectionBox=e,this},setJumpToAction:function(e){return this._allowJumpToAction=e,this},_getColumnRegistry:function(e){return this._registry=new i,null==e&&(this._registry.addColumn(new n({id:this._id+"NameColumn",fileIconProvider:p})),this._registry.addColumn(new o({id:this._id+"SizeColumn"})),this._registry.addColumn(new r({id:this._id+"DateModifiedColumn"})),this._registry.addColumn(new a({id:this._id+"TypeColumn"}))),this._registry},_configMixins:function(){var e=[l,d,c,u,h];[this._allowGrouping,this._allowRename,this._hasContextMenu,this._allowSelectionBox,this._allowJumpToAction].forEach((t,i)=>{t&&this._mixins.push(e[i])})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221),i(342)],o=i.dj.d(n,(function(e,t){var i=e("mac")?[t.Keys.COMMAND,t.Keys.BACKSPACE]:[t.Keys.DELETE],n=e("mac")?[t.Keys.ENTER]:[t.Keys.F2],o=e("mac")?[t.Keys.COMMAND,t.Keys.DOWN_ARROW]:[t.Keys.ENTER];return{CUT:[t.Keys.SYSCTRL,t.Keys.X],COPY:[t.Keys.SYSCTRL,t.Keys.C],DELETE:i,PASTE:[t.Keys.SYSCTRL,t.Keys.V],RENAME:n,OPEN:o}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(8507),i(241),i(419)],o=i.dj.d(n,(function(e,t,i,n,o){const r=function(e,t,r,a,s,l){const c=new o({title:i.UpdatingLabelsTitle,description:r,showCancel:!1});0!==l.length&&e.executeWithProgress(c,t,a,s,...l).then(()=>{}).catch(e=>{n.displayAlertDialog(i.ErrorDialogTitle,e)})};return e(t,{constructor:function(e){this.fActionRegistry=new class{constructor(e){this.fClientActionService=e,this.fActions=[]}clear(){this.fActions.forEach(e=>{try{this.fClientActionService.removeAction(e.id)}catch(e){console.log(e)}}),this.fActions=[]}add(e){this.fClientActionService.addAction(e),this.fActions.push(e)}}(e.clientActionsService),this.fLabelsCache=e.labelsCache,this._syncWithLabelCache(e)},_syncWithLabelCache:function(e){this.fLabelsCache.on(this.fLabelsCache.events.CACHE_REFRESH,()=>{this._update(e)}),this._update(e)},_update:function(e){this.fActionRegistry.clear(),this.fActionRegistry.add(this._makeAddLabelRootSection(e,this.fActionRegistry)),this.fActionRegistry.add(this._makeRemoveLabelRootSection(e,this.fActionRegistry))},_makeAddLabelRootSection:function(n,o){return new e(t,{constructor:function(e){this.fFileService=e.fileService,this.id="ADD_LABEL_SECTION",this.label=i.AttachLabel,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!1,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.orderPriorityWithinSection=70,this.fPaths=[],this.isApplicableTo=function(e){return this.fFileService.getFileInfosFromPaths(e).some(e=>e.inProject)},this.allowSubMenu=!0,this.forceSubMenu=!0,this.fLabelsCache=e.labelsCache,this._addChildActions()},_addChildActions:function(){this.childrenActions=[];const e=this.fLabelsCache.getEntries();e.filter(e=>"CATEGORY"===e._type).forEach(t=>{const i=this._makeAddLabelCategorySection(n,t._uuid,t._name,this,e);this.childrenActions.push(i)})},_makeAddLabelCategorySection:function(n,o,a,s,l){return new e(t,{constructor:function(e){this.fFileService=e.fileService,this.id="AddLabelCat"+o,this.label=a,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!1,this.section=s,this.orderPriorityWithinSection=10,this.fPaths=[],this.isApplicableTo=function(e){return!0},this.allowSubMenu=!0,this.forceSubMenu=!0,this._addChildActions(l)},_addChildActions:function(e){this.childrenActions=[],e.filter(e=>e._parentUuid===o).forEach(e=>{const t=this._makeAddLabelEntry(n,e._uuid,e._name,this);this.childrenActions.push(t)})},_makeAddLabelEntry:function(n,a,s,l){return new e(t,{constructor:function(e){this.fFileService=e.fileService,this.id="AddLabel"+a,this.label=s,this.labelId=a,this.supportsKeyBinding=!1,this.fCommandExecutor=e.commandExecutor,this.enabled=!0,this.needsCheckBox=!1,this.section=l,this.orderPriorityWithinSection=10,this.fPaths=[],this.isApplicableTo=function(e){return this.fPaths=e.map(e=>this.fFileService.getRelativePath(e)),!0},this.allowSubMenu=!1,this.callback=function(e){r(this.fCommandExecutor,"attachLabels",i.AttachingLabel,o,a,this.fPaths)}}})(n)}})(n)}})(n)},_makeRemoveLabelRootSection:function(n,o){let a=new Set,s=new Set,l=new Set;return new e(t,{constructor:function(e){this.fFileService=e.fileService,this.id="REMOVE_LABEL_SECTION",this.label=i.RemoveLabel,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!1,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.orderPriorityWithinSection=71,this.fPaths=[];this.isApplicableTo=function(t){const i=new Map;return t.forEach(t=>{const n=function(t){const i=e.attachedLabelsCache.getStatus(t);return i&&0!==i.length?i.uuids.split(","):null}(t);n&&i.set(t,n)}),a=new Set([].concat(...Array.from(i.values()))),l=new Set([].concat(...Array.from(i.keys()))),s=new Set(Array.from(a).map(e=>{const t=this.fLabelsCache.getStatus(e);return t?t.parentUuid:null})),this.childrenActions.forEach(e=>{this.childrenActions.enabled=s.has(e.categoryId)}),l.size>0},this.allowSubMenu=!0,this.forceSubMenu=!0,this.fLabelsCache=e.labelsCache,this._addChildActions()},_addChildActions:function(){this.childrenActions=[];const e=this.fLabelsCache.getEntries();e.filter(e=>"CATEGORY"===e._type).forEach(t=>{const i=this._makeRemoveLabelCategorySection(n,t._uuid,t._name,this,e);this.childrenActions.push(i)})},_makeRemoveLabelCategorySection:function(n,o,l,c,d){return new e(t,{constructor:function(e){this.categoryId=o,this.fFileService=e.fileService,this.id="AddLabelCat"+o,this.label=l,this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!1,this.section=c,this.orderPriorityWithinSection=10,this.fPaths=[],this.isApplicableTo=function(e){return s.has(o)},this.allowSubMenu=!0,this.forceSubMenu=!0,this._addChildActions(d)},_addChildActions:function(e){this.childrenActions=[],e.filter(e=>e._parentUuid===o).forEach(e=>{const t=this._makeRemoveLabelEntry(n,e._uuid,e._name,this);this.childrenActions.push(t)})},_makeRemoveLabelEntry:function(n,s,l,c){return new e(t,{constructor:function(e){this.fFileService=e.fileService,this.id="RemoveLabel"+s,this.label=l,this.supportsKeyBinding=!1,this.enabled=!0,this.fCommandExecutor=e.commandExecutor,this.needsCheckBox=!1,this.section=c,this.orderPriorityWithinSection=10,this.fPaths=[],this.isApplicableTo=function(e){return this.fPaths=e.map(e=>this.fFileService.getRelativePath(e)),a.has(s)},this.allowSubMenu=!1,this.callback=function(e){r(this.fCommandExecutor,"removeLabels",i.RemovingLabel,o,s,this.fPaths)}}})(n)}})(n)}})(n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8508),i(8509),i(8510),i(8511)],o=i.dj.d(n,(function(e,t){return t(e,"project-file-ui/l10n/gen/resources/MATLAB/project/nls/view_labels",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={AddCategory:"新規カテゴリ",AddLabel:"新規ラベル",AddingCategory:"新規ラベル カテゴリを作成しています。",AddingLabel:"新規ラベルを作成しています。",AttachLabel:"ラベルの追加",AttachingLabel:"ラベルを追加します",Category:"カテゴリ",CategorySection:"選択されたカテゴリ",DataType:"データ型",LabelDialogTsButton:"ラベル",LabelDialogTsButtonDescription:"プロジェクト ファイルにラベルを追加します",LabelSection:"選択されたラベル",LabelsTab:"ラベル",NameField:"名前",RemoveCategory:"カテゴリの削除",RemoveLabel:"ラベルの削除",RemovingCategory:"ラベル カテゴリを削除しています。",RemovingLabel:"ラベルの削除中",RootSection:"カテゴリ",SelectionSection:"選択",SingleValued:"単一値",UpdatingLabelsTitle:"ラベルの更新"}},function(e,t,i){e.exports={AddCategory:"새 범주",AddLabel:"새 레이블",AddingCategory:"새 레이블 범주를 만드는 중입니다.",AddingLabel:"새 레이블을 만드는 중입니다.",AttachLabel:"레이블 추가",AttachingLabel:"레이블 추가 중",Category:"범주",CategorySection:"선택한 범주",DataType:"데이터형",LabelDialogTsButton:"레이블",LabelDialogTsButtonDescription:"프로젝트 파일에 레이블을 추가합니다",LabelSection:"선택한 레이블",LabelsTab:"레이블",NameField:"이름",RemoveCategory:"범주 제거",RemoveLabel:"레이블 제거",RemovingCategory:"레이블 범주를 제거하는 중입니다.",RemovingLabel:"레이블 제거 중",RootSection:"범주",SelectionSection:"선택",SingleValued:"단일 값",UpdatingLabelsTitle:"레이블 업데이트 중"}},function(e,t,i){e.exports={AddCategory:"新建类别",AddLabel:"新建标签",AddingCategory:"创建新标签类别。",AddingLabel:"创建新标签。",AttachLabel:"添加标签",AttachingLabel:"添加标签",Category:"类别",CategorySection:"所选类别",DataType:"数据类型",LabelDialogTsButton:"标签",LabelDialogTsButtonDescription:"将标签添加到工程文件",LabelSection:"所选标签",LabelsTab:"标签",NameField:"名称",RemoveCategory:"删除类别",RemoveLabel:"删除标签",RemovingCategory:"删除标签类别。",RemovingLabel:"删除标签",RootSection:"类别",SelectionSection:"所选内容",SingleValued:"单值",UpdatingLabelsTitle:"更新标签"}},function(e,t,i){e.exports={root:{AddCategory:"New Category",AddLabel:"New Label",AddingCategory:"Creating new label category.",AddingLabel:"Creating new label.",AttachLabel:"Add Label",AttachingLabel:"Adding Label",Category:"Category",CategorySection:"Selected Category",DataType:"Data Type",LabelDialogTsButton:"Labels",LabelDialogTsButtonDescription:"Add labels to project files",LabelSection:"Selected Label",LabelsTab:"Labels",NameField:"Name",RemoveCategory:"Remove Category",RemoveLabel:"Remove Label",RemovingCategory:"Removing label category.",RemovingLabel:"Removing Label",RootSection:"Categories",SelectionSection:"Selection",SingleValued:"Single Valued",UpdatingLabelsTitle:"Updating Labels"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(222),i(345)],o=i.dj.d(n,(function(e,t,i){const n=i.default;return e([t],{fCache:null,fListener:null,fModel:null,fEntriesProperty:null,constructor:function(e){this.fCache=e,this.fModel=e.getModel(),this.fListener=new n,this.fShortcutEntriesProperty=e.getMetaClass().getPropertyByName("entries"),this.fStartupEntriesProperty=e.getMetaClass().getPropertyByName("startupEntries"),this.fShutdownEntriesProperty=e.getMetaClass().getPropertyByName("shutdownEntries"),this.fListener.transactionCommitted=e=>{this._update(e)},this.fModel.addShallowListener(this.fListener)},stop:function(){this.fModel.removeListener(this.fListener)},isShortcut:function(e){const t=this.getShortcutEntries();if(!t)return!1;return t.getAllValues().map(e=>e._filename).includes(e)},isStartup:function(e){const t=this.getStartupEntries();return!!t&&t.at(e)},isShutdown:function(e){const t=this.getShutdownEntries();return!!t&&t.at(e)},getShortcutEntries:function(){return this.fCache.isValid?this.fCache.entries:null},getStartupEntries:function(){return this.fCache.isValid?this.fCache.startupEntries:null},getShutdownEntries:function(){return this.fCache.isValid?this.fCache.shutdownEntries:null},_update:function(e){(e.isChanged(this.fCache,this.fShortcutEntriesProperty)||e.isChanged(this.fCache,this.fStartupEntriesProperty)||e.isChanged(this.fCache,this.fShutdownEntriesProperty))&&this.emit(this.events.CACHE_REFRESH,{})},events:{CACHE_REFRESH:"refresh"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(2631),i(241),i(8514),i(419)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(t,{constructor:function(e){const t=e.clientActionsService;t.addAction(this._openCreateShortcutDialog(e)),t.addAction(this._openEditShortcutDialog(e)),t.addAction(this._openRemoveShortcut(e))},_openCreateShortcutDialog:function(t){return new e(o,{constructor:function(e){this.id="CREATE_SHORTCUT",this.label=i.CreateShortcut,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.orderPriorityWithinSection=50,this.fIsNewShortcut=!0}})(t)},_openEditShortcutDialog:function(t){return new e(o,{constructor:function(e){this.id="EDIT_SHORTCUT",this.label=i.EditShortcut,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.orderPriorityWithinSection=51,this.fIsNewShortcut=!1}})(t)},_openRemoveShortcut:function(o){return new e(t,{constructor:function(e){this.id="REMOVE_SHORTCUT",this.label=i.RemoveShortcut,this.section={id:"PROJECT",name:"Project",allowSubMenu:!1,forceSubMenu:!1},this.orderPriorityWithinSection=52,this.fCommandName="removeShortcut",this.fCommandExecutor=e.commandExecutor,this.fEntryPointCache=e.entryPointCache,this.fProgressHandler=new r({title:i.ProjectBusyAction,description:i.SettingRemoveAtShutdown,showCancel:!1}),this.fFileService=e.fileService,this.fPaths=[],this.callback=function(e){0!==this.fPaths.length&&this.fCommandExecutor.executeWithProgress(this.fProgressHandler,this.fCommandName,...this.fPaths).then(()=>{}).catch(e=>{n.displayAlertDialog(i.ErrorDialogTitle,e)})},this.isApplicableTo=function(e){const t=e.filter(e=>this.fEntryPointCache.isShortcut(e));return this.fPaths=t,t.length>0}}})(o)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(296),i(2629)],o=i.dj.d(n,(function(e,t,i){return e(t,{constructor:function(e){this.supportsKeyBinding=!1,this.enabled=!0,this.needsCheckBox=!1,this.fCommandExecutor=e.commandExecutor,this.fEntryPointCache=e.entryPointCache,this.fFileService=e.fileService,this.fShortcutData={},this.fIsNewShortcut=!0,this.isApplicableTo=function(e){const t=e.filter(e=>{const t=this.fEntryPointCache.isShortcut(e);return this.fIsNewShortcut?!t:t});if(0===t.length)return!1;const i=this.fFileService.getFileInfosFromPaths(t),n=i.filter(e=>e.inProject).filter(e=>!e.isDirectory).map(e=>this.fFileService.getRelativePath(e.path));if(0===n.length)return!1;const o=i[0].name.replace(/\.[^/.]+$/,"");this.fShortcutData={absolutePath:t[0],relativePath:n[0],name:o};const r=this.fEntryPointCache.fCache.entries.getAllValues().find(e=>e._filename===t[0]);return r&&(this.fShortcutData.icon=r.icon,this.fShortcutData.group=r.group),!0},this.callback=function(e){if(0===Object.keys(this.fShortcutData).length)return;const t=this.fEntryPointCache.fCache.groups._collection;new i(this.fCommandExecutor,t,this.fShortcutData,this.fIsNewShortcut).show()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2641),i(345)],o=i.dj.d(n,(function(e,t,i){const n=i.default;return e(null,{constructor:function(e,t){this.fCurrentProjectService=e,this.fModel=t,this.fHandlers={},this.fCurrentProjectService.onProjectChange(e=>this._update()),this.fCurrentProject=null,this.fViews=[],this.fListener=null,this.fModel.onStart(()=>{this._update()})},_update:function(){const e=this.fCurrentProjectService.getProject();if(this.fCurrentProject===e)return;if(this.fCurrentProject=e,this.fListener&&this.fModel.getModel().removeListener(this.fListener),this.fListener=new n,null===e)return void this._clearViews();const t=e.getMetaClass().getPropertyByName("auxViews");this.fListener.transactionCommitted=i=>{i.isChanged(e,t)&&this._updateViews()},this.fModel.getModel().addShallowListener(this.fListener),this._updateViews()},_clearViews:function(){const e=this.fViews;this.fViews=[],this._removeViews(e)},_removeViews:function(e){e.forEach(e=>{const t=this.fHandlers[e._name];t&&t.removeView(e)})},_addViews:function(e,t){e.forEach(e=>{const i=this.fHandlers[e.name];i&&i.addView(e,t)})},_updateViews:function(){const e=this.fCurrentProject;if(!e)return;const i=this.fViews,n=e.auxViews.getAllValues();this.fViews=n;const o=t.setDiff(i,n),r=t.setDiff(n,i);this._addViews(r,e),this._removeViews(o)},registerHandler:function(e){e&&(this.fHandlers[e.getType()]=e)},registerDocumentTypes:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(262),i(211),i(787),i(695),i(345)],o=i.dj.d(n,(e,t,i,n,o,r)=>{const a=r.default;return e(null,{fModel:null,fDialog:null,fProjectNodes:new Map,fCommandNodes:new Map,constructor:function(e){this.fModel=e,this.fListener=new a,this.fListener.transactionCommitted=e=>{e.processModified(e=>this._handleSelection(e),["project.view.core.InitView"]),e.processModified(e=>this._handleProjectSetup(e),["project.view.core.RunningProject"]),e.processModified(e=>this._handleCommandChange(e),["project.view.core.CommandView"])},this.fModel.getModel().addShallowListener(this.fListener),this.fModel.onStart(()=>{const e=this.fModel.getTopLevelObject("project.view.core.InitView");this._handleSelection(e)})},_handleSelection:function(e){const t=e.runningProjects;console.log(t),t.isEmpty()?this.fDialog&&!this.fDialog.keepOpen&&(this.fDialog.destroy(),this.fDialog=null):(this.fDialog&&this.fDialog.destroy(),this.fDialog=this._createDialog(t))},_handleProjectSetup:function(e){const t=this.fProjectNodes.get(e.uuid);t&&(t.render(e),e.commands.forEach(e=>{if(this.fCommandNodes.get(e.uuid))return;const n=document.createElement("div");n.classList.add("commandRunnerRow"),this._renderCommand(e,n),i.place(n,t.getCommandsAttachPoint()),this.fCommandNodes.set(e.uuid,n)}))},_handleCommandChange:function(e){const t=this.fCommandNodes.get(e.uuid);t&&this._renderCommand(e,t)},_renderCommand:function(e,t){if(i.empty(t),function(e){const n=document.createElement("p");return n.textContent=e,t.setAttribute("data-test-id",e),i.place(n,t),n}(e.description+" ").classList.add("projectIndentedLabel"),e.running){const e=document.createElement("mw-progress-indicator");e.type="spinner",e.size="xsmall",i.place(e,t)}if(e.complete){const n=i.create("img");n.classList.add("project_init_command_img"),e.error&&e.error.length>0?(this.fDialog.keepOpen=!0,n.classList.add("project_init_command_ERROR")):n.classList.add("project_init_command_COMPLETE"),i.place(n,t)}},_createDialog:function(e){const i=this._provideContentFor(e);return this._customize(t.createDialog({title:"Configuring Environment",className:"exampleDialog",dialogType:t.MODAL,height:"80%",closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,"data-test-id":"project-startup",content:i}))},_customize:function(e){return e.resizeTo({height:300,width:500}),e},_provideContentFor:function(e){this.fProjectNodes=new Map,this.fCollapsers=new Map,this.fCommandNodes=new Map;const t=document.createElement("div");return e.forEach(e=>{const n=document.createElement("div"),r=new o({title:"",content:n});i.place(r.domNode,t);i.empty(r.titleNode),r.titleNode.classList.add("dijitInline"),r.titleNode.classList.add("commandRunnerRow");const a=document.createElement("div");i.place(a,r.titleNode);const s={getCommandsAttachPoint:function(){return n},render:function(e){i.empty(a),a.classList.add("commandRunnerRow");const t=i.create("img");i.place(t,a),t.classList.add("project_init_command_img"),t.classList.add("project_init_command_ROOT");const n=document.createElement("p");i.place(n,a),n.classList.add("projectHalfIndentedLabel"),n.textContent=e.name,e.complete&&!e.errorDuringSetup&&(r.open&&r.toggle(),function(){const e=i.create("img");i.place(e,a),e.classList.add("project_init_command_img"),e.classList.add("project_init_command_COMPLETE")}())}};s.render(e),this.fProjectNodes.set(e.uuid,s)}),t}})},e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e){t.start();const i=i=>{t.publish(e,{message:i})};t.subscribe(e,i,this).then(e=>{i({data:"1"})})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8519)],o=i.dj.d(n,(function(e,t){return e(null,{createExtension:function(e){return new t(e)},provideToolstripEntryPoint:function(){return null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8520),i(758),i(467),i(226),i(601)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{fDesktop:null,fView:null,constructor:function(e){this.fDesktop=e,this._registerDocumentTypes(),this._tabGroup=this._createLabelsTabGroup()},getType:function(){return"labels"},addView:function(e,n){const o=new i(e.serverChannel,e.clientChannel),r=e.commandChannel;this.fView=new t({model:o,labelsCache:n.labels,commandChannel:r,desktopContainer:this.fDesktop,documentType:"labelsDocument",tabGroup:this._tabGroup}),this.fView.start(),o.start()},removeView:function(e){this.fView&&(this.fView.stop(),this.fView=null)},_registerDocumentTypes:function(){const e=new n({defaultRegion:"left",willReopen:!1,title:r.LabelsTab,tabGroupTags:["LabelsToolstrip"]});this.fDesktop.registerDocumentType("labelsDocument",e)},_createLabelsTabGroup:function(){this.fDesktop.addTabGroup("LabelsToolstrip",!0);return this.fDesktop.uiBuilder.create({type:o.TAB_GROUP,tag:"LabelsToolstrip"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(383),i(276),i(464),i(601),i(8525),i(8533),i(8534),i(8535)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(null,{fLabelsTree:null,fContentPane:null,constructor:function(e){const i=e.model,n=e.commandChannel;this.fDesktop=e.desktopContainer,this.documentType=e.documentType,this.fTabGroup=e.tabGroup,this.fLabelsTree=new r(e.labelsCache,n),this.fCommandExecutor=new t(n),this.fLabelSelectionHandler=new l(i),s.attachTo(this.fLabelsTree).sendingOn(this.fCommandExecutor),this.fLabelsToolstrip=new a(this.fDesktop,i,n,this.fLabelSelectionHandler,this.fTabGroup,e.labelsCache),this._layout()},start:function(){this.fLabelsTree.start(),this.fLabelSelectionHandler.start()},stop:function(){this.fDesktop.closeDocument(this.fContentPane),this.fLabelsTree.stop(),this.fLabelsToolstrip.stop()},_layout:function(){const e=new n({id:"labelView"});e.addWithProperties(this.fLabelsTree.getContentPane(),{region:"left",hasSplitter:!0}),e.startup();this.fContentPane=new i({documentType:this.documentType,title:o.LabelsTab,closable:!0,canClose:()=>new Promise((e,t)=>{this.fCommandExecutor.execute("closeLabelsView").then(t=>{e(!0)}).catch(e=>{t(new Error(e))})}),content:e.domNode}),this.fDesktop.addDocument(this.fContentPane),e.startup()}})}),e,t),e.exports=o},function(e,t,i){e.exports={AddCategory:"新規カテゴリ",AddLabel:"新規ラベル",AddingCategory:"新規ラベル カテゴリを作成しています。",AddingLabel:"新規ラベルを作成しています。",AttachLabel:"ラベルの追加",AttachingLabel:"ラベルを追加します",Category:"カテゴリ",CategorySection:"選択されたカテゴリ",DataType:"データ型",LabelDialogTsButton:"ラベル",LabelDialogTsButtonDescription:"プロジェクト ファイルにラベルを追加します",LabelSection:"選択されたラベル",LabelsTab:"ラベル",NameField:"名前",RemoveCategory:"カテゴリの削除",RemoveLabel:"ラベルの削除",RemovingCategory:"ラベル カテゴリを削除しています。",RemovingLabel:"ラベルの削除中",RootSection:"カテゴリ",SelectionSection:"選択",SingleValued:"単一値",UpdatingLabelsTitle:"ラベルの更新"}},function(e,t,i){e.exports={AddCategory:"새 범주",AddLabel:"새 레이블",AddingCategory:"새 레이블 범주를 만드는 중입니다.",AddingLabel:"새 레이블을 만드는 중입니다.",AttachLabel:"레이블 추가",AttachingLabel:"레이블 추가 중",Category:"범주",CategorySection:"선택한 범주",DataType:"데이터형",LabelDialogTsButton:"레이블",LabelDialogTsButtonDescription:"프로젝트 파일에 레이블을 추가합니다",LabelSection:"선택한 레이블",LabelsTab:"레이블",NameField:"이름",RemoveCategory:"범주 제거",RemoveLabel:"레이블 제거",RemovingCategory:"레이블 범주를 제거하는 중입니다.",RemovingLabel:"레이블 제거 중",RootSection:"범주",SelectionSection:"선택",SingleValued:"단일 값",UpdatingLabelsTitle:"레이블 업데이트 중"}},function(e,t,i){e.exports={AddCategory:"新建类别",AddLabel:"新建标签",AddingCategory:"创建新标签类别。",AddingLabel:"创建新标签。",AttachLabel:"添加标签",AttachingLabel:"添加标签",Category:"类别",CategorySection:"所选类别",DataType:"数据类型",LabelDialogTsButton:"标签",LabelDialogTsButtonDescription:"将标签添加到工程文件",LabelSection:"所选标签",LabelsTab:"标签",NameField:"名称",RemoveCategory:"删除类别",RemoveLabel:"删除标签",RemovingCategory:"删除标签类别。",RemovingLabel:"删除标签",RootSection:"类别",SelectionSection:"所选内容",SingleValued:"单值",UpdatingLabelsTitle:"更新标签"}},function(e,t,i){e.exports={root:{AddCategory:"New Category",AddLabel:"New Label",AddingCategory:"Creating new label category.",AddingLabel:"Creating new label.",AttachLabel:"Add Label",AttachingLabel:"Adding Label",Category:"Category",CategorySection:"Selected Category",DataType:"Data Type",LabelDialogTsButton:"Labels",LabelDialogTsButtonDescription:"Add labels to project files",LabelSection:"Selected Label",LabelsTab:"Labels",NameField:"Name",RemoveCategory:"Remove Category",RemoveLabel:"Remove Label",RemovingCategory:"Removing label category.",RemovingLabel:"Removing Label",RootSection:"Categories",SelectionSection:"Selection",SingleValued:"Single Valued",UpdatingLabelsTitle:"Updating Labels"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(345),i(350),i(315),i(317),i(288),i(531),i(276),i(8526),i(510)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){const d=t.default;return e(null,{fTree:null,fModel:null,fDataStore:null,fContentPane:null,fCommandChannel:null,fLastSelection:null,constructor:function(e,t){this.fLabelsCache=e,this.fModel=e.getModel(),this.fEntriesProperty=e.getMetaClass().getPropertyByName("entries"),this.fCommandChannel=t,this.fSelectionListeners=[];this.fDataStore=i.create([],Object.assign({},{type:n.TREE})),this.fTree=new a(this.fDataStore,{plugins:[a.PLUGINS.ContextMenu,a.PLUGINS.SingleNodeSelection],sorted:{}}),this.fContentPane=new s({class:"LabelsTree",region:"left",splitter:!0}),this.fContentPane.domNode.appendChild(this.fTree.domNode),this._handleModelChanges(),this._handleSelection(),this._addContextMenu()},getContentPane:function(){return this.fContentPane},start:function(){this.fTree.startup(),this.fTree.expandAll(),this._update()},stop:function(){this.fModel.removeListener(this.fListener)},_handleModelChanges:function(){const e=new d;return e.transactionCommitted=e=>{e.processModified(()=>{this._update()},this.fEntriesProperty)},this.fModel.addShallowListener(e),e},onSelection:function(e){this.fSelectionListeners.push(e)},_handleSelection:function(){this.fTree.on("selectionChanged",e=>{const t=e.nodeIds;this.fLastSelection=t&&t.length>0?t[0]:null;const i=Promise.all(t.map(e=>this._selectionInfoFromNode(e)));this._sendSelections(i)})},_addContextMenu:function(){const e=new l(this.fCommandChannel).provideItems();this.fTree.on("contextMenu",t=>{const i=t.target.nodeId;this._selectionInfoFromNode(i).then(i=>{const n=new o({tag:"labelMenu"});e.filter(e=>e.isApplicable(i)).forEach(e=>{const t=new r(e);t.domNode.addEventListener("click",()=>{e.execute(i)}),n.addChild(t)}),n.openMenu({x:t.left,y:t.top}),n.on("close",()=>{n.destroy(),this.fTree.focus()})})})},_sendSelections:function(e){this.fSelectionListeners.forEach(t=>{t(e)})},_selectionInfoFromNode:function(e){return new Promise(t=>{e||t(null),this.fDataStore.getParentNode({id:e}).then(i=>{if(null==i)return void t({categoryId:e});const n=i.node.id;t({categoryId:n,labelId:e})})})},_update:function(e){let t=[];const i=e=>0===e.length?null:e,n=new c;let o=!0;this.fLabelsCache.entries.forEach(e=>{const r="CATEGORY"===e.type?"/toolbox/matlab/project/views/labels_web/project-labels-ui/images/category_16.png":"/toolbox/matlab/project/views/labels_web/project-labels-ui/images/label_16.png";let a=e.uuid;t.push({id:a,label:e.name,iconUri:n.getRemoteWorkerUrl(r),parent:i(e.parentUuid)}),this.fLastSelection===a&&(o=!1)}),this.fDataStore.replaceAll(t,{sorted:{}}),o&&this.fLastSelection&&(this.fLastSelection=null,this._sendSelections(new Promise(e=>{e([])})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(601),i(2642),i(2643),i(2644),i(2645)],o=i.dj.d(n,(function(e,t,i,n,o){return class{constructor(e){this.fCommandChannel=e}provideItems(){return[this.provideDeleteLabelAction(),this.provideDeleteCategoryAction(),this.provideCreateLabelAction(),this.provideCreateCategoryAction()]}provideDeleteLabelAction(){return{id:"cmRemoveLabel",text:e.RemoveLabel,isApplicable:function(e){return e&&!!e.labelId},execute:e=>{new o(this.fCommandChannel).execute(e.categoryId,e.labelId)}}}provideDeleteCategoryAction(){return{id:"cmRemoveCategory",text:e.RemoveCategory,isApplicable:function(e){return e&&e.categoryId&&!e.labelId},execute:e=>{new i(this.fCommandChannel).execute(e.categoryId)}}}provideCreateLabelAction(){return{id:"cmCreateLabel",text:e.AddLabel,isApplicable:function(e){return e&&e.categoryId&&!e.labelId},execute:e=>{new n(this.fCommandChannel).execute(e.categoryId)}}}provideCreateCategoryAction(){return{id:"cmCreateCategory",text:e.AddCategory,isApplicable:function(e){return!e},execute:e=>{new t(this.fCommandChannel).execute()}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(262),i(273),i(601),i(269),i(258),i(286),i(308)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){const s=[{label:"None",value:"none"},{label:"String",value:"char"},{label:"Logical",value:"logical"}],l=class{constructor(e){this.fResolve=e,this.fCategory={DataType:s[0].value,SingleValued:!1},this.fDialog=null}close(){if(this.fDialog){const e=this.fDialog;this.fDialog=null,e.close()}}show(){this.fDialog||(this._createDialog(),this.fDialog.resizeTo({width:400,height:200}),this.fDialog.moveTo({}))}_createDialog(){const n=function(){const e=document.createElement("div");return e.classList.add("proj-data-form"),e}(),o=e.createDialog({title:i.AddCategory,className:"newCategoryDialog",dialogType:e.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,buttons:[t.OK,t.CANCEL],"data-test-id":"NewCategoryDialog",content:n});this._addCategoryNameInput(n),this._addSingleValuedInput(n),this._addDataTypeInput(n),o.addButtonEventListener(t.OK,()=>{},!0),o.addButtonEventListener(t.CANCEL,()=>{o.close()},!0),o.on("close",()=>{this.fDialog=null,this.fResolve(this.fCategory)}),this.fDialog=o}_addCategoryNameInput(e){const t=new n({text:i.NameField+":"});t.domNode.classList.add("proj-label"),t.placeAt(e);const r=new o({value:""});r.domNode.classList.add("NameInput"),r.placeAt(e),r.startup(),r.on("change",e=>{this.fCategory.Name=r.value})}_addSingleValuedInput(e){const t=new n({text:i.SingleValued+":"});t.domNode.classList.add("proj-label"),t.placeAt(e);const o=new a;o.domNode.classList.add("SingleValuedInput"),o.placeAt(e),o.startup(),o.on("change",e=>{this.fCategory.SingleValued=o.value})}_addDataTypeInput(e){const t=new n({text:i.DataType+":"});t.domNode.classList.add("proj-label"),t.placeAt(e);const o=new r({items:s,value:this.fCategory.DataType});o.placeAt(e),o.domNode.classList.add("DataTypeInput"),o.startup(),o.on("change",e=>{this.fCategory.DataType=e.mwEventData.newValue})}static requestNewCategorySpec(){return new Promise(e=>{new l(e).show()})}};return l}),e,t),e.exports=o},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"プロジェクトにファイルを追加できません。",AddToProject:"プロジェクトに追加",AddToProjectAction:"ファイルをプロジェクトに追加中",AddToProjectPath:"プロジェクトのパスに追加",AddToProjectPathAction:"選択したフォルダーをプロジェクト パスに追加中",Copy:"コピー",CreateShortcut:"ショートカットの作成",Cut:"切り取り",EditShortcut:"ショートカットの編集",ErrorDialogTitle:"エラー",Open:"開く",Paste:"貼り付け",ProjectBusyAction:"アクションの実行中",RemoveAtShutdown:"シャットダウンから削除",RemoveAtStartup:"起動から削除",RemoveFilesAlertDialogTitle:"プロジェクトからファイルを削除できません。",RemoveFromProject:"プロジェクトから削除",RemoveFromProjectPath:"プロジェクトのパスから削除",RemoveFromProjectPathAction:"選択したフォルダーをプロジェクト パスから削除中",RemoveShortcut:"ショートカットの削除",RunAtShutdown:"シャットダウン時に実行",RunAtStartup:"起動時に実行",SelectedFolders:"選択フォルダー",SelectedFoldersRecursive:"選択フォルダーとサブフォルダー",SettingRemoveAtShutdown:"シャットダウン アクション時の実行をクリアします。",SettingRemoveAtStartup:"起動アクション時の実行をクリアします。",SettingRunAtShutdown:"プロジェクトのシャットダウン時に実行するファイルを更新します。",SettingRunAtStartup:"プロジェクトの起動時に実行するファイルを更新します。"}},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"프로젝트에 파일을 추가할 수 없음.",AddToProject:"프로젝트에 추가",AddToProjectAction:"프로젝트에 파일을 추가하는 중",AddToProjectPath:"프로젝트 경로에 추가",AddToProjectPathAction:"프로젝트 경로에 선택한 폴더를 추가하는 중",Copy:"복사",CreateShortcut:"바로 가기 만들기",Cut:"잘라내기",EditShortcut:"바로 가기 편집",ErrorDialogTitle:"오류",Open:"열기",Paste:"붙여넣기",ProjectBusyAction:"동작을 수행하는 중",RemoveAtShutdown:"종료에서 제거",RemoveAtStartup:"시작에서 제거",RemoveFilesAlertDialogTitle:"프로젝트에서 파일을 제거할 수 없음.",RemoveFromProject:"프로젝트에서 제거",RemoveFromProjectPath:"프로젝트 경로에서 제거",RemoveFromProjectPathAction:"프로젝트 경로에서 선택한 폴더를 제거하는 중",RemoveShortcut:"바로 가기 제거",RunAtShutdown:"종료 시 실행",RunAtStartup:"시작 시 실행",SelectedFolders:"선택한 폴더",SelectedFoldersRecursive:"선택한 폴더 및 하위 폴더",SettingRemoveAtShutdown:"종료 동작 시 실행을 지우는 중입니다.",SettingRemoveAtStartup:"시작 동작 시 실행을 지우는 중입니다.",SettingRunAtShutdown:"프로젝트 종료 시 실행할 파일을 업데이트하는 중입니다.",SettingRunAtStartup:"프로젝트 시작 시 실행할 파일을 업데이트하는 중입니다."}},function(e,t,i){e.exports={AddFilesAlertDialogTitle:"无法将文件添加到工程。",AddToProject:"添加到工程",AddToProjectAction:"向工程添加文件",AddToProjectPath:"添加到工程路径",AddToProjectPathAction:"将所选文件夹添加到工程路径",Copy:"复制",CreateShortcut:"创建快捷方式",Cut:"剪切",EditShortcut:"编辑快捷方式",ErrorDialogTitle:"错误",Open:"打开",Paste:"粘贴",ProjectBusyAction:"执行操作",RemoveAtShutdown:"从关闭项中删除",RemoveAtStartup:"从启动项中删除",RemoveFilesAlertDialogTitle:"无法从工程中删除文件。",RemoveFromProject:"从工程中删除",RemoveFromProjectPath:"从工程路径中删除",RemoveFromProjectPathAction:"从工程路径中删除所选文件夹",RemoveShortcut:"删除快捷方式",RunAtShutdown:"关闭时运行",RunAtStartup:"启动时运行",SelectedFolders:"选定的文件夹",SelectedFoldersRecursive:"选定的文件夹和子文件夹",SettingRemoveAtShutdown:"清除关闭时运行操作。",SettingRemoveAtStartup:"清除启动时运行操作。",SettingRunAtShutdown:"将文件更新为在工程关闭时运行。",SettingRunAtStartup:"将文件更新为在工程启动时运行。"}},function(e,t,i){e.exports={root:{AddFilesAlertDialogTitle:"Unable to add file(s) to project.",AddToProject:"Add to Project",AddToProjectAction:"Adding files to the project",AddToProjectPath:"Add to Project Path",AddToProjectPathAction:"Adding selected folders to the project path",Copy:"Copy",CreateShortcut:"Create Shortcut",Cut:"Cut",EditShortcut:"Edit Shortcut",ErrorDialogTitle:"Error",Open:"Open",Paste:"Paste",ProjectBusyAction:"Performing Action",RemoveAtShutdown:"Remove from Shutdown",RemoveAtStartup:"Remove from Startup",RemoveFilesAlertDialogTitle:"Unable to remove file(s) from project.",RemoveFromProject:"Remove from Project",RemoveFromProjectPath:"Remove from Project Path",RemoveFromProjectPathAction:"Removing selected folders from the project path",RemoveShortcut:"Remove Shortcut",RunAtShutdown:"Run at Shutdown",RunAtStartup:"Run at Startup",SelectedFolders:"Selected Folders",SelectedFoldersRecursive:"Selected Folders and Subfolders",SettingRemoveAtShutdown:"Clearing run at shutdown action.",SettingRemoveAtStartup:"Clearing run at startup action.",SettingRunAtShutdown:"Updating file to run at project shutdown.",SettingRunAtStartup:"Updating file to run at project startup."},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(262),i(273),i(601),i(269),i(258)],o=i.dj.d(n,(function(e,t,i,n,o){const r=class{constructor(e){this.fResolve=e,this.fLabelName=null,this.fDialog=null}close(){if(this.fDialog){const e=this.fDialog;this.fDialog=null,e.close()}}show(){this.fDialog||(this.fDialog=this._createDialog())}_createDialog(){const n=function(){const e=document.createElement("div");return e.classList.add("proj-data-form"),e}(),o=e.createDialog({title:i.AddLabel,className:"newLabelDialog",dialogType:e.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,buttons:[t.OK,t.CANCEL],"data-test-id":"NewLabelDialog",content:n});this._addLabelNameInput(n),o.addButtonEventListener(t.CANCEL,()=>{this.fLabelName=null},!0),o.addButtonEventListener(t.OK,()=>{},!0),o.on("close",()=>{this.fDialog=null,this.fResolve(this.fLabelName)}),this.fDialog=o}_addLabelNameInput(e){new n({text:i.NameField+":"}).placeAt(e);const t=new o({value:""});t.placeAt(e),t.domNode.classList.add("NameInput"),t.startup(),t.on("change",e=>{this.fLabelName=t.value})}static requestNewLabelName(){return new Promise(e=>{new r(e).show()})}};return r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(601),i(226),i(292),i(510),i(2642),i(2643),i(2644),i(2645)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(null,{fModel:null,fCommandChannel:null,fContainer:null,fTab:null,fRootSection:null,fIconProvider:null,constructor:function(e,n,a,s,l,c){this.fIconProvider=new o("/toolbox/matlab/project/views/labels_web/project-labels-ui/images/"),this.fLabelsCache=c,this.fContainer=e,this.fModel=n,this.fTabGroup=l,this.fCommandChannel=a,this.fDynamicSections=[],s.onSelection(e=>{this._update(e)});const d=this.fContainer.uiBuilder,u=d.get(this.fTabGroup,"tag");this.fTabGroup||(this.fTabGroup=d.create({type:i.TAB_GROUP,tag:u}),this.fContainer.addTabGroup(u)),this.fTab=d.create({type:i.TAB,parentId:this.fTabGroup,title:t.LabelsTab});const h=d.create({type:i.SECTION,title:t.RootSection,parentId:this.fTab}),p=d.create({type:i.COLUMN,parentId:h}),f=d.create({type:i.PUSH_BUTTON,tag:"addCategory",text:t.AddCategory,parentId:p}),g=new r(this.fCommandChannel);d.addEventCallback(f,(function(e){g.execute()})),this.fIconProvider.loadIcon("add_category_24.png").then((function(e){d.set(f,"icon",e)})),d.selectFirstTabInTabGroup(u)},stop:function(){this.fContainer.uiBuilder.remove(this.fTab)},_update:function(e){const t=n.getInstance();if(this.fDynamicSections.forEach(e=>{t.remove(e)}),this.fDynamicSections=[],!e|0===e.length)return;const i=e[0];this._handleCategorySelection(i.categoryId,t),this._handleLabelSection(i,t)},_handleCategorySelection:function(e,n){const o=n.create({type:i.SECTION,title:t.CategorySection,parentId:this.fTab});this.fDynamicSections.push(o);const r=n.create({type:i.COLUMN,parentId:o}),l=this.fLabelsCache.entries.at(e);if(!l)return;const c=n.create({type:i.LABEL,tag:"selectedCategory",text:l.name,parentId:r});this.fIconProvider.loadIcon("category_16.png").then((function(e){n.set(c,"icon",e)}));const d=n.create({type:i.PUSH_BUTTON,tag:"removeCategory",text:t.RemoveCategory,parentId:r});this.fIconProvider.loadIcon("remove_16.png").then((function(e){n.set(d,"icon",e)}));const u=new a(this.fCommandChannel);n.addEventCallback(d,(function(t){u.execute(e)}));const h=n.create({type:i.PUSH_BUTTON,tag:"addLabel",text:t.AddLabel,parentId:r});this.fIconProvider.loadIcon("add_16.png").then((function(e){n.set(h,"icon",e)}));const p=new s(this.fCommandChannel);n.addEventCallback(h,(function(t){p.execute(e)}))},_handleLabelSection:function(e,n){const o=e.labelId;if(!o)return;const r=n.create({type:i.SECTION,title:t.LabelSection,parentId:this.fTab});this.fDynamicSections.push(r);const a=n.create({type:i.COLUMN,parentId:r}),s=this.fLabelsCache.entries.at(e.labelId);if(!s)return;const c=n.create({type:i.LABEL,tag:"selectedLabel",text:s.name,parentId:a});this.fIconProvider.loadIcon("label_16.png").then((function(e){n.set(c,"icon",e)}));const d=n.create({type:i.PUSH_BUTTON,tag:"removeLabel",text:t.RemoveLabel,parentId:a});this.fIconProvider.loadIcon("remove_16.png").then((function(e){n.set(d,"icon",e)}));const u=new l(this.fCommandChannel);n.addEventCallback(d,(function(t){u.execute(e.categoryId,o)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{attachTo:function(e){return{sendingOn:function(t){e.onSelection(e=>{e.then(e=>{t.execute("labelsSelected",JSON.stringify(e)).then(e=>{console.log(e)})})})}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(345)],o=i.dj.d(n,(function(e){const t=e.default;return class{constructor(e){this.fModel=e,this.fHandlers=[],this.fListener=new t,this.fListener.transactionCommitted=e=>{e.processModified(e=>{this._update(e)},["project.view.labels.SelectedLabelView"])},this.fModel.getModel().addShallowListener(this.fListener)}start(){this.fModel.onStart(()=>{this._update()})}onSelection(e){this.fHandlers.push(e)}_update(e){const t=this.fModel.getTopLevelObject("project.view.labels.SelectedLabelView");if(null===t)return;const i=t.selected.getAllValues().map(e=>({categoryId:e.categoryId,labelId:e.labelId}));this.fHandlers.forEach(e=>{e(i)})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8537)],o=i.dj.d(n,(function(e,t){return e(null,{createExtension:function(e){return new t(e)},provideToolstripEntryPoint:function(){return null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8538),i(758),i(467),i(226),i(1245)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e(null,{fDesktop:null,fView:null,constructor:function(e){this.fDesktop=e,this._registerDocumentTypes(),this._tabGroup=this._createReferencesTabGroup()},getType:function(){return"references"},addView:function(e){const n=new i(e.serverChannel,e.clientChannel),o=e.commandChannel;this.fView=new t({model:n,commandChannel:o,desktopContainer:this.fDesktop,documentType:"referencesDocument",tabGroup:this._tabGroup}),this.fView.start(),n.start()},removeView:function(e){this.fView&&(this.fView.stop(),this.fView=null)},_registerDocumentTypes:function(){var e=new n({defaultRegion:"left",willReopen:!1,title:r.References,tabGroupTags:["ReferencesToolstrip"]});this.fDesktop.registerDocumentType("referencesDocument",e)},_createReferencesTabGroup:function(){this.fDesktop.addTabGroup("ReferencesToolstrip",!0);return this.fDesktop.uiBuilder.create({type:o.TAB_GROUP,tag:"ReferencesToolstrip"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8539),i(8540),i(8552),i(8555),i(383),i(276),i(464),i(1245)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e(null,{fReferencesTree:null,fReferencesSelectionPanel:null,fReferencesToolStrip:null,fReferencesSelectedProjectFiles:null,fContentPane:null,constructor:function(e){const a=e.model,s=e.commandChannel;this.fDesktop=e.desktopContainer,this.documentType=e.documentType,this.tabGroup=e.tabGroup,this.fCommandExecutor=new r(s),this.referencesSelectionHandler=new o(a),this.fReferencesTree=new t(a,s);this.fReferencesSelectionPanel=new i(a,this.referencesSelectionHandler,!0),this.fReferencesToolstrip=new n(this.fDesktop,a,s,this.referencesSelectionHandler,this.tabGroup),this._layout()},start:function(){this.fReferencesTree.start()},stop:function(){this.fDesktop.closeDocument(this.fContentPane),this.fReferencesToolstrip.stop(),this.referencesSelectionHandler.removeListener()},_layout:function(){const e=new s({id:"referenceView"});e.addWithProperties(this.fReferencesTree.getContentPane(),{region:"left",hasSplitter:!0}),e.addWithProperties(this.fReferencesSelectionPanel.getContentPane(),{region:"center"}),e.startup();this.fContentPane=new a({documentType:this.documentType,title:l.References,closable:!0,canClose:()=>new Promise((e,t)=>{this.fCommandExecutor.execute("closeReferencesView").then(t=>{e()}).catch(e=>{t(e)}),t(new Error)}),content:e.domNode}),this.fDesktop.addDocument(this.fContentPane),e.startup()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(276),i(203),i(345),i(350),i(315),i(219),i(531),i(510)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){const l=i.default;return t(null,{fTree:null,fModel:null,fDataStore:null,fContentPane:null,fCommandChannel:null,fLastSelection:null,constructor:function(t,i){this.fModel=t,this.fCommandChannel=i;this.fDataStore=n.create([],Object.assign({},{type:o.TREE})),this.fTree=new a(this.fDataStore),this.fContentPane=new e({class:"ReferencesTree",region:"left",splitter:!0}),this.fContentPane.domNode.appendChild(this.fTree.domNode),this._handleModelChanges(),this.fModel.onStart(()=>{this._update()}),this._handleSelection()},getContentPane:function(){return this.fContentPane},start:function(){this.fTree.startup(),this.fTree.expandAll()},_handleModelChanges:function(){const e=new l;e.transactionCommitted=e=>{e.processModified(()=>{this._update()},["project.view.references.ReferenceView"])},this.fModel.getModel().addShallowListener(e)},_handleSelection:function(){this.fTree.on("selectionChanged",e=>{const t=e.nodeIds;let i=null;0!==t.length&&(i=t[0]),i?(this.fLastSelection=i,this.fDataStore.getParentNode({id:i}).then(e=>{if(null==e)return void this._sendSelection([""]);const t=e.node.id;this._sendSelection([t,i])})):this._sendSelection([""])})},_sendSelection:function(e){r.publish(this.fCommandChannel,{action:"referenceSelected",args:e})},_update:function(e){const t=this.fModel.getTopLevelObject("project.view.references.ReferenceView");if(!t)return;let i=[];const n=function(e){return 0===e.length?null:e},o=new s;let r=!0;t.references.forEach((function(e){const t="PROJECT_LOADED"===e.type?"/toolbox/matlab/project/views/references_web/project-references-ui/images/references_16.png":"/toolbox/matlab/project/views/references_web/project-references-ui/images/references_faded_16.png";let a=e.location;i.push({id:a,label:e.name,iconUri:o.getRemoteWorkerUrl(t),parent:n(e.parentLocation)}),this.fLastSelection===a&&(r=!1)})),this.fDataStore.replaceAll(i),r&&this.fLastSelection&&(this.fLastSelection=null,this._sendSelection([""]))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(1245),i(276),i(2639),i(2640),i(464),i(269),i(8545)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){function c(){const e=document.createElement("div");e.classList.add("NoRefSelectedPanel");const t=new s({text:i.SelectReference});return t.placeAt(e),t.startup(),e}return e(null,{fModel:null,fContentPane:null,fCleanUp:null,fShowFilesView:!1,constructor:function(e,t,i){this.fShowFilesView=i||!1,this.fModel=e,this.selectionHandler=t,this.fContentPane=new n({class:"ReferencesSelectionPanel"}),this._setPanel(c());const o=this._update.bind(this);this.selectionHandler.onSelectionChange(o),this.fModel.onStart(o),this.fCleanUp=[]},getContentPane:function(){return this.fContentPane},start:function(){},_cleanUpExisting:function(){const e=this.fCleanUp;this.fCleanUp=[],e.forEach((function(e){e()})),this._wipePanel()},_wipePanel:function(){this.fContentPane.destroyDescendants()},_setPanel:function(e){this.fContentPane.domNode.appendChild(e)},_createDetailsPanel:function(e){return new l(e)},_createFileView:function(e){document.createElement("div").classList.add("right");const i=e.reference.location,n=r(i),a=new o({channelName:e.fileViewChannel,commandChannel:e.commandChannel,scCache:e.scCache,mf0ProjectPathCache:e.projectPathCache,mf0LabelsCache:e.labels,mf0AttachedLabelsCache:e.attachedLabels,mf0ShortcutCache:e.shortcuts,pathService:n,path:i});return this.fCleanUp.push((function(){a.stop()})),t.add(a.getContentPane().domNode,"referenceFileView"),a},_update:function(e){if(this._cleanUpExisting(),!e)return void this._setPanel(c());if(!e.available)return void this._setPanel(function(e){const t=document.createElement("div");t.classList.add("ErrorReference");const i=new s({text:e.error});i.placeAt(t),i.startup();const n=new s({text:e.location});return n.placeAt(t),n.startup(),t}(e));const t=new a({id:"selectionPanel",height:"100%"});this.fCleanUp.push((function(){t.destroy()}));const i=this._createDetailsPanel({Name:e.reference.name,Location:e.reference.location,Description:e.description});if(t.addWithProperties(i,{region:"bottom",hasSplitter:!0}),this.fShowFilesView){const i=this._createFileView(e);t.addWithProperties(i.getContentPane(),{region:"center"})}t.placeAt(this.fContentPane.domNode),t.startup(),t.layout()}})}),e,t),e.exports=o},function(e,t,i){e.exports={Description:"説明",Location:"場所",Name:"名前",NoProjectLoaded:"プロジェクトが読み込まれていません。",NotDirectory:"パス ${0} はディレクトリではありません。",Reference:"参照",References:"参照",SelectReference:"参照を選択",TSBAddReference:"参照を\n追加",TSBAddReferenceDescription:"新しいプロジェクト参照を現在開いているプロジェクトに追加します",TSBOpenProject:"プロジェクトを開く",TSBOpenProjectDescription:"選択した参照プロジェクトを最上位プロジェクトとして開きます",TSBRemoveReference:"削除",TSBRemoveReferenceDescription:"選択した参照を最上位プロジェクトから削除します",TSButtonOpenReferences:"参照",TSButtonOpenReferencesDescription:"このプロジェクトがどのプロジェクトを参照するかを管理します",TSLSelected:"選択",TSSSelection:"選択"}},function(e,t,i){e.exports={Description:"설명",Location:"위치",Name:"이름",NoProjectLoaded:"불러온 프로젝트가 없습니다.",NotDirectory:"경로 ${0}은(는) 디렉터리가 아닙니다.",Reference:"참조",References:"참조",SelectReference:"참조 선택",TSBAddReference:"참조\n추가",TSBAddReferenceDescription:"현재 열려 있는 프로젝트에 새 프로젝트 참조를 추가합니다.",TSBOpenProject:"프로젝트 열기",TSBOpenProjectDescription:"선택한 참조 프로젝트를 최상위 프로젝트로 엽니다.",TSBRemoveReference:"제거",TSBRemoveReferenceDescription:"선택한 참조를 최상위 프로젝트에서 제거합니다.",TSButtonOpenReferences:"참조",TSButtonOpenReferencesDescription:"이 프로젝트가 참조하는 프로젝트를 관리합니다.",TSLSelected:"선택됨",TSSSelection:"선택"}},function(e,t,i){e.exports={Description:"说明",Location:"位置",Name:"名称",NoProjectLoaded:"未加载工程。",NotDirectory:"路径 ${0} 不是目录。",Reference:"参考",References:"引用",SelectReference:"选择引用",TSBAddReference:"添加\n引用",TSBAddReferenceDescription:"向当前打开的工程添加新的工程引用",TSBOpenProject:"打开工程",TSBOpenProjectDescription:"将所选引用工程作为顶层工程打开",TSBRemoveReference:"删除",TSBRemoveReferenceDescription:"从顶层工程中删除所选引用",TSButtonOpenReferences:"引用",TSButtonOpenReferencesDescription:"管理此工程引用的工程",TSLSelected:"选定",TSSSelection:"所选内容"}},function(e,t,i){e.exports={root:{Description:"Description",Location:"Location",Name:"Name",NoProjectLoaded:"No project loaded.",NotDirectory:"The path ${0} is not a directory.",Reference:"Reference",References:"References",SelectReference:"Select a reference",TSBAddReference:"Add\nReference",TSBAddReferenceDescription:"Add a new project reference to the currently open project",TSBOpenProject:"Open Project",TSBOpenProjectDescription:"Open the selected referenced project as a top-level project",TSBRemoveReference:"Remove",TSBRemoveReferenceDescription:"Remove the selected reference from the top-level project",TSButtonOpenReferences:"References",TSButtonOpenReferencesDescription:"Manage which projects this project references",TSLSelected:"Selected",TSSSelection:"SELECTION"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(216),i(215),i(8546),i(8551)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,t],{templateString:o,constructor:function(e){this.details=e},postCreate:function(){this.nameLabel.textContent=n.Name+":",this.locationLabel.textContent=n.Location+":",this.descriptionLabel.textContent=n.Description+":",this.name.textContent=this.details.Name,this.location.textContent=this.details.Location,this.description.textContent=this.details.Description}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8547),i(8548),i(8549),i(8550)],o=i.dj.d(n,(function(e,t){return t(e,"project-references-ui/l10n/gen/resources/MATLAB/project/nls/view_core",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={CloseProject:"プロジェクトを閉じる",CloseProjectWarningMessage:"現在のプロジェクトを閉じますか?",CloseProjectWarningTitle:"プロジェクトを閉じる",CurrentProject:"現在のプロジェクト",Description:"説明",Location:"場所",Name:"名前",Project:"プロジェクト",ProjectFileType:"プロジェクト",ProjectSelectionTitle:"プロジェクトの選択",TSButtonCloseProject:"プロジェクトを\n閉じる",TSButtonCloseProjectDescription:"現在のプロジェクトを閉じます",TSButtonDependencyViewer:"依存関係アナライザー",TSButtonDependencyViewerDescription:"依存関係を可視化し、必要なファイルを検索し、変更の影響を評価します",TSButtonOpenProject:"開く",TSButtonOpenProjectDescription:"プロジェクトを開く",TSButtonShareProject:"共有",TSButtonShareProjectDescription:"開いているプロジェクトを共有します",TSButtonUnsavedChanges:"未保存の変更",TSButtonUnsavedChangesDescription:"変更が保存されていないプロジェクト ファイルを管理します",TSCloseSection:"閉じる",TSListItemManageExportProfiles:"エクスポート プロファイルの管理...",TSSectionEnvironment:"環境",TSSectionFile:"ファイル",TSSectionShortcuts:"ショートカット",TSSectionTools:"ツール"}},function(e,t,i){e.exports={CloseProject:"프로젝트 닫기",CloseProjectWarningMessage:"현재 프로젝트를 닫으시겠습니까?",CloseProjectWarningTitle:"프로젝트 닫기",CurrentProject:"현재 프로젝트",Description:"설명",Location:"위치",Name:"이름",Project:"프로젝트",ProjectFileType:"프로젝트",ProjectSelectionTitle:"프로젝트 선택",TSButtonCloseProject:"프로젝트\n닫기",TSButtonCloseProjectDescription:"현재 프로젝트를 닫습니다",TSButtonDependencyViewer:"종속성 분석기",TSButtonDependencyViewerDescription:"종속성을 시각화하고, 필요한 파일을 찾고, 변경 사항이 미치는 영향을 평가합니다.",TSButtonOpenProject:"열기",TSButtonOpenProjectDescription:"프로젝트를 엽니다.",TSButtonShareProject:"공유",TSButtonShareProjectDescription:"열려 있는 프로젝트를 공유합니다.",TSButtonUnsavedChanges:"저장되지 않은 변경 내용",TSButtonUnsavedChangesDescription:"저장되지 않은 변경 내용이 있는 프로젝트 파일을 관리합니다.",TSCloseSection:"닫기",TSListItemManageExportProfiles:"내보내기 프로파일 관리...",TSSectionEnvironment:"환경",TSSectionFile:"파일",TSSectionShortcuts:"바로 가기",TSSectionTools:"툴"}},function(e,t,i){e.exports={CloseProject:"关闭工程",CloseProjectWarningMessage:"是否关闭当前工程?",CloseProjectWarningTitle:"关闭工程",CurrentProject:"当前工程",Description:"说明",Location:"位置",Name:"名称",Project:"工程",ProjectFileType:"工程",ProjectSelectionTitle:"选择工程",TSButtonCloseProject:"关闭\n工程",TSButtonCloseProjectDescription:"关闭当前工程",TSButtonDependencyViewer:"依存关系分析器",TSButtonDependencyViewerDescription:"可视化依存关系,查找所需文件并评估更改的影响",TSButtonOpenProject:"打开",TSButtonOpenProjectDescription:"打开工程",TSButtonShareProject:"共享",TSButtonShareProjectDescription:"共享打开的工程",TSButtonUnsavedChanges:"未保存的更改",TSButtonUnsavedChangesDescription:"管理具有未保存更改的工程文件",TSCloseSection:"关闭",TSListItemManageExportProfiles:"管理导出配置文件...",TSSectionEnvironment:"环境",TSSectionFile:"文件",TSSectionShortcuts:"快捷方式",TSSectionTools:"工具"}},function(e,t,i){e.exports={root:{CloseProject:"Close Project",CloseProjectWarningMessage:"Close the current project?",CloseProjectWarningTitle:"Close Project",CurrentProject:"Current Project",Description:"Description",Location:"Location",Name:"Name",Project:"Project",ProjectFileType:"Projects",ProjectSelectionTitle:"Select a Project",TSButtonCloseProject:"Close\nProject",TSButtonCloseProjectDescription:"Close the current project",TSButtonDependencyViewer:"Dependency Analyzer",TSButtonDependencyViewerDescription:"Visualize dependencies, find required files, and assess the impact of changes",TSButtonOpenProject:"Open",TSButtonOpenProjectDescription:"Open a project",TSButtonShareProject:"Share",TSButtonShareProjectDescription:"Share the open project",TSButtonUnsavedChanges:"Unsaved Changes",TSButtonUnsavedChangesDescription:"Manage project files with unsaved changes",TSCloseSection:"Close",TSListItemManageExportProfiles:"Manage Export Profiles...",TSSectionEnvironment:"Environment",TSSectionFile:"File",TSSectionShortcuts:"Shortcuts",TSSectionTools:"Tools"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t){e.exports='<div class="ReferenceProjectDetails">\n <div class="label" data-dojo-attach-point="nameLabel"></div>\n <div class="value projRefName" data-dojo-attach-point="name"></div>\n <div class="label" data-dojo-attach-point="locationLabel"></div>\n <div class="value projRefLocation" data-dojo-attach-point="location"></div>\n <div class="label" data-dojo-attach-point="descriptionLabel"></div>\n <div class="value projRefDescription" data-dojo-attach-point="description"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(1245),i(226),i(292),i(219),i(8553),i(8554),i(510),i(2628),i(2630),i(1016),i(383)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(null,{fModel:null,fCommandChannel:null,fContainer:null,fTab:null,fSelectionSection:null,fReferenceSection:null,fShortcutSection:null,fSourceControlSection:null,fIconProvider:null,constructor:function(e,t,i,n,o){this.fIconProvider=new s("/toolbox/matlab/project/views/references_web/project-references-ui/images/"),this.fContainer=e,this.fModel=t,this.fTabGroup=o,this.fCommandChannel=i,this.fCommandExecutor=new u(this.fCommandChannel);const r=this._update.bind(this);n.onSelectionChange(r),this.fModel.onStart(this._start.bind(this))},_start:function(){const e=this.fContainer.uiBuilder,n=e.get(this.fTabGroup,"tag");this.fTabGroup||(this.fTabGroup=e.create({type:i.TAB_GROUP,tag:n}),this.fContainer.addTabGroup(n)),this.fTab=e.create({type:i.TAB,parentId:this.fTabGroup,title:t.References});const o=e.create({type:i.SECTION,title:t.References,parentId:this.fTab}),a=e.create({type:i.COLUMN,parentId:o}),s=e.create({type:i.PUSH_BUTTON,tag:"addReferences",text:t.TSBAddReference,description:t.TSBAddReferenceDescription,parentId:a}),l=new r(this.fCommandChannel,this.fModel);e.addEventCallback(s,(function(e){l.addReference()})),this.fIconProvider.loadIcon("add_reference_24.png").then((function(t){e.set(s,"icon",t)})),e.selectFirstTabInTabGroup(n)},stop:function(){this.fContainer.uiBuilder.remove(this.fTab)},_update:function(e){const t=n.getInstance();this._updateSelectionSection(e,t),this._updateReferenceSection(e,t),this._updateShortcutSection(e,t),this._updateSourceControlSection(e,t)},_updateSelectionSection:function(e,n){if(this.fSelectionSection&&n.remove(this.fSelectionSection),!e)return void(this.fSelectionSection=null);this.fSelectionSection=n.create({type:i.SECTION,title:t.TSSSelection,parentId:this.fTab});const o=n.create({type:i.COLUMN,parentId:this.fSelectionSection});n.create({type:i.LABEL,tag:"Selected",text:t.TSLSelected,parentId:o});const r=n.create({type:i.LABEL,tag:"selectedProject",text:e.reference.name,parentId:o});this.fIconProvider.loadIcon("references_16.png").then((function(e){n.set(r,"icon",e)}))},_updateReferenceSection:function(e,n){if(this.fReferenceSection&&n.remove(this.fReferenceSection),!e)return void(this.fReferenceSection=null);this.fReferenceSection=n.create({type:i.SECTION,title:t.Reference,parentId:this.fTab});const o=n.create({type:i.COLUMN,parentId:this.fReferenceSection}),r=new d(n,this.fIconProvider,this.fReferenceSection),s=new u(this.fCommandChannel);r.makeButton(o,"open_reference_16.png","openProject",t.TSBOpenProject,t.TSBOpenProjectDescription,()=>s.execute("openReferencedProject",e.location));const l=n.create({type:i.PUSH_BUTTON,tag:"RemoveReference",text:t.TSBRemoveReference,description:t.TSBRemoveReferenceDescription,parentId:o});this.fIconProvider.loadIcon("remove_reference_16.png").then((function(e){n.set(l,"icon",e)}));const c=new a(this.fCommandChannel,this.fModel);n.addEventCallback(l,(function(t){c.removeReference(e.reference)}))},_updateShortcutSection:function(e,t){this.fShortcutSection&&t.remove(this.fShortcutSection.fSection),e&&e.available?(this.fShortcutSection=new l(this.fContainer,this.fTab,this.fModel),this.fShortcutSection.update(e)):this.fShortcutSection=null},_updateSourceControlSection:function(e,t){this.fSourceControlSection&&t.remove(this.fSourceControlSection.fSection),e&&e.available?(this.fSourceControlSection=new c(this.fContainer,this.fTab),this.fSourceControlSection.update(e)):this.fSourceControlSection=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(383),i(2634),i(241)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{fCommandChannel:null,fProjectRoot:null,constructor:function(e,t){this.fCommandChannel=e;const i=t.getTopLevelObject("project.view.references.ReferenceView");this.fProjectRoot=i.projectRoot},addReference:function(){(new i).getFile().then(e=>this._addReference(e)).catch(e=>console.log(e))},_addReference:function(e){if(!e)return;new t(this.fCommandChannel).execute("addReference",this.fProjectRoot,e).catch(e=>{n.displayAlertDialog(e)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(563),i(219)],o=i.dj.d(n,(function(e,t,i){return e(null,{fCommandChannel:null,fProjectRoot:null,constructor:function(e,t){this.fCommandChannel=e;const i=t.getTopLevelObject("project.view.references.ReferenceView");this.fProjectRoot=i.projectRoot},removeReference:function(e){const n={action:"removeReference",args:[e.uuid],id:t.uniqueId()};i.publish(this.fCommandChannel,n)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(345)],o=i.dj.d(n,(function(e,t){const i=t.default;return e(null,{constructor:function(e){this.fModel=e,this.fHandlers=[],this.fListener=new i;const t=this._handleSelection.bind(this);this.fListener.transactionCommitted=function(e){e.processModified(t,["project.view.references.SelectedReferenceView"])},this.fModel.getModel().addShallowListener(this.fListener)},onSelectionChange:function(e){this.fHandlers.push(e)},removeListener:function(){this.fHandlers=[]},_handleSelection:function(e){let t=null;if(e){const i=e.project;i.isEmpty()||(t=i.back())}this.fHandlers.forEach((function(e){e(t)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(209),i(369),i(646),i(8557),i(8558),i(8559),i(1651),i(8561),i(8562)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([],{constructor:function(e){e=e||{},this.guiDataStore=e.guiDataStore||new r,this.figureService=e.figureService,this.executionService=e.executionService,this.maxFiguresWarningOff=!1,this.manager=e.manager||n.getInstance("/jcp"),this.ORIGINATOR={guiDataService:this},e.messageService&&(e.messageService.registerTypeSerializer((function(e){return e instanceof a}),"imageStream",(function(e){return{channel:e.channel}})),e.messageService.registerTypeDeserializer("imageStream",(function(e){return new a(e)})),e.messageService.registerTypeSerializer((function(e){return e instanceof a.StreamImage}),"streamImage",(function(e){return e.image.src})),e.messageService.registerTypeDeserializer("streamImage",(function(e){return new a.StreamImage(e)})),e.messageService.registerTypeSerializer((function(e){return e instanceof s}),"mouseStream",(function(e){return{channel:e.channel}})),e.messageService.registerTypeDeserializer("mouseStream",(function(e){return new s(e)}))),this.dataServiceRegistry=this.registerHandlerService(),this.addManagerListeners()},start:function(){this.manager.setSyncEnabled(!0)},stop:function(){this.manager.setSyncEnabled(!1),this.manager.getRoot()&&this.manager.getRoot().destroy()},flush:function(){if(this.flushHandler)return this.flushHandler.flush();var e=new t;return e.resolve(),e.promise},addManagerListeners:function(){this.manager.addEventListener("rootSet",this.rootSetObserver,this),this.manager.addEventListener("rootUnset",this.rootUnsetObserver,this)},removeManagerListeners:function(){this.manager.removeEventListener("rootSet",this.rootSetObserver,this),this.manager.removeEventListener("rootUnset",this.rootUnsetObserver,this)},addNodeListeners:function(e){e.addEventListener("childAdded",this.childAddedObserver,this),e.addEventListener("childDestroyed",this.childDestroyedObserver,this),e.addEventListener("propertiesSet",this.propertySetObserver,this)},removeNodeListeners:function(e){e.removeEventListener("childAdded",this.childAddedObserver,this),e.removeEventListener("childDestroyed",this.childDestroyedObserver,this),e.removeEventListener("propertiesSet",this.propertySetObserver,this)},rootSetObserver:function(e){this.addNodeListeners(e.target),this.addGUIComponent(e,e.originator!==this.ORIGINATOR)},rootUnsetObserver:function(e){this.removeNodeListeners(e.target)},childAddedObserver:function(e){this.addNodeListeners(e.data.child),this.addGUIComponent(e,e.originator!==this.ORIGINATOR)},childDestroyedObserver:function(e){this.removeNodeListeners(e.data.child),this.destroyGUIComponent(e,e.originator!==this.ORIGINATOR)},propertySetObserver:function(e){this.updateGUIComponent(e,e.originator!==this.ORIGINATOR)},registerHandlerService:function(){this.handlerServiceMap||(this.handlerServiceMap={root:new d({manager:this.manager,guiDataService:this,figureService:this.figureService,originator:this.ORIGINATOR}),Canvas:new c({manager:this.manager,store:this.guiDataStore,figureService:this.figureService,originator:this.ORIGINATOR}),StreamCanvas:new c({manager:this.manager,store:this.guiDataStore,figureService:this.figureService,originator:this.ORIGINATOR})});var e=this;return{registerDataServiceHandler:function(t,i){t&&(e.handlerServiceMap[t]=i)},removeDataServiceHandler:function(t){t&&delete e.handlerServiceMap[t]},getHandler:function(t){if(t)return e.handlerServiceMap[t]||(e.handlerServiceMap[t]=new l({manager:e.manager,originator:e.ORIGINATOR})),e.handlerServiceMap[t]}}},addGUIComponent:function(e,t){var n=e.data.child||e.target;if(n.getType()){var o=this.guiDataStore.items[n.getId()];o&&this._removeItemRecursive(o.id,t);var r=this.dataServiceRegistry.getHandler(n.getType()).create(n);this.guiDataStore.newItem(r,t,e.data.index)}else i.log.error("Illegal Component Creation: Must provide id/parentId/Type")},updateGUIComponent:function(e,t){var i=e.target;if(i.getType()&&i.getId()){var n=this.guiDataStore.items[i.getId()];n&&this.dataServiceRegistry.getHandler(i.getType()).update(i,this.guiDataStore,n,Object.keys(e.data.newValues),t)}},destroyGUIComponent:function(e,t){var i=e.data.child;"GUIContainer"===i.getType()&&o.emptyEval(),this._removeItemRecursive(i.getId(),t)},_removeItemRecursive:function(e,t){var i=this.guiDataStore;this._removeChildren(e,t);var n=i.items[e];n&&i.deleteItem(n,t)},remove:function(e){},_removeChildren:function(e,t){var i,n;if(this.guiDataStore.items[e]){var o=this.guiDataStore.items[e]._children;for(i=o.length-1;i>=0;i-=1)n=o[i],this._removeChildren(n.id,t),this.guiDataStore.deleteItem(n,t)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2534),i(2535),i(229)],o=i.dj.d(n,(function(e,t,i,n,o){var r=e([],{_storeRef:"_S",_shouldSortItems:!1,constructor:function(e){e=e||{},this.items={},!0===e.sortItems&&(this._shouldSortItems=!0),e.items&&e.items.forEach((function(e){this.newItem(e)}),this)},_fetchItems:function(e,t){var n,o,r,a,s,l,c,d,u=[],h={};if(e.query)if((d=!!e.queryOptions&&e.queryOptions.ignoreCase)||1!==Object.keys(e.query).length||void 0===e.query.id||void 0===this.items[e.query.id]){for(o in e.query)e.query.hasOwnProperty(o)&&("string"==typeof(c=e.query[o])&&/[\*\?]+/.test(c)?h[o]=i.patternToRegExp(c,d):c instanceof RegExp&&(h[o]=c));for(l=(n=Object.keys(this.items)).length,r=0;r<l;r+=1){if(a=!0,null===(s=this.items[n[r]]))a=!1;else for(o in e.query)e.query.hasOwnProperty(o)&&(c=e.query[o],this._containsValue(s,o,c,h[o])||(a=!1));a&&u.push(s)}}else u.push(this.items[e.query.id]);else this.items&&Object.keys(this.items).forEach((function(e){null!==this.items[e]&&u.push(this.items[e])}),this);this._shouldSortItems&&u.sort((function(e,t){return e.id-t.id})),t(u,e)},getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Write":!0,"dojo.data.api.Notification":!0,"dojo.data.api.Identity":!0}},getAttributes:function(e){var t,i=[];for(t in e)e.hasOwnProperty(t)&&t!==this._storeRefPropName&&t!==this._loadedPropName&&t!==this._filePathPropName&&i.push(t);return i},isItem:function(e){return e&&e[this._storeRef]===this},isItemLoaded:function(e){return this.isItem(e)},loadItem:function(){},getValues:function(e,t){},getValue:function(e,t){return e.hasOwnProperty(t)?e[t]:void 0},hasAttribute:function(e,t){var i=this.getValue(e,t);return void 0!==i?[i]:[]},containsValue:function(e,t,n){var o;return"string"==typeof n&&(o=i.patternToRegExp(n,!1)),this._containsValue(e,t,n,o)},_containsValue:function(e,t,i,n){if(i===this.getValue(e,t))return!0;if(n)throw new Error("MOTW.mgg.utils.InMemoryStore: does not support regexp due to performance issues");return!1},setMultipleValues:function(e,t,i){var n=[];Object.keys(t).forEach((function(i){var o=e[i];o!==t[i]&&(e[i]=t[i],n.push([e,i,o,t[i]]))})),n.forEach((function(e){this.onSet.apply(this,e)}),this)},setValues:function(e,i,n,o){var r;if(!t.isString(i))throw new Error("MOTW.utils.InMemoryStore: invalid attribute");(r=e[i])!==n&&o&&(e[i]=n,this.onSet(e,i,r,n))},setValue:function(e,t,i,n){this.setValues(e,t,i,n)},newItem:function(e,t,i){return e[this._storeRef]=this,e.hasOwnProperty("id")||(e.id=o.generateUuid()),this.items[e.id]=e,e._children=[],e.hasOwnProperty("parentId")&&this.items[e.parentId]&&this.items[e.parentId]._children.splice(i,0,e),t&&this.onNew(e),e},deleteItem:function(e,t){var i=this.items[e.parentId];if(i){var n=i._children.indexOf(e);n>=0&&i._children.splice(n,1)}delete this.items[e.id],t&&this.onDelete(e)},getIdentity:function(e){return e.id},save:function(e){},revert:function(){return!1},isDirty:function(e){return!1},onNew:function(){},onDelete:function(){},onSet:function(){}});return t.extend(r,n),r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(221),i(1278),i(1705),i(219),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){this.performance=this.performance||{};var l,c=this.performance;c.now=c.now||c.webkitNow||c.msNow||c.mozNow||Date.now,l=function(e){this.image=l.getImageFromPool(),this.image.src=e},n("ie")||n("trident")?l.getImageFromPool=function(){return new Image}:(l.imagePool=new Array(50),l.nextIndex=0,l.getImageFromPool=function(){var e;return l.imagePool[l.nextIndex]?((e=l.imagePool[l.nextIndex]).onload=null,e.onerror=null,e.src=""):(e=new Image,l.imagePool[l.nextIndex]=e),l.nextIndex=(l.nextIndex+1)%l.imagePool.length,e});var d=e([],{constructor:function(){this._canvas=document.createElement("canvas"),this._context=this._canvas.getContext("2d",{alpha:!0}),this._updateQueue=[],this._frameTimes=[];for(var e=0;e<100;e+=1)this._frameTimes[e]=0;this._frameTimesIndex=0,this._frameTimes[this._frameTimesIndex]=c.now()},computeImageDifferences:function(e,t){return[{x:0,y:0,image:t}]},applyImageDifferences:function(e){var t,i=e.length,n=this;if(0!==i){var o=this._createQueuedDeferred();o.name="applyImageDifferences deferred";var a=[];for(t=0;t<i;t+=1)a.push(this._wrapImageInDeferred(e[t].image.image));var l=new r(a),c=n._updateQueue[n._updateQueue.length-2];return l.then((function(){n._updateQueue.indexOf(c)>=0?c.then((function(){n._applyLoadedImageDifferences(e,o)})):n._applyLoadedImageDifferences(e,o)}),(function(){s.log("rejecting deferred applyImageDifferences"),o.reject(),n._cancelQueuedDeferreds()})),o}},clearImage:function(){},setImage:function(e){var t=e.image,i=this._wrapImageInDeferred(t),n=this._createQueuedDeferred();n.name="updateImage deferred";var o=this;return i.then((function(){o._canvas.width=t.width,o._canvas.height=t.height,o._context.clearRect(0,0,t.width,t.height),o._context.drawImage(t,0,0,t.width,t.height),o._updateFPS(),o._cancelQueuedDeferreds(n),n.isCanceled()||n.resolve()}),(function(){n.isCanceled()||n.reject()})),n},_applyLoadedImageDifferences:function(e,t){var i;for(i=0;i<e.length;i+=1)this._context.clearRect(e[i].x,e[i].y,e[i].image.image.width,e[i].image.image.height),this._context.drawImage(e[i].image.image,e[i].x,e[i].y);this._updateFPS(),t.resolve()},_updateFPS:function(){if(location.search.indexOf("fps=on")>-1){var e,t=this._frameTimesIndex;this._frameTimesIndex=(this._frameTimesIndex+1)%100,this._frameTimes[this._frameTimesIndex]=c.now();for(var i=this._frameTimes[this._frameTimesIndex]-this._frameTimes[t],n=i,o=i,r=0;r<100;r+=1)if(r!=t&&r!=this._frameTimesIndex){var a=this._frameTimes[r],s=this._frameTimes[(r+1)%100];(e=s-a)>0&&s>0&&a>0&&(i+=e,e<n?n=e:e>o&&(o=e))}i/=99,this._context.beginPath(),this._context.clearRect(0,0,55,32),this._context.closePath(),this._context.fillText("mean: "+i.toFixed(1),0,10),this._context.fillText("min: "+n.toFixed(1),0,20),this._context.fillText("max: "+o.toFixed(1),0,30)}},_wrapImageInDeferred:function(e){var t=new o;t.name="wrapImage deferred";var i=function(){function i(){e.onload&&(t.resolve(),e.onload=null,e.onerror=null)}n("ie")||n("trident")?window.setImmediate?window.setImmediate(i):setTimeout(i,0):i()};return e.onload=i,e.onerror=function(){s.log("Error loading image"),t.reject(),e.onload=null,e.onerror=null},e.complete&&e.src.length>0&&i(),t},_createQueuedDeferred:function(){var e;e=new o;var i=t.hitch(this,this._removeDeferredFromQueue,e);return e.then(i,i),this._updateQueue.push(e),e},_removeDeferredFromQueue:function(e){var t=this._updateQueue.indexOf(e);t>=0&&this._updateQueue.splice(t,1)},_cancelQueuedDeferreds:function(e){for(;this._updateQueue&&this._updateQueue.length>0;){var t=this._updateQueue.shift();if(e&&t===e)return;t.cancel("Queued deferreds cancelled")}this._updateQueue=[]}}),u=e([],{_PERIODIC_READY_INTERVAL:15e3,constructor:function(e){this.channel=e.channel,this._imageDifferencer=new d,this._started=!1},start:function(){var e=this;this._started||(a.subscribe(this.channel+"/*",this._handleMessage,this),this._reconnect=i.after(a,"onReconnected",(function(){e._publish("/error")})),this._publish("/getFullUpdate"),this._resetPeriodicReady(),this._started=!0)},stop:function(){this._started&&(this._reconnect.remove(),a.unsubscribe(this.channel+"/*",this._handleMessage,this),clearTimeout(this._periodicReady),this._started=!1)},getCanvas:function(){return this._imageDifferencer._canvas},_handleMessage:function(e){if(this._resetPeriodicReady(),e.channel.indexOf("fullUpdate")>0)this._imageDifferencer.clearImage(),this._imageDifferencer.setImage(e.data),this._publish("/ready");else if(e.channel.indexOf("diff")>0){var t=this;this._imageDifferencer.applyImageDifferences(e.data).then((function(){t._publish("/ready")}),(function(){t._publish("/error")}))}},_publish:function(e,t){var i=this;if(void 0===t)t=0;else if(t>2e3)return void s.error("Unable to send image stream message, giving up!");a.publish(this.channel+e,"").then(void 0,(function(){setTimeout((function(){i._publish("/error",t+100)}),t)}))},_resetPeriodicReady:function(){this._periodicReady&&clearTimeout(this._periodicReady);var e=this;this._periodicReady=setTimeout((function(){e._periodicReady=!1,e._publish("/ready"),e._resetPeriodicReady()}),this._PERIODIC_READY_INTERVAL)}});return u.Deferred=o,u.DeferredList=r,u.StreamImage=l,u}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(221),i(219)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e){this.channel=e.channel,this.messageService=e.messageService||n.messageService},start:function(){this._started||(this.messageService.subscribe(this.channel+"/*",this._handleMessage,this),this.ready=!0,this._started=!0)},stop:function(){this._started&&(this.messageService.unsubscribe(this.channel+"/*",this._handleMessage,this),this._started=!1)},isStarted:function(){return this._started},pressed:function(e,t,i,n){this._queueEvent({type:"pressed",data:{x:e,y:t,buttons:i,modifiers:n}})},released:function(e,t,i,n){this._queueEvent({type:"released",data:{x:e,y:t,buttons:i,modifiers:n}})},moved:function(e,t,i,n){this._queueEvent({type:"moved",data:{x:e,y:t,buttons:i,modifiers:n}})},scroll:function(e,t,i){this._queueEvent({type:"scroll",data:{x:e,y:t,zoom:i}})},onCursor:function(e){},_queueEvent:function(e){this._event=e,"moved"===e.type?this._sendIfReady():this._send()},_sendIfReady:function(){this.ready&&this._send()},_send:function(){if(this._event&&this._started){this.messageService.publish(this.channel+"/"+this._event.type,this._event.data),this._event=null,this.ready=!1,clearTimeout(this.forceTimeout);var e=this;this.forceTimeout=setTimeout((function(){e.ready=!0,e.forceTimeout=null}),500)}},_handleMessage:function(e){e.channel.indexOf("ready")>0&&(this.ready=!0,this._sendIfReady()),e.data.cursor&&this.onCursor(e.data.cursor)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{create:function(e){},update:function(e,t,i,n){},handleEvent:function(e,t){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1651)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){e=e||{},this.manager=e.manager,this.figureService=e.figureService,this.eventObserver=this.mouseEventsObserver(),this.constants=this.getConstants(),this.store=e.store},create:function(e){var t=this.inherited(arguments);return e.addEventListener("peerEvent",this.peerEventObserver,this),t},remove:function(e){var t=this.inherited(arguments);return e.removeEventListener("peerEvent",this.peerEventObserver,this),t},getConstants:function(){return{AXES_THRESHOLD_X:5,AXES_THRESHOLD_Y:5,TIME_SPACING:100,OBSERVER_LIFETIME:800}},handleEvent:function(e,t){(t.target=e,"mouseUp"===t.type)?(this.eventObserver.dispatchAndClear(),this.dispatchPeerEvent(t),this.figureService&&(this.manager.getById(this.manager.getRoot().getProperty("selectedChild")).getProperty("isGui")||this.figureService.refresh())):"mouseMove"===t.type?this.eventObserver.processNewEvent(t):this.dispatchPeerEvent(t)},dispatchPeerEvent:function(e){if(this.manager.hasById(e.target)){var t=this.manager.getById(e.target);t.dispatchEvent("peerEvent",t,e,this.ORIGINATOR)}},mouseEventsObserver:function(){this.timeOut=null,this.oldestEvent=null,this.newEvent=null;var e=this;return{processNewEvent:function(t){e.newEvent=t,!0===e.eventObserver.shouldApplyRules()&&e.eventObserver.dispatchAndClear()},shouldApplyRules:function(){if(null===e.oldestEvent)e.oldestEvent=e.newEvent,clearTimeout(e.timeOut),e.timeOut=setTimeout((function(){e.eventObserver.dispatchAndClear()}),e.constants.OBSERVER_LIFETIME);else{var t=Math.abs(e.oldestEvent.x-e.newEvent.x),i=Math.abs(e.oldestEvent.y-e.newEvent.y),n=Math.abs(e.newEvent.timestamp-e.oldestEvent.timestamp);if((t>e.constants.AXES_THRESHOLD_X||i>e.constants.AXES_THRESHOLD_Y)&&n>e.constants.TIME_SPACING)return!0}return!1},dispatchAndClear:function(){var t=e.newEvent;t&&e.dispatchPeerEvent(t),void 0!==typeof e.timeOut&&clearTimeout(e.timeOut),e.oldestEvent=null,e.newEvent=null}}},peerEventObserver:function(e){this.onPeerEvent(e)},onPeerEvent:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1651)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){e=e||{},this.figureService=e.figureService,this.guiDataService=e.guiDataService,this.ORIGINATOR=e.originator},create:function(e){return e.addPeerEventListener("flush",this._handleFlush,this),this.inherited(arguments)},remove:function(e){return e.removePeerEventListener("flush",this._handleFlush,this),this.inherited(arguments)},_handleFlush:function(e){this.guiDataService.flush().then((function(){e.target.dispatchPeerEvent("flushResponse",e.target,{},this.ORIGINATOR)}))},update:function(e,t,i,n){var o=this.inherited(arguments);return n.indexOf("selectedChild")>=0&&(this.figureService&&this.figureService.refresh(),this.onSelectedChildChanged()),o},onSelectedChildChanged:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(302),i(212),i(231),i(217),i(227),i(279),i(209),i(646),i(2646),i(8564),i(8565),i(8566),i(760),i(8567),i(8568),i(2647),i(8569),i(8570),i(8571),i(8572),i(8573),i(8574),i(8576),i(8577),i(8578),i(8581),i(8585),i(2648),i(8586),i(8587),i(8588),i(8589),i(8590),i(8591),i(8593),i(8595),i(8599),i(8605),i(8609),i(8613),i(8614),i(8619),i(8620),i(8621),i(8623),i(8624),i(8625),i(8626),i(8633),i(2649),i(8635),i(2658),i(8636),i(8637),i(8638),i(8639)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R,k,F,B,H,V,j,U,W,G,z,q,K,X,Y,Q,$,J,Z,ee,te,ie){return Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),i=this,n=function(){},o=function(){return i.apply(this instanceof n&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return n.prototype=this.prototype,o.prototype=new n,o}),e([],{processingDelay:0,synchronous:!1,manualProcessing:!1,constructor:function(e){if(!(e=e||{}).guiDataService)throw new Error("The GUI Data Service service was not specified.");if(!e.layoutService)throw new Error("Layout service was not specified.");this._deferred=[],this.guiDataService=e.guiDataService,this.guiDataStore=e.guiDataService.guiDataStore,this.layoutService=e.layoutService,this.pathService=e.pathService,this.fileService=e.fileService,this.legacyFigureControlsManager=e.legacyFigureControlsManager;var i=this._create.bind(this);this.guiDataStore.fetch({query:{type:"GUIContainer"},onItem:i}),t.connect(this.guiDataStore,"onNew",this,this._create),t.connect(this.guiDataStore,"onSet",this,this._update),t.connect(this.guiDataStore,"onDelete",this,this._remove),this.widgetHandlerRegistry=this.WidgetHandlerRegistry()},flush:function(){try{this.processDeferred()}catch(e){}var e=new i;return setTimeout((function(){e.resolve()}),200),e.promise},WidgetHandlerRegistry:function(){var t=this,i={root:l,GUIContainer:c,DocumentContainer:d,TabContainer:b,ContentPane:y,MenuBar:w,Menu:I,PopupMenu:A,MenuItem:x,CheckBoxMenuItem:x,MJCheckBoxMenuItem:M,Separator:R,ContextMenuPanel:f,SingleClickPanel:g,Panel:p,LayoutPanel:h,ClosablePanel:u,ScrollPane:m,ClassificationLearnerModelListScrollPane:_,ScrollStrip:m,SplitPane:v,Canvas:P,StreamCanvas:O,IFrame:q,ToolBarContainer:C,ToolBar:T,Dropdown:k,Slider:F,ScrollBar:B,NumberSpinner:H,TextBox:V,MultiLineTextBox:j,SyntaxTextPane:j,Label:U,Button:Q,CheckBoxSplitterButton:Z,ToggleButton:$,DropdownButton:te,CheckBox:J,RadioButton:ee,PaletteButton:Q,ScrollStripButton:ie,Table:X,List:Y,Tree:E,TreeNode:S,FileChooser:G,PanelSeparator:W,ColorPickerMenuItem:D,DropdownPopup:L,DTTitleBar:z,Toolstrip:K};return{getHandler:function(n,o){var r,a;return n&&(t.legacyFigureControlsManager&&(r=t.legacyFigureControlsManager.findAncestorGuiContainer(o)),a=i[n]||"unknown",!r||"GUIContainer"!==n&&"ToolBarContainer"!==n||(a=e([a],{addChild:function(e,t){(!r.docked&&!l.dockAll||"MenuBar"!==e.componentData.type&&"ToolBar"!==e.componentData.type)&&this.inherited(arguments)}}))),a}}},_create:function(e){try{this._createWidget(e)}catch(e){s.log(e)}},_update:function(e,t,i,n){try{this._deferUpdate(e,t,i);var o=this.guiDataStore.items[e.parentId];o&&this._deferChildUpdated(o,e,t,i)}catch(e){s.log(e)}},_remove:function(e){try{var t=this.guiDataStore.items[e.parentId];t&&this._deferRemove(t,e)}catch(e){s.log(e)}},_createWidget:function(e){var t=this.guiDataStore.items[e.parentId];this._deferCreate(t,e),t&&this._deferAddChild(t,e)},_deferCreate:function(e,t){this._deferred.push({type:"create",parent:e,child:t}),this._scheduleProcess()},_deferAddChild:function(e,t){this._deferred.push({type:"append",parent:e,child:t}),this._scheduleProcess()},_deferUpdate:function(e,t,i){this._deferred.push({type:"update",item:e,attribute:t,oldValue:i}),this._scheduleProcess()},_deferChildUpdated:function(e,t,i,n){this._deferred.push({type:"childUpdated",parent:e,child:t,attribute:i,oldValue:n}),this._scheduleProcess()},_deferRemove:function(e,t){this._deferred.push({type:"destroy",parent:e,child:t}),this._scheduleProcess()},_scheduleProcess:function(){if(this.synchronous&&!this.manualProcessing)return this._processDeferredActions(this._deferred),void(this._deferred=[]);if(!this._deferTimeout&&!this.manualProcessing){var e=this;this._deferTimeout=setTimeout((function(){var t=e._deferred;e._deferred=[],e._processDeferredActions(t),e._deferTimeout=null}),this.processingDelay)}},processDeferred:function(){var e=this._deferred;this._deferred=[],this._processDeferredActions(e)},_processDeferredActions:function(e){e=this._filterDestroyedActions(e),e=this._filterRedundantUpdates(e),this._splitDeferredActionRuns(e).forEach(this._processDeferredActionRun,this)},_filterDestroyedActions:function(e){var t,i,n={},o={};for(t=e.length-1;t>=0;t-=1)"destroy"===(i=e[t]).type?o[i.child.id]=t:"create"===i.type&&void 0!==o[i.child.id]?(n[t]=!0,n[o[i.child.id]]=!0):("update"===i.type&&void 0!==o[i.item.id]||i.child&&void 0!==o[i.child.id])&&(n[t]=!0);return e.filter((function(e,t){return!n[t]}))},_filterRedundantUpdates:function(e){var t={},i={};return e.filter((function(e){return"update"===e.type?!(!0===t[e.item.id]||t[e.item.id]&&t[e.item.id][e.attribute])&&(t[e.item.id]=t[e.item.id]||{},t[e.item.id][e.attribute]=!0,!0):"childUpdated"===e.type?!(!0===i[e.child.id]||i[e.child.id]&&i[e.child.id][e.attribute])&&(i[e.child.id]=i[e.child.id]||{},i[e.child.id][e.attribute]=!0,!0):"create"!==e.type||(t[e.child.id]=!0,i[e.child.id]=!0,!0)}))},_splitDeferredActionRuns:function(e){var t=[],i=0,n=0;return e.forEach((function(o,r){var a=n;"create"===o.type||"append"===o.type?a=1:"destroy"===o.type&&(a=2),a!==n&&0!==n?(t.push(e.slice(i,r)),n=0,i=r):n=a})),t.push(e.slice(i,e.length)),t},_processDeferredActionRun:function(e){var t={create:[],update:[],append:[],childUpdated:[],destroy:[]};e.forEach((function(e){t[e.type].push(e)}),this),this._processDestroy(t.destroy),this._processCreate(t.create),this._processUpdate(t.update),this._processAppend(t.append),this._processChildUpdated(t.childUpdated)},_processCreate:function(e){var t,i;for(i=0;i<e.length;i+=1){t=e[i];try{var n=this.widgetHandlerRegistry.getHandler(t.child.type,t.child);t.child.widget=new n({widgetData:t.child,parentData:t.parent,peerNode:this.guiDataService.manager.getById(t.child.id),handler:this.guiDataService.registerHandlerService().getHandler(t.child.type),guiDataService:this.guiDataService,layoutService:this.layoutService,pathService:this.pathService,fileService:this.fileService})}catch(e){s.error("Error while trying to construct widget: ",t,e)}}},_processUpdate:function(e){var t,i,n=this.getRoot();for(i=0;i<e.length;i+=1){t=e[i];try{t.item.widget&&t.item.widget.update&&(t.item.widget.update(t.item,t.attribute,t.oldValue,t.item[t.attribute]),"GUIContainer"===t.item.type&&"position"===t.attribute&&t.item.widget.componentData.resizable&&this._isGUIContainerInsideVisibleArea(t.item.position,t.item.widget.layoutWidgetId)&&"function"==typeof n.sendBrowserResize&&n.sendBrowserResize()),"GUIContainer"===t.item.type&&"docked"===t.attribute&&this._updateToolstrip(t.item)}catch(e){s.error("Error while trying to notify parent widget of child updated: ",t,e)}}},_processAppend:function(e){var t=[],i=[],n={};e.forEach((function(e){n[e.parent.id]?t.push(e):i.push(e),n[e.child.id]=!0})),t.forEach(this._doAppend,this),i.forEach(this._doAppend,this)},_doAppend:function(e){try{var t=this._calculateIndex(e.parent,e.child);this._addToToolstrip(e.child),e.parent.widget.addChild(e.child.widget,t)}catch(t){s.error("Error while trying to add child widget: ",e,t)}},_processChildUpdated:function(e){var t,i;for(t=0;t<e.length;t+=1){i=e[t];try{i.child.widget&&i.parent.widget&&i.parent.widget.childUpdated&&i.parent.widget.childUpdated(i.child.widget,i.attribute,i.oldValue,i.child[i.attribute])}catch(e){s.error("Error while trying to notify parent widget of child updated: ",i,e)}}},_processDestroy:function(e){var t,i,n={};for(t=e.length-1;t>=0;t-=1){i=e[t];try{n[i.child.id]=!0,this._cleanupToolstrip(i.child),i.child.parentId&&!n[i.child.parentId]&&i.parent&&i.parent.widget&&i.parent.widget.removeChild(i.child.widget),"PopupMenu"===i.child.widget.componentData.type||i.child.widget._destroyed||i.child.widget.destroyRecursive(),delete i.child.widget}catch(e){s.error("Error while trying to destroy widget: ",i,e);try{i.child.widget.destroyRecursive()}catch(e){}}}},_calculateIndex:function(e,t){for(var i,n,o="GUIContainer"===e.type||"ToolBar"===e.type||"MenuBar"===e.type||"PopupMenu"===e.type||"ContextMenu"===e.type||"DropdownPopup"===e.type||"Menu"===e.type||"ToolBarContainer"===e.type||"LayoutPanel"===e.type||"TreeNode"===e.type||"Tree"===e.type||"TabContainer"===e.type||"DocumentContainer"===e.type,r=e._children.map((function(e){return e.id})),a=r.indexOf(t.id),s=e.widget.getChildren(),l=0,c=s.length;c-l>=1;)i=l+Math.floor((c-l)/2),n=r.indexOf(s[i].id.substring(4)),o&&a<n||!o&&a>n?c=i:l=i+1;return l},_updateToolstrip:function(e){var t=this,i=this._updateToolstripChild.bind(this,e);this.guiDataStore.fetch({query:{type:"MenuBar",parentId:e.id},onItem:i}),this.guiDataStore.fetch({query:{type:"ToolBar",parentId:e.id},onItem:i}),this.guiDataStore.fetch({query:{type:"ToolBarContainer",parentId:e.id},onItem:function(i){t._doAppend({parent:e,child:i}),t.guiDataStore.fetch({query:{type:"ToolBar",parentId:i.id},onItem:t._updateToolstripChild.bind(t,i)})}})},_updateToolstripChild:function(e,t){this._cleanupToolstrip(t),this._doAppend({parent:e,child:t})},_addToToolstrip:function(e){if(("ToolBar"===e.type||"MenuBar"===e.type)&&this.legacyFigureControlsManager){var t=this.legacyFigureControlsManager.findAncestorGuiContainer(e);t&&(t.docked||l.dockAll)&&(e.docked=!0,this.legacyFigureControlsManager.addWidgetToMap(e.widget,t.id),this.legacyFigureControlsManager.addWidgetToWrapperInToolstrip(e.widget))}},_cleanupToolstrip:function(e){("ToolBar"===e.type||"MenuBar"===e.type)&&e.docked&&this.legacyFigureControlsManager&&(this.legacyFigureControlsManager.removeWidgetFromMap(e.widget),e.parentId=null)},getRoot:function(){return l},_isGUIContainerInsideVisibleArea:function(e,t){var i=e.width,n=e.height,s=r.byId(t);if(s){var l=o.position(s),c=l.x,d=l.y,u=a.getBox(),h=u.w,p=u.h;return i+c>h||n+d>p}return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(211),i(213),i(217),i(231),i(384),i(1046),i(488),i(355),i(344),i(276),i(557)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=["","top","","right","","bottom","","left"],g=e([l],{_continueHorizontalSplitterDrag:function(e){this.inherited(arguments),this._continueSplitterDrag((function(e,t,i){return e._rowTop[t.splitterIndex+1]/i.h}))},_continueVerticalSplitterDrag:function(e){this.inherited(arguments),this._continueSplitterDrag((function(e,t,i){return e._columnLeft[t.splitterIndex+1]/i.w}))},_continueSplitterDrag:function(e){var t=e(this,this._splitterDragInfo,r.position(this.domNode));this.dataService.registerHandlerService().getHandler("DocumentContainer").setProperties(this.id,{splitterRatio:t},!0)},_isAnyInGroupClosable:function(e){return!1}});return e([p],{_renderComponent:function(e){var t=this,n=this.container;if(this.inherited(arguments),n){this._setArrangementClient(e.id,e.arrangement);for(var o=n._getTabContainers(),r=0;r<o.length;r++){var a="center";o.length>0&&(a=0===r?"left":"right"),this._addTabContainerWatch(a,o[r])}for(var s in n._properties)n._properties[s].setId="left";if(e.tabPosition1&&t.container._getTabContainers()[0].tabPosition!=e.tabPosition1&&t.container._getTabContainers()[0]._setTabPositionAttr(e.tabPosition1),e.tabPosition2&&0!=t.container._getArrangementAttr()&&t.container._getTabContainers()[1].tabPosition!=e.tabPosition2&&t.container._getTabContainers()[1]._setTabPositionAttr(e.tabPosition2),Object.keys(e.documents).length===t.container.getDocuments().length&&(0===t.container._getArrangementAttr()||!Object.values(e.documents).every((function(e){return"left"===e})))){var c=t.container.getDocuments(),d=e.documents.sort((function(e,t){return e.region!=t.region?"right"===e.region||"bottom"===e.region:e.order>t.order}));if(0!=t.container._getArrangementAttr())for(r=0;r<c.length;r++){var u=d.find((function(e){return c[r].title===e.title}));u&&u.region!=c[r].getParent().region&&t.container.moveDocument(c[r],u.region)}var h,p=-1;for(r=0;r<d.length;r++){var f="right"===d[r].region||"bottom"===d[r].region?1:0;p!=f&&(p=f,h=-1),h++;var m=t.container._getTabContainers()[f];if(d[r].title!=m._tabBar._buttonInfo[h].button.widget.title){var _=m._tabBar._buttonInfo.findIndex((function(e){return d[r].title===e.button.widget.title}));_>=0&&(t.container.clientOnly=!0,m._tabBar._changeButtonIndices(_,h,1),delete t.container.clientOnly)}}}if(t.container.arrangementChanged){delete t.container.arrangementChanged;for(c=t.container.getDocuments(),r=0;r<c.length;r++)e.documents.find((function(e){return e.isShowing&&c[r].title===e.title}))&&c[r].getParent()._getShowingChildAttr()!=c[r]&&c[r].getParent()._setShowingChildAttr(c[r])}}else{this.container=new g({id:e.id,groupTabsByType:!0,typeInfo:{left:{defaultRegion:"left",collectiveLabel:"Type 1s",willReopen:!0},right:{defaultRegion:"right",collectiveLabel:"Type 2s",willReopen:!0},center:{defaultRegion:"center",collectiveLabel:"Type 3s",willReopen:!0}},userTilingEnabled:!0,restrictToSingleSplit:!0,tileByDragEnabled:!1,showSingleDocumentTab:!0,animationEnabled:!1,dataService:this.dataService},this.domNode),n=this.container,this._setArrangementClient(e.id,e.arrangement);var v=n.closeAll;n.closeAll=function(){n.closeAllCount=n.getDocuments().length,v.bind(n)()},n.watch(l.ARRANGEMENT,(function(e,i,n){for(a in t._setArrangement(t.componentData.id,n),t.container._borderInfo)t.container._borderInfo[a].isCollapsible=!1})),i.before(n,"_setGridSizeAttr",(function(e){n.gridResizing=!0})),i.after(n,"_setGridSizeAttr",(function(e){return delete n.gridResizing,e})),i.before(n,"_endChildDrag",(function(e){var i=n._childDragInfo;if(i.startTile!==i.tile){var o,r=t.container._getTabContainers()[i.startTile].tablist._buttonInfo;if(o=0===i.startTile?1===t.container._getArrangementAttr()?"left":"top":2===t.container._getArrangementAttr()?"right":"bottom",1==r.length)t._setArrangement(0,0);else{for(var a,s=i.children[0].getParent().tablist._buttonInfo,l=0;l<s.length;l++)if(i.children[0].title===s[l].button.widget.title){a=l;break}var c={type:"moveDocument",region:o,tabPosition:a};t.dataService.registerHandlerService().getHandler("DocumentContainer").handleEvent(t.componentData._children[0].id,c)}}}))}n&&this._started&&(n.startup(),n.resize())},_setArrangementClient:function(e,t){this.container.get("arrangement")!=t&&(this.container._setArrangementAttr(t),this.container.arrangementChanged=!0)},_setArrangement:function(e,t){if(this.arrangement!=t){this.arrangement=t;var i="left";0===t&&(i="center"),this.dataService.registerHandlerService().getHandler("DocumentContainer").setProperties(this.componentData.id,{arrangement:t.toString(),region:i,newIndex:0},!0),this.container.arrangementChanged=!0}},_addTabContainerWatch:function(e,t){var n=this,o=n.dataService.registerHandlerService().getHandler("DocumentContainer");t.region=e,t.hasWatched||(t.hasWatched=!0,t.watch(c.TAB_POSITION,(function(e,i,r){var a={type:"tabPosition",region:t.region,tabPosition:f.indexOf(r)};o.handleEvent(n.componentData._children[0].id,a)})),t.watch(c.SHRINK_TABS_TO_FIT,(function(e,i,r){o.setProperties(n.componentData.id,{region:t.region,shrinkTabsToFit:r},!0)})),t._tabBar.tabContainer=t,i.after(t._tabBar,"_changeButtonIndices",(function(e,i){if(!n.container.clientOnly){var r={type:"orderTab",region:t.region,tabIndexFrom:i[0],tabIndexTo:i[1],selectedTitle:t.selectedChildWidget.title};o.handleEvent(n.componentData._children[0].id,r)}})))},removeChild:function(e){var t=this;t.container.removeChild(e),this.inherited(arguments)},addChild:function(e){var t=this,i=t.dataService.registerHandlerService().getHandler("DocumentContainer");e.onClose=function(){var e,n=this.getParent().region;"left"!==n&&"top"!==n||0!==this.parentData.arrangement||(n="center");var o=t.container.closeAllCount&&t.container.closeAllCount>0;if(!o&&this.getParent()._tabInfo.length>1){e=-1;for(var r=0;r<this.getParent().tablist._buttonInfo.length;r++)if(this.id===this.getParent().tablist._buttonInfo[r].properties.documentId){e=r;break}}else e=0,o||"right"!==n&&"bottom"!==n||(totalTabs=t.container._getTabContainers()[0].tablist._buttonInfo.length+t.container._getTabContainers()[1].tablist._buttonInfo.length,e=totalTabs-1),t.container.closeAllCount>0&&t.container.closeAllCount--,i.setProperties(t.componentData.id,{arrangement:"0"},!0),n="center";var a={type:"closeTab",region:n,index:e};return i.handleEvent(this.widgetId,a),!0};var n=e.widgetData.documentType,o=new s({title:e.title,description:e.description,documentId:e.id,closable:!0,documentType:n});t.container.getChildren().length>0&&(t.container._targetTile="right"===n||"bottom"===n?1:0),o.set(u.REGION,n),o.watch(u.IS_SELECTED,(function(n,o,r){var a=e;if("isSelected"===n&&o!=r&&r){var s=a.getParent()._tabBar._buttonInfo.findIndex((function(e){return a.title===e.button.widget.title})),l={type:"selectDocument",region:0===t.container._getArrangementAttr()?"center":a.widgetData.documentType,index:s};i.handleEvent(a.widgetId,l)}})),t.container.addWithProperties(e,o)},destroyRecursive:function(){var e=this.container;e.destroyRecursive(),e=null,this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(695),i(557)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{buildRendering:function(){this.containerNode=t.create("div"),this.inherited(arguments)},_getStyle:function(e){var t=this.inherited(arguments);return delete t.width,delete t.height,t},_renderComponent:function(e){if(this.inherited(arguments),this.titlePane)this.titlePane.set("title",e.title),this.titlePane.set("open",!1!==e.open);else{this.titlePane=new n({title:e.title,open:!1!==e.open,content:this.containerNode,duration:0}),this.own(this.titlePane),this.titlePane.placeAt(this.domNode);var t=this.dataService;this.titlePane.watch("open",(function(){t.registerHandlerService().getHandler("Button").setProperties(e.id,{open:this.get("open")})}))}i.set(this.containerNode,{position:"relative",width:this.componentData.position.width+"px",height:this.componentData.position.height+"px"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(760)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_getStyle:function(e){var t=this.inherited(arguments);return delete t.width,delete t.height,t},childStyleChanged:function(e,t){return delete t.left,delete t.top,"none"!==t.display&&(t.display="block"),t.position="relative",t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(217),i(246),i(204),i(557)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=window;return e([r],{_renderComponent:function(e){this.inherited(arguments)},postCreate:function(){this.own(t(this.domNode,"contextmenu",o.hitch(this,"onContextMenu")))},onContextMenu:function(e){n.stop(e);var t=i.position(this.domNode);a.contextMenuPosition={x:e.pageX,y:e.pageY},this.handler.handleEvent(this.componentData.id,{type:"contextMenu",x:e.pageX-t.x,y:e.pageY-t.y})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(557)],o=i.dj.d(n,(function(e,t,i){return e([i],{_renderComponent:function(e){this.inherited(arguments)},postCreate:function(){var e=this;this.own(t(this.domNode,"click",(function(){e.handler.handleEvent(e.componentData.id,{type:"clicked"})})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2647),i(217),i(227)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{childStyleChanged:function(e,t){if(n.byId(e.widget.id)){var o=i.position(e.widget.id),r=i.position(this.id);r.y>=o.y-2&&e.position.y<0&&(t.top="0px")}return this._childWidth=e.position.width,this._childHeight=e.position.height,this.defer(this.update,0),this.inherited(arguments)||t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(242),i(210),i(211),i(213),i(760)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([a],{constructor:function(){this._dragListeners=[]},_renderComponent:function(e){this.inherited(arguments),this.componentData=e,this.splitter||(this.splitter=o.create("div",{class:"splitter"},this.domNode,"first"),this.connect(this.splitter,"onmousedown",this._handleMouseDown)),n.toggle(this.splitter,"horizontal","horizontal"!==e.orientation),n.toggle(this.splitter,"vertical","horizontal"===e.orientation),"horizontal"===e.orientation?r.set(this.splitter,{position:"absolute",left:e.dividerLocation+"px",width:e.dividerSize+"px",height:"100%",backgroundColor:this.domNode.style.backgroundColor}):r.set(this.splitter,{position:"absolute",top:e.dividerLocation+"px",width:"100%",height:e.dividerSize+"px",backgroundColor:this.domNode.style.backgroundColor})},addChild:function(){this.inherited(arguments),this._updateCursor()},removeChild:function(){this.inherited(arguments),this._updateCursor()},_updateCursor:function(){var e="default";this.getChildren().length>1&&this.splitter&&(e="horizontal"===this.componentData.orientation?"col-resize":"row-resize"),r.set(this.splitter,"cursor",e)},_handleMouseDown:function(e){this.getChildren().length>1&&!this._dragging&&(this._startX=e.pageX,this._startY=e.pageY,r.set(this.splitter,{backgroundColor:"gray"}),this._dragListeners.push(this.connect(i.doc,"onmousemove",this._handleMouseMove)),this._dragListeners.push(this.connect(i.doc,"onmouseup",this._handleMouseUp)),this._dragListeners.push(this.connect(i.body(),"onselectstart",t,t.stop)),n.add(i.body(),"preventDragSelection"),this._dragging=!0)},_handleMouseMove:function(e){this.getChildren().length>1&&this._dragging&&(t.stop(e),"horizontal"===this.componentData.orientation?(this._newDividerLocation=this.componentData.dividerLocation+e.pageX-this._startX,r.set(this.splitter,"left",this._newDividerLocation+"px")):(this._newDividerLocation=this.componentData.dividerLocation+e.pageY-this._startY,r.set(this.splitter,"top",this._newDividerLocation+"px")))},_handleMouseUp:function(e){t.stop(e),this._dragListeners.forEach((function(e){this.disconnect(e)}),this),this._dragListeners=[],n.remove(i.body(),"preventDragSelection"),r.set(this.splitter,{backgroundColor:this.domNode.style.backgroundColor}),this._dragging=!1,this.getChildren().length>1?this.dataService.registerHandlerService().getHandler("SplitPane").handleEvent(this.widgetId,{type:"setDividerLocation",dividerLocation:this._newDividerLocation}):this.update()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1065),i(557)],o=i.dj.d(n,(function(e,t,i){return e([i],{_renderComponent:function(e){this.inherited(arguments),this.tabContainer||(this.tabContainer=new t({useMenu:!1,style:"width:100%; height:100%;"}),this.own(this.tabContainer),this.tabContainer.placeAt(this.domNode,"first"),this._started&&this.tabContainer.startup()),this.tabContainer.getChildren().indexOf(this.tabContainer.selectedChildWidget)!=e.selectedIndex&&this.setSelectedIndex(e.selectedIndex),this._started&&this.tabContainer.resize()},setSelectedIndex:function(e){var t=this.tabContainer.getChildren()[e];t&&this.tabContainer.selectChild(t)},_getStyle:function(e){var t=this.inherited(arguments);if(delete t.backgroundColor,e.borderType&&"LineBorder"===e.borderType){var i=e.borderColor.map((function(e){return Math.floor(255*e)}));t.borderColor="rgb("+i.join(",")+")",t.borderWidth=e.borderWidth+"px",t.borderStyle="solid"}return e.insets&&(t.paddingLeft=e.insets.left+"px",t.paddingRight=e.insets.right+"px",t.paddingTop=e.insets.top+"px",t.paddingBottom=e.insets.bottom+"px"),t},addChild:function(e,t){var i=this;e.onShow=function(){i._addingChild||this.dataService.registerHandlerService().getHandler("TabContainer").setProperties(i.componentData.id,{selectedIndex:i.tabContainer.getChildren().indexOf(this)},!0)},e.onClose=function(){var e={type:"closeTab",tabId:i.tabContainer.getChildren().indexOf(this)};return this.dataService.registerHandlerService().getHandler("ContentPane").handleEvent(this.widgetId,e),!1},this.componentData.selectedIndex===t&&e.set("selected",!0),this._addingChild=!0,this.tabContainer.addChild(e,t),this._addingChild=!1,this.tabContainer._started&&this.setSelectedIndex(this.componentData.selectedIndex)},removeChild:function(e){delete e.onShow,delete e.onClose,this.tabContainer.removeChild(e)},getChildren:function(){return this.tabContainer?this.tabContainer.getChildren():[]},startup:function(){if(this.inherited(arguments),!this.tabContainer._started){this.tabContainer.startup();var e=this.tabContainer.getChildren()[this.componentData.selectedIndex];e&&this.tabContainer._showChild(e),this.tabContainer.resize()}},resize:function(){return this.inherited(arguments),this.tabContainer.resize()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(247),i(760)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e){this.title=e.widgetData.title,this.tooltip=e.widgetData.tooltip,this.closable=!!e.widgetData.closable},_renderComponent:function(e){this.inherited(arguments),this.set("title",t.escapeHtml(e.title)),this.domNode.title="",this.set("tooltip",e.tooltip||""),this.set("closable",!!e.closable),this.set("disabled",!1===e.enabled)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(760)],o=i.dj.d(n,(function(e,t){return e([t],{_getStyle:function(e){var t=this.inherited(arguments);return delete t.position,delete t.width,delete t.height,t},_renderComponent:function(e){this.inherited(arguments),this._updateParent()},addChild:function(){this.inherited(arguments),this._updateParent()},removeChild:function(){this.inherited(arguments),this._updateParent()},_updateParent:function(){if(this.domNode){var e=this.getParent();e&&(e.hasCameraToolBar=this.componentData.hasCameraToolBar,e.childUpdated&&e.childUpdated(this))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8575),i(407),i(444),i(762)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n,o],{buildRendering:function(){this.inherited(arguments),this.delegate.placeAt(this.domNode)},destroyRecursive:function(){this.delegate.destroyRecursive(),this.inherited(arguments)},update:function(){this.inherited(arguments),this._renderComponent(this.componentData)},_getStyle:function(){var e=this.inherited(arguments);return delete e.position,delete e.width,e},_getClassState:function(e){var t=this.inherited(arguments);return t.mgg=!0,t},_constructDelegate:function(){var e=new t({});return e.childStyleChanged=function(e,t){return delete t.position,delete t.left,delete t.top,delete t.backgroundColor,"none"!==t.display&&(t.display="inline-block"),t.position="relative",t},e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i.dj.c(e.i),i(203),i(221),i(223),i(385),i(328),i(1719),i(216)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return i("dijit-legacy-requires")&&o(0,(function(){e(["dijit/ToolbarSeparator"])})),t("dijit.Toolbar",[r,s,a],{templateString:'<div class="dijit" role="toolbar" tabIndex="${tabIndex}" data-dojo-attach-point="containerNode"></div>',baseClass:"dijitToolbar",_onLeftArrow:function(){this.focusPrev()},_onRightArrow:function(){this.focusNext()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(224),i(246),i(204),i(210),i(206),i(231),i(760)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=window;return e([s],{handleOnScroll:function(){},buildRendering:function(){this.inherited(arguments),this.own(r(this.domNode,".treeNodeArrow:click",n.hitch(this,"onArrowClick"))),this.own(r(this.domNode,".treeNodeLabel:click",n.hitch(this,"onItemClick"))),this.own(r(this.domNode,".treeNodeLabel:contextmenu",n.hitch(this,"onItemContextMenu"))),this.own(r(this.domNode,".treeNodeLabel:dblclick",n.hitch(this,"onItemDblClick")))},onArrowClick:function(e){var t=a.getEnclosingWidget(e.target),i=this.componentData.expandedNodes||[],n=(i=i.slice(0,i.length)).indexOf(t.componentData.id);n>-1?i.splice(n,1):i.push(t.componentData.id),this.dataService.registerHandlerService().getHandler("Tree").setProperties(this.componentData.id,{expandedNodes:i})},onItemClick:function(e){var t=a.getEnclosingWidget(e.target);this.dataService.registerHandlerService().getHandler("Tree").setProperties(this.componentData.id,{selectedNodes:[t.componentData.id]})},onItemDblClick:function(e){var t=a.getEnclosingWidget(e.target);this.dataService.registerHandlerService().getHandler("Tree").setProperties(this.componentData.id,{selectedNodes:[t.componentData.id]}),this.dataService.registerHandlerService().getHandler("Tree").handleEvent(this.componentData.id,{type:"mouseDoubleClick",node:t.componentData.id})},onItemContextMenu:function(e){l.contextMenuPosition={x:e.pageX,y:e.pageY},i.stop(e);var t=a.getEnclosingWidget(e.target);this.dataService.registerHandlerService().getHandler("Tree").setProperties(this.componentData.id,{selectedNodes:[t.componentData.id]}),this.dataService.registerHandlerService().getHandler("Tree").handleEvent(this.componentData.id,{type:"contextMenu",node:t.componentData.id})},_renderComponent:function(e){this.inherited(arguments),o.toggle(this.domNode,"rootHidden",!e.rootVisible),this._updateChildren(e.selectedNodes),this._updateChildren(e.expandedNodes),this._updateChildren(this.oldSelected),this._updateChildren(this.oldExpanded),this.oldSelected=this.componentData.selectedNodes,this.oldExpanded=this.componentData.expandedNodes},_updateChildren:function(e){e&&e.forEach((function(e){var t=a.byId("mgg_"+e);t&&t.update()}))},childClassStateChanged:function(e,t){return t.expanded=this.componentData.expandedNodes&&this.componentData.expandedNodes.indexOf(e.id)>-1,t.selected=this.componentData.selectedNodes&&this.componentData.selectedNodes.indexOf(e.id)>-1,t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(210),i(1652),i(557),i(247)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o,n],{_renderComponent:function(e){if(this.inherited(arguments),this.item){if(this.oldLabel!==e.label){for(;this.itemData.firstChild;)this.itemData.removeChild(this.itemData.firstChild);this.itemData.appendChild(r.sanitizeHtmlFromJava(e.label)),this.oldLabel=e.label}}else this.item=t.create("div",{class:"treeNodeItem"},this.domNode,"first"),this.arrow=t.create("span",{class:"treeNodeArrow"},this.item,"first"),this.iconNode=t.create("span",{class:"treeNodeIcon"},this.item,"last"),this.itemData=t.create("span",{class:"treeNodeLabel"},this.item,"last"),this.itemData.appendChild(r.sanitizeHtmlFromJava(e.label)),this.containerNode=t.create("div",{class:"treeNodeContainer"},this.domNode,"last");this._createOrUpdateIcon(this.iconNode,e)},_getClassState:function(e){var t=this.inherited(arguments);return t.innerNode=!e.leaf,t},childClassStateChanged:function(e,t){return this.getParent&&this.getParent()&&this.getParent().childClassStateChanged&&(t=this.getParent().childClassStateChanged(e,t)),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8579),i(444),i(762)],o=i.dj.d(n,(function(e,t,i,n){return e([i,n],{buildRendering:function(){this.inherited(arguments),this.delegate.placeAt(this.domNode)},destroyRecursive:function(){this.delegate.destroyRecursive(),this.inherited(arguments)},update:function(){this.inherited(arguments),this._renderComponent(this.componentData)},_getStyle:function(){var e=this.inherited(arguments);return delete e.width,delete e.height,e},_getClassState:function(e){var t=this.inherited(arguments);return t.mgg=!0,t},_constructDelegate:function(){var e=new t({});return e._onContainerFocus=function(){},e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(1718),i(8580)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.MenuBar",i,{templateString:n,baseClass:"dijitMenuBar",popupDelay:0,_isMenuBar:!0,_orient:["below"],_moveToPopup:function(e){this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled&&this.onItemClick(this.focusedChild,e)},focusChild:function(e){this.inherited(arguments),this.activated&&e.popup&&!e.disabled&&this._openItemPopup(e,!0)},_onChildDeselect:function(e){this.currentPopupItem==e&&(this.currentPopupItem=null,e._closePopup()),this.inherited(arguments)},_onLeftArrow:function(){this.focusPrev()},_onRightArrow:function(){this.focusNext()},_onDownArrow:function(e){this._moveToPopup(e)},_onUpArrow:function(){},onItemClick:function(e,i){!e.popup||!e.popup.isShowingNow||/^key/.test(i.type)&&i.keyCode===t.DOWN_ARROW?this.inherited(arguments):(e.focusNode.focus(),this._cleanUp(!0))}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijitMenuBar dijitMenuPassive" data-dojo-attach-point="containerNode" role="menubar" tabIndex="${tabIndex}"\n\t ></div>\n'},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(8582),i(42),i(762)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e([n],{startup:function(){this.popup&&this.inherited(arguments)},_setLabelAttr:function(e){for(this._set("label",e),"object"==typeof e&&(e=e.label||e.value);this.containerNode.firstChild;)this.containerNode.removeChild(this.containerNode.firstChild);this.containerNode.appendChild(document.createTextNode(e))}}),s=e([o],{startup:function(){this.popup&&this.inherited(arguments)},_setLabelAttr:function(e){for(this._set("label",e),"object"==typeof e&&(e=e.label||e.value);this.containerNode.firstChild;)this.containerNode.removeChild(this.containerNode.firstChild);this.containerNode.appendChild(document.createTextNode(e))}});return e([r],{_constructDelegate:function(e,n,o){var r;r="MenuBar"===o.type?new a({id:e}):new s({id:e});var l=this.dataService;return"ContextMenu"!==this.parentData.type&&r.connect(r.domNode,"onclick",(function(){l.registerHandlerService().getHandler("Menu").handleEvent(n.id,{type:"buttonClicked"})})),r.connect(r.domNode,"onmouseenter",(function(){var e={type:"mouseEnter"},i=this.getParent(),o=i.getChildren();e.isShowingNow=i.isShowingNow||o.some((function(e){return t.getObject("popup.isShowingNow",!1,e)})),l.registerHandlerService().getHandler("Menu").handleEvent(n.id,e)})),r.connect(r.domNode,"onmouseleave",(function(){l.registerHandlerService().getHandler("Menu").handleEvent(n.id,{type:"mouseLeave"})})),r.addChild=function(e){this.popup=e;var t=this.getParent();!this._started&&t&&t._started&&this.startup(),this.arrowWrapper&&i.set(this.arrowWrapper,"visibility","")},r.removeChild=function(){this.popup=null},r}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(42),i(8583)],o=i.dj.d(n,(function(e,t,i){return e("dijit.PopupMenuBarItem",[t,i._MenuBarItemMixin],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(609),i(8584)],o=i.dj.d(n,(function(e,t,i){var n=e("dijit._MenuBarItemMixin",null,{templateString:i,_setIconClassAttr:null}),o=e("dijit.MenuBarItem",[t,n],{});return o._MenuBarItemMixin=n,o}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijitReset dijitInline dijitMenuItem dijitMenuItemLabel" data-dojo-attach-point="focusNode"\n\t \trole="menuitem" tabIndex="-1">\n\t<span data-dojo-attach-point="containerNode,textDirNode"></span>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(1048),i(762)],o=i.dj.d(n,(function(e,t,i){return e([i],{_constructDelegate:function(e,i){return new t({id:e,baseClass:"ww-contextMenu"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(56),i(762)],o=i.dj.d(n,(function(e,t,i){var n=e([t],{_setLabelAttr:function(e){for(this._set("label",e),"object"==typeof e&&(e=e.label||e.value);this.containerNode.firstChild;)this.containerNode.removeChild(this.containerNode.firstChild);this.containerNode.appendChild(document.createTextNode(e))}});return e([i],{_constructDelegate:function(e,t){var i=new n({id:e}),o=this.dataService;return i.connect(i,"_onClick",(function(){o.registerHandlerService().getHandler("Menu").handleEvent(t.id,{type:"buttonClicked"})})),i.connect(i,"_onHover",(function(){o.registerHandlerService().getHandler("Menu").handleEvent(t.id,{type:"hover"})})),i.connect(i,"_onUnhover",(function(){o.registerHandlerService().getHandler("Menu").handleEvent(t.id,{type:"unhover"})})),i},_updateDelegate:function(e,t){return(e=this.inherited(arguments)).set("checked",t.selected||!1),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(228),i(210),i(211),i(213),i(1049),i(557)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([s],{BUTTONS_PER_ROW:8,PADDING:6,_renderComponent:function(e){this.popup||(this.popup=new a,n.add(this.popup.domNode,"mgg_dropdownPopup")),this.popUpWidth=Math.ceil(e.itemWidth*this.BUTTONS_PER_ROW+this.PADDING*this.BUTTONS_PER_ROW),r.set(this.popup.domNode,"width",this.popUpWidth+"px"),this.popup.colorRow&&r.set(this.popup.colorRow,"width",this.popUpWidth+"px")},destroyRecursive:function(){this.popup&&this.popup.destroyRecursive(),this.inherited(arguments)},addChild:function(e,t){"Separator"!==e.componentData.type&&(e.delegate?this.popup.addChild(e.delegate,t):"ColorPickerMenuItem"===e.componentData.type?(this.popup.colorRow||(this.popup.colorRow=o.create("tr",null,this.popup.domNode.tBodies[0]),this.popup.colorRowTD=o.create("td",{colspan:4},this.popup.colorRow)),this.popup.colorRowTD.appendChild(e.domNode)):(e.componentData.type.indexOf("Button")>=0&&!e.componentData.background&&(e.componentData.background=[234,234,234]),this.popup.addChild(e,t)))},removeChild:function(e){"Separator"!==e.componentData.type&&(e.delegate?this.popup.removeChild(e.delegate):"ColorPickerMenuItem"===e.componentData.type?o.destroy(this.popup.colorRow):this.popup.removeChild(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(210),i(211),i(2649)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{_renderComponent:function(e){this.inherited(arguments),t.set(this.button.focusNode,"background","rgb("+e.background+")"),t.set(this.button.focusNode,"width",e.position.width*(e.iconWidth||20)+"px"),t.set(this.button.focusNode,"height",e.position.height*(e.iconHeight||20)+"px")},_getStyle:function(e){var t=void 0===e.visibility||e.visibility,i={visibility:t&&!e.passThrough?"visible":"hidden",pointerEvents:t&&!e.passThrough?"auto":"none"};return void 0!==e.filtered&&e.filtered?(i.display="none",i.visibility="hidden",i.width="0",i.height="0"):e.position.width>1&&(i.display="block"),i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(2648)],o=i.dj.d(n,(function(e,t,i){return e([i],{_updateDelegate:function(e,i){return(e=this.inherited(arguments)).set("enabled",i.enabled),i.selected?t.add(e.domNode,"checkedMenuItem"):t.remove(e.domNode,"checkedMenuItem"),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(242),i(211),i(217),i(228),i(206),i(557),i(2650),i(2651),i.dj.h("touch?41")],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){this.performance=this.performance||{};var h=this.performance;return h.now=h.now||h.webkitNow||h.msNow||h.mozNow||Date.now,e([l,c,d],{CURSOR_BUFFER_PIXELS:20,constructor:function(){this.inherited(arguments),this._shouldRequestCursor=!u,this._lastTime=h.now()},postCreate:function(){this.inherited(arguments),a.set(this.domNode,"tabindex","999"),this.setupMouseEvents(this.domNode),this.setupKeyEvents(this.domNode)},startup:function(){this.inherited(arguments);var e=this.dataService.registerHandlerService().getHandler("Canvas");this._shouldRequestCursor&&this.connect(e,"onPeerEvent",this.changeCursor),this.requestId=0},destroyRecursive:function(){this.cleanupMouseEvents(),this.cleanupKeyEvents(),this.inherited(arguments)},_getStyle:function(e){var t=this.inherited(arguments);return t.cursor=e.cursor,t},onDragStart:function(e){n.global.contextMenuPosition={x:e.pageX,y:e.pageY};var t=this.makeMouseEvent(e);t.type="mouseDown",this.dispatchMouseEvent(t),this._shouldRequestCursor&&this.defer((function(){this._requestCursor(this.getLastEvent())}),300)},onDragStop:function(e){var t=this.makeMouseEvent(e);t.type="mouseUp",this.dispatchMouseEvent(t),this.dragStopPosition={x:e.clientX,y:e.clientY}},onDrag:function(e){var t=this.makeMouseEvent(e);t.type="mouseMove",this.dispatchMouseEvent(t)},onMouseMove:function(e){var t=this;this.interval=clearTimeout(this.interval),this.dragStopPosition&&(Math.abs(this.dragStopPosition.x-e.clientX)>this.CURSOR_BUFFER_PIXELS||Math.abs(this.dragStopPosition.y-e.clientY)>this.CURSOR_BUFFER_PIXELS)&&(this.changeCursor(null,!0),this.dragStopPosition=null),this._shouldRequestCursor&&(this.makeMouseEvent(e),this.interval=setTimeout((function(){t._requestCursor(t.getLastEvent())}),200))},onMouseOut:function(e){this.changeCursor(null,!0)},onMouseClick:function(e){this.domNode.focus();var t=this.makeMouseEvent(e);t.type="mouseClick",this.dispatchMouseEvent(t)},onMouseDoubleClick:function(e){var t=this.makeMouseEvent(e);t.type="mouseDoubleClick",this.dispatchMouseEvent(t)},onKeyUp:function(e){e.preventDefault();var t=this.makeKeyEvent(e);t.type="keyUp",this.dispatchKeyEvent(t)},onKeyDown:function(e){e.preventDefault();var t=this.makeKeyEvent(e);t.type="keyDown",this.dispatchKeyEvent(t)},resize:function(){this.inherited(arguments),this.position=r.position(this.domNode)},dispatchMouseEvent:function(e){this.dataService.registerHandlerService().getHandler("Canvas").handleEvent(this.widgetId,e)},dispatchKeyEvent:function(e){this.dataService.registerHandlerService().getHandler("Canvas").handleEvent(this.widgetId,e)},_requestCursor:function(e){this.requestId+=1,e.type="onmousehover",e.requestId=this.requestId,this.dispatchMouseEvent(e)},changeCursor:function(e,t){if(t)this.domNode.style.cursor="default",this.requestId=0;else if("onchangecursor"===e.data.type&&e.data.responseId===this.requestId){var i=e.data.cursor.split(" ")[0].toLowerCase();"hand"===i?i="pointer":void 0!==e.data.customCursor&&(i="url(data:image/x-icon;base64,"+e.data.customCursor+") 8 8, auto"),this.domNode.style.cursor=i,this.requestId=0}},_renderComponent:function(e){e.componentIndex=0,this.inherited(arguments),this.canvas||(this.canvas=o.create("canvas"),this.own(s(this.canvas,"onselectstart",t.stop)),o.place(this.canvas,this.domNode,"first"),this.context=this.canvas.getContext("2d")),this.canvas.width=e.position.width+1,this.canvas.height=e.position.height+1,e.pixelDataSrc&&e.pixelDataSrc!==this.lastPixelDataSrc&&(e.pixelDataSrc instanceof Image?this.context.drawImage(e.pixelDataSrc,0,0):this.context.putImageData(e.pixelDataSrc,0,0,0,0,this.canvas.width-2,this.canvas.height-2),this.lastPixelDataSrc=e.pixelDataSrc,this._updateFPS())},_updateFPS:function(){if(location.search.indexOf("fps=on")>-1){var e=h.now(),t=e-this._lastTime;this._lastTime=e,this._averageFrameTime=.99*this._averageFrameTime+.01*t;var i=String(this._averageFrameTime);this.context.beginPath(),this.context.clearRect(0,0,this.context.measureText(i).width,10),this.context.closePath(),this.context.fillText(i,0,10)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(242),i(211),i(217),i(228),i(213),i(206),i(221),i(238),i(557),i(2650),i(2651),i(8592),i.dj.h("touch?41")],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([u,h,p],{postCreate:function(){this.inherited(arguments),a.set(this.domNode,"tabindex","999"),this.setupMouseEvents(this.domNode),this.setupKeyEvents(this.domNode)},startup:function(){this.inherited(arguments);var e=this.dataService.registerHandlerService().getHandler("StreamCanvas");this._shouldRequestCursor&&this.connect(e,"onPeerEvent",this.changeCursor),this.requestId=0},destroyRecursive:function(){this.componentData.imageStream&&this.componentData.imageStream.stop(),this.componentData.mouseStream&&this.componentData.mouseStream.stop(),this.cleanupMouseEvents(),this.cleanupKeyEvents(),this.inherited(arguments)},_getStyle:function(e){var t=this.inherited(arguments);return delete t.width,delete t.height,t.cursor=e.cursor,t},_checkAndGiveFocusBack:function(){d.curNode&&d.curNode.id!==this.domNode.id&&this.domNode.focus()},onDragStart:function(e){n.global.contextMenuPosition={x:e.pageX,y:e.pageY},this._checkAndGiveFocusBack(),this._dispatchMouseEvent("pressed",this.makeMouseEvent(e))},onDragStop:function(e){this._dispatchMouseEvent("released",this.makeMouseEvent(e))},onDrag:function(e){this._dispatchMouseEvent("moved",this.makeMouseEvent(e))},onMouseMove:function(e){this._dispatchMouseEvent("moved",this.makeMouseEvent(e))},onMouseWheel:function(e){this._checkAndGiveFocusBack(),this._dispatchMouseEvent("scroll",this.makeMouseEvent(e))},_dispatchMouseEvent:function(e,t){this.componentData.mouseStream&&("scroll"===e?this.componentData.mouseStream[e](t.x,t.y,t.wheelZoom):this.componentData.mouseStream[e](t.x,t.y,{left:t.left,middle:t.middle,right:t.right},{altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey}))},onMouseOut:function(e){this.changeCursor(null,!0)},onMouseClick:function(e){this.domNode.focus()},onKeyUp:function(e){e.preventDefault();var t=this.makeKeyEvent(e);t.type="keyUp",this.dispatchKeyEvent(t)},onKeyDown:function(e){e.preventDefault();var t=this.makeKeyEvent(e);t.type="keyDown",this.dispatchKeyEvent(t)},resize:function(){this.inherited(arguments),this.position=r.position(this.domNode)},dispatchKeyEvent:function(e){this.dataService.registerHandlerService().getHandler("StreamCanvas").handleEvent(this.widgetId,e)},changeCursor:function(e,t){if(t)s.set(this.domNode,"cursor","default"),this.requestId=0;else if(e.cursor||e.customCursor)if(e.customCursor&&(c("ie")||c("trident")||c("edge"))){var i=f.getCursor(e.customCursor);i?s.set(this.domNode,"cursor","url("+require.toUrl("MOTW/images/cursors/"+i+".cur")+"), default"):s.set(this.domNode,"cursor","default")}else void 0!==e.customCursor?s.set(this.domNode,"cursor","url(data:image/x-icon;base64,"+e.customCursor+") 8 8, auto"):s.set(this.domNode,"cursor",e.cursor)},_renderComponent:function(e){e.componentIndex=0,this.inherited(arguments),!this.canvas&&e.imageStream&&this._imageStream!==e.imageStream&&(this._imageStream&&this._imageStream.stop(),this._imageStream=e.imageStream,this._imageStream.start(),this.canvas=this._imageStream.getCanvas(),this.own(l(this.canvas,"onselectstart",t.stop)),o.place(this.canvas,this.domNode,"first")),e.mouseStream&&this._mouseStream!==e.mouseStream&&(this._mouseStream&&this._mouseStream.stop(),this._mouseStream=e.mouseStream,this._mouseStream.start(),this.connect(this._mouseStream,"onCursor","changeCursor"))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABISURBVHjaY2CAAGYGHIAJKv+fGb8C3GAwKGCEePAvzKN/0RUwM/8HUf9BSsEm/kdTwPKXGW4WVhNgBjEN5oBiIBTdo2AUIAMA+7cIMcb5GdsAAAAASUVORK5CYII=":"crosshair","iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABuSURBVHja7ZDbDoAwCENL+f9PBsR4yYydPvhqk2VLOLQDQ8v7BKZyB0H3aX2rEpogkMy+kzMDHA6UFuZl+zM8ZEQOaRJgVHdWVH6fQmbYOkc1s/arFDtXTZOEDWmSMLwQ48eyrg337TRR+PXrQQvtQSNLaogfUAAAAABJRU5ErkJggg==":"zoom_in","iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABfSURBVHjahY9LEsAgCENDuP+RgfJRa1dlRh1eElFBluYynFIFQdXTT0cMIeD0PJ3bgO1gW0RDlmRqHfF9GddOi1TCwv+ndEZqTiQrvVJynk5pIu8XhlxgyA2afECSeAAQih5WR5t6dQAAAABJRU5ErkJggg==":"zoom_in","iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABXSURBVHjafc/RFgARCATQmvn/T1ZbibUeNsdDFwOVKMYcsosUCMjdQ+ZYwu7Bq29RuvbWwQyG2ArDlblTf26pM5riBst1t4J+OrRE3y9MOWDKCSUfCPEHTmcRfIsAQI0AAAAASUVORK5CYII=":"zoom_out","iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABlSURBVHja7ZBRCsAwCEOjuf+Rq2uZsI5py/6bUhDyxKigi/03lCKhULL0FferCIav3PgFIXSJsjELqrCnXGcsU/7YIp0hg3BTG/1uKRCnVkkJmRZKCcGGmIOZvxu+1+mE4+hooQsMrxZxC2S9OgAAAABJRU5ErkJggg==":"zoom_out","iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABdSURBVHja7ZBRDsAgCEMr3P/IW0X8mQu4GX99iWJsqyjQEKQU1wtbvTKD2ERfBxbtOnDTThFGhq7bIAPDiOALjTLPTUYGvl+93oROWvAIJy0MSc0vpavc/KPD4QcVgzoSKLgjloEAAAAASUVORK5CYII=":"rotate","iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABqSURBVHja7ZBLDsAgCESBuf+RCYVomzZ8ku6djUaGNwLREkC1OIqksLhpYfBGL0pY/bBskOTPBmW6O2GYCWUEsBBWT4H9xWcqKyJeb5wmFed39E0Ix2j47FWbPQyKxZj0gBUxMYSOjn7oAqA1GScmRAr4AAAAAElFTkSuQmCC":"pan","iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABZSURBVHjaXU8BDgAhCML8/5MdJ9YuzbUFCDqBXe4HmAjCKRRFkGSplR9RsJXvCNXWA206KuIeJsSzpebz91TkUlis9HclZ0gZQi8LCdOim7iuYUe657kF+AC1khokWbrj+wAAAABJRU5ErkJggg==":"pan","iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABISURBVHjarY7BDgAgCEJR+/8/blbYyuoa4yLDp8AnmU13yZgdEkaFRsdpuDGoghUzsMwrRCTpffEMhFcWM34acN2FWMmdB9oAR8gPJpPE7LEAAAAASUVORK5CYII=":"pan_hold","iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABKSURBVHjanc5BEsAgCAPAxPz/yR0KWqxwlEt0B1CgFbXySdCARQ77wO+MNG1oInMi/imhiTdWickic9UpzN3I0wrv4XyE3F/Gdb3BbxQ6XKXeIAAAAABJRU5ErkJggg==":"polezero","iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABmSURBVHjaVY8LDsAgCENLt/sfmY4KamZihNfyMYhEHaJerhs0QBSMVhZJBUMWjOWqyrMd7ak8yAFFrCu2wy3Ln+7xYoiTvA7s6RtImtAlbpbbSW+hU2CgIw5I730t/OvA00P8oQYf2/kkK8ZcITwAAAAASUVORK5CYII=":"realpole","iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAADFBMVEUAAAAAAAD///8AAADFTF0nAAAAAnRSTlMAAHaTzTgAAABeSURBVHjaVY6BEoAgCEMZ9f+fzGIBRpyn8twmcAtTubbQCa8egGiuIiCJVhbZ1nGpbmsiPfN6AS+xcZVCmRXRxi95QP65QpUXo0zM4DEI8Dw2yH5L/P+eg9UnPWbWAw3HGzJe7w5tAAAAAElFTkSuQmCC":"realzero"};return{getCursor:function(t){return e[t]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(43),i(8594),i(762)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_constructDelegate:function(e,n,o){return"ToolBar"===o.type?new i({id:e}):new t({id:e})},_getStyle:function(e){var t=this.inherited(arguments);return delete t.position,delete t.left,delete t.top,delete t.backgroundColor,t.display="inline-block",t.verticalAlign="middle",t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(328),i(216)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.ToolbarSeparator",[i,n],{templateString:'<div class="dijitToolbarSeparator dijitInline" role="presentation"></div>',buildRendering:function(){this.inherited(arguments),t.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(210),i(211),i(217),i(213),i(428),i(279),i(221),i(206),i(609),i(2652),i(1145),i(444),i(1653),i(8598)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e([f],{startup:function(){this.inherited(arguments),this.dropdown&&this.dropdown.startup()},_renderComponent:function(e){this.inherited(arguments);var t=this.dataService,o=-1;if(e.maxHeight&&((o=parseFloat(e.maxHeight))<0||isNaN(o)||!isFinite(o))&&(o=-1),this.dropdown)this.dropdown._onChangeActive=!1,!0===e.editable?this._updateComboBox(e):this._updateSelect(e),this.dropdown.set("disabled",!e.enabled),this.dropdown._onChangeActive=!0;else{if(!0===e.editable)this.dropdown=new p({value:e.displayedValue,store:this._generateStore(e.options),searchAttr:"label",maxHeight:o,disabled:!e.enabled,onChange:function(i){t.registerHandlerService().getHandler("Dropdown").setProperties(e.id,{selectedIndex:e.options.indexOf(i),displayedValue:i})},style:{position:"absolute",width:"100%",height:"100%",margin:0},_startSearch:function(){this.inherited("_startSearch",arguments);var e=this.dropDown;this.own(i.after(this.dropDown,"onOpen",(function(){n.add(e.domNode.parentNode,"mgg")})))}}),this.dropdown._onChangeActive=!1,this._updateComboBox(e),this.dropdown._onChangeActive=!0;else{this.dropdown=new h({templateString:m,value:e.selectedIndex,maxHeight:o,disabled:!e.enabled,onChange:function(){e.selectedIndex=parseInt(this.value,10),t.registerHandlerService().getHandler("Dropdown").setProperties(e.id,{selectedIndex:e.selectedIndex})},style:{position:"absolute",width:"100%",height:"100%"},_getMenuItemForOption:function(t){var i;for(i=this.inherited("_getMenuItemForOption",arguments),n.add(i.domNode,"cell");i.domNode.firstChild;)i.domNode.removeChild(i.domNode.firstChild);var o=g[e.renderer.type].create(e.renderer,t.label);return i.domNode.appendChild(o),i},_setDisplay:function(t){t=t||"";for(var i=g[e.renderer.type].create(e.renderer,t);this.containerNode.firstChild;)this.containerNode.removeChild(this.containerNode.firstChild);this.containerNode.appendChild(i),n.add(this.containerNode,"cell"),this.focusNode.setAttribute("aria-valuetext",t.label)},_fillContent:function(){this.inherited("_fillContent",arguments);var e=this.dropDown;this.own(i.after(this.dropDown,"onOpen",(function(){n.add(e.domNode.parentNode,"mgg")})))}});var s=this.dropdown.toggleDropDown;this.dropdown.toggleDropDown=function(){var e,t,i,n,c,d=l.getBox().h,u=r.position(this.domNode),h={};t=u.y,i=u.h,this.isLoaded()?s.apply(this,arguments):(-1===o&&(t<Math.floor(d/2)?this.maxHeight=d-t-i:this.maxHeight=t),s.apply(this,arguments),-1===o&&(this.maxHeight=-1)),c=(e=r.position(this.dropDown._popupWrapper)).h,t+i!==(n=e.y)&&t!==n+c&&(t+c<d?a.set(this.dropDown._popupWrapper,{top:t+i+"px"}):(h=t-c<0&&0!=n?{top:"0px",height:t+"px",overflow:"auto"}:{top:t-c+"px"},a.set(this.dropDown._popupWrapper,h)))},this.dropdown._onChangeActive=!1,this._updateSelect(e),this.dropdown._onChangeActive=!0}this.own(this.dropdown),this.dropdown.placeAt(this.domNode,"last")}},_updateSelect:function(e){var t=this._generatePopupOptions(e.options);this.dropdown.getOptions().forEach((function(e){t.some((function(t){return t.value===e.value}))||this.dropdown.removeOption(e)}),this);var i=this.dropdown.getOptions();t.forEach((function(e){i.some((function(t){return e.value===t.value}))?this.dropdown.updateOption(e):this.dropdown.addOption(e)}),this),this.dropdown.set("value",e.selectedIndex)},_updateComboBox:function(e){if(this.dropdown.set("value",e.displayedValue),this.dropdown.store.setData(this._generatePopupOptions(e.options)),a.set(this.dropdown._buttonNode,{height:"100%"}),c("ie")||c("trident")){var t=this;this.ieFocusHandler=d(this.dropdown,"focus",(function(){setTimeout((function(){t.dropdown.focusNode.focus()}),250),t.ieFocusHandler.remove()})),this.own(this.ieFocusHandler)}},_generatePopupOptions:function(e){var t,i=[];for(t=0;t<e.length;t+=1)i.push({label:e[t],value:String(t)});return i},_generateStore:function(e){return new s({data:this._generatePopupOptions(e)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(306),i(214),i(2536),i(203),i(227),i(210),i(240),i(204),i(225),i(285),i(1481),i(1079)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return o("dijit.form._FormSelectWidget",h,{multiple:!1,options:null,store:null,_setStoreAttr:function(e){this._created&&this._deprecatedSetStore(e)},query:null,_setQueryAttr:function(e){this._created&&this._deprecatedSetStore(this.store,this.selectedValue,{query:e})},queryOptions:null,_setQueryOptionsAttr:function(e){this._created&&this._deprecatedSetStore(this.store,this.selectedValue,{queryOptions:e})},labelAttr:"",onFetch:null,sortByLabel:!0,loadChildrenOnOpen:!1,onLoadDeferred:null,getOptions:function(t){var i=this.options||[];return null==t?i:l.isArrayLike(t)?e.map(t,"return this.getOptions(item);",this):(l.isString(t)&&(t={value:t}),l.isObject(t)&&(e.some(i,(function(e,i){for(var n in t)if(!(n in e)||e[n]!=t[n])return!1;return t=i,!0}))||(t=-1)),t>=0&&t<i.length?i[t]:null)},addOption:function(t){e.forEach(l.isArrayLike(t)?t:[t],(function(e){e&&l.isObject(e)&&this.options.push(e)}),this),this._loadChildren()},removeOption:function(t){var i=this.getOptions(l.isArrayLike(t)?t:[t]);e.forEach(i,(function(t){t&&(this.options=e.filter(this.options,(function(e){return e.value!==t.value||e.label!==t.label})),this._removeOptionItem(t))}),this),this._loadChildren()},updateOption:function(t){e.forEach(l.isArrayLike(t)?t:[t],(function(e){var t,i=this.getOptions({value:e.value});if(i)for(t in e)i[t]=e[t]}),this),this._loadChildren()},setStore:function(e,t,i){s.deprecated(this.declaredClass+"::setStore(store, selectedValue, fetchArgs) is deprecated. Use set('query', fetchArgs.query), set('queryOptions', fetchArgs.queryOptions), set('store', store), or set('value', selectedValue) instead.","","2.0"),this._deprecatedSetStore(e,t,i)},_deprecatedSetStore:function(o,r,a){var s=this.store;if(a=a||{},s!==o){for(var c;c=this._notifyConnections.pop();)c.remove();o.get||(l.mixin(o,{_oldAPI:!0,get:function(e){var i=new t;return this.fetchItemByIdentity({identity:e,onItem:function(e){i.resolve(e)},onError:function(e){i.reject(e)}}),i.promise},query:function(e,i){var n=new t((function(){o.abort&&o.abort()}));n.total=new t;var o=this.fetch(l.mixin({query:e,onBegin:function(e){n.total.resolve(e)},onComplete:function(e){n.resolve(e)},onError:function(e){n.reject(e)}},i));return new u(n)}}),o.getFeatures()["dojo.data.api.Notification"]&&(this._notifyConnections=[i.after(o,"onNew",l.hitch(this,"_onNewItem"),!0),i.after(o,"onDelete",l.hitch(this,"_onDeleteItem"),!0),i.after(o,"onSet",l.hitch(this,"_onSetItem"),!0)])),this._set("store",o)}return this.options&&this.options.length&&this.removeOption(this.options),this._queryRes&&this._queryRes.close&&this._queryRes.close(),this._observeHandle&&this._observeHandle.remove&&(this._observeHandle.remove(),this._observeHandle=null),a.query&&this._set("query",a.query),a.queryOptions&&this._set("queryOptions",a.queryOptions),o&&o.query&&(this._loadingStore=!0,this.onLoadDeferred=new t,this._queryRes=o.query(this.query,this.queryOptions),d(this._queryRes,l.hitch(this,(function(t){if(this.sortByLabel&&!a.sort&&t.length)if(o.getValue)t.sort(n.createSortFunction([{attribute:o.getLabelAttributes(t[0])[0]}],o));else{var i=this.labelAttr;t.sort((function(e,t){return e[i]>t[i]?1:t[i]>e[i]?-1:0}))}a.onFetch&&(t=a.onFetch.call(this,t,a)),e.forEach(t,(function(e){this._addOptionForItem(e)}),this),this._queryRes.observe&&(this._observeHandle=this._queryRes.observe(l.hitch(this,(function(e,t,i){t==i?this._onSetItem(e):(-1!=t&&this._onDeleteItem(e),-1!=i&&this._onNewItem(e))})),!0)),this._loadingStore=!1,this.set("value","_pendingValue"in this?this._pendingValue:r),delete this._pendingValue,this.loadChildrenOnOpen?this._pseudoLoadChildren(t):this._loadChildren(),this.onLoadDeferred.resolve(!0),this.onSetStore()})),l.hitch(this,(function(e){console.error("dijit.form.Select: "+e.toString()),this.onLoadDeferred.reject(e)})))),s},_setValueAttr:function(t,i){if(this._onChangeActive||(i=null),this._loadingStore)this._pendingValue=t;else if(null!=t){t=l.isArrayLike(t)?e.map(t,(function(e){return l.isObject(e)?e:{value:e}})):l.isObject(t)?[t]:[{value:t}],t=e.filter(this.getOptions(t),(function(e){return e&&e.value}));var n=this.getOptions()||[];this.multiple||t[0]&&t[0].value||!n.length||(t[0]=n[0]),e.forEach(n,(function(i){i.selected=e.some(t,(function(e){return e.value===i.value}))}));var o=e.map(t,(function(e){return e.value}));if(void 0!==o&&void 0!==o[0]){var r=e.map(t,(function(e){return e.label}));this._setDisplay(this.multiple?r:r[0]),this.inherited(arguments,[this.multiple?o:o[0],i]),this._updateSelection()}}},_getDisplayedValueAttr:function(){var t=e.map([].concat(this.get("selectedOptions")),(function(e){return e&&"label"in e?e.label:e?e.value:null}),this);return this.multiple?t:t[0]},_setDisplayedValueAttr:function(e){this.set("value",this.getOptions("string"==typeof e?{label:e}:e))},_loadChildren:function(){this._loadingStore||(e.forEach(this._getChildren(),(function(e){e.destroyRecursive()})),e.forEach(this.options,this._addOptionItem,this),this._updateSelection())},_updateSelection:function(){this.focusedChild=null,this._set("value",this._getValueFromOpts());var t=[].concat(this.value);if(t&&t[0]){var i=this;e.forEach(this._getChildren(),(function(n){var o=e.some(t,(function(e){return n.option&&e===n.option.value}));o&&!i.multiple&&(i.focusedChild=n),a.toggle(n.domNode,this.baseClass.replace(/\s+|$/g,"SelectedOption "),o),n.domNode.setAttribute("aria-selected",o?"true":"false")}),this)}},_getValueFromOpts:function(){var t=this.getOptions()||[];if(!this.multiple&&t.length){var i=e.filter(t,(function(e){return e.selected}))[0];return i&&i.value?i.value:(t[0].selected=!0,t[0].value)}return this.multiple?e.map(e.filter(t,(function(e){return e.selected})),(function(e){return e.value}))||[]:""},_onNewItem:function(e,t){t&&t.parent||this._addOptionForItem(e)},_onDeleteItem:function(e){var t=this.store;this.removeOption({value:t.getIdentity(e)})},_onSetItem:function(e){this.updateOption(this._getOptionObjForItem(e))},_getOptionObjForItem:function(e){var t=this.store,i=this.labelAttr&&this.labelAttr in e?e[this.labelAttr]:t.getLabel(e);return{value:i?t.getIdentity(e):null,label:i,item:e}},_addOptionForItem:function(e){var t=this.store;if(!t.isItemLoaded||t.isItemLoaded(e)){var i=this._getOptionObjForItem(e);this.addOption(i)}else t.loadItem({item:e,onItem:function(e){this._addOptionForItem(e)},scope:this})},constructor:function(e){this._oValue=(e||{}).value||null,this._notifyConnections=[]},buildRendering:function(){this.inherited(arguments),r.setSelectable(this.focusNode,!1)},_fillContent:function(){this.options||(this.options=this.srcNodeRef?c("> *",this.srcNodeRef).map((function(e){return"separator"===e.getAttribute("type")?{value:"",label:"",selected:!1,disabled:!1}:{value:e.getAttribute("data-"+s._scopeName+"-value")||e.getAttribute("value"),label:String(e.innerHTML),selected:e.getAttribute("selected")||!1,disabled:e.getAttribute("disabled")||!1}}),this):[]),this.value?this.multiple&&"string"==typeof this.value&&this._set("value",this.value.split(",")):this._set("value",this._getValueFromOpts())},postCreate:function(){this.inherited(arguments),i.after(this,"onChange",l.hitch(this,"_updateSelection"));var e=this.store;e&&(e.getIdentity||e.getFeatures()["dojo.data.api.Identity"])&&(this.store=null,this._deprecatedSetStore(e,this._oValue,{query:this.query,queryOptions:this.queryOptions})),this._storeInitialized=!0},startup:function(){this._loadChildren(),this.inherited(arguments)},destroy:function(){for(var e;e=this._notifyConnections.pop();)e.remove();this._queryRes&&this._queryRes.close&&this._queryRes.close(),this._observeHandle&&this._observeHandle.remove&&(this._observeHandle.remove(),this._observeHandle=null),this.inherited(arguments)},_addOptionItem:function(){},_removeOptionItem:function(){},_setDisplay:function(){},_getChildren:function(){return[]},_getSelectedOptionsAttr:function(){return this.getOptions({selected:!0})},_pseudoLoadChildren:function(){},onSetStore:function(){}})}),e,t),e.exports=o},function(e,t){e.exports='<table class="dijit dijitReset dijitInline dijitLeft"\n\tdata-dojo-attach-point="_buttonNode,tableNode,focusNode,_popupStateNode" cellspacing=\'0\' cellpadding=\'0\'\n\trole="listbox" aria-haspopup="true"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonContents" role="presentation"\n\t\t\t><div class="dijitReset dijitInputField dijitButtonText" data-dojo-attach-point="containerNode,textDirNode" role="presentation"></div\n\t\t\t><div class="dijitReset dijitValidationContainer"\n\t\t\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t\t\t/></div\n\t\t\t><input type="hidden" ${!nameAttrSetting} data-dojo-attach-point="valueNode" value="${value}" aria-hidden="true"\n\t\t/></td\n\t\t><td class="dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer"\n\t\t\tdata-dojo-attach-point="titleNode" role="presentation"\n\t\t\t><input class="dijitReset dijitInputField dijitArrowButtonInner" value="&#9660; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t\t\t\t${_buttonInputDisabled}\n\t\t/></td\n\t></tr></tbody\n></table>\n'},function(e,t){e.exports='<div class="dijitReset dijitButtonNode mw_type_Select"\n data-dojo-attach-point="_buttonNode,tableNode,focusNode"\n role="combobox" aria-haspopup="true">\n\n <span class="dijitReset dijitButtonText"\n data-dojo-attach-point="containerNode,_popupStateNode"></span>\n\n <span class="dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton"\n data-dojo-attach-point="titleNode">\n\n <div class="dijitReset dijitArrowButtonInner"\n data-dojo-attach-point="arrowIcon"></div>\n <div class="dijitReset dijitArrowButtonChar">&#9660;</div>\n </span>\n\n <input type="hidden" ${!nameAttrSetting} data-dojo-attach-point="valueNode" value="${value}" aria-hidden="true">\n\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(206),i(8600),i(8602),i(8603),i(1132),i(1246),i(1654),i(444),i(8604)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){function h(e,t){return t?h(t,e%t):Math.abs(e)}return e([d],{_renderComponent:function(e){this.inherited(arguments),this.slider&&e.orientation!==this._lastOrientation&&(this.slider.destroyRecursive(),this.slider=null,this.rule=null,this.labels=null),this.slider?this._updateProperties(e):(this._lastTickCount=-1,this._lastLabels=[],this._lastLabelsObj=null,this._constructSlider(e),this._updateProperties(e),this.slider.placeAt(this.domNode,"last"))},_getStyle:function(e){var t=this.inherited(arguments);return t.position="absolute",t},_constructSlider:function(e){var i={id:e.id,showButtons:!1,intermediateChanges:!1,mouseDownIntermediateChanges:!0,style:"width:100%;height:100%;"};"horizontal"===e.orientation?(this.slider=new s(i),this.slider.own(n(this.slider.domNode,"mousedown",t.hitch(this.slider,"_onBarClick")))):(i.templateString=u,this.slider=new o(i)),this._lastOrientation=e.orientation;var r=this.dataService;this.slider.onChange=function(t){r.registerHandlerService().getHandler("Slider").setProperties(e.id,{value:t})},this.own(this.slider)},_updateProperties:function(e){this.slider.set("disabled",!1===e.enabled),this.slider.set("minimum",e.min),this.slider.set("maximum",e.max),this.slider.set("value",e.value),!0===e.snapToTicks?this.slider.set("discreteValues",(e.max-e.min)/e.minorTickSpacing+1):this.slider.set("discreteValues",e.max-e.min+1),"horizontal"===e.orientation?this._createOrUpdateRuleAndLabels(e,"height:5px;",l,c):this._createOrUpdateRuleAndLabels(e,"width:5px;",r,a)},_createOrUpdateRuleAndLabels:function(e,t,i,n){var o=(e.max-e.min)/(e.minorTickSpacing||1)+1;if(e.showTicks&&this._lastTickCount!==o&&(this.rule&&(this.slider.removeChild(this.labels),this.rule.destroyRecursive()),this.rule=new i({count:o,style:t}),this._lastTickCount=o,this.slider.addChild(this.rule,0)),this._lastLabelsObj!==e.labels){var r=this._generateTickLabels(e);e.showLabels&&r.length>0&&this._lastLabels.join(",")!==r.join(",")&&(this.labels&&(this.slider.removeChild(this.labels),this.labels.destroyRecursive()),this.labels=new n({labels:r}),this._lastLabels=r,this.slider.addChild(this.labels,1)),this._lastLabelsObj=e.labels}},_generateTickLabels:function(e){var t=[];if(e.labels){var i=[];Object.keys(e.labels).forEach((function(t){var n=parseInt(t,10)-e.min;n>0&&i.push(n)}));var n,o=function(e){if(!e.length)return 0;var t,i=e[0];for(t=1;t<e.length;t+=1)i=h(i,e[t]);return i}(i);if(o>0)for(n=0;n<=e.max-e.min;n+=o)t.push(e.labels[n+e.min]||"")}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1132),i(8601)],o=i.dj.d(n,(function(e,t,i){return e("dijit.form.VerticalSlider",t,{templateString:i,_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:!0,_isReversed:function(){return this._descending}})}),e,t),e.exports=o},function(e,t){e.exports='<table class="dijit dijitReset dijitSlider dijitSliderV" cellspacing="0" cellpadding="0" border="0" rules="none" data-dojo-attach-event="onkeydown:_onKeyDown,onkeyup:_onKeyUp"\n\trole="presentation"\n\t><tr class="dijitReset"\n\t\t><td class="dijitReset"></td\n\t\t><td class="dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV"\n\t\t\t><div class="dijitSliderIncrementIconV" style="display:none" data-dojo-attach-point="decrementButton"><span class="dijitSliderButtonInner">+</span></div\n\t\t></td\n\t\t><td class="dijitReset"></td\n\t></tr\n\t><tr class="dijitReset"\n\t\t><td class="dijitReset"></td\n\t\t><td class="dijitReset"\n\t\t\t><center><div class="dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper" data-dojo-attach-event="press:_onClkIncBumper"></div></center\n\t\t></td\n\t\t><td class="dijitReset"></td\n\t></tr\n\t><tr class="dijitReset"\n\t\t><td data-dojo-attach-point="leftDecoration" class="dijitReset dijitSliderDecoration dijitSliderDecorationL dijitSliderDecorationV"></td\n\t\t><td class="dijitReset dijitSliderDecorationC" style="height:100%;"\n\t\t\t><input data-dojo-attach-point="valueNode" type="hidden" ${!nameAttrSetting}\n\t\t\t/><center class="dijitReset dijitSliderBarContainerV" role="presentation" data-dojo-attach-point="sliderBarContainer"\n\t\t\t\t><div role="presentation" data-dojo-attach-point="remainingBar" class="dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV" data-dojo-attach-event="press:_onBarClick">\x3c!--#5629--\x3e</div\n\t\t\t\t><div role="presentation" data-dojo-attach-point="progressBar" class="dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV" data-dojo-attach-event="press:_onBarClick"\n\t\t\t\t\t><div class="dijitSliderMoveable dijitSliderMoveableV" style="vertical-align:top;"\n\t\t\t\t\t\t><div data-dojo-attach-point="sliderHandle,focusNode" class="dijitSliderImageHandle dijitSliderImageHandleV" data-dojo-attach-event="press:_onHandleClick" role="slider"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t></center\n\t\t></td\n\t\t><td data-dojo-attach-point="containerNode,rightDecoration" class="dijitReset dijitSliderDecoration dijitSliderDecorationR dijitSliderDecorationV"></td\n\t></tr\n\t><tr class="dijitReset"\n\t\t><td class="dijitReset"></td\n\t\t><td class="dijitReset"\n\t\t\t><center><div class="dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper" data-dojo-attach-event="press:_onClkDecBumper"></div></center\n\t\t></td\n\t\t><td class="dijitReset"></td\n\t></tr\n\t><tr class="dijitReset"\n\t\t><td class="dijitReset"></td\n\t\t><td class="dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV"\n\t\t\t><div class="dijitSliderDecrementIconV" style="display:none" data-dojo-attach-point="incrementButton"><span class="dijitSliderButtonInner">-</span></div\n\t\t></td\n\t\t><td class="dijitReset"></td\n\t></tr\n></table>\n'},function(e,t,i){var n,o;n=[i(203),i(1246)],o=i.dj.d(n,(function(e,t){return e("dijit.form.VerticalRule",t,{templateString:'<div class="dijitRuleContainer dijitRuleContainerV"></div>',_positionPrefix:'<div class="dijitRuleMark dijitRuleMarkV" style="top:',_isHorizontal:!1})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1654)],o=i.dj.d(n,(function(e,t){return e("dijit.form.VerticalRuleLabels",t,{templateString:'<div class="dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV"></div>',_positionPrefix:'<div class="dijitRuleLabelContainer dijitRuleLabelContainerV" style="top:',_labelPrefix:'"><span class="dijitRuleLabel dijitRuleLabelV">',_calcPosition:function(e){return 100-e},_isHorizontal:!1})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijit dijitReset dijitSlider dijitSliderV" data-dojo-attach-event="onkeydown:_onKeyDown,onkeyup:_onKeyUp,onmousedown:_onBarClick">\n <div class="dijitSliderContainer">\n <div class="dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV" style="display:none">\n <div class="dijitSliderIncrementIconV" tabIndex="-1"\n data-dojo-attach-point="decrementButton"><span class="dijitSliderButtonInner">+</span>\n </div>\n </div>\n\n <div class="dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper"\n data-dojo-attach-event="onmousedown:_onClkIncBumper">\n </div>\n\n <div class="dijitReset outerSliderBarContainer" style="position: relative; height: 100%">\n <div class="dijitReset" style="height:100%; position: relative;">\n <input data-dojo-attach-point="valueNode" type="hidden" ${!nameAttrSetting}/>\n <div class="dijitReset dijitSliderBarContainerV" waiRole="presentation"\n data-dojo-attach-point="sliderBarContainer">\n <div waiRole="presentation" data-dojo-attach-point="remainingBar"\n class="dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV"\n data-dojo-attach-event="onmousedown:_onBarClick">\x3c!--#5629--\x3e</div>\n\n <div data-dojo-attach-point="sliderHandle,focusNode"\n class="dijitSliderImageHandle dijitSliderImageHandleV"\n data-dojo-attach-event="onmousedown:_onHandleClick" waiRole="slider"\n valuemin="${minimum}" valuemax="${maximum}"></div>\n\n <div waiRole="presentation" data-dojo-attach-point="progressBar"\n class="dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV"\n data-dojo-attach-event="onmousedown:_onBarClick">\n </div>\n </div>\n </div>\n </div>\n\n <div class="dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper"\n data-dojo-attach-event="onmousedown:_onClkDecBumper">\n </div>\n\n <div class="dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV" style="display:none">\n <div class="dijitSliderDecrementIconV" tabIndex="-1"\n data-dojo-attach-point="incrementButton"><span class="dijitSliderButtonInner">-</span>\n </div>\n </div>\n </div>\n <div class="dijitSliderChildrenContainer" data-dojo-attach-point="containerNode"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(217),i(444),i(8606),i(2654)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{_renderComponent:function(e){this.inherited(arguments);var t=this.handler;this.slider&&e.orientation!==this._lastOrientation&&(this.slider.destroyRecursive(),this.slider=null),this.slider?this._updateProperties(e):("horizontal"===e.orientation?this.slider=new n({id:e.id,style:"height: 100%; width: 100%",onChange:function(i){t.setProperties(e.id,{value:i})}}):this.slider=new o({id:e.id,style:"height: 100%; width: 100%",onChange:function(i){t.setProperties(e.id,{value:i})}}),this._lastOrientation=e.orientation,this.own(this.slider),this._updateProperties(e),this.slider.placeAt(this.domNode,"last"),this._started&&this.slider.startup())},startup:function(){this.inherited(arguments),this.slider.startup()},resize:function(){this.inherited(arguments),this.slider.resize()},_getStyle:function(e){var t=this.inherited(arguments);return delete t.border,t},_updateProperties:function(e){this.slider.set("disabled",!1===e.enabled),this.slider.set("minimum",e.min),this.slider.set("maximum",e.max),this.slider.set("value",e.value),this.slider.set("extent",e.extent||0),this.slider.set("unitIncrement",e.unitIncrement||1),this.slider.set("blockIncrement",e.blockIncrement||1),this.slider.resize(),this._lastVisibility!==e.visibility&&(this._lastVisibility=e.visibility)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2654),i(8608)],o=i.dj.d(n,(function(e,t,i){return e([t],{templateString:i,_pageKey:"pageX",_clientKey:"clientX",_scrollKey:"scrollLeft",_dirKey:"x",_rangeKey:"w",_minStyleKey:"minWidth",_thumbSizeKey:"width",_thumbPosKey:"left"})}),e,t),e.exports=o},function(e,t){e.exports='<div class="mw_type_VerticalScrollBar mw_type_ScrollBarBase">\n <div class="upButton button" data-dojo-attach-point="decrementNode"></div><br>\n <div class="thumbContainerWrapper" data-dojo-attach-point="thumbContainerWrapperNode">\n <div class="thumbContainer" data-dojo-attach-point="thumbContainerNode">\n <div class="thumb button" data-dojo-attach-point="thumbNode" data-dojo-attach-event="mousedown:onThumbDown"></div>\n </div>\n </div><br>\n <div class="downButton button" data-dojo-attach-point="incrementNode"></div>\n</div>\n'},function(e,t){e.exports='<div class="mw_type_HorizontalScrollBar mw_type_ScrollBarBase">\n <div class="leftButton button" data-dojo-attach-point="decrementNode"></div>\n <div class="thumbContainerWrapper" data-dojo-attach-point="thumbContainerWrapperNode">\n <div class="thumbContainer" data-dojo-attach-point="thumbContainerNode">\n <div class="thumb button" data-dojo-attach-point="thumbNode" data-dojo-attach-event="mousedown:onThumbDown"></div>\n </div>\n </div>\n <div class="rightButton button" data-dojo-attach-point="incrementNode"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(223),i(206),i(8610),i(407),i(444)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e([n],{_arrowPressed:function(e,t,i){this.inherited(arguments),this.onChange(this.get("value"))}});return e([r],{_valuePlaceholder:"$#VALUE$#",_renderComponent:function(e){this.inherited(arguments);var n=this,r=this.dataService,s=void 0===e.currentValue?e.min||0:e.currentValue,l=((e.stepSize+"").split(".")[1]||"").replace(/[0-9]/g,"#"),c=l.length>0?"#."+l:"#";if(this.spinner){var d=this.spinner.get("constraints");d.min===e.min&&d.max===e.max||this.spinner.set("constraints",{min:e.min,max:e.max}),s!==this.spinner.get("value")&&this.spinner.set("value",s),this.spinner.disabled===e.enabled&&this.spinner.set("disabled",!e.enabled)}else this.format=this._getFormat(String(e.formattedValue||s)),this.spinner=new a({value:s,smallDelta:e.stepSize||1,constraints:{min:e.min||0,max:e.max||0,pattern:c},style:"width:100%",id:e.id,_formatter:function(t,i){var o=((e.stepSize+"").split(".")[1]||[]).length,r=Math.pow(10,o);return t=Math.round(t*r)/r,n.format.replace(n._valuePlaceholder,t)},_parser:function(e,t){return"number"==typeof e?e:parseFloat(e.replace(n._valuePlaceholder,""))},validator:function(e,t){return e=this.get("value"),new RegExp("^(?:"+this._computeRegexp(t)+")"+(this.required?"":"?")+"$").test(e)&&(!this.required||!this._isEmpty(e))&&(this._isEmpty(e)||void 0!==this.parse(e,t))},onChange:function(t){"Error"===this.state||void 0===t||t<e.min||t>e.max||"number"!=typeof t?this.set("value",e.currentValue):r.registerHandlerService().getHandler("NumberSpinner").setProperties(e.id,{currentValue:t})}}),o.setClassName(this.spinner.domNode,{type:"TextField",name:e.textFieldName}),this.own(i(this.spinner,"keyUp",(function(e){(e.charCode||e.keyCode)===t.ENTER&&n.spinner.onChange(n.spinner.get("value"))}))),this.own(this.spinner),this.spinner.placeAt(this.domNode,"last")},_getFormat:function(e){var t=parseFloat(e);return e.replace(t,this._valuePlaceholder)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(8611),i(1934)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.form.NumberSpinner",[i,n.Mixin],{baseClass:"dijitTextBox dijitSpinner dijitNumberTextBox",adjust:function(e,t){var i=this.constraints,n=isNaN(e),o=!isNaN(i.max),r=!isNaN(i.min);n&&0!=t&&(e=t>0?r?i.min:o?i.max:0:o?this.constraints.max:r?i.min:0);var a=e+t;return n||isNaN(a)?e:(o&&a>i.max&&(a=i.max),r&&a<i.min&&(a=i.min),a)},_onKeyDown:function(e){if(!(this.disabled||this.readOnly||e.keyCode!=t.HOME&&e.keyCode!=t.END||e.ctrlKey||e.altKey||e.metaKey||void 0===this.get("value"))){var i=this.constraints[e.keyCode==t.HOME?"min":"max"];"number"==typeof i&&this._setValueAttr(i,!1),e.stopPropagation(),e.preventDefault()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(204),i(245),i(257),i(206),i(896),i(1935),i(8612),i(1402)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e("dijit.form._Spinner",s,{defaultTimeout:500,minimumTimeout:10,timeoutChangeRate:.9,smallDelta:1,largeDelta:10,templateString:l,baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{upArrowNode:"dijitUpArrowButton",downArrowNode:"dijitDownArrowButton"},adjust:function(e){return e},_arrowPressed:function(e,t,i){this.disabled||this.readOnly||(this._setValueAttr(this.adjust(this.get("value"),t*i),!1),c.selectInputText(this.textbox,this.textbox.value.length))},_arrowReleased:function(){this._wheelTimer=null},_typematicCallback:function(e,i,n){var o=this.smallDelta;if(i==this.textbox){var r=n.keyCode;o=r==t.PAGE_UP||r==t.PAGE_DOWN?this.largeDelta:this.smallDelta,i=r==t.UP_ARROW||r==t.PAGE_UP?this.upArrowNode:this.downArrowNode}-1==e?this._arrowReleased(i):this._arrowPressed(i,i==this.upArrowNode?1:-1,o)},_wheelTimer:null,_mouseWheeled:function(e){if(this.focused){e.stopPropagation(),e.preventDefault();var t=e.wheelDelta/120;Math.floor(t)!=t&&(t=e.wheelDelta>0?1:-1);var i=e.detail?-1*e.detail:t;if(0!==i){var n=this[i>0?"upArrowNode":"downArrowNode"];this._arrowPressed(n,i,this.smallDelta),this._wheelTimer&&this._wheelTimer.remove(),this._wheelTimer=this.defer((function(){this._arrowReleased(n)}),50)}}},_setConstraintsAttr:function(e){this.inherited(arguments),this.focusNode&&(void 0!==this.constraints.min?this.focusNode.setAttribute("aria-valuemin",this.constraints.min):this.focusNode.removeAttribute("aria-valuemin"),void 0!==this.constraints.max?this.focusNode.setAttribute("aria-valuemax",this.constraints.max):this.focusNode.removeAttribute("aria-valuemax"))},_setValueAttr:function(e,t){this.focusNode.setAttribute("aria-valuenow",e),this.inherited(arguments)},postCreate:function(){this.inherited(arguments),this.own(r(this.domNode,o.wheel,i.hitch(this,"_mouseWheeled")),a.addListener(this.upArrowNode,this.textbox,{keyCode:t.UP_ARROW,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),a.addListener(this.downArrowNode,this.textbox,{keyCode:t.DOWN_ARROW,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),a.addListener(this.upArrowNode,this.textbox,{keyCode:t.PAGE_UP,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout),a.addListener(this.downArrowNode,this.textbox,{keyCode:t.PAGE_DOWN,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout))}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dijit dijitReset dijitInline dijitLeft"\n\tid="widget_${id}" role="presentation"\n\t><div class="dijitReset dijitButtonNode dijitSpinnerButtonContainer"\n\t\t><input class="dijitReset dijitInputField dijitSpinnerButtonInner" type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t\t/><div class="dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton"\n\t\t\tdata-dojo-attach-point="upArrowNode"\n\t\t\t><div class="dijitArrowButtonInner"\n\t\t\t\t><input class="dijitReset dijitInputField" value="&#9650; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/></div\n\t\t></div\n\t\t><div class="dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton"\n\t\t\tdata-dojo-attach-point="downArrowNode"\n\t\t\t><div class="dijitArrowButtonInner"\n\t\t\t\t><input class="dijitReset dijitInputField" value="&#9660; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/></div\n\t\t></div\n\t></div\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class=\'dijitReset dijitInputInner\' data-dojo-attach-point="textbox,focusNode" type="${type}" data-dojo-attach-event="onkeydown:_onKeyDown"\n\t\t\trole="spinbutton" autocomplete="off" ${!nameAttrSetting}\n\t/></div\n></div>\n'},function(e,t,i){var n,o;n=[i(203),i(213),i(223),i(725),i(444),i(761)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{_renderComponent:function(e){this.inherited(arguments);var o=this.dataService,a=this;this.textBox||(this.textBox=new n({style:"height: 100%; width: 100%;"}),this.own(this.textBox),this.textBox.placeAt(this.domNode,"last"),t.set(this.textBox.textbox.parentNode,{width:"100%",height:"100%"}),this.connect(this.textBox,"onChange",this._doUpdateTextProperty),this.connect(this.textBox,"onKeyUp",(function(t){t.which===i.ENTER&&(a._doUpdateTextProperty(),o.registerHandlerService().getHandler("TextBox").handleEvent(e.id,{type:"enter"}),a._changed=!1)})),this.connect(this.textBox,"onBlur",(function(){a._doUpdateTextProperty(),a._changed&&(o.registerHandlerService().getHandler("TextBox").handleEvent(e.id,{type:"blur"}),a._changed=!1)}))),this.textBox.set("value",e.text),this.textBox.set("disabled",!e.enabled),this.textBox.set("readOnly",!e.editable);var s=r.getTextStyle(e);s.width="100%",s.height="100%",t.set(this.textBox.textbox,s),this.focusNode=this.textBox.focusNode},_doUpdateTextProperty:function(){var e=this.textBox.get("displayedValue");e!==this.componentData.text&&(this._changed=!0,this.dataService.registerHandlerService().getHandler("TextBox").setProperties(this.componentData.id,{text:e},!0))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(242),i(210),i(213),i(223),i(1461),i(209),i(444),i(761),i(221),i(8615)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=document.documentElement,p=h.mozMatchesSelector||h.msMatchesSelector||h.oMatchesSelector||h.webkitMatchesSelector;return e([l],{destroyRecursive:function(){this._removeBodyListeners(),this.inherited(arguments)},_getStyle:function(e){var t=this.inherited(arguments);return"MarginBorder"===e.borderType&&(t.border="none",t.marginLeft=e.margin.left+"px",t.marginTop=e.margin.top+"px",t.marginRight=e.margin.right+"px",t.marginBottom=e.margin.bottom+"px"),t},_renderComponent:function(e){var i=o.get(this.domNode,"visibility");this.inherited(arguments),this.textAreaData=e;var s=this;if(!this.textArea){if(i=void 0,e.autoResize)this.textArea=new u({value:e.text||""}),setTimeout((function(){s.textArea.resize()}),0);else{this.textArea=new a({value:e.text||""});var l=this.textArea.textbox;l.autocorrect=l.autocomplete=l.autocapitalize=l.spellcheck=!1}this.own(this.textArea),this.textArea.placeAt(this.domNode,"last"),this._bodyEventHandler=function(e){s.textArea.domNode!==e.target&&s.textArea.textbox!==e.target&&p.call(e.target,".mgg *")&&(t.stop(e),"click"===e.type&&(s.textArea.textbox.blur(),s._onBlur(),s._updateTextProperty()))},this.connect(this.textArea,"onKeyDown",(function(e){(e.keyCode||e.charCode)===r.ESCAPE&&t.stop(e)})),this.connect(this.textArea,"onKeyUp",(function(e){(e.keyCode||e.charCode)===r.ESCAPE&&(t.stop(e),this._onEscape(),s.textArea.textbox.blur(),s._onBlur())})),this.connect(this.textArea,"onChange",this._updateTextProperty),this.connect(this.textArea,"onBlur",this._onBlur)}e.text!==this.textArea.get("value")&&this.textArea.set("value",e.text||""),!1===this.textAreaData.focusable&&(n.add(this.domNode,"preventDragSelection"),d("ie")||d("trident")?(this.textArea.textbox.setAttribute("contentEditable",!1),9===d("ie")&&this.textArea.textbox.setAttribute("unselectable","on")):d("ff")&&n.add(this.domNode,"preventUserInput")),this.textArea.set("readOnly",!1===e.editable),this.textArea.set("disabled",!1===e.enabled),e.autoResize&&this.textArea.savePosition(),this._setTextStyles(),e.autoResize&&(e.visibility?this._addBodyListeners():this._removeBodyListeners()),this._becameVisible(i)&&setTimeout(this._focusInTextArea.bind(this),0),this.focusNode=this.textArea.focusNode},_becameVisible:function(e){return(!this.textAreaData||!1!==this.textAreaData.visibility)&&(!e||"hidden"===e)},_focusInTextArea:function(){if(this.textAreaData&&this.textAreaData.editable&&this.textArea.textbox){if(this.textArea.textbox.focus(),this.textArea.textbox.setSelectionRange){var e=this.textArea.textbox.value.length;this.textArea.textbox.setSelectionRange(e,e)}else{var t=this.textArea.textbox.value;this.textArea.textbox.value=t}this.textArea.textbox.scrollTop=999999}},_updateTextProperty:function(){this.defer(this._doUpdateTextProperty)},_doUpdateTextProperty:function(){var e=this.textArea.get("value").replace(String.fromCharCode(160),"");this.dataService.registerHandlerService().getHandler("TextBox").setProperties(this.textAreaData.id,{text:e},!0)},_onEscape:function(){this._doUpdateTextProperty(),this.dataService.registerHandlerService().getHandler("TextBox").handleEvent(this.textAreaData.id,{type:"escape"})},_onBlur:function(){this._doUpdateTextProperty(),this.dataService.registerHandlerService().getHandler("TextBox").handleEvent(this.textAreaData.id,{type:"blur"}),this._removeBodyListeners()},_setTextStyles:function(){s.assert(this.textAreaData,"null this.textAreaData in MultiLineTextBox"),s.assert(this.textArea,"null text area object");var e=c.getTextStyle(this.textAreaData);e.whiteSpace=!1===this.textAreaData.wrapping||this.textAreaData.autoResize?"pre":"pre-wrap",this.textAreaData.autoResize?this.textArea.setTextStyle(e):(s.assert(this.textArea.textbox,"text box does not exist"),o.set(this.textArea.textbox,e))},_addBodyListeners:function(){i.body().addEventListener("mousedown",this._bodyEventHandler,!0),i.body().addEventListener("mouseup",this._bodyEventHandler,!0),i.body().addEventListener("mousemove",this._bodyEventHandler,!0),i.body().addEventListener("click",this._bodyEventHandler,!0),i.body().addEventListener("dblclick",this._bodyEventHandler,!0),i.body().addEventListener("contextmenu",this._bodyEventHandler,!0)},_removeBodyListeners:function(){i.body().removeEventListener("mousedown",this._bodyEventHandler,!0),i.body().removeEventListener("mouseup",this._bodyEventHandler,!0),i.body().removeEventListener("mousemove",this._bodyEventHandler,!0),i.body().removeEventListener("click",this._bodyEventHandler,!0),i.body().removeEventListener("dblclick",this._bodyEventHandler,!0),i.body().removeEventListener("contextmenu",this._bodyEventHandler,!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(217),i(8616),i(209),i(8618)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{buildRendering:function(){this.inherited(arguments),this.textSizer=new r},destroyRecursive:function(){this.inherited(arguments),this.textSizer.destroyRecursive()},setTextStyle:function(e){o.assert(e,"Cannot set null text style"),o.assert(this.textbox,"null textbox"),t.set(this.textbox,e),o.assert(this.textSizer,"null text sizer utility"),this.textSizer.setTextStyle(e)},savePosition:function(){this.domNode&&this.domNode.parentNode&&(this.savedTextPosition=i.position(this.domNode),this.savedPanePosition=i.position(this.domNode.parentNode))},_placeInTheMiddle:function(){if(this.domNode&&this.domNode.parentNode){o.assert(this.savedTextPosition,"null saved parent position");var e=i.position(this.textbox),n=(this.savedPanePosition.w-e.w)/2;t.set(this.textbox,{position:"absolute",left:n+"px"})}},resize:function(){this.textSizer.setText(this.textbox.value);var e=this.textSizer.getClientSize();t.set(this.domNode,"width",e.w+5+"px"),t.set(this.domNode,"height",e.h+"px"),this.domNode.parentNode&&(t.set(this.domNode.parentNode,{width:"auto",height:"auto",overflow:"visible"}),this.domNode.parentNode.parentNode&&t.set(this.domNode.parentNode.parentNode,{width:"auto",height:"auto",overflow:"visible"}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(8617),i(1461)],o=i.dj.d(n,(function(e,t,i,n){return e("dijit.form.Textarea",[n,i],{baseClass:"dijitTextBox dijitTextArea dijitExpandingTextArea",cols:"",buildRendering:function(){this.inherited(arguments),t.set(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(221),i(204),i(206),i(242),i(541)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i.add("textarea-needs-help-shrinking",(function(){var e=r.body(),i=t.create("textarea",{rows:"5",cols:"20",value:" ",style:{zoom:1,fontSize:"12px",height:"96px",overflow:"hidden",visibility:"hidden",position:"absolute",border:"5px solid white",margin:"0",padding:"0",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"}},e,"last"),n=i.scrollHeight>=i.clientHeight;return e.removeChild(i),n})),e("dijit.form._ExpandingTextAreaMixin",null,{_setValueAttr:function(){this.inherited(arguments),this.resize()},postCreate:function(){this.inherited(arguments);var e=this.textbox;e.style.overflowY="hidden",this.own(o(e,"focus, resize",n.hitch(this,"_resizeLater")))},startup:function(){this.inherited(arguments),this.own(a.on("resize",n.hitch(this,"_resizeLater"))),this._resizeLater()},_onInput:function(e){this.inherited(arguments),this.resize()},_estimateHeight:function(){var e=this.textbox;e.rows=(e.value.match(/\n/g)||[]).length+1},_resizeLater:function(){this.defer("resize")},resize:function(){var e=this.textbox;function t(){var t=!1;""===e.value&&(e.value=" ",t=!0);var i=e.scrollHeight;return t&&(e.value=""),i}if("hidden"==e.style.overflowY&&(e.scrollTop=0),!this.busyResizing){if(this.busyResizing=!0,t()||e.offsetHeight){var n=t()+Math.max(e.offsetHeight-e.clientHeight,0),o=n+"px";if(o!=e.style.height&&(e.style.height=o,e.rows=1),i("textarea-needs-help-shrinking")){var r,a=t(),s=e.style.minHeight,l=4,c=e.scrollTop;for(e.style.minHeight=o,e.style.height="auto";n>0;){e.style.minHeight=Math.max(n-l,4)+"px";var d=a-(r=t());if(n-=d,d<l)break;a=r,l<<=1}e.style.height=n+"px",e.style.minHeight=s,e.scrollTop=c}e.style.overflowY=t()>e.clientHeight?"auto":"hidden","hidden"==e.style.overflowY&&(e.scrollTop=0)}else this._estimateHeight();this.busyResizing=!1}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(242),i(211),i(224),i(213),i(210)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=e(null,{hiddenTextNode:null,constructor:function(e){var o={display:"inline-block",position:"absolute",left:"-5000px",top:"-5000px",whiteSpace:"pre-line",visibility:"visible",padding:"0px 10px",minHeight:"1em"};if(e){e.visible&&(o.left="100px",o.top="100px");n.forEach(["background-color","text-align","font-family"],(function(t){e.hasOwnProperty(t)&&(o[t]=e[t])}))}this.hiddenTextNode=i.create("div",{style:o},t.body(),"last"),r.add(this.hiddenTextNode,"TextAreaSizer")},setText:function(e){return this.hiddenTextNode.textContent=(e||"")+" ",this},setTextStyle:function(e){return console.assert(e,"Cannot set null text style"),console.assert(this.hiddenTextNode,"null hidden text box node"),delete e.whiteSpace,o.set(this.hiddenTextNode,e),this},getClientSize:function(){return{w:this.hiddenTextNode.clientWidth,h:this.hiddenTextNode.clientHeight}},destroyRecursive:function(){this.hiddenTextNode&&t.body().removeChild(this.hiddenTextNode),this.hiddenTextNode=null}});return a.className="TextAreaSizer",a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(312),i(1652),i(444),i(761),i(247)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([r,o],{_getStyle:function(e){var t=a.getTextStyle(e),i=this.inherited(arguments);return delete i.pointerEvents,i.display="inline-block",Object.keys(i).forEach((function(e){t[e]=i[e]})),t},postCreate:function(){this.inherited(arguments);var e=this.dataService.registerHandlerService().getHandler("Label"),t=this;this.domNode.addEventListener("mousedown",(function(){e.handleEvent(t.componentData.id,{type:"clicked"})}))},destroyRecursive:function(){this.toolTip&&(this.toolTip.set("connectId",""),this.toolTip.destroyRecursive()),this.inherited(arguments)},_renderComponent:function(e){if(this.inherited(arguments),this._createOrUpdateIcon(this.domNode,e),e.text!==this._lastText){for(this.label||(this.label=t.create("div",{},this.domNode,"last"));this.label.firstChild;)this.label.removeChild(this.label.firstChild);0!==e.text.toLowerCase().indexOf("<html>")||e.contentType&&"text"===e.contentType?this.label.appendChild(document.createTextNode(e.text)):this.label.appendChild(s.sanitizeHtmlFromJava(e.text)),this._lastText=e.text}if(this.label){var o=a.getTextStyle(e);o.display="inline-block",this.hasIcon()&&e.text?o.marginLeft=(e.iconTextGap||0)+"px":o.marginLeft="0px",o.whiteSpace="pre-wrap",i.set(this.label,o),e.tooltip&&(this.toolTip?this._lastTooltip!==e.tooltip&&this.toolTip.set("label",e.tooltip):(this.toolTip=new n({label:e.tooltip}),this.toolTip.set("connectId",this.domNode),this.own(this.toolTip)),this._lastTooltip=e.tooltip)}},_onClick:function(){this.toolTip&&this.toolTip.close()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(444)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_renderComponent:function(e){this.inherited(arguments),this.separator||(this.separator=t.create("div",{},this.domNode,"first"),i.set(this.separator,"background-color","rgb("+e.foreground.join(",")+")"))},_getStyle:function(){var e=this.inherited(arguments);return"2px"===e.width&&(e.width="1px"),"2px"===e.height&&(e.height="1px"),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(8622),i(1613),i(232),i(444),i(646),i(1015)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([a],{FILES_ONLY:0,DIRECTORIES_ONLY:1,constructor:function(e){this.actionService=e.actionService,this.pathService=e.pathService,this.fileService=e.fileService},destroyRecursive:function(){this.inherited(arguments),this.fileChooser&&this.layoutService.removeWidget("fileChooser")},_cancelFileChooser:function(e){this.dataService.registerHandlerService().getHandler("FileChooser").handleEvent(e.id,{type:"cancel"}),this.layoutService.removeWidget("fileChooser")},_renderComponent:function(t){this.inherited(arguments);var r=this,a={},c=[];if(t.currentDirectory&&this.fileService.currentDirectory(t.currentDirectory),!this.fileChooser){for(var d in t.filters)a[t.filters[d].label]||(c.push(t.filters[d]),a[t.filters[d].label]=1);this.fileChooser=e([n,o])({fileService:this.fileService,pathService:this.pathService,actionService:this.actionService,style:{width:"425px",height:"425px"},approveButtonText:l[t.chooserType],fileMustExist:"save"!==t.chooserType,fileTypeFilterMustExist:t.selectionMode===this.FILES_ONLY,selectionMode:t.selectionMode,filters:c,saveAsFileName:t.saveAsFileName}),this.fileChooser.on("okButtonClicked",(function(e){var i=e.fileName;r.dataService.registerHandlerService().getHandler("FileChooser").handleEvent(t.id,{type:"fileUploaded",name:i,location:e.targetLocation,fileTypeFilterIndex:e.fileTypeFilterIndex-1}),s.emptyEval(),r.layoutService.removeWidget("fileChooser")})),this.fileChooser.on("cancelButtonClicked",i.hitch(this,(function(){this._cancelFileChooser(t)}))),this.fileChooser.onClose=function(){this._cancelFileChooser(t)}.bind(this),this.layoutService.addWidget("fileChooser","newDialog",this.fileChooser,{title:t.title})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(850)],o=i.dj.d(n,(function(e,t){return e([t],{postCreate:function(){this.inherited(arguments),this.connect(this,"onItemDoubleClick",(function(e){this.onOk()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(411),i(444)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_renderComponent:function(e){if(this.inherited(arguments),this.title?this.title.replaceChild(document.createTextNode(e.title),this.title.firstChild):(this.title=t.create("span",{class:"title"},this.domNode,"last"),this.title.appendChild(document.createTextNode(e.title))),!this.closeButton){this.closeButton=new i({class:"closeButton",iconClass:"closeIcon"}),this.closeButton.placeAt(this.domNode,"last");var n=this;this.connect(this.closeButton,"onClick",(function(){n.dataService.registerHandlerService().getHandler("DTTitleBar").handleEvent(n.componentData.id,{type:"close"})}))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(206),i(232),i(444)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r],{constructor:function(){this._clickListener=t.hitch(this,this._onIFrameClick),this._reloadListener=t.hitch(this,this._onIFrameReload)},destroyRecursive:function(){this.inherited(arguments)},_renderComponent:function(e){this.inherited(arguments);var t=e.location,n=e.isConnector;if(n){var r=o.getWorkerRoutingHost().slice(0,-1),a=t.indexOf("/help");a>-1&&(t=r+t)}this.iframe&&location.protocol+t!==this.iframe.src&&(this.domNode.removeChild(this.iframe),this.iframe=null),this.iframe||(this._retries=0,this.iframe=i.create("iframe"),i.place(this.iframe,this.domNode,"first"),this.iframe.addEventListener("load",this._reloadListener,!0),this.iframe.src=t),this.iframe.width=e.position.width+"px",this.iframe.height=e.position.height+"px"},_addWindowListeners:function(){try{this.iframe.contentWindow&&this.iframe.contentWindow.document?this.iframe.contentWindow.document.addEventListener("click",this._clickListener,!0):this._retries<20&&(this._retries+=1,setTimeout(t.hitch(this,this._addWindowListeners),500))}catch(e){if(!this._errored)throw this._errored=!0,e}},_onIFrameReload:function(){this._addWindowListeners()},_onIFrameClick:function(e){console.log("iframe event:",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(231),i(444),i(292)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([o],{_getToolstripWidget:function(){return!this.toolstripWidget&&this.div&&this.div.firstChild&&n.getEnclosingWidget(this.div.firstChild)&&(this.toolstripWidget=n.getEnclosingWidget(this.div.firstChild)),this.toolstripWidget},_renderComponent:function(e){this.inherited(arguments);var n=this._getStyle(e);if(this.div&&n.width){i.set(this.domNode,"width",n.width);var o=this._getToolstripWidget();o&&o.resize()}if(!this.div&&e.toolstrip_host_id&&e.toolstrip_namespace){this.hostId=e.toolstrip_host_id,this.namespace=e.toolstrip_namespace;var a={};a.id=this.hostId,n.width&&(a.width=n.width),this.div=t.create("div",a,this.domNode,"last"),r.getInstance({channel:this.namespace,isMATLABDriven:!0,_openWithViewModel:!1})}},destroyRecursive:function(){if(this.div){try{r.destroyInstance(this.namespace)}catch(e){}this.div=void 0}this.inherited(arguments)},resize:function(){this.inherited(arguments);var e=this._getToolstripWidget();e&&e.resize()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(216),i(2655),i(8627),i(8628),i(8629),i(2657),i(8630),i(8631),i(8632)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([n,l,o,s,r,a,i,t],{templateString:c,constructor:function(e){e=e||{},this.componentData=e.widgetData}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(242),i(213),i(210),i(217),i(206),i(221),i(223),i(215),i(407),i(2656)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([h,d],{scrollbarWidth:0,headerPadding:2,defaultColumnWidth:75,totalColumnWidth:0,paddingViewColumns:4,toleranceViewCols:2,paddingPagedColumns:30,tolerancePagedCols:15,colView:{start:0,end:0},oldColView:{start:0,end:0},pageDataCols:{},constructor:function(e){this.scrollbarWidth=u.getScrollbarWidth(),this.defaultProperties=i.delegate(this.defaultProperties,{columns:[],showCellBorders:!0})},postCreate:function(){this.inherited(arguments),this.own(s(this.dataScrollerNode,"change",i.hitch(this,"_onDataChange"))),this.own(s(this.dataScrollerNode,"keydown",i.hitch(this,"_onCommit")))},setColumnWidth:function(e,t){if(e>=0&&e<this.columns.length&&t>10){var n=i.clone(this.columns);n[e].width=t,this.peerNode.setProperty("columns",n)}},scrollToColumn:function(e){e=Math.max(0,Math.min(e,this.dataModel.getColumnCount()));var t,i=(this.columns[e]?this.columns[e].width:this.defaultColumnWidth)/2;for(t=0;t<e;t+=1)i+=this.columns[t]?this.columns[t].width:this.defaultColumnWidth;var n=a.position(this.dataScrollerNode).w/2;this.dataScrollerNode.scrollLeft=Math.max(0,i-n)},scrollToCell:function(e,t){this.scrollToRow(e),this.scrollToColumn(t)},getColumnSelector:function(e){return"#"+this.id+" .dataBody .cell:nth-child("+(e-this.colView.start+2)+")"},getCellSelector:function(e,t){return this.getRowSelector(e)+" .cell:nth-child("+(t-this.colView.start+2)+")"},_onColumnsSet:function(){var e;for(this.totalColumnWidth=0,e=0;e<this.columns.length;e+=1)this.totalColumnWidth+=this.columns[e]&&this.columns[e].width||this.defaultColumnWidth;this._renderViewData(!0)},_onShowCellBordersSet:function(){r.toggle(this.domNode,"showCellBorders",this.showCellBorders)},_onDataScroll:function(){this.inherited(arguments)},_onDataChange:function(e){var t=this._getCellFromNode(e.target);if(!(t.row<0||t.column<0)){var i=t.node,n=t.row,o=t.column,r=this.oldViewData[n-this.rowView.start][o-this.colView.start],a=this._getCellType(this.columns[o]);if(this.cellTypes[a.type].getCellValue){var s=this.cellTypes[a.type].getCellValue(i.firstChild,e.target,a,r);void 0!==s&&this.dataModel.changeData(n,o,[[s]])}}},_onCommit:function(e){(l("ie")||l("trident"))&&e.keyCode===c.ENTER&&this._onDataChange(e)},_renderViewData:function(e){if(this.dataModel&&this.position){if(this._updatePagedData(),!e&&this.dataModel===this.oldDataModel&&!this.rowView.changed&&!this.colView.changed)return;this._onViewRangeUpdated();var t,i=this.rowView.start-this.dataModel.getCurrentStartRow(),n=this.rowView.end-this.dataModel.getCurrentStartRow(),o=this.colView.start-this.dataModel.getCurrentStartCol(),r=this.colView.end-this.dataModel.getCurrentStartCol(),a=this.dataModel.getPartialData(),s=[];for(t=i;t<n;t+=1)s.push(a[t].slice(o,r));var l=this;this._incrementalUpdateNode({node:this.dataNode,data:s,oldData:this.oldViewData,start:this.rowView.start,end:this.rowView.end,oldStart:this.oldRowView.start,oldEnd:this.oldRowView.end,update:function(e,t,i){l._updateRow(e,t,i,l.colView.start,l.colView.end,l.oldColView.start,l.oldColView.end)},create:function(e){return l._renderRow(e,l.colView.start,l.colView.end)}}),this.oldRowView=this.rowView,this.oldColView=this.colView,this.oldViewData=s,this.oldDataModel=this.dataModel}this._updateDataStyles()},_renderRow:function(e,t,i){var n=document.createElement("div");n.setAttribute("class","row");var o=document.createElement("div");o.setAttribute("class","cell spacer leftSpacer"),n.appendChild(o);var r,a=i-t;for(r=0;r<a;r+=1)n.appendChild(this._renderCell(this.columns[r+t],e[r]));var s=document.createElement("div");return s.setAttribute("class","cell spacer rightSpacer"),n.appendChild(s),n},_updateRow:function(e,t,i,n,o,r,a){var s=this;this._incrementalUpdateNode({node:e,data:t,oldData:i,start:n,end:o,oldStart:r,oldEnd:a,update:function(e,t,i,n){s._updateCell(e,s.columns[n],t,i)},create:function(e,t){return s._renderCell(s.columns[t],e)}})},_getCellFromNode:function(e){for(var t=null,i=-1,n=-1;e.getAttribute&&"cell"!==e.getAttribute("class")&&e!==this.dataScrollerNode;)e=e.parentNode;if(e.getAttribute&&"cell"===e.getAttribute("class")){for(t=e,n=this.colView.start-1;e.previousElementSibling;)n+=1,e=e.previousElementSibling;for(e=e.parentNode,i=this.rowView.start-1;e.previousElementSibling;)i+=1,e=e.previousElementSibling}return{node:t,row:i,column:n}},_onViewRangeUpdated:function(e,t,i,n){var o;for(this.leftSpaceWidth=0,o=0;o<this.colView.start;o+=1)this.leftSpaceWidth+=this.columns[o]&&this.columns[o].width||this.defaultColumnWidth;this.inherited(arguments)},_updatePagedData:function(){var e=this._convertPxToCols(0,this._getScrollLeft()),t=this._convertPxToCols(e,this.position.width);this.colView=this._updateArrayBounds(e,e+t,this.dataModel.getCurrentStartCol(),this.dataModel.getCurrentEndCol(),this.paddingViewColumns,this.toleranceViewCols,this.oldColView),this.pagedDataCols=this._updateArrayBounds(e,e+t,0,this.dataModel.getColumnCount(),this.paddingPagedColumns,this.tolerancePagedCols,this.oldPagedDataCols),this.inherited(arguments)},_getScrollLeft:function(){return this.dataScrollerNode.scrollLeft},_updateDataStyles:function(){this.inherited(arguments),this.dataModel&&this.rowHeight&&this.position&&(this._updateScrollerStyles(),this.styleManager.updateStyleRules("spacerLeft",{".row .spacer.leftSpacer":"width: "+this.leftSpaceWidth+"px;"}),this.styleManager.updateStyleRules("dataWidth",{".spacer.dataWidth":"width: "+this.totalColumnWidth+"px;"}))},_updateColumnStyles:function(){var e,t,i,n=this.columns.slice(this.colView.start,this.colView.end),o={};for(e=0;e<n.length;e+=1)t=this._getCellType(n[e]),i=this._getColumnStyles(t),i+="width: "+(n[e]&&n[e].width||this.defaultColumnWidth)+"px;",o[".dataColumn .cell:nth-child("+(e+2)+")"]=i;this.styleManager.updateStyleRules("columns",o)},_updateScrollerStyles:function(){var e=this.dataModel.getRowCount()*this.rowHeight>=this.position.height,t=this.totalColumnWidth>=this.position.width;r.toggle(this.domNode,"hideVerticalScroll",!e),r.toggle(this.domNode,"hideHorizontalScroll",!t)},_convertPxToCols:function(e,t){var i,n=0;for(i=e;i<this.dataModel.getColumnCount();i+=1)if(t<=(n+=this.columns[i]&&this.columns[i].width||this.defaultColumnWidth))return i-e;return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(1653),i(2653)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{oldColumnData:[],oldRowData:[],constructor:function(){this.defaultProperties=t.delegate(this.defaultProperties,{tableHeader:!1,showRowHeaders:!1,rowHeaderWidth:30,rows:[]})},_onDataScroll:function(){this.inherited(arguments),this.columnHeaderScrollerNode.scrollLeft=this.dataScrollerNode.scrollLeft,this.rowHeaderScrollerNode.scrollTop=this.dataScrollerNode.scrollTop},_onTableHeaderSet:function(e){i.toggle(this.domNode,"hideColumnHeaders",!e),this._updateHeaderStyles()},_onRowsSet:function(){this._renderRowHeader()},_onShowRowHeadersSet:function(e){i.toggle(this.domNode,"hideRowHeaders",!e),this._updateHeaderStyles()},_onRowHeaderWidthSet:function(){this._updateHeaderStyles()},_onRowHeightSet:function(){this.inherited(arguments),this._updateHeaderStyles()},_onViewRangeUpdated:function(){this.inherited(arguments),this._renderRowHeader(),this._renderColumnHeader(),this._updateHeaderStyles()},_renderColumnHeader:function(){var e=this.columns.slice(this.colView.start,this.colView.end);if(e.length===this.colView.end-this.colView.start){var t=this;this._incrementalUpdateNode({node:this.columnHeaderNode,data:e,oldData:this.oldColumnData,start:this.colView.start,end:this.colView.end,oldStart:0,oldEnd:this.oldColumnData.length,update:function(e,i){t._updateColumnNode(e,i)},create:function(e){return t._createColumnNode(e)}}),this.oldColumnData=e}},_updateColumnNode:function(e,t){var i="";(void 0===t.resizable||t.resizable)&&(i="cursor: ew-resize;"),n.default.update(e.firstElementChild.firstChild,{},t.label),e.firstElementChild.nextElementSibling.setAttribute("style",i)},_createColumnNode:function(e){var t=document.createElement("div");t.setAttribute("class","cell");var i,r=document.createElement("div");r.setAttribute("class","header cell"),i=e.label&&0===e.label.toLowerCase().indexOf("<html>")&&!o.containsLinks(e.label)?n.html.create({},e.label):n.default.create({},e.label),r.appendChild(i);var a="";(void 0===e.resizable||e.resizable)&&(a="cursor: ew-resize;");var s=document.createElement("div");s.setAttribute("class","drag"),s.setAttribute("style",a);var l=document.createElement("div");l.setAttribute("class","firstHalfOfDrag"),s.appendChild(l);var c=document.createElement("div");c.setAttribute("class","dragBorder"),s.appendChild(c);var d=document.createElement("div");return d.setAttribute("class","secondHalfOfDrag"),s.appendChild(d),t.appendChild(r),t.appendChild(s),t},_renderRowHeader:function(){var e=this.rows.slice(this.rowView.start,this.rowView.end);e.length===this.rowView.end-this.rowView.start&&(this._incrementalUpdateNode({node:this.rowHeaderNode,data:e,oldData:this.oldRowData,start:this.rowView.start,end:this.rowView.end,oldStart:0,oldEnd:this.oldRowData.length,update:function(e,t,i,n){e.firstElementChild.firstChild.nodeValue=void 0===t?n:t},create:function(e,t){var i=document.createElement("div");i.setAttribute("class","row");var n=document.createElement("div");return n.setAttribute("class","cell"),n.appendChild(document.createTextNode(void 0===e?t:e)),i.appendChild(n),i}}),this.oldRowData=e)},_updateHeaderStyles:function(){if(this.dataModel){var e=this.showRowHeaders?this.rowHeaderWidth:0,t=this._isVerticalScrollBarShown()?this.scrollbarWidth:0,i=this._isHorizontalScrollBarShown()?this.scrollbarWidth:0,n=this.showRowHeaders?this.headerPadding:0;this.styleManager.updateStyleRules("rowHeader",{".rowHeaderColumn .row":"width: "+e+"px;",".headerWrapper":"padding-right: "+(e+n+t)+"px; margin-right: "+-(e+n+t)+"px;",".dataBodyWrapper":"padding-right: "+(e+n)+"px; margin-right: "+-(e+n)+"px;"});var o=this.tableHeader?this.rowHeight+this.headerPadding:0;this.styleManager.updateStyleRules("rows",{".body":"padding-top: "+o+"px;margin-top: "+-o+"px;",".body .rowHeadersWrapper":"padding-bottom: "+i+"px;"})}},_isVerticalScrollBarShown:function(){var e=this.tableHeader?this.rowHeight:0;return this.dataModel.getRowCount()*this.rowHeight>=this.position.height-e},_isHorizontalScrollBarShown:function(){var e=this.showRowHeaders?this.rowHeaderWidth:0;return this.totalColumnWidth>=this.position.width-e},_updateScrollerStyles:function(){i.toggle(this.domNode,"hideVerticalScroll",!this._isVerticalScrollBarShown()),i.toggle(this.domNode,"hideHorizontalScroll",!this._isHorizontalScrollBarShown())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(206)],o=i.dj.d(n,(function(e,t,i,n){var o=window;return e([],{postCreate:function(){this.inherited(arguments),this.own(n(this.columnHeaderNode,"mousedown",i.hitch(this,"_onColumnMouseDown"))),this.own(n(this.columnHeaderNode,"click",i.hitch(this,"_onHeaderClick"))),this.own(n(this.columnHeaderNode,"dblclick",i.hitch(this,"_onColumnDoubleClick"))),this.own(n(this.columnHeaderNode,"contextmenu",i.hitch(this,"_onColumnRightClick"))),this.own(n(this.rowHeaderNode,"mousedown",i.hitch(this,"_onRowMouseDown"))),this.own(n(this.rowHeaderNode,"click",i.hitch(this,"_onHeaderClick"))),this.own(n(this.rowHeaderNode,"dblclick",i.hitch(this,"_onRowDoubleClick"))),this.own(n(this.rowHeaderNode,"contextmenu",i.hitch(this,"_onRowRightClick")))},_onRowRightClick:function(e){o.contextMenuPosition={x:e.pageX,y:e.pageY};var i=this._getCellFromNode(e.target);i.row>=0&&i.column>=0&&(t.stop(e),this.peerNode.dispatchPeerEvent("rowContextMenu",this.peerNode,{row:i.row}))},_onColumnRightClick:function(e){o.contextMenuPosition={x:e.pageX,y:e.pageY};var i=this._getCellFromNode(e.target);i.row>=0&&i.column>=0&&(t.stop(e),this.peerNode.dispatchPeerEvent("columnContextMenu",this.peerNode,{column:i.column}))},_onRowDoubleClick:function(e){var i=this._getCellFromNode(e.target);i.row>=0&&i.column>=0&&(t.stop(e),this.peerNode.dispatchPeerEvent("rowDoubleClick",this.peerNode,{row:i.row}))},_onColumnDoubleClick:function(e){var i=this._getCellFromNode(e.target);i.row>=0&&i.column>=0&&(t.stop(e),this.peerNode.dispatchPeerEvent("columnDoubleClick",this.peerNode,{column:i.column}))},_onHeaderClick:function(e){var t=e.target;if(document.getSelection().rangeCount>0){for(t=document.getSelection().getRangeAt(0).commonAncestorContainer;t.parentNode&&(!t.getAttribute||"cell"!==t.getAttribute("class"));)t=t.parentNode;t&&t.getAttribute&&"cell"===t.getAttribute("class")||document.getSelection().removeAllRanges()}},_onRowMouseDown:function(e){var t,n,o,r;if("column"!==this.selectionType&&"single"!==this.selectionMode){var a=this._getCellFromNode(e.target);if(!(a.row<0)){var s=a.row,l=[];if("extended"===this.selectionMode&&(e.ctrlKey||e.metaKey||e.shiftKey)&&(l=i.clone(this.peerNode.getProperty("selectedIndices"))).length>0&&("row"===this.selectionType&&"number"!=typeof l[0]?l=[]:"cell"!==this.selectionType||i.isArray(l[0])||(l=[])),"none"!==this.selectionType&&"none"!==this.selectionMode)if("cell"===this.selectionType)if(e.shiftKey&&l.length>0){for(t=l[l.length-1],l=[],n=s;n<=t[0];n+=1)for(o=0;o<=this.dataModel.getColumnCount();o+=1)l.push([n,o]);for(n=s;n>=t[0];n-=1)for(o=0;o<=this.dataModel.getColumnCount();o+=1)l.push([n,o])}else if(e.ctrlKey||e.metaKey)if((r=l.filter((function(e){return e[0]!==s}))).length===l.length)for(n=0;n<this.dataModel.getColumnCount();n+=1)l.push([s,n]);else l=r;else for(n=0;n<this.dataModel.getColumnCount();n+=1)l.push([s,n]);else if(e.shiftKey&&l.length>0){for(t=l[l.length-1],l=[],n=s;n<=t;n+=1)l.push(n);for(n=s;n>=t;n-=1)l.push(n)}else(e.ctrlKey||e.metaKey)&&(n=l.indexOf(s))>=0?l.splice(n,1):l.push(s);this.peerNode.setProperty("selectedIndices",l)}}},_onColumnMouseDown:function(e){var t,n,o,r;if("row"!==this.selectionType&&"single"!==this.selectionMode){var a=this._getCellFromNode(e.target);if(!(a.column<0)){var s=a.column,l=[];if("extended"===this.selectionMode&&(e.ctrlKey||e.metaKey||e.shiftKey)&&(l=i.clone(this.peerNode.getProperty("selectedIndices"))).length>0&&("column"===this.selectionType&&"number"!=typeof l[0]?l=[]:"cell"!==this.selectionType||i.isArray(l[0])||(l=[])),"none"!==this.selectionType&&"none"!==this.selectionMode)if("cell"===this.selectionType)if(e.shiftKey&&l.length>0){for(t=l[l.length-1],l=[],n=s;n<=t[1];n+=1)for(o=0;o<=this.dataModel.getRowCount();o+=1)l.push([o,n]);for(n=s;n>=t[1];n-=1)for(o=0;o<=this.dataModel.getRowCount();o+=1)l.push([o,n])}else if(e.ctrlKey||e.metaKey)if((r=l.filter((function(e){return e[1]!==s}))).length===l.length)for(n=0;n<this.dataModel.getRowCount();n+=1)l.push([n,s]);else l=r;else for(n=0;n<this.dataModel.getRowCount();n+=1)l.push([n,s]);else if(e.shiftKey&&l.length>0){for(t=l[l.length-1],l=[],n=s;n<=t;n+=1)l.push(n);for(n=s;n>=t;n-=1)l.push(n)}else(e.ctrlKey||e.metaKey)&&(n=l.indexOf(s))>=0?l.splice(n,1):l.push(s);this.peerNode.setProperty("selectedIndices",l)}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(206),i(217),i(213)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{postCreate:function(){this.inherited(arguments),this.own(n(this.columnHeaderNode,"mousedown",i.hitch(this,"_onColumnResizeMouseDown")))},_onColumnResizeMouseDown:function(e){if(e.target.getAttribute&&(-1!==e.target.getAttribute("class").indexOf("drag")||-1!==e.target.getAttribute("class").indexOf("firstHalfOfDrag")||-1!==e.target.getAttribute("class").indexOf("secondHalfOfDrag")||-1!==e.target.getAttribute("class").indexOf("dragBorder"))){t.stop(e);var r=this._getCellFromNode(e.target).column,a=this.columns[r];a&&(void 0===a.resizable||a.resizable)&&(this._tablePos=o.position(this.columnResizerNode.parentNode),this._resizingColumn=r,this._originalResizeWidth=a.width||0,this._minResizeWidth=a.minWidth?a.minWidth:10,this._maxResizeWidth=a.maxWidth?a.maxWidth:1e3,this._splitterNode=e.target,"drag"===e.target.getAttribute("class")&&(this._splitterNode=e.target.firstChild.nextSibling),"firstHalfOfDrag"===e.target.getAttribute("class")&&(this._splitterNode=e.target.nextSibling),"secondHalfOfDrag"===e.target.getAttribute("class")&&(this._splitterNode=e.target.previousSibling),this._originalSplitterPos=o.position(this._splitterNode),this._updateColumnResizerNode(this._originalSplitterPos.x),this._mouseMoveListener=n(document,"mousemove",i.hitch(this,"_onColumnMouseMove")),this._mouseUpListener=n(document,"mouseup",i.hitch(this,"_onColumnMouseUp")),document.addEventListener("selectstart",t.stop,!0))}},_onColumnMouseMove:function(e){this._updateColumnResizerNode(e.pageX),t.stop(e)},_onColumnMouseUp:function(e){t.stop(e);var n=e.pageX-this._originalSplitterPos.x+this._originalResizeWidth;n=Math.min(Math.max(this._minResizeWidth,n),this._maxResizeWidth);var o=i.clone(this.columns);o[this._resizingColumn].width=n,this.peerNode.setProperty("columns",o),r.set(this.columnResizerNode,{display:"none"}),this._mouseMoveListener.remove(),this._mouseUpListener.remove(),document.removeEventListener("selectstart",t.stop,!0)},_updateColumnResizerNode:function(e){var t=e-this._originalSplitterPos.x+this._originalResizeWidth;t=Math.min(Math.max(this._minResizeWidth,t),this._maxResizeWidth),r.set(this.columnResizerNode,{display:"inherit",left:this._originalSplitterPos.x-this._tablePos.x+t-this._originalResizeWidth+"px"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206)],o=i.dj.d(n,(function(e,t,i){return e([],{postCreate:function(){this.inherited(arguments),this.own(i(this.dataScrollerNode,i.selector("button","click"),t.hitch(this,"_onCellButtonClick")))},_onCellButtonClick:function(e){var t=this._getCellFromNode(e.target);t.row>=0&&t.column>=0&&this.peerNode.dispatchPeerEvent("cellEvent",this.peerNode,{cellEventType:"buttonClick",row:t.row,column:t.column,buttonClass:e.target.getAttribute("class")})}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="mw_type_Table mw_type_TableBase mw_type_ListBase">\n <div class="header nospacing preventDragSelection">\n <div class="inline row cornerSpacer rowHeaderColumn rowHeadersWrapper">\n <div class="row cell"></div>\n </div>\n <div class="inline wrapper headerWrapper">\n <div class="inline scrolled dataColumn" data-dojo-attach-point="columnHeaderScrollerNode">\n <div class="row dataWidth spacer" data-dojo-attach-point="columnHeaderNode">\n <div class="cell spacer leftSpacer"></div>\n <div class="cell spacer rightSpacer"></div>\n </div>\n </div>\n </div>\n <div class="inline row cornerSpacer verticalScrollSpacer"></div>\n </div>\n <div class="body nospacing">\n <div class="inline wrapper rowHeadersWrapper preventDragSelection">\n <div class="scrolled dataRow rowHeaderColumn rowHeaders" data-dojo-attach-point="rowHeaderScrollerNode">\n <div class="dataHeight spacer" data-dojo-attach-point="rowHeaderNode">\n <div class="row spacer topSpacer"></div>\n <div class="spacer bottomSpacer"></div>\n </div>\n </div>\n <div class="cornerSpacer horizontalScrollSpacer rowHeaderColumn"></div>\n </div>\n <div class="inline wrapper dataBodyWrapper">\n <div class="scroller dataRow dataColumn" data-dojo-attach-point="dataScrollerNode">\n <div class="dataWidth dataHeight spacer dataBody" data-dojo-attach-point="dataNode">\n <div class="row spacer topSpacer"></div>\n <div class="spacer bottomSpacer"></div>\n </div>\n </div>\n </div>\n </div>\n <div class="columnResizer" data-dojo-attach-point="columnResizerNode"></div>\n <div class="loading"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(216),i(2655),i(2656),i(2657),i(8634)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n,o,i,t],{templateString:r,constructor:function(e){e=e||{},this.componentData=e.widgetData}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="mw_type_List mw_type_ListBase">\n <div class="body nospacing">\n <div class="inline wrapper dataBodyWrapper">\n <div class="scroller dataRow dataColumn" data-dojo-attach-point="dataScrollerNode">\n <div class="dataWidth dataHeight spacer dataBody" data-dojo-attach-point="dataNode">\n <div class="row spacer topSpacer"></div>\n <div class="spacer bottomSpacer"></div>\n </div>\n </div>\n </div>\n </div>\n <div class="loading"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(213),i(210),i(211),i(1315),i(1655),i(861)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([a,r],{_createButtonWidget:function(e,t){var i;return i=new o({checked:e.selected||!1,name:e.group,label:e.text||"",disabled:!e.enabled,iconClass:"",onChange:function(){t.registerHandlerService().getHandler("ToggleButton").setProperties(e.id,{selected:!!i.checked})}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1247),i(1480),i(2658)],o=i.dj.d(n,(function(e,t,i,n){return e([n],{_createButtonWidget:function(e,n){var o;return o=new i({checked:e.selected||!1,disabled:!e.enabled,name:"checkBox_"+e.id,id:"MW_mgg_checkBox_"+e.id,onClick:function(){n.registerHandlerService().getHandler("CheckBoxSplitterButton").handleEvent(e.id,{type:"buttonClicked"})}}),this._styleManager=t.StyleManager("#mgg_"+e.id),this.own(this._styleManager),o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(211),i(1479),i(1655),i(2659),i(861)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([a,r,o],{_createButtonWidget:function(e,t){var i;return i=new n({checked:e.selected||!1,disabled:!e.enabled,name:e.group||void 0,id:"MW_mgg_radio_button_"+e.id,onClick:function(){t.registerHandlerService().getHandler("RadioButton").setProperties(e.id,{selected:i.checked})}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(1049),i(36),i(861)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{destroyRecursive:function(){this.button&&this.button.dropDown&&this.button.dropDown.destroyRecursive&&this.button.dropDown.destroyRecursive(),this._child&&this._child.destroyRecursive&&this._child.destroyRecursive(),this.inherited(arguments)},addChild:function(e){this.button&&(this._child=e,this.button.dropDown=e.popup)},removeChild:function(e){this.button&&(this._child=null,this.button.dropDown=null)},_createButtonWidget:function(e,t){var i={label:e.text,name:e.group,iconClass:"",autoWidth:!1};return"DropdownButton"===e.swingType&&(i.onClick=function(){t.registerHandlerService().getHandler("DropdownButton").handleEvent(e.id,{type:"buttonClicked"})}),new n(i)},_getStyle:function(e){var t=this.inherited(arguments);return delete t.backgroundColor,void 0===e.visibility||e.visibility||(t.display="none"),t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(210),i(211),i(411),i(861)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([r],{_createButtonWidget:function(e,t){return new o({checked:e.selected||!1,name:e.group,label:e.text||"",disabled:!e.enabled,iconClass:"",onMouseOver:function(){t.registerHandlerService().getHandler("ScrollStripButton").handleEvent(e.id,{type:"mouseEntered"})},onMouseOut:function(){t.registerHandlerService().getHandler("ScrollStripButton").handleEvent(e.id,{type:"mouseExited"})}})},_getStyle:function(e){var t=this.inherited(arguments);return delete t.backgroundColor,t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(509),i(646)],o=i.dj.d(n,(function(e,t,i){return e([t],{enableFeature:function(){i.maintainAspect=!0},disableFeature:function(){i.maintainAspect=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(509),i(646)],o=i.dj.d(n,(function(e,t,i){return e([t],{enableFeature:function(){i.usePanes=!0},disableFeature:function(){i.usePanes=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(509),i(646)],o=i.dj.d(n,(function(e,t,i){return e([t],{enableFeature:function(){i.usePopups=!0},disableFeature:function(){i.usePopups=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(509),i(2646)],o=i.dj.d(n,(function(e,t,i){return e([t],{enableFeature:function(){i.enableToggleDock=!0},disableFeature:function(){i.enableToggleDock=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(509),i(646)],o=i.dj.d(n,(function(e,t,i){return e([t],{constructor:function(e,t){this.executionService=t.executionService},enableFeature:function(){i.lazyLoadEnabled=!0,this.executionService.executionEval("com.mathworks.matlabserver.jcp.handlers.RootHandler.enableLazyLoad(true);",this.executionService.streamingEval)},disableFeature:function(){i.lazyLoadEnabled=!1,this.executionService.executionEval("com.mathworks.matlabserver.jcp.handlers.RootHandler.enableLazyLoad(false);",this.executionService.streamingEval)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(225),i(712),i(292),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e(null,{constructor:function(e){e=e||{},a.assert(e.mggGuiDataService,"mggGuiDataService needs to be provided!"),this.mggGuiDataService=e.mggGuiDataService,this.uiBuilder=r.getInstance(),this._toolbarMap={},this._menubarMap={},this._aspects=[],this._aspects.push(i.after(this.mggGuiDataService.registerHandlerService().getHandler("root"),"onSelectedChildChanged",t.hitch(this,this.swapMenubarAndToolbars)))},swapMenubarAndToolbars:function(){var e,t;t=this.getCurrentlySelectedGuiContainerId(),this.mggGuiDataService.guiDataStore.fetch({query:{id:t},onItem:function(t){e=t}}),e&&e.docked&&(this.removeMenubarAndToolbars(),this.addMenubarAndToolbars())},addMenubarAndToolbars:function(){var e,t,i=this.getCurrentlySelectedGuiContainerId();i&&this._menubarMap[i]&&this._menubarMap[i]&&(e=this._getMenubarWrapperWidget(),t=this._getToolbarWrapperWidget(),e&&this._menubarMap[i].forEach((function(t){e.addChild(t)}),this),this._toolbarMap[i]&&t&&this._toolbarMap[i].forEach((function(e){t.addChild(e)}),this))},removeMenubarAndToolbars:function(){var e,t,i=this;e=this._getMenubarWrapperWidget(),t=this._getToolbarWrapperWidget(),e&&e.getChildren().forEach((function(t){e.removeChild(t),t.getChildren().forEach((function(e){this.setHoveringAndActiveStateToFalse(e)}),this)}),this),t&&t.getChildren().forEach((function(e){t.removeChild(e),n(".dijitButtonNode",e.domNode).forEach((function(e){i.setHoveringAndActiveStateToFalse(o.getEnclosingWidget(e))}))}),this)},setHoveringAndActiveStateToFalse:function(e){e._set("hovering",!1),e._set("active",!1)},addWidgetToMap:function(e,t){var i=this.getMapForWidget(e);i[t]?i[t].push(e):i[t]=[e]},removeWidgetFromMap:function(e){var t,i=this.getMapForWidget(e);Object.keys(i).forEach((function(n){(t=i[n].indexOf(e))>-1&&i[n].splice(t,1)}))},getMapForWidget:function(e){var t;return"ToolBar"===e.componentData.type?t=this._toolbarMap:"MenuBar"===e.componentData.type&&(t=this._menubarMap),t},getWrapperForWidget:function(e){var t;return"ToolBar"===e.componentData.type?t=this._getToolbarWrapperWidget():"MenuBar"===e.componentData.type&&(t=this._getMenubarWrapperWidget()),t},addWidgetToWrapperInToolstrip:function(e){var t,i,n,o=!1;if(t=this.getMapForWidget(e),i=this.getWrapperForWidget(e)){n=this.findAncestorGuiContainer(e.componentData);var r=i.getChildren();r.length>0&&(o=!t[n.id].some((function(e){return r[0].componentData.id===e.componentData.id}),this)),o&&r.forEach((function(e){i.removeChild(e)})),i.addChild(e),this.swapMenubarAndToolbars()}},findAncestorGuiContainer:function(e){var t,i=e;for(t=0;i&&"GUIContainer"!==i.type&&t<100;t+=1)i=this.mggGuiDataService.guiDataStore.items[i.parentId];return 100===t&&(i=void 0,a.error("Unable to find parent GUIContainer, max depth reached.",e)),i},getCurrentlySelectedGuiContainerId:function(){var e;return this.mggGuiDataService.guiDataStore.fetch({query:{type:"root"},onItem:function(t){e=t.selectedChild}}),e},_getMenubarWrapperWidget:function(){return this.uiBuilder.widgetByTag("motwToolstrip.figureTab.menuAndToolbars.menubarWrapper")},_getToolbarWrapperWidget:function(){return this.uiBuilder.widgetByTag("motwToolstrip.figureTab.menuAndToolbars.toolbarWrapper")},destroy:function(){this._aspects.forEach((function(e){e.remove()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;function r(e,t,i,n){return n=!!n,e.addEventListener(t,i,n),{remove:function(){e.removeEventListener(t,i,n)}}}n=[i(203),i(8647),i(223),i(263),i(342),i(1709),i(326),i(2660),i(8660),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c,d){return e(null,{constructor:function(e){e.actionService?this._actionService=e.actionService:d.error("actionService is required to define the AdvertiseShortcutsDialogManager."),e.preferenceValue?this._preferenceValue=e.preferenceValue:d.error("preferenceValue is required to determine the value of the checkbox in the navigation shortcuts dialog."),e.executionService?this._executionService=e.executionService:d.error("executionService is required to open the documentation link within the navigation shortcuts dialog content."),e.selector?this._selector=e.selector:d.error("selector is required to define a keybinding on it for the navigation shortcuts dialog."),this._createAdvertiseShortcutsDialogManager(this._actionService,this._preferenceValue)},_createAdvertiseShortcutsDialogManager:function(e,i){var n={dataTestId:"navigationShortcutsColModelTable",rowHeaderModel:{},columnModel:{columnConfig:[{label:t.shortcutsTableColumn1Label,dataIndex:0,width:{value:55,unit:"%"}},{label:t.shortcutsTableColumn2Label,dataIndex:1,width:{value:45,unit:"%"}}]}},o=this._makeTableData(),r=new l(o),a=document.createElement("div");a.classList.add("navigationShortcutsDialogContent");var d=document.createElement("div");d.classList.add("navigationShortcutsTableContainer");var u=new s(r,n);d.appendChild(u.domNode),u.startup(),a.appendChild(d),a.appendChild(document.createElement("br"));var h=document.createElement("div");h.setAttribute("id","navigationShortcutsDocContainer");var p=document.createElement("span");p.setAttribute("id","navigationShortcutsDocLink"),p.setAttribute("tabIndex","0"),p.setAttribute("role","link"),p.setAttribute("aria-labelledby","navigationShortcutsDocContainer navigationShortcutsDocLink"),p.innerText=t.documentationLinkLabel,h.innerText=t.shortcutsDocContainerInnerText,h.appendChild(p),a.appendChild(h),this._advertiseShortcutsDialogManager=new c({actionService:e,dialogContent:a,dialogTitle:t.shortcutsDialogTitle,needCheckboxToNotShowDialogOnStartup:!0,selector:this._selector,preferenceValue:i,callback:this._dialogCallback.bind(this)})},_navigationShortcutsDocLinkAction:function(){this._advertiseShortcutsDialogManager.closeDialog(),this._executionService.executionEval("helpview('matlab','matlab_navigation_shortcuts','CSHelpWindow')"),this._removeListeners()},_handleKeyDown:function(e){e.keyCode===i.ENTER&&(this._navigationShortcutsDocLinkAction(e),e.preventDefault())},_dialogCallback:function(e,t){var i=document.getElementById("navigationShortcutsDocLink");switch(e){case"beforeOpen":n.getSetting(["matlab","confirmationdialogs"],"NavigationShortcutsConfirm").then(function(e){this._advertiseShortcutsDialogManager.setPreferenceValue(e.value)}.bind(this));break;case"opened":i&&(this._listeners=[],this._listeners.push(r(i,"click",this._navigationShortcutsDocLinkAction.bind(this))),this._listeners.push(r(i,"keydown",this._handleKeyDown.bind(this))));break;case"closed":n.setSetting(["matlab","confirmationdialogs"],"NavigationShortcutsConfirm",t),i&&this._removeListeners()}},_makeTableData:function(){var e=a.getString([o.Keys.SYSCTRL]),i=[];return i.push([t.forwardShortcutLabel,e+" + F6"]),i.push([t.backwardShortcutLabel,e+" + Shift + F6"]),i.push([t.MoveIntoAToolLabel,"Tab"]),i.push([t.MoveBetweenControlsLabel,t.MoveBetweenControlsShortcutLabel]),i.push([t.AccessKeysLabel,"Alt"]),i.push([t.ListOfKeyboardShortcutsLabel,"Ctrl + /"]),i},_removeListeners:function(){this._listeners.forEach((function(e){e.remove()}))},setPreferenceValue:function(e){this._advertiseShortcutsDialogManager.setPreferenceValue(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8648)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/navigationShortcutsDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{forwardShortcutLabel:"Move forward through the toolstrip and other tools",backwardShortcutLabel:"Move backward through the toolstrip and other tools",MoveIntoAToolLabel:"Move into a tool",MoveBetweenControlsLabel:"Move between the controls within a tool",MoveBetweenControlsShortcutLabel:"Up and Down Arrow, Left and Right Arrow",AccessKeysLabel:"Show access keys for a toolstrip tab",ListOfKeyboardShortcutsLabel:"Display this list of keyboard shortcuts",shortcutsTableColumn1Label:"If you want to",shortcutsTableColumn2Label:"Press",shortcutsDocContainerInnerText:"For more shortcuts, see the ",documentationLinkLabel:"Documentation",shortcutsDialogTitle:"Navigation Keyboard Shortcuts"}}},function(e,t,i){"use strict";var n,o;n=[i(595)],o=i.dj.d(n,(function(e){var t=function(e){return"row"===e?function(e,t,i){return e.setRows(t,i)}:function(e,t,i){return e.setColumns(t,i)}},i=function(i,n){var o=void 0,r=void 0,a=void 0;"row"===i?(o=t("row"),r=t("column"),a="row"):(o=t("column"),r=t("row"),a="column"),n.sort((function(e,t){return e-t}));var s=[];if(n.length>0){var l=r(e.range(),0,1/0);l=o(l,n[0],n[0]);for(var c=0;c<n.length;c+=1)l[a].end+1===n[c]?l[a].end=n[c]:(s.push(l),l=o(l=r(e.range(),0,1/0),n[0],n[0]));s.push(l)}return s};return{columnArray:function(e){return i("column",e)},rowArray:function(e){return i("row",e)}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{NUMERIC:function(e,t){"number"!=typeof e&&(e=parseFloat(e)),"number"!=typeof t&&(t=parseFloat(t));var i=e-t;return isNaN(i)?isNaN(e)&&isNaN(t)?0:isNaN(e)?-1:1:i},STRING:function(e,t){return"string"!=typeof e&&(e=e.toString()),"string"!=typeof t&&(t=t.toString()),e<t?-1:e>t?1:0}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{order:{ASC:"ASC",DESC:"DESC"},compare:{NUMERIC:"NUMERIC",STRING:"STRING"}}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{ERROR_SAVE_FAILED:"ERROR_SAVE_FAILED",ERROR_VALIDATION:"ERROR_VALIDATION",ERROR_UNKNOWN:"ERROR_UNKNOWN"}}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2662)],o=i.dj.d(n,(function(e){return function(){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._unfilteredData=i.data,this._data=[],this._filterCriteria=e}return r(t,[{key:"filter",value:function(){var t=this.getFilterCriteria();this._data=[];for(var i=0;i<this._unfilteredData.length;i+=1)e.filterRow(this._unfilteredData[i],t)&&this._data.push(this._unfilteredData[i])}},{key:"getFilteredData",value:function(){return this._data}},{key:"getUnfilteredData",value:function(){return this._unfilteredData}},{key:"setUnfilteredData",value:function(e){this._unfilteredData=e}},{key:"getFilterCriteria",value:function(){return this._filterCriteria}}]),t}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({COLUMN_INDEX:"columnIndex",VALUE:"value",COMPARE_PROPERTY:"compare",COMPARE_TYPE:"type",DATA_TYPE:"dataType",CASE_SENSITIVE:"caseSensitive",PARAM:"param",DEFAULT_COMPARE_TYPE:"contains",DEFAULT_DATA_TYPE:"string",DEFAULT_CASE_SENSITIVE:!1,STRING:"string",NUMBER:"number",BOOLEAN:"boolean",CONTAINS:"contains",STARTS_WITH:"startsWith",ENDS_WITH:"endsWith",EQUAL:"equalTo",NOT_EQUAL:"notEqualTo",GREATER_THAN:"greaterThan",GREATER_THAN_EQUAL_TO:"greaterThanEqualTo",LESS_THAN:"lessThan",LESS_THAN_EQUAL_TO:"lessThanEqualTo",FUNCTION:"function"})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(595),i(2662)],o=i.dj.d(n,(function(e,t){var i=function(e,t){var i={};return e.length&&(i={searchHighlight:{matches:e}},t&&(i.searchHighlight.field=t)),i};return function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._criteria=e,this._createRuleFn=t}return r(n,[{key:"isCriteriaValid",value:function(){return t.isValid(this._criteria)}},{key:"createRule",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._criteria;return this._createRuleFn({cell:function(e){var o=t.searchColumn(e.value,n);return i(o,t.getField(n))}},{type:"rangeList",value:[e.range().setColumns(t.getColumn(n),t.getColumn(n)).setRows(0,1/0)]})}}]),n}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[],o=i.dj.d(n,(function(){return function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setHeaders(t),this._allHeadersCache={},this._headerHierarchyMap={},this._createHeadersCache(this._headers)}return r(e,[{key:"setHeaders",value:function(e){this._headers=e||[],this._createHeadersCache(this._headers)}},{key:"getHeaders",value:function(){return this._headers}},{key:"setSpanningHeaders",value:function(e){Object.keys(e).length&&(this._spanningHeaders=e,this._createHeadersCache(Object.values(e)))}},{key:"getSpanningHeaders",value:function(){return this._spanningHeaders}},{key:"updateHeader",value:function(e){var t=e.id,i=e.value;this._allHeadersCache[t].label=i}},{key:"_createHeadersCache",value:function(e){for(var t=0;t<e.length;t+=1)this._allHeadersCache[e[t].columnId]=e[t]}},{key:"getHeaderHierarchy",value:function(e){for(var t={},i=this._headers[e];i&&i.parentId;){var n=this._allHeadersCache[i.parentId];t[n.columnId]=n,i=n}return t}}]),e}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(2663),i(8658),i(2661)],o=i.dj.d(n,(function(e,t,i){var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._metaData={},this._metaDataOrder=new t,this._dynamicMetaDataOrder=new t,this._clearCache(),this._on=new i}return r(e,[{key:"on",value:function(e,t){return this._on.on(e,t)}},{key:"_clearCache",value:function(){this._cacheRuleResult={},this._cacheRuleResult.cell={},this._cacheRuleResult.row={},this._cacheRuleResult.column={}}},{key:"add",value:function(e,t){if(e.indexOf("|")>-1||e.indexOf("*")>-1||e.indexOf("$")>-1)throw new Error('"|", "*", and "$" are invalid in metadata rule names');this.addBuiltIn(e,t)}},{key:"addBuiltIn",value:function(e,t){if("function"!=typeof t._getRangeList||"function"!=typeof t.getMetaData)throw new Error("A metaDataRule must be created using 'create' before trying to add it");var i=this._metaData[e],n=[];i&&(n=this._getOrderedRules(i).remove(e));var o=t._getRangeList();this._metaData[e]=t;var r=t.getMetaData();r.cell=r.cell||{},r.row=r.row||{},r.column=r.column||{};var a={name:e,rangeList:o,metaData:r,isDynamic:t.isDynamic,applyMetaDataFunction:t._applyMetaDataFunction};this._getOrderedRules(t).add(a),this._clearCache(),this._raiseChangeEvent(n.concat(o))}},{key:"_getOrderedRules",value:function(e){return e.isDynamic?this._dynamicMetaDataOrder:this._metaDataOrder}},{key:"remove",value:function(e){if(e.indexOf("|")>-1||e.indexOf("*")>-1||e.indexOf("$")>-1)throw new Error('"|", "*", and "$" are invalid in metadata rule names');this.removeBuiltIn(e)}},{key:"removeBuiltIn",value:function(e){var t=this._metaData[e];if(!t)throw new Error("'"+e+"' does not exist");this._clearCache();var i=this._getOrderedRules(t).remove(e);delete this._metaData[e],this._raiseChangeEvent(i)}},{key:"get",value:function(e){if(!this._metaData[e])throw new Error("'"+e+"' does not exist");return this._metaData[e]}},{key:"_raiseChangeEvent",value:function(e){this._on.emit("metaDataChanged",{rangeList:e})}},{key:"getCellMetaData",value:function(e){var t={rows:{start:e.rowIndex,end:e.rowIndex,count:1},columns:{start:e.columnIndex,end:e.columnIndex,count:1}};return e.dynamic&&(e.dynamic.columnIndex=e.columnIndex,e.dynamic.rowIndex=e.rowIndex),this._getMetaData(t,"cell",e)}},{key:"getRowMetaData",value:function(e){var t={rows:{start:e.rowIndex,end:e.rowIndex,count:1},columns:{start:0,end:0,count:1}};return e.dynamic&&(e.dynamic.rowIndex=e.rowIndex),this._getMetaData(t,"row",e)}},{key:"getColumnMetaData",value:function(e){var t={rows:{start:0,end:0,count:1},columns:{start:e.columnIndex,end:e.columnIndex,count:1}};return e.dynamic&&(e.dynamic.columnIndex=e.columnIndex),this._getMetaData(t,"column",e)}},{key:"_getMetaData",value:function(e,t,i){var n=this._metaDataOrder.getRulesForRange(e);Array.prototype.push.apply(n,this._dynamicMetaDataOrder.getRulesForRange(e));var o={},r=this._cacheRuleResult[t],a=void 0,s=void 0,l=void 0,c=void 0,d=void 0,u=void 0;for(u=0;u<n.length&&(a=r[s=(d=n[u]).name]);u+=1)o=a["|RESULT|"],r=r[s];for(var h=!0,p=u;p<n.length;p+=1){if(s=(d=n[p]).name,c=d.metaData[t],d.isDynamic&&"function"==typeof c){if(!i.dynamic)continue;c=c(i.dynamic),h=!1}l={},this._mixMetaData(l,o),o=l,this._mixMetaData(o,c),h&&(r[s]={},r[s]["|RESULT|"]=o,r=r[s])}return o}},{key:"_mixMetaData",value:function(e,t){return t.style&&(e.style=e.style||{},this._assignObject(e.style,t.style)),this._assignObject(e,t,["style"]),e}},{key:"_assignObject",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(var n in t)i.indexOf(n)<0&&Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}}]),e}();return n.create=e.create,n.dataSelectorTypes=e.dataSelectorTypes,n}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o,r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();n=[i(595),i(8659)],o=i.dj.d(n,(function(e,t){return function(){function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._orderedRules=[]}return r(i,[{key:"add",value:function(e){this._orderedRules.push(e)}},{key:"remove",value:function(e){var i=[],n=t.findIndex(this._orderedRules,(function(t){return t.name===e}));n>=0&&(i=this._orderedRules.splice(n,1)[0].rangeList);return i}},{key:"getRulesForRange",value:function(t){for(var i=[],n=0;n<this._orderedRules.length;n+=1){for(var o=this._orderedRules[n],r=o.rangeList,a=!1,s=0;s<r.length&&!(a=e.doesRangeIntersect(r[s],t));s+=1);a&&(o.applyMetaDataFunction(t.rows.start,t.columns.start)&&i.push(o))}return i}}]),i}()}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[],o=i.dj.d(n,(function(){return{findIndex:function(e,t){for(var i=e.length,n=0;n<i;n+=1)if(t(e[n]))return n;return-1},find:function(e,t){for(var i=e.length,n=0;n<i;n+=1){var o=e[n];if(t(o))return o}}}}),e,t),e.exports=o},function(e,t,i){var n,o;function r(e,t,i,n){return n=!!n,e.addEventListener(t,i,n),{remove:function(){e.removeEventListener(t,i,n)}}}n=[i(231),i(203),i(223),i(206),i(256),i(273),i(262),i(308),i(342),i(703),i(209),i(8661)],o=i.dj.d(n,(function(e,t,i,n,o,a,s,l,c,d,u,h){return t(null,{constructor:function(e){e.actionService?this._actionService=e.actionService:u.error("actionService is required for AdvertiseShortcutsDialogManager."),e.selector?this._selector=e.selector:u.error("selector is required to apply Ctrl + / keybinding for opening the shortcuts dialog."),e.dialogContent?this._dialogContent=e.dialogContent:u.error("dialogContent is required."),e.dialogTitle?this._dialogTitle=e.dialogTitle:this._dialogTitle=h.defaultDialogTitle,this._keyBindings=d.getInstance(this._actionService),e.needCheckboxToNotShowDialogOnStartup&&(this._needCheckboxToNotShowDialogOnStartup=e.needCheckboxToNotShowDialogOnStartup,this._checkbox=new l({text:h.checkBoxText,class:"confirmationDialogCheckBox"}),e.callback?this._callback=e.callback:u.error("Callback function is required when 'needCheckboxToNotShowDialogOnStartup' property is set to true"),e.hasOwnProperty("preferenceValue")?this.setPreferenceValue(e.preferenceValue):u.error("Preference value is required when 'needCheckboxToNotShowDialogOnStartup' property is set to true")),this._listeners=[r(document.body,"keydown",this._handleKeyDown.bind(this),!0)],window.PointerEvent?this._listeners.push(r(document.body,"pointerdown",this._handleMouseDown.bind(this),!0)):this._listeners.push(r(document.body,"mousedown",this._handleMouseDown.bind(this),!0));var t={id:"advertiseShortcutsDialogAction",enabled:!0,callback:this._openAdvertiseShortcutsDialog.bind(this)};this._actionService.addAction(t);var i=this._keyBindings.getBinding([c.Keys.CTRL,c.Keys.FORWARD_SLASH]),n=this._keyBindings.getBinding([c.Keys.CTRL,c.Keys.NUMPAD_DIVIDE]);i.setAction(this._selector,t.id),n.setAction(this._selector,t.id)},_handleKeyDown:function(e){e.keyCode===i.TAB||e.keyCode===i.ALT?((!this._needCheckboxToNotShowDialogOnStartup||!0===this._needCheckboxToNotShowDialogOnStartup&&!0===this._preferenceValue)&&(this._openAdvertiseShortcutsDialog(),e.preventDefault(),e.stopPropagation()),this._removeListeners()):this._removeListeners()},_handleMouseDown:function(){this._removeListeners()},_removeListeners:function(){this._listeners.forEach((function(e){e.remove()}))},_openAdvertiseShortcutsDialog:function(){if(!document.body.querySelector(".mwModalDialog")&&!document.body.querySelector(".dijitDialog")){this._callback&&this._callback("beforeOpen");var e=document.createElement("div");e.appendChild(this._dialogContent),this._checkbox&&(this._checkbox.set("checked",!this._preferenceValue),e.appendChild(document.createElement("br")),e.appendChild(this._checkbox.domNode)),this._dialog=s.createDialog({title:this._dialogTitle,dialogType:s.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,buttons:[a.CLOSE],content:e,defaultActionButton:a.CLOSE}),this._dialog.addButtonEventListener(a.CLOSE,this._closeCallback.bind(this),!0),this._callback&&this._callback("opened")}},_closeCallback:function(){if(this._checkbox){var e=this._checkbox.get("checked");this._preferenceValue=!e,this._callback&&this._callback("closed",this._preferenceValue)}},closeDialog:function(){this._dialog.close()},setPreferenceValue:function(e){this._preferenceValue=e,this._checkbox.set("checked",!this._preferenceValue)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8662),i(8663),i(8664),i(8665)],o=i.dj.d(n,(function(e,t){return t(e,"l10n/nls/AdvertiseShortcutsDialog",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={defaultDialogTitle:"キーボード ショートカット",checkBoxText:"次回からセッションの開始時に表示しない"}},function(e,t,i){e.exports={defaultDialogTitle:"바로 가기 키",checkBoxText:"세션 시작 시 다시 표시 안 함"}},function(e,t,i){e.exports={defaultDialogTitle:"键盘快捷方式",checkBoxText:"会话启动时不再显示"}},function(e,t,i){e.exports={root:{defaultDialogTitle:"Keyboard Shortcuts",checkBoxText:"Do not show again on session start"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(214),i(212),i(645),i(398)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(e){this.actionService=e.actionService,this._logActions([n.RUN_ALL,n.RUN_SECTION,n.RUN_AND_ADVANCE,n.RUN_TO_END])},logOpenWithMessage:function(e){var t=new i;return e.udcLogging&&e.udcLogging.artifactId&&o.addData("OpenWithApplication.EXAMPLE",e.udcLogging.artifactId),t.resolve(),t.promise},_logActions:function(e){return t.after(this.actionService,"executeAction",(function(t){if(e.indexOf(t)>=0){var i=t.split(".");i&&i.length>0&&o.addData("OpenWithApplication."+i[i.length-1],new Date)}}),!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(509),i(1018),i(700),i(8687),i(8694),i(8791),i(539),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){"use strict";return e([n,i],{constructor:function(e,t){this._application=t,o.create(t)},enableFeature:function(){this._application.authorizationDetailsService.getAuthorizedProductIds(t.hitch(this,"_handleAuthorizedProductsReceived"))},_handleAuthorizedProductsReceived:function(e){e.indexOf("Distrib_Computing_Toolbox")<0?d.warn("Could not enable PCT feature: No PCT license available"):r.isLocalClusterEnabledAsync().then(t.hitch(this,"_addWidgets"))},_addWidgets:function(){this._actions=new s(this._application.actionService),this._actions.load(),this.toolstrip=new l(this._application.uiContainer),this.toolstrip.injectParallelItems(),this._application.statusbar?(this._indicator=new a({id:"parallelStatusIndicator"}),this._application.statusbar._insertComponentAtLeft(this._indicator.domNode),this._indicator.startup()):d.warn("No MOTW statusbar found.Could not plug in PCT Parallel Status Indicator"),this.emit("loaded"),this._actions.registerSubscriptions(),this._application.mocked&&this._actions.executeStartupActions()},disableFeature:function(){try{this._actions.unregisterSubscriptions(),c.disconnect(),this._actions.removeAll(),this.toolstrip.removeParallelItems(),this._indicator.destroy()}catch(e){d.warn("Could not cleanup PCT feature: ",e)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(1019),i(8669),i(539)],o=i.dj.d(n,(function(e,t,i,n,o,r){const a=e([i],{name:null,type:null,sections:null,validationSuite:null,constructor:function(e){this._node=e,this.id=e.getProperty("id"),this.htmlId=encodeURIComponent(this.id),this.name=e.getProperty("name"),this.copyable=e.getProperty("copyable"),this.exportable=e.getProperty("exportable"),this.isFactory=e.getProperty("isFactory"),this.type=e.getType(),this.typeLabel=e.getProperty("typeLabel")||this.type,this.sections=[],this.validationSuite={useDefaultNumWorkers:!0,numWorkers:1,stages:["PARCLUSTER","INDEPENDENT_JOB","COMMUNICATING_SPMD_JOB","COMMUNICATING_POOL_JOB","MATLABPOOL"]},r.onPropertySet(this._node,"_handlePropertySet",this),r.onPropertyUnset(this._node,(e,t)=>{this._handlePropertySet(e,void 0,t)}),r.onChildAdded(e,"_handleSectionAdded",this),r.onChildDestroyed(e,"_handleSectionRemoved",this)},_handleSectionAdded:function(e){const t=new o(e,this);this.sections.push(t),this.emit("sectionAdded",t)},_handleSectionRemoved:function(e){const t=this.sections.splice(e,1)[0];this.emit("sectionRemoved",t)},_handlePropertySet:function(e,t,i){switch(e){case"name":this.name=t,this.emit(a.RENAMED,this,i);break;case"corrupt":this.emit("corruptChanged",{corrupt:t});break;case"scheduler":this.emit("schedulerChanged",{oldValue:i,newValue:t});break;case"project":this.emit("projectChanged",{oldValue:i,newValue:t});break;case"copyable":this.copyable=t,this.emit(a.COPYABLE_CHANGED,this,{oldValue:i,newValue:t});break;case"exportable":this.exportable=t,this.emit(a.EXPORTABLE_CHANGED,this,{oldValue:i,newValue:t})}},getSchedulerComponent:function(){return this._node.getProperty("scheduler")},getProjectComponent:function(){return this._node.getProperty("project")},isCorrupt:function(){return!!this._node.getProperty("corrupt")},getPlatform:function(){return this._node.getProperty("platform")||null},save:function(e,i){const o=[[],[],[]],r=this.getSchedulerComponent(),a=this.getProjectComponent()||"",s=i.reduce((function(e,i){return e[i.info.owner]=function(e,i){const r=n.isDefault(e.newValue)?{}:e.newValue;return(i=i||t.clone(o))[0].push(e.info.name),i[1].push(e.info.constraint.type),i[2].push(r),i}(i,e[i.info.owner]),e}),{});if(!e)throw new Error("No profile manager executor found to save the profile.");return e.setValues(this.name,r,a,s.PROFILE||o,s.SCHEDULER_COMPONENT||o,s.PROJECT_COMPONENT||o)}});return a.RENAMED="renamed",a.EXPORTABLE_CHANGED="exportableChanged",a.COPYABLE_CHANGED="copyableChanged",a}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(1019),i(539)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{constructor:function(e){this._node=e,this.name=e.hasProperty("name")?e.getProperty("name"):e.getType(),this.title=e.getProperty("title"),this.index=e.getProperty("index"),this.properties=[],n.onChildAdded(e,"_handlePropertyAdded",this),n.onChildDestroyed(e,"_handlePropertyRemoved",this)},_handlePropertyAdded:function(e){var t=new i(e);this.properties.push(t),this.emit("propertyAdded",t)},_handlePropertyRemoved:function(e){var t=this.properties.splice(e,1)[0];this.emit("propertyRemoved",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1656)],o=i.dj.d(n,(function(e,t,i){"use strict";return e(null,{constructor:function(e,t,n){this._node=e,this.profileName=t,this.status=n,i.updateStatus(this,n),this.stages={}},updateStage:function(e){var n,o=e.stageId;this.stages[o]=t.mixin(this.stages[o],e),n=this.stages[o],i.updateStatus(n,n.status)},update:function(e){t.mixin(this,e),i.updateStatus(this)},setCancelled:function(){this._node.setProperty("cancelled",!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2664),i(462)],o=i.dj.d(n,(function(e,t,i){"use strict";return e([t],{constructor:function(e){var t=i.div.withPosition("first").withParent(document.body).withId("pct-log").withClass("pct-log");"true"!==e.show&&t.hidden(),this._div=t.create()},_log:function(e,t){var n=i.div.withParent(this._div).withClass("pct-log-entry").create();i.span.withContents((new Date).toISOString()+"\t").withParent(n).withClass("pct-log-entry-timestamp").create(),i.span.withContents(e+"\n").withClass("pct-log-entry-message").withParams({style:t}).withParent(n).create(),n.scrollIntoView(!1)},debug:function(e){this._log(e,{color:"grey"})},info:function(e){this._log(e,{color:"black"})},warning:function(e){this._log(e,{color:"green"})},error:function(e){this._log(e,{color:"red"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2664)],o=i.dj.d(n,(function(e,t){"use strict";return e([t],{debug:function(){},info:function(){},warning:function(){},error:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(511),i(1020)],o=i.dj.d(n,(function(e,t,i,n){"use strict";const o=n.asBool("viewmodel",!0),r="initializeViewModel",a="addProfile",s="removeProfile",l="cloneProfile",c="renameProfile",d="setDefaultProfile",u="setValuesFromJavaScript",h="export",p="exportAll",f="importAll",g="showHelp",m=function(e,t,n){return new i("ProfileManager_"+e).execute({functionName:"parallel.internal.ui.MatlabProfileManager."+e,args:t||[],nargout:n||0})};return e(null,{initializeProfileManager:function(){return o?m(r,[],1):new i("ProfilePeerModelManager_Startup").execute({functionName:"com.mathworks.toolbox.distcomp.ui.profile.ProfileUtils.getProfileManager"})},addProfile:function(e,t){const i=[e];return t&&i.push(t),m(a,i)},deleteProfile:function(e){return m(s,[e])},cloneProfile:function(e){return m(l,[e])},renameProfile:function(e,t){return m(c,[e,t])},setDefaultProfile:function(e){return m(d,[e])},exportProfile:function(e,t){return m(h,["Profile",e,t])},exportAllProfiles:function(e){return m(p,[e])},importProfile:function(e){var i=new t;return m(f,[e],1).then((function(e){e&&e[0]?i.reject(e[0]):i.resolve()}),i.reject),i.promise},showHelp:function(){return m(g)},setValues:function(e,t,i,n,o,r){return m(u,Array.prototype.concat(e,n,t,o,i,r))},getProfileNames:function(){return new i("ProfileExecutor_getProfileNames").execute({functionName:"parallel.clusterProfiles",nargout:2})},getDefaultProfileName:function(){return new i("ProfileExecutor_getDefaultProfileName").execute({functionName:"parallel.defaultClusterProfile",nargout:1})},getFactoryProfileNames:function(){return new i("ProfileExecutor_getFactoryProfileNames").execute({functionName:"parallel.internal.settings.getFactoryProfileNames",nargout:1})},isLocalClusterEnabled:function(){var e=new t;return new i("ProfileExecutor_isLocalClusterEnabled").execute({functionName:"matlab.internal.parallel.isLocalClusterEnabled",nargout:1}).then((function(t){if(!t||1!==t.length)throw new Error("Expected a single response from isLocalClusterEnabled");e.resolve(t[0])}),e.reject),e.promise}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(516),i(517),i(345),i(209),i(222),i(1658),i(702),i(511)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){const l=t.default,c=e.default,d=i.default,u=window.mf.zero;function h(e){return e<0?e:1e3*e}class p extends d{constructor(e){super(),this._provider=e}transactionCommitted(e){this._provider.update(e.model)}}return class extends o{constructor(){super(),this._sessionMap={},this._model=new u.Model,this._model.addDeepListener(new p(this)),this._channel=new c({inChannel:"/parallel/plr/sessioninfo/publish",outChannel:"/parallel/plr/sessioninfo/subscribe"})}async initialize(){if(this._sync)throw new Error("Session mf0 channel has already been initialized.");await(new s).execute({functionName:"parallel.internal.pool.getMfModel"}),await this._channel.start(),n.debug("Started mf0 channel for parallel session communication."),this._sync=new l(this._model,this._channel),await this._sync.fetchModelWithDataDefinition(),this._sync.start(),this.update(this._model)}update(e){[...e.topLevelElements.entries()].map(([e,t])=>{const i=function(e,t){return{internalId:e,id:t.SessionId,profileName:t.ProfileName,clusterType:t.ClusterType,state:t.State.literal,size:t.SessionSize,numWorkersBusy:t.NumWorkersBusy,sessionIdleAt:h(t.SessionIdleAt),idleShutdownTimeout:t.IdleShutdownTimeoutSeconds>Number.MAX_SAFE_INTEGER?-1:t.IdleShutdownTimeoutSeconds,startTime:h(t.StartTime),finishTime:h(t.FinishTime),error:t.Error,restartOnClusterChange:t.RestartOnClusterChange,restartOnPreferredNumWorkersChange:t.RestartOnPreferredNumWorkersChange}}(e,t),n=this._sessionMap[i.id];n?n.update(i):this._sessionMap[i.id]=new r(i)}),this.emit("changed",{sessions:Object.values(this._sessionMap)})}destroy(){this._sync&&(this._sync.stop(),this._sync.destroy(),n.debug("Stopped mf0 channel for parallel session communication."))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(236),i(8676),i(1021)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(null,{constructor:function(){this.id=null,this.resetStage(),this.error=null,this.shuttingDown=!1},hasError:function(){return!!this.error},isErrorStage:function(){return this.stage===i.ERROR},resetStage:function(){this.stage=null},getTooltipText:function(){var e,o;return this.stage?(e=n["Tooltip_Cluster_"+this.stage],this.stage===i.ERROR?e=t.substitute(e,[this.error]):this.stage===i.CLUSTER_STATE?e=n["Tooltip_Cluster_State_"+this.state]:this.stage===i.WORKERS_REGISTERED&&(e=0===(o=this.workersRequested-this.workersRegistered)?n.Tooltip_Cluster_ALL_WORKERS_REGISTERED:t.substitute(e,[this.workersRegistered,this.workersRequested,o])),e):""}})}),e,t),e.exports=o},function(e,t,i){e.exports={UNDEFINED:"UNDEFINED",CLUSTER_INFO_RECEIVED:"CLUSTER_INFO_RECEIVED",CLUSTER_STATE:"CLUSTER_STATE",HEADNODE_CONNECTED:"HEADNODE_CONNECTED",COMMUNICATION_SUCCESS:"COMMUNICATION_SUCCESS",WORKERS_REGISTERED:"WORKERS_REGISTERED",ERROR:"ERROR"}},function(e,t,i){e.exports={MenuPreferences:"並列基本設定",MenuStart:"並列プールの起動",MenuStop:"並列プールのシャットダウン",ShutdownNow:'(<a data-link-type="shutdown">今すぐシャットダウン</a>)',StopClusterLabel:"クラスターとプールを強制的にシャットダウンしますか?",StopClusterTitle:"クラスターの強制シャットダウン",Tooltip_ABOUT_TO_START_NORMAL_Named:"${0} で並列プールを起動中",Tooltip_ABOUT_TO_START_NORMAL_Unnamed:"並列プールを起動中",Tooltip_ABOUT_TO_START_VERBOSE_Named_Over1hr:"${1} から約 ${2} 時間 ${3} 分、${0} で並列プールを起動中",Tooltip_ABOUT_TO_START_VERBOSE_Named_Over1min:"${1} から約 ${2} 分間、${0} で並列プールを起動中",Tooltip_ABOUT_TO_START_VERBOSE_Named_Under1min:"${0} で並列プールを起動中",Tooltip_ABOUT_TO_START_VERBOSE_Unnamed_Over1hr:"${0} から約 ${1} 時間 ${2} 分、並列プールを起動中",Tooltip_ABOUT_TO_START_VERBOSE_Unnamed_Over1min:"${0} から約 ${1} 分間、並列プールを起動中",Tooltip_ABOUT_TO_START_VERBOSE_Unnamed_Under1min:"並列プールを起動中",Tooltip_BUSY_NORMAL_Named:"${0} の並列プールは実行中です<br/>ワーカー数: ${1}",Tooltip_BUSY_NORMAL_Unnamed:"並列プールは実行中です<br/>ワーカー数: ${0}",Tooltip_BUSY_VERBOSE_Named_Over1hr:"${0} での並列プールのこれまでの実行時間は (${2} から) 約 ${3} 時間 ${4} 分です<br/>ワーカー数: ${1}",Tooltip_BUSY_VERBOSE_Named_Over1min:"${0} での並列プールのこれまでの実行時間は (${2} から) 約 ${3} 分です<br/>ワーカー数: ${1}",Tooltip_BUSY_VERBOSE_Named_Under1min:"${0} での並列プールのこれまでの実行時間は 1 分未満です<br/>ワーカー数: ${1}",Tooltip_BUSY_VERBOSE_Unnamed_Over1hr:"並列プールのこれまでの実行時間は (${1} から) 約 ${2} 時間 ${3} 分です<br/>ワーカー数: ${0}",Tooltip_BUSY_VERBOSE_Unnamed_Over1min:"並列プールのこれまでの実行時間は (${1} から) 約 ${2} 分です<br/>ワーカー数: ${0}",Tooltip_BUSY_VERBOSE_Unnamed_Under1min:"並列プールのこれまでの実行時間は 1 分未満です<br/>ワーカー数: ${0}",Tooltip_CLOSED_NORMAL_Named:"並列プールなし",Tooltip_CLOSED_NORMAL_Named_Errored:'エラーにより ${0} 上の並列プールはシャットダウンしました (<a data-link-type="more">詳細情報</a>)。',Tooltip_CLOSED_NORMAL_Unnamed:"並列プールなし",Tooltip_CLOSED_NORMAL_Unnamed_Errored:'エラーにより並列プールはシャットダウンしました (<a data-link-type="more">詳細情報</a>)。',Tooltip_CLOSED_VERBOSE_Named_Errored_Over1hr:'${0} 上の並列プールは (${1} まで) 約 ${2} 時間 ${3} 分の実行後、エラーによりシャットダウンしました (<a data-link-type="more">詳細情報</a>)。',Tooltip_CLOSED_VERBOSE_Named_Errored_Over1min:'${0} 上の並列プールは (${1} まで) 約 ${2} 分の実行後、エラーによりシャットダウンしました (<a data-link-type="more">詳細情報</a>)。',Tooltip_CLOSED_VERBOSE_Named_Errored_Under1min:'${0} 上の並列プールは (${1} まで) 1 分未満の実行後、エラーによりシャットダウンしました (<a data-link-type="more">詳細情報</a>)。',Tooltip_CLOSED_VERBOSE_Named_Over1hr:"並列プールがありません。前回の ${0} 上のプールの実行時間は (${1} まで) 約 ${2} 時間 ${3} 分でした",Tooltip_CLOSED_VERBOSE_Named_Over1min:"並列プールがありません。前回の ${0} 上のプールの実行時間は (${1} まで) 約 ${2} 分でした",Tooltip_CLOSED_VERBOSE_Named_Under1min:"並列プールがありません。前回の ${0} 上のプールの実行時間は (${1} まで) 1 分未満でした",Tooltip_CLOSED_VERBOSE_Unnamed_Errored_Over1hr:'並列プールは (${0} まで) 約 ${1} 時間 ${2} 分の実行後、エラーによりシャットダウンしました (<a data-link-type="more">詳細情報</a>)。',Tooltip_CLOSED_VERBOSE_Unnamed_Errored_Over1min:'並列プールは (${0} まで) 約 ${1} 分の実行後、エラーによりシャットダウンしました (<a data-link-type="more">詳細情報</a>)。',Tooltip_CLOSED_VERBOSE_Unnamed_Errored_Under1min:'並列プールは (${0} まで) 1 分未満の実行後、エラーによりシャットダウンしました (<a data-link-type="more">詳細情報</a>)。',Tooltip_CLOSED_VERBOSE_Unnamed_Over1hr:"並列プールがありません。前回のプールの実行時間は (${0} まで) 約 ${1} 時間 ${2} 分でした",Tooltip_CLOSED_VERBOSE_Unnamed_Over1min:"並列プールがありません。前回のプールの実行時間は (${0} まで) 約 ${1} 分でした",Tooltip_CLOSED_VERBOSE_Unnamed_Under1min:"並列プールがありません。前回のプールの実行時間は (${0} まで) 1 分未満でした",Tooltip_Cluster_ALL_WORKERS_REGISTERED:"ワーカーでプールが起動するのを待機中です。",Tooltip_Cluster_CLUSTER_INFO_RECEIVED:"クラスター情報を受信しました。",Tooltip_Cluster_COMMUNICATION_SUCCESS:"通信テストが成功しました。",Tooltip_Cluster_ERROR:"${0}",Tooltip_Cluster_HEADNODE_CONNECTED:"クラスターのヘッドノードに接続しました。",Tooltip_Cluster_State_BUILDING:"クラウド クラスターをビルドしています。",Tooltip_Cluster_State_PROVISIONING:"クラウド クラスターを設定しています。",Tooltip_Cluster_State_READY:"クラウド クラスターのヘッドノードは動作中で、接続を受け付けています。",Tooltip_Cluster_State_STARTING:"クラウド クラスターを起動しています。",Tooltip_Cluster_State_STOPPED:"クラウド クラスターが動作していません。",Tooltip_Cluster_State_STOPPING:"クラウド クラスターをシャットダウンしています。",Tooltip_Cluster_State_WAITING_FOR_NODES:"ワーカーが起動するのを待機中です。",Tooltip_Cluster_State_WARM:"ヘッドノードが動作中です。割り当てを待っています。",Tooltip_Cluster_WORKERS_REGISTERED:"起動済みのワーカー: ${0}<br/>要求されたワーカー: ${1}<br/>起動待機中のワーカー: ${2}",Tooltip_Details_NORMAL:"さらに詳細を表示",Tooltip_Details_VERBOSE:"詳細を簡易表示",Tooltip_FAILED_TO_START_NORMAL_Named:'${0} で並列プールを起動できませんでした (<a data-link-type="more">詳細情報</a>)。',Tooltip_FAILED_TO_START_NORMAL_Unnamed:'並列プールを起動できませんでした (<a data-link-type="more">詳細情報</a>)。',Tooltip_FAILED_TO_START_VERBOSE_Named_Over1hr:'${1} から約 ${2} 時間 ${3} 分試行しましたが、${0} で並列プールを起動できませんでした (<a data-link-type="more">詳細情報</a>)。',Tooltip_FAILED_TO_START_VERBOSE_Named_Over1min:'${1} から約 ${2} 分間試行しましたが、${0} で並列プールを起動できませんでした (<a data-link-type="more">詳細情報</a>)。',Tooltip_FAILED_TO_START_VERBOSE_Named_Under1min:'${0} で並列プールを起動できませんでした (<a data-link-type="more">詳細情報</a>)。',Tooltip_FAILED_TO_START_VERBOSE_Unnamed_Over1hr:'${0} から約 ${1} 時間 ${2} 分試行しましたが、並列プールを起動できませんでした (<a data-link-type="more">詳細情報</a>)。',Tooltip_FAILED_TO_START_VERBOSE_Unnamed_Over1min:'${0} から約 ${1} 分間試行しましたが、並列プールを起動できませんでした (<a data-link-type="more">詳細情報</a>)。',Tooltip_FAILED_TO_START_VERBOSE_Unnamed_Under1min:'並列プールを起動できませんでした (<a data-link-type="more">詳細情報</a>)。',Tooltip_IDLE_NORMAL_Named:"${0} で並列プールが実行中です。アイドル状態が続いた場合は ${2} 分後にシャットダウンします。${3}<br/>ワーカー数: ${1}",Tooltip_IDLE_NORMAL_Named_NoTimeout:"${0} の並列プールは実行中です。${2}<br/>ワーカー数: ${1}",Tooltip_IDLE_NORMAL_Named_WithExtend:'${0} で並列プールが実行中です。アイドル状態が続いた場合は ${2} 分後にシャットダウンします (<a data-link-type="extend">${3} 分にリセット</a>)。${4}<br/>ワーカー数: ${1}',Tooltip_IDLE_NORMAL_Named_WithExtend_TimeoutUnder1min:'${0} で並列プールが実行中です。アイドル状態が続いた場合は 1 分未満でシャットダウンします (<a data-link-type="extend">${2} 分にリセット</a>)。${3}<br/>ワーカー数: ${1}',Tooltip_IDLE_NORMAL_Unnamed:"並列プールが実行中です。アイドル状態が続いた場合は ${1} 分後にシャットダウンします。${2}<br/>ワーカー数: ${0}",Tooltip_IDLE_NORMAL_Unnamed_NoTimeout:"並列プールが実行中です。${1}<br/>ワーカー数: ${0}",Tooltip_IDLE_NORMAL_Unnamed_WithExtend:'並列プールが実行中です。アイドル状態が続いた場合は ${1} 分後にシャットダウンします (<a data-link-type="extend">${2} 分にリセット</a>)。${3}<br/>ワーカー数: ${0}',Tooltip_IDLE_NORMAL_Unnamed_WithExtend_TimeoutUnder1min:'並列プールが実行中です。アイドル状態が続いた場合は 1 分未満でシャットダウンします(<a data-link-type="extend">${1} 分にリセット</a>)。${2}<br/>ワーカー数: ${0}',Tooltip_IDLE_VERBOSE_Named_NoTimeout_Over1hr:"${0} での並列プールのこれまでの実行時間は (${2} から) 約 ${3} 時間 ${4} 分です。${5}<br/>ワーカー数: ${1}",Tooltip_IDLE_VERBOSE_Named_NoTimeout_Over1min:"${0} での並列プールのこれまでの実行時間は (${2} から) 約 ${3} 分です。${4}<br/>ワーカー数: ${1}",Tooltip_IDLE_VERBOSE_Named_NoTimeout_Under1min:"${0} での並列プールのこれまでの実行時間は 1 分未満です。${2}<br/>ワーカー数: ${1}",Tooltip_IDLE_VERBOSE_Named_Over1hr:"${0} での並列プールのこれまでの実行時間は (${3} から) 約 ${4} 時間 ${5} 分です。アイドル状態が続いた場合は ${2} 分後にシャットダウンします。${6}<br/>ワーカー数: ${1}",Tooltip_IDLE_VERBOSE_Named_Over1min:"${0} での並列プールのこれまでの実行時間は (${3} から) 約 ${4} 分です。アイドル状態が続いた場合は ${2} 分後にシャットダウンします。${5}<br/>ワーカー数: ${1}",Tooltip_IDLE_VERBOSE_Named_Under1min:"${0} での並列プールのこれまでの実行時間は 1 分未満です。アイドル状態が続いた場合は ${2} 分後にシャットダウンします。${3}<br/>ワーカー数: ${1}",Tooltip_IDLE_VERBOSE_Named_WithExtend_Over1hr:'${0} での並列プールのこれまでの実行時間は (${4} から) 約 ${5} 時間 ${6} 分です。アイドル状態が続いた場合は ${2} 分後にシャットダウンします (<a data-link-type="extend">${3} 分にリセット</a>)。${7}<br/>ワーカー数: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_Over1min:'${0} での並列プールのこれまでの実行時間は (${4} から) 約 ${5} 分です。アイドル状態が続いた場合は ${2} 分後にシャットダウンします (<a data-link-type="extend">${3} 分にリセット</a>)。${6}<br/>ワーカー数: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_TimeoutUnder1min_Over1hr:'${0} での並列プールのこれまでの実行時間は (${3} から) 約 ${4} 時間 ${5} 分です。アイドル状態が続いた場合は 1 分未満でシャットダウンします (<a data-link-type="extend">${2} 分にリセット</a>)。${6}<br/>ワーカー数: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_TimeoutUnder1min_Over1min:'${0} での並列プールのこれまでの実行時間は (${3} から) 約 ${4} 分です。アイドル状態が続いた場合は 1 分未満でシャットダウンします (<a data-link-type="extend">${2} 分にリセット</a>)。${5}<br/>ワーカー数: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_TimeoutUnder1min_Under1min:'${0} での並列プールのこれまでの実行時間は 1 分未満です。アイドル状態が続いた場合は 1 分未満でシャットダウンします (<a data-link-type="extend">${2} 分にリセット</a>)。${3}<br/>ワーカー数: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_Under1min:'${0} での並列プールのこれまでの実行時間は 1 分未満です。アイドル状態が続いた場合は ${2} 分後にシャットダウンします (<a data-link-type="extend">${3} 分にリセット</a>)。${4}<br/>ワーカー数: ${1}',Tooltip_IDLE_VERBOSE_Unnamed_NoTimeout_Over1hr:"並列プールのこれまでの実行時間は (${1} から) 約 ${2} 時間 ${3} 分です。${4}<br/>ワーカー数: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_NoTimeout_Over1min:"並列プールのこれまでの実行時間は (${1} から) 約 ${2} 分です。${3}<br/>ワーカー数: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_NoTimeout_Under1min:"並列プールのこれまでの実行時間は 1 分未満です。${1}<br/>ワーカー数: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_Over1hr:"並列プールのこれまでの実行時間は (${2} から) 約 ${3} 時間 ${4} 分です。アイドル状態が続いた場合は ${1} 分後にシャットダウンします。${5}<br/>ワーカー数: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_Over1min:"並列プールのこれまでの実行時間は (${2} から) 約 ${3} 分です。アイドル状態が続いた場合は ${1} 分後にシャットダウンします。${4}<br/>ワーカー数: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_Under1min:"並列プールのこれまでの実行時間は 1 分未満です。アイドル状態が続いた場合は ${1} 分後にシャットダウンします。${2}<br/>ワーカー数: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_Over1hr:'並列プールのこれまでの実行時間は (${3} から) 約 ${4} 時間 ${5} 分です。アイドル状態が続いた場合は ${1} 分後にシャットダウンします (<a data-link-type="extend">${2} 分にリセット</a>)。${6}<br/>ワーカー数: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_Over1min:'並列プールのこれまでの実行時間は (${3} から) 約 ${4} 分です。アイドル状態が続いた場合は ${1} 分後にシャットダウンします (<a data-link-type="extend">${2} 分にリセット</a>)。${5}<br/>ワーカー数: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_TimeoutUnder1min_Over1hr:'並列プールのこれまでの実行時間は (${2} から) 約 ${3} 時間 ${4} 分です。アイドル状態が続いた場合は 1 分未満でシャットダウンします (<a data-link-type="extend">${1} 分にリセット</a>)。${5}<br/>ワーカー数: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_TimeoutUnder1min_Over1min:'並列プールのこれまでの実行時間は (${2} から) 約 ${3} 分です。アイドル状態が続いた場合は 1 分未満でシャットダウンします (<a data-link-type="extend">${1} 分にリセット</a>)。${4}<br/>ワーカー数: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_TimeoutUnder1min_Under1min:'並列プールのこれまでの実行時間は 1 分未満です。アイドル状態が続いた場合は 1 分未満でシャットダウンします (<a data-link-type="extend">${1} 分にリセット</a>)。${2}<br/>ワーカー数: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_Under1min:'並列プールのこれまでの実行時間は 1 分未満です。アイドル状態が続いた場合は ${1} 分後にシャットダウンします (<a data-link-type="extend">${2} 分にリセット</a>)。${3}<br/>ワーカー数: ${0}',Tooltip_NoPool:"並列プールなし",Tooltip_STARTING_NORMAL_Named:"${0} で並列プールを起動中です。${1}",Tooltip_STARTING_NORMAL_Named_Stopping:"${0} で並列プールを停止中",Tooltip_STARTING_NORMAL_Unnamed:"タイプ ${0} のクラスター上で並列プールを起動中です。${1}",Tooltip_STARTING_NORMAL_Unnamed_Stopping:"タイプ ${0} のクラスターで並列プールを停止中",Tooltip_STARTING_VERBOSE_Named_Over1hr:"${1} から約 ${2} 時間 ${3} 分、${0} で並列プールを起動中です。${4}",Tooltip_STARTING_VERBOSE_Named_Over1min:"${1} から約 ${2} 分間、${0} で並列プールを起動中です。${3}",Tooltip_STARTING_VERBOSE_Named_Stopping:"${0} で並列プールを停止中",Tooltip_STARTING_VERBOSE_Named_Under1min:"${0} で並列プールを起動中です。${1}",Tooltip_STARTING_VERBOSE_Unnamed_Over1hr:"${1} から約 ${2} 時間 ${3} 分、タイプ ${0} のクラスターで並列プールを起動中です。${4}",Tooltip_STARTING_VERBOSE_Unnamed_Over1min:"${1} から約 ${2} 分間、タイプ ${0} のクラスターで並列プールを起動中です。${3}",Tooltip_STARTING_VERBOSE_Unnamed_Stopping:"タイプ ${0} のクラスターで並列プールを停止中",Tooltip_STARTING_VERBOSE_Unnamed_Under1min:"タイプ ${0} のクラスター上で並列プールを起動中です。${1}"}},function(e,t,i){e.exports={MenuPreferences:"병렬 기본 설정",MenuStart:"병렬 풀 시작",MenuStop:"병렬 풀 종료",ShutdownNow:'(<a data-link-type="shutdown">지금 종료</a>)',StopClusterLabel:"클러스터와 풀을 강제로 종료하시겠습니까?",StopClusterTitle:"클러스터 강제 종료",Tooltip_ABOUT_TO_START_NORMAL_Named:"${0}에서 병렬 풀을 시작하는 중",Tooltip_ABOUT_TO_START_NORMAL_Unnamed:"병렬 풀을 시작하는 중",Tooltip_ABOUT_TO_START_VERBOSE_Named_Over1hr:"${1}부터 (약 ${2}시간 ${3}분 동안) ${0}에서 병렬 풀을 시작하는 중",Tooltip_ABOUT_TO_START_VERBOSE_Named_Over1min:"${1}부터 (약 ${2}분 동안) ${0}에서 병렬 풀을 시작하는 중",Tooltip_ABOUT_TO_START_VERBOSE_Named_Under1min:"${0}에서 병렬 풀을 시작하는 중",Tooltip_ABOUT_TO_START_VERBOSE_Unnamed_Over1hr:"${0}부터 (약 ${1}시간 ${2}분 동안) 병렬 풀을 시작하는 중입니다",Tooltip_ABOUT_TO_START_VERBOSE_Unnamed_Over1min:"${0}부터 (약 ${1}분 동안) 병렬 풀을 시작하는 중",Tooltip_ABOUT_TO_START_VERBOSE_Unnamed_Under1min:"병렬 풀을 시작하는 중",Tooltip_BUSY_NORMAL_Named:"${0}에서 병렬 풀이 실행 중입니다.<br/>워커 개수: ${1}",Tooltip_BUSY_NORMAL_Unnamed:"병렬 풀이 실행 중입니다.<br/>워커 개수: ${0}",Tooltip_BUSY_VERBOSE_Named_Over1hr:"(${2}부터) 약 ${3}시간 ${4}분 동안 ${0}에서 병렬 풀이 실행 중입니다.<br/>워커 개수: ${1}",Tooltip_BUSY_VERBOSE_Named_Over1min:"(${2}부터) 약 ${3}분 동안 ${0}에서 병렬 풀이 실행 중입니다.<br/>워커 개수: ${1}",Tooltip_BUSY_VERBOSE_Named_Under1min:"1분 미만 동안 ${0}에서 병렬 풀이 실행 중입니다.<br/>워커 개수: ${1}",Tooltip_BUSY_VERBOSE_Unnamed_Over1hr:"(${1}부터) 약 ${2}시간 ${3}분 동안 병렬 풀이 실행 중입니다.<br/>워커 개수: ${0}",Tooltip_BUSY_VERBOSE_Unnamed_Over1min:"(${1}부터) 약 ${2}분 동안 병렬 풀이 실행 중입니다.<br/>워커 개수: ${0}",Tooltip_BUSY_VERBOSE_Unnamed_Under1min:"1분 미만 동안 병렬 풀이 실행 중입니다.<br/>워커 개수: ${0}",Tooltip_CLOSED_NORMAL_Named:"병렬 풀이 없음",Tooltip_CLOSED_NORMAL_Named_Errored:'오류로 인해 ${0}에서 병렬 풀이 종료되었습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_CLOSED_NORMAL_Unnamed:"병렬 풀이 없음",Tooltip_CLOSED_NORMAL_Unnamed_Errored:'오류로 인해 병렬 풀이 종료되었습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_CLOSED_VERBOSE_Named_Errored_Over1hr:'${0}에서 병렬 풀이 (${1}까지) 약 ${2}시간 ${3}분 동안 실행된 후 오류로 인해 종료되었습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_CLOSED_VERBOSE_Named_Errored_Over1min:'${0}에서 병렬 풀이 (${1}까지) 약 ${2}분 동안 실행된 후 오류로 인해 종료되었습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_CLOSED_VERBOSE_Named_Errored_Under1min:'${0}에서 병렬 풀이 (${1}까지) 1분 미만 동안 실행된 후 오류로 인해 종료되었습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_CLOSED_VERBOSE_Named_Over1hr:"병렬 풀이 없습니다. ${0}에서 마지막 풀이 (${1}까지) 약 ${2}시간 ${3}분 동안 실행되었습니다.",Tooltip_CLOSED_VERBOSE_Named_Over1min:"병렬 풀이 없습니다. ${0}에서 마지막 풀이 (${1}까지) 약 ${2}분 동안 실행되었습니다.",Tooltip_CLOSED_VERBOSE_Named_Under1min:"병렬 풀이 없습니다. ${0}에서 마지막 풀이 (${1}까지) 1분 미만 동안 실행되었습니다.",Tooltip_CLOSED_VERBOSE_Unnamed_Errored_Over1hr:'병렬 풀이 (${0}까지) 약 ${1}시간 ${2}분 동안 실행된 후 오류로 인해 종료되었습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_CLOSED_VERBOSE_Unnamed_Errored_Over1min:'병렬 풀이 (${0}까지) 약 ${1}분 동안 실행된 후 오류로 인해 종료되었습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_CLOSED_VERBOSE_Unnamed_Errored_Under1min:'병렬 풀이 (${0}까지) 1분 미만 동안 실행된 후 오류로 인해 종료되었습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_CLOSED_VERBOSE_Unnamed_Over1hr:"병렬 풀이 없습니다. 마지막 풀이 (${0}까지) 약 ${1}시간 ${2}분 동안 실행되었습니다.",Tooltip_CLOSED_VERBOSE_Unnamed_Over1min:"병렬 풀이 없습니다. 마지막 풀이 (${0}까지) 약 ${1}분 동안 실행되었습니다.",Tooltip_CLOSED_VERBOSE_Unnamed_Under1min:"병렬 풀이 없습니다. 마지막 풀이 (${0}까지) 1분 미만 동안 실행되었습니다.",Tooltip_Cluster_ALL_WORKERS_REGISTERED:"워커에서 풀이 시작되기를 기다리는 중입니다.",Tooltip_Cluster_CLUSTER_INFO_RECEIVED:"클러스터 정보를 받았습니다.",Tooltip_Cluster_COMMUNICATION_SUCCESS:"통신 테스트에 성공했습니다.",Tooltip_Cluster_ERROR:"${0}",Tooltip_Cluster_HEADNODE_CONNECTED:"클러스터 헤드 노드에 연결되었습니다.",Tooltip_Cluster_State_BUILDING:"클라우드 클러스터를 구축하는 중입니다.",Tooltip_Cluster_State_PROVISIONING:"클라우드 클러스터를 설정하는 중입니다.",Tooltip_Cluster_State_READY:"클라우드 클러스터 헤드 노드가 실행 중이며 연결을 허용합니다.",Tooltip_Cluster_State_STARTING:"클라우드 클러스터가 시작 중입니다.",Tooltip_Cluster_State_STOPPED:"클라우드 클러스터가 실행 중이 아닙니다.",Tooltip_Cluster_State_STOPPING:"클라우드 클러스터가 종료 중입니다.",Tooltip_Cluster_State_WAITING_FOR_NODES:"워커가 시작되기를 기다리는 중입니다.",Tooltip_Cluster_State_WARM:"헤드 노드가 실행 중이며 사용자에게 할당되기를 기다리는 중입니다.",Tooltip_Cluster_WORKERS_REGISTERED:"시작된 워커 개수: ${0}<br/>요청된 워커 개수: ${1}<br/>시작 대기 중인 워커 개수: ${2}",Tooltip_Details_NORMAL:"정보를 세부적으로 표시합니다.",Tooltip_Details_VERBOSE:"정보를 간단히 표시합니다.",Tooltip_FAILED_TO_START_NORMAL_Named:'${0}에서 병렬 풀을 시작하지 못했습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_FAILED_TO_START_NORMAL_Unnamed:'병렬 풀을 시작하지 못했습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_FAILED_TO_START_VERBOSE_Named_Over1hr:'(${1}부터) 약 ${2}시간 ${3}분 동안 시도했지만 ${0}에서 병렬 풀을 시작하지 못했습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_FAILED_TO_START_VERBOSE_Named_Over1min:'(${1}부터) 약 ${2}분 동안 시도했지만 ${0}에서 병렬 풀을 시작하지 못했습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_FAILED_TO_START_VERBOSE_Named_Under1min:'${0}에서 병렬 풀을 시작하지 못했습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_FAILED_TO_START_VERBOSE_Unnamed_Over1hr:'(${0}부터) 약 ${1}시간 ${2}분 동안 시도했지만 병렬 풀을 시작하지 못했습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_FAILED_TO_START_VERBOSE_Unnamed_Over1min:'(${0}부터) 약 ${1}분 동안 시도했지만 병렬 풀을 시작하지 못했습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_FAILED_TO_START_VERBOSE_Unnamed_Under1min:'병렬 풀을 시작하지 못했습니다. (<a data-link-type="more">추가 정보</a>)',Tooltip_IDLE_NORMAL_Named:"${0}에서 병렬 풀이 실행 중이며 ${2}분 후에도 여전히 유휴 상태이면 종료됩니다. ${3}<br/>워커 개수: ${1}",Tooltip_IDLE_NORMAL_Named_NoTimeout:"${0}에서 병렬 풀이 실행 중입니다. ${2}<br/>워커 개수: ${1}",Tooltip_IDLE_NORMAL_Named_WithExtend:'${0}에서 병렬 풀이 실행 중이며 ${2}분 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${3}분으로 재설정</a>) ${4}<br/>워커 개수: ${1}',Tooltip_IDLE_NORMAL_Named_WithExtend_TimeoutUnder1min:'${0}에서 병렬 풀이 실행 중이며 1분 미만 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${2}분으로 재설정</a>) ${3}<br/>워커 개수: ${1}',Tooltip_IDLE_NORMAL_Unnamed:"병렬 풀이 실행 중이며 ${1}분 후에도 여전히 유휴 상태이면 종료됩니다. ${2}<br/>워커 개수: ${0}",Tooltip_IDLE_NORMAL_Unnamed_NoTimeout:"병렬 풀이 실행 중입니다. ${1}<br/>워커 개수: ${0}",Tooltip_IDLE_NORMAL_Unnamed_WithExtend:'병렬 풀이 실행 중이며 ${1}분 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${2}분으로 재설정</a>) ${3}<br/>워커 개수: ${0}',Tooltip_IDLE_NORMAL_Unnamed_WithExtend_TimeoutUnder1min:'병렬 풀이 실행 중이며 1분 미만 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${1}분으로 재설정</a>) ${2}<br/>워커 개수: ${0}',Tooltip_IDLE_VERBOSE_Named_NoTimeout_Over1hr:"(${2}부터) 약 ${3}시간 ${4}분 동안 ${0}에서 병렬 풀이 실행 중입니다. ${5}<br/>워커 개수: ${1}",Tooltip_IDLE_VERBOSE_Named_NoTimeout_Over1min:"(${2}부터) 약 ${3}분 동안 ${0}에서 병렬 풀이 실행 중입니다. ${4}<br/>워커 개수: ${1}",Tooltip_IDLE_VERBOSE_Named_NoTimeout_Under1min:"1분 미만 동안 ${0}에서 병렬 풀이 실행 중입니다. ${2}<br/>워커 개수: ${1}",Tooltip_IDLE_VERBOSE_Named_Over1hr:"(${3}부터) 약 ${4}시간 ${5}분 동안 ${0}에서 병렬 풀이 실행 중이며 ${2}분 후에도 여전히 유휴 상태이면 종료됩니다. ${6}<br/>워커 개수: ${1}",Tooltip_IDLE_VERBOSE_Named_Over1min:"(${3}부터) 약 ${4}분 동안 ${0}에서 병렬 풀이 실행 중이며 ${2}분 후에도 여전히 유휴 상태이면 종료됩니다. ${5}<br/>워커 개수: ${1}",Tooltip_IDLE_VERBOSE_Named_Under1min:"1분 미만 동안 ${0}에서 병렬 풀이 실행 중이며 ${2}분 후에도 여전히 유휴 상태이면 종료됩니다. ${3}<br/>워커 개수: ${1}",Tooltip_IDLE_VERBOSE_Named_WithExtend_Over1hr:'(${4}부터) 약 ${5}시간 ${6}분 동안 ${0}에서 병렬 풀이 실행 중이며 ${2}분 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${3}분으로 재설정</a>) ${7}<br/>워커 개수: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_Over1min:'(${4}부터) 약 ${5}분 동안 ${0}에서 병렬 풀이 실행 중이며 ${2}분 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${3}분으로 재설정</a>) ${6}<br/>워커 개수: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_TimeoutUnder1min_Over1hr:'(${3}부터) 약 ${4}시간 ${5}분 동안 ${0}에서 병렬 풀이 실행 중이며 1분 미만 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${2}분으로 재설정</a>) ${6}<br/>워커 개수: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_TimeoutUnder1min_Over1min:'(${3}부터) 약 ${4}분 동안 ${0}에서 병렬 풀이 실행 중이며 1분 미만 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${2}분으로 재설정</a>) ${5}<br/>워커 개수: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_TimeoutUnder1min_Under1min:'1분 미만 동안 ${0}에서 병렬 풀이 실행 중이며 1분 미만 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${2}분으로 재설정</a>) ${3}<br/>워커 개수: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_Under1min:'1분 미만 동안 ${0}에서 병렬 풀이 실행 중이며 ${2}분 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${3}분으로 재설정</a>) ${4}<br/>워커 개수: ${1}',Tooltip_IDLE_VERBOSE_Unnamed_NoTimeout_Over1hr:"(${1}부터) 약 ${2}시간 ${3}분 동안 병렬 풀이 실행 중입니다. ${4}<br/>워커 개수: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_NoTimeout_Over1min:"(${1}부터) 약 ${2}분 동안 병렬 풀이 실행 중입니다. ${3}<br/>워커 개수: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_NoTimeout_Under1min:"1분 미만 동안 병렬 풀이 실행 중입니다. ${1}<br/>워커 개수: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_Over1hr:"(${2}부터) 약 ${3}시간 ${4}분 동안 병렬 풀이 실행 중이며 ${1}분 후에도 여전히 유휴 상태이면 종료됩니다. ${5}<br/>워커 개수: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_Over1min:"(${2}부터) 약 ${3}분 동안 병렬 풀이 실행 중이며 ${1}분 후에도 여전히 유휴 상태이면 종료됩니다. ${4}<br/>워커 개수: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_Under1min:"1분 미만 동안 병렬 풀이 실행 중이며 ${1}분 후에도 여전히 유휴 상태이면 종료됩니다. ${2}<br/>워커 개수: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_Over1hr:'(${3}부터) 약 ${4}시간 ${5}분 동안 병렬 풀이 실행 중이며 ${1}분 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${2}분으로 재설정</a>) ${6}<br/>워커 개수: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_Over1min:'(${3}부터) 약 ${4}분 동안 병렬 풀이 실행 중이며 ${1}분 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${2}분으로 재설정</a>) ${5}<br/>워커 개수: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_TimeoutUnder1min_Over1hr:'(${2}부터) 약 ${3}시간 ${4}분 동안 병렬 풀이 실행 중이며 1분 미만 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${1}분으로 재설정</a>) ${5}<br/>워커 개수: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_TimeoutUnder1min_Over1min:'(${2}부터) 약 ${3}분 동안 병렬 풀이 실행 중이며 1분 미만 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${1}분으로 재설정</a>) ${4}<br/>워커 개수: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_TimeoutUnder1min_Under1min:'1분 미만 동안 병렬 풀이 실행 중이며 1분 미만 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${1}분으로 재설정</a>) ${2}<br/>워커 개수: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_Under1min:'1분 미만 동안 병렬 풀이 실행 중이며 ${1}분 후에도 여전히 유휴 상태이면 종료됩니다. (<a data-link-type="extend">${2}분으로 재설정</a>) ${3}<br/>워커 개수: ${0}',Tooltip_NoPool:"병렬 풀이 없음",Tooltip_STARTING_NORMAL_Named:"${0}에서 병렬 풀을 시작하는 중입니다. ${1}",Tooltip_STARTING_NORMAL_Named_Stopping:"${0}에서 병렬 풀을 중지하는 중입니다",Tooltip_STARTING_NORMAL_Unnamed:"${0} 유형의 클러스터에서 병렬 풀을 시작하는 중입니다. ${1}",Tooltip_STARTING_NORMAL_Unnamed_Stopping:"${0} 유형의 클러스터에서 병렬 풀을 중지하는 중",Tooltip_STARTING_VERBOSE_Named_Over1hr:"${1}부터 (약 ${2}시간 ${3}분 동안) ${0}에서 병렬 풀을 시작하는 중입니다. ${4}",Tooltip_STARTING_VERBOSE_Named_Over1min:"${1}부터 (약 ${2}분 동안) ${0}에서 병렬 풀을 시작하는 중입니다. ${3}",Tooltip_STARTING_VERBOSE_Named_Stopping:"${0}에서 병렬 풀을 중지하는 중입니다",Tooltip_STARTING_VERBOSE_Named_Under1min:"${0}에서 병렬 풀을 시작하는 중입니다. ${1}",Tooltip_STARTING_VERBOSE_Unnamed_Over1hr:"${1}부터 (약 ${2}시간 ${3}분 동안) 유형 ${0}의 클러스터에서 병렬 풀을 시작하는 중입니다. ${4}",Tooltip_STARTING_VERBOSE_Unnamed_Over1min:"${1}부터 (약 ${2}분 동안) 유형 ${0}의 클러스터에서 병렬 풀을 시작하는 중입니다. ${3}",Tooltip_STARTING_VERBOSE_Unnamed_Stopping:"${0} 유형의 클러스터에서 병렬 풀을 중지하는 중",Tooltip_STARTING_VERBOSE_Unnamed_Under1min:"${0} 유형의 클러스터에서 병렬 풀을 시작하는 중입니다. ${1}"}},function(e,t,i){e.exports={root:{MenuPreferences:"Parallel Preferences",MenuStart:"Start Parallel Pool",MenuStop:"Shut Down Parallel Pool",ShutdownNow:'(<a data-link-type="shutdown">Shut down now</a>)',StopClusterLabel:"Are you sure you want to forcefully shut down the cluster and the pool?",StopClusterTitle:"Forcefully shut down cluster",Tooltip_ABOUT_TO_START_NORMAL_Named:"Starting parallel pool on ${0}",Tooltip_ABOUT_TO_START_NORMAL_Unnamed:"Starting parallel pool",Tooltip_ABOUT_TO_START_VERBOSE_Named_Over1hr:"Starting parallel pool on ${0} since ${1} (for about ${2} h ${3} min)",Tooltip_ABOUT_TO_START_VERBOSE_Named_Over1min:"Starting parallel pool on ${0} since ${1} (for about ${2} min)",Tooltip_ABOUT_TO_START_VERBOSE_Named_Under1min:"Starting parallel pool on ${0}",Tooltip_ABOUT_TO_START_VERBOSE_Unnamed_Over1hr:"Starting parallel pool since ${0} (for about ${1} h ${2} min)",Tooltip_ABOUT_TO_START_VERBOSE_Unnamed_Over1min:"Starting parallel pool since ${0} (for about ${1} min)",Tooltip_ABOUT_TO_START_VERBOSE_Unnamed_Under1min:"Starting parallel pool",Tooltip_BUSY_NORMAL_Named:"Parallel pool on ${0} is running<br/>Number of workers: ${1}",Tooltip_BUSY_NORMAL_Unnamed:"Parallel pool is running<br/>Number of workers: ${0}",Tooltip_BUSY_VERBOSE_Named_Over1hr:"Parallel pool on ${0} has been running for about ${3} h ${4} min (since ${2})<br/>Number of workers: ${1}",Tooltip_BUSY_VERBOSE_Named_Over1min:"Parallel pool on ${0} has been running for about ${3} min (since ${2})<br/>Number of workers: ${1}",Tooltip_BUSY_VERBOSE_Named_Under1min:"Parallel pool on ${0} has been running for less than a minute<br/>Number of workers: ${1}",Tooltip_BUSY_VERBOSE_Unnamed_Over1hr:"Parallel pool has been running for about ${2} h ${3} min (since ${1})<br/>Number of workers: ${0}",Tooltip_BUSY_VERBOSE_Unnamed_Over1min:"Parallel pool has been running for about ${2} min (since ${1})<br/>Number of workers: ${0}",Tooltip_BUSY_VERBOSE_Unnamed_Under1min:"Parallel pool has been running for less than a minute<br/>Number of workers: ${0}",Tooltip_CLOSED_NORMAL_Named:"No parallel pool",Tooltip_CLOSED_NORMAL_Named_Errored:'Parallel pool on ${0} shut down due to error. (<a data-link-type="more">More information</a>)',Tooltip_CLOSED_NORMAL_Unnamed:"No parallel pool",Tooltip_CLOSED_NORMAL_Unnamed_Errored:'Parallel pool shut down due to error. (<a data-link-type="more">More information</a>)',Tooltip_CLOSED_VERBOSE_Named_Errored_Over1hr:'Parallel pool on ${0} shut down due to error after running for about ${2} h ${3} min (until ${1}). (<a data-link-type="more">More information</a>)',Tooltip_CLOSED_VERBOSE_Named_Errored_Over1min:'Parallel pool on ${0} shut down due to error after running for about ${2} min (until ${1}). (<a data-link-type="more">More information</a>)',Tooltip_CLOSED_VERBOSE_Named_Errored_Under1min:'Parallel pool on ${0} shut down due to error after running for less than a minute (until ${1}). (<a data-link-type="more">More information</a>)',Tooltip_CLOSED_VERBOSE_Named_Over1hr:"No parallel pool. Last pool on ${0} ran for about ${2} h ${3} min (until ${1})",Tooltip_CLOSED_VERBOSE_Named_Over1min:"No parallel pool. Last pool on ${0} ran for about ${2} min (until ${1})",Tooltip_CLOSED_VERBOSE_Named_Under1min:"No parallel pool. Last pool on ${0} ran for less than a minute (until ${1})",Tooltip_CLOSED_VERBOSE_Unnamed_Errored_Over1hr:'Parallel pool shut down due to error after running for about ${1} h ${2} min (until ${0}). (<a data-link-type="more">More information</a>)',Tooltip_CLOSED_VERBOSE_Unnamed_Errored_Over1min:'Parallel pool shut down due to error after running for about ${1} min (until ${0}). (<a data-link-type="more">More information</a>)',Tooltip_CLOSED_VERBOSE_Unnamed_Errored_Under1min:'Parallel pool shut down due to error after running for less than a minute (until ${0}). (<a data-link-type="more">More information</a>)',Tooltip_CLOSED_VERBOSE_Unnamed_Over1hr:"No parallel pool. Last pool ran for about ${1} h ${2} min (until ${0})",Tooltip_CLOSED_VERBOSE_Unnamed_Over1min:"No parallel pool. Last pool ran for about ${1} min (until ${0})",Tooltip_CLOSED_VERBOSE_Unnamed_Under1min:"No parallel pool. Last pool ran for less than a minute (until ${0})",Tooltip_Cluster_ALL_WORKERS_REGISTERED:"Waiting for the pool to start on workers.",Tooltip_Cluster_CLUSTER_INFO_RECEIVED:"Received cluster information.",Tooltip_Cluster_COMMUNICATION_SUCCESS:"Communication test succeeded.",Tooltip_Cluster_ERROR:"${0}",Tooltip_Cluster_HEADNODE_CONNECTED:"Cluster headnode connected.",Tooltip_Cluster_State_BUILDING:"The cloud cluster is being built.",Tooltip_Cluster_State_PROVISIONING:"The cloud cluster is being set up for you.",Tooltip_Cluster_State_READY:"The cloud cluster headnode is up and running and accepting connections.",Tooltip_Cluster_State_STARTING:"The cloud cluster is starting up.",Tooltip_Cluster_State_STOPPED:"The cloud cluster is not running.",Tooltip_Cluster_State_STOPPING:"The cloud cluster is shutting down.",Tooltip_Cluster_State_WAITING_FOR_NODES:"Waiting for workers to start.",Tooltip_Cluster_State_WARM:"The headnode is up and running and waiting to be assigned to you.",Tooltip_Cluster_WORKERS_REGISTERED:"Started workers: ${0}<br/>Requested workers: ${1}<br/>Workers waiting to start: ${2}",Tooltip_Details_NORMAL:"Show more details",Tooltip_Details_VERBOSE:"Show fewer details",Tooltip_FAILED_TO_START_NORMAL_Named:'Failed to start parallel pool on ${0}. (<a data-link-type="more">More information</a>)',Tooltip_FAILED_TO_START_NORMAL_Unnamed:'Failed to start parallel pool. (<a data-link-type="more">More information</a>)',Tooltip_FAILED_TO_START_VERBOSE_Named_Over1hr:'Failed to start parallel pool on ${0} after trying for about ${2} h ${3} min (since ${1}). (<a data-link-type="more">More information</a>)',Tooltip_FAILED_TO_START_VERBOSE_Named_Over1min:'Failed to start parallel pool on ${0} after trying for about ${2} min (since ${1}). (<a data-link-type="more">More information</a>)',Tooltip_FAILED_TO_START_VERBOSE_Named_Under1min:'Failed to start parallel pool on ${0}. (<a data-link-type="more">More information</a>)',Tooltip_FAILED_TO_START_VERBOSE_Unnamed_Over1hr:'Failed to start parallel pool after trying for about ${1} h ${2} min (since ${0}). (<a data-link-type="more">More information</a>)',Tooltip_FAILED_TO_START_VERBOSE_Unnamed_Over1min:'Failed to start parallel pool after trying for about ${1} min (since ${0}). (<a data-link-type="more">More information</a>)',Tooltip_FAILED_TO_START_VERBOSE_Unnamed_Under1min:'Failed to start parallel pool. (<a data-link-type="more">More information</a>)',Tooltip_IDLE_NORMAL_Named:"Parallel pool on ${0} is running and will shut down if still idle in ${2} minutes. ${3}<br/>Number of workers: ${1}",Tooltip_IDLE_NORMAL_Named_NoTimeout:"Parallel pool on ${0} is running. ${2}<br/>Number of workers: ${1}",Tooltip_IDLE_NORMAL_Named_WithExtend:'Parallel pool on ${0} is running and will shut down if still idle in ${2} minutes. (<a data-link-type="extend">Reset to ${3} minutes</a>) ${4}<br/>Number of workers: ${1}',Tooltip_IDLE_NORMAL_Named_WithExtend_TimeoutUnder1min:'Parallel pool on ${0} is running and will shut down if still idle in less than a minute. (<a data-link-type="extend">Reset to ${2} minutes</a>) ${3}<br/>Number of workers: ${1}',Tooltip_IDLE_NORMAL_Unnamed:"Parallel pool is running and will shut down if still idle in ${1} minutes. ${2}<br/>Number of workers: ${0}",Tooltip_IDLE_NORMAL_Unnamed_NoTimeout:"Parallel pool is running. ${1}<br/>Number of workers: ${0}",Tooltip_IDLE_NORMAL_Unnamed_WithExtend:'Parallel pool is running and will shut down if still idle in ${1} minutes. (<a data-link-type="extend">Reset to ${2} minutes</a>) ${3}<br/>Number of workers: ${0}',Tooltip_IDLE_NORMAL_Unnamed_WithExtend_TimeoutUnder1min:'Parallel pool is running and will shut down if still idle in less than a minute. (<a data-link-type="extend">Reset to ${1} minutes</a>) ${2}<br/>Number of workers: ${0}',Tooltip_IDLE_VERBOSE_Named_NoTimeout_Over1hr:"Parallel pool on ${0} has been running for about ${3} h ${4} min (since ${2}). ${5}<br/>Number of workers: ${1}",Tooltip_IDLE_VERBOSE_Named_NoTimeout_Over1min:"Parallel pool on ${0} has been running for about ${3} min (since ${2}). ${4}<br/>Number of workers: ${1}",Tooltip_IDLE_VERBOSE_Named_NoTimeout_Under1min:"Parallel pool on ${0} has been running for less than a minute. ${2}<br/>Number of workers: ${1}",Tooltip_IDLE_VERBOSE_Named_Over1hr:"Parallel pool on ${0} has been running for about ${4} h ${5} min (since ${3}) and will shut down if still idle in ${2} minutes. ${6}<br/>Number of workers: ${1}",Tooltip_IDLE_VERBOSE_Named_Over1min:"Parallel pool on ${0} has been running for about ${4} min (since ${3}) and will shut down if still idle in ${2} minutes. ${5}<br/>Number of workers: ${1}",Tooltip_IDLE_VERBOSE_Named_Under1min:"Parallel pool on ${0} has been running for less than a minute and will shut down if still idle in ${2} minutes. ${3}<br/>Number of workers: ${1}",Tooltip_IDLE_VERBOSE_Named_WithExtend_Over1hr:'Parallel pool on ${0} has been running for about ${5} h ${6} min (since ${4}) and will shut down if still idle in ${2} minutes. (<a data-link-type="extend">Reset to ${3} minutes</a>) ${7}<br/>Number of workers: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_Over1min:'Parallel pool on ${0} has been running for about ${5} min (since ${4}) and will shut down if still idle in ${2} minutes. (<a data-link-type="extend">Reset to ${3} minutes</a>) ${6}<br/>Number of workers: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_TimeoutUnder1min_Over1hr:'Parallel pool on ${0} has been running for about ${4} h ${5} min (since ${3}) and will shut down if still idle in less than a minute. (<a data-link-type="extend">Reset to ${2} minutes</a>) ${6}<br/>Number of workers: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_TimeoutUnder1min_Over1min:'Parallel pool on ${0} has been running for about ${4} min (since ${3}) and will shut down if still idle in less than a minute. (<a data-link-type="extend">Reset to ${2} minutes</a>) ${5}<br/>Number of workers: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_TimeoutUnder1min_Under1min:'Parallel pool on ${0} has been running for less than a minute and will shut down if still idle in less than a minute. (<a data-link-type="extend">Reset to ${2} minutes</a>) ${3}<br/>Number of workers: ${1}',Tooltip_IDLE_VERBOSE_Named_WithExtend_Under1min:'Parallel pool on ${0} has been running for less than a minute and will shut down if still idle in ${2} minutes. (<a data-link-type="extend">Reset to ${3} minutes</a>) ${4}<br/>Number of workers: ${1}',Tooltip_IDLE_VERBOSE_Unnamed_NoTimeout_Over1hr:"Parallel pool has been running for about ${2} h ${3} min (since ${1}). ${4}<br/>Number of workers: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_NoTimeout_Over1min:"Parallel pool has been running for about ${2} min (since ${1}). ${3}<br/>Number of workers: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_NoTimeout_Under1min:"Parallel pool has been running for less than a minute. ${1}<br/>Number of workers: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_Over1hr:"Parallel pool has been running for about ${3} h ${4} min (since ${2}) and will shut down if still idle in ${1} minutes. ${5}<br/>Number of workers: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_Over1min:"Parallel pool has been running for about ${3} min (since ${2}) and will shut down if still idle in ${1} minutes. ${4}<br/>Number of workers: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_Under1min:"Parallel pool has been running for less than a minute and will shut down if still idle in ${1} minutes. ${2}<br/>Number of workers: ${0}",Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_Over1hr:'Parallel pool has been running for about ${4} h ${5} min (since ${3}) and will shut down if still idle in ${1} minutes. (<a data-link-type="extend">Reset to ${2} minutes</a>) ${6}<br/>Number of workers: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_Over1min:'Parallel pool has been running for about ${4} min (since ${3}) and will shut down if still idle in ${1} minutes. (<a data-link-type="extend">Reset to ${2} minutes</a>) ${5}<br/>Number of workers: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_TimeoutUnder1min_Over1hr:'Parallel pool has been running for about ${3} h ${4} min (since ${2}) and will shut down if still idle in less than a minute. (<a data-link-type="extend">Reset to ${1} minutes</a>) ${5}<br/>Number of workers: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_TimeoutUnder1min_Over1min:'Parallel pool has been running for about ${3} min (since ${2}) and will shut down if still idle in less than a minute. (<a data-link-type="extend">Reset to ${1} minutes</a>) ${4}<br/>Number of workers: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_TimeoutUnder1min_Under1min:'Parallel pool has been running for less than a minute and will shut down if still idle in less than a minute. (<a data-link-type="extend">Reset to ${1} minutes</a>) ${2}<br/>Number of workers: ${0}',Tooltip_IDLE_VERBOSE_Unnamed_WithExtend_Under1min:'Parallel pool has been running for less than a minute and will shut down if still idle in ${1} minutes. (<a data-link-type="extend">Reset to ${2} minutes</a>) ${3}<br/>Number of workers: ${0}',Tooltip_NoPool:"No parallel pool",Tooltip_STARTING_NORMAL_Named:"Starting parallel pool on ${0}. ${1}",Tooltip_STARTING_NORMAL_Named_Stopping:"Stopping parallel pool on ${0}",Tooltip_STARTING_NORMAL_Unnamed:"Starting parallel pool on cluster of type ${0}. ${1}",Tooltip_STARTING_NORMAL_Unnamed_Stopping:"Stopping parallel pool on cluster of type ${0}",Tooltip_STARTING_VERBOSE_Named_Over1hr:"Starting parallel pool on ${0} since ${1} (for about ${2} h ${3} min). ${4}",Tooltip_STARTING_VERBOSE_Named_Over1min:"Starting parallel pool on ${0} since ${1} (for about ${2} min). ${3}",Tooltip_STARTING_VERBOSE_Named_Stopping:"Stopping parallel pool on ${0}",Tooltip_STARTING_VERBOSE_Named_Under1min:"Starting parallel pool on ${0}. ${1}",Tooltip_STARTING_VERBOSE_Unnamed_Over1hr:"Starting parallel pool on cluster of type ${0} since ${1} (for about ${2} h ${3} min). ${4}",Tooltip_STARTING_VERBOSE_Unnamed_Over1min:"Starting parallel pool on cluster of type ${0} since ${1} (for about ${2} min). ${3}",Tooltip_STARTING_VERBOSE_Unnamed_Stopping:"Stopping parallel pool on cluster of type ${0}",Tooltip_STARTING_VERBOSE_Unnamed_Under1min:"Starting parallel pool on cluster of type ${0}. ${1}"},"ja-jp":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(209),i(222),i(1658),i(702),i(511),i(539)],o=i.dj.d(n,(function(e,t,i,n,o,r){return class extends t{constructor(){super(),this._session=new i}async initialize(){await new o("SessionPeerModelManager-Startup").execute({functionName:"com.mathworks.toolbox.distcomp.ui.desk.peer.SessionPeerModelManager.getInstance"}),this._model=new r("/parallel/session"),this._model.hasRoot()?this._handleSessionCreated(this._model.getRoot()):this._model.onRootSet(this._handleSessionCreated,this)}destroy(){this._model.destroy()}_handleSessionCreated(e){this._handleSessionChanged(e.getProperties(),{}),r.onPropertiesSet(e,this._handleSessionChanged,this)}_handleSessionChanged(e){this._session.update(e),this.emit("changed",{sessions:[this._session]})}}}),e,t),e.exports=o},function(e,t,i){e.exports={Description:"並列計算オプションを表示します",Error:"エラー",RunAsBatchJob:"バッチ ジョブとしてスクリプトを実行",Title:"並列",WarnNotImplemented:'機能がまだ実装されていません: "${0}"'}},function(e,t,i){e.exports={Description:"병렬 연산 옵션을 표시합니다.",Error:"오류",RunAsBatchJob:"일괄 처리 작업으로 스크립트 실행",Title:"병렬",WarnNotImplemented:'아직 구현되지 않은 기능임: "${0}"'}},function(e,t,i){e.exports={root:{Description:"Displays the parallel computing options",Error:"Error",RunAsBatchJob:"Run Script as Batch Job",Title:"Parallel",WarnNotImplemented:'Feature not implemented yet: "${0}"'},"ja-jp":!0,"ko-kr":!0}},function(e,t,i){e.exports={ActionsAddDescription:"クラスター プロファイルを新規追加します",ActionsAddText:"クラスター\nプロファイルの追加",ActionsAddTypesGenericDescription:"これを使用することで、ssh を送信ホスト経由で送信ツールとして使用する\nその他すべてのスケジューラまたは非共有ファイル システムがサポートされます",ActionsAddTypesLocalDescription:"マシンのコアを使用します",ActionsAddTypesMJSDescription:"MATLAB ジョブ スケジューラを使用している MATLAB Parallel Server クラスターを使用します",ActionsAddTypesMathWorksHeader:"MathWorks スケジューラを使用したクラスター",ActionsAddTypesThirdPartyHeader:"サードパーティ スケジューラを使用したクラスター",ActionsCloudCenterDescription:"新しいブラウザー ウィンドウに Cloud Center Web アプリケーションを開きます。",ActionsCloudCenterText:"Cloud Center",ActionsCloudConnectivityDescription:"クラウド クラスターへの接続を有効にします。",ActionsCloudConnectivityText:"クラウドの接続テスト",ActionsCreateCloudDescription:"クラウドにクラスターを作成します。",ActionsCreateCloudText:"クラウド クラスター\nの作成",ActionsDeleteActionConfirmText:'プロファイル "${0}" を完全に削除しますか?',ActionsDeleteActionDescription:"選択したクラスター プロファイルを削除します",ActionsDeleteActionText:"削除",ActionsDiscoverDescription:"クラスターの検出...",ActionsDiscoverPopupDescription:"ネットワークで MATLAB Parallel Server\nクラスターを検索します",ActionsDiscoverPopupText:"クラスターの検出...",ActionsDiscoverText:"クラスター\nの検出",ActionsDuplicateDescription:"選択したクラスター プロファイルを複製します",ActionsDuplicateText:"複製",ActionsEditDescription:"選択したクラスター プロファイルを編集します。",ActionsEditText:"編集",ActionsExportActionAllText:"すべてをエクスポート",ActionsExportActionDescription:"クラスター プロファイルをファイルにエクスポートします",ActionsExportActionDialogTitle:"プロファイルをファイルにエクスポート",ActionsExportActionSelectedText:"エクスポート",ActionsExportActionText:"エクスポート",ActionsHelpDescription:"クラスター プロファイル マネージャーのドキュメンテーションを表示します",ActionsHelpText:"ヘルプ",ActionsImportActionDescription:"ファイルからクラスター プロファイルをインポートします",ActionsImportActionDialogTitle:"ファイルからプロファイルをインポートする",ActionsImportActionText:"インポート",ActionsManageLicensesDescription:"ライセンス センターで、ライセンスと利用料金アラートを管理します。",ActionsManageLicensesText:"ライセンスとアラートの管理",ActionsRenameDescription:"選択したクラスター プロファイルの名前を変更します",ActionsRenameText:"名前の変更",ActionsSetDefaultDescription:"選択したクラスター プロファイルを既定のプロファイルとして設定します",ActionsSetDefaultRestartPoolDialogMessage:'"${0}" で並列プールを使用している間に、既定のクラスターを "${1}" に変更するように要求しました。<br/><br/>既定のクラスターを変更してプールを再起動しますか?',ActionsSetDefaultRestartPoolDialogTitle:"並列プールを再起動しますか?",ActionsSetDefaultText:"既定に設定",ActionsValidateDescription:"選択したクラスター プロファイルを検証します",ActionsValidateStopDescription:"現在実行中の検証を停止します",ActionsValidateStopText:"停止",ActionsValidateText:"検証",AdditionalPropertyFieldName:"名前",AdditionalPropertyFieldType:"タイプ",AdditionalPropertyFieldValue:"値",AdditionalPropertyTypeLogical:"logical",AdditionalPropertyTypeNumber:"数値",AdditionalPropertyTypeOther:"その他",AdditionalPropertyTypeString:"string",AdditionalPropertyValidationDuplicateValue:"追加プロパティの名前が重複しています: ${0}。",Browse:"参照...",ButtonAdd:"追加",ButtonRemove:"削除",DefaultFormat:"${0} (既定の設定)",FilesAddFileButton:"ファイルの追加",FilesAddFileTitle:"ファイルの追加",FilesAddFilesAndFolders:"ファイルとフォルダーの追加",FilesAddFolderButton:"フォルダーの追加",FilesAddFolderTitle:"フォルダーの追加",FilesExportAllFileName:"AllProfiles",ItemsDefaultCluster:"既定のクラスターの選択",ItemsDiscover:"クラスターの検出...",ItemsManage:"クラスターの作成と管理...",ItemsMonitorJobs:"ジョブの監視",ItemsNoClusters:"クラスターが設定されていません",ItemsPreferences:"並列基本設定...",MustBeUsedOnOperatingSystem:"${0} クラスターは ${1} オペレーティング システムで使用しなければなりません。",PlatformUnix:"Unix",PlatformWindows:"Windows",PropertyDefaultValueEditFormat:"既定値は ${0} です",PropertyDefaultValueFormat:"${0} (既定の設定)",PropertyLogicalFalse:"false",PropertyLogicalTrue:"true",PropertyNone:"<なし>",PropertyUseDefault:"既定値を使用",SchedulerTypeInvalid:"無効",SchedulerTypeNone:"なし",SelectFolderTitle:"フォルダーの選択",TableColumnsProfileLabel:"クラスター プロファイル",Title:"クラスター プロファイル マネージャー",ToolstripSectionsCloud:"クラウド",ToolstripSectionsCreate:"作成",ToolstripSectionsHelp:"ヘルプ",ToolstripSectionsManage:"プロファイルの管理",ToolstripSectionsValidate:"検証",ToolstripTabTitle:"プロファイル",ValidationColumnsDescription:"説明",ValidationColumnsStage:"段階",ValidationColumnsStatus:"ステータス",ValidationLabelsCommandLineOutput:"コマンド ライン出力:",ValidationLabelsDebugLog:"デバッグ ログ:",ValidationLabelsErrorReport:"エラー レポート:",ValidationTitle:"検証",ViewCancel:"キャンセル",ViewCorruptLine1:"プロファイル ${0} は破損しているか無効です。",ViewCorruptLine2:"スケジューラ コンポーネントは ${0} で、プロジェクト コンポーネントは ${1} です。",ViewDone:"完了",ViewEdit:"編集",ViewProperties:"プロパティ",ViewType:"タイプ: ${0}"}},function(e,t,i){e.exports={ActionsAddDescription:"새 클러스터 프로파일을 추가합니다.",ActionsAddText:"클러스터 프로파일\n 추가",ActionsAddTypesGenericDescription:"기타 다른 스케줄러나 비공유 파일 시스템을 지원해야 하는 경우 사용합니다.\n제출 호스트를 통해 제출하는 수단으로 SSH를 사용합니다.",ActionsAddTypesLocalDescription:"사용자 컴퓨터의 코어를 사용합니다.",ActionsAddTypesMJSDescription:"MATLAB 작업 스케줄러를 사용하여 MATLAB Parallel Server 클러스터를 사용합니다.",ActionsAddTypesMathWorksHeader:"MathWorks 스케줄러를 사용하는 클러스터",ActionsAddTypesThirdPartyHeader:"타사 스케줄러를 사용하는 클러스터",ActionsCloudCenterDescription:"새 브라우저 창에서 Cloud Center 웹 응용 프로그램을 엽니다.",ActionsCloudCenterText:"Cloud Center",ActionsCloudConnectivityDescription:"클라우드 클러스터에 대한 연결을 확인합니다.",ActionsCloudConnectivityText:"클라우드 연결 테스트",ActionsCreateCloudDescription:"클라우드에 클러스터를 만듭니다.",ActionsCreateCloudText:"클라우드 클러스터\n생성",ActionsDeleteActionConfirmText:'프로파일 "${0}"을(를) 영구히 삭제하시겠습니까?',ActionsDeleteActionDescription:"선택한 클러스터 프로파일을 삭제합니다.",ActionsDeleteActionText:"삭제",ActionsDiscoverDescription:"클러스터 검색...",ActionsDiscoverPopupDescription:"네트워크에서 MATLAB Parallel Server\n클러스터를 검색합니다.",ActionsDiscoverPopupText:"클러스터 검색...",ActionsDiscoverText:"클러스터\n검색",ActionsDuplicateDescription:"선택한 클러스터 프로파일을 복제합니다.",ActionsDuplicateText:"복제",ActionsEditDescription:"선택한 클러스터 프로파일을 편집합니다.",ActionsEditText:"편집",ActionsExportActionAllText:"모두 내보내기",ActionsExportActionDescription:"클러스터 프로파일을 파일로 내보냅니다.",ActionsExportActionDialogTitle:"프로파일을 파일로 내보내기",ActionsExportActionSelectedText:"내보내기",ActionsExportActionText:"내보내기",ActionsHelpDescription:"클러스터 프로파일 관리자 문서를 표시합니다.",ActionsHelpText:"도움말",ActionsImportActionDescription:"파일에서 클러스터 프로파일을 가져옵니다.",ActionsImportActionDialogTitle:"파일에서 프로파일 가져오기",ActionsImportActionText:"가져오기",ActionsManageLicensesDescription:"라이선스 센터에서 라이선스와 사용량 경고를 관리합니다.",ActionsManageLicensesText:"라이선스 및 경고 관리",ActionsRenameDescription:"선택한 클러스터 프로파일의 이름을 바꿉니다.",ActionsRenameText:"이름 바꾸기",ActionsSetDefaultDescription:"선택한 클러스터 프로파일을 디폴트 프로파일로 설정합니다.",ActionsSetDefaultRestartPoolDialogMessage:'"${0}"에서 병렬 풀을 사용할 때 디폴트 클러스터를 "${1}"(으)로 변경하도록 요청했습니다.<br/><br/>디폴트 클러스터를 변경하고 풀을 다시 시작하시겠습니까?',ActionsSetDefaultRestartPoolDialogTitle:"병렬 풀을 다시 시작하시겠습니까?",ActionsSetDefaultText:"디폴트 값으로 설정",ActionsValidateDescription:"선택한 클러스터 프로파일의 유효성을 검사합니다.",ActionsValidateStopDescription:"현재 실행 중인 유효성 검사를 중지합니다.",ActionsValidateStopText:"중지",ActionsValidateText:"유효성 검사",AdditionalPropertyFieldName:"이름",AdditionalPropertyFieldType:"유형",AdditionalPropertyFieldValue:"값",AdditionalPropertyTypeLogical:"논리형",AdditionalPropertyTypeNumber:"숫자",AdditionalPropertyTypeOther:"기타",AdditionalPropertyTypeString:"string형",AdditionalPropertyValidationDuplicateValue:"추가 속성 이름이 중복됨: ${0}.",Browse:"찾아보기...",ButtonAdd:"추가",ButtonRemove:"제거",DefaultFormat:"${0}(디폴트 값)",FilesAddFileButton:"파일 추가",FilesAddFileTitle:"파일 추가",FilesAddFilesAndFolders:"파일과 폴더 추가",FilesAddFolderButton:"폴더 추가",FilesAddFolderTitle:"폴더 추가",FilesExportAllFileName:"AllProfiles",ItemsDefaultCluster:"디폴트 클러스터 선택",ItemsDiscover:"클러스터 검색...",ItemsManage:"클러스터 생성 및 관리...",ItemsMonitorJobs:"작업 모니터링",ItemsNoClusters:"설정된 클러스터 없음",ItemsPreferences:"병렬 기본 설정...",MustBeUsedOnOperatingSystem:"${1} 운영 체제에서는 ${0} 클러스터를 사용해야 합니다.",PlatformUnix:"Unix",PlatformWindows:"Windows",PropertyDefaultValueEditFormat:"디폴트 값은 ${0}임",PropertyDefaultValueFormat:"${0}(디폴트 값)",PropertyLogicalFalse:"false",PropertyLogicalTrue:"true",PropertyNone:"<없음>",PropertyUseDefault:"디폴트 값 사용",SchedulerTypeInvalid:"유효하지 않음",SchedulerTypeNone:"없음",SelectFolderTitle:"폴더 선택",TableColumnsProfileLabel:"클러스터 프로파일",Title:"클러스터 프로파일 관리자",ToolstripSectionsCloud:"클라우드",ToolstripSectionsCreate:"생성",ToolstripSectionsHelp:"도움말",ToolstripSectionsManage:"프로파일 관리",ToolstripSectionsValidate:"유효성 검사",ToolstripTabTitle:"프로파일",ValidationColumnsDescription:"설명",ValidationColumnsStage:"단계",ValidationColumnsStatus:"상태",ValidationLabelsCommandLineOutput:"명령줄 출력값:",ValidationLabelsDebugLog:"디버그 로그:",ValidationLabelsErrorReport:"오류 리포트:",ValidationTitle:"검증 방법",ViewCancel:"취소",ViewCorruptLine1:"프로파일 ${0}이(가) 손상되었거나 유효하지 않습니다.",ViewCorruptLine2:"스케줄러 구성요소는 ${0}이고 프로젝트 구성요소는 ${1}입니다.",ViewDone:"완료",ViewEdit:"편집",ViewProperties:"속성",ViewType:"유형: ${0}"}},function(e,t,i){e.exports={root:{ActionsAddDescription:"Add new cluster profiles",ActionsAddText:"Add Cluster\nProfile",ActionsAddTypesGenericDescription:"Use this to support all other schedulers or nonshared file systems\nusing ssh as a submission tool through a submission host",ActionsAddTypesLocalDescription:"Use the cores on your machine",ActionsAddTypesMJSDescription:"Use a MATLAB Parallel Server cluster using MATLAB Job Scheduler",ActionsAddTypesMathWorksHeader:"Clusters Using MathWorks Schedulers",ActionsAddTypesThirdPartyHeader:"Clusters Using Third Party Schedulers",ActionsCloudCenterDescription:"Open the Cloud Center web application in a new browser window.",ActionsCloudCenterText:"Cloud Center",ActionsCloudConnectivityDescription:"Validate your connection to cloud clusters.",ActionsCloudConnectivityText:"Test Cloud Connectivity",ActionsCreateCloudDescription:"Create clusters in the cloud.",ActionsCreateCloudText:"Create Cloud\nCluster",ActionsDeleteActionConfirmText:'Permanently delete the profile "${0}"?',ActionsDeleteActionDescription:"Delete the selected cluster profile",ActionsDeleteActionText:"Delete",ActionsDiscoverDescription:"Discover Clusters...",ActionsDiscoverPopupDescription:"Search for MATLAB Parallel Server\nclusters on your network",ActionsDiscoverPopupText:"Discover Clusters...",ActionsDiscoverText:"Discover\nClusters",ActionsDuplicateDescription:"Duplicate the selected cluster profile",ActionsDuplicateText:"Duplicate",ActionsEditDescription:"Edit the selected cluster profile.",ActionsEditText:"Edit",ActionsExportActionAllText:"Export All",ActionsExportActionDescription:"Export cluster profile(s) to a file",ActionsExportActionDialogTitle:"Export profiles to file",ActionsExportActionSelectedText:"Export",ActionsExportActionText:"Export",ActionsHelpDescription:"Display the cluster profile manager documentation",ActionsHelpText:"Help",ActionsImportActionDescription:"Import cluster profiles from a file",ActionsImportActionDialogTitle:"Import profiles from file",ActionsImportActionText:"Import",ActionsManageLicensesDescription:"Manage your licenses and spending alerts in License Center.",ActionsManageLicensesText:"Manage Licenses & Alerts",ActionsRenameDescription:"Rename the selected cluster profile",ActionsRenameText:"Rename",ActionsSetDefaultDescription:"Set the selected cluster profile as the default profile",ActionsSetDefaultRestartPoolDialogMessage:'You have requested to change your default cluster to "${1}" while you have a parallel pool on "${0}"<br/><br/>Change your default cluster and restart the pool?',ActionsSetDefaultRestartPoolDialogTitle:"Restart Parallel Pool?",ActionsSetDefaultText:"Set as Default",ActionsValidateDescription:"Validate the selected cluster profile",ActionsValidateStopDescription:"Stops the current running validation",ActionsValidateStopText:"Stop",ActionsValidateText:"Validate",AdditionalPropertyFieldName:"Name",AdditionalPropertyFieldType:"Type",AdditionalPropertyFieldValue:"Value",AdditionalPropertyTypeLogical:"Logical",AdditionalPropertyTypeNumber:"Number",AdditionalPropertyTypeOther:"Other",AdditionalPropertyTypeString:"String",AdditionalPropertyValidationDuplicateValue:"Duplicate additional property name: ${0}.",Browse:"Browse...",ButtonAdd:"Add",ButtonRemove:"Remove",DefaultFormat:"${0} (default)",FilesAddFileButton:"Add File",FilesAddFileTitle:"Add File",FilesAddFilesAndFolders:"Add Files and Folders",FilesAddFolderButton:"Add Folder",FilesAddFolderTitle:"Add Folder",FilesExportAllFileName:"AllProfiles",ItemsDefaultCluster:"Select a Default Cluster",ItemsDiscover:"Discover Clusters...",ItemsManage:"Create and Manage Clusters...",ItemsMonitorJobs:"Monitor Jobs",ItemsNoClusters:"No Clusters Set Up",ItemsPreferences:"Parallel Preferences...",MustBeUsedOnOperatingSystem:"${0} clusters must be used on ${1} operating systems.",PlatformUnix:"Unix",PlatformWindows:"Windows",PropertyDefaultValueEditFormat:"Default is ${0}",PropertyDefaultValueFormat:"${0} (default)",PropertyLogicalFalse:"false",PropertyLogicalTrue:"true",PropertyNone:"<none>",PropertyUseDefault:"Use default",SchedulerTypeInvalid:"Invalid",SchedulerTypeNone:"None",SelectFolderTitle:"Select Folder",TableColumnsProfileLabel:"Cluster Profile",Title:"Cluster Profile Manager",ToolstripSectionsCloud:"Cloud",ToolstripSectionsCreate:"Create",ToolstripSectionsHelp:"Help",ToolstripSectionsManage:"Manage Profile",ToolstripSectionsValidate:"Validate",ToolstripTabTitle:"Profile",ValidationColumnsDescription:"Description",ValidationColumnsStage:"Stage",ValidationColumnsStatus:"Status",ValidationLabelsCommandLineOutput:"Command Line Output:",ValidationLabelsDebugLog:"Debug Log:",ValidationLabelsErrorReport:"Error Report:",ValidationTitle:"Validation",ViewCancel:"Cancel",ViewCorruptLine1:"The profile ${0} is corrupt or invalid.",ViewCorruptLine2:"The scheduler component is ${0} and the project component is ${1}.",ViewDone:"Done",ViewEdit:"Edit",ViewProperties:"Properties",ViewType:"Type: ${0}"},"ja-jp":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(203),i(210),i(257),i(8688),i(8689),i(8692),i(1249),i(2667),i(702),i(648),i(462),i(2665),i(602),i(1021),i(568),i(450),i(209),i(241)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return e([g],{icon:"parallelStatusIndicatorIcon poolClosed",disabled:!0,constructor:function(){this._sessionProxy=a.get(),this._sessionProxy.on("changed",e=>{this._handleSessionChanged(e)}),this._sessionProxy.on("schedule-reminder",e=>{this._scheduleTooltipDisplay(e.delay)}),this._sessionProxy.on("cancel-reminder",e=>{this._cancelScheduledTooltipDisplay(`session state is ${e.state}.`)})},buildRendering:function(){this.baseClass+=" parallelStatusIndicatorDropDown",this.inherited(arguments)},postCreate:function(){this.inherited(arguments),this.set("menu",new n({id:this.id+"Menu"})),this.own(this.menu),this.menu.on("start-clicked",()=>this._handleStartClicked()),this.menu.on("stop-clicked",()=>this._handleStopClicked()),this.domNode.setAttribute("data-focus","refuse"),this._iconOverlay=d.div.withClass("parallelStatusIndicatorIconOverlay").hidden().withParent(this.iconNode).create(),this.tooltip=new o(Object.assign({id:this.id+"Tooltip",target:this.domNode},this.tooltipOptions)),this.tooltip.on("more",()=>this._handleMoreInfoClicked()),this.tooltip.on("extend",()=>this._handleExtendRequest()),this.tooltip.on("shutdown",()=>this._handleShutDownClicked()),this.own(this.tooltip),d.hide(this)},startup:function(){this.inherited(arguments),this.tooltip.startup(),this._sessionProxy.initialize().then(()=>{this.set("disabled",!1),this.on(i.enter,()=>this._handleIndicatorHovered())}).catch(e=>m.error(e))},_handleStartClicked:function(){this._sessionProxy.startSession(),this._updateMenu(),this._updateIcon(),this.tooltip.refresh(),setTimeout(()=>this.showTooltip(),10)},_handleStopClicked:function(){this._sessionProxy.shutdownSession().otherwise(h.displayError)},_handleIndicatorHovered:function(){this.tooltip.refresh(),this.showTooltip()},_handleSessionChanged:function(e){e.session.state&&e.session.state!==l.CLOSED&&(d.show(this),this._visible=!0),this._visible&&(this._updateIcon(),this._updateMenu(),this.tooltip.refresh(),(this.tooltip.isVisible()||this.tooltip.shouldShow(e.previousSession))&&this.showTooltip())},_scheduleTooltipDisplay:function(e){this._cancelScheduledTooltipDisplay("new scheduling operation pending"),e<0||(m.debug(`Scheduling tooltip for ${e} seconds from now.`),this._tooltipDisplay=setTimeout(()=>{this.showTooltip(),m.debug("Tooltip has been automatically displayed. Destroying reminder..."),this._tooltipDisplay=null},1e3*e))},_cancelScheduledTooltipDisplay:function(e){this._tooltipDisplay&&(m.debug("Cancelling previously scheduled tooltip. Reason: "+e),clearTimeout(this._tooltipDisplay),this._tooltipDisplay=null)},getClusterType:function(){return this._sessionProxy.latest.isCloudSession()&&(this._sessionProxy.latest.state!==l.CLOSED||this._sessionProxy.latest.hasError())?r.CLOUD:r.REGULAR},_updateIcon:function(){const e=this.getClusterType();d.display(this._iconOverlay,e===r.CLOUD);const t=["parallelStatusIndicatorIcon",e.getIconClass(this._sessionProxy.latest),e.getIconOverlayClass(this._sessionProxy.latest)].join(" ").trim();this.set("icon",t)},_updateMenu:function(){this.menu.showItem("start",this._sessionProxy.canStart()),this.menu.showItem("stop",!this._sessionProxy.canStart()),this.menu.disableItem("stop",!this._sessionProxy.canStop())},_handleExtendRequest:function(){this._sessionProxy.extendSessionShutdownTimeout().then(()=>this.tooltip.refresh(),e=>m.warn(e))},showTooltip:function(){this.isMenuOpen()||this.tooltip.show()},_handleMoreInfoClicked:function(){this._sessionProxy.showAnyErrors(),this.tooltip.hide()},_handleShutDownClicked:function(){const e=this.getClusterType().getShutdownAction(this._sessionProxy.latest);switch(e){case s.NONE:const t=this._sessionProxy.latest.state;m.warn(`No shutdown action for sessions in state ${t}.`);break;case s.SHUTDOWN:this._sessionProxy.shutdownSession();break;case s.KILL:this._killClusterWithConfirmation(this._sessionProxy.latest.getClusterInfo());break;default:throw new Error(`Unsupported shutdown action: ${e}.`)}},_killClusterWithConfirmation:function(e){e.id&&_.displayConfirmDialog(p.StopClusterTitle,p.StopClusterLabel,{icon:"question",buttonText:[f.yes,f.no],closeCallback:function(t){1===t.response&&(e.shuttingDown=!0,this._sessionProxy.shutdownCloudCluster(e.id))}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(462),i(1021),i(331),i(288)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-focus","temporary"),this.on("close",()=>this.emit("restorefocus",{bubbles:!0})),this._startMenuItem=this._addItem({id:"ItemStart",text:i.MenuStart,event:{name:"start-clicked"}}),this._stopMenuItem=this._addItem({id:"ItemStop",text:i.MenuStop,hidden:!0,event:{name:"stop-clicked"}})},_addItem:function(e){var i=new o({id:this.id+e.id,text:e.text});return i.on("click",()=>this.emit(e.event.name,{})),this.addChild(i),t.display(i,!e.hidden),i},getItem:function(e){switch(e){case"start":return this._startMenuItem;case"stop":return this._stopMenuItem}throw new Error(`Parallel Status Indicator has no menu item named: ${e}.`)},showItem:function(e,i){t.display(this.getItem(e),i)},disableItem:function(e,t){this.getItem(e).set("disabled",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(277),i(30),i(203),i(204),i(227),i(210),i(206),i(225),i(8690),i(2666),i(1249),i(702),i(462),i(1021),i(8691)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){return r([t,e,i],{nls:m,templateString:_,baseClass:"parallelStatusIndicatorTooltip",detailLevel:h.VERBOSE,hideDelay:1e4,hoverHideDelay:250,hideOnEvents:!0,constructor:function(e){if(!e.target)throw new Error("IndicatorTooltip must specify a target not to attach to.");this._visible=!1},startup:function(){this.inherited(arguments),this.dialog.domNode.setAttribute("data-focus","temporary"),this.hideOnEvents&&this.own(c(document,"click",a.hitch(this,"_handleDocumentClick")),c(document,"keypress",a.hitch(this,"hide")))},isVisible:function(){return this._visible},_handleDocumentClick:function(e){this.isVisible()&&(s.isDescendant(e.target,this.dialog.domNode)||this.hide())},_setDetailLevelAttr:function(e){l.remove(this.domNode,this.baseClass+this.detailLevel),this._set("detailLevel",e),this.detailLevelLink.textContent=m["Tooltip_Details_"+e],l.add(this.domNode,this.baseClass+this.detailLevel),this.refresh()},_handleDetailLevelLinkClicked:function(){this.detailLevel===h.NORMAL?this.set("detailLevel",h.VERBOSE):this.set("detailLevel",h.NORMAL)},_handleMouseEnter:function(){clearTimeout(this._intervalId),clearTimeout(this._closeIntervalId)},_handleMouseLeave:function(){clearTimeout(this._intervalId),this.hoverHideDelay>0&&(this._closeIntervalId=setTimeout(a.hitch(this,"hide"),this.hoverHideDelay))},_openTooltipPopup:function(){this._visible=!0,n.open({popup:this.dialog,around:this.target})},hide:function(){n.close(this.dialog),this._visible=!1},show:function(){clearTimeout(this._intervalId),this._openTooltipPopup(),this.hideDelay>0&&(this._intervalId=setTimeout(()=>this.hide(),this.hideDelay))},shouldShow:function(e){const t=p.get().latest;return!!(t.state&&t.state!==f.CLOSED||e.state)&&(t.state===f.ABOUT_TO_START||(e.size!==t.size||t.state!==f.BUSY&&t.state!==f.IDLE||e.state===f.STARTING)&&this.detailLevel===h.VERBOSE)},_bindClickEvents:function(e){var t="data-link-type";d("a["+t+"]",e).forEach((function(e){c(e,"click",a.hitch(this,"emit",e.getAttribute(t)))}),this)},refresh:function(){const e=p.get().latest;e.refreshTimingInformation(),e.state&&g.show(this.header),this.body.innerHTML=u.build(e,this.detailLevel),this._bindClickEvents(this.dialog.domNode),this.details.innerHTML=e.getClusterInfo().getTooltipText()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1236),i(512),i(236),i(2666),i(702),i(1251),i(1021)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";var s=function(t){return t?e.format(new Date(t),{selector:"time",formatLength:"short"}):null};return{build:function(e,l){var c,d,u,h="Tooltip",p=[],f=function(e){h+="_"+e},g=function(){Array.prototype.push.apply(p,arguments)},m=function(){var t,i=Math.round(e.runningDuration/1e3/60);i<1?f("Under1min"):(e.state!==o.CLOSED&&g(s(e.startTime)),(t=Math.floor(i/60))<1?(f("Over1min"),g(i)):(f("Over1hr"),g(t,i%60)))},_=function(){return l===n.VERBOSE};if(!e.state)return a.Tooltip_NoPool;switch(f(e.state),f(l),e.hasProfileName()?(f("Named"),g(r.normalizeProfileName(e.profileName))):f("Unnamed"),e.state){case o.ABOUT_TO_START:_()&&m();break;case o.STARTING:e.hasProfileName()||g(e.clusterType),e.isCloudClusterStopping()?f("Stopping"):_()&&m(),e.isCloudSession()&&e.cluster.id?g(a.ShutdownNow):g("");break;case o.BUSY:g(e.size),_()&&m();break;case o.IDLE:g(e.size),e.idleShutdownTimeout>=0?(u=e.idleShutdownTimeout-e.remainingSecondsBeforeShutdown,c=Math.ceil(e.remainingSecondsBeforeShutdown/60),u<60&&e.idleShutdownTimeout>60?g(c):(d=Math.floor(e.idleShutdownTimeout/60),f("WithExtend"),1===c?f("TimeoutUnder1min"):g(c),g(d))):f("NoTimeout"),_()&&m(),g(a.ShutdownNow);break;case o.FAILED_TO_START:_()&&m();break;case o.CLOSED:g(s(e.finishTime)),e.hasError()&&f("Errored"),_()&&m()}if(!a[h])throw new Error("Unknown status indicator resource: "+h);try{return i.substitute(a[h],p)}catch(e){throw new Error(`Failed to fill in placeholders in tooltip text. Details:\n key: ${h}\nMessage: ${a[h]}\nArguments: ${t.stringify(p)}`)}}}}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div id="${id}Dialog"\n class="${baseClass}Dialog"\n data-dojo-type="dijit/TooltipDialog"\n data-dojo-attach-point="dialog"\n data-dojo-attach-event="mouseEnter: _handleMouseEnter, mouseLeave: _handleMouseLeave">\n <div id="${id}Content"\n class="${baseClass}Content">\n <div id="${id}Header"\n data-dojo-attach-point="header"\n class="${baseClass}Header">\n <a id="${id}DetailLevelLink"\n data-dojo-attach-point="detailLevelLink"\n data-dojo-attach-event="click: _handleDetailLevelLinkClicked"></a>\n </div>\n <div id="${id}Body"\n class="${baseClass}Body"\n data-dojo-attach-point="body"></div>\n <div id="${id}Details"\n class="${baseClass}Details"\n data-dojo-attach-point="details"></div>\n </div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(8693),i(2667),i(702)],o=i.dj.d(n,(function(e,t,i){var n={REGULAR:{getIconClass:function(t){var n;if(!t.state)return e.POOL_CLOSED;switch(t.state){case i.ABOUT_TO_START:case i.STARTING:return e.POOL_ANIMATING;case i.FAILED_TO_START:return e.POOL_ERRORED;case i.BUSY:return n=t.numWorkersBusy/t.size,n=10*Math.ceil(10*n),n=Math.min(n,100),e.createPercentClass(n);case i.IDLE:return e.POOL_0_PERCENT;case i.CLOSED:return t.hasError()?e.POOL_ERRORED:e.POOL_CLOSED}throw new Error(`Unknown pool state '${t.state}'.`)},getIconOverlayClass:function(){return null},getShutdownAction:function(){return t.SHUTDOWN}},CLOUD:{getIconClass:function(t){if(!t.state)return e.POOL_CLOSED;switch(t.state){case i.FAILED_TO_START:case i.CLOSED:return e.POOL_CLOSED}return n.REGULAR.getIconClass(t)},getIconOverlayClass:function(t){if(!t.state)return n.REGULAR.getIconOverlayClass(t);switch(t.state){case i.ABOUT_TO_START:case i.STARTING:return e.CLOUD;case i.FAILED_TO_START:return e.CLOUD_ERRORED;case i.BUSY:case i.IDLE:return e.CLOUD;case i.CLOSED:if(t.hasError())return e.CLOUD_ERRORED}return n.REGULAR.getIconOverlayClass(t)},getShutdownAction:function(e){if(!e.state)return t.NONE;switch(e.state){case i.ABOUT_TO_START:case i.STARTING:return t.KILL;case i.FAILED_TO_START:case i.BUSY:return t.NONE;case i.IDLE:return t.SHUTDOWN;case i.CLOSED:return t.NONE}return t.NONE}}};return n}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=function(e){return"pool_"+e+"_percent"};return{POOL_ANIMATING:"poolAnimating",POOL_CLOSED:"poolClosed",POOL_ERRORED:"poolErrored",createPercentClass:e,POOL_0_PERCENT:e(0),POOL_100_PERCENT:e(100),CLOUD:"parallelStatusIndicatorIconCloud",CLOUD_ERRORED:"parallelStatusIndicatorIconCloudError"}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2668),i(1659),i(8698),i(8713),i(8773),i(2674),i(1020),i(219),i(209),i(395)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){"use strict";const u={create:{id:t.PARALLEL.CREATE,text:d.ActionsCreateCloudText,description:d.ActionsCreateCloudDescription,callback:()=>i.getInstance().createCloudCluster()},discover:{id:t.PARALLEL.DISCOVER,text:d.ActionsDiscoverPopupText,description:d.ActionsDiscoverPopupDescription,callback:()=>n.show()},preferences:{id:t.PARALLEL.PREFERENCES,text:d.ItemsPreferences},profileManager:{id:t.PARALLEL.PROFILE_MANAGER,text:d.ItemsManage,callback:()=>o.show()},jobMonitor:{id:t.PARALLEL.JOB_MONITOR,text:d.ItemsMonitorJobs,callback:()=>r.show()}},h=e([a],{constructor:function(){this.initialize(u)},executeStartupActions:function(){for(const[e,t]of Object.entries(u))if(s.asBool(e,!1))try{t.callback()}catch(t){c.warn(`PCT action '${e}' failed. ${t}`)}},registerSubscriptions:function(){l.subscribe("/parallel/actions",this._handleControlRequest,this)},unregisterSubscriptions:function(){l.unsubscribe("/parallel/actions",this._handleControlRequest,this)},_handleControlRequest:function(e){class t extends Error{}const i=e.data;try{if(!i)throw new t("Received request for unnamed action.");const e=u[i];if(!e){throw new t(`Unsupported PCT action: ${JSON.stringify(i)}.`)}e.callback()}catch(e){e instanceof t?c.warn(e.message):c.warn(`PCT action '${i}' failed. ${e}`)}}});return h.actions=u,h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1252),i(1020),i(209),i(219)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";return e([t],{close:function(){i.asBool("noclose",!1)||(o.publish("/parallel/cloud/closeDialog",{}),n.info("Closing PCT cloud dialog"),window.cefclient&&window.cefclient.sendMessage("close",{}))},setTitle:function(e){n.info("Setting the PCT cloud cluster wizard dialog title to: "+e),o.publish("/parallel/cloud/setDialogTitle",e),window.cefclient&&window.cefclient.sendMessage("setTitle",[e])},openLink:function(e){this.executeCommand({classifier:"OpenWebBrowser",executionInfo:{functionName:"web",args:[e,"-browser"]}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1252),i(209)],o=i.dj.d(n,(function(e,t,i){"use strict";return e([t],{getEntitlements:function(e){return this.executeCommand({classifier:"PCT_Cloud_GetEntitlements",executionInfo:{functionName:"parallel.internal.mwa.getCloudEntitlements",args:[e.token,e.retries],nargout:1}})},getPCTEntitlementIDs:function(){return this.executeCommand({classifier:"PCT_Cloud_GetPCTEntitlementIDs",executionInfo:{functionName:"parallel.internal.cluster.getPCTEntitlementIDs",args:[],nargout:1}})},selectEntitlement:function(e){return i.info(`Selecting entitlement #${e.Id} (${e.LicenseNumber}- '${e.Label}')`),this.executeCommand({classifier:"PCT_Cloud_SelectEntitlement",executionInfo:{functionName:"parallel.internal.mwa.selectEntitlement",args:[e]}})},getCloudClusterCertificate:function(e){return this.executeCommand({classifier:"PCT_Cloud_GetClusterCertificate",executionInfo:{functionName:"parallel.internal.cloud.getCloudClusterCertificate",args:[e],nargout:1}})},createCloudProfile:function(e){return this.executeCommand({classifier:"PCT_Cloud_CreateCloudProfile",executionInfo:{functionName:"parallel.internal.ui.createCloudProfile",args:[e],nargout:1}})},log:function(e){return i.log(e),this.executeCommand({classifier:"PCT_Cloud_dctSchedulerMessage",executionInfo:{functionName:"dctSchedulerMessage",args:[4,"%s",e]}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219),i(1252)],o=i.dj.d(n,(function(e,t,i){"use strict";const n=Object.freeze({NEW_SESSION:"newSession",DESTROY:"destroy"});return e([i],{_sessionEval:function(e,t,i,n){return this.executeCommand({classifier:"ConnectivityCheckerSession_"+e,executionInfo:{functionName:"parallel.internal.cloud.connectioncheck.ConnectivityCheckerSession."+e,args:t||[],nargout:i||0},options:n})},newSession:function(e={}){return this._sessionEval(n.NEW_SESSION,[e.stagesClass||"",e.stageNames||[]],2)},start:function(){return t.publish("/parallel/cloud/connectivity/control",{command:"start"})},stop:function(){return t.publish("/parallel/cloud/connectivity/control",{command:"stop"})},destroy:function(e){return this._sessionEval(n.DESTROY,[e])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8699),i(1253),i(262)],o=i.dj.d(n,(function(e,t,i){"use strict";return{show:function(){const n=new e({id:"discoveryWizard"}),o=i.createDialog({title:t.Title,id:"discover-wizard-dialog",dialogType:i.MODAL,draggable:!0,resizable:!1,"data-test-id":"discover-wizard-dialog",content:n,className:"discoverWizardDialogFrame"});n.on("finished",()=>o.close()),n.on("cancelled",()=>o.close())}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(1314),i(203),i(204),i(214),i(285),i(8700),i(8701),i(8702),i(8708),i(8710),i(648),i(462),i(1020),i(1253),i(8712),i(243)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){let b;return g.asBool("fakeDiscoveryManager",!1)&&(b=new l),o([t,e,i],{templateString:_,baseClass:"discoveryWizard",nls:m,selectedCluster:null,constructor(){b?this._manager=b:(this._manager=new c,this.own(this._manager))},postCreate:function(){this.inherited(arguments),this.stackContainer.getChildren().forEach(e=>{e.manager=this._manager})},startup:function(){this.inherited(arguments),this._updateButtons(this.stackContainer.selectedChildWidget,{disabledOverride:!0}),s(this._manager.initialize(),()=>{this._updateButtons(this.stackContainer.selectedChildWidget,{advice:!0,disabledOverride:!1})})},showNextPane:function(){var e=this.stackContainer.selectedChildWidget.onPaneDeactivated();this.stackContainer.forward(),this.stackContainer.selectedChildWidget.onPaneActivated(e),this._updateButtons(this.stackContainer.selectedChildWidget,{advice:!0})},_updateButtons:function(e,t={}){var i;p.forEachValue(e.buttons||{},(function(n,o){if(i=this[o+"Button"]){f.display(i,!!n.visible),n.focus&&i.domNode.focus();let o=t.disabledOverride;void 0===o&&(o=!!n.disabled),i.set("disabled",o),t.advice&&n.refresh&&(r.isArray(n.refresh)||(n.refresh=[n.refresh]),n.refresh.forEach((function(t){a.after(e,t,r.hitch(this,"_updateButtons",e))}),this))}}),this)},_handleCancelClicked:function(){this.cancelButton.set("disabled",!0),s(this.stackContainer.selectedChildWidget.notifyCancelled(),r.hitch(this,"onCancelled"))},_handleFinishClicked:function(){this.stackContainer.selectedChildWidget.onPaneDeactivated(),this.onFinished()},onCancelled:function(){this.emit("cancelled",{})},onFinished:function(){this.emit("finished",{})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(1660),i(648)],o=i.dj.d(n,(function(e,t,i,n,o){"use strict";var r=function(e,t){return e.network&&["MJS","HPCServer"].indexOf(t.type)>=0||e.cloud&&["MJSComputeCloud"].indexOf(t.type)>=0},a=function(e){return e.additionalProperties=e.additionalProperties||{},e.schedulerPropertyNames=Object.keys(e.additionalProperties),e.schedulerPropertyValues=o.getMapValues(e.additionalProperties),e.hostName&&(e.schedulerPropertyNames.push("Host"),e.schedulerPropertyValues.push(e.hostName)),e.numWorkers&&(e.schedulerPropertyNames.push("NumWorkers"),e.schedulerPropertyValues.push(e.numWorkers)),e};return e([n],{discoverableClusters:[{name:"Dummy Cluster",hostName:"dummy.example.com",release:"R2014a",numWorkers:4,compatible:!1,type:"MJS",profiles:[]},{name:"MathWorks Public",hostName:"mdcs-glnxa64.mathworks.com",release:"R2015b",secure:!0,compatible:!1,numWorkers:96,type:"MJS",profiles:["MWPublic"]},{name:"My Private Cloud",hostName:"cloud.mathworks.co.uk",release:"R2016a",numWorkers:16,type:"MJSComputeCloud",compatible:!0,secure:!0,profiles:["MATLABParallelCloud"],additionalProperties:{ClusterSharedState:"PRIVATE"}},{name:"My Cloud 2",hostName:"ec2-54-249-167-38.ap-northeast-1.compute.amazonaws.com",release:"R2016a",compatible:!0,secure:!1,numWorkers:32,type:"MJSComputeCloud",profiles:[]},{name:"HPC Server 1",hostName:"hpc-10-20-30-40.microsoft.com",release:"R2015b",compatible:!1,secure:!0,numWorkers:8,type:"HPCServer",profiles:[]},{name:"HPC Server 2",hostName:"hpc-dummy.microsoft.com",release:"R2016a",numWorkers:8,type:"HPCServer",compatible:!0,secure:!0,profiles:["hpc1","hpc2"]}],delay:250,pause:!1,constructor:function(){window.fakeDiscoveryManager=this},discover:function(e){return void 0===(e=e||{}).network&&(e.network=!1),void 0===e.cloud&&(e.cloud=!0),this.discoverableClusters=this.discoverableClusters.filter(t.partial(r,e)).map(a),this._currentClusterIndex=-1,this._timer=setInterval(t.hitch(this,"_discoverNextCluster"),this.delay),this._deferred&&this._deferred.cancel(),this._deferred=new i,this._deferred.promise},_discoverNextCluster:function(){this.pause||(this._currentClusterIndex+=1,this._currentClusterIndex===this.discoverableClusters.length?(clearInterval(this._timer),this._timer=null,this._deferred.resolve(),this.onDiscoveryComplete()):this.onClusterFound(this.discoverableClusters[this._currentClusterIndex]))},cancel:function(){this._timer&&(clearInterval(this._timer),this._timer=null)},isRunning:function(){return!!this._timer}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(219),i(1660),i(511),i(539)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n],{initialize:function(){return t.debug("Initialising discovery..."),new o("DiscoveryController_Init").execute({functionName:"parallel.internal.ui.DiscoveryManager.init"}).then(()=>this._handleDiscoveryInitialized(),e=>t.error(e))},_handleDiscoveryInitialized:function(){t.debug("Discovery initialised.");const e=new r("/parallel/cluster/discovery",{strategy:r.VIEWMODEL});e.hasRoot()?this._handleRootSet(e.getRoot()):this.own(e.onRootSet(this._handleRootSet,this))},_handleRootSet:function(e){t.debug("Discovery root node set."),this.own(r.onChildAdded(e,this._handleDiscoveryStarted,this))},_handleDiscoveryStarted:function(e){t.debug("Discovery session created."),this.own(r.onChildAdded(e,this._handleClusterDiscovered,this),r.onPropertiesSet(e,this._handleSessionUpdated,this)),this._sessionNode=e},_handleSessionUpdated:function(e){const i=e.status;switch(t.debug(`Discovery session status is now "${i}".`),i){case"CANCELLED":case"COMPLETED":this._handleDiscoveryCompleted();break;case"FAILED":this.onDiscoveryFailed(e.errorMessage);break;default:t.warn(`Received invalid value for status: ${i}.`)}},_handleClusterDiscovered:function(e){const i=e.getProperties();t.debug(`Found cluster named ${i.name} on ${i.hostName}`),this.onClusterFound(i)},_handleDiscoveryCompleted:function(){t.debug("Discovery session completed"),this._sessionNode=null,this.onDiscoveryComplete()},discover:function(e){void 0===(e=e||{}).network&&(e.network=!1),void 0===e.cloud&&(e.cloud=!0),t.debug("Starting discovery session..."),i.publish("/parallel/cluster/discovery/control",{command:"discover",options:e})},cancel:function(){this.isRunning()&&(t.debug("Stopping discovery session..."),i.publish("/parallel/cluster/discovery/control",{command:"cancel"}))},isRunning:function(){return!!this._sessionNode}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(210),i(1661),i(462),i(602),i(8706),i(1660),i(8707)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e("cluster/discovery/panes/DiscoveryClusterListPane",[o],{templateString:c,buttons:{cancel:{visible:!0},next:{visible:!0,disabled:!0,focus:!0,refresh:["_onClusterSelected"]},finish:{visible:!1}},destroy:function(){this.inherited(arguments),this.manager.cancel()},startup:function(){this.inherited(arguments),this.own(this.manager.on(l.CLUSTER_FOUND,t.hitch(this,"_handleClusterFound")),this.manager.on(l.DISCOVERY_COMPLETE,t.hitch(this,"_handleDiscoveryComplete")),this.manager.on(l.DISCOVERY_FAILED,t.hitch(this,"_handleDiscoveryFailed"))),this.clusterTable.on(".dgrid-content .dgrid-row:dblclick",t.hitch(this,"_handleClusterListRowDoubleClicked"))},onPaneActivated:function(e){this.buttons.next.disabled=!0,this.manager.discover(e.targets)},onPaneDeactivated:function(){this.manager.cancel(),this.getView().selectedCluster=this.clusterTable.getSelectedCluster()},notifyCancelled:function(){return this.buttons.next.disabled=!0,this.manager.isRunning()?(this._cancelPromise=new i,this.manager.cancel(),this._cancelPromise):this.inherited(arguments)},_handleClusterSelected:function(e){this._cancelPromise||this._onClusterSelected(e.rows[0].data)},_onClusterSelected:function(e){this.buttons.next.disabled=!e||e&&!1===e.compatible,r.display(this.clusterDetailsHasProfiles,e&&e.profiles.length>0),r.display(this.clusterDetailsIncompatible,e&&!1===e.compatible)},_handleClusterDeselected:function(){this._onClusterSelected(null)},_handleClusterFound:function(e){this._cancelPromise||this.clusterTable.addCluster(e)},_handleClusterListRowDoubleClicked:function(){this.buttons.next.disabled||this.getView().showNextPane()},_updateStatusInfo:function(){var e,t;this.clusterTable.allCompatible()?(e=this.nls.StatusFinished,t="StatusFinished"):this.clusterTable.allIncompatible()?(e=this.nls.StatusNoCompatible,t="StatusNoCompatible"):(e=this.nls.StatusSomeIncompatible,t="StatusFinished"),this.statusMessage.textContent=e,n.replace(this.statusMessage,this.baseClass+t,this.baseClass+"StatusPending")},_handleDiscoveryComplete:function(){this._cancelPromise?this._cancelPromise.resolve():this.clusterTable.isEmpty()?this.getView().showNextPane():this._updateStatusInfo()},_handleDiscoveryFailed:function(e){a.displayError(e.errorMessage,{closeCallback:this.getView().onFinished})}})}),e,t),e.exports=o},function(e,t,i){e.exports={ButtonsCancel:"キャンセル",ButtonsFinish:"終了",ButtonsNext:"次へ",LabelCompletionText:"次に実行する操作をいくつか示します:<br/><ul><li>クラスター プロファイル マネージャーで <b>[検証]</b> をクリックして、新しいクラスターが機能することを確認する。</li><li>クラスター上で並列プールを起動してから parfor または spmd を使用する。</li><li>クラスターにバッチ ジョブを投入する。</li></ul>",LabelCreatedProfile:'クラスター プロファイル マネージャーのリストにクラスター "${0}" が正常に追加されました。',LabelCreatingProfile:"選択したクラスターのプロファイルを作成中です。",LabelHasProfiles:"選択したクラスターには既にプロファイルが関連付けられています。[次へ] ボタンをクリックすると、追加のプロファイルが作成されます。",LabelIncompatible:"選択したクラスターで、このクライアント セッションと互換性のないバージョンの MATLAB が実行されています。",LabelNoClusters:"<ul><li>使用可能なクラスターが存在しない可能性があります。<br/><br/>クラウド クラスターの作成ウィザードを使用してカスタム クラウド クラスターを作成できます。</li><br/><li>自動検出のできないクラスターにアクセスしている可能性があります。<br/><br/>クラスター定義をインポートできます。そのようなファイルがない場合は、クラスター管理者に問い合わせてください。使用できる可能性があるクラスターの詳細については、システム管理者に問い合わせてください。</li>",LabelSelectCluster:"使用するクラスターを選択:",LabelSetDefaultProfileNoRestart:"新しいクラスターを既定に設定する",LabelSetDefaultProfileRestart:"新しいクラスターを既定として設定し、並列プールを再起動する",StatusFinished:"次のクラスターが見つかりました。",StatusNoCompatible:"互換性のあるクラスターが見つかりませんでした。",StatusNotFound:"クラスターが見つかりませんでした。",StatusSomeIncompatible:"次のクラスターが見つかりました。一部のクラスターで、このクライアント セッションと互換性のないバージョンの MATLAB が実行されています。",StatusStarted:"クラスターの検出中...",TableColumnsHost:"ホスト",TableColumnsName:"クラスター名",TableColumnsNumWorkers:"ワーカー",TableColumnsProfile:"プロファイル名",TableColumnsRelease:"リリース",TableColumnsType:"タイプ",Title:"クラスターの検出",WelcomeCloudOnly:"<p>クラスターの検出ウィザードにようこそ。</p><br/><p>このウィザードでは、Amazon EC2 上で実行されている MATLAB Parallel Server クラスターを検出します。ウィザードでは MathWorks アカウント (${0}) を使用してクラスターにアクセスします。</p><br/><p>検出処理を開始するには <b>[次へ]</b> をクリックしてください。</p>",WelcomeTargetsCloud:"Amazon EC2 上",WelcomeTargetsCloudDescription:"Amazon EC2 で実行しているクラスターを検出するには、このオプションを選択します。これらのクラスターにアクセスするには、MathWorks アカウント ログイン情報を指定しなければなりません。",WelcomeTargetsLabel:"MATLAB Parallel Server のクラスターの検出場所",WelcomeTargetsNetwork:"ネットワーク上",WelcomeTargetsNetworkDescription:"クラスターが MATLAB ジョブ スケジューラまたは Microsoft Windows HPC Server を使用している場合は、このオプションを選択します。"}},function(e,t,i){e.exports={ButtonsCancel:"취소",ButtonsFinish:"마침",ButtonsNext:"다음",LabelCompletionText:"다음으로 시도해 볼 수 있는 작업은 다음과 같습니다.<br/><ul><li>클러스터 프로파일 관리자에서 <b>유효성 검사</b>를 클릭하여 새 클러스터가 작동하는지 확인합니다.</li><li>클러스터에서 병렬 풀을 시작한 다음 parfor 또는 spmd를 사용합니다.</li><li>클러스터에 일괄 처리 작업을 제출합니다.</li></ul>",LabelCreatedProfile:'클러스터 "${0}"을(를) 클러스터 프로파일 관리자 목록에 추가했습니다.',LabelCreatingProfile:"선택한 클러스터의 프로파일을 만듭니다.",LabelHasProfiles:"선택한 클러스터는 이미 프로파일이 연결되어 있습니다. [다음] 버튼을 클릭하면 프로파일을 추가로 만듭니다.",LabelIncompatible:"선택한 클러스터는 이 클라이언트 세션과 호환되지 않는 MATLAB 버전을 실행하고 있습니다.",LabelNoClusters:"<ul><li>사용 가능한 클러스터가 없을 수 있습니다.<br/><br/>클라우드 클러스터 생성 마법사를 사용하여 사용자 지정 클라우드 클러스터를 생성할 수 있습니다.</li><br/><li>자동으로 검색할 수 없는 클러스터에 대한 액세스 권한을 갖고 있는 경우일 수도 있습니다.<br/><br/>클러스터 정의를 가져올 수 있습니다. 이러한 파일이 없으면 클러스터 관리자에게 문의하십시오. 사용할 수 있는 클러스터에 대해 자세히 알아보려면 시스템 관리자에게 문의하십시오.</li>",LabelSelectCluster:"사용할 클러스터 선택:",LabelSetDefaultProfileNoRestart:"새 클러스터를 디폴트 값으로 설정",LabelSetDefaultProfileRestart:"새 클러스터를 디폴트 값으로 설정하고 병렬 풀 다시 시작",StatusFinished:"다음 클러스터가 발견되었습니다.",StatusNoCompatible:"호환되는 클러스터가 발견되지 않았습니다.",StatusNotFound:"클러스터가 발견되지 않았습니다.",StatusSomeIncompatible:"다음 클러스터가 발견되었습니다. 일부 클러스터에서 이 클라이언트 세션과 호환되지 않는 MATLAB 버전을 실행하고 있습니다.",StatusStarted:"클러스터를 검색하는 중...",TableColumnsHost:"호스트",TableColumnsName:"클러스터 이름",TableColumnsNumWorkers:"워커 개수",TableColumnsProfile:"프로파일 이름",TableColumnsRelease:"릴리스",TableColumnsType:"유형",Title:"클러스터 검색",WelcomeCloudOnly:"<p>클러스터 검색 마법사를 시작합니다.</p><br/><p>이 마법사를 사용하면 Amazon EC2에서 실행 중인 MATLAB Parallel Server 클러스터를 찾을 수 있습니다. 이 마법사는 사용자의 MathWorks 계정(${0})을 사용하여 클러스터에 액세스합니다.</p><br/><p><b>다음</b>을 클릭하여 검색 절차를 시작하십시오.</p>",WelcomeTargetsCloud:"Amazon EC2",WelcomeTargetsCloudDescription:"Amazon EC2에서 실행 중인 클러스터를 찾으려면 이 옵션을 선택합니다. 이러한 클러스터에 액세스하려면 MathWorks 계정 로그인 정보를 제공해야 합니다.",WelcomeTargetsLabel:"MATLAB Parallel Server 클러스터를 어디서 찾으시겠습니까?",WelcomeTargetsNetwork:"사용자 네트워크",WelcomeTargetsNetworkDescription:"사용자 클러스터에서 MATLAB 작업 스케줄러 또는 Microsoft Windows HPC Server를 사용하는 경우 이 옵션을 선택합니다."}},function(e,t,i){e.exports={root:{ButtonsCancel:"Cancel",ButtonsFinish:"Finish",ButtonsNext:"Next",LabelCompletionText:"Here are some things you might want to try next:<br/><ul><li>Click <b>Validate</b> in the Cluster Profile Manager to ensure the new cluster works.</li><li>Start a parallel pool on the cluster, then use parfor or spmd.</li><li>Submit a batch job to the cluster.</li></ul>",LabelCreatedProfile:'You have successfully added the cluster "${0}" to the Cluster Profile Manager list.',LabelCreatingProfile:"Creating a profile for the selected cluster.",LabelHasProfiles:"The selected cluster already has profile(s) associated with it. Clicking on the Next button will create an additional profile.",LabelIncompatible:"The selected cluster is running a version of MATLAB incompatible with this client session.",LabelNoClusters:"<ul><li>There might not be any clusters available to you.<br/><br/>You can use the Create Cloud Cluster wizard to build your custom cloud cluster.</li><br/><li>You might have access to a cluster that is not automatically discoverable.<br/><br/>You can import the cluster definition. If you do not have such a file, then contact the cluster administrator. To learn more about clusters that may be available to you, contact your system administrator.</li>",LabelSelectCluster:"Select a cluster to use:",LabelSetDefaultProfileNoRestart:"Set new cluster as default",LabelSetDefaultProfileRestart:"Set new cluster as default and restart the parallel pool",StatusFinished:"The following clusters were found.",StatusNoCompatible:"No compatible clusters were found.",StatusNotFound:"No clusters were found.",StatusSomeIncompatible:"The following clusters were found. Some clusters are running a version of MATLAB that is incompatible with this client session.",StatusStarted:"Discovering clusters...",TableColumnsHost:"Host",TableColumnsName:"Cluster Name",TableColumnsNumWorkers:"Workers",TableColumnsProfile:"Profile Name",TableColumnsRelease:"Release",TableColumnsType:"Type",Title:"Discover Clusters",WelcomeCloudOnly:"<p>Welcome to the Discover Clusters Wizard.</p><br/><p>Use this wizard to find MATLAB Parallel Server clusters running on Amazon EC2. The wizard accesses clusters using your MathWorks Account (${0}).</p><br/><p>Click <b>Next</b> to start the discovery process.</p>",WelcomeTargetsCloud:"On Amazon EC2",WelcomeTargetsCloudDescription:"Select this option to find clusters running on Amazon EC2. You must provide your MathWorks Account login information to access these clusters.",WelcomeTargetsLabel:"Where do you want to look for MATLAB Parallel Server clusters?",WelcomeTargetsNetwork:"On your network",WelcomeTargetsNetworkDescription:"Select this option if your clusters use a MATLAB Job Scheduler or Microsoft Windows HPC Server."},"ja-jp":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(1662),i(1254),i(750),i(851),i(697),i(203),i(210),i(428),i(753),i(1253)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return r("pct/app/cluster/discovery/DiscoveryTable",[n,i,o,e,t],{id:"DiscoveryTableGrid",columns:[{field:"name",label:c.TableColumnsName},{field:"hostName",label:c.TableColumnsHost},{field:"numWorkers",label:c.TableColumnsNumWorkers,renderCell:function(e,t,i){i.textContent=0===t?"auto":t}},{field:"type",label:c.TableColumnsType,renderCell:function(e,t,i){i.textContent="MJSComputeCloud"===t?"MATLAB Job Scheduler":t}},{field:"release",label:c.TableColumnsRelease},{field:"profiles",label:c.TableColumnsProfile}],sort:"name",selectionMode:"single",deselectOnRefresh:!1,adjustLastColumn:!0,startup:function(){this.inherited(arguments),a.add(this.domNode,"discoveryTableGrid"),this.store=new l(new s({idProperty:"name"}))},renderRow:function(e){var t=this.inherited(arguments);return a.toggle(t,"discoveryClusterIncompatible",!e.compatible),a.toggle(t,"discoveryClusterSecure",e.secure),t},getSelectedCluster:function(){var e=Object.keys(this.selection).filter((function(e){return this.selection[e]}),this).map((function(e){return this.store.get(e)}),this);return 0===e.length?null:e[0]},addCluster:function(e){this.store.put(e),this.refresh()},allIncompatible:function(){return 0!==this.store.data.length&&this.store.data.every((function(e){return!1===e.compatible}))},allCompatible:function(){return this.store.data.every((function(e){return e.compatible}))},isEmpty:function(){return 0===this.store.data.length}})}),e,t),e.exports=o},function(e,t){e.exports='<table class="${baseClass}Clusters">\n <tr>\n <td id="${id}Status"\n data-dojo-attach-point="statusMessage"\n class="${baseClass}Status ${baseClass}StatusPending">\n ${nls.StatusStarted}\n </td>\n </tr>\n <tr>\n <td>${nls.LabelSelectCluster}</td>\n </tr>\n <tr class="${baseClass}ClustersRow">\n <td class="${baseClass}ClustersCell">\n <div id="${id}Table"\n data-dojo-type="pct/app/cluster/discovery/DiscoveryTable"\n data-dojo-attach-event="dgrid-select: _handleClusterSelected, dgrid-deselect: _handleClusterDeselected"\n data-dojo-attach-point="clusterTable">\n </div>\n </td>\n </tr>\n <tr>\n <td id="${id}ClusterHasProfiles"\n style="display: none"\n class="${baseClass}ClusterDetailsWarning ${baseClass}ClusterDetails"\n data-dojo-attach-point="clusterDetailsHasProfiles">\n ${nls.LabelHasProfiles}\n </td>\n </tr>\n <tr>\n <td id="${id}ClusterIncompatible"\n style="display: none"\n class="${baseClass}ClusterDetailsWarning ${baseClass}ClusterDetails"\n data-dojo-attach-point="clusterDetailsIncompatible">\n ${nls.LabelIncompatible}\n </td>\n </tr>\n</table>'},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(236),i(1661),i(1249),i(462),i(602),i(700),i(8709),i(308)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e("cluster/discovery/panes/DiscoveryCompletedPane",[o],{templateString:c,buttons:{next:{visible:!1},cancel:{visible:!1},finish:{visible:!0,focus:!0,refresh:["_handleProfileCreated"]}},onPaneActivated:function(){const e=this.getView().selectedCluster,n=r.get().latest.shouldRestartOnClusterChange();this.setDefaultCheckBox.set("text",n?this.nls.LabelSetDefaultProfileRestart:this.nls.LabelSetDefaultProfileNoRestart),e?(this.buttons.finish.disabled=!0,this.manager.createProfile(e).then(t.hitch(this,"_handleProfileCreated"),t.hitch(this,"_handleProfileCreationFailed"))):(a.toggleDisplay(this.clusterNotFoundNode,this.clusterFoundNode),this.statusMessage.textContent=this.nls.StatusNotFound,i.add(this.statusMessage,this.baseClass+"StatusNotFound"))},onPaneDeactivated:function(){var e;this.setDefaultCheckBox.get("checked")&&this.getView().selectedCluster&&(e=this.getView().profileInfo.name,l.setDefaultProfileWithConfirmation(e))},_handleProfileCreated:function(e){this._destroyed||(e=e[0],this.getView().profileInfo=e,this.buttons.finish.disabled=!1,this.setDefaultCheckBox.set("disabled",!1),this.statusMessage.textContent=n.substitute(this.nls.LabelCreatedProfile,[e.alias]),i.replace(this.statusMessage,this.baseClass+"StatusFinished",this.baseClass+"StatusPending"))},_handleProfileCreationFailed:function(e){s.displayError(e),this.getView().onFinished()}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div id="${id}ProfileStatus"\n data-dojo-attach-point="statusMessage"\n class="${baseClass}Status ${baseClass}StatusPending">\n ${nls.LabelCreatingProfile}\n </div>\n\n <div data-dojo-attach-point="clusterFoundNode">\n\n <div id="${id}SetDefaultProfile"\n data-dojo-props="disabled: true, checked: true"\n data-dojo-type="mw-form/CheckBox"\n data-dojo-attach-point="setDefaultCheckBox"></div>\n\n <br/><br/>\n\n <p>${!nls.LabelCompletionText}</p>\n </div>\n\n <div data-dojo-attach-point="clusterNotFoundNode"\n style="display: none"\n class="${baseClass}ClusterNotFoundDescription">\n ${!nls.LabelNoClusters}\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(210),i(236),i(1661),i(1018),i(462),i(700),i(308),i(8711)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e("cluster/discovery/panes/DiscoveryWelcomePane",[n],{templateString:l,buttons:{cancel:{visible:!0},next:{visible:!0,focus:!0,refresh:["_handleTargetChanged"]},finish:{visible:!1}},constructor:function(){this.shouldDiscoverAllTargets=a.isSupported("local")},startup:function(){if(this.inherited(arguments),this.shouldDiscoverAllTargets)t.add(this.getView().domNode,"discoverAllTargets");else{var e=o.getInstance().getUserInfo();this.welcomeMessage.innerHTML=i.substitute(this.nls.WelcomeCloudOnly,[e.emailAddress])}},_handleTargetChanged:function(){this.buttons.next.disabled=this.shouldDiscoverAllTargets&&![this.targetNetwork,this.targetCloud].some((function(e){return e.get("checked")}))},onPaneDeactivated:function(){return this.shouldDiscoverAllTargets?{targets:{network:this.targetNetwork.get("checked"),cloud:this.targetCloud.get("checked")}}:{targets:{network:!1,cloud:!0}}}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div class="${baseClass}CloudOnly"\n id="${id}CloudOnly"\n data-dojo-attach-point="welcomeMessage"></div>\n <div class="${baseClass}AllTargets"\n id="${id}AllTargets">\n <div class="${baseClass}AllTargetsLabel">${nls.WelcomeTargetsLabel}</div>\n\n <div class="${baseClass}TargetGroup">\n <div class="${baseClass}Target"\n id="${id}TargetNetwork"\n data-dojo-type="mw-form/CheckBox"\n data-dojo-props="text: \'${nls.WelcomeTargetsNetwork}\', checked: true"\n data-dojo-attach-event="change: _handleTargetChanged"\n data-dojo-attach-point="targetNetwork"></div>\n <div class="${baseClass}TargetDescription">${nls.WelcomeTargetsNetworkDescription}</div>\n </div>\n <div class="${baseClass}TargetGroup">\n <div class="${baseClass}Target"\n id="${id}TargetCloud"\n data-dojo-type="mw-form/CheckBox"\n data-dojo-props="text: \'${nls.WelcomeTargetsCloud}\'"\n data-dojo-attach-event="change: _handleTargetChanged"\n data-dojo-attach-point="targetCloud"></div>\n <div class="${baseClass}TargetDescription">${nls.WelcomeTargetsCloudDescription}</div>\n </div>\n </div>\n</div>'},function(e,t){e.exports='<div>\n <div id="${id}StackContainer"\n class="${baseClass}StackContainer"\n data-dojo-props="doLayout: false"\n data-dojo-type="dijit/layout/StackContainer"\n data-dojo-attach-point="stackContainer"\n data-dojo-id="stackContainer">\n <div data-dojo-type="cluster/discovery/panes/DiscoveryWelcomePane"\n id="${id}WelcomePane"></div>\n <div data-dojo-type="cluster/discovery/panes/DiscoveryClusterListPane"\n id="${id}ClusterListPane"></div>\n <div data-dojo-type="cluster/discovery/panes/DiscoveryCompletedPane"\n id="${id}CompletedPane"></div>\n </div>\n <div class="${baseClass}Buttons">\n <button id="${id}NextButton"\n class="${baseClass}Button"\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'${nls.ButtonsNext}\'"\n data-dojo-attach-point="nextButton"\n data-dojo-attach-event="click: showNextPane">\n </button>\n <button id="${id}CancelButton"\n class="${baseClass}Button"\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'${nls.ButtonsCancel}\'"\n data-dojo-attach-point="cancelButton"\n data-dojo-attach-event="click: _handleCancelClicked">\n </button>\n <button id="${id}FinishButton"\n class="${baseClass}Button"\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'${nls.ButtonsFinish}\'"\n data-dojo-attach-point="finishButton"\n data-dojo-attach-event="click: _handleFinishClicked">\n </button>\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(8714),i(395),i(262)],o=i.dj.d(n,(function(e,t,i){var n,o,r={};return r.show=function(){var r="pctProfileManager";o?o.bringToTop():(n=n||new e({id:r+"View"}),(o=i.createDialog({title:t.Title,id:r,draggable:!0,resizable:!0,closeOnEscape:!1,"data-test-id":r,content:n,className:"profileManagerDialog pctDialog pctDialogNoScrollbar"})).on("close",(function(){n.profileView.getPropertiesView().cancelEditing(),n.table.hideOverlay(),o=null})),n.resize(),o.on("resize",(function(){n.resize()})))},r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(276),i(203),i(204),i(210),i(384),i(236),i(464),i(701),i(1248),i(8715),i(1251),i(8753),i(700),i(2669),i(1256),i(1668),i(8755),i(2675),i(1659),i(8758),i(648),i(1666),i(602),i(1250),i(395),i(568),i(241)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I){return t([a],{confirmDelete:!0,minimumCenterWidth:400,constructor:function(){this._canValidate=!1,s.getInstance()},buildRendering:function(){this.inherited(arguments),n.add(this.domNode,"profileManagerView")},postCreate:function(){this.inherited(arguments),this._setupActions(),this.own(this.table=new u({id:this.id+"Table",profiles:s.getInstance().data.profiles,actions:g.actions}),this.profileView=new c({id:this.id+"Container"})),this.addChild(new e({region:"top",id:this.id+"ToolStripContainer"})),this.addWithProperties(this.table,new o({region:"left",hasSplitter:!0,isCollapsible:!0,minSize:100,isProportional:!0})),this.addWithProperties(this.profileView,new o({region:"center"})),this._toolstrip=new m(this._actions.getActionService()),this._toolstrip.placeAt(this.id+"ToolStripContainer"),s.getInstance().validationManager.isReady?this._handleValidationManagerReady():this._disableActions(),this._bindEvents()},startup:function(){this.inherited(arguments),this.table.selectFirstProfile()},destroyRecursive:function(){},_disableActions:function(){this._actions.toggleState(!0),this._toolstrip.toggleAllSchedulersInAddMenu(!0),g.actions.importAction.enable(),g.actions.cloud.enable(),g.actions.cloudCenter.enable(),g.actions.licenseCenter.enable(),g.actions.cloudConnectivity.enable(),g.actions.help.enable()},_enableActions:function(){const e=this._getSelectedProfile();if(!e)return;const t=s.getInstance().isDefaultProfile(e);this._actions.toggleState(!1),this._toolstrip.toggleAllSchedulersInAddMenu(!1),e.isCorrupt()&&g.actions.edit.disable(),e.copyable&&!e.isCorrupt()||g.actions.duplicate.disable(),e.isFactory&&(g.actions.deleteAction.disable(),g.actions.rename.disable()),(t||e.isCorrupt())&&g.actions.setDefault.disable(),e.exportable&&!e.isCorrupt()||g.actions.exportActions.selected.disable(),this._canValidate&&!e.isCorrupt()||g.actions.validate.disable()},_bindEvents:function(){this.own(s.getInstance().on(s.PROFILE_ADDED,i.hitch(this,"_handleProfileAdded")),s.getInstance().on(s.PROFILE_REMOVED,i.hitch(this,"_handleProfileRemoved")),s.getInstance().on(s.PROFILE_RENAMED,i.hitch(this,"_handleProfileRenamed")),s.getInstance().on(s.PROFILE_EXPORTABLE_CHANGED,i.hitch(this,"_handleProfileExportableChanged")),s.getInstance().on(s.DEFAULT_PROFILE_CHANGED,i.hitch(this,"_handleDefaultProfileChanged")),s.getInstance().on(s.READY,e=>this._handleProfileManagerReady(e)),s.getInstance().on(s.FAILED_TO_INITIALIZE,e=>{this.table.hideOverlay(),this._disableActions(),T.displayError(e)}),s.getInstance().validationManager.on(l.READY,i.hitch(this,"_handleValidationManagerReady")),this.table.on("dgrid-select",i.hitch(this,"_handleProfileSelected")),this.table.on("dgrid-deselect",i.hitch(this,"_handleProfileDeselected")),this.profileView.getPropertiesView().on(p.SET_EDIT_MODE,i.hitch(this,"_handleEditModeChanged")),this.profileView.getValidationView().on(_.VALIDATION_FINISHED,i.hitch(this,"_handleValidationFinished")))},_handleProfileManagerReady:function(e){const t=Object.entries(e.SchedulerComponent).map(([e,t])=>({id:"motw.parallel.profile.add."+e,index:t.Index,type:e,hidden:t.Hidden,title:t.Title,hideDescription:t.HideDescription,description:S[`ActionsAddTypes${e}Description`],suggestedProfileName:t.SuggestedNewProfileName,startSection:t.StartSection,separatorBefore:t.HasSeparator})).filter(e=>!e.hidden).sort((e,t)=>e.index-t.index);this._toolstrip.populateAddDropDown(t,e=>this._handleAddClicked(e))},_handleProfileSelected:function(e){e.rows.length>0&&(this.profileView.set("profile",e.rows[0].data),this._enableActions())},_handleProfileDeselected:function(){this.profileView.set("profile",null),this._disableActions()},_handleEditModeChanged:function(e){this.table.toggleState(e.editing),e.editing?this._disableActions():this._enableActions(),this.profileView.getTab().disableValidationTab(e.editing)},_getSelectedProfile:function(){return this.profileView.get("profile")},_handleEditClicked:function(){this.profileView.getTab().activateEditingTab(),this.profileView.getPropertiesView().setEditMode(!0)},_handleDuplicateClicked:function(){const e=this._getSelectedProfile();s.getInstance().executor.cloneProfile(e.name).otherwise(T.displayError)},_handleRenameClicked:function(){this.table.editProfile()},_handleSetDefaultClicked:function(){const e=this._getSelectedProfile();h.setDefaultProfileWithConfirmation(e.name)},_handleDeleteClicked:function(){const e=this._getSelectedProfile();function t(){s.getInstance().executor.deleteProfile(e.name).otherwise(T.displayError)}e&&!e.isFactory&&(this.confirmDelete?I.displayConfirmDialog(E.Confirm,r.substitute(S.ActionsDeleteActionConfirmText,[d.normalizeProfileName(e.name)]),{icon:"question",buttonText:[w.yes,w.no],closeCallback:function(e){1===e.response&&t()}}):t())},_handleImportClicked:function(){C.showOpenFileDialog({filter:"*.mlsettings; *.settings",title:S.ActionsImportActionDialogTitle}).then((function(e){e&&s.getInstance().executor.importProfile(e.path+e.name).otherwise(T.displayError)}),T.displayError)},_handleExportClicked:function(){const e=this._getSelectedProfile();C.showSaveFileDialog({filter:"*.mlsettings",title:S.ActionsExportActionDialogTitle,fileName:e.name+".mlsettings"}).then((function(t){t&&s.getInstance().executor.exportProfile(e.name,t.path+t.name).otherwise(T.displayError)}),T.displayError)},_handleExportAllClicked:function(){C.showSaveFileDialog({filter:"*.mlsettings",title:S.ActionsExportActionDialogTitle,fileName:S.FilesExportAllFileName+".mlsettings"}).then((function(e){e&&s.getInstance().executor.exportAllProfiles(e.path+e.name).otherwise(T.displayError)}),T.displayError)},_handleCreateCloudClicked:function(){g.actions.cloud.disable(),v.getInstance().createCloudCluster().otherwise(T.displayError).always(i.hitch(g.actions.cloud,"enable"))},_handleCloudCenterClicked:function(){v.getInstance().openCloudCenter().otherwise(T.displayError)},_handleManageLicenseClicked:function(){v.getInstance().openLicenseCenter().otherwise(T.displayError)},_handleTestCloudConnectivityClicked:function(){b.show()},_handleAddClicked:function(e){s.getInstance().executor.addProfile(e.type,e.suggestedProfileName).otherwise(T.displayError)},_handleHelpClicked:function(){s.getInstance().executor.showHelp().otherwise(T.displayError)},_handleValidateClicked:function(){this.profileView.getTab().activateValidationTab(),this.profileView.getTab().toggleEditingTabState(!0),this.table.toggleState(!0),this._disableActions(),s.getInstance().validate(this._getSelectedProfile())},_handleValidationError:function(e){this.profileView.getTab().toggleEditingTabState(!1),this.table.toggleState(!1),this._enableActions(),T.displayError(e)},_handleValidationFinished:function(){this.profileView.getTab().toggleEditingTabState(!1),this.table.toggleState(!1),this._enableActions()},_handleProfileAdded:function(e){this.table.notifyAdded(e),!this.profileView.getPropertiesView().editing&&s.getInstance().validationManager.isReady()&&this.table.selectProfile(e)},_handleProfileRemoved:function(e){this.table.notifyRemoved(e)},_handleProfileRenamed:function(e){const t=this._getSelectedProfile();this.table.notifyUpdated(e),t===e&&this.profileView.set("profile",e)},_handleProfileExportableChanged:function(e,t){const i=!t.newValue;g.actions.exportActions.selected.toggleState(i)},_handleDefaultProfileChanged:function(e){this._getSelectedProfile()===e.newProfile&&g.actions.setDefault.disable(),e.oldProfile&&this.table.notifyUpdated(e.oldProfile),e.newProfile&&this.table.notifyUpdated(e.newProfile)},_handleValidationManagerReady:function(){this._canValidate=!0,this.table.isAnyRowSelected()?this._enableActions():(this._disableActions(),this.table.selectFirstProfile())},_setupActions:function(){this._actions=new g,this._actions.hitchCallbacks(this),this._actions.load()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(384),i(464),i(1022),i(8716),i(8718),i(462)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([n,o],{buildRendering:function(){this.inherited(arguments),t.add(this.domNode,"profileContainer")},postCreate:function(){this.inherited(arguments),this.own(this.details=new r({id:this.id+"DetailsHeader"}),this.tab=new a({id:this.id+"TabContainer"})),this.addWithProperties(this.details,new i({region:"top"})),this.addWithProperties(this.tab,new i({region:"center"}))},_setProfileAttr:function(e){this.inherited(arguments),s.display(this,null!==e),this.details.set("profile",e),this.tab.set("profile",e),e&&(t.toggle(this.domNode,"corruptProfileContainer",e.isCorrupt()),this.registerListener("corruptChanged","_handleCorruptChanged",this))},_handleCorruptChanged:function(e){t.toggle(this.domNode,"corruptProfileContainer",e.corrupt)},getTab:function(){return this.tab},getPropertiesView:function(){return this.getTab().getPropertiesView()},getValidationView:function(){return this.getTab().getValidationView()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(203),i(236),i(1022),i(395),i(8717)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i([t,e,o],{templateString:a,baseClass:"profileDetails",style:{height:"40px"},_setProfileAttr:function(e){this.inherited(arguments),e?(this.nameLabel.textContent=e.name,this.typeLabel.textContent=n.substitute(r.ViewType,[e.typeLabel])):(this.nameLabel.textContent="",this.typeLabel.textContent="")}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div id="${id}NameLabel"\n class="${baseClass}NameLabel"\n data-dojo-attach-point="nameLabel"></div>\n <div id="${id}TypeLabel"\n class="${baseClass}TypeLabel"\n data-dojo-attach-point="typeLabel">\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(276),i(203),i(204),i(210),i(384),i(344),i(488),i(1022),i(2669),i(2675),i(395)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return t([a,s],{nls:d,shrinkTabsToFit:!0,minimumTabWidth:200,buildRendering:function(){this.inherited(arguments),n.add(this.domNode,"profileTabContainer")},postCreate:function(){this.inherited(arguments),this.own(this.properties=new l({id:this.id+"PropertiesView"}),this.validation=new c({id:this.id+"ValidationView"})),this.addWithProperties(this.propertiesTab=new e({content:this.properties}),new o({title:d.ViewProperties}),void 0,!0),this.addWithProperties(this.validationTab=new e({content:this.validation,onShow:i.hitch(this.validation.table,"resize")}),new o({title:d.ValidationTitle}),void 0,!1)},_setProfileAttr:function(e){this.inherited(arguments),this.properties.set("profile",e),this.validation.set("profile",e)},getPropertiesView:function(){return this.properties},getValidationView:function(){return this.validation},activateEditingTab:function(){this.showChild(this.propertiesTab)},activateValidationTab:function(){this.showChild(this.validationTab)},disableValidationTab:function(e){this.getChildProperties(this.validationTab).set(r.IS_ENABLED,!e)},toggleEditingTabState:function(e){this.getChildProperties(this.propertiesTab).set(r.IS_ENABLED,!e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(204),i(8720),i(8746)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=function(e){return"Description"===e.info.name},l=function(e,t){return s(e)?-1:s(t)?1:e.info.priority-t.info.priority};return n([t,e,i],{templateString:a,baseClass:"profileViewSection",constructor:function(e){if(!(e=e||{}).section)throw new Error("No section specified for PropertySectionWidget");this._widgets=[]},_addPropertyWidget:function(e){if(!e.info.hidden){var t=new r({id:"profileViewProperty"+e.info.name,property:e});t.placeAt(this.domNode),this._widgets.push(t),this.own(t)}},_removePropertyWidget:function(e){this._widgets=this._widgets.filter((function(t){return t.property!==e||(t.destroy(),!1)}))},startup:function(){this.inherited(arguments),this.section.properties.sort(l).forEach(this._addPropertyWidget,this),this.own(this.section.on("propertyAdded",o.hitch(this,"_addPropertyWidget")),this.section.on("propertyRemoved",o.hitch(this,"_removePropertyWidget")))},getChangedProperties:function(){return this._widgets.filter((function(e){return e.isModified()})).map((function(e){return e.getEditInfo()}))},setEditing:function(e){this._widgets.forEach((function(t){t.setEditing(e)}))},save:function(){this._widgets.forEach((function(e){e.save()}))},restore:function(){this._widgets.forEach((function(e){e.restore()}))},isValid:function(){return this._widgets.every((function(e){return e.isValid()}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(272),i(216),i(215),i(312),i(203),i(204),i(279),i(8721),i(8745)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return o([i,t,e],{templateString:l,baseClass:"profileViewProperty",constructor:function(e){if(!(e=e||{}).property)throw new Error("No property specified for PropertyWidget");this.widgetInfo=s.getWidgetInfo(e.property)},postCreate:function(){var e=this.widgetInfo.editor.className,t=this.widgetInfo.viewer.className,i=r.mixin({property:this.property},this.widgetInfo.editor.options),n=r.mixin({property:this.property},this.widgetInfo.viewer.options);this.inherited(arguments),this._viewer=new t(n),this.own(this._viewer),this.addChild(this._viewer),this._editor=new e(i),this.own(this._editor),this._editor.on("saved",r.hitch(this,"_handlePropertySaved")),this.addChild(this._editor)},_handlePropertySaved:function(e){this.emit("saved",e)},getEditInfo:function(){return r.mixin({newValue:this._editor.getValue()},this.property)},startup:function(){this.inherited(arguments),this._viewer.placeAt(this.containerNode),this._editor.placeAt(this.containerNode),this._editor.hide()},setEditing:function(e){this._viewer.set("visible",!e),this.property.info.configurable&&this._editor.set("visible",e)},isModified:function(){return this._editor.isModified()},save:function(){n.hide(this._editor.domNode),this._editor.save(),this._viewer.refresh()},restore:function(){n.hide(this._editor.domNode),this._editor.restore()},isValid:function(){return!!this._editor.isValid()||(a.scrollIntoView(this._editor.domNode),n.show(this._editor.message,this._editor.domNode),this._hideTooltipTimeout=setTimeout(()=>n.hide(this._editor.domNode),5e3),!1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1663),i(8723),i(8725),i(8728),i(8735),i(2671),i(2672),i(8736),i(8737),i(1255),i(8740),i(8741),i(1667),i(8742),i(8743)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){const g=Object.freeze({editor:{className:c,options:{}},viewer:{className:h,options:{}}}),m=Object.freeze({POSITIVEINTSCALAR:{editor:{className:a}},POSITIVENONZEROFINITEINTSCALAR:{editor:{className:a,options:{allowZero:!1,allowInf:!1}}},NONEMPTYSTRING:{editor:{options:{required:!0}}},CELLSTR:{viewer:{className:d},editor:{className:r}},LOGICALSCALAR:{editor:{className:o}},WORKERLIMITS:{editor:{className:s},viewer:{className:u}},ENUM:{editor:{className:e}},VARENUM:{editor:{className:t}},FILELIST:{viewer:{className:d},editor:{className:i}},DATALOCATION:{editor:{className:n}},ADDITIONALPROPERTIES:{editor:{className:l,options:f.Editor},viewer:{className:p,options:f.Viewer}}});return{getWidgetInfo:function(e){return Object.assign({},g,m[e.info.constraint.type])}}}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div class="${baseClass}Widget"\n id="${id}Widget"\n data-dojo-type="${editorClass}"\n data-dojo-attach-point="editor"></div>\n <div class="${baseClass}DefaultValue ${baseClass}DefaultValue${defaultValuePresence}"\n id="${id}DefaultValue">${defaultValueDisplay}\n </div>\n <div class="${baseClass}Notes"\n id="${id}Notes"\n data-dojo-attach-point="notes"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(1663),i(8724),i(511),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i],{kind:"DynamicDropDown",editorClass:"pct/app/cluster/profiles/property/editors/DynamicComboBox",constructor:function(){this.editorEvents={"require-data":"_handleDropDownRequiringData"}},_handleDropDownRequiringData:function(e){new o("DynamicDropDownPropertyEditor").execute({functionName:this.property.info.constraint.inputs.functionName,nargout:1}).then(t.hitch(this,"_handleVariableDataReceived",e.deferred),t.hitch(this,"_handleVariableDataRequestFailed",e.deferred))},_handleVariableDataReceived:function(e,t){var i=t[0];e.resolve(i.map((function(e){return{label:e.toString(),value:e}})))},_handleVariableDataRequestFailed:function(e,t){r.error(t),e.reject(t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(286)],o=i.dj.d(n,(function(e,t,i){return e("pct/app/cluster/profiles/property/editors/DynamicComboBox",[i],{constructor:function(){var e,i=this,n=this._openComboBoxMenu,o=new t;o.promise.then((function(t){i._openComboBoxMenu=n,e=i.get("value"),i.set("items",i.items.concat(t)),i.set("value",e),i.set("disabled",!1),i._openComboBoxMenu()}),(function(){i._openComboBoxMenu=n,i.set("disabled",!1),i._openComboBoxMenu()})),this._openComboBoxMenu=function(){this.set("disabled",!0),this.emit("require-data",{deferred:o})}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8726),i(2671)],o=i.dj.d(n,(function(e,t,i){return e([i],{kind:"FileList",editorClass:"pct/app/cluster/profiles/property/editors/FileListEditor",constructor:function(){this.editorParams={}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(1666),i(602),i(395),i(8727),i(243),i(413)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return n("pct/app/cluster/profiles/property/editors/FileListEditor",[t,e,i],{templateString:s,baseClass:"fileListEditorContainer",nls:a,validationState:"normal",_showDialogAndUpdateEditor:function(e){var t,i=this._editor;e.executor({title:e.title}).then((function(n){n&&((t=i.get("value")).length>0&&(t+="\n"),t+=e.getValueCallback(n),i.set("value",t))}),r.displayError)},_handleAddFilesButtonClicked:function(){this._showDialogAndUpdateEditor({executor:o.showOpenFileDialog,title:a.FilesAddFileTitle,getValueCallback:function(e){return e.path+e.name}})},_handleAddFoldersButtonClicked:function(){this._showDialogAndUpdateEditor({executor:o.showOpenFolderDialog,title:a.FilesAddFolderTitle,getValueCallback:function(e){return e.name}})},_setValueAttr:function(e){this._set("value",e),this._editor.set("value",e)},_getValueAttr:function(){return this._editor.get("value")}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div data-dojo-type="mw-form/TextArea"\n data-dojo-attach-point="_editor"\n class="${baseClass}TextArea"\n id="${id}TextArea"\n data-dojo-props="width: \'100%\', height: 50">\n </div>\n <div class="${baseClass}Buttons propertyEditorContainerButtons">\n <button class="${baseClass}AddButton"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-event="click: _handleAddFilesButtonClicked"\n data-dojo-props="text: \'${nls.FilesAddFileButton}\'">\n </button>\n <button class="${baseClass}AddButton"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-event="click: _handleAddFoldersButtonClicked"\n data-dojo-props="text: \'${nls.FilesAddFolderButton}\'">\n </button>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(8729),i(1255)],o=i.dj.d(n,(function(e,t,i){return e([i],{kind:"FolderSelect",editorClass:"pct/app/cluster/profiles/property/editors/FolderEditor",constructor:function(){this.editorParams={}},isValid:function(){return!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(1666),i(602),i(8730),i(8734),i(243),i(258)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return n("pct/app/cluster/profiles/property/editors/FolderEditor",[t,e,i],{templateString:s,baseClass:"pctFolderEditorContainer",nls:a,_showDialogAndUpdateEditor:function(e){e.executor({title:e.title}).then(t=>{t&&this._editor.set("value",e.getValueCallback(t))},r.displayError)},_handleButtonClicked:function(){this._showDialogAndUpdateEditor({executor:o.showOpenFolderDialog,title:a.SelectFolderTitle,getValueCallback:e=>e.name})},_setValueAttr:function(e){this._set("value",e),this._editor.set("value",e)},_getValueAttr:function(){return this._editor.get("value")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8731),i(8732),i(8733)],o=i.dj.d(n,(function(e,t){return t(e,"pct/resources/parallel/web/nls/profiles",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={ActionsAddDescription:"クラスター プロファイルを新規追加します",ActionsAddText:"クラスター\nプロファイルの追加",ActionsAddTypesGenericDescription:"これを使用することで、ssh を送信ホスト経由で送信ツールとして使用する\nその他すべてのスケジューラまたは非共有ファイル システムがサポートされます",ActionsAddTypesLocalDescription:"マシンのコアを使用します",ActionsAddTypesMJSDescription:"MATLAB ジョブ スケジューラを使用している MATLAB Parallel Server クラスターを使用します",ActionsAddTypesMathWorksHeader:"MathWorks スケジューラを使用したクラスター",ActionsAddTypesThirdPartyHeader:"サードパーティ スケジューラを使用したクラスター",ActionsCloudCenterDescription:"新しいブラウザー ウィンドウに Cloud Center Web アプリケーションを開きます。",ActionsCloudCenterText:"Cloud Center",ActionsCloudConnectivityDescription:"クラウド クラスターへの接続を有効にします。",ActionsCloudConnectivityText:"クラウドの接続テスト",ActionsCreateCloudDescription:"クラウドにクラスターを作成します。",ActionsCreateCloudText:"クラウド クラスター\nの作成",ActionsDeleteActionConfirmText:'プロファイル "${0}" を完全に削除しますか?',ActionsDeleteActionDescription:"選択したクラスター プロファイルを削除します",ActionsDeleteActionText:"削除",ActionsDiscoverDescription:"クラスターの検出...",ActionsDiscoverPopupDescription:"ネットワークで MATLAB Parallel Server\nクラスターを検索します",ActionsDiscoverPopupText:"クラスターの検出...",ActionsDiscoverText:"クラスター\nの検出",ActionsDuplicateDescription:"選択したクラスター プロファイルを複製します",ActionsDuplicateText:"複製",ActionsEditDescription:"選択したクラスター プロファイルを編集します。",ActionsEditText:"編集",ActionsExportActionAllText:"すべてをエクスポート",ActionsExportActionDescription:"クラスター プロファイルをファイルにエクスポートします",ActionsExportActionDialogTitle:"プロファイルをファイルにエクスポート",ActionsExportActionSelectedText:"エクスポート",ActionsExportActionText:"エクスポート",ActionsHelpDescription:"クラスター プロファイル マネージャーのドキュメンテーションを表示します",ActionsHelpText:"ヘルプ",ActionsImportActionDescription:"ファイルからクラスター プロファイルをインポートします",ActionsImportActionDialogTitle:"ファイルからプロファイルをインポートする",ActionsImportActionText:"インポート",ActionsManageLicensesDescription:"ライセンス センターで、ライセンスと利用料金アラートを管理します。",ActionsManageLicensesText:"ライセンスとアラートの管理",ActionsRenameDescription:"選択したクラスター プロファイルの名前を変更します",ActionsRenameText:"名前の変更",ActionsSetDefaultDescription:"選択したクラスター プロファイルを既定のプロファイルとして設定します",ActionsSetDefaultRestartPoolDialogMessage:'"${0}" で並列プールを使用している間に、既定のクラスターを "${1}" に変更するように要求しました。<br/><br/>既定のクラスターを変更してプールを再起動しますか?',ActionsSetDefaultRestartPoolDialogTitle:"並列プールを再起動しますか?",ActionsSetDefaultText:"既定に設定",ActionsValidateDescription:"選択したクラスター プロファイルを検証します",ActionsValidateStopDescription:"現在実行中の検証を停止します",ActionsValidateStopText:"停止",ActionsValidateText:"検証",AdditionalPropertyFieldName:"名前",AdditionalPropertyFieldType:"タイプ",AdditionalPropertyFieldValue:"値",AdditionalPropertyTypeLogical:"logical",AdditionalPropertyTypeNumber:"数値",AdditionalPropertyTypeOther:"その他",AdditionalPropertyTypeString:"string",AdditionalPropertyValidationDuplicateValue:"追加プロパティの名前が重複しています: ${0}。",Browse:"参照...",ButtonAdd:"追加",ButtonRemove:"削除",DefaultFormat:"${0} (既定の設定)",FilesAddFileButton:"ファイルの追加",FilesAddFileTitle:"ファイルの追加",FilesAddFilesAndFolders:"ファイルとフォルダーの追加",FilesAddFolderButton:"フォルダーの追加",FilesAddFolderTitle:"フォルダーの追加",FilesExportAllFileName:"AllProfiles",ItemsDefaultCluster:"既定のクラスターの選択",ItemsDiscover:"クラスターの検出...",ItemsManage:"クラスターの作成と管理...",ItemsMonitorJobs:"ジョブの監視",ItemsNoClusters:"クラスターが設定されていません",ItemsPreferences:"並列基本設定...",MustBeUsedOnOperatingSystem:"${0} クラスターは ${1} オペレーティング システムで使用しなければなりません。",PlatformUnix:"Unix",PlatformWindows:"Windows",PropertyDefaultValueEditFormat:"既定値は ${0} です",PropertyDefaultValueFormat:"${0} (既定の設定)",PropertyLogicalFalse:"false",PropertyLogicalTrue:"true",PropertyNone:"<なし>",PropertyUseDefault:"既定値を使用",SchedulerTypeInvalid:"無効",SchedulerTypeNone:"なし",SelectFolderTitle:"フォルダーの選択",TableColumnsProfileLabel:"クラスター プロファイル",Title:"クラスター プロファイル マネージャー",ToolstripSectionsCloud:"クラウド",ToolstripSectionsCreate:"作成",ToolstripSectionsHelp:"ヘルプ",ToolstripSectionsManage:"プロファイルの管理",ToolstripSectionsValidate:"検証",ToolstripTabTitle:"プロファイル",ValidationColumnsDescription:"説明",ValidationColumnsStage:"段階",ValidationColumnsStatus:"ステータス",ValidationLabelsCommandLineOutput:"コマンド ライン出力:",ValidationLabelsDebugLog:"デバッグ ログ:",ValidationLabelsErrorReport:"エラー レポート:",ValidationTitle:"検証",ViewCancel:"キャンセル",ViewCorruptLine1:"プロファイル ${0} は破損しているか無効です。",ViewCorruptLine2:"スケジューラ コンポーネントは ${0} で、プロジェクト コンポーネントは ${1} です。",ViewDone:"完了",ViewEdit:"編集",ViewProperties:"プロパティ",ViewType:"タイプ: ${0}"}},function(e,t,i){e.exports={ActionsAddDescription:"새 클러스터 프로파일을 추가합니다.",ActionsAddText:"클러스터 프로파일\n 추가",ActionsAddTypesGenericDescription:"기타 다른 스케줄러나 비공유 파일 시스템을 지원해야 하는 경우 사용합니다.\n제출 호스트를 통해 제출하는 수단으로 SSH를 사용합니다.",ActionsAddTypesLocalDescription:"사용자 컴퓨터의 코어를 사용합니다.",ActionsAddTypesMJSDescription:"MATLAB 작업 스케줄러를 사용하여 MATLAB Parallel Server 클러스터를 사용합니다.",ActionsAddTypesMathWorksHeader:"MathWorks 스케줄러를 사용하는 클러스터",ActionsAddTypesThirdPartyHeader:"타사 스케줄러를 사용하는 클러스터",ActionsCloudCenterDescription:"새 브라우저 창에서 Cloud Center 웹 응용 프로그램을 엽니다.",ActionsCloudCenterText:"Cloud Center",ActionsCloudConnectivityDescription:"클라우드 클러스터에 대한 연결을 확인합니다.",ActionsCloudConnectivityText:"클라우드 연결 테스트",ActionsCreateCloudDescription:"클라우드에 클러스터를 만듭니다.",ActionsCreateCloudText:"클라우드 클러스터\n생성",ActionsDeleteActionConfirmText:'프로파일 "${0}"을(를) 영구히 삭제하시겠습니까?',ActionsDeleteActionDescription:"선택한 클러스터 프로파일을 삭제합니다.",ActionsDeleteActionText:"삭제",ActionsDiscoverDescription:"클러스터 검색...",ActionsDiscoverPopupDescription:"네트워크에서 MATLAB Parallel Server\n클러스터를 검색합니다.",ActionsDiscoverPopupText:"클러스터 검색...",ActionsDiscoverText:"클러스터\n검색",ActionsDuplicateDescription:"선택한 클러스터 프로파일을 복제합니다.",ActionsDuplicateText:"복제",ActionsEditDescription:"선택한 클러스터 프로파일을 편집합니다.",ActionsEditText:"편집",ActionsExportActionAllText:"모두 내보내기",ActionsExportActionDescription:"클러스터 프로파일을 파일로 내보냅니다.",ActionsExportActionDialogTitle:"프로파일을 파일로 내보내기",ActionsExportActionSelectedText:"내보내기",ActionsExportActionText:"내보내기",ActionsHelpDescription:"클러스터 프로파일 관리자 문서를 표시합니다.",ActionsHelpText:"도움말",ActionsImportActionDescription:"파일에서 클러스터 프로파일을 가져옵니다.",ActionsImportActionDialogTitle:"파일에서 프로파일 가져오기",ActionsImportActionText:"가져오기",ActionsManageLicensesDescription:"라이선스 센터에서 라이선스와 사용량 경고를 관리합니다.",ActionsManageLicensesText:"라이선스 및 경고 관리",ActionsRenameDescription:"선택한 클러스터 프로파일의 이름을 바꿉니다.",ActionsRenameText:"이름 바꾸기",ActionsSetDefaultDescription:"선택한 클러스터 프로파일을 디폴트 프로파일로 설정합니다.",ActionsSetDefaultRestartPoolDialogMessage:'"${0}"에서 병렬 풀을 사용할 때 디폴트 클러스터를 "${1}"(으)로 변경하도록 요청했습니다.<br/><br/>디폴트 클러스터를 변경하고 풀을 다시 시작하시겠습니까?',ActionsSetDefaultRestartPoolDialogTitle:"병렬 풀을 다시 시작하시겠습니까?",ActionsSetDefaultText:"디폴트 값으로 설정",ActionsValidateDescription:"선택한 클러스터 프로파일의 유효성을 검사합니다.",ActionsValidateStopDescription:"현재 실행 중인 유효성 검사를 중지합니다.",ActionsValidateStopText:"중지",ActionsValidateText:"유효성 검사",AdditionalPropertyFieldName:"이름",AdditionalPropertyFieldType:"유형",AdditionalPropertyFieldValue:"값",AdditionalPropertyTypeLogical:"논리형",AdditionalPropertyTypeNumber:"숫자",AdditionalPropertyTypeOther:"기타",AdditionalPropertyTypeString:"string형",AdditionalPropertyValidationDuplicateValue:"추가 속성 이름이 중복됨: ${0}.",Browse:"찾아보기...",ButtonAdd:"추가",ButtonRemove:"제거",DefaultFormat:"${0}(디폴트 값)",FilesAddFileButton:"파일 추가",FilesAddFileTitle:"파일 추가",FilesAddFilesAndFolders:"파일과 폴더 추가",FilesAddFolderButton:"폴더 추가",FilesAddFolderTitle:"폴더 추가",FilesExportAllFileName:"AllProfiles",ItemsDefaultCluster:"디폴트 클러스터 선택",ItemsDiscover:"클러스터 검색...",ItemsManage:"클러스터 생성 및 관리...",ItemsMonitorJobs:"작업 모니터링",ItemsNoClusters:"설정된 클러스터 없음",ItemsPreferences:"병렬 기본 설정...",MustBeUsedOnOperatingSystem:"${1} 운영 체제에서는 ${0} 클러스터를 사용해야 합니다.",PlatformUnix:"Unix",PlatformWindows:"Windows",PropertyDefaultValueEditFormat:"디폴트 값은 ${0}임",PropertyDefaultValueFormat:"${0}(디폴트 값)",PropertyLogicalFalse:"false",PropertyLogicalTrue:"true",PropertyNone:"<없음>",PropertyUseDefault:"디폴트 값 사용",SchedulerTypeInvalid:"유효하지 않음",SchedulerTypeNone:"없음",SelectFolderTitle:"폴더 선택",TableColumnsProfileLabel:"클러스터 프로파일",Title:"클러스터 프로파일 관리자",ToolstripSectionsCloud:"클라우드",ToolstripSectionsCreate:"생성",ToolstripSectionsHelp:"도움말",ToolstripSectionsManage:"프로파일 관리",ToolstripSectionsValidate:"유효성 검사",ToolstripTabTitle:"프로파일",ValidationColumnsDescription:"설명",ValidationColumnsStage:"단계",ValidationColumnsStatus:"상태",ValidationLabelsCommandLineOutput:"명령줄 출력값:",ValidationLabelsDebugLog:"디버그 로그:",ValidationLabelsErrorReport:"오류 리포트:",ValidationTitle:"검증 방법",ViewCancel:"취소",ViewCorruptLine1:"프로파일 ${0}이(가) 손상되었거나 유효하지 않습니다.",ViewCorruptLine2:"스케줄러 구성요소는 ${0}이고 프로젝트 구성요소는 ${1}입니다.",ViewDone:"완료",ViewEdit:"편집",ViewProperties:"속성",ViewType:"유형: ${0}"}},function(e,t,i){e.exports={root:{ActionsAddDescription:"Add new cluster profiles",ActionsAddText:"Add Cluster\nProfile",ActionsAddTypesGenericDescription:"Use this to support all other schedulers or nonshared file systems\nusing ssh as a submission tool through a submission host",ActionsAddTypesLocalDescription:"Use the cores on your machine",ActionsAddTypesMJSDescription:"Use a MATLAB Parallel Server cluster using MATLAB Job Scheduler",ActionsAddTypesMathWorksHeader:"Clusters Using MathWorks Schedulers",ActionsAddTypesThirdPartyHeader:"Clusters Using Third Party Schedulers",ActionsCloudCenterDescription:"Open the Cloud Center web application in a new browser window.",ActionsCloudCenterText:"Cloud Center",ActionsCloudConnectivityDescription:"Validate your connection to cloud clusters.",ActionsCloudConnectivityText:"Test Cloud Connectivity",ActionsCreateCloudDescription:"Create clusters in the cloud.",ActionsCreateCloudText:"Create Cloud\nCluster",ActionsDeleteActionConfirmText:'Permanently delete the profile "${0}"?',ActionsDeleteActionDescription:"Delete the selected cluster profile",ActionsDeleteActionText:"Delete",ActionsDiscoverDescription:"Discover Clusters...",ActionsDiscoverPopupDescription:"Search for MATLAB Parallel Server\nclusters on your network",ActionsDiscoverPopupText:"Discover Clusters...",ActionsDiscoverText:"Discover\nClusters",ActionsDuplicateDescription:"Duplicate the selected cluster profile",ActionsDuplicateText:"Duplicate",ActionsEditDescription:"Edit the selected cluster profile.",ActionsEditText:"Edit",ActionsExportActionAllText:"Export All",ActionsExportActionDescription:"Export cluster profile(s) to a file",ActionsExportActionDialogTitle:"Export profiles to file",ActionsExportActionSelectedText:"Export",ActionsExportActionText:"Export",ActionsHelpDescription:"Display the cluster profile manager documentation",ActionsHelpText:"Help",ActionsImportActionDescription:"Import cluster profiles from a file",ActionsImportActionDialogTitle:"Import profiles from file",ActionsImportActionText:"Import",ActionsManageLicensesDescription:"Manage your licenses and spending alerts in License Center.",ActionsManageLicensesText:"Manage Licenses & Alerts",ActionsRenameDescription:"Rename the selected cluster profile",ActionsRenameText:"Rename",ActionsSetDefaultDescription:"Set the selected cluster profile as the default profile",ActionsSetDefaultRestartPoolDialogMessage:'You have requested to change your default cluster to "${1}" while you have a parallel pool on "${0}"<br/><br/>Change your default cluster and restart the pool?',ActionsSetDefaultRestartPoolDialogTitle:"Restart Parallel Pool?",ActionsSetDefaultText:"Set as Default",ActionsValidateDescription:"Validate the selected cluster profile",ActionsValidateStopDescription:"Stops the current running validation",ActionsValidateStopText:"Stop",ActionsValidateText:"Validate",AdditionalPropertyFieldName:"Name",AdditionalPropertyFieldType:"Type",AdditionalPropertyFieldValue:"Value",AdditionalPropertyTypeLogical:"Logical",AdditionalPropertyTypeNumber:"Number",AdditionalPropertyTypeOther:"Other",AdditionalPropertyTypeString:"String",AdditionalPropertyValidationDuplicateValue:"Duplicate additional property name: ${0}.",Browse:"Browse...",ButtonAdd:"Add",ButtonRemove:"Remove",DefaultFormat:"${0} (default)",FilesAddFileButton:"Add File",FilesAddFileTitle:"Add File",FilesAddFilesAndFolders:"Add Files and Folders",FilesAddFolderButton:"Add Folder",FilesAddFolderTitle:"Add Folder",FilesExportAllFileName:"AllProfiles",ItemsDefaultCluster:"Select a Default Cluster",ItemsDiscover:"Discover Clusters...",ItemsManage:"Create and Manage Clusters...",ItemsMonitorJobs:"Monitor Jobs",ItemsNoClusters:"No Clusters Set Up",ItemsPreferences:"Parallel Preferences...",MustBeUsedOnOperatingSystem:"${0} clusters must be used on ${1} operating systems.",PlatformUnix:"Unix",PlatformWindows:"Windows",PropertyDefaultValueEditFormat:"Default is ${0}",PropertyDefaultValueFormat:"${0} (default)",PropertyLogicalFalse:"false",PropertyLogicalTrue:"true",PropertyNone:"<none>",PropertyUseDefault:"Use default",SchedulerTypeInvalid:"Invalid",SchedulerTypeNone:"None",SelectFolderTitle:"Select Folder",TableColumnsProfileLabel:"Cluster Profile",Title:"Cluster Profile Manager",ToolstripSectionsCloud:"Cloud",ToolstripSectionsCreate:"Create",ToolstripSectionsHelp:"Help",ToolstripSectionsManage:"Manage Profile",ToolstripSectionsValidate:"Validate",ToolstripTabTitle:"Profile",ValidationColumnsDescription:"Description",ValidationColumnsStage:"Stage",ValidationColumnsStatus:"Status",ValidationLabelsCommandLineOutput:"Command Line Output:",ValidationLabelsDebugLog:"Debug Log:",ValidationLabelsErrorReport:"Error Report:",ValidationTitle:"Validation",ViewCancel:"Cancel",ViewCorruptLine1:"The profile ${0} is corrupt or invalid.",ViewCorruptLine2:"The scheduler component is ${0} and the project component is ${1}.",ViewDone:"Done",ViewEdit:"Edit",ViewProperties:"Properties",ViewType:"Type: ${0}"},"ja-jp":!0,"ko-kr":!0}},function(e,t){e.exports='<div>\n <div data-dojo-type="mw-form/TextField"\n data-dojo-attach-point="_editor"\n class="${baseClass}TextField"\n id="${id}TextField"\n data-dojo-props="placeholder: \'${nls.PropertyUseDefault}\', width: \'100%\'">\n </div>\n <button class="${baseClass}Button"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-event="click: _handleButtonClicked"\n data-dojo-props="text: \'${nls.Browse}\'">\n </button>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(1663)],o=i.dj.d(n,(function(e,t){return e([t],{kind:"Logical",constructor:function(){var e=[{label:this.nls.PropertyLogicalTrue,value:(!0).toString()},{label:this.nls.PropertyLogicalFalse,value:(!1).toString()}];this.editorParams.items=this.editorParams.items.concat(e)},_getNonDefaultValue:function(e){switch(e){case(!0).toString():return!0;case(!1).toString():return!1}throw new Error("Invalid value for logical property editor: "+e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2672)],o=i.dj.d(n,(function(e,t,i){return e([i],{kind:"NumericRange",_getTypedValues:function(e){return(e=e.replace(/[^a-z0-9.]+/gi," ").trim()).split(" ")},_isNonDefaultValueModified:function(e,t){var i,n;if(e instanceof Array&&t instanceof Array){if(e.length!==t.length)return!0;for(n=e.length,i=0;i<n;i+=1)if(e[i]!==t[i])return!0;return!1}return this.inherited(arguments)},_getNonDefaultValueForEditor:function(e){return t.isArray(e)&&e.length>1?t.replace("[{0}]",[e.map(this._getNonDefaultValueForEditor,this).join(" ")]):this.inherited(arguments)},_getNonDefaultValue:function(e){var t=arguments,i=this._getTypedValues(e).map((function(e){return this.inherited(t,[e])}),this);return 1===i.length?i[0]:i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1664),i(8738)],o=i.dj.d(n,(function(e,t,i){return e([t],{kind:"Table",editorClass:"pct/app/cluster/profiles/property/editors/TableEditor",buildRendering:function(){this.inherited(arguments),Object.entries(this.params).forEach(([e,t])=>{this.editor.set(e,t)})},isValid:function(){const{valid:e,message:t}=this.editor.validate();return this.message=e?"":t,e},_handleEditorChanged:function(e){},_getNonDefaultValue:function(e){return e},_getNonDefaultValueForEditor:function(e){return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(272),i(216),i(215),i(255),i(203),i(602),i(395),i(8739),i(243),i(326),i(350)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return o("pct/app/cluster/profiles/property/editors/TableEditor",[i,t,n,e],{templateString:s,baseClass:"tableEditorContainer",nls:a,startup:function(){this.inherited(arguments),this.dataStore=d.create(this.propertyToTable(this.property.value),this.dataStoreOptions),this.table=new c(this.dataStore,Object.assign({dataTestId:this.id+"Table"},this.tableOptions)),this.table.on("selectionChanged",e=>{this.btnRemove.set("disabled",0===e.length)}),"function"==typeof this.handleValueSet&&this.handleValueSet(this.dataStore,this.table),this.addChild(this.table,0),this.own(this.table)},_handleAddButtonClicked:function(){const e=c.range().setEntireRows(this.dataStore.dataSize.rows.count);let t=[...this.blankRow];"function"==typeof t&&(t=t()),this.dataStore.add(e,[t]).then(e=>{if(e.success){const e=c.range().setEntireRows(this.dataStore.dataSize.rows.count-1);this.table.setSelection([e])}})},_handleRemoveButtonClicked:function(){if(this.table.getSelection().forEach(e=>this.dataStore.remove(e)),this.dataStore.dataSize.rows.count>0){const e=c.range().setEntireRows(0);this.table.setSelection([e])}else this.btnRemove.set("disabled",!0)},_setValueAttr:function(e){this.dataStore&&(this.dataStore.replaceAll(this.propertyToTable(e),this.dataStoreOptions),"function"==typeof this.handleValueSet&&this.handleValueSet(this.dataStore,this.table))},_getValueAttr:function(){return this.tableToProperty(this.dataStore._data)},validate:function(){return this.validateTableData(this.dataStore._data)}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div class="${baseClass}Buttons propertyEditorContainerButtons">\n <button id="${id}AddButton"\n class="${baseClass}Button"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-event="click: _handleAddButtonClicked"\n data-dojo-props="text: \'${nls.ButtonAdd}\'">\n </button>\n <button id="${id}RemoveButton"\n class="${baseClass}Button"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-point=\'btnRemove\'\n data-dojo-attach-event="click: _handleRemoveButtonClicked"\n data-dojo-props="text: \'${nls.ButtonRemove}\', disabled: true">\n </button>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(1667)],o=i.dj.d(n,(function(e,t){return e([t],{kind:"Multiline",_getNonDefaultValueForViewer:function(){var e=this.inherited(arguments);return e instanceof Array?e.join("\n"):e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1667)],o=i.dj.d(n,(function(e,t){return e([t],{kind:"NumericRange",_getNonDefaultValueForViewer:function(){var e=this.inherited(arguments);return e instanceof Array?e.length>1?"["+e[0]+" "+e[1]+"]":e.length>0?e[0]:"":e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(272),i(2673),i(326),i(350)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,t],{kind:"Table",postMixInProperties:function(){this.inherited(arguments),this.dataStore=o.create(this.propertyToTable(this.property.value),{type:"TABLE"})},startup:function(){this.inherited(arguments);const e=new n(this.dataStore,Object.assign({dataTestId:this.id+"Table"},this.tableOptions));this.addChild(e),this.own(e)},refresh:function(){this.dataStore.replaceAll(this.propertyToTable(this.property.value))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(395),i(236),i(594),i(1183),i(634),i(326),i(209),i(8744)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){const l=[{label:e.AdditionalPropertyFieldName,dataIndex:0,columnId:"name",width:{value:40,unit:"%"}},{label:e.AdditionalPropertyFieldValue,dataIndex:1,columnId:"value",width:{value:40,unit:"%"}},{label:e.AdditionalPropertyFieldType,dataIndex:2,columnId:"type"}],c=Object.freeze({string:{label:e.AdditionalPropertyTypeString,editor:i,parse:e=>""+e},number:{label:e.AdditionalPropertyTypeNumber,editor:s,parse:parseFloat},boolean:{label:e.AdditionalPropertyTypeLogical,editor:n.config({items:[{value:!0,label:e.PropertyLogicalTrue},{value:!1,label:e.PropertyLogicalFalse}],"data-test-id":"pctAdditionalPropertiesLogicalValueEditor"}),parse:e=>!0===e}});function d(t){return(c[t]||{}).label||e.AdditionalPropertyTypeOther}const u=[{editor:i},{editor:i},{editor:n.config({items:Object.entries(c).map(([e,{label:t}])=>({value:e,label:t})),"data-test-id":"pctAdditionalPropertiesTypeEditor"}),renderer:new class extends o{getTooltip(e){return{text:d(e)}}getDomNode(e){return super.getDomNode(d(e))}}}],h=l.map((e,t)=>Object.assign({},e,u[t]));function p(e,t){const i=(c[t]||{}).parse;return i?i(e):(a.warn(`Unknown type ("${t}") for AdditionalProperty (value=${e}`),e)}function f([e,t,i]){return{[e]:p(t,i)}}function g(e,t){return(e[0]||"").localeCompare(t[0]||"")}function m(e,t,n){const o="dynamicEditorsRule-"+n;e.getLocalCellMetaData(n,1).editor&&e.removeMetaDataRule(o);const a=e.getLocalCellData(n,2),s=(c[a]||{}).editor||i,l=e.createMetaDataRule({cell:{editor:s}},{type:"rangeList",value:[r.range().setColumns(1,1).setRows(n,n)]});e.addMetaDataRule(o,l)}return{Editor:{tableOptions:{features:[r.FEATURE.SingleRowSelection,r.FEATURE.ColumnResize,r.FEATURE.CellFocus,r.FEATURE.IndividualColumnSort],columnModel:{columnConfig:h}},dataStoreOptions:{defaultColumnCount:h.length,type:"TABLE"},propertyToTable:e=>Object.entries(e||{}).map(([e,t])=>[e,t,typeof t]).sort(g),tableToProperty:e=>e.length>0?Object.assign(...e.map(f)):{},handleValueSet:function(e,t){for(let t=0;t<e.dataSize.rows.count;t++)m(e,0,t);this.table.on("editCompleted",t=>{if(t.dataRange.rows.start!==t.dataRange.rows.end)throw new Error("Multiple editing ranges are not supported.");m(e,0,t.dataRange.rows.start)})},blankRow:["","","string"],validateTableData:i=>{const n=i.map(e=>e[0]).sort();for(let i=1;i<n.length;i++)if(n[i]===n[i-1])return{valid:!1,message:t.substitute(e.AdditionalPropertyValidationDuplicateValue,[n[i]])};return{valid:!0}}},Viewer:{tableOptions:{features:[r.FEATURE.SingleRowSelection,r.FEATURE.ColumnResize,r.FEATURE.IndividualColumnSort],columnModel:{columnConfig:l}},propertyToTable:e=>Object.entries(e||{}).map(([e,t])=>[e,t,d(typeof t)]).sort(g)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(594)],o=i.dj.d(n,(function(e){return class extends e{constructor(...e){super(...e),this._textField.setAttribute("type","number")}setFocus(){this._textField.focus()}}}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div class="${baseClass}Label">\n <div class="${baseClass}LabelDescription"\n id="${id}LabelDescription">\n ${property.info.description}\n </div>\n <div class="${baseClass}LabelName"\n id="${id}LabelName">\n ${property.info.name}\n </div>\n </div>\n <div class="${baseClass}ValueContainer"\n id="${id}ValueContainer"\n data-dojo-attach-point="containerNode"></div>\n</div>'},function(e,t){e.exports='<div>\n <span class="${baseClass}Title"\n id="profileViewSectionTitle${section.name}">${section.title}</span>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(236),i(1250),i(209)],o=i.dj.d(n,(function(e,t,i,n){"use strict";var o=e(null,{constructor:function(o,r){o=o||{},e.safeMixin(this,o),this._dataService=r,this.callback=o.callback||function(){n.warn(t.substitute(i.WarnNotImplemented,[this.text]))}},toggleState:function(e){e?this._dataService.disableAction(this.id):this._dataService.enableAction(this.id),this._menuItem&&this._menuItem.set("disabled",e),this._button&&this._button.set("disabled",e)},disable:function(){this.toggleState(!0)},enable:function(){this.toggleState(!1)},bindMenuItem:function(e){e&&(e.set("text",this.text),e.set("title",this.description),e.set("id",this.id+"MenuItem"),e.on("click",this.callback),this._menuItem=e)},bindButton:function(e){e&&(e.on("click",this.callback),this._button=e)}});return o.isAction=function(e){return!!e.id},o}),e,t),e.exports=o},function(e,t){e.exports='<div class="pctTabView">\n <div class="${baseClass}Body profileTabContainerBody"\n data-dojo-attach-point="view">\n <div class="${baseClass}CorruptionInfo"\n id="${id}CorruptionInfo">\n <div data-dojo-attach-point="corruptionInfoLine1"></div>\n <div data-dojo-attach-point="corruptionInfoLine2"></div>\n </div>\n </div>\n\n <div class="${baseClass}Footer profileTabContainerFooter">\n <div class="${baseClass}FooterWarningContainer">\n <span id="${id}Warning"\n style="display: none"\n class="${baseClass}FooterWarning"\n data-dojo-attach-point="warningNode"></span>\n </div>\n\n <button id="${id}EditButton"\n class="${baseClass}EditButton pctTabViewActionButton"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-point="editButton"\n data-dojo-attach-event="click: _handleEditClicked"\n data-dojo-props="width: 60, disabled: true, text: \'${nls.ViewEdit}\'">\n </button>\n <button id="${id}DoneButton"\n class="${baseClass}DoneButton pctTabViewActionButton"\n style="display: none"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-point="doneButton"\n data-dojo-attach-event="click: _handleDoneClicked"\n data-dojo-props="width: 60, text: \'${nls.ViewDone}\'">\n </button>\n <button id="${id}CancelButton"\n class="${baseClass}CancelButton pctTabViewActionButton"\n style="display: none"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-point="cancelButton"\n data-dojo-attach-event="click: _handleCancelClicked"\n data-dojo-props="width: 60, text: \'${nls.ViewCancel}\'">\n </button>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(1665),i(8750)],o=i.dj.d(n,(function(e,t,i,n,o,r){return n("pct/app/cluster/profiles/validation/ValidationDetailsSection",[t,e,i,o],{templateString:r,baseClass:"validationDetailsSection",label:"Label",value:"n/a",_setLabelAttr:{node:"labelNode",type:"innerHTML"},_setValueAttr:{node:"valueNode",type:"innerHTML"},setValue:function(e){this.set("value",e),this.set("visible",!!e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="${baseClass}">\n <span class="${baseClass}Label"\n data-dojo-attach-point="labelNode"></span>\n <span class="${baseClass}Value"\n data-dojo-attach-point="valueNode"></span>\n</div>'},function(e,t,i){var n,o;n=[i(1662),i(1254),i(750),i(851),i(697),i(203),i(204),i(210),i(428),i(753),i(1248),i(395)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return r("pct/app/cluster/profiles/validation/ValidationTable",[n,e,i,o,t],{columns:{stage:{label:u.ValidationColumnsStage,sortable:!1},status:{label:u.ValidationColumnsStatus,sortable:!1,renderCell:function(e,t,i){s.add(i,t.iconClass),i.textContent=t.name}},description:{label:u.ValidationColumnsDescription,sortable:!1,renderCell:function(e,t,i){i.title=t,e.error&&(i.title=t+"\n\n"+e.error),i.textContent=t}}},adjustLastColumn:!0,selectionMode:"single",deselectOnRefresh:!1,store:new c(new l({idProperty:"stageId"})),getSelectedStageId:function(){var e=Object.keys(this.selection);return 0===e.length?null:this.row(e[0]).data.stageId},setStages:function(e){e.forEach((function(e){this.updateStage(e)}),this)},updateStage:function(e){this.store.put(function(e){var t={id:e.stageId};return a.mixin(t,e),t.stage=d.STAGE[e.stageId],t}(e))}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="pctTabView">\n <div class="${baseClass}Body profileTabContainerBody">\n <div data-dojo-type="pct/app/cluster/profiles/validation/ValidationTable"\n id="${id}Table"\n class="${baseClass}Table"\n data-dojo-attach-point="table"\n data-dojo-attach-event="dgrid-select: _handleStageSelected, dgrid-deselect: _handleStageDeselected"></div>\n\n <div class="${baseClass}Details">\n <div id="${id}DetailsErrorSection"\n class="${baseClass}DetailsErrorSection"\n data-dojo-attach-point="detailsErrorReport"\n data-dojo-type="pct/app/cluster/profiles/validation/ValidationDetailsSection"\n data-dojo-props="visible: false, label: \'${nls.ValidationLabelsErrorReport}\'"></div>\n <div id="${id}DetailsOutputSection"\n class="${baseClass}DetailsOutputSection"\n data-dojo-attach-point="detailsCommandLineOutput"\n data-dojo-type="pct/app/cluster/profiles/validation/ValidationDetailsSection"\n data-dojo-props="visible: false, label: \'${nls.ValidationLabelsCommandLineOutput}\'"></div>\n <div id="${id}DetailsLogSection"\n class="${baseClass}DetailsLogSection"\n data-dojo-attach-point="detailsDebugLog"\n data-dojo-type="pct/app/cluster/profiles/validation/ValidationDetailsSection"\n data-dojo-props="visible: false, label: \'${nls.ValidationLabelsDebugLog}\'"></div>\n </div>\n </div>\n\n <div class="${baseClass}Footer profileTabContainerFooter">\n <button id="${id}ValidateButton"\n class="${baseClass}ValidateButton pctTabViewActionButton"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-point="validationButton"\n data-dojo-props="width: 60, disabled: true, text: \'${nls.ActionsValidateText}\', description: \'${nls.ActionsValidateDescription}\'">\n </button>\n <button id="${id}CancelButton"\n class="${baseClass}CancelButton pctTabViewActionButton"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-point="cancelValidationButton"\n data-dojo-attach-event="click: _stopValidation"\n data-dojo-props="width: 60, text: \'${nls.ActionsValidateStopText}\', description: \'${nls.ActionsValidateStopDescription}\'">\n </button>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(1004),i(1254),i(750),i(851),i(697),i(203),i(204),i(214),i(223),i(428),i(753),i(701),i(8754),i(1251),i(700),i(602),i(395),i(339)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){var v=function(e){return e.filter(f.isSupported)},b=function(){return v};return r([n,i,o,t,e],{columns:[e({field:"name",formatter:p.getProfileString,label:m.TableColumnsProfileLabel,editor:"text",editOn:"dblclick",canEdit:function(e){return!this.grid._disabled&&!e.isFactory}})],selectionMode:"single",deselectOnRefresh:!1,cellNavigation:!1,_fireSelectionEvent:function(e){this._disabled||this.inherited(arguments)},constructor:function(e){this.keyMap=a.mixin({},i.defaultKeyMap),this.keyMap[l.DELETE]=e.actions.deleteAction.callback,this.keyMap[l.F2]=e.actions.rename.callback,this._disabled=!1,this.store=new d(new c({data:e.profiles,queryEngine:b,idProperty:"htmlId"}))},postCreate:function(){this.inherited(arguments),this._createMenu(this.actions),this.updateProfiles(this.profiles),this.on("dgrid-datachange",a.hitch(this,"_handleProfileEdited"))},startup:function(){this.inherited(arguments),this._createOverlay()},_handleProfileEdited:function(e){e.preventDefault(),e.value&&u.getInstance().executor.renameProfile(e.oldValue,e.value).then(a.hitch(this,"_handleRenameSuccessful",e.value),g.displayError)},_handleRenameSuccessful:function(e){},_createOverlay:function(){this._overlay=new _({target:this.domNode}),0===this.store.data.length&&(document.body.appendChild(this._overlay.domNode),this._overlay.show())},_createMenu:function(e){this._menu=new h({targetNodes:["#"+this.id+" .dgrid-row"],actions:e,id:"profileTableContextMenu"})},updateProfiles:function(e){e&&(this.store.setData(e),this.hideOverlay())},notifyAdded:function(e){this.store.notify(e),this.hideOverlay()},notifyUpdated:function(e){e&&this.store.notify(e,e.htmlId)},notifyRemoved:function(e){var t,i=this;this.store.notify(null,e.htmlId),this.getSelectedProfileName()||(this._focusedNode?this.cell(this._focusedNode).row.data!==e?this.select(this._focusedNode):t=s.after(this,"_restoreFocus",(function(){t.remove(),i.select(i._focusedNode)})):this.selectProfile(u.getInstance().getDefaultProfileName()))},getSelectedProfileName:function(){var e=Object.keys(this.selection);return 0===e.length?null:e[0]},editProfile:function(){var e=this.cell(this.getSelectedProfileName(),0);this.edit(e.element)},hideOverlay:function(){this._overlay&&this._overlay.hide()},isAnyRowSelected:function(){return Object.keys(this.selection).length>0},selectFirstProfile:function(){this.store.data.length>0&&this.selectProfile(this.store.data[0])},selectProfile:function(e){this.clearSelection(),this.select(e)},toggleState:function(e){var t=this;this._disabled!==e&&(e&&(this._oldSelection=a.clone(this.selection),this._disabled=!0),this.set("selectionMode",e?"none":"single"),this.columns[0].sortable=!e,this.renderHeader(),e||(Object.keys(this._oldSelection).forEach((function(e){t.selectProfile(e)})),this._disabled=!1))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(317),i(288),i(354)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{_addMenuItem:function(e){var t=new i({});e.bindMenuItem(t),this.addChild(t)},postCreate:function(){this.inherited(arguments);var e=this.get("actions");this._addMenuItem(e.setDefault),this._addMenuItem(e.validate),this.addChild(new n),this._addMenuItem(e.edit),this._addMenuItem(e.duplicate),this._addMenuItem(e.deleteAction),this._addMenuItem(e.rename),this._addMenuItem(e.exportActions.selected)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(434),i(292),i(8756),i(8757),i(2676),i(395)],o=i.dj.d(n,(function(e,t,i,n,o,r){const a="profileToolstrip";return class{constructor(r){this._builder=t.getInstance({channel:"/actions/parallel/profile",actionService:r}),this._builder.create({type:e.TOOLSTRIP,tag:a}),this._builder.createPopupsFromConfig(o.removeHiddenElements(n)),this._builder.addTabGroupFromConfig(o.removeHiddenElements(i),"parallelProfileTabGroup",a)}placeAt(e){this._builder.placeToolstripAt(a,e)}populateAddDropDown(t,i){const n=this._builder.tagToId("parallelProfileTabGroup.profile.add.popup");for(const o of t)if(o.separatorBefore&&this._builder.create({type:e.POPUP_LIST_SEPARATOR,parentId:n}),o.startSection&&this._builder.create({type:e.POPUP_LIST_HEADER,title:r[`ActionsAddTypes${o.startSection}Header`],parentId:n}),!o.hidden){const t="parallelProfileTabGroup.profile.add.popup.types."+o.type;this._builder.create({type:e.LIST_ITEM,tag:t,"data-test-id":"test-pct-menuitem-"+o.type,text:o.title,description:o.hideDescription?null:o.description,parentId:n}),this._builder.widgetByTag(t).on("click",()=>i(o))}}toggleAllSchedulersInAddMenu(e){const t=this._builder.widgetByTag("parallelProfileTabGroup.profile.add.popup");for(const i of t.getChildren())i.set("disabled",e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(1256),i(700),i(395)],o=i.dj.d(n,(function(e,t,i,n){var o={ADD:{tag:"parallelProfileTabGroup.profiles.create.add",type:e.DROP_DOWN_BUTTON,text:n.ActionsAddText,description:n.ActionsAddDescription,icon:"parallel_profile_add",popupTag:"parallelProfileTabGroup.profile.add.popup"},DISCOVER:{tag:"parallelProfileTabGroup.profiles.create.discover",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.DISCOVER,textOverride:n.ActionsDiscoverText,descriptionOverride:n.ActionsDiscoverDescription,iconOverride:"parallel_profile_discover_cluster"},CLOUD:{tag:"parallelProfileTabGroup.profiles.create.cloud",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.CLOUD},IMPORT:{tag:"parallelProfileTabGroup.profiles.create.import",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.IMPORT,iconOverride:"parallel_profile_import"},EDIT:{tag:"parallelProfileTabGroup.profiles.manage.edit",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.EDIT},DUPLICATE:{tag:"parallelProfileTabGroup.profiles.manage.duplicate",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.DUPLICATE},DELETE:{tag:"parallelProfileTabGroup.profiles.manage.delete",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.DELETE},RENAME:{tag:"parallelProfileTabGroup.profiles.manage.rename",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.RENAME},SET_DEFAULT:{tag:"parallelProfileTabGroup.profiles.manage.set_default",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.SET_DEFAULT},EXPORT:{tag:"parallelProfileTabGroup.profiles.manage.export",type:e.SPLIT_BUTTON,text:n.ActionsExportActionText,description:n.ActionsExportActionDescription,iconOverride:"parallel_profile_export",actionId:t.PARALLEL.PROFILE.EXPORT.SELECTED,popupTag:"parallelProfileTabGroup.profile.export.popup"},CLOUD_CENTER:{tag:"parallelProfileTabGroup.profiles.cloud.center",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.CLOUD_CENTER,textOverride:n.ActionsCloudCenterText,descriptionOverride:n.ActionsCloudCenterDescription},LICENSE_CENTER:{tag:"parallelProfileTabGroup.profiles.manage.licenses",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.LICENSE_CENTER,textOverride:n.ActionsManageLicensesText,descriptionOverride:n.ActionsManageLicensesDescription},CLOUD_TEST:{tag:"parallelProfileTabGroup.profiles.cloud.test",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.CLOUD_CONNECTIVITY,textOverride:n.ActionsCloudConnectivityText,descriptionOverride:n.ActionsCloudConnectivityDescription},VALIDATE:{tag:"parallelProfileTabGroup.profiles.validate.validate",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.VALIDATE},HELP:{tag:"parallelProfileTabGroup.profiles.help.help",type:e.PUSH_BUTTON,actionId:t.PARALLEL.PROFILE.HELP}},r={CREATE:{tag:"parallelProfileTabGroup.profiles.create",type:e.SECTION,title:n.ToolstripSectionsCreate,children:[{type:e.COLUMN,children:[o.DISCOVER]},{type:e.COLUMN,children:[o.ADD],hidden:function(){return!i.isSupported("local")}},{type:e.COLUMN,children:[o.CLOUD]},{type:e.COLUMN,children:[o.IMPORT]}]},MANAGE:{tag:"parallelProfileTabGroup.profiles.manage",type:e.SECTION,title:n.ToolstripSectionsManage,children:[{type:e.COLUMN,children:[o.EDIT]},{type:e.COLUMN,children:[o.DUPLICATE,o.DELETE]},{type:e.COLUMN,children:[o.RENAME,o.SET_DEFAULT]},{type:e.COLUMN,children:[o.EXPORT]}]},CLOUD:{tag:"parallelProfileTabGroup.profiles.cloud",type:e.SECTION,title:n.ToolstripSectionsCloud,children:[{type:e.COLUMN,children:[o.LICENSE_CENTER,o.CLOUD_TEST,o.CLOUD_CENTER]}]},VALIDATE:{tag:"parallelProfileTabGroup.profiles.validate",type:e.SECTION,title:n.ToolstripSectionsValidate,children:[{type:e.COLUMN,children:[o.VALIDATE]}]},HELP:{tag:"parallelProfileTabGroup.profiles.help",type:e.SECTION,title:n.ToolstripSectionsHelp,children:[{type:e.COLUMN,children:[o.HELP]}]}};return{tag:"parallelProfileTabGroup",type:e.TAB_GROUP,children:[{tag:"parallelProfileTabGroup.profiles",type:e.TAB,title:n.ToolstripTabTitle,children:[r.CREATE,r.MANAGE,r.VALIDATE,r.CLOUD,r.HELP]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(1256)],o=i.dj.d(n,(function(e,t){return{popups:[{tag:"parallelProfileTabGroup.profile.add.popup",type:e.POPUP_LIST,children:[]},{tag:"parallelProfileTabGroup.profile.export.popup",type:e.POPUP_LIST,children:[{tag:"parallelProfileTabGroup.profile.export.popup.exportSelected",type:e.LIST_ITEM,showDescription:!1,actionId:t.PARALLEL.PROFILE.EXPORT.SELECTED},{tag:"parallelProfileTabGroup.profile.export.popup.exportAll",type:e.LIST_ITEM,showDescription:!1,actionId:t.PARALLEL.PROFILE.EXPORT.ALL}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(8759),i(862),i(262)],o=i.dj.d(n,(function(e,t,i){let n;return{show:function(o="",r=[]){if(n&&n.domNode)return void n.bringToTop();const a=e({id:"connectivityCheckerWidget",stagesClass:o,stagesToRun:r});n=i.createDialog({title:t.DialogTitle,id:"pctConnectivityChecker",draggable:!0,resizable:!0,"data-test-id":"pctConnectivityChecker",content:a,className:"pctConnectivityCheckerDialog"})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2677),i(8760),i(1669),i(8765),i(8768),i(462),i(862),i(8772),i(262),i(243),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e("pct/app/cloud/connectivity/ConnectivityCheckWidget",[i,n],{templateString:l,baseClass:"connectivityCheckerWidget",destroy:function(){this.dialog&&this.dialog.destroy(),this.inherited(arguments)},_handleSessionCreated:function(e){[this.startButton,this.detailsButton].forEach(e=>e.set("disabled",!1)),this._handleStatusChanged({status:e.status,statusLabel:e.statusLabel})},_handleStatusChanged:function(e){this.set("status",e.status),this.set("statusLabel",e.statusLabel),t.isFinal(e.status)&&(a.toggleDisplay(this.startButton,this.cancelButton),this.emit("completed",{status:e.status}))},_handleStageCreated:function(e){this.table.addStage(e)},_handleStageUpdated:function(e){this.table.updateStage(e)},_handleStartClicked:function(){a.toggleDisplay(this.cancelButton,this.startButton),this.emit("started",{}),this.session.start()},_handleCancelClicked:function(){this.session.stop()},_handleDetailsButtonClicked:function(){this.dialog&&this.dialog.domNode?this.dialog.bringToTop():this.dialog=c.createDialog({id:this.id+"Dialog",title:s.VerificationDetails,dialogType:c.MODELESS,className:this.baseClass+"DetailsDialog",draggable:!0,resizable:!0,"data-test-id":"connectivityCheckerDetailsDialog",content:new o({id:this.id+"Details",session:this.session})})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(8761),i(862)],o=i.dj.d(n,(function(e,t,i,n,o,r){return n([t,e,i],{nls:r,startup:function(){this.inherited(arguments),this.session=new o({stagesClass:this.stagesClass||"",stagesToRun:this.stagesToRun||[]}),this._events=[this.session.on("session-created",e=>this._handleSessionCreated(e)),this.session.on("status-changed",e=>this._handleStatusChanged(e)),this.session.on("stage-created",e=>this._handleStageCreated(e)),this.session.on("stage-updated",e=>this._handleStageUpdated(e))]},destroy:function(){this.inherited(arguments),this._events&&this._events.forEach(e=>e.remove()),this.session&&this.session.destroy()},_handleSessionCreated:function(e){},_handleStatusChanged:function(e){},_handleStageCreated:function(e){},_handleStageUpdated:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(230),i(203),i(212),i(222),i(285),i(2677),i(539),i(1659),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){function c(e){return{id:e.getType(),index:e.getProperty("Index"),name:e.getProperty("Name"),status:e.getProperty("Status"),statusLabel:e.getProperty("StatusLabel"),details:e.getProperty("Details"),description:e.getProperty("Description"),error:e.getProperty("Error"),expectedDuration:1e3*e.getProperty("ExpectedDuration")}}return t([e,n],{constructor:function(e={}){t.safeMixin(this,e),this._canStart=new i,this.controller=s.getInstance().session,this.controller.newSession({stagesClass:this.stagesClass||"",stageNames:this.stagesToRun||[]}).then(e=>this._handleSessionCreated(e),e=>l.error(e))},_setupModel:function(e){const t=new a(e,{strategy:a.VIEWMODEL});t.hasRoot()?this._handleRootNodeCreated(t.getRoot()):this.own(t.onRootSet("_handleRootNodeCreated",this))},_handleSessionCreated:function(e){if(!e)throw new Error("ConnectivityCheckSession: Received no results when creating newSession.");this.sessionId=e[1],this.stages={},this._setupModel(e[0])},_handleRootNodeCreated:function(e){const t=function(e,t){for(const i of e.getChildren())if(i.getProperty("Id")===t)return i;return null}(e,this.sessionId);t?this._handleSessionNodeCreated(t):this.own(a.onChildAdded(e,"_handleSessionNodeCreated",this))},_handleSessionNodeCreated:function(e){if(e.getProperty("Id")===this.sessionId){this.emit("session-created",{id:this.sessionId,status:e.getProperty("Status"),statusLabel:e.getProperty("StatusLabel"),stageCount:e.getProperty("StageCount")});for(const t of e.getChildren())this._handleStageNodeCreated(t);this.own(a.onChildAdded(e,"_handleStageNodeCreated",this),a.onPropertiesSet(e,"_handleSessionChanged",this)),this._canStart.resolve()}},_handleStageNodeCreated:function(e){const t=c(e);this.stages[t.id]=t,this.emit("stage-created",t),this.own(a.onPropertiesSet(e,"_handleStagePropertiesChanged",this))},_handleStagePropertiesChanged:function(e,t,i){const n=c(i.target);this.stages[n.id]=n,this.emit("stage-updated",n)},_handleSessionChanged:function(e,t,i){(e.Status||e.StatusLabel)&&this.emit("status-changed",{status:e.Status||i.target.getProperty("Status"),statusLabel:e.StatusLabel||i.target.getProperty("StatusLabel")})},start:function(){return new Promise(e=>{o(this._canStart,()=>{this.controller.start().then(()=>e())})})},stop:function(){return this.controller.stop()},destroy:function(){if(this.inherited(arguments),this.sessionId)return this.controller.destroy(this.sessionId)}})}),e,t),e.exports=o},function(e,t,i){e.exports={ButtonCancel:"キャンセル",ButtonStart:"開始",DialogTitle:"クラウド接続テスター",LabelDetailsDescription:"説明:",LabelDetailsDetails:"詳細:",LabelDetailsErrorReport:"エラー レポート:",LabelDetailsStatus:"ステータス:",LabelNone:"(なし)",LabelVerificationStatus:"検証の状態",StageFailedFormat:"${0}: 失敗",StatePending:"接続チェックを開始中...",StatusCancelled:"キャンセル",StatusFailed:"失敗",StatusNotRun:"実行なし",StatusPassed:"パス",StatusRunning:"実行中",StatusSkipped:"スキップ",TableColumnDescription:"説明",TableColumnStage:"段階",TableColumnStatus:"ステータス",TooltipWarning:"予想以上に時間がかかっています...",VerificationDetails:"検証の詳細",WarningNoStagesSelected:"ステージ名が無効であったため、検証スイートのすべての段階を選択します: ${0}"}},function(e,t,i){e.exports={ButtonCancel:"취소",ButtonStart:"시작",DialogTitle:"클라우드 연결 테스터",LabelDetailsDescription:"설명:",LabelDetailsDetails:"세부 정보:",LabelDetailsErrorReport:"오류 리포트:",LabelDetailsStatus:"상태:",LabelNone:"(없음)",LabelVerificationStatus:"검증 상태",StageFailedFormat:"${0}: 실패",StatePending:"연결 검사를 시작하는 중...",StatusCancelled:"취소됨",StatusFailed:"실패",StatusNotRun:"실행되지 않음",StatusPassed:"통과",StatusRunning:"실행 중",StatusSkipped:"건너뜀",TableColumnDescription:"설명",TableColumnStage:"단계",TableColumnStatus:"상태",TooltipWarning:"예상보다 더 오래 걸리고 있습니다...",VerificationDetails:"확인 세부 정보",WarningNoStagesSelected:"단계 이름이 유효하지 않기 때문에 검증 스위트에서 모든 단계가 선택됨: ${0}"}},function(e,t,i){e.exports={root:{ButtonCancel:"Cancel",ButtonStart:"Start",DialogTitle:"Cloud Connection Tester",LabelDetailsDescription:"Description:",LabelDetailsDetails:"Details:",LabelDetailsErrorReport:"Error Report:",LabelDetailsStatus:"Status:",LabelNone:"(none)",LabelVerificationStatus:"Verification Status",StageFailedFormat:"${0}: Failed",StatePending:"Starting connectivity checks...",StatusCancelled:"Cancelled",StatusFailed:"Failed",StatusNotRun:"Not Run",StatusPassed:"Passed",StatusRunning:"Running",StatusSkipped:"Skipped",TableColumnDescription:"Description",TableColumnStage:"Stage",TableColumnStatus:"Status",TooltipWarning:"This is taking longer than expected...",VerificationDetails:"Verification Details",WarningNoStagesSelected:"Selecting all stages in the validation suite, since stage names were invalid: ${0}"},"ja-jp":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(272),i(215),i(203),i(862),i(8766)],o=i.dj.d(n,(function(e,t,i,n,o){return i([t,e],{baseClass:"connectivityCheckerDetails",constructor:function(e={}){if(!e.session)throw new Error("No session argument passed in.")},startup:function(){this.inherited(arguments),Object.values(this.session.stages).forEach(e=>this._addNewStage(e)),this.own(this.session.on("stage-created",e=>this._addNewStage(e)),this.session.on("stage-updated",e=>this._handleStageUpdated(e)))},_addNewStage:function(e){const t=new o({id:this.id+e.id,name:e.name,status:e.status,statusLabel:e.statusLabel||n.LabelNone,details:e.details||n.LabelNone,description:e.description||n.LabelNone,error:e.error||n.LabelNone});this.addChild(t)},_handleStageUpdated:function(e){const t=e.index-1,i=this.getChildren()[t];i.set("name",e.name),i.set("description",e.description||n.LabelNone),i.set("details",e.details||n.LabelNone),i.set("error",e.error||n.LabelNone),i.set("status",e.status),i.set("statusLabel",e.statusLabel)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(203),i(1669),i(862),i(8767)],o=i.dj.d(n,(function(e,t,i,n,o,r){return i([t,e,n],{templateString:r,nls:o,baseClass:"connectivityCheckerDetailsStage",_setNameAttr:{node:"nameNode",type:"textContent"},_setDetailsAttr:{node:"detailsNode",type:"textContent"},_setDescriptionAttr:{node:"descriptionNode",type:"textContent"},_setErrorAttr:{node:"errorNode",type:"textContent"}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div id="${id}Heading"\n class="${baseClass}Heading"\n data-dojo-attach-point="nameNode">${name}\n </div>\n <div id="${id}Status"\n class="${baseClass}Status">\n <span class="${baseClass}Label">${nls.LabelDetailsStatus}</span>\n <span class="${baseClass}Value"\n data-dojo-attach-point="statusNode">${statusLabel}</span>\n </div>\n <div id="${id}Details"\n class="${baseClass}Details">\n <span class="${baseClass}Label">${nls.LabelDetailsDetails}</span>\n <span class="${baseClass}Value"\n data-dojo-attach-point="detailsNode">${details}</span>\n </div>\n <div id="${id}Description"\n class="${baseClass}Description">\n <span class="${baseClass}Label">${nls.LabelDetailsDescription}</span>\n <span class="${baseClass}Value"\n data-dojo-attach-point="descriptionNode">${description}</span>\n </div>\n <div id="${id}Error"\n class="${baseClass}Error">\n <span class="${baseClass}Label">${nls.LabelDetailsErrorReport}</span>\n <span class="${baseClass}Value"\n data-dojo-attach-point="errorNode">${error}</span>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(8769),i(862),i(8771)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";return n("pct/app/cloud/connectivity/ConnectivityCheckTable",[t,e,i],{templateString:a,baseClass:"connectivityCheckerWidgetTable",nls:r,constructor:function(){this.stageWidgets=[]},addStage:function(e){const t=new o({stage:e});this.stageWidgets[e.index]=t,t.placeAt(this.tableBody)},updateStage:function(e){this.stageWidgets[e.index].update(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(203),i(204),i(1669),i(8770)],o=i.dj.d(n,(function(e,t,i,n,o,r){return i([t,e,o],{templateString:r,baseClass:"connectivityCheckerStage",_setNameAttr:{node:"nameNode",type:"innerText"},_setDescriptionAttr:{node:"descriptionNode",type:"innerText"},constructor:function(e={}){this.stage=e.stage,this.stage.description=this.stage.description||""},postCreate:function(){this.inherited(arguments),this.set("status",this.stage.status),this.set("statusLabel",this.stage.statusLabel)},update:function(e){this.set("name",e.name),this.set("status",e.status),this.set("statusLabel",e.statusLabel),this.set("description",e.description||""),n.mixin(this.stage,e)}})}),e,t),e.exports=o},function(e,t){e.exports='<tr>\n <td data-dojo-attach-point="nameNode">${stage.name}</td>\n <td class="${baseClass}Status"\n data-dojo-attach-point="statusNode">${stage.statusLabel}\n </td>\n <td data-dojo-attach-point="descriptionNode">${stage.description}</td>\n</tr>'},function(e,t){e.exports='<table>\n <thead>\n <tr>\n <th class="field-stage">${nls.TableColumnStage}</th>\n <th class="field-status">${nls.TableColumnStatus}</th>\n <th class="field-description">${nls.TableColumnDescription}</th>\n </tr>\n </thead>\n <tbody data-dojo-attach-point="tableBody">\n </tbody>\n</table>'},function(e,t){e.exports='<div>\n <div class="${baseClass}TopSection">\n <div class="${baseClass}StatusLabel">${nls.LabelVerificationStatus}</div>\n <div id="${id}Status"\n class="${baseClass}Status"\n data-dojo-attach-point="statusNode"></div>\n </div>\n\n <div id="${id}Table"\n class="${baseClass}Table"\n data-dojo-attach-point="table"\n data-dojo-type="pct/app/cloud/connectivity/ConnectivityCheckTable"></div>\n\n <div class="${baseClass}BottomSection">\n <div id="${id}StartButton"\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'${nls.ButtonStart}\', disabled: true"\n data-dojo-attach-point="startButton"\n data-dojo-attach-event="click: _handleStartClicked">\n </div>\n <div id="${id}CancelButton"\n style="display: none"\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'${nls.ButtonCancel}\'"\n data-dojo-attach-point="cancelButton"\n data-dojo-attach-event="click: _handleCancelClicked">\n </div>\n\n <div id="${id}DetailsButton"\n class="${baseClass}DetailsButton"\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text: \'Show Details\', disabled: true"\n data-dojo-attach-point="detailsButton"\n data-dojo-attach-event="click: _handleDetailsButtonClicked">\n </div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(8774),i(863),i(262)],o=i.dj.d(n,(function(e,t,i){var n,o,r={};return r.show=function(){o?o.bringToTop():(n?n.updateJobs():n=new e({id:"jobMonitor"}),o=i.createDialog({title:t.Title,id:"jobMonitorDialog",draggable:!0,resizable:!0,closeOnEscape:!1,"data-test-id":"job-monitor-dialog",content:n,className:"jobMonitorDialog"}),n.enableEventUpdates(),o.on("close",(function(){n.stopAutoUpdate(),n.disableEventUpdates(),o=null})))},r}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(204),i(1236),i(210),i(236),i(8775),i(8779),i(8782),i(8783),i(701),i(8789),i(863),i(8790),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return n([t,e,i],{templateString:g,baseClass:"jobMonitor",nls:f,constructor:function(){this._profileManager=h.getInstance()},postCreate:function(){this.inherited(arguments),this.contextMenu=new l({targetNodes:["#"+this.table.id+" .dgrid-selected"],willOpenCallback:o.hitch(this,"_handleContextMenuOpening")}),this.own(this._profileManager.on(h.PROFILE_ADDED,o.hitch(this,"_handleProfileAdded")),this._profileManager.on(h.PROFILE_REMOVED,o.hitch(this,"_handleProfileRemoved")),this._profileManager.on(h.PROFILE_RENAMED,o.hitch(this,"_handleProfileRenamed")),this._profileManager.on(h.DEFAULT_PROFILE_CHANGED,o.hitch(this,"_handleDefaultProfileChanged"))),this.manager=new u,this.manager.on(u.PROFILE_UPDATED,o.hitch(this,"_handleProfileUpdated")),this.manager.on(u.JOB_ADDED,o.hitch(this,"_handleJobUpdated")),this.manager.on(u.JOB_REMOVED,o.hitch(this,"_handleJobRemoved")),this.manager.on(u.JOB_UPDATED,o.hitch(this,"_handleJobUpdated")),this.profileSelector.refresh(),this.updateJobs(),this.contextMenu.on("item-clicked",o.hitch(this,"_handleContextMenuItemClicked"))},destroyRecursive:function(){},_handleContextMenuOpening:function(){var e=this.table.getSelectedJobs();this.contextMenu.setJobs(e)},_handleProfileAdded:function(){this.profileSelector.refresh(),1===this.profileSelector.items.length&&this.updateJobs()},_handleProfileRemoved:function(){this.profileSelector.refresh()},_handleProfileRenamed:function(e){this.profileSelector.refresh()},_handleDefaultProfileChanged:function(e){this.profileSelector.refresh()},_handleSelectedProfileChanged:function(e){e.mwEventData.newValue?this.updateJobs():(this.statusLine.textContent="",this.table.setJobs([]),this.table.set("errorMessage",""))},_handleProfileUpdated:function(e){e.name===this._getProfileName()&&this._refreshErrorMessage(e)},_handleJobRemoved:function(e){var t=e.profile,i=e.job;t.name===this._getProfileName()&&this.table.removeJob(i)},_handleJobUpdated:function(e){var t=e.profile,i=e.job;t.name===this._getProfileName()&&(this.showAllUsersCheckBox.get("checked")||i.userMatch?this.table.addJob(i):this.table.removeJob(i))},stopAutoUpdate:function(){this._updateIntervalId&&(clearTimeout(this._updateIntervalId),this._updateIntervalId=0)},enableEventUpdates:function(){this.manager.executor.enableListeners()},disableEventUpdates:function(){this.manager.executor.disableListeners()},_handleUpdateFrequencyChanged:function(e){e.mwEventData.newValue<0?this.stopAutoUpdate():this.updateJobs()},_handleUpdateClicked:function(){this.updateJobs()},_getProfileName:function(){var e=this.profileSelector.getSelectedProfileId(),t=this._profileManager.getProfileById(e);return t?t.name:null},_getSelectedJob:function(){var e=this.table.getSelectedJobs();return 0===e.length?null:e[0]},_setUpdating:function(e){this.updateButton.set("disabled",e),this.updateFrequencyComboBox.set("disabled",e),e?(this.statusLine.textContent=f.Updating,a.add(this.domNode,this.baseClass+"-updating")):(a.remove(this.domNode,this.baseClass+"-updating"),this._getProfileName()?this.statusLine.textContent=s.substitute(f.LastUpdated,[r.format(new Date,{formatLength:"medium"})]):this.statusLine.textContent=""),this.contextMenu.notifyUpdating(e)},updateJobs:function(){this.manager.executor.cancelPendingUpdateHandlers();var e=this._getProfileName();e&&(this._setUpdating(!0),this.stopAutoUpdate(),this.manager.executor.update(e).then(o.hitch(this,"_updateComplete"),o.hitch(this,"_handleUpdateFailed")))},_refreshJobs:function(e){var t=e.jobs||[];this.showAllUsersCheckBox.get("checked")||(t=t.filter((function(e){return e.userMatch}))),this.table.setJobs(t)},_refreshErrorMessage:function(e){var t=e.errorMessage;this.table.set("errorMessage",t)},_refresh:function(){var e=this._getProfileName();if(e){var t=this.manager.getProfile(e);t&&(this._refreshJobs(t),this._refreshErrorMessage(t))}this._setUpdating(!1)},_updateComplete:function(){var e=this.updateFrequencyComboBox.get("value");this._refresh(),e<0||(this._updateIntervalId=setTimeout(o.hitch(this,"updateJobs"),1e3*e*60))},_handleUpdateFailed:function(e){m.error(e)},_handleContextMenuItemClicked:function(e){this["_handle"+e.action]()},_handleCancel:function(){this.manager.executor.cancelJob(this._getProfileName(),this._getSelectedJob().id)},_handleDelete:function(){var e=this.table.getSelectedJobs().map((function(e){return e.id}));e.length>0&&this.manager.executor.deleteJobs(this._getProfileName(),e)},_handleClosePool:function(){this.manager.executor.closePool()},_handleShowDetails:function(){this.manager.executor.showJobDetails(this._getProfileName(),this._getSelectedJob().id)},_handleShowErrors:function(){this.manager.executor.showErroredTasksInJob(this._getProfileName(),this._getSelectedJob().id,this._getSelectedJob().erroredTaskIDs)},_handleShowWarnings:function(){this.manager.executor.showTasksWithWarningsInJob(this._getProfileName(),this._getSelectedJob().id,this._getSelectedJob().taskIDsWithWarnings)},_handleShowDiary:function(){this.manager.executor.showDiary(this._getProfileName(),this._getSelectedJob().id)},_handleLoadVariables:function(){this.manager.executor.loadVariables(this._getProfileName(),this._getSelectedJob().id)},_handleFetchOutputs:function(){this.manager.executor.fetchOutputs(this._getProfileName(),this._getSelectedJob().id)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2678),i(462),i(863),i(317),i(288),i(354)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l="Delete",c="ClosePool",d="ShowErrors",u="ShowWarnings",h="ShowDetails",p="ShowDiary",f="LoadVariables",g="FetchOutputs",m=[{action:"Cancel",title:o.JobActionsCancelJob,enabled:function(e){return e.isRunning()}},{action:c,title:o.JobActionsClosePool,enabled:function(e){return e.isCurrentPoolJob()}},{action:l,title:o.JobActionsDeleteJob,enabled:!0,hasSeparator:!0},{separator:!0},{action:h,title:o.JobActionsShowDetails,enabled:!0},{action:d,title:o.JobActionsShowErrors,enabled:function(e){return e.hasErrors()}},{action:u,title:o.JobActionsShowWarnings,enabled:function(e){return e.hasWarnings()}},{action:p,title:o.JobActionsShowDiary,enabled:function(e){return e.isRunning()||e.isDone()}},{separator:!0},{action:f,title:o.JobActionsLoadVariables,enabled:function(e){return e.isFinished()&&!e.hasErrors()}},{action:g,title:o.JobActionsFetchOutputs,enabled:function(e){return e.isFinished()&&!e.hasErrors()}}];return e("pct/app/jobmonitor/JobMonitorMenu",[r],{nls:o,id:"jobMonitorContextMenu",postCreate:function(){this.inherited(arguments),m.forEach(this._addMenuItem,this)},_addMenuItem:function(e){var i;e.separator?i=new s:(i=new a({text:e.title,shortcut:e.shortcut||"",id:this.id+"Action"+e.action})).on("click",t.hitch(this,"emit","item-clicked",{action:e.action})),this.addChild(i),e.menuItem=i},setJobs:function(e){var t,i,o=0,r=[];m.forEach((function(a){a.separator?o+=1:((t=this._isActionVisible(a,e))&&(r[o]=!0),n.display(a.menuItem,t),t&&(i=this._isActionDisabled(a,e),a.menuItem.set("disabled",i)))}),this),m.filter((function(e){return e.separator})).forEach((function(e,t){n.display(e.menuItem,r[t]&&t<r.length-1)}))},notifyUpdating:function(e){this._isUpdating=e},_isActionDisabled:function(e,i){return!!this._isUpdating||(t.isFunction(e.enabled)?!i.every(e.enabled,this):!e.enabled)},_isActionVisible:function(e,t){return 1===t.length?this._isActionVisibleForSingleJob(e,t[0]):t.length>1&&e.action===l},_isActionVisibleForSingleJob:function(e,t){var n=i[t.type];if(!n)throw new Error("Undefined job type: "+t.type);return n["can"+e.action]}})}),e,t),e.exports=o},function(e,t,i){e.exports={AutoUpdate:"自動更新:",JobActionsCancelJob:"キャンセル",JobActionsClosePool:"並列プールのシャットダウン",JobActionsDeleteJob:"削除",JobActionsFetchOutputs:"出力の取得",JobActionsLoadVariables:"変数の読み込み",JobActionsShowDetails:"詳細を表示",JobActionsShowDiary:"ダイアリを表示",JobActionsShowErrors:"エラーを表示",JobActionsShowWarnings:"警告を表示",JobCorruptionLevelCANNOT_PROVIDE_DESCRIPTION:"説明",JobCorruptionLevelCANNOT_PROVIDE_ERRORED_TASK_INFORMATION:"エラーの発生したタスク",JobCorruptionLevelCANNOT_PROVIDE_PROPERTIES:"プロパティ",JobCorruptionLevelCANNOT_PROVIDE_TYPE:"タイプ",JobCorruptionMessage:"<p/><b>ジョブ ${0} を取得できませんでした:</b><br/><i>${1}</i>",JobDescription:"説明",JobFinishTime:"終了時間",JobId:"ID",JobState:"状態",JobSubmitTime:"送信時間",JobTasks:"タスク",JobTooltip:"<b><u>ジョブ ID ${0}</u></b><p>${1} エラーなしで終了したタスク</p><p>${2} エラーが発生して終了したタスク</p><p>${3} 警告が発生して終了したタスク</p><p>${4} 実行中のタスク</p><p>${5} 保留中のタスク</p>${6}",JobUserName:"ユーザー名",LastUpdated:"最終更新: ${0}",SelectProfile:"プロファイルの選択:",ShowJobsFromAllUsers:"すべてのユーザーのジョブを表示",Title:"ジョブ モニター",UpdateFailed:"更新中にエラーが発生しました。<br/><br/>${0}",UpdateFrequencyEvery15min:"15 分ごと",UpdateFrequencyEvery1hour:"毎時",UpdateFrequencyEvery1min:"毎分",UpdateFrequencyEvery30min:"30 分ごと",UpdateFrequencyEvery5min:"5 分ごと",UpdateFrequencyNever:"行わない",UpdateNow:"今すぐ更新",Updating:"更新中..."}},function(e,t,i){e.exports={AutoUpdate:"자동 업데이트:",JobActionsCancelJob:"취소",JobActionsClosePool:"병렬 풀 종료",JobActionsDeleteJob:"삭제",JobActionsFetchOutputs:"출력값 가져오기",JobActionsLoadVariables:"변수 불러오기",JobActionsShowDetails:"세부 정보 표시",JobActionsShowDiary:"Diary 표시",JobActionsShowErrors:"오류 표시",JobActionsShowWarnings:"경고 표시",JobCorruptionLevelCANNOT_PROVIDE_DESCRIPTION:"설명",JobCorruptionLevelCANNOT_PROVIDE_ERRORED_TASK_INFORMATION:"오류 발생 태스크",JobCorruptionLevelCANNOT_PROVIDE_PROPERTIES:"속성",JobCorruptionLevelCANNOT_PROVIDE_TYPE:"유형",JobCorruptionMessage:"<p/><b>작업 ${0}을(를) 가져오지 못함:</b><br/><i>${1}</i>",JobDescription:"설명",JobFinishTime:"완료 시간",JobId:"ID",JobState:"상태",JobSubmitTime:"제출 시간",JobTasks:"태스크",JobTooltip:"<b><u>작업 ID ${0}</u></b><p>오류 없이 완료된 태스크: ${1}</p><p>오류와 함께 완료된 태스크: ${2}</p><p>경고와 함께 완료된 태스크: ${3}</p><p>실행 중인 태스크: ${4}</p><p>보류 중인 태스크: ${5}</p>${6}",JobUserName:"사용자 이름",LastUpdated:"마지막 업데이트: ${0}",SelectProfile:"프로파일 선택:",ShowJobsFromAllUsers:"모든 사용자의 작업 표시",Title:"작업 모니터",UpdateFailed:"업데이트하는 중 오류가 발생했습니다.<br/><br/>${0}",UpdateFrequencyEvery15min:"15분마다",UpdateFrequencyEvery1hour:"1시간마다",UpdateFrequencyEvery1min:"1분마다",UpdateFrequencyEvery30min:"30분마다",UpdateFrequencyEvery5min:"5분마다",UpdateFrequencyNever:"호출 안 함",UpdateNow:"지금 업데이트",Updating:"업데이트 중..."}},function(e,t,i){e.exports={root:{AutoUpdate:"Auto update:",JobActionsCancelJob:"Cancel",JobActionsClosePool:"Shut Down Parallel Pool",JobActionsDeleteJob:"Delete",JobActionsFetchOutputs:"Fetch Outputs",JobActionsLoadVariables:"Load Variables",JobActionsShowDetails:"Show Details",JobActionsShowDiary:"Show Diary",JobActionsShowErrors:"Show Errors",JobActionsShowWarnings:"Show Warnings",JobCorruptionLevelCANNOT_PROVIDE_DESCRIPTION:"description",JobCorruptionLevelCANNOT_PROVIDE_ERRORED_TASK_INFORMATION:"errored tasks",JobCorruptionLevelCANNOT_PROVIDE_PROPERTIES:"properties",JobCorruptionLevelCANNOT_PROVIDE_TYPE:"type",JobCorruptionMessage:"<p/><b>Failed to retrieve job ${0}:</b><br/><i>${1}</i>",JobDescription:"Description",JobFinishTime:"Finish Time",JobId:"ID",JobState:"State",JobSubmitTime:"Submit Time",JobTasks:"Tasks",JobTooltip:"<b><u>Job ID ${0}</u></b><p>${1} Finished tasks with no errors</p><p>${2} Finished tasks with errors</p><p>${3} Finished tasks with warnings</p><p>${4} Running tasks</p><p>${5} Pending tasks</p>${6}",JobUserName:"Username",LastUpdated:"Last updated at ${0}",SelectProfile:"Select Profile:",ShowJobsFromAllUsers:"Show jobs from all users",Title:"Job Monitor",UpdateFailed:"An error has occurred while trying to update.<br/><br/>${0}",UpdateFrequencyEvery15min:"Every 15 minutes",UpdateFrequencyEvery1hour:"Every hour",UpdateFrequencyEvery1min:"Every minute",UpdateFrequencyEvery30min:"Every 30 minutes",UpdateFrequencyEvery5min:"Every 5 minutes",UpdateFrequencyNever:"Never",UpdateNow:"Update Now",Updating:"Updating..."},"ja-jp":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(1662),i(1254),i(750),i(851),i(697),i(203),i(204),i(1236),i(210),i(223),i(206),i(428),i(753),i(236),i(8780),i(8781),i(863)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){var _=function(e){return e?s.format(e,{formatLength:"medium"}):""};return r("pct/app/jobmonitor/JobMonitorTable",[n,i,o,e,t],{columns:[{field:"id",label:m.JobId},{field:"userName",label:m.JobUserName},{field:"submitDateTime",label:m.JobSubmitTime,formatter:_},{field:"finishDateTime",label:m.JobFinishTime,formatter:_},{field:"totalTasks",label:m.JobTasks},{field:"state",label:m.JobState,renderCell:function(e,t,i){e.hasErrors()&&l.add(i,"jobMonitorStatusError"),e.hasWarnings()&&l.add(i,"jobMonitorStatusWarning"),e.isCorruptedWith(g.CANNOT_PROVIDE_TYPE,g.CANNOT_PROVIDE_PROPERTIES,g.CANNOT_PROVIDE_ERRORED_TASK_INFORMATION)&&l.add(i,"jobMonitorStatusWarning"),this.grid.anyJobsWithErrorsOrWarnings()&&l.add(i,"jobMonitorStatusBlank"),i.textContent=t}},{field:"description",label:m.JobDescription}],sort:"id",selectionMode:"extended",deselectOnRefresh:!0,allowSelectAll:!0,adjustLastColumn:!0,keepScrollPosition:!0,errorMessage:null,keyMap:a.mixin({},i.defaultKeyMap),postCreate:function(){this.inherited(arguments),this.store=new h(new u({idProperty:"id"})),this.keyMap[c.DELETE]=a.partial(d.emit,this.domNode,"delete-job",{}),this.tooltip=new f({table:this,selector:".dgrid-row"})},startup:function(){this.inherited(arguments),this.tooltip.startup()},renderRow:function(e){var t=this.inherited(arguments);return e.isCorrupted()&&l.add(t,"jobMonitorCorrupted"),t},anyJobsWithErrorsOrWarnings:function(){return this.store.data.some((function(e){return e.hasErrors()||e.hasWarnings()||e.isCorruptedWith(g.CANNOT_PROVIDE_TYPE,g.CANNOT_PROVIDE_PROPERTIES,g.CANNOT_PROVIDE_ERRORED_TASK_INFORMATION)}))},getSelectedJobs:function(){var e=this;return Object.keys(this.selection).filter((function(t){return e.selection[t]})).map((function(t){return e.store.get(t)}))},findJobByNode:function(e){var t=this.row(e);return t&&t.data||null},_setErrorMessage:function(e){e?this.set("noDataMessage","<div>"+p.substitute(m.UpdateFailed,[e.replace(/(?:\r\n|\r|\n)/g,"<br/>")])+"</div>"):this.set("noDataMessage",""),this.refresh()},setJobs:function(e){this.store.setData(e),this.refresh()},addJob:function(e){this.store.put(e,{overwrite:!0}),this.refresh()},removeJob:function(e){this.store.remove(e.id),this.refresh()},removeRow:function(e){this.inherited(arguments),this.tooltip.notifyTargetRemoved(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(312),i(203),i(236),i(863),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){function r(e){var t,o,r;if(!e.isCorrupted())return"";for(r in t={},e.corruptionInfo.forEach((function(e){var i=t[e.Message];i||(i=[],t[e.Message]=i),i.push(e.Level)})),o="",t)t.hasOwnProperty(r)&&(o+=i.substitute(n.JobCorruptionMessage,[t[r].map((function(e){return n["JobCorruptionLevel"+e]})).join(", "),r]));return o}return t([e],{position:["below-centered"],showDelay:0,table:null,constructor:function(e){if(!e.table)throw new Error('A JobMonitorTable with a valid ID needs to be specified as the "table" element in the constructor arguments of this class.')},postMixInProperties:function(){this.inherited(arguments),this.table.id?this.set("connectId",this.table.id):o.warn("No ID specified for JobMonitorTable. Tooltips won't be displayed properly.")},getContent:function(e){var t=this.table.findJobByNode(e);return t?i.substitute(n.JobTooltip,[t.id,t.finishedTasksNoError,t.finishedTasksWithError,t.finishedTasksWithWarnings,t.runningTasks,t.pendingTasks,r(t)]):null},notifyTargetRemoved:function(e){this._connectNode===e&&this.close()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2679)],o=i.dj.d(n,(function(e){"use strict";return new e(["CANNOT_PROVIDE_DESCRIPTION","CANNOT_PROVIDE_TYPE","CANNOT_PROVIDE_ERRORED_TASK_INFORMATION","CANNOT_PROVIDE_PROPERTIES"])}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(863),i(286)],o=i.dj.d(n,(function(e,t,i){return e("pct/app/jobmonitor/JobMonitorUpdateFrequencySelector",[i],{postCreate:function(){this.inherited(arguments),this.set("items",[{value:-1,label:t.UpdateFrequencyNever},{value:1,label:t.UpdateFrequencyEvery1min},{value:5,label:t.UpdateFrequencyEvery5min},{value:15,label:t.UpdateFrequencyEvery15min},{value:30,label:t.UpdateFrequencyEvery30min},{value:60,label:t.UpdateFrequencyEvery1hour}]),this.set("value",5)},width:132})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(8784),i(8787),i(648),i(763),i(539)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){var l=a.getLogger(),c=e([i],{constructor:function(){var e;this._profiles=[],(e=new s("/parallel/jobmonitor")).hasRoot()?this._handleRootSet(e.getRoot()):e.onRootSet(this._handleRootSet,this),this.executor=new n,this.executor.initialize()},getProfile:function(e){return r.toMap(this._profiles,(function(e){return e.name}),null)[e]||[]},_handleRootSet:function(e){l.debug("JobStorageManager: Root peer node initialised."),s.onChildAdded(e,this._handleProfileAdded,this),s.onChildDestroyed(e,this._handleProfileRemoved,this)},_handleProfileAdded:function(e){var i=new o(e);i.on(o.PROFILE_UPDATED,t.hitch(this,(function(e){this.emit(c.PROFILE_UPDATED,e)}))),i.on(o.JOB_ADDED,t.hitch(this,(function(e){this.emit(c.JOB_ADDED,e)}))),i.on(o.JOB_REMOVED,t.hitch(this,(function(e){this.emit(c.JOB_REMOVED,e)}))),i.on(o.JOB_UPDATED,t.hitch(this,(function(e){this.emit(c.JOB_UPDATED,e)}))),l.debug("JobStorageManager: Adding profile peer node "+i.name),this._profiles.push(i)},_handleProfileRemoved:function(e){var t=this._profiles[e];l.debug("JobStorageManager: Removing profile peer node "+t.name),this._profiles.splice(e,1)}});return c.PROFILE_UPDATED="profileUpdated",c.JOB_ADDED="jobAdded",c.JOB_REMOVED="jobRemoved",c.JOB_UPDATED="jobUpdated",c}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(8785),i(8786),i(511),i(219),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";var s="initializePeerModel",l="enableListeners",c="disableListeners",d="cancelJob",u="deleteJob",h="showTasksInJob",p="showJobDetails",f="fetchOutputs",g="loadVariables",m="showDiary",_="deletePool",v={},b=0,y=function(e,t,i){var n="parallel.internal.ui.JobMonitorJavascriptHelper".concat(".",e);return new o("JobMonitor_"+e).execute({functionName:n,args:t,nargout:i||0})},C=function(e,t,i){i=i||{},y(e,t,1).then((function(e){e&&e[0]&&(i.printOutput?new n("JobMonitor_Display").printString(e[0]):new o("JobMonitor_CodeRunner").runCode(e[0]))}),(function(e){new n("JobMonitor_PrintError").printError(e)}))};return e([i],{initialize:function(){return r.subscribe("/parallel/jobmonitor/response",(function(e){if(e){var t=e.data,i=t.status,n=t.updateId;a.info("Received Job Monitor update for updateId: "+n+" with status: "+i);var o=v[n];o?(a.info("Resolving Job Monitor deferral for updateId: "+n),delete v[n],o.resolve(e)):a.info("Received response for unknown updateId: "+n)}}),this),y(s,[],0)},cancelPendingUpdateHandlers:function(){for(var e in v){if(v.hasOwnProperty(e))a.info("Canceling Job Monitor update for updateId: "+e),v[e].resolve("Planned cancel of update"),r.publish("/parallel/jobmonitor/update",{updateId:e,action:"cancel"})}v={}},update:function(e){var i=new t,n=function(){var e=b;return b++,e.toString()}();return v[n]=i,r.publish("/parallel/jobmonitor/update",{profileName:e,updateId:n,action:"update"}),a.info("Submitted an update request for profile: "+e+" with updateId: "+n),i.promise},enableListeners:function(){return y(l,[],0)},disableListeners:function(){return y(c,[],0)},cancelJob:function(e,t){return y(d,[e,t],0)},deleteJobs:function(e,t){return y(u,[e,t],0)},showErroredTasksInJob:function(e,t,i){return C(h,[e,t,i],{printOutput:!0})},showTasksWithWarningsInJob:function(e,t,i){return C(h,[e,t,i],{printOutput:!0})},showJobDetails:function(e,t){return C(p,[e,t])},fetchOutputs:function(e,t){return C(f,[e,t])},loadVariables:function(e,t){return C(g,[e,t])},showDiary:function(e,t){return C(m,[e,t])},closePool:function(){return y(_,[],0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){"use strict";return e(null,{initialize:function(){throw new Error("Abstract API")},update:function(e){throw new Error("Abstract API")},enableListeners:function(){throw new Error("Abstract API")},disableListeners:function(){throw new Error("Abstract API")},cancelJob:function(e,t){throw new Error("Abstract API")},deleteJobs:function(e,t){throw new Error("Abstract API")},showErroredTasksInJob:function(e,t,i){throw new Error("Abstract API")},showTasksWithWarningsInJob:function(e,t,i){throw new Error("Abstract API")},showJobDetails:function(e,t){throw new Error("Abstract API")},fetchOutputs:function(e,t){throw new Error("Abstract API")},loadVariables:function(e,t){throw new Error("Abstract API")},showDiary:function(e,t){throw new Error("Abstract API")},closePool:function(){throw new Error("Abstract API")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(511)],o=i.dj.d(n,(function(e,t,i){"use strict";var n="fprintf",o="error",r="warning";return e(null,{constructor:function(e){this._worker=new i(e||"MatlabDisplay")},_printInCommandWindow:function(e,i){var n,o=function(t){return`${e}('${i=t,i.replace(/\\/g,"\\\\").replace(/'/g,"''").replace(/\n/g,"\\n")}')`;var i};return n=t.isArray(i)?i.map(o).join(", "):o(i),this._worker.runCode(n)},printString:function(e){return this._printInCommandWindow(n,e)},printError:function(e){return this._printInCommandWindow(o,e)},printWarning:function(e){return this._printInCommandWindow(r,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(8788),i(763),i(539)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a=o.getLogger(),s=e([i],{name:null,errorMessage:null,errorId:null,constructor:function(e){for(var t in e.getProperties())this[t]=e.getProperty(t);this.jobs=[],r.onChildAdded(e,this._handleJobAdded,this),r.onChildDestroyed(e,this._handleJobRemoved,this),r.onPropertiesSet(e,this._handleProfileModified,this)},_handleJobAdded:function(e){var i=new n(e);i.on(n.JOB_UPDATED,t.hitch(this,this.emit,s.JOB_UPDATED,{job:i,profile:this})),a.debug("Profile: Job peer node added "+i.id),this.jobs.push(i),this.emit(s.JOB_ADDED,{job:i,profile:this})},_handleJobRemoved:function(e){var t=this.jobs[e];a.debug("Profile: Removing job peer node "+t.id),this.jobs.splice(e,1),this.emit(s.JOB_REMOVED,{job:t,profile:this})},_handleProfileModified:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.emit(s.PROFILE_UPDATED,this)}});return s.PROFILE_UPDATED="profileUpdated",s.JOB_ADDED="jobAdded",s.JOB_REMOVED="jobRemoved",s.JOB_UPDATED="jobUpdated",s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(222),i(2678),i(2679),i(539)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){"use strict";var s=new r(["RUNNING","FINISHED","FAILED","PENDING","QUEUED"],(function(e){return e.toLowerCase()})),l=t([n],{id:null,description:null,userMatch:null,userName:null,submitDateTime:null,finishDateTime:null,type:null,corruptionInfo:null,state:null,totalTasks:null,pendingTasks:null,runningTasks:null,finishedTasks:null,finishedTasksNoError:null,finishedTasksWithError:null,finishedTasksWithWarnings:null,erroredTaskIDs:null,taskIDsWithWarnings:null,constructor:function(e){for(var t in e.getProperties())this._setProperty(t,e.getProperty(t));a.onPropertiesSet(e,this._handleJobModified,this)},_setProperty:function(e,t){switch(e){case"submitDateTime":case"finishDateTime":this[e]=this._convertTimestamp(t);break;case"corruptionInfo":this[e]=this._convertCorruptionInfo(t);break;default:this[e]=t}},_handleJobModified:function(e){for(var t in e)this._setProperty(t,e[t]);this.emit(l.JOB_UPDATED,this)},_convertTimestamp:function(e){return e?new Date(e):null},_convertCorruptionInfo:function(e){return e&&!i.isArray(e)?[e]:e},isRunning:function(){return this.state===s.RUNNING},isDone:function(){return this.state===s.FAILED||this.state===s.FINISHED},isFinished:function(){return this.state===s.FINISHED},hasErrors:function(){return this.finishedTasksWithError>0},hasWarnings:function(){return this.finishedTasksWithWarnings>0},isCorrupted:function(){return this.corruptionInfo&&this.corruptionInfo.length>0},isCorruptedWith:function(){var t=arguments;return!!this.isCorrupted()&&e.some(this.corruptionInfo,(function(i){return e.some(t,(function(e){return i.Level===e}))}))},isCurrentPoolJob:function(){return this.type===o.CURRENT_INTERACTIVE_MATLABPOOL.name}});return l.JOB_UPDATED="jobUpdated",l}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(701),i(1251),i(700),i(286)],o=i.dj.d(n,(function(e,t,i,n,o){return e("pct/app/cluster/profiles/ProfileSelector",[o],{width:"100%",refresh:function(){var e,o=t.getInstance().getProfiles().filter(n.isSupported),r=this.get("value");r||(e=t.getInstance().getDefaultProfile())&&n.isSupported(e)&&(r=e.id);var a=!o.some((function(e){return e.id===r})),s=o.map((function(e){return{value:e.id,label:i.getProfileString(e.name,!1)}}));this.set("items",s),this.set("disabled",0===s.length),r&&a||!r?(e=t.getInstance().getDefaultProfile())&&n.isSupported(e)?(this.set("value",e.id),this.emit("change",{mwEventData:{newValue:e.id}})):this.items.length>0?(this.set("value",this.items[0].value),this.emit("change",{mwEventData:{newValue:this.items[0].value}})):this.emit("change",{mwEventData:{newValue:null}}):this.set("value",r)},getSelectedProfileId:function(){return this.get("value")},setSelectedProfile:function(e){this.set("value",e.id)}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div class="${baseClass}Header">\n <div class="pctNoWrap">${nls.SelectProfile}</div>\n <div id="${id}ProfileSelector"\n class="${baseClass}ProfileSelector"\n data-dojo-type="pct/app/cluster/profiles/ProfileSelector"\n data-dojo-attach-event="change: _handleSelectedProfileChanged"\n data-dojo-attach-point="profileSelector"\n data-dojo-props="width: \'auto\'"></div>\n <div id="${id}UsersCheckBox"\n class="${baseClass}UsersCheckBox"\n data-dojo-type="mw-form/CheckBox"\n data-dojo-attach-point="showAllUsersCheckBox"\n data-dojo-attach-event="change: _refresh"\n data-dojo-props="text: \'${nls.ShowJobsFromAllUsers}\'"></div>\n </div>\n <div id="${id}TableGrid"\n class="${baseClass}TableGrid"\n data-dojo-type="pct/app/jobmonitor/JobMonitorTable"\n data-dojo-attach-point="table"\n data-dojo-attach-event="delete-job: _handleDelete"></div>\n <div class="${baseClass}Footer">\n <div id="${id}Status"\n class="${baseClass}Status"\n data-dojo-attach-point="statusLine"></div>\n <div class="pctNoWrap">${nls.AutoUpdate}</div>\n <div id="${id}UpdateFrequency"\n class="${baseClass}UpdateFrequency"\n data-dojo-type="pct/app/jobmonitor/JobMonitorUpdateFrequencySelector"\n data-dojo-attach-event="change: _handleUpdateFrequencyChanged"\n data-dojo-attach-point="updateFrequencyComboBox"></div>\n <button id="${id}UpdateButton"\n class="${baseClass}UpdateButton"\n data-dojo-type="mw-form/PushButton"\n data-dojo-attach-point="updateButton"\n data-dojo-attach-event="click: _handleUpdateClicked"\n data-dojo-props="text: \'${nls.UpdateNow}\'">\n </button>\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(8792),i(1657)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e){this._builder=e.uiBuilder,this._executor=i.currentProfileExecutor(),this._parallelMenu=new t({builder:this._builder,executor:this._executor})},injectParallelItems:function(){this._parallelMenu.create()},removeParallelItems:function(){this._parallelMenu.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(2668),i(700),i(2676),i(1018),i(1250),i(395),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){const l="motwToolstrip.matlabTab.environment.parallel.popup",c=l+".clusters",d="user",u="factory";class h{constructor(e){Object.assign(this,e),this.factoryProfileNames=[]}_handleFactoryProfileNamesReceived(e){this.factoryProfileNames=e[0],this.supportedFactoryProfileNames=this.factoryProfileNames.filter(i.isSupported),this.supportedFactoryProfileNames.length>0&&(this.supportedFactoryProfileNames.forEach(this.addClusterProfileItem,this),this.removeNoProfilesMenuItem()),this.executor.getProfileNames().then(e=>this._handleProfileNamesReceived(e),e=>s.error(e))}addClusterProfileItem(t){var i=this.builder.create({type:e.LIST_ITEM_WITH_CHECKBOX,parentId:this._profileListMenuId,tag:this._getProfileMenuItemTag(t),text:t,buttonGroupName:"pctClusterProfilesList",closePopupOnClick:!0});return this.builder.addPropertySetCallback(i,e=>this._handleProfileMenuItemPropertySet(e,t)),i}removeNoProfilesMenuItem(){var e=this.builder.tagToId("motwToolstrip.matlabTab.environment.parallel.popup.clusters.empty");return this.builder.isAnOrphan(e)||this.builder.remove(e),e}setDefaultProfile(e){var t=this._getProfileMenuItemTag(e),i=this.builder.tagToId(t);i?this.builder.set(i,"selected",!0):s.warn(e+" set as default.")}create(){this.builder.createPopupsFromConfig(n.removeHiddenElements(h)),this._buttonId=this.builder.create(p),this.builder.add(this._buttonId,this.builder.tagToId("motwToolstrip.matlabTab.environment.column2")),this._profileListMenuId=this.builder.tagToId(c),this.builder.addEventCallback(this._buttonId,this._handleDropDownButtonEvent,this),this.executor.getFactoryProfileNames().then(e=>this._handleFactoryProfileNamesReceived(e),e=>s.warn(e))}destroy(){this.builder.destroy(this._buttonId),h.popups.forEach(e=>{this.builder.destroy(this.builder.tagToId(e.tag))})}_handleDropDownButtonEvent(e){"dropDownPerformed"===e.eventType&&(this.executor.getProfileNames().then(e=>this._handleProfileNamesReceived(e),e=>s.error(e)),this.builder.showPopup(this._buttonId))}_isUserProfile(e){return this.factoryProfileNames.indexOf(e)<0}_getProfileMenuItemTag(e){const t=this._isUserProfile(e)?d:u;return`${c}.${e}.${t}`}_isProfileMenuItemUserProfile(e){return this.builder.get(e,"tag").substr(-d.length)===d}_handleProfileNamesReceived(e){const t=e[0],i=e[1],n=this.removeNoProfilesMenuItem();let o=this.builder.getChildrenIds(this._profileListMenuId);for(let e of o)this._isProfileMenuItemUserProfile(e)?this.builder.destroy(e):this.builder.set(e,"selected",!1);const r=t.filter(this._isUserProfile,this);r.length>0?r.forEach(this.addClusterProfileItem,this):0===this.supportedFactoryProfileNames.length&&this.builder.add(n,this._profileListMenuId),this.setDefaultProfile(i)}_handleProfileMenuItemPropertySet(e,t){"selected"===e.property&&e.newValue&&i.setDefaultProfileWithConfirmation(t)}}const p={tag:"motwToolstrip.matlabTab.environment.parallel",type:e.DROP_DOWN_BUTTON,text:r.Title,description:r.Description,hasDynamicPopup:!0,icon:"parallel_icon",quickAccessIcon:"parallel_icon",popupTag:l,mnemonic:"R"};return h.popups=[{tag:c,type:e.POPUP_LIST,children:[{tag:"motwToolstrip.matlabTab.environment.parallel.popup.clusters.empty",type:e.LIST_ITEM,enabled:!1,textOverride:a.ItemsNoClusters}]},{tag:l,type:e.POPUP_LIST,children:[{tag:"motwToolstrip.matlabTab.environment.parallel.popup.defaultCluster",text:a.ItemsDefaultCluster,type:e.LIST_ITEM_WITH_POPUP,popupTag:c},{tag:l+".discover",type:e.LIST_ITEM,actionId:t.PARALLEL.DISCOVER,textOverride:a.ItemsDiscover,showDescription:!1},{tag:l+".manageProfiles",type:e.LIST_ITEM,actionId:t.PARALLEL.PROFILE_MANAGER},{type:e.POPUP_LIST_SEPARATOR},{tag:l+".jobMonitor",type:e.LIST_ITEM,actionId:t.PARALLEL.JOB_MONITOR},{tag:l+".preferences",type:e.LIST_ITEM,actionId:t.PARALLEL.PREFERENCES,hidden:!0}]}],h}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(236),i(256),i(752),i(2506),i(8794),i(226),i(740),i(219),i(209),i(232),i(535)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([o,r],{PLOTS_CHANNEL:"/PlotsChannel",constructor:function(){this._plotsSectionId=this._uiBuilder.tagToId("motwToolstrip.plotsTab.plots"),this._selectionColumnId=this._uiBuilder.tagToId("motwToolstrip.plotsTab.selection.column1"),this._galleryPopupTag="motwToolstrip.plotsTab.plots.plotsGalleryPopup",this._buildGalleryAndPopup(),this._hookupOptionsRadioButtons(),this._createSwapVariablesButton(),this._galleryComplete=!1,this.commandWindowRTCInstance=this._commandWindow._rtcInstance,this._itemEventCallbacks={},this._itemExecutionStrings={},this._buildFooter(),n.subscribe("/datatools/selectionChanged",function(){this._uiBuilder.set(this._galleryId,"textOverlay",""),this._uiBuilder.set(this._galleryId,"displayState","busy")}.bind(this))},_insertToCommandWindow:function(e){this.commandWindowRTCInstance._forTestingOnly._pluginResolver.getDependency("cw.core.promptinput").setPromptInput(e,!0)},_createAndReturnContextMenuItems:function(e){var t=[];let i=dijit.getEnclosingWidget(e).tag.replace("_favorite",""),n={type:s.LIST_ITEM,tag:"insertToCommandWindow",text:"Insert To Command Window",iconOverride:"",descriptionOverride:"",callback:function(){this._insertToCommandWindow(this._itemExecutionStrings[i])}.bind(this)};return t.push(n),t},_matchesSelector:function(e,t){return!(!e||!t)&&e[e.msMatchesSelector?"msMatchesSelector":"matches"](t)},_buildGalleryAndPopup:function(){this._uiBuilder.createGalleryPopupFromConfig(a),this._galleryPopupId=this._uiBuilder.tagToId(this._galleryPopupTag);const e=`[data-tag='${this._galleryPopupTag}'] .Item *, [data-tag='motwToolstrip.plotsTab.plots.column1.plotsGallery'] .Item *`;let t=function(t,i){this._matchesSelector(i,e)&&t.addItems(this._createAndReturnContextMenuItems(i))}.bind(this);if(this._uiBuilder.tagToId("motwToolstrip")){this._uiBuilder.widgetByTag("motwToolstrip").addContextMenuCallback(e,t)}this._galleryId=this._uiBuilder.create({tag:"motwToolstrip.plotsTab.plots.column1.plotsGallery",galleryPopupTag:this._galleryPopupTag,parentId:this._uiBuilder.tagToId("motwToolstrip.plotsTab.plots.column1"),type:s.GALLERY,displayState:"busy",maxColumnCount:12,mnemonic:"P"})},reset:function(){this.inherited(arguments);var e=this._uiBuilder.tagToId("motwToolstrip.plotsTab.options.column1.reuseFigure");this._uiBuilder.set(e,"selected",!0)},_hookupOptionsRadioButtons:function(){var e,t;e=this._uiBuilder.tagToId("motwToolstrip.plotsTab.options.column1.reuseFigure"),t=this._uiBuilder.tagToId("motwToolstrip.plotsTab.options.column1.newFigure"),this._uiBuilder.set(e,"selected",!0);let i=this;this._uiBuilder.addPropertySetCallback(e,(function(e){"selected"===e.property&&!0===e.newValue&&(this._uiBuilder.set(t,"enabled",!1),new Promise((function(e,t){c.publish(i.PLOTS_CHANNEL,{eventType:"figureCreationChanged",createNewFigure:!1}),e()})).then((function(){i._uiBuilder.set(t,"enabled",!0)})))}),this),this._uiBuilder.addPropertySetCallback(t,(function(t){"selected"===t.property&&!0===t.newValue&&(this._uiBuilder.set(e,"enabled",!1),new Promise((function(e,t){c.publish(i.PLOTS_CHANNEL,{eventType:"figureCreationChanged",createNewFigure:!0}),e()})).then((function(){i._uiBuilder.set(e,"enabled",!0)})))}),this)},_createSwapVariablesButton:function(){this._swapVariablesButtonId=this._uiBuilder.create({tag:"motwToolstrip.plotsTab.selection.column1.variablesSwapped",type:s.PUSH_BUTTON,description:h.swapVariables,icon:"icon_swap_variables_16",enabled:!1}),this._swapVariablesCallback=this._uiBuilder.addEventCallback(this._swapVariablesButtonId,(function(){c.publish(this.PLOTS_CHANNEL,{eventType:"variablesSwapped"})}),this)},_buildFooter:function(){var e,t;e=this._uiBuilder.create({type:s.FOOTER}),t=this._uiBuilder.create({type:s.FOOTER_CELL,parentId:e}),this._plotsForSelectionRadioButtonId=this._uiBuilder.create({type:s.RADIO_BUTTON,tag:"motwToolstrip.plotsGallery.footer.plotsForSelection",text:i.substitute(h.plotsForSelection,[h.selection]),parentId:t,buttonGroupName:"plotsGalleryRadioButtonGroup"}),this._allPlotsRadioButtonId=this._uiBuilder.create({type:s.RADIO_BUTTON,tag:"motwToolstrip.plotsGallery.footer.allPlots",text:h.allPlots,parentId:t,buttonGroupName:"plotsGalleryRadioButtonGroup",selected:!0}),this._uiBuilder.addPropertySetCallback(this._plotsForSelectionRadioButtonId,(function(e){"selected"===e.property&&!0===e.newValue&&this._uiBuilder.set(this._galleryPopupId,"hideDisabledItems",!0)}),this),this._uiBuilder.addPropertySetCallback(this._allPlotsRadioButtonId,(function(e){"selected"===e.property&&!0===e.newValue&&this._uiBuilder.set(this._galleryPopupId,"hideDisabledItems",!1)}),this),this._uiBuilder.set(this._galleryPopupId,"footerId",e)},_handleGetPlotHierarchyResponse:function(e){try{e.forEach((function(e){e.isError&&d.error("Plot response error")}),this)}catch(t){d.error("Error while processing plots response: ",e,t)}},_handleGetPlotHierarchyError:function(e){d.error("Error received during plots request:"),d.dir(e)},_updateMessageReceived:function(e){"selectionChanged"===e.data.eventType?this._reactToSelectionChange(e.data.variables,e.data.items):"executionStringsUpdated"===e.data.eventType&&this._updateExecutionStrings(e.data.items)},populateGalleryItems:function(e){e.plots.forEach((function(e){var t=this._uiBuilder.tagToId("plots_"+e.category),i=u.getWorkerRoutingHost();i=i.substr(0,i.length-1),e.icon=i+e.icon,e.quickAccessIcon&&(e.quickAccessIcon=i+e.quickAccessIcon);var n=this._uiBuilder.tagToId(e.tag);this._uiBuilder.exists(n)?e.actionId=this._uiBuilder.get(n,"actionId"):e.enabled=!1,this._createGalleryItem(e,t)}),this),this._galleryComplete&&this._updateModel(e.plots,"add")},removeGalleryItems:function(e){0!==e.plots.length&&e.plots.forEach(function(e){let t=this._uiBuilder.tagToId(e.tag);this._uiBuilder.destroy(t)}.bind(this)),this._updateModel(e.plots,"remove")},postPopulateGalleryItems:function(e){var i=[];e.resourcesFilesData.forEach(function(e){e.resourcesFileContents.plots.forEach(function(e){i.push(e)}.bind(this))}.bind(this)),this._updateModel(i,"build"),this._galleryComplete=!0,c.subscribe(this.PLOTS_CHANNEL,t.hitch(this,this._updateMessageReceived)),this._postPopulateGallery()},_postPopulateGallery:function(){this.inherited(arguments),this._uiBuilder.set(this._galleryId,"textOverlay",h.selectVariableToPlot)},_updateModel:function(e,t){c.publish(this.PLOTS_CHANNEL,{eventType:"updateGallery",data:e,operation:t})},_reactToSelectionChange:function(e,t){this._galleryComplete&&(this._updateSelectionSection(e),this._updateEnabledPlots(t),this._updateExecutionStrings(t),this._updateSectionTitle(e),this._updatePlotsForSelectionRadioButton(e,t),this._updateTextOverlay(e,t),this._uiBuilder.refreshGallery(this._galleryId),this._uiBuilder.set(this._galleryId,"displayState","normal"))},_updateSelectionSection:function(e){if(this._uiBuilder.remove(this._swapVariablesButtonId),this._uiBuilder.set(this._swapVariablesButtonId,"enabled",!1),this._swapVariablesCallback&&(this._swapVariablesCallback.remove(),this._swapVariablesCallback=null),this._uiBuilder.getChildrenIds(this._selectionColumnId).forEach((function(e){"PushButton"!==this._uiBuilder.get(e,"type")&&this._uiBuilder.destroy(e)}),this),0===e.length)this._uiBuilder.create({type:s.LABEL,text:h.noVariableSelected,parentId:this._selectionColumnId});else if(1===e.length||3===e.length)e.map(t.hitch(this,this._buildVariableLabel));else if(2===e.length){var n=this._buildVariableLabel(e[0]);this._uiBuilder.remove(n),this._uiBuilder.add(n,this._selectionColumnId,0),this._uiBuilder.set(this._swapVariablesButtonId,"enabled",!0),this._uiBuilder.add(this._swapVariablesButtonId,this._selectionColumnId),this._swapVariablesCallback=this._uiBuilder.addEventCallback(this._swapVariablesButtonId,(function(){c.publish(this.PLOTS_CHANNEL,{eventType:"variablesSwapped"})}),this),this._buildVariableLabel(e[1])}else e.length>3&&(this._buildVariableLabel(e[0]),this._buildVariableLabel(e[1]),this._uiBuilder.create({type:s.LABEL,text:i.substitute(h.andMore,[e.length-2]),parentId:this._selectionColumnId}))},_buildVariableLabel:function(e){var t=l.IconTypeMap[e.type];return t||(t=l.IconTypeMap.UNKNOWN),this._uiBuilder.create({type:s.LABEL,icon:t,text:e.text,parentId:this._selectionColumnId})},_updateEnabledPlots:function(e){var t,i=this._uiBuilder.tagToId(this._galleryPopupTag);this._uiBuilder.getChildrenIds(i).forEach((function(e){this._uiBuilder.getChildrenIds(e).forEach((function(e){this._uiBuilder.set(e,"enabled",!1)}),this)}),this),e.forEach((function(e){t=this._getItemIdFromGalleryPopup(e.tag),this._uiBuilder.set(t,"enabled",!0)}),this)},_getItemIdFromGalleryPopup:function(e){return this._uiBuilder.tagToId(e)},_updateExecutionStrings:function(e){var t;e.forEach((function(e){t=this._getItemIdFromGalleryPopup(e.tag),this._itemEventCallbacks[e.tag]&&this._itemEventCallbacks[e.tag].remove(),this._itemExecutionStrings[e.tag]=e.executionString,this._itemEventCallbacks[e.tag]=this._uiBuilder.addEventCallback(t,(function(t){"itemPushed"===t.eventType&&this._executionService.authoringEval(e.executionString)}),this)}),this)},_updateSectionTitle:function(e){var t=h.plotsSectionTitle;e.length>0&&(t+=": "+this._convertVariablesToString(e)),this._uiBuilder.set(this._plotsSectionId,"title",t)},_convertVariablesToString:function(e){return e.map((function(e){return e.text})).join(", ")},_updatePlotsForSelectionRadioButton:function(e,t){var n="",o=!0;0===e.length?(n=i.substitute(h.plotsForSelection,[h.selection]),this._uiBuilder.set(this._allPlotsRadioButtonId,"selected",!0),o=!1):(n=i.substitute(h.plotsForSelection,[": "+this._convertVariablesToString(e)]),0===t.length?(o=!1,this._uiBuilder.set(this._allPlotsRadioButtonId,"selected",!0),this._uiBuilder.set(this._galleryPopupId,"hideDisabledItems",!1)):(this._uiBuilder.set(this._plotsForSelectionRadioButtonId,"selected",!0),this._uiBuilder.set(this._galleryPopupId,"hideDisabledItems",!0))),this._uiBuilder.set(this._plotsForSelectionRadioButtonId,"enabled",o),this._uiBuilder.set(this._plotsForSelectionRadioButtonId,"text",n)},_updateTextOverlay:function(e,t){var i;i=e.length>0?t.length>0?"":h.noPlotsForSelection:h.selectVariableToPlot,this._uiBuilder.set(this._galleryId,"textOverlay",i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(8795)],o=i.dj.d(n,(function(e,t){return{tag:"motwToolstrip.plotsTab.plots.plotsGalleryPopup",type:e.GALLERY_POPUP,galleryItemWidth:90,galleryItemRowCount:1,galleryItemTextLineCount:1,children:[{tag:"plots_category_line",type:e.GALLERY_CATEGORY,title:t.plots_category_line},{tag:"plots_category_stemstair",type:e.GALLERY_CATEGORY,title:t.plots_category_stemstair},{tag:"plots_category_bar",type:e.GALLERY_CATEGORY,title:t.plots_category_bar},{tag:"plots_category_scatter",type:e.GALLERY_CATEGORY,title:t.plots_category_scatter},{tag:"plots_category_graph",type:e.GALLERY_CATEGORY,title:t.plots_category_graph},{tag:"plots_category_pie",type:e.GALLERY_CATEGORY,title:t.plots_category_pie},{tag:"plots_category_histogram",type:e.GALLERY_CATEGORY,title:t.plots_category_histogram},{tag:"plots_category_polar",type:e.GALLERY_CATEGORY,title:t.plots_category_polar},{tag:"plots_category_geographic",type:e.GALLERY_CATEGORY,title:t.plots_category_geographic},{tag:"plots_category_contour",type:e.GALLERY_CATEGORY,title:t.plots_category_contour},{tag:"plots_category_image",type:e.GALLERY_CATEGORY,title:t.plots_category_image},{tag:"plots_category_3dsurf",type:e.GALLERY_CATEGORY,title:t.plots_category_3dsurf},{tag:"plots_category_volumetrics",type:e.GALLERY_CATEGORY,title:t.plots_category_volumetrics},{tag:"plots_category_vector",type:e.GALLERY_CATEGORY,title:t.plots_category_vector},{tag:"plots_category_analytic",type:e.GALLERY_CATEGORY,title:t.plots_category_analytic},{tag:"plots_category_control",type:e.GALLERY_CATEGORY,title:t.plots_category_control},{tag:"plots_category_curvefit",type:e.GALLERY_CATEGORY,title:t.plots_category_curvefit},{tag:"plots_category_dsp",type:e.GALLERY_CATEGORY,title:t.plots_category_dsp},{tag:"plots_category_finance",type:e.GALLERY_CATEGORY,title:t.plots_category_finance},{tag:"plots_category_imageProcessing",type:e.GALLERY_CATEGORY,title:t.plots_category_imageProcessing},{tag:"plots_category_map_projectedXY",type:e.GALLERY_CATEGORY,title:t.plots_category_map_projectedXY},{tag:"plots_category_map_geodata",type:e.GALLERY_CATEGORY,title:t.plots_category_map_geodata},{tag:"plots_category_signal_filterAnalysis",type:e.GALLERY_CATEGORY,title:t.plots_category_signal_filterAnalysis},{tag:"plots_category_signal_windowVis",type:e.GALLERY_CATEGORY,title:t.plots_category_signal_windowVis},{tag:"plots_category_signal_spectralEst",type:e.GALLERY_CATEGORY,title:t.plots_category_signal_spectralEst},{tag:"plots_category_stats",type:e.GALLERY_CATEGORY,title:t.plots_category_stats},{tag:"plots_category_parametricModel",type:e.GALLERY_CATEGORY,title:t.plots_category_parametricModel},{tag:"plots_category_nonParametricModel",type:e.GALLERY_CATEGORY,title:t.plots_category_nonParametricModel},{tag:"plots_category_modelVisualization",type:e.GALLERY_CATEGORY,title:t.plots_category_modelVisualization},{tag:"plots_category_modelSimulation",type:e.GALLERY_CATEGORY,title:t.plots_category_modelSimulation}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8796),i(8797),i(8798),i(8799)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/plotsgallery",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={plots_category_line:"MATLAB ライン プロット",plots_category_stemstair:"MATLAB ステム プロットと階段状プロット",plots_category_bar:"MATLAB 棒グラフ",plots_category_scatter:"MATLAB 散布図",plots_category_graph:"MATLAB グラフ プロット",plots_category_pie:"MATLAB 円グラフ",plots_category_histogram:"MATLAB ヒストグラム",plots_category_polar:"MATLAB 極座標プロット",plots_category_geographic:"MATLAB 地理プロット",plots_category_contour:"MATLAB 等高線図",plots_category_image:"MATLAB イメージ プロット",plots_category_3dsurf:"MATLAB 3-D 表面",plots_category_volumetrics:"MATLAB 容積測定",plots_category_vector:"MATLAB ベクトル場",plots_category_analytic:"MATLAB 解析プロット",plots_category_control:"CONTROL TOOLBOX プロット",plots_category_curvefit:"CURVE FITTING TOOLBOX プロット",plots_category_dsp:"DSP SYSTEM TOOLBOX プロット",plots_category_finance:"FINANCIAL TOOLBOX プロット",plots_category_imageProcessing:"IMAGE PROCESSING TOOLBOX プロット",plots_category_map_projectedXY:"MAPPING TOOLBOX: 投影された X-Y プロット",plots_category_map_geodata:"MAPPING TOOLBOX: 地理データ プロット",plots_category_signal_filterAnalysis:"SIGNAL PROCESSING TOOLBOX: フィルター解析",plots_category_signal_windowVis:"SIGNAL PROCESSING TOOLBOX: ウィンドウ可視化",plots_category_signal_spectralEst:"SIGNAL PROCESSING TOOLBOX: スペクトル推定",plots_category_stats:"STATISTICS AND MACHINE LEARNING TOOLBOX プロット",plots_category_parametricModel:"システム同定: パラメトリック モデル評価",plots_category_nonParametricModel:"システム同定: ノンパラメトリック解析",plots_category_modelVisualization:"システム同定: IDLTI モデル可視化",plots_category_modelSimulation:"システム同定: IDLTI モデル シミュレーション"}},function(e,t,i){e.exports={plots_category_line:"MATLAB 선 플롯",plots_category_stemstair:"MATLAB 줄기 및 계단 플롯",plots_category_bar:"MATLAB 막대 플롯",plots_category_scatter:"MATLAB 산점도 플롯",plots_category_graph:"MATLAB 그래프 플롯",plots_category_pie:"MATLAB 원형 차트",plots_category_histogram:"MATLAB 히스토그램",plots_category_polar:"MATLAB 극좌표 플롯",plots_category_geographic:"MATLAB 지리 플롯",plots_category_contour:"MATLAB 등고선 플롯",plots_category_image:"MATLAB 이미지 플롯",plots_category_3dsurf:"MATLAB 3차원 곡면",plots_category_volumetrics:"MATLAB 볼륨",plots_category_vector:"MATLAB 벡터장",plots_category_analytic:"MATLAB 해석 플롯",plots_category_control:"Control Toolbox 플롯",plots_category_curvefit:"Curve Fitting Toolbox 플롯",plots_category_dsp:"DSP System Toolbox 플롯",plots_category_finance:"Financial Toolbox 플롯",plots_category_imageProcessing:"Image Processing Toolbox 플롯",plots_category_map_projectedXY:"Mapping Toolbox: 투영된 X-Y 플롯",plots_category_map_geodata:"Mapping Toolbox: 지리 데이터 플롯",plots_category_signal_filterAnalysis:"Signal Processing Toolbox: 필터 분석",plots_category_signal_windowVis:"Signal Processing Toolbox: 윈도우 시각화",plots_category_signal_spectralEst:"Signal Processing Toolbox: 스펙트럼 추정",plots_category_stats:"Statistics and Machine Learning Toolbox 플롯",plots_category_parametricModel:"System ID: 모수적 모델 평가",plots_category_nonParametricModel:"System ID: 비모수적 분석",plots_category_modelVisualization:"System ID: IDLTI 모델 시각화",plots_category_modelSimulation:"System ID: IDLTI 모델 시뮬레이션"}},function(e,t,i){e.exports={plots_category_line:"MATLAB 线图",plots_category_stemstair:"MATLAB 针状图和阶梯图",plots_category_bar:"MATLAB 条形图",plots_category_scatter:"MATLAB 散点图",plots_category_graph:"MATLAB 图",plots_category_pie:"MATLAB 饼图",plots_category_histogram:"MATLAB 直方图",plots_category_polar:"MATLAB 极坐标图",plots_category_geographic:"MATLAB 地理图",plots_category_contour:"MATLAB 等高线图",plots_category_image:"MATLAB 影像图",plots_category_3dsurf:"MATLAB 三维曲面图",plots_category_volumetrics:"MATLAB 三维体图",plots_category_vector:"MATLAB 向量场图",plots_category_analytic:"MATLAB 分析图",plots_category_control:"Control Toolbox 绘图",plots_category_curvefit:"Curve Fitting Toolbox 绘图",plots_category_dsp:"DSP System Toolbox 绘图",plots_category_finance:"Financial Toolbox 绘图",plots_category_imageProcessing:"Image Processing Toolbox 绘图",plots_category_map_projectedXY:"Mapping Toolbox: X-Y 投影图",plots_category_map_geodata:"Mapping Toolbox: 地理位置数据绘图",plots_category_signal_filterAnalysis:"Signal Processing Toolbox: 滤波器分析",plots_category_signal_windowVis:"Signal Processing Toolbox: 窗口可视化",plots_category_signal_spectralEst:"Signal Processing Toolbox: 频谱估计",plots_category_stats:"Statistics And Machine Learning Toolbox 绘图",plots_category_parametricModel:"系统 ID: 参数化模型计算",plots_category_nonParametricModel:"系统 ID: 非参数化分析",plots_category_modelVisualization:"系统 ID: IDLTI 模型可视化",plots_category_modelSimulation:"系统 ID: IDLTI 模型仿真"}},function(e,t,i){e.exports={root:{plots_category_line:"MATLAB LINE PLOTS",plots_category_stemstair:"MATLAB STEM AND STAIR PLOTS",plots_category_bar:"MATLAB BAR PLOTS",plots_category_scatter:"MATLAB SCATTER PLOTS",plots_category_graph:"MATLAB GRAPH PLOTS",plots_category_pie:"MATLAB PIE CHARTS",plots_category_histogram:"MATLAB HISTOGRAMS",plots_category_polar:"MATLAB POLAR PLOTS",plots_category_geographic:"MATLAB GEOGRAPHIC PLOTS",plots_category_contour:"MATLAB CONTOUR PLOTS",plots_category_image:"MATLAB IMAGE PLOTS",plots_category_3dsurf:"MATLAB 3-D SURFACES",plots_category_volumetrics:"MATLAB VOLUMETRICS",plots_category_vector:"MATLAB VECTOR FIELDS",plots_category_analytic:"MATLAB ANALYTIC PLOTS",plots_category_control:"CONTROL TOOLBOX PLOTS",plots_category_curvefit:"CURVE FITTING TOOLBOX PLOTS",plots_category_dsp:"DSP SYSTEM TOOLBOX PLOTS",plots_category_finance:"FINANCIAL TOOLBOX PLOTS",plots_category_imageProcessing:"IMAGE PROCESSING TOOLBOX PLOTS",plots_category_map_projectedXY:"MAPPING TOOLBOX: PROJECTED X-Y PLOTS",plots_category_map_geodata:"MAPPING TOOLBOX: GEOGRAPHIC DATA PLOTS",plots_category_signal_filterAnalysis:"SIGNAL PROCESSING TOOLBOX: FILTER ANALYSIS",plots_category_signal_windowVis:"SIGNAL PROCESSING TOOLBOX: WINDOW VISUALIZATION",plots_category_signal_spectralEst:"SIGNAL PROCESSING TOOLBOX: SPECTRAL ESTIMATION",plots_category_stats:"STATISTICS AND MACHINE LEARNING TOOLBOX PLOTS",plots_category_parametricModel:"SYSTEM ID: PARAMETRIC MODEL EVALUATION",plots_category_nonParametricModel:"SYSTEM ID: NON-PARAMETRIC ANALYSIS",plots_category_modelVisualization:"SYSTEM ID: IDLTI MODEL VISUALIZATION",plots_category_modelSimulation:"SYSTEM ID: IDLTI MODEL SIMULATION"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(212),i(8801),i(8803)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e){this._messageRegistry=new n,this._communicationBridge=new i({_messageRegistry:this._messageRegistry}),this._communicationBridge.start()},registerHandler:function(e,t){this._messageRegistry._registerHandler(e,t)},sendToParent:function(e,t){this._communicationBridge._postMessageToParent(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(204),i(8802)],o=i.dj.d(n,(function(e,t,i,n){var o=window.opener?window.opener:window.parent;return e([],{constructor:function(e){if(!this._postMessageListeners){var o=window.addEventListener?"addEventListener":"attachEvent",r=window.addEventListener?"removeEventListener":"detachEvent",a="attachEvent"===o?"onmessage":"message",s=i.hitch(this,this.handleIngressData);this._postMessageListeners={add:function(){window[o](a,s,!1)},remove:function(){window[r](a,s)}},this._postMessageListeners.add()}this._queue=new t,this._securityFilter=new n,this._messageRegistry=e._messageRegistry},start:function(){this._hasStarted()||(this._queue.resolve(),this._queue=null)},stop:function(){this._queue=new t},destroy:function(){this._postMessageListeners.remove(),this._postMessageListeners=null},handleIngressData:function(e){this._handlePostMessages(e)},_handlePostMessages:function(e){this._securityFilter.isAllowed(e)&&(payload=this._preProcessIncomingMessage(e),payload&&payload.messages&&(this._sourceOrigin||(this._sourceOrigin=this._securityFilter.getParentOrigin(e)),this._messageRegistry.handle(payload).then(function(e){this._postMessageToParent("response",e)}.bind(this))))},_postMessageToParent:function(e,t){var i={type:e=e||"response",version:"0.0.1",uuid:t.uuid||this._generateUUID(),messages:Array.isArray(t.messages)?t.messages:[t]};o.postMessage(JSON.stringify(i),"BroadcastMessage"===e?"*":this._sourceOrigin)},_hasStarted:function(){return!this._queue},_preProcessIncomingMessage:function(e){var t=e.message?e.message:e.data;try{return t=JSON.parse(t)}catch(e){return}},_getAssumedParentOrigin:function(){return window.location.origin.replace(/gateway-[0-9]+[-\\.]/g,"")},_generateUUID:function(){return"xxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).toUpperCase()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){},isAllowed:function(e){return this._isOriginAuthorized(e)},getParentOrigin:function(e){return this._isOriginAuthorized(e)?e.origin:void 0},_isOriginAuthorized:function(e){return this._checkIfSameHost(e.origin)||this._checkIfMathWorksProperty(e.origin)},_checkIfSameHost:function(e){return e===window.location.protocol+"//"+window.location.host},_checkIfMathWorksProperty:function(e){return["matlab.com","mathworks.com","mathworks.cn"].forEach(function(t){if(this._endsWith(e,t))return!0}.bind(this)),!1},_checkIfExtensionOfParentOrigin:function(e){let t=e.replace(/gateway-[0-9]+[-\\.]/g,"");return window.location.origin===t},_endsWith:function(e,t){return e.length>=t.length&&e.slice(e.length-t.length,e.length)===t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(244),i(209)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e){this._waitingOnUnRegisteredHandlers=new Map,this._requestHandlerMap=new Map},_registerHandler:function(e,t){this._requestHandlerMap.set(e,t),this._waitingOnUnRegisteredHandlers.has(e)&&this._handleQueuedMessages(e,t)},handle:function(e){var n=[],o=[],r=new t;return e.messages.forEach(function(e){o.push(this._handleMessage(e.msgType,e))}.bind(this)),i(o).then((function(t){t.forEach((function(e){n.push(e)})),r.resolve({messages:n,uuid:e.uuid})})),r.promise},_handleMessage:function(e,i){if(!this._requestHandlerMap.has(e)){var o=new t;return this._waitingOnUnRegisteredHandlers.set(e,{deferred:o,inputParams:i}),o.promise}try{return this._requestHandlerMap.get(e)(i)}catch(i){return n.info("Task "+e+" has errors and can't be completed."),(new t).reject(i.message)}},_handleQueuedMessages:function(e,t){var i=this._waitingOnUnRegisteredHandlers.get(e);this._waitingOnUnRegisteredHandlers.delete(e),this._handleMessage(e,i.inputParams).then((function(){i.deferred.resolve(t)}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(766),i(540),i(1625),i(247)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=a.parseQueryString();return e([i],{_RETRY_LIMIT:6e4,_RETRY_INTERVAL:250,constructor:function(e,i,n=s.mss){this._getActionService=new t,this._getWorkerClient=new t,this._workerReady=i||Promise.resolve(),this._isMss=n,e.registerHandler("request/ConfigureUser",this._handleConfigureUser.bind(this)),e.registerHandler("request/Eval",this._handleEval.bind(this)),e.registerHandler("request/FEval",this._handleFEval.bind(this)),e.registerHandler("request/ExecuteAction",this._handleExecuteAction.bind(this)),e.registerHandler("request/SessionCreate",this._handleSessionCreate.bind(this)),window.addEventListener("topLeftButtonClicked",(function(){e.sendToParent("request",{msgType:"request/SetVisible",value:!1})}))},setWorkerClient:function(e){this._getWorkerClient.resolve(e)},setActionService:function(e){this._getActionService.resolve(e)},_handleEval:function(e){var i=new t;return e&&e.mcode?this._workerReady.then(()=>{r.send({Eval:{mcode:e.mcode}}).then((function(e){i.resolve({msgType:"response/Eval",retVal:e.Eval})}))}):i.resolve({msgType:"response/Eval",fault:"Invalid request parameters."}),i.promise},_handleFEval:function(e){var i=new t;return e&&e.function&&e.arguments&&e.nargout?this._workerReady.then(()=>{r.send({FEval:{function:e.function,arguments:e.arguments,nargout:e.nargout}}).then((function(e){i.resolve({msgType:"response/FEval",retVal:e.FEval})}))}):i.resolve({msgType:"response/FEval",fault:"Invalid request parameters."}),i.promise},_handleExecuteAction:function(e){var i=new t;return e&&e.actionId?this._getActionService.then(function(t){var n=t.getAction(e.actionId);this._performAction(t,n,i,this._RETRY_INTERVAL)}.bind(this)):i.reject({msgType:"response/ExecuteAction",fault:"Action Id is missing."}),i.promise},_performAction:function(e,t,i,n){try{n<this._RETRY_LIMIT?t&&t.enabled?(e.executeAction(t.id),i.resolve({msgType:"response/ExecuteAction"})):window.setTimeout(function(){this._performAction(e,t,i,n+this._RETRY_INTERVAL)}.bind(this),n):i.reject({msgType:"response/ExecuteAction",fault:"Action Id not avaliable."})}catch(e){i.reject({msgType:"response/ExecuteAction",fault:"Error occured while trying to execute Action"})}},_handleConfigureUser:async function(e){var i=new t,o=function(){i.resolve({msgType:"response/ConfigureUser",retVal:"Received"})},a=(e=e||{}).accessibleRoots,s=e.restrictNavigationOutsideMounts?[!0]:[!1],l=e.addonsReadOnlyRoot?"fullfile('"+e.addonsReadOnlyRoot+"')":"fullfile(userpath,'MATLAB Add-Ons')",c=e.isAddonsExplorerSupported||!1,d=!!e.resumePreviousSession,u=e.pageRefresh||!1;if(await this._getWorkerClient,this._isMss)this.emit("UserConfigured",this._convertToUserInfo(e)),u||await r.send({LoadSessionState:{includePath:!0,includePrefdir:!0,includeWorkspaceAndFigures:d}}),o();else{this._enableClientTypeMessageOnWorker();var h={};h.ClientType=n.createClientTypeMessage("jsd").ClientType,u||(h.SetUserDir={userDir:e.userDir||"/"},h.SetupPath={shadowFiles:!0}),h.SetUser={subjectId:e.subjectId||"",displayName:e.userName||""},await r.send(h),this._disableClientTypeMessageOnWorker(),this.emit("UserConfigured",this._convertToUserInfo(e)),u||await r.send({LoadSessionState:{includePath:!0,includePrefdir:!0,includeWorkspaceAndFigures:d}}),o(),a&&(a.push(e.userDir),r.send({FEval:[{function:"connector.internal.setTemporaryAccessibleRoots",arguments:e.accessibleRoots,nargout:0}]})),r.send({FEval:[{function:"connector.internal.setRestrictNavigationOutsideMounts",arguments:s,nargout:0}],Eval:[{mcode:"contentUrlPath = connector.addStaticContentOnPath('home', userpath); clear contentUrlPath;"}]}),this._setupAddOns(l,c),console.timeEnd("DefaultRequestHandler")}return i.promise},_setupAddOns:function(e,t){var i=[{mcode:"com.mathworks.addons_common.util.settings.InstallationFolderUtils.initializeWritableAndReadOnlyInstallLocation("+e+","+e+")"}];t||i.push({mcode:'settingsForAddons = settings;if not(settingsForAddons.matlab.addons.explorer.hasSetting("isExplorerSupported"));isExplorerSupportedSetting = settingsForAddons.matlab.addons.explorer.addSetting("isExplorerSupported");clear isExplorerSupportedSetting;end;settingsForAddons.matlab.addons.explorer.isExplorerSupported.PersonalValue = false;clear settingsForAddons;'}),r.send({Eval:i})},_handleSessionCreate:function(e){var i=new t;return this._getWorkerClient.then((function(t){t.onSessionCreated(e),i.resolve({msgType:"response/SessionConfiguration",retVal:"Received"})})),i.promise},_enableClientTypeMessageOnWorker:function(){o.removeMessageTypesFromEndPoint("ROUTER_LEAF_INSECURE_ENDPOINT","ClientType"),o.addMessagesTypesToEndPoint("ROUTER_LEAF_SECURE_ENDPOINT","ClientType")},_disableClientTypeMessageOnWorker:function(){o.addMessagesTypesToEndPoint("ROUTER_LEAF_INSECURE_ENDPOINT","ClientType"),o.removeMessageTypesFromEndPoint("ROUTER_LEAF_SECURE_ENDPOINT","ClientType")},_convertToUserInfo:function(e){return{userInfo:{firstName:e.displayName}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(8806),i(1678),i(278),i(235),i(210),i(211),i(217),i(206),i(279),i(214),i(209),i(219),i(359),i(8943),i(262),i(339),i(232),i(8948),i(1679),i(2696),i(2697),i(8949)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){var S=e("desktop_inspector.InspectorMain",[f],{inspectorManager:{},variableListeners:[],domNode:void 0,dialog:void 0,_busyIndicator:void 0,_serverCloseInitiated:!1,_isOpen:!1,_position:void 0,INSPECTOR_ID:"inspectorNonModalDialog",objectBrowser:void 0,_delayCloseTimer:void 0,constructor:function(e){o.logDebug("Inspector: Constructor"),this.inspectorManager={},this.variableListeners=[],this.domNode=e?e.domNode:void 0,this.allArgs=e,this.init(e)},init:function(e){o.logDebug("Inspector: initialize arguments");var t={treeContextMenu:new C,treeNodeRenderer:T};this.objectBrowser=new y(t),this.inspectorManager=i.createInspector({messageService:e?e.messageService:p.messageService,application:n.DEFAULT_INSPECTOR_APPLICATION,channel:"/PropertyInspector",editable:!0,cssSpecifier:"mw_type_Inspector",ignoreUpdates:!1,requestFocusOnStart:!0,dataTagRoot:"mw.datatools.inspector",createDefaultClipboardService:!1,objectBrowser:this.objectBrowser}),this.inspectorManager.destroyRecursive=function(){},this.inspectorManager.destroy=function(){},this._addListeners()},destroy:function(){this.inspectorManager.closeAllVariables()},_addListeners:function(){var e=this;e.inspectorManager.addEventListener("inspectorReady",(function(t){t.data.inspector=e;try{e.dispatchEvent("inspectorReady",e,t.data)}catch(e){o.logDebug(e.message)}})),e.inspectorManager.addEventListener("inspectorOpened",(function(t){e._clearCloseTimeout(),e._showInspector(),t.data.inspector=e;try{e.dispatchEvent("inspectorOpened",e,t.data)}catch(e){o.logDebug(e.message)}})),e.inspectorManager.addEventListener("inspectorClosed",(function(t){e._delayCloseTimer=setTimeout((function(){e._hideInspector(),t.data.inspector=e;try{e.dispatchEvent("inspectorClosed",e,t.data)}catch(e){o.logDebug(e.message)}}),1e3)})),e.inspectorManager.addEventListener("propertyChanged",(function(t){t.data.inspector=e;try{e.dispatchEvent("propertyChanged",e,t.data)}catch(e){o.logDebug(e.message)}})),e.inspectorManager.addEventListener("propertyAdded",(function(t){e._showInspector(),t.data.inspector=e;try{e.dispatchEvent("propertyAdded",e,t.data)}catch(e){o.logDebug(e.message)}})),e.inspectorManager.addEventListener("propertyRemoved",(function(t){e._showInspector(),t.data.inspector=e;try{e.dispatchEvent("propertyRemoved",e,t.data)}catch(e){o.logDebug(e.message)}})),e.inspectorManager.addEventListener("serverError",(function(t){r.displayErrorMessage(t.data.message),t.data.inspector=e;try{e.dispatchEvent("serverError",e,t.data)}catch(e){o.logDebug(e.message)}})),e.inspectorManager.addEventListener("resetData",(function(t){t.data.inspector=e;try{e.dispatchEvent("resetData",e,t.data)}catch(e){o.logDebug(e.message)}})),e.inspectorManager.addEventListener("inspectorDestroyed",(function(t){e._hideInspector(),t.data.inspector=e;try{e.dispatchEvent("inspectorDestroyed",e,t.data)}catch(e){o.logDebug(e.message)}}))},_clearCloseTimeout:function(){clearTimeout(this._delayCloseTimer)},start:function(){i.start()},stop:function(){},_showInspector:function(){var e=this;if(this.dialog&&!0===this._isOpen);else{var t=b({top:this.objectBrowser,bottom:this.inspectorManager});t.startup(),this.dialog=m.createDialog({title:g.propertyInspectorTitle,"data-testid":"inspector-floating-pane",closable:!0,draggable:!0,resizable:!0,position:this._position,className:"propertyInspector",content:t.domNode}),t.resize(),this.dialog.on("close",(function(){e._isOpen=!1,!1===e._serverCloseInitiated&&v.sendMessage({FEval:{function:"matlab.graphics.internal.propertyinspector.PropertyInspectorManager.setInspectorClosedManually",nargout:0,priority:1,dequeMode:"ppe"}},void 0,"DataToolsInspector")})),this.dialog.on("move",(function(t){e._position=t.position})),this.dialog.on("resize",(function(e){t.resize()})),this.dialog.domNode.id=this.INSPECTOR_ID,this._isOpen=!0}},_closeInspectorManager:function(){this._serverCloseInitiated||this.inspectorManager.closeAllVariables(),this._isOpen=!1},inspect:function(e){return this.inspectorManager.inspect(e),this},_hideInspector:function(){this.domNode?s.empty(this.domNode):this.dialog&&!0===this._isOpen&&(this._serverCloseInitiated=!0,this.dialog.close(),this._serverCloseInitiated=!1)}});S.getInstance=function(e){return S._instance?(e&&S._instance.init(e),S._instance):(S._instance=new S(e),S._instance)};return{getInstance:S.getInstance,inspect:function(){var e=S.getInstance();return e.inspect(arguments)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8807),i(1678),i(278),i(1562),i(8930),i(219),i(209),i(359),i(256)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d,u,h={},p=!1,f=0,g={};function m(){if(!u){u=new t({channel:"/InspectorPropertyManager"}),h[u.channel]=u;var e=new o({channel:"/InspectorPropertyManager",manager:u});u.provider=e}return u}function _(e){e.data&&(e=e.data),e=e.replace(/\r|\n|\t/g,""),e=JSON.parse(e),g={};for(var t=0;t<e.length;t+=1){var i=e[t],n=i.application,o=i.className,r=i.defaults;r=r.replace(/\\"/g,""),r=JSON.parse(r),n&&0!==n.length||(n="default"),o&&0!==o.length||(o="default"),g.hasOwnProperty(n)||(g[n]={}),g[n][o]=r}if(d&&d._updateManagerProxyViews?d._updateManagerProxyViews():v(),d)try{d.dispatchEvent("ProxyViewMapUpdated",d,{map:g})}catch(e){s.error(e)}}function v(){if(h)for(var e in h)if(h.hasOwnProperty(e)&&"/InspectorPropertyManager"!==e&&h[e].setProxyViews)try{h[e].setProxyViews(g)}catch(e){s.error(e)}}function b(e,t,i){n.logDebug("Create inspector, application: "+e+", channel = "+t),m()}function y(e,t,i){i||(i=m());var n={name:"DeleteInspector",application:e,channel:t};return a.publish("/InspectorPropertyManager",n),n}function C(e){if(!e&&e.channel)return null;var t=m();d&&d._deleteServerModel?d._deleteServerModel(e.application,e.channel,t):y(e.application,e.channel,t),delete h[e.channel]}function T(e){if(!e)return null;var i=m();e.manager&&(i=e.manager),d&&d._createServerModel?d._createServerModel(e.application,e.channel,i):b(e.application,e.channel);var n=new t(e);return e.provider=new o({channel:e.channel,manager:n}),n.setProxyViews(g),h[e.channel]=n,n}function E(e){return d&&d._getInspectorFactoryManager?d._getInspectorFactoryManager():m(),e||(e={}),e.channel||(f+=1,e.channel="/Inspector_"+f),e.application||(e.application=i.DEFAULT_INSPECTOR_APPLICATION),void 0===e.editable&&(e.editable=!0),e.messageService||(e.messageService=a.messageService),e.cssSpecifier=e.cssSpecifier||"mw_type_Inspector",e.dataTagRoot=e.dataTagRoot||"mw.datatools.inspector",h&&h[e.channel]&&!e.forceNewManager?h[e.channel]:((t=d&&d._createInspectorManager?d._createInspectorManager(e):T(e)).addEventListener("inspectorDestroyed",(function(e){e&&e.data&&e.data.inspector&&C(e.data.inspector)})),t);var t}function S(e){e&&!e.isError&&(p=!0)}function w(){n.runFactoryInitInMATLAB("internal.matlab.inspector.peer.InspectorFactory.startup",S)}function I(e,t,i,n){var o={name:"RegisterInspectorView",application:t,className:e,proxyViewClass:i,defaultObj:n};return a.publish("/InspectorPropertyManager",o),o}var A=e("inspector.peer.InspectorFactory",[l],{createInspector:E,deleteInspector:C,start:function(e){e?w():p=!0,a.subscribe("/InspectorPropertyManager",this.createProxyMapFromServerJSON),m(),a.publish("/InspectorPropertyManager",{name:"getData"})},isStarted:function(){return p},registerInspectorView:I,getDefaultsForDataType:function(e,t){if(g){var i=t,n=e;if(t&&0!==t.length||(i="default"),e&&0!==e.length||(n="default"),g.hasOwnProperty(i)){if(g[i].hasOwnProperty(n))return g[i][n];if(g[i].hasOwnProperty("default"))return g[i].default}if(g.hasOwnProperty("default")){if(g.default.hasOwnProperty(n))return g.default[n];if(g.default.hasOwnProperty("default"))return g.default.default}}},getProxyViewMap:function(){return g},createProxyMapFromServerJSON:_});return d||(d=new A),d.__unitTestMethods={getInspectorManager:function(){return u},setInspectorManager:function(e){u=e},getManagers:function(){return h},setManagers:function(e){h=e},getServerStarted:function(){return p},setServerInitialized:function(){return!1},getClientChannelCounter:function(){return f},setProxyViewMap:function(e){g=e},_getInspectorFactoryManager:m,_createProxyMapFromServerJSON:_,_updateManagerProxyViews:v,_createServerModel:b,_deleteServerModel:y,_deleteInspectorManager:C,_createInspectorManager:T,_getInspectorInstance:E,_serverStartedCallback:S,_startServer:w,_registerInspectorView:I},d}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1200),i(278),i(235),i(764),i(2692),i(339),i(589),i(219),i(8928)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e("inspector_peer.InspectorManager",[r,t],{proxyViewMap:{},_busyOverlay:void 0,errorDialog:null,constructor:function(e){(void 0===e.createDefaultClipboardService||e.createDefaultClipboardService)&&(e.clipboardService=s.getConnectorClipboard()),null==e.plugins?e.plugins=[{ticksValidator:c.getInstance()}]:e.plugins.push({ticksValidator:c.getInstance()}),this.allArgs=e},setProxyViews:function(e){this.proxyViewMap=e},getDefaultsForDataType:function(e,t){if(this.proxyViewMap){var i=t,n=e;if(t&&0!==t.length||(i="default"),e&&0!==e.length||(n="default"),this.proxyViewMap.hasOwnProperty(i)){if(this.proxyViewMap[i].hasOwnProperty(n))return this.proxyViewMap[i][n];if(this.proxyViewMap[i].hasOwnProperty("default"))return this.proxyViewMap[i].default}if(this.proxyViewMap.hasOwnProperty("default")){if(this.proxyViewMap.default.hasOwnProperty(n))return this.proxyViewMap.default[n];if(this.proxyViewMap.default.hasOwnProperty("default"))return this.proxyViewMap.default.default}}},inspect:function(e,t){if(e&&e.isInstanceOf&&e.isInstanceOf(o)){var i;e.propertySheet&&e.propertySheet!==o.DEFAULT_PROPERTY_SHEET||!e.className||(i=this.getDefaultsForDataType(e.className,this.application))&&i.propertySheet&&(e.propertySheet=i.propertySheet);var n=!1;if((!e.objects||Array.isArray(e.objects)&&e.objects.length<=0)&&e.className&&(i=this.getDefaultsForDataType(e.className,this.application))&&i.objects&&(e.objects=i.objects,n=!0),e.objectName||e.className||e.serverEvalFcn){this._requestInspectFromServer(e);var r=void 0===e.objects;if(e.objects&&Array.isArray(e.objects)&&e.objects.length<=0&&(r=!0),r||n)return void this._showSpinner()}}this.inherited(arguments)},_showSpinner:function(){this._busyOverlay&&this._busyOverlay.destroy&&this._busyOverlay.destroy(),this._busyOverlay=new a(a.SIZE.SMALL);var e=this.domNode;this._busyOverlay.set("target",e),this._busyOverlay.show()},serverReady:function(e,t){this.inherited(arguments),this._pendingObjectsToInspect&&this._requestInspectFromServer(this._pendingObjectsToInspect)},_requestInspectFromServer:function(e){if(this.provider&&this.provider.isReady()){var t={type:"inspect",objectName:e.objectName,workspaceID:e.workspaceID,className:e.className,serverEvalFcn:e.serverEvalFcn};i.logDebug("InspectorManager: _requestInspectFromServer"),this.provider.dispatchEventToServer("inspect",t),i.logDebug("InspectorManager: remote inspect called")}else this._pendingObjectsToInspect=e},_init:function(){this.inherited(arguments),this.channel="/PropertyInspector",this.editable=!0,this.cssSpecifier="mw_type_Inspector",this.workspace="debug",this.fixedColumnWidths=!1,this.ignoreUpdates=!1,this.requestFocusOnStart=!1,this.cssSpecifier="mw_type_Inspector",this.dataTagRoot="mw.datatools.inspector",this.inspectorDocument=null,this.allArgs&&(this.messageService=this.allArgs.messageService,this.channel=this.allArgs.channel||"/PropertyInspector",this.workspace=this.allArgs.workspace||"debug",void 0===this.allArgs.editable?this.editable=!0:this.editable=this.allArgs.editable,void 0===this.allArgs.ignoreUpdates?this.ignoreUpdates=!1:this.ignoreUpdates=this.allArgs.ignoreUpdates,this.dataTagRoot=this.allArgs.dataTagRoot||"mw.datatools.inspector",this.cssSpecifier=this.allArgs.cssSpecifier||"mw_type_Inspector",void 0===this.allArgs.autoStart?this.autoStart=!0:this.autoStart=this.allArgs.autoStart,void 0===this.allArgs.fixedColumnWidths?this.fixedColumnWidths=!1:this.fixedColumnWidths=this.allArgs.fixedColumnWidths,void 0===this.allArgs.requestFocusOnStart?this.requestFocusOnStart=!1:this.requestFocusOnStart=this.allArgs.requestFocusOnStart),this.topicBase="/ML"+this.channel,this.allArgs.topicBase=this.topicBase,this.peerDocuments=[],this.variableListeners=[],this.hasFocus=!1,this.focusedDocument=null,this.managerListeners=[],this._setupListeners()},_loadDataFromServerMessage:function(e){if("string"==typeof e.data){var t={data:JSON.parse(e.data)};t.data.objectsToInspect=t.data.objects,this._loadDataFromServer(t)}else this._loadDataFromServer(e)},_loadDataFromServer:function(e){if(i.logDebug("InspectorManager: _loadDataFromServer"),e&&e.data&&e.data.objectsToInspect&&e.data.propertySheet){var t=new o({propertySheet:e.data.propertySheet,objects:e.data.objectsToInspect,id:e.data.id,timerRunning:e.data.timerRunning,breadCrumbsData:e.data.breadCrumbsData?e.data.breadCrumbsData:void 0,treeData:e.data.treeData?e.data.treeData:void 0}),n=t.compareTo(this._previousIO),r=!0;if(n&&!n.totalChange&&n.objects&&0===n.objects.addedProperties.length&&0===n.objects.removedProperties.length)for(var a=0;a<n.objects.changedProperties.length;a+=1){var s=n.objects.changedProperties[a];i.logDebug("InspectorManager: updating property ["+s+"]"),r=!1,this.alphaWidget&&this.alphaWidget.updatePropertyValue(s,t.objects[0][s]),this.groupedWidget&&this.hasGroup&&this.groupedWidget.updatePropertyValue(s,t.objects[0][s])}r?this.inspect(t):i.logDebug("InspectorManager: no change"),this._busyOverlay&&this._busyOverlay.hide&&this._busyOverlay.hide()}},_addDocument:function(e){var t=this;try{var n=e;t.inspectorDocument=n,i.logDebug("InspectorManager: Document Added"),t.dispatchEvent("inspectorOpened",t,{inspector:t,source:"server"}),n.addEventListener("viewAdded",(function(e){try{t.dispatchEvent("inspectorOpened",t,{inspector:t,source:"server"})}catch(e){i.logDebug(e.message)}})),n.addEventListener("viewRemoved",(function(){i.logDebug("InspectorManager: View Removed");try{t.dispatchEvent("inspectorClosed",t,{inspector:t,source:"server"})}catch(e){i.logDebug(e.message)}l.unsubscribe(this.channel,"_handleInspectorEvents",this)}))}catch(e){i.logDebug("_addDocument error")}},_removeDocument:function(e){i.logDebug("InspectorManager: View Removed");try{this.dispatchEvent("inspectorClosed",this,{inspector:this,source:"server"})}catch(e){i.logDebug(e.message)}},_handleInspectorEvents:function(e){switch(e.data.type){case"propertyChanged":this._serverPropertyValueChanged(e);break;case"metaDataChanged":this._serverMetaDataChanged(e);break;case"propertyAdded":this._propertyAdded(e);break;case"propertyRemoved":this._propertyRemoved(e);break;case"serverError":this._serverError(e);break;case"resetData":this._resetData(e);break;case"focusLost":this._closeAlldropDowns(e);break;case"resetCache":this._resetObjectCache(e);break;case"selectChange":this._closedialog(e);break;case"closeInspector":this._removeDocument(e);break;case"setData":this._loadDataFromServerMessage(e.data);break;case"dataChangeStatus":if("error"===e.data.status||"noChange"===e.data.status){this._resetData(e),"error"===e.data.status&&this.dispatchEvent("serverError",this,{peerView:this,message:e.data.message});break}}},_closeAlldropDowns:function(e){this.alphaWidget&&this.alphaWidget.closeAlldropDowns&&this.alphaWidget.closeAlldropDowns(),this.groupedWidget&&this.hasGroup&&this.groupedWidget.closeAlldropDowns&&this.groupedWidget.closeAlldropDowns()},_closedialog:function(e){try{this.errorDialog.close()}catch(e){}},_resetObjectCache:function(e){this.clearObjectCache()},handleError:function(e){var t=n.displayErrorMessageWithSpecifiedWidth(e.data.message,330);this.errorDialog=t},_serverError:function(e){i.logDebug("InspectorManager: Server Error: "+e.message);try{this.dispatchEvent("serverError",this,{inspector:this,message:e.data.message})}catch(e){i.logDebug(e.message)}},_resetData:function(e){var t=e.data.oldValue;t&&"string"==typeof t&&-1!==t.indexOf("{")&&(t=JSON.parse(t)),this.alphaWidget&&this.alphaWidget.updatePropertyValue(e.data.property,t),this.groupedWidget&&this.hasGroup&&this.groupedWidget.updatePropertyValue(e.data.property,t)},_viewRestored:function(){try{this.dispatchEvent("viewRestored",this,{inspector:this,source:"server"})}catch(e){i.logDebug(e.message)}},_setupListeners:function(){var e=this;l.subscribe(this.channel,"_handleInspectorEvents",this),this.addEventListener("variableAdded",(function(t){var n=t.data.peerDoc;e.inspectorDocument=n,i.logDebug("InspectorManager: Document Added"),n.addEventListener("viewAdded",(function(t){try{e.dispatchEvent("inspectorOpened",e,{inspector:e,source:"server"})}catch(e){i.logDebug(e.message)}})),n.addEventListener("viewRemoved",(function(){i.logDebug("InspectorManager: View Removed");try{e.dispatchEvent("inspectorClosed",e,{inspector:e,source:"server"})}catch(e){i.logDebug(e.message)}}))})),this.addEventListener("variableRemoved",(function(){i.logDebug("InspectorManager: Document Removed");try{e.dispatchEvent("inspectorCleared",e,{inspector:e,source:"server"})}catch(e){i.logDebug(e.message)}}))},_serverMetaDataChanged:function(e){this._metaDataChanged(e)},_serverPropertyValueChanged:function(e){if(e.data.newValue&&e.data.propertyName&&(this.alphaWidget&&e.data.newValue!==this.alphaWidget.getCurrentPropertyValue(e.data.propertyName)||this.groupedWidget&&this.hasGroup&&e.data.newValue!==this.groupedWidget.getCurrentPropertyValue(e.data.propertyName))){var t=e.data.newValue;if(","==t.match(",$")&&(t=t.substring(0,t.length-1)),e.data.state){var i=JSON.parse(e.data.state);this.alphaWidget&&this.alphaWidget.updatePropertyState(e.data.propertyName,i),this.groupedWidget&&this.hasGroup&&this.groupedWidget.updatePropertyState(e.data.propertyName,i)}var n=JSON.parse(t);this.alphaWidget&&this.alphaWidget.updatePropertyValue(e.data.propertyName,n),n=JSON.parse(t),this.groupedWidget&&this.hasGroup&&this.groupedWidget.updatePropertyValue(e.data.propertyName,n),this._propertyValueChanged(e)}},_propertyValueChanged:function(e){this.inherited(arguments),this.inspectorDocument&&"server"!==e.data.source&&l.publish(this.channel,{name:"setData",data:{property:e.data.propertyName,value:e.data.newValue}})},_handleActionEvent:function(e){e.data.propertySheet&&delete e.data.propertySheet,e.data.channel=this.channel,l.publish(this.channel,{name:"actionEvent",data:e.data})},_propertyAdded:function(e){try{this.dispatchEvent("propertyAdded",this,{inspector:this,propertyName:e.data.property})}catch(e){i.logDebug(e.message)}},_propertyRemoved:function(e){try{this.dispatchEvent("propertyRemoved",this,{inspector:this,propertyName:e.data.property})}catch(e){i.logDebug(e.message)}}})}),e,t),e.exports=o},function(e,t,i){e.exports={defaultPropertySheetDisplayName:"${PropertyName}",defaultPropertySheetTooltip:"",defaultGroupName:"その他",defaultGroupDisplayName:"その他",defaultGroupTooltip:"これらは、その他のプロパティです",propertyInspectorTitle:"プロパティ インスペクター",search:"検索",clearSearch:"検索をクリア",alphaViewButton:"アルファベット順ビュー",groupViewButton:"グループ ビュー",noMatchesFound:"一致するデータが見つかりません",helpDocResults:"ヘルプ ドキュメンテーションの結果",timerWarning:"プロパティ インスペクターの外で行われた変更はプロパティ値に反映されません。値を更新するには、プロパティ インスペクターを閉じて再度開きます。",resetLabel:"自動",show:"表示",hide:"非表示",delete:"削除",dataLengthErrMsg:"テーブルで許容される最大の行数は ${0} です ",dataTipLabelProp:"ラベル",dataTipFormatProp:"形式",dataTipValueProp:"値",addNewDataTipRowLabel:"追加",placeHolderLabel:"ソースの追加",dataTipEditorAtLeastOne:"データ ヒントには少なくとも 1 つの行がなければなりません。",dataTipValueTooltip:"値は、'XData' などのデータ プロパティ名をもつ string スカラーまたは文字ベクトルでなければなりません。あるいは、ベクトルまたは関数ハンドルでなければなりません。",dataTipFormatTooltip:"形式は string スカラーまたは文字ベクトルのいずれかでなければなりません。",dataTipLabelTooltip:"ラベルは string スカラーまたは文字ベクトルのいずれかでなければなりません。",MustContainLabelOrValue:"データ ヒント行には少なくとも 1 つのラベルまたは 1 つの値がなければなりません。"}},function(e,t,i){e.exports={defaultPropertySheetDisplayName:"${PropertyName}",defaultPropertySheetTooltip:"",defaultGroupName:"其他",defaultGroupDisplayName:"其他",defaultGroupTooltip:"这些属性为其他属性",propertyInspectorTitle:"属性检查器",search:"搜索",clearSearch:"清除搜索",alphaViewButton:"字母顺序视图",groupViewButton:"分组视图",noMatchesFound:"未找到匹配项",helpDocResults:"帮助文档结果",timerWarning:"属性值不反映在属性检查器之外所做的更改。要刷新这些值,请关闭并重新打开属性检查器。",resetLabel:"自动",show:"显示",hide:"隐藏",delete:"删除",dataLengthErrMsg:"允许的最大表行数是 ${0} ",dataTipLabelProp:"标签",dataTipFormatProp:"格式",dataTipValueProp:"值",addNewDataTipRowLabel:"添加",placeHolderLabel:"添加源",dataTipEditorAtLeastOne:"数据提示必须至少包含一行。",dataTipValueTooltip:"值必须为具有数据属性名称的字符串标量或字符向量,例如 'XData',或者必须为向量或函数句柄。",dataTipFormatTooltip:"格式必须为字符串标量或字符向量。",dataTipLabelTooltip:"标签必须为字符串标量或字符向量。",MustContainLabelOrValue:"数据提示行必须至少有一个标签或一个值。"}},function(e,t,i){e.exports={defaultPropertySheetDisplayName:"${PropertyName}",defaultPropertySheetTooltip:"",defaultGroupName:"기타",defaultGroupDisplayName:"기타",defaultGroupTooltip:"기타 속성입니다.",propertyInspectorTitle:"속성 인스펙터",search:"검색",clearSearch:"검색 지우기",alphaViewButton:"사전순 보기",groupViewButton:"그룹 보기",noMatchesFound:"일치하는 항목이 없습니다.",helpDocResults:"도움말 문서 결과",timerWarning:"속성 인스펙터 외부에서 변경된 내용은 속성 값에 반영되지 않습니다. 값을 새로 고치려면 속성 인스펙터를 닫았다가 다시 여십시오.",resetLabel:"자동",show:"표시",hide:"숨기기",delete:"삭제",dataLengthErrMsg:"허용되는 최대 테이블 행 개수는 ${0}임 ",dataTipLabelProp:"레이블",dataTipFormatProp:"형식",dataTipValueProp:"값",addNewDataTipRowLabel:"추가",placeHolderLabel:"소스 추가",dataTipEditorAtLeastOne:"데이터팁에는 적어도 한 개의 행이 있어야 합니다.",dataTipValueTooltip:"값은 데이터 속성 이름이 있는 string형 스칼라 또는 문자형 벡터(예: 'XData')이거나 벡터 또는 함수 핸들이어야 합니다.",dataTipFormatTooltip:"형식은 string형 스칼라이거나 문자형 벡터여야 합니다.",dataTipLabelTooltip:"레이블은 string형 스칼라이거나 문자형 벡터여야 합니다.",MustContainLabelOrValue:"데이터팁 행에는 적어도 한 개의 레이블 또는 값이 있어야 합니다."}},function(e,t,i){e.exports={root:{defaultPropertySheetDisplayName:"${PropertyName}",defaultPropertySheetTooltip:"",defaultGroupName:"Miscellaneous",defaultGroupDisplayName:"Miscellaneous",defaultGroupTooltip:"These are Miscellaneous Properties",propertyInspectorTitle:"Property Inspector",search:"Search",clearSearch:"Clear search",alphaViewButton:"Alphabetical View",groupViewButton:"Group View",noMatchesFound:"No matches found",helpDocResults:"Help documentation results",timerWarning:"Property values do not reflect changes made outside of the Property Inspector. To refresh the values, close and reopen the Property Inspector.",resetLabel:"Auto",show:"Show",hide:"Hide",delete:"Delete",dataLengthErrMsg:"Maximum allowable table rows is ${0} ",dataTipLabelProp:"Label",dataTipFormatProp:"Format",dataTipValueProp:"Value",addNewDataTipRowLabel:"Add",placeHolderLabel:"Add Source",dataTipEditorAtLeastOne:"Data tips must have at least one row.",dataTipValueTooltip:"Value must be a string scalar or a character vector with the name of a data property, such as 'XData', or it must be a vector or a function handle.",dataTipFormatTooltip:"Format must be either a string scalar or character vector.",dataTipLabelTooltip:"Label must be either a string scalar or character vector.",MustContainLabelOrValue:"Data tip row must have at least a label or a value."},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t){e.exports='<div class="colorOrderRenderer" data-dojo-attach-point="colorOrderRenderer" data-tag="datatools.variableeditor.views.renderers.colorOrderRenderer">\n <div class="colorSwatch" data-datatools-renderer-attach-point="colorSwatch" data-tag="datatools.variableeditor.views.renderers.colorOrderRenderer.colorSwatch"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(211),i(231),i(235),i(1671),i(1672),i(1554),i(209)],o=i.dj.d(n,(function(e,t,n,o,r,a,s,l,c,d){return e("rendererseditors.renderers.GroupedColumnRenderer",[s,l],{_renderers:void 0,_rendererCompleteCallback:void 0,_savedArgs:void 0,constructor:function(i){if(this.addEventListener("renderersConstructed",t.hitch(this,this._onRenderersConstructed)),this._renderers=[],i&&i.table&&i.table.ColumnModelProperties&&i.renderedObject&&i.renderedObject.col&&i.renderedObject.value){for(var n=i.renderedObject,o=parseInt(n.row),r=parseInt(n.col),a=i.table,s=JSON.parse(n.value),d=this,u=function(t){var i=t.declaredClass;t.isInstanceOf(l)||e.safeMixin(t,new l),t.isInstanceOf(c)||e.safeMixin(t,new c),t.declaredClass=i,t._setRendererProperties(s[h],a),t._setupEventListeners(d),d._styleRendererDomNodes(t,o,r,h,s.length),d._renderers.push(t),parseInt(t.domNode.dataset.idx)===s.length-1&&d.dispatchEvent("renderersConstructed",d,{})},h=0;h<s.length;h+=1)t.mixin(s[h],{row:o,col:r,columnIndex:h}),this._createRendererObjectForGroup(s[h],"groupedcolumnrenderer",i,a,u);this._savedArgs=i}},_createRendererObjectForGroup:function(e,t,n,o,r){var a=null,s=this.getCellIndices(e),l=s.row,c=s.column;try{var u=o.getCellPropertyValue(l,c,t,e);if(!u)return null;Promise.resolve().then((function(){var e=[require(u,null,!1)];Promise.all(i.dj.w(e)).then(function(e){return function(e){a=new e(n),r&&"function"==typeof r&&r(a)}.apply(null,i.dj.u(e))}.bind(this))})).catch(i.oe)}catch(e){d.error(e)}return a},setState:function(e){this.domNode&&(this._setupDomClasses(e),this.inherited(arguments))},_onRenderersConstructed:function(){this._renderers.length>0&&(this._renderersConstructed=!0),this._addRenderersToDomNode()},_addRenderersToDomNode:function(){if(this._renderers.length>0)for(var e=0;e<this._renderers.length;e+=1)this.domNode&&this._renderers[e].domNode&&(this.domNode.appendChild(this._renderers[e].domNode),this._renderers[e].startup())},_setupDomClasses:function(){this.addCSSClasses(["groupedColumnRenderer"],this.domNode)},_setRendererProperties:function(e,i,n){if(!e.isInvalidCache){var o=this.getCellIndices(e),a=o.row,s=o.column,l=o.columnIndex,c=JSON.parse(e.value);if(this.setColumnIndex&&this.setColumnIndex(l),this.setRow&&this.setRow(a),this.setColumn&&this.setColumn(s),this.getState){var d=this.populateRendererState(a,s,e,i);this.setState(d)}if(this._renderers.length>0){for(var u,h,p=0;p<c.length;p+=1){var f=this._renderers[p];u=void 0,h="",f&&(u=r.getEnclosingWidget(f.domNode))&&(h=u.declaredClass);var g=i.getCellPropertyValue(a,s,"groupedcolumnrenderer",e),m=t.mixin({row:a,col:s,colIndex:p},c[p]);if(this.comparePathToDeclaredClass(g,h))this._renderers[p]._setRendererProperties(m,i,n);else{var _;f&&(_=f.domNode);var v=this._getRendererCreationCompletionCallback(c,a,s,p,i,n,_);this._createRendererObjectForGroup(m,"groupedcolumnrenderer",this._savedArgs,i,v),u&&u.destroy()}}if(c.length<this._renderers.length){for(var b=this._renderers.length-1;b>=c.length;b-=1)this.domNode.removeChild(this._renderers[b].domNode),this._renderers.splice(b);for(var y=0;y<this._renderers.length;y+=1)this._styleRendererDomNodes(this._renderers[y],a,s,y,c.length)}}}},_getRendererCreationCompletionCallback:function(t,i,n,r,a,s,d){var u=this;return function(h){var p=h.declaredClass;h.isInstanceOf(l)||e.safeMixin(h,new l),h.isInstanceOf(c)||e.safeMixin(h,new c),h.declaredClass=p,h._setRendererProperties(t[r],a,s),h._setupEventListeners(u),u._renderers[r]=h,d?o.place(h.domNode,d,"replace"):u.domNode.appendChild(h.domNode),h.startup(),u._styleRendererDomNodes(h,i,n,r,t.length)}},_styleRendererDomNodes:function(e,t,i,o,r){for(var s=100/r+"%",l=0;l<this._renderers.length;l+=1)n.set(this._renderers[l].domNode,"width",s);o===r-1&&(s=100-100/r*(r-1)+"%"),n.set(e.domNode,"width",s),n.set(e.domNode,"height","100%"),e.domNode.setAttribute("data-row",t),e.domNode.setAttribute("data-col",i),e.domNode.setAttribute("data-idx",o),a.addToClassList(e.domNode,"row_"+t),a.addToClassList(e.domNode,"col_"+i),a.addToClassList(e.domNode,"idx_"+o),a.addToClassList(e.domNode,"variableEditorTableCell"),0===o&&a.addToClassList(e.domNode,"firstCell"),o===r-1?(a.addToClassList(e.domNode,"lastCell"),o>0&&a.removeFromClassList(this._renderers[o-1].domNode,"lastCell")):o>0&&a.addToClassList(e.domNode,"middleCell"),a.removeFromClassList(e.domNode,"cell")},getCellIndices:function(e){var t=-1,i=-1,n=-1;return e&&void 0!==e.row&&(t=parseInt(e.row)),e&&void 0!==e.col&&(i=parseInt(e.col)),e&&void 0!==e.columnIndex&&(n=parseInt(e.columnIndex)),{row:t,column:i,columnIndex:n}},postCreate:function(){this._renderersConstructed&&this._addRenderersToDomNode(),this.inherited(arguments),this._removeListeners()},startup:function(){if(this._renderers.length>0)for(var e=0;e<this._renderers.length;e+=1)this._renderers[e].startup&&this._renderers[e].startup()},onValueChanged:function(e){var i=null;e.data.editor?i=e.data.editor:e.data.renderer&&(i=e.data.renderer),null!==i&&t.mixin(e.data,{index:this._renderers.indexOf(i)}),this.dispatchEvent(e.type,this,e.data)},onEditingStarted:function(e){this.dispatchEvent(e.type,this,e.data)},onEditingStopped:function(e){this.dispatchEvent(e.type,this,e.data)},onMouseDown:function(e){t.mixin(e.data,{index:this._renderers.indexOf(e.data.renderer)}),this.dispatchEvent(e.type,this,e.data)},onMouseEnter:function(e){t.mixin(e.data,{index:this._renderers.indexOf(e.data.renderer)}),this.dispatchEvent(e.type,this,e.data)},onMouseUp:function(e){this.dispatchEvent(e.type,this,e.data)},_setReadOnly:function(){},comparePathToDeclaredClass:function(e,t){var i=e.split("/"),n=t.split("."),o=!0;if(i.length===n.length)for(var r=0;r<i.length&&o;r+=1)o=i[r]===n[r];else o=!1;return o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(312)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.renderers._TooltipMixin",[],{_tooltipWidget:null,setToolTipText:function(e){null!=e&&""!==e&&(this._tooltip=e,this._updateTooltip())},_getNewTooltip:function(e,t){return new i({connectId:[e],label:t,hideDelay:100,showDelay:1500,position:["below","after","above","before"]})},_updateTooltip:function(){var e="function"==typeof this._tooltip?this._tooltip():this._tooltip;if(this._tooltipWidget)this._tooltipWidget.label=e;else{this._tooltipWidget=this._getNewTooltip(this.domNode,e);var i=this;t(this.domNode,"focusin",(function(){i._tooltipWidget.set("state","DORMANT")}))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.renderers._VERendererStyleMixin",[],{_classListKey:"classList",updateCellStyles:function(e,t,i,n){var o=this._getCellModelStyle(e,t,i,n);if(o)for(var r in o)if(o.hasOwnProperty(r)){var a=this.getStyleNode(r);a&&a.style[r]!==o[r]&&(a.style[r]=o[r])}this._updateNodeClasses(e,t,i,a,n)},_updateTableClasses:function(e,t){if(e&&t&&t.getTableModelProperty){var i=t.getTableModelProperty(this._classListKey);this._modifyCellClassList(e,i,e._previousTableClassList),e._previousTableClassList=i}},_updateRowClasses:function(e,t,i){if(e&&i&&i.getRowModelProperty&&t>=0){var n=i.getRowModelProperty(t,this._classListKey);this._modifyCellClassList(e,n,e._previousRowClassList),e._previousRowClassList=n}},_updateColumnClasses:function(e,t,i){if(e&&i&&i.getColumnModelProperty&&t>=0){var n=i.getColumnModelProperty(t,this._classListKey);this._modifyCellClassList(e,n,e._previousColumnClassList),e._previousColumnClassList=n}},_updateCellClasses:function(e,t,i,n,o){if(e&&t>=0&&i>=0&&n&&o&&o.getCellPropertyValue){var r=o.getCellPropertyValue(t,i,this._classListKey,n);this._modifyCellClassList(e,r,e._previousCellClassList),e._previousCellClassList=r}},_updateNodeClasses:function(e,t,i,n,o){this._updateTableClasses(n,o),this._updateRowClasses(n,e,o),this._updateColumnClasses(n,t,o),this._updateCellClasses(n,e,t,i,o)},_modifyCellClassList:function(e,i,n){n||(n=[]),i&&Array.isArray(i)&&t.add(e,i);var o=this._getDifferenceBetweenClassLists(n,i);o&&Array.isArray(o)&&t.remove(e,o)},_getDifferenceBetweenClassLists:function(e,t){return e&&t?e.filter((function(e){return t.indexOf(e)<0})):[]},_getCellModelStyle:function(e,t,i,n){var o={};if(n&&n.getCellPropertyValue&&e>=0&&t>=0){var r=n.getCellPropertyValue(e,t,"fontFamily",i),a=n.getCellPropertyValue(e,t,"fontSize",i),s=n.getCellPropertyValue(e,t,"fontStyle",i),l=n.getCellPropertyValue(e,t,"fontWeight",i),c=n.getCellPropertyValue(e,t,"color",i),d=n.getCellPropertyValue(e,t,"backgroundColor",i),u=n.getCellPropertyValue(e,t,"style",i);if(n.rowHeight=Math.max(a?parseInt(a)*n.lineSpacing:n.rowHeight,n.minRowHeight),o={fontFamily:r||"",fontSize:a||"",fontStyle:s||"",fontWeight:l||"",color:c||"",backgroundColor:d||""},u)u.split(";").forEach((function(e){var t=e.split(":");t&&t[0]&&t[1]&&(o[t[0]]=t[1])}))}return o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(376),i(1160)],o=i.dj.d(n,(function(e,t,i,n,o){return e("rendererseditors.editors.ArrayOfDatesTextBoxEditor",[n],{_dateSettingsPlugin:void 0,_displayFormat:void 0,_locale:void 0,postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-tag","datatools.variableeditor.views.editors.ArrayOfDatesTextBoxEditor"),this.plugins&&this.plugins.dateSettingsPlugin&&(this._dateSettingsPlugin=this.plugins.dateSettingsPlugin,this._displayFormat=this._dateSettingsPlugin.datetimeDefaultDateFormat,this._locale=this._dateSettingsPlugin.datetimeDisplayLocale,i(this._dateSettingsPlugin,"settingsUpdated",t.hitch(this,"_settingsChanged")))},_applyFormatting:function(e,t){return void 0===t?(this.currentValue=e,this._formattingValue(e)):e},_settingsChanged:function(e){this._displayFormat=e.datetimeDefaultDateFormat,this._locale=e.datetimeDisplayLocale;var t=this._formattingValue(this.currentValue);this._setUIValue(t)},_formattingValue:function(e){var t=[];Array.isArray(e.Year)||(e.Year=[e.Year],e.Month=[e.Month],e.Day=[e.Day]);var i=e.Year.length;if(this._displayFormat&&this._locale)var n={datePattern:this._displayFormat,locale:this._locale};for(var r=0;r<i;r+=1)if(null!==e.Year[r]&&null!==e.Month[r]&&null!==e.Month[r]){var a,s=new Date(e.Year[r],e.Month[r]-1,e.Day[r]);if(s.setFullYear(e.Year[r]),n)n.locale=o.adjustLocale(n.locale),a=o.format(s,n);else{var l=s.toDateString().split(" ");a=l[2]+"-"+l[1]+"-"+l[3]}t.push(a)}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(235),i(376)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.editors.ArrayOfEnumsTextBoxEditor",[i],{_applyFormatting:function(e,t){if(void 0===t||"server"===t){var i=this.getState().rowNames,n=[],o=0;for(Array.isArray(e)||(e=[e]),o=0;o<e.length;o+=1)n[o]=i[e[o]-1];return n.join()}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(235),i(2681)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.editors.ArrayOfNumbersTextBoxEditor",[i],{_getEmptyReturnValue:function(){return[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(235),i(376)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.editors.ArrayOfStringsTextBoxEditor",[i],{_commit:function(){var e,t=this._getUIValue();if(""===t)e=[];else{if(0===t.indexOf("{")&&t.indexOf("}")===t.length-1){var i=t.indexOf(",")>0||t.indexOf(";")>0,n=t.match(/'/g)||[];i&&n.length%2==0&&(t=t.substring(1,t.length-1).replace(/'/g,""))}1===(e=t.split(",")).length&&e[0].indexOf(";")>0&&(e=e[0].split(";")),e=e.map((function(e){return e.trim()}))}null!=e&&this.hasValueChanged(e)?this.setValue(e,"client"):this._setUIValue(this._originalValue),null!=(e=this._getUIValue())&&this.hasValueChanged(e)&&(this._originalEditValue=this._editValue,this._editValue=e)},setCursorPosition:function(){var e=this._getUIValue().length;t.selectRange(this._inputBox.inputNode,e,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(232),i(243),i(206),i(376)],o=i.dj.d(n,(function(e,t,i,n,o){return e("rendererseditors.editors.BaseOpenvarEditor",[o],{_openvarButton:void 0,_setupInputNode:function(){this.inherited(arguments),this.channel&&(this._openvarButton=new i({text:"",icon:"edit",disabled:!this._editable}),this.own(this._openvarButton),this.domNode.appendChild(this._openvarButton.domNode),this.addCSSClasses("openVarButton",this._openvarButton.domNode),this._openvarButton.domNode.setAttribute("data-tag",this.createDataTag("openvarbutton")),this._openvarButton.domNode.setAttribute("data-var-name",this.propertyName),this.own(n(this._openvarButton,"click",this._objectSelected.bind(this))))},_objectSelected:function(e){if(this.channel){e.stopPropagation();var t='internal.matlab.inspector.editors.InspectorObjectPropertyEditor.editProperty("'+this.channel+'", "'+this.propertyName+'", '+e.screenX+", "+e.screenY+", "+this.editable+");";if(this.getState().openvarUsingBaseVE){t="openvar('"+this.valueObject.variableName+"."+this.propertyName+"');"}this._makeRemoteCall(t)}},_makeRemoteCall:function(e){t.sendMessage({Eval:{mcode:e}},[],"openvarEditor")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(367),i(446),i(463),i(8822)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t,n],{templateString:o,_enumeratedValues:null,_icon:null,_button:null,setState:function(e){if(this.inherited(arguments),!e.enumeratedValues)throw new Error("Expected enumeratedValues for Editor State");if(!e.icon)throw new Error("Expected icons for Editor State");if(2!==e.enumeratedValues.length)throw new Error("Expected enumeratedValues to be exactly two");this._commitOnBlur=!1,this._editable=!1,this._enumeratedValues=this._state.enumeratedValues,this._icon=this._state.icon,this._createButton()},postCreate:function(){this.inherited(arguments),this._createButton()},setValue:function(e,t){this._value=e,this._setUIValue(e.Value?e.Value:e)},_setUIValue:function(e){if(this._button){var t=this._enumeratedValues[1]===e;this._button.set("checked",t)}},_getUIValue:function(){return this._value},_createButton:function(){if(!this._button&&this.domNode){if(this._icon&&this._icon.IconURL)this._button=new i({icon:this._icon.IconURL,checked:this._value===this._enumeratedValues[1],description:"'"+this._enumeratedValues[1]+"'"});else{if(!this._enumeratedValues)return;this._button=new i({checked:this._value===this._enumeratedValues[1],text:this._enumeratedValues[1]})}this._button.domNode.setAttribute("data-tag",this.createDataTag("BinaryToggleButton")),this.own(this._button,this._button.on("change",function(e){var t;(this.dispatchEvent("editingStarted",this,{editor:this,currentValue:this._value,currentState:this._state}),e.mwEventData.newValue!==this._value)&&(t=this._button.get("checked")?this._enumeratedValues[1]:this._enumeratedValues[0],this.dispatchEvent("valueChanged",this,{renderer:this,oldValue:this._value,newValue:t}))}.bind(this))),this._button.placeAt(this.domNode),this._button.startup()}}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="binaryToggleButtonEditor" data-dojo-attach-point="binaryToggleButtonEditor" data-tag="datatools.variableeditor.views.editors.binaryToggleButtonEditor"></div>\n'},function(e,t,i){var n,o;n=[i(203),i(235),i(376)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.editors.CharEditor",[i],{_applyFormatting:function(e,i){return"server"===i&&(e=t.formatString(e)),e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(206),i(235),i(367),i(308),i(740),i(238)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e("rendererseditors.editors.CheckBoxEditor",[r],{_checkBox:void 0,setValue:function(e){var t=e;e&&e.hasOwnProperty("value")&&(t=e.value,this._value===t)||(e=t=o.getLogicalValue(t,!1),this._checkBox&&this._setCheckboxValue(t),this.inherited(arguments))},_handleMouseUp:function(){this._focus()},_focus:function(){this._checkBox&&this._checkBox.focusNode&&this._checkBox.focusNode.focus&&(l.curNode!==this._checkBox.focusNode&&l.focus(this._checkBox.focusNode),this._checkBox.focusNode.focus())},edit:function(){},_inPlaceEdit:function(){},setState:function(e){this.domNode&&(this._checkBox||this._setupCheckBox(),this._setupDomClasses(e),this.inherited(arguments))},_setCheckboxValue:function(e){this._checkBox.set("checked",e),this._checkBox.set("value",e),this._checkBox.focusNode&&this._checkBox.focusNode.setAttribute("value",e)},_setupDomClasses:function(e){var t=e?e.dataType?e.dataType:e.class:"logical",i=!!e&&e.isTemporaryValue;this._applyCssClass(t,i,!1,this._checkBox.domNode),this.addCSSClasses(s.ClassTypeMap[t],this.domNode),this.addCSSClasses("cellRenderer",this.domNode),this.isEditable()?this.removeCSSClasses("variableEditorNotEditable",this.domNode):this.addCSSClasses("variableEditorNotEditable",this.domNode)},_setupCheckBox:function(){this._checkBox=new a({checked:o.getLogicalValue(this._value,!1),disabled:void 0!==this._editable&&!this._editable,tag:this.createDataTag("CheckBoxRenderer","cell"),width:16,height:16}),this._checkBox.on("click",t.hitch(this,"_commitValue")),i.empty(this.domNode),this.domNode.appendChild(this._checkBox.domNode),this._checkBox.startup(),this.own(this._checkBox)},postCreate:function(){this._checkBox||this._setupCheckBox(),this.inherited(arguments)},_commitValue:function(e){!0!==this._beingDestroyed&&this.setValue(this._checkBox.get("checked"))},editOverride:function(e){if(!this._editing){var t=o.getLogicalValue(e,!1);this._setCheckboxValue(t),this.edit()}},cancelEditing:function(){if(this._editing){var e=o.getLogicalValue(this._originalValue,!1);this._setCheckboxValue(e),this.inherited(arguments)}},_getUIValue:function(){return this._checkBox.get("checked")},_setUIValue:function(e){this._setCheckboxValue(e)},_setReadOnly:function(e){this._checkBox&&(!0===e?this._checkBox.set("disabled",!0):this._checkBox.set("disabled",!1))}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="CheckboxListEditor">\n\n <div class="CheckboxListEditor-top-container">\n <div class="CheckboxListEditor-selectAll" data-dojo-attach-point="_selectAll">\n <div class="CheckboxListEditor-clearAll" data-dojo-attach-point="_clearAll">\n <div class="CheckboxListEditor-table-container" data-dojo-attach-point="_tableContainer">\n </div>\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(222),i(206),i(350),i(315)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{constructor:function(e,t){this._tableData=this._generateTableData(e,t),this._oldTableData=JSON.parse(JSON.stringify(this._tableData)),this._dataStore=n.create(this._tableData,Object.assign({},{type:o.TABLE})),this._pausableDataChangeHandler=i.pausable(this._dataStore,"dataChanged",this._handleDataChange.bind(this))},getDataStore:function(){return this._dataStore},getTableData:function(){return this._tableData},setDataStore:function(e){this._dataStore.replaceAll(e)},setTableData:function(e,t){this._pausableDataChangeHandler.pause();var i=this._generateTableData(e,t);this._tableData=i,this.setDataStore(this._tableData),this._oldTableData=JSON.parse(JSON.stringify(this._tableData)),this._pausableDataChangeHandler.resume()},_generateTableData:function(e,t){for(var i=[],n=0;n<t.length;n++)i.push([{checked:e[n]},t[n]]);return i},_handleDataChange:function(e){var t=e.rangeList[0].rows.start,i=e.rangeList[0].columns.start,n=this._tableData[t][i].checked,o=this._oldTableData[t][i].checked;n!==o&&this.emit("tableModelUpdated",{eventData:{rowIdx:t,oldValue:o,newValue:n}})}})}),e,t),e.exports=o},function(e,t,i){e.exports={colorOrderEditorAddNew:"色の追加",colorOrderEditorAtLeastOne:"ColorOrder は、少なくとも 1 つの値を含まなければなりません。",errorTitle:"プロパティのエラー",colormapEditorCustom:"カスタム",datepickerPlaceHolder:"日付を選択",filePickerEditorBrowse:"参照",lineStyleSolid:"- 実線",lineStyleDashed:"-- 破線",lineStyleDotted:": 点線",lineStyleDashDot:"-.一点鎖線",lineStyleNone:"なし",markerStylePlus:"+ プラス記号",markerStyleCircle:"o 円",markerStyleAsterisk:"* アスタリスク",markerStylePoint:".点",markerStyleCross:"x 十字",markerStyleSquare:"s 正方形",markerStyleDiamond:"d 菱形",markerStyleUpTriangle:"^ 上向き三角形",markerStyleDownTriangle:"v 下向き三角形",markerStyleRightTriangle:"> 右向き三角形",markerStyleLeftTriangle:"< 左向き三角形",markerStylePentagram:"p 星形五角形",markerStyleHexagram:"h 星形六角形",markerStyleNone:"なし",orderButtonsAdd:"追加",orderButtonsRemove:"削除",orderButtonsUp:"上",orderButtonsDown:"下",defaultLabel:"既定",exactlyLabel:"厳密",integersLabel:"整数",scientificLabel:"科学的",customLabel:"カスタム",decimalsLabel:"位小数",viewFormatErrorText:"正の整数のみが許可されています。",scaleColorTableColorColumnHeader:"色",scaleColorTableStartColumnHeader:"開始",scaleColorTableEndColumnHeader:"終了",scaleColorLimitsExceptionMessage:"範囲の終了は開始より大きくしなければなりません",invalidNumberMessage:"値は数値でなければなりません。",invalidStartColorLimitMessage:"開始は終了より小さい数値でなければなりません",invalidEndColorLimitMessage:"終了は開始より大きい数値でなければなりません",defaultItemName:"項目 %1",defaultOptionName:"オプション %1",defaultStateName:"状態 %1",stateTableSelectedHdr:"選択",stateTableItemsHdr:"項目",ticksEditorErrorMsg:"目盛り値を昇順に指定してください",resetLabel:"自動",stepby:"刻み",ticksEditorStebByError:"ステップ値が小さすぎます",cliboardIsEmpty:"クリップボードが空です",nameColumnLabel:"名前",widthColumnLabel:"幅 (px)",autoColumnLabel:"自動幅",editableColumnLabel:"編集可能",sortableColumnLabel:"並べ替え可能",sunDay:"日曜",monDay:"月曜",tuesDay:"火曜",wednesDay:"水曜",thursDay:"木曜",friDay:"金曜",saturday:"土曜",selectAll:"すべて選択",clearAll:"すべてクリア",emptyGraphicsObject:"空"}},function(e,t,i){e.exports={colorOrderEditorAddNew:"添加颜色",colorOrderEditorAtLeastOne:"ColorOrder 必须包含至少一个值。",errorTitle:"属性错误",colormapEditorCustom:"自定义",datepickerPlaceHolder:"选择日期",filePickerEditorBrowse:"浏览",lineStyleSolid:"- 实线",lineStyleDashed:"-- 虚线",lineStyleDotted:": 点线",lineStyleDashDot:"-.点划线",lineStyleNone:"无",markerStylePlus:"+ 加号",markerStyleCircle:"o 圆形",markerStyleAsterisk:"* 星号",markerStylePoint:".点",markerStyleCross:"x 十字形",markerStyleSquare:"s 四方形",markerStyleDiamond:"d 菱形",markerStyleUpTriangle:"^ 上三角",markerStyleDownTriangle:"v 下三角",markerStyleRightTriangle:"> 右三角",markerStyleLeftTriangle:"< 左三角",markerStylePentagram:"p 五角星(五角形)",markerStyleHexagram:"h 六角星(六角形)",markerStyleNone:"无",orderButtonsAdd:"添加",orderButtonsRemove:"删除",orderButtonsUp:"上移",orderButtonsDown:"下移",defaultLabel:"默认",exactlyLabel:"精确到",integersLabel:"整数",scientificLabel:"科学记数法",customLabel:"自定义",decimalsLabel:"位小数",viewFormatErrorText:"仅允许使用正整数。",scaleColorTableColorColumnHeader:"颜色",scaleColorTableStartColumnHeader:"开始",scaleColorTableEndColumnHeader:"结束",scaleColorLimitsExceptionMessage:"范围的结束值应大于开始值",invalidNumberMessage:"值必须为数值。",invalidStartColorLimitMessage:"开始值必须为数值,并且小于结束值",invalidEndColorLimitMessage:"结束值必须为数值,并且大于开始值",defaultItemName:"项目 %1",defaultOptionName:"选项 %1",defaultStateName:"状态 %1",stateTableSelectedHdr:"选定",stateTableItemsHdr:"项目",ticksEditorErrorMsg:"按升序指定刻度值",resetLabel:"自动",stepby:"间隔值",ticksEditorStebByError:"间隔值太小",cliboardIsEmpty:"剪贴板为空",nameColumnLabel:"名称",widthColumnLabel:"宽度(像素)",autoColumnLabel:"自动宽度",editableColumnLabel:"可编辑",sortableColumnLabel:"可排序",sunDay:"星期日",monDay:"星期一",tuesDay:"星期二",wednesDay:"星期三",thursDay:"星期四",friDay:"星期五",saturday:"星期六",selectAll:"全选",clearAll:"全部清除",emptyGraphicsObject:"空"}},function(e,t,i){e.exports={colorOrderEditorAddNew:"색 추가",colorOrderEditorAtLeastOne:"ColorOrder에는 값이 하나 이상 포함되어야 합니다.",errorTitle:"속성 오류",colormapEditorCustom:"사용자 지정",datepickerPlaceHolder:"날짜 선택",filePickerEditorBrowse:"찾아보기",lineStyleSolid:"- 실선",lineStyleDashed:"-- 파선",lineStyleDotted:": 점선",lineStyleDashDot:"-. 일점 쇄선",lineStyleNone:"없음",markerStylePlus:"+ 플러스 기호",markerStyleCircle:"o 원",markerStyleAsterisk:"* 별표",markerStylePoint:". 점",markerStyleCross:"x 십자",markerStyleSquare:"s 정사각형",markerStyleDiamond:"d 다이아몬드",markerStyleUpTriangle:"^ 위쪽 방향 삼각형",markerStyleDownTriangle:"v 아래쪽 방향 삼각형",markerStyleRightTriangle:"> 오른쪽 방향 삼각형",markerStyleLeftTriangle:"< 왼쪽 방향 삼각형",markerStylePentagram:"p 오각별(펜타그램)",markerStyleHexagram:"h 육각별(헥사그램)",markerStyleNone:"없음",orderButtonsAdd:"추가",orderButtonsRemove:"제거",orderButtonsUp:"위로",orderButtonsDown:"아래로",defaultLabel:"디폴트 값",exactlyLabel:"정확히",integersLabel:"정수 표기",scientificLabel:"과학 표기",customLabel:"사용자 지정",decimalsLabel:"소수 자릿수",viewFormatErrorText:"양의 정수만 허용됩니다.",scaleColorTableColorColumnHeader:"색",scaleColorTableStartColumnHeader:"시작",scaleColorTableEndColumnHeader:"종료",scaleColorLimitsExceptionMessage:"제한의 종료 값은 시작 값보다 커야 함",invalidNumberMessage:"값은 숫자형이어야 합니다.",invalidStartColorLimitMessage:"시작 값은 숫자형이어야 하며 종료 값보다 작아야 함",invalidEndColorLimitMessage:"종료 값은 숫자형이어야 하며 시작 값보다 커야 함",defaultItemName:"항목 %1",defaultOptionName:"옵션 %1",defaultStateName:"상태 %1",stateTableSelectedHdr:"선택",stateTableItemsHdr:"항목",ticksEditorErrorMsg:"눈금 값을 오름차순으로 지정하십시오.",resetLabel:"자동",stepby:"간격",ticksEditorStebByError:"간격 값이 너무 작음",cliboardIsEmpty:"클립보드가 비어 있음",nameColumnLabel:"이름",widthColumnLabel:"너비(px)",autoColumnLabel:"자동 너비",editableColumnLabel:"편집 가능",sortableColumnLabel:"정렬 가능",sunDay:"일요일",monDay:"월요일",tuesDay:"화요일",wednesDay:"수요일",thursDay:"목요일",friDay:"금요일",saturday:"토요일",selectAll:"모두 선택",clearAll:"모두 지우기",emptyGraphicsObject:"비어 있음"}},function(e,t,i){e.exports={root:{colorOrderEditorAddNew:"Add Color",colorOrderEditorAtLeastOne:"ColorOrder must contain at least one value.",errorTitle:"Property Error",colormapEditorCustom:"Custom",datepickerPlaceHolder:"Pick a Date",filePickerEditorBrowse:"Browse",lineStyleSolid:"- Solid line",lineStyleDashed:"-- Dashed line",lineStyleDotted:": Dotted line",lineStyleDashDot:"-. Dash-dot line",lineStyleNone:"None",markerStylePlus:"+ Plus sign",markerStyleCircle:"o Circle",markerStyleAsterisk:"* Asterisk",markerStylePoint:". Point",markerStyleCross:"x Cross",markerStyleSquare:"s Square",markerStyleDiamond:"d Diamond",markerStyleUpTriangle:"^ Upward-pointing triangle",markerStyleDownTriangle:"v Downward-pointing triangle",markerStyleRightTriangle:"> Right-pointing triangle",markerStyleLeftTriangle:"< Left-pointing triangle",markerStylePentagram:"p Five-pointed star (pentagram)",markerStyleHexagram:"h Six-pointed star (hexagram)",markerStyleNone:"None",orderButtonsAdd:"Add",orderButtonsRemove:"Remove",orderButtonsUp:"Up",orderButtonsDown:"Down",defaultLabel:"Default",exactlyLabel:"Exactly",integersLabel:"Integer",scientificLabel:"Scientific",customLabel:"Custom",decimalsLabel:"decimals",viewFormatErrorText:"Only positive whole numbers are allowed.",scaleColorTableColorColumnHeader:"Color",scaleColorTableStartColumnHeader:"Start",scaleColorTableEndColumnHeader:"End",scaleColorLimitsExceptionMessage:"The End of Limit should be bigger than start",invalidNumberMessage:"Value must be numeric.",invalidStartColorLimitMessage:"Start must be numeric and less than End",invalidEndColorLimitMessage:"End must be numeric and greater than Start",defaultItemName:"Item %1",defaultOptionName:"Option %1",defaultStateName:"State %1",stateTableSelectedHdr:"Selected",stateTableItemsHdr:"Items",ticksEditorErrorMsg:"Specify tick values in ascending order",resetLabel:"Auto",stepby:"Step by",ticksEditorStebByError:"Step value is too small",cliboardIsEmpty:"Clipboard is empty",nameColumnLabel:"Name",widthColumnLabel:"Width(px)",autoColumnLabel:"Auto Width",editableColumnLabel:"Editable",sortableColumnLabel:"Sortable",sunDay:"Sunday",monDay:"Monday",tuesDay:"Tuesday",wednesDay:"Wednesday",thursDay:"Thursday",friDay:"Friday",saturday:"Saturday",selectAll:"Select All",clearAll:"Clear All",emptyGraphicsObject:"Empty"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t){e.exports='<div class="colorEditor" data-dojo-attach-point="colorEditor" data-tag="datatools.variableeditor.views.editors.colorEditor"></div>\n'},function(e,t){e.exports='<div class="colorDropDownEditor" data-tag="datatools.variableeditor.views.editors.colorDropDownEditor"></div>\n'},function(e,t,i){var n,o;n=[i(203),i(204),i(231),i(447),i(211),i(210),i(223),i(206),i(795),i(238),i(256),i(279),i(245),i(235),i(367),i(1258),i(1673),i(1670),i(463),i(8836),i(431)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){var C=e("rendererseditors.editors.ColorOrderEditor",[f,g,v],{AddNewLabel:y.colorOrderEditorAddNew,_colorOrderRenderer:void 0,_valueChanged:!1,_colorChangeListeners:{},_dndSource:void 0,_avatarMap:{},_inputValueType:"string",_rangeZeroToOne:!0,constructor:function(e){this.templateString=b,this.AddNewLabel=y.colorOrderEditorAddNew,this._colorOrderRenderer=void 0,this._colorChangeListeners={},this._dndSource=void 0,this._avatarMap={},this._rangeZeroToOne=!e||this._getPossibleBooleanFunctionValue(e.rangeZeroToOne,!0),e&&(this._allArgs=e,this.init(e)),this._colorChangeListeners={},this._colorChangeListeners.documentClickListener=s.pausable(document,"mouseup",t.hitch(this,"_handleColorBlur")),this.colorEditorsCreated=!1},postCreate:function(){this._createColorOrderRenderer(),this._createAddNewColorButton(),this._value&&this._setUIValue(this._value,!0),h("mac")&&this.addCSSClasses("macScrollBarWidth"),this.inherited(arguments)},setValue:function(e){this._inputValueType="string"==typeof e||e instanceof String?"string":"array",this._setUIValue(e,!0),this.inherited(arguments)},edit:function(){this.inherited(arguments),this._updateColorList(this._value);var e=this._getAttachNode("colorAddButton");e&&c.focus(e)},stopEditing:function(){var e=this._getColorWidgets();e&&e.forEach&&e.forEach((function(e){e.stopEditing&&e.stopEditing()})),this._changeObjectListenersState(this._colorChangeListeners,"pause"),this.inherited(arguments),this.colorEditorsCreated=!1},cancelEditing:function(){this._setUIValue(this._originalValue,!0),this._valueChanged=!1,this.inherited(arguments),this.colorEditorsCreated=!1},_handleBlurEvent:function(){},_handleColorBlur:function(e){if(!e.target.classList.contains("mwColorPaletteSwatch")&&!e.target.classList.contains("dijitTooltipConnector")&&!e.target.classList.contains("propertySetOuterContainer")){var t=i.getEnclosingWidget(e.target);if(!(t&&t.class.indexOf("mwColor")>=0)){try{for(var n=this._getColorWidgets(),o=0;o<n.length;o+=1){var r=n[o];if(r._colorDropDown&&r._colorDropDown._tooltipDialogWithColorPicker&&r._colorDropDown._tooltipDialogWithColorPicker.domNode&&r._colorDropDown._tooltipDialogWithColorPicker.domNode.contains(e.target))return}}catch(e){}this._getPossibleBooleanFunctionValue(this._commitOnBlur,!0)&&this._editing&&e&&e.target&&this.domNode&&!this.domNode.contains(e.target)&&e.target!==this._renderer.domNode&&(this._valueChanged?this.stopEditing():this.cancelEditing())}}},_changeListenerState:function(e){if(e&&"string"==typeof e){this.inherited(arguments),this._changeObjectListenersState(this._colorChangeListeners,e);var t=this._getColorWidgets();t&&t.forEach&&t.forEach((function(t){t._changeListenerState(e)}))}},_createAddNewColorButton:function(){var e=this._getAttachNode("colorAddButton");e&&(s(e,"click",t.hitch(this,"_addNewColor",g.WHITE.toRgba())),s(e,"keydown",t.hitch(this,"_handleKeyboardEvent")),this.focusNode=e)},_createColorOrderRenderer:function(){if(!this._colorOrderRenderer){this._colorOrderRenderer=new _(this._allArgs),this._colorOrderRenderer.setValue(this._value),this._colorOrderRenderer.startup();var e=this;this._colorOrderRenderer.addEventListener("click",(function(){e.stopEditing()})),this._colorOrderRenderer.addEventListener("keydown",(function(t){e._handleKeyDown(t.data)}));var t=this._getAttachNode("colorOrderRendererDiv");o.place(this._colorOrderRenderer.domNode,t,"last")}},_updateColorOrderRenderer:function(){var e=this._getCommitValue();this._colorOrderRenderer&&this._colorOrderRenderer.setValue(e),this._renderer&&this._renderer.setValue(e)},_addNewColor:function(e){e||(e=g.WHITE.toRgba());var t=this._createColorListItem(e);this._dndSource.insertNodes(!1,[t]),this._valueChanged=!0,u.scrollIntoView(t),this._updateColorOrderRenderer()},_getColorWidgets:function(){var e=[];if(this.domNode){var t=this._getAttachNode("colorList");if(t){var n=t.getElementsByClassName(m.CSS_SELECTOR);if(n&&n.length)for(var o=0;o<n.length;o+=1){var r=n[o],a=i.getEnclosingWidget(r);a&&e.push(a)}}}return e},_getCommitValue:function(){var e=this,t=this._getColorWidgets();return"string"===this._inputValueType?"["+t.map((function(t){var i=t._getUIValue(),o=new n(i),r=e._rangeZeroToOne?255:1;return[o.r/r,o.g/r,o.b/r].join(" ")})).join(";")+"]":t.map((function(t){var i=t._getUIValue(),o=new n(i),r=e._rangeZeroToOne?255:1;return[o.r/r,o.g/r,o.b/r]}))},_createColorList:function(e){if(this.domNode&&e&&this.isEditing()){var t=this._getAttachNode("colorListDiv"),i=this._getAttachNode("colorList");t.removeChild(i),this._destroyColorWidgets(),o.empty(i);for(var n=this._getJSColorValuesFromMATLABStringArray(e,this._rangeZeroToOne),r=[],a=0;a<n.length;a+=1){var s=this._createColorListItem(n[a]);r.push(s)}this._createDragAndDropSource(i,r),o.place(i,t,"last")}},_updateColorList:function(e){if(this.domNode&&e&&this.isEditing()){if(!1===this.colorEditorsCreated)return this._createColorList(this._value),void(this.colorEditorsCreated=!0);for(var t=this._getJSColorValuesFromMATLABStringArray(e,this._rangeZeroToOne),i=this._getColorWidgets(),n=0,o=i.length;n<o;n++)i[n].setValue(t[n])}},_createColorEditor:function(e){var t=new m({value:e,editable:!0,state:this.getState(),rangeZeroToOne:this._rangeZeroToOne});t.startup();var i=this;return t.addEventListener("editingCanceled",(function(){i._updateColorOrderRenderer()})),t.addEventListener("valueChanged",(function(){i._valueChanged=!0,i._updateColorOrderRenderer()})),t},_createColorListItem:function(e){var i=this._createColorEditor(e),n=o.create("li",{dndtype:"colorListItem",type:["colorListItem"]});r.add(n,"dojoDndItem"),r.add(n,"colorListItem");var a=this.getState();if(!0===p.getLogicalValue(a.DnDSupported,!0)){var l=o.create("div",{innerHTML:"."});r.add(l,"dojoDndHandle"),r.add(l,"colorDragHandle"),o.place(l,n,"first")}o.place(i.domNode,n,"last");var c=o.create("div",{innerHTML:"."});return r.add(c,"colorDeleteDiv"),s(c,"click",t.hitch(this,"_deleteColorListItem",n,i)),o.place(c,n,"last"),n.colorEditorWidget=i,n},_createDragAndDropSource:function(e,i){var n=this,o=p.createSelectableDnDTarget(e,{accept:["colorListItem"],checkAcceptanceCallback:function(t){return n._valueChanged=!0,t.node===e}});o.autoSync=!0,o.allowNested=!0,o.isSource=!0,o.copyOnly=!1,o.withHandles=!0,o.creator=t.hitch(this,"_createDnDAvatar"),this._dndSource=o;var r=o.onMouseMove;o.onMouseMove=function(e){n._adjustAvatarMap(o),r.call(o,e)},d.subscribe("/dnd/start",t.hitch(n,"_handleDnDTopic","pause")),d.subscribe("/dnd/drop",t.hitch(n,"_handleDnDTopic","resume")),d.subscribe("/dnd/cancel",t.hitch(n,"_handleDnDTopic","resume"));var a=o.onDrop;o.onDrop=function(e,t,i){n._valueChanged=!0,!a||e!==o&&e.node!==o.node||a.call(o,o,t,i)},o.insertNodes(!1,i),o.startup()},_handleDnDTopic:function(e){this._changeListenerState(e),this._updateColorOrderRenderer(),c.focus(this.focusNode)},_deleteColorListItem:function(e,t,i){var n=this._getAttachNode("colorAddButton");n&&c.focus(n),this._getColorWidgets().length>1?(this._dndSource.delItem(e.id),t.destroy(),o.destroy(e),this._valueChanged=!0):p.displayErrorMessageWithSpecifiedWidth(y.colorOrderEditorAtLeastOne,300,y.errorTitle),i.preventDefault(),i.stopPropagation(),this._updateColorOrderRenderer()},_adjustAvatarMap:function(e){if(e.map)for(var t in e.map)if(e.map.hasOwnProperty(t)){var i=e.map[t];if(i&&i.data&&"string"==typeof i.data){var n=e.node.querySelector("#"+t);n&&n.data&&(e.map[t].data=n.data)}}},_resetDojoDnDAvatarOffset:function(){var e=l.manager();e.OFFSET_X=16,e.OFFSET_Y=16},_createDnDAvatar:function(e,t){var i=o.create("span");if(i.itemIndex=parseInt(e.data),r.add(i,"dojoDndItem"),r.add(i,"colorOrderEditor"),r.add(i,"colorListItemAvatar"),"avatar"!==t||!e){var n=this._dndSource.defaultCreator(e,t);return this._avatarMap[n.data]=e.colorEditorWidget,n.node.data=e.colorEditorWidget,n.data=e.colorEditorWidget,n}var a=e;if(a){var s=new m;s.setValue(a.getValue()),s.startup(),o.place(s.domNode,i,"last")}return this._resetDojoDnDAvatarOffset(),{node:i,data:e,type:["colorListItem"]}},_handleKeyboardEvent:function(e){if(this.isEditing()){"keydown"===e.type&&this._handleKeyDown(e);var t=e;t.editor=this,this.dispatchEvent(e.type,this.domNode,t),e.stopPropagation()}else this.inherited(arguments)},_handleKeyDown:function(e){if(e){var t=this._getKeyCode(e);if(null!==t&&t===a.ESCAPE){if(e.target)for(var i=this._getColorWidgets(),n=0;n<i.length;n+=1)if(i[n].domNode.contains(e.target))return i[n].cancelEditing(),void c.focus(this.focusNode);this.cancelEditing(),e.stopPropagation(),e.preventDefault()}}},_getUIValue:function(){return this._valueChanged?this._getCommitValue():this._originalValue},_setUIValue:function(e,t){(JSON.stringify(e)!==JSON.stringify(this._value)||t)&&(this._updateColorList(e),this._colorOrderRenderer&&this._colorOrderRenderer.setValue(e))},_setReadOnly:function(e){var t=this._getColorWidgets();t&&t.forEach&&t.forEach((function(t){t._setReadOnly&&t._setReadOnly(e)}))},destroy:function(){this._destroyColorWidgets(),this.inherited(arguments)},_destroyColorWidgets:function(){var e=this._getColorWidgets();if(e)for(var t=0;t<e.length;t+=1)e[t].destroy()}});return C.COLOR_LIST_DIV_ATTACH_POINT="colorListDiv",C.COLOR_LIST_ATTACH_POINT="colorList",C.COLOR_LIST_ADD_NEW_ATTACH_POINT="colorAddButton",C.COLOR_ORDER_RENDERER_DIV="colorOrderRendererDiv",C}),e,t),e.exports=o},function(e,t){e.exports='<div class="colorTextBoxEditor" data-dojo-attach-point="colorTextBoxEditor" data-tag="datatools.variableeditor.views.editors.colorTextBoxEditor">\n <div class="colorValue" data-datatools-renderer-attach-point="colorValue" data-tag="datatools.variableeditor.views.editors.colorTextBoxEditor.colorValue"></div>\n</div>\n'},function(e,t){e.exports='<div class="rgbColorEditor colorEditorWithTextBox" data-dojo-attach-point="rgbColorEditor" data-tag="datatools.variableeditor.views.editors.rgbColorEditor"></div>\n'},function(e,t){e.exports='<div class="colorOrderEditor" data-dojo-attach-point="colorOrderEditor" data-tag="datatools.variableeditor.views.editors.colorOrderEditor">\n <div class="colorOrderRendererDiv" data-datatools-renderer-attach-point="colorOrderRendererDiv" data-tag="datatools.variableeditor.views.editors.colorOrderEditor.colorOrderRendererDiv"></div>\n <div class="colorListDiv" data-datatools-renderer-attach-point="colorListDiv" data-tag="datatools.variableeditor.views.editors.colorOrderEditor.colorListDiv">\n <ul class="colorList container" data-datatools-renderer-attach-point="colorList" data-tag="datatools.variableeditor.views.editors.colorOrderEditor.colorList">\n </ul>\n </div>\n <div class="buttonPanel" data-datatools-renderer-attach-point="buttonPanel" data-tag="datatools.variableeditor.views.editors.colorOrderEditor.buttonPanel">\n <button type="button" class="colorAddButton" data-datatools-renderer-attach-point="colorAddButton" data-tag="datatools.variableeditor.views.editors.colorOrderEditor.colorAddButton">${AddNewLabel}</button>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(217),i(206),i(214),i(235),i(367),i(463),i(286),i(1670),i(1005),i(8838),i(431)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f={value:"custom",label:p.colormapEditorCustom},g=["parula","turbo","jet",{value:"hsv",label:"HSV"},"hot","cool","spring","summer","autumn","winter","gray","bone","copper","pink","lines","colorcube","prism","flag","white"];return e("rendererseditors.editors.ColormapEditor",[s,l],{templateString:h,_select:void 0,_selectChangeListeners:void 0,_customValue:!1,_customRenderers:void 0,_resizeTimeouts:void 0,_buttonColormapNodes:void 0,_colormapList:g,_doubleClickDuration:0,postCreate:function(){this.inherited(arguments),this._setupSelect()},_setupSelect:function(){this._select?this._setSelectItems():(this._select=new c(a.mergeObjects(this._allArgs,{editable:!1,disabled:!this.isEditable(),value:void 0,width:"100%",height:"100%",_validateSizeInput:function(e){"string"==typeof e&&"%"===e.charAt(e.length-1)||this.inherited(arguments)},_getAdjustedSize:function(e,t,i){return"width"!==e&&"height"!==e||"string"!=typeof t?this.inherited(arguments):"%"===t.charAt(t.length-1)?t:void 0}})),this.own(this._select),this._select.domNode.setAttribute("data-tag",this.createDataTag("colormapeditor")),r.before(this._select,"_getSelectedItemFromLabel",function(e){return[this._fixLabel(e)]}.bind(this)),this._customRenderers={button:this._getNewCustomColormapRenderer(),menuItem:this._getNewCustomColormapRenderer()},this._addColormapToButton(),this._setSelectItems(),this._selectChangeListeners={_onChangeListener:o.pausable(this._select,"change",t.hitch(this,"_commitValue"))},this._resizeTimeouts={},this.own(o(window,"resize",t.hitch(this,"_resizeSelect"))),r.before(this._select,"_openComboBoxMenu",function(){this._resizeMenu()}.bind(this)),this._select.startup(),i.empty(this.domNode),this.domNode.appendChild(this._select.domNode),this._resizeSelect())},destroy:function(){this.inherited(arguments),this._resizeTimeouts&&(this._resizeTimeouts.menu&&clearTimeout(this._resizeTimeouts.menu),this._resizeTimeouts.button&&clearTimeout(this._resizeTimeouts.button))},_commitValue:function(){!0!==this._beingDestroyed&&this.setValue(this._getUIValue())},_resizeSelect:function(){this.domNode&&(n.position(this.domNode).h?(this._resizeTimeouts.button||(this._resizeTimeouts.button=setTimeout(t.hitch(this,"_resizeButton"),10)),this._resizeTimeouts.menu&&clearTimeout(this._resizeTimeouts.menu),this._resizeTimeouts.menu=setTimeout(t.hitch(this,"_resizeMenu"),100)):setTimeout(t.hitch(this,"_resizeSelect"),2e3))},_resizeButton:function(){this._resizeTimeouts.button=null,this._updateColorOrderRendererValue(this._customRenderers.button)},_resizeMenu:function(){if(this._resizeTimeouts.menu=null,this._select.domNode&&this._select.get("menu")&&this._select.get("menu").domNode){var e=n.getContentBox(this._select.domNode).w;n.setContentSize(this._select.get("menu").domNode,{w:e})}this._updateColorOrderRendererValue(this._customRenderers.menuItem)},_getNewCustomColormapRenderer:function(){var e=a.mergeObjects(this._allArgs,{value:void 0,inPlaceEditor:null,editor:null}),t=new d(e);return this.addCSSClasses(this._getIconClasses("custom"),t.domNode),this._customValue&&t.setValue(this._customValue),t.startup(),t},_addColormapToButton:function(){var e=this._select.inputNode;this.addCSSClasses(["colormapItem","colormapButton"],e.parentNode),this.addCSSClasses(["colormapLabel","colormapButton"],e),this._buttonColormapNodes={icon:i.create("div",null,e,"before"),custom:i.place(this._customRenderers.button.domNode,e,"before")},this.addCSSClasses(["colormapIcon","colormapButton"],this._buttonColormapNodes.icon),this._setButtonNodeVisible(this._buttonColormapNodes.icon,!1),this.addCSSClasses(["colormapIcon","colormapButton"],this._buttonColormapNodes.custom),this._setButtonNodeVisible(this._buttonColormapNodes.custom,!1)},_setSelectItems:function(){this._selectChangeListeners&&this._selectChangeListeners._onChangeListener&&this._selectChangeListeners._onChangeListener.pause();var e=this._getItems();this._select.set("items",e);var t=this._select.get("menu").domNode.childNodes[0];this.addCSSClasses("colormapMenu",t);for(var i=t.childNodes,n=0;n<i.length;n++)this._setupItemNode(i[n],e[n].value);this._setUIValue(this._value),this._selectChangeListeners&&this._selectChangeListeners._onChangeListener&&this._selectChangeListeners._onChangeListener.resume()},_setupItemNode:function(e,t){this.addCSSClasses("colormapItem",e);var n=e.childNodes[0];if(this.addCSSClasses("colormapLabel",n),"custom"===t)i.place(this._customRenderers.menuItem.domNode,n,"before");else{var o=i.create("div",null,n,"before");this.addCSSClasses(this._getIconClasses(t),o)}},setValue:function(e){var t=e;e&&e.hasOwnProperty("value")&&(t=e.value),this.inherited(arguments),this._setCustomValue(t),this._select&&this._setUIValue(t)},_setCustomValue:function(e){if(this._isValidCustomValue(e)&&!a.compareValues(e,this._customValue)){var i=this.getState(),n=i?t.clone(i):{};n.customValue=e,this.setState(n),e&&this._customRenderers&&(this._updateColorOrderRendererValue(this._customRenderers.button,e),this._updateColorOrderRendererValue(this._customRenderers.menuItem,e))}},_updateColorOrderRendererValue:function(e,t){var i=void 0!==t;if(t=t||this._customValue,e&&t&&this._isValidCustomValue(t)){var n=this._getColormapWidth(),o=Math.min(n<14?14:n,t.length);if(i||!e._value||e._value.length!==o)if(t.length>o){for(var r=[],a=(t.length-1)/(o-1),s=0;s<t.length;s+=a)r.push(t[Math.round(s)]);e.setValue(r)}else e.setValue(t)}},_getColormapWidth:function(){try{return n.getContentBox(this._select.domNode).w-n.position(this._select.arrowNode).w-n.position(this._select.inputNode).w-(n.getPadBorderExtents(this._customRenderers.button.domNode).w+n.getMarginExtents(this._customRenderers.button.domNode).w)}catch(e){return 0}},setState:function(e){if(this.domNode){if(e){if(JSON.stringify(this._oldState)===JSON.stringify(e))return;this._oldState=JSON.parse(JSON.stringify(e)),void 0!==e.customValue&&(this._customValue=e.customValue),this._colormapList=this._fixColormapList(e.colormapList||this._colormapList),this._setupSelect()}this.inherited(arguments)}},_getDefaultState:function(){return{customValue:!1,colormapList:g}},_getUIValue:function(){var e=this._select.get("value");return void 0===e||"custom"===e?this._customValue:e},_setUIValue:function(e){if(this._isUIOption(e))"string"!=typeof e&&(e="custom"),this._select.set("value",e),this._setButtonColormap(e);else{var t=this._getItems();this.setValue(t.length>0?t[0].value:void 0)}},_isUIOption:function(e){return this._isValidValue(e)&&(this._customValue||"string"==typeof e)},_setButtonColormap:function(e){if(this._buttonColormapNodes){var t="custom"===e,i=this._buttonColormapNodes.icon;i&&(this.replaceCSSClasses(this._getIconClasses(),this._getIconClasses(e),i),this._setButtonNodeVisible(i,!t));var n=this._buttonColormapNodes.custom;n&&this._setButtonNodeVisible(n,t)}},_setButtonNodeVisible:function(e,t){t?this.removeCSSClasses("hiddenColormapIcon",e):this.addCSSClasses("hiddenColormapIcon",e)},_setReadOnly:function(e){this._select&&this._select.set("disabled",e)},_focus:function(){this._select&&this._select.focusNode&&this._select.focusNode.focus&&u.curNode!==this._select.focusNode&&u.focus(this._select.focusNode)},hasValueChanged:function(e){return!a.compareValues(this._originalValue,e)},_getItems:function(e){return(e=e||this._colormapList).map(function(e){var t=e.value||e;return{value:t,label:this._fixLabel(e.label||t.charAt(0).toUpperCase()+t.slice(1))}}.bind(this))},_isValidValue:function(e){return!!e&&("string"==typeof e?this._getItems().some((function(t){return t.value===e})):this._isValidCustomValue(e))},_isValidCustomValue:function(e){if(!1===e)return!0;if(!(e instanceof Array&&e.length>0))return!1;for(var t=0;t<e.length;t++){if(3!==e[t].length)return!1;for(var i=0;i<3;i++)if("number"!=typeof e[t][i]||e[t][i]<0||e[t][i]>1)return!1}return!0},_fixColormapList:function(e){-1!==(e=e||this._colormapList).indexOf("all")&&(e=e.concat(g));var t=this._getItems(this._customValue?[f].concat(g):g),i=(e=e.filter((function(e){return t.some((function(t){return!(t.seen||t.value!==e&&t.value!==e.value)&&(t.seen=!0,!0)}))}))).some((function(e){return"custom"===e||"custom"===e.value}));return this._customValue&&!i?[f].concat(e):e},_getIconClasses:function(e){"string"==typeof(e=e||this._getItems(["custom"].concat(g)))?e=[{value:e}]:void 0!==e.value&&(e=[e]);for(var t=["colormapIcon"],i=0;i<e.length;i++)t.push("cmap-"+e[i].value);return t},_fixLabel:function(e){return e.replace(/^[ \n.]+/g,"")}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="colormapEditor" data-tag="datatools.variableeditor.views.editors.ColormapEditor"></div>'},function(e,t,i){var n,o;n=[i(203),i(2682),i(431)],o=i.dj.d(n,(function(e,t,i){return e([t],{getDisplayInfo:function(){return{rowNames:[i.sunDay,i.monDay,i.tuesDay,i.wednesDay,i.thursDay,i.friDay,i.saturday],propertyName:"DisabledDaysOfWeek",label:"Disabled Days of Week"}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(206),i(203),i(1259)],o=i.dj.d(n,(function(e,t,i,n){return i("rendererseditors.editors.ComboBoxEditor",[n],{constructor:function(i){i.plugins&&i.plugins.dateSettingsPlugin&&(this._dateSettingsPlugin=i.plugins.dateSettingsPlugin,this._locale=this._dateSettingsPlugin.datetimeDisplayLocale,t(this._dateSettingsPlugin,"settingsUpdated",e.hitch(this,"_settingsChanged"))),this._localeOptions=["en_US","zh_CN","ja_JP","ko_KR"],this._defaultDateOnlyFormatComboBoxItems={en_US:["dd-MMM-uuuu","uuuu-MMM-dd","uuuu-MM-dd","dd/MMM/uuuu","dd.MM.uuuu"],zh_CN:["uuuu年 M月 d日","uuuu年 MM月 dd日","uuuu/MM/dd","uuuu-MM-dd"],ja_JP:["uuuu年 M月 d日","uuuu年 MM月 dd日","uuuu/MM/dd","uuuu-MM-dd"],ko_KR:["uuuu년 M월 d일","uuuu년 M월 dd일","uuuu/MM/dd","uuuu-MM-dd"]},this._setFormats()},_createComboBox:function(){this.inherited(arguments),void 0!==this._locale&&this._localeOptions.indexOf(this._locale)>=0?this._categories=this._defaultDateOnlyFormatComboBoxItems[this._locale]:this._categories=this._defaultDateOnlyFormatComboBoxItems.en_US,this._comboBox.store=this.getStore()},_setFormats:function(){void 0!==this._locale&&this._localeOptions.indexOf(this._locale)>=0?this._updateCategories(this._defaultDateOnlyFormatComboBoxItems[this._locale]):this._updateCategories(this._defaultDateOnlyFormatComboBoxItems.en_US)},_settingsChanged:function(e){this._locale=e.datetimeDisplayLocale,this._setFormats()}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="datePickerEditor" data-dojo-attach-point="datePickerEditor" data-tag="datatools.inspector.editors.datePickerEditor"></div>'},function(e,t,i){var n,o;n=[i(203),i(215),i(216),i(604),i(8843),i(8846),i(1676),i(2687),i(8847)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){function c(e){return void 0!==e.editValue?e.editValue:e}function d(e,t){return JSON.stringify(e)===JSON.stringify(t)}return e([n,a,t,i],{templateString:l,constructor:function(e){var t=this._getTableInfo(c(e[0].values[0]));this.plugins=e[0].plugins,this.model=new r(t),this.propNameInModelToGetAllItems="DisabledDatesTableContents";var i={tableData:this._getTableData(),plugins:this.plugins};this.table=new o(i),this.own(this.table),this._initializeView()},postCreate:function(){this.table.placeAt(this.domNode)},startup:function(){this.inherited(arguments),this.table.startup()},_getTableData:function(){return this.model.getTableData()},_getTableInfo:function(e){for(var t=e.Day.length,i=[],n=0;n<t;n++)i.push({Year:e.Year[n],Month:e.Month[n],Day:e.Day[n]});return i},_onTableEdit:function(e){var t,i;t=e.rowId,i=e.value,this.model.updateDisabledDates(i,t)},_getMatlabDatesFromTableData:function(e){for(var t={Year:[],Month:[],Day:[]},i=0;i<e.length;i++)"NaT"!==e[i]&&(t.Year.push(e[i].Year),t.Month.push(e[i].Month),t.Day.push(e[i].Day));return t},_handleModelUpdate:function(e){var t=e.eventData,i=t.DisabledDates.oldValue,n=t.DisabledDates.newValue;d(n,i)||(i=this._getMatlabDatesFromTableData(i),n=this._getMatlabDatesFromTableData(n),this._commitValue("DisabledDates",i,n,"client"))},_onAddBtnClick:function(e){var t=this.model.addRow(e.currentSelectedRow);this._reloadTable(),this.inherited(arguments),this.table.selectRow(t)},_onDeleteBtnClick:function(e){this.model.deleteRow(e.currentSelectedRow),this._reloadTable(),this.inherited(arguments)},_setDisabledDatesAttr:function(e){this._modelUpdateListener.pause(),this.model.setDisabledDates(e),this._reloadTable(),this._modelUpdateListener.resume()},_updateEditor:function(e,t){if("DisabledDates"===t){var i=this._getTableInfo(c(e[0]));d(i,this.model.getDisabledDates())||this.set("DisabledDates",i)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(1675),i(2686)],o=i.dj.d(n,(function(e,t,i,n,o){return e(n,{constructor:function(e){this.plugins=e.plugins,this.dgridColumnconfig=this._getTableConfig()},postCreate:function(){this.inherited(arguments),this.deleteRowButtonWidget._setTabIndexOnNode=function(){}},_getTableConfig:function(){var e=this;return[{label:"Disabled Dates",renderCell:function(i,n,r,a){var s=new o({value:i.currDate,plugins:e.plugins});s.placeAt(r),s.addEventListener("valueChanged",t.hitch(this,(function(t){e.emit("table-edit",{columnId:"0",rowId:i.rowIndex,value:t.data.newValue})})))},field:"dates",sortable:!1,autoSave:!0}]},getRowToSelectPostAddition:function(e,t){return e>=0?e+1:this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(228),i(223),i(206),i(204),i(213),i(225)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(null,{ADD_DELETE_BUTTON_WIDTH:22,ADD_DELETE_BUTTON_HEIGHT:22,_onUserEntryInDgridCell:function(e){var t=this.grid.cell(e.target);if(e.which!==n.ESCAPE&&void 0!==t.column.editOn){if(this.grid.edit(t),e.which===n.ENTER)t.column.editorInstance.select();else{var i=String.fromCharCode(e.which);t.column.editorInstance.value=i;var r=o(t.column.editorInstance,"blur",(function(){t.column.editorInstance.value===i&&(a._onDgridDataModified(t.column.id,t.row.id,i),r.remove())}))}var a=this;this.own(o(t.column.editorInstance,"keypress",(function(e){e.stopPropagation()})))}},_onDblClickInDgridCell:function(e){var t=e.target.childNodes[0];void 0!==t&&"INPUT"===t.nodeName&&"text"===t.type&&t.select();var i=this.grid.cell(e.target);i.column.editorInstance&&this.own(o(i.column.editorInstance,"keypress",(function(e){e.stopPropagation()})))},_setDisabledAttr:function(e){e?(t.add(this.domNode,"vc-pe-disabled"),i.set(this.domNode,"tabindex",-1)):(t.remove(this.domNode,"vc-pe-disabled"),i.remove(this.domNode,"tabindex"))},addPSTableResizeMouseDownEventHandler:function(e){this.own(o(e,"mousedown",r.hitch(this,this._handleGripperMouseDown)))},_handleGripperMouseDown:function(e){this._MouseMoveListener=o(document,"mousemove",r.hitch(this,this._handleGripperMouseMove)),this._MouseUpListener=o(document,"mouseup",r.hitch(this,this._handleGripperMouseUp)),this._MouseDownX=e.pageX,this._MouseDownY=e.pageY,this._EditableTableTearaway=s(e.target).closest(".vc-pe-editableTableTearaway")[0],this._TableContainer=this.domNode.getElementsByClassName("tableContainer")[0],this._GridElement=this._TableContainer.getElementsByClassName("dgrid")[0],this._GridBounds=this._GridElement.getBoundingClientRect(),e.preventDefault()},_handleGripperMouseUp:function(e){this._MouseMoveListener&&this._MouseMoveListener.remove(),this._MouseUpListener&&this._MouseUpListener.remove(),e.preventDefault()},_handleGripperMouseMove:function(e){var t=e.pageX-this._MouseDownX,i=e.pageY-this._MouseDownY,n=Math.round(this._GridBounds.width+t),o=Math.round(this._GridBounds.height+i);o=Math.max(o,66),n=Math.max(n,216),this._sizeTable(n,o),e.preventDefault()},_sizeTable:function(e,t){var i=parseInt(this._EditableTableTearaway.style.width),n=i-e;n<this.TableWithButtonsWidthDelta?a.set(this._EditableTableTearaway,"width",i+(this.TableWithButtonsWidthDelta-n)+"px"):n>this.TableWithButtonsWidthDelta&&a.set(this._EditableTableTearaway,"width",i-(n-this.TableWithButtonsWidthDelta)+"px"),a.set(this._TableContainer,"width",e+"px"),a.set(this._GridElement,"width",e+"px"),a.set(this._GridElement,"height",t+"px")},_getSelectedRow:function(){var e=-1,t=Object.keys(this.grid.selection);return t.length>0&&(e=parseInt(t)),e},_selectRowAfterTableRefresh:function(e,t){var i=this.grid;if(e>-1){if(0===t)return;var n=Math.min(e,t-1);i.select(n),this._scrollToRow(n,t)}},_scrollToRow:function(e,t){if(t>0){e=Math.min(e,t);var i=this.grid.row(e).element;if(!i)return;var n={y:i.offsetTop};this.grid.scrollTo(n)}}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div class = "tableContainer" data-dojo-attach-point="dgridContainerNode">\n </div>\n <div class = "plusMinusButtonsContainer" data-dojo-attach-point="addRemoveButtonContainerNode"></div>\n <div class = "additionalButtonsContainer" data-dojo-attach-point="additionalButtonsContainerNode"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this._disabledDates=e,this._TableData=this._generateTableData(this._disabledDates),this.minimumStates=0,this.maximumStates=Number.POSITIVE_INFINITY},_generateTableData:function(e){var t=0;return e.map((function(e){return{currDate:e,rowIndex:t++}}))},_generateDisabledDates:function(e){return e.map((function(e){return e.currDate}))},getTableData:function(){return this._generateTableData(this._disabledDates)},getDisabledDates:function(){return this._disabledDates},getComponentProperty:function(e){switch(e){case"DisabledDatesTableContents":return this._TableData;default:throw new Error("In this workaround, propertyName should be DisabledDatesTableContents")}},setDisabledDates:function(e){this.emit("modelUpdated",{eventData:{DisabledDates:{newValue:e,oldValue:this._disabledDates}}}),this._disabledDates=e,this._TableData=this._generateTableData(e)},updateDisabledDates:function(e,t){this._TableData[t].currDate=e;var i=this._generateDisabledDates(this._TableData);this.setDisabledDates(i)},addRow:function(e){var t=this._TableData.length;if(t>=this.maximumStates)return-1;e=this._getAddRowNewIndex(e,t);var i=this.getNextAddingDate(e);this._TableData.splice(e,0,{currDate:i.currDate,rowIndex:i.rowIndex});var n=this._generateDisabledDates(this._TableData);return this.setDisabledDates(n),i.rowIndex},getNextAddingDate:function(e){var t={};if(0===this._disabledDates.length){var i=new Date,n=i.getDate(),o=i.getMonth()+1;t={currDate:{Year:i.getFullYear(),Month:o,Day:n},rowIndex:0}}else for(t=this.findNextDate(this._disabledDates[e-1],e-1);this.exsitsDate(t.currDate);)t=this.findNextDate(t.currDate,t.rowIndex);return t},findNextDate:function(e,t){var i={},n=new Date(e.Year,e.Month-1,e.Day);n.setFullYear(e.Year);var o=n;return o.setDate(n.getDate()+1),i.currDate={Year:o.getFullYear(),Month:o.getMonth()+1,Day:o.getDate()},i.rowIndex=t+1,i},exsitsDate:function(e){for(var t=0;t<this._disabledDates.length;t++){var i=this._disabledDates[t];if(i.Year===e.Year&&i.Month===e.Month&&i.Day===e.Day)return!0}return!1},deleteRow:function(e){this._TableData.splice(e,1);var t=this._generateDisabledDates(this._TableData);this.setDisabledDates(t)},_getAddRowNewIndex:function(e,t){return e>=0&&e<t-1?e+1:t}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dateTableEditor inspector-editor dgrid-inspector-editor vc-pe-optionsTable vc-pe-editableTableTearaway vc-pe-optionsTableTearaway" tabindex="0"></div>\n'},function(e,t,i){var n,o;n=[i(203),i(223),i(376)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.editors.DatetimeEditor",[i],{_handleKeyDown:function(e){var i=this._getKeyCode(e);e&&null!==i&&i===t.TAB&&(this._handleTabKey(e.shiftKey),e.preventDefault()),this.inherited(arguments)},_handleTabKey:function(e){e?this.goToPreviousField():this.goToNextField()},goToNextField:function(){var e=this._getUIValue();if(e&&"NaT"!==e){var t=this._inputBox.inputNode.selectionEnd,i=this._getNextFieldIndices(e,t);this._inputBox.inputNode.selectionStart=i[0],this._inputBox.inputNode.selectionEnd=i[1]}return i},_getNextFieldIndices:function(e,t){var i=e.substring(t,e.length),n=i.match(/[^a-z0-9]+/i),o=-1,r=1;null!==n&&(o=t+n.index,r=n[0].length),n=(i=e.substring(o+r,e.length)).match(/[^a-z0-9]+/i);var a=e.length;return null!==n&&(a=o+r+n.index),[o+r,a]},goToPreviousField:function(){var e=this._getUIValue();if(e&&"NaT"!==e){var t=this._inputBox.inputNode.selectionStart,i=this._getPreviousFieldIndices(e,t);this._inputBox.inputNode.selectionStart=i[0],this._inputBox.inputNode.selectionEnd=i[1]}return i},_getPreviousFieldIndices:function(e,t){var i=this._reverse(e.substr(0,t)),n=i.match(/[^a-z0-9]+/i),o=e.length,r=1;null!==n&&(o=t-1-n.index,r=n[0].length);var a=-1;return null!==(n=(i=this._reverse(e.substring(0,o-r+1))).match(/[^a-z0-9]+/i))&&(a=o-r-n.index),[a+1,o-r+1]},_reverse:function(e){for(var t="",i=e.length-1;i>=0;i-=1)t+=e[i];return t},_getUIValue:function(){var e=this._inputBox.inputNode.value;return null!=e&&""!==e||(e="NaT"),e},_setUIValue:function(e){null!=e&&""!==e||(e="NaT"),this._inputBox.set("value",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(223),i(238),i(422),i(235),i(604),i(255),i(8850),i(8851),i(431)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){var u=0;function h(e){return void 0!==e.value?e.value:e}return e([a,s],{baseClass:"display-format-richeditor",templateString:l,_buttonGroupId:0,_defaultLabel:d.defaultLabel,_exactlyLabel:d.exactlyLabel,_integersLabel:d.integersLabel,_scientificLabel:d.scientificLabel,_customLabel:d.customLabel,_decimalsLabel:d.decimalsLabel,_previousCustom:!1,constructor:function(e){if(e.length>1)throw new Error("Display Format Editor can only handle one property");this._propertySetInfo=e[0],this._propertyName=this._propertySetInfo.propertyName,this.displayFormat=h(this._propertySetInfo.values[0]),u+=1,this._buttonGroup="displayFormatRichEditor_"+u,this._displayFormatMode=new c,this._displayFormatMode.refresh(this.displayFormat)},_updateEditor:function(e){this.set("displayFormat",h(e[0])),this._previousCustom&&this._displayFormatMode.getModeName()!==c.MODES.CUSTOM&&(this.customTextFieldNode.set("value",this._previousCustom),this._previousCustom=!1)},_setDisplayFormatAttr:function(e){"string"==typeof e&&e!==this.displayFormat&&(this.displayFormat=e,this._refreshContent(e))},_refreshContent:function(e){this._displayFormatMode.refresh(e);var t=this._displayFormatMode.getModeName(),i=this._displayFormatMode.getModeValue();switch(this._updateTextFieldDisabledState(t),t){case c.MODES.DEFAULT:this.defaultRadioButtonNode.set("checked",!0);break;case c.MODES.DECIMAL:this.decimalRadioButtonNode.set("checked",!0),this.decimalTextFieldNode.set("value",i);break;case c.MODES.INTEGER:this.integersRadioButtonNode.set("checked",!0);break;case c.MODES.SCIENTIFIC:this.scientificRadioButtonNode.set("checked",!0);break;case c.MODES.CUSTOM:this.customRadioButtonNode.set("checked",!0),this.customTextFieldNode.set("value",i)}},_updateTextFieldDisabledState:function(e){switch(e){case c.MODES.DEFAULT:case c.MODES.INTEGER:case c.MODES.SCIENTIFIC:this.decimalTextFieldNode.set("disabled",!0),this.customTextFieldNode.set("disabled",!0);break;case c.MODES.DECIMAL:this.decimalTextFieldNode.set("disabled",!1),this.customTextFieldNode.set("disabled",!0);break;case c.MODES.CUSTOM:this.decimalTextFieldNode.set("disabled",!0),this.customTextFieldNode.set("disabled",!1)}},postCreate:function(){this._refreshContent(this.displayFormat),this._RadioButtons=[this.defaultRadioButtonNode,this.decimalRadioButtonNode,this.integersRadioButtonNode,this.scientificRadioButtonNode,this.customRadioButtonNode],this._TextFields=[this.decimalTextFieldNode,this.customTextFieldNode],this._addListenersToRadioButtons(this._RadioButtons),this._addListenersToTextFields(this._TextFields)},_addListenersToRadioButtons:function(e){var t=this;e.forEach((function(e){e.on("change",(function(i){t._handleRadioButtonChangeEvent(e,i)}))}))},_handleRadioButtonChangeEvent:function(e,t){t.stopPropagation();var i=t.mwEventData;if("checked"===i.propertyName&&!0===i.newValue){var n=e.displayMode,o=null;this._updateTextFieldDisabledState(n),e===this.decimalRadioButtonNode?o=this.decimalTextFieldNode.get("value"):e===this.customRadioButtonNode&&(o=this.customTextFieldNode.get("value")),this._commit(n,o)}},_addListenersToTextFields:function(e){var t=this;e.forEach((function(e){e.on("change",(function(i){t._handleTextFieldChangeEvent(e,i)})),e.on("keydown",(function(e){t._getKeyCode(e)===i.ENTER&&(n.curNode.blur(),n.focus(t.domNode))}))}))},_handleTextFieldChangeEvent:function(e,t){t.stopPropagation();var i=t.mwEventData;if("value"===i.propertyName){var o,r=i.oldValue,a=i.newValue;if(e===this.decimalTextFieldNode){if(this.decimalRadioButtonNode.get("disabled"))return;/^0+$/.test(a)?(this.decimalTextFieldNode.set("value",r),n.focus(this.integersRadioButtonNode.focusNode),o=this.integersRadioButtonNode.displayMode):o=this.decimalRadioButtonNode.displayMode}else if(e===this.customTextFieldNode){if(this.customRadioButtonNode.get("disabled"))return;this._previousCustom=r,o=this.customRadioButtonNode.displayMode}this._commit(o,a)}},_commit:function(e,t){var i=this.displayFormat;this._refreshContent(i),this._displayFormatMode.setModeName(e),this._displayFormatMode.setModeValue(t);try{var n=this._displayFormatMode.getFormatString();this.set("displayFormat",n),this._commitValue(this._propertyName,i,n,"client")}catch(e){r.displayErrorMessage(e.message,e.name)}}})}),e,t),e.exports=o},function(e,t){e.exports='<table>\n <tbody>\n <tr>\n <td><div data-dojo-type="mw-form/RadioButton"\n data-dojo-attach-point="defaultRadioButtonNode"\n data-dojo-props="buttonGroup: \'${_buttonGroup}\', displayMode: \'DEFAULT\', text: \'${_defaultLabel}\'"></div></td>\n <td>(%11.4g)</td>\n </tr>\n <tr>\n <td><div data-dojo-type="mw-form/RadioButton"\n data-dojo-attach-point="decimalRadioButtonNode"\n data-dojo-props="buttonGroup: \'${_buttonGroup}\', displayMode: \'DECIMAL\', text: \'${_exactlyLabel}\'"></div></td>\n <td><div class="row-input"\n data-dojo-type="mw-form/TextField"\n data-dojo-attach-point="decimalTextFieldNode"\n data-dojo-props="value: \'3\'"></div></td>\n <td class="row-suffix">${_decimalsLabel}</td>\n </tr>\n <tr>\n <td><div data-dojo-type="mw-form/RadioButton"\n data-dojo-attach-point="integersRadioButtonNode"\n data-dojo-props="buttonGroup: \'${_buttonGroup}\', displayMode: \'INTEGER\', text: \'${_integersLabel}\'"></div></td>\n </tr>\n <tr>\n <td><div data-dojo-type="mw-form/RadioButton"\n data-dojo-attach-point="scientificRadioButtonNode"\n data-dojo-props="buttonGroup: \'${_buttonGroup}\', displayMode: \'SCIENTIFIC\', text: \'${_scientificLabel}\'"></div></td>\n </tr>\n <tr>\n <td><div data-dojo-type="mw-form/RadioButton"\n data-dojo-attach-point="customRadioButtonNode"\n data-dojo-props="buttonGroup: \'${_buttonGroup}\', displayMode: \'CUSTOM\', text: \'${_customLabel}\'"></div></td>\n <td><div class="row-input"\n data-dojo-type="mw-form/TextField"\n data-dojo-attach-point="customTextFieldNode"\n data-dojo-props="value: \'%5.2f\', spellcheck: false"></div></td>\n </tr>\n </tbody>\n</table>\n'},function(e,t,i){var n,o;n=[i(203),i(431)],o=i.dj.d(n,(function(e,t){var i={DEFAULT:"DEFAULT",INTEGER:"INTEGER",DECIMAL:"DECIMAL",SCIENTIFIC:"SCIENTIFIC",CUSTOM:"CUSTOM"},n={};n[i.DEFAULT]={doesValueMatch:function(e){return"%11.4g"===e},extractDisplayValue:function(e){return null},validateDisplayValue:function(e){return!0},convertDisplayValueToDisplayFormat:function(e){return"%11.4g"}},n[i.INTEGER]={doesValueMatch:function(e){return"%.0f"===e},extractDisplayValue:function(e){return null},validateDisplayValue:function(e){return!0},convertDisplayValueToDisplayFormat:function(e){return"%.0f"}},n[i.DECIMAL]={doesValueMatch:function(e){return new RegExp("%.[0-9]+f").test(e)},extractDisplayValue:function(e){var t=e.indexOf("."),i=e.indexOf("f");return e.substring(t+1,i)},validateDisplayValue:function(e){return t=e,Number(t)%1==0&&""!==t&&Number(t)>-1;var t},convertDisplayValueToDisplayFormat:function(e){return"%."+e+"f"}},n[i.SCIENTIFIC]={doesValueMatch:function(e){return"%e"===e},extractDisplayValue:function(e){return null},validateDisplayValue:function(e){return!0},convertDisplayValueToDisplayFormat:function(e){return"%e"}},n[i.CUSTOM]={doesValueMatch:function(e){return!0},extractDisplayValue:function(e){return e},validateDisplayValue:function(e){return!0},convertDisplayValueToDisplayFormat:function(e){return e}};var o=e([],{constructor:function(e,t){this._modeName=e,this._modeValue=t},setModeName:function(e){this._modeName=e},setModeValue:function(e){this._modeValue=e},getModeName:function(){return this._modeName},getModeValue:function(){return this._modeValue},getFormatString:function(){var e=n[this._modeName];if(e.validateDisplayValue(this._modeValue))return e.convertDisplayValueToDisplayFormat(this._modeValue);var i=new Error(t.viewFormatErrorText);throw i.name="DisplayFormatConversionException",i},refresh:function(e){for(var t=Object.keys(n),i=0;i<t.length;i++){var o=t[i];if(n[o].doesValueMatch(e)){var r=n[o].extractDisplayValue(e);this._modeName=o,this._modeValue=r;break}}}});return o.MODES=i,o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(376)],o=i.dj.d(n,(function(e,t){return e([t],{postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-tag","datatools.variableeditor.views.editors.DisplayFormatTextBoxEditor")},_setupInputNode:function(){this.inherited(arguments),this._inputBox.set("spellcheck",!1)},setState:function(e){e&&(e.isMetaData=!1),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(214),i(238),i(235),i(367),i(463),i(376),i(446),i(339),i(8854),i(431)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([a,s],{templateString:u,_textBox:void 0,_browseButton:void 0,_busyIndicator:void 0,_filterSpec:"*",_isBrowsing:!1,_doubleClickDuration:0,postCreate:function(){this.inherited(arguments),this._createTextBox(),this._createBrowseButton(),this._createBusyIndicator(),this._addListenersToComponents()},_createTextBox:function(){this._textBox=new l(r.mergeObjects(this._allArgs,{inPlaceEditor:void 0,state:{isMetaData:!1},spellcheck:!1})),this._textBox.placeAt(this.domNode).startup(),n.after(this._textBox,"stopEditing",function(){o.curNode===this._textBox.focusNode&&o.curNode.blur()}.bind(this)),this._setUIValue(this._value)},_createBrowseButton:function(){this._browseButton=new c({text:h.filePickerEditorBrowse,icon:"fileIcon",disabled:!this.isEditable()}),this._browseButton.placeAt(this.domNode).startup()},_createBusyIndicator:function(){this.ownerDocumentBody?(this._busyIndicator=new d(d.SIZE.SMALL),this._busyIndicator.set("target",this.ownerDocumentBody)):setTimeout(t.hitch(this,"_createBusyIndicator"),100)},_addListenersToComponents:function(){this._textBox.addEventListener("valueChanged",t.hitch(this,"_handleTextBoxValueChanged")),this._browseButton.on("mousedown, click",t.hitch(this,"_handleBrowseButtonClick"))},_handleTextBoxValueChanged:function(){setTimeout(function(){var e=this._getUIValue();this._isBrowsing||this._value===e||this._isBrowse(e)?this._setUIValue(this._value):this.setValue(e)}.bind(this))},_handleBrowseButtonClick:function(e){e.preventDefault(),this._isBrowsing||(this._setUIValue(this._value),this._setBrowsing(!0),this.setValue(this._getBrowse()))},setValue:function(e){var t=this._isBrowsing&&/ $/.test(e),i=this._isBrowse(e);!t&&i||this._setBrowsing(!1),e=(e||"").trim(),this.inherited(arguments),this._setUIValue(e)},setState:function(e){this.domNode&&(e&&(this._filterSpec=e.filterSpec||"*"),this.inherited(arguments))},setEditable:function(e){this.inherited(arguments);var t=this.isEditable();this._textBox&&this._textBox.setEditable(t),this._browseButton&&this._browseButton.set("disabled",!t)},_getUIValue:function(){return(this._textBox?this._textBox._getUIValue():this._value).trim()},_setUIValue:function(e){e=(e||"").trim(),this._isBrowse(e)||this._textBox&&(this._textBox.stopEditing(),this._textBox.setValue(e),this._textBox.setEditValue(e))},_setBrowsing:function(e){this._browseButton&&(this._browseButton.set("checked",e),this[e?"addCSSClasses":"removeCSSClasses"]("open",this._browseButton.domNode),o.curNode&&e&&o.focus(this._browseButton.domNode)),this._isBrowsing=e},_getBrowse:function(){return"?"+this._filterSpec},_isBrowse:function(e){return e&&"?"===e[0]}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="filePickerEditor cellRenderer" data-tag="datatools.variableeditor.views.editors.FilePickerEditor"></div>'},function(e,t,i){var n,o;n=[i(204),i(203),i(1259),i(8856)],o=i.dj.d(n,(function(e,t,i,n){var o;return t("rendererseditors.editors.ComboBoxEditor",[i],{constructor:function(){o||this._getMATLABFontList()},postCreate:function(){this.inherited(arguments),o&&this._updateCategories(o)},_createComboBox:function(){this.inherited(arguments),o?(this._categories=o,this._comboBox.store=this.getStore()):this._getMATLABFontList()},_getMATLABFontList:function(){(new n).getFonts().then(e.hitch(this,(function(e){this._setMATLABFontNames(e)})))},_setMATLABFontNames:function(e){if(e&&e[0]){var t=e[0];o=t,this._updateCategories(t)}},_resetFontNames:function(){o=void 0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(232)],o=i.dj.d(n,(function(e,t,i){return e(null,{_CLASSIFIER:"FEvalFontNameHelperGetFonts",constructor:function(){i.registerResponseHandler("FEvalResponse:"+this._CLASSIFIER,this._handleEvalResponse,this),i.registerFaultHandler("FEval:"+this._CLASSIFIER,this._handleEvalError,this)},getFonts:function(){var e=new t;return i.sendMessage({FEval:{function:"listfonts",arguments:[],nargout:1,priority:1,dequeMode:"ppe"}},e,this._CLASSIFIER),e.promise},_handleEvalError:function(e,t){var i=t;this._implementsDeferred&&this._implementsDeferred(i)&&i.reject(e)},_handleEvalResponse:function(e,t){var i=e,n=t;if(1===i[0].results.length)i[0].isError?n.reject(i[0].messageFaults[0].message):n.resolve(i[0].results);else{var o="Error: Expected 1 result message back from getFonts, received: "+e.length;n.reject(o)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(376)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.editors.IconTextBoxEditor",[t],{_setupDomClasses:function(e){var t=e?e.dataType?e.dataType:e.class:"char",i=!!e&&e.isTemporaryValue;this._applyCssClass(t,i,!0,this.domNode),this.addCSSClasses("cellRenderer",this.domNode)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(206),i(225),i(215),i(216),i(229),i(604),i(8859),i(1676),i(8860),i(8862),i(828)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){var p=s.generateUuid();function f(e){return!(e=void 0!==e.value?e.value:e).length||e[0]instanceof Array?e:[e]}function g(e){return e=void 0!==e.value?e.value:e}function m(e){return JSON.parse(JSON.stringify(e))}return e([l,d,r,a],{templateString:h,constructor:function(e){this._radioButtonGroupId="Items"+p,this._editorStates=null;var t=this._getItemsInfo(e);this.model=new u(t,this._editorStates),this.eventName="tableupdated",this.propNameInModelToGetAllItems="Items";var i={tableData:this._getTableData(),radioButtonGroupId:this._radioButtonGroupId};this.table=new c(i),this.own(this.table),this._initializeView(),this._hacked=!1},postCreate:function(){this.table.placeAt(this.domNode)},startup:function(){this.inherited(arguments),this.table.startup(),this._addWorkaroundForFocusIssue()},onOpen:function(){this._revertTable(),this.table.grid.focus(),0===Object.keys(this.table.grid.selection).length&&this.table.grid.select(0,0)},_getItemsInfo:function(e){var t={};return e.forEach(function(e){switch(e.propertyName){case"Items":var i=m(g(e.values[0]));Array.isArray(i)||(i=i.split(", ")),t.items=i,this._editorStates=e.meta.richEditorProperties;break;case"SelectedIndex":e.values&&(t.selectedIndex=m(f(e.values[0])))}}.bind(this)),t.selectedIndex||(t.selectedIndex=m(f(e[1].meta.richEditorProperties.SelectedIndex))),t.radioButtonGroupId=this._radioButtonGroupId,t},_updateEditor:function(e,t){if(e)switch(t){case"Items":var i=g(e[0]);JSON.stringify(this.model.getItems())!==JSON.stringify(i)&&this.set("items",m(i));break;case"SelectedIndex":var n=f(e[0]);JSON.stringify(this.model.getSelectedIndex())!==JSON.stringify(n)&&this.set("selectedIndex",m(n));break;case"Value":var o=f(e[0]),r=this.model.getItems().indexOf(o[0])+1;this.model.getSelectedIndex()!==r&&this.set("selectedIndex",r)}},_setItemsAttr:function(e){this._modelUpdateListener.pause(),this.model.setItems(e),this._reloadTable(),this._modelUpdateListener.resume()},_setSelectedIndexAttr:function(e){this._modelUpdateListener.pause(),this.model.setSelectedIndex(e),this._reloadTable(),this._modelUpdateListener.resume()},_setItemsAndSelectedIndexAttr:function(e){this._modelUpdateListener.pause(),this.model.setItemsAndSelectedIndex(e.items,e.selectedIndex),this._reloadTable(),this._modelUpdateListener.resume()},_onTableEdit:function(e){"0"===e.columnId?this.model.updateSelectedIndex(e.rowId):"1"===e.columnId&&this.model.updateItems(e.value,e.rowId)},_revertTable:function(){var e=this.model.getTableData();this.table.set("tableData",e)},_onAddBtnClick:function(e){this.model.addRow(e.currentSelectedRow),this._reloadTable(),this.inherited(arguments)},_onDeleteBtnClick:function(e){this.model.deleteRow(e.currentSelectedRow),this._reloadTable(),this.inherited(arguments)},_getTableData:function(){return this.model.getTableData()},_handleModelUpdate:function(e){var t,i,n=e.eventData;["Items","SelectedIndex"].forEach(function(e){t=n[e].oldValue,i=n[e].newValue,JSON.stringify(i)!==JSON.stringify(t)&&this._commitValue(e,t,i,"client")}.bind(this))},storePopupContainer:function(e){this._dropDown=e},getRadioButtonByRow:function(e){var t='input[name="'+this._radioButtonGroupId+'"]';return document.querySelectorAll(t)[e]},_addWorkaroundForFocusIssue:function(){if(!this._hacked){var e=this._dropDown&&this._dropDown.closeMenu;e&&(this._dropDown.closeMenu=function(t){!0===this.table._isEditorShown||e.call(this._dropDown,t)}.bind(this)),this._hacked=!0}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1004),i(1675),i(431)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e){this._radioButtonGroupId=e.radioButtonGroupId,this._IsHandlingEdits=!0,this._isEditorShown=!1,this.dgridColumnconfig=this._getItemsTableConfig()},getRowToSelectPostAddition:function(e,t){return e>=0?e+1:this.inherited(arguments)},postCreate:function(){this.inherited(arguments),this.grid.on("dgrid-editor-show",function(e){this._isEditorShown=!0}.bind(this)),this.grid.on("dgrid-editor-hide",function(e){setTimeout(function(){e.cell.element.focus(),this._isEditorShown=!1}.bind(this),0)}.bind(this)),this.deleteRowButtonWidget._setTabIndexOnNode=function(){}},_getItemsTableConfig:function(){return[t({label:n.stateTableSelectedHdr,sortable:!1,field:this._radioButtonGroupId},"radio"),t({label:n.stateTableItemsHdr,field:"items",editor:"text",editOn:"dblclick",sortable:!1,autoSave:!0})]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(431),i(8861)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{constructor:function(e,t){this._items=e.items,this._selectedIndex=e.selectedIndex,this._radioButtonGroupId=e.radioButtonGroupId,this._TableData=this._generateTableData(this._items,this._selectedIndex,this._radioButtonGroupId),this._nameGenerator=new n(!0," "),this._getConfigurationForModel(t)},_getConfigurationForModel:function(e){this.minimumStates=Number.NEGATIVE_INFINITY,this.maximumStates=Number.POSITIVE_INFINITY,this.defaultNameKey=null,void 0!==e.minNumber&&(this.minimumStates=e.minNumber),void 0!==e.maxNumber&&(this.maximumStates=e.maxNumber),void 0!==e.defaultNameKey&&(this.defaultNameKey=e.defaultNameKey)},_generateTableData:function(e,t,i){return e.map((function(e,n){var o={},r=t-1===n;return o[i]=r,o.items=e,o}))},getTableData:function(){return this._TableData},setItems:function(e){this.setItemsAndSelectedIndex(e,this._selectedIndex)},getItems:function(){return this._items},setSelectedIndex:function(e){this.setItemsAndSelectedIndex(this._items,e)},getSelectedIndex:function(){return this._selectedIndex},setItemsAndSelectedIndex:function(e,t){null==e&&(e=this._items),null==t&&(t=this._selectedIndex),t=t||this._selectedIndex;var i=this._items,n=this._selectedIndex;Array.isArray(e)||(e=e.split(", ")),this._items=e,this._selectedIndex=t,this._TableData=this._generateTableData(e,t,this._radioButtonGroupId),this.emit("modelUpdated",{eventData:{Items:{newValue:e,oldValue:i},SelectedIndex:{newValue:t,oldValue:n}}})},updateSelectedIndex:function(e){this.setSelectedIndex(e+1)},updateItems:function(e,t){var i=this._items.slice(0);i[t]=e,this.setItems(i)},addRow:function(e){var t=this._items.slice(0),i=t.length;if(!(t.length>=this.maximumStates)){var n=this._getAddRowNewIndex(e,i);Number.MAX_SAFE_INTEGER||(Number.MAX_SAFE_INTEGER=9007199254740991);var o=this._nameGenerator.generateVariableName(t,this.getDefaultItemName()),r={},a=this._selectedIndex;r[this._radioButtonGroupId]=!1,r.Items=o,0===t.length&&(r[this._radioButtonGroupId]=!0,a=1),t.splice(n,0,r.Items),this.setItemsAndSelectedIndex(t,a)}},deleteRow:function(e){var t=this._items.slice(0);if(!(t.length<=this.minimumStates)){var i=this._selectedIndex,n=this._selectedIndex;e+1===i?n=1===t.length?-1:i>1?i-1:i:e+1<i&&(n=i-1),t.splice(e,1),this.setItemsAndSelectedIndex(t,n)}},getDefaultItemName:function(){return this.defaultNameKey?i[this.defaultNameKey]:""},getComponentProperty:function(e){switch(e){case"Items":return this._items;case"SelectedIndex":return this._selectedIndex;default:throw new Error("In this temporary workaround, the propertyName should be ScaleColorTableContents")}},_getAddRowNewIndex:function(e,t){return e>=0&&e<t-1?e+1:t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e,t){this._shouldApplySuffixOnFirstItem=e,this._delimiterBetweenPrefixAndNumberSuffix=t},generateVariableName:function(e,t,i){var n;n=i?t:t.split(" ")[0];var o=!1,r=0,a="",s=/\d+$/;if(e.forEach((function(e){if(e&&e.indexOf(n)>-1){var t;if(i)t=e;else if(t=e.replace(/\s+/g,""),e[n.length]&&!e[n.length].match(/[0-9|\s]/))return;var a,l=t.match(s);if(null!==l){var c=new RegExp(l[0]+"$");if(a=t.replace(c,""),l[0].length>9007199254740991..toString().length-1)return void(o=!0);(l=parseInt(l[0]))>r&&(r=l)}else a=t,l=1;a===n&&l>r&&(r=l)}})),o)return this._findAvailableCodeName(n,e);if(0===r)!0===this._shouldApplySuffixOnFirstItem?a=n+" 1":!1===this._shouldApplySuffixOnFirstItem&&(a=n);else{var l=s.exec(n);l&&(n=n.substr(0,l.index)),a=this._findAvailableCodeName(n,e,r)}return a},_findAvailableCodeName:function(e,t,i){var n,o=i||0;do{n=1!==++o||this._shouldApplySuffixOnFirstItem?e+this._delimiterBetweenPrefixAndNumberSuffix+o:e+this._delimiterBetweenPrefixAndNumberSuffix}while(-1!==t.indexOf(n));return n}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="itemsEditor inspector-editor dgrid-inspector-editor vc-pe-optionsTable vc-pe-editableTableTearaway vc-pe-optionsTableTearaway" tabindex="0"></div>\n'},function(e,t,i){var n,o;n=[i(203),i(211),i(210),i(269),i(367)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{_label:void 0,postCreate:function(){this.inherited(arguments),this._setUpInputNode()},_setUpInputNode:function(){this._value=this._getValueToDisplay(this._value),this._label=new n({text:this._value}),t.empty(this.domNode),i.add(this._label.domNode,"InspectorLabelEditor"),this.domNode.appendChild(this._label.domNode),this._label.startup(),this.own(this._label)},setValue:function(e){this._label&&this._value!==e&&(this._value=e,this._label.destroy(),this._setUpInputNode()),this.inherited(arguments)},_getValueToDisplay:function(e){const t="string"==typeof e;let i=e;return t&&""===e.trim()?i="[ ]":t||(i=""+e),i},setEditable:function(e){},_setReadOnly:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(428),i(206),i(223),i(851),i(697),i(750),i(1004),i(1674),i(243),i(258),i(238),i(231),i(235),i(431),i(367)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){return e("rendererseditors.editors.LineStyleOrderEditor",[m],{_markerStore:new i({idProperty:"name",data:[{fullname:g.markerStylePlus,value:"+",name:"+"},{fullname:g.markerStyleCircle,value:"o",name:"o"},{fullname:g.markerStyleAsterisk,value:"*",name:"*"},{fullname:g.markerStylePoint,value:".",name:"."},{fullname:g.markerStyleCross,value:"x",name:"x"},{fullname:g.markerStyleSquare,value:"s",name:"s"},{fullname:g.markerStyleDiamond,value:"d",name:"d"},{fullname:g.markerStyleUpTriangle,value:"^",name:"^"},{fullname:g.markerStyleDownTriangle,value:"v",name:"v"},{fullname:g.markerStyleRightTriangle,value:">",name:">"},{fullname:g.markerStyleLeftTriangle,value:"<",name:"<"},{fullname:g.markerStylePentagram,value:"p",name:"p"},{fullname:g.markerStyleHexagram,value:"h",name:"h"},{fullname:g.markerStyleNone,value:"",name:g.markerStyleNone}]}),_styleStore:new i({idProperty:"name",data:[{fullname:g.lineStyleSolid,value:"-",name:"-"},{fullname:g.lineStyleDashed,value:"--",name:"--"},{fullname:g.lineStyleDotted,value:":",name:":"},{fullname:g.lineStyleDashDot,value:"-.",name:"-."},{fullname:g.lineStyleNone,value:"",name:g.lineStyleNone}]}),_styleGrid:void 0,_textField:void 0,_addButton:void 0,_removeButton:void 0,_upButton:void 0,_downButton:void 0,_isUserChange:!1,_tableData:void 0,_defaultStyle:{style:"-",marker:g.markerStyleNone},_originalValue:void 0,_currentlyOpening:!1,_opened:!1,_mouseOverEditor:!1,_tagBase:"datatools.variableeditor.views.editors.lineStyleOrderEditor.",setState:function(){if(this.domNode){if(!this._styleGrid){var e=this._setupInputNode();this.domNode.appendChild(e)}this.inherited(arguments)}},_createGrid:function(){var i=new(e([r,a,s]))({columns:[l({field:"style",label:"Line",editor:c,editorArgs:{store:this._styleStore,onChange:t.hitch(this,"_lineStyleChanged"),labelType:"html",labelFunc:t.hitch(this,"_labelFuncStyle")}}),l({field:"marker",label:"Marker",editor:c,editorArgs:{store:this._markerStore,onChange:t.hitch(this,"_markerStyleChanged"),labelType:"html",labelFunc:t.hitch(this,"_labelFuncMarker")}})],selectionMode:"single"},"linestyleordergrid");return i.domNode.id="linestyleordergrid",f.addToClassList(i.domNode,"linestyleordergrid"),i._setSort=function(e,t){},i.on("dgrid-select",t.hitch(this,"_tableRowSelected")),i},_editorMouseEnter:function(){this._mouseOverEditor=!0},_editorMouseLeave:function(){this._mouseOverEditor=!1},_labelFuncMarker:function(e,t){return'<div class="linestyleordergrid"><span>'+this._markerStore.query({name:e.name})[0].fullname+"</span></div>"},_labelFuncStyle:function(e,t){return'<div class="linestyleordergrid"><span>'+this._styleStore.query({name:e.name})[0].fullname+"</span></div>"},_setupInputNode:function(){var e=document.createElement("div");return this._textField=new u({name:"linestyletextbox",width:"auto",height:"auto"}),this._textField.domNode.setAttribute("data-tag",this.createDataTag("linestyleordereditor")),this._textField.domNode.id="linestyletextbox",n(this._textField,"keydown",t.hitch(this,"_textFieldKeyPress")),n(this._textField,"blur",t.hitch(this,"_textFieldBlur")),e.appendChild(this._textField.domNode),this._styleGrid=this._createGrid(),e.appendChild(this._styleGrid.domNode),this._createAddButton(),this._createRemoveButton(),this._createUpButton(),this._createDownButton(),e.appendChild(this._addButton.domNode),e.appendChild(this._removeButton.domNode),e.appendChild(this._upButton.domNode),e.appendChild(this._downButton.domNode),this.own(this._styleGrid,this._addButton,this._removeButton,this._upButton,this._downButton,this._textField,e),this.own(n(e,"mouseenter",t.hitch(this,"_editorMouseEnter")),n(e,"mouseleave",t.hitch(this,"_editorMouseLeave"))),e},_redisplayTable:function(){this._styleGrid.refresh(),this._styleGrid.renderArray(this._tableData),this._checkSelection()},_createAddButton:function(){this._addButton=this._createLineStyleButton(g.orderButtonsAdd,"linestyleaddbutton","addLineStyleOrder")},_createLineStyleButton:function(e,i,n){var o=new d({text:e,width:"auto",height:"auto",tag:this._tagBase+i,VerticalAlignment:"middle"});return o.on("click",t.hitch(this,n)),o.startup(),o},addLineStyleOrder:function(){this._isUserChange=!1;var e={style:this._defaultStyle.style,marker:this._defaultStyle.marker},t=0;this._tableData?(t=this._tableData.length,this._tableData[t]=e):this._tableData=[e],this._redisplayTable(),this._propertyValueChanged(),this._styleGrid.select(t,t),h.focus(this._styleGrid.domNode),this._styleGrid.scrollTo({x:0,y:250})},_createRemoveButton:function(){this._removeButton=this._createLineStyleButton(g.orderButtonsRemove,"linestyleremovebutton","removeLineStyleOrder"),this._removeButton.set("disabled",!0)},removeLineStyleOrder:function(){var e=this._getSelectedRow();-1!==e&&(this._isUserChange=!1,this._tableData.splice(e,1),this._redisplayTable(),this._propertyValueChanged(),e=Math.min(e,this._tableData.length-1),this._styleGrid.select(e,e))},_createUpButton:function(){this._upButton=this._createLineStyleButton(g.orderButtonsUp,"linestyleupbutton","moveLineStyleOrderUp"),this._upButton.set("disabled",!0)},moveLineStyleOrderUp:function(){var e=this._getSelectedRow();-1!==e&&(this._isUserChange=!1,this._tableData.splice(e-1,0,this._tableData.splice(e,1)[0]),this._redisplayTable(),this._propertyValueChanged(),this._styleGrid.select(e-1,e-1))},_createDownButton:function(){this._downButton=this._createLineStyleButton(g.orderButtonsDown,"linestyledownbutton","moveLineStyleOrderDown"),this._downButton.set("disabled",!0)},moveLineStyleOrderDown:function(){var e=this._getSelectedRow();-1!==e&&(this._isUserChange=!1,this._tableData.splice(e+1,0,this._tableData.splice(e,1)[0]),this._redisplayTable(),this._propertyValueChanged(),this._styleGrid.select(e+1,e+1))},_getSelectedRow:function(){var e,t=this._styleGrid.selection,i=-1;for(e in t)if(t.hasOwnProperty(e)){i=parseInt(e,10);break}return i},_tableRowSelected:function(){this._checkSelection(),h.focus(this._styleGrid.domNode)},_checkSelection:function(){var e,t=this._styleGrid.selection,i=-1;for(e in t)t.hasOwnProperty(e)&&(i=parseInt(e,10));var n=this._tableData.length;this._removeButton.set("disabled",-1===i||n<=1),this._upButton.set("disabled",0===n||0===i||-1===i),this._downButton.set("disabled",0===n||i===n-1||-1===i)},postCreate:function(){if(!this._styleGrid){var e=this._setupInputNode();this.domNode.appendChild(e)}this.inherited(arguments)},_getLineStylesFromString:function(e){var t;if("string"==typeof e){var i=e.replace(/'/g,"");t=0===i.indexOf("{")?-1===i.indexOf(",")?i.substring(1,i.length-1).split(";"):i.substring(1,i.length-1).split(","):-1===i.indexOf(",")?i.split(";"):i.split(",")}else t=e;return t},edit:function(){if(!this._editing&&(this.inherited(arguments),this._editValue)){var e=this._getLineStylesFromString(this._editValue);this._displayTableForEdit(e)}},_displayTableForEdit:function(e){this._tableData=[],this._originalValue=this._editValue;var t,i,n,o=e.length;for(t=0;t<o;t+=1)i=this._getLineStyleFromString(e[t]),n=this._getMarkerStyleFromString(e[t]),this._tableData[t]={style:i[0].name,marker:n[0].name};this._currentlyOpening=!0;try{h.focus(this._styleGrid.domNode)}catch(e){}this._redisplayTable();var r=this._getLineStyleForTable();this._textField.set("value",this._getLineStyleString(r).replace(/,/g,", ")),this._currentlyOpening=!1,this._opened=!0},_getLineStyleFromString:function(e){var t,i=["--","-.","-",":"],n="";for(t=0;t<i.length;t+=1)if(-1!==e.indexOf(i[t])){n=i[t];break}return this._styleStore.query({value:n})},_getMarkerStyleFromString:function(e){var t,i=["+","o","*",".","x","s","d","^","v",">","<","p","h"];0===e.indexOf("-.")&&(e=e.substring(2));var n="";for(t=0;t<i.length;t+=1)if(-1!==e.indexOf(i[t])){n=i[t];break}return this._markerStore.query({value:n})},_markerStyleChanged:function(e){var t=this._getSelectedRow();-1!==t&&this._isUserChange&&(this._tableData[t].marker=e,this._propertyValueChanged()),setTimeout(function(){this._isUserChange=!0}.bind(this),10)},_lineStyleChanged:function(e){var t=this._getSelectedRow();-1!==t&&this._isUserChange&&(this._tableData[t].style=e,this._propertyValueChanged()),setTimeout(function(){this._isUserChange=!0}.bind(this),10)},_getLineStyleForTable:function(){var e,t,i,n,o,r="{";for(e=0;e<this._tableData.length;e+=1)t=this._tableData[e].style,0===(i=this._styleStore.query({name:t})).total&&(i=this._styleStore.query({fullname:t})),i=i[0].value,n=this._tableData[e].marker,0===(o=this._markerStore.query({name:n})).total&&(o=this._markerStore.query({fullname:n})),e>0&&(r+=","),r=r+"'"+(i+" "+(o=o[0].value)).trim()+"'";return r+="}"},_getLineStyleString:function(e){var t=e.substring(1,e.length-1);return t=t.replace(/'/g,"")},_propertyValueChanged:function(){var e=this._getLineStyleForTable(),t=this._getLineStyleString(e);this._textField.set("value",t.replace(/,/g,", ")),t!==this._originalValue&&(this.dispatchEvent("valueChanged",this,{editor:this,oldValue:this._originalValue,newValue:e}),this._updateLineStyleOrder(t))},_updateLineStyleOrder:function(e){try{this._renderer._editValue=e,this._renderer.editValue=e,this._renderer._value=e,this._renderer._originalValue=e,this._renderer._setUIValue(e.replace(/,/g,", ")),this._value=e,this._editValue=e}catch(e){}},_textFieldKeyPress:function(e){var t=e.which?e.which:e.charCode?e.charCode:e.keyCode?e.keyCode:null;if(e&&null!==t&&t===o.ENTER){var i="{'"+this._textField.inputNode.value.replace(/'/g,"").replace(/\s*,\s*/g,"','")+"'}",n=this._getLineStylesFromString(i);this._displayTableForEdit(n),this.dispatchEvent("valueChanged",this,{editor:this,oldValue:this._originalValue,newValue:i}),this._updateLineStyleOrder(this._getCurrentLineStyle()),this.stopEditing(),this._opened=!1}else e&&null!==t&&t===o.ESCAPE&&(this._textField.set("value",this._getCurrentLineStyle().replace(/,/g,", ")),this._closeLineStyleOrderEditor())},_textFieldBlur:function(e){this._isUserChange=!1;var t=this._getLineStylesFromString(this._textField.get("value").replace(/\s*,\s*/g,"','"));this._displayTableForEdit(t)},_getCurrentLineStyle:function(){var e=this._getLineStyleForTable();return this._getLineStyleString(e)},_isLineStyleButton:function(e){return e&&(e===this._upButton||e===this._downButton||e===this._removeButton||e===this._addButton)},_isLineStyleDropdown:function(e){return e&&e.hasOwnProperty("store")&&(e.store===this._styleStore||e.store===this._markerStore)},_closeLineStyleOrderEditor:function(){this._propertyValueChanged(),this.stopEditing(),this._opened=!1},_commit:function(){},_handleBlurEvent:function(e){if(!this._currentlyOpening&&this._opened){try{if(this._isLineStyleButton(e)||this._isLineStyleDropdown(e)||e._createMenuItem||this.domNode.parentNode.parentNode===e.domNode||this._mouseOverEditor)return}catch(e){}if(e&&e.domNode&&!this._styleGrid.domNode.contains(e.domNode)&&this._closeLineStyleOrderEditor(),h&&h.curNode&&h.curNode.id&&(!h.curNode.id||"linestyleordergrid"!==h.curNode.id)){var t=p.getEnclosingWidget(h.curNode);t&&(t===this||this._isLineStyleButton(t)||this._isLineStyleDropdown(t))||this._closeLineStyleOrderEditor()}}},_setReadOnly:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(223),i(376)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.editors.LogicalEditor",[i],{_handleKeyPress:function(e){this.inherited(arguments);var i=this._getKeyCode(e);null!==i&&i!==t.ENTER||this.makeLogical()},makeLogical:function(){var e=this._getUIValue(),t=e;this._inputBox&&void 0!==e&&(t=this.isNumeric(e)?0===parseInt(e)?"0":"1":"true"===e.toLowerCase()||"yes"===e.toLowerCase()||"on"===e.toLowerCase()?"1":"false"===e.toLowerCase()||"no"===e.toLowerCase()||"off"===e.toLowerCase()?"0":e),this._setUIValue(t)},setValue:function(e,t,i){"0"!==e&&"1"!==e&&(e="logical("+e+")"),this.inherited(arguments)},_setUIValue:function(e){e.indexOf("logical(")>=0&&e.indexOf(")")>=0&&(e=e.substring(8,e.length-1)),this.inherited(arguments)},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},stopEditing:function(){this.makeLogical(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(217),i(213),i(206),i(223),i(1005),i(235),i(367),i(463),i(1677),i(8867)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([c,d],{templateString:h,_textArea:void 0,_bumpers:void 0,_maxLines:6,_maxHeight:void 0,_pads:void 0,postCreate:function(){this.inherited(arguments),this._createTextArea(),this._createBumpers(),this._addListenersToComponents()},_createTextArea:function(){this._textArea=new u({editable:this.isEditable(),disabled:!this.isEditable(),spellcheck:!1,height:"auto"}),this._textArea.placeAt(this.domNode).startup(),this.focusNode=this._textArea.focusNode,this.inputNode=this._textArea.inputNode,this._setUIValue(this._value),this._textArea.domNode.setAttribute("data-tag",this.createDataTag("multilinetexteditor")),this._updateMaxHeight()},_createBumpers:function(){this._bumpers={left:i.create("input",{type:"text",class:"bumper",tabindex:-1},this.domNode,"first"),right:i.create("input",{type:"text",class:"bumper",tabindex:-1},this.domNode,"last")}},_updateMaxHeight:function(){if(this._textArea&&this._textArea.domNode){this._textArea.set("height","auto");var e=this.inputNode.value;this.inputNode.value="",this.inputNode.rows=this._maxLines,this._maxHeight=this.inputNode.scrollHeight,this.inputNode.rows=2,this.inputNode.value=e,this._maxHeight?(this._pads=n.getPadBorderExtents(this._textArea.domNode).h,this._resizeTextArea(),this.inputNode.scrollTop=this._maxHeight):setTimeout(t.hitch(this,"_updateMaxHeight"),16)}},_addListenersToComponents:function(){this.own(r(this._textArea,"focus",t.hitch(this,"edit")),r(this._textArea,"change",t.hitch(this,"_handleTextAreaChange")),r(this._textArea,"input",t.hitch(this,"_resizeTextArea")))},_handleTextAreaChange:function(){this.setValue(this._getUIValue())},_resizeTextArea:function(){if(this._textArea&&this._maxHeight&&this.inputNode.scrollHeight){this._textArea.set("height",1),o.set(this.inputNode,"overflow-y","hidden");var e=this.inputNode.scrollHeight>=this._maxHeight,t=0;try{t=l.getSelectionStart(this.inputNode)}catch(e){}this.inputNode.value+="\n",this._textArea.set("height",Math.min(this.inputNode.scrollHeight,this._maxHeight)+this._pads),this.inputNode.value=this.inputNode.value.slice(0,-1),e?o.set(this.inputNode,"overflow-y","scroll"):o.set(this.inputNode,"overflow-y","auto"),s.curNode===this.inputNode&&l.selectRange(this.inputNode,t,t)}},setValue:function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}this.inherited(arguments),this._setUIValue(e)},setState:function(e){this.domNode&&(e&&(this._maxLines=Math.max(2,e.maxLines||6),this._maxHeight&&this._updateMaxHeight()),this.inherited(arguments))},setEditable:function(e){this.inherited(arguments);var t=this.isEditable();this._textArea&&this._textArea.set("editable",t)&&this._textArea.set("disabled",!t)},_getUIValue:function(){return this._toLines(this.inputNode.value)},_setUIValue:function(e){this._textArea&&(this._textArea.set("value",this._toContent(e)),this._resizeTextArea())},edit:function(){s.focus(this.focusNode),this._textArea.set("editable",!0),this.inherited(arguments)},cancelEditing:function(){this._setUIValue(this._originalValue),this.inherited(arguments)},_setReadOnly:function(e){this._textArea&&this._textArea.set("readOnly",e)},_handleMouseEvent:function(e){"mousedown"===e.type&&this.edit(),this.inherited(arguments)},_handleKeyboardEvent:function(e){"keydown"===e.type?this._handleKeyDown(e):this.isEditing()||this.inherited(arguments)},_handleKeyDown:function(e){if(this.isEditing())switch(this._getKeyCode(e)){case a.ESCAPE:e&&e.preventDefault&&e.preventDefault(),this.cancelEditing(),s.focus(this._bumpers.right);break;case a.TAB:e&&e.preventDefault&&e.preventDefault(),this._addCharAtPosition("\t");break;case a.ENTER:if(e&&e.preventDefault&&e.preventDefault(),e&&e.altKey){this._addCharAtPosition("\n");break}l.compareArrays(this._getUIValue(),this._value)?(this.stopEditing(),s.focus(this.domNode),setTimeout(function(){s.curNode===this.domNode&&(this._textArea.set("editable",!1),s.focus(this._bumpers.left))}.bind(this))):(e&&e.preventDefault&&e.preventDefault(),this.stopEditing(),this._textArea.set("editable",!1),s.focus(e&&e.shiftKey?this._bumpers.left:this._bumpers.right))}else switch(this._getKeyCode(e)){case a.ENTER:e&&e.preventDefault&&e.preventDefault(),this.edit();break;case a.TAB:s.focus(this.domNode),setTimeout(function(){s.curNode===this.domNode&&this.edit()}.bind(this))}},_addCharAtPosition:function(e){var t=l.getSelectionStart(this.inputNode),i=this.inputNode.value;this.inputNode.value=i.substr(0,t)+e+i.substr(t,i.length),l.selectRange(this.inputNode,t+1,t+1),this.inputNode.scrollTop=1e3,this._resizeTextArea()},_toContent:function(e){return"string"==typeof e?e:(e||[]).join("\n")},_toLines:function(e){return e.split("\n")}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="multilineTextEditor" data-tag="datatools.variableeditor.views.editors.MultilineTextEditor"></div>'},function(e,t,i){var n,o;n=[i(203),i(376)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.editors.NumericEditor",[t],{_setUIValue:function(e){var t=e;try{if(null!=e&&""!==e){var i=parseInt(e);parseFloat(e)===i&&(t=i),(this.isHex(e)||this.isRational(e))&&(t=e),this.isComplex(e)&&(t=e)}else t="0"}catch(e){}this._inputBox.set("value",t)},isComplex:function(e){return String(e).replace(/\s+/g,"").match(/^([-+]?(?:\d+|\d*\.\d+))?[-+]?(\d+|\d*\.\d+)?[ij]$/i)},isHex:function(e){return/[0-9A-Fa-f]{16}/g.test(e)},isRational:function(e){return/[0-9]\/[0-9]/.test(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(376)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.editors.NumericTextEditor",[t],{hasValueChanged:function(e){var t=this.inherited(arguments);try{"string"==typeof e&&"number"==typeof this._originalValue&&"number"==typeof this._editValue&&this._originalValue.toString()===e&&this._editValue.toString()===e&&(t=!1)}catch(e){}return t}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8871)],o=i.dj.d(n,(function(e,t){return e([t],{_objectSelected:function(){this.dispatchEvent("actionEvent",this,{actionType:"objectSelectionChanged",objectToSelect:this.propertyName,selectionCriteria:"propertyName"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(206),i(210),i(213),i(367),i(431)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([a],{_oldValue:null,postCreate:function(){this.inherited(arguments),this._setupInputNode()},_setupInputNode:function(){if(this._value){var e=this._value;if(0===this._value.indexOf("0×0")?e=s.emptyGraphicsObject:0===this._value.indexOf("1×1 ")&&(e=this._value.replace("1×1 ","")),e=e.trim(),this._inputBox=i.create("div"),this._inputBox.innerHTML=e,"Root"!==e&&e!==s.emptyGraphicsObject){o.add(this._inputBox,"hyperlinkEditor");var a=i.create("canvas"),l=a.getContext("2d").measureText(this._inputBox.innerHTML).width;i.destroy(a),r.set(this._inputBox,"width",1.2*l+"px"),this.own(n(this._inputBox,"mousedown",t.hitch(this,"_objectSelected")))}this.domNode.appendChild(this._inputBox)}},setState:function(){if(this.domNode&&this._inputBox){if(this._value===this._oldValue)return;this._oldValue=this._value,i.empty(this.domNode),this._setupInputNode()}},_inPlaceEdit:function(){},_handleMouseEvent:function(){},_setReadOnly:function(){},_objectSelected:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(206),i(225),i(215),i(216),i(231),i(235),i(604),i(8873),i(1676),i(8876),i(8877),i(828)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){function f(e){return!(e=void 0!==e.value?e.value:e).length||e[0]instanceof Array?e:[e]}function g(e){return e=void 0!==e.value?e.value:e}function m(e,t){return JSON.stringify(e)===JSON.stringify(t)}function _(e){return JSON.parse(JSON.stringify(e))}function v(e){return e.map((function(e){return Math.round(1e4*e)/1e4}))}return e([c,u,r,a],{templateString:p,constructor:function(e){var t=this._getScaleColorsInfo(e);this.model=new h(t),this.eventName="tableupdated",this.propNameInModelToGetAllItems="ScaleColorTableContents";var i={tableData:this._getTableData()};this.table=new d(i),this.own(this.table),this._initializeView(),this._popupOpened=!1,this._hacked=!1},postCreate:function(){this.table.placeAt(this.domNode)},startup:function(){this.inherited(arguments),this.table.startup(),this._addWorkaroundForFocusIssue()},onOpen:function(){this.table.grid.focus(),0===Object.keys(this.table.grid.selection).length&&this.table.grid.select(0,0)},_getScaleColorsInfo:function(e){var t={};return e.forEach((function(e){switch(e.propertyName){case"ScaleColors":t.scaleColors=_(f(e.values[0]));break;case"ScaleColorLimits":t.scaleColorLimits=_(f(e.values[0]));break;case"Limits":e.values&&(t.range=_(g(e.values[0])))}})),t.range||(t.range=_(g(e[0].meta.richEditorProperties.Limits))),t},_updateEditor:function(e,t){switch(t){case"ScaleColors":var i=f(e[0]);m(this.model.getScaleColors(),i)||this.set("scaleColors",_(i));break;case"ScaleColorLimits":var n=f(e[0]);m(this.model.getScaleColorLimits(),n)||this.set("scaleColorLimits",_(n));break;case"Limits":this.set("range",_(g(e[0])))}},_setScaleColorsAttr:function(e){this._modelUpdateListener.pause(),this.model.setScaleColors(e),this._reloadTable(),this._modelUpdateListener.resume()},_setScaleColorLimitsAttr:function(e){this._modelUpdateListener.pause(),this.model.setScaleColorLimits(e),this._reloadTable(),this._modelUpdateListener.resume()},_setScaleColorsAndLimitsAttr:function(e){this._modelUpdateListener.pause(),this.model.setScaleColorsAndLimits(e.scaleColors,e.scaleColorLimits),this._reloadTable(),this._modelUpdateListener.resume()},_setRangeAttr:function(e){this.model.setRange(e)},_onTableEdit:function(e){var t,i;t=e.rowId,i=e.value;try{switch(e.columnId){case"0":this.model.updateScaleColor(v(i),t);break;case"1":this.model.updateStartValue(i,t);break;case"2":this.model.updateEndValue(i,t)}this.inherited(arguments)}catch(e){if("ScaleColorLimitsException"!==e.name)throw e;setTimeout(function(){this._revertTable()}.bind(this),0),l.displayErrorMessage(e.message,e.name)}},_revertTable:function(){var e=this.model.getTableData();this.model.setTableData(e),this.table.set("tableData",e)},_onAddBtnClick:function(e){var t,i=e.currentSelectedRow;t=-1===i?this.model.getComponentProperty("ScaleColorTableContents").length:i+1,this.model.addRow(t),this._reloadTable(),this.inherited(arguments)},_onDeleteBtnClick:function(e){this.model.deleteRow(e.currentSelectedRow),this._reloadTable(),this.inherited(arguments)},_getTableData:function(){return this.model.getComponentProperty("ScaleColorTableContents")},_handleModelUpdate:function(e){var t,i,n=e.eventData;["ScaleColors","ScaleColorLimits"].forEach(function(e){t=n[e].oldValue,i=n[e].newValue,JSON.stringify(i)!==JSON.stringify(t)&&this._commitValue(e,t,i,"client")}.bind(this))},storePopupContainer:function(e){this._dropDown=e},_addWorkaroundForFocusIssue:function(){if(!this._hacked){var e=this._dropDown&&this._dropDown.closeMenu;e&&(this._dropDown.closeMenu=function(t){this._popupOpened||!0===this.table._isEditorShown||e.call(this._dropDown,t)}.bind(this)),this._hacked=!0,i.before(this.table._ColorColumnEditor,"_openPopupMenu",function(){this._popupOpened=!0}.bind(this)),i.before(this.table._ColorColumnEditor,"_closePopupMenu",function(){this._popupOpened=!1,this.domNode.focus()}.bind(this))}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(277),i(30),i(1675),i(431),i(796),i(571),i(1004),i(211),i(8874)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e(r,{constructor:function(){this.dgridColumnconfig=this._getScaleColorTableConfig(),this._IsHandlingEdits=!0,this._isEditorShown=!1},postCreate:function(){this.inherited(arguments),this._ColorColumnEditor=new u({grid:this.grid}),this._ColorColumnEditor.startup(),this.own(this._ColorColumnEditor.on("color-edit",t.hitch(this,(function(e){var t=e.columnId,i=e.rowId,n=e.value;this.emit("table-edit",{columnId:t,rowId:i,value:n})}))),this._ColorColumnEditor.on("popup-open",t.hitch(this,(function(e){this._IsHandlingEdits=!1}))),this._ColorColumnEditor.on("popup-close",t.hitch(this,(function(e){this._IsHandlingEdits=!0})))),this.grid.on("dgrid-editor-show",function(){this._isEditorShown=!0}.bind(this)),this.grid.on("dgrid-editor-hide",function(){setTimeout(function(){this._isEditorShown=!1}.bind(this),0)}.bind(this)),this.deleteRowButtonWidget._setTabIndexOnNode=function(){}},_setTableDataAttr:function(){this._IsHandlingEdits&&this.inherited(arguments)},getRowToSelectPostAddition:function(e,t){return e>=0?e+1:this.inherited(arguments)},_getScaleColorTableConfig:function(){return this._startEditor=c({label:a.scaleColorTableStartColumnHeader,field:"start",editor:"text",editOn:"dblclick",sortable:!1,autoSave:!0}),this._endEditor=c({label:a.scaleColorTableEndColumnHeader,field:"end",editor:"text",editOn:"dblclick",sortable:!1,autoSave:!0}),[{label:a.scaleColorTableColorColumnHeader,renderCell:u.renderCell,field:"scaleColor",sortable:!1,autoSave:!0},this._startEditor,this._endEditor]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(210),i(447),i(206),i(204),i(796),i(571),i(215),i(216),i(361),i(8875),i(1005),i(30),i(277)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){var m=e([c,u,d],{templateString:h,value:"#FF0000",constructor:function(e){this.grid=e.grid,this._CurrentlyEditedRow=null,this._ColorPickerListener=null},postCreate:function(){this.inherited(arguments),this.DropDownColorPicker=new s({showPreview:!0,showCustomPicker:!0,showRecentColors:!1}),this.ColorTooltipDialog=new f({class:"nonModal",content:this.DropDownColorPicker,onBlur:a.hitch(this,(function(){this._closePopupMenu()}))}),this.own(this.grid.on(".dgrid-cell:click",a.hitch(this,(function(e){var t=this.grid.cell(e),i=t.element;if(void 0!==i&&n.contains(i,"vc-pe-colorColumnCell")){var o=parseInt(t.row.id,10);o!==this._CurrentlyEditedRow?this._openPopupMenu(o,i):this._closePopupMenu()}}))))},_addColorPickerListener:function(){this._ColorPickerListener=this.DropDownColorPicker.watch("value",a.hitch(this,(function(e,t,i){var n=this._CurrentlyEditedRow,o=this.DropDownColorPicker.get("value"),r=new l(o).toDoubleRGB();this.grid.cell(n,0).element.style.background=o,this.emit("color-edit",{columnId:"0",rowId:n,value:r})})))},_openPopupMenu:function(e,t){this._CurrentlyEditedRow=e,g.open({popup:this.ColorTooltipDialog,around:t,doNotClose:!0,onCancel:function(){this._closePopupMenu(),t.focus()}.bind(this)});var i=t.style.backgroundColor;this.DropDownColorPicker.set("value",i),this._addColorPickerListener(),this.ColorTooltipDialog.domNode.focus(),this.emit("popup-open",{})},_closePopupMenu:function(){g.close(this.ColorTooltipDialog),this._CurrentlyEditedRow=void 0,this._ColorPickerListener.remove(),this.emit("popup-close",{})}});return m.renderCell=function(e,t,i){n.add(i,"vc-pe-colorColumnCell"),i.style.background=l.fromDoubleRGB(t).toCss()},m}),e,t),e.exports=o},function(e,t){e.exports='<div class="vc-pe-colorColumnCell">\n\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(222),i(431)],o=i.dj.d(n,(function(e,t,i){function n(e){var t=/[a-d|f-z]+/i.test(e);return!(isNaN(parseFloat(e))||!isFinite(e)||t)}return e([t],{DEFAULT_COLOR:[1,0,0],constructor:function(e){this._scaleColors=e.scaleColors,this._scaleColorLimits=e.scaleColorLimits,this._range=e.range,this._TableData=this._generateTableData(this._scaleColors,this._scaleColorLimits),this.minimumStates=0,this.maximumStates=Number.POSITIVE_INFINITY},_generateScaleColors:function(e){return e.map((function(e){return e.scaleColor}))},_generateScaleColorLimits:function(e){return e.map((function(e){return[e.start,e.end]}))},_generateTableData:function(e,t){var i=[];t.length>0&&!Array.isArray(t[0])&&(t[0]=t.slice(0),t.length=1),e.length>0&&!Array.isArray(e[0])&&(e[0]=e.slice(0),e.length=1);for(var n=Math.min(t.length,e.length),o=0;o<n;o++)i.push({scaleColor:e[o],start:t[o][0],end:t[o][1]});return i},getTableData:function(){return this._generateTableData(this._scaleColors,this._scaleColorLimits)},setTableData:function(e){this._TableData=e},getComponentProperty:function(e){switch(e){case"ScaleColorTableContents":return this._TableData;default:throw new Error("In this temporary workaround, the propertyName should be ScaleColorTableContents")}},setRange:function(e){this._range=e},setScaleColors:function(e){this.setScaleColorsAndLimits(e,this._scaleColorLimits)},setScaleColorLimits:function(e){this.setScaleColorsAndLimits(this._scaleColors,e)},getScaleColors:function(){return this._scaleColors},getScaleColorLimits:function(){return this._scaleColorLimits},setScaleColorsAndLimits:function(e,t){this.emit("modelUpdated",{eventData:{ScaleColors:{newValue:e,oldValue:this._scaleColors},ScaleColorLimits:{newValue:t,oldValue:this._scaleColorLimits}}}),this._scaleColors=e,this._scaleColorLimits=t,this._TableData=this._generateTableData(e,t)},updateScaleColor:function(e,t){this._TableData[t].scaleColor=e;var i=this._generateScaleColors(this._TableData);this.setScaleColors(i)},updateStartValue:function(e,t){n(e)||this._errorThrow("ScaleColorLimitsException",i.invalidNumberMessage),e>=this._getScaleColorLimitsInRow(t)[1]&&this._errorThrow("ScaleColorLimitsException",i.invalidStartColorLimitMessage),this._TableData[t].start=parseFloat(e);var o=this._generateScaleColorLimits(this._TableData);this.setScaleColorLimits(o)},updateEndValue:function(e,t){n(e)||this._errorThrow("ScaleColorLimitsException",i.invalidNumberMessage),e<=this._getScaleColorLimitsInRow(t)[0]&&this._errorThrow("ScaleColorLimitsException",i.invalidEndColorLimitMessage),this._TableData[t].end=parseFloat(e);var o=this._generateScaleColorLimits(this._TableData);this.setScaleColorLimits(o)},addRow:function(e){var t=this._range[1]-.1*Math.abs(this._range[1]-this._range[0]),i=this._range[1];this._TableData.splice(e,0,{start:t,end:i,scaleColor:this.DEFAULT_COLOR});var n=this._generateScaleColors(this._TableData),o=this._generateScaleColorLimits(this._TableData);this.setScaleColorsAndLimits(n,o)},deleteRow:function(e){this._TableData.splice(e,1);var t=this._generateScaleColors(this._TableData),i=this._generateScaleColorLimits(this._TableData);this.setScaleColorsAndLimits(t,i)},_getScaleColorLimitsInRow:function(e){return[parseFloat(this._TableData[e].start),parseFloat(this._TableData[e].end)]},_getIndexOfRowInModel:function(e,t,i){for(var n=0;n<i.length;n++)if(e===i[n][0]&&t===i[n][1])return n;return-1},_errorThrow:function(e,t){var i=new Error(t);throw i.name=e,i}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="scaleColorEditor inspector-editor dgrid-inspector-editor vc-pe-optionsTable vc-pe-editableTableTearaway vc-pe-optionsTableTearaway" tabindex="0"></div>\n'},function(e,t,i){var n,o;n=[i(203),i(376)],o=i.dj.d(n,(function(e,t){return e([t],{postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-tag","datatools.variableeditor.views.editors.ScaleColorsTextBoxEditor")},setValue:function(e){var t=function(e){return e.map((function(e){return Math.round(100*e)/100})).join()};e instanceof Array&&(e=e[0]instanceof Array?e.map(t).join(";"):t(e)),this.inherited(arguments)},setEditValue:function(e){e=this._value,this.inherited(arguments)},setState:function(e){e&&(e.isMetaData=!1),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(206),i(214),i(235),i(367),i(376),i(1132),i(1654),i(238)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e("rendererseditors.editors.SliderEditor",[a],{_slider:void 0,_textBox:void 0,_labels:void 0,_minValue:0,_maxValue:10,_step:1,setValue:function(e){var t=e;e&&e.hasOwnProperty("value")&&(t=e.value,this._value===t)||(e=t,this._slider&&this._setSliderValue(t),this._textBox&&this._setTextValue(t),this.inherited(arguments))},edit:function(){},_inPlaceEdit:function(){},setState:function(e){this.domNode&&(e&&(void 0!==e.MinValue&&(null===e.MinValue?this._minValue=0:this._minValue=e.MinValue),void 0!==e.MaxValue&&(null===e.MaxValue?this._maxValue=10:this._maxValue=e.MaxValue),void 0!==e.Step&&(this._step=e.Step)),this._slider=void 0,this._slider||this._setupSlider(),this.addCSSClasses("inspectorSliderEditor",this.domNode),this.inherited(arguments))},_setSliderValue:function(e){this._slider.set("value",e)},_setTextValue:function(e){this._textBox._setUIValue(e),this._textBox._editValue=e},_setupSlider:function(){this._labels=new c({labels:[this._minValue,this._maxValue]}),this._slider=new l({class:"sliderLabels",value:this._value,disabled:void 0!==this._editable&&!this._editable,tag:this.createDataTag("SliderRenderer","cell"),minimum:this._minValue,maximum:this._maxValue,discreteValues:(this._maxValue-this._minValue)/this._step+1,showButtons:!1}),this._slider.addChild(this._labels,0),this._slider.on("change",t.hitch(this,"_commitValue")),i.empty(this.domNode),this.domNode.appendChild(this._textBox.domNode),this.domNode.appendChild(this._slider.domNode),this._slider.startup(),this.own(this._slider)},_createTextBox:function(){this._textBox=new s(r.mergeObjects(this._allArgs,{inPlaceEditor:void 0,state:{isMetaData:!1},spellcheck:!1})),this._textBox.placeAt(this.domNode).startup(),o.after(this._textBox,"stopEditing",function(){d.curNode===this._textBox.focusNode&&d.curNode.blur()}.bind(this)),this._setUIValue(this._value),this._textBox.addEventListener("valueChanged",t.hitch(this,"_handleTextBoxValueChanged")),this.own(this._textBox)},postCreate:function(){this._slider||(this._createTextBox(),this._setupSlider()),this.inherited(arguments)},_commitValue:function(e){!0!==this._beingDestroyed&&this.setValue(this._slider.get("value"))},_handleTextBoxValueChanged:function(e){this.setValue(this._textBox._getUIValue())},cancelEditing:function(){this._editing&&(this._setSliderValue(this._originalValue),this._textBox.cancelEditing(),this.inherited(arguments))},_getUIValue:function(){return this._slider.get("value")},_setUIValue:function(e){this._slider&&this._setSliderValue(e),this._textBox&&this._setTextValue(e)},_setReadOnly:function(e){this._slider&&(this._textBox.setEditable(!e),!0===e?this._slider.set("disabled",!0):this._slider.set("disabled",!1))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(223),i(206),i(367),i(520)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("rendererseditors.editors.SpinnerEditor",[r],{_spinner:void 0,_minValue:Number.NEGATIVE_INFINITY,_maxValue:Number.POSITIVE_INFINITY,_includeMin:!0,_includeMax:!0,_step:1,setValue:function(e){var t=e;e&&e.hasOwnProperty("value")&&(t=e.value,this._value===t)||(e=t,this._spinner&&this._setSpinnerValue(t),this.inherited(arguments))},edit:function(){},_inPlaceEdit:function(){},setState:function(e){this.domNode&&(e&&(void 0!==e.MinValue&&(null===e.MinValue?this._minValue=Number.NEGATIVE_INFINITY:this._minValue=e.MinValue),void 0!==e.MaxValue&&(null===e.MaxValue?this._maxValue=Number.POSITIVE_INFINITY:this._maxValue=e.MaxValue),void 0!==e.Step&&(this._step=e.Step),void 0!==e.IncludeMin&&(this._includeMin=e.IncludeMin),void 0!==e.IncludeMax&&(this._includeMax=e.IncludeMax)),this._spinner=void 0,this._spinner||this._setupSpinner(),this.addCSSClasses("inspectorSpinnerEditor",this.domNode),this.inherited(arguments))},_setSpinnerValue:function(e){this._spinner.set("value",e)},_setupSpinner:function(){this._spinner=new a({class:"spinner",value:this._value,disabled:void 0!==this._editable&&!this._editable,tag:this.createDataTag("SpinnerRenderer","cell"),limits:{minimum:this._minValue,maximum:this._maxValue},step:this._step,includeMinimum:this._includeMin,includeMaximum:this._includeMax,includeDefaultErrorText:!0}),this._spinner.on("change",t.hitch(this,"_commitValue")),i.empty(this.domNode),this.domNode.appendChild(this._spinner.domNode),this._spinner.startup(),this.own(this._spinner)},postCreate:function(){this._spinner||this._setupSpinner(),this.inherited(arguments)},_commitValue:function(e){!0!==this._beingDestroyed&&this.setValue(this._spinner.get("value"))},_handleKeyboardEvent:function(e){"keydown"===e.type&&this._handleKeyDown(e);var i=t.mixin({editor:this},e);this.dispatchEvent(e.type,this.domNode,i)},_handleKeyDown:function(e){var t=this._getKeyCode(e);e&&null!==t&&t===n.ESCAPE&&this.cancelEditing()},cancelEditing:function(){this._editing&&(this._setSpinnerValue(this._originalValue),this.inherited(arguments))},_getUIValue:function(){return this._spinner.get("value")},_setUIValue:function(e){this._setSpinnerValue(e)},_setReadOnly:function(e){this._spinner&&(!0===e?this._spinner.set("disabled",!0):this._spinner.set("disabled",!1))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(223),i(238),i(367),i(1677),i(235)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=e("rendererseditors.editors.TextAreaEditor",[o],{_textArea:void 0,_inputType:"",_outputType:void 0,_delimiters:[",",";"],_serverEditValue:void 0,setValue:function(e){var t=e;e&&e.hasOwnProperty("value")&&(t=e.value),this._textArea&&this._textArea.set("value",t),this.inherited(arguments),this._value=String(this._value)},setState:function(e){this.domNode&&(this._textArea||this._setupInputNode(),e&&e.outputType&&(this._outputType=e.outputType),e&&e.inputType&&(this._inputType=e.inputType),e&&void 0!==e.delimiters&&(0===e.delimiters.length?this._delimiters=[]:this._delimiters=[e.delimiters]),e&&void 0!==e.editValue&&(this._serverEditValue=e.editValue),this._setupDomClasses(e),this.inherited(arguments))},_setupDomClasses:function(e){var t=e?e.dataType?e.dataType:e.class:"char",i=!!e&&e.isTemporaryValue;this._applyCssClass(t,i,!1,this._textArea.domNode),this.renderer&&this.renderer.isEditable()?(this.removeCSSClasses("variableEditorNotEditable",this._textArea.domNode),this.removeCSSClasses("variableEditorNotEditable",this._textArea.inputNode)):(this.addCSSClasses("variableEditorNotEditable",this._textArea.domNode),this.addCSSClasses("variableEditorNotEditable",this._textArea.inputNode)),this.addCSSClasses("veTextAreaEditor")},_handleKeyboardEvent:function(e){if(this._editing){"keydown"===e.type&&this._handleKeyDown(e);var i=t.mixin({editor:this},e);this.dispatchEvent(e.type,this.domNode,i)}else this.inherited(arguments)},_handleKeyDown:function(e){var t=this._getKeyCode(e);e&&null!==t&&t===i.ESCAPE&&this.cancelEditing()},_commitValue:function(e){var t=this._getContent(e);t!==this._originalValue?t!==this._getContent(this._editValue)?(this.dispatchEvent("valueChanged",this,{editor:this,oldValue:this._originalValue,newValue:e}),this._value=this._getContent(e),this._editValue=e,this._originalValue=this._getContent(e),this._textArea.set("value",this._getContent(e)),this._renderer._originalValue=e,this.renderer._editValue=this._editValue):this._revertChanges():this._textArea.set("value",this._originalValue),this.stopEditing()},_getContent:function(e){return"string"==typeof e?0===e.indexOf("[")||0===e.indexOf("{")?e.substring(1,e.length-1):e:JSON.stringify(e)},_getNumericArrayCommitValues:function(e){var t=[],i=e.replace(/\[|\]/g,"");return i.length>0&&i.split(",").forEach((function(e){e=e.replace(/inf(\s*)/gi,"Infinity"),t.push(parseFloat(e))})),t},_focus:function(){this._textArea&&this._textArea.focusNode&&this._textArea.focusNode.focus&&n.curNode!==this._textArea.focusNode&&n.focus(this._textArea.focusNode)},_getCommitValue:function(){var e;if(this._textArea){var t=this._textArea.get("value"),i=this._outputType||this._inputType;if("cell"===i||"char"===i&&-1!==t.indexOf("\n"))e=this._getCellArrayValue(t);else if("char"===i)e=this._getCharArrayValue(t);else if("numericArrayStr"===i)e=this._getNumericArrayValue(t);else if("numericArray"===i){var n=this._getNumericArrayValue(t);e=this._getNumericArrayCommitValues(n)}else"array"===i&&(e=""===t?[]:t.split(/\r\n|\r|\n/g))}return e},_handleBlurEvent:function(e){if(e===this&&this._getPossibleBooleanFunctionValue(this._commitOnBlur,!0)&&(!this.domNode.contains(document.activeElement)||-1===n.activeStack.indexOf(this.domNode.id))){var t=this._getCommitValue();t&&this._commitValue(t),this.inherited(arguments)}},_setupInputNode:function(){this._textArea=new r({value:this._value,readOnly:!0,tag:this.createDataTag("TextBoxRenderer","cell"),style:{resize:"none"}}),this._textArea.domNode.setAttribute("data-tag",this.createDataTag("textareaeditor")),this.domNode.appendChild(this._textArea.domNode)},postCreate:function(){this._textArea||this._setupInputNode(),this.inherited(arguments)},_revertChanges:function(){this._value=this._originalValue},stopEditing:function(){this._editing&&(this._setReadOnly(!0),this._textArea.set("value",this._originalValue),this.inherited(arguments))},edit:function(){if(!this._editing&&(this._setReadOnly(!1),this.inherited(arguments),this._textArea&&this._textArea.inputNode&&this._textArea.inputNode.focus(),void 0!==this._editValue)){var e=this._getMultiLineEditValue(this._editValue);this._textArea.set("value",e),this._textArea.startup(),this._textArea.inputNode.scrollTop=0,a.selectRange(this._textArea.inputNode,0,0);var i=t.hitch(this,"_getFocus");setTimeout(i,0)}},_setReadOnly:function(e){this._textArea&&(!0===e?this._textArea.set("readOnly",!0):this._textArea.set("readOnly",!1))},_getFocus:function(){n.focus(this._textArea.inputNode)},_getMultiLineEditValue:function(e){if("string"==typeof e)return"{}"===e?(this._inputType="cell",""):"[]"===e?(this._inputType="numericArrayStr",""):0===e.indexOf("{")||"cell"===this._inputType?(this._inputType="cell",this._serverEditValue&&(e=this._serverEditValue.join?this._serverEditValue.join("\n"):this._serverEditValue),e):-1!==e.indexOf("'")||"char"===this._inputType?(this._inputType="char",e.replace(/'/g,"")):("numericArrayStr"===this._inputType?e=e.replace("[","").replace("]",""):this._inputType="array",this._delimiters.forEach((function(t){e=e.replace(new RegExp(t,"g"),"\n")})),e);if(Array.isArray(e)&&e.length<=0)return this._inputType="array","";var t=JSON.stringify(e);-1!==t.indexOf('"')?this._inputType="array":this._inputType="numericArray";for(var i="",n=0;n<e.length;n+=1)i+=e[n],n<e.length-1&&(i+="\n");if("numericArray"===this._inputType&&""===(i=i.replace(/Infinity/gi,"inf"))&&"number"==typeof e)return t;if(i.lastIndexOf("\n")>0&&i.lastIndexOf("\n")+1===i.length){for(var o=i.trim();i.lastIndexOf("\n")>0&&i.lastIndexOf("\n")+1===i.length;){o+="\n";var r=i.length;i=i.substring(0,r-1)}return o}return i},_getCellArrayValue:function(e){var t=e;return 0===e.trim().length?t="{}":(0!==this._delimiters.length&&(t=e.replace(/'/g,"''").replace(/\n/g,"';'")),-1===e.indexOf("{'")&&(t="{'"+t),-1===e.indexOf("'}")&&(t+="'}")),t},_getCharArrayValue:function(e){var t=e;return 0===e.trim().length?t="''":(t=e.replace(/\n/g,"';'"),0!==e.indexOf("'")&&(t="'"+t),e.lastIndexOf("'")!==e.length-1&&(t+="'")),t},_getNumericArrayValue:function(e){var t;if(0===e.trim().length)t="[]";else{for(t=e.trim().replace(/\n/g,",");-1!==t.indexOf(",,");)t=t.replace(/,,/g,",");-1===e.indexOf("[")&&(t="["+t),-1===e.indexOf("]")&&(t+="]")}return t},editOverride:function(e){this._editing||(this._textArea.set("value",e),this.edit())},cancelEditing:function(){this._editing&&(this._textArea.set("value",this._originalValue),this.inherited(arguments))},_getUIValue:function(){return this._textArea.get("value")},_setUIValue:function(e){var t=this._outputType||this._inputType;e||"numericArray"!==t?e||"cell"!==t||(e="{ }"):e="[ ]",this._textArea.set("value",e)},setOutputType:function(e){this._outputType=e},getOutputType:function(){return this._outputType}});return s.INPUT_TYPE_CELL_ARRAY="cell",s.INPUT_TYPE_CHAR_ARRAY="char",s.INPUT_TYPE_NUMERIC_ARRAY_STRING="numericArrayStr",s.INPUT_TYPE_NUMERIC_ARRAY="numericArray",s.INPUT_TYPE_JS_ARRAY="array",s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(213),i(210),i(204),i(206),i(216),i(431),i(211),i(214),i(217),i(386),i(326),i(350),i(243),i(239),i(258),i(594),i(604),i(8883),i(8884),i(8886),i(8887),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){var E="rgb(255, 0, 0)";function S(e){return void 0!==e.value?e.value:e}function w(e){if(Array.isArray(e))return e;if("string"==typeof e){if(0===e.indexOf("{")&&e.lastIndexOf("}")===e.length-1)return""===(e=(e=e.substring(1,e.length-1)).replace(/'/g,""))?[]:e.split(";");try{e="["!==e.substr(0,1)?JSON.parse("["+e+"]"):JSON.parse(e)}catch(t){e=e.replace(/'/g,"")}}return Array.isArray(e)?e:[e]}return e([_,r,d],{templateString:C,_pendingLabelValues:null,_tableModelUpdatedListener:null,_sizeChangedListener:null,_maxRowsExceededListener:null,constructor:function(e){this._props=this._parseMetaData(e);var t,i,r=this._getTicksInfo();if(this._ticksTableModel=new v(r),this._ticksPropName=r.ticksPropName,this._labelsPropName=r.labelsPropName,this._tickLabelsModePropName=r.tickLabelsModePropName,this._ticksModePropName=r.ticksModePropName,this._limitsPropName=r.limitsPropName,Array.isArray(e[0].plugins)){var a=e[0].plugins.filter((function(e){return e.hasOwnProperty("ticksValidator")}));a.length>0&&(t=a[0].ticksValidator)}e[0].clipboardService&&(i=e[0].clipboardService),this._headerMenuEditor=new b({validator:n.clone(t),clipboardService:i}),this.own(this._headerMenuEditor),this.own(o(this._headerMenuEditor,"headerMenuInteraction",this._headerInteractionCallback.bind(this))),this._pausableWindowListener=o.pausable(window,"mousedown",this._handleMouseDown.bind(this)),this._pausableWindowListener.pause(),this._errorState=!1},postCreate:function(){this._initTable(),this._initButtonGroup(),this._createListeners()},_removeListeners:function(){this._tableModelUpdatedListener&&this._tableModelUpdatedListener.remove(),this._sizeChangedListener&&this._sizeChangedListener.remove(),this._maxRowsExceededListener&&this._maxRowsExceededListener.remove(),this._pausableHeaderListener&&this._pausableHeaderListener.remove()},_createListeners:function(){this._removeListeners(),this._tableModelUpdatedListener=o(this._ticksTableModel,"tableModelUpdated",this._handleModelUpdate.bind(this)),this._sizeChangedListener=o(this._ticksTableModel,"sizeChanged",this._sizeChanged.bind(this)),this._maxRowsExceededListener=o(this._ticksTableModel,"maxrowsexceeded",this._maxRowsExceeded.bind(this)),this._pausableHeaderListener=o.pausable(this._table,"headerMenuRequested",this._headerMenuCallback.bind(this))},resize:function(){this.inherited(arguments),this._table.resizeHandler()},_parseMetaData:function(e){var t={};return e.forEach(n.hitch(this,(function(e){t[e.propertyName]=w(S(e.values[0].editValue)),(this._endsWith(e.propertyName,"Tick")||this._endsWith(e.propertyName,"Ticks"))&&(t.isNumeric=e.meta.inPlaceEditorProperties.isNumeric,t.readOnlyTicksColumn=e.meta.inPlaceEditorProperties.readOnlyTicks)}))),t},updateState:function(e,t){if(t===this._ticksPropName){var i=!1;if(this._props.isNumeric===e.isNumeric&&this._props.readOnlyTicksColumn===e.readOnlyTicks||(i=!0),this._props.isNumeric=e.isNumeric,this._props.readOnlyTicksColumn=e.readOnlyTicks,i){this._table.domNode.parentElement.removeChild(this._table.domNode),this._table.destroy();var n=this._getTicksInfo();this._ticksTableModel=new v(n),this._initTable(),this._createListeners()}}},onOpen:function(){this._ticksTableModel.setTableData(this._getTicksInfo()),this._clearErrorStyle(),this.resize(),this._table.focus()},_getTicksInfo:function(){var e={};return Object.keys(this._props).forEach(n.hitch(this,(function(t){switch(!0){case this._endsWith(t,"Tick")||this._endsWith(t,"Ticks"):e.ticksValue=this._props[t],e.ticksPropName=t;break;case this._endsWith(t,"TickLabel")||this._endsWith(t,"TickLabels"):e.labelsValue=this._props[t],e.labelsPropName=t;break;case this._endsWith(t,"TickLabelMode")||this._endsWith(t,"TickLabelsMode"):e.labelMode=this._props[t][0],e.tickLabelsModePropName=t;break;case this._endsWith(t,"TickMode")||this._endsWith(t,"TicksMode"):e.ticksMode=this._props[t][0],e.ticksModePropName=t;break;case this._endsWith(t,"Lim")||this._endsWith(t,"Limits"):e.Limits=this._props[t],e.limitsPropName=t;break;case"isNumeric"===t:e.isNumeric=this._props[t]}}))),e},_addRow:function(){var e,t,i;i=this._ticksTableModel.getDataStore().dataSize,e=(t=this._table.getSelection())&&t.length>0&&t[0].row>=0&&t[0].row<i.rows.end?t[0].row:i.rows.end;var n=this._table.domNode.getElementsByClassName("mw-table-row")[e];n&&n.firstChild.style.color===E||(e+=1,this._ticksTableModel.addRow(e))},_sizeChanged:function(e){var t=0;e.rowDeleted?t=e.rowDeleted-1:e.rowAdded&&(t=e.rowAdded);var i=u.range().setRows(t,t);this._table.scrollTo(i),this._selectRow(t)},_selectNextRow:function(){var e=this._table.getSelection()[0].rows.start+1;e<=this._ticksTableModel.getDataStore().dataSize.rows.end&&this._selectRow(e)},_selectRow:function(e){if(e>=0){var t=f.range().setEntireRows(e,e);this._table.setSelection([t]),this._putCellInFocus(e)}this._updateMinusButtonState()},_putCellInFocus:function(e){var t=this._table.getFocusedCell();if(void 0!==t.column){var i=f.range().setRows(e,e).setColumns(t.column,t.column);this._table.setCellFocus([i])}},_deleteCurrentSelection:function(){var e;e=this._table.getSelection()[0].row,this._ticksTableModel.deleteRow(e)},storePopupContainer:function(e){this._dropDown=e},_updateMinusButtonState:function(){this._minusButton.set("disabled",0===this._ticksTableModel.getTableData().length),this._dropDown&&!this._popupOpened&&this._dropDown.focusNode.focus()},_updateEditor:function(e,t){var i=w(S(e[0].editValue));if(JSON.stringify(this._props[t])!==JSON.stringify(i))switch(this._props[t]=i,t){case this._ticksPropName:case this._labelsPropName:this._ticksTableModel.setTableData(this._getTicksInfo()),this._updateMinusButtonState(),this._headerMenuEditor&&this._headerMenuEditor.updateInterval(this._ticksTableModel.getCurrentInterval()),this._clearErrorStyle();break;case this._tickLabelsModePropName:this._ticksTableModel.setTickLabelMode(i[0]),this._headerMenuEditor&&this._headerMenuEditor.setButtonDisabled(i[0]);break;case this._ticksModePropName:this._ticksTableModel.setTickMode(i[0]),this._headerMenuEditor&&this._headerMenuEditor.setButtonDisabled(i[0]);break;case this._limitsPropName:this._ticksTableModel.setLimits(i)}this._table.focus()},_handleModelUpdate:function(e){if(e[this._ticksPropName]&&(this._props.isNumeric?this._errorState=this._flagInvalidNumericTicks(e[this._ticksPropName].value):e[this._ticksPropName].invalid&&(this._errorState=this._flagTicksAt(e[this._ticksPropName].value,e[this._ticksPropName].invalid)),this._errorState?(this._errorPlaceHolder.innerText=a.ticksEditorErrorMsg,this._props.isNumeric||this._plusButton.set("disabled",!0)):(this._errorPlaceHolder.innerText="",this._plusButton.set("disabled",this._props.readOnlyTicksColumn))),this._errorState)e[this._labelsPropName]&&this._ticksTableModel.setForceUpdateRequested(!0);else{e[this._labelsPropName]?(this._ticksTableModel.setForceUpdateRequested(!1),this._props[this._tickLabelsModePropName]="manual"):this._props[this._ticksModePropName]="manual";var t=!0;Object.keys(e).forEach(n.hitch(this,(function(i){this._props[i]&&(t=t&&this._props[i].length===e[i].value.length,this._props[i]=e[i].value,this._commitValue(i,e[i].oldValue,e[i].value,"client"))}))),t&&this._selectNextRow()}},_flagTicksAt:function(e,t){var i=!1;return e.forEach(n.hitch(this,(function(e,n){-1!==t.indexOf(n)?(this._styleCellInColor(n,E),i=!0):this._styleCellInColor(n,"rgb(0, 0, 0)")}))),i},_flagInvalidNumericTicks:function(e){var t=!1;if(!this._props.isNumeric)return t;for(var i=0;i<e.length;i++)if("string"!=typeof e[i])if(e[i]>=e[i+1]){if(t=!0,i+1===e.length-1){this._styleCellInColor(i+1,E);break}this._styleCellInColor(i,E)}else this._styleCellInColor(i,"rgb(0, 0, 0)");else this._styleCellInColor(i,E),t=!0;return t},_styleCellInColor:function(e,t){var i=this._table.domNode.getElementsByClassName("mw-table-row")[e];i&&(i.firstChild.style.color=t)},_clearErrorStyle:function(){this._errorPlaceHolder.innerText="",this._plusButton.set("disabled",this._props.readOnlyTicksColumn),this._setFirstColumnColor("rgb(0, 0, 0)")},_setFirstColumnColor:function(e){for(var t=this._table.domNode.getElementsByClassName("mw-table-row"),i=0;i<t.length;i++)t[i].firstChild.style.color=e},_initTable:function(){this._table=new u(this._ticksTableModel.getDataStore(),this._getTableConfig()),this.own(this._table),s.place(this._table.domNode,this._tableContainer),this._table.startup(),this._table.setSelection([u.range().setEntireRows(0,0)]),this._table.focus()},_getTableConfig:function(){var e={features:[u.FEATURE.SingleRowSelection,u.FEATURE.CellFocus,u.FEATURE.HeaderMenu],columnModel:{columnConfig:[{label:this._ticksTableModel._ticksPropName,editor:m,headerMenu:!0,dataIndex:0,width:{value:50,unit:"%"}},{label:this._ticksTableModel._labelsPropName,editor:m,headerMenu:!0,dataIndex:1,width:{value:50,unit:"%"}}]}};return this._props.readOnlyTicksColumn&&(delete e.columnModel.columnConfig[0].editor,e.columnModel.columnConfig[0].headerMenu=!1,e.columnModel.columnConfig[0].renderer=new y),e},_stopEvent:function(e){e.preventDefault(),e.stopPropagation()},_headerInteractionCallback:function(e){this._clearStebyError(),e.TickMode?this._commitValue(this._ticksModePropName,this._props[this._ticksModePropName][0],"auto","client"):e.interval?this._ticksTableModel.updateInterval(e.interval):e.LabelMode?(this._ticksTableModel.setLabelsToAuto(),this._commitValue(this._tickLabelsModePropName,this._props[this._tickLabelsModePropName][0],"auto","client")):e.propertyUpdated?this._commitValue(e.propertyUpdated,this._props[e.propertyUpdated][0],e.value,"client"):e.errorMsg?this._showErrorMsgAndHide(e.errorMsg):e.clipboardEmpty&&this._showErrorMsgAndHide(a.cliboardIsEmpty)},_showErrorMsgAndHide:function(e){var t=this._errorPlaceHolder.innerText;this._errorPlaceHolder.innerText=e,setTimeout(n.hitch(this,(function(){this._errorPlaceHolder.innerText=t})),3e3)},_addWorkaroundForFocusIssue:function(){if(!this._hacked){var e=this._dropDown&&this._dropDown.closeMenu;this._dropDown&&(this._dropDown.forceClose=n.hitch(this,(function(){this._headerMenuEditor&&this._headerMenuEditor._closePopupMenu(),e.call(this._dropDown,!0)}))),e&&(this._dropDown.closeMenu=function(t){this._popupOpened||e.call(this._dropDown,t)}.bind(this)),this._hacked=!0,l.before(this._headerMenuEditor,"_openPopupMenu",function(){this._popupOpened=!0,this._pausableWindowListener.resume()}.bind(this)),l.before(this._headerMenuEditor,"_closePopupMenu",function(){this._popupOpened=!1,this._clearStebyError()}.bind(this)),l.after(this._headerMenuEditor,"_closePopupMenu",function(){setTimeout(n.hitch(this,(function(){this._pausableHeaderListener.resume()})),500)}.bind(this))}},_clearStebyError:function(){this._errorPlaceHolder.innerText===a.ticksEditorStebByError&&(this._errorPlaceHolder.innerText="")},_handleMouseDown:function(e){var t=c.position(this.domNode);e.x>t.x&&e.x<t.x+t.w&&e.y>t.y&&e.y<t.y+t.h||this._dropDown&&this._dropDown.closeMenu(),this._pausableWindowListener.pause()},_headerMenuCallback:function(e){this._pausableHeaderListener.pause();var t=e.columnIndex,i=this._ticksTableModel.getCurrentInterval(),n=this._props.isNumeric,o=0===t?this._props[this._ticksModePropName]:this._props[this._tickLabelsModePropName],r=0===t?this._ticksPropName:this._labelsPropName,a=this._table.domNode.getElementsByClassName("mw-table-header-row")[0].cells[t],s=c.position(a),l=s.x,d=s.y+s.h/2;this._addWorkaroundForFocusIssue(),this._headerMenuEditor._openPopupMenu(t,i,n,l,d,o[0],r)},_maxRowsExceeded:function(){this._errorPlaceHolder.innerText=a.ticksEditorStebByError},_initButtonGroup:function(){this._createPlusButton(),this._createMinusButton(),s.place(this._plusButton.domNode,this._ButtonContainer),s.place(this._minusButton.domNode,this._ButtonContainer),this._plusButton.set("disabled",this._props.readOnlyTicksColumn)},_createPlusButton:function(){this._plusButton=new p({width:22,height:22,class:"ticksdialogButton"}),this._plusButton.set("icon","plusIcon"),this._plusButton.startup(),this._plusButton.on("click",n.hitch(this,(function(e){this._stopEvent(e),this._addRow()}))),this.own(this._plusButton)},_createMinusButton:function(){this._minusButton=new p({width:22,height:22,class:"ticksdialogButton"}),this._minusButton.set("icon","muinusIcon"),this._minusButton.startup(),this._minusButton.on("click",n.hitch(this,(function(e){this._stopEvent(e),this._deleteCurrentSelection()}))),this.own(this._minusButton),this._updateMinusButtonState()},_endsWith:function(e,t){return-1!==e.indexOf(t,e.length-t.length)},destroy:function(){this.inherited(arguments),this._headerMenuEditor.destroy(),this._removeListeners()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(206),i(204),i(350),i(239),i(2689),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){function l(e){return JSON.parse(JSON.stringify(e))}return e([t],{constructor:function(e){this._ticksPropName=e.ticksPropName,this._labelsPropName=e.labelsPropName,this._tickMode=e.ticksMode,this._tickLabelMode=e.labelMode,this._limits=e.Limits,this._isNumericTickValue=e.isNumeric,this._pendingMATLABEvalData=null,this._forceUpdateRequested=null,this._tableData=this._generateTableData(e),this._oldTableData=l(this._tableData),this._dataStore=o.create(this._tableData,Object.assign({},{type:s.TABLE})),this._pausableDataChangeHandler=i.pausable(this._dataStore,"dataChanged",this._handleDataChange.bind(this))},getTableData:function(){return this._tableData},getDataStore:function(){return this._dataStore},setTableData:function(e){this._pausableDataChangeHandler.pause(),this._tableData=this._generateTableData(e),this.setDataStore(this._tableData),this._oldTableData=l(this._tableData),this._pausableDataChangeHandler.resume()},setTickMode:function(e){this._tickMode=e},setTickLabelMode:function(e){this._tickLabelMode=e},setLimits:function(e){this._limits=e},setDataStore:function(e){this._dataStore.replaceAll(e)},addRow:function(e){this._isNumericTickValue?this._addNumericRow(e):this._addNoNNumericRow(e)},_addNoNNumericRow:function(e){this._pendingMATLABEvalData={value:null,row:e,col:null},this._addNewtTckInMATLAB(e)},_addNewtTckInMATLAB:function(e){(new a).feval({function:"matlab.graphics.internal.propertyinspector.TicksEditorValidator.getNewTickAt",arguments:[e,this._ticksPropName],nargout:2,fevalCallback:n.hitch(this,"_addNewtTckCallback")})},_addNewtTckCallback:function(e){var t=e[0].results[0],i=e[0].results[1],n=this._pendingMATLABEvalData.row;""===i.trim()&&(i=null),this._addRowCallback(n,t,i)},_addNumericRow:function(e){var t=0,i=0,n=this._limits[0];if(e>0)if(i=this._tableData[e-1][0],void 0===this._tableData[e]){var o=this.getCurrentInterval();o=""===o?1:o,n=this._isNumeric(i)?i+o:i}else t=this._tableData[e][0],n=this._isNumeric(i)&&this._isNumeric(t)?(t+i)/2:"NaN";this._isNumeric(n)&&(n=parseFloat(n.toFixed(5)),this._addRowCallback(e,n))},_addRowCallback:function(e,t,i){var n=this._tableData.slice(),o="";this._isNumericTickValue?o=t.toString():i&&(o=i),n.splice(e,0,[t,o]);var r=this._getModelFromTable(n),a=this._getOldValues();this._isNumericTickValue?this._tableModelUpdated(this._ticksPropName,r.ticksValue,a.oldTicks):this._pendingMATLABEvalData={value:null,row:e,col:null},("manual"===this._tickLabelMode||this._forceUpdateRequested||this._ticksLabelsLessThanticks)&&(r.labelsValue[e]=o,this._tableModelUpdated(this._labelsPropName,r.labelsValue,a.oldLabels)),this.setTableData(r),this.emit("sizeChanged",{rowAdded:e}),this._isNumericTickValue||this._validateInMATLAB()},getCurrentInterval:function(){for(var e=[],t=0;t<this._tableData.length-1;t++){var i=Math.abs((10*this._tableData[t+1][0]-10*this._tableData[t][0])/10);e.indexOf(i)&&e.push(i)}return 1===e.length?e[0]:""},deleteRow:function(e){var t=this._tableData.slice();t.splice(e,1);var i=this._getModelFromTable(t);this.setTableData(i),this.emit("sizeChanged",{rowDeleted:e});var n=this._getOldValues();this._isNumericTickValue?this._tableModelUpdated(this._ticksPropName,i.ticksValue,n.oldTicks):(this._pendingMATLABEvalData={value:null,row:null,col:null},this._validateInMATLAB()),("manual"===this._tickLabelMode||this._forceUpdateRequested)&&this._tableModelUpdated(this._labelsPropName,i.labelsValue,n.oldLabels)},setForceUpdateRequested:function(e){this._forceUpdateRequested=e},setLabelsToAuto:function(){if("manual"===this._tickLabelMode&&this._isNumericTickValue){var e=[],t=[];this._tableData.forEach((function(i){e.push([i[0],i[0].toString()]),t.push(i[0])})),this.setTableData(this._getModelFromTable(e))}},updateInterval:function(e){if(Math.abs((this._limits[1]-this._limits[0])/e)>500)this.emit("maxrowsexceeded",{});else{for(var t=[],i=this._getOldValues(),o=this._limits[0];o<=this._limits[1];o=(10*o+10*e)/10){if(o<this._limits[0])return;t.push(o)}var r=[],a=[];"manual"!==this._tickLabelMode?t.forEach((function(e){r.push([e,e.toString()])})):(t.forEach((function(e){a.push("")})),t.forEach(n.hitch((function(e,t){var n=i.oldTicks.indexOf(e);-1!==n&&(a[t]=i.oldLabels[n]),r.push([e,a[t]])})))),this.setTableData(this._getModelFromTable(r)),this._tableModelUpdated(this._ticksPropName,t,i.oldTicks),"manual"===this._tickLabelMode&&this._tableModelUpdated(this._labelsPropName,a,i.oldLabels)}},_generateTableData:function(e){if(e.ticksValue&&e.labelsValue){var t=[];if(e.ticksValue.length>0&&e.labelsValue.length>0&&e.labelsValue.length<e.ticksValue.length){this._ticksLabelsLessThanticks=!0;for(var i=0;i<Math.ceil(e.ticksValue.length/e.labelsValue.length);i++)e.labelsValue.forEach((function(e){t.push(e)}))}else this._ticksLabelsLessThanticks=!1,t=e.labelsValue;var n=[];e.ticksValue.forEach((function(e,i){n.push([e,t[i]])}))}return n},_isNumeric:function(e){return"number"==typeof e},_getValueAt:function(e,t){return this._tableData[e][t]},_resolve:function(e){e=e[0];var t=this._getValueAt(e.rows.start,e.columns.start),i=0===e.columns.start&&0===e.columns.end&&1===e.columns.count,n=1===e.columns.start&&1===e.columns.end&&1===e.columns.count,o=e.rows.start;if(i){if(""===t)return void this.deleteRow(e.rows.start);try{if(!this._isNumericTickValue)return this._pendingMATLABEvalData={value:t,row:e.rows.start,col:e.columns.start},void this._validateInMATLAB();var r=JSON.parse(t);if("number"!=typeof r)throw new Error;if(t=r,this._oldTableData[o][0]===t)return;if(r<this._limits[0]||r>this._limits[1]){var a=this._oldTableData.slice();if(0===o||o===this._tableData.length-1){a[o][0]=r,a[o][1]=r.toString(),n=!0;var s=this._getModelFromTable(a);this.setTableData(s)}}}catch(i){return this._pendingMATLABEvalData={value:t,row:e.rows.start,col:e.columns.start},void this._evalInMATLAB(t)}}this._updateTableAndCommit(o,e.columns.start,t,i,n)},_updateTableAndCommit:function(e,t,i,n,o,r){var a=this._tableData.slice();null!==e&&null!==t&&(a[e][t]=i);var s=this._getModelFromTable(a),l=this._getOldValues();this.setTableData(s),n&&this._tableModelUpdated(this._ticksPropName,s.ticksValue,l.oldTicks,r),(o||this._forceUpdateRequested)&&this._tableModelUpdated(this._labelsPropName,s.labelsValue,l.oldLabels)},_validateInMATLAB:function(){var e=[];this._tableData.forEach((function(t){e.push(t[0])})),(new a).feval({function:"matlab.graphics.internal.propertyinspector.TicksEditorValidator.validateTickValues",arguments:[e,this._ticksPropName],nargout:1,fevalCallback:n.hitch(this,"_validationCallback")})},_validationCallback:function(e){var t=e[0].results[0];t=Array.isArray(t)?t:[t],this._updateTableAndCommit(this._pendingMATLABEvalData.row,this._pendingMATLABEvalData.col,this._pendingMATLABEvalData.value,!0,!1,t),this._pendingMATLABEvalData=null},_evalInMATLAB:function(e){(new a).feval({function:"matlab.graphics.internal.propertyinspector.TicksEditorValidator.ticksEditorEval",arguments:[e],nargout:1,fevalCallback:n.hitch(this,"_evalCallBack")})},_evalCallBack:function(e){var t=e[0].results[0];0===t.length&&(t=this._pendingMATLABEvalData.value),this._updateTableAndCommit(this._pendingMATLABEvalData.row,this._pendingMATLABEvalData.col,t,!0,!1),this._pendingMATLABEvalData=null},_tableModelUpdated:function(e,t,i,n){var o={};o[e]={value:t,oldValue:i,invalid:n},this.emit("tableModelUpdated",o)},_handleDataChange:function(e){this._resolve(e.rangeList)},_getOldValues:function(){var e={oldTicks:[],oldLabels:[]};return this._oldTableData.forEach((function(t){e.oldTicks.push(t[0]),e.oldLabels.push(t[1])})),e},_getModelFromTable:function(e){var t=this._getEmptyModel();return e.forEach((function(e){t.ticksValue.push(e[0]),t.labelsValue.push(e[1])})),t},_getEmptyModel:function(){return{ticksValue:[],labelsValue:[]}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(213),i(210),i(206),i(204),i(222),i(215),i(216),i(30),i(277),i(8885),i(431),i(243),i(258)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){return e([s,l,a],{templateString:u,_ticksValidator:null,constructor:function(e){this.inherited(arguments),e.validator&&e.clipboardService&&(this._ticksValidator=e.validator,this._clipboardService=e.clipboardService,this.own(o(this._ticksValidator,"validationComplete",this._handleValidationComplete.bind(this))))},postCreate:function(){this.inherited(arguments)},updateInterval:function(e){this._intervalInputTextField&&(this._intervalInputTextField.value=e,this._intervalInputTextField.setValueInDom(e))},setButtonDisabled:function(e){this._autoModeButton&&this._autoModeButton.set("disabled","auto"===e.toLowerCase()),this._headerTooltipDialog&&this._headerTooltipDialog.domNode&&this._headerTooltipDialog.domNode.focus()},_openPopupMenu:function(e,t,n,o,a,s,l){this._headerTooltipDialog&&this._headerTooltipDialog.destroyRecursive(),this._headerTooltipDialog=new c({class:"nonModal",content:this._getContent(e,t,n,s,l),onBlur:r.hitch(this,(function(){this._closePopupMenu()}))});var u=this._headerTooltipDialog.domNode.getElementsByClassName("dijitTooltipContainer")[0];i.set(u,"background","white"),d.open({popup:this._headerTooltipDialog,x:o,y:a,doNotClose:!0,onCancel:function(){this._closePopupMenu()}.bind(this)}),this._headerTooltipDialog.domNode.focus()},_closePopupMenu:function(){this._headerTooltipDialog&&(d.close(this._headerTooltipDialog),this._headerTooltipDialog.destroyRecursive(),this._intervalInputTextField=null,this._autoModeButton=null,this._headerTooltipDialog=null)},_getContent:function(e,i,o,r,a){var s=t.create("div");if(n.add(s,"ticksEditorHeaderContent"),0===e){var l=this._getAutoTickModeButton(r);if(o){var c=this._getIntervalInputTextField(i);t.place(c,s);var d=t.create("div");n.add(d,"separator"),t.place(d,s)}else n.remove(s,"autoButtonContainer");t.place(l,s),this._ticksValidator&&t.place(this._getPasteFromCliboardButton(a),s)}else 1===e&&(this._initAutoLabelModeButton(r),t.place(this._autoModeButton.domNode,s),this._ticksValidator&&t.place(this._getPasteFromCliboardButton(a),s));return s},_initAutoLabelModeButton:function(e){this._autoModeButton=new p({text:h.resetLabel,height:22,class:"ticksdialogHeaderButton"}),this._autoModeButton.startup(),this._autoModeButton.on("click",r.hitch(this,(function(){this.emit("headerMenuInteraction",{LabelMode:"Auto"}),this.setButtonDisabled("auto")}))),this.setButtonDisabled(e)},_getAutoTickModeButton:function(e){var o=t.create("div");return n.add(o,"headerEditorTicks"),n.add(o,"autoButtonContainer"),this._autoModeButton=new p({text:h.resetLabel,height:22,class:"ticksdialogHeaderButton"}),this._autoModeButton.startup(),this._autoModeButton.on("click",r.hitch(this,(function(){this.emit("headerMenuInteraction",{TickMode:"Auto"}),this.setButtonDisabled("auto")}))),i.set(this._autoModeButton.iconAndTextContainerNode,"text-align","left"),this.setButtonDisabled(e),t.place(this._autoModeButton.domNode,o),o},_getPasteFromCliboardButton:function(e){var o=t.create("div");n.add(o,"headerEditorTicks"),n.add(o,"autoButtonContainer");var a=new p({text:"Paste",height:22,class:"ticksdialogHeaderButton"});return a.startup(),a.on("click",r.hitch(this,(function(){this._clipboardService.getClipboardData(["text/plain"]).then(r.hitch(this,(function(t){this._ticksValidator.validateClipboardData(e,t[Object.keys(t)[0]])})))}))),i.set(a.iconAndTextContainerNode,"text-align","left"),t.place(a.domNode,o),o},_handleValidationComplete:function(e){var t=e.value,i=e.propName,n=e.errMSG;e.clipboardEmpty?this.emit("headerMenuInteraction",{clipboardEmpty:!0}):n?this.emit("headerMenuInteraction",{errorMsg:n}):this.emit("headerMenuInteraction",{value:t,propertyUpdated:i})},_getIntervalInputTextField:function(e){var o=t.create("div");o.innerHTML=h.stepby,n.add(o,"noselect"),n.add(o,"stepbyLabel"),this._intervalInputTextField=new f({value:e,width:35}),i.set(this._intervalInputTextField,"margin","3px"),this._intervalInputTextField.on("change",r.hitch(this,(function(e){var t=parseFloat(e.mwEventData.newValue);isNaN(t)||(this.emit("headerMenuInteraction",{interval:t}),this.setButtonDisabled("manual"))}))),this._intervalInputTextField.startup();var a=t.create("div");return n.add(a,"headerEditorTicks"),t.place(o,a),t.place(this._intervalInputTextField.domNode,a),a}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="headerMenu"></div>\n'},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){},getTooltip:function(e){},getDomNode:function(e){var t=document.createElement("div");return t.style.textAlign="left",t.style.textOverflow="ellipsis",t.textContent=e,t.style.overflow="hidden",t.className="mw-table-cell-content",t.style.color=this._getDefaultColor(),t},_getDefaultColor:function(){return"rgb(160, 160, 160)"}})}),e,t),e.exports=o},function(e,t){e.exports='<div data-dojo-attach-point="_contanier">\n <div data-dojo-attach-point="_ticksDialogContainer" class="ticksDialogContainer noselect">\n <div data-dojo-attach-point="_tableContainer" class ="ticksDialogTable" ></div>\n <div data-dojo-attach-point="_ButtonContainer" class="ticksDialogButtonContainer"> </div>\n </div>\n <div data-dojo-attach-point="_errorPlaceHolder" class="errorMsg noselect"></div>\n</div>\n\n'},function(e,t,i){var n,o;n=[i(203),i(367),i(446),i(463),i(8889)],o=i.dj.d(n,(function(e,t,i,n,o){var r=0;return e([t,n],{templateString:o,_enumeratedValues:null,_icons:null,_buttonsMap:null,setState:function(e){if(this.inherited(arguments),!e.enumeratedValues)throw new Error("Expected enumeratedValues for Editor State");if(!e.icons)throw new Error("Expected icons for Editor State");if(e.icons.length<2||e.icons.length!==e.enumeratedValues.length)throw new Error("Expected icons and enumeratedValues to be equal length arrays with 2 or more elements");this._commitOnBlur=!1,this._editable=!1,this._enumeratedValues=this._state.enumeratedValues,this._icons=this._state.icons,this._createAllButtons()},postCreate:function(){this.inherited(arguments),this._createAllButtons()},setValue:function(e,t,i){this._value=e,this._setUIValue(e,t,i)},_setUIValue:function(e){this._buttonsMap&&this._buttonsMap[e].set("checked",!0)},_getUIValue:function(){return this._value},_createAllButtons:function(){if(this._icons&&!this._buttonsMap&&this.domNode){this._buttonsMap={};var e="variable_editor_toggle_button_group_"+r;r+=1;for(var t=0;t<this._icons.length;t++){var i=this._icons[t].IconURL,n=this._enumeratedValues[t];this._buttonsMap[n]=this._createSingleButton(n,i,e),this._buttonsMap[n].placeAt(this.domNode),this._buttonsMap[n].startup()}}},_createSingleButton:function(e,t,n){var o=new i({icon:t,buttonGroup:n,checked:this._value===e,description:"'"+e+"'"});return o.domNode.setAttribute("data-tag",this.createDataTag("ToggleButtonGroupEditor.Button",e)),this.own(o,o.on("change",function(t){this.dispatchEvent("editingStarted",this,{editor:this,currentValue:this._value,currentState:this._state}),t.mwEventData.newValue&&e!==this._value&&this.dispatchEvent("valueChanged",this,{renderer:this,oldValue:this._value,newValue:e})}.bind(this))),o}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="toggleButtonGroupEditor" data-dojo-attach-point="toggleButtonGroupEditor" data-tag="datatools.variableeditor.views.editors.toggleButtonGroupEditor"></div>\n'},function(e,t,i){var n,o;n=[i(203),i(206),i(604),i(255),i(8891),i(8892),i(8893),i(8894),i(326),i(239),i(594),i(243),i(691),i(431),i(742)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f){function g(e){var t=void 0!==e.value?e.value:e;return Array.isArray(t)?t.slice():[t].slice()}return e([i,n],{_nameColumnText:p.nameColumnLabel,_widthColumnText:p.widthColumnLabel,_autoColumnText:p.autoColumnLabel,_editableColumnText:p.editableColumnLabel,_sortableColumnText:p.sortableColumnLabel,templateString:s,_allowedStrings:["auto","fit"],constructor:function(e){this._uitableColumnInfo=this._getUItableColumnInfo(e.map(this._parseProp)),this._uiTableColumnEditorTableModel=new r(this._uitableColumnInfo),this._uiTableColumnEditorModel=new o(this._uitableColumnInfo)},postCreate:function(){this._table=this._createTable(this._uiTableColumnEditorTableModel.getDataStore()),this._table.setColumnWidth(62),this._tableContainer.appendChild(this._table.domNode),this._pausableEditorModelUpdateHandler=t.pausable(this._uiTableColumnEditorModel,"editorModelUpdated",this._handleEditorValueChange.bind(this)),this.own(t(this._uiTableColumnEditorModel,"editorModelUpdated",this._updateTableModelFromEditorModel.bind(this)),t(this._uiTableColumnEditorTableModel,"tableModelUpdated",this._updateEditorModelFromTableModel.bind(this)),t(this._table,"selectionChanged",this._updateMinusButtonState.bind(this)),this._pausableEditorModelUpdateHandler)},_parseProp:function(e){return{name:e.propertyName,value:g(e.values[0])}},_createTable:function(e){var t={features:[l.FEATURE.CellFocus,l.FEATURE.SingleRowSelection,f],columnModel:{columnConfig:[{dataIndex:0,label:this._nameColumnText,editor:d,width:{value:70,unit:"px"}},{dataIndex:1,label:this._widthColumnText,editor:a,width:{value:62,unit:"px"}},{dataIndex:2,label:this._autoColumnText,interactiveRenderer:new h,width:{value:66,unit:"px"}},{dataIndex:3,label:this._editableColumnText,interactiveRenderer:new h,width:{value:70,unit:"px"}}]}};return this._uitableColumnInfo.hasOwnProperty("ColumnSortable")&&t.columnModel.columnConfig.push({dataIndex:4,label:this._sortableColumnText,interactiveRenderer:new h,width:{value:70,unit:"px"}}),new l(e,t)},onOpen:function(){this._table.focus()},_getUItableColumnInfo:function(e){var t=e.slice(),i=0;t.forEach((function(e){"ColumnName"===e.name&&(i=e.value.length)}));var n={};return t.forEach((function(e){switch(e.name){case"ColumnName":n.ColumnName=e.value;break;case"ColumnWidth":for(;e.value.length<i;)e.value.push("auto");n.ColumnWidth=e.value;break;case"ColumnEditable":if(1===e.value.length)for(;e.value.length<i;)e.value.push(e.value[0]);else for(;e.value.length<i;)e.value.push(!1);n.ColumnEditable=e.value;break;case"ColumnSortable":if(1===e.value.length)for(;e.value.length<i;)e.value.push(e.value[0]);else for(;e.value.length<i;)e.value.push(!1);n.ColumnSortable=e.value}})),n},startup:function(){this.inherited(arguments),this._table.startup()},destroy:function(){this._table.destroy(),this.inherited(arguments)},_plusButtonClickHandler:function(){var e,t,i;i=this._uiTableColumnEditorTableModel.getDataStore().dataSize,e=(t=this._table.getSelection())&&t.length>0&&t[0].row>=0&&t[0].row<i.rows.end?t[0].row:i.rows.end,e+=1,this._uiTableColumnEditorModel.addRow(e);var n=c.range().setEntireRows(e,e);this._table.setSelection([n]),this._dropDown&&this._dropDown.focusNode.focus(),this._updateMinusButtonState()},_minusButtonClickHandler:function(){var e,t;if(e=this._table.getSelection()[0].row,this._uiTableColumnEditorModel.deleteRow(e),(t=e-1)>=0){var i=c.range().setEntireRows(t,t);this._table.setSelection([i])}this._dropDown&&this._dropDown.focusNode.focus(),this._updateMinusButtonState()},_updateEditorModelFromTableModel:function(e){this._uiTableColumnEditorModel.setColumnValues(e.eventData)},_updateTableModelFromEditorModel:function(e){var t=e.eventData,i=t.ColumnName.newValue,n=t.ColumnWidth.newValue,o=t.ColumnEditable.newValue,r=t.ColumnSortable.newValue;this._uiTableColumnEditorTableModel.setTableData({ColumnName:i,ColumnWidth:n,ColumnEditable:o,ColumnSortable:r})},_handleEditorValueChange:function(e){var t,i,n=e.eventData;Object.keys(this._uitableColumnInfo).forEach(function(e){t=n[e].oldValue,i=n[e].newValue,t=this._updateBeforeSendToServer(t,e),i=this._updateBeforeSendToServer(i,e),JSON.stringify(i)!==JSON.stringify(t)&&(this._uitableColumnInfo[e]=i,this._commitValue(e,t,i,"client"))}.bind(this))},_updateBeforeSendToServer:function(e,t){return"ColumnWidth"===t&&Array.isArray(e)&&0===e.length&&(e=["auto"]),"ColumnWidth"===t?e=this._convertToValidWidth(e):"ColumnName"===t&&(e=e.map((function(e){return e.trim()}))),("ColumnWidth"===t||"ColumnEditable"===t||"ColumnSortable"===t)&&Array.isArray(e)&&e.length>1&&this._allSameValue(e)&&!this._isNumeric(e[0])&&(e=[e[0]]),e},_isNumeric:function(e){return"number"==typeof e},_allSameValue:function(e){for(var t=e[0],i=1;i<e.length;i++)if(e[i]!==t)return!1;return!0},_convertToValidWidth:function(e){for(var t=[],i=0;i<e.length;i++){var n=e[i],o=!1;"string"==typeof n&&(n=n.trim(),o=!0),!o||this._allowedStrings.includes(n)||isNaN(parseFloat(n))||n.endsWith("x")?t.push(n):t.push(parseFloat(n))}return t},_updateEditor:function(e,t){if(!e[0]||!e[0].hasOwnProperty("source")||"client"!==e[0].source){var i=g(e[0]);if(JSON.stringify(this._uitableColumnInfo[t])!==JSON.stringify(i)){if(1===i.length&&"numbered"===i[0]&&"ColumnName"===t){for(var n=Math.max(this._uitableColumnInfo.ColumnWidth.length,this._uitableColumnInfo.ColumnEditable.length),o=[],r=0;r<n;r++)o.push("");this._uitableColumnInfo.ColumnName=o}else if(this._uitableColumnInfo[t]=i,"ColumnName"===t){var a=this._uitableColumnInfo[t].length;Object.keys(this._uitableColumnInfo).forEach(function(e){switch(e){case"ColumnWidth":for(;this._uitableColumnInfo.ColumnWidth.length<a;)this._uitableColumnInfo.ColumnWidth.push("auto");break;case"ColumnEditable":for(;this._uitableColumnInfo.ColumnEditable.length<a;)this._uitableColumnInfo.ColumnEditable.push(!1);break;case"ColumnSortable":for(;this._uitableColumnInfo.ColumnSortable.length<a;)this._uitableColumnInfo.ColumnSortable.push(!1)}}.bind(this))}a=this._uitableColumnInfo.ColumnName.length,Object.keys(this._uitableColumnInfo).forEach(function(e){switch(e){case"ColumnWidth":for(;this._uitableColumnInfo.ColumnWidth.length<a;)this._uitableColumnInfo.ColumnWidth.push("auto");break;case"ColumnSortable":for(;this._uitableColumnInfo.ColumnSortable.length<a;)this._uitableColumnInfo.ColumnSortable.push(!1);break;case"ColumnEditable":if(1===this._uitableColumnInfo.ColumnEditable.length)for(;this._uitableColumnInfo.ColumnEditable.length<a;)this._uitableColumnInfo.ColumnEditable.push(this._uitableColumnInfo.ColumnEditable[0]);else for(;this._uitableColumnInfo.ColumnEditable.length<a;)this._uitableColumnInfo.ColumnEditable.push(!1)}}.bind(this)),this._setUITableColumnsAttr(this._uitableColumnInfo)}}},storePopupContainer:function(e){this._dropDown=e},_setUITableColumnsAttr:function(e){this._pausableEditorModelUpdateHandler.pause(),this._uiTableColumnEditorModel.setColumnValues(e),this._pausableEditorModelUpdateHandler.resume()},_updateMinusButtonState:function(){this._uiTableColumnEditorModel.getNameColumn().length>0?this.removeRowButton.set("disabled",!1):this.removeRowButton.set("disabled",!0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){this._columnName=e.ColumnName,this._columnWidth=e.ColumnWidth,this._columnEditable=e.ColumnEditable,this._columnSortable=e.ColumnSortable?e.ColumnSortable:[]},getNameColumn:function(){return this._columnName},getWidthColumn:function(){return this._columnWidth},getEditableColumn:function(){return this._columnEditable},getSortableColumn:function(){return this._columnSortable},setColumnValues:function(e){this.emit("editorModelUpdated",{eventData:{ColumnName:{newValue:e.ColumnName,oldValue:this._columnName},ColumnWidth:{newValue:e.ColumnWidth,oldValue:this._columnWidth},ColumnEditable:{newValue:e.ColumnEditable,oldValue:this._columnEditable},ColumnSortable:{newValue:e.ColumnSortable,oldValue:this._columnSortable}}}),this._columnName=e.ColumnName,this._columnWidth=e.ColumnWidth,this._columnEditable=e.ColumnEditable,this._columnSortable=e.ColumnSortable},addRow:function(e){var t=this._columnName.slice(),i=this._columnWidth.slice(),n=this._columnEditable.slice(),o=this._columnSortable?this._columnSortable.slice():[],r=Math.min(t.length,i.length);r=Math.min(r,n.length),t.length===r&&t.splice(e,0,""),i.length===r&&i.splice(e,0,"auto"),n.length===r&&n.splice(e,0,!1),o.length===r&&o.splice(e,0,!1),this.setColumnValues({ColumnName:t,ColumnWidth:i,ColumnEditable:n,ColumnSortable:o})},deleteRow:function(e){var t=this._columnName.slice(),i=this._columnWidth.slice(),n=this._columnEditable.slice(),o=this._columnSortable?this._columnSortable.slice():[];t.splice(e,1),i.splice(e,1),n.splice(e,1),o.length>0&&o.splice(e,1),this.setColumnValues({ColumnName:t,ColumnWidth:i,ColumnEditable:n,ColumnSortable:o})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(206),i(350),i(239),i(235),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){function s(e){return JSON.parse(JSON.stringify(e))}return e([t],{constructor:function(e){this._tableData=this._generateTableData(e),this._oldTableData=s(this._tableData),this._dataStore=n.create(this._tableData,Object.assign({},{type:a.TABLE})),this._pausableDataChangeHandler=i.pausable(this._dataStore,"dataChanged",this._handleDataChange.bind(this))},getDataStore:function(){return this._dataStore},getTableData:function(){return this._tableData},setTableData:function(e){this._pausableDataChangeHandler.pause();var t=this._generateTableData(e);this._tableData=t,this.setDataStore(this._tableData),this._oldTableData=s(this._tableData),this._pausableDataChangeHandler.resume()},setDataStore:function(e){this._dataStore.replaceAll(e)},_generateTableData:function(e){for(var t=e.ColumnName,i=this._generateColumnWidthForTable(e.ColumnWidth),n=this._generateColumnAutoForTable(e.ColumnWidth),o=e.ColumnEditable,a=e.ColumnSortable,s=t.length,l=[],c=0;c<s;c++){var d=[t[c],i[c],{checked:r.getLogicalValue(n[c],!1)},{checked:o[c]}];a&&a.length>0&&d.push({checked:a[c]}),l.push(d)}return l},_generateColumnWidthForTable:function(e){return e.map((function(e){return"auto"===e?"":e}))},_generateColumnAutoForTable:function(e){return e.map((function(e){return"auto"===e?"true":"false"}))},_handleDataChange:function(e){var t=e.rangeList[0].columns.start,i=e.rangeList[0].rows.start,n=this._tableData[i][t],o=this._oldTableData[i][t],r=this._tableData[i].length>=5;if({0:function(e,t){return e!==t},1:function(e,t){return e!==t},2:function(e,t){return e.checked!==t.checked},3:function(e,t){return e.checked!==t.checked},4:function(e,t){return e.checked!==t.checked}}[t].call(null,n,o)){var a={eventData:{ColumnName:this._generateColumnNameFromTable(this._tableData),ColumnWidth:this._generateColumnWidthFromTable(this._tableData,t,i),ColumnEditable:this._generateColumnEditableFromTable(this._tableData)}};r&&(a.eventData.ColumnSortable=this._generateColumnSortableFromTable(this._tableData)),this.emit("tableModelUpdated",a)}},_generateColumnNameFromTable:function(e){return e.map((function(e){return e[0]}))},_generateColumnWidthFromTable:function(e,t,i){var n=e.map((function(e){return!0===e[2].checked?"auto":e[1]}));return 2===t&&!1===e[i][2].checked&&(n[i]=75),1===t&&(n[i]=e[i][1]),n},_generateColumnEditableFromTable:function(e){return e.map((function(e){return e[3].checked}))},_generateColumnSortableFromTable:function(e){return e.map((function(e){return e[4].checked}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(301)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e,i){var n=new t;this.config=i,this._emit=n.emit.bind(n),this.on=n.on.bind(n),this._handleKeyDown=this._handleKeyDown.bind(this),this._handleBlur=this._handleBlur.bind(this);var o=document.createElement("div");this._oldValue=e,o.style.display="flex",o.style.flex=1,o.style.height="100%";var r=this._textField=document.createElement("input");r.type="text",r.min="0",r.value=e,r.tabIndex=0,r.style.flex="1",r.style.outline="none",r.style.borderStyle="none",r.style.height="100%",o.appendChild(r),this._domNode=o,r.className="mwTableTextEditor",this._textField.addEventListener("blur",this._handleBlur),this._textField.addEventListener("keydown",this._handleKeyDown),this._setupValue()},getDomNode:function(){return this._domNode},setFocus:function(){this._textField.focus()},destroy:function(){this._textField.removeEventListener("blur",this._handleBlur),this._textField.removeEventListener("keydown",this._handleKeyDown),delete this._textField,delete this._domNode},_getParsedValue:function(e){var t=e,i=!0;return"string"==typeof t&&"fit"!==t&&((t=parseFloat(t))<0&&(t=0),isNaN(t)?i=!1:e.endsWith("x")&&(t=e)),{valid:i,value:t}},_handleBlur:function(){var e=this._textField.value,t=this._getParsedValue(e);if(!1===t.valid)this._emit("editCanceled");else{var i=this._getParsedValue(this._oldValue);this._emit("editComplete",{newValue:t.value,oldValue:i.value})}},_handleKeyDown:function(e){switch(e.stopPropagation(),e.keyCode){case 27:this._emit("editCanceled");break;case 13:this._handleBlur();break;case 33:case 34:e.preventDefault()}},_setupValue:function(){Object.defineProperty(this,"value",{get:function(){return parseFloat(this._textField.value)>=0?parseFloat(this._textField.value):0},set:function(e){this._textField.value=e.toString()}})}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="UITableColumnEditor">\n <div class="UITableColumnEditor-top-container">\n <div class="UITableColumnEditor-table-container" data-dojo-attach-point="_tableContainer">\n </div>\n\n <div class="UITableColumnEditor-buttons-container">\n <div data-dojo-type="mw-form/PushButton" class="pushButton"\n data-dojo-attach-point="addRowButton" data-dojo-attach-event="click: _plusButtonClickHandler"\n data-dojo-props="icon: \'add_item\', iconAlignment: \'top\', width: 22, height: 22"></div>\n <div data-dojo-type="mw-form/PushButton" class="pushButton"\n data-dojo-attach-point="removeRowButton" data-dojo-attach-event="click: _minusButtonClickHandler"\n data-dojo-props="icon: \'remove_item\', iconAlignment: \'top\', width: 22, height: 22, disabled: true"></div>\n </div>\n </div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(376),i(235)],o=i.dj.d(n,(function(e,t,i){return e([t],{_allowedStrings:["auto","fit"],postCreate:function(){this.inherited(arguments),this.domNode.setAttribute("data-tag","datatools.variableeditor.views.editors.UITableColumnTextBoxEditor")},setValue:function(e){e="string"==typeof e||e instanceof String?e.length>0?e.split(","):[]:e,e=Array.isArray(e)?e:[e],"ColumnWidth"===this.propertyName?(e=e.map(this._parsevValue),e=this._convertStringValueToInt(e)):"ColumnName"===this.propertyName?e=e.map((function(e){return e.trim()})):"ColumnEditable"!==this.propertyName&&"ColumnSortable"!==this.propertyName||(e=(e=e.map(this._parsevValue)).map((function(e){return"string"==typeof e?e.trim():e}))),this.inherited(arguments)},_parsevValue:function(e){return e&&("string"==typeof e||e instanceof String)&&(e=e.replace(/['"]+/g,"")),e},_convertStringValueToInt:function(e){for(var t=[],n=0;n<e.length;n+=1){var o=e[n],r=!1;"string"==typeof o&&(o=o.trim(),r=!0),!r||this._allowedStrings.includes(o)||isNaN(i.filterFloat(o))||o.endsWith("x")?t.push(o):t.push(i.filterFloat(o))}return t},setEditValue:function(e){e=this._value,this.inherited(arguments)},setState:function(e){e&&(e.isMetaData=!1),this.inherited(arguments)},_setUIValue:function(e){e!==this._getUIValue("value")&&(this._inputBox.set("value",e+" "),this._inputBox.set("value",e))},updateBeforeSendToServer:function(e,t){if("client"!==t||"ColumnEditable"!==this.propertyName&&"ColumnSortable"!==this.propertyName)return"client"===t&&"ColumnName"===this.propertyName&&Array.isArray(e)&&1===e.length&&"numbered"===e[0]?e[0]:e;return e.map((function(e){return"true"===e||"false"!==e&&e}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2690)],o=i.dj.d(n,(function(e,t){return e("rendererseditors.editors.UITableLogialEditor",[t],{_setUIValue:function(e){var t=e;try{"1"===e?t="true":"0"===e&&(t="false")}catch(e){}this._inputBox.set("value",t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(211),i(206),i(367),i(2691)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("rendererseditors.editors.UITableNonEditableComboboxEditor",[o],{_comboBox:void 0,_categories:[],_onChangeListener:void 0,_onMouseDownListener:void 0,setState:function(e){if(this.domNode){if(e&&e.categories){this._categories=[];for(var t=0;t<e.categories.length;t+=1)this._categories.push({label:e.categories[t],value:e.categories[t]});this._createComboBox()}this.inherited(arguments)}},_setupDomClasses:function(){this.addCSSClasses(["variableEditorRenderers","cell","cellRenderer"],this.domNode),this.addCSSClasses("UITableNonEditable",this.domNode)},_createComboBox:function(){if(this._comboBox&&this._comboBox.isInstanceOf&&this._comboBox.isInstanceOf(r))return this._setUIItems(this._categories),void this._setUIValue(this._value);this._comboBox=new r({items:this._categories,editable:!1}),this._setupDomClasses(),this._setReadOnly(!0),this._setUIValue(this._value),this._onChangeListener=n.pausable(this._comboBox,"change",t.hitch(this,"_onChangeHandler")),i.empty(this.domNode),this.domNode.appendChild(this._comboBox.domNode),this._comboBox.startup()},postCreate:function(){this._comboBox||this._createComboBox(),this.inherited(arguments)},stopEditing:function(){},edit:function(){},_getDefaultState:function(){return{categories:[],isProtected:!0}},_onChangeHandler:function(e){this._onChangeListener.pause();var t=e.mwEventData.newValue;this.setValue(t,"client"),this._onChangeListener.resume()},_getUIValue:function(){return this._comboBox.value},_setUIValue:function(e){this._comboBox&&this._onChangeListener&&(this._onChangeListener.pause(),"<undefined>"===e?this._comboBox.set("placeholder",e):e!==this._getUIValue()&&this._comboBox.set("value",e),this._onChangeListener.resume())},_setUIItems:function(e){this._onChangeListener.pause(),this._comboBox.set("items",this._categories),this._onChangeListener.resume()},getStyleNode:function(e){if("backgroundColor"===e)return this.domNode},_setReadOnly:function(e){this._comboBox&&(this._comboBox._isMenuOpenable=!e,e?this.addCSSClasses(this._notEditableCSSClass,this._comboBox.domNode):this.removeCSSClasses(this._notEditableCSSClass,this._comboBox.domNode))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(235),i(2688)],o=i.dj.d(n,(function(e,t,i){return e("rendererseditors.editors.UITableStringEditor",[i],{setValue:function(e,i){var n=t.stripOuterDoubleQuotes(e);this.inherited(arguments,[n,i])},_setUIValue:function(e){var i=t.stripOuterDoubleQuotes(e);this.inherited(arguments,[i])},setEditValue:function(e,i){var n=t.stripOuterDoubleQuotes(e);this.inherited(arguments,[n,i])},_handleFormatting:function(e,i,n){var o=t.stripOuterDoubleQuotes(i);return this.inherited(arguments,[e,o,n])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(238),i(235),i(367),i(463),i(376),i(243),i(339),i(8900),i(2689)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([r,a],{templateString:d,_textBox:void 0,_visitButton:void 0,_isPendingRequest:!1,constructor:function(e){e&&e.plugins&&e.plugins.windowStrategyPlugin&&(this._windowStrategyPlugin=e.plugins.windowStrategyPlugin)},postCreate:function(){this.inherited(arguments),this._createTextBox(),this._createVisitButton(),this._addListenersToComponents()},_createTextBox:function(){this._textBox=new s(o.mergeObjects(this._allArgs,{inPlaceEditor:void 0,state:{isMetaData:!1},spellcheck:!1})),this._textBox.placeAt(this.domNode).startup(),i.after(this._textBox,"stopEditing",function(){n.curNode===this._textBox.focusNode&&n.curNode.blur()}.bind(this)),this._setUIValue(this._value)},_createVisitButton:function(){this._visitButton=new l({icon:"visitIcon",disabled:!0}),this._visitButton.placeAt(this.domNode).startup()},_addListenersToComponents:function(){this._textBox.addEventListener("valueChanged",t.hitch(this,"_handleTextBoxValueChanged")),this._textBox.addEventListener("keyup",t.hitch(this,"_setVisitButtonState")),this._visitButton.on("mousedown, click",t.hitch(this,"_handleVisitButtonClick"))},_setVisitButtonState:function(){if(this._visitButton){var e=this._getUIValue();e.length>0&&this._validateURL(e)?this._visitButton._setDisabledAttr(!1):this._visitButton._setDisabledAttr(!0)}},_handleTextBoxValueChanged:function(){this.setValue(this._getUIValue())},_handleVisitButtonClick:function(e){e.preventDefault(),this._windowStrategyPlugin&&(window.focus(),this._windowStrategyPlugin.bringParentToFront()),!this._isPendingRequest&&this._validateURL(this._textBox._value)&&(this._isPendingRequest=!0,(new u).feval({function:"web",arguments:[this._textBox._value,"-browser"],fevalCallback:t.hitch(this,(function(){this._isPendingRequest=!1}))}))},setValue:function(e){e=(e||"").trim(),this.inherited(arguments),this._setUIValue(e)},setState:function(e){this.domNode&&this.inherited(arguments)},setEditable:function(e){this.inherited(arguments)},_getUIValue:function(){return(this._textBox?this._textBox._getUIValue():this._value).trim()},_setUIValue:function(e){e=(e||"").trim(),this._textBox&&(this._textBox.stopEditing(),this._textBox._setUIValue(e),this._textBox.setEditValue(e)),this._setVisitButtonState()},_validateURL:function(e){if(null==e||"string"!=typeof e)return!1;var t=!0;(e.startsWith("matlab:")||e.startsWith("javascript:"))&&(t=!1);var i=e.split(".");return e.length>0&&(i.length<2||i.length>=2&&(e.startsWith(".")||e.endsWith(".")))&&(t=!1),t}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="hyperlinkURLEditor cellRenderer" data-tag="datatools.variableeditor.views.editors.HyperlinkURLEditor"></div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(385),i(212),i(211),i(210),i(244),i(206),i(225),i(215),i(216),i(276),i(695),i(231),i(764),i(1257),i(8902),i(209),i(235),i(359),i(603),i(2702)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T){var E={UNION:"union",INTERSECTION:"intersection",FIRST:"first",LAST:"last"},S={ALL:"all",BLANK:"blank",FIRST:"first",LAST:"last"},w=e("inspector.widget.InspectorPropertySheet",[d,u,y],{templateString:"",propertySheet:{},allArgs:{},showGroups:!0,sortProperties:!0,sortedProperties:[],groups:[],groupContainer:null,multiplePropertiesCombinationMode:E.INTERSECTION,multipleValuesCombinationMode:S.ALL,propertySets:{},lastSelectedPropertySet:null,scrollerNodeActive:!1,numOfGroupedProperties:0,groupedProperties:[],constructor:function(e){e||(e={}),this.templateString=e.template||T,this.propertySheet=e.inspectorObject||{},this.showGroups=void 0===this.propertySheet.showGroups||this.propertySheet.showGroups&&e._showgroups,this.sortProperties=void 0===e.sortProperties||e.sortProperties,this.groups=[],this.multiplePropertiesCombinationMode=e.multiplePropertiesCombinationMode||E.INTERSECTION,this.multipleValuesCombinationMode=e.multipleValuesCombinationMode||S.ALL,this.lastSelectedPropertySet=void 0,this.createdCallBack=e.createdCallBack,this.allArgs=b.mergeObjects(e,{propertySheet:this.propertySheet,multiplePropertiesCombinationMode:this.multiplePropertiesCombinationMode,multipleValuesCombinationMode:this.multipleValuesCombinationMode}),this.propertySets={},this.groupEditorsTrigger=new i,this.stateTrigger=new i,this.editorTrigger=new i},postCreate:function(){this.domNode&&!this.domNode.hasAttribute("data-tag")&&this.domNode.setAttribute("data-tag",b.concatenateDataTagStrings("datatools","inspector","propertySheet")),this.domNode&&this.allArgs.cssSpecifier&&!a.contains(this.domNode,this.allArgs.cssSpecifier)&&a.add(this.domNode,this.allArgs.cssSpecifier),this.hasGroup=this._hasGroup(this),this.objectProps=this._updateObjectProperties(this.propertySheet.objects),this.objectProps&&this._createPropertySheetView(),this._setupScrollerListener(),this._setupScrollerListenerForWheelEvent()},startup:function(){if(this.inherited(arguments),this.groupContainer&&this.groupContainer.startup&&this.groupContainer.startup(),this.propertySets)for(var e in this.propertySets)this.propertySets.hasOwnProperty(e)&&this.propertySets[e]&&this.propertySets[e].startup&&this.propertySets[e].startup()},destroy:function(){this.inherited(arguments);var e=0,t=this.groupEditors;if(t)for(e=0;e<Object.keys(t).length;e++)t[Object.keys(t)[e]].destroy();this.groupEditors=null;var i=this.groups;if(i)for(e=0;e<Object.keys(i).length;e++)i[Object.keys(i)[e]].destroy();this.groups=null,this.propertySheet=null,this.inspectorObject=null,this.groupEditorsTrigger=null,this.stateTrigger=null,this.editorTrigger=null,this.groupContainer&&this.groupContainer.destroy&&this.groupContainer.destroy(),this.groupContainer=null},_registerGroupEditorDependencies:function(e,t){e.forEach(function(e){this.own(this.groupEditorsTrigger.on(e,(function(i){var n=i.propertyValue;t.update(n,e)})))}.bind(this))},_registerEditorValueDependencies:function(e,t){e.forEach(function(e){this.own(this.editorTrigger.on(e,(function(i){var n=i.propertyValue;t.updateValueFromDependentValueChange(n,e)})))}.bind(this))},_registerForStateChange:function(e,t){e.forEach(function(e){this.own(this.stateTrigger.on(e+"StateUpdated",(function(i){var n=i.propertyState;t.updateState(n,e)})))}.bind(this))},_hasGroup:function(e){var t=e.showGroups,i=e.propertySheet,n=i&&i.propertySheet,o=n&&n.groups;return t&&Array.isArray(o)&&o.length>0},_setupScrollerListener:function(){var e=this;if(this.domNode){var t=this.domNode.querySelector(".propertySetOuterContainer");t&&t.addEventListener("mouseup",(function(t){if(t.target===this){e.scrollerNodeActive=!0;var i={type:"viewPosition",data:{scrollTop:this.scrollTop}};try{e._redispatchEvent(i)}catch(e){}}}))}},_setupScrollerListenerForWheelEvent:function(){var e=this;if(this.domNode){var t=this.domNode.querySelector(".propertySetOuterContainer");t&&t.addEventListener("wheel",(function(t){e.closeAlldropDowns();var i={type:"viewPosition",data:{scrollTop:this.scrollTop}};try{e._redispatchEvent(i)}catch(e){}}))}},closeAlldropDowns:function(){var e,t=document.querySelector(".propertySheet .vecombobox.dijitHasDropDownOpen");if(t){var i=f.byNode(t);i&&i.closeDropDown&&i.closeDropDown(!0)}var n=document.querySelector(".propertySheet .mwHasMenuOpened");n&&((e=f.byNode(n))&&e.closeMenu&&e.closeMenu(!0),e&&e.forceClose&&e.forceClose());var o=document.querySelector(".mwContextMenu");o&&(e=f.byNode(o))&&e.closeMenu&&e.closeMenu(),b.closeTooltips()},_renderPropertyItems:function(e,t,i){t.forEach(function(t){this._renderPropertyItem(e,t,i)}.bind(this))},_renderPropertyItem:function(e,t,i){var n;if(!t.type)throw new Error("item should have 'type' property to indicate what type it is.");if(!i)throw new Error("the placement node of item should not be undefined.");if(t.type!==m.PROPERTY_ITEM_TYPE.SET){if(void 0===t.items||null===t.items||!Array.isArray(t.items))return;if(t.items=t.items.filter(function(e){if(e.type===m.PROPERTY_ITEM_TYPE.SET)return this.objectProps.hasOwnProperty(e.name);var t=!1;try{e.type!==m.PROPERTY_ITEM_TYPE.SUB_GROUP&&e.type!==m.PROPERTY_ITEM_TYPE.EDITOR_GROUP||e.items.forEach(function(e){e.type===m.PROPERTY_ITEM_TYPE.SET&&this.objectProps.hasOwnProperty(e.name)&&(t=!0)}.bind(this))}catch(e){}return t}.bind(this)),0===t.items.length)return;switch(t.type){case m.PROPERTY_ITEM_TYPE.GROUP:n=_.renderPropertyGroup(this,t,i);break;case m.PROPERTY_ITEM_TYPE.SUB_GROUP:n=_.renderPropertySubGroup(this,t,i);break;case m.PROPERTY_ITEM_TYPE.EDITOR_GROUP:a.remove(this.domNode,"propertySheet-noGroupEditor"),n=_.renderPropertyEditorGroup(this,t,i)}this._renderPropertyItems(n,t.items,n.containerNode),n.startup(),this.own(n)}else t.type===m.PROPERTY_ITEM_TYPE.SET&&(n=_.renderPropertySet(this,t.name,this.objectProps[t.name],i),this.numOfGroupedProperties++,this.groupedProperties.push(t.name),n.startup(),this.own(n))},_createPropertySheetView:function(){var e,t,i,n;e=this.showGroups,n=(i=(t=this.propertySheet)&&t.propertySheet)&&i.groups,this.numOfGroupedProperties=0,this.groupedProperties=[],this._getGroupPropertyNames(n);var o=Array.isArray(n)&&n.length>0;if(e&&o){this._createGroupPanel(),this._renderPropertyItems(this,n,this.groupContainer);var r=0;if(i&&i.properties&&Array.isArray(i.properties)&&(r=i.properties.length),r>0&&r-this.numOfGroupedProperties>0&&t.showDefaultGroup){var s=[];i.properties.forEach(function(e){-1===this.groupedProperties.indexOf(e.name)&&s.push(e.name)}.bind(this));let e=_.renderPropertyGroup(this,g.DEFAULT_GROUP,this.groupContainer);e.startup(),this.own(e),s.filter((function(e){return"string"==typeof e})).forEach(function(t){if(this.objectProps.hasOwnProperty(t)){var i=_.renderPropertySet(this,t,this.objectProps[t],e.containerNode);i.startup(),this.own(i)}}.bind(this))}}else{this.sortedProperties=[];let e=this;Object.keys(this.objectProps).forEach((function(t){e.sortedProperties.push(t)})),this.sortProperties&&this.sortedProperties.sort(this._comparisonFcnForSort.bind(this)),a.add(this.domNode,"noGroup"),this.sortedProperties.forEach(function(e){if(!0===o&&this.groupedProperties.indexOf(e)>=0||!1===o){var t=_.renderPropertySet(this,e,this.objectProps[e],this.containerNode);this.own(t)}}.bind(this))}},_comparisonFcnForSort:function(e,t){let i,n,o=e.name?e.name:e,r=t.name?t.name:t;this.propertySheet&&this.propertySheet.propertySheet&&this.propertySheet.propertySheet.properties&&(i=this.propertySheet.propertySheet.properties.find(e=>e.name===o),n=this.propertySheet.propertySheet.properties.find(e=>e.name===r));let a=i&&i.displayName?i.displayName:o,s=n&&n.displayName?n.displayName:r;return a<s?-1:a>s?1:0},_handleSearch:function(e){var t=this.containerNode,i=function(e,t){return!t||e&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},n=function(e){for(;e.parentNode!==t;)e=e.parentNode;return e};c(".searchMatchesLabel",this.domNode).forEach((function(e){r.destroy(e)})),dijit._masterTT&&dijit._masterTT.aroundNode&&dijit._masterTT.hide(dijit._masterTT.aroundNode);var o=e.substring,a=[],s=[],l=[];for(var d in this.propertySets)if(this.propertySets.hasOwnProperty(d)){var u=this.propertySets[d],h=this.objectProps[d];h&&h[0]&&void 0!==h[0].value?h=h.map((function(e){return e.value})).join()+h.map((function(e){return e.editValue})).join():void 0!==h&&(h=JSON.stringify(h)),h=!1,this._highlightTooltip(u.tooltip,o),d=u.propertyName;var p=u.PropertyName,f=c(".propertyName",u.inspectorPropertySet)[0],g=(u.propertySheet.tooltip||"").split("||").join(""),m=n(u.inspectorPropertySet);b.removeFromClassList(m,"notASearchResult"),f.innerHTML=p,i(p,o)?(a.push({group:m,name:d}),o&&(f.innerHTML=p.replace(new RegExp("("+o+")","ig"),'<span class="searchResultHighlight">$1</span>'))):i(d,o)||i(g,o)||i(h,o)?s.push({group:m,name:d}):(l.push({group:m,name:d}),b.addToClassList(m,"notASearchResult"))}a.sort(this._comparisonFcnForSort.bind(this)).forEach((function(e){r.place(e.group,t)})),s.length>0?(r.create("div",{class:a.length?"searchMatchesLabel afterDirectMatches helpDocMatchesLabel":"searchMatchesLabel helpDocMatchesLabel",textContent:C.helpDocResults},t),s.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})).forEach((function(e){r.place(e.group,t)}))):!a.length&&Object.keys(this.propertySets).length>0&&r.create("div",{class:"searchMatchesLabel",textContent:C.noMatchesFound},t),l.forEach((function(e){r.place(e.group,t)}))},_highlightTooltip:function(e,t){if(e&&e.label){var i=e.label.replace(/<span class="searchResultHighlight">([^<>]*)<\/span>/g,"$1");if(t){var n=i.match(/<[^<>]*>/g)||[],o=i.split(/<[^<>]*>/g)||[];for(o=o.map((function(e){return e.replace(new RegExp("("+t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")+")","ig"),'<span class="searchResultHighlight">$1</span>')})),i="";n.length&&o.length;)i+=o.shift()+n.shift();i+=n.concat(o).join("")}e.set("label",i)}},getGroupExpansionStates:function(){for(var e={},t=this.groups,i=Object.keys(t),n=0;n<i.length;n++){var o=i[n];e[o]=t[o].titlePane.get("open")}return e},_createGroupPanel:function(){this.groupContainer||(this.groupContainer=new h,this.groupContainer.placeAt(this.containerNode))},_updateObjectProperties:function(e){var t=e;return Array.isArray(e)||(t=[e]),this._consolidateObjectProperties(t)},_consolidateObjectProperties:function(e){return this.multiplePropertiesCombinationMode===E.INTERSECTION?this._intersectObjectProperties(e):this.multiplePropertiesCombinationMode===E.FIRST?this._getFirstObjectProperties(e):this.multiplePropertiesCombinationMode===E.LAST?this._getLastObjectProperties(e):this._unionObjectProperties(e)},_unionObjectProperties:function(e){var t,i={};if(e)for(Array.isArray(e)||(e=[e]),t=0;t<e.length;t+=1)for(var n in e[t])e[t].hasOwnProperty(n)&&(i=this._combineValues(i,n,e,t,this.multipleValuesCombinationMode));return i},_intersectObjectProperties:function(e){var t,i,n={};if(e)for(Array.isArray(e)||(e=[e]),t=0;t<e.length;t+=1)for(var o in e[t])if(e[t].hasOwnProperty(o)){var r=!0;for(i=0;i<e.length;i+=1)if(!e[i].hasOwnProperty(o)){r=!1;break}r&&(n=this._combineValues(n,o,e,t,this.multipleValuesCombinationMode))}return n},_getNthObjectProperties:function(e,t){var i={};if(e)for(var n in Array.isArray(e)||(e=[e]),e[t])if(e[t].hasOwnProperty(n))for(var o=0;o<e.length;o+=1)e[o].hasOwnProperty(n)&&(i=this._combineValues(i,n,e,o,this.multipleValuesCombinationMode));return i},_getFirstObjectProperties:function(e){return this._getNthObjectProperties(e,0)},_getLastObjectProperties:function(e){Array.isArray(e)||(e=[e]);var t=e.length-1;return this._getNthObjectProperties(e,t)},_combineValues:function(e,t,i,n,o){return e.hasOwnProperty(t)?o===S.ALL?e[t].push(i[n][t]):o===S.LAST?e[t]=[i[n][t]]:o===S.BLANK?e[t][0]!==i[n][t]&&(e[t]=[""]):o!==S.FIRST&&e[t][0]!==i[n][t]&&(e[t]=[o]):e[t]=[i[n][t]],e},_updateObjectValues:function(e,t,i){var n,o=[];if(e&&i)for(n=0;n<i.length;n+=1)i[n]&&i[n].hasOwnProperty(e)&&(i[n][e]=t,o.push(i[n]));return o},_actionEventCallback:function(e){this._redispatchEvent(e)},_propertyValueChanged:function(e){if(e&&e.data){var t=b.mergeObjects(e.data,{});if(this.propertySheet.onPropertyValueChanged&&"function"==typeof this.propertySheet.onPropertyValueChanged)try{this.propertySheet.onPropertyValueChanged(t)}catch(e){v.error(e)}else{var i=this._updateObjectValues(e.data.propertyName,e.data.newValue,this.propertySheet.objects);t=b.mergeObjects(e.data,{modifiedObjects:i})}this._redispatchEvent(e,t)}},_propertyEditingStarted:function(e){e&&e.data&&(this.lastSelectedPropertySet&&this.lastSelectedPropertySet!==e.data.propertySet&&this.lastSelectedPropertySet.stopEditing(),this.lastSelectedPropertySet=e.data.propertySet,this.scrollerNodeActive=!1,this._redispatchEvent(e))},_propertyEditingStopped:function(e){this._redispatchEvent(e)},_propertySelected:function(e){e&&e.data&&(this.lastSelectedPropertySet&&this.lastSelectedPropertySet!==e.data.propertySet&&this.lastSelectedPropertySet.stopEditing(),this.lastSelectedPropertySet=e.data.propertySet,this.scrollerNodeActive=!1,this._redispatchEvent(e))},_propertyDeselected:function(e){this._redispatchEvent(e)},_redispatchEvent:function(e,t){if(e&&e.data){t||(t={});var i=b.mergeObjects(e.data,t);i=b.mergeObjects(i,{propertySheet:this});try{this.dispatchEvent(e.type,this,i)}catch(e){}}},updatePropertyValueAndState:function(e,t,i){this._updateHelper(e,t),this.propertySets&&this.propertySets.hasOwnProperty(e)&&this.propertySets[e]&&this.propertySets[e].updatePropertyValueAndState&&this.propertySets[e].updatePropertyValueAndState(t,i),this._emitHelper(e),this.stateTrigger.emit(e+"StateUpdated",{propertyState:i})},_updateHelper:function(e,t){this._updateObjectValues(e,t,this.propertySheet.objects),this.objectProps=this._updateObjectProperties(this.propertySheet.objects)},_emitHelper:function(e){this.groupEditorsTrigger.emit(e,{propertyValue:this.objectProps[e]}),this.editorTrigger.emit(e,{propertyValue:this.objectProps[e]})},updatePropertyValue:function(e,t){this._updateHelper(e,t),this.propertySets&&this.propertySets.hasOwnProperty(e)&&this.propertySets[e]&&this.propertySets[e].updatePropertyValue&&this.propertySets[e].updatePropertyValue(t),this._emitHelper(e)},updatePropertyState:function(e,t){this.propertySets&&this.propertySets.hasOwnProperty(e)&&this.propertySets[e]&&this.propertySets[e].updatePropertyState&&this.propertySets[e].updatePropertyState(t),this.stateTrigger.emit(e+"StateUpdated",{propertyState:t})},getCurrentPropertyValue:function(e){if(this.propertySets&&this.propertySets.hasOwnProperty(e)&&this.propertySets[e]&&this.propertySets[e].getCurrentPropertyValue)return this.propertySets[e].getCurrentPropertyValue()},_getGroupPropertyNames:function(e){e&&JSON.parse(JSON.stringify(e)).forEach(function(e){this._getGroupPropertyName(e)}.bind(this))},_getGroupPropertyName:function(e){if(!e.type)throw new Error("item should have 'type' property to indicate what type it is.");if(e.type!==m.PROPERTY_ITEM_TYPE.SET){if(void 0===e.items||null===e.items||!Array.isArray(e.items))return;if(e.items=e.items.filter(function(e){if(e.type!==m.PROPERTY_ITEM_TYPE.SET){var t=!1;try{e.type!==m.PROPERTY_ITEM_TYPE.SUB_GROUP&&e.type!==m.PROPERTY_ITEM_TYPE.EDITOR_GROUP||e.items.forEach(function(e){e.type===m.PROPERTY_ITEM_TYPE.SET&&this.objectProps.hasOwnProperty(e.name)&&(t=!0)}.bind(this))}catch(e){}return t}this.groupedProperties.push(e.name)}.bind(this)),0===e.items.length)return;this._getGroupPropertyNames(e.items)}else e.type===m.PROPERTY_ITEM_TYPE.SET&&this.groupedProperties.push(e.name)}});return w.MULTIPLE_PROPERTIES_COMBINATION_MODE=E,w.MULTIPLE_VALUES_COMBINATION_MODE=S,w.INSPECTOR_SCROLLER_NODE_CLASS="propertySetOuterContainer",w}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(2693),i(8919),i(8920),i(8921)],o=i.dj.d(n,(function(e,t,i,n,o){var r={};return r=e.mixin(r,t),r=e.mixin(r,i),r=e.mixin(r,n),r=e.mixin(r,o)}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1257),i(2694)],o=i.dj.d(n,(function(e,t){var i={module:{},renderer:{}};return i.module[e.PROPERTY_ITEM_TYPE.SET]="inspector_client/widget/InspectorPropertySet",i.module[e.PROPERTY_ITEM_TYPE.EDITOR_GROUP]="inspector_client/widget/InspectorPropertyEditorGroup",i.module[e.PROPERTY_ITEM_TYPE.GROUP]="inspector_client/widget/InspectorPropertyGroup",i.module[e.PROPERTY_ITEM_TYPE.SUB_GROUP]="inspector_client/widget/InspectorPropertySubGroup",i}),e,t),e.exports=o},function(e,t){e.exports='<div class =\'ignoreSelection\' style= "display: flex;flex:1;height: 100%">\n <div div data-dojo-attach-point="expander" class = \'toggleImage collpasedImage ignoreSelection\'> </div>\n <div data-dojo-attach-point="objectbrowsercontainer ignoreSelection" class = "objectbrowsercontainer">\n <div data-dojo-attach-point="breadcrumbsplaceholder" class = "breadcrumbsplaceholder ignoreSelection" ></div>\n <div data-dojo-attach-point="treebrowserplaceholder" class = "treebrowserplaceholder ignoreSelection" ></div>\n </div>\n</div>\n'},function(e,t){e.exports='<div data-dojo-attach-point="navigationbarContainerNode" class="breadCrumbsInspector"></div>'},function(e,t){e.exports='<div data-dojo-attach-point="treeContainerNode" class="treeContainerNode"></div>'},function(e,t,i){var n,o;n=[i(203),i(222),i(206),i(204),i(350),i(239),i(212),i(244),i(315)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([t],{constructor:function(e){this._filterFields(e),this._oldData=n.clone(e),this._dataStore=o.create(e,Object.assign({},{type:l.TREE}))},replaceAll:function(e){this._filterFields(e),JSON.stringify(e)!==JSON.stringify(this._oldData)&&(this._dataStore.replaceAll(e),this._oldData=n.clone(e))},getDataStore:function(){return this._dataStore},getNodeData:function(e){return this._dataStore.getNode({id:e})},updateNodeData:function(e,t,i){var o=new a;return e.forEach(n.hitch(this,(function(e){this._dataStore.update({id:null},{id:e},new function(e,t){this[e]=t}(t,i)).then((function(e){!0===e.success?o.resolve():o.reject()}))}))),o},deleteNode:function(e){var t=[];return e.forEach((function(){t.push(new a)})),e.forEach(n.hitch(this,(function(e,i){this._dataStore.remove({id:null},{id:e}).then((function(e){!0===e.success?t[i].resolve():t[i].reject()}))}))),s(t)},addNode:function(e,t,i){var n=new a;return this._dataStore.add(t,e,i).then((function(e){!0===e.success?n.resolve():n.reject()})),n},_filterFields:function(e){e.forEach((function(e){delete e.selected}))},moveNode:function(e,t,i,n){var o=new a;return this._dataStore.move({id:e.getId()},{id:t.getId()},{id:i.getId()},n).then((function(e){!0===e.success?o.resolve():o.reject()})),o},getFirstNode:function(){return this._dataStore.getData([r.range().setColumns(0,0).setRows(0,0)])}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222)],o=i.dj.d(n,(function(e,t,i){return e([i],{_targetNode:null,setTargetNode:function(e){this._targetNode=e},_menuClosed:function(){this.emit("menuClosed",{})},open:function(e,t,i){throw new Error("open should be implemented in the child class")},_emitEvent:function(e){e&&e.actionType&&this.emit("contextMenuEvent",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(385),i(211),i(210),i(215),i(216),i(695),i(209),i(235),i(8910),i(359),i(2698)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e("inspector_client.widget.InspectorPropertyGroup",[r,a,u,d],{templateString:h,groupName:"",constructor:function(e){e||(e={}),this.groupName=e.groupName||"",this.allArgs=c.mergeObjects(e,{})},postCreate:function(){this.domNode&&!this.domNode.hasAttribute("data-tag")&&this.domNode.setAttribute("data-tag",c.concatenateDataTagStrings("datatools","inspector","groupPropertySheet",this.groupName)),this.domNode&&this.allArgs.cssSpecifier&&!o.contains(this.domNode,this.allArgs.cssSpecifier)&&o.add(this.domNode,this.allArgs.cssSpecifier)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{startup:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(385),i(211),i(210),i(213),i(214),i(215),i(216),i(312),i(30),i(695),i(450),i(209),i(359),i(2699)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e("inspector_client.widget.InspectorPropertyEditorGroup",[s,l,f],{templateString:g,constructor:function(e){this.numberOfChild=e.numberOfChild,this._richEditor=null},buildRendering:function(){this.inherited(arguments),this._addRichEditorAffordance()},_updateEditor:function(e){this._richEditor.update(e)},disableEditor:function(){this._dropdown.set("disabled",!0)},addEditor:function(e){this._richEditor=e,this._richEditor.storePopupContainer&&this._richEditor.storePopupContainer(this._dropdown),this._tooltipDialog.set("content",e)},destroy:function(){this.inherited(arguments),this._tooltipDialog&&void 0===this._tooltipDialog._destroyed&&(this._tooltipDialog.destroy(),this._tooltipDialog=null),this._dropdown&&void 0===this._dropdown._destroyed&&(this._dropdown.destroy(),this._dropdown=null),this._editor&&void 0===this._editor._destroyed&&(this._editor.destroy(),this._editor=null),this._richEditor&&void 0===this._richEditor._destroyed&&(this._richEditor.destroy(),this._richEditor=null)},_addRichEditorAffordance:function(){this._tooltipDialog=new d,this.own(a.after(this._tooltipDialog,"onShow",t.hitch(this,(function(){this._richEditor&&this._richEditor.onOpen&&this._richEditor.onOpen()})))),this._dropdown=new h({hasDynamicMenu:!0,menu:this._tooltipDialog,tag:"richeditor_kebab"}),this._dropdown.set("_menuOrientation",["below","below-alt","above","above-alt","after","before","above-centered","below-centered","before-centered","after-centered"]),n.destroy(this._dropdown.dropDownNode);for(var e=0;e<3;e+=1){var i=document.createElement("div");i.classList.add("richeditor-dot"),this._dropdown.iconNode.appendChild(i)}this._dropdown.focusNode.classList.add("rich-focus"),this._dropdown.placeAt(this.propertyGroupEditorNode),this._dropdown.on("dropdownclick",function(){this._dropdown.disabled||(this.emit("richeditoropened",{editor:this._richEditor}),this._dropdown.showMenu())}.bind(this));var o=25*this.numberOfChild-3-2;this._dropdown.set("tag",this.id),this._dropdown.set("height",o),this._dropdown.set("width",10),this._dropdown.buttonNode&&(r.set(this._dropdown.buttonNode,"height",o+"px"),r.set(this._dropdown.buttonNode,"max-height",o+"px"),r.set(this._dropdown.buttonNode,"width","10px"),r.set(this._dropdown.buttonNode,"max-width","10px"))},startup:function(){this.inherited(arguments),this._dropdown.startup(),this._tooltipDialog.startup()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(385),i(206),i(211),i(210),i(236),i(215),i(216),i(312),i(359),i(209),i(235),i(2700)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p){var f=p,g=e("inspector_client.widget.InspectorPropertySet",[s,l,d],{templateString:"",propertyName:"",values:[],propertySheet:{},tooltip:{},editable:!0,_renderer:void 0,_inPlaceEditor:void 0,_editor:void 0,_placementNode:void 0,allArgs:{},_valueChangeListenerFunction:{},_actionEventListenerFunction:{},constructor:function(e){e||(e={}),this.templateString=f,this.propertyName=e.propertyName||"",this.values=e.values,this.propertySheet=e.propertySheet;var i=this;this._commitOnBlur=function(){return!i.propertySheet.scrollerNodeActive},this.propertySheet&&this.propertySheet.displayName&&(this.propertyName=a.substitute(this.propertySheet.displayName,{PropertyName:e.propertyName})),this.propertySheet&&void 0!==this.propertySheet.editable?this.editable=this.propertySheet.editable:this.editable=!0,this.propertyValue=JSON.stringify(this.values),this.allArgs=h.mergeObjects(e,{propertyName:this.propertyName,values:this.values,propertySheet:this.propertySheet,editable:this.editable,propertyValue:this.propertyValue}),this._valueChangeListenerFunction=t.hitch(this,"_editorValueChanged"),this._actionEventListenerFunction=t.hitch(this,"_actionEventCallback"),this.PropertyName=this.propertyName},destroy:function(){this.inherited(arguments),this._renderer&&this._disableRendererValueChangedListener(this._renderer),this._commitOnBlur=null,this.commitOnBlur=null,this.propertySheet=null,this.allArgs=null},postCreate:function(e){this.domNode&&!this.domNode.hasAttribute("data-tag")&&this.domNode.setAttribute("data-tag",h.concatenateDataTagStrings("datatools","inspector","propertySheet","propertySet",this.propertyName)),this.domNode&&this.allArgs.cssSpecifier&&!r.contains(this.domNode,this.allArgs.cssSpecifier)&&r.add(this.domNode,this.allArgs.cssSpecifier),this.propertySheet&&(this.propertySheet.renderer&&this._createRenderer(e),this.propertySheet.tooltip&&this._createTooltip())},_createTooltip:function(){var e,t=a.substitute(this.propertySheet.tooltip,{PropertyName:this.propertyName}).split("||");1===t.length?e=t[0]:t.length>=2&&(e="<span style='font-weight: bold'>"+t[0]+"</span><br/>"+t[1]);var i=this._getAttachNode("inspectorPropertyName"),o=this._getAttachNodeWithTextField("inspectorPropertyValue"),r=[this.domNode];(i||o)&&r.pop(),i&&r.push(i),o&&r.push(o),this.tooltip=new c({connectId:r,label:'<div style="cursor:default" data-tag="datatools.inspector.helpTooltip">'+e+"</div>",position:["before","above","below","after"],showDelay:1e3}),this.own(this.tooltip);var s=this;i&&n(i,"click",(function(){s.tooltip.set("state","DORMANT")})),o&&n(o,"focusin",(function(){s.tooltip.set("state","DORMANT")})),this.domNode&&n(this.domNode,"wheel",(function(){s.tooltip.set("state","DORMANT")})),this.tooltip.startup(),this.own(this.tooltip)},_getAttachNode:function(e){if(!this.domNode)return null;var t='[data-datatools-inspector-attach-point="'+e+'"]',i=this.domNode.querySelectorAll(t);return i&&i.length&&i.length>0?i[0]:null},_getAttachNodeWithTextField:function(e){var t=this._getAttachNode(e);if(t&&t.querySelector(".vecombobox, .mwTextField"))return t;return null},_enableRendererActionEventListener:function(e){e.addEventListener&&e.addEventListener("actionEvent",this._actionEventListenerFunction)},_disableRendererActionEventListener:function(e){e.removeEventListener&&e.removeEventListener("actionEvent",this._actionEventListenerFunction)},_enableRendererValueChangedListener:function(e){e.addEventListener&&e.addEventListener("valueChanged",this._valueChangeListenerFunction)},_disableRendererValueChangedListener:function(e){e.removeEventListener&&e.removeEventListener("valueChanged",this._valueChangeListenerFunction)},_addSelectionClassesAndRedispatch:function(e){e||(e={}),e.data||(e.data={});var t=this._getAttachNode("inspectorPropertyValue"),i=this._getAttachNode("inspectorPropertyName");r.add(this.domNode,"inspectorSelected"),r.add(t,"inspectorSelected"),r.add(i,"inspectorSelected");var n=h.mergeObjects(e.data,{propertyName:this.propertyName,propertySet:this,source:"client"});this.dispatchEvent("propertySelected",this,n)},_addEditingClassesAndRedispatch:function(e){e||(e={}),e.data||(e.data={});var t=this._getAttachNode("inspectorPropertyValue"),i=this._getAttachNode("inspectorPropertyName");r.add(this.domNode,"inspectorEditing"),r.add(t,"inspectorEditing"),r.add(i,"inspectorEditing");var n=h.mergeObjects(e.data,{propertyName:this.propertyName,propertySet:this,source:"client"});this.dispatchEvent("editingStarted",this,n)},_removeSelectionClassesAndRedispatch:function(e){e||(e={}),e.data||(e.data={});var t=this._getAttachNode("inspectorPropertyValue"),i=this._getAttachNode("inspectorPropertyName");r.remove(this.domNode,"inspectorSelected"),r.remove(t,"inspectorSelected"),r.remove(i,"inspectorSelected");var n=h.mergeObjects(e.data,{propertyName:this.propertyName,propertySet:this,source:"client"});this.dispatchEvent("propertyDeselected",this,n)},_removeEditingClassesAndRedispatch:function(e){e||(e={}),e.data||(e.data={});var t=this._getAttachNode("inspectorPropertyValue"),i=this._getAttachNode("inspectorPropertyName");r.remove(this.domNode,"inspectorEditing"),r.remove(t,"inspectorEditing"),r.remove(i,"inspectorEditing");var n=h.mergeObjects(e.data,{propertyName:this.propertyName,propertySet:this,source:"client"});this.dispatchEvent("editingStopped",this,n)},_addPropertySelectionListener:function(){this._getAttachNode("inspectorPropertyName").addEventListener("click",t.hitch(this,"_addSelectionClassesAndRedispatch"))},_addRendererEditingListeners:function(e){e.addEventListener("editingStarted","_handleEditingStarted",this),e.addEventListener("editingStopped","_handleEditingStopped",this),this.own({destroy:function(){e.removeEventListener("editingStarted","_handleEditingStarted",this),e.removeEventListener("editingStopped","_handleEditingStopped",this)}.bind(this)})},_handleEditingStarted:function(e){this._addSelectionClassesAndRedispatch(e),this._addEditingClassesAndRedispatch(e)},_handleEditingStopped:function(e){this._removeSelectionClassesAndRedispatch(e),this._removeEditingClassesAndRedispatch(e)},_createRenderer:function(e){const t=this;let i=!0;try{const i=require(t.propertySheet.renderer);let n=t.values;1===n.length&&(n=n[0]);let r=[];t.cssSpecifier&&(Array.isArray(t.cssSpecifier)?r=t.cssSpecifier:r.push(t.cssSpecifier)),r.push("inspector");let a=h.mergeObjects(t.allArgs,{editValue:void 0!==n.editValue?n.editValue:n,dataType:t.propertySheet.dataType,editor:t.propertySheet.editor,inPlaceEditor:t.propertySheet.inPlaceEditor,editable:t.propertySheet.editable,editOnSingleClick:!0,cssSpecifier:r,commitOnBlur:t._commitOnBlur});t.propertySheet.rendererProperties&&(a=h.mergeObjects(a,t.propertySheet.rendererProperties));let s={dataType:t.propertySheet.dataType,isMetaData:h.getLogicalValue(n.isMetaData,!1)};t.propertySheet.rendererProperties&&(s=h.mergeObjects(s,t.propertySheet.rendererProperties)),t.propertySheet.editorProperties&&(s=h.mergeObjects(s,t.propertySheet.editorProperties)),t.propertySheet.inPlaceEditorProperties&&(s=h.mergeObjects(s,t.propertySheet.inPlaceEditorProperties)),a=h.mergeObjects(a,{state:s,inspectorObject:null,propertySheet:null}),a.value=void 0!==n.value?n.value:n,a.valueObject=n;const l=new i(a);t.own(l);const c=t._getAttachNode("inspectorPropertyValue");c&&(o.place(l.domNode,c,"last"),t._renderer=l,t._placementNode=c),t._enableRendererValueChangedListener(l),t._enableRendererActionEventListener(l),t._addRendererEditingListeners(l),t._addPropertySelectionListener(),e&&e(l)}catch(e){u.error(e),i=!1}return i},_actionEventCallback:function(e){e&&e.data&&this.dispatchEvent("actionEventOccured",this.domNode,e.data)},_editorValueChanged:function(e){if(e&&e.data&&e.data.editor&&e.data.editor.stopEditing&&e.data.editor.stopEditing(),!h.compareValues(this.values,e.data.newValue)){var t=h.mergeObjects(e.data,{propertyName:this.propertyName,source:"client"});this.values=e.data.newValue,this.dispatchEvent("propertyValueChanged",this.domNode,t)}},isEditing:function(){return this._renderer.isEditing()},selectPropertySet:function(){this._addSelectionClassesAndRedispatch(),this._addEditingClassesAndRedispatch()},edit:function(){this.selectPropertySet(),this._renderer.edit()},stopEditing:function(){this._removeSelectionClassesAndRedispatch(),this._removeEditingClassesAndRedispatch(),this._renderer.stopEditing()},cancelEditing:function(){this._removeSelectionClassesAndRedispatch(),this._removeEditingClassesAndRedispatch(),this._renderer.cancelEditing()},updatePropertyValue:function(e){if(this.values=e,this._renderer&&(this._enableDisableValueChangedListeners(e),e.hasOwnProperty("isMetaData"))){var t=this._renderer.getState();t.isMetaData=h.getLogicalValue(e.isMetaData,!1),this._renderer.setState(t)}},_enableDisableValueChangedListeners:function(e){this._disableRendererValueChangedListener(this._renderer),this._disableRendererActionEventListener(this._renderer),this._renderer.setValue(void 0!==e.value?e.value:e),this._enableRendererValueChangedListener(this._renderer),this._enableRendererActionEventListener(this._renderer),this._renderer.setEditValue(void 0!==e.editValue?e.editValue:e),this.values=this._renderer.getValue()},updatePropertyValueAndState:function(e,t){this.values=e;var i=t;this._renderer&&(this._enableDisableValueChangedListeners(e),this._renderer.valueObject=e,e.hasOwnProperty("isMetaData")&&Object.defineProperty(i,"isMetaData",{value:h.getLogicalValue(e.isMetaData,!1)}),this.updatePropertyState(i))},updatePropertyState:function(e){this._renderer&&(e.dataType||(e.dataType=this.propertySheet.dataType),this._renderer.setState(e))},getCurrentPropertyValue:function(){return this.values},updateValueFromDependentValueChange:function(e,t){this._renderer&&this._renderer.setDependentProperties&&Array.isArray(e)&&e.length>0&&(e[0].needUpdateInPlaceEditor||e[0].source&&"client"===e[0].source||this._renderer.setDependentProperties(e,t))}});return g.DEFAULT_PROPERTY_SET_TEMPLATE=f,g}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(385),i(211),i(210),i(215),i(216),i(255),i(235),i(359),i(651),i(2701)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e("inspector_client.widget.InspectorPropertySubGroup",[r,a,s,c],{templateString:u,hidden:!0,groupName:"",constructor:function(e){e||(e={}),this.groupName=e.groupName||""},postCreate:function(){this.showMoreButton.set("icon","arrowDownIcon"),this.containerNode.classList.add("hidden"),this.domNode&&!this.domNode.hasAttribute("data-tag")&&this.domNode.setAttribute("data-tag",l.concatenateDataTagStrings("datatools","inspector",this.groupName,"SubGroup")),this.domNode&&this.hidden&&o.add(this.domNode,"propertySubGroup-hidden"),d.parse()},expandOrCollapse:function(){this.hidden=!this.hidden,this.containerNode.classList.contains("hidden")?this.containerNode.classList.remove("hidden"):this.containerNode.classList.add("hidden"),this._setExpandedAttr(this.hidden)},_setExpandedAttr:function(e){this.domNode&&(this.hidden?(o.remove(this.domNode,"propertySubGroup-expanded"),o.add(this.domNode,"propertySubGroup-hidden"),this.showMoreButton.set("icon","arrowDownIcon")):(o.add(this.domNode,"propertySubGroup-expanded"),o.remove(this.domNode,"propertySubGroup-hidden"),this.showMoreButton.set("icon","arrowUpIcon")))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(204),i(213),i(211),i(2703),i(243),i(603)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([r],{_resetButton:null,_resetLabel:s.resetLabel,constructor:function(e){this.inherited(arguments);var n=e[0].propertyName;this._resetButton=new a({text:this._resetLabel}),this._resetButton.startup(),this.own(t(this._resetButton,"click",i.hitch(this,(function(){this._resetButtonClickHandler(n)}))))},postCreate:function(){this.inherited(arguments),o.place(this._resetButton.domNode,this._inspectorWidget.inspectorOuterContainer,"after"),n.set(this._resetButton.domNode,"margin-left","5px"),this._inspectorWidget.inspect(this._currObjProperties)},_resetButtonClickHandler:function(e){this._commitValue(e+"Mode","manual","auto","client"),this._inspectorWidget.inspect(this._currObjProperties)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(604),i(764),i(214),i(238)],o=i.dj.d(n,(function(e,t,i,n,o){function r(e){return void 0!==e.editValue?e.editValue:e}return e([t],{templateString:"<div class='datePickerRichEditor'></div>",constructor:function(e){if(e.length>1)throw new Error("date picker rich editor could only handle fields for one property");this._propertySetInfo=e[0],this.plugins=this._propertySetInfo.plugins;var t=require("inspector_client/widget/InspectorWidget");this._inspectorWidget=new t({template:"inspector_client/templates/inspectorPropertySheetWithoutHeader.html",application:"EmbeddedDatePickerRichEditor",sortProperties:!1,plugins:this.plugins}),this._propertyName=this._propertySetInfo.propertyName,this._states=this._propertySetInfo.meta.richEditorProperties,this._oldValue=r(this._propertySetInfo.values[0]),this._value=r(this._propertySetInfo.values[0]),this._currObjProperties=this._getObjForEdit(this._states,this._value),this.propertySheet={properties:[{name:"Start",displayName:"Start",dataType:"char",renderer:"rendererseditors/editors/DatePickerEditor",inPlaceEditor:"rendererseditors/editors/DatePickerEditor",editor:null,editable:!0},{name:"End",displayName:"End",dataType:"char",renderer:"rendererseditors/editors/DatePickerEditor",inPlaceEditor:"rendererseditors/editors/DatePickerEditor",editor:null,editable:!0}]};var n=new i({propertySheet:this.propertySheet,objects:this._currObjProperties});this._inspectorWidget.inspect(n)},postCreate:function(){this._inspectorWidget.placeAt(this.domNode),this._inspectorWidget.propertySheet&&this._inspectorWidget.propertySheet.propertySets&&this._inspectorWidget.propertySheet.propertySets.Start&&this._inspectorWidget.propertySheet.propertySets.Start._renderer&&this._inspectorWidget.propertySheet.propertySets.Start._renderer._datepicker&&n.before(this._inspectorWidget.propertySheet.propertySets.Start._renderer._datepicker,"openDropDown",function(){o.focus(this._inspectorWidget.domNode)}.bind(this)),this._inspectorWidget.addEventListener("propertyValueChanged",this._propertyValueChanged.bind(this))},_updateEditor:function(e,t){this._oldValue=this._value,this._value=r(e[0]);var n=this._currObjProperties;if(this._currObjProperties=this._getObjForEdit(this._states,this._value),JSON.stringify(n)!==JSON.stringify(this._currObjProperties)){var o=new i({propertySheet:this.propertySheet,objects:this._currObjProperties});this._inspectorWidget.inspect(o)}},_getObjForEdit:function(e,t){var i=e.fields,n={Year:t.Year[0],Month:t.Month[0],Day:t.Day[0]},o={Year:t.Year[1],Month:t.Month[1],Day:t.Day[1]},r={};return r[i[0]]=n,r[i[1]]=o,r},_convertObject:function(e,t){for(var i=parseInt(e.numElements,10),n=e.fields,o={Year:[],Month:[],Day:[]},r=0;r<i;r+=1)o.Year.push("NaT"===t[n[r]]?null:t[n[r]].Year),o.Month.push("NaT"===t[n[r]]?null:t[n[r]].Month),o.Day.push("NaT"===t[n[r]]?null:t[n[r]].Day);return o},_propertyValueChanged:function(e){if(e&&e.data){var t=e.data.propertyName,i=this._currObjProperties,n=JSON.parse(JSON.stringify(i)),o=e.data.newValue;n[t]=o;var r=this._convertObject(this._states,i),a=this._convertObject(this._states,n);this._oldValue=r,this._value=a,this._currObjProperties=n,this._commitValue(this._propertyName,r,a,"client")}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(203),i(210),i(206),i(213),i(211),i(1145),i(603),i(1674),i(235),i(1259)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return t([d],{_PLACEHOLDERTEXT:s.placeHolderLabel,_createComboBox:function(){if(this._comboBox&&this._comboBox.isInstanceOf&&this._comboBox.isInstanceOf(a))return this._comboBox.store=this.getStore(),this._comboBox.set("value",this._value),this._comboBox.set("displayedValue",this._value),void(this._showDropDownArrow?this.removeCSSClasses("noArrow",this._comboBox.domNode):this.addCSSClasses("noArrow",this._comboBox.domNode));var t="";this._comboBox&&this._comboBox.focusNode&&(t=this._comboBox.focusNode.getAttribute("style")),this._comboBox&&this._comboBox.destroyRecursive&&this._comboBox.destroyRecursive();var s=c.mergeObjects(this._allArgs,{class:"vecombobox",value:this._value,displayedValue:this._value,store:this.getStore(),autoComplete:!0,searchAttribute:"name",invalidMessage:"",missingMessage:"",placeHolder:this._PLACEHOLDERTEXT,readOnly:!0,commitOnBlur:null});this._comboBox=new a(s,"vecombobox"),this._comboBox.domNode.setAttribute("data-tag",this.createDataTag("comboboxeditor")),this.addCSSClasses(["variableEditorRenderers","cell","vecombobox"],this._comboBox.domNode),this._comboBox.focusNode.style=t;var l=e.hitch(this,"_handleKeyboardEvent");n(this._comboBox.domNode,"keypress",l),this._showDropDownArrow?this.removeCSSClasses("noArrow",this._comboBox.domNode):this.addCSSClasses("noArrow",this._comboBox.domNode),this._comboChangeListeners={},this._comboChangeListeners._onChangeListener=n.pausable(this._comboBox,"change",e.hitch(this,"_comboBoxChanged")),this._changeObjectListenersState(this._comboChangeListeners,"pause");var d=this,u=this._comboBox.openDropDown;this._comboBox.openDropDown=function(){u.apply(this),d.addCSSClasses("DropDownOpen"),d._isOverrideMode||d._selectAllText();var t=[];d._allArgs.cssSpecifier&&t.push(d._allArgs.cssSpecifier),t.push("variableEditorRenderers"),t.push("veComboBoxDropDown"),d.addCSSClasses(t,d._comboBox.dropDown.domNode);var i=o.get(d._comboBox.dropDown.domNode.parentNode,"overflow-y");d._comboBox.dropDown.domNode.parentNode&&"scroll"===i&&o.set(d._comboBox.dropDown.domNode.parentNode,"border","1px solid rgb(126, 171, 205)"),n(d._comboBox.dropDown,"close",e.hitch(this,(function(){d.removeCSSClasses("DropDownOpen")})))},this._comboBox.startup(),r.empty(this.domNode),this.domNode.appendChild(this._comboBox.domNode),this.own(this._comboBox),i.add(this._comboBox.domNode,"dataTipsCustomValueComboBox")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(210),i(211),i(213),i(795),i(256),i(235),i(238),i(603),i(367),i(463),i(2704),i(1673),i(8918)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){return e([u,h],{templateString:g,_addNewLabel:d.addNewDataTipRowLabel,_dndSource:void 0,_avatarMap:{},_dataTipRowRichEditor:null,_isReadOnly:!1,_richEditorState:null,_dataTipRows:null,_ERRORSTRING:"color[rgb]{1 0 0}\\bf",constructor:function(){this._dataTipRows=arguments[0].value,Array.isArray(this._dataTipRows)||(this._dataTipRows=JSON.parse("["+this._dataTipRows+"]")),this._richEditorState=arguments[0].state,this.inherited(arguments)},postCreate:function(){this.inherited(arguments),this._createDataTipRows(this._dataTipRows),this._createDataTipRichEditor(),this._updateReadOnlyState(),this.own(i(this.dataTipsAddButton,"click",t.hitch(this,this._addNewRow))),this._dataTipRowRichEditor.domNode.addEventListener("richEditorUpdated",this._richEditorUpdated.bind(this))},_richEditorUpdated:function(e){this.dispatchEvent("actionEvent",this,{actionType:"updateDataTipRow",rowData:e.data.rowData,rowIndex:e.data.rowIndex,propertyName:e.data.propertyName})},_updateReadOnlyState:function(){null!==this.dataTipsEditor&&(this._isReadOnly?n.add(this.dataTipsEditor,"readOnly"):n.remove(this.dataTipsEditor,"readOnly"))},_createDataTipRichEditor:function(){this._dataTipRowRichEditor=new p(this._richEditorState),o.place(this._dataTipRowRichEditor.domNode,this.dataTipsEditor,"last")},_createDataTipRows:function(e){var t=[];this.dataTipsListDiv.removeChild(this.dataTipsList),o.empty(this.dataTipsList);for(var i=0;i<e.length;i++){var n=this._createDataTipNode(e[i],i);t.push(n)}this._createDragAndDropSource(this.dataTipsList,t),o.place(this.dataTipsList,this.dataTipsListDiv,"last")},_applyErrorStateToValueIfNeeded:function(e){var t=!1;return e.includes(this._ERRORSTRING)&&(e=e.slice(this._ERRORSTRING.length+1,e.length),t=!0),{rowValue:e,isErrorState:t}},_createDataTipNode:function(e,a){var s=this._applyErrorStateToValueIfNeeded(e.value),c=o.create("div",{innerHTML:'<label class="dataTipsRowLabel">'+e.label+'</label><label class="dataTipsRowValue">'+s.rowValue+"</label>",class:"dataTipsRowDiv"});s.isErrorState?n.add(c.lastElementChild,"errorStateValue"):n.remove(c.lastElementChild,"errorStateValue"),c.RowData=e,this.own(i(c,"click",t.hitch(this,(function(e){var t=this.buttonPanel.offsetHeight+c.parentElement.offsetHeight*(this._dataTipRows.length+1-c.RowData.rowNumber);this._dataTipRowRichEditor._updateEditor(c.RowData,t)}))));var d=o.create("li",{dndtype:"dataTipsListItem",type:["dataTipsListItem"]});n.add(d,"dojoDndItem"),n.add(d,"dataTipsListItem");var u=this.getState();if(!0===l.getLogicalValue(u.DnDSupported,!0)){var h=o.create("div",{innerHTML:"."});n.add(h,"dojoDndHandle"),n.add(h,"dataTipsDragHandle"),o.place(h,d,"first")}r.set(c,"width","100%"),o.place(c,d,"last");var p=o.create("div",{innerHTML:"."});return n.add(p,"dataTipsDeleteDiv"),this.own(i(p,"click",t.hitch(this,"_deleteDataTipsListItem",d,c))),o.place(p,d,"last"),d.dataTipsEditorWidget=c,d},_createDragAndDropSource:function(e,i){var n=this,o=l.createSelectableDnDTarget(e,{accept:["dataTipsListItem"],checkAcceptanceCallback:function(t){return t.node===e}});o.autoSync=!0,o.allowNested=!0,o.isSource=!0,o.copyOnly=!1,o.withHandles=!0,o.creator=t.hitch(this,"_createDnDAvatar"),this._dndSource=o;var r=o.onMouseMove;o.onMouseMove=function(e){n._adjustAvatarMap(o),r.call(o,e)},s.subscribe("/dnd/start",t.hitch(n,"_handleDnDTopic","pause")),s.subscribe("/dnd/drop",t.hitch(n,"_handleDnDTopic","resume")),s.subscribe("/dnd/cancel",t.hitch(n,"_handleDnDTopic","resume"));var a=o.onDrop;o.onDrop=function(e,t,i){!a||e!==o&&e.node!==o.node||a.call(o,o,t,i)},o.insertNodes(!1,i),o.startup()},_adjustAvatarMap:function(e){if(e.map)for(var t in e.map)if(e.map.hasOwnProperty(t)){var i=e.map[t];if(i&&i.data&&"string"==typeof i.data){var n=e.node.querySelector("#"+t);n&&n.data&&(e.map[t].data=n.data)}}},_createDnDAvatar:function(e,t){var i=o.create("span");if(i.itemIndex=parseInt(e.data),n.add(i,"dojoDndItem"),n.add(i,"dataTipsEditor"),n.add(i,"dataTipsItemAvatar"),"avatar"!==t||!e){var r=this._dndSource.defaultCreator(e,t);return this._avatarMap[r.data]=e.dataTipsEditorWidget,r.node.data=e.dataTipsEditorWidget,r.data=e.dataTipsEditorWidget,r}var s=e;if(s){var l=new f;l.setValue(s.getValue()),l.startup(),o.place(l.domNode,i,"last")}var c=a.manager();return c.OFFSET_X=16,c.OFFSET_Y=16,{node:i,data:e,type:["dataTipsListItem"]}},_deleteDataTipsListItem:function(e,t,i){var n=this.dataTipsAddButton;if(n&&c.focus(n),this._getDataTipRowsDomNode().length>1){var r=t.RowData.rowNumber;this.dispatchEvent("actionEvent",this,{actionType:"deleteDataTipRow",rowIndex:r}),this._dataTipRows.splice(r-1,1),this._updateRowNumberForRows(r-1),this._dndSource.delItem(e.id),o.destroy(t),o.destroy(e)}else l.displayErrorMessageWithSpecifiedWidth(d.dataTipEditorAtLeastOne,330);i.preventDefault(),i.stopPropagation()},_updateRowNumberForRows:function(e){if(this.domNode){var t=this.dataTipsListDiv;if(t){var i=t.getElementsByClassName("dataTipsRowDiv");if(i&&i.length)for(var n=e;n<i.length;n+=1){var o=i[n];o.RowData.rowNumber=o.RowData.rowNumber-1}}}},_addNewRow:function(e){var t=this.buttonPanel.offsetHeight;this._dataTipRowRichEditor._updateEditor(null,t,this._dataTipRows.length+1)},_getDataTipRowsDomNode:function(){var e=[];if(this.domNode){var t=this.dataTipsListDiv;if(t){var i=t.getElementsByClassName("dataTipsRowDiv");if(i&&i.length)for(var n=0;n<i.length;n+=1){var o=i[n];o&&e.push(o)}}}return e},_getUIValue:function(){return this._dataTipRows},_updateDataTipRowsList:function(e){if(e){if(this._value=e,Array.isArray(e)||(e=JSON.parse("["+e+"]")),Array.isArray(this._dataTipRows)||(this._dataTipRows=JSON.parse("["+this._dataTipRows+"]")),e.length!==this._dataTipRows.length)return this._createDataTipRows(e),e.length>this._dataTipRows.length&&this._dataTipRowRichEditor.recalculateRichEditorOffsetHeight(),void this._setDataTipRows(e);for(var t=this._getDataTipRowsDomNode(),i=0;i<this._dataTipRows.length;i++){t[i].RowData=e[i];var o=t[i].getElementsByClassName("dataTipsRowLabel")[0],r=t[i].getElementsByClassName("dataTipsRowValue")[0];o.innerHTML=e[i].label;var a=this._applyErrorStateToValueIfNeeded(e[i].value);r.innerHTML=a.rowValue,a.isErrorState?n.add(r,"errorStateValue"):n.remove(r,"errorStateValue")}this._setDataTipRows(e)}},_setDataTipRows:function(e){this._dataTipRows=e},setValue:function(e){JSON.stringify(e)!==JSON.stringify(this._value)&&this._updateDataTipRowsList(e)},_setReadOnly:function(e){this._isReadOnly=e},destroy:function(){this.inherited(arguments),o.destroy(this._dataTipRowRichEditor.domNode),o.destroy(this.dataTipsEditor)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="dataTipsEditor" data-dojo-attach-point="dataTipsEditor" data-tag="datatools.inspector.editors.dataTipsEditor">\n <div class="dataTipsListDiv" data-dojo-attach-point="dataTipsListDiv" data-tag="datatools.inspector.editors.dataTipsEditor.dataTipsListDiv">\n <ul class="dataTipsList container" data-dojo-attach-point="dataTipsList" data-tag="datatools.inspector.editors.dataTipsEditor.dataTipsList">\n </ul>\n </div>\n <div class="buttonPanel" data-dojo-attach-point="buttonPanel" data-tag="datatools.inspector.editors.dataTipsEditor.buttonPanel">\n <button type="button" class="dataTipsAddButton" data-dojo-attach-point="dataTipsAddButton" data-tag="datatools.inspector.editors.dataTipsEditor.dataTipsAddButton">${_addNewLabel}</button>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(695),i(1260),i(235),i(312),i(206)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{renderPropertyGroup:function(e,t,i){if(t&&t.name){var l=t.name||"",c=t.displayName||t.name||"",d=t.tooltip||"",u=void 0!==t.expanded&&r.getLogicalValue(t.expanded,!1),h=o.getItemModuleByType(t.type),p=new(require(h))({groupName:l,groupMetaData:t}),f=new n({title:c,content:p,open:u,class:"InspectorTitle"});if(f.focusNode&&f.focusNode.setAttribute("tabIndex",-1),p.own(f),f.domNode&&f.domNode.firstElementChild&&""!==d){var g=f.domNode.firstElementChild,m=new a({connectId:[g],label:'<div style="cursor:default" data-tag="datatools.inspector.helpTooltip">'+d+"</div>",position:["before","above","below","after"],showDelay:1e3});p.own(m),s(g,"click",(function(){m.set("state","DORMANT")})),s(g,"wheel",(function(){m.set("state","DORMANT")})),m.startup(),f.own(m)}return f.startup(),e.groups[l]=p,e.groups[l].titlePane=f,i.addChild?i.addChild(f):f.placeAt(i),p}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(210),i(1260),i(1257),i(2693),i(235)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return{renderPropertySet:function(e,t,i,l){var c=e.propertySheet,d=c.getPropertySet(t),u=null;if(!e.hasGroup&&d.richEditorProperties&&d.inPlaceEditorProperties&&d.inPlaceEditorProperties.richEditor){n.remove(e.domNode,"propertySheet-noGroupEditor");var h={type:"editorgroup",items:[{name:t,type:"property"}]};u=a.renderPropertyEditorGroup(e,h,l)}var p=o.getItemModuleByType(r.PROPERTY_ITEM_TYPE.SET),f=c.getPropertySet(t),g=[];f.inPlaceEditorProperties&&f.inPlaceEditorProperties.editorValueDependencies&&(g=f.inPlaceEditorProperties.editorValueDependencies);var m=new(require(p))(s.mergeObjects(e.allArgs,{propertyName:t,values:i,propertySheet:f}));return e._registerEditorValueDependencies(g,m),e.propertySets[t]=m,m.startup(),m.addEventListener("propertyValueChanged","_propertyValueChanged",e),m.addEventListener("actionEventOccured","_actionEventCallback",e),m.addEventListener("editingStarted","_propertyEditingStarted",e),m.addEventListener("editingStopped","_propertyEditingStopped",e),m.addEventListener("propertySelected","_propertySelected",e),m.addEventListener("propertyDeselected","_propertyDeselected",e),m.own({destroy:function(){m.removeEventListener("propertyValueChanged","_propertyValueChanged",e),m.removeEventListener("actionEventOccured","_actionEventCallback",e),m.removeEventListener("editingStarted","_propertyEditingStarted",e),m.removeEventListener("editingStopped","_propertyEditingStopped",e),m.removeEventListener("propertySelected","_propertySelected",e),m.removeEventListener("propertyDeselected","_propertyDeselected",e)}}),u?(u.containerNode.appendChild(m.domNode),m.associatedEditorGroup=u,l.appendChild(u.domNode),u.startup(),u.own(m),u):(l.appendChild(m.domNode),m)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(1260)],o=i.dj.d(n,(function(e,t,i){return{renderPropertySubGroup:function(e,t,n){var o=t.groupname||"",r=i.getItemModuleByType(t.type),a=new(require(r))({groupName:o});return a.placeAt(n),a.startup(),a}}}),e,t),e.exports=o},function(e,t){e.exports='\n<div class="inspector outerContainer" data-dojo-attach-point="inspectorOuterContainer">\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(206),i(215),i(216),i(255),i(312),i(210),i(359),i(235),i(8924),i(603),i(8926)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([i,n,o,s],{baseClass:"ToolbarContainer",templateString:u,alphaOrderTooltipText:d.alphaViewButton,groupOrderTooltipText:d.groupViewButton,warningTooltipText:d.timerWarning,ALPHA_VIEW:"AlphabeticalViewButton",GROUP_VIEW:"GroupedViewButton",disabledStates:void 0,tooltip:void 0,postCreate:function(){this.inherited(arguments),this.groupViewButton.set("buttonGroup",l.concatenateDataTagStrings("GroupedAndAlphabeticalViews",this.id)),this.alphaViewButton.set("buttonGroup",l.concatenateDataTagStrings("GroupedAndAlphabeticalViews",this.id)),this.own(t(this.searchTextField,"search",this._handleSearch.bind(this)),t(this.groupViewButton,"click",this._requestView.bind(this,this.GROUP_VIEW)),t(this.alphaViewButton,"click",this._requestView.bind(this,this.ALPHA_VIEW))),this.disabledStates={};var e=this.domNode.querySelectorAll(".InspectorWarningIcon");this.tooltip=new r({connectId:e,label:'<div style="cursor:default" data-tag="datatools.inspector.warningIcon">'+this.warningTooltipText+"</div>",position:["before","above","below","after"],showDelay:1e3}),this.own(this.tooltip)},updateButton:function(e,t,i){var n=e===this.GROUP_VIEW?this.groupViewButton:this.alphaViewButton;n&&n.set(t,i),"disabled"===t&&(this.disabledStates[e]=i)},showTimerWarning:function(e){var t=this.domNode.querySelectorAll(".InspectorWarningIcon");t=t[0],e?a.add(t,"showWarning"):a.remove(t,"showWarning")},_handleSearch:function(e){this.dispatchEvent("search",this,{substring:e.substring}),""===e.substring?(this._requestView(this.groupViewButton.get("checked")?this.GROUP_VIEW:this.ALPHA_VIEW,"search"),this.alphaViewButton.set("disabled",this.disabledStates[this.ALPHA_VIEW]||!1),this.groupViewButton.set("disabled",this.disabledStates[this.GROUP_VIEW]||!1)):(this._requestView(this.ALPHA_VIEW,"search"),this.alphaViewButton.set("disabled",!0),this.groupViewButton.set("disabled",!0))},_requestView:function(e,t){var i={buttonName:e};t&&(i.viewChangeType=t),this.dispatchEvent("viewChange",this,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(211),i(206),i(223),i(238),i(215),i(216),i(255),i(258),i(343),i(8925),i(603)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([r,a,s,c],{baseClass:"SearchContainer",disabled:!1,templateString:d,placeholderText:u.search,postCreate:function(){this._previousText="",this.inherited(arguments),this._clearTextButton=t.create("div",{class:"ClearTextButton",title:u.clearSearch},this.textField.domNode,"last"),this.textField.on("typing",this._handleTyping.bind(this)),this.textField.on("change",this._handleChange.bind(this)),this.textField.on("keydown",this._handleKeyDown.bind(this)),this.own(i(this._clearTextButton,"click",this.handleClear.bind(this))),this.own(i(this.textField,"click",function(){this.textField.inputNode.focus()}.bind(this)))},_handleKeyDown:function(e){var t=e.which;t===n.ESCAPE?this.handleClear():90===t&&e.ctrlKey&&e.preventDefault()},_handleTyping:function(e){this._requestSearch(e.mwEventData.currentContent,!1)},_handleChange:function(e){this._requestSearch(e.mwEventData.newValue,!0)},handleClear:function(){this._requestSearch("",!0)},_requestSearch:function(e,t){if(e!==this._previousText){var i=""!==e;this._clearTextButton.title=i?"Clear search":"",this._clearTextButton.classList.toggle("clearTextIconEnabled",i),this._previousText=e,t&&this.textField.set("value",e),this.emit("search",{substring:e})}},_setDisabledAttr:function(e){this.textField.set("disabled",e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div>\n <div class="SearchTextField"\n data-dojo-type="mw-form/TextField"\n data-dojo-attach-point="textField"\n data-dojo-props="placeholder: \'${placeholderText}\', spellcheck: false">\n </div>\n</div>\n'},function(e,t){e.exports='<div>\n <div class="ToolbarSearchField"\n data-dojo-type="inspector_client/search/SearchTextField"\n data-dojo-attach-point="searchTextField"\n data-dojo-props="height: 22">\n </div>\n <div class="InspectorWarningIcon">\n </div>\n <div class="ToolbarSearchButton"\n data-dojo-type="mw-form/ToggleButton"\n data-dojo-attach-point="groupViewButton"\n data-dojo-props="icon: \'GroupedViewIcon\', iconAlignment: \'top\', description: \'${groupOrderTooltipText}\'"\n data-buttonId="groupViewButton"\n >\n </div>\n <div class="ToolbarSearchButton"\n data-dojo-type="mw-form/ToggleButton"\n data-dojo-attach-point="alphaViewButton"\n data-dojo-props="icon:\'AlphabeticalViewIcon\', iconAlignment: \'top\', description: \'${alphaOrderTooltipText}\'"\n data-buttonId="alphaViewButton"\n >\n </div>\n</div>\n'},function(e,t){e.exports='<div class="inspector widgetContainer" data-dojo-attach-point="inspectorWidgetContainer">\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(212),i(232),i(8929)],o=i.dj.d(n,(function(e,t,i,n){var o=e("inspector_client.plugins.TicksValidatorPlugin",[n],{validateTicks:function(e,n){i.registerResponseHandler("FEvalResponse:TicksValidatorPlugin",this._handleEvalResponse,this),i.registerFaultHandler("FEval:TicksValidatorPlugin",this._handleEvalError,this);var o=this,r=new t;i.sendMessage({FEval:[{function:"matlab.graphics.internal.propertyinspector.TicksEditorValidator.validateClipboardData",nargout:4,priority:1,dequeMode:"ppe",arguments:[e,n]}]},r,"TicksValidatorPlugin"),r.then((function(e){var t={value:e[0],propName:e[1],errMSG:e[2],clipboardEmpty:e[3]};o._validationComplete(t)}))},_handleEvalError:function(e,t){var i=t;this._implementsDeferred(i)&&i.reject(e)},_handleEvalResponse:function(e,t){var i=e,n=t;if(1===i.length)i[0].isError?n.reject(i[0].messageFaults[0].message):n.resolve(i[0].results);else{var o="Error: Expected 1 result message back, received: "+e.length;n.reject(o)}}});return o.getInstance=function(){return o._instance||(o._instance=new o),o._instance},{getInstance:o.getInstance}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(236),i(603)],o=i.dj.d(n,(function(e,t,i,n){function o(e){return e.split(/(\s+)/).filter((function(e){return e.trim().length>0}))}return e([t],{validateClipboardData:function(e,t){this._isDataValid(t)&&(e.toLowerCase().indexOf("label")>=0?this._validateLabels(e,t):this.validateTicks(e,t))},validateTicks:function(e,t){throw new Error("Cannot call abstract method")},_validateLabels:function(e,t){var i={propName:e};""===t.trim()?i.clipboardEmpty=!0:i.value=o(t),this._validationComplete(i)},_validationComplete:function(e){this.emit("validationComplete",e)},_isDataValid:function(e){if("string"==typeof e){var t=o(e);if(t.length>500){var r={errMSG:i.substitute(n.dataLengthErrMsg,{0:500})};this._validationComplete(r)}return t.length<500}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8931),i(8933),i(516),i(219),i(517),i(8935),i(8937),i(1761),i(565),i(1762)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return n=n.default,r=r.default,(c=c.default).loadDefinition(JSON.parse(d)),new e([l],{constructor:function(){this._viewModelManagerCache={}},getViewModelManager:function(e){var t=e.channelPrefix;return this._viewModelManagerCache.hasOwnProperty(t)?this._viewModelManagerCache[t]:this._createNewViewModelManager(e)},_createNewViewModelManager:function(e){var o=e.channelPrefix,r=new n({inChannel:o+"/MF0ViewModelManagerClient",outChannel:o+"/MF0ViewModelManagerServer"}),l=new mf.zero.Model;e.preventSync||this._syncModel(r,l);var c=null;c=e.hasOwnProperty("commitStrategy")?e.commitStrategy:new t;var d=new i(c),u=new s,h=new a(l,r,d,u);this._viewModelManagerCache[o]=h;var p=h.addEventListener("destroyed",function(e){e.target;p.remove(),delete this._viewModelManagerCache[o]}.bind(this));return h},_syncModel:function(e,t){o.isRunning()||o.start();var i=new r(t,e,void 0,void 0,!0);o.subscribe(e.inChannel,(function(t){e.receive(t.data)}),e).then((function(){e._started=!0})),i.start(),i.fetchModel()}})()}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8932)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},transactionStarted:function(){},transactionEnded:function(){this.onReadyToCommit()},manualCommit:function(){this.onReadyToCommit()},onReadyToCommit:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(){},transactionStarted:function(){throw new Error("Unimplemented API: transactionStarted")},transactionEnded:function(){throw new Error("Unimplemented API: transactionEnded")},manualCommit:function(){throw new Error("Unimplemented API: manualCommit")},onReadyToCommit:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(204),i(8934)],o=i.dj.d(n,(function(e,t,i,n){return e(n,{constructor:function(e){this._transactionStackSize=0,this._transaction=null,this._commitStrategyListener=null,this.setCommitStrategy(e),this._metadata=void 0},beginTransaction:function(){0===this._transactionStackSize&&(Boolean(this._transaction)||(this._transaction=this._viewModelManager._mf0Model.beginTransaction()),this._commitStrategy.transactionStarted()),this._transactionStackSize+=1},commitTransaction:function(e){void 0!==e&&(this._metadata=e),this._transactionStackSize-=1,0===this._transactionStackSize&&this._commitStrategy.transactionEnded()},manualCommit:function(e){void 0!==e&&(this._metadata=e),this._commitStrategy.manualCommit()},setCommitStrategy:function(e){Boolean(this._commitStrategyListener)&&this._commitStrategyListener.remove(),this._commitStrategy=e,this._commitStrategyListener=t.after(this._commitStrategy,"onReadyToCommit",i.hitch(this,"_confirmCommitListener"),!0)},_registerViewModelManager:function(e){this._viewModelManager=e},_confirmCommitListener:function(){var e=this._transaction,t=this._metadata;void 0===t||i.isString(t)&&"boolean"==typeof t||(t=!0),this._transaction=null,this._metadata=void 0,e.commit(t)},destroy:function(){this._viewModelManager=null,this._commitStrategyListener.remove(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(){},beginTransaction:function(){throw new Error("Unimplemented API: transactionStarted")},commitTransaction:function(e){throw new Error("Unimplemented API: transactionEnded")},manualCommit:function(e){throw new Error("Unimplemented API: manualCommit")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(204),i(1756),i(2705),i(8936)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n,o],{constructor:function(e,t,i,n){this._mf0Model=e,this._channel=t,this._viewModelCache={},this._transactionHandler=i,this._transactionHandler._registerViewModelManager(this),this._viewModelFactory=n,this._mf0ChangeReportListener=new r(this),this._mf0Model.addDeepListener(this._mf0ChangeReportListener),this._root=null},getRoot:function(){return this._root},hasRoot:function(){return Boolean(this._root)},setRoot:function(e,t){this._beginTransaction();var i={mf0ViewModelManager:this,propertyObject:t,type:e};return this._root=this._viewModelFactory.createViewModel(i),this._commitTransaction(),this._root},hasById:function(e){return Boolean(this.getById(e))},getById:function(e){return this._viewModelCache.hasOwnProperty(e)?this._viewModelCache[e]:null},getByType:function(e,t){var i=[];return Boolean(t)||(t=this._root),Boolean(t)&&t.visit((function(t){t.getType()===e&&i.push(t)})),i},getByProperty:function(e,t,i){var n=[];return Boolean(i)||(i=this._root),Boolean(i)&&i.visit((function(i){i.hasProperty(e)&&i.getProperty(e)===t&&n.push(i)})),n},move:function(e,t,i,n){if((!Number.isInteger(i)||i>t.getNumberOfChildren())&&(i=t.getNumberOfChildren()),i<0)throw new Error("ASSERTION FAILED: Index value should not be negative.");if(e===t||e.hasDescendant(t.getId()))throw new Error("ASSERTION FAILED: Can not move a node to be a child or descendant of itself");this._beginTransaction(),e.hasParent()&&e._detachParent(),e._setViewModelAndMF0Parent(t),t._updateViewModelAndMF0ChildrenAfterAdd(e,i),this._commitTransaction(n)},commit:function(e){this._commitStrategy.manualCommit(e)},destroy:function(){this._destroyed||(this.hasRoot()&&this.getRoot().destroy(),this._mf0Model.removeListener(this._mf0ChangeReportListener),this._beginTransaction(),this._mf0Model.topLevelElements.forEach((function(e){e.destroy()})),this._commitTransaction(),this._mf0Model.destroy(),this._mf0Model=null,this._channel=null,this._mf0ChangeReportListener=null,this.notifyEventListeners("destroyed",this,{}),this._transactionHandler.destroy(),this._transactionHandler=null,this.inherited(arguments))},setCommitStrategy:function(e){this._transactionHandler.setCommitStrategy(e)},_setRootWithObject:function(e,t){var i={mf0ViewModelManager:this,mf0Element:e},n=this._viewModelFactory.createViewModel(i);n.updateEntireCacheIfPresent(),this._root=n},_registerViewModel:function(e){this._viewModelCache[e.getId()]=e},_unregisterViewModel:function(e){delete this._viewModelCache[e.getId()]},_beginTransaction:function(){this._transactionHandler.beginTransaction()},_commitTransaction:function(e){this._transactionHandler.commitTransaction(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(345),i(1681),i(1023)],o=i.dj.d(n,(function(e,t,i,n){return e(t=t.default,{constructor:function(e){this._mf0ViewModelManager=e,this._propertiesCache={},this._viewModelsMovedCache={},this._rootSetFiredFlag=!1,this.isModifier=!0},transactionCommitted:function(e){var t=this._restructureChangeReport(e);this._updatePropertyCachesOfViewModels(t),this._rootSetFiredFlag||this._listenForRootSet(t),this._listenForGenericObjectAdd(t),this._listenForGenericObjectModified(t,e),this._listenForPropertyAdd(t),this._listenForPropertyModified(t,e),this._dispatchPropertiesSet(t),this._listenForGenericObjectDestroy(t)},_restructureChangeReport:function(e){var t=i.MF0GenericObjectClassName,n=i.MF0PropertyObjectClassName,o={created:{genericObject:[],property:[]},modified:{genericObject:[],property:[]},modifiedGenericObject:{Parent:[],Children:[]},modifiedPropertyObject:{Value:[]},destroyed:{genericObject:[],property:[]}};return e._added.forEach((function(e){e.isInstOf(t)&&o.created.genericObject.push(e),e.isInstOf(n)&&o.created.property.push(e)})),e._modified.forEach((function(i){var r=e.getChangedProperties(i);i.isInstOf(t)&&(o.modified.genericObject.push(i),r.forEach((function(e){var t=e.get_PropName();"_Children"===t?o.modifiedGenericObject.Children.push(i):"_Parent"===t&&o.modifiedGenericObject.Parent.push(i)}),this)),i.isInstOf(n)&&(o.modified.property.push(i),r.forEach((function(e){"_Value"===e.get_PropName()&&o.modifiedPropertyObject.Value.push(i)}),this))})),e._destroyed.forEach((function(e){e.isInstOf(t)&&o.destroyed.genericObject.push(e),e.isInstOf(n)&&o.destroyed.property.push(e)})),o.metadata=e.metadata,o},_listenForRootSet:function(e){this._getCreatedMF0GenericObjectsUsingRestructuredChangeReport(e).forEach((function(t){if(this._isMF0ElementRoot(t)){this._mf0ViewModelManager.hasRoot()||this._mf0ViewModelManager._setRootWithObject(t);var n=this._mf0ViewModelManager.getById(t.uuid),o={root:n};this._rootSetFiredFlag=!0,this._mf0ViewModelManager.notifyEventListeners("rootSet",n,o,e.metadata),setTimeout((function(){n._destroyed||n.dispatchEvent(i.HandshakeEventName)}),0)}}),this)},_listenForGenericObjectAdd:function(e){for(var t=this._getCreatedMF0GenericObjectsUsingRestructuredChangeReport(e);0!==t.length;)t=this._parseCreatedGenericObjectsForExistingParents(t,e)},_parseCreatedGenericObjectsForExistingParents:function(e,t){var i=[];return e.forEach((function(e){if(e!==this._mf0ViewModelManager.getRoot()._mf0Element){var n=e.Parent,o=this._mf0ViewModelManager.getById(n.uuid),r=n.Children.find(e);if(o&&r<=o.getChildren().length){var a=this._mf0ViewModelManager.getById(e.uuid);a||(a=o._addChildThroughObject(e));var s={child:a,index:o.getChildIndex(a)};o.notifyEventListeners("childAdded",o,s,t.metadata)}else i.push(e)}}),this),i},_isMF0ElementRoot:function(e){var t=e.isInstOf(i.MF0GenericObjectClassName),n=Boolean(e.Parent);return t&&!n},_cacheChildAttached:function(e,t,i){var n=e.getId();this._viewModelsMovedCache.hasOwnProperty(n)||(this._viewModelsMovedCache[n]={oldParent:{},oldIndex:-1,newParent:{},newIndex:-1}),this._viewModelsMovedCache[n].newParent=t,this._viewModelsMovedCache[n].newIndex=i},_cacheChildDetached:function(e,t,i){var n=e.getId();this._viewModelsMovedCache.hasOwnProperty(n)||(this._viewModelsMovedCache[n]={oldParent:{},oldIndex:-1,newParent:{},newIndex:-1}),this._viewModelsMovedCache[n].oldParent=t,this._viewModelsMovedCache[n].oldIndex=i},_fireViewModelManagerMoveEvents:function(e){for(var t in this._viewModelsMovedCache){var i=this._mf0ViewModelManager.getById(t),n=this._viewModelsMovedCache[t];delete this._viewModelsMovedCache[t],this._mf0ViewModelManager.notifyEventListeners("childMoved",i,n,e.metadata)}},_listenForGenericObjectModified:function(e,t){this._listenForGenericObjectParentModified(e),this._listenForGenericObjectChildrenModified(e,t),this._fireViewModelManagerMoveEvents(e)},_listenForGenericObjectParentModified:function(e){this._getModifiedGenericObjectsWithParentChangeUsingRCR(e).forEach((function(t){var i=t.Parent;if(!!Boolean(i)){var n=this._mf0ViewModelManager.getById(t.uuid),o=this._mf0ViewModelManager.getById(i.uuid);if(!(n.getParent().getId()===i.uuid)){var r=n.getParent();this._makeViewModelConsistentAfterMove(n,o,r)}var a={child:n,index:o.getChildIndex(n)};o.notifyEventListeners("childAttached",o,a,e.metadata),this._cacheChildAttached(n,o,a.index)}}),this)},_listenForGenericObjectChildrenModified:function(e,t){this._getModifiedGenericObjectsWithChildrenChangeUsingRCR(e).forEach((function(i){var n=this._getPreviousPropertyValue(t,i,"Children"),o=i.Children;n.forEach((function(t){if(-1===o.find(t)){var r=this._mf0ViewModelManager.getById(i.uuid),a=this._mf0ViewModelManager.getById(t.uuid),s=a._mf0Element;if(!Boolean(s)||!s.isValid||!Boolean(s.Parent))return;var l=s.Parent;if(!(r.getId()!==l.uuid)){var c=this._mf0ViewModelManager.getById(l.uuid);this._makeViewModelConsistentAfterMove(a,c,r)}var d={child:a,index:n.indexOf(s)};r.notifyEventListeners("childDetached",r,d,e.metadata),this._cacheChildDetached(a,r,d.index)}}),this)}),this)},_makeViewModelConsistentAfterMove:function(e,t,i){i._updateViewModelChildrenAfterRemove(e),e._setViewModelParent(t);var n=t._mf0Element.Children.find(e._mf0Element);t._updateViewModelChildrenAfterAdd(e,n)},_updatePropertyCachesOfViewModels:function(e){this._getCreatedMF0PropertiesUsingRestructuredChangeReport(e).forEach((function(t){this._ifCreatedSpecificMF0GenericObjectUsingRestructuredChangeReport(e,t.genericObject)||this._getViewModelOfMF0Property(t).updatePropertyCacheIfPresent(t.Name)}),this),this._getModifiedPropertyObjectsWithValueChangeUsingRCR(e).forEach((function(e){this._getViewModelOfMF0Property(e).updatePropertyCacheIfPresent(e.Name)}),this)},_listenForPropertyAdd:function(e){this._getCreatedMF0PropertiesUsingRestructuredChangeReport(e).forEach((function(t){this._ifCreatedSpecificMF0GenericObjectUsingRestructuredChangeReport(e,t.genericObject)||this._notifyPropertyContainer(t,"",e.metadata)}),this)},_listenForPropertyModified:function(e,t){this._getModifiedPropertyObjectsWithValueChangeUsingRCR(e).forEach((function(i){var o=this._getPreviousPropertyValue(t,i,"Value"),r=n.convertFromJSON(o);this._notifyPropertyContainer(i,r,e.metadata)}),this)},_listenForGenericObjectDestroy:function(e){for(var t=this._getDestroyedGenericObjectsUsingRestructuredChangeReport(e);0!==t.length;)t=this._parseDestroyedGenericObjectsForExistingParents(t,e)},_parseDestroyedGenericObjectsForExistingParents:function(e,t){var i=[];return e.forEach((function(e){var n=this._mf0ViewModelManager.getById(e.uuid);if(0===n.getNumberOfChildren()){var o=null;if(n.hasParent()){var r=n.getParent();o={child:n,index:r.getChildIndex(n)},r._updateViewModelChildrenAfterRemove(n),r.notifyEventListeners("childRemoved",r,o,t.metadata),r.notifyEventListeners("childDestroyed",r,o,t.metadata)}else o={root:n},this._mf0ViewModelManager._root=null,this._mf0ViewModelManager.notifyEventListeners("rootUnset",n,o,t.metadata);o={},n.notifyEventListeners("destroyed",n,o,t.metadata),this._mf0ViewModelManager._unregisterViewModel(n)}else i.push(e)}),this),i},_getCreatedMF0GenericObjectsUsingRestructuredChangeReport:function(e){return e.created.genericObject},_getCreatedMF0PropertiesUsingRestructuredChangeReport:function(e){return e.created.property},_ifCreatedSpecificMF0GenericObjectUsingRestructuredChangeReport:function(e,t){return this._getCreatedMF0GenericObjectsUsingRestructuredChangeReport(e).some((function(e){return t===e}))},_ifCreatedMF0GenericObjects:function(e){return this._getCreatedMF0GenericObjects(e).length>0},_getCreatedMF0GenericObjects:function(e){return this._getCreatedMF0ElementsByType(e,i.MF0GenericObjectClassName)},_ifCreatedSpecificMF0GenericObject:function(e,t){return this._getCreatedMF0GenericObjects(e).some((function(e){return t===e}))},_ifCreatedMF0Properties:function(e){return this._getCreatedMF0Properties(e).length>0},_getCreatedMF0Properties:function(e){return this._getCreatedMF0ElementsByType(e,i.MF0PropertyObjectClassName)},_getCreatedMF0ElementsByType:function(e,t){var i=[];return e.processAdded((function(e){e.getMetaClass().getQualifiedName()===t&&i.push(e)})),i},_filterMF0ArrayByType:function(e,t){return e.filter((function(e){return e.getMetaClass().getQualifiedName()===t}),this)},_getCreatedMF0Elements:function(e){var t=[];return e.processAdded((function(e){t.push(e)})),t},_getModifiedGenericObjectsWithChildrenChangeUsingRCR:function(e){return e.modifiedGenericObject.Children},_getModifiedGenericObjectsWithParentChangeUsingRCR:function(e){return e.modifiedGenericObject.Parent},_getModifiedGenericObjectsByPropertyChangeUsingRCR:function(e,t,i){var n=e.modified.genericObject;return this._filterMF0ArrayByPropertyChange(t,n,i)},_getModifiedPropertyObjectsWithValueChangeUsingRCR:function(e){return e.modifiedPropertyObject.Value},_getModifiedPropertyObjectsByPropertyChangeUsingRCR:function(e,t,i){var n=e.modified.property;return this._filterMF0ArrayByPropertyChange(t,n,i)},_getModifiedMF0ElementsByTypeAndPropertyChange:function(e,t,i){var n=this._getModifiedMF0Elements(e),o=this._filterMF0ArrayByType(n,t);return this._filterMF0ArrayByPropertyChange(e,o,i)},_filterMF0ArrayByPropertyChange:function(e,t,i){return t.filter((function(t){return e.getChangedProperties(t).some((function(e){return e.get_PropName()==="_"+i}),this)}))},_getModifiedMF0Elements:function(e){var t=[];return e.processModified((function(e){t.push(e)})),t},_getPreviousPropertyValue:function(e,t,i){var n=null,o=e.getChangedProperties(t).find((function(e){return e.name===i}));return Boolean(o)&&(n=e.getOldValue(t,o)),n},_getDestroyedGenericObjectsUsingRestructuredChangeReport:function(e){return e.destroyed.genericObject},_getDestroyedGenericObjects:function(e){var t=[];return e.processDestroyed((function(e){t.push(e)}),[i.MF0GenericObjectClassName]),t},_getViewModelOfMF0Property:function(e){var t=e.genericObject.uuid;return this._mf0ViewModelManager.getById(t)},_notifyPropertyContainer:function(e,t,n){var o=this._getViewModelOfMF0Property(e),r={key:e.Name,oldValue:t,newValue:o.getProperty(e.Name)};o.notifyEventListeners("propertySet",o,r,n),this._cachePropertiesSet(o,r.key,r.newValue,r.oldValue);var a=i.PropertyChangeListenerEventNamePrefix+e.Name;o.notifyEventListeners(a,o,r,n)},_cachePropertiesSet:function(e,t,i,n){var o=e.getId();this._propertiesCache.hasOwnProperty(o)||(this._propertiesCache[o]={oldValues:{},newValues:{}}),this._propertiesCache[o].oldValues[t]=n,this._propertiesCache[o].newValues[t]=i},_dispatchPropertiesSet:function(e){for(var t in this._propertiesCache){var i=this._mf0ViewModelManager.getById(t),n=this._propertiesCache[t];delete this._propertiesCache[t],i.notifyEventListeners("propertiesSet",i,n,e.metadata)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8938),i(230),i(8941),i(1681)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i],{constructor:function(){this._createMF0GenericObjectWithId=new Function("mf0Model","genericObjectId","return new "+o.MF0GenericObjectClassName+"(mf0Model, genericObjectId);")},createViewModel:function(e){e.mf0Element||(e.mf0Element=this._createBackingMF0Element(e));var t=this._wrapMF0Element(e);return e.propertyObject&&t.setProperties(e.propertyObject),t},_createBackingMF0Element:function(e){var t,i=e.mf0ViewModelManager,n=i._mf0Model;return i._beginTransaction(),(t=e.id?this._createMF0GenericObjectWithId(n,e.id):this._createMF0GenericObjectWithId(n)).Type=e.type,i._commitTransaction(),t},_wrapMF0Element:function(e){var i=e.mf0ViewModelManager,o=e.mf0Element,r=new n(o,i);return new t(i,this,o,r)}})}),e,t),e.exports=o},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(203),__webpack_require__(204),__webpack_require__(1758),__webpack_require__(8939),__webpack_require__(8940),__webpack_require__(1681),__webpack_require__(1023)],__WEBPACK_AMD_DEFINE_RESULT__=__webpack_require__.dj.d(__WEBPACK_AMD_DEFINE_ARRAY__,(function(declare,lang,AbstractViewModel,MF0EventDispatchable,MF0ViewModelListener,MF0Constants,JSONConversionUtility){return declare([AbstractViewModel,MF0EventDispatchable],{constructor:function(e,t,i,n){this._viewModelFactory=t,this._mf0Element=i,this._id=this._mf0Element.uuid,this._type=this._mf0Element.Type,this._propertyGetSetStrategy=n,this._parent=null,this._children=[],this._mf0Listener=new MF0ViewModelListener(this),e._registerViewModel(this)},getParent:function(){return this._parent},getChildren:function(){return this._children.map((function(e){return e}))},getRoot:function(){return this.getViewModelManager().getRoot()},getId:function(){return this._id},getType:function(){return this._type},getNumberOfChildren:function(){return this._children.length},addChild:function(e,t,i,n,o){if((!Number.isInteger(i)||i>this.getNumberOfChildren())&&(i=this.getNumberOfChildren()),i<0)throw new Error("ASSERTION FAILED: Index value should not be negative.");var r=this.getViewModelManager();r._beginTransaction();var a={mf0ViewModelManager:r,mf0Model:r._mf0Model,type:e};o&&(a.id=o);var s=this._viewModelFactory.createViewModel(a);return s._setViewModelAndMF0Parent(this),this._updateViewModelAndMF0ChildrenAfterAdd(s,i),t&&s.setProperties(t),r._commitTransaction(n),s},addChildWithId:function(e,t,i,n,o){return this.addChild(t,i,n,o,e)},visit:function(e){e(this),this._children.forEach((function(t){t.visit(e)}))},addPropertyChangeListener:function(e,t,i){var n=MF0Constants.PropertyChangeListenerEventNamePrefix+e;return this.addEventListener(n,t,i)},hasProperty:function(e){if(!this._destroyed)return this._propertyGetSetStrategy.hasProperty(e)},setProperties:function(e,t){this._propertyGetSetStrategy.setProperties(e,t)},setProperty:function(e,t,i){this._propertyGetSetStrategy.setProperty(e,t,i)},getProperties:function(){if(!this._destroyed)return this._propertyGetSetStrategy.getProperties()},getProperty:function(e){if(!this._destroyed)return this._propertyGetSetStrategy.getProperty(e)},hasParent:function(){return Boolean(this._parent)},hasChild:function(e){var t=e;return"string"!=typeof e&&(t=e.getId()),this._getChildIndexThroughId(t)>-1},getChild:function(e){var t=e;return"string"==typeof e&&(t=this._getChildIndexThroughId(e)),this._getChildThroughIndex(t)},getChildIndex:function(e){return this._getChildIndexThroughViewModel(e)},hasDescendant:function(e){return Boolean(this.getDescendant(e))},getDescendant:function(e){for(var t=0;t<this.getNumberOfChildren();t++){var i=this._children[t];if(i.getId()===e)return i;if(i.hasDescendant(e))return i.getDescendant(e)}return null},updateEntireCacheIfPresent:function(){this._propertyGetSetStrategy.updateEntireCacheIfPresent()},updatePropertyCacheIfPresent:function(e){this._propertyGetSetStrategy.updateCacheIfPresent(e)},destroy:function(){if(!this._destroyed){var e=this.getViewModelManager();if(e._beginTransaction(),this.hasParent()){var t=this.getParent();t._updateMF0ChildrenAfterRemove(this)}this.visit((function(e){e._mf0Element&&e._mf0Element.isValid&&e._mf0Element.destroy()})),e._commitTransaction(),this._viewModelFactory=null,this._mf0Listener=null,this._mf0Element=null,this._propertyGetSetStrategy=null,this.inherited(arguments)}},_getChildThroughIndex:function(e){var t=null;return e>-1&&e<this.getNumberOfChildren()&&(t=this._children[e]),t},_getChildIndexThroughViewModel:function(e){return this._getChildIndexThroughId(e.getId())},_setViewModelAndMF0Parent:function(e){this._setViewModelParent(e),this._setMF0Parent(e)},_setViewModelParent:function(e){this._parent=e},_setMF0Parent:function(e){var t=this.getViewModelManager();t._beginTransaction(),this._mf0Element.Parent=e._mf0Element,t._commitTransaction()},_updateViewModelAndMF0ParentAfterRemove:function(){var e=this.getViewModelManager();e._beginTransaction(),this._mf0Element.Parent=null,this._parent={},e._commitTransaction()},_updateViewModelAndMF0ChildrenAfterAdd:function(e,t){this._updateViewModelChildrenAfterAdd(e,t),this._updateMF0ChildrenAfterAdd(e,t)},_updateViewModelChildrenAfterAdd:function(e,t){this._children.splice(t,0,e)},_updateMF0ChildrenAfterAdd:function(e,t){var i=this.getViewModelManager();i._beginTransaction();for(var n=this._mf0Element.Children,o=n.back(),r=[];n.find(o)>=t;)r.push(o),o=n.back(),n.pop();n.push(e._mf0Element);for(var a=0;a<r.length;a++){var s=r[a];n.push(s)}i._commitTransaction()},_updateViewModelAndMF0ChildrenAfterRemove:function(e){this._updateViewModelChildrenAfterRemove(e),this._updateMF0ChildrenAfterRemove(e)},_updateViewModelChildrenAfterRemove:function(e){if(this.hasChild(e.getId())){var t=this._getChildIndexThroughId(e.getId());this._children.splice(t,1)}},_updateMF0ChildrenAfterRemove:function(e){var t=this.getViewModelManager();t._beginTransaction();var i=e._mf0Element,n=this._mf0Element.Children,o=n.find(i);o>-1&&n.splice(o),t._commitTransaction()},_addChildThroughObject:function(e){var t=this.getViewModelManager();t._beginTransaction();var i={mf0ViewModelManager:t,mf0Element:e},n=this._viewModelFactory.createViewModel(i);n._setViewModelParent(this);var o=this._mf0Element.Children.find(e);return this._updateViewModelChildrenAfterAdd(n,o),n.updateEntireCacheIfPresent(),t._commitTransaction(),n},_detachParent:function(){if(this.hasParent()){var e=this.getParent(),t=this.getViewModelManager();t._beginTransaction(),this._updateViewModelAndMF0ParentAfterRemove(),e._updateViewModelAndMF0ChildrenAfterRemove(this),t._commitTransaction()}},_getChildIndexThroughId:function(e){return this._children.findIndex((function(t){return t.getId()===e}))},_createEventData:function(eventName,eventDataObject){var customEventData=eval("new "+MF0Constants.MF0EventDataObjectClassName+"();");return customEventData.EventName=eventName,customEventData.EventData=JSONConversionUtility.convertToJSON(eventDataObject),customEventData},_fireEventAcrossTheWire:function(e,t){this._mf0Element.genericEvent.emit(t)}})}),module,exports),module.exports=__WEBPACK_AMD_DEFINE_RESULT__},function(e,t,i){var n,o;n=[i(203),i(204),i(209),i(1759),i(2705),i(1023)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([n,o],{constructor:function(){},dispatchEvent:function(e,t,i,n){i||(i={}),this.getViewModelManager()._beginTransaction();var o=this._createEventData(e,i);this._fireEventAcrossTheWire(e,o),this.getViewModelManager()._commitTransaction()},_createEventData:function(e,t){throw new Error("Unimplemented API: _createEventData")},_fireEventAcrossTheWire:function(e,t){throw new Error("Unimplemented API: _fireEventAcrossTheWire")},dispatchNoSyncEvent:function(e,t,i,n){this.notifyEventListeners(e,this,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1023)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e){this._viewModel=e,this._addListeners()},_addListeners:function(){this._viewModel._mf0Element.genericEvent.registerHandler(function(e,i){var n=i.EventName,o=t.convertFromJSON(i.EventData);this._viewModel.notifyEventListeners(n,this._viewModel,o,i.Metadata)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(8942),i(1023)],o=i.dj.d(n,(function(e,t,i,n){return e(i,{constructor:function(e,t){this._mf0Element=e,this._mf0ViewModelManager=t,this._propertyCache={}},hasProperty:function(e){return this._mf0Element&&this._mf0Element.isValid?this._hasPropertyMF0BackingObject(e):this._propertyCache.hasOwnProperty(e)},setProperties:function(e,t){for(var i in this._mf0ViewModelManager._beginTransaction(),e)e.hasOwnProperty(i)&&this.setProperty(i,e[i]);this._mf0ViewModelManager._commitTransaction(t)},setProperty:function(e,t,i){if(this._mf0Element&&this._mf0Element.isValid)if(null!=t){var o=this.hasProperty(e);if(this._propertyCache[e]=t,o)this._mf0ViewModelManager._beginTransaction(),this._mf0Element.properties.at(e).Value=n.convertToJSON(t),this._mf0ViewModelManager._commitTransaction(i);else this._createNewProperty(e,t,i)}else console.warn("Property value cannot be null or undefined.");else console.warn("View Model has already been destroyed. Properties cannot be set on a destroyed view model")},getProperties:function(){return t.clone(this._propertyCache)},getProperty:function(e){return t.clone(this._propertyCache[e])},updateEntireCacheIfPresent:function(){var e=this._mf0Element.properties,t=this;e.forEach((function(e){var i=e.Name;t.updateCacheIfPresent(i)}))},updateCacheIfPresent:function(e){this._propertyCache[e]=this._getPropertyFromMF0BackingObject(e)},_hasPropertyMF0BackingObject:function(e){var t=this._mf0Element.properties.at(e);return Boolean(t)},_getPropertiesFromMF0BackingObjects:function(){var e={},t=this._mf0Element.properties,i=this;return t.forEach((function(t){var n=t.Name;e[n]=i._getPropertyFromMF0BackingObject(n)})),e},_getPropertyFromMF0BackingObject:function(e){var t;if(this._hasPropertyMF0BackingObject(e)){var i=this._mf0Element.properties.at(e).Value;t=n.convertFromJSON(i)}return t},_createNewProperty:function(e,t,i){this._mf0ViewModelManager._beginTransaction();var o=new viewmodel.internal.zml.Property(this._mf0ViewModelManager._mf0Model);o.Name=e,o.Value=n.convertToJSON(t),this._mf0Element.properties.insert(o),this._mf0ViewModelManager._commitTransaction(i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){},hasProperty:function(e){throw new Error("Unimplemented API: hasProperty")},setProperties:function(e,t){throw new Error("Unimplemented API: setProperties")},setProperty:function(e,t,i){throw new Error("Unimplemented API: setProperty")},getProperties:function(){throw new Error("Unimplemented API: getProperties")},getProperty:function(e){throw new Error("Unimplemented API: getProperty")},updateEntireCacheIfPresent:function(){throw new Error("Unimplemented API: updateEntireCacheIfPresent")},updateCacheIfPresent:function(e){throw new Error("Unimplemented API: updateCacheIfPresent")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8944),i(8945),i(8946),i(8947)],o=i.dj.d(n,(function(e,t){return t(e,"desktop_inspector/l10n/nls/desktop_inspector",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={propertyInspectorTitle:"プロパティ インスペクター"}},function(e,t,i){e.exports={propertyInspectorTitle:"属性检查器"}},function(e,t,i){e.exports={propertyInspectorTitle:"속성 인스펙터"}},function(e,t,i){e.exports={root:{propertyInspectorTitle:"Property Inspector"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(203),i(206),i(210),i(464),i(276)],o=i.dj.d(n,(function(e,t,i,n,o){return e([n],{constructor:function(e){this._top=e.top,this._bottom=e.bottom,this._manuallyResized=!1},postCreate:function(){this.inherited(arguments),i.add(this.domNode,"maincontainer"),this.topContainer=new o({class:"topcontainer",splitter:!0,region:"top",minSize:25,content:this._top}),t(this._top,"layoutChange",this._layoutChangeHandler.bind(this)),this.bottomContainer=new o({class:"bottomcontainer",region:"left",content:this._bottom}),this.addChild(this.topContainer),this.addChild(this.bottomContainer),this.setFreeDimension("top",25)},_continueSplitterDrag:function(){this._manuallyResized=!0,this.inherited(arguments),this.topContainer.domNode.clientHeight>65?(this._top.showTree(),this._manualSizeTop=this.topContainer.domNode.clientHeight):(this._top.showBreadcrumbs(),this._manuallyResized=!1)},_layoutChangeHandler:function(e){0===e.newHeight?this.removeChildInRegion("top"):this.getChildInRegion("top")||this.addChild(this.topContainer);var t=25;e.newHeight>t&&(t=Math.max(e.newHeight,65)),this._manuallyResized&&25!==t&&(t=this._manualSizeTop),t=Math.min(.75*this.domNode.clientHeight,t),this.setFreeDimension("top",t),this.topContainer.domNode.clientHeight>65&&this._top.showTree()}})}),e,t),e.exports=o},function(e,t,i){i.e(0).then((function(){var e=[i(9157)];(function(){}).apply(null,e)})).catch(i.oe)},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(231),i(8951),i(8952),i(1012),i(434),i(544),i(241)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e(null,{constructor:function(e){this._uiBuilder=e.uiBuilder,this._actionService=e.actionService,this._uiContainer=e.uiContainer;var i=this._uiBuilder.tagToId("motwToolstrip.globalTabGroup");this._globalQAGroupId=this._uiBuilder.get(i,"QAGroupId"),this._actionService.loadActions(r),this._parentWindowSupportsFloatingWindows=null;var o=this._uiBuilder.get(this._uiBuilder.tagToId("motwToolstrip"),"QABId");this._QABWidget=n.byId(o),this._uiBuilder.addEventCallback(o,t.hitch(this,(function(e){if("restoreFactoryControls"===e.eventType){var t={};Object.keys(a).forEach((function(e){var i=a[e],n=this._uiBuilder.tagToId(i);n&&(t[i]=this._uiBuilder.get(n,"actionId"))}),this),this._restoringFactoryControls=!0,this.setState(),delete this._restoringFactoryControls,Object.keys(a).forEach((function(e){var i=a[e],n=this._uiBuilder.tagToId(i);n&&this._uiBuilder.set(n,"actionId",t[i])}),this)}}))),this.setupDefaultControlsMenu()},setupDefaultControlsMenu:async function(){this.defaultControlsMenuIsSetup=!1;var e=!1;i.after(this._QABWidget,"refresh",function(){e||setTimeout(function(){var t=0,i=this.getState();i.forEach(function(n){var o=this._uiBuilder.widgetByTag(n.tag);Object.keys(this.defaultControlItems).forEach(function(n){var r=this.defaultControlItems[n],a=r.tag.replace(".defaultControlMenuItem","");r.action&&o.actionId===r.action.id&&o.tag!==a&&(i.splice(t,1),this._uiBuilder.destroy(o.id),i.unshift({tag:a,showText:!1}),r.action&&this._actionService.updateAction(r.action.id,{isInQab:!0},{source:"defaultControlMenuItem"}),e=!0,this.setState(i),e=!1)}.bind(this)),t++}.bind(this))}.bind(this),0)}.bind(this));var t=await this._getDefaultQABControls();this.motwQabDefaultControlsPopupList=this._uiBuilder.create({type:s.POPUP_LIST,tag:"motwQabDefaultControlsPopupList"});var n=this._uiBuilder.addEventCallback(this.motwQabDefaultControlsPopupList,function(e){switch(e.eventType){case"onOpen":default:this._uiBuilder.widgetByTag("motwQabDefaultControlsPopupList").domNode.dataset.contextMenuExceptions="no-context-menu",n.remove()}}.bind(this));this.defaultControlItems={},t.forEach(function(e){var t=e.tag+".defaultControlMenuItem",i=this._actionService.getAction(e.actionId),n=this._uiBuilder.create({type:s.LIST_ITEM_WITH_CHECKBOX,selected:!!i&&("boolean"==typeof i.isInQAB&&i.isInQAB),text:e.text||i&&i.text||"",tag:t,parentId:this.motwQabDefaultControlsPopupList});this.defaultControlItems[n]={tag:t,action:i},this._uiBuilder.addPropertySetCallback(n,function(t){var n,o;if(!(t.source&&["updateDefaultControlsMenu","defaultControlMenuItemAction"].indexOf(t.source)>-1)&&"selected"===t.property){o=this.getState();for(var r=0;r<o.length;r++)o[r].tag===e.tag&&(n=r,r=o.length);!0===t.newValue&&void 0===n?(o.unshift({tag:e.tag,showText:!1}),i&&this._actionService.updateAction(i.id,{isInQab:!0},{source:"defaultControlMenuItem"}),this.setState(o,!0)):!1===t.newValue&&"number"==typeof n&&(o.splice(n,1),i&&this._actionService.updateAction(i.id,{isInQab:!1},{source:"defaultControlMenuItem"}),this.setState(o,!0))}}.bind(this)),i&&this._actionService.addActionChangeCallback(i.id,function(e,t){t&&t.source&&"defaultControlMenuItem"===t.source||"isInQAB"===e.property&&this._uiBuilder.set(n,"selected",e.newValue,{source:"defaultControlMenuItemAction"})}.bind(this))}.bind(this)),this._uiBuilder.create({type:s.POPUP_LIST_SEPARATOR,tag:"motwQabDefaultControlsSeparator",parentId:this.motwQabDefaultControlsPopupList}),this._qabDefaultControlsRestoreFactoryControlsId=this._uiBuilder.create({type:s.LIST_ITEM,tag:"motwQabDefaultControlsRestoreFactoryControls",text:l.restoreFactoryControls,parentId:this.motwQabDefaultControlsPopupList}),this._uiBuilder.addEventCallback(this._qabDefaultControlsRestoreFactoryControlsId,(function(e){if("itemPushed"===e.eventType){var t={closeCallback:function(e){1===e.response&&this._QABWidget.restoreFactoryControls()}.bind(this)};c.displayConfirmDialog(l.restoreFactoryControlsDialogTitle,l.restoreFactoryControlsDialogMessage,t)}}),this),this._motwQabDefaultControlsDropDown=this._uiBuilder.create({type:s.QAB_DROP_DOWN_BUTTON,tag:"motwQabDefaultControlsDropDown",popupId:this.motwQabDefaultControlsPopupList,mnemonic:"Q",text:l.qabDefaultDropdownLabel}),this._motwQabDefaultControlsDropDown=this._uiBuilder.widgetByTag("motwQabDefaultControlsDropDown"),this._motwQabDefaultControlsDropDown._menuOrientation=["below-alt"],this._motwQabDefaultControlsDropDown.focusNode.removeAttribute("aria-labelledby"),this._motwQabDefaultControlsDropDown.domNode.dataset.contextMenuExceptions="no-show-label",this._QABWidget.qabDropDownContainer.classList.add("mwToggleableQabFactoryControlsTrue"),this._QABWidget.qabDropDownContainer.appendChild(this._motwQabDefaultControlsDropDown.domNode),this._QABWidget._defaultControlsDropDown=this._motwQabDefaultControlsDropDown,this.defaultControlsMenuIsSetup=!0},updateDefaultControlsMenu:function(e){this.defaultControlsMenuIsSetup&&void 0!==e&&0!==e.length&&this._uiBuilder.getChildrenIds(this._motwQabDefaultControlsDropDown.menuId).forEach(function(t){if("ListItemWithCheckBox"===this._uiBuilder.get(t,"type")){var i=this._uiBuilder.get(t,"tag").replace(".defaultControlMenuItem","");e.forEach(function(e){e.tag===i&&this._uiBuilder.set(t,"selected",!0,{source:"updateDefaultControlsMenu"})}.bind(this))}}.bind(this))},setState:async function(e,t){const i=this._QABWidget.getParent();i.setResizeFlag(!1),this.reset();var n=await this._getDefaultQABControls();this._uiBuilder.setQABState("motwToolstrip",e,n,t),this.updateDefaultControlsMenu(this._uiBuilder.getQABState("motwToolstrip")),i.setResizeFlag(!0),i.resize(),this._uiContainer.emit("linkSecondaryContextActions")},getState:function(){return this._uiBuilder.getQABState("motwToolstrip")},reset:function(){var e=this._uiBuilder.get(this._uiBuilder.tagToId("motwToolstrip"),"QABId");this._uiBuilder.getChildrenIds(e).forEach((function(e){this._uiBuilder.getChildrenIds(e).forEach((function(e){if(this._uiBuilder.exists(e)){let t=this._restoringFactoryControls?"QABManager_Restore":null;this._uiBuilder.set(e,"showText",!1,t),this._uiBuilder.set(e,"isInQAB",!1,t)}this._uiBuilder.exists(e)&&this._uiBuilder.destroy(e)}),this)}),this)},_getDefaultQABControls:function(){return"_parentWindowSupportsFloatingWindows"in this&&null!==this._parentWindowSupportsFloatingWindows||(this._parentWindowSupportsFloatingWindows=this._getWindowFeature_FloatingWindowsSupported()),Promise.resolve(this._getFilteredDefaultQABControls())},_getFilteredDefaultQABControls:function(){var e=o.map(t.hitch(this,(function(e){return t.mixin({parentId:this._globalQAGroupId},e)})));return this._parentWindowSupportsFloatingWindows||e.some((t,i)=>"motwToolstrip.qab.globalQAGroup.switchWindows"===t.tag&&(e.splice(i,1),!0)),e},_getWindowFeature_FloatingWindowsSupported:function(){return window._qeQABManagerTest&&window.hasOwnProperty("_qeWindowSupportsFloatingWindows")?window._qeWindowSupportsFloatingWindows:!window.cefclient}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(299),i(1650),i(900)],o=i.dj.d(n,(function(e,t,i,n){return[{tag:"motwToolstrip.qab.globalQAGroup.save",type:e.QAB_PUSH_BUTTON,actionId:t.SAVE},{tag:"motwToolstrip.qab.globalQAGroup.undo",type:e.QAB_PUSH_BUTTON,actionId:i.UNDO},{tag:"motwToolstrip.qab.globalQAGroup.redo",type:e.QAB_PUSH_BUTTON,actionId:i.REDO},{tag:"motwToolstrip.qab.globalQAGroup.switchWindows",type:e.QAB_FLOATING_PANE_DOCK,text:n.switchPanes,description:"Select from list of open windows",quickAccessIcon:"icon_switch_windows_16"},{tag:"motwToolstrip.qab.globalQAGroup.help",type:e.QAB_SPLIT_BUTTON,actionId:t.HELP}]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1650),i(8953)],o=i.dj.d(n,(function(e,t){return[{id:e.UNDO,enabled:!1,text:t.undoLabel,quickAccessIcon:"undo_16"},{id:e.REDO,enabled:!1,text:t.redoLabel,quickAccessIcon:"redo_16"}]}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8954),i(8955),i(8956),i(8957)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/qab",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={undoLabel:"元に戻す",redoLabel:"やり直し"}},function(e,t,i){e.exports={undoLabel:"실행 취소",redoLabel:"다시 실행"}},function(e,t,i){e.exports={undoLabel:"撤消",redoLabel:"重做"}},function(e,t,i){e.exports={root:{undoLabel:"Undo",redoLabel:"Redo"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(211),i(219),i(276),i(247)],o=i.dj.d(n,(function(e,t,i,n,o){var r,a,s=function(e){"showReport"===e.data.type&&l(e.data)},l=function(e){var i=document.createElement("div"),s=t.toDom(e.htmlString);i.appendChild(s);var l=e.title,c=new n({documentType:"report",title:l,closable:!0,content:i});c.on("click",(function(e){o.handleAnchors((function(e){r(e)}),e)})),a.addDocument(c)};return e([],{constructor:function(e){r=e.helpUrlHandler,a=e.uiContainer},start:function(){i.subscribe("/matlab/reports/mlonline",s)},reset:function(){i.unsubscribe("/matlab/reports/mlonline",s)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(222),i(206),i(209),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([n],{_SAVE_SESSION:Object.freeze({ENABLED:"enabled",DISABLED:"disabled"}),EVENTS:{RequestLoad:"requestLoad",RequestSave:"requestSave"},DEFAULT_SESSION_NAME:"default",constructor:function(e){e=e||{},this._registeredProperties={},this.settingsService=e.settingsService,this.disableSessionSave(),a.registerResponseHandler("LoadSessionStateResponse:SessionService",this._handleLoadSessionStateResponse,this),a.registerResponseHandler("SaveSessionStateResponse:SessionService",this._handleSaveSessionStateResponse,this),a.registerFaultHandler("LoadSessionState:SessionService",this._handleLoadSessionStateFault,this),a.registerFaultHandler("SaveSessionState:SessionService",this._handleSaveSessionStateFault,this)},isSessionSaveEnabled:function(){return!!this._SAVE_SESSION.ENABLED},enableSessionSave:function(){this._saveSessionState=this._SAVE_SESSION.ENABLED},disableSessionSave:function(){this._saveSessionState=this._SAVE_SESSION.DISABLED},loadSession:function(e){return this.emit(this.EVENTS.RequestLoad),e=t.mixin({sessionName:this.DEFAULT_SESSION_NAME},e),this._doSend({LoadSessionState:e})},saveSession:function(e){if(this.emit(this.EVENTS.RequestSave),this._saveSessionState===this._SAVE_SESSION.DISABLED){var n=new i;return n.resolve({sent:!1}),n.promise}var o=t.mixin(this._getSessionData(),e);return this._doSend({SaveSessionState:o})},_doSend:function(e){var t=new i;return a.sendMessage(e,t,"SessionService"),t.promise},_handleLoadSessionStateResponse:function(e,t){var i=e[0];this.enableSessionSave(),this._hasFaults(i)?(this.sessionDataNotRetrieved(),t.resolve({sent:!0,fault:i.messageFaults[0]})):(this._setSessionData(i),t.resolve({sent:!0}))},_handleLoadSessionStateFault:function(e,t){this.enableSessionSave(),this.sessionDataNotRetrieved(),t.resolve({sent:!0,fault:e})},_handleSaveSessionStateResponse:function(e,t){var i=e[0];this._hasFaults(i)?t.resolve({sent:!0,fault:i.messageFaults[0]}):t.resolve({sent:!0})},_handleSaveSessionStateFault:function(e,t){t.resolve({sent:!0,fault:e})},_hasFaults:function(e){return!e||e&&e.messageFaults&&e.messageFaults.length>0},registerProperty:function(e,t){this._registeredProperties[e]=t,this._lastSessionDataApplied&&this._setPropertyFromSessionData(e,this._lastSessionDataApplied)},convertObjectPropertyToStringSetting:function(e,t,i){var n={get:function(){},set:function(e){e&&this.settingsService.setSetting(t,i,JSON.stringify(e))}.bind(this)};this.registerProperty(e,n)},registerSettingToSync:function(e,t,i){var n=[];return n.push(this.settingsService.listenTo(e,t,(function(e){e=e.newValue;try{i.latestValue=e,i.set(e)}catch(e){}}))),this.settingsService.getSetting(e,t).then(function(r){try{i.set(r.value),i.latestValue=r.value}catch(e){}n.push(o(this,this.EVENTS.RequestSave,function(){var n=i.get();("string"==typeof n||n instanceof String)&&n!==i.latestValue&&(i.latestValue=n,this.settingsService.setSetting(e,t,n))}.bind(this)))}.bind(this)),{remove:function(){n.forEach((function(e){e.remove()}))}}},_getSessionData:function(){var e,i={sessionName:this.DEFAULT_SESSION_NAME,clientProperties:{}};for(e in this._registeredProperties)if(this._registeredProperties.hasOwnProperty(e))try{i.clientProperties[e]=this._registeredProperties[e].get()}catch(e){r.error("Error while getting session data: ",e)}return this._lastSessionDataApplied&&(i=t.mixin(this._lastSessionDataApplied,i),this._lastSessionDataApplied=i),i},_setSessionData:function(e){var t;for(t in this._lastSessionDataApplied=e||{},this._registeredProperties)this._setPropertyFromSessionData(t,e)},_setPropertyFromSessionData:function(e,t){var i;t&&t.clientProperties&&t.clientProperties[e]&&(i=t.clientProperties[e]);try{this._registeredProperties[e].set(i)}catch(e){r.error("Error while setting session data: ",e)}},_setDefaultData:function(){this._setSessionData({clientProperties:{}})},sessionDataNotRetrieved:function(){this._setDefaultData(),this.enableSessionSave()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(212),i(206),i(698),i(1270),i(8961),i(699)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){r.Logout=[];return e([],{SAVE_SESSION_DELAY:6e4,RESUME_WINDOW:288e5,constructor:function(e){this._registeredTasks=new Map,this.sessionService=e.sessionService,this.pathService=e.pathService,this.wraService=e.wraService,this.uiLifecycle=e.uiLifecycle,this.busyIndicator=e.busyIndicator,this.uiLifecycle.registerTask("WORKER_READY",function(){this.computeReadySetup()}.bind(this)),this.setResumeHandler(),this.setExitHandler()},computeReadySetup:function(){this._isLocalWorker()?(this._addWindowListeners(),this._setSaveInterval(),this._saveSessionBeforeLosingConnection(),this.busyIndicator.hide()):(this._loadSessionOnNewConnection(),this._addWindowListeners(),this._setSaveInterval(),this._saveSessionBeforeLosingConnection(),this._promptUserForResumeAfterTimeout(),a.shouldLoadFullSession()&&this._awaitingPath&&(this.busyIndicator.show(),this._awaitingPath.then(function(){this.busyIndicator.hide(),this._awaitingPath=null}.bind(this))))},_isLocalWorker:function(){return"localhost"===location.hostname||"127.0.0.1"===location.hostname},_loadSessionOnNewConnection:function(){var e={includeClientProperties:!0};a.shouldLoadFullSession()?(e.includePath=!0,e.includePrefdir=!0,e.includeWorkspaceAndFigures=!0,e.resetWorkspaceAndFiguresBeforeLoad=!0):this.wraService.isNewWorker()&&(e.includePath=!0,e.includePrefdir=!0);var t=this._sendLoadSession(e);return a.shouldLoadFullSession()&&t.then(function(){this._awaitingPath=this._setPathToPrevious()}.bind(this)),this.wraService.isDesktopOnly&&this.wraService.isDesktopOnly()?console.error("Not showing busyIndicator - loadPromise will not resolve"):this.busyIndicator.showUntilFinished(t),t},_setPathToPrevious:function(){var e=new i,t=this;if(window.sessionStorage){var o=window.sessionStorage.getItem("cwd_session");if(o){this._cwdListener=n(this.pathService,"CWDChanged",function(){this._checkForDesiredCwd(o,e)}.bind(this));try{this.pathService.setMATLABCWD(o)}catch(e){}finally{setTimeout((function(){t._cwdListener&&t._checkForDesiredCwd(o,e)}),1e3)}}else e.resolve()}else e.resolve();return e.promise},_checkForDesiredCwd:function(e,t){e===this.pathService.getCurrentFolderPath()&&window.sessionStorage.removeItem("cwd_session"),this._cwdListener.remove(),t.resolve()},_sendLoadSession:function(e){var t=this.sessionService.loadSession(e);return t.then(function(e){e.fault&&this._showLoadFailureDialog()}.bind(this)),t},_addWindowListeners:function(){var e=function(){this.sessionService.saveSession({includeClientProperties:!this._isLocalWorker()})}.bind(this);window.addEventListener("blur",e),window.addEventListener("beforeunload",e),this._windowListeners={remove:function(){window.removeEventListener("blur",e),window.removeEventListener("beforeunload",e)}}},_setSaveInterval:function(){this.sessionSaveIntervalHandler=window.setInterval(t.hitch(this,(function(){this.sessionService.saveSession({includeClientProperties:!this._isLocalWorker()})})),this.SAVE_SESSION_DELAY)},_saveSessionBeforeLosingConnection:function(){this.uiLifecycle.registerTask("PRE_WORKER_DISCONNECTED",function(){try{this._windowListeners&&this._windowListeners.remove(),window.clearInterval(this.sessionSaveIntervalHandler)}catch(e){}var e=new i;return this.sessionService.saveSession({includeClientProperties:!this._isLocalWorker()}).always(e.resolve),window.setTimeout(e.resolve,1e3),e.promise}.bind(this)),this.uiLifecycle.registerTask("PRE_WORKER_DISCONNECTED",function(){var e=new i;return e.resolve(),window.sessionStorage&&window.sessionStorage.setItem("cwd_session",this.pathService.getCurrentFolderPath()),e.promise}.bind(this))},_showLoadFailureDialog:function(){var e=this.wraService;e.isJSD&&e.isJSD()?console.error("Unknown error when calling sessionService.loadSession(options)."):o.openNotificationConfirmDialog(s.slowSessionTitle,s.slowSessionMessage,{buttonText:[s.resetSession,s.continueLoadingSession],defaultAcceptButton:1,defaultCancelButton:2,icon:"error",closeCallback:function(t){1===t.response&&e.terminateMATLABSession()}})},_promptUserForResumeAfterTimeout:function(){var e=this.sessionService,t=this.wraService,n=this.busyIndicator;this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",function(){var r=new i;return t.wasUserTimedOut()?(this._canNoLongerResumeTimestamp=Date.now()+this.RESUME_WINDOW,window.setTimeout((function(){r.resolve()}),this.RESUME_WINDOW),n.hide(),e.disableSessionSave(),o.openNotificationConfirmDialog(s.sessionLifecycle.timeoutTitle,s.sessionLifecycle.timeoutDescription,{buttonText:[s.sessionLifecycle.resume,s.sessionLifecycle.exit],defaultAcceptButton:1,defaultCancelButton:2,icon:"info",closeCallback:function(e){n.show(),1===e.response?this.getResumeHandler().call():this.getExitHandler().call(),r.resolve()}.bind(this)})):r.resolve(),r.promise}.bind(this))},setResumeHandler:function(e){this._resumeHandler=e||function(){Date.now()<this._canNoLongerResumeTimestamp&&(a.loadFullSessionOnNextPageLoad(),this.wraService.reloadPage())}.bind(this)},setExitHandler:function(e){this._exitHandler=e||function(){this.wraService.reloadPage({userEndedComputeSession:!0})}.bind(this)},getResumeHandler:function(){return this._resumeHandler},getExitHandler:function(){return this._exitHandler}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=function(){var e,t=!1;return window.sessionStorage&&(e=window.sessionStorage.getItem("loadFullSession"))&&Date.now()-e<6e4&&(t=!0),t}();return window.sessionStorage&&window.sessionStorage.removeItem("loadFullSession"),{loadFullSessionOnNextPageLoad:function(){window.sessionStorage&&window.sessionStorage.setItem("loadFullSession",Date.now())},shouldLoadFullSession:function(){return e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(302),i(203),i(246),i(204),i(242),i(227),i(210),i(211),i(217),i(213),i(223),i(206),i(279),i(1391),i(216),i(328),i(238),i(277),i(209),i(8963)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b){return t([g,p,f],{templateString:b,pointerHeight:15,cornerOffset:5,content:"",_disposed:!1,constructor:function(e){e=e||{},this.pointerX=e.x||0,this.pointerY=e.y||0},postCreate:function(){this.inherited(arguments);var e=c.getComputedStyle(this.pointerNode),t=c.getComputedStyle(this.contentNode),i=e.height;this.pointerHeight=i&&"auto"!==i?parseFloat(i.substring(0,i.length-2)):15;var n=t["border-top-left-radius"]||"5px";this.cornerOffset=parseFloat(n.substring(0,n.length-2));var o=this;this.own(u(window,"resize",(function(){o.dispose()})))},display:function(e){this._disposed?v.error("Cannot display a callout which was disposed of previously."):(e&&e.hasOwnProperty("x")&&(this.pointerX=e.x),e&&e.hasOwnProperty("y")&&(this.pointerY=e.y),this.resize(),this._disconnectDocListeners(),this._connectDocListeners())},dispose:function(){this._disposed||(this._disconnectDocListeners(),this.destroyRecursive(),_.close(this),this._disposed=!0)},resize:function(){var t=l.getContentBox(this.domNode),i=h.getBox();this._updatePosition(t,i),_.open({popup:this,doNotClose:!0,x:Math.round(this.x),y:Math.round(this.y),onCancel:n.hitch(this,"onCancel")}),_.getTopPopup().handlers.forEach(e.disconnect),a.add(this.domNode.parentNode,"calloutPopup")},onClose:function(){this.dispose()},onOpen:function(){m.focus(this.contentNode)},onCancel:function(){this.onClose()},onBlur:function(){this.onClose()},_updatePosition:function(e,t){this.x=this.pointerX;var i=this.pointerHeight/2+this.cornerOffset,n=Math.min(e.h-i,Math.max(i,this.pointerY/t.h*e.h));c.set(this.pointerNode,{top:n+"px"}),this.y=this.pointerY-n},_setContentAttr:function(e){n.isString(e)?this.contentNode.innerHTML=e:e.placeAt?e.placeAt(this.contentNode,"only"):s.place(e,this.contentNode,"only"),this.resize()},_connectDocListeners:function(){this.connections=[],this.connections.push(e.connect(o.doc,"onmousedown",this,this._onMouseDown)),this.connections.push(e.connect(o.doc,"onkeydown",this,this._onKeyDown))},_disconnectDocListeners:function(){this.connections&&this.connections.forEach(e.disconnect)},_onMouseDown:function(e){r.isDescendant(e.target,this.domNode)||(i.stop(e),this.onClose())},_onKeyDown:function(e){if(r.isDescendant(e.target,this.domNode)&&e.keyCode!==d.ESCAPE){var t=e.target;e.keyCode===d.TAB&&this._getFocusItems(this.domNode);var n=this._firstFocusItem===this._lastFocusItem;t===this._firstFocusItem&&e.shiftKey&&e.keyCode===d.TAB?(n||m.focus(this._lastFocusItem),i.stop(e)):t!==this._lastFocusItem||e.keyCode!==d.TAB||e.shiftKey||(n||m.focus(this._firstFocusItem),i.stop(e))}else i.stop(e),this.onClose()}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="callout">\n <div class="calloutPointer" data-dojo-attach-point="pointerNode"></div>\n <div class="calloutContent" data-dojo-attach-point="contentNode">Some<br>content here</div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(228),i(328),i(216),i(8965),i(1682)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([i,n],{templateString:o,maxListLength:5,userIdWrapperLeft:"<div class='userId'>",userIdWrapperRight:"</div>",userIdWrapperJoin:",",constructor:function(e){if(!(e=e||{}).consumers)throw new Error("No consumers specified! Not able to create sharing list.");this.consumers=e.consumers},postCreate:function(){this.inherited(arguments),this._updateStringsWithLocalization(r),this._updateList()},onEdit:function(){},_updateList:function(){var e=this;this.consumers.fetch({onComplete:function(i){i.length>0?(t.set(e.listHeader,"innerHTML",r.sharedWith),t.set(e.consumerList,"innerHTML",e._formatConsumers(i))):(t.set(e.listHeader,"innerHTML",r.notShared),t.set(e.consumerList,"innerHTML",""))}})},_formatConsumers:function(e){var t,i=[];for(e.sort((function(e,t){return e.userId<t.userId?-1:e.userId>t.userId?1:0})),t=0;t<Math.min(e.length,this.maxListLength);t+=1)i.push(e[t].userId);return this.userIdWrapperLeft+i.join(this.userIdWrapperJoin+this.userIdWrapperRight+this.userIdWrapperLeft)+this.userIdWrapperRight},_updateStringsWithLocalization:function(e){t.set(this.sharingHeader,"innerHTML",e.sharingHeader),t.set(this.editLink,"innerHTML",e.editLink)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="sharingList">\n <div class="sharingHeader" data-dojo-attach-point="sharingHeader">sharingHeader</div>\n <div class="listHeader" data-dojo-attach-point="listHeader">listHeader</div>\n <div class="consumerList" data-dojo-attach-point="consumerList">consumerList</div>\n <div class="editLink" data-dojo-attach-point="editLink" data-dojo-attach-event="onclick:onEdit">editLink</div>\n</div>'},function(e,t,i){e.exports={root:{pending:"Pending",sharingHeader:"Sharing",usage:"Enter userIDs or email addresses, separated by commas:",sharedWith:"Shared with:",notShared:"Folder is not yet shared.",editLink:"edit...",newConsumerPlaceholder:"Type userID here...",faults:{title:"Sharing Error",operationFailed:"Operation failed in sharing service.",unableToShareFolder:"Unable to share the folder. The folder must be at the root level of your MATLAB Drive for you to share it.",unknownUserId:"One or more userIDs and/or email addresses do not match any of the users in the system, or you tried to share with yourself."}}}},function(e,t,i){var n,o;n=[i(203),i(204),i(228),i(328),i(216),i(255),i(243),i(8968),i(1682),i(600)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([n,o,r],{templateString:s,userIdWrapperJoin:",\n",constructor:function(e){if(!(e=e||{}).consumers)throw new Error("No consumers specified! Not able to create sharing list.");this.consumers=e.consumers,this.sharingResources=l,t.mixin(this.sharingResources,c)},postCreate:function(){this.inherited(arguments),this._updateStringsWithLocalization(this.sharingResources),this._updateList()},startup:function(){var e=this;this.inherited(arguments),setTimeout((function(){e.sharingEditArea.focus()}),0)},onOk:function(){var e=this;this.consumers.fetch({onItem:function(t){e.consumers.deleteItem(t)}});var t=dojo.attr(e.sharingEditArea,"value");(t=t.split(",")).forEach((function(t){(t=t.trim?t.trim():t).length>0&&e.consumers.newItem({userId:t})}))},onCancel:function(){},_updateList:function(){var e=this;this.consumers.fetch({onComplete:function(t){i.set(e.sharingEditArea,"value",e._formatConsumers(t))}})},_formatConsumers:function(e){var t=[];return e.sort((function(e,t){return e.userId<t.userId?-1:e.userId>t.userId?1:0})),e.forEach((function(e){t.push(e.userId)})),t.join(this.userIdWrapperJoin)},_updateStringsWithLocalization:function(e){i.set(this.sharingHeader,"innerHTML",e.sharingHeader),i.set(this.sharingUsage,"innerHTML",e.usage),this.okButton.set("text",e.ok),this.cancelButton.set("text",e.cancel)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="sharingSimpleEdit">\n <div class="sharingHeader" data-dojo-attach-point="sharingHeader"></div>\n <div class="sharingUsage" data-dojo-attach-point="sharingUsage"></div>\n <textarea class="sharingEditArea" tabindex=1 data-dojo-attach-point="sharingEditArea"></textarea>\n <div class="sharingNote" data-dojo-attach-point="sharingNote"></div>\n <div class="sharingButtons">\n <button class="cancelButton actionButton" data-dojo-attach-point="cancelButton"\n data-dojo-attach-event="click:onCancel" tabIndex=3\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text:\'cancel\'"></button>\n <button class="okButton actionButton" data-dojo-attach-point="okButton"\n data-dojo-attach-event="click:onOk" tabIndex=2\n data-dojo-type="mw-form/PushButton"\n data-dojo-props="text:\'ok\'"></button>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(212),i(214),i(231),i(228),i(2708),i(1024),i(262),i(273),i(269),i(258),i(339),i(244),i(2709),i(8978),i(8979),i(2710),i(1261),i(8980)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){var v=new d(d.SIZE.SMALL),b=document.createElement("div");function y(){v.show()}function C(e,t,i){var n=a.createDialog({title:e,"data-test-id":"formDialog",dialogType:a.MODAL,content:t,draggable:!0,resizable:!1,buttons:i});function o(){r.publish("/mg2web/server_save_dialog_channel",{command:"cancel"}),y()}var l=n.close.bind(n);return n.close=function(){o(),l()},n.addButtonEventListener(s.NO,(function(){r.publish("/mg2web/server_save_dialog_channel",{command:"no"}),y(),l()}),!0),n.addButtonEventListener(s.CANCEL,(function(){o(),l()}),!0),n}function T(e,t,i){var n=document.createElement("div"),o=document.createElement("div");o.style.float="left",n.appendChild(o);var a=new l({text:_.ModelName,height:19,verticalAlignment:"bottom"});a.placeAt(o),a.domNode.style.marginBottom="5px",a.domNode.style.paddingTop="5px",a.startup();var d=document.createElement("div");d.style.float="left",n.appendChild(d);var u=new c({value:i,width:280});u.placeAt(d),u.domNode.style.marginBottom="5px",u.domNode.style.marginLeft="5px",u.startup(),u.inputNode.select();var h=document.createElement("div");h.style.float="left",h.style.marginBottom="5px",d.appendChild(h);var p=C(e,n,t);p.addButtonEventListener(s.YES,(function(){var e=u.value;r.publish("/mg2web/server_save_dialog_channel",{command:"yes",fileName:e}),y(),p.close()}),!0)}function E(){r.subscribe("/slonlineclient/logger",(function(e){if("clearclientlogs"===e.data.eventType)document.perfMsgs=void 0;else if("sendclientlogs"===e.data.eventType){var t=JSON.stringify(Array.from(document.perfMsgs.values()));r.publish("/slonlineserver/logger",{type:"clientlogs",message:t})}else console.warn("wrong message type sent to the channel:"+that.channel+JSON.stringify(e))}))}b.setAttribute("id","busyoverlay"),document.body.appendChild(b),v.set("target",b);var S=null;return{initialize:function(t,i,n){if(this.udcLogging=new f(i),S=n,h.isTestMode){var o=new p(t,this.udcLogging);document.slonlineContainer?document.slonlineContainer.TestServices=o:document.slonlineContainer={TestServices:o}}m.startup();var a=new e;this.channel="/web/slonlineContainer";var l,c,d=this;E(),l=this.udcLogging,c=function(e){var t=S.getOpenWindows().map((function(e){return e.title})),i={added:e.title,count:t.length,names:t};l.windowState(i)},S.addCallback("windowAdded","slonline",c),S.addCallback("windowRemoved","slonline",c);var b=r.subscribe(this.channel,(function(e){console.log(e),"show"===e.data.eventType?d.showIframe(e,t):console.warn("wrong message type sent to the channel:"+d.channel)})),w=r.subscribe("/mg2web/client_save_dialog_channel",(function(e){var t;console.log(e),"show_save_dialog"===e.data.command?(t=C(_.Save,_.SaveModel,[s.YES,s.NO,s.CANCEL])).addButtonEventListener(s.YES,(function(){r.publish("/mg2web/server_save_dialog_channel",{command:"yes"}),y(),t.close()}),!0):"show_save_as_dialog_yes_no_cancel"===e.data.command?T(_.SaveAs,[s.YES,s.NO,s.CANCEL],""):"show_save_as_dialog_yes_cancel"===e.data.command?T(_.SaveAs,[s.YES,s.CANCEL],e.data.initialFileName):"hide_save_dialog"===e.data.command?v.hide():(console.log("unknown command"),console.log(e))}));return g.bootstrap(),u([b,w]).then((function(){r.publish("/mg2web/eventChannel",{type:"command",message:"indexIsInitialized"})})),dojo.connect(window,"onblur",(function(){d.newWindow&&d.newWindow.sendClearKeys()})),a.resolve({exports:{slonlineContainer:{}}}),a.promise},showIframe:function(e,t){try{this.newWindow=new o({modelHash:e.data.peerNodeId,layoutService:t,udcLogging:this.udcLogging})}catch(e){console.log(e)}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(215),i(203),i(211),i(206),i(210),i(209),i(245),i(513),i(8971),i(8972),i(1261),i(8974)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){var h=[],p=null,f={Control:!0,Shift:!0,Alt:!0,Meta:!0},g="MacOS"===u.getOSInfo();return t([e],{constructor:function(e){this._msgData=e.msg,this._sendMessage=e.sendMessage,this.id=this._msgData.windowTag;var t=document.URL,i=t.substring(t.indexOf("?")+1,t.length),n=dojo.queryToObject(i);this._quash=!!n.quash,this._quash&&console.log("quashing enabled"),this._fullImage=new Image,this.isBaseCanvas=this._msgData.containerWindow===this._msgData.windowTag,this.translateX=0,this.translateY=0,this.stopMousemove=!1,"menu"!==this._msgData.windowTagType&&"quick_insert_menu"!==this._msgData.windowTagType||h.push(this)},destroy:function(){"menu"!==this._msgData.windowTagType&&"quick_insert_menu"!==this._msgData.windowTagType||h.splice(h.indexOf(this),1),dijit._WidgetBase.prototype.destroy.apply(this)},focusWithoutScroll:function(){this.domNode.focus({preventScroll:!0})},translateEvent:function(e,t){var i=l.toNativeInputEvent(t);return this.domNode&&(i.top+=this.domNode.scrollTop),i.windowTag=this._msgData.windowTag,{type:"event",data:i}},buildRendering:function(){this.canvas=i.create("canvas"),this.canvas.style.position="absolute",this.domNode=i.create("div",{id:this.id,tabindex:"0",style:{position:"absolute"}}),i.place(this.canvas,this.domNode);var e=this;n(this.domNode,"mousedown",(function(t){e.focusWithoutScroll()})),this.isBaseCanvas?(this.domNode.style.overflow="hidden",this.domNode.style.width="100%",this.domNode.style.height="100%",o.add(this.domNode,"slonline-BaseCanvas")):(n(this.domNode,"keyup, keydown",(function(t){t.baseCanvasId=e.id})),o.add(this.domNode,"slonline-nonBaseCanvas"),this.domNode.style.zIndex=30,"menu"!==this._msgData.windowTagType||this.getParentMenu()||(this.domNode.style.overflowY="auto",this.domNode.style.maxHeight=window.innerHeight+"px",this.canvas.style.position="relative")),this.domNode.setAttribute("containerwindow",this._msgData.containerWindow),this.focusWithoutScroll(),d.feature("SlOnline_IME")&&(this._imeInput=this._createIMEInputNode(),i.place(this._imeInput,this.domNode)),n(this.domNode,"mousedown",function(t){e._unFreezeMouseMove(t),e._preventDefaultAndSendEvent(t),0===t.button&&c.updateLastDragWindow(this)}.bind(this)),n(this.domNode,"mouseup",(function(t){e._unFreezeMouseMove(t),e._preventDefaultAndSendEvent(t),0===t.button&&c.updateLastDragWindow(null)})),n(this.domNode,"keydown",(function(t){e._isServerFocusedWidgetInput()?e._imeInput.focus():e._handleKeyboardEvent(t)})),n(this.domNode,"keyup",(function(t){e._isServerFocusedWidgetInput()||e._handleKeyboardEvent(t)})),n(this.domNode,"dblclick",(function(t){e._handleKeyboardEvent(t)})),n(this.domNode,"contextmenu",(function(e){e.preventDefault()})),n(this.domNode,"mousemove",(function(t){e._preventDefaultAndSendEvent(t)})),n(this.domNode,"mouseenter",(function(t){e._checkIfOpenedMenuBelongToOtherWindow()?e._freezeMouseMove():"slonline-BaseCanvas"===e.domNode.className&&e.sendFocusIn()})),this._isMouseEventSupported("wheel")?n(this,"wheel",e._mouseScrollHandler("deltaY")):this._isMouseEventSupported("mousewheel")?n(this,"mousewheel",e._mouseScrollHandler("wheelDeltaY")):n(this,"DOMMouseScroll",e._mouseScrollHandler("detail"))},updateServerFocusedWidgetStatus:function(e){this._imeInput&&(this._serverFocusedWidgetInfo={isInput:e.isInput,position:[e.left,e.top]},e&&e.isInput?(document.activeElement!==this._imeInput&&this._imeInput.focus(),this._updateIMEPosition(e.left,e.top)):document.activeElement===this._imeInput&&this.domNode.focus())},_isServerFocusedWidgetInput:function(){return this._serverFocusedWidgetInfo&&this._serverFocusedWidgetInfo.isInput},_handleKeyboardEvent:function(e){this._unFreezeMouseMove(e),this._preventDefaultAndSendEvent(e),this._stopSelectiveEventsFromPropagation(e)},_isMouseEventSupported:function(e){var t=document.createElement("div"),i=(e="on"+e)in t;return i||(t.setAttribute(e,"return;"),i="function"==typeof t[e]),t=null,i},_intersectsRect:function(e,t,i,n,o,r){return e>i&&e<i+o&&t>n&&t<n+r},_intersectsMenu:function(e,t){for(var i=!1,n=0;n<h.length;++n){var o=h[n],r=o._msgData.imageWidth;if("menu"===o._msgData.windowTagType&&(r=o.domNode.offsetWidth),this._intersectsRect(e,t,o._msgData.x,o._msgData.y,r,o._msgData.imageHeight)){i=!0;break}}return i},_getClickablePos:function(e,t){var i=e,n=t;if(!this.isBaseCanvas||0===h.length||h[0].domNode.parentElement!==this.domNode.parentElement)return{x:e,y:t};var o=this._intersectsMenu(i,n);if(o)for(var r=0;r<h.length;++r){if(i=h[r]._msgData.x-5,!this._intersectsMenu(i,n)){o=!1;break}}return o&&console.log("unable to find the non intersecting postion"),{x:i,y:n}},_unFreezeMouseMove:function(e){if(this._checkIfFrozen()&&(this.stopMousemove=!1,e)){var t=this.translateEvent(this.containerWindow,e);this.sendFocusIn();var i=this._getClickablePos(t.data.left,t.data.top);this._sendMessage({type:"event",data:{type:"mousemove",windowTag:this._msgData.windowTag,containerWindow:this._msgData.containerWindow,top:Math.round(i.y),left:Math.round(i.x),button:0,buttons:0}})}},_freezeMouseMove:function(){this.stopMousemove=!0},_checkIfFrozen:function(){return this.stopMousemove},_checkIfOpenedMenuBelongToOtherWindow:function(){return"slonline-BaseCanvas"===this.domNode.className&&document.getElementsByClassName("slonline-nonBaseCanvas").length>0},_preventDefaultAndSendEvent:function(e){if(!this._checkIfFrozen()){e.preventDefault();var t=e.target;if(!(e.offsetX>t.clientWidth)){var i=this.translateEvent(this._msgData.windowTag,e);i.data.containerWindow=this._msgData.containerWindow;var n=this._getClickablePos(i.data.left,i.data.top);if(i.data.left=Math.round(n.x),i.data.top=Math.round(n.y),g)if("keydown"===e.type)!function(e){return!!f[e]}(e.key)&&e.metaKey?p={key:e.key,code:e.code}:!e.metaKey&&p&&(p=null);else if("keyup"===e.type)if(p&&"Meta"===e.key){var o=Object.assign({},i.data,p),r=Object.assign({},i,{data:o});this._sendMessage(r),p=null}else p&&!e.metaKey&&(p=null);this._sendMessage(i)}}},_stopSelectiveEventsFromPropagation:function(e){"keydown"!==e.type&&"keyup"!==e.type||"G"!==e.key&&71!==(e.which||e.keyCode)||!e.shiftKey||!e.ctrlKey||e.stopPropagation()},_mouseScrollHandler:function(e){var t=this;return function(i){i.ctrlKey&&(i.stopPropagation(),i.preventDefault());var n=i[e];i.isScrollUp=n<0;var o=t.translateEvent(t.containerWindow,i);o.data.containerWindow=t._msgData.containerWindow,t._sendMessage(o)}},sendFocusIn:function(){var e={type:"focusin"};e.windowTag=this._msgData.windowTag,e.containerWindow=this._msgData.containerWindow,this._sendMessage({type:"event",data:e})},updateRegions:function(e){this._msgData=e;var t=this.canvas;t.width===e.imageWidth&&t.height===e.imageHeight||(t.width=e.imageWidth,t.height=e.imageHeight),this.updateTranslations(),this.isBaseCanvas?(this.domNode.style.setProperty("left",e.x+"px"),this.domNode.style.setProperty("top",e.y+"px")):(this.domNode.style.setProperty("left",e.x+this.translateX+"px"),this.domNode.style.setProperty("top",e.y+this.translateY+"px"));var i=this,n=i.canvas.getContext("2d");e.updateRegions.forEach((function(t){var o;i._quash?(i._fullImage.src="",o=i._fullImage):o=new Image,o.src="data:"+e.mediaType+";"+e.encoding+","+t.imageData,o.onload=function(){n.clearRect(t.x,t.y,t.w,t.h),n.drawImage(o,t.x,t.y),e.performance&&document.perfMsgs&&document.perfMsgs.get(e.performance.msgid).performance.client.push({funcname:"updateRegions",timestamp:Date.now().toString()})}}))},baseCanvasBoundingRect:function(){return this.domNode.parentElement.querySelector(".slonline-BaseCanvas").getBoundingClientRect()},fitInsideWindowWidth:function(e){this.baseCanvasBoundingRect().left+this._msgData.x+e>window.innerWidth?this.translateX=window.innerWidth-(this.baseCanvasBoundingRect().left+this._msgData.x+e):this.baseCanvasBoundingRect().left+this._msgData.x<0&&(this.translateX=-(this.baseCanvasBoundingRect().left+this._msgData.x))},fitInsideWindowHeight:function(){if(this.baseCanvasBoundingRect().top+this._msgData.y<0)this.translateY=-(this.baseCanvasBoundingRect().top+this._msgData.y);else if(this.baseCanvasBoundingRect().top+this._msgData.y+this._msgData.imageHeight>window.innerHeight){this.translateY=window.innerHeight-(this.baseCanvasBoundingRect().top+this._msgData.y+this._msgData.imageHeight);var e=-(this.baseCanvasBoundingRect().top+this._msgData.y);this.translateY=Math.max(e,this.translateY)}},fitQuickInsertInsideWindowHeight:function(){var e=function(){return this.baseCanvasBoundingRect().top+this._msgData.y<0}.bind(this),t=function(){return this.baseCanvasBoundingRect().top+this._msgData.y+this._msgData.imageHeight>window.innerHeight}.bind(this),i=function(){var e=this._msgData.windowTagTypeMetaData.textEditViewPosY+this._msgData.windowTagTypeMetaData.textEditViewHeight+6;this.translateY=e-this._msgData.y}.bind(this);e()?i():t()&&(this.translateY=-this._msgData.imageHeight-this._msgData.windowTagTypeMetaData.textEditViewHeight-6,this.baseCanvasBoundingRect().top+this._msgData.y+this.translateY<0&&i())},fitSubMenuInsideWindowWidth:function(){var e=this.getParentMenu(),t=function(){return e.domNode.getBoundingClientRect().left+e._msgData.imageWidth+this._msgData.imageWidth<window.innerWidth}.bind(this),i=function(){var t=e.domNode.getBoundingClientRect().left-this.baseCanvasBoundingRect().left+e._msgData.imageWidth;this.translateX=t-this._msgData.x}.bind(this),n=function(){var t=e.domNode.getBoundingClientRect().left-this.baseCanvasBoundingRect().left-this._msgData.imageWidth;this.translateX=t-this._msgData.x}.bind(this);t()?i():n()},fitSubMenuInsideWindowHeight:function(){var e=this.getParentMenu(),t=e.domNode.offsetTop-e.domNode.scrollTop+(this._msgData.y-e._msgData.y);this.baseCanvasBoundingRect().top+t+this._msgData.imageHeight>window.innerHeight&&(t-=this.baseCanvasBoundingRect().top+t+this._msgData.imageHeight-window.innerHeight),this.translateY=t-this._msgData.y},getParentMenu:function(){return h[h.indexOf(this)-1]},updateTranslations:function(){(this.translateX=0,this.translateY=0,"menu"===this._msgData.windowTagType)?this.getParentMenu()?(this.fitSubMenuInsideWindowWidth(),this.fitSubMenuInsideWindowHeight()):(this.fitInsideWindowWidth(this.domNode.offsetWidth),this.fitInsideWindowHeight()):"quick_insert_menu"===this._msgData.windowTagType?(this.fitInsideWindowWidth(this._msgData.imageWidth),this.fitQuickInsertInsideWindowHeight()):"tooltip"===this._msgData.windowTagType&&this.fitInsideWindowWidth(this._msgData.imageWidth)},_createIMEInputNode:function(){var e=document.createElement("input");e.type="text",e.className="slIMEInput";var t=this;return n(e,"keyup, keydown",(function(e){e.stopPropagation(),t._isIMEInput(e)||t._handleKeyboardEvent(e)})),("Linux"===u.getOSInfo()||g)&&e.addEventListener("input",(function(e){t._isIMEInput(e)||t._sendCompositeEvent("nonComposingIMEInput",e.data)})),e.addEventListener("compositionstart",(function(e){t._sendClearKeys(),t._resetImeInput(),t._sendCompositeEvent("compositionstart",e.data),t._freezeMouseMove()})),e.addEventListener("compositionupdate",(function(e){t._sendCompositeEvent("compositionupdate",e.data)})),e.addEventListener("compositionend",(function(i){""===i.data?setTimeout((function(){var i=e.value;t._compositionEndHandler(i)}),0):t._compositionEndHandler(i.data)})),e},_isIMEInput:function(e){return 229===e.keyCode||e.isComposing||e.inputType&&e.inputType.toLowerCase().includes("composition")},_resetImeInput:function(){this._imeInput.value=""},_updateIMEPosition:function(e,t){this._imeInput.style.setProperty("top",t+"px"),this._imeInput.style.setProperty("left",e+"px")},_compositionEndHandler:function(e){this._sendCompositeEvent("compositionend",e),this._resetImeInput(),this._unFreezeMouseMove()},_sendCompositeEvent:function(e,t){this._sendMessage({type:"CompositionEvent",data:{type:e,windowTag:this._msgData.windowTag,containerWindow:this._msgData.containerWindow,data:t}})},_sendClearKeys:function(){this._sendMessage({type:"event",data:{type:"clear_keys",windowTag:"00000"}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204)],o=i.dj.d(n,(function(e){return{toNativeInputEvent:function(t){var i,n={};if(n.type=t.type,"DOMMouseScroll"!==n.type&&"wheel"!==n.type||(n.type="mousewheel"),e.mixin(n,function(e){var t={};return"function"==typeof e.getModifierState?(e.getModifierState("Alt")&&(t.Alt=!0),e.getModifierState("Control")&&(t.Control=!0),e.getModifierState("Shift")&&(t.Shift=!0),e.getModifierState("Meta")&&(t.Meta=!0),e.getModifierState("CapsLock")&&(t.CapsLock=!0)):!1===e.isTrusted?(t.Alt=e.altKey,t.Control=e.ctrlKey,t.Shift=e.shiftKey,t.Meta=e.metaKey):console.error("unable to know the modifier state"),t}(t)),"mousemove"===(i=t.type)||"mousewheel"===i||"wheel"===i||"DOMMouseScroll"===i||"mouseenter"===i||"mouseleave"===i||"mousedown"===i||"mouseup"===i||"dblclick"===i||"contextmenu"===i){var o=t.currentTarget.getBoundingClientRect();n.left=t.clientX-o.left,n.top=t.clientY-o.top,e.mixin(n,function(e){var t={};return"mousewheel"!==e.type&&"DOMMouseScroll"!==e.type&&"wheel"!==e.type||void 0===e.isScrollUp?t.button=e.button:t.button=e.isScrollUp?4:5,t.buttons=e.buttons,t}(t))}else!function(e){return"keydown"===e||"keyup"===e}(t.type)?(console.error("unknown event"),console.error(t)):(n.code=t.code,n.key=t.key,n.altGr=t.getModifierState("AltGraph"));return n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=null;function t(){e._sendMessage({type:"command",message:"clearDrag",containerWindow:e._msgData.containerWindow})}return document.addEventListener("mouseleave",(function(i){e&&t(),e=null})),document.addEventListener("mouseup",(function(i){0===i.button&&e&&i.target.parentElement&&!i.target.parentElement.classList.contains("slonline-BaseCanvas")&&(t(),e=null)})),{updateLastDragWindow:function(t){e=t&&"dialog"!==t._msgData.windowType&&t._msgData.containerWindow===t._msgData.windowTag?t:null}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(){this.publishQueue={},this.subscribeCallback={}},subscribe:function(e,i,n){var o=new t;return this.subscribeCallback[e]=i.bind(n),o.resolve(),o.promise},unsubscribe:function(e){delete this.subscribeCallback[e]},publish:function(e,t){if(this.publishQueue)if(this.publishQueue.hasOwnProperty(e)){var i=this.publishQueue[e];i.push(t),this.publishQueue[e]=i}else this.publishQueue[e]=[t]},getSubscribedCallbackFcnForChannel:function(e){if(this.subscribeCallback)return this.subscribeCallback[e]},retrieveMessageQueueForChannel:function(e){if(this.publishQueue){var t=this.publishQueue[e];return this.publishQueue[e]=[],t}},clearPublishQueue:function(){this.publishQueue&&(this.publishQueue={})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(513)],o=i.dj.d(n,(function(e){var t=null;return-1!==navigator.appVersion.indexOf("Win")&&(t="Windows"),-1!==navigator.appVersion.indexOf("Mac")&&(t="MacOS"),-1!==navigator.appVersion.indexOf("Linux")&&(t="Linux"),{getOSInfo:function(){var i=e.queryToObject(decodeURIComponent(document.location.search.slice(1)));return i.slonlinetestplatform?i.slonlinetestplatform:t}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(1683)],o=i.dj.d(n,(function(e,t){var i={qwertz:"de",azerty:"fr"};return{getKeyboardConfigure:function(){var t="us",n=new e;if(navigator.keyboard&&navigator.keyboard.getLayoutMap){var o=navigator.keyboard;window!==window.top&&(o=window.top.navigator.keyboard),o.getLayoutMap().then((function(e){var o=e.get("KeyQ"),r=e.get("KeyW"),a=e.get("KeyE"),s=e.get("KeyR"),l=e.get("KeyT"),c=e.get("KeyY");t=i[o+r+a+s+l+c]||t,n.resolve(t)})).catch((function(e){console.log(e),n.resolve(t)}))}else n.resolve(t);return n.promise}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1024),i(8977)],o=i.dj.d(n,(function(e,t){var i={};e.subscribe("/simulinkonline/pingPong",(function(e){if(e.data&&e.data.pingTime&&i[e.data.pingTime]){var t=i[e.data.pingTime],n=Date.now()-e.data.pingTime,o=e.data.perfData.server,r=o[o.length-1];if(r.funcname.includes("handlePingPong")){var a=o[o.length-1].timestamp-o[o.length-2].timestamp;t.resolve({ping:n,network:a})}else t.reject("Expected function: handlePingPong, recieved function: "+r.funcname);delete i[e.data.pingTime]}}));var n=!1,o={},r=t.subscribe("perf",(function(){n=!0}),(function(){n=!1,r(o),o={}}),(function(){return n}));return{log:function(t,r){if(n||r){var a=function(e){var t=e.performance,i=e.type,n=0;return e.updateRegions&&e.updateRegions.length&&(n=e.updateRegions.reduce((function(e,t){return e+t.w*t.h}),0)),{perfData:t,imageSize:n,event:i}}(t),s=a.perfData,l=a.imageSize,c=a.event;if(s&&s.server){var d=s.server[s.server.length-1],u=s.server[0];u.funcname.includes("backingStoreCallback")||console.error("Expected function: backingStoreCallback, recieved function: "+u.funcname);var h=d.timestamp-u.timestamp;(function(t){var n=null,o=null,r=Date.now().toString(),a=new Promise((function(i,a){n=i,o=a;var s={pingTime:r,perfData:t};e.publish("/simulinkonline/pingPong",s),setTimeout((function(){a("Ping pong event timed out")}),6e4)})).catch((function(e){console.error(e),delete i[r]}));return i[r]={promise:a,resolve:n,reject:o},a})(s).then(function(e){if(r){var t=Object.assign({server:h},e);r.logData("PerfTime",JSON.stringify(t))}else{var i=Object.assign({server:h,imageSize:l,time:Date.now()},e);Array.isArray(o[c])||(o[c]=[]),o[c].push({data:i})}}.bind(this))}}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1024),i(209)],o=i.dj.d(n,(function(e,t){var i={};e.subscribe("/simulinkonline/log",(function(e){if(e.data){var n=e.data.type;switch(t.assert(n&&i[n]),fcns=i[n],e.data.event){case"start":fcns.isStartedFcn()?t.info("Logging "+n+"has already started"):fcns.startFcn();break;case"end":fcns.isStartedFcn()&&fcns.stopFcn();break;default:t.error("Invalid event "+e.data.event+" for "+e.data.type)}}}));var n=function(t,i){e.publish("/simulinkonline/log",{type:t,event:"log",data:i})};return{subscribe:function(e,t,o,r){return i[e]={startFcn:t,stopFcn:o,isStartedFcn:r},n.bind(null,e)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2708)],o=i.dj.d(n,(function(e,t){return e(null,{constructor:function(e,t){this.layoutService=e,this.udcLogging=t,this.windowList={}},setupTestDialogData:function(e){var t=this;e.forEach((function(e){t.createNewDialogContainer(e),t.updateContainer(e)}))},createNewDialogContainer:function(e){try{var i=new t({modelHash:e.modelHash,layoutService:this.layoutService,udcLogging:this.udcLogging});this.windowList[e.modelHash]=i}catch(e){console.log(e)}},updateContainer:function(e){this.windowList[e.modelHash]._handleInMessage(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){this.numWindows=0,this.udcService=e},logData:function(e,t){var i="SimulinkOnline."+e;this.udcService.addData(i,t),console.log(i+":"+t)},windowOpened:function(e){this.logData("Open"+("dialog"===e.type?"Dialog":"Window"),e.title)},windowClosed:function(e){this.logData("Close",e.title)},windowState:function(e){this.logData("WindowState",JSON.stringify(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(8981)],o=i.dj.d(n,(function(e,t){return t(e,"slonlineui/resources/SimulinkOnline/nls/ui",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{ModelName:"Model Name",Save:"Save",SaveAs:"Save As",SaveModel:"Save model?",SizeLimitNotification:"Simulink window has maximum resolution of ${0} x ${1}"}}},function(e,t,i){var n,o;n=[i(203),i(699),i(698)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e){this.uiLifecycle=e.uiLifecycle,this.wraService=e.wraService},initializeExperience:function(){this._configureHeartBeatOptions()},_configureHeartBeatOptions:function(){var e=this;this.wraService.updateHeartbeatOptions({countdownEndCallback:function(){i.openNotificationConfirmDialog(t.sessionLifecycle.timeoutTitle,t.sessionLifecycle.timeoutDescription,{buttonText:[t.sessionLifecycle.resume,t.sessionLifecycle.exit],defaultAcceptButton:1,defaultCancelButton:2,icon:"info",closeCallback:function(t){this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",function(){this.wraService.reloadPage({userEndedComputeSession:!0})}.bind(this)),1===t.response&&e.wraService.logout()}})}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(217),i(279),i(227),i(276),i(219),i(1485),i(1486),i(630),i(2611)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([],{moFigureManagerChannel:"/mlapp/figure",constructor:function(e){this.messageService=new d,this.fn=this._createFigureContainerController.bind(this)},subscribe:function(){this.messageService.subscribe(this.moFigureManagerChannel,this.fn)},moRefreshed:function(){this.messageService.sendMORefreshMessage(this.moFigureManagerChannel)},_createFigureContainerController:function(e){var i;if("windowOpen"===e.data.eventType){e.data.host=e.data.host.replace(new RegExp("\\bwebsocket=on\\b"),"websocket=off"),this.peerNodeId=e.data.peerNodeId;var n=new RegExp("uifigure/([^&]+)").exec(e.data.host)[1];(i=new r({})).placeAt("gbt_root_node").startup(),t.add(i.domNode,"figureContentPane");var o=c.MF0ViewModel.getViewModelManager("/uifigure/"+n,!1);new s({channel:"/uifigure/"+n,viewModelManager:o,applicationManifest:l,rootWidget:i,environment:{}});this._resizeWhenFigureIsPainted(50,this.peerNodeId)}},_resizeWhenFigureIsPainted:function(e,t){var i=this;setTimeout((function(){document.getElementsByClassName("figureContainerNode").length>0?i.sendResize(t):(e*=2,i._resizeWhenFigureIsPainted(e,t))}),e)},sendResize:function(e){var t=this._getPositionOfApp();a.publish(this.moFigureManagerChannel+"/"+e,{eventType:"windowPropertyChanged",data:{position:t}}),window.postMessage({position:t,msgType:"updateFigureMOStrategyBounds"},window.location.href)},_getPositionOfApp:function(){var e=o.byId("gbt_root_node"),t=i.position(e,!1);t=[t.y,t.x,t.w,t.h];var r=n.getBox();return t[0]=r.h-t[3]-t[0],t=[t[1],t[0],t[2],t[3]]},listenForResizeEvents:function(){window.addEventListener("resize",function(){this._resizeWhenFigureIsPainted(10,this.peerNodeId)}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(256),i(215),i(272),i(231),i(2711),i(8985),i(8987),i(8988),i(8989)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([i,n],{constructor:function(e){this._udc=new c(e)},postCreate:function(){this.inherited(arguments),this.domNode.classList.add("taskbar");var e=document.createElement("div");e.classList.add("taskbarHeader"),this.domNode.appendChild(e),this._winList=new r({isDocked:!0,udc:this._udc}),this.addChild(this._winList);var t=new s,i=new a({minimizer:t,taskbar:this,udc:this._udc});this.addChild(i),this._sidePanel=new l({minimizer:t,taskbar:this,udc:this._udc})},startup:function(){this._sidePanel.placeAt(this.domNode,"after"),this.collapse()},expand:function(){this.domNode.classList.add("expanded"),this.domNode.classList.remove("collapsed"),o.byId("motw").resize(),this._sidePanel.updateVisibility({taskbarCollapsed:!1}),t.publish("/floatingPaneStateUpdate",{dockTo:this})},collapse:function(){this.domNode.classList.add("collapsed"),this.domNode.classList.remove("expanded"),o.byId("motw").resize(),this._sidePanel.updateVisibility({taskbarCollapsed:!0}),t.publish("/floatingPaneStateUpdate",{dockTo:this._sidePanel})},_getWindowCount:function(){return this._winList.getChildren().length},_positionDock:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(272),i(213),i(214),i(209),i(243),i(2712)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([t,i],{constructor:function(e){this._minimizer=e.minimizer,this._taskbar=e.taskbar,this._udc=e.udc},postCreate:function(){this.inherited(arguments),this.domNode.classList.add("taskbarBottom");var e=new a({icon:"icon_taskbar_minimize_all",description:s.minimizeWindows});e.own(o.after(this._minimizer,"onStateUpdate",(function(t){return t.toRestore?(e.set("description",s.restoreWindows),e.set("icon","icon_taskbar_restore")):(e.set("description",s.minimizeWindows),e.set("icon","icon_taskbar_minimize_all")),t}))),this.addChild(e),e.on("click",function(){var e=this._minimizer.toggle(),t=this._taskbar._getWindowCount();this._udc.logButtonClick(e?"Minimize":"Restore","Full",t)}.bind(this));var t=new a({icon:"icon_taskbar_collapse",description:s.collapseTaskbar});t.domNode.classList.add("collapseButton"),t.on("click",function(){this._taskbar.collapse(),this._udc.logButtonClick("Collapse","Full",this._taskbar._getWindowCount())}.bind(this)),this.addChild(t)}})}),e,t),e.exports=o},function(e,t,i){e.exports={root:{minimizeWindows:"Minimize Open Windows",restoreWindows:"Restore Minimized Windows",collapseTaskbar:"Collapse Taskbar",expandTaskbar:"Expand Taskbar",switchWindows:"Switch Windows"}}},function(e,t,i){var n,o;n=[i(203),i(230),i(256),i(1241)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{constructor:function(e){this._toRestore=[],this.own(i.subscribe("/floatingPaneRaised",function(){this._handleRaised()}.bind(this)))},minimizeAll:function(){var e=n.getOpenWindows(!0);e.length&&(e.forEach((function(e){e.minimize()})),this._toRestore=e,this._toRestore.length&&this.onStateUpdate())},restore:function(){if(this._toRestore.length){var e=this._toRestore;this._reset(),e.forEach((function(e){e.show(),e.bringToTop()}))}},toggle:function(){var e=this._toRestore.length;return e?this.restore():this.minimizeAll(),!e},_reset:function(){this._toRestore.length&&(this._toRestore=[],this.onStateUpdate())},_handleRaised:function(){this._reset()},onStateUpdate:function(){return{toRestore:!!this._toRestore.length}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(215),i(272),i(213),i(214),i(243),i(450),i(2711),i(1241),i(2712)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([t,i],{constructor:function(e){this._taskbar=e.taskbar,this._minimizer=e.minimizer,this._udc=e.udc,this._visibilityProps={taskbarCollapsed:!1,windowsOpen:!1},l.addCallback("noActiveWindow","SidePanelNoActive",function(e){this.updateVisibility({windowsOpen:!e})}.bind(this))},postCreate:function(){this.inherited(arguments),this.domNode.classList.add("taskbarSide"),this._hide();var e=new r({icon:"icon_taskbar_minimize_all",description:c.minimizeWindows});e.own(o.after(this._minimizer,"onStateUpdate",(function(t){return t.toRestore?(e.set("description",c.restoreWindows),e.set("icon","icon_taskbar_restore")):(e.set("description",c.minimizeWindows),e.set("icon","icon_taskbar_minimize_all")),t}))),e.on("click",function(){var e=this._minimizer.toggle(),t=this._getWindowCount();this._udc.logButtonClick(e?"Minimize":"Restore","Mini",t)}.bind(this)),this._winList=new s({udc:this._udc});var t=new a({menu:this._winList,icon:"icon_switch_windows_16",description:c.switchWindows});t.on("mousedown",function(){this._udc.logButtonClick("Switch","Mini",this._getWindowCount())}.bind(this));var i=new r({icon:"icon_taskbar_expand",description:c.expandTaskbar});i.on("click",function(){this._taskbar.expand(),this._udc.logButtonClick("Expand","Mini",this._getWindowCount())}.bind(this)),this.addChild(t),this.domNode.appendChild(document.createElement("hr")),this.addChild(e),this.domNode.appendChild(document.createElement("hr")),this.addChild(i)},updateVisibility(e){var t=!!this._visibilityProps.taskbarCollapsed&&!!this._visibilityProps.windowsOpen;Object.assign(this._visibilityProps,e);var i=!!this._visibilityProps.taskbarCollapsed&&!!this._visibilityProps.windowsOpen;t!==i&&(i?this._show():this._hide())},_hide:function(){n.set(this.domNode,"visibility","hidden")},_show:function(){n.set(this.domNode,"visibility","visible")},_getWindowCount:function(){return this._winList.getChildren().length},_positionDock:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{constructor:function(e){this._udc=e},log:function(e,t){var i="Taskbar."+e;this._udc.addData(i,JSON.stringify(t))},logButtonClick:function(e,t,i){this.log("ButtonClick",{Button:e,State:t,Count:i})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(8991),i(2713)],o=i.dj.d(n,(function(e,t,i){var n=e([],{constructor:function(e){e=e||{},this.probeId=e.probeId,this.probeDescription=e.probeDescription,this.isProbeEnabled=e.isProbeEnabled,this.componentType=e.componentType,this.eventType=e.eventType,this.sendDataToQueue=e.sendDataCallback},getProbeId:function(){return this.probeId},trace:function(e){this.sendDataToQueue(this,e)},isEnabled:function(){return this.isProbeEnabled},enable:function(){this.isProbeEnabled=!0},disable:function(){this.isProbeEnabled=!1}});return{getUdcServiceInstance:function(e,i,o,r){return new t({udcProbe:n,clientType:e,udcEndPoint:i,sessionCorrelationId:o,mwaToken:r})},getUdcNullService:function(){return new i({udcProbe:n})}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(240),i(204),i(428),i(2563),i(256),i(2713),i(232),i(290)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([a],{constructor:function(e){e=e||{},this.inherited(arguments),this.udcEndPoint=e.udcEndPoint,this.sessionId=e.sessionCorrelationId,this.mwaToken=e.mwaToken,this.udcProbe=e.udcProbe,this.udcDataQueue=new n({idProperty:"udcDataUUID"}),this.maxSendInterval=e.maxSendInterval||6e4,this.maxBufferSize=e.maxBufferSize||100,this.enabled=!0,this.udcEndPoint&&s.setServiceEndPoint("USAGE_DATA_ROUTER_ENDPOINT",this.udcEndPoint),s.registerEndpointLevelFaultHandler("USAGE_DATA_ROUTER_ENDPOINT","*",this.onUdcError,this),this.recurringFlushInterval=setInterval(i.hitch(this,this._flushDataQueue),this.maxSendInterval),this.topicHandles=[]},updateUdcEndpoint:function(e){this.udcEndPoint=e,s.setServiceEndPoint("USAGE_DATA_ROUTER_ENDPOINT",this.udcEndPoint)},setSessionCorrelationId:function(e){this.sessionId=e},setMWAToken:function(e){this.mwaToken=e},deleteProbe:function(e){this.udcProbeStore.remove(e)},enableProbe:function(e){var t=e?this.udcProbeStore.get(e):null;t&&t.enable()},disableProbe:function(e){var t=e?this.udcProbeStore.get(e):null;t&&t.disable()},isEnabled:function(){return this.enabled},setMaxBufferSize:function(e){this.maxBufferSize=e},_addToDataQueue:function(e,t){e.isEnabled()&&this.isEnabled()&&(this.udcDataQueue.put({udcDataUUID:o(),probeId:e.probeId,componentType:e.componentType,eventType:e.eventType,localEventTime:new Date,localEventData:t}),this.udcDataQueue.query().length>=this.maxBufferSize&&this.sendDataToServer())},_flushDataQueue:function(){if(this.sessionId||this.mwaToken){var e=[];this.udcDataQueue.query().forEach((function(t){e.push({sessionKey:this.sessionId,eventKey:t.eventType,eventDate:t.localEventTime,eventData:t.localEventData,applicationComponent:t.componentType}),this.udcDataQueue.remove(t.udcDataUUID)}),this),this.isEnabled()&&e.length>0&&this._sendToServer(e)}else this.udcDataQueue=new n({idProperty:"udcDataUUID"})},_sendToServer:function(e){s.sendMessage({UsageDataEventCollection:{Event:e,securityToken:this.mwaToken,application:l.applicationName,applicationVersion:l.versionNumber,udcClientVersion:"1.0",locale:t.locale}})},onUdcError:function(e){this.disable(),this.udcDataQueue=new n({idProperty:"udcDataUUID"}),clearInterval(this.recurringFlushInterval)},sendDataToServer:function(){setTimeout(i.hitch(this,this._flushDataQueue),0)},_destroy:function(){this.topicHandles.forEach((function(e){e.remove()})),this.topicHandles=[],this.sendDataToServer()},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(244),i(209),i(8993)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(e){this._phases=e.phases,this._currentPhase=0,this._tasks={},this._phasePromise={},this._phaseCompletedCallback={}},start:function(){this._performTasks()},registerTask:function(e,t){return this._phases.indexOf(e)<this._currentPhase&&o.performTasks([o.createTask(t)]),this._registerTask(e,t)},_registerTask:function(e,t){this._tasks[e]||(this._tasks[e]={});var i=o.createTask(t);return this._tasks[e][i.id]=i,this._phases.indexOf(e)===this._currentPhase&&this._performTasks(),i},registerPhaseCompletedCallback:function(e,t){if(this._phaseCompletedCallback[e])throw"There can be only one phase completion callback";this._phaseCompletedCallback[e]=t},removeTask:function(e,t){if(!t||!t.id)throw"Task is not a TaskRunner object";if(o.getTaskStatus(t)===o.taskStatus.TRIGGERED)throw"Task has already completed";if(!this._tasks[e][t.id])throw"This phase does not have this task registered";delete this._tasks[e][t.id]},getCurrentPhase_ForTesting:function(){return this._currentPhase},_performTasks:function(){if(this._currentPhase!==this._phases.length){var e=this._phases[this._currentPhase];n.log("uiLifecycle state: "+e);var i=new t;this._addPromiseToPhase(e,[i.promise]);var r=o.performTasks(this._tasks[e]);return this._addPromiseToPhase(e,r),i.resolve(),this._phasePromise[e].promise}},_addPromiseToPhase:function(e,t){this._phasePromise[e]?this._phasePromise[e].promiseList=this._phasePromise[e].promiseList.concat(t):this._phasePromise[e]={promiseList:t},this._phasePromise[e].promise&&this._phasePromise[e].promise.cancel(),this._phasePromise[e].promise=i(this._phasePromise[e].promiseList),this._phasePromise[e].promise.then(function(){this._moveToNextPhase(e)}.bind(this))},_moveToNextPhase:function(e){"function"==typeof this._phaseCompletedCallback[e]&&this._phaseCompletedCallback[e](),this._currentPhase++,this._performTasks()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(209),i(229)],o=i.dj.d(n,(function(e,t,i){var n={WAITING:"waiting",TRIGGERED:"triggered"};return{taskStatus:n,createTask:function(e){return{fn:e,id:i.generateUuid(),status:n.WAITING}},getTaskStatus:function(e){return e.status},performTasks:function(i){var o,r=[];for(var a in i)if(i.hasOwnProperty(a)&&i[a].status===n.WAITING){i[a].status=n.TRIGGERED;try{(o=i[a].fn.call())&&o.always&&r.push(o)}catch(e){t.error(e),t.info("Task with "+a+" id has errors and can't be completed.")}}if(r.length>0)return r;var s=new e;return s.resolve(),[s.promise]}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(843),i(534),i(8995),i(1561),i(203),i(204),i(214),i(210),i(206),i(223),i(209),i(232),i(488),i(276),i(219),i(2294),i(278),i(8996)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){var v=o("desktop_variableeditor.VariableEditorMain",[i],{MOTWManager:{},currentVariables:[],_VE_CHANNEL:"/VariableEditorMOTW",_documentWidgetMap:{},dropZoneClass:"VEDropZone",_dragEnterListener:{},_dragOverListener:{},_dragLeaveListener:{},_dropListener:{},_ADS_CHANNEL:"/VEMOTWActionManager",DESKTOP_VE_CSS_SELECTOR:".DesktopVariableEditor",constructor:function(t){this.layoutService={},this.executionService={},this.helpDataService={},this.MOTWManager={},this.currentVariables=[],this.focusedDocument=null,this._viewCreatedListeners={},this._viewRemovedListeners={},this._dragEnterListener={},this._dragOverListener={},this._dragLeaveListener={},this._dropListener={},this.contextUpdateManager=null,this.contextManagerInstance=t.contextManagerInstance||null,this.topicBase="/ML"+this._VE_CHANNEL,this.contextUpdateChannel=this.topicBase+"/ContextUpdate",this.contextId="VariableEditor",this.defaultContextId="variable",this._initRegistry(),t&&(e.setContextManager(this._VE_CHANNEL,this.contextManagerInstance),this.initializeServices(t),this.MOTWManager=g.createManager({messageService:t.messageService,executionService:t.executionService,helpDataService:t.helpDataService,channel:this._VE_CHANNEL,enableCodePublishing:!0,ignoreUpdates:!1,showSummaryBar:!0,showSummaryIcons:!0,rowHeaderEditing:!0,editable:!0,contextId:"VariableEditor",contextAppID:this.defaultContextId,contextUpdateChannel:this.contextUpdateChannel,contextType:"currentContext",showIndexAndLabel:!0,actionDataServiceChannel:this._ADS_CHANNEL}),this.init())},getManager:function(){return this.MOTWManager},_initRegistry:function(){t.registerWidgetJSONFile("MOTWWidgetRegistryDefaults",_)},initializeServices:function(e){this.layoutService=e.layoutService||{},this.executionService=e.executionService||{},this.helpDataService=e.helpDataService||{}},init:function(){this._initListeners(),this.MOTWManager.addEventListener("variableAdded",this._handleVariableAddedListener),this.MOTWManager.addEventListener("variableRemoved",this._handleVariableRemovedListener),this.MOTWManager.addEventListener("variableFocusGained",this._handleVariableFocusedListener),this.MOTWManager.addEventListener("variableFocusLost",this._handleVariableBlurredListener),this.initDnd()},_initListeners:function(){this._handleVariableAddedListener=this._handleVariableAdded.bind(this),this._handleVariableRemovedListener=this._handleVariableRemoved.bind(this),this._handleVariableFocusedListener=this._handleVariableFocused.bind(this),this._handleVariableBlurredListener=this._handleVariableBlurred.bind(this)},handleDrop:function(e){this.MOTWManager.actionDataService&&e?this.MOTWManager.actionDataService.executeAction("Openvar",{Name:e}):d.error("ActionDataService not available on VEManager")},openVariable:function(e,t,i){this.MOTWManager&&this.MOTWManager.openVariable&&this.MOTWManager.openVariable(e,t,i)},closeVariable:function(e){this.MOTWManager.closeVariable(e)},_handleVariableAdded:function(e){try{if(e.data.peerDoc){var t=e.data.peerDoc;s.add(t.domNode,"DesktopVariableEditor"),this.addWidget(t),t.domNode.setAttribute("data-tag","datatools.variableeditor.document."+t.varName),this.currentVariables.push(t.varName),this._viewCreatedListeners[t.varDocID]=this._handleViewCreated.bind(this),this._viewRemovedListeners[t.varDocID]=this._handleViewRemoved.bind(this),t.addEventListener("viewCreated",this._viewCreatedListeners[t.varDocID]),t.addEventListener("viewRemoved",this._viewRemovedListeners[t.varDocID]),t.own(a.after(t,"handlePropertySet",this._handleVariablePropertyChanged.bind(this,t),!0)),t.domNode.addEventListener("keydown",(function(e){e.which===c.TAB&&e.preventDefault()})),this._initContextManager()}}catch(e){d.error(e)}},_handleVariablePropertyChanged:function(e,t){if("name"===t.data.key){var i=t.data.newValue;this.currentVariables.splice(this.currentVariables.indexOf(t.data.oldValue),1,i),this.layoutService.updateWidget(e.varDocID,"title",i),this.layoutService.updateWidget(e.varDocID,"tooltip",i)}},_initContextManager:function(){!this.contextUpdateManager&&this.contextManagerInstance&&(this.contextUpdateManager=new n({defaultContextId:this.defaultContextId,contextId:this.contextId,contextUpdateChannel:this.contextUpdateChannel,managerChannel:this._VE_CHANNEL,contextManagerInstance:this.contextManagerInstance,contextType:"currentContext"}))},_handleViewCreated:function(e){try{m.logDebug("VE: View Added");var t=e.data.document,i=e.data.viewModel;t.parentViewToDocument(i),t.resize(),l.emit(t.domNode,"startup",{bubbles:!0,cancelable:!0}),i.domNode.setAttribute("data-tag","datatools.variableeditor.views.table"),i.setSelection&&(i.setSelection([{start:0,end:0}],[{start:0,end:0}]),this.contextUpdateManager.isCurrentContext()&&i.focus())}catch(e){d.error(e)}},_handleViewRemoved:function(e){var t=e.target;this._removeDnDHandles(t)},_removeDnDHandles:function(e){this._removeListener(this._dragEnterListener,e.varDocID),this._removeListener(this._dragOverListener,e.varDocID),this._removeListener(this._dragLeaveListener,e.varDocID),this._removeListener(this._dropListener,e.varDocID)},_removeListener:function(e,t){e[t]&&(e[t].remove(),delete e[t])},_handleVariableRemoved:function(e){if(e.data.peerDoc){var t=e.data.peerDoc;this.removeWidget(t,!1),this.currentVariables.pop(t.varName)}},_handleVariableFocused:function(e){var t=e.data.doc;t&&(this.layoutService.showWidget(t.varDocID),this.focusedDocument=t)},_handleVariableBlurred:function(){this.focusedDocument=null},closeAllVariables:function(){this.MOTWManager.closeAllVariables()},stop:function(){this.MOTWManager.stop()},addWidget:function(e){var t=new p({content:e.domNode,widgetID:e.varDocID}),i=this;t.onClose=function(e,t){var n=i._documentWidgetMap[t.widgetID];i.removeWidget(n),i._documentWidgetMap[t.widgetID]=null},t.focusWidget=function(){e.focus()},t.focus=function(){t.focusWidget()},this.layoutService.addWidget(e.varDocID,"vEditor2",t,{title:e.varName,tooltip:e.varName,userContext:e.userContext}),e.own(a.after(t,"onFocus",(function(t){e.onFocus()}))),this._documentWidgetMap[e.varDocID]=e,this.layoutService.showWidget(e.varDocID)},showWidget:function(e){this.layoutService.showWidget(e.varDocID)},removeWidget:function(e,t){e.destroy(),(void 0===t||t)&&e.manager.closeVariable(e.varName,e.workspace),this.layoutService.removeWidget(e.varDocID)},getVariables:function(){return this.currentVariables}});return v.getInstance=function(e){return v._instance?(e&&v._instance.initializeServices(e),v._instance):(v._instance=new v(e),v._instance)},{getInstance:v.getInstance}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1647),i(1195)],o=i.dj.d(n,(function(e,t,i){return e("desktop_variableeditor.VariableEditorDnD",[],{DROP_ZONE_CLASS:"VEDropZone",ACCEPTED_FLAVOR:"workspace",initDnd:function(){var e=this;this.dndProvider=new t({dragDropTargetConfig:{dropTarget:this.DESKTOP_VE_CSS_SELECTOR,allowGlobal:!0,acceptedFlavor:this.ACCEPTED_FLAVOR,customTargetEnterHandler:function(t){return e._toggleDropZoneClassOnTarget(t),!0},customTargetLeaveHandler:function(t){e._toggleDropZoneClassOnTarget(t,!0)},customTargetDropHandler:function(t,i){e._toggleDropZoneClassOnTarget(i,!0),e.handleDrop&&t&&e.handleDrop(t)}}}),this.dndProvider.startup()},_toggleDropZoneClassOnTarget:function(e,t){t?e.classList.remove(this.DROP_ZONE_CLASS):e.classList.add(this.DROP_ZONE_CLASS)}})}),e,t),e.exports=o},function(e,t){e.exports='[\n {\n "Keyset":{\n "Container": "",\n "Datatype": "",\n "Context": "MOTW"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["DOM_PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "",\n "Datatype": "",\n "Context": "MOTW",\n "DataAttributes": ["isND"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["DOM_PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical"\n ],\n "Datatype": "",\n "Context": "MOTW",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT","BRUSHING"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical"\n ],\n "Context": "MOTW"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT", "BRUSHING"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT", "BRUSHING"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "struct",\n "object",\n "Simulink.SimulationData.Dataset"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteStructViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["CELL_FOCUS", "EDIT_HANDLER", "LIGHT_WEIGHT_VIEW", "DOUBLE_CLICK_HANDLER",\n "REMOTE_MULTI_ROW_SELECTION", "COLUMN_RESIZE_PAGED", "COLUMN_SORT", "VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_SELECTION", "COLUMN_REORDER", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "struct"\n ],\n "Datatype":"",\n "Context": "MOTW",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "InPlaceEditor":"",\n "CellRenderer":"",\n "EditorConverter":"",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_CORNER_SPACER_TEXT", "PEER_PLAID_SELECTION", "CELL_FOCUS",\n "COLUMN_HEADER_EDITING_WITH_VALIDATION", "DOUBLE_CLICK_HANDLER", "COLUMN_RESIZE_PAGED", "EDIT_HANDLER",\n "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "string",\n "datetime"\n ],\n "Context": "MOTW"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "string",\n "datetime"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "string",\n "datetime"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT",\n "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT",\n "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "COLUMN_RESIZE_PAGED", "CORNER_SPACER_TEXT",\n "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "object"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "object"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isNumericObject", "isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "object"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isNumericObject", "isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "char"\n ],\n "Context": "MOTW"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "char",\n "Datatype": "",\n "Context": "MOTW",\n "DataAttributes": ["isUnsupported"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["DOM_PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "char",\n "Datatype": "",\n "Context": "MOTW",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "object",\n "Datatype": "",\n "Context": "MOTW",\n "DataAttributes": ["isUnsupported"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["DOM_PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": "object",\n "Datatype": "",\n "Context": "MOTW",\n "DataAttributes": ["isScalar","isUnsupported"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteUnsupportedViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["DOM_PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "MOTW"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION",\n "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION",\n "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_RESIZE_PAGED",\n "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID",\n "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Context": "MOTW"\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_HEADER_EDITING", "ROW_HEADER_EDITING",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "HEADER_MENU", "SORT",\n "TABLE_CONTEXT_BASED_PLAID_SELECTION", "CONTEXT_SERVICE_DATA_TYPE_CONVERSION", "INFINITE_GRID", "SPARKLINE_SCROLL_POSITION", "PRINT",\n "SELECTION_CONTEXT", "COLUMN_REORDER", "BRUSHING"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_HEADER_EDITING", "ROW_HEADER_EDITING",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "HEADER_MENU", "SORT",\n "TABLE_CONTEXT_BASED_PLAID_SELECTION", "CONTEXT_SERVICE_DATA_TYPE_CONVERSION", "INFINITE_GRID", "SPARKLINE_SCROLL_POSITION", "PRINT",\n "SELECTION_CONTEXT", "COLUMN_REORDER", "BRUSHING"]\n }\n ]\n }\n },\n {\n "Keyset": {\n "Container": ["table", "timetable"],\n "Context": "MOTW",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor":"variableeditor_peer/RemoteTableViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "PEER_PLAID_SELECTION", "CELL_FOCUS", "EDIT_HANDLER", "COLUMN_HEADER_EDITING", "ROW_HEADER_EDITING",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER",\n "TABLE_CONTEXT_BASED_PLAID_SELECTION", "CONTEXT_SERVICE_DATA_TYPE_CONVERSION", "INFINITE_GRID", "PRINT", "COLUMN_REORDER", "BRUSHING"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell",\n "object",\n "struct"\n ],\n "Context": "MOTW"\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION", "EDIT_HANDLER",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell",\n "object",\n "struct"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION", "EDIT_HANDLER",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION", "EDIT_HANDLER",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION", "EDIT_HANDLER",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr", "isScalar"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION", "EDIT_HANDLER",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container":[\n "cell"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr", "isEmpty"]\n },\n "Valueset":{\n "Editor":"variableeditor_peer/RemoteArrayViewModel",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["ROW_HEADERS", "CELL_FOCUS", "PEER_PLAID_SELECTION", "EDIT_HANDLER",\n "COLUMN_RESIZE_PAGED", "DOUBLE_CLICK_HANDLER", "CORNER_SPACER_TEXT", "ARRAY_VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_PLAID_SELECTION", "INFINITE_GRID", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "MOTW",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": [\n "logical"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "logical"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "string",\n "char"\n ],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "MOTW",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/StringEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "datetime"\n ],\n "Datatype": [\n "datetime"\n ],\n "Context": "MOTW",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "string",\n "char"\n ],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/StringEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset": {\n "Container": [\n "string",\n "char"\n ],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor": "rendererseditors/mwTableEditors/StringEditor",\n "InPlaceEditor": "",\n "CellRenderer": "rendererseditors/mwTableRenderers/TextRenderer",\n "EditorConverter": ""\n }\n },\n {\n "Keyset":{\n "Container": [\n "datetime"\n ],\n "Datatype": [\n "datetime"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "duration",\n "calendarDuration"\n ],\n "Datatype": [\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": []\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Datatype": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "MOTW"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/ComboBoxEditorProvider",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Datatype": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/ComboBoxEditorProvider",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset": {\n "Container": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Datatype": [\n "categorical",\n "ordinal",\n "nominal"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isEmpty"]\n },\n "Valueset": {\n "Editor": "rendererseditors/mwTableEditors/ComboBoxEditorProvider",\n "InPlaceEditor": "",\n "CellRenderer": "rendererseditors/mwTableRenderers/PlainTextRenderer",\n "EditorConverter": ""\n }\n },\n {\n "Keyset":{\n "Container": [\n "duration",\n "calendarDuration"\n ],\n "Datatype": [\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype":\n [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "object"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isNumericObject"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype":\n [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "object"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isNumericObject", "isScalar"]\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": [\n "object"\n ],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isNumericObject", "isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "EditorConverter":""\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "MOTW"\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime"\n ],\n "Context": "MOTW"\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["TimeColumn"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset": {\n "Container": ["table", "timetable"],\n "Datatype": [\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW"\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "MOTW"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string"\n ],\n "Context": "MOTW"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableCharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "MOTW"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/ComboBoxEditorProvider",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar","TimeColumn"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/DateTimeEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset": {\n "Container": ["table", "timetable"],\n "Datatype": [\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset": {\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableNumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/TableCharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TableRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/ComboBoxEditorProvider",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRenderer",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "MOTW",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedSpanRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "MOTW",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "MOTW",\n "DataAttributes": ["GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextSpanRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedSpanRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextRightAlignedSpanRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "logical"\n ],\n "Context": "",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "Editor":"",\n "InPlaceEditor":"MOTW",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedSpanRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "char",\n "string",\n "table",\n "dataset",\n "struct",\n "cell",\n "cellstr",\n "object",\n "default"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/SpanRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["table", "timetable"],\n "Datatype": [\n "categorical",\n "nominal",\n "ordinal"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar","GroupedColumn"]\n },\n "Valueset":{\n "CellRenderer":"rendererseditors/mwTableRenderers/PlainTextSpanRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/TableHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/IconHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/IconHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "default",\n "categorical",\n "nominal",\n "ordinal",\n "mixed"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/IconHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["struct"],\n "Datatype": [\n "char",\n "string"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isRowOrColumnVector"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "HeaderEditor": "rendererseditors/mwTableEditors/TableHeaderEditor",\n "HeaderRenderer": "rendererseditors/mwTableRenderers/IconHeaderRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": "MOTW"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "object", "struct"],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "MOTW"\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell", "Simulink.SimulationData.Dataset"],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr", "isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr", "isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr", "isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr", "isScalar"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "datetime",\n "duration",\n "calendarDuration"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/RightAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "logical"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/CenterAlignedTextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "default",\n "mixed"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/NumericEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n },\n {\n "Keyset":{\n "Container": ["cell"],\n "Datatype": [\n "string",\n "char"\n ],\n "Context": "MOTW",\n "DataAttributes": ["isCellStr"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer"\n }\n }\n]\n'},function(e,t,i){var n,o;n=[i(203),i(292),i(8998),i(9003),i(9004),i(2714),i(703),i(342)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e(null,{uiBuilder:null,toolstripManager:null,constructor:function(e){this.toolstripManager=e.toolstripManager},createWidget:function(e,r,a){this.uiBuilder=t.getInstance(),e.actionService.loadActions(o.getActions()),this.uiBuilder.createPopupsFromConfig(n),e.addTabGroupFromConfig(i,"motwToolstrip.VariableTabGroup"),this.toolstripManager&&this.toolstripManager.startup({uiBuilder:this.uiBuilder,actionDataService:e.actionService}),this._initKeyBindings(e.actionService)},_initKeyBindings:function(e){a.getInstance(e).getBinding([s.Keys.SYSCTRL,s.Keys.P]).setAction(".DesktopVariableEditor",r.PRINT_ACTION)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(1262),i(1025)],o=i.dj.d(n,(function(e,t,i){return{tag:"motwToolstrip.VariableTabGroup",type:e.TAB_GROUP,children:[{tag:"VariableTabGroup.variableTab",type:e.TAB,title:i.variableTabTitle,mnemonic:"V",children:[{type:e.SECTION,title:i.variableSectionTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",children:[{type:e.SPLIT_BUTTON,text:i.newFromSelection,tag:t.NEW_FROM_SELECTION,icon:"new_24",quickAccessIcon:"new_16",hasDynamicPopup:!0,popupTag:t.NEW_FROM_SELECTION_POPUP,description:i.newFromSelectionDescription,actionId:"NewWorkspaceVariableAction",mnemonic:"N"}]},{type:e.COLUMN,children:[{type:e.DROP_DOWN_BUTTON,text:i.open,tag:t.OPEN,iconOverride:"openVEVariable",quickAccessIcon:"openVEVariable",hasDynamicPopup:!0,popupTag:t.OPEN_POPUP,description:i.openDescription,actionId:"Openvar",mnemonic:"O"},{type:e.PUSH_BUTTON,text:i.save,tag:t.SAVE,icon:"save_16",quickAccessIcon:"save_16",actionId:"SaveVariablesAction",description:i.saveDescription,mnemonic:"S"},{type:e.SPLIT_BUTTON,text:i.print,tag:t.PRINT,icon:"print_16",quickAccessIcon:"print_16",actionId:"PrintAction",popupTag:t.PRINT_POPUP,description:i.printDescription,mnemonic:"P"}]}]},{type:e.SECTION,title:i.navigateSectionTitle,children:[{type:e.COLUMN,extraColumnGap:!1,children:[{type:e.PUSH_BUTTON,text:i.goUp,tag:t.GO_UP,iconOverride:"go_up_24",quickAccessIcon:"go_up_16",actionId:"GoToParent",description:i.goUpDescription,mnemonic:"G"}]}]},{type:e.SECTION,title:i.editSectionTitle,children:[{type:e.COLUMN,tag:t.INSERT_COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[]},{type:e.COLUMN,tag:t.DELETE_COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[]}]},{type:e.SECTION,title:i.transformSectionTitle,children:[{type:e.COLUMN,horizontalAlignment:"left",extraColumnGap:!1,children:[{type:e.PUSH_BUTTON,text:i.transpose,tag:t.TRANSPOSE,iconOverride:"transpose_16",actionId:"Transpose",description:i.transposeDescription,quickAccessIcon:"transpose_16",mnemonic:"T"},{type:e.SPLIT_BUTTON,text:i.sort,tag:t.SORT,popupTag:t.SORT_POPUP,iconOverride:"sortaz_ascending_16",quickAccessIcon:"sortaz_ascending_16",hasDynamicPopup:!0,actionId:"SortAction",description:i.sortDescription,mnemonic:"W"}]}]},{type:e.SECTION,title:i.selectionSectionTitle,children:[{type:e.PANEL,children:[{type:e.COLUMN,extraColumnGap:!1,children:[{type:e.LABEL,text:i.rows,tag:t.ROW_LABEL},{type:e.LABEL,text:i.columns,tag:t.COLUMN_LABEL}]},{type:e.COLUMN,extraColumnGap:!1,width:60,children:[{type:e.TEXT_FIELD,tag:t.ROW_TEXT_FIELD,mnemonic:"R"},{type:e.TEXT_FIELD,tag:t.COLUMN_TEXT_FIELD,mnemonic:"C"}]}]},{type:e.TOGGLE_BUTTON,text:i.brushing,actionId:"Brushing",tag:t.BRUSHING,iconOverride:"brushing_16",quickAccessIcon:"brushing_16",mnemonic:"B"}]}]},{tag:"VariableTabGroup.viewTab",type:e.TAB,title:i.viewTabTitle,mnemonic:"W",children:[{type:e.SECTION,title:i.formatSectionTitle,children:[{type:e.COLUMN,extraColumnGap:!1,children:[{type:e.LABEL,tag:t.DISPLAY_FORMAT_LABEL,text:i.numberDisplayFormat},{type:e.COMBO_BOX,tag:t.DISPLAY_FORMAT_COMBOBOX,description:i.numberDisplayFormatDescription,actionId:"NumberDisplayFormat",enabled:!0,items:[],mnemonic:"F"}]}]},{type:e.SECTION,title:i.commandWindowSectionTitle,children:[{type:e.COLUMN,extraColumnGap:!1,children:[{type:e.CHECK_BOX,tag:t.SHOW_COMMAND,text:i.showCommand,mnemonic:"S"}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){e.exports={variableTabTitle:"変数",viewTabTitle:"ビュー",variableSectionTitle:"変数",editSectionTitle:"編集",transformSectionTitle:"変換",navigateSectionTitle:"ナビゲート",selectionSectionTitle:"選択",formatSectionTitle:"形式",commandWindowSectionTitle:"コマンド ウィンドウ",newFromSelection:"選択から \n新規作成",newFromSelectionDescription:"選択から新しい変数を作成します",open:"開く",openDescription:"編集のためにワークスペース変数を開きます",noWorkspaceVariablesMessage:"ワークスペースに変数がありません。",save:"名前を付けて保存",saveDescription:"ワークスペース変数をファイルに保存します",print:"印刷",printItem:"印刷...",printSelectionItem:"選択の印刷...",printDescription:"変数を印刷します ",insert:"挿入",delete:"削除",insertField:"フィールドの\n挿入",deleteField:"フィールドの\n削除",transpose:"転置",transposeDescription:"変数を転置します。これは a=a' と等価です。",sort:"並べ替え",sortDescription:"選択列で変数全体を並べ替えます",goUp:"上へ移動",brushing:"ブラシ選択",goUpDescription:"1 つ上のレベル",rows:"行",columns:"列",showCommand:"MATLAB コードの表示",numberDisplayFormat:"数値表示形式",numberDisplayFormatDescription:"表示用の数値形式を選択します",shortFixedDecimal:"Short 型固定小数点",longFixedDecimal:"Long 型固定小数点",shortScientificNotation:"Short 型科学的表記",longScientificNotation:"Long 型科学的表記",shortFixedDecimalCompact:"Short 型固定小数点コンパクト",longFixedDecimalCompact:"Long 型固定小数点コンパクト",shortEngineeringNotation:"Short 型工学的表記",longEngineeringNotation:"Long 型工学的表記",positiveNegativeFormat:"正負",bank:"バンク",hexadecimal:"16 進数",rational:"有理",brushingDisabled:"データのブラシ選択を有効にする Figure オブジェクトへの変数のリンク",brushingEnabled:"データおよびリンクされている Figure で選択されている値を強調表示"}},function(e,t,i){e.exports={variableTabTitle:"변수",viewTabTitle:"보기",variableSectionTitle:"변수",editSectionTitle:"편집",transformSectionTitle:"변환",navigateSectionTitle:"탐색",selectionSectionTitle:"선택",formatSectionTitle:"형식",commandWindowSectionTitle:"명령 창",newFromSelection:"선택 항목에서 \n새로 만들기",newFromSelectionDescription:"선택 항목으로 변수를 새로 만듭니다.",open:"열기",openDescription:"편집을 위해 작업 공간 변수를 엽니다.",noWorkspaceVariablesMessage:"작업 공간에 변수가 없습니다.",save:"다른 이름으로 저장",saveDescription:"파일에 작업 공간 변수를 저장합니다.",print:"인쇄",printItem:"인쇄...",printSelectionItem:"선택 영역 인쇄...",printDescription:"변수를 인쇄합니다. ",insert:"삽입",delete:"삭제",insertField:"필드\n삽입",deleteField:"필드\n삭제",transpose:"전치",transposeDescription:"변수의 행과 열을 바꿉니다. 이는 a=a'과 동일합니다.",sort:"정렬",sortDescription:"선택한 열을 기준으로 전체 변수를 정렬합니다.",goUp:"위로 이동",brushing:"브러싱",goUpDescription:"한 단계 위로 이동",rows:"행",columns:"열",showCommand:"MATLAB 코드 표시",numberDisplayFormat:"숫자 표시 형식",numberDisplayFormatDescription:"표시할 수치 형식을 선택합니다",shortFixedDecimal:"짧은 형식 고정소수점 표기",longFixedDecimal:"긴 형식 고정소수점 표기",shortScientificNotation:"짧은 형식 과학 표기법",longScientificNotation:"긴 형식 과학 표기법",shortFixedDecimalCompact:"짧은 형식 고정소수점 간소 표시",longFixedDecimalCompact:"긴 형식 고정소수점 간소 표시",shortEngineeringNotation:"짧은 형식 공학 표기법",longEngineeringNotation:"긴 형식 공학 표기법",positiveNegativeFormat:"양수 음수",bank:"통화",hexadecimal:"16진수",rational:"유리",brushingDisabled:"데이터 브러싱을 활성화하려면 변수를 Figure 객체에 연결하십시오",brushingEnabled:"데이터에서 선택된 값 및 연결된 Figure를 강조 표시합니다"}},function(e,t,i){e.exports={variableTabTitle:"变量",viewTabTitle:"视图",variableSectionTitle:"变量",editSectionTitle:"编辑",transformSectionTitle:"变换",navigateSectionTitle:"导航",selectionSectionTitle:"所选内容",formatSectionTitle:"格式",commandWindowSectionTitle:"命令行窗口",newFromSelection:"根据所选\n内容新建",newFromSelectionDescription:"根据所选内容创建新变量",open:"打开",openDescription:"打开要编辑的工作区变量",noWorkspaceVariablesMessage:"工作区中没有变量",save:"另存为",saveDescription:"将工作区变量保存到文件",print:"打印",printItem:"打印...",printSelectionItem:"打印所选内容...",printDescription:"打印变量 ",insert:"插入",delete:"删除",insertField:"插入字段\n",deleteField:"删除字段\n",transpose:"转置",transposeDescription:"转置变量。这等效于 a=a'。",sort:"排序",sortDescription:"按所选列对整个变量进行排序",goUp:"上移",brushing:"刷亮",goUpDescription:"转到上一级",rows:"行",columns:"列",showCommand:"显示 MATLAB 代码",numberDisplayFormat:"数字显示格式",numberDisplayFormatDescription:"选择数值显示格式",shortFixedDecimal:"短固定十进制小数点格式",longFixedDecimal:"长固定十进制小数点格式",shortScientificNotation:"短科学记数法",longScientificNotation:"长科学记数法",shortFixedDecimalCompact:"短固定十进制小数点紧凑格式",longFixedDecimalCompact:"长固定十进制小数点紧凑格式",shortEngineeringNotation:"短工程记数法",longEngineeringNotation:"长工程记数法",positiveNegativeFormat:"正负",bank:"货币格式",hexadecimal:"十六进制",rational:"有理数",brushingDisabled:"将变量链接到图窗对象以启用数据刷亮",brushingEnabled:"突出显示数据和链接图窗中的所选值"}},function(e,t,i){e.exports={root:{variableTabTitle:"VARIABLE",viewTabTitle:"VIEW",variableSectionTitle:"VARIABLE",editSectionTitle:"EDIT",transformSectionTitle:"TRANSFORM",navigateSectionTitle:"NAVIGATE",selectionSectionTitle:"SELECTION",formatSectionTitle:"FORMAT",commandWindowSectionTitle:"COMMAND WINDOW",newFromSelection:"New from \nSelection",newFromSelectionDescription:"Create new variable from selection",open:"Open",openDescription:"Open a workspace variable for editing",noWorkspaceVariablesMessage:"There are no variables in the workspace",save:"Save As",saveDescription:"Save workspace variable to file",print:"Print",printItem:"Print...",printSelectionItem:"Print Selection...",printDescription:"Print the variable ",insert:"Insert",delete:"Delete",insertField:"Insert\nField",deleteField:"Delete\nField",transpose:"Transpose",transposeDescription:"Transpose Variable. This is equivalent to a=a'.",sort:"Sort",sortDescription:"Sort entire variable by selected columns",goUp:"Go Up",brushing:"Brushing",goUpDescription:"Go up one level",rows:"Rows",columns:"Columns",showCommand:"Show MATLAB Code",numberDisplayFormat:"Number Display Format",numberDisplayFormatDescription:"Select numeric format for display",shortFixedDecimal:"Short Fixed Decimal",longFixedDecimal:"Long Fixed Decimal",shortScientificNotation:"Short Scientific Notation",longScientificNotation:"Long Scientific Notation",shortFixedDecimalCompact:"Short Fixed Decimal Compact",longFixedDecimalCompact:"Long Fixed Decimal Compact",shortEngineeringNotation:"Short Engineering Notation",longEngineeringNotation:"Long Engineering Notation",positiveNegativeFormat:"Positive Negative",bank:"Bank",hexadecimal:"Hexadecimal",rational:"Rational",brushingDisabled:"Link variables to figure object to enable data brushing",brushingEnabled:"Highlight selected values in data and linked figures"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(226),i(1262),i(1025)],o=i.dj.d(n,(function(e,t,i){return{popups:[{tag:t.NEW_FROM_SELECTION_POPUP,type:e.POPUP_LIST},{tag:t.OPEN_POPUP,type:e.POPUP_LIST},{tag:t.PRINT_POPUP,type:e.POPUP_LIST,children:[{type:e.LIST_ITEM,tag:t.PRINT_ITEM,text:i.printItem,shortcut:"Ctrl+P"},{type:e.LIST_ITEM,tag:t.PRINT_SELECTION_ITEM,text:i.printSelectionItem}]},{tag:t.SORT_POPUP,type:e.POPUP_LIST},{tag:t.INSERT_POPUP,type:e.POPUP_LIST},{tag:t.DELETE_POPUP,type:e.POPUP_LIST}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e=[{id:"NewWorkspaceVariableAction",enabled:!0},{id:"Openvar",enabled:!0},{id:"SaveVariablesAction",enabled:!0},{id:"PrintAction",enabled:!0},{id:"InsertRowColumn",enabled:!0},{id:"DeleteData",enabled:!0},{id:"InsertAction",enabled:!0},{id:"DeleteAction",enabled:!0},{id:"Transpose",enabled:!0},{id:"SortAction",enabled:!0},{id:"GoToParent",enabled:!1},{id:"NumberDisplayFormat",enabled:!0},{id:"Brushing",enabled:!0}];return{getActions:function(){return e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(214),i(980),i(235),i(1566),i(209),i(292),i(226),i(984),i(1262),i(9006),i(9007),i(846),i(2714),i(366),i(9008),i(263),i(744),i(1025)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v){const b=["matlab","desktop","arrayeditor"],y=["matlab","desktop","variables"];return e("variableeditor_client.toolstrip.VEToolstripManager",[d],{uiBuilder:null,manager:null,contextManager:null,dynamicListItems:{},toolstripListeners:[],_NEW_FROM_SELECTION_GROUPID:"NewFromSelection",_listeners:{},_formatDropdownListenerAttached:!1,constructor:function(e){this.contextManager=e.contextManager,this.manager=e.manager,this.toolstripListeners=[],this.dynamicListItems={},this.displayFormatCache={},this.brushToggleStateCache={},this._displayformatSetting="short",this._listeners={},this._dynamicGroupedItems={},this._editViewState="",this._lastFetchedFormat=""},startup:function(e){this.uiBuilder=e.uiBuilder||a.getInstance(),this.actionDataService=i.getInstance({namespace:this.manager.allArgs.actionDataServiceChannel}),this.inherited(arguments),this._attachListeners(),this._initState()},_initState:function(){let e=this;m.getSetting(b,"VECmdLineCodeGenEnabled").then((function(t){let i=e.uiBuilder.tagToId(c.SHOW_COMMAND);e.uiBuilder.set(i,"selected",t.value),e.manager.updateCodeGenEnabled(t.value)}));m.getSetting(y,"ArrayEditor_CS_Format").then((function(t){e._displayformatSetting=t.value})),m.listenTo(y,"ArrayEditor_CS_Format",t=>{e._displayformatSetting=t.newValue})},_attachListeners:function(){this._createDynamicDropdowns(),this.toolstripListeners.push(this._attachListenerForWidget(c.NEW_FROM_SELECTION,this.onNewFromSelection,null,"NewWorkspaceVariableAction")),this.toolstripListeners.push(this._attachListenerForWidget(c.OPEN,this.onOpen,null,"Openvar",c.OPEN_POPUP));var e=this._attachListenerForWidget(c.HOME_TAB_OPEN_VARIABLE,this.onOpen,null,"Openvar",c.HOME_TAB_OPEN_VARIABLE_POPUP);e&&this.toolstripListeners.push(e),this.toolstripListeners.push(this._attachListenerForWidget(c.SAVE,this.onSave,null,p.SAVE_AS_ACTION)),this.toolstripListeners.push(this._attachListenerForWidget(c.PRINT,this.onPrint,null,p.PRINT_ACTION)),this.toolstripListeners.push(this._attachListenerForWidget(c.PRINT_ITEM,this.onPrint,null,p.PRINT_ACTION)),this.toolstripListeners.push(this._attachListenerForWidget(c.PRINT_SELECTION_ITEM,this.onPrint,null,p.PRINT_ACTION)),this.toolstripListeners.push(this._attachListenerForWidget(c.INSERT,this.onInsert,null,p.INSERT_ACTION)),this.toolstripListeners.push(this._attachListenerForWidget(c.DELETE,this.onDelete,null,p.DELETE_ACTION)),this.toolstripListeners.push(this._attachListenerForWidget(c.INSERT_FIELD,this.onInsertField,null,p.INSERT_FIELD_ACTION)),this.toolstripListeners.push(this._attachListenerForWidget(c.DELETE_FIELD,this.onDeleteField,null,p.DELETE_FIELD_ACTION)),this.toolstripListeners.push(this._attachListenerForWidget(c.TRANSPOSE,this.onTranspose,null,p.TRANSPOSE_ACTION)),this.toolstripListeners.push(this._attachListenerForWidget(c.SORT,this.onSort,null,p.SORT_ACTION)),this.toolstripListeners.push(this._attachListenerForWidget(c.GO_UP,this.onNavigateToParent,null,p.GO_TO_PARENT)),this.toolstripListeners.push(this._attachPropertySetForWidget(c.BRUSHING,this.onBrushingToggled,null,p.BRUSHING)),this.toolstripListeners.push(this._attachPropertySetForWidget(c.ROW_TEXT_FIELD,this.onSelectionRangeChanged)),this.toolstripListeners.push(this._attachPropertySetForWidget(c.COLUMN_TEXT_FIELD,this.onSelectionRangeChanged)),this.toolstripListeners.push(this._attachPropertySetForWidget(c.SHOW_COMMAND,this.onShowCommandToggle)),this.toolstripListeners.push(this._attachListenerForWidget(c.DISPLAY_FORMAT_COMBOBOX,this.handleEventOnFormatDisplay,null,p.NUMBER_DISPLAY_FORMAT_ACTION)),this.toolstripListeners.push(this._attachPropertySetForWidget(c.DISPLAY_FORMAT_COMBOBOX,this.handleDisplayFormatSet)),this._attachListenerForSelectionUpdate()},_attachListenerForSelectionUpdate:function(){var e=this.manager,t={};e.addEventListener("managerFocusChanged",function(i){if(!i.data.onDocumentClose){var n=e.focusedDocument;if(n)if(this._listeners[n.varDocID])this._updateToolstripState(t[n.varDocID],n.varDocID);else{const e=function(e){this._attachViewListeners(e,n.varDocID),t[n.varDocID]=e,this._updateToolstripState(e,n.varDocID)}.bind(this);let i=n.getViews();i.length>0?e(i[0]):n.addEventListener("viewAdded",(function(t){e(t.data.viewModel)})),n.addEventListener("viewRemoved",function(e){var i=e.data.document?e.data.document.varDocID:null;t[i]&&this._listeners[i]&&(this._detachViewListeners(t[i],i),delete t[i],delete this.displayFormatCache[i],delete this.brushToggleStateCache[i])}.bind(this))}}}.bind(this))},_updateToolstripState:function(e,t){var i=!e.hasOwnProperty("allowSelectionRange")||e.allowSelectionRange,n=i?e.getProperty("rowRange"):"[]",o=i?e.getProperty("colRange"):"[]";const r=e.getPluginByName("BRUSHING");this._updateTextField(c.ROW_TEXT_FIELD,n,"text","[]"),this._updateTextField(c.COLUMN_TEXT_FIELD,o,"text","[]");var a=this._getEditViewState(e);this._editViewState!==a&&(this._editViewState&&this._dynamicGroupedItems[this._editViewState].forEach((function(e){this.uiBuilder.remove(e.editItem)}),this),this._dynamicGroupedItems[a].forEach((function(e){this.uiBuilder.add(e.editItem,this.uiBuilder.tagToId(e.__parentId))}),this));const s=r?!r.brushingMode&&i:i;this._updateTextField(c.COLUMN_TEXT_FIELD,s,"enabled"),this._updateTextField(c.ROW_TEXT_FIELD,i,"enabled"),this._editViewState=a,this._updatePrintState(e),this._updateDisplayFormatState(t),this._updateBrushToggleState(t)},_getEditViewState:function(e){return"struct"===e.getViewType()&&e.dataAttributes.indexOf("isScalar")>-1?"VEEditFieldOptions":"VEEditOptions"},_updatePrintState:function(e){var t=this.uiBuilder.tagToId(c.PRINT_SELECTION_ITEM);e.getSelection?this.uiBuilder.set(t,"enabled",!0):this.uiBuilder.set(t,"enabled",!1)},_updateDisplayFormatState:function(e){let t=this.uiBuilder.tagToId(c.DISPLAY_FORMAT_COMBOBOX),i=this._displayformatSetting,n=this.uiBuilder.get(t,"items");if(n.length>1){if(this.displayFormatCache[e])return void this.uiBuilder.set(t,"selectedItem",this.displayFormatCache[e]);this.uiBuilder.set(t,"selectedItem",i)}else if(0===n.length||this.uiBuilder.get(t,"selectedItem")!==i){const e=[{value:i,label:g[i].comboBoxItem,selected:!0}];this.uiBuilder.set(t,"items",e)}this.displayFormatCache[e]=i},_updateBrushToggleState:function(e){let t=this.uiBuilder.tagToId(c.BRUSHING),i=this.brushToggleStateCache[e]||!1;this.uiBuilder.set(t,"selected",i)},_createDynamicDropdowns:function(){Object.keys(u).forEach((function(e){this._dynamicGroupedItems[e]=[],u[e].forEach((function(t){var i=this.uiBuilder.create(t);t.editItem=i,this._dynamicGroupedItems[e].push(t)}),this)}),this)},_attachViewListeners:function(e,t){var i=this._handleViewSelectionChange.bind(this);e.addEventListener(f.SELECTION_RANGE_CHANGED,i),this._listeners[t]=i},_detachViewListeners:function(e,t){e.removeEventListener(f.SELECTION_RANGE_CHANGED,this._listeners[t]),delete this._listeners[t]},_handleViewSelectionChange:function(e){var t;e&&e.data&&("rowRange"===e.data.key?t=c.ROW_TEXT_FIELD:"colRange"===e.data.key&&(t=c.COLUMN_TEXT_FIELD),this._updateTextField(t,e.data.newValue,"text","[]"))},_attachListenerForWidget:function(e,t,i,n,o){this.inherited(arguments);var r=i||this.uiBuilder.tagToId(e);if(r)return this.uiBuilder.addEventCallback(r,t.bind(this,e,o),this)},_attachPropertySetForWidget:function(e,t,i,n){this.inherited(arguments);var o=i||this.uiBuilder.tagToId(e);return this.uiBuilder.addPropertySetCallback(o,t.bind(this,e),this)},onNewFromSelection:function(e,t,i){this._refreshContext();var n=this.contextManager.currentContext.contextIdList,o=this.manager.contextMenuProvider._getMenuItemsForContext(n).find((function(e){return e.groupID===this._NEW_FROM_SELECTION_GROUPID}),this);if(o)if(o.menu){var a=o.menu.getChildren();this._createMenuWithCallback(a,e,c.NEW_FROM_SELECTION_POPUP,i.eventType)}else o.action.execute(o._getActionCallbackParams());else r.error("Action available for an invalid context")},onSave:function(e,t,i){"buttonPushed"===i.eventType&&this.manager.actionDataService.executeAction("SaveVariablesAction",{selectedFields:this.manager.focusedDocument.varName})},onPrint:function(e,t,i){let n="Print";e===c.PRINT_SELECTION_ITEM&&(n="PrintSelection"),this.manager.actionDataService.executeAction("PrintAction",{menuID:n})},onSort:function(e,t,i){this._handleMenuItemCreationForContext(e,c.SORT_POPUP,[p.SORT_ASCENDING_MENU,p.SORT_DESCENDING_MENU],i.eventType)},onInsert:function(e,t,i){this._handleMenuItemCreationForContext(e,c.INSERT_POPUP,[p.INSERT_COL_LEFT,p.INSERT_COL_RIGHT,p.INSERT_ROW_ABOVE,p.INSERT_ROW_BELOW],i.eventType)},onDelete:function(e,t,i){this._handleMenuItemCreationForContext(e,c.DELETE_POPUP,[p.DELETE_ROW,p.DELETE_COLUMN],i.eventType)},onInsertField:function(e,t,i){this.manager.actionDataService.executeAction(p.INSERT_FIELD_ACTION)},onDeleteField:function(e,t,i){this.manager.actionDataService.executeAction(p.DELETE_FIELD_ACTION)},onTranspose:function(e,t,i){"buttonPushed"===i.eventType&&this.manager.actionDataService.executeAction(p.TRANSPOSE_ACTION,{menuID:p.TRANSPOSE_MENU})},onNavigateToParent:function(){this.manager.actionDataService.executeAction(p.GO_TO_PARENT)},onSelectionRangeChanged:function(e,t){var i=this.manager.focusedDocument.getViews()[0];"text"===t.property&&(e===c.ROW_TEXT_FIELD?i.setProperty("rowRange",t.newValue):e===c.COLUMN_TEXT_FIELD&&i.setProperty("colRange",t.newValue))},onActionSelectionUpdate:function(e,t){if(e===p.BRUSHING){let e=this.uiBuilder.tagToId(c.BRUSHING);this.uiBuilder.set(e,"selected",t),this.onBrushingToggled("",{property:"selected",newValue:t})}},onActionEnabledUpdate:function(e,t){if(e===p.BRUSHING){let e=this.uiBuilder.tagToId(c.BRUSHING);const i=t?v.brushingEnabled:v.brushingDisabled;this.uiBuilder.set(e,"description",i)}},onBrushingToggled:function(e,t){const i=this.manager.focusedDocument.getViews()[0].getPluginByName("BRUSHING");if(i&&"selected"===t.property){i.setBrushingMode(t.newValue);const e=this.manager.focusedDocument.varDocID;this.brushToggleStateCache[e]=t.newValue,this._updateTextField(c.COLUMN_TEXT_FIELD,!i.brushingMode,"enabled")}},onShowCommandToggle:function(e,t){"selected"===t.property&&m.setSetting(b,"VECmdLineCodeGenEnabled",t.newValue)},handleEventOnFormatDisplay:function(e,i,n){let o=this.uiBuilder.tagToId(c.DISPLAY_FORMAT_COMBOBOX);if(this._formatDropdownListenerAttached||"dropDownPerformed"!==n.eventType){if("focusLost"===n.eventType&&this._lastFetchedFormat!==this.uiBuilder.get(o,"selectedItem")){let e=this._lastFetchedFormat=this.uiBuilder.get(o,"selectedItem");this.manager.executeAction(p.NUMBER_DISPLAY_FORMAT_ACTION,{format:e})}}else{let e=this.uiBuilder.widgetByTag(c.DISPLAY_FORMAT_COMBOBOX),i=this,n=this._lastFetchedFormat=i.uiBuilder.get(o,"selectedItem");this._formatDropdownListenerAttached=t.after(e,"_handleMenuItemMouseEnter",(function(e){let t=i._getFormatValueFromText(e.target.innerText);n!==t&&(i.manager.executeAction(p.NUMBER_DISPLAY_FORMAT_ACTION,{format:t}),n=i._lastFetchedFormat=t)}),!0);let r=[];const a=this.uiBuilder.get(o,"selectedItem")||this._displayformatSetting;Object.keys(g).forEach(e=>{let t={value:e,label:g[e].comboBoxItem,selected:e===a};r.push(t)},this),this.uiBuilder.set(o,"items",r)}},handleDisplayFormatSet:function(e,t){if("selectedItem"===t.property){let e=this.manager.focusedDocument.varDocID;this.displayFormatCache[e]=t.newValue}},_getFormatValueFromText:function(e){return Object.keys(g).find(t=>g[t].comboBoxItem===e)},handleDynamicListCreation:function(e,t,i){var n={type:s.LIST_ITEM,tag:e.tag,text:e.text,icon:e.icon||void 0,iconOverride:e.iconOverride||void 0,enabled:!e.hasOwnProperty("enabled")||e.enabled,parentId:this.uiBuilder.tagToId(t)},o=this.uiBuilder.create(n);if(i)var r=this._attachListenerForWidget(null,function(e,n,o){i(o),r.remove(),this.handleDynamicListDestruction(t)}.bind(this),o);this.dynamicListItems[t]||(this.dynamicListItems[t]=[]),this.dynamicListItems[t].push(o)},handleDynamicListDestruction:function(e){this.dynamicListItems.hasOwnProperty(e)&&Array.isArray(this.dynamicListItems[e])&&(this.dynamicListItems[e].forEach((function(e){this.uiBuilder.destroy(e)}),this),this.dynamicListItems[e]=null)},handleShowPopup:function(e,t){this.uiBuilder.showPopup(this.uiBuilder.tagToId(e),this.uiBuilder.tagToId(t))},onOpen:function(e,t,i){"dropDownPerformed"===i.eventType&&(this.handleDynamicListDestruction(t),o.getWorkspaceDisplayCols("debug",["name","class"]).then(function(i){0===i.length?this.handleDynamicListCreation({tag:"defaultTag",text:v.noWorkspaceVariablesMessage,enabled:!1},t,null):i.forEach((function(e){var i=l.getResolvedIconForType(e.Class),n=function(e){this.manager.actionDataService.executeAction("Openvar",{Name:e.value})}.bind(this);this.handleDynamicListCreation({tag:e.Name,text:e.Name,iconOverride:i},t,n)}),this),this.handleShowPopup(e,t)}.bind(this)))},_handleMenuItemCreationForContext:function(e,t,i,n){this._refreshContext();var o=this.contextManager.currentContext.contextIdList,a=this.manager.contextMenuProvider._getMenuItemsForContext(o).filter((function(e){return i.indexOf(e.menuItemID)>-1}),this);a&&a.length>0?this._createMenuWithCallback(a,e,t,n):r.error("Action available for an invalid context")},_createMenuWithCallback:function(e,t,i,n){if("dropDownPerformed"===n)this.handleDynamicListDestruction(i),e.forEach((function(e){this.handleDynamicListCreation({tag:e.menuItemID,text:e.text,iconOverride:e.icon},i,(function(){e.action.execute(e._getActionCallbackParams())}))}),this),this.handleShowPopup(t,i);else if("buttonPushed"===n){var o=e.find((function(e){return!0===e.isDefault}));o.action.execute(o._getActionCallbackParams())}},_refreshContext:function(){var e=this.manager.focusedDocument;if(e){var t=e.getViews()[0];if(t.VIEW_CONTEXT_PLUGIN)t.getPluginByName(t.VIEW_CONTEXT_PLUGIN).rePublishContext({target:{type:h.TABLE_KEYBOARD_CONTEXT}})}},_updateTextField:function(e,t,i,n){t=""!==t?t:n;var o=this.uiBuilder.tagToId(e);this.uiBuilder.set(o,i,t)},destroy:function(){this.toolstripListeners.forEach((function(e){e&&e.remove&&e.remove()})),this.toolstripListeners=[]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(206)],o=i.dj.d(n,(function(e,t,i){return e(null,{_syncActionMap:{},_syncActionFutureMap:{},startup:function(e){this._syncActionMap={},this._syncActionFutureMap={},this.toolstripActionDataService=e.actionDataService||null,this.actionDataService.addEventListener("actionAdded",this._handleActionAdded.bind(this))},_attachListenerForWidget:function(e,t,i,n){n&&(Array.isArray(n)?n:[n]).forEach((function(e){this._getAction(e).then(function(t){this._attachOnEnabledChangeListener(t,e)}.bind(this))}),this)},_attachOnEnabledChangeListener:function(e,t){this.toolstripActionDataService.updateAction(t,{enabled:e.getProperty("enabled")}),e.addEventListener("onenabledChange",function(e){this.toolstripActionDataService.updateAction(t,{enabled:e.target.newValue}),this.onActionEnabledUpdate(t,e.target.newValue)}.bind(this))},_attachSelectionChangedListener:function(e,t){e.addEventListener("onSelectedChange",function(e){this.toolstripActionDataService.updateAction(t,{selected:e.target.newValue}),this.onActionSelectionUpdate(t,e.target.newValue)}.bind(this))},_attachPropertySetForWidget:function(e,t,i,n){n&&this._getAction(n).then(function(e){isNaN(e.getProperty("Selected"))||(this._attachSelectionChangedListener(e,n),this._attachOnEnabledChangeListener(e,n))}.bind(this))},onActionSelectionUpdate:function(e,t){},onActionEnabledUpdate:function(e,t){},_getAction:function(e){var i=new t;if(this._syncActionMap[e])i.resolve(this._syncActionMap[e]);else{var n=this.actionDataService.getAction(e);n?(this._syncActionMap[e]=n,i.resolve(n)):this._syncActionFutureMap[e]=i}return i},_handleActionAdded:function(e){var t=e.data.actionID;this._syncActionFutureMap[t]&&(this._syncActionMap[t]=this.actionDataService.getAction(t),this._syncActionFutureMap[t].resolve(this._syncActionMap[t]),delete this._syncActionFutureMap[t])},destroy:function(){this._syncActionMap=null,this._syncActionFutureMap=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(226),i(1262),i(1025)],o=i.dj.d(n,(function(e,t,i){return{VEEditOptions:[{type:e.DROP_DOWN_BUTTON,text:i.insert,tag:t.INSERT,hasDynamicPopup:!0,mnemonic:"I",popupTag:t.INSERT_POPUP,iconOverride:"insertEntireRow_24",quickAccessIcon:"insertEntireRow_16",actionId:"InsertRowColumn",__parentId:t.INSERT_COLUMN},{type:e.DROP_DOWN_BUTTON,text:i.delete,tag:t.DELETE,hasDynamicPopup:!0,mnemonic:"D",popupTag:t.DELETE_POPUP,iconOverride:"deleteEntireRow_24",quickAccessIcon:"deleteEntireRow_16",actionId:"DeleteData",__parentId:t.DELETE_COLUMN}],VEEditFieldOptions:[{type:e.PUSH_BUTTON,text:i.insertField,tag:t.INSERT_FIELD,mnemonic:"I",iconOverride:"insertEntireRow_24",quickAccessIcon:"insertEntireRow_16",actionId:"InsertAction",__parentId:t.INSERT_COLUMN},{type:e.PUSH_BUTTON,text:i.deleteField,mnemonic:"D",tag:t.DELETE_FIELD,iconOverride:"deleteEntireRow_24",quickAccessIcon:"deleteEntireRow_16",actionId:"DeleteAction",__parentId:t.DELETE_COLUMN}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1025)],o=i.dj.d(n,(function(e){return{short:{comboBoxItem:e.shortFixedDecimal+" (3.1416)",formatDescription:e.shortFixedDecimal},long:{comboBoxItem:e.longFixedDecimal+" (3.141592653589793)",formatDescription:e.longFixedDecimal},shortE:{comboBoxItem:e.shortScientificNotation+" (3.1416e+00)",formatDescription:e.shortScientificNotation},longE:{comboBoxItem:e.longScientificNotation+" (3.141592653589793e+00)",formatDescription:e.longScientificNotation},shortG:{comboBoxItem:e.shortFixedDecimalCompact+" (3.1416)",formatDescription:e.shortFixedDecimalCompact},longG:{comboBoxItem:e.longFixedDecimalCompact+" (3.14159265358979)",formatDescription:e.longFixedDecimalCompact},shortEng:{comboBoxItem:e.shortEngineeringNotation+" (3.1416e+000)",formatDescription:e.shortEngineeringNotation},longEng:{comboBoxItem:e.longEngineeringNotation+" (3.14159265358979e+000)",formatDescription:e.longEngineeringNotation},"+":{comboBoxItem:e.positiveNegativeFormat+" (+,-)",formatDescription:e.positiveNegativeFormat},bank:{comboBoxItem:e.bank+" (3.14)",formatDescription:e.bank},hex:{comboBoxItem:e.hexadecimal+" (400921fb54442d18)",formatDescription:e.hexadecimal},rational:{comboBoxItem:e.rational+" (355/113)",formatDescription:e.rational}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(203),i(204),i(233),i(232),i(9010),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return t(null,{constructor:function(e){e&&e.fileDataService&&(this._fileDataService=e.fileDataService),o.registerResponseHandler("ListVersionResponse",this._handleListVersionResponse,this),o.registerResponseHandler("DisplayVersionResponse",this._handleDisplayVersionResponse,this),o.registerResponseHandler("SetActiveVersionResponse",this._handleSetActiveVersionResponse,this),o.registerFaultHandler("ListVersionResponse",this._getErrorHandler("ListVersion"),this),o.registerFaultHandler("DisplayVersionResponse",this._getErrorHandler("DisplayVersion"),this),o.registerFaultHandler("SetActiveVersionResponse",this._getErrorHandler("SetActiveVersion"),this),this._versionStoresByPath={},this._isEnabled=!0},_hasStore:function(e){var t=n.pathFromFileInfo(e);return void 0!==this._versionStoresByPath[t]},getStore:function(e){var t=n.pathFromFileInfo(e);return a.assert(this._hasStore(e),'No store for "'+t+'"'),this._versionStoresByPath[t]},_resetStore:function(e){var t=n.pathFromFileInfo(e),i=this._versionStoresByPath[t];return i?i.flush():(i=new r,this._versionStoresByPath[t]=i),i},loadVersions:function(e){var t=n.assertAndUpdateFileInfo(e).path;this._sendMessage({ListVersion:{path:t}})},_handleListVersionResponse:function(t){e.forEach(t,(function(e){var t;if(e.fileInfoList&&e.fileInfoList.length>0){var n=this._resetStore(e.fileInfoList[0]),o=i.clone(e.fileInfoList[e.fileInfoList.length-1]);for(n.addVersion(o,!0),t=e.fileInfoList.length-1;t>=0;t-=1)n.addVersion(e.fileInfoList[t],!1);this.versionsLoaded(o,n)}}),this)},versionsLoaded:function(e,t){},getVersionContent:function(e,t){if(a.assert(this._hasStore(e.file.fileInfo),"No store for "+e.file.fileInfo),void 0!==e.file.content)t(e);else{var i={DisplayVersion:this._createPathAndVersionPayload(e.file.fileInfo)};this._sendMessage(i,{callback:t,versionedFile:e})}},_handleDisplayVersionResponse:function(t,i){e.forEach(t,(function(e){var t=i.callback,n=i.versionedFile;this.getStore(n.file.fileInfo).setFileContent(n,e.file.content),t(n)}),this)},setActiveVersion:function(e){a.assert(e,"'fileInfo' cannot be undefined"),this._sendMessage({SetActiveVersion:this._createPathAndVersionPayload(e)})},_createPathAndVersionPayload:function(e){return{path:n.pathFromFileInfo(e),version:e.version.versionNumber}},_handleSetActiveVersionResponse:function(t){e.forEach(t,(function(e){this.loadVersions(e.file.fileInfo),this._fileDataService.setFileClean(e.file)}),this)},_getErrorHandler:function(e){return i.hitch(null,this._handleError,e)},_handleError:function(e,t){a.error("Error received while calling the "+e+" command.",t)},_sendMessage:function(e,t){this._isEnabled&&o.sendMessage(e,t)},disable:function(){this._isEnabled=!1},enable:function(){this._isEnabled=!0,e.forEach(this._fileDataService.getAllOpenedFileInfoPaths(),(function(e){this._hasStore(e)&&this.loadVersions(e)}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(9011),i(233),i(2606),i(209)],o=i.dj.d(n,(function(e,t,i,n,o){return e(t,{_fileDataUtils:i,addVersion:function(e,t){updatedFileInfo=this._fileDataUtils.assertAndUpdateFileInfo(e);var i={displayName:t?n.getLatestLabel():this._generateName(updatedFileInfo),file:{content:void 0,fileInfo:updatedFileInfo},isLatest:t};i.id=String(this.items.length),this.newItem(i)},flush:function(){this.deleteItems(),this.onStoreFlushed()},onStoreFlushed:function(){},setFileContent:function(e,t){if(e&&void 0!==t){var i={content:t,fileInfo:e.file.fileInfo};this.setValue(e,"file",i),this.onFileContentChanged(e)}},onFileContentChanged:function(e){},getVersionedFile:function(e){return this.getItemById(e)},getLabelAttributes:function(){return["displayName"]},getLabel:function(e){return e.displayName},refreshDisplayNames:function(){var e;for(e=0;e<this.items.length;e+=1)this.items[e].isLatest||this.setValue(this.items[e],"displayName",this._generateName(this.items[e].file.fileInfo))},_generateName:function(e){o.assert(e,"'fileInfo' cannot be undefined");var t=new Date(Date.parse(e.version.versionDate));return n.formatAsDelta(t)+" ("+e.version.versionNumber+")"},getLatestVersion:function(){return o.assert(this.items.length>0,"No versions loaded into this store yet"),this.getFirstItem()},setToLaterVersion:function(){this.setToOlderItem()},setToEarlierVersion:function(){this.setToNewerItem()},isLatestVersion:function(){return this.isFirstItem()},isOldestVersion:function(){return this.isLastItem()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(209),i(856)],o=i.dj.d(n,(function(e,t,i){return e([i],{_currentItem:null,getItemById:function(e){var i=parseInt(e,10);return t.assert(this.isItemIdInStore(e),"ID '"+e+"' is invalid"),this.items[i]},isItemIdInStore:function(e){var t=parseInt(e,10);return t>=0&&t<this.items.length},deleteItems:function(){var e;for(e=this.items.length-1;e>=0;e-=1)this.deleteItem(this.items[e]);this._currentItem=null},setToOlderItem:function(){var e=this.getCurrentItem();this.isFirstItem()||this._setCurrentItem(this._getNextItem(e,!1))},setToNewerItem:function(){var e=this.getCurrentItem();this.isLastItem()||this._setCurrentItem(this._getNextItem(e,!0))},setCurrentItemById:function(e){this._setCurrentItem(this.getItemById(e))},_setCurrentItem:function(e){this._assertIsInStore(e),this._currentItem!==e&&(this._currentItem=e,this.onCurrentItemChanged(e))},getCurrentItem:function(){return!this._currentItem&&this.items.length>0&&this._setCurrentItem(this.getFirstItem()),this._currentItem},getFirstItem:function(){return t.assert(this.items.length>0,"No items in store"),this.items[0]},_getNextItem:function(e,t){var i=this.items.indexOf(e);return t?this.items[i+1]:this.items[i-1]},onCurrentItemChanged:function(e){},getItems:function(){var e=[];return this.items.forEach((function(t,i){var n={};n.label=t.displayName,n.value=i.toString(),this._currentItem===t&&(n.selected=!0),e.push(n)}),this),e},isFirstItem:function(){return 0===this.items.indexOf(this.getCurrentItem())},isLastItem:function(){var e=this.items.indexOf(this.getCurrentItem())===this.items.length-1;return this.items.length>0&&e},_assertIsInStore:function(e){if(-1===this.items.indexOf(e))throw new Error("MW.utils.CurrentItemDataStore: The item specified was not found in the store.")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(219),i(9013),i(262),i(902),i(9015)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{constructor:function(e){this.messageService=e.messageService||i.messageService,this.reset(),this._binaryDataSender=new a(this.messageService)},reset:function(){this.cameraInfo=[],this.constraints=[],this.selectedCameraName=[],this.localMediaStream={},this.video=null,this.dialogue=null,this.streamInterval=-1,this.track={},this.ImageCapture=[],this.canvas=[],this.dataURI=[],this.isBinaryChannelConnected=!1,this.isSubscribed=!1,this.webcamListHandlerHitch=t.hitch(this,this.webcamListHandler),this.webcamHandlerHitch=t.hitch(this,this.webcamHandler),this.previewHandlerHitch=t.hitch(this,this.previewHandler),this.closePreviewHandlerHitch=t.hitch(this,this.closePreviewHandler),this.streamHandlerHitch=t.hitch(this,this.streamHandler),this.closeConnectionHandlerHitch=t.hitch(this,this.closeConnectionHandler)},start:function(){this.messageService.subscribe("/webcam/list",this.webcamListHandlerHitch),this.messageService.subscribe("/webcam/createConnection",this.webcamHandlerHitch),this.messageService.subscribe("/webcam/startPreview",this.previewHandlerHitch),this.messageService.subscribe("/webcam/closePreview",this.closePreviewHandlerHitch),this.messageService.subscribe("/webcam/startStreaming",this.streamHandlerHitch),this.messageService.subscribe("/webcam/closeConnectionToWebcam",this.closeConnectionHandlerHitch),this.messageService.publish("/webcam/status",!0)},stop:function(){this.cleanUp(),this.isSubscribed&&(this.messageService.unsubscribe("/webcam/list",this.webcamListHandlerHitch),this.messageService.unsubscribe("/webcam/createConnection",this.webcamHandlerHitch),this.messageService.unsubscribe("/webcam/startPreview",this.previewHandlerHitch),this.messageService.unsubscribe("/webcam/closePreview",this.closePreviewHandlerHitch),this.messageService.unsubscribe("/webcam/startStreaming",this.streamHandlerHitch),this.messageService.unsubscribe("/webcam/closeConnectionToWebcam",this.closeConnectionHandlerHitch))},webcamListHandler:function(e){this.isSubscribed=!0;let i=this;i.cameraInfo=[],navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices||i.messageService.publish("/webcam/publishlist",n.MediaAPINotAvailable),"Chrome"!==r.getBrowserInfo().name&&i.messageService.publish("/webcam/publishlist",n.MediaAPINotAvailable),navigator.mediaDevices.getUserMedia({video:!0}).then((function(e){navigator.mediaDevices.enumerateDevices().then((function(e){e.forEach((function(e){if("videoinput"===e.kind&&e.label.length>0){let t={cameraName:e.label.split(" ").slice(0,-1).join(" "),cameraID:e.deviceId};i.cameraInfo.push(t)}})),i.messageService.publish("/webcam/publishlist",i.cameraInfo)})),e.getVideoTracks().forEach((function(e){e.stop()}))})),t.hitch(this,this._onError)},webcamHandler:function(e){let i=this;i.selectedCameraName=e.data.Name,this._setConstraints(e),navigator.mediaDevices.getUserMedia(i.constraints).then((function(e){e.active?i.messageService.publish("/webcam/webcamConnStatus",!0):i.messageService.publish("/webcam/webcamConnStatus",!1),globalThis.stream=e})),t.hitch(this,this._onError)},previewHandler:function(){this._startPreview()},_startPreview:function(){let e=this;this.video=document.createElement("video"),this.video.autoplay=!0,this.video.srcObject=globalThis.stream,this.video.addEventListener("loadedmetadata",(function(t){e.localMediaStream[e.selectedCameraName]=globalThis.stream,e._renderVideo()})),this.video.load()},_renderVideo:function(){let e=this;e.dialogue=o.createDialog({content:e.video,closable:!0,draggable:!0,resizable:!1,title:e.selectedCameraName});let t=e.dialogue.domNode.children[0],i=e.dialogue.domNode.children[1];i.style.padding="0px",i.style.width=e.video.offsetWidth+"px",i.style.height=e.video.offsetHeight+"px",i.style.overflow="hidden",e.dialogue.domNode.style.width=e.video.offsetWidth+"px",e.dialogue.domNode.style.height=e.video.offsetHeight+t.offsetHeight+"px",e.messageService.publish("/webcam/previewStatus",!0),e.dialogue.on("close",(function(){this.dialogue=null,e.messageService.publish("/webcam/userClosedPreview",!0)}))},closePreviewHandler:function(e){this.dialogue&&this.dialogue.close(),this.dialogue=null},_onError:function(e){"DevicesNotFoundError"===e.name?this.messageService.publish("/webcam/publishlist",[]):"PermissionDeniedError"===e.name||"NotAllowedError"===e.name?this.messageService.publish("/webcam/publishlist",n.PermissionDeniedError):"OverconstrainedError"===e.name&&this.messageService.publish("/webcam/webcamConnStatus",!1)},_streamToServer:function(e){let t=this;this.track.label&&"live"==this.track.readyState||this._reestablishConnection(e),void 0!==this.track.kind&&(t.imageCapture=new ImageCapture(t.track),t.imageCapture.grabFrame().then((function(e){if(t.canvas.width=e.width,t.canvas.height=e.height,t.canvas.getContext("2d").drawImage(e,0,0),1==t._binaryDataSender.getConnectionStatus()?t.isBinaryChannelConnected=!0:t.isBinaryChannelConnected=!1,t.isBinaryChannelConnected){let e=t.canvas.toDataURL("image/jpeg").replace(/^data:image\/(png|jpeg);base64,/,""),i=window.atob(e),n=i.length,o=new Uint8Array(n);for(let e=0;e<n;++e)o[e]=i.charCodeAt(e);t._binaryDataSender.send(o.buffer)}else t.dataURI=t.canvas.toDataURL("image/jpeg").replace(/^data:image\/(png|jpeg);base64,/,""),t.messageService.publish("/webcam/getFrames",t.dataURI)})).catch((function(e){})).then((function(){}),(function(){})))},streamHandler:function(e){this.track=globalThis.stream.getVideoTracks()[0],this.track.label||this._reestablishConnection(e),1==this._binaryDataSender.getConnectionStatus()&&(this.isBinaryChannelConnected=!0),this.isBinaryChannelConnected||this._binaryDataSender.connect("WebcamBinaryChannel").then((function(){}),(function(){})),this.canvas=document.createElement("canvas"),this.streamInterval=setInterval(this._streamToServer.bind(this,e),100)},_reestablishConnection:function(e){this.selectedCameraName=e.data.Name,this._setConstraints(e),0===!Object.keys(this.track).length&&this.cleanupTrack(globalThis.stream),navigator.mediaDevices.getUserMedia(this.constraints).then((function(e){e.active&&(globalThis.stream=e)})),t.hitch(this,this._onError)},_setConstraints:function(e){this.constraints={video:{deviceId:{exact:e.data.UniqueID},height:e.data.Height,width:e.data.Width}}},closeConnectionHandler:function(){null!=this.video&&this.cleanupTrack(this.video.srcObject),null!=globalThis.stream&&this.cleanupTrack(globalThis.stream),this.track&&"function"==typeof this.track.stop&&this.track.stop(),clearInterval(this.streamInterval)},cleanupTrack:function(e){e.getVideoTracks().forEach((function(e){e.stop()}))},cleanUp:function(){null!=globalThis.stream&&this.cleanupTrack(globalThis.stream),clearInterval(this.streamInterval),this.closePreviewHandler(),this._binaryDataSender.disconnect()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(9014)],o=i.dj.d(n,(function(e,t){return t(e,"MOTW/l10n/nls/webcam",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={root:{PermissionDeniedError:"Webcam not detected because permissions were denied. Allow access to camera in browser settings.",MediaAPINotAvailable:"Webcam access is not supported in this browser. Use Google Chrome instead."}}},function(e,t,i){var n,o;n=[i(203),i(212),i(2204)],o=i.dj.d(n,(function(e,t,i){return e([],{ConnectionStatus:{none:0,connected:1,disconnected:2},constructor:function(e){this.messageService=e||MessageService.messageService,this._stream=null,this._connectionStatus=this.ConnectionStatus.none},connect:function(e){var n=new t,o=this;try{this._stream=i.createStream(e,this.messageService),this._stream.start(this._webSocketMessage,this).then((function(){o._connectionStatus=o.ConnectionStatus.connected}),(function(){o._connectionStatus=o.ConnectionStatus.none}))}catch(e){this._connectionStatus=this.ConnectionStatus.none}return n.resolve(),n},disconnect:function(){this._stream&&(this._stream.stop(),this._stream.isConnected()&&this._stream.flush(),this._connectionStatus=this.ConnectionStatus.disconnected)},send:function(e){this._stream.send(e).then((function(){}),(function(){}))},getConnectionStatus:function(){return this._stream&&this._stream._isConnected?this.ConnectionStatus.connected:this.ConnectionStatus.none}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(9017),i(9018)],o=i.dj.d(n,(function(e,t,i,n){"use strict";return e(null,{_clientId:null,_clientChannel:null,_started:!1,_msgService:null,_standalone:null,constructor:function(e,t){this._clientId=Math.floor(1e12*Math.random())+"",this._clientChannel="/glee2/web/"+this._clientId,this._msgService=e,this._standalone=t},start:function(){if(!this._started){var e=this;this._msgService.subscribe("/glee2/web",t.hitch(this,this._sendInitDdgClientMessage),this),this._msgService.subscribe(this._clientChannel,this._handleCreateMessage,this).then(t.hitch(this,this._sendInitDdgClientMessage)),i.addOnUnload((function(){e._msgService.publish("/glee2/web",{clientDestroyed:e._clientId})})),this._started=!0}},stop:function(){try{this._msgService.unsubscribe("/glee2/web",this._sendInitDdgClientMessage,this)}catch(e){console.log("Warning in WebDdgFactory::stop: Failed to unsubscribe from root channel")}try{this._msgService.unsubscribe(this._clientChannel,this._handleCreateMessage,this)}catch(e){console.log("Warning in WebDdgFactory::stop: Failed to unsubscribe from client channel")}},_handleCreateMessage:function(e){var t=e.data;new n(t,this._msgService,this._clientChannel,this._standalone)},_sendInitDdgClientMessage:function(){this._msgService.publish("/glee2/web",{clientReady:this._clientId}),this._started=!0}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(240),i(204),i(206)],o=i.dj.d(n,(function(e,t,i){var n=window,o={addOnWindowUnload:function(o,r){e.windowUnloaded||i(n,"unload",e.windowUnloaded=function(){}),i(n,"unload",t.hitch(o,r))},addOnUnload:function(e,o){i(n,"beforeunload",t.hitch(e,o))}};return e.addOnWindowUnload=o.addOnWindowUnload,e.addOnUnload=o.addOnUnload,o}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(228),i(210),i(211),i(213),i(223),i(206),i(225),i(245),i(428),i(215),i(1065),i(276),i(262),i(9019),i(9020),i(9022),i(9023),i(9025),i(241),i(9027),i(9028),i(9029),i(828)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E){var S="button",w="checkbox",I="combobox",A="edit",x="text",N="tabcontainer",L="tab",D="panel",M="groupbox",P=e([m,C],{}),O=e([b,C],{}),R=e(null,{_webDdgNode:null,_mainPanel:null,_stdButtonPanel:null,_dialogId:null,_msgService:null,_clientChannel:null,_dialogChannel:null,_widgets:null,_elements:null,_dialogWidget:null,_defaultAction:null,_explicitlySized:!1,_programmaticResizeGuard:null,constructor:function(t,i,n,o){function s(e){e.keyCode===a.ENTER&&c._defaultButton&&!c._defaultButton.get("disabled")&&(c._defaultButton.domNode.click(),e.stopPropagation())}this._widgets={},this._elements={},this._msgService=i,this._clientChannel=n;var c=this,d=null;try{d=V.call(this,t)}catch(e){}if(d&&d.spec&&d.node){var h=d.spec;if(this._webDdgNode=d.node,this._webDdgNode.scrollable=h.scrollable,"dialog"===Te(h)){this._dialogId=(h.id||Math.floor(1e12*Math.random()))+"",this._msgService=i,this._dialogChannel=n+"/"+this._dialogId;var p=e([u],{destroyed:!1,buildRendering:function(){this.domNode=c._webDdgNode},startup:function(){this.inherited(arguments),Object.keys(c._widgets).forEach((function(e){c._widgets[e].startup(),c._widgets[e].startupCalled=!0})),ae.call(c,c._webDdgNode)},destroy:function(){if(!this.destroyed){c._webDdgNode.removeEventListener("keydown",s,!0);try{c._msgService.unsubscribe(c._dialogChannel,F,c)}catch(e){c._reportError("Warning in DialogContents::destroy: Failed when unsubscribing from connector channel!",!1)}this.destroyed=!0}c._msgService.publish(c._clientChannel,{dialogDestroyed:c._dialogId}),this.inherited(arguments)},_handleResize:function(e){c._programmaticResizeGuard||(c._explicitlySized=!0),Object.keys(c._widgets).forEach((function(e){c._widgets[e].resize&&c._widgets[e].resize()})),c._webDdgNode.style.width=e.contentSize.w-40+"px",c._webDdgNode.style.height=e.contentSize.h-40+"px",ae.call(c,c._webDdgNode)}});if(de(h,"frameGeometry"))try{h.frameGeometry=JSON.parse(h.frameGeometry),h.left=h.frameGeometry[0]+"px",h.top=h.frameGeometry[1]+"px",h.width=h.frameGeometry[2]-h.frameGeometry[0]+"px",h.height=h.frameGeometry[3]-h.frameGeometry[1]+"px",this._explicitlySized=!0}catch(e){this._reportError("Error in constructor: Invalid frameGeometry! From JSON.parse: "+e.message,!0)}if(!h.height||!h.width){var g=ce.call(this,h);h.height=h.height||g.height+"px",h.width=h.width||g.width+"px"}var m={height:h.height,width:h.width,left:h.left||"150px",top:h.top||"100px"},_=new p;_.domNode.style["min-width"]=m.width,_.domNode.style["min-height"]=m.height,_.domNode.style.width=m.width,_.domNode.style.height=m.height,this._dialogWidget=f.createDialog({title:h.title,position:{x:parseInt(m.left),y:parseInt(m.top)},resizable:!0,content:_});var v=r.get(this._dialogWidget._contentArea,"width"),b=r.get(this._dialogWidget._contentArea,"height");r.set(_.domNode,"width",v+"px"),r.set(_.domNode,"height",b+"px");var y=this._dialogWidget.domNode;h.scrollable?y.style["min-width"]="200px":(y.style["min-height"]=y.clientHeight+"px",y.style["min-width"]=y.clientWidth+"px"),this._dialogWidget.domNode.addEventListener("keydown",s,!0),this._dialogWidget.on("resize",_._handleResize),this._msgService.subscribe(this._dialogChannel,F,this).then((function(){c._msgService.publish(c._dialogChannel,{dialogReady:c._dialogId})})),l(".webDdgElement",this._webDdgNode).some((function(e){if(-1!==[I,S,w,A].indexOf(e.ddgType)&&!e.classList.contains("webDdgDisabledElement")&&!e.classList.contains("webDdgHiddenElement")){var t=c._widgets[e.ddgId];if(t.focusNode&&!t.get("disabled")&&"none"!==r.get(t.domNode,"display"))return t.focusNode.focus(),!0}return!1}))}else this._reportError("Error in WebDdgDialog::constructor: Received webDdgSpec of unexpected type '"+h.type+"'! Currently only type 'dialog' is supported.")}else this._reportError("Error in WebDdgDialog::constructor: Failed to create dialog from JSON!")},_sendNotification:function(e){var t=[e];console.log("SENT: "+JSON.stringify(t)),this._msgService.publish(this._dialogChannel,t)},_reportError:function(e,t){console.error(e);var i=this._dialogChannel||this._clientChannel;if(this._msgService.publish(i,[{event:"error",value:e}]),t)throw new Error(e)}});function k(e,t,i,n){var o=t.ddgId,r=t.ddgType,a={id:o,event:e,type:r};switch(r){case S:a.id=n.tag,a.event=n.eventType,a.value="clicked";break;case w:a.id=n.tag,a.event=n.eventType,a.value=n.newValue;break;case I:a.id=n.tag,a.event=n.eventType,a.value=n.value,"onSelectionChange"===a.event&&(a.index=n.index);break;case A:a.id=n.tag,a.event=n.eventType,a.value=n.value;break;case N:a.oldIndex=n.oldIndex,a.newIndex=n.newIndex;break;default:this._reportError("Error in handleDojoEvent: Received a Dojo event with unexpected element type '"+r+"'!")}this._sendNotification(a)}function F(e){var t=this;try{var o="string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){return void this._reportError("Error in handleUpdateMessage: Received invalid JSON!")}o instanceof Array||(o=[o]),o.forEach((function(e){if(U.call(this,e),console.log(e),me(e))return"close"===e.command?void t._dialogWidget.close():void t._reportError("Error in handleUpdateMessage: Received updateMsg with unexpected command '"+e.command+"'!");var o=Te(e);if("messagebox"===o)return e.title=e.title||"",e.body=e.body||"",void y.displayAlertDialog(e.title,e.body);if("gridlayout"!==o){if(de(e,"msgType"))return"refresh"===e.msgType?void H.call(t,e):void t._reportError("Error in handleUpdateMessage: Received updateMsg with unexpected msgType '"+msgType+"'!");var r=Ce(e),a=t._elements[r];if(a){var s=a.ddgType;if(o===s){var l=re.call(t,a,r,s);switch(o){case w:de(e,"checked")&&l.set("checked",!!e.checked);break;case x:fe(e)&&l.set("text",e.text);break;case A:fe(e)&&l.set("value",e.text);break;case I:(ue(e)||fe(e))&&function(e,t){ue(t)&&t.currentindex>e.items.length&&this._reportError("Error in setComboBoxValue: currentindex is out of bounds for combobox with id '"+t.id+"'!",!0);if(e.editable){if(ue(t))e.set("value",t.currentindex.toString());else if(fe(t)){var i=e.items.filter((function(e){if(e.label===t.text)return e}));i?e.set("value",i[0].value):e.set("text",t.text)}}else ue(t)&&e.set("value",t.currentindex.toString())}(l,e);break;case N:if(ue(e)){var c=l.getChildren();e.currentindex>=c.length&&t._reportError("Error in handleUpdateMessage: Tab container's specified currentindex is out of bounds.",!0),l.selectChild(c[e.currentindex])}break;case S:case D:case L:case M:case"dialog":break;default:t._reportError("Error in handleUpdateMessage: Received updateMsg with unexpected type '"+o+"'!",!0)}pe(e)&&B.call(t,e.style,a),ge(e)&&(l.domNode?l.set("description",e.tooltip):i.set(l,"title",e.tooltip)),ye(e)&&("dialog"===o?n.toggle(t._dialogWidget.domNode,"webDdgHiddenElement",!e.visible):n.toggle(a,"webDdgHiddenElement",!e.visible)),he(e)&&ne.call(t,a,l,Ce(e),s,e.enable)}else t._reportError("Error in handleUpdateMessage: Type mismatch between updateType '"+o+"' and elementType '"+s+"' for id '"+r+"'!")}else t._reportError("Error in handleUpdateMessage: Failed to find WebDDG element for id '"+r+"'!")}}))}function B(e,t){var i=re.call(this,t,t.ddgId,t.ddgType);de(e,"backgroundColor")&&("rgb(255,245,225)"===e.backgroundColor||"#fff5e1"===e.backgroundColor?i.set("dirty",!0):i.set("dirty",!1))}function H(e){var t=this._elements[e.parentId],i=l(".webDdgMainPanel",t)[0];if(t&&i){var r=i.offsetHeight,a=i.offsetWidth,s=Math.max(0,this._webDdgNode.offsetHeight-(this._mainPanel.offsetHeight+this._stdButtonPanel.offsetHeight)),c=Math.max(0,this._webDdgNode.offsetWidth-(this._mainPanel.offsetWidth+this._stdButtonPanel.offsetWidth)),d=this,u=l("[data-webddg-id]",i);u.push(i),u.forEach((function(e){var t=d._widgets[e.ddgId];t&&(d._defaultButton===t&&(d._defaultButton=null),t.destroy(),delete d._widgets[e.ddgId]),o.destroy(e),delete d._elements[e.ddgId]}));var h=q.call(this,W.call(this,e));n.add(h,"webDdgMainPanel"),this._mainPanel=h,o.place(h,t,"first"),Object.keys(this._widgets).forEach((function(e){var t=d._widgets[e];t.startupCalled||t.startup()})),ae.call(d,d._webDdgNode);var p=h.offsetHeight-r,f=h.offsetWidth-a;if(this._programmaticResizeGuard=setTimeout((function(e){d._programmaticResizeGuard=null}),200),this._webDdgNode.style.minHeight=parseFloat(this._webDdgNode.style.minHeight)+p+"px",this._webDdgNode.style.minWidth=parseFloat(this._webDdgNode.style.minWidth)+f+"px",!this._explicitlySized||!this._webDdgNode.scrollable){var g=this._dialogWidget.domNode,m=this._webDdgNode,_=p+20<s,v=f+20<c;this._explicitlySized&&_||(g.style.height=parseFloat(g.style.height)+p+"px",m.style.height=parseFloat(m.style.height)+p+"px"),this._explicitlySized&&v||(g.style.width=parseFloat(g.style.width)+f+"px",m.style.width=parseFloat(m.style.width)+f+"px"),this._webDdgNode.scrollable||(this._explicitlySized&&_||(g.style.minHeight=parseFloat(g.style.minHeight)+p+"px",m.style.minHeight=parseFloat(m.style.minHeight)+p+"px"),this._explicitlySized&&v||(g.style.minWidth=parseFloat(g.style.minWidth)+f+"px",m.style.minWidth=parseFloat(m.style.minWidth)+f+"px"))}}else this._reportError("Error in replaceDialogElements: Failed to find WebDDG element for id '"+e.parentId+"' or failed to find webDdgMainPanel within!")}function V(e){var t={spec:null,node:null},i=W.call(this,e),n=z.call(this,i);return t.spec=i,t.node=n,t}function j(e){var t={};!function e(t,i){_e(t)&&Te(t).trim().toLowerCase()===x&&(t.visible=!1,i[t.buddy]=t.text),ve(t)&&t.contents.forEach((function(t){e(t,i)}))}(e,t),function e(t,i){i[Ce(t)]&&(t.label=i[Ce(t)],delete i[Ce(t)]),ve(t)&&t.contents.forEach((function(t){e(t,i)}))}(e,t),Object.keys(t).length&&this._reportError("Warning in buddyFixup: One or more buddies were specified but not found!'",!1)}function U(e){de(e,"id")&&(e.id=e.id.trim().toLowerCase()),function(e){return de(e,"type")}(e)&&(e.type=e.type.trim().toLowerCase()),me(e)&&(e.command=e.command.trim().toLowerCase()),function(e){return de(e,"meta")}(e)&&(e.meta=e.meta.trim().toLowerCase()),_e(e)&&(e.buddy=(e.buddy+"").trim().toLowerCase()),be(e)&&(e.label=e.label.replace(/&\b/g,"")),function(e){return de(e,"title")}(e)&&(e.title=e.title.replace(/&\b/g,"")),ge(e)&&(e.tooltip=e.tooltip.replace(/<\w>(.*?)<\/\w>/,"$1").replace(/&nbsp;/g," ")),ve(e)&&e.contents.forEach((function(e){U(e)}))}function W(e,t){var i={};try{i="string"==typeof e?JSON.parse(e):e}catch(e){return this._reportError("Error in parseAndValidateWebDdgSpec: Invalid WebDDG JSON! From JSON.parse: "+e.message,!0),null}return G.call(this,i,t),j.call(this,i),U.call(this,i),i}function G(e,t){var i=["buddy","contents","currentindex","defaultbutton","editable","enable","entries","frameGeometry","height","id","label","left","meta","scrollable","tooltip","style","text","title","top","type","visible","value","width","checked","checkable"],n=["msgType","parentId"],o=["colSpan","echomode","flat","layoutGrid","maxvisiblecount","name","placeholdertext","rowSpan","setMinimumHeight","setMinimumWidth","tabcount","version","windowicon","icon"],r=this;Object.keys(e).forEach((function(a){-1!==i.indexOf(a)||-1!==o.indexOf(a)||t||-1!==n.indexOf(a)||r._reportError("Warning in validateWebDdgSpec: Encountered unexpected tag '"+a+"'!"),"contents"===a&&e.contents.forEach((function(e){G.call(r,e)}))}))}function z(e){var t=o.create("div",{class:"webDdgFrame"});t.ddgId=e.id,t.ddgType="dialog",i.set(t,"data-webddg-id",e.id),this._elements[t.ddgId]=t;var r=e.contents,a=null,s=this;if(r.forEach((function(e){if("standardbuttonset"!==Ee(e)){var i=q.call(s,e);n.add(i,"webDdgMainPanel"),t.appendChild(i),s._mainPanel=i}else a=e})),a){var l=q.call(this,a);n.add(l,"webDdgStandardButtons"),t.appendChild(l),this._stdButtonPanel=l}return t}function q(e){var t,o=Te(e);switch(o){case S:t=ee.call(this,e);break;case w:t=te.call(this,e);break;case I:t=ie.call(this,e);break;case x:t=Z.call(this,e);break;case A:t=J.call(this,e);break;case L:t=Y.call(this,e);break;case D:t=Q.call(this,e);break;case M:t=$.call(this,e);break;case N:t=X.call(this,e);break;default:this._reportError("Error in createElement: Received elementSpec with unexpected type '"+e.type+"'!",!0)}var r=Ce(e);if(t.ddgId=r,t.ddgType=o,this._elements[t.ddgId]=t,i.set(t,"data-webddg-id",r),i.set(t,"data-webddg-type",o),pe(e)&&B.call(this,e.style,t),ge(e)){var a=re.call(this,t,r,o);a.domNode?(a.set("tooltip",e.tooltip),e.tooltip||a.domNode.removeAttribute("title")):i.set(a,"title",e.tooltip)}return ye(e)&&!e.visible&&n.toggle(t,"webDdgHiddenElement",!e.visible),he(e)&&ne.call(this,t,null,Ce(e),o,e.enable),t}function K(e){var t=this;return e.map((function(e){return q.call(t,e)}))}function X(e){var t=o.create("div",{class:"webDdgElement webDdgTabContainer"}),i=new h({doLayout:!1}),n=e.contents,r=e.currentindex;r&&r>=n.length&&this._reportError("Error in createTabContainer: Tab container's specified currentindex is out of bounds.",!0);var a=this;return n.forEach((function(e,t){if(Te(e)===L){var n=q.call(a,e);n.contentPane.ddgNode=n,r===t&&n.contentPane.set("selected",!0),i.addChild(n.contentPane)}else a._reportError("Error in createTabContainer: Tab containers should only include tabs.",!0)})),i.watch("selectedChildWidget",(function(e,n,o){var r=i.getChildren(),s=r.indexOf(n),c=r.indexOf(o),d=l(".webDdgTab",o.domNode)[0];d?ae.call(a,d):a._reportError("Error in handleTabSelection: Couldn't find webDdgTab within selected tab.",!0),k.call(a,"tabchanged",t,i,{oldIndex:s,newIndex:c})})),this._widgets[Ce(e)]=i,i.placeAt(t),t}function Y(e){var t=o.create("div",{class:"webDdgElement webDdgTab"});return K.call(this,e.contents).forEach((function(e){t.appendChild(e)})),t.contentPane=new p({title:e.name,content:t}),t}function Q(e){var t=o.create("div",{class:"webDdgElement webDdgPanel"});return K.call(this,e.contents).forEach((function(e){t.appendChild(e)})),t}function $(e){var t=o.create("div",{class:"webDdgElement webDdgGroup"});return e.title&&o.create("div",{class:"webDdgGroupTitle",textContent:e.title},t),e.description&&o.create("div",{class:"webDdgGroupContent",textContent:e.description},t),K.call(this,e.contents).forEach((function(e){t.appendChild(e)})),t}function J(e){var i=o.create("div",{class:"webDdgElement webDdgTextBox"});if(e.label){var n=o.create("span",{class:"webDdgLabel"},i),r=new _({text:e.label});r.placeAt(n),r.startup()}var a=new P({tag:e.id,value:e.text||"",placeholder:e.placeholder||"",height:18});return a.oldValue=a.get("value"),a.on("editfinish",t.hitch(this,k,"onEditFinish",i,a)),a.on("edit",t.hitch(this,k,"onEdit",i,a)),a.placeAt(i),this._widgets[Ce(e)]=a,i}function Z(e){var t=o.create("div",{class:"webDdgElement webDdgText "+(_e(e)?"webDdgStayHidden":"")}),i=new _({text:e.text});return i.placeAt(t),0===e.text.trim().length&&i.set("visible",!1),this._widgets[Ce(e)]=i,t}function ee(e){var i=o.create("div",{class:"webDdgElement webDdgButton"}),r=new v({tag:e.id,text:e.label||""});return e.defaultbutton&&(n.add(i,"webDdgDefaultButton"),this._defaultButton=r),r.on("clicked",t.hitch(this,k,"clicked",i,r)),r.placeAt(i),this._widgets[Ce(e)]=r,i}function te(e){var i=o.create("div",{class:"webDdgElement webDdgCheckbox"}),n=new g({tag:e.id,checked:e.checked,text:e.label||"",dirtyhilite:!0});return n.on("toggle",t.hitch(this,k,"onToggle",i,n)),n.placeAt(i),this._widgets[Ce(e)]=n,i}function ie(e){var i=o.create("div",{class:"webDdgElement webDdgComboBox"});if(e.label){var n=o.create("span",{class:"webDdgLabel"},i),r=new _({text:e.label});r.placeAt(n),r.startup()}var a=e.entries.map((function(e,t){return{value:t.toString(),label:e}})),s=null,l=null;ue(e)&&(s=e.currentindex.toString(),e.currentindex>a.length&&this._reportError("Error in setComboBoxValue: currentindex is out of bounds for combobox with id '"+e.id+"'!",!0)),e.editable&&fe(e)&&(l=e.text);var c=new O({tag:e.id,items:a,editable:e.editable,width:"auto",height:20,value:s,text:l});return c.on("selectionchange",t.hitch(this,k,"onSelectionChange",i,c)),e.editable&&(c.on("editfinish",t.hitch(this,k,"onEditFinish",i,c)),c.on("edit",t.hitch(this,k,"onEdit",i,c))),c.placeAt(i),this._widgets[Ce(e)]=c,i}function ne(e,t,i,o,r,a){a=a||e,t||(t=re.call(this,e,i,o)),t.disabledBy=t.disabledBy||[];var s=t.disabledBy.indexOf(a);r&&-1!==s?t.disabledBy=t.disabledBy.filter((function(e){return e!==a})):r||-1!==s||t.disabledBy.push(a);var l=!(r&&!t.disabledBy.length);switch(o){case w:case A:case S:case I:case x:break;case L:case D:case M:var c=[].slice.call(e.children).filter((function(e){return e.ddgId}));oe.call(this,c,r,a);break;case N:var d=t.getChildren().map((function(e){return e.ddgNode}));oe.call(this,d,r,a);break;default:return void this._reportError("Error in setEnabled: Attempted to enable/disable an element of unexpected type '"+o+"' with id '"+i+"'!",!0)}t.domNode&&t.set("disabled",l),n.toggle(e,"webDdgDisabledElement",l)}function oe(e,t,i){var n=this;e.forEach((function(e){ne.call(n,e,null,e.ddgId,e.ddgType,t,i)}))}function re(e,t,i){var n=null;switch(i){case A:case w:case S:case I:case x:case N:n=this._widgets[t];break;case L:n=e.contentPane;break;case"dialog":case D:case M:n=e;break;default:this._reportError("Error in getPrimaryElement: Don't know how to extract primary element for element of type '"+i+"'!",!0)}return n}function ae(e){var t=this,i=e.clientWidth-(e.ddgType===M?15:0);if(i){var o=l(e).children().filter((function(e){return n.contains(e,"webDdgElement")}));if(e.ddgType===N){var a=t._widgets[e.ddgId];o=l(".dijitVisible .webDdgTab",a.containerNode)}var s=function(e){var t=e.children().filter((function(e){return n.contains(e,"webDdgLabel")})),i=0;return t.forEach((function(e){r.set(e,"width",""),i=Math.max(i,e.offsetWidth)})),i}(o)+5;o.forEach((function(e){if(function(e){return-1!==[M,D,N,L].indexOf(e.ddgType)}(e))ae.call(t,e);else{var o=e.ddgType;if(-1===[S,x].indexOf(o)){var a=i,d=null,u=l(".webDdgLabel",e)[0];u?(a-=s+5,r.set(u,{width:s+"px"}),d=u.nextSibling):d=e.firstChild,n.contains(d,"dijitSelect")&&(a+=c("chrome")?1:-1),r.set(d,{width:a+"px"});var h=e.ddgId,p=t._widgets[h];p&&p.resize&&p.resize()}}}))}}var se=null;function le(e){return se||(se=o.create("div",{class:"webDdgWidthEstimationDiv"},document.body)),i.set(se,"textContent",e),se.clientWidth+15}function ce(e){var t=this,i=0,n=0,o=null;if(ye(e)&&!e.visible)return{height:i,width:n};var r=Te(e);switch(r){case"dialog":n=Math.max(n,le(e.title)+30),i=50,e.contents.forEach((function(e){o=ce.call(t,e),i+=o.height,n=Math.max(n,o.width)}));break;case S:i=23,n=le(e.label)+50;break;case w:i=23,n=25;break;case I:i=23;var a=0;e.entries.forEach((function(e){a=Math.max(a,le(e))})),n=Math.min(250,a)+60;break;case A:i=23,n=50,fe(e)&&(n=Math.max(n,le(e.text)+25),n=Math.min(n,300));break;case M:case D:case L:if(r===D&&"standardbuttonset"===Ee(e)){e.contents.forEach((function(e){ye(e)&&!e.visible||(o=ce.call(t,e),i=Math.max(i,o.height),n+=o.width)}));break}var s=0;if(e.contents.forEach((function(e){be(e)&&(s=Math.max(s,le(e.label))),o=ce.call(t,e),i+=o.height,n=Math.max(n,o.width)})),n+=s,r===M){i+=40}break;case N:e.contents.forEach((function(e){o=ce.call(t,e),i=Math.max(i,o.height),n=Math.max(n,o.width)})),i+=60;break;case x:i=17,n=le(e.text);break;default:this._reportError("Error in estimateMinimumGeometry: Asked to estimate the geometry of an element of unexpected type '"+r+"'!",!0)}return{height:i,width:n}}function de(e,t){return void 0!==e[t]}function ue(e){return de(e,"currentindex")&&-1!==e.currentindex}function he(e){return de(e,"enable")}function pe(e){return de(e,"style")}function fe(e){return de(e,"text")}function ge(e){return de(e,"tooltip")}function me(e){return de(e,"command")}function _e(e){return de(e,"buddy")}function ve(e){return de(e,"contents")}function be(e){return de(e,"label")}function ye(e){return de(e,"visible")}function Ce(e){return e.id}function Te(e){return e.type}function Ee(e){return e.meta}return R}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(308),i(1026),i(1684),i(2715),i(1027),i(2716)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t,i,n,o,r,a],{checkable:!0,dirtyhilite:!1})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(258),i(1026),i(1684),i(1027),i(9021),i(2717),i(2718),i(2719)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([t,i,n,o,r,a,s,l],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e(null,{echomode:"normal",_setEchomodeAttr:function(e){if("string"!=typeof e)throw new Error("Echomode property expects a 'string'!");if("normal"!==e&&"password"!==e)throw new Error("Echomode property expects the value to be 'normal' or 'password'!");this._set("echomode",e),"password"===e?this.inputNode.setAttribute("type","password"):this.inputNode.setAttribute("type","text")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(269),i(1026),i(1027)],o=i.dj.d(n,(function(e,t,i,n){return e([t,i,n],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(446),i(1026),i(2715),i(1027),i(9024),i(2716)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([t,i,n,o,r,a],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{postCreate:function(){this.inherited(arguments),this.own(this.on("click",t.hitch(this,(function(e){this.emit("clicked",{eventType:"onClick",tag:this.get("tag")})}))))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(286),i(1026),i(1684),i(1027),i(2717),i(2718),i(2719),i(9026)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([t,i,n,o,r,a,s,l],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204)],o=i.dj.d(n,(function(e,t){return e(null,{postCreate:function(){this.inherited(arguments),this.own(this.on("change",t.hitch(this,(function(e){var t=this._getSelectedItemFromValue(e.mwEventData.newValue);if(t){this.editable&&this.set("dirty",!0);var i={eventType:"onSelectionChange",tag:this.get("tag"),value:t.label,index:t.index};this.emit("selectionchange",i)}}))))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206)],o=i.dj.d(n,(function(e,t){return e([],{startup:function(){this.inherited(arguments),this.own(t(this.inputNode,"focus",(function(){this.select()})))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(223),i(225),i(2652)],o=i.dj.d(n,(function(e,t,i,n,o){return e([o],{_selectLabelContainer:null,startup:function(){this.inherited(arguments),t.add(this.dropDown.domNode,"webDdgSelectPopup"),this._selectLabelContainer=n(".dijitButtonContents",this.domNode)[0];var e=n(".dijitButtonText",this.domNode)[0];e.style.width=this._selectLabelContainer.offsetWidth+"px",this._stopClickEvents=!1},resize:function(){this.inherited(arguments);var e=n(".dijitButtonText",this.domNode)[0];e.style.width="0px",e.style.width=this._selectLabelContainer.offsetWidth+"px"}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(206),i(243)],o=i.dj.d(n,(function(e,t,i){return e([i],{click:function(){this.domNode.click()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(206),i(645)],o=i.dj.d(n,(function(e,t,i,n,o){return e([],{constructor:function(e){this.workerReady=e.workerReady,this.actionService=e.actionService,this.reValidateRunActions()},reValidateRunActions:function(){this._updateLiveEditorRunActions(!1),this.workerReady.then(function(){this._updateLiveEditorRunActions(!0)}.bind(this))},_updateLiveEditorRunActions:function(e){[o.RUN_ALL,o.RUN_SECTION,o.RUN_AND_ADVANCE,o.RUN_TO_END].forEach((function(t){this.actionService.updateAction(t,{enabled:e})}),this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(843),i(534),i(203),i(210),i(206),i(223),i(204),i(1561),i(9032),i(9038),i(9041),i(2720),i(1195),i(278),i(219),i(468),i(1028),i(9046)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_){const v=h.Files;var b=i("desktop_workspacebrowser.WorkspaceBrowserMain",[c],{layoutService:null,uiContainer:null,clientManager:null,DRAG_FLAVOR:"workspace",constructor:function(e){p.logDebug("WSB: Constructor"),this.layoutService=null,this.uiContainer=null,this.clientManager=null,this.currentVariables=[],this.contextManagerInstance=e?e.contextManagerInstance:null,this.contextUpdateChannel="/ML/WorkspaceBrowser/ContextUpdate",this.defaultContextId="workspace",this.contextId="WorkspaceBrowser",this._initRegistry(),e&&this.initArgs(e),this._intialArgs=e,f.start(),f.subscribe("/DesktopWSB",this._handleMessageServiceEvent,this)},initArgs:function(t){p.logDebug("WSB: initialize arguments");var i,n=this;e.setContextManager("/WorkspaceBrowser",t.contextManagerInstance),this.clientDataProvider=new l({settingsService:t.settingsService}),this.layoutService=t.layoutService,this.uiContainer=t.uiContainer,this.clientDataProvider.getData().then((function(e){i=e,n.clientDataProvider.getMetaDataAndSize().then((function(e){n.init(t,i,e.metaData,e.size)}))}))},init:function(e,t,i,n){var o={executionService:e.executionService,fileDataService:e.fileDataService,workspace:"debug",channel:"/WorkspaceBrowser",editable:!0,cssSpecifier:"mw_type_WorkspaceBrowser",fixedColumnWidths:!1,ignoreUpdates:!1,requestFocusOnStart:!1,contextAppID:this.defaultContextId,dataTagRoot:"motw.datatools.workspacebrowser",selectionTimeoutLimit:0,contextUpdateChannel:this.contextUpdateChannel,data:t,metaData:i,contextType:"secondaryContext",containerType:"struct"};this.clientManager=u.createWorkspaceBrowser(o),this.clientManager.addEventListener("variableAdded",function(e){var t=e.data.peerDoc;if(p.logDebug("WSB: Document Added"),!this._widgetAdded){this._updateDomAttributes(t),this.addWidget(t),t.addEventListener("viewRemoved",(function(e){p.logDebug("WSB: View Removed")})),t.domNode.addEventListener("keydown",(function(e){e.which===r.TAB&&e.preventDefault()}));var i=t.getViews();i.length>0?this._handleViewCreated(t,{data:{viewModel:i[0]}}):t.addEventListener("viewCreated",this._handleViewCreated.bind(this,t)),this._initContextManager(),this.initDnd({dropTarget:".DesktopWorkspaceBrowser",acceptedFlavor:v,dropCallback:this._handleFileDrop.bind(this)}),this._widgetAdded=!0}}.bind(this)),this.clientManager.addEventListener("variableRemoved",function(e){p.logDebug("WSB: Document Removed"),this.removeWidget(e.data.peerDoc)}.bind(this));var a=Object.assign(o,{varName:"who",varType:"struct",rows:n?n[0]:void 0,columns:n?n[1]:void 0,viewID:"__1",userContext:"MOTW_Workspace",dragFlavor:this.DRAG_FLAVOR});this.clientManager.openDocument("who",a)},_updateDomAttributes:function(e){n.add(e.domNode,["workspacebrowser_motw","DesktopWorkspaceBrowser"]),e.domNode.setAttribute("data-tag","datatools.workspacebrowser.document."+e.varName)},_initRegistry:function(){t.registerWidgetJSONFile("MOTWWorkspaceWidgetRegistryDefaults",_)},_handleViewCreated:function(e,t){e.parentViewToDocument(t.data.viewModel),o.emit(e.domNode,"startup",{bubbles:!1,cancelable:!0}),g.mark("wbFirstPaint"),g.measure("WorkspaceBrowser","wbStart","wbFirstPaint"),this.toggleBusyOnPanel(!1)},_initContextManager:function(){!this.contextUpdateManager&&this.contextManagerInstance&&(this.contextUpdateManager=new s({defaultContextId:this.defaultContextId,contextId:this.contextId,contextUpdateChannel:this.contextUpdateChannel,managerChannel:"/WorkspaceBrowser",contextManagerInstance:this.contextManagerInstance,contextType:"secondaryContext"}))},start:function(){d.start()},stop:function(){this.clientManager.stop()},toggleBusyOnPanel:function(e){this.uiContainer.getChildProperties("workspace").set("isBusy",e)},addWidget:function(e){this.layoutService.addWidget("workspace","workspace",e),this.toggleBusyOnPanel(!0),f.publish("/DesktopWSB",{type:"EnableWorkspaceListeners"})},_handleMessageServiceEvent:function(e){e&&e.data&&e.data.type&&("HideWorkspaceBrowser"===e.data.type?this.removeWidget():"ShowWorkspaceBrowser"!==e.data.type||this._widgetAdded||this.initArgs(this._intialArgs))},showWidget:function(e){this.layoutService.showWidget("workspace")},removeWidget:function(e){this.layoutService.removeWidget("workspace"),this._widgetAdded=!1,f.publish("/DesktopWSB",{type:"PauseWorkspaceListeners"})},getVariables:function(){return this.currentVariables},onStackChanged:function(e,t){var i="";e.length>0&&t<e.length&&e[t].getName&&(i=e[t].getName());for(var n=this.uiContainer.getPanels(),o=0;o<n.length;o+=1)if("workspace"===n[o].properties.panelId){0===i.length||"Base"===i?n[o].properties.set("title",m.title):n[o].properties.set("title",m.title+" - "+i),n[o].properties.set("shortTitle",m.title);break}}});return b.getInstance=function(e){return b._instance||(b._instance=new b(e)),b._instance},{getInstance:b.getInstance}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(244),i(1028),i(9037)],o=i.dj.d(n,(function(e,t,i,n,o){var r=["matlab","desktop","workspace","columns"];return e("desktop_workspacebrowser.WorkspaceClientDataProvider",[o],{constructor:function(e){this._settingsService=e.settingsService},getData:function(){var e=new t({});return e.resolve([]),e},getMetaDataAndSize:function(){var e=[],o=new t({}),a=[0,void 0],s=this;return i([this._settingsService.getSetting(r,"ColumnsShown"),this._settingsService.getSetting(r,"ColumnOrder"),this._settingsService.getSetting(r,"ColumnWidths")]).then((function(t){var i=s._findColumnSetting(t,"ColumnsShown"),r=s._findColumnSetting(t,"ColumnOrder"),l=s._findColumnSetting(t,"ColumnWidths");i.forEach((function(t,i){var o=r.indexOf(t);e[e.length]={__index:o,HeaderName:n[t],ColumnWidth:l[o]}})),e.sort((function(e,t){return e.__index-t.__index})).forEach((function(e,t){e.ColumnNumber=t+1,delete e.__index})),a[1]=e.length,o.resolve({metaData:{columnMetadata:e},size:a})})),o},_findColumnSetting:function(e,t){return e.find((function(e){return e.setting===t})).value},getSize:function(){var e=new t({});return e.resolve([0,4]),e}})}),e,t),e.exports=o},function(e,t,i){e.exports={title:"ワークスペース",Name:"名前",Value:"値",Size:"サイズ",Class:"クラス",Min:"最小値",Max:"最大値",Range:"範囲",Mean:"平均",Median:"中央値",Mode:"最頻値",Var:"分散",Std:"標準偏差",Bytes:"バイト",waitingForServerResponse:"アップロードを完了中...",unsupportedEmptyUpload:"フォルダーまたは空のファイルからインポートすることはできません",unsupportedLargeUpload:'"${0}" のファイル サイズが 16 Mb 未満であることを確認してください',uploadDialogTitle:"ファイルのアップロード",uploadFinished:"${0} 個のファイルをアップロードしました",uploadFailed:"[現在のフォルダー] にアップロードできませんでした。十分な権限があることを確認してください。",uploadingFiles:"${0} 個のファイルをアップロード中...",importWizardWarning:"インポート ウィザードでは、一度に 1 つのファイルのみを開くことができます",importWizardWarningContent:"情報",errorDialogTitle:"アップロード エラー",workspaceBrowserPrintTitle:"MATLAB ワークスペース"}},function(e,t,i){e.exports={title:"工作区",Name:"名称",Value:"值",Size:"大小",Class:"类",Min:"最小值",Max:"最大值",Range:"极差",Mean:"均值",Median:"中位数",Mode:"众数",Var:"方差",Std:"标准差",Bytes:"字节",waitingForServerResponse:"正在完成上传...",unsupportedEmptyUpload:"无法从文件夹或空文件导入",unsupportedLargeUpload:'请检查 "${0}" 的文件大小是否小于 16Mb',uploadDialogTitle:"上传文件",uploadFinished:"已上传了 ${0} 个文件",uploadFailed:"未能上传到当前文件夹。请确保您拥有足够的权限。",uploadingFiles:"正在上传 ${0} 个文件...",importWizardWarning:"导入向导一次只能打开一个文件",importWizardWarningContent:"信息",errorDialogTitle:"上传错误",workspaceBrowserPrintTitle:"MATLAB 工作区"}},function(e,t,i){e.exports={title:"작업 공간",Name:"이름",Value:"값",Size:"크기",Class:"클래스",Min:"최솟값",Max:"최댓값",Range:"범위",Mean:"평균",Median:"중앙값",Mode:"최빈값",Var:"분산",Std:"표준편차",Bytes:"바이트",waitingForServerResponse:"업로드를 완료하는 중...",unsupportedEmptyUpload:"폴더나 빈 파일에서는 가져올 수 없음",unsupportedLargeUpload:'"${0}"의 파일 크기가 16Mb보다 작은지 확인하십시오.',uploadDialogTitle:"파일 업로드",uploadFinished:"${0}개 파일이 업로드됨",uploadFailed:"현재 폴더에 업로드하지 못했습니다. 충분한 권한이 있는지 확인하십시오.",uploadingFiles:"${0}개의 파일을 업로드하는 중...",importWizardWarning:"가져오기 마법사로는 한 번에 한 파일만 열 수 있음",importWizardWarningContent:"정보",errorDialogTitle:"업로드 오류",workspaceBrowserPrintTitle:"MATLAB 작업 공간"}},function(e,t,i){e.exports={root:{title:"Workspace",Name:"Name",Value:"Value",Size:"Size",Class:"Class",Min:"Min",Max:"Max",Range:"Range",Mean:"Mean",Median:"Median",Mode:"Mode",Var:"Var",Std:"Std",Bytes:"Bytes",waitingForServerResponse:"Completing upload...",unsupportedEmptyUpload:"Cannot import from a folder or an empty file",unsupportedLargeUpload:'Please check that the file size of "${0}" is less than 16Mb',uploadDialogTitle:"Upload Files",uploadFinished:"Uploaded ${0} file(s)",uploadFailed:"Upload failed to the Current Folder. Please ensure that you have sufficient permissions.",uploadingFiles:"Uploading ${0} file(s)...",importWizardWarning:"Only one file can be opened by the Import Wizard at a time",importWizardWarningContent:"Information",errorDialogTitle:"Upload Error",workspaceBrowserPrintTitle:"MATLAB Workspace"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e("variableeditor_client.ClientDataProvider",[],{getData:function(){throw new Error("Need to overwrite getData in DataProvider Implementation")},getMetaData:function(){throw new Error("Need to overwrite getMetaData in DataProvider Implementation")},getSize:function(){throw new Error("Need to overwrite getSize in DataProvider Implementation")}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(235),i(1647),i(1195),i(9039),i(203),i(236),i(233),i(232),i(1028)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return o([],{DROP_ZONE_CLASS:"WSBDropZone",LOAD_COMMAND:"load",IMPORT_COMMAND:"uiimport",UPLOAD_WIDGET_ID:"uploadWidget",LAYOUT_ID:"newDialog",MAT_FILE_EXTN:"mat",constructor:function(e){e=e||{},this.layoutService=e.layoutService,this.executionService=e.executionService,this.fileDataService=e.fileDataService,this.connectorUpload=!1},initDnd:function({dropTarget:e,acceptedFlavor:i,dropCallback:n}){var o=this;this.dndProvider=new t({dragDropTargetConfig:{dropTarget:e,acceptedFlavor:i,allowGlobal:!0,customTargetEnterHandler:function(e,t){return t===i&&e.classList.add(o.DROP_ZONE_CLASS),!0},customTargetLeaveHandler:function(e,t){t===i&&e.classList.remove(o.DROP_ZONE_CLASS)},customTargetDropHandler:function(e,t,r){r===i&&t.classList.remove(o.DROP_ZONE_CLASS),n&&n(e)}}}),this.dndProvider.startup()},_handleFileDrop:function(e){var t=e.files;t.length>0&&(s.getEndPoint().indexOf("localhost")>-1&&(this.connectorUpload=!0),this.handleUpload(t))},handleUpload:function(e){var t=this.getUnsupportedFileInfo(e);if(t.emptyFileOrFolder)this._displayDialog(l.unsupportedEmptyUpload);else if(!this.connectorUpload&&t.largeFile)this._displayDialog(l.unsupportedLargeUpload,t.largeFileName);else if(this.unsupportedUpload(e))this._displayDialog(l.importWizardWarning);else{this.dropFilePath=a.pathFromFileInfo(this.fileDataService.getCurrentFolderInfo());var i={fileList:e,dropFilePath:this.dropFilePath};this.uploadFilesWidget=new n(i),this.uploadFilesWidget.onuploadSuccess=this.uploadFiles.bind(this,e),this.uploadFilesWidget.onClose=this.removeFromLayout.bind(this),this.addToLayout()}},addToLayout:function(){this.layoutService.addWidget(this.UPLOAD_WIDGET_ID,this.LAYOUT_ID,this.uploadFilesWidget,{title:l.uploadDialogTitle})},removeFromLayout:function(){this.layoutService.removeWidget(this.UPLOAD_WIDGET_ID,this.LAYOUT_ID,this.uploadFilesWidget,{title:l.uploadDialogTitle})},_displayDialog:function(t,i){t=i?r.substitute(t,[i]):t,e.displayErrorMessage(t,l.errorDialogTitle,"info")},unsupportedUpload:function(e){return e.length>1&&!this.isMATFileList(e)},getUnsupportedFileInfo:function(e){for(var t={},i=0;i<e.length;i++){var n=e[i].size;if(0===n||!e[i].type&&n%4096==0)return t.emptyFileOrFolder=!0,t;if(n>268435456)return t.largeFile=!0,t.largeFileName=e[i].name,t}return t},isMATFileList:function(e){for(var t=0;t<e.length;t++){if(e[t].name.split(".").pop()!==this.MAT_FILE_EXTN)return!1}return!0},executeCommand:function(e,t){for(var i=t,n=0;n<e.length;n++)t=i+"('"+this.dropFilePath+"/"+e[n].name+"')",this.connectorUpload&&(t=i+"([pwd '\\' '"+e[n].name+"'])"),this.executionService.executionEval(t)},uploadFiles:function(e){if(this.removeFromLayout(),this.executionService){var t=1!==e.length||this.isMATFileList(e)?this.LOAD_COMMAND:this.IMPORT_COMMAND;this.executeCommand(e,t)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(203),i(206),i(1028),i(9040),i(209),i(232)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return n([t,e,i],{templateString:a,constructor:function(e){e=e||{},this.fileList=e.fileList,this.dropFilePath=e.dropFilePath},postCreate:function(){var e=this,t=function(t){e.message.textContent=t};l.upload(this.fileList,this.dropFilePath).then((function(i){200===i.status&&i.response.indexOf("SUCCESS")>-1?o.emit(e,"uploadSuccess"):t(r.uploadFailed)}),(function(e){e&&s.error(e),t(r.uploadFailed)}),(function(i){var n=Math.round(100*i.loaded/i.total);e.progressBar.style.width=n+"%",100===n&&t(r.waitingForServerResponse)}))}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="filesUpload">\n\n <div class="uploadMessage" data-dojo-attach-point="message"></div>\n <iframe class="iframe" data-dojo-attach-point="iframe"></iframe>\n\n <div class="filesUploadProgressBar" data-dojo-attach-point="progressBarContainer">\n <div class="uploadProgressBar" data-dojo-attach-point="progressBar"></div>\n </div>\n\n</div>'},function(e,t,i){var n,o;n=[i(9042),i(9044),i(278),i(256)],o=i.dj.d(n,(function(e,t,i,n){var o,r={},a=[],s=!1,l=0;function c(){return o||(o=new t({channel:"/WorkspaceBrowserManager"}),r[o.channel]=o,o.manager.addEventListener("rootSet",(function(e){i.logDebug("WSB: Factory Root Set");var t=e.target,o=t.getProperty("Debug");void 0!==o&&i.setDebug(o.Debug),t.addEventListener("propertySet",(function(e){e.data&&e.data.key&&"Managers"===e.data.key?i.logDebug("WSB: Factory Managers Updated"):e.data&&e.data.key&&"Debug"===e.data.key&&i.setDebug(e.data.newValue.Debug)})),t.addEventListener("peerEvent",(function(e){e.data.type&&"FactoryInitialized"===e.data.type?(i.logDebug("WSB: Factory Initialized"),d()):e.data.type&&"WorkspaceBrowserCreated"===e.data.type?e.data.Channel&&r[e.data.Channel]&&r[e.data.Channel].start&&r[e.data.Channel].autoStart&&(r[e.data.Channel].start(),i.logDebug("WSB: Factory Auto Starting Manager ("+e.data.Channel+")")):e.data.type&&"log"===e.data.type&&e.data.message&&i.logDebug("WSB: Server Log ("+e.data.message+")")})),n.subscribe("variableeditor/isDebug",(function(e){var i=t.getProperty("Debug");e&&void 0!==e.Debug&&i&&e.Debug!==i.Debug&&t.setProperty("Debug",{Debug:e.Debug,Source:"client"})})),t&&t.getProperty("Initialized")&&t.getProperty("Initialized").Initialized&&d()}))),o}function d(){o&&o.getRoot()&&(a.forEach((function(e,t,n){var r=o.getRoot();i.logDebug("WSB: Factory Create WSB From Queue ("+e.channel+")"),r.dispatchEvent("peerEvent",r,e)})),a=[])}function u(e){if(!e)return null;var i=c();return e.manager&&(i=e.manager),function(e,t,i,n){n||(n=c());let o=n.manager.getRoot(),r={type:"CreateWorkspaceBrowser",workspace:e,channel:t,userContext:i};o?o.dispatchEvent("peerEvent",o,r):a.push(r)}(e.workspace,e.channel,e.userContext,i),new t(e)}function h(e){return c(),e.channel||(l+=1,e.channel="/CWSB_"+l),e.workspace||(e.workspace="debug"),void 0===e.editable&&(e.editable=!0),void 0===e.fixedColumnWidths&&(e.fixedColumnWidths=!1),void 0===e.ignoreUpdates&&(e.ignoreUpdates=!1),void 0===e.requestFocusOnStart&&(e.requestFocusOnStart=!1),e.cssSpecifier=e.cssSpecifier||"mw_type_WorkspaceBrowser",e.dataTagRoot=e.dataTagRoot||"motw.datatools.workspacebrowser",r&&r[e.channel]&&!e.forceNewManager||(r[e.channel]=u(e)),r[e.channel]}function p(e){e&&!e.isError&&(s=!0,d())}return{createManager:h,createWorkspaceBrowser:h,deleteWorkspaceBrowser:function(e){if(!e&&e.channel)return null;var t=c();!function(e,t,i,n){n||(n=c());let o=n.manager.getRoot(),r={type:"DeleteWorkspaceBrowser",workspace:e,channel:t,userContext:i};o?o.dispatchEvent("peerEvent",o,r):a.push(r)}(e.workspace,e.channel,e.allArgs.userContext,t),r[e.channel]=null},start:function(e){e?i.runFactoryInitInMATLAB("internal.matlab.desktop_workspacebrowser.MF0ViewModelWorkspaceBrowserFactory.getInstance()",p):s=!0,c()},isStarted:function(){return s}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(9043)],o=i.dj.d(n,(function(e){return e("desktop_workspacebrowser.ViewManifest",[],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(595),i(278),i(744),i(2354),i(1028)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("desktop_workspacebrowser.RemoteWorkspaceBrowserViewModel",[o],{printTitle:r.workspaceBrowserPrintTitle,_data_test_id:"WorkspaceBrowser",_getTableConstructorArgs:function(e){let t=this.inherited(arguments);return t.fitToContainer=!0,t.showLoadingIndicator=!1,t},_createMixedDataStore:function(e,n,o,r){if(i.isValid(o)&&i.isValid(r)){const e=t.range().setRows(0,o-1).setColumns(0,r-1);n.setSize(e,e)}return this.inherited(arguments)},getViewType:function(){return""},getContextAttributes:function(){var e=this.inherited(arguments),t=this.getSelection();if(t&&1===t.length&&t[0].rows.start===t[0].rows.end&&t[0].columns.count===1/0){var i=this.getDataStore(),n=t[0].rows.start,o=JSON.parse(i.getLocalCellData(n,0,!0)).class,r=Array.isArray(e)?e:[e];e=e?r.concat(o):[].concat(o)}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(302),i(204),i(210),i(630),i(1200),i(278),i(209)],o=i.dj.d(n,(function(e,t,n,o,r,a,s,l){return e("desktop_workspacebrowser.WorkspaceBrowserManager",[a],{_WSB_DOC_CLASS:"WorkspaceBrowserDocument",OPEN_VARIABLE_ACTION:"OpenVariableAction",__destroyed:!1,constructor:function(e){this.allArgs=e},_init:function(){this.inherited(arguments),this.channel="/WorkspaceBrowserManager",this.editable=!0,this.cssSpecifier="mw_type_WorkspaceBrowser",this.workspace="debug",this.fixedColumnWidths=!1,this.ignoreUpdates=!1,this.requestFocusOnStart=!1,this.cssSpecifier="mw_type_WorkspaceBrowser",this.dataTagRoot="motw.datatools.workspacebrowser",this.workspaceDocument=null,this.useJsDragDrop=!0,this.defaultContextId="workspace",this.allArgs&&(this.channel=this.allArgs.channel||"/WorkspaceBrowserManager",this.contextId=this.allArgs.contextId="WorkspaceBrowser",this.workspace=this.allArgs.workspace||"debug",void 0===this.allArgs.editable?this.editable=!0:this.editable=this.allArgs.editable,void 0===this.allArgs.ignoreUpdates?this.ignoreUpdates=!1:this.ignoreUpdates=this.allArgs.ignoreUpdates,this.cssSpecifier=this.allArgs.cssSpecifier||"mw_type_WorkspaceBrowser",this.dataTagRoot=this.allArgs.dataTagRoot||"motw.datatools.workspacebrowser",this.cssSpecifier=this.allArgs.cssSpecifier||"mw_type_WorkspaceBrowser",void 0===this.allArgs.autoStart?this.autoStart=!0:this.autoStart=this.allArgs.autoStart,void 0===this.allArgs.fixedColumnWidths?this.fixedColumnWidths=!1:this.fixedColumnWidths=this.allArgs.fixedColumnWidths,void 0===this.allArgs.requestFocusOnStart?this.requestFocusOnStart=!1:this.requestFocusOnStart=this.allArgs.requestFocusOnStart),this.allArgs.showSummaryBar=!1,this.topicBase="/ML/"+this.channel,this.allArgs.topicBase=this.topicBase;var e=this.channel,t=r.CPPMF0ViewModel;this.manager=t.getViewModelManager(e),this.peerDocuments=[],this.variableListeners=[],this.hasFocus=!1,this.focusedDocument=null,this.managerListeners=[],this._setupListeners()},_setupListeners:function(){var e=this;this.addEventListener("variableAdded",(function(t){var i=t.data.peerDoc;e.workspaceDocument=i,s.logDebug("WSBManager: Document Added"),i.addEventListener("viewAdded",(function(t){s.logDebug("WSBManager: View Added");var i=t.data.document,n=t.data.viewModel;e.view=n,e.dispatchEvent("workspaceReady",i.domNode,{workspaceBrowser:e,widget:i,view:n})})),i.addEventListener("viewRemoved",(function(e){s.logDebug("WSBManager: View Removed")}))})),this.addEventListener("variableRemoved",(function(e){s.logDebug("WSBManager: Document Removed")}))},_addDocument:function(e){this.inherited(arguments);var t=this.documents[e.docID];o.add(t.domNode,this._WSB_DOC_CLASS),this.allArgs.keyboardAccessibility&&(t.allArgs.keyBindingSelector="."+this._WSB_DOC_CLASS)},handleRemoteEvent:function(e){s.logDebug("WSBManager: peerEvent: "+e.data.type),e.data.type&&"VariablesAdded"===e.data.type&&this.workspaceDocument?e.data.Variables?(s.logDebug("WSBManager: VariablesAdded: "+e.data.Variables),this.dispatchEvent("variablesAdded",this.workspaceDocument.domNode,{workspaceBrowser:this,variables:e.data.Variables})):l.warn("WSBManager Server VariablesAdded with no variables."):e.data.type&&"VariablesRemoved"===e.data.type&&this.workspaceDocument?e.data.Variables?(s.logDebug("WSB: VariablesRemoved: "+e.data.Variables),this.dispatchEvent("variablesRemoved",this.workspaceDocument.domNode,{workspaceBrowser:this,variables:e.data.Variables})):l.warn("WSBManager Server VariablesRemoved with no variables."):e.data.type&&"VariablesChanged"===e.data.type&&this.workspaceDocument?e.data.Variables?(s.logDebug("WSBManager: VariablesChanged: "+e.data.Variables),this.dispatchEvent("variablesChanged",this.workspaceDocument.domNode,{workspaceBrowser:this,variables:e.data.Variables})):l.warn("WSBManager Server VariablesChanged with no variables."):e.data.type&&"error"===e.data.type&&(e.data.message?l.error(e.data.message):l.warn("WSBManager Server error with no message."))},getSelectedFields:function(){if(this.workspaceDocument&&this.workspaceDocument.clientPeerView&&this.workspaceDocument.clientPeerView.getSelectedFields)return this.workspaceDocument.clientPeerView.getSelectedFields()},_handleOpenVarOnDocumentCell:function(e){this.view._dispatchActionToServer(this.OPEN_VARIABLE_ACTION)},destroy:function(){if(!this.__destroyed){this.__destroyed=!0;const e=this;this.inherited(arguments),Promise.resolve().then((function(){var t=[i(2720)];Promise.all(i.dj.w(t)).then(function(t){return function(t){t.deleteManager(e)}.apply(null,i.dj.u(t))}.bind(this))})).catch(i.oe),this.manager.destroy()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(2360),i(630),i(235),i(2361),i(219)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("desktop_workspacebrowser.MF0ViewModelWSBProvider",[i,r],{mf0ViewModelManager:null,workspaceBrowserManager:null,_FACTORY_CLASS:"desktop_workspacebrowser/WorkspaceBrowserFactory",_PEERMODEL_MANAGER_CHANNEL:"/WorkspaceBrowserManager",_destroyed:!1,_init:function(e){var t=null;this.args=e;var i=require(this._FACTORY_CLASS);t=i.createManager(e.wsbProps),this.args.manager=t,this.workspaceBrowserManager=t,null===this.mf0ViewModelManager&&this._createPeerModelManager(e),a.subscribe(e.channel+"/workspaceBrowserServerInitialized","serverInitialized",this)},_addRootSetListener:function(){var e=this;this.mf0ViewModelManager.addEventListener("rootSet",(function(t){e._isReady=!0;var i=e.getPropertyObject(t.target);i._peerNode=t.target,e.args.manager.serverReady(i,e)})),this.mf0ViewModelManager.addEventListener("rootUnset",(function(t){e.destroy()}))},_createPeerModelManager:function(e){this.channel=this._PEERMODEL_MANAGER_CHANNEL,e&&(this.messageService=e.messageService,this.channel=e.channel||this._PEERMODEL_MANAGER_CHANNEL);var t=e.channel||this._VIEWMODEL_MANAGER_CHANNEL,i=n.CPPMF0ViewModel;this.mf0ViewModelManager=i.getViewModelManager(t),this._addRootSetListener()},setupManagerListeners:function(e){var t=this,i=e.propertyObj._peerNode;i.addEventListener("childAdded",(function(i){var n=t.getPropertyObject(i.data.child);n._peerNode=i.data.child,e._addDocument(n)})),i.addEventListener("childRemoved",(function(i){var n=t.getPropertyObject(i.data.child);e.removeDocument(n)})),i.addEventListener("peerEvent",(function(t){e.handleRemoteEvent(t)})),i.addEventListener("propertySet",(function(t){e.handlePropertySet(t)}))},setupDocumentListeners:function(e){var t=this,i=e.propertyObj._peerNode;i.addEventListener("childAdded",(function(i){var n=t.getPropertyObject(i.data.child);n._peerNode=i.data.child,e._handleViewAdded(n)})),i.addEventListener("childRemoved",(function(i){var n=t.getPropertyObject(i.data.child);e._handleChildRemoved(n)})),i.addEventListener("peerEvent",(function(t){e.handleRemoteEvent(t)})),i.addEventListener("propertySet",(function(t){e.handlePropertySet(t)}))},setupViewListeners:function(e){var t=e.propertyObj._peerNode;t.addEventListener("propertySet",(function(t){e.handlePropertySet(t)})),t.addEventListener("peerEvent",(function(t){e.handleRemoteEvent(t)}))},serverInitialized:function(e){this.mf0ViewModelManager.destroy();var t=this.channel,i=n.CPPMF0ViewModel;this.mf0ViewModelManager=i.getViewModelManager(t),this._addRootSetListener()},getPropertyObject:function(e){var t=e.getProperties();return e.getChildren().length>0&&(t.children=e.getChildren()),t},getViewObject:function(e){return e.getProperties()},isReady:function(){return this._isReady},dispatchEventToServer:function(e,t){var i={};(i=e.propertyObj._peerNode)&&i.dispatchEvent("peerEvent",i,t)},setPropertyOnServer:function(e,t,i){var n={};(n=e.propertyObj._peerNode)&&(i.Source="Client",n.setProperty(t,i),e.propertyObj.propertyName=i)},getRoot:function(){return this.mf0ViewModelManager.getRoot()},getUIDForObject:function(e){return e.propertyObj._peerNode._id},destroy:function(){if(!this._destroyed){this._destroyed=!0,a.unsubscribe(this.channel+"/workspaceBrowserServerInitialized","serverInitialized",this),this.mf0ViewModelManager.destroy(),this.inherited(arguments);var e=this.args.manager;e.channel=this.channel;var t=function(t){t.deleteWorkspaceBrowser(e)};t(require(this._FACTORY_CLASS))}}})}),e,t),e.exports=o},function(e,t){e.exports='[\n {\n "Keyset":{\n "Container":[\n "struct"\n ],\n "Context": "MOTW_Workspace",\n "DataAttributes": []\n },\n "Valueset": {\n "Editor":"desktop_workspacebrowser/RemoteWorkspaceBrowserViewModel",\n "CellRenderer":"rendererseditors/mwTableRenderers/TextRenderer",\n "Plugins": [\n {\n "name": "features",\n "featureList": ["CELL_FOCUS", "EDIT_HANDLER", "LIGHT_WEIGHT_VIEW", "DOUBLE_CLICK_HANDLER",\n "REMOTE_MULTI_ROW_SELECTION", "VIEW_CONTEXT_HANDLER", "CONTEXT_BASED_SELECTION",\n "COLUMN_RESIZE_PAGED", "COLUMN_SORT", "DRAG_AND_DROP", "COLUMN_REORDER", "PRINT"]\n }\n ]\n }\n },\n {\n "Keyset":{\n "Container": [\n "struct"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "char",\n "string",\n "logical",\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "datetime",\n "duration",\n "calendarDuration",\n "default"\n ],\n "Context": "MOTW_Workspace",\n "DataAttributes": ["IconLabelNameColumn"]\n },\n "Valueset":{\n "Editor":"rendererseditors/mwTableEditors/CharEditor",\n "InPlaceEditor":"",\n "CellRenderer":"rendererseditors/mwTableRenderers/IconTextRenderer"\n }\n },\n {\n "Keyset": {\n "Container": [\n "struct"\n ],\n "Datatype": [\n "double",\n "single",\n "half",\n "int8",\n "int16",\n "int32",\n "int64",\n "uint8",\n "uint16",\n "uint32",\n "uint64",\n "char",\n "string",\n "logical",\n "table",\n "dataset",\n "struct",\n "cell",\n "object",\n "categorical",\n "nominal",\n "ordinal",\n "datetime",\n "default"\n ],\n "Context": "MOTW_Workspace",\n "DataAttributes": []\n },\n "Valueset": {\n "Editor": "rendererseditors/mwTableEditors/CharEditor",\n "InPlaceEditor": "",\n "CellRenderer": "rendererseditors/mwTableRenderers/TextRenderer"\n }\n }\n]'},function(e,t,i){var n,o;n=[i(216),i(215),i(255),i(411),i(725),i(302),i(203),i(204),i(214),i(227),i(228),i(210),i(211),i(213),i(223),i(206),i(279),i(1231),i(398),i(9048),i(9051),i(698),i(280),i(9053),i(209),i(407),i(339),i(9054),i(641),i(241),i(2721),i(600),i(290),i(2550),i(699),i(9055)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y,C,T,E,S,w,I,A,x,N,L,D,M,P,O,R){return a([t,e,i],{templateString:R,constructor:function(e){if(!(e=e||{}).wraService)throw new Error("WRA service not specified.");this.wraService=e.wraService,this.remoteFaultCodes=x,this.wraLoginResources=O,this.busyIndicator=e.busyIndicator,this.liveRegionContainer=document.createElement("div"),this.liveRegionContainer.setAttribute("role","status"),this.liveRegionContainer.setAttribute("aria-live","assertive"),document.body.appendChild(this.liveRegionContainer),this.liveRegionListenerShow=l.after(this.busyIndicator,"show",s.hitch(this,"addLiveRegion")),this.liveRegionListenerHide=l.after(this.busyIndicator,"hide",s.hitch(this,"removeLiveRegion")),this.retryLimit=600,this.resetWaitingRoomDialog()},destroy:function(){this.liveRegionListenerShow.remove(),this.liveRegionListenerHide.remove()},postCreate:function(){this.inherited(arguments),this.embeddedLogin=new b({wraService:this.wraService}),h.place(this.embeddedLogin.domNode,this.loginInputArea,"last"),this._updateStringsWithLocalization(this.wraLoginResources),this.connect(this.wraService,"onUpdate",this.update),this.update(),this.own(g(this.embeddedLogin.embeddedlogintask,"loginSuccess",s.hitch(this,this._loginSuccess))),this.own(g(this.embeddedLogin.embeddedlogintask,"loginFormLoaded",s.hitch(this,this._loginFormLoaded))),this.loadTagManagementScript(),v.markEnd("loginFlow.loginPageLoad")},_emptyLoginScreen:function(){h.empty(this.domNode.id)},_loginFormLoaded:function(){this.matlabdrivebanner.style.display="block"},_loginSuccess:function(e){this.resetWaitingRoomDialog(),this.wraService.clearFault(),this.wraService.clearMode(),this.wraService.createMATLABSession({mwaToken:e})},update:function(){var e,t,i=this.wraService.getFaultCode();switch("wra.noComputeResources"!==i&&(t=s.getObject(i,!1,this.wraLoginResources),""===i&&s.isObject(t)?this.wraLoginResources.wra.serviceUnavailable:t),e=this.wraService.getCurrentState()){case"checkEndpointCookie":case"gettingCurrentUser":this.setViewBusy();break;case"gettingCurrentComputeResource":this.embeddedLogin.destroyLogin();break;case"":case"WraDataService":case"preLogoutTasks":case"deauthorizing":case"postLogoutTasks":break;case"unauthorized":this.setViewNormal(e),"wra.userRequestedExit"===i?this.showUserExitPage():"wra.concurrentLoginAttempt"===i?this.showConcurrentSessionDialog(i):this.showLoginFormAndHideMessage(),this.wraService.clearFault(),this.wraService.clearMode();break;case"updateAccount":"wra.invalidActivationKey"!==i&&"wra.userNotEntitled"!==i&&"wra.missingUserID"!==i&&"wra.ExternalAuthRequired"!==i||(this.setViewAdditionalUI(),u.remove(this.domNode,"hidden"),u.add(this.wraMessage,"hidden"));break;case"acquireMatlab":case"leafAuthorizing":case"routerAuthorizing":this.setViewBusy();break;case"acquiringComputeResource":case"waitingForModules":this.setViewBusy();break;case"postLoginTasks":this.embeddedLogin.destroyLogin(),this.setViewBusy();break;case"retryComputeResourceRequest":this.loadWaitingRoomDialog();break;case"informingUserOfUnresponsiveWorker":this._informUserOfUnresponsiveWorker();break;case"computeResourceReady":this.setViewLoggedIn(),L();break;case"topLevelFault":this.setViewErrorDialog(i),this.onReady();break;case"refresh":case"redirect":case"checkingMATLABHealth":break;default:S.warn("WraLogin unknown state: "+this.wraService.getCurrentState())}},setViewNormal:function(){u.remove(this.domNode,"hidden"),this.busyIndicator&&this.busyIndicator.hide(),u.add(this.loggedInIndicator,"hidden"),this.onReady()},setViewBusy:function(){this.busyIndicator.show(),u.add(this.loggedInIndicator,"hidden")},addLiveRegion:function(){this.liveRegion||(this.liveRegion=document.createElement("p"),this.liveRegion.style.opacity=0,this.liveRegion.textContent=O.matlabIsLoading,this.liveRegionContainer.appendChild(this.liveRegion))},removeLiveRegion:function(){this.liveRegion&&this.liveRegion.parentNode&&this.liveRegion.parentNode.removeChild(this.liveRegion),this.liveRegion=null},_informUserOfUnresponsiveWorker:function(){this.busyIndicator.hide();var e,t,i,n;t=this.wraLoginResources.unresponsiveWorkerMsg.title,i=this.wraLoginResources.unresponsiveWorkerMsg.message,e=this.wraService,n={buttonText:[this.wraLoginResources.resetSession],"data-test-id":"unresponsiveWorkerDialog",closeCallback:function(t){e.terminateMATLABSession({skipLogoutTasks:!0})}},C.openNotificationConfirmDialog(t,i,n)},setViewErrorDialog:function(e){var t=s.getObject(e,!1,this.wraLoginResources),i=M.fault.genericFailureTitle,n=""===e&&s.isObject(t)?M.fault.genericFailureMessage:t,o=this.wraService,r=this,a={closeCallback:function(e){o.disableSingleSignOn(),r.embeddedLogin.refresh()}};this.busyIndicator.hide(),u.add(this.loggedInIndicator,"hidden"),N.displayAlertDialog(i,n,a)},setViewAdditionalUI:function(){this.embeddedLogin.getAdditionalUI({mwaToken:this.wraService.getMWAToken(),mode:this.wraService.getMode()}),this.busyIndicator.hide()},setViewLoggedIn:function(){this._emptyLoginScreen()},showWaitingRoomDialog:function(){this.waitingRoomRetryTotalSeconds+=this.waitingRoomRetrySeconds,this.waitingRoomRetryTotalSeconds<this.retryLimit?E.dialog||(E.createDialog({wraService:this.wraService,wraLogin:this,retryCount:this.waitingRoomRetrySeconds}),this.waitingRoomRetrySeconds*=2):(this.resetWaitingRoomDialog(),this.wraService.terminateMATLABSession())},loadWaitingRoomDialog:function(){this.busyIndicator.hide(),this.showWaitingRoomDialog()},resetWaitingRoomDialog:function(){this.waitingRoomRetrySeconds=10,this.waitingRoomRetryTotalSeconds=0},onCancelWraAccount:function(){this.wraService.cancel()},loadTagManagementScript:function(){var e=this.wraService.getAdobeDTMEndpointFromServiceRegistry();A.load(e)},onReady:function(){},onVersionShow:function(e){function t(e){if("click"===e.type||e.keyCode===f.ENTER){if(_.dialog.domNode){if(document.getElementById(_.dialog.domNode.id).contains(e.target))return;_.close()}document.body.removeEventListener("click",t),document.body.removeEventListener("keyup",t)}}"click"!==e.type&&e.keyCode!==f.ENTER||(_.displayInfo(),e.stopPropagation()),setTimeout((function(){document.body.addEventListener("click",t),document.body.addEventListener("keyup",t)}),250)},_updateStringsWithLocalization:function(e){d.set(this.support,"innerHTML",e.support),d.set(this.patents,"innerHTML",e.patents),d.set(this.status,"innerHTML",e.status),d.set(this.trademarks,"innerHTML",e.trademarks),d.set(this.privacyPolicy,"innerHTML",e.privacyPolicy),d.set(this.copyright,"innerHTML",e.copyright),d.set(this.learn,"innerHTML",e.learn),d.set(this.matlabDrive,"innerHTML",e.matlabDrive),d.set(this.startNewSessionText,"innerHTML",D.continueMsg),d.set(this.versionNumber,"innerHTML",P.title)},showUserExitPage:function(){this.userExitDialog||this.loadUserExitPage()},loadUserExitPage:function(){var e=this;this.hideLoginFormAndDisplayMessage(),this.wraMessageNode.innerHTML=O.wra.userExitMessage,this.startNewSession=function(){e.wraService.createMATLABSession({forceConcurrent:!0}),e.userExitDialog=null}},hideLoginFormAndDisplayMessage:function(){this.embeddedLogin.hide(),this.busyIndicator.hide(),u.remove(this.wraMessage,"hidden")},showLoginFormAndHideMessage:function(e){this.embeddedLogin.show(),this.busyIndicator.hide(),u.add(this.wraMessage,"hidden"),this.refreshEmbeddedLogin&&(this.embeddedLogin.refresh(),this.refreshEmbeddedLogin=!1)},showConcurrentSessionDialog:function(e){this.concurrentSessionDialog||(this.loadConcurrentSessionDialog(e),p.set(this.wraLogin,"position","relative"))},loadConcurrentSessionDialog:function(e){var t=this;this.hideLoginFormAndDisplayMessage(),this.wraMessageNode.innerHTML=s.getObject(e,!1,this.wraLoginResources),this.startNewSession=function(){t.wraService.createMATLABSession({forceConcurrent:!0}),p.set(t.wraLogin,"position","absolute"),t.refreshEmbeddedLogin=!0}},startNewSession:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(228),i(213),i(211),i(206),i(9049),i(216),i(215),i(255),i(9050)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([s,a,l],{templateString:c,constructor:function(e){this.inherited(arguments),this.embeddedlogintask=new r({wraService:e.wraService})},postCreate:function(){this._load()},_load:function(e){this.initialLoad(e),this.attachSetHeightListener(),this.setIframeSrc()},initialLoad:function(e){var t=this,i=o(this.embeddedLoginIframe,"load",(function(i){t.embeddedlogintask.setLoginContentWindow(i.target.contentWindow,e)}));this.own(i)},attachSetHeightListener:function(){var e=this;this.own(o(this.embeddedlogintask,"setHeight",(function(){i.set(e.embeddedLoginIframe,{opacity:1})})))},setIframeSrc:function(){t.set(this.embeddedLoginIframe,"src",this.embeddedlogintask.EMBEDDED_LOGIN_ENDPOINT)},refresh:function(){this.embeddedlogintask.resetContentWindow(),this._load()},getAdditionalUI:function(e){this.destroyLogin(),this.recreateIframe(),this.embeddedlogintask.setUnauthorizedState(),this._load(e),this.embeddedlogintask.addMessageHandler()},destroyLogin:function(){this.embeddedlogintask.destroy(),this.destroy()},recreateIframe:function(){this.embeddedLoginIframe=n.create("iframe",{"data-dojo-attach-point":"embeddedLoginIframe",style:"opacity:0;"},this.domNode,"first")},hide:function(){this.embeddedLoginIframe.style.display="none"},show:function(){this.embeddedLoginIframe.style.display="block"},destroy:function(){n.destroy(this.embeddedLoginIframe),this.embeddedLoginIframe=null}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(240),i(204),i(228),i(211),i(206),i(222),i(699),i(1648)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){var c=l.extractMwaEnvironment(),d=c.urlParam,u=c.embeddedLoginDomainSuffix;return e([a],{PROFILE_UPDATE_ORIGIN:"https://www"+d+".mathworks.com",SSO_COOKIE_ORIGIN:"https://www"+d+".mathworks.com",EMBEDDED_LOGIN_ORIGIN:"https://login"+u+".mathworks.com",EMBEDDED_LOGIN_ENDPOINT:"https://login"+u+".mathworks.com/embedded-login/v2/login.html?locale="+t.locale,constructor:function(e){this.options=e.options||{},this.wraService=e.wraService,this.wraLoginResources=s,this._formMessageHandler=i.hitch(this,this._handleFormMessage),this.addMessageHandler(),this._unauthorized=!1,this._mode=null},destroy:function(){this._clearInitResponseTimeout(),window.removeEventListener("message",this._formMessageHandler,!1)},addMessageHandler:function(){window.addEventListener("message",this._formMessageHandler,!1)},_clearInitResponseTimeout:function(){this._initResponseTimeout&&window.clearTimeout(this._initResponseTimeout),this._initResponseTimeout=null},_handleFormMessage:function(e){var t=e.origin||e.originalEvent.origin;if(e.source===this._contentWindow&&(t===this.EMBEDDED_LOGIN_ORIGIN||t===this.PROFILE_UPDATE_ORIGIN)&&e.data){var i=JSON.parse(e.data);switch(i.event){case"nonce":this._handleNonceResponse(i);break;case"login":this._handleLoginResponse(i);break;case"verified":this._handleVerifiedLoginResponse()}}},_handleNonceResponse:function(e){this._clearInitResponseTimeout(),this._transactionId=e.transactionId,this.emit("setHeight",e.formHeight),this.emit("loginFormLoaded"),this._postLoadMessage()},_handleLoginResponse:function(e){this._doResolve(e.token)},_handleVerifiedLoginResponse:function(){this.emit("loginSuccess")},setUnauthorizedState:function(){this._unauthorized=!0,this.resetContentWindow()},resetContentWindow:function(){this._contentWindow=null},setLoginContentWindow:function(e,t){var i=this;t&&Object.keys(t).length>0&&(this._contentWindow=null,this._mwaToken=t.mwaToken||null,this._mode=t.mode||null,this._unauthorized=!0),this._contentWindow||(this._clientTransactionId=Date.now(),this._contentWindow=e,this._initResponseTimeout=window.setTimeout((function(){i._initResponseTimeout=null,i._doResolve()}),1e3)),this._postInitMessage()},_postInitMessage:function(){var e=this,t={event:"init",transactionId:this._clientTransactionId,clientTransactionId:"",release:"",platform:"",clientString:"",clientID:"",profileTier:"",showCreateAccount:!0,showRememberMe:!0,entitlementId:"",cachedUsername:"",cachedRememberMe:!0,token:this._mwaToken,unauthorized:this._unauthorized,unauthorizedText:i.getObject(this.wraService.faultCode,!1,this.wraLoginResources)};try{this._contentWindow.postMessage(JSON.stringify(t),this.EMBEDDED_LOGIN_ORIGIN)}catch(i){window.setTimeout((function(){e._contentWindow.postMessage(JSON.stringify(t),e.EMBEDDED_LOGIN_ORIGIN)}),800)}},_postLoadMessage:function(){var e="https:"===window.location.protocol,t=window.location.hostname.endsWith(".mathworks.com"),n={event:"load",transactionId:this._transactionId,clientTransactionId:this._clientTransactionId,release:"1.5",platform:"web",clientString:e&&t?"ONLINE":"WEB-EMBEDDED-ONLINE",returnUri:"",clientID:"",mode:this._mode,profileTier:"extended",showCreateAccount:!0,showRememberMe:!0,entitlementId:"",cachedUsername:"",showPrivacyPolicy:!1,identifierReadOnly:!1,cachedRememberMe:!0,token:this._mwaToken,unauthorized:!this._mode&&this._unauthorized,unauthorizedText:i.getObject(this.wraService.getFaultCode(),!1,this.wraLoginResources),version:this._mode?"2":"",redirectURL:window.location.href?window.location.href:""};this._contentWindow.postMessage(JSON.stringify(n),this.EMBEDDED_LOGIN_ORIGIN),!0===this._unauthorized&&this.emit("hideBusyIndicator"),this._unauthorized=!1,this._mode=null},_doResolve:function(e){e&&this.emit("loginSuccess",e)}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="embeddedLoginTask">\n <iframe data-dojo-attach-point="embeddedLoginIframe" style="opacity:0;"></iframe>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(228),i(213),i(206),i(216),i(215),i(255),i(699),i(9052)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e([r,o,a],{templateString:l,constructor:function(e){e=e||{},this.wraService=e.wraService,this.wraLoginL10n=s,this.busyIndicator=e.busyIndicator},postCreate:function(){this.wraService.getTermsOfUse(this.onTermsLoaded,this)},onTermsLoaded:function(e){this.topContainer.innerHTML=e.text},onCancel:function(){this.wraService.closeOrCancel()},onNext:function(){this.busyIndicator.show(),this.wraService.sendUpdateAccount(!0)},hideView:function(){this.domNode.style.visibility="hidden"},showView:function(){this.domNode.style.visibility="visible"}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="termsOfUseView">\n <h3 id="title" data-dojo-attach-point="header">${wraLoginL10n.termsOfUseHeader}</h3>\n <div class="topContainer" data-dojo-attach-point="topContainer"></div>\n <div class="container-fluid">\n <div class="form_actions">\n <div class="row">\n <div class="col-xs-6 col-xs-push-6" style="overflow: hidden; display: block;">\n <button class="btn btn_secondary" data-dojo-attach-event="onclick:onNext">${wraLoginL10n.termsOfUseAccept}</button>\n </div>\n <div class="col-xs-6 col-xs-pull-6" style="overflow: hidden; display: none;">\n <button class="btn btn_primary" data-dojo-attach-event="onclick:onCancel">${wraLoginL10n.termsOfUseDecline}</button>\n </div>\n </div>\n </div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(204),i(225),i(241),i(699)],o=i.dj.d(n,(function(e,t,i,n){return{_RETRY_INTERVAL:1e3,createDialog:function(e){var t=n.waitingRoomMessage,o=n.waitingRoomTitle,r=this;this.wraService=e.wraService,this.wraLogin=e.wraLogin,this.counter=e.retryCount,t=t.replace("replace_me",this._getSecondAsString(this.counter)),this.dialog=i.displayConfirmDialog(o,t,{icon:"error",buttonText:["Cancel"],closeCallback:function(){r._onDialogClosed()},cancelCallback:function(){r._onDialogClosed()}}),this._setInterval()},_setInterval:function(){var e=this;this.retryInterval=setInterval((function(){e.counter<0?(e._clearInterval(),e.retrying=!0,e.dialog.close(),e.wraLogin.setViewBusy()):(e.counter>0&&e._updateSecond(e.counter),e.counter=e.counter-1)}),this._RETRY_INTERVAL)},_clearInterval:function(){clearInterval(this.retryInterval)},_updateSecond:function(e){var i=t(".mwConfirmDialog #waitingRoomTimer")[0];i&&(i.textContent=this._getSecondAsString(e))},_getSecondAsString:function(e){var t,i,n="";return i=e%60,(t=Math.floor(e/60))>0&&(n=t+":"),t>0&&i<10&&(i="0"+i),n+=i,n+=t>0?" minutes":" seconds"},_onDialogClosed:function(){this.retrying?(this.wraService.retryAcquireComputeService(),this.retrying=!1):this.wraService.reloadPage({userEndedComputeSession:!0}),this.dialog=null,this._clearInterval()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1698)],o=i.dj.d(n,(function(e){return{load:function(t){var i=this;if(t){var n=document.write;i.overrideDocumentWriteFunction(),e.get(t).then((function(){try{_satellite&&_satellite.pageBottom()}catch(e){}finally{i.revertDocumentWriteFunction(n)}}))}},overrideDocumentWriteFunction:function(){document.write=function(e){var t=document.createElement("div");t.style.display="none";var i=document.createElement("div");i.innerHTML=e,t.appendChild(i),document.body.insertBefore(t,document.body.childNodes[0])}},revertDocumentWriteFunction:function(e){document.write=e}}}),e,t),e.exports=o},function(e,t){e.exports='<div id="wraLogin" class="wraLogin" data-dojo-attach-point="wraLogin">\n <header role="banner">\n <a class="mwLogoLink" href="https://www.mathworks.com" target="_blank">\n <div class="mwLogo" role="img" aria-label="MathWorks Logo (Opens in new tab)"></div>\n </a>\n <div class="moBannerTextContainer">\n <div class="moBannerText" role="img" aria-label="MATLAB Online Banner"></div>\n </div>\n </header>\n <div class="loginAreaContainer" role="main">\n <div class="moLogo" role="img" aria-label="MATLAB Online Logo"></div>\n <div class="moLogoDivider" data-dojo-attach-point="moLogoDivider"></div>\n <div class="loginForm" role="form" aria-label="Sign in to your MathWorks Account">\n <div data-dojo-attach-point="loginInputArea" id="loginInputArea">\n <div class="wraMessage" data-dojo-attach-point="wraMessage">\n <div class="wraMessageNode" data-dojo-attach-point="wraMessageNode"></div>\n <div class="moLogoDividerLight"></div>\n <div>\n <button class="btn" data-dojo-attach-event="onclick:startNewSession">\n <span data-dojo-attach-point="startNewSessionText" style="position: relative; display: inline-block;">Start new session</span>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="bottombanner" data-dojo-attach-point="matlabdrivebanner">\n <div class="inner">\n <a data-dojo-attach-point="learn" class="learnAboutMO" data-test-id="learnAboutMO" href="https://www.mathworks.com/products/matlab-online.html"\n aria-label="Learn about MATLAB Online (Opens in new tab)" target="mathworksLearn">Learn about MATLAB Online</a>\n <br/><br/><span data-dojo-attach-point="matlabDrive">Use <a class="matlabDrive" data-test-id="matlabDrive" href="//www.mathworks.com/products/matlab-drive.html?s_tid=MLD_MOSI"\n aria-label="MATLAB Drive (Opens in new tab)" target="_blank">MATLAB Drive&trade;</a> to synchronize your\n MATLAB files between your computers and MATLAB Online.</span>\n </div>\n </div>\n </div>\n <footer role="contentinfo">\n <a data-dojo-attach-point="support" class="support" href="https://www.mathworks.com/support/" aria-label="Support (Opens in new tab)"\n target="mathworksHelp">support</a>\n <a data-dojo-attach-point="status" class="status" href="http://status.mathworks.com/" aria-label="Application Status (Opens in new tab)"\n target="mathworksStatus">status</a>\n <a data-dojo-attach-point="patents" class="patents" href="http://www.mathworks.com/company/aboutus/policies_statements/patents.html"\n aria-label="Patents (Opens in new tab)" target="mathworksPatents">patents</a>\n <a data-dojo-attach-point="trademarks" class="trademarks" href="http://www.mathworks.com/company/aboutus/policies_statements/trademarks.html"\n aria-label="Trademarks (Opens in new tab)" target="mathworksTrademarks">trademarks</a>\n <a data-dojo-attach-point="privacyPolicy" class="privacyPolicy" href="http://www.mathworks.com/company/aboutus/policies_statements/"\n aria-label="Privacy Policy (Opens in new tab)" target="mathworksPrivacyPolicy">privacyPolicy</a>\n <span data-dojo-attach-point="copyright" class="copyright">copyright</span>\n\n <div data-dojo-attach-point="versionNumber" class="versionNumber" tabindex="0" role="link" data-dojo-attach-event="onclick:onVersionShow, onkeypress:onVersionShow">\n </div>\n </footer>\n\n <div class="loggedInIndicator hidden" data-dojo-attach-point="loggedInIndicator"></div>\n</div>'},function(e,t,i){var n,o;n=[i(302),i(203),i(204),i(890),i(256),i(290),i(212),i(398),i(247),i(209),i(766),i(232),i(641),i(1277),i(1626),i(1648),i(1237)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m){var _=l.parseQueryString(),v="motw";void 0!==_.clientTypeOverride?v=_.clientTypeOverride:void 0!==_.course&&(v="matlab-academy");var b,y,C=(b=window.sessionStorage.getItem("mo_compute_session"),window.sessionStorage.removeItem("mo_compute_session"),"true"===b),T=(y=Date.now(),function(e){return Date.now()-y>e});return t([],{constructor:function(e){e=e||{},this.allowHiddenLoad=e.allowHiddenLoad||!1,this.pageStaleDuration=e.pageStaleDuration||6e5,this.clientContext={},this.account={},this._faultCode="",this.currentState="",this._isNewWorker=!0,this.sessionTimeoutSeconds=null,this.maxSessionTimeoutSeconds=null,this._internalTiming={},this._injectedEndpoint=e.injectedEndpoint?e.injectedEndpoint:null,this.uiLifecycle=e.uiLifecycle,this.heartbeatService=e.heartbeatService,this._busyIndicator=e.busyIndicator,this.uiConfigService=e.uiConfigService,this.userDataService=e.userDataService,this.clientType=v,this.computeSpecification=e.computeSpecification,this._ssoFeatureEnabled=!0,this.singleSignOut=!1,this.skipLogoutTasks=!1,this.ssoFeatureName="motw.internal.sso",this.longRunningTasksFeatureName="motw.internal.longrunningtasks",this._isLRTFeatureEnabled=!1,this._attachTasksToLifecycleEvents(),e.skipStart||i.hitch(this,this.start())},_attachTasksToLifecycleEvents:function(){this._isReadyToLogin=new a,this._loginPromise=new a,this._userLoggedInPromise=new a,this._computeReadyPromise=new a,this._userLoggedOutPromise=new a,this.uiLifecycle.registerTask("PAGE_LOAD",function(){return this._loginPromise.promise}.bind(this)),this.uiLifecycle.registerTask("WORKER_CONNECTED",function(){return this._userLoggedInPromise.promise}.bind(this)),this.uiLifecycle.registerPhaseCompletedCallback("PRE_WORKER_DISCONNECTED",function(){this._preLogoutTasksComplete()}.bind(this)),this.uiLifecycle.registerPhaseCompletedCallback("POST_WORKER_DISCONNECTED",function(){this._postLogoutTasksComplete()}.bind(this))},_getStateOptions:function(){return{context:this,name:"WraDataService",namespace:"MOTW.wra",defaultSubstate:"gettingCurrentUser",substates:{gettingCurrentUser:{transitions:{onEnterState:this.sendGetCurrentUser,"response CurrentUserResponse":[this._handleCurrentUserResponse,"gettingCurrentComputeResource"],"fault CurrentUser":{target:"unauthorized",action:this._handleCurrentUserError}}},unauthorized:{transitions:{onEnterState:this._setEndpointToLeaf,login:"acquireMatlab",createMATLABSession:"acquireMatlab"}},updateAccount:{transitions:{onEnterState:this.onUpdate,login:"acquireMatlab",createMATLABSession:"acquireMatlab"}},acquireMatlab:{transitions:{onEnterState:this._acquireMatlab,"response AcquireMatlabResponse":[this._handleAcquireMatlabResponse,"checkingMATLABHealth"],"fault AcquireMatlab":[this._handleAcquireMatlabError,"topLevelFault"]}},deauthorizing:{transitions:{onEnterState:this._sendLogout,"response LogoutResponse":this._getPostLogoutTargetState,"fault Logout":[this._handleLogoutError,"postLogoutTasks"],"timeout 5":"postLogoutTasks"}},refresh:{transitions:{onEnterState:this._refreshMO}},redirect:{},reloadPage:{transitions:{onEnterState:this.reloadPage}},topLevelFault:{transitions:{onEnterState:this._handleTopLevelFault,disableSingleSignOn:"unauthorized"}},retryComputeResourceRequest:{transitions:{retryAcquireComputeService:{target:"acquireMatlab"},logout:"preLogoutTasks",terminateMATLABSession:this._terminateMATLABSession}},gettingCurrentComputeResource:{transitions:{onEnterState:this._sendGetCurrentComputeResource,"response GetCurrentComputeResourceResponse":[this._handleCurrentComputeResourceResponse,"checkingMATLABHealth"],"fault GetCurrentComputeResource":"acquireMatlab",logout:"deauthorizing"}},checkingMATLABHealth:{transitions:{onEnterState:this._checkMATLABHealth,_skipExplicitHealthCheck:"computeResourceReady",workerIsResponsive:"computeResourceReady",workerIsNotResponsive:"informingUserOfUnresponsiveWorker"}},informingUserOfUnresponsiveWorker:{transitions:{ignoreUnresponsiveWorker:"computeResourceReady",logout:"preLogoutTasks",terminateMATLABSession:this._terminateMATLABSession}},computeResourceReady:{transitions:{onEnterState:this._computeResourceReady,logout:"preLogoutTasks",terminateMATLABSession:this._terminateMATLABSession,logoutWithoutSessionSave:"deauthorizing",onExitState:this._stopHeartbeat,workerReset:"workerResetDiscardingComputeResource"}},workerResetDiscardingComputeResource:{transitions:{onEnterState:this._discardingComputeResource,"response LogoutResponse":"acquireMATLAB","fault Logout":"topLevelFault"}},preLogoutTasks:{transitions:{onEnterState:this._performPreLogoutTasks,_preLogoutTasksComplete:"deauthorizing","timeout 10":"deauthorizing"}},postLogoutTasks:{transitions:{onEnterState:this._performPostLogoutTasks,_postLogoutTasksComplete:"refresh"}}}}},start:function(){var t=new p(this._getStateOptions());e.connect(t,"onEnterState",this,this._onEnterState),e.connect(t,"onExitState",this,this._onExitState),f.promise.then(i.hitch(this,(function(e){for(var i=e.featureSwitches||[],n=0;n<i.length;n++)i[n].name===this.ssoFeatureName&&"off"===i[n].status.toLowerCase()&&(this._ssoFeatureEnabled=!1),i[n].name===this.longRunningTasksFeatureName&&"on"===i[n].status.toLowerCase()&&(this._isLRTFeatureEnabled=!0);t.start(),this.uiLifecycle.start()})))},getCurrentState:function(){return this.currentState},ignoreUnresponsiveWorker:function(){},getAdobeDTMEndpointFromServiceRegistry:function(){return u.getServiceRegistryEndpoint("adobedtm")},getMWAToken:function(){return this.clientContext.MW_CU||""},getMode:function(){return this.mode||""},registerPreLogoutTask:function(){},_performPreLogoutTasks:function(){this._computeReadyPromise.resolve()},_performPostLogoutTasks:function(){this._userLoggedOutPromise.resolve()},_preLogoutTasksComplete:function(){},_postLogoutTasksComplete:function(){},_discardingComputeResource:function(){o.publish("/MatlabExitService/exitchannel",{}),this._sendLogout(),u.setComputeToken(),u.setWorkerEndpoint()},_setEndpointToLeaf:function(){this._injectedEndpoint&&u.setEndpoint(this._injectedEndpoint)},sendGetCurrentUser:function(e,t,n){this._setEndpointToLeaf();var o=d.createClientTypeMessage(n||this.clientType,r.versionNumber);u.sendMessage(i.mixin({CurrentUser:{apiVersion:"1.2"}},o))},_handleCurrentUserResponse:function(e,t,i){var n=this._getGenericFaultTargetState(i);return!n&&this._isAuthorized(i[0])?(this.userDataService.setUserInfo(i[0]),this._setSessionTimeouts(i),null):this._ssoFeatureEnabled?(g.doesUserHaveMWSession()?C?(this._faultCode="wra.userRequestedExit",n="unauthorized"):g.isDomainAllowed()&&(n="acquireMatlab"):n="unauthorized",n):n&&"topLevelFault"===n.target||void 0===n?"unauthorized":n},_handleCurrentUserError:function(e,t,i){c.error("Current user fault: ",i)},_heartbeatOptions:{},_startHeartbeat:function(e){e=e||{},this._heartbeatOptions=i.mixin({inactivityTimeout:1e3*this.sessionTimeoutSeconds,countdownStartCallback:i.hitch(this,"onInactivityDetected"),countdownEndCallback:i.hitch(this,"onInactivityTimeout"),maxSessionTimeout:1e3*this.maxSessionTimeoutSeconds,isLRTFeatureEnabled:this._isLRTFeatureEnabled},e);var t=d.createClientTypeMessage(this.clientType,r.versionNumber);this.heartbeatService.start(i.mixin({CurrentUser:{apiVersion:"1.2"}},t),this._heartbeatOptions)},_stopHeartbeat:function(){this.heartbeatService.stop()},updateHeartbeatOptions:function(e){this._stopHeartbeat(),this._startHeartbeat(e)},onInactivityDetected:function(){},onInactivityTimeout:function(){this._userWasTimedOut=!0,this.terminateMATLABSession()},wasUserTimedOut:function(){return!!this._userWasTimedOut},login:function(e,t,i,n,o){},createMATLABSession:function(e){},_acquireMatlab:function(e,t,i,n,o,r,a){!this.allowHiddenLoad&&document.hidden?document.addEventListener("visibilitychange",function s(){document.hidden||(document.removeEventListener("visibilitychange",s),T(this.pageStaleDuration)?this._refreshMO():this._sendAcquireMatlab(e,t,i,n,o,r,a))}.bind(this)):this._sendAcquireMatlab(e,t,i,n,o,r,a)},_sendAcquireMatlab:function(e,t,n,o,a,s,l){"object"==typeof n&&(a=n.mwaToken,s=n.forceConcurrent,h=n.clientType);var c={AcquireMatlab:{apiVersion:"1.9",forceConcurrentSessionLogout:s,clientType:l=l||v}};void 0!==_.course&&(c.AcquireMatlab.context={courseId:_.course}),i.isString(a)?(this.clientContext.MW_CU=a,i.mixin(c.AcquireMatlab,{token:a})):this.clientContext.MW_CU&&i.mixin(c.AcquireMatlab,{token:this.clientContext.MW_CU}),this._ssoFeatureEnabled&&i.mixin(c.AcquireMatlab,{authenticationProvider:{provider:"mwa",webService:""}}),this.computeSpecification&&i.mixin(c.AcquireMatlab,{computeSpecification:this.computeSpecification});var h=d.createClientTypeMessage(l,r.versionNumber);h.ClientType.properties.TIMEZONE=Intl.DateTimeFormat().resolvedOptions().timeZone,this._loginMessage=c,u.sendMessage(i.mixin(c,h))},getLoginMessage_ForTesting:function(){return this._loginMessage},_handleAcquireMatlabResponse:function(e,t,i){var n=this._getGenericFaultTargetState(i);return n&&i[0].messageFaults.length>0&&i[0].messageFaults[0].faultCode===h.NO_WORKERS_AVAILABLE?{target:"retryComputeResourceRequest",args:"wra.noComputeResources"}:(!n&&this._isAuthorized(i[0])?(this.userDataService.setUserInfo(i[0]),this._setSessionTimeouts(i),n=this._handleAcquireComputeResourceResponse(e,t,i),this._loginPromise.resolve()):i[0].messageFaults&&i[0].messageFaults.length>0&&(n=this._getTargetFaultState(i[0].messageFaults,i[0])||n),n)},_handleAcquireMatlabError:function(e,t,i){return c.log("WRA get MATLAB fault: ",i),this._handleLoginError(e,t,i)},_handleLoginError:function(e,t,i){var n={args:"wra.serviceError"};return i&&i.faultCode&&(n=this._getTargetFaultState(i)||n),n},_computeResourceReady:function(){this._startHeartbeat(),this.uiLifecycle.registerTask("WORKER_READY",function(){return this._computeReadyPromise.promise}.bind(this)),this._userLoggedInPromise.resolve()},clearFault:function(){this._faultCode=""},getFaultCode:function(){return this._faultCode},_handleTopLevelFault:function(e,t,i){c.error("General Top Level Fault: ",i),this._faultCode=i},clearMode:function(){this.mode=""},logout:function(e){this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",function(){return this._userLoggedOutPromise.promise}.bind(this)),this.singleSignout=!0},logoutWithoutSessionSave:function(){},terminateMATLABSession:function(e){e&&e.singleSignOut&&(this.singleSignOut=!0),this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",function(){return this._userLoggedOutPromise.promise}.bind(this))},_terminateMATLABSession:function(e,t,i){var n={};return i&&i.skipLogoutTasks?(this.skipLogoutTasks=i.skipLogoutTasks,n={target:"deauthorizing"}):n={target:"preLogoutTasks"},n},disableSingleSignOn:function(){},_sendLogout:function(e,t){this.credentials={},this.onUpdate(),this._setEndpointToLeaf(),u.sendMessage({Logout:{}})},_getPostLogoutTargetState:function(){return this.skipLogoutTasks?{target:"refresh"}:{target:"postLogoutTasks"}},_refreshMO:function(){n(this.ENDPOINT_COOKIE,null,{expires:-1,path:"/"}),this.reloadPage()},setUserEndedComputeSessionFlag:function(){window.sessionStorage.setItem("mo_compute_session",!0)},reloadPage:function(e){e&&e.userEndedComputeSession&&this.setUserEndedComputeSessionFlag(),g.redirect({signOut:this.singleSignOut||e&&e.singleSignOut,redirectURL:e&&e.redirectURL||window.location.href})},_handleLogoutError:function(e,t,i){return this._userLoggedOutPromise.resolve(),c.error("WRA logout fault: ",i),this._getPostLogoutTargetState()},_sendGetCurrentComputeResource:function(){this._setEndpointToLeaf(),u.sendMessage({GetCurrentComputeResource:{}})},_handleAcquireComputeResourceResponse:function(e,t,i){var n=this._getGenericFaultTargetState(i);return!n&&i[0].computeInfo?(u.setComputeToken(i[0].computeInfo.computeToken),u.setWorkerEndpoint(i[0].computeInfo.routingHost,i[0].computeInfo.routingKey)):n&&i[0].messageFaults&&i[0].messageFaults.length>0&&(n=i[0].messageFaults[0].faultCode===h.NO_WORKERS_AVAILABLE?{target:"retryComputeResourceRequest",args:"wra.noComputeResources"}:{target:"topLevelFault",args:"wra.serviceUnavailable"}),n},_handleAcquireComputeResourceError:function(e,t,i){return i.faultCode===h.NO_WORKERS_AVAILABLE?{target:"retryComputeResourceRequest",args:"wra.noComputeResources"}:{target:"topLevelFault",args:"wra.serviceUnavailable"}},_handleCurrentComputeResourceResponse:function(e,t,i){var n;return i[0].computeInfo?(u.setComputeToken(i[0].computeInfo.computeToken),u.setWorkerEndpoint(i[0].computeInfo.routingHost,i[0].computeInfo.routingKey),this._isNewWorker=!1,this._loginPromise.resolve()):n="acquireMATLAB",n},isNewWorker:function(){return this._isNewWorker},_checkMATLABHealth:function(){this.isNewWorker()?this._skipExplicitHealthCheck():this._doHealthCheckOnWorker()},_skipExplicitHealthCheck:function(){},workerReset:function(){},workerIsResponsive:function(){},workerIsNotResponsive:function(){},_doHealthCheckOnWorker:function(){var e=this;m.getStatusOfWorker().then((function(t){switch(t){case"IDLE":e.workerIsResponsive();break;case"BUSY":e._busyIndicator.hide(),e.workerIsNotResponsive()}}))},_setSessionTimeouts:function(e){e[0].sessionInfo&&(e[0].sessionInfo.sessionTimeoutSeconds&&(this.sessionTimeoutSeconds=e[0].sessionInfo.sessionTimeoutSeconds),e[0].sessionInfo.maxUnattendedCodeExecutionSeconds&&(this.maxSessionTimeoutSeconds=e[0].sessionInfo.maxUnattendedCodeExecutionSeconds))},_getGenericFaultTargetState:function(e){var t=e.filter((function(e){return e.messageFaults&&e.messageFaults.length>0}));if(!e||0===e.length||t.length>0)return{target:"topLevelFault",args:"wra.generalFault"}},_getTargetFaultState:function(e,t,i){var n;return Array.isArray(e)||(e=[e]),e.every((function(e){switch(e.faultCode){case h.INVALID_ACTIVATION_KEY:case h.USER_NOT_ENTITLED:this._faultCode="wra.invalidActivationKey",this.clientContext.MW_CU?n={target:"updateAccount",args:this._faultCode}:(this.reloadPage({redirectURL:g.getLicenseCenterURL()}),n={target:"redirect",args:this._faultCode});break;case h.USER_MISSING_USERID:this._faultCode="wra.missingUserID",n=this.clientContext.MW_CU?{target:"updateAccount",args:this._faultCode}:{target:"unauthorized"};break;default:return!0}}),this),e.every((function(e){switch(e.faultCode){case h.LOGIN_SERVICE_ERROR:case h.SERVICE_UNAVAILABLE:n={target:"topLevelFault",args:this._faultCode};break;case h.CONCURRENT_SESSION:this._faultCode="wra.concurrentLoginAttempt",n={target:"unauthorized",args:this._faultCode};break;case"Request.InvalidMessage":case h.INVALID_LOGIN_CREDENTIALS:case h.LOGIN_SERVICE_ERROR:this._faultCode="wra.userNotAuthorized",n={target:"unauthorized"};break;case"SecurityService.ExternalAuthRequired":this._faultCode="wra.ExternalAuthRequired",this.mode="VERIFYSTATUS",n={target:"updateAccount",args:this.faultCode};break;case h.SESSION_ALREADY_AUTHENTICATED:n={target:"gettingCurrentUser"};break;case h.USER_NOT_PROVISIONED:case h.GENERAL_SERVER_FAULT_CODE:n={target:"topLevelFault",args:"wra.generalFault"};break;default:return!0}}),this),n},_isAuthorized:function(e){return e.userInfo&&e.userInfo.userToken},retryAcquireComputeService:function(){},onUpdate:function(){},_onEnterState:function(e){switch(s.markStart("loginFlow."+e),this.timeSpentInCurrentState=s.getTime(),c.log("New state: ",e),this.currentState=e,this.onUpdate(),this.currentState){case"unauthorized":case"gettingCurrentComputeResource":case"computeResourceReady":this._isReadyToLogin.resolve()}},_onExitState:function(e){s.markEnd("loginFlow."+e);var t=s.getTime()-this.timeSpentInCurrentState;this._internalTiming[e]=t},doLoginWhenReady:function(e){this._isReadyToLogin.then(function(){switch(e&&e.type){case"guest":this.login("anonymous","anonymous");break;case"test":this.createMATLABSession()}}.bind(this))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1685),i(219),i(9059)],o=i.dj.d(n,(function(e,t,i){var n;return{getInstance:function(o){return n||(o.messageService||(o.messageService=t,o.messageService.start()),o.actionService=e.getActionService(o),n=new i(o))}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(368),i(1686)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e){e&&(this._channel=e.channel,this._messageService=e.messageService)},loadActions:function(){this._actionService=new t,this._actionService.addAction({id:i.importFolder,enabled:!0,callback:e=>{this.publish(this._channel+"/"+i.importFolder,e)}}),this._actionService.addAction({id:i.importFiles,enabled:!0,callback:e=>{this.publish(this._channel+"/"+i.importFiles,e)}}),this._actionService.addAction({id:i.runSuite,enabled:!0,callback:e=>{this.publish(this._channel+"/"+i.runSuite,e)}}),this._actionService.addAction({id:i.runTest,enabled:!0,callback:e=>{this.publish(this._channel+"/"+i.runTest,{nodeId:e.nodeId})}}),this._actionService.addAction({id:i.rerunFailed,enabled:!0,callback:e=>{this.publish(this._channel+"/"+i.rerunFailed,e)}}),this._actionService.addAction({id:i.debugTest,enabled:!0,callback:e=>{this.publish(this._channel+"/"+i.debugTest,{nodeId:e.nodeId})}}),this._actionService.addAction({id:i.openFile,enabled:!0,callback:e=>{this.publish(this._channel+"/"+i.openFile,{nodeId:e.nodeId})}}),this._actionService.addAction({id:i.openTest,enabled:!0,callback:e=>{this.publish(this._channel+"/"+i.openTest,{nodeId:e.nodeId})}})},executeAction:function(e,t){this._actionService.executeAction(e,t)},publish:function(e,t){this._messageService.publish(e,t)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(9060),i(304),i(318)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(e){this._fileDataService=e.fileDataService||{},this._pathDataService=e.pathDataService||{},this._cwdService=e.cwdService||{},this._messageService=e.messageService||{},this._actionService=e.actionService||{},this._channel=e.channel||{},this._uiContainer=e.uiContainer||{},this._actionService&&this._actionService.loadActions()},createView:function(){this._widget=new t,this._widget.testBrowserContainer.style.height="100%"},show:function(){const e=new i({panelId:"testbrowser",documentType:"test_document",title:"Test Browser",closable:!0});this._uiContainer.addPanel(this._widget,e)},hide:function(){this._uiContainer.removePanel("testbrowser")},startup:function(){this._widget._treeWidget._treeController.channel=this._channel,this._widget._treeWidget._treeController.setupTreeListeners(),this._widget.startup()},destroy:function(){this._widget.destroy()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(216),i(386),i(203),i(9061),i(9062),i(9065),i(9066),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return i([t,e],{templateString:n,idAttr:"data-tag",_toolbarWidget:{},_treeWidget:{},postCreate:function(){this.inherited(arguments),this._toolbarWidget=new o(this.testBrowserContainer),this._summaryWidget=new r(this.testBrowserContainer),this._treeWidget=new a(this.testBrowserContainer)},startup:function(){this.inherited(arguments),this._treeWidget.startup()},destroy:function(){this._treeWidget.destroy(),this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t){e.exports='<div id=${id} class="TestBrowser">\n <div data-dojo-attach-point="testBrowserContainer"></div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(1686),i(243),i(450),i(331),i(288),i(9063),i(493),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([],{constructor:function(e={}){this._tbContainer=e,this._controller=new a,this.initialize()},initialize:function(){this._container=document.createElement("div"),this._container.className="TestToolbarContainer";let e=document.createElement("span");e.classList.add("testToolbar"),this._addTestSuite(e,"addTest"),this._addRunSuite(e,"runSuite"),this._addRunSuiteDebug(e,"runSuiteDebug"),this._addRerunFailedTests(e,"runSuiteDebug"),this._addFilter(e,"treeFilter"),this._container.appendChild(e),this._tbContainer.appendChild(this._container)},_addTestSuite:function(e,i){let a=document.createElement("span");a.classList.add("toolbarTool",i),e.appendChild(a);let l=new o({}),c=new r({text:"from Files"});l.addChild(c);let d=new r({text:"from Folder"});l.addChild(d);let u=new n({menu:l,icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAACXBIWXMAAAsSAAALEgHS3X78AAABmElEQVQ4jaWSv4oUQRDGf7Pqis9hJvgAgom5L2CigcYGGhgoInqJgYkmBmcgiL7AYXaYGAiGgpmB2f7xZHdmdrpneqo/2Z5BwZtZPKykobrqx/dVVSaJ/43TY/0Hz64M0q/e/ZD9nRuFpIY775E2KG5YfvvE54OXg3WT3U4mCSBbIJvvqNoV2RngVF82Xjr601oEDNi+Iir2ueORZvL28eXBIW6tQI3UYG2g8jZYm1a8f/+Sbu0dQjbtxQkUiDZD9hPFI2RLJtPzqC1RXSJfEf2GN/uvOiVVbcT2O2TnenHWKbASKUcxB5W07hC5JXG9wIoZbXFEVU87iNtC7AdZdrYfZEwWUNUDVh0sFERXomaDQkWos9T7G5LWuLWTTUCdHeSSggRoV8itwedEn2Pe4yul3jSTezcuDg72yYub3bGFErkVjx58HN/O09dfjp3y7WsXFMMCNQ75AnyBa4zn777++9n7piWuZ9D45D/6dcqNKhmGGDGfo+ASxOo65U4GqQ0r5liwrRgar5Q7EaQOLdcfzsa+/wTwCxCTJINNEhvwAAAAAElFTkSuQmCC",iconAlignment:"left"});u.placeAt(a),s.createTooltip({referenceNode:u.domNode,content:{text:"import tests"}}),u.startup(),c.on("click",()=>{this._controller.executeActionCallback(t.importFiles)}),d.on("click",()=>{this._controller.executeActionCallback(t.importFolder)})},_addRunSuite:function(e,n){let o=document.createElement("span");o.classList.add("toolbarTool",n),e.appendChild(o);let r=new i({icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAACP0lEQVQ4y5WTTUhUcRTFz6iLwKKgNrXSKExQG7IwcJE7oaWLNrVoFQShk+DCRRQIUVA2RdQyIYpwFmrFbMoS7AOkzNRQwvwgJGlG5zlv3pv3/7/70WJMMVL0wl3ec+85l19EVdFw5fgsChUb6PjUi+2UqqK+PaokgSaHE9p0s/FDfXu0TFWxlYaqoq6tWllCNexqyp3RGz3tWtdWHa9rq96zJYHa1kplseraeXXMtGbNnI7N9+uZW41ubWvl+c0EigCAiBGKB5YAeUpjyXzH3t2l6LzQsbO56eyjaEvFSLSlouF/EZQAADEj4AysuAjFg+Usls0MIpFiNNScRO3hqqP3erveVl061AcgNn5/6m/oiKgqjlws14HbiZXhZQTsIKAlBLwIyy5KS8qwb0cNhqY+I9792HVctxNAfPLhjLNigZCn9MqQA8tZhOIiZA8BL2M+N4zRVC/KD+zHg8vXd506duIqEcXWWchTCiQBQvEQigvD2YIlElgWBGEaC7kXKC06CN94IOb1GfiUAosBaR4h52DFhSELwwJLCsuCL+O/8HrwXdYYugMgviZAhQtYLEgDkPiwJDAsMCT4nfHQ/fIb5n5m+gDEFp6kZ//5AsGnFEQYJAKSwkbXC9H/8QdeDU59BRBLP3MGNnyjby1EARYFiWBiOo2nfSPuYsZvdhJu10YorFrwLUNUkVrykUiOYmxy4S6Aa7ke39mMpbULQkbyzQQGh2be5zxzLnhuZrcCY0RVUXK6eBVnSvK2cP4DRUrgdLkK5GAAAAAASUVORK5CYII="});s.createTooltip({referenceNode:r.domNode,content:{text:"Run Current Suite"}}),r.placeAt(o),r.startup(),r.on("click",()=>{this._controller.executeActionCallback(t.runSuite)})},_addRunSuiteDebug:function(e,t){let n=document.createElement("span");n.classList.add("toolbarTool",t),e.appendChild(n);let o=new i({icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsSAAALEgHS3X78AAABiElEQVQokXWQSyiEURTHj+lLFjQaxcqC1MyORnmMNCMbo9SUDQvMCjsjjxJKVoqdWJNCsZCUksWXUB41ozFjGiNJeUwNvjF9j/sa3Tsbn8fZ/Lrd3zn/e26ee7opBAB+efaY88/qnmvPehwekGMyWChm1RWFpcHmCdfMfw0lBTYY8I0L8gZYHFqGrlpvwDvpCbtGG2p+NmCMIGO8CFooYfCm3kJHq8e6MDhWbreVBusDdaY0hHXhcEo84UO9zd1YwDrc54OzYHSwJdDY+Ylxz+XSZQhhTTicEuMNWsL0BLsjv2yqym1d3T4/cfY75yvLioRjEAQSIQze9ZdfixKSBR1jIIQVI4yFwylRTOFdRSY5Fn17PTx6QhqmvZG1sNw20jDEHYQZSIwnaIYQDY0qB/uP1uekugkAMzcbkQ+xNKHC4ZQoP+gEri9SSjyaSiNMffGtmPw90UA5h1Msvbt+BxlFX+FTEztxMdX0rYRBSieCEiXsQUmp/vu9hGnq90orOlydJiGt6PAFsK7ypkekBZkAAAAASUVORK5CYII="});o.placeAt(n),s.createTooltip({referenceNode:o.domNode,content:{text:"Debug Tests"}}),o.startup(),o.on("click",()=>{console.log("'One Line Text' Push Button was clicked!")})},_addRerunFailedTests:function(e,n){let o=document.createElement("span");o.classList.add("toolbarTool",n),e.appendChild(o);let r=new i({icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsSAAALEgHS3X78AAABiElEQVQokXWQSyiEURTHj+lLFjQaxcqC1MyORnmMNCMbo9SUDQvMCjsjjxJKVoqdWJNCsZCUksWXUB41ozFjGiNJeUwNvjF9j/sa3Tsbn8fZ/Lrd3zn/e26ee7opBAB+efaY88/qnmvPehwekGMyWChm1RWFpcHmCdfMfw0lBTYY8I0L8gZYHFqGrlpvwDvpCbtGG2p+NmCMIGO8CFooYfCm3kJHq8e6MDhWbreVBusDdaY0hHXhcEo84UO9zd1YwDrc54OzYHSwJdDY+Ylxz+XSZQhhTTicEuMNWsL0BLsjv2yqym1d3T4/cfY75yvLioRjEAQSIQze9ZdfixKSBR1jIIQVI4yFwylRTOFdRSY5Fn17PTx6QhqmvZG1sNw20jDEHYQZSIwnaIYQDY0qB/uP1uekugkAMzcbkQ+xNKHC4ZQoP+gEri9SSjyaSiNMffGtmPw90UA5h1Msvbt+BxlFX+FTEztxMdX0rYRBSieCEiXsQUmp/vu9hGnq90orOlydJiGt6PAFsK7ypkekBZkAAAAASUVORK5CYII="});r.placeAt(o),s.createTooltip({referenceNode:r.domNode,content:{text:"Rerun Failed Tests"}}),r.startup(),r.on("click",()=>{this._controller.executeActionCallback(t.rerunFailed)})},_addFilter:function(e,t){let i=document.createElement("span");i.classList.add("toolbarTool",t),e.appendChild(i);let a=new o({}),l=new r({text:"Show All",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAABs0lEQVQ4jaWTwUocQRCG/+lu8Oxr+AQe9gmC3nwEyR7iKU8gRjAPoAf3KEgOQvCYiy8gPoIQIhiJu27QdXe6Z7qqQtWMo4seFjNQDDNdf/VXf3UX/X5f8B9PYGYMBoOFKpRlQowaEWWs8HVvB46IFt7eeWfhvUfwDqoNRNwlfD7/a++UKlz/ucPpxspcAV8A3hUoiiZUG5jnCXKd8TCZYhKTfW9tfXpFsr29awVUO0fw+2aImhn3s4jbx6n9298/6NarqjY6DX2MgF4QXA7HEGZMqhrTup7blYlNoKZrjohAtUEXciaE4HGxufqmecyCOmczzYqIWAF+8kDH4n2AN4cdnHMmFBZLzirMhExNkWzBzx7ofEPIKH8coni8A4+ugNEvLH85g4jit6JMRpJr6miMoIwRIQRgdAWpZpDyAUgRMVZYW//wqqWjo29WtCPQRO8zloY/gVwBs3swCWJKODn53rbCePKLlMI8aQlSTNb70vgGyqxiSgKKCWw3RTr3VWQ+5JZAF5p+COOPx2agRqG69jBpUXNdR0fNCJvpMIKa8nJczclc7H6otuj1eu+/zgD+AUCdc9vE404uAAAAAElFTkSuQmCC"});a.addChild(l);let c=new r({text:"Show Passed",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALJJREFUeNpiZICBmQwBQLIeiA0YEOACEDcypDNsAHEYoQoboApxAZCGBkaoiesZCINAJgImMiSoJcCY9UwwNzpIOWAonO8wn6Hfqp9BgVcBxDUAKWYIUAhg2O+zH0wjKwTxHTc7Mjz4/AAeCv9BOGF/wv/3P9//N1hj8H/+zflwNkwehFmgwWOw4NYCsN7zwecZPvz6ADbxwtsLyK66gBEaIKtB1qIpBIcGieFMQgwCBBgAw7lNGatmeEQAAAAASUVORK5CYII="});a.addChild(c);let d=new r({text:"Show Failed",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKdJREFUeNqUUcENwjAMPPffWXiwQEZoN+gmKXt0hzJCB6ASPHkxAE8GML7IFXUkJDjJcS4+R4lPVBXEKtJZGi0O+ODGs6PqmaRxIUVzJYTz2eto/MZM0qYUlDuei+4CXC30npISj2FQcmaC5+TUwTdB8Jym0LhFEDM2IXNd+/vmn98stnQ+tvL717KEaex4LzTF55jxHSczZiymcMNOdwyVg73X8RZgAEhArTgkQTqMAAAAAElFTkSuQmCC"});a.addChild(d);let u=new r({text:"Show Incomplete",icon:"add_16"});a.addChild(u);let h=new r({text:"Show NotRun",icon:"add_16"});a.addChild(h);let p=new n({menu:a,icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAACLklEQVQ4EZWSP2zTQBTGP5+dvzglgUSoYmEpA+GPqnQCxAB0Z0BUsLSh3TohWMpcsTQRgoUlQcoQJaqABUFRFipAKmMKYqCojQSktBA7JdhxYt9d0FkUpSVF7TfcvXt63+/ePZ3U6XSQSt89AuCSTMiwBCT8/oDh8XhURZH3EYn4HUoNx7F/WpYVlCSp7DD2HMD8rZs3ygoAKLK8lBgcNI6fiEc6ANa/rR1yHBuUUnDOwRkPO4yFg6oK45cxXKmsnKv9qMkAPC6gTw3Z8fixiGmaeDE3h49Ln6DpGgzDBGMUPp8PkXAYRwcGcPrMWQwlhnylUslyLxdLSA1eKRSKT0eujpCxZBKEEIhOJEkCYwx2uw3KGHS9jmp1FfMvn3HG6WXhdWcglM1kH3oVT/L8xQtotVpotSx3f18uu2YQAlmWXYht27mp21NjwkfwR+MT49e/rlY/L5bL4Iy572+32mhaFprNpgur63U0Go0vm+YtACFN00+9ev2GaVoNXq8P/kAAkQMHsT8cgQQJa+vfmWk2T3Z7tgBS6ZkNRZZHHz1+whnnCASDiMaiCPWFsLxS6XQ4GxU1OwKEpu9M5wkhxUI+j7YYHqVYWHgLzllhJp3Kb69XtieEdF2fBHAtGovBMJuo1+siPdmr9p8OhDLZzIbjOH/PIha5XQM2Tb3i3QNoF6Ar3nMHH94t/reDnkMUEl/4wf17WK5U6OH+/tyeAX2qSgkhueLs7MSO1wP4DV8UFY73eIzXAAAAAElFTkSuQmCC",iconAlignment:"left"});p.placeAt(i),s.createTooltip({referenceNode:p.domNode,content:{text:"Filter tests"}}),p.startup(),l.on("click",()=>{this._controller.clearFilter()}),c.on("click",()=>{this._controller.filter("PASS")}),d.on("click",()=>{this._controller.filter("FAIL")}),u.on("click",()=>{this._controller.filter("INCOMPLETE")}),h.on("click",()=>{this._controller.filter("NOTRUN")})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2723),i(1685)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(){this._treeStore=t.getStore()._treeStore,this._actionService=i.getActionService()},executeActionCallback:function(e){this._actionService.executeAction(e,{nodeId:[]})},filter:function(e){this._treeStore.filter({field:"status",value:e})},clearFilter:function(){this._treeStore.clearFilter()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(350),i(315)],o=i.dj.d(n,(function(e,t,i){return e([],{constructor:function(){this._treeStore=t.create([],Object.assign({},{type:i.TREE}))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(493),i(318)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e={}){this._tbContainer=e,this.initialize()},initialize:function(){this._container=document.createElement("div"),this._container.className="TestSummaryContainer";let e=document.createElement("span");e.classList.add("testSummary");let t=document.createElement("span");t.classList.add("testSummarySection","testsummary"),t.innerText="Tests",e.appendChild(t),this._addSummaryElement(e,"passed","iconTestStatusPassed"),this._addSummaryElement(e,"failed","iconTestStatusFailed"),this._addSummaryElement(e,"incomplete","iconTestStatusIncomplete"),this._container.appendChild(e),this._tbContainer.appendChild(this._container)},_addSummaryElement:function(e,i,n){let o=document.createElement("span");o.classList.add("testSummarySection","testinfo",i),o.innerText="0",e.appendChild(o);let r=document.createElement("span");r.classList.add("testSummarySection",n),e.appendChild(r),t.createTooltip({referenceNode:r,content:{text:i}})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(531),i(2723),i(9067),i(9068),i(9078),i(318)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e([],{constructor:function(e={}){this._cmm={},this._widget={},this._tbContainer=e,this.initialize()},initialize:function(){let e={dataTestId:"myTree",plugins:[t.PLUGINS.SingleNodeSelection,t.PLUGINS.Filter,t.PLUGINS.ContextMenu],renderer:new o};this._dataStore=i.getStore()._treeStore,this._widget=new t(this._dataStore,e),this._placeInContainer(),this._cmm=new r,this._widget.on("contextMenu",e=>{this._cmm.build(e),this._cmm.show(e)}),this._treeController=new n(this._widget,this._dataStore)},_placeInContainer:function(){this._container=document.createElement("div"),this._container.className="TestTreeContainer",this._container.appendChild(this._widget.domNode),this._tbContainer.appendChild(this._container)},startup:function(){this._container.style.height="100%",this._widget.startup()},destroy:function(){this._widget.destroy(),this._cmm.contextMenu.destroyRecursive()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(219)],o=i.dj.d(n,(function(e,t){return e([],{constructor:function(e={},i={}){this._widget=e,this._store=i,this.messageService=t,this.messageService.start(),this.channel={}},setupTreeListeners:function(){this.messageService.subscribe(this.channel+"/CREATEVIEW",e=>{this._store._flattenedTree.forEach(async e=>{await this._store.remove(null,e)});let t=e.data[0];for(let e in t){let i=t[e];void 0!==i.parent&&("TESTFOLDER"!==i.type&&("TESTFILE"===i.type&&(i.parent=null),this._store.add({id:i.parent},i)))}let i=t.reduce((function(e,t){return e+("TESTPOINT"===t.type)}),0);document.getElementsByClassName("incomplete")[0].innerText=i.toString()}),this.messageService.subscribe(this.channel+"/UPDATEVIEW",e=>{let t=e.data[0],i=e.data[1],n=e.data[2],o=e.data[3];void 0===t.parent&&(e.parent=null),this._store.update({id:t.parent},{id:t.id},t),document.getElementsByClassName("passed")[0].innerText=i.toString(),document.getElementsByClassName("failed")[0].innerText=n.toString(),document.getElementsByClassName("incomplete")[0].innerText=o.toString()}),this.messageService.subscribe(this.channel+"/UPDATETREENODE",e=>{let t=e.data[0];this._store.update({id:t.parent},{id:t.id},t)})},_addChildListener:function(e){var t=e.target,i=e.data.child;if(i.parent=i._parent,i.id=i._id,i.label="",i.status="","TESTFOLDER"===i._type)return this._store.add({id:null},i),void this._addTreeStructureListeners(i);this._store.add({id:t.id},i),this._addTreeStructureListeners(i)},_removeRootListener:function(){this._store._flattenedTree.forEach(async e=>{await this._store.remove(null,e)})},_propertySetListener:function(e){let t=e.target,i=e.data.key,n=e.data.newValue;t[i]=n,"TESTSUITE"!==t._type&&("TESTSUITE"!==t._parent._type?this._store.update({id:t.parent},{id:t.id},t):this._store.update({id:null},{id:t.id},t))},_addTreeStructureListeners:function(e){e.addEventListener("childAdded",this._addChildListener,this),e.addEventListener("propertySet",this._propertySetListener,this)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(9069),i(661),i(9076)],o=i.dj.d(n,(function(e,t,i,n){return e(null,{constructor:function(e={}){this._previewWidget=e},getDomNode:function(e){var t=document.createElement("span");t.classList.add("testTreeNode");let i=document.createElement("span");return i.classList.add("iconLabelContainer"),t.appendChild(i),this._addIcon(i,e),this._addLabel(i,e),this._addPreview(t,e),t},_addIcon:function(e,t){let n=document.createElement("span");if(n.classList.add("iconNode"),e.appendChild(n),"INPROGRESS"!==t.status){switch(t.type){case"TESTFOLDER":n.classList.add("iconTestFolder");break;case"TESTPARENT":n.classList.add("iconTestFile");break;case"TESTCASE":n.classList.add("iconTestCase")}switch(t.status){case"PASS":n.classList.add("iconTestStatusPassed");break;case"FAIL":n.classList.add("iconTestStatusFailed");break;case"INCOMPLETE":n.classList.add("iconTestStatusIncomplete")}}else{let e=i({type:"spinner",size:"xsmall"});n.appendChild(e)}},_addLabel:function(e,t){let i=document.createElement("span");i.classList.add("labelNode"),i.textContent=t.label,e.appendChild(i)},_addPreview:function(e,i){let o=document.createElement("span");o.classList.add("testPreviewSpan"),o.textContent="...",e.appendChild(o);let r=new n;r._updateContent(i),setTimeout(()=>{let e={referenceNode:o,content:r.domNode,trigger:"click",placement:"bottom"},i=t(e);document.body.appendChild(i)},0)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1336),i(9070),i(1335),i(2724),i(1029),i(1687),i(1688),i(9074),i(9075)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){"use strict";return i({name:"mw-popout",widgetClass:class extends e{static get properties(){return{referenceNode:{type:Object,reflect:!1,attribute:!1},content:{type:Object,reflect:!1,attribute:!0},referenceSelector:{type:String,reflect:!0,attribute:!0},open:{type:Boolean,reflect:!0,attribute:!0},placement:{type:String,reflect:!0,attribute:!0},trigger:{type:String,reflect:!0,attribute:!0}}}constructor(){super(),this._referenceNode=null,this._open=!1,this._trigger="",n.setState(o.IDLE,this),this._referenceClicked=!1,this._hoverTimeOut=[],this._focusTimeOut=[],this._referenceSelector="",this._clickTriggerHandler=this._clickTriggerHandler.bind(this),this._handleHoverWithinPopout=this._handleHoverWithinPopout.bind(this),this._closeHandlerHover=this._closeHandlerHover.bind(this),this._closeHandlerFocus=this._closeHandlerFocus.bind(this),this._focusTriggerHandler=this._focusTriggerHandler.bind(this),this._hoverTriggerHandler=this._hoverTriggerHandler.bind(this),this._handleKeyPress=this._handleKeyPress.bind(this),this._referenceObserver=null,this.trigger="",this.placement="auto";let e=this.querySelector("mw-popout > [slot=content]");if(e&&(this.content=e),!this.content){let e=document.createElement("div");e.slot="content",this.content=e}}_attachTriggerListeners(e){e===a.HOVER?(this._addFocusTriggerListeners(),this._addHoverTriggerListeners()):e===a.CLICK&&this._addClickTriggerListeners()}set trigger(e){let t=this._trigger;!e||e&&!s.isTriggerValid(e)?this._trigger="":(this._attachTriggerListeners(e),this._trigger=e),this.requestUpdate("trigger",t)}get trigger(){return this._trigger}set referenceNode(e){if(n.has(e))throw new Error("A popout already exists for this reference node.Pass a new reference node");this._cleanUp(!0),n.add(this,e),this._referenceNode=e,this._attachTriggerListeners(this.trigger),this._referenceNode.setAttribute("aria-describedby",this.id);let{promise:t,observer:i}=s.observeElementInDom(this._referenceNode);this._referenceObserver=i,t.then(e=>{this._removeFromBody()})}get referenceNode(){return this._referenceNode}setContent(){if(!this.content){let e=this.querySelector("mw-popout > [slot=content]");e&&(this.content=e)}this.content||(this.open=!1),this._popperInstance&&this._popperInstance.update()}set open(e){let t=this._open;this._open!==e&&(e&&this._validate(),s.isContentValid(this.content)?this._open=e:this._open=!1,this._open?n.setState(o.SHOW,this):(n.setState(o.IDLE,this),this._destroyPopper()),this.requestUpdate("open",t))}get open(){return this._open}set referenceSelector(e){if(!s.isSelectorValid(e))throw new Error("Only class selector is supported at this moment.");let t=document.querySelector(e);this.referenceNode=t;let i=this._referenceSelector;this._referenceSelector=e,this.requestUpdate("referenceSelector",i)}get referenceSelector(){return this._referenceSelector}set placement(e){let t=this._placement;!e||e&&!s.isPlacementValid(e)?this._placement="auto":this._placement=e,this.requestUpdate("placement",t)}get placement(){return this._placement}_handleKeyPress(e){e.keyCode===r.TAB&&e.shiftKey&&(this.open=!1,n.clearState(o.CLOSED_EXTERNALLY),n.clearState(o.CURRENT_ACTIVE_ELEMENT)),e.keyCode===r.TAB&&!1===this.open&&(this._clearTimeoutsAndEvents(),n.clearState(o.CLOSED_EXTERNALLY),n.clearState(o.CURRENT_ACTIVE_ELEMENT)),e.keyCode===r.ENTER&&this.trigger===a.CLICK&&(this.open=!0)}_clickTriggerHandler(){if(!s.isContentValid(this.content))return n.clearState(o.CURRENT_ACTIVE_ELEMENT),this.open=!1,void(this._referenceClicked=!1);this._type=a.CLICK,!this._referenceClicked||n.hasState(o.CLOSED_EXTERNALLY,this)&&!n.hasState(o.CURRENT_ACTIVE_ELEMENT,this)?(n.clearState(o.CLOSED_EXTERNALLY),n.setState(o.CURRENT_ACTIVE_ELEMENT,this),this.open=!0,this._referenceClicked=!0):(n.clearState(o.CURRENT_ACTIVE_ELEMENT),this.open=!1,this._referenceClicked=!1)}_focusTriggerHandler(){if(n.hasState(o.CLOSED_EXTERNALLY,this))return void n.clearState(o.CLOSED_EXTERNALLY);if(n.hasState(o.CURRENT_ACTIVE_ELEMENT,this)&&this._type!==a.HOVER)return void n.clearState(o.CURRENT_ACTIVE_ELEMENT);if(!s.isContentValid(this.content))return;if(this.open)return void n.enableFocusManagement(this,{referenceNode:this._referenceNode});this._type=a.FOCUS,n.setState(o.CURRENT_ACTIVE_ELEMENT,this),n.setState(o.WAITING,this);let e=setTimeout(()=>{n.setState(o.SHOW,this),this.open=!0},500);this._focusTimeOut.push(e)}_closeHandlerFocus(e){this.contains(e.currentTarget)||this._referenceNode.contains(e.currentTarget)||(this._clearTimeoutsAndEvents(),this.open=!1)}_handleHoverWithinPopout(){this.open=!0}_hoverTriggerHandler(){if(this.open||!s.isContentValid(this.content))return;this._type=a.HOVER,n.setState(o.WAITING,this);let e=setTimeout(()=>{n.setState(o.SHOW,this),this.open=!0},500);this._hoverTimeOut.push(e)}_closeHandlerHover(e){let t=e.clientX,i=e.clientY,r=document.elementFromPoint(t,i);this.contains(r)||this._referenceNode.contains(r)||(n.handleFocus(this),this._clearTimeoutsAndEvents(),n.clearState(o.CLOSED_EXTERNALLY),n.setState(o.CURRENT_ACTIVE_ELEMENT,this),this.open=!1)}_addClickTriggerListeners(){this._referenceNode.addEventListener("click",this._clickTriggerHandler),this._referenceNode.addEventListener("keydown",this._handleKeyPress)}_removeClickTriggerListeners(){this._referenceNode.removeEventListener("click",this._clickTriggerHandler),this._referenceNode.removeEventListener("keydown",this._handleKeyPress)}_addFocusTriggerListeners(){this._referenceNode.addEventListener("focus",this._focusTriggerHandler),this.addEventListener("blur",this._closeHandlerFocus),this._referenceNode.addEventListener("keydown",this._handleKeyPress),this._referenceNode.addEventListener("blur",this._closeHandlerFocus)}_addHoverTriggerListeners(){this._referenceNode.addEventListener("mouseenter",this._hoverTriggerHandler),this.addEventListener("mouseenter",this._handleHoverWithinPopout),this.addEventListener("mouseleave",this._closeHandlerHover),this._referenceNode.addEventListener("mouseleave",this._closeHandlerHover)}_removeFocusTriggerListeners(){this._referenceNode.removeEventListener("focus",this._focusTriggerHandler),this.removeEventListener("blur",this._closeHandlerFocus),this._referenceNode.removeEventListener("keydown",this._handleKeyPress),this._referenceNode.removeEventListener("blur",this._closeHandlerFocus)}_removeHoverTriggerListeners(){this._referenceNode.removeEventListener("mouseenter",this._hoverTriggerHandler),this.removeEventListener("mouseenter",this._handleHoverWithinPopout),this.removeEventListener("mouseleave",this._closeHandlerHover),this._referenceNode.removeEventListener("mouseleave",this._closeHandlerHover)}_validate(){if(!this._referenceNode)throw new Error("A valid referenceSelector must be provided to open a popout");if(!document.body.contains(this.renderRoot))throw new Error("Popout must be appended to document.body to open it")}_clearTimeoutsAndEvents(){this._hoverTimeOut&&clearTimeout(this._hoverTimeOut.pop()),this._focusTimeOut&&clearTimeout(this._focusTimeOut.pop())}_destroyPopper(e){this._popperInstance&&(this._popperInstance.destroy(),this._popperInstance=null,n.disableFocusManagement(this,{referenceNode:this._referenceNode,destroy:e}))}_detachEventListeners(){this.trigger===a.HOVER&&(this._removeFocusTriggerListeners(),this._removeHoverTriggerListeners()),this.trigger===a.CLICK&&this._removeClickTriggerListeners()}_cleanUp(e){n.has(this._referenceNode)&&(this._detachEventListeners(),this._referenceNode.hasAttribute("aria-describedby")&&this._referenceNode.removeAttribute("aria-describedby"),this._destroyPopper(!0),n.remove(this._referenceNode),s.stopObservingElement(this._referenceObserver),n.clearAllState(this),this.open&&(this.open=!1),n.clearState(o.IDLE,this),n.has(o.CURRENT_ACTIVE_ELEMENT,this)&&n.clear(o.CURRENT_ACTIVE_ELEMENT),this._clearTimeoutsAndEvents(),this._referenceNode=null,this._referenceClicked=!1,this._hoverTimeOut=[],this._focusTimeOut=[],this._referenceObserver=null,e?this._referenceSelector&&(this._referenceSelector=""):(this._resetPropsAndAttributes(),this._destroyed=!0,this.emit("destroy",{})))}_removeFromBody(){if(document.body.contains(this.renderRoot)){this.renderRoot.parentNode.removeChild(this.renderRoot)}this._destroyed||this._cleanUp()}_resetPropsAndAttributes(){this.content=null,this.open=!1,this.trigger="",this._referenceSelector=""}show(){this.open=!0}close(){this.open=!1}_createPopper(){this._popperInstance||(this._popperInstance=l.createPopper(this._referenceNode,this.firstElementChild,{placement:this.placement,modifiers:s.getPopperModifiers(this.placement),strategy:"fixed"}),n.enableFocusManagement(this,{referenceNode:this._referenceNode}))}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._cleanUp()}firstUpdated(){if(this.hasAttribute("role")||this.setAttribute("role","tooltip"),!this.hasAttribute("id")){let e="mw-popout"+s.generateUuid();this.setAttribute("id",e)}this._referenceNode&&this._referenceNode.setAttribute("aria-describedby",this.id)}update(e){super.update(e),this.setContent(),e.has("open")&&!1===this.open&&this._destroyPopper()}render(){let e,i,n;return this.content&&"content"===this.content.slot?e=this.content:this.content&&"string"!=typeof this.content?(this.content.setAttribute("slot","content"),e=this.content):this.content&&"string"==typeof this.content&&(e=t`<div slot="content">${this.content}</div>`),e?(i=t`<div class="mw-popout-content">${e}</div>`,n=t`<div id="${"mw-popout-arrow"}" data-popper-arrow></div>`,t`
+ <div class="mw-popout-container" tabindex='0'>
+ ${i}
+ ${n}
+ </div>`):null}updated(){if(this._open)document.body.contains(this.renderRoot)||document.body.appendChild(this.renderRoot),this._createPopper(),this.firstElementChild.setAttribute("open",!0),this._updatedOpen||(this.emit("open",{}),this._updatedOpen=!0);else{if(this.firstElementChild&&this.firstElementChild.hasAttribute("open")&&this.firstElementChild.removeAttribute("open"),this._destroyed&&document.body.contains(this.renderRoot)){this.renderRoot.parentNode.removeChild(this.renderRoot)}this._updatedOpen=!1}}}})}),e,t),e.exports=o},function(e,t,i){"use strict";var n,o;n=[i(1337)],o=i.dj.d(n,(function(e){return e.html}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(9072),i(2725),i(2726),i(1029),i(1687),i(1688)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";return new class{constructor(){this._currentPopout=null,this._currentReferenceNode=null,this._handleTab=this._handleTab.bind(this)}_handleTab(r){if(r.keyCode===o.TAB&&!r.shiftKey){let o=t.get(r.target);if(o){let t=e.getKeyboardFocusableElements(o);r.preventDefault(),e.trapFocus(o,t),this._currentPopout=o,e.isFocusInsidePopout(o)&&i.set(n.FOCUS_WITHIN,o)}}}set(t,o,a){if(a===r.HOVER){let t=e.getKeyboardFocusableElements(o),r=document.activeElement;e.trapFocus(o,t,r),this._currentPopout=o,e.isFocusInsidePopout(o)&&i.set(n.FOCUS_WITHIN,o)}else t.addEventListener("keydown",this._handleTab);document.activeElement===t&&(this._currentPopout=o,this._currentReferenceNode=t)}remove(e,i){if(e.removeEventListener("keydown",this._handleTab),!i){t.get(e)===this._currentPopout&&e.focus()}}handle(t){let o=!1;i.has(n.FOCUS_WITHIN,t)&&(o=!0),e.freeFocus(o,t),i.clear(n.FOCUS_WITHIN)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1687),i(9073)],o=i.dj.d(n,(function(e,t){"use strict";return class{static getKeyboardFocusableElements(e=document){return[...e.querySelectorAll('a, button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter(e=>!e.hasAttribute("disabled"))}static isFocusInsidePopout(e){let t=document.activeElement;return e===t||e.contains(t)}static trapFocus(i,n,o){let r,a=n[0],s=n[n.length-1];o&&a!==s||(i.setAttribute(t.FOCUSED,""),a.focus()),o&&document.activeElement===a&&i.setAttribute(t.FOCUSED,""),n[1]&&(r=n[1]),i.firstElementChild.addEventListener("keydown",(function(n){(n.keyCode===e.TAB||"Tab"===n.key)&&(n.shiftKey?(i.removeAttribute(t.FOCUSED,""),r&&document.activeElement===r&&(i.setAttribute(t.FOCUSED,""),s.focus()),n.preventDefault()):(i.removeAttribute(t.FOCUSED,""),document.activeElement===s&&(r?r.focus():i.setAttribute(t.FOCUSED,""),n.preventDefault())))}))}static freeFocus(e,i){e&&i.referenceNode.focus(),i.removeAttribute(t.FOCUSED)}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return Object.freeze({FOCUSED:"mwPopoutFocused"})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2724),i(1029)],o=i.dj.d(n,(function(e,t){"use strict";class i{static isElement(e){return e instanceof window.Element||e instanceof window.HTMLElement}static isSelectorValid(e){return"."===e.substring(0,1)}static observeElementInDom(e){let t,i=document.body.contains(e),n=new Promise((function(e,i){t=e})),o=new window.MutationObserver((function(n){document.body.contains(e)?i=!0:i&&(i=!1,t(e))}));return o.observe(document.body,{childList:!0,subtree:!0}),{promise:n,observer:o}}static stopObservingElement(e){e.disconnect()}static generateUuid(){return"xxxxxxxx".replace(/[xy]/g,(function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).toUpperCase()}static getElementZindex(e){return window.getComputedStyle(e).getPropertyValue("z-index")}static isPlacementValid(e){return["top","left","bottom","right","auto"].includes(e)}static isTriggerValid(e){return!("click"!==e&&"hover"!==e)}static isContentValid(e){let t=document.createElement("div");if(t.setAttribute("slot","content"),e){switch(typeof e){case"string":return!!e;default:return e.hasChildNodes()||e.textContent||!e.isEqualNode(t)}}return!1}static getOppositePlacement(e){return{left:"right",right:"left",bottom:"top",top:"bottom"}[e]}static getAltPlacement(e){return{left:["bottom","top"],right:["bottom","top"],bottom:["right","left"],top:["right","left"],auto:["right","bottom","left","top"]}[e]}static getPopperModifiers(e){let t,n=["right","bottom","left","top"];return t="auto"===e?n:[i.getOppositePlacement(e)].concat(i.getAltPlacement(e)),[{name:"offset",options:{offset:[0,12]}},{name:"preventOverflow",options:{altAxis:!0,padding:20,rootBoundary:"viewport"}},{name:"flip",options:{fallbackPlacements:t,allowedAutoPlacements:n,rootBoundary:"viewport",flipVariations:"true"}},{name:"arrow",options:{padding:15}}]}}return i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[t],o=i.dj.d(n,(function(e){"use strict";function t(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function i(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function n(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function o(e){return e instanceof i(e).Element||e instanceof Element}function r(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function a(e){return e?(e.nodeName||"").toLowerCase():null}function s(e){return(o(e)?e.ownerDocument:e.document).documentElement}function l(e){return t(s(e)).left+n(e).scrollLeft}function c(e){return i(e).getComputedStyle(e)}function d(e){var t=c(e),i=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function u(e,o,c){void 0===c&&(c=!1);var u=s(o),h=t(e),p=r(o),f={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(p||!p&&!c)&&(("body"!==a(o)||d(u))&&(f=function(e){return e!==i(e)&&r(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):n(e)}(o)),r(o)?((g=t(o)).x+=o.clientLeft,g.y+=o.clientTop):u&&(g.x=l(u))),{x:h.left+f.scrollLeft-g.x,y:h.top+f.scrollTop-g.y,width:h.width,height:h.height}}function h(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function p(e){return"html"===a(e)?e:e.assignedSlot||e.parentNode||e.host||s(e)}function f(e,t){void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(a(t))>=0?t.ownerDocument.body:r(t)&&d(t)?t:e(p(t))}(e),o="body"===a(n),s=i(n),l=o?[s].concat(s.visualViewport||[],d(n)?n:[]):n,c=t.concat(l);return o?c:c.concat(f(p(l)))}function g(e){return["table","td","th"].indexOf(a(e))>=0}function m(e){if(!r(e)||"fixed"===c(e).position)return null;var t=e.offsetParent;if(t){var i=s(t);if("body"===a(t)&&"static"===c(t).position&&"static"!==c(i).position)return i}return t}function _(e){for(var t=i(e),n=m(e);n&&g(n)&&"static"===c(n).position;)n=m(n);return n&&"body"===a(n)&&"static"===c(n).position?t:n||function(e){for(var t=p(e);r(t)&&["html","body"].indexOf(a(t))<0;){var i=c(t);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return t;t=t.parentNode}return null}(e)||t}var v="top",b="bottom",y="right",C="left",T=[v,b,y,C],E=T.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),S=[].concat(T,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),w=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function I(e){var t=new Map,i=new Set,n=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||function e(o){i.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(n){if(!i.has(n)){var o=t.get(n);o&&e(o)}})),n.push(o)}(e)})),n}function A(e){return e.split("-")[0]}function x(e,t){var i=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(i){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function N(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function L(e,o){return"viewport"===o?N(function(e){var t=i(e),n=s(e),o=t.visualViewport,r=n.clientWidth,a=n.clientHeight,c=0,d=0;return o&&(r=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=o.offsetLeft,d=o.offsetTop)),{width:r,height:a,x:c+l(e),y:d}}(e)):r(o)?function(e){var i=t(e);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(o):N(function(e){var t=s(e),i=n(e),o=e.ownerDocument.body,r=Math.max(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-i.scrollLeft+l(e),u=-i.scrollTop;return"rtl"===c(o||t).direction&&(d+=Math.max(t.clientWidth,o?o.clientWidth:0)-r),{width:r,height:a,x:d,y:u}}(s(e)))}function D(e,t,i){var n="clippingParents"===t?function(e){var t=f(p(e)),i=["absolute","fixed"].indexOf(c(e).position)>=0&&r(e)?_(e):e;return o(i)?t.filter((function(e){return o(e)&&x(e,i)&&"body"!==a(e)})):[]}(e):[].concat(t),s=[].concat(n,[i]),l=s[0],d=s.reduce((function(t,i){var n=L(e,i);return t.top=Math.max(n.top,t.top),t.right=Math.min(n.right,t.right),t.bottom=Math.min(n.bottom,t.bottom),t.left=Math.max(n.left,t.left),t}),L(e,l));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function M(e){return e.split("-")[1]}function P(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function O(e){var t,i=e.reference,n=e.element,o=e.placement,r=o?A(o):null,a=o?M(o):null,s=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case v:t={x:s,y:i.y-n.height};break;case b:t={x:s,y:i.y+i.height};break;case y:t={x:i.x+i.width,y:l};break;case C:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?P(r):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case"start":t[c]=Math.floor(t[c])-Math.floor(i[d]/2-n[d]/2);break;case"end":t[c]=Math.floor(t[c])+Math.ceil(i[d]/2-n[d]/2)}}return t}function R(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function k(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function F(e,i){void 0===i&&(i={});var n=i,r=n.placement,a=void 0===r?e.placement:r,l=n.boundary,c=void 0===l?"clippingParents":l,d=n.rootBoundary,u=void 0===d?"viewport":d,h=n.elementContext,p=void 0===h?"popper":h,f=n.altBoundary,g=void 0!==f&&f,m=n.padding,_=void 0===m?0:m,C=R("number"!=typeof _?_:k(_,T)),E="popper"===p?"reference":"popper",S=e.elements.reference,w=e.rects.popper,I=e.elements[g?E:p],A=D(o(I)?I:I.contextElement||s(e.elements.popper),c,u),x=t(S),L=O({reference:x,element:w,strategy:"absolute",placement:a}),M=N(Object.assign({},w,L)),P="popper"===p?M:x,F={top:A.top-P.top+C.top,bottom:P.bottom-A.bottom+C.bottom,left:A.left-P.left+C.left,right:P.right-A.right+C.right},B=e.modifiersData.offset;if("popper"===p&&B){var H=B[a];Object.keys(F).forEach((function(e){var t=[y,b].indexOf(e)>=0?1:-1,i=[v,b].indexOf(e)>=0?"y":"x";F[e]+=H[i]*t}))}return F}var B={placement:"bottom",modifiers:[],strategy:"absolute"};function H(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function V(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,r=t.defaultOptions,a=void 0===r?B:r;return function(e,t,i){void 0===i&&(i=a);var r,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},B,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],d=!1,p={state:l,setOptions:function(i){g(),l.options=Object.assign({},a,l.options,i),l.scrollParents={reference:o(e)?f(e):e.contextElement?f(e.contextElement):[],popper:f(t)};var r,s,d=function(e){var t=I(e);return w.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((r=[].concat(n,l.options.modifiers),s=r.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(s).map((function(e){return s[e]}))));return l.orderedModifiers=d.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,o=e.effect;if("function"==typeof o){var r=o({state:l,name:t,instance:p,options:n});c.push(r||function(){})}})),p.update()},forceUpdate:function(){if(!d){var e=l.elements,t=e.reference,i=e.popper;if(H(t,i)){l.rects={reference:u(t,_(i),"fixed"===l.options.strategy),popper:h(i)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<l.orderedModifiers.length;n++)if(!0!==l.reset){var o=l.orderedModifiers[n],r=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof r&&(l=r({state:l,options:s,name:c,instance:p})||l)}else l.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(e){p.forceUpdate(),e(l)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(r())}))}))),s}),destroy:function(){g(),d=!0}};if(!H(e,t))return p;function g(){c.forEach((function(e){return e()})),c=[]}return p.setOptions(i).then((function(e){!d&&i.onFirstUpdate&&i.onFirstUpdate(e)})),p}}var j={passive:!0};var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function W(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:Math.round(t*n)/n||0,y:Math.round(i*n)/n||0}}(a),h=u.x,p=u.y,f=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),m=C,T=v,E=window;if(d){var S=_(n);S===i(n)&&(S=s(n)),r===v&&(T=b,p-=S.clientHeight-o.height,p*=c?1:-1),r===C&&(m=y,h-=S.clientWidth-o.width,h*=c?1:-1)}var w,I=Object.assign({position:l},d&&U);return c?Object.assign({},I,((w={})[T]=g?"0":"",w[m]=f?"0":"",w.transform=(E.devicePixelRatio||1)<2?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",w)):Object.assign({},I,((t={})[T]=g?p+"px":"",t[m]=f?h+"px":"",t.transform="",t))}var G={left:"right",right:"left",bottom:"top",top:"bottom"};function z(e){return e.replace(/left|right|bottom|top/g,(function(e){return G[e]}))}var q={start:"end",end:"start"};function K(e){return e.replace(/start|end/g,(function(e){return q[e]}))}function X(e,t){void 0===t&&(t={});var i=t,n=i.placement,o=i.boundary,r=i.rootBoundary,a=i.padding,s=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?S:l,d=M(n),u=d?s?E:E.filter((function(e){return M(e)===d})):T,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var p=h.reduce((function(t,i){return t[i]=F(e,{placement:i,boundary:o,rootBoundary:r,padding:a})[A(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}function Y(e,t,i){return Math.max(e,Math.min(t,i))}function Q(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function $(e){return[v,y,b,C].some((function(t){return e[t]>=0}))}var J=[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=void 0===r||r,s=o.resize,l=void 0===s||s,c=i(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach((function(e){e.addEventListener("scroll",n.update,j)})),l&&c.addEventListener("resize",n.update,j),function(){a&&d.forEach((function(e){e.removeEventListener("scroll",n.update,j)})),l&&c.removeEventListener("resize",n.update,j)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=O({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,o=void 0===n||n,r=i.adaptive,a=void 0===r||r,s={placement:A(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,W(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,W(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];r(o)&&a(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});r(n)&&a(n)&&(Object.assign(n.style,s),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.offset,r=void 0===o?[0,0]:o,a=S.reduce((function(e,i){return e[i]=function(e,t,i){var n=A(e),o=[C,v].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,a=r[0],s=r[1];return a=a||0,s=(s||0)*o,[C,y].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(i,t.rects,r),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=i.mainAxis,r=void 0===o||o,a=i.altAxis,s=void 0===a||a,l=i.fallbackPlacements,c=i.padding,d=i.boundary,u=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=t.options.placement,_=A(m),T=l||(_===m||!f?[z(m)]:function(e){if("auto"===A(e))return[];var t=z(e);return[K(e),t,K(t)]}(m)),E=[m].concat(T).reduce((function(e,i){return e.concat("auto"===A(i)?X(t,{placement:i,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),S=t.rects.reference,w=t.rects.popper,I=new Map,x=!0,N=E[0],L=0;L<E.length;L++){var D=E[L],P=A(D),O="start"===M(D),R=[v,b].indexOf(P)>=0,k=R?"width":"height",B=F(t,{placement:D,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),H=R?O?y:C:O?b:v;S[k]>w[k]&&(H=z(H));var V=z(H),j=[];if(r&&j.push(B[P]<=0),s&&j.push(B[H]<=0,B[V]<=0),j.every((function(e){return e}))){N=D,x=!1;break}I.set(D,j)}if(x)for(var U=function(e){var t=E.find((function(t){var i=I.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return N=t,"break"},W=f?3:1;W>0;W--){if("break"===U(W))break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,o=i.mainAxis,r=void 0===o||o,a=i.altAxis,s=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,u=i.padding,p=i.tether,f=void 0===p||p,g=i.tetherOffset,m=void 0===g?0:g,T=F(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),E=A(t.placement),S=M(t.placement),w=!S,I=P(E),x="x"===I?"y":"x",N=t.modifiersData.popperOffsets,L=t.rects.reference,D=t.rects.popper,O="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R={x:0,y:0};if(N){if(r){var k="y"===I?v:C,B="y"===I?b:y,H="y"===I?"height":"width",V=N[I],j=N[I]+T[k],U=N[I]-T[B],W=f?-D[H]/2:0,G="start"===S?L[H]:D[H],z="start"===S?-D[H]:-L[H],q=t.elements.arrow,K=f&&q?h(q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=X[k],$=X[B],J=Y(0,L[H],K[H]),Z=w?L[H]/2-W-J-Q-O:G-J-Q-O,ee=w?-L[H]/2+W+J+$+O:z+J+$+O,te=t.elements.arrow&&_(t.elements.arrow),ie=te?"y"===I?te.clientTop||0:te.clientLeft||0:0,ne=t.modifiersData.offset?t.modifiersData.offset[t.placement][I]:0,oe=N[I]+Z-ne-ie,re=N[I]+ee-ne,ae=Y(f?Math.min(j,oe):j,V,f?Math.max(U,re):U);N[I]=ae,R[I]=ae-V}if(s){var se="x"===I?v:C,le="x"===I?b:y,ce=N[x],de=Y(ce+T[se],ce,ce-T[le]);N[x]=de,R[x]=de-ce}t.modifiersData[n]=R}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=A(i.placement),s=P(a),l=[C,y].indexOf(a)>=0?"height":"width";if(o&&r){var c=i.modifiersData[n+"#persistent"].padding,d=h(o),u="y"===s?v:C,p="y"===s?b:y,f=i.rects.reference[l]+i.rects.reference[s]-r[s]-i.rects.popper[l],g=r[s]-i.rects.reference[s],m=_(o),T=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,E=f/2-g/2,S=c[u],w=T-d[l]-c[p],I=T/2-d[l]/2+E,x=Y(S,I,w),N=s;i.modifiersData[n]=((t={})[N]=x,t.centerOffset=x-I,t)}},effect:function(e){var t=e.state,i=e.options,n=e.name,o=i.element,r=void 0===o?"[data-popper-arrow]":o,a=i.padding,s=void 0===a?0:a;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&x(t.elements.popper,r)&&(t.elements.arrow=r,t.modifiersData[n+"#persistent"]={padding:R("number"!=typeof s?s:k(s,T))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,a=F(t,{elementContext:"reference"}),s=F(t,{altBoundary:!0}),l=Q(a,n),c=Q(s,o,r),d=$(l),u=$(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}],Z=V({defaultModifiers:J});e.createPopper=Z,e.defaultModifiers=J,e.detectOverflow=F,e.popperGenerator=V,Object.defineProperty(e,"__esModule",{value:!0})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(216),i(215),i(9077),i(354),i(318)],o=i.dj.d(n,(function(e,t,i,n,o){return e([i,t],{templateString:n,idAttr:"data-tag",postCreate:function(){let e=new o;e.domNode.classList.add("contentSeparator"),this.bodyNode.insertBefore(e.domNode,this.richContentNode)},_updateContent:function(e){this.titleNode.textContent="Test Information: "+e.label,this.fileInfoNode.textContent="File Information: "+e.filepath,this.diagnosticNode.textContent="Diagnostic Information: "+e.diagnostics.diagnosticText}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="testPreview" data-dojo-attach-point="testPreviewNode">\n <div class="header" data-dojo-attach-point="headerNode">\n <div class="testIcon" data-dojo-attach-point="testIconNode"></div>\n <div class="title" data-dojo-attach-point="titleNode"></div>\n <div class="duration" data-dojo-attach-point="durationNode"></div>\n </div>\n <div class="body" data-dojo-attach-point="bodyNode">\n <div class="richContent" data-dojo-attach-point="richContentNode">\n <div class="fileInfo" data-dojo-attach-point="fileInfoNode"></div>\n <div class="diagnosticContent" data-dojo-attach-point="diagnosticNode"></div>\n </div>\n </div>\n <div class="footer" data-dojo-attach-point="footerNode">\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(317),i(288),i(515),i(354),i(1685),i(1686)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{constructor:function(){this._actionService=r.getActionService(),this._contextMenu=null},build:function(e){this._contextMenu&&this._contextMenu.destroyRecursive(),this._contextMenu=new t({maxHeight:200});let n,r=e.target.nodeId;n=new i({text:"Run Suite",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAB80lEQVQ4y8XTT2gTURAG8G+7K4a2aCkVQQmixD3kYCxGCxZM8SBIhILevIgXEbFxoSAUFAJ68CDBg3qUxoIVW1BBTK1Sq/jnIoLYiNBGW0wsSbt0t5vdbt97u+OhRFKTnHpwYC6/D4aBN08iImykmrDBkmJXDhgAngDQJq99MipBz9VoXa/ZgAuxNX3p4ZkutavQPbBfqwSNvKai/WHyfUHCd+nFl0d04nosG+0P9zRyIkJ1I5JQiXllMtwcWew3LdgzdHnoLEUSKunl+Xo+GEmobZUBUvjCHnqfGocjSiizPBS5Be2bVXyefYMbD+7haOdhnIwdWufJ9F1LN41U9k4uKYXOBWniZhqut7Q2hBfAvDJ2thxDq7ILt5/fwo/8DPpOd9f4yMTYU4VzAZPNgfkWXKHD4YuwmY28OYQAQtgkB1AsLtZ1zgUULgSW2Sy4b2PVM+BwBpt5+P5Tx7OXHxFq78DxziBs7vz1x2PvLHPZTRXul5IK4xwmm4PwfKwKH/O6jdFMFlNfi9BOHcSO4Ba0bgvgV8nCaCaLb9OlNABtYXjJALC2gbnCIXzCqw85jL+dnnJWWJ/n+K937+sAlCZkqtwYsSbX3UFzb4AuDh+hvee3W829Aa3yPI285g6UuGwocXlQictt1UEj/7el//4b/wD8LonrPjs3BAAAAABJRU5ErkJggg=="}),this._addMenuClickListener(n,a.runSuite,r),n=new i({text:"Run Test",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAACP0lEQVQ4y5WTTUhUcRTFz6iLwKKgNrXSKExQG7IwcJE7oaWLNrVoFQShk+DCRRQIUVA2RdQyIYpwFmrFbMoS7AOkzNRQwvwgJGlG5zlv3pv3/7/70WJMMVL0wl3ec+85l19EVdFw5fgsChUb6PjUi+2UqqK+PaokgSaHE9p0s/FDfXu0TFWxlYaqoq6tWllCNexqyp3RGz3tWtdWHa9rq96zJYHa1kplseraeXXMtGbNnI7N9+uZW41ubWvl+c0EigCAiBGKB5YAeUpjyXzH3t2l6LzQsbO56eyjaEvFSLSlouF/EZQAADEj4AysuAjFg+Usls0MIpFiNNScRO3hqqP3erveVl061AcgNn5/6m/oiKgqjlws14HbiZXhZQTsIKAlBLwIyy5KS8qwb0cNhqY+I9792HVctxNAfPLhjLNigZCn9MqQA8tZhOIiZA8BL2M+N4zRVC/KD+zHg8vXd506duIqEcXWWchTCiQBQvEQigvD2YIlElgWBGEaC7kXKC06CN94IOb1GfiUAosBaR4h52DFhSELwwJLCsuCL+O/8HrwXdYYugMgviZAhQtYLEgDkPiwJDAsMCT4nfHQ/fIb5n5m+gDEFp6kZ//5AsGnFEQYJAKSwkbXC9H/8QdeDU59BRBLP3MGNnyjby1EARYFiWBiOo2nfSPuYsZvdhJu10YorFrwLUNUkVrykUiOYmxy4S6Aa7ke39mMpbULQkbyzQQGh2be5zxzLnhuZrcCY0RVUXK6eBVnSvK2cP4DRUrgdLkK5GAAAAAASUVORK5CYII="}),this._addMenuClickListener(n,a.runTest,r),n=new i({text:"Debug Test"}),this._addMenuClickListener(n,a.debugTest,r);let s=new o({});this._contextMenu.addChild(s),n=new i({text:"Open File"}),this._addMenuClickListener(n,a.openFile,r),n=new i({text:"Open Test"}),this._addMenuClickListener(n,a.openTest,r)},_addMenuClickListener:function(e,t,i){e.on("click",()=>{this._actionService.executeAction(t,{nodeId:i,target:null,actionId:t})}),this._contextMenu.addChild(e)},show:function(e){this._contextMenu.openMenu({x:e.left,y:e.top})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(355),i(304),i(9080),i(219),i(291)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{_ADD_CHANNEL:"/figure/sidePanel/addPanel",_ACTIVATECONTEXT_CHANNEL:"/figure/sidePanel/activateContext",_docTypes:[],constructor:function(e){this.inherited(arguments),this.imports=e,this._docTypes.defaultfigure=!0,this._docTypes.embeddedfigure=!0,this._docTypes.figure=!0,this.imports&&this.imports.uiContainer&&(this._uiContainer=this.imports.uiContainer),this._uiContainer.on(i.CHILD_ADDED,t.hitch(this,(function(e){if("document"===e.childType&&this._isFigureDocument(e.properties.documentType)){let i=this._getChannelFromEvent(e);if(""!==i){let e="matlab.graphics.internal.sidepanel.createFigureChannelId";this._executeCallback(e,i),r.subscribe(this._ADD_CHANNEL+i,t.hitch(this,this._addSidePanel)),r.subscribe(this._ACTIVATECONTEXT_CHANNEL+i,t.hitch(this,this._activateSidePanelContext))}}})))},_executeCallback:function(e,t){this._mvm||(this._mvm=a.getMVM()),this._mvm.feval(e,0,[t])},_isFigureDocument:function(e){let t=this._docTypes[e];return null==t&&(t=!1),t},_getChannelFromEvent:function(e){let t="";return e.properties.channel?t=e.properties.channel:e.widget.content.data&&e.widget.content.data.channel?t=e.widget.content.data.channel:e.widget.content.id&&(t=e.widget.content.id),t},_activateSidePanelContext:function(e){let t=e.data;if(this._uiContainer.getChildWidget(t.PanelId)){let e=this._getFigureDocument(t.FigureId);this._deactivateContext(e,t.ContextId),this._activateContext(e,t.ContextId)}else this._addSidePanel(e)},_addSidePanel:function(e){let i=e.data,r=i.PanelId,a=i.ContextId,s=new n({region:i.Region,panelId:r,title:i.Title,isResizable:!0,isCollapsible:!0,isMaximizable:!1,closable:!0,isContextual:!0}),l=new o;l.createDivFigure(i.FigureData,s),l.startup();let c=this._getFigureDocument(i.FigureId);c&&(this._uiContainer._contextManager.register("Panels",{appId:c.properties.documentType,contextId:a,panelIds:[r]}),this._uiContainer.addPanel(l,s),s.watch(n.IS_OPEN,t.hitch(this,(function(e,t,i){if("isOpen"===e&&!0===t&&!1===i){let e=c.properties;e.get(n.IS_OPEN)&&e.get(n.IS_SELECTED)&&e.get(n.IS_SHOWING)&&this._deactivateContext(c,a)}})).bind(this)),this._activateContext(c,a))},_getFigureDocument:function(e){return this._uiContainer.getDocuments().find(t.hitch(this,(function(t){if(this._isFigureDocument(t.properties.documentType)){let i=this._getChannelFromEvent(t);return e===i}})))},_activateContext:function(e,t){let i=e.properties.get(n.ACTIVE_CONTEXTS)||[];i.includes(t)||(i=i.concat(t)),e.properties.set(n.IS_SELECTED,!0),e.properties.set(n.ACTIVE_CONTEXTS,i)},_deactivateContext:function(e,t){let i=e.properties.get(n.ACTIVE_CONTEXTS)||[];i=i.filter(e=>!e.includes(t)),e.properties.set(n.ACTIVE_CONTEXTS,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(227),i(204),i(230),i(215),i(339),i(1051),i(304),i(9081),i(2559),i(1627)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([n,o,d],{templateString:l,baseClass:"SidePanelDivFigure",_currentWidth:0,_currentHeight:0,constructor:function(){this._divFigureFactory=new c},postCreate:function(){this.inherited(arguments),this._busyIndicator=new r(r.SIZE.SMALL),this._busyIndicator.set("target",this.domNode),this._busyIndicator.show()},buildRendering:function(){this.inherited(arguments)},createDivFigure:function(e,t){e&&(this._properties=t,a.loadFiles(this._divFigureFactory.getCssFiles()),this._divFigure=this._divFigureFactory.createWidget({state:e,handler:this,div:this.domNode}),this._divFigure.startup(),this._divFigure.on("figurefitsizechanged",this._handleSizeChanged.bind(this)),window.addEventListener("resize",this._handleSizeChanged.bind(this)))},_handleSizeChanged:function(e){let t=this._divFigure.getParent().domNode;t.clientWidth===this._currentWidth&&t.clientHeight===this.clientHeight||(this._currentWidth=t.clientWidth,this._currentHeight=t.clientHeight,this._divFigure.resize({l:1,t:1,w:this._currentWidth,h:this._currentHeight}),this._divFigureMsgFromClientHandler.setPropertyValueFromClient("Position",[0,0,this._currentWidth,this._currentHeight]))},setPropertyValueFromServer:function(e,t){switch(e){case"Position":this._setPositionFromServer(t);break;case"Resize":this._setResizeFromServer(t);break;case"Title":this._setTitleFromServer(t);break;case"Visible":this._setVisibleFromServer(t);break;case"WindowState":this._setWindowStateFromServer(t);break;case"WindowStyle":this._setWindowStyleFromServer(t);break;default:throw new Error("Server attempt to set value of unsupported property: "+e)}},_setPositionFromServer:function(e){},_setResizeFromServer:function(e){},_setTitleFromServer:function(e){},_setVisibleFromServer:function(e){},_setWindowStateFromServer:function(e){},_setWindowStyleFromServer:function(e){},getPropertyValueFromClient:function(e){},handleEventFromServer:function(e,t){switch(e){case"windowClosed":this._windowClosed();break;case"widgetDestroyed":this._widgetDestroyed();break;case"figureControllerViewCreated":this._busyIndicator.hide(),this._handleSizeChanged();break;default:throw new Error("Attempt to process unsupported event from server: "+e)}},_windowClosed:function(){this._properties.set(s.IS_OPEN,!1)},_widgetDestroyed:function(){},registerMsgFromClientHandler:function(e){this._divFigureMsgFromClientHandler=e,this._watchInnerPosition=this._properties.watch(s.INNER_BOUNDS,this._handleSizeChanged.bind(this))},destroy:function(){this._watchInnerPosition.unwatch()}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="SidePanelDivFigure" id="sidePanel" data-test-id="side-panel" style="margin: 0 auto; width:100% !important; height:100%;"></div>'},function(e,t,i){var n,o;n=[i(204),i(219),i(9083),i(2727),i(9087),i(1263)],o=i.dj.d(n,(function(e,t,i,n,o,r){"use strict";var a="true"===r("messageBusIntegration");function s(s){var l=new i(t,s=null!=s?s:o,{jsonifyTopicPayload:!0,filterToBus:!0,messageBusIntegration:a,channelPrefix:r("channelPrefix","channelPrefix",n.DEFAULT_CHANNEL_PREFIX)}),c={start:e.hitch(l,"start"),stop:e.hitch(l,"stop"),channelPublish:e.hitch(l,"channelPublish"),channelSubscribe:e.hitch(l,"channelSubscribe"),channelUnsubscribe:e.hitch(l,"channelUnsubscribe"),flush:e.hitch(l,"flush"),isReady:e.hitch(l,"isReady"),whenReady:e.hitch(l,"whenReady"),scopeChannel:e.hitch(l,"scopeChannel"),disableMessageBusIntegration:function(){}};return a&&e.mixin(c,{mapTopic:e.hitch(l,"mapTopic"),topicPublish:e.hitch(l,"topicPublish"),topicSubscribe:e.hitch(l,"topicSubscribe"),topicUnsubscribe:e.hitch(l,"topicUnsubscribe"),disableMessageBusIntegration:e.hitch(l,"disableMessageBusIntegration")}),c}return e.mixin(s,s()),s}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(214),i(212),i(222),i(512),i(285),i(209),i(2727),i(1689)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){"use strict";function d(e){throw new Error(t.replace("Schema value for '{0}' is not a string array.",[e]))}function u(e,t){return t}return e([o],{jsonifyTopicPayload:!1,filterToBus:!1,messageBusIntegration:!0,channelPrefix:l.DEFAULT_CHANNEL_PREFIX,_messageService:null,_mappings:null,_topicSubscribers:null,_taskQueue:null,_externalTasks:null,_handshakeCompleted:!1,_initPromise:null,_clientId:-1,_javaEndPointId:-1,constructor:function(t,i,n){this._messageService=t,this._clientId=i,this._mappings={},this._topicSubscribers={},this._taskQueue=[],this._externalTasks=[],this.channels={},e.safeMixin(this,n)},start:function(){if(this._initPromise)return this._initPromise;var e=new n;if(this._messageService.start(),this._messageService.isConnected())this._init(e);else var o=i.after(this._messageService,"onConnected",t.hitch(this,(function(){o.remove(),this._init(e)}),!1));return this._initPromise=e.promise,e.promise},stop:function(){this._initPromise&&this._messageService.stop()},mapTopic:function(e,i,n){if(this._mappings.hasOwnProperty(e))throw new Error(t.replace("Topic '{0}' has already been mapped.",[e]));var o,r;if(function(e){for(var t in e)null!==e[t]&&(Array.isArray(e[t])||d(t),e[t].forEach((function(e){"string"!=typeof e&&d(t)})))}(i),null!=n){if(!n.hasOwnProperty("pack")||!n.hasOwnProperty("unpack"))throw new Error("Serializer must be an object with 'pack' and 'unpack' functions.");o=t.hitch(n,n.pack),r=t.hitch(n,n.unpack)}else o=u,r=u;this._mappings[e]={schema:i,pack:o,unpack:r}},topicPublish:function(e,t,i){var n;this._assertTopicMethodExists(e,t);try{n=this._mappings[e].pack(t,i)}catch(e){throw e.context="Serialization failed during messaging",e}this._validateComplianceWithMappingSchema(e,t,n),this._publishMappedTopicMessage(e,t,n)},topicSubscribe:function(e,i,n){this._assertTopicIsMapped(e),this._enqueueTask((function(){var o=this._topicSubscribers[e];o||(o=[],this._topicSubscribers[e]=o),o.push({key:i,hitched:t.hitch(n,i)})}));var o=this;return{remove:function(){o.topicUnsubscribe(e,i)}}},topicUnsubscribe:function(e,t){this._enqueueTask((function(){var i=this._topicSubscribers[e];i&&(this._topicSubscribers[e]=i.filter((function(e){return e.key!==t})),0===this._topicSubscribers[e].length&&delete this._topicSubscribers[e])}))},channelPublish:function(e,i){var o=new n;return this._enqueueTask((function(){s.info("Pushed message to MessageService: "+e,i),a(this._messageService.publish(e,i),t.hitch(o,"resolve"),t.hitch(o,"reject"))})),o.promise},channelSubscribe:function(e,t,i){this._enqueueTask((function(){s.info("Subscribed to channel: "+e,t,i),this._messageService.subscribe(e,t,i)}));var n=this;return{remove:function(){n.channelUnsubscribe(e,t,i)}}},channelUnsubscribe:function(e,t,i){this._enqueueTask((function(){s.info("Unsubscribed from channel: "+e,t),this._messageService.unsubscribe(e,t,i)}))},flush:function(){this._messageService.messageService&&this._messageService.messageService.flush()},isReady:function(){return this._handshakeCompleted},getJavaEndpointId:function(){return this._javaEndpointId},disableMessageBusIntegration:function(){this.messageBusIntegration=!1},_init:function(e){if(!this._messageService.isConnected())throw new Error("Call init only after the this._messageService has connected");if(!this.messageBusIntegration)return this._handshakeCompleted=!0,e.resolve({}),void this._markReadyState();var i=this.filterToBus?t.replace(l.HANDSHAKE_INITIATION_CHANNEL_FORMAT,[this._clientId]):l.HANDSHAKE_INITIATION_CHANNEL,n=this.filterToBus?t.replace(l.HANDSHAKE_RESPONSE_CHANNEL_FORMAT,[this._clientId]):l.HANDSHAKE_RESPONSE_CHANNEL,o=this.filterToBus?t.replace(l.HANDSHAKE_READY_CHANNEL_FORMAT,[this._clientId]):l.HANDSHAKE_READY_CHANNEL;this._messageService.subscribe(n,(function t(i){var a="string"==typeof i.data?r.parse(i.data):i.data;if(a.clientId===this._clientId){try{this._messageService.unsubscribe(n,t,this),this._javaEndpointId=a.busId,this._handshakeCompleted=!0,this._resolveChannels(),this._messageService.subscribe(this._rebroadcastChannel,this._handleRebroadcastedJavaMessage,this),this._messageService.publish(o,this._clientId),s.info("Handshake completed",a),e.resolve(null!=a.data?a.data:{})}catch(t){s.error("Handshake failed",t),e.reject(t)}this._markReadyState()}}),this).then(t.hitch(this,(function(){s.info("Initiating handshake with server"),this._messageService.publish(i,this._clientId)})))},whenReady:function(e,i){this.isReady()?e.call(i):this._enqueueTask(t.hitch(i,t.partial(e,this)))},scopeChannel:function(e){return e.startsWith("/mlc/"+this._clientId+"/")?e:t.replace("/mlc/{0}/{1}",[this._clientId,e])},_enqueueTask:function(e){this._taskQueue.push(t.hitch(this,e)),this._processQueue()},_processQueue:function(){if(this._handshakeCompleted&&this._messageService.isConnected()){var e=this._taskQueue.shift();if(e)try{e()}finally{this._processQueue()}}},_resolveChannels:function(){if(this.filterToBus){var e=[this._javaEndpointId];this._rebroadcastChannel=t.replace(l.INBOUND_REBROADCAST_CHANNEL_FORMAT,e),this._mappedChannel=t.replace(l.OUTBOUND_MAPPED_PEER_CHANNEL_FORMAT,e)}else this._rebroadcastChannel=l.INBOUND_REBROADCAST_CHANNEL,this._mappedChannel=l.OUTBOUND_MAPPED_PEER_CHANNEL},_handleRebroadcastedJavaMessage:function(e){var t="string"==typeof e.data?r.parse(e.data):e.data;if(t.busId===this._javaEndpointId&&this._mappings[t.topicId]&&this._topicSubscribers[t.topicId]){this._validateInboundRebroadcastedMessage(t);var i=this._mappings[t.topicId],n={};if(t.contents.length>0)for(var o=0;o<t.contentKeys.length;o++)n[t.contentKeys[o]]=t.contents[o];null==(n=i.unpack(t.type,n))&&(n={}),s.info("Handled message rebroadcast: "+t.topicId,t),this._topicSubscribers[t.topicId].forEach((function(e){e.hitched(t.type,n,t.topicId)}))}},_toMappedMessage:function(e,t,i){var n={topicId:e,endpointId:this._javaEndpointId,timestamp:(new Date).getTime(),type:t,data:i};return this.jsonifyTopicPayload?r.stringify(n):n},_publishMappedTopicMessage:function(e,t,i){s.debug("Received request to publish mapped topic message: "+e,t,i),this.channelPublish(this._mappedChannel,this._toMappedMessage(e,t,i))},_validateInboundRebroadcastedMessage:function(e){if(!c.hasAllProperties(e,"topicId","type","contents","contentKeys"))throw new Error("Message originating from MessageBus is missing required properties");if(!Array.isArray(e.contents)||!Array.isArray(e.contentKeys))throw new Error("Expected arrays for contents and contentKeys properties");if(e.contents.length!==e.contentKeys.length)throw new Error("Contents array must match contentKeys array in length");var i=this._mappings[e.topicId].schema;if(!i[e.type])throw new Error(t.replace("Unrecognized message type '{0}' for topic '{1}'"),[e.type,e.topicId]);if(!i[e.type].every((function(t,i){return e.contentKeys[i]===t})))throw new Error(t.replace("Topic schema and received message content keys do not match for topic '{0}'",[e.topicId]))},_validateComplianceWithMappingSchema:function(e,i,n){if(!c.isObject(n))throw new Error("Serialized payload for a mapped topic must be an Object.");var o=this._mappings[e].schema[i];o||(o=[]),o.forEach((function(e){if(!n.hasOwnProperty(e))throw new Error(t.replace("'{0}' was missing from the serialized message payload.",[e]))}))},_markReadyState:function(){i.after(this._messageService,"onConnected",t.hitch(this,(function(){this._processQueue()})),!1),this._processQueue(),this.emit("ready",{})},_assertTopicIsMapped:function(e){if(!this._mappings.hasOwnProperty(e))throw new Error(t.replace("Topic '{0}' is not mapped.",[e]))},_assertTopicMethodExists:function(e,i){if(this._assertTopicIsMapped(e),!this._mappings[e].schema.hasOwnProperty(i))throw new Error(t.replace("No messaging method with a name of '{0}' could be found for topic '{1}'.",[i,e]))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1263)],o=i.dj.d(n,(function(e){var t=e("mode");return"test"!==t&&"debug"!==t&&(t="release"),t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(221)],o=i.dj.d(n,(function(e){"use strict";return e.add("cef",(function(e){return"cefclient"in e})),e}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){"use strict";var t=e(null,{start:0,end:0,constructor:function(e,t){this.start=e,this.end=t},compareTo:function(e){return this.start>e.start?1:this.start<e.start||this.end<e.end?-1:this.end>e.end?1:0},getLength:function(){return this.end-this.start},contains:function(e){return"number"==typeof e?this.start<=e&&e<this.end:this.start<=e.start&&this.end>=e.end},overlaps:function(e){return t.prototype.contains.call(this,e)||t.prototype.contains.call(e,this)||Math.max(this.end,e.end)-Math.min(this.start,e.start)<=t.prototype.getLength.call(this)+t.prototype.getLength.call(e)},equals:function(e){return this.start===e.start&&this.end===e.end}});return t.compare=function(e,i){return t.prototype.compareTo.call(e,i)},t}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(1263)],o=i.dj.d(n,(function(e){return e("clientId")||"NULL"}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(206),i(230),i(9089),i(9090),i(9091)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([i,o],{messenger:null,mfzModel:null,modelSyncParams:null,_activeApp:null,_model:null,_modelSource:null,_started:!1,constructor:function(t){if(e.safeMixin(this,t),!this.messenger||!this.modelSyncParams)throw new Error("Values for messenger and modelSyncParams properties must be supplied during construction");this._modelSource=new a({messenger:this.messenger,subChannelGroup:this.modelSyncParams.channel,rootUuid:this.modelSyncParams.uuid})},start:function(e){if(this._started)return;this._started=!0;const i=new t;return this.messenger.start().then(()=>{this._modelSource.start().then(()=>{this.mfzModel=this._modelSource.mfzModel,this._model=this._modelSource.getRootObject(),this.own(new r({mfzModel:this.mfzModel,context:this,modified:this._handleModified,destroyed:this._handleDestroyed}),n(this,"activeAppUpdated",t=>{t.start(e)})),this._setupActiveApp(this._model.Active),i.resolve(!0)})}),i.promise},_handleModified:function(e,t){e===this._model?t.has("Active")&&this._setupActiveApp(e.Active):e===this._model.Active||this._model.Active&&e===this._model.Active.Ui&&t.has("Showing")&&(e.Showing?this._activeApp.ui.show():this._activeApp.ui.hide())},_handleDestroyed:function(e){this._model.uuid===e?this.destroy():this._model.Active.uuid===e&&this._activeApp.destroy()},_setupActiveApp:function(e){e&&(this._activeApp&&this._activeApp.destroy(),this._transact(()=>{this._activeApp=new s({model:e}),this.own(this._activeApp,n(this._activeApp.ui,"ready",()=>{this._transact(()=>{this._model.Active.Ui.Ready=!0})}),n(this._activeApp.ui,"hidden",()=>{this._transact(()=>{this._model.Active.Ui&&(this._model.Active.Ui.Showing=!1)})})),this.emit("activeAppUpdated",this._activeApp)}))},_transact:function(e){const t=this._modelSource.transaction();try{const i=e();return t.commit(),i}catch(e){throw t.cancel(),e}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(345)],o=i.dj.d(n,(function(e,t){t=t.default;const i=e(t,{mfzModel:null,context:null,constructor:function(t){e.safeMixin(this,Object.assign({isModifier:!1},t)),this.mfzModel&&(this.mfzModel instanceof mf.zero.ModelElement&&(this.mfzModel=this.mfzModel.getModel()),this.mfzModel.addShallowListener(this))},remove:function(){this.mfzModel&&this.mfzModel.removeListener(this),this._destroyed=!0},modifyOnCommit:function(e){this.isModifier&&this._handleChangeReport(e)},transactionCommitted:function(e){if(!e.isEmpty()&&!this.isModifier&&this.isObserver){const t=this.mfzModel&&this.mfzModel.beginTransaction();this._handleChangeReport(e),t&&t.commit()}},preprocess:function(e){},added:function(e){},modified:function(e,t){},destroyed:function(e){},postprocess:function(e){},_handleChangeReport:function(e){this._destroyed||(this.preprocess.call(this.context||this,e),this.added!==i.prototype.added&&e.processAdded(e=>this.added.call(this.context||this,e)),this.modified!==i.prototype.modified&&e.processModified(t=>this.modified.call(this.context||this,t,e.getChangedProperties(t).reduce((e,t)=>e.add(t.name),new Set))),this.destroyed!==i.prototype.destroyed&&e.processDestroyed(e=>this.destroyed.call(this.context||this,e.uuid)),this.postprocess.call(this.context||this,e))}});return i}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(285),i(516),i(517),i(565),i(1689)],o=i.dj.d(n,(function(e,t,i,n,o,r){return o=o.default,i=i.default,n=n.default,e(null,{messenger:null,subChannelGroup:null,modelName:null,modelVersion:null,mfzModel:null,starter:null,rootUuid:null,_channel:null,_sync:null,_started:!1,constructor:function(t){e.safeMixin(this,t),this.mfzModel=this.mfzModel||new mf.zero.Model;const o=this.messenger.scopeChannel(this.subChannelGroup);this._channel=new i({inChannel:o,outChannel:o}),this._sync=new n(this.mfzModel,this._channel)},getModel:function(){return t(this.start(),()=>this.mfzModel)},start:function(){return!0===this._started?this:(!1===this._started&&(this._started=this._channel.start().then(()=>(this._sync.start(),this._sync.fetchModelWithDataDefinition().then(()=>{this._started=!0,this.starter&&this.starter(this)})))),this._started)},sync:function(){return t(this.start(),()=>{this._sync.start()})},unsync:function(){return t(this.start(),()=>{this._sync.stop()})},stop:function(){},transaction:function(){return t(this.start(),()=>this.mfzModel.beginTransaction())},instantiate:function(e){return t(this.start(),()=>r.instantiate(e.split(".").reduce((e,t)=>e[t],window),this.mfzModel))},getRootObject:function(e=(e=>e.uuid===this.rootUuid)){return t(this.start(),()=>{if(this.rootUuid)return[...this.mfzModel.topLevelElements.values()].find(e)})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(9092)],o=i.dj.d(n,(function(e,t,i){return e([t],{model:null,ui:null,_mfzModel:null,_started:!1,constructor:function(t){if(e.safeMixin(this,t),!this.model)throw new Error("Value for model property must be supplied during construction");this._mfzModel=this.model.getModel(),this.model.Ui||(this.model.Ui=new coderapp.internal.core.state.AppUi(this._mfzModel,{Owner:this.model})),this.ui=new i,this.own(this.ui)},start:function(e){this._started||(this._started=!0,this.ui.start(e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(222),i(206),i(230),i(714),i(434),i(9093),i(9097),i(1030)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e([i,o],{_dashboard:null,_started:!1,_toolstrip:null,_uiBuilder:null,_uiContainer:null,constructor:function(t){e.safeMixin(this,t)},start:function(e){if(this._started)return;this._started=!0,this._uiContainer=e,this._uiBuilder=e.uiBuilder,this._toolstrip=new l({uiContainer:this._uiContainer,closeHandler:t.hitch(this,"hide"),buildHandler:t.hitch(this,"_run")}),this._dashboard=new s({uiContainer:this._uiContainer,closeHandler:t.hitch(this,"hide")});const i=this._uiBuilder.create({type:a.STATUS_LABEL,tag:c.CODER_STATUS_BAR_RUNNING_TAG,text:"Generating Code...",region:"left"}),o=this._uiContainer.appId,d=r.getInstance();d.register("TabGroups",{appId:o,contextId:c.CODER_CONTEXT_ID,tabGroupTags:[c.CODER_TAB_GROUP_TAG]}),d.register("Panels",{appId:o,contextId:c.CODER_CONTEXT_ID,panelIds:[c.CODER_PANEL_ID]}),d.register("StatusComponents",{appId:o,contextId:c.CODER_RUNNING_CONTEXT_ID,statusComponentTags:[c.CODER_STATUS_BAR_RUNNING_TAG]}),this.own(this._toolstrip,this._dashboard,{remove:()=>{this.hide(),d.unregister("TabGroups",{appId:o,contextId:c.CODER_CONTEXT_ID}),d.unregister("Panels",{appId:o,contextId:c.CODER_CONTEXT_ID}),d.register("StatusComponents",{appId:o,contextId:c.CODER_RUNNING_CONTEXT_ID}),this._uiBuilder.destroy(i)}},n(this._toolstrip,"projectFileNameUpdated",e=>this._dashboard.updateTitle(e.filename))),this.emit("ready",{})},show:function(){this._toolstrip.reset(),this._activateContext(c.CODER_CONTEXT_ID),this._uiBuilder.selectTab(c.CODER_TAB_TAG),this._dashboard.select()},hide:function(){this._deactivateContext(c.CODER_CONTEXT_ID),this.emit("hidden",{})},_run:function(){this._activateContext(c.CODER_RUNNING_CONTEXT_ID),this._uiContainer.actionService.updateAction(c.ACTION_GENERATE,{enabled:!1}),this._uiContainer.actionService.updateAction(c.ACTION_BUILD,{enabled:!1}),setTimeout(()=>{this._uiContainer.actionService.updateAction(c.ACTION_GENERATE,{enabled:!0}),this._uiContainer.actionService.updateAction(c.ACTION_BUILD,{enabled:!0}),this._deactivateContext(c.CODER_RUNNING_CONTEXT_ID)},5e3)},_activateContext:function(e){var t=this._uiContainer.get("activeContexts")||[];t.indexOf(e)<0&&(t=t.concat(e),this._uiContainer.set("activeContexts",t))},_deactivateContext:function(e){var i=t.clone(this._uiContainer.get("activeContexts"));const n=i.indexOf(e);n>=0&&(i.splice(n,1),this._uiContainer.set("activeContexts",i))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(230),i(215),i(216),i(255),i(304),i(1264),i(1030),i(9096),i(269)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){const d=e([i,n,o],{baseClass:"motw-coderDashboard",templateString:l,parent:null,promptTitle:"To generate C code",promptDescription:"Add an entry point function and define input types.",constructor:function(t){e.safeMixin(this,t)},buildRendering:function(){this.inherited(arguments),this._entryPointsIcon.set({icon:a.toIconClass("entry_point_functions_24"),iconAlignment:"top"}),this._entryPointsText.set({text:"Entry Point\nFunctions"})},postCreate:function(){this.inherited(arguments)}});return e([t],{uiContainer:null,_panelContent:null,_panelProperties:null,constructor:function(t){e.safeMixin(this,t),this._panelContent=new d({parent:this}),this._panelProperties=new r({panelId:s.CODER_PANEL_ID,region:"right",title:"MATLAB Coder - untitled",index:1,closable:!1,actions:[s.ACTION_CLOSE_CONTEXT],isContextual:!0}),this.uiContainer.addPanel(this._panelContent,this._panelProperties),this.own({remove:()=>this.uiContainer.removePanel(s.CODER_PANEL_ID)})},select:function(){this._panelProperties.set(r.IS_SELECTED,!0)},updateTitle:function(e){e=e||"untitled",this._panelProperties.set(r.TITLE,"MATLAB Coder - "+e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(228),i(211),i(206),i(384),i(215),i(307)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){return e([a,s],{content:"",constructor:function(){this._iframeNode=null},buildRendering:function(){this.inherited(arguments);var e=this._iframeNode=n.create("iframe",{class:this.baseClass+"-iframe",sandbox:"allow-scripts allow-same-origin"},this.domNode),r=this;this.linkHandler&&this.own(o(e,"load",(function(){r.own(o(e.contentDocument,"click",(function(t){var n="A"===t.target.nodeName?i.get(t.target,"href"):null;try{if(null!=n)if(0===n.lastIndexOf("#")&&n.length>1){var o=e.contentDocument.getElementById(n.substring(1,n.length));r._iframeNode.contentWindow.scrollTo(0,o.offsetTop),t.preventDefault()}else r.linkHandler.handleLink(t.target)||t.preventDefault()}catch(e){t.preventDefault()}})))}))),this.own(o(this._iframeNode,"load",t.hitch(this,"_injectDependencies")))},_setContentAttr:function(e){this._iframeNode.srcdoc=e||""},_injectDependencies:function(){var e=this._iframeNode.contentDocument.head;n.create("link",{href:"/toolbox/shared/codergui/web/resources/auxpage.css",rel:"stylesheet"},e),null!=this.cssDependencies&&this.cssDependencies.forEach((function(t){n.create("link",{href:t,rel:"stylesheet"},e)})),null!=this.jsDependencies&&this.jsDependencies.forEach((function(t){n.create("script",{src:t},e)}))}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="${baseClass} minimal">\n <div class="${baseClass}-floater">\n <div class="${baseClass}-header">${title}</div>\n <div class="${baseClass}-body">\n <div class="${baseClass}-message">${content}</div>\n <div class="${baseClass}-closeLink">${closeText}</div>\n </div>\n </div>\n</div>\n'},function(e,t){e.exports='<div class="${baseClass}">\n <h1 class="${baseClass}-promptTitle">${promptTitle}</h1>\n <p class="${baseClass}-promptDescription">${promptDescription}</p>\n <div class="${baseClass}-promptAction">\n <div class="${baseClass}-promptActionIcon" data-dojo-type="mw-form/Label" data-dojo-attach-point="_entryPointsIcon"></div>\n <div class="${baseClass}-promptActionText" data-dojo-type="mw-form/Label" data-dojo-attach-point="_entryPointsText"></div>\n </div>\n \n</div>'},function(e,t,i){var n,o;n=[i(203),i(222),i(230),i(9098),i(1264),i(1030),i(9100),i(9101)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s){const l={OPEN:{id:r.ACTION_OPEN,enabled:!0,text:"Open",icon:o.toIconClass("open_16")},SAVE_AS:{id:r.ACTION_SAVE_AS,enabled:!0,text:"Save As...",icon:o.toIconClass("saveAs_16")},SETUP_ENTRY_POINTS:{id:r.ACTION_SETUP_ENTRY_POINTS,enabled:!0,text:"Entry Point\nFunctions",icon:o.toIconClass("entry_point_functions_24")},UPDATE_LANGUAGE_C:{id:r.ACTION_UPDATE_LANGUAGE_C,enabled:!0,text:"C",description:"Generate C code",icon:o.toIconClass("language_c_16")},UPDATE_LANGUAGE_CPP:{id:r.ACTION_UPDATE_LANGUAGE_CPP,enabled:!0,text:"C++",description:"Generate C++ code",icon:o.toIconClass("language_cpp_16")},UPDATE_LANGUAGE_CUDA:{id:r.ACTION_UPDATE_LANGUAGE_CUDA,enabled:!0,text:"CUDA for GPU",description:"Generate CUDA and C++ code",icon:o.toIconClass("language_cpp_16")},GENERATE:{id:r.ACTION_GENERATE,enabled:!0,text:"Generate\nCode",description:"Generate code only. Do not build binary files",icon:o.toIconClass("generate_code_16")},BUILD:{id:r.ACTION_BUILD,text:"Build",description:"Generate code and run Makefile",icon:o.toIconClass("build_16"),enabled:!0},CLOSE:{id:r.ACTION_CLOSE_CONTEXT,text:"Close",enabled:!0}};return e([t,i],{uiContainer:null,closeHandler:null,buildHandler:null,_uiBuilder:null,constructor:function(t){e.safeMixin(this,t),this._uiBuilder=this.uiContainer.uiBuilder,this._registerActions(),this._registerCoderTabGroup()},reset:function(){this._hasEntryPoints=!1,this._updateToolstripButton({buttonTag:r.SETTINGS_SECTION_LANGUAGE_BUTTON_TAG,actionId:l.UPDATE_LANGUAGE_C.id,textOverride:"Language: C"}),this._updateToolstripButton({buttonTag:r.GENERATE_SECTION_GENERATE_BUTTON_TAG,actionId:l.GENERATE.id,iconOverride:o.toIconClass("generate_code_24")}),this._enableAllButtons(!1)},_registerActions:function(){const e=this.uiContainer.actionService;let t=[];for(const i of Object.keys(l)){const n=l[i];e.getAction(n.id)||t.push(n)}this.uiContainer.loadActions(t),e.updateAction(l.OPEN.id,{callback:()=>this._openHandler()}),e.updateAction(l.SAVE_AS.id,{callback:()=>this._saveAsHandler()}),e.updateAction(l.SETUP_ENTRY_POINTS.id,{callback:()=>{this._hasEntryPoints||(this._hasEntryPoints=!0,this._enableAllButtons(!0))}}),e.updateAction(l.UPDATE_LANGUAGE_C.id,{callback:()=>{this._updateToolstripButton({buttonTag:r.SETTINGS_SECTION_LANGUAGE_BUTTON_TAG,actionId:l.UPDATE_LANGUAGE_C.id,textOverride:"Language: C"})}}),e.updateAction(l.UPDATE_LANGUAGE_CPP.id,{callback:()=>{this._updateToolstripButton({buttonTag:r.SETTINGS_SECTION_LANGUAGE_BUTTON_TAG,actionId:l.UPDATE_LANGUAGE_CPP.id,textOverride:"Language: C++"})}}),e.updateAction(l.UPDATE_LANGUAGE_CUDA.id,{callback:()=>{this._updateToolstripButton({buttonTag:r.SETTINGS_SECTION_LANGUAGE_BUTTON_TAG,actionId:l.UPDATE_LANGUAGE_CUDA.id,textOverride:"Language: CUDA"})}}),e.updateAction(l.GENERATE.id,{callback:()=>{this._updateToolstripButton({buttonTag:r.GENERATE_SECTION_GENERATE_BUTTON_TAG,actionId:l.GENERATE.id,iconOverride:o.toIconClass("generate_code_24")}),this.buildHandler()}}),e.updateAction(l.BUILD.id,{callback:()=>{this._updateToolstripButton({buttonTag:r.GENERATE_SECTION_GENERATE_BUTTON_TAG,actionId:l.BUILD.id,iconOverride:o.toIconClass("build_24")}),this.buildHandler()}}),e.updateAction(l.CLOSE.id,{callback:()=>this.closeHandler()})},_openHandler:function(){n.showOpenDialog({title:"Select Coder Project File",filter:{text:"Coder Project File",extension:"coderprj",selected:!0}})},_saveAsHandler:function(){n.showSaveDialog({title:"Save Coder Project File",filter:{text:"Coder Project File",extension:"coderprj",selected:!0},initialFile:"Untitled",errorText:"",validator:function(e){return this.errorText=`"${e}" is not a valid CODERPRJ file name`,e.toLowerCase().endsWith(this.filter.extension)}}).then(e=>{let t=e.replace(/\\/g,"/");t=t.substring(t.lastIndexOf("/")+1,t.lastIndexOf(".")),this.emit("projectFileNameUpdated",{filename:t})})},_registerCoderTabGroup:function(){this.uiContainer.addTabGroup([a,s],!0),this._updateToolstripButton({buttonTag:r.SETTINGS_SECTION_LANGUAGE_BUTTON_TAG,popupTag:r.LANGUAGE_POPUP_TAG}),this._updateToolstripButton({buttonTag:r.GENERATE_SECTION_GENERATE_BUTTON_TAG,popupTag:r.GENERATE_POPUP_TAG}),this.own(this._uiBuilder.addEventCallback(this._uiBuilder.tagToId(r.CODER_TAB_TAG),e=>{"remove"===e.eventType&&this.closeHandler()}),{remove:()=>this._uiBuilder.destroy(a.id)})},_updateToolstripButton:function(e){const t=this._uiBuilder.tagToId(e.buttonTag);this._uiBuilder.set(t,"actionId",e.actionId),e.iconOverride&&this._uiBuilder.set(t,"iconOverride",e.iconOverride),e.textOverride&&this._uiBuilder.set(t,"textOverride",e.textOverride),e.popupTag&&this._uiBuilder.set(t,"popupId",this._uiBuilder.tagToId(e.popupTag))},_enableAllButtons:function(e){[r.SETTINGS_SECTION_LANGUAGE_BUTTON_TAG,r.SETTINGS_SECTION_OUTPUT_BUTTON_TAG,r.SETTINGS_SECTION_SETTINGS_BUTTON_TAG,r.CHECK_SECTION_CHECK_ISSUES_BUTTON_TAG,r.GENERATE_SECTION_GENERATE_BUTTON_TAG,r.REPORT_SECTION_VIEW_REPORT_BUTTON_TAG,r.VERIFY_SECTION_VERIFY_BUTTON_TAG,r.SHARE_SECTION_SHARE_BUTTON_TAG].forEach(t=>this._uiBuilder.set(this._uiBuilder.tagToId(t),"enabled",e))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(224),i(236),i(221),i(212),i(285),i(9099),i(1219),i(1225),i(233),i(850),i(1613),i(232),i(262),i(1689)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g){"use strict";var m=window.cefclient,_="open",v="save",b={CLASSIFIER:"CoderPwdRequest",_lastKnownDir:"",getPwd:function(e){this._attached||(this._attached=!0,p.registerResponseHandler("FEvalResponse:"+this.CLASSIFIER,this._handleResponse,this));var i=new r;if(p.sendMessage({FEval:{function:"pwd",arguments:0,nargout:1,dequeMode:"ppe"}},i,this.CLASSIFIER),e>0){var n=new r;return setTimeout(t.hitch(n,n.resolve,this._lastKnownDir),e),s([i.promise,n.promise])}return i.promise},_handleResponse:function(e,t){this._lastKnownDir=e[0].results[0],t.resolve(this._lastKnownDir)}};if(!o("cef")){var y=l.getPathDataService(),C=c.getFileDataService();y.start(),C.start()}function T(e,t){return Array.isArray(e)?e.map(E).join(t):E(e)}function E(e,t){return e=e.toLowerCase(),t?"."===e.charAt(0)?e.substring(1):e:"."!==e.charAt(0)?"."+e:e}function S(e,t){g.assert(o("cef"),"Not running in a CEF environment");var i,n=t.multiSelect;e===_?i=t.directoryMode?"openFolder":t.multiSelect?"openMultipleFileTypes":"openFileTypes":(i="saveFileTypes",n=!1);var s=t.directory?t.directory:b.getPwd(1e3);return a(s,(function(e){var n,o=e;if(e&&t.initialFile&&(!navigator.platform.toLowerCase().startsWith("win")||!/^[A-Z]:\\?$/.test(e))){var r=-1!==o.indexOf("\\")?"\\":"/";o=e+r+t.initialFile}if("openFolder"===i)m.sendMessage(i,[o],t.title);else{var a=(n=t.filter,(Array.isArray(n)?n:[n]).map((function(e){return e.text+"|"+T(e.extension,";")})));m.sendMessage(i,a,t.title,o)}})),function(e,t){var i=new r;return m.setMessageCallback(e,(function(n,o){if(e===n)try{t(o[0])?i.resolve(o[0]):i.reject("No file specified")}finally{m.removeMessageCallback(e)}})),i.promise}(i,(function(e){return e&&e.length})).then((function(e){return n?e:e[0]}),(function(e){throw e}))}function w(t,i){var n,o=[];i.filter&&(Array.isArray(i.filter)?i.filter:[i.filter]).forEach((function(e){var t=Array.isArray(e.extension)?e.extension:[e.extension];o.push({label:e.text+" ("+T(t,",")+")",patterns:t.map((function(e){return"*."+e})),selected:e.selected,validator:e.validator})})),t===v&&(n=d.nameFromPath(i.initialFile));var a=e([u,h])({fileService:C,pathService:y,fileMustExist:t===_,fileTypeFilterMustExist:!0,saveAsFileName:n,filters:o,selectionMode:i.directoryMode?1:0});a.startup();var s=new r,l=f.createDialog({title:i.title,dialogType:f.MODAL,draggable:!0,resizable:!1,content:a}),c=function(){l.close(),C.stop()};return a.onClose=function(){s.reject("No file specified"),c()},a.on("cancelButtonClicked",(function(){s.reject("No file specified"),c()})),a.on("okButtonClicked",(function(e){var t=C.currentWorkingFolder.separator,n=e.targetLocation;n.endsWith(t)||(n+=t);var o=e.fileName;if(i.validator&&i.validator(o)){var r=n+o;s.resolve(r),a._fileName.set({validationState:"normal",errorText:""}),c()}else a._fileName.set({validationState:"error",errorText:i.errorText}),a._fileName._placeTooltip()})),s.promise}function I(e){return t.mixin({title:null,filter:[],directory:null,multiSelect:!1,directoryMode:!1,errorText:"",validator:function(){return!0}},e)}var A={};return A.showNativeOpenDialog=t.partial(S,_),A.showBrowserOpenDialog=t.partial(w,_),A.showNativeSaveDialog=t.partial(S,v),A.showBrowserSaveDialog=t.partial(w,v),A.showTextPrompt=function(e){if(g.isReleaseMode())throw new Error("A prompt-based file dialog is not meant for use in a production environment.");var t,o=new r,a=window.prompt(e.title);return a&&"string"==typeof a?(a=n.trim(a),t=!e.directoryMode&&e.filter&&e.filter.length?i.some(e.filter,(function(e){return i.some(Array.isArray(e.extension)?e.extension:[e.extension],(function(e){return e.match(new RegExp(".+\\."+e+"$","i"))}))})):!e.directoryMode||!a.match(/.+\.[a-zA-Z0-9]+$/)):t=!1,t?o.resolve(e.multiSelect?[a]:a):o.reject("No file specified"),o.promise},A.showOpenDialog=function(e){return e=I(e),(o("cef")?A.showNativeOpenDialog:A.showBrowserOpenDialog)(e)},A.loadFromTestGlobal=function(e){var t,i=window.TestGlobal;i&&Object.prototype.hasOwnProperty.call(i,"fileStore")?(t=i.fileStore,window.TestGlobal.fileStore=""):t="";var n=new r;return n.resolve(t),n.promise},A.showSaveDialog=function(e){return e=I(e),(g.isTestMode()?A.loadFromTestGlobal:o("cef")?A.showNativeSaveDialog:A.showBrowserSaveDialog)(e)},A}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(224),i(212),i(285)],o=i.dj.d(n,(function(e,t,i){"use strict";var n=e.forEach;return function(e){var o;if(e instanceof Array)o=e;else if(e&&"object"==typeof e)for(var r in o=[],e)Object.hasOwnProperty.call(e,r)&&o.push(e[r]);if(!o||!o.length)return(new t).resolve();var a=new t;return n(o,(function(e){i(e,a.resolve,a.reject)})),a.promise}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(434),i(1264),i(1030)],o=i.dj.d(n,(function(e,t,i){return{tag:i.CODER_TAB_GROUP_TAG,type:e.TAB_GROUP,children:[{tag:i.CODER_TAB_TAG,type:e.TAB,title:"Coder",removable:!0,children:[{tag:i.FILE_SECTION_TAG,type:e.SECTION,title:"File",children:[{tag:i.FILE_SECTION_COLUMN1_TAG,type:e.COLUMN,children:[{tag:i.FILE_SECTION_NEW_BUTTON_TAG,type:e.PUSH_BUTTON,text:"New",icon:t.toIconClass("new_24")}]},{tag:i.FILE_SECTION_COLUMN2_TAG,type:e.COLUMN,children:[{tag:i.FILE_SECTION_OPEN_BUTTON_TAG,type:e.PUSH_BUTTON,actionId:i.ACTION_OPEN},{tag:i.FILE_SECTION_SAVE_AS_BUTTON_TAG,type:e.PUSH_BUTTON,actionId:i.ACTION_SAVE_AS}]}]},{tag:i.PREPARE_SECTION_TAG,type:e.SECTION,title:"Prepare",children:[{tag:i.PREPARE_SECTION_COLUMN1_TAG,type:e.COLUMN,children:[{tag:i.PREPARE_SECTION_ENTRY_POINT_FUNCTIONS_BUTTON_TAG,type:e.PUSH_BUTTON,actionId:i.ACTION_SETUP_ENTRY_POINTS}]}]},{tag:i.SETTINGS_SECTION_TAG,type:e.SECTION,title:"Settings",children:[{tag:i.SETTINGS_SECTION_COLUMN1_TAG,type:e.COLUMN,children:[{tag:i.SETTINGS_SECTION_LANGUAGE_BUTTON_TAG,type:e.DROP_DOWN_BUTTON,actionId:i.ACTION_UPDATE_LANGUAGE_C,textOverride:"Language: C"},{tag:i.SETTINGS_SECTION_OUTPUT_BUTTON_TAG,type:e.DROP_DOWN_BUTTON,text:"Output: Source Code",icon:t.toIconClass("source_code_16")}]},{tag:i.SETTINGS_SECTION_COLUMN2_TAG,type:e.COLUMN,children:[{tag:i.SETTINGS_SECTION_SETTINGS_BUTTON_TAG,type:e.DROP_DOWN_BUTTON,text:"Settings",icon:t.toIconClass("settings_24")}]}]},{tag:i.CHECK_SECTION_TAG,type:e.SECTION,title:"Check",children:[{tag:i.CHECK_SECTION_COLUMN1_TAG,type:e.COLUMN,children:[{tag:i.CHECK_SECTION_CHECK_ISSUES_BUTTON_TAG,type:e.DROP_DOWN_BUTTON,text:"Check\nIssues",icon:t.toIconClass("check_issues_24")}]}]},{tag:i.GENERATE_SECTION_TAG,type:e.SECTION,title:"Generate",children:[{tag:i.GENERATE_SECTION_COLUMN1_TAG,type:e.COLUMN,children:[{tag:i.GENERATE_SECTION_GENERATE_BUTTON_TAG,type:e.SPLIT_BUTTON,actionId:i.ACTION_GENERATE,iconOverride:t.toIconClass("generate_code_24")}]}]},{tag:i.REPORT_SECTION_TAG,type:e.SECTION,title:"Report",children:[{tag:i.REPORT_SECTION_COLUMN1_TAG,type:e.COLUMN,children:[{tag:i.REPORT_SECTION_VIEW_REPORT_BUTTON_TAG,type:e.PUSH_BUTTON,text:"View\nReport",icon:t.toIconClass("report_24")}]}]},{tag:i.VERIFY_SECTION_TAG,type:e.SECTION,title:"Verify",children:[{tag:i.VERIFY_SECTION_COLUMN1_TAG,type:e.COLUMN,children:[{tag:i.VERIFY_SECTION_VERIFY_BUTTON_TAG,type:e.DROP_DOWN_BUTTON,text:"Verify",icon:t.toIconClass("verify_24")}]}]},{tag:i.SHARE_SECTION_TAG,type:e.SECTION,title:"Share",children:[{tag:i.SHARE_SECTION_COLUMN1_TAG,type:e.COLUMN,children:[{tag:i.SHARE_SECTION_SHARE_BUTTON_TAG,type:e.DROP_DOWN_BUTTON,text:"Share",icon:t.toIconClass("share_24")}]}]}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(434),i(1264),i(1030)],o=i.dj.d(n,(function(e,t,i){return{popups:[{tag:i.LANGUAGE_POPUP_TAG,type:e.POPUP_LIST,children:[{tag:i.LANGUAGE_POPUP_C_ITEM_TAG,type:e.LIST_ITEM,actionId:i.ACTION_UPDATE_LANGUAGE_C},{tag:i.LANGUAGE_POPUP_CPP_ITEM_TAG,type:e.LIST_ITEM,actionId:i.ACTION_UPDATE_LANGUAGE_CPP},{tag:i.LANGUAGE_POPUP_CUDA_ITEM_TAG,type:e.LIST_ITEM,actionId:i.ACTION_UPDATE_LANGUAGE_CUDA}]},{tag:i.GENERATE_POPUP_TAG,type:e.POPUP_LIST,children:[{tag:i.GENERATE_POPUP_GENERATE_CODE_ITEM_TAG,type:e.LIST_ITEM,actionId:i.ACTION_GENERATE},{tag:i.GENERATE_POPUP_BUILD_ITEM_TAG,type:e.LIST_ITEM,actionId:i.ACTION_BUILD}]}]}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(236),i(273),i(262),i(9103),i(9109)],o=i.dj.d(n,(function(e,t,i,n,o){function r(){}class a{constructor(e,t){this.fDestroyed=!1,this.fDialog=null,this.fShareViewManager=new n(e,t,o.ShareToAchiveTitle),this.fSaveAsButtonInfo=this.fShareViewManager.getSaveAsButtonInfo(e=>this._save(e))}close(){this.fDialog&&this.fDialog.close()}show(){this.fDialog=function(e){const n=document.createElement("div");n.innerHTML=o.ShareToAchiveMessage;const a=i.createDialog({title:o.ShareToAchiveTitle,content:n,dialogType:i.MODAL,buttons:[{type:t.TYPE.DO_IT,label:e.label,"data-test-id":"ShareToArchiveSaveAsButton"},t.CANCEL],defaultActionButton:t.TYPE.DO_IT,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0});return a.addButtonEventListener(t.TYPE.DO_IT,e.callback,!1),a.addButtonEventListener(t.CANCEL,r,!0),a}(this.fSaveAsButtonInfo),this.fDialog.on("close",()=>this._unregisterView())}_unregisterView(){this.fDialog&&(this.fDialog=null,this.fShareViewManager.removeView())}async _save(t){if(!t)return;const i=e.substitute(o.WritingFileProgressMessage,[t]);await this.fShareViewManager.runCommand({withProgress:!0,progressTitle:o.ShareToAchiveTitle,progressDescription:i},"createArchive",t),this.close()}}return class{constructor(){this.fArchiveDialog=null}getType(){return"shareProjectToArchiveView"}addView(e,t){this.fArchiveDialog=new a(e,t),this.fArchiveDialog.fDialog=null,this.fArchiveDialog.fSaveAsButtonInfo.callback().finally(()=>{setTimeout(()=>{this.fArchiveDialog.fShareViewManager.removeView()})})}removeView(){if(this.fArchiveDialog){const e=this.fArchiveDialog;this.fArchiveDialog=null,e.close()}}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(383),i(758),i(419),i(1017),i(2729),i(9108)],o=i.dj.d(n,(function(e,t,i,n,o,r){const a=o.WidgetSaveAsButton;return class{constructor(i,n,o=""){this.fCommandExecutor=new e(i.commandChannel),this.fModel=new t(i.serverChannel,i.clientChannel),this.fProject=n,this.fTitle=o,this.fSaveAsDialog=new r(this.fModel),this.fModel.start()}getSaveAsButtonInfo(e){const t={};return t.label=a,t.callback=async()=>{const t=await this.fSaveAsDialog.getFile();e(t)},t}removeView(){return this.runCommand({printableError:!1},"removeView")}async runCommand(e,t,...o){try{return await function(e,t,n,...o){if(!t.withProgress)return e.fCommandExecutor.execute(n,...o);const r=new i({description:t.progressDescription||"",title:t.progressTitle||e.fTitle,showCancel:Boolean(t.supportsCancelling)});return e.fCommandExecutor.executeWithProgress(r,n,...o)}(this,e,t,...o)}catch(t){if(void 0!==e.printableError&&!e.printableError)throw new Error(t);n.show(t)}}}}),e,t),e.exports=o},function(e,t,i){e.exports={DefaultArchiveName:"アーカイブ",ExportProfileAlreadyExists:"エクスポート プロファイルを作成できません。指定されたプロファイル名は既に存在します。",ExportProfileNotFound:"Unable to get exported files. The specified export profile does not exist.",MlprojTypeName:"プロジェクト アーカイブ",SelectSaveFileTitle:"保存",ShareToAchiveButton:"アーカイブ",ShareToAchiveMessage:"プロジェクト ファイルをアーカイブにエクスポートします。",ShareToAchiveTitle:"プロジェクトをアーカイブで共有",WidgetSaveAsButton:"名前を付けて保存...",WritingFileProgressMessage:"ファイルの書き込み中:\n${0}"}},function(e,t,i){e.exports={DefaultArchiveName:"아카이브",ExportProfileAlreadyExists:"내보내기 프로파일을 만들 수 없습니다. 지정된 프로파일 이름이 이미 존재합니다.",ExportProfileNotFound:"내보낸 파일을 가져올 수 없습니다. 지정된 내보내기 프로파일이 존재하지 않습니다.",MlprojTypeName:"프로젝트 아카이브",SelectSaveFileTitle:"저장",ShareToAchiveButton:"아카이브",ShareToAchiveMessage:"프로젝트 파일을 아카이브로 내보냅니다.",ShareToAchiveTitle:"아카이브로 프로젝트 공유",WidgetSaveAsButton:"다른 이름으로 저장...",WritingFileProgressMessage:"파일을 쓰는 중:\n${0}"}},function(e,t,i){e.exports={DefaultArchiveName:"存档",ExportProfileAlreadyExists:"无法创建导出配置文件。指定的配置文件名称已存在。",ExportProfileNotFound:"无法获取导出的文件。指定的导出配置文件不存在。",MlprojTypeName:"工程存档",SelectSaveFileTitle:"保存",ShareToAchiveButton:"存档",ShareToAchiveMessage:"将工程文件导出到存档。",ShareToAchiveTitle:"通过存档共享工程",WidgetSaveAsButton:"另存为...",WritingFileProgressMessage:"正在写入文件:\n${0}"}},function(e,t,i){e.exports={root:{DefaultArchiveName:"Archive",ExportProfileAlreadyExists:"Unable to create export profile. The specified profile name already exists.",ExportProfileNotFound:"Unable to get exported files. The specified export profile does not exist.",MlprojTypeName:"Project Archive",SelectSaveFileTitle:"Save",ShareToAchiveButton:"Archive",ShareToAchiveMessage:"Export the project files to an archive.",ShareToAchiveTitle:"Share Project by Archive",WidgetSaveAsButton:"Save As...",WritingFileProgressMessage:"Writing file:\n${0}"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(2635),i(2729)],o=i.dj.d(n,(function(e,t){async function i(i){const n=await async function(e){let t=null;for(;!t;){if(t=e.getTopLevelObject("project.sharing.widgets.SaveAsExtensionContainer"),t)return t;await new Promise(e=>setTimeout(()=>e(),100))}}(i),o=n.supportedExtensions.map(e=>({ext:e.extensionsWithoutDot.map(e=>e),name:e.typeName})),r={title:t.SelectSaveFileTitle,defaultFile:n.defaultUniquePath,saveMode:!0};return new e(r,...o)}return class{constructor(e){this.fViewModel=e}async getFile(){return this.fFileSelector||(this.fFileSelector=await i(this.fViewModel)),this.fFileSelector.getFile()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(9110),i(9111),i(9112),i(9113)],o=i.dj.d(n,(function(e,t){return t(e,"project-sharing-toarchive/resources/MATLAB/project/nls/sharing",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={DefaultArchiveName:"アーカイブ",ExportProfileAlreadyExists:"エクスポート プロファイルを作成できません。指定されたプロファイル名は既に存在します。",ExportProfileNotFound:"Unable to get exported files. The specified export profile does not exist.",MlprojTypeName:"プロジェクト アーカイブ",SelectSaveFileTitle:"保存",ShareToAchiveButton:"アーカイブ",ShareToAchiveMessage:"プロジェクト ファイルをアーカイブにエクスポートします。",ShareToAchiveTitle:"プロジェクトをアーカイブで共有",WidgetSaveAsButton:"名前を付けて保存...",WritingFileProgressMessage:"ファイルの書き込み中:\n${0}"}},function(e,t,i){e.exports={DefaultArchiveName:"아카이브",ExportProfileAlreadyExists:"내보내기 프로파일을 만들 수 없습니다. 지정된 프로파일 이름이 이미 존재합니다.",ExportProfileNotFound:"내보낸 파일을 가져올 수 없습니다. 지정된 내보내기 프로파일이 존재하지 않습니다.",MlprojTypeName:"프로젝트 아카이브",SelectSaveFileTitle:"저장",ShareToAchiveButton:"아카이브",ShareToAchiveMessage:"프로젝트 파일을 아카이브로 내보냅니다.",ShareToAchiveTitle:"아카이브로 프로젝트 공유",WidgetSaveAsButton:"다른 이름으로 저장...",WritingFileProgressMessage:"파일을 쓰는 중:\n${0}"}},function(e,t,i){e.exports={DefaultArchiveName:"存档",ExportProfileAlreadyExists:"无法创建导出配置文件。指定的配置文件名称已存在。",ExportProfileNotFound:"无法获取导出的文件。指定的导出配置文件不存在。",MlprojTypeName:"工程存档",SelectSaveFileTitle:"保存",ShareToAchiveButton:"存档",ShareToAchiveMessage:"将工程文件导出到存档。",ShareToAchiveTitle:"通过存档共享工程",WidgetSaveAsButton:"另存为...",WritingFileProgressMessage:"正在写入文件:\n${0}"}},function(e,t,i){e.exports={root:{DefaultArchiveName:"Archive",ExportProfileAlreadyExists:"Unable to create export profile. The specified profile name already exists.",ExportProfileNotFound:"Unable to get exported files. The specified export profile does not exist.",MlprojTypeName:"Project Archive",SelectSaveFileTitle:"Save",ShareToAchiveButton:"Archive",ShareToAchiveMessage:"Export the project files to an archive.",ShareToAchiveTitle:"Share Project by Archive",WidgetSaveAsButton:"Save As...",WritingFileProgressMessage:"Writing file:\n${0}"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(758),i(9115),i(9116)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(e,o,r,a){this.fModel=new t(e,o),this.fSourceControlViewRegistry=new i(this.fModel),this.fSourceControlViewRegistry.registerHandler(new n(a)),this.fModel.start()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(758),i(2641),i(345)],o=i.dj.d(n,(function(e,t,i,n){const o=n.default;return e(null,{constructor:function(e){this.fModel=e,this.fHandlers={},this.fViews=[],this.fListener=null,this.fModel.onStart(()=>{this.fListener=new o,this.fListener.transactionCommitted=e=>{e.processModified(e=>{this._updateViews()},["cmlink.view.core.ViewStore"])},this.fModel.getModel().addShallowListener(this.fListener),this._updateViews()})},_removeViews:function(e){e.forEach(e=>{const t=this.fHandlers[e._name];t&&t.removeView(e)})},_addViews:function(e){e.forEach(e=>{const t=this.fHandlers[e.name];t&&t.addView(e)})},_updateViews:function(){const e=this.fViews,t=this.fModel.getTopLevelObject("cmlink.view.core.ViewStore").auxViews.getAllValues();this.fViews=t;const n=i.setDiff(e,t),o=i.setDiff(t,e);this._addViews(o),this._removeViews(n)},registerHandler:function(e){e&&(this.fHandlers[e.getType()]=e)},registerDocumentTypes:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(758),i(9117)],o=i.dj.d(n,(function(e,t,i){return e(null,{fDesktop:null,constructor:function(e){this.fDesktop=e,this.fDialogs=new Map},getType:function(){return"FileLog"},addView:function(e){const n=new t(e.serverChannel,e.clientChannel),o=new i(n,e.commandChannel);this.fDialogs.set(e.id,o),n.start()},removeView:function(e){const t=this.fDialogs.get(e.id);t&&(this.fDialogs.delete(e.id),t.close())}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(262),i(273),i(383),i(9118),i(2730)],o=i.dj.d(n,(function(e,t,i,n,o){return class{constructor(e,t){this.fModel=e,this.fCommandExecutor=new i(t),this.fModel.onStart(()=>{this.update()})}update(){const i=this.makeTable(),n={type:t.TYPE.SPL1,label:o.CompareToLocal,"data-test-id":"compare1File"},r={type:t.TYPE.SPL2,label:o.CompareSelected,"data-test-id":"compare2Files"};this.fDialog=e.createDialog({title:o.LogDialogTitle,className:"cmlinkLogDialog",dialogType:e.MODAL,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,buttons:[n,r,t.CLOSE],"data-test-id":"cmlinkLogDialog",content:i.getContentPane()}),this.fDialog.on("close",()=>{this.fDialog=null,this.fCommandExecutor.execute("close")}),this.fDialog.addButtonEventListener(t.CLOSE,()=>{},!0);let a=null;this.fDialog.addButtonEventListener(n,()=>{const e=this.getLogViewRoot().file;a&&a.length>0&&this.fCommandExecutor.execute("compare1",e,a[0])},!0),this.fDialog.addButtonEventListener(r,()=>{const e=this.getLogViewRoot().file;a&&a.length>1&&this.fCommandExecutor.execute("compare2",e,a[0],a[a.length-1])},!0),this.fDialog.disableButton(n),this.fDialog.disableButton(r),i.on("selected",e=>{a=e,this.fDialog.disableButton(n),this.fDialog.disableButton(r),1===a.length&&this.fDialog.enableButton(n),2===a.length&&this.fDialog.enableButton(r)}),this.fDialog.resizeTo({width:600,height:350}),this.fDialog.moveTo({})}makeTable(){const e=this.getLogViewRoot();return new n(e)}getLogViewRoot(){return this.fModel.getTopLevelObject("cmlink.view.core.LogView")}close(){this.fDialog&&this.fDialog.close()}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(326),i(2660),i(2730),i(772),i(206),i(222)],o=i.dj.d(n,(function(e,t,i,n,o,r){return class extends r{constructor(n){super();const r=n.revisions.getAllValues();if(r.size<=0)return;const a=[];r.forEach(e=>{const t=[e.name];e.metadata.forEach(e=>{t.push(e.value)}),a.push(t)});const s=new t(a),l={dataTestId:"cmLogTable",rowHeaderModel:{},features:[e.FEATURE.MultiRowSelection,e.FEATURE.ColumnResize,e.FEATURE.IndividualColumnSort],columnModel:{columnConfig:[{label:i.Revision,dataIndex:0,width:{value:100,unit:"%"}}]}},c=r.values().next().value;let d=0;c.metadata.forEach(e=>{l.columnModel.columnConfig.push({label:e.key,dataIndex:++d,width:{value:100,unit:"%"}})}),this.fTable=new e(s,l);const u=e=>{this.emit("selected",e)};this.fTable.on("selectionChanged",(function(e){const t=e.rangeList;if(t.length<1)return;const i=t.map(e=>e.row).sort().map(e=>r[e].name);u(i)})),this.fTable.startup(),o(this.fTable.domNode,"resize",(function(){this.fTable.resizeHandler()}))}start(){this.fTable.startup(),this.fTable.resizeHandler()}getContentPane(){return this.fTable.domNode}}}),e,t),e.exports=o},function(e,t,i){e.exports={CompareSelected:"選択対象の比較",CompareToLocal:"ローカルと比較",LogDialogTitle:"ファイル ログ",MarkConflictResolved:"競合が解決済みであるとしてマークする",NotUnderSourceControl:"フォルダー ${0} のソース管理統合が見つかりません",Revision:"リビジョン",RevisionNotFound:"リビジョン ${0} を解決できません。",ShowLog:"リビジョンの表示"}},function(e,t,i){e.exports={CompareSelected:"선택한 파일 비교",CompareToLocal:"로컬 파일과 비교",LogDialogTitle:"파일 로그",MarkConflictResolved:"충돌을 해결 상태로 표시",NotUnderSourceControl:"폴더 ${0}에 대한 소스 컨트롤 연동을 찾을 수 없음",Revision:"수정본",RevisionNotFound:"수정본 ${0}을(를) 확인할 수 없습니다.",ShowLog:"수정본 표시"}},function(e,t,i){e.exports={CompareSelected:"与选定项比较",CompareToLocal:"与本地文件比较",LogDialogTitle:"文件日志",MarkConflictResolved:"标记冲突已解决",NotUnderSourceControl:"找不到文件夹 ${0} 的源代码管理集成",Revision:"修订版",RevisionNotFound:"无法解析修订版 ${0}。",ShowLog:"显示修订版"}},function(e,t,i){e.exports={root:{CompareSelected:"Compare Selected",CompareToLocal:"Compare to Local",LogDialogTitle:"File Log",MarkConflictResolved:"Mark Conflict Resolved",NotUnderSourceControl:"Unable to find source control integration for folder ${0}",Revision:"Revision",RevisionNotFound:"Unable to resolve revision ${0}.",ShowLog:"Show Revisions"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){this.ServiceToEndPointsMap={USAGE_DATA_COLLECTION_SERVICE:{service:"USAGE_DATA_COLLECTION_SERVICE",endpoint:""},HELP_DATA_SERVICE:{service:"HELP_DATA_SERVICE",endpoint:"",serverRoot:"/help/search",serviceURI:""}}},on:function(e,t){t(this.ServiceToEndPointsMap)},getServiceEndPointsMap:function(){return this.ServiceToEndPointsMap}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){return e([t],{constructor:function(e){},getShareInfo:function(e){return{pending:!1,consumers:{items:[]}}},updateShareInfo:function(e){},updatedShareInfo:function(){},clearClientCache:function(e){},onFault:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203)],o=i.dj.d(n,(function(e){return e([],{constructor:function(){},startup:function(){},domNode:document.createElement("div")})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(204),i(222),i(206),i(247),i(232),i(2731),i(2721),i(398)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){var d=r.parseQueryString(),u=!!d.deferredRemoteConfig,h=d.mre||"",p=d.routingkey||"",f=d.computeToken||"",g=!!d.mss;function m(){var e,i,n,o,r,s;return i=new t,n=function(){i.resolve(!0),e()},o=function(){i.resolve(!1),e()},s="WorkerSessionData"+Date.now(),a.registerResponseHandler("SaveSessionStateResponse:"+s,n),a.registerFaultHandler("SaveSessionState:"+s,o),r=window.setTimeout(o,3e3),e=function(){a.deregisterResponseHandler("SaveSessionStateResponse:"+s),a.deregisterFaultHandler("SaveSessionState:"+s),window.clearTimeout(r)},a.sendMessage({SaveSessionState:{includePath:!0}},{},s),i.promise}return c.markStart("loginFlow.acquireMatlab"),e([n],{constructor:function(e){this.uiLifecycle=e.uiLifecycle,this.userDataService=e.userDataService,this._workerClient=s.getInstance({type:"pmp",postMessageProtocol:e.postMessageProtocol,deferredRemoteConfig:u,defaultRemoteEndpoint:h,routingKey:p,computeToken:f}),this._postMessageProtocol=e.postMessageProtocol;var i=new t;if(this.uiLifecycle.registerTask("WORKER_CONNECTED",(function(){return i.promise})),this._endComputeSession=new t,this.uiLifecycle.registerTask("WORKER_READY",function(){return window.addEventListener("beforeunload",m),l(),this._endComputeSession.promise}.bind(this)),this.uiLifecycle.registerTask("PRE_WORKER_DISCONNECTED",(function(){return window.removeEventListener("beforeunload",m),m()})),this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",function(){this._workerClient.onSessionDisconnect()}.bind(this)),this._postMessageProtocol=e.postMessageProtocol,this._heartbeatService=e.heartbeatService,o(e.postMessageRequestHandler,"UserConfigured",function(t){this.userInfo=t,g||e.userDataService.setUserInfo(t),i.resolve()}.bind(this)),u){var n=new t;this.uiLifecycle.registerTask("PAGE_LOAD",function(){return o(this._workerClient,"onSessionCreated",n.resolve),n.promise}.bind(this))}e.postMessageRequestHandler.setWorkerClient(this._workerClient),this.start()},start:function(){this.uiLifecycle.start()},onUpdate:function(){},getCurrentState:function(){return"computeResourceReady"},getCurrentUserInfo:function(){return this.userDataService.getUserInfo()},login:function(){},logout:function(){this._endComputeSession.resolve()},logoutWithoutSessionSave:function(){this._endComputeSession.resolve()},isNewWorker:function(){return!1},setCurrentState:function(){},_setCurrentState:function(e){this._state!==e&&(this._state=e,this.onUpdate())},getSessionTimeoutSeconds:function(){return 3600},sendGetCurrentUser:function(){},isResettingWorker:function(){return!1},terminateMATLABSession:function(e){e&&(this.singleSignOut=e.singleSignOut,this._workerClient.setDisconnectOptions({signOut:!!e.singleSignOut,restartSession:e.restartSession})),this._endComputeSession.resolve()},_getAssumedParentOrigin:function(){return window.location.origin.replace(/gateway-[0-9]+[-\\.]/g,"")},wasUserTimedOut:function(){return!1},handleDisconnectSubscriptionMessage:function(e){if(e){var i=new t;return i.resolve({msgType:"response"+e.msgType.substring(e.msgType.indexOf("/"),e.msgType.length),retVal:"Disconnect message Subscription received"}),i.promise}},handleHeartBeatSubscription:function(e){var n=new t,o={inactivityTimeout:1e3*e.inactivityTimeout,maxSessionTimeout:1e3*e.maxSessionTimeoutSeconds,countdownLength:e.countdownLength,countdownEndCallback:i.hitch(this,"onInactivityTimeout"),pingServer:i.hitch(this,"pingServer"),isLRTFeatureEnabled:e.isLRTFeatureEnabled};return this._heartbeatService.start({},o),n.resolve({msgType:"response"+e.msgType.substring(e.msgType.indexOf("/"),e.msgType.length),retVal:"HeartBeatService Subscription received"}),n.promise},pingServer:function(){this._postMessageProtocol.sendToParent("SubscriptionResponse",{msgType:"response/HeartBeatService",retVal:{userActive:!0}})},onInactivityTimeout:function(){this._heartbeatService.stop(),this._workerClient.setDisconnectOptions({userRequested:!1}),this.terminateMATLABSession()},reloadPage:function(e){e&&e.userEndedComputeSession&&this._endComputeSession.resolve()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2732)],o=i.dj.d(n,(function(e,t){return e(t,{constructor:function(e){e=e||{},this._postMessageProtocol=e.postMessageProtocol,e.deferredRemoteConfig||this.onSessionCreated({defaultRemoteEndpoint:e.defaultRemoteEndpoint,routingKey:e.routingKey,computeToken:e.computeToken})},onSessionDisconnect:function(){this._postMessageProtocol.sendToParent("request",Object.assign({msgType:"request/Disconnect"},this._disconnectOptions))}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(247),i(2732)],o=i.dj.d(n,(function(e,t,i){var n=t.parseQueryString();return e(i,{constructor:function(e){var t=e.defaultRemoteEndpoint||this.defaultRemoteEndpoint(),i=n.nomatlab;(async function(e){const t=function(e){return new Promise((function(t){return setTimeout(t,e)}))},i=async function(){var t=!1;const i=await fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:{Ping:[{}]}})});if(i.ok){var n=await i.json();!n.hasOwnProperty("fault")&&n.hasOwnProperty("messages")&&n.messages.hasOwnProperty("PingResponse")&&(t=!0)}return t};return new Promise((async function(e,n){for(var o=await i();!o;)await t(10),o=await i();e()}))})(new URL(i?"messageservice/json/blue":"messageservice/json",t).href).then(function(){this.onSessionCreated(e),this.setupClientTypeAndSetupPath()}.bind(this))},onSessionDisconnect:function(){window.close()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(206),i(247),i(2731)],o=i.dj.d(n,(function(e,t,i,n,o,r){var a={firstName:""};return e([i],{constructor:function(e){var i=o.parseQueryString();this._isDesktopOnly=i.desktoponly,this._isJSD=!0,this.uiLifecycle=e.uiLifecycle,this._workerClient=r.getInstance({type:"jsd",defaultRemoteEndpoint:e.defaultRemoteEndpoint});var a=new t;this.uiLifecycle.registerTask("PAGE_LOAD",(function(){return a.promise})),this._endComputeSession=new t,this.uiLifecycle.registerTask("WORKER_READY",function(){return this._endComputeSession.promise}.bind(this)),this.uiLifecycle.registerTask("POST_WORKER_DISCONNECTED",function(){this._workerClient.onSessionDisconnect()}.bind(this)),n(this._workerClient,"onSessionCreated",a.resolve),e.isHeartBeatEnabled&&e.heartbeatService.start({}),this.start()},userInfo:{firstName:null,userToken:{}},isJSD:function(){return this._isJSD},isDesktopOnly:function(){return this._isDesktopOnly},reloadPage:function(){console.log("reloadPage not implemented for JSD")},start:async function(){this._started||(this._started=!0,this.uiLifecycle.start(),this.isDesktopOnly()&&(dialogStateManager.openNotificationAlertDialog=function(e,t,i){console.error(t)}))},onUpdate:function(){},getCurrentState:function(){return"computeResourceReady"},getCurrentUserInfo:function(){return a},login:function(){},logout:function(){this._endComputeSession.resolve()},logoutWithoutSessionSave:function(){this._endComputeSession.resolve()},isNewWorker:function(){return!1},setCurrentState:function(){},_setCurrentState:function(e){this._state!==e&&(this._state=e,this.onUpdate())},getSessionTimeoutSeconds:function(){return 3600},sendGetCurrentUser:function(){},isResettingWorker:function(){return!1},terminateMATLABSession:function(e){e&&e.singleSignOut&&(this.singleSignOut=!0,this._workerClient.setDisconnectOptions({signOut:!0})),this._endComputeSession.resolve()},wasUserTimedOut:function(){return!1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(212),i(222),i(206),i(244),i(232),i(9131),i(9132),i(9133),i(9134),i(9135),i(9136),i(2733)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h){return e([i],{_webwindows:{},_impendingWindows:{},constructor:function(e){this.ChildWindowManager=e.ChildWindowManager,this.moFigureManager=e.moFigureManager,this.heartbeatService=e.heartbeatService,this.webWindowChannel=new c,this.ENCAPSULATED_PAGE=e.ENCAPSULATED_PAGE,n(window.self,"beforeunload",function(){this.closeAllWindows.bind(this)(),this.stop()}.bind(this)),this.BringToFront=new u({_webwindowInFront:this._webwindowInFront.bind(this),hideAllWindows:this.hideAllWindows.bind(this)})},start:function(){this._hasBeenStarted||(this._hasBeenStarted=!0,this._listenForWindowUpdates(),this._updateDefaultPosition()),this._removeListeners(),this._listeners.push(n(this.webWindowChannel,"register",this._addWindow.bind(this))),this._listeners.push(n(this.webWindowChannel,"bringParentToFront",this.bringParentToFront.bind(this))),this._listeners.push(n(this.webWindowChannel,"command",this._runWebWindowCommand.bind(this))),this._listeners.push(n(this.webWindowChannel,"deregister",this._removeWindow.bind(this))),this._listeners.push(n(this.webWindowChannel,h.EVENTS.HEARTBEAT,this._markHeartbeat.bind(this)))},stop:function(){this._removeListeners()},_removeListeners:function(){this._listeners&&this._listeners.forEach((function(e){e.remove()})),this._listeners=[]},_markHeartbeat:function(){this.heartbeatService&&this.heartbeatService.markUiActivity()},_listenForWindowUpdates:function(){var e=!1;window.addEventListener("resize",function(){e||(e=!0,window.setTimeout(function(){e=!1,this._updateDefaultPosition()}.bind(this),1e3))}.bind(this))},_runWebWindowCommand:function(e){var t=this,i=e.data.args,o=this.getWindowById(i.winId);if(o){var r=null;if(o.isVisible||"show"===e.data.type||!o.isVisible&&"hide"===e.data.type)r=o[e.data.type].bind(o)(i);else{if("close"!==e.data.type){var a=n(o,h.EVENTS.VISIBILITYCHANGED,(function(n){i.winId===n.winId&&(o.isVisible=n.isVisible,t._runWebWindowCommand(e),a.remove())}));return}o.emit(o.EVENTS.MATLABWINDOWEXITED,{winId:o.winId}),r=o._fakeAsync()}r.then((function(t){o.emit(e.data.type,t)}))}else if(this._impendingWindows[i.winId])var s=n(this,"register",(function(n){i.winId===n.winId&&(t._runWebWindowCommand(e),s.remove())}));else this.webWindowChannel.sendGenericMessage({winId:i.winId,type:"WindowInvalid"})},bringParentToFront:function(){window.focus(),window.document.hasFocus()||this.BringToFront.parentToFront(),this.emit("bringToFront",null)},_webwindowInFront:function(){for(var e in this._webwindows){var t=this._webwindows[e];if(t.hasFocus)return t}return null},getWindowById:function(e){return this._webwindows[e]},getWindowsByUrl:function(e){var t=[];for(var i in this._webwindows)this._webwindows.hasOwnProperty(i)&&this._webwindows[i]&&this._webwindows[i].getURL&&this._webwindows[i].getURL()===e&&t.push(this._webwindows[i]);return t},_addWindow:function(e){var t=e.data.args;this._impendingWindows[t.winId]=!0,this._createWindow(t).then(function(e){delete this._impendingWindows[t.winId],this._webwindows[t.winId]=e,this.webWindowChannel._registerWindow(e),this.emit("register",{winId:t.winId})}.bind(this))},_createWindow:function(e){var i=new t,n=(d.isSameOriginAsHostPage(d.getOriginOfUrl(e.url)),"Floating"===e.windowContainer),o="Dialog"===e.windowContainer;return n?(e.moFigureManager=this.moFigureManager,i.resolve(new a(e))):o?i.resolve(new s(e)):(e.BringToFront=this.BringToFront,e.ChildWindowManager=this.ChildWindowManager,e.tabbed="Tabbed"===e.windowContainer,e.ENCAPSULATED_PAGE=this.ENCAPSULATED_PAGE,e.isWorkerUrl?(e.encapsulated=!0,i.resolve(new l(e))):i.resolve(new l(e))),i.promise},_removeWindow:function(e){this.emit("deregister",{winId:e.winId}),delete this._webwindows[e.winId]},closeAllWindows:function(){var e=[];for(var t in this._webwindows)if(this._webwindows.hasOwnProperty(t)){var i=this._webwindows[t];i.emit(i.EVENTS.MATLABWINDOWEXITED,{winId:i.winId}),e.push(i.close({winId:i.winId}))}return this.webWindowChannel.flushMessageService(),o(e)},killDanglingMatlabWebwindows:function(){this.webWindowChannel.sendGenericMessage({type:"killAll"})},_updateDefaultPosition:function(){var e=window.innerWidth,t=window.innerHeight,i=[.125*e,.125*t,.75*e,.75*t];r.sendMessage({FEval:{function:"connector.internal.webwindowmanager.setClientDefaults",arguments:[{position:i}],nargout:0,dequeMode:"ppe"}})},hideAllWindows:function(){for(var e in this._webwindows){this._webwindows[e].hide()}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(212),i(203),i(1690),i(206),i(222),i(217)],o=i.dj.d(n,(function(e,t,i,n,o,r){return t([i,o],{constructor:function(e){this.moFigureManager=e.moFigureManager},_addWindowListeners:function(){this._registration.listeners.push(n(this,"beforeunload",function(){this.emit(this.EVENTS.BEFOREUNLOAD,{winId:this.winId}),this.emit(this.EVENTS.MATLABWINDOWEXITED,{winId:this.winId})}.bind(this))),this._registration.listeners.push(n(this.window.moFigureContainer,"moFigureClosed",function(){this.emit(this.EVENTS.WINDOWCLOSING,{winId:this.winId})}.bind(this))),this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore(function(e){e.wrapper.onFocus=function(){this.emit(this.EVENTS.FOCUSGAINED,{winId:this.winId})}.bind(this)}.bind(this),{id:this.winId}),this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore(function(e){e.wrapper.onBlur=function(){this.emit(this.EVENTS.FOCUSLOST,{winId:this.winId})}.bind(this)}.bind(this),{id:this.winId}),this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore(function(e){e.wrapper.onShow=function(){this.emit(this.EVENTS.VISIBILITYCHANGED,{winId:this.winId,isVisible:!0})}.bind(this)}.bind(this),{id:this.winId}),this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore(function(e){e.wrapper.onHide=function(){this.emit(this.EVENTS.VISIBILITYCHANGED,{winId:this.winId,isVisible:!1})}.bind(this)}.bind(this),{id:this.winId}),this._registration.listeners.push(n(this.window.moFigureContainer.widget,"onContainerResize",function(){var e=this.getPosition();this.emit(this.EVENTS.WINDOWRESIZED,{winId:this.winId,bounds:e}),this.window.moFigureContainer.updateProperty(this.winId,{position:e})}.bind(this))),this.inherited(arguments)},show:function(e){if(void 0===this.window){var t=e.url,i={data:{peerNodeId:e.winId,position:[e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h],name:"",resizable:!0,visibility:!0,eventType:"windowOpen",enableMaximizeButton:!0,host:t,avoidUrlModification:!0,modal:e.modal,alwaysOnTop:e.alwaysOnTop}};this.moFigureManager._createMOFigureContainerController(i),this.window=this.moFigureManager._getMOFigureController(e.winId),this.setPosition(e),this._addWindowListeners(),this.emit(this.EVENTS.VISIBILITYCHANGED,{winId:this.winId,isVisible:!0}),this.emit(this.EVENTS.PAGELOADFINISHED,{winId:this.winId,bounds:this.getPosition()})}else this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore((function(e){e.wrapper.onTop=!1,e.wrapper.show()}),{id:e.winId});return this.inherited(arguments),this._fakeAsync()},close:function(e){return this.emit("beforeunload"),this.window.moFigureContainer.close(e.winId),this._fakeAsync()},bringToFront:function(e){return this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore((function(e){e.wrapper.onTop=!1,e.wrapper.show()}),{id:e.winId}),this.window.moFigureContainer.iframeLayoutManager.bringToTop(this.winId),this._fakeAsync()},hide:function(e){return this.isVisible?(this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore((function(e){e.wrapper.paneOriginalPosition=r.position(e.wrapper.domNode),e.wrapper.hide((function(){}))}),{id:this.winId}),this._fakeAsync()):this._fakeAsync()},setPosition:function(e){e.bounds.y=this._yToTop(e.bounds),e.bounds=this._constrainToWindowSize(e.bounds),this.window.moFigureContainer.setPosition(e.winId,{peerNodeId:e.winId,position:[e.bounds.y,e.bounds.x,e.bounds.w,e.bounds.h],eventType:"windowPropertyChanged"});var t=this.getPosition();return this.window.moFigureContainer.widget.emit("onContainerResize",{}),this._fakeAsync({bounds:t})},setResizable:function(e){return e.isResizable?this.window.moFigureContainer.iframeLayoutManager._addRemoveResizeHandle(this.window.moFigureContainer.widget,!0):this.window.moFigureContainer.iframeLayoutManager._addRemoveResizeHandle(this.window.moFigureContainer.widget,!1),this._fakeAsync()},setMinSize:function(e){return this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore(function(t){t.wrapper.fullResizeHandle?t.wrapper.fullResizeHandle.set("minSize",{w:e.minSize.w,h:e.minSize.h+this.window.moFigureContainer.containerTitleBarHeight}):t.wrapper._resizeHandle&&(t.wrapper._resizeHandle.minSize={w:e.minSize.w,h:e.minSize.h+this.window.moFigureContainer.containerTitleBarHeight})}.bind(this),{id:e.winId}),this._fakeAsync()},setMaxSize:function(e){return this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore(function(t){if(t.wrapper.fullResizeHandle){var i=e.maxSize.w,n=e.maxSize.h+this.window.moFigureContainer.containerTitleBarHeight;t.wrapper.setMaximumSize(i,n),modele.wrapper.enableMaximize(!1)}else t.wrapper._resizeHandle&&(t.wrapper._resizeHandle.maxSize={w:e.maxSize.w,h:e.maxSize.h+this.window.moFigureContainer.containerTitleBarHeight},t.wrapper._resizeHandle.constrainMax=!0)}.bind(this),{id:e.winId}),this._fakeAsync()},maximize:function(e){return e.bounds={x:0,y:0,w:window.innerWidth-1,h:window.innerHeight-(this.window.moFigureContainer.containerTitleBarHeight+2)},this.setPosition(e),this._fakeAsync({bounds:this.getPosition()})},minimize:function(e){return this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore((function(e){e.wrapper.minimize()}),{id:this.winId}),this._fakeAsync()},fullscreen:function(e){return this.window.requestFullscreen?this.window.requestFullscreen():this.window.mozRequestFullScreen?this.window.mozRequestFullScreen():this.window.webkitRequestFullscreen?this.window.webkitRequestFullscreen():this.window.msRequestFullscreen&&this.window.msRequestFullscreen(),this._fakeAsync()},setURL:function(e){return this.window.moFigureContainer.widget.frame.src=e.url,this._fakeAsync()},getURL:function(e){return this.window.moFigureContainer.widget.frame.src},setTitle:function(t){this.window.moFigureContainer.iframeLayoutManager._update(t.winId,{name:t.title});var i=new e;return this.window.moFigureContainer.iframeLayoutManager.queryLayoutStore((function(e){var t={title:e.wrapper.titleNode.innerText,winId:this.winId};i.resolve(t)}),{id:this.winId}),i.promise},setAlwaysOnTop:function(e){return this.window.moFigureContainer.iframeLayoutManager._update(e.winId,{alwaysOnTop:e.alwaysOnTop}),this._fakeAsync()},getPosition:function(){var e=this.window.moFigureContainer.getRenderedPosition();return(e={x:(e=e.map(Math.round))[1],y:e[0],w:e[2],h:e[3]}).x+=1,e.y=window.innerHeight-(e.h+1)-e.y,e},_yToTop:function(e){return window.innerHeight-e.y-e.h-(this.window.moFigureContainer.containerTitleBarHeight+2)},_constrainToWindowSize:function(e){var t,i,n,o,r=window.innerWidth,a=window.innerHeight-(this.window.moFigureContainer.containerTitleBarHeight+2);return t=this._constrainValueBetween(e.x,0,r),i=this._constrainValueBetween(e.y,0,a),n=this._constrainValueBetween(e.w,0,r),o=this._constrainValueBetween(e.h,0,a),{x:t=this._constrainValueBetween(t+n,0,r)-n,y:i=this._constrainValueBetween(i+o,0,a)-o,w:n,h:o}},_constrainValueBetween:function(e,t,i){return e<t?t:e>i?i:e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(238),i(212),i(203),i(227),i(211),i(217),i(213),i(1690),i(206),i(222),i(262),i(772)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return i([s,c],{_addWindowListeners:function(){var t=this;l(this,"load",function(e){this.emit(this.EVENTS.VISIBILITYCHANGED,{winId:this.winId,isVisible:!0}),this.emit(this.EVENTS.PAGELOADFINISHED,{winId:this.winId,bounds:this.getPosition()})}.bind(this)),this.window.on("close",function(e){this.emit(this.EVENTS.BEFOREUNLOAD,{winId:this.winId}),this.emit(this.EVENTS.MATLABWINDOWEXITED,{winId:this.winId})}.bind(this)),this.window.on("resize",function(e){var t=this.getPosition();this.emit(this.EVENTS.WINDOWRESIZED,{winId:this.winId,bounds:t})}.bind(this)),this.window.on("move",function(e){this._moveTimeout&&window.clearTimeout(this._moveTimeout),this._moveTimeout=window.setTimeout(function(){var e=this.getPosition();this.emit(this.EVENTS.WINDOWRESIZED,{winId:this.winId,bounds:e})}.bind(this),300)}.bind(this)),l(this.window._contentWidget.domNode.contentWindow,"click",function(){this.emit(this.EVENTS.HEARTBEAT,{winId:this.winId})}.bind(this)),e.watch("curNode",(function(e,i,o){n.isDescendant(i,t.window.domNode)&&t.emit(t.EVENTS.FOCUSLOST,{winId:t.winId}),n.isDescendant(o,t.window.domNode)&&t.emit(t.EVENTS.FOCUSGAINED,{winId:t.winId})})),this.inherited(arguments)},show:function(e){if(void 0===this.window){var t=o.create("iframe",{src:e.url,style:"width: 100%; height: 100%;"},document.body);t.onload=function(){this.emit("load")}.bind(this),this.window=d.createDialog({title:"",dialogType:e.modal?d.MODAL:d.MODELESS,closeOnEscape:!0,closable:!0,draggable:!0,resizable:!0,position:e.bounds,content:t}),this.window._contentArea.style.padding="0px",this.window._contentArea.style.overflow="hidden",this.setPosition(e)}else a.set(this.window.domNode,"visibility","visible"),this.emit(this.EVENTS.VISIBILITYCHANGED,{winId:this.winId,isVisible:!0});return this._addWindowListeners(),this.inherited(arguments),this._fakeAsync()},close:function(e){return this.window.close(),this._fakeAsync()},bringToFront:function(e){return this.window.bringToTop(),this._fakeAsync()},hide:function(e){return a.set(this.window.domNode,"visibility","hidden"),this.emit(this.EVENTS.VISIBILITYCHANGED,{winId:this.winId,isVisible:!1}),this._fakeAsync()},setPosition:function(e){e.bounds.y=window.innerHeight-(e.bounds.h+this.window._titleBar.clientHeight)-e.bounds.y,this.window.moveTo({x:e.bounds.x,y:e.bounds.y}),this.window.domNode.style.width=e.bounds.w+"px",this.window.domNode.style.height=e.bounds.h+this.window._titleBar.clientHeight+"px";var t=void 0,i=r.position(this.window.domNode);if(this.window._contentArea)var n={w:(t=r.position(this.window._contentArea)).w,h:t.h};return l.emit(this.window.domNode,"resize",{bubbles:!1,dimension:i,contentSize:n}),this._fakeAsync({bounds:this.getPosition()})},setResizable:function(e){return u.disable(this.window),e.isResizable&&u.enable({widget:this.window,bindingNode:this.window._bindingNode}),this._fakeAsync()},setMinSize:function(e){return a.set(this.window.domNode,"min-width",e.minSize.w+"px"),a.set(this.window.domNode,"min-height",e.minSize.h+this.window._titleBar.clientHeight+"px"),this._fakeAsync()},setMaxSize:function(e){return a.set(this.window.domNode,"max-width",e.maxSize.w+"px"),a.set(this.window.domNode,"max-height",e.maxSize.h+this.window._titleBar.clientHeight+"px"),this._fakeAsync()},maximize:function(e){return e.bounds={x:0,y:0,w:window.innerWidth,h:window.innerHeight},this.setPosition(e),this._fakeAsync({bounds:this.getPosition()})},fullscreen:function(e){return this._fakeAsync()},setURL:function(e){return this.window._contentWidget.domNode.src=e.url,this._fakeAsync()},getURL:function(e){return this.window._contentWidget.domNode.src},setTitle:function(e){return this.window.title=e.title,this._fakeAsync({title:this.window.title})},getPosition:function(){var e=r.position(this.window.domNode);return e.x+=1,e.y=window.innerHeight-e.h-e.y+1,e.h-=this.window._titleBar.clientHeight,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1690),i(1081),i(206)],o=i.dj.d(n,(function(e,t,i,n){return e([t],{ENCAPSULATED_PAGE:"window.html",constructor:function(e){this.tabbed=e.tabbed,this.encapsulated=e.encapsulated,this.forceSameDomainAsParent=this.encapsulated&&e.forceSameDomainAsParent,e.ENCAPSULATED_PAGE&&(this.ENCAPSULATED_PAGE=e.ENCAPSULATED_PAGE),this.ChildWindowManager=e.ChildWindowManager,this.BringToFront=e.BringToFront,this._fontsToPreload=["/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXGeneral-Regular.woff","/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXGeneral-Italic.woff","/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXGeneral-Bold.woff","/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXGeneral-BoldItalic.woff","/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXSizeOneSym-Regular.woff","/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXSizeTwoSym-Regular.woff","/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXSizeThreeSym-Regular.woff","/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXSizeFourSym-Regular.woff","/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXSizeFiveSym-Regular.woff","/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXNonUnicode-Regular.woff","/toolbox/matlab/appdesigner/web/release/STIXfonts/fonts/STIXVariants-Regular.woff","/toolbox/matlab/appdesigner/web/release/fonts/MWMathExt.ttf","/toolbox/matlab/appdesigner/web/release/fonts/MWMathExt1.ttf","/toolbox/matlab/appdesigner/web/release/fonts/MWMathExt2.ttf","/toolbox/matlab/appdesigner/web/release/fonts/MWMathExt3.ttf","/toolbox/matlab/appdesigner/web/release/fonts/MWMathExt4.ttf","/toolbox/matlab/appdesigner/web/release/fonts/MWMathExt5.ttf"]},_addWindowListeners:function(){i.addWindowBoundsListener(this.window,function(){this.emit(this.EVENTS.WINDOWRESIZED,{winId:this.winId,bounds:this.getPosition(this.window)})}.bind(this)),this._registration.listeners.push(n(this.window,"load",function(){this.emit(this.EVENTS.VISIBILITYCHANGED,{winId:this.winId,isVisible:!0}),this.winName=this.window.name,this.emit(this.EVENTS.PAGELOADFINISHED,{winId:this.winId,name:this.window.name,bounds:this.getPosition()})}.bind(this))),this._registration.listeners.push(n(this.window,"focus",function(){this.emit(this.EVENTS.FOCUSGAINED,{winId:this.winId})}.bind(this))),this._registration.listeners.push(n(this.window,"blur",function(){this.emit(this.EVENTS.FOCUSLOST,{winId:this.winId})}.bind(this))),this._registration.listeners.push(n(this.window,"click",function(){this.emit(this.EVENTS.HEARTBEAT,{winId:this.winId})}.bind(this))),this._registration.listeners.push(n(this.window,"resize",function(){this.emit(this.EVENTS.WINDOWRESIZED,{winId:this.winId,bounds:this.getPosition()}),(this._maxSize||this._minSize)&&(this._checkSizeTimeout&&window.clearTimeout(this._checkSizeTimeout),this._checkSizeTimeout=window.setTimeout(function(){this._enforceSize(),this._checkSizeTimeout=null}.bind(this),50))}.bind(this))),this.inherited(arguments)},_enforceSize:function(){var e=this.getPosition(),t={w:e.w,h:e.h};this._maxSize&&(e.w>this._maxSize.w&&(t.w=this._maxSize.w),e.h>this._maxSize.h&&(t.h=this._maxSize.h)),this._minSize&&(e.w<this._minSize.w&&(t.w=this._minSize.w),e.h<this._minSize.h&&(t.h=this._minSize.h)),e.w===t.w&&e.h===t.h||this.window.resizeTo(t.w,t.h)},show:function(e){var t=this._fakeAsync();if(void 0===this.window){e.bounds.y=window.screen.availHeight-e.bounds.h-e.bounds.y;var n=e.url;if(this.encapsulated){var o="?";-1!==(n=window.location.href.replace(/[^/]*$/,"")+this.ENCAPSULATED_PAGE).indexOf("?")&&(o="&"),n+=o+"winId="+e.winId}var r={id:e.winId,bounds:e.bounds,initialData:this.encapsulated?{url:e.url,forceSameDomainAsParent:this.forceSameDomainAsParent,fontsToPreload:this._fontsToPreload}:null,tabbed:this.tabbed,persistBounds:!1,closeHandler:function(){this.emit(this.EVENTS.BEFOREUNLOAD,{winId:this.winId}),this.emit(this.EVENTS.MATLABWINDOWEXITED,{winId:this.winId})}.bind(this),url:n,childTitle:e.title},a={x:e.bounds.x,y:e.bounds.y,w:e.bounds.w,h:e.bounds.h},s=this.ChildWindowManager.open(r);null===s?this.emit("openFailure"):s.then&&s.always?(t=s).then(function(e){this.window=e,i.setWindowBounds(this.window,a),this._addWindowListeners()}.bind(this),(function(){})):(this.window=s,i.setWindowBounds(this.window,a),this._addWindowListeners())}else this.window.focus();return this.inherited(arguments),t},close:function(e){return this.window.close(),this._fakeAsync()},bringToFront:function(e){return this.window.focus(),this.window.document.hasFocus()||this.BringToFront.webwindowToFront(this,e.title),this._fakeAsync()},hide:function(e){},setPosition:function(e){return e.bounds.y=window.screen.availHeight-e.bounds.h-e.bounds.y,i.setWindowBounds(this.window,e.bounds),this._fakeAsync({bounds:this.getPosition()})},setResizable:function(e){if(e.isResizable)this.window.isResizable&&this.window.isResizable.remove();else{var t=this.getPosition(this.window);this.window.isResizable=n(this.window,"resize",(function(){t.y=window.screen.availHeight-t.h-t.y,i.setWindowBounds(this.window,t)}))}return this._fakeAsync()},setMinSize:function(e){return this._minSize=e.minSize,this._fakeAsync()},setMaxSize:function(e){return this._maxSize=e.maxSize,this._fakeAsync()},maximize:function(e){return this.window.moveTo(0,0),this.window.resizeTo(this.window.screen.availWidth,this.window.screen.availHeight),this._fakeAsync({bounds:this.getPosition()})},fullscreen:function(e){return this.window.requestFullscreen?this.window.requestFullscreen():this.window.mozRequestFullScreen?this.window.mozRequestFullScreen():this.window.webkitRequestFullscreen?this.window.webkitRequestFullscreen():this.window.msRequestFullscreen&&this.window.msRequestFullscreen(),this._fakeAsync()},setURL:function(e){return this.window.location=e.url,this._fakeAsync()},getURL:function(e){return this.window.location},setTitle:function(e){return this.window.document.title=e.title,sessionStorage.setItem(this.winId+"_title",e.title),this._fakeAsync({title:this.window.document.title})},getPosition:function(){var e=i.getWindowBounds(this.window);return e.y=window.screen.availHeight-e.h-e.y,e.x+=1,e.y+=1,e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222),i(219),i(206),i(232)],o=i.dj.d(n,(function(e,t,i,n,o){return e([t],{channel:"/channel/webwindow",constructor:function(){i.subscribe(this.channel,this._messageHandler.bind(this))},_registerWindow:function(e){var t=this,o={listeners:[]},r=function(){var r=e.EVENTS[a];o.listeners.push(n(e,r,(function(e){t.emit(r,e),e.type=r,i.publish(t.channel,e)})))};for(var a in e.EVENTS)r();o.listeners.push(n(e,e.EVENTS.MATLABWINDOWEXITED,(function(){o.listeners.forEach((function(e){e.remove()})),t.emit("deregister",{winId:e.winId})})))},flushMessageService:function(){i.isConnected()&&i.messageService.flush()},_messageHandler:function(e){var t,i;e&&e.data&&e.data.args&&e.data.args.url&&((t=new URL(o.createWorkerRoutingHostUrl(e.data.args.url))).searchParams.has("websocket")||(t.search+=(t.search.length>0?"&":"?")+"websocket=on"),e.data.args.url=t.href,i=new URL(o.getWorkerRoutingHost()),e.data.args.isWorkerUrl=t.origin===i.origin),"register"===e.data.type?this.emit("register",e):"bringParentToFront"===e.data.type?this.emit("bringParentToFront"):this.emit("command",e)},sendGenericMessage:function(e){i.publish(this.channel,e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(951)],o=i.dj.d(n,(function(e){return{getOriginOfUrl:function(t){var i=e.parseUrl(t),n=i.port&&""!==i.port?":"+i.port:"";return i.protocol+"//"+i.hostname+n},isSameOriginAsHostPage:function(e){return window.origin===e}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2734),i(9137)],o=i.dj.d(n,(function(e,t,i){return e([i],{constructor:function(e){this._webwindowInFront=e._webwindowInFront,this.hideAllWindows=e.hideAllWindows},parentToFront:function(){var e=this._webwindowInFront();if(e){e.window.postMessage({type:"bringToFront",winId:"motw",title:"MATLAB Online"},"*")}this.hideAllWindows()},webwindowToFront:function(e,i){var n=this._webwindowInFront();if(n){if(n.winId===e.winId)return;var o={type:"bringToFront",winId:e.winName,title:i};n.window.postMessage(o,"*")}else t.showBringToFrontDialog(e.window,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(222)],o=i.dj.d(n,(function(e,t){return e([t],{parentToFront:function(e){},webwindowToFront:function(e){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2734)],o=i.dj.d(n,(function(e){var t={_bringToFrontHandler:e.showBringToFrontDialog,setBringToFrontHandler:function(e){this._bringToFrontHandler=e},synchronousBringParentToFront:function(){document.hasFocus()&&window.top.postMessage({type:"bringToFront",winId:"motw",title:"MATLAB Online"},"*")}};(function(){try{return window.self!==window.top}catch(e){return!0}})()&&(window.self.addEventListener("click",(function(){window.top.postMessage({type:"bubbleClick"},"*")}),!0),window.self.addEventListener("blur",(function(){window.top.postMessage({type:"bubbleBlur"},"*")}),!0),window.self.addEventListener("focus",(function(){window.top.postMessage({type:"bubbleFocus"},"*")}),!0));return window.self.addEventListener("message",(function(e){if("bringToFront"===e.data.type){var i=window.open("",e.data.winId);t._bringToFrontHandler(i,e.data.title)}})),t}),e,t),e.exports=o},function(e,t,i){i.e(0).then((function(){var e=[i(9158),i(9159),i(9179),i(9180),i(9181),i(9187),i(9188),i(9191),i(9192),i(9194),i(9195),i(9196),i(9197)];(function(){}).apply(null,e)})).catch(i.oe)},function(e,t,i){var n,o;n=[i(9141),i(9154)],o=i.dj.d(n,(function(){}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(9142),i(9153),i(366),i(1552),i(596)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("importtool_peer.RemoteSpreadsheetTableViewModel",[i,t,o,r],{viewInitialized:!1,init:function(e){if(!this.viewInitialized){var t=[n.TABLE_META_DATA_CHANGED,n.ROW_META_DATA_CHANGED];this.initListenersOnView(this,t),this.viewInitialized=!0}this.inherited(arguments)},handleRemoteEvent:function(e){if("errorSelectionRange"===e.data.type){var t={selectionRange:e.data.dispValue};this._dispatchMetaDataChanged(t)}else this.inherited(arguments)},_handleTableMetaDataChanged:function(e){var t=this._getEventForWhenTableMetaDataChanged(e);this._dispatchMetaDataChanged(t)},_handleRowMetaDataChanged:function(){this.adjustOverlayForRowNames()},getCurrentViewState:function(){return this._getCommonCurrentViewState()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2735),i(2737),i(2738),i(742),i(986)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("importtool_peer.RemoteSpreadsheetArrayViewModel",[r,t,n],{_createMixedDataStore:function(e,t,n,o,r){return new i(e,t,n,o,r)},_updateView:function(){this.inherited(arguments),this._table.focus()},createTable:function(){this.inherited(arguments),this._contextMenuListener=this._table.on("contextMenu",this.handleImportContextMenu.bind(this))},destroyView:function(){this._contextMenuListener&&(this._contextMenuListener.remove(),this._contextMenuListener=null),this.destroyContextMenus(),this.inherited(arguments),this.destroy=function(){}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(9144),i(1194),i(235)],o=i.dj.d(n,(function(e,t,i,n){return e("importtool.data.ImportToolTableConstructor",[i],{_EXCEL_HEADERNAME_PROP:"excelHeader",_HEADERNAME_PROP:"HeaderName",_COL_VARTYPE_PROP:"columnVariableType",_COL_WIDTH_PROP:"FilteredColumnWidth",_SINGLE_CHAR_WIDTH_PROP:"SingleCharWidth",_HEADER_ROW_HIGHLIGHT_COLOR:"#A0C0E1",_HOVER_SELECTION_HIGHLIGHT_COLOR:"#FFC700",_CELL_REPLACEMENT_HIGHLIGHT_COLOR:"#FFDF00",_CELL_EXCLUSION_HIGHLIGHT_COLOR:"plum",getColumnHeaderLabel:function(e){var t=this.inherited(arguments);return t&&"object"==typeof t&&(t.excelHeader=this._metaDataStore.getColumnModelProperty(this._EXCEL_HEADERNAME_PROP,e),t.headerName=this._metaDataStore.getColumnModelProperty(this._HEADERNAME_PROP,e),t.columnVarType=this._metaDataStore.getColumnModelProperty(this._COL_VARTYPE_PROP,e),t.columnWidth=this._metaDataStore.getColumnModelProperty(this._COL_WIDTH_PROP,e),t.singleCharWidth=this._metaDataStore.getTableModelProperty(this._SINGLE_CHAR_WIDTH_PROP),t.columnNumber=e),t},getCellStyles:function(e,t){var i=this.inherited(arguments);if(this._metaDataStore)try{var o,r=this._metaDataStore.getCellModelProperty("isReplacementValue",e,t),a=this._metaDataStore.getCellModelProperty("isExclusionValue",e,t);r?(o={backgroundColor:this._CELL_REPLACEMENT_HIGHLIGHT_COLOR},i=n.mergeObjects(i,o)):a&&(o={backgroundColor:this._CELL_EXCLUSION_HIGHLIGHT_COLOR},i=n.mergeObjects(i,o));var s=this._metaDataStore.getTableModelProperty("HighlightVariableNamesRow"),l=this._metaDataStore.getTableModelProperty("VariableNamesRow")-1;if(s&&e===l){var c={backgroundColor:this._HEADER_ROW_HIGHLIGHT_COLOR};i=n.mergeObjects(i,c)}var d=this._metaDataStore.getTableModelProperty("HoverSelection");d&&d.rows&&d.columns&&d.rows.start<=e&&d.rows.end>=e&&d.columns.start<=t&&d.columns.end>=t&&(o={backgroundColor:this._HOVER_SELECTION_HIGHLIGHT_COLOR},i=n.mergeObjects(i,o))}catch(e){console.log(e)}return i}})}),e,t),e.exports=o},function(e,t,i){i.e(0).then((function(){var e=[i(2746),i(9198),i(9199),i(1239),i(9200)];(function(){}).apply(null,e)})).catch(i.oe)},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(530),i(258)],o=i.dj.d(n,(function(e,t,i,n,o){return e("importtool_client.editors.HeaderEditor",[o],{config:{},_ESCAPE_KEY_CODE:27,_lastFocusedElement:null,constructor:function(e){this.config=e,this._on=new n},postCreate:function(){this.inherited(arguments),this.startup(),this._setupInputNode()},_setupInputNode:function(){this.placeAt(this.config.target),this.set("width",this.config.width),this.domNode.style.left=this.config.xPos+"px",this._lastFocusedElement=this._focusManager.curNode,this._focusManager.focus(this.inputNode),this.own(i(this.domNode,"keydown",t.hitch(this,"_onKeyDown")))},_onKeyDown:function(e){e.keyCode===this._ESCAPE_KEY_CODE?(this._focusManager.focus(this._lastFocusedElement),this.destroyRecursive()):this.inherited(arguments),e.stopPropagation()},_handleEnterKey:function(){this.inherited(arguments),this.onBlur()},onBlur:function(){this.value.length>0&&this.config.value!==this.value&&this.emit("editcompleted",{newValue:this.value,columnIndex:this.config.id}),this._focusManager.focus(this._lastFocusedElement),this.destroyRecursive()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(1545),i(9147)],o=i.dj.d(n,(function(e,t,i,n){return e("importtool_peer.ImportToolRemoteDataStore",[i],{getLocalCellData:function(e,t){var i=this.inherited(arguments);if(i){i=JSON.parse(i).value;var o=this;if(this._dataProvider.viewProps&&this._dataProvider.viewProps.hasOwnProperty("Selection")){var r=o.getCurrentSelection();i.selectionStyle=n.getSelectionStyle(r,e,t)}i=JSON.stringify(i)}return i},getCurrentSelection:function(){var e={};if(this._dataProvider.viewProps.hasOwnProperty("Selection")){var t=this._dataProvider.viewProps.Selection,i=t.selectedColumns,n=t.selectedRows;"string"==typeof i&&(i=JSON.parse(t.selectedColumns)),"string"==typeof n&&(n=JSON.parse(t.selectedRows)),e={rows:n,columns:i}}return e}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){return{getSelectionStyle:function(e,t,i){var n=[];return this.isCellSelected(e,t,i)&&(n.push("mw-table-cell-selected"),this.isTopBorder(e,t)&&n.push("mw-table-cell-top-border"),this.isBottomBorder(e,t)&&n.push("mw-table-cell-bottom-border"),this.isRightBorder(e,i)&&n.push("mw-table-cell-right-border"),this.isLeftBorder(e,i)&&n.push("mw-table-cell-left-border")),n},isCellSelected:function(e,t,i){for(var n=0;n<e.columns.length;n+=1)for(var o=0;o<e.rows.length;o+=1)if(i>=e.columns[n].start&&i<=e.columns[n].end&&t>=e.rows[o].start&&t<=e.rows[o].end)return!0;return!1},isTopBorder:function(e,t){return t===e.rows[0].start},isBottomBorder:function(e,t){return t===e.rows[0].end},isLeftBorder:function(e,t){return t===e.columns[0].start},isRightBorder:function(e,t){return t===e.columns[0].end}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(218),i(220),i(9149),i(9150),i(9151),i(9152)],o=i.dj.d(n,(function(e,t){return t(e,"importtool_peer/l10n/nls/app",i.dj.c(),!0)}),e,t),e.exports=o},function(e,t,i){e.exports={contextMenuConvertColumns:"列タイプの設定",contextMenuConvertSelectedColumns:"選択したすべての列のタイプを設定",contextMenuImportSelection:"選択のインポート",contextMenuSelectAll:"すべて選択",contextMenuClearSelection:"選択をクリア",contextMenuRestoreSelection:"初期選択",contextMenuMergeColumns:"列の結合",contextMenuSplitColumns:"列の分割"}},function(e,t,i){e.exports={contextMenuConvertColumns:"열 유형 설정",contextMenuConvertSelectedColumns:"선택한 모든 열 유형 설정",contextMenuImportSelection:"선택 항목 가져오기",contextMenuSelectAll:"모두 선택",contextMenuClearSelection:"선택 취소",contextMenuRestoreSelection:"초기 선택 항목",contextMenuMergeColumns:"열 병합",contextMenuSplitColumns:"열 분할"}},function(e,t,i){e.exports={contextMenuConvertColumns:"设置列类型",contextMenuConvertSelectedColumns:"为所有所选列设置类型",contextMenuImportSelection:"导入所选内容",contextMenuSelectAll:"全选",contextMenuClearSelection:"清除所选内容",contextMenuRestoreSelection:"初始所选内容",contextMenuMergeColumns:"合并列",contextMenuSplitColumns:"分拆列"}},function(e,t,i){e.exports={root:{contextMenuConvertColumns:"Set Column Type",contextMenuConvertSelectedColumns:"Set Type for All Selected Columns",contextMenuImportSelection:"Import Selection",contextMenuSelectAll:"Select All",contextMenuClearSelection:"Clear Selection",contextMenuRestoreSelection:"Initial Selection",contextMenuMergeColumns:"Merge Columns",contextMenuSplitColumns:"Split Columns"},"ja-jp":!0,"ko-kr":!0,"zh-cn":!0}},function(e,t,i){var n,o;n=[i(203),i(2735),i(1187)],o=i.dj.d(n,(function(e,t,i){return e("importtool_client.SpreadsheetTableViewModel",[i,t],{_selectionRangeExcel:null,_variableNamesRow:0,_outputVariableName:null,_outputVariableNameWarning:"",_outputVariableType:"",_rowCount:0,getViewMetaData:function(){return{selectionRange:this._selectionRangeExcel,variableNamesRow:this._variableNamesRow,outputVariableName:this._outputVariableName,outputVariableNameWarning:this._outputVariableNameWarning,outputVariableType:this._outputVariableType,rowCount:this._rowCount,unimportableCellRules:this._unimportableCellRules,rowTimesType:this._rowTimesType,rowTimesValue:this._rowTimesValue,rowTimesUnits:this._rowTimesUnits,rowTimesStart:this._rowTimesStart,rowTimesStartType:this._rowTimesStartType,rowTimesColumn:this._rowTimesColumn}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(235),i(9155),i(9156),i(366),i(1552),i(596)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e("importtool_peer.RemoteTextTableViewModel",[n,i,r,a],{viewInitialized:!1,init:function(e){if(!this.viewInitialized){var t=[o.TABLE_META_DATA_CHANGED,o.ROW_META_DATA_CHANGED];this.initListenersOnView(this,t),this.viewInitialized=!0}this.inherited(arguments)},handleRemoteEvent:function(e){if("errorSelectionRange"===e.data.type){var t={selectionRange:e.data.dispValue};this._dispatchMetaDataChanged(t)}else this.inherited(arguments)},_handleTableMetaDataChanged:function(e){var t=this._getEventForWhenTableMetaDataChanged(e),i=this.getMetaDataStore();i.hasTableModelProperty("CustomDelimiter")&&this._customDelimiter!==i.getTableModelProperty("CustomDelimiter")&&(this._customDelimiter=i.getTableModelProperty("CustomDelimiter"),t.customDelimiter=this._customDelimiter),i.hasTableModelProperty("Delimiter")&&JSON.stringify(this._delimiter)!==JSON.stringify(i.getTableModelProperty("Delimiter"))&&(this._delimiter=i.getTableModelProperty("Delimiter"),t.delimiter=this._delimiter),i.hasTableModelProperty("IsFixedWidth")&&this._isFixedWidth!==i.getTableModelProperty("IsFixedWidth")&&(this._isFixedWidth=i.getTableModelProperty("IsFixedWidth"),t.isFixedWidth=this._isFixedWidth),i.hasTableModelProperty("VariableWidths")&&JSON.stringify(this._variableWidths)!==JSON.stringify(i.getTableModelProperty("VariableWidths"))&&(this._variableWidths=i.getTableModelProperty("VariableWidths"),t.variableWidths=this._variableWidths),i.hasTableModelProperty("ConsecutiveDelimRule")&&this._consecutiveDelimRule!==i.getTableModelProperty("ConsecutiveDelimRule")&&(this._consecutiveDelimRule=i.getTableModelProperty("ConsecutiveDelimRule"),t.consecutiveDelimRule=this._consecutiveDelimRule),i.hasTableModelProperty("DecimalSeparator")&&this._decimalSeparator!==i.getTableModelProperty("DecimalSeparator")&&(this._decimalSeparator=i.getTableModelProperty("DecimalSeparator"),t.decimalSeparator=this._decimalSeparator),this._dispatchMetaDataChanged(t)},_handleRowMetaDataChanged:function(){this.adjustOverlayForRowNames()},getCurrentViewState:function(){var e=this._getCommonCurrentViewState();return t.mergeObjects(e,{delimiter:this._delimiter,customDelimiter:this._customDelimiter,isFixedWidth:this._isFixedWidth,variableWidths:this._variableWidths,consecutiveDelimRule:this._consecutiveDelimRule,decimalSeparator:this._decimalSeparator})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2739),i(2737),i(2738),i(742),i(986)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("importtool_peer.RemoteTextArrayViewModel",[r,t,n],{_contextMenuListener:null,_createMixedDataStore:function(e,t,n,o,r){return new i(e,t,n,o,r)},_updateView:function(){this.inherited(arguments),this._table.focus()},createTable:function(){this.inherited(arguments),this._contextMenuListener=this._table.on("contextMenu",this.handleImportContextMenu.bind(this))},destroyView:function(){this._contextMenuListener&&(this._contextMenuListener.remove(),this._contextMenuListener=null),this.destroyContextMenus(),this.inherited(arguments),this.destroy=function(){}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(2739),i(1187)],o=i.dj.d(n,(function(e,t,i){return e("importtool_client.TextTableViewModel",[i,t],{_selectionRangeExcel:null,_variableNamesRow:0,_outputVariableName:null,_outputVariableNameWarning:"",_outputVariableType:"",_rowCount:0,_delimiter:",",type:"TextTableView",_customDelimiter:"",_isFixedWidth:!1,_variableWidths:null,getViewMetaData:function(){return{selectionRange:this._selectionRangeExcel,variableNamesRow:this._variableNamesRow,outputVariableName:this._outputVariableName,outputVariableNameWarning:this._outputVariableNameWarning,outputVariableType:this._outputVariableType,rowCount:this._rowCount,delimiter:this._delimiter,customDelimiter:this._customDelimiter,isFixedWidth:this._isFixedWidth,variableWidths:this._variableWidths,unimportableCellRules:this._unimportableCellRules,rowTimesType:this._rowTimesType,rowTimesValue:this._rowTimesValue,rowTimesUnits:this._rowTimesUnits,rowTimesStart:this._rowTimesStart,rowTimesStartType:this._rowTimesStartType,rowTimesColumn:this._rowTimesColumn}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(2694),i(2680),i(2692)],o=i.dj.d(n,(function(e,t,i){return{start:function(e){}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(413),i(2740)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor.views.UnknownView",[n],{textArea:null,init:function(e){if(this.inherited(arguments),e&&e.container){var n=this.varName,o=new i({name:"UnsupportedTextArea_"+n,value:"",width:"auto",height:"auto",readOnly:!0,editable:!1});t.add(o.domNode,"UnknownViewerTextArea"),o.startup(),this.textArea=o,this.peerNode.addPeerEventListener("setData",(function(e){e.data.data&&e.data.data!==o.value&&o.set("value",e.data.data)})),t.add(e.container.domNode,"unsupportedView"),this.peerNode.dispatchEvent("peerEvent",this.peerNode,{type:"getData"}),e.container.addChild(this.textArea)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(558),i(559)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.NumericArrayView",[t],{constructor:function(e){this.table={}},createTable:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,n){var o,r;o=[n(203),n(204),n(225),n(210),n(211),n(216),n(9161),n(1692),n(9170),n(9171),n(9174),n(9175),n(9176),n(235),n(9177)],r=n.dj.d(o,(function(e,t,n,o,r,a,s,l,c,d,u,h,p,f,g){return e("variableeditor.views.table.VariableEditorTable",[s,p,l,h,c,d,u,a],{templateString:g,container:null,curRowCount:0,curColCount:0,dndSource:null,constructor:function(e){e=e||{},this.componentData=e.widgetData,this.container=e.container,this.useDojoDnD=e.useDojoDnd||!1},startup:function(e){if(this.inherited(arguments),this.useDojoDnD&&null===this.dndSource&&this.getDndItemSelector&&this.getDndHandleSelector&&this.getSelectedFields){var i=this;e=e||{},t.mixin(e,{dropCallback:function(){},checkAcceptanceCallback:function(e,t){return e.node!==i.dataScrollerNode}}),this._attachDndHandles(),e.creator=function(e,t){var n=dojo.doc.createElement("span");if(n.id=dojo.dnd.getUniqueId(),o.add(n,"dojoDndItem"),"avatar"!==t||!e)return i._dndSource?i._dndSource.defaultCreator(e,t):{node:null,data:null,type:null};var a=i._createDummyNodeToEnableAvatars(e);return r.place(a,n,"last"),{node:n,data:e,type:["text"]}},this.dndSource=f.createSelectableDnDTarget(this.dataScrollerNode,e),this.dndSource.getSelectedNodes=function(){var e=n.NodeList(),t=i.getSelectedFields();if(t)for(var o=t.split(","),r=0;r<o.length;r+=1){var a=o[r],s=n('[dnddata="'+a+'"]')[0];if(s)e.push(s),this.getItem(s.id)||this.setItem(s.id,{data:a,type:["text"]});else{var l=i._createDummyNodeToEnableAvatars(a);this.setItem(l.id,{data:a,type:["text"]}),e.push(l)}}return e},this.dndSource.allowNested=!0,this.dndSource.isSource=!0,this.dndSource.copyOnly=!0,this.dndSource.withHandles=!0}},_createDummyNodeToEnableAvatars:function(e){var t=document.createElement("input");return t.setAttribute("class","structNameColumn dojoDndItem dojoDndHandle DojoDndItemSelected variableEditorRenderers iconVariableEditorMatrix dojoDndItemOver dojoDndItemAnchor"),t.setAttribute("dnddata",e),t.setAttribute("dndtype","text"),t.setAttribute("id",e),t.value=e,t},_attachDndHandles:function(){if(this.useDojoDnD){var e=this.getDndItemSelector(),t=this.getDndHandleSelector();n(e,this.domNode).forEach((function(e,r,a){for(i=0;i<t.length;i++){var s=n(t[i],e)[0];s&&o.add(s,"dojoDndHandle")}}))}},_onDataModelSet:function(e){this.inherited(arguments),e._rowCount==this.curRowCount&&e._columnCount==this.curColCount||(this.curRowCount=e._rowCount,this.curColCount=e._columnCount,this.container&&this.container.resize&&this.container.resize()),this.dndSource&&this.dndSource.clearItems&&this.dndSource.clearItems()},_onColumnsSet:function(){this.inherited(arguments),this.container&&this.container.resize&&this.container.resize()}})}),e,t),e.exports=r},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(217),i(206),i(223),i(215),i(407),i(9162),i(256),i(483)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([l,a],{scrollbarWidth:0,headerPadding:2,defaultColumnWidth:75,totalColumnWidth:0,paddingViewColumns:4,toleranceViewCols:2,paddingPagedColumns:30,tolerancePagedCols:15,colView:{start:0,end:0},oldColView:{start:0,end:0},pageDataCols:{},constructor:function(e){this.scrollbarWidth=s.getScrollbarWidth(),this.defaultProperties=t.delegate(this.defaultProperties,{columns:[],showCellBorders:!0})},postCreate:function(){this.inherited(arguments),this.own(o(this.dataScrollerNode,"change",t.hitch(this,"_onDataChange"))),this.own(o(this.dataScrollerNode,"keydown",t.hitch(this,"_onCommit")))},setColumnWidth:function(e,i){if(e>=0&&e<this.columns.length&&i>10){var n=t.clone(this.columns);n[e].width=i,this.peerNode.setProperty("columns",n)}},scrollToColumn:function(e){e=Math.max(0,Math.min(e,this.dataModel.getColumnCount()));var t,i=0,o=(this.columns[e]?this.columns[e].width:this.defaultColumnWidth)/2;for(t=0;t<e;t+=1)o+=this.columns[t]?this.columns[t].width:this.defaultColumnWidth;var r=n.position(this.dataScrollerNode).w,a=(r-this.scrollbarWidth)/1.3,s=a+this.dataScrollerNode.scrollLeft,l=r-a+this.dataScrollerNode.scrollLeft;o>s?i=o-s:o<l&&(i=o-l),this.dataScrollerNode.scrollLeft=i+this.dataScrollerNode.scrollLeft},scrollToCell:function(e,t){this.scrollToRow(e),this.scrollToColumn(t)},getColumnSelector:function(e){return"#"+this.id+" .dataBody .cell:nth-child("+(e-this.colView.start+2)+")"},getCellSelector:function(e,t){return this.getRowSelector(e)+".cell:nth-child("+(t-this.colView.start+2)+")"},_onColumnsSet:function(){this._updateTotalColumnWidth(this.columns.length),this._renderViewData(!0)},_updateTotalColumnWidth:function(e){var t;for(this.totalColumnWidth=0,t=0;t<e;t+=1)if(this.columns[t])if(this.columns[t].width>=0)this.totalColumnWidth+=this.columns[t].width;else{var i=this.getColumnModelProperty(t,"ColumnWidth"),n=parseInt(i,10);null!=i&&n>=0?(this.totalColumnWidth+=n,this.columns[t].width=n):(this.totalColumnWidth+=this.defaultColumnWidth,this.columns[t].width=this.defaultColumnWidth)}},_onShowCellBordersSet:function(){i.toggle(this.domNode,"showCellBorders",this.showCellBorders)},_onDataScroll:function(){this.inherited(arguments)},_onDataChange:function(e){var t=this._getCellFromNode(e.target);if(!(t.row<0||t.column<0)){var i=t.node,n=t.row,o=t.column,r=this.oldViewData[n-this.rowView.start][o-this.colView.start],a=this._getCellType(this.columns[o]);if(this.cellTypes[a.type].getCellValue){var s=this.cellTypes[a.type].getCellValue(i.firstChild,e.target,a,r);void 0!==s&&this.dataModel.changeData(n,o,[[s]])}}},_onCommit:function(e){e.keyCode===r.ENTER&&this._onDataChange(e)},_throttledRender:function(e,t){var i=this;this._renderTimer&&clearTimeout(this._renderTimer),this._renderTimer=setTimeout((function(){i._renderViewDataImpl(e),t&&t(),i._renderSelection()}),10)},_renderViewData:function(e,t){this._throttledRender(e,t)},_renderViewDataImpl:function(e){if(this.domNode){var t=window.performance.now();if(this.dataModel&&this.position){if(this._updatePagedData(),!e&&this.dataModel===this.oldDataModel&&!this.rowView.changed&&!this.colView.changed)return;this._onViewRangeUpdated();var i,n=this.rowView.start-this.dataModel.getCurrentStartRow(),o=this.rowView.end-this.dataModel.getCurrentStartRow(),r=this.colView.start-this.dataModel.getCurrentStartCol(),a=this.colView.end-this.dataModel.getCurrentStartCol(),s=this.dataModel.getPartialData(),l=[];for(i=n;i<o;i+=1)l.push(s[i].slice(r,a));var u=this;this._incrementalUpdateNode({node:this.dataNode,data:l,oldData:this.oldViewData,start:this.rowView.start,end:this.rowView.end,oldStart:this.oldRowView.start,oldEnd:this.oldRowView.end,update:function(e,t,i){u._updateRow(e,t,i,u.colView.start,u.colView.end,u.oldColView.start,u.oldColView.end)},create:function(e){return u._renderRow(e,u.colView.start,u.colView.end)}}),this.oldRowView=this.rowView,this.oldColView=this.colView,this.oldViewData=l,this.oldDataModel=this.dataModel}this._updateDataStyles(),this.nodesUpdated();var h=window.performance.now();this.emit("view-updated"),d.isPerformance()&&c.publish("variableeditor/renderTimeChannel",{time:h-t,numRows:this.rowView.end-this.rowView.start,numCols:this.colView.end-this.colView.start})}},nodesUpdated:function(){},_renderRow:function(e,t,i){var n=document.createElement("div");n.setAttribute("class","row");var o,r=document.createElement("div");r.setAttribute("class","cell spacer leftSpacer"),n.appendChild(r);var a=i-t;for(o=0;o<a;o+=1)n.appendChild(this._renderCell(this.columns[o+t],e[o]));var s=document.createElement("div");return s.setAttribute("class","cell spacer rightSpacer"),n.appendChild(s),n},_updateRow:function(e,t,i,n,o,r,a){var s=this;this._incrementalUpdateNode({node:e,data:t,oldData:i,start:n,end:o,oldStart:r,oldEnd:a,update:function(e,t,i,n){s._updateCell(e,s.columns[n],t,i)},create:function(e,t){return s._renderCell(s.columns[t],e)}})},_getCellFromNode:function(e){for(var t=null,i=-1,n=-1;e.getAttribute&&"datatools.variableeditor.views.table.cell"!==e.getAttribute("data-tag")&&e!==this.dataScrollerNode;)e=e.parentNode;if(e.getAttribute&&"datatools.variableeditor.views.table.cell"===e.getAttribute("data-tag")){for(t=e,n=this.colView.start-1;e.previousElementSibling;)n+=1,e=e.previousElementSibling;for(e=e.parentNode,i=this.rowView.start-1;e.previousElementSibling;)i+=1,e=e.previousElementSibling}return{node:t,row:i,column:n}},_onViewRangeUpdated:function(e,t,i,n){var o;for(this.leftSpaceWidth=0,o=0;o<this.colView.start;o+=1)this.leftSpaceWidth+=this.columns[o]&&null!==this.columns[o].width&&this.columns[o].width>=0?this.columns[o].width:this.defaultColumnWidth;this.inherited(arguments)},_updatePagedData:function(){if(this.domNode){var e=this._convertPxToCols(0,this._getScrollLeft()),t=this._convertPxToCols(e,this.position.width)+1,i=e+t;this.colView=this._updateArrayBounds(e,e+t,this.dataModel.getCurrentStartCol(),this.dataModel.getCurrentEndCol(),this.paddingViewColumns,this.toleranceViewCols,this.oldColView,i),this.pagedDataCols=this._updateArrayBounds(e,e+t,0,this.dataModel.getColumnCount(),this.paddingPagedColumns,this.tolerancePagedCols,this.oldPagedDataCols,i),this.inherited(arguments)}},_getScrollLeft:function(){return this.dataScrollerNode.scrollLeft},_updateDataStyles:function(){this.inherited(arguments),this.dataModel&&this.rowHeight&&this.position&&(this._updateScrollerStyles(),this.styleManager.updateStyleRules("spacerLeft",{".row .spacer.leftSpacer":"width: "+this.leftSpaceWidth+"px;"}),this.styleManager.updateStyleRules("dataWidth",{".spacer.dataWidth":"width: "+this.totalColumnWidth+"px;"}))},_updateCurrentPosition:function(){var e=n.position(this.domNode);this.position={width:e.w,height:e.h}},_updateColumnStyles:function(){var e,t,i,n=this.columns.slice(this.colView.start,this.colView.end),o={};for(e=0;e<n.length;e+=1)t=this._getCellType(n[e]),i=this._getColumnStyles(t),i+="width: "+(n[e]&&null!==n[e].width&&n[e].width>=0?n[e].width:this.defaultColumnWidth)+"px;",o[".dataColumn .cell:nth-child("+(e+2)+")"]=i;this.styleManager.updateStyleRules("columns",o)},_updateScrollerStyles:function(){var e=this.dataModel.getRowCount()*this.rowHeight>=this.position.height,t=this.totalColumnWidth>=this.position.width;i.toggle(this.domNode,"hideVerticalScroll",!e),i.toggle(this.domNode,"hideHorizontalScroll",!t)},_convertPxToCols:function(e,t){var i,n=0;for(i=e;i<this.dataModel.getColumnCount();i+=1)if(t<=(n+=this.columns[i]&&this.columns[i].width||this.defaultColumnWidth))return i-e;return i}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(213),i(210),i(217),i(206),i(245),i(215),i(407),i(1247),i(235),i(2741)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([s],{peerNode:null,defaultProperties:{renderer:{type:"default"},rowHeight:18,dataModel:null,visibility:!0},position:{width:0,height:0},paddingViewRows:10,toleranceViewRows:5,paddingPagedRows:80,tolerancePagedRows:40,pagedDataUpdateDelay:100,leftSpaceWidth:0,viewData:[],oldViewData:[],rowView:{start:0,end:0},oldRowView:{start:0,end:0},pagedDataRows:{start:0,end:0,changed:!1},pagedDataCols:{start:0,end:1,changed:!1},cellTypes:u,constructor:function(e){e=e||{},this.peerNode=e.peerNode,e.id="mgg_"+e.peerNode.getId(),this.styleManager=new c.StyleManager("#"+e.id),this.own(this.styleManager),a("mac")?this.debounceRedraw=d.createDebounceFn(this,[this._renderViewData,this._updateScrollerStyles],1e3):this.debounceRedraw=d.createDebounceFn(this,[this._renderViewData,this._updateScrollerStyles],500)},postCreate:function(){this.inherited(arguments),this.domNode.id=this.id,l.setClassName(this.domNode,{type:this.peerNode.getType(),name:this.peerNode.getProperty("name")}),t.mixin(this,this.defaultProperties);var e,i=t.delegate(this.defaultProperties,this.peerNode.getProperties());for(e in i)"function"!=typeof i[e]&&this._onPropertySet({target:this.peerNode,data:{key:e,oldValue:null,newValue:i[e]}});this.peerNode.addEventListener("propertySet",this._onPropertySet,this),this.own(r(this.dataScrollerNode,"scroll",t.hitch(this,"_onDataScroll")))},startup:function(){this.inherited(arguments),this.position||(this.position=o.position(this.domNode),this._renderViewData(!0))},resize:function(){this._noAutoSizing||(this.position=o.position(this.domNode),this.debounceRedraw())},destroyRecursive:function(){this.peerNode.hasEventListener("propertySet")&&this.peerNode.removeEventListener("propertySet",this._onPropertySet,this),this.inherited(arguments)},scrollToRow:function(e){var t=this.rowHeight,i=(e=Math.max(0,Math.min(e,this.dataModel.getRowCount())),0),n=o.position(this.dataScrollerNode).h,r=(n-t)/1.1,a=r+this.dataScrollerNode.scrollTop,s=n-r+this.dataScrollerNode.scrollTop,l=e*t;l>a?i=l-a:l<s&&(i=l-s),this.dataScrollerNode.scrollTop=i+this.dataScrollerNode.scrollTop},getRowSelector:function(e){return"#"+this.id+" .dataBody .row:nth-child("+(e-this.rowView.start+2)+")"},_onPropertySet:function(e){var t=e.data.key;this[t]=e.data.newValue;var i="_on"+(t.charAt(0).toUpperCase()+t.substring(1,t.length))+"Set";this[i]&&void 0!==e.data.newValue&&null!==e.data.newValue&&this[i](e.data.newValue,e.data.oldValue)},_onPositionSet:function(e){i.set(this.domNode,{position:"absolute",left:e.x+"px",top:e.y+"px",width:e.width+"px",height:e.height+"px"}),this._noAutoSizing=!0,this._updateDataStyles()},_onBackgroundSet:function(){i.set(this.domNode,{backgroundColor:"rgb("+this.background.join(", ")+")"})},_onBorderTypeSet:function(){this._updateBorderStyles()},_onBorderWidthSet:function(){this._updateBorderStyles()},_onBorderColorSet:function(){this._updateBorderStyles()},_updateBorderStyles:function(){if("LineBorder"===this.borderType){var e={};if(this.borderColor){var t=this.borderColor.map((function(e){return Math.floor(255*e)}));e.borderColor="rgb("+t.join(",")+")"}this.borderWidth&&(e.borderWidth=this.borderWidth+"px",e.borderStyle="solid"),i.set(this.domNode,e)}},_onVisibilitySet:function(){i.set(this.domNode,{display:this.visibility?"":"none"})},_onRowHeightSet:function(){this._updateDataStyles()},_preDataModelSet:function(e,t){return!(0===e._partialData.length&&(0!==e._rowCount||0!==e._columnCount))},_onDataModelSet:function(){!this.oldPagedDataRows&&this.dataModel&&(this.oldPagedDataRows={start:this.dataModel.getCurrentStartRow(),end:this.dataModel.getCurrentEndRow()}),!this.oldPagedDataCols&&this.dataModel&&(this.oldPagedDataCols={start:this.dataModel.getCurrentStartCol(),end:this.dataModel.getCurrentEndCol()}),0===this.dataModel._rowCount&&(this._updatePagedData(),this.colView.changed&&this._updateColumnHeaderNames(),this._setEmptyBlockSelection()),this._renderViewData(!0)},_onDataScroll:function(){this.pauseScrollEvents||this.debounceRedraw()},_renderViewData:function(e){if(this.dataModel&&this.position){if(this._updatePagedData(),!e&&this.dataModel===this.oldDataModel&&!this.rowView.changed)return;this._onViewRangeUpdated();var t=this.dataModel.getPartialData().slice(this.rowView.start-this.dataModel.getCurrentStartRow(),this.rowView.end-this.dataModel.getCurrentStartRow()),i=this;this._incrementalUpdateNode({node:this.dataNode,data:t,oldData:this.oldViewData,start:this.rowView.start,end:this.rowView.end,oldStart:this.oldRowView.start,oldEnd:this.oldRowView.end,update:function(e,t,n){i._updateCell(e,i,t,n)},create:function(e){var t=i._renderCell(i,e);return t.setAttribute("class","row cell"),t}}),this.oldRowView=this.rowView,this.oldViewData=t,this.oldDataModel=this.dataModel}this._updateDataStyles()},_renderCell:function(e,t){var i=document.createElement("div");i.setAttribute("class","cell");var n=this._getCellType(e),o=this.cellTypes[n.type].create(n,t);return i.appendChild(o),this.cellTypes[n.type].startup&&this.cellTypes[n.type].startup(o,e,t,i),i},_updateCell:function(e,t,i,n){var o,r=this._getCellType(t);if(this.cellTypes[r.type].update){var a=e.firstChild;(o=this.cellTypes[r.type].update(a,r,i))&&o!==a&&e.replaceChild(o,a)}else(o=this.cellTypes[r.type].create(r,i))!==e.firstChild&&e.replaceChild(o,e.firstChild);this.cellTypes[r.type].startup&&this.cellTypes[r.type].startup(o,t,i,n)},_getCellType:function(e){var i;return!e||!e.renderer||"label"!==e.renderer.type||e.editor&&"text"===e.editor.type?e&&e.renderer&&e.editor&&e.renderer.type===e.editor.type||e&&e.renderer&&"cell"===e.renderer.type?i=e.renderer:e&&e.editor&&e.editor.type&&"default"!==e.editor.type&&this.cellTypes[e.editor.type]?i=e.editor:e&&e.renderer&&e.renderer.type&&this.cellTypes[e.renderer.type]?(i=t.clone(e.renderer)).enabled=e.editable&&i.enabled:i={type:"default"}:i=e.renderer,i},_getCellFromNode:function(e){for(var t,i=-1;(!e.getAttribute("class")||e.getAttribute("class").indexOf("cell")<0)&&e!==this.dataScrollerNode;)e=e.parentNode;if(e.getAttribute("class")&&e.getAttribute("class").indexOf("cell")>=0)for(t=e,i=this.rowView.start-1;e.previousElementSibling;)i+=1,e=e.previousElementSibling;return{node:t,row:i}},_onViewRangeUpdated:function(){},_updatePagedData:function(){var e=Math.floor(this._getScrollTop()/this.rowHeight),t=Math.floor(this.position.height/this.rowHeight),i=e+Math.floor(this.position.height/this.rowHeight);this.rowView=this._updateArrayBounds(e,e+t,this.dataModel.getCurrentStartRow(),this.dataModel.getCurrentEndRow(),this.paddingViewRows,this.toleranceViewRows,this.oldRowView,i),this.pagedDataRows=this._updateArrayBounds(e,e+t,0,this.dataModel.getRowCount(),this.paddingPagedRows,this.tolerancePagedRows,{start:this.dataModel.getCurrentStartRow(),end:this.dataModel.getCurrentEndRow()},i),this._updateLoadingIndicator(),this._doPagedDataUpdate()},_getScrollTop:function(){return this.dataScrollerNode.scrollTop},_updateLoadingIndicator:function(){var e=(this.pagedDataRows.changed||this.pagedDataCols.changed)&&(this.pagedDataRows.start!==this.dataModel.getCurrentStartRow()||this.pagedDataRows.end!==this.dataModel.getCurrentEndRow()||this.pagedDataCols.start!==this.dataModel.getCurrentStartCol()||this.pagedDataCols.end!==this.dataModel.getCurrentEndCol());n.toggle(this.domNode,"dataLoading",e),e?this.domNode.addEventListener("contextmenu",d.preventDefaultMouseClick,!1):this.domNode.removeEventListener("contextmenu",d.preventDefaultMouseClick,!1)},_doPagedDataUpdate:function(){if((this.pagedDataRows.changed||this.pagedDataCols.changed)&&!this._requestUpdateTimeout){var e=this,t=function(){e.oldPagedDataRows=e.pagedDataRows,e.oldPagedDataCols=e.pagedDataCols,e._requestUpdateTimeout=null,e.dataModel.updatePartialData(e.pagedDataRows.start,e.pagedDataRows.end,e.pagedDataCols.start,e.pagedDataCols.end)};0===this.pagedDataUpdateDelay?t():this._requestUpdateTimeout=setTimeout(t,this.pagedDataUpdateDelay)}},_updateArrayBounds:function(e,t,i,n,o,r,a,s){var l=Math.max(e-o,i),c=Math.max(l,Math.min(t+o,n)),d=!1;return{start:(d=s?l===i&&l!==a.start||c===n&&c!==a.end||s>a.end||l<a.start||s>c||0===this.dataModel._partialData.length&&(0!==this.dataModel._rowCount||0!==this.dataModel._columnCount):l===i&&l!==a.start||c===n&&c!==a.end||Math.abs(l-a.start)>r||Math.abs(c-a.end)>r)?l:a.start,end:d?c:a.end,changed:d}},_updateDataStyles:function(){if(this.dataModel&&this.rowHeight){var e=this.rowView.start*this.rowHeight;this.styleManager.updateStyleRules("spacerTop",{".body .spacer.topSpacer":"height: "+e+"px;"}),this.styleManager.updateStyleRules("dataHeight",{".spacer.dataHeight":"height: "+this.dataModel.getRowCount()*this.rowHeight+"px;",".row":"height: "+this.rowHeight+"px;",".row.verticalScrollSpacer":"height: 100%"}),this._updateColumnStyles()}},_updateColumnStyles:function(){var e=this._getCellType(this);this.styleManager.updateStyleRules("columns",{".dataColumn .cell":this._getColumnStyles(e)})},_getColumnStyles:function(e){return this.cellTypes[e.type].getColumnStyles?this.cellTypes[e.type].getColumnStyles(e):""},_incrementalUpdateNode:function(e){for(var t,i=e.node.firstElementChild,n=e.start,o=e.oldStart;null!==i.nextElementSibling&&(n<e.end||o<e.oldEnd);)i=i.nextElementSibling,o===n&&o<e.oldEnd&&n<e.end?(e.update(i,e.data[n-e.start],e.oldData[o-e.oldStart],n),o+=1,n+=1):(n<o||n>=e.oldEnd)&&n<e.end?(t=e.create(e.data[n-e.start],n),e.node.insertBefore(t,i),i=t,n+=1):o<e.oldEnd&&(t=i.previousElementSibling,e.destroy&&e.destroy(i,o),e.node.removeChild(i),i=t,o+=1)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[],o=i.dj.d(n,(function(){var e={size:"fontSize",family:"fontFamily",style:"fontStyle",weight:"fontWeight",align:"textAlign",valign:"verticalAlign",color:"color"},t={size:"font-size",family:"font-family",style:"font-style",weight:"font-weight",align:"text-align",valign:"vertical-align",color:"color"};return{getTextStyle:function(t){return this._getTextStyle(t,e)},getTextStyleDashes:function(e){return this._getTextStyle(e,t)},_getTextStyle:function(e,t){var i=null;i=!1===e.enabled?[128,128,128]:e.fontColor;var n={};return n[t.size]=e.fontSize?e.fontSize+"px":void 0,n[t.family]=e.fontName?{Dialog:"Helvetica",DialogInput:"Monaco",Monospaced:"monospace",Serif:"serif",SansSerif:"sans-serif",Helvetica:"Helvetica"}[e.fontName]:void 0,n[t.style]=e.fontItalic?"italic":void 0,n[t.weight]=e.fontBold?"bolder":void 0,n[t.align]=e.horizontalAlignment||e.textAlign,n[t.valign]=e.verticalAlignment,n[t.color]=i?"rgb("+i.join(",")+")":"",n}}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(213),i(2741),i(1693),i(463),i(2742),i(2743),i(231),i(235)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d){return e([a],{oldColumnData:[],oldRowData:[],constructor:function(){this.defaultProperties=t.delegate(this.defaultProperties,{tableHeader:!1,showRowHeaders:!1,rowHeaderWidth:30,rows:[]})},_onDataScroll:function(){this.inherited(arguments),this.scrollbarWidth=d.getBrowserScrollBarWidth(this),this.columnHeaderScrollerNode.scrollLeft=this.dataScrollerNode.scrollLeft,this.rowHeaderScrollerNode.scrollTop=this.dataScrollerNode.scrollTop},_onViewRangeUpdated:function(){this.inherited(arguments),this._renderRowHeader(),this._renderColumnHeader(),this._updateHeaderStyles()},_renderColumnHeader:function(){var e=this.columns.slice(this.colView.start,this.colView.end);if(this._updateCornerSpacerLabel(this.cornerSpacerNode),e.length===this.colView.end-this.colView.start){var t=this;this._incrementalUpdateNode({node:this.columnHeaderNode,data:e,oldData:this.oldColumnData,start:this.colView.start,end:this.colView.end,oldStart:0,oldEnd:this.oldColumnData.length,update:function(e,i){t._updateColumnNode(e,i)},create:function(e){return t._createColumnNode(e)}}),this.oldColumnData=e}},_updateColumnNode:function(e,t){var n=c.getEnclosingWidget(e);i.replace(e,"header_"+t.labelIndex,"header_"+n.indexValue),t.labelIndex?(n.setIndexValue(t.labelIndex),n.setIndexProperty(parseInt(t.labelIndex)-1),n.setNodeDisplay("headerIndex",!0)):n.setNodeDisplay("headerIndex",!1)},_createColumnNode:function(e){var t=new r({templateString:s,indexValue:e.labelIndex?e.labelIndex:""});return t.startup(),t.setNodeDisplay("headerIndex",!0),t.domNode},_renderRowHeader:function(){var e=this.rows.slice(this.rowView.start,this.rowView.end);if(e.length===this.rowView.end-this.rowView.start){var t=this;this._incrementalUpdateNode({node:this.rowHeaderNode,data:e,oldData:this.oldRowData,start:this.rowView.start,end:this.rowView.end,oldStart:0,oldEnd:this.oldRowData.length,update:function(e,i,n,o){t._updateRowNode(e,i,n,o)},create:function(e,i){return t._createRowNode(e,i)}}),this.oldRowData=e}},_updateRowNode:function(e,t,n,o){var r=c.getEnclosingWidget(e);i.replace(e,"header_"+t.labelIndex,"header_"+r.indexValue),t.labelIndex?(r.setIndexProperty(parseInt(t.labelIndex)-1),r.setIndexValue(t.labelIndex),r.setNodeDisplay("headerIndex",!0)):r.setNodeDisplay("headerIndex",!1)},_createRowNode:function(e,t){var i=this.domNode.getElementsByClassName("variableEditorRowHeaders header_"+(void 0===e?t:e.labelIndex));i.parentNode&&i.parentNode.removeChild(i);var n=new r({templateString:l,indexValue:void 0===e?t:e.labelIndex});return n.startup(),n.setNodeDisplay("headerIndex",!0),n.domNode},_updateHeaderStyles:function(){if(this.dataModel){this.tableHeader=d.getLogicalValue(this.getTableModelProperty("ShowColumnHeaders"),!0),this.showRowHeaders=d.getLogicalValue(this.getTableModelProperty("ShowRowHeaders"),!0);var e=this.showRowHeaders?this.rowHeaderWidth:0,t=this._isVerticalScrollBarShown()?this.scrollbarWidth:0,i=this._isHorizontalScrollBarShown()?this.scrollbarWidth:0,n=this.showRowHeaders?this.headerPadding:0;this.styleManager.updateStyleRules("rowHeader",{".rowHeaderColumn .row":"width: "+e+"px;",".headerWrapper":"padding-right: "+(e+n+t)+"px; margin-right: "+-(e+n+t)+"px;",".dataBodyWrapper":"padding-right: "+(e+n)+"px; margin-right: "+-(e+n)+"px;"});var o=this.tableHeader?this.rowHeight+this.headerPadding:0;this.styleManager.updateStyleRules("rows",{".body":"padding-top: "+o+"px;margin-top: "+-o+"px;",".body .rowHeadersWrapper":"padding-bottom: "+i+"px;"})}},_isVerticalScrollBarShown:function(){var e=this.tableHeader?this.rowHeight:0;return this.dataModel.getRowCount()*this.rowHeight>=this.position.height-e},_isHorizontalScrollBarShown:function(){var e=this.showRowHeaders?this.rowHeaderWidth:0;return this.totalColumnWidth>=this.position.width-e},_updateScrollerStyles:function(){i.toggle(this.domNode,"hideVerticalScroll",!this._isVerticalScrollBarShown()),i.toggle(this.domNode,"hideHorizontalScroll",!this._isHorizontalScrollBarShown())}})}),e,t),e.exports=o},function(e,t,i){e.exports={errorDialogTitle:"エラー",invalidHeaderName:"${varName} は有効な変数名ではありません",duplicateVariableNames:"変数名が重複しています: ${varName}",structNameColumn:"名前",structFieldColumn:"フィールド",structPropertyColumn:"プロパティ",structValueColumn:"値",structSizeColumn:"サイズ",structClassColumn:"クラス",emptyGraphicsObject:"空"}},function(e,t,i){e.exports={errorDialogTitle:"错误",invalidHeaderName:"${varName} 不是有效的变量名称",duplicateVariableNames:"重复的变量名称: ${varName}",structNameColumn:"名称",structFieldColumn:"字段",structPropertyColumn:"属性",structValueColumn:"值",structSizeColumn:"大小",structClassColumn:"类",emptyGraphicsObject:"空"}},function(e,t,i){e.exports={errorDialogTitle:"오류",invalidHeaderName:"${varName}은(는) 유효한 변수 이름이 아님",duplicateVariableNames:"중복된 변수 이름: ${varName}",structNameColumn:"이름",structFieldColumn:"필드",structPropertyColumn:"속성",structValueColumn:"값",structSizeColumn:"크기",structClassColumn:"클래스",emptyGraphicsObject:"비어 있음"}},function(e,t,i){e.exports={root:{errorDialogTitle:"Error",invalidHeaderName:"${varName} is not a valid variable name",duplicateVariableNames:"Duplicate variable name: ${varName}",structNameColumn:"Name",structFieldColumn:"Field",structPropertyColumn:"Property",structValueColumn:"Value",structSizeColumn:"Size",structClassColumn:"Class",emptyGraphicsObject:"Empty"},"ja-jp":!0,"zh-cn":!0,"ko-kr":!0}},function(e,t){e.exports='<div class="variableEditorHeaders" data-dojo-attach-point="variableEditorHeaders" data-tag="datatools.variableeditor.views.table.variableEditorHeaders">\n <div class="cell">\n <div class="Index" style="display: none;" data-datatools-renderer-attach-point="headerIndex"></div>\n <div class="Label" style="display: none;" data-datatools-renderer-attach-point="headerLabel"></div>\n </div>\n</div>'},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(206)],o=i.dj.d(n,(function(e,t,i,n){var o=this;return e([],{postCreate:function(){this.inherited(arguments),this.own(n(this.columnHeaderNode,"mousedown",i.hitch(this,"_onColumnMouseDown"))),this.own(n(this.columnHeaderNode,"click",i.hitch(this,"_onHeaderClick"))),this.own(n(this.columnHeaderNode,"dblclick",i.hitch(this,"_onColumnDoubleClick"))),this.own(n(this.columnHeaderNode,"contextmenu",i.hitch(this,"_onColumnRightClick"))),this.own(n(this.rowHeaderNode,"mousedown",i.hitch(this,"_onRowMouseDown"))),this.own(n(this.rowHeaderNode,"click",i.hitch(this,"_onHeaderClick"))),this.own(n(this.rowHeaderNode,"dblclick",i.hitch(this,"_onRowDoubleClick"))),this.own(n(this.rowHeaderNode,"contextmenu",i.hitch(this,"_onRowRightClick")))},_onRowRightClick:function(e){o.contextMenuPosition={x:e.pageX,y:e.pageY};var i=this._getCellFromNode(e.target);i.row>=0&&i.column>=0&&(t.stop(e),this.peerNode.dispatchPeerEvent("rowContextMenu",this.peerNode,{row:i.row}))},_onColumnRightClick:function(e){o.contextMenuPosition={x:e.pageX,y:e.pageY};var i=this._getCellFromNode(e.target);i.row>=0&&i.column>=0&&(t.stop(e),this.peerNode.dispatchPeerEvent("columnContextMenu",this.peerNode,{column:i.column}))},_onRowDoubleClick:function(e){var i=this._getCellFromNode(e.target);i.row>=0&&i.column>=0&&(t.stop(e),this.peerNode.dispatchPeerEvent("rowDoubleClick",this.peerNode,{row:i.row}))},_onColumnDoubleClick:function(e){var i=this._getCellFromNode(e.target);i.row>=0&&i.column>=0&&(t.stop(e),this.peerNode.dispatchPeerEvent("columnDoubleClick",this.peerNode,{column:i.column}))},_onHeaderClick:function(e){var t=e.target;if(document.getSelection().rangeCount>0){for(t=document.getSelection().getRangeAt(0).commonAncestorContainer;t.parentNode&&(!t.getAttribute||"cell"!==t.getAttribute("class")&&"header cell"!==t.getAttribute("class"));)t=t.parentNode;t&&t.getAttribute&&("cell"===t.getAttribute("class")||"header cell"===t.getAttribute("class"))||document.getSelection().removeAllRanges()}},_onRowMouseDown:function(e){var t,n,o,r;if("column"!==this.selectionType&&"single"!==this.selectionMode){var a=this._getCellFromNode(e.target);if(!(a.row<0)){var s=a.row,l=[];if("extended"===this.selectionMode&&(e.ctrlKey||e.metaKey||e.shiftKey)&&(l=i.clone(this.peerNode.getProperty("selectedIndices"))).length>0&&("row"===this.selectionType&&"number"!=typeof l[0]?l=[]:"cell"!==this.selectionType||i.isArray(l[0])||(l=[])),"none"!==this.selectionType&&"none"!==this.selectionMode)if("cell"===this.selectionType)if(e.shiftKey&&l.length>0){for(t=l[l.length-1],l=[],n=s;n<=t[0];n+=1)for(o=0;o<=this.dataModel.getColumnCount();o+=1)l.push([n,o]);for(n=s;n>=t[0];n-=1)for(o=0;o<=this.dataModel.getColumnCount();o+=1)l.push([n,o])}else if(e.ctrlKey||e.metaKey)if((r=l.filter((function(e){return e[0]!==s}))).length===l.length)for(n=0;n<this.dataModel.getColumnCount();n+=1)l.push([s,n]);else l=r;else for(n=0;n<this.dataModel.getColumnCount();n+=1)l.push([s,n]);else if(e.shiftKey&&l.length>0){for(t=l[l.length-1],l=[],n=s;n<=t;n+=1)l.push(n);for(n=s;n>=t;n-=1)l.push(n)}else(e.ctrlKey||e.metaKey)&&(n=l.indexOf(s))>=0?l.splice(n,1):l.push(s);this.peerNode.setProperty("selectedIndices",l)}}},_onColumnMouseDown:function(e){var t,n,o,r;if("row"!==this.selectionType&&"single"!==this.selectionMode){var a=this._getCellFromNode(e.target);if(!(a.column<0)){var s=a.column,l=[];if("extended"===this.selectionMode&&(e.ctrlKey||e.metaKey||e.shiftKey)&&(l=i.clone(this.peerNode.getProperty("selectedIndices"))).length>0&&("column"===this.selectionType&&"number"!=typeof l[0]?l=[]:"cell"!==this.selectionType||i.isArray(l[0])||(l=[])),"none"!==this.selectionType&&"none"!==this.selectionMode)if("cell"===this.selectionType)if(e.shiftKey&&l.length>0){for(t=l[l.length-1],l=[],n=s;n<=t[1];n+=1)for(o=0;o<=this.dataModel.getRowCount();o+=1)l.push([o,n]);for(n=s;n>=t[1];n-=1)for(o=0;o<=this.dataModel.getRowCount();o+=1)l.push([o,n])}else if(e.ctrlKey||e.metaKey)if((r=l.filter((function(e){return e[1]!==s}))).length===l.length)for(n=0;n<this.dataModel.getRowCount();n+=1)l.push([n,s]);else l=r;else for(n=0;n<this.dataModel.getRowCount();n+=1)l.push([n,s]);else if(e.shiftKey&&l.length>0){for(t=l[l.length-1],l=[],n=s;n<=t;n+=1)l.push(n);for(n=s;n>=t;n-=1)l.push(n)}else(e.ctrlKey||e.metaKey)&&(n=l.indexOf(s))>=0?l.splice(n,1):l.push(s);this.peerNode.setProperty("selectedIndices",l)}}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(225),i(9172),i(227),i(256),i(9173),i(1694),i(483),i(235),i(210)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c){return e("variableeditor.views.table._VETableSelection",[r],{leadCell:{row:-1,column:-1},shiftKeyPivot:{row:-1,column:-1},leadCellStyle:"background-color: rgb(255, 255, 255);",selectedCellStyle:"background-color: rgb(217, 240, 255);",selectedBorderColor:"rgb(0, 153, 255)",selectedBorderStyle:"1px solid",blockSelection:new a,_serverSelectionTimeout:null,_serverSelectionTimeoutLimit:250,constructor:function(e){this._updateFromExistingSelection(),this.leadCell={row:-1,column:-1},this._getSelectionStyles(),this._serverSelectionTimeoutLimit=e.hasOwnProperty("selectionTimeoutLimit")?e.selectionTimeoutLimit:this._serverSelectionTimeoutLimit},_getSelectionStyles:function(){var e=l.getStylesFromClasses(["variableEditorSelectionBackgroundColor","variableEditorSelectionBorder"],["background-color","border-left-color","border-left-width","border-left-style"]);this.selectedCellStyle="background-color: "+e["background-color"]+";",this.selectedBorderColor=e["border-left-color"],this.selectedBorderStyle=e["border-left-width"]+" "+e["border-left-style"],e=l.getStylesFromClasses(["variableEditorLeadCellBackgroundColor"],["background-color"]),this.leadCellStyle="background-color: "+e["background-color"]+";"},_updateFromExistingSelection:function(){var e;this.peerNode&&this.peerNode.getProperty&&(e=this.peerNode.getProperty("Selection")),this.blockSelection=new a(e)},_setLeadCellPosition:function(e,t){this.leadCell={row:Math.min(e,this.getRowCount()-1),column:Math.min(t,this.getColumnCount()-1)}},_setShiftKeyPivot:function(e,t){this.shiftKeyPivot={row:e,column:t}},_resetShiftKeyPivot:function(){this.shiftKeyPivot={row:-1,column:-1}},getRowSelector:function(e){return"#"+this.id+" .dataBody .row:nth-of-type("+(e-this.rowView.start+2)+")"},getCellSelector:function(e,t){return this.getRowSelector(e)+" .cell:nth-of-type("+(t-this.colView.start+2)+")"},getLeadNode:function(){if(this.leadCell.row<0||this.leadCell.column<0||this.leadCell.row>=this.getRowCount()||this.leadCell.column>=this.getColumnCount())return null;var e=this.getCellSelector(this.leadCell.row,this.leadCell.column);return t(e)[0]},getShiftKeyPivot:function(){return[this.shiftKeyPivot.row,this.shiftKeyPivot.column]},_isLeadNodeInDom:function(){var e=this.getLeadNode();return this.domNode&&e&&n.isDescendant(e,this.domNode)},selectCell:function(e,t){this.selectable&&(this.blockSelection.addCell(e,t),this._renderSelection(),this.setServerSelection(!0))},deselectCell:function(e,t){this.selectable&&(this.blockSelection.removeCell(e,t),this._renderSelection(),this.setServerSelection(!0))},selectRow:function(e){this.selectable&&(this.blockSelection.add(e,e,0,this.getColumnCount()-1),this._renderSelection(),this.setServerSelection(!0))},deselectRow:function(e){this.selectable&&(this.blockSelection.removeRows(e,e),this._renderSelection(),this.setServerSelection(!0))},selectColumn:function(e){this.selectable&&this.selectable&&(this.blockSelection.add(0,this.getRowCount()-1,e,e),this._renderSelection(),this.setServerSelection(!0))},deselectColumn:function(e){this.selectable&&(this.blockSelection.removeColumns(e,e),this._renderSelection(),this.setServerSelection(!0))},isCellSelected:function(e,t){return this.blockSelection.containsCell(e,t)},isColumnSelected:function(e){return this.blockSelection.containsColumn(e)},isRowSelected:function(e){return this.blockSelection.containsRow(e)},_renderSelection:function(){null!==this.dataModel&&(this._updateSelectionAndSelectionBorderStyle(),this._updateLeadCellStyle(),this._updateHeaderStyle())},_updateSelectionAndSelectionBorderStyle:function(){var e,n,o,r,a=this._getCurrentViewportSelection();if(r=a.selectedRows,o=a.selectedColumns,this.blockSelection.isEmpty())t(".highlightSelected",this.domNode).removeClass(["highlightSelected","borderLeft","borderRight","borderTop","borderBottom","GroupedBorder"]);else{t(".highlightSelected",this.domNode).removeClass(["highlightSelected","borderLeft","borderRight","borderTop","borderBottom","GroupedBorder"]);var s=[],l=[],c=[],d=[],u=[],h=[];for(e=0;e<r.length;e+=1)for(Math.max(1,r[e].start+this.tableRowOffset-this.rowView.start),Math.max(1,r[e].end+this.tableRowOffset-this.rowView.start),n=0;n<o.length;n+=1){Math.max(1,o[n].start+this.tableColumnOffset-this.colView.start),Math.max(1,o[n].end+this.tableColumnOffset-this.colView.start,1);for(var p=r[e].start;p<=r[e].end;p++)for(var f=o[n].start;f<=o[n].end;f++){var g=this.domNode.getElementsByClassName("cellRenderer row_"+p+" col_"+f)[0];if(g){var m=this._getCellFromNode(g).node;this.showSelectionBorder?(s.push(m),this._isGroupedCol(f)&&h.push(m),f===o[n].start&&l.push(m),f===o[n].end&&c.push(m),p===r[e].start&&d.push(m),p===r[e].end&&u.push(m)):m&&s.push(m)}}}s.length>0&&(i(s).addClass("highlightSelected"),this.showSelectionBorder&&(i(l).addClass("borderLeft"),i(c).addClass("borderRight"),i(d).addClass("borderTop"),i(u).addClass("borderBottom"),i(h).addClass("GroupedBorder")))}},_isGroupedCol:function(e){var t=this.getColumnModelProperty(e,"GroupColumnSize");return parseInt(t,10)>1},_updateHeaderStyle:function(){var e=[],t=[],n=this._getCurrentViewportSelection();this.blockSelection.isEmpty()||n.selectedRows.forEach(dojo.hitch(this,(function(o){n.selectedColumns.forEach(dojo.hitch(this,(function(n){for(var r=o.start+1;r<=o.end+1;r++){var a=this.domNode.getElementsByClassName("variableEditorRowHeaders header_"+r)[0];a&&e.push(a)}for(var s=n.start+1;s<=n.end+1;s++){var l=this.domNode.getElementsByClassName("variableEditorColumnHeaders header_"+s)[0];l&&t.push(l)}(e.length>0||t.length>0)&&(i(e).addClass("highlightSelected"),i(t).addClass("highlightSelected"))})))})))},_getCurrentViewportSelection:function(){minStartRow=this.dataModel.getCurrentStartRow(),maxEndRow=this.dataModel.getCurrentEndRow(),minStartCol=this.dataModel.getCurrentStartCol(),maxEndCol=this.dataModel.getCurrentEndCol();var e=JSON.parse(JSON.stringify(this.blockSelection));return e.selectedRows.forEach((function(e){e.end-e.start>maxEndRow-minStartRow&&(e.start=minStartRow,e.end=maxEndRow)})),e.selectedColumns.forEach((function(e){e.end-e.start>maxEndCol-minStartCol&&(e.start=minStartCol,e.end=maxEndCol)})),e},_updateLeadCellStyle:function(){var e=t(".leadCell",this.domNode);if(0!=e.length&&e.removeClass("leadCell"),this._isLeadNodeInDom()){var i=this.getLeadNode(),n=this._getCellFromNode(i);if(!this.blockSelection.isEmpty()){var o=this.domNode.getElementsByClassName("cellRenderer row_"+n.row+" col_"+n.column)[0];o&&c.add(o,"leadCell")}}},setServerSelection:function(e){var t;s.logDebugStackTraceMessage(),s.logDebugStackTraceArray(),t=!(arguments.length<=0)&&e;var i=this.peerNode.getProperty("Selection");if(i||(i={selectedRows:[],selectedColumns:[]}),!t||!this.blockSelection.matchingSelection(new a(i))){t&&o.publish("/datatools/selectionChanged",""),this._serverSelectionTimeout&&clearTimeout(this._serverSelectionTimeout);var n=this;this._serverSelectionTimeout=setTimeout((function(){n.peerNode.setProperty("Selection",n.blockSelection.createSourcedCopy("client")),n._serverSelectionTimeout=null}),this._serverSelectionTimeoutLimit)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(225)],o=i.dj.d(n,(function(e){return e.NodeList}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(206)],o=i.dj.d(n,(function(e,t,i,n){return e([],{constructor:function(){this.defaultProperties=i.delegate(this.defaultProperties,{selectionType:"row",selectionMode:"none",selectedIndices:[]})},postCreate:function(){this.inherited(arguments),this.own(n(this.dataScrollerNode,"dblclick",i.hitch(this,"_onDataDoubleClick"))),this.own(n(this.dataScrollerNode,"contextmenu",i.hitch(this,"_onRightClick")))},selectCell:function(e,t){var n=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":n.push([e,t]);break;case"row":n.push(e);break;case"column":n.push(t)}this.peerNode.setProperty("selectedIndices",n)},deselectCell:function(e,t){var n=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":n=n.filter((function(i){return i[0]!==e||i[1]!==t}));break;case"row":n=n.filter((function(t){return t!==e}));break;case"column":n=n.filter((function(e){return e!==t}))}this.peerNode.setProperty("selectedIndices",n)},selectRow:function(e){var t,n=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":for(t=0;t<this.dataModel.getColumnCount();t+=1)n.push([e,t]);break;case"row":n.push(e)}this.peerNode.setProperty("selectedIndices",n)},deselectRow:function(e){var t=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":t=t.filter((function(t){return t[0]!==e}));break;case"row":t=t.filter((function(t){return t!==e}))}this.peerNode.setProperty("selectedIndices",t)},selectColumn:function(e){var t,n=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":for(t=0;t<this.dataModel.getRowCount();t+=1)n.push([t,e]);break;case"column":n.push(e)}this.peerNode.setProperty("selectedIndices",n)},deselectColumn:function(e){var t=i.clone(this.selectedIndices);switch(this.selectionType){case"cell":t=t.filter((function(t){return t[1]!==e}));break;case"column":t=t.filter((function(t){return t!==e}))}this.peerNode.setProperty("selectedIndices",t)},isCellSelected:function(e,t){switch(this.selectionType){case"cell":return this.selectedIndices.some((function(i){return i[0]===e&&i[1]===t}));case"row":return this.selectedIndices.some((function(t){return t===e}));case"column":return this.selectedIndices.some((function(e){return e===t}));default:return!1}},isRowSelected:function(e){function t(t){return function(i){return i[0]===e&&i[1]===t}}switch(this.selectionType){case"cell":var i,n=e<this.dataModel.getRowCount();for(i=0;i<this.dataModel.getColumnCount();i+=1)n=n&&this.selectedIndices.some(t(i));return n;case"row":return this.selectedIndices.some((function(t){return t===e}));default:return!1}},isColumnSelected:function(e){function t(t){return function(i){return i[0]===t&&i[1]===e}}switch(this.selectionType){case"cell":var i,n=e<this.dataModel.getColumnCount();for(i=0;i<this.dataModel.getRowCount();i+=1)n=n&&this.selectedIndices.some(t(i));return n;case"row":return this.selectedIndices.some((function(e){return e===i}));default:return!1}},_onRightClick:function(e){e.preventDefault()},_onDataDoubleClick:function(e){var i=this._getCellFromNode(e.target);i.row>=0&&(t.stop(e),this.peerNode.dispatchPeerEvent("doubleClick",this.peerNode,{row:i.row,column:i.column}))},_onSelectionTypeSet:function(){this._renderSelection()},_onSelectionModeSet:function(){this._renderSelection()},_onSelectedIndicesSet:function(){this._renderSelection()},_onDataClick:function(e){var t=e.target;if(document.getSelection().rangeCount>0){for(t=document.getSelection().getRangeAt(0).commonAncestorContainer;t.parentNode&&(!t.getAttribute||"cell"!==t.getAttribute("class"));)t=t.parentNode;t&&t.getAttribute&&"cell"===t.getAttribute("class")||document.getSelection().removeAllRanges()}},_onDataMouseDown:function(e){var t,n,o,r,a,s=this._getCellFromNode(e.target);if(!(s.row<0||s.column<0)){var l=s.row,c=s.column,d=[];if("extended"===this.selectionMode&&(e.ctrlKey||e.metaKey||e.shiftKey)&&(d=i.clone(this.selectedIndices)).length>0&&(("row"!==this.selectionType&&"column"!==this.selectionType||"number"==typeof d[0])&&("cell"!==this.selectionType||i.isArray(d[0]))||(d=[])),"none"!==this.selectionType&&"none"!==this.selectionMode)if("cell"===this.selectionType)if(e.shiftKey&&d.length>0){for(t=d[d.length-1],d=[],n=l;n<=t[0];n+=1){for(o=c;o<=t[1];o+=1)d.push([n,o]);for(o=c;o>=t[1];o-=1)d.push([n,o])}for(n=l;n>=t[0];n-=1){for(o=c;o<=t[1];o+=1)d.push([n,o]);for(o=c;o>=t[1];o-=1)d.push([n,o])}}else e.ctrlKey||e.metaKey?(a=d.filter((function(e){return e[0]!==l||e[1]!==c}))).length===d.length?d.push([l,c]):d=a:d.push([l,c]);else if(r="row"===this.selectionType?l:c,e.shiftKey&&d.length>0){for(t=d[d.length-1],d=[],n=r;n<=t;n+=1)d.push(n);for(n=r;n>=t;n-=1)d.push(n)}else(e.ctrlKey||e.metaKey)&&(n=d.indexOf(r))>=0?d.splice(n,1):d.push(r);this.peerNode.setProperty("selectedIndices",d)}},_renderSelection:function(){var e={},t="background-color: rgb(173, 206, 255);";"none"!==this.selectionMode&&("row"===this.selectionType?this.selectedIndices.forEach((function(i){i>=this.rowView.start&&i<this.rowView.end&&(e[".dataBody .row:nth-child("+(i-this.rowView.start+2)+")"]=t)}),this):"column"===this.selectionType?this.selectedIndices.forEach((function(i){i>=this.colView.start&&i<this.colView.end&&(e[".dataBody .row .cell:nth-child("+(i-this.colView.start+2)+")"]=t)}),this):"cell"===this.selectionType&&this.selectedIndices.forEach((function(i){i[0]>=this.rowView.start&&i[0]<this.rowView.end&&i[1]>=this.colView.start&&i[1]<this.colView.end&&(e[".dataBody .row:nth-child("+(i[0]-this.rowView.start+2)+") .cell:nth-child("+(i[1]-this.colView.start+2)+")"]=t)}),this)),this.styleManager.updateStyleRules("selection",e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(225),i(210),i(256),i(209),i(231),i(483),i(235)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e("variableeditor.views.table._VEModelProperties",[],{defaultRowHeaderWidth:30,maxLabelWidth:25,notEditableCSSClass:"venoteditable",notSelectableCSSClass:"venotselectable",maxIndexWidth:null,constructor:function(e){var i={};this.TableModelProperties={},this.RowModelProperties=[],this.ColumnModelProperties=[],this.CellModelProperties=[],e&&(this.TableModelProperties=i.TableModelProperties=e.TableModelProperties||{},this.RowModelProperties=i.RowModelProperties=e.RowModelProperties||[],this.ColumnModelProperties=i.ColumnModelProperties=e.ColumnModelProperties||[],this.CellModelProperties=i.CellModelProperties=e.CellModelProperties||[],t.mixin(e,i),void 0===e.editable||null===e.editable?void 0!==this.TableModelProperties.Editable?this.editable=l.getLogicalValue(this.TableModelProperties.Editable):this.editable=!0:this.editable=e.editable),void 0!==this.TableModelProperties.Editable&&this.editable!==l.getLogicalValue(this.TableModelProperties.Editable)?this.editable=l.getLogicalValue(this.TableModelProperties.Editable):void 0===this.TableModelProperties.Editable&&(this.updateEditableFlag=!0)},updateModelProperties:function(e){var t=window.performance.now();s.logDebug("_VEModelProperties: updateModelProperties"),this._updateTableModelProperties(),this._updateTableHeaders(),this._updateModelStyles(),e&&this._renderViewData(!0);var i=window.performance.now()-t;s.isPerformance()&&o.publish("variableeditor/updateModelPropsChannel",{time:i})},_updateTableModelProperties:function(){s.logDebug("_VEModelProperties: _updateTableModelProperties"),this.TableModelProperties&&(this._updateTableEditable(),this._updateTableSelectable(),this._updateTableRowHeight())},_updateTableRowHeight:function(){var e=this.getTableModelProperty("fontSize"),t=Math.max(e?parseInt(e)*this.lineSpacing:this.rowHeight,this.minRowHeight);t!==this.rowHeight&&(this.rowHeight=t)},_updateTableEditable:function(){s.logDebug("_VEModelProperties: _updateTableEditable"),this.updateEditableFlag&&void 0!==this.TableModelProperties.Editable&&this.setTableModelProperty&&(this.setTableModelProperty("Editable",this.editable?"true":"false"),this.updateEditableFlag=!1);var e=this.getTableModelProperty("Editable");void 0===e?(e=this.editable,this.setTableModelProperty("Editable",e)):this.editable=l.getLogicalValue(e,!0)},_updateTableSelectable:function(){s.logDebug("_VEModelProperties: _updateTableSelectable");var e=this.getTableModelProperty("Selectable");void 0===e?(e=this.selectable,this.setTableModelProperty("Selectable",e)):(this.selectable=l.getLogicalValue(e,!0),this.selectable||(this.blockSelection.selectedRows=[],this.blockSelection.selectedColumns=[],this._renderSelection(),this._setLeadCellPosition(-1,-1))),this.domNode&&(this.selectable?n.remove(this.domNode,this.notSelectableCSSClass):n.add(this.domNode,this.notSelectableCSSClass))},_updateModelStyles:function(){if(s.logDebug("_VEModelProperties: _updateModelStyles"),this.dataModel&&this.dataModel.getCurrentStartCol&&this.dataModel.getCurrentEndCol&&this.dataModel.getCurrentStartRow&&this.dataModel.getCurrentEndRow){var e=i("input.cell.variableEditorRenderers",this.domNode);this._updateNodeStyles(e)}},_updateNodeStyles:function(e){if(e&&e.length>0)for(var t,i=0;i<e.length;i+=1){t=e[i].getAttribute("data-tag")?e[i]:e[i].querySelector("input");var n=e[i].getAttribute("data-row"),o=e[i].getAttribute("data-col");if(t&&void 0!==n&&void 0!==o){var r=a.getEnclosingWidget(t);r&&r.updateCellStyles&&r.updateCellStyles(n,o),r&&r.updateCellDraggability&&r.updateCellDraggability(n,o)}t=null}},isCellDraggable:function(){return!(!this.TableModelProperties||!this.TableModelProperties.Draggable)&&this.TableModelProperties.Draggable},getTextDataTransferValue:function(){var e=[];if(this.blockSelection&&this.blockSelection.selectedRows&&this.blockSelection.selectedColumns)for(var t=0;t<this.blockSelection.selectedRows.length;t+=1)for(var n=0;n<this.blockSelection.selectedColumns.length;n+=1)for(var o=this.blockSelection.selectedRows[t],r=this.blockSelection.selectedColumns[n],s=o.start;s<=o.end;s+=1)for(var l=r.start;l<=r.end;l+=1)if(this.isCellDraggable(s,l)){var c=this.getCellSelector(s,l),d=i(c)[0],u=this.getCellPropertyValue(s,l,"DragValue");if(void 0===u&&d&&d&&d.querySelectorAll){var h=d.querySelectorAll('[data-tag*=".cell.'+s.toString()+"."+l.toString()+'"]');if(h)for(var p=0;p<h.length;p+=1){var f=a.getEnclosingWidget(h[p]);f&&f.veEditor&&(u=f.veEditor.editorValue)}}void 0!==u&&e.push(u)}return e.toString()},getDragValue:function(e){return e||(e="text"),"text"===e?this.getTextDataTransferValue():""},isCellEditable:function(e,t,n){var o=l.getLogicalValue(this.getCellModelProperty(e,t,"Editable"),!0),r=l.getLogicalValue(this.getColumnModelProperty(t,"Editable"),!0),s=l.getLogicalValue(this.getRowModelProperty(e,"Editable"),!0);if(void 0===n){var c=this.getCellSelector(e,t);n=i(c)[0]}var d=a.getEnclosingWidget(n);return this.editable&&o&&r&&s&&d&&d.veInplaceEditor&&d.veInplaceEditor.edit},isCellEditableFromObj:function(e,t,i){var n=l.getLogicalValue(this.getColumnModelProperty(t,"Editable"),!0),o=l.getLogicalValue(this.getRowModelProperty(e,"Editable"),!0);return this.editable&&n&&o&&i&&i.inplaceeditor},isNodeEditable:function(e){try{var t=this._getCellFromNode(e);if(t.row>=0&&t.column>=0)return this.isCellEditable(t.row,t.column,e)}catch(e){s.logDebug(e)}return!1},getColumnModelProperties:function(e){var t=e-(this.dataModel&&this.dataModel.getCurrentStartCol?this.dataModel.getCurrentStartCol():0);return this.ColumnModelProperties&&this.ColumnModelProperties.hasOwnProperty(t)?this.ColumnModelProperties[t]:{}},getColumnModelProperty:function(e,t){var i=this.getColumnModelProperties(e);if(i.hasOwnProperty(t))return i[t]},setColumnModelProperty:function(e,t,i){var n,o=e-(this.dataModel&&this.dataModel.getCurrentStartCol?this.dataModel.getCurrentStartCol():0);if((!this.ColumnModelProperties||0===this.ColumnModelProperties.length)&&(this.ColumnModelProperties=[],this.dataModel&&this.dataModel.getCurrentStartCol&&this.dataModel.getCurrentEndCol))for(n=0;n<this.dataModel.getCurrentEndCol()-this.dataModel.getCurrentStartCol();n+=1)this.ColumnModelProperties[n]={};this.ColumnModelProperties.hasOwnProperty(o)&&(this.ColumnModelProperties[o][t]=i),this.peerViewModel&&this.peerViewModel.setColumnModelProperty&&this.peerViewModel.setColumnModelProperty(e,t,i),this._updateColumnHeaderNames(),this._updateColumnWidths(),this._updateModelStyles()},getRowModelProperties:function(e){var t=e-(this.dataModel&&this.dataModel.getCurrentStartRow?this.dataModel.getCurrentStartRow():0);return this.RowModelProperties&&this.RowModelProperties.hasOwnProperty(t)?this.RowModelProperties[t]:{}},getRowModelProperty:function(e,t){var i=this.getRowModelProperties(e);if(i.hasOwnProperty(t))return i[t]},setRowModelProperty:function(e,t,i){var n,o=e-(this.dataModel&&this.dataModel.getCurrentStartRow?this.dataModel.getCurrentStartRow():0);if((!this.RowModelProperties||0===this.RowModelProperties.length)&&(this.RowModelProperties=[],this.dataModel&&this.dataModel.getCurrentStartRow&&this.dataModel.getCurrentEndRow))for(n=0;n<this.dataModel.getCurrentEndRow()-this.dataModel.getCurrentStartRow();n+=1)this.RowModelProperties[n]={};this.RowModelProperties.hasOwnProperty(o)&&(this.RowModelProperties[o][t]=i),this.peerViewModel&&this.peerViewModel.setRowModelProperty&&this.peerViewModel.setRowModelProperty(e,t,i),this._updateRowHeaderNames(),this._updateModelStyles()},getTableModelProperty:function(e){if(this.TableModelProperties&&this.TableModelProperties.hasOwnProperty(e))return this.TableModelProperties[e]},setTableModelProperty:function(e,t){this.TableModelProperties||(this.TableModelProperties={}),this.TableModelProperties[e]=t,this.peerViewModel&&this.peerViewModel.setTableModelProperty&&this.peerViewModel.setTableModelProperty(e,t),this._updateTableSelectable(),this._updateModelStyles()},setCellModelProperty:function(e,t,i,n){var o,r=e-(this.dataModel&&this.dataModel.getCurrentStartRow?this.dataModel.getCurrentStartRow():0),a=t-(this.dataModel&&this.dataModel.getCurrentStartCol?this.dataModel.getCurrentStartCol():0);if((!this.CellModelProperties||0===this.CellModelProperties.length)&&(this.CellModelProperties=[],this.dataModel&&this.dataModel.getCurrentStartCol&&this.dataModel.getCurrentEndCol&&this.dataModel.getCurrentStartRow&&this.dataModel.getCurrentEndRow))for(o=0;o<this.dataModel.getCurrentEndRow()-this.dataModel.getCurrentStartRow();o+=1){var s;for(this.CellModelProperties[o]=[],s=0;s<this.dataModel.getCurrentEndCol()-this.dataModel.getCurrentStartCol();s+=1)this.CellModelProperties[o][s]={}}this.CellModelProperties.hasOwnProperty(r)&&this.CellModelProperties[r].hasOwnProperty(a)&&(this.CellModelProperties[r][a][i]=n),this.peerViewModel&&this.peerViewModel.setCellModelProperty&&this.peerViewModel.setCellModelProperty(e,t,i,n),this._updateModelStyles()},getCellModelProperty:function(e,t,i){var n;e>=0&&t>=0&&this.CellModelProperties&&this.dataModel&&this.dataModel.getCurrentStartCol&&this.dataModel.getCurrentStartRow&&this.CellModelProperties[e-this.dataModel.getCurrentStartRow()]&&this.CellModelProperties[e-this.dataModel.getCurrentStartRow()][t-this.dataModel.getCurrentStartCol()]&&this.CellModelProperties[e-this.dataModel.getCurrentStartRow()][t-this.dataModel.getCurrentStartCol()][i]&&(n=this.CellModelProperties[e-this.dataModel.getCurrentStartRow()][t-this.dataModel.getCurrentStartCol()][i]);return n},getCellPropertyValue:function(e,t,i,n){var o;if(n&&n.hasOwnProperty(i))o=n[i];else if(e>=0&&t>=0&&this.CellModelProperties&&this.dataModel&&this.dataModel.getCurrentStartRow&&this.dataModel.getCurrentStartCol&&this.CellModelProperties[e-this.dataModel.getCurrentStartRow()]&&this.CellModelProperties[e-this.dataModel.getCurrentStartRow()][t-this.dataModel.getCurrentStartCol()]&&(this.CellModelProperties[e-this.dataModel.getCurrentStartRow()][t-this.dataModel.getCurrentStartCol()][i]||this.CellModelProperties[e-this.dataModel.getCurrentStartRow()][t-this.dataModel.getCurrentStartCol()][i]===Boolean(0))){o=this.CellModelProperties[e-this.dataModel.getCurrentStartRow()][t-this.dataModel.getCurrentStartCol()][i]}else if(t>=0&&this.ColumnModelProperties&&this.dataModel&&this.dataModel.getCurrentStartCol&&this.ColumnModelProperties[t-this.dataModel.getCurrentStartCol()]&&(this.ColumnModelProperties[t-this.dataModel.getCurrentStartCol()][i]||this.ColumnModelProperties[t-this.dataModel.getCurrentStartCol()][i]===Boolean(0))){o=this.ColumnModelProperties[t-this.dataModel.getCurrentStartCol()][i]}else if(e>=0&&this.RowModelProperties&&this.dataModel&&this.dataModel.getCurrentStartRow&&this.RowModelProperties[e-this.dataModel.getCurrentStartRow()]&&(this.RowModelProperties[e-this.dataModel.getCurrentStartRow()][i]||this.RowModelProperties[e-this.dataModel.getCurrentStartRow()][i]===Boolean(0))){o=this.RowModelProperties[e-this.dataModel.getCurrentStartRow()][i]}else this.TableModelProperties&&(this.TableModelProperties[i]||this.TableModelProperties[i]===Boolean(0))&&(o=this.TableModelProperties[i]);return o},_updateTableHeaders:function(){s.logDebug("_VEModelProperties: _updateTableHeaders"),this.ColumnModelProperties&&(this._updateColumnHeaderNames(),this._updateColumnWidths(),this._updateColumnHeaderDisplay()),this.RowModelProperties&&(this._updateRowHeaderNames(),this._updateRowHeaderDisplay())},_updateRowHeaderDisplay:function(){this.domNode&&(l.getLogicalValue(this.getTableModelProperty("ShowRowHeaders"),!0)?n.remove(this.domNode,"hideRowHeaders"):n.add(this.domNode,"hideRowHeaders"))},_updateColumnHeaderDisplay:function(){this.domNode&&(l.getLogicalValue(this.getTableModelProperty("ShowColumnHeaders"),!0)?n.remove(this.domNode,"hideColumnHeaders"):n.add(this.domNode,"hideColumnHeaders"))},_updateRowHeaderNames:function(){if(s.logDebug("_VEModelProperties: _updateRowHeaderNames"),this.RowModelProperties){var e,t=this.defaultRowHeaderWidth,i=0,n=this.getTableModelProperty("CornerSpacerTitle");if(n&&(t=Math.max(7*n.length)+20,this.peerNode.setProperty("rowHeaderWidth",t)),this.dataModel&&this.dataModel.getCurrentStartRow&&this.dataModel.getCurrentEndRow){var o,r=l.getLogicalValue(this.getTableModelProperty("ShowRowHeaderNumbers"),!0),a=l.getLogicalValue(this.getTableModelProperty("ShowCustomRowHeaderNumbers"),!1),c=l.getLogicalValue(this.getTableModelProperty("ShowRowHeaderLabels"),!0),d=this.dataModel.getCurrentStartRow(),u=this.dataModel.getCurrentEndRow();for(o=0==u&&this.dataModel.getCurrentStartRow()===u&&0!==this.getRowCount()?this.RowModelProperties.length:u,e=d;e<o;e+=1){this.rows[e]||(this.rows[e]={label:"",labelIndex:null});var h=c?this.getRowModelProperty(e,"RowName"):"",p=a?this.getRowModelProperty(e,"RowNumber"):"";h?(this.rows[e].labelIndex=a?parseInt(p):e+1,this.rows[e].label=h):r?(this.rows[e].labelIndex=e+1,this.rows[e].label=""):(this.rows[e].labelIndex="",this.rows[e].label=""),i=Math.max(i,7*(this.rows[e].labelIndex.toString().length+2)),t=Math.max(t,7*(Math.min(this.maxLabelWidth,this.rows[e].label.length)+this.rows[e].labelIndex.toString().length+2))}null!=i&&(this.maxIndexWidth=i),this.peerNode.setProperty("rowHeaderWidth",t)}}},_updateColumnHeaderNames:function(){var e;if((s.logDebug("_VEModelProperties: _updateColumnHeaderNames"),this.ColumnModelProperties)&&(this.dataModel&&this.dataModel.getCurrentStartCol&&this.dataModel.getCurrentEndCol)){var t=l.getLogicalValue(this.getTableModelProperty("ShowColumnHeaderNumbers"),!0),i=l.getLogicalValue(this.getTableModelProperty("ShowCustomColumnHeaderNumbers"),!1),n=l.getLogicalValue(this.getTableModelProperty("ShowColumnHeaderLabels"),!0),o=this.getTableModelProperty("ShowHeaderIcons");this.getTableModelProperty("CornerSpacerTitle");for(e=this.dataModel.getCurrentStartCol();e<this.dataModel.getCurrentEndCol();e+=1){this.columns[e]||(this.columns[e]={label:"",labelIndex:null});var r=n?this.getColumnModelProperty(e,"HeaderName"):"",a=i?this.getColumnModelProperty(e,"HeaderNumber"):(e+1).toString(),c=o?this.getColumnModelProperty(e,"icon"):"";c&&(this.columns[e].icon=c),r?(this.columns[e].labelIndex=i?parseInt(a):e+1,this.columns[e].label=r):t?(this.columns[e].labelIndex=e+1,this.columns[e].label=""):(this.columns[e].labelIndex="",this.columns[e].label="")}}},_updateColumnWidths:function(){if(s.logDebug("_VEModelProperties: _updateColumnWidths"),this.ColumnModelProperties){var e,i=t.clone(this.columns),n=!1;if(this.dataModel&&this.dataModel.getCurrentStartCol&&this.dataModel.getCurrentEndCol&&this.columns.length>0)for(e=this.dataModel.getCurrentStartCol();e<this.dataModel.getCurrentEndCol();e+=1)if(this.columns[e]||(this.columns[e]={width:0}),this.columns[e]&&this.columns[e]!==this._resizingColumn)try{var o=(this._getColumnWidthOnTable?this._getColumnWidthOnTable(e):null)||this.getColumnModelProperty(e,"ColumnWidth"),a=parseInt(o,10);null!=o&&a>=0&&(this._currentColumns&&this._currentColumns[e]&&this._currentColumns[e].width===a?i[e].width=this._currentColumns[e].width:(n=!0,i[e].width=a))}catch(e){r.error(e),r.error(e.stack)}(n||this.dataModel&&this.columns&&this.dataModel.getColumnCount&&this.columns.length!==this.dataModel.getColumnCount())&&0!==i.length&&this.peerNode.setProperty("columns",i),!i||!n&&this._currentColumns||(this._currentColumns=i)}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(246),i(204),i(206),i(217),i(213),i(210)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){return e([],{postCreate:function(){this.inherited(arguments),this.own(n(this.columnHeaderNode,"mousedown",i.hitch(this,"_onColumnResizeMouseDown")))},_onColumnResizeMouseDown:function(e){if(e.target.getAttribute&&e.target.getAttribute("class")&&(-1!==e.target.getAttribute("class").indexOf("drag")||-1!==e.target.getAttribute("class").indexOf("firstHalfOfDrag")||-1!==e.target.getAttribute("class").indexOf("secondHalfOfDrag")||-1!==e.target.getAttribute("class").indexOf("dragBorder"))){a.add(this.domNode,"resizing");var r=this._getHeaderFromNode(e.target).column,s=this.columns[r];s&&(void 0===s.resizable||s.resizable)&&(this._tablePos=o.position(this.columnResizerNode.parentNode),this._resizingColumn=r,this._originalResizeWidth=s.width||0,this._minResizeWidth=s.minWidth||this.getColumnModelProperty(r,"ColumnMinWidth")?s.minWidth||this.getColumnModelProperty(r,"ColumnMinWidth"):10,this._maxResizeWidth=s.maxWidth?s.maxWidth:1e3,this._splitterNode=e.target,"drag"===e.target.getAttribute("class")&&(this._splitterNode=e.target.firstChild.nextElementSibling),"firstHalfOfDrag"===e.target.getAttribute("class")&&(this._splitterNode=e.target.nextElementSibling),"secondHalfOfDrag"===e.target.getAttribute("class")&&(this._splitterNode=e.target.previousElementSibling),this._originalSplitterPos=o.position(this._splitterNode),this._updateColumnResizerNode(this._originalSplitterPos.x),this._mouseMoveListener=n(document,"mousemove",i.hitch(this,"_onColumnMouseMove")),this._mouseUpListener=n(document,"mouseup",i.hitch(this,"_onColumnMouseUp")),document.addEventListener("selectstart",t.stop,!0))}},_getHeaderFromNode:function(e){for(var t=null,i=-1,n=-1;e.getAttribute&&"datatools.variableeditor.views.table.variableEditorColumnHeaders"!==e.getAttribute("data-tag")&&e!==this.dataScrollerNode;)e=e.parentNode;if(e.getAttribute&&"datatools.variableeditor.views.table.variableEditorColumnHeaders"===e.getAttribute("data-tag")){for(t=e,n=this.colView.start-1;e.previousElementSibling;)n+=1,e=e.previousElementSibling;for(e=e.parentNode,i=this.rowView.start-1;e.previousElementSibling;)i+=1,e=e.previousElementSibling}return{node:t,row:i,column:n}},_onColumnMouseMove:function(e){this._updateColumnResizerNode(e.pageX),t.stop(e)},_onColumnMouseUp:function(e){t.stop(e),a.remove(this.domNode,"resizing");var n=e.pageX-this._originalSplitterPos.x+this._originalResizeWidth;n=Math.min(Math.max(this._minResizeWidth,n),this._maxResizeWidth);var o=i.clone(this.columns);o[this._resizingColumn].width=n,this.peerNode.setProperty("columns",o),r.set(this.columnResizerNode,{display:"none"}),this._mouseMoveListener.remove(),this._mouseUpListener.remove(),document.removeEventListener("selectstart",t.stop,!0)},_updateColumnResizerNode:function(e){var t=e-this._originalSplitterPos.x+this._originalResizeWidth;t=Math.min(Math.max(this._minResizeWidth,t),this._maxResizeWidth),r.set(this.columnResizerNode,{display:"inherit",left:this._originalSplitterPos.x-this._tablePos.x+t-this._originalResizeWidth+"px"})}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206)],o=i.dj.d(n,(function(e,t,i){return e([],{postCreate:function(){this.inherited(arguments),this.own(i(this.dataScrollerNode,i.selector("button","click"),t.hitch(this,"_onCellButtonClick")))},_onCellButtonClick:function(e){var t=this._getCellFromNode(e.target);t.row>=0&&t.column>=0&&this.peerNode.dispatchPeerEvent("cellEvent",this.peerNode,{cellEventType:"buttonClick",row:t.row,column:t.column,buttonClass:e.target.getAttribute("class")})}})}),e,t),e.exports=o},function(e,t){e.exports='<div class="mw_type_Table mw_type_TableBase mw_type_ListBase">\n <div class="header nospacing preventDragSelection topHeaderWrapper">\n <div class="inline row cornerSpacer rowHeaderColumn rowHeadersWrapper topRowHeaderWrapper" data-dojo-attach-point="cornerSpacerNode">\n <div class="row cell"></div>\n </div>\n <div class="inline wrapper headerWrapper">\n <div class="inline scrolled dataColumn columnHeaderScrollerNode" data-dojo-attach-point="columnHeaderScrollerNode">\n <div class="row dataWidth spacer columnHeaderNode" data-dojo-attach-point="columnHeaderNode">\n <div class="cell spacer leftSpacer"></div>\n <div class="cell spacer rightSpacer"></div>\n </div>\n </div>\n </div>\n <div class="inline row cornerSpacer verticalScrollSpacer"></div>\n </div>\n <div class="body nospacing">\n <div class="inline wrapper rowHeadersWrapper preventDragSelection bottomRowHeaderWrapper">\n <div class="scrolled dataRow rowHeaderColumn rowHeaders rowHeaderScrollerNode" data-dojo-attach-point="rowHeaderScrollerNode">\n <div class="dataHeight spacer rowHeaderNode" data-dojo-attach-point="rowHeaderNode">\n <div class="row spacer topSpacer"></div>\n <div class="spacer bottomSpacer"></div>\n </div>\n </div>\n <div class="cornerSpacer horizontalScrollSpacer rowHeaderColumn"></div>\n </div>\n <div class="inline wrapper dataBodyWrapper">\n <div class="scroller dataRow dataColumn dataScrollerNode" data-dojo-attach-point="dataScrollerNode">\n <div class="dataWidth dataHeight spacer dataBody" data-dojo-attach-point="dataNode">\n <div class="row spacer topSpacer"></div>\n <div class="spacer bottomSpacer"></div>\n </div>\n </div>\n </div>\n </div>\n <div class="columnResizer" data-dojo-attach-point="columnResizerNode"></div>\n <div class="loading"></div>\n</div>\n'},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(248),i(231),i(1672),i(1554),i(209),i.dj.c(e.i),i(235)],o=i.dj.d(n,(function(e,t,n,o,r,a,s,l,c,d){return e("variableeditor.views.renderers.VERendererFactory",[],{table:{},type:"cellrennderer",constructor:function(e){this.table=e,this.type=e.RendererName,this.dragImageUrl=c.toUrl("../../images/ico_drag_workspace.png"),this._imageNode=this.preloadDragImage()},create:function(t,i,n){var o;if(o=document.createElement("input"),i&&i.length>=1&&"{"===i.charAt(0)){var r=JSON.parse(i),l=this.getCellIndices(r),c=l.row,d=l.column,u=this;this.createRendererObject(r,"renderer",{node:o,column:t,renderedObject:r,table:u.table},u.table,(function(t){var l=t.declaredClass;t._setupEventListeners(u.table),t.isInstanceOf(a)||e.safeMixin(t,new a),t.isInstanceOf(s)||e.safeMixin(t,new s),t.declaredClass=l,o=t.domNode,t._setRendererProperties(r,u.table,"server"),t.domNode.setAttribute("data-tag",t.createDataTag("CellRenderer","cell")),t.domNode.setAttribute("tabindex","-1"),t._setupDOMRowCol(t.getCellIndices(r)),n&&"function"==typeof n&&n(o),u.updateCellDraggability(c,d,o,i,t)}))}else o.value=i;return o},startup:function(e){e&&e.nodeName&&"input"===e.nodeName.toLowerCase()&&(e.value=e.value),r.getEnclosingWidget(e).startup()},getCellIndices:function(e){var t=-1,i=-1;return e&&void 0!==e.row&&(t=parseInt(e.row)),e&&void 0!==e.col&&(i=parseInt(e.col)),{row:t,column:i}},createRendererObject:function(e,t,n,o,r){var a=null,s=this.getCellIndices(e),d=s.row,u=s.column;try{var h=this.table.getCellPropertyValue(d,u,t,e);if(!h)return null;Promise.resolve().then((function(){var e=[c(h,null,!1)];Promise.all(i.dj.w(e)).then(function(e){return function(e){a=new e(n),r&&"function"==typeof r&&r(a)}.apply(null,i.dj.u(e))}.bind(this))})).catch(i.oe)}catch(e){l.error(e)}return a},update:function(e,t,i,n){var o=null;if(i&&i.length>=1&&"{"===i.charAt(0)){var a=JSON.parse(i);if(a.isInvalidCache)return;var s=this.getCellIndices(a),l=s.row,c=s.column,d=r.getEnclosingWidget(e),u="";d&&(u=d.declaredClass);var h=this.table.getCellPropertyValue(l,c,"renderer",a);this.comparePathToDeclaredClass(h,u)?(d._setRendererProperties(a,this.table,"server"),d._setupDOMRowCol(d.getCellIndices(a)),o=d.domNode,n&&"function"==typeof n&&n(o)):(o=this.create(t,i,n),d&&d.destroy())}else e&&(e.value=i,o=e);return o},updateCellDraggability:function(e,t,i,n,o){i||(i=this.domNode),n||(n=this.renderedObject),this.table&&this.table.useDojoDnD?this.updateDojoDraggability(e,t,i,n):this.updateDefaultCellDraggability(e,t,i,n,o)},updateDojoDraggability:function(e,t,i,r){if(this.table&&this.table.isCellDraggable){var a=this.table.isCellDraggable(e,t,r),s=this;a&&(n(i,o.press,(function(e){s.redispatchMouseEvent(e,"mousedown"),e.target.focus()})),n(i,o.release,(function(e){s.redispatchMouseEvent(e,"mouseup"),s.table&&s.table.dataScrollerNode&&s.table._onMouseDragUp(e),e.target.focus()})),d.addToClassList(i,"dojoDndItem"),r&&r.length>=1&&"{"===r.charAt(0)&&(r=JSON.parse(r)),r.value&&(i.setAttribute("dndData",r.value),i.setAttribute("dndType","text")))}},redispatchMouseEvent:function(e,t){var i=e,n=dijit.registry.byNode(e.currentTarget);i.renderer=n,n.dispatchEvent(t,n,i)},updateDefaultCellDraggability:function(e,i,o,r,a){if(this.table&&this.table.isCellDraggable){var s=this.table.isCellDraggable(e,i,r);o.draggable=s;var l=a;s&&(l.dragStartListener||(l.dragStartListener=n(o,"dragstart",t.hitch(this,"onDragStart")),l.dragOverListener=n(o,"dragover",t.hitch(this,"onDragOver")),l.dropListener=n(o,"drop",t.hitch(this,"onDrop"))),this.dragImage=this._imageNode)}},preloadDragImage:function(){var e=document.createElement("img");return e.src=this.dragImageUrl,e},onDragOver:function(e){return e.preventDefault&&e.preventDefault(),e.dataTransfer.dropEffect="copy",!1},onDragStart:function(e){if(this.table&&this.table.getSelectedFields){var t=this.table.getSelectedFields();if(e.dataTransfer.setData("text/plain",t),e.dataTransfer.setData("text/workspacebrowser",t),e.dataTransfer.setDragImage){var i=this.dragImage;i.setAttribute("alt",t),e.dataTransfer.setDragImage(i,0,0)}e.target.style.cursor="move",e.dataTransfer.effectAllowed="copyMove"}return!1},onDrop:function(e){return e.preventDefault&&e.preventDefault(),!1},clearCache:function(e,i,n){if(n&&n.length>=1&&"{"===n.charAt(0)){var o=JSON.parse(n),a=r.getEnclosingWidget(e),s={};a&&(s={veInplaceEditor:a.veInplaceEditor,veEditor:a.veEditor});var l=this.createRendererObject(o,"renderer",{node:e,column:i,renderedObject:o,table:this.table},this.table,(function(o){o&&o.clearCache&&o.clearCache(e,i,n),t.mixin(o,s)}));l&&l.clearCache&&l.clearCache(e,i,n)}},getCellValue:function(e){var t=r.getEnclosingWidget(e);return t.getValue?t.getValue():null},comparePathToDeclaredClass:function(e,t){var i=e.split("/"),n=t.split("."),o=!0;if(i.length===n.length)for(var r=0;r<i.length&&o;r+=1)o=i[r]===n[r];else o=!1;return o}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(558),i(559)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.CharArrayView",[t],{constructor:function(e){this.table={}},createTable:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(558),i(559)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.StringArrayView",[t],{constructor:function(){this.table={}},createTable:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(558),i(9182)],o=i.dj.d(n,(function(e,t,i,n){return e("variableeditor.views.StructureArrayView",[i],{createTable:function(e){e.sortAscending=this.peerNode.getProperty("SortAscending"),e.sortableColumn=this.peerNode.getProperty("SortableColumn"),e.clientSortHandler=t.hitch(this,(function(e){this.peerNode.setProperty("SortAscending",{SortAscending:e,source:"client"})}));var i=new n(e);return this.peerNode.addEventListener("propertySet",(function(e){"SortAscending"===e.data.key&&"server"===e.data.newValue.source&&i._swapSortIcon(null,e.data.newValue.SortAscending)}),this.peerNode),i},initArgs:function(e){t.mixin(this.allArgs,e),this.table.initArgs(e)},getSelectedFields:function(){if(this.table&&this.table.getSelectedFields)return this.table.getSelectedFields()},clearSelection:function(){this.table&&this.table.clearCurrentSelection()},focus:function(e){this.table&&this.table.focus(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(206),i(210),i(211),i(225),i(217),i(238),i(231),i(318),i(9183),i(2744),i(559),i(9184),i(483),i(235),i(463),i(1695),i(1694),i(9185),i(1031)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,_,v,b,y){return e("variableeditor.views.table.StructureTable",[h,m,_,b],{_ascending:!0,_clientSortHandler:null,_sortableColumnLabel:null,_fixedColumnWidths:!0,_lastSortTime:new Date,_contextMenu:null,cellColor:"rgb(166, 220, 255);",defaultProperties:{renderer:{type:"default"},rowHeight:22,dataModel:null,visibility:!0},rowHeight:22,initColumnWidthSet:!1,NAME_COLUMN:"Name",FIELD_COLUMN:"Field",PROPERTY_COLUMN:"Property",VALUE_COLUMN:"Value",SIZE_COLUMN:"Size",CLASS_COLUMN:"Class",Width_Adjustment:20,_SORT_HEADER_CLASS:"sortableColumn",_SORT_ICON_CLASSES:["sortable","sortIcon","sortUp"],constructor:function(e){this.defaultProperties.showCellBorders=!1,this._setDefaultLeadCellStyle(),this.singleRowSelection=e.SingleRowSelection,e.sortAscending&&e.sortAscending.hasOwnProperty("SortAscending")?this._ascending=e.sortAscending.SortAscending:this._ascending=!0,this._sortableColumnLabel=e.sortableColumn,this._clientSortHandler=e.clientSortHandler,this._fixedColumnWidths=void 0===e.fixedColumnWidths||e.fixedColumnWidths,this.sendSelectionRanges=!1,this.showSelectionBorder=!1,this.rowHeight=22,this.selectedCellStyle="background-color: "+this.cellColor+"z-index:5;",this.debounceResize=g.createDebounceFn(this,[this._updateWidthOnResize],500)},postCreate:function(){this.blockSelection&&this.blockSelection.setIndexedRows(!0),this.inherited(arguments),this._updateTableHeaders(),n.add(this.domNode,"StructureTable")},initArgs:function(){this.inherited(arguments)},_updateHeaderStyle:function(){},_getLabelProperties:function(){var e={},t=this.getTableModelProperty("ColumnHeaderList"),i=this.getTableModelProperty("ColumnHeaderListPropertyName");if(!t||!i||t.length!==i.length)return e;e.labels=[];for(var n=0;n<t.length;n++){var o,r,a=t[n],s=i[n];s===this.NAME_COLUMN||s===this.FIELD_COLUMN||s===this.PROPERTY_COLUMN?(o=!0,r=!0):(o=g.getLogicalValue(this.getTableModelProperty(i[n]),!0),r=!1),e.labels.push({label:a,checked:o,disabled:r,propertyName:s})}return d.getInstance().setPropertyVal(u.HEADER_CONTEXTMENU_LABELS_SET,!0),e},_attachListeners:function(e){e.addEventListener("headerSelectionChanged",t.hitch(this,"_headerMenuSelectionChanged")),e.addEventListener("headerMenuShown",t.hitch(this,"_updateHeaderMenuState"))},focus:function(e){if(0!==this.getRowCount()){var t=this.blockSelection.getLastSelectedRow();-1!==t||e||(this._updateKeyboardSelection(0,0,{}),t=0),this.updateFocus(t)}},nodesUpdated:function(){if(this.cachedFocusedNode){this.updateFocus(this.cachedFocusedNode);var e=this.getNodeToBeFocused(this.cachedFocusedNode);if(e[0])e[0].getElementsByTagName("input")[0].focus();this.clearFocusCache()}},_createContextMenu:function(e){var t=this.domNode.getAttribute("id"),i=new p({targetNodes:["#"+t+" .columnHeaderScrollerNode"],labelProperties:e});return i.domNode.setAttribute("data-tag",g.concatenateDataTagStrings("datatools","variableeditor","contextMenu")),i},_setupColumnSelectionContextMenu:function(){var e=this._getLabelProperties();try{this.contextMenu=this._createContextMenu(e.labels),this.contextMenu.startup(),this._attachListeners(this.contextMenu),d.getInstance().setPropertyVal(u.HEADER_CONTEXTMENU_INITIALIZED,!0)}catch(e){f.logDebug(e)}},_updateHeaderMenuState:function(e){var t=this._getLabelProperties();t=t.labels,this.contextMenu.hasSubMenuItems()||this.contextMenu.createSubMenuItems(t);for(var i=0;i<t.length;i++){var n=t[i],o=n.label,r=n.checked;e.target.setLabelState(o,r)}},_headerMenuSelectionChanged:function(e){this._toggleHeaderColumn(e.data.text);var t=this.blockSelection;!t.isEmpty()&&e.data.checked&&t.selectedColumns&&t.selectedColumns[0]&&t.selectedColumns[0].end<=this.getColumnCount()-1&&(t.selectedColumns[0].end+=1,this.blockSelection=t,this._renderSelection())},_getColumnHeaderPropertyName:function(e){for(var t=this._getLabelProperties(),i=0;i<t.labels.length;i++)if(t.labels[i].label===e)return t.labels[i].propertyName},_toggleHeaderColumn:function(e){var t=this._getColumnHeaderPropertyName(e);void 0!==t&&(g.getLogicalValue(this.getTableModelProperty(t),!0)?this.peerViewModel.setTableModelProperty(t,!1):this.peerViewModel.setTableModelProperty(t,!0))},_onDataModelSet:function(){this.inherited(arguments),this.updateModelProperties(!0),this._addDataValueTags()},startup:function(){this.inherited(arguments),this._setupColumnSelectionContextMenu(),this._attachDndListeners()},_attachDndListeners:function(){this.dragEnterListener=i(this.domNode,"dragenter",t.hitch(this,this._onDragEnter)),this.dragOverListener=i(this.domNode,"dragover",t.hitch(this,this._onDragOver)),this.dragLeaveListener=i(this.domNode,"dragleave",t.hitch(this,this._onDragLeave)),this.dropListener=i(this.domNode,"drop",t.hitch(this,this._onDrop))},_onDragEnter:function(e){return!1},_onDragOver:function(e){return!1},_onDragLeave:function(e){return!1},_onDrop:function(e){return!1},_onKeyDown:function(e){65===e.keyCode&&e.ctrlKey&&e.preventDefault()},_setInitialColumnSize:function(){var e,i=t.clone(this.columns),n=r(">div.cell:not(.spacer)",this.columnHeaderNode),o=a.position(this.container.domNode),s=o.w/i.length,l=o.w/this.Width_Adjustment;for(e=0;e<n.length;e+=1){var c=n[e],d=a.position(c);i[e].width=this._fixedColumnWidths?d.w:s,this._fixedColumnWidths||(0!==e&&1!==e||(i[e].width+=l),2!==e&&3!==e||(i[e].width-=l)),this.setColumnModelProperty(e,"ColumnWidth",i[e].width),this._setColumnWidthOnTable(e,i[e].width),this.initColumnWidthSet=!0}},resize:function(){if(!this._noAutoSizing){var e=a.position(this.domNode);this.position={width:e.w,height:e.h},this.debounceResize()}this.inherited(arguments)},_updateWidthOnResize:function(){if(this._isColumnWidthInitial()){this.totalColumnWidth=this.position.width;for(var e=this.totalColumnWidth/this.columns.length,t=this.totalColumnWidth/this.Width_Adjustment,i=e+t,n=e-t,o=0;o<this.columns.length;o++)0!==o&&1!==o||(this.columns[o].width=i,this._setColumnWidthOnTable(o,i)),2!==o&&3!==o||(this.columns[o].width=n,this._setColumnWidthOnTable(o,n))}},_onColumnsSet:function(){var e;this._updateColumnHeaderNames(),this.totalColumnWidth=0;var t=this.ColumnModelProperties.length;for(e=0;e<t;e+=1)if(this.columns[e]){var i=(this._getColumnWidthOnTable?this._getColumnWidthOnTable(e):null)||this.getColumnModelProperty(e,"ColumnWidth"),n=parseInt(i,10);null!=i&&n>=0?(this.totalColumnWidth+=n,this.columns[e].width||(this.columns[e].width=n)):(this.totalColumnWidth+=this.defaultColumnWidth,this.columns[e].width=this.defaultColumnWidth)}this._renderViewData(!0)},_setColumnWidthOnTable:function(e,t){var i=this._getHeaderNameWithIndex(e);if(null!=i){var n=i+"ColumnWidth";this.setTableModelProperty(n,t)}},_getColumnWidthOnTable:function(e){var t=this._getHeaderNameWithIndex(e)+"ColumnWidth";return this.getTableModelProperty(t)},getSelectedFields:function(){return this.getTableModelProperty("SelectedFields")},getDndItemSelector:function(){return".dataBody div.row:not(.spacer)"},getDndHandleSelector:function(){return[".structNameColumn",".structSizeColumn",".structClassColumn"]},_renderViewData:function(e){var t=this;this._throttledRender(e,(function(){!t.initColumnWidthSet&&t.container&&a.position(t.container.domNode).w>0&&(t._setInitialColumnSize(),d.getInstance().setPropertyVal(u.STRUCT_RENDERED,!0)),t._attachDndHandles(),t._addDataValueTags()}))},_getStructNameColumnWidget:function(e){return l.getEnclosingWidget(e)},_addDataValueTags:function(){if(this.domNode){var e=this.domNode.querySelectorAll('[class="row"]'),t=this.getDndHandleSelector(),i=this.domNode.querySelectorAll(t[0]);if(i&&e)for(var n=0;n<i.length;n+=1){var o=i[n],r=this._getStructNameColumnWidget(o);if(r&&r.getValue){var a=r.getValue();a&&e[n]&&(e[n].dataset.structVarName=a)}}}},_getColumnTag:function(e){switch(e){case y.structNameColumn:e="Name";break;case y.structFieldColumn:e="Field";break;case y.structValueColumn:e="Value";break;case y.structSizeColumn:e="Size";break;case y.structClassColumn:e="Class"}return e},_getColumnDataTag:function(e){var t=e.label;return t=this._getColumnTag(t)},_renderSelection:function(){var e=this.blockSelection.selectedRows,t="",i=this.getDndHandleSelector()[0];if(!this.blockSelection.isEmpty()&&null!==this.dataModel){for(var n=0;n<e.length;n+=1){Math.max(1,e[n].start+this.tableRowOffset-this.rowView.start),Math.max(1,e[n].end+this.tableRowOffset-this.rowView.start);this.getDndHandleSelector()[0];for(var o=e[n].start;o<=e[n].end;o++){var r=this.domNode.getElementsByClassName(i.substring(1,i.length)+" row_"+o);if(r&&r[0]){var a=l.getEnclosingWidget(r[0]);a&&(t=t+a._value+",")}}}var s=(t=t.slice(0,-1)).split(",");s.length===this.blockSelection.getRowCount()&&this.setTableModelProperty("SelectedFields",t),this._setDefaultLeadCellStyle();var c=this.blockSelection.getFirstCellFromLastRow();this._setLeadCellPosition(c[0],c[1])}this.inherited(arguments)},_flipSelection:function(e){"dataModel"===e.data.key?(this.peerNode.removeEventListener("propertySet",this._flipSelection,this),this.blockSelection.flipRowCount(this.getRowCount()),this._renderSelection()):"Selection"===e.data.key&&this.peerNode.removeEventListener("propertySet",this._flipSelection,this)},_sort:function(e,t){this._ascending!==t&&(this._swapSortIcon(e,t),this.getRowCount()>=2&&this.peerNode.addEventListener("propertySet",this._flipSelection,this),this._clientSortHandler(this._ascending))},_updateSortIcon:function(e){this._ascending?(n.remove(e,"sortDown"),n.add(e,"sortUp")):(n.remove(e,"sortUp"),n.add(e,"sortDown"))},_swapSortIcon:function(e,t){this._ascending!==t&&(this._ascending=t,e||(e=this._getSortIconNode()),n.contains(e,"sortableColumn")&&(e=e.getElementsByClassName("sortIcon")[0]),this._updateSortIcon(e))},_getSortIconNode:function(){return this._getSortColumnTextDOMNode(this.domNode)},_toggleSort:function(e){if(1===e.data.which&&e.target&&e.target.domNode){var t=e.target.domNode;this._isDragNode(t)||this._sort(t,!this._ascending)}},_isDragNode:function(e){return n.contains(e,"drag")||n.contains(e,"firstHalfOfDrag")||n.contains(e,"dragBorder")||n.contains(e,"secondHalfOfDrag")},_updateSortableNode:function(e){var i=l.getEnclosingWidget(e);if(n.add(this.columnHeaderScrollerNode,"contextMenuContainer"),i._inputBoxLabel._value===this.sortableColumn){var r=i._getAttachNode(i.HEADER_LABEL_ATTACH_POINT).querySelectorAll(".NonEditableHeader")[0],a=r.getElementsByClassName("sortIcon"),s=this.getEnclosingHeaderWidget(r);if(a.length>0)a=a[0];else{a=o.create("div",null,r,"last");var c=s._inputBox.value.toUpperCase(),d=g.getComputedColumnHeaderWidth(c,"9px Helvetica, Helvetica, sans-serif")+16+"px";n.add(r,this._SORT_HEADER_CLASS),n.add(a,this._SORT_ICON_CLASSES),s.domNode.setAttribute("data-tag",f.createDataTag("sortableColumn")),s._inputBox.domNode.style.maxWidth=d}this.hasOwnProperty("sortListener")||s._listeners.mousedown||s.addEventListener("mousedown",t.hitch(this,"_toggleSort")),this._updateSortIcon(a)}},_createColumnNode:function(e){var t=this.inherited(arguments);return this._updateSortableNode(t),t},_updateColumnNode:function(e,t){this.inherited(arguments),this._updateSortableNode(e)},_getSortColumnTextDOMNode:function(e){var t,i=l.getEnclosingWidget(e),n=i._getAttachNode(i.HEADER_LABEL_ATTACH_POINT).querySelectorAll(".sortable.sortIcon");for(t=0;t<n.length;t+=1){var o=l.getEnclosingWidget(n[t]);if(this._sortableColumnLabel===o._value)return n[t]}},onEditingStarted:function(){this.leadCellStyle="background-color: rgb(255, 255, 255);opacity: 1.0;",this._updateSelectionAndSelectionBorderStyle(),this._updateLeadCellStyle()},onEditingStopped:function(){this.showSelectionBorder=!1,this._setDefaultLeadCellStyle(),this._updateLeadCellStyle(),this._updateSelectionAndSelectionBorderStyle()},_updateBlockSelection:function(e,t,i,n){return this.singleRowSelection&&(i=new v({indexedRows:!this.sendSelectionRanges})),i=this._updateRowSelection(e,i,n)},_selectAll:function(){this.singleRowSelection||this.inherited(arguments)},_updateRowSelection:function(e,t,i){if(this.SingleRowSelection){var n=this.getColumnCount()-1;this._setShiftKeyPivot(e,n),t.add(e,e,0,n)}else t=this.inherited(arguments);return t},onMouseEnter:function(e){},_onColumnMouseDown:function(e){e.preventDefault()},selectColumn:function(){},clearCurrentSelection:function(){this._clearBlockSelection(),this.setServerSelection(!0)},deselectColumn:function(){},_onHeaderColumnMouseDown:function(e){e.preventDefault()},_onMouseMove:function(){this.focused||this.domNode.focus(),this.cellsDragged=!0},handlePropertySet:function(e){this.inherited(arguments),"dataModel"===e.data.key&&(this.leadCellStyle={},this._updateLeadCellStyle())},_setDefaultLeadCellStyle:function(){this.leadCellStyle="background-color: "+this.cellColor+"opacity: 1.0;"},_updateDataStyles:function(){this._fixedColumnWidths?this.inherited(arguments):this.dataModel&&this.rowHeight&&this.position&&(this._updateScrollerStyles(),this.styleManager.updateStyleRules("spacerLeft",{".row .spacer.leftSpacer":"width: "+this.leftSpaceWidth+"px;"}),this.styleManager.updateStyleRules("dataWidth",{".spacer.dataWidth":"width: 100%;"}),this._updateColumnStyles())},_updateColumnStyles:function(){if(this._fixedColumnWidths)this.inherited(arguments);else{var e=this.rowView.start*this.rowHeight;this.styleManager.updateStyleRules("spacerTop",{".body .spacer.topSpacer":"height: "+e+"px;"}),this.styleManager.updateStyleRules("dataHeight",{".spacer.dataHeight":"height: "+this.dataModel.getRowCount()*this.rowHeight+"px;",".row":"height: "+this.rowHeight+"px;"});var t=this.totalColumnWidth;if(this.container&&this.container.containerNode&&this.container.containerNode.getBoundingClientRect()){var i=this.container.containerNode.getBoundingClientRect();t=i.width}var n,o,r,a=this.columns.slice(this.colView.start,this.colView.end),s=this._isColumnWidthInitial(),l={},c=t;for(n=0;n<a.length;n+=1)o=this._getCellType(a[n]),r=this._getColumnStyles(o),a[n]&&a[n].width&&!s?n<a.length-1?(r+="width: "+a[n].width+"px;",c-=a[n].width):r+="width: "+c+"px;":(0!==n&&1!==n||(r+="width: "+Math.floor(100/a.length+100/this.Width_Adjustment)+"%;"),2!==n&&3!==n||(r+="width: "+Math.floor(100/a.length-100/this.Width_Adjustment)+"%;")),l[".dataColumn .cell:nth-child("+(n+2)+")"]=r;s||this.styleManager.updateStyleRules("dataWidth",{".spacer.dataWidth":"width: "+t+"px;"}),this.styleManager.updateStyleRules("columns",l)}},_isColumnWidthInitial:function(){var e=!0;if(this._fixedColumnWidths)e=!1;else for(var t=0;t<this.columns.length;t+=1)if(this.getColumnModelProperty(t,"ColumnResized")){e=!1;break}return e},_createCustomColumnHeader:function(e,t,i){node=this.inherited(arguments),columnModelProperties=this.ColumnModelProperties;for(var o=0;o<columnModelProperties.length;o++)columnModelProperties[o].HeaderName&&columnModelProperties[o].classList&&i==columnModelProperties[o].HeaderName&&n.add(node,columnModelProperties[o].classList);return node},_getHeaderNameWithIndex:function(e){return 0===e?this.NAME_COLUMN:e===this._getValueColumnIndex()?this.VALUE_COLUMN:e===this._getSizeColumnIndex()?this.SIZE_COLUMN:e===this._getClassColumnIndex()?this.CLASS_COLUMN:null},_getValueColumnIndex:function(){return this.getTableModelProperty("ShowValueColumn")?1:-1},_getSizeColumnIndex:function(){return this.getTableModelProperty("ShowSizeColumn")?this.getTableModelProperty("ShowValueColumn")?2:1:-1},_getClassColumnIndex:function(){if(!this.getTableModelProperty("ShowClassColumn"))return-1;var e=this.getTableModelProperty("ShowValueColumn"),t=this.getTableModelProperty("ShowSizeColumn");return e&&t?3:e||t?2:1}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(369),i(1279),i(2744)],o=i.dj.d(n,(function(e,t,i,n){var o=[],r=e("datatoolsservices.TestingHooksUtils",[i],{constructor:function(e){this.namespace=e&&e.namespace?e.namespace:"/TestingHooks",this.manager=null,this.manager=t.getClientInstance(this.namespace),this.addManagerListeners(this.manager),this._initTestingHooks=!1,this.start(this._peerModelManager),this._propRequests=[],this._init()},_init:function(){var e=this;this.manager.addEventListener("rootSet",(function(t){var i=t.target;i&&i.hasProperty(n.TESTING_INITIALIZED)&&(e._initTestingHooks=i.getProperty(n.TESTING_INITIALIZED),e._propRequests.length>0&&e._dequeuePropSetRequests())}))},createRoot:function(e,t){this.hasRoot()||this.manager.setRoot(e,t)},getRoot:function(){return this.manager.getRoot()},hasRoot:function(){return this.manager.hasRoot()},setPropertyVal:function(e,t){if(this.manager&&this.hasRoot()&&this._initTestingHooks&&t){this.getRoot().setProperty(e,t)}else{var i={prop:e,val:t};this._queuePropSetRequests(i)}},_queuePropSetRequests:function(e){this._propRequests&&this._propRequests.push(e)},_dequeuePropSetRequests:function(){this._propRequests.forEach((function(e){this.setPropertyVal(e.prop,e.val)}),this),this._propRequests=[]},getPropertyVal:function(e){if(this.manager.hasRoot()){var t=this.getRoot();if(t.hasProperty(e))return t.getProperty(e)}return null},resetProperties:function(){if(this.hasRoot()){var e,t=this.getRoot(),i=t.getProperties();for(e in i)t.unsetProperty(e)}},cleanup:function(){t.cleanup(this.namespace)}});return r.getInstance=function(e){var t=e&&e.namespace?e.namespace:"/TestingHooks";return o[t]||(o[t]=new r(e)),o[t]},{getInstance:r.getInstance}}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(210),i(206),i(317),i(515),i(652),i(318),i(235)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l){return e("variableeditor.views.table.HeaderContextMenu",[o,a.Impl],{_labelProperties:void 0,_menuHash:{},VALUE_COLUMNTAG:"Value",SIZE_COLUMNTAG:"Size",CLASS_COLUMNTAG:"Class",VALUECOLUMN_PROPERTYNAME:"ShowValueColumn",SIZECOLUMN_PROPERTYNAME:"ShowSizeColumn",CLASSCOLUMN_PROPERTYNAME:"ShowClassColumn",constructor:function(e){this._labelProperties=e&&e.labelProperties?e.labelProperties:[],this.targetNodes=e.targetNodes,this.willOpenCallback=e.willOpenCallback?e.willOpenCallback:t.hitch(this,"_openCallback")},_openCallback:function(){this.dispatchEvent("headerMenuShown",this)},postCreate:function(){this.inherited(arguments),this.createSubMenuItems(this._labelProperties)},createSubMenuItems:function(e){e&&e.length>0&&this._addSubMenuItems(e)},hasSubMenuItems:function(){return Object.keys(this._menuHash).length>0},_addCheckedMenuItem:function(e,i,n){var o=new r({text:e,checked:i,closeMenuOnClick:!0});o.on("change",t.hitch(this,"_dispatchHeaderColumnSet")),o.domNode.setAttribute("data-tag",l.concatenateDataTagStrings("datatools","variableeditor","regularContextMenuItem",n)),this.addChild(o),this._menuHash[e]=o},_addDisabledCheckedMenuItem:function(e,t){var n=new r({text:e,checked:!0,disabled:!0,closeMenuOnClick:!0});n.domNode.setAttribute("data-tag",l.concatenateDataTagStrings("datatools","variableeditor","defaultContextMenuItem",t)),this.addChild(n),i.add(n.domNode,"disabledContextMenu")},_addSubMenuItems:function(e){for(var t=0;t<e.length;t++){var i=e[t],n=i.label,o=i.checked,r=i.disabled,a=i.propertyName;l.compareValues(a,this.VALUECOLUMN_PROPERTYNAME)?a=this.VALUE_COLUMNTAG:l.compareValues(a,this.SIZECOLUMN_PROPERTYNAME)?a=this.SIZE_COLUMNTAG:l.compareValues(a,this.CLASSCOLUMN_PROPERTYNAME)&&(a=this.CLASS_COLUMNTAG),r?this._addDisabledCheckedMenuItem(n,a):this._addCheckedMenuItem(n,o,a)}},setLabelState:function(e,t){this._menuHash.hasOwnProperty(e)&&this._menuHash[e].set("checked",t)},_dispatchHeaderColumnSet:function(e){var t=dijit.getEnclosingWidget(e.target),i={target:e.target,text:t.text,checked:t.checked};this.dispatchEvent("headerSelectionChanged",this,i)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(238),i(203),i(2745),i(9186),i(368),i(342),i(209)],o=i.dj.d(n,(function(e,t,i,n,o,r,a){var s=0;return t([n],{_root_Selector:"",_mode:"StandAlone",namespace:"actions/ve/keybindings",_OPENVAR_ACTION:"OpenVariableAction",_DELETE_ACTION:"DeleteVariableAction",_shiftDirection:"",_SHIFT_DIRECTION_UPWARD:"upward",_SHIFT_DIRECTION_DOWNWARD:"downward",constructor:function(e){!this._actionDataService&&e.keyboardAccessibility&&this._initAccessibility(e)},_initAccessibility:function(e){this._VEActionDataService=e.actionDataService,s+=1;var t=this.namespace+s;this._actionDataService=new o({nameSpace:t,mode:this._mode}),this._root_Selector=e.keyBindingSelector,this._keyBindings=new r(this._actionDataService),this._initKeyBindingActions()},initArgs:function(e){this._VEActionDataService=e.actionDataService},_initKeyBindingActions:function(){this.getKeyboardActions().forEach((function(e){this._setKeyBindingAction(e)}),this)},_setKeyBindingAction:function(e){this._actionDataService.addAction(e),this._keyBindings.getBinding(e.shortcut).setAction(this._root_Selector,e.id)},_executeAction:function(e){this._VEActionDataService?this._VEActionDataService.getAction(e).execute():a.warn("VE Action Data Service does not exist")},updateFocus:function(t){var i=this.getNodeToBeFocused(t);i[0]?e.focus(i[0]):this.cacheFocusUpdateNode(t)},getNodeToBeFocused:function(e){var t=this.getDndHandleSelector()[0],i=t.substring(1,t.length)+" row_"+e;return this.domNode.getElementsByClassName(i)},cacheFocusUpdateNode:function(e){this.cachedFocusedNode=e.toString()},clearFocusCache:function(){this.cachedFocusedNode=""},_moveUp:function(){var e=this.blockSelection.selectedRows;if(e&&e.length>0){var t=e[0],i=Math.max(t.start-1,0);this._updateKeyboardSelection(i,0,{}),this._shiftDirection=""}},_moveDown:function(){var e=this.blockSelection.selectedRows;if(e&&e.length>0){var t=e.slice(-1).pop(),i=Math.min(t.end+1,this.getRowCount()-1);this._updateKeyboardSelection(i,0,{}),this._shiftDirection=""}},_moveUpContinuous:function(){var e=this.blockSelection.selectedRows;if(e&&e.length>0){var t=this._getLastSelectedRowUpDirection();t<=this.getShiftKeyPivot()[0]&&(this._shiftDirection=this._SHIFT_DIRECTION_UPWARD);var i=Math.max(t,0);this._updateKeyboardSelection(i,0,{shiftKey:!0})}},_moveDownContinuous:function(){var e=this.blockSelection.selectedRows;if(e&&e.length>0){var t=this._getLastSelectedRowDownDirection();this.getShiftKeyPivot()[0]<=t&&(this._shiftDirection=this._SHIFT_DIRECTION_DOWNWARD);var i=Math.min(t,this.getRowCount()-1);this._updateKeyboardSelection(i,0,{shiftKey:!0})}},_getLastSelectedRowUpDirection:function(){var e=this.blockSelection.selectedRows,t=e.length,i=e[t-1];return 1===t&&i.start===i.end||this._shiftDirection===this._SHIFT_DIRECTION_UPWARD?e[0].start-1:i.end-1},_getLastSelectedRowDownDirection:function(){var e=this.blockSelection.selectedRows,t=e.length,i=e[0];return 1===t&&i.start===i.end||this._shiftDirection===this._SHIFT_DIRECTION_DOWNWARD?e[t-1].end+1:i.start+1},_moveUpAll:function(){this._updateKeyboardSelection(0,0,{shiftKey:!0,ctrlKey:!0}),this._shiftDirection=""},_moveDownAll:function(){var e=this.getRowCount()-1;this._updateKeyboardSelection(e,0,{shiftKey:!0,ctrlKey:!0}),this._shiftDirection=""},_selectAll:function(){var e=this.getRowCount()-1;this._updateAndRenderSelection(e,0,{selectAll:!0}),this.setServerSelection(!0),this._shiftDirection=""},_updateKeyboardSelection:function(e,t,i){this.scrollToRow(e),this._updateAndRenderSelection(e,t,i),this.setServerSelection(!0),this.updateFocus(e)},_tabNavigate:function(){},_shiftTabNavigate:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(204),i(203),i(2745)],o=i.dj.d(n,(function(e,t,i){return t(null,{getKeyboardActions:function(){return[{id:"openAction",enabled:!0,shortcut:i["open-selection"],callback:e.hitch(this,"_executeAction",this._OPENVAR_ACTION)},{id:"deleteAction",enabled:!0,shortcut:i["delete-selection"],callback:e.hitch(this,"_executeAction",this._DELETE_ACTION)},{id:"moveUpAction",enabled:!0,shortcut:i["move-up"],callback:e.hitch(this,"_moveUp")},{id:"moveDownAction",enabled:!0,shortcut:i["move-down"],callback:e.hitch(this,"_moveDown")},{id:"moveUpContinuousAction",enabled:!0,shortcut:i["move-up-continuous"],callback:e.hitch(this,"_moveUpContinuous")},{id:"moveDownContinuousAction",enabled:!0,shortcut:i["move-down-continuous"],callback:e.hitch(this,"_moveDownContinuous")},{id:"moveUpAllAction",enabled:!0,shortcut:i["move-up-all"],callback:e.hitch(this,"_moveUpAll")},{id:"moveDownAllAction",enabled:!0,shortcut:i["move-down-all"],callback:e.hitch(this,"_moveDownAll")},{id:"tabAction",enabled:!0,shortcut:i["tab-navigate"],callback:e.hitch(this,"_tabNavigate")},{id:"shiftTabNavigate",enabled:!0,shortcut:i["shift-tab-navigate"],callback:e.hitch(this,"_shiftTabNavigate")},{id:"selectAll",enabled:!0,shortcut:i["select-all"],callback:e.hitch(this,"_selectAll")}]}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(558),i(559)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.CategoricalView",[t],{createTable:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(558),i(9189)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.TableArrayView",[t],{createTable:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(225),i(1695),i(9190),i(559)],o=i.dj.d(n,(function(e,t,i,n,o,r){return e("variableeditor.views.table.MatlabTable",[r,n,o],{lastClickNode:null,constructor:function(e){this.inherited(arguments)},updateModelProperties:function(){this.inherited(arguments);var e=!1;this.dataModel||(this.dataModel=this.peerNode.getProperty("dataModel"),e=!0),this.dataModel&&this.ColumnModelProperties&&this._updateColumnWidths(),e&&(this.dataModel=null)},onMouseDown:function(e){this.inherited(arguments);var t=-1,i=-1,n=-1;e&&e.data&&e.data.renderer&&e.data.renderer.domNode&&e.data.renderer.domNode.dataset&&(t=parseInt(e.data.renderer.domNode.dataset.row),i=parseInt(e.data.renderer.domNode.dataset.col),n=parseInt(e.data.renderer.domNode.dataset.idx)),this._setLeadCellPosition(t,i,n)},onMouseEnter:function(e){if(this.inherited(arguments),this.selectable&&!this.isCellEnterListenerPaused){var t=-1,i=-1,n=-1;e&&e.data&&e.data.renderer&&e.data.renderer.domNode&&e.data.renderer.domNode.dataset&&(t=parseInt(e.data.renderer.domNode.dataset.row),i=parseInt(e.data.renderer.domNode.dataset.col),n=parseInt(e.data.renderer.domNode.dataset.idx)),this._setLeadCellPosition(t,i,n)}},onValueChanged:function(e){if(!e||!e.data||"server"!==e.data.source){var t=null;e.data.editor?t=e.data.editor:e.data.renderer&&(t=e.data.renderer),t.oldValue=e.data.oldValue;var i=-1,n=-1,o=-1;t.domNode&&t.domNode.dataset&&(i=parseInt(t.domNode.dataset.row),n=parseInt(t.domNode.dataset.col),o=parseInt(t.domNode.dataset.idx));var r=e.data.newValue;isNaN(i)||isNaN(n)||isNaN(o)||(t.convert&&(r=t.convert(e.data.newValue)),this.peerNode.getParent().dispatchEvent("peerEvent",this.peerNode.getParent(),{type:"groupedColumnSetData",row:i,column:n,columnIndex:o,data:r}))}},getCellSelector:function(e,t,i){return this.getRowSelector(e)+" .cell:nth-of-type("+(t-this.colView.start+2)+") .idx_"+i},_setLeadCellPosition:function(e,t,i){this.ColumnModelProperties[t]&&(i=this.ColumnModelProperties[t].GroupColumnSize?this.ColumnModelProperties[t].GroupColumnSize-1:i),this.leadCell={row:Math.min(e,this.getRowCount()-1),column:Math.min(t,this.getColumnCount()-1),index:isNaN(i)?0:i},this._updateLeadCellStyle()},getLeadNode:function(){if(this.leadCell.row<0||this.leadCell.column<0||this.leadCell.index<0||this.leadCell.row>=this.getRowCount()||this.leadCell.column>=this.getColumnCount())return null;var e=this.getCellSelector(this.leadCell.row,this.leadCell.column,this.leadCell.index);return i(e)[0]},_updateLeadCellStyle:function(){var e={};if(this._isLeadNodeInDom()){var t=this.getLeadNode(),i=this._getCellFromNode(t);if(i&&!this.isCellSelected(i.row,i.column))return void this.styleManager.updateStyleRules("selectionLeadCell",[]);this.blockSelection.isEmpty()||(e[".body .dataBodyWrapper .dataRow .dataBody .row:nth-of-type("+(i.row-this.rowView.start+2)+") .cell:nth-of-type("+(i.column-this.colView.start+2)+") .idx_"+this.leadCell.index]=this.leadCellStyle)}this.styleManager.updateStyleRules("selectionLeadCell",e)},_createColumnNode:function(e){var t=this.inherited(arguments);return this._updateColumnNode(t,e),t},_createRowNode:function(e){var t=this.inherited(arguments);return this._updateRowNode(t,e),t},_updateColumnWidths:function(){if(this.ColumnModelProperties){var e;this.inherited(arguments);var i=!1;if(this.dataModel&&this.columns)for(e=this.dataModel.getCurrentStartCol();e<this.dataModel.getCurrentEndCol();e+=1)if(this.columns[e])try{var n=this.getColumnModelProperty(e,"GroupColumnSize");if(n){var o=parseInt(n,10),r=this.getColumnModelProperty(e,"ColumnWidth"),a=parseInt(r,10);if(null!=r&&a>=0&&this._currentColumns&&this._currentColumns[e]&&(this._currentColumns[e].groupColumnSize!==o||this.columns[e].width!==a*o)){this.columns[e].groupColumnSize=o;var s=this.defaultColumnWidth*o;a>s&&(s=a),this.columns[e].width=s,i=!0}}}catch(e){console.log(e),console.log(e.stack)}if(i){var l=t.clone(this.columns);this.peerNode.setProperty("columns",l)}this._currentColumns=this.columns}}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(204),i(236),i(210),i(223),i(231),i(1692),i(235),i(1031),i(219),i(1693),i(2743)],o=i.dj.d(n,(function(e,t,i,n,o,r,a,s,l,c,d,u){return e([a],{ms:c.messageService,CHANNEL_DuplicateRowHeader:"ErrorDuplicateRowHeader",subscriptionCallback:null,subscription:null,pauseValueChangedListener:!1,ROW_HEADER_CHANNEL:"/VERowHeaderName",_createRowNode:function(e,t){var i=new d({templateString:u,editable:s.getLogicalValue(this.getTableModelProperty("EditableRowHeaderLabels"),!0),showLabels:s.getLogicalValue(this.getTableModelProperty("ShowRowHeaderLabels"),!0),showIndices:s.getLogicalValue(this.getTableModelProperty("ShowRowHeaderNumbers"),!0)||s.getLogicalValue(this.getTableModelProperty("ShowCustomRowHeaderNumbers"),!1),labelValue:void 0!==e.label?e.label:void 0===this.getRowModelProperty(parseInt(e.labelIndex)-1,"RowName")?"":this.getRowModelProperty(parseInt(e.labelIndex)-1,"RowName"),indexValue:e.labelIndex});(i.setNodeDisplay(i.HEADER_INDEX_ATTACH_POINT,i.showIndices),i.setNodeDisplay(i.HEADER_LABEL_ATTACH_POINT,i.showLabels),i._inputBoxLabel.isEditable()&&this._attachRowHeaderListeners(i),null!=this.maxIndexWidth)&&i.domNode.getElementsByClassName("rowIndex")[0].setAttribute("style","width:"+this.maxIndexWidth+"px;");return i.startup(),i.domNode},_attachRowHeaderListeners:function(e){var i=this;e._inputBoxLabel.addEventListener("valueChanged",t.hitch(i,"_rowValueChanged",e)),e._inputBoxLabel.addEventListener("mousedown",t.hitch(i,"_rowMouseDown")),e._inputBoxLabel.addEventListener("mouseup",t.hitch(i,"_rowMouseUp")),e._inputBoxLabel.addEventListener("click",t.hitch(i,"_rowMouseClick")),e._inputBoxLabel.addEventListener("mousemove",t.hitch(i,"_rowMouseMove",e._inputBoxLabel)),e._inputBoxLabel.addEventListener("editingStarted",t.hitch(i,"_rowEditingStarted")),e._inputBoxLabel.addEventListener("editingStopped",t.hitch(i,"_rowEditingStopped")),e._inputBoxLabel._handleKeyDown=function(t){var n=this._getKeyCode(t);null!==n&&n===o.ENTER&&i._isValidRowHeaderName(e,t.target.value)}},_updateRowNode:function(e,t,i,o){var a=r.getEnclosingWidget(e);n.replace(e,"header_"+t.labelIndex,"header_"+a.indexValue);this._updateRowNumber(a,t),this._updateRowLabel(a,t)},_updateRowNumber:function(e,t){t.labelIndex&&(s.getLogicalValue(this.getTableModelProperty("ShowRowHeaderNumbers"),!0)||s.getLogicalValue(this.getTableModelProperty("ShowCustomRowHeaderNumbers"),!1))?(e.setIndexProperty(parseInt(t.labelIndex)-1),this.pauseValueChangedListener=!0,e.setIndexValue(t.labelIndex),e.setNodeDisplay(e.HEADER_INDEX_ATTACH_POINT,!0),this.pauseValueChangedListener=!1):e.setNodeDisplay(e.HEADER_INDEX_ATTACH_POINT,!1)},_updateRowLabel:function(e,t){t.label&&s.getLogicalValue(this.getTableModelProperty("ShowRowHeaderLabels"),!0)?(this.pauseValueChangedListener=!0,e._inputBoxLabel.index=parseInt(t.labelIndex)-1,e.setLabelValue(t.label),e.setNodeDisplay(e.HEADER_LABEL_ATTACH_POINT,!0),this.pauseValueChangedListener=!1):e.setNodeDisplay(e.HEADER_LABEL_ATTACH_POINT,!1)},_rowValueChanged:function(e,t){if(!0!==this.pauseValueChangedListener){t.data.newValue.length>0&&this._isValidRowHeaderName(e,t.data.newValue)?this.setRowModelProperty(e._inputBoxLabel.index,"RowName",t.data.newValue):e._inputBoxLabel._setUIValue(t.data.oldValue)}},_handleDuplicateRowHeaderValues:function(e){var t=r.getEnclosingWidget(e.domNode.parentElement);this.setRowModelProperty(e.index,"RowName",e._originalValue),t&&t._handleDuplicateValues()},_isValidRowHeaderName:function(e,t){var n=e._inputBoxLabel;return!!e._isValidHeaderName(t)||(n.cancelEditing(n),s.displayErrorMessage(i.substitute(l.invalidHeaderName,{varName:"'"+t+"'"})),!1)},_rowMouseDown:function(e){this._onRowMouseDown(e.data),this._onHeaderRowMouseDown(e.data,!1)},_rowMouseUp:function(e){this._onHeaderRowMouseUp(e.data),this._onWindowMouseUp(e.data)},_rowMouseClick:function(e){this._onHeaderClick(e.data)},_rowMouseMove:function(e,t){void 0!==this._selectingRow&&(e.isEditing()?this._onRowHeaderSelection(t.data,!1):this._onRowHeaderSelection(t.data))},_rowEditingStarted:function(e){this.mouseDownRowHandler.pause()},_rowEditingStopped:function(e){this.mouseDownRowHandler.resume()}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(558),i(559)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.CellArrayView",[t],{constructor:function(e){this.table={}},createTable:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(558),i(9193)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.VectorStructureArrayView",[t],{constructor:function(e){this.table={}},createTable:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1695),i(559)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.table.StructureArrayTable",[i,t],{constructor:function(e){this.inherited(arguments)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(558),i(559)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.DatetimeArrayView",[t],{constructor:function(e){this.table={}},createTable:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(558),i(559)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.DurationArrayView",[t],{constructor:function(e){this.table={}},createTable:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(558),i(559)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.CalendarDurationArrayView",[t],{constructor:function(e){this.table={}},createTable:function(e){return new i(e)}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(367),i(57)],o=i.dj.d(n,(function(e,t,i){return e("variableeditor.views.editors.OpenvarEditor",[t],{edit:function(){var e=this.getState().editorValue,t=this.getState().workspace;this._openVariable(e,t)},_openVariable:function(e,t){i.getInstance().openVariable(e,t,void 0)},_setReadOnly:function(){}})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1190),i(1239)],o=i.dj.d(n,(function(e,t,i){return e("importtool_client.renderers.RightAlignedImportToolRenderer",[i,t],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(1191),i(1239)],o=i.dj.d(n,(function(e,t,i){return e("importtool_client.renderers.CenterAlignedImportToolRenderer",[i,t],{})}),e,t),e.exports=o},function(e,t,i){var n,o;n=[i(203),i(210),i(2746),i(1691),i(1246)],o=i.dj.d(n,(function(e,t,i,n,o){return e("importtool_client.renderers.FixedWidthHeaderRenderer",[i],{_DEFAULT_SINGLE_CHAR_WIDTH:8,getDomNode:function(e){var t=this.inherited(arguments),i=e.singleCharWidth,n=e.columnWidth,o=e.columnNumber;return this._createHeaderRulerDom(i,n,o,"RulerNode",t),t},_createHeaderRulerDom:function(e,i,n,r,a){var s=i/(e="number"==typeof e?e:this._DEFAULT_SINGLE_CHAR_WIDTH),l=document.createElement("div"),c=document.createElement("div");t.add(c,r),c.appendChild(l);new o({container:"bottomDecoration",count:s,style:"height:10px;width:inherit;z-index:1"},l).startup;[].forEach.call(c.firstElementChild.children,(function(t,i){t.style.left=i*e+"px"})),a.appendChild(c),c.id=n}})}),e,t),e.exports=o}]]); \ No newline at end of file